diff --git a/.gitignore b/.gitignore index 272bc139..3d7f64f6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,2 +1,3 @@ response.json .cache/* +node_modules diff --git a/node_modules/.bin/fxparser b/node_modules/.bin/fxparser deleted file mode 120000 index 75327ed9..00000000 --- a/node_modules/.bin/fxparser +++ /dev/null @@ -1 +0,0 @@ -../fast-xml-parser/src/cli/cli.js \ No newline at end of file diff --git a/node_modules/.bin/node-gyp-build b/node_modules/.bin/node-gyp-build deleted file mode 120000 index 671c6ebc..00000000 --- a/node_modules/.bin/node-gyp-build +++ /dev/null @@ -1 +0,0 @@ -../node-gyp-build/bin.js \ No newline at end of file diff --git a/node_modules/.bin/node-gyp-build-optional b/node_modules/.bin/node-gyp-build-optional deleted file mode 120000 index 46d347e6..00000000 --- a/node_modules/.bin/node-gyp-build-optional +++ /dev/null @@ -1 +0,0 @@ -../node-gyp-build/optional.js \ No newline at end of file diff --git a/node_modules/.bin/node-gyp-build-test b/node_modules/.bin/node-gyp-build-test deleted file mode 120000 index d11de1be..00000000 --- a/node_modules/.bin/node-gyp-build-test +++ /dev/null @@ -1 +0,0 @@ -../node-gyp-build/build-test.js \ No newline at end of file diff --git a/node_modules/.bin/uuid b/node_modules/.bin/uuid deleted file mode 120000 index 588f70ec..00000000 --- a/node_modules/.bin/uuid +++ /dev/null @@ -1 +0,0 @@ -../uuid/dist/bin/uuid \ No newline at end of file diff --git a/node_modules/.package-lock.json b/node_modules/.package-lock.json deleted file mode 100644 index db147405..00000000 --- a/node_modules/.package-lock.json +++ /dev/null @@ -1,1714 +0,0 @@ -{ - "name": "rss-nostr-lambda", - "version": "1.0.0", - "lockfileVersion": 3, - "requires": true, - "packages": { - "node_modules/@aws-crypto/crc32": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@aws-crypto/crc32/-/crc32-3.0.0.tgz", - "integrity": "sha512-IzSgsrxUcsrejQbPVilIKy16kAT52EwB6zSaI+M3xxIhKh5+aldEyvI+z6erM7TCLB2BJsFrtHjp6/4/sr+3dA==", - "dependencies": { - "@aws-crypto/util": "^3.0.0", - "@aws-sdk/types": "^3.222.0", - "tslib": "^1.11.1" - } - }, - "node_modules/@aws-crypto/crc32/node_modules/tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" - }, - "node_modules/@aws-crypto/ie11-detection": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@aws-crypto/ie11-detection/-/ie11-detection-3.0.0.tgz", - "integrity": "sha512-341lBBkiY1DfDNKai/wXM3aujNBkXR7tq1URPQDL9wi3AUbI80NR74uF1TXHMm7po1AcnFk8iu2S2IeU/+/A+Q==", - "dependencies": { - "tslib": "^1.11.1" - } - }, - "node_modules/@aws-crypto/ie11-detection/node_modules/tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" - }, - "node_modules/@aws-crypto/sha256-browser": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@aws-crypto/sha256-browser/-/sha256-browser-3.0.0.tgz", - "integrity": "sha512-8VLmW2B+gjFbU5uMeqtQM6Nj0/F1bro80xQXCW6CQBWgosFWXTx77aeOF5CAIAmbOK64SdMBJdNr6J41yP5mvQ==", - "dependencies": { - "@aws-crypto/ie11-detection": "^3.0.0", - "@aws-crypto/sha256-js": "^3.0.0", - "@aws-crypto/supports-web-crypto": "^3.0.0", - "@aws-crypto/util": "^3.0.0", - "@aws-sdk/types": "^3.222.0", - "@aws-sdk/util-locate-window": "^3.0.0", - "@aws-sdk/util-utf8-browser": "^3.0.0", - "tslib": "^1.11.1" - } - }, - "node_modules/@aws-crypto/sha256-browser/node_modules/tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" - }, - "node_modules/@aws-crypto/sha256-js": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@aws-crypto/sha256-js/-/sha256-js-3.0.0.tgz", - "integrity": "sha512-PnNN7os0+yd1XvXAy23CFOmTbMaDxgxXtTKHybrJ39Y8kGzBATgBFibWJKH6BhytLI/Zyszs87xCOBNyBig6vQ==", - "dependencies": { - "@aws-crypto/util": "^3.0.0", - "@aws-sdk/types": "^3.222.0", - "tslib": "^1.11.1" - } - }, - "node_modules/@aws-crypto/sha256-js/node_modules/tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" - }, - "node_modules/@aws-crypto/supports-web-crypto": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@aws-crypto/supports-web-crypto/-/supports-web-crypto-3.0.0.tgz", - "integrity": "sha512-06hBdMwUAb2WFTuGG73LSC0wfPu93xWwo5vL2et9eymgmu3Id5vFAHBbajVWiGhPO37qcsdCap/FqXvJGJWPIg==", - "dependencies": { - "tslib": "^1.11.1" - } - }, - "node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" - }, - "node_modules/@aws-crypto/util": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/@aws-crypto/util/-/util-3.0.0.tgz", - "integrity": "sha512-2OJlpeJpCR48CC8r+uKVChzs9Iungj9wkZrl8Z041DWEWvyIHILYKCPNzJghKsivj+S3mLo6BVc7mBNzdxA46w==", - "dependencies": { - "@aws-sdk/types": "^3.222.0", - "@aws-sdk/util-utf8-browser": "^3.0.0", - "tslib": "^1.11.1" - } - }, - "node_modules/@aws-crypto/util/node_modules/tslib": { - "version": "1.14.1", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz", - "integrity": "sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg==" - }, - "node_modules/@aws-sdk/client-ssm": { - "version": "3.454.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-ssm/-/client-ssm-3.454.0.tgz", - "integrity": "sha512-Vrf93hOzB4FAUpkGHvKywZ0yOVbghS0KbCsnlN1Mka780zmyc185YXGYSLv6B+yrI2tMj0cBvEad3M0qk69qVw==", - "dependencies": { - "@aws-crypto/sha256-browser": "3.0.0", - "@aws-crypto/sha256-js": "3.0.0", - "@aws-sdk/client-sts": "3.454.0", - "@aws-sdk/core": "3.451.0", - "@aws-sdk/credential-provider-node": "3.451.0", - "@aws-sdk/middleware-host-header": "3.451.0", - "@aws-sdk/middleware-logger": "3.451.0", - "@aws-sdk/middleware-recursion-detection": "3.451.0", - "@aws-sdk/middleware-signing": "3.451.0", - "@aws-sdk/middleware-user-agent": "3.451.0", - "@aws-sdk/region-config-resolver": "3.451.0", - "@aws-sdk/types": "3.451.0", - "@aws-sdk/util-endpoints": "3.451.0", - "@aws-sdk/util-user-agent-browser": "3.451.0", - "@aws-sdk/util-user-agent-node": "3.451.0", - "@smithy/config-resolver": "^2.0.18", - "@smithy/fetch-http-handler": "^2.2.6", - "@smithy/hash-node": "^2.0.15", - "@smithy/invalid-dependency": "^2.0.13", - "@smithy/middleware-content-length": "^2.0.15", - "@smithy/middleware-endpoint": "^2.2.0", - "@smithy/middleware-retry": "^2.0.20", - "@smithy/middleware-serde": "^2.0.13", - "@smithy/middleware-stack": "^2.0.7", - "@smithy/node-config-provider": "^2.1.5", - "@smithy/node-http-handler": "^2.1.9", - "@smithy/protocol-http": "^3.0.9", - "@smithy/smithy-client": "^2.1.15", - "@smithy/types": "^2.5.0", - "@smithy/url-parser": "^2.0.13", - "@smithy/util-base64": "^2.0.1", - "@smithy/util-body-length-browser": "^2.0.0", - "@smithy/util-body-length-node": "^2.1.0", - "@smithy/util-defaults-mode-browser": "^2.0.19", - "@smithy/util-defaults-mode-node": "^2.0.25", - "@smithy/util-endpoints": "^1.0.4", - "@smithy/util-retry": "^2.0.6", - "@smithy/util-utf8": "^2.0.2", - "@smithy/util-waiter": "^2.0.13", - "tslib": "^2.5.0", - "uuid": "^8.3.2" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@aws-sdk/client-sso": { - "version": "3.451.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sso/-/client-sso-3.451.0.tgz", - "integrity": "sha512-KkYSke3Pdv3MfVH/5fT528+MKjMyPKlcLcd4zQb0x6/7Bl7EHrPh1JZYjzPLHelb+UY5X0qN8+cb8iSu1eiwIQ==", - "dependencies": { - "@aws-crypto/sha256-browser": "3.0.0", - "@aws-crypto/sha256-js": "3.0.0", - "@aws-sdk/core": "3.451.0", - "@aws-sdk/middleware-host-header": "3.451.0", - "@aws-sdk/middleware-logger": "3.451.0", - "@aws-sdk/middleware-recursion-detection": "3.451.0", - "@aws-sdk/middleware-user-agent": "3.451.0", - "@aws-sdk/region-config-resolver": "3.451.0", - "@aws-sdk/types": "3.451.0", - "@aws-sdk/util-endpoints": "3.451.0", - "@aws-sdk/util-user-agent-browser": "3.451.0", - "@aws-sdk/util-user-agent-node": "3.451.0", - "@smithy/config-resolver": "^2.0.18", - "@smithy/fetch-http-handler": "^2.2.6", - "@smithy/hash-node": "^2.0.15", - "@smithy/invalid-dependency": "^2.0.13", - "@smithy/middleware-content-length": "^2.0.15", - "@smithy/middleware-endpoint": "^2.2.0", - "@smithy/middleware-retry": "^2.0.20", - "@smithy/middleware-serde": "^2.0.13", - "@smithy/middleware-stack": "^2.0.7", - "@smithy/node-config-provider": "^2.1.5", - "@smithy/node-http-handler": "^2.1.9", - "@smithy/protocol-http": "^3.0.9", - "@smithy/smithy-client": "^2.1.15", - "@smithy/types": "^2.5.0", - "@smithy/url-parser": "^2.0.13", - "@smithy/util-base64": "^2.0.1", - "@smithy/util-body-length-browser": "^2.0.0", - "@smithy/util-body-length-node": "^2.1.0", - "@smithy/util-defaults-mode-browser": "^2.0.19", - "@smithy/util-defaults-mode-node": "^2.0.25", - "@smithy/util-endpoints": "^1.0.4", - "@smithy/util-retry": "^2.0.6", - "@smithy/util-utf8": "^2.0.2", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@aws-sdk/client-sts": { - "version": "3.454.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/client-sts/-/client-sts-3.454.0.tgz", - "integrity": "sha512-0fDvr8WeB6IYO8BUCzcivWmahgGl/zDbaYfakzGnt4mrl5ztYaXE875WI6b7+oFcKMRvN+KLvwu5TtyFuNY+GQ==", - "dependencies": { - "@aws-crypto/sha256-browser": "3.0.0", - "@aws-crypto/sha256-js": "3.0.0", - "@aws-sdk/core": "3.451.0", - "@aws-sdk/credential-provider-node": "3.451.0", - "@aws-sdk/middleware-host-header": "3.451.0", - "@aws-sdk/middleware-logger": "3.451.0", - "@aws-sdk/middleware-recursion-detection": "3.451.0", - "@aws-sdk/middleware-sdk-sts": "3.451.0", - "@aws-sdk/middleware-signing": "3.451.0", - "@aws-sdk/middleware-user-agent": "3.451.0", - "@aws-sdk/region-config-resolver": "3.451.0", - "@aws-sdk/types": "3.451.0", - "@aws-sdk/util-endpoints": "3.451.0", - "@aws-sdk/util-user-agent-browser": "3.451.0", - "@aws-sdk/util-user-agent-node": "3.451.0", - "@smithy/config-resolver": "^2.0.18", - "@smithy/fetch-http-handler": "^2.2.6", - "@smithy/hash-node": "^2.0.15", - "@smithy/invalid-dependency": "^2.0.13", - "@smithy/middleware-content-length": "^2.0.15", - "@smithy/middleware-endpoint": "^2.2.0", - "@smithy/middleware-retry": "^2.0.20", - "@smithy/middleware-serde": "^2.0.13", - "@smithy/middleware-stack": "^2.0.7", - "@smithy/node-config-provider": "^2.1.5", - "@smithy/node-http-handler": "^2.1.9", - "@smithy/protocol-http": "^3.0.9", - "@smithy/smithy-client": "^2.1.15", - "@smithy/types": "^2.5.0", - "@smithy/url-parser": "^2.0.13", - "@smithy/util-base64": "^2.0.1", - "@smithy/util-body-length-browser": "^2.0.0", - "@smithy/util-body-length-node": "^2.1.0", - "@smithy/util-defaults-mode-browser": "^2.0.19", - "@smithy/util-defaults-mode-node": "^2.0.25", - "@smithy/util-endpoints": "^1.0.4", - "@smithy/util-retry": "^2.0.6", - "@smithy/util-utf8": "^2.0.2", - "fast-xml-parser": "4.2.5", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@aws-sdk/core": { - "version": "3.451.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/core/-/core-3.451.0.tgz", - "integrity": "sha512-SamWW2zHEf1ZKe3j1w0Piauryl8BQIlej0TBS18A4ACzhjhWXhCs13bO1S88LvPR5mBFXok3XOT6zPOnKDFktw==", - "dependencies": { - "@smithy/smithy-client": "^2.1.15", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@aws-sdk/credential-provider-env": { - "version": "3.451.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-env/-/credential-provider-env-3.451.0.tgz", - "integrity": "sha512-9dAav7DcRgaF7xCJEQR5ER9ErXxnu/tdnVJ+UPmb1NPeIZdESv1A3lxFDEq1Fs8c4/lzAj9BpshGyJVIZwZDKg==", - "dependencies": { - "@aws-sdk/types": "3.451.0", - "@smithy/property-provider": "^2.0.0", - "@smithy/types": "^2.5.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@aws-sdk/credential-provider-ini": { - "version": "3.451.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-ini/-/credential-provider-ini-3.451.0.tgz", - "integrity": "sha512-TySt64Ci5/ZbqFw1F9Z0FIGvYx5JSC9e6gqDnizIYd8eMnn8wFRUscRrD7pIHKfrhvVKN5h0GdYovmMO/FMCBw==", - "dependencies": { - "@aws-sdk/credential-provider-env": "3.451.0", - "@aws-sdk/credential-provider-process": "3.451.0", - "@aws-sdk/credential-provider-sso": "3.451.0", - "@aws-sdk/credential-provider-web-identity": "3.451.0", - "@aws-sdk/types": "3.451.0", - "@smithy/credential-provider-imds": "^2.0.0", - "@smithy/property-provider": "^2.0.0", - "@smithy/shared-ini-file-loader": "^2.0.6", - "@smithy/types": "^2.5.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@aws-sdk/credential-provider-node": { - "version": "3.451.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-node/-/credential-provider-node-3.451.0.tgz", - "integrity": "sha512-AEwM1WPyxUdKrKyUsKyFqqRFGU70e4qlDyrtBxJnSU9NRLZI8tfEZ67bN7fHSxBUBODgDXpMSlSvJiBLh5/3pw==", - "dependencies": { - "@aws-sdk/credential-provider-env": "3.451.0", - "@aws-sdk/credential-provider-ini": "3.451.0", - "@aws-sdk/credential-provider-process": "3.451.0", - "@aws-sdk/credential-provider-sso": "3.451.0", - "@aws-sdk/credential-provider-web-identity": "3.451.0", - "@aws-sdk/types": "3.451.0", - "@smithy/credential-provider-imds": "^2.0.0", - "@smithy/property-provider": "^2.0.0", - "@smithy/shared-ini-file-loader": "^2.0.6", - "@smithy/types": "^2.5.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@aws-sdk/credential-provider-process": { - "version": "3.451.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-process/-/credential-provider-process-3.451.0.tgz", - "integrity": "sha512-HQywSdKeD5PErcLLnZfSyCJO+6T+ZyzF+Lm/QgscSC+CbSUSIPi//s15qhBRVely/3KBV6AywxwNH+5eYgt4lQ==", - "dependencies": { - "@aws-sdk/types": "3.451.0", - "@smithy/property-provider": "^2.0.0", - "@smithy/shared-ini-file-loader": "^2.0.6", - "@smithy/types": "^2.5.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@aws-sdk/credential-provider-sso": { - "version": "3.451.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-sso/-/credential-provider-sso-3.451.0.tgz", - "integrity": "sha512-Usm/N51+unOt8ID4HnQzxIjUJDrkAQ1vyTOC0gSEEJ7h64NSSPGD5yhN7il5WcErtRd3EEtT1a8/GTC5TdBctg==", - "dependencies": { - "@aws-sdk/client-sso": "3.451.0", - "@aws-sdk/token-providers": "3.451.0", - "@aws-sdk/types": "3.451.0", - "@smithy/property-provider": "^2.0.0", - "@smithy/shared-ini-file-loader": "^2.0.6", - "@smithy/types": "^2.5.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@aws-sdk/credential-provider-web-identity": { - "version": "3.451.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/credential-provider-web-identity/-/credential-provider-web-identity-3.451.0.tgz", - "integrity": "sha512-Xtg3Qw65EfDjWNG7o2xD6sEmumPfsy3WDGjk2phEzVg8s7hcZGxf5wYwe6UY7RJvlEKrU0rFA+AMn6Hfj5oOzg==", - "dependencies": { - "@aws-sdk/types": "3.451.0", - "@smithy/property-provider": "^2.0.0", - "@smithy/types": "^2.5.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@aws-sdk/middleware-host-header": { - "version": "3.451.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-host-header/-/middleware-host-header-3.451.0.tgz", - "integrity": "sha512-j8a5jAfhWmsK99i2k8oR8zzQgXrsJtgrLxc3js6U+525mcZytoiDndkWTmD5fjJ1byU1U2E5TaPq+QJeDip05Q==", - "dependencies": { - "@aws-sdk/types": "3.451.0", - "@smithy/protocol-http": "^3.0.9", - "@smithy/types": "^2.5.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@aws-sdk/middleware-logger": { - "version": "3.451.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-logger/-/middleware-logger-3.451.0.tgz", - "integrity": "sha512-0kHrYEyVeB2QBfP6TfbI240aRtatLZtcErJbhpiNUb+CQPgEL3crIjgVE8yYiJumZ7f0jyjo8HLPkwD1/2APaw==", - "dependencies": { - "@aws-sdk/types": "3.451.0", - "@smithy/types": "^2.5.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@aws-sdk/middleware-recursion-detection": { - "version": "3.451.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-recursion-detection/-/middleware-recursion-detection-3.451.0.tgz", - "integrity": "sha512-J6jL6gJ7orjHGM70KDRcCP7so/J2SnkN4vZ9YRLTeeZY6zvBuHDjX8GCIgSqPn/nXFXckZO8XSnA7u6+3TAT0w==", - "dependencies": { - "@aws-sdk/types": "3.451.0", - "@smithy/protocol-http": "^3.0.9", - "@smithy/types": "^2.5.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@aws-sdk/middleware-sdk-sts": { - "version": "3.451.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-sdk-sts/-/middleware-sdk-sts-3.451.0.tgz", - "integrity": "sha512-UJ6UfVUEgp0KIztxpAeelPXI5MLj9wUtUCqYeIMP7C1ZhoEMNm3G39VLkGN43dNhBf1LqjsV9jkKMZbVfYXuwg==", - "dependencies": { - "@aws-sdk/middleware-signing": "3.451.0", - "@aws-sdk/types": "3.451.0", - "@smithy/types": "^2.5.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@aws-sdk/middleware-signing": { - "version": "3.451.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-signing/-/middleware-signing-3.451.0.tgz", - "integrity": "sha512-s5ZlcIoLNg1Huj4Qp06iKniE8nJt/Pj1B/fjhWc6cCPCM7XJYUCejCnRh6C5ZJoBEYodjuwZBejPc1Wh3j+znA==", - "dependencies": { - "@aws-sdk/types": "3.451.0", - "@smithy/property-provider": "^2.0.0", - "@smithy/protocol-http": "^3.0.9", - "@smithy/signature-v4": "^2.0.0", - "@smithy/types": "^2.5.0", - "@smithy/util-middleware": "^2.0.6", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@aws-sdk/middleware-user-agent": { - "version": "3.451.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/middleware-user-agent/-/middleware-user-agent-3.451.0.tgz", - "integrity": "sha512-8NM/0JiKLNvT9wtAQVl1DFW0cEO7OvZyLSUBLNLTHqyvOZxKaZ8YFk7d8PL6l76LeUKRxq4NMxfZQlUIRe0eSA==", - "dependencies": { - "@aws-sdk/types": "3.451.0", - "@aws-sdk/util-endpoints": "3.451.0", - "@smithy/protocol-http": "^3.0.9", - "@smithy/types": "^2.5.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@aws-sdk/region-config-resolver": { - "version": "3.451.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/region-config-resolver/-/region-config-resolver-3.451.0.tgz", - "integrity": "sha512-3iMf4OwzrFb4tAAmoROXaiORUk2FvSejnHIw/XHvf/jjR4EqGGF95NZP/n/MeFZMizJWVssrwS412GmoEyoqhg==", - "dependencies": { - "@smithy/node-config-provider": "^2.1.5", - "@smithy/types": "^2.5.0", - "@smithy/util-config-provider": "^2.0.0", - "@smithy/util-middleware": "^2.0.6", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@aws-sdk/token-providers": { - "version": "3.451.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/token-providers/-/token-providers-3.451.0.tgz", - "integrity": "sha512-ij1L5iUbn6CwxVOT1PG4NFjsrsKN9c4N1YEM0lkl6DwmaNOscjLKGSNyj9M118vSWsOs1ZDbTwtj++h0O/BWrQ==", - "dependencies": { - "@aws-crypto/sha256-browser": "3.0.0", - "@aws-crypto/sha256-js": "3.0.0", - "@aws-sdk/middleware-host-header": "3.451.0", - "@aws-sdk/middleware-logger": "3.451.0", - "@aws-sdk/middleware-recursion-detection": "3.451.0", - "@aws-sdk/middleware-user-agent": "3.451.0", - "@aws-sdk/region-config-resolver": "3.451.0", - "@aws-sdk/types": "3.451.0", - "@aws-sdk/util-endpoints": "3.451.0", - "@aws-sdk/util-user-agent-browser": "3.451.0", - "@aws-sdk/util-user-agent-node": "3.451.0", - "@smithy/config-resolver": "^2.0.18", - "@smithy/fetch-http-handler": "^2.2.6", - "@smithy/hash-node": "^2.0.15", - "@smithy/invalid-dependency": "^2.0.13", - "@smithy/middleware-content-length": "^2.0.15", - "@smithy/middleware-endpoint": "^2.2.0", - "@smithy/middleware-retry": "^2.0.20", - "@smithy/middleware-serde": "^2.0.13", - "@smithy/middleware-stack": "^2.0.7", - "@smithy/node-config-provider": "^2.1.5", - "@smithy/node-http-handler": "^2.1.9", - "@smithy/property-provider": "^2.0.0", - "@smithy/protocol-http": "^3.0.9", - "@smithy/shared-ini-file-loader": "^2.0.6", - "@smithy/smithy-client": "^2.1.15", - "@smithy/types": "^2.5.0", - "@smithy/url-parser": "^2.0.13", - "@smithy/util-base64": "^2.0.1", - "@smithy/util-body-length-browser": "^2.0.0", - "@smithy/util-body-length-node": "^2.1.0", - "@smithy/util-defaults-mode-browser": "^2.0.19", - "@smithy/util-defaults-mode-node": "^2.0.25", - "@smithy/util-endpoints": "^1.0.4", - "@smithy/util-retry": "^2.0.6", - "@smithy/util-utf8": "^2.0.2", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@aws-sdk/types": { - "version": "3.451.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/types/-/types-3.451.0.tgz", - "integrity": "sha512-rhK+qeYwCIs+laJfWCcrYEjay2FR/9VABZJ2NRM89jV/fKqGVQR52E5DQqrI+oEIL5JHMhhnr4N4fyECMS35lw==", - "dependencies": { - "@smithy/types": "^2.5.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@aws-sdk/util-endpoints": { - "version": "3.451.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-endpoints/-/util-endpoints-3.451.0.tgz", - "integrity": "sha512-giqLGBTnRIcKkDqwU7+GQhKbtJ5Ku35cjGQIfMyOga6pwTBUbaK0xW1Sdd8sBQ1GhApscnChzI9o/R9x0368vw==", - "dependencies": { - "@aws-sdk/types": "3.451.0", - "@smithy/util-endpoints": "^1.0.4", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@aws-sdk/util-locate-window": { - "version": "3.310.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-locate-window/-/util-locate-window-3.310.0.tgz", - "integrity": "sha512-qo2t/vBTnoXpjKxlsC2e1gBrRm80M3bId27r0BRB2VniSSe7bL1mmzM+/HFtujm0iAxtPM+aLEflLJlJeDPg0w==", - "dependencies": { - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@aws-sdk/util-user-agent-browser": { - "version": "3.451.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-browser/-/util-user-agent-browser-3.451.0.tgz", - "integrity": "sha512-Ws5mG3J0TQifH7OTcMrCTexo7HeSAc3cBgjfhS/ofzPUzVCtsyg0G7I6T7wl7vJJETix2Kst2cpOsxygPgPD9w==", - "dependencies": { - "@aws-sdk/types": "3.451.0", - "@smithy/types": "^2.5.0", - "bowser": "^2.11.0", - "tslib": "^2.5.0" - } - }, - "node_modules/@aws-sdk/util-user-agent-node": { - "version": "3.451.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-user-agent-node/-/util-user-agent-node-3.451.0.tgz", - "integrity": "sha512-TBzm6P+ql4mkGFAjPlO1CI+w3yUT+NulaiALjl/jNX/nnUp6HsJsVxJf4nVFQTG5KRV0iqMypcs7I3KIhH+LmA==", - "dependencies": { - "@aws-sdk/types": "3.451.0", - "@smithy/node-config-provider": "^2.1.5", - "@smithy/types": "^2.5.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "peerDependencies": { - "aws-crt": ">=1.0.0" - }, - "peerDependenciesMeta": { - "aws-crt": { - "optional": true - } - } - }, - "node_modules/@aws-sdk/util-utf8-browser": { - "version": "3.259.0", - "resolved": "https://registry.npmjs.org/@aws-sdk/util-utf8-browser/-/util-utf8-browser-3.259.0.tgz", - "integrity": "sha512-UvFa/vR+e19XookZF8RzFZBrw2EUkQWxiBW0yYQAhvk3C+QVGl0H3ouca8LDBlBfQKXwmW3huo/59H8rwb1wJw==", - "dependencies": { - "tslib": "^2.3.1" - } - }, - "node_modules/@extractus/feed-extractor": { - "version": "7.0.7", - "resolved": "https://registry.npmjs.org/@extractus/feed-extractor/-/feed-extractor-7.0.7.tgz", - "integrity": "sha512-u7gIzeHev0Qbh2dsmccvthtrS74PQgKDgTcIfKxkkW02UBeEKaGRKooZ+0li5VW4K5t9cA4Az+qSf7bjKsVgHw==", - "dependencies": { - "bellajs": "^11.1.2", - "cross-fetch": "^4.0.0", - "fast-xml-parser": "^4.3.2", - "html-entities": "^2.4.0" - }, - "engines": { - "node": ">= 16" - } - }, - "node_modules/@extractus/feed-extractor/node_modules/fast-xml-parser": { - "version": "4.3.2", - "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.3.2.tgz", - "integrity": "sha512-rmrXUXwbJedoXkStenj1kkljNF7ugn5ZjR9FJcwmCfcCbtOMDghPajbc+Tck6vE6F5XsDmx+Pr2le9fw8+pXBg==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/NaturalIntelligence" - }, - { - "type": "paypal", - "url": "https://paypal.me/naturalintelligence" - } - ], - "dependencies": { - "strnum": "^1.0.5" - }, - "bin": { - "fxparser": "src/cli/cli.js" - } - }, - "node_modules/@noble/ciphers": { - "version": "0.2.0", - "resolved": "https://registry.npmjs.org/@noble/ciphers/-/ciphers-0.2.0.tgz", - "integrity": "sha512-6YBxJDAapHSdd3bLDv6x2wRPwq4QFMUaB3HvljNBUTThDd12eSm7/3F+2lnfzx2jvM+S6Nsy0jEt9QbPqSwqRw==", - "funding": { - "url": "https://paulmillr.com/funding/" - } - }, - "node_modules/@noble/curves": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/@noble/curves/-/curves-1.1.0.tgz", - "integrity": "sha512-091oBExgENk/kGj3AZmtBDMpxQPDtxQABR2B9lb1JbVTs6ytdzZNwvhxQ4MWasRNEzlbEH8jCWFCwhF/Obj5AA==", - "dependencies": { - "@noble/hashes": "1.3.1" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - } - }, - "node_modules/@noble/curves/node_modules/@noble/hashes": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.1.tgz", - "integrity": "sha512-EbqwksQwz9xDRGfDST86whPBgM65E0OH/pCgqW0GBVzO22bNE+NuIbeTb714+IfSjU3aRk47EUvXIb5bTsenKA==", - "engines": { - "node": ">= 16" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - } - }, - "node_modules/@noble/hashes": { - "version": "1.3.2", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.2.tgz", - "integrity": "sha512-MVC8EAQp7MvEcm30KWENFjgR+Mkmf+D189XJTkFIlwohU5hcBbn1ZkKq7KVTi2Hme3PMGF390DaL52beVrIihQ==", - "engines": { - "node": ">= 16" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - } - }, - "node_modules/@noble/secp256k1": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@noble/secp256k1/-/secp256k1-2.0.0.tgz", - "integrity": "sha512-rUGBd95e2a45rlmFTqQJYEFA4/gdIARFfuTuTqLglz0PZ6AKyzyXsEZZq7UZn8hZsvaBgpCzKKBJizT2cJERXw==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ] - }, - "node_modules/@nostr-dev-kit/ndk": { - "version": "2.1.1", - "resolved": "https://registry.npmjs.org/@nostr-dev-kit/ndk/-/ndk-2.1.1.tgz", - "integrity": "sha512-sMD4re3QVpSVMzoyvJAFiftPxJBXkhjRInrK5DcjhSkkPTlJhI+oiVXCpcvCJ3PHT5PilhDgKkg3LyOvv135UQ==", - "dependencies": { - "@noble/hashes": "^1.3.1", - "@noble/secp256k1": "^2.0.0", - "@scure/base": "^1.1.1", - "debug": "^4.3.4", - "light-bolt11-decoder": "^3.0.0", - "node-fetch": "^3.3.1", - "nostr-tools": "^1.15.0", - "tseep": "^1.1.1", - "typescript-lru-cache": "^2.0.0", - "utf8-buffer": "^1.0.0", - "websocket-polyfill": "^0.0.3" - } - }, - "node_modules/@scure/base": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.1.3.tgz", - "integrity": "sha512-/+SgoRjLq7Xlf0CWuLHq2LUZeL/w65kfzAPG5NH9pcmBhs+nunQTn4gvdwgMTIXnt9b2C/1SeL2XiysZEyIC9Q==", - "funding": { - "url": "https://paulmillr.com/funding/" - } - }, - "node_modules/@scure/bip32": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/@scure/bip32/-/bip32-1.3.1.tgz", - "integrity": "sha512-osvveYtyzdEVbt3OfwwXFr4P2iVBL5u1Q3q4ONBfDY/UpOuXmOlbgwc1xECEboY8wIays8Yt6onaWMUdUbfl0A==", - "dependencies": { - "@noble/curves": "~1.1.0", - "@noble/hashes": "~1.3.1", - "@scure/base": "~1.1.0" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - } - }, - "node_modules/@scure/bip39": { - "version": "1.2.1", - "resolved": "https://registry.npmjs.org/@scure/bip39/-/bip39-1.2.1.tgz", - "integrity": "sha512-Z3/Fsz1yr904dduJD0NpiyRHhRYHdcnyh73FZWiV+/qhWi83wNJ3NWolYqCEN+ZWsUz2TWwajJggcRE9r1zUYg==", - "dependencies": { - "@noble/hashes": "~1.3.0", - "@scure/base": "~1.1.0" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - } - }, - "node_modules/@smithy/abort-controller": { - "version": "2.0.14", - "resolved": "https://registry.npmjs.org/@smithy/abort-controller/-/abort-controller-2.0.14.tgz", - "integrity": "sha512-zXtteuYLWbSXnzI3O6xq3FYvigYZFW8mdytGibfarLL2lxHto9L3ILtGVnVGmFZa7SDh62l39EnU5hesLN87Fw==", - "dependencies": { - "@smithy/types": "^2.6.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@smithy/config-resolver": { - "version": "2.0.19", - "resolved": "https://registry.npmjs.org/@smithy/config-resolver/-/config-resolver-2.0.19.tgz", - "integrity": "sha512-JsghnQ5zjWmjEVY8TFOulLdEOCj09SjRLugrHlkPZTIBBm7PQitCFVLThbsKPZQOP7N3ME1DU1nKUc1UaVnBog==", - "dependencies": { - "@smithy/node-config-provider": "^2.1.6", - "@smithy/types": "^2.6.0", - "@smithy/util-config-provider": "^2.0.0", - "@smithy/util-middleware": "^2.0.7", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@smithy/credential-provider-imds": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/@smithy/credential-provider-imds/-/credential-provider-imds-2.1.2.tgz", - "integrity": "sha512-Y62jBWdoLPSYjr9fFvJf+KwTa1EunjVr6NryTEWCnwIY93OJxwV4t0qxjwdPl/XMsUkq79ppNJSEQN6Ohnhxjw==", - "dependencies": { - "@smithy/node-config-provider": "^2.1.6", - "@smithy/property-provider": "^2.0.15", - "@smithy/types": "^2.6.0", - "@smithy/url-parser": "^2.0.14", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@smithy/eventstream-codec": { - "version": "2.0.14", - "resolved": "https://registry.npmjs.org/@smithy/eventstream-codec/-/eventstream-codec-2.0.14.tgz", - "integrity": "sha512-g/OU/MeWGfHDygoXgMWfG/Xb0QqDnAGcM9t2FRrVAhleXYRddGOEnfanR5cmHgB9ue52MJsyorqFjckzXsylaA==", - "dependencies": { - "@aws-crypto/crc32": "3.0.0", - "@smithy/types": "^2.6.0", - "@smithy/util-hex-encoding": "^2.0.0", - "tslib": "^2.5.0" - } - }, - "node_modules/@smithy/fetch-http-handler": { - "version": "2.2.7", - "resolved": "https://registry.npmjs.org/@smithy/fetch-http-handler/-/fetch-http-handler-2.2.7.tgz", - "integrity": "sha512-iSDBjxuH9TgrtMYAr7j5evjvkvgwLY3y+9D547uep+JNkZ1ZT+BaeU20j6I/bO/i26ilCWFImrlXTPsfQtZdIQ==", - "dependencies": { - "@smithy/protocol-http": "^3.0.10", - "@smithy/querystring-builder": "^2.0.14", - "@smithy/types": "^2.6.0", - "@smithy/util-base64": "^2.0.1", - "tslib": "^2.5.0" - } - }, - "node_modules/@smithy/hash-node": { - "version": "2.0.16", - "resolved": "https://registry.npmjs.org/@smithy/hash-node/-/hash-node-2.0.16.tgz", - "integrity": "sha512-Wbi9A0PacMYUOwjAulQP90Wl3mQ6NDwnyrZQzFjDz+UzjXOSyQMgBrTkUBz+pVoYVlX3DUu24gWMZBcit+wOGg==", - "dependencies": { - "@smithy/types": "^2.6.0", - "@smithy/util-buffer-from": "^2.0.0", - "@smithy/util-utf8": "^2.0.2", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@smithy/invalid-dependency": { - "version": "2.0.14", - "resolved": "https://registry.npmjs.org/@smithy/invalid-dependency/-/invalid-dependency-2.0.14.tgz", - "integrity": "sha512-d8ohpwZo9RzTpGlAfsWtfm1SHBSU7+N4iuZ6MzR10xDTujJJWtmXYHK1uzcr7rggbpUTaWyHpPFgnf91q0EFqQ==", - "dependencies": { - "@smithy/types": "^2.6.0", - "tslib": "^2.5.0" - } - }, - "node_modules/@smithy/is-array-buffer": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@smithy/is-array-buffer/-/is-array-buffer-2.0.0.tgz", - "integrity": "sha512-z3PjFjMyZNI98JFRJi/U0nGoLWMSJlDjAW4QUX2WNZLas5C0CmVV6LJ01JI0k90l7FvpmixjWxPFmENSClQ7ug==", - "dependencies": { - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@smithy/middleware-content-length": { - "version": "2.0.16", - "resolved": "https://registry.npmjs.org/@smithy/middleware-content-length/-/middleware-content-length-2.0.16.tgz", - "integrity": "sha512-9ddDia3pp1d3XzLXKcm7QebGxLq9iwKf+J1LapvlSOhpF8EM9SjMeSrMOOFgG+2TfW5K3+qz4IAJYYm7INYCng==", - "dependencies": { - "@smithy/protocol-http": "^3.0.10", - "@smithy/types": "^2.6.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@smithy/middleware-endpoint": { - "version": "2.2.1", - "resolved": "https://registry.npmjs.org/@smithy/middleware-endpoint/-/middleware-endpoint-2.2.1.tgz", - "integrity": "sha512-dVDS7HNJl/wb0lpByXor6whqDbb1YlLoaoWYoelyYzLHioXOE7y/0iDwJWtDcN36/tVCw9EPBFZ3aans84jLpg==", - "dependencies": { - "@smithy/middleware-serde": "^2.0.14", - "@smithy/node-config-provider": "^2.1.6", - "@smithy/shared-ini-file-loader": "^2.2.5", - "@smithy/types": "^2.6.0", - "@smithy/url-parser": "^2.0.14", - "@smithy/util-middleware": "^2.0.7", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@smithy/middleware-retry": { - "version": "2.0.21", - "resolved": "https://registry.npmjs.org/@smithy/middleware-retry/-/middleware-retry-2.0.21.tgz", - "integrity": "sha512-EZS1EXv1k6IJX6hyu/0yNQuPcPaXwG8SWljQHYueyRbOxmqYgoWMWPtfZj0xRRQ4YtLawQSpBgAeiJltq8/MPw==", - "dependencies": { - "@smithy/node-config-provider": "^2.1.6", - "@smithy/protocol-http": "^3.0.10", - "@smithy/service-error-classification": "^2.0.7", - "@smithy/types": "^2.6.0", - "@smithy/util-middleware": "^2.0.7", - "@smithy/util-retry": "^2.0.7", - "tslib": "^2.5.0", - "uuid": "^8.3.2" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@smithy/middleware-serde": { - "version": "2.0.14", - "resolved": "https://registry.npmjs.org/@smithy/middleware-serde/-/middleware-serde-2.0.14.tgz", - "integrity": "sha512-hFi3FqoYWDntCYA2IGY6gJ6FKjq2gye+1tfxF2HnIJB5uW8y2DhpRNBSUMoqP+qvYzRqZ6ntv4kgbG+o3pX57g==", - "dependencies": { - "@smithy/types": "^2.6.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@smithy/middleware-stack": { - "version": "2.0.8", - "resolved": "https://registry.npmjs.org/@smithy/middleware-stack/-/middleware-stack-2.0.8.tgz", - "integrity": "sha512-7/N59j0zWqVEKExJcA14MrLDZ/IeN+d6nbkN8ucs+eURyaDUXWYlZrQmMOd/TyptcQv0+RDlgag/zSTTV62y/Q==", - "dependencies": { - "@smithy/types": "^2.6.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@smithy/node-config-provider": { - "version": "2.1.6", - "resolved": "https://registry.npmjs.org/@smithy/node-config-provider/-/node-config-provider-2.1.6.tgz", - "integrity": "sha512-HLqTs6O78m3M3z1cPLFxddxhEPv5MkVatfPuxoVO3A+cHZanNd/H5I6btcdHy6N2CB1MJ/lihJC92h30SESsBA==", - "dependencies": { - "@smithy/property-provider": "^2.0.15", - "@smithy/shared-ini-file-loader": "^2.2.5", - "@smithy/types": "^2.6.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@smithy/node-http-handler": { - "version": "2.1.10", - "resolved": "https://registry.npmjs.org/@smithy/node-http-handler/-/node-http-handler-2.1.10.tgz", - "integrity": "sha512-lkALAwtN6odygIM4nB8aHDahINM6WXXjNrZmWQAh0RSossySRT2qa31cFv0ZBuAYVWeprskRk13AFvvLmf1WLw==", - "dependencies": { - "@smithy/abort-controller": "^2.0.14", - "@smithy/protocol-http": "^3.0.10", - "@smithy/querystring-builder": "^2.0.14", - "@smithy/types": "^2.6.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@smithy/property-provider": { - "version": "2.0.15", - "resolved": "https://registry.npmjs.org/@smithy/property-provider/-/property-provider-2.0.15.tgz", - "integrity": "sha512-YbRFBn8oiiC3o1Kn3a4KjGa6k47rCM9++5W9cWqYn9WnkyH+hBWgfJAckuxpyA2Hq6Ys4eFrWzXq6fqHEw7iew==", - "dependencies": { - "@smithy/types": "^2.6.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@smithy/protocol-http": { - "version": "3.0.10", - "resolved": "https://registry.npmjs.org/@smithy/protocol-http/-/protocol-http-3.0.10.tgz", - "integrity": "sha512-6+tjNk7rXW7YTeGo9qwxXj/2BFpJTe37kTj3EnZCoX/nH+NP/WLA7O83fz8XhkGqsaAhLUPo/bB12vvd47nsmg==", - "dependencies": { - "@smithy/types": "^2.6.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@smithy/querystring-builder": { - "version": "2.0.14", - "resolved": "https://registry.npmjs.org/@smithy/querystring-builder/-/querystring-builder-2.0.14.tgz", - "integrity": "sha512-lQ4pm9vTv9nIhl5jt6uVMPludr6syE2FyJmHsIJJuOD7QPIJnrf9HhUGf1iHh9KJ4CUv21tpOU3X6s0rB6uJ0g==", - "dependencies": { - "@smithy/types": "^2.6.0", - "@smithy/util-uri-escape": "^2.0.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@smithy/querystring-parser": { - "version": "2.0.14", - "resolved": "https://registry.npmjs.org/@smithy/querystring-parser/-/querystring-parser-2.0.14.tgz", - "integrity": "sha512-+cbtXWI9tNtQjlgQg3CA+pvL3zKTAxPnG3Pj6MP89CR3vi3QMmD0SOWoq84tqZDnJCxlsusbgIXk1ngMReXo+A==", - "dependencies": { - "@smithy/types": "^2.6.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@smithy/service-error-classification": { - "version": "2.0.7", - "resolved": "https://registry.npmjs.org/@smithy/service-error-classification/-/service-error-classification-2.0.7.tgz", - "integrity": "sha512-LLxgW12qGz8doYto15kZ4x1rHjtXl0BnCG6T6Wb8z2DI4PT9cJfOSvzbuLzy7+5I24PAepKgFeWHRd9GYy3Z9w==", - "dependencies": { - "@smithy/types": "^2.6.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@smithy/shared-ini-file-loader": { - "version": "2.2.5", - "resolved": "https://registry.npmjs.org/@smithy/shared-ini-file-loader/-/shared-ini-file-loader-2.2.5.tgz", - "integrity": "sha512-LHA68Iu7SmNwfAVe8egmjDCy648/7iJR/fK1UnVw+iAOUJoEYhX2DLgVd5pWllqdDiRbQQzgaHLcRokM+UFR1w==", - "dependencies": { - "@smithy/types": "^2.6.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@smithy/signature-v4": { - "version": "2.0.16", - "resolved": "https://registry.npmjs.org/@smithy/signature-v4/-/signature-v4-2.0.16.tgz", - "integrity": "sha512-ilLY85xS2kZZzTb83diQKYLIYALvart0KnBaKnIRnMBHAGEio5aHSlANQoxVn0VsonwmQ3CnWhnCT0sERD8uTg==", - "dependencies": { - "@smithy/eventstream-codec": "^2.0.14", - "@smithy/is-array-buffer": "^2.0.0", - "@smithy/types": "^2.6.0", - "@smithy/util-hex-encoding": "^2.0.0", - "@smithy/util-middleware": "^2.0.7", - "@smithy/util-uri-escape": "^2.0.0", - "@smithy/util-utf8": "^2.0.2", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@smithy/smithy-client": { - "version": "2.1.16", - "resolved": "https://registry.npmjs.org/@smithy/smithy-client/-/smithy-client-2.1.16.tgz", - "integrity": "sha512-Lw67+yQSpLl4YkDLUzI2KgS8TXclXmbzSeOJUmRFS4ueT56B4pw3RZRF/SRzvgyxM/HxgkUan8oSHXCujPDafQ==", - "dependencies": { - "@smithy/middleware-stack": "^2.0.8", - "@smithy/types": "^2.6.0", - "@smithy/util-stream": "^2.0.21", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@smithy/types": { - "version": "2.6.0", - "resolved": "https://registry.npmjs.org/@smithy/types/-/types-2.6.0.tgz", - "integrity": "sha512-PgqxJq2IcdMF9iAasxcqZqqoOXBHufEfmbEUdN1pmJrJltT42b0Sc8UiYSWWzKkciIp9/mZDpzYi4qYG1qqg6g==", - "dependencies": { - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@smithy/url-parser": { - "version": "2.0.14", - "resolved": "https://registry.npmjs.org/@smithy/url-parser/-/url-parser-2.0.14.tgz", - "integrity": "sha512-kbu17Y1AFXi5lNlySdDj7ZzmvupyWKCX/0jNZ8ffquRyGdbDZb+eBh0QnWqsSmnZa/ctyWaTf7n4l/pXLExrnw==", - "dependencies": { - "@smithy/querystring-parser": "^2.0.14", - "@smithy/types": "^2.6.0", - "tslib": "^2.5.0" - } - }, - "node_modules/@smithy/util-base64": { - "version": "2.0.1", - "resolved": "https://registry.npmjs.org/@smithy/util-base64/-/util-base64-2.0.1.tgz", - "integrity": "sha512-DlI6XFYDMsIVN+GH9JtcRp3j02JEVuWIn/QOZisVzpIAprdsxGveFed0bjbMRCqmIFe8uetn5rxzNrBtIGrPIQ==", - "dependencies": { - "@smithy/util-buffer-from": "^2.0.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@smithy/util-body-length-browser": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@smithy/util-body-length-browser/-/util-body-length-browser-2.0.0.tgz", - "integrity": "sha512-JdDuS4ircJt+FDnaQj88TzZY3+njZ6O+D3uakS32f2VNnDo3vyEuNdBOh/oFd8Df1zSZOuH1HEChk2AOYDezZg==", - "dependencies": { - "tslib": "^2.5.0" - } - }, - "node_modules/@smithy/util-body-length-node": { - "version": "2.1.0", - "resolved": "https://registry.npmjs.org/@smithy/util-body-length-node/-/util-body-length-node-2.1.0.tgz", - "integrity": "sha512-/li0/kj/y3fQ3vyzn36NTLGmUwAICb7Jbe/CsWCktW363gh1MOcpEcSO3mJ344Gv2dqz8YJCLQpb6hju/0qOWw==", - "dependencies": { - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@smithy/util-buffer-from": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@smithy/util-buffer-from/-/util-buffer-from-2.0.0.tgz", - "integrity": "sha512-/YNnLoHsR+4W4Vf2wL5lGv0ksg8Bmk3GEGxn2vEQt52AQaPSCuaO5PM5VM7lP1K9qHRKHwrPGktqVoAHKWHxzw==", - "dependencies": { - "@smithy/is-array-buffer": "^2.0.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@smithy/util-config-provider": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@smithy/util-config-provider/-/util-config-provider-2.0.0.tgz", - "integrity": "sha512-xCQ6UapcIWKxXHEU4Mcs2s7LcFQRiU3XEluM2WcCjjBtQkUN71Tb+ydGmJFPxMUrW/GWMgQEEGipLym4XG0jZg==", - "dependencies": { - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@smithy/util-defaults-mode-browser": { - "version": "2.0.20", - "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-browser/-/util-defaults-mode-browser-2.0.20.tgz", - "integrity": "sha512-QJtnbTIl0/BbEASkx1MUFf6EaoWqWW1/IM90N++8NNscePvPf77GheYfpoPis6CBQawUWq8QepTP2QUSAdrVkw==", - "dependencies": { - "@smithy/property-provider": "^2.0.15", - "@smithy/smithy-client": "^2.1.16", - "@smithy/types": "^2.6.0", - "bowser": "^2.11.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">= 10.0.0" - } - }, - "node_modules/@smithy/util-defaults-mode-node": { - "version": "2.0.26", - "resolved": "https://registry.npmjs.org/@smithy/util-defaults-mode-node/-/util-defaults-mode-node-2.0.26.tgz", - "integrity": "sha512-lGFPOFCHv1ql019oegYqa54BZH7HREw6EBqjDLbAr0wquMX0BDi2sg8TJ6Eq+JGLijkZbJB73m4+aK8OFAapMg==", - "dependencies": { - "@smithy/config-resolver": "^2.0.19", - "@smithy/credential-provider-imds": "^2.1.2", - "@smithy/node-config-provider": "^2.1.6", - "@smithy/property-provider": "^2.0.15", - "@smithy/smithy-client": "^2.1.16", - "@smithy/types": "^2.6.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">= 10.0.0" - } - }, - "node_modules/@smithy/util-endpoints": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/@smithy/util-endpoints/-/util-endpoints-1.0.5.tgz", - "integrity": "sha512-K7qNuCOD5K/90MjHvHm9kJldrfm40UxWYQxNEShMFxV/lCCCRIg8R4uu1PFAxRvPxNpIdcrh1uK6I1ISjDXZJw==", - "dependencies": { - "@smithy/node-config-provider": "^2.1.6", - "@smithy/types": "^2.6.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">= 14.0.0" - } - }, - "node_modules/@smithy/util-hex-encoding": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@smithy/util-hex-encoding/-/util-hex-encoding-2.0.0.tgz", - "integrity": "sha512-c5xY+NUnFqG6d7HFh1IFfrm3mGl29lC+vF+geHv4ToiuJCBmIfzx6IeHLg+OgRdPFKDXIw6pvi+p3CsscaMcMA==", - "dependencies": { - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@smithy/util-middleware": { - "version": "2.0.7", - "resolved": "https://registry.npmjs.org/@smithy/util-middleware/-/util-middleware-2.0.7.tgz", - "integrity": "sha512-tRINOTlf1G9B0ECarFQAtTgMhpnrMPSa+5j4ZEwEawCLfTFTavk6757sxhE4RY5RMlD/I3x+DCS8ZUiR8ho9Pw==", - "dependencies": { - "@smithy/types": "^2.6.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@smithy/util-retry": { - "version": "2.0.7", - "resolved": "https://registry.npmjs.org/@smithy/util-retry/-/util-retry-2.0.7.tgz", - "integrity": "sha512-fIe5yARaF0+xVT1XKcrdnHKTJ1Vc4+3e3tLDjCuIcE9b6fkBzzGFY7AFiX4M+vj6yM98DrwkuZeHf7/hmtVp0Q==", - "dependencies": { - "@smithy/service-error-classification": "^2.0.7", - "@smithy/types": "^2.6.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">= 14.0.0" - } - }, - "node_modules/@smithy/util-stream": { - "version": "2.0.21", - "resolved": "https://registry.npmjs.org/@smithy/util-stream/-/util-stream-2.0.21.tgz", - "integrity": "sha512-0BUE16d7n1x7pi1YluXJdB33jOTyBChT0j/BlOkFa9uxfg6YqXieHxjHNuCdJRARa7AZEj32LLLEPJ1fSa4inA==", - "dependencies": { - "@smithy/fetch-http-handler": "^2.2.7", - "@smithy/node-http-handler": "^2.1.10", - "@smithy/types": "^2.6.0", - "@smithy/util-base64": "^2.0.1", - "@smithy/util-buffer-from": "^2.0.0", - "@smithy/util-hex-encoding": "^2.0.0", - "@smithy/util-utf8": "^2.0.2", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@smithy/util-uri-escape": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/@smithy/util-uri-escape/-/util-uri-escape-2.0.0.tgz", - "integrity": "sha512-ebkxsqinSdEooQduuk9CbKcI+wheijxEb3utGXkCoYQkJnwTnLbH1JXGimJtUkQwNQbsbuYwG2+aFVyZf5TLaw==", - "dependencies": { - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@smithy/util-utf8": { - "version": "2.0.2", - "resolved": "https://registry.npmjs.org/@smithy/util-utf8/-/util-utf8-2.0.2.tgz", - "integrity": "sha512-qOiVORSPm6Ce4/Yu6hbSgNHABLP2VMv8QOC3tTDNHHlWY19pPyc++fBTbZPtx6egPXi4HQxKDnMxVxpbtX2GoA==", - "dependencies": { - "@smithy/util-buffer-from": "^2.0.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/@smithy/util-waiter": { - "version": "2.0.14", - "resolved": "https://registry.npmjs.org/@smithy/util-waiter/-/util-waiter-2.0.14.tgz", - "integrity": "sha512-Q6gSz4GUNjNGhrfNg+2Mjy+7K4pEI3r82x1b/+3dSc03MQqobMiUrRVN/YK/4nHVagvBELCoXsiHAFQJNQ5BeA==", - "dependencies": { - "@smithy/abort-controller": "^2.0.14", - "@smithy/types": "^2.6.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - } - }, - "node_modules/bech32-buffer": { - "version": "0.2.1", - "resolved": "https://registry.npmjs.org/bech32-buffer/-/bech32-buffer-0.2.1.tgz", - "integrity": "sha512-fCG1TyZuCN48Sdw97p/IR39fvqpFlWDVpG7qnuU1Uc3+Xtc/0uqAp8U7bMW/bGuVF5CcNVIXwxQsWwUr6un6FQ==", - "engines": { - "node": ">=8" - } - }, - "node_modules/bellajs": { - "version": "11.1.2", - "resolved": "https://registry.npmjs.org/bellajs/-/bellajs-11.1.2.tgz", - "integrity": "sha512-2Fy3Km5JKyIy/KunW3oica2gZtkjD2qSqti2Q3xPhHvXXdMbc+32pEMOPG+xrSat0BXVhRjHIx++lzxIPK0GqQ==", - "engines": { - "node": ">= 14" - } - }, - "node_modules/bowser": { - "version": "2.11.0", - "resolved": "https://registry.npmjs.org/bowser/-/bowser-2.11.0.tgz", - "integrity": "sha512-AlcaJBi/pqqJBIQ8U9Mcpc9i8Aqxn88Skv5d+xBX006BY5u8N3mGLHa5Lgppa7L/HfwgwLgZ6NYs+Ag6uUmJRA==" - }, - "node_modules/bufferutil": { - "version": "4.0.8", - "resolved": "https://registry.npmjs.org/bufferutil/-/bufferutil-4.0.8.tgz", - "integrity": "sha512-4T53u4PdgsXqKaIctwF8ifXlRTTmEPJ8iEPWFdGZvcf7sbwYo6FKFEX9eNNAnzFZ7EzJAQ3CJeOtCRA4rDp7Pw==", - "hasInstallScript": true, - "dependencies": { - "node-gyp-build": "^4.3.0" - }, - "engines": { - "node": ">=6.14.2" - } - }, - "node_modules/cross-fetch": { - "version": "4.0.0", - "resolved": "https://registry.npmjs.org/cross-fetch/-/cross-fetch-4.0.0.tgz", - "integrity": "sha512-e4a5N8lVvuLgAWgnCrLr2PP0YyDOTHa9H/Rj54dirp61qXnNq46m82bRhNqIA5VccJtWBvPTFRV3TtvHUKPB1g==", - "dependencies": { - "node-fetch": "^2.6.12" - } - }, - "node_modules/cross-fetch/node_modules/node-fetch": { - "version": "2.7.0", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-2.7.0.tgz", - "integrity": "sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A==", - "dependencies": { - "whatwg-url": "^5.0.0" - }, - "engines": { - "node": "4.x || >=6.0.0" - }, - "peerDependencies": { - "encoding": "^0.1.0" - }, - "peerDependenciesMeta": { - "encoding": { - "optional": true - } - } - }, - "node_modules/d": { - "version": "1.0.1", - "resolved": "https://registry.npmjs.org/d/-/d-1.0.1.tgz", - "integrity": "sha512-m62ShEObQ39CfralilEQRjH6oAMtNCV1xJyEx5LpRYUVN+EviphDgUc/F3hnYbADmkiNs67Y+3ylmlG7Lnu+FA==", - "dependencies": { - "es5-ext": "^0.10.50", - "type": "^1.0.1" - } - }, - "node_modules/data-uri-to-buffer": { - "version": "4.0.1", - "resolved": "https://registry.npmjs.org/data-uri-to-buffer/-/data-uri-to-buffer-4.0.1.tgz", - "integrity": "sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A==", - "engines": { - "node": ">= 12" - } - }, - "node_modules/debug": { - "version": "4.3.4", - "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", - "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", - "dependencies": { - "ms": "2.1.2" - }, - "engines": { - "node": ">=6.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - } - }, - "node_modules/es5-ext": { - "version": "0.10.62", - "resolved": "https://registry.npmjs.org/es5-ext/-/es5-ext-0.10.62.tgz", - "integrity": "sha512-BHLqn0klhEpnOKSrzn/Xsz2UIW8j+cGmo9JLzr8BiUapV8hPL9+FliFqjwr9ngW7jWdnxv6eO+/LqyhJVqgrjA==", - "hasInstallScript": true, - "dependencies": { - "es6-iterator": "^2.0.3", - "es6-symbol": "^3.1.3", - "next-tick": "^1.1.0" - }, - "engines": { - "node": ">=0.10" - } - }, - "node_modules/es6-iterator": { - "version": "2.0.3", - "resolved": "https://registry.npmjs.org/es6-iterator/-/es6-iterator-2.0.3.tgz", - "integrity": "sha512-zw4SRzoUkd+cl+ZoE15A9o1oQd920Bb0iOJMQkQhl3jNc03YqVjAhG7scf9C5KWRU/R13Orf588uCC6525o02g==", - "dependencies": { - "d": "1", - "es5-ext": "^0.10.35", - "es6-symbol": "^3.1.1" - } - }, - "node_modules/es6-symbol": { - "version": "3.1.3", - "resolved": "https://registry.npmjs.org/es6-symbol/-/es6-symbol-3.1.3.tgz", - "integrity": "sha512-NJ6Yn3FuDinBaBRWl/q5X/s4koRHBrgKAu+yGI6JCBeiu3qrcbJhwT2GeR/EXVfylRk8dpQVJoLEFhK+Mu31NA==", - "dependencies": { - "d": "^1.0.1", - "ext": "^1.1.2" - } - }, - "node_modules/ext": { - "version": "1.7.0", - "resolved": "https://registry.npmjs.org/ext/-/ext-1.7.0.tgz", - "integrity": "sha512-6hxeJYaL110a9b5TEJSj0gojyHQAmA2ch5Os+ySCiA1QGdS697XWY1pzsrSjqA9LDEEgdB/KypIlR59RcLuHYw==", - "dependencies": { - "type": "^2.7.2" - } - }, - "node_modules/ext/node_modules/type": { - "version": "2.7.2", - "resolved": "https://registry.npmjs.org/type/-/type-2.7.2.tgz", - "integrity": "sha512-dzlvlNlt6AXU7EBSfpAscydQ7gXB+pPGsPnfJnZpiNJBDj7IaJzQlBZYGdEi4R9HmPdBv2XmWJ6YUtoTa7lmCw==" - }, - "node_modules/fast-xml-parser": { - "version": "4.2.5", - "resolved": "https://registry.npmjs.org/fast-xml-parser/-/fast-xml-parser-4.2.5.tgz", - "integrity": "sha512-B9/wizE4WngqQftFPmdaMYlXoJlJOYxGQOanC77fq9k8+Z0v5dDSVh+3glErdIROP//s/jgb7ZuxKfB8nVyo0g==", - "funding": [ - { - "type": "paypal", - "url": "https://paypal.me/naturalintelligence" - }, - { - "type": "github", - "url": "https://github.com/sponsors/NaturalIntelligence" - } - ], - "dependencies": { - "strnum": "^1.0.5" - }, - "bin": { - "fxparser": "src/cli/cli.js" - } - }, - "node_modules/fetch-blob": { - "version": "3.2.0", - "resolved": "https://registry.npmjs.org/fetch-blob/-/fetch-blob-3.2.0.tgz", - "integrity": "sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/jimmywarting" - }, - { - "type": "paypal", - "url": "https://paypal.me/jimmywarting" - } - ], - "dependencies": { - "node-domexception": "^1.0.0", - "web-streams-polyfill": "^3.0.3" - }, - "engines": { - "node": "^12.20 || >= 14.13" - } - }, - "node_modules/formdata-polyfill": { - "version": "4.0.10", - "resolved": "https://registry.npmjs.org/formdata-polyfill/-/formdata-polyfill-4.0.10.tgz", - "integrity": "sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g==", - "dependencies": { - "fetch-blob": "^3.1.2" - }, - "engines": { - "node": ">=12.20.0" - } - }, - "node_modules/html-entities": { - "version": "2.4.0", - "resolved": "https://registry.npmjs.org/html-entities/-/html-entities-2.4.0.tgz", - "integrity": "sha512-igBTJcNNNhvZFRtm8uA6xMY6xYleeDwn3PeBCkDz7tHttv4F2hsDI2aPgNERWzvRcNYHNT3ymRaQzllmXj4YsQ==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/mdevils" - }, - { - "type": "patreon", - "url": "https://patreon.com/mdevils" - } - ] - }, - "node_modules/is-typedarray": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", - "integrity": "sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==" - }, - "node_modules/light-bolt11-decoder": { - "version": "3.0.0", - "resolved": "https://registry.npmjs.org/light-bolt11-decoder/-/light-bolt11-decoder-3.0.0.tgz", - "integrity": "sha512-AKvOigD2pmC8ktnn2TIqdJu0K0qk6ukUmTvHwF3JNkm8uWCqt18Ijn33A/a7gaRZ4PghJ59X+8+MXrzLKdBTmQ==", - "dependencies": { - "@scure/base": "1.1.1" - } - }, - "node_modules/light-bolt11-decoder/node_modules/@scure/base": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.1.1.tgz", - "integrity": "sha512-ZxOhsSyxYwLJj3pLZCefNitxsj093tb2vq90mp2txoYeBqbcjDjqFhyM8eUjq/uFm6zJ+mUuqxlS2FkuSY1MTA==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ] - }, - "node_modules/moment": { - "version": "2.29.4", - "resolved": "https://registry.npmjs.org/moment/-/moment-2.29.4.tgz", - "integrity": "sha512-5LC9SOxjSc2HF6vO2CyuTDNivEdoz2IvyJJGj6X8DJ0eFyfszE0QiEd+iXmBvUP3WHxSjFH/vIsA0EN00cgr8w==", - "engines": { - "node": "*" - } - }, - "node_modules/ms": { - "version": "2.1.2", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", - "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==" - }, - "node_modules/next-tick": { - "version": "1.1.0", - "resolved": "https://registry.npmjs.org/next-tick/-/next-tick-1.1.0.tgz", - "integrity": "sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ==" - }, - "node_modules/node-domexception": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/node-domexception/-/node-domexception-1.0.0.tgz", - "integrity": "sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ==", - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/jimmywarting" - }, - { - "type": "github", - "url": "https://paypal.me/jimmywarting" - } - ], - "engines": { - "node": ">=10.5.0" - } - }, - "node_modules/node-fetch": { - "version": "3.3.2", - "resolved": "https://registry.npmjs.org/node-fetch/-/node-fetch-3.3.2.tgz", - "integrity": "sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA==", - "dependencies": { - "data-uri-to-buffer": "^4.0.0", - "fetch-blob": "^3.1.4", - "formdata-polyfill": "^4.0.10" - }, - "engines": { - "node": "^12.20.0 || ^14.13.1 || >=16.0.0" - }, - "funding": { - "type": "opencollective", - "url": "https://opencollective.com/node-fetch" - } - }, - "node_modules/node-gyp-build": { - "version": "4.7.1", - "resolved": "https://registry.npmjs.org/node-gyp-build/-/node-gyp-build-4.7.1.tgz", - "integrity": "sha512-wTSrZ+8lsRRa3I3H8Xr65dLWSgCvY2l4AOnaeKdPA9TB/WYMPaTcrzf3rXvFoVvjKNVnu0CcWSx54qq9GKRUYg==", - "bin": { - "node-gyp-build": "bin.js", - "node-gyp-build-optional": "optional.js", - "node-gyp-build-test": "build-test.js" - } - }, - "node_modules/nostr-tools": { - "version": "1.17.0", - "resolved": "https://registry.npmjs.org/nostr-tools/-/nostr-tools-1.17.0.tgz", - "integrity": "sha512-LZmR8GEWKZeElbFV5Xte75dOeE9EFUW/QLI1Ncn3JKn0kFddDKEfBbFN8Mu4TMs+L4HR/WTPha2l+PPuRnJcMw==", - "dependencies": { - "@noble/ciphers": "0.2.0", - "@noble/curves": "1.1.0", - "@noble/hashes": "1.3.1", - "@scure/base": "1.1.1", - "@scure/bip32": "1.3.1", - "@scure/bip39": "1.2.1" - }, - "peerDependencies": { - "typescript": ">=5.0.0" - }, - "peerDependenciesMeta": { - "typescript": { - "optional": true - } - } - }, - "node_modules/nostr-tools/node_modules/@noble/hashes": { - "version": "1.3.1", - "resolved": "https://registry.npmjs.org/@noble/hashes/-/hashes-1.3.1.tgz", - "integrity": "sha512-EbqwksQwz9xDRGfDST86whPBgM65E0OH/pCgqW0GBVzO22bNE+NuIbeTb714+IfSjU3aRk47EUvXIb5bTsenKA==", - "engines": { - "node": ">= 16" - }, - "funding": { - "url": "https://paulmillr.com/funding/" - } - }, - "node_modules/nostr-tools/node_modules/@scure/base": { - "version": "1.1.1", - "resolved": "https://registry.npmjs.org/@scure/base/-/base-1.1.1.tgz", - "integrity": "sha512-ZxOhsSyxYwLJj3pLZCefNitxsj093tb2vq90mp2txoYeBqbcjDjqFhyM8eUjq/uFm6zJ+mUuqxlS2FkuSY1MTA==", - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ] - }, - "node_modules/strnum": { - "version": "1.0.5", - "resolved": "https://registry.npmjs.org/strnum/-/strnum-1.0.5.tgz", - "integrity": "sha512-J8bbNyKKXl5qYcR36TIO8W3mVGVHrmmxsd5PAItGkmyzwJvybiw2IVq5nqd0i4LSNSkB/sx9VHllbfFdr9k1JA==" - }, - "node_modules/tr46": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/tr46/-/tr46-0.0.3.tgz", - "integrity": "sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw==" - }, - "node_modules/tseep": { - "version": "1.1.3", - "resolved": "https://registry.npmjs.org/tseep/-/tseep-1.1.3.tgz", - "integrity": "sha512-deBIcIlXUMlr3xaN0UEochqjU/zXGaZGPqHPd1rxo4w6DklBdRM6WQQtsk7bekIF+qY6QTeen3nE6OA7BxL9rg==" - }, - "node_modules/tslib": { - "version": "2.6.2", - "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", - "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==" - }, - "node_modules/tstl": { - "version": "2.5.13", - "resolved": "https://registry.npmjs.org/tstl/-/tstl-2.5.13.tgz", - "integrity": "sha512-h9wayHHFI5+yqt8iau0vqH96cTNhezhZ/Fk/hrIdpfkiMu3lg9nzyvMfs5bIdX51IVzZO6DudLqhkL/rVXpT6g==" - }, - "node_modules/type": { - "version": "1.2.0", - "resolved": "https://registry.npmjs.org/type/-/type-1.2.0.tgz", - "integrity": "sha512-+5nt5AAniqsCnu2cEQQdpzCAh33kVx8n0VoFidKpB1dVVLAN/F+bgVOqOJqOnEnrhp222clB5p3vUlD+1QAnfg==" - }, - "node_modules/typedarray-to-buffer": { - "version": "3.1.5", - "resolved": "https://registry.npmjs.org/typedarray-to-buffer/-/typedarray-to-buffer-3.1.5.tgz", - "integrity": "sha512-zdu8XMNEDepKKR+XYOXAVPtWui0ly0NtohUscw+UmaHiAWT8hrV1rr//H6V+0DvJ3OQ19S979M0laLfX8rm82Q==", - "dependencies": { - "is-typedarray": "^1.0.0" - } - }, - "node_modules/typescript-lru-cache": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/typescript-lru-cache/-/typescript-lru-cache-2.0.0.tgz", - "integrity": "sha512-Jp57Qyy8wXeMkdNuZiglE6v2Cypg13eDA1chHwDG6kq51X7gk4K7P7HaDdzZKCxkegXkVHNcPD0n5aW6OZH3aA==" - }, - "node_modules/utf-8-validate": { - "version": "5.0.10", - "resolved": "https://registry.npmjs.org/utf-8-validate/-/utf-8-validate-5.0.10.tgz", - "integrity": "sha512-Z6czzLq4u8fPOyx7TU6X3dvUZVvoJmxSQ+IcrlmagKhilxlhZgxPK6C5Jqbkw1IDUmFTM+cz9QDnnLTwDz/2gQ==", - "hasInstallScript": true, - "dependencies": { - "node-gyp-build": "^4.3.0" - }, - "engines": { - "node": ">=6.14.2" - } - }, - "node_modules/utf8-buffer": { - "version": "1.0.0", - "resolved": "https://registry.npmjs.org/utf8-buffer/-/utf8-buffer-1.0.0.tgz", - "integrity": "sha512-ueuhzvWnp5JU5CiGSY4WdKbiN/PO2AZ/lpeLiz2l38qwdLy/cW40XobgyuIWucNyum0B33bVB0owjFCeGBSLqg==", - "engines": { - "node": ">=8" - } - }, - "node_modules/uuid": { - "version": "8.3.2", - "resolved": "https://registry.npmjs.org/uuid/-/uuid-8.3.2.tgz", - "integrity": "sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg==", - "bin": { - "uuid": "dist/bin/uuid" - } - }, - "node_modules/web-streams-polyfill": { - "version": "3.2.1", - "resolved": "https://registry.npmjs.org/web-streams-polyfill/-/web-streams-polyfill-3.2.1.tgz", - "integrity": "sha512-e0MO3wdXWKrLbL0DgGnUV7WHVuw9OUvL4hjgnPkIeEvESk74gAITi5G606JtZPp39cd8HA9VQzCIvA49LpPN5Q==", - "engines": { - "node": ">= 8" - } - }, - "node_modules/webidl-conversions": { - "version": "3.0.1", - "resolved": "https://registry.npmjs.org/webidl-conversions/-/webidl-conversions-3.0.1.tgz", - "integrity": "sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ==" - }, - "node_modules/websocket": { - "version": "1.0.34", - "resolved": "https://registry.npmjs.org/websocket/-/websocket-1.0.34.tgz", - "integrity": "sha512-PRDso2sGwF6kM75QykIesBijKSVceR6jL2G8NGYyq2XrItNC2P5/qL5XeR056GhA+Ly7JMFvJb9I312mJfmqnQ==", - "dependencies": { - "bufferutil": "^4.0.1", - "debug": "^2.2.0", - "es5-ext": "^0.10.50", - "typedarray-to-buffer": "^3.1.5", - "utf-8-validate": "^5.0.2", - "yaeti": "^0.0.6" - }, - "engines": { - "node": ">=4.0.0" - } - }, - "node_modules/websocket-polyfill": { - "version": "0.0.3", - "resolved": "https://registry.npmjs.org/websocket-polyfill/-/websocket-polyfill-0.0.3.tgz", - "integrity": "sha512-pF3kR8Uaoau78MpUmFfzbIRxXj9PeQrCuPepGE6JIsfsJ/o/iXr07Q2iQNzKSSblQJ0FiGWlS64N4pVSm+O3Dg==", - "dependencies": { - "tstl": "^2.0.7", - "websocket": "^1.0.28" - } - }, - "node_modules/websocket/node_modules/debug": { - "version": "2.6.9", - "resolved": "https://registry.npmjs.org/debug/-/debug-2.6.9.tgz", - "integrity": "sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA==", - "dependencies": { - "ms": "2.0.0" - } - }, - "node_modules/websocket/node_modules/ms": { - "version": "2.0.0", - "resolved": "https://registry.npmjs.org/ms/-/ms-2.0.0.tgz", - "integrity": "sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A==" - }, - "node_modules/whatwg-url": { - "version": "5.0.0", - "resolved": "https://registry.npmjs.org/whatwg-url/-/whatwg-url-5.0.0.tgz", - "integrity": "sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw==", - "dependencies": { - "tr46": "~0.0.3", - "webidl-conversions": "^3.0.0" - } - }, - "node_modules/yaeti": { - "version": "0.0.6", - "resolved": "https://registry.npmjs.org/yaeti/-/yaeti-0.0.6.tgz", - "integrity": "sha512-MvQa//+KcZCUkBTIC9blM+CU9J2GzuTytsOUwf2lidtvkx/6gnEp1QvJv34t9vdjhFmha/mUiNDbN0D0mJWdug==", - "engines": { - "node": ">=0.10.32" - } - } - } -} diff --git a/node_modules/@aws-crypto/crc32/CHANGELOG.md b/node_modules/@aws-crypto/crc32/CHANGELOG.md deleted file mode 100644 index 631f8462..00000000 --- a/node_modules/@aws-crypto/crc32/CHANGELOG.md +++ /dev/null @@ -1,76 +0,0 @@ -# Change Log - -All notable changes to this project will be documented in this file. -See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. - -# [3.0.0](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/v2.0.2...v3.0.0) (2023-01-12) - -- feat!: replace Hash implementations with Checksum interface (#492) ([da43dc0](https://github.com/aws/aws-sdk-js-crypto-helpers/commit/da43dc0fdf669d9ebb5bfb1b1f7c79e46c4aaae1)), closes [#492](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/492) - -### BREAKING CHANGES - -- All classes that implemented `Hash` now implement `Checksum`. - -## [2.0.2](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/v2.0.1...v2.0.2) (2022-09-07) - -### Bug Fixes - -- **#337:** update @aws-sdk/types ([#373](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/373)) ([b26a811](https://github.com/aws/aws-sdk-js-crypto-helpers/commit/b26a811a392f5209c7ec7e57251500d4d78f97ff)), closes [#337](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/337) - -## [2.0.1](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/v2.0.0...v2.0.1) (2021-12-09) - -**Note:** Version bump only for package @aws-crypto/crc32 - -# [2.0.0](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/v1.2.2...v2.0.0) (2021-10-25) - -**Note:** Version bump only for package @aws-crypto/crc32 - -## [1.2.2](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/v1.2.1...v1.2.2) (2021-10-12) - -### Bug Fixes - -- **crc32c:** ie11 does not support Array.from ([#221](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/221)) ([5f49547](https://github.com/aws/aws-sdk-js-crypto-helpers/commit/5f495472ab8988cf203e0f2a70a51f7e1fcd7e60)) - -## [1.2.1](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/v1.2.0...v1.2.1) (2021-09-17) - -**Note:** Version bump only for package @aws-crypto/crc32 - -# [1.2.0](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/v1.1.1...v1.2.0) (2021-09-17) - -### Features - -- Add AwsCrc32 Hash ([f5d7e81](https://github.com/aws/aws-sdk-js-crypto-helpers/commit/f5d7e815fcbe0f8da1edb855fea3bd33eb1edc15)) - -# [1.1.0](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/@aws-crypto/crc32@1.0.0...@aws-crypto/crc32@1.1.0) (2021-08-11) - -### Features - -- Create CRC-32C implementation ([#201](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/201)) ([e43c7ec](https://github.com/aws/aws-sdk-js-crypto-helpers/commit/e43c7ecd30d6499fa696f5839ecc30502a34b8b6)) - -# [1.0.0](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/@aws-crypto/crc32@1.0.0-alpha.0...@aws-crypto/crc32@1.0.0) (2020-10-22) - -**Note:** Version bump only for package @aws-crypto/crc32 - -# [1.0.0-alpha.0](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/@aws-crypto/crc32@0.1.0-preview.4...@aws-crypto/crc32@1.0.0-alpha.0) (2020-02-07) - -**Note:** Version bump only for package @aws-crypto/crc32 - -# [0.1.0-preview.4](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/@aws-crypto/crc32@0.1.0-preview.2...@aws-crypto/crc32@0.1.0-preview.4) (2020-01-16) - -### Bug Fixes - -- Changed package.json files to point to the right Git repo ([#9](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/9)) ([028245d](https://github.com/aws/aws-sdk-js-crypto-helpers/commit/028245d72e642ca98d82226afb300eb154503c4a)), closes [#8](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/8) -- lerna version maintains package-lock ([#14](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/14)) ([2ef29e1](https://github.com/aws/aws-sdk-js-crypto-helpers/commit/2ef29e13779703a5c9b32e93d18918fcb33b7272)), closes [#13](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/13) - -# [0.1.0-preview.3](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/@aws-crypto/crc32@0.1.0-preview.2...@aws-crypto/crc32@0.1.0-preview.3) (2019-11-15) - -### Bug Fixes - -- Changed package.json files to point to the right Git repo ([#9](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/9)) ([028245d](https://github.com/aws/aws-sdk-js-crypto-helpers/commit/028245d72e642ca98d82226afb300eb154503c4a)), closes [#8](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/8) -- lerna version maintains package-lock ([#14](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/14)) ([2ef29e1](https://github.com/aws/aws-sdk-js-crypto-helpers/commit/2ef29e13779703a5c9b32e93d18918fcb33b7272)), closes [#13](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/13) - -# [0.1.0-preview.2](https://github.com/aws/aws-javascript-crypto-helpers/compare/@aws-crypto/crc32@0.1.0-preview.1...@aws-crypto/crc32@0.1.0-preview.2) (2019-10-30) - -### Bug Fixes - -- remove /src/ from .npmignore (for sourcemaps) ([#5](https://github.com/aws/aws-javascript-crypto-helpers/issues/5)) ([ec52056](https://github.com/aws/aws-javascript-crypto-helpers/commit/ec52056)) diff --git a/node_modules/@aws-crypto/crc32/LICENSE b/node_modules/@aws-crypto/crc32/LICENSE deleted file mode 100644 index 980a15ac..00000000 --- a/node_modules/@aws-crypto/crc32/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright {yyyy} {name of copyright owner} - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/node_modules/@aws-crypto/crc32/README.md b/node_modules/@aws-crypto/crc32/README.md deleted file mode 100644 index b54737a1..00000000 --- a/node_modules/@aws-crypto/crc32/README.md +++ /dev/null @@ -1,16 +0,0 @@ -# @aws-crypto/crc32 - -Pure JS implementation of CRC32 https://en.wikipedia.org/wiki/Cyclic_redundancy_check - -## Usage - -``` -import { Crc32 } from '@aws-crypto/crc32'; - -const crc32Digest = (new Crc32).update(buffer).digest() - -``` - -## Test - -`npm test` diff --git a/node_modules/@aws-crypto/crc32/build/aws_crc32.d.ts b/node_modules/@aws-crypto/crc32/build/aws_crc32.d.ts deleted file mode 100644 index c91c2a52..00000000 --- a/node_modules/@aws-crypto/crc32/build/aws_crc32.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { SourceData, Checksum } from "@aws-sdk/types"; -export declare class AwsCrc32 implements Checksum { - private crc32; - update(toHash: SourceData): void; - digest(): Promise; - reset(): void; -} diff --git a/node_modules/@aws-crypto/crc32/build/aws_crc32.js b/node_modules/@aws-crypto/crc32/build/aws_crc32.js deleted file mode 100644 index 09c304cd..00000000 --- a/node_modules/@aws-crypto/crc32/build/aws_crc32.js +++ /dev/null @@ -1,31 +0,0 @@ -"use strict"; -// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. -// SPDX-License-Identifier: Apache-2.0 -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AwsCrc32 = void 0; -var tslib_1 = require("tslib"); -var util_1 = require("@aws-crypto/util"); -var index_1 = require("./index"); -var AwsCrc32 = /** @class */ (function () { - function AwsCrc32() { - this.crc32 = new index_1.Crc32(); - } - AwsCrc32.prototype.update = function (toHash) { - if ((0, util_1.isEmptyData)(toHash)) - return; - this.crc32.update((0, util_1.convertToBuffer)(toHash)); - }; - AwsCrc32.prototype.digest = function () { - return tslib_1.__awaiter(this, void 0, void 0, function () { - return tslib_1.__generator(this, function (_a) { - return [2 /*return*/, (0, util_1.numToUint8)(this.crc32.digest())]; - }); - }); - }; - AwsCrc32.prototype.reset = function () { - this.crc32 = new index_1.Crc32(); - }; - return AwsCrc32; -}()); -exports.AwsCrc32 = AwsCrc32; -//# sourceMappingURL=aws_crc32.js.map \ No newline at end of file diff --git a/node_modules/@aws-crypto/crc32/build/aws_crc32.js.map b/node_modules/@aws-crypto/crc32/build/aws_crc32.js.map deleted file mode 100644 index 8914c306..00000000 --- a/node_modules/@aws-crypto/crc32/build/aws_crc32.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"aws_crc32.js","sourceRoot":"","sources":["../src/aws_crc32.ts"],"names":[],"mappings":";AAAA,oEAAoE;AACpE,sCAAsC;;;;AAGtC,yCAA4E;AAC5E,iCAAgC;AAEhC;IAAA;QACU,UAAK,GAAG,IAAI,aAAK,EAAE,CAAC;IAe9B,CAAC;IAbC,yBAAM,GAAN,UAAO,MAAkB;QACvB,IAAI,IAAA,kBAAW,EAAC,MAAM,CAAC;YAAE,OAAO;QAEhC,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAA,sBAAe,EAAC,MAAM,CAAC,CAAC,CAAC;IAC7C,CAAC;IAEK,yBAAM,GAAZ;;;gBACE,sBAAO,IAAA,iBAAU,EAAC,IAAI,CAAC,KAAK,CAAC,MAAM,EAAE,CAAC,EAAC;;;KACxC;IAED,wBAAK,GAAL;QACE,IAAI,CAAC,KAAK,GAAG,IAAI,aAAK,EAAE,CAAC;IAC3B,CAAC;IACH,eAAC;AAAD,CAAC,AAhBD,IAgBC;AAhBY,4BAAQ"} \ No newline at end of file diff --git a/node_modules/@aws-crypto/crc32/build/index.d.ts b/node_modules/@aws-crypto/crc32/build/index.d.ts deleted file mode 100644 index 75210713..00000000 --- a/node_modules/@aws-crypto/crc32/build/index.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -export declare function crc32(data: Uint8Array): number; -export declare class Crc32 { - private checksum; - update(data: Uint8Array): this; - digest(): number; -} -export { AwsCrc32 } from "./aws_crc32"; diff --git a/node_modules/@aws-crypto/crc32/build/index.js b/node_modules/@aws-crypto/crc32/build/index.js deleted file mode 100644 index fa789688..00000000 --- a/node_modules/@aws-crypto/crc32/build/index.js +++ /dev/null @@ -1,108 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AwsCrc32 = exports.Crc32 = exports.crc32 = void 0; -var tslib_1 = require("tslib"); -var util_1 = require("@aws-crypto/util"); -function crc32(data) { - return new Crc32().update(data).digest(); -} -exports.crc32 = crc32; -var Crc32 = /** @class */ (function () { - function Crc32() { - this.checksum = 0xffffffff; - } - Crc32.prototype.update = function (data) { - var e_1, _a; - try { - for (var data_1 = tslib_1.__values(data), data_1_1 = data_1.next(); !data_1_1.done; data_1_1 = data_1.next()) { - var byte = data_1_1.value; - this.checksum = - (this.checksum >>> 8) ^ lookupTable[(this.checksum ^ byte) & 0xff]; - } - } - catch (e_1_1) { e_1 = { error: e_1_1 }; } - finally { - try { - if (data_1_1 && !data_1_1.done && (_a = data_1.return)) _a.call(data_1); - } - finally { if (e_1) throw e_1.error; } - } - return this; - }; - Crc32.prototype.digest = function () { - return (this.checksum ^ 0xffffffff) >>> 0; - }; - return Crc32; -}()); -exports.Crc32 = Crc32; -// prettier-ignore -var a_lookUpTable = [ - 0x00000000, 0x77073096, 0xEE0E612C, 0x990951BA, - 0x076DC419, 0x706AF48F, 0xE963A535, 0x9E6495A3, - 0x0EDB8832, 0x79DCB8A4, 0xE0D5E91E, 0x97D2D988, - 0x09B64C2B, 0x7EB17CBD, 0xE7B82D07, 0x90BF1D91, - 0x1DB71064, 0x6AB020F2, 0xF3B97148, 0x84BE41DE, - 0x1ADAD47D, 0x6DDDE4EB, 0xF4D4B551, 0x83D385C7, - 0x136C9856, 0x646BA8C0, 0xFD62F97A, 0x8A65C9EC, - 0x14015C4F, 0x63066CD9, 0xFA0F3D63, 0x8D080DF5, - 0x3B6E20C8, 0x4C69105E, 0xD56041E4, 0xA2677172, - 0x3C03E4D1, 0x4B04D447, 0xD20D85FD, 0xA50AB56B, - 0x35B5A8FA, 0x42B2986C, 0xDBBBC9D6, 0xACBCF940, - 0x32D86CE3, 0x45DF5C75, 0xDCD60DCF, 0xABD13D59, - 0x26D930AC, 0x51DE003A, 0xC8D75180, 0xBFD06116, - 0x21B4F4B5, 0x56B3C423, 0xCFBA9599, 0xB8BDA50F, - 0x2802B89E, 0x5F058808, 0xC60CD9B2, 0xB10BE924, - 0x2F6F7C87, 0x58684C11, 0xC1611DAB, 0xB6662D3D, - 0x76DC4190, 0x01DB7106, 0x98D220BC, 0xEFD5102A, - 0x71B18589, 0x06B6B51F, 0x9FBFE4A5, 0xE8B8D433, - 0x7807C9A2, 0x0F00F934, 0x9609A88E, 0xE10E9818, - 0x7F6A0DBB, 0x086D3D2D, 0x91646C97, 0xE6635C01, - 0x6B6B51F4, 0x1C6C6162, 0x856530D8, 0xF262004E, - 0x6C0695ED, 0x1B01A57B, 0x8208F4C1, 0xF50FC457, - 0x65B0D9C6, 0x12B7E950, 0x8BBEB8EA, 0xFCB9887C, - 0x62DD1DDF, 0x15DA2D49, 0x8CD37CF3, 0xFBD44C65, - 0x4DB26158, 0x3AB551CE, 0xA3BC0074, 0xD4BB30E2, - 0x4ADFA541, 0x3DD895D7, 0xA4D1C46D, 0xD3D6F4FB, - 0x4369E96A, 0x346ED9FC, 0xAD678846, 0xDA60B8D0, - 0x44042D73, 0x33031DE5, 0xAA0A4C5F, 0xDD0D7CC9, - 0x5005713C, 0x270241AA, 0xBE0B1010, 0xC90C2086, - 0x5768B525, 0x206F85B3, 0xB966D409, 0xCE61E49F, - 0x5EDEF90E, 0x29D9C998, 0xB0D09822, 0xC7D7A8B4, - 0x59B33D17, 0x2EB40D81, 0xB7BD5C3B, 0xC0BA6CAD, - 0xEDB88320, 0x9ABFB3B6, 0x03B6E20C, 0x74B1D29A, - 0xEAD54739, 0x9DD277AF, 0x04DB2615, 0x73DC1683, - 0xE3630B12, 0x94643B84, 0x0D6D6A3E, 0x7A6A5AA8, - 0xE40ECF0B, 0x9309FF9D, 0x0A00AE27, 0x7D079EB1, - 0xF00F9344, 0x8708A3D2, 0x1E01F268, 0x6906C2FE, - 0xF762575D, 0x806567CB, 0x196C3671, 0x6E6B06E7, - 0xFED41B76, 0x89D32BE0, 0x10DA7A5A, 0x67DD4ACC, - 0xF9B9DF6F, 0x8EBEEFF9, 0x17B7BE43, 0x60B08ED5, - 0xD6D6A3E8, 0xA1D1937E, 0x38D8C2C4, 0x4FDFF252, - 0xD1BB67F1, 0xA6BC5767, 0x3FB506DD, 0x48B2364B, - 0xD80D2BDA, 0xAF0A1B4C, 0x36034AF6, 0x41047A60, - 0xDF60EFC3, 0xA867DF55, 0x316E8EEF, 0x4669BE79, - 0xCB61B38C, 0xBC66831A, 0x256FD2A0, 0x5268E236, - 0xCC0C7795, 0xBB0B4703, 0x220216B9, 0x5505262F, - 0xC5BA3BBE, 0xB2BD0B28, 0x2BB45A92, 0x5CB36A04, - 0xC2D7FFA7, 0xB5D0CF31, 0x2CD99E8B, 0x5BDEAE1D, - 0x9B64C2B0, 0xEC63F226, 0x756AA39C, 0x026D930A, - 0x9C0906A9, 0xEB0E363F, 0x72076785, 0x05005713, - 0x95BF4A82, 0xE2B87A14, 0x7BB12BAE, 0x0CB61B38, - 0x92D28E9B, 0xE5D5BE0D, 0x7CDCEFB7, 0x0BDBDF21, - 0x86D3D2D4, 0xF1D4E242, 0x68DDB3F8, 0x1FDA836E, - 0x81BE16CD, 0xF6B9265B, 0x6FB077E1, 0x18B74777, - 0x88085AE6, 0xFF0F6A70, 0x66063BCA, 0x11010B5C, - 0x8F659EFF, 0xF862AE69, 0x616BFFD3, 0x166CCF45, - 0xA00AE278, 0xD70DD2EE, 0x4E048354, 0x3903B3C2, - 0xA7672661, 0xD06016F7, 0x4969474D, 0x3E6E77DB, - 0xAED16A4A, 0xD9D65ADC, 0x40DF0B66, 0x37D83BF0, - 0xA9BCAE53, 0xDEBB9EC5, 0x47B2CF7F, 0x30B5FFE9, - 0xBDBDF21C, 0xCABAC28A, 0x53B39330, 0x24B4A3A6, - 0xBAD03605, 0xCDD70693, 0x54DE5729, 0x23D967BF, - 0xB3667A2E, 0xC4614AB8, 0x5D681B02, 0x2A6F2B94, - 0xB40BBE37, 0xC30C8EA1, 0x5A05DF1B, 0x2D02EF8D, -]; -var lookupTable = (0, util_1.uint32ArrayFrom)(a_lookUpTable); -var aws_crc32_1 = require("./aws_crc32"); -Object.defineProperty(exports, "AwsCrc32", { enumerable: true, get: function () { return aws_crc32_1.AwsCrc32; } }); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@aws-crypto/crc32/build/index.js.map b/node_modules/@aws-crypto/crc32/build/index.js.map deleted file mode 100644 index 41c45e64..00000000 --- a/node_modules/@aws-crypto/crc32/build/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAAA,yCAAiD;AAEjD,SAAgB,KAAK,CAAC,IAAgB;IACpC,OAAO,IAAI,KAAK,EAAE,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,MAAM,EAAE,CAAC;AAC3C,CAAC;AAFD,sBAEC;AAED;IAAA;QACU,aAAQ,GAAG,UAAU,CAAC;IAchC,CAAC;IAZC,sBAAM,GAAN,UAAO,IAAgB;;;YACrB,KAAmB,IAAA,SAAA,iBAAA,IAAI,CAAA,0BAAA,4CAAE;gBAApB,IAAM,IAAI,iBAAA;gBACb,IAAI,CAAC,QAAQ;oBACX,CAAC,IAAI,CAAC,QAAQ,KAAK,CAAC,CAAC,GAAG,WAAW,CAAC,CAAC,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,GAAG,IAAI,CAAC,CAAC;aACtE;;;;;;;;;QAED,OAAO,IAAI,CAAC;IACd,CAAC;IAED,sBAAM,GAAN;QACE,OAAO,CAAC,IAAI,CAAC,QAAQ,GAAG,UAAU,CAAC,KAAK,CAAC,CAAC;IAC5C,CAAC;IACH,YAAC;AAAD,CAAC,AAfD,IAeC;AAfY,sBAAK;AAiBlB,kBAAkB;AAClB,IAAM,aAAa,GAAG;IACpB,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU;IAC9C,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU;IAC9C,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU;IAC9C,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU;IAC9C,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU;IAC9C,UAAU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AU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU;IAC9C,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU;IAC9C,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU;IAC9C,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU;IAC9C,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU;IAC9C,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU;IAC9C,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU;IAC9C,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU;IAC9C,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU;CAC/C,CAAC;AACF,IAAM,WAAW,GAAgB,IAAA,sBAAe,EAAC,aAAa,CAAC,CAAA;AAC/D,yCAAuC;AAA9B,qGAAA,QAAQ,OAAA"} \ No newline at end of file diff --git a/node_modules/@aws-crypto/crc32/node_modules/tslib/CopyrightNotice.txt b/node_modules/@aws-crypto/crc32/node_modules/tslib/CopyrightNotice.txt deleted file mode 100644 index 3d4c8234..00000000 --- a/node_modules/@aws-crypto/crc32/node_modules/tslib/CopyrightNotice.txt +++ /dev/null @@ -1,15 +0,0 @@ -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */ - diff --git a/node_modules/@aws-crypto/crc32/node_modules/tslib/LICENSE.txt b/node_modules/@aws-crypto/crc32/node_modules/tslib/LICENSE.txt deleted file mode 100644 index bfe6430c..00000000 --- a/node_modules/@aws-crypto/crc32/node_modules/tslib/LICENSE.txt +++ /dev/null @@ -1,12 +0,0 @@ -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. \ No newline at end of file diff --git a/node_modules/@aws-crypto/crc32/node_modules/tslib/README.md b/node_modules/@aws-crypto/crc32/node_modules/tslib/README.md deleted file mode 100644 index a5b2692c..00000000 --- a/node_modules/@aws-crypto/crc32/node_modules/tslib/README.md +++ /dev/null @@ -1,142 +0,0 @@ -# tslib - -This is a runtime library for [TypeScript](http://www.typescriptlang.org/) that contains all of the TypeScript helper functions. - -This library is primarily used by the `--importHelpers` flag in TypeScript. -When using `--importHelpers`, a module that uses helper functions like `__extends` and `__assign` in the following emitted file: - -```ts -var __assign = (this && this.__assign) || Object.assign || function(t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) - t[p] = s[p]; - } - return t; -}; -exports.x = {}; -exports.y = __assign({}, exports.x); - -``` - -will instead be emitted as something like the following: - -```ts -var tslib_1 = require("tslib"); -exports.x = {}; -exports.y = tslib_1.__assign({}, exports.x); -``` - -Because this can avoid duplicate declarations of things like `__extends`, `__assign`, etc., this means delivering users smaller files on average, as well as less runtime overhead. -For optimized bundles with TypeScript, you should absolutely consider using `tslib` and `--importHelpers`. - -# Installing - -For the latest stable version, run: - -## npm - -```sh -# TypeScript 2.3.3 or later -npm install tslib - -# TypeScript 2.3.2 or earlier -npm install tslib@1.6.1 -``` - -## yarn - -```sh -# TypeScript 2.3.3 or later -yarn add tslib - -# TypeScript 2.3.2 or earlier -yarn add tslib@1.6.1 -``` - -## bower - -```sh -# TypeScript 2.3.3 or later -bower install tslib - -# TypeScript 2.3.2 or earlier -bower install tslib@1.6.1 -``` - -## JSPM - -```sh -# TypeScript 2.3.3 or later -jspm install tslib - -# TypeScript 2.3.2 or earlier -jspm install tslib@1.6.1 -``` - -# Usage - -Set the `importHelpers` compiler option on the command line: - -``` -tsc --importHelpers file.ts -``` - -or in your tsconfig.json: - -```json -{ - "compilerOptions": { - "importHelpers": true - } -} -``` - -#### For bower and JSPM users - -You will need to add a `paths` mapping for `tslib`, e.g. For Bower users: - -```json -{ - "compilerOptions": { - "module": "amd", - "importHelpers": true, - "baseUrl": "./", - "paths": { - "tslib" : ["bower_components/tslib/tslib.d.ts"] - } - } -} -``` - -For JSPM users: - -```json -{ - "compilerOptions": { - "module": "system", - "importHelpers": true, - "baseUrl": "./", - "paths": { - "tslib" : ["jspm_packages/npm/tslib@1.[version].0/tslib.d.ts"] - } - } -} -``` - - -# Contribute - -There are many ways to [contribute](https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md) to TypeScript. - -* [Submit bugs](https://github.com/Microsoft/TypeScript/issues) and help us verify fixes as they are checked in. -* Review the [source code changes](https://github.com/Microsoft/TypeScript/pulls). -* Engage with other TypeScript users and developers on [StackOverflow](http://stackoverflow.com/questions/tagged/typescript). -* Join the [#typescript](http://twitter.com/#!/search/realtime/%23typescript) discussion on Twitter. -* [Contribute bug fixes](https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md). - -# Documentation - -* [Quick tutorial](http://www.typescriptlang.org/Tutorial) -* [Programming handbook](http://www.typescriptlang.org/Handbook) -* [Homepage](http://www.typescriptlang.org/) diff --git a/node_modules/@aws-crypto/crc32/node_modules/tslib/modules/index.js b/node_modules/@aws-crypto/crc32/node_modules/tslib/modules/index.js deleted file mode 100644 index d241d042..00000000 --- a/node_modules/@aws-crypto/crc32/node_modules/tslib/modules/index.js +++ /dev/null @@ -1,51 +0,0 @@ -import tslib from '../tslib.js'; -const { - __extends, - __assign, - __rest, - __decorate, - __param, - __metadata, - __awaiter, - __generator, - __exportStar, - __createBinding, - __values, - __read, - __spread, - __spreadArrays, - __await, - __asyncGenerator, - __asyncDelegator, - __asyncValues, - __makeTemplateObject, - __importStar, - __importDefault, - __classPrivateFieldGet, - __classPrivateFieldSet, -} = tslib; -export { - __extends, - __assign, - __rest, - __decorate, - __param, - __metadata, - __awaiter, - __generator, - __exportStar, - __createBinding, - __values, - __read, - __spread, - __spreadArrays, - __await, - __asyncGenerator, - __asyncDelegator, - __asyncValues, - __makeTemplateObject, - __importStar, - __importDefault, - __classPrivateFieldGet, - __classPrivateFieldSet, -}; diff --git a/node_modules/@aws-crypto/crc32/node_modules/tslib/modules/package.json b/node_modules/@aws-crypto/crc32/node_modules/tslib/modules/package.json deleted file mode 100644 index aafa0e4b..00000000 --- a/node_modules/@aws-crypto/crc32/node_modules/tslib/modules/package.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "type": "module" -} \ No newline at end of file diff --git a/node_modules/@aws-crypto/crc32/node_modules/tslib/package.json b/node_modules/@aws-crypto/crc32/node_modules/tslib/package.json deleted file mode 100644 index f8c2a53d..00000000 --- a/node_modules/@aws-crypto/crc32/node_modules/tslib/package.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "name": "tslib", - "author": "Microsoft Corp.", - "homepage": "https://www.typescriptlang.org/", - "version": "1.14.1", - "license": "0BSD", - "description": "Runtime library for TypeScript helper functions", - "keywords": [ - "TypeScript", - "Microsoft", - "compiler", - "language", - "javascript", - "tslib", - "runtime" - ], - "bugs": { - "url": "https://github.com/Microsoft/TypeScript/issues" - }, - "repository": { - "type": "git", - "url": "https://github.com/Microsoft/tslib.git" - }, - "main": "tslib.js", - "module": "tslib.es6.js", - "jsnext:main": "tslib.es6.js", - "typings": "tslib.d.ts", - "sideEffects": false, - "exports": { - ".": { - "module": "./tslib.es6.js", - "import": "./modules/index.js", - "default": "./tslib.js" - }, - "./": "./" - } -} diff --git a/node_modules/@aws-crypto/crc32/node_modules/tslib/test/validateModuleExportsMatchCommonJS/index.js b/node_modules/@aws-crypto/crc32/node_modules/tslib/test/validateModuleExportsMatchCommonJS/index.js deleted file mode 100644 index 0c1b613d..00000000 --- a/node_modules/@aws-crypto/crc32/node_modules/tslib/test/validateModuleExportsMatchCommonJS/index.js +++ /dev/null @@ -1,23 +0,0 @@ -// When on node 14, it validates that all of the commonjs exports -// are correctly re-exported for es modules importers. - -const nodeMajor = Number(process.version.split(".")[0].slice(1)) -if (nodeMajor < 14) { - console.log("Skipping because node does not support module exports.") - process.exit(0) -} - -// ES Modules import via the ./modules folder -import * as esTSLib from "../../modules/index.js" - -// Force a commonjs resolve -import { createRequire } from "module"; -const commonJSTSLib = createRequire(import.meta.url)("../../tslib.js"); - -for (const key in commonJSTSLib) { - if (commonJSTSLib.hasOwnProperty(key)) { - if(!esTSLib[key]) throw new Error(`ESModules is missing ${key} - it needs to be re-exported in ./modules/index.js`) - } -} - -console.log("All exports in commonjs are available for es module consumers.") diff --git a/node_modules/@aws-crypto/crc32/node_modules/tslib/test/validateModuleExportsMatchCommonJS/package.json b/node_modules/@aws-crypto/crc32/node_modules/tslib/test/validateModuleExportsMatchCommonJS/package.json deleted file mode 100644 index 166e5095..00000000 --- a/node_modules/@aws-crypto/crc32/node_modules/tslib/test/validateModuleExportsMatchCommonJS/package.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "type": "module", - "scripts": { - "test": "node index.js" - } -} diff --git a/node_modules/@aws-crypto/crc32/node_modules/tslib/tslib.d.ts b/node_modules/@aws-crypto/crc32/node_modules/tslib/tslib.d.ts deleted file mode 100644 index 0756b28e..00000000 --- a/node_modules/@aws-crypto/crc32/node_modules/tslib/tslib.d.ts +++ /dev/null @@ -1,37 +0,0 @@ -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */ -export declare function __extends(d: Function, b: Function): void; -export declare function __assign(t: any, ...sources: any[]): any; -export declare function __rest(t: any, propertyNames: (string | symbol)[]): any; -export declare function __decorate(decorators: Function[], target: any, key?: string | symbol, desc?: any): any; -export declare function __param(paramIndex: number, decorator: Function): Function; -export declare function __metadata(metadataKey: any, metadataValue: any): Function; -export declare function __awaiter(thisArg: any, _arguments: any, P: Function, generator: Function): any; -export declare function __generator(thisArg: any, body: Function): any; -export declare function __exportStar(m: any, exports: any): void; -export declare function __values(o: any): any; -export declare function __read(o: any, n?: number): any[]; -export declare function __spread(...args: any[][]): any[]; -export declare function __spreadArrays(...args: any[][]): any[]; -export declare function __await(v: any): any; -export declare function __asyncGenerator(thisArg: any, _arguments: any, generator: Function): any; -export declare function __asyncDelegator(o: any): any; -export declare function __asyncValues(o: any): any; -export declare function __makeTemplateObject(cooked: string[], raw: string[]): TemplateStringsArray; -export declare function __importStar(mod: T): T; -export declare function __importDefault(mod: T): T | { default: T }; -export declare function __classPrivateFieldGet(receiver: T, privateMap: { has(o: T): boolean, get(o: T): V | undefined }): V; -export declare function __classPrivateFieldSet(receiver: T, privateMap: { has(o: T): boolean, set(o: T, value: V): any }, value: V): V; -export declare function __createBinding(object: object, target: object, key: PropertyKey, objectKey?: PropertyKey): void; \ No newline at end of file diff --git a/node_modules/@aws-crypto/crc32/node_modules/tslib/tslib.es6.html b/node_modules/@aws-crypto/crc32/node_modules/tslib/tslib.es6.html deleted file mode 100644 index b122e41b..00000000 --- a/node_modules/@aws-crypto/crc32/node_modules/tslib/tslib.es6.html +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/node_modules/@aws-crypto/crc32/node_modules/tslib/tslib.es6.js b/node_modules/@aws-crypto/crc32/node_modules/tslib/tslib.es6.js deleted file mode 100644 index 0e0d8d07..00000000 --- a/node_modules/@aws-crypto/crc32/node_modules/tslib/tslib.es6.js +++ /dev/null @@ -1,218 +0,0 @@ -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */ -/* global Reflect, Promise */ - -var extendStatics = function(d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; - return extendStatics(d, b); -}; - -export function __extends(d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); -} - -export var __assign = function() { - __assign = Object.assign || function __assign(t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; - } - return t; - } - return __assign.apply(this, arguments); -} - -export function __rest(s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -} - -export function __decorate(decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; -} - -export function __param(paramIndex, decorator) { - return function (target, key) { decorator(target, key, paramIndex); } -} - -export function __metadata(metadataKey, metadataValue) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue); -} - -export function __awaiter(thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -} - -export function __generator(thisArg, body) { - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; - return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; - function verb(n) { return function (v) { return step([n, v]); }; } - function step(op) { - if (f) throw new TypeError("Generator is already executing."); - while (_) try { - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [op[0] & 2, t.value]; - switch (op[0]) { - case 0: case 1: t = op; break; - case 4: _.label++; return { value: op[1], done: false }; - case 5: _.label++; y = op[1]; op = [0]; continue; - case 7: op = _.ops.pop(); _.trys.pop(); continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } - if (t[2]) _.ops.pop(); - _.trys.pop(); continue; - } - op = body.call(thisArg, _); - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; - } -} - -export function __createBinding(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -} - -export function __exportStar(m, exports) { - for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) exports[p] = m[p]; -} - -export function __values(o) { - var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; - if (m) return m.call(o); - if (o && typeof o.length === "number") return { - next: function () { - if (o && i >= o.length) o = void 0; - return { value: o && o[i++], done: !o }; - } - }; - throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); -} - -export function __read(o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -} - -export function __spread() { - for (var ar = [], i = 0; i < arguments.length; i++) - ar = ar.concat(__read(arguments[i])); - return ar; -} - -export function __spreadArrays() { - for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; - for (var r = Array(s), k = 0, i = 0; i < il; i++) - for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) - r[k] = a[j]; - return r; -}; - -export function __await(v) { - return this instanceof __await ? (this.v = v, this) : new __await(v); -} - -export function __asyncGenerator(thisArg, _arguments, generator) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } - function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } - function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } - function fulfill(value) { resume("next", value); } - function reject(value) { resume("throw", value); } - function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -} - -export function __asyncDelegator(o) { - var i, p; - return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; - function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; } -} - -export function __asyncValues(o) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var m = o[Symbol.asyncIterator], i; - return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); - function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } - function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } -} - -export function __makeTemplateObject(cooked, raw) { - if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } - return cooked; -}; - -export function __importStar(mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; - result.default = mod; - return result; -} - -export function __importDefault(mod) { - return (mod && mod.__esModule) ? mod : { default: mod }; -} - -export function __classPrivateFieldGet(receiver, privateMap) { - if (!privateMap.has(receiver)) { - throw new TypeError("attempted to get private field on non-instance"); - } - return privateMap.get(receiver); -} - -export function __classPrivateFieldSet(receiver, privateMap, value) { - if (!privateMap.has(receiver)) { - throw new TypeError("attempted to set private field on non-instance"); - } - privateMap.set(receiver, value); - return value; -} diff --git a/node_modules/@aws-crypto/crc32/node_modules/tslib/tslib.html b/node_modules/@aws-crypto/crc32/node_modules/tslib/tslib.html deleted file mode 100644 index 44c9ba51..00000000 --- a/node_modules/@aws-crypto/crc32/node_modules/tslib/tslib.html +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/node_modules/@aws-crypto/crc32/node_modules/tslib/tslib.js b/node_modules/@aws-crypto/crc32/node_modules/tslib/tslib.js deleted file mode 100644 index e5b7c9b8..00000000 --- a/node_modules/@aws-crypto/crc32/node_modules/tslib/tslib.js +++ /dev/null @@ -1,284 +0,0 @@ -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */ - -/* global global, define, System, Reflect, Promise */ -var __extends; -var __assign; -var __rest; -var __decorate; -var __param; -var __metadata; -var __awaiter; -var __generator; -var __exportStar; -var __values; -var __read; -var __spread; -var __spreadArrays; -var __await; -var __asyncGenerator; -var __asyncDelegator; -var __asyncValues; -var __makeTemplateObject; -var __importStar; -var __importDefault; -var __classPrivateFieldGet; -var __classPrivateFieldSet; -var __createBinding; -(function (factory) { - var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {}; - if (typeof define === "function" && define.amd) { - define("tslib", ["exports"], function (exports) { factory(createExporter(root, createExporter(exports))); }); - } - else if (typeof module === "object" && typeof module.exports === "object") { - factory(createExporter(root, createExporter(module.exports))); - } - else { - factory(createExporter(root)); - } - function createExporter(exports, previous) { - if (exports !== root) { - if (typeof Object.create === "function") { - Object.defineProperty(exports, "__esModule", { value: true }); - } - else { - exports.__esModule = true; - } - } - return function (id, v) { return exports[id] = previous ? previous(id, v) : v; }; - } -}) -(function (exporter) { - var extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; - - __extends = function (d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; - - __assign = Object.assign || function (t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; - } - return t; - }; - - __rest = function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; - }; - - __decorate = function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; - }; - - __param = function (paramIndex, decorator) { - return function (target, key) { decorator(target, key, paramIndex); } - }; - - __metadata = function (metadataKey, metadataValue) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue); - }; - - __awaiter = function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); - }; - - __generator = function (thisArg, body) { - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; - return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; - function verb(n) { return function (v) { return step([n, v]); }; } - function step(op) { - if (f) throw new TypeError("Generator is already executing."); - while (_) try { - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [op[0] & 2, t.value]; - switch (op[0]) { - case 0: case 1: t = op; break; - case 4: _.label++; return { value: op[1], done: false }; - case 5: _.label++; y = op[1]; op = [0]; continue; - case 7: op = _.ops.pop(); _.trys.pop(); continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } - if (t[2]) _.ops.pop(); - _.trys.pop(); continue; - } - op = body.call(thisArg, _); - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; - } - }; - - __createBinding = function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; - }; - - __exportStar = function (m, exports) { - for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) exports[p] = m[p]; - }; - - __values = function (o) { - var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; - if (m) return m.call(o); - if (o && typeof o.length === "number") return { - next: function () { - if (o && i >= o.length) o = void 0; - return { value: o && o[i++], done: !o }; - } - }; - throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); - }; - - __read = function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; - }; - - __spread = function () { - for (var ar = [], i = 0; i < arguments.length; i++) - ar = ar.concat(__read(arguments[i])); - return ar; - }; - - __spreadArrays = function () { - for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; - for (var r = Array(s), k = 0, i = 0; i < il; i++) - for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) - r[k] = a[j]; - return r; - }; - - __await = function (v) { - return this instanceof __await ? (this.v = v, this) : new __await(v); - }; - - __asyncGenerator = function (thisArg, _arguments, generator) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } - function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } - function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } - function fulfill(value) { resume("next", value); } - function reject(value) { resume("throw", value); } - function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } - }; - - __asyncDelegator = function (o) { - var i, p; - return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; - function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; } - }; - - __asyncValues = function (o) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var m = o[Symbol.asyncIterator], i; - return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); - function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } - function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } - }; - - __makeTemplateObject = function (cooked, raw) { - if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } - return cooked; - }; - - __importStar = function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; - result["default"] = mod; - return result; - }; - - __importDefault = function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; - }; - - __classPrivateFieldGet = function (receiver, privateMap) { - if (!privateMap.has(receiver)) { - throw new TypeError("attempted to get private field on non-instance"); - } - return privateMap.get(receiver); - }; - - __classPrivateFieldSet = function (receiver, privateMap, value) { - if (!privateMap.has(receiver)) { - throw new TypeError("attempted to set private field on non-instance"); - } - privateMap.set(receiver, value); - return value; - }; - - exporter("__extends", __extends); - exporter("__assign", __assign); - exporter("__rest", __rest); - exporter("__decorate", __decorate); - exporter("__param", __param); - exporter("__metadata", __metadata); - exporter("__awaiter", __awaiter); - exporter("__generator", __generator); - exporter("__exportStar", __exportStar); - exporter("__createBinding", __createBinding); - exporter("__values", __values); - exporter("__read", __read); - exporter("__spread", __spread); - exporter("__spreadArrays", __spreadArrays); - exporter("__await", __await); - exporter("__asyncGenerator", __asyncGenerator); - exporter("__asyncDelegator", __asyncDelegator); - exporter("__asyncValues", __asyncValues); - exporter("__makeTemplateObject", __makeTemplateObject); - exporter("__importStar", __importStar); - exporter("__importDefault", __importDefault); - exporter("__classPrivateFieldGet", __classPrivateFieldGet); - exporter("__classPrivateFieldSet", __classPrivateFieldSet); -}); diff --git a/node_modules/@aws-crypto/crc32/package.json b/node_modules/@aws-crypto/crc32/package.json deleted file mode 100644 index d7383d9f..00000000 --- a/node_modules/@aws-crypto/crc32/package.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "name": "@aws-crypto/crc32", - "version": "3.0.0", - "scripts": { - "prepublishOnly": "tsc", - "pretest": "tsc -p tsconfig.test.json", - "test": "mocha --require ts-node/register test/**/*test.ts" - }, - "main": "./build/index.js", - "types": "./build/index.d.ts", - "repository": { - "type": "git", - "url": "git@github.com:aws/aws-sdk-js-crypto-helpers.git" - }, - "author": { - "name": "AWS Crypto Tools Team", - "email": "aws-cryptools@amazon.com", - "url": "https://docs.aws.amazon.com/aws-crypto-tools/index.html?id=docs_gateway#lang/en_us" - }, - "homepage": "https://github.com/aws/aws-sdk-js-crypto-helpers/tree/master/packages/crc32", - "license": "Apache-2.0", - "dependencies": { - "@aws-crypto/util": "^3.0.0", - "@aws-sdk/types": "^3.222.0", - "tslib": "^1.11.1" - }, - "gitHead": "7f56cee8f62bd65cd397eeec29c3c997215bd80c" -} diff --git a/node_modules/@aws-crypto/crc32/src/aws_crc32.ts b/node_modules/@aws-crypto/crc32/src/aws_crc32.ts deleted file mode 100644 index bee48c9b..00000000 --- a/node_modules/@aws-crypto/crc32/src/aws_crc32.ts +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. -// SPDX-License-Identifier: Apache-2.0 - -import { SourceData, Checksum } from "@aws-sdk/types"; -import { convertToBuffer, isEmptyData, numToUint8 } from "@aws-crypto/util"; -import { Crc32 } from "./index"; - -export class AwsCrc32 implements Checksum { - private crc32 = new Crc32(); - - update(toHash: SourceData) { - if (isEmptyData(toHash)) return; - - this.crc32.update(convertToBuffer(toHash)); - } - - async digest(): Promise { - return numToUint8(this.crc32.digest()); - } - - reset(): void { - this.crc32 = new Crc32(); - } -} diff --git a/node_modules/@aws-crypto/crc32/src/index.ts b/node_modules/@aws-crypto/crc32/src/index.ts deleted file mode 100644 index 47623867..00000000 --- a/node_modules/@aws-crypto/crc32/src/index.ts +++ /dev/null @@ -1,92 +0,0 @@ -import {uint32ArrayFrom} from "@aws-crypto/util"; - -export function crc32(data: Uint8Array): number { - return new Crc32().update(data).digest(); -} - -export class Crc32 { - private checksum = 0xffffffff; - - update(data: Uint8Array): this { - for (const byte of data) { - this.checksum = - (this.checksum >>> 8) ^ lookupTable[(this.checksum ^ byte) & 0xff]; - } - - return this; - } - - digest(): number { - return (this.checksum ^ 0xffffffff) >>> 0; - } -} - -// prettier-ignore -const a_lookUpTable = [ - 0x00000000, 0x77073096, 0xEE0E612C, 0x990951BA, - 0x076DC419, 0x706AF48F, 0xE963A535, 0x9E6495A3, - 0x0EDB8832, 0x79DCB8A4, 0xE0D5E91E, 0x97D2D988, - 0x09B64C2B, 0x7EB17CBD, 0xE7B82D07, 0x90BF1D91, - 0x1DB71064, 0x6AB020F2, 0xF3B97148, 0x84BE41DE, - 0x1ADAD47D, 0x6DDDE4EB, 0xF4D4B551, 0x83D385C7, - 0x136C9856, 0x646BA8C0, 0xFD62F97A, 0x8A65C9EC, - 0x14015C4F, 0x63066CD9, 0xFA0F3D63, 0x8D080DF5, - 0x3B6E20C8, 0x4C69105E, 0xD56041E4, 0xA2677172, - 0x3C03E4D1, 0x4B04D447, 0xD20D85FD, 0xA50AB56B, - 0x35B5A8FA, 0x42B2986C, 0xDBBBC9D6, 0xACBCF940, - 0x32D86CE3, 0x45DF5C75, 0xDCD60DCF, 0xABD13D59, - 0x26D930AC, 0x51DE003A, 0xC8D75180, 0xBFD06116, - 0x21B4F4B5, 0x56B3C423, 0xCFBA9599, 0xB8BDA50F, - 0x2802B89E, 0x5F058808, 0xC60CD9B2, 0xB10BE924, - 0x2F6F7C87, 0x58684C11, 0xC1611DAB, 0xB6662D3D, - 0x76DC4190, 0x01DB7106, 0x98D220BC, 0xEFD5102A, - 0x71B18589, 0x06B6B51F, 0x9FBFE4A5, 0xE8B8D433, - 0x7807C9A2, 0x0F00F934, 0x9609A88E, 0xE10E9818, - 0x7F6A0DBB, 0x086D3D2D, 0x91646C97, 0xE6635C01, - 0x6B6B51F4, 0x1C6C6162, 0x856530D8, 0xF262004E, - 0x6C0695ED, 0x1B01A57B, 0x8208F4C1, 0xF50FC457, - 0x65B0D9C6, 0x12B7E950, 0x8BBEB8EA, 0xFCB9887C, - 0x62DD1DDF, 0x15DA2D49, 0x8CD37CF3, 0xFBD44C65, - 0x4DB26158, 0x3AB551CE, 0xA3BC0074, 0xD4BB30E2, - 0x4ADFA541, 0x3DD895D7, 0xA4D1C46D, 0xD3D6F4FB, - 0x4369E96A, 0x346ED9FC, 0xAD678846, 0xDA60B8D0, - 0x44042D73, 0x33031DE5, 0xAA0A4C5F, 0xDD0D7CC9, - 0x5005713C, 0x270241AA, 0xBE0B1010, 0xC90C2086, - 0x5768B525, 0x206F85B3, 0xB966D409, 0xCE61E49F, - 0x5EDEF90E, 0x29D9C998, 0xB0D09822, 0xC7D7A8B4, - 0x59B33D17, 0x2EB40D81, 0xB7BD5C3B, 0xC0BA6CAD, - 0xEDB88320, 0x9ABFB3B6, 0x03B6E20C, 0x74B1D29A, - 0xEAD54739, 0x9DD277AF, 0x04DB2615, 0x73DC1683, - 0xE3630B12, 0x94643B84, 0x0D6D6A3E, 0x7A6A5AA8, - 0xE40ECF0B, 0x9309FF9D, 0x0A00AE27, 0x7D079EB1, - 0xF00F9344, 0x8708A3D2, 0x1E01F268, 0x6906C2FE, - 0xF762575D, 0x806567CB, 0x196C3671, 0x6E6B06E7, - 0xFED41B76, 0x89D32BE0, 0x10DA7A5A, 0x67DD4ACC, - 0xF9B9DF6F, 0x8EBEEFF9, 0x17B7BE43, 0x60B08ED5, - 0xD6D6A3E8, 0xA1D1937E, 0x38D8C2C4, 0x4FDFF252, - 0xD1BB67F1, 0xA6BC5767, 0x3FB506DD, 0x48B2364B, - 0xD80D2BDA, 0xAF0A1B4C, 0x36034AF6, 0x41047A60, - 0xDF60EFC3, 0xA867DF55, 0x316E8EEF, 0x4669BE79, - 0xCB61B38C, 0xBC66831A, 0x256FD2A0, 0x5268E236, - 0xCC0C7795, 0xBB0B4703, 0x220216B9, 0x5505262F, - 0xC5BA3BBE, 0xB2BD0B28, 0x2BB45A92, 0x5CB36A04, - 0xC2D7FFA7, 0xB5D0CF31, 0x2CD99E8B, 0x5BDEAE1D, - 0x9B64C2B0, 0xEC63F226, 0x756AA39C, 0x026D930A, - 0x9C0906A9, 0xEB0E363F, 0x72076785, 0x05005713, - 0x95BF4A82, 0xE2B87A14, 0x7BB12BAE, 0x0CB61B38, - 0x92D28E9B, 0xE5D5BE0D, 0x7CDCEFB7, 0x0BDBDF21, - 0x86D3D2D4, 0xF1D4E242, 0x68DDB3F8, 0x1FDA836E, - 0x81BE16CD, 0xF6B9265B, 0x6FB077E1, 0x18B74777, - 0x88085AE6, 0xFF0F6A70, 0x66063BCA, 0x11010B5C, - 0x8F659EFF, 0xF862AE69, 0x616BFFD3, 0x166CCF45, - 0xA00AE278, 0xD70DD2EE, 0x4E048354, 0x3903B3C2, - 0xA7672661, 0xD06016F7, 0x4969474D, 0x3E6E77DB, - 0xAED16A4A, 0xD9D65ADC, 0x40DF0B66, 0x37D83BF0, - 0xA9BCAE53, 0xDEBB9EC5, 0x47B2CF7F, 0x30B5FFE9, - 0xBDBDF21C, 0xCABAC28A, 0x53B39330, 0x24B4A3A6, - 0xBAD03605, 0xCDD70693, 0x54DE5729, 0x23D967BF, - 0xB3667A2E, 0xC4614AB8, 0x5D681B02, 0x2A6F2B94, - 0xB40BBE37, 0xC30C8EA1, 0x5A05DF1B, 0x2D02EF8D, -]; -const lookupTable: Uint32Array = uint32ArrayFrom(a_lookUpTable) -export { AwsCrc32 } from "./aws_crc32"; diff --git a/node_modules/@aws-crypto/crc32/tsconfig.json b/node_modules/@aws-crypto/crc32/tsconfig.json deleted file mode 100644 index 1691089a..00000000 --- a/node_modules/@aws-crypto/crc32/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "target": "es5", - "module": "commonjs", - "declaration": true, - "strict": true, - "sourceMap": true, - "downlevelIteration": true, - "importHelpers": true, - "noEmitHelpers": true, - "lib": [ - "es5", - "es2015.promise", - "es2015.collection", - "es2015.iterable", - "es2015.symbol.wellknown" - ], - "rootDir": "./src", - "outDir": "./build" - }, - "include": ["src/**/*.ts"], - "exclude": ["node_modules/**"] -} diff --git a/node_modules/@aws-crypto/ie11-detection/CHANGELOG.md b/node_modules/@aws-crypto/ie11-detection/CHANGELOG.md deleted file mode 100644 index 8232cc33..00000000 --- a/node_modules/@aws-crypto/ie11-detection/CHANGELOG.md +++ /dev/null @@ -1,46 +0,0 @@ -# Change Log - -All notable changes to this project will be documented in this file. -See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. - -# [3.0.0](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/v2.0.2...v3.0.0) (2023-01-12) - -**Note:** Version bump only for package @aws-crypto/ie11-detection - -## [2.0.2](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/v2.0.1...v2.0.2) (2022-09-07) - -**Note:** Version bump only for package @aws-crypto/ie11-detection - -# [2.0.0](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/v1.2.2...v2.0.0) (2021-10-25) - -**Note:** Version bump only for package @aws-crypto/ie11-detection - -# [1.0.0](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/@aws-crypto/ie11-detection@1.0.0-alpha.0...@aws-crypto/ie11-detection@1.0.0) (2020-10-22) - -### Bug Fixes - -- replace `sourceRoot` -> `rootDir` in tsconfig ([#169](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/169)) ([d437167](https://github.com/aws/aws-sdk-js-crypto-helpers/commit/d437167b51d1c56a4fcc2bb8a446b74a7e3b7e06)) - -# [1.0.0-alpha.0](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/@aws-crypto/ie11-detection@0.1.0-preview.4...@aws-crypto/ie11-detection@1.0.0-alpha.0) (2020-02-07) - -**Note:** Version bump only for package @aws-crypto/ie11-detection - -# [0.1.0-preview.4](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/@aws-crypto/ie11-detection@0.1.0-preview.2...@aws-crypto/ie11-detection@0.1.0-preview.4) (2020-01-16) - -### Bug Fixes - -- Changed package.json files to point to the right Git repo ([#9](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/9)) ([028245d](https://github.com/aws/aws-sdk-js-crypto-helpers/commit/028245d72e642ca98d82226afb300eb154503c4a)), closes [#8](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/8) -- lerna version maintains package-lock ([#14](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/14)) ([2ef29e1](https://github.com/aws/aws-sdk-js-crypto-helpers/commit/2ef29e13779703a5c9b32e93d18918fcb33b7272)), closes [#13](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/13) - -# [0.1.0-preview.3](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/@aws-crypto/ie11-detection@0.1.0-preview.2...@aws-crypto/ie11-detection@0.1.0-preview.3) (2019-11-15) - -### Bug Fixes - -- Changed package.json files to point to the right Git repo ([#9](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/9)) ([028245d](https://github.com/aws/aws-sdk-js-crypto-helpers/commit/028245d72e642ca98d82226afb300eb154503c4a)), closes [#8](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/8) -- lerna version maintains package-lock ([#14](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/14)) ([2ef29e1](https://github.com/aws/aws-sdk-js-crypto-helpers/commit/2ef29e13779703a5c9b32e93d18918fcb33b7272)), closes [#13](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/13) - -# [0.1.0-preview.2](https://github.com/aws/aws-javascript-crypto-helpers/compare/@aws-crypto/ie11-detection@0.1.0-preview.1...@aws-crypto/ie11-detection@0.1.0-preview.2) (2019-10-30) - -### Bug Fixes - -- remove /src/ from .npmignore (for sourcemaps) ([#5](https://github.com/aws/aws-javascript-crypto-helpers/issues/5)) ([ec52056](https://github.com/aws/aws-javascript-crypto-helpers/commit/ec52056)) diff --git a/node_modules/@aws-crypto/ie11-detection/LICENSE b/node_modules/@aws-crypto/ie11-detection/LICENSE deleted file mode 100644 index d6456956..00000000 --- a/node_modules/@aws-crypto/ie11-detection/LICENSE +++ /dev/null @@ -1,202 +0,0 @@ - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/node_modules/@aws-crypto/ie11-detection/README.md b/node_modules/@aws-crypto/ie11-detection/README.md deleted file mode 100644 index 9e411b0c..00000000 --- a/node_modules/@aws-crypto/ie11-detection/README.md +++ /dev/null @@ -1,20 +0,0 @@ -# @aws-crypto/ie11-detection - -Functions for interact with IE11 browsers Crypto. The IE11 `window.subtle` functions are unique. -This library is used to identify an IE11 `window` and then offering types for crypto functions. -For example see @aws-crypto/random-source-browser - -## Usage - -``` -import {isMsWindow} from '@aws-crypto/ie11-detection' - -if (isMsWindow(window)) { - // use `window.subtle.mscrypto` -} - -``` - -## Test - -`npm test` diff --git a/node_modules/@aws-crypto/ie11-detection/build/CryptoOperation.d.ts b/node_modules/@aws-crypto/ie11-detection/build/CryptoOperation.d.ts deleted file mode 100644 index c647f803..00000000 --- a/node_modules/@aws-crypto/ie11-detection/build/CryptoOperation.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { Key } from "./Key"; -/** - * Represents a cryptographic operation that has been instantiated but not - * necessarily fed all data or finalized. - * - * @see https://msdn.microsoft.com/en-us/library/dn280996(v=vs.85).aspx - */ -export interface CryptoOperation { - readonly algorithm: string; - readonly key: Key; - onabort: (event: Event) => void; - oncomplete: (event: Event) => void; - onerror: (event: Event) => void; - onprogress: (event: Event) => void; - readonly result: ArrayBuffer | undefined; - abort(): void; - finish(): void; - process(buffer: ArrayBufferView): void; -} diff --git a/node_modules/@aws-crypto/ie11-detection/build/CryptoOperation.js b/node_modules/@aws-crypto/ie11-detection/build/CryptoOperation.js deleted file mode 100644 index ea035c9e..00000000 --- a/node_modules/@aws-crypto/ie11-detection/build/CryptoOperation.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=CryptoOperation.js.map \ No newline at end of file diff --git a/node_modules/@aws-crypto/ie11-detection/build/CryptoOperation.js.map b/node_modules/@aws-crypto/ie11-detection/build/CryptoOperation.js.map deleted file mode 100644 index 95c3ef71..00000000 --- a/node_modules/@aws-crypto/ie11-detection/build/CryptoOperation.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"CryptoOperation.js","sourceRoot":"","sources":["../src/CryptoOperation.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/@aws-crypto/ie11-detection/build/Key.d.ts b/node_modules/@aws-crypto/ie11-detection/build/Key.d.ts deleted file mode 100644 index c8bd3b34..00000000 --- a/node_modules/@aws-crypto/ie11-detection/build/Key.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -/** - * The result of a successful KeyOperation. - * - * @see {KeyOperation} - * @see https://msdn.microsoft.com/en-us/library/dn302313(v=vs.85).aspx - */ -export interface Key { - readonly algorithm: string; - readonly extractable: boolean; - readonly keyUsage: Array; - readonly type: string; -} diff --git a/node_modules/@aws-crypto/ie11-detection/build/Key.js b/node_modules/@aws-crypto/ie11-detection/build/Key.js deleted file mode 100644 index b24b9af1..00000000 --- a/node_modules/@aws-crypto/ie11-detection/build/Key.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=Key.js.map \ No newline at end of file diff --git a/node_modules/@aws-crypto/ie11-detection/build/Key.js.map b/node_modules/@aws-crypto/ie11-detection/build/Key.js.map deleted file mode 100644 index c0454ea2..00000000 --- a/node_modules/@aws-crypto/ie11-detection/build/Key.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"Key.js","sourceRoot":"","sources":["../src/Key.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/@aws-crypto/ie11-detection/build/KeyOperation.d.ts b/node_modules/@aws-crypto/ie11-detection/build/KeyOperation.d.ts deleted file mode 100644 index 2e7c9a67..00000000 --- a/node_modules/@aws-crypto/ie11-detection/build/KeyOperation.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { Key } from "./Key"; -/** - * Represents the return of a key-related operation that may or may not have - * been completed. - * - * @see https://msdn.microsoft.com/en-us/library/dn302314(v=vs.85).aspx - */ -export interface KeyOperation { - oncomplete: (event: Event) => void; - onerror: (event: Event) => void; - readonly result: Key | undefined; -} diff --git a/node_modules/@aws-crypto/ie11-detection/build/KeyOperation.js b/node_modules/@aws-crypto/ie11-detection/build/KeyOperation.js deleted file mode 100644 index 04470988..00000000 --- a/node_modules/@aws-crypto/ie11-detection/build/KeyOperation.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=KeyOperation.js.map \ No newline at end of file diff --git a/node_modules/@aws-crypto/ie11-detection/build/KeyOperation.js.map b/node_modules/@aws-crypto/ie11-detection/build/KeyOperation.js.map deleted file mode 100644 index 3b343d34..00000000 --- a/node_modules/@aws-crypto/ie11-detection/build/KeyOperation.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"KeyOperation.js","sourceRoot":"","sources":["../src/KeyOperation.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/@aws-crypto/ie11-detection/build/MsSubtleCrypto.d.ts b/node_modules/@aws-crypto/ie11-detection/build/MsSubtleCrypto.d.ts deleted file mode 100644 index f52063a9..00000000 --- a/node_modules/@aws-crypto/ie11-detection/build/MsSubtleCrypto.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { CryptoOperation } from "./CryptoOperation"; -import { Key } from "./Key"; -import { KeyOperation } from "./KeyOperation"; -export type KeyUsage = "encrypt" | "decrypt" | "sign" | "verify" | "derive" | "wrapKey" | "unwrapKey" | "importKey"; -export type EncryptionOrVerificationAlgorithm = "RSAES-PKCS1-v1_5"; -export type Ie11EncryptionAlgorithm = "AES-CBC" | "AES-GCM" | "RSA-OAEP" | EncryptionOrVerificationAlgorithm; -export type Ie11DigestAlgorithm = "SHA-1" | "SHA-256" | "SHA-384"; -export interface HashAlgorithm { - name: Ie11DigestAlgorithm; -} -export interface HmacAlgorithm { - name: "HMAC"; - hash: HashAlgorithm; -} -export type SigningAlgorithm = HmacAlgorithm; -/** - * Represent ths SubtleCrypto interface as implemented in Internet Explorer 11. - * This implementation was based on an earlier version of the WebCrypto API and - * differs from the `window.crypto.subtle` object exposed in Chrome, Safari, - * Firefox, and MS Edge. - * - * @see https://msdn.microsoft.com/en-us/library/dn302325(v=vs.85).aspx - */ -export interface MsSubtleCrypto { - decrypt(algorithm: Ie11EncryptionAlgorithm, key: Key, buffer?: ArrayBufferView): CryptoOperation; - digest(algorithm: Ie11DigestAlgorithm, buffer?: ArrayBufferView): CryptoOperation; - encrypt(algorithm: Ie11EncryptionAlgorithm, key: Key, buffer?: ArrayBufferView): CryptoOperation; - exportKey(format: string, key: Key): KeyOperation; - generateKey(algorithm: SigningAlgorithm | Ie11EncryptionAlgorithm, extractable?: boolean, keyUsages?: Array): KeyOperation; - importKey(format: string, keyData: ArrayBufferView, algorithm: any, extractable?: boolean, keyUsages?: Array): KeyOperation; - sign(algorithm: SigningAlgorithm, key: Key, buffer?: ArrayBufferView): CryptoOperation; - verify(algorithm: SigningAlgorithm | EncryptionOrVerificationAlgorithm, key: Key, signature: ArrayBufferView, buffer?: ArrayBufferView): CryptoOperation; -} diff --git a/node_modules/@aws-crypto/ie11-detection/build/MsSubtleCrypto.js b/node_modules/@aws-crypto/ie11-detection/build/MsSubtleCrypto.js deleted file mode 100644 index 479b08af..00000000 --- a/node_modules/@aws-crypto/ie11-detection/build/MsSubtleCrypto.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -//# sourceMappingURL=MsSubtleCrypto.js.map \ No newline at end of file diff --git a/node_modules/@aws-crypto/ie11-detection/build/MsSubtleCrypto.js.map b/node_modules/@aws-crypto/ie11-detection/build/MsSubtleCrypto.js.map deleted file mode 100644 index 1955d281..00000000 --- a/node_modules/@aws-crypto/ie11-detection/build/MsSubtleCrypto.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"MsSubtleCrypto.js","sourceRoot":"","sources":["../src/MsSubtleCrypto.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/@aws-crypto/ie11-detection/build/MsWindow.d.ts b/node_modules/@aws-crypto/ie11-detection/build/MsWindow.d.ts deleted file mode 100644 index d5aaada8..00000000 --- a/node_modules/@aws-crypto/ie11-detection/build/MsWindow.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { MsSubtleCrypto } from "./MsSubtleCrypto"; -/** - * The value accessible as `window.msCrypto` in Internet Explorer 11. - */ -export interface MsCrypto { - getRandomValues: (toFill: Uint8Array) => void; - subtle: MsSubtleCrypto; -} -/** - * The `window` object in Internet Explorer 11. This interface does not - * exhaustively document the prefixed features of `window` in IE11. - */ -export interface MsWindow extends Window { - MSInputMethodContext: any; - msCrypto: MsCrypto; -} -/** - * Determines if the provided window is (or is like) the window object one would - * expect to encounter in Internet Explorer 11. - */ -export declare function isMsWindow(window: Window): window is MsWindow; diff --git a/node_modules/@aws-crypto/ie11-detection/build/MsWindow.js b/node_modules/@aws-crypto/ie11-detection/build/MsWindow.js deleted file mode 100644 index ceeb8f5e..00000000 --- a/node_modules/@aws-crypto/ie11-detection/build/MsWindow.js +++ /dev/null @@ -1,32 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isMsWindow = void 0; -var msSubtleCryptoMethods = [ - "decrypt", - "digest", - "encrypt", - "exportKey", - "generateKey", - "importKey", - "sign", - "verify" -]; -function quacksLikeAnMsWindow(window) { - return "MSInputMethodContext" in window && "msCrypto" in window; -} -/** - * Determines if the provided window is (or is like) the window object one would - * expect to encounter in Internet Explorer 11. - */ -function isMsWindow(window) { - if (quacksLikeAnMsWindow(window) && window.msCrypto.subtle !== undefined) { - var _a = window.msCrypto, getRandomValues = _a.getRandomValues, subtle_1 = _a.subtle; - return msSubtleCryptoMethods - .map(function (methodName) { return subtle_1[methodName]; }) - .concat(getRandomValues) - .every(function (method) { return typeof method === "function"; }); - } - return false; -} -exports.isMsWindow = isMsWindow; -//# sourceMappingURL=MsWindow.js.map \ No newline at end of file diff --git a/node_modules/@aws-crypto/ie11-detection/build/MsWindow.js.map b/node_modules/@aws-crypto/ie11-detection/build/MsWindow.js.map deleted file mode 100644 index 34223c91..00000000 --- a/node_modules/@aws-crypto/ie11-detection/build/MsWindow.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"MsWindow.js","sourceRoot":"","sources":["../src/MsWindow.ts"],"names":[],"mappings":";;;AAYA,IAAM,qBAAqB,GAA8B;IACvD,SAAS;IACT,QAAQ;IACR,SAAS;IACT,WAAW;IACX,aAAa;IACb,WAAW;IACX,MAAM;IACN,QAAQ;CACT,CAAC;AAmBF,SAAS,oBAAoB,CAAC,MAAc;IAC1C,OAAO,sBAAsB,IAAI,MAAM,IAAI,UAAU,IAAI,MAAM,CAAC;AAClE,CAAC;AAED;;;GAGG;AACH,SAAgB,UAAU,CAAC,MAAc;IACvC,IAAI,oBAAoB,CAAC,MAAM,CAAC,IAAI,MAAM,CAAC,QAAQ,CAAC,MAAM,KAAK,SAAS,EAAE;QAClE,IAAA,KAA8B,MAAM,CAAC,QAAQ,EAA3C,eAAe,qBAAA,EAAE,QAAM,YAAoB,CAAC;QACpD,OAAO,qBAAqB;aACzB,GAAG,CAAW,UAAA,UAAU,IAAI,OAAA,QAAM,CAAC,UAAU,CAAC,EAAlB,CAAkB,CAAC;aAC/C,MAAM,CAAC,eAAe,CAAC;aACvB,KAAK,CAAC,UAAA,MAAM,IAAI,OAAA,OAAO,MAAM,KAAK,UAAU,EAA5B,CAA4B,CAAC,CAAC;KAClD;IAED,OAAO,KAAK,CAAC;AACf,CAAC;AAVD,gCAUC"} \ No newline at end of file diff --git a/node_modules/@aws-crypto/ie11-detection/build/index.d.ts b/node_modules/@aws-crypto/ie11-detection/build/index.d.ts deleted file mode 100644 index 1e8c5e35..00000000 --- a/node_modules/@aws-crypto/ie11-detection/build/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export * from "./CryptoOperation"; -export * from "./Key"; -export * from "./KeyOperation"; -export * from "./MsSubtleCrypto"; -export * from "./MsWindow"; diff --git a/node_modules/@aws-crypto/ie11-detection/build/index.js b/node_modules/@aws-crypto/ie11-detection/build/index.js deleted file mode 100644 index 2de39c10..00000000 --- a/node_modules/@aws-crypto/ie11-detection/build/index.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./CryptoOperation"), exports); -tslib_1.__exportStar(require("./Key"), exports); -tslib_1.__exportStar(require("./KeyOperation"), exports); -tslib_1.__exportStar(require("./MsSubtleCrypto"), exports); -tslib_1.__exportStar(require("./MsWindow"), exports); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@aws-crypto/ie11-detection/build/index.js.map b/node_modules/@aws-crypto/ie11-detection/build/index.js.map deleted file mode 100644 index 8430e7a9..00000000 --- a/node_modules/@aws-crypto/ie11-detection/build/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,4DAAkC;AAClC,gDAAsB;AACtB,yDAA+B;AAC/B,2DAAiC;AACjC,qDAA2B"} \ No newline at end of file diff --git a/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/CopyrightNotice.txt b/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/CopyrightNotice.txt deleted file mode 100644 index 3d4c8234..00000000 --- a/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/CopyrightNotice.txt +++ /dev/null @@ -1,15 +0,0 @@ -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */ - diff --git a/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/LICENSE.txt b/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/LICENSE.txt deleted file mode 100644 index bfe6430c..00000000 --- a/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/LICENSE.txt +++ /dev/null @@ -1,12 +0,0 @@ -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. \ No newline at end of file diff --git a/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/README.md b/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/README.md deleted file mode 100644 index a5b2692c..00000000 --- a/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/README.md +++ /dev/null @@ -1,142 +0,0 @@ -# tslib - -This is a runtime library for [TypeScript](http://www.typescriptlang.org/) that contains all of the TypeScript helper functions. - -This library is primarily used by the `--importHelpers` flag in TypeScript. -When using `--importHelpers`, a module that uses helper functions like `__extends` and `__assign` in the following emitted file: - -```ts -var __assign = (this && this.__assign) || Object.assign || function(t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) - t[p] = s[p]; - } - return t; -}; -exports.x = {}; -exports.y = __assign({}, exports.x); - -``` - -will instead be emitted as something like the following: - -```ts -var tslib_1 = require("tslib"); -exports.x = {}; -exports.y = tslib_1.__assign({}, exports.x); -``` - -Because this can avoid duplicate declarations of things like `__extends`, `__assign`, etc., this means delivering users smaller files on average, as well as less runtime overhead. -For optimized bundles with TypeScript, you should absolutely consider using `tslib` and `--importHelpers`. - -# Installing - -For the latest stable version, run: - -## npm - -```sh -# TypeScript 2.3.3 or later -npm install tslib - -# TypeScript 2.3.2 or earlier -npm install tslib@1.6.1 -``` - -## yarn - -```sh -# TypeScript 2.3.3 or later -yarn add tslib - -# TypeScript 2.3.2 or earlier -yarn add tslib@1.6.1 -``` - -## bower - -```sh -# TypeScript 2.3.3 or later -bower install tslib - -# TypeScript 2.3.2 or earlier -bower install tslib@1.6.1 -``` - -## JSPM - -```sh -# TypeScript 2.3.3 or later -jspm install tslib - -# TypeScript 2.3.2 or earlier -jspm install tslib@1.6.1 -``` - -# Usage - -Set the `importHelpers` compiler option on the command line: - -``` -tsc --importHelpers file.ts -``` - -or in your tsconfig.json: - -```json -{ - "compilerOptions": { - "importHelpers": true - } -} -``` - -#### For bower and JSPM users - -You will need to add a `paths` mapping for `tslib`, e.g. For Bower users: - -```json -{ - "compilerOptions": { - "module": "amd", - "importHelpers": true, - "baseUrl": "./", - "paths": { - "tslib" : ["bower_components/tslib/tslib.d.ts"] - } - } -} -``` - -For JSPM users: - -```json -{ - "compilerOptions": { - "module": "system", - "importHelpers": true, - "baseUrl": "./", - "paths": { - "tslib" : ["jspm_packages/npm/tslib@1.[version].0/tslib.d.ts"] - } - } -} -``` - - -# Contribute - -There are many ways to [contribute](https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md) to TypeScript. - -* [Submit bugs](https://github.com/Microsoft/TypeScript/issues) and help us verify fixes as they are checked in. -* Review the [source code changes](https://github.com/Microsoft/TypeScript/pulls). -* Engage with other TypeScript users and developers on [StackOverflow](http://stackoverflow.com/questions/tagged/typescript). -* Join the [#typescript](http://twitter.com/#!/search/realtime/%23typescript) discussion on Twitter. -* [Contribute bug fixes](https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md). - -# Documentation - -* [Quick tutorial](http://www.typescriptlang.org/Tutorial) -* [Programming handbook](http://www.typescriptlang.org/Handbook) -* [Homepage](http://www.typescriptlang.org/) diff --git a/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/modules/index.js b/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/modules/index.js deleted file mode 100644 index d241d042..00000000 --- a/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/modules/index.js +++ /dev/null @@ -1,51 +0,0 @@ -import tslib from '../tslib.js'; -const { - __extends, - __assign, - __rest, - __decorate, - __param, - __metadata, - __awaiter, - __generator, - __exportStar, - __createBinding, - __values, - __read, - __spread, - __spreadArrays, - __await, - __asyncGenerator, - __asyncDelegator, - __asyncValues, - __makeTemplateObject, - __importStar, - __importDefault, - __classPrivateFieldGet, - __classPrivateFieldSet, -} = tslib; -export { - __extends, - __assign, - __rest, - __decorate, - __param, - __metadata, - __awaiter, - __generator, - __exportStar, - __createBinding, - __values, - __read, - __spread, - __spreadArrays, - __await, - __asyncGenerator, - __asyncDelegator, - __asyncValues, - __makeTemplateObject, - __importStar, - __importDefault, - __classPrivateFieldGet, - __classPrivateFieldSet, -}; diff --git a/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/modules/package.json b/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/modules/package.json deleted file mode 100644 index aafa0e4b..00000000 --- a/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/modules/package.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "type": "module" -} \ No newline at end of file diff --git a/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/package.json b/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/package.json deleted file mode 100644 index f8c2a53d..00000000 --- a/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/package.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "name": "tslib", - "author": "Microsoft Corp.", - "homepage": "https://www.typescriptlang.org/", - "version": "1.14.1", - "license": "0BSD", - "description": "Runtime library for TypeScript helper functions", - "keywords": [ - "TypeScript", - "Microsoft", - "compiler", - "language", - "javascript", - "tslib", - "runtime" - ], - "bugs": { - "url": "https://github.com/Microsoft/TypeScript/issues" - }, - "repository": { - "type": "git", - "url": "https://github.com/Microsoft/tslib.git" - }, - "main": "tslib.js", - "module": "tslib.es6.js", - "jsnext:main": "tslib.es6.js", - "typings": "tslib.d.ts", - "sideEffects": false, - "exports": { - ".": { - "module": "./tslib.es6.js", - "import": "./modules/index.js", - "default": "./tslib.js" - }, - "./": "./" - } -} diff --git a/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/test/validateModuleExportsMatchCommonJS/index.js b/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/test/validateModuleExportsMatchCommonJS/index.js deleted file mode 100644 index 0c1b613d..00000000 --- a/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/test/validateModuleExportsMatchCommonJS/index.js +++ /dev/null @@ -1,23 +0,0 @@ -// When on node 14, it validates that all of the commonjs exports -// are correctly re-exported for es modules importers. - -const nodeMajor = Number(process.version.split(".")[0].slice(1)) -if (nodeMajor < 14) { - console.log("Skipping because node does not support module exports.") - process.exit(0) -} - -// ES Modules import via the ./modules folder -import * as esTSLib from "../../modules/index.js" - -// Force a commonjs resolve -import { createRequire } from "module"; -const commonJSTSLib = createRequire(import.meta.url)("../../tslib.js"); - -for (const key in commonJSTSLib) { - if (commonJSTSLib.hasOwnProperty(key)) { - if(!esTSLib[key]) throw new Error(`ESModules is missing ${key} - it needs to be re-exported in ./modules/index.js`) - } -} - -console.log("All exports in commonjs are available for es module consumers.") diff --git a/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/test/validateModuleExportsMatchCommonJS/package.json b/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/test/validateModuleExportsMatchCommonJS/package.json deleted file mode 100644 index 166e5095..00000000 --- a/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/test/validateModuleExportsMatchCommonJS/package.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "type": "module", - "scripts": { - "test": "node index.js" - } -} diff --git a/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/tslib.d.ts b/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/tslib.d.ts deleted file mode 100644 index 0756b28e..00000000 --- a/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/tslib.d.ts +++ /dev/null @@ -1,37 +0,0 @@ -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */ -export declare function __extends(d: Function, b: Function): void; -export declare function __assign(t: any, ...sources: any[]): any; -export declare function __rest(t: any, propertyNames: (string | symbol)[]): any; -export declare function __decorate(decorators: Function[], target: any, key?: string | symbol, desc?: any): any; -export declare function __param(paramIndex: number, decorator: Function): Function; -export declare function __metadata(metadataKey: any, metadataValue: any): Function; -export declare function __awaiter(thisArg: any, _arguments: any, P: Function, generator: Function): any; -export declare function __generator(thisArg: any, body: Function): any; -export declare function __exportStar(m: any, exports: any): void; -export declare function __values(o: any): any; -export declare function __read(o: any, n?: number): any[]; -export declare function __spread(...args: any[][]): any[]; -export declare function __spreadArrays(...args: any[][]): any[]; -export declare function __await(v: any): any; -export declare function __asyncGenerator(thisArg: any, _arguments: any, generator: Function): any; -export declare function __asyncDelegator(o: any): any; -export declare function __asyncValues(o: any): any; -export declare function __makeTemplateObject(cooked: string[], raw: string[]): TemplateStringsArray; -export declare function __importStar(mod: T): T; -export declare function __importDefault(mod: T): T | { default: T }; -export declare function __classPrivateFieldGet(receiver: T, privateMap: { has(o: T): boolean, get(o: T): V | undefined }): V; -export declare function __classPrivateFieldSet(receiver: T, privateMap: { has(o: T): boolean, set(o: T, value: V): any }, value: V): V; -export declare function __createBinding(object: object, target: object, key: PropertyKey, objectKey?: PropertyKey): void; \ No newline at end of file diff --git a/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/tslib.es6.html b/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/tslib.es6.html deleted file mode 100644 index b122e41b..00000000 --- a/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/tslib.es6.html +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/tslib.es6.js b/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/tslib.es6.js deleted file mode 100644 index 0e0d8d07..00000000 --- a/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/tslib.es6.js +++ /dev/null @@ -1,218 +0,0 @@ -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */ -/* global Reflect, Promise */ - -var extendStatics = function(d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; - return extendStatics(d, b); -}; - -export function __extends(d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); -} - -export var __assign = function() { - __assign = Object.assign || function __assign(t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; - } - return t; - } - return __assign.apply(this, arguments); -} - -export function __rest(s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -} - -export function __decorate(decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; -} - -export function __param(paramIndex, decorator) { - return function (target, key) { decorator(target, key, paramIndex); } -} - -export function __metadata(metadataKey, metadataValue) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue); -} - -export function __awaiter(thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -} - -export function __generator(thisArg, body) { - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; - return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; - function verb(n) { return function (v) { return step([n, v]); }; } - function step(op) { - if (f) throw new TypeError("Generator is already executing."); - while (_) try { - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [op[0] & 2, t.value]; - switch (op[0]) { - case 0: case 1: t = op; break; - case 4: _.label++; return { value: op[1], done: false }; - case 5: _.label++; y = op[1]; op = [0]; continue; - case 7: op = _.ops.pop(); _.trys.pop(); continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } - if (t[2]) _.ops.pop(); - _.trys.pop(); continue; - } - op = body.call(thisArg, _); - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; - } -} - -export function __createBinding(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -} - -export function __exportStar(m, exports) { - for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) exports[p] = m[p]; -} - -export function __values(o) { - var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; - if (m) return m.call(o); - if (o && typeof o.length === "number") return { - next: function () { - if (o && i >= o.length) o = void 0; - return { value: o && o[i++], done: !o }; - } - }; - throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); -} - -export function __read(o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -} - -export function __spread() { - for (var ar = [], i = 0; i < arguments.length; i++) - ar = ar.concat(__read(arguments[i])); - return ar; -} - -export function __spreadArrays() { - for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; - for (var r = Array(s), k = 0, i = 0; i < il; i++) - for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) - r[k] = a[j]; - return r; -}; - -export function __await(v) { - return this instanceof __await ? (this.v = v, this) : new __await(v); -} - -export function __asyncGenerator(thisArg, _arguments, generator) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } - function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } - function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } - function fulfill(value) { resume("next", value); } - function reject(value) { resume("throw", value); } - function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -} - -export function __asyncDelegator(o) { - var i, p; - return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; - function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; } -} - -export function __asyncValues(o) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var m = o[Symbol.asyncIterator], i; - return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); - function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } - function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } -} - -export function __makeTemplateObject(cooked, raw) { - if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } - return cooked; -}; - -export function __importStar(mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; - result.default = mod; - return result; -} - -export function __importDefault(mod) { - return (mod && mod.__esModule) ? mod : { default: mod }; -} - -export function __classPrivateFieldGet(receiver, privateMap) { - if (!privateMap.has(receiver)) { - throw new TypeError("attempted to get private field on non-instance"); - } - return privateMap.get(receiver); -} - -export function __classPrivateFieldSet(receiver, privateMap, value) { - if (!privateMap.has(receiver)) { - throw new TypeError("attempted to set private field on non-instance"); - } - privateMap.set(receiver, value); - return value; -} diff --git a/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/tslib.html b/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/tslib.html deleted file mode 100644 index 44c9ba51..00000000 --- a/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/tslib.html +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/tslib.js b/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/tslib.js deleted file mode 100644 index e5b7c9b8..00000000 --- a/node_modules/@aws-crypto/ie11-detection/node_modules/tslib/tslib.js +++ /dev/null @@ -1,284 +0,0 @@ -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */ - -/* global global, define, System, Reflect, Promise */ -var __extends; -var __assign; -var __rest; -var __decorate; -var __param; -var __metadata; -var __awaiter; -var __generator; -var __exportStar; -var __values; -var __read; -var __spread; -var __spreadArrays; -var __await; -var __asyncGenerator; -var __asyncDelegator; -var __asyncValues; -var __makeTemplateObject; -var __importStar; -var __importDefault; -var __classPrivateFieldGet; -var __classPrivateFieldSet; -var __createBinding; -(function (factory) { - var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {}; - if (typeof define === "function" && define.amd) { - define("tslib", ["exports"], function (exports) { factory(createExporter(root, createExporter(exports))); }); - } - else if (typeof module === "object" && typeof module.exports === "object") { - factory(createExporter(root, createExporter(module.exports))); - } - else { - factory(createExporter(root)); - } - function createExporter(exports, previous) { - if (exports !== root) { - if (typeof Object.create === "function") { - Object.defineProperty(exports, "__esModule", { value: true }); - } - else { - exports.__esModule = true; - } - } - return function (id, v) { return exports[id] = previous ? previous(id, v) : v; }; - } -}) -(function (exporter) { - var extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; - - __extends = function (d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; - - __assign = Object.assign || function (t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; - } - return t; - }; - - __rest = function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; - }; - - __decorate = function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; - }; - - __param = function (paramIndex, decorator) { - return function (target, key) { decorator(target, key, paramIndex); } - }; - - __metadata = function (metadataKey, metadataValue) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue); - }; - - __awaiter = function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); - }; - - __generator = function (thisArg, body) { - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; - return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; - function verb(n) { return function (v) { return step([n, v]); }; } - function step(op) { - if (f) throw new TypeError("Generator is already executing."); - while (_) try { - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [op[0] & 2, t.value]; - switch (op[0]) { - case 0: case 1: t = op; break; - case 4: _.label++; return { value: op[1], done: false }; - case 5: _.label++; y = op[1]; op = [0]; continue; - case 7: op = _.ops.pop(); _.trys.pop(); continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } - if (t[2]) _.ops.pop(); - _.trys.pop(); continue; - } - op = body.call(thisArg, _); - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; - } - }; - - __createBinding = function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; - }; - - __exportStar = function (m, exports) { - for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) exports[p] = m[p]; - }; - - __values = function (o) { - var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; - if (m) return m.call(o); - if (o && typeof o.length === "number") return { - next: function () { - if (o && i >= o.length) o = void 0; - return { value: o && o[i++], done: !o }; - } - }; - throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); - }; - - __read = function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; - }; - - __spread = function () { - for (var ar = [], i = 0; i < arguments.length; i++) - ar = ar.concat(__read(arguments[i])); - return ar; - }; - - __spreadArrays = function () { - for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; - for (var r = Array(s), k = 0, i = 0; i < il; i++) - for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) - r[k] = a[j]; - return r; - }; - - __await = function (v) { - return this instanceof __await ? (this.v = v, this) : new __await(v); - }; - - __asyncGenerator = function (thisArg, _arguments, generator) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } - function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } - function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } - function fulfill(value) { resume("next", value); } - function reject(value) { resume("throw", value); } - function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } - }; - - __asyncDelegator = function (o) { - var i, p; - return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; - function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; } - }; - - __asyncValues = function (o) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var m = o[Symbol.asyncIterator], i; - return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); - function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } - function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } - }; - - __makeTemplateObject = function (cooked, raw) { - if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } - return cooked; - }; - - __importStar = function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; - result["default"] = mod; - return result; - }; - - __importDefault = function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; - }; - - __classPrivateFieldGet = function (receiver, privateMap) { - if (!privateMap.has(receiver)) { - throw new TypeError("attempted to get private field on non-instance"); - } - return privateMap.get(receiver); - }; - - __classPrivateFieldSet = function (receiver, privateMap, value) { - if (!privateMap.has(receiver)) { - throw new TypeError("attempted to set private field on non-instance"); - } - privateMap.set(receiver, value); - return value; - }; - - exporter("__extends", __extends); - exporter("__assign", __assign); - exporter("__rest", __rest); - exporter("__decorate", __decorate); - exporter("__param", __param); - exporter("__metadata", __metadata); - exporter("__awaiter", __awaiter); - exporter("__generator", __generator); - exporter("__exportStar", __exportStar); - exporter("__createBinding", __createBinding); - exporter("__values", __values); - exporter("__read", __read); - exporter("__spread", __spread); - exporter("__spreadArrays", __spreadArrays); - exporter("__await", __await); - exporter("__asyncGenerator", __asyncGenerator); - exporter("__asyncDelegator", __asyncDelegator); - exporter("__asyncValues", __asyncValues); - exporter("__makeTemplateObject", __makeTemplateObject); - exporter("__importStar", __importStar); - exporter("__importDefault", __importDefault); - exporter("__classPrivateFieldGet", __classPrivateFieldGet); - exporter("__classPrivateFieldSet", __classPrivateFieldSet); -}); diff --git a/node_modules/@aws-crypto/ie11-detection/package.json b/node_modules/@aws-crypto/ie11-detection/package.json deleted file mode 100644 index 13499712..00000000 --- a/node_modules/@aws-crypto/ie11-detection/package.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "name": "@aws-crypto/ie11-detection", - "version": "3.0.0", - "description": "Provides functions and types for detecting if the host environment is IE11", - "scripts": { - "pretest": "tsc -p tsconfig.json", - "test": "mocha --require ts-node/register test/**/*test.ts" - }, - "repository": { - "type": "git", - "url": "git@github.com:aws/aws-sdk-js-crypto-helpers.git" - }, - "author": { - "name": "AWS Crypto Tools Team", - "email": "aws-cryptools@amazon.com", - "url": "https://docs.aws.amazon.com/aws-crypto-tools/index.html?id=docs_gateway#lang/en_us" - }, - "homepage": "https://github.com/aws/aws-sdk-js-crypto-helpers/tree/master/packages/ie11-detection", - "license": "Apache-2.0", - "main": "./build/index.js", - "types": "./build/index.d.ts", - "dependencies": { - "tslib": "^1.11.1" - }, - "gitHead": "7f56cee8f62bd65cd397eeec29c3c997215bd80c" -} diff --git a/node_modules/@aws-crypto/ie11-detection/src/CryptoOperation.ts b/node_modules/@aws-crypto/ie11-detection/src/CryptoOperation.ts deleted file mode 100644 index 528024b9..00000000 --- a/node_modules/@aws-crypto/ie11-detection/src/CryptoOperation.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { Key } from "./Key"; - -/** - * Represents a cryptographic operation that has been instantiated but not - * necessarily fed all data or finalized. - * - * @see https://msdn.microsoft.com/en-us/library/dn280996(v=vs.85).aspx - */ -export interface CryptoOperation { - readonly algorithm: string; - readonly key: Key; - onabort: (event: Event) => void; - oncomplete: (event: Event) => void; - onerror: (event: Event) => void; - onprogress: (event: Event) => void; - readonly result: ArrayBuffer | undefined; - - abort(): void; - finish(): void; - process(buffer: ArrayBufferView): void; -} diff --git a/node_modules/@aws-crypto/ie11-detection/src/Key.ts b/node_modules/@aws-crypto/ie11-detection/src/Key.ts deleted file mode 100644 index 46d171fb..00000000 --- a/node_modules/@aws-crypto/ie11-detection/src/Key.ts +++ /dev/null @@ -1,12 +0,0 @@ -/** - * The result of a successful KeyOperation. - * - * @see {KeyOperation} - * @see https://msdn.microsoft.com/en-us/library/dn302313(v=vs.85).aspx - */ -export interface Key { - readonly algorithm: string; - readonly extractable: boolean; - readonly keyUsage: Array; - readonly type: string; -} diff --git a/node_modules/@aws-crypto/ie11-detection/src/KeyOperation.ts b/node_modules/@aws-crypto/ie11-detection/src/KeyOperation.ts deleted file mode 100644 index 87b61fbf..00000000 --- a/node_modules/@aws-crypto/ie11-detection/src/KeyOperation.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { Key } from "./Key"; - -/** - * Represents the return of a key-related operation that may or may not have - * been completed. - * - * @see https://msdn.microsoft.com/en-us/library/dn302314(v=vs.85).aspx - */ -export interface KeyOperation { - oncomplete: (event: Event) => void; - onerror: (event: Event) => void; - readonly result: Key | undefined; -} diff --git a/node_modules/@aws-crypto/ie11-detection/src/MsSubtleCrypto.ts b/node_modules/@aws-crypto/ie11-detection/src/MsSubtleCrypto.ts deleted file mode 100644 index 9d1d656d..00000000 --- a/node_modules/@aws-crypto/ie11-detection/src/MsSubtleCrypto.ts +++ /dev/null @@ -1,88 +0,0 @@ -import { CryptoOperation } from "./CryptoOperation"; -import { Key } from "./Key"; -import { KeyOperation } from "./KeyOperation"; - -export type KeyUsage = - | "encrypt" - | "decrypt" - | "sign" - | "verify" - | "derive" - | "wrapKey" - | "unwrapKey" - | "importKey"; - -export type EncryptionOrVerificationAlgorithm = "RSAES-PKCS1-v1_5"; -export type Ie11EncryptionAlgorithm = - | "AES-CBC" - | "AES-GCM" - | "RSA-OAEP" - | EncryptionOrVerificationAlgorithm; -export type Ie11DigestAlgorithm = "SHA-1" | "SHA-256" | "SHA-384"; - -export interface HashAlgorithm { - name: Ie11DigestAlgorithm; -} - -export interface HmacAlgorithm { - name: "HMAC"; - hash: HashAlgorithm; -} - -export type SigningAlgorithm = HmacAlgorithm; - -/** - * Represent ths SubtleCrypto interface as implemented in Internet Explorer 11. - * This implementation was based on an earlier version of the WebCrypto API and - * differs from the `window.crypto.subtle` object exposed in Chrome, Safari, - * Firefox, and MS Edge. - * - * @see https://msdn.microsoft.com/en-us/library/dn302325(v=vs.85).aspx - */ -export interface MsSubtleCrypto { - decrypt( - algorithm: Ie11EncryptionAlgorithm, - key: Key, - buffer?: ArrayBufferView - ): CryptoOperation; - - digest( - algorithm: Ie11DigestAlgorithm, - buffer?: ArrayBufferView - ): CryptoOperation; - - encrypt( - algorithm: Ie11EncryptionAlgorithm, - key: Key, - buffer?: ArrayBufferView - ): CryptoOperation; - - exportKey(format: string, key: Key): KeyOperation; - - generateKey( - algorithm: SigningAlgorithm | Ie11EncryptionAlgorithm, - extractable?: boolean, - keyUsages?: Array - ): KeyOperation; - - importKey( - format: string, - keyData: ArrayBufferView, - algorithm: any, - extractable?: boolean, - keyUsages?: Array - ): KeyOperation; - - sign( - algorithm: SigningAlgorithm, - key: Key, - buffer?: ArrayBufferView - ): CryptoOperation; - - verify( - algorithm: SigningAlgorithm | EncryptionOrVerificationAlgorithm, - key: Key, - signature: ArrayBufferView, - buffer?: ArrayBufferView - ): CryptoOperation; -} diff --git a/node_modules/@aws-crypto/ie11-detection/src/MsWindow.ts b/node_modules/@aws-crypto/ie11-detection/src/MsWindow.ts deleted file mode 100644 index 0510cfe7..00000000 --- a/node_modules/@aws-crypto/ie11-detection/src/MsWindow.ts +++ /dev/null @@ -1,59 +0,0 @@ -import { MsSubtleCrypto } from "./MsSubtleCrypto"; - -type SubtleCryptoMethod = - | "decrypt" - | "digest" - | "encrypt" - | "exportKey" - | "generateKey" - | "importKey" - | "sign" - | "verify"; - -const msSubtleCryptoMethods: Array = [ - "decrypt", - "digest", - "encrypt", - "exportKey", - "generateKey", - "importKey", - "sign", - "verify" -]; - -/** - * The value accessible as `window.msCrypto` in Internet Explorer 11. - */ -export interface MsCrypto { - getRandomValues: (toFill: Uint8Array) => void; - subtle: MsSubtleCrypto; -} - -/** - * The `window` object in Internet Explorer 11. This interface does not - * exhaustively document the prefixed features of `window` in IE11. - */ -export interface MsWindow extends Window { - MSInputMethodContext: any; - msCrypto: MsCrypto; -} - -function quacksLikeAnMsWindow(window: Window): window is MsWindow { - return "MSInputMethodContext" in window && "msCrypto" in window; -} - -/** - * Determines if the provided window is (or is like) the window object one would - * expect to encounter in Internet Explorer 11. - */ -export function isMsWindow(window: Window): window is MsWindow { - if (quacksLikeAnMsWindow(window) && window.msCrypto.subtle !== undefined) { - const { getRandomValues, subtle } = window.msCrypto; - return msSubtleCryptoMethods - .map(methodName => subtle[methodName]) - .concat(getRandomValues) - .every(method => typeof method === "function"); - } - - return false; -} diff --git a/node_modules/@aws-crypto/ie11-detection/src/index.ts b/node_modules/@aws-crypto/ie11-detection/src/index.ts deleted file mode 100644 index 1e8c5e35..00000000 --- a/node_modules/@aws-crypto/ie11-detection/src/index.ts +++ /dev/null @@ -1,5 +0,0 @@ -export * from "./CryptoOperation"; -export * from "./Key"; -export * from "./KeyOperation"; -export * from "./MsSubtleCrypto"; -export * from "./MsWindow"; diff --git a/node_modules/@aws-crypto/ie11-detection/tsconfig.json b/node_modules/@aws-crypto/ie11-detection/tsconfig.json deleted file mode 100644 index 501a62f8..00000000 --- a/node_modules/@aws-crypto/ie11-detection/tsconfig.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "target": "es5", - "lib": ["dom", "es5", "es2015.collection"], - "strict": true, - "sourceMap": true, - "declaration": true, - "stripInternal": true, - "rootDir": "./src", - "outDir": "./build", - "importHelpers": true, - "noEmitHelpers": true - }, - "include": ["src/**/*.ts"], - "exclude": ["node_modules/**"] -} diff --git a/node_modules/@aws-crypto/sha256-browser/CHANGELOG.md b/node_modules/@aws-crypto/sha256-browser/CHANGELOG.md deleted file mode 100644 index 92148fcc..00000000 --- a/node_modules/@aws-crypto/sha256-browser/CHANGELOG.md +++ /dev/null @@ -1,88 +0,0 @@ -# Change Log - -All notable changes to this project will be documented in this file. -See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. - -# [3.0.0](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/v2.0.2...v3.0.0) (2023-01-12) - -### Bug Fixes - -- **docs:** sha256 packages, clarify hmac support ([#455](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/455)) ([1be5043](https://github.com/aws/aws-sdk-js-crypto-helpers/commit/1be5043325991f3f5ccb52a8dd928f004b4d442e)) - -- feat!: replace Hash implementations with Checksum interface (#492) ([da43dc0](https://github.com/aws/aws-sdk-js-crypto-helpers/commit/da43dc0fdf669d9ebb5bfb1b1f7c79e46c4aaae1)), closes [#492](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/492) - -### BREAKING CHANGES - -- All classes that implemented `Hash` now implement `Checksum`. - -## [2.0.2](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/v2.0.1...v2.0.2) (2022-09-07) - -### Bug Fixes - -- **#337:** update @aws-sdk/types ([#373](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/373)) ([b26a811](https://github.com/aws/aws-sdk-js-crypto-helpers/commit/b26a811a392f5209c7ec7e57251500d4d78f97ff)), closes [#337](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/337) - -## [2.0.1](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/v2.0.0...v2.0.1) (2021-12-09) - -**Note:** Version bump only for package @aws-crypto/sha256-browser - -# [2.0.0](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/v1.2.2...v2.0.0) (2021-10-25) - -**Note:** Version bump only for package @aws-crypto/sha256-browser - -## [1.2.2](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/v1.2.1...v1.2.2) (2021-10-12) - -**Note:** Version bump only for package @aws-crypto/sha256-browser - -## [1.2.1](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/v1.2.0...v1.2.1) (2021-09-17) - -**Note:** Version bump only for package @aws-crypto/sha256-browser - -# [1.2.0](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/v1.1.1...v1.2.0) (2021-09-17) - -### Features - -- add @aws-crypto/util ([8f489cb](https://github.com/aws/aws-sdk-js-crypto-helpers/commit/8f489cbe4c0e134f826bac66f1bf5172597048b9)) - -## [1.1.1](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/@aws-crypto/sha256-browser@1.1.0...@aws-crypto/sha256-browser@1.1.1) (2021-07-13) - -### Bug Fixes - -- **sha256-browser:** throw errors not string ([#194](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/194)) ([7fa7ac4](https://github.com/aws/aws-sdk-js-crypto-helpers/commit/7fa7ac445ef7a04dfb1ff479e7114aba045b2b2c)) - -# [1.1.0](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/@aws-crypto/sha256-browser@1.0.0...@aws-crypto/sha256-browser@1.1.0) (2021-01-13) - -### Bug Fixes - -- remove package lock ([6002a5a](https://github.com/aws/aws-sdk-js-crypto-helpers/commit/6002a5ab9218dc8798c19dc205d3eebd3bec5b43)) -- **aws-crypto:** export explicit dependencies on [@aws-types](https://github.com/aws-types) ([6a1873a](https://github.com/aws/aws-sdk-js-crypto-helpers/commit/6a1873a4dcc2aaa4a1338595703cfa7099f17b8c)) -- **deps-dev:** move @aws-sdk/types to devDependencies ([#188](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/188)) ([08efdf4](https://github.com/aws/aws-sdk-js-crypto-helpers/commit/08efdf46dcc612d88c441e29945d787f253ee77d)) - -# [1.0.0](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/@aws-crypto/sha256-browser@1.0.0-alpha.0...@aws-crypto/sha256-browser@1.0.0) (2020-10-22) - -**Note:** Version bump only for package @aws-crypto/sha256-browser - -# [1.0.0-alpha.0](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/@aws-crypto/sha256-browser@0.1.0-preview.4...@aws-crypto/sha256-browser@1.0.0-alpha.0) (2020-02-07) - -**Note:** Version bump only for package @aws-crypto/sha256-browser - -# [0.1.0-preview.4](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/@aws-crypto/sha256-browser@0.1.0-preview.2...@aws-crypto/sha256-browser@0.1.0-preview.4) (2020-01-16) - -### Bug Fixes - -- Changed package.json files to point to the right Git repo ([#9](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/9)) ([028245d](https://github.com/aws/aws-sdk-js-crypto-helpers/commit/028245d72e642ca98d82226afb300eb154503c4a)), closes [#8](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/8) -- es2015.iterable required ([#10](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/10)) ([6e08d83](https://github.com/aws/aws-sdk-js-crypto-helpers/commit/6e08d83c33667ad8cbeeaaa7cedf1bbe05f79ed8)) -- lerna version maintains package-lock ([#14](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/14)) ([2ef29e1](https://github.com/aws/aws-sdk-js-crypto-helpers/commit/2ef29e13779703a5c9b32e93d18918fcb33b7272)), closes [#13](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/13) - -# [0.1.0-preview.3](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/@aws-crypto/sha256-browser@0.1.0-preview.2...@aws-crypto/sha256-browser@0.1.0-preview.3) (2019-11-15) - -### Bug Fixes - -- Changed package.json files to point to the right Git repo ([#9](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/9)) ([028245d](https://github.com/aws/aws-sdk-js-crypto-helpers/commit/028245d72e642ca98d82226afb300eb154503c4a)), closes [#8](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/8) -- es2015.iterable required ([#10](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/10)) ([6e08d83](https://github.com/aws/aws-sdk-js-crypto-helpers/commit/6e08d83c33667ad8cbeeaaa7cedf1bbe05f79ed8)) -- lerna version maintains package-lock ([#14](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/14)) ([2ef29e1](https://github.com/aws/aws-sdk-js-crypto-helpers/commit/2ef29e13779703a5c9b32e93d18918fcb33b7272)), closes [#13](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/13) - -# [0.1.0-preview.2](https://github.com/aws/aws-javascript-crypto-helpers/compare/@aws-crypto/sha256-browser@0.1.0-preview.1...@aws-crypto/sha256-browser@0.1.0-preview.2) (2019-10-30) - -### Bug Fixes - -- remove /src/ from .npmignore (for sourcemaps) ([#5](https://github.com/aws/aws-javascript-crypto-helpers/issues/5)) ([ec52056](https://github.com/aws/aws-javascript-crypto-helpers/commit/ec52056)) diff --git a/node_modules/@aws-crypto/sha256-browser/LICENSE b/node_modules/@aws-crypto/sha256-browser/LICENSE deleted file mode 100644 index d6456956..00000000 --- a/node_modules/@aws-crypto/sha256-browser/LICENSE +++ /dev/null @@ -1,202 +0,0 @@ - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/node_modules/@aws-crypto/sha256-browser/README.md b/node_modules/@aws-crypto/sha256-browser/README.md deleted file mode 100644 index 75bf105a..00000000 --- a/node_modules/@aws-crypto/sha256-browser/README.md +++ /dev/null @@ -1,31 +0,0 @@ -# @aws-crypto/sha256-browser - -SHA256 wrapper for browsers that prefers `window.crypto.subtle` but will -fall back to a pure JS implementation in @aws-crypto/sha256-js -to provide a consistent interface for SHA256. - -## Usage - -- To hash "some data" -``` -import {Sha256} from '@aws-crypto/sha256-browser' - -const hash = new Sha256(); -hash.update('some data'); -const result = await hash.digest(); - -``` - -- To hmac "some data" with "a key" -``` -import {Sha256} from '@aws-crypto/sha256-browser' - -const hash = new Sha256('a key'); -hash.update('some data'); -const result = await hash.digest(); - -``` - -## Test - -`npm test` diff --git a/node_modules/@aws-crypto/sha256-browser/build/constants.d.ts b/node_modules/@aws-crypto/sha256-browser/build/constants.d.ts deleted file mode 100644 index fe8def75..00000000 --- a/node_modules/@aws-crypto/sha256-browser/build/constants.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -export declare const SHA_256_HASH: { - name: "SHA-256"; -}; -export declare const SHA_256_HMAC_ALGO: { - name: "HMAC"; - hash: { - name: "SHA-256"; - }; -}; -export declare const EMPTY_DATA_SHA_256: Uint8Array; diff --git a/node_modules/@aws-crypto/sha256-browser/build/constants.js b/node_modules/@aws-crypto/sha256-browser/build/constants.js deleted file mode 100644 index acb5c553..00000000 --- a/node_modules/@aws-crypto/sha256-browser/build/constants.js +++ /dev/null @@ -1,43 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.EMPTY_DATA_SHA_256 = exports.SHA_256_HMAC_ALGO = exports.SHA_256_HASH = void 0; -exports.SHA_256_HASH = { name: "SHA-256" }; -exports.SHA_256_HMAC_ALGO = { - name: "HMAC", - hash: exports.SHA_256_HASH -}; -exports.EMPTY_DATA_SHA_256 = new Uint8Array([ - 227, - 176, - 196, - 66, - 152, - 252, - 28, - 20, - 154, - 251, - 244, - 200, - 153, - 111, - 185, - 36, - 39, - 174, - 65, - 228, - 100, - 155, - 147, - 76, - 164, - 149, - 153, - 27, - 120, - 82, - 184, - 85 -]); -//# sourceMappingURL=constants.js.map \ No newline at end of file diff --git a/node_modules/@aws-crypto/sha256-browser/build/constants.js.map b/node_modules/@aws-crypto/sha256-browser/build/constants.js.map deleted file mode 100644 index d7cd8266..00000000 --- a/node_modules/@aws-crypto/sha256-browser/build/constants.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":";;;AAAa,QAAA,YAAY,GAAwB,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC;AAExD,QAAA,iBAAiB,GAAgD;IAC5E,IAAI,EAAE,MAAM;IACZ,IAAI,EAAE,oBAAY;CACnB,CAAC;AAEW,QAAA,kBAAkB,GAAG,IAAI,UAAU,CAAC;IAC/C,GAAG;IACH,GAAG;IACH,GAAG;IACH,EAAE;IACF,GAAG;IACH,GAAG;IACH,EAAE;IACF,EAAE;IACF,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,EAAE;IACF,EAAE;IACF,GAAG;IACH,EAAE;IACF,GAAG;IACH,GAAG;IACH,GAAG;IACH,GAAG;IACH,EAAE;IACF,GAAG;IACH,GAAG;IACH,GAAG;IACH,EAAE;IACF,GAAG;IACH,EAAE;IACF,GAAG;IACH,EAAE;CACH,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@aws-crypto/sha256-browser/build/crossPlatformSha256.d.ts b/node_modules/@aws-crypto/sha256-browser/build/crossPlatformSha256.d.ts deleted file mode 100644 index 055d3ef7..00000000 --- a/node_modules/@aws-crypto/sha256-browser/build/crossPlatformSha256.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { Checksum, SourceData } from "@aws-sdk/types"; -export declare class Sha256 implements Checksum { - private hash; - constructor(secret?: SourceData); - update(data: SourceData, encoding?: "utf8" | "ascii" | "latin1"): void; - digest(): Promise; - reset(): void; -} diff --git a/node_modules/@aws-crypto/sha256-browser/build/crossPlatformSha256.js b/node_modules/@aws-crypto/sha256-browser/build/crossPlatformSha256.js deleted file mode 100644 index f2f74e8f..00000000 --- a/node_modules/@aws-crypto/sha256-browser/build/crossPlatformSha256.js +++ /dev/null @@ -1,35 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Sha256 = void 0; -var ie11Sha256_1 = require("./ie11Sha256"); -var webCryptoSha256_1 = require("./webCryptoSha256"); -var sha256_js_1 = require("@aws-crypto/sha256-js"); -var supports_web_crypto_1 = require("@aws-crypto/supports-web-crypto"); -var ie11_detection_1 = require("@aws-crypto/ie11-detection"); -var util_locate_window_1 = require("@aws-sdk/util-locate-window"); -var util_1 = require("@aws-crypto/util"); -var Sha256 = /** @class */ (function () { - function Sha256(secret) { - if ((0, supports_web_crypto_1.supportsWebCrypto)((0, util_locate_window_1.locateWindow)())) { - this.hash = new webCryptoSha256_1.Sha256(secret); - } - else if ((0, ie11_detection_1.isMsWindow)((0, util_locate_window_1.locateWindow)())) { - this.hash = new ie11Sha256_1.Sha256(secret); - } - else { - this.hash = new sha256_js_1.Sha256(secret); - } - } - Sha256.prototype.update = function (data, encoding) { - this.hash.update((0, util_1.convertToBuffer)(data)); - }; - Sha256.prototype.digest = function () { - return this.hash.digest(); - }; - Sha256.prototype.reset = function () { - this.hash.reset(); - }; - return Sha256; -}()); -exports.Sha256 = Sha256; -//# sourceMappingURL=crossPlatformSha256.js.map \ No newline at end of file diff --git a/node_modules/@aws-crypto/sha256-browser/build/crossPlatformSha256.js.map b/node_modules/@aws-crypto/sha256-browser/build/crossPlatformSha256.js.map deleted file mode 100644 index 204968f3..00000000 --- a/node_modules/@aws-crypto/sha256-browser/build/crossPlatformSha256.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"crossPlatformSha256.js","sourceRoot":"","sources":["../src/crossPlatformSha256.ts"],"names":[],"mappings":";;;AAAA,2CAAoD;AACpD,qDAA8D;AAC9D,mDAA2D;AAE3D,uEAAoE;AACpE,6DAAwD;AACxD,kEAA2D;AAC3D,yCAAmD;AAEnD;IAGE,gBAAY,MAAmB;QAC7B,IAAI,IAAA,uCAAiB,EAAC,IAAA,iCAAY,GAAE,CAAC,EAAE;YACrC,IAAI,CAAC,IAAI,GAAG,IAAI,wBAAe,CAAC,MAAM,CAAC,CAAC;SACzC;aAAM,IAAI,IAAA,2BAAU,EAAC,IAAA,iCAAY,GAAE,CAAC,EAAE;YACrC,IAAI,CAAC,IAAI,GAAG,IAAI,mBAAU,CAAC,MAAM,CAAC,CAAC;SACpC;aAAM;YACL,IAAI,CAAC,IAAI,GAAG,IAAI,kBAAQ,CAAC,MAAM,CAAC,CAAC;SAClC;IACH,CAAC;IAED,uBAAM,GAAN,UAAO,IAAgB,EAAE,QAAsC;QAC7D,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,IAAA,sBAAe,EAAC,IAAI,CAAC,CAAC,CAAC;IAC1C,CAAC;IAED,uBAAM,GAAN;QACE,OAAO,IAAI,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC;IAC5B,CAAC;IAED,sBAAK,GAAL;QACE,IAAI,CAAC,IAAI,CAAC,KAAK,EAAE,CAAC;IACpB,CAAC;IACH,aAAC;AAAD,CAAC,AAxBD,IAwBC;AAxBY,wBAAM"} \ No newline at end of file diff --git a/node_modules/@aws-crypto/sha256-browser/build/ie11Sha256.d.ts b/node_modules/@aws-crypto/sha256-browser/build/ie11Sha256.d.ts deleted file mode 100644 index ab0e1bd3..00000000 --- a/node_modules/@aws-crypto/sha256-browser/build/ie11Sha256.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { Checksum, SourceData } from "@aws-sdk/types"; -export declare class Sha256 implements Checksum { - private readonly secret?; - private operation; - constructor(secret?: SourceData); - update(toHash: SourceData): void; - digest(): Promise; - reset(): void; -} diff --git a/node_modules/@aws-crypto/sha256-browser/build/ie11Sha256.js b/node_modules/@aws-crypto/sha256-browser/build/ie11Sha256.js deleted file mode 100644 index f84c6300..00000000 --- a/node_modules/@aws-crypto/sha256-browser/build/ie11Sha256.js +++ /dev/null @@ -1,80 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Sha256 = void 0; -var isEmptyData_1 = require("./isEmptyData"); -var constants_1 = require("./constants"); -var util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser"); -var util_locate_window_1 = require("@aws-sdk/util-locate-window"); -var Sha256 = /** @class */ (function () { - function Sha256(secret) { - this.secret = secret; - this.reset(); - } - Sha256.prototype.update = function (toHash) { - var _this = this; - if ((0, isEmptyData_1.isEmptyData)(toHash)) { - return; - } - this.operation = this.operation.then(function (operation) { - operation.onerror = function () { - _this.operation = Promise.reject(new Error("Error encountered updating hash")); - }; - operation.process(toArrayBufferView(toHash)); - return operation; - }); - this.operation.catch(function () { }); - }; - Sha256.prototype.digest = function () { - return this.operation.then(function (operation) { - return new Promise(function (resolve, reject) { - operation.onerror = function () { - reject(new Error("Error encountered finalizing hash")); - }; - operation.oncomplete = function () { - if (operation.result) { - resolve(new Uint8Array(operation.result)); - } - reject(new Error("Error encountered finalizing hash")); - }; - operation.finish(); - }); - }); - }; - Sha256.prototype.reset = function () { - if (this.secret) { - this.operation = getKeyPromise(this.secret).then(function (keyData) { - return (0, util_locate_window_1.locateWindow)().msCrypto.subtle.sign(constants_1.SHA_256_HMAC_ALGO, keyData); - }); - this.operation.catch(function () { }); - } - else { - this.operation = Promise.resolve((0, util_locate_window_1.locateWindow)().msCrypto.subtle.digest("SHA-256")); - } - }; - return Sha256; -}()); -exports.Sha256 = Sha256; -function getKeyPromise(secret) { - return new Promise(function (resolve, reject) { - var keyOperation = (0, util_locate_window_1.locateWindow)().msCrypto.subtle.importKey("raw", toArrayBufferView(secret), constants_1.SHA_256_HMAC_ALGO, false, ["sign"]); - keyOperation.oncomplete = function () { - if (keyOperation.result) { - resolve(keyOperation.result); - } - reject(new Error("ImportKey completed without importing key.")); - }; - keyOperation.onerror = function () { - reject(new Error("ImportKey failed to import key.")); - }; - }); -} -function toArrayBufferView(data) { - if (typeof data === "string") { - return (0, util_utf8_browser_1.fromUtf8)(data); - } - if (ArrayBuffer.isView(data)) { - return new Uint8Array(data.buffer, data.byteOffset, data.byteLength / Uint8Array.BYTES_PER_ELEMENT); - } - return new Uint8Array(data); -} -//# sourceMappingURL=ie11Sha256.js.map \ No newline at end of file diff --git a/node_modules/@aws-crypto/sha256-browser/build/ie11Sha256.js.map b/node_modules/@aws-crypto/sha256-browser/build/ie11Sha256.js.map deleted file mode 100644 index cbf50aab..00000000 --- a/node_modules/@aws-crypto/sha256-browser/build/ie11Sha256.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ie11Sha256.js","sourceRoot":"","sources":["../src/ie11Sha256.ts"],"names":[],"mappings":";;;AAAA,6CAA4C;AAC5C,yCAAgD;AAEhD,gEAAsD;AAEtD,kEAA2D;AAE3D;IAIE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C5B,OAAO,IAAA,4BAAQ,EAAC,IAAI,CAAC,CAAC;KACvB;IAED,IAAI,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE;QAC5B,OAAO,IAAI,UAAU,CACnB,IAAI,CAAC,MAAM,EACX,IAAI,CAAC,UAAU,EACf,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,iBAAiB,CAC/C,CAAC;KACH;IAED,OAAO,IAAI,UAAU,CAAC,IAAI,CAAC,CAAC;AAC9B,CAAC"} \ No newline at end of file diff --git a/node_modules/@aws-crypto/sha256-browser/build/index.d.ts b/node_modules/@aws-crypto/sha256-browser/build/index.d.ts deleted file mode 100644 index 2e6617e7..00000000 --- a/node_modules/@aws-crypto/sha256-browser/build/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * from "./crossPlatformSha256"; -export { Sha256 as Ie11Sha256 } from "./ie11Sha256"; -export { Sha256 as WebCryptoSha256 } from "./webCryptoSha256"; diff --git a/node_modules/@aws-crypto/sha256-browser/build/index.js b/node_modules/@aws-crypto/sha256-browser/build/index.js deleted file mode 100644 index 220f9812..00000000 --- a/node_modules/@aws-crypto/sha256-browser/build/index.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.WebCryptoSha256 = exports.Ie11Sha256 = void 0; -var tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./crossPlatformSha256"), exports); -var ie11Sha256_1 = require("./ie11Sha256"); -Object.defineProperty(exports, "Ie11Sha256", { enumerable: true, get: function () { return ie11Sha256_1.Sha256; } }); -var webCryptoSha256_1 = require("./webCryptoSha256"); -Object.defineProperty(exports, "WebCryptoSha256", { enumerable: true, get: function () { return webCryptoSha256_1.Sha256; } }); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@aws-crypto/sha256-browser/build/index.js.map b/node_modules/@aws-crypto/sha256-browser/build/index.js.map deleted file mode 100644 index 810f6f71..00000000 --- a/node_modules/@aws-crypto/sha256-browser/build/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;AAAA,gEAAsC;AACtC,2CAAoD;AAA3C,wGAAA,MAAM,OAAc;AAC7B,qDAA8D;AAArD,kHAAA,MAAM,OAAmB"} \ No newline at end of file diff --git a/node_modules/@aws-crypto/sha256-browser/build/isEmptyData.d.ts b/node_modules/@aws-crypto/sha256-browser/build/isEmptyData.d.ts deleted file mode 100644 index 43ae4a7c..00000000 --- a/node_modules/@aws-crypto/sha256-browser/build/isEmptyData.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { SourceData } from "@aws-sdk/types"; -export declare function isEmptyData(data: SourceData): boolean; diff --git a/node_modules/@aws-crypto/sha256-browser/build/isEmptyData.js b/node_modules/@aws-crypto/sha256-browser/build/isEmptyData.js deleted file mode 100644 index fe91548a..00000000 --- a/node_modules/@aws-crypto/sha256-browser/build/isEmptyData.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isEmptyData = void 0; -function isEmptyData(data) { - if (typeof data === "string") { - return data.length === 0; - } - return data.byteLength === 0; -} -exports.isEmptyData = isEmptyData; -//# sourceMappingURL=isEmptyData.js.map \ No newline at end of file diff --git a/node_modules/@aws-crypto/sha256-browser/build/isEmptyData.js.map b/node_modules/@aws-crypto/sha256-browser/build/isEmptyData.js.map deleted file mode 100644 index d504ac53..00000000 --- a/node_modules/@aws-crypto/sha256-browser/build/isEmptyData.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isEmptyData.js","sourceRoot":"","sources":["../src/isEmptyData.ts"],"names":[],"mappings":";;;AAEA,SAAgB,WAAW,CAAC,IAAgB;IAC1C,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;QAC5B,OAAO,IAAI,CAAC,MAAM,KAAK,CAAC,CAAC;KAC1B;IAED,OAAO,IAAI,CAAC,UAAU,KAAK,CAAC,CAAC;AAC/B,CAAC;AAND,kCAMC"} \ No newline at end of file diff --git a/node_modules/@aws-crypto/sha256-browser/build/webCryptoSha256.d.ts b/node_modules/@aws-crypto/sha256-browser/build/webCryptoSha256.d.ts deleted file mode 100644 index ec0e214d..00000000 --- a/node_modules/@aws-crypto/sha256-browser/build/webCryptoSha256.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { Checksum, SourceData } from "@aws-sdk/types"; -export declare class Sha256 implements Checksum { - private readonly secret?; - private key; - private toHash; - constructor(secret?: SourceData); - update(data: SourceData): void; - digest(): Promise; - reset(): void; -} diff --git a/node_modules/@aws-crypto/sha256-browser/build/webCryptoSha256.js b/node_modules/@aws-crypto/sha256-browser/build/webCryptoSha256.js deleted file mode 100644 index 778fdd90..00000000 --- a/node_modules/@aws-crypto/sha256-browser/build/webCryptoSha256.js +++ /dev/null @@ -1,56 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Sha256 = void 0; -var util_1 = require("@aws-crypto/util"); -var constants_1 = require("./constants"); -var util_locate_window_1 = require("@aws-sdk/util-locate-window"); -var Sha256 = /** @class */ (function () { - function Sha256(secret) { - this.toHash = new Uint8Array(0); - this.secret = secret; - this.reset(); - } - Sha256.prototype.update = function (data) { - if ((0, util_1.isEmptyData)(data)) { - return; - } - var update = (0, util_1.convertToBuffer)(data); - var typedArray = new Uint8Array(this.toHash.byteLength + update.byteLength); - typedArray.set(this.toHash, 0); - typedArray.set(update, this.toHash.byteLength); - this.toHash = typedArray; - }; - Sha256.prototype.digest = function () { - var _this = this; - if (this.key) { - return this.key.then(function (key) { - return (0, util_locate_window_1.locateWindow)() - .crypto.subtle.sign(constants_1.SHA_256_HMAC_ALGO, key, _this.toHash) - .then(function (data) { return new Uint8Array(data); }); - }); - } - if ((0, util_1.isEmptyData)(this.toHash)) { - return Promise.resolve(constants_1.EMPTY_DATA_SHA_256); - } - return Promise.resolve() - .then(function () { - return (0, util_locate_window_1.locateWindow)().crypto.subtle.digest(constants_1.SHA_256_HASH, _this.toHash); - }) - .then(function (data) { return Promise.resolve(new Uint8Array(data)); }); - }; - Sha256.prototype.reset = function () { - var _this = this; - this.toHash = new Uint8Array(0); - if (this.secret && this.secret !== void 0) { - this.key = new Promise(function (resolve, reject) { - (0, util_locate_window_1.locateWindow)() - .crypto.subtle.importKey("raw", (0, util_1.convertToBuffer)(_this.secret), constants_1.SHA_256_HMAC_ALGO, false, ["sign"]) - .then(resolve, reject); - }); - this.key.catch(function () { }); - } - }; - return Sha256; -}()); -exports.Sha256 = Sha256; -//# sourceMappingURL=webCryptoSha256.js.map \ No newline at end of file diff --git a/node_modules/@aws-crypto/sha256-browser/build/webCryptoSha256.js.map b/node_modules/@aws-crypto/sha256-browser/build/webCryptoSha256.js.map deleted file mode 100644 index bc30e87f..00000000 --- a/node_modules/@aws-crypto/sha256-browser/build/webCryptoSha256.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"webCryptoSha256.js","sourceRoot":"","sources":["../src/webCryptoSha256.ts"],"names":[],"mappings":";;;AACA,yCAAgE;AAChE,yCAIqB;AACrB,kEAA2D;AAE3D;IAKE,gBAAY,MAAmB;QAFvB,WAAM,GAAe,IAAI,UAAU,CAAC,CAAC,CAAC,CAAC;QAG7C,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,KAAK,EAAE,CAAC;IACf,CAAC;IAED,uBAAM,GAAN,UAAO,IAAgB;QACrB,IAAI,IAAA,kBAAW,EAAC,IAAI,CAAC,EAAE;YACrB,OAAO;SACR;QAED,IAAM,MAAM,GAAG,IAAA,sBAAe,EAAC,IAAI,CAAC,CAAC;QACrC,IAAM,UAAU,GAAG,IAAI,UAAU,CAC/B,IAAI,CAAC,MAAM,CAAC,UAAU,GAAG,MAAM,CAAC,UAAU,CAC3C,CAAC;QACF,UAAU,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,EAAE,CAAC,CAAC,CAAC;QAC/B,UAAU,CAA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ACT,MAAM,CAAC,MAAM,CAAC,SAAS,CACxB,KAAK,EACL,IAAA,sBAAe,EAAC,KAAI,CAAC,MAAoB,CAAC,EAC1C,6BAAiB,EACjB,KAAK,EACL,CAAC,MAAM,CAAC,CACX;qBACI,IAAI,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC;YAC7B,CAAC,CAAC,CAAC;YACH,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC,cAAO,CAAC,CAAC,CAAC;SAC1B;IACH,CAAC;IACH,aAAC;AAAD,CAAC,AA7DD,IA6DC;AA7DY,wBAAM"} \ No newline at end of file diff --git a/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/CopyrightNotice.txt b/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/CopyrightNotice.txt deleted file mode 100644 index 3d4c8234..00000000 --- a/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/CopyrightNotice.txt +++ /dev/null @@ -1,15 +0,0 @@ -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */ - diff --git a/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/LICENSE.txt b/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/LICENSE.txt deleted file mode 100644 index bfe6430c..00000000 --- a/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/LICENSE.txt +++ /dev/null @@ -1,12 +0,0 @@ -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. \ No newline at end of file diff --git a/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/README.md b/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/README.md deleted file mode 100644 index a5b2692c..00000000 --- a/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/README.md +++ /dev/null @@ -1,142 +0,0 @@ -# tslib - -This is a runtime library for [TypeScript](http://www.typescriptlang.org/) that contains all of the TypeScript helper functions. - -This library is primarily used by the `--importHelpers` flag in TypeScript. -When using `--importHelpers`, a module that uses helper functions like `__extends` and `__assign` in the following emitted file: - -```ts -var __assign = (this && this.__assign) || Object.assign || function(t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) - t[p] = s[p]; - } - return t; -}; -exports.x = {}; -exports.y = __assign({}, exports.x); - -``` - -will instead be emitted as something like the following: - -```ts -var tslib_1 = require("tslib"); -exports.x = {}; -exports.y = tslib_1.__assign({}, exports.x); -``` - -Because this can avoid duplicate declarations of things like `__extends`, `__assign`, etc., this means delivering users smaller files on average, as well as less runtime overhead. -For optimized bundles with TypeScript, you should absolutely consider using `tslib` and `--importHelpers`. - -# Installing - -For the latest stable version, run: - -## npm - -```sh -# TypeScript 2.3.3 or later -npm install tslib - -# TypeScript 2.3.2 or earlier -npm install tslib@1.6.1 -``` - -## yarn - -```sh -# TypeScript 2.3.3 or later -yarn add tslib - -# TypeScript 2.3.2 or earlier -yarn add tslib@1.6.1 -``` - -## bower - -```sh -# TypeScript 2.3.3 or later -bower install tslib - -# TypeScript 2.3.2 or earlier -bower install tslib@1.6.1 -``` - -## JSPM - -```sh -# TypeScript 2.3.3 or later -jspm install tslib - -# TypeScript 2.3.2 or earlier -jspm install tslib@1.6.1 -``` - -# Usage - -Set the `importHelpers` compiler option on the command line: - -``` -tsc --importHelpers file.ts -``` - -or in your tsconfig.json: - -```json -{ - "compilerOptions": { - "importHelpers": true - } -} -``` - -#### For bower and JSPM users - -You will need to add a `paths` mapping for `tslib`, e.g. For Bower users: - -```json -{ - "compilerOptions": { - "module": "amd", - "importHelpers": true, - "baseUrl": "./", - "paths": { - "tslib" : ["bower_components/tslib/tslib.d.ts"] - } - } -} -``` - -For JSPM users: - -```json -{ - "compilerOptions": { - "module": "system", - "importHelpers": true, - "baseUrl": "./", - "paths": { - "tslib" : ["jspm_packages/npm/tslib@1.[version].0/tslib.d.ts"] - } - } -} -``` - - -# Contribute - -There are many ways to [contribute](https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md) to TypeScript. - -* [Submit bugs](https://github.com/Microsoft/TypeScript/issues) and help us verify fixes as they are checked in. -* Review the [source code changes](https://github.com/Microsoft/TypeScript/pulls). -* Engage with other TypeScript users and developers on [StackOverflow](http://stackoverflow.com/questions/tagged/typescript). -* Join the [#typescript](http://twitter.com/#!/search/realtime/%23typescript) discussion on Twitter. -* [Contribute bug fixes](https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md). - -# Documentation - -* [Quick tutorial](http://www.typescriptlang.org/Tutorial) -* [Programming handbook](http://www.typescriptlang.org/Handbook) -* [Homepage](http://www.typescriptlang.org/) diff --git a/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/modules/index.js b/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/modules/index.js deleted file mode 100644 index d241d042..00000000 --- a/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/modules/index.js +++ /dev/null @@ -1,51 +0,0 @@ -import tslib from '../tslib.js'; -const { - __extends, - __assign, - __rest, - __decorate, - __param, - __metadata, - __awaiter, - __generator, - __exportStar, - __createBinding, - __values, - __read, - __spread, - __spreadArrays, - __await, - __asyncGenerator, - __asyncDelegator, - __asyncValues, - __makeTemplateObject, - __importStar, - __importDefault, - __classPrivateFieldGet, - __classPrivateFieldSet, -} = tslib; -export { - __extends, - __assign, - __rest, - __decorate, - __param, - __metadata, - __awaiter, - __generator, - __exportStar, - __createBinding, - __values, - __read, - __spread, - __spreadArrays, - __await, - __asyncGenerator, - __asyncDelegator, - __asyncValues, - __makeTemplateObject, - __importStar, - __importDefault, - __classPrivateFieldGet, - __classPrivateFieldSet, -}; diff --git a/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/modules/package.json b/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/modules/package.json deleted file mode 100644 index aafa0e4b..00000000 --- a/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/modules/package.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "type": "module" -} \ No newline at end of file diff --git a/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/package.json b/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/package.json deleted file mode 100644 index f8c2a53d..00000000 --- a/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/package.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "name": "tslib", - "author": "Microsoft Corp.", - "homepage": "https://www.typescriptlang.org/", - "version": "1.14.1", - "license": "0BSD", - "description": "Runtime library for TypeScript helper functions", - "keywords": [ - "TypeScript", - "Microsoft", - "compiler", - "language", - "javascript", - "tslib", - "runtime" - ], - "bugs": { - "url": "https://github.com/Microsoft/TypeScript/issues" - }, - "repository": { - "type": "git", - "url": "https://github.com/Microsoft/tslib.git" - }, - "main": "tslib.js", - "module": "tslib.es6.js", - "jsnext:main": "tslib.es6.js", - "typings": "tslib.d.ts", - "sideEffects": false, - "exports": { - ".": { - "module": "./tslib.es6.js", - "import": "./modules/index.js", - "default": "./tslib.js" - }, - "./": "./" - } -} diff --git a/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/test/validateModuleExportsMatchCommonJS/index.js b/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/test/validateModuleExportsMatchCommonJS/index.js deleted file mode 100644 index 0c1b613d..00000000 --- a/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/test/validateModuleExportsMatchCommonJS/index.js +++ /dev/null @@ -1,23 +0,0 @@ -// When on node 14, it validates that all of the commonjs exports -// are correctly re-exported for es modules importers. - -const nodeMajor = Number(process.version.split(".")[0].slice(1)) -if (nodeMajor < 14) { - console.log("Skipping because node does not support module exports.") - process.exit(0) -} - -// ES Modules import via the ./modules folder -import * as esTSLib from "../../modules/index.js" - -// Force a commonjs resolve -import { createRequire } from "module"; -const commonJSTSLib = createRequire(import.meta.url)("../../tslib.js"); - -for (const key in commonJSTSLib) { - if (commonJSTSLib.hasOwnProperty(key)) { - if(!esTSLib[key]) throw new Error(`ESModules is missing ${key} - it needs to be re-exported in ./modules/index.js`) - } -} - -console.log("All exports in commonjs are available for es module consumers.") diff --git a/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/test/validateModuleExportsMatchCommonJS/package.json b/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/test/validateModuleExportsMatchCommonJS/package.json deleted file mode 100644 index 166e5095..00000000 --- a/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/test/validateModuleExportsMatchCommonJS/package.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "type": "module", - "scripts": { - "test": "node index.js" - } -} diff --git a/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/tslib.d.ts b/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/tslib.d.ts deleted file mode 100644 index 0756b28e..00000000 --- a/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/tslib.d.ts +++ /dev/null @@ -1,37 +0,0 @@ -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */ -export declare function __extends(d: Function, b: Function): void; -export declare function __assign(t: any, ...sources: any[]): any; -export declare function __rest(t: any, propertyNames: (string | symbol)[]): any; -export declare function __decorate(decorators: Function[], target: any, key?: string | symbol, desc?: any): any; -export declare function __param(paramIndex: number, decorator: Function): Function; -export declare function __metadata(metadataKey: any, metadataValue: any): Function; -export declare function __awaiter(thisArg: any, _arguments: any, P: Function, generator: Function): any; -export declare function __generator(thisArg: any, body: Function): any; -export declare function __exportStar(m: any, exports: any): void; -export declare function __values(o: any): any; -export declare function __read(o: any, n?: number): any[]; -export declare function __spread(...args: any[][]): any[]; -export declare function __spreadArrays(...args: any[][]): any[]; -export declare function __await(v: any): any; -export declare function __asyncGenerator(thisArg: any, _arguments: any, generator: Function): any; -export declare function __asyncDelegator(o: any): any; -export declare function __asyncValues(o: any): any; -export declare function __makeTemplateObject(cooked: string[], raw: string[]): TemplateStringsArray; -export declare function __importStar(mod: T): T; -export declare function __importDefault(mod: T): T | { default: T }; -export declare function __classPrivateFieldGet(receiver: T, privateMap: { has(o: T): boolean, get(o: T): V | undefined }): V; -export declare function __classPrivateFieldSet(receiver: T, privateMap: { has(o: T): boolean, set(o: T, value: V): any }, value: V): V; -export declare function __createBinding(object: object, target: object, key: PropertyKey, objectKey?: PropertyKey): void; \ No newline at end of file diff --git a/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/tslib.es6.html b/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/tslib.es6.html deleted file mode 100644 index b122e41b..00000000 --- a/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/tslib.es6.html +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/tslib.es6.js b/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/tslib.es6.js deleted file mode 100644 index 0e0d8d07..00000000 --- a/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/tslib.es6.js +++ /dev/null @@ -1,218 +0,0 @@ -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */ -/* global Reflect, Promise */ - -var extendStatics = function(d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; - return extendStatics(d, b); -}; - -export function __extends(d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); -} - -export var __assign = function() { - __assign = Object.assign || function __assign(t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; - } - return t; - } - return __assign.apply(this, arguments); -} - -export function __rest(s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -} - -export function __decorate(decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; -} - -export function __param(paramIndex, decorator) { - return function (target, key) { decorator(target, key, paramIndex); } -} - -export function __metadata(metadataKey, metadataValue) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue); -} - -export function __awaiter(thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -} - -export function __generator(thisArg, body) { - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; - return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; - function verb(n) { return function (v) { return step([n, v]); }; } - function step(op) { - if (f) throw new TypeError("Generator is already executing."); - while (_) try { - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [op[0] & 2, t.value]; - switch (op[0]) { - case 0: case 1: t = op; break; - case 4: _.label++; return { value: op[1], done: false }; - case 5: _.label++; y = op[1]; op = [0]; continue; - case 7: op = _.ops.pop(); _.trys.pop(); continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } - if (t[2]) _.ops.pop(); - _.trys.pop(); continue; - } - op = body.call(thisArg, _); - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; - } -} - -export function __createBinding(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -} - -export function __exportStar(m, exports) { - for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) exports[p] = m[p]; -} - -export function __values(o) { - var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; - if (m) return m.call(o); - if (o && typeof o.length === "number") return { - next: function () { - if (o && i >= o.length) o = void 0; - return { value: o && o[i++], done: !o }; - } - }; - throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); -} - -export function __read(o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -} - -export function __spread() { - for (var ar = [], i = 0; i < arguments.length; i++) - ar = ar.concat(__read(arguments[i])); - return ar; -} - -export function __spreadArrays() { - for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; - for (var r = Array(s), k = 0, i = 0; i < il; i++) - for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) - r[k] = a[j]; - return r; -}; - -export function __await(v) { - return this instanceof __await ? (this.v = v, this) : new __await(v); -} - -export function __asyncGenerator(thisArg, _arguments, generator) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } - function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } - function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } - function fulfill(value) { resume("next", value); } - function reject(value) { resume("throw", value); } - function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -} - -export function __asyncDelegator(o) { - var i, p; - return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; - function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; } -} - -export function __asyncValues(o) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var m = o[Symbol.asyncIterator], i; - return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); - function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } - function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } -} - -export function __makeTemplateObject(cooked, raw) { - if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } - return cooked; -}; - -export function __importStar(mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; - result.default = mod; - return result; -} - -export function __importDefault(mod) { - return (mod && mod.__esModule) ? mod : { default: mod }; -} - -export function __classPrivateFieldGet(receiver, privateMap) { - if (!privateMap.has(receiver)) { - throw new TypeError("attempted to get private field on non-instance"); - } - return privateMap.get(receiver); -} - -export function __classPrivateFieldSet(receiver, privateMap, value) { - if (!privateMap.has(receiver)) { - throw new TypeError("attempted to set private field on non-instance"); - } - privateMap.set(receiver, value); - return value; -} diff --git a/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/tslib.html b/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/tslib.html deleted file mode 100644 index 44c9ba51..00000000 --- a/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/tslib.html +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/tslib.js b/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/tslib.js deleted file mode 100644 index e5b7c9b8..00000000 --- a/node_modules/@aws-crypto/sha256-browser/node_modules/tslib/tslib.js +++ /dev/null @@ -1,284 +0,0 @@ -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */ - -/* global global, define, System, Reflect, Promise */ -var __extends; -var __assign; -var __rest; -var __decorate; -var __param; -var __metadata; -var __awaiter; -var __generator; -var __exportStar; -var __values; -var __read; -var __spread; -var __spreadArrays; -var __await; -var __asyncGenerator; -var __asyncDelegator; -var __asyncValues; -var __makeTemplateObject; -var __importStar; -var __importDefault; -var __classPrivateFieldGet; -var __classPrivateFieldSet; -var __createBinding; -(function (factory) { - var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {}; - if (typeof define === "function" && define.amd) { - define("tslib", ["exports"], function (exports) { factory(createExporter(root, createExporter(exports))); }); - } - else if (typeof module === "object" && typeof module.exports === "object") { - factory(createExporter(root, createExporter(module.exports))); - } - else { - factory(createExporter(root)); - } - function createExporter(exports, previous) { - if (exports !== root) { - if (typeof Object.create === "function") { - Object.defineProperty(exports, "__esModule", { value: true }); - } - else { - exports.__esModule = true; - } - } - return function (id, v) { return exports[id] = previous ? previous(id, v) : v; }; - } -}) -(function (exporter) { - var extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; - - __extends = function (d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; - - __assign = Object.assign || function (t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; - } - return t; - }; - - __rest = function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; - }; - - __decorate = function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; - }; - - __param = function (paramIndex, decorator) { - return function (target, key) { decorator(target, key, paramIndex); } - }; - - __metadata = function (metadataKey, metadataValue) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue); - }; - - __awaiter = function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); - }; - - __generator = function (thisArg, body) { - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; - return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; - function verb(n) { return function (v) { return step([n, v]); }; } - function step(op) { - if (f) throw new TypeError("Generator is already executing."); - while (_) try { - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [op[0] & 2, t.value]; - switch (op[0]) { - case 0: case 1: t = op; break; - case 4: _.label++; return { value: op[1], done: false }; - case 5: _.label++; y = op[1]; op = [0]; continue; - case 7: op = _.ops.pop(); _.trys.pop(); continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } - if (t[2]) _.ops.pop(); - _.trys.pop(); continue; - } - op = body.call(thisArg, _); - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; - } - }; - - __createBinding = function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; - }; - - __exportStar = function (m, exports) { - for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) exports[p] = m[p]; - }; - - __values = function (o) { - var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; - if (m) return m.call(o); - if (o && typeof o.length === "number") return { - next: function () { - if (o && i >= o.length) o = void 0; - return { value: o && o[i++], done: !o }; - } - }; - throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); - }; - - __read = function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; - }; - - __spread = function () { - for (var ar = [], i = 0; i < arguments.length; i++) - ar = ar.concat(__read(arguments[i])); - return ar; - }; - - __spreadArrays = function () { - for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; - for (var r = Array(s), k = 0, i = 0; i < il; i++) - for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) - r[k] = a[j]; - return r; - }; - - __await = function (v) { - return this instanceof __await ? (this.v = v, this) : new __await(v); - }; - - __asyncGenerator = function (thisArg, _arguments, generator) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } - function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } - function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } - function fulfill(value) { resume("next", value); } - function reject(value) { resume("throw", value); } - function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } - }; - - __asyncDelegator = function (o) { - var i, p; - return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; - function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; } - }; - - __asyncValues = function (o) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var m = o[Symbol.asyncIterator], i; - return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); - function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } - function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } - }; - - __makeTemplateObject = function (cooked, raw) { - if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } - return cooked; - }; - - __importStar = function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; - result["default"] = mod; - return result; - }; - - __importDefault = function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; - }; - - __classPrivateFieldGet = function (receiver, privateMap) { - if (!privateMap.has(receiver)) { - throw new TypeError("attempted to get private field on non-instance"); - } - return privateMap.get(receiver); - }; - - __classPrivateFieldSet = function (receiver, privateMap, value) { - if (!privateMap.has(receiver)) { - throw new TypeError("attempted to set private field on non-instance"); - } - privateMap.set(receiver, value); - return value; - }; - - exporter("__extends", __extends); - exporter("__assign", __assign); - exporter("__rest", __rest); - exporter("__decorate", __decorate); - exporter("__param", __param); - exporter("__metadata", __metadata); - exporter("__awaiter", __awaiter); - exporter("__generator", __generator); - exporter("__exportStar", __exportStar); - exporter("__createBinding", __createBinding); - exporter("__values", __values); - exporter("__read", __read); - exporter("__spread", __spread); - exporter("__spreadArrays", __spreadArrays); - exporter("__await", __await); - exporter("__asyncGenerator", __asyncGenerator); - exporter("__asyncDelegator", __asyncDelegator); - exporter("__asyncValues", __asyncValues); - exporter("__makeTemplateObject", __makeTemplateObject); - exporter("__importStar", __importStar); - exporter("__importDefault", __importDefault); - exporter("__classPrivateFieldGet", __classPrivateFieldGet); - exporter("__classPrivateFieldSet", __classPrivateFieldSet); -}); diff --git a/node_modules/@aws-crypto/sha256-browser/package.json b/node_modules/@aws-crypto/sha256-browser/package.json deleted file mode 100644 index fb4dfd29..00000000 --- a/node_modules/@aws-crypto/sha256-browser/package.json +++ /dev/null @@ -1,33 +0,0 @@ -{ - "name": "@aws-crypto/sha256-browser", - "version": "3.0.0", - "scripts": { - "prepublishOnly": "tsc", - "pretest": "tsc -p tsconfig.test.json", - "test": "mocha --require ts-node/register test/**/*test.ts" - }, - "repository": { - "type": "git", - "url": "git@github.com:aws/aws-sdk-js-crypto-helpers.git" - }, - "author": { - "name": "AWS Crypto Tools Team", - "email": "aws-cryptools@amazon.com", - "url": "https://docs.aws.amazon.com/aws-crypto-tools/index.html?id=docs_gateway#lang/en_us" - }, - "homepage": "https://github.com/aws/aws-sdk-js-crypto-helpers/tree/master/packages/sha256-browser", - "license": "Apache-2.0", - "dependencies": { - "@aws-crypto/ie11-detection": "^3.0.0", - "@aws-crypto/sha256-js": "^3.0.0", - "@aws-crypto/supports-web-crypto": "^3.0.0", - "@aws-crypto/util": "^3.0.0", - "@aws-sdk/types": "^3.222.0", - "@aws-sdk/util-locate-window": "^3.0.0", - "@aws-sdk/util-utf8-browser": "^3.0.0", - "tslib": "^1.11.1" - }, - "main": "./build/index.js", - "types": "./build/index.d.ts", - "gitHead": "7f56cee8f62bd65cd397eeec29c3c997215bd80c" -} diff --git a/node_modules/@aws-crypto/sha256-browser/src/constants.ts b/node_modules/@aws-crypto/sha256-browser/src/constants.ts deleted file mode 100644 index 7f68e2ac..00000000 --- a/node_modules/@aws-crypto/sha256-browser/src/constants.ts +++ /dev/null @@ -1,41 +0,0 @@ -export const SHA_256_HASH: { name: "SHA-256" } = { name: "SHA-256" }; - -export const SHA_256_HMAC_ALGO: { name: "HMAC"; hash: { name: "SHA-256" } } = { - name: "HMAC", - hash: SHA_256_HASH -}; - -export const EMPTY_DATA_SHA_256 = new Uint8Array([ - 227, - 176, - 196, - 66, - 152, - 252, - 28, - 20, - 154, - 251, - 244, - 200, - 153, - 111, - 185, - 36, - 39, - 174, - 65, - 228, - 100, - 155, - 147, - 76, - 164, - 149, - 153, - 27, - 120, - 82, - 184, - 85 -]); diff --git a/node_modules/@aws-crypto/sha256-browser/src/crossPlatformSha256.ts b/node_modules/@aws-crypto/sha256-browser/src/crossPlatformSha256.ts deleted file mode 100644 index 30141271..00000000 --- a/node_modules/@aws-crypto/sha256-browser/src/crossPlatformSha256.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { Sha256 as Ie11Sha256 } from "./ie11Sha256"; -import { Sha256 as WebCryptoSha256 } from "./webCryptoSha256"; -import { Sha256 as JsSha256 } from "@aws-crypto/sha256-js"; -import { Checksum, SourceData } from "@aws-sdk/types"; -import { supportsWebCrypto } from "@aws-crypto/supports-web-crypto"; -import { isMsWindow } from "@aws-crypto/ie11-detection"; -import { locateWindow } from "@aws-sdk/util-locate-window"; -import { convertToBuffer } from "@aws-crypto/util"; - -export class Sha256 implements Checksum { - private hash: Checksum; - - constructor(secret?: SourceData) { - if (supportsWebCrypto(locateWindow())) { - this.hash = new WebCryptoSha256(secret); - } else if (isMsWindow(locateWindow())) { - this.hash = new Ie11Sha256(secret); - } else { - this.hash = new JsSha256(secret); - } - } - - update(data: SourceData, encoding?: "utf8" | "ascii" | "latin1"): void { - this.hash.update(convertToBuffer(data)); - } - - digest(): Promise { - return this.hash.digest(); - } - - reset(): void { - this.hash.reset(); - } -} diff --git a/node_modules/@aws-crypto/sha256-browser/src/ie11Sha256.ts b/node_modules/@aws-crypto/sha256-browser/src/ie11Sha256.ts deleted file mode 100644 index 937fb94e..00000000 --- a/node_modules/@aws-crypto/sha256-browser/src/ie11Sha256.ts +++ /dev/null @@ -1,108 +0,0 @@ -import { isEmptyData } from "./isEmptyData"; -import { SHA_256_HMAC_ALGO } from "./constants"; -import { Checksum, SourceData } from "@aws-sdk/types"; -import { fromUtf8 } from "@aws-sdk/util-utf8-browser"; -import { CryptoOperation, Key, MsWindow } from "@aws-crypto/ie11-detection"; -import { locateWindow } from "@aws-sdk/util-locate-window"; - -export class Sha256 implements Checksum { - private readonly secret?: SourceData; - private operation!: Promise; - - constructor(secret?: SourceData) { - this.secret = secret; - this.reset(); - } - - update(toHash: SourceData): void { - if (isEmptyData(toHash)) { - return; - } - - this.operation = this.operation.then(operation => { - operation.onerror = () => { - this.operation = Promise.reject( - new Error("Error encountered updating hash") - ); - }; - operation.process(toArrayBufferView(toHash)); - - return operation; - }); - this.operation.catch(() => {}); - } - - digest(): Promise { - return this.operation.then( - operation => - new Promise((resolve, reject) => { - operation.onerror = () => { - reject(new Error("Error encountered finalizing hash")); - }; - operation.oncomplete = () => { - if (operation.result) { - resolve(new Uint8Array(operation.result)); - } - reject(new Error("Error encountered finalizing hash")); - }; - - operation.finish(); - }) - ); - } - - reset(): void { - if (this.secret) { - this.operation = getKeyPromise(this.secret).then(keyData => - (locateWindow() as MsWindow).msCrypto.subtle.sign( - SHA_256_HMAC_ALGO, - keyData - ) - ); - this.operation.catch(() => {}); - } else { - this.operation = Promise.resolve( - (locateWindow() as MsWindow).msCrypto.subtle.digest("SHA-256") - ); - } - } -} - -function getKeyPromise(secret: SourceData): Promise { - return new Promise((resolve, reject) => { - const keyOperation = (locateWindow() as MsWindow).msCrypto.subtle.importKey( - "raw", - toArrayBufferView(secret), - SHA_256_HMAC_ALGO, - false, - ["sign"] - ); - - keyOperation.oncomplete = () => { - if (keyOperation.result) { - resolve(keyOperation.result); - } - - reject(new Error("ImportKey completed without importing key.")); - }; - keyOperation.onerror = () => { - reject(new Error("ImportKey failed to import key.")); - }; - }); -} - -function toArrayBufferView(data: SourceData): Uint8Array { - if (typeof data === "string") { - return fromUtf8(data); - } - - if (ArrayBuffer.isView(data)) { - return new Uint8Array( - data.buffer, - data.byteOffset, - data.byteLength / Uint8Array.BYTES_PER_ELEMENT - ); - } - - return new Uint8Array(data); -} diff --git a/node_modules/@aws-crypto/sha256-browser/src/index.ts b/node_modules/@aws-crypto/sha256-browser/src/index.ts deleted file mode 100644 index 2e6617e7..00000000 --- a/node_modules/@aws-crypto/sha256-browser/src/index.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * from "./crossPlatformSha256"; -export { Sha256 as Ie11Sha256 } from "./ie11Sha256"; -export { Sha256 as WebCryptoSha256 } from "./webCryptoSha256"; diff --git a/node_modules/@aws-crypto/sha256-browser/src/isEmptyData.ts b/node_modules/@aws-crypto/sha256-browser/src/isEmptyData.ts deleted file mode 100644 index 538971f4..00000000 --- a/node_modules/@aws-crypto/sha256-browser/src/isEmptyData.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { SourceData } from "@aws-sdk/types"; - -export function isEmptyData(data: SourceData): boolean { - if (typeof data === "string") { - return data.length === 0; - } - - return data.byteLength === 0; -} diff --git a/node_modules/@aws-crypto/sha256-browser/src/webCryptoSha256.ts b/node_modules/@aws-crypto/sha256-browser/src/webCryptoSha256.ts deleted file mode 100644 index fe4db571..00000000 --- a/node_modules/@aws-crypto/sha256-browser/src/webCryptoSha256.ts +++ /dev/null @@ -1,71 +0,0 @@ -import { Checksum, SourceData } from "@aws-sdk/types"; -import { isEmptyData, convertToBuffer } from "@aws-crypto/util"; -import { - EMPTY_DATA_SHA_256, - SHA_256_HASH, - SHA_256_HMAC_ALGO, -} from "./constants"; -import { locateWindow } from "@aws-sdk/util-locate-window"; - -export class Sha256 implements Checksum { - private readonly secret?: SourceData; - private key: Promise | undefined; - private toHash: Uint8Array = new Uint8Array(0); - - constructor(secret?: SourceData) { - this.secret = secret; - this.reset(); - } - - update(data: SourceData): void { - if (isEmptyData(data)) { - return; - } - - const update = convertToBuffer(data); - const typedArray = new Uint8Array( - this.toHash.byteLength + update.byteLength - ); - typedArray.set(this.toHash, 0); - typedArray.set(update, this.toHash.byteLength); - this.toHash = typedArray; - } - - digest(): Promise { - if (this.key) { - return this.key.then((key) => - locateWindow() - .crypto.subtle.sign(SHA_256_HMAC_ALGO, key, this.toHash) - .then((data) => new Uint8Array(data)) - ); - } - - if (isEmptyData(this.toHash)) { - return Promise.resolve(EMPTY_DATA_SHA_256); - } - - return Promise.resolve() - .then(() => - locateWindow().crypto.subtle.digest(SHA_256_HASH, this.toHash) - ) - .then((data) => Promise.resolve(new Uint8Array(data))); - } - - reset(): void { - this.toHash = new Uint8Array(0); - if (this.secret && this.secret !== void 0) { - this.key = new Promise((resolve, reject) => { - locateWindow() - .crypto.subtle.importKey( - "raw", - convertToBuffer(this.secret as SourceData), - SHA_256_HMAC_ALGO, - false, - ["sign"] - ) - .then(resolve, reject); - }); - this.key.catch(() => {}); - } - } -} diff --git a/node_modules/@aws-crypto/sha256-browser/tsconfig.json b/node_modules/@aws-crypto/sha256-browser/tsconfig.json deleted file mode 100644 index 9b37394a..00000000 --- a/node_modules/@aws-crypto/sha256-browser/tsconfig.json +++ /dev/null @@ -1,22 +0,0 @@ -{ - "compilerOptions": { - "target": "es5", - "module": "commonjs", - "lib": [ - "dom", - "es5", - "es2015.promise", - "es2015.collection", - "es2015.iterable" - ], - "declaration": true, - "sourceMap": true, - "strict": true, - "rootDir": "./src", - "outDir": "./build", - "importHelpers": true, - "noEmitHelpers": true - }, - "include": ["src/**/*.ts"], - "exclude": ["node_modules/**"] -} diff --git a/node_modules/@aws-crypto/sha256-js/CHANGELOG.md b/node_modules/@aws-crypto/sha256-js/CHANGELOG.md deleted file mode 100644 index 45b6d5d5..00000000 --- a/node_modules/@aws-crypto/sha256-js/CHANGELOG.md +++ /dev/null @@ -1,86 +0,0 @@ -# Change Log - -All notable changes to this project will be documented in this file. -See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. - -# [3.0.0](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/v2.0.2...v3.0.0) (2023-01-12) - -### Bug Fixes - -- **docs:** sha256 packages, clarify hmac support ([#455](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/455)) ([1be5043](https://github.com/aws/aws-sdk-js-crypto-helpers/commit/1be5043325991f3f5ccb52a8dd928f004b4d442e)) - -- feat!: replace Hash implementations with Checksum interface (#492) ([da43dc0](https://github.com/aws/aws-sdk-js-crypto-helpers/commit/da43dc0fdf669d9ebb5bfb1b1f7c79e46c4aaae1)), closes [#492](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/492) - -### BREAKING CHANGES - -- All classes that implemented `Hash` now implement `Checksum`. - -## [2.0.2](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/v2.0.1...v2.0.2) (2022-09-07) - -### Bug Fixes - -- **#337:** update @aws-sdk/types ([#373](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/373)) ([b26a811](https://github.com/aws/aws-sdk-js-crypto-helpers/commit/b26a811a392f5209c7ec7e57251500d4d78f97ff)), closes [#337](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/337) - -## [2.0.1](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/v2.0.0...v2.0.1) (2021-12-09) - -**Note:** Version bump only for package @aws-crypto/sha256-js - -# [2.0.0](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/v1.2.2...v2.0.0) (2021-10-25) - -**Note:** Version bump only for package @aws-crypto/sha256-js - -## [1.2.2](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/v1.2.1...v1.2.2) (2021-10-12) - -**Note:** Version bump only for package @aws-crypto/sha256-js - -## [1.2.1](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/v1.2.0...v1.2.1) (2021-09-17) - -**Note:** Version bump only for package @aws-crypto/sha256-js - -# [1.2.0](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/v1.1.1...v1.2.0) (2021-09-17) - -### Features - -- add @aws-crypto/util ([8f489cb](https://github.com/aws/aws-sdk-js-crypto-helpers/commit/8f489cbe4c0e134f826bac66f1bf5172597048b9)) - -# [1.1.0](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/@aws-crypto/sha256-js@1.0.0...@aws-crypto/sha256-js@1.1.0) (2021-01-13) - -### Bug Fixes - -- remove package lock ([6002a5a](https://github.com/aws/aws-sdk-js-crypto-helpers/commit/6002a5ab9218dc8798c19dc205d3eebd3bec5b43)) -- **aws-crypto:** export explicit dependencies on [@aws-types](https://github.com/aws-types) ([6a1873a](https://github.com/aws/aws-sdk-js-crypto-helpers/commit/6a1873a4dcc2aaa4a1338595703cfa7099f17b8c)) -- **deps-dev:** move @aws-sdk/types to devDependencies ([#188](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/188)) ([08efdf4](https://github.com/aws/aws-sdk-js-crypto-helpers/commit/08efdf46dcc612d88c441e29945d787f253ee77d)) - -# [1.0.0](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/@aws-crypto/sha256-js@1.0.0-alpha.0...@aws-crypto/sha256-js@1.0.0) (2020-10-22) - -**Note:** Version bump only for package @aws-crypto/sha256-js - -# [1.0.0-alpha.0](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/@aws-crypto/sha256-js@0.1.0-preview.4...@aws-crypto/sha256-js@1.0.0-alpha.0) (2020-02-07) - -**Note:** Version bump only for package @aws-crypto/sha256-js - -# [0.1.0-preview.4](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/@aws-crypto/sha256-js@0.1.0-preview.2...@aws-crypto/sha256-js@0.1.0-preview.4) (2020-01-16) - -### Bug Fixes - -- Changed package.json files to point to the right Git repo ([#9](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/9)) ([028245d](https://github.com/aws/aws-sdk-js-crypto-helpers/commit/028245d72e642ca98d82226afb300eb154503c4a)), closes [#8](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/8) -- es2015.iterable required ([#10](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/10)) ([6e08d83](https://github.com/aws/aws-sdk-js-crypto-helpers/commit/6e08d83c33667ad8cbeeaaa7cedf1bbe05f79ed8)) -- lerna version maintains package-lock ([#14](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/14)) ([2ef29e1](https://github.com/aws/aws-sdk-js-crypto-helpers/commit/2ef29e13779703a5c9b32e93d18918fcb33b7272)), closes [#13](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/13) - -# [0.1.0-preview.3](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/@aws-crypto/sha256-js@0.1.0-preview.2...@aws-crypto/sha256-js@0.1.0-preview.3) (2019-11-15) - -### Bug Fixes - -- Changed package.json files to point to the right Git repo ([#9](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/9)) ([028245d](https://github.com/aws/aws-sdk-js-crypto-helpers/commit/028245d72e642ca98d82226afb300eb154503c4a)), closes [#8](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/8) -- es2015.iterable required ([#10](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/10)) ([6e08d83](https://github.com/aws/aws-sdk-js-crypto-helpers/commit/6e08d83c33667ad8cbeeaaa7cedf1bbe05f79ed8)) -- lerna version maintains package-lock ([#14](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/14)) ([2ef29e1](https://github.com/aws/aws-sdk-js-crypto-helpers/commit/2ef29e13779703a5c9b32e93d18918fcb33b7272)), closes [#13](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/13) - -# [0.1.0-preview.2](https://github.com/aws/aws-javascript-crypto-helpers/compare/@aws-crypto/sha256-js@0.1.0-preview.1...@aws-crypto/sha256-js@0.1.0-preview.2) (2019-10-30) - -### Bug Fixes - -- remove /src/ from .npmignore (for sourcemaps) ([#5](https://github.com/aws/aws-javascript-crypto-helpers/issues/5)) ([ec52056](https://github.com/aws/aws-javascript-crypto-helpers/commit/ec52056)) - -### Features - -- **sha256-js:** expose synchronous digest ([#7](https://github.com/aws/aws-javascript-crypto-helpers/issues/7)) ([9edaef7](https://github.com/aws/aws-javascript-crypto-helpers/commit/9edaef7)), closes [#6](https://github.com/aws/aws-javascript-crypto-helpers/issues/6) diff --git a/node_modules/@aws-crypto/sha256-js/LICENSE b/node_modules/@aws-crypto/sha256-js/LICENSE deleted file mode 100644 index ad410e11..00000000 --- a/node_modules/@aws-crypto/sha256-js/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright {yyyy} {name of copyright owner} - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. \ No newline at end of file diff --git a/node_modules/@aws-crypto/sha256-js/README.md b/node_modules/@aws-crypto/sha256-js/README.md deleted file mode 100644 index f769f5b0..00000000 --- a/node_modules/@aws-crypto/sha256-js/README.md +++ /dev/null @@ -1,29 +0,0 @@ -# crypto-sha256-js - -A pure JS implementation SHA256. - -## Usage - -- To hash "some data" -``` -import {Sha256} from '@aws-crypto/sha256-js'; - -const hash = new Sha256(); -hash.update('some data'); -const result = await hash.digest(); - -``` - -- To hmac "some data" with "a key" -``` -import {Sha256} from '@aws-crypto/sha256-js'; - -const hash = new Sha256('a key'); -hash.update('some data'); -const result = await hash.digest(); - -``` - -## Test - -`npm test` diff --git a/node_modules/@aws-crypto/sha256-js/build/RawSha256.d.ts b/node_modules/@aws-crypto/sha256-js/build/RawSha256.d.ts deleted file mode 100644 index 1f580b25..00000000 --- a/node_modules/@aws-crypto/sha256-js/build/RawSha256.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * @internal - */ -export declare class RawSha256 { - private state; - private temp; - private buffer; - private bufferLength; - private bytesHashed; - /** - * @internal - */ - finished: boolean; - update(data: Uint8Array): void; - digest(): Uint8Array; - private hashBuffer; -} diff --git a/node_modules/@aws-crypto/sha256-js/build/RawSha256.js b/node_modules/@aws-crypto/sha256-js/build/RawSha256.js deleted file mode 100644 index 68ceaccd..00000000 --- a/node_modules/@aws-crypto/sha256-js/build/RawSha256.js +++ /dev/null @@ -1,124 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.RawSha256 = void 0; -var constants_1 = require("./constants"); -/** - * @internal - */ -var RawSha256 = /** @class */ (function () { - function RawSha256() { - this.state = Int32Array.from(constants_1.INIT); - this.temp = new Int32Array(64); - this.buffer = new Uint8Array(64); - this.bufferLength = 0; - this.bytesHashed = 0; - /** - * @internal - */ - this.finished = false; - } - RawSha256.prototype.update = function (data) { - if (this.finished) { - throw new Error("Attempted to update an already finished hash."); - } - var position = 0; - var byteLength = data.byteLength; - this.bytesHashed += byteLength; - if (this.bytesHashed * 8 > constants_1.MAX_HASHABLE_LENGTH) { - throw new Error("Cannot hash more than 2^53 - 1 bits"); - } - while (byteLength > 0) { - this.buffer[this.bufferLength++] = data[position++]; - byteLength--; - if (this.bufferLength === constants_1.BLOCK_SIZE) { - this.hashBuffer(); - this.bufferLength = 0; - } - } - }; - RawSha256.prototype.digest = function () { - if (!this.finished) { - var bitsHashed = this.bytesHashed * 8; - var bufferView = new DataView(this.buffer.buffer, this.buffer.byteOffset, this.buffer.byteLength); - var undecoratedLength = this.bufferLength; - bufferView.setUint8(this.bufferLength++, 0x80); - // Ensure the final block has enough room for the hashed length - if (undecoratedLength % constants_1.BLOCK_SIZE >= constants_1.BLOCK_SIZE - 8) { - for (var i = this.bufferLength; i < constants_1.BLOCK_SIZE; i++) { - bufferView.setUint8(i, 0); - } - this.hashBuffer(); - this.bufferLength = 0; - } - for (var i = this.bufferLength; i < constants_1.BLOCK_SIZE - 8; i++) { - bufferView.setUint8(i, 0); - } - bufferView.setUint32(constants_1.BLOCK_SIZE - 8, Math.floor(bitsHashed / 0x100000000), true); - bufferView.setUint32(constants_1.BLOCK_SIZE - 4, bitsHashed); - this.hashBuffer(); - this.finished = true; - } - // The value in state is little-endian rather than big-endian, so flip - // each word into a new Uint8Array - var out = new Uint8Array(constants_1.DIGEST_LENGTH); - for (var i = 0; i < 8; i++) { - out[i * 4] = (this.state[i] >>> 24) & 0xff; - out[i * 4 + 1] = (this.state[i] >>> 16) & 0xff; - out[i * 4 + 2] = (this.state[i] >>> 8) & 0xff; - out[i * 4 + 3] = (this.state[i] >>> 0) & 0xff; - } - return out; - }; - RawSha256.prototype.hashBuffer = function () { - var _a = this, buffer = _a.buffer, state = _a.state; - var state0 = state[0], state1 = state[1], state2 = state[2], state3 = state[3], state4 = state[4], state5 = state[5], state6 = state[6], state7 = state[7]; - for (var i = 0; i < constants_1.BLOCK_SIZE; i++) { - if (i < 16) { - this.temp[i] = - ((buffer[i * 4] & 0xff) << 24) | - ((buffer[i * 4 + 1] & 0xff) << 16) | - ((buffer[i * 4 + 2] & 0xff) << 8) | - (buffer[i * 4 + 3] & 0xff); - } - else { - var u = this.temp[i - 2]; - var t1_1 = ((u >>> 17) | (u << 15)) ^ ((u >>> 19) | (u << 13)) ^ (u >>> 10); - u = this.temp[i - 15]; - var t2_1 = ((u >>> 7) | (u << 25)) ^ ((u >>> 18) | (u << 14)) ^ (u >>> 3); - this.temp[i] = - ((t1_1 + this.temp[i - 7]) | 0) + ((t2_1 + this.temp[i - 16]) | 0); - } - var t1 = ((((((state4 >>> 6) | (state4 << 26)) ^ - ((state4 >>> 11) | (state4 << 21)) ^ - ((state4 >>> 25) | (state4 << 7))) + - ((state4 & state5) ^ (~state4 & state6))) | - 0) + - ((state7 + ((constants_1.KEY[i] + this.temp[i]) | 0)) | 0)) | - 0; - var t2 = ((((state0 >>> 2) | (state0 << 30)) ^ - ((state0 >>> 13) | (state0 << 19)) ^ - ((state0 >>> 22) | (state0 << 10))) + - ((state0 & state1) ^ (state0 & state2) ^ (state1 & state2))) | - 0; - state7 = state6; - state6 = state5; - state5 = state4; - state4 = (state3 + t1) | 0; - state3 = state2; - state2 = state1; - state1 = state0; - state0 = (t1 + t2) | 0; - } - state[0] += state0; - state[1] += state1; - state[2] += state2; - state[3] += state3; - state[4] += state4; - state[5] += state5; - state[6] += state6; - state[7] += state7; - }; - return RawSha256; -}()); -exports.RawSha256 = RawSha256; -//# sourceMappingURL=RawSha256.js.map \ No newline at end of file diff --git a/node_modules/@aws-crypto/sha256-js/build/RawSha256.js.map b/node_modules/@aws-crypto/sha256-js/build/RawSha256.js.map deleted file mode 100644 index 10677173..00000000 --- a/node_modules/@aws-crypto/sha256-js/build/RawSha256.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"RawSha256.js","sourceRoot":"","sources":["../src/RawSha256.ts"],"names":[],"mappings":";;;AAAA,yCAMqB;AAErB;;GAEG;AACH;IAAA;QACU,UAAK,GAAe,UAAU,CAAC,IAAI,CAAC,gBAAI,CAAC,CAAC;QAC1C,SAAI,GAAe,IAAI,UAAU,CAAC,EAAE,CAAC,CAAC;QACtC,WAAM,GAAe,IAAI,UAAU,CAAC,EAAE,CAAC,CAAC;QACxC,iBAAY,GAAW,CAAC,CAAC;QACzB,gBAAW,GAAW,CAAC,CAAC;QAEhC;;WAEG;QACH,aAAQ,GAAY,KAAK,CAAC;IA8I5B,CAAC;IA5IC,0BAAM,GAAN,UAAO,IAAgB;QACrB,IAAI,IAAI,CAAC,QAAQ,EAAE;YACjB,MAAM,IAAI,KAAK,CAAC,+CAA+C,CAAC,CAAC;SAClE;QAED,IAAI,QAAQ,GAAG,CAAC,CAAC;QACX,IAAA,UAAU,GAAK,IAAI,WAAT,CAAU;QAC1B,IAAI,CAAC,WAAW,IAAI,UAAU,CAAC;QAE/B,IAAI,IAAI,CAAC,WAAW,GAAG,CAAC,GAAG,+BAAmB,EAAE;YAC9C,MAAM,IAAI,KAAK,CAAC,qCAAqC,CAAC,CAAC;SACxD;QAED,OAAO,UAAU,GAAG,CAAC,EAAE;YACrB,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,YAAY,EAAE,CAAC,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC,CAAC;YACpD,UAAU,EAAE,CAAC;YAEb,IAAI,IAAI,CAAC,YAAY,KAAK,sBAAU,EAAE;gBACpC,IAAI,CAAC,UAAU,EAAE,CAA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gBAC9D,CAAC,CAAC;YAEJ,MAAM,GAAG,MAAM,CAAC;YAChB,MAAM,GAAG,MAAM,CAAC;YAChB,MAAM,GAAG,MAAM,CAAC;YAChB,MAAM,GAAG,CAAC,MAAM,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC;YAC3B,MAAM,GAAG,MAAM,CAAC;YAChB,MAAM,GAAG,MAAM,CAAC;YAChB,MAAM,GAAG,MAAM,CAAC;YAChB,MAAM,GAAG,CAAC,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC;SACxB;QAED,KAAK,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC;QACnB,KAAK,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC;QACnB,KAAK,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC;QACnB,KAAK,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC;QACnB,KAAK,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC;QACnB,KAAK,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC;QACnB,KAAK,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC;QACnB,KAAK,CAAC,CAAC,CAAC,IAAI,MAAM,CAAC;IACrB,CAAC;IACH,gBAAC;AAAD,CAAC,AAxJD,IAwJC;AAxJY,8BAAS"} \ No newline at end of file diff --git a/node_modules/@aws-crypto/sha256-js/build/constants.d.ts b/node_modules/@aws-crypto/sha256-js/build/constants.d.ts deleted file mode 100644 index 63bd764e..00000000 --- a/node_modules/@aws-crypto/sha256-js/build/constants.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * @internal - */ -export declare const BLOCK_SIZE: number; -/** - * @internal - */ -export declare const DIGEST_LENGTH: number; -/** - * @internal - */ -export declare const KEY: Uint32Array; -/** - * @internal - */ -export declare const INIT: number[]; -/** - * @internal - */ -export declare const MAX_HASHABLE_LENGTH: number; diff --git a/node_modules/@aws-crypto/sha256-js/build/constants.js b/node_modules/@aws-crypto/sha256-js/build/constants.js deleted file mode 100644 index c83aa099..00000000 --- a/node_modules/@aws-crypto/sha256-js/build/constants.js +++ /dev/null @@ -1,98 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MAX_HASHABLE_LENGTH = exports.INIT = exports.KEY = exports.DIGEST_LENGTH = exports.BLOCK_SIZE = void 0; -/** - * @internal - */ -exports.BLOCK_SIZE = 64; -/** - * @internal - */ -exports.DIGEST_LENGTH = 32; -/** - * @internal - */ -exports.KEY = new Uint32Array([ - 0x428a2f98, - 0x71374491, - 0xb5c0fbcf, - 0xe9b5dba5, - 0x3956c25b, - 0x59f111f1, - 0x923f82a4, - 0xab1c5ed5, - 0xd807aa98, - 0x12835b01, - 0x243185be, - 0x550c7dc3, - 0x72be5d74, - 0x80deb1fe, - 0x9bdc06a7, - 0xc19bf174, - 0xe49b69c1, - 0xefbe4786, - 0x0fc19dc6, - 0x240ca1cc, - 0x2de92c6f, - 0x4a7484aa, - 0x5cb0a9dc, - 0x76f988da, - 0x983e5152, - 0xa831c66d, - 0xb00327c8, - 0xbf597fc7, - 0xc6e00bf3, - 0xd5a79147, - 0x06ca6351, - 0x14292967, - 0x27b70a85, - 0x2e1b2138, - 0x4d2c6dfc, - 0x53380d13, - 0x650a7354, - 0x766a0abb, - 0x81c2c92e, - 0x92722c85, - 0xa2bfe8a1, - 0xa81a664b, - 0xc24b8b70, - 0xc76c51a3, - 0xd192e819, - 0xd6990624, - 0xf40e3585, - 0x106aa070, - 0x19a4c116, - 0x1e376c08, - 0x2748774c, - 0x34b0bcb5, - 0x391c0cb3, - 0x4ed8aa4a, - 0x5b9cca4f, - 0x682e6ff3, - 0x748f82ee, - 0x78a5636f, - 0x84c87814, - 0x8cc70208, - 0x90befffa, - 0xa4506ceb, - 0xbef9a3f7, - 0xc67178f2 -]); -/** - * @internal - */ -exports.INIT = [ - 0x6a09e667, - 0xbb67ae85, - 0x3c6ef372, - 0xa54ff53a, - 0x510e527f, - 0x9b05688c, - 0x1f83d9ab, - 0x5be0cd19 -]; -/** - * @internal - */ -exports.MAX_HASHABLE_LENGTH = Math.pow(2, 53) - 1; -//# sourceMappingURL=constants.js.map \ No newline at end of file diff --git a/node_modules/@aws-crypto/sha256-js/build/constants.js.map b/node_modules/@aws-crypto/sha256-js/build/constants.js.map deleted file mode 100644 index 409d2b16..00000000 --- a/node_modules/@aws-crypto/sha256-js/build/constants.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"constants.js","sourceRoot":"","sources":["../src/constants.ts"],"names":[],"mappings":";;;AAAA;;GAEG;AACU,QAAA,UAAU,GAAW,EAAE,CAAC;AAErC;;GAEG;AACU,QAAA,aAAa,GAAW,EAAE,CAAC;AAExC;;GAEG;AACU,QAAA,GAAG,GAAG,IAAI,WAAW,CAAC;IACjC,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;CACX,CAAC,CAAC;AAEH;;GAEG;AACU,QAAA,IAAI,GAAG;IAClB,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;IACV,UAAU;CACX,CAAC;AAEF;;GAEG;AACU,QAAA,mBAAmB,GAAG,SAAA,CAAC,EAAI,EAAE,CAAA,GAAG,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@aws-crypto/sha256-js/build/index.d.ts b/node_modules/@aws-crypto/sha256-js/build/index.d.ts deleted file mode 100644 index 4554d8a3..00000000 --- a/node_modules/@aws-crypto/sha256-js/build/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./jsSha256"; diff --git a/node_modules/@aws-crypto/sha256-js/build/index.js b/node_modules/@aws-crypto/sha256-js/build/index.js deleted file mode 100644 index 4329f109..00000000 --- a/node_modules/@aws-crypto/sha256-js/build/index.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./jsSha256"), exports); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@aws-crypto/sha256-js/build/index.js.map b/node_modules/@aws-crypto/sha256-js/build/index.js.map deleted file mode 100644 index 518010f0..00000000 --- a/node_modules/@aws-crypto/sha256-js/build/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;AAAA,qDAA2B"} \ No newline at end of file diff --git a/node_modules/@aws-crypto/sha256-js/build/jsSha256.d.ts b/node_modules/@aws-crypto/sha256-js/build/jsSha256.d.ts deleted file mode 100644 index d813b256..00000000 --- a/node_modules/@aws-crypto/sha256-js/build/jsSha256.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { Checksum, SourceData } from "@aws-sdk/types"; -export declare class Sha256 implements Checksum { - private readonly secret?; - private hash; - private outer?; - private error; - constructor(secret?: SourceData); - update(toHash: SourceData): void; - digestSync(): Uint8Array; - digest(): Promise; - reset(): void; -} diff --git a/node_modules/@aws-crypto/sha256-js/build/jsSha256.js b/node_modules/@aws-crypto/sha256-js/build/jsSha256.js deleted file mode 100644 index 2a4f2f19..00000000 --- a/node_modules/@aws-crypto/sha256-js/build/jsSha256.js +++ /dev/null @@ -1,85 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Sha256 = void 0; -var tslib_1 = require("tslib"); -var constants_1 = require("./constants"); -var RawSha256_1 = require("./RawSha256"); -var util_1 = require("@aws-crypto/util"); -var Sha256 = /** @class */ (function () { - function Sha256(secret) { - this.secret = secret; - this.hash = new RawSha256_1.RawSha256(); - this.reset(); - } - Sha256.prototype.update = function (toHash) { - if ((0, util_1.isEmptyData)(toHash) || this.error) { - return; - } - try { - this.hash.update((0, util_1.convertToBuffer)(toHash)); - } - catch (e) { - this.error = e; - } - }; - /* This synchronous method keeps compatibility - * with the v2 aws-sdk. - */ - Sha256.prototype.digestSync = function () { - if (this.error) { - throw this.error; - } - if (this.outer) { - if (!this.outer.finished) { - this.outer.update(this.hash.digest()); - } - return this.outer.digest(); - } - return this.hash.digest(); - }; - /* The underlying digest method here is synchronous. - * To keep the same interface with the other hash functions - * the default is to expose this as an async method. - * However, it can sometimes be useful to have a sync method. - */ - Sha256.prototype.digest = function () { - return tslib_1.__awaiter(this, void 0, void 0, function () { - return tslib_1.__generator(this, function (_a) { - return [2 /*return*/, this.digestSync()]; - }); - }); - }; - Sha256.prototype.reset = function () { - this.hash = new RawSha256_1.RawSha256(); - if (this.secret) { - this.outer = new RawSha256_1.RawSha256(); - var inner = bufferFromSecret(this.secret); - var outer = new Uint8Array(constants_1.BLOCK_SIZE); - outer.set(inner); - for (var i = 0; i < constants_1.BLOCK_SIZE; i++) { - inner[i] ^= 0x36; - outer[i] ^= 0x5c; - } - this.hash.update(inner); - this.outer.update(outer); - // overwrite the copied key in memory - for (var i = 0; i < inner.byteLength; i++) { - inner[i] = 0; - } - } - }; - return Sha256; -}()); -exports.Sha256 = Sha256; -function bufferFromSecret(secret) { - var input = (0, util_1.convertToBuffer)(secret); - if (input.byteLength > constants_1.BLOCK_SIZE) { - var bufferHash = new RawSha256_1.RawSha256(); - bufferHash.update(input); - input = bufferHash.digest(); - } - var buffer = new Uint8Array(constants_1.BLOCK_SIZE); - buffer.set(input); - return buffer; -} -//# sourceMappingURL=jsSha256.js.map \ No newline at end of file diff --git a/node_modules/@aws-crypto/sha256-js/build/jsSha256.js.map b/node_modules/@aws-crypto/sha256-js/build/jsSha256.js.map deleted file mode 100644 index 1a90ca4b..00000000 --- a/node_modules/@aws-crypto/sha256-js/build/jsSha256.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"jsSha256.js","sourceRoot":"","sources":["../src/jsSha256.ts"],"names":[],"mappings":";;;;AAAA,yCAAyC;AACzC,yCAAwC;AAExC,yCAAgE;AAEhE;IAME,gBAAY,MAAmB;QAC7B,IAAI,CAAC,MAAM,GAAG,MAAM,CAAC;QACrB,IAAI,CAAC,IAAI,GAAG,IAAI,qBAAS,EAAE,CAAC;QAC5B,IAAI,CAAC,KAAK,EAAE,CAAC;IACf,CAAC;IAED,uBAAM,GAAN,UAAO,MAAkB;QACvB,IAAI,IAAA,kBAAW,EAAC,MAAM,CAAC,IAAI,IAAI,CAAC,KAAK,EAAE;YACrC,OAAO;SACR;QAED,IAAI;YACF,IAAI,CAAC,IAAI,CAAC,MAAM,CAAC,IAAA,sBAAe,EAAC,MAAM,CAAC,CAAC,CAAC;SAC3C;QAAC,OAAO,CAAC,EAAE;YACV,IAAI,CAAC,KAAK,GAAG,CAAC,CAAC;SAChB;IACH,CAAC;IAED;;OAEG;IACH,2BAAU,GAAV;QACE,IAAI,IAAI,CAAC,KAAK,EAAE;YACd,MAAM,IAAI,CAAC,KAAK,CAAC;SAClB;QAED,IAAI,IAAI,CAAC,KAAK,EAAE;YACd,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE;gBACxB,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,IAAI,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MAAM,CAAC,CAAC;IAEpC,IAAI,KAAK,CAAC,UAAU,GAAG,sBAAU,EAAE;QACjC,IAAM,UAAU,GAAG,IAAI,qBAAS,EAAE,CAAC;QACnC,UAAU,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;QACzB,KAAK,GAAG,UAAU,CAAC,MAAM,EAAE,CAAC;KAC7B;IAED,IAAM,MAAM,GAAG,IAAI,UAAU,CAAC,sBAAU,CAAC,CAAC;IAC1C,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;IAClB,OAAO,MAAM,CAAC;AAChB,CAAC"} \ No newline at end of file diff --git a/node_modules/@aws-crypto/sha256-js/build/knownHashes.fixture.d.ts b/node_modules/@aws-crypto/sha256-js/build/knownHashes.fixture.d.ts deleted file mode 100644 index d8803432..00000000 --- a/node_modules/@aws-crypto/sha256-js/build/knownHashes.fixture.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export declare const hashTestVectors: Array<[Uint8Array, Uint8Array]>; -/** - * @see https://tools.ietf.org/html/rfc4231 - */ -export declare const hmacTestVectors: Array<[Uint8Array, Uint8Array, Uint8Array]>; diff --git a/node_modules/@aws-crypto/sha256-js/build/knownHashes.fixture.js b/node_modules/@aws-crypto/sha256-js/build/knownHashes.fixture.js deleted file mode 100644 index 3f0dd2f7..00000000 --- a/node_modules/@aws-crypto/sha256-js/build/knownHashes.fixture.js +++ /dev/null @@ -1,322 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.hmacTestVectors = exports.hashTestVectors = void 0; -var util_hex_encoding_1 = require("@aws-sdk/util-hex-encoding"); -var millionChars = new Uint8Array(1000000); -for (var i = 0; i < 1000000; i++) { - millionChars[i] = 97; -} -exports.hashTestVectors = [ - [ - Uint8Array.from([97, 98, 99]), - (0, util_hex_encoding_1.fromHex)("ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad") - ], - [ - new Uint8Array(0), - (0, util_hex_encoding_1.fromHex)("e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855") - ], - [ - (0, util_hex_encoding_1.fromHex)("61"), - (0, util_hex_encoding_1.fromHex)("ca978112ca1bbdcafac231b39a23dc4da786eff8147c4e72b9807785afee48bb") - ], - [ - (0, util_hex_encoding_1.fromHex)("6161"), - (0, util_hex_encoding_1.fromHex)("961b6dd3ede3cb8ecbaacbd68de040cd78eb2ed5889130cceb4c49268ea4d506") - ], - [ - (0, util_hex_encoding_1.fromHex)("616161"), - (0, util_hex_encoding_1.fromHex)("9834876dcfb05cb167a5c24953eba58c4ac89b1adf57f28f2f9d09af107ee8f0") - ], - [ - (0, util_hex_encoding_1.fromHex)("61616161"), - (0, util_hex_encoding_1.fromHex)("61be55a8e2f6b4e172338bddf184d6dbee29c98853e0a0485ecee7f27b9af0b4") - ], - [ - (0, util_hex_encoding_1.fromHex)("6161616161"), - (0, util_hex_encoding_1.fromHex)("ed968e840d10d2d313a870bc131a4e2c311d7ad09bdf32b3418147221f51a6e2") - ], - [ - (0, util_hex_encoding_1.fromHex)("616161616161"), - (0, util_hex_encoding_1.fromHex)("ed02457b5c41d964dbd2f2a609d63fe1bb7528dbe55e1abf5b52c249cd735797") - ], - [ - (0, util_hex_encoding_1.fromHex)("61616161616161"), - (0, util_hex_encoding_1.fromHex)("e46240714b5db3a23eee60479a623efba4d633d27fe4f03c904b9e219a7fbe60") - ], - [ - (0, util_hex_encoding_1.fromHex)("6161616161616161"), - (0, util_hex_encoding_1.fromHex)("1f3ce40415a2081fa3eee75fc39fff8e56c22270d1a978a7249b592dcebd20b4") - ], - [ - (0, util_hex_encoding_1.fromHex)("616161616161616161"), - (0, util_hex_encoding_1.fromHex)("f2aca93b80cae681221f0445fa4e2cae8a1f9f8fa1e1741d9639caad222f537d") - ], - [ - (0, util_hex_encoding_1.fromHex)("61616161616161616161"), - (0, util_hex_encoding_1.fromHex)("bf2cb58a68f684d95a3b78ef8f661c9a4e5b09e82cc8f9cc88cce90528caeb27") - ], - [ - (0, util_hex_encoding_1.fromHex)("6161616161616161616161"), - (0, util_hex_encoding_1.fromHex)("28cb017dfc99073aa1b47c1b30f413e3ce774c4991eb4158de50f9dbb36d8043") - ], - [ - (0, util_hex_encoding_1.fromHex)("616161616161616161616161"), - (0, util_hex_encoding_1.fromHex)("f24abc34b13fade76e805799f71187da6cd90b9cac373ae65ed57f143bd664e5") - ], - [ - (0, util_hex_encoding_1.fromHex)("61616161616161616161616161"), - (0, util_hex_encoding_1.fromHex)("a689d786e81340e45511dec6c7ab2d978434e5db123362450fe10cfac70d19d0") - ], - [ - (0, util_hex_encoding_1.fromHex)("6161616161616161616161616161"), - (0, util_hex_encoding_1.fromHex)("82cab7df0abfb9d95dca4e5937ce2968c798c726fea48c016bf9763221efda13") - ], - [ - (0, util_hex_encoding_1.fromHex)("616161616161616161616161616161"), - (0, util_hex_encoding_1.fromHex)("ef2df0b539c6c23de0f4cbe42648c301ae0e22e887340a4599fb4ef4e2678e48") - ], - [ - (0, util_hex_encoding_1.fromHex)("61616161616161616161616161616161"), - (0, util_hex_encoding_1.fromHex)("0c0beacef8877bbf2416eb00f2b5dc96354e26dd1df5517320459b1236860f8c") - ], - [ - (0, util_hex_encoding_1.fromHex)("6161616161616161616161616161616161"), - (0, util_hex_encoding_1.fromHex)("b860666ee2966dd8f903be44ee605c6e1366f926d9f17a8f49937d11624eb99d") - ], - [ - (0, util_hex_encoding_1.fromHex)("616161616161616161616161616161616161"), - (0, util_hex_encoding_1.fromHex)("c926defaaa3d13eda2fc63a553bb7fb7326bece6e7cb67ca5296e4727d89bab4") - ], - [ - (0, util_hex_encoding_1.fromHex)("61616161616161616161616161616161616161"), - (0, util_hex_encoding_1.fromHex)("a0b4aaab8a966e2193ba172d68162c4656860197f256b5f45f0203397ff3f99c") - ], - [ - (0, util_hex_encoding_1.fromHex)("6161616161616161616161616161616161616161"), - (0, util_hex_encoding_1.fromHex)("42492da06234ad0ac76f5d5debdb6d1ae027cffbe746a1c13b89bb8bc0139137") - ], - [ - (0, util_hex_encoding_1.fromHex)("616161616161616161616161616161616161616161"), - (0, util_hex_encoding_1.fromHex)("7df8e299c834de198e264c3e374bc58ecd9382252a705c183beb02f275571e3b") - ], - [ - (0, util_hex_encoding_1.fromHex)("61616161616161616161616161616161616161616161"), - (0, util_hex_encoding_1.fromHex)("ec7c494df6d2a7ea36668d656e6b8979e33641bfea378c15038af3964db057a3") - ], - [ - (0, util_hex_encoding_1.fromHex)("6161616161616161616161616161616161616161616161"), - (0, util_hex_encoding_1.fromHex)("897d3e95b65f26676081f8b9f3a98b6ee4424566303e8d4e7c7522ebae219eab") - ], - [ - (0, util_hex_encoding_1.fromHex)("616161616161616161616161616161616161616161616161"), - (0, util_hex_encoding_1.fromHex)("09f61f8d9cd65e6a0c258087c485b6293541364e42bd97b2d7936580c8aa3c54") - ], - [ - (0, util_hex_encoding_1.fromHex)("61616161616161616161616161616161616161616161616161"), - (0, util_hex_encoding_1.fromHex)("2f521e2a7d0bd812cbc035f4ed6806eb8d851793b04ba147e8f66b72f5d1f20f") - ], - [ - (0, util_hex_encoding_1.fromHex)("6161616161616161616161616161616161616161616161616161"), - (0, util_hex_encoding_1.fromHex)("9976d549a25115dab4e36d0c1fb8f31cb07da87dd83275977360eb7dc09e88de") - ], - [ - (0, util_hex_encoding_1.fromHex)("616161616161616161616161616161616161616161616161616161"), - (0, util_hex_encoding_1.fromHex)("cc0616e61cbd6e8e5e34e9fb2d320f37de915820206f5696c31f1fbd24aa16de") - ], - [ - (0, util_hex_encoding_1.fromHex)("61616161616161616161616161616161616161616161616161616161"), - (0, util_hex_encoding_1.fromHex)("9c547cb8115a44883b9f70ba68f75117cd55359c92611875e386f8af98c172ab") - ], - [ - (0, util_hex_encoding_1.fromHex)("6161616161616161616161616161616161616161616161616161616161"), - (0, util_hex_encoding_1.fromHex)("6913c9c7fd42fe23df8b6bcd4dbaf1c17748948d97f2980b432319c39eddcf6c") - ], - [ - (0, util_hex_encoding_1.fromHex)("616161616161616161616161616161616161616161616161616161616161"), - (0, util_hex_encoding_1.fromHex)("3a54fc0cbc0b0ef48b6507b7788096235d10292dd3ae24e22f5aa062d4f9864a") - ], - [ - (0, util_hex_encoding_1.fromHex)("61616161616161616161616161616161616161616161616161616161616161"), - (0, util_hex_encoding_1.fromHex)("61c60b487d1a921e0bcc9bf853dda0fb159b30bf57b2e2d2c753b00be15b5a09") - ], - [ - (0, util_hex_encoding_1.fromHex)("6161616161616161616161616161616161616161616161616161616161616161"), - (0, util_hex_encoding_1.fromHex)("3ba3f5f43b92602683c19aee62a20342b084dd5971ddd33808d81a328879a547") - ], - [ - (0, util_hex_encoding_1.fromHex)("616161616161616161616161616161616161616161616161616161616161616161"), - (0, util_hex_encoding_1.fromHex)("852785c805c77e71a22340a54e9d95933ed49121e7d2bf3c2d358854bc1359ea") - ], - [ - (0, util_hex_encoding_1.fromHex)("61616161616161616161616161616161616161616161616161616161616161616161"), - (0, util_hex_encoding_1.fromHex)("a27c896c4859204843166af66f0e902b9c3b3ed6d2fd13d435abc020065c526f") - ], - [ - (0, util_hex_encoding_1.fromHex)("6161616161616161616161616161616161616161616161616161616161616161616161"), - (0, util_hex_encoding_1.fromHex)("629362afc62c74497caed2272e30f8125ecd0965f8d8d7cfc4e260f7f8dd319d") - ], - [ - (0, util_hex_encoding_1.fromHex)("616161616161616161616161616161616161616161616161616161616161616161616161"), - (0, util_hex_encoding_1.fromHex)("22c1d24bcd03e9aee9832efccd6da613fc702793178e5f12c945c7b67ddda933") - ], - [ - (0, util_hex_encoding_1.fromHex)("61616161616161616161616161616161616161616161616161616161616161616161616161"), - (0, util_hex_encoding_1.fromHex)("21ec055b38ce759cd4d0f477e9bdec2c5b8199945db4439bae334a964df6246c") - ], - [ - (0, util_hex_encoding_1.fromHex)("6161616161616161616161616161616161616161616161616161616161616161616161616161"), - (0, util_hex_encoding_1.fromHex)("365a9c3e2c2af0a56e47a9dac51c2c5381bf8f41273bad3175e0e619126ad087") - ], - [ - (0, util_hex_encoding_1.fromHex)("616161616161616161616161616161616161616161616161616161616161616161616161616161"), - (0, util_hex_encoding_1.fromHex)("b4d5e56e929ba4cda349e9274e3603d0be246b82016bca20f363963c5f2d6845") - ], - [ - (0, util_hex_encoding_1.fromHex)("61616161616161616161616161616161616161616161616161616161616161616161616161616161"), - (0, util_hex_encoding_1.fromHex)("e33cdf9c7f7120b98e8c78408953e07f2ecd183006b5606df349b4c212acf43e") - ], - [ - (0, util_hex_encoding_1.fromHex)("6161616161616161616161616161616161616161616161616161616161616161616161616161616161"), - (0, util_hex_encoding_1.fromHex)("c0f8bd4dbc2b0c03107c1c37913f2a7501f521467f45dd0fef6958e9a4692719") - ], - [ - (0, util_hex_encoding_1.fromHex)("616161616161616161616161616161616161616161616161616161616161616161616161616161616161"), - (0, util_hex_encoding_1.fromHex)("7a538607fdaab9296995929f451565bbb8142e1844117322aafd2b3d76b01aff") - ], - [ - (0, util_hex_encoding_1.fromHex)("61616161616161616161616161616161616161616161616161616161616161616161616161616161616161"), - (0, util_hex_encoding_1.fromHex)("66d34fba71f8f450f7e45598853e53bfc23bbd129027cbb131a2f4ffd7878cd0") - ], - [ - (0, util_hex_encoding_1.fromHex)("6161616161616161616161616161616161616161616161616161616161616161616161616161616161616161"), - (0, util_hex_encoding_1.fromHex)("16849877c6c21ef0bfa68e4f6747300ddb171b170b9f00e189edc4c2fc4db93e") - ], - [ - (0, util_hex_encoding_1.fromHex)("616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161"), - (0, util_hex_encoding_1.fromHex)("52789e3423b72beeb898456a4f49662e46b0cbb960784c5ef4b1399d327e7c27") - ], - [ - (0, util_hex_encoding_1.fromHex)("61616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161"), - (0, util_hex_encoding_1.fromHex)("6643110c5628fff59edf76d82d5bf573bf800f16a4d65dfb1e5d6f1a46296d0b") - ], - [ - (0, util_hex_encoding_1.fromHex)("6161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161"), - (0, util_hex_encoding_1.fromHex)("11eaed932c6c6fddfc2efc394e609facf4abe814fc6180d03b14fce13a07d0e5") - ], - [ - (0, util_hex_encoding_1.fromHex)("616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161"), - (0, util_hex_encoding_1.fromHex)("97daac0ee9998dfcad6c9c0970da5ca411c86233a944c25b47566f6a7bc1ddd5") - ], - [ - (0, util_hex_encoding_1.fromHex)("61616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161"), - (0, util_hex_encoding_1.fromHex)("8f9bec6a62dd28ebd36d1227745592de6658b36974a3bb98a4c582f683ea6c42") - ], - [ - (0, util_hex_encoding_1.fromHex)("6161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161"), - (0, util_hex_encoding_1.fromHex)("160b4e433e384e05e537dc59b467f7cb2403f0214db15c5db58862a3f1156d2e") - ], - [ - (0, util_hex_encoding_1.fromHex)("616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161"), - (0, util_hex_encoding_1.fromHex)("bfc5fe0e360152ca98c50fab4ed7e3078c17debc2917740d5000913b686ca129") - ], - [ - (0, util_hex_encoding_1.fromHex)("61616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161"), - (0, util_hex_encoding_1.fromHex)("6c1b3dc7a706b9dc81352a6716b9c666c608d8626272c64b914ab05572fc6e84") - ], - [ - (0, util_hex_encoding_1.fromHex)("6161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161"), - (0, util_hex_encoding_1.fromHex)("abe346a7259fc90b4c27185419628e5e6af6466b1ae9b5446cac4bfc26cf05c4") - ], - [ - (0, util_hex_encoding_1.fromHex)("616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161"), - (0, util_hex_encoding_1.fromHex)("a3f01b6939256127582ac8ae9fb47a382a244680806a3f613a118851c1ca1d47") - ], - [ - (0, util_hex_encoding_1.fromHex)("61616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161"), - (0, util_hex_encoding_1.fromHex)("9f4390f8d30c2dd92ec9f095b65e2b9ae9b0a925a5258e241c9f1e910f734318") - ], - [ - (0, util_hex_encoding_1.fromHex)("6161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161"), - (0, util_hex_encoding_1.fromHex)("b35439a4ac6f0948b6d6f9e3c6af0f5f590ce20f1bde7090ef7970686ec6738a") - ], - [ - (0, util_hex_encoding_1.fromHex)("616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161"), - (0, util_hex_encoding_1.fromHex)("f13b2d724659eb3bf47f2dd6af1accc87b81f09f59f2b75e5c0bed6589dfe8c6") - ], - [ - (0, util_hex_encoding_1.fromHex)("61616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161"), - (0, util_hex_encoding_1.fromHex)("d5c039b748aa64665782974ec3dc3025c042edf54dcdc2b5de31385b094cb678") - ], - [ - (0, util_hex_encoding_1.fromHex)("6161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161"), - (0, util_hex_encoding_1.fromHex)("111bb261277afd65f0744b247cd3e47d386d71563d0ed995517807d5ebd4fba3") - ], - [ - (0, util_hex_encoding_1.fromHex)("616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161"), - (0, util_hex_encoding_1.fromHex)("11ee391211c6256460b6ed375957fadd8061cafbb31daf967db875aebd5aaad4") - ], - [ - (0, util_hex_encoding_1.fromHex)("61616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161"), - (0, util_hex_encoding_1.fromHex)("35d5fc17cfbbadd00f5e710ada39f194c5ad7c766ad67072245f1fad45f0f530") - ], - [ - (0, util_hex_encoding_1.fromHex)("6161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161"), - (0, util_hex_encoding_1.fromHex)("f506898cc7c2e092f9eb9fadae7ba50383f5b46a2a4fe5597dbb553a78981268") - ], - [ - (0, util_hex_encoding_1.fromHex)("616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161"), - (0, util_hex_encoding_1.fromHex)("7d3e74a05d7db15bce4ad9ec0658ea98e3f06eeecf16b4c6fff2da457ddc2f34") - ], - [ - (0, util_hex_encoding_1.fromHex)("61616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161"), - (0, util_hex_encoding_1.fromHex)("ffe054fe7ae0cb6dc65c3af9b61d5209f439851db43d0ba5997337df154668eb") - ], - [ - (0, util_hex_encoding_1.fromHex)("de188941a3375d3a8a061e67576e926dc71a7fa3f0cceb97452b4d3227965f9ea8cc75076d9fb9c5417aa5cb30fc22198b34982dbb629e"), - (0, util_hex_encoding_1.fromHex)("038051e9c324393bd1ca1978dd0952c2aa3742ca4f1bd5cd4611cea83892d382") - ], - [ - millionChars, - (0, util_hex_encoding_1.fromHex)("cdc76e5c9914fb9281a1c7e284d73e67f1809a48a497200e046d39ccc7112cd0") - ], - [ - (0, util_hex_encoding_1.fromHex)("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"), - (0, util_hex_encoding_1.fromHex)("45ad4b37c6e2fc0a2cfcc1b5da524132ec707615c2cae1dbbc43c97aa521db81") - ] -]; -/** - * @see https://tools.ietf.org/html/rfc4231 - */ -exports.hmacTestVectors = [ - [ - (0, util_hex_encoding_1.fromHex)("0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b"), - (0, util_hex_encoding_1.fromHex)("4869205468657265"), - (0, util_hex_encoding_1.fromHex)("b0344c61d8db38535ca8afceaf0bf12b881dc200c9833da726e9376c2e32cff7") - ], - [ - (0, util_hex_encoding_1.fromHex)("4a656665"), - (0, util_hex_encoding_1.fromHex)("7768617420646f2079612077616e7420666f72206e6f7468696e673f"), - (0, util_hex_encoding_1.fromHex)("5bdcc146bf60754e6a042426089575c75a003f089d2739839dec58b964ec3843") - ], - [ - (0, util_hex_encoding_1.fromHex)("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"), - (0, util_hex_encoding_1.fromHex)("dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd"), - (0, util_hex_encoding_1.fromHex)("773ea91e36800e46854db8ebd09181a72959098b3ef8c122d9635514ced565fe") - ], - [ - (0, util_hex_encoding_1.fromHex)("0102030405060708090a0b0c0d0e0f10111213141516171819"), - (0, util_hex_encoding_1.fromHex)("cdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcd"), - (0, util_hex_encoding_1.fromHex)("82558a389a443c0ea4cc819899f2083a85f0faa3e578f8077a2e3ff46729665b") - ], - [ - (0, util_hex_encoding_1.fromHex)("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"), - (0, util_hex_encoding_1.fromHex)("54657374205573696e67204c6172676572205468616e20426c6f636b2d53697a65204b6579202d2048617368204b6579204669727374"), - (0, util_hex_encoding_1.fromHex)("60e431591ee0b67f0d8a26aacbf5b77f8e0bc6213728c5140546040f0ee37f54") - ], - [ - (0, util_hex_encoding_1.fromHex)("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"), - (0, util_hex_encoding_1.fromHex)("5468697320697320612074657374207573696e672061206c6172676572207468616e20626c6f636b2d73697a65206b657920616e642061206c6172676572207468616e20626c6f636b2d73697a6520646174612e20546865206b6579206e6565647320746f20626520686173686564206265666f7265206265696e6720757365642062792074686520484d414320616c676f726974686d2e"), - (0, util_hex_encoding_1.fromHex)("9b09ffa71b942fcb27635fbcd5b0e944bfdc63644f0713938a7f51535c3a35e2") - ] -]; -//# sourceMappingURL=knownHashes.fixture.js.map \ No newline at end of file diff --git a/node_modules/@aws-crypto/sha256-js/build/knownHashes.fixture.js.map b/node_modules/@aws-crypto/sha256-js/build/knownHashes.fixture.js.map deleted file mode 100644 index 6ea6a7dd..00000000 --- a/node_modules/@aws-crypto/sha256-js/build/knownHashes.fixture.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"knownHashes.fixture.js","sourceRoot":"","sources":["../src/knownHashes.fixture.ts"],"names":[],"mappings":";;;AAAA,gEAAqD;AAErD,IAAM,YAAY,GAAG,IAAI,UAAU,CAAC,OAAO,CAAC,CAAC;AAC7C,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,OAAO,EAAE,CAAC,EAAE,EAAE;IAChC,YAAY,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC;CACtB;AAEY,QAAA,eAAe,GAAoC;IAC9D;QACE,UAAU,CAAC,IAAI,CAAC,CAAC,EAAE,EAAE,EAAE,EAA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QACE,IAAA,2BAAO,EAAC,0CAA0C,CAAC;QACnD,IAAA,2BAAO,EAAC,kBAAkB,CAAC;QAC3B,IAAA,2BAAO,EAAC,kEAAkE,CAAC;KAC5E;IACD;QACE,IAAA,2BAAO,EAAC,UAAU,CAAC;QACnB,IAAA,2BAAO,EAAC,0DAA0D,CAAC;QACnE,IAAA,2BAAO,EAAC,kEAAkE,CAAC;KAC5E;IACD;QACE,IAAA,2BAAO,EAAC,0CAA0C,CAAC;QACnD,IAAA,2BAAO,EACL,sGAAsG,CACvG;QACD,IAAA,2BAAO,EAAC,kEAAkE,CAAC;KAC5E;IACD;QACE,IAAA,2BAAO,EAAC,oDAAoD,CAAC;QAC7D,IAAA,2BAAO,EACL,sGAAsG,CACvG;QACD,IAAA,2BAAO,EAAC,kEAAkE,CAAC;KAC5E;IACD;QACE,IAAA,2BAAO,EACL,wQAAwQ,CACzQ;QACD,IAAA,2BAAO,EACL,8GAA8G,CAC/G;QACD,IAAA,2BAAO,EAAC,kEAAkE,CAAC;KAC5E;IACD;QACE,IAAA,2BAAO,EACL,wQAAwQ,CACzQ;QACD,IAAA,2BAAO,EACL,kTAAkT,CACnT;QACD,IAAA,2BAAO,EAAC,kEAAkE,CAAC;KAC5E;CACF,CAAC"} \ No newline at end of file diff --git a/node_modules/@aws-crypto/sha256-js/node_modules/tslib/CopyrightNotice.txt b/node_modules/@aws-crypto/sha256-js/node_modules/tslib/CopyrightNotice.txt deleted file mode 100644 index 3d4c8234..00000000 --- a/node_modules/@aws-crypto/sha256-js/node_modules/tslib/CopyrightNotice.txt +++ /dev/null @@ -1,15 +0,0 @@ -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */ - diff --git a/node_modules/@aws-crypto/sha256-js/node_modules/tslib/LICENSE.txt b/node_modules/@aws-crypto/sha256-js/node_modules/tslib/LICENSE.txt deleted file mode 100644 index bfe6430c..00000000 --- a/node_modules/@aws-crypto/sha256-js/node_modules/tslib/LICENSE.txt +++ /dev/null @@ -1,12 +0,0 @@ -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. \ No newline at end of file diff --git a/node_modules/@aws-crypto/sha256-js/node_modules/tslib/README.md b/node_modules/@aws-crypto/sha256-js/node_modules/tslib/README.md deleted file mode 100644 index a5b2692c..00000000 --- a/node_modules/@aws-crypto/sha256-js/node_modules/tslib/README.md +++ /dev/null @@ -1,142 +0,0 @@ -# tslib - -This is a runtime library for [TypeScript](http://www.typescriptlang.org/) that contains all of the TypeScript helper functions. - -This library is primarily used by the `--importHelpers` flag in TypeScript. -When using `--importHelpers`, a module that uses helper functions like `__extends` and `__assign` in the following emitted file: - -```ts -var __assign = (this && this.__assign) || Object.assign || function(t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) - t[p] = s[p]; - } - return t; -}; -exports.x = {}; -exports.y = __assign({}, exports.x); - -``` - -will instead be emitted as something like the following: - -```ts -var tslib_1 = require("tslib"); -exports.x = {}; -exports.y = tslib_1.__assign({}, exports.x); -``` - -Because this can avoid duplicate declarations of things like `__extends`, `__assign`, etc., this means delivering users smaller files on average, as well as less runtime overhead. -For optimized bundles with TypeScript, you should absolutely consider using `tslib` and `--importHelpers`. - -# Installing - -For the latest stable version, run: - -## npm - -```sh -# TypeScript 2.3.3 or later -npm install tslib - -# TypeScript 2.3.2 or earlier -npm install tslib@1.6.1 -``` - -## yarn - -```sh -# TypeScript 2.3.3 or later -yarn add tslib - -# TypeScript 2.3.2 or earlier -yarn add tslib@1.6.1 -``` - -## bower - -```sh -# TypeScript 2.3.3 or later -bower install tslib - -# TypeScript 2.3.2 or earlier -bower install tslib@1.6.1 -``` - -## JSPM - -```sh -# TypeScript 2.3.3 or later -jspm install tslib - -# TypeScript 2.3.2 or earlier -jspm install tslib@1.6.1 -``` - -# Usage - -Set the `importHelpers` compiler option on the command line: - -``` -tsc --importHelpers file.ts -``` - -or in your tsconfig.json: - -```json -{ - "compilerOptions": { - "importHelpers": true - } -} -``` - -#### For bower and JSPM users - -You will need to add a `paths` mapping for `tslib`, e.g. For Bower users: - -```json -{ - "compilerOptions": { - "module": "amd", - "importHelpers": true, - "baseUrl": "./", - "paths": { - "tslib" : ["bower_components/tslib/tslib.d.ts"] - } - } -} -``` - -For JSPM users: - -```json -{ - "compilerOptions": { - "module": "system", - "importHelpers": true, - "baseUrl": "./", - "paths": { - "tslib" : ["jspm_packages/npm/tslib@1.[version].0/tslib.d.ts"] - } - } -} -``` - - -# Contribute - -There are many ways to [contribute](https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md) to TypeScript. - -* [Submit bugs](https://github.com/Microsoft/TypeScript/issues) and help us verify fixes as they are checked in. -* Review the [source code changes](https://github.com/Microsoft/TypeScript/pulls). -* Engage with other TypeScript users and developers on [StackOverflow](http://stackoverflow.com/questions/tagged/typescript). -* Join the [#typescript](http://twitter.com/#!/search/realtime/%23typescript) discussion on Twitter. -* [Contribute bug fixes](https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md). - -# Documentation - -* [Quick tutorial](http://www.typescriptlang.org/Tutorial) -* [Programming handbook](http://www.typescriptlang.org/Handbook) -* [Homepage](http://www.typescriptlang.org/) diff --git a/node_modules/@aws-crypto/sha256-js/node_modules/tslib/modules/index.js b/node_modules/@aws-crypto/sha256-js/node_modules/tslib/modules/index.js deleted file mode 100644 index d241d042..00000000 --- a/node_modules/@aws-crypto/sha256-js/node_modules/tslib/modules/index.js +++ /dev/null @@ -1,51 +0,0 @@ -import tslib from '../tslib.js'; -const { - __extends, - __assign, - __rest, - __decorate, - __param, - __metadata, - __awaiter, - __generator, - __exportStar, - __createBinding, - __values, - __read, - __spread, - __spreadArrays, - __await, - __asyncGenerator, - __asyncDelegator, - __asyncValues, - __makeTemplateObject, - __importStar, - __importDefault, - __classPrivateFieldGet, - __classPrivateFieldSet, -} = tslib; -export { - __extends, - __assign, - __rest, - __decorate, - __param, - __metadata, - __awaiter, - __generator, - __exportStar, - __createBinding, - __values, - __read, - __spread, - __spreadArrays, - __await, - __asyncGenerator, - __asyncDelegator, - __asyncValues, - __makeTemplateObject, - __importStar, - __importDefault, - __classPrivateFieldGet, - __classPrivateFieldSet, -}; diff --git a/node_modules/@aws-crypto/sha256-js/node_modules/tslib/modules/package.json b/node_modules/@aws-crypto/sha256-js/node_modules/tslib/modules/package.json deleted file mode 100644 index aafa0e4b..00000000 --- a/node_modules/@aws-crypto/sha256-js/node_modules/tslib/modules/package.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "type": "module" -} \ No newline at end of file diff --git a/node_modules/@aws-crypto/sha256-js/node_modules/tslib/package.json b/node_modules/@aws-crypto/sha256-js/node_modules/tslib/package.json deleted file mode 100644 index f8c2a53d..00000000 --- a/node_modules/@aws-crypto/sha256-js/node_modules/tslib/package.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "name": "tslib", - "author": "Microsoft Corp.", - "homepage": "https://www.typescriptlang.org/", - "version": "1.14.1", - "license": "0BSD", - "description": "Runtime library for TypeScript helper functions", - "keywords": [ - "TypeScript", - "Microsoft", - "compiler", - "language", - "javascript", - "tslib", - "runtime" - ], - "bugs": { - "url": "https://github.com/Microsoft/TypeScript/issues" - }, - "repository": { - "type": "git", - "url": "https://github.com/Microsoft/tslib.git" - }, - "main": "tslib.js", - "module": "tslib.es6.js", - "jsnext:main": "tslib.es6.js", - "typings": "tslib.d.ts", - "sideEffects": false, - "exports": { - ".": { - "module": "./tslib.es6.js", - "import": "./modules/index.js", - "default": "./tslib.js" - }, - "./": "./" - } -} diff --git a/node_modules/@aws-crypto/sha256-js/node_modules/tslib/test/validateModuleExportsMatchCommonJS/index.js b/node_modules/@aws-crypto/sha256-js/node_modules/tslib/test/validateModuleExportsMatchCommonJS/index.js deleted file mode 100644 index 0c1b613d..00000000 --- a/node_modules/@aws-crypto/sha256-js/node_modules/tslib/test/validateModuleExportsMatchCommonJS/index.js +++ /dev/null @@ -1,23 +0,0 @@ -// When on node 14, it validates that all of the commonjs exports -// are correctly re-exported for es modules importers. - -const nodeMajor = Number(process.version.split(".")[0].slice(1)) -if (nodeMajor < 14) { - console.log("Skipping because node does not support module exports.") - process.exit(0) -} - -// ES Modules import via the ./modules folder -import * as esTSLib from "../../modules/index.js" - -// Force a commonjs resolve -import { createRequire } from "module"; -const commonJSTSLib = createRequire(import.meta.url)("../../tslib.js"); - -for (const key in commonJSTSLib) { - if (commonJSTSLib.hasOwnProperty(key)) { - if(!esTSLib[key]) throw new Error(`ESModules is missing ${key} - it needs to be re-exported in ./modules/index.js`) - } -} - -console.log("All exports in commonjs are available for es module consumers.") diff --git a/node_modules/@aws-crypto/sha256-js/node_modules/tslib/test/validateModuleExportsMatchCommonJS/package.json b/node_modules/@aws-crypto/sha256-js/node_modules/tslib/test/validateModuleExportsMatchCommonJS/package.json deleted file mode 100644 index 166e5095..00000000 --- a/node_modules/@aws-crypto/sha256-js/node_modules/tslib/test/validateModuleExportsMatchCommonJS/package.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "type": "module", - "scripts": { - "test": "node index.js" - } -} diff --git a/node_modules/@aws-crypto/sha256-js/node_modules/tslib/tslib.d.ts b/node_modules/@aws-crypto/sha256-js/node_modules/tslib/tslib.d.ts deleted file mode 100644 index 0756b28e..00000000 --- a/node_modules/@aws-crypto/sha256-js/node_modules/tslib/tslib.d.ts +++ /dev/null @@ -1,37 +0,0 @@ -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */ -export declare function __extends(d: Function, b: Function): void; -export declare function __assign(t: any, ...sources: any[]): any; -export declare function __rest(t: any, propertyNames: (string | symbol)[]): any; -export declare function __decorate(decorators: Function[], target: any, key?: string | symbol, desc?: any): any; -export declare function __param(paramIndex: number, decorator: Function): Function; -export declare function __metadata(metadataKey: any, metadataValue: any): Function; -export declare function __awaiter(thisArg: any, _arguments: any, P: Function, generator: Function): any; -export declare function __generator(thisArg: any, body: Function): any; -export declare function __exportStar(m: any, exports: any): void; -export declare function __values(o: any): any; -export declare function __read(o: any, n?: number): any[]; -export declare function __spread(...args: any[][]): any[]; -export declare function __spreadArrays(...args: any[][]): any[]; -export declare function __await(v: any): any; -export declare function __asyncGenerator(thisArg: any, _arguments: any, generator: Function): any; -export declare function __asyncDelegator(o: any): any; -export declare function __asyncValues(o: any): any; -export declare function __makeTemplateObject(cooked: string[], raw: string[]): TemplateStringsArray; -export declare function __importStar(mod: T): T; -export declare function __importDefault(mod: T): T | { default: T }; -export declare function __classPrivateFieldGet(receiver: T, privateMap: { has(o: T): boolean, get(o: T): V | undefined }): V; -export declare function __classPrivateFieldSet(receiver: T, privateMap: { has(o: T): boolean, set(o: T, value: V): any }, value: V): V; -export declare function __createBinding(object: object, target: object, key: PropertyKey, objectKey?: PropertyKey): void; \ No newline at end of file diff --git a/node_modules/@aws-crypto/sha256-js/node_modules/tslib/tslib.es6.html b/node_modules/@aws-crypto/sha256-js/node_modules/tslib/tslib.es6.html deleted file mode 100644 index b122e41b..00000000 --- a/node_modules/@aws-crypto/sha256-js/node_modules/tslib/tslib.es6.html +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/node_modules/@aws-crypto/sha256-js/node_modules/tslib/tslib.es6.js b/node_modules/@aws-crypto/sha256-js/node_modules/tslib/tslib.es6.js deleted file mode 100644 index 0e0d8d07..00000000 --- a/node_modules/@aws-crypto/sha256-js/node_modules/tslib/tslib.es6.js +++ /dev/null @@ -1,218 +0,0 @@ -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */ -/* global Reflect, Promise */ - -var extendStatics = function(d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; - return extendStatics(d, b); -}; - -export function __extends(d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); -} - -export var __assign = function() { - __assign = Object.assign || function __assign(t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; - } - return t; - } - return __assign.apply(this, arguments); -} - -export function __rest(s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -} - -export function __decorate(decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; -} - -export function __param(paramIndex, decorator) { - return function (target, key) { decorator(target, key, paramIndex); } -} - -export function __metadata(metadataKey, metadataValue) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue); -} - -export function __awaiter(thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -} - -export function __generator(thisArg, body) { - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; - return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; - function verb(n) { return function (v) { return step([n, v]); }; } - function step(op) { - if (f) throw new TypeError("Generator is already executing."); - while (_) try { - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [op[0] & 2, t.value]; - switch (op[0]) { - case 0: case 1: t = op; break; - case 4: _.label++; return { value: op[1], done: false }; - case 5: _.label++; y = op[1]; op = [0]; continue; - case 7: op = _.ops.pop(); _.trys.pop(); continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } - if (t[2]) _.ops.pop(); - _.trys.pop(); continue; - } - op = body.call(thisArg, _); - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; - } -} - -export function __createBinding(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -} - -export function __exportStar(m, exports) { - for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) exports[p] = m[p]; -} - -export function __values(o) { - var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; - if (m) return m.call(o); - if (o && typeof o.length === "number") return { - next: function () { - if (o && i >= o.length) o = void 0; - return { value: o && o[i++], done: !o }; - } - }; - throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); -} - -export function __read(o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -} - -export function __spread() { - for (var ar = [], i = 0; i < arguments.length; i++) - ar = ar.concat(__read(arguments[i])); - return ar; -} - -export function __spreadArrays() { - for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; - for (var r = Array(s), k = 0, i = 0; i < il; i++) - for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) - r[k] = a[j]; - return r; -}; - -export function __await(v) { - return this instanceof __await ? (this.v = v, this) : new __await(v); -} - -export function __asyncGenerator(thisArg, _arguments, generator) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } - function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } - function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } - function fulfill(value) { resume("next", value); } - function reject(value) { resume("throw", value); } - function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -} - -export function __asyncDelegator(o) { - var i, p; - return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; - function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; } -} - -export function __asyncValues(o) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var m = o[Symbol.asyncIterator], i; - return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); - function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } - function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } -} - -export function __makeTemplateObject(cooked, raw) { - if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } - return cooked; -}; - -export function __importStar(mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; - result.default = mod; - return result; -} - -export function __importDefault(mod) { - return (mod && mod.__esModule) ? mod : { default: mod }; -} - -export function __classPrivateFieldGet(receiver, privateMap) { - if (!privateMap.has(receiver)) { - throw new TypeError("attempted to get private field on non-instance"); - } - return privateMap.get(receiver); -} - -export function __classPrivateFieldSet(receiver, privateMap, value) { - if (!privateMap.has(receiver)) { - throw new TypeError("attempted to set private field on non-instance"); - } - privateMap.set(receiver, value); - return value; -} diff --git a/node_modules/@aws-crypto/sha256-js/node_modules/tslib/tslib.html b/node_modules/@aws-crypto/sha256-js/node_modules/tslib/tslib.html deleted file mode 100644 index 44c9ba51..00000000 --- a/node_modules/@aws-crypto/sha256-js/node_modules/tslib/tslib.html +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/node_modules/@aws-crypto/sha256-js/node_modules/tslib/tslib.js b/node_modules/@aws-crypto/sha256-js/node_modules/tslib/tslib.js deleted file mode 100644 index e5b7c9b8..00000000 --- a/node_modules/@aws-crypto/sha256-js/node_modules/tslib/tslib.js +++ /dev/null @@ -1,284 +0,0 @@ -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */ - -/* global global, define, System, Reflect, Promise */ -var __extends; -var __assign; -var __rest; -var __decorate; -var __param; -var __metadata; -var __awaiter; -var __generator; -var __exportStar; -var __values; -var __read; -var __spread; -var __spreadArrays; -var __await; -var __asyncGenerator; -var __asyncDelegator; -var __asyncValues; -var __makeTemplateObject; -var __importStar; -var __importDefault; -var __classPrivateFieldGet; -var __classPrivateFieldSet; -var __createBinding; -(function (factory) { - var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {}; - if (typeof define === "function" && define.amd) { - define("tslib", ["exports"], function (exports) { factory(createExporter(root, createExporter(exports))); }); - } - else if (typeof module === "object" && typeof module.exports === "object") { - factory(createExporter(root, createExporter(module.exports))); - } - else { - factory(createExporter(root)); - } - function createExporter(exports, previous) { - if (exports !== root) { - if (typeof Object.create === "function") { - Object.defineProperty(exports, "__esModule", { value: true }); - } - else { - exports.__esModule = true; - } - } - return function (id, v) { return exports[id] = previous ? previous(id, v) : v; }; - } -}) -(function (exporter) { - var extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; - - __extends = function (d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; - - __assign = Object.assign || function (t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; - } - return t; - }; - - __rest = function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; - }; - - __decorate = function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; - }; - - __param = function (paramIndex, decorator) { - return function (target, key) { decorator(target, key, paramIndex); } - }; - - __metadata = function (metadataKey, metadataValue) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue); - }; - - __awaiter = function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); - }; - - __generator = function (thisArg, body) { - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; - return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; - function verb(n) { return function (v) { return step([n, v]); }; } - function step(op) { - if (f) throw new TypeError("Generator is already executing."); - while (_) try { - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [op[0] & 2, t.value]; - switch (op[0]) { - case 0: case 1: t = op; break; - case 4: _.label++; return { value: op[1], done: false }; - case 5: _.label++; y = op[1]; op = [0]; continue; - case 7: op = _.ops.pop(); _.trys.pop(); continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } - if (t[2]) _.ops.pop(); - _.trys.pop(); continue; - } - op = body.call(thisArg, _); - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; - } - }; - - __createBinding = function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; - }; - - __exportStar = function (m, exports) { - for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) exports[p] = m[p]; - }; - - __values = function (o) { - var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; - if (m) return m.call(o); - if (o && typeof o.length === "number") return { - next: function () { - if (o && i >= o.length) o = void 0; - return { value: o && o[i++], done: !o }; - } - }; - throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); - }; - - __read = function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; - }; - - __spread = function () { - for (var ar = [], i = 0; i < arguments.length; i++) - ar = ar.concat(__read(arguments[i])); - return ar; - }; - - __spreadArrays = function () { - for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; - for (var r = Array(s), k = 0, i = 0; i < il; i++) - for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) - r[k] = a[j]; - return r; - }; - - __await = function (v) { - return this instanceof __await ? (this.v = v, this) : new __await(v); - }; - - __asyncGenerator = function (thisArg, _arguments, generator) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } - function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } - function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } - function fulfill(value) { resume("next", value); } - function reject(value) { resume("throw", value); } - function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } - }; - - __asyncDelegator = function (o) { - var i, p; - return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; - function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; } - }; - - __asyncValues = function (o) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var m = o[Symbol.asyncIterator], i; - return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); - function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } - function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } - }; - - __makeTemplateObject = function (cooked, raw) { - if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } - return cooked; - }; - - __importStar = function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; - result["default"] = mod; - return result; - }; - - __importDefault = function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; - }; - - __classPrivateFieldGet = function (receiver, privateMap) { - if (!privateMap.has(receiver)) { - throw new TypeError("attempted to get private field on non-instance"); - } - return privateMap.get(receiver); - }; - - __classPrivateFieldSet = function (receiver, privateMap, value) { - if (!privateMap.has(receiver)) { - throw new TypeError("attempted to set private field on non-instance"); - } - privateMap.set(receiver, value); - return value; - }; - - exporter("__extends", __extends); - exporter("__assign", __assign); - exporter("__rest", __rest); - exporter("__decorate", __decorate); - exporter("__param", __param); - exporter("__metadata", __metadata); - exporter("__awaiter", __awaiter); - exporter("__generator", __generator); - exporter("__exportStar", __exportStar); - exporter("__createBinding", __createBinding); - exporter("__values", __values); - exporter("__read", __read); - exporter("__spread", __spread); - exporter("__spreadArrays", __spreadArrays); - exporter("__await", __await); - exporter("__asyncGenerator", __asyncGenerator); - exporter("__asyncDelegator", __asyncDelegator); - exporter("__asyncValues", __asyncValues); - exporter("__makeTemplateObject", __makeTemplateObject); - exporter("__importStar", __importStar); - exporter("__importDefault", __importDefault); - exporter("__classPrivateFieldGet", __classPrivateFieldGet); - exporter("__classPrivateFieldSet", __classPrivateFieldSet); -}); diff --git a/node_modules/@aws-crypto/sha256-js/package.json b/node_modules/@aws-crypto/sha256-js/package.json deleted file mode 100644 index 4e2621c3..00000000 --- a/node_modules/@aws-crypto/sha256-js/package.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "name": "@aws-crypto/sha256-js", - "version": "3.0.0", - "scripts": { - "prepublishOnly": "tsc", - "pretest": "tsc -p tsconfig.test.json", - "test": "mocha --require ts-node/register test/**/*test.ts" - }, - "main": "./build/index.js", - "types": "./build/index.d.ts", - "repository": { - "type": "git", - "url": "git@github.com:aws/aws-sdk-js-crypto-helpers.git" - }, - "author": { - "name": "AWS Crypto Tools Team", - "email": "aws-cryptools@amazon.com", - "url": "https://docs.aws.amazon.com/aws-crypto-tools/index.html?id=docs_gateway#lang/en_us" - }, - "homepage": "https://github.com/aws/aws-sdk-js-crypto-helpers/tree/master/packages/sha256-js", - "license": "Apache-2.0", - "dependencies": { - "@aws-crypto/util": "^3.0.0", - "@aws-sdk/types": "^3.222.0", - "tslib": "^1.11.1" - }, - "gitHead": "7f56cee8f62bd65cd397eeec29c3c997215bd80c" -} diff --git a/node_modules/@aws-crypto/sha256-js/src/RawSha256.ts b/node_modules/@aws-crypto/sha256-js/src/RawSha256.ts deleted file mode 100644 index f4a385c0..00000000 --- a/node_modules/@aws-crypto/sha256-js/src/RawSha256.ts +++ /dev/null @@ -1,164 +0,0 @@ -import { - BLOCK_SIZE, - DIGEST_LENGTH, - INIT, - KEY, - MAX_HASHABLE_LENGTH -} from "./constants"; - -/** - * @internal - */ -export class RawSha256 { - private state: Int32Array = Int32Array.from(INIT); - private temp: Int32Array = new Int32Array(64); - private buffer: Uint8Array = new Uint8Array(64); - private bufferLength: number = 0; - private bytesHashed: number = 0; - - /** - * @internal - */ - finished: boolean = false; - - update(data: Uint8Array): void { - if (this.finished) { - throw new Error("Attempted to update an already finished hash."); - } - - let position = 0; - let { byteLength } = data; - this.bytesHashed += byteLength; - - if (this.bytesHashed * 8 > MAX_HASHABLE_LENGTH) { - throw new Error("Cannot hash more than 2^53 - 1 bits"); - } - - while (byteLength > 0) { - this.buffer[this.bufferLength++] = data[position++]; - byteLength--; - - if (this.bufferLength === BLOCK_SIZE) { - this.hashBuffer(); - this.bufferLength = 0; - } - } - } - - digest(): Uint8Array { - if (!this.finished) { - const bitsHashed = this.bytesHashed * 8; - const bufferView = new DataView( - this.buffer.buffer, - this.buffer.byteOffset, - this.buffer.byteLength - ); - - const undecoratedLength = this.bufferLength; - bufferView.setUint8(this.bufferLength++, 0x80); - - // Ensure the final block has enough room for the hashed length - if (undecoratedLength % BLOCK_SIZE >= BLOCK_SIZE - 8) { - for (let i = this.bufferLength; i < BLOCK_SIZE; i++) { - bufferView.setUint8(i, 0); - } - this.hashBuffer(); - this.bufferLength = 0; - } - - for (let i = this.bufferLength; i < BLOCK_SIZE - 8; i++) { - bufferView.setUint8(i, 0); - } - bufferView.setUint32( - BLOCK_SIZE - 8, - Math.floor(bitsHashed / 0x100000000), - true - ); - bufferView.setUint32(BLOCK_SIZE - 4, bitsHashed); - - this.hashBuffer(); - - this.finished = true; - } - - // The value in state is little-endian rather than big-endian, so flip - // each word into a new Uint8Array - const out = new Uint8Array(DIGEST_LENGTH); - for (let i = 0; i < 8; i++) { - out[i * 4] = (this.state[i] >>> 24) & 0xff; - out[i * 4 + 1] = (this.state[i] >>> 16) & 0xff; - out[i * 4 + 2] = (this.state[i] >>> 8) & 0xff; - out[i * 4 + 3] = (this.state[i] >>> 0) & 0xff; - } - - return out; - } - - private hashBuffer(): void { - const { buffer, state } = this; - - let state0 = state[0], - state1 = state[1], - state2 = state[2], - state3 = state[3], - state4 = state[4], - state5 = state[5], - state6 = state[6], - state7 = state[7]; - - for (let i = 0; i < BLOCK_SIZE; i++) { - if (i < 16) { - this.temp[i] = - ((buffer[i * 4] & 0xff) << 24) | - ((buffer[i * 4 + 1] & 0xff) << 16) | - ((buffer[i * 4 + 2] & 0xff) << 8) | - (buffer[i * 4 + 3] & 0xff); - } else { - let u = this.temp[i - 2]; - const t1 = - ((u >>> 17) | (u << 15)) ^ ((u >>> 19) | (u << 13)) ^ (u >>> 10); - - u = this.temp[i - 15]; - const t2 = - ((u >>> 7) | (u << 25)) ^ ((u >>> 18) | (u << 14)) ^ (u >>> 3); - - this.temp[i] = - ((t1 + this.temp[i - 7]) | 0) + ((t2 + this.temp[i - 16]) | 0); - } - - const t1 = - ((((((state4 >>> 6) | (state4 << 26)) ^ - ((state4 >>> 11) | (state4 << 21)) ^ - ((state4 >>> 25) | (state4 << 7))) + - ((state4 & state5) ^ (~state4 & state6))) | - 0) + - ((state7 + ((KEY[i] + this.temp[i]) | 0)) | 0)) | - 0; - - const t2 = - ((((state0 >>> 2) | (state0 << 30)) ^ - ((state0 >>> 13) | (state0 << 19)) ^ - ((state0 >>> 22) | (state0 << 10))) + - ((state0 & state1) ^ (state0 & state2) ^ (state1 & state2))) | - 0; - - state7 = state6; - state6 = state5; - state5 = state4; - state4 = (state3 + t1) | 0; - state3 = state2; - state2 = state1; - state1 = state0; - state0 = (t1 + t2) | 0; - } - - state[0] += state0; - state[1] += state1; - state[2] += state2; - state[3] += state3; - state[4] += state4; - state[5] += state5; - state[6] += state6; - state[7] += state7; - } -} diff --git a/node_modules/@aws-crypto/sha256-js/src/constants.ts b/node_modules/@aws-crypto/sha256-js/src/constants.ts deleted file mode 100644 index 8cede572..00000000 --- a/node_modules/@aws-crypto/sha256-js/src/constants.ts +++ /dev/null @@ -1,98 +0,0 @@ -/** - * @internal - */ -export const BLOCK_SIZE: number = 64; - -/** - * @internal - */ -export const DIGEST_LENGTH: number = 32; - -/** - * @internal - */ -export const KEY = new Uint32Array([ - 0x428a2f98, - 0x71374491, - 0xb5c0fbcf, - 0xe9b5dba5, - 0x3956c25b, - 0x59f111f1, - 0x923f82a4, - 0xab1c5ed5, - 0xd807aa98, - 0x12835b01, - 0x243185be, - 0x550c7dc3, - 0x72be5d74, - 0x80deb1fe, - 0x9bdc06a7, - 0xc19bf174, - 0xe49b69c1, - 0xefbe4786, - 0x0fc19dc6, - 0x240ca1cc, - 0x2de92c6f, - 0x4a7484aa, - 0x5cb0a9dc, - 0x76f988da, - 0x983e5152, - 0xa831c66d, - 0xb00327c8, - 0xbf597fc7, - 0xc6e00bf3, - 0xd5a79147, - 0x06ca6351, - 0x14292967, - 0x27b70a85, - 0x2e1b2138, - 0x4d2c6dfc, - 0x53380d13, - 0x650a7354, - 0x766a0abb, - 0x81c2c92e, - 0x92722c85, - 0xa2bfe8a1, - 0xa81a664b, - 0xc24b8b70, - 0xc76c51a3, - 0xd192e819, - 0xd6990624, - 0xf40e3585, - 0x106aa070, - 0x19a4c116, - 0x1e376c08, - 0x2748774c, - 0x34b0bcb5, - 0x391c0cb3, - 0x4ed8aa4a, - 0x5b9cca4f, - 0x682e6ff3, - 0x748f82ee, - 0x78a5636f, - 0x84c87814, - 0x8cc70208, - 0x90befffa, - 0xa4506ceb, - 0xbef9a3f7, - 0xc67178f2 -]); - -/** - * @internal - */ -export const INIT = [ - 0x6a09e667, - 0xbb67ae85, - 0x3c6ef372, - 0xa54ff53a, - 0x510e527f, - 0x9b05688c, - 0x1f83d9ab, - 0x5be0cd19 -]; - -/** - * @internal - */ -export const MAX_HASHABLE_LENGTH = 2 ** 53 - 1; diff --git a/node_modules/@aws-crypto/sha256-js/src/index.ts b/node_modules/@aws-crypto/sha256-js/src/index.ts deleted file mode 100644 index 4554d8a3..00000000 --- a/node_modules/@aws-crypto/sha256-js/src/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./jsSha256"; diff --git a/node_modules/@aws-crypto/sha256-js/src/jsSha256.ts b/node_modules/@aws-crypto/sha256-js/src/jsSha256.ts deleted file mode 100644 index f7bd9934..00000000 --- a/node_modules/@aws-crypto/sha256-js/src/jsSha256.ts +++ /dev/null @@ -1,94 +0,0 @@ -import { BLOCK_SIZE } from "./constants"; -import { RawSha256 } from "./RawSha256"; -import { Checksum, SourceData } from "@aws-sdk/types"; -import { isEmptyData, convertToBuffer } from "@aws-crypto/util"; - -export class Sha256 implements Checksum { - private readonly secret?: SourceData; - private hash: RawSha256; - private outer?: RawSha256; - private error: any; - - constructor(secret?: SourceData) { - this.secret = secret; - this.hash = new RawSha256(); - this.reset(); - } - - update(toHash: SourceData): void { - if (isEmptyData(toHash) || this.error) { - return; - } - - try { - this.hash.update(convertToBuffer(toHash)); - } catch (e) { - this.error = e; - } - } - - /* This synchronous method keeps compatibility - * with the v2 aws-sdk. - */ - digestSync(): Uint8Array { - if (this.error) { - throw this.error; - } - - if (this.outer) { - if (!this.outer.finished) { - this.outer.update(this.hash.digest()); - } - - return this.outer.digest(); - } - - return this.hash.digest(); - } - - /* The underlying digest method here is synchronous. - * To keep the same interface with the other hash functions - * the default is to expose this as an async method. - * However, it can sometimes be useful to have a sync method. - */ - async digest(): Promise { - return this.digestSync(); - } - - reset(): void { - this.hash = new RawSha256(); - if (this.secret) { - this.outer = new RawSha256(); - const inner = bufferFromSecret(this.secret); - const outer = new Uint8Array(BLOCK_SIZE); - outer.set(inner); - - for (let i = 0; i < BLOCK_SIZE; i++) { - inner[i] ^= 0x36; - outer[i] ^= 0x5c; - } - - this.hash.update(inner); - this.outer.update(outer); - - // overwrite the copied key in memory - for (let i = 0; i < inner.byteLength; i++) { - inner[i] = 0; - } - } - } -} - -function bufferFromSecret(secret: SourceData): Uint8Array { - let input = convertToBuffer(secret); - - if (input.byteLength > BLOCK_SIZE) { - const bufferHash = new RawSha256(); - bufferHash.update(input); - input = bufferHash.digest(); - } - - const buffer = new Uint8Array(BLOCK_SIZE); - buffer.set(input); - return buffer; -} diff --git a/node_modules/@aws-crypto/sha256-js/src/knownHashes.fixture.ts b/node_modules/@aws-crypto/sha256-js/src/knownHashes.fixture.ts deleted file mode 100644 index c83dae28..00000000 --- a/node_modules/@aws-crypto/sha256-js/src/knownHashes.fixture.ts +++ /dev/null @@ -1,401 +0,0 @@ -import { fromHex } from "@aws-sdk/util-hex-encoding"; - -const millionChars = new Uint8Array(1000000); -for (let i = 0; i < 1000000; i++) { - millionChars[i] = 97; -} - -export const hashTestVectors: Array<[Uint8Array, Uint8Array]> = [ - [ - Uint8Array.from([97, 98, 99]), - fromHex("ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad") - ], - [ - new Uint8Array(0), - fromHex("e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855") - ], - [ - fromHex("61"), - fromHex("ca978112ca1bbdcafac231b39a23dc4da786eff8147c4e72b9807785afee48bb") - ], - [ - fromHex("6161"), - fromHex("961b6dd3ede3cb8ecbaacbd68de040cd78eb2ed5889130cceb4c49268ea4d506") - ], - [ - fromHex("616161"), - fromHex("9834876dcfb05cb167a5c24953eba58c4ac89b1adf57f28f2f9d09af107ee8f0") - ], - [ - fromHex("61616161"), - fromHex("61be55a8e2f6b4e172338bddf184d6dbee29c98853e0a0485ecee7f27b9af0b4") - ], - [ - fromHex("6161616161"), - fromHex("ed968e840d10d2d313a870bc131a4e2c311d7ad09bdf32b3418147221f51a6e2") - ], - [ - fromHex("616161616161"), - fromHex("ed02457b5c41d964dbd2f2a609d63fe1bb7528dbe55e1abf5b52c249cd735797") - ], - [ - fromHex("61616161616161"), - fromHex("e46240714b5db3a23eee60479a623efba4d633d27fe4f03c904b9e219a7fbe60") - ], - [ - fromHex("6161616161616161"), - fromHex("1f3ce40415a2081fa3eee75fc39fff8e56c22270d1a978a7249b592dcebd20b4") - ], - [ - fromHex("616161616161616161"), - fromHex("f2aca93b80cae681221f0445fa4e2cae8a1f9f8fa1e1741d9639caad222f537d") - ], - [ - fromHex("61616161616161616161"), - fromHex("bf2cb58a68f684d95a3b78ef8f661c9a4e5b09e82cc8f9cc88cce90528caeb27") - ], - [ - fromHex("6161616161616161616161"), - fromHex("28cb017dfc99073aa1b47c1b30f413e3ce774c4991eb4158de50f9dbb36d8043") - ], - [ - fromHex("616161616161616161616161"), - fromHex("f24abc34b13fade76e805799f71187da6cd90b9cac373ae65ed57f143bd664e5") - ], - [ - fromHex("61616161616161616161616161"), - fromHex("a689d786e81340e45511dec6c7ab2d978434e5db123362450fe10cfac70d19d0") - ], - [ - fromHex("6161616161616161616161616161"), - fromHex("82cab7df0abfb9d95dca4e5937ce2968c798c726fea48c016bf9763221efda13") - ], - [ - fromHex("616161616161616161616161616161"), - fromHex("ef2df0b539c6c23de0f4cbe42648c301ae0e22e887340a4599fb4ef4e2678e48") - ], - [ - fromHex("61616161616161616161616161616161"), - fromHex("0c0beacef8877bbf2416eb00f2b5dc96354e26dd1df5517320459b1236860f8c") - ], - [ - fromHex("6161616161616161616161616161616161"), - fromHex("b860666ee2966dd8f903be44ee605c6e1366f926d9f17a8f49937d11624eb99d") - ], - [ - fromHex("616161616161616161616161616161616161"), - fromHex("c926defaaa3d13eda2fc63a553bb7fb7326bece6e7cb67ca5296e4727d89bab4") - ], - [ - fromHex("61616161616161616161616161616161616161"), - fromHex("a0b4aaab8a966e2193ba172d68162c4656860197f256b5f45f0203397ff3f99c") - ], - [ - fromHex("6161616161616161616161616161616161616161"), - fromHex("42492da06234ad0ac76f5d5debdb6d1ae027cffbe746a1c13b89bb8bc0139137") - ], - [ - fromHex("616161616161616161616161616161616161616161"), - fromHex("7df8e299c834de198e264c3e374bc58ecd9382252a705c183beb02f275571e3b") - ], - [ - fromHex("61616161616161616161616161616161616161616161"), - fromHex("ec7c494df6d2a7ea36668d656e6b8979e33641bfea378c15038af3964db057a3") - ], - [ - fromHex("6161616161616161616161616161616161616161616161"), - fromHex("897d3e95b65f26676081f8b9f3a98b6ee4424566303e8d4e7c7522ebae219eab") - ], - [ - fromHex("616161616161616161616161616161616161616161616161"), - fromHex("09f61f8d9cd65e6a0c258087c485b6293541364e42bd97b2d7936580c8aa3c54") - ], - [ - fromHex("61616161616161616161616161616161616161616161616161"), - fromHex("2f521e2a7d0bd812cbc035f4ed6806eb8d851793b04ba147e8f66b72f5d1f20f") - ], - [ - fromHex("6161616161616161616161616161616161616161616161616161"), - fromHex("9976d549a25115dab4e36d0c1fb8f31cb07da87dd83275977360eb7dc09e88de") - ], - [ - fromHex("616161616161616161616161616161616161616161616161616161"), - fromHex("cc0616e61cbd6e8e5e34e9fb2d320f37de915820206f5696c31f1fbd24aa16de") - ], - [ - fromHex("61616161616161616161616161616161616161616161616161616161"), - fromHex("9c547cb8115a44883b9f70ba68f75117cd55359c92611875e386f8af98c172ab") - ], - [ - fromHex("6161616161616161616161616161616161616161616161616161616161"), - fromHex("6913c9c7fd42fe23df8b6bcd4dbaf1c17748948d97f2980b432319c39eddcf6c") - ], - [ - fromHex("616161616161616161616161616161616161616161616161616161616161"), - fromHex("3a54fc0cbc0b0ef48b6507b7788096235d10292dd3ae24e22f5aa062d4f9864a") - ], - [ - fromHex("61616161616161616161616161616161616161616161616161616161616161"), - fromHex("61c60b487d1a921e0bcc9bf853dda0fb159b30bf57b2e2d2c753b00be15b5a09") - ], - [ - fromHex("6161616161616161616161616161616161616161616161616161616161616161"), - fromHex("3ba3f5f43b92602683c19aee62a20342b084dd5971ddd33808d81a328879a547") - ], - [ - fromHex( - "616161616161616161616161616161616161616161616161616161616161616161" - ), - fromHex("852785c805c77e71a22340a54e9d95933ed49121e7d2bf3c2d358854bc1359ea") - ], - [ - fromHex( - "61616161616161616161616161616161616161616161616161616161616161616161" - ), - fromHex("a27c896c4859204843166af66f0e902b9c3b3ed6d2fd13d435abc020065c526f") - ], - [ - fromHex( - "6161616161616161616161616161616161616161616161616161616161616161616161" - ), - fromHex("629362afc62c74497caed2272e30f8125ecd0965f8d8d7cfc4e260f7f8dd319d") - ], - [ - fromHex( - "616161616161616161616161616161616161616161616161616161616161616161616161" - ), - fromHex("22c1d24bcd03e9aee9832efccd6da613fc702793178e5f12c945c7b67ddda933") - ], - [ - fromHex( - "61616161616161616161616161616161616161616161616161616161616161616161616161" - ), - fromHex("21ec055b38ce759cd4d0f477e9bdec2c5b8199945db4439bae334a964df6246c") - ], - [ - fromHex( - "6161616161616161616161616161616161616161616161616161616161616161616161616161" - ), - fromHex("365a9c3e2c2af0a56e47a9dac51c2c5381bf8f41273bad3175e0e619126ad087") - ], - [ - fromHex( - "616161616161616161616161616161616161616161616161616161616161616161616161616161" - ), - fromHex("b4d5e56e929ba4cda349e9274e3603d0be246b82016bca20f363963c5f2d6845") - ], - [ - fromHex( - "61616161616161616161616161616161616161616161616161616161616161616161616161616161" - ), - fromHex("e33cdf9c7f7120b98e8c78408953e07f2ecd183006b5606df349b4c212acf43e") - ], - [ - fromHex( - "6161616161616161616161616161616161616161616161616161616161616161616161616161616161" - ), - fromHex("c0f8bd4dbc2b0c03107c1c37913f2a7501f521467f45dd0fef6958e9a4692719") - ], - [ - fromHex( - "616161616161616161616161616161616161616161616161616161616161616161616161616161616161" - ), - fromHex("7a538607fdaab9296995929f451565bbb8142e1844117322aafd2b3d76b01aff") - ], - [ - fromHex( - "61616161616161616161616161616161616161616161616161616161616161616161616161616161616161" - ), - fromHex("66d34fba71f8f450f7e45598853e53bfc23bbd129027cbb131a2f4ffd7878cd0") - ], - [ - fromHex( - "6161616161616161616161616161616161616161616161616161616161616161616161616161616161616161" - ), - fromHex("16849877c6c21ef0bfa68e4f6747300ddb171b170b9f00e189edc4c2fc4db93e") - ], - [ - fromHex( - "616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161" - ), - fromHex("52789e3423b72beeb898456a4f49662e46b0cbb960784c5ef4b1399d327e7c27") - ], - [ - fromHex( - "61616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161" - ), - fromHex("6643110c5628fff59edf76d82d5bf573bf800f16a4d65dfb1e5d6f1a46296d0b") - ], - [ - fromHex( - "6161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161" - ), - fromHex("11eaed932c6c6fddfc2efc394e609facf4abe814fc6180d03b14fce13a07d0e5") - ], - [ - fromHex( - "616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161" - ), - fromHex("97daac0ee9998dfcad6c9c0970da5ca411c86233a944c25b47566f6a7bc1ddd5") - ], - [ - fromHex( - "61616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161" - ), - fromHex("8f9bec6a62dd28ebd36d1227745592de6658b36974a3bb98a4c582f683ea6c42") - ], - [ - fromHex( - "6161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161" - ), - fromHex("160b4e433e384e05e537dc59b467f7cb2403f0214db15c5db58862a3f1156d2e") - ], - [ - fromHex( - "616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161" - ), - fromHex("bfc5fe0e360152ca98c50fab4ed7e3078c17debc2917740d5000913b686ca129") - ], - [ - fromHex( - "61616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161" - ), - fromHex("6c1b3dc7a706b9dc81352a6716b9c666c608d8626272c64b914ab05572fc6e84") - ], - [ - fromHex( - "6161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161" - ), - fromHex("abe346a7259fc90b4c27185419628e5e6af6466b1ae9b5446cac4bfc26cf05c4") - ], - [ - fromHex( - "616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161" - ), - fromHex("a3f01b6939256127582ac8ae9fb47a382a244680806a3f613a118851c1ca1d47") - ], - [ - fromHex( - "61616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161" - ), - fromHex("9f4390f8d30c2dd92ec9f095b65e2b9ae9b0a925a5258e241c9f1e910f734318") - ], - [ - fromHex( - "6161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161" - ), - fromHex("b35439a4ac6f0948b6d6f9e3c6af0f5f590ce20f1bde7090ef7970686ec6738a") - ], - [ - fromHex( - "616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161" - ), - fromHex("f13b2d724659eb3bf47f2dd6af1accc87b81f09f59f2b75e5c0bed6589dfe8c6") - ], - [ - fromHex( - "61616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161" - ), - fromHex("d5c039b748aa64665782974ec3dc3025c042edf54dcdc2b5de31385b094cb678") - ], - [ - fromHex( - "6161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161" - ), - fromHex("111bb261277afd65f0744b247cd3e47d386d71563d0ed995517807d5ebd4fba3") - ], - [ - fromHex( - "616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161" - ), - fromHex("11ee391211c6256460b6ed375957fadd8061cafbb31daf967db875aebd5aaad4") - ], - [ - fromHex( - "61616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161" - ), - fromHex("35d5fc17cfbbadd00f5e710ada39f194c5ad7c766ad67072245f1fad45f0f530") - ], - [ - fromHex( - "6161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161" - ), - fromHex("f506898cc7c2e092f9eb9fadae7ba50383f5b46a2a4fe5597dbb553a78981268") - ], - [ - fromHex( - "616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161" - ), - fromHex("7d3e74a05d7db15bce4ad9ec0658ea98e3f06eeecf16b4c6fff2da457ddc2f34") - ], - [ - fromHex( - "61616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161" - ), - fromHex("ffe054fe7ae0cb6dc65c3af9b61d5209f439851db43d0ba5997337df154668eb") - ], - [ - fromHex( - "de188941a3375d3a8a061e67576e926dc71a7fa3f0cceb97452b4d3227965f9ea8cc75076d9fb9c5417aa5cb30fc22198b34982dbb629e" - ), - fromHex("038051e9c324393bd1ca1978dd0952c2aa3742ca4f1bd5cd4611cea83892d382") - ], - [ - millionChars, - fromHex("cdc76e5c9914fb9281a1c7e284d73e67f1809a48a497200e046d39ccc7112cd0") - ], - [ - fromHex( - "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" - ), - fromHex("45ad4b37c6e2fc0a2cfcc1b5da524132ec707615c2cae1dbbc43c97aa521db81") - ] -]; - -/** - * @see https://tools.ietf.org/html/rfc4231 - */ -export const hmacTestVectors: Array<[Uint8Array, Uint8Array, Uint8Array]> = [ - [ - fromHex("0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b0b"), - fromHex("4869205468657265"), - fromHex("b0344c61d8db38535ca8afceaf0bf12b881dc200c9833da726e9376c2e32cff7") - ], - [ - fromHex("4a656665"), - fromHex("7768617420646f2079612077616e7420666f72206e6f7468696e673f"), - fromHex("5bdcc146bf60754e6a042426089575c75a003f089d2739839dec58b964ec3843") - ], - [ - fromHex("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"), - fromHex( - "dddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddddd" - ), - fromHex("773ea91e36800e46854db8ebd09181a72959098b3ef8c122d9635514ced565fe") - ], - [ - fromHex("0102030405060708090a0b0c0d0e0f10111213141516171819"), - fromHex( - "cdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcdcd" - ), - fromHex("82558a389a443c0ea4cc819899f2083a85f0faa3e578f8077a2e3ff46729665b") - ], - [ - fromHex( - "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" - ), - fromHex( - "54657374205573696e67204c6172676572205468616e20426c6f636b2d53697a65204b6579202d2048617368204b6579204669727374" - ), - fromHex("60e431591ee0b67f0d8a26aacbf5b77f8e0bc6213728c5140546040f0ee37f54") - ], - [ - fromHex( - "aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa" - ), - fromHex( - "5468697320697320612074657374207573696e672061206c6172676572207468616e20626c6f636b2d73697a65206b657920616e642061206c6172676572207468616e20626c6f636b2d73697a6520646174612e20546865206b6579206e6565647320746f20626520686173686564206265666f7265206265696e6720757365642062792074686520484d414320616c676f726974686d2e" - ), - fromHex("9b09ffa71b942fcb27635fbcd5b0e944bfdc63644f0713938a7f51535c3a35e2") - ] -]; diff --git a/node_modules/@aws-crypto/sha256-js/tsconfig.json b/node_modules/@aws-crypto/sha256-js/tsconfig.json deleted file mode 100644 index c242acb0..00000000 --- a/node_modules/@aws-crypto/sha256-js/tsconfig.json +++ /dev/null @@ -1,17 +0,0 @@ -{ - "compilerOptions": { - "target": "es5", - "module": "commonjs", - "declaration": true, - "strict": true, - "sourceMap": true, - "downlevelIteration": true, - "lib": ["es5", "es2015.promise", "es2015.collection", "es2015.iterable"], - "rootDir": "./src", - "outDir": "./build", - "importHelpers": true, - "noEmitHelpers": true - }, - "include": ["src/**/*.ts"], - "exclude": ["node_modules/**"] -} diff --git a/node_modules/@aws-crypto/supports-web-crypto/CHANGELOG.md b/node_modules/@aws-crypto/supports-web-crypto/CHANGELOG.md deleted file mode 100644 index f4a929b9..00000000 --- a/node_modules/@aws-crypto/supports-web-crypto/CHANGELOG.md +++ /dev/null @@ -1,46 +0,0 @@ -# Change Log - -All notable changes to this project will be documented in this file. -See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. - -# [3.0.0](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/v2.0.2...v3.0.0) (2023-01-12) - -**Note:** Version bump only for package @aws-crypto/supports-web-crypto - -## [2.0.2](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/v2.0.1...v2.0.2) (2022-09-07) - -**Note:** Version bump only for package @aws-crypto/supports-web-crypto - -# [2.0.0](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/v1.2.2...v2.0.0) (2021-10-25) - -**Note:** Version bump only for package @aws-crypto/supports-web-crypto - -# [1.0.0](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/@aws-crypto/supports-web-crypto@1.0.0-alpha.0...@aws-crypto/supports-web-crypto@1.0.0) (2020-10-22) - -### Bug Fixes - -- replace `sourceRoot` -> `rootDir` in tsconfig ([#169](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/169)) ([d437167](https://github.com/aws/aws-sdk-js-crypto-helpers/commit/d437167b51d1c56a4fcc2bb8a446b74a7e3b7e06)) - -# [1.0.0-alpha.0](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/@aws-crypto/supports-web-crypto@0.1.0-preview.4...@aws-crypto/supports-web-crypto@1.0.0-alpha.0) (2020-02-07) - -**Note:** Version bump only for package @aws-crypto/supports-web-crypto - -# [0.1.0-preview.4](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/@aws-crypto/supports-web-crypto@0.1.0-preview.2...@aws-crypto/supports-web-crypto@0.1.0-preview.4) (2020-01-16) - -### Bug Fixes - -- Changed package.json files to point to the right Git repo ([#9](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/9)) ([028245d](https://github.com/aws/aws-sdk-js-crypto-helpers/commit/028245d72e642ca98d82226afb300eb154503c4a)), closes [#8](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/8) -- lerna version maintains package-lock ([#14](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/14)) ([2ef29e1](https://github.com/aws/aws-sdk-js-crypto-helpers/commit/2ef29e13779703a5c9b32e93d18918fcb33b7272)), closes [#13](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/13) - -# [0.1.0-preview.3](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/@aws-crypto/supports-web-crypto@0.1.0-preview.2...@aws-crypto/supports-web-crypto@0.1.0-preview.3) (2019-11-15) - -### Bug Fixes - -- Changed package.json files to point to the right Git repo ([#9](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/9)) ([028245d](https://github.com/aws/aws-sdk-js-crypto-helpers/commit/028245d72e642ca98d82226afb300eb154503c4a)), closes [#8](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/8) -- lerna version maintains package-lock ([#14](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/14)) ([2ef29e1](https://github.com/aws/aws-sdk-js-crypto-helpers/commit/2ef29e13779703a5c9b32e93d18918fcb33b7272)), closes [#13](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/13) - -# [0.1.0-preview.2](https://github.com/aws/aws-javascript-crypto-helpers/compare/@aws-crypto/supports-web-crypto@0.1.0-preview.1...@aws-crypto/supports-web-crypto@0.1.0-preview.2) (2019-10-30) - -### Bug Fixes - -- remove /src/ from .npmignore (for sourcemaps) ([#5](https://github.com/aws/aws-javascript-crypto-helpers/issues/5)) ([ec52056](https://github.com/aws/aws-javascript-crypto-helpers/commit/ec52056)) diff --git a/node_modules/@aws-crypto/supports-web-crypto/LICENSE b/node_modules/@aws-crypto/supports-web-crypto/LICENSE deleted file mode 100644 index d6456956..00000000 --- a/node_modules/@aws-crypto/supports-web-crypto/LICENSE +++ /dev/null @@ -1,202 +0,0 @@ - - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "[]" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright [yyyy] [name of copyright owner] - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/node_modules/@aws-crypto/supports-web-crypto/README.md b/node_modules/@aws-crypto/supports-web-crypto/README.md deleted file mode 100644 index 78913571..00000000 --- a/node_modules/@aws-crypto/supports-web-crypto/README.md +++ /dev/null @@ -1,32 +0,0 @@ -# @aws-crypto/supports-web-crypto - -Functions to check web crypto support for browsers. - -## Usage - -``` -import {supportsWebCrypto} from '@aws-crypto/supports-web-crypto'; - -if (supportsWebCrypto(window)) { - // window.crypto.subtle.encrypt will exist -} - -``` - -## supportsWebCrypto - -Used to make sure `window.crypto.subtle` exists and implements crypto functions -as well as a cryptographic secure random source exists. - -## supportsSecureRandom - -Used to make sure that a cryptographic secure random source exists. -Does not check for `window.crypto.subtle`. - -## supportsSubtleCrypto - -## supportsZeroByteGCM - -## Test - -`npm test` diff --git a/node_modules/@aws-crypto/supports-web-crypto/build/index.d.ts b/node_modules/@aws-crypto/supports-web-crypto/build/index.d.ts deleted file mode 100644 index 9725c9c2..00000000 --- a/node_modules/@aws-crypto/supports-web-crypto/build/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./supportsWebCrypto"; diff --git a/node_modules/@aws-crypto/supports-web-crypto/build/index.js b/node_modules/@aws-crypto/supports-web-crypto/build/index.js deleted file mode 100644 index 4d82b8d1..00000000 --- a/node_modules/@aws-crypto/supports-web-crypto/build/index.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -var tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./supportsWebCrypto"), exports); -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi9zcmMvaW5kZXgudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6Ijs7O0FBQUEsOERBQW9DIiwic291cmNlc0NvbnRlbnQiOlsiZXhwb3J0ICogZnJvbSBcIi4vc3VwcG9ydHNXZWJDcnlwdG9cIjtcbiJdfQ== \ No newline at end of file diff --git a/node_modules/@aws-crypto/supports-web-crypto/build/supportsWebCrypto.d.ts b/node_modules/@aws-crypto/supports-web-crypto/build/supportsWebCrypto.d.ts deleted file mode 100644 index f2723dc6..00000000 --- a/node_modules/@aws-crypto/supports-web-crypto/build/supportsWebCrypto.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare function supportsWebCrypto(window: Window): boolean; -export declare function supportsSecureRandom(window: Window): boolean; -export declare function supportsSubtleCrypto(subtle: SubtleCrypto): boolean; -export declare function supportsZeroByteGCM(subtle: SubtleCrypto): Promise; diff --git a/node_modules/@aws-crypto/supports-web-crypto/build/supportsWebCrypto.js b/node_modules/@aws-crypto/supports-web-crypto/build/supportsWebCrypto.js deleted file mode 100644 index a079bec3..00000000 --- a/node_modules/@aws-crypto/supports-web-crypto/build/supportsWebCrypto.js +++ /dev/null @@ -1,69 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.supportsZeroByteGCM = exports.supportsSubtleCrypto = exports.supportsSecureRandom = exports.supportsWebCrypto = void 0; -var tslib_1 = require("tslib"); -var subtleCryptoMethods = [ - "decrypt", - "digest", - "encrypt", - "exportKey", - "generateKey", - "importKey", - "sign", - "verify" -]; -function supportsWebCrypto(window) { - if (supportsSecureRandom(window) && - typeof window.crypto.subtle === "object") { - var subtle = window.crypto.subtle; - return supportsSubtleCrypto(subtle); - } - return false; -} -exports.supportsWebCrypto = supportsWebCrypto; -function supportsSecureRandom(window) { - if (typeof window === "object" && typeof window.crypto === "object") { - var getRandomValues = window.crypto.getRandomValues; - return typeof getRandomValues === "function"; - } - return false; -} -exports.supportsSecureRandom = supportsSecureRandom; -function supportsSubtleCrypto(subtle) { - return (subtle && - subtleCryptoMethods.every(function (methodName) { return typeof subtle[methodName] === "function"; })); -} -exports.supportsSubtleCrypto = supportsSubtleCrypto; -function supportsZeroByteGCM(subtle) { - return tslib_1.__awaiter(this, void 0, void 0, function () { - var key, zeroByteAuthTag, _a; - return tslib_1.__generator(this, function (_b) { - switch (_b.label) { - case 0: - if (!supportsSubtleCrypto(subtle)) - return [2 /*return*/, false]; - _b.label = 1; - case 1: - _b.trys.push([1, 4, , 5]); - return [4 /*yield*/, subtle.generateKey({ name: "AES-GCM", length: 128 }, false, ["encrypt"])]; - case 2: - key = _b.sent(); - return [4 /*yield*/, subtle.encrypt({ - name: "AES-GCM", - iv: new Uint8Array(Array(12)), - additionalData: new Uint8Array(Array(16)), - tagLength: 128 - }, key, new Uint8Array(0))]; - case 3: - zeroByteAuthTag = _b.sent(); - return [2 /*return*/, zeroByteAuthTag.byteLength === 16]; - case 4: - _a = _b.sent(); - return [2 /*return*/, false]; - case 5: return [2 /*return*/]; - } - }); - }); -} -exports.supportsZeroByteGCM = supportsZeroByteGCM; -//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3VwcG9ydHNXZWJDcnlwdG8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n1cbiJdfQ== \ No newline at end of file diff --git a/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/CopyrightNotice.txt b/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/CopyrightNotice.txt deleted file mode 100644 index 3d4c8234..00000000 --- a/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/CopyrightNotice.txt +++ /dev/null @@ -1,15 +0,0 @@ -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */ - diff --git a/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/LICENSE.txt b/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/LICENSE.txt deleted file mode 100644 index bfe6430c..00000000 --- a/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/LICENSE.txt +++ /dev/null @@ -1,12 +0,0 @@ -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. \ No newline at end of file diff --git a/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/README.md b/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/README.md deleted file mode 100644 index a5b2692c..00000000 --- a/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/README.md +++ /dev/null @@ -1,142 +0,0 @@ -# tslib - -This is a runtime library for [TypeScript](http://www.typescriptlang.org/) that contains all of the TypeScript helper functions. - -This library is primarily used by the `--importHelpers` flag in TypeScript. -When using `--importHelpers`, a module that uses helper functions like `__extends` and `__assign` in the following emitted file: - -```ts -var __assign = (this && this.__assign) || Object.assign || function(t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) - t[p] = s[p]; - } - return t; -}; -exports.x = {}; -exports.y = __assign({}, exports.x); - -``` - -will instead be emitted as something like the following: - -```ts -var tslib_1 = require("tslib"); -exports.x = {}; -exports.y = tslib_1.__assign({}, exports.x); -``` - -Because this can avoid duplicate declarations of things like `__extends`, `__assign`, etc., this means delivering users smaller files on average, as well as less runtime overhead. -For optimized bundles with TypeScript, you should absolutely consider using `tslib` and `--importHelpers`. - -# Installing - -For the latest stable version, run: - -## npm - -```sh -# TypeScript 2.3.3 or later -npm install tslib - -# TypeScript 2.3.2 or earlier -npm install tslib@1.6.1 -``` - -## yarn - -```sh -# TypeScript 2.3.3 or later -yarn add tslib - -# TypeScript 2.3.2 or earlier -yarn add tslib@1.6.1 -``` - -## bower - -```sh -# TypeScript 2.3.3 or later -bower install tslib - -# TypeScript 2.3.2 or earlier -bower install tslib@1.6.1 -``` - -## JSPM - -```sh -# TypeScript 2.3.3 or later -jspm install tslib - -# TypeScript 2.3.2 or earlier -jspm install tslib@1.6.1 -``` - -# Usage - -Set the `importHelpers` compiler option on the command line: - -``` -tsc --importHelpers file.ts -``` - -or in your tsconfig.json: - -```json -{ - "compilerOptions": { - "importHelpers": true - } -} -``` - -#### For bower and JSPM users - -You will need to add a `paths` mapping for `tslib`, e.g. For Bower users: - -```json -{ - "compilerOptions": { - "module": "amd", - "importHelpers": true, - "baseUrl": "./", - "paths": { - "tslib" : ["bower_components/tslib/tslib.d.ts"] - } - } -} -``` - -For JSPM users: - -```json -{ - "compilerOptions": { - "module": "system", - "importHelpers": true, - "baseUrl": "./", - "paths": { - "tslib" : ["jspm_packages/npm/tslib@1.[version].0/tslib.d.ts"] - } - } -} -``` - - -# Contribute - -There are many ways to [contribute](https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md) to TypeScript. - -* [Submit bugs](https://github.com/Microsoft/TypeScript/issues) and help us verify fixes as they are checked in. -* Review the [source code changes](https://github.com/Microsoft/TypeScript/pulls). -* Engage with other TypeScript users and developers on [StackOverflow](http://stackoverflow.com/questions/tagged/typescript). -* Join the [#typescript](http://twitter.com/#!/search/realtime/%23typescript) discussion on Twitter. -* [Contribute bug fixes](https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md). - -# Documentation - -* [Quick tutorial](http://www.typescriptlang.org/Tutorial) -* [Programming handbook](http://www.typescriptlang.org/Handbook) -* [Homepage](http://www.typescriptlang.org/) diff --git a/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/modules/index.js b/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/modules/index.js deleted file mode 100644 index d241d042..00000000 --- a/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/modules/index.js +++ /dev/null @@ -1,51 +0,0 @@ -import tslib from '../tslib.js'; -const { - __extends, - __assign, - __rest, - __decorate, - __param, - __metadata, - __awaiter, - __generator, - __exportStar, - __createBinding, - __values, - __read, - __spread, - __spreadArrays, - __await, - __asyncGenerator, - __asyncDelegator, - __asyncValues, - __makeTemplateObject, - __importStar, - __importDefault, - __classPrivateFieldGet, - __classPrivateFieldSet, -} = tslib; -export { - __extends, - __assign, - __rest, - __decorate, - __param, - __metadata, - __awaiter, - __generator, - __exportStar, - __createBinding, - __values, - __read, - __spread, - __spreadArrays, - __await, - __asyncGenerator, - __asyncDelegator, - __asyncValues, - __makeTemplateObject, - __importStar, - __importDefault, - __classPrivateFieldGet, - __classPrivateFieldSet, -}; diff --git a/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/modules/package.json b/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/modules/package.json deleted file mode 100644 index aafa0e4b..00000000 --- a/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/modules/package.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "type": "module" -} \ No newline at end of file diff --git a/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/package.json b/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/package.json deleted file mode 100644 index f8c2a53d..00000000 --- a/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/package.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "name": "tslib", - "author": "Microsoft Corp.", - "homepage": "https://www.typescriptlang.org/", - "version": "1.14.1", - "license": "0BSD", - "description": "Runtime library for TypeScript helper functions", - "keywords": [ - "TypeScript", - "Microsoft", - "compiler", - "language", - "javascript", - "tslib", - "runtime" - ], - "bugs": { - "url": "https://github.com/Microsoft/TypeScript/issues" - }, - "repository": { - "type": "git", - "url": "https://github.com/Microsoft/tslib.git" - }, - "main": "tslib.js", - "module": "tslib.es6.js", - "jsnext:main": "tslib.es6.js", - "typings": "tslib.d.ts", - "sideEffects": false, - "exports": { - ".": { - "module": "./tslib.es6.js", - "import": "./modules/index.js", - "default": "./tslib.js" - }, - "./": "./" - } -} diff --git a/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/test/validateModuleExportsMatchCommonJS/index.js b/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/test/validateModuleExportsMatchCommonJS/index.js deleted file mode 100644 index 0c1b613d..00000000 --- a/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/test/validateModuleExportsMatchCommonJS/index.js +++ /dev/null @@ -1,23 +0,0 @@ -// When on node 14, it validates that all of the commonjs exports -// are correctly re-exported for es modules importers. - -const nodeMajor = Number(process.version.split(".")[0].slice(1)) -if (nodeMajor < 14) { - console.log("Skipping because node does not support module exports.") - process.exit(0) -} - -// ES Modules import via the ./modules folder -import * as esTSLib from "../../modules/index.js" - -// Force a commonjs resolve -import { createRequire } from "module"; -const commonJSTSLib = createRequire(import.meta.url)("../../tslib.js"); - -for (const key in commonJSTSLib) { - if (commonJSTSLib.hasOwnProperty(key)) { - if(!esTSLib[key]) throw new Error(`ESModules is missing ${key} - it needs to be re-exported in ./modules/index.js`) - } -} - -console.log("All exports in commonjs are available for es module consumers.") diff --git a/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/test/validateModuleExportsMatchCommonJS/package.json b/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/test/validateModuleExportsMatchCommonJS/package.json deleted file mode 100644 index 166e5095..00000000 --- a/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/test/validateModuleExportsMatchCommonJS/package.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "type": "module", - "scripts": { - "test": "node index.js" - } -} diff --git a/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/tslib.d.ts b/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/tslib.d.ts deleted file mode 100644 index 0756b28e..00000000 --- a/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/tslib.d.ts +++ /dev/null @@ -1,37 +0,0 @@ -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */ -export declare function __extends(d: Function, b: Function): void; -export declare function __assign(t: any, ...sources: any[]): any; -export declare function __rest(t: any, propertyNames: (string | symbol)[]): any; -export declare function __decorate(decorators: Function[], target: any, key?: string | symbol, desc?: any): any; -export declare function __param(paramIndex: number, decorator: Function): Function; -export declare function __metadata(metadataKey: any, metadataValue: any): Function; -export declare function __awaiter(thisArg: any, _arguments: any, P: Function, generator: Function): any; -export declare function __generator(thisArg: any, body: Function): any; -export declare function __exportStar(m: any, exports: any): void; -export declare function __values(o: any): any; -export declare function __read(o: any, n?: number): any[]; -export declare function __spread(...args: any[][]): any[]; -export declare function __spreadArrays(...args: any[][]): any[]; -export declare function __await(v: any): any; -export declare function __asyncGenerator(thisArg: any, _arguments: any, generator: Function): any; -export declare function __asyncDelegator(o: any): any; -export declare function __asyncValues(o: any): any; -export declare function __makeTemplateObject(cooked: string[], raw: string[]): TemplateStringsArray; -export declare function __importStar(mod: T): T; -export declare function __importDefault(mod: T): T | { default: T }; -export declare function __classPrivateFieldGet(receiver: T, privateMap: { has(o: T): boolean, get(o: T): V | undefined }): V; -export declare function __classPrivateFieldSet(receiver: T, privateMap: { has(o: T): boolean, set(o: T, value: V): any }, value: V): V; -export declare function __createBinding(object: object, target: object, key: PropertyKey, objectKey?: PropertyKey): void; \ No newline at end of file diff --git a/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/tslib.es6.html b/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/tslib.es6.html deleted file mode 100644 index b122e41b..00000000 --- a/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/tslib.es6.html +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/tslib.es6.js b/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/tslib.es6.js deleted file mode 100644 index 0e0d8d07..00000000 --- a/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/tslib.es6.js +++ /dev/null @@ -1,218 +0,0 @@ -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */ -/* global Reflect, Promise */ - -var extendStatics = function(d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; - return extendStatics(d, b); -}; - -export function __extends(d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); -} - -export var __assign = function() { - __assign = Object.assign || function __assign(t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; - } - return t; - } - return __assign.apply(this, arguments); -} - -export function __rest(s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -} - -export function __decorate(decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; -} - -export function __param(paramIndex, decorator) { - return function (target, key) { decorator(target, key, paramIndex); } -} - -export function __metadata(metadataKey, metadataValue) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue); -} - -export function __awaiter(thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -} - -export function __generator(thisArg, body) { - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; - return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; - function verb(n) { return function (v) { return step([n, v]); }; } - function step(op) { - if (f) throw new TypeError("Generator is already executing."); - while (_) try { - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [op[0] & 2, t.value]; - switch (op[0]) { - case 0: case 1: t = op; break; - case 4: _.label++; return { value: op[1], done: false }; - case 5: _.label++; y = op[1]; op = [0]; continue; - case 7: op = _.ops.pop(); _.trys.pop(); continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } - if (t[2]) _.ops.pop(); - _.trys.pop(); continue; - } - op = body.call(thisArg, _); - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; - } -} - -export function __createBinding(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -} - -export function __exportStar(m, exports) { - for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) exports[p] = m[p]; -} - -export function __values(o) { - var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; - if (m) return m.call(o); - if (o && typeof o.length === "number") return { - next: function () { - if (o && i >= o.length) o = void 0; - return { value: o && o[i++], done: !o }; - } - }; - throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); -} - -export function __read(o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -} - -export function __spread() { - for (var ar = [], i = 0; i < arguments.length; i++) - ar = ar.concat(__read(arguments[i])); - return ar; -} - -export function __spreadArrays() { - for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; - for (var r = Array(s), k = 0, i = 0; i < il; i++) - for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) - r[k] = a[j]; - return r; -}; - -export function __await(v) { - return this instanceof __await ? (this.v = v, this) : new __await(v); -} - -export function __asyncGenerator(thisArg, _arguments, generator) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } - function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } - function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } - function fulfill(value) { resume("next", value); } - function reject(value) { resume("throw", value); } - function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -} - -export function __asyncDelegator(o) { - var i, p; - return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; - function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; } -} - -export function __asyncValues(o) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var m = o[Symbol.asyncIterator], i; - return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); - function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } - function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } -} - -export function __makeTemplateObject(cooked, raw) { - if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } - return cooked; -}; - -export function __importStar(mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; - result.default = mod; - return result; -} - -export function __importDefault(mod) { - return (mod && mod.__esModule) ? mod : { default: mod }; -} - -export function __classPrivateFieldGet(receiver, privateMap) { - if (!privateMap.has(receiver)) { - throw new TypeError("attempted to get private field on non-instance"); - } - return privateMap.get(receiver); -} - -export function __classPrivateFieldSet(receiver, privateMap, value) { - if (!privateMap.has(receiver)) { - throw new TypeError("attempted to set private field on non-instance"); - } - privateMap.set(receiver, value); - return value; -} diff --git a/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/tslib.html b/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/tslib.html deleted file mode 100644 index 44c9ba51..00000000 --- a/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/tslib.html +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/tslib.js b/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/tslib.js deleted file mode 100644 index e5b7c9b8..00000000 --- a/node_modules/@aws-crypto/supports-web-crypto/node_modules/tslib/tslib.js +++ /dev/null @@ -1,284 +0,0 @@ -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */ - -/* global global, define, System, Reflect, Promise */ -var __extends; -var __assign; -var __rest; -var __decorate; -var __param; -var __metadata; -var __awaiter; -var __generator; -var __exportStar; -var __values; -var __read; -var __spread; -var __spreadArrays; -var __await; -var __asyncGenerator; -var __asyncDelegator; -var __asyncValues; -var __makeTemplateObject; -var __importStar; -var __importDefault; -var __classPrivateFieldGet; -var __classPrivateFieldSet; -var __createBinding; -(function (factory) { - var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {}; - if (typeof define === "function" && define.amd) { - define("tslib", ["exports"], function (exports) { factory(createExporter(root, createExporter(exports))); }); - } - else if (typeof module === "object" && typeof module.exports === "object") { - factory(createExporter(root, createExporter(module.exports))); - } - else { - factory(createExporter(root)); - } - function createExporter(exports, previous) { - if (exports !== root) { - if (typeof Object.create === "function") { - Object.defineProperty(exports, "__esModule", { value: true }); - } - else { - exports.__esModule = true; - } - } - return function (id, v) { return exports[id] = previous ? previous(id, v) : v; }; - } -}) -(function (exporter) { - var extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; - - __extends = function (d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; - - __assign = Object.assign || function (t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; - } - return t; - }; - - __rest = function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; - }; - - __decorate = function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; - }; - - __param = function (paramIndex, decorator) { - return function (target, key) { decorator(target, key, paramIndex); } - }; - - __metadata = function (metadataKey, metadataValue) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue); - }; - - __awaiter = function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); - }; - - __generator = function (thisArg, body) { - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; - return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; - function verb(n) { return function (v) { return step([n, v]); }; } - function step(op) { - if (f) throw new TypeError("Generator is already executing."); - while (_) try { - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [op[0] & 2, t.value]; - switch (op[0]) { - case 0: case 1: t = op; break; - case 4: _.label++; return { value: op[1], done: false }; - case 5: _.label++; y = op[1]; op = [0]; continue; - case 7: op = _.ops.pop(); _.trys.pop(); continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } - if (t[2]) _.ops.pop(); - _.trys.pop(); continue; - } - op = body.call(thisArg, _); - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; - } - }; - - __createBinding = function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; - }; - - __exportStar = function (m, exports) { - for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) exports[p] = m[p]; - }; - - __values = function (o) { - var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; - if (m) return m.call(o); - if (o && typeof o.length === "number") return { - next: function () { - if (o && i >= o.length) o = void 0; - return { value: o && o[i++], done: !o }; - } - }; - throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); - }; - - __read = function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; - }; - - __spread = function () { - for (var ar = [], i = 0; i < arguments.length; i++) - ar = ar.concat(__read(arguments[i])); - return ar; - }; - - __spreadArrays = function () { - for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; - for (var r = Array(s), k = 0, i = 0; i < il; i++) - for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) - r[k] = a[j]; - return r; - }; - - __await = function (v) { - return this instanceof __await ? (this.v = v, this) : new __await(v); - }; - - __asyncGenerator = function (thisArg, _arguments, generator) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } - function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } - function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } - function fulfill(value) { resume("next", value); } - function reject(value) { resume("throw", value); } - function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } - }; - - __asyncDelegator = function (o) { - var i, p; - return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; - function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; } - }; - - __asyncValues = function (o) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var m = o[Symbol.asyncIterator], i; - return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); - function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } - function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } - }; - - __makeTemplateObject = function (cooked, raw) { - if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } - return cooked; - }; - - __importStar = function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; - result["default"] = mod; - return result; - }; - - __importDefault = function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; - }; - - __classPrivateFieldGet = function (receiver, privateMap) { - if (!privateMap.has(receiver)) { - throw new TypeError("attempted to get private field on non-instance"); - } - return privateMap.get(receiver); - }; - - __classPrivateFieldSet = function (receiver, privateMap, value) { - if (!privateMap.has(receiver)) { - throw new TypeError("attempted to set private field on non-instance"); - } - privateMap.set(receiver, value); - return value; - }; - - exporter("__extends", __extends); - exporter("__assign", __assign); - exporter("__rest", __rest); - exporter("__decorate", __decorate); - exporter("__param", __param); - exporter("__metadata", __metadata); - exporter("__awaiter", __awaiter); - exporter("__generator", __generator); - exporter("__exportStar", __exportStar); - exporter("__createBinding", __createBinding); - exporter("__values", __values); - exporter("__read", __read); - exporter("__spread", __spread); - exporter("__spreadArrays", __spreadArrays); - exporter("__await", __await); - exporter("__asyncGenerator", __asyncGenerator); - exporter("__asyncDelegator", __asyncDelegator); - exporter("__asyncValues", __asyncValues); - exporter("__makeTemplateObject", __makeTemplateObject); - exporter("__importStar", __importStar); - exporter("__importDefault", __importDefault); - exporter("__classPrivateFieldGet", __classPrivateFieldGet); - exporter("__classPrivateFieldSet", __classPrivateFieldSet); -}); diff --git a/node_modules/@aws-crypto/supports-web-crypto/package.json b/node_modules/@aws-crypto/supports-web-crypto/package.json deleted file mode 100644 index e28bf4ea..00000000 --- a/node_modules/@aws-crypto/supports-web-crypto/package.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "name": "@aws-crypto/supports-web-crypto", - "version": "3.0.0", - "description": "Provides functions for detecting if the host environment supports the WebCrypto API", - "scripts": { - "pretest": "tsc -p tsconfig.test.json", - "test": "mocha --require ts-node/register test/**/*test.ts" - }, - "repository": { - "type": "git", - "url": "git@github.com:aws/aws-sdk-js-crypto-helpers.git" - }, - "author": { - "name": "AWS Crypto Tools Team", - "email": "aws-cryptools@amazon.com", - "url": "https://docs.aws.amazon.com/aws-crypto-tools/index.html?id=docs_gateway#lang/en_us" - }, - "homepage": "https://github.com/aws/aws-sdk-js-crypto-helpers/tree/master/packages/supports-web-crypto", - "license": "Apache-2.0", - "main": "./build/index.js", - "types": "./build/index.d.ts", - "dependencies": { - "tslib": "^1.11.1" - }, - "gitHead": "7f56cee8f62bd65cd397eeec29c3c997215bd80c" -} diff --git a/node_modules/@aws-crypto/supports-web-crypto/src/index.ts b/node_modules/@aws-crypto/supports-web-crypto/src/index.ts deleted file mode 100644 index 9725c9c2..00000000 --- a/node_modules/@aws-crypto/supports-web-crypto/src/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./supportsWebCrypto"; diff --git a/node_modules/@aws-crypto/supports-web-crypto/src/supportsWebCrypto.ts b/node_modules/@aws-crypto/supports-web-crypto/src/supportsWebCrypto.ts deleted file mode 100644 index 7eef6291..00000000 --- a/node_modules/@aws-crypto/supports-web-crypto/src/supportsWebCrypto.ts +++ /dev/null @@ -1,76 +0,0 @@ -type SubtleCryptoMethod = - | "decrypt" - | "digest" - | "encrypt" - | "exportKey" - | "generateKey" - | "importKey" - | "sign" - | "verify"; - -const subtleCryptoMethods: Array = [ - "decrypt", - "digest", - "encrypt", - "exportKey", - "generateKey", - "importKey", - "sign", - "verify" -]; - -export function supportsWebCrypto(window: Window): boolean { - if ( - supportsSecureRandom(window) && - typeof window.crypto.subtle === "object" - ) { - const { subtle } = window.crypto; - - return supportsSubtleCrypto(subtle); - } - - return false; -} - -export function supportsSecureRandom(window: Window): boolean { - if (typeof window === "object" && typeof window.crypto === "object") { - const { getRandomValues } = window.crypto; - - return typeof getRandomValues === "function"; - } - - return false; -} - -export function supportsSubtleCrypto(subtle: SubtleCrypto) { - return ( - subtle && - subtleCryptoMethods.every( - methodName => typeof subtle[methodName] === "function" - ) - ); -} - -export async function supportsZeroByteGCM(subtle: SubtleCrypto) { - if (!supportsSubtleCrypto(subtle)) return false; - try { - const key = await subtle.generateKey( - { name: "AES-GCM", length: 128 }, - false, - ["encrypt"] - ); - const zeroByteAuthTag = await subtle.encrypt( - { - name: "AES-GCM", - iv: new Uint8Array(Array(12)), - additionalData: new Uint8Array(Array(16)), - tagLength: 128 - }, - key, - new Uint8Array(0) - ); - return zeroByteAuthTag.byteLength === 16; - } catch { - return false; - } -} diff --git a/node_modules/@aws-crypto/supports-web-crypto/tsconfig.json b/node_modules/@aws-crypto/supports-web-crypto/tsconfig.json deleted file mode 100644 index e4def433..00000000 --- a/node_modules/@aws-crypto/supports-web-crypto/tsconfig.json +++ /dev/null @@ -1,16 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "target": "es5", - "lib": ["dom", "es5", "es2015.collection"], - "strict": true, - "sourceMap": true, - "declaration": true, - "rootDir": "./src", - "outDir": "./build", - "importHelpers": true, - "noEmitHelpers": true - }, - "include": ["src/**/*.ts"], - "exclude": ["node_modules/**"] -} diff --git a/node_modules/@aws-crypto/util/CHANGELOG.md b/node_modules/@aws-crypto/util/CHANGELOG.md deleted file mode 100644 index 686f49d1..00000000 --- a/node_modules/@aws-crypto/util/CHANGELOG.md +++ /dev/null @@ -1,47 +0,0 @@ -# Change Log - -All notable changes to this project will be documented in this file. -See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. - -# [3.0.0](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/v2.0.2...v3.0.0) (2023-01-12) - -- feat!: replace Hash implementations with Checksum interface (#492) ([da43dc0](https://github.com/aws/aws-sdk-js-crypto-helpers/commit/da43dc0fdf669d9ebb5bfb1b1f7c79e46c4aaae1)), closes [#492](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/492) - -### BREAKING CHANGES - -- All classes that implemented `Hash` now implement `Checksum`. - -## [2.0.2](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/v2.0.1...v2.0.2) (2022-09-07) - -### Bug Fixes - -- **#337:** update @aws-sdk/types ([#373](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/373)) ([b26a811](https://github.com/aws/aws-sdk-js-crypto-helpers/commit/b26a811a392f5209c7ec7e57251500d4d78f97ff)), closes [#337](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/337) -- **docs:** update README for packages/util ([#382](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/382)) ([f3e650e](https://github.com/aws/aws-sdk-js-crypto-helpers/commit/f3e650e1b4792ffbea2e8a1a015fd55fb951a3a4)) - -## [2.0.1](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/v2.0.0...v2.0.1) (2021-12-09) - -### Bug Fixes - -- **uint32ArrayFrom:** increment index & polyfill for Uint32Array ([#270](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/270)) ([a70d603](https://github.com/aws/aws-sdk-js-crypto-helpers/commit/a70d603f3ba7600d3c1213f297d4160a4b3793bd)) - -# [2.0.0](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/v1.2.2...v2.0.0) (2021-10-25) - -**Note:** Version bump only for package @aws-crypto/util - -## [1.2.2](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/v1.2.1...v1.2.2) (2021-10-12) - -### Bug Fixes - -- **crc32c:** ie11 does not support Array.from ([#221](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/221)) ([5f49547](https://github.com/aws/aws-sdk-js-crypto-helpers/commit/5f495472ab8988cf203e0f2a70a51f7e1fcd7e60)) - -## [1.2.1](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/v1.2.0...v1.2.1) (2021-09-17) - -### Bug Fixes - -- better pollyfill check for Buffer ([#217](https://github.com/aws/aws-sdk-js-crypto-helpers/issues/217)) ([bc97da2](https://github.com/aws/aws-sdk-js-crypto-helpers/commit/bc97da29aaf473943e4407c9a29cc30f74f15723)) - -# [1.2.0](https://github.com/aws/aws-sdk-js-crypto-helpers/compare/v1.1.1...v1.2.0) (2021-09-17) - -### Features - -- add @aws-crypto/util ([8f489cb](https://github.com/aws/aws-sdk-js-crypto-helpers/commit/8f489cbe4c0e134f826bac66f1bf5172597048b9)) diff --git a/node_modules/@aws-crypto/util/LICENSE b/node_modules/@aws-crypto/util/LICENSE deleted file mode 100644 index 980a15ac..00000000 --- a/node_modules/@aws-crypto/util/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright {yyyy} {name of copyright owner} - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/node_modules/@aws-crypto/util/README.md b/node_modules/@aws-crypto/util/README.md deleted file mode 100644 index 4c1c8aab..00000000 --- a/node_modules/@aws-crypto/util/README.md +++ /dev/null @@ -1,16 +0,0 @@ -# @aws-crypto/util - -Helper functions - -## Usage - -``` -import { convertToBuffer } from '@aws-crypto/util'; - -const data = "asdf"; -const utf8EncodedUint8Array = convertToBuffer(data); -``` - -## Test - -`npm test` diff --git a/node_modules/@aws-crypto/util/build/convertToBuffer.d.ts b/node_modules/@aws-crypto/util/build/convertToBuffer.d.ts deleted file mode 100644 index 697a5cde..00000000 --- a/node_modules/@aws-crypto/util/build/convertToBuffer.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { SourceData } from "@aws-sdk/types"; -export declare function convertToBuffer(data: SourceData): Uint8Array; diff --git a/node_modules/@aws-crypto/util/build/convertToBuffer.js b/node_modules/@aws-crypto/util/build/convertToBuffer.js deleted file mode 100644 index 6cc8bcfe..00000000 --- a/node_modules/@aws-crypto/util/build/convertToBuffer.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. -// SPDX-License-Identifier: Apache-2.0 -Object.defineProperty(exports, "__esModule", { value: true }); -exports.convertToBuffer = void 0; -var util_utf8_browser_1 = require("@aws-sdk/util-utf8-browser"); -// Quick polyfill -var fromUtf8 = typeof Buffer !== "undefined" && Buffer.from - ? function (input) { return Buffer.from(input, "utf8"); } - : util_utf8_browser_1.fromUtf8; -function convertToBuffer(data) { - // Already a Uint8, do nothing - if (data instanceof Uint8Array) - return data; - if (typeof data === "string") { - return fromUtf8(data); - } - if (ArrayBuffer.isView(data)) { - return new Uint8Array(data.buffer, data.byteOffset, data.byteLength / Uint8Array.BYTES_PER_ELEMENT); - } - return new Uint8Array(data); -} -exports.convertToBuffer = convertToBuffer; -//# sourceMappingURL=convertToBuffer.js.map \ No newline at end of file diff --git a/node_modules/@aws-crypto/util/build/convertToBuffer.js.map b/node_modules/@aws-crypto/util/build/convertToBuffer.js.map deleted file mode 100644 index d3c01548..00000000 --- a/node_modules/@aws-crypto/util/build/convertToBuffer.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"convertToBuffer.js","sourceRoot":"","sources":["../src/convertToBuffer.ts"],"names":[],"mappings":";AAAA,oEAAoE;AACpE,sCAAsC;;;AAGtC,gEAAyE;AAEzE,iBAAiB;AACjB,IAAM,QAAQ,GACZ,OAAO,MAAM,KAAK,WAAW,IAAI,MAAM,CAAC,IAAI;IAC1C,CAAC,CAAC,UAAC,KAAa,IAAK,OAAA,MAAM,CAAC,IAAI,CAAC,KAAK,EAAE,MAAM,CAAC,EAA1B,CAA0B;IAC/C,CAAC,CAAC,4BAAe,CAAC;AAEtB,SAAgB,eAAe,CAAC,IAAgB;IAC9C,8BAA8B;IAC9B,IAAI,IAAI,YAAY,UAAU;QAAE,OAAO,IAAI,CAAC;IAE5C,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;QAC5B,OAAO,QAAQ,CAAC,IAAI,CAAC,CAAC;KACvB;IAED,IAAI,WAAW,CAAC,MAAM,CAAC,IAAI,CAAC,EAAE;QAC5B,OAAO,IAAI,UAAU,CACnB,IAAI,CAAC,MAAM,EACX,IAAI,CAAC,UAAU,EACf,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,iBAAiB,CAC/C,CAAC;KACH;IAED,OAAO,IAAI,UAAU,CAAC,IAAI,CAAC,CAAC;AAC9B,CAAC;AAjBD,0CAiBC"} \ No newline at end of file diff --git a/node_modules/@aws-crypto/util/build/index.d.ts b/node_modules/@aws-crypto/util/build/index.d.ts deleted file mode 100644 index 783c73c4..00000000 --- a/node_modules/@aws-crypto/util/build/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export { convertToBuffer } from "./convertToBuffer"; -export { isEmptyData } from "./isEmptyData"; -export { numToUint8 } from "./numToUint8"; -export { uint32ArrayFrom } from './uint32ArrayFrom'; diff --git a/node_modules/@aws-crypto/util/build/index.js b/node_modules/@aws-crypto/util/build/index.js deleted file mode 100644 index 94e1ca90..00000000 --- a/node_modules/@aws-crypto/util/build/index.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. -// SPDX-License-Identifier: Apache-2.0 -Object.defineProperty(exports, "__esModule", { value: true }); -exports.uint32ArrayFrom = exports.numToUint8 = exports.isEmptyData = exports.convertToBuffer = void 0; -var convertToBuffer_1 = require("./convertToBuffer"); -Object.defineProperty(exports, "convertToBuffer", { enumerable: true, get: function () { return convertToBuffer_1.convertToBuffer; } }); -var isEmptyData_1 = require("./isEmptyData"); -Object.defineProperty(exports, "isEmptyData", { enumerable: true, get: function () { return isEmptyData_1.isEmptyData; } }); -var numToUint8_1 = require("./numToUint8"); -Object.defineProperty(exports, "numToUint8", { enumerable: true, get: function () { return numToUint8_1.numToUint8; } }); -var uint32ArrayFrom_1 = require("./uint32ArrayFrom"); -Object.defineProperty(exports, "uint32ArrayFrom", { enumerable: true, get: function () { return uint32ArrayFrom_1.uint32ArrayFrom; } }); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@aws-crypto/util/build/index.js.map b/node_modules/@aws-crypto/util/build/index.js.map deleted file mode 100644 index afb9af66..00000000 --- a/node_modules/@aws-crypto/util/build/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,oEAAoE;AACpE,sCAAsC;;;AAEtC,qDAAoD;AAA3C,kHAAA,eAAe,OAAA;AACxB,6CAA4C;AAAnC,0GAAA,WAAW,OAAA;AACpB,2CAA0C;AAAjC,wGAAA,UAAU,OAAA;AACnB,qDAAkD;AAA1C,kHAAA,eAAe,OAAA"} \ No newline at end of file diff --git a/node_modules/@aws-crypto/util/build/isEmptyData.d.ts b/node_modules/@aws-crypto/util/build/isEmptyData.d.ts deleted file mode 100644 index 43ae4a7c..00000000 --- a/node_modules/@aws-crypto/util/build/isEmptyData.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { SourceData } from "@aws-sdk/types"; -export declare function isEmptyData(data: SourceData): boolean; diff --git a/node_modules/@aws-crypto/util/build/isEmptyData.js b/node_modules/@aws-crypto/util/build/isEmptyData.js deleted file mode 100644 index 6af1e89e..00000000 --- a/node_modules/@aws-crypto/util/build/isEmptyData.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; -// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. -// SPDX-License-Identifier: Apache-2.0 -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isEmptyData = void 0; -function isEmptyData(data) { - if (typeof data === "string") { - return data.length === 0; - } - return data.byteLength === 0; -} -exports.isEmptyData = isEmptyData; -//# sourceMappingURL=isEmptyData.js.map \ No newline at end of file diff --git a/node_modules/@aws-crypto/util/build/isEmptyData.js.map b/node_modules/@aws-crypto/util/build/isEmptyData.js.map deleted file mode 100644 index 8766be9b..00000000 --- a/node_modules/@aws-crypto/util/build/isEmptyData.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"isEmptyData.js","sourceRoot":"","sources":["../src/isEmptyData.ts"],"names":[],"mappings":";AAAA,oEAAoE;AACpE,sCAAsC;;;AAItC,SAAgB,WAAW,CAAC,IAAgB;IAC1C,IAAI,OAAO,IAAI,KAAK,QAAQ,EAAE;QAC5B,OAAO,IAAI,CAAC,MAAM,KAAK,CAAC,CAAC;KAC1B;IAED,OAAO,IAAI,CAAC,UAAU,KAAK,CAAC,CAAC;AAC/B,CAAC;AAND,kCAMC"} \ No newline at end of file diff --git a/node_modules/@aws-crypto/util/build/numToUint8.d.ts b/node_modules/@aws-crypto/util/build/numToUint8.d.ts deleted file mode 100644 index 5b702e8e..00000000 --- a/node_modules/@aws-crypto/util/build/numToUint8.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare function numToUint8(num: number): Uint8Array; diff --git a/node_modules/@aws-crypto/util/build/numToUint8.js b/node_modules/@aws-crypto/util/build/numToUint8.js deleted file mode 100644 index 2f070e10..00000000 --- a/node_modules/@aws-crypto/util/build/numToUint8.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. -// SPDX-License-Identifier: Apache-2.0 -Object.defineProperty(exports, "__esModule", { value: true }); -exports.numToUint8 = void 0; -function numToUint8(num) { - return new Uint8Array([ - (num & 0xff000000) >> 24, - (num & 0x00ff0000) >> 16, - (num & 0x0000ff00) >> 8, - num & 0x000000ff, - ]); -} -exports.numToUint8 = numToUint8; -//# sourceMappingURL=numToUint8.js.map \ No newline at end of file diff --git a/node_modules/@aws-crypto/util/build/numToUint8.js.map b/node_modules/@aws-crypto/util/build/numToUint8.js.map deleted file mode 100644 index 951886bd..00000000 --- a/node_modules/@aws-crypto/util/build/numToUint8.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"numToUint8.js","sourceRoot":"","sources":["../src/numToUint8.ts"],"names":[],"mappings":";AAAA,oEAAoE;AACpE,sCAAsC;;;AAEtC,SAAgB,UAAU,CAAC,GAAW;IACpC,OAAO,IAAI,UAAU,CAAC;QACpB,CAAC,GAAG,GAAG,UAAU,CAAC,IAAI,EAAE;QACxB,CAAC,GAAG,GAAG,UAAU,CAAC,IAAI,EAAE;QACxB,CAAC,GAAG,GAAG,UAAU,CAAC,IAAI,CAAC;QACvB,GAAG,GAAG,UAAU;KACjB,CAAC,CAAC;AACL,CAAC;AAPD,gCAOC"} \ No newline at end of file diff --git a/node_modules/@aws-crypto/util/build/uint32ArrayFrom.d.ts b/node_modules/@aws-crypto/util/build/uint32ArrayFrom.d.ts deleted file mode 100644 index fea66075..00000000 --- a/node_modules/@aws-crypto/util/build/uint32ArrayFrom.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare function uint32ArrayFrom(a_lookUpTable: Array): Uint32Array; diff --git a/node_modules/@aws-crypto/util/build/uint32ArrayFrom.js b/node_modules/@aws-crypto/util/build/uint32ArrayFrom.js deleted file mode 100644 index 226cdc3d..00000000 --- a/node_modules/@aws-crypto/util/build/uint32ArrayFrom.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; -// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. -// SPDX-License-Identifier: Apache-2.0 -Object.defineProperty(exports, "__esModule", { value: true }); -exports.uint32ArrayFrom = void 0; -// IE 11 does not support Array.from, so we do it manually -function uint32ArrayFrom(a_lookUpTable) { - if (!Uint32Array.from) { - var return_array = new Uint32Array(a_lookUpTable.length); - var a_index = 0; - while (a_index < a_lookUpTable.length) { - return_array[a_index] = a_lookUpTable[a_index]; - a_index += 1; - } - return return_array; - } - return Uint32Array.from(a_lookUpTable); -} -exports.uint32ArrayFrom = uint32ArrayFrom; -//# sourceMappingURL=uint32ArrayFrom.js.map \ No newline at end of file diff --git a/node_modules/@aws-crypto/util/build/uint32ArrayFrom.js.map b/node_modules/@aws-crypto/util/build/uint32ArrayFrom.js.map deleted file mode 100644 index 440ef697..00000000 --- a/node_modules/@aws-crypto/util/build/uint32ArrayFrom.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"uint32ArrayFrom.js","sourceRoot":"","sources":["../src/uint32ArrayFrom.ts"],"names":[],"mappings":";AAAA,oEAAoE;AACpE,sCAAsC;;;AAEtC,0DAA0D;AAC1D,SAAgB,eAAe,CAAC,aAA4B;IAC1D,IAAI,CAAC,WAAW,CAAC,IAAI,EAAE;QACrB,IAAM,YAAY,GAAG,IAAI,WAAW,CAAC,aAAa,CAAC,MAAM,CAAC,CAAA;QAC1D,IAAI,OAAO,GAAG,CAAC,CAAA;QACf,OAAO,OAAO,GAAG,aAAa,CAAC,MAAM,EAAE;YACrC,YAAY,CAAC,OAAO,CAAC,GAAG,aAAa,CAAC,OAAO,CAAC,CAAA;YAC9C,OAAO,IAAI,CAAC,CAAA;SACb;QACD,OAAO,YAAY,CAAA;KACpB;IACD,OAAO,WAAW,CAAC,IAAI,CAAC,aAAa,CAAC,CAAA;AACxC,CAAC;AAXD,0CAWC"} \ No newline at end of file diff --git a/node_modules/@aws-crypto/util/node_modules/tslib/CopyrightNotice.txt b/node_modules/@aws-crypto/util/node_modules/tslib/CopyrightNotice.txt deleted file mode 100644 index 3d4c8234..00000000 --- a/node_modules/@aws-crypto/util/node_modules/tslib/CopyrightNotice.txt +++ /dev/null @@ -1,15 +0,0 @@ -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */ - diff --git a/node_modules/@aws-crypto/util/node_modules/tslib/LICENSE.txt b/node_modules/@aws-crypto/util/node_modules/tslib/LICENSE.txt deleted file mode 100644 index bfe6430c..00000000 --- a/node_modules/@aws-crypto/util/node_modules/tslib/LICENSE.txt +++ /dev/null @@ -1,12 +0,0 @@ -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. \ No newline at end of file diff --git a/node_modules/@aws-crypto/util/node_modules/tslib/README.md b/node_modules/@aws-crypto/util/node_modules/tslib/README.md deleted file mode 100644 index a5b2692c..00000000 --- a/node_modules/@aws-crypto/util/node_modules/tslib/README.md +++ /dev/null @@ -1,142 +0,0 @@ -# tslib - -This is a runtime library for [TypeScript](http://www.typescriptlang.org/) that contains all of the TypeScript helper functions. - -This library is primarily used by the `--importHelpers` flag in TypeScript. -When using `--importHelpers`, a module that uses helper functions like `__extends` and `__assign` in the following emitted file: - -```ts -var __assign = (this && this.__assign) || Object.assign || function(t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) - t[p] = s[p]; - } - return t; -}; -exports.x = {}; -exports.y = __assign({}, exports.x); - -``` - -will instead be emitted as something like the following: - -```ts -var tslib_1 = require("tslib"); -exports.x = {}; -exports.y = tslib_1.__assign({}, exports.x); -``` - -Because this can avoid duplicate declarations of things like `__extends`, `__assign`, etc., this means delivering users smaller files on average, as well as less runtime overhead. -For optimized bundles with TypeScript, you should absolutely consider using `tslib` and `--importHelpers`. - -# Installing - -For the latest stable version, run: - -## npm - -```sh -# TypeScript 2.3.3 or later -npm install tslib - -# TypeScript 2.3.2 or earlier -npm install tslib@1.6.1 -``` - -## yarn - -```sh -# TypeScript 2.3.3 or later -yarn add tslib - -# TypeScript 2.3.2 or earlier -yarn add tslib@1.6.1 -``` - -## bower - -```sh -# TypeScript 2.3.3 or later -bower install tslib - -# TypeScript 2.3.2 or earlier -bower install tslib@1.6.1 -``` - -## JSPM - -```sh -# TypeScript 2.3.3 or later -jspm install tslib - -# TypeScript 2.3.2 or earlier -jspm install tslib@1.6.1 -``` - -# Usage - -Set the `importHelpers` compiler option on the command line: - -``` -tsc --importHelpers file.ts -``` - -or in your tsconfig.json: - -```json -{ - "compilerOptions": { - "importHelpers": true - } -} -``` - -#### For bower and JSPM users - -You will need to add a `paths` mapping for `tslib`, e.g. For Bower users: - -```json -{ - "compilerOptions": { - "module": "amd", - "importHelpers": true, - "baseUrl": "./", - "paths": { - "tslib" : ["bower_components/tslib/tslib.d.ts"] - } - } -} -``` - -For JSPM users: - -```json -{ - "compilerOptions": { - "module": "system", - "importHelpers": true, - "baseUrl": "./", - "paths": { - "tslib" : ["jspm_packages/npm/tslib@1.[version].0/tslib.d.ts"] - } - } -} -``` - - -# Contribute - -There are many ways to [contribute](https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md) to TypeScript. - -* [Submit bugs](https://github.com/Microsoft/TypeScript/issues) and help us verify fixes as they are checked in. -* Review the [source code changes](https://github.com/Microsoft/TypeScript/pulls). -* Engage with other TypeScript users and developers on [StackOverflow](http://stackoverflow.com/questions/tagged/typescript). -* Join the [#typescript](http://twitter.com/#!/search/realtime/%23typescript) discussion on Twitter. -* [Contribute bug fixes](https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md). - -# Documentation - -* [Quick tutorial](http://www.typescriptlang.org/Tutorial) -* [Programming handbook](http://www.typescriptlang.org/Handbook) -* [Homepage](http://www.typescriptlang.org/) diff --git a/node_modules/@aws-crypto/util/node_modules/tslib/modules/index.js b/node_modules/@aws-crypto/util/node_modules/tslib/modules/index.js deleted file mode 100644 index d241d042..00000000 --- a/node_modules/@aws-crypto/util/node_modules/tslib/modules/index.js +++ /dev/null @@ -1,51 +0,0 @@ -import tslib from '../tslib.js'; -const { - __extends, - __assign, - __rest, - __decorate, - __param, - __metadata, - __awaiter, - __generator, - __exportStar, - __createBinding, - __values, - __read, - __spread, - __spreadArrays, - __await, - __asyncGenerator, - __asyncDelegator, - __asyncValues, - __makeTemplateObject, - __importStar, - __importDefault, - __classPrivateFieldGet, - __classPrivateFieldSet, -} = tslib; -export { - __extends, - __assign, - __rest, - __decorate, - __param, - __metadata, - __awaiter, - __generator, - __exportStar, - __createBinding, - __values, - __read, - __spread, - __spreadArrays, - __await, - __asyncGenerator, - __asyncDelegator, - __asyncValues, - __makeTemplateObject, - __importStar, - __importDefault, - __classPrivateFieldGet, - __classPrivateFieldSet, -}; diff --git a/node_modules/@aws-crypto/util/node_modules/tslib/modules/package.json b/node_modules/@aws-crypto/util/node_modules/tslib/modules/package.json deleted file mode 100644 index aafa0e4b..00000000 --- a/node_modules/@aws-crypto/util/node_modules/tslib/modules/package.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "type": "module" -} \ No newline at end of file diff --git a/node_modules/@aws-crypto/util/node_modules/tslib/package.json b/node_modules/@aws-crypto/util/node_modules/tslib/package.json deleted file mode 100644 index f8c2a53d..00000000 --- a/node_modules/@aws-crypto/util/node_modules/tslib/package.json +++ /dev/null @@ -1,37 +0,0 @@ -{ - "name": "tslib", - "author": "Microsoft Corp.", - "homepage": "https://www.typescriptlang.org/", - "version": "1.14.1", - "license": "0BSD", - "description": "Runtime library for TypeScript helper functions", - "keywords": [ - "TypeScript", - "Microsoft", - "compiler", - "language", - "javascript", - "tslib", - "runtime" - ], - "bugs": { - "url": "https://github.com/Microsoft/TypeScript/issues" - }, - "repository": { - "type": "git", - "url": "https://github.com/Microsoft/tslib.git" - }, - "main": "tslib.js", - "module": "tslib.es6.js", - "jsnext:main": "tslib.es6.js", - "typings": "tslib.d.ts", - "sideEffects": false, - "exports": { - ".": { - "module": "./tslib.es6.js", - "import": "./modules/index.js", - "default": "./tslib.js" - }, - "./": "./" - } -} diff --git a/node_modules/@aws-crypto/util/node_modules/tslib/test/validateModuleExportsMatchCommonJS/index.js b/node_modules/@aws-crypto/util/node_modules/tslib/test/validateModuleExportsMatchCommonJS/index.js deleted file mode 100644 index 0c1b613d..00000000 --- a/node_modules/@aws-crypto/util/node_modules/tslib/test/validateModuleExportsMatchCommonJS/index.js +++ /dev/null @@ -1,23 +0,0 @@ -// When on node 14, it validates that all of the commonjs exports -// are correctly re-exported for es modules importers. - -const nodeMajor = Number(process.version.split(".")[0].slice(1)) -if (nodeMajor < 14) { - console.log("Skipping because node does not support module exports.") - process.exit(0) -} - -// ES Modules import via the ./modules folder -import * as esTSLib from "../../modules/index.js" - -// Force a commonjs resolve -import { createRequire } from "module"; -const commonJSTSLib = createRequire(import.meta.url)("../../tslib.js"); - -for (const key in commonJSTSLib) { - if (commonJSTSLib.hasOwnProperty(key)) { - if(!esTSLib[key]) throw new Error(`ESModules is missing ${key} - it needs to be re-exported in ./modules/index.js`) - } -} - -console.log("All exports in commonjs are available for es module consumers.") diff --git a/node_modules/@aws-crypto/util/node_modules/tslib/test/validateModuleExportsMatchCommonJS/package.json b/node_modules/@aws-crypto/util/node_modules/tslib/test/validateModuleExportsMatchCommonJS/package.json deleted file mode 100644 index 166e5095..00000000 --- a/node_modules/@aws-crypto/util/node_modules/tslib/test/validateModuleExportsMatchCommonJS/package.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "type": "module", - "scripts": { - "test": "node index.js" - } -} diff --git a/node_modules/@aws-crypto/util/node_modules/tslib/tslib.d.ts b/node_modules/@aws-crypto/util/node_modules/tslib/tslib.d.ts deleted file mode 100644 index 0756b28e..00000000 --- a/node_modules/@aws-crypto/util/node_modules/tslib/tslib.d.ts +++ /dev/null @@ -1,37 +0,0 @@ -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */ -export declare function __extends(d: Function, b: Function): void; -export declare function __assign(t: any, ...sources: any[]): any; -export declare function __rest(t: any, propertyNames: (string | symbol)[]): any; -export declare function __decorate(decorators: Function[], target: any, key?: string | symbol, desc?: any): any; -export declare function __param(paramIndex: number, decorator: Function): Function; -export declare function __metadata(metadataKey: any, metadataValue: any): Function; -export declare function __awaiter(thisArg: any, _arguments: any, P: Function, generator: Function): any; -export declare function __generator(thisArg: any, body: Function): any; -export declare function __exportStar(m: any, exports: any): void; -export declare function __values(o: any): any; -export declare function __read(o: any, n?: number): any[]; -export declare function __spread(...args: any[][]): any[]; -export declare function __spreadArrays(...args: any[][]): any[]; -export declare function __await(v: any): any; -export declare function __asyncGenerator(thisArg: any, _arguments: any, generator: Function): any; -export declare function __asyncDelegator(o: any): any; -export declare function __asyncValues(o: any): any; -export declare function __makeTemplateObject(cooked: string[], raw: string[]): TemplateStringsArray; -export declare function __importStar(mod: T): T; -export declare function __importDefault(mod: T): T | { default: T }; -export declare function __classPrivateFieldGet(receiver: T, privateMap: { has(o: T): boolean, get(o: T): V | undefined }): V; -export declare function __classPrivateFieldSet(receiver: T, privateMap: { has(o: T): boolean, set(o: T, value: V): any }, value: V): V; -export declare function __createBinding(object: object, target: object, key: PropertyKey, objectKey?: PropertyKey): void; \ No newline at end of file diff --git a/node_modules/@aws-crypto/util/node_modules/tslib/tslib.es6.html b/node_modules/@aws-crypto/util/node_modules/tslib/tslib.es6.html deleted file mode 100644 index b122e41b..00000000 --- a/node_modules/@aws-crypto/util/node_modules/tslib/tslib.es6.html +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/node_modules/@aws-crypto/util/node_modules/tslib/tslib.es6.js b/node_modules/@aws-crypto/util/node_modules/tslib/tslib.es6.js deleted file mode 100644 index 0e0d8d07..00000000 --- a/node_modules/@aws-crypto/util/node_modules/tslib/tslib.es6.js +++ /dev/null @@ -1,218 +0,0 @@ -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */ -/* global Reflect, Promise */ - -var extendStatics = function(d, b) { - extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; - return extendStatics(d, b); -}; - -export function __extends(d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); -} - -export var __assign = function() { - __assign = Object.assign || function __assign(t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; - } - return t; - } - return __assign.apply(this, arguments); -} - -export function __rest(s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; -} - -export function __decorate(decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; -} - -export function __param(paramIndex, decorator) { - return function (target, key) { decorator(target, key, paramIndex); } -} - -export function __metadata(metadataKey, metadataValue) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue); -} - -export function __awaiter(thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); -} - -export function __generator(thisArg, body) { - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; - return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; - function verb(n) { return function (v) { return step([n, v]); }; } - function step(op) { - if (f) throw new TypeError("Generator is already executing."); - while (_) try { - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [op[0] & 2, t.value]; - switch (op[0]) { - case 0: case 1: t = op; break; - case 4: _.label++; return { value: op[1], done: false }; - case 5: _.label++; y = op[1]; op = [0]; continue; - case 7: op = _.ops.pop(); _.trys.pop(); continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } - if (t[2]) _.ops.pop(); - _.trys.pop(); continue; - } - op = body.call(thisArg, _); - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; - } -} - -export function __createBinding(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; -} - -export function __exportStar(m, exports) { - for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) exports[p] = m[p]; -} - -export function __values(o) { - var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; - if (m) return m.call(o); - if (o && typeof o.length === "number") return { - next: function () { - if (o && i >= o.length) o = void 0; - return { value: o && o[i++], done: !o }; - } - }; - throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); -} - -export function __read(o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; -} - -export function __spread() { - for (var ar = [], i = 0; i < arguments.length; i++) - ar = ar.concat(__read(arguments[i])); - return ar; -} - -export function __spreadArrays() { - for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; - for (var r = Array(s), k = 0, i = 0; i < il; i++) - for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) - r[k] = a[j]; - return r; -}; - -export function __await(v) { - return this instanceof __await ? (this.v = v, this) : new __await(v); -} - -export function __asyncGenerator(thisArg, _arguments, generator) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } - function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } - function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } - function fulfill(value) { resume("next", value); } - function reject(value) { resume("throw", value); } - function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } -} - -export function __asyncDelegator(o) { - var i, p; - return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; - function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; } -} - -export function __asyncValues(o) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var m = o[Symbol.asyncIterator], i; - return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); - function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } - function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } -} - -export function __makeTemplateObject(cooked, raw) { - if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } - return cooked; -}; - -export function __importStar(mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; - result.default = mod; - return result; -} - -export function __importDefault(mod) { - return (mod && mod.__esModule) ? mod : { default: mod }; -} - -export function __classPrivateFieldGet(receiver, privateMap) { - if (!privateMap.has(receiver)) { - throw new TypeError("attempted to get private field on non-instance"); - } - return privateMap.get(receiver); -} - -export function __classPrivateFieldSet(receiver, privateMap, value) { - if (!privateMap.has(receiver)) { - throw new TypeError("attempted to set private field on non-instance"); - } - privateMap.set(receiver, value); - return value; -} diff --git a/node_modules/@aws-crypto/util/node_modules/tslib/tslib.html b/node_modules/@aws-crypto/util/node_modules/tslib/tslib.html deleted file mode 100644 index 44c9ba51..00000000 --- a/node_modules/@aws-crypto/util/node_modules/tslib/tslib.html +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/node_modules/@aws-crypto/util/node_modules/tslib/tslib.js b/node_modules/@aws-crypto/util/node_modules/tslib/tslib.js deleted file mode 100644 index e5b7c9b8..00000000 --- a/node_modules/@aws-crypto/util/node_modules/tslib/tslib.js +++ /dev/null @@ -1,284 +0,0 @@ -/*! ***************************************************************************** -Copyright (c) Microsoft Corporation. - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR -OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. -***************************************************************************** */ - -/* global global, define, System, Reflect, Promise */ -var __extends; -var __assign; -var __rest; -var __decorate; -var __param; -var __metadata; -var __awaiter; -var __generator; -var __exportStar; -var __values; -var __read; -var __spread; -var __spreadArrays; -var __await; -var __asyncGenerator; -var __asyncDelegator; -var __asyncValues; -var __makeTemplateObject; -var __importStar; -var __importDefault; -var __classPrivateFieldGet; -var __classPrivateFieldSet; -var __createBinding; -(function (factory) { - var root = typeof global === "object" ? global : typeof self === "object" ? self : typeof this === "object" ? this : {}; - if (typeof define === "function" && define.amd) { - define("tslib", ["exports"], function (exports) { factory(createExporter(root, createExporter(exports))); }); - } - else if (typeof module === "object" && typeof module.exports === "object") { - factory(createExporter(root, createExporter(module.exports))); - } - else { - factory(createExporter(root)); - } - function createExporter(exports, previous) { - if (exports !== root) { - if (typeof Object.create === "function") { - Object.defineProperty(exports, "__esModule", { value: true }); - } - else { - exports.__esModule = true; - } - } - return function (id, v) { return exports[id] = previous ? previous(id, v) : v; }; - } -}) -(function (exporter) { - var extendStatics = Object.setPrototypeOf || - ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) || - function (d, b) { for (var p in b) if (b.hasOwnProperty(p)) d[p] = b[p]; }; - - __extends = function (d, b) { - extendStatics(d, b); - function __() { this.constructor = d; } - d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __()); - }; - - __assign = Object.assign || function (t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p]; - } - return t; - }; - - __rest = function (s, e) { - var t = {}; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) - t[p] = s[p]; - if (s != null && typeof Object.getOwnPropertySymbols === "function") - for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) { - if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) - t[p[i]] = s[p[i]]; - } - return t; - }; - - __decorate = function (decorators, target, key, desc) { - var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d; - if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc); - else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r; - return c > 3 && r && Object.defineProperty(target, key, r), r; - }; - - __param = function (paramIndex, decorator) { - return function (target, key) { decorator(target, key, paramIndex); } - }; - - __metadata = function (metadataKey, metadataValue) { - if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue); - }; - - __awaiter = function (thisArg, _arguments, P, generator) { - function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); } - return new (P || (P = Promise))(function (resolve, reject) { - function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } } - function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } } - function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); } - step((generator = generator.apply(thisArg, _arguments || [])).next()); - }); - }; - - __generator = function (thisArg, body) { - var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g; - return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g; - function verb(n) { return function (v) { return step([n, v]); }; } - function step(op) { - if (f) throw new TypeError("Generator is already executing."); - while (_) try { - if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t; - if (y = 0, t) op = [op[0] & 2, t.value]; - switch (op[0]) { - case 0: case 1: t = op; break; - case 4: _.label++; return { value: op[1], done: false }; - case 5: _.label++; y = op[1]; op = [0]; continue; - case 7: op = _.ops.pop(); _.trys.pop(); continue; - default: - if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; } - if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; } - if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; } - if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; } - if (t[2]) _.ops.pop(); - _.trys.pop(); continue; - } - op = body.call(thisArg, _); - } catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; } - if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true }; - } - }; - - __createBinding = function(o, m, k, k2) { - if (k2 === undefined) k2 = k; - o[k2] = m[k]; - }; - - __exportStar = function (m, exports) { - for (var p in m) if (p !== "default" && !exports.hasOwnProperty(p)) exports[p] = m[p]; - }; - - __values = function (o) { - var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0; - if (m) return m.call(o); - if (o && typeof o.length === "number") return { - next: function () { - if (o && i >= o.length) o = void 0; - return { value: o && o[i++], done: !o }; - } - }; - throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined."); - }; - - __read = function (o, n) { - var m = typeof Symbol === "function" && o[Symbol.iterator]; - if (!m) return o; - var i = m.call(o), r, ar = [], e; - try { - while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value); - } - catch (error) { e = { error: error }; } - finally { - try { - if (r && !r.done && (m = i["return"])) m.call(i); - } - finally { if (e) throw e.error; } - } - return ar; - }; - - __spread = function () { - for (var ar = [], i = 0; i < arguments.length; i++) - ar = ar.concat(__read(arguments[i])); - return ar; - }; - - __spreadArrays = function () { - for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length; - for (var r = Array(s), k = 0, i = 0; i < il; i++) - for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++) - r[k] = a[j]; - return r; - }; - - __await = function (v) { - return this instanceof __await ? (this.v = v, this) : new __await(v); - }; - - __asyncGenerator = function (thisArg, _arguments, generator) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var g = generator.apply(thisArg, _arguments || []), i, q = []; - return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i; - function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; } - function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } } - function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); } - function fulfill(value) { resume("next", value); } - function reject(value) { resume("throw", value); } - function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); } - }; - - __asyncDelegator = function (o) { - var i, p; - return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i; - function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; } - }; - - __asyncValues = function (o) { - if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined."); - var m = o[Symbol.asyncIterator], i; - return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i); - function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; } - function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); } - }; - - __makeTemplateObject = function (cooked, raw) { - if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; } - return cooked; - }; - - __importStar = function (mod) { - if (mod && mod.__esModule) return mod; - var result = {}; - if (mod != null) for (var k in mod) if (Object.hasOwnProperty.call(mod, k)) result[k] = mod[k]; - result["default"] = mod; - return result; - }; - - __importDefault = function (mod) { - return (mod && mod.__esModule) ? mod : { "default": mod }; - }; - - __classPrivateFieldGet = function (receiver, privateMap) { - if (!privateMap.has(receiver)) { - throw new TypeError("attempted to get private field on non-instance"); - } - return privateMap.get(receiver); - }; - - __classPrivateFieldSet = function (receiver, privateMap, value) { - if (!privateMap.has(receiver)) { - throw new TypeError("attempted to set private field on non-instance"); - } - privateMap.set(receiver, value); - return value; - }; - - exporter("__extends", __extends); - exporter("__assign", __assign); - exporter("__rest", __rest); - exporter("__decorate", __decorate); - exporter("__param", __param); - exporter("__metadata", __metadata); - exporter("__awaiter", __awaiter); - exporter("__generator", __generator); - exporter("__exportStar", __exportStar); - exporter("__createBinding", __createBinding); - exporter("__values", __values); - exporter("__read", __read); - exporter("__spread", __spread); - exporter("__spreadArrays", __spreadArrays); - exporter("__await", __await); - exporter("__asyncGenerator", __asyncGenerator); - exporter("__asyncDelegator", __asyncDelegator); - exporter("__asyncValues", __asyncValues); - exporter("__makeTemplateObject", __makeTemplateObject); - exporter("__importStar", __importStar); - exporter("__importDefault", __importDefault); - exporter("__classPrivateFieldGet", __classPrivateFieldGet); - exporter("__classPrivateFieldSet", __classPrivateFieldSet); -}); diff --git a/node_modules/@aws-crypto/util/package.json b/node_modules/@aws-crypto/util/package.json deleted file mode 100644 index 24dfd3a5..00000000 --- a/node_modules/@aws-crypto/util/package.json +++ /dev/null @@ -1,31 +0,0 @@ -{ - "name": "@aws-crypto/util", - "version": "3.0.0", - "scripts": { - "prepublishOnly": "tsc", - "pretest": "tsc -p tsconfig.test.json", - "test": "mocha --require ts-node/register test/**/*test.ts" - }, - "main": "./build/index.js", - "types": "./build/index.d.ts", - "repository": { - "type": "git", - "url": "git@github.com:aws/aws-sdk-js-crypto-helpers.git" - }, - "author": { - "name": "AWS Crypto Tools Team", - "email": "aws-cryptools@amazon.com", - "url": "https://docs.aws.amazon.com/aws-crypto-tools/index.html?id=docs_gateway#lang/en_us" - }, - "homepage": "https://github.com/aws/aws-sdk-js-crypto-helpers/tree/master/packages/util", - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "^3.222.0", - "@aws-sdk/util-utf8-browser": "^3.0.0", - "tslib": "^1.11.1" - }, - "publishConfig": { - "access": "public" - }, - "gitHead": "7f56cee8f62bd65cd397eeec29c3c997215bd80c" -} diff --git a/node_modules/@aws-crypto/util/src/convertToBuffer.ts b/node_modules/@aws-crypto/util/src/convertToBuffer.ts deleted file mode 100644 index 3cda0fce..00000000 --- a/node_modules/@aws-crypto/util/src/convertToBuffer.ts +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. -// SPDX-License-Identifier: Apache-2.0 - -import { SourceData } from "@aws-sdk/types"; -import { fromUtf8 as fromUtf8Browser } from "@aws-sdk/util-utf8-browser"; - -// Quick polyfill -const fromUtf8 = - typeof Buffer !== "undefined" && Buffer.from - ? (input: string) => Buffer.from(input, "utf8") - : fromUtf8Browser; - -export function convertToBuffer(data: SourceData): Uint8Array { - // Already a Uint8, do nothing - if (data instanceof Uint8Array) return data; - - if (typeof data === "string") { - return fromUtf8(data); - } - - if (ArrayBuffer.isView(data)) { - return new Uint8Array( - data.buffer, - data.byteOffset, - data.byteLength / Uint8Array.BYTES_PER_ELEMENT - ); - } - - return new Uint8Array(data); -} diff --git a/node_modules/@aws-crypto/util/src/index.ts b/node_modules/@aws-crypto/util/src/index.ts deleted file mode 100644 index 2f6c62a7..00000000 --- a/node_modules/@aws-crypto/util/src/index.ts +++ /dev/null @@ -1,7 +0,0 @@ -// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. -// SPDX-License-Identifier: Apache-2.0 - -export { convertToBuffer } from "./convertToBuffer"; -export { isEmptyData } from "./isEmptyData"; -export { numToUint8 } from "./numToUint8"; -export {uint32ArrayFrom} from './uint32ArrayFrom'; diff --git a/node_modules/@aws-crypto/util/src/isEmptyData.ts b/node_modules/@aws-crypto/util/src/isEmptyData.ts deleted file mode 100644 index 089764de..00000000 --- a/node_modules/@aws-crypto/util/src/isEmptyData.ts +++ /dev/null @@ -1,12 +0,0 @@ -// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. -// SPDX-License-Identifier: Apache-2.0 - -import { SourceData } from "@aws-sdk/types"; - -export function isEmptyData(data: SourceData): boolean { - if (typeof data === "string") { - return data.length === 0; - } - - return data.byteLength === 0; -} diff --git a/node_modules/@aws-crypto/util/src/numToUint8.ts b/node_modules/@aws-crypto/util/src/numToUint8.ts deleted file mode 100644 index 2f40aceb..00000000 --- a/node_modules/@aws-crypto/util/src/numToUint8.ts +++ /dev/null @@ -1,11 +0,0 @@ -// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. -// SPDX-License-Identifier: Apache-2.0 - -export function numToUint8(num: number) { - return new Uint8Array([ - (num & 0xff000000) >> 24, - (num & 0x00ff0000) >> 16, - (num & 0x0000ff00) >> 8, - num & 0x000000ff, - ]); -} diff --git a/node_modules/@aws-crypto/util/src/uint32ArrayFrom.ts b/node_modules/@aws-crypto/util/src/uint32ArrayFrom.ts deleted file mode 100644 index b9b6d887..00000000 --- a/node_modules/@aws-crypto/util/src/uint32ArrayFrom.ts +++ /dev/null @@ -1,16 +0,0 @@ -// Copyright Amazon.com Inc. or its affiliates. All Rights Reserved. -// SPDX-License-Identifier: Apache-2.0 - -// IE 11 does not support Array.from, so we do it manually -export function uint32ArrayFrom(a_lookUpTable: Array): Uint32Array { - if (!Uint32Array.from) { - const return_array = new Uint32Array(a_lookUpTable.length) - let a_index = 0 - while (a_index < a_lookUpTable.length) { - return_array[a_index] = a_lookUpTable[a_index] - a_index += 1 - } - return return_array - } - return Uint32Array.from(a_lookUpTable) -} diff --git a/node_modules/@aws-crypto/util/tsconfig.json b/node_modules/@aws-crypto/util/tsconfig.json deleted file mode 100644 index 1691089a..00000000 --- a/node_modules/@aws-crypto/util/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "target": "es5", - "module": "commonjs", - "declaration": true, - "strict": true, - "sourceMap": true, - "downlevelIteration": true, - "importHelpers": true, - "noEmitHelpers": true, - "lib": [ - "es5", - "es2015.promise", - "es2015.collection", - "es2015.iterable", - "es2015.symbol.wellknown" - ], - "rootDir": "./src", - "outDir": "./build" - }, - "include": ["src/**/*.ts"], - "exclude": ["node_modules/**"] -} diff --git a/node_modules/@aws-sdk/client-ssm/LICENSE b/node_modules/@aws-sdk/client-ssm/LICENSE deleted file mode 100644 index dd65ae06..00000000 --- a/node_modules/@aws-sdk/client-ssm/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/node_modules/@aws-sdk/client-ssm/README.md b/node_modules/@aws-sdk/client-ssm/README.md deleted file mode 100644 index 504c5881..00000000 --- a/node_modules/@aws-sdk/client-ssm/README.md +++ /dev/null @@ -1,1352 +0,0 @@ - - -# @aws-sdk/client-ssm - -## Description - -AWS SDK for JavaScript SSM Client for Node.js, Browser and React Native. - -

Amazon Web Services Systems Manager is the operations hub for your Amazon Web Services applications and resources and a secure -end-to-end management solution for hybrid cloud environments that enables safe and secure -operations at scale.

-

This reference is intended to be used with the Amazon Web Services Systems Manager User Guide. To get started, see Setting up Amazon Web Services Systems Manager.

-

-Related resources -

- - -## Installing - -To install the this package, simply type add or install @aws-sdk/client-ssm -using your favorite package manager: - -- `npm install @aws-sdk/client-ssm` -- `yarn add @aws-sdk/client-ssm` -- `pnpm add @aws-sdk/client-ssm` - -## Getting Started - -### Import - -The AWS SDK is modulized by clients and commands. -To send a request, you only need to import the `SSMClient` and -the commands you need, for example `ListAssociationsCommand`: - -```js -// ES5 example -const { SSMClient, ListAssociationsCommand } = require("@aws-sdk/client-ssm"); -``` - -```ts -// ES6+ example -import { SSMClient, ListAssociationsCommand } from "@aws-sdk/client-ssm"; -``` - -### Usage - -To send a request, you: - -- Initiate client with configuration (e.g. credentials, region). -- Initiate command with input parameters. -- Call `send` operation on client with command object as input. -- If you are using a custom http handler, you may call `destroy()` to close open connections. - -```js -// a client can be shared by different commands. -const client = new SSMClient({ region: "REGION" }); - -const params = { - /** input parameters */ -}; -const command = new ListAssociationsCommand(params); -``` - -#### Async/await - -We recommend using [await](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/await) -operator to wait for the promise returned by send operation as follows: - -```js -// async/await. -try { - const data = await client.send(command); - // process data. -} catch (error) { - // error handling. -} finally { - // finally. -} -``` - -Async-await is clean, concise, intuitive, easy to debug and has better error handling -as compared to using Promise chains or callbacks. - -#### Promises - -You can also use [Promise chaining](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises#chaining) -to execute send operation. - -```js -client.send(command).then( - (data) => { - // process data. - }, - (error) => { - // error handling. - } -); -``` - -Promises can also be called using `.catch()` and `.finally()` as follows: - -```js -client - .send(command) - .then((data) => { - // process data. - }) - .catch((error) => { - // error handling. - }) - .finally(() => { - // finally. - }); -``` - -#### Callbacks - -We do not recommend using callbacks because of [callback hell](http://callbackhell.com/), -but they are supported by the send operation. - -```js -// callbacks. -client.send(command, (err, data) => { - // process err and data. -}); -``` - -#### v2 compatible style - -The client can also send requests using v2 compatible style. -However, it results in a bigger bundle size and may be dropped in next major version. More details in the blog post -on [modular packages in AWS SDK for JavaScript](https://aws.amazon.com/blogs/developer/modular-packages-in-aws-sdk-for-javascript/) - -```ts -import * as AWS from "@aws-sdk/client-ssm"; -const client = new AWS.SSM({ region: "REGION" }); - -// async/await. -try { - const data = await client.listAssociations(params); - // process data. -} catch (error) { - // error handling. -} - -// Promises. -client - .listAssociations(params) - .then((data) => { - // process data. - }) - .catch((error) => { - // error handling. - }); - -// callbacks. -client.listAssociations(params, (err, data) => { - // process err and data. -}); -``` - -### Troubleshooting - -When the service returns an exception, the error will include the exception information, -as well as response metadata (e.g. request id). - -```js -try { - const data = await client.send(command); - // process data. -} catch (error) { - const { requestId, cfId, extendedRequestId } = error.$metadata; - console.log({ requestId, cfId, extendedRequestId }); - /** - * The keys within exceptions are also parsed. - * You can access them by specifying exception names: - * if (error.name === 'SomeServiceException') { - * const value = error.specialKeyInException; - * } - */ -} -``` - -## Getting Help - -Please use these community resources for getting help. -We use the GitHub issues for tracking bugs and feature requests, but have limited bandwidth to address them. - -- Visit [Developer Guide](https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/welcome.html) - or [API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/index.html). -- Check out the blog posts tagged with [`aws-sdk-js`](https://aws.amazon.com/blogs/developer/tag/aws-sdk-js/) - on AWS Developer Blog. -- Ask a question on [StackOverflow](https://stackoverflow.com/questions/tagged/aws-sdk-js) and tag it with `aws-sdk-js`. -- Join the AWS JavaScript community on [gitter](https://gitter.im/aws/aws-sdk-js-v3). -- If it turns out that you may have found a bug, please [open an issue](https://github.com/aws/aws-sdk-js-v3/issues/new/choose). - -To test your universal JavaScript code in Node.js, browser and react-native environments, -visit our [code samples repo](https://github.com/aws-samples/aws-sdk-js-tests). - -## Contributing - -This client code is generated automatically. Any modifications will be overwritten the next time the `@aws-sdk/client-ssm` package is updated. -To contribute to client you can check our [generate clients scripts](https://github.com/aws/aws-sdk-js-v3/tree/main/scripts/generate-clients). - -## License - -This SDK is distributed under the -[Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0), -see LICENSE for more information. - -## Client Commands (Operations List) - -
- -AddTagsToResource - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/addtagstoresourcecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/addtagstoresourcecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/addtagstoresourcecommandoutput.html) - -
-
- -AssociateOpsItemRelatedItem - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/associateopsitemrelateditemcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/associateopsitemrelateditemcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/associateopsitemrelateditemcommandoutput.html) - -
-
- -CancelCommand - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/cancelcommandcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/cancelcommandcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/cancelcommandcommandoutput.html) - -
-
- -CancelMaintenanceWindowExecution - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/cancelmaintenancewindowexecutioncommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/cancelmaintenancewindowexecutioncommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/cancelmaintenancewindowexecutioncommandoutput.html) - -
-
- -CreateActivation - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/createactivationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/createactivationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/createactivationcommandoutput.html) - -
-
- -CreateAssociation - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/createassociationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/createassociationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/createassociationcommandoutput.html) - -
-
- -CreateAssociationBatch - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/createassociationbatchcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/createassociationbatchcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/createassociationbatchcommandoutput.html) - -
-
- -CreateDocument - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/createdocumentcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/createdocumentcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/createdocumentcommandoutput.html) - -
-
- -CreateMaintenanceWindow - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/createmaintenancewindowcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/createmaintenancewindowcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/createmaintenancewindowcommandoutput.html) - -
-
- -CreateOpsItem - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/createopsitemcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/createopsitemcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/createopsitemcommandoutput.html) - -
-
- -CreateOpsMetadata - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/createopsmetadatacommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/createopsmetadatacommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/createopsmetadatacommandoutput.html) - -
-
- -CreatePatchBaseline - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/createpatchbaselinecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/createpatchbaselinecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/createpatchbaselinecommandoutput.html) - -
-
- -CreateResourceDataSync - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/createresourcedatasynccommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/createresourcedatasynccommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/createresourcedatasynccommandoutput.html) - -
-
- -DeleteActivation - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/deleteactivationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/deleteactivationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/deleteactivationcommandoutput.html) - -
-
- -DeleteAssociation - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/deleteassociationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/deleteassociationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/deleteassociationcommandoutput.html) - -
-
- -DeleteDocument - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/deletedocumentcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/deletedocumentcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/deletedocumentcommandoutput.html) - -
-
- -DeleteInventory - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/deleteinventorycommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/deleteinventorycommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/deleteinventorycommandoutput.html) - -
-
- -DeleteMaintenanceWindow - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/deletemaintenancewindowcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/deletemaintenancewindowcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/deletemaintenancewindowcommandoutput.html) - -
-
- -DeleteOpsItem - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/deleteopsitemcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/deleteopsitemcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/deleteopsitemcommandoutput.html) - -
-
- -DeleteOpsMetadata - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/deleteopsmetadatacommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/deleteopsmetadatacommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/deleteopsmetadatacommandoutput.html) - -
-
- -DeleteParameter - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/deleteparametercommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/deleteparametercommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/deleteparametercommandoutput.html) - -
-
- -DeleteParameters - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/deleteparameterscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/deleteparameterscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/deleteparameterscommandoutput.html) - -
-
- -DeletePatchBaseline - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/deletepatchbaselinecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/deletepatchbaselinecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/deletepatchbaselinecommandoutput.html) - -
-
- -DeleteResourceDataSync - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/deleteresourcedatasynccommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/deleteresourcedatasynccommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/deleteresourcedatasynccommandoutput.html) - -
-
- -DeleteResourcePolicy - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/deleteresourcepolicycommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/deleteresourcepolicycommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/deleteresourcepolicycommandoutput.html) - -
-
- -DeregisterManagedInstance - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/deregistermanagedinstancecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/deregistermanagedinstancecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/deregistermanagedinstancecommandoutput.html) - -
-
- -DeregisterPatchBaselineForPatchGroup - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/deregisterpatchbaselineforpatchgroupcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/deregisterpatchbaselineforpatchgroupcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/deregisterpatchbaselineforpatchgroupcommandoutput.html) - -
-
- -DeregisterTargetFromMaintenanceWindow - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/deregistertargetfrommaintenancewindowcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/deregistertargetfrommaintenancewindowcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/deregistertargetfrommaintenancewindowcommandoutput.html) - -
-
- -DeregisterTaskFromMaintenanceWindow - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/deregistertaskfrommaintenancewindowcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/deregistertaskfrommaintenancewindowcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/deregistertaskfrommaintenancewindowcommandoutput.html) - -
-
- -DescribeActivations - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/describeactivationscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/describeactivationscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/describeactivationscommandoutput.html) - -
-
- -DescribeAssociation - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/describeassociationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/describeassociationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/describeassociationcommandoutput.html) - -
-
- -DescribeAssociationExecutions - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/describeassociationexecutionscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/describeassociationexecutionscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/describeassociationexecutionscommandoutput.html) - -
-
- -DescribeAssociationExecutionTargets - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/describeassociationexecutiontargetscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/describeassociationexecutiontargetscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/describeassociationexecutiontargetscommandoutput.html) - -
-
- -DescribeAutomationExecutions - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/describeautomationexecutionscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/describeautomationexecutionscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/describeautomationexecutionscommandoutput.html) - -
-
- -DescribeAutomationStepExecutions - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/describeautomationstepexecutionscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/describeautomationstepexecutionscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/describeautomationstepexecutionscommandoutput.html) - -
-
- -DescribeAvailablePatches - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/describeavailablepatchescommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/describeavailablepatchescommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/describeavailablepatchescommandoutput.html) - -
-
- -DescribeDocument - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/describedocumentcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/describedocumentcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/describedocumentcommandoutput.html) - -
-
- -DescribeDocumentPermission - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/describedocumentpermissioncommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/describedocumentpermissioncommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/describedocumentpermissioncommandoutput.html) - -
-
- -DescribeEffectiveInstanceAssociations - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/describeeffectiveinstanceassociationscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/describeeffectiveinstanceassociationscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/describeeffectiveinstanceassociationscommandoutput.html) - -
-
- -DescribeEffectivePatchesForPatchBaseline - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/describeeffectivepatchesforpatchbaselinecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/describeeffectivepatchesforpatchbaselinecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/describeeffectivepatchesforpatchbaselinecommandoutput.html) - -
-
- -DescribeInstanceAssociationsStatus - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/describeinstanceassociationsstatuscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/describeinstanceassociationsstatuscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/describeinstanceassociationsstatuscommandoutput.html) - -
-
- -DescribeInstanceInformation - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/describeinstanceinformationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/describeinstanceinformationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/describeinstanceinformationcommandoutput.html) - -
-
- -DescribeInstancePatches - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/describeinstancepatchescommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/describeinstancepatchescommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/describeinstancepatchescommandoutput.html) - -
-
- -DescribeInstancePatchStates - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/describeinstancepatchstatescommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/describeinstancepatchstatescommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/describeinstancepatchstatescommandoutput.html) - -
-
- -DescribeInstancePatchStatesForPatchGroup - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/describeinstancepatchstatesforpatchgroupcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/describeinstancepatchstatesforpatchgroupcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/describeinstancepatchstatesforpatchgroupcommandoutput.html) - -
-
- -DescribeInventoryDeletions - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/describeinventorydeletionscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/describeinventorydeletionscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/describeinventorydeletionscommandoutput.html) - -
-
- -DescribeMaintenanceWindowExecutions - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/describemaintenancewindowexecutionscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/describemaintenancewindowexecutionscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/describemaintenancewindowexecutionscommandoutput.html) - -
-
- -DescribeMaintenanceWindowExecutionTaskInvocations - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/describemaintenancewindowexecutiontaskinvocationscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/describemaintenancewindowexecutiontaskinvocationscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/describemaintenancewindowexecutiontaskinvocationscommandoutput.html) - -
-
- -DescribeMaintenanceWindowExecutionTasks - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/describemaintenancewindowexecutiontaskscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/describemaintenancewindowexecutiontaskscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/describemaintenancewindowexecutiontaskscommandoutput.html) - -
-
- -DescribeMaintenanceWindows - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/describemaintenancewindowscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/describemaintenancewindowscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/describemaintenancewindowscommandoutput.html) - -
-
- -DescribeMaintenanceWindowSchedule - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/describemaintenancewindowschedulecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/describemaintenancewindowschedulecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/describemaintenancewindowschedulecommandoutput.html) - -
-
- -DescribeMaintenanceWindowsForTarget - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/describemaintenancewindowsfortargetcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/describemaintenancewindowsfortargetcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/describemaintenancewindowsfortargetcommandoutput.html) - -
-
- -DescribeMaintenanceWindowTargets - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/describemaintenancewindowtargetscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/describemaintenancewindowtargetscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/describemaintenancewindowtargetscommandoutput.html) - -
-
- -DescribeMaintenanceWindowTasks - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/describemaintenancewindowtaskscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/describemaintenancewindowtaskscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/describemaintenancewindowtaskscommandoutput.html) - -
-
- -DescribeOpsItems - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/describeopsitemscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/describeopsitemscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/describeopsitemscommandoutput.html) - -
-
- -DescribeParameters - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/describeparameterscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/describeparameterscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/describeparameterscommandoutput.html) - -
-
- -DescribePatchBaselines - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/describepatchbaselinescommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/describepatchbaselinescommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/describepatchbaselinescommandoutput.html) - -
-
- -DescribePatchGroups - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/describepatchgroupscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/describepatchgroupscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/describepatchgroupscommandoutput.html) - -
-
- -DescribePatchGroupState - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/describepatchgroupstatecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/describepatchgroupstatecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/describepatchgroupstatecommandoutput.html) - -
-
- -DescribePatchProperties - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/describepatchpropertiescommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/describepatchpropertiescommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/describepatchpropertiescommandoutput.html) - -
-
- -DescribeSessions - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/describesessionscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/describesessionscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/describesessionscommandoutput.html) - -
-
- -DisassociateOpsItemRelatedItem - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/disassociateopsitemrelateditemcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/disassociateopsitemrelateditemcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/disassociateopsitemrelateditemcommandoutput.html) - -
-
- -GetAutomationExecution - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/getautomationexecutioncommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/getautomationexecutioncommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/getautomationexecutioncommandoutput.html) - -
-
- -GetCalendarState - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/getcalendarstatecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/getcalendarstatecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/getcalendarstatecommandoutput.html) - -
-
- -GetCommandInvocation - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/getcommandinvocationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/getcommandinvocationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/getcommandinvocationcommandoutput.html) - -
-
- -GetConnectionStatus - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/getconnectionstatuscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/getconnectionstatuscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/getconnectionstatuscommandoutput.html) - -
-
- -GetDefaultPatchBaseline - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/getdefaultpatchbaselinecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/getdefaultpatchbaselinecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/getdefaultpatchbaselinecommandoutput.html) - -
-
- -GetDeployablePatchSnapshotForInstance - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/getdeployablepatchsnapshotforinstancecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/getdeployablepatchsnapshotforinstancecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/getdeployablepatchsnapshotforinstancecommandoutput.html) - -
-
- -GetDocument - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/getdocumentcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/getdocumentcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/getdocumentcommandoutput.html) - -
-
- -GetInventory - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/getinventorycommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/getinventorycommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/getinventorycommandoutput.html) - -
-
- -GetInventorySchema - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/getinventoryschemacommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/getinventoryschemacommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/getinventoryschemacommandoutput.html) - -
-
- -GetMaintenanceWindow - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/getmaintenancewindowcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/getmaintenancewindowcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/getmaintenancewindowcommandoutput.html) - -
-
- -GetMaintenanceWindowExecution - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/getmaintenancewindowexecutioncommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/getmaintenancewindowexecutioncommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/getmaintenancewindowexecutioncommandoutput.html) - -
-
- -GetMaintenanceWindowExecutionTask - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/getmaintenancewindowexecutiontaskcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/getmaintenancewindowexecutiontaskcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/getmaintenancewindowexecutiontaskcommandoutput.html) - -
-
- -GetMaintenanceWindowExecutionTaskInvocation - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/getmaintenancewindowexecutiontaskinvocationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/getmaintenancewindowexecutiontaskinvocationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/getmaintenancewindowexecutiontaskinvocationcommandoutput.html) - -
-
- -GetMaintenanceWindowTask - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/getmaintenancewindowtaskcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/getmaintenancewindowtaskcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/getmaintenancewindowtaskcommandoutput.html) - -
-
- -GetOpsItem - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/getopsitemcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/getopsitemcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/getopsitemcommandoutput.html) - -
-
- -GetOpsMetadata - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/getopsmetadatacommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/getopsmetadatacommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/getopsmetadatacommandoutput.html) - -
-
- -GetOpsSummary - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/getopssummarycommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/getopssummarycommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/getopssummarycommandoutput.html) - -
-
- -GetParameter - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/getparametercommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/getparametercommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/getparametercommandoutput.html) - -
-
- -GetParameterHistory - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/getparameterhistorycommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/getparameterhistorycommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/getparameterhistorycommandoutput.html) - -
-
- -GetParameters - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/getparameterscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/getparameterscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/getparameterscommandoutput.html) - -
-
- -GetParametersByPath - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/getparametersbypathcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/getparametersbypathcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/getparametersbypathcommandoutput.html) - -
-
- -GetPatchBaseline - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/getpatchbaselinecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/getpatchbaselinecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/getpatchbaselinecommandoutput.html) - -
-
- -GetPatchBaselineForPatchGroup - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/getpatchbaselineforpatchgroupcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/getpatchbaselineforpatchgroupcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/getpatchbaselineforpatchgroupcommandoutput.html) - -
-
- -GetResourcePolicies - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/getresourcepoliciescommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/getresourcepoliciescommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/getresourcepoliciescommandoutput.html) - -
-
- -GetServiceSetting - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/getservicesettingcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/getservicesettingcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/getservicesettingcommandoutput.html) - -
-
- -LabelParameterVersion - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/labelparameterversioncommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/labelparameterversioncommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/labelparameterversioncommandoutput.html) - -
-
- -ListAssociations - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/listassociationscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/listassociationscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/listassociationscommandoutput.html) - -
-
- -ListAssociationVersions - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/listassociationversionscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/listassociationversionscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/listassociationversionscommandoutput.html) - -
-
- -ListCommandInvocations - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/listcommandinvocationscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/listcommandinvocationscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/listcommandinvocationscommandoutput.html) - -
-
- -ListCommands - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/listcommandscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/listcommandscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/listcommandscommandoutput.html) - -
-
- -ListComplianceItems - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/listcomplianceitemscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/listcomplianceitemscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/listcomplianceitemscommandoutput.html) - -
-
- -ListComplianceSummaries - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/listcompliancesummariescommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/listcompliancesummariescommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/listcompliancesummariescommandoutput.html) - -
-
- -ListDocumentMetadataHistory - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/listdocumentmetadatahistorycommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/listdocumentmetadatahistorycommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/listdocumentmetadatahistorycommandoutput.html) - -
-
- -ListDocuments - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/listdocumentscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/listdocumentscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/listdocumentscommandoutput.html) - -
-
- -ListDocumentVersions - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/listdocumentversionscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/listdocumentversionscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/listdocumentversionscommandoutput.html) - -
-
- -ListInventoryEntries - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/listinventoryentriescommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/listinventoryentriescommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/listinventoryentriescommandoutput.html) - -
-
- -ListOpsItemEvents - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/listopsitemeventscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/listopsitemeventscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/listopsitemeventscommandoutput.html) - -
-
- -ListOpsItemRelatedItems - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/listopsitemrelateditemscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/listopsitemrelateditemscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/listopsitemrelateditemscommandoutput.html) - -
-
- -ListOpsMetadata - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/listopsmetadatacommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/listopsmetadatacommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/listopsmetadatacommandoutput.html) - -
-
- -ListResourceComplianceSummaries - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/listresourcecompliancesummariescommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/listresourcecompliancesummariescommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/listresourcecompliancesummariescommandoutput.html) - -
-
- -ListResourceDataSync - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/listresourcedatasynccommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/listresourcedatasynccommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/listresourcedatasynccommandoutput.html) - -
-
- -ListTagsForResource - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/listtagsforresourcecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/listtagsforresourcecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/listtagsforresourcecommandoutput.html) - -
-
- -ModifyDocumentPermission - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/modifydocumentpermissioncommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/modifydocumentpermissioncommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/modifydocumentpermissioncommandoutput.html) - -
-
- -PutComplianceItems - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/putcomplianceitemscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/putcomplianceitemscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/putcomplianceitemscommandoutput.html) - -
-
- -PutInventory - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/putinventorycommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/putinventorycommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/putinventorycommandoutput.html) - -
-
- -PutParameter - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/putparametercommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/putparametercommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/putparametercommandoutput.html) - -
-
- -PutResourcePolicy - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/putresourcepolicycommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/putresourcepolicycommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/putresourcepolicycommandoutput.html) - -
-
- -RegisterDefaultPatchBaseline - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/registerdefaultpatchbaselinecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/registerdefaultpatchbaselinecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/registerdefaultpatchbaselinecommandoutput.html) - -
-
- -RegisterPatchBaselineForPatchGroup - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/registerpatchbaselineforpatchgroupcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/registerpatchbaselineforpatchgroupcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/registerpatchbaselineforpatchgroupcommandoutput.html) - -
-
- -RegisterTargetWithMaintenanceWindow - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/registertargetwithmaintenancewindowcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/registertargetwithmaintenancewindowcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/registertargetwithmaintenancewindowcommandoutput.html) - -
-
- -RegisterTaskWithMaintenanceWindow - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/registertaskwithmaintenancewindowcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/registertaskwithmaintenancewindowcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/registertaskwithmaintenancewindowcommandoutput.html) - -
-
- -RemoveTagsFromResource - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/removetagsfromresourcecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/removetagsfromresourcecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/removetagsfromresourcecommandoutput.html) - -
-
- -ResetServiceSetting - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/resetservicesettingcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/resetservicesettingcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/resetservicesettingcommandoutput.html) - -
-
- -ResumeSession - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/resumesessioncommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/resumesessioncommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/resumesessioncommandoutput.html) - -
-
- -SendAutomationSignal - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/sendautomationsignalcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/sendautomationsignalcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/sendautomationsignalcommandoutput.html) - -
-
- -SendCommand - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/sendcommandcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/sendcommandcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/sendcommandcommandoutput.html) - -
-
- -StartAssociationsOnce - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/startassociationsoncecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/startassociationsoncecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/startassociationsoncecommandoutput.html) - -
-
- -StartAutomationExecution - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/startautomationexecutioncommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/startautomationexecutioncommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/startautomationexecutioncommandoutput.html) - -
-
- -StartChangeRequestExecution - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/startchangerequestexecutioncommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/startchangerequestexecutioncommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/startchangerequestexecutioncommandoutput.html) - -
-
- -StartSession - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/startsessioncommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/startsessioncommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/startsessioncommandoutput.html) - -
-
- -StopAutomationExecution - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/stopautomationexecutioncommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/stopautomationexecutioncommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/stopautomationexecutioncommandoutput.html) - -
-
- -TerminateSession - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/terminatesessioncommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/terminatesessioncommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/terminatesessioncommandoutput.html) - -
-
- -UnlabelParameterVersion - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/unlabelparameterversioncommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/unlabelparameterversioncommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/unlabelparameterversioncommandoutput.html) - -
-
- -UpdateAssociation - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/updateassociationcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/updateassociationcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/updateassociationcommandoutput.html) - -
-
- -UpdateAssociationStatus - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/updateassociationstatuscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/updateassociationstatuscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/updateassociationstatuscommandoutput.html) - -
-
- -UpdateDocument - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/updatedocumentcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/updatedocumentcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/updatedocumentcommandoutput.html) - -
-
- -UpdateDocumentDefaultVersion - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/updatedocumentdefaultversioncommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/updatedocumentdefaultversioncommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/updatedocumentdefaultversioncommandoutput.html) - -
-
- -UpdateDocumentMetadata - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/updatedocumentmetadatacommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/updatedocumentmetadatacommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/updatedocumentmetadatacommandoutput.html) - -
-
- -UpdateMaintenanceWindow - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/updatemaintenancewindowcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/updatemaintenancewindowcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/updatemaintenancewindowcommandoutput.html) - -
-
- -UpdateMaintenanceWindowTarget - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/updatemaintenancewindowtargetcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/updatemaintenancewindowtargetcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/updatemaintenancewindowtargetcommandoutput.html) - -
-
- -UpdateMaintenanceWindowTask - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/updatemaintenancewindowtaskcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/updatemaintenancewindowtaskcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/updatemaintenancewindowtaskcommandoutput.html) - -
-
- -UpdateManagedInstanceRole - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/updatemanagedinstancerolecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/updatemanagedinstancerolecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/updatemanagedinstancerolecommandoutput.html) - -
-
- -UpdateOpsItem - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/updateopsitemcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/updateopsitemcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/updateopsitemcommandoutput.html) - -
-
- -UpdateOpsMetadata - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/updateopsmetadatacommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/updateopsmetadatacommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/updateopsmetadatacommandoutput.html) - -
-
- -UpdatePatchBaseline - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/updatepatchbaselinecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/updatepatchbaselinecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/updatepatchbaselinecommandoutput.html) - -
-
- -UpdateResourceDataSync - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/updateresourcedatasynccommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/updateresourcedatasynccommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/updateresourcedatasynccommandoutput.html) - -
-
- -UpdateServiceSetting - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/classes/updateservicesettingcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/updateservicesettingcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-ssm/interfaces/updateservicesettingcommandoutput.html) - -
diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/SSM.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/SSM.js deleted file mode 100644 index a48c3422..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/SSM.js +++ /dev/null @@ -1,289 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SSM = void 0; -const smithy_client_1 = require("@smithy/smithy-client"); -const AddTagsToResourceCommand_1 = require("./commands/AddTagsToResourceCommand"); -const AssociateOpsItemRelatedItemCommand_1 = require("./commands/AssociateOpsItemRelatedItemCommand"); -const CancelCommandCommand_1 = require("./commands/CancelCommandCommand"); -const CancelMaintenanceWindowExecutionCommand_1 = require("./commands/CancelMaintenanceWindowExecutionCommand"); -const CreateActivationCommand_1 = require("./commands/CreateActivationCommand"); -const CreateAssociationBatchCommand_1 = require("./commands/CreateAssociationBatchCommand"); -const CreateAssociationCommand_1 = require("./commands/CreateAssociationCommand"); -const CreateDocumentCommand_1 = require("./commands/CreateDocumentCommand"); -const CreateMaintenanceWindowCommand_1 = require("./commands/CreateMaintenanceWindowCommand"); -const CreateOpsItemCommand_1 = require("./commands/CreateOpsItemCommand"); -const CreateOpsMetadataCommand_1 = require("./commands/CreateOpsMetadataCommand"); -const CreatePatchBaselineCommand_1 = require("./commands/CreatePatchBaselineCommand"); -const CreateResourceDataSyncCommand_1 = require("./commands/CreateResourceDataSyncCommand"); -const DeleteActivationCommand_1 = require("./commands/DeleteActivationCommand"); -const DeleteAssociationCommand_1 = require("./commands/DeleteAssociationCommand"); -const DeleteDocumentCommand_1 = require("./commands/DeleteDocumentCommand"); -const DeleteInventoryCommand_1 = require("./commands/DeleteInventoryCommand"); -const DeleteMaintenanceWindowCommand_1 = require("./commands/DeleteMaintenanceWindowCommand"); -const DeleteOpsItemCommand_1 = require("./commands/DeleteOpsItemCommand"); -const DeleteOpsMetadataCommand_1 = require("./commands/DeleteOpsMetadataCommand"); -const DeleteParameterCommand_1 = require("./commands/DeleteParameterCommand"); -const DeleteParametersCommand_1 = require("./commands/DeleteParametersCommand"); -const DeletePatchBaselineCommand_1 = require("./commands/DeletePatchBaselineCommand"); -const DeleteResourceDataSyncCommand_1 = require("./commands/DeleteResourceDataSyncCommand"); -const DeleteResourcePolicyCommand_1 = require("./commands/DeleteResourcePolicyCommand"); -const DeregisterManagedInstanceCommand_1 = require("./commands/DeregisterManagedInstanceCommand"); -const DeregisterPatchBaselineForPatchGroupCommand_1 = require("./commands/DeregisterPatchBaselineForPatchGroupCommand"); -const DeregisterTargetFromMaintenanceWindowCommand_1 = require("./commands/DeregisterTargetFromMaintenanceWindowCommand"); -const DeregisterTaskFromMaintenanceWindowCommand_1 = require("./commands/DeregisterTaskFromMaintenanceWindowCommand"); -const DescribeActivationsCommand_1 = require("./commands/DescribeActivationsCommand"); -const DescribeAssociationCommand_1 = require("./commands/DescribeAssociationCommand"); -const DescribeAssociationExecutionsCommand_1 = require("./commands/DescribeAssociationExecutionsCommand"); -const DescribeAssociationExecutionTargetsCommand_1 = require("./commands/DescribeAssociationExecutionTargetsCommand"); -const DescribeAutomationExecutionsCommand_1 = require("./commands/DescribeAutomationExecutionsCommand"); -const DescribeAutomationStepExecutionsCommand_1 = require("./commands/DescribeAutomationStepExecutionsCommand"); -const DescribeAvailablePatchesCommand_1 = require("./commands/DescribeAvailablePatchesCommand"); -const DescribeDocumentCommand_1 = require("./commands/DescribeDocumentCommand"); -const DescribeDocumentPermissionCommand_1 = require("./commands/DescribeDocumentPermissionCommand"); -const DescribeEffectiveInstanceAssociationsCommand_1 = require("./commands/DescribeEffectiveInstanceAssociationsCommand"); -const DescribeEffectivePatchesForPatchBaselineCommand_1 = require("./commands/DescribeEffectivePatchesForPatchBaselineCommand"); -const DescribeInstanceAssociationsStatusCommand_1 = require("./commands/DescribeInstanceAssociationsStatusCommand"); -const DescribeInstanceInformationCommand_1 = require("./commands/DescribeInstanceInformationCommand"); -const DescribeInstancePatchesCommand_1 = require("./commands/DescribeInstancePatchesCommand"); -const DescribeInstancePatchStatesCommand_1 = require("./commands/DescribeInstancePatchStatesCommand"); -const DescribeInstancePatchStatesForPatchGroupCommand_1 = require("./commands/DescribeInstancePatchStatesForPatchGroupCommand"); -const DescribeInventoryDeletionsCommand_1 = require("./commands/DescribeInventoryDeletionsCommand"); -const DescribeMaintenanceWindowExecutionsCommand_1 = require("./commands/DescribeMaintenanceWindowExecutionsCommand"); -const DescribeMaintenanceWindowExecutionTaskInvocationsCommand_1 = require("./commands/DescribeMaintenanceWindowExecutionTaskInvocationsCommand"); -const DescribeMaintenanceWindowExecutionTasksCommand_1 = require("./commands/DescribeMaintenanceWindowExecutionTasksCommand"); -const DescribeMaintenanceWindowScheduleCommand_1 = require("./commands/DescribeMaintenanceWindowScheduleCommand"); -const DescribeMaintenanceWindowsCommand_1 = require("./commands/DescribeMaintenanceWindowsCommand"); -const DescribeMaintenanceWindowsForTargetCommand_1 = require("./commands/DescribeMaintenanceWindowsForTargetCommand"); -const DescribeMaintenanceWindowTargetsCommand_1 = require("./commands/DescribeMaintenanceWindowTargetsCommand"); -const DescribeMaintenanceWindowTasksCommand_1 = require("./commands/DescribeMaintenanceWindowTasksCommand"); -const DescribeOpsItemsCommand_1 = require("./commands/DescribeOpsItemsCommand"); -const DescribeParametersCommand_1 = require("./commands/DescribeParametersCommand"); -const DescribePatchBaselinesCommand_1 = require("./commands/DescribePatchBaselinesCommand"); -const DescribePatchGroupsCommand_1 = require("./commands/DescribePatchGroupsCommand"); -const DescribePatchGroupStateCommand_1 = require("./commands/DescribePatchGroupStateCommand"); -const DescribePatchPropertiesCommand_1 = require("./commands/DescribePatchPropertiesCommand"); -const DescribeSessionsCommand_1 = require("./commands/DescribeSessionsCommand"); -const DisassociateOpsItemRelatedItemCommand_1 = require("./commands/DisassociateOpsItemRelatedItemCommand"); -const GetAutomationExecutionCommand_1 = require("./commands/GetAutomationExecutionCommand"); -const GetCalendarStateCommand_1 = require("./commands/GetCalendarStateCommand"); -const GetCommandInvocationCommand_1 = require("./commands/GetCommandInvocationCommand"); -const GetConnectionStatusCommand_1 = require("./commands/GetConnectionStatusCommand"); -const GetDefaultPatchBaselineCommand_1 = require("./commands/GetDefaultPatchBaselineCommand"); -const GetDeployablePatchSnapshotForInstanceCommand_1 = require("./commands/GetDeployablePatchSnapshotForInstanceCommand"); -const GetDocumentCommand_1 = require("./commands/GetDocumentCommand"); -const GetInventoryCommand_1 = require("./commands/GetInventoryCommand"); -const GetInventorySchemaCommand_1 = require("./commands/GetInventorySchemaCommand"); -const GetMaintenanceWindowCommand_1 = require("./commands/GetMaintenanceWindowCommand"); -const GetMaintenanceWindowExecutionCommand_1 = require("./commands/GetMaintenanceWindowExecutionCommand"); -const GetMaintenanceWindowExecutionTaskCommand_1 = require("./commands/GetMaintenanceWindowExecutionTaskCommand"); -const GetMaintenanceWindowExecutionTaskInvocationCommand_1 = require("./commands/GetMaintenanceWindowExecutionTaskInvocationCommand"); -const GetMaintenanceWindowTaskCommand_1 = require("./commands/GetMaintenanceWindowTaskCommand"); -const GetOpsItemCommand_1 = require("./commands/GetOpsItemCommand"); -const GetOpsMetadataCommand_1 = require("./commands/GetOpsMetadataCommand"); -const GetOpsSummaryCommand_1 = require("./commands/GetOpsSummaryCommand"); -const GetParameterCommand_1 = require("./commands/GetParameterCommand"); -const GetParameterHistoryCommand_1 = require("./commands/GetParameterHistoryCommand"); -const GetParametersByPathCommand_1 = require("./commands/GetParametersByPathCommand"); -const GetParametersCommand_1 = require("./commands/GetParametersCommand"); -const GetPatchBaselineCommand_1 = require("./commands/GetPatchBaselineCommand"); -const GetPatchBaselineForPatchGroupCommand_1 = require("./commands/GetPatchBaselineForPatchGroupCommand"); -const GetResourcePoliciesCommand_1 = require("./commands/GetResourcePoliciesCommand"); -const GetServiceSettingCommand_1 = require("./commands/GetServiceSettingCommand"); -const LabelParameterVersionCommand_1 = require("./commands/LabelParameterVersionCommand"); -const ListAssociationsCommand_1 = require("./commands/ListAssociationsCommand"); -const ListAssociationVersionsCommand_1 = require("./commands/ListAssociationVersionsCommand"); -const ListCommandInvocationsCommand_1 = require("./commands/ListCommandInvocationsCommand"); -const ListCommandsCommand_1 = require("./commands/ListCommandsCommand"); -const ListComplianceItemsCommand_1 = require("./commands/ListComplianceItemsCommand"); -const ListComplianceSummariesCommand_1 = require("./commands/ListComplianceSummariesCommand"); -const ListDocumentMetadataHistoryCommand_1 = require("./commands/ListDocumentMetadataHistoryCommand"); -const ListDocumentsCommand_1 = require("./commands/ListDocumentsCommand"); -const ListDocumentVersionsCommand_1 = require("./commands/ListDocumentVersionsCommand"); -const ListInventoryEntriesCommand_1 = require("./commands/ListInventoryEntriesCommand"); -const ListOpsItemEventsCommand_1 = require("./commands/ListOpsItemEventsCommand"); -const ListOpsItemRelatedItemsCommand_1 = require("./commands/ListOpsItemRelatedItemsCommand"); -const ListOpsMetadataCommand_1 = require("./commands/ListOpsMetadataCommand"); -const ListResourceComplianceSummariesCommand_1 = require("./commands/ListResourceComplianceSummariesCommand"); -const ListResourceDataSyncCommand_1 = require("./commands/ListResourceDataSyncCommand"); -const ListTagsForResourceCommand_1 = require("./commands/ListTagsForResourceCommand"); -const ModifyDocumentPermissionCommand_1 = require("./commands/ModifyDocumentPermissionCommand"); -const PutComplianceItemsCommand_1 = require("./commands/PutComplianceItemsCommand"); -const PutInventoryCommand_1 = require("./commands/PutInventoryCommand"); -const PutParameterCommand_1 = require("./commands/PutParameterCommand"); -const PutResourcePolicyCommand_1 = require("./commands/PutResourcePolicyCommand"); -const RegisterDefaultPatchBaselineCommand_1 = require("./commands/RegisterDefaultPatchBaselineCommand"); -const RegisterPatchBaselineForPatchGroupCommand_1 = require("./commands/RegisterPatchBaselineForPatchGroupCommand"); -const RegisterTargetWithMaintenanceWindowCommand_1 = require("./commands/RegisterTargetWithMaintenanceWindowCommand"); -const RegisterTaskWithMaintenanceWindowCommand_1 = require("./commands/RegisterTaskWithMaintenanceWindowCommand"); -const RemoveTagsFromResourceCommand_1 = require("./commands/RemoveTagsFromResourceCommand"); -const ResetServiceSettingCommand_1 = require("./commands/ResetServiceSettingCommand"); -const ResumeSessionCommand_1 = require("./commands/ResumeSessionCommand"); -const SendAutomationSignalCommand_1 = require("./commands/SendAutomationSignalCommand"); -const SendCommandCommand_1 = require("./commands/SendCommandCommand"); -const StartAssociationsOnceCommand_1 = require("./commands/StartAssociationsOnceCommand"); -const StartAutomationExecutionCommand_1 = require("./commands/StartAutomationExecutionCommand"); -const StartChangeRequestExecutionCommand_1 = require("./commands/StartChangeRequestExecutionCommand"); -const StartSessionCommand_1 = require("./commands/StartSessionCommand"); -const StopAutomationExecutionCommand_1 = require("./commands/StopAutomationExecutionCommand"); -const TerminateSessionCommand_1 = require("./commands/TerminateSessionCommand"); -const UnlabelParameterVersionCommand_1 = require("./commands/UnlabelParameterVersionCommand"); -const UpdateAssociationCommand_1 = require("./commands/UpdateAssociationCommand"); -const UpdateAssociationStatusCommand_1 = require("./commands/UpdateAssociationStatusCommand"); -const UpdateDocumentCommand_1 = require("./commands/UpdateDocumentCommand"); -const UpdateDocumentDefaultVersionCommand_1 = require("./commands/UpdateDocumentDefaultVersionCommand"); -const UpdateDocumentMetadataCommand_1 = require("./commands/UpdateDocumentMetadataCommand"); -const UpdateMaintenanceWindowCommand_1 = require("./commands/UpdateMaintenanceWindowCommand"); -const UpdateMaintenanceWindowTargetCommand_1 = require("./commands/UpdateMaintenanceWindowTargetCommand"); -const UpdateMaintenanceWindowTaskCommand_1 = require("./commands/UpdateMaintenanceWindowTaskCommand"); -const UpdateManagedInstanceRoleCommand_1 = require("./commands/UpdateManagedInstanceRoleCommand"); -const UpdateOpsItemCommand_1 = require("./commands/UpdateOpsItemCommand"); -const UpdateOpsMetadataCommand_1 = require("./commands/UpdateOpsMetadataCommand"); -const UpdatePatchBaselineCommand_1 = require("./commands/UpdatePatchBaselineCommand"); -const UpdateResourceDataSyncCommand_1 = require("./commands/UpdateResourceDataSyncCommand"); -const UpdateServiceSettingCommand_1 = require("./commands/UpdateServiceSettingCommand"); -const SSMClient_1 = require("./SSMClient"); -const commands = { - AddTagsToResourceCommand: AddTagsToResourceCommand_1.AddTagsToResourceCommand, - AssociateOpsItemRelatedItemCommand: AssociateOpsItemRelatedItemCommand_1.AssociateOpsItemRelatedItemCommand, - CancelCommandCommand: CancelCommandCommand_1.CancelCommandCommand, - CancelMaintenanceWindowExecutionCommand: CancelMaintenanceWindowExecutionCommand_1.CancelMaintenanceWindowExecutionCommand, - CreateActivationCommand: CreateActivationCommand_1.CreateActivationCommand, - CreateAssociationCommand: CreateAssociationCommand_1.CreateAssociationCommand, - CreateAssociationBatchCommand: CreateAssociationBatchCommand_1.CreateAssociationBatchCommand, - CreateDocumentCommand: CreateDocumentCommand_1.CreateDocumentCommand, - CreateMaintenanceWindowCommand: CreateMaintenanceWindowCommand_1.CreateMaintenanceWindowCommand, - CreateOpsItemCommand: CreateOpsItemCommand_1.CreateOpsItemCommand, - CreateOpsMetadataCommand: CreateOpsMetadataCommand_1.CreateOpsMetadataCommand, - CreatePatchBaselineCommand: CreatePatchBaselineCommand_1.CreatePatchBaselineCommand, - CreateResourceDataSyncCommand: CreateResourceDataSyncCommand_1.CreateResourceDataSyncCommand, - DeleteActivationCommand: DeleteActivationCommand_1.DeleteActivationCommand, - DeleteAssociationCommand: DeleteAssociationCommand_1.DeleteAssociationCommand, - DeleteDocumentCommand: DeleteDocumentCommand_1.DeleteDocumentCommand, - DeleteInventoryCommand: DeleteInventoryCommand_1.DeleteInventoryCommand, - DeleteMaintenanceWindowCommand: DeleteMaintenanceWindowCommand_1.DeleteMaintenanceWindowCommand, - DeleteOpsItemCommand: DeleteOpsItemCommand_1.DeleteOpsItemCommand, - DeleteOpsMetadataCommand: DeleteOpsMetadataCommand_1.DeleteOpsMetadataCommand, - DeleteParameterCommand: DeleteParameterCommand_1.DeleteParameterCommand, - DeleteParametersCommand: DeleteParametersCommand_1.DeleteParametersCommand, - DeletePatchBaselineCommand: DeletePatchBaselineCommand_1.DeletePatchBaselineCommand, - DeleteResourceDataSyncCommand: DeleteResourceDataSyncCommand_1.DeleteResourceDataSyncCommand, - DeleteResourcePolicyCommand: DeleteResourcePolicyCommand_1.DeleteResourcePolicyCommand, - DeregisterManagedInstanceCommand: DeregisterManagedInstanceCommand_1.DeregisterManagedInstanceCommand, - DeregisterPatchBaselineForPatchGroupCommand: DeregisterPatchBaselineForPatchGroupCommand_1.DeregisterPatchBaselineForPatchGroupCommand, - DeregisterTargetFromMaintenanceWindowCommand: DeregisterTargetFromMaintenanceWindowCommand_1.DeregisterTargetFromMaintenanceWindowCommand, - DeregisterTaskFromMaintenanceWindowCommand: DeregisterTaskFromMaintenanceWindowCommand_1.DeregisterTaskFromMaintenanceWindowCommand, - DescribeActivationsCommand: DescribeActivationsCommand_1.DescribeActivationsCommand, - DescribeAssociationCommand: DescribeAssociationCommand_1.DescribeAssociationCommand, - DescribeAssociationExecutionsCommand: DescribeAssociationExecutionsCommand_1.DescribeAssociationExecutionsCommand, - DescribeAssociationExecutionTargetsCommand: DescribeAssociationExecutionTargetsCommand_1.DescribeAssociationExecutionTargetsCommand, - DescribeAutomationExecutionsCommand: DescribeAutomationExecutionsCommand_1.DescribeAutomationExecutionsCommand, - DescribeAutomationStepExecutionsCommand: DescribeAutomationStepExecutionsCommand_1.DescribeAutomationStepExecutionsCommand, - DescribeAvailablePatchesCommand: DescribeAvailablePatchesCommand_1.DescribeAvailablePatchesCommand, - DescribeDocumentCommand: DescribeDocumentCommand_1.DescribeDocumentCommand, - DescribeDocumentPermissionCommand: DescribeDocumentPermissionCommand_1.DescribeDocumentPermissionCommand, - DescribeEffectiveInstanceAssociationsCommand: DescribeEffectiveInstanceAssociationsCommand_1.DescribeEffectiveInstanceAssociationsCommand, - DescribeEffectivePatchesForPatchBaselineCommand: DescribeEffectivePatchesForPatchBaselineCommand_1.DescribeEffectivePatchesForPatchBaselineCommand, - DescribeInstanceAssociationsStatusCommand: DescribeInstanceAssociationsStatusCommand_1.DescribeInstanceAssociationsStatusCommand, - DescribeInstanceInformationCommand: DescribeInstanceInformationCommand_1.DescribeInstanceInformationCommand, - DescribeInstancePatchesCommand: DescribeInstancePatchesCommand_1.DescribeInstancePatchesCommand, - DescribeInstancePatchStatesCommand: DescribeInstancePatchStatesCommand_1.DescribeInstancePatchStatesCommand, - DescribeInstancePatchStatesForPatchGroupCommand: DescribeInstancePatchStatesForPatchGroupCommand_1.DescribeInstancePatchStatesForPatchGroupCommand, - DescribeInventoryDeletionsCommand: DescribeInventoryDeletionsCommand_1.DescribeInventoryDeletionsCommand, - DescribeMaintenanceWindowExecutionsCommand: DescribeMaintenanceWindowExecutionsCommand_1.DescribeMaintenanceWindowExecutionsCommand, - DescribeMaintenanceWindowExecutionTaskInvocationsCommand: DescribeMaintenanceWindowExecutionTaskInvocationsCommand_1.DescribeMaintenanceWindowExecutionTaskInvocationsCommand, - DescribeMaintenanceWindowExecutionTasksCommand: DescribeMaintenanceWindowExecutionTasksCommand_1.DescribeMaintenanceWindowExecutionTasksCommand, - DescribeMaintenanceWindowsCommand: DescribeMaintenanceWindowsCommand_1.DescribeMaintenanceWindowsCommand, - DescribeMaintenanceWindowScheduleCommand: DescribeMaintenanceWindowScheduleCommand_1.DescribeMaintenanceWindowScheduleCommand, - DescribeMaintenanceWindowsForTargetCommand: DescribeMaintenanceWindowsForTargetCommand_1.DescribeMaintenanceWindowsForTargetCommand, - DescribeMaintenanceWindowTargetsCommand: DescribeMaintenanceWindowTargetsCommand_1.DescribeMaintenanceWindowTargetsCommand, - DescribeMaintenanceWindowTasksCommand: DescribeMaintenanceWindowTasksCommand_1.DescribeMaintenanceWindowTasksCommand, - DescribeOpsItemsCommand: DescribeOpsItemsCommand_1.DescribeOpsItemsCommand, - DescribeParametersCommand: DescribeParametersCommand_1.DescribeParametersCommand, - DescribePatchBaselinesCommand: DescribePatchBaselinesCommand_1.DescribePatchBaselinesCommand, - DescribePatchGroupsCommand: DescribePatchGroupsCommand_1.DescribePatchGroupsCommand, - DescribePatchGroupStateCommand: DescribePatchGroupStateCommand_1.DescribePatchGroupStateCommand, - DescribePatchPropertiesCommand: DescribePatchPropertiesCommand_1.DescribePatchPropertiesCommand, - DescribeSessionsCommand: DescribeSessionsCommand_1.DescribeSessionsCommand, - DisassociateOpsItemRelatedItemCommand: DisassociateOpsItemRelatedItemCommand_1.DisassociateOpsItemRelatedItemCommand, - GetAutomationExecutionCommand: GetAutomationExecutionCommand_1.GetAutomationExecutionCommand, - GetCalendarStateCommand: GetCalendarStateCommand_1.GetCalendarStateCommand, - GetCommandInvocationCommand: GetCommandInvocationCommand_1.GetCommandInvocationCommand, - GetConnectionStatusCommand: GetConnectionStatusCommand_1.GetConnectionStatusCommand, - GetDefaultPatchBaselineCommand: GetDefaultPatchBaselineCommand_1.GetDefaultPatchBaselineCommand, - GetDeployablePatchSnapshotForInstanceCommand: GetDeployablePatchSnapshotForInstanceCommand_1.GetDeployablePatchSnapshotForInstanceCommand, - GetDocumentCommand: GetDocumentCommand_1.GetDocumentCommand, - GetInventoryCommand: GetInventoryCommand_1.GetInventoryCommand, - GetInventorySchemaCommand: GetInventorySchemaCommand_1.GetInventorySchemaCommand, - GetMaintenanceWindowCommand: GetMaintenanceWindowCommand_1.GetMaintenanceWindowCommand, - GetMaintenanceWindowExecutionCommand: GetMaintenanceWindowExecutionCommand_1.GetMaintenanceWindowExecutionCommand, - GetMaintenanceWindowExecutionTaskCommand: GetMaintenanceWindowExecutionTaskCommand_1.GetMaintenanceWindowExecutionTaskCommand, - GetMaintenanceWindowExecutionTaskInvocationCommand: GetMaintenanceWindowExecutionTaskInvocationCommand_1.GetMaintenanceWindowExecutionTaskInvocationCommand, - GetMaintenanceWindowTaskCommand: GetMaintenanceWindowTaskCommand_1.GetMaintenanceWindowTaskCommand, - GetOpsItemCommand: GetOpsItemCommand_1.GetOpsItemCommand, - GetOpsMetadataCommand: GetOpsMetadataCommand_1.GetOpsMetadataCommand, - GetOpsSummaryCommand: GetOpsSummaryCommand_1.GetOpsSummaryCommand, - GetParameterCommand: GetParameterCommand_1.GetParameterCommand, - GetParameterHistoryCommand: GetParameterHistoryCommand_1.GetParameterHistoryCommand, - GetParametersCommand: GetParametersCommand_1.GetParametersCommand, - GetParametersByPathCommand: GetParametersByPathCommand_1.GetParametersByPathCommand, - GetPatchBaselineCommand: GetPatchBaselineCommand_1.GetPatchBaselineCommand, - GetPatchBaselineForPatchGroupCommand: GetPatchBaselineForPatchGroupCommand_1.GetPatchBaselineForPatchGroupCommand, - GetResourcePoliciesCommand: GetResourcePoliciesCommand_1.GetResourcePoliciesCommand, - GetServiceSettingCommand: GetServiceSettingCommand_1.GetServiceSettingCommand, - LabelParameterVersionCommand: LabelParameterVersionCommand_1.LabelParameterVersionCommand, - ListAssociationsCommand: ListAssociationsCommand_1.ListAssociationsCommand, - ListAssociationVersionsCommand: ListAssociationVersionsCommand_1.ListAssociationVersionsCommand, - ListCommandInvocationsCommand: ListCommandInvocationsCommand_1.ListCommandInvocationsCommand, - ListCommandsCommand: ListCommandsCommand_1.ListCommandsCommand, - ListComplianceItemsCommand: ListComplianceItemsCommand_1.ListComplianceItemsCommand, - ListComplianceSummariesCommand: ListComplianceSummariesCommand_1.ListComplianceSummariesCommand, - ListDocumentMetadataHistoryCommand: ListDocumentMetadataHistoryCommand_1.ListDocumentMetadataHistoryCommand, - ListDocumentsCommand: ListDocumentsCommand_1.ListDocumentsCommand, - ListDocumentVersionsCommand: ListDocumentVersionsCommand_1.ListDocumentVersionsCommand, - ListInventoryEntriesCommand: ListInventoryEntriesCommand_1.ListInventoryEntriesCommand, - ListOpsItemEventsCommand: ListOpsItemEventsCommand_1.ListOpsItemEventsCommand, - ListOpsItemRelatedItemsCommand: ListOpsItemRelatedItemsCommand_1.ListOpsItemRelatedItemsCommand, - ListOpsMetadataCommand: ListOpsMetadataCommand_1.ListOpsMetadataCommand, - ListResourceComplianceSummariesCommand: ListResourceComplianceSummariesCommand_1.ListResourceComplianceSummariesCommand, - ListResourceDataSyncCommand: ListResourceDataSyncCommand_1.ListResourceDataSyncCommand, - ListTagsForResourceCommand: ListTagsForResourceCommand_1.ListTagsForResourceCommand, - ModifyDocumentPermissionCommand: ModifyDocumentPermissionCommand_1.ModifyDocumentPermissionCommand, - PutComplianceItemsCommand: PutComplianceItemsCommand_1.PutComplianceItemsCommand, - PutInventoryCommand: PutInventoryCommand_1.PutInventoryCommand, - PutParameterCommand: PutParameterCommand_1.PutParameterCommand, - PutResourcePolicyCommand: PutResourcePolicyCommand_1.PutResourcePolicyCommand, - RegisterDefaultPatchBaselineCommand: RegisterDefaultPatchBaselineCommand_1.RegisterDefaultPatchBaselineCommand, - RegisterPatchBaselineForPatchGroupCommand: RegisterPatchBaselineForPatchGroupCommand_1.RegisterPatchBaselineForPatchGroupCommand, - RegisterTargetWithMaintenanceWindowCommand: RegisterTargetWithMaintenanceWindowCommand_1.RegisterTargetWithMaintenanceWindowCommand, - RegisterTaskWithMaintenanceWindowCommand: RegisterTaskWithMaintenanceWindowCommand_1.RegisterTaskWithMaintenanceWindowCommand, - RemoveTagsFromResourceCommand: RemoveTagsFromResourceCommand_1.RemoveTagsFromResourceCommand, - ResetServiceSettingCommand: ResetServiceSettingCommand_1.ResetServiceSettingCommand, - ResumeSessionCommand: ResumeSessionCommand_1.ResumeSessionCommand, - SendAutomationSignalCommand: SendAutomationSignalCommand_1.SendAutomationSignalCommand, - SendCommandCommand: SendCommandCommand_1.SendCommandCommand, - StartAssociationsOnceCommand: StartAssociationsOnceCommand_1.StartAssociationsOnceCommand, - StartAutomationExecutionCommand: StartAutomationExecutionCommand_1.StartAutomationExecutionCommand, - StartChangeRequestExecutionCommand: StartChangeRequestExecutionCommand_1.StartChangeRequestExecutionCommand, - StartSessionCommand: StartSessionCommand_1.StartSessionCommand, - StopAutomationExecutionCommand: StopAutomationExecutionCommand_1.StopAutomationExecutionCommand, - TerminateSessionCommand: TerminateSessionCommand_1.TerminateSessionCommand, - UnlabelParameterVersionCommand: UnlabelParameterVersionCommand_1.UnlabelParameterVersionCommand, - UpdateAssociationCommand: UpdateAssociationCommand_1.UpdateAssociationCommand, - UpdateAssociationStatusCommand: UpdateAssociationStatusCommand_1.UpdateAssociationStatusCommand, - UpdateDocumentCommand: UpdateDocumentCommand_1.UpdateDocumentCommand, - UpdateDocumentDefaultVersionCommand: UpdateDocumentDefaultVersionCommand_1.UpdateDocumentDefaultVersionCommand, - UpdateDocumentMetadataCommand: UpdateDocumentMetadataCommand_1.UpdateDocumentMetadataCommand, - UpdateMaintenanceWindowCommand: UpdateMaintenanceWindowCommand_1.UpdateMaintenanceWindowCommand, - UpdateMaintenanceWindowTargetCommand: UpdateMaintenanceWindowTargetCommand_1.UpdateMaintenanceWindowTargetCommand, - UpdateMaintenanceWindowTaskCommand: UpdateMaintenanceWindowTaskCommand_1.UpdateMaintenanceWindowTaskCommand, - UpdateManagedInstanceRoleCommand: UpdateManagedInstanceRoleCommand_1.UpdateManagedInstanceRoleCommand, - UpdateOpsItemCommand: UpdateOpsItemCommand_1.UpdateOpsItemCommand, - UpdateOpsMetadataCommand: UpdateOpsMetadataCommand_1.UpdateOpsMetadataCommand, - UpdatePatchBaselineCommand: UpdatePatchBaselineCommand_1.UpdatePatchBaselineCommand, - UpdateResourceDataSyncCommand: UpdateResourceDataSyncCommand_1.UpdateResourceDataSyncCommand, - UpdateServiceSettingCommand: UpdateServiceSettingCommand_1.UpdateServiceSettingCommand, -}; -class SSM extends SSMClient_1.SSMClient { -} -exports.SSM = SSM; -(0, smithy_client_1.createAggregatedClient)(commands, SSM); diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/SSMClient.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/SSMClient.js deleted file mode 100644 index c98f9068..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/SSMClient.js +++ /dev/null @@ -1,43 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SSMClient = exports.__Client = void 0; -const middleware_host_header_1 = require("@aws-sdk/middleware-host-header"); -const middleware_logger_1 = require("@aws-sdk/middleware-logger"); -const middleware_recursion_detection_1 = require("@aws-sdk/middleware-recursion-detection"); -const middleware_signing_1 = require("@aws-sdk/middleware-signing"); -const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent"); -const config_resolver_1 = require("@smithy/config-resolver"); -const middleware_content_length_1 = require("@smithy/middleware-content-length"); -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_retry_1 = require("@smithy/middleware-retry"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "__Client", { enumerable: true, get: function () { return smithy_client_1.Client; } }); -const EndpointParameters_1 = require("./endpoint/EndpointParameters"); -const runtimeConfig_1 = require("./runtimeConfig"); -const runtimeExtensions_1 = require("./runtimeExtensions"); -class SSMClient extends smithy_client_1.Client { - constructor(...[configuration]) { - const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration || {}); - const _config_1 = (0, EndpointParameters_1.resolveClientEndpointParameters)(_config_0); - const _config_2 = (0, config_resolver_1.resolveRegionConfig)(_config_1); - const _config_3 = (0, middleware_endpoint_1.resolveEndpointConfig)(_config_2); - const _config_4 = (0, middleware_retry_1.resolveRetryConfig)(_config_3); - const _config_5 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_4); - const _config_6 = (0, middleware_signing_1.resolveAwsAuthConfig)(_config_5); - const _config_7 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_6); - const _config_8 = (0, runtimeExtensions_1.resolveRuntimeExtensions)(_config_7, configuration?.extensions || []); - super(_config_8); - this.config = _config_8; - this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config)); - this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config)); - this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config)); - this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config)); - this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config)); - this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(this.config)); - this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config)); - } - destroy() { - super.destroy(); - } -} -exports.SSMClient = SSMClient; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/AddTagsToResourceCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/AddTagsToResourceCommand.js deleted file mode 100644 index e4b5b047..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/AddTagsToResourceCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AddTagsToResourceCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class AddTagsToResourceCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, AddTagsToResourceCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "AddTagsToResourceCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "AddTagsToResource", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_AddTagsToResourceCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_AddTagsToResourceCommand)(output, context); - } -} -exports.AddTagsToResourceCommand = AddTagsToResourceCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/AssociateOpsItemRelatedItemCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/AssociateOpsItemRelatedItemCommand.js deleted file mode 100644 index a8322c55..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/AssociateOpsItemRelatedItemCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AssociateOpsItemRelatedItemCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class AssociateOpsItemRelatedItemCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, AssociateOpsItemRelatedItemCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "AssociateOpsItemRelatedItemCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "AssociateOpsItemRelatedItem", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_AssociateOpsItemRelatedItemCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_AssociateOpsItemRelatedItemCommand)(output, context); - } -} -exports.AssociateOpsItemRelatedItemCommand = AssociateOpsItemRelatedItemCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/CancelCommandCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/CancelCommandCommand.js deleted file mode 100644 index 0bf1bf00..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/CancelCommandCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CancelCommandCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class CancelCommandCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CancelCommandCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "CancelCommandCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "CancelCommand", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_CancelCommandCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_CancelCommandCommand)(output, context); - } -} -exports.CancelCommandCommand = CancelCommandCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/CancelMaintenanceWindowExecutionCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/CancelMaintenanceWindowExecutionCommand.js deleted file mode 100644 index 3057c71a..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/CancelMaintenanceWindowExecutionCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CancelMaintenanceWindowExecutionCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class CancelMaintenanceWindowExecutionCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CancelMaintenanceWindowExecutionCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "CancelMaintenanceWindowExecutionCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "CancelMaintenanceWindowExecution", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_CancelMaintenanceWindowExecutionCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_CancelMaintenanceWindowExecutionCommand)(output, context); - } -} -exports.CancelMaintenanceWindowExecutionCommand = CancelMaintenanceWindowExecutionCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/CreateActivationCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/CreateActivationCommand.js deleted file mode 100644 index 7c9354e3..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/CreateActivationCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CreateActivationCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class CreateActivationCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CreateActivationCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "CreateActivationCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "CreateActivation", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_CreateActivationCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_CreateActivationCommand)(output, context); - } -} -exports.CreateActivationCommand = CreateActivationCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/CreateAssociationBatchCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/CreateAssociationBatchCommand.js deleted file mode 100644 index 221ebafd..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/CreateAssociationBatchCommand.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CreateAssociationBatchCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const models_0_1 = require("../models/models_0"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class CreateAssociationBatchCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CreateAssociationBatchCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "CreateAssociationBatchCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.CreateAssociationBatchRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.CreateAssociationBatchResultFilterSensitiveLog, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "CreateAssociationBatch", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_CreateAssociationBatchCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_CreateAssociationBatchCommand)(output, context); - } -} -exports.CreateAssociationBatchCommand = CreateAssociationBatchCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/CreateAssociationCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/CreateAssociationCommand.js deleted file mode 100644 index 5b648539..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/CreateAssociationCommand.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CreateAssociationCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const models_0_1 = require("../models/models_0"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class CreateAssociationCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CreateAssociationCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "CreateAssociationCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.CreateAssociationRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.CreateAssociationResultFilterSensitiveLog, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "CreateAssociation", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_CreateAssociationCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_CreateAssociationCommand)(output, context); - } -} -exports.CreateAssociationCommand = CreateAssociationCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/CreateDocumentCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/CreateDocumentCommand.js deleted file mode 100644 index 3730220b..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/CreateDocumentCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CreateDocumentCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class CreateDocumentCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CreateDocumentCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "CreateDocumentCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "CreateDocument", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_CreateDocumentCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_CreateDocumentCommand)(output, context); - } -} -exports.CreateDocumentCommand = CreateDocumentCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/CreateMaintenanceWindowCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/CreateMaintenanceWindowCommand.js deleted file mode 100644 index d28d22d8..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/CreateMaintenanceWindowCommand.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CreateMaintenanceWindowCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const models_0_1 = require("../models/models_0"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class CreateMaintenanceWindowCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CreateMaintenanceWindowCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "CreateMaintenanceWindowCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.CreateMaintenanceWindowRequestFilterSensitiveLog, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "CreateMaintenanceWindow", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_CreateMaintenanceWindowCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_CreateMaintenanceWindowCommand)(output, context); - } -} -exports.CreateMaintenanceWindowCommand = CreateMaintenanceWindowCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/CreateOpsItemCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/CreateOpsItemCommand.js deleted file mode 100644 index 8236c9c2..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/CreateOpsItemCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CreateOpsItemCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class CreateOpsItemCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CreateOpsItemCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "CreateOpsItemCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "CreateOpsItem", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_CreateOpsItemCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_CreateOpsItemCommand)(output, context); - } -} -exports.CreateOpsItemCommand = CreateOpsItemCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/CreateOpsMetadataCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/CreateOpsMetadataCommand.js deleted file mode 100644 index 9e612323..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/CreateOpsMetadataCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CreateOpsMetadataCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class CreateOpsMetadataCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CreateOpsMetadataCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "CreateOpsMetadataCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "CreateOpsMetadata", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_CreateOpsMetadataCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_CreateOpsMetadataCommand)(output, context); - } -} -exports.CreateOpsMetadataCommand = CreateOpsMetadataCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/CreatePatchBaselineCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/CreatePatchBaselineCommand.js deleted file mode 100644 index 63fed2b3..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/CreatePatchBaselineCommand.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CreatePatchBaselineCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const models_0_1 = require("../models/models_0"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class CreatePatchBaselineCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CreatePatchBaselineCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "CreatePatchBaselineCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.CreatePatchBaselineRequestFilterSensitiveLog, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "CreatePatchBaseline", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_CreatePatchBaselineCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_CreatePatchBaselineCommand)(output, context); - } -} -exports.CreatePatchBaselineCommand = CreatePatchBaselineCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/CreateResourceDataSyncCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/CreateResourceDataSyncCommand.js deleted file mode 100644 index 51afd49e..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/CreateResourceDataSyncCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CreateResourceDataSyncCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class CreateResourceDataSyncCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, CreateResourceDataSyncCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "CreateResourceDataSyncCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "CreateResourceDataSync", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_CreateResourceDataSyncCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_CreateResourceDataSyncCommand)(output, context); - } -} -exports.CreateResourceDataSyncCommand = CreateResourceDataSyncCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DeleteActivationCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DeleteActivationCommand.js deleted file mode 100644 index 954355f5..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DeleteActivationCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DeleteActivationCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class DeleteActivationCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteActivationCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DeleteActivationCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DeleteActivation", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_DeleteActivationCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_DeleteActivationCommand)(output, context); - } -} -exports.DeleteActivationCommand = DeleteActivationCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DeleteAssociationCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DeleteAssociationCommand.js deleted file mode 100644 index 5ce82eec..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DeleteAssociationCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DeleteAssociationCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class DeleteAssociationCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteAssociationCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DeleteAssociationCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DeleteAssociation", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_DeleteAssociationCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_DeleteAssociationCommand)(output, context); - } -} -exports.DeleteAssociationCommand = DeleteAssociationCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DeleteDocumentCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DeleteDocumentCommand.js deleted file mode 100644 index d83b1750..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DeleteDocumentCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DeleteDocumentCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class DeleteDocumentCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteDocumentCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DeleteDocumentCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DeleteDocument", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_DeleteDocumentCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_DeleteDocumentCommand)(output, context); - } -} -exports.DeleteDocumentCommand = DeleteDocumentCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DeleteInventoryCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DeleteInventoryCommand.js deleted file mode 100644 index 67fcb28f..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DeleteInventoryCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DeleteInventoryCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class DeleteInventoryCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteInventoryCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DeleteInventoryCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DeleteInventory", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_DeleteInventoryCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_DeleteInventoryCommand)(output, context); - } -} -exports.DeleteInventoryCommand = DeleteInventoryCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DeleteMaintenanceWindowCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DeleteMaintenanceWindowCommand.js deleted file mode 100644 index 5c83fde0..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DeleteMaintenanceWindowCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DeleteMaintenanceWindowCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class DeleteMaintenanceWindowCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteMaintenanceWindowCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DeleteMaintenanceWindowCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DeleteMaintenanceWindow", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_DeleteMaintenanceWindowCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_DeleteMaintenanceWindowCommand)(output, context); - } -} -exports.DeleteMaintenanceWindowCommand = DeleteMaintenanceWindowCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DeleteOpsItemCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DeleteOpsItemCommand.js deleted file mode 100644 index f72ee012..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DeleteOpsItemCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DeleteOpsItemCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class DeleteOpsItemCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteOpsItemCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DeleteOpsItemCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DeleteOpsItem", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_DeleteOpsItemCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_DeleteOpsItemCommand)(output, context); - } -} -exports.DeleteOpsItemCommand = DeleteOpsItemCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DeleteOpsMetadataCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DeleteOpsMetadataCommand.js deleted file mode 100644 index 42a4aa18..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DeleteOpsMetadataCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DeleteOpsMetadataCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class DeleteOpsMetadataCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteOpsMetadataCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DeleteOpsMetadataCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DeleteOpsMetadata", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_DeleteOpsMetadataCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_DeleteOpsMetadataCommand)(output, context); - } -} -exports.DeleteOpsMetadataCommand = DeleteOpsMetadataCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DeleteParameterCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DeleteParameterCommand.js deleted file mode 100644 index 93203006..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DeleteParameterCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DeleteParameterCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class DeleteParameterCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteParameterCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DeleteParameterCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DeleteParameter", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_DeleteParameterCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_DeleteParameterCommand)(output, context); - } -} -exports.DeleteParameterCommand = DeleteParameterCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DeleteParametersCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DeleteParametersCommand.js deleted file mode 100644 index ea064fee..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DeleteParametersCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DeleteParametersCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class DeleteParametersCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteParametersCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DeleteParametersCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DeleteParameters", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_DeleteParametersCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_DeleteParametersCommand)(output, context); - } -} -exports.DeleteParametersCommand = DeleteParametersCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DeletePatchBaselineCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DeletePatchBaselineCommand.js deleted file mode 100644 index 46c7dcf8..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DeletePatchBaselineCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DeletePatchBaselineCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class DeletePatchBaselineCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeletePatchBaselineCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DeletePatchBaselineCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DeletePatchBaseline", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_DeletePatchBaselineCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_DeletePatchBaselineCommand)(output, context); - } -} -exports.DeletePatchBaselineCommand = DeletePatchBaselineCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DeleteResourceDataSyncCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DeleteResourceDataSyncCommand.js deleted file mode 100644 index fc2911ad..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DeleteResourceDataSyncCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DeleteResourceDataSyncCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class DeleteResourceDataSyncCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteResourceDataSyncCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DeleteResourceDataSyncCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DeleteResourceDataSync", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_DeleteResourceDataSyncCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_DeleteResourceDataSyncCommand)(output, context); - } -} -exports.DeleteResourceDataSyncCommand = DeleteResourceDataSyncCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DeleteResourcePolicyCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DeleteResourcePolicyCommand.js deleted file mode 100644 index 2d6f4c64..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DeleteResourcePolicyCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DeleteResourcePolicyCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class DeleteResourcePolicyCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeleteResourcePolicyCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DeleteResourcePolicyCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DeleteResourcePolicy", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_DeleteResourcePolicyCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_DeleteResourcePolicyCommand)(output, context); - } -} -exports.DeleteResourcePolicyCommand = DeleteResourcePolicyCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DeregisterManagedInstanceCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DeregisterManagedInstanceCommand.js deleted file mode 100644 index 85b0daa2..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DeregisterManagedInstanceCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DeregisterManagedInstanceCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class DeregisterManagedInstanceCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeregisterManagedInstanceCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DeregisterManagedInstanceCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DeregisterManagedInstance", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_DeregisterManagedInstanceCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_DeregisterManagedInstanceCommand)(output, context); - } -} -exports.DeregisterManagedInstanceCommand = DeregisterManagedInstanceCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DeregisterPatchBaselineForPatchGroupCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DeregisterPatchBaselineForPatchGroupCommand.js deleted file mode 100644 index 8c15c426..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DeregisterPatchBaselineForPatchGroupCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DeregisterPatchBaselineForPatchGroupCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class DeregisterPatchBaselineForPatchGroupCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeregisterPatchBaselineForPatchGroupCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DeregisterPatchBaselineForPatchGroupCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DeregisterPatchBaselineForPatchGroup", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_DeregisterPatchBaselineForPatchGroupCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_DeregisterPatchBaselineForPatchGroupCommand)(output, context); - } -} -exports.DeregisterPatchBaselineForPatchGroupCommand = DeregisterPatchBaselineForPatchGroupCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DeregisterTargetFromMaintenanceWindowCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DeregisterTargetFromMaintenanceWindowCommand.js deleted file mode 100644 index dc96e116..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DeregisterTargetFromMaintenanceWindowCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DeregisterTargetFromMaintenanceWindowCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class DeregisterTargetFromMaintenanceWindowCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeregisterTargetFromMaintenanceWindowCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DeregisterTargetFromMaintenanceWindowCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DeregisterTargetFromMaintenanceWindow", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_DeregisterTargetFromMaintenanceWindowCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_DeregisterTargetFromMaintenanceWindowCommand)(output, context); - } -} -exports.DeregisterTargetFromMaintenanceWindowCommand = DeregisterTargetFromMaintenanceWindowCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DeregisterTaskFromMaintenanceWindowCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DeregisterTaskFromMaintenanceWindowCommand.js deleted file mode 100644 index 92f19f74..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DeregisterTaskFromMaintenanceWindowCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DeregisterTaskFromMaintenanceWindowCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class DeregisterTaskFromMaintenanceWindowCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DeregisterTaskFromMaintenanceWindowCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DeregisterTaskFromMaintenanceWindowCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DeregisterTaskFromMaintenanceWindow", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_DeregisterTaskFromMaintenanceWindowCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_DeregisterTaskFromMaintenanceWindowCommand)(output, context); - } -} -exports.DeregisterTaskFromMaintenanceWindowCommand = DeregisterTaskFromMaintenanceWindowCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeActivationsCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeActivationsCommand.js deleted file mode 100644 index 3fe50103..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeActivationsCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DescribeActivationsCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class DescribeActivationsCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeActivationsCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeActivationsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DescribeActivations", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_DescribeActivationsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_DescribeActivationsCommand)(output, context); - } -} -exports.DescribeActivationsCommand = DescribeActivationsCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeAssociationCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeAssociationCommand.js deleted file mode 100644 index db7abdd8..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeAssociationCommand.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DescribeAssociationCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const models_0_1 = require("../models/models_0"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class DescribeAssociationCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeAssociationCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeAssociationCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: models_0_1.DescribeAssociationResultFilterSensitiveLog, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DescribeAssociation", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_DescribeAssociationCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_DescribeAssociationCommand)(output, context); - } -} -exports.DescribeAssociationCommand = DescribeAssociationCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeAssociationExecutionTargetsCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeAssociationExecutionTargetsCommand.js deleted file mode 100644 index 8e7f0853..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeAssociationExecutionTargetsCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DescribeAssociationExecutionTargetsCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class DescribeAssociationExecutionTargetsCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeAssociationExecutionTargetsCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeAssociationExecutionTargetsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DescribeAssociationExecutionTargets", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_DescribeAssociationExecutionTargetsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_DescribeAssociationExecutionTargetsCommand)(output, context); - } -} -exports.DescribeAssociationExecutionTargetsCommand = DescribeAssociationExecutionTargetsCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeAssociationExecutionsCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeAssociationExecutionsCommand.js deleted file mode 100644 index a70c28c0..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeAssociationExecutionsCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DescribeAssociationExecutionsCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class DescribeAssociationExecutionsCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeAssociationExecutionsCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeAssociationExecutionsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DescribeAssociationExecutions", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_DescribeAssociationExecutionsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_DescribeAssociationExecutionsCommand)(output, context); - } -} -exports.DescribeAssociationExecutionsCommand = DescribeAssociationExecutionsCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeAutomationExecutionsCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeAutomationExecutionsCommand.js deleted file mode 100644 index 50978a1b..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeAutomationExecutionsCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DescribeAutomationExecutionsCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class DescribeAutomationExecutionsCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeAutomationExecutionsCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeAutomationExecutionsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DescribeAutomationExecutions", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_DescribeAutomationExecutionsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_DescribeAutomationExecutionsCommand)(output, context); - } -} -exports.DescribeAutomationExecutionsCommand = DescribeAutomationExecutionsCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeAutomationStepExecutionsCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeAutomationStepExecutionsCommand.js deleted file mode 100644 index 30fe731a..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeAutomationStepExecutionsCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DescribeAutomationStepExecutionsCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class DescribeAutomationStepExecutionsCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeAutomationStepExecutionsCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeAutomationStepExecutionsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DescribeAutomationStepExecutions", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_DescribeAutomationStepExecutionsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_DescribeAutomationStepExecutionsCommand)(output, context); - } -} -exports.DescribeAutomationStepExecutionsCommand = DescribeAutomationStepExecutionsCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeAvailablePatchesCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeAvailablePatchesCommand.js deleted file mode 100644 index 6da109b3..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeAvailablePatchesCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DescribeAvailablePatchesCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class DescribeAvailablePatchesCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeAvailablePatchesCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeAvailablePatchesCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DescribeAvailablePatches", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_DescribeAvailablePatchesCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_DescribeAvailablePatchesCommand)(output, context); - } -} -exports.DescribeAvailablePatchesCommand = DescribeAvailablePatchesCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeDocumentCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeDocumentCommand.js deleted file mode 100644 index 2f4f4a93..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeDocumentCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DescribeDocumentCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class DescribeDocumentCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeDocumentCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeDocumentCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DescribeDocument", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_DescribeDocumentCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_DescribeDocumentCommand)(output, context); - } -} -exports.DescribeDocumentCommand = DescribeDocumentCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeDocumentPermissionCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeDocumentPermissionCommand.js deleted file mode 100644 index bc674e5a..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeDocumentPermissionCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DescribeDocumentPermissionCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class DescribeDocumentPermissionCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeDocumentPermissionCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeDocumentPermissionCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DescribeDocumentPermission", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_DescribeDocumentPermissionCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_DescribeDocumentPermissionCommand)(output, context); - } -} -exports.DescribeDocumentPermissionCommand = DescribeDocumentPermissionCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeEffectiveInstanceAssociationsCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeEffectiveInstanceAssociationsCommand.js deleted file mode 100644 index 19334179..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeEffectiveInstanceAssociationsCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DescribeEffectiveInstanceAssociationsCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class DescribeEffectiveInstanceAssociationsCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeEffectiveInstanceAssociationsCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeEffectiveInstanceAssociationsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DescribeEffectiveInstanceAssociations", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_DescribeEffectiveInstanceAssociationsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_DescribeEffectiveInstanceAssociationsCommand)(output, context); - } -} -exports.DescribeEffectiveInstanceAssociationsCommand = DescribeEffectiveInstanceAssociationsCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeEffectivePatchesForPatchBaselineCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeEffectivePatchesForPatchBaselineCommand.js deleted file mode 100644 index 25993d8e..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeEffectivePatchesForPatchBaselineCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DescribeEffectivePatchesForPatchBaselineCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class DescribeEffectivePatchesForPatchBaselineCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeEffectivePatchesForPatchBaselineCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeEffectivePatchesForPatchBaselineCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DescribeEffectivePatchesForPatchBaseline", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_DescribeEffectivePatchesForPatchBaselineCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_DescribeEffectivePatchesForPatchBaselineCommand)(output, context); - } -} -exports.DescribeEffectivePatchesForPatchBaselineCommand = DescribeEffectivePatchesForPatchBaselineCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeInstanceAssociationsStatusCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeInstanceAssociationsStatusCommand.js deleted file mode 100644 index 83e140ed..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeInstanceAssociationsStatusCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DescribeInstanceAssociationsStatusCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class DescribeInstanceAssociationsStatusCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeInstanceAssociationsStatusCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeInstanceAssociationsStatusCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DescribeInstanceAssociationsStatus", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_DescribeInstanceAssociationsStatusCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_DescribeInstanceAssociationsStatusCommand)(output, context); - } -} -exports.DescribeInstanceAssociationsStatusCommand = DescribeInstanceAssociationsStatusCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeInstanceInformationCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeInstanceInformationCommand.js deleted file mode 100644 index 2c06d4b7..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeInstanceInformationCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DescribeInstanceInformationCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class DescribeInstanceInformationCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeInstanceInformationCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeInstanceInformationCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DescribeInstanceInformation", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_DescribeInstanceInformationCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_DescribeInstanceInformationCommand)(output, context); - } -} -exports.DescribeInstanceInformationCommand = DescribeInstanceInformationCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeInstancePatchStatesCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeInstancePatchStatesCommand.js deleted file mode 100644 index 9642f5d1..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeInstancePatchStatesCommand.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DescribeInstancePatchStatesCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const models_0_1 = require("../models/models_0"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class DescribeInstancePatchStatesCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeInstancePatchStatesCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeInstancePatchStatesCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: models_0_1.DescribeInstancePatchStatesResultFilterSensitiveLog, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DescribeInstancePatchStates", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_DescribeInstancePatchStatesCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_DescribeInstancePatchStatesCommand)(output, context); - } -} -exports.DescribeInstancePatchStatesCommand = DescribeInstancePatchStatesCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeInstancePatchStatesForPatchGroupCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeInstancePatchStatesForPatchGroupCommand.js deleted file mode 100644 index c571f4c7..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeInstancePatchStatesForPatchGroupCommand.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DescribeInstancePatchStatesForPatchGroupCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const models_0_1 = require("../models/models_0"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class DescribeInstancePatchStatesForPatchGroupCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeInstancePatchStatesForPatchGroupCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeInstancePatchStatesForPatchGroupCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: models_0_1.DescribeInstancePatchStatesForPatchGroupResultFilterSensitiveLog, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DescribeInstancePatchStatesForPatchGroup", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_DescribeInstancePatchStatesForPatchGroupCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_DescribeInstancePatchStatesForPatchGroupCommand)(output, context); - } -} -exports.DescribeInstancePatchStatesForPatchGroupCommand = DescribeInstancePatchStatesForPatchGroupCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeInstancePatchesCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeInstancePatchesCommand.js deleted file mode 100644 index 6e4f3d9f..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeInstancePatchesCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DescribeInstancePatchesCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class DescribeInstancePatchesCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeInstancePatchesCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeInstancePatchesCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DescribeInstancePatches", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_DescribeInstancePatchesCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_DescribeInstancePatchesCommand)(output, context); - } -} -exports.DescribeInstancePatchesCommand = DescribeInstancePatchesCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeInventoryDeletionsCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeInventoryDeletionsCommand.js deleted file mode 100644 index 552b40e0..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeInventoryDeletionsCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DescribeInventoryDeletionsCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class DescribeInventoryDeletionsCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeInventoryDeletionsCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeInventoryDeletionsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DescribeInventoryDeletions", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_DescribeInventoryDeletionsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_DescribeInventoryDeletionsCommand)(output, context); - } -} -exports.DescribeInventoryDeletionsCommand = DescribeInventoryDeletionsCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeMaintenanceWindowExecutionTaskInvocationsCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeMaintenanceWindowExecutionTaskInvocationsCommand.js deleted file mode 100644 index 2b02c50c..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeMaintenanceWindowExecutionTaskInvocationsCommand.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DescribeMaintenanceWindowExecutionTaskInvocationsCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const models_0_1 = require("../models/models_0"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class DescribeMaintenanceWindowExecutionTaskInvocationsCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeMaintenanceWindowExecutionTaskInvocationsCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeMaintenanceWindowExecutionTaskInvocationsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: models_0_1.DescribeMaintenanceWindowExecutionTaskInvocationsResultFilterSensitiveLog, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DescribeMaintenanceWindowExecutionTaskInvocations", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_DescribeMaintenanceWindowExecutionTaskInvocationsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_DescribeMaintenanceWindowExecutionTaskInvocationsCommand)(output, context); - } -} -exports.DescribeMaintenanceWindowExecutionTaskInvocationsCommand = DescribeMaintenanceWindowExecutionTaskInvocationsCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeMaintenanceWindowExecutionTasksCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeMaintenanceWindowExecutionTasksCommand.js deleted file mode 100644 index f56865f5..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeMaintenanceWindowExecutionTasksCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DescribeMaintenanceWindowExecutionTasksCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class DescribeMaintenanceWindowExecutionTasksCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeMaintenanceWindowExecutionTasksCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeMaintenanceWindowExecutionTasksCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DescribeMaintenanceWindowExecutionTasks", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_DescribeMaintenanceWindowExecutionTasksCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_DescribeMaintenanceWindowExecutionTasksCommand)(output, context); - } -} -exports.DescribeMaintenanceWindowExecutionTasksCommand = DescribeMaintenanceWindowExecutionTasksCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeMaintenanceWindowExecutionsCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeMaintenanceWindowExecutionsCommand.js deleted file mode 100644 index c6a64bcb..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeMaintenanceWindowExecutionsCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DescribeMaintenanceWindowExecutionsCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class DescribeMaintenanceWindowExecutionsCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeMaintenanceWindowExecutionsCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeMaintenanceWindowExecutionsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DescribeMaintenanceWindowExecutions", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_DescribeMaintenanceWindowExecutionsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_DescribeMaintenanceWindowExecutionsCommand)(output, context); - } -} -exports.DescribeMaintenanceWindowExecutionsCommand = DescribeMaintenanceWindowExecutionsCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeMaintenanceWindowScheduleCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeMaintenanceWindowScheduleCommand.js deleted file mode 100644 index b7fae1e7..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeMaintenanceWindowScheduleCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DescribeMaintenanceWindowScheduleCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class DescribeMaintenanceWindowScheduleCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeMaintenanceWindowScheduleCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeMaintenanceWindowScheduleCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DescribeMaintenanceWindowSchedule", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_DescribeMaintenanceWindowScheduleCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_DescribeMaintenanceWindowScheduleCommand)(output, context); - } -} -exports.DescribeMaintenanceWindowScheduleCommand = DescribeMaintenanceWindowScheduleCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeMaintenanceWindowTargetsCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeMaintenanceWindowTargetsCommand.js deleted file mode 100644 index cd3c42e7..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeMaintenanceWindowTargetsCommand.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DescribeMaintenanceWindowTargetsCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const models_0_1 = require("../models/models_0"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class DescribeMaintenanceWindowTargetsCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeMaintenanceWindowTargetsCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeMaintenanceWindowTargetsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: models_0_1.DescribeMaintenanceWindowTargetsResultFilterSensitiveLog, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DescribeMaintenanceWindowTargets", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_DescribeMaintenanceWindowTargetsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_DescribeMaintenanceWindowTargetsCommand)(output, context); - } -} -exports.DescribeMaintenanceWindowTargetsCommand = DescribeMaintenanceWindowTargetsCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeMaintenanceWindowTasksCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeMaintenanceWindowTasksCommand.js deleted file mode 100644 index 0501a034..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeMaintenanceWindowTasksCommand.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DescribeMaintenanceWindowTasksCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const models_1_1 = require("../models/models_1"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class DescribeMaintenanceWindowTasksCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeMaintenanceWindowTasksCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeMaintenanceWindowTasksCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: models_1_1.DescribeMaintenanceWindowTasksResultFilterSensitiveLog, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DescribeMaintenanceWindowTasks", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_DescribeMaintenanceWindowTasksCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_DescribeMaintenanceWindowTasksCommand)(output, context); - } -} -exports.DescribeMaintenanceWindowTasksCommand = DescribeMaintenanceWindowTasksCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeMaintenanceWindowsCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeMaintenanceWindowsCommand.js deleted file mode 100644 index fedba5c2..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeMaintenanceWindowsCommand.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DescribeMaintenanceWindowsCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const models_0_1 = require("../models/models_0"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class DescribeMaintenanceWindowsCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeMaintenanceWindowsCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeMaintenanceWindowsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: models_0_1.DescribeMaintenanceWindowsResultFilterSensitiveLog, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DescribeMaintenanceWindows", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_DescribeMaintenanceWindowsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_DescribeMaintenanceWindowsCommand)(output, context); - } -} -exports.DescribeMaintenanceWindowsCommand = DescribeMaintenanceWindowsCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeMaintenanceWindowsForTargetCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeMaintenanceWindowsForTargetCommand.js deleted file mode 100644 index cfec5618..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeMaintenanceWindowsForTargetCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DescribeMaintenanceWindowsForTargetCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class DescribeMaintenanceWindowsForTargetCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeMaintenanceWindowsForTargetCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeMaintenanceWindowsForTargetCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DescribeMaintenanceWindowsForTarget", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_DescribeMaintenanceWindowsForTargetCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_DescribeMaintenanceWindowsForTargetCommand)(output, context); - } -} -exports.DescribeMaintenanceWindowsForTargetCommand = DescribeMaintenanceWindowsForTargetCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeOpsItemsCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeOpsItemsCommand.js deleted file mode 100644 index f235d45d..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeOpsItemsCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DescribeOpsItemsCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class DescribeOpsItemsCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeOpsItemsCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeOpsItemsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DescribeOpsItems", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_DescribeOpsItemsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_DescribeOpsItemsCommand)(output, context); - } -} -exports.DescribeOpsItemsCommand = DescribeOpsItemsCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeParametersCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeParametersCommand.js deleted file mode 100644 index 9bc63ecf..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeParametersCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DescribeParametersCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class DescribeParametersCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeParametersCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeParametersCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DescribeParameters", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_DescribeParametersCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_DescribeParametersCommand)(output, context); - } -} -exports.DescribeParametersCommand = DescribeParametersCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribePatchBaselinesCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribePatchBaselinesCommand.js deleted file mode 100644 index f3274554..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribePatchBaselinesCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DescribePatchBaselinesCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class DescribePatchBaselinesCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribePatchBaselinesCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribePatchBaselinesCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DescribePatchBaselines", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_DescribePatchBaselinesCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_DescribePatchBaselinesCommand)(output, context); - } -} -exports.DescribePatchBaselinesCommand = DescribePatchBaselinesCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribePatchGroupStateCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribePatchGroupStateCommand.js deleted file mode 100644 index 8eb7d85e..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribePatchGroupStateCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DescribePatchGroupStateCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class DescribePatchGroupStateCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribePatchGroupStateCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribePatchGroupStateCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DescribePatchGroupState", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_DescribePatchGroupStateCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_DescribePatchGroupStateCommand)(output, context); - } -} -exports.DescribePatchGroupStateCommand = DescribePatchGroupStateCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribePatchGroupsCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribePatchGroupsCommand.js deleted file mode 100644 index 10cc5cbd..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribePatchGroupsCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DescribePatchGroupsCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class DescribePatchGroupsCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribePatchGroupsCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribePatchGroupsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DescribePatchGroups", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_DescribePatchGroupsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_DescribePatchGroupsCommand)(output, context); - } -} -exports.DescribePatchGroupsCommand = DescribePatchGroupsCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribePatchPropertiesCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribePatchPropertiesCommand.js deleted file mode 100644 index 44509db5..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribePatchPropertiesCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DescribePatchPropertiesCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class DescribePatchPropertiesCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribePatchPropertiesCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribePatchPropertiesCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DescribePatchProperties", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_DescribePatchPropertiesCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_DescribePatchPropertiesCommand)(output, context); - } -} -exports.DescribePatchPropertiesCommand = DescribePatchPropertiesCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeSessionsCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeSessionsCommand.js deleted file mode 100644 index 739f8bb8..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DescribeSessionsCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DescribeSessionsCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class DescribeSessionsCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DescribeSessionsCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeSessionsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DescribeSessions", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_DescribeSessionsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_DescribeSessionsCommand)(output, context); - } -} -exports.DescribeSessionsCommand = DescribeSessionsCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DisassociateOpsItemRelatedItemCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DisassociateOpsItemRelatedItemCommand.js deleted file mode 100644 index deba4788..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/DisassociateOpsItemRelatedItemCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DisassociateOpsItemRelatedItemCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class DisassociateOpsItemRelatedItemCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DisassociateOpsItemRelatedItemCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DisassociateOpsItemRelatedItemCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DisassociateOpsItemRelatedItem", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_DisassociateOpsItemRelatedItemCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_DisassociateOpsItemRelatedItemCommand)(output, context); - } -} -exports.DisassociateOpsItemRelatedItemCommand = DisassociateOpsItemRelatedItemCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetAutomationExecutionCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetAutomationExecutionCommand.js deleted file mode 100644 index 47ecb172..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetAutomationExecutionCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GetAutomationExecutionCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class GetAutomationExecutionCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetAutomationExecutionCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetAutomationExecutionCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "GetAutomationExecution", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_GetAutomationExecutionCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_GetAutomationExecutionCommand)(output, context); - } -} -exports.GetAutomationExecutionCommand = GetAutomationExecutionCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetCalendarStateCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetCalendarStateCommand.js deleted file mode 100644 index 93cb32c6..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetCalendarStateCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GetCalendarStateCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class GetCalendarStateCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetCalendarStateCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetCalendarStateCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "GetCalendarState", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_GetCalendarStateCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_GetCalendarStateCommand)(output, context); - } -} -exports.GetCalendarStateCommand = GetCalendarStateCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetCommandInvocationCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetCommandInvocationCommand.js deleted file mode 100644 index 6f046ece..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetCommandInvocationCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GetCommandInvocationCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class GetCommandInvocationCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetCommandInvocationCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetCommandInvocationCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "GetCommandInvocation", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_GetCommandInvocationCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_GetCommandInvocationCommand)(output, context); - } -} -exports.GetCommandInvocationCommand = GetCommandInvocationCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetConnectionStatusCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetConnectionStatusCommand.js deleted file mode 100644 index 442c1561..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetConnectionStatusCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GetConnectionStatusCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class GetConnectionStatusCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetConnectionStatusCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetConnectionStatusCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "GetConnectionStatus", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_GetConnectionStatusCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_GetConnectionStatusCommand)(output, context); - } -} -exports.GetConnectionStatusCommand = GetConnectionStatusCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetDefaultPatchBaselineCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetDefaultPatchBaselineCommand.js deleted file mode 100644 index ca5c029e..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetDefaultPatchBaselineCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GetDefaultPatchBaselineCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class GetDefaultPatchBaselineCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetDefaultPatchBaselineCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetDefaultPatchBaselineCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "GetDefaultPatchBaseline", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_GetDefaultPatchBaselineCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_GetDefaultPatchBaselineCommand)(output, context); - } -} -exports.GetDefaultPatchBaselineCommand = GetDefaultPatchBaselineCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetDeployablePatchSnapshotForInstanceCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetDeployablePatchSnapshotForInstanceCommand.js deleted file mode 100644 index 77d9f115..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetDeployablePatchSnapshotForInstanceCommand.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GetDeployablePatchSnapshotForInstanceCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const models_1_1 = require("../models/models_1"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class GetDeployablePatchSnapshotForInstanceCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetDeployablePatchSnapshotForInstanceCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetDeployablePatchSnapshotForInstanceCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.GetDeployablePatchSnapshotForInstanceRequestFilterSensitiveLog, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "GetDeployablePatchSnapshotForInstance", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_GetDeployablePatchSnapshotForInstanceCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_GetDeployablePatchSnapshotForInstanceCommand)(output, context); - } -} -exports.GetDeployablePatchSnapshotForInstanceCommand = GetDeployablePatchSnapshotForInstanceCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetDocumentCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetDocumentCommand.js deleted file mode 100644 index 41ea0f53..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetDocumentCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GetDocumentCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class GetDocumentCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetDocumentCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetDocumentCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "GetDocument", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_GetDocumentCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_GetDocumentCommand)(output, context); - } -} -exports.GetDocumentCommand = GetDocumentCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetInventoryCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetInventoryCommand.js deleted file mode 100644 index 4753b017..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetInventoryCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GetInventoryCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class GetInventoryCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetInventoryCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetInventoryCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "GetInventory", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_GetInventoryCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_GetInventoryCommand)(output, context); - } -} -exports.GetInventoryCommand = GetInventoryCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetInventorySchemaCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetInventorySchemaCommand.js deleted file mode 100644 index 75358653..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetInventorySchemaCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GetInventorySchemaCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class GetInventorySchemaCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetInventorySchemaCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetInventorySchemaCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "GetInventorySchema", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_GetInventorySchemaCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_GetInventorySchemaCommand)(output, context); - } -} -exports.GetInventorySchemaCommand = GetInventorySchemaCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetMaintenanceWindowCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetMaintenanceWindowCommand.js deleted file mode 100644 index c9c067d8..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetMaintenanceWindowCommand.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GetMaintenanceWindowCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const models_1_1 = require("../models/models_1"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class GetMaintenanceWindowCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetMaintenanceWindowCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetMaintenanceWindowCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: models_1_1.GetMaintenanceWindowResultFilterSensitiveLog, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "GetMaintenanceWindow", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_GetMaintenanceWindowCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_GetMaintenanceWindowCommand)(output, context); - } -} -exports.GetMaintenanceWindowCommand = GetMaintenanceWindowCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetMaintenanceWindowExecutionCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetMaintenanceWindowExecutionCommand.js deleted file mode 100644 index 31ccb433..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetMaintenanceWindowExecutionCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GetMaintenanceWindowExecutionCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class GetMaintenanceWindowExecutionCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetMaintenanceWindowExecutionCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetMaintenanceWindowExecutionCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "GetMaintenanceWindowExecution", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_GetMaintenanceWindowExecutionCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_GetMaintenanceWindowExecutionCommand)(output, context); - } -} -exports.GetMaintenanceWindowExecutionCommand = GetMaintenanceWindowExecutionCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetMaintenanceWindowExecutionTaskCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetMaintenanceWindowExecutionTaskCommand.js deleted file mode 100644 index 172d3a59..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetMaintenanceWindowExecutionTaskCommand.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GetMaintenanceWindowExecutionTaskCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const models_1_1 = require("../models/models_1"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class GetMaintenanceWindowExecutionTaskCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetMaintenanceWindowExecutionTaskCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetMaintenanceWindowExecutionTaskCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: models_1_1.GetMaintenanceWindowExecutionTaskResultFilterSensitiveLog, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "GetMaintenanceWindowExecutionTask", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_GetMaintenanceWindowExecutionTaskCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_GetMaintenanceWindowExecutionTaskCommand)(output, context); - } -} -exports.GetMaintenanceWindowExecutionTaskCommand = GetMaintenanceWindowExecutionTaskCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetMaintenanceWindowExecutionTaskInvocationCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetMaintenanceWindowExecutionTaskInvocationCommand.js deleted file mode 100644 index 4811e4f1..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetMaintenanceWindowExecutionTaskInvocationCommand.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GetMaintenanceWindowExecutionTaskInvocationCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const models_1_1 = require("../models/models_1"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class GetMaintenanceWindowExecutionTaskInvocationCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetMaintenanceWindowExecutionTaskInvocationCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetMaintenanceWindowExecutionTaskInvocationCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: models_1_1.GetMaintenanceWindowExecutionTaskInvocationResultFilterSensitiveLog, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "GetMaintenanceWindowExecutionTaskInvocation", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_GetMaintenanceWindowExecutionTaskInvocationCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_GetMaintenanceWindowExecutionTaskInvocationCommand)(output, context); - } -} -exports.GetMaintenanceWindowExecutionTaskInvocationCommand = GetMaintenanceWindowExecutionTaskInvocationCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetMaintenanceWindowTaskCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetMaintenanceWindowTaskCommand.js deleted file mode 100644 index be278ffc..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetMaintenanceWindowTaskCommand.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GetMaintenanceWindowTaskCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const models_1_1 = require("../models/models_1"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class GetMaintenanceWindowTaskCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetMaintenanceWindowTaskCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetMaintenanceWindowTaskCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: models_1_1.GetMaintenanceWindowTaskResultFilterSensitiveLog, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "GetMaintenanceWindowTask", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_GetMaintenanceWindowTaskCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_GetMaintenanceWindowTaskCommand)(output, context); - } -} -exports.GetMaintenanceWindowTaskCommand = GetMaintenanceWindowTaskCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetOpsItemCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetOpsItemCommand.js deleted file mode 100644 index a0ea4e76..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetOpsItemCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GetOpsItemCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class GetOpsItemCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetOpsItemCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetOpsItemCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "GetOpsItem", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_GetOpsItemCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_GetOpsItemCommand)(output, context); - } -} -exports.GetOpsItemCommand = GetOpsItemCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetOpsMetadataCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetOpsMetadataCommand.js deleted file mode 100644 index 6e98ba29..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetOpsMetadataCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GetOpsMetadataCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class GetOpsMetadataCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetOpsMetadataCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetOpsMetadataCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "GetOpsMetadata", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_GetOpsMetadataCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_GetOpsMetadataCommand)(output, context); - } -} -exports.GetOpsMetadataCommand = GetOpsMetadataCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetOpsSummaryCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetOpsSummaryCommand.js deleted file mode 100644 index a7b93344..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetOpsSummaryCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GetOpsSummaryCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class GetOpsSummaryCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetOpsSummaryCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetOpsSummaryCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "GetOpsSummary", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_GetOpsSummaryCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_GetOpsSummaryCommand)(output, context); - } -} -exports.GetOpsSummaryCommand = GetOpsSummaryCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetParameterCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetParameterCommand.js deleted file mode 100644 index 7d09f077..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetParameterCommand.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GetParameterCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const models_1_1 = require("../models/models_1"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class GetParameterCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetParameterCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetParameterCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: models_1_1.GetParameterResultFilterSensitiveLog, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "GetParameter", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_GetParameterCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_GetParameterCommand)(output, context); - } -} -exports.GetParameterCommand = GetParameterCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetParameterHistoryCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetParameterHistoryCommand.js deleted file mode 100644 index 8a3974a3..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetParameterHistoryCommand.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GetParameterHistoryCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const models_1_1 = require("../models/models_1"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class GetParameterHistoryCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetParameterHistoryCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetParameterHistoryCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: models_1_1.GetParameterHistoryResultFilterSensitiveLog, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "GetParameterHistory", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_GetParameterHistoryCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_GetParameterHistoryCommand)(output, context); - } -} -exports.GetParameterHistoryCommand = GetParameterHistoryCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetParametersByPathCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetParametersByPathCommand.js deleted file mode 100644 index 7dd82ad7..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetParametersByPathCommand.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GetParametersByPathCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const models_1_1 = require("../models/models_1"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class GetParametersByPathCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetParametersByPathCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetParametersByPathCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: models_1_1.GetParametersByPathResultFilterSensitiveLog, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "GetParametersByPath", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_GetParametersByPathCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_GetParametersByPathCommand)(output, context); - } -} -exports.GetParametersByPathCommand = GetParametersByPathCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetParametersCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetParametersCommand.js deleted file mode 100644 index 92e71c4c..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetParametersCommand.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GetParametersCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const models_1_1 = require("../models/models_1"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class GetParametersCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetParametersCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetParametersCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: models_1_1.GetParametersResultFilterSensitiveLog, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "GetParameters", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_GetParametersCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_GetParametersCommand)(output, context); - } -} -exports.GetParametersCommand = GetParametersCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetPatchBaselineCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetPatchBaselineCommand.js deleted file mode 100644 index 8c495975..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetPatchBaselineCommand.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GetPatchBaselineCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const models_1_1 = require("../models/models_1"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class GetPatchBaselineCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetPatchBaselineCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetPatchBaselineCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: models_1_1.GetPatchBaselineResultFilterSensitiveLog, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "GetPatchBaseline", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_GetPatchBaselineCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_GetPatchBaselineCommand)(output, context); - } -} -exports.GetPatchBaselineCommand = GetPatchBaselineCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetPatchBaselineForPatchGroupCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetPatchBaselineForPatchGroupCommand.js deleted file mode 100644 index e798c141..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetPatchBaselineForPatchGroupCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GetPatchBaselineForPatchGroupCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class GetPatchBaselineForPatchGroupCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetPatchBaselineForPatchGroupCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetPatchBaselineForPatchGroupCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "GetPatchBaselineForPatchGroup", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_GetPatchBaselineForPatchGroupCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_GetPatchBaselineForPatchGroupCommand)(output, context); - } -} -exports.GetPatchBaselineForPatchGroupCommand = GetPatchBaselineForPatchGroupCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetResourcePoliciesCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetResourcePoliciesCommand.js deleted file mode 100644 index 0b6a2a8b..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetResourcePoliciesCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GetResourcePoliciesCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class GetResourcePoliciesCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetResourcePoliciesCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetResourcePoliciesCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "GetResourcePolicies", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_GetResourcePoliciesCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_GetResourcePoliciesCommand)(output, context); - } -} -exports.GetResourcePoliciesCommand = GetResourcePoliciesCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetServiceSettingCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetServiceSettingCommand.js deleted file mode 100644 index 8693de6e..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/GetServiceSettingCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GetServiceSettingCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class GetServiceSettingCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetServiceSettingCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetServiceSettingCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "GetServiceSetting", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_GetServiceSettingCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_GetServiceSettingCommand)(output, context); - } -} -exports.GetServiceSettingCommand = GetServiceSettingCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/LabelParameterVersionCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/LabelParameterVersionCommand.js deleted file mode 100644 index 38599c7e..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/LabelParameterVersionCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.LabelParameterVersionCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class LabelParameterVersionCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, LabelParameterVersionCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "LabelParameterVersionCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "LabelParameterVersion", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_LabelParameterVersionCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_LabelParameterVersionCommand)(output, context); - } -} -exports.LabelParameterVersionCommand = LabelParameterVersionCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/ListAssociationVersionsCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/ListAssociationVersionsCommand.js deleted file mode 100644 index efb070d5..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/ListAssociationVersionsCommand.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ListAssociationVersionsCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const models_1_1 = require("../models/models_1"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class ListAssociationVersionsCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListAssociationVersionsCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "ListAssociationVersionsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: models_1_1.ListAssociationVersionsResultFilterSensitiveLog, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "ListAssociationVersions", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_ListAssociationVersionsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_ListAssociationVersionsCommand)(output, context); - } -} -exports.ListAssociationVersionsCommand = ListAssociationVersionsCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/ListAssociationsCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/ListAssociationsCommand.js deleted file mode 100644 index 00ace671..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/ListAssociationsCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ListAssociationsCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class ListAssociationsCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListAssociationsCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "ListAssociationsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "ListAssociations", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_ListAssociationsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_ListAssociationsCommand)(output, context); - } -} -exports.ListAssociationsCommand = ListAssociationsCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/ListCommandInvocationsCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/ListCommandInvocationsCommand.js deleted file mode 100644 index c1476ae5..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/ListCommandInvocationsCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ListCommandInvocationsCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class ListCommandInvocationsCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListCommandInvocationsCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "ListCommandInvocationsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "ListCommandInvocations", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_ListCommandInvocationsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_ListCommandInvocationsCommand)(output, context); - } -} -exports.ListCommandInvocationsCommand = ListCommandInvocationsCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/ListCommandsCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/ListCommandsCommand.js deleted file mode 100644 index d96b8b29..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/ListCommandsCommand.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ListCommandsCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const models_1_1 = require("../models/models_1"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class ListCommandsCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListCommandsCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "ListCommandsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: models_1_1.ListCommandsResultFilterSensitiveLog, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "ListCommands", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_ListCommandsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_ListCommandsCommand)(output, context); - } -} -exports.ListCommandsCommand = ListCommandsCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/ListComplianceItemsCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/ListComplianceItemsCommand.js deleted file mode 100644 index 8055a797..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/ListComplianceItemsCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ListComplianceItemsCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class ListComplianceItemsCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListComplianceItemsCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "ListComplianceItemsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "ListComplianceItems", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_ListComplianceItemsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_ListComplianceItemsCommand)(output, context); - } -} -exports.ListComplianceItemsCommand = ListComplianceItemsCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/ListComplianceSummariesCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/ListComplianceSummariesCommand.js deleted file mode 100644 index b12cea93..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/ListComplianceSummariesCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ListComplianceSummariesCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class ListComplianceSummariesCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListComplianceSummariesCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "ListComplianceSummariesCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "ListComplianceSummaries", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_ListComplianceSummariesCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_ListComplianceSummariesCommand)(output, context); - } -} -exports.ListComplianceSummariesCommand = ListComplianceSummariesCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/ListDocumentMetadataHistoryCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/ListDocumentMetadataHistoryCommand.js deleted file mode 100644 index a9fbf99d..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/ListDocumentMetadataHistoryCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ListDocumentMetadataHistoryCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class ListDocumentMetadataHistoryCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListDocumentMetadataHistoryCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "ListDocumentMetadataHistoryCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "ListDocumentMetadataHistory", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_ListDocumentMetadataHistoryCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_ListDocumentMetadataHistoryCommand)(output, context); - } -} -exports.ListDocumentMetadataHistoryCommand = ListDocumentMetadataHistoryCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/ListDocumentVersionsCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/ListDocumentVersionsCommand.js deleted file mode 100644 index 9908f804..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/ListDocumentVersionsCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ListDocumentVersionsCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class ListDocumentVersionsCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListDocumentVersionsCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "ListDocumentVersionsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "ListDocumentVersions", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_ListDocumentVersionsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_ListDocumentVersionsCommand)(output, context); - } -} -exports.ListDocumentVersionsCommand = ListDocumentVersionsCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/ListDocumentsCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/ListDocumentsCommand.js deleted file mode 100644 index cece56b5..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/ListDocumentsCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ListDocumentsCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class ListDocumentsCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListDocumentsCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "ListDocumentsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "ListDocuments", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_ListDocumentsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_ListDocumentsCommand)(output, context); - } -} -exports.ListDocumentsCommand = ListDocumentsCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/ListInventoryEntriesCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/ListInventoryEntriesCommand.js deleted file mode 100644 index 966e8106..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/ListInventoryEntriesCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ListInventoryEntriesCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class ListInventoryEntriesCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListInventoryEntriesCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "ListInventoryEntriesCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "ListInventoryEntries", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_ListInventoryEntriesCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_ListInventoryEntriesCommand)(output, context); - } -} -exports.ListInventoryEntriesCommand = ListInventoryEntriesCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/ListOpsItemEventsCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/ListOpsItemEventsCommand.js deleted file mode 100644 index a34c71df..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/ListOpsItemEventsCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ListOpsItemEventsCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class ListOpsItemEventsCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListOpsItemEventsCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "ListOpsItemEventsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "ListOpsItemEvents", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_ListOpsItemEventsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_ListOpsItemEventsCommand)(output, context); - } -} -exports.ListOpsItemEventsCommand = ListOpsItemEventsCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/ListOpsItemRelatedItemsCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/ListOpsItemRelatedItemsCommand.js deleted file mode 100644 index 59276cd4..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/ListOpsItemRelatedItemsCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ListOpsItemRelatedItemsCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class ListOpsItemRelatedItemsCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListOpsItemRelatedItemsCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "ListOpsItemRelatedItemsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "ListOpsItemRelatedItems", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_ListOpsItemRelatedItemsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_ListOpsItemRelatedItemsCommand)(output, context); - } -} -exports.ListOpsItemRelatedItemsCommand = ListOpsItemRelatedItemsCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/ListOpsMetadataCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/ListOpsMetadataCommand.js deleted file mode 100644 index 275e773e..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/ListOpsMetadataCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ListOpsMetadataCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class ListOpsMetadataCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListOpsMetadataCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "ListOpsMetadataCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "ListOpsMetadata", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_ListOpsMetadataCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_ListOpsMetadataCommand)(output, context); - } -} -exports.ListOpsMetadataCommand = ListOpsMetadataCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/ListResourceComplianceSummariesCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/ListResourceComplianceSummariesCommand.js deleted file mode 100644 index 9166def1..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/ListResourceComplianceSummariesCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ListResourceComplianceSummariesCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class ListResourceComplianceSummariesCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListResourceComplianceSummariesCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "ListResourceComplianceSummariesCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "ListResourceComplianceSummaries", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_ListResourceComplianceSummariesCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_ListResourceComplianceSummariesCommand)(output, context); - } -} -exports.ListResourceComplianceSummariesCommand = ListResourceComplianceSummariesCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/ListResourceDataSyncCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/ListResourceDataSyncCommand.js deleted file mode 100644 index d9919767..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/ListResourceDataSyncCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ListResourceDataSyncCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class ListResourceDataSyncCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListResourceDataSyncCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "ListResourceDataSyncCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "ListResourceDataSync", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_ListResourceDataSyncCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_ListResourceDataSyncCommand)(output, context); - } -} -exports.ListResourceDataSyncCommand = ListResourceDataSyncCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/ListTagsForResourceCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/ListTagsForResourceCommand.js deleted file mode 100644 index 2ea81130..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/ListTagsForResourceCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ListTagsForResourceCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class ListTagsForResourceCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListTagsForResourceCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "ListTagsForResourceCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "ListTagsForResource", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_ListTagsForResourceCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_ListTagsForResourceCommand)(output, context); - } -} -exports.ListTagsForResourceCommand = ListTagsForResourceCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/ModifyDocumentPermissionCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/ModifyDocumentPermissionCommand.js deleted file mode 100644 index fdb9098a..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/ModifyDocumentPermissionCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ModifyDocumentPermissionCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class ModifyDocumentPermissionCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ModifyDocumentPermissionCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "ModifyDocumentPermissionCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "ModifyDocumentPermission", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_ModifyDocumentPermissionCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_ModifyDocumentPermissionCommand)(output, context); - } -} -exports.ModifyDocumentPermissionCommand = ModifyDocumentPermissionCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/PutComplianceItemsCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/PutComplianceItemsCommand.js deleted file mode 100644 index 96f9534f..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/PutComplianceItemsCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.PutComplianceItemsCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class PutComplianceItemsCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, PutComplianceItemsCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "PutComplianceItemsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "PutComplianceItems", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_PutComplianceItemsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_PutComplianceItemsCommand)(output, context); - } -} -exports.PutComplianceItemsCommand = PutComplianceItemsCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/PutInventoryCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/PutInventoryCommand.js deleted file mode 100644 index ff233af0..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/PutInventoryCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.PutInventoryCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class PutInventoryCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, PutInventoryCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "PutInventoryCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "PutInventory", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_PutInventoryCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_PutInventoryCommand)(output, context); - } -} -exports.PutInventoryCommand = PutInventoryCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/PutParameterCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/PutParameterCommand.js deleted file mode 100644 index abce8c9b..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/PutParameterCommand.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.PutParameterCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const models_1_1 = require("../models/models_1"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class PutParameterCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, PutParameterCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "PutParameterCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.PutParameterRequestFilterSensitiveLog, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "PutParameter", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_PutParameterCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_PutParameterCommand)(output, context); - } -} -exports.PutParameterCommand = PutParameterCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/PutResourcePolicyCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/PutResourcePolicyCommand.js deleted file mode 100644 index b2eb2003..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/PutResourcePolicyCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.PutResourcePolicyCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class PutResourcePolicyCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, PutResourcePolicyCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "PutResourcePolicyCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "PutResourcePolicy", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_PutResourcePolicyCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_PutResourcePolicyCommand)(output, context); - } -} -exports.PutResourcePolicyCommand = PutResourcePolicyCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/RegisterDefaultPatchBaselineCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/RegisterDefaultPatchBaselineCommand.js deleted file mode 100644 index ee010d27..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/RegisterDefaultPatchBaselineCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.RegisterDefaultPatchBaselineCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class RegisterDefaultPatchBaselineCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, RegisterDefaultPatchBaselineCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "RegisterDefaultPatchBaselineCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "RegisterDefaultPatchBaseline", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_RegisterDefaultPatchBaselineCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_RegisterDefaultPatchBaselineCommand)(output, context); - } -} -exports.RegisterDefaultPatchBaselineCommand = RegisterDefaultPatchBaselineCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/RegisterPatchBaselineForPatchGroupCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/RegisterPatchBaselineForPatchGroupCommand.js deleted file mode 100644 index 0fb8bb4d..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/RegisterPatchBaselineForPatchGroupCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.RegisterPatchBaselineForPatchGroupCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class RegisterPatchBaselineForPatchGroupCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, RegisterPatchBaselineForPatchGroupCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "RegisterPatchBaselineForPatchGroupCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "RegisterPatchBaselineForPatchGroup", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_RegisterPatchBaselineForPatchGroupCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_RegisterPatchBaselineForPatchGroupCommand)(output, context); - } -} -exports.RegisterPatchBaselineForPatchGroupCommand = RegisterPatchBaselineForPatchGroupCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/RegisterTargetWithMaintenanceWindowCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/RegisterTargetWithMaintenanceWindowCommand.js deleted file mode 100644 index 6329727a..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/RegisterTargetWithMaintenanceWindowCommand.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.RegisterTargetWithMaintenanceWindowCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const models_1_1 = require("../models/models_1"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class RegisterTargetWithMaintenanceWindowCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, RegisterTargetWithMaintenanceWindowCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "RegisterTargetWithMaintenanceWindowCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.RegisterTargetWithMaintenanceWindowRequestFilterSensitiveLog, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "RegisterTargetWithMaintenanceWindow", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_RegisterTargetWithMaintenanceWindowCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_RegisterTargetWithMaintenanceWindowCommand)(output, context); - } -} -exports.RegisterTargetWithMaintenanceWindowCommand = RegisterTargetWithMaintenanceWindowCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/RegisterTaskWithMaintenanceWindowCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/RegisterTaskWithMaintenanceWindowCommand.js deleted file mode 100644 index 8476822b..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/RegisterTaskWithMaintenanceWindowCommand.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.RegisterTaskWithMaintenanceWindowCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const models_1_1 = require("../models/models_1"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class RegisterTaskWithMaintenanceWindowCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, RegisterTaskWithMaintenanceWindowCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "RegisterTaskWithMaintenanceWindowCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.RegisterTaskWithMaintenanceWindowRequestFilterSensitiveLog, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "RegisterTaskWithMaintenanceWindow", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_RegisterTaskWithMaintenanceWindowCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_RegisterTaskWithMaintenanceWindowCommand)(output, context); - } -} -exports.RegisterTaskWithMaintenanceWindowCommand = RegisterTaskWithMaintenanceWindowCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/RemoveTagsFromResourceCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/RemoveTagsFromResourceCommand.js deleted file mode 100644 index 5bdfdd22..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/RemoveTagsFromResourceCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.RemoveTagsFromResourceCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class RemoveTagsFromResourceCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, RemoveTagsFromResourceCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "RemoveTagsFromResourceCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "RemoveTagsFromResource", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_RemoveTagsFromResourceCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_RemoveTagsFromResourceCommand)(output, context); - } -} -exports.RemoveTagsFromResourceCommand = RemoveTagsFromResourceCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/ResetServiceSettingCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/ResetServiceSettingCommand.js deleted file mode 100644 index ec03064a..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/ResetServiceSettingCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ResetServiceSettingCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class ResetServiceSettingCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ResetServiceSettingCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "ResetServiceSettingCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "ResetServiceSetting", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_ResetServiceSettingCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_ResetServiceSettingCommand)(output, context); - } -} -exports.ResetServiceSettingCommand = ResetServiceSettingCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/ResumeSessionCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/ResumeSessionCommand.js deleted file mode 100644 index a931e63c..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/ResumeSessionCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ResumeSessionCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class ResumeSessionCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ResumeSessionCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "ResumeSessionCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "ResumeSession", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_ResumeSessionCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_ResumeSessionCommand)(output, context); - } -} -exports.ResumeSessionCommand = ResumeSessionCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/SendAutomationSignalCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/SendAutomationSignalCommand.js deleted file mode 100644 index db7035f6..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/SendAutomationSignalCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SendAutomationSignalCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class SendAutomationSignalCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, SendAutomationSignalCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "SendAutomationSignalCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "SendAutomationSignal", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_SendAutomationSignalCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_SendAutomationSignalCommand)(output, context); - } -} -exports.SendAutomationSignalCommand = SendAutomationSignalCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/SendCommandCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/SendCommandCommand.js deleted file mode 100644 index b956514b..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/SendCommandCommand.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SendCommandCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const models_1_1 = require("../models/models_1"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class SendCommandCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, SendCommandCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "SendCommandCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_1_1.SendCommandRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_1_1.SendCommandResultFilterSensitiveLog, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "SendCommand", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_SendCommandCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_SendCommandCommand)(output, context); - } -} -exports.SendCommandCommand = SendCommandCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/StartAssociationsOnceCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/StartAssociationsOnceCommand.js deleted file mode 100644 index 2da8a576..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/StartAssociationsOnceCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.StartAssociationsOnceCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class StartAssociationsOnceCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, StartAssociationsOnceCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "StartAssociationsOnceCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "StartAssociationsOnce", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_StartAssociationsOnceCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_StartAssociationsOnceCommand)(output, context); - } -} -exports.StartAssociationsOnceCommand = StartAssociationsOnceCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/StartAutomationExecutionCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/StartAutomationExecutionCommand.js deleted file mode 100644 index 840b656b..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/StartAutomationExecutionCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.StartAutomationExecutionCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class StartAutomationExecutionCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, StartAutomationExecutionCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "StartAutomationExecutionCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "StartAutomationExecution", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_StartAutomationExecutionCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_StartAutomationExecutionCommand)(output, context); - } -} -exports.StartAutomationExecutionCommand = StartAutomationExecutionCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/StartChangeRequestExecutionCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/StartChangeRequestExecutionCommand.js deleted file mode 100644 index bbc8b43b..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/StartChangeRequestExecutionCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.StartChangeRequestExecutionCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class StartChangeRequestExecutionCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, StartChangeRequestExecutionCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "StartChangeRequestExecutionCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "StartChangeRequestExecution", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_StartChangeRequestExecutionCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_StartChangeRequestExecutionCommand)(output, context); - } -} -exports.StartChangeRequestExecutionCommand = StartChangeRequestExecutionCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/StartSessionCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/StartSessionCommand.js deleted file mode 100644 index 463d70cc..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/StartSessionCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.StartSessionCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class StartSessionCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, StartSessionCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "StartSessionCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "StartSession", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_StartSessionCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_StartSessionCommand)(output, context); - } -} -exports.StartSessionCommand = StartSessionCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/StopAutomationExecutionCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/StopAutomationExecutionCommand.js deleted file mode 100644 index 32ca722c..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/StopAutomationExecutionCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.StopAutomationExecutionCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class StopAutomationExecutionCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, StopAutomationExecutionCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "StopAutomationExecutionCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "StopAutomationExecution", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_StopAutomationExecutionCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_StopAutomationExecutionCommand)(output, context); - } -} -exports.StopAutomationExecutionCommand = StopAutomationExecutionCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/TerminateSessionCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/TerminateSessionCommand.js deleted file mode 100644 index c9795ef7..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/TerminateSessionCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TerminateSessionCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class TerminateSessionCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, TerminateSessionCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "TerminateSessionCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "TerminateSession", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_TerminateSessionCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_TerminateSessionCommand)(output, context); - } -} -exports.TerminateSessionCommand = TerminateSessionCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/UnlabelParameterVersionCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/UnlabelParameterVersionCommand.js deleted file mode 100644 index 8c68356f..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/UnlabelParameterVersionCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.UnlabelParameterVersionCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class UnlabelParameterVersionCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UnlabelParameterVersionCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "UnlabelParameterVersionCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "UnlabelParameterVersion", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_UnlabelParameterVersionCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_UnlabelParameterVersionCommand)(output, context); - } -} -exports.UnlabelParameterVersionCommand = UnlabelParameterVersionCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/UpdateAssociationCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/UpdateAssociationCommand.js deleted file mode 100644 index d9b80dd1..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/UpdateAssociationCommand.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.UpdateAssociationCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const models_2_1 = require("../models/models_2"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class UpdateAssociationCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateAssociationCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "UpdateAssociationCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_2_1.UpdateAssociationRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_2_1.UpdateAssociationResultFilterSensitiveLog, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "UpdateAssociation", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_UpdateAssociationCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_UpdateAssociationCommand)(output, context); - } -} -exports.UpdateAssociationCommand = UpdateAssociationCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/UpdateAssociationStatusCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/UpdateAssociationStatusCommand.js deleted file mode 100644 index 663b7b3f..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/UpdateAssociationStatusCommand.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.UpdateAssociationStatusCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const models_2_1 = require("../models/models_2"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class UpdateAssociationStatusCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateAssociationStatusCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "UpdateAssociationStatusCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: models_2_1.UpdateAssociationStatusResultFilterSensitiveLog, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "UpdateAssociationStatus", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_UpdateAssociationStatusCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_UpdateAssociationStatusCommand)(output, context); - } -} -exports.UpdateAssociationStatusCommand = UpdateAssociationStatusCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/UpdateDocumentCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/UpdateDocumentCommand.js deleted file mode 100644 index bc2d0181..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/UpdateDocumentCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.UpdateDocumentCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class UpdateDocumentCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateDocumentCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "UpdateDocumentCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "UpdateDocument", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_UpdateDocumentCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_UpdateDocumentCommand)(output, context); - } -} -exports.UpdateDocumentCommand = UpdateDocumentCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/UpdateDocumentDefaultVersionCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/UpdateDocumentDefaultVersionCommand.js deleted file mode 100644 index 9fab5d77..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/UpdateDocumentDefaultVersionCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.UpdateDocumentDefaultVersionCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class UpdateDocumentDefaultVersionCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateDocumentDefaultVersionCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "UpdateDocumentDefaultVersionCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "UpdateDocumentDefaultVersion", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_UpdateDocumentDefaultVersionCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_UpdateDocumentDefaultVersionCommand)(output, context); - } -} -exports.UpdateDocumentDefaultVersionCommand = UpdateDocumentDefaultVersionCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/UpdateDocumentMetadataCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/UpdateDocumentMetadataCommand.js deleted file mode 100644 index ddfdb4bd..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/UpdateDocumentMetadataCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.UpdateDocumentMetadataCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class UpdateDocumentMetadataCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateDocumentMetadataCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "UpdateDocumentMetadataCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "UpdateDocumentMetadata", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_UpdateDocumentMetadataCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_UpdateDocumentMetadataCommand)(output, context); - } -} -exports.UpdateDocumentMetadataCommand = UpdateDocumentMetadataCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/UpdateMaintenanceWindowCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/UpdateMaintenanceWindowCommand.js deleted file mode 100644 index c3826fd3..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/UpdateMaintenanceWindowCommand.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.UpdateMaintenanceWindowCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const models_2_1 = require("../models/models_2"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class UpdateMaintenanceWindowCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateMaintenanceWindowCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "UpdateMaintenanceWindowCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_2_1.UpdateMaintenanceWindowRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_2_1.UpdateMaintenanceWindowResultFilterSensitiveLog, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "UpdateMaintenanceWindow", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_UpdateMaintenanceWindowCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_UpdateMaintenanceWindowCommand)(output, context); - } -} -exports.UpdateMaintenanceWindowCommand = UpdateMaintenanceWindowCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/UpdateMaintenanceWindowTargetCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/UpdateMaintenanceWindowTargetCommand.js deleted file mode 100644 index a9329a6e..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/UpdateMaintenanceWindowTargetCommand.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.UpdateMaintenanceWindowTargetCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const models_2_1 = require("../models/models_2"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class UpdateMaintenanceWindowTargetCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateMaintenanceWindowTargetCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "UpdateMaintenanceWindowTargetCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_2_1.UpdateMaintenanceWindowTargetRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_2_1.UpdateMaintenanceWindowTargetResultFilterSensitiveLog, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "UpdateMaintenanceWindowTarget", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_UpdateMaintenanceWindowTargetCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_UpdateMaintenanceWindowTargetCommand)(output, context); - } -} -exports.UpdateMaintenanceWindowTargetCommand = UpdateMaintenanceWindowTargetCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/UpdateMaintenanceWindowTaskCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/UpdateMaintenanceWindowTaskCommand.js deleted file mode 100644 index cfd82952..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/UpdateMaintenanceWindowTaskCommand.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.UpdateMaintenanceWindowTaskCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const models_2_1 = require("../models/models_2"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class UpdateMaintenanceWindowTaskCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateMaintenanceWindowTaskCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "UpdateMaintenanceWindowTaskCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_2_1.UpdateMaintenanceWindowTaskRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_2_1.UpdateMaintenanceWindowTaskResultFilterSensitiveLog, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "UpdateMaintenanceWindowTask", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_UpdateMaintenanceWindowTaskCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_UpdateMaintenanceWindowTaskCommand)(output, context); - } -} -exports.UpdateMaintenanceWindowTaskCommand = UpdateMaintenanceWindowTaskCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/UpdateManagedInstanceRoleCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/UpdateManagedInstanceRoleCommand.js deleted file mode 100644 index 350fccd3..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/UpdateManagedInstanceRoleCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.UpdateManagedInstanceRoleCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class UpdateManagedInstanceRoleCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateManagedInstanceRoleCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "UpdateManagedInstanceRoleCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "UpdateManagedInstanceRole", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_UpdateManagedInstanceRoleCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_UpdateManagedInstanceRoleCommand)(output, context); - } -} -exports.UpdateManagedInstanceRoleCommand = UpdateManagedInstanceRoleCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/UpdateOpsItemCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/UpdateOpsItemCommand.js deleted file mode 100644 index c4f632c9..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/UpdateOpsItemCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.UpdateOpsItemCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class UpdateOpsItemCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateOpsItemCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "UpdateOpsItemCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "UpdateOpsItem", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_UpdateOpsItemCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_UpdateOpsItemCommand)(output, context); - } -} -exports.UpdateOpsItemCommand = UpdateOpsItemCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/UpdateOpsMetadataCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/UpdateOpsMetadataCommand.js deleted file mode 100644 index 46c12359..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/UpdateOpsMetadataCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.UpdateOpsMetadataCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class UpdateOpsMetadataCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateOpsMetadataCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "UpdateOpsMetadataCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "UpdateOpsMetadata", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_UpdateOpsMetadataCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_UpdateOpsMetadataCommand)(output, context); - } -} -exports.UpdateOpsMetadataCommand = UpdateOpsMetadataCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/UpdatePatchBaselineCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/UpdatePatchBaselineCommand.js deleted file mode 100644 index b667bffe..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/UpdatePatchBaselineCommand.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.UpdatePatchBaselineCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const models_2_1 = require("../models/models_2"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class UpdatePatchBaselineCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdatePatchBaselineCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "UpdatePatchBaselineCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_2_1.UpdatePatchBaselineRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_2_1.UpdatePatchBaselineResultFilterSensitiveLog, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "UpdatePatchBaseline", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_UpdatePatchBaselineCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_UpdatePatchBaselineCommand)(output, context); - } -} -exports.UpdatePatchBaselineCommand = UpdatePatchBaselineCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/UpdateResourceDataSyncCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/UpdateResourceDataSyncCommand.js deleted file mode 100644 index 38c99d52..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/UpdateResourceDataSyncCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.UpdateResourceDataSyncCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class UpdateResourceDataSyncCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateResourceDataSyncCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "UpdateResourceDataSyncCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "UpdateResourceDataSync", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_UpdateResourceDataSyncCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_UpdateResourceDataSyncCommand)(output, context); - } -} -exports.UpdateResourceDataSyncCommand = UpdateResourceDataSyncCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/UpdateServiceSettingCommand.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/UpdateServiceSettingCommand.js deleted file mode 100644 index 9ce1041b..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/UpdateServiceSettingCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.UpdateServiceSettingCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_json1_1_1 = require("../protocols/Aws_json1_1"); -class UpdateServiceSettingCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, UpdateServiceSettingCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "UpdateServiceSettingCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "UpdateServiceSetting", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_json1_1_1.se_UpdateServiceSettingCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_json1_1_1.de_UpdateServiceSettingCommand)(output, context); - } -} -exports.UpdateServiceSettingCommand = UpdateServiceSettingCommand; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/index.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/index.js deleted file mode 100644 index 8663bb47..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/commands/index.js +++ /dev/null @@ -1,142 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./AddTagsToResourceCommand"), exports); -tslib_1.__exportStar(require("./AssociateOpsItemRelatedItemCommand"), exports); -tslib_1.__exportStar(require("./CancelCommandCommand"), exports); -tslib_1.__exportStar(require("./CancelMaintenanceWindowExecutionCommand"), exports); -tslib_1.__exportStar(require("./CreateActivationCommand"), exports); -tslib_1.__exportStar(require("./CreateAssociationBatchCommand"), exports); -tslib_1.__exportStar(require("./CreateAssociationCommand"), exports); -tslib_1.__exportStar(require("./CreateDocumentCommand"), exports); -tslib_1.__exportStar(require("./CreateMaintenanceWindowCommand"), exports); -tslib_1.__exportStar(require("./CreateOpsItemCommand"), exports); -tslib_1.__exportStar(require("./CreateOpsMetadataCommand"), exports); -tslib_1.__exportStar(require("./CreatePatchBaselineCommand"), exports); -tslib_1.__exportStar(require("./CreateResourceDataSyncCommand"), exports); -tslib_1.__exportStar(require("./DeleteActivationCommand"), exports); -tslib_1.__exportStar(require("./DeleteAssociationCommand"), exports); -tslib_1.__exportStar(require("./DeleteDocumentCommand"), exports); -tslib_1.__exportStar(require("./DeleteInventoryCommand"), exports); -tslib_1.__exportStar(require("./DeleteMaintenanceWindowCommand"), exports); -tslib_1.__exportStar(require("./DeleteOpsItemCommand"), exports); -tslib_1.__exportStar(require("./DeleteOpsMetadataCommand"), exports); -tslib_1.__exportStar(require("./DeleteParameterCommand"), exports); -tslib_1.__exportStar(require("./DeleteParametersCommand"), exports); -tslib_1.__exportStar(require("./DeletePatchBaselineCommand"), exports); -tslib_1.__exportStar(require("./DeleteResourceDataSyncCommand"), exports); -tslib_1.__exportStar(require("./DeleteResourcePolicyCommand"), exports); -tslib_1.__exportStar(require("./DeregisterManagedInstanceCommand"), exports); -tslib_1.__exportStar(require("./DeregisterPatchBaselineForPatchGroupCommand"), exports); -tslib_1.__exportStar(require("./DeregisterTargetFromMaintenanceWindowCommand"), exports); -tslib_1.__exportStar(require("./DeregisterTaskFromMaintenanceWindowCommand"), exports); -tslib_1.__exportStar(require("./DescribeActivationsCommand"), exports); -tslib_1.__exportStar(require("./DescribeAssociationCommand"), exports); -tslib_1.__exportStar(require("./DescribeAssociationExecutionTargetsCommand"), exports); -tslib_1.__exportStar(require("./DescribeAssociationExecutionsCommand"), exports); -tslib_1.__exportStar(require("./DescribeAutomationExecutionsCommand"), exports); -tslib_1.__exportStar(require("./DescribeAutomationStepExecutionsCommand"), exports); -tslib_1.__exportStar(require("./DescribeAvailablePatchesCommand"), exports); -tslib_1.__exportStar(require("./DescribeDocumentCommand"), exports); -tslib_1.__exportStar(require("./DescribeDocumentPermissionCommand"), exports); -tslib_1.__exportStar(require("./DescribeEffectiveInstanceAssociationsCommand"), exports); -tslib_1.__exportStar(require("./DescribeEffectivePatchesForPatchBaselineCommand"), exports); -tslib_1.__exportStar(require("./DescribeInstanceAssociationsStatusCommand"), exports); -tslib_1.__exportStar(require("./DescribeInstanceInformationCommand"), exports); -tslib_1.__exportStar(require("./DescribeInstancePatchStatesCommand"), exports); -tslib_1.__exportStar(require("./DescribeInstancePatchStatesForPatchGroupCommand"), exports); -tslib_1.__exportStar(require("./DescribeInstancePatchesCommand"), exports); -tslib_1.__exportStar(require("./DescribeInventoryDeletionsCommand"), exports); -tslib_1.__exportStar(require("./DescribeMaintenanceWindowExecutionTaskInvocationsCommand"), exports); -tslib_1.__exportStar(require("./DescribeMaintenanceWindowExecutionTasksCommand"), exports); -tslib_1.__exportStar(require("./DescribeMaintenanceWindowExecutionsCommand"), exports); -tslib_1.__exportStar(require("./DescribeMaintenanceWindowScheduleCommand"), exports); -tslib_1.__exportStar(require("./DescribeMaintenanceWindowTargetsCommand"), exports); -tslib_1.__exportStar(require("./DescribeMaintenanceWindowTasksCommand"), exports); -tslib_1.__exportStar(require("./DescribeMaintenanceWindowsCommand"), exports); -tslib_1.__exportStar(require("./DescribeMaintenanceWindowsForTargetCommand"), exports); -tslib_1.__exportStar(require("./DescribeOpsItemsCommand"), exports); -tslib_1.__exportStar(require("./DescribeParametersCommand"), exports); -tslib_1.__exportStar(require("./DescribePatchBaselinesCommand"), exports); -tslib_1.__exportStar(require("./DescribePatchGroupStateCommand"), exports); -tslib_1.__exportStar(require("./DescribePatchGroupsCommand"), exports); -tslib_1.__exportStar(require("./DescribePatchPropertiesCommand"), exports); -tslib_1.__exportStar(require("./DescribeSessionsCommand"), exports); -tslib_1.__exportStar(require("./DisassociateOpsItemRelatedItemCommand"), exports); -tslib_1.__exportStar(require("./GetAutomationExecutionCommand"), exports); -tslib_1.__exportStar(require("./GetCalendarStateCommand"), exports); -tslib_1.__exportStar(require("./GetCommandInvocationCommand"), exports); -tslib_1.__exportStar(require("./GetConnectionStatusCommand"), exports); -tslib_1.__exportStar(require("./GetDefaultPatchBaselineCommand"), exports); -tslib_1.__exportStar(require("./GetDeployablePatchSnapshotForInstanceCommand"), exports); -tslib_1.__exportStar(require("./GetDocumentCommand"), exports); -tslib_1.__exportStar(require("./GetInventoryCommand"), exports); -tslib_1.__exportStar(require("./GetInventorySchemaCommand"), exports); -tslib_1.__exportStar(require("./GetMaintenanceWindowCommand"), exports); -tslib_1.__exportStar(require("./GetMaintenanceWindowExecutionCommand"), exports); -tslib_1.__exportStar(require("./GetMaintenanceWindowExecutionTaskCommand"), exports); -tslib_1.__exportStar(require("./GetMaintenanceWindowExecutionTaskInvocationCommand"), exports); -tslib_1.__exportStar(require("./GetMaintenanceWindowTaskCommand"), exports); -tslib_1.__exportStar(require("./GetOpsItemCommand"), exports); -tslib_1.__exportStar(require("./GetOpsMetadataCommand"), exports); -tslib_1.__exportStar(require("./GetOpsSummaryCommand"), exports); -tslib_1.__exportStar(require("./GetParameterCommand"), exports); -tslib_1.__exportStar(require("./GetParameterHistoryCommand"), exports); -tslib_1.__exportStar(require("./GetParametersByPathCommand"), exports); -tslib_1.__exportStar(require("./GetParametersCommand"), exports); -tslib_1.__exportStar(require("./GetPatchBaselineCommand"), exports); -tslib_1.__exportStar(require("./GetPatchBaselineForPatchGroupCommand"), exports); -tslib_1.__exportStar(require("./GetResourcePoliciesCommand"), exports); -tslib_1.__exportStar(require("./GetServiceSettingCommand"), exports); -tslib_1.__exportStar(require("./LabelParameterVersionCommand"), exports); -tslib_1.__exportStar(require("./ListAssociationVersionsCommand"), exports); -tslib_1.__exportStar(require("./ListAssociationsCommand"), exports); -tslib_1.__exportStar(require("./ListCommandInvocationsCommand"), exports); -tslib_1.__exportStar(require("./ListCommandsCommand"), exports); -tslib_1.__exportStar(require("./ListComplianceItemsCommand"), exports); -tslib_1.__exportStar(require("./ListComplianceSummariesCommand"), exports); -tslib_1.__exportStar(require("./ListDocumentMetadataHistoryCommand"), exports); -tslib_1.__exportStar(require("./ListDocumentVersionsCommand"), exports); -tslib_1.__exportStar(require("./ListDocumentsCommand"), exports); -tslib_1.__exportStar(require("./ListInventoryEntriesCommand"), exports); -tslib_1.__exportStar(require("./ListOpsItemEventsCommand"), exports); -tslib_1.__exportStar(require("./ListOpsItemRelatedItemsCommand"), exports); -tslib_1.__exportStar(require("./ListOpsMetadataCommand"), exports); -tslib_1.__exportStar(require("./ListResourceComplianceSummariesCommand"), exports); -tslib_1.__exportStar(require("./ListResourceDataSyncCommand"), exports); -tslib_1.__exportStar(require("./ListTagsForResourceCommand"), exports); -tslib_1.__exportStar(require("./ModifyDocumentPermissionCommand"), exports); -tslib_1.__exportStar(require("./PutComplianceItemsCommand"), exports); -tslib_1.__exportStar(require("./PutInventoryCommand"), exports); -tslib_1.__exportStar(require("./PutParameterCommand"), exports); -tslib_1.__exportStar(require("./PutResourcePolicyCommand"), exports); -tslib_1.__exportStar(require("./RegisterDefaultPatchBaselineCommand"), exports); -tslib_1.__exportStar(require("./RegisterPatchBaselineForPatchGroupCommand"), exports); -tslib_1.__exportStar(require("./RegisterTargetWithMaintenanceWindowCommand"), exports); -tslib_1.__exportStar(require("./RegisterTaskWithMaintenanceWindowCommand"), exports); -tslib_1.__exportStar(require("./RemoveTagsFromResourceCommand"), exports); -tslib_1.__exportStar(require("./ResetServiceSettingCommand"), exports); -tslib_1.__exportStar(require("./ResumeSessionCommand"), exports); -tslib_1.__exportStar(require("./SendAutomationSignalCommand"), exports); -tslib_1.__exportStar(require("./SendCommandCommand"), exports); -tslib_1.__exportStar(require("./StartAssociationsOnceCommand"), exports); -tslib_1.__exportStar(require("./StartAutomationExecutionCommand"), exports); -tslib_1.__exportStar(require("./StartChangeRequestExecutionCommand"), exports); -tslib_1.__exportStar(require("./StartSessionCommand"), exports); -tslib_1.__exportStar(require("./StopAutomationExecutionCommand"), exports); -tslib_1.__exportStar(require("./TerminateSessionCommand"), exports); -tslib_1.__exportStar(require("./UnlabelParameterVersionCommand"), exports); -tslib_1.__exportStar(require("./UpdateAssociationCommand"), exports); -tslib_1.__exportStar(require("./UpdateAssociationStatusCommand"), exports); -tslib_1.__exportStar(require("./UpdateDocumentCommand"), exports); -tslib_1.__exportStar(require("./UpdateDocumentDefaultVersionCommand"), exports); -tslib_1.__exportStar(require("./UpdateDocumentMetadataCommand"), exports); -tslib_1.__exportStar(require("./UpdateMaintenanceWindowCommand"), exports); -tslib_1.__exportStar(require("./UpdateMaintenanceWindowTargetCommand"), exports); -tslib_1.__exportStar(require("./UpdateMaintenanceWindowTaskCommand"), exports); -tslib_1.__exportStar(require("./UpdateManagedInstanceRoleCommand"), exports); -tslib_1.__exportStar(require("./UpdateOpsItemCommand"), exports); -tslib_1.__exportStar(require("./UpdateOpsMetadataCommand"), exports); -tslib_1.__exportStar(require("./UpdatePatchBaselineCommand"), exports); -tslib_1.__exportStar(require("./UpdateResourceDataSyncCommand"), exports); -tslib_1.__exportStar(require("./UpdateServiceSettingCommand"), exports); diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/endpoint/EndpointParameters.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/endpoint/EndpointParameters.js deleted file mode 100644 index 13ecc4a4..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/endpoint/EndpointParameters.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.resolveClientEndpointParameters = void 0; -const resolveClientEndpointParameters = (options) => { - return { - ...options, - useDualstackEndpoint: options.useDualstackEndpoint ?? false, - useFipsEndpoint: options.useFipsEndpoint ?? false, - defaultSigningName: "ssm", - }; -}; -exports.resolveClientEndpointParameters = resolveClientEndpointParameters; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/endpoint/endpointResolver.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/endpoint/endpointResolver.js deleted file mode 100644 index 3d8d8de8..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/endpoint/endpointResolver.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.defaultEndpointResolver = void 0; -const util_endpoints_1 = require("@smithy/util-endpoints"); -const ruleset_1 = require("./ruleset"); -const defaultEndpointResolver = (endpointParams, context = {}) => { - return (0, util_endpoints_1.resolveEndpoint)(ruleset_1.ruleSet, { - endpointParams: endpointParams, - logger: context.logger, - }); -}; -exports.defaultEndpointResolver = defaultEndpointResolver; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/endpoint/ruleset.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/endpoint/ruleset.js deleted file mode 100644 index 169df675..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/endpoint/ruleset.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ruleSet = void 0; -const u = "required", v = "fn", w = "argv", x = "ref"; -const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "getAttr", i = { [u]: false, "type": "String" }, j = { [u]: true, "default": false, "type": "Boolean" }, k = { [x]: "Endpoint" }, l = { [v]: c, [w]: [{ [x]: "UseFIPS" }, true] }, m = { [v]: c, [w]: [{ [x]: "UseDualStack" }, true] }, n = {}, o = { [v]: h, [w]: [{ [x]: g }, "supportsFIPS"] }, p = { [x]: g }, q = { [v]: c, [w]: [true, { [v]: h, [w]: [p, "supportsDualStack"] }] }, r = [l], s = [m], t = [{ [x]: "Region" }]; -const _data = { version: "1.0", parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i }, rules: [{ conditions: [{ [v]: b, [w]: [k] }], rules: [{ conditions: r, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: s, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: k, properties: n, headers: n }, type: e }], type: f }, { conditions: [{ [v]: b, [w]: t }], rules: [{ conditions: [{ [v]: "aws.partition", [w]: t, assign: g }], rules: [{ conditions: [l, m], rules: [{ conditions: [{ [v]: c, [w]: [a, o] }, q], rules: [{ endpoint: { url: "https://ssm-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: r, rules: [{ conditions: [{ [v]: c, [w]: [o, a] }], rules: [{ conditions: [{ [v]: "stringEquals", [w]: [{ [v]: h, [w]: [p, "name"] }, "aws-us-gov"] }], endpoint: { url: "https://ssm.{Region}.amazonaws.com", properties: n, headers: n }, type: e }, { endpoint: { url: "https://ssm-fips.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: s, rules: [{ conditions: [q], rules: [{ endpoint: { url: "https://ssm.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://ssm.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] }; -exports.ruleSet = _data; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/extensionConfiguration.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/extensionConfiguration.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/extensionConfiguration.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js deleted file mode 100644 index adc4e8f8..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/index.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SSMServiceException = void 0; -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./SSMClient"), exports); -tslib_1.__exportStar(require("./SSM"), exports); -tslib_1.__exportStar(require("./commands"), exports); -tslib_1.__exportStar(require("./pagination"), exports); -tslib_1.__exportStar(require("./waiters"), exports); -tslib_1.__exportStar(require("./models"), exports); -require("@aws-sdk/util-endpoints"); -var SSMServiceException_1 = require("./models/SSMServiceException"); -Object.defineProperty(exports, "SSMServiceException", { enumerable: true, get: function () { return SSMServiceException_1.SSMServiceException; } }); diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/models/SSMServiceException.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/models/SSMServiceException.js deleted file mode 100644 index f189e2d0..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/models/SSMServiceException.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SSMServiceException = exports.__ServiceException = void 0; -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } }); -class SSMServiceException extends smithy_client_1.ServiceException { - constructor(options) { - super(options); - Object.setPrototypeOf(this, SSMServiceException.prototype); - } -} -exports.SSMServiceException = SSMServiceException; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/models/index.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/models/index.js deleted file mode 100644 index 012dacc0..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/models/index.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./models_0"), exports); -tslib_1.__exportStar(require("./models_1"), exports); -tslib_1.__exportStar(require("./models_2"), exports); diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/models/models_0.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/models/models_0.js deleted file mode 100644 index a34b2f00..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/models/models_0.js +++ /dev/null @@ -1,1399 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.OpsItemAlreadyExistsException = exports.OpsItemAccessDeniedException = exports.OpsItemDataType = exports.ResourceLimitExceededException = exports.IdempotentParameterMismatch = exports.MaxDocumentSizeExceeded = exports.InvalidDocumentSchemaVersion = exports.InvalidDocumentContent = exports.DocumentLimitExceeded = exports.DocumentAlreadyExists = exports.DocumentStatus = exports.ReviewStatus = exports.PlatformType = exports.DocumentParameterType = exports.DocumentHashType = exports.DocumentType = exports.DocumentFormat = exports.AttachmentsSourceKey = exports.Fault = exports.UnsupportedPlatformType = exports.InvalidTargetMaps = exports.InvalidTarget = exports.InvalidTag = exports.InvalidSchedule = exports.InvalidOutputLocation = exports.InvalidDocumentVersion = exports.InvalidDocument = exports.AssociationStatusName = exports.AssociationSyncCompliance = exports.AssociationComplianceSeverity = exports.AssociationLimitExceeded = exports.AssociationAlreadyExists = exports.InvalidParameters = exports.DoesNotExistException = exports.InvalidInstanceId = exports.InvalidCommandId = exports.DuplicateInstanceId = exports.OpsItemRelatedItemAlreadyExistsException = exports.OpsItemNotFoundException = exports.OpsItemLimitExceededException = exports.OpsItemInvalidParameterException = exports.OpsItemConflictException = exports.AlreadyExistsException = exports.ExternalAlarmState = exports.TooManyUpdates = exports.TooManyTagsError = exports.InvalidResourceType = exports.InvalidResourceId = exports.InternalServerError = exports.ResourceTypeForTagging = void 0; -exports.UnsupportedOperatingSystem = exports.PatchDeploymentStatus = exports.InvalidPermissionType = exports.DocumentPermissionType = exports.StepExecutionFilterKey = exports.AutomationExecutionNotFoundException = exports.InvalidFilterValue = exports.InvalidFilterKey = exports.ExecutionMode = exports.AutomationType = exports.AutomationSubtype = exports.AutomationExecutionStatus = exports.AutomationExecutionFilterKey = exports.AssociationExecutionTargetsFilterKey = exports.AssociationExecutionDoesNotExist = exports.AssociationFilterOperatorType = exports.AssociationExecutionFilterKey = exports.InvalidAssociationVersion = exports.InvalidNextToken = exports.InvalidFilter = exports.DescribeActivationsFilterKeys = exports.TargetInUseException = exports.ResourcePolicyInvalidParameterException = exports.ResourcePolicyConflictException = exports.ResourceDataSyncNotFoundException = exports.ResourceInUseException = exports.ParameterNotFound = exports.OpsMetadataNotFoundException = exports.InvalidTypeNameException = exports.InvalidOptionException = exports.InvalidInventoryRequestException = exports.InvalidDeleteInventoryParametersException = exports.InventorySchemaDeleteOption = exports.InvalidDocumentOperation = exports.AssociatedInstances = exports.AssociationDoesNotExist = exports.InvalidActivationId = exports.InvalidActivation = exports.ResourceDataSyncInvalidConfigurationException = exports.ResourceDataSyncCountExceededException = exports.ResourceDataSyncAlreadyExistsException = exports.ResourceDataSyncS3Format = exports.PatchAction = exports.OperatingSystem = exports.PatchFilterKey = exports.PatchComplianceLevel = exports.OpsMetadataTooManyUpdatesException = exports.OpsMetadataLimitExceededException = exports.OpsMetadataInvalidArgumentException = exports.OpsMetadataAlreadyExistsException = void 0; -exports.MaintenanceWindowTaskParameterValueExpressionFilterSensitiveLog = exports.DescribeMaintenanceWindowTargetsResultFilterSensitiveLog = exports.MaintenanceWindowTargetFilterSensitiveLog = exports.DescribeMaintenanceWindowsResultFilterSensitiveLog = exports.MaintenanceWindowIdentityFilterSensitiveLog = exports.DescribeMaintenanceWindowExecutionTaskInvocationsResultFilterSensitiveLog = exports.MaintenanceWindowExecutionTaskInvocationIdentityFilterSensitiveLog = exports.DescribeInstancePatchStatesForPatchGroupResultFilterSensitiveLog = exports.DescribeInstancePatchStatesResultFilterSensitiveLog = exports.InstancePatchStateFilterSensitiveLog = exports.DescribeAssociationResultFilterSensitiveLog = exports.CreatePatchBaselineRequestFilterSensitiveLog = exports.PatchSourceFilterSensitiveLog = exports.CreateMaintenanceWindowRequestFilterSensitiveLog = exports.CreateAssociationBatchResultFilterSensitiveLog = exports.FailedCreateAssociationFilterSensitiveLog = exports.CreateAssociationBatchRequestFilterSensitiveLog = exports.CreateAssociationBatchRequestEntryFilterSensitiveLog = exports.CreateAssociationResultFilterSensitiveLog = exports.AssociationDescriptionFilterSensitiveLog = exports.CreateAssociationRequestFilterSensitiveLog = exports.MaintenanceWindowTaskCutoffBehavior = exports.MaintenanceWindowResourceType = exports.MaintenanceWindowTaskType = exports.MaintenanceWindowExecutionStatus = exports.InvalidDeletionIdException = exports.InventoryDeletionStatus = exports.InstancePatchStateOperatorType = exports.RebootOption = exports.PatchOperationType = exports.PatchComplianceDataState = exports.InvalidInstanceInformationFilterValue = exports.SourceType = exports.ResourceType = exports.PingStatus = exports.InstanceInformationFilterKey = void 0; -const smithy_client_1 = require("@smithy/smithy-client"); -const SSMServiceException_1 = require("./SSMServiceException"); -exports.ResourceTypeForTagging = { - ASSOCIATION: "Association", - AUTOMATION: "Automation", - DOCUMENT: "Document", - MAINTENANCE_WINDOW: "MaintenanceWindow", - MANAGED_INSTANCE: "ManagedInstance", - OPSMETADATA: "OpsMetadata", - OPS_ITEM: "OpsItem", - PARAMETER: "Parameter", - PATCH_BASELINE: "PatchBaseline", -}; -class InternalServerError extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InternalServerError", - $fault: "server", - ...opts, - }); - this.name = "InternalServerError"; - this.$fault = "server"; - Object.setPrototypeOf(this, InternalServerError.prototype); - this.Message = opts.Message; - } -} -exports.InternalServerError = InternalServerError; -class InvalidResourceId extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidResourceId", - $fault: "client", - ...opts, - }); - this.name = "InvalidResourceId"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidResourceId.prototype); - } -} -exports.InvalidResourceId = InvalidResourceId; -class InvalidResourceType extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidResourceType", - $fault: "client", - ...opts, - }); - this.name = "InvalidResourceType"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidResourceType.prototype); - } -} -exports.InvalidResourceType = InvalidResourceType; -class TooManyTagsError extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "TooManyTagsError", - $fault: "client", - ...opts, - }); - this.name = "TooManyTagsError"; - this.$fault = "client"; - Object.setPrototypeOf(this, TooManyTagsError.prototype); - } -} -exports.TooManyTagsError = TooManyTagsError; -class TooManyUpdates extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "TooManyUpdates", - $fault: "client", - ...opts, - }); - this.name = "TooManyUpdates"; - this.$fault = "client"; - Object.setPrototypeOf(this, TooManyUpdates.prototype); - this.Message = opts.Message; - } -} -exports.TooManyUpdates = TooManyUpdates; -exports.ExternalAlarmState = { - ALARM: "ALARM", - UNKNOWN: "UNKNOWN", -}; -class AlreadyExistsException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "AlreadyExistsException", - $fault: "client", - ...opts, - }); - this.name = "AlreadyExistsException"; - this.$fault = "client"; - Object.setPrototypeOf(this, AlreadyExistsException.prototype); - this.Message = opts.Message; - } -} -exports.AlreadyExistsException = AlreadyExistsException; -class OpsItemConflictException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "OpsItemConflictException", - $fault: "client", - ...opts, - }); - this.name = "OpsItemConflictException"; - this.$fault = "client"; - Object.setPrototypeOf(this, OpsItemConflictException.prototype); - this.Message = opts.Message; - } -} -exports.OpsItemConflictException = OpsItemConflictException; -class OpsItemInvalidParameterException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "OpsItemInvalidParameterException", - $fault: "client", - ...opts, - }); - this.name = "OpsItemInvalidParameterException"; - this.$fault = "client"; - Object.setPrototypeOf(this, OpsItemInvalidParameterException.prototype); - this.ParameterNames = opts.ParameterNames; - this.Message = opts.Message; - } -} -exports.OpsItemInvalidParameterException = OpsItemInvalidParameterException; -class OpsItemLimitExceededException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "OpsItemLimitExceededException", - $fault: "client", - ...opts, - }); - this.name = "OpsItemLimitExceededException"; - this.$fault = "client"; - Object.setPrototypeOf(this, OpsItemLimitExceededException.prototype); - this.ResourceTypes = opts.ResourceTypes; - this.Limit = opts.Limit; - this.LimitType = opts.LimitType; - this.Message = opts.Message; - } -} -exports.OpsItemLimitExceededException = OpsItemLimitExceededException; -class OpsItemNotFoundException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "OpsItemNotFoundException", - $fault: "client", - ...opts, - }); - this.name = "OpsItemNotFoundException"; - this.$fault = "client"; - Object.setPrototypeOf(this, OpsItemNotFoundException.prototype); - this.Message = opts.Message; - } -} -exports.OpsItemNotFoundException = OpsItemNotFoundException; -class OpsItemRelatedItemAlreadyExistsException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "OpsItemRelatedItemAlreadyExistsException", - $fault: "client", - ...opts, - }); - this.name = "OpsItemRelatedItemAlreadyExistsException"; - this.$fault = "client"; - Object.setPrototypeOf(this, OpsItemRelatedItemAlreadyExistsException.prototype); - this.Message = opts.Message; - this.ResourceUri = opts.ResourceUri; - this.OpsItemId = opts.OpsItemId; - } -} -exports.OpsItemRelatedItemAlreadyExistsException = OpsItemRelatedItemAlreadyExistsException; -class DuplicateInstanceId extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "DuplicateInstanceId", - $fault: "client", - ...opts, - }); - this.name = "DuplicateInstanceId"; - this.$fault = "client"; - Object.setPrototypeOf(this, DuplicateInstanceId.prototype); - } -} -exports.DuplicateInstanceId = DuplicateInstanceId; -class InvalidCommandId extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidCommandId", - $fault: "client", - ...opts, - }); - this.name = "InvalidCommandId"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidCommandId.prototype); - } -} -exports.InvalidCommandId = InvalidCommandId; -class InvalidInstanceId extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidInstanceId", - $fault: "client", - ...opts, - }); - this.name = "InvalidInstanceId"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidInstanceId.prototype); - this.Message = opts.Message; - } -} -exports.InvalidInstanceId = InvalidInstanceId; -class DoesNotExistException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "DoesNotExistException", - $fault: "client", - ...opts, - }); - this.name = "DoesNotExistException"; - this.$fault = "client"; - Object.setPrototypeOf(this, DoesNotExistException.prototype); - this.Message = opts.Message; - } -} -exports.DoesNotExistException = DoesNotExistException; -class InvalidParameters extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidParameters", - $fault: "client", - ...opts, - }); - this.name = "InvalidParameters"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidParameters.prototype); - this.Message = opts.Message; - } -} -exports.InvalidParameters = InvalidParameters; -class AssociationAlreadyExists extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "AssociationAlreadyExists", - $fault: "client", - ...opts, - }); - this.name = "AssociationAlreadyExists"; - this.$fault = "client"; - Object.setPrototypeOf(this, AssociationAlreadyExists.prototype); - } -} -exports.AssociationAlreadyExists = AssociationAlreadyExists; -class AssociationLimitExceeded extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "AssociationLimitExceeded", - $fault: "client", - ...opts, - }); - this.name = "AssociationLimitExceeded"; - this.$fault = "client"; - Object.setPrototypeOf(this, AssociationLimitExceeded.prototype); - } -} -exports.AssociationLimitExceeded = AssociationLimitExceeded; -exports.AssociationComplianceSeverity = { - Critical: "CRITICAL", - High: "HIGH", - Low: "LOW", - Medium: "MEDIUM", - Unspecified: "UNSPECIFIED", -}; -exports.AssociationSyncCompliance = { - Auto: "AUTO", - Manual: "MANUAL", -}; -exports.AssociationStatusName = { - Failed: "Failed", - Pending: "Pending", - Success: "Success", -}; -class InvalidDocument extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidDocument", - $fault: "client", - ...opts, - }); - this.name = "InvalidDocument"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidDocument.prototype); - this.Message = opts.Message; - } -} -exports.InvalidDocument = InvalidDocument; -class InvalidDocumentVersion extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidDocumentVersion", - $fault: "client", - ...opts, - }); - this.name = "InvalidDocumentVersion"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidDocumentVersion.prototype); - this.Message = opts.Message; - } -} -exports.InvalidDocumentVersion = InvalidDocumentVersion; -class InvalidOutputLocation extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidOutputLocation", - $fault: "client", - ...opts, - }); - this.name = "InvalidOutputLocation"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidOutputLocation.prototype); - } -} -exports.InvalidOutputLocation = InvalidOutputLocation; -class InvalidSchedule extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidSchedule", - $fault: "client", - ...opts, - }); - this.name = "InvalidSchedule"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidSchedule.prototype); - this.Message = opts.Message; - } -} -exports.InvalidSchedule = InvalidSchedule; -class InvalidTag extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidTag", - $fault: "client", - ...opts, - }); - this.name = "InvalidTag"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidTag.prototype); - this.Message = opts.Message; - } -} -exports.InvalidTag = InvalidTag; -class InvalidTarget extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidTarget", - $fault: "client", - ...opts, - }); - this.name = "InvalidTarget"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidTarget.prototype); - this.Message = opts.Message; - } -} -exports.InvalidTarget = InvalidTarget; -class InvalidTargetMaps extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidTargetMaps", - $fault: "client", - ...opts, - }); - this.name = "InvalidTargetMaps"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidTargetMaps.prototype); - this.Message = opts.Message; - } -} -exports.InvalidTargetMaps = InvalidTargetMaps; -class UnsupportedPlatformType extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "UnsupportedPlatformType", - $fault: "client", - ...opts, - }); - this.name = "UnsupportedPlatformType"; - this.$fault = "client"; - Object.setPrototypeOf(this, UnsupportedPlatformType.prototype); - this.Message = opts.Message; - } -} -exports.UnsupportedPlatformType = UnsupportedPlatformType; -exports.Fault = { - Client: "Client", - Server: "Server", - Unknown: "Unknown", -}; -exports.AttachmentsSourceKey = { - AttachmentReference: "AttachmentReference", - S3FileUrl: "S3FileUrl", - SourceUrl: "SourceUrl", -}; -exports.DocumentFormat = { - JSON: "JSON", - TEXT: "TEXT", - YAML: "YAML", -}; -exports.DocumentType = { - ApplicationConfiguration: "ApplicationConfiguration", - ApplicationConfigurationSchema: "ApplicationConfigurationSchema", - Automation: "Automation", - ChangeCalendar: "ChangeCalendar", - ChangeTemplate: "Automation.ChangeTemplate", - CloudFormation: "CloudFormation", - Command: "Command", - ConformancePackTemplate: "ConformancePackTemplate", - DeploymentStrategy: "DeploymentStrategy", - Package: "Package", - Policy: "Policy", - ProblemAnalysis: "ProblemAnalysis", - ProblemAnalysisTemplate: "ProblemAnalysisTemplate", - QuickSetup: "QuickSetup", - Session: "Session", -}; -exports.DocumentHashType = { - SHA1: "Sha1", - SHA256: "Sha256", -}; -exports.DocumentParameterType = { - String: "String", - StringList: "StringList", -}; -exports.PlatformType = { - LINUX: "Linux", - MACOS: "MacOS", - WINDOWS: "Windows", -}; -exports.ReviewStatus = { - APPROVED: "APPROVED", - NOT_REVIEWED: "NOT_REVIEWED", - PENDING: "PENDING", - REJECTED: "REJECTED", -}; -exports.DocumentStatus = { - Active: "Active", - Creating: "Creating", - Deleting: "Deleting", - Failed: "Failed", - Updating: "Updating", -}; -class DocumentAlreadyExists extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "DocumentAlreadyExists", - $fault: "client", - ...opts, - }); - this.name = "DocumentAlreadyExists"; - this.$fault = "client"; - Object.setPrototypeOf(this, DocumentAlreadyExists.prototype); - this.Message = opts.Message; - } -} -exports.DocumentAlreadyExists = DocumentAlreadyExists; -class DocumentLimitExceeded extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "DocumentLimitExceeded", - $fault: "client", - ...opts, - }); - this.name = "DocumentLimitExceeded"; - this.$fault = "client"; - Object.setPrototypeOf(this, DocumentLimitExceeded.prototype); - this.Message = opts.Message; - } -} -exports.DocumentLimitExceeded = DocumentLimitExceeded; -class InvalidDocumentContent extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidDocumentContent", - $fault: "client", - ...opts, - }); - this.name = "InvalidDocumentContent"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidDocumentContent.prototype); - this.Message = opts.Message; - } -} -exports.InvalidDocumentContent = InvalidDocumentContent; -class InvalidDocumentSchemaVersion extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidDocumentSchemaVersion", - $fault: "client", - ...opts, - }); - this.name = "InvalidDocumentSchemaVersion"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidDocumentSchemaVersion.prototype); - this.Message = opts.Message; - } -} -exports.InvalidDocumentSchemaVersion = InvalidDocumentSchemaVersion; -class MaxDocumentSizeExceeded extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "MaxDocumentSizeExceeded", - $fault: "client", - ...opts, - }); - this.name = "MaxDocumentSizeExceeded"; - this.$fault = "client"; - Object.setPrototypeOf(this, MaxDocumentSizeExceeded.prototype); - this.Message = opts.Message; - } -} -exports.MaxDocumentSizeExceeded = MaxDocumentSizeExceeded; -class IdempotentParameterMismatch extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "IdempotentParameterMismatch", - $fault: "client", - ...opts, - }); - this.name = "IdempotentParameterMismatch"; - this.$fault = "client"; - Object.setPrototypeOf(this, IdempotentParameterMismatch.prototype); - this.Message = opts.Message; - } -} -exports.IdempotentParameterMismatch = IdempotentParameterMismatch; -class ResourceLimitExceededException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "ResourceLimitExceededException", - $fault: "client", - ...opts, - }); - this.name = "ResourceLimitExceededException"; - this.$fault = "client"; - Object.setPrototypeOf(this, ResourceLimitExceededException.prototype); - this.Message = opts.Message; - } -} -exports.ResourceLimitExceededException = ResourceLimitExceededException; -exports.OpsItemDataType = { - SEARCHABLE_STRING: "SearchableString", - STRING: "String", -}; -class OpsItemAccessDeniedException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "OpsItemAccessDeniedException", - $fault: "client", - ...opts, - }); - this.name = "OpsItemAccessDeniedException"; - this.$fault = "client"; - Object.setPrototypeOf(this, OpsItemAccessDeniedException.prototype); - this.Message = opts.Message; - } -} -exports.OpsItemAccessDeniedException = OpsItemAccessDeniedException; -class OpsItemAlreadyExistsException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "OpsItemAlreadyExistsException", - $fault: "client", - ...opts, - }); - this.name = "OpsItemAlreadyExistsException"; - this.$fault = "client"; - Object.setPrototypeOf(this, OpsItemAlreadyExistsException.prototype); - this.Message = opts.Message; - this.OpsItemId = opts.OpsItemId; - } -} -exports.OpsItemAlreadyExistsException = OpsItemAlreadyExistsException; -class OpsMetadataAlreadyExistsException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "OpsMetadataAlreadyExistsException", - $fault: "client", - ...opts, - }); - this.name = "OpsMetadataAlreadyExistsException"; - this.$fault = "client"; - Object.setPrototypeOf(this, OpsMetadataAlreadyExistsException.prototype); - } -} -exports.OpsMetadataAlreadyExistsException = OpsMetadataAlreadyExistsException; -class OpsMetadataInvalidArgumentException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "OpsMetadataInvalidArgumentException", - $fault: "client", - ...opts, - }); - this.name = "OpsMetadataInvalidArgumentException"; - this.$fault = "client"; - Object.setPrototypeOf(this, OpsMetadataInvalidArgumentException.prototype); - } -} -exports.OpsMetadataInvalidArgumentException = OpsMetadataInvalidArgumentException; -class OpsMetadataLimitExceededException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "OpsMetadataLimitExceededException", - $fault: "client", - ...opts, - }); - this.name = "OpsMetadataLimitExceededException"; - this.$fault = "client"; - Object.setPrototypeOf(this, OpsMetadataLimitExceededException.prototype); - } -} -exports.OpsMetadataLimitExceededException = OpsMetadataLimitExceededException; -class OpsMetadataTooManyUpdatesException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "OpsMetadataTooManyUpdatesException", - $fault: "client", - ...opts, - }); - this.name = "OpsMetadataTooManyUpdatesException"; - this.$fault = "client"; - Object.setPrototypeOf(this, OpsMetadataTooManyUpdatesException.prototype); - } -} -exports.OpsMetadataTooManyUpdatesException = OpsMetadataTooManyUpdatesException; -exports.PatchComplianceLevel = { - Critical: "CRITICAL", - High: "HIGH", - Informational: "INFORMATIONAL", - Low: "LOW", - Medium: "MEDIUM", - Unspecified: "UNSPECIFIED", -}; -exports.PatchFilterKey = { - AdvisoryId: "ADVISORY_ID", - Arch: "ARCH", - BugzillaId: "BUGZILLA_ID", - CVEId: "CVE_ID", - Classification: "CLASSIFICATION", - Epoch: "EPOCH", - MsrcSeverity: "MSRC_SEVERITY", - Name: "NAME", - PatchId: "PATCH_ID", - PatchSet: "PATCH_SET", - Priority: "PRIORITY", - Product: "PRODUCT", - ProductFamily: "PRODUCT_FAMILY", - Release: "RELEASE", - Repository: "REPOSITORY", - Section: "SECTION", - Security: "SECURITY", - Severity: "SEVERITY", - Version: "VERSION", -}; -exports.OperatingSystem = { - AlmaLinux: "ALMA_LINUX", - AmazonLinux: "AMAZON_LINUX", - AmazonLinux2: "AMAZON_LINUX_2", - AmazonLinux2022: "AMAZON_LINUX_2022", - AmazonLinux2023: "AMAZON_LINUX_2023", - CentOS: "CENTOS", - Debian: "DEBIAN", - MacOS: "MACOS", - OracleLinux: "ORACLE_LINUX", - Raspbian: "RASPBIAN", - RedhatEnterpriseLinux: "REDHAT_ENTERPRISE_LINUX", - Rocky_Linux: "ROCKY_LINUX", - Suse: "SUSE", - Ubuntu: "UBUNTU", - Windows: "WINDOWS", -}; -exports.PatchAction = { - AllowAsDependency: "ALLOW_AS_DEPENDENCY", - Block: "BLOCK", -}; -exports.ResourceDataSyncS3Format = { - JSON_SERDE: "JsonSerDe", -}; -class ResourceDataSyncAlreadyExistsException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "ResourceDataSyncAlreadyExistsException", - $fault: "client", - ...opts, - }); - this.name = "ResourceDataSyncAlreadyExistsException"; - this.$fault = "client"; - Object.setPrototypeOf(this, ResourceDataSyncAlreadyExistsException.prototype); - this.SyncName = opts.SyncName; - } -} -exports.ResourceDataSyncAlreadyExistsException = ResourceDataSyncAlreadyExistsException; -class ResourceDataSyncCountExceededException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "ResourceDataSyncCountExceededException", - $fault: "client", - ...opts, - }); - this.name = "ResourceDataSyncCountExceededException"; - this.$fault = "client"; - Object.setPrototypeOf(this, ResourceDataSyncCountExceededException.prototype); - this.Message = opts.Message; - } -} -exports.ResourceDataSyncCountExceededException = ResourceDataSyncCountExceededException; -class ResourceDataSyncInvalidConfigurationException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "ResourceDataSyncInvalidConfigurationException", - $fault: "client", - ...opts, - }); - this.name = "ResourceDataSyncInvalidConfigurationException"; - this.$fault = "client"; - Object.setPrototypeOf(this, ResourceDataSyncInvalidConfigurationException.prototype); - this.Message = opts.Message; - } -} -exports.ResourceDataSyncInvalidConfigurationException = ResourceDataSyncInvalidConfigurationException; -class InvalidActivation extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidActivation", - $fault: "client", - ...opts, - }); - this.name = "InvalidActivation"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidActivation.prototype); - this.Message = opts.Message; - } -} -exports.InvalidActivation = InvalidActivation; -class InvalidActivationId extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidActivationId", - $fault: "client", - ...opts, - }); - this.name = "InvalidActivationId"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidActivationId.prototype); - this.Message = opts.Message; - } -} -exports.InvalidActivationId = InvalidActivationId; -class AssociationDoesNotExist extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "AssociationDoesNotExist", - $fault: "client", - ...opts, - }); - this.name = "AssociationDoesNotExist"; - this.$fault = "client"; - Object.setPrototypeOf(this, AssociationDoesNotExist.prototype); - this.Message = opts.Message; - } -} -exports.AssociationDoesNotExist = AssociationDoesNotExist; -class AssociatedInstances extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "AssociatedInstances", - $fault: "client", - ...opts, - }); - this.name = "AssociatedInstances"; - this.$fault = "client"; - Object.setPrototypeOf(this, AssociatedInstances.prototype); - } -} -exports.AssociatedInstances = AssociatedInstances; -class InvalidDocumentOperation extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidDocumentOperation", - $fault: "client", - ...opts, - }); - this.name = "InvalidDocumentOperation"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidDocumentOperation.prototype); - this.Message = opts.Message; - } -} -exports.InvalidDocumentOperation = InvalidDocumentOperation; -exports.InventorySchemaDeleteOption = { - DELETE_SCHEMA: "DeleteSchema", - DISABLE_SCHEMA: "DisableSchema", -}; -class InvalidDeleteInventoryParametersException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidDeleteInventoryParametersException", - $fault: "client", - ...opts, - }); - this.name = "InvalidDeleteInventoryParametersException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidDeleteInventoryParametersException.prototype); - this.Message = opts.Message; - } -} -exports.InvalidDeleteInventoryParametersException = InvalidDeleteInventoryParametersException; -class InvalidInventoryRequestException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidInventoryRequestException", - $fault: "client", - ...opts, - }); - this.name = "InvalidInventoryRequestException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidInventoryRequestException.prototype); - this.Message = opts.Message; - } -} -exports.InvalidInventoryRequestException = InvalidInventoryRequestException; -class InvalidOptionException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidOptionException", - $fault: "client", - ...opts, - }); - this.name = "InvalidOptionException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidOptionException.prototype); - this.Message = opts.Message; - } -} -exports.InvalidOptionException = InvalidOptionException; -class InvalidTypeNameException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidTypeNameException", - $fault: "client", - ...opts, - }); - this.name = "InvalidTypeNameException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidTypeNameException.prototype); - this.Message = opts.Message; - } -} -exports.InvalidTypeNameException = InvalidTypeNameException; -class OpsMetadataNotFoundException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "OpsMetadataNotFoundException", - $fault: "client", - ...opts, - }); - this.name = "OpsMetadataNotFoundException"; - this.$fault = "client"; - Object.setPrototypeOf(this, OpsMetadataNotFoundException.prototype); - } -} -exports.OpsMetadataNotFoundException = OpsMetadataNotFoundException; -class ParameterNotFound extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "ParameterNotFound", - $fault: "client", - ...opts, - }); - this.name = "ParameterNotFound"; - this.$fault = "client"; - Object.setPrototypeOf(this, ParameterNotFound.prototype); - } -} -exports.ParameterNotFound = ParameterNotFound; -class ResourceInUseException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "ResourceInUseException", - $fault: "client", - ...opts, - }); - this.name = "ResourceInUseException"; - this.$fault = "client"; - Object.setPrototypeOf(this, ResourceInUseException.prototype); - this.Message = opts.Message; - } -} -exports.ResourceInUseException = ResourceInUseException; -class ResourceDataSyncNotFoundException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "ResourceDataSyncNotFoundException", - $fault: "client", - ...opts, - }); - this.name = "ResourceDataSyncNotFoundException"; - this.$fault = "client"; - Object.setPrototypeOf(this, ResourceDataSyncNotFoundException.prototype); - this.SyncName = opts.SyncName; - this.SyncType = opts.SyncType; - this.Message = opts.Message; - } -} -exports.ResourceDataSyncNotFoundException = ResourceDataSyncNotFoundException; -class ResourcePolicyConflictException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "ResourcePolicyConflictException", - $fault: "client", - ...opts, - }); - this.name = "ResourcePolicyConflictException"; - this.$fault = "client"; - Object.setPrototypeOf(this, ResourcePolicyConflictException.prototype); - this.Message = opts.Message; - } -} -exports.ResourcePolicyConflictException = ResourcePolicyConflictException; -class ResourcePolicyInvalidParameterException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "ResourcePolicyInvalidParameterException", - $fault: "client", - ...opts, - }); - this.name = "ResourcePolicyInvalidParameterException"; - this.$fault = "client"; - Object.setPrototypeOf(this, ResourcePolicyInvalidParameterException.prototype); - this.ParameterNames = opts.ParameterNames; - this.Message = opts.Message; - } -} -exports.ResourcePolicyInvalidParameterException = ResourcePolicyInvalidParameterException; -class TargetInUseException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "TargetInUseException", - $fault: "client", - ...opts, - }); - this.name = "TargetInUseException"; - this.$fault = "client"; - Object.setPrototypeOf(this, TargetInUseException.prototype); - this.Message = opts.Message; - } -} -exports.TargetInUseException = TargetInUseException; -exports.DescribeActivationsFilterKeys = { - ACTIVATION_IDS: "ActivationIds", - DEFAULT_INSTANCE_NAME: "DefaultInstanceName", - IAM_ROLE: "IamRole", -}; -class InvalidFilter extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidFilter", - $fault: "client", - ...opts, - }); - this.name = "InvalidFilter"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidFilter.prototype); - this.Message = opts.Message; - } -} -exports.InvalidFilter = InvalidFilter; -class InvalidNextToken extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidNextToken", - $fault: "client", - ...opts, - }); - this.name = "InvalidNextToken"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidNextToken.prototype); - this.Message = opts.Message; - } -} -exports.InvalidNextToken = InvalidNextToken; -class InvalidAssociationVersion extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidAssociationVersion", - $fault: "client", - ...opts, - }); - this.name = "InvalidAssociationVersion"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidAssociationVersion.prototype); - this.Message = opts.Message; - } -} -exports.InvalidAssociationVersion = InvalidAssociationVersion; -exports.AssociationExecutionFilterKey = { - CreatedTime: "CreatedTime", - ExecutionId: "ExecutionId", - Status: "Status", -}; -exports.AssociationFilterOperatorType = { - Equal: "EQUAL", - GreaterThan: "GREATER_THAN", - LessThan: "LESS_THAN", -}; -class AssociationExecutionDoesNotExist extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "AssociationExecutionDoesNotExist", - $fault: "client", - ...opts, - }); - this.name = "AssociationExecutionDoesNotExist"; - this.$fault = "client"; - Object.setPrototypeOf(this, AssociationExecutionDoesNotExist.prototype); - this.Message = opts.Message; - } -} -exports.AssociationExecutionDoesNotExist = AssociationExecutionDoesNotExist; -exports.AssociationExecutionTargetsFilterKey = { - ResourceId: "ResourceId", - ResourceType: "ResourceType", - Status: "Status", -}; -exports.AutomationExecutionFilterKey = { - AUTOMATION_SUBTYPE: "AutomationSubtype", - AUTOMATION_TYPE: "AutomationType", - CURRENT_ACTION: "CurrentAction", - DOCUMENT_NAME_PREFIX: "DocumentNamePrefix", - EXECUTION_ID: "ExecutionId", - EXECUTION_STATUS: "ExecutionStatus", - OPS_ITEM_ID: "OpsItemId", - PARENT_EXECUTION_ID: "ParentExecutionId", - START_TIME_AFTER: "StartTimeAfter", - START_TIME_BEFORE: "StartTimeBefore", - TAG_KEY: "TagKey", - TARGET_RESOURCE_GROUP: "TargetResourceGroup", -}; -exports.AutomationExecutionStatus = { - APPROVED: "Approved", - CANCELLED: "Cancelled", - CANCELLING: "Cancelling", - CHANGE_CALENDAR_OVERRIDE_APPROVED: "ChangeCalendarOverrideApproved", - CHANGE_CALENDAR_OVERRIDE_REJECTED: "ChangeCalendarOverrideRejected", - COMPLETED_WITH_FAILURE: "CompletedWithFailure", - COMPLETED_WITH_SUCCESS: "CompletedWithSuccess", - EXITED: "Exited", - FAILED: "Failed", - INPROGRESS: "InProgress", - PENDING: "Pending", - PENDING_APPROVAL: "PendingApproval", - PENDING_CHANGE_CALENDAR_OVERRIDE: "PendingChangeCalendarOverride", - REJECTED: "Rejected", - RUNBOOK_INPROGRESS: "RunbookInProgress", - SCHEDULED: "Scheduled", - SUCCESS: "Success", - TIMEDOUT: "TimedOut", - WAITING: "Waiting", -}; -exports.AutomationSubtype = { - ChangeRequest: "ChangeRequest", -}; -exports.AutomationType = { - CrossAccount: "CrossAccount", - Local: "Local", -}; -exports.ExecutionMode = { - Auto: "Auto", - Interactive: "Interactive", -}; -class InvalidFilterKey extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidFilterKey", - $fault: "client", - ...opts, - }); - this.name = "InvalidFilterKey"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidFilterKey.prototype); - } -} -exports.InvalidFilterKey = InvalidFilterKey; -class InvalidFilterValue extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidFilterValue", - $fault: "client", - ...opts, - }); - this.name = "InvalidFilterValue"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidFilterValue.prototype); - this.Message = opts.Message; - } -} -exports.InvalidFilterValue = InvalidFilterValue; -class AutomationExecutionNotFoundException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "AutomationExecutionNotFoundException", - $fault: "client", - ...opts, - }); - this.name = "AutomationExecutionNotFoundException"; - this.$fault = "client"; - Object.setPrototypeOf(this, AutomationExecutionNotFoundException.prototype); - this.Message = opts.Message; - } -} -exports.AutomationExecutionNotFoundException = AutomationExecutionNotFoundException; -exports.StepExecutionFilterKey = { - ACTION: "Action", - PARENT_STEP_EXECUTION_ID: "ParentStepExecutionId", - PARENT_STEP_ITERATION: "ParentStepIteration", - PARENT_STEP_ITERATOR_VALUE: "ParentStepIteratorValue", - START_TIME_AFTER: "StartTimeAfter", - START_TIME_BEFORE: "StartTimeBefore", - STEP_EXECUTION_ID: "StepExecutionId", - STEP_EXECUTION_STATUS: "StepExecutionStatus", - STEP_NAME: "StepName", -}; -exports.DocumentPermissionType = { - SHARE: "Share", -}; -class InvalidPermissionType extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidPermissionType", - $fault: "client", - ...opts, - }); - this.name = "InvalidPermissionType"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidPermissionType.prototype); - this.Message = opts.Message; - } -} -exports.InvalidPermissionType = InvalidPermissionType; -exports.PatchDeploymentStatus = { - Approved: "APPROVED", - ExplicitApproved: "EXPLICIT_APPROVED", - ExplicitRejected: "EXPLICIT_REJECTED", - PendingApproval: "PENDING_APPROVAL", -}; -class UnsupportedOperatingSystem extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "UnsupportedOperatingSystem", - $fault: "client", - ...opts, - }); - this.name = "UnsupportedOperatingSystem"; - this.$fault = "client"; - Object.setPrototypeOf(this, UnsupportedOperatingSystem.prototype); - this.Message = opts.Message; - } -} -exports.UnsupportedOperatingSystem = UnsupportedOperatingSystem; -exports.InstanceInformationFilterKey = { - ACTIVATION_IDS: "ActivationIds", - AGENT_VERSION: "AgentVersion", - ASSOCIATION_STATUS: "AssociationStatus", - IAM_ROLE: "IamRole", - INSTANCE_IDS: "InstanceIds", - PING_STATUS: "PingStatus", - PLATFORM_TYPES: "PlatformTypes", - RESOURCE_TYPE: "ResourceType", -}; -exports.PingStatus = { - CONNECTION_LOST: "ConnectionLost", - INACTIVE: "Inactive", - ONLINE: "Online", -}; -exports.ResourceType = { - EC2_INSTANCE: "EC2Instance", - MANAGED_INSTANCE: "ManagedInstance", -}; -exports.SourceType = { - AWS_EC2_INSTANCE: "AWS::EC2::Instance", - AWS_IOT_THING: "AWS::IoT::Thing", - AWS_SSM_MANAGEDINSTANCE: "AWS::SSM::ManagedInstance", -}; -class InvalidInstanceInformationFilterValue extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidInstanceInformationFilterValue", - $fault: "client", - ...opts, - }); - this.name = "InvalidInstanceInformationFilterValue"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidInstanceInformationFilterValue.prototype); - } -} -exports.InvalidInstanceInformationFilterValue = InvalidInstanceInformationFilterValue; -exports.PatchComplianceDataState = { - Failed: "FAILED", - Installed: "INSTALLED", - InstalledOther: "INSTALLED_OTHER", - InstalledPendingReboot: "INSTALLED_PENDING_REBOOT", - InstalledRejected: "INSTALLED_REJECTED", - Missing: "MISSING", - NotApplicable: "NOT_APPLICABLE", -}; -exports.PatchOperationType = { - INSTALL: "Install", - SCAN: "Scan", -}; -exports.RebootOption = { - NO_REBOOT: "NoReboot", - REBOOT_IF_NEEDED: "RebootIfNeeded", -}; -exports.InstancePatchStateOperatorType = { - EQUAL: "Equal", - GREATER_THAN: "GreaterThan", - LESS_THAN: "LessThan", - NOT_EQUAL: "NotEqual", -}; -exports.InventoryDeletionStatus = { - COMPLETE: "Complete", - IN_PROGRESS: "InProgress", -}; -class InvalidDeletionIdException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidDeletionIdException", - $fault: "client", - ...opts, - }); - this.name = "InvalidDeletionIdException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidDeletionIdException.prototype); - this.Message = opts.Message; - } -} -exports.InvalidDeletionIdException = InvalidDeletionIdException; -exports.MaintenanceWindowExecutionStatus = { - Cancelled: "CANCELLED", - Cancelling: "CANCELLING", - Failed: "FAILED", - InProgress: "IN_PROGRESS", - Pending: "PENDING", - SkippedOverlapping: "SKIPPED_OVERLAPPING", - Success: "SUCCESS", - TimedOut: "TIMED_OUT", -}; -exports.MaintenanceWindowTaskType = { - Automation: "AUTOMATION", - Lambda: "LAMBDA", - RunCommand: "RUN_COMMAND", - StepFunctions: "STEP_FUNCTIONS", -}; -exports.MaintenanceWindowResourceType = { - Instance: "INSTANCE", - ResourceGroup: "RESOURCE_GROUP", -}; -exports.MaintenanceWindowTaskCutoffBehavior = { - CancelTask: "CANCEL_TASK", - ContinueTask: "CONTINUE_TASK", -}; -const CreateAssociationRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Parameters && { Parameters: smithy_client_1.SENSITIVE_STRING }), -}); -exports.CreateAssociationRequestFilterSensitiveLog = CreateAssociationRequestFilterSensitiveLog; -const AssociationDescriptionFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Parameters && { Parameters: smithy_client_1.SENSITIVE_STRING }), -}); -exports.AssociationDescriptionFilterSensitiveLog = AssociationDescriptionFilterSensitiveLog; -const CreateAssociationResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.AssociationDescription && { - AssociationDescription: (0, exports.AssociationDescriptionFilterSensitiveLog)(obj.AssociationDescription), - }), -}); -exports.CreateAssociationResultFilterSensitiveLog = CreateAssociationResultFilterSensitiveLog; -const CreateAssociationBatchRequestEntryFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Parameters && { Parameters: smithy_client_1.SENSITIVE_STRING }), -}); -exports.CreateAssociationBatchRequestEntryFilterSensitiveLog = CreateAssociationBatchRequestEntryFilterSensitiveLog; -const CreateAssociationBatchRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Entries && { - Entries: obj.Entries.map((item) => (0, exports.CreateAssociationBatchRequestEntryFilterSensitiveLog)(item)), - }), -}); -exports.CreateAssociationBatchRequestFilterSensitiveLog = CreateAssociationBatchRequestFilterSensitiveLog; -const FailedCreateAssociationFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Entry && { Entry: (0, exports.CreateAssociationBatchRequestEntryFilterSensitiveLog)(obj.Entry) }), -}); -exports.FailedCreateAssociationFilterSensitiveLog = FailedCreateAssociationFilterSensitiveLog; -const CreateAssociationBatchResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Successful && { Successful: obj.Successful.map((item) => (0, exports.AssociationDescriptionFilterSensitiveLog)(item)) }), - ...(obj.Failed && { Failed: obj.Failed.map((item) => (0, exports.FailedCreateAssociationFilterSensitiveLog)(item)) }), -}); -exports.CreateAssociationBatchResultFilterSensitiveLog = CreateAssociationBatchResultFilterSensitiveLog; -const CreateMaintenanceWindowRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Description && { Description: smithy_client_1.SENSITIVE_STRING }), -}); -exports.CreateMaintenanceWindowRequestFilterSensitiveLog = CreateMaintenanceWindowRequestFilterSensitiveLog; -const PatchSourceFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Configuration && { Configuration: smithy_client_1.SENSITIVE_STRING }), -}); -exports.PatchSourceFilterSensitiveLog = PatchSourceFilterSensitiveLog; -const CreatePatchBaselineRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Sources && { Sources: obj.Sources.map((item) => (0, exports.PatchSourceFilterSensitiveLog)(item)) }), -}); -exports.CreatePatchBaselineRequestFilterSensitiveLog = CreatePatchBaselineRequestFilterSensitiveLog; -const DescribeAssociationResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.AssociationDescription && { - AssociationDescription: (0, exports.AssociationDescriptionFilterSensitiveLog)(obj.AssociationDescription), - }), -}); -exports.DescribeAssociationResultFilterSensitiveLog = DescribeAssociationResultFilterSensitiveLog; -const InstancePatchStateFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.OwnerInformation && { OwnerInformation: smithy_client_1.SENSITIVE_STRING }), -}); -exports.InstancePatchStateFilterSensitiveLog = InstancePatchStateFilterSensitiveLog; -const DescribeInstancePatchStatesResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.InstancePatchStates && { - InstancePatchStates: obj.InstancePatchStates.map((item) => (0, exports.InstancePatchStateFilterSensitiveLog)(item)), - }), -}); -exports.DescribeInstancePatchStatesResultFilterSensitiveLog = DescribeInstancePatchStatesResultFilterSensitiveLog; -const DescribeInstancePatchStatesForPatchGroupResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.InstancePatchStates && { - InstancePatchStates: obj.InstancePatchStates.map((item) => (0, exports.InstancePatchStateFilterSensitiveLog)(item)), - }), -}); -exports.DescribeInstancePatchStatesForPatchGroupResultFilterSensitiveLog = DescribeInstancePatchStatesForPatchGroupResultFilterSensitiveLog; -const MaintenanceWindowExecutionTaskInvocationIdentityFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Parameters && { Parameters: smithy_client_1.SENSITIVE_STRING }), - ...(obj.OwnerInformation && { OwnerInformation: smithy_client_1.SENSITIVE_STRING }), -}); -exports.MaintenanceWindowExecutionTaskInvocationIdentityFilterSensitiveLog = MaintenanceWindowExecutionTaskInvocationIdentityFilterSensitiveLog; -const DescribeMaintenanceWindowExecutionTaskInvocationsResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.WindowExecutionTaskInvocationIdentities && { - WindowExecutionTaskInvocationIdentities: obj.WindowExecutionTaskInvocationIdentities.map((item) => (0, exports.MaintenanceWindowExecutionTaskInvocationIdentityFilterSensitiveLog)(item)), - }), -}); -exports.DescribeMaintenanceWindowExecutionTaskInvocationsResultFilterSensitiveLog = DescribeMaintenanceWindowExecutionTaskInvocationsResultFilterSensitiveLog; -const MaintenanceWindowIdentityFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Description && { Description: smithy_client_1.SENSITIVE_STRING }), -}); -exports.MaintenanceWindowIdentityFilterSensitiveLog = MaintenanceWindowIdentityFilterSensitiveLog; -const DescribeMaintenanceWindowsResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.WindowIdentities && { - WindowIdentities: obj.WindowIdentities.map((item) => (0, exports.MaintenanceWindowIdentityFilterSensitiveLog)(item)), - }), -}); -exports.DescribeMaintenanceWindowsResultFilterSensitiveLog = DescribeMaintenanceWindowsResultFilterSensitiveLog; -const MaintenanceWindowTargetFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.OwnerInformation && { OwnerInformation: smithy_client_1.SENSITIVE_STRING }), - ...(obj.Description && { Description: smithy_client_1.SENSITIVE_STRING }), -}); -exports.MaintenanceWindowTargetFilterSensitiveLog = MaintenanceWindowTargetFilterSensitiveLog; -const DescribeMaintenanceWindowTargetsResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Targets && { Targets: obj.Targets.map((item) => (0, exports.MaintenanceWindowTargetFilterSensitiveLog)(item)) }), -}); -exports.DescribeMaintenanceWindowTargetsResultFilterSensitiveLog = DescribeMaintenanceWindowTargetsResultFilterSensitiveLog; -const MaintenanceWindowTaskParameterValueExpressionFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Values && { Values: smithy_client_1.SENSITIVE_STRING }), -}); -exports.MaintenanceWindowTaskParameterValueExpressionFilterSensitiveLog = MaintenanceWindowTaskParameterValueExpressionFilterSensitiveLog; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/models/models_1.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/models/models_1.js deleted file mode 100644 index 7c7c97e2..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/models/models_1.js +++ /dev/null @@ -1,1135 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DocumentPermissionLimit = exports.LastResourceDataSyncStatus = exports.OpsItemRelatedItemsFilterOperator = exports.OpsItemRelatedItemsFilterKey = exports.OpsItemEventFilterOperator = exports.OpsItemEventFilterKey = exports.DocumentFilterKey = exports.DocumentReviewCommentType = exports.DocumentMetadataEnum = exports.ComplianceStatus = exports.ComplianceSeverity = exports.ComplianceQueryOperatorType = exports.CommandStatus = exports.CommandPluginStatus = exports.CommandFilterKey = exports.AssociationFilterKey = exports.ParameterVersionLabelLimitExceeded = exports.ServiceSettingNotFound = exports.ParameterVersionNotFound = exports.InvalidKeyId = exports.OpsFilterOperatorType = exports.NotificationType = exports.NotificationEvent = exports.InventoryAttributeDataType = exports.InvalidResultAttributeException = exports.InvalidInventoryGroupException = exports.InvalidAggregatorException = exports.InventoryQueryOperatorType = exports.AttachmentHashType = exports.UnsupportedFeatureRequiredException = exports.ConnectionStatus = exports.InvocationDoesNotExist = exports.InvalidPluginName = exports.CommandInvocationStatus = exports.UnsupportedCalendarException = exports.InvalidDocumentType = exports.CalendarState = exports.OpsItemRelatedItemAssociationNotFoundException = exports.SessionStatus = exports.SessionState = exports.SessionFilterKey = exports.PatchProperty = exports.PatchSet = exports.InvalidFilterOption = exports.ParameterType = exports.ParameterTier = exports.ParametersFilterKey = exports.OpsItemStatus = exports.OpsItemFilterOperator = exports.OpsItemFilterKey = void 0; -exports.MaintenanceWindowStepFunctionsParametersFilterSensitiveLog = exports.MaintenanceWindowRunCommandParametersFilterSensitiveLog = exports.MaintenanceWindowLambdaParametersFilterSensitiveLog = exports.GetMaintenanceWindowExecutionTaskInvocationResultFilterSensitiveLog = exports.GetMaintenanceWindowExecutionTaskResultFilterSensitiveLog = exports.GetMaintenanceWindowResultFilterSensitiveLog = exports.GetDeployablePatchSnapshotForInstanceRequestFilterSensitiveLog = exports.BaselineOverrideFilterSensitiveLog = exports.DescribeMaintenanceWindowTasksResultFilterSensitiveLog = exports.MaintenanceWindowTaskFilterSensitiveLog = exports.StopType = exports.InvalidAutomationStatusUpdateException = exports.TargetNotConnected = exports.AutomationDefinitionNotApprovedException = exports.InvalidAutomationExecutionParametersException = exports.AutomationExecutionLimitExceededException = exports.AutomationDefinitionVersionNotFoundException = exports.AutomationDefinitionNotFoundException = exports.InvalidAssociation = exports.InvalidRole = exports.InvalidOutputFolder = exports.InvalidNotificationConfig = exports.SignalType = exports.InvalidAutomationSignalException = exports.AutomationStepNotFoundException = exports.FeatureNotAvailableException = exports.ResourcePolicyLimitExceededException = exports.UnsupportedParameterType = exports.PoliciesLimitExceededException = exports.ParameterPatternMismatchException = exports.ParameterMaxVersionLimitExceeded = exports.ParameterLimitExceeded = exports.ParameterAlreadyExists = exports.InvalidPolicyTypeException = exports.InvalidPolicyAttributeException = exports.InvalidAllowedPatternException = exports.IncompatiblePolicyException = exports.HierarchyTypeMismatchException = exports.HierarchyLevelLimitExceededException = exports.UnsupportedInventorySchemaVersionException = exports.UnsupportedInventoryItemContextException = exports.SubTypeCountLimitExceededException = exports.ItemContentMismatchException = exports.InvalidInventoryItemContextException = exports.CustomSchemaCountLimitExceededException = exports.TotalSizeLimitExceededException = exports.ComplianceUploadType = exports.ItemSizeLimitExceededException = exports.InvalidItemContentException = exports.ComplianceTypeCountLimitExceededException = void 0; -exports.SendCommandResultFilterSensitiveLog = exports.SendCommandRequestFilterSensitiveLog = exports.RegisterTaskWithMaintenanceWindowRequestFilterSensitiveLog = exports.RegisterTargetWithMaintenanceWindowRequestFilterSensitiveLog = exports.PutParameterRequestFilterSensitiveLog = exports.ListCommandsResultFilterSensitiveLog = exports.CommandFilterSensitiveLog = exports.ListAssociationVersionsResultFilterSensitiveLog = exports.AssociationVersionInfoFilterSensitiveLog = exports.GetPatchBaselineResultFilterSensitiveLog = exports.GetParametersByPathResultFilterSensitiveLog = exports.GetParametersResultFilterSensitiveLog = exports.GetParameterHistoryResultFilterSensitiveLog = exports.ParameterHistoryFilterSensitiveLog = exports.GetParameterResultFilterSensitiveLog = exports.ParameterFilterSensitiveLog = exports.GetMaintenanceWindowTaskResultFilterSensitiveLog = exports.MaintenanceWindowTaskInvocationParametersFilterSensitiveLog = void 0; -const smithy_client_1 = require("@smithy/smithy-client"); -const models_0_1 = require("./models_0"); -const SSMServiceException_1 = require("./SSMServiceException"); -exports.OpsItemFilterKey = { - ACCOUNT_ID: "AccountId", - ACTUAL_END_TIME: "ActualEndTime", - ACTUAL_START_TIME: "ActualStartTime", - AUTOMATION_ID: "AutomationId", - CATEGORY: "Category", - CHANGE_REQUEST_APPROVER_ARN: "ChangeRequestByApproverArn", - CHANGE_REQUEST_APPROVER_NAME: "ChangeRequestByApproverName", - CHANGE_REQUEST_REQUESTER_ARN: "ChangeRequestByRequesterArn", - CHANGE_REQUEST_REQUESTER_NAME: "ChangeRequestByRequesterName", - CHANGE_REQUEST_TARGETS_RESOURCE_GROUP: "ChangeRequestByTargetsResourceGroup", - CHANGE_REQUEST_TEMPLATE: "ChangeRequestByTemplate", - CREATED_BY: "CreatedBy", - CREATED_TIME: "CreatedTime", - INSIGHT_TYPE: "InsightByType", - LAST_MODIFIED_TIME: "LastModifiedTime", - OPERATIONAL_DATA: "OperationalData", - OPERATIONAL_DATA_KEY: "OperationalDataKey", - OPERATIONAL_DATA_VALUE: "OperationalDataValue", - OPSITEM_ID: "OpsItemId", - OPSITEM_TYPE: "OpsItemType", - PLANNED_END_TIME: "PlannedEndTime", - PLANNED_START_TIME: "PlannedStartTime", - PRIORITY: "Priority", - RESOURCE_ID: "ResourceId", - SEVERITY: "Severity", - SOURCE: "Source", - STATUS: "Status", - TITLE: "Title", -}; -exports.OpsItemFilterOperator = { - CONTAINS: "Contains", - EQUAL: "Equal", - GREATER_THAN: "GreaterThan", - LESS_THAN: "LessThan", -}; -exports.OpsItemStatus = { - APPROVED: "Approved", - CANCELLED: "Cancelled", - CANCELLING: "Cancelling", - CHANGE_CALENDAR_OVERRIDE_APPROVED: "ChangeCalendarOverrideApproved", - CHANGE_CALENDAR_OVERRIDE_REJECTED: "ChangeCalendarOverrideRejected", - CLOSED: "Closed", - COMPLETED_WITH_FAILURE: "CompletedWithFailure", - COMPLETED_WITH_SUCCESS: "CompletedWithSuccess", - FAILED: "Failed", - IN_PROGRESS: "InProgress", - OPEN: "Open", - PENDING: "Pending", - PENDING_APPROVAL: "PendingApproval", - PENDING_CHANGE_CALENDAR_OVERRIDE: "PendingChangeCalendarOverride", - REJECTED: "Rejected", - RESOLVED: "Resolved", - RUNBOOK_IN_PROGRESS: "RunbookInProgress", - SCHEDULED: "Scheduled", - TIMED_OUT: "TimedOut", -}; -exports.ParametersFilterKey = { - KEY_ID: "KeyId", - NAME: "Name", - TYPE: "Type", -}; -exports.ParameterTier = { - ADVANCED: "Advanced", - INTELLIGENT_TIERING: "Intelligent-Tiering", - STANDARD: "Standard", -}; -exports.ParameterType = { - SECURE_STRING: "SecureString", - STRING: "String", - STRING_LIST: "StringList", -}; -class InvalidFilterOption extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidFilterOption", - $fault: "client", - ...opts, - }); - this.name = "InvalidFilterOption"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidFilterOption.prototype); - } -} -exports.InvalidFilterOption = InvalidFilterOption; -exports.PatchSet = { - Application: "APPLICATION", - Os: "OS", -}; -exports.PatchProperty = { - PatchClassification: "CLASSIFICATION", - PatchMsrcSeverity: "MSRC_SEVERITY", - PatchPriority: "PRIORITY", - PatchProductFamily: "PRODUCT_FAMILY", - PatchSeverity: "SEVERITY", - Product: "PRODUCT", -}; -exports.SessionFilterKey = { - INVOKED_AFTER: "InvokedAfter", - INVOKED_BEFORE: "InvokedBefore", - OWNER: "Owner", - SESSION_ID: "SessionId", - STATUS: "Status", - TARGET_ID: "Target", -}; -exports.SessionState = { - ACTIVE: "Active", - HISTORY: "History", -}; -exports.SessionStatus = { - CONNECTED: "Connected", - CONNECTING: "Connecting", - DISCONNECTED: "Disconnected", - FAILED: "Failed", - TERMINATED: "Terminated", - TERMINATING: "Terminating", -}; -class OpsItemRelatedItemAssociationNotFoundException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "OpsItemRelatedItemAssociationNotFoundException", - $fault: "client", - ...opts, - }); - this.name = "OpsItemRelatedItemAssociationNotFoundException"; - this.$fault = "client"; - Object.setPrototypeOf(this, OpsItemRelatedItemAssociationNotFoundException.prototype); - this.Message = opts.Message; - } -} -exports.OpsItemRelatedItemAssociationNotFoundException = OpsItemRelatedItemAssociationNotFoundException; -exports.CalendarState = { - CLOSED: "CLOSED", - OPEN: "OPEN", -}; -class InvalidDocumentType extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidDocumentType", - $fault: "client", - ...opts, - }); - this.name = "InvalidDocumentType"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidDocumentType.prototype); - this.Message = opts.Message; - } -} -exports.InvalidDocumentType = InvalidDocumentType; -class UnsupportedCalendarException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "UnsupportedCalendarException", - $fault: "client", - ...opts, - }); - this.name = "UnsupportedCalendarException"; - this.$fault = "client"; - Object.setPrototypeOf(this, UnsupportedCalendarException.prototype); - this.Message = opts.Message; - } -} -exports.UnsupportedCalendarException = UnsupportedCalendarException; -exports.CommandInvocationStatus = { - CANCELLED: "Cancelled", - CANCELLING: "Cancelling", - DELAYED: "Delayed", - FAILED: "Failed", - IN_PROGRESS: "InProgress", - PENDING: "Pending", - SUCCESS: "Success", - TIMED_OUT: "TimedOut", -}; -class InvalidPluginName extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidPluginName", - $fault: "client", - ...opts, - }); - this.name = "InvalidPluginName"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidPluginName.prototype); - } -} -exports.InvalidPluginName = InvalidPluginName; -class InvocationDoesNotExist extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvocationDoesNotExist", - $fault: "client", - ...opts, - }); - this.name = "InvocationDoesNotExist"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvocationDoesNotExist.prototype); - } -} -exports.InvocationDoesNotExist = InvocationDoesNotExist; -exports.ConnectionStatus = { - CONNECTED: "connected", - NOT_CONNECTED: "notconnected", -}; -class UnsupportedFeatureRequiredException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "UnsupportedFeatureRequiredException", - $fault: "client", - ...opts, - }); - this.name = "UnsupportedFeatureRequiredException"; - this.$fault = "client"; - Object.setPrototypeOf(this, UnsupportedFeatureRequiredException.prototype); - this.Message = opts.Message; - } -} -exports.UnsupportedFeatureRequiredException = UnsupportedFeatureRequiredException; -exports.AttachmentHashType = { - SHA256: "Sha256", -}; -exports.InventoryQueryOperatorType = { - BEGIN_WITH: "BeginWith", - EQUAL: "Equal", - EXISTS: "Exists", - GREATER_THAN: "GreaterThan", - LESS_THAN: "LessThan", - NOT_EQUAL: "NotEqual", -}; -class InvalidAggregatorException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidAggregatorException", - $fault: "client", - ...opts, - }); - this.name = "InvalidAggregatorException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidAggregatorException.prototype); - this.Message = opts.Message; - } -} -exports.InvalidAggregatorException = InvalidAggregatorException; -class InvalidInventoryGroupException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidInventoryGroupException", - $fault: "client", - ...opts, - }); - this.name = "InvalidInventoryGroupException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidInventoryGroupException.prototype); - this.Message = opts.Message; - } -} -exports.InvalidInventoryGroupException = InvalidInventoryGroupException; -class InvalidResultAttributeException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidResultAttributeException", - $fault: "client", - ...opts, - }); - this.name = "InvalidResultAttributeException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidResultAttributeException.prototype); - this.Message = opts.Message; - } -} -exports.InvalidResultAttributeException = InvalidResultAttributeException; -exports.InventoryAttributeDataType = { - NUMBER: "number", - STRING: "string", -}; -exports.NotificationEvent = { - ALL: "All", - CANCELLED: "Cancelled", - FAILED: "Failed", - IN_PROGRESS: "InProgress", - SUCCESS: "Success", - TIMED_OUT: "TimedOut", -}; -exports.NotificationType = { - Command: "Command", - Invocation: "Invocation", -}; -exports.OpsFilterOperatorType = { - BEGIN_WITH: "BeginWith", - EQUAL: "Equal", - EXISTS: "Exists", - GREATER_THAN: "GreaterThan", - LESS_THAN: "LessThan", - NOT_EQUAL: "NotEqual", -}; -class InvalidKeyId extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidKeyId", - $fault: "client", - ...opts, - }); - this.name = "InvalidKeyId"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidKeyId.prototype); - } -} -exports.InvalidKeyId = InvalidKeyId; -class ParameterVersionNotFound extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "ParameterVersionNotFound", - $fault: "client", - ...opts, - }); - this.name = "ParameterVersionNotFound"; - this.$fault = "client"; - Object.setPrototypeOf(this, ParameterVersionNotFound.prototype); - } -} -exports.ParameterVersionNotFound = ParameterVersionNotFound; -class ServiceSettingNotFound extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "ServiceSettingNotFound", - $fault: "client", - ...opts, - }); - this.name = "ServiceSettingNotFound"; - this.$fault = "client"; - Object.setPrototypeOf(this, ServiceSettingNotFound.prototype); - this.Message = opts.Message; - } -} -exports.ServiceSettingNotFound = ServiceSettingNotFound; -class ParameterVersionLabelLimitExceeded extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "ParameterVersionLabelLimitExceeded", - $fault: "client", - ...opts, - }); - this.name = "ParameterVersionLabelLimitExceeded"; - this.$fault = "client"; - Object.setPrototypeOf(this, ParameterVersionLabelLimitExceeded.prototype); - } -} -exports.ParameterVersionLabelLimitExceeded = ParameterVersionLabelLimitExceeded; -exports.AssociationFilterKey = { - AssociationId: "AssociationId", - AssociationName: "AssociationName", - InstanceId: "InstanceId", - LastExecutedAfter: "LastExecutedAfter", - LastExecutedBefore: "LastExecutedBefore", - Name: "Name", - ResourceGroupName: "ResourceGroupName", - Status: "AssociationStatusName", -}; -exports.CommandFilterKey = { - DOCUMENT_NAME: "DocumentName", - EXECUTION_STAGE: "ExecutionStage", - INVOKED_AFTER: "InvokedAfter", - INVOKED_BEFORE: "InvokedBefore", - STATUS: "Status", -}; -exports.CommandPluginStatus = { - CANCELLED: "Cancelled", - FAILED: "Failed", - IN_PROGRESS: "InProgress", - PENDING: "Pending", - SUCCESS: "Success", - TIMED_OUT: "TimedOut", -}; -exports.CommandStatus = { - CANCELLED: "Cancelled", - CANCELLING: "Cancelling", - FAILED: "Failed", - IN_PROGRESS: "InProgress", - PENDING: "Pending", - SUCCESS: "Success", - TIMED_OUT: "TimedOut", -}; -exports.ComplianceQueryOperatorType = { - BeginWith: "BEGIN_WITH", - Equal: "EQUAL", - GreaterThan: "GREATER_THAN", - LessThan: "LESS_THAN", - NotEqual: "NOT_EQUAL", -}; -exports.ComplianceSeverity = { - Critical: "CRITICAL", - High: "HIGH", - Informational: "INFORMATIONAL", - Low: "LOW", - Medium: "MEDIUM", - Unspecified: "UNSPECIFIED", -}; -exports.ComplianceStatus = { - Compliant: "COMPLIANT", - NonCompliant: "NON_COMPLIANT", -}; -exports.DocumentMetadataEnum = { - DocumentReviews: "DocumentReviews", -}; -exports.DocumentReviewCommentType = { - Comment: "Comment", -}; -exports.DocumentFilterKey = { - DocumentType: "DocumentType", - Name: "Name", - Owner: "Owner", - PlatformTypes: "PlatformTypes", -}; -exports.OpsItemEventFilterKey = { - OPSITEM_ID: "OpsItemId", -}; -exports.OpsItemEventFilterOperator = { - EQUAL: "Equal", -}; -exports.OpsItemRelatedItemsFilterKey = { - ASSOCIATION_ID: "AssociationId", - RESOURCE_TYPE: "ResourceType", - RESOURCE_URI: "ResourceUri", -}; -exports.OpsItemRelatedItemsFilterOperator = { - EQUAL: "Equal", -}; -exports.LastResourceDataSyncStatus = { - FAILED: "Failed", - INPROGRESS: "InProgress", - SUCCESSFUL: "Successful", -}; -class DocumentPermissionLimit extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "DocumentPermissionLimit", - $fault: "client", - ...opts, - }); - this.name = "DocumentPermissionLimit"; - this.$fault = "client"; - Object.setPrototypeOf(this, DocumentPermissionLimit.prototype); - this.Message = opts.Message; - } -} -exports.DocumentPermissionLimit = DocumentPermissionLimit; -class ComplianceTypeCountLimitExceededException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "ComplianceTypeCountLimitExceededException", - $fault: "client", - ...opts, - }); - this.name = "ComplianceTypeCountLimitExceededException"; - this.$fault = "client"; - Object.setPrototypeOf(this, ComplianceTypeCountLimitExceededException.prototype); - this.Message = opts.Message; - } -} -exports.ComplianceTypeCountLimitExceededException = ComplianceTypeCountLimitExceededException; -class InvalidItemContentException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidItemContentException", - $fault: "client", - ...opts, - }); - this.name = "InvalidItemContentException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidItemContentException.prototype); - this.TypeName = opts.TypeName; - this.Message = opts.Message; - } -} -exports.InvalidItemContentException = InvalidItemContentException; -class ItemSizeLimitExceededException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "ItemSizeLimitExceededException", - $fault: "client", - ...opts, - }); - this.name = "ItemSizeLimitExceededException"; - this.$fault = "client"; - Object.setPrototypeOf(this, ItemSizeLimitExceededException.prototype); - this.TypeName = opts.TypeName; - this.Message = opts.Message; - } -} -exports.ItemSizeLimitExceededException = ItemSizeLimitExceededException; -exports.ComplianceUploadType = { - Complete: "COMPLETE", - Partial: "PARTIAL", -}; -class TotalSizeLimitExceededException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "TotalSizeLimitExceededException", - $fault: "client", - ...opts, - }); - this.name = "TotalSizeLimitExceededException"; - this.$fault = "client"; - Object.setPrototypeOf(this, TotalSizeLimitExceededException.prototype); - this.Message = opts.Message; - } -} -exports.TotalSizeLimitExceededException = TotalSizeLimitExceededException; -class CustomSchemaCountLimitExceededException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "CustomSchemaCountLimitExceededException", - $fault: "client", - ...opts, - }); - this.name = "CustomSchemaCountLimitExceededException"; - this.$fault = "client"; - Object.setPrototypeOf(this, CustomSchemaCountLimitExceededException.prototype); - this.Message = opts.Message; - } -} -exports.CustomSchemaCountLimitExceededException = CustomSchemaCountLimitExceededException; -class InvalidInventoryItemContextException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidInventoryItemContextException", - $fault: "client", - ...opts, - }); - this.name = "InvalidInventoryItemContextException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidInventoryItemContextException.prototype); - this.Message = opts.Message; - } -} -exports.InvalidInventoryItemContextException = InvalidInventoryItemContextException; -class ItemContentMismatchException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "ItemContentMismatchException", - $fault: "client", - ...opts, - }); - this.name = "ItemContentMismatchException"; - this.$fault = "client"; - Object.setPrototypeOf(this, ItemContentMismatchException.prototype); - this.TypeName = opts.TypeName; - this.Message = opts.Message; - } -} -exports.ItemContentMismatchException = ItemContentMismatchException; -class SubTypeCountLimitExceededException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "SubTypeCountLimitExceededException", - $fault: "client", - ...opts, - }); - this.name = "SubTypeCountLimitExceededException"; - this.$fault = "client"; - Object.setPrototypeOf(this, SubTypeCountLimitExceededException.prototype); - this.Message = opts.Message; - } -} -exports.SubTypeCountLimitExceededException = SubTypeCountLimitExceededException; -class UnsupportedInventoryItemContextException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "UnsupportedInventoryItemContextException", - $fault: "client", - ...opts, - }); - this.name = "UnsupportedInventoryItemContextException"; - this.$fault = "client"; - Object.setPrototypeOf(this, UnsupportedInventoryItemContextException.prototype); - this.TypeName = opts.TypeName; - this.Message = opts.Message; - } -} -exports.UnsupportedInventoryItemContextException = UnsupportedInventoryItemContextException; -class UnsupportedInventorySchemaVersionException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "UnsupportedInventorySchemaVersionException", - $fault: "client", - ...opts, - }); - this.name = "UnsupportedInventorySchemaVersionException"; - this.$fault = "client"; - Object.setPrototypeOf(this, UnsupportedInventorySchemaVersionException.prototype); - this.Message = opts.Message; - } -} -exports.UnsupportedInventorySchemaVersionException = UnsupportedInventorySchemaVersionException; -class HierarchyLevelLimitExceededException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "HierarchyLevelLimitExceededException", - $fault: "client", - ...opts, - }); - this.name = "HierarchyLevelLimitExceededException"; - this.$fault = "client"; - Object.setPrototypeOf(this, HierarchyLevelLimitExceededException.prototype); - } -} -exports.HierarchyLevelLimitExceededException = HierarchyLevelLimitExceededException; -class HierarchyTypeMismatchException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "HierarchyTypeMismatchException", - $fault: "client", - ...opts, - }); - this.name = "HierarchyTypeMismatchException"; - this.$fault = "client"; - Object.setPrototypeOf(this, HierarchyTypeMismatchException.prototype); - } -} -exports.HierarchyTypeMismatchException = HierarchyTypeMismatchException; -class IncompatiblePolicyException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "IncompatiblePolicyException", - $fault: "client", - ...opts, - }); - this.name = "IncompatiblePolicyException"; - this.$fault = "client"; - Object.setPrototypeOf(this, IncompatiblePolicyException.prototype); - } -} -exports.IncompatiblePolicyException = IncompatiblePolicyException; -class InvalidAllowedPatternException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidAllowedPatternException", - $fault: "client", - ...opts, - }); - this.name = "InvalidAllowedPatternException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidAllowedPatternException.prototype); - } -} -exports.InvalidAllowedPatternException = InvalidAllowedPatternException; -class InvalidPolicyAttributeException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidPolicyAttributeException", - $fault: "client", - ...opts, - }); - this.name = "InvalidPolicyAttributeException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidPolicyAttributeException.prototype); - } -} -exports.InvalidPolicyAttributeException = InvalidPolicyAttributeException; -class InvalidPolicyTypeException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidPolicyTypeException", - $fault: "client", - ...opts, - }); - this.name = "InvalidPolicyTypeException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidPolicyTypeException.prototype); - } -} -exports.InvalidPolicyTypeException = InvalidPolicyTypeException; -class ParameterAlreadyExists extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "ParameterAlreadyExists", - $fault: "client", - ...opts, - }); - this.name = "ParameterAlreadyExists"; - this.$fault = "client"; - Object.setPrototypeOf(this, ParameterAlreadyExists.prototype); - } -} -exports.ParameterAlreadyExists = ParameterAlreadyExists; -class ParameterLimitExceeded extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "ParameterLimitExceeded", - $fault: "client", - ...opts, - }); - this.name = "ParameterLimitExceeded"; - this.$fault = "client"; - Object.setPrototypeOf(this, ParameterLimitExceeded.prototype); - } -} -exports.ParameterLimitExceeded = ParameterLimitExceeded; -class ParameterMaxVersionLimitExceeded extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "ParameterMaxVersionLimitExceeded", - $fault: "client", - ...opts, - }); - this.name = "ParameterMaxVersionLimitExceeded"; - this.$fault = "client"; - Object.setPrototypeOf(this, ParameterMaxVersionLimitExceeded.prototype); - } -} -exports.ParameterMaxVersionLimitExceeded = ParameterMaxVersionLimitExceeded; -class ParameterPatternMismatchException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "ParameterPatternMismatchException", - $fault: "client", - ...opts, - }); - this.name = "ParameterPatternMismatchException"; - this.$fault = "client"; - Object.setPrototypeOf(this, ParameterPatternMismatchException.prototype); - } -} -exports.ParameterPatternMismatchException = ParameterPatternMismatchException; -class PoliciesLimitExceededException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "PoliciesLimitExceededException", - $fault: "client", - ...opts, - }); - this.name = "PoliciesLimitExceededException"; - this.$fault = "client"; - Object.setPrototypeOf(this, PoliciesLimitExceededException.prototype); - } -} -exports.PoliciesLimitExceededException = PoliciesLimitExceededException; -class UnsupportedParameterType extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "UnsupportedParameterType", - $fault: "client", - ...opts, - }); - this.name = "UnsupportedParameterType"; - this.$fault = "client"; - Object.setPrototypeOf(this, UnsupportedParameterType.prototype); - } -} -exports.UnsupportedParameterType = UnsupportedParameterType; -class ResourcePolicyLimitExceededException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "ResourcePolicyLimitExceededException", - $fault: "client", - ...opts, - }); - this.name = "ResourcePolicyLimitExceededException"; - this.$fault = "client"; - Object.setPrototypeOf(this, ResourcePolicyLimitExceededException.prototype); - this.Limit = opts.Limit; - this.LimitType = opts.LimitType; - this.Message = opts.Message; - } -} -exports.ResourcePolicyLimitExceededException = ResourcePolicyLimitExceededException; -class FeatureNotAvailableException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "FeatureNotAvailableException", - $fault: "client", - ...opts, - }); - this.name = "FeatureNotAvailableException"; - this.$fault = "client"; - Object.setPrototypeOf(this, FeatureNotAvailableException.prototype); - this.Message = opts.Message; - } -} -exports.FeatureNotAvailableException = FeatureNotAvailableException; -class AutomationStepNotFoundException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "AutomationStepNotFoundException", - $fault: "client", - ...opts, - }); - this.name = "AutomationStepNotFoundException"; - this.$fault = "client"; - Object.setPrototypeOf(this, AutomationStepNotFoundException.prototype); - this.Message = opts.Message; - } -} -exports.AutomationStepNotFoundException = AutomationStepNotFoundException; -class InvalidAutomationSignalException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidAutomationSignalException", - $fault: "client", - ...opts, - }); - this.name = "InvalidAutomationSignalException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidAutomationSignalException.prototype); - this.Message = opts.Message; - } -} -exports.InvalidAutomationSignalException = InvalidAutomationSignalException; -exports.SignalType = { - APPROVE: "Approve", - REJECT: "Reject", - RESUME: "Resume", - START_STEP: "StartStep", - STOP_STEP: "StopStep", -}; -class InvalidNotificationConfig extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidNotificationConfig", - $fault: "client", - ...opts, - }); - this.name = "InvalidNotificationConfig"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidNotificationConfig.prototype); - this.Message = opts.Message; - } -} -exports.InvalidNotificationConfig = InvalidNotificationConfig; -class InvalidOutputFolder extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidOutputFolder", - $fault: "client", - ...opts, - }); - this.name = "InvalidOutputFolder"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidOutputFolder.prototype); - } -} -exports.InvalidOutputFolder = InvalidOutputFolder; -class InvalidRole extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidRole", - $fault: "client", - ...opts, - }); - this.name = "InvalidRole"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidRole.prototype); - this.Message = opts.Message; - } -} -exports.InvalidRole = InvalidRole; -class InvalidAssociation extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidAssociation", - $fault: "client", - ...opts, - }); - this.name = "InvalidAssociation"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidAssociation.prototype); - this.Message = opts.Message; - } -} -exports.InvalidAssociation = InvalidAssociation; -class AutomationDefinitionNotFoundException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "AutomationDefinitionNotFoundException", - $fault: "client", - ...opts, - }); - this.name = "AutomationDefinitionNotFoundException"; - this.$fault = "client"; - Object.setPrototypeOf(this, AutomationDefinitionNotFoundException.prototype); - this.Message = opts.Message; - } -} -exports.AutomationDefinitionNotFoundException = AutomationDefinitionNotFoundException; -class AutomationDefinitionVersionNotFoundException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "AutomationDefinitionVersionNotFoundException", - $fault: "client", - ...opts, - }); - this.name = "AutomationDefinitionVersionNotFoundException"; - this.$fault = "client"; - Object.setPrototypeOf(this, AutomationDefinitionVersionNotFoundException.prototype); - this.Message = opts.Message; - } -} -exports.AutomationDefinitionVersionNotFoundException = AutomationDefinitionVersionNotFoundException; -class AutomationExecutionLimitExceededException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "AutomationExecutionLimitExceededException", - $fault: "client", - ...opts, - }); - this.name = "AutomationExecutionLimitExceededException"; - this.$fault = "client"; - Object.setPrototypeOf(this, AutomationExecutionLimitExceededException.prototype); - this.Message = opts.Message; - } -} -exports.AutomationExecutionLimitExceededException = AutomationExecutionLimitExceededException; -class InvalidAutomationExecutionParametersException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidAutomationExecutionParametersException", - $fault: "client", - ...opts, - }); - this.name = "InvalidAutomationExecutionParametersException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidAutomationExecutionParametersException.prototype); - this.Message = opts.Message; - } -} -exports.InvalidAutomationExecutionParametersException = InvalidAutomationExecutionParametersException; -class AutomationDefinitionNotApprovedException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "AutomationDefinitionNotApprovedException", - $fault: "client", - ...opts, - }); - this.name = "AutomationDefinitionNotApprovedException"; - this.$fault = "client"; - Object.setPrototypeOf(this, AutomationDefinitionNotApprovedException.prototype); - this.Message = opts.Message; - } -} -exports.AutomationDefinitionNotApprovedException = AutomationDefinitionNotApprovedException; -class TargetNotConnected extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "TargetNotConnected", - $fault: "client", - ...opts, - }); - this.name = "TargetNotConnected"; - this.$fault = "client"; - Object.setPrototypeOf(this, TargetNotConnected.prototype); - this.Message = opts.Message; - } -} -exports.TargetNotConnected = TargetNotConnected; -class InvalidAutomationStatusUpdateException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidAutomationStatusUpdateException", - $fault: "client", - ...opts, - }); - this.name = "InvalidAutomationStatusUpdateException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidAutomationStatusUpdateException.prototype); - this.Message = opts.Message; - } -} -exports.InvalidAutomationStatusUpdateException = InvalidAutomationStatusUpdateException; -exports.StopType = { - CANCEL: "Cancel", - COMPLETE: "Complete", -}; -const MaintenanceWindowTaskFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.TaskParameters && { TaskParameters: smithy_client_1.SENSITIVE_STRING }), - ...(obj.Description && { Description: smithy_client_1.SENSITIVE_STRING }), -}); -exports.MaintenanceWindowTaskFilterSensitiveLog = MaintenanceWindowTaskFilterSensitiveLog; -const DescribeMaintenanceWindowTasksResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Tasks && { Tasks: obj.Tasks.map((item) => (0, exports.MaintenanceWindowTaskFilterSensitiveLog)(item)) }), -}); -exports.DescribeMaintenanceWindowTasksResultFilterSensitiveLog = DescribeMaintenanceWindowTasksResultFilterSensitiveLog; -const BaselineOverrideFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Sources && { Sources: obj.Sources.map((item) => (0, models_0_1.PatchSourceFilterSensitiveLog)(item)) }), -}); -exports.BaselineOverrideFilterSensitiveLog = BaselineOverrideFilterSensitiveLog; -const GetDeployablePatchSnapshotForInstanceRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -exports.GetDeployablePatchSnapshotForInstanceRequestFilterSensitiveLog = GetDeployablePatchSnapshotForInstanceRequestFilterSensitiveLog; -const GetMaintenanceWindowResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Description && { Description: smithy_client_1.SENSITIVE_STRING }), -}); -exports.GetMaintenanceWindowResultFilterSensitiveLog = GetMaintenanceWindowResultFilterSensitiveLog; -const GetMaintenanceWindowExecutionTaskResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.TaskParameters && { TaskParameters: smithy_client_1.SENSITIVE_STRING }), -}); -exports.GetMaintenanceWindowExecutionTaskResultFilterSensitiveLog = GetMaintenanceWindowExecutionTaskResultFilterSensitiveLog; -const GetMaintenanceWindowExecutionTaskInvocationResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Parameters && { Parameters: smithy_client_1.SENSITIVE_STRING }), - ...(obj.OwnerInformation && { OwnerInformation: smithy_client_1.SENSITIVE_STRING }), -}); -exports.GetMaintenanceWindowExecutionTaskInvocationResultFilterSensitiveLog = GetMaintenanceWindowExecutionTaskInvocationResultFilterSensitiveLog; -const MaintenanceWindowLambdaParametersFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Payload && { Payload: smithy_client_1.SENSITIVE_STRING }), -}); -exports.MaintenanceWindowLambdaParametersFilterSensitiveLog = MaintenanceWindowLambdaParametersFilterSensitiveLog; -const MaintenanceWindowRunCommandParametersFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Parameters && { Parameters: smithy_client_1.SENSITIVE_STRING }), -}); -exports.MaintenanceWindowRunCommandParametersFilterSensitiveLog = MaintenanceWindowRunCommandParametersFilterSensitiveLog; -const MaintenanceWindowStepFunctionsParametersFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Input && { Input: smithy_client_1.SENSITIVE_STRING }), -}); -exports.MaintenanceWindowStepFunctionsParametersFilterSensitiveLog = MaintenanceWindowStepFunctionsParametersFilterSensitiveLog; -const MaintenanceWindowTaskInvocationParametersFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.RunCommand && { RunCommand: (0, exports.MaintenanceWindowRunCommandParametersFilterSensitiveLog)(obj.RunCommand) }), - ...(obj.StepFunctions && { - StepFunctions: (0, exports.MaintenanceWindowStepFunctionsParametersFilterSensitiveLog)(obj.StepFunctions), - }), - ...(obj.Lambda && { Lambda: (0, exports.MaintenanceWindowLambdaParametersFilterSensitiveLog)(obj.Lambda) }), -}); -exports.MaintenanceWindowTaskInvocationParametersFilterSensitiveLog = MaintenanceWindowTaskInvocationParametersFilterSensitiveLog; -const GetMaintenanceWindowTaskResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.TaskParameters && { TaskParameters: smithy_client_1.SENSITIVE_STRING }), - ...(obj.TaskInvocationParameters && { - TaskInvocationParameters: (0, exports.MaintenanceWindowTaskInvocationParametersFilterSensitiveLog)(obj.TaskInvocationParameters), - }), - ...(obj.Description && { Description: smithy_client_1.SENSITIVE_STRING }), -}); -exports.GetMaintenanceWindowTaskResultFilterSensitiveLog = GetMaintenanceWindowTaskResultFilterSensitiveLog; -const ParameterFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Value && { Value: smithy_client_1.SENSITIVE_STRING }), -}); -exports.ParameterFilterSensitiveLog = ParameterFilterSensitiveLog; -const GetParameterResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Parameter && { Parameter: (0, exports.ParameterFilterSensitiveLog)(obj.Parameter) }), -}); -exports.GetParameterResultFilterSensitiveLog = GetParameterResultFilterSensitiveLog; -const ParameterHistoryFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Value && { Value: smithy_client_1.SENSITIVE_STRING }), -}); -exports.ParameterHistoryFilterSensitiveLog = ParameterHistoryFilterSensitiveLog; -const GetParameterHistoryResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Parameters && { Parameters: obj.Parameters.map((item) => (0, exports.ParameterHistoryFilterSensitiveLog)(item)) }), -}); -exports.GetParameterHistoryResultFilterSensitiveLog = GetParameterHistoryResultFilterSensitiveLog; -const GetParametersResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Parameters && { Parameters: obj.Parameters.map((item) => (0, exports.ParameterFilterSensitiveLog)(item)) }), -}); -exports.GetParametersResultFilterSensitiveLog = GetParametersResultFilterSensitiveLog; -const GetParametersByPathResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Parameters && { Parameters: obj.Parameters.map((item) => (0, exports.ParameterFilterSensitiveLog)(item)) }), -}); -exports.GetParametersByPathResultFilterSensitiveLog = GetParametersByPathResultFilterSensitiveLog; -const GetPatchBaselineResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Sources && { Sources: obj.Sources.map((item) => (0, models_0_1.PatchSourceFilterSensitiveLog)(item)) }), -}); -exports.GetPatchBaselineResultFilterSensitiveLog = GetPatchBaselineResultFilterSensitiveLog; -const AssociationVersionInfoFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Parameters && { Parameters: smithy_client_1.SENSITIVE_STRING }), -}); -exports.AssociationVersionInfoFilterSensitiveLog = AssociationVersionInfoFilterSensitiveLog; -const ListAssociationVersionsResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.AssociationVersions && { - AssociationVersions: obj.AssociationVersions.map((item) => (0, exports.AssociationVersionInfoFilterSensitiveLog)(item)), - }), -}); -exports.ListAssociationVersionsResultFilterSensitiveLog = ListAssociationVersionsResultFilterSensitiveLog; -const CommandFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Parameters && { Parameters: smithy_client_1.SENSITIVE_STRING }), -}); -exports.CommandFilterSensitiveLog = CommandFilterSensitiveLog; -const ListCommandsResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Commands && { Commands: obj.Commands.map((item) => (0, exports.CommandFilterSensitiveLog)(item)) }), -}); -exports.ListCommandsResultFilterSensitiveLog = ListCommandsResultFilterSensitiveLog; -const PutParameterRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Value && { Value: smithy_client_1.SENSITIVE_STRING }), -}); -exports.PutParameterRequestFilterSensitiveLog = PutParameterRequestFilterSensitiveLog; -const RegisterTargetWithMaintenanceWindowRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.OwnerInformation && { OwnerInformation: smithy_client_1.SENSITIVE_STRING }), - ...(obj.Description && { Description: smithy_client_1.SENSITIVE_STRING }), -}); -exports.RegisterTargetWithMaintenanceWindowRequestFilterSensitiveLog = RegisterTargetWithMaintenanceWindowRequestFilterSensitiveLog; -const RegisterTaskWithMaintenanceWindowRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.TaskParameters && { TaskParameters: smithy_client_1.SENSITIVE_STRING }), - ...(obj.TaskInvocationParameters && { - TaskInvocationParameters: (0, exports.MaintenanceWindowTaskInvocationParametersFilterSensitiveLog)(obj.TaskInvocationParameters), - }), - ...(obj.Description && { Description: smithy_client_1.SENSITIVE_STRING }), -}); -exports.RegisterTaskWithMaintenanceWindowRequestFilterSensitiveLog = RegisterTaskWithMaintenanceWindowRequestFilterSensitiveLog; -const SendCommandRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Parameters && { Parameters: smithy_client_1.SENSITIVE_STRING }), -}); -exports.SendCommandRequestFilterSensitiveLog = SendCommandRequestFilterSensitiveLog; -const SendCommandResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Command && { Command: (0, exports.CommandFilterSensitiveLog)(obj.Command) }), -}); -exports.SendCommandResultFilterSensitiveLog = SendCommandResultFilterSensitiveLog; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/models/models_2.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/models/models_2.js deleted file mode 100644 index 9c797ae2..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/models/models_2.js +++ /dev/null @@ -1,192 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.UpdatePatchBaselineResultFilterSensitiveLog = exports.UpdatePatchBaselineRequestFilterSensitiveLog = exports.UpdateMaintenanceWindowTaskResultFilterSensitiveLog = exports.UpdateMaintenanceWindowTaskRequestFilterSensitiveLog = exports.UpdateMaintenanceWindowTargetResultFilterSensitiveLog = exports.UpdateMaintenanceWindowTargetRequestFilterSensitiveLog = exports.UpdateMaintenanceWindowResultFilterSensitiveLog = exports.UpdateMaintenanceWindowRequestFilterSensitiveLog = exports.UpdateAssociationStatusResultFilterSensitiveLog = exports.UpdateAssociationResultFilterSensitiveLog = exports.UpdateAssociationRequestFilterSensitiveLog = exports.ResourceDataSyncConflictException = exports.OpsMetadataKeyLimitExceededException = exports.DocumentReviewAction = exports.DuplicateDocumentVersionName = exports.DuplicateDocumentContent = exports.DocumentVersionLimitExceeded = exports.StatusUnchanged = exports.InvalidUpdate = exports.AssociationVersionLimitExceeded = void 0; -const smithy_client_1 = require("@smithy/smithy-client"); -const models_0_1 = require("./models_0"); -const models_1_1 = require("./models_1"); -const SSMServiceException_1 = require("./SSMServiceException"); -class AssociationVersionLimitExceeded extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "AssociationVersionLimitExceeded", - $fault: "client", - ...opts, - }); - this.name = "AssociationVersionLimitExceeded"; - this.$fault = "client"; - Object.setPrototypeOf(this, AssociationVersionLimitExceeded.prototype); - this.Message = opts.Message; - } -} -exports.AssociationVersionLimitExceeded = AssociationVersionLimitExceeded; -class InvalidUpdate extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "InvalidUpdate", - $fault: "client", - ...opts, - }); - this.name = "InvalidUpdate"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidUpdate.prototype); - this.Message = opts.Message; - } -} -exports.InvalidUpdate = InvalidUpdate; -class StatusUnchanged extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "StatusUnchanged", - $fault: "client", - ...opts, - }); - this.name = "StatusUnchanged"; - this.$fault = "client"; - Object.setPrototypeOf(this, StatusUnchanged.prototype); - } -} -exports.StatusUnchanged = StatusUnchanged; -class DocumentVersionLimitExceeded extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "DocumentVersionLimitExceeded", - $fault: "client", - ...opts, - }); - this.name = "DocumentVersionLimitExceeded"; - this.$fault = "client"; - Object.setPrototypeOf(this, DocumentVersionLimitExceeded.prototype); - this.Message = opts.Message; - } -} -exports.DocumentVersionLimitExceeded = DocumentVersionLimitExceeded; -class DuplicateDocumentContent extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "DuplicateDocumentContent", - $fault: "client", - ...opts, - }); - this.name = "DuplicateDocumentContent"; - this.$fault = "client"; - Object.setPrototypeOf(this, DuplicateDocumentContent.prototype); - this.Message = opts.Message; - } -} -exports.DuplicateDocumentContent = DuplicateDocumentContent; -class DuplicateDocumentVersionName extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "DuplicateDocumentVersionName", - $fault: "client", - ...opts, - }); - this.name = "DuplicateDocumentVersionName"; - this.$fault = "client"; - Object.setPrototypeOf(this, DuplicateDocumentVersionName.prototype); - this.Message = opts.Message; - } -} -exports.DuplicateDocumentVersionName = DuplicateDocumentVersionName; -exports.DocumentReviewAction = { - Approve: "Approve", - Reject: "Reject", - SendForReview: "SendForReview", - UpdateReview: "UpdateReview", -}; -class OpsMetadataKeyLimitExceededException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "OpsMetadataKeyLimitExceededException", - $fault: "client", - ...opts, - }); - this.name = "OpsMetadataKeyLimitExceededException"; - this.$fault = "client"; - Object.setPrototypeOf(this, OpsMetadataKeyLimitExceededException.prototype); - } -} -exports.OpsMetadataKeyLimitExceededException = OpsMetadataKeyLimitExceededException; -class ResourceDataSyncConflictException extends SSMServiceException_1.SSMServiceException { - constructor(opts) { - super({ - name: "ResourceDataSyncConflictException", - $fault: "client", - ...opts, - }); - this.name = "ResourceDataSyncConflictException"; - this.$fault = "client"; - Object.setPrototypeOf(this, ResourceDataSyncConflictException.prototype); - this.Message = opts.Message; - } -} -exports.ResourceDataSyncConflictException = ResourceDataSyncConflictException; -const UpdateAssociationRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Parameters && { Parameters: smithy_client_1.SENSITIVE_STRING }), -}); -exports.UpdateAssociationRequestFilterSensitiveLog = UpdateAssociationRequestFilterSensitiveLog; -const UpdateAssociationResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.AssociationDescription && { - AssociationDescription: (0, models_0_1.AssociationDescriptionFilterSensitiveLog)(obj.AssociationDescription), - }), -}); -exports.UpdateAssociationResultFilterSensitiveLog = UpdateAssociationResultFilterSensitiveLog; -const UpdateAssociationStatusResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.AssociationDescription && { - AssociationDescription: (0, models_0_1.AssociationDescriptionFilterSensitiveLog)(obj.AssociationDescription), - }), -}); -exports.UpdateAssociationStatusResultFilterSensitiveLog = UpdateAssociationStatusResultFilterSensitiveLog; -const UpdateMaintenanceWindowRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Description && { Description: smithy_client_1.SENSITIVE_STRING }), -}); -exports.UpdateMaintenanceWindowRequestFilterSensitiveLog = UpdateMaintenanceWindowRequestFilterSensitiveLog; -const UpdateMaintenanceWindowResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Description && { Description: smithy_client_1.SENSITIVE_STRING }), -}); -exports.UpdateMaintenanceWindowResultFilterSensitiveLog = UpdateMaintenanceWindowResultFilterSensitiveLog; -const UpdateMaintenanceWindowTargetRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.OwnerInformation && { OwnerInformation: smithy_client_1.SENSITIVE_STRING }), - ...(obj.Description && { Description: smithy_client_1.SENSITIVE_STRING }), -}); -exports.UpdateMaintenanceWindowTargetRequestFilterSensitiveLog = UpdateMaintenanceWindowTargetRequestFilterSensitiveLog; -const UpdateMaintenanceWindowTargetResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.OwnerInformation && { OwnerInformation: smithy_client_1.SENSITIVE_STRING }), - ...(obj.Description && { Description: smithy_client_1.SENSITIVE_STRING }), -}); -exports.UpdateMaintenanceWindowTargetResultFilterSensitiveLog = UpdateMaintenanceWindowTargetResultFilterSensitiveLog; -const UpdateMaintenanceWindowTaskRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.TaskParameters && { TaskParameters: smithy_client_1.SENSITIVE_STRING }), - ...(obj.TaskInvocationParameters && { - TaskInvocationParameters: (0, models_1_1.MaintenanceWindowTaskInvocationParametersFilterSensitiveLog)(obj.TaskInvocationParameters), - }), - ...(obj.Description && { Description: smithy_client_1.SENSITIVE_STRING }), -}); -exports.UpdateMaintenanceWindowTaskRequestFilterSensitiveLog = UpdateMaintenanceWindowTaskRequestFilterSensitiveLog; -const UpdateMaintenanceWindowTaskResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.TaskParameters && { TaskParameters: smithy_client_1.SENSITIVE_STRING }), - ...(obj.TaskInvocationParameters && { - TaskInvocationParameters: (0, models_1_1.MaintenanceWindowTaskInvocationParametersFilterSensitiveLog)(obj.TaskInvocationParameters), - }), - ...(obj.Description && { Description: smithy_client_1.SENSITIVE_STRING }), -}); -exports.UpdateMaintenanceWindowTaskResultFilterSensitiveLog = UpdateMaintenanceWindowTaskResultFilterSensitiveLog; -const UpdatePatchBaselineRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Sources && { Sources: obj.Sources.map((item) => (0, models_0_1.PatchSourceFilterSensitiveLog)(item)) }), -}); -exports.UpdatePatchBaselineRequestFilterSensitiveLog = UpdatePatchBaselineRequestFilterSensitiveLog; -const UpdatePatchBaselineResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Sources && { Sources: obj.Sources.map((item) => (0, models_0_1.PatchSourceFilterSensitiveLog)(item)) }), -}); -exports.UpdatePatchBaselineResultFilterSensitiveLog = UpdatePatchBaselineResultFilterSensitiveLog; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeActivationsPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeActivationsPaginator.js deleted file mode 100644 index fb15cda0..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeActivationsPaginator.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.paginateDescribeActivations = void 0; -const DescribeActivationsCommand_1 = require("../commands/DescribeActivationsCommand"); -const SSMClient_1 = require("../SSMClient"); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeActivationsCommand_1.DescribeActivationsCommand(input), ...args); -}; -async function* paginateDescribeActivations(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateDescribeActivations = paginateDescribeActivations; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeAssociationExecutionTargetsPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeAssociationExecutionTargetsPaginator.js deleted file mode 100644 index 2501278a..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeAssociationExecutionTargetsPaginator.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.paginateDescribeAssociationExecutionTargets = void 0; -const DescribeAssociationExecutionTargetsCommand_1 = require("../commands/DescribeAssociationExecutionTargetsCommand"); -const SSMClient_1 = require("../SSMClient"); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeAssociationExecutionTargetsCommand_1.DescribeAssociationExecutionTargetsCommand(input), ...args); -}; -async function* paginateDescribeAssociationExecutionTargets(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateDescribeAssociationExecutionTargets = paginateDescribeAssociationExecutionTargets; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeAssociationExecutionsPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeAssociationExecutionsPaginator.js deleted file mode 100644 index 94614450..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeAssociationExecutionsPaginator.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.paginateDescribeAssociationExecutions = void 0; -const DescribeAssociationExecutionsCommand_1 = require("../commands/DescribeAssociationExecutionsCommand"); -const SSMClient_1 = require("../SSMClient"); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeAssociationExecutionsCommand_1.DescribeAssociationExecutionsCommand(input), ...args); -}; -async function* paginateDescribeAssociationExecutions(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateDescribeAssociationExecutions = paginateDescribeAssociationExecutions; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeAutomationExecutionsPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeAutomationExecutionsPaginator.js deleted file mode 100644 index 0f1c7abe..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeAutomationExecutionsPaginator.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.paginateDescribeAutomationExecutions = void 0; -const DescribeAutomationExecutionsCommand_1 = require("../commands/DescribeAutomationExecutionsCommand"); -const SSMClient_1 = require("../SSMClient"); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeAutomationExecutionsCommand_1.DescribeAutomationExecutionsCommand(input), ...args); -}; -async function* paginateDescribeAutomationExecutions(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateDescribeAutomationExecutions = paginateDescribeAutomationExecutions; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeAutomationStepExecutionsPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeAutomationStepExecutionsPaginator.js deleted file mode 100644 index 55371e0d..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeAutomationStepExecutionsPaginator.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.paginateDescribeAutomationStepExecutions = void 0; -const DescribeAutomationStepExecutionsCommand_1 = require("../commands/DescribeAutomationStepExecutionsCommand"); -const SSMClient_1 = require("../SSMClient"); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeAutomationStepExecutionsCommand_1.DescribeAutomationStepExecutionsCommand(input), ...args); -}; -async function* paginateDescribeAutomationStepExecutions(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateDescribeAutomationStepExecutions = paginateDescribeAutomationStepExecutions; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeAvailablePatchesPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeAvailablePatchesPaginator.js deleted file mode 100644 index 1eeef4ce..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeAvailablePatchesPaginator.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.paginateDescribeAvailablePatches = void 0; -const DescribeAvailablePatchesCommand_1 = require("../commands/DescribeAvailablePatchesCommand"); -const SSMClient_1 = require("../SSMClient"); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeAvailablePatchesCommand_1.DescribeAvailablePatchesCommand(input), ...args); -}; -async function* paginateDescribeAvailablePatches(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateDescribeAvailablePatches = paginateDescribeAvailablePatches; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeEffectiveInstanceAssociationsPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeEffectiveInstanceAssociationsPaginator.js deleted file mode 100644 index d656bbaf..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeEffectiveInstanceAssociationsPaginator.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.paginateDescribeEffectiveInstanceAssociations = void 0; -const DescribeEffectiveInstanceAssociationsCommand_1 = require("../commands/DescribeEffectiveInstanceAssociationsCommand"); -const SSMClient_1 = require("../SSMClient"); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeEffectiveInstanceAssociationsCommand_1.DescribeEffectiveInstanceAssociationsCommand(input), ...args); -}; -async function* paginateDescribeEffectiveInstanceAssociations(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateDescribeEffectiveInstanceAssociations = paginateDescribeEffectiveInstanceAssociations; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeEffectivePatchesForPatchBaselinePaginator.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeEffectivePatchesForPatchBaselinePaginator.js deleted file mode 100644 index a98f9ac1..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeEffectivePatchesForPatchBaselinePaginator.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.paginateDescribeEffectivePatchesForPatchBaseline = void 0; -const DescribeEffectivePatchesForPatchBaselineCommand_1 = require("../commands/DescribeEffectivePatchesForPatchBaselineCommand"); -const SSMClient_1 = require("../SSMClient"); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeEffectivePatchesForPatchBaselineCommand_1.DescribeEffectivePatchesForPatchBaselineCommand(input), ...args); -}; -async function* paginateDescribeEffectivePatchesForPatchBaseline(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateDescribeEffectivePatchesForPatchBaseline = paginateDescribeEffectivePatchesForPatchBaseline; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeInstanceAssociationsStatusPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeInstanceAssociationsStatusPaginator.js deleted file mode 100644 index 415152ed..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeInstanceAssociationsStatusPaginator.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.paginateDescribeInstanceAssociationsStatus = void 0; -const DescribeInstanceAssociationsStatusCommand_1 = require("../commands/DescribeInstanceAssociationsStatusCommand"); -const SSMClient_1 = require("../SSMClient"); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeInstanceAssociationsStatusCommand_1.DescribeInstanceAssociationsStatusCommand(input), ...args); -}; -async function* paginateDescribeInstanceAssociationsStatus(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateDescribeInstanceAssociationsStatus = paginateDescribeInstanceAssociationsStatus; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeInstanceInformationPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeInstanceInformationPaginator.js deleted file mode 100644 index 3f613f89..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeInstanceInformationPaginator.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.paginateDescribeInstanceInformation = void 0; -const DescribeInstanceInformationCommand_1 = require("../commands/DescribeInstanceInformationCommand"); -const SSMClient_1 = require("../SSMClient"); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeInstanceInformationCommand_1.DescribeInstanceInformationCommand(input), ...args); -}; -async function* paginateDescribeInstanceInformation(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateDescribeInstanceInformation = paginateDescribeInstanceInformation; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeInstancePatchStatesForPatchGroupPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeInstancePatchStatesForPatchGroupPaginator.js deleted file mode 100644 index 7af661eb..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeInstancePatchStatesForPatchGroupPaginator.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.paginateDescribeInstancePatchStatesForPatchGroup = void 0; -const DescribeInstancePatchStatesForPatchGroupCommand_1 = require("../commands/DescribeInstancePatchStatesForPatchGroupCommand"); -const SSMClient_1 = require("../SSMClient"); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeInstancePatchStatesForPatchGroupCommand_1.DescribeInstancePatchStatesForPatchGroupCommand(input), ...args); -}; -async function* paginateDescribeInstancePatchStatesForPatchGroup(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateDescribeInstancePatchStatesForPatchGroup = paginateDescribeInstancePatchStatesForPatchGroup; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeInstancePatchStatesPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeInstancePatchStatesPaginator.js deleted file mode 100644 index 881a49d3..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeInstancePatchStatesPaginator.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.paginateDescribeInstancePatchStates = void 0; -const DescribeInstancePatchStatesCommand_1 = require("../commands/DescribeInstancePatchStatesCommand"); -const SSMClient_1 = require("../SSMClient"); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeInstancePatchStatesCommand_1.DescribeInstancePatchStatesCommand(input), ...args); -}; -async function* paginateDescribeInstancePatchStates(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateDescribeInstancePatchStates = paginateDescribeInstancePatchStates; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeInstancePatchesPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeInstancePatchesPaginator.js deleted file mode 100644 index 7abce4ea..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeInstancePatchesPaginator.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.paginateDescribeInstancePatches = void 0; -const DescribeInstancePatchesCommand_1 = require("../commands/DescribeInstancePatchesCommand"); -const SSMClient_1 = require("../SSMClient"); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeInstancePatchesCommand_1.DescribeInstancePatchesCommand(input), ...args); -}; -async function* paginateDescribeInstancePatches(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateDescribeInstancePatches = paginateDescribeInstancePatches; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeInventoryDeletionsPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeInventoryDeletionsPaginator.js deleted file mode 100644 index 8aa8aee7..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeInventoryDeletionsPaginator.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.paginateDescribeInventoryDeletions = void 0; -const DescribeInventoryDeletionsCommand_1 = require("../commands/DescribeInventoryDeletionsCommand"); -const SSMClient_1 = require("../SSMClient"); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeInventoryDeletionsCommand_1.DescribeInventoryDeletionsCommand(input), ...args); -}; -async function* paginateDescribeInventoryDeletions(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateDescribeInventoryDeletions = paginateDescribeInventoryDeletions; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeMaintenanceWindowExecutionTaskInvocationsPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeMaintenanceWindowExecutionTaskInvocationsPaginator.js deleted file mode 100644 index 300a7e14..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeMaintenanceWindowExecutionTaskInvocationsPaginator.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.paginateDescribeMaintenanceWindowExecutionTaskInvocations = void 0; -const DescribeMaintenanceWindowExecutionTaskInvocationsCommand_1 = require("../commands/DescribeMaintenanceWindowExecutionTaskInvocationsCommand"); -const SSMClient_1 = require("../SSMClient"); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeMaintenanceWindowExecutionTaskInvocationsCommand_1.DescribeMaintenanceWindowExecutionTaskInvocationsCommand(input), ...args); -}; -async function* paginateDescribeMaintenanceWindowExecutionTaskInvocations(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateDescribeMaintenanceWindowExecutionTaskInvocations = paginateDescribeMaintenanceWindowExecutionTaskInvocations; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeMaintenanceWindowExecutionTasksPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeMaintenanceWindowExecutionTasksPaginator.js deleted file mode 100644 index 17e13603..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeMaintenanceWindowExecutionTasksPaginator.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.paginateDescribeMaintenanceWindowExecutionTasks = void 0; -const DescribeMaintenanceWindowExecutionTasksCommand_1 = require("../commands/DescribeMaintenanceWindowExecutionTasksCommand"); -const SSMClient_1 = require("../SSMClient"); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeMaintenanceWindowExecutionTasksCommand_1.DescribeMaintenanceWindowExecutionTasksCommand(input), ...args); -}; -async function* paginateDescribeMaintenanceWindowExecutionTasks(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateDescribeMaintenanceWindowExecutionTasks = paginateDescribeMaintenanceWindowExecutionTasks; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeMaintenanceWindowExecutionsPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeMaintenanceWindowExecutionsPaginator.js deleted file mode 100644 index f6b33662..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeMaintenanceWindowExecutionsPaginator.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.paginateDescribeMaintenanceWindowExecutions = void 0; -const DescribeMaintenanceWindowExecutionsCommand_1 = require("../commands/DescribeMaintenanceWindowExecutionsCommand"); -const SSMClient_1 = require("../SSMClient"); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeMaintenanceWindowExecutionsCommand_1.DescribeMaintenanceWindowExecutionsCommand(input), ...args); -}; -async function* paginateDescribeMaintenanceWindowExecutions(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateDescribeMaintenanceWindowExecutions = paginateDescribeMaintenanceWindowExecutions; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeMaintenanceWindowSchedulePaginator.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeMaintenanceWindowSchedulePaginator.js deleted file mode 100644 index 6029440a..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeMaintenanceWindowSchedulePaginator.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.paginateDescribeMaintenanceWindowSchedule = void 0; -const DescribeMaintenanceWindowScheduleCommand_1 = require("../commands/DescribeMaintenanceWindowScheduleCommand"); -const SSMClient_1 = require("../SSMClient"); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeMaintenanceWindowScheduleCommand_1.DescribeMaintenanceWindowScheduleCommand(input), ...args); -}; -async function* paginateDescribeMaintenanceWindowSchedule(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateDescribeMaintenanceWindowSchedule = paginateDescribeMaintenanceWindowSchedule; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeMaintenanceWindowTargetsPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeMaintenanceWindowTargetsPaginator.js deleted file mode 100644 index f290bdaa..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeMaintenanceWindowTargetsPaginator.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.paginateDescribeMaintenanceWindowTargets = void 0; -const DescribeMaintenanceWindowTargetsCommand_1 = require("../commands/DescribeMaintenanceWindowTargetsCommand"); -const SSMClient_1 = require("../SSMClient"); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeMaintenanceWindowTargetsCommand_1.DescribeMaintenanceWindowTargetsCommand(input), ...args); -}; -async function* paginateDescribeMaintenanceWindowTargets(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateDescribeMaintenanceWindowTargets = paginateDescribeMaintenanceWindowTargets; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeMaintenanceWindowTasksPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeMaintenanceWindowTasksPaginator.js deleted file mode 100644 index 706e0290..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeMaintenanceWindowTasksPaginator.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.paginateDescribeMaintenanceWindowTasks = void 0; -const DescribeMaintenanceWindowTasksCommand_1 = require("../commands/DescribeMaintenanceWindowTasksCommand"); -const SSMClient_1 = require("../SSMClient"); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeMaintenanceWindowTasksCommand_1.DescribeMaintenanceWindowTasksCommand(input), ...args); -}; -async function* paginateDescribeMaintenanceWindowTasks(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateDescribeMaintenanceWindowTasks = paginateDescribeMaintenanceWindowTasks; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeMaintenanceWindowsForTargetPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeMaintenanceWindowsForTargetPaginator.js deleted file mode 100644 index e7d6fd7f..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeMaintenanceWindowsForTargetPaginator.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.paginateDescribeMaintenanceWindowsForTarget = void 0; -const DescribeMaintenanceWindowsForTargetCommand_1 = require("../commands/DescribeMaintenanceWindowsForTargetCommand"); -const SSMClient_1 = require("../SSMClient"); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeMaintenanceWindowsForTargetCommand_1.DescribeMaintenanceWindowsForTargetCommand(input), ...args); -}; -async function* paginateDescribeMaintenanceWindowsForTarget(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateDescribeMaintenanceWindowsForTarget = paginateDescribeMaintenanceWindowsForTarget; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeMaintenanceWindowsPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeMaintenanceWindowsPaginator.js deleted file mode 100644 index 1a6988ea..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeMaintenanceWindowsPaginator.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.paginateDescribeMaintenanceWindows = void 0; -const DescribeMaintenanceWindowsCommand_1 = require("../commands/DescribeMaintenanceWindowsCommand"); -const SSMClient_1 = require("../SSMClient"); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeMaintenanceWindowsCommand_1.DescribeMaintenanceWindowsCommand(input), ...args); -}; -async function* paginateDescribeMaintenanceWindows(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateDescribeMaintenanceWindows = paginateDescribeMaintenanceWindows; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeOpsItemsPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeOpsItemsPaginator.js deleted file mode 100644 index d86eab28..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeOpsItemsPaginator.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.paginateDescribeOpsItems = void 0; -const DescribeOpsItemsCommand_1 = require("../commands/DescribeOpsItemsCommand"); -const SSMClient_1 = require("../SSMClient"); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeOpsItemsCommand_1.DescribeOpsItemsCommand(input), ...args); -}; -async function* paginateDescribeOpsItems(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateDescribeOpsItems = paginateDescribeOpsItems; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeParametersPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeParametersPaginator.js deleted file mode 100644 index 8065d5d8..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeParametersPaginator.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.paginateDescribeParameters = void 0; -const DescribeParametersCommand_1 = require("../commands/DescribeParametersCommand"); -const SSMClient_1 = require("../SSMClient"); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeParametersCommand_1.DescribeParametersCommand(input), ...args); -}; -async function* paginateDescribeParameters(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateDescribeParameters = paginateDescribeParameters; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribePatchBaselinesPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribePatchBaselinesPaginator.js deleted file mode 100644 index 1a6ecb08..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribePatchBaselinesPaginator.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.paginateDescribePatchBaselines = void 0; -const DescribePatchBaselinesCommand_1 = require("../commands/DescribePatchBaselinesCommand"); -const SSMClient_1 = require("../SSMClient"); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribePatchBaselinesCommand_1.DescribePatchBaselinesCommand(input), ...args); -}; -async function* paginateDescribePatchBaselines(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateDescribePatchBaselines = paginateDescribePatchBaselines; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribePatchGroupsPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribePatchGroupsPaginator.js deleted file mode 100644 index 05cf3eff..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribePatchGroupsPaginator.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.paginateDescribePatchGroups = void 0; -const DescribePatchGroupsCommand_1 = require("../commands/DescribePatchGroupsCommand"); -const SSMClient_1 = require("../SSMClient"); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribePatchGroupsCommand_1.DescribePatchGroupsCommand(input), ...args); -}; -async function* paginateDescribePatchGroups(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateDescribePatchGroups = paginateDescribePatchGroups; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribePatchPropertiesPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribePatchPropertiesPaginator.js deleted file mode 100644 index 9e59bf68..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribePatchPropertiesPaginator.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.paginateDescribePatchProperties = void 0; -const DescribePatchPropertiesCommand_1 = require("../commands/DescribePatchPropertiesCommand"); -const SSMClient_1 = require("../SSMClient"); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribePatchPropertiesCommand_1.DescribePatchPropertiesCommand(input), ...args); -}; -async function* paginateDescribePatchProperties(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateDescribePatchProperties = paginateDescribePatchProperties; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeSessionsPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeSessionsPaginator.js deleted file mode 100644 index a434c581..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/DescribeSessionsPaginator.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.paginateDescribeSessions = void 0; -const DescribeSessionsCommand_1 = require("../commands/DescribeSessionsCommand"); -const SSMClient_1 = require("../SSMClient"); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeSessionsCommand_1.DescribeSessionsCommand(input), ...args); -}; -async function* paginateDescribeSessions(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateDescribeSessions = paginateDescribeSessions; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/GetInventoryPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/GetInventoryPaginator.js deleted file mode 100644 index 78c92e26..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/GetInventoryPaginator.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.paginateGetInventory = void 0; -const GetInventoryCommand_1 = require("../commands/GetInventoryCommand"); -const SSMClient_1 = require("../SSMClient"); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new GetInventoryCommand_1.GetInventoryCommand(input), ...args); -}; -async function* paginateGetInventory(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateGetInventory = paginateGetInventory; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/GetInventorySchemaPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/GetInventorySchemaPaginator.js deleted file mode 100644 index a94cff58..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/GetInventorySchemaPaginator.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.paginateGetInventorySchema = void 0; -const GetInventorySchemaCommand_1 = require("../commands/GetInventorySchemaCommand"); -const SSMClient_1 = require("../SSMClient"); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new GetInventorySchemaCommand_1.GetInventorySchemaCommand(input), ...args); -}; -async function* paginateGetInventorySchema(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateGetInventorySchema = paginateGetInventorySchema; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/GetOpsSummaryPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/GetOpsSummaryPaginator.js deleted file mode 100644 index 6b979a20..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/GetOpsSummaryPaginator.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.paginateGetOpsSummary = void 0; -const GetOpsSummaryCommand_1 = require("../commands/GetOpsSummaryCommand"); -const SSMClient_1 = require("../SSMClient"); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new GetOpsSummaryCommand_1.GetOpsSummaryCommand(input), ...args); -}; -async function* paginateGetOpsSummary(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateGetOpsSummary = paginateGetOpsSummary; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/GetParameterHistoryPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/GetParameterHistoryPaginator.js deleted file mode 100644 index df77b061..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/GetParameterHistoryPaginator.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.paginateGetParameterHistory = void 0; -const GetParameterHistoryCommand_1 = require("../commands/GetParameterHistoryCommand"); -const SSMClient_1 = require("../SSMClient"); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new GetParameterHistoryCommand_1.GetParameterHistoryCommand(input), ...args); -}; -async function* paginateGetParameterHistory(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateGetParameterHistory = paginateGetParameterHistory; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/GetParametersByPathPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/GetParametersByPathPaginator.js deleted file mode 100644 index ff852214..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/GetParametersByPathPaginator.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.paginateGetParametersByPath = void 0; -const GetParametersByPathCommand_1 = require("../commands/GetParametersByPathCommand"); -const SSMClient_1 = require("../SSMClient"); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new GetParametersByPathCommand_1.GetParametersByPathCommand(input), ...args); -}; -async function* paginateGetParametersByPath(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateGetParametersByPath = paginateGetParametersByPath; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/GetResourcePoliciesPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/GetResourcePoliciesPaginator.js deleted file mode 100644 index 54395938..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/GetResourcePoliciesPaginator.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.paginateGetResourcePolicies = void 0; -const GetResourcePoliciesCommand_1 = require("../commands/GetResourcePoliciesCommand"); -const SSMClient_1 = require("../SSMClient"); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new GetResourcePoliciesCommand_1.GetResourcePoliciesCommand(input), ...args); -}; -async function* paginateGetResourcePolicies(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateGetResourcePolicies = paginateGetResourcePolicies; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/Interfaces.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/Interfaces.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/Interfaces.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/ListAssociationVersionsPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/ListAssociationVersionsPaginator.js deleted file mode 100644 index 2e5c5a4b..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/ListAssociationVersionsPaginator.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.paginateListAssociationVersions = void 0; -const ListAssociationVersionsCommand_1 = require("../commands/ListAssociationVersionsCommand"); -const SSMClient_1 = require("../SSMClient"); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListAssociationVersionsCommand_1.ListAssociationVersionsCommand(input), ...args); -}; -async function* paginateListAssociationVersions(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateListAssociationVersions = paginateListAssociationVersions; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/ListAssociationsPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/ListAssociationsPaginator.js deleted file mode 100644 index 0e1f33c9..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/ListAssociationsPaginator.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.paginateListAssociations = void 0; -const ListAssociationsCommand_1 = require("../commands/ListAssociationsCommand"); -const SSMClient_1 = require("../SSMClient"); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListAssociationsCommand_1.ListAssociationsCommand(input), ...args); -}; -async function* paginateListAssociations(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateListAssociations = paginateListAssociations; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/ListCommandInvocationsPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/ListCommandInvocationsPaginator.js deleted file mode 100644 index 3ef40c1c..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/ListCommandInvocationsPaginator.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.paginateListCommandInvocations = void 0; -const ListCommandInvocationsCommand_1 = require("../commands/ListCommandInvocationsCommand"); -const SSMClient_1 = require("../SSMClient"); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListCommandInvocationsCommand_1.ListCommandInvocationsCommand(input), ...args); -}; -async function* paginateListCommandInvocations(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateListCommandInvocations = paginateListCommandInvocations; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/ListCommandsPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/ListCommandsPaginator.js deleted file mode 100644 index 5d9eab80..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/ListCommandsPaginator.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.paginateListCommands = void 0; -const ListCommandsCommand_1 = require("../commands/ListCommandsCommand"); -const SSMClient_1 = require("../SSMClient"); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListCommandsCommand_1.ListCommandsCommand(input), ...args); -}; -async function* paginateListCommands(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateListCommands = paginateListCommands; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/ListComplianceItemsPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/ListComplianceItemsPaginator.js deleted file mode 100644 index 688d40e9..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/ListComplianceItemsPaginator.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.paginateListComplianceItems = void 0; -const ListComplianceItemsCommand_1 = require("../commands/ListComplianceItemsCommand"); -const SSMClient_1 = require("../SSMClient"); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListComplianceItemsCommand_1.ListComplianceItemsCommand(input), ...args); -}; -async function* paginateListComplianceItems(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateListComplianceItems = paginateListComplianceItems; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/ListComplianceSummariesPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/ListComplianceSummariesPaginator.js deleted file mode 100644 index 25c2c2db..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/ListComplianceSummariesPaginator.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.paginateListComplianceSummaries = void 0; -const ListComplianceSummariesCommand_1 = require("../commands/ListComplianceSummariesCommand"); -const SSMClient_1 = require("../SSMClient"); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListComplianceSummariesCommand_1.ListComplianceSummariesCommand(input), ...args); -}; -async function* paginateListComplianceSummaries(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateListComplianceSummaries = paginateListComplianceSummaries; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/ListDocumentVersionsPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/ListDocumentVersionsPaginator.js deleted file mode 100644 index 111c52ab..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/ListDocumentVersionsPaginator.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.paginateListDocumentVersions = void 0; -const ListDocumentVersionsCommand_1 = require("../commands/ListDocumentVersionsCommand"); -const SSMClient_1 = require("../SSMClient"); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListDocumentVersionsCommand_1.ListDocumentVersionsCommand(input), ...args); -}; -async function* paginateListDocumentVersions(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateListDocumentVersions = paginateListDocumentVersions; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/ListDocumentsPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/ListDocumentsPaginator.js deleted file mode 100644 index 44fe13ed..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/ListDocumentsPaginator.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.paginateListDocuments = void 0; -const ListDocumentsCommand_1 = require("../commands/ListDocumentsCommand"); -const SSMClient_1 = require("../SSMClient"); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListDocumentsCommand_1.ListDocumentsCommand(input), ...args); -}; -async function* paginateListDocuments(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateListDocuments = paginateListDocuments; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/ListOpsItemEventsPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/ListOpsItemEventsPaginator.js deleted file mode 100644 index 29aa830e..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/ListOpsItemEventsPaginator.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.paginateListOpsItemEvents = void 0; -const ListOpsItemEventsCommand_1 = require("../commands/ListOpsItemEventsCommand"); -const SSMClient_1 = require("../SSMClient"); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListOpsItemEventsCommand_1.ListOpsItemEventsCommand(input), ...args); -}; -async function* paginateListOpsItemEvents(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateListOpsItemEvents = paginateListOpsItemEvents; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/ListOpsItemRelatedItemsPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/ListOpsItemRelatedItemsPaginator.js deleted file mode 100644 index 6269ac24..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/ListOpsItemRelatedItemsPaginator.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.paginateListOpsItemRelatedItems = void 0; -const ListOpsItemRelatedItemsCommand_1 = require("../commands/ListOpsItemRelatedItemsCommand"); -const SSMClient_1 = require("../SSMClient"); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListOpsItemRelatedItemsCommand_1.ListOpsItemRelatedItemsCommand(input), ...args); -}; -async function* paginateListOpsItemRelatedItems(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateListOpsItemRelatedItems = paginateListOpsItemRelatedItems; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/ListOpsMetadataPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/ListOpsMetadataPaginator.js deleted file mode 100644 index cd212209..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/ListOpsMetadataPaginator.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.paginateListOpsMetadata = void 0; -const ListOpsMetadataCommand_1 = require("../commands/ListOpsMetadataCommand"); -const SSMClient_1 = require("../SSMClient"); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListOpsMetadataCommand_1.ListOpsMetadataCommand(input), ...args); -}; -async function* paginateListOpsMetadata(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateListOpsMetadata = paginateListOpsMetadata; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/ListResourceComplianceSummariesPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/ListResourceComplianceSummariesPaginator.js deleted file mode 100644 index 2977902d..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/ListResourceComplianceSummariesPaginator.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.paginateListResourceComplianceSummaries = void 0; -const ListResourceComplianceSummariesCommand_1 = require("../commands/ListResourceComplianceSummariesCommand"); -const SSMClient_1 = require("../SSMClient"); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListResourceComplianceSummariesCommand_1.ListResourceComplianceSummariesCommand(input), ...args); -}; -async function* paginateListResourceComplianceSummaries(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateListResourceComplianceSummaries = paginateListResourceComplianceSummaries; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/ListResourceDataSyncPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/ListResourceDataSyncPaginator.js deleted file mode 100644 index 619274bc..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/ListResourceDataSyncPaginator.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.paginateListResourceDataSync = void 0; -const ListResourceDataSyncCommand_1 = require("../commands/ListResourceDataSyncCommand"); -const SSMClient_1 = require("../SSMClient"); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListResourceDataSyncCommand_1.ListResourceDataSyncCommand(input), ...args); -}; -async function* paginateListResourceDataSync(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient_1.SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateListResourceDataSync = paginateListResourceDataSync; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/index.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/index.js deleted file mode 100644 index 4624e8fb..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/pagination/index.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./DescribeActivationsPaginator"), exports); -tslib_1.__exportStar(require("./DescribeAssociationExecutionTargetsPaginator"), exports); -tslib_1.__exportStar(require("./DescribeAssociationExecutionsPaginator"), exports); -tslib_1.__exportStar(require("./DescribeAutomationExecutionsPaginator"), exports); -tslib_1.__exportStar(require("./DescribeAutomationStepExecutionsPaginator"), exports); -tslib_1.__exportStar(require("./DescribeAvailablePatchesPaginator"), exports); -tslib_1.__exportStar(require("./DescribeEffectiveInstanceAssociationsPaginator"), exports); -tslib_1.__exportStar(require("./DescribeEffectivePatchesForPatchBaselinePaginator"), exports); -tslib_1.__exportStar(require("./DescribeInstanceAssociationsStatusPaginator"), exports); -tslib_1.__exportStar(require("./DescribeInstanceInformationPaginator"), exports); -tslib_1.__exportStar(require("./Interfaces"), exports); -tslib_1.__exportStar(require("./DescribeInstancePatchStatesForPatchGroupPaginator"), exports); -tslib_1.__exportStar(require("./DescribeInstancePatchStatesPaginator"), exports); -tslib_1.__exportStar(require("./DescribeInstancePatchesPaginator"), exports); -tslib_1.__exportStar(require("./DescribeInventoryDeletionsPaginator"), exports); -tslib_1.__exportStar(require("./DescribeMaintenanceWindowExecutionTaskInvocationsPaginator"), exports); -tslib_1.__exportStar(require("./DescribeMaintenanceWindowExecutionTasksPaginator"), exports); -tslib_1.__exportStar(require("./DescribeMaintenanceWindowExecutionsPaginator"), exports); -tslib_1.__exportStar(require("./DescribeMaintenanceWindowSchedulePaginator"), exports); -tslib_1.__exportStar(require("./DescribeMaintenanceWindowTargetsPaginator"), exports); -tslib_1.__exportStar(require("./DescribeMaintenanceWindowTasksPaginator"), exports); -tslib_1.__exportStar(require("./DescribeMaintenanceWindowsForTargetPaginator"), exports); -tslib_1.__exportStar(require("./DescribeMaintenanceWindowsPaginator"), exports); -tslib_1.__exportStar(require("./DescribeOpsItemsPaginator"), exports); -tslib_1.__exportStar(require("./DescribeParametersPaginator"), exports); -tslib_1.__exportStar(require("./DescribePatchBaselinesPaginator"), exports); -tslib_1.__exportStar(require("./DescribePatchGroupsPaginator"), exports); -tslib_1.__exportStar(require("./DescribePatchPropertiesPaginator"), exports); -tslib_1.__exportStar(require("./DescribeSessionsPaginator"), exports); -tslib_1.__exportStar(require("./GetInventoryPaginator"), exports); -tslib_1.__exportStar(require("./GetInventorySchemaPaginator"), exports); -tslib_1.__exportStar(require("./GetOpsSummaryPaginator"), exports); -tslib_1.__exportStar(require("./GetParameterHistoryPaginator"), exports); -tslib_1.__exportStar(require("./GetParametersByPathPaginator"), exports); -tslib_1.__exportStar(require("./GetResourcePoliciesPaginator"), exports); -tslib_1.__exportStar(require("./ListAssociationVersionsPaginator"), exports); -tslib_1.__exportStar(require("./ListAssociationsPaginator"), exports); -tslib_1.__exportStar(require("./ListCommandInvocationsPaginator"), exports); -tslib_1.__exportStar(require("./ListCommandsPaginator"), exports); -tslib_1.__exportStar(require("./ListComplianceItemsPaginator"), exports); -tslib_1.__exportStar(require("./ListComplianceSummariesPaginator"), exports); -tslib_1.__exportStar(require("./ListDocumentVersionsPaginator"), exports); -tslib_1.__exportStar(require("./ListDocumentsPaginator"), exports); -tslib_1.__exportStar(require("./ListOpsItemEventsPaginator"), exports); -tslib_1.__exportStar(require("./ListOpsItemRelatedItemsPaginator"), exports); -tslib_1.__exportStar(require("./ListOpsMetadataPaginator"), exports); -tslib_1.__exportStar(require("./ListResourceComplianceSummariesPaginator"), exports); -tslib_1.__exportStar(require("./ListResourceDataSyncPaginator"), exports); diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/protocols/Aws_json1_1.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/protocols/Aws_json1_1.js deleted file mode 100644 index 82503877..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/protocols/Aws_json1_1.js +++ /dev/null @@ -1,9692 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.se_DescribeMaintenanceWindowsCommand = exports.se_DescribeMaintenanceWindowExecutionTasksCommand = exports.se_DescribeMaintenanceWindowExecutionTaskInvocationsCommand = exports.se_DescribeMaintenanceWindowExecutionsCommand = exports.se_DescribeInventoryDeletionsCommand = exports.se_DescribeInstancePatchStatesForPatchGroupCommand = exports.se_DescribeInstancePatchStatesCommand = exports.se_DescribeInstancePatchesCommand = exports.se_DescribeInstanceInformationCommand = exports.se_DescribeInstanceAssociationsStatusCommand = exports.se_DescribeEffectivePatchesForPatchBaselineCommand = exports.se_DescribeEffectiveInstanceAssociationsCommand = exports.se_DescribeDocumentPermissionCommand = exports.se_DescribeDocumentCommand = exports.se_DescribeAvailablePatchesCommand = exports.se_DescribeAutomationStepExecutionsCommand = exports.se_DescribeAutomationExecutionsCommand = exports.se_DescribeAssociationExecutionTargetsCommand = exports.se_DescribeAssociationExecutionsCommand = exports.se_DescribeAssociationCommand = exports.se_DescribeActivationsCommand = exports.se_DeregisterTaskFromMaintenanceWindowCommand = exports.se_DeregisterTargetFromMaintenanceWindowCommand = exports.se_DeregisterPatchBaselineForPatchGroupCommand = exports.se_DeregisterManagedInstanceCommand = exports.se_DeleteResourcePolicyCommand = exports.se_DeleteResourceDataSyncCommand = exports.se_DeletePatchBaselineCommand = exports.se_DeleteParametersCommand = exports.se_DeleteParameterCommand = exports.se_DeleteOpsMetadataCommand = exports.se_DeleteOpsItemCommand = exports.se_DeleteMaintenanceWindowCommand = exports.se_DeleteInventoryCommand = exports.se_DeleteDocumentCommand = exports.se_DeleteAssociationCommand = exports.se_DeleteActivationCommand = exports.se_CreateResourceDataSyncCommand = exports.se_CreatePatchBaselineCommand = exports.se_CreateOpsMetadataCommand = exports.se_CreateOpsItemCommand = exports.se_CreateMaintenanceWindowCommand = exports.se_CreateDocumentCommand = exports.se_CreateAssociationBatchCommand = exports.se_CreateAssociationCommand = exports.se_CreateActivationCommand = exports.se_CancelMaintenanceWindowExecutionCommand = exports.se_CancelCommandCommand = exports.se_AssociateOpsItemRelatedItemCommand = exports.se_AddTagsToResourceCommand = void 0; -exports.se_ListOpsItemRelatedItemsCommand = exports.se_ListOpsItemEventsCommand = exports.se_ListInventoryEntriesCommand = exports.se_ListDocumentVersionsCommand = exports.se_ListDocumentsCommand = exports.se_ListDocumentMetadataHistoryCommand = exports.se_ListComplianceSummariesCommand = exports.se_ListComplianceItemsCommand = exports.se_ListCommandsCommand = exports.se_ListCommandInvocationsCommand = exports.se_ListAssociationVersionsCommand = exports.se_ListAssociationsCommand = exports.se_LabelParameterVersionCommand = exports.se_GetServiceSettingCommand = exports.se_GetResourcePoliciesCommand = exports.se_GetPatchBaselineForPatchGroupCommand = exports.se_GetPatchBaselineCommand = exports.se_GetParametersByPathCommand = exports.se_GetParametersCommand = exports.se_GetParameterHistoryCommand = exports.se_GetParameterCommand = exports.se_GetOpsSummaryCommand = exports.se_GetOpsMetadataCommand = exports.se_GetOpsItemCommand = exports.se_GetMaintenanceWindowTaskCommand = exports.se_GetMaintenanceWindowExecutionTaskInvocationCommand = exports.se_GetMaintenanceWindowExecutionTaskCommand = exports.se_GetMaintenanceWindowExecutionCommand = exports.se_GetMaintenanceWindowCommand = exports.se_GetInventorySchemaCommand = exports.se_GetInventoryCommand = exports.se_GetDocumentCommand = exports.se_GetDeployablePatchSnapshotForInstanceCommand = exports.se_GetDefaultPatchBaselineCommand = exports.se_GetConnectionStatusCommand = exports.se_GetCommandInvocationCommand = exports.se_GetCalendarStateCommand = exports.se_GetAutomationExecutionCommand = exports.se_DisassociateOpsItemRelatedItemCommand = exports.se_DescribeSessionsCommand = exports.se_DescribePatchPropertiesCommand = exports.se_DescribePatchGroupStateCommand = exports.se_DescribePatchGroupsCommand = exports.se_DescribePatchBaselinesCommand = exports.se_DescribeParametersCommand = exports.se_DescribeOpsItemsCommand = exports.se_DescribeMaintenanceWindowTasksCommand = exports.se_DescribeMaintenanceWindowTargetsCommand = exports.se_DescribeMaintenanceWindowsForTargetCommand = exports.se_DescribeMaintenanceWindowScheduleCommand = void 0; -exports.de_CreateOpsMetadataCommand = exports.de_CreateOpsItemCommand = exports.de_CreateMaintenanceWindowCommand = exports.de_CreateDocumentCommand = exports.de_CreateAssociationBatchCommand = exports.de_CreateAssociationCommand = exports.de_CreateActivationCommand = exports.de_CancelMaintenanceWindowExecutionCommand = exports.de_CancelCommandCommand = exports.de_AssociateOpsItemRelatedItemCommand = exports.de_AddTagsToResourceCommand = exports.se_UpdateServiceSettingCommand = exports.se_UpdateResourceDataSyncCommand = exports.se_UpdatePatchBaselineCommand = exports.se_UpdateOpsMetadataCommand = exports.se_UpdateOpsItemCommand = exports.se_UpdateManagedInstanceRoleCommand = exports.se_UpdateMaintenanceWindowTaskCommand = exports.se_UpdateMaintenanceWindowTargetCommand = exports.se_UpdateMaintenanceWindowCommand = exports.se_UpdateDocumentMetadataCommand = exports.se_UpdateDocumentDefaultVersionCommand = exports.se_UpdateDocumentCommand = exports.se_UpdateAssociationStatusCommand = exports.se_UpdateAssociationCommand = exports.se_UnlabelParameterVersionCommand = exports.se_TerminateSessionCommand = exports.se_StopAutomationExecutionCommand = exports.se_StartSessionCommand = exports.se_StartChangeRequestExecutionCommand = exports.se_StartAutomationExecutionCommand = exports.se_StartAssociationsOnceCommand = exports.se_SendCommandCommand = exports.se_SendAutomationSignalCommand = exports.se_ResumeSessionCommand = exports.se_ResetServiceSettingCommand = exports.se_RemoveTagsFromResourceCommand = exports.se_RegisterTaskWithMaintenanceWindowCommand = exports.se_RegisterTargetWithMaintenanceWindowCommand = exports.se_RegisterPatchBaselineForPatchGroupCommand = exports.se_RegisterDefaultPatchBaselineCommand = exports.se_PutResourcePolicyCommand = exports.se_PutParameterCommand = exports.se_PutInventoryCommand = exports.se_PutComplianceItemsCommand = exports.se_ModifyDocumentPermissionCommand = exports.se_ListTagsForResourceCommand = exports.se_ListResourceDataSyncCommand = exports.se_ListResourceComplianceSummariesCommand = exports.se_ListOpsMetadataCommand = void 0; -exports.de_DescribeSessionsCommand = exports.de_DescribePatchPropertiesCommand = exports.de_DescribePatchGroupStateCommand = exports.de_DescribePatchGroupsCommand = exports.de_DescribePatchBaselinesCommand = exports.de_DescribeParametersCommand = exports.de_DescribeOpsItemsCommand = exports.de_DescribeMaintenanceWindowTasksCommand = exports.de_DescribeMaintenanceWindowTargetsCommand = exports.de_DescribeMaintenanceWindowsForTargetCommand = exports.de_DescribeMaintenanceWindowScheduleCommand = exports.de_DescribeMaintenanceWindowsCommand = exports.de_DescribeMaintenanceWindowExecutionTasksCommand = exports.de_DescribeMaintenanceWindowExecutionTaskInvocationsCommand = exports.de_DescribeMaintenanceWindowExecutionsCommand = exports.de_DescribeInventoryDeletionsCommand = exports.de_DescribeInstancePatchStatesForPatchGroupCommand = exports.de_DescribeInstancePatchStatesCommand = exports.de_DescribeInstancePatchesCommand = exports.de_DescribeInstanceInformationCommand = exports.de_DescribeInstanceAssociationsStatusCommand = exports.de_DescribeEffectivePatchesForPatchBaselineCommand = exports.de_DescribeEffectiveInstanceAssociationsCommand = exports.de_DescribeDocumentPermissionCommand = exports.de_DescribeDocumentCommand = exports.de_DescribeAvailablePatchesCommand = exports.de_DescribeAutomationStepExecutionsCommand = exports.de_DescribeAutomationExecutionsCommand = exports.de_DescribeAssociationExecutionTargetsCommand = exports.de_DescribeAssociationExecutionsCommand = exports.de_DescribeAssociationCommand = exports.de_DescribeActivationsCommand = exports.de_DeregisterTaskFromMaintenanceWindowCommand = exports.de_DeregisterTargetFromMaintenanceWindowCommand = exports.de_DeregisterPatchBaselineForPatchGroupCommand = exports.de_DeregisterManagedInstanceCommand = exports.de_DeleteResourcePolicyCommand = exports.de_DeleteResourceDataSyncCommand = exports.de_DeletePatchBaselineCommand = exports.de_DeleteParametersCommand = exports.de_DeleteParameterCommand = exports.de_DeleteOpsMetadataCommand = exports.de_DeleteOpsItemCommand = exports.de_DeleteMaintenanceWindowCommand = exports.de_DeleteInventoryCommand = exports.de_DeleteDocumentCommand = exports.de_DeleteAssociationCommand = exports.de_DeleteActivationCommand = exports.de_CreateResourceDataSyncCommand = exports.de_CreatePatchBaselineCommand = void 0; -exports.de_RegisterPatchBaselineForPatchGroupCommand = exports.de_RegisterDefaultPatchBaselineCommand = exports.de_PutResourcePolicyCommand = exports.de_PutParameterCommand = exports.de_PutInventoryCommand = exports.de_PutComplianceItemsCommand = exports.de_ModifyDocumentPermissionCommand = exports.de_ListTagsForResourceCommand = exports.de_ListResourceDataSyncCommand = exports.de_ListResourceComplianceSummariesCommand = exports.de_ListOpsMetadataCommand = exports.de_ListOpsItemRelatedItemsCommand = exports.de_ListOpsItemEventsCommand = exports.de_ListInventoryEntriesCommand = exports.de_ListDocumentVersionsCommand = exports.de_ListDocumentsCommand = exports.de_ListDocumentMetadataHistoryCommand = exports.de_ListComplianceSummariesCommand = exports.de_ListComplianceItemsCommand = exports.de_ListCommandsCommand = exports.de_ListCommandInvocationsCommand = exports.de_ListAssociationVersionsCommand = exports.de_ListAssociationsCommand = exports.de_LabelParameterVersionCommand = exports.de_GetServiceSettingCommand = exports.de_GetResourcePoliciesCommand = exports.de_GetPatchBaselineForPatchGroupCommand = exports.de_GetPatchBaselineCommand = exports.de_GetParametersByPathCommand = exports.de_GetParametersCommand = exports.de_GetParameterHistoryCommand = exports.de_GetParameterCommand = exports.de_GetOpsSummaryCommand = exports.de_GetOpsMetadataCommand = exports.de_GetOpsItemCommand = exports.de_GetMaintenanceWindowTaskCommand = exports.de_GetMaintenanceWindowExecutionTaskInvocationCommand = exports.de_GetMaintenanceWindowExecutionTaskCommand = exports.de_GetMaintenanceWindowExecutionCommand = exports.de_GetMaintenanceWindowCommand = exports.de_GetInventorySchemaCommand = exports.de_GetInventoryCommand = exports.de_GetDocumentCommand = exports.de_GetDeployablePatchSnapshotForInstanceCommand = exports.de_GetDefaultPatchBaselineCommand = exports.de_GetConnectionStatusCommand = exports.de_GetCommandInvocationCommand = exports.de_GetCalendarStateCommand = exports.de_GetAutomationExecutionCommand = exports.de_DisassociateOpsItemRelatedItemCommand = void 0; -exports.de_UpdateServiceSettingCommand = exports.de_UpdateResourceDataSyncCommand = exports.de_UpdatePatchBaselineCommand = exports.de_UpdateOpsMetadataCommand = exports.de_UpdateOpsItemCommand = exports.de_UpdateManagedInstanceRoleCommand = exports.de_UpdateMaintenanceWindowTaskCommand = exports.de_UpdateMaintenanceWindowTargetCommand = exports.de_UpdateMaintenanceWindowCommand = exports.de_UpdateDocumentMetadataCommand = exports.de_UpdateDocumentDefaultVersionCommand = exports.de_UpdateDocumentCommand = exports.de_UpdateAssociationStatusCommand = exports.de_UpdateAssociationCommand = exports.de_UnlabelParameterVersionCommand = exports.de_TerminateSessionCommand = exports.de_StopAutomationExecutionCommand = exports.de_StartSessionCommand = exports.de_StartChangeRequestExecutionCommand = exports.de_StartAutomationExecutionCommand = exports.de_StartAssociationsOnceCommand = exports.de_SendCommandCommand = exports.de_SendAutomationSignalCommand = exports.de_ResumeSessionCommand = exports.de_ResetServiceSettingCommand = exports.de_RemoveTagsFromResourceCommand = exports.de_RegisterTaskWithMaintenanceWindowCommand = exports.de_RegisterTargetWithMaintenanceWindowCommand = void 0; -const protocol_http_1 = require("@smithy/protocol-http"); -const smithy_client_1 = require("@smithy/smithy-client"); -const uuid_1 = require("uuid"); -const models_0_1 = require("../models/models_0"); -const models_1_1 = require("../models/models_1"); -const models_2_1 = require("../models/models_2"); -const SSMServiceException_1 = require("../models/SSMServiceException"); -const se_AddTagsToResourceCommand = async (input, context) => { - const headers = sharedHeaders("AddTagsToResource"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_AddTagsToResourceCommand = se_AddTagsToResourceCommand; -const se_AssociateOpsItemRelatedItemCommand = async (input, context) => { - const headers = sharedHeaders("AssociateOpsItemRelatedItem"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_AssociateOpsItemRelatedItemCommand = se_AssociateOpsItemRelatedItemCommand; -const se_CancelCommandCommand = async (input, context) => { - const headers = sharedHeaders("CancelCommand"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_CancelCommandCommand = se_CancelCommandCommand; -const se_CancelMaintenanceWindowExecutionCommand = async (input, context) => { - const headers = sharedHeaders("CancelMaintenanceWindowExecution"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_CancelMaintenanceWindowExecutionCommand = se_CancelMaintenanceWindowExecutionCommand; -const se_CreateActivationCommand = async (input, context) => { - const headers = sharedHeaders("CreateActivation"); - let body; - body = JSON.stringify(se_CreateActivationRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_CreateActivationCommand = se_CreateActivationCommand; -const se_CreateAssociationCommand = async (input, context) => { - const headers = sharedHeaders("CreateAssociation"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_CreateAssociationCommand = se_CreateAssociationCommand; -const se_CreateAssociationBatchCommand = async (input, context) => { - const headers = sharedHeaders("CreateAssociationBatch"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_CreateAssociationBatchCommand = se_CreateAssociationBatchCommand; -const se_CreateDocumentCommand = async (input, context) => { - const headers = sharedHeaders("CreateDocument"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_CreateDocumentCommand = se_CreateDocumentCommand; -const se_CreateMaintenanceWindowCommand = async (input, context) => { - const headers = sharedHeaders("CreateMaintenanceWindow"); - let body; - body = JSON.stringify(se_CreateMaintenanceWindowRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_CreateMaintenanceWindowCommand = se_CreateMaintenanceWindowCommand; -const se_CreateOpsItemCommand = async (input, context) => { - const headers = sharedHeaders("CreateOpsItem"); - let body; - body = JSON.stringify(se_CreateOpsItemRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_CreateOpsItemCommand = se_CreateOpsItemCommand; -const se_CreateOpsMetadataCommand = async (input, context) => { - const headers = sharedHeaders("CreateOpsMetadata"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_CreateOpsMetadataCommand = se_CreateOpsMetadataCommand; -const se_CreatePatchBaselineCommand = async (input, context) => { - const headers = sharedHeaders("CreatePatchBaseline"); - let body; - body = JSON.stringify(se_CreatePatchBaselineRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_CreatePatchBaselineCommand = se_CreatePatchBaselineCommand; -const se_CreateResourceDataSyncCommand = async (input, context) => { - const headers = sharedHeaders("CreateResourceDataSync"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_CreateResourceDataSyncCommand = se_CreateResourceDataSyncCommand; -const se_DeleteActivationCommand = async (input, context) => { - const headers = sharedHeaders("DeleteActivation"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_DeleteActivationCommand = se_DeleteActivationCommand; -const se_DeleteAssociationCommand = async (input, context) => { - const headers = sharedHeaders("DeleteAssociation"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_DeleteAssociationCommand = se_DeleteAssociationCommand; -const se_DeleteDocumentCommand = async (input, context) => { - const headers = sharedHeaders("DeleteDocument"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_DeleteDocumentCommand = se_DeleteDocumentCommand; -const se_DeleteInventoryCommand = async (input, context) => { - const headers = sharedHeaders("DeleteInventory"); - let body; - body = JSON.stringify(se_DeleteInventoryRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_DeleteInventoryCommand = se_DeleteInventoryCommand; -const se_DeleteMaintenanceWindowCommand = async (input, context) => { - const headers = sharedHeaders("DeleteMaintenanceWindow"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_DeleteMaintenanceWindowCommand = se_DeleteMaintenanceWindowCommand; -const se_DeleteOpsItemCommand = async (input, context) => { - const headers = sharedHeaders("DeleteOpsItem"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_DeleteOpsItemCommand = se_DeleteOpsItemCommand; -const se_DeleteOpsMetadataCommand = async (input, context) => { - const headers = sharedHeaders("DeleteOpsMetadata"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_DeleteOpsMetadataCommand = se_DeleteOpsMetadataCommand; -const se_DeleteParameterCommand = async (input, context) => { - const headers = sharedHeaders("DeleteParameter"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_DeleteParameterCommand = se_DeleteParameterCommand; -const se_DeleteParametersCommand = async (input, context) => { - const headers = sharedHeaders("DeleteParameters"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_DeleteParametersCommand = se_DeleteParametersCommand; -const se_DeletePatchBaselineCommand = async (input, context) => { - const headers = sharedHeaders("DeletePatchBaseline"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_DeletePatchBaselineCommand = se_DeletePatchBaselineCommand; -const se_DeleteResourceDataSyncCommand = async (input, context) => { - const headers = sharedHeaders("DeleteResourceDataSync"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_DeleteResourceDataSyncCommand = se_DeleteResourceDataSyncCommand; -const se_DeleteResourcePolicyCommand = async (input, context) => { - const headers = sharedHeaders("DeleteResourcePolicy"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_DeleteResourcePolicyCommand = se_DeleteResourcePolicyCommand; -const se_DeregisterManagedInstanceCommand = async (input, context) => { - const headers = sharedHeaders("DeregisterManagedInstance"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_DeregisterManagedInstanceCommand = se_DeregisterManagedInstanceCommand; -const se_DeregisterPatchBaselineForPatchGroupCommand = async (input, context) => { - const headers = sharedHeaders("DeregisterPatchBaselineForPatchGroup"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_DeregisterPatchBaselineForPatchGroupCommand = se_DeregisterPatchBaselineForPatchGroupCommand; -const se_DeregisterTargetFromMaintenanceWindowCommand = async (input, context) => { - const headers = sharedHeaders("DeregisterTargetFromMaintenanceWindow"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_DeregisterTargetFromMaintenanceWindowCommand = se_DeregisterTargetFromMaintenanceWindowCommand; -const se_DeregisterTaskFromMaintenanceWindowCommand = async (input, context) => { - const headers = sharedHeaders("DeregisterTaskFromMaintenanceWindow"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_DeregisterTaskFromMaintenanceWindowCommand = se_DeregisterTaskFromMaintenanceWindowCommand; -const se_DescribeActivationsCommand = async (input, context) => { - const headers = sharedHeaders("DescribeActivations"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_DescribeActivationsCommand = se_DescribeActivationsCommand; -const se_DescribeAssociationCommand = async (input, context) => { - const headers = sharedHeaders("DescribeAssociation"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_DescribeAssociationCommand = se_DescribeAssociationCommand; -const se_DescribeAssociationExecutionsCommand = async (input, context) => { - const headers = sharedHeaders("DescribeAssociationExecutions"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_DescribeAssociationExecutionsCommand = se_DescribeAssociationExecutionsCommand; -const se_DescribeAssociationExecutionTargetsCommand = async (input, context) => { - const headers = sharedHeaders("DescribeAssociationExecutionTargets"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_DescribeAssociationExecutionTargetsCommand = se_DescribeAssociationExecutionTargetsCommand; -const se_DescribeAutomationExecutionsCommand = async (input, context) => { - const headers = sharedHeaders("DescribeAutomationExecutions"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_DescribeAutomationExecutionsCommand = se_DescribeAutomationExecutionsCommand; -const se_DescribeAutomationStepExecutionsCommand = async (input, context) => { - const headers = sharedHeaders("DescribeAutomationStepExecutions"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_DescribeAutomationStepExecutionsCommand = se_DescribeAutomationStepExecutionsCommand; -const se_DescribeAvailablePatchesCommand = async (input, context) => { - const headers = sharedHeaders("DescribeAvailablePatches"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_DescribeAvailablePatchesCommand = se_DescribeAvailablePatchesCommand; -const se_DescribeDocumentCommand = async (input, context) => { - const headers = sharedHeaders("DescribeDocument"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_DescribeDocumentCommand = se_DescribeDocumentCommand; -const se_DescribeDocumentPermissionCommand = async (input, context) => { - const headers = sharedHeaders("DescribeDocumentPermission"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_DescribeDocumentPermissionCommand = se_DescribeDocumentPermissionCommand; -const se_DescribeEffectiveInstanceAssociationsCommand = async (input, context) => { - const headers = sharedHeaders("DescribeEffectiveInstanceAssociations"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_DescribeEffectiveInstanceAssociationsCommand = se_DescribeEffectiveInstanceAssociationsCommand; -const se_DescribeEffectivePatchesForPatchBaselineCommand = async (input, context) => { - const headers = sharedHeaders("DescribeEffectivePatchesForPatchBaseline"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_DescribeEffectivePatchesForPatchBaselineCommand = se_DescribeEffectivePatchesForPatchBaselineCommand; -const se_DescribeInstanceAssociationsStatusCommand = async (input, context) => { - const headers = sharedHeaders("DescribeInstanceAssociationsStatus"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_DescribeInstanceAssociationsStatusCommand = se_DescribeInstanceAssociationsStatusCommand; -const se_DescribeInstanceInformationCommand = async (input, context) => { - const headers = sharedHeaders("DescribeInstanceInformation"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_DescribeInstanceInformationCommand = se_DescribeInstanceInformationCommand; -const se_DescribeInstancePatchesCommand = async (input, context) => { - const headers = sharedHeaders("DescribeInstancePatches"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_DescribeInstancePatchesCommand = se_DescribeInstancePatchesCommand; -const se_DescribeInstancePatchStatesCommand = async (input, context) => { - const headers = sharedHeaders("DescribeInstancePatchStates"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_DescribeInstancePatchStatesCommand = se_DescribeInstancePatchStatesCommand; -const se_DescribeInstancePatchStatesForPatchGroupCommand = async (input, context) => { - const headers = sharedHeaders("DescribeInstancePatchStatesForPatchGroup"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_DescribeInstancePatchStatesForPatchGroupCommand = se_DescribeInstancePatchStatesForPatchGroupCommand; -const se_DescribeInventoryDeletionsCommand = async (input, context) => { - const headers = sharedHeaders("DescribeInventoryDeletions"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_DescribeInventoryDeletionsCommand = se_DescribeInventoryDeletionsCommand; -const se_DescribeMaintenanceWindowExecutionsCommand = async (input, context) => { - const headers = sharedHeaders("DescribeMaintenanceWindowExecutions"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_DescribeMaintenanceWindowExecutionsCommand = se_DescribeMaintenanceWindowExecutionsCommand; -const se_DescribeMaintenanceWindowExecutionTaskInvocationsCommand = async (input, context) => { - const headers = sharedHeaders("DescribeMaintenanceWindowExecutionTaskInvocations"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_DescribeMaintenanceWindowExecutionTaskInvocationsCommand = se_DescribeMaintenanceWindowExecutionTaskInvocationsCommand; -const se_DescribeMaintenanceWindowExecutionTasksCommand = async (input, context) => { - const headers = sharedHeaders("DescribeMaintenanceWindowExecutionTasks"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_DescribeMaintenanceWindowExecutionTasksCommand = se_DescribeMaintenanceWindowExecutionTasksCommand; -const se_DescribeMaintenanceWindowsCommand = async (input, context) => { - const headers = sharedHeaders("DescribeMaintenanceWindows"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_DescribeMaintenanceWindowsCommand = se_DescribeMaintenanceWindowsCommand; -const se_DescribeMaintenanceWindowScheduleCommand = async (input, context) => { - const headers = sharedHeaders("DescribeMaintenanceWindowSchedule"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_DescribeMaintenanceWindowScheduleCommand = se_DescribeMaintenanceWindowScheduleCommand; -const se_DescribeMaintenanceWindowsForTargetCommand = async (input, context) => { - const headers = sharedHeaders("DescribeMaintenanceWindowsForTarget"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_DescribeMaintenanceWindowsForTargetCommand = se_DescribeMaintenanceWindowsForTargetCommand; -const se_DescribeMaintenanceWindowTargetsCommand = async (input, context) => { - const headers = sharedHeaders("DescribeMaintenanceWindowTargets"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_DescribeMaintenanceWindowTargetsCommand = se_DescribeMaintenanceWindowTargetsCommand; -const se_DescribeMaintenanceWindowTasksCommand = async (input, context) => { - const headers = sharedHeaders("DescribeMaintenanceWindowTasks"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_DescribeMaintenanceWindowTasksCommand = se_DescribeMaintenanceWindowTasksCommand; -const se_DescribeOpsItemsCommand = async (input, context) => { - const headers = sharedHeaders("DescribeOpsItems"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_DescribeOpsItemsCommand = se_DescribeOpsItemsCommand; -const se_DescribeParametersCommand = async (input, context) => { - const headers = sharedHeaders("DescribeParameters"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_DescribeParametersCommand = se_DescribeParametersCommand; -const se_DescribePatchBaselinesCommand = async (input, context) => { - const headers = sharedHeaders("DescribePatchBaselines"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_DescribePatchBaselinesCommand = se_DescribePatchBaselinesCommand; -const se_DescribePatchGroupsCommand = async (input, context) => { - const headers = sharedHeaders("DescribePatchGroups"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_DescribePatchGroupsCommand = se_DescribePatchGroupsCommand; -const se_DescribePatchGroupStateCommand = async (input, context) => { - const headers = sharedHeaders("DescribePatchGroupState"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_DescribePatchGroupStateCommand = se_DescribePatchGroupStateCommand; -const se_DescribePatchPropertiesCommand = async (input, context) => { - const headers = sharedHeaders("DescribePatchProperties"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_DescribePatchPropertiesCommand = se_DescribePatchPropertiesCommand; -const se_DescribeSessionsCommand = async (input, context) => { - const headers = sharedHeaders("DescribeSessions"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_DescribeSessionsCommand = se_DescribeSessionsCommand; -const se_DisassociateOpsItemRelatedItemCommand = async (input, context) => { - const headers = sharedHeaders("DisassociateOpsItemRelatedItem"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_DisassociateOpsItemRelatedItemCommand = se_DisassociateOpsItemRelatedItemCommand; -const se_GetAutomationExecutionCommand = async (input, context) => { - const headers = sharedHeaders("GetAutomationExecution"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_GetAutomationExecutionCommand = se_GetAutomationExecutionCommand; -const se_GetCalendarStateCommand = async (input, context) => { - const headers = sharedHeaders("GetCalendarState"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_GetCalendarStateCommand = se_GetCalendarStateCommand; -const se_GetCommandInvocationCommand = async (input, context) => { - const headers = sharedHeaders("GetCommandInvocation"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_GetCommandInvocationCommand = se_GetCommandInvocationCommand; -const se_GetConnectionStatusCommand = async (input, context) => { - const headers = sharedHeaders("GetConnectionStatus"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_GetConnectionStatusCommand = se_GetConnectionStatusCommand; -const se_GetDefaultPatchBaselineCommand = async (input, context) => { - const headers = sharedHeaders("GetDefaultPatchBaseline"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_GetDefaultPatchBaselineCommand = se_GetDefaultPatchBaselineCommand; -const se_GetDeployablePatchSnapshotForInstanceCommand = async (input, context) => { - const headers = sharedHeaders("GetDeployablePatchSnapshotForInstance"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_GetDeployablePatchSnapshotForInstanceCommand = se_GetDeployablePatchSnapshotForInstanceCommand; -const se_GetDocumentCommand = async (input, context) => { - const headers = sharedHeaders("GetDocument"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_GetDocumentCommand = se_GetDocumentCommand; -const se_GetInventoryCommand = async (input, context) => { - const headers = sharedHeaders("GetInventory"); - let body; - body = JSON.stringify(se_GetInventoryRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_GetInventoryCommand = se_GetInventoryCommand; -const se_GetInventorySchemaCommand = async (input, context) => { - const headers = sharedHeaders("GetInventorySchema"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_GetInventorySchemaCommand = se_GetInventorySchemaCommand; -const se_GetMaintenanceWindowCommand = async (input, context) => { - const headers = sharedHeaders("GetMaintenanceWindow"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_GetMaintenanceWindowCommand = se_GetMaintenanceWindowCommand; -const se_GetMaintenanceWindowExecutionCommand = async (input, context) => { - const headers = sharedHeaders("GetMaintenanceWindowExecution"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_GetMaintenanceWindowExecutionCommand = se_GetMaintenanceWindowExecutionCommand; -const se_GetMaintenanceWindowExecutionTaskCommand = async (input, context) => { - const headers = sharedHeaders("GetMaintenanceWindowExecutionTask"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_GetMaintenanceWindowExecutionTaskCommand = se_GetMaintenanceWindowExecutionTaskCommand; -const se_GetMaintenanceWindowExecutionTaskInvocationCommand = async (input, context) => { - const headers = sharedHeaders("GetMaintenanceWindowExecutionTaskInvocation"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_GetMaintenanceWindowExecutionTaskInvocationCommand = se_GetMaintenanceWindowExecutionTaskInvocationCommand; -const se_GetMaintenanceWindowTaskCommand = async (input, context) => { - const headers = sharedHeaders("GetMaintenanceWindowTask"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_GetMaintenanceWindowTaskCommand = se_GetMaintenanceWindowTaskCommand; -const se_GetOpsItemCommand = async (input, context) => { - const headers = sharedHeaders("GetOpsItem"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_GetOpsItemCommand = se_GetOpsItemCommand; -const se_GetOpsMetadataCommand = async (input, context) => { - const headers = sharedHeaders("GetOpsMetadata"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_GetOpsMetadataCommand = se_GetOpsMetadataCommand; -const se_GetOpsSummaryCommand = async (input, context) => { - const headers = sharedHeaders("GetOpsSummary"); - let body; - body = JSON.stringify(se_GetOpsSummaryRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_GetOpsSummaryCommand = se_GetOpsSummaryCommand; -const se_GetParameterCommand = async (input, context) => { - const headers = sharedHeaders("GetParameter"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_GetParameterCommand = se_GetParameterCommand; -const se_GetParameterHistoryCommand = async (input, context) => { - const headers = sharedHeaders("GetParameterHistory"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_GetParameterHistoryCommand = se_GetParameterHistoryCommand; -const se_GetParametersCommand = async (input, context) => { - const headers = sharedHeaders("GetParameters"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_GetParametersCommand = se_GetParametersCommand; -const se_GetParametersByPathCommand = async (input, context) => { - const headers = sharedHeaders("GetParametersByPath"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_GetParametersByPathCommand = se_GetParametersByPathCommand; -const se_GetPatchBaselineCommand = async (input, context) => { - const headers = sharedHeaders("GetPatchBaseline"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_GetPatchBaselineCommand = se_GetPatchBaselineCommand; -const se_GetPatchBaselineForPatchGroupCommand = async (input, context) => { - const headers = sharedHeaders("GetPatchBaselineForPatchGroup"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_GetPatchBaselineForPatchGroupCommand = se_GetPatchBaselineForPatchGroupCommand; -const se_GetResourcePoliciesCommand = async (input, context) => { - const headers = sharedHeaders("GetResourcePolicies"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_GetResourcePoliciesCommand = se_GetResourcePoliciesCommand; -const se_GetServiceSettingCommand = async (input, context) => { - const headers = sharedHeaders("GetServiceSetting"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_GetServiceSettingCommand = se_GetServiceSettingCommand; -const se_LabelParameterVersionCommand = async (input, context) => { - const headers = sharedHeaders("LabelParameterVersion"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_LabelParameterVersionCommand = se_LabelParameterVersionCommand; -const se_ListAssociationsCommand = async (input, context) => { - const headers = sharedHeaders("ListAssociations"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_ListAssociationsCommand = se_ListAssociationsCommand; -const se_ListAssociationVersionsCommand = async (input, context) => { - const headers = sharedHeaders("ListAssociationVersions"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_ListAssociationVersionsCommand = se_ListAssociationVersionsCommand; -const se_ListCommandInvocationsCommand = async (input, context) => { - const headers = sharedHeaders("ListCommandInvocations"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_ListCommandInvocationsCommand = se_ListCommandInvocationsCommand; -const se_ListCommandsCommand = async (input, context) => { - const headers = sharedHeaders("ListCommands"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_ListCommandsCommand = se_ListCommandsCommand; -const se_ListComplianceItemsCommand = async (input, context) => { - const headers = sharedHeaders("ListComplianceItems"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_ListComplianceItemsCommand = se_ListComplianceItemsCommand; -const se_ListComplianceSummariesCommand = async (input, context) => { - const headers = sharedHeaders("ListComplianceSummaries"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_ListComplianceSummariesCommand = se_ListComplianceSummariesCommand; -const se_ListDocumentMetadataHistoryCommand = async (input, context) => { - const headers = sharedHeaders("ListDocumentMetadataHistory"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_ListDocumentMetadataHistoryCommand = se_ListDocumentMetadataHistoryCommand; -const se_ListDocumentsCommand = async (input, context) => { - const headers = sharedHeaders("ListDocuments"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_ListDocumentsCommand = se_ListDocumentsCommand; -const se_ListDocumentVersionsCommand = async (input, context) => { - const headers = sharedHeaders("ListDocumentVersions"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_ListDocumentVersionsCommand = se_ListDocumentVersionsCommand; -const se_ListInventoryEntriesCommand = async (input, context) => { - const headers = sharedHeaders("ListInventoryEntries"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_ListInventoryEntriesCommand = se_ListInventoryEntriesCommand; -const se_ListOpsItemEventsCommand = async (input, context) => { - const headers = sharedHeaders("ListOpsItemEvents"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_ListOpsItemEventsCommand = se_ListOpsItemEventsCommand; -const se_ListOpsItemRelatedItemsCommand = async (input, context) => { - const headers = sharedHeaders("ListOpsItemRelatedItems"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_ListOpsItemRelatedItemsCommand = se_ListOpsItemRelatedItemsCommand; -const se_ListOpsMetadataCommand = async (input, context) => { - const headers = sharedHeaders("ListOpsMetadata"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_ListOpsMetadataCommand = se_ListOpsMetadataCommand; -const se_ListResourceComplianceSummariesCommand = async (input, context) => { - const headers = sharedHeaders("ListResourceComplianceSummaries"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_ListResourceComplianceSummariesCommand = se_ListResourceComplianceSummariesCommand; -const se_ListResourceDataSyncCommand = async (input, context) => { - const headers = sharedHeaders("ListResourceDataSync"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_ListResourceDataSyncCommand = se_ListResourceDataSyncCommand; -const se_ListTagsForResourceCommand = async (input, context) => { - const headers = sharedHeaders("ListTagsForResource"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_ListTagsForResourceCommand = se_ListTagsForResourceCommand; -const se_ModifyDocumentPermissionCommand = async (input, context) => { - const headers = sharedHeaders("ModifyDocumentPermission"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_ModifyDocumentPermissionCommand = se_ModifyDocumentPermissionCommand; -const se_PutComplianceItemsCommand = async (input, context) => { - const headers = sharedHeaders("PutComplianceItems"); - let body; - body = JSON.stringify(se_PutComplianceItemsRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_PutComplianceItemsCommand = se_PutComplianceItemsCommand; -const se_PutInventoryCommand = async (input, context) => { - const headers = sharedHeaders("PutInventory"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_PutInventoryCommand = se_PutInventoryCommand; -const se_PutParameterCommand = async (input, context) => { - const headers = sharedHeaders("PutParameter"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_PutParameterCommand = se_PutParameterCommand; -const se_PutResourcePolicyCommand = async (input, context) => { - const headers = sharedHeaders("PutResourcePolicy"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_PutResourcePolicyCommand = se_PutResourcePolicyCommand; -const se_RegisterDefaultPatchBaselineCommand = async (input, context) => { - const headers = sharedHeaders("RegisterDefaultPatchBaseline"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_RegisterDefaultPatchBaselineCommand = se_RegisterDefaultPatchBaselineCommand; -const se_RegisterPatchBaselineForPatchGroupCommand = async (input, context) => { - const headers = sharedHeaders("RegisterPatchBaselineForPatchGroup"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_RegisterPatchBaselineForPatchGroupCommand = se_RegisterPatchBaselineForPatchGroupCommand; -const se_RegisterTargetWithMaintenanceWindowCommand = async (input, context) => { - const headers = sharedHeaders("RegisterTargetWithMaintenanceWindow"); - let body; - body = JSON.stringify(se_RegisterTargetWithMaintenanceWindowRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_RegisterTargetWithMaintenanceWindowCommand = se_RegisterTargetWithMaintenanceWindowCommand; -const se_RegisterTaskWithMaintenanceWindowCommand = async (input, context) => { - const headers = sharedHeaders("RegisterTaskWithMaintenanceWindow"); - let body; - body = JSON.stringify(se_RegisterTaskWithMaintenanceWindowRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_RegisterTaskWithMaintenanceWindowCommand = se_RegisterTaskWithMaintenanceWindowCommand; -const se_RemoveTagsFromResourceCommand = async (input, context) => { - const headers = sharedHeaders("RemoveTagsFromResource"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_RemoveTagsFromResourceCommand = se_RemoveTagsFromResourceCommand; -const se_ResetServiceSettingCommand = async (input, context) => { - const headers = sharedHeaders("ResetServiceSetting"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_ResetServiceSettingCommand = se_ResetServiceSettingCommand; -const se_ResumeSessionCommand = async (input, context) => { - const headers = sharedHeaders("ResumeSession"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_ResumeSessionCommand = se_ResumeSessionCommand; -const se_SendAutomationSignalCommand = async (input, context) => { - const headers = sharedHeaders("SendAutomationSignal"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_SendAutomationSignalCommand = se_SendAutomationSignalCommand; -const se_SendCommandCommand = async (input, context) => { - const headers = sharedHeaders("SendCommand"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_SendCommandCommand = se_SendCommandCommand; -const se_StartAssociationsOnceCommand = async (input, context) => { - const headers = sharedHeaders("StartAssociationsOnce"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_StartAssociationsOnceCommand = se_StartAssociationsOnceCommand; -const se_StartAutomationExecutionCommand = async (input, context) => { - const headers = sharedHeaders("StartAutomationExecution"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_StartAutomationExecutionCommand = se_StartAutomationExecutionCommand; -const se_StartChangeRequestExecutionCommand = async (input, context) => { - const headers = sharedHeaders("StartChangeRequestExecution"); - let body; - body = JSON.stringify(se_StartChangeRequestExecutionRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_StartChangeRequestExecutionCommand = se_StartChangeRequestExecutionCommand; -const se_StartSessionCommand = async (input, context) => { - const headers = sharedHeaders("StartSession"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_StartSessionCommand = se_StartSessionCommand; -const se_StopAutomationExecutionCommand = async (input, context) => { - const headers = sharedHeaders("StopAutomationExecution"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_StopAutomationExecutionCommand = se_StopAutomationExecutionCommand; -const se_TerminateSessionCommand = async (input, context) => { - const headers = sharedHeaders("TerminateSession"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_TerminateSessionCommand = se_TerminateSessionCommand; -const se_UnlabelParameterVersionCommand = async (input, context) => { - const headers = sharedHeaders("UnlabelParameterVersion"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_UnlabelParameterVersionCommand = se_UnlabelParameterVersionCommand; -const se_UpdateAssociationCommand = async (input, context) => { - const headers = sharedHeaders("UpdateAssociation"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_UpdateAssociationCommand = se_UpdateAssociationCommand; -const se_UpdateAssociationStatusCommand = async (input, context) => { - const headers = sharedHeaders("UpdateAssociationStatus"); - let body; - body = JSON.stringify(se_UpdateAssociationStatusRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_UpdateAssociationStatusCommand = se_UpdateAssociationStatusCommand; -const se_UpdateDocumentCommand = async (input, context) => { - const headers = sharedHeaders("UpdateDocument"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_UpdateDocumentCommand = se_UpdateDocumentCommand; -const se_UpdateDocumentDefaultVersionCommand = async (input, context) => { - const headers = sharedHeaders("UpdateDocumentDefaultVersion"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_UpdateDocumentDefaultVersionCommand = se_UpdateDocumentDefaultVersionCommand; -const se_UpdateDocumentMetadataCommand = async (input, context) => { - const headers = sharedHeaders("UpdateDocumentMetadata"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_UpdateDocumentMetadataCommand = se_UpdateDocumentMetadataCommand; -const se_UpdateMaintenanceWindowCommand = async (input, context) => { - const headers = sharedHeaders("UpdateMaintenanceWindow"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_UpdateMaintenanceWindowCommand = se_UpdateMaintenanceWindowCommand; -const se_UpdateMaintenanceWindowTargetCommand = async (input, context) => { - const headers = sharedHeaders("UpdateMaintenanceWindowTarget"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_UpdateMaintenanceWindowTargetCommand = se_UpdateMaintenanceWindowTargetCommand; -const se_UpdateMaintenanceWindowTaskCommand = async (input, context) => { - const headers = sharedHeaders("UpdateMaintenanceWindowTask"); - let body; - body = JSON.stringify(se_UpdateMaintenanceWindowTaskRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_UpdateMaintenanceWindowTaskCommand = se_UpdateMaintenanceWindowTaskCommand; -const se_UpdateManagedInstanceRoleCommand = async (input, context) => { - const headers = sharedHeaders("UpdateManagedInstanceRole"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_UpdateManagedInstanceRoleCommand = se_UpdateManagedInstanceRoleCommand; -const se_UpdateOpsItemCommand = async (input, context) => { - const headers = sharedHeaders("UpdateOpsItem"); - let body; - body = JSON.stringify(se_UpdateOpsItemRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_UpdateOpsItemCommand = se_UpdateOpsItemCommand; -const se_UpdateOpsMetadataCommand = async (input, context) => { - const headers = sharedHeaders("UpdateOpsMetadata"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_UpdateOpsMetadataCommand = se_UpdateOpsMetadataCommand; -const se_UpdatePatchBaselineCommand = async (input, context) => { - const headers = sharedHeaders("UpdatePatchBaseline"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_UpdatePatchBaselineCommand = se_UpdatePatchBaselineCommand; -const se_UpdateResourceDataSyncCommand = async (input, context) => { - const headers = sharedHeaders("UpdateResourceDataSync"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_UpdateResourceDataSyncCommand = se_UpdateResourceDataSyncCommand; -const se_UpdateServiceSettingCommand = async (input, context) => { - const headers = sharedHeaders("UpdateServiceSetting"); - let body; - body = JSON.stringify((0, smithy_client_1._json)(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_UpdateServiceSettingCommand = se_UpdateServiceSettingCommand; -const de_AddTagsToResourceCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_AddTagsToResourceCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_AddTagsToResourceCommand = de_AddTagsToResourceCommand; -const de_AddTagsToResourceCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidResourceId": - case "com.amazonaws.ssm#InvalidResourceId": - throw await de_InvalidResourceIdRes(parsedOutput, context); - case "InvalidResourceType": - case "com.amazonaws.ssm#InvalidResourceType": - throw await de_InvalidResourceTypeRes(parsedOutput, context); - case "TooManyTagsError": - case "com.amazonaws.ssm#TooManyTagsError": - throw await de_TooManyTagsErrorRes(parsedOutput, context); - case "TooManyUpdates": - case "com.amazonaws.ssm#TooManyUpdates": - throw await de_TooManyUpdatesRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_AssociateOpsItemRelatedItemCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_AssociateOpsItemRelatedItemCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_AssociateOpsItemRelatedItemCommand = de_AssociateOpsItemRelatedItemCommand; -const de_AssociateOpsItemRelatedItemCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "OpsItemConflictException": - case "com.amazonaws.ssm#OpsItemConflictException": - throw await de_OpsItemConflictExceptionRes(parsedOutput, context); - case "OpsItemInvalidParameterException": - case "com.amazonaws.ssm#OpsItemInvalidParameterException": - throw await de_OpsItemInvalidParameterExceptionRes(parsedOutput, context); - case "OpsItemLimitExceededException": - case "com.amazonaws.ssm#OpsItemLimitExceededException": - throw await de_OpsItemLimitExceededExceptionRes(parsedOutput, context); - case "OpsItemNotFoundException": - case "com.amazonaws.ssm#OpsItemNotFoundException": - throw await de_OpsItemNotFoundExceptionRes(parsedOutput, context); - case "OpsItemRelatedItemAlreadyExistsException": - case "com.amazonaws.ssm#OpsItemRelatedItemAlreadyExistsException": - throw await de_OpsItemRelatedItemAlreadyExistsExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_CancelCommandCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_CancelCommandCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_CancelCommandCommand = de_CancelCommandCommand; -const de_CancelCommandCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DuplicateInstanceId": - case "com.amazonaws.ssm#DuplicateInstanceId": - throw await de_DuplicateInstanceIdRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidCommandId": - case "com.amazonaws.ssm#InvalidCommandId": - throw await de_InvalidCommandIdRes(parsedOutput, context); - case "InvalidInstanceId": - case "com.amazonaws.ssm#InvalidInstanceId": - throw await de_InvalidInstanceIdRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_CancelMaintenanceWindowExecutionCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_CancelMaintenanceWindowExecutionCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_CancelMaintenanceWindowExecutionCommand = de_CancelMaintenanceWindowExecutionCommand; -const de_CancelMaintenanceWindowExecutionCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await de_DoesNotExistExceptionRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_CreateActivationCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_CreateActivationCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_CreateActivationCommand = de_CreateActivationCommand; -const de_CreateActivationCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidParameters": - case "com.amazonaws.ssm#InvalidParameters": - throw await de_InvalidParametersRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_CreateAssociationCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_CreateAssociationCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_CreateAssociationResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_CreateAssociationCommand = de_CreateAssociationCommand; -const de_CreateAssociationCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AssociationAlreadyExists": - case "com.amazonaws.ssm#AssociationAlreadyExists": - throw await de_AssociationAlreadyExistsRes(parsedOutput, context); - case "AssociationLimitExceeded": - case "com.amazonaws.ssm#AssociationLimitExceeded": - throw await de_AssociationLimitExceededRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidDocument": - case "com.amazonaws.ssm#InvalidDocument": - throw await de_InvalidDocumentRes(parsedOutput, context); - case "InvalidDocumentVersion": - case "com.amazonaws.ssm#InvalidDocumentVersion": - throw await de_InvalidDocumentVersionRes(parsedOutput, context); - case "InvalidInstanceId": - case "com.amazonaws.ssm#InvalidInstanceId": - throw await de_InvalidInstanceIdRes(parsedOutput, context); - case "InvalidOutputLocation": - case "com.amazonaws.ssm#InvalidOutputLocation": - throw await de_InvalidOutputLocationRes(parsedOutput, context); - case "InvalidParameters": - case "com.amazonaws.ssm#InvalidParameters": - throw await de_InvalidParametersRes(parsedOutput, context); - case "InvalidSchedule": - case "com.amazonaws.ssm#InvalidSchedule": - throw await de_InvalidScheduleRes(parsedOutput, context); - case "InvalidTag": - case "com.amazonaws.ssm#InvalidTag": - throw await de_InvalidTagRes(parsedOutput, context); - case "InvalidTarget": - case "com.amazonaws.ssm#InvalidTarget": - throw await de_InvalidTargetRes(parsedOutput, context); - case "InvalidTargetMaps": - case "com.amazonaws.ssm#InvalidTargetMaps": - throw await de_InvalidTargetMapsRes(parsedOutput, context); - case "UnsupportedPlatformType": - case "com.amazonaws.ssm#UnsupportedPlatformType": - throw await de_UnsupportedPlatformTypeRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_CreateAssociationBatchCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_CreateAssociationBatchCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_CreateAssociationBatchResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_CreateAssociationBatchCommand = de_CreateAssociationBatchCommand; -const de_CreateAssociationBatchCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AssociationLimitExceeded": - case "com.amazonaws.ssm#AssociationLimitExceeded": - throw await de_AssociationLimitExceededRes(parsedOutput, context); - case "DuplicateInstanceId": - case "com.amazonaws.ssm#DuplicateInstanceId": - throw await de_DuplicateInstanceIdRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidDocument": - case "com.amazonaws.ssm#InvalidDocument": - throw await de_InvalidDocumentRes(parsedOutput, context); - case "InvalidDocumentVersion": - case "com.amazonaws.ssm#InvalidDocumentVersion": - throw await de_InvalidDocumentVersionRes(parsedOutput, context); - case "InvalidInstanceId": - case "com.amazonaws.ssm#InvalidInstanceId": - throw await de_InvalidInstanceIdRes(parsedOutput, context); - case "InvalidOutputLocation": - case "com.amazonaws.ssm#InvalidOutputLocation": - throw await de_InvalidOutputLocationRes(parsedOutput, context); - case "InvalidParameters": - case "com.amazonaws.ssm#InvalidParameters": - throw await de_InvalidParametersRes(parsedOutput, context); - case "InvalidSchedule": - case "com.amazonaws.ssm#InvalidSchedule": - throw await de_InvalidScheduleRes(parsedOutput, context); - case "InvalidTarget": - case "com.amazonaws.ssm#InvalidTarget": - throw await de_InvalidTargetRes(parsedOutput, context); - case "InvalidTargetMaps": - case "com.amazonaws.ssm#InvalidTargetMaps": - throw await de_InvalidTargetMapsRes(parsedOutput, context); - case "UnsupportedPlatformType": - case "com.amazonaws.ssm#UnsupportedPlatformType": - throw await de_UnsupportedPlatformTypeRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_CreateDocumentCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_CreateDocumentCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_CreateDocumentResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_CreateDocumentCommand = de_CreateDocumentCommand; -const de_CreateDocumentCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DocumentAlreadyExists": - case "com.amazonaws.ssm#DocumentAlreadyExists": - throw await de_DocumentAlreadyExistsRes(parsedOutput, context); - case "DocumentLimitExceeded": - case "com.amazonaws.ssm#DocumentLimitExceeded": - throw await de_DocumentLimitExceededRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidDocumentContent": - case "com.amazonaws.ssm#InvalidDocumentContent": - throw await de_InvalidDocumentContentRes(parsedOutput, context); - case "InvalidDocumentSchemaVersion": - case "com.amazonaws.ssm#InvalidDocumentSchemaVersion": - throw await de_InvalidDocumentSchemaVersionRes(parsedOutput, context); - case "MaxDocumentSizeExceeded": - case "com.amazonaws.ssm#MaxDocumentSizeExceeded": - throw await de_MaxDocumentSizeExceededRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_CreateMaintenanceWindowCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_CreateMaintenanceWindowCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_CreateMaintenanceWindowCommand = de_CreateMaintenanceWindowCommand; -const de_CreateMaintenanceWindowCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "IdempotentParameterMismatch": - case "com.amazonaws.ssm#IdempotentParameterMismatch": - throw await de_IdempotentParameterMismatchRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "ResourceLimitExceededException": - case "com.amazonaws.ssm#ResourceLimitExceededException": - throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_CreateOpsItemCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_CreateOpsItemCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_CreateOpsItemCommand = de_CreateOpsItemCommand; -const de_CreateOpsItemCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "OpsItemAccessDeniedException": - case "com.amazonaws.ssm#OpsItemAccessDeniedException": - throw await de_OpsItemAccessDeniedExceptionRes(parsedOutput, context); - case "OpsItemAlreadyExistsException": - case "com.amazonaws.ssm#OpsItemAlreadyExistsException": - throw await de_OpsItemAlreadyExistsExceptionRes(parsedOutput, context); - case "OpsItemInvalidParameterException": - case "com.amazonaws.ssm#OpsItemInvalidParameterException": - throw await de_OpsItemInvalidParameterExceptionRes(parsedOutput, context); - case "OpsItemLimitExceededException": - case "com.amazonaws.ssm#OpsItemLimitExceededException": - throw await de_OpsItemLimitExceededExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_CreateOpsMetadataCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_CreateOpsMetadataCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_CreateOpsMetadataCommand = de_CreateOpsMetadataCommand; -const de_CreateOpsMetadataCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "OpsMetadataAlreadyExistsException": - case "com.amazonaws.ssm#OpsMetadataAlreadyExistsException": - throw await de_OpsMetadataAlreadyExistsExceptionRes(parsedOutput, context); - case "OpsMetadataInvalidArgumentException": - case "com.amazonaws.ssm#OpsMetadataInvalidArgumentException": - throw await de_OpsMetadataInvalidArgumentExceptionRes(parsedOutput, context); - case "OpsMetadataLimitExceededException": - case "com.amazonaws.ssm#OpsMetadataLimitExceededException": - throw await de_OpsMetadataLimitExceededExceptionRes(parsedOutput, context); - case "OpsMetadataTooManyUpdatesException": - case "com.amazonaws.ssm#OpsMetadataTooManyUpdatesException": - throw await de_OpsMetadataTooManyUpdatesExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_CreatePatchBaselineCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_CreatePatchBaselineCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_CreatePatchBaselineCommand = de_CreatePatchBaselineCommand; -const de_CreatePatchBaselineCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "IdempotentParameterMismatch": - case "com.amazonaws.ssm#IdempotentParameterMismatch": - throw await de_IdempotentParameterMismatchRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "ResourceLimitExceededException": - case "com.amazonaws.ssm#ResourceLimitExceededException": - throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_CreateResourceDataSyncCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_CreateResourceDataSyncCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_CreateResourceDataSyncCommand = de_CreateResourceDataSyncCommand; -const de_CreateResourceDataSyncCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "ResourceDataSyncAlreadyExistsException": - case "com.amazonaws.ssm#ResourceDataSyncAlreadyExistsException": - throw await de_ResourceDataSyncAlreadyExistsExceptionRes(parsedOutput, context); - case "ResourceDataSyncCountExceededException": - case "com.amazonaws.ssm#ResourceDataSyncCountExceededException": - throw await de_ResourceDataSyncCountExceededExceptionRes(parsedOutput, context); - case "ResourceDataSyncInvalidConfigurationException": - case "com.amazonaws.ssm#ResourceDataSyncInvalidConfigurationException": - throw await de_ResourceDataSyncInvalidConfigurationExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_DeleteActivationCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DeleteActivationCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_DeleteActivationCommand = de_DeleteActivationCommand; -const de_DeleteActivationCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidActivation": - case "com.amazonaws.ssm#InvalidActivation": - throw await de_InvalidActivationRes(parsedOutput, context); - case "InvalidActivationId": - case "com.amazonaws.ssm#InvalidActivationId": - throw await de_InvalidActivationIdRes(parsedOutput, context); - case "TooManyUpdates": - case "com.amazonaws.ssm#TooManyUpdates": - throw await de_TooManyUpdatesRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_DeleteAssociationCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DeleteAssociationCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_DeleteAssociationCommand = de_DeleteAssociationCommand; -const de_DeleteAssociationCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AssociationDoesNotExist": - case "com.amazonaws.ssm#AssociationDoesNotExist": - throw await de_AssociationDoesNotExistRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidDocument": - case "com.amazonaws.ssm#InvalidDocument": - throw await de_InvalidDocumentRes(parsedOutput, context); - case "InvalidInstanceId": - case "com.amazonaws.ssm#InvalidInstanceId": - throw await de_InvalidInstanceIdRes(parsedOutput, context); - case "TooManyUpdates": - case "com.amazonaws.ssm#TooManyUpdates": - throw await de_TooManyUpdatesRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_DeleteDocumentCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DeleteDocumentCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_DeleteDocumentCommand = de_DeleteDocumentCommand; -const de_DeleteDocumentCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AssociatedInstances": - case "com.amazonaws.ssm#AssociatedInstances": - throw await de_AssociatedInstancesRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidDocument": - case "com.amazonaws.ssm#InvalidDocument": - throw await de_InvalidDocumentRes(parsedOutput, context); - case "InvalidDocumentOperation": - case "com.amazonaws.ssm#InvalidDocumentOperation": - throw await de_InvalidDocumentOperationRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_DeleteInventoryCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DeleteInventoryCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_DeleteInventoryCommand = de_DeleteInventoryCommand; -const de_DeleteInventoryCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidDeleteInventoryParametersException": - case "com.amazonaws.ssm#InvalidDeleteInventoryParametersException": - throw await de_InvalidDeleteInventoryParametersExceptionRes(parsedOutput, context); - case "InvalidInventoryRequestException": - case "com.amazonaws.ssm#InvalidInventoryRequestException": - throw await de_InvalidInventoryRequestExceptionRes(parsedOutput, context); - case "InvalidOptionException": - case "com.amazonaws.ssm#InvalidOptionException": - throw await de_InvalidOptionExceptionRes(parsedOutput, context); - case "InvalidTypeNameException": - case "com.amazonaws.ssm#InvalidTypeNameException": - throw await de_InvalidTypeNameExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_DeleteMaintenanceWindowCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DeleteMaintenanceWindowCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_DeleteMaintenanceWindowCommand = de_DeleteMaintenanceWindowCommand; -const de_DeleteMaintenanceWindowCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_DeleteOpsItemCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DeleteOpsItemCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_DeleteOpsItemCommand = de_DeleteOpsItemCommand; -const de_DeleteOpsItemCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "OpsItemInvalidParameterException": - case "com.amazonaws.ssm#OpsItemInvalidParameterException": - throw await de_OpsItemInvalidParameterExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_DeleteOpsMetadataCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DeleteOpsMetadataCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_DeleteOpsMetadataCommand = de_DeleteOpsMetadataCommand; -const de_DeleteOpsMetadataCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "OpsMetadataInvalidArgumentException": - case "com.amazonaws.ssm#OpsMetadataInvalidArgumentException": - throw await de_OpsMetadataInvalidArgumentExceptionRes(parsedOutput, context); - case "OpsMetadataNotFoundException": - case "com.amazonaws.ssm#OpsMetadataNotFoundException": - throw await de_OpsMetadataNotFoundExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_DeleteParameterCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DeleteParameterCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_DeleteParameterCommand = de_DeleteParameterCommand; -const de_DeleteParameterCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "ParameterNotFound": - case "com.amazonaws.ssm#ParameterNotFound": - throw await de_ParameterNotFoundRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_DeleteParametersCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DeleteParametersCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_DeleteParametersCommand = de_DeleteParametersCommand; -const de_DeleteParametersCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_DeletePatchBaselineCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DeletePatchBaselineCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_DeletePatchBaselineCommand = de_DeletePatchBaselineCommand; -const de_DeletePatchBaselineCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "ResourceInUseException": - case "com.amazonaws.ssm#ResourceInUseException": - throw await de_ResourceInUseExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_DeleteResourceDataSyncCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DeleteResourceDataSyncCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_DeleteResourceDataSyncCommand = de_DeleteResourceDataSyncCommand; -const de_DeleteResourceDataSyncCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "ResourceDataSyncInvalidConfigurationException": - case "com.amazonaws.ssm#ResourceDataSyncInvalidConfigurationException": - throw await de_ResourceDataSyncInvalidConfigurationExceptionRes(parsedOutput, context); - case "ResourceDataSyncNotFoundException": - case "com.amazonaws.ssm#ResourceDataSyncNotFoundException": - throw await de_ResourceDataSyncNotFoundExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_DeleteResourcePolicyCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DeleteResourcePolicyCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_DeleteResourcePolicyCommand = de_DeleteResourcePolicyCommand; -const de_DeleteResourcePolicyCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "ResourcePolicyConflictException": - case "com.amazonaws.ssm#ResourcePolicyConflictException": - throw await de_ResourcePolicyConflictExceptionRes(parsedOutput, context); - case "ResourcePolicyInvalidParameterException": - case "com.amazonaws.ssm#ResourcePolicyInvalidParameterException": - throw await de_ResourcePolicyInvalidParameterExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_DeregisterManagedInstanceCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DeregisterManagedInstanceCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_DeregisterManagedInstanceCommand = de_DeregisterManagedInstanceCommand; -const de_DeregisterManagedInstanceCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidInstanceId": - case "com.amazonaws.ssm#InvalidInstanceId": - throw await de_InvalidInstanceIdRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_DeregisterPatchBaselineForPatchGroupCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DeregisterPatchBaselineForPatchGroupCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_DeregisterPatchBaselineForPatchGroupCommand = de_DeregisterPatchBaselineForPatchGroupCommand; -const de_DeregisterPatchBaselineForPatchGroupCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidResourceId": - case "com.amazonaws.ssm#InvalidResourceId": - throw await de_InvalidResourceIdRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_DeregisterTargetFromMaintenanceWindowCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DeregisterTargetFromMaintenanceWindowCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_DeregisterTargetFromMaintenanceWindowCommand = de_DeregisterTargetFromMaintenanceWindowCommand; -const de_DeregisterTargetFromMaintenanceWindowCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await de_DoesNotExistExceptionRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "TargetInUseException": - case "com.amazonaws.ssm#TargetInUseException": - throw await de_TargetInUseExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_DeregisterTaskFromMaintenanceWindowCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DeregisterTaskFromMaintenanceWindowCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_DeregisterTaskFromMaintenanceWindowCommand = de_DeregisterTaskFromMaintenanceWindowCommand; -const de_DeregisterTaskFromMaintenanceWindowCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await de_DoesNotExistExceptionRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_DescribeActivationsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribeActivationsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_DescribeActivationsResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_DescribeActivationsCommand = de_DescribeActivationsCommand; -const de_DescribeActivationsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidFilter": - case "com.amazonaws.ssm#InvalidFilter": - throw await de_InvalidFilterRes(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await de_InvalidNextTokenRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_DescribeAssociationCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribeAssociationCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_DescribeAssociationResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_DescribeAssociationCommand = de_DescribeAssociationCommand; -const de_DescribeAssociationCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AssociationDoesNotExist": - case "com.amazonaws.ssm#AssociationDoesNotExist": - throw await de_AssociationDoesNotExistRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidAssociationVersion": - case "com.amazonaws.ssm#InvalidAssociationVersion": - throw await de_InvalidAssociationVersionRes(parsedOutput, context); - case "InvalidDocument": - case "com.amazonaws.ssm#InvalidDocument": - throw await de_InvalidDocumentRes(parsedOutput, context); - case "InvalidInstanceId": - case "com.amazonaws.ssm#InvalidInstanceId": - throw await de_InvalidInstanceIdRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_DescribeAssociationExecutionsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribeAssociationExecutionsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_DescribeAssociationExecutionsResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_DescribeAssociationExecutionsCommand = de_DescribeAssociationExecutionsCommand; -const de_DescribeAssociationExecutionsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AssociationDoesNotExist": - case "com.amazonaws.ssm#AssociationDoesNotExist": - throw await de_AssociationDoesNotExistRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await de_InvalidNextTokenRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_DescribeAssociationExecutionTargetsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribeAssociationExecutionTargetsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_DescribeAssociationExecutionTargetsResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_DescribeAssociationExecutionTargetsCommand = de_DescribeAssociationExecutionTargetsCommand; -const de_DescribeAssociationExecutionTargetsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AssociationDoesNotExist": - case "com.amazonaws.ssm#AssociationDoesNotExist": - throw await de_AssociationDoesNotExistRes(parsedOutput, context); - case "AssociationExecutionDoesNotExist": - case "com.amazonaws.ssm#AssociationExecutionDoesNotExist": - throw await de_AssociationExecutionDoesNotExistRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await de_InvalidNextTokenRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_DescribeAutomationExecutionsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribeAutomationExecutionsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_DescribeAutomationExecutionsResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_DescribeAutomationExecutionsCommand = de_DescribeAutomationExecutionsCommand; -const de_DescribeAutomationExecutionsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidFilterKey": - case "com.amazonaws.ssm#InvalidFilterKey": - throw await de_InvalidFilterKeyRes(parsedOutput, context); - case "InvalidFilterValue": - case "com.amazonaws.ssm#InvalidFilterValue": - throw await de_InvalidFilterValueRes(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await de_InvalidNextTokenRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_DescribeAutomationStepExecutionsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribeAutomationStepExecutionsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_DescribeAutomationStepExecutionsResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_DescribeAutomationStepExecutionsCommand = de_DescribeAutomationStepExecutionsCommand; -const de_DescribeAutomationStepExecutionsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AutomationExecutionNotFoundException": - case "com.amazonaws.ssm#AutomationExecutionNotFoundException": - throw await de_AutomationExecutionNotFoundExceptionRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidFilterKey": - case "com.amazonaws.ssm#InvalidFilterKey": - throw await de_InvalidFilterKeyRes(parsedOutput, context); - case "InvalidFilterValue": - case "com.amazonaws.ssm#InvalidFilterValue": - throw await de_InvalidFilterValueRes(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await de_InvalidNextTokenRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_DescribeAvailablePatchesCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribeAvailablePatchesCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_DescribeAvailablePatchesResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_DescribeAvailablePatchesCommand = de_DescribeAvailablePatchesCommand; -const de_DescribeAvailablePatchesCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_DescribeDocumentCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribeDocumentCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_DescribeDocumentResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_DescribeDocumentCommand = de_DescribeDocumentCommand; -const de_DescribeDocumentCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidDocument": - case "com.amazonaws.ssm#InvalidDocument": - throw await de_InvalidDocumentRes(parsedOutput, context); - case "InvalidDocumentVersion": - case "com.amazonaws.ssm#InvalidDocumentVersion": - throw await de_InvalidDocumentVersionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_DescribeDocumentPermissionCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribeDocumentPermissionCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_DescribeDocumentPermissionCommand = de_DescribeDocumentPermissionCommand; -const de_DescribeDocumentPermissionCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidDocument": - case "com.amazonaws.ssm#InvalidDocument": - throw await de_InvalidDocumentRes(parsedOutput, context); - case "InvalidDocumentOperation": - case "com.amazonaws.ssm#InvalidDocumentOperation": - throw await de_InvalidDocumentOperationRes(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await de_InvalidNextTokenRes(parsedOutput, context); - case "InvalidPermissionType": - case "com.amazonaws.ssm#InvalidPermissionType": - throw await de_InvalidPermissionTypeRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_DescribeEffectiveInstanceAssociationsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribeEffectiveInstanceAssociationsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_DescribeEffectiveInstanceAssociationsCommand = de_DescribeEffectiveInstanceAssociationsCommand; -const de_DescribeEffectiveInstanceAssociationsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidInstanceId": - case "com.amazonaws.ssm#InvalidInstanceId": - throw await de_InvalidInstanceIdRes(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await de_InvalidNextTokenRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_DescribeEffectivePatchesForPatchBaselineCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribeEffectivePatchesForPatchBaselineCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_DescribeEffectivePatchesForPatchBaselineResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_DescribeEffectivePatchesForPatchBaselineCommand = de_DescribeEffectivePatchesForPatchBaselineCommand; -const de_DescribeEffectivePatchesForPatchBaselineCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await de_DoesNotExistExceptionRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidResourceId": - case "com.amazonaws.ssm#InvalidResourceId": - throw await de_InvalidResourceIdRes(parsedOutput, context); - case "UnsupportedOperatingSystem": - case "com.amazonaws.ssm#UnsupportedOperatingSystem": - throw await de_UnsupportedOperatingSystemRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_DescribeInstanceAssociationsStatusCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribeInstanceAssociationsStatusCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_DescribeInstanceAssociationsStatusResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_DescribeInstanceAssociationsStatusCommand = de_DescribeInstanceAssociationsStatusCommand; -const de_DescribeInstanceAssociationsStatusCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidInstanceId": - case "com.amazonaws.ssm#InvalidInstanceId": - throw await de_InvalidInstanceIdRes(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await de_InvalidNextTokenRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_DescribeInstanceInformationCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribeInstanceInformationCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_DescribeInstanceInformationResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_DescribeInstanceInformationCommand = de_DescribeInstanceInformationCommand; -const de_DescribeInstanceInformationCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidFilterKey": - case "com.amazonaws.ssm#InvalidFilterKey": - throw await de_InvalidFilterKeyRes(parsedOutput, context); - case "InvalidInstanceId": - case "com.amazonaws.ssm#InvalidInstanceId": - throw await de_InvalidInstanceIdRes(parsedOutput, context); - case "InvalidInstanceInformationFilterValue": - case "com.amazonaws.ssm#InvalidInstanceInformationFilterValue": - throw await de_InvalidInstanceInformationFilterValueRes(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await de_InvalidNextTokenRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_DescribeInstancePatchesCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribeInstancePatchesCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_DescribeInstancePatchesResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_DescribeInstancePatchesCommand = de_DescribeInstancePatchesCommand; -const de_DescribeInstancePatchesCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidFilter": - case "com.amazonaws.ssm#InvalidFilter": - throw await de_InvalidFilterRes(parsedOutput, context); - case "InvalidInstanceId": - case "com.amazonaws.ssm#InvalidInstanceId": - throw await de_InvalidInstanceIdRes(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await de_InvalidNextTokenRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_DescribeInstancePatchStatesCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribeInstancePatchStatesCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_DescribeInstancePatchStatesResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_DescribeInstancePatchStatesCommand = de_DescribeInstancePatchStatesCommand; -const de_DescribeInstancePatchStatesCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await de_InvalidNextTokenRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_DescribeInstancePatchStatesForPatchGroupCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribeInstancePatchStatesForPatchGroupCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_DescribeInstancePatchStatesForPatchGroupResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_DescribeInstancePatchStatesForPatchGroupCommand = de_DescribeInstancePatchStatesForPatchGroupCommand; -const de_DescribeInstancePatchStatesForPatchGroupCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidFilter": - case "com.amazonaws.ssm#InvalidFilter": - throw await de_InvalidFilterRes(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await de_InvalidNextTokenRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_DescribeInventoryDeletionsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribeInventoryDeletionsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_DescribeInventoryDeletionsResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_DescribeInventoryDeletionsCommand = de_DescribeInventoryDeletionsCommand; -const de_DescribeInventoryDeletionsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidDeletionIdException": - case "com.amazonaws.ssm#InvalidDeletionIdException": - throw await de_InvalidDeletionIdExceptionRes(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await de_InvalidNextTokenRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_DescribeMaintenanceWindowExecutionsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribeMaintenanceWindowExecutionsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_DescribeMaintenanceWindowExecutionsResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_DescribeMaintenanceWindowExecutionsCommand = de_DescribeMaintenanceWindowExecutionsCommand; -const de_DescribeMaintenanceWindowExecutionsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_DescribeMaintenanceWindowExecutionTaskInvocationsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribeMaintenanceWindowExecutionTaskInvocationsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_DescribeMaintenanceWindowExecutionTaskInvocationsResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_DescribeMaintenanceWindowExecutionTaskInvocationsCommand = de_DescribeMaintenanceWindowExecutionTaskInvocationsCommand; -const de_DescribeMaintenanceWindowExecutionTaskInvocationsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await de_DoesNotExistExceptionRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_DescribeMaintenanceWindowExecutionTasksCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribeMaintenanceWindowExecutionTasksCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_DescribeMaintenanceWindowExecutionTasksResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_DescribeMaintenanceWindowExecutionTasksCommand = de_DescribeMaintenanceWindowExecutionTasksCommand; -const de_DescribeMaintenanceWindowExecutionTasksCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await de_DoesNotExistExceptionRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_DescribeMaintenanceWindowsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribeMaintenanceWindowsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_DescribeMaintenanceWindowsCommand = de_DescribeMaintenanceWindowsCommand; -const de_DescribeMaintenanceWindowsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_DescribeMaintenanceWindowScheduleCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribeMaintenanceWindowScheduleCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_DescribeMaintenanceWindowScheduleCommand = de_DescribeMaintenanceWindowScheduleCommand; -const de_DescribeMaintenanceWindowScheduleCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await de_DoesNotExistExceptionRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_DescribeMaintenanceWindowsForTargetCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribeMaintenanceWindowsForTargetCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_DescribeMaintenanceWindowsForTargetCommand = de_DescribeMaintenanceWindowsForTargetCommand; -const de_DescribeMaintenanceWindowsForTargetCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_DescribeMaintenanceWindowTargetsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribeMaintenanceWindowTargetsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_DescribeMaintenanceWindowTargetsCommand = de_DescribeMaintenanceWindowTargetsCommand; -const de_DescribeMaintenanceWindowTargetsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await de_DoesNotExistExceptionRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_DescribeMaintenanceWindowTasksCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribeMaintenanceWindowTasksCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_DescribeMaintenanceWindowTasksCommand = de_DescribeMaintenanceWindowTasksCommand; -const de_DescribeMaintenanceWindowTasksCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await de_DoesNotExistExceptionRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_DescribeOpsItemsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribeOpsItemsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_DescribeOpsItemsResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_DescribeOpsItemsCommand = de_DescribeOpsItemsCommand; -const de_DescribeOpsItemsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_DescribeParametersCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribeParametersCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_DescribeParametersResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_DescribeParametersCommand = de_DescribeParametersCommand; -const de_DescribeParametersCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidFilterKey": - case "com.amazonaws.ssm#InvalidFilterKey": - throw await de_InvalidFilterKeyRes(parsedOutput, context); - case "InvalidFilterOption": - case "com.amazonaws.ssm#InvalidFilterOption": - throw await de_InvalidFilterOptionRes(parsedOutput, context); - case "InvalidFilterValue": - case "com.amazonaws.ssm#InvalidFilterValue": - throw await de_InvalidFilterValueRes(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await de_InvalidNextTokenRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_DescribePatchBaselinesCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribePatchBaselinesCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_DescribePatchBaselinesCommand = de_DescribePatchBaselinesCommand; -const de_DescribePatchBaselinesCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_DescribePatchGroupsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribePatchGroupsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_DescribePatchGroupsCommand = de_DescribePatchGroupsCommand; -const de_DescribePatchGroupsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_DescribePatchGroupStateCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribePatchGroupStateCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_DescribePatchGroupStateCommand = de_DescribePatchGroupStateCommand; -const de_DescribePatchGroupStateCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await de_InvalidNextTokenRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_DescribePatchPropertiesCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribePatchPropertiesCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_DescribePatchPropertiesCommand = de_DescribePatchPropertiesCommand; -const de_DescribePatchPropertiesCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_DescribeSessionsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribeSessionsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_DescribeSessionsResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_DescribeSessionsCommand = de_DescribeSessionsCommand; -const de_DescribeSessionsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidFilterKey": - case "com.amazonaws.ssm#InvalidFilterKey": - throw await de_InvalidFilterKeyRes(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await de_InvalidNextTokenRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_DisassociateOpsItemRelatedItemCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DisassociateOpsItemRelatedItemCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_DisassociateOpsItemRelatedItemCommand = de_DisassociateOpsItemRelatedItemCommand; -const de_DisassociateOpsItemRelatedItemCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "OpsItemConflictException": - case "com.amazonaws.ssm#OpsItemConflictException": - throw await de_OpsItemConflictExceptionRes(parsedOutput, context); - case "OpsItemInvalidParameterException": - case "com.amazonaws.ssm#OpsItemInvalidParameterException": - throw await de_OpsItemInvalidParameterExceptionRes(parsedOutput, context); - case "OpsItemNotFoundException": - case "com.amazonaws.ssm#OpsItemNotFoundException": - throw await de_OpsItemNotFoundExceptionRes(parsedOutput, context); - case "OpsItemRelatedItemAssociationNotFoundException": - case "com.amazonaws.ssm#OpsItemRelatedItemAssociationNotFoundException": - throw await de_OpsItemRelatedItemAssociationNotFoundExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_GetAutomationExecutionCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_GetAutomationExecutionCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_GetAutomationExecutionResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_GetAutomationExecutionCommand = de_GetAutomationExecutionCommand; -const de_GetAutomationExecutionCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AutomationExecutionNotFoundException": - case "com.amazonaws.ssm#AutomationExecutionNotFoundException": - throw await de_AutomationExecutionNotFoundExceptionRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_GetCalendarStateCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_GetCalendarStateCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_GetCalendarStateCommand = de_GetCalendarStateCommand; -const de_GetCalendarStateCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidDocument": - case "com.amazonaws.ssm#InvalidDocument": - throw await de_InvalidDocumentRes(parsedOutput, context); - case "InvalidDocumentType": - case "com.amazonaws.ssm#InvalidDocumentType": - throw await de_InvalidDocumentTypeRes(parsedOutput, context); - case "UnsupportedCalendarException": - case "com.amazonaws.ssm#UnsupportedCalendarException": - throw await de_UnsupportedCalendarExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_GetCommandInvocationCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_GetCommandInvocationCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_GetCommandInvocationCommand = de_GetCommandInvocationCommand; -const de_GetCommandInvocationCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidCommandId": - case "com.amazonaws.ssm#InvalidCommandId": - throw await de_InvalidCommandIdRes(parsedOutput, context); - case "InvalidInstanceId": - case "com.amazonaws.ssm#InvalidInstanceId": - throw await de_InvalidInstanceIdRes(parsedOutput, context); - case "InvalidPluginName": - case "com.amazonaws.ssm#InvalidPluginName": - throw await de_InvalidPluginNameRes(parsedOutput, context); - case "InvocationDoesNotExist": - case "com.amazonaws.ssm#InvocationDoesNotExist": - throw await de_InvocationDoesNotExistRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_GetConnectionStatusCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_GetConnectionStatusCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_GetConnectionStatusCommand = de_GetConnectionStatusCommand; -const de_GetConnectionStatusCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_GetDefaultPatchBaselineCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_GetDefaultPatchBaselineCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_GetDefaultPatchBaselineCommand = de_GetDefaultPatchBaselineCommand; -const de_GetDefaultPatchBaselineCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_GetDeployablePatchSnapshotForInstanceCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_GetDeployablePatchSnapshotForInstanceCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_GetDeployablePatchSnapshotForInstanceCommand = de_GetDeployablePatchSnapshotForInstanceCommand; -const de_GetDeployablePatchSnapshotForInstanceCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "UnsupportedFeatureRequiredException": - case "com.amazonaws.ssm#UnsupportedFeatureRequiredException": - throw await de_UnsupportedFeatureRequiredExceptionRes(parsedOutput, context); - case "UnsupportedOperatingSystem": - case "com.amazonaws.ssm#UnsupportedOperatingSystem": - throw await de_UnsupportedOperatingSystemRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_GetDocumentCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_GetDocumentCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_GetDocumentResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_GetDocumentCommand = de_GetDocumentCommand; -const de_GetDocumentCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidDocument": - case "com.amazonaws.ssm#InvalidDocument": - throw await de_InvalidDocumentRes(parsedOutput, context); - case "InvalidDocumentVersion": - case "com.amazonaws.ssm#InvalidDocumentVersion": - throw await de_InvalidDocumentVersionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_GetInventoryCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_GetInventoryCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_GetInventoryCommand = de_GetInventoryCommand; -const de_GetInventoryCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidAggregatorException": - case "com.amazonaws.ssm#InvalidAggregatorException": - throw await de_InvalidAggregatorExceptionRes(parsedOutput, context); - case "InvalidFilter": - case "com.amazonaws.ssm#InvalidFilter": - throw await de_InvalidFilterRes(parsedOutput, context); - case "InvalidInventoryGroupException": - case "com.amazonaws.ssm#InvalidInventoryGroupException": - throw await de_InvalidInventoryGroupExceptionRes(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await de_InvalidNextTokenRes(parsedOutput, context); - case "InvalidResultAttributeException": - case "com.amazonaws.ssm#InvalidResultAttributeException": - throw await de_InvalidResultAttributeExceptionRes(parsedOutput, context); - case "InvalidTypeNameException": - case "com.amazonaws.ssm#InvalidTypeNameException": - throw await de_InvalidTypeNameExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_GetInventorySchemaCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_GetInventorySchemaCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_GetInventorySchemaCommand = de_GetInventorySchemaCommand; -const de_GetInventorySchemaCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await de_InvalidNextTokenRes(parsedOutput, context); - case "InvalidTypeNameException": - case "com.amazonaws.ssm#InvalidTypeNameException": - throw await de_InvalidTypeNameExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_GetMaintenanceWindowCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_GetMaintenanceWindowCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_GetMaintenanceWindowResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_GetMaintenanceWindowCommand = de_GetMaintenanceWindowCommand; -const de_GetMaintenanceWindowCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await de_DoesNotExistExceptionRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_GetMaintenanceWindowExecutionCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_GetMaintenanceWindowExecutionCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_GetMaintenanceWindowExecutionResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_GetMaintenanceWindowExecutionCommand = de_GetMaintenanceWindowExecutionCommand; -const de_GetMaintenanceWindowExecutionCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await de_DoesNotExistExceptionRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_GetMaintenanceWindowExecutionTaskCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_GetMaintenanceWindowExecutionTaskCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_GetMaintenanceWindowExecutionTaskResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_GetMaintenanceWindowExecutionTaskCommand = de_GetMaintenanceWindowExecutionTaskCommand; -const de_GetMaintenanceWindowExecutionTaskCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await de_DoesNotExistExceptionRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_GetMaintenanceWindowExecutionTaskInvocationCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_GetMaintenanceWindowExecutionTaskInvocationCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_GetMaintenanceWindowExecutionTaskInvocationResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_GetMaintenanceWindowExecutionTaskInvocationCommand = de_GetMaintenanceWindowExecutionTaskInvocationCommand; -const de_GetMaintenanceWindowExecutionTaskInvocationCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await de_DoesNotExistExceptionRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_GetMaintenanceWindowTaskCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_GetMaintenanceWindowTaskCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_GetMaintenanceWindowTaskResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_GetMaintenanceWindowTaskCommand = de_GetMaintenanceWindowTaskCommand; -const de_GetMaintenanceWindowTaskCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await de_DoesNotExistExceptionRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_GetOpsItemCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_GetOpsItemCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_GetOpsItemResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_GetOpsItemCommand = de_GetOpsItemCommand; -const de_GetOpsItemCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "OpsItemAccessDeniedException": - case "com.amazonaws.ssm#OpsItemAccessDeniedException": - throw await de_OpsItemAccessDeniedExceptionRes(parsedOutput, context); - case "OpsItemNotFoundException": - case "com.amazonaws.ssm#OpsItemNotFoundException": - throw await de_OpsItemNotFoundExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_GetOpsMetadataCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_GetOpsMetadataCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_GetOpsMetadataCommand = de_GetOpsMetadataCommand; -const de_GetOpsMetadataCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "OpsMetadataInvalidArgumentException": - case "com.amazonaws.ssm#OpsMetadataInvalidArgumentException": - throw await de_OpsMetadataInvalidArgumentExceptionRes(parsedOutput, context); - case "OpsMetadataNotFoundException": - case "com.amazonaws.ssm#OpsMetadataNotFoundException": - throw await de_OpsMetadataNotFoundExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_GetOpsSummaryCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_GetOpsSummaryCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_GetOpsSummaryCommand = de_GetOpsSummaryCommand; -const de_GetOpsSummaryCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidAggregatorException": - case "com.amazonaws.ssm#InvalidAggregatorException": - throw await de_InvalidAggregatorExceptionRes(parsedOutput, context); - case "InvalidFilter": - case "com.amazonaws.ssm#InvalidFilter": - throw await de_InvalidFilterRes(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await de_InvalidNextTokenRes(parsedOutput, context); - case "InvalidTypeNameException": - case "com.amazonaws.ssm#InvalidTypeNameException": - throw await de_InvalidTypeNameExceptionRes(parsedOutput, context); - case "ResourceDataSyncNotFoundException": - case "com.amazonaws.ssm#ResourceDataSyncNotFoundException": - throw await de_ResourceDataSyncNotFoundExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_GetParameterCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_GetParameterCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_GetParameterResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_GetParameterCommand = de_GetParameterCommand; -const de_GetParameterCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidKeyId": - case "com.amazonaws.ssm#InvalidKeyId": - throw await de_InvalidKeyIdRes(parsedOutput, context); - case "ParameterNotFound": - case "com.amazonaws.ssm#ParameterNotFound": - throw await de_ParameterNotFoundRes(parsedOutput, context); - case "ParameterVersionNotFound": - case "com.amazonaws.ssm#ParameterVersionNotFound": - throw await de_ParameterVersionNotFoundRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_GetParameterHistoryCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_GetParameterHistoryCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_GetParameterHistoryResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_GetParameterHistoryCommand = de_GetParameterHistoryCommand; -const de_GetParameterHistoryCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidKeyId": - case "com.amazonaws.ssm#InvalidKeyId": - throw await de_InvalidKeyIdRes(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await de_InvalidNextTokenRes(parsedOutput, context); - case "ParameterNotFound": - case "com.amazonaws.ssm#ParameterNotFound": - throw await de_ParameterNotFoundRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_GetParametersCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_GetParametersCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_GetParametersResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_GetParametersCommand = de_GetParametersCommand; -const de_GetParametersCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidKeyId": - case "com.amazonaws.ssm#InvalidKeyId": - throw await de_InvalidKeyIdRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_GetParametersByPathCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_GetParametersByPathCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_GetParametersByPathResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_GetParametersByPathCommand = de_GetParametersByPathCommand; -const de_GetParametersByPathCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidFilterKey": - case "com.amazonaws.ssm#InvalidFilterKey": - throw await de_InvalidFilterKeyRes(parsedOutput, context); - case "InvalidFilterOption": - case "com.amazonaws.ssm#InvalidFilterOption": - throw await de_InvalidFilterOptionRes(parsedOutput, context); - case "InvalidFilterValue": - case "com.amazonaws.ssm#InvalidFilterValue": - throw await de_InvalidFilterValueRes(parsedOutput, context); - case "InvalidKeyId": - case "com.amazonaws.ssm#InvalidKeyId": - throw await de_InvalidKeyIdRes(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await de_InvalidNextTokenRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_GetPatchBaselineCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_GetPatchBaselineCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_GetPatchBaselineResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_GetPatchBaselineCommand = de_GetPatchBaselineCommand; -const de_GetPatchBaselineCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await de_DoesNotExistExceptionRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidResourceId": - case "com.amazonaws.ssm#InvalidResourceId": - throw await de_InvalidResourceIdRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_GetPatchBaselineForPatchGroupCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_GetPatchBaselineForPatchGroupCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_GetPatchBaselineForPatchGroupCommand = de_GetPatchBaselineForPatchGroupCommand; -const de_GetPatchBaselineForPatchGroupCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_GetResourcePoliciesCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_GetResourcePoliciesCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_GetResourcePoliciesCommand = de_GetResourcePoliciesCommand; -const de_GetResourcePoliciesCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "ResourcePolicyInvalidParameterException": - case "com.amazonaws.ssm#ResourcePolicyInvalidParameterException": - throw await de_ResourcePolicyInvalidParameterExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_GetServiceSettingCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_GetServiceSettingCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_GetServiceSettingResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_GetServiceSettingCommand = de_GetServiceSettingCommand; -const de_GetServiceSettingCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "ServiceSettingNotFound": - case "com.amazonaws.ssm#ServiceSettingNotFound": - throw await de_ServiceSettingNotFoundRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_LabelParameterVersionCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_LabelParameterVersionCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_LabelParameterVersionCommand = de_LabelParameterVersionCommand; -const de_LabelParameterVersionCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "ParameterNotFound": - case "com.amazonaws.ssm#ParameterNotFound": - throw await de_ParameterNotFoundRes(parsedOutput, context); - case "ParameterVersionLabelLimitExceeded": - case "com.amazonaws.ssm#ParameterVersionLabelLimitExceeded": - throw await de_ParameterVersionLabelLimitExceededRes(parsedOutput, context); - case "ParameterVersionNotFound": - case "com.amazonaws.ssm#ParameterVersionNotFound": - throw await de_ParameterVersionNotFoundRes(parsedOutput, context); - case "TooManyUpdates": - case "com.amazonaws.ssm#TooManyUpdates": - throw await de_TooManyUpdatesRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_ListAssociationsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_ListAssociationsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_ListAssociationsResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_ListAssociationsCommand = de_ListAssociationsCommand; -const de_ListAssociationsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await de_InvalidNextTokenRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_ListAssociationVersionsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_ListAssociationVersionsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_ListAssociationVersionsResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_ListAssociationVersionsCommand = de_ListAssociationVersionsCommand; -const de_ListAssociationVersionsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AssociationDoesNotExist": - case "com.amazonaws.ssm#AssociationDoesNotExist": - throw await de_AssociationDoesNotExistRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await de_InvalidNextTokenRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_ListCommandInvocationsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_ListCommandInvocationsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_ListCommandInvocationsResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_ListCommandInvocationsCommand = de_ListCommandInvocationsCommand; -const de_ListCommandInvocationsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidCommandId": - case "com.amazonaws.ssm#InvalidCommandId": - throw await de_InvalidCommandIdRes(parsedOutput, context); - case "InvalidFilterKey": - case "com.amazonaws.ssm#InvalidFilterKey": - throw await de_InvalidFilterKeyRes(parsedOutput, context); - case "InvalidInstanceId": - case "com.amazonaws.ssm#InvalidInstanceId": - throw await de_InvalidInstanceIdRes(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await de_InvalidNextTokenRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_ListCommandsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_ListCommandsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_ListCommandsResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_ListCommandsCommand = de_ListCommandsCommand; -const de_ListCommandsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidCommandId": - case "com.amazonaws.ssm#InvalidCommandId": - throw await de_InvalidCommandIdRes(parsedOutput, context); - case "InvalidFilterKey": - case "com.amazonaws.ssm#InvalidFilterKey": - throw await de_InvalidFilterKeyRes(parsedOutput, context); - case "InvalidInstanceId": - case "com.amazonaws.ssm#InvalidInstanceId": - throw await de_InvalidInstanceIdRes(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await de_InvalidNextTokenRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_ListComplianceItemsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_ListComplianceItemsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_ListComplianceItemsResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_ListComplianceItemsCommand = de_ListComplianceItemsCommand; -const de_ListComplianceItemsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidFilter": - case "com.amazonaws.ssm#InvalidFilter": - throw await de_InvalidFilterRes(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await de_InvalidNextTokenRes(parsedOutput, context); - case "InvalidResourceId": - case "com.amazonaws.ssm#InvalidResourceId": - throw await de_InvalidResourceIdRes(parsedOutput, context); - case "InvalidResourceType": - case "com.amazonaws.ssm#InvalidResourceType": - throw await de_InvalidResourceTypeRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_ListComplianceSummariesCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_ListComplianceSummariesCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_ListComplianceSummariesCommand = de_ListComplianceSummariesCommand; -const de_ListComplianceSummariesCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidFilter": - case "com.amazonaws.ssm#InvalidFilter": - throw await de_InvalidFilterRes(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await de_InvalidNextTokenRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_ListDocumentMetadataHistoryCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_ListDocumentMetadataHistoryCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_ListDocumentMetadataHistoryResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_ListDocumentMetadataHistoryCommand = de_ListDocumentMetadataHistoryCommand; -const de_ListDocumentMetadataHistoryCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidDocument": - case "com.amazonaws.ssm#InvalidDocument": - throw await de_InvalidDocumentRes(parsedOutput, context); - case "InvalidDocumentVersion": - case "com.amazonaws.ssm#InvalidDocumentVersion": - throw await de_InvalidDocumentVersionRes(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await de_InvalidNextTokenRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_ListDocumentsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_ListDocumentsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_ListDocumentsResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_ListDocumentsCommand = de_ListDocumentsCommand; -const de_ListDocumentsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidFilterKey": - case "com.amazonaws.ssm#InvalidFilterKey": - throw await de_InvalidFilterKeyRes(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await de_InvalidNextTokenRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_ListDocumentVersionsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_ListDocumentVersionsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_ListDocumentVersionsResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_ListDocumentVersionsCommand = de_ListDocumentVersionsCommand; -const de_ListDocumentVersionsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidDocument": - case "com.amazonaws.ssm#InvalidDocument": - throw await de_InvalidDocumentRes(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await de_InvalidNextTokenRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_ListInventoryEntriesCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_ListInventoryEntriesCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_ListInventoryEntriesCommand = de_ListInventoryEntriesCommand; -const de_ListInventoryEntriesCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidFilter": - case "com.amazonaws.ssm#InvalidFilter": - throw await de_InvalidFilterRes(parsedOutput, context); - case "InvalidInstanceId": - case "com.amazonaws.ssm#InvalidInstanceId": - throw await de_InvalidInstanceIdRes(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await de_InvalidNextTokenRes(parsedOutput, context); - case "InvalidTypeNameException": - case "com.amazonaws.ssm#InvalidTypeNameException": - throw await de_InvalidTypeNameExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_ListOpsItemEventsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_ListOpsItemEventsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_ListOpsItemEventsResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_ListOpsItemEventsCommand = de_ListOpsItemEventsCommand; -const de_ListOpsItemEventsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "OpsItemInvalidParameterException": - case "com.amazonaws.ssm#OpsItemInvalidParameterException": - throw await de_OpsItemInvalidParameterExceptionRes(parsedOutput, context); - case "OpsItemLimitExceededException": - case "com.amazonaws.ssm#OpsItemLimitExceededException": - throw await de_OpsItemLimitExceededExceptionRes(parsedOutput, context); - case "OpsItemNotFoundException": - case "com.amazonaws.ssm#OpsItemNotFoundException": - throw await de_OpsItemNotFoundExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_ListOpsItemRelatedItemsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_ListOpsItemRelatedItemsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_ListOpsItemRelatedItemsResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_ListOpsItemRelatedItemsCommand = de_ListOpsItemRelatedItemsCommand; -const de_ListOpsItemRelatedItemsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "OpsItemInvalidParameterException": - case "com.amazonaws.ssm#OpsItemInvalidParameterException": - throw await de_OpsItemInvalidParameterExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_ListOpsMetadataCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_ListOpsMetadataCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_ListOpsMetadataResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_ListOpsMetadataCommand = de_ListOpsMetadataCommand; -const de_ListOpsMetadataCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "OpsMetadataInvalidArgumentException": - case "com.amazonaws.ssm#OpsMetadataInvalidArgumentException": - throw await de_OpsMetadataInvalidArgumentExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_ListResourceComplianceSummariesCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_ListResourceComplianceSummariesCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_ListResourceComplianceSummariesResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_ListResourceComplianceSummariesCommand = de_ListResourceComplianceSummariesCommand; -const de_ListResourceComplianceSummariesCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidFilter": - case "com.amazonaws.ssm#InvalidFilter": - throw await de_InvalidFilterRes(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await de_InvalidNextTokenRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_ListResourceDataSyncCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_ListResourceDataSyncCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_ListResourceDataSyncResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_ListResourceDataSyncCommand = de_ListResourceDataSyncCommand; -const de_ListResourceDataSyncCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await de_InvalidNextTokenRes(parsedOutput, context); - case "ResourceDataSyncInvalidConfigurationException": - case "com.amazonaws.ssm#ResourceDataSyncInvalidConfigurationException": - throw await de_ResourceDataSyncInvalidConfigurationExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_ListTagsForResourceCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_ListTagsForResourceCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_ListTagsForResourceCommand = de_ListTagsForResourceCommand; -const de_ListTagsForResourceCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidResourceId": - case "com.amazonaws.ssm#InvalidResourceId": - throw await de_InvalidResourceIdRes(parsedOutput, context); - case "InvalidResourceType": - case "com.amazonaws.ssm#InvalidResourceType": - throw await de_InvalidResourceTypeRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_ModifyDocumentPermissionCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_ModifyDocumentPermissionCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_ModifyDocumentPermissionCommand = de_ModifyDocumentPermissionCommand; -const de_ModifyDocumentPermissionCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DocumentLimitExceeded": - case "com.amazonaws.ssm#DocumentLimitExceeded": - throw await de_DocumentLimitExceededRes(parsedOutput, context); - case "DocumentPermissionLimit": - case "com.amazonaws.ssm#DocumentPermissionLimit": - throw await de_DocumentPermissionLimitRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidDocument": - case "com.amazonaws.ssm#InvalidDocument": - throw await de_InvalidDocumentRes(parsedOutput, context); - case "InvalidPermissionType": - case "com.amazonaws.ssm#InvalidPermissionType": - throw await de_InvalidPermissionTypeRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_PutComplianceItemsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_PutComplianceItemsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_PutComplianceItemsCommand = de_PutComplianceItemsCommand; -const de_PutComplianceItemsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "ComplianceTypeCountLimitExceededException": - case "com.amazonaws.ssm#ComplianceTypeCountLimitExceededException": - throw await de_ComplianceTypeCountLimitExceededExceptionRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidItemContentException": - case "com.amazonaws.ssm#InvalidItemContentException": - throw await de_InvalidItemContentExceptionRes(parsedOutput, context); - case "InvalidResourceId": - case "com.amazonaws.ssm#InvalidResourceId": - throw await de_InvalidResourceIdRes(parsedOutput, context); - case "InvalidResourceType": - case "com.amazonaws.ssm#InvalidResourceType": - throw await de_InvalidResourceTypeRes(parsedOutput, context); - case "ItemSizeLimitExceededException": - case "com.amazonaws.ssm#ItemSizeLimitExceededException": - throw await de_ItemSizeLimitExceededExceptionRes(parsedOutput, context); - case "TotalSizeLimitExceededException": - case "com.amazonaws.ssm#TotalSizeLimitExceededException": - throw await de_TotalSizeLimitExceededExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_PutInventoryCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_PutInventoryCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_PutInventoryCommand = de_PutInventoryCommand; -const de_PutInventoryCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "CustomSchemaCountLimitExceededException": - case "com.amazonaws.ssm#CustomSchemaCountLimitExceededException": - throw await de_CustomSchemaCountLimitExceededExceptionRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidInstanceId": - case "com.amazonaws.ssm#InvalidInstanceId": - throw await de_InvalidInstanceIdRes(parsedOutput, context); - case "InvalidInventoryItemContextException": - case "com.amazonaws.ssm#InvalidInventoryItemContextException": - throw await de_InvalidInventoryItemContextExceptionRes(parsedOutput, context); - case "InvalidItemContentException": - case "com.amazonaws.ssm#InvalidItemContentException": - throw await de_InvalidItemContentExceptionRes(parsedOutput, context); - case "InvalidTypeNameException": - case "com.amazonaws.ssm#InvalidTypeNameException": - throw await de_InvalidTypeNameExceptionRes(parsedOutput, context); - case "ItemContentMismatchException": - case "com.amazonaws.ssm#ItemContentMismatchException": - throw await de_ItemContentMismatchExceptionRes(parsedOutput, context); - case "ItemSizeLimitExceededException": - case "com.amazonaws.ssm#ItemSizeLimitExceededException": - throw await de_ItemSizeLimitExceededExceptionRes(parsedOutput, context); - case "SubTypeCountLimitExceededException": - case "com.amazonaws.ssm#SubTypeCountLimitExceededException": - throw await de_SubTypeCountLimitExceededExceptionRes(parsedOutput, context); - case "TotalSizeLimitExceededException": - case "com.amazonaws.ssm#TotalSizeLimitExceededException": - throw await de_TotalSizeLimitExceededExceptionRes(parsedOutput, context); - case "UnsupportedInventoryItemContextException": - case "com.amazonaws.ssm#UnsupportedInventoryItemContextException": - throw await de_UnsupportedInventoryItemContextExceptionRes(parsedOutput, context); - case "UnsupportedInventorySchemaVersionException": - case "com.amazonaws.ssm#UnsupportedInventorySchemaVersionException": - throw await de_UnsupportedInventorySchemaVersionExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_PutParameterCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_PutParameterCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_PutParameterCommand = de_PutParameterCommand; -const de_PutParameterCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "HierarchyLevelLimitExceededException": - case "com.amazonaws.ssm#HierarchyLevelLimitExceededException": - throw await de_HierarchyLevelLimitExceededExceptionRes(parsedOutput, context); - case "HierarchyTypeMismatchException": - case "com.amazonaws.ssm#HierarchyTypeMismatchException": - throw await de_HierarchyTypeMismatchExceptionRes(parsedOutput, context); - case "IncompatiblePolicyException": - case "com.amazonaws.ssm#IncompatiblePolicyException": - throw await de_IncompatiblePolicyExceptionRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidAllowedPatternException": - case "com.amazonaws.ssm#InvalidAllowedPatternException": - throw await de_InvalidAllowedPatternExceptionRes(parsedOutput, context); - case "InvalidKeyId": - case "com.amazonaws.ssm#InvalidKeyId": - throw await de_InvalidKeyIdRes(parsedOutput, context); - case "InvalidPolicyAttributeException": - case "com.amazonaws.ssm#InvalidPolicyAttributeException": - throw await de_InvalidPolicyAttributeExceptionRes(parsedOutput, context); - case "InvalidPolicyTypeException": - case "com.amazonaws.ssm#InvalidPolicyTypeException": - throw await de_InvalidPolicyTypeExceptionRes(parsedOutput, context); - case "ParameterAlreadyExists": - case "com.amazonaws.ssm#ParameterAlreadyExists": - throw await de_ParameterAlreadyExistsRes(parsedOutput, context); - case "ParameterLimitExceeded": - case "com.amazonaws.ssm#ParameterLimitExceeded": - throw await de_ParameterLimitExceededRes(parsedOutput, context); - case "ParameterMaxVersionLimitExceeded": - case "com.amazonaws.ssm#ParameterMaxVersionLimitExceeded": - throw await de_ParameterMaxVersionLimitExceededRes(parsedOutput, context); - case "ParameterPatternMismatchException": - case "com.amazonaws.ssm#ParameterPatternMismatchException": - throw await de_ParameterPatternMismatchExceptionRes(parsedOutput, context); - case "PoliciesLimitExceededException": - case "com.amazonaws.ssm#PoliciesLimitExceededException": - throw await de_PoliciesLimitExceededExceptionRes(parsedOutput, context); - case "TooManyUpdates": - case "com.amazonaws.ssm#TooManyUpdates": - throw await de_TooManyUpdatesRes(parsedOutput, context); - case "UnsupportedParameterType": - case "com.amazonaws.ssm#UnsupportedParameterType": - throw await de_UnsupportedParameterTypeRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_PutResourcePolicyCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_PutResourcePolicyCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_PutResourcePolicyCommand = de_PutResourcePolicyCommand; -const de_PutResourcePolicyCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "ResourcePolicyConflictException": - case "com.amazonaws.ssm#ResourcePolicyConflictException": - throw await de_ResourcePolicyConflictExceptionRes(parsedOutput, context); - case "ResourcePolicyInvalidParameterException": - case "com.amazonaws.ssm#ResourcePolicyInvalidParameterException": - throw await de_ResourcePolicyInvalidParameterExceptionRes(parsedOutput, context); - case "ResourcePolicyLimitExceededException": - case "com.amazonaws.ssm#ResourcePolicyLimitExceededException": - throw await de_ResourcePolicyLimitExceededExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_RegisterDefaultPatchBaselineCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_RegisterDefaultPatchBaselineCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_RegisterDefaultPatchBaselineCommand = de_RegisterDefaultPatchBaselineCommand; -const de_RegisterDefaultPatchBaselineCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await de_DoesNotExistExceptionRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidResourceId": - case "com.amazonaws.ssm#InvalidResourceId": - throw await de_InvalidResourceIdRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_RegisterPatchBaselineForPatchGroupCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_RegisterPatchBaselineForPatchGroupCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_RegisterPatchBaselineForPatchGroupCommand = de_RegisterPatchBaselineForPatchGroupCommand; -const de_RegisterPatchBaselineForPatchGroupCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AlreadyExistsException": - case "com.amazonaws.ssm#AlreadyExistsException": - throw await de_AlreadyExistsExceptionRes(parsedOutput, context); - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await de_DoesNotExistExceptionRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidResourceId": - case "com.amazonaws.ssm#InvalidResourceId": - throw await de_InvalidResourceIdRes(parsedOutput, context); - case "ResourceLimitExceededException": - case "com.amazonaws.ssm#ResourceLimitExceededException": - throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_RegisterTargetWithMaintenanceWindowCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_RegisterTargetWithMaintenanceWindowCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_RegisterTargetWithMaintenanceWindowCommand = de_RegisterTargetWithMaintenanceWindowCommand; -const de_RegisterTargetWithMaintenanceWindowCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await de_DoesNotExistExceptionRes(parsedOutput, context); - case "IdempotentParameterMismatch": - case "com.amazonaws.ssm#IdempotentParameterMismatch": - throw await de_IdempotentParameterMismatchRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "ResourceLimitExceededException": - case "com.amazonaws.ssm#ResourceLimitExceededException": - throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_RegisterTaskWithMaintenanceWindowCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_RegisterTaskWithMaintenanceWindowCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_RegisterTaskWithMaintenanceWindowCommand = de_RegisterTaskWithMaintenanceWindowCommand; -const de_RegisterTaskWithMaintenanceWindowCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await de_DoesNotExistExceptionRes(parsedOutput, context); - case "FeatureNotAvailableException": - case "com.amazonaws.ssm#FeatureNotAvailableException": - throw await de_FeatureNotAvailableExceptionRes(parsedOutput, context); - case "IdempotentParameterMismatch": - case "com.amazonaws.ssm#IdempotentParameterMismatch": - throw await de_IdempotentParameterMismatchRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "ResourceLimitExceededException": - case "com.amazonaws.ssm#ResourceLimitExceededException": - throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_RemoveTagsFromResourceCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_RemoveTagsFromResourceCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_RemoveTagsFromResourceCommand = de_RemoveTagsFromResourceCommand; -const de_RemoveTagsFromResourceCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidResourceId": - case "com.amazonaws.ssm#InvalidResourceId": - throw await de_InvalidResourceIdRes(parsedOutput, context); - case "InvalidResourceType": - case "com.amazonaws.ssm#InvalidResourceType": - throw await de_InvalidResourceTypeRes(parsedOutput, context); - case "TooManyUpdates": - case "com.amazonaws.ssm#TooManyUpdates": - throw await de_TooManyUpdatesRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_ResetServiceSettingCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_ResetServiceSettingCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_ResetServiceSettingResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_ResetServiceSettingCommand = de_ResetServiceSettingCommand; -const de_ResetServiceSettingCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "ServiceSettingNotFound": - case "com.amazonaws.ssm#ServiceSettingNotFound": - throw await de_ServiceSettingNotFoundRes(parsedOutput, context); - case "TooManyUpdates": - case "com.amazonaws.ssm#TooManyUpdates": - throw await de_TooManyUpdatesRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_ResumeSessionCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_ResumeSessionCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_ResumeSessionCommand = de_ResumeSessionCommand; -const de_ResumeSessionCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await de_DoesNotExistExceptionRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_SendAutomationSignalCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_SendAutomationSignalCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_SendAutomationSignalCommand = de_SendAutomationSignalCommand; -const de_SendAutomationSignalCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AutomationExecutionNotFoundException": - case "com.amazonaws.ssm#AutomationExecutionNotFoundException": - throw await de_AutomationExecutionNotFoundExceptionRes(parsedOutput, context); - case "AutomationStepNotFoundException": - case "com.amazonaws.ssm#AutomationStepNotFoundException": - throw await de_AutomationStepNotFoundExceptionRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidAutomationSignalException": - case "com.amazonaws.ssm#InvalidAutomationSignalException": - throw await de_InvalidAutomationSignalExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_SendCommandCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_SendCommandCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_SendCommandResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_SendCommandCommand = de_SendCommandCommand; -const de_SendCommandCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DuplicateInstanceId": - case "com.amazonaws.ssm#DuplicateInstanceId": - throw await de_DuplicateInstanceIdRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidDocument": - case "com.amazonaws.ssm#InvalidDocument": - throw await de_InvalidDocumentRes(parsedOutput, context); - case "InvalidDocumentVersion": - case "com.amazonaws.ssm#InvalidDocumentVersion": - throw await de_InvalidDocumentVersionRes(parsedOutput, context); - case "InvalidInstanceId": - case "com.amazonaws.ssm#InvalidInstanceId": - throw await de_InvalidInstanceIdRes(parsedOutput, context); - case "InvalidNotificationConfig": - case "com.amazonaws.ssm#InvalidNotificationConfig": - throw await de_InvalidNotificationConfigRes(parsedOutput, context); - case "InvalidOutputFolder": - case "com.amazonaws.ssm#InvalidOutputFolder": - throw await de_InvalidOutputFolderRes(parsedOutput, context); - case "InvalidParameters": - case "com.amazonaws.ssm#InvalidParameters": - throw await de_InvalidParametersRes(parsedOutput, context); - case "InvalidRole": - case "com.amazonaws.ssm#InvalidRole": - throw await de_InvalidRoleRes(parsedOutput, context); - case "MaxDocumentSizeExceeded": - case "com.amazonaws.ssm#MaxDocumentSizeExceeded": - throw await de_MaxDocumentSizeExceededRes(parsedOutput, context); - case "UnsupportedPlatformType": - case "com.amazonaws.ssm#UnsupportedPlatformType": - throw await de_UnsupportedPlatformTypeRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_StartAssociationsOnceCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_StartAssociationsOnceCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_StartAssociationsOnceCommand = de_StartAssociationsOnceCommand; -const de_StartAssociationsOnceCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AssociationDoesNotExist": - case "com.amazonaws.ssm#AssociationDoesNotExist": - throw await de_AssociationDoesNotExistRes(parsedOutput, context); - case "InvalidAssociation": - case "com.amazonaws.ssm#InvalidAssociation": - throw await de_InvalidAssociationRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_StartAutomationExecutionCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_StartAutomationExecutionCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_StartAutomationExecutionCommand = de_StartAutomationExecutionCommand; -const de_StartAutomationExecutionCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AutomationDefinitionNotFoundException": - case "com.amazonaws.ssm#AutomationDefinitionNotFoundException": - throw await de_AutomationDefinitionNotFoundExceptionRes(parsedOutput, context); - case "AutomationDefinitionVersionNotFoundException": - case "com.amazonaws.ssm#AutomationDefinitionVersionNotFoundException": - throw await de_AutomationDefinitionVersionNotFoundExceptionRes(parsedOutput, context); - case "AutomationExecutionLimitExceededException": - case "com.amazonaws.ssm#AutomationExecutionLimitExceededException": - throw await de_AutomationExecutionLimitExceededExceptionRes(parsedOutput, context); - case "IdempotentParameterMismatch": - case "com.amazonaws.ssm#IdempotentParameterMismatch": - throw await de_IdempotentParameterMismatchRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidAutomationExecutionParametersException": - case "com.amazonaws.ssm#InvalidAutomationExecutionParametersException": - throw await de_InvalidAutomationExecutionParametersExceptionRes(parsedOutput, context); - case "InvalidTarget": - case "com.amazonaws.ssm#InvalidTarget": - throw await de_InvalidTargetRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_StartChangeRequestExecutionCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_StartChangeRequestExecutionCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_StartChangeRequestExecutionCommand = de_StartChangeRequestExecutionCommand; -const de_StartChangeRequestExecutionCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AutomationDefinitionNotApprovedException": - case "com.amazonaws.ssm#AutomationDefinitionNotApprovedException": - throw await de_AutomationDefinitionNotApprovedExceptionRes(parsedOutput, context); - case "AutomationDefinitionNotFoundException": - case "com.amazonaws.ssm#AutomationDefinitionNotFoundException": - throw await de_AutomationDefinitionNotFoundExceptionRes(parsedOutput, context); - case "AutomationDefinitionVersionNotFoundException": - case "com.amazonaws.ssm#AutomationDefinitionVersionNotFoundException": - throw await de_AutomationDefinitionVersionNotFoundExceptionRes(parsedOutput, context); - case "AutomationExecutionLimitExceededException": - case "com.amazonaws.ssm#AutomationExecutionLimitExceededException": - throw await de_AutomationExecutionLimitExceededExceptionRes(parsedOutput, context); - case "IdempotentParameterMismatch": - case "com.amazonaws.ssm#IdempotentParameterMismatch": - throw await de_IdempotentParameterMismatchRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidAutomationExecutionParametersException": - case "com.amazonaws.ssm#InvalidAutomationExecutionParametersException": - throw await de_InvalidAutomationExecutionParametersExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_StartSessionCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_StartSessionCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_StartSessionCommand = de_StartSessionCommand; -const de_StartSessionCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidDocument": - case "com.amazonaws.ssm#InvalidDocument": - throw await de_InvalidDocumentRes(parsedOutput, context); - case "TargetNotConnected": - case "com.amazonaws.ssm#TargetNotConnected": - throw await de_TargetNotConnectedRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_StopAutomationExecutionCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_StopAutomationExecutionCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_StopAutomationExecutionCommand = de_StopAutomationExecutionCommand; -const de_StopAutomationExecutionCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AutomationExecutionNotFoundException": - case "com.amazonaws.ssm#AutomationExecutionNotFoundException": - throw await de_AutomationExecutionNotFoundExceptionRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidAutomationStatusUpdateException": - case "com.amazonaws.ssm#InvalidAutomationStatusUpdateException": - throw await de_InvalidAutomationStatusUpdateExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_TerminateSessionCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_TerminateSessionCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_TerminateSessionCommand = de_TerminateSessionCommand; -const de_TerminateSessionCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_UnlabelParameterVersionCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_UnlabelParameterVersionCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_UnlabelParameterVersionCommand = de_UnlabelParameterVersionCommand; -const de_UnlabelParameterVersionCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "ParameterNotFound": - case "com.amazonaws.ssm#ParameterNotFound": - throw await de_ParameterNotFoundRes(parsedOutput, context); - case "ParameterVersionNotFound": - case "com.amazonaws.ssm#ParameterVersionNotFound": - throw await de_ParameterVersionNotFoundRes(parsedOutput, context); - case "TooManyUpdates": - case "com.amazonaws.ssm#TooManyUpdates": - throw await de_TooManyUpdatesRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_UpdateAssociationCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_UpdateAssociationCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_UpdateAssociationResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_UpdateAssociationCommand = de_UpdateAssociationCommand; -const de_UpdateAssociationCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AssociationDoesNotExist": - case "com.amazonaws.ssm#AssociationDoesNotExist": - throw await de_AssociationDoesNotExistRes(parsedOutput, context); - case "AssociationVersionLimitExceeded": - case "com.amazonaws.ssm#AssociationVersionLimitExceeded": - throw await de_AssociationVersionLimitExceededRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidAssociationVersion": - case "com.amazonaws.ssm#InvalidAssociationVersion": - throw await de_InvalidAssociationVersionRes(parsedOutput, context); - case "InvalidDocument": - case "com.amazonaws.ssm#InvalidDocument": - throw await de_InvalidDocumentRes(parsedOutput, context); - case "InvalidDocumentVersion": - case "com.amazonaws.ssm#InvalidDocumentVersion": - throw await de_InvalidDocumentVersionRes(parsedOutput, context); - case "InvalidOutputLocation": - case "com.amazonaws.ssm#InvalidOutputLocation": - throw await de_InvalidOutputLocationRes(parsedOutput, context); - case "InvalidParameters": - case "com.amazonaws.ssm#InvalidParameters": - throw await de_InvalidParametersRes(parsedOutput, context); - case "InvalidSchedule": - case "com.amazonaws.ssm#InvalidSchedule": - throw await de_InvalidScheduleRes(parsedOutput, context); - case "InvalidTarget": - case "com.amazonaws.ssm#InvalidTarget": - throw await de_InvalidTargetRes(parsedOutput, context); - case "InvalidTargetMaps": - case "com.amazonaws.ssm#InvalidTargetMaps": - throw await de_InvalidTargetMapsRes(parsedOutput, context); - case "InvalidUpdate": - case "com.amazonaws.ssm#InvalidUpdate": - throw await de_InvalidUpdateRes(parsedOutput, context); - case "TooManyUpdates": - case "com.amazonaws.ssm#TooManyUpdates": - throw await de_TooManyUpdatesRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_UpdateAssociationStatusCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_UpdateAssociationStatusCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_UpdateAssociationStatusResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_UpdateAssociationStatusCommand = de_UpdateAssociationStatusCommand; -const de_UpdateAssociationStatusCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AssociationDoesNotExist": - case "com.amazonaws.ssm#AssociationDoesNotExist": - throw await de_AssociationDoesNotExistRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidDocument": - case "com.amazonaws.ssm#InvalidDocument": - throw await de_InvalidDocumentRes(parsedOutput, context); - case "InvalidInstanceId": - case "com.amazonaws.ssm#InvalidInstanceId": - throw await de_InvalidInstanceIdRes(parsedOutput, context); - case "StatusUnchanged": - case "com.amazonaws.ssm#StatusUnchanged": - throw await de_StatusUnchangedRes(parsedOutput, context); - case "TooManyUpdates": - case "com.amazonaws.ssm#TooManyUpdates": - throw await de_TooManyUpdatesRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_UpdateDocumentCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_UpdateDocumentCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_UpdateDocumentResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_UpdateDocumentCommand = de_UpdateDocumentCommand; -const de_UpdateDocumentCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DocumentVersionLimitExceeded": - case "com.amazonaws.ssm#DocumentVersionLimitExceeded": - throw await de_DocumentVersionLimitExceededRes(parsedOutput, context); - case "DuplicateDocumentContent": - case "com.amazonaws.ssm#DuplicateDocumentContent": - throw await de_DuplicateDocumentContentRes(parsedOutput, context); - case "DuplicateDocumentVersionName": - case "com.amazonaws.ssm#DuplicateDocumentVersionName": - throw await de_DuplicateDocumentVersionNameRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidDocument": - case "com.amazonaws.ssm#InvalidDocument": - throw await de_InvalidDocumentRes(parsedOutput, context); - case "InvalidDocumentContent": - case "com.amazonaws.ssm#InvalidDocumentContent": - throw await de_InvalidDocumentContentRes(parsedOutput, context); - case "InvalidDocumentOperation": - case "com.amazonaws.ssm#InvalidDocumentOperation": - throw await de_InvalidDocumentOperationRes(parsedOutput, context); - case "InvalidDocumentSchemaVersion": - case "com.amazonaws.ssm#InvalidDocumentSchemaVersion": - throw await de_InvalidDocumentSchemaVersionRes(parsedOutput, context); - case "InvalidDocumentVersion": - case "com.amazonaws.ssm#InvalidDocumentVersion": - throw await de_InvalidDocumentVersionRes(parsedOutput, context); - case "MaxDocumentSizeExceeded": - case "com.amazonaws.ssm#MaxDocumentSizeExceeded": - throw await de_MaxDocumentSizeExceededRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_UpdateDocumentDefaultVersionCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_UpdateDocumentDefaultVersionCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_UpdateDocumentDefaultVersionCommand = de_UpdateDocumentDefaultVersionCommand; -const de_UpdateDocumentDefaultVersionCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidDocument": - case "com.amazonaws.ssm#InvalidDocument": - throw await de_InvalidDocumentRes(parsedOutput, context); - case "InvalidDocumentSchemaVersion": - case "com.amazonaws.ssm#InvalidDocumentSchemaVersion": - throw await de_InvalidDocumentSchemaVersionRes(parsedOutput, context); - case "InvalidDocumentVersion": - case "com.amazonaws.ssm#InvalidDocumentVersion": - throw await de_InvalidDocumentVersionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_UpdateDocumentMetadataCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_UpdateDocumentMetadataCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_UpdateDocumentMetadataCommand = de_UpdateDocumentMetadataCommand; -const de_UpdateDocumentMetadataCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidDocument": - case "com.amazonaws.ssm#InvalidDocument": - throw await de_InvalidDocumentRes(parsedOutput, context); - case "InvalidDocumentOperation": - case "com.amazonaws.ssm#InvalidDocumentOperation": - throw await de_InvalidDocumentOperationRes(parsedOutput, context); - case "InvalidDocumentVersion": - case "com.amazonaws.ssm#InvalidDocumentVersion": - throw await de_InvalidDocumentVersionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_UpdateMaintenanceWindowCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_UpdateMaintenanceWindowCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_UpdateMaintenanceWindowCommand = de_UpdateMaintenanceWindowCommand; -const de_UpdateMaintenanceWindowCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await de_DoesNotExistExceptionRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_UpdateMaintenanceWindowTargetCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_UpdateMaintenanceWindowTargetCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_UpdateMaintenanceWindowTargetCommand = de_UpdateMaintenanceWindowTargetCommand; -const de_UpdateMaintenanceWindowTargetCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await de_DoesNotExistExceptionRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_UpdateMaintenanceWindowTaskCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_UpdateMaintenanceWindowTaskCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_UpdateMaintenanceWindowTaskResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_UpdateMaintenanceWindowTaskCommand = de_UpdateMaintenanceWindowTaskCommand; -const de_UpdateMaintenanceWindowTaskCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await de_DoesNotExistExceptionRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_UpdateManagedInstanceRoleCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_UpdateManagedInstanceRoleCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_UpdateManagedInstanceRoleCommand = de_UpdateManagedInstanceRoleCommand; -const de_UpdateManagedInstanceRoleCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidInstanceId": - case "com.amazonaws.ssm#InvalidInstanceId": - throw await de_InvalidInstanceIdRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_UpdateOpsItemCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_UpdateOpsItemCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_UpdateOpsItemCommand = de_UpdateOpsItemCommand; -const de_UpdateOpsItemCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "OpsItemAccessDeniedException": - case "com.amazonaws.ssm#OpsItemAccessDeniedException": - throw await de_OpsItemAccessDeniedExceptionRes(parsedOutput, context); - case "OpsItemAlreadyExistsException": - case "com.amazonaws.ssm#OpsItemAlreadyExistsException": - throw await de_OpsItemAlreadyExistsExceptionRes(parsedOutput, context); - case "OpsItemConflictException": - case "com.amazonaws.ssm#OpsItemConflictException": - throw await de_OpsItemConflictExceptionRes(parsedOutput, context); - case "OpsItemInvalidParameterException": - case "com.amazonaws.ssm#OpsItemInvalidParameterException": - throw await de_OpsItemInvalidParameterExceptionRes(parsedOutput, context); - case "OpsItemLimitExceededException": - case "com.amazonaws.ssm#OpsItemLimitExceededException": - throw await de_OpsItemLimitExceededExceptionRes(parsedOutput, context); - case "OpsItemNotFoundException": - case "com.amazonaws.ssm#OpsItemNotFoundException": - throw await de_OpsItemNotFoundExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_UpdateOpsMetadataCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_UpdateOpsMetadataCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_UpdateOpsMetadataCommand = de_UpdateOpsMetadataCommand; -const de_UpdateOpsMetadataCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "OpsMetadataInvalidArgumentException": - case "com.amazonaws.ssm#OpsMetadataInvalidArgumentException": - throw await de_OpsMetadataInvalidArgumentExceptionRes(parsedOutput, context); - case "OpsMetadataKeyLimitExceededException": - case "com.amazonaws.ssm#OpsMetadataKeyLimitExceededException": - throw await de_OpsMetadataKeyLimitExceededExceptionRes(parsedOutput, context); - case "OpsMetadataNotFoundException": - case "com.amazonaws.ssm#OpsMetadataNotFoundException": - throw await de_OpsMetadataNotFoundExceptionRes(parsedOutput, context); - case "OpsMetadataTooManyUpdatesException": - case "com.amazonaws.ssm#OpsMetadataTooManyUpdatesException": - throw await de_OpsMetadataTooManyUpdatesExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_UpdatePatchBaselineCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_UpdatePatchBaselineCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_UpdatePatchBaselineResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_UpdatePatchBaselineCommand = de_UpdatePatchBaselineCommand; -const de_UpdatePatchBaselineCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await de_DoesNotExistExceptionRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_UpdateResourceDataSyncCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_UpdateResourceDataSyncCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_UpdateResourceDataSyncCommand = de_UpdateResourceDataSyncCommand; -const de_UpdateResourceDataSyncCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "ResourceDataSyncConflictException": - case "com.amazonaws.ssm#ResourceDataSyncConflictException": - throw await de_ResourceDataSyncConflictExceptionRes(parsedOutput, context); - case "ResourceDataSyncInvalidConfigurationException": - case "com.amazonaws.ssm#ResourceDataSyncInvalidConfigurationException": - throw await de_ResourceDataSyncInvalidConfigurationExceptionRes(parsedOutput, context); - case "ResourceDataSyncNotFoundException": - case "com.amazonaws.ssm#ResourceDataSyncNotFoundException": - throw await de_ResourceDataSyncNotFoundExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_UpdateServiceSettingCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_UpdateServiceSettingCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = (0, smithy_client_1._json)(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_UpdateServiceSettingCommand = de_UpdateServiceSettingCommand; -const de_UpdateServiceSettingCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "ServiceSettingNotFound": - case "com.amazonaws.ssm#ServiceSettingNotFound": - throw await de_ServiceSettingNotFoundRes(parsedOutput, context); - case "TooManyUpdates": - case "com.amazonaws.ssm#TooManyUpdates": - throw await de_TooManyUpdatesRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_AlreadyExistsExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.AlreadyExistsException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_AssociatedInstancesRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.AssociatedInstances({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_AssociationAlreadyExistsRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.AssociationAlreadyExists({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_AssociationDoesNotExistRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.AssociationDoesNotExist({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_AssociationExecutionDoesNotExistRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.AssociationExecutionDoesNotExist({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_AssociationLimitExceededRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.AssociationLimitExceeded({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_AssociationVersionLimitExceededRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_2_1.AssociationVersionLimitExceeded({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_AutomationDefinitionNotApprovedExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_1_1.AutomationDefinitionNotApprovedException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_AutomationDefinitionNotFoundExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_1_1.AutomationDefinitionNotFoundException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_AutomationDefinitionVersionNotFoundExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_1_1.AutomationDefinitionVersionNotFoundException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_AutomationExecutionLimitExceededExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_1_1.AutomationExecutionLimitExceededException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_AutomationExecutionNotFoundExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.AutomationExecutionNotFoundException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_AutomationStepNotFoundExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_1_1.AutomationStepNotFoundException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_ComplianceTypeCountLimitExceededExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_1_1.ComplianceTypeCountLimitExceededException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_CustomSchemaCountLimitExceededExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_1_1.CustomSchemaCountLimitExceededException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_DocumentAlreadyExistsRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.DocumentAlreadyExists({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_DocumentLimitExceededRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.DocumentLimitExceeded({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_DocumentPermissionLimitRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_1_1.DocumentPermissionLimit({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_DocumentVersionLimitExceededRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_2_1.DocumentVersionLimitExceeded({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_DoesNotExistExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.DoesNotExistException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_DuplicateDocumentContentRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_2_1.DuplicateDocumentContent({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_DuplicateDocumentVersionNameRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_2_1.DuplicateDocumentVersionName({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_DuplicateInstanceIdRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.DuplicateInstanceId({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_FeatureNotAvailableExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_1_1.FeatureNotAvailableException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_HierarchyLevelLimitExceededExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_1_1.HierarchyLevelLimitExceededException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_HierarchyTypeMismatchExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_1_1.HierarchyTypeMismatchException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_IdempotentParameterMismatchRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.IdempotentParameterMismatch({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_IncompatiblePolicyExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_1_1.IncompatiblePolicyException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_InternalServerErrorRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.InternalServerError({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_InvalidActivationRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.InvalidActivation({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_InvalidActivationIdRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.InvalidActivationId({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_InvalidAggregatorExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_1_1.InvalidAggregatorException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_InvalidAllowedPatternExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_1_1.InvalidAllowedPatternException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_InvalidAssociationRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_1_1.InvalidAssociation({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_InvalidAssociationVersionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.InvalidAssociationVersion({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_InvalidAutomationExecutionParametersExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_1_1.InvalidAutomationExecutionParametersException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_InvalidAutomationSignalExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_1_1.InvalidAutomationSignalException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_InvalidAutomationStatusUpdateExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_1_1.InvalidAutomationStatusUpdateException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_InvalidCommandIdRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.InvalidCommandId({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_InvalidDeleteInventoryParametersExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.InvalidDeleteInventoryParametersException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_InvalidDeletionIdExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.InvalidDeletionIdException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_InvalidDocumentRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.InvalidDocument({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_InvalidDocumentContentRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.InvalidDocumentContent({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_InvalidDocumentOperationRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.InvalidDocumentOperation({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_InvalidDocumentSchemaVersionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.InvalidDocumentSchemaVersion({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_InvalidDocumentTypeRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_1_1.InvalidDocumentType({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_InvalidDocumentVersionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.InvalidDocumentVersion({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_InvalidFilterRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.InvalidFilter({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_InvalidFilterKeyRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.InvalidFilterKey({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_InvalidFilterOptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_1_1.InvalidFilterOption({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_InvalidFilterValueRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.InvalidFilterValue({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_InvalidInstanceIdRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.InvalidInstanceId({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_InvalidInstanceInformationFilterValueRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.InvalidInstanceInformationFilterValue({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_InvalidInventoryGroupExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_1_1.InvalidInventoryGroupException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_InvalidInventoryItemContextExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_1_1.InvalidInventoryItemContextException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_InvalidInventoryRequestExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.InvalidInventoryRequestException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_InvalidItemContentExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_1_1.InvalidItemContentException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_InvalidKeyIdRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_1_1.InvalidKeyId({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_InvalidNextTokenRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.InvalidNextToken({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_InvalidNotificationConfigRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_1_1.InvalidNotificationConfig({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_InvalidOptionExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.InvalidOptionException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_InvalidOutputFolderRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_1_1.InvalidOutputFolder({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_InvalidOutputLocationRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.InvalidOutputLocation({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_InvalidParametersRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.InvalidParameters({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_InvalidPermissionTypeRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.InvalidPermissionType({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_InvalidPluginNameRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_1_1.InvalidPluginName({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_InvalidPolicyAttributeExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_1_1.InvalidPolicyAttributeException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_InvalidPolicyTypeExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_1_1.InvalidPolicyTypeException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_InvalidResourceIdRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.InvalidResourceId({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_InvalidResourceTypeRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.InvalidResourceType({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_InvalidResultAttributeExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_1_1.InvalidResultAttributeException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_InvalidRoleRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_1_1.InvalidRole({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_InvalidScheduleRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.InvalidSchedule({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_InvalidTagRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.InvalidTag({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_InvalidTargetRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.InvalidTarget({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_InvalidTargetMapsRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.InvalidTargetMaps({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_InvalidTypeNameExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.InvalidTypeNameException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_InvalidUpdateRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_2_1.InvalidUpdate({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_InvocationDoesNotExistRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_1_1.InvocationDoesNotExist({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_ItemContentMismatchExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_1_1.ItemContentMismatchException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_ItemSizeLimitExceededExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_1_1.ItemSizeLimitExceededException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_MaxDocumentSizeExceededRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.MaxDocumentSizeExceeded({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_OpsItemAccessDeniedExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.OpsItemAccessDeniedException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_OpsItemAlreadyExistsExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.OpsItemAlreadyExistsException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_OpsItemConflictExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.OpsItemConflictException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_OpsItemInvalidParameterExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.OpsItemInvalidParameterException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_OpsItemLimitExceededExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.OpsItemLimitExceededException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_OpsItemNotFoundExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.OpsItemNotFoundException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_OpsItemRelatedItemAlreadyExistsExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.OpsItemRelatedItemAlreadyExistsException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_OpsItemRelatedItemAssociationNotFoundExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_1_1.OpsItemRelatedItemAssociationNotFoundException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_OpsMetadataAlreadyExistsExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.OpsMetadataAlreadyExistsException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_OpsMetadataInvalidArgumentExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.OpsMetadataInvalidArgumentException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_OpsMetadataKeyLimitExceededExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_2_1.OpsMetadataKeyLimitExceededException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_OpsMetadataLimitExceededExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.OpsMetadataLimitExceededException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_OpsMetadataNotFoundExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.OpsMetadataNotFoundException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_OpsMetadataTooManyUpdatesExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.OpsMetadataTooManyUpdatesException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_ParameterAlreadyExistsRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_1_1.ParameterAlreadyExists({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_ParameterLimitExceededRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_1_1.ParameterLimitExceeded({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_ParameterMaxVersionLimitExceededRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_1_1.ParameterMaxVersionLimitExceeded({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_ParameterNotFoundRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.ParameterNotFound({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_ParameterPatternMismatchExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_1_1.ParameterPatternMismatchException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_ParameterVersionLabelLimitExceededRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_1_1.ParameterVersionLabelLimitExceeded({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_ParameterVersionNotFoundRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_1_1.ParameterVersionNotFound({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_PoliciesLimitExceededExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_1_1.PoliciesLimitExceededException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_ResourceDataSyncAlreadyExistsExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.ResourceDataSyncAlreadyExistsException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_ResourceDataSyncConflictExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_2_1.ResourceDataSyncConflictException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_ResourceDataSyncCountExceededExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.ResourceDataSyncCountExceededException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_ResourceDataSyncInvalidConfigurationExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.ResourceDataSyncInvalidConfigurationException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_ResourceDataSyncNotFoundExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.ResourceDataSyncNotFoundException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_ResourceInUseExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.ResourceInUseException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_ResourceLimitExceededExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.ResourceLimitExceededException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_ResourcePolicyConflictExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.ResourcePolicyConflictException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_ResourcePolicyInvalidParameterExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.ResourcePolicyInvalidParameterException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_ResourcePolicyLimitExceededExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_1_1.ResourcePolicyLimitExceededException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_ServiceSettingNotFoundRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_1_1.ServiceSettingNotFound({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_StatusUnchangedRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_2_1.StatusUnchanged({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_SubTypeCountLimitExceededExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_1_1.SubTypeCountLimitExceededException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_TargetInUseExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.TargetInUseException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_TargetNotConnectedRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_1_1.TargetNotConnected({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_TooManyTagsErrorRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.TooManyTagsError({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_TooManyUpdatesRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.TooManyUpdates({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_TotalSizeLimitExceededExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_1_1.TotalSizeLimitExceededException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_UnsupportedCalendarExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_1_1.UnsupportedCalendarException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_UnsupportedFeatureRequiredExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_1_1.UnsupportedFeatureRequiredException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_UnsupportedInventoryItemContextExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_1_1.UnsupportedInventoryItemContextException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_UnsupportedInventorySchemaVersionExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_1_1.UnsupportedInventorySchemaVersionException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_UnsupportedOperatingSystemRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.UnsupportedOperatingSystem({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_UnsupportedParameterTypeRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_1_1.UnsupportedParameterType({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_UnsupportedPlatformTypeRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = (0, smithy_client_1._json)(body); - const exception = new models_0_1.UnsupportedPlatformType({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const se_AssociationStatus = (input, context) => { - return (0, smithy_client_1.take)(input, { - AdditionalInfo: [], - Date: (_) => Math.round(_.getTime() / 1000), - Message: [], - Name: [], - }); -}; -const se_ComplianceExecutionSummary = (input, context) => { - return (0, smithy_client_1.take)(input, { - ExecutionId: [], - ExecutionTime: (_) => Math.round(_.getTime() / 1000), - ExecutionType: [], - }); -}; -const se_CreateActivationRequest = (input, context) => { - return (0, smithy_client_1.take)(input, { - DefaultInstanceName: [], - Description: [], - ExpirationDate: (_) => Math.round(_.getTime() / 1000), - IamRole: [], - RegistrationLimit: [], - RegistrationMetadata: smithy_client_1._json, - Tags: smithy_client_1._json, - }); -}; -const se_CreateMaintenanceWindowRequest = (input, context) => { - return (0, smithy_client_1.take)(input, { - AllowUnassociatedTargets: [], - ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()], - Cutoff: [], - Description: [], - Duration: [], - EndDate: [], - Name: [], - Schedule: [], - ScheduleOffset: [], - ScheduleTimezone: [], - StartDate: [], - Tags: smithy_client_1._json, - }); -}; -const se_CreateOpsItemRequest = (input, context) => { - return (0, smithy_client_1.take)(input, { - AccountId: [], - ActualEndTime: (_) => Math.round(_.getTime() / 1000), - ActualStartTime: (_) => Math.round(_.getTime() / 1000), - Category: [], - Description: [], - Notifications: smithy_client_1._json, - OperationalData: smithy_client_1._json, - OpsItemType: [], - PlannedEndTime: (_) => Math.round(_.getTime() / 1000), - PlannedStartTime: (_) => Math.round(_.getTime() / 1000), - Priority: [], - RelatedOpsItems: smithy_client_1._json, - Severity: [], - Source: [], - Tags: smithy_client_1._json, - Title: [], - }); -}; -const se_CreatePatchBaselineRequest = (input, context) => { - return (0, smithy_client_1.take)(input, { - ApprovalRules: smithy_client_1._json, - ApprovedPatches: smithy_client_1._json, - ApprovedPatchesComplianceLevel: [], - ApprovedPatchesEnableNonSecurity: [], - ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()], - Description: [], - GlobalFilters: smithy_client_1._json, - Name: [], - OperatingSystem: [], - RejectedPatches: smithy_client_1._json, - RejectedPatchesAction: [], - Sources: smithy_client_1._json, - Tags: smithy_client_1._json, - }); -}; -const se_DeleteInventoryRequest = (input, context) => { - return (0, smithy_client_1.take)(input, { - ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()], - DryRun: [], - SchemaDeleteOption: [], - TypeName: [], - }); -}; -const se_GetInventoryRequest = (input, context) => { - return (0, smithy_client_1.take)(input, { - Aggregators: (_) => se_InventoryAggregatorList(_, context), - Filters: smithy_client_1._json, - MaxResults: [], - NextToken: [], - ResultAttributes: smithy_client_1._json, - }); -}; -const se_GetOpsSummaryRequest = (input, context) => { - return (0, smithy_client_1.take)(input, { - Aggregators: (_) => se_OpsAggregatorList(_, context), - Filters: smithy_client_1._json, - MaxResults: [], - NextToken: [], - ResultAttributes: smithy_client_1._json, - SyncName: [], - }); -}; -const se_InventoryAggregator = (input, context) => { - return (0, smithy_client_1.take)(input, { - Aggregators: (_) => se_InventoryAggregatorList(_, context), - Expression: [], - Groups: smithy_client_1._json, - }); -}; -const se_InventoryAggregatorList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return se_InventoryAggregator(entry, context); - }); -}; -const se_MaintenanceWindowLambdaParameters = (input, context) => { - return (0, smithy_client_1.take)(input, { - ClientContext: [], - Payload: context.base64Encoder, - Qualifier: [], - }); -}; -const se_MaintenanceWindowTaskInvocationParameters = (input, context) => { - return (0, smithy_client_1.take)(input, { - Automation: smithy_client_1._json, - Lambda: (_) => se_MaintenanceWindowLambdaParameters(_, context), - RunCommand: smithy_client_1._json, - StepFunctions: smithy_client_1._json, - }); -}; -const se_OpsAggregator = (input, context) => { - return (0, smithy_client_1.take)(input, { - AggregatorType: [], - Aggregators: (_) => se_OpsAggregatorList(_, context), - AttributeName: [], - Filters: smithy_client_1._json, - TypeName: [], - Values: smithy_client_1._json, - }); -}; -const se_OpsAggregatorList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return se_OpsAggregator(entry, context); - }); -}; -const se_PutComplianceItemsRequest = (input, context) => { - return (0, smithy_client_1.take)(input, { - ComplianceType: [], - ExecutionSummary: (_) => se_ComplianceExecutionSummary(_, context), - ItemContentHash: [], - Items: smithy_client_1._json, - ResourceId: [], - ResourceType: [], - UploadType: [], - }); -}; -const se_RegisterTargetWithMaintenanceWindowRequest = (input, context) => { - return (0, smithy_client_1.take)(input, { - ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()], - Description: [], - Name: [], - OwnerInformation: [], - ResourceType: [], - Targets: smithy_client_1._json, - WindowId: [], - }); -}; -const se_RegisterTaskWithMaintenanceWindowRequest = (input, context) => { - return (0, smithy_client_1.take)(input, { - AlarmConfiguration: smithy_client_1._json, - ClientToken: [true, (_) => _ ?? (0, uuid_1.v4)()], - CutoffBehavior: [], - Description: [], - LoggingInfo: smithy_client_1._json, - MaxConcurrency: [], - MaxErrors: [], - Name: [], - Priority: [], - ServiceRoleArn: [], - Targets: smithy_client_1._json, - TaskArn: [], - TaskInvocationParameters: (_) => se_MaintenanceWindowTaskInvocationParameters(_, context), - TaskParameters: smithy_client_1._json, - TaskType: [], - WindowId: [], - }); -}; -const se_StartChangeRequestExecutionRequest = (input, context) => { - return (0, smithy_client_1.take)(input, { - AutoApprove: [], - ChangeDetails: [], - ChangeRequestName: [], - ClientToken: [], - DocumentName: [], - DocumentVersion: [], - Parameters: smithy_client_1._json, - Runbooks: smithy_client_1._json, - ScheduledEndTime: (_) => Math.round(_.getTime() / 1000), - ScheduledTime: (_) => Math.round(_.getTime() / 1000), - Tags: smithy_client_1._json, - }); -}; -const se_UpdateAssociationStatusRequest = (input, context) => { - return (0, smithy_client_1.take)(input, { - AssociationStatus: (_) => se_AssociationStatus(_, context), - InstanceId: [], - Name: [], - }); -}; -const se_UpdateMaintenanceWindowTaskRequest = (input, context) => { - return (0, smithy_client_1.take)(input, { - AlarmConfiguration: smithy_client_1._json, - CutoffBehavior: [], - Description: [], - LoggingInfo: smithy_client_1._json, - MaxConcurrency: [], - MaxErrors: [], - Name: [], - Priority: [], - Replace: [], - ServiceRoleArn: [], - Targets: smithy_client_1._json, - TaskArn: [], - TaskInvocationParameters: (_) => se_MaintenanceWindowTaskInvocationParameters(_, context), - TaskParameters: smithy_client_1._json, - WindowId: [], - WindowTaskId: [], - }); -}; -const se_UpdateOpsItemRequest = (input, context) => { - return (0, smithy_client_1.take)(input, { - ActualEndTime: (_) => Math.round(_.getTime() / 1000), - ActualStartTime: (_) => Math.round(_.getTime() / 1000), - Category: [], - Description: [], - Notifications: smithy_client_1._json, - OperationalData: smithy_client_1._json, - OperationalDataToDelete: smithy_client_1._json, - OpsItemArn: [], - OpsItemId: [], - PlannedEndTime: (_) => Math.round(_.getTime() / 1000), - PlannedStartTime: (_) => Math.round(_.getTime() / 1000), - Priority: [], - RelatedOpsItems: smithy_client_1._json, - Severity: [], - Status: [], - Title: [], - }); -}; -const de_Activation = (output, context) => { - return (0, smithy_client_1.take)(output, { - ActivationId: smithy_client_1.expectString, - CreatedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - DefaultInstanceName: smithy_client_1.expectString, - Description: smithy_client_1.expectString, - ExpirationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - Expired: smithy_client_1.expectBoolean, - IamRole: smithy_client_1.expectString, - RegistrationLimit: smithy_client_1.expectInt32, - RegistrationsCount: smithy_client_1.expectInt32, - Tags: smithy_client_1._json, - }); -}; -const de_ActivationList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_Activation(entry, context); - }); - return retVal; -}; -const de_Association = (output, context) => { - return (0, smithy_client_1.take)(output, { - AssociationId: smithy_client_1.expectString, - AssociationName: smithy_client_1.expectString, - AssociationVersion: smithy_client_1.expectString, - DocumentVersion: smithy_client_1.expectString, - InstanceId: smithy_client_1.expectString, - LastExecutionDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - Name: smithy_client_1.expectString, - Overview: smithy_client_1._json, - ScheduleExpression: smithy_client_1.expectString, - ScheduleOffset: smithy_client_1.expectInt32, - TargetMaps: smithy_client_1._json, - Targets: smithy_client_1._json, - }); -}; -const de_AssociationDescription = (output, context) => { - return (0, smithy_client_1.take)(output, { - AlarmConfiguration: smithy_client_1._json, - ApplyOnlyAtCronInterval: smithy_client_1.expectBoolean, - AssociationId: smithy_client_1.expectString, - AssociationName: smithy_client_1.expectString, - AssociationVersion: smithy_client_1.expectString, - AutomationTargetParameterName: smithy_client_1.expectString, - CalendarNames: smithy_client_1._json, - ComplianceSeverity: smithy_client_1.expectString, - Date: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - DocumentVersion: smithy_client_1.expectString, - InstanceId: smithy_client_1.expectString, - LastExecutionDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - LastSuccessfulExecutionDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - LastUpdateAssociationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - MaxConcurrency: smithy_client_1.expectString, - MaxErrors: smithy_client_1.expectString, - Name: smithy_client_1.expectString, - OutputLocation: smithy_client_1._json, - Overview: smithy_client_1._json, - Parameters: smithy_client_1._json, - ScheduleExpression: smithy_client_1.expectString, - ScheduleOffset: smithy_client_1.expectInt32, - Status: (_) => de_AssociationStatus(_, context), - SyncCompliance: smithy_client_1.expectString, - TargetLocations: smithy_client_1._json, - TargetMaps: smithy_client_1._json, - Targets: smithy_client_1._json, - TriggeredAlarms: smithy_client_1._json, - }); -}; -const de_AssociationDescriptionList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_AssociationDescription(entry, context); - }); - return retVal; -}; -const de_AssociationExecution = (output, context) => { - return (0, smithy_client_1.take)(output, { - AlarmConfiguration: smithy_client_1._json, - AssociationId: smithy_client_1.expectString, - AssociationVersion: smithy_client_1.expectString, - CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - DetailedStatus: smithy_client_1.expectString, - ExecutionId: smithy_client_1.expectString, - LastExecutionDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - ResourceCountByStatus: smithy_client_1.expectString, - Status: smithy_client_1.expectString, - TriggeredAlarms: smithy_client_1._json, - }); -}; -const de_AssociationExecutionsList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_AssociationExecution(entry, context); - }); - return retVal; -}; -const de_AssociationExecutionTarget = (output, context) => { - return (0, smithy_client_1.take)(output, { - AssociationId: smithy_client_1.expectString, - AssociationVersion: smithy_client_1.expectString, - DetailedStatus: smithy_client_1.expectString, - ExecutionId: smithy_client_1.expectString, - LastExecutionDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - OutputSource: smithy_client_1._json, - ResourceId: smithy_client_1.expectString, - ResourceType: smithy_client_1.expectString, - Status: smithy_client_1.expectString, - }); -}; -const de_AssociationExecutionTargetsList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_AssociationExecutionTarget(entry, context); - }); - return retVal; -}; -const de_AssociationList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_Association(entry, context); - }); - return retVal; -}; -const de_AssociationStatus = (output, context) => { - return (0, smithy_client_1.take)(output, { - AdditionalInfo: smithy_client_1.expectString, - Date: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - Message: smithy_client_1.expectString, - Name: smithy_client_1.expectString, - }); -}; -const de_AssociationVersionInfo = (output, context) => { - return (0, smithy_client_1.take)(output, { - ApplyOnlyAtCronInterval: smithy_client_1.expectBoolean, - AssociationId: smithy_client_1.expectString, - AssociationName: smithy_client_1.expectString, - AssociationVersion: smithy_client_1.expectString, - CalendarNames: smithy_client_1._json, - ComplianceSeverity: smithy_client_1.expectString, - CreatedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - DocumentVersion: smithy_client_1.expectString, - MaxConcurrency: smithy_client_1.expectString, - MaxErrors: smithy_client_1.expectString, - Name: smithy_client_1.expectString, - OutputLocation: smithy_client_1._json, - Parameters: smithy_client_1._json, - ScheduleExpression: smithy_client_1.expectString, - ScheduleOffset: smithy_client_1.expectInt32, - SyncCompliance: smithy_client_1.expectString, - TargetLocations: smithy_client_1._json, - TargetMaps: smithy_client_1._json, - Targets: smithy_client_1._json, - }); -}; -const de_AssociationVersionList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_AssociationVersionInfo(entry, context); - }); - return retVal; -}; -const de_AutomationExecution = (output, context) => { - return (0, smithy_client_1.take)(output, { - AlarmConfiguration: smithy_client_1._json, - AssociationId: smithy_client_1.expectString, - AutomationExecutionId: smithy_client_1.expectString, - AutomationExecutionStatus: smithy_client_1.expectString, - AutomationSubtype: smithy_client_1.expectString, - ChangeRequestName: smithy_client_1.expectString, - CurrentAction: smithy_client_1.expectString, - CurrentStepName: smithy_client_1.expectString, - DocumentName: smithy_client_1.expectString, - DocumentVersion: smithy_client_1.expectString, - ExecutedBy: smithy_client_1.expectString, - ExecutionEndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - ExecutionStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - FailureMessage: smithy_client_1.expectString, - MaxConcurrency: smithy_client_1.expectString, - MaxErrors: smithy_client_1.expectString, - Mode: smithy_client_1.expectString, - OpsItemId: smithy_client_1.expectString, - Outputs: smithy_client_1._json, - Parameters: smithy_client_1._json, - ParentAutomationExecutionId: smithy_client_1.expectString, - ProgressCounters: smithy_client_1._json, - ResolvedTargets: smithy_client_1._json, - Runbooks: smithy_client_1._json, - ScheduledTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - StepExecutions: (_) => de_StepExecutionList(_, context), - StepExecutionsTruncated: smithy_client_1.expectBoolean, - Target: smithy_client_1.expectString, - TargetLocations: smithy_client_1._json, - TargetMaps: smithy_client_1._json, - TargetParameterName: smithy_client_1.expectString, - Targets: smithy_client_1._json, - TriggeredAlarms: smithy_client_1._json, - Variables: smithy_client_1._json, - }); -}; -const de_AutomationExecutionMetadata = (output, context) => { - return (0, smithy_client_1.take)(output, { - AlarmConfiguration: smithy_client_1._json, - AssociationId: smithy_client_1.expectString, - AutomationExecutionId: smithy_client_1.expectString, - AutomationExecutionStatus: smithy_client_1.expectString, - AutomationSubtype: smithy_client_1.expectString, - AutomationType: smithy_client_1.expectString, - ChangeRequestName: smithy_client_1.expectString, - CurrentAction: smithy_client_1.expectString, - CurrentStepName: smithy_client_1.expectString, - DocumentName: smithy_client_1.expectString, - DocumentVersion: smithy_client_1.expectString, - ExecutedBy: smithy_client_1.expectString, - ExecutionEndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - ExecutionStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - FailureMessage: smithy_client_1.expectString, - LogFile: smithy_client_1.expectString, - MaxConcurrency: smithy_client_1.expectString, - MaxErrors: smithy_client_1.expectString, - Mode: smithy_client_1.expectString, - OpsItemId: smithy_client_1.expectString, - Outputs: smithy_client_1._json, - ParentAutomationExecutionId: smithy_client_1.expectString, - ResolvedTargets: smithy_client_1._json, - Runbooks: smithy_client_1._json, - ScheduledTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - Target: smithy_client_1.expectString, - TargetMaps: smithy_client_1._json, - TargetParameterName: smithy_client_1.expectString, - Targets: smithy_client_1._json, - TriggeredAlarms: smithy_client_1._json, - }); -}; -const de_AutomationExecutionMetadataList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_AutomationExecutionMetadata(entry, context); - }); - return retVal; -}; -const de_Command = (output, context) => { - return (0, smithy_client_1.take)(output, { - AlarmConfiguration: smithy_client_1._json, - CloudWatchOutputConfig: smithy_client_1._json, - CommandId: smithy_client_1.expectString, - Comment: smithy_client_1.expectString, - CompletedCount: smithy_client_1.expectInt32, - DeliveryTimedOutCount: smithy_client_1.expectInt32, - DocumentName: smithy_client_1.expectString, - DocumentVersion: smithy_client_1.expectString, - ErrorCount: smithy_client_1.expectInt32, - ExpiresAfter: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - InstanceIds: smithy_client_1._json, - MaxConcurrency: smithy_client_1.expectString, - MaxErrors: smithy_client_1.expectString, - NotificationConfig: smithy_client_1._json, - OutputS3BucketName: smithy_client_1.expectString, - OutputS3KeyPrefix: smithy_client_1.expectString, - OutputS3Region: smithy_client_1.expectString, - Parameters: smithy_client_1._json, - RequestedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - ServiceRole: smithy_client_1.expectString, - Status: smithy_client_1.expectString, - StatusDetails: smithy_client_1.expectString, - TargetCount: smithy_client_1.expectInt32, - Targets: smithy_client_1._json, - TimeoutSeconds: smithy_client_1.expectInt32, - TriggeredAlarms: smithy_client_1._json, - }); -}; -const de_CommandInvocation = (output, context) => { - return (0, smithy_client_1.take)(output, { - CloudWatchOutputConfig: smithy_client_1._json, - CommandId: smithy_client_1.expectString, - CommandPlugins: (_) => de_CommandPluginList(_, context), - Comment: smithy_client_1.expectString, - DocumentName: smithy_client_1.expectString, - DocumentVersion: smithy_client_1.expectString, - InstanceId: smithy_client_1.expectString, - InstanceName: smithy_client_1.expectString, - NotificationConfig: smithy_client_1._json, - RequestedDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - ServiceRole: smithy_client_1.expectString, - StandardErrorUrl: smithy_client_1.expectString, - StandardOutputUrl: smithy_client_1.expectString, - Status: smithy_client_1.expectString, - StatusDetails: smithy_client_1.expectString, - TraceOutput: smithy_client_1.expectString, - }); -}; -const de_CommandInvocationList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_CommandInvocation(entry, context); - }); - return retVal; -}; -const de_CommandList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_Command(entry, context); - }); - return retVal; -}; -const de_CommandPlugin = (output, context) => { - return (0, smithy_client_1.take)(output, { - Name: smithy_client_1.expectString, - Output: smithy_client_1.expectString, - OutputS3BucketName: smithy_client_1.expectString, - OutputS3KeyPrefix: smithy_client_1.expectString, - OutputS3Region: smithy_client_1.expectString, - ResponseCode: smithy_client_1.expectInt32, - ResponseFinishDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - ResponseStartDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - StandardErrorUrl: smithy_client_1.expectString, - StandardOutputUrl: smithy_client_1.expectString, - Status: smithy_client_1.expectString, - StatusDetails: smithy_client_1.expectString, - }); -}; -const de_CommandPluginList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_CommandPlugin(entry, context); - }); - return retVal; -}; -const de_ComplianceExecutionSummary = (output, context) => { - return (0, smithy_client_1.take)(output, { - ExecutionId: smithy_client_1.expectString, - ExecutionTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - ExecutionType: smithy_client_1.expectString, - }); -}; -const de_ComplianceItem = (output, context) => { - return (0, smithy_client_1.take)(output, { - ComplianceType: smithy_client_1.expectString, - Details: smithy_client_1._json, - ExecutionSummary: (_) => de_ComplianceExecutionSummary(_, context), - Id: smithy_client_1.expectString, - ResourceId: smithy_client_1.expectString, - ResourceType: smithy_client_1.expectString, - Severity: smithy_client_1.expectString, - Status: smithy_client_1.expectString, - Title: smithy_client_1.expectString, - }); -}; -const de_ComplianceItemList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_ComplianceItem(entry, context); - }); - return retVal; -}; -const de_CreateAssociationBatchResult = (output, context) => { - return (0, smithy_client_1.take)(output, { - Failed: smithy_client_1._json, - Successful: (_) => de_AssociationDescriptionList(_, context), - }); -}; -const de_CreateAssociationResult = (output, context) => { - return (0, smithy_client_1.take)(output, { - AssociationDescription: (_) => de_AssociationDescription(_, context), - }); -}; -const de_CreateDocumentResult = (output, context) => { - return (0, smithy_client_1.take)(output, { - DocumentDescription: (_) => de_DocumentDescription(_, context), - }); -}; -const de_DescribeActivationsResult = (output, context) => { - return (0, smithy_client_1.take)(output, { - ActivationList: (_) => de_ActivationList(_, context), - NextToken: smithy_client_1.expectString, - }); -}; -const de_DescribeAssociationExecutionsResult = (output, context) => { - return (0, smithy_client_1.take)(output, { - AssociationExecutions: (_) => de_AssociationExecutionsList(_, context), - NextToken: smithy_client_1.expectString, - }); -}; -const de_DescribeAssociationExecutionTargetsResult = (output, context) => { - return (0, smithy_client_1.take)(output, { - AssociationExecutionTargets: (_) => de_AssociationExecutionTargetsList(_, context), - NextToken: smithy_client_1.expectString, - }); -}; -const de_DescribeAssociationResult = (output, context) => { - return (0, smithy_client_1.take)(output, { - AssociationDescription: (_) => de_AssociationDescription(_, context), - }); -}; -const de_DescribeAutomationExecutionsResult = (output, context) => { - return (0, smithy_client_1.take)(output, { - AutomationExecutionMetadataList: (_) => de_AutomationExecutionMetadataList(_, context), - NextToken: smithy_client_1.expectString, - }); -}; -const de_DescribeAutomationStepExecutionsResult = (output, context) => { - return (0, smithy_client_1.take)(output, { - NextToken: smithy_client_1.expectString, - StepExecutions: (_) => de_StepExecutionList(_, context), - }); -}; -const de_DescribeAvailablePatchesResult = (output, context) => { - return (0, smithy_client_1.take)(output, { - NextToken: smithy_client_1.expectString, - Patches: (_) => de_PatchList(_, context), - }); -}; -const de_DescribeDocumentResult = (output, context) => { - return (0, smithy_client_1.take)(output, { - Document: (_) => de_DocumentDescription(_, context), - }); -}; -const de_DescribeEffectivePatchesForPatchBaselineResult = (output, context) => { - return (0, smithy_client_1.take)(output, { - EffectivePatches: (_) => de_EffectivePatchList(_, context), - NextToken: smithy_client_1.expectString, - }); -}; -const de_DescribeInstanceAssociationsStatusResult = (output, context) => { - return (0, smithy_client_1.take)(output, { - InstanceAssociationStatusInfos: (_) => de_InstanceAssociationStatusInfos(_, context), - NextToken: smithy_client_1.expectString, - }); -}; -const de_DescribeInstanceInformationResult = (output, context) => { - return (0, smithy_client_1.take)(output, { - InstanceInformationList: (_) => de_InstanceInformationList(_, context), - NextToken: smithy_client_1.expectString, - }); -}; -const de_DescribeInstancePatchesResult = (output, context) => { - return (0, smithy_client_1.take)(output, { - NextToken: smithy_client_1.expectString, - Patches: (_) => de_PatchComplianceDataList(_, context), - }); -}; -const de_DescribeInstancePatchStatesForPatchGroupResult = (output, context) => { - return (0, smithy_client_1.take)(output, { - InstancePatchStates: (_) => de_InstancePatchStatesList(_, context), - NextToken: smithy_client_1.expectString, - }); -}; -const de_DescribeInstancePatchStatesResult = (output, context) => { - return (0, smithy_client_1.take)(output, { - InstancePatchStates: (_) => de_InstancePatchStateList(_, context), - NextToken: smithy_client_1.expectString, - }); -}; -const de_DescribeInventoryDeletionsResult = (output, context) => { - return (0, smithy_client_1.take)(output, { - InventoryDeletions: (_) => de_InventoryDeletionsList(_, context), - NextToken: smithy_client_1.expectString, - }); -}; -const de_DescribeMaintenanceWindowExecutionsResult = (output, context) => { - return (0, smithy_client_1.take)(output, { - NextToken: smithy_client_1.expectString, - WindowExecutions: (_) => de_MaintenanceWindowExecutionList(_, context), - }); -}; -const de_DescribeMaintenanceWindowExecutionTaskInvocationsResult = (output, context) => { - return (0, smithy_client_1.take)(output, { - NextToken: smithy_client_1.expectString, - WindowExecutionTaskInvocationIdentities: (_) => de_MaintenanceWindowExecutionTaskInvocationIdentityList(_, context), - }); -}; -const de_DescribeMaintenanceWindowExecutionTasksResult = (output, context) => { - return (0, smithy_client_1.take)(output, { - NextToken: smithy_client_1.expectString, - WindowExecutionTaskIdentities: (_) => de_MaintenanceWindowExecutionTaskIdentityList(_, context), - }); -}; -const de_DescribeOpsItemsResponse = (output, context) => { - return (0, smithy_client_1.take)(output, { - NextToken: smithy_client_1.expectString, - OpsItemSummaries: (_) => de_OpsItemSummaries(_, context), - }); -}; -const de_DescribeParametersResult = (output, context) => { - return (0, smithy_client_1.take)(output, { - NextToken: smithy_client_1.expectString, - Parameters: (_) => de_ParameterMetadataList(_, context), - }); -}; -const de_DescribeSessionsResponse = (output, context) => { - return (0, smithy_client_1.take)(output, { - NextToken: smithy_client_1.expectString, - Sessions: (_) => de_SessionList(_, context), - }); -}; -const de_DocumentDescription = (output, context) => { - return (0, smithy_client_1.take)(output, { - ApprovedVersion: smithy_client_1.expectString, - AttachmentsInformation: smithy_client_1._json, - Author: smithy_client_1.expectString, - Category: smithy_client_1._json, - CategoryEnum: smithy_client_1._json, - CreatedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - DefaultVersion: smithy_client_1.expectString, - Description: smithy_client_1.expectString, - DisplayName: smithy_client_1.expectString, - DocumentFormat: smithy_client_1.expectString, - DocumentType: smithy_client_1.expectString, - DocumentVersion: smithy_client_1.expectString, - Hash: smithy_client_1.expectString, - HashType: smithy_client_1.expectString, - LatestVersion: smithy_client_1.expectString, - Name: smithy_client_1.expectString, - Owner: smithy_client_1.expectString, - Parameters: smithy_client_1._json, - PendingReviewVersion: smithy_client_1.expectString, - PlatformTypes: smithy_client_1._json, - Requires: smithy_client_1._json, - ReviewInformation: (_) => de_ReviewInformationList(_, context), - ReviewStatus: smithy_client_1.expectString, - SchemaVersion: smithy_client_1.expectString, - Sha1: smithy_client_1.expectString, - Status: smithy_client_1.expectString, - StatusInformation: smithy_client_1.expectString, - Tags: smithy_client_1._json, - TargetType: smithy_client_1.expectString, - VersionName: smithy_client_1.expectString, - }); -}; -const de_DocumentIdentifier = (output, context) => { - return (0, smithy_client_1.take)(output, { - Author: smithy_client_1.expectString, - CreatedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - DisplayName: smithy_client_1.expectString, - DocumentFormat: smithy_client_1.expectString, - DocumentType: smithy_client_1.expectString, - DocumentVersion: smithy_client_1.expectString, - Name: smithy_client_1.expectString, - Owner: smithy_client_1.expectString, - PlatformTypes: smithy_client_1._json, - Requires: smithy_client_1._json, - ReviewStatus: smithy_client_1.expectString, - SchemaVersion: smithy_client_1.expectString, - Tags: smithy_client_1._json, - TargetType: smithy_client_1.expectString, - VersionName: smithy_client_1.expectString, - }); -}; -const de_DocumentIdentifierList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_DocumentIdentifier(entry, context); - }); - return retVal; -}; -const de_DocumentMetadataResponseInfo = (output, context) => { - return (0, smithy_client_1.take)(output, { - ReviewerResponse: (_) => de_DocumentReviewerResponseList(_, context), - }); -}; -const de_DocumentReviewerResponseList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_DocumentReviewerResponseSource(entry, context); - }); - return retVal; -}; -const de_DocumentReviewerResponseSource = (output, context) => { - return (0, smithy_client_1.take)(output, { - Comment: smithy_client_1._json, - CreateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - ReviewStatus: smithy_client_1.expectString, - Reviewer: smithy_client_1.expectString, - UpdatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - }); -}; -const de_DocumentVersionInfo = (output, context) => { - return (0, smithy_client_1.take)(output, { - CreatedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - DisplayName: smithy_client_1.expectString, - DocumentFormat: smithy_client_1.expectString, - DocumentVersion: smithy_client_1.expectString, - IsDefaultVersion: smithy_client_1.expectBoolean, - Name: smithy_client_1.expectString, - ReviewStatus: smithy_client_1.expectString, - Status: smithy_client_1.expectString, - StatusInformation: smithy_client_1.expectString, - VersionName: smithy_client_1.expectString, - }); -}; -const de_DocumentVersionList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_DocumentVersionInfo(entry, context); - }); - return retVal; -}; -const de_EffectivePatch = (output, context) => { - return (0, smithy_client_1.take)(output, { - Patch: (_) => de_Patch(_, context), - PatchStatus: (_) => de_PatchStatus(_, context), - }); -}; -const de_EffectivePatchList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_EffectivePatch(entry, context); - }); - return retVal; -}; -const de_GetAutomationExecutionResult = (output, context) => { - return (0, smithy_client_1.take)(output, { - AutomationExecution: (_) => de_AutomationExecution(_, context), - }); -}; -const de_GetDocumentResult = (output, context) => { - return (0, smithy_client_1.take)(output, { - AttachmentsContent: smithy_client_1._json, - Content: smithy_client_1.expectString, - CreatedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - DisplayName: smithy_client_1.expectString, - DocumentFormat: smithy_client_1.expectString, - DocumentType: smithy_client_1.expectString, - DocumentVersion: smithy_client_1.expectString, - Name: smithy_client_1.expectString, - Requires: smithy_client_1._json, - ReviewStatus: smithy_client_1.expectString, - Status: smithy_client_1.expectString, - StatusInformation: smithy_client_1.expectString, - VersionName: smithy_client_1.expectString, - }); -}; -const de_GetMaintenanceWindowExecutionResult = (output, context) => { - return (0, smithy_client_1.take)(output, { - EndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - Status: smithy_client_1.expectString, - StatusDetails: smithy_client_1.expectString, - TaskIds: smithy_client_1._json, - WindowExecutionId: smithy_client_1.expectString, - }); -}; -const de_GetMaintenanceWindowExecutionTaskInvocationResult = (output, context) => { - return (0, smithy_client_1.take)(output, { - EndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - ExecutionId: smithy_client_1.expectString, - InvocationId: smithy_client_1.expectString, - OwnerInformation: smithy_client_1.expectString, - Parameters: smithy_client_1.expectString, - StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - Status: smithy_client_1.expectString, - StatusDetails: smithy_client_1.expectString, - TaskExecutionId: smithy_client_1.expectString, - TaskType: smithy_client_1.expectString, - WindowExecutionId: smithy_client_1.expectString, - WindowTargetId: smithy_client_1.expectString, - }); -}; -const de_GetMaintenanceWindowExecutionTaskResult = (output, context) => { - return (0, smithy_client_1.take)(output, { - AlarmConfiguration: smithy_client_1._json, - EndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - MaxConcurrency: smithy_client_1.expectString, - MaxErrors: smithy_client_1.expectString, - Priority: smithy_client_1.expectInt32, - ServiceRole: smithy_client_1.expectString, - StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - Status: smithy_client_1.expectString, - StatusDetails: smithy_client_1.expectString, - TaskArn: smithy_client_1.expectString, - TaskExecutionId: smithy_client_1.expectString, - TaskParameters: smithy_client_1._json, - TriggeredAlarms: smithy_client_1._json, - Type: smithy_client_1.expectString, - WindowExecutionId: smithy_client_1.expectString, - }); -}; -const de_GetMaintenanceWindowResult = (output, context) => { - return (0, smithy_client_1.take)(output, { - AllowUnassociatedTargets: smithy_client_1.expectBoolean, - CreatedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - Cutoff: smithy_client_1.expectInt32, - Description: smithy_client_1.expectString, - Duration: smithy_client_1.expectInt32, - Enabled: smithy_client_1.expectBoolean, - EndDate: smithy_client_1.expectString, - ModifiedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - Name: smithy_client_1.expectString, - NextExecutionTime: smithy_client_1.expectString, - Schedule: smithy_client_1.expectString, - ScheduleOffset: smithy_client_1.expectInt32, - ScheduleTimezone: smithy_client_1.expectString, - StartDate: smithy_client_1.expectString, - WindowId: smithy_client_1.expectString, - }); -}; -const de_GetMaintenanceWindowTaskResult = (output, context) => { - return (0, smithy_client_1.take)(output, { - AlarmConfiguration: smithy_client_1._json, - CutoffBehavior: smithy_client_1.expectString, - Description: smithy_client_1.expectString, - LoggingInfo: smithy_client_1._json, - MaxConcurrency: smithy_client_1.expectString, - MaxErrors: smithy_client_1.expectString, - Name: smithy_client_1.expectString, - Priority: smithy_client_1.expectInt32, - ServiceRoleArn: smithy_client_1.expectString, - Targets: smithy_client_1._json, - TaskArn: smithy_client_1.expectString, - TaskInvocationParameters: (_) => de_MaintenanceWindowTaskInvocationParameters(_, context), - TaskParameters: smithy_client_1._json, - TaskType: smithy_client_1.expectString, - WindowId: smithy_client_1.expectString, - WindowTaskId: smithy_client_1.expectString, - }); -}; -const de_GetOpsItemResponse = (output, context) => { - return (0, smithy_client_1.take)(output, { - OpsItem: (_) => de_OpsItem(_, context), - }); -}; -const de_GetParameterHistoryResult = (output, context) => { - return (0, smithy_client_1.take)(output, { - NextToken: smithy_client_1.expectString, - Parameters: (_) => de_ParameterHistoryList(_, context), - }); -}; -const de_GetParameterResult = (output, context) => { - return (0, smithy_client_1.take)(output, { - Parameter: (_) => de_Parameter(_, context), - }); -}; -const de_GetParametersByPathResult = (output, context) => { - return (0, smithy_client_1.take)(output, { - NextToken: smithy_client_1.expectString, - Parameters: (_) => de_ParameterList(_, context), - }); -}; -const de_GetParametersResult = (output, context) => { - return (0, smithy_client_1.take)(output, { - InvalidParameters: smithy_client_1._json, - Parameters: (_) => de_ParameterList(_, context), - }); -}; -const de_GetPatchBaselineResult = (output, context) => { - return (0, smithy_client_1.take)(output, { - ApprovalRules: smithy_client_1._json, - ApprovedPatches: smithy_client_1._json, - ApprovedPatchesComplianceLevel: smithy_client_1.expectString, - ApprovedPatchesEnableNonSecurity: smithy_client_1.expectBoolean, - BaselineId: smithy_client_1.expectString, - CreatedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - Description: smithy_client_1.expectString, - GlobalFilters: smithy_client_1._json, - ModifiedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - Name: smithy_client_1.expectString, - OperatingSystem: smithy_client_1.expectString, - PatchGroups: smithy_client_1._json, - RejectedPatches: smithy_client_1._json, - RejectedPatchesAction: smithy_client_1.expectString, - Sources: smithy_client_1._json, - }); -}; -const de_GetServiceSettingResult = (output, context) => { - return (0, smithy_client_1.take)(output, { - ServiceSetting: (_) => de_ServiceSetting(_, context), - }); -}; -const de_InstanceAssociationStatusInfo = (output, context) => { - return (0, smithy_client_1.take)(output, { - AssociationId: smithy_client_1.expectString, - AssociationName: smithy_client_1.expectString, - AssociationVersion: smithy_client_1.expectString, - DetailedStatus: smithy_client_1.expectString, - DocumentVersion: smithy_client_1.expectString, - ErrorCode: smithy_client_1.expectString, - ExecutionDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - ExecutionSummary: smithy_client_1.expectString, - InstanceId: smithy_client_1.expectString, - Name: smithy_client_1.expectString, - OutputUrl: smithy_client_1._json, - Status: smithy_client_1.expectString, - }); -}; -const de_InstanceAssociationStatusInfos = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_InstanceAssociationStatusInfo(entry, context); - }); - return retVal; -}; -const de_InstanceInformation = (output, context) => { - return (0, smithy_client_1.take)(output, { - ActivationId: smithy_client_1.expectString, - AgentVersion: smithy_client_1.expectString, - AssociationOverview: smithy_client_1._json, - AssociationStatus: smithy_client_1.expectString, - ComputerName: smithy_client_1.expectString, - IPAddress: smithy_client_1.expectString, - IamRole: smithy_client_1.expectString, - InstanceId: smithy_client_1.expectString, - IsLatestVersion: smithy_client_1.expectBoolean, - LastAssociationExecutionDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - LastPingDateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - LastSuccessfulAssociationExecutionDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - Name: smithy_client_1.expectString, - PingStatus: smithy_client_1.expectString, - PlatformName: smithy_client_1.expectString, - PlatformType: smithy_client_1.expectString, - PlatformVersion: smithy_client_1.expectString, - RegistrationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - ResourceType: smithy_client_1.expectString, - SourceId: smithy_client_1.expectString, - SourceType: smithy_client_1.expectString, - }); -}; -const de_InstanceInformationList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_InstanceInformation(entry, context); - }); - return retVal; -}; -const de_InstancePatchState = (output, context) => { - return (0, smithy_client_1.take)(output, { - BaselineId: smithy_client_1.expectString, - CriticalNonCompliantCount: smithy_client_1.expectInt32, - FailedCount: smithy_client_1.expectInt32, - InstallOverrideList: smithy_client_1.expectString, - InstalledCount: smithy_client_1.expectInt32, - InstalledOtherCount: smithy_client_1.expectInt32, - InstalledPendingRebootCount: smithy_client_1.expectInt32, - InstalledRejectedCount: smithy_client_1.expectInt32, - InstanceId: smithy_client_1.expectString, - LastNoRebootInstallOperationTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - MissingCount: smithy_client_1.expectInt32, - NotApplicableCount: smithy_client_1.expectInt32, - Operation: smithy_client_1.expectString, - OperationEndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - OperationStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - OtherNonCompliantCount: smithy_client_1.expectInt32, - OwnerInformation: smithy_client_1.expectString, - PatchGroup: smithy_client_1.expectString, - RebootOption: smithy_client_1.expectString, - SecurityNonCompliantCount: smithy_client_1.expectInt32, - SnapshotId: smithy_client_1.expectString, - UnreportedNotApplicableCount: smithy_client_1.expectInt32, - }); -}; -const de_InstancePatchStateList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_InstancePatchState(entry, context); - }); - return retVal; -}; -const de_InstancePatchStatesList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_InstancePatchState(entry, context); - }); - return retVal; -}; -const de_InventoryDeletionsList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_InventoryDeletionStatusItem(entry, context); - }); - return retVal; -}; -const de_InventoryDeletionStatusItem = (output, context) => { - return (0, smithy_client_1.take)(output, { - DeletionId: smithy_client_1.expectString, - DeletionStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - DeletionSummary: smithy_client_1._json, - LastStatus: smithy_client_1.expectString, - LastStatusMessage: smithy_client_1.expectString, - LastStatusUpdateTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - TypeName: smithy_client_1.expectString, - }); -}; -const de_ListAssociationsResult = (output, context) => { - return (0, smithy_client_1.take)(output, { - Associations: (_) => de_AssociationList(_, context), - NextToken: smithy_client_1.expectString, - }); -}; -const de_ListAssociationVersionsResult = (output, context) => { - return (0, smithy_client_1.take)(output, { - AssociationVersions: (_) => de_AssociationVersionList(_, context), - NextToken: smithy_client_1.expectString, - }); -}; -const de_ListCommandInvocationsResult = (output, context) => { - return (0, smithy_client_1.take)(output, { - CommandInvocations: (_) => de_CommandInvocationList(_, context), - NextToken: smithy_client_1.expectString, - }); -}; -const de_ListCommandsResult = (output, context) => { - return (0, smithy_client_1.take)(output, { - Commands: (_) => de_CommandList(_, context), - NextToken: smithy_client_1.expectString, - }); -}; -const de_ListComplianceItemsResult = (output, context) => { - return (0, smithy_client_1.take)(output, { - ComplianceItems: (_) => de_ComplianceItemList(_, context), - NextToken: smithy_client_1.expectString, - }); -}; -const de_ListDocumentMetadataHistoryResponse = (output, context) => { - return (0, smithy_client_1.take)(output, { - Author: smithy_client_1.expectString, - DocumentVersion: smithy_client_1.expectString, - Metadata: (_) => de_DocumentMetadataResponseInfo(_, context), - Name: smithy_client_1.expectString, - NextToken: smithy_client_1.expectString, - }); -}; -const de_ListDocumentsResult = (output, context) => { - return (0, smithy_client_1.take)(output, { - DocumentIdentifiers: (_) => de_DocumentIdentifierList(_, context), - NextToken: smithy_client_1.expectString, - }); -}; -const de_ListDocumentVersionsResult = (output, context) => { - return (0, smithy_client_1.take)(output, { - DocumentVersions: (_) => de_DocumentVersionList(_, context), - NextToken: smithy_client_1.expectString, - }); -}; -const de_ListOpsItemEventsResponse = (output, context) => { - return (0, smithy_client_1.take)(output, { - NextToken: smithy_client_1.expectString, - Summaries: (_) => de_OpsItemEventSummaries(_, context), - }); -}; -const de_ListOpsItemRelatedItemsResponse = (output, context) => { - return (0, smithy_client_1.take)(output, { - NextToken: smithy_client_1.expectString, - Summaries: (_) => de_OpsItemRelatedItemSummaries(_, context), - }); -}; -const de_ListOpsMetadataResult = (output, context) => { - return (0, smithy_client_1.take)(output, { - NextToken: smithy_client_1.expectString, - OpsMetadataList: (_) => de_OpsMetadataList(_, context), - }); -}; -const de_ListResourceComplianceSummariesResult = (output, context) => { - return (0, smithy_client_1.take)(output, { - NextToken: smithy_client_1.expectString, - ResourceComplianceSummaryItems: (_) => de_ResourceComplianceSummaryItemList(_, context), - }); -}; -const de_ListResourceDataSyncResult = (output, context) => { - return (0, smithy_client_1.take)(output, { - NextToken: smithy_client_1.expectString, - ResourceDataSyncItems: (_) => de_ResourceDataSyncItemList(_, context), - }); -}; -const de_MaintenanceWindowExecution = (output, context) => { - return (0, smithy_client_1.take)(output, { - EndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - Status: smithy_client_1.expectString, - StatusDetails: smithy_client_1.expectString, - WindowExecutionId: smithy_client_1.expectString, - WindowId: smithy_client_1.expectString, - }); -}; -const de_MaintenanceWindowExecutionList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_MaintenanceWindowExecution(entry, context); - }); - return retVal; -}; -const de_MaintenanceWindowExecutionTaskIdentity = (output, context) => { - return (0, smithy_client_1.take)(output, { - AlarmConfiguration: smithy_client_1._json, - EndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - Status: smithy_client_1.expectString, - StatusDetails: smithy_client_1.expectString, - TaskArn: smithy_client_1.expectString, - TaskExecutionId: smithy_client_1.expectString, - TaskType: smithy_client_1.expectString, - TriggeredAlarms: smithy_client_1._json, - WindowExecutionId: smithy_client_1.expectString, - }); -}; -const de_MaintenanceWindowExecutionTaskIdentityList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_MaintenanceWindowExecutionTaskIdentity(entry, context); - }); - return retVal; -}; -const de_MaintenanceWindowExecutionTaskInvocationIdentity = (output, context) => { - return (0, smithy_client_1.take)(output, { - EndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - ExecutionId: smithy_client_1.expectString, - InvocationId: smithy_client_1.expectString, - OwnerInformation: smithy_client_1.expectString, - Parameters: smithy_client_1.expectString, - StartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - Status: smithy_client_1.expectString, - StatusDetails: smithy_client_1.expectString, - TaskExecutionId: smithy_client_1.expectString, - TaskType: smithy_client_1.expectString, - WindowExecutionId: smithy_client_1.expectString, - WindowTargetId: smithy_client_1.expectString, - }); -}; -const de_MaintenanceWindowExecutionTaskInvocationIdentityList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_MaintenanceWindowExecutionTaskInvocationIdentity(entry, context); - }); - return retVal; -}; -const de_MaintenanceWindowLambdaParameters = (output, context) => { - return (0, smithy_client_1.take)(output, { - ClientContext: smithy_client_1.expectString, - Payload: context.base64Decoder, - Qualifier: smithy_client_1.expectString, - }); -}; -const de_MaintenanceWindowTaskInvocationParameters = (output, context) => { - return (0, smithy_client_1.take)(output, { - Automation: smithy_client_1._json, - Lambda: (_) => de_MaintenanceWindowLambdaParameters(_, context), - RunCommand: smithy_client_1._json, - StepFunctions: smithy_client_1._json, - }); -}; -const de_OpsItem = (output, context) => { - return (0, smithy_client_1.take)(output, { - ActualEndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - ActualStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - Category: smithy_client_1.expectString, - CreatedBy: smithy_client_1.expectString, - CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - Description: smithy_client_1.expectString, - LastModifiedBy: smithy_client_1.expectString, - LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - Notifications: smithy_client_1._json, - OperationalData: smithy_client_1._json, - OpsItemArn: smithy_client_1.expectString, - OpsItemId: smithy_client_1.expectString, - OpsItemType: smithy_client_1.expectString, - PlannedEndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - PlannedStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - Priority: smithy_client_1.expectInt32, - RelatedOpsItems: smithy_client_1._json, - Severity: smithy_client_1.expectString, - Source: smithy_client_1.expectString, - Status: smithy_client_1.expectString, - Title: smithy_client_1.expectString, - Version: smithy_client_1.expectString, - }); -}; -const de_OpsItemEventSummaries = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_OpsItemEventSummary(entry, context); - }); - return retVal; -}; -const de_OpsItemEventSummary = (output, context) => { - return (0, smithy_client_1.take)(output, { - CreatedBy: smithy_client_1._json, - CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - Detail: smithy_client_1.expectString, - DetailType: smithy_client_1.expectString, - EventId: smithy_client_1.expectString, - OpsItemId: smithy_client_1.expectString, - Source: smithy_client_1.expectString, - }); -}; -const de_OpsItemRelatedItemSummaries = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_OpsItemRelatedItemSummary(entry, context); - }); - return retVal; -}; -const de_OpsItemRelatedItemSummary = (output, context) => { - return (0, smithy_client_1.take)(output, { - AssociationId: smithy_client_1.expectString, - AssociationType: smithy_client_1.expectString, - CreatedBy: smithy_client_1._json, - CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - LastModifiedBy: smithy_client_1._json, - LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - OpsItemId: smithy_client_1.expectString, - ResourceType: smithy_client_1.expectString, - ResourceUri: smithy_client_1.expectString, - }); -}; -const de_OpsItemSummaries = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_OpsItemSummary(entry, context); - }); - return retVal; -}; -const de_OpsItemSummary = (output, context) => { - return (0, smithy_client_1.take)(output, { - ActualEndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - ActualStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - Category: smithy_client_1.expectString, - CreatedBy: smithy_client_1.expectString, - CreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - LastModifiedBy: smithy_client_1.expectString, - LastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - OperationalData: smithy_client_1._json, - OpsItemId: smithy_client_1.expectString, - OpsItemType: smithy_client_1.expectString, - PlannedEndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - PlannedStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - Priority: smithy_client_1.expectInt32, - Severity: smithy_client_1.expectString, - Source: smithy_client_1.expectString, - Status: smithy_client_1.expectString, - Title: smithy_client_1.expectString, - }); -}; -const de_OpsMetadata = (output, context) => { - return (0, smithy_client_1.take)(output, { - CreationDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - LastModifiedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - LastModifiedUser: smithy_client_1.expectString, - OpsMetadataArn: smithy_client_1.expectString, - ResourceId: smithy_client_1.expectString, - }); -}; -const de_OpsMetadataList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_OpsMetadata(entry, context); - }); - return retVal; -}; -const de_Parameter = (output, context) => { - return (0, smithy_client_1.take)(output, { - ARN: smithy_client_1.expectString, - DataType: smithy_client_1.expectString, - LastModifiedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - Name: smithy_client_1.expectString, - Selector: smithy_client_1.expectString, - SourceResult: smithy_client_1.expectString, - Type: smithy_client_1.expectString, - Value: smithy_client_1.expectString, - Version: smithy_client_1.expectLong, - }); -}; -const de_ParameterHistory = (output, context) => { - return (0, smithy_client_1.take)(output, { - AllowedPattern: smithy_client_1.expectString, - DataType: smithy_client_1.expectString, - Description: smithy_client_1.expectString, - KeyId: smithy_client_1.expectString, - Labels: smithy_client_1._json, - LastModifiedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - LastModifiedUser: smithy_client_1.expectString, - Name: smithy_client_1.expectString, - Policies: smithy_client_1._json, - Tier: smithy_client_1.expectString, - Type: smithy_client_1.expectString, - Value: smithy_client_1.expectString, - Version: smithy_client_1.expectLong, - }); -}; -const de_ParameterHistoryList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_ParameterHistory(entry, context); - }); - return retVal; -}; -const de_ParameterList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_Parameter(entry, context); - }); - return retVal; -}; -const de_ParameterMetadata = (output, context) => { - return (0, smithy_client_1.take)(output, { - AllowedPattern: smithy_client_1.expectString, - DataType: smithy_client_1.expectString, - Description: smithy_client_1.expectString, - KeyId: smithy_client_1.expectString, - LastModifiedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - LastModifiedUser: smithy_client_1.expectString, - Name: smithy_client_1.expectString, - Policies: smithy_client_1._json, - Tier: smithy_client_1.expectString, - Type: smithy_client_1.expectString, - Version: smithy_client_1.expectLong, - }); -}; -const de_ParameterMetadataList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_ParameterMetadata(entry, context); - }); - return retVal; -}; -const de_Patch = (output, context) => { - return (0, smithy_client_1.take)(output, { - AdvisoryIds: smithy_client_1._json, - Arch: smithy_client_1.expectString, - BugzillaIds: smithy_client_1._json, - CVEIds: smithy_client_1._json, - Classification: smithy_client_1.expectString, - ContentUrl: smithy_client_1.expectString, - Description: smithy_client_1.expectString, - Epoch: smithy_client_1.expectInt32, - Id: smithy_client_1.expectString, - KbNumber: smithy_client_1.expectString, - Language: smithy_client_1.expectString, - MsrcNumber: smithy_client_1.expectString, - MsrcSeverity: smithy_client_1.expectString, - Name: smithy_client_1.expectString, - Product: smithy_client_1.expectString, - ProductFamily: smithy_client_1.expectString, - Release: smithy_client_1.expectString, - ReleaseDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - Repository: smithy_client_1.expectString, - Severity: smithy_client_1.expectString, - Title: smithy_client_1.expectString, - Vendor: smithy_client_1.expectString, - Version: smithy_client_1.expectString, - }); -}; -const de_PatchComplianceData = (output, context) => { - return (0, smithy_client_1.take)(output, { - CVEIds: smithy_client_1.expectString, - Classification: smithy_client_1.expectString, - InstalledTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - KBId: smithy_client_1.expectString, - Severity: smithy_client_1.expectString, - State: smithy_client_1.expectString, - Title: smithy_client_1.expectString, - }); -}; -const de_PatchComplianceDataList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_PatchComplianceData(entry, context); - }); - return retVal; -}; -const de_PatchList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_Patch(entry, context); - }); - return retVal; -}; -const de_PatchStatus = (output, context) => { - return (0, smithy_client_1.take)(output, { - ApprovalDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - ComplianceLevel: smithy_client_1.expectString, - DeploymentStatus: smithy_client_1.expectString, - }); -}; -const de_ResetServiceSettingResult = (output, context) => { - return (0, smithy_client_1.take)(output, { - ServiceSetting: (_) => de_ServiceSetting(_, context), - }); -}; -const de_ResourceComplianceSummaryItem = (output, context) => { - return (0, smithy_client_1.take)(output, { - ComplianceType: smithy_client_1.expectString, - CompliantSummary: smithy_client_1._json, - ExecutionSummary: (_) => de_ComplianceExecutionSummary(_, context), - NonCompliantSummary: smithy_client_1._json, - OverallSeverity: smithy_client_1.expectString, - ResourceId: smithy_client_1.expectString, - ResourceType: smithy_client_1.expectString, - Status: smithy_client_1.expectString, - }); -}; -const de_ResourceComplianceSummaryItemList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_ResourceComplianceSummaryItem(entry, context); - }); - return retVal; -}; -const de_ResourceDataSyncItem = (output, context) => { - return (0, smithy_client_1.take)(output, { - LastStatus: smithy_client_1.expectString, - LastSuccessfulSyncTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - LastSyncStatusMessage: smithy_client_1.expectString, - LastSyncTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - S3Destination: smithy_client_1._json, - SyncCreatedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - SyncLastModifiedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - SyncName: smithy_client_1.expectString, - SyncSource: smithy_client_1._json, - SyncType: smithy_client_1.expectString, - }); -}; -const de_ResourceDataSyncItemList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_ResourceDataSyncItem(entry, context); - }); - return retVal; -}; -const de_ReviewInformation = (output, context) => { - return (0, smithy_client_1.take)(output, { - ReviewedTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - Reviewer: smithy_client_1.expectString, - Status: smithy_client_1.expectString, - }); -}; -const de_ReviewInformationList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_ReviewInformation(entry, context); - }); - return retVal; -}; -const de_SendCommandResult = (output, context) => { - return (0, smithy_client_1.take)(output, { - Command: (_) => de_Command(_, context), - }); -}; -const de_ServiceSetting = (output, context) => { - return (0, smithy_client_1.take)(output, { - ARN: smithy_client_1.expectString, - LastModifiedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - LastModifiedUser: smithy_client_1.expectString, - SettingId: smithy_client_1.expectString, - SettingValue: smithy_client_1.expectString, - Status: smithy_client_1.expectString, - }); -}; -const de_Session = (output, context) => { - return (0, smithy_client_1.take)(output, { - Details: smithy_client_1.expectString, - DocumentName: smithy_client_1.expectString, - EndDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - MaxSessionDuration: smithy_client_1.expectString, - OutputUrl: smithy_client_1._json, - Owner: smithy_client_1.expectString, - Reason: smithy_client_1.expectString, - SessionId: smithy_client_1.expectString, - StartDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - Status: smithy_client_1.expectString, - Target: smithy_client_1.expectString, - }); -}; -const de_SessionList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_Session(entry, context); - }); - return retVal; -}; -const de_StepExecution = (output, context) => { - return (0, smithy_client_1.take)(output, { - Action: smithy_client_1.expectString, - ExecutionEndTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - ExecutionStartTime: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - FailureDetails: smithy_client_1._json, - FailureMessage: smithy_client_1.expectString, - Inputs: smithy_client_1._json, - IsCritical: smithy_client_1.expectBoolean, - IsEnd: smithy_client_1.expectBoolean, - MaxAttempts: smithy_client_1.expectInt32, - NextStep: smithy_client_1.expectString, - OnFailure: smithy_client_1.expectString, - Outputs: smithy_client_1._json, - OverriddenParameters: smithy_client_1._json, - ParentStepDetails: smithy_client_1._json, - Response: smithy_client_1.expectString, - ResponseCode: smithy_client_1.expectString, - StepExecutionId: smithy_client_1.expectString, - StepName: smithy_client_1.expectString, - StepStatus: smithy_client_1.expectString, - TargetLocation: smithy_client_1._json, - Targets: smithy_client_1._json, - TimeoutSeconds: smithy_client_1.expectLong, - TriggeredAlarms: smithy_client_1._json, - ValidNextSteps: smithy_client_1._json, - }); -}; -const de_StepExecutionList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_StepExecution(entry, context); - }); - return retVal; -}; -const de_UpdateAssociationResult = (output, context) => { - return (0, smithy_client_1.take)(output, { - AssociationDescription: (_) => de_AssociationDescription(_, context), - }); -}; -const de_UpdateAssociationStatusResult = (output, context) => { - return (0, smithy_client_1.take)(output, { - AssociationDescription: (_) => de_AssociationDescription(_, context), - }); -}; -const de_UpdateDocumentResult = (output, context) => { - return (0, smithy_client_1.take)(output, { - DocumentDescription: (_) => de_DocumentDescription(_, context), - }); -}; -const de_UpdateMaintenanceWindowTaskResult = (output, context) => { - return (0, smithy_client_1.take)(output, { - AlarmConfiguration: smithy_client_1._json, - CutoffBehavior: smithy_client_1.expectString, - Description: smithy_client_1.expectString, - LoggingInfo: smithy_client_1._json, - MaxConcurrency: smithy_client_1.expectString, - MaxErrors: smithy_client_1.expectString, - Name: smithy_client_1.expectString, - Priority: smithy_client_1.expectInt32, - ServiceRoleArn: smithy_client_1.expectString, - Targets: smithy_client_1._json, - TaskArn: smithy_client_1.expectString, - TaskInvocationParameters: (_) => de_MaintenanceWindowTaskInvocationParameters(_, context), - TaskParameters: smithy_client_1._json, - WindowId: smithy_client_1.expectString, - WindowTaskId: smithy_client_1.expectString, - }); -}; -const de_UpdatePatchBaselineResult = (output, context) => { - return (0, smithy_client_1.take)(output, { - ApprovalRules: smithy_client_1._json, - ApprovedPatches: smithy_client_1._json, - ApprovedPatchesComplianceLevel: smithy_client_1.expectString, - ApprovedPatchesEnableNonSecurity: smithy_client_1.expectBoolean, - BaselineId: smithy_client_1.expectString, - CreatedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - Description: smithy_client_1.expectString, - GlobalFilters: smithy_client_1._json, - ModifiedDate: (_) => (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseEpochTimestamp)((0, smithy_client_1.expectNumber)(_))), - Name: smithy_client_1.expectString, - OperatingSystem: smithy_client_1.expectString, - RejectedPatches: smithy_client_1._json, - RejectedPatchesAction: smithy_client_1.expectString, - Sources: smithy_client_1._json, - }); -}; -const deserializeMetadata = (output) => ({ - httpStatusCode: output.statusCode, - requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"], - extendedRequestId: output.headers["x-amz-id-2"], - cfId: output.headers["x-amz-cf-id"], -}); -const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)); -const throwDefaultError = (0, smithy_client_1.withBaseException)(SSMServiceException_1.SSMServiceException); -const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); - const contents = { - protocol, - hostname, - port, - method: "POST", - path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path, - headers, - }; - if (resolvedHostname !== undefined) { - contents.hostname = resolvedHostname; - } - if (body !== undefined) { - contents.body = body; - } - return new protocol_http_1.HttpRequest(contents); -}; -function sharedHeaders(operation) { - return { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": `AmazonSSM.${operation}`, - }; -} -const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => { - if (encoded.length) { - return JSON.parse(encoded); - } - return {}; -}); -const parseErrorBody = async (errorBody, context) => { - const value = await parseBody(errorBody, context); - value.message = value.message ?? value.Message; - return value; -}; -const loadRestJsonErrorCode = (output, data) => { - const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()); - const sanitizeErrorCode = (rawValue) => { - let cleanValue = rawValue; - if (typeof cleanValue === "number") { - cleanValue = cleanValue.toString(); - } - if (cleanValue.indexOf(",") >= 0) { - cleanValue = cleanValue.split(",")[0]; - } - if (cleanValue.indexOf(":") >= 0) { - cleanValue = cleanValue.split(":")[0]; - } - if (cleanValue.indexOf("#") >= 0) { - cleanValue = cleanValue.split("#")[1]; - } - return cleanValue; - }; - const headerKey = findKey(output.headers, "x-amzn-errortype"); - if (headerKey !== undefined) { - return sanitizeErrorCode(output.headers[headerKey]); - } - if (data.code !== undefined) { - return sanitizeErrorCode(data.code); - } - if (data["__type"] !== undefined) { - return sanitizeErrorCode(data["__type"]); - } -}; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/runtimeConfig.browser.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/runtimeConfig.browser.js deleted file mode 100644 index 1dbf1cc6..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/runtimeConfig.browser.js +++ /dev/null @@ -1,39 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getRuntimeConfig = void 0; -const tslib_1 = require("tslib"); -const package_json_1 = tslib_1.__importDefault(require("../package.json")); -const sha256_browser_1 = require("@aws-crypto/sha256-browser"); -const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser"); -const config_resolver_1 = require("@smithy/config-resolver"); -const fetch_http_handler_1 = require("@smithy/fetch-http-handler"); -const invalid_dependency_1 = require("@smithy/invalid-dependency"); -const util_body_length_browser_1 = require("@smithy/util-body-length-browser"); -const util_retry_1 = require("@smithy/util-retry"); -const runtimeConfig_shared_1 = require("./runtimeConfig.shared"); -const smithy_client_1 = require("@smithy/smithy-client"); -const util_defaults_mode_browser_1 = require("@smithy/util-defaults-mode-browser"); -const getRuntimeConfig = (config) => { - const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config); - const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode); - const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config); - return { - ...clientSharedValues, - ...config, - runtime: "browser", - defaultsMode, - bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength, - credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))), - defaultUserAgentProvider: config?.defaultUserAgentProvider ?? - (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }), - maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS, - region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"), - requestHandler: config?.requestHandler ?? new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider), - retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE), - sha256: config?.sha256 ?? sha256_browser_1.Sha256, - streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector, - useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)), - useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)), - }; -}; -exports.getRuntimeConfig = getRuntimeConfig; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/runtimeConfig.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/runtimeConfig.js deleted file mode 100644 index 6cff6353..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/runtimeConfig.js +++ /dev/null @@ -1,50 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getRuntimeConfig = void 0; -const tslib_1 = require("tslib"); -const package_json_1 = tslib_1.__importDefault(require("../package.json")); -const client_sts_1 = require("@aws-sdk/client-sts"); -const core_1 = require("@aws-sdk/core"); -const credential_provider_node_1 = require("@aws-sdk/credential-provider-node"); -const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node"); -const config_resolver_1 = require("@smithy/config-resolver"); -const hash_node_1 = require("@smithy/hash-node"); -const middleware_retry_1 = require("@smithy/middleware-retry"); -const node_config_provider_1 = require("@smithy/node-config-provider"); -const node_http_handler_1 = require("@smithy/node-http-handler"); -const util_body_length_node_1 = require("@smithy/util-body-length-node"); -const util_retry_1 = require("@smithy/util-retry"); -const runtimeConfig_shared_1 = require("./runtimeConfig.shared"); -const smithy_client_1 = require("@smithy/smithy-client"); -const util_defaults_mode_node_1 = require("@smithy/util-defaults-mode-node"); -const smithy_client_2 = require("@smithy/smithy-client"); -const getRuntimeConfig = (config) => { - (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version); - const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config); - const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode); - const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config); - (0, core_1.emitWarningIfUnsupportedVersion)(process.version); - return { - ...clientSharedValues, - ...config, - runtime: "node", - defaultsMode, - bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength, - credentialDefaultProvider: config?.credentialDefaultProvider ?? (0, client_sts_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider), - defaultUserAgentProvider: config?.defaultUserAgentProvider ?? - (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }), - maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS), - region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS), - requestHandler: config?.requestHandler ?? new node_http_handler_1.NodeHttpHandler(defaultConfigProvider), - retryMode: config?.retryMode ?? - (0, node_config_provider_1.loadConfig)({ - ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS, - default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE, - }), - sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"), - streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector, - useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), - useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), - }; -}; -exports.getRuntimeConfig = getRuntimeConfig; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/runtimeConfig.native.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/runtimeConfig.native.js deleted file mode 100644 index 34c5f8ec..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/runtimeConfig.native.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getRuntimeConfig = void 0; -const sha256_js_1 = require("@aws-crypto/sha256-js"); -const runtimeConfig_browser_1 = require("./runtimeConfig.browser"); -const getRuntimeConfig = (config) => { - const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config); - return { - ...browserDefaults, - ...config, - runtime: "react-native", - sha256: config?.sha256 ?? sha256_js_1.Sha256, - }; -}; -exports.getRuntimeConfig = getRuntimeConfig; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/runtimeConfig.shared.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/runtimeConfig.shared.js deleted file mode 100644 index af3ab92a..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/runtimeConfig.shared.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getRuntimeConfig = void 0; -const smithy_client_1 = require("@smithy/smithy-client"); -const url_parser_1 = require("@smithy/url-parser"); -const util_base64_1 = require("@smithy/util-base64"); -const util_utf8_1 = require("@smithy/util-utf8"); -const endpointResolver_1 = require("./endpoint/endpointResolver"); -const getRuntimeConfig = (config) => { - return { - apiVersion: "2014-11-06", - base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64, - base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new smithy_client_1.NoOpLogger(), - serviceId: config?.serviceId ?? "SSM", - urlParser: config?.urlParser ?? url_parser_1.parseUrl, - utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8, - utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8, - }; -}; -exports.getRuntimeConfig = getRuntimeConfig; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/runtimeExtensions.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/runtimeExtensions.js deleted file mode 100644 index 23c25989..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/runtimeExtensions.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.resolveRuntimeExtensions = void 0; -const region_config_resolver_1 = require("@aws-sdk/region-config-resolver"); -const protocol_http_1 = require("@smithy/protocol-http"); -const smithy_client_1 = require("@smithy/smithy-client"); -const asPartial = (t) => t; -const resolveRuntimeExtensions = (runtimeConfig, extensions) => { - const extensionConfiguration = { - ...asPartial((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig)), - ...asPartial((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig)), - ...asPartial((0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig)), - }; - extensions.forEach((extension) => extension.configure(extensionConfiguration)); - return { - ...runtimeConfig, - ...(0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), - ...(0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration), - ...(0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), - }; -}; -exports.resolveRuntimeExtensions = resolveRuntimeExtensions; diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/waiters/index.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/waiters/index.js deleted file mode 100644 index 13ee2052..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/waiters/index.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./waitForCommandExecuted"), exports); diff --git a/node_modules/@aws-sdk/client-ssm/dist-cjs/waiters/waitForCommandExecuted.js b/node_modules/@aws-sdk/client-ssm/dist-cjs/waiters/waitForCommandExecuted.js deleted file mode 100644 index a2e79fda..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-cjs/waiters/waitForCommandExecuted.js +++ /dev/null @@ -1,102 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.waitUntilCommandExecuted = exports.waitForCommandExecuted = void 0; -const util_waiter_1 = require("@smithy/util-waiter"); -const GetCommandInvocationCommand_1 = require("../commands/GetCommandInvocationCommand"); -const checkState = async (client, input) => { - let reason; - try { - const result = await client.send(new GetCommandInvocationCommand_1.GetCommandInvocationCommand(input)); - reason = result; - try { - const returnComparator = () => { - return result.Status; - }; - if (returnComparator() === "Pending") { - return { state: util_waiter_1.WaiterState.RETRY, reason }; - } - } - catch (e) { } - try { - const returnComparator = () => { - return result.Status; - }; - if (returnComparator() === "InProgress") { - return { state: util_waiter_1.WaiterState.RETRY, reason }; - } - } - catch (e) { } - try { - const returnComparator = () => { - return result.Status; - }; - if (returnComparator() === "Delayed") { - return { state: util_waiter_1.WaiterState.RETRY, reason }; - } - } - catch (e) { } - try { - const returnComparator = () => { - return result.Status; - }; - if (returnComparator() === "Success") { - return { state: util_waiter_1.WaiterState.SUCCESS, reason }; - } - } - catch (e) { } - try { - const returnComparator = () => { - return result.Status; - }; - if (returnComparator() === "Cancelled") { - return { state: util_waiter_1.WaiterState.FAILURE, reason }; - } - } - catch (e) { } - try { - const returnComparator = () => { - return result.Status; - }; - if (returnComparator() === "TimedOut") { - return { state: util_waiter_1.WaiterState.FAILURE, reason }; - } - } - catch (e) { } - try { - const returnComparator = () => { - return result.Status; - }; - if (returnComparator() === "Failed") { - return { state: util_waiter_1.WaiterState.FAILURE, reason }; - } - } - catch (e) { } - try { - const returnComparator = () => { - return result.Status; - }; - if (returnComparator() === "Cancelling") { - return { state: util_waiter_1.WaiterState.FAILURE, reason }; - } - } - catch (e) { } - } - catch (exception) { - reason = exception; - if (exception.name && exception.name == "InvocationDoesNotExist") { - return { state: util_waiter_1.WaiterState.RETRY, reason }; - } - } - return { state: util_waiter_1.WaiterState.RETRY, reason }; -}; -const waitForCommandExecuted = async (params, input) => { - const serviceDefaults = { minDelay: 5, maxDelay: 120 }; - return (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState); -}; -exports.waitForCommandExecuted = waitForCommandExecuted; -const waitUntilCommandExecuted = async (params, input) => { - const serviceDefaults = { minDelay: 5, maxDelay: 120 }; - const result = await (0, util_waiter_1.createWaiter)({ ...serviceDefaults, ...params }, input, checkState); - return (0, util_waiter_1.checkExceptions)(result); -}; -exports.waitUntilCommandExecuted = waitUntilCommandExecuted; diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/SSM.js b/node_modules/@aws-sdk/client-ssm/dist-es/SSM.js deleted file mode 100644 index 962d7258..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/SSM.js +++ /dev/null @@ -1,285 +0,0 @@ -import { createAggregatedClient } from "@smithy/smithy-client"; -import { AddTagsToResourceCommand, } from "./commands/AddTagsToResourceCommand"; -import { AssociateOpsItemRelatedItemCommand, } from "./commands/AssociateOpsItemRelatedItemCommand"; -import { CancelCommandCommand, } from "./commands/CancelCommandCommand"; -import { CancelMaintenanceWindowExecutionCommand, } from "./commands/CancelMaintenanceWindowExecutionCommand"; -import { CreateActivationCommand, } from "./commands/CreateActivationCommand"; -import { CreateAssociationBatchCommand, } from "./commands/CreateAssociationBatchCommand"; -import { CreateAssociationCommand, } from "./commands/CreateAssociationCommand"; -import { CreateDocumentCommand, } from "./commands/CreateDocumentCommand"; -import { CreateMaintenanceWindowCommand, } from "./commands/CreateMaintenanceWindowCommand"; -import { CreateOpsItemCommand, } from "./commands/CreateOpsItemCommand"; -import { CreateOpsMetadataCommand, } from "./commands/CreateOpsMetadataCommand"; -import { CreatePatchBaselineCommand, } from "./commands/CreatePatchBaselineCommand"; -import { CreateResourceDataSyncCommand, } from "./commands/CreateResourceDataSyncCommand"; -import { DeleteActivationCommand, } from "./commands/DeleteActivationCommand"; -import { DeleteAssociationCommand, } from "./commands/DeleteAssociationCommand"; -import { DeleteDocumentCommand, } from "./commands/DeleteDocumentCommand"; -import { DeleteInventoryCommand, } from "./commands/DeleteInventoryCommand"; -import { DeleteMaintenanceWindowCommand, } from "./commands/DeleteMaintenanceWindowCommand"; -import { DeleteOpsItemCommand, } from "./commands/DeleteOpsItemCommand"; -import { DeleteOpsMetadataCommand, } from "./commands/DeleteOpsMetadataCommand"; -import { DeleteParameterCommand, } from "./commands/DeleteParameterCommand"; -import { DeleteParametersCommand, } from "./commands/DeleteParametersCommand"; -import { DeletePatchBaselineCommand, } from "./commands/DeletePatchBaselineCommand"; -import { DeleteResourceDataSyncCommand, } from "./commands/DeleteResourceDataSyncCommand"; -import { DeleteResourcePolicyCommand, } from "./commands/DeleteResourcePolicyCommand"; -import { DeregisterManagedInstanceCommand, } from "./commands/DeregisterManagedInstanceCommand"; -import { DeregisterPatchBaselineForPatchGroupCommand, } from "./commands/DeregisterPatchBaselineForPatchGroupCommand"; -import { DeregisterTargetFromMaintenanceWindowCommand, } from "./commands/DeregisterTargetFromMaintenanceWindowCommand"; -import { DeregisterTaskFromMaintenanceWindowCommand, } from "./commands/DeregisterTaskFromMaintenanceWindowCommand"; -import { DescribeActivationsCommand, } from "./commands/DescribeActivationsCommand"; -import { DescribeAssociationCommand, } from "./commands/DescribeAssociationCommand"; -import { DescribeAssociationExecutionsCommand, } from "./commands/DescribeAssociationExecutionsCommand"; -import { DescribeAssociationExecutionTargetsCommand, } from "./commands/DescribeAssociationExecutionTargetsCommand"; -import { DescribeAutomationExecutionsCommand, } from "./commands/DescribeAutomationExecutionsCommand"; -import { DescribeAutomationStepExecutionsCommand, } from "./commands/DescribeAutomationStepExecutionsCommand"; -import { DescribeAvailablePatchesCommand, } from "./commands/DescribeAvailablePatchesCommand"; -import { DescribeDocumentCommand, } from "./commands/DescribeDocumentCommand"; -import { DescribeDocumentPermissionCommand, } from "./commands/DescribeDocumentPermissionCommand"; -import { DescribeEffectiveInstanceAssociationsCommand, } from "./commands/DescribeEffectiveInstanceAssociationsCommand"; -import { DescribeEffectivePatchesForPatchBaselineCommand, } from "./commands/DescribeEffectivePatchesForPatchBaselineCommand"; -import { DescribeInstanceAssociationsStatusCommand, } from "./commands/DescribeInstanceAssociationsStatusCommand"; -import { DescribeInstanceInformationCommand, } from "./commands/DescribeInstanceInformationCommand"; -import { DescribeInstancePatchesCommand, } from "./commands/DescribeInstancePatchesCommand"; -import { DescribeInstancePatchStatesCommand, } from "./commands/DescribeInstancePatchStatesCommand"; -import { DescribeInstancePatchStatesForPatchGroupCommand, } from "./commands/DescribeInstancePatchStatesForPatchGroupCommand"; -import { DescribeInventoryDeletionsCommand, } from "./commands/DescribeInventoryDeletionsCommand"; -import { DescribeMaintenanceWindowExecutionsCommand, } from "./commands/DescribeMaintenanceWindowExecutionsCommand"; -import { DescribeMaintenanceWindowExecutionTaskInvocationsCommand, } from "./commands/DescribeMaintenanceWindowExecutionTaskInvocationsCommand"; -import { DescribeMaintenanceWindowExecutionTasksCommand, } from "./commands/DescribeMaintenanceWindowExecutionTasksCommand"; -import { DescribeMaintenanceWindowScheduleCommand, } from "./commands/DescribeMaintenanceWindowScheduleCommand"; -import { DescribeMaintenanceWindowsCommand, } from "./commands/DescribeMaintenanceWindowsCommand"; -import { DescribeMaintenanceWindowsForTargetCommand, } from "./commands/DescribeMaintenanceWindowsForTargetCommand"; -import { DescribeMaintenanceWindowTargetsCommand, } from "./commands/DescribeMaintenanceWindowTargetsCommand"; -import { DescribeMaintenanceWindowTasksCommand, } from "./commands/DescribeMaintenanceWindowTasksCommand"; -import { DescribeOpsItemsCommand, } from "./commands/DescribeOpsItemsCommand"; -import { DescribeParametersCommand, } from "./commands/DescribeParametersCommand"; -import { DescribePatchBaselinesCommand, } from "./commands/DescribePatchBaselinesCommand"; -import { DescribePatchGroupsCommand, } from "./commands/DescribePatchGroupsCommand"; -import { DescribePatchGroupStateCommand, } from "./commands/DescribePatchGroupStateCommand"; -import { DescribePatchPropertiesCommand, } from "./commands/DescribePatchPropertiesCommand"; -import { DescribeSessionsCommand, } from "./commands/DescribeSessionsCommand"; -import { DisassociateOpsItemRelatedItemCommand, } from "./commands/DisassociateOpsItemRelatedItemCommand"; -import { GetAutomationExecutionCommand, } from "./commands/GetAutomationExecutionCommand"; -import { GetCalendarStateCommand, } from "./commands/GetCalendarStateCommand"; -import { GetCommandInvocationCommand, } from "./commands/GetCommandInvocationCommand"; -import { GetConnectionStatusCommand, } from "./commands/GetConnectionStatusCommand"; -import { GetDefaultPatchBaselineCommand, } from "./commands/GetDefaultPatchBaselineCommand"; -import { GetDeployablePatchSnapshotForInstanceCommand, } from "./commands/GetDeployablePatchSnapshotForInstanceCommand"; -import { GetDocumentCommand } from "./commands/GetDocumentCommand"; -import { GetInventoryCommand, } from "./commands/GetInventoryCommand"; -import { GetInventorySchemaCommand, } from "./commands/GetInventorySchemaCommand"; -import { GetMaintenanceWindowCommand, } from "./commands/GetMaintenanceWindowCommand"; -import { GetMaintenanceWindowExecutionCommand, } from "./commands/GetMaintenanceWindowExecutionCommand"; -import { GetMaintenanceWindowExecutionTaskCommand, } from "./commands/GetMaintenanceWindowExecutionTaskCommand"; -import { GetMaintenanceWindowExecutionTaskInvocationCommand, } from "./commands/GetMaintenanceWindowExecutionTaskInvocationCommand"; -import { GetMaintenanceWindowTaskCommand, } from "./commands/GetMaintenanceWindowTaskCommand"; -import { GetOpsItemCommand } from "./commands/GetOpsItemCommand"; -import { GetOpsMetadataCommand, } from "./commands/GetOpsMetadataCommand"; -import { GetOpsSummaryCommand, } from "./commands/GetOpsSummaryCommand"; -import { GetParameterCommand, } from "./commands/GetParameterCommand"; -import { GetParameterHistoryCommand, } from "./commands/GetParameterHistoryCommand"; -import { GetParametersByPathCommand, } from "./commands/GetParametersByPathCommand"; -import { GetParametersCommand, } from "./commands/GetParametersCommand"; -import { GetPatchBaselineCommand, } from "./commands/GetPatchBaselineCommand"; -import { GetPatchBaselineForPatchGroupCommand, } from "./commands/GetPatchBaselineForPatchGroupCommand"; -import { GetResourcePoliciesCommand, } from "./commands/GetResourcePoliciesCommand"; -import { GetServiceSettingCommand, } from "./commands/GetServiceSettingCommand"; -import { LabelParameterVersionCommand, } from "./commands/LabelParameterVersionCommand"; -import { ListAssociationsCommand, } from "./commands/ListAssociationsCommand"; -import { ListAssociationVersionsCommand, } from "./commands/ListAssociationVersionsCommand"; -import { ListCommandInvocationsCommand, } from "./commands/ListCommandInvocationsCommand"; -import { ListCommandsCommand, } from "./commands/ListCommandsCommand"; -import { ListComplianceItemsCommand, } from "./commands/ListComplianceItemsCommand"; -import { ListComplianceSummariesCommand, } from "./commands/ListComplianceSummariesCommand"; -import { ListDocumentMetadataHistoryCommand, } from "./commands/ListDocumentMetadataHistoryCommand"; -import { ListDocumentsCommand, } from "./commands/ListDocumentsCommand"; -import { ListDocumentVersionsCommand, } from "./commands/ListDocumentVersionsCommand"; -import { ListInventoryEntriesCommand, } from "./commands/ListInventoryEntriesCommand"; -import { ListOpsItemEventsCommand, } from "./commands/ListOpsItemEventsCommand"; -import { ListOpsItemRelatedItemsCommand, } from "./commands/ListOpsItemRelatedItemsCommand"; -import { ListOpsMetadataCommand, } from "./commands/ListOpsMetadataCommand"; -import { ListResourceComplianceSummariesCommand, } from "./commands/ListResourceComplianceSummariesCommand"; -import { ListResourceDataSyncCommand, } from "./commands/ListResourceDataSyncCommand"; -import { ListTagsForResourceCommand, } from "./commands/ListTagsForResourceCommand"; -import { ModifyDocumentPermissionCommand, } from "./commands/ModifyDocumentPermissionCommand"; -import { PutComplianceItemsCommand, } from "./commands/PutComplianceItemsCommand"; -import { PutInventoryCommand, } from "./commands/PutInventoryCommand"; -import { PutParameterCommand, } from "./commands/PutParameterCommand"; -import { PutResourcePolicyCommand, } from "./commands/PutResourcePolicyCommand"; -import { RegisterDefaultPatchBaselineCommand, } from "./commands/RegisterDefaultPatchBaselineCommand"; -import { RegisterPatchBaselineForPatchGroupCommand, } from "./commands/RegisterPatchBaselineForPatchGroupCommand"; -import { RegisterTargetWithMaintenanceWindowCommand, } from "./commands/RegisterTargetWithMaintenanceWindowCommand"; -import { RegisterTaskWithMaintenanceWindowCommand, } from "./commands/RegisterTaskWithMaintenanceWindowCommand"; -import { RemoveTagsFromResourceCommand, } from "./commands/RemoveTagsFromResourceCommand"; -import { ResetServiceSettingCommand, } from "./commands/ResetServiceSettingCommand"; -import { ResumeSessionCommand, } from "./commands/ResumeSessionCommand"; -import { SendAutomationSignalCommand, } from "./commands/SendAutomationSignalCommand"; -import { SendCommandCommand } from "./commands/SendCommandCommand"; -import { StartAssociationsOnceCommand, } from "./commands/StartAssociationsOnceCommand"; -import { StartAutomationExecutionCommand, } from "./commands/StartAutomationExecutionCommand"; -import { StartChangeRequestExecutionCommand, } from "./commands/StartChangeRequestExecutionCommand"; -import { StartSessionCommand, } from "./commands/StartSessionCommand"; -import { StopAutomationExecutionCommand, } from "./commands/StopAutomationExecutionCommand"; -import { TerminateSessionCommand, } from "./commands/TerminateSessionCommand"; -import { UnlabelParameterVersionCommand, } from "./commands/UnlabelParameterVersionCommand"; -import { UpdateAssociationCommand, } from "./commands/UpdateAssociationCommand"; -import { UpdateAssociationStatusCommand, } from "./commands/UpdateAssociationStatusCommand"; -import { UpdateDocumentCommand, } from "./commands/UpdateDocumentCommand"; -import { UpdateDocumentDefaultVersionCommand, } from "./commands/UpdateDocumentDefaultVersionCommand"; -import { UpdateDocumentMetadataCommand, } from "./commands/UpdateDocumentMetadataCommand"; -import { UpdateMaintenanceWindowCommand, } from "./commands/UpdateMaintenanceWindowCommand"; -import { UpdateMaintenanceWindowTargetCommand, } from "./commands/UpdateMaintenanceWindowTargetCommand"; -import { UpdateMaintenanceWindowTaskCommand, } from "./commands/UpdateMaintenanceWindowTaskCommand"; -import { UpdateManagedInstanceRoleCommand, } from "./commands/UpdateManagedInstanceRoleCommand"; -import { UpdateOpsItemCommand, } from "./commands/UpdateOpsItemCommand"; -import { UpdateOpsMetadataCommand, } from "./commands/UpdateOpsMetadataCommand"; -import { UpdatePatchBaselineCommand, } from "./commands/UpdatePatchBaselineCommand"; -import { UpdateResourceDataSyncCommand, } from "./commands/UpdateResourceDataSyncCommand"; -import { UpdateServiceSettingCommand, } from "./commands/UpdateServiceSettingCommand"; -import { SSMClient } from "./SSMClient"; -const commands = { - AddTagsToResourceCommand, - AssociateOpsItemRelatedItemCommand, - CancelCommandCommand, - CancelMaintenanceWindowExecutionCommand, - CreateActivationCommand, - CreateAssociationCommand, - CreateAssociationBatchCommand, - CreateDocumentCommand, - CreateMaintenanceWindowCommand, - CreateOpsItemCommand, - CreateOpsMetadataCommand, - CreatePatchBaselineCommand, - CreateResourceDataSyncCommand, - DeleteActivationCommand, - DeleteAssociationCommand, - DeleteDocumentCommand, - DeleteInventoryCommand, - DeleteMaintenanceWindowCommand, - DeleteOpsItemCommand, - DeleteOpsMetadataCommand, - DeleteParameterCommand, - DeleteParametersCommand, - DeletePatchBaselineCommand, - DeleteResourceDataSyncCommand, - DeleteResourcePolicyCommand, - DeregisterManagedInstanceCommand, - DeregisterPatchBaselineForPatchGroupCommand, - DeregisterTargetFromMaintenanceWindowCommand, - DeregisterTaskFromMaintenanceWindowCommand, - DescribeActivationsCommand, - DescribeAssociationCommand, - DescribeAssociationExecutionsCommand, - DescribeAssociationExecutionTargetsCommand, - DescribeAutomationExecutionsCommand, - DescribeAutomationStepExecutionsCommand, - DescribeAvailablePatchesCommand, - DescribeDocumentCommand, - DescribeDocumentPermissionCommand, - DescribeEffectiveInstanceAssociationsCommand, - DescribeEffectivePatchesForPatchBaselineCommand, - DescribeInstanceAssociationsStatusCommand, - DescribeInstanceInformationCommand, - DescribeInstancePatchesCommand, - DescribeInstancePatchStatesCommand, - DescribeInstancePatchStatesForPatchGroupCommand, - DescribeInventoryDeletionsCommand, - DescribeMaintenanceWindowExecutionsCommand, - DescribeMaintenanceWindowExecutionTaskInvocationsCommand, - DescribeMaintenanceWindowExecutionTasksCommand, - DescribeMaintenanceWindowsCommand, - DescribeMaintenanceWindowScheduleCommand, - DescribeMaintenanceWindowsForTargetCommand, - DescribeMaintenanceWindowTargetsCommand, - DescribeMaintenanceWindowTasksCommand, - DescribeOpsItemsCommand, - DescribeParametersCommand, - DescribePatchBaselinesCommand, - DescribePatchGroupsCommand, - DescribePatchGroupStateCommand, - DescribePatchPropertiesCommand, - DescribeSessionsCommand, - DisassociateOpsItemRelatedItemCommand, - GetAutomationExecutionCommand, - GetCalendarStateCommand, - GetCommandInvocationCommand, - GetConnectionStatusCommand, - GetDefaultPatchBaselineCommand, - GetDeployablePatchSnapshotForInstanceCommand, - GetDocumentCommand, - GetInventoryCommand, - GetInventorySchemaCommand, - GetMaintenanceWindowCommand, - GetMaintenanceWindowExecutionCommand, - GetMaintenanceWindowExecutionTaskCommand, - GetMaintenanceWindowExecutionTaskInvocationCommand, - GetMaintenanceWindowTaskCommand, - GetOpsItemCommand, - GetOpsMetadataCommand, - GetOpsSummaryCommand, - GetParameterCommand, - GetParameterHistoryCommand, - GetParametersCommand, - GetParametersByPathCommand, - GetPatchBaselineCommand, - GetPatchBaselineForPatchGroupCommand, - GetResourcePoliciesCommand, - GetServiceSettingCommand, - LabelParameterVersionCommand, - ListAssociationsCommand, - ListAssociationVersionsCommand, - ListCommandInvocationsCommand, - ListCommandsCommand, - ListComplianceItemsCommand, - ListComplianceSummariesCommand, - ListDocumentMetadataHistoryCommand, - ListDocumentsCommand, - ListDocumentVersionsCommand, - ListInventoryEntriesCommand, - ListOpsItemEventsCommand, - ListOpsItemRelatedItemsCommand, - ListOpsMetadataCommand, - ListResourceComplianceSummariesCommand, - ListResourceDataSyncCommand, - ListTagsForResourceCommand, - ModifyDocumentPermissionCommand, - PutComplianceItemsCommand, - PutInventoryCommand, - PutParameterCommand, - PutResourcePolicyCommand, - RegisterDefaultPatchBaselineCommand, - RegisterPatchBaselineForPatchGroupCommand, - RegisterTargetWithMaintenanceWindowCommand, - RegisterTaskWithMaintenanceWindowCommand, - RemoveTagsFromResourceCommand, - ResetServiceSettingCommand, - ResumeSessionCommand, - SendAutomationSignalCommand, - SendCommandCommand, - StartAssociationsOnceCommand, - StartAutomationExecutionCommand, - StartChangeRequestExecutionCommand, - StartSessionCommand, - StopAutomationExecutionCommand, - TerminateSessionCommand, - UnlabelParameterVersionCommand, - UpdateAssociationCommand, - UpdateAssociationStatusCommand, - UpdateDocumentCommand, - UpdateDocumentDefaultVersionCommand, - UpdateDocumentMetadataCommand, - UpdateMaintenanceWindowCommand, - UpdateMaintenanceWindowTargetCommand, - UpdateMaintenanceWindowTaskCommand, - UpdateManagedInstanceRoleCommand, - UpdateOpsItemCommand, - UpdateOpsMetadataCommand, - UpdatePatchBaselineCommand, - UpdateResourceDataSyncCommand, - UpdateServiceSettingCommand, -}; -export class SSM extends SSMClient { -} -createAggregatedClient(commands, SSM); diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/SSMClient.js b/node_modules/@aws-sdk/client-ssm/dist-es/SSMClient.js deleted file mode 100644 index ecffc5a7..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/SSMClient.js +++ /dev/null @@ -1,39 +0,0 @@ -import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header"; -import { getLoggerPlugin } from "@aws-sdk/middleware-logger"; -import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection"; -import { getAwsAuthPlugin, resolveAwsAuthConfig, } from "@aws-sdk/middleware-signing"; -import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent"; -import { resolveRegionConfig } from "@smithy/config-resolver"; -import { getContentLengthPlugin } from "@smithy/middleware-content-length"; -import { resolveEndpointConfig } from "@smithy/middleware-endpoint"; -import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry"; -import { Client as __Client, } from "@smithy/smithy-client"; -import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters"; -import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig"; -import { resolveRuntimeExtensions } from "./runtimeExtensions"; -export { __Client }; -export class SSMClient extends __Client { - constructor(...[configuration]) { - const _config_0 = __getRuntimeConfig(configuration || {}); - const _config_1 = resolveClientEndpointParameters(_config_0); - const _config_2 = resolveRegionConfig(_config_1); - const _config_3 = resolveEndpointConfig(_config_2); - const _config_4 = resolveRetryConfig(_config_3); - const _config_5 = resolveHostHeaderConfig(_config_4); - const _config_6 = resolveAwsAuthConfig(_config_5); - const _config_7 = resolveUserAgentConfig(_config_6); - const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []); - super(_config_8); - this.config = _config_8; - this.middlewareStack.use(getRetryPlugin(this.config)); - this.middlewareStack.use(getContentLengthPlugin(this.config)); - this.middlewareStack.use(getHostHeaderPlugin(this.config)); - this.middlewareStack.use(getLoggerPlugin(this.config)); - this.middlewareStack.use(getRecursionDetectionPlugin(this.config)); - this.middlewareStack.use(getAwsAuthPlugin(this.config)); - this.middlewareStack.use(getUserAgentPlugin(this.config)); - } - destroy() { - super.destroy(); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/AddTagsToResourceCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/AddTagsToResourceCommand.js deleted file mode 100644 index 5b621694..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/AddTagsToResourceCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_AddTagsToResourceCommand, se_AddTagsToResourceCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class AddTagsToResourceCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, AddTagsToResourceCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "AddTagsToResourceCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "AddTagsToResource", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_AddTagsToResourceCommand(input, context); - } - deserialize(output, context) { - return de_AddTagsToResourceCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/AssociateOpsItemRelatedItemCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/AssociateOpsItemRelatedItemCommand.js deleted file mode 100644 index 82297ab3..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/AssociateOpsItemRelatedItemCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_AssociateOpsItemRelatedItemCommand, se_AssociateOpsItemRelatedItemCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class AssociateOpsItemRelatedItemCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, AssociateOpsItemRelatedItemCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "AssociateOpsItemRelatedItemCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "AssociateOpsItemRelatedItem", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_AssociateOpsItemRelatedItemCommand(input, context); - } - deserialize(output, context) { - return de_AssociateOpsItemRelatedItemCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/CancelCommandCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/CancelCommandCommand.js deleted file mode 100644 index 360edd9d..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/CancelCommandCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_CancelCommandCommand, se_CancelCommandCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class CancelCommandCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, CancelCommandCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "CancelCommandCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "CancelCommand", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_CancelCommandCommand(input, context); - } - deserialize(output, context) { - return de_CancelCommandCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/CancelMaintenanceWindowExecutionCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/CancelMaintenanceWindowExecutionCommand.js deleted file mode 100644 index a1cfc566..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/CancelMaintenanceWindowExecutionCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_CancelMaintenanceWindowExecutionCommand, se_CancelMaintenanceWindowExecutionCommand, } from "../protocols/Aws_json1_1"; -export { $Command }; -export class CancelMaintenanceWindowExecutionCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, CancelMaintenanceWindowExecutionCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "CancelMaintenanceWindowExecutionCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "CancelMaintenanceWindowExecution", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_CancelMaintenanceWindowExecutionCommand(input, context); - } - deserialize(output, context) { - return de_CancelMaintenanceWindowExecutionCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/CreateActivationCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/CreateActivationCommand.js deleted file mode 100644 index 4cac918b..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/CreateActivationCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_CreateActivationCommand, se_CreateActivationCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class CreateActivationCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, CreateActivationCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "CreateActivationCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "CreateActivation", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_CreateActivationCommand(input, context); - } - deserialize(output, context) { - return de_CreateActivationCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/CreateAssociationBatchCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/CreateAssociationBatchCommand.js deleted file mode 100644 index ce5baa88..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/CreateAssociationBatchCommand.js +++ /dev/null @@ -1,48 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { CreateAssociationBatchRequestFilterSensitiveLog, CreateAssociationBatchResultFilterSensitiveLog, } from "../models/models_0"; -import { de_CreateAssociationBatchCommand, se_CreateAssociationBatchCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class CreateAssociationBatchCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, CreateAssociationBatchCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "CreateAssociationBatchCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: CreateAssociationBatchRequestFilterSensitiveLog, - outputFilterSensitiveLog: CreateAssociationBatchResultFilterSensitiveLog, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "CreateAssociationBatch", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_CreateAssociationBatchCommand(input, context); - } - deserialize(output, context) { - return de_CreateAssociationBatchCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/CreateAssociationCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/CreateAssociationCommand.js deleted file mode 100644 index c4380418..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/CreateAssociationCommand.js +++ /dev/null @@ -1,48 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { CreateAssociationRequestFilterSensitiveLog, CreateAssociationResultFilterSensitiveLog, } from "../models/models_0"; -import { de_CreateAssociationCommand, se_CreateAssociationCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class CreateAssociationCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, CreateAssociationCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "CreateAssociationCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: CreateAssociationRequestFilterSensitiveLog, - outputFilterSensitiveLog: CreateAssociationResultFilterSensitiveLog, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "CreateAssociation", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_CreateAssociationCommand(input, context); - } - deserialize(output, context) { - return de_CreateAssociationCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/CreateDocumentCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/CreateDocumentCommand.js deleted file mode 100644 index 66c5b92e..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/CreateDocumentCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_CreateDocumentCommand, se_CreateDocumentCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class CreateDocumentCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, CreateDocumentCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "CreateDocumentCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "CreateDocument", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_CreateDocumentCommand(input, context); - } - deserialize(output, context) { - return de_CreateDocumentCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/CreateMaintenanceWindowCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/CreateMaintenanceWindowCommand.js deleted file mode 100644 index 265cb65a..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/CreateMaintenanceWindowCommand.js +++ /dev/null @@ -1,48 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { CreateMaintenanceWindowRequestFilterSensitiveLog, } from "../models/models_0"; -import { de_CreateMaintenanceWindowCommand, se_CreateMaintenanceWindowCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class CreateMaintenanceWindowCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, CreateMaintenanceWindowCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "CreateMaintenanceWindowCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: CreateMaintenanceWindowRequestFilterSensitiveLog, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "CreateMaintenanceWindow", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_CreateMaintenanceWindowCommand(input, context); - } - deserialize(output, context) { - return de_CreateMaintenanceWindowCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/CreateOpsItemCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/CreateOpsItemCommand.js deleted file mode 100644 index 75be83c4..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/CreateOpsItemCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_CreateOpsItemCommand, se_CreateOpsItemCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class CreateOpsItemCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, CreateOpsItemCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "CreateOpsItemCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "CreateOpsItem", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_CreateOpsItemCommand(input, context); - } - deserialize(output, context) { - return de_CreateOpsItemCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/CreateOpsMetadataCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/CreateOpsMetadataCommand.js deleted file mode 100644 index 28d5b438..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/CreateOpsMetadataCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_CreateOpsMetadataCommand, se_CreateOpsMetadataCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class CreateOpsMetadataCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, CreateOpsMetadataCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "CreateOpsMetadataCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "CreateOpsMetadata", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_CreateOpsMetadataCommand(input, context); - } - deserialize(output, context) { - return de_CreateOpsMetadataCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/CreatePatchBaselineCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/CreatePatchBaselineCommand.js deleted file mode 100644 index 1999cef0..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/CreatePatchBaselineCommand.js +++ /dev/null @@ -1,48 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { CreatePatchBaselineRequestFilterSensitiveLog, } from "../models/models_0"; -import { de_CreatePatchBaselineCommand, se_CreatePatchBaselineCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class CreatePatchBaselineCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, CreatePatchBaselineCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "CreatePatchBaselineCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: CreatePatchBaselineRequestFilterSensitiveLog, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "CreatePatchBaseline", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_CreatePatchBaselineCommand(input, context); - } - deserialize(output, context) { - return de_CreatePatchBaselineCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/CreateResourceDataSyncCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/CreateResourceDataSyncCommand.js deleted file mode 100644 index a8bc766f..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/CreateResourceDataSyncCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_CreateResourceDataSyncCommand, se_CreateResourceDataSyncCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class CreateResourceDataSyncCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, CreateResourceDataSyncCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "CreateResourceDataSyncCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "CreateResourceDataSync", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_CreateResourceDataSyncCommand(input, context); - } - deserialize(output, context) { - return de_CreateResourceDataSyncCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DeleteActivationCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/DeleteActivationCommand.js deleted file mode 100644 index f4125125..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DeleteActivationCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_DeleteActivationCommand, se_DeleteActivationCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class DeleteActivationCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, DeleteActivationCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DeleteActivationCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DeleteActivation", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_DeleteActivationCommand(input, context); - } - deserialize(output, context) { - return de_DeleteActivationCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DeleteAssociationCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/DeleteAssociationCommand.js deleted file mode 100644 index a4702a84..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DeleteAssociationCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_DeleteAssociationCommand, se_DeleteAssociationCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class DeleteAssociationCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, DeleteAssociationCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DeleteAssociationCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DeleteAssociation", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_DeleteAssociationCommand(input, context); - } - deserialize(output, context) { - return de_DeleteAssociationCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DeleteDocumentCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/DeleteDocumentCommand.js deleted file mode 100644 index 6ebbcd82..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DeleteDocumentCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_DeleteDocumentCommand, se_DeleteDocumentCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class DeleteDocumentCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, DeleteDocumentCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DeleteDocumentCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DeleteDocument", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_DeleteDocumentCommand(input, context); - } - deserialize(output, context) { - return de_DeleteDocumentCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DeleteInventoryCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/DeleteInventoryCommand.js deleted file mode 100644 index df16b629..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DeleteInventoryCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_DeleteInventoryCommand, se_DeleteInventoryCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class DeleteInventoryCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, DeleteInventoryCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DeleteInventoryCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DeleteInventory", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_DeleteInventoryCommand(input, context); - } - deserialize(output, context) { - return de_DeleteInventoryCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DeleteMaintenanceWindowCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/DeleteMaintenanceWindowCommand.js deleted file mode 100644 index 0ae968e8..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DeleteMaintenanceWindowCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_DeleteMaintenanceWindowCommand, se_DeleteMaintenanceWindowCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class DeleteMaintenanceWindowCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, DeleteMaintenanceWindowCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DeleteMaintenanceWindowCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DeleteMaintenanceWindow", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_DeleteMaintenanceWindowCommand(input, context); - } - deserialize(output, context) { - return de_DeleteMaintenanceWindowCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DeleteOpsItemCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/DeleteOpsItemCommand.js deleted file mode 100644 index f081371d..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DeleteOpsItemCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_DeleteOpsItemCommand, se_DeleteOpsItemCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class DeleteOpsItemCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, DeleteOpsItemCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DeleteOpsItemCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DeleteOpsItem", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_DeleteOpsItemCommand(input, context); - } - deserialize(output, context) { - return de_DeleteOpsItemCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DeleteOpsMetadataCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/DeleteOpsMetadataCommand.js deleted file mode 100644 index ee4852d2..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DeleteOpsMetadataCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_DeleteOpsMetadataCommand, se_DeleteOpsMetadataCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class DeleteOpsMetadataCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, DeleteOpsMetadataCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DeleteOpsMetadataCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DeleteOpsMetadata", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_DeleteOpsMetadataCommand(input, context); - } - deserialize(output, context) { - return de_DeleteOpsMetadataCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DeleteParameterCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/DeleteParameterCommand.js deleted file mode 100644 index 30312e37..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DeleteParameterCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_DeleteParameterCommand, se_DeleteParameterCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class DeleteParameterCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, DeleteParameterCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DeleteParameterCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DeleteParameter", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_DeleteParameterCommand(input, context); - } - deserialize(output, context) { - return de_DeleteParameterCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DeleteParametersCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/DeleteParametersCommand.js deleted file mode 100644 index 04d1f8b9..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DeleteParametersCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_DeleteParametersCommand, se_DeleteParametersCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class DeleteParametersCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, DeleteParametersCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DeleteParametersCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DeleteParameters", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_DeleteParametersCommand(input, context); - } - deserialize(output, context) { - return de_DeleteParametersCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DeletePatchBaselineCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/DeletePatchBaselineCommand.js deleted file mode 100644 index 5d38194f..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DeletePatchBaselineCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_DeletePatchBaselineCommand, se_DeletePatchBaselineCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class DeletePatchBaselineCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, DeletePatchBaselineCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DeletePatchBaselineCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DeletePatchBaseline", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_DeletePatchBaselineCommand(input, context); - } - deserialize(output, context) { - return de_DeletePatchBaselineCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DeleteResourceDataSyncCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/DeleteResourceDataSyncCommand.js deleted file mode 100644 index cb4368ec..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DeleteResourceDataSyncCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_DeleteResourceDataSyncCommand, se_DeleteResourceDataSyncCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class DeleteResourceDataSyncCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, DeleteResourceDataSyncCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DeleteResourceDataSyncCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DeleteResourceDataSync", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_DeleteResourceDataSyncCommand(input, context); - } - deserialize(output, context) { - return de_DeleteResourceDataSyncCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DeleteResourcePolicyCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/DeleteResourcePolicyCommand.js deleted file mode 100644 index 60608ad4..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DeleteResourcePolicyCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_DeleteResourcePolicyCommand, se_DeleteResourcePolicyCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class DeleteResourcePolicyCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, DeleteResourcePolicyCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DeleteResourcePolicyCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DeleteResourcePolicy", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_DeleteResourcePolicyCommand(input, context); - } - deserialize(output, context) { - return de_DeleteResourcePolicyCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DeregisterManagedInstanceCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/DeregisterManagedInstanceCommand.js deleted file mode 100644 index bc41635f..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DeregisterManagedInstanceCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_DeregisterManagedInstanceCommand, se_DeregisterManagedInstanceCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class DeregisterManagedInstanceCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, DeregisterManagedInstanceCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DeregisterManagedInstanceCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DeregisterManagedInstance", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_DeregisterManagedInstanceCommand(input, context); - } - deserialize(output, context) { - return de_DeregisterManagedInstanceCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DeregisterPatchBaselineForPatchGroupCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/DeregisterPatchBaselineForPatchGroupCommand.js deleted file mode 100644 index 5bad4a81..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DeregisterPatchBaselineForPatchGroupCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_DeregisterPatchBaselineForPatchGroupCommand, se_DeregisterPatchBaselineForPatchGroupCommand, } from "../protocols/Aws_json1_1"; -export { $Command }; -export class DeregisterPatchBaselineForPatchGroupCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, DeregisterPatchBaselineForPatchGroupCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DeregisterPatchBaselineForPatchGroupCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DeregisterPatchBaselineForPatchGroup", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_DeregisterPatchBaselineForPatchGroupCommand(input, context); - } - deserialize(output, context) { - return de_DeregisterPatchBaselineForPatchGroupCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DeregisterTargetFromMaintenanceWindowCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/DeregisterTargetFromMaintenanceWindowCommand.js deleted file mode 100644 index 6e56d32d..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DeregisterTargetFromMaintenanceWindowCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_DeregisterTargetFromMaintenanceWindowCommand, se_DeregisterTargetFromMaintenanceWindowCommand, } from "../protocols/Aws_json1_1"; -export { $Command }; -export class DeregisterTargetFromMaintenanceWindowCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, DeregisterTargetFromMaintenanceWindowCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DeregisterTargetFromMaintenanceWindowCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DeregisterTargetFromMaintenanceWindow", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_DeregisterTargetFromMaintenanceWindowCommand(input, context); - } - deserialize(output, context) { - return de_DeregisterTargetFromMaintenanceWindowCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DeregisterTaskFromMaintenanceWindowCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/DeregisterTaskFromMaintenanceWindowCommand.js deleted file mode 100644 index 4b8e4856..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DeregisterTaskFromMaintenanceWindowCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_DeregisterTaskFromMaintenanceWindowCommand, se_DeregisterTaskFromMaintenanceWindowCommand, } from "../protocols/Aws_json1_1"; -export { $Command }; -export class DeregisterTaskFromMaintenanceWindowCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, DeregisterTaskFromMaintenanceWindowCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DeregisterTaskFromMaintenanceWindowCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DeregisterTaskFromMaintenanceWindow", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_DeregisterTaskFromMaintenanceWindowCommand(input, context); - } - deserialize(output, context) { - return de_DeregisterTaskFromMaintenanceWindowCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeActivationsCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeActivationsCommand.js deleted file mode 100644 index 3801ccd9..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeActivationsCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_DescribeActivationsCommand, se_DescribeActivationsCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class DescribeActivationsCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, DescribeActivationsCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeActivationsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DescribeActivations", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_DescribeActivationsCommand(input, context); - } - deserialize(output, context) { - return de_DescribeActivationsCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeAssociationCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeAssociationCommand.js deleted file mode 100644 index a8a020e3..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeAssociationCommand.js +++ /dev/null @@ -1,48 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { DescribeAssociationResultFilterSensitiveLog, } from "../models/models_0"; -import { de_DescribeAssociationCommand, se_DescribeAssociationCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class DescribeAssociationCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, DescribeAssociationCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeAssociationCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: DescribeAssociationResultFilterSensitiveLog, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DescribeAssociation", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_DescribeAssociationCommand(input, context); - } - deserialize(output, context) { - return de_DescribeAssociationCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeAssociationExecutionTargetsCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeAssociationExecutionTargetsCommand.js deleted file mode 100644 index cd984c00..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeAssociationExecutionTargetsCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_DescribeAssociationExecutionTargetsCommand, se_DescribeAssociationExecutionTargetsCommand, } from "../protocols/Aws_json1_1"; -export { $Command }; -export class DescribeAssociationExecutionTargetsCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, DescribeAssociationExecutionTargetsCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeAssociationExecutionTargetsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DescribeAssociationExecutionTargets", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_DescribeAssociationExecutionTargetsCommand(input, context); - } - deserialize(output, context) { - return de_DescribeAssociationExecutionTargetsCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeAssociationExecutionsCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeAssociationExecutionsCommand.js deleted file mode 100644 index 6e52e7d3..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeAssociationExecutionsCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_DescribeAssociationExecutionsCommand, se_DescribeAssociationExecutionsCommand, } from "../protocols/Aws_json1_1"; -export { $Command }; -export class DescribeAssociationExecutionsCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, DescribeAssociationExecutionsCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeAssociationExecutionsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DescribeAssociationExecutions", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_DescribeAssociationExecutionsCommand(input, context); - } - deserialize(output, context) { - return de_DescribeAssociationExecutionsCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeAutomationExecutionsCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeAutomationExecutionsCommand.js deleted file mode 100644 index d12a5495..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeAutomationExecutionsCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_DescribeAutomationExecutionsCommand, se_DescribeAutomationExecutionsCommand, } from "../protocols/Aws_json1_1"; -export { $Command }; -export class DescribeAutomationExecutionsCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, DescribeAutomationExecutionsCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeAutomationExecutionsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DescribeAutomationExecutions", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_DescribeAutomationExecutionsCommand(input, context); - } - deserialize(output, context) { - return de_DescribeAutomationExecutionsCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeAutomationStepExecutionsCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeAutomationStepExecutionsCommand.js deleted file mode 100644 index 7691fe40..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeAutomationStepExecutionsCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_DescribeAutomationStepExecutionsCommand, se_DescribeAutomationStepExecutionsCommand, } from "../protocols/Aws_json1_1"; -export { $Command }; -export class DescribeAutomationStepExecutionsCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, DescribeAutomationStepExecutionsCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeAutomationStepExecutionsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DescribeAutomationStepExecutions", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_DescribeAutomationStepExecutionsCommand(input, context); - } - deserialize(output, context) { - return de_DescribeAutomationStepExecutionsCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeAvailablePatchesCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeAvailablePatchesCommand.js deleted file mode 100644 index 1fdebb45..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeAvailablePatchesCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_DescribeAvailablePatchesCommand, se_DescribeAvailablePatchesCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class DescribeAvailablePatchesCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, DescribeAvailablePatchesCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeAvailablePatchesCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DescribeAvailablePatches", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_DescribeAvailablePatchesCommand(input, context); - } - deserialize(output, context) { - return de_DescribeAvailablePatchesCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeDocumentCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeDocumentCommand.js deleted file mode 100644 index 0af67cb0..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeDocumentCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_DescribeDocumentCommand, se_DescribeDocumentCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class DescribeDocumentCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, DescribeDocumentCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeDocumentCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DescribeDocument", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_DescribeDocumentCommand(input, context); - } - deserialize(output, context) { - return de_DescribeDocumentCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeDocumentPermissionCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeDocumentPermissionCommand.js deleted file mode 100644 index 2cd54f7a..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeDocumentPermissionCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_DescribeDocumentPermissionCommand, se_DescribeDocumentPermissionCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class DescribeDocumentPermissionCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, DescribeDocumentPermissionCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeDocumentPermissionCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DescribeDocumentPermission", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_DescribeDocumentPermissionCommand(input, context); - } - deserialize(output, context) { - return de_DescribeDocumentPermissionCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeEffectiveInstanceAssociationsCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeEffectiveInstanceAssociationsCommand.js deleted file mode 100644 index 8c50cfd0..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeEffectiveInstanceAssociationsCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_DescribeEffectiveInstanceAssociationsCommand, se_DescribeEffectiveInstanceAssociationsCommand, } from "../protocols/Aws_json1_1"; -export { $Command }; -export class DescribeEffectiveInstanceAssociationsCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, DescribeEffectiveInstanceAssociationsCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeEffectiveInstanceAssociationsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DescribeEffectiveInstanceAssociations", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_DescribeEffectiveInstanceAssociationsCommand(input, context); - } - deserialize(output, context) { - return de_DescribeEffectiveInstanceAssociationsCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeEffectivePatchesForPatchBaselineCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeEffectivePatchesForPatchBaselineCommand.js deleted file mode 100644 index 8abfa151..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeEffectivePatchesForPatchBaselineCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_DescribeEffectivePatchesForPatchBaselineCommand, se_DescribeEffectivePatchesForPatchBaselineCommand, } from "../protocols/Aws_json1_1"; -export { $Command }; -export class DescribeEffectivePatchesForPatchBaselineCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, DescribeEffectivePatchesForPatchBaselineCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeEffectivePatchesForPatchBaselineCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DescribeEffectivePatchesForPatchBaseline", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_DescribeEffectivePatchesForPatchBaselineCommand(input, context); - } - deserialize(output, context) { - return de_DescribeEffectivePatchesForPatchBaselineCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeInstanceAssociationsStatusCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeInstanceAssociationsStatusCommand.js deleted file mode 100644 index f51b5ffd..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeInstanceAssociationsStatusCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_DescribeInstanceAssociationsStatusCommand, se_DescribeInstanceAssociationsStatusCommand, } from "../protocols/Aws_json1_1"; -export { $Command }; -export class DescribeInstanceAssociationsStatusCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, DescribeInstanceAssociationsStatusCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeInstanceAssociationsStatusCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DescribeInstanceAssociationsStatus", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_DescribeInstanceAssociationsStatusCommand(input, context); - } - deserialize(output, context) { - return de_DescribeInstanceAssociationsStatusCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeInstanceInformationCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeInstanceInformationCommand.js deleted file mode 100644 index 71b3fa03..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeInstanceInformationCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_DescribeInstanceInformationCommand, se_DescribeInstanceInformationCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class DescribeInstanceInformationCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, DescribeInstanceInformationCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeInstanceInformationCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DescribeInstanceInformation", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_DescribeInstanceInformationCommand(input, context); - } - deserialize(output, context) { - return de_DescribeInstanceInformationCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeInstancePatchStatesCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeInstancePatchStatesCommand.js deleted file mode 100644 index 71f6660d..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeInstancePatchStatesCommand.js +++ /dev/null @@ -1,48 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { DescribeInstancePatchStatesResultFilterSensitiveLog, } from "../models/models_0"; -import { de_DescribeInstancePatchStatesCommand, se_DescribeInstancePatchStatesCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class DescribeInstancePatchStatesCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, DescribeInstancePatchStatesCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeInstancePatchStatesCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: DescribeInstancePatchStatesResultFilterSensitiveLog, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DescribeInstancePatchStates", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_DescribeInstancePatchStatesCommand(input, context); - } - deserialize(output, context) { - return de_DescribeInstancePatchStatesCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeInstancePatchStatesForPatchGroupCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeInstancePatchStatesForPatchGroupCommand.js deleted file mode 100644 index 715aa289..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeInstancePatchStatesForPatchGroupCommand.js +++ /dev/null @@ -1,48 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { DescribeInstancePatchStatesForPatchGroupResultFilterSensitiveLog, } from "../models/models_0"; -import { de_DescribeInstancePatchStatesForPatchGroupCommand, se_DescribeInstancePatchStatesForPatchGroupCommand, } from "../protocols/Aws_json1_1"; -export { $Command }; -export class DescribeInstancePatchStatesForPatchGroupCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, DescribeInstancePatchStatesForPatchGroupCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeInstancePatchStatesForPatchGroupCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: DescribeInstancePatchStatesForPatchGroupResultFilterSensitiveLog, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DescribeInstancePatchStatesForPatchGroup", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_DescribeInstancePatchStatesForPatchGroupCommand(input, context); - } - deserialize(output, context) { - return de_DescribeInstancePatchStatesForPatchGroupCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeInstancePatchesCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeInstancePatchesCommand.js deleted file mode 100644 index 2af0bbcd..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeInstancePatchesCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_DescribeInstancePatchesCommand, se_DescribeInstancePatchesCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class DescribeInstancePatchesCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, DescribeInstancePatchesCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeInstancePatchesCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DescribeInstancePatches", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_DescribeInstancePatchesCommand(input, context); - } - deserialize(output, context) { - return de_DescribeInstancePatchesCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeInventoryDeletionsCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeInventoryDeletionsCommand.js deleted file mode 100644 index a36071ea..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeInventoryDeletionsCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_DescribeInventoryDeletionsCommand, se_DescribeInventoryDeletionsCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class DescribeInventoryDeletionsCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, DescribeInventoryDeletionsCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeInventoryDeletionsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DescribeInventoryDeletions", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_DescribeInventoryDeletionsCommand(input, context); - } - deserialize(output, context) { - return de_DescribeInventoryDeletionsCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeMaintenanceWindowExecutionTaskInvocationsCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeMaintenanceWindowExecutionTaskInvocationsCommand.js deleted file mode 100644 index dc86a4a4..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeMaintenanceWindowExecutionTaskInvocationsCommand.js +++ /dev/null @@ -1,48 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { DescribeMaintenanceWindowExecutionTaskInvocationsResultFilterSensitiveLog, } from "../models/models_0"; -import { de_DescribeMaintenanceWindowExecutionTaskInvocationsCommand, se_DescribeMaintenanceWindowExecutionTaskInvocationsCommand, } from "../protocols/Aws_json1_1"; -export { $Command }; -export class DescribeMaintenanceWindowExecutionTaskInvocationsCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, DescribeMaintenanceWindowExecutionTaskInvocationsCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeMaintenanceWindowExecutionTaskInvocationsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: DescribeMaintenanceWindowExecutionTaskInvocationsResultFilterSensitiveLog, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DescribeMaintenanceWindowExecutionTaskInvocations", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_DescribeMaintenanceWindowExecutionTaskInvocationsCommand(input, context); - } - deserialize(output, context) { - return de_DescribeMaintenanceWindowExecutionTaskInvocationsCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeMaintenanceWindowExecutionTasksCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeMaintenanceWindowExecutionTasksCommand.js deleted file mode 100644 index 87399999..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeMaintenanceWindowExecutionTasksCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_DescribeMaintenanceWindowExecutionTasksCommand, se_DescribeMaintenanceWindowExecutionTasksCommand, } from "../protocols/Aws_json1_1"; -export { $Command }; -export class DescribeMaintenanceWindowExecutionTasksCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, DescribeMaintenanceWindowExecutionTasksCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeMaintenanceWindowExecutionTasksCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DescribeMaintenanceWindowExecutionTasks", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_DescribeMaintenanceWindowExecutionTasksCommand(input, context); - } - deserialize(output, context) { - return de_DescribeMaintenanceWindowExecutionTasksCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeMaintenanceWindowExecutionsCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeMaintenanceWindowExecutionsCommand.js deleted file mode 100644 index 1a4c844a..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeMaintenanceWindowExecutionsCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_DescribeMaintenanceWindowExecutionsCommand, se_DescribeMaintenanceWindowExecutionsCommand, } from "../protocols/Aws_json1_1"; -export { $Command }; -export class DescribeMaintenanceWindowExecutionsCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, DescribeMaintenanceWindowExecutionsCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeMaintenanceWindowExecutionsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DescribeMaintenanceWindowExecutions", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_DescribeMaintenanceWindowExecutionsCommand(input, context); - } - deserialize(output, context) { - return de_DescribeMaintenanceWindowExecutionsCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeMaintenanceWindowScheduleCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeMaintenanceWindowScheduleCommand.js deleted file mode 100644 index fe22f377..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeMaintenanceWindowScheduleCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_DescribeMaintenanceWindowScheduleCommand, se_DescribeMaintenanceWindowScheduleCommand, } from "../protocols/Aws_json1_1"; -export { $Command }; -export class DescribeMaintenanceWindowScheduleCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, DescribeMaintenanceWindowScheduleCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeMaintenanceWindowScheduleCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DescribeMaintenanceWindowSchedule", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_DescribeMaintenanceWindowScheduleCommand(input, context); - } - deserialize(output, context) { - return de_DescribeMaintenanceWindowScheduleCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeMaintenanceWindowTargetsCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeMaintenanceWindowTargetsCommand.js deleted file mode 100644 index d7eea8f1..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeMaintenanceWindowTargetsCommand.js +++ /dev/null @@ -1,48 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { DescribeMaintenanceWindowTargetsResultFilterSensitiveLog, } from "../models/models_0"; -import { de_DescribeMaintenanceWindowTargetsCommand, se_DescribeMaintenanceWindowTargetsCommand, } from "../protocols/Aws_json1_1"; -export { $Command }; -export class DescribeMaintenanceWindowTargetsCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, DescribeMaintenanceWindowTargetsCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeMaintenanceWindowTargetsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: DescribeMaintenanceWindowTargetsResultFilterSensitiveLog, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DescribeMaintenanceWindowTargets", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_DescribeMaintenanceWindowTargetsCommand(input, context); - } - deserialize(output, context) { - return de_DescribeMaintenanceWindowTargetsCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeMaintenanceWindowTasksCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeMaintenanceWindowTasksCommand.js deleted file mode 100644 index f49bd9bd..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeMaintenanceWindowTasksCommand.js +++ /dev/null @@ -1,48 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { DescribeMaintenanceWindowTasksResultFilterSensitiveLog, } from "../models/models_1"; -import { de_DescribeMaintenanceWindowTasksCommand, se_DescribeMaintenanceWindowTasksCommand, } from "../protocols/Aws_json1_1"; -export { $Command }; -export class DescribeMaintenanceWindowTasksCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, DescribeMaintenanceWindowTasksCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeMaintenanceWindowTasksCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: DescribeMaintenanceWindowTasksResultFilterSensitiveLog, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DescribeMaintenanceWindowTasks", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_DescribeMaintenanceWindowTasksCommand(input, context); - } - deserialize(output, context) { - return de_DescribeMaintenanceWindowTasksCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeMaintenanceWindowsCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeMaintenanceWindowsCommand.js deleted file mode 100644 index 2c21c0d4..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeMaintenanceWindowsCommand.js +++ /dev/null @@ -1,48 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { DescribeMaintenanceWindowsResultFilterSensitiveLog, } from "../models/models_0"; -import { de_DescribeMaintenanceWindowsCommand, se_DescribeMaintenanceWindowsCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class DescribeMaintenanceWindowsCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, DescribeMaintenanceWindowsCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeMaintenanceWindowsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: DescribeMaintenanceWindowsResultFilterSensitiveLog, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DescribeMaintenanceWindows", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_DescribeMaintenanceWindowsCommand(input, context); - } - deserialize(output, context) { - return de_DescribeMaintenanceWindowsCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeMaintenanceWindowsForTargetCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeMaintenanceWindowsForTargetCommand.js deleted file mode 100644 index 9d4c2f4f..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeMaintenanceWindowsForTargetCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_DescribeMaintenanceWindowsForTargetCommand, se_DescribeMaintenanceWindowsForTargetCommand, } from "../protocols/Aws_json1_1"; -export { $Command }; -export class DescribeMaintenanceWindowsForTargetCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, DescribeMaintenanceWindowsForTargetCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeMaintenanceWindowsForTargetCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DescribeMaintenanceWindowsForTarget", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_DescribeMaintenanceWindowsForTargetCommand(input, context); - } - deserialize(output, context) { - return de_DescribeMaintenanceWindowsForTargetCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeOpsItemsCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeOpsItemsCommand.js deleted file mode 100644 index 455f49d8..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeOpsItemsCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_DescribeOpsItemsCommand, se_DescribeOpsItemsCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class DescribeOpsItemsCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, DescribeOpsItemsCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeOpsItemsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DescribeOpsItems", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_DescribeOpsItemsCommand(input, context); - } - deserialize(output, context) { - return de_DescribeOpsItemsCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeParametersCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeParametersCommand.js deleted file mode 100644 index 66e5a706..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeParametersCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_DescribeParametersCommand, se_DescribeParametersCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class DescribeParametersCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, DescribeParametersCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeParametersCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DescribeParameters", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_DescribeParametersCommand(input, context); - } - deserialize(output, context) { - return de_DescribeParametersCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribePatchBaselinesCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribePatchBaselinesCommand.js deleted file mode 100644 index 88f8842b..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribePatchBaselinesCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_DescribePatchBaselinesCommand, se_DescribePatchBaselinesCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class DescribePatchBaselinesCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, DescribePatchBaselinesCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribePatchBaselinesCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DescribePatchBaselines", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_DescribePatchBaselinesCommand(input, context); - } - deserialize(output, context) { - return de_DescribePatchBaselinesCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribePatchGroupStateCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribePatchGroupStateCommand.js deleted file mode 100644 index 6a43d744..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribePatchGroupStateCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_DescribePatchGroupStateCommand, se_DescribePatchGroupStateCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class DescribePatchGroupStateCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, DescribePatchGroupStateCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribePatchGroupStateCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DescribePatchGroupState", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_DescribePatchGroupStateCommand(input, context); - } - deserialize(output, context) { - return de_DescribePatchGroupStateCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribePatchGroupsCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribePatchGroupsCommand.js deleted file mode 100644 index f7b916b5..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribePatchGroupsCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_DescribePatchGroupsCommand, se_DescribePatchGroupsCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class DescribePatchGroupsCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, DescribePatchGroupsCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribePatchGroupsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DescribePatchGroups", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_DescribePatchGroupsCommand(input, context); - } - deserialize(output, context) { - return de_DescribePatchGroupsCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribePatchPropertiesCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribePatchPropertiesCommand.js deleted file mode 100644 index 279004ed..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribePatchPropertiesCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_DescribePatchPropertiesCommand, se_DescribePatchPropertiesCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class DescribePatchPropertiesCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, DescribePatchPropertiesCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribePatchPropertiesCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DescribePatchProperties", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_DescribePatchPropertiesCommand(input, context); - } - deserialize(output, context) { - return de_DescribePatchPropertiesCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeSessionsCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeSessionsCommand.js deleted file mode 100644 index 3427cff5..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DescribeSessionsCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_DescribeSessionsCommand, se_DescribeSessionsCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class DescribeSessionsCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, DescribeSessionsCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DescribeSessionsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DescribeSessions", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_DescribeSessionsCommand(input, context); - } - deserialize(output, context) { - return de_DescribeSessionsCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DisassociateOpsItemRelatedItemCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/DisassociateOpsItemRelatedItemCommand.js deleted file mode 100644 index 92a68651..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/DisassociateOpsItemRelatedItemCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_DisassociateOpsItemRelatedItemCommand, se_DisassociateOpsItemRelatedItemCommand, } from "../protocols/Aws_json1_1"; -export { $Command }; -export class DisassociateOpsItemRelatedItemCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, DisassociateOpsItemRelatedItemCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "DisassociateOpsItemRelatedItemCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "DisassociateOpsItemRelatedItem", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_DisassociateOpsItemRelatedItemCommand(input, context); - } - deserialize(output, context) { - return de_DisassociateOpsItemRelatedItemCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetAutomationExecutionCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetAutomationExecutionCommand.js deleted file mode 100644 index f6a7dd03..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetAutomationExecutionCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_GetAutomationExecutionCommand, se_GetAutomationExecutionCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class GetAutomationExecutionCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, GetAutomationExecutionCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetAutomationExecutionCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "GetAutomationExecution", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_GetAutomationExecutionCommand(input, context); - } - deserialize(output, context) { - return de_GetAutomationExecutionCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetCalendarStateCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetCalendarStateCommand.js deleted file mode 100644 index d9397ded..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetCalendarStateCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_GetCalendarStateCommand, se_GetCalendarStateCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class GetCalendarStateCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, GetCalendarStateCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetCalendarStateCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "GetCalendarState", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_GetCalendarStateCommand(input, context); - } - deserialize(output, context) { - return de_GetCalendarStateCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetCommandInvocationCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetCommandInvocationCommand.js deleted file mode 100644 index 5f680f5f..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetCommandInvocationCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_GetCommandInvocationCommand, se_GetCommandInvocationCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class GetCommandInvocationCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, GetCommandInvocationCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetCommandInvocationCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "GetCommandInvocation", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_GetCommandInvocationCommand(input, context); - } - deserialize(output, context) { - return de_GetCommandInvocationCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetConnectionStatusCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetConnectionStatusCommand.js deleted file mode 100644 index b0828c09..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetConnectionStatusCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_GetConnectionStatusCommand, se_GetConnectionStatusCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class GetConnectionStatusCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, GetConnectionStatusCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetConnectionStatusCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "GetConnectionStatus", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_GetConnectionStatusCommand(input, context); - } - deserialize(output, context) { - return de_GetConnectionStatusCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetDefaultPatchBaselineCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetDefaultPatchBaselineCommand.js deleted file mode 100644 index 2a5dda6d..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetDefaultPatchBaselineCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_GetDefaultPatchBaselineCommand, se_GetDefaultPatchBaselineCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class GetDefaultPatchBaselineCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, GetDefaultPatchBaselineCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetDefaultPatchBaselineCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "GetDefaultPatchBaseline", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_GetDefaultPatchBaselineCommand(input, context); - } - deserialize(output, context) { - return de_GetDefaultPatchBaselineCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetDeployablePatchSnapshotForInstanceCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetDeployablePatchSnapshotForInstanceCommand.js deleted file mode 100644 index 3a238c73..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetDeployablePatchSnapshotForInstanceCommand.js +++ /dev/null @@ -1,48 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { GetDeployablePatchSnapshotForInstanceRequestFilterSensitiveLog, } from "../models/models_1"; -import { de_GetDeployablePatchSnapshotForInstanceCommand, se_GetDeployablePatchSnapshotForInstanceCommand, } from "../protocols/Aws_json1_1"; -export { $Command }; -export class GetDeployablePatchSnapshotForInstanceCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, GetDeployablePatchSnapshotForInstanceCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetDeployablePatchSnapshotForInstanceCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: GetDeployablePatchSnapshotForInstanceRequestFilterSensitiveLog, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "GetDeployablePatchSnapshotForInstance", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_GetDeployablePatchSnapshotForInstanceCommand(input, context); - } - deserialize(output, context) { - return de_GetDeployablePatchSnapshotForInstanceCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetDocumentCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetDocumentCommand.js deleted file mode 100644 index d4ee57c2..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetDocumentCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_GetDocumentCommand, se_GetDocumentCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class GetDocumentCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, GetDocumentCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetDocumentCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "GetDocument", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_GetDocumentCommand(input, context); - } - deserialize(output, context) { - return de_GetDocumentCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetInventoryCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetInventoryCommand.js deleted file mode 100644 index 58d98b0b..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetInventoryCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_GetInventoryCommand, se_GetInventoryCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class GetInventoryCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, GetInventoryCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetInventoryCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "GetInventory", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_GetInventoryCommand(input, context); - } - deserialize(output, context) { - return de_GetInventoryCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetInventorySchemaCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetInventorySchemaCommand.js deleted file mode 100644 index 30130446..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetInventorySchemaCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_GetInventorySchemaCommand, se_GetInventorySchemaCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class GetInventorySchemaCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, GetInventorySchemaCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetInventorySchemaCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "GetInventorySchema", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_GetInventorySchemaCommand(input, context); - } - deserialize(output, context) { - return de_GetInventorySchemaCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetMaintenanceWindowCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetMaintenanceWindowCommand.js deleted file mode 100644 index 9e27b6ea..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetMaintenanceWindowCommand.js +++ /dev/null @@ -1,48 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { GetMaintenanceWindowResultFilterSensitiveLog, } from "../models/models_1"; -import { de_GetMaintenanceWindowCommand, se_GetMaintenanceWindowCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class GetMaintenanceWindowCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, GetMaintenanceWindowCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetMaintenanceWindowCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: GetMaintenanceWindowResultFilterSensitiveLog, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "GetMaintenanceWindow", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_GetMaintenanceWindowCommand(input, context); - } - deserialize(output, context) { - return de_GetMaintenanceWindowCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetMaintenanceWindowExecutionCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetMaintenanceWindowExecutionCommand.js deleted file mode 100644 index 1d05fa9c..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetMaintenanceWindowExecutionCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_GetMaintenanceWindowExecutionCommand, se_GetMaintenanceWindowExecutionCommand, } from "../protocols/Aws_json1_1"; -export { $Command }; -export class GetMaintenanceWindowExecutionCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, GetMaintenanceWindowExecutionCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetMaintenanceWindowExecutionCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "GetMaintenanceWindowExecution", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_GetMaintenanceWindowExecutionCommand(input, context); - } - deserialize(output, context) { - return de_GetMaintenanceWindowExecutionCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetMaintenanceWindowExecutionTaskCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetMaintenanceWindowExecutionTaskCommand.js deleted file mode 100644 index 66981619..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetMaintenanceWindowExecutionTaskCommand.js +++ /dev/null @@ -1,48 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { GetMaintenanceWindowExecutionTaskResultFilterSensitiveLog, } from "../models/models_1"; -import { de_GetMaintenanceWindowExecutionTaskCommand, se_GetMaintenanceWindowExecutionTaskCommand, } from "../protocols/Aws_json1_1"; -export { $Command }; -export class GetMaintenanceWindowExecutionTaskCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, GetMaintenanceWindowExecutionTaskCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetMaintenanceWindowExecutionTaskCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: GetMaintenanceWindowExecutionTaskResultFilterSensitiveLog, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "GetMaintenanceWindowExecutionTask", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_GetMaintenanceWindowExecutionTaskCommand(input, context); - } - deserialize(output, context) { - return de_GetMaintenanceWindowExecutionTaskCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetMaintenanceWindowExecutionTaskInvocationCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetMaintenanceWindowExecutionTaskInvocationCommand.js deleted file mode 100644 index 2d320a3a..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetMaintenanceWindowExecutionTaskInvocationCommand.js +++ /dev/null @@ -1,48 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { GetMaintenanceWindowExecutionTaskInvocationResultFilterSensitiveLog, } from "../models/models_1"; -import { de_GetMaintenanceWindowExecutionTaskInvocationCommand, se_GetMaintenanceWindowExecutionTaskInvocationCommand, } from "../protocols/Aws_json1_1"; -export { $Command }; -export class GetMaintenanceWindowExecutionTaskInvocationCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, GetMaintenanceWindowExecutionTaskInvocationCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetMaintenanceWindowExecutionTaskInvocationCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: GetMaintenanceWindowExecutionTaskInvocationResultFilterSensitiveLog, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "GetMaintenanceWindowExecutionTaskInvocation", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_GetMaintenanceWindowExecutionTaskInvocationCommand(input, context); - } - deserialize(output, context) { - return de_GetMaintenanceWindowExecutionTaskInvocationCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetMaintenanceWindowTaskCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetMaintenanceWindowTaskCommand.js deleted file mode 100644 index d75ca44f..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetMaintenanceWindowTaskCommand.js +++ /dev/null @@ -1,48 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { GetMaintenanceWindowTaskResultFilterSensitiveLog, } from "../models/models_1"; -import { de_GetMaintenanceWindowTaskCommand, se_GetMaintenanceWindowTaskCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class GetMaintenanceWindowTaskCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, GetMaintenanceWindowTaskCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetMaintenanceWindowTaskCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: GetMaintenanceWindowTaskResultFilterSensitiveLog, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "GetMaintenanceWindowTask", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_GetMaintenanceWindowTaskCommand(input, context); - } - deserialize(output, context) { - return de_GetMaintenanceWindowTaskCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetOpsItemCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetOpsItemCommand.js deleted file mode 100644 index 27f8d945..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetOpsItemCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_GetOpsItemCommand, se_GetOpsItemCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class GetOpsItemCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, GetOpsItemCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetOpsItemCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "GetOpsItem", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_GetOpsItemCommand(input, context); - } - deserialize(output, context) { - return de_GetOpsItemCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetOpsMetadataCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetOpsMetadataCommand.js deleted file mode 100644 index 587e67fd..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetOpsMetadataCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_GetOpsMetadataCommand, se_GetOpsMetadataCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class GetOpsMetadataCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, GetOpsMetadataCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetOpsMetadataCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "GetOpsMetadata", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_GetOpsMetadataCommand(input, context); - } - deserialize(output, context) { - return de_GetOpsMetadataCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetOpsSummaryCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetOpsSummaryCommand.js deleted file mode 100644 index c7c4b59a..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetOpsSummaryCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_GetOpsSummaryCommand, se_GetOpsSummaryCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class GetOpsSummaryCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, GetOpsSummaryCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetOpsSummaryCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "GetOpsSummary", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_GetOpsSummaryCommand(input, context); - } - deserialize(output, context) { - return de_GetOpsSummaryCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetParameterCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetParameterCommand.js deleted file mode 100644 index d570f5c6..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetParameterCommand.js +++ /dev/null @@ -1,48 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { GetParameterResultFilterSensitiveLog } from "../models/models_1"; -import { de_GetParameterCommand, se_GetParameterCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class GetParameterCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, GetParameterCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetParameterCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: GetParameterResultFilterSensitiveLog, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "GetParameter", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_GetParameterCommand(input, context); - } - deserialize(output, context) { - return de_GetParameterCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetParameterHistoryCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetParameterHistoryCommand.js deleted file mode 100644 index 0477a5bf..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetParameterHistoryCommand.js +++ /dev/null @@ -1,48 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { GetParameterHistoryResultFilterSensitiveLog, } from "../models/models_1"; -import { de_GetParameterHistoryCommand, se_GetParameterHistoryCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class GetParameterHistoryCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, GetParameterHistoryCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetParameterHistoryCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: GetParameterHistoryResultFilterSensitiveLog, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "GetParameterHistory", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_GetParameterHistoryCommand(input, context); - } - deserialize(output, context) { - return de_GetParameterHistoryCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetParametersByPathCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetParametersByPathCommand.js deleted file mode 100644 index 7e582a1f..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetParametersByPathCommand.js +++ /dev/null @@ -1,48 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { GetParametersByPathResultFilterSensitiveLog, } from "../models/models_1"; -import { de_GetParametersByPathCommand, se_GetParametersByPathCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class GetParametersByPathCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, GetParametersByPathCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetParametersByPathCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: GetParametersByPathResultFilterSensitiveLog, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "GetParametersByPath", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_GetParametersByPathCommand(input, context); - } - deserialize(output, context) { - return de_GetParametersByPathCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetParametersCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetParametersCommand.js deleted file mode 100644 index 240ff53e..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetParametersCommand.js +++ /dev/null @@ -1,48 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { GetParametersResultFilterSensitiveLog } from "../models/models_1"; -import { de_GetParametersCommand, se_GetParametersCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class GetParametersCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, GetParametersCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetParametersCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: GetParametersResultFilterSensitiveLog, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "GetParameters", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_GetParametersCommand(input, context); - } - deserialize(output, context) { - return de_GetParametersCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetPatchBaselineCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetPatchBaselineCommand.js deleted file mode 100644 index 94ecad00..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetPatchBaselineCommand.js +++ /dev/null @@ -1,48 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { GetPatchBaselineResultFilterSensitiveLog, } from "../models/models_1"; -import { de_GetPatchBaselineCommand, se_GetPatchBaselineCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class GetPatchBaselineCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, GetPatchBaselineCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetPatchBaselineCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: GetPatchBaselineResultFilterSensitiveLog, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "GetPatchBaseline", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_GetPatchBaselineCommand(input, context); - } - deserialize(output, context) { - return de_GetPatchBaselineCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetPatchBaselineForPatchGroupCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetPatchBaselineForPatchGroupCommand.js deleted file mode 100644 index c3bad2e1..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetPatchBaselineForPatchGroupCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_GetPatchBaselineForPatchGroupCommand, se_GetPatchBaselineForPatchGroupCommand, } from "../protocols/Aws_json1_1"; -export { $Command }; -export class GetPatchBaselineForPatchGroupCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, GetPatchBaselineForPatchGroupCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetPatchBaselineForPatchGroupCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "GetPatchBaselineForPatchGroup", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_GetPatchBaselineForPatchGroupCommand(input, context); - } - deserialize(output, context) { - return de_GetPatchBaselineForPatchGroupCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetResourcePoliciesCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetResourcePoliciesCommand.js deleted file mode 100644 index b637d7de..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetResourcePoliciesCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_GetResourcePoliciesCommand, se_GetResourcePoliciesCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class GetResourcePoliciesCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, GetResourcePoliciesCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetResourcePoliciesCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "GetResourcePolicies", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_GetResourcePoliciesCommand(input, context); - } - deserialize(output, context) { - return de_GetResourcePoliciesCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetServiceSettingCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetServiceSettingCommand.js deleted file mode 100644 index 4fa398a8..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/GetServiceSettingCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_GetServiceSettingCommand, se_GetServiceSettingCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class GetServiceSettingCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, GetServiceSettingCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "GetServiceSettingCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "GetServiceSetting", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_GetServiceSettingCommand(input, context); - } - deserialize(output, context) { - return de_GetServiceSettingCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/LabelParameterVersionCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/LabelParameterVersionCommand.js deleted file mode 100644 index d2391728..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/LabelParameterVersionCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_LabelParameterVersionCommand, se_LabelParameterVersionCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class LabelParameterVersionCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, LabelParameterVersionCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "LabelParameterVersionCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "LabelParameterVersion", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_LabelParameterVersionCommand(input, context); - } - deserialize(output, context) { - return de_LabelParameterVersionCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/ListAssociationVersionsCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/ListAssociationVersionsCommand.js deleted file mode 100644 index 61515f74..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/ListAssociationVersionsCommand.js +++ /dev/null @@ -1,48 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { ListAssociationVersionsResultFilterSensitiveLog, } from "../models/models_1"; -import { de_ListAssociationVersionsCommand, se_ListAssociationVersionsCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class ListAssociationVersionsCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, ListAssociationVersionsCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "ListAssociationVersionsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: ListAssociationVersionsResultFilterSensitiveLog, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "ListAssociationVersions", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_ListAssociationVersionsCommand(input, context); - } - deserialize(output, context) { - return de_ListAssociationVersionsCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/ListAssociationsCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/ListAssociationsCommand.js deleted file mode 100644 index 4194b639..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/ListAssociationsCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_ListAssociationsCommand, se_ListAssociationsCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class ListAssociationsCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, ListAssociationsCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "ListAssociationsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "ListAssociations", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_ListAssociationsCommand(input, context); - } - deserialize(output, context) { - return de_ListAssociationsCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/ListCommandInvocationsCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/ListCommandInvocationsCommand.js deleted file mode 100644 index be7f41ff..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/ListCommandInvocationsCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_ListCommandInvocationsCommand, se_ListCommandInvocationsCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class ListCommandInvocationsCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, ListCommandInvocationsCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "ListCommandInvocationsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "ListCommandInvocations", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_ListCommandInvocationsCommand(input, context); - } - deserialize(output, context) { - return de_ListCommandInvocationsCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/ListCommandsCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/ListCommandsCommand.js deleted file mode 100644 index af79a212..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/ListCommandsCommand.js +++ /dev/null @@ -1,48 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { ListCommandsResultFilterSensitiveLog } from "../models/models_1"; -import { de_ListCommandsCommand, se_ListCommandsCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class ListCommandsCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, ListCommandsCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "ListCommandsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: ListCommandsResultFilterSensitiveLog, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "ListCommands", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_ListCommandsCommand(input, context); - } - deserialize(output, context) { - return de_ListCommandsCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/ListComplianceItemsCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/ListComplianceItemsCommand.js deleted file mode 100644 index c03074a7..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/ListComplianceItemsCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_ListComplianceItemsCommand, se_ListComplianceItemsCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class ListComplianceItemsCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, ListComplianceItemsCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "ListComplianceItemsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "ListComplianceItems", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_ListComplianceItemsCommand(input, context); - } - deserialize(output, context) { - return de_ListComplianceItemsCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/ListComplianceSummariesCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/ListComplianceSummariesCommand.js deleted file mode 100644 index 1713d5a7..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/ListComplianceSummariesCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_ListComplianceSummariesCommand, se_ListComplianceSummariesCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class ListComplianceSummariesCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, ListComplianceSummariesCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "ListComplianceSummariesCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "ListComplianceSummaries", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_ListComplianceSummariesCommand(input, context); - } - deserialize(output, context) { - return de_ListComplianceSummariesCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/ListDocumentMetadataHistoryCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/ListDocumentMetadataHistoryCommand.js deleted file mode 100644 index 43bb24f7..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/ListDocumentMetadataHistoryCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_ListDocumentMetadataHistoryCommand, se_ListDocumentMetadataHistoryCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class ListDocumentMetadataHistoryCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, ListDocumentMetadataHistoryCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "ListDocumentMetadataHistoryCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "ListDocumentMetadataHistory", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_ListDocumentMetadataHistoryCommand(input, context); - } - deserialize(output, context) { - return de_ListDocumentMetadataHistoryCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/ListDocumentVersionsCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/ListDocumentVersionsCommand.js deleted file mode 100644 index c6303c3f..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/ListDocumentVersionsCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_ListDocumentVersionsCommand, se_ListDocumentVersionsCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class ListDocumentVersionsCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, ListDocumentVersionsCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "ListDocumentVersionsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "ListDocumentVersions", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_ListDocumentVersionsCommand(input, context); - } - deserialize(output, context) { - return de_ListDocumentVersionsCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/ListDocumentsCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/ListDocumentsCommand.js deleted file mode 100644 index b6532725..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/ListDocumentsCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_ListDocumentsCommand, se_ListDocumentsCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class ListDocumentsCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, ListDocumentsCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "ListDocumentsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "ListDocuments", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_ListDocumentsCommand(input, context); - } - deserialize(output, context) { - return de_ListDocumentsCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/ListInventoryEntriesCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/ListInventoryEntriesCommand.js deleted file mode 100644 index 572952fb..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/ListInventoryEntriesCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_ListInventoryEntriesCommand, se_ListInventoryEntriesCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class ListInventoryEntriesCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, ListInventoryEntriesCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "ListInventoryEntriesCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "ListInventoryEntries", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_ListInventoryEntriesCommand(input, context); - } - deserialize(output, context) { - return de_ListInventoryEntriesCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/ListOpsItemEventsCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/ListOpsItemEventsCommand.js deleted file mode 100644 index 658a34e2..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/ListOpsItemEventsCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_ListOpsItemEventsCommand, se_ListOpsItemEventsCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class ListOpsItemEventsCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, ListOpsItemEventsCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "ListOpsItemEventsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "ListOpsItemEvents", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_ListOpsItemEventsCommand(input, context); - } - deserialize(output, context) { - return de_ListOpsItemEventsCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/ListOpsItemRelatedItemsCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/ListOpsItemRelatedItemsCommand.js deleted file mode 100644 index 39db31f9..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/ListOpsItemRelatedItemsCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_ListOpsItemRelatedItemsCommand, se_ListOpsItemRelatedItemsCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class ListOpsItemRelatedItemsCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, ListOpsItemRelatedItemsCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "ListOpsItemRelatedItemsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "ListOpsItemRelatedItems", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_ListOpsItemRelatedItemsCommand(input, context); - } - deserialize(output, context) { - return de_ListOpsItemRelatedItemsCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/ListOpsMetadataCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/ListOpsMetadataCommand.js deleted file mode 100644 index 0ce6ca90..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/ListOpsMetadataCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_ListOpsMetadataCommand, se_ListOpsMetadataCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class ListOpsMetadataCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, ListOpsMetadataCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "ListOpsMetadataCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "ListOpsMetadata", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_ListOpsMetadataCommand(input, context); - } - deserialize(output, context) { - return de_ListOpsMetadataCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/ListResourceComplianceSummariesCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/ListResourceComplianceSummariesCommand.js deleted file mode 100644 index 9a5e43d9..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/ListResourceComplianceSummariesCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_ListResourceComplianceSummariesCommand, se_ListResourceComplianceSummariesCommand, } from "../protocols/Aws_json1_1"; -export { $Command }; -export class ListResourceComplianceSummariesCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, ListResourceComplianceSummariesCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "ListResourceComplianceSummariesCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "ListResourceComplianceSummaries", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_ListResourceComplianceSummariesCommand(input, context); - } - deserialize(output, context) { - return de_ListResourceComplianceSummariesCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/ListResourceDataSyncCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/ListResourceDataSyncCommand.js deleted file mode 100644 index 4ea16a6f..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/ListResourceDataSyncCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_ListResourceDataSyncCommand, se_ListResourceDataSyncCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class ListResourceDataSyncCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, ListResourceDataSyncCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "ListResourceDataSyncCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "ListResourceDataSync", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_ListResourceDataSyncCommand(input, context); - } - deserialize(output, context) { - return de_ListResourceDataSyncCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/ListTagsForResourceCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/ListTagsForResourceCommand.js deleted file mode 100644 index 600f71ff..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/ListTagsForResourceCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_ListTagsForResourceCommand, se_ListTagsForResourceCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class ListTagsForResourceCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, ListTagsForResourceCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "ListTagsForResourceCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "ListTagsForResource", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_ListTagsForResourceCommand(input, context); - } - deserialize(output, context) { - return de_ListTagsForResourceCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/ModifyDocumentPermissionCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/ModifyDocumentPermissionCommand.js deleted file mode 100644 index 4201be73..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/ModifyDocumentPermissionCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_ModifyDocumentPermissionCommand, se_ModifyDocumentPermissionCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class ModifyDocumentPermissionCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, ModifyDocumentPermissionCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "ModifyDocumentPermissionCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "ModifyDocumentPermission", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_ModifyDocumentPermissionCommand(input, context); - } - deserialize(output, context) { - return de_ModifyDocumentPermissionCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/PutComplianceItemsCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/PutComplianceItemsCommand.js deleted file mode 100644 index a0b29105..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/PutComplianceItemsCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_PutComplianceItemsCommand, se_PutComplianceItemsCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class PutComplianceItemsCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, PutComplianceItemsCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "PutComplianceItemsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "PutComplianceItems", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_PutComplianceItemsCommand(input, context); - } - deserialize(output, context) { - return de_PutComplianceItemsCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/PutInventoryCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/PutInventoryCommand.js deleted file mode 100644 index 4a744c86..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/PutInventoryCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_PutInventoryCommand, se_PutInventoryCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class PutInventoryCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, PutInventoryCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "PutInventoryCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "PutInventory", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_PutInventoryCommand(input, context); - } - deserialize(output, context) { - return de_PutInventoryCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/PutParameterCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/PutParameterCommand.js deleted file mode 100644 index ea3e669e..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/PutParameterCommand.js +++ /dev/null @@ -1,48 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { PutParameterRequestFilterSensitiveLog } from "../models/models_1"; -import { de_PutParameterCommand, se_PutParameterCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class PutParameterCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, PutParameterCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "PutParameterCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: PutParameterRequestFilterSensitiveLog, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "PutParameter", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_PutParameterCommand(input, context); - } - deserialize(output, context) { - return de_PutParameterCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/PutResourcePolicyCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/PutResourcePolicyCommand.js deleted file mode 100644 index 217357de..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/PutResourcePolicyCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_PutResourcePolicyCommand, se_PutResourcePolicyCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class PutResourcePolicyCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, PutResourcePolicyCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "PutResourcePolicyCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "PutResourcePolicy", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_PutResourcePolicyCommand(input, context); - } - deserialize(output, context) { - return de_PutResourcePolicyCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/RegisterDefaultPatchBaselineCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/RegisterDefaultPatchBaselineCommand.js deleted file mode 100644 index bf75bb9b..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/RegisterDefaultPatchBaselineCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_RegisterDefaultPatchBaselineCommand, se_RegisterDefaultPatchBaselineCommand, } from "../protocols/Aws_json1_1"; -export { $Command }; -export class RegisterDefaultPatchBaselineCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, RegisterDefaultPatchBaselineCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "RegisterDefaultPatchBaselineCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "RegisterDefaultPatchBaseline", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_RegisterDefaultPatchBaselineCommand(input, context); - } - deserialize(output, context) { - return de_RegisterDefaultPatchBaselineCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/RegisterPatchBaselineForPatchGroupCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/RegisterPatchBaselineForPatchGroupCommand.js deleted file mode 100644 index eda52139..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/RegisterPatchBaselineForPatchGroupCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_RegisterPatchBaselineForPatchGroupCommand, se_RegisterPatchBaselineForPatchGroupCommand, } from "../protocols/Aws_json1_1"; -export { $Command }; -export class RegisterPatchBaselineForPatchGroupCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, RegisterPatchBaselineForPatchGroupCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "RegisterPatchBaselineForPatchGroupCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "RegisterPatchBaselineForPatchGroup", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_RegisterPatchBaselineForPatchGroupCommand(input, context); - } - deserialize(output, context) { - return de_RegisterPatchBaselineForPatchGroupCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/RegisterTargetWithMaintenanceWindowCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/RegisterTargetWithMaintenanceWindowCommand.js deleted file mode 100644 index 45329559..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/RegisterTargetWithMaintenanceWindowCommand.js +++ /dev/null @@ -1,48 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { RegisterTargetWithMaintenanceWindowRequestFilterSensitiveLog, } from "../models/models_1"; -import { de_RegisterTargetWithMaintenanceWindowCommand, se_RegisterTargetWithMaintenanceWindowCommand, } from "../protocols/Aws_json1_1"; -export { $Command }; -export class RegisterTargetWithMaintenanceWindowCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, RegisterTargetWithMaintenanceWindowCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "RegisterTargetWithMaintenanceWindowCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: RegisterTargetWithMaintenanceWindowRequestFilterSensitiveLog, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "RegisterTargetWithMaintenanceWindow", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_RegisterTargetWithMaintenanceWindowCommand(input, context); - } - deserialize(output, context) { - return de_RegisterTargetWithMaintenanceWindowCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/RegisterTaskWithMaintenanceWindowCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/RegisterTaskWithMaintenanceWindowCommand.js deleted file mode 100644 index bc69d46c..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/RegisterTaskWithMaintenanceWindowCommand.js +++ /dev/null @@ -1,48 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { RegisterTaskWithMaintenanceWindowRequestFilterSensitiveLog, } from "../models/models_1"; -import { de_RegisterTaskWithMaintenanceWindowCommand, se_RegisterTaskWithMaintenanceWindowCommand, } from "../protocols/Aws_json1_1"; -export { $Command }; -export class RegisterTaskWithMaintenanceWindowCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, RegisterTaskWithMaintenanceWindowCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "RegisterTaskWithMaintenanceWindowCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: RegisterTaskWithMaintenanceWindowRequestFilterSensitiveLog, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "RegisterTaskWithMaintenanceWindow", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_RegisterTaskWithMaintenanceWindowCommand(input, context); - } - deserialize(output, context) { - return de_RegisterTaskWithMaintenanceWindowCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/RemoveTagsFromResourceCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/RemoveTagsFromResourceCommand.js deleted file mode 100644 index 2433d97a..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/RemoveTagsFromResourceCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_RemoveTagsFromResourceCommand, se_RemoveTagsFromResourceCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class RemoveTagsFromResourceCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, RemoveTagsFromResourceCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "RemoveTagsFromResourceCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "RemoveTagsFromResource", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_RemoveTagsFromResourceCommand(input, context); - } - deserialize(output, context) { - return de_RemoveTagsFromResourceCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/ResetServiceSettingCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/ResetServiceSettingCommand.js deleted file mode 100644 index 2ac8c944..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/ResetServiceSettingCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_ResetServiceSettingCommand, se_ResetServiceSettingCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class ResetServiceSettingCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, ResetServiceSettingCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "ResetServiceSettingCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "ResetServiceSetting", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_ResetServiceSettingCommand(input, context); - } - deserialize(output, context) { - return de_ResetServiceSettingCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/ResumeSessionCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/ResumeSessionCommand.js deleted file mode 100644 index c815b4d4..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/ResumeSessionCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_ResumeSessionCommand, se_ResumeSessionCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class ResumeSessionCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, ResumeSessionCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "ResumeSessionCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "ResumeSession", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_ResumeSessionCommand(input, context); - } - deserialize(output, context) { - return de_ResumeSessionCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/SendAutomationSignalCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/SendAutomationSignalCommand.js deleted file mode 100644 index 8ff771b8..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/SendAutomationSignalCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_SendAutomationSignalCommand, se_SendAutomationSignalCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class SendAutomationSignalCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, SendAutomationSignalCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "SendAutomationSignalCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "SendAutomationSignal", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_SendAutomationSignalCommand(input, context); - } - deserialize(output, context) { - return de_SendAutomationSignalCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/SendCommandCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/SendCommandCommand.js deleted file mode 100644 index ba05970a..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/SendCommandCommand.js +++ /dev/null @@ -1,48 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { SendCommandRequestFilterSensitiveLog, SendCommandResultFilterSensitiveLog, } from "../models/models_1"; -import { de_SendCommandCommand, se_SendCommandCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class SendCommandCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, SendCommandCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "SendCommandCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: SendCommandRequestFilterSensitiveLog, - outputFilterSensitiveLog: SendCommandResultFilterSensitiveLog, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "SendCommand", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_SendCommandCommand(input, context); - } - deserialize(output, context) { - return de_SendCommandCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/StartAssociationsOnceCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/StartAssociationsOnceCommand.js deleted file mode 100644 index fab7ccfc..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/StartAssociationsOnceCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_StartAssociationsOnceCommand, se_StartAssociationsOnceCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class StartAssociationsOnceCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, StartAssociationsOnceCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "StartAssociationsOnceCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "StartAssociationsOnce", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_StartAssociationsOnceCommand(input, context); - } - deserialize(output, context) { - return de_StartAssociationsOnceCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/StartAutomationExecutionCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/StartAutomationExecutionCommand.js deleted file mode 100644 index 20129f8f..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/StartAutomationExecutionCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_StartAutomationExecutionCommand, se_StartAutomationExecutionCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class StartAutomationExecutionCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, StartAutomationExecutionCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "StartAutomationExecutionCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "StartAutomationExecution", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_StartAutomationExecutionCommand(input, context); - } - deserialize(output, context) { - return de_StartAutomationExecutionCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/StartChangeRequestExecutionCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/StartChangeRequestExecutionCommand.js deleted file mode 100644 index d037b4a5..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/StartChangeRequestExecutionCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_StartChangeRequestExecutionCommand, se_StartChangeRequestExecutionCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class StartChangeRequestExecutionCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, StartChangeRequestExecutionCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "StartChangeRequestExecutionCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "StartChangeRequestExecution", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_StartChangeRequestExecutionCommand(input, context); - } - deserialize(output, context) { - return de_StartChangeRequestExecutionCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/StartSessionCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/StartSessionCommand.js deleted file mode 100644 index 613e9115..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/StartSessionCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_StartSessionCommand, se_StartSessionCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class StartSessionCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, StartSessionCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "StartSessionCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "StartSession", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_StartSessionCommand(input, context); - } - deserialize(output, context) { - return de_StartSessionCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/StopAutomationExecutionCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/StopAutomationExecutionCommand.js deleted file mode 100644 index ab66b645..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/StopAutomationExecutionCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_StopAutomationExecutionCommand, se_StopAutomationExecutionCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class StopAutomationExecutionCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, StopAutomationExecutionCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "StopAutomationExecutionCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "StopAutomationExecution", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_StopAutomationExecutionCommand(input, context); - } - deserialize(output, context) { - return de_StopAutomationExecutionCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/TerminateSessionCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/TerminateSessionCommand.js deleted file mode 100644 index b5389e01..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/TerminateSessionCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_TerminateSessionCommand, se_TerminateSessionCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class TerminateSessionCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, TerminateSessionCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "TerminateSessionCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "TerminateSession", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_TerminateSessionCommand(input, context); - } - deserialize(output, context) { - return de_TerminateSessionCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/UnlabelParameterVersionCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/UnlabelParameterVersionCommand.js deleted file mode 100644 index b3b5f902..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/UnlabelParameterVersionCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_UnlabelParameterVersionCommand, se_UnlabelParameterVersionCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class UnlabelParameterVersionCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, UnlabelParameterVersionCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "UnlabelParameterVersionCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "UnlabelParameterVersion", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_UnlabelParameterVersionCommand(input, context); - } - deserialize(output, context) { - return de_UnlabelParameterVersionCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/UpdateAssociationCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/UpdateAssociationCommand.js deleted file mode 100644 index b0d926f3..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/UpdateAssociationCommand.js +++ /dev/null @@ -1,48 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { UpdateAssociationRequestFilterSensitiveLog, UpdateAssociationResultFilterSensitiveLog, } from "../models/models_2"; -import { de_UpdateAssociationCommand, se_UpdateAssociationCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class UpdateAssociationCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, UpdateAssociationCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "UpdateAssociationCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: UpdateAssociationRequestFilterSensitiveLog, - outputFilterSensitiveLog: UpdateAssociationResultFilterSensitiveLog, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "UpdateAssociation", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_UpdateAssociationCommand(input, context); - } - deserialize(output, context) { - return de_UpdateAssociationCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/UpdateAssociationStatusCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/UpdateAssociationStatusCommand.js deleted file mode 100644 index 5c3e5a23..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/UpdateAssociationStatusCommand.js +++ /dev/null @@ -1,48 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { UpdateAssociationStatusResultFilterSensitiveLog, } from "../models/models_2"; -import { de_UpdateAssociationStatusCommand, se_UpdateAssociationStatusCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class UpdateAssociationStatusCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, UpdateAssociationStatusCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "UpdateAssociationStatusCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: UpdateAssociationStatusResultFilterSensitiveLog, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "UpdateAssociationStatus", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_UpdateAssociationStatusCommand(input, context); - } - deserialize(output, context) { - return de_UpdateAssociationStatusCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/UpdateDocumentCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/UpdateDocumentCommand.js deleted file mode 100644 index 2036da87..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/UpdateDocumentCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_UpdateDocumentCommand, se_UpdateDocumentCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class UpdateDocumentCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, UpdateDocumentCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "UpdateDocumentCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "UpdateDocument", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_UpdateDocumentCommand(input, context); - } - deserialize(output, context) { - return de_UpdateDocumentCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/UpdateDocumentDefaultVersionCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/UpdateDocumentDefaultVersionCommand.js deleted file mode 100644 index f14decc3..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/UpdateDocumentDefaultVersionCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_UpdateDocumentDefaultVersionCommand, se_UpdateDocumentDefaultVersionCommand, } from "../protocols/Aws_json1_1"; -export { $Command }; -export class UpdateDocumentDefaultVersionCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, UpdateDocumentDefaultVersionCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "UpdateDocumentDefaultVersionCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "UpdateDocumentDefaultVersion", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_UpdateDocumentDefaultVersionCommand(input, context); - } - deserialize(output, context) { - return de_UpdateDocumentDefaultVersionCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/UpdateDocumentMetadataCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/UpdateDocumentMetadataCommand.js deleted file mode 100644 index b752d161..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/UpdateDocumentMetadataCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_UpdateDocumentMetadataCommand, se_UpdateDocumentMetadataCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class UpdateDocumentMetadataCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, UpdateDocumentMetadataCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "UpdateDocumentMetadataCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "UpdateDocumentMetadata", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_UpdateDocumentMetadataCommand(input, context); - } - deserialize(output, context) { - return de_UpdateDocumentMetadataCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/UpdateMaintenanceWindowCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/UpdateMaintenanceWindowCommand.js deleted file mode 100644 index b575ced0..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/UpdateMaintenanceWindowCommand.js +++ /dev/null @@ -1,48 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { UpdateMaintenanceWindowRequestFilterSensitiveLog, UpdateMaintenanceWindowResultFilterSensitiveLog, } from "../models/models_2"; -import { de_UpdateMaintenanceWindowCommand, se_UpdateMaintenanceWindowCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class UpdateMaintenanceWindowCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, UpdateMaintenanceWindowCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "UpdateMaintenanceWindowCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: UpdateMaintenanceWindowRequestFilterSensitiveLog, - outputFilterSensitiveLog: UpdateMaintenanceWindowResultFilterSensitiveLog, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "UpdateMaintenanceWindow", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_UpdateMaintenanceWindowCommand(input, context); - } - deserialize(output, context) { - return de_UpdateMaintenanceWindowCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/UpdateMaintenanceWindowTargetCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/UpdateMaintenanceWindowTargetCommand.js deleted file mode 100644 index c2fc6c06..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/UpdateMaintenanceWindowTargetCommand.js +++ /dev/null @@ -1,48 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { UpdateMaintenanceWindowTargetRequestFilterSensitiveLog, UpdateMaintenanceWindowTargetResultFilterSensitiveLog, } from "../models/models_2"; -import { de_UpdateMaintenanceWindowTargetCommand, se_UpdateMaintenanceWindowTargetCommand, } from "../protocols/Aws_json1_1"; -export { $Command }; -export class UpdateMaintenanceWindowTargetCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, UpdateMaintenanceWindowTargetCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "UpdateMaintenanceWindowTargetCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: UpdateMaintenanceWindowTargetRequestFilterSensitiveLog, - outputFilterSensitiveLog: UpdateMaintenanceWindowTargetResultFilterSensitiveLog, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "UpdateMaintenanceWindowTarget", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_UpdateMaintenanceWindowTargetCommand(input, context); - } - deserialize(output, context) { - return de_UpdateMaintenanceWindowTargetCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/UpdateMaintenanceWindowTaskCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/UpdateMaintenanceWindowTaskCommand.js deleted file mode 100644 index b0fb9cf4..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/UpdateMaintenanceWindowTaskCommand.js +++ /dev/null @@ -1,48 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { UpdateMaintenanceWindowTaskRequestFilterSensitiveLog, UpdateMaintenanceWindowTaskResultFilterSensitiveLog, } from "../models/models_2"; -import { de_UpdateMaintenanceWindowTaskCommand, se_UpdateMaintenanceWindowTaskCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class UpdateMaintenanceWindowTaskCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, UpdateMaintenanceWindowTaskCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "UpdateMaintenanceWindowTaskCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: UpdateMaintenanceWindowTaskRequestFilterSensitiveLog, - outputFilterSensitiveLog: UpdateMaintenanceWindowTaskResultFilterSensitiveLog, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "UpdateMaintenanceWindowTask", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_UpdateMaintenanceWindowTaskCommand(input, context); - } - deserialize(output, context) { - return de_UpdateMaintenanceWindowTaskCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/UpdateManagedInstanceRoleCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/UpdateManagedInstanceRoleCommand.js deleted file mode 100644 index bc6be49a..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/UpdateManagedInstanceRoleCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_UpdateManagedInstanceRoleCommand, se_UpdateManagedInstanceRoleCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class UpdateManagedInstanceRoleCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, UpdateManagedInstanceRoleCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "UpdateManagedInstanceRoleCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "UpdateManagedInstanceRole", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_UpdateManagedInstanceRoleCommand(input, context); - } - deserialize(output, context) { - return de_UpdateManagedInstanceRoleCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/UpdateOpsItemCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/UpdateOpsItemCommand.js deleted file mode 100644 index 6d38e620..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/UpdateOpsItemCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_UpdateOpsItemCommand, se_UpdateOpsItemCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class UpdateOpsItemCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, UpdateOpsItemCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "UpdateOpsItemCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "UpdateOpsItem", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_UpdateOpsItemCommand(input, context); - } - deserialize(output, context) { - return de_UpdateOpsItemCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/UpdateOpsMetadataCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/UpdateOpsMetadataCommand.js deleted file mode 100644 index 51f32695..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/UpdateOpsMetadataCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_UpdateOpsMetadataCommand, se_UpdateOpsMetadataCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class UpdateOpsMetadataCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, UpdateOpsMetadataCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "UpdateOpsMetadataCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "UpdateOpsMetadata", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_UpdateOpsMetadataCommand(input, context); - } - deserialize(output, context) { - return de_UpdateOpsMetadataCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/UpdatePatchBaselineCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/UpdatePatchBaselineCommand.js deleted file mode 100644 index 399b1171..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/UpdatePatchBaselineCommand.js +++ /dev/null @@ -1,48 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { UpdatePatchBaselineRequestFilterSensitiveLog, UpdatePatchBaselineResultFilterSensitiveLog, } from "../models/models_2"; -import { de_UpdatePatchBaselineCommand, se_UpdatePatchBaselineCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class UpdatePatchBaselineCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, UpdatePatchBaselineCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "UpdatePatchBaselineCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: UpdatePatchBaselineRequestFilterSensitiveLog, - outputFilterSensitiveLog: UpdatePatchBaselineResultFilterSensitiveLog, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "UpdatePatchBaseline", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_UpdatePatchBaselineCommand(input, context); - } - deserialize(output, context) { - return de_UpdatePatchBaselineCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/UpdateResourceDataSyncCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/UpdateResourceDataSyncCommand.js deleted file mode 100644 index f910aff9..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/UpdateResourceDataSyncCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_UpdateResourceDataSyncCommand, se_UpdateResourceDataSyncCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class UpdateResourceDataSyncCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, UpdateResourceDataSyncCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "UpdateResourceDataSyncCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "UpdateResourceDataSync", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_UpdateResourceDataSyncCommand(input, context); - } - deserialize(output, context) { - return de_UpdateResourceDataSyncCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/UpdateServiceSettingCommand.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/UpdateServiceSettingCommand.js deleted file mode 100644 index 3b4d73dd..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/UpdateServiceSettingCommand.js +++ /dev/null @@ -1,47 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_UpdateServiceSettingCommand, se_UpdateServiceSettingCommand } from "../protocols/Aws_json1_1"; -export { $Command }; -export class UpdateServiceSettingCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, UpdateServiceSettingCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSMClient"; - const commandName = "UpdateServiceSettingCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AmazonSSM", - operation: "UpdateServiceSetting", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_UpdateServiceSettingCommand(input, context); - } - deserialize(output, context) { - return de_UpdateServiceSettingCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/commands/index.js b/node_modules/@aws-sdk/client-ssm/dist-es/commands/index.js deleted file mode 100644 index ae442763..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/commands/index.js +++ /dev/null @@ -1,139 +0,0 @@ -export * from "./AddTagsToResourceCommand"; -export * from "./AssociateOpsItemRelatedItemCommand"; -export * from "./CancelCommandCommand"; -export * from "./CancelMaintenanceWindowExecutionCommand"; -export * from "./CreateActivationCommand"; -export * from "./CreateAssociationBatchCommand"; -export * from "./CreateAssociationCommand"; -export * from "./CreateDocumentCommand"; -export * from "./CreateMaintenanceWindowCommand"; -export * from "./CreateOpsItemCommand"; -export * from "./CreateOpsMetadataCommand"; -export * from "./CreatePatchBaselineCommand"; -export * from "./CreateResourceDataSyncCommand"; -export * from "./DeleteActivationCommand"; -export * from "./DeleteAssociationCommand"; -export * from "./DeleteDocumentCommand"; -export * from "./DeleteInventoryCommand"; -export * from "./DeleteMaintenanceWindowCommand"; -export * from "./DeleteOpsItemCommand"; -export * from "./DeleteOpsMetadataCommand"; -export * from "./DeleteParameterCommand"; -export * from "./DeleteParametersCommand"; -export * from "./DeletePatchBaselineCommand"; -export * from "./DeleteResourceDataSyncCommand"; -export * from "./DeleteResourcePolicyCommand"; -export * from "./DeregisterManagedInstanceCommand"; -export * from "./DeregisterPatchBaselineForPatchGroupCommand"; -export * from "./DeregisterTargetFromMaintenanceWindowCommand"; -export * from "./DeregisterTaskFromMaintenanceWindowCommand"; -export * from "./DescribeActivationsCommand"; -export * from "./DescribeAssociationCommand"; -export * from "./DescribeAssociationExecutionTargetsCommand"; -export * from "./DescribeAssociationExecutionsCommand"; -export * from "./DescribeAutomationExecutionsCommand"; -export * from "./DescribeAutomationStepExecutionsCommand"; -export * from "./DescribeAvailablePatchesCommand"; -export * from "./DescribeDocumentCommand"; -export * from "./DescribeDocumentPermissionCommand"; -export * from "./DescribeEffectiveInstanceAssociationsCommand"; -export * from "./DescribeEffectivePatchesForPatchBaselineCommand"; -export * from "./DescribeInstanceAssociationsStatusCommand"; -export * from "./DescribeInstanceInformationCommand"; -export * from "./DescribeInstancePatchStatesCommand"; -export * from "./DescribeInstancePatchStatesForPatchGroupCommand"; -export * from "./DescribeInstancePatchesCommand"; -export * from "./DescribeInventoryDeletionsCommand"; -export * from "./DescribeMaintenanceWindowExecutionTaskInvocationsCommand"; -export * from "./DescribeMaintenanceWindowExecutionTasksCommand"; -export * from "./DescribeMaintenanceWindowExecutionsCommand"; -export * from "./DescribeMaintenanceWindowScheduleCommand"; -export * from "./DescribeMaintenanceWindowTargetsCommand"; -export * from "./DescribeMaintenanceWindowTasksCommand"; -export * from "./DescribeMaintenanceWindowsCommand"; -export * from "./DescribeMaintenanceWindowsForTargetCommand"; -export * from "./DescribeOpsItemsCommand"; -export * from "./DescribeParametersCommand"; -export * from "./DescribePatchBaselinesCommand"; -export * from "./DescribePatchGroupStateCommand"; -export * from "./DescribePatchGroupsCommand"; -export * from "./DescribePatchPropertiesCommand"; -export * from "./DescribeSessionsCommand"; -export * from "./DisassociateOpsItemRelatedItemCommand"; -export * from "./GetAutomationExecutionCommand"; -export * from "./GetCalendarStateCommand"; -export * from "./GetCommandInvocationCommand"; -export * from "./GetConnectionStatusCommand"; -export * from "./GetDefaultPatchBaselineCommand"; -export * from "./GetDeployablePatchSnapshotForInstanceCommand"; -export * from "./GetDocumentCommand"; -export * from "./GetInventoryCommand"; -export * from "./GetInventorySchemaCommand"; -export * from "./GetMaintenanceWindowCommand"; -export * from "./GetMaintenanceWindowExecutionCommand"; -export * from "./GetMaintenanceWindowExecutionTaskCommand"; -export * from "./GetMaintenanceWindowExecutionTaskInvocationCommand"; -export * from "./GetMaintenanceWindowTaskCommand"; -export * from "./GetOpsItemCommand"; -export * from "./GetOpsMetadataCommand"; -export * from "./GetOpsSummaryCommand"; -export * from "./GetParameterCommand"; -export * from "./GetParameterHistoryCommand"; -export * from "./GetParametersByPathCommand"; -export * from "./GetParametersCommand"; -export * from "./GetPatchBaselineCommand"; -export * from "./GetPatchBaselineForPatchGroupCommand"; -export * from "./GetResourcePoliciesCommand"; -export * from "./GetServiceSettingCommand"; -export * from "./LabelParameterVersionCommand"; -export * from "./ListAssociationVersionsCommand"; -export * from "./ListAssociationsCommand"; -export * from "./ListCommandInvocationsCommand"; -export * from "./ListCommandsCommand"; -export * from "./ListComplianceItemsCommand"; -export * from "./ListComplianceSummariesCommand"; -export * from "./ListDocumentMetadataHistoryCommand"; -export * from "./ListDocumentVersionsCommand"; -export * from "./ListDocumentsCommand"; -export * from "./ListInventoryEntriesCommand"; -export * from "./ListOpsItemEventsCommand"; -export * from "./ListOpsItemRelatedItemsCommand"; -export * from "./ListOpsMetadataCommand"; -export * from "./ListResourceComplianceSummariesCommand"; -export * from "./ListResourceDataSyncCommand"; -export * from "./ListTagsForResourceCommand"; -export * from "./ModifyDocumentPermissionCommand"; -export * from "./PutComplianceItemsCommand"; -export * from "./PutInventoryCommand"; -export * from "./PutParameterCommand"; -export * from "./PutResourcePolicyCommand"; -export * from "./RegisterDefaultPatchBaselineCommand"; -export * from "./RegisterPatchBaselineForPatchGroupCommand"; -export * from "./RegisterTargetWithMaintenanceWindowCommand"; -export * from "./RegisterTaskWithMaintenanceWindowCommand"; -export * from "./RemoveTagsFromResourceCommand"; -export * from "./ResetServiceSettingCommand"; -export * from "./ResumeSessionCommand"; -export * from "./SendAutomationSignalCommand"; -export * from "./SendCommandCommand"; -export * from "./StartAssociationsOnceCommand"; -export * from "./StartAutomationExecutionCommand"; -export * from "./StartChangeRequestExecutionCommand"; -export * from "./StartSessionCommand"; -export * from "./StopAutomationExecutionCommand"; -export * from "./TerminateSessionCommand"; -export * from "./UnlabelParameterVersionCommand"; -export * from "./UpdateAssociationCommand"; -export * from "./UpdateAssociationStatusCommand"; -export * from "./UpdateDocumentCommand"; -export * from "./UpdateDocumentDefaultVersionCommand"; -export * from "./UpdateDocumentMetadataCommand"; -export * from "./UpdateMaintenanceWindowCommand"; -export * from "./UpdateMaintenanceWindowTargetCommand"; -export * from "./UpdateMaintenanceWindowTaskCommand"; -export * from "./UpdateManagedInstanceRoleCommand"; -export * from "./UpdateOpsItemCommand"; -export * from "./UpdateOpsMetadataCommand"; -export * from "./UpdatePatchBaselineCommand"; -export * from "./UpdateResourceDataSyncCommand"; -export * from "./UpdateServiceSettingCommand"; diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/endpoint/EndpointParameters.js b/node_modules/@aws-sdk/client-ssm/dist-es/endpoint/EndpointParameters.js deleted file mode 100644 index 35d3decf..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/endpoint/EndpointParameters.js +++ /dev/null @@ -1,8 +0,0 @@ -export const resolveClientEndpointParameters = (options) => { - return { - ...options, - useDualstackEndpoint: options.useDualstackEndpoint ?? false, - useFipsEndpoint: options.useFipsEndpoint ?? false, - defaultSigningName: "ssm", - }; -}; diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/endpoint/endpointResolver.js b/node_modules/@aws-sdk/client-ssm/dist-es/endpoint/endpointResolver.js deleted file mode 100644 index 5c359268..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/endpoint/endpointResolver.js +++ /dev/null @@ -1,8 +0,0 @@ -import { resolveEndpoint } from "@smithy/util-endpoints"; -import { ruleSet } from "./ruleset"; -export const defaultEndpointResolver = (endpointParams, context = {}) => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams, - logger: context.logger, - }); -}; diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/endpoint/ruleset.js b/node_modules/@aws-sdk/client-ssm/dist-es/endpoint/ruleset.js deleted file mode 100644 index 434bb28d..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/endpoint/ruleset.js +++ /dev/null @@ -1,4 +0,0 @@ -const u = "required", v = "fn", w = "argv", x = "ref"; -const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "getAttr", i = { [u]: false, "type": "String" }, j = { [u]: true, "default": false, "type": "Boolean" }, k = { [x]: "Endpoint" }, l = { [v]: c, [w]: [{ [x]: "UseFIPS" }, true] }, m = { [v]: c, [w]: [{ [x]: "UseDualStack" }, true] }, n = {}, o = { [v]: h, [w]: [{ [x]: g }, "supportsFIPS"] }, p = { [x]: g }, q = { [v]: c, [w]: [true, { [v]: h, [w]: [p, "supportsDualStack"] }] }, r = [l], s = [m], t = [{ [x]: "Region" }]; -const _data = { version: "1.0", parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i }, rules: [{ conditions: [{ [v]: b, [w]: [k] }], rules: [{ conditions: r, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: s, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: k, properties: n, headers: n }, type: e }], type: f }, { conditions: [{ [v]: b, [w]: t }], rules: [{ conditions: [{ [v]: "aws.partition", [w]: t, assign: g }], rules: [{ conditions: [l, m], rules: [{ conditions: [{ [v]: c, [w]: [a, o] }, q], rules: [{ endpoint: { url: "https://ssm-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: r, rules: [{ conditions: [{ [v]: c, [w]: [o, a] }], rules: [{ conditions: [{ [v]: "stringEquals", [w]: [{ [v]: h, [w]: [p, "name"] }, "aws-us-gov"] }], endpoint: { url: "https://ssm.{Region}.amazonaws.com", properties: n, headers: n }, type: e }, { endpoint: { url: "https://ssm-fips.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: s, rules: [{ conditions: [q], rules: [{ endpoint: { url: "https://ssm.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://ssm.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] }; -export const ruleSet = _data; diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/extensionConfiguration.js b/node_modules/@aws-sdk/client-ssm/dist-es/extensionConfiguration.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/extensionConfiguration.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/index.js b/node_modules/@aws-sdk/client-ssm/dist-es/index.js deleted file mode 100644 index 0290bd5a..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/index.js +++ /dev/null @@ -1,8 +0,0 @@ -export * from "./SSMClient"; -export * from "./SSM"; -export * from "./commands"; -export * from "./pagination"; -export * from "./waiters"; -export * from "./models"; -import "@aws-sdk/util-endpoints"; -export { SSMServiceException } from "./models/SSMServiceException"; diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/models/SSMServiceException.js b/node_modules/@aws-sdk/client-ssm/dist-es/models/SSMServiceException.js deleted file mode 100644 index e4259841..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/models/SSMServiceException.js +++ /dev/null @@ -1,8 +0,0 @@ -import { ServiceException as __ServiceException, } from "@smithy/smithy-client"; -export { __ServiceException }; -export class SSMServiceException extends __ServiceException { - constructor(options) { - super(options); - Object.setPrototypeOf(this, SSMServiceException.prototype); - } -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/models/index.js b/node_modules/@aws-sdk/client-ssm/dist-es/models/index.js deleted file mode 100644 index fd6a6aae..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/models/index.js +++ /dev/null @@ -1,3 +0,0 @@ -export * from "./models_0"; -export * from "./models_1"; -export * from "./models_2"; diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/models/models_0.js b/node_modules/@aws-sdk/client-ssm/dist-es/models/models_0.js deleted file mode 100644 index f4fb0a7b..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/models/models_0.js +++ /dev/null @@ -1,1304 +0,0 @@ -import { SENSITIVE_STRING } from "@smithy/smithy-client"; -import { SSMServiceException as __BaseException } from "./SSMServiceException"; -export const ResourceTypeForTagging = { - ASSOCIATION: "Association", - AUTOMATION: "Automation", - DOCUMENT: "Document", - MAINTENANCE_WINDOW: "MaintenanceWindow", - MANAGED_INSTANCE: "ManagedInstance", - OPSMETADATA: "OpsMetadata", - OPS_ITEM: "OpsItem", - PARAMETER: "Parameter", - PATCH_BASELINE: "PatchBaseline", -}; -export class InternalServerError extends __BaseException { - constructor(opts) { - super({ - name: "InternalServerError", - $fault: "server", - ...opts, - }); - this.name = "InternalServerError"; - this.$fault = "server"; - Object.setPrototypeOf(this, InternalServerError.prototype); - this.Message = opts.Message; - } -} -export class InvalidResourceId extends __BaseException { - constructor(opts) { - super({ - name: "InvalidResourceId", - $fault: "client", - ...opts, - }); - this.name = "InvalidResourceId"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidResourceId.prototype); - } -} -export class InvalidResourceType extends __BaseException { - constructor(opts) { - super({ - name: "InvalidResourceType", - $fault: "client", - ...opts, - }); - this.name = "InvalidResourceType"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidResourceType.prototype); - } -} -export class TooManyTagsError extends __BaseException { - constructor(opts) { - super({ - name: "TooManyTagsError", - $fault: "client", - ...opts, - }); - this.name = "TooManyTagsError"; - this.$fault = "client"; - Object.setPrototypeOf(this, TooManyTagsError.prototype); - } -} -export class TooManyUpdates extends __BaseException { - constructor(opts) { - super({ - name: "TooManyUpdates", - $fault: "client", - ...opts, - }); - this.name = "TooManyUpdates"; - this.$fault = "client"; - Object.setPrototypeOf(this, TooManyUpdates.prototype); - this.Message = opts.Message; - } -} -export const ExternalAlarmState = { - ALARM: "ALARM", - UNKNOWN: "UNKNOWN", -}; -export class AlreadyExistsException extends __BaseException { - constructor(opts) { - super({ - name: "AlreadyExistsException", - $fault: "client", - ...opts, - }); - this.name = "AlreadyExistsException"; - this.$fault = "client"; - Object.setPrototypeOf(this, AlreadyExistsException.prototype); - this.Message = opts.Message; - } -} -export class OpsItemConflictException extends __BaseException { - constructor(opts) { - super({ - name: "OpsItemConflictException", - $fault: "client", - ...opts, - }); - this.name = "OpsItemConflictException"; - this.$fault = "client"; - Object.setPrototypeOf(this, OpsItemConflictException.prototype); - this.Message = opts.Message; - } -} -export class OpsItemInvalidParameterException extends __BaseException { - constructor(opts) { - super({ - name: "OpsItemInvalidParameterException", - $fault: "client", - ...opts, - }); - this.name = "OpsItemInvalidParameterException"; - this.$fault = "client"; - Object.setPrototypeOf(this, OpsItemInvalidParameterException.prototype); - this.ParameterNames = opts.ParameterNames; - this.Message = opts.Message; - } -} -export class OpsItemLimitExceededException extends __BaseException { - constructor(opts) { - super({ - name: "OpsItemLimitExceededException", - $fault: "client", - ...opts, - }); - this.name = "OpsItemLimitExceededException"; - this.$fault = "client"; - Object.setPrototypeOf(this, OpsItemLimitExceededException.prototype); - this.ResourceTypes = opts.ResourceTypes; - this.Limit = opts.Limit; - this.LimitType = opts.LimitType; - this.Message = opts.Message; - } -} -export class OpsItemNotFoundException extends __BaseException { - constructor(opts) { - super({ - name: "OpsItemNotFoundException", - $fault: "client", - ...opts, - }); - this.name = "OpsItemNotFoundException"; - this.$fault = "client"; - Object.setPrototypeOf(this, OpsItemNotFoundException.prototype); - this.Message = opts.Message; - } -} -export class OpsItemRelatedItemAlreadyExistsException extends __BaseException { - constructor(opts) { - super({ - name: "OpsItemRelatedItemAlreadyExistsException", - $fault: "client", - ...opts, - }); - this.name = "OpsItemRelatedItemAlreadyExistsException"; - this.$fault = "client"; - Object.setPrototypeOf(this, OpsItemRelatedItemAlreadyExistsException.prototype); - this.Message = opts.Message; - this.ResourceUri = opts.ResourceUri; - this.OpsItemId = opts.OpsItemId; - } -} -export class DuplicateInstanceId extends __BaseException { - constructor(opts) { - super({ - name: "DuplicateInstanceId", - $fault: "client", - ...opts, - }); - this.name = "DuplicateInstanceId"; - this.$fault = "client"; - Object.setPrototypeOf(this, DuplicateInstanceId.prototype); - } -} -export class InvalidCommandId extends __BaseException { - constructor(opts) { - super({ - name: "InvalidCommandId", - $fault: "client", - ...opts, - }); - this.name = "InvalidCommandId"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidCommandId.prototype); - } -} -export class InvalidInstanceId extends __BaseException { - constructor(opts) { - super({ - name: "InvalidInstanceId", - $fault: "client", - ...opts, - }); - this.name = "InvalidInstanceId"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidInstanceId.prototype); - this.Message = opts.Message; - } -} -export class DoesNotExistException extends __BaseException { - constructor(opts) { - super({ - name: "DoesNotExistException", - $fault: "client", - ...opts, - }); - this.name = "DoesNotExistException"; - this.$fault = "client"; - Object.setPrototypeOf(this, DoesNotExistException.prototype); - this.Message = opts.Message; - } -} -export class InvalidParameters extends __BaseException { - constructor(opts) { - super({ - name: "InvalidParameters", - $fault: "client", - ...opts, - }); - this.name = "InvalidParameters"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidParameters.prototype); - this.Message = opts.Message; - } -} -export class AssociationAlreadyExists extends __BaseException { - constructor(opts) { - super({ - name: "AssociationAlreadyExists", - $fault: "client", - ...opts, - }); - this.name = "AssociationAlreadyExists"; - this.$fault = "client"; - Object.setPrototypeOf(this, AssociationAlreadyExists.prototype); - } -} -export class AssociationLimitExceeded extends __BaseException { - constructor(opts) { - super({ - name: "AssociationLimitExceeded", - $fault: "client", - ...opts, - }); - this.name = "AssociationLimitExceeded"; - this.$fault = "client"; - Object.setPrototypeOf(this, AssociationLimitExceeded.prototype); - } -} -export const AssociationComplianceSeverity = { - Critical: "CRITICAL", - High: "HIGH", - Low: "LOW", - Medium: "MEDIUM", - Unspecified: "UNSPECIFIED", -}; -export const AssociationSyncCompliance = { - Auto: "AUTO", - Manual: "MANUAL", -}; -export const AssociationStatusName = { - Failed: "Failed", - Pending: "Pending", - Success: "Success", -}; -export class InvalidDocument extends __BaseException { - constructor(opts) { - super({ - name: "InvalidDocument", - $fault: "client", - ...opts, - }); - this.name = "InvalidDocument"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidDocument.prototype); - this.Message = opts.Message; - } -} -export class InvalidDocumentVersion extends __BaseException { - constructor(opts) { - super({ - name: "InvalidDocumentVersion", - $fault: "client", - ...opts, - }); - this.name = "InvalidDocumentVersion"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidDocumentVersion.prototype); - this.Message = opts.Message; - } -} -export class InvalidOutputLocation extends __BaseException { - constructor(opts) { - super({ - name: "InvalidOutputLocation", - $fault: "client", - ...opts, - }); - this.name = "InvalidOutputLocation"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidOutputLocation.prototype); - } -} -export class InvalidSchedule extends __BaseException { - constructor(opts) { - super({ - name: "InvalidSchedule", - $fault: "client", - ...opts, - }); - this.name = "InvalidSchedule"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidSchedule.prototype); - this.Message = opts.Message; - } -} -export class InvalidTag extends __BaseException { - constructor(opts) { - super({ - name: "InvalidTag", - $fault: "client", - ...opts, - }); - this.name = "InvalidTag"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidTag.prototype); - this.Message = opts.Message; - } -} -export class InvalidTarget extends __BaseException { - constructor(opts) { - super({ - name: "InvalidTarget", - $fault: "client", - ...opts, - }); - this.name = "InvalidTarget"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidTarget.prototype); - this.Message = opts.Message; - } -} -export class InvalidTargetMaps extends __BaseException { - constructor(opts) { - super({ - name: "InvalidTargetMaps", - $fault: "client", - ...opts, - }); - this.name = "InvalidTargetMaps"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidTargetMaps.prototype); - this.Message = opts.Message; - } -} -export class UnsupportedPlatformType extends __BaseException { - constructor(opts) { - super({ - name: "UnsupportedPlatformType", - $fault: "client", - ...opts, - }); - this.name = "UnsupportedPlatformType"; - this.$fault = "client"; - Object.setPrototypeOf(this, UnsupportedPlatformType.prototype); - this.Message = opts.Message; - } -} -export const Fault = { - Client: "Client", - Server: "Server", - Unknown: "Unknown", -}; -export const AttachmentsSourceKey = { - AttachmentReference: "AttachmentReference", - S3FileUrl: "S3FileUrl", - SourceUrl: "SourceUrl", -}; -export const DocumentFormat = { - JSON: "JSON", - TEXT: "TEXT", - YAML: "YAML", -}; -export const DocumentType = { - ApplicationConfiguration: "ApplicationConfiguration", - ApplicationConfigurationSchema: "ApplicationConfigurationSchema", - Automation: "Automation", - ChangeCalendar: "ChangeCalendar", - ChangeTemplate: "Automation.ChangeTemplate", - CloudFormation: "CloudFormation", - Command: "Command", - ConformancePackTemplate: "ConformancePackTemplate", - DeploymentStrategy: "DeploymentStrategy", - Package: "Package", - Policy: "Policy", - ProblemAnalysis: "ProblemAnalysis", - ProblemAnalysisTemplate: "ProblemAnalysisTemplate", - QuickSetup: "QuickSetup", - Session: "Session", -}; -export const DocumentHashType = { - SHA1: "Sha1", - SHA256: "Sha256", -}; -export const DocumentParameterType = { - String: "String", - StringList: "StringList", -}; -export const PlatformType = { - LINUX: "Linux", - MACOS: "MacOS", - WINDOWS: "Windows", -}; -export const ReviewStatus = { - APPROVED: "APPROVED", - NOT_REVIEWED: "NOT_REVIEWED", - PENDING: "PENDING", - REJECTED: "REJECTED", -}; -export const DocumentStatus = { - Active: "Active", - Creating: "Creating", - Deleting: "Deleting", - Failed: "Failed", - Updating: "Updating", -}; -export class DocumentAlreadyExists extends __BaseException { - constructor(opts) { - super({ - name: "DocumentAlreadyExists", - $fault: "client", - ...opts, - }); - this.name = "DocumentAlreadyExists"; - this.$fault = "client"; - Object.setPrototypeOf(this, DocumentAlreadyExists.prototype); - this.Message = opts.Message; - } -} -export class DocumentLimitExceeded extends __BaseException { - constructor(opts) { - super({ - name: "DocumentLimitExceeded", - $fault: "client", - ...opts, - }); - this.name = "DocumentLimitExceeded"; - this.$fault = "client"; - Object.setPrototypeOf(this, DocumentLimitExceeded.prototype); - this.Message = opts.Message; - } -} -export class InvalidDocumentContent extends __BaseException { - constructor(opts) { - super({ - name: "InvalidDocumentContent", - $fault: "client", - ...opts, - }); - this.name = "InvalidDocumentContent"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidDocumentContent.prototype); - this.Message = opts.Message; - } -} -export class InvalidDocumentSchemaVersion extends __BaseException { - constructor(opts) { - super({ - name: "InvalidDocumentSchemaVersion", - $fault: "client", - ...opts, - }); - this.name = "InvalidDocumentSchemaVersion"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidDocumentSchemaVersion.prototype); - this.Message = opts.Message; - } -} -export class MaxDocumentSizeExceeded extends __BaseException { - constructor(opts) { - super({ - name: "MaxDocumentSizeExceeded", - $fault: "client", - ...opts, - }); - this.name = "MaxDocumentSizeExceeded"; - this.$fault = "client"; - Object.setPrototypeOf(this, MaxDocumentSizeExceeded.prototype); - this.Message = opts.Message; - } -} -export class IdempotentParameterMismatch extends __BaseException { - constructor(opts) { - super({ - name: "IdempotentParameterMismatch", - $fault: "client", - ...opts, - }); - this.name = "IdempotentParameterMismatch"; - this.$fault = "client"; - Object.setPrototypeOf(this, IdempotentParameterMismatch.prototype); - this.Message = opts.Message; - } -} -export class ResourceLimitExceededException extends __BaseException { - constructor(opts) { - super({ - name: "ResourceLimitExceededException", - $fault: "client", - ...opts, - }); - this.name = "ResourceLimitExceededException"; - this.$fault = "client"; - Object.setPrototypeOf(this, ResourceLimitExceededException.prototype); - this.Message = opts.Message; - } -} -export const OpsItemDataType = { - SEARCHABLE_STRING: "SearchableString", - STRING: "String", -}; -export class OpsItemAccessDeniedException extends __BaseException { - constructor(opts) { - super({ - name: "OpsItemAccessDeniedException", - $fault: "client", - ...opts, - }); - this.name = "OpsItemAccessDeniedException"; - this.$fault = "client"; - Object.setPrototypeOf(this, OpsItemAccessDeniedException.prototype); - this.Message = opts.Message; - } -} -export class OpsItemAlreadyExistsException extends __BaseException { - constructor(opts) { - super({ - name: "OpsItemAlreadyExistsException", - $fault: "client", - ...opts, - }); - this.name = "OpsItemAlreadyExistsException"; - this.$fault = "client"; - Object.setPrototypeOf(this, OpsItemAlreadyExistsException.prototype); - this.Message = opts.Message; - this.OpsItemId = opts.OpsItemId; - } -} -export class OpsMetadataAlreadyExistsException extends __BaseException { - constructor(opts) { - super({ - name: "OpsMetadataAlreadyExistsException", - $fault: "client", - ...opts, - }); - this.name = "OpsMetadataAlreadyExistsException"; - this.$fault = "client"; - Object.setPrototypeOf(this, OpsMetadataAlreadyExistsException.prototype); - } -} -export class OpsMetadataInvalidArgumentException extends __BaseException { - constructor(opts) { - super({ - name: "OpsMetadataInvalidArgumentException", - $fault: "client", - ...opts, - }); - this.name = "OpsMetadataInvalidArgumentException"; - this.$fault = "client"; - Object.setPrototypeOf(this, OpsMetadataInvalidArgumentException.prototype); - } -} -export class OpsMetadataLimitExceededException extends __BaseException { - constructor(opts) { - super({ - name: "OpsMetadataLimitExceededException", - $fault: "client", - ...opts, - }); - this.name = "OpsMetadataLimitExceededException"; - this.$fault = "client"; - Object.setPrototypeOf(this, OpsMetadataLimitExceededException.prototype); - } -} -export class OpsMetadataTooManyUpdatesException extends __BaseException { - constructor(opts) { - super({ - name: "OpsMetadataTooManyUpdatesException", - $fault: "client", - ...opts, - }); - this.name = "OpsMetadataTooManyUpdatesException"; - this.$fault = "client"; - Object.setPrototypeOf(this, OpsMetadataTooManyUpdatesException.prototype); - } -} -export const PatchComplianceLevel = { - Critical: "CRITICAL", - High: "HIGH", - Informational: "INFORMATIONAL", - Low: "LOW", - Medium: "MEDIUM", - Unspecified: "UNSPECIFIED", -}; -export const PatchFilterKey = { - AdvisoryId: "ADVISORY_ID", - Arch: "ARCH", - BugzillaId: "BUGZILLA_ID", - CVEId: "CVE_ID", - Classification: "CLASSIFICATION", - Epoch: "EPOCH", - MsrcSeverity: "MSRC_SEVERITY", - Name: "NAME", - PatchId: "PATCH_ID", - PatchSet: "PATCH_SET", - Priority: "PRIORITY", - Product: "PRODUCT", - ProductFamily: "PRODUCT_FAMILY", - Release: "RELEASE", - Repository: "REPOSITORY", - Section: "SECTION", - Security: "SECURITY", - Severity: "SEVERITY", - Version: "VERSION", -}; -export const OperatingSystem = { - AlmaLinux: "ALMA_LINUX", - AmazonLinux: "AMAZON_LINUX", - AmazonLinux2: "AMAZON_LINUX_2", - AmazonLinux2022: "AMAZON_LINUX_2022", - AmazonLinux2023: "AMAZON_LINUX_2023", - CentOS: "CENTOS", - Debian: "DEBIAN", - MacOS: "MACOS", - OracleLinux: "ORACLE_LINUX", - Raspbian: "RASPBIAN", - RedhatEnterpriseLinux: "REDHAT_ENTERPRISE_LINUX", - Rocky_Linux: "ROCKY_LINUX", - Suse: "SUSE", - Ubuntu: "UBUNTU", - Windows: "WINDOWS", -}; -export const PatchAction = { - AllowAsDependency: "ALLOW_AS_DEPENDENCY", - Block: "BLOCK", -}; -export const ResourceDataSyncS3Format = { - JSON_SERDE: "JsonSerDe", -}; -export class ResourceDataSyncAlreadyExistsException extends __BaseException { - constructor(opts) { - super({ - name: "ResourceDataSyncAlreadyExistsException", - $fault: "client", - ...opts, - }); - this.name = "ResourceDataSyncAlreadyExistsException"; - this.$fault = "client"; - Object.setPrototypeOf(this, ResourceDataSyncAlreadyExistsException.prototype); - this.SyncName = opts.SyncName; - } -} -export class ResourceDataSyncCountExceededException extends __BaseException { - constructor(opts) { - super({ - name: "ResourceDataSyncCountExceededException", - $fault: "client", - ...opts, - }); - this.name = "ResourceDataSyncCountExceededException"; - this.$fault = "client"; - Object.setPrototypeOf(this, ResourceDataSyncCountExceededException.prototype); - this.Message = opts.Message; - } -} -export class ResourceDataSyncInvalidConfigurationException extends __BaseException { - constructor(opts) { - super({ - name: "ResourceDataSyncInvalidConfigurationException", - $fault: "client", - ...opts, - }); - this.name = "ResourceDataSyncInvalidConfigurationException"; - this.$fault = "client"; - Object.setPrototypeOf(this, ResourceDataSyncInvalidConfigurationException.prototype); - this.Message = opts.Message; - } -} -export class InvalidActivation extends __BaseException { - constructor(opts) { - super({ - name: "InvalidActivation", - $fault: "client", - ...opts, - }); - this.name = "InvalidActivation"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidActivation.prototype); - this.Message = opts.Message; - } -} -export class InvalidActivationId extends __BaseException { - constructor(opts) { - super({ - name: "InvalidActivationId", - $fault: "client", - ...opts, - }); - this.name = "InvalidActivationId"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidActivationId.prototype); - this.Message = opts.Message; - } -} -export class AssociationDoesNotExist extends __BaseException { - constructor(opts) { - super({ - name: "AssociationDoesNotExist", - $fault: "client", - ...opts, - }); - this.name = "AssociationDoesNotExist"; - this.$fault = "client"; - Object.setPrototypeOf(this, AssociationDoesNotExist.prototype); - this.Message = opts.Message; - } -} -export class AssociatedInstances extends __BaseException { - constructor(opts) { - super({ - name: "AssociatedInstances", - $fault: "client", - ...opts, - }); - this.name = "AssociatedInstances"; - this.$fault = "client"; - Object.setPrototypeOf(this, AssociatedInstances.prototype); - } -} -export class InvalidDocumentOperation extends __BaseException { - constructor(opts) { - super({ - name: "InvalidDocumentOperation", - $fault: "client", - ...opts, - }); - this.name = "InvalidDocumentOperation"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidDocumentOperation.prototype); - this.Message = opts.Message; - } -} -export const InventorySchemaDeleteOption = { - DELETE_SCHEMA: "DeleteSchema", - DISABLE_SCHEMA: "DisableSchema", -}; -export class InvalidDeleteInventoryParametersException extends __BaseException { - constructor(opts) { - super({ - name: "InvalidDeleteInventoryParametersException", - $fault: "client", - ...opts, - }); - this.name = "InvalidDeleteInventoryParametersException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidDeleteInventoryParametersException.prototype); - this.Message = opts.Message; - } -} -export class InvalidInventoryRequestException extends __BaseException { - constructor(opts) { - super({ - name: "InvalidInventoryRequestException", - $fault: "client", - ...opts, - }); - this.name = "InvalidInventoryRequestException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidInventoryRequestException.prototype); - this.Message = opts.Message; - } -} -export class InvalidOptionException extends __BaseException { - constructor(opts) { - super({ - name: "InvalidOptionException", - $fault: "client", - ...opts, - }); - this.name = "InvalidOptionException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidOptionException.prototype); - this.Message = opts.Message; - } -} -export class InvalidTypeNameException extends __BaseException { - constructor(opts) { - super({ - name: "InvalidTypeNameException", - $fault: "client", - ...opts, - }); - this.name = "InvalidTypeNameException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidTypeNameException.prototype); - this.Message = opts.Message; - } -} -export class OpsMetadataNotFoundException extends __BaseException { - constructor(opts) { - super({ - name: "OpsMetadataNotFoundException", - $fault: "client", - ...opts, - }); - this.name = "OpsMetadataNotFoundException"; - this.$fault = "client"; - Object.setPrototypeOf(this, OpsMetadataNotFoundException.prototype); - } -} -export class ParameterNotFound extends __BaseException { - constructor(opts) { - super({ - name: "ParameterNotFound", - $fault: "client", - ...opts, - }); - this.name = "ParameterNotFound"; - this.$fault = "client"; - Object.setPrototypeOf(this, ParameterNotFound.prototype); - } -} -export class ResourceInUseException extends __BaseException { - constructor(opts) { - super({ - name: "ResourceInUseException", - $fault: "client", - ...opts, - }); - this.name = "ResourceInUseException"; - this.$fault = "client"; - Object.setPrototypeOf(this, ResourceInUseException.prototype); - this.Message = opts.Message; - } -} -export class ResourceDataSyncNotFoundException extends __BaseException { - constructor(opts) { - super({ - name: "ResourceDataSyncNotFoundException", - $fault: "client", - ...opts, - }); - this.name = "ResourceDataSyncNotFoundException"; - this.$fault = "client"; - Object.setPrototypeOf(this, ResourceDataSyncNotFoundException.prototype); - this.SyncName = opts.SyncName; - this.SyncType = opts.SyncType; - this.Message = opts.Message; - } -} -export class ResourcePolicyConflictException extends __BaseException { - constructor(opts) { - super({ - name: "ResourcePolicyConflictException", - $fault: "client", - ...opts, - }); - this.name = "ResourcePolicyConflictException"; - this.$fault = "client"; - Object.setPrototypeOf(this, ResourcePolicyConflictException.prototype); - this.Message = opts.Message; - } -} -export class ResourcePolicyInvalidParameterException extends __BaseException { - constructor(opts) { - super({ - name: "ResourcePolicyInvalidParameterException", - $fault: "client", - ...opts, - }); - this.name = "ResourcePolicyInvalidParameterException"; - this.$fault = "client"; - Object.setPrototypeOf(this, ResourcePolicyInvalidParameterException.prototype); - this.ParameterNames = opts.ParameterNames; - this.Message = opts.Message; - } -} -export class TargetInUseException extends __BaseException { - constructor(opts) { - super({ - name: "TargetInUseException", - $fault: "client", - ...opts, - }); - this.name = "TargetInUseException"; - this.$fault = "client"; - Object.setPrototypeOf(this, TargetInUseException.prototype); - this.Message = opts.Message; - } -} -export const DescribeActivationsFilterKeys = { - ACTIVATION_IDS: "ActivationIds", - DEFAULT_INSTANCE_NAME: "DefaultInstanceName", - IAM_ROLE: "IamRole", -}; -export class InvalidFilter extends __BaseException { - constructor(opts) { - super({ - name: "InvalidFilter", - $fault: "client", - ...opts, - }); - this.name = "InvalidFilter"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidFilter.prototype); - this.Message = opts.Message; - } -} -export class InvalidNextToken extends __BaseException { - constructor(opts) { - super({ - name: "InvalidNextToken", - $fault: "client", - ...opts, - }); - this.name = "InvalidNextToken"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidNextToken.prototype); - this.Message = opts.Message; - } -} -export class InvalidAssociationVersion extends __BaseException { - constructor(opts) { - super({ - name: "InvalidAssociationVersion", - $fault: "client", - ...opts, - }); - this.name = "InvalidAssociationVersion"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidAssociationVersion.prototype); - this.Message = opts.Message; - } -} -export const AssociationExecutionFilterKey = { - CreatedTime: "CreatedTime", - ExecutionId: "ExecutionId", - Status: "Status", -}; -export const AssociationFilterOperatorType = { - Equal: "EQUAL", - GreaterThan: "GREATER_THAN", - LessThan: "LESS_THAN", -}; -export class AssociationExecutionDoesNotExist extends __BaseException { - constructor(opts) { - super({ - name: "AssociationExecutionDoesNotExist", - $fault: "client", - ...opts, - }); - this.name = "AssociationExecutionDoesNotExist"; - this.$fault = "client"; - Object.setPrototypeOf(this, AssociationExecutionDoesNotExist.prototype); - this.Message = opts.Message; - } -} -export const AssociationExecutionTargetsFilterKey = { - ResourceId: "ResourceId", - ResourceType: "ResourceType", - Status: "Status", -}; -export const AutomationExecutionFilterKey = { - AUTOMATION_SUBTYPE: "AutomationSubtype", - AUTOMATION_TYPE: "AutomationType", - CURRENT_ACTION: "CurrentAction", - DOCUMENT_NAME_PREFIX: "DocumentNamePrefix", - EXECUTION_ID: "ExecutionId", - EXECUTION_STATUS: "ExecutionStatus", - OPS_ITEM_ID: "OpsItemId", - PARENT_EXECUTION_ID: "ParentExecutionId", - START_TIME_AFTER: "StartTimeAfter", - START_TIME_BEFORE: "StartTimeBefore", - TAG_KEY: "TagKey", - TARGET_RESOURCE_GROUP: "TargetResourceGroup", -}; -export const AutomationExecutionStatus = { - APPROVED: "Approved", - CANCELLED: "Cancelled", - CANCELLING: "Cancelling", - CHANGE_CALENDAR_OVERRIDE_APPROVED: "ChangeCalendarOverrideApproved", - CHANGE_CALENDAR_OVERRIDE_REJECTED: "ChangeCalendarOverrideRejected", - COMPLETED_WITH_FAILURE: "CompletedWithFailure", - COMPLETED_WITH_SUCCESS: "CompletedWithSuccess", - EXITED: "Exited", - FAILED: "Failed", - INPROGRESS: "InProgress", - PENDING: "Pending", - PENDING_APPROVAL: "PendingApproval", - PENDING_CHANGE_CALENDAR_OVERRIDE: "PendingChangeCalendarOverride", - REJECTED: "Rejected", - RUNBOOK_INPROGRESS: "RunbookInProgress", - SCHEDULED: "Scheduled", - SUCCESS: "Success", - TIMEDOUT: "TimedOut", - WAITING: "Waiting", -}; -export const AutomationSubtype = { - ChangeRequest: "ChangeRequest", -}; -export const AutomationType = { - CrossAccount: "CrossAccount", - Local: "Local", -}; -export const ExecutionMode = { - Auto: "Auto", - Interactive: "Interactive", -}; -export class InvalidFilterKey extends __BaseException { - constructor(opts) { - super({ - name: "InvalidFilterKey", - $fault: "client", - ...opts, - }); - this.name = "InvalidFilterKey"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidFilterKey.prototype); - } -} -export class InvalidFilterValue extends __BaseException { - constructor(opts) { - super({ - name: "InvalidFilterValue", - $fault: "client", - ...opts, - }); - this.name = "InvalidFilterValue"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidFilterValue.prototype); - this.Message = opts.Message; - } -} -export class AutomationExecutionNotFoundException extends __BaseException { - constructor(opts) { - super({ - name: "AutomationExecutionNotFoundException", - $fault: "client", - ...opts, - }); - this.name = "AutomationExecutionNotFoundException"; - this.$fault = "client"; - Object.setPrototypeOf(this, AutomationExecutionNotFoundException.prototype); - this.Message = opts.Message; - } -} -export const StepExecutionFilterKey = { - ACTION: "Action", - PARENT_STEP_EXECUTION_ID: "ParentStepExecutionId", - PARENT_STEP_ITERATION: "ParentStepIteration", - PARENT_STEP_ITERATOR_VALUE: "ParentStepIteratorValue", - START_TIME_AFTER: "StartTimeAfter", - START_TIME_BEFORE: "StartTimeBefore", - STEP_EXECUTION_ID: "StepExecutionId", - STEP_EXECUTION_STATUS: "StepExecutionStatus", - STEP_NAME: "StepName", -}; -export const DocumentPermissionType = { - SHARE: "Share", -}; -export class InvalidPermissionType extends __BaseException { - constructor(opts) { - super({ - name: "InvalidPermissionType", - $fault: "client", - ...opts, - }); - this.name = "InvalidPermissionType"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidPermissionType.prototype); - this.Message = opts.Message; - } -} -export const PatchDeploymentStatus = { - Approved: "APPROVED", - ExplicitApproved: "EXPLICIT_APPROVED", - ExplicitRejected: "EXPLICIT_REJECTED", - PendingApproval: "PENDING_APPROVAL", -}; -export class UnsupportedOperatingSystem extends __BaseException { - constructor(opts) { - super({ - name: "UnsupportedOperatingSystem", - $fault: "client", - ...opts, - }); - this.name = "UnsupportedOperatingSystem"; - this.$fault = "client"; - Object.setPrototypeOf(this, UnsupportedOperatingSystem.prototype); - this.Message = opts.Message; - } -} -export const InstanceInformationFilterKey = { - ACTIVATION_IDS: "ActivationIds", - AGENT_VERSION: "AgentVersion", - ASSOCIATION_STATUS: "AssociationStatus", - IAM_ROLE: "IamRole", - INSTANCE_IDS: "InstanceIds", - PING_STATUS: "PingStatus", - PLATFORM_TYPES: "PlatformTypes", - RESOURCE_TYPE: "ResourceType", -}; -export const PingStatus = { - CONNECTION_LOST: "ConnectionLost", - INACTIVE: "Inactive", - ONLINE: "Online", -}; -export const ResourceType = { - EC2_INSTANCE: "EC2Instance", - MANAGED_INSTANCE: "ManagedInstance", -}; -export const SourceType = { - AWS_EC2_INSTANCE: "AWS::EC2::Instance", - AWS_IOT_THING: "AWS::IoT::Thing", - AWS_SSM_MANAGEDINSTANCE: "AWS::SSM::ManagedInstance", -}; -export class InvalidInstanceInformationFilterValue extends __BaseException { - constructor(opts) { - super({ - name: "InvalidInstanceInformationFilterValue", - $fault: "client", - ...opts, - }); - this.name = "InvalidInstanceInformationFilterValue"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidInstanceInformationFilterValue.prototype); - } -} -export const PatchComplianceDataState = { - Failed: "FAILED", - Installed: "INSTALLED", - InstalledOther: "INSTALLED_OTHER", - InstalledPendingReboot: "INSTALLED_PENDING_REBOOT", - InstalledRejected: "INSTALLED_REJECTED", - Missing: "MISSING", - NotApplicable: "NOT_APPLICABLE", -}; -export const PatchOperationType = { - INSTALL: "Install", - SCAN: "Scan", -}; -export const RebootOption = { - NO_REBOOT: "NoReboot", - REBOOT_IF_NEEDED: "RebootIfNeeded", -}; -export const InstancePatchStateOperatorType = { - EQUAL: "Equal", - GREATER_THAN: "GreaterThan", - LESS_THAN: "LessThan", - NOT_EQUAL: "NotEqual", -}; -export const InventoryDeletionStatus = { - COMPLETE: "Complete", - IN_PROGRESS: "InProgress", -}; -export class InvalidDeletionIdException extends __BaseException { - constructor(opts) { - super({ - name: "InvalidDeletionIdException", - $fault: "client", - ...opts, - }); - this.name = "InvalidDeletionIdException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidDeletionIdException.prototype); - this.Message = opts.Message; - } -} -export const MaintenanceWindowExecutionStatus = { - Cancelled: "CANCELLED", - Cancelling: "CANCELLING", - Failed: "FAILED", - InProgress: "IN_PROGRESS", - Pending: "PENDING", - SkippedOverlapping: "SKIPPED_OVERLAPPING", - Success: "SUCCESS", - TimedOut: "TIMED_OUT", -}; -export const MaintenanceWindowTaskType = { - Automation: "AUTOMATION", - Lambda: "LAMBDA", - RunCommand: "RUN_COMMAND", - StepFunctions: "STEP_FUNCTIONS", -}; -export const MaintenanceWindowResourceType = { - Instance: "INSTANCE", - ResourceGroup: "RESOURCE_GROUP", -}; -export const MaintenanceWindowTaskCutoffBehavior = { - CancelTask: "CANCEL_TASK", - ContinueTask: "CONTINUE_TASK", -}; -export const CreateAssociationRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Parameters && { Parameters: SENSITIVE_STRING }), -}); -export const AssociationDescriptionFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Parameters && { Parameters: SENSITIVE_STRING }), -}); -export const CreateAssociationResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.AssociationDescription && { - AssociationDescription: AssociationDescriptionFilterSensitiveLog(obj.AssociationDescription), - }), -}); -export const CreateAssociationBatchRequestEntryFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Parameters && { Parameters: SENSITIVE_STRING }), -}); -export const CreateAssociationBatchRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Entries && { - Entries: obj.Entries.map((item) => CreateAssociationBatchRequestEntryFilterSensitiveLog(item)), - }), -}); -export const FailedCreateAssociationFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Entry && { Entry: CreateAssociationBatchRequestEntryFilterSensitiveLog(obj.Entry) }), -}); -export const CreateAssociationBatchResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Successful && { Successful: obj.Successful.map((item) => AssociationDescriptionFilterSensitiveLog(item)) }), - ...(obj.Failed && { Failed: obj.Failed.map((item) => FailedCreateAssociationFilterSensitiveLog(item)) }), -}); -export const CreateMaintenanceWindowRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Description && { Description: SENSITIVE_STRING }), -}); -export const PatchSourceFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Configuration && { Configuration: SENSITIVE_STRING }), -}); -export const CreatePatchBaselineRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Sources && { Sources: obj.Sources.map((item) => PatchSourceFilterSensitiveLog(item)) }), -}); -export const DescribeAssociationResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.AssociationDescription && { - AssociationDescription: AssociationDescriptionFilterSensitiveLog(obj.AssociationDescription), - }), -}); -export const InstancePatchStateFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.OwnerInformation && { OwnerInformation: SENSITIVE_STRING }), -}); -export const DescribeInstancePatchStatesResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.InstancePatchStates && { - InstancePatchStates: obj.InstancePatchStates.map((item) => InstancePatchStateFilterSensitiveLog(item)), - }), -}); -export const DescribeInstancePatchStatesForPatchGroupResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.InstancePatchStates && { - InstancePatchStates: obj.InstancePatchStates.map((item) => InstancePatchStateFilterSensitiveLog(item)), - }), -}); -export const MaintenanceWindowExecutionTaskInvocationIdentityFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Parameters && { Parameters: SENSITIVE_STRING }), - ...(obj.OwnerInformation && { OwnerInformation: SENSITIVE_STRING }), -}); -export const DescribeMaintenanceWindowExecutionTaskInvocationsResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.WindowExecutionTaskInvocationIdentities && { - WindowExecutionTaskInvocationIdentities: obj.WindowExecutionTaskInvocationIdentities.map((item) => MaintenanceWindowExecutionTaskInvocationIdentityFilterSensitiveLog(item)), - }), -}); -export const MaintenanceWindowIdentityFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Description && { Description: SENSITIVE_STRING }), -}); -export const DescribeMaintenanceWindowsResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.WindowIdentities && { - WindowIdentities: obj.WindowIdentities.map((item) => MaintenanceWindowIdentityFilterSensitiveLog(item)), - }), -}); -export const MaintenanceWindowTargetFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.OwnerInformation && { OwnerInformation: SENSITIVE_STRING }), - ...(obj.Description && { Description: SENSITIVE_STRING }), -}); -export const DescribeMaintenanceWindowTargetsResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Targets && { Targets: obj.Targets.map((item) => MaintenanceWindowTargetFilterSensitiveLog(item)) }), -}); -export const MaintenanceWindowTaskParameterValueExpressionFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Values && { Values: SENSITIVE_STRING }), -}); diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/models/models_1.js b/node_modules/@aws-sdk/client-ssm/dist-es/models/models_1.js deleted file mode 100644 index 9c7b29ca..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/models/models_1.js +++ /dev/null @@ -1,1050 +0,0 @@ -import { SENSITIVE_STRING } from "@smithy/smithy-client"; -import { PatchSourceFilterSensitiveLog, } from "./models_0"; -import { SSMServiceException as __BaseException } from "./SSMServiceException"; -export const OpsItemFilterKey = { - ACCOUNT_ID: "AccountId", - ACTUAL_END_TIME: "ActualEndTime", - ACTUAL_START_TIME: "ActualStartTime", - AUTOMATION_ID: "AutomationId", - CATEGORY: "Category", - CHANGE_REQUEST_APPROVER_ARN: "ChangeRequestByApproverArn", - CHANGE_REQUEST_APPROVER_NAME: "ChangeRequestByApproverName", - CHANGE_REQUEST_REQUESTER_ARN: "ChangeRequestByRequesterArn", - CHANGE_REQUEST_REQUESTER_NAME: "ChangeRequestByRequesterName", - CHANGE_REQUEST_TARGETS_RESOURCE_GROUP: "ChangeRequestByTargetsResourceGroup", - CHANGE_REQUEST_TEMPLATE: "ChangeRequestByTemplate", - CREATED_BY: "CreatedBy", - CREATED_TIME: "CreatedTime", - INSIGHT_TYPE: "InsightByType", - LAST_MODIFIED_TIME: "LastModifiedTime", - OPERATIONAL_DATA: "OperationalData", - OPERATIONAL_DATA_KEY: "OperationalDataKey", - OPERATIONAL_DATA_VALUE: "OperationalDataValue", - OPSITEM_ID: "OpsItemId", - OPSITEM_TYPE: "OpsItemType", - PLANNED_END_TIME: "PlannedEndTime", - PLANNED_START_TIME: "PlannedStartTime", - PRIORITY: "Priority", - RESOURCE_ID: "ResourceId", - SEVERITY: "Severity", - SOURCE: "Source", - STATUS: "Status", - TITLE: "Title", -}; -export const OpsItemFilterOperator = { - CONTAINS: "Contains", - EQUAL: "Equal", - GREATER_THAN: "GreaterThan", - LESS_THAN: "LessThan", -}; -export const OpsItemStatus = { - APPROVED: "Approved", - CANCELLED: "Cancelled", - CANCELLING: "Cancelling", - CHANGE_CALENDAR_OVERRIDE_APPROVED: "ChangeCalendarOverrideApproved", - CHANGE_CALENDAR_OVERRIDE_REJECTED: "ChangeCalendarOverrideRejected", - CLOSED: "Closed", - COMPLETED_WITH_FAILURE: "CompletedWithFailure", - COMPLETED_WITH_SUCCESS: "CompletedWithSuccess", - FAILED: "Failed", - IN_PROGRESS: "InProgress", - OPEN: "Open", - PENDING: "Pending", - PENDING_APPROVAL: "PendingApproval", - PENDING_CHANGE_CALENDAR_OVERRIDE: "PendingChangeCalendarOverride", - REJECTED: "Rejected", - RESOLVED: "Resolved", - RUNBOOK_IN_PROGRESS: "RunbookInProgress", - SCHEDULED: "Scheduled", - TIMED_OUT: "TimedOut", -}; -export const ParametersFilterKey = { - KEY_ID: "KeyId", - NAME: "Name", - TYPE: "Type", -}; -export const ParameterTier = { - ADVANCED: "Advanced", - INTELLIGENT_TIERING: "Intelligent-Tiering", - STANDARD: "Standard", -}; -export const ParameterType = { - SECURE_STRING: "SecureString", - STRING: "String", - STRING_LIST: "StringList", -}; -export class InvalidFilterOption extends __BaseException { - constructor(opts) { - super({ - name: "InvalidFilterOption", - $fault: "client", - ...opts, - }); - this.name = "InvalidFilterOption"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidFilterOption.prototype); - } -} -export const PatchSet = { - Application: "APPLICATION", - Os: "OS", -}; -export const PatchProperty = { - PatchClassification: "CLASSIFICATION", - PatchMsrcSeverity: "MSRC_SEVERITY", - PatchPriority: "PRIORITY", - PatchProductFamily: "PRODUCT_FAMILY", - PatchSeverity: "SEVERITY", - Product: "PRODUCT", -}; -export const SessionFilterKey = { - INVOKED_AFTER: "InvokedAfter", - INVOKED_BEFORE: "InvokedBefore", - OWNER: "Owner", - SESSION_ID: "SessionId", - STATUS: "Status", - TARGET_ID: "Target", -}; -export const SessionState = { - ACTIVE: "Active", - HISTORY: "History", -}; -export const SessionStatus = { - CONNECTED: "Connected", - CONNECTING: "Connecting", - DISCONNECTED: "Disconnected", - FAILED: "Failed", - TERMINATED: "Terminated", - TERMINATING: "Terminating", -}; -export class OpsItemRelatedItemAssociationNotFoundException extends __BaseException { - constructor(opts) { - super({ - name: "OpsItemRelatedItemAssociationNotFoundException", - $fault: "client", - ...opts, - }); - this.name = "OpsItemRelatedItemAssociationNotFoundException"; - this.$fault = "client"; - Object.setPrototypeOf(this, OpsItemRelatedItemAssociationNotFoundException.prototype); - this.Message = opts.Message; - } -} -export const CalendarState = { - CLOSED: "CLOSED", - OPEN: "OPEN", -}; -export class InvalidDocumentType extends __BaseException { - constructor(opts) { - super({ - name: "InvalidDocumentType", - $fault: "client", - ...opts, - }); - this.name = "InvalidDocumentType"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidDocumentType.prototype); - this.Message = opts.Message; - } -} -export class UnsupportedCalendarException extends __BaseException { - constructor(opts) { - super({ - name: "UnsupportedCalendarException", - $fault: "client", - ...opts, - }); - this.name = "UnsupportedCalendarException"; - this.$fault = "client"; - Object.setPrototypeOf(this, UnsupportedCalendarException.prototype); - this.Message = opts.Message; - } -} -export const CommandInvocationStatus = { - CANCELLED: "Cancelled", - CANCELLING: "Cancelling", - DELAYED: "Delayed", - FAILED: "Failed", - IN_PROGRESS: "InProgress", - PENDING: "Pending", - SUCCESS: "Success", - TIMED_OUT: "TimedOut", -}; -export class InvalidPluginName extends __BaseException { - constructor(opts) { - super({ - name: "InvalidPluginName", - $fault: "client", - ...opts, - }); - this.name = "InvalidPluginName"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidPluginName.prototype); - } -} -export class InvocationDoesNotExist extends __BaseException { - constructor(opts) { - super({ - name: "InvocationDoesNotExist", - $fault: "client", - ...opts, - }); - this.name = "InvocationDoesNotExist"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvocationDoesNotExist.prototype); - } -} -export const ConnectionStatus = { - CONNECTED: "connected", - NOT_CONNECTED: "notconnected", -}; -export class UnsupportedFeatureRequiredException extends __BaseException { - constructor(opts) { - super({ - name: "UnsupportedFeatureRequiredException", - $fault: "client", - ...opts, - }); - this.name = "UnsupportedFeatureRequiredException"; - this.$fault = "client"; - Object.setPrototypeOf(this, UnsupportedFeatureRequiredException.prototype); - this.Message = opts.Message; - } -} -export const AttachmentHashType = { - SHA256: "Sha256", -}; -export const InventoryQueryOperatorType = { - BEGIN_WITH: "BeginWith", - EQUAL: "Equal", - EXISTS: "Exists", - GREATER_THAN: "GreaterThan", - LESS_THAN: "LessThan", - NOT_EQUAL: "NotEqual", -}; -export class InvalidAggregatorException extends __BaseException { - constructor(opts) { - super({ - name: "InvalidAggregatorException", - $fault: "client", - ...opts, - }); - this.name = "InvalidAggregatorException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidAggregatorException.prototype); - this.Message = opts.Message; - } -} -export class InvalidInventoryGroupException extends __BaseException { - constructor(opts) { - super({ - name: "InvalidInventoryGroupException", - $fault: "client", - ...opts, - }); - this.name = "InvalidInventoryGroupException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidInventoryGroupException.prototype); - this.Message = opts.Message; - } -} -export class InvalidResultAttributeException extends __BaseException { - constructor(opts) { - super({ - name: "InvalidResultAttributeException", - $fault: "client", - ...opts, - }); - this.name = "InvalidResultAttributeException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidResultAttributeException.prototype); - this.Message = opts.Message; - } -} -export const InventoryAttributeDataType = { - NUMBER: "number", - STRING: "string", -}; -export const NotificationEvent = { - ALL: "All", - CANCELLED: "Cancelled", - FAILED: "Failed", - IN_PROGRESS: "InProgress", - SUCCESS: "Success", - TIMED_OUT: "TimedOut", -}; -export const NotificationType = { - Command: "Command", - Invocation: "Invocation", -}; -export const OpsFilterOperatorType = { - BEGIN_WITH: "BeginWith", - EQUAL: "Equal", - EXISTS: "Exists", - GREATER_THAN: "GreaterThan", - LESS_THAN: "LessThan", - NOT_EQUAL: "NotEqual", -}; -export class InvalidKeyId extends __BaseException { - constructor(opts) { - super({ - name: "InvalidKeyId", - $fault: "client", - ...opts, - }); - this.name = "InvalidKeyId"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidKeyId.prototype); - } -} -export class ParameterVersionNotFound extends __BaseException { - constructor(opts) { - super({ - name: "ParameterVersionNotFound", - $fault: "client", - ...opts, - }); - this.name = "ParameterVersionNotFound"; - this.$fault = "client"; - Object.setPrototypeOf(this, ParameterVersionNotFound.prototype); - } -} -export class ServiceSettingNotFound extends __BaseException { - constructor(opts) { - super({ - name: "ServiceSettingNotFound", - $fault: "client", - ...opts, - }); - this.name = "ServiceSettingNotFound"; - this.$fault = "client"; - Object.setPrototypeOf(this, ServiceSettingNotFound.prototype); - this.Message = opts.Message; - } -} -export class ParameterVersionLabelLimitExceeded extends __BaseException { - constructor(opts) { - super({ - name: "ParameterVersionLabelLimitExceeded", - $fault: "client", - ...opts, - }); - this.name = "ParameterVersionLabelLimitExceeded"; - this.$fault = "client"; - Object.setPrototypeOf(this, ParameterVersionLabelLimitExceeded.prototype); - } -} -export const AssociationFilterKey = { - AssociationId: "AssociationId", - AssociationName: "AssociationName", - InstanceId: "InstanceId", - LastExecutedAfter: "LastExecutedAfter", - LastExecutedBefore: "LastExecutedBefore", - Name: "Name", - ResourceGroupName: "ResourceGroupName", - Status: "AssociationStatusName", -}; -export const CommandFilterKey = { - DOCUMENT_NAME: "DocumentName", - EXECUTION_STAGE: "ExecutionStage", - INVOKED_AFTER: "InvokedAfter", - INVOKED_BEFORE: "InvokedBefore", - STATUS: "Status", -}; -export const CommandPluginStatus = { - CANCELLED: "Cancelled", - FAILED: "Failed", - IN_PROGRESS: "InProgress", - PENDING: "Pending", - SUCCESS: "Success", - TIMED_OUT: "TimedOut", -}; -export const CommandStatus = { - CANCELLED: "Cancelled", - CANCELLING: "Cancelling", - FAILED: "Failed", - IN_PROGRESS: "InProgress", - PENDING: "Pending", - SUCCESS: "Success", - TIMED_OUT: "TimedOut", -}; -export const ComplianceQueryOperatorType = { - BeginWith: "BEGIN_WITH", - Equal: "EQUAL", - GreaterThan: "GREATER_THAN", - LessThan: "LESS_THAN", - NotEqual: "NOT_EQUAL", -}; -export const ComplianceSeverity = { - Critical: "CRITICAL", - High: "HIGH", - Informational: "INFORMATIONAL", - Low: "LOW", - Medium: "MEDIUM", - Unspecified: "UNSPECIFIED", -}; -export const ComplianceStatus = { - Compliant: "COMPLIANT", - NonCompliant: "NON_COMPLIANT", -}; -export const DocumentMetadataEnum = { - DocumentReviews: "DocumentReviews", -}; -export const DocumentReviewCommentType = { - Comment: "Comment", -}; -export const DocumentFilterKey = { - DocumentType: "DocumentType", - Name: "Name", - Owner: "Owner", - PlatformTypes: "PlatformTypes", -}; -export const OpsItemEventFilterKey = { - OPSITEM_ID: "OpsItemId", -}; -export const OpsItemEventFilterOperator = { - EQUAL: "Equal", -}; -export const OpsItemRelatedItemsFilterKey = { - ASSOCIATION_ID: "AssociationId", - RESOURCE_TYPE: "ResourceType", - RESOURCE_URI: "ResourceUri", -}; -export const OpsItemRelatedItemsFilterOperator = { - EQUAL: "Equal", -}; -export const LastResourceDataSyncStatus = { - FAILED: "Failed", - INPROGRESS: "InProgress", - SUCCESSFUL: "Successful", -}; -export class DocumentPermissionLimit extends __BaseException { - constructor(opts) { - super({ - name: "DocumentPermissionLimit", - $fault: "client", - ...opts, - }); - this.name = "DocumentPermissionLimit"; - this.$fault = "client"; - Object.setPrototypeOf(this, DocumentPermissionLimit.prototype); - this.Message = opts.Message; - } -} -export class ComplianceTypeCountLimitExceededException extends __BaseException { - constructor(opts) { - super({ - name: "ComplianceTypeCountLimitExceededException", - $fault: "client", - ...opts, - }); - this.name = "ComplianceTypeCountLimitExceededException"; - this.$fault = "client"; - Object.setPrototypeOf(this, ComplianceTypeCountLimitExceededException.prototype); - this.Message = opts.Message; - } -} -export class InvalidItemContentException extends __BaseException { - constructor(opts) { - super({ - name: "InvalidItemContentException", - $fault: "client", - ...opts, - }); - this.name = "InvalidItemContentException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidItemContentException.prototype); - this.TypeName = opts.TypeName; - this.Message = opts.Message; - } -} -export class ItemSizeLimitExceededException extends __BaseException { - constructor(opts) { - super({ - name: "ItemSizeLimitExceededException", - $fault: "client", - ...opts, - }); - this.name = "ItemSizeLimitExceededException"; - this.$fault = "client"; - Object.setPrototypeOf(this, ItemSizeLimitExceededException.prototype); - this.TypeName = opts.TypeName; - this.Message = opts.Message; - } -} -export const ComplianceUploadType = { - Complete: "COMPLETE", - Partial: "PARTIAL", -}; -export class TotalSizeLimitExceededException extends __BaseException { - constructor(opts) { - super({ - name: "TotalSizeLimitExceededException", - $fault: "client", - ...opts, - }); - this.name = "TotalSizeLimitExceededException"; - this.$fault = "client"; - Object.setPrototypeOf(this, TotalSizeLimitExceededException.prototype); - this.Message = opts.Message; - } -} -export class CustomSchemaCountLimitExceededException extends __BaseException { - constructor(opts) { - super({ - name: "CustomSchemaCountLimitExceededException", - $fault: "client", - ...opts, - }); - this.name = "CustomSchemaCountLimitExceededException"; - this.$fault = "client"; - Object.setPrototypeOf(this, CustomSchemaCountLimitExceededException.prototype); - this.Message = opts.Message; - } -} -export class InvalidInventoryItemContextException extends __BaseException { - constructor(opts) { - super({ - name: "InvalidInventoryItemContextException", - $fault: "client", - ...opts, - }); - this.name = "InvalidInventoryItemContextException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidInventoryItemContextException.prototype); - this.Message = opts.Message; - } -} -export class ItemContentMismatchException extends __BaseException { - constructor(opts) { - super({ - name: "ItemContentMismatchException", - $fault: "client", - ...opts, - }); - this.name = "ItemContentMismatchException"; - this.$fault = "client"; - Object.setPrototypeOf(this, ItemContentMismatchException.prototype); - this.TypeName = opts.TypeName; - this.Message = opts.Message; - } -} -export class SubTypeCountLimitExceededException extends __BaseException { - constructor(opts) { - super({ - name: "SubTypeCountLimitExceededException", - $fault: "client", - ...opts, - }); - this.name = "SubTypeCountLimitExceededException"; - this.$fault = "client"; - Object.setPrototypeOf(this, SubTypeCountLimitExceededException.prototype); - this.Message = opts.Message; - } -} -export class UnsupportedInventoryItemContextException extends __BaseException { - constructor(opts) { - super({ - name: "UnsupportedInventoryItemContextException", - $fault: "client", - ...opts, - }); - this.name = "UnsupportedInventoryItemContextException"; - this.$fault = "client"; - Object.setPrototypeOf(this, UnsupportedInventoryItemContextException.prototype); - this.TypeName = opts.TypeName; - this.Message = opts.Message; - } -} -export class UnsupportedInventorySchemaVersionException extends __BaseException { - constructor(opts) { - super({ - name: "UnsupportedInventorySchemaVersionException", - $fault: "client", - ...opts, - }); - this.name = "UnsupportedInventorySchemaVersionException"; - this.$fault = "client"; - Object.setPrototypeOf(this, UnsupportedInventorySchemaVersionException.prototype); - this.Message = opts.Message; - } -} -export class HierarchyLevelLimitExceededException extends __BaseException { - constructor(opts) { - super({ - name: "HierarchyLevelLimitExceededException", - $fault: "client", - ...opts, - }); - this.name = "HierarchyLevelLimitExceededException"; - this.$fault = "client"; - Object.setPrototypeOf(this, HierarchyLevelLimitExceededException.prototype); - } -} -export class HierarchyTypeMismatchException extends __BaseException { - constructor(opts) { - super({ - name: "HierarchyTypeMismatchException", - $fault: "client", - ...opts, - }); - this.name = "HierarchyTypeMismatchException"; - this.$fault = "client"; - Object.setPrototypeOf(this, HierarchyTypeMismatchException.prototype); - } -} -export class IncompatiblePolicyException extends __BaseException { - constructor(opts) { - super({ - name: "IncompatiblePolicyException", - $fault: "client", - ...opts, - }); - this.name = "IncompatiblePolicyException"; - this.$fault = "client"; - Object.setPrototypeOf(this, IncompatiblePolicyException.prototype); - } -} -export class InvalidAllowedPatternException extends __BaseException { - constructor(opts) { - super({ - name: "InvalidAllowedPatternException", - $fault: "client", - ...opts, - }); - this.name = "InvalidAllowedPatternException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidAllowedPatternException.prototype); - } -} -export class InvalidPolicyAttributeException extends __BaseException { - constructor(opts) { - super({ - name: "InvalidPolicyAttributeException", - $fault: "client", - ...opts, - }); - this.name = "InvalidPolicyAttributeException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidPolicyAttributeException.prototype); - } -} -export class InvalidPolicyTypeException extends __BaseException { - constructor(opts) { - super({ - name: "InvalidPolicyTypeException", - $fault: "client", - ...opts, - }); - this.name = "InvalidPolicyTypeException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidPolicyTypeException.prototype); - } -} -export class ParameterAlreadyExists extends __BaseException { - constructor(opts) { - super({ - name: "ParameterAlreadyExists", - $fault: "client", - ...opts, - }); - this.name = "ParameterAlreadyExists"; - this.$fault = "client"; - Object.setPrototypeOf(this, ParameterAlreadyExists.prototype); - } -} -export class ParameterLimitExceeded extends __BaseException { - constructor(opts) { - super({ - name: "ParameterLimitExceeded", - $fault: "client", - ...opts, - }); - this.name = "ParameterLimitExceeded"; - this.$fault = "client"; - Object.setPrototypeOf(this, ParameterLimitExceeded.prototype); - } -} -export class ParameterMaxVersionLimitExceeded extends __BaseException { - constructor(opts) { - super({ - name: "ParameterMaxVersionLimitExceeded", - $fault: "client", - ...opts, - }); - this.name = "ParameterMaxVersionLimitExceeded"; - this.$fault = "client"; - Object.setPrototypeOf(this, ParameterMaxVersionLimitExceeded.prototype); - } -} -export class ParameterPatternMismatchException extends __BaseException { - constructor(opts) { - super({ - name: "ParameterPatternMismatchException", - $fault: "client", - ...opts, - }); - this.name = "ParameterPatternMismatchException"; - this.$fault = "client"; - Object.setPrototypeOf(this, ParameterPatternMismatchException.prototype); - } -} -export class PoliciesLimitExceededException extends __BaseException { - constructor(opts) { - super({ - name: "PoliciesLimitExceededException", - $fault: "client", - ...opts, - }); - this.name = "PoliciesLimitExceededException"; - this.$fault = "client"; - Object.setPrototypeOf(this, PoliciesLimitExceededException.prototype); - } -} -export class UnsupportedParameterType extends __BaseException { - constructor(opts) { - super({ - name: "UnsupportedParameterType", - $fault: "client", - ...opts, - }); - this.name = "UnsupportedParameterType"; - this.$fault = "client"; - Object.setPrototypeOf(this, UnsupportedParameterType.prototype); - } -} -export class ResourcePolicyLimitExceededException extends __BaseException { - constructor(opts) { - super({ - name: "ResourcePolicyLimitExceededException", - $fault: "client", - ...opts, - }); - this.name = "ResourcePolicyLimitExceededException"; - this.$fault = "client"; - Object.setPrototypeOf(this, ResourcePolicyLimitExceededException.prototype); - this.Limit = opts.Limit; - this.LimitType = opts.LimitType; - this.Message = opts.Message; - } -} -export class FeatureNotAvailableException extends __BaseException { - constructor(opts) { - super({ - name: "FeatureNotAvailableException", - $fault: "client", - ...opts, - }); - this.name = "FeatureNotAvailableException"; - this.$fault = "client"; - Object.setPrototypeOf(this, FeatureNotAvailableException.prototype); - this.Message = opts.Message; - } -} -export class AutomationStepNotFoundException extends __BaseException { - constructor(opts) { - super({ - name: "AutomationStepNotFoundException", - $fault: "client", - ...opts, - }); - this.name = "AutomationStepNotFoundException"; - this.$fault = "client"; - Object.setPrototypeOf(this, AutomationStepNotFoundException.prototype); - this.Message = opts.Message; - } -} -export class InvalidAutomationSignalException extends __BaseException { - constructor(opts) { - super({ - name: "InvalidAutomationSignalException", - $fault: "client", - ...opts, - }); - this.name = "InvalidAutomationSignalException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidAutomationSignalException.prototype); - this.Message = opts.Message; - } -} -export const SignalType = { - APPROVE: "Approve", - REJECT: "Reject", - RESUME: "Resume", - START_STEP: "StartStep", - STOP_STEP: "StopStep", -}; -export class InvalidNotificationConfig extends __BaseException { - constructor(opts) { - super({ - name: "InvalidNotificationConfig", - $fault: "client", - ...opts, - }); - this.name = "InvalidNotificationConfig"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidNotificationConfig.prototype); - this.Message = opts.Message; - } -} -export class InvalidOutputFolder extends __BaseException { - constructor(opts) { - super({ - name: "InvalidOutputFolder", - $fault: "client", - ...opts, - }); - this.name = "InvalidOutputFolder"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidOutputFolder.prototype); - } -} -export class InvalidRole extends __BaseException { - constructor(opts) { - super({ - name: "InvalidRole", - $fault: "client", - ...opts, - }); - this.name = "InvalidRole"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidRole.prototype); - this.Message = opts.Message; - } -} -export class InvalidAssociation extends __BaseException { - constructor(opts) { - super({ - name: "InvalidAssociation", - $fault: "client", - ...opts, - }); - this.name = "InvalidAssociation"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidAssociation.prototype); - this.Message = opts.Message; - } -} -export class AutomationDefinitionNotFoundException extends __BaseException { - constructor(opts) { - super({ - name: "AutomationDefinitionNotFoundException", - $fault: "client", - ...opts, - }); - this.name = "AutomationDefinitionNotFoundException"; - this.$fault = "client"; - Object.setPrototypeOf(this, AutomationDefinitionNotFoundException.prototype); - this.Message = opts.Message; - } -} -export class AutomationDefinitionVersionNotFoundException extends __BaseException { - constructor(opts) { - super({ - name: "AutomationDefinitionVersionNotFoundException", - $fault: "client", - ...opts, - }); - this.name = "AutomationDefinitionVersionNotFoundException"; - this.$fault = "client"; - Object.setPrototypeOf(this, AutomationDefinitionVersionNotFoundException.prototype); - this.Message = opts.Message; - } -} -export class AutomationExecutionLimitExceededException extends __BaseException { - constructor(opts) { - super({ - name: "AutomationExecutionLimitExceededException", - $fault: "client", - ...opts, - }); - this.name = "AutomationExecutionLimitExceededException"; - this.$fault = "client"; - Object.setPrototypeOf(this, AutomationExecutionLimitExceededException.prototype); - this.Message = opts.Message; - } -} -export class InvalidAutomationExecutionParametersException extends __BaseException { - constructor(opts) { - super({ - name: "InvalidAutomationExecutionParametersException", - $fault: "client", - ...opts, - }); - this.name = "InvalidAutomationExecutionParametersException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidAutomationExecutionParametersException.prototype); - this.Message = opts.Message; - } -} -export class AutomationDefinitionNotApprovedException extends __BaseException { - constructor(opts) { - super({ - name: "AutomationDefinitionNotApprovedException", - $fault: "client", - ...opts, - }); - this.name = "AutomationDefinitionNotApprovedException"; - this.$fault = "client"; - Object.setPrototypeOf(this, AutomationDefinitionNotApprovedException.prototype); - this.Message = opts.Message; - } -} -export class TargetNotConnected extends __BaseException { - constructor(opts) { - super({ - name: "TargetNotConnected", - $fault: "client", - ...opts, - }); - this.name = "TargetNotConnected"; - this.$fault = "client"; - Object.setPrototypeOf(this, TargetNotConnected.prototype); - this.Message = opts.Message; - } -} -export class InvalidAutomationStatusUpdateException extends __BaseException { - constructor(opts) { - super({ - name: "InvalidAutomationStatusUpdateException", - $fault: "client", - ...opts, - }); - this.name = "InvalidAutomationStatusUpdateException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidAutomationStatusUpdateException.prototype); - this.Message = opts.Message; - } -} -export const StopType = { - CANCEL: "Cancel", - COMPLETE: "Complete", -}; -export const MaintenanceWindowTaskFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.TaskParameters && { TaskParameters: SENSITIVE_STRING }), - ...(obj.Description && { Description: SENSITIVE_STRING }), -}); -export const DescribeMaintenanceWindowTasksResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Tasks && { Tasks: obj.Tasks.map((item) => MaintenanceWindowTaskFilterSensitiveLog(item)) }), -}); -export const BaselineOverrideFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Sources && { Sources: obj.Sources.map((item) => PatchSourceFilterSensitiveLog(item)) }), -}); -export const GetDeployablePatchSnapshotForInstanceRequestFilterSensitiveLog = (obj) => ({ - ...obj, -}); -export const GetMaintenanceWindowResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Description && { Description: SENSITIVE_STRING }), -}); -export const GetMaintenanceWindowExecutionTaskResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.TaskParameters && { TaskParameters: SENSITIVE_STRING }), -}); -export const GetMaintenanceWindowExecutionTaskInvocationResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Parameters && { Parameters: SENSITIVE_STRING }), - ...(obj.OwnerInformation && { OwnerInformation: SENSITIVE_STRING }), -}); -export const MaintenanceWindowLambdaParametersFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Payload && { Payload: SENSITIVE_STRING }), -}); -export const MaintenanceWindowRunCommandParametersFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Parameters && { Parameters: SENSITIVE_STRING }), -}); -export const MaintenanceWindowStepFunctionsParametersFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Input && { Input: SENSITIVE_STRING }), -}); -export const MaintenanceWindowTaskInvocationParametersFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.RunCommand && { RunCommand: MaintenanceWindowRunCommandParametersFilterSensitiveLog(obj.RunCommand) }), - ...(obj.StepFunctions && { - StepFunctions: MaintenanceWindowStepFunctionsParametersFilterSensitiveLog(obj.StepFunctions), - }), - ...(obj.Lambda && { Lambda: MaintenanceWindowLambdaParametersFilterSensitiveLog(obj.Lambda) }), -}); -export const GetMaintenanceWindowTaskResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.TaskParameters && { TaskParameters: SENSITIVE_STRING }), - ...(obj.TaskInvocationParameters && { - TaskInvocationParameters: MaintenanceWindowTaskInvocationParametersFilterSensitiveLog(obj.TaskInvocationParameters), - }), - ...(obj.Description && { Description: SENSITIVE_STRING }), -}); -export const ParameterFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Value && { Value: SENSITIVE_STRING }), -}); -export const GetParameterResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Parameter && { Parameter: ParameterFilterSensitiveLog(obj.Parameter) }), -}); -export const ParameterHistoryFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Value && { Value: SENSITIVE_STRING }), -}); -export const GetParameterHistoryResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Parameters && { Parameters: obj.Parameters.map((item) => ParameterHistoryFilterSensitiveLog(item)) }), -}); -export const GetParametersResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Parameters && { Parameters: obj.Parameters.map((item) => ParameterFilterSensitiveLog(item)) }), -}); -export const GetParametersByPathResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Parameters && { Parameters: obj.Parameters.map((item) => ParameterFilterSensitiveLog(item)) }), -}); -export const GetPatchBaselineResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Sources && { Sources: obj.Sources.map((item) => PatchSourceFilterSensitiveLog(item)) }), -}); -export const AssociationVersionInfoFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Parameters && { Parameters: SENSITIVE_STRING }), -}); -export const ListAssociationVersionsResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.AssociationVersions && { - AssociationVersions: obj.AssociationVersions.map((item) => AssociationVersionInfoFilterSensitiveLog(item)), - }), -}); -export const CommandFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Parameters && { Parameters: SENSITIVE_STRING }), -}); -export const ListCommandsResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Commands && { Commands: obj.Commands.map((item) => CommandFilterSensitiveLog(item)) }), -}); -export const PutParameterRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Value && { Value: SENSITIVE_STRING }), -}); -export const RegisterTargetWithMaintenanceWindowRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.OwnerInformation && { OwnerInformation: SENSITIVE_STRING }), - ...(obj.Description && { Description: SENSITIVE_STRING }), -}); -export const RegisterTaskWithMaintenanceWindowRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.TaskParameters && { TaskParameters: SENSITIVE_STRING }), - ...(obj.TaskInvocationParameters && { - TaskInvocationParameters: MaintenanceWindowTaskInvocationParametersFilterSensitiveLog(obj.TaskInvocationParameters), - }), - ...(obj.Description && { Description: SENSITIVE_STRING }), -}); -export const SendCommandRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Parameters && { Parameters: SENSITIVE_STRING }), -}); -export const SendCommandResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Command && { Command: CommandFilterSensitiveLog(obj.Command) }), -}); diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/models/models_2.js b/node_modules/@aws-sdk/client-ssm/dist-es/models/models_2.js deleted file mode 100644 index adc2d77b..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/models/models_2.js +++ /dev/null @@ -1,170 +0,0 @@ -import { SENSITIVE_STRING } from "@smithy/smithy-client"; -import { AssociationDescriptionFilterSensitiveLog, PatchSourceFilterSensitiveLog, } from "./models_0"; -import { MaintenanceWindowTaskInvocationParametersFilterSensitiveLog, } from "./models_1"; -import { SSMServiceException as __BaseException } from "./SSMServiceException"; -export class AssociationVersionLimitExceeded extends __BaseException { - constructor(opts) { - super({ - name: "AssociationVersionLimitExceeded", - $fault: "client", - ...opts, - }); - this.name = "AssociationVersionLimitExceeded"; - this.$fault = "client"; - Object.setPrototypeOf(this, AssociationVersionLimitExceeded.prototype); - this.Message = opts.Message; - } -} -export class InvalidUpdate extends __BaseException { - constructor(opts) { - super({ - name: "InvalidUpdate", - $fault: "client", - ...opts, - }); - this.name = "InvalidUpdate"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidUpdate.prototype); - this.Message = opts.Message; - } -} -export class StatusUnchanged extends __BaseException { - constructor(opts) { - super({ - name: "StatusUnchanged", - $fault: "client", - ...opts, - }); - this.name = "StatusUnchanged"; - this.$fault = "client"; - Object.setPrototypeOf(this, StatusUnchanged.prototype); - } -} -export class DocumentVersionLimitExceeded extends __BaseException { - constructor(opts) { - super({ - name: "DocumentVersionLimitExceeded", - $fault: "client", - ...opts, - }); - this.name = "DocumentVersionLimitExceeded"; - this.$fault = "client"; - Object.setPrototypeOf(this, DocumentVersionLimitExceeded.prototype); - this.Message = opts.Message; - } -} -export class DuplicateDocumentContent extends __BaseException { - constructor(opts) { - super({ - name: "DuplicateDocumentContent", - $fault: "client", - ...opts, - }); - this.name = "DuplicateDocumentContent"; - this.$fault = "client"; - Object.setPrototypeOf(this, DuplicateDocumentContent.prototype); - this.Message = opts.Message; - } -} -export class DuplicateDocumentVersionName extends __BaseException { - constructor(opts) { - super({ - name: "DuplicateDocumentVersionName", - $fault: "client", - ...opts, - }); - this.name = "DuplicateDocumentVersionName"; - this.$fault = "client"; - Object.setPrototypeOf(this, DuplicateDocumentVersionName.prototype); - this.Message = opts.Message; - } -} -export const DocumentReviewAction = { - Approve: "Approve", - Reject: "Reject", - SendForReview: "SendForReview", - UpdateReview: "UpdateReview", -}; -export class OpsMetadataKeyLimitExceededException extends __BaseException { - constructor(opts) { - super({ - name: "OpsMetadataKeyLimitExceededException", - $fault: "client", - ...opts, - }); - this.name = "OpsMetadataKeyLimitExceededException"; - this.$fault = "client"; - Object.setPrototypeOf(this, OpsMetadataKeyLimitExceededException.prototype); - } -} -export class ResourceDataSyncConflictException extends __BaseException { - constructor(opts) { - super({ - name: "ResourceDataSyncConflictException", - $fault: "client", - ...opts, - }); - this.name = "ResourceDataSyncConflictException"; - this.$fault = "client"; - Object.setPrototypeOf(this, ResourceDataSyncConflictException.prototype); - this.Message = opts.Message; - } -} -export const UpdateAssociationRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Parameters && { Parameters: SENSITIVE_STRING }), -}); -export const UpdateAssociationResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.AssociationDescription && { - AssociationDescription: AssociationDescriptionFilterSensitiveLog(obj.AssociationDescription), - }), -}); -export const UpdateAssociationStatusResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.AssociationDescription && { - AssociationDescription: AssociationDescriptionFilterSensitiveLog(obj.AssociationDescription), - }), -}); -export const UpdateMaintenanceWindowRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Description && { Description: SENSITIVE_STRING }), -}); -export const UpdateMaintenanceWindowResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Description && { Description: SENSITIVE_STRING }), -}); -export const UpdateMaintenanceWindowTargetRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.OwnerInformation && { OwnerInformation: SENSITIVE_STRING }), - ...(obj.Description && { Description: SENSITIVE_STRING }), -}); -export const UpdateMaintenanceWindowTargetResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.OwnerInformation && { OwnerInformation: SENSITIVE_STRING }), - ...(obj.Description && { Description: SENSITIVE_STRING }), -}); -export const UpdateMaintenanceWindowTaskRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.TaskParameters && { TaskParameters: SENSITIVE_STRING }), - ...(obj.TaskInvocationParameters && { - TaskInvocationParameters: MaintenanceWindowTaskInvocationParametersFilterSensitiveLog(obj.TaskInvocationParameters), - }), - ...(obj.Description && { Description: SENSITIVE_STRING }), -}); -export const UpdateMaintenanceWindowTaskResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.TaskParameters && { TaskParameters: SENSITIVE_STRING }), - ...(obj.TaskInvocationParameters && { - TaskInvocationParameters: MaintenanceWindowTaskInvocationParametersFilterSensitiveLog(obj.TaskInvocationParameters), - }), - ...(obj.Description && { Description: SENSITIVE_STRING }), -}); -export const UpdatePatchBaselineRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Sources && { Sources: obj.Sources.map((item) => PatchSourceFilterSensitiveLog(item)) }), -}); -export const UpdatePatchBaselineResultFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Sources && { Sources: obj.Sources.map((item) => PatchSourceFilterSensitiveLog(item)) }), -}); diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeActivationsPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeActivationsPaginator.js deleted file mode 100644 index 6e43070d..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeActivationsPaginator.js +++ /dev/null @@ -1,25 +0,0 @@ -import { DescribeActivationsCommand, } from "../commands/DescribeActivationsCommand"; -import { SSMClient } from "../SSMClient"; -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeActivationsCommand(input), ...args); -}; -export async function* paginateDescribeActivations(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeAssociationExecutionTargetsPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeAssociationExecutionTargetsPaginator.js deleted file mode 100644 index 1fed99a9..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeAssociationExecutionTargetsPaginator.js +++ /dev/null @@ -1,25 +0,0 @@ -import { DescribeAssociationExecutionTargetsCommand, } from "../commands/DescribeAssociationExecutionTargetsCommand"; -import { SSMClient } from "../SSMClient"; -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeAssociationExecutionTargetsCommand(input), ...args); -}; -export async function* paginateDescribeAssociationExecutionTargets(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeAssociationExecutionsPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeAssociationExecutionsPaginator.js deleted file mode 100644 index 77a07bab..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeAssociationExecutionsPaginator.js +++ /dev/null @@ -1,25 +0,0 @@ -import { DescribeAssociationExecutionsCommand, } from "../commands/DescribeAssociationExecutionsCommand"; -import { SSMClient } from "../SSMClient"; -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeAssociationExecutionsCommand(input), ...args); -}; -export async function* paginateDescribeAssociationExecutions(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeAutomationExecutionsPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeAutomationExecutionsPaginator.js deleted file mode 100644 index aa64b8b1..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeAutomationExecutionsPaginator.js +++ /dev/null @@ -1,25 +0,0 @@ -import { DescribeAutomationExecutionsCommand, } from "../commands/DescribeAutomationExecutionsCommand"; -import { SSMClient } from "../SSMClient"; -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeAutomationExecutionsCommand(input), ...args); -}; -export async function* paginateDescribeAutomationExecutions(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeAutomationStepExecutionsPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeAutomationStepExecutionsPaginator.js deleted file mode 100644 index c80194b9..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeAutomationStepExecutionsPaginator.js +++ /dev/null @@ -1,25 +0,0 @@ -import { DescribeAutomationStepExecutionsCommand, } from "../commands/DescribeAutomationStepExecutionsCommand"; -import { SSMClient } from "../SSMClient"; -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeAutomationStepExecutionsCommand(input), ...args); -}; -export async function* paginateDescribeAutomationStepExecutions(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeAvailablePatchesPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeAvailablePatchesPaginator.js deleted file mode 100644 index 36527bff..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeAvailablePatchesPaginator.js +++ /dev/null @@ -1,25 +0,0 @@ -import { DescribeAvailablePatchesCommand, } from "../commands/DescribeAvailablePatchesCommand"; -import { SSMClient } from "../SSMClient"; -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeAvailablePatchesCommand(input), ...args); -}; -export async function* paginateDescribeAvailablePatches(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeEffectiveInstanceAssociationsPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeEffectiveInstanceAssociationsPaginator.js deleted file mode 100644 index 72865cb8..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeEffectiveInstanceAssociationsPaginator.js +++ /dev/null @@ -1,25 +0,0 @@ -import { DescribeEffectiveInstanceAssociationsCommand, } from "../commands/DescribeEffectiveInstanceAssociationsCommand"; -import { SSMClient } from "../SSMClient"; -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeEffectiveInstanceAssociationsCommand(input), ...args); -}; -export async function* paginateDescribeEffectiveInstanceAssociations(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeEffectivePatchesForPatchBaselinePaginator.js b/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeEffectivePatchesForPatchBaselinePaginator.js deleted file mode 100644 index 6c0188c5..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeEffectivePatchesForPatchBaselinePaginator.js +++ /dev/null @@ -1,25 +0,0 @@ -import { DescribeEffectivePatchesForPatchBaselineCommand, } from "../commands/DescribeEffectivePatchesForPatchBaselineCommand"; -import { SSMClient } from "../SSMClient"; -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeEffectivePatchesForPatchBaselineCommand(input), ...args); -}; -export async function* paginateDescribeEffectivePatchesForPatchBaseline(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeInstanceAssociationsStatusPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeInstanceAssociationsStatusPaginator.js deleted file mode 100644 index 9a241b9f..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeInstanceAssociationsStatusPaginator.js +++ /dev/null @@ -1,25 +0,0 @@ -import { DescribeInstanceAssociationsStatusCommand, } from "../commands/DescribeInstanceAssociationsStatusCommand"; -import { SSMClient } from "../SSMClient"; -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeInstanceAssociationsStatusCommand(input), ...args); -}; -export async function* paginateDescribeInstanceAssociationsStatus(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeInstanceInformationPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeInstanceInformationPaginator.js deleted file mode 100644 index b049d172..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeInstanceInformationPaginator.js +++ /dev/null @@ -1,25 +0,0 @@ -import { DescribeInstanceInformationCommand, } from "../commands/DescribeInstanceInformationCommand"; -import { SSMClient } from "../SSMClient"; -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeInstanceInformationCommand(input), ...args); -}; -export async function* paginateDescribeInstanceInformation(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeInstancePatchStatesForPatchGroupPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeInstancePatchStatesForPatchGroupPaginator.js deleted file mode 100644 index fee0d15f..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeInstancePatchStatesForPatchGroupPaginator.js +++ /dev/null @@ -1,25 +0,0 @@ -import { DescribeInstancePatchStatesForPatchGroupCommand, } from "../commands/DescribeInstancePatchStatesForPatchGroupCommand"; -import { SSMClient } from "../SSMClient"; -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeInstancePatchStatesForPatchGroupCommand(input), ...args); -}; -export async function* paginateDescribeInstancePatchStatesForPatchGroup(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeInstancePatchStatesPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeInstancePatchStatesPaginator.js deleted file mode 100644 index e71c5bd4..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeInstancePatchStatesPaginator.js +++ /dev/null @@ -1,25 +0,0 @@ -import { DescribeInstancePatchStatesCommand, } from "../commands/DescribeInstancePatchStatesCommand"; -import { SSMClient } from "../SSMClient"; -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeInstancePatchStatesCommand(input), ...args); -}; -export async function* paginateDescribeInstancePatchStates(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeInstancePatchesPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeInstancePatchesPaginator.js deleted file mode 100644 index e95a65af..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeInstancePatchesPaginator.js +++ /dev/null @@ -1,25 +0,0 @@ -import { DescribeInstancePatchesCommand, } from "../commands/DescribeInstancePatchesCommand"; -import { SSMClient } from "../SSMClient"; -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeInstancePatchesCommand(input), ...args); -}; -export async function* paginateDescribeInstancePatches(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeInventoryDeletionsPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeInventoryDeletionsPaginator.js deleted file mode 100644 index fc3d9671..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeInventoryDeletionsPaginator.js +++ /dev/null @@ -1,25 +0,0 @@ -import { DescribeInventoryDeletionsCommand, } from "../commands/DescribeInventoryDeletionsCommand"; -import { SSMClient } from "../SSMClient"; -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeInventoryDeletionsCommand(input), ...args); -}; -export async function* paginateDescribeInventoryDeletions(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeMaintenanceWindowExecutionTaskInvocationsPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeMaintenanceWindowExecutionTaskInvocationsPaginator.js deleted file mode 100644 index d7476cb3..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeMaintenanceWindowExecutionTaskInvocationsPaginator.js +++ /dev/null @@ -1,25 +0,0 @@ -import { DescribeMaintenanceWindowExecutionTaskInvocationsCommand, } from "../commands/DescribeMaintenanceWindowExecutionTaskInvocationsCommand"; -import { SSMClient } from "../SSMClient"; -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeMaintenanceWindowExecutionTaskInvocationsCommand(input), ...args); -}; -export async function* paginateDescribeMaintenanceWindowExecutionTaskInvocations(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeMaintenanceWindowExecutionTasksPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeMaintenanceWindowExecutionTasksPaginator.js deleted file mode 100644 index e82e87cf..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeMaintenanceWindowExecutionTasksPaginator.js +++ /dev/null @@ -1,25 +0,0 @@ -import { DescribeMaintenanceWindowExecutionTasksCommand, } from "../commands/DescribeMaintenanceWindowExecutionTasksCommand"; -import { SSMClient } from "../SSMClient"; -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeMaintenanceWindowExecutionTasksCommand(input), ...args); -}; -export async function* paginateDescribeMaintenanceWindowExecutionTasks(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeMaintenanceWindowExecutionsPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeMaintenanceWindowExecutionsPaginator.js deleted file mode 100644 index 05e17406..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeMaintenanceWindowExecutionsPaginator.js +++ /dev/null @@ -1,25 +0,0 @@ -import { DescribeMaintenanceWindowExecutionsCommand, } from "../commands/DescribeMaintenanceWindowExecutionsCommand"; -import { SSMClient } from "../SSMClient"; -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeMaintenanceWindowExecutionsCommand(input), ...args); -}; -export async function* paginateDescribeMaintenanceWindowExecutions(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeMaintenanceWindowSchedulePaginator.js b/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeMaintenanceWindowSchedulePaginator.js deleted file mode 100644 index 07ad9ab6..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeMaintenanceWindowSchedulePaginator.js +++ /dev/null @@ -1,25 +0,0 @@ -import { DescribeMaintenanceWindowScheduleCommand, } from "../commands/DescribeMaintenanceWindowScheduleCommand"; -import { SSMClient } from "../SSMClient"; -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeMaintenanceWindowScheduleCommand(input), ...args); -}; -export async function* paginateDescribeMaintenanceWindowSchedule(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeMaintenanceWindowTargetsPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeMaintenanceWindowTargetsPaginator.js deleted file mode 100644 index b1199a7d..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeMaintenanceWindowTargetsPaginator.js +++ /dev/null @@ -1,25 +0,0 @@ -import { DescribeMaintenanceWindowTargetsCommand, } from "../commands/DescribeMaintenanceWindowTargetsCommand"; -import { SSMClient } from "../SSMClient"; -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeMaintenanceWindowTargetsCommand(input), ...args); -}; -export async function* paginateDescribeMaintenanceWindowTargets(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeMaintenanceWindowTasksPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeMaintenanceWindowTasksPaginator.js deleted file mode 100644 index 0bdf2b23..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeMaintenanceWindowTasksPaginator.js +++ /dev/null @@ -1,25 +0,0 @@ -import { DescribeMaintenanceWindowTasksCommand, } from "../commands/DescribeMaintenanceWindowTasksCommand"; -import { SSMClient } from "../SSMClient"; -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeMaintenanceWindowTasksCommand(input), ...args); -}; -export async function* paginateDescribeMaintenanceWindowTasks(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeMaintenanceWindowsForTargetPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeMaintenanceWindowsForTargetPaginator.js deleted file mode 100644 index fa1a0666..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeMaintenanceWindowsForTargetPaginator.js +++ /dev/null @@ -1,25 +0,0 @@ -import { DescribeMaintenanceWindowsForTargetCommand, } from "../commands/DescribeMaintenanceWindowsForTargetCommand"; -import { SSMClient } from "../SSMClient"; -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeMaintenanceWindowsForTargetCommand(input), ...args); -}; -export async function* paginateDescribeMaintenanceWindowsForTarget(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeMaintenanceWindowsPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeMaintenanceWindowsPaginator.js deleted file mode 100644 index 46137d2a..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeMaintenanceWindowsPaginator.js +++ /dev/null @@ -1,25 +0,0 @@ -import { DescribeMaintenanceWindowsCommand, } from "../commands/DescribeMaintenanceWindowsCommand"; -import { SSMClient } from "../SSMClient"; -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeMaintenanceWindowsCommand(input), ...args); -}; -export async function* paginateDescribeMaintenanceWindows(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeOpsItemsPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeOpsItemsPaginator.js deleted file mode 100644 index 75152c34..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeOpsItemsPaginator.js +++ /dev/null @@ -1,25 +0,0 @@ -import { DescribeOpsItemsCommand, } from "../commands/DescribeOpsItemsCommand"; -import { SSMClient } from "../SSMClient"; -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeOpsItemsCommand(input), ...args); -}; -export async function* paginateDescribeOpsItems(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeParametersPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeParametersPaginator.js deleted file mode 100644 index 4d2cc213..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeParametersPaginator.js +++ /dev/null @@ -1,25 +0,0 @@ -import { DescribeParametersCommand, } from "../commands/DescribeParametersCommand"; -import { SSMClient } from "../SSMClient"; -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeParametersCommand(input), ...args); -}; -export async function* paginateDescribeParameters(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribePatchBaselinesPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribePatchBaselinesPaginator.js deleted file mode 100644 index ae9945a4..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribePatchBaselinesPaginator.js +++ /dev/null @@ -1,25 +0,0 @@ -import { DescribePatchBaselinesCommand, } from "../commands/DescribePatchBaselinesCommand"; -import { SSMClient } from "../SSMClient"; -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribePatchBaselinesCommand(input), ...args); -}; -export async function* paginateDescribePatchBaselines(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribePatchGroupsPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribePatchGroupsPaginator.js deleted file mode 100644 index ae445fbb..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribePatchGroupsPaginator.js +++ /dev/null @@ -1,25 +0,0 @@ -import { DescribePatchGroupsCommand, } from "../commands/DescribePatchGroupsCommand"; -import { SSMClient } from "../SSMClient"; -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribePatchGroupsCommand(input), ...args); -}; -export async function* paginateDescribePatchGroups(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribePatchPropertiesPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribePatchPropertiesPaginator.js deleted file mode 100644 index 3ff59156..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribePatchPropertiesPaginator.js +++ /dev/null @@ -1,25 +0,0 @@ -import { DescribePatchPropertiesCommand, } from "../commands/DescribePatchPropertiesCommand"; -import { SSMClient } from "../SSMClient"; -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribePatchPropertiesCommand(input), ...args); -}; -export async function* paginateDescribePatchProperties(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeSessionsPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeSessionsPaginator.js deleted file mode 100644 index 1534bb5d..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/DescribeSessionsPaginator.js +++ /dev/null @@ -1,25 +0,0 @@ -import { DescribeSessionsCommand, } from "../commands/DescribeSessionsCommand"; -import { SSMClient } from "../SSMClient"; -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new DescribeSessionsCommand(input), ...args); -}; -export async function* paginateDescribeSessions(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/GetInventoryPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-es/pagination/GetInventoryPaginator.js deleted file mode 100644 index 5ff9b596..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/GetInventoryPaginator.js +++ /dev/null @@ -1,25 +0,0 @@ -import { GetInventoryCommand, } from "../commands/GetInventoryCommand"; -import { SSMClient } from "../SSMClient"; -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new GetInventoryCommand(input), ...args); -}; -export async function* paginateGetInventory(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/GetInventorySchemaPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-es/pagination/GetInventorySchemaPaginator.js deleted file mode 100644 index 4792dee3..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/GetInventorySchemaPaginator.js +++ /dev/null @@ -1,25 +0,0 @@ -import { GetInventorySchemaCommand, } from "../commands/GetInventorySchemaCommand"; -import { SSMClient } from "../SSMClient"; -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new GetInventorySchemaCommand(input), ...args); -}; -export async function* paginateGetInventorySchema(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/GetOpsSummaryPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-es/pagination/GetOpsSummaryPaginator.js deleted file mode 100644 index 03f2f718..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/GetOpsSummaryPaginator.js +++ /dev/null @@ -1,25 +0,0 @@ -import { GetOpsSummaryCommand, } from "../commands/GetOpsSummaryCommand"; -import { SSMClient } from "../SSMClient"; -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new GetOpsSummaryCommand(input), ...args); -}; -export async function* paginateGetOpsSummary(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/GetParameterHistoryPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-es/pagination/GetParameterHistoryPaginator.js deleted file mode 100644 index 424d0c5a..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/GetParameterHistoryPaginator.js +++ /dev/null @@ -1,25 +0,0 @@ -import { GetParameterHistoryCommand, } from "../commands/GetParameterHistoryCommand"; -import { SSMClient } from "../SSMClient"; -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new GetParameterHistoryCommand(input), ...args); -}; -export async function* paginateGetParameterHistory(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/GetParametersByPathPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-es/pagination/GetParametersByPathPaginator.js deleted file mode 100644 index 474649c0..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/GetParametersByPathPaginator.js +++ /dev/null @@ -1,25 +0,0 @@ -import { GetParametersByPathCommand, } from "../commands/GetParametersByPathCommand"; -import { SSMClient } from "../SSMClient"; -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new GetParametersByPathCommand(input), ...args); -}; -export async function* paginateGetParametersByPath(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/GetResourcePoliciesPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-es/pagination/GetResourcePoliciesPaginator.js deleted file mode 100644 index cd64696c..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/GetResourcePoliciesPaginator.js +++ /dev/null @@ -1,25 +0,0 @@ -import { GetResourcePoliciesCommand, } from "../commands/GetResourcePoliciesCommand"; -import { SSMClient } from "../SSMClient"; -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new GetResourcePoliciesCommand(input), ...args); -}; -export async function* paginateGetResourcePolicies(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/Interfaces.js b/node_modules/@aws-sdk/client-ssm/dist-es/pagination/Interfaces.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/Interfaces.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/ListAssociationVersionsPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-es/pagination/ListAssociationVersionsPaginator.js deleted file mode 100644 index c83e8ee6..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/ListAssociationVersionsPaginator.js +++ /dev/null @@ -1,25 +0,0 @@ -import { ListAssociationVersionsCommand, } from "../commands/ListAssociationVersionsCommand"; -import { SSMClient } from "../SSMClient"; -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListAssociationVersionsCommand(input), ...args); -}; -export async function* paginateListAssociationVersions(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/ListAssociationsPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-es/pagination/ListAssociationsPaginator.js deleted file mode 100644 index 4c5c35f0..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/ListAssociationsPaginator.js +++ /dev/null @@ -1,25 +0,0 @@ -import { ListAssociationsCommand, } from "../commands/ListAssociationsCommand"; -import { SSMClient } from "../SSMClient"; -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListAssociationsCommand(input), ...args); -}; -export async function* paginateListAssociations(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/ListCommandInvocationsPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-es/pagination/ListCommandInvocationsPaginator.js deleted file mode 100644 index 2ecfae9b..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/ListCommandInvocationsPaginator.js +++ /dev/null @@ -1,25 +0,0 @@ -import { ListCommandInvocationsCommand, } from "../commands/ListCommandInvocationsCommand"; -import { SSMClient } from "../SSMClient"; -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListCommandInvocationsCommand(input), ...args); -}; -export async function* paginateListCommandInvocations(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/ListCommandsPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-es/pagination/ListCommandsPaginator.js deleted file mode 100644 index e6348638..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/ListCommandsPaginator.js +++ /dev/null @@ -1,25 +0,0 @@ -import { ListCommandsCommand, } from "../commands/ListCommandsCommand"; -import { SSMClient } from "../SSMClient"; -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListCommandsCommand(input), ...args); -}; -export async function* paginateListCommands(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/ListComplianceItemsPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-es/pagination/ListComplianceItemsPaginator.js deleted file mode 100644 index 72bc707a..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/ListComplianceItemsPaginator.js +++ /dev/null @@ -1,25 +0,0 @@ -import { ListComplianceItemsCommand, } from "../commands/ListComplianceItemsCommand"; -import { SSMClient } from "../SSMClient"; -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListComplianceItemsCommand(input), ...args); -}; -export async function* paginateListComplianceItems(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/ListComplianceSummariesPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-es/pagination/ListComplianceSummariesPaginator.js deleted file mode 100644 index d8d766e2..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/ListComplianceSummariesPaginator.js +++ /dev/null @@ -1,25 +0,0 @@ -import { ListComplianceSummariesCommand, } from "../commands/ListComplianceSummariesCommand"; -import { SSMClient } from "../SSMClient"; -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListComplianceSummariesCommand(input), ...args); -}; -export async function* paginateListComplianceSummaries(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/ListDocumentVersionsPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-es/pagination/ListDocumentVersionsPaginator.js deleted file mode 100644 index bc7b5cb8..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/ListDocumentVersionsPaginator.js +++ /dev/null @@ -1,25 +0,0 @@ -import { ListDocumentVersionsCommand, } from "../commands/ListDocumentVersionsCommand"; -import { SSMClient } from "../SSMClient"; -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListDocumentVersionsCommand(input), ...args); -}; -export async function* paginateListDocumentVersions(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/ListDocumentsPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-es/pagination/ListDocumentsPaginator.js deleted file mode 100644 index 2a65f6cd..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/ListDocumentsPaginator.js +++ /dev/null @@ -1,25 +0,0 @@ -import { ListDocumentsCommand, } from "../commands/ListDocumentsCommand"; -import { SSMClient } from "../SSMClient"; -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListDocumentsCommand(input), ...args); -}; -export async function* paginateListDocuments(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/ListOpsItemEventsPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-es/pagination/ListOpsItemEventsPaginator.js deleted file mode 100644 index 929fb225..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/ListOpsItemEventsPaginator.js +++ /dev/null @@ -1,25 +0,0 @@ -import { ListOpsItemEventsCommand, } from "../commands/ListOpsItemEventsCommand"; -import { SSMClient } from "../SSMClient"; -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListOpsItemEventsCommand(input), ...args); -}; -export async function* paginateListOpsItemEvents(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/ListOpsItemRelatedItemsPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-es/pagination/ListOpsItemRelatedItemsPaginator.js deleted file mode 100644 index dc57a824..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/ListOpsItemRelatedItemsPaginator.js +++ /dev/null @@ -1,25 +0,0 @@ -import { ListOpsItemRelatedItemsCommand, } from "../commands/ListOpsItemRelatedItemsCommand"; -import { SSMClient } from "../SSMClient"; -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListOpsItemRelatedItemsCommand(input), ...args); -}; -export async function* paginateListOpsItemRelatedItems(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/ListOpsMetadataPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-es/pagination/ListOpsMetadataPaginator.js deleted file mode 100644 index e0105a14..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/ListOpsMetadataPaginator.js +++ /dev/null @@ -1,25 +0,0 @@ -import { ListOpsMetadataCommand, } from "../commands/ListOpsMetadataCommand"; -import { SSMClient } from "../SSMClient"; -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListOpsMetadataCommand(input), ...args); -}; -export async function* paginateListOpsMetadata(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/ListResourceComplianceSummariesPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-es/pagination/ListResourceComplianceSummariesPaginator.js deleted file mode 100644 index ec5c03b4..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/ListResourceComplianceSummariesPaginator.js +++ /dev/null @@ -1,25 +0,0 @@ -import { ListResourceComplianceSummariesCommand, } from "../commands/ListResourceComplianceSummariesCommand"; -import { SSMClient } from "../SSMClient"; -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListResourceComplianceSummariesCommand(input), ...args); -}; -export async function* paginateListResourceComplianceSummaries(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/ListResourceDataSyncPaginator.js b/node_modules/@aws-sdk/client-ssm/dist-es/pagination/ListResourceDataSyncPaginator.js deleted file mode 100644 index 2660c330..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/ListResourceDataSyncPaginator.js +++ /dev/null @@ -1,25 +0,0 @@ -import { ListResourceDataSyncCommand, } from "../commands/ListResourceDataSyncCommand"; -import { SSMClient } from "../SSMClient"; -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListResourceDataSyncCommand(input), ...args); -}; -export async function* paginateListResourceDataSync(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.NextToken = token; - input["MaxResults"] = config.pageSize; - if (config.client instanceof SSMClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSM | SSMClient"); - } - yield page; - const prevToken = token; - token = page.NextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/index.js b/node_modules/@aws-sdk/client-ssm/dist-es/pagination/index.js deleted file mode 100644 index 7cb9faa7..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/pagination/index.js +++ /dev/null @@ -1,48 +0,0 @@ -export * from "./DescribeActivationsPaginator"; -export * from "./DescribeAssociationExecutionTargetsPaginator"; -export * from "./DescribeAssociationExecutionsPaginator"; -export * from "./DescribeAutomationExecutionsPaginator"; -export * from "./DescribeAutomationStepExecutionsPaginator"; -export * from "./DescribeAvailablePatchesPaginator"; -export * from "./DescribeEffectiveInstanceAssociationsPaginator"; -export * from "./DescribeEffectivePatchesForPatchBaselinePaginator"; -export * from "./DescribeInstanceAssociationsStatusPaginator"; -export * from "./DescribeInstanceInformationPaginator"; -export * from "./Interfaces"; -export * from "./DescribeInstancePatchStatesForPatchGroupPaginator"; -export * from "./DescribeInstancePatchStatesPaginator"; -export * from "./DescribeInstancePatchesPaginator"; -export * from "./DescribeInventoryDeletionsPaginator"; -export * from "./DescribeMaintenanceWindowExecutionTaskInvocationsPaginator"; -export * from "./DescribeMaintenanceWindowExecutionTasksPaginator"; -export * from "./DescribeMaintenanceWindowExecutionsPaginator"; -export * from "./DescribeMaintenanceWindowSchedulePaginator"; -export * from "./DescribeMaintenanceWindowTargetsPaginator"; -export * from "./DescribeMaintenanceWindowTasksPaginator"; -export * from "./DescribeMaintenanceWindowsForTargetPaginator"; -export * from "./DescribeMaintenanceWindowsPaginator"; -export * from "./DescribeOpsItemsPaginator"; -export * from "./DescribeParametersPaginator"; -export * from "./DescribePatchBaselinesPaginator"; -export * from "./DescribePatchGroupsPaginator"; -export * from "./DescribePatchPropertiesPaginator"; -export * from "./DescribeSessionsPaginator"; -export * from "./GetInventoryPaginator"; -export * from "./GetInventorySchemaPaginator"; -export * from "./GetOpsSummaryPaginator"; -export * from "./GetParameterHistoryPaginator"; -export * from "./GetParametersByPathPaginator"; -export * from "./GetResourcePoliciesPaginator"; -export * from "./ListAssociationVersionsPaginator"; -export * from "./ListAssociationsPaginator"; -export * from "./ListCommandInvocationsPaginator"; -export * from "./ListCommandsPaginator"; -export * from "./ListComplianceItemsPaginator"; -export * from "./ListComplianceSummariesPaginator"; -export * from "./ListDocumentVersionsPaginator"; -export * from "./ListDocumentsPaginator"; -export * from "./ListOpsItemEventsPaginator"; -export * from "./ListOpsItemRelatedItemsPaginator"; -export * from "./ListOpsMetadataPaginator"; -export * from "./ListResourceComplianceSummariesPaginator"; -export * from "./ListResourceDataSyncPaginator"; diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/protocols/Aws_json1_1.js b/node_modules/@aws-sdk/client-ssm/dist-es/protocols/Aws_json1_1.js deleted file mode 100644 index 2d214365..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/protocols/Aws_json1_1.js +++ /dev/null @@ -1,9406 +0,0 @@ -import { HttpRequest as __HttpRequest } from "@smithy/protocol-http"; -import { _json, collectBody, decorateServiceException as __decorateServiceException, expectBoolean as __expectBoolean, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectNumber as __expectNumber, expectString as __expectString, parseEpochTimestamp as __parseEpochTimestamp, take, withBaseException, } from "@smithy/smithy-client"; -import { v4 as generateIdempotencyToken } from "uuid"; -import { AlreadyExistsException, AssociatedInstances, AssociationAlreadyExists, AssociationDoesNotExist, AssociationExecutionDoesNotExist, AssociationLimitExceeded, AutomationExecutionNotFoundException, DocumentAlreadyExists, DocumentLimitExceeded, DoesNotExistException, DuplicateInstanceId, IdempotentParameterMismatch, InternalServerError, InvalidActivation, InvalidActivationId, InvalidAssociationVersion, InvalidCommandId, InvalidDeleteInventoryParametersException, InvalidDeletionIdException, InvalidDocument, InvalidDocumentContent, InvalidDocumentOperation, InvalidDocumentSchemaVersion, InvalidDocumentVersion, InvalidFilter, InvalidFilterKey, InvalidFilterValue, InvalidInstanceId, InvalidInstanceInformationFilterValue, InvalidInventoryRequestException, InvalidNextToken, InvalidOptionException, InvalidOutputLocation, InvalidParameters, InvalidPermissionType, InvalidResourceId, InvalidResourceType, InvalidSchedule, InvalidTag, InvalidTarget, InvalidTargetMaps, InvalidTypeNameException, MaxDocumentSizeExceeded, OpsItemAccessDeniedException, OpsItemAlreadyExistsException, OpsItemConflictException, OpsItemInvalidParameterException, OpsItemLimitExceededException, OpsItemNotFoundException, OpsItemRelatedItemAlreadyExistsException, OpsMetadataAlreadyExistsException, OpsMetadataInvalidArgumentException, OpsMetadataLimitExceededException, OpsMetadataNotFoundException, OpsMetadataTooManyUpdatesException, ParameterNotFound, ResourceDataSyncAlreadyExistsException, ResourceDataSyncCountExceededException, ResourceDataSyncInvalidConfigurationException, ResourceDataSyncNotFoundException, ResourceInUseException, ResourceLimitExceededException, ResourcePolicyConflictException, ResourcePolicyInvalidParameterException, TargetInUseException, TooManyTagsError, TooManyUpdates, UnsupportedOperatingSystem, UnsupportedPlatformType, } from "../models/models_0"; -import { AutomationDefinitionNotApprovedException, AutomationDefinitionNotFoundException, AutomationDefinitionVersionNotFoundException, AutomationExecutionLimitExceededException, AutomationStepNotFoundException, ComplianceTypeCountLimitExceededException, CustomSchemaCountLimitExceededException, DocumentPermissionLimit, FeatureNotAvailableException, HierarchyLevelLimitExceededException, HierarchyTypeMismatchException, IncompatiblePolicyException, InvalidAggregatorException, InvalidAllowedPatternException, InvalidAssociation, InvalidAutomationExecutionParametersException, InvalidAutomationSignalException, InvalidAutomationStatusUpdateException, InvalidDocumentType, InvalidFilterOption, InvalidInventoryGroupException, InvalidInventoryItemContextException, InvalidItemContentException, InvalidKeyId, InvalidNotificationConfig, InvalidOutputFolder, InvalidPluginName, InvalidPolicyAttributeException, InvalidPolicyTypeException, InvalidResultAttributeException, InvalidRole, InvocationDoesNotExist, ItemContentMismatchException, ItemSizeLimitExceededException, OpsItemRelatedItemAssociationNotFoundException, ParameterAlreadyExists, ParameterLimitExceeded, ParameterMaxVersionLimitExceeded, ParameterPatternMismatchException, ParameterVersionLabelLimitExceeded, ParameterVersionNotFound, PoliciesLimitExceededException, ResourcePolicyLimitExceededException, ServiceSettingNotFound, SubTypeCountLimitExceededException, TargetNotConnected, TotalSizeLimitExceededException, UnsupportedCalendarException, UnsupportedFeatureRequiredException, UnsupportedInventoryItemContextException, UnsupportedInventorySchemaVersionException, UnsupportedParameterType, } from "../models/models_1"; -import { AssociationVersionLimitExceeded, DocumentVersionLimitExceeded, DuplicateDocumentContent, DuplicateDocumentVersionName, InvalidUpdate, OpsMetadataKeyLimitExceededException, ResourceDataSyncConflictException, StatusUnchanged, } from "../models/models_2"; -import { SSMServiceException as __BaseException } from "../models/SSMServiceException"; -export const se_AddTagsToResourceCommand = async (input, context) => { - const headers = sharedHeaders("AddTagsToResource"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_AssociateOpsItemRelatedItemCommand = async (input, context) => { - const headers = sharedHeaders("AssociateOpsItemRelatedItem"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_CancelCommandCommand = async (input, context) => { - const headers = sharedHeaders("CancelCommand"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_CancelMaintenanceWindowExecutionCommand = async (input, context) => { - const headers = sharedHeaders("CancelMaintenanceWindowExecution"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_CreateActivationCommand = async (input, context) => { - const headers = sharedHeaders("CreateActivation"); - let body; - body = JSON.stringify(se_CreateActivationRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_CreateAssociationCommand = async (input, context) => { - const headers = sharedHeaders("CreateAssociation"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_CreateAssociationBatchCommand = async (input, context) => { - const headers = sharedHeaders("CreateAssociationBatch"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_CreateDocumentCommand = async (input, context) => { - const headers = sharedHeaders("CreateDocument"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_CreateMaintenanceWindowCommand = async (input, context) => { - const headers = sharedHeaders("CreateMaintenanceWindow"); - let body; - body = JSON.stringify(se_CreateMaintenanceWindowRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_CreateOpsItemCommand = async (input, context) => { - const headers = sharedHeaders("CreateOpsItem"); - let body; - body = JSON.stringify(se_CreateOpsItemRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_CreateOpsMetadataCommand = async (input, context) => { - const headers = sharedHeaders("CreateOpsMetadata"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_CreatePatchBaselineCommand = async (input, context) => { - const headers = sharedHeaders("CreatePatchBaseline"); - let body; - body = JSON.stringify(se_CreatePatchBaselineRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_CreateResourceDataSyncCommand = async (input, context) => { - const headers = sharedHeaders("CreateResourceDataSync"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_DeleteActivationCommand = async (input, context) => { - const headers = sharedHeaders("DeleteActivation"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_DeleteAssociationCommand = async (input, context) => { - const headers = sharedHeaders("DeleteAssociation"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_DeleteDocumentCommand = async (input, context) => { - const headers = sharedHeaders("DeleteDocument"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_DeleteInventoryCommand = async (input, context) => { - const headers = sharedHeaders("DeleteInventory"); - let body; - body = JSON.stringify(se_DeleteInventoryRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_DeleteMaintenanceWindowCommand = async (input, context) => { - const headers = sharedHeaders("DeleteMaintenanceWindow"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_DeleteOpsItemCommand = async (input, context) => { - const headers = sharedHeaders("DeleteOpsItem"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_DeleteOpsMetadataCommand = async (input, context) => { - const headers = sharedHeaders("DeleteOpsMetadata"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_DeleteParameterCommand = async (input, context) => { - const headers = sharedHeaders("DeleteParameter"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_DeleteParametersCommand = async (input, context) => { - const headers = sharedHeaders("DeleteParameters"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_DeletePatchBaselineCommand = async (input, context) => { - const headers = sharedHeaders("DeletePatchBaseline"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_DeleteResourceDataSyncCommand = async (input, context) => { - const headers = sharedHeaders("DeleteResourceDataSync"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_DeleteResourcePolicyCommand = async (input, context) => { - const headers = sharedHeaders("DeleteResourcePolicy"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_DeregisterManagedInstanceCommand = async (input, context) => { - const headers = sharedHeaders("DeregisterManagedInstance"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_DeregisterPatchBaselineForPatchGroupCommand = async (input, context) => { - const headers = sharedHeaders("DeregisterPatchBaselineForPatchGroup"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_DeregisterTargetFromMaintenanceWindowCommand = async (input, context) => { - const headers = sharedHeaders("DeregisterTargetFromMaintenanceWindow"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_DeregisterTaskFromMaintenanceWindowCommand = async (input, context) => { - const headers = sharedHeaders("DeregisterTaskFromMaintenanceWindow"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_DescribeActivationsCommand = async (input, context) => { - const headers = sharedHeaders("DescribeActivations"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_DescribeAssociationCommand = async (input, context) => { - const headers = sharedHeaders("DescribeAssociation"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_DescribeAssociationExecutionsCommand = async (input, context) => { - const headers = sharedHeaders("DescribeAssociationExecutions"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_DescribeAssociationExecutionTargetsCommand = async (input, context) => { - const headers = sharedHeaders("DescribeAssociationExecutionTargets"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_DescribeAutomationExecutionsCommand = async (input, context) => { - const headers = sharedHeaders("DescribeAutomationExecutions"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_DescribeAutomationStepExecutionsCommand = async (input, context) => { - const headers = sharedHeaders("DescribeAutomationStepExecutions"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_DescribeAvailablePatchesCommand = async (input, context) => { - const headers = sharedHeaders("DescribeAvailablePatches"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_DescribeDocumentCommand = async (input, context) => { - const headers = sharedHeaders("DescribeDocument"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_DescribeDocumentPermissionCommand = async (input, context) => { - const headers = sharedHeaders("DescribeDocumentPermission"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_DescribeEffectiveInstanceAssociationsCommand = async (input, context) => { - const headers = sharedHeaders("DescribeEffectiveInstanceAssociations"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_DescribeEffectivePatchesForPatchBaselineCommand = async (input, context) => { - const headers = sharedHeaders("DescribeEffectivePatchesForPatchBaseline"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_DescribeInstanceAssociationsStatusCommand = async (input, context) => { - const headers = sharedHeaders("DescribeInstanceAssociationsStatus"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_DescribeInstanceInformationCommand = async (input, context) => { - const headers = sharedHeaders("DescribeInstanceInformation"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_DescribeInstancePatchesCommand = async (input, context) => { - const headers = sharedHeaders("DescribeInstancePatches"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_DescribeInstancePatchStatesCommand = async (input, context) => { - const headers = sharedHeaders("DescribeInstancePatchStates"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_DescribeInstancePatchStatesForPatchGroupCommand = async (input, context) => { - const headers = sharedHeaders("DescribeInstancePatchStatesForPatchGroup"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_DescribeInventoryDeletionsCommand = async (input, context) => { - const headers = sharedHeaders("DescribeInventoryDeletions"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_DescribeMaintenanceWindowExecutionsCommand = async (input, context) => { - const headers = sharedHeaders("DescribeMaintenanceWindowExecutions"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_DescribeMaintenanceWindowExecutionTaskInvocationsCommand = async (input, context) => { - const headers = sharedHeaders("DescribeMaintenanceWindowExecutionTaskInvocations"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_DescribeMaintenanceWindowExecutionTasksCommand = async (input, context) => { - const headers = sharedHeaders("DescribeMaintenanceWindowExecutionTasks"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_DescribeMaintenanceWindowsCommand = async (input, context) => { - const headers = sharedHeaders("DescribeMaintenanceWindows"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_DescribeMaintenanceWindowScheduleCommand = async (input, context) => { - const headers = sharedHeaders("DescribeMaintenanceWindowSchedule"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_DescribeMaintenanceWindowsForTargetCommand = async (input, context) => { - const headers = sharedHeaders("DescribeMaintenanceWindowsForTarget"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_DescribeMaintenanceWindowTargetsCommand = async (input, context) => { - const headers = sharedHeaders("DescribeMaintenanceWindowTargets"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_DescribeMaintenanceWindowTasksCommand = async (input, context) => { - const headers = sharedHeaders("DescribeMaintenanceWindowTasks"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_DescribeOpsItemsCommand = async (input, context) => { - const headers = sharedHeaders("DescribeOpsItems"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_DescribeParametersCommand = async (input, context) => { - const headers = sharedHeaders("DescribeParameters"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_DescribePatchBaselinesCommand = async (input, context) => { - const headers = sharedHeaders("DescribePatchBaselines"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_DescribePatchGroupsCommand = async (input, context) => { - const headers = sharedHeaders("DescribePatchGroups"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_DescribePatchGroupStateCommand = async (input, context) => { - const headers = sharedHeaders("DescribePatchGroupState"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_DescribePatchPropertiesCommand = async (input, context) => { - const headers = sharedHeaders("DescribePatchProperties"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_DescribeSessionsCommand = async (input, context) => { - const headers = sharedHeaders("DescribeSessions"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_DisassociateOpsItemRelatedItemCommand = async (input, context) => { - const headers = sharedHeaders("DisassociateOpsItemRelatedItem"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_GetAutomationExecutionCommand = async (input, context) => { - const headers = sharedHeaders("GetAutomationExecution"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_GetCalendarStateCommand = async (input, context) => { - const headers = sharedHeaders("GetCalendarState"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_GetCommandInvocationCommand = async (input, context) => { - const headers = sharedHeaders("GetCommandInvocation"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_GetConnectionStatusCommand = async (input, context) => { - const headers = sharedHeaders("GetConnectionStatus"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_GetDefaultPatchBaselineCommand = async (input, context) => { - const headers = sharedHeaders("GetDefaultPatchBaseline"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_GetDeployablePatchSnapshotForInstanceCommand = async (input, context) => { - const headers = sharedHeaders("GetDeployablePatchSnapshotForInstance"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_GetDocumentCommand = async (input, context) => { - const headers = sharedHeaders("GetDocument"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_GetInventoryCommand = async (input, context) => { - const headers = sharedHeaders("GetInventory"); - let body; - body = JSON.stringify(se_GetInventoryRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_GetInventorySchemaCommand = async (input, context) => { - const headers = sharedHeaders("GetInventorySchema"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_GetMaintenanceWindowCommand = async (input, context) => { - const headers = sharedHeaders("GetMaintenanceWindow"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_GetMaintenanceWindowExecutionCommand = async (input, context) => { - const headers = sharedHeaders("GetMaintenanceWindowExecution"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_GetMaintenanceWindowExecutionTaskCommand = async (input, context) => { - const headers = sharedHeaders("GetMaintenanceWindowExecutionTask"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_GetMaintenanceWindowExecutionTaskInvocationCommand = async (input, context) => { - const headers = sharedHeaders("GetMaintenanceWindowExecutionTaskInvocation"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_GetMaintenanceWindowTaskCommand = async (input, context) => { - const headers = sharedHeaders("GetMaintenanceWindowTask"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_GetOpsItemCommand = async (input, context) => { - const headers = sharedHeaders("GetOpsItem"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_GetOpsMetadataCommand = async (input, context) => { - const headers = sharedHeaders("GetOpsMetadata"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_GetOpsSummaryCommand = async (input, context) => { - const headers = sharedHeaders("GetOpsSummary"); - let body; - body = JSON.stringify(se_GetOpsSummaryRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_GetParameterCommand = async (input, context) => { - const headers = sharedHeaders("GetParameter"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_GetParameterHistoryCommand = async (input, context) => { - const headers = sharedHeaders("GetParameterHistory"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_GetParametersCommand = async (input, context) => { - const headers = sharedHeaders("GetParameters"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_GetParametersByPathCommand = async (input, context) => { - const headers = sharedHeaders("GetParametersByPath"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_GetPatchBaselineCommand = async (input, context) => { - const headers = sharedHeaders("GetPatchBaseline"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_GetPatchBaselineForPatchGroupCommand = async (input, context) => { - const headers = sharedHeaders("GetPatchBaselineForPatchGroup"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_GetResourcePoliciesCommand = async (input, context) => { - const headers = sharedHeaders("GetResourcePolicies"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_GetServiceSettingCommand = async (input, context) => { - const headers = sharedHeaders("GetServiceSetting"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_LabelParameterVersionCommand = async (input, context) => { - const headers = sharedHeaders("LabelParameterVersion"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_ListAssociationsCommand = async (input, context) => { - const headers = sharedHeaders("ListAssociations"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_ListAssociationVersionsCommand = async (input, context) => { - const headers = sharedHeaders("ListAssociationVersions"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_ListCommandInvocationsCommand = async (input, context) => { - const headers = sharedHeaders("ListCommandInvocations"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_ListCommandsCommand = async (input, context) => { - const headers = sharedHeaders("ListCommands"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_ListComplianceItemsCommand = async (input, context) => { - const headers = sharedHeaders("ListComplianceItems"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_ListComplianceSummariesCommand = async (input, context) => { - const headers = sharedHeaders("ListComplianceSummaries"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_ListDocumentMetadataHistoryCommand = async (input, context) => { - const headers = sharedHeaders("ListDocumentMetadataHistory"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_ListDocumentsCommand = async (input, context) => { - const headers = sharedHeaders("ListDocuments"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_ListDocumentVersionsCommand = async (input, context) => { - const headers = sharedHeaders("ListDocumentVersions"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_ListInventoryEntriesCommand = async (input, context) => { - const headers = sharedHeaders("ListInventoryEntries"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_ListOpsItemEventsCommand = async (input, context) => { - const headers = sharedHeaders("ListOpsItemEvents"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_ListOpsItemRelatedItemsCommand = async (input, context) => { - const headers = sharedHeaders("ListOpsItemRelatedItems"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_ListOpsMetadataCommand = async (input, context) => { - const headers = sharedHeaders("ListOpsMetadata"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_ListResourceComplianceSummariesCommand = async (input, context) => { - const headers = sharedHeaders("ListResourceComplianceSummaries"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_ListResourceDataSyncCommand = async (input, context) => { - const headers = sharedHeaders("ListResourceDataSync"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_ListTagsForResourceCommand = async (input, context) => { - const headers = sharedHeaders("ListTagsForResource"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_ModifyDocumentPermissionCommand = async (input, context) => { - const headers = sharedHeaders("ModifyDocumentPermission"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_PutComplianceItemsCommand = async (input, context) => { - const headers = sharedHeaders("PutComplianceItems"); - let body; - body = JSON.stringify(se_PutComplianceItemsRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_PutInventoryCommand = async (input, context) => { - const headers = sharedHeaders("PutInventory"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_PutParameterCommand = async (input, context) => { - const headers = sharedHeaders("PutParameter"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_PutResourcePolicyCommand = async (input, context) => { - const headers = sharedHeaders("PutResourcePolicy"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_RegisterDefaultPatchBaselineCommand = async (input, context) => { - const headers = sharedHeaders("RegisterDefaultPatchBaseline"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_RegisterPatchBaselineForPatchGroupCommand = async (input, context) => { - const headers = sharedHeaders("RegisterPatchBaselineForPatchGroup"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_RegisterTargetWithMaintenanceWindowCommand = async (input, context) => { - const headers = sharedHeaders("RegisterTargetWithMaintenanceWindow"); - let body; - body = JSON.stringify(se_RegisterTargetWithMaintenanceWindowRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_RegisterTaskWithMaintenanceWindowCommand = async (input, context) => { - const headers = sharedHeaders("RegisterTaskWithMaintenanceWindow"); - let body; - body = JSON.stringify(se_RegisterTaskWithMaintenanceWindowRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_RemoveTagsFromResourceCommand = async (input, context) => { - const headers = sharedHeaders("RemoveTagsFromResource"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_ResetServiceSettingCommand = async (input, context) => { - const headers = sharedHeaders("ResetServiceSetting"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_ResumeSessionCommand = async (input, context) => { - const headers = sharedHeaders("ResumeSession"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_SendAutomationSignalCommand = async (input, context) => { - const headers = sharedHeaders("SendAutomationSignal"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_SendCommandCommand = async (input, context) => { - const headers = sharedHeaders("SendCommand"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_StartAssociationsOnceCommand = async (input, context) => { - const headers = sharedHeaders("StartAssociationsOnce"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_StartAutomationExecutionCommand = async (input, context) => { - const headers = sharedHeaders("StartAutomationExecution"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_StartChangeRequestExecutionCommand = async (input, context) => { - const headers = sharedHeaders("StartChangeRequestExecution"); - let body; - body = JSON.stringify(se_StartChangeRequestExecutionRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_StartSessionCommand = async (input, context) => { - const headers = sharedHeaders("StartSession"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_StopAutomationExecutionCommand = async (input, context) => { - const headers = sharedHeaders("StopAutomationExecution"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_TerminateSessionCommand = async (input, context) => { - const headers = sharedHeaders("TerminateSession"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_UnlabelParameterVersionCommand = async (input, context) => { - const headers = sharedHeaders("UnlabelParameterVersion"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_UpdateAssociationCommand = async (input, context) => { - const headers = sharedHeaders("UpdateAssociation"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_UpdateAssociationStatusCommand = async (input, context) => { - const headers = sharedHeaders("UpdateAssociationStatus"); - let body; - body = JSON.stringify(se_UpdateAssociationStatusRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_UpdateDocumentCommand = async (input, context) => { - const headers = sharedHeaders("UpdateDocument"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_UpdateDocumentDefaultVersionCommand = async (input, context) => { - const headers = sharedHeaders("UpdateDocumentDefaultVersion"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_UpdateDocumentMetadataCommand = async (input, context) => { - const headers = sharedHeaders("UpdateDocumentMetadata"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_UpdateMaintenanceWindowCommand = async (input, context) => { - const headers = sharedHeaders("UpdateMaintenanceWindow"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_UpdateMaintenanceWindowTargetCommand = async (input, context) => { - const headers = sharedHeaders("UpdateMaintenanceWindowTarget"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_UpdateMaintenanceWindowTaskCommand = async (input, context) => { - const headers = sharedHeaders("UpdateMaintenanceWindowTask"); - let body; - body = JSON.stringify(se_UpdateMaintenanceWindowTaskRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_UpdateManagedInstanceRoleCommand = async (input, context) => { - const headers = sharedHeaders("UpdateManagedInstanceRole"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_UpdateOpsItemCommand = async (input, context) => { - const headers = sharedHeaders("UpdateOpsItem"); - let body; - body = JSON.stringify(se_UpdateOpsItemRequest(input, context)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_UpdateOpsMetadataCommand = async (input, context) => { - const headers = sharedHeaders("UpdateOpsMetadata"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_UpdatePatchBaselineCommand = async (input, context) => { - const headers = sharedHeaders("UpdatePatchBaseline"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_UpdateResourceDataSyncCommand = async (input, context) => { - const headers = sharedHeaders("UpdateResourceDataSync"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_UpdateServiceSettingCommand = async (input, context) => { - const headers = sharedHeaders("UpdateServiceSetting"); - let body; - body = JSON.stringify(_json(input)); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const de_AddTagsToResourceCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_AddTagsToResourceCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_AddTagsToResourceCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidResourceId": - case "com.amazonaws.ssm#InvalidResourceId": - throw await de_InvalidResourceIdRes(parsedOutput, context); - case "InvalidResourceType": - case "com.amazonaws.ssm#InvalidResourceType": - throw await de_InvalidResourceTypeRes(parsedOutput, context); - case "TooManyTagsError": - case "com.amazonaws.ssm#TooManyTagsError": - throw await de_TooManyTagsErrorRes(parsedOutput, context); - case "TooManyUpdates": - case "com.amazonaws.ssm#TooManyUpdates": - throw await de_TooManyUpdatesRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_AssociateOpsItemRelatedItemCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_AssociateOpsItemRelatedItemCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_AssociateOpsItemRelatedItemCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "OpsItemConflictException": - case "com.amazonaws.ssm#OpsItemConflictException": - throw await de_OpsItemConflictExceptionRes(parsedOutput, context); - case "OpsItemInvalidParameterException": - case "com.amazonaws.ssm#OpsItemInvalidParameterException": - throw await de_OpsItemInvalidParameterExceptionRes(parsedOutput, context); - case "OpsItemLimitExceededException": - case "com.amazonaws.ssm#OpsItemLimitExceededException": - throw await de_OpsItemLimitExceededExceptionRes(parsedOutput, context); - case "OpsItemNotFoundException": - case "com.amazonaws.ssm#OpsItemNotFoundException": - throw await de_OpsItemNotFoundExceptionRes(parsedOutput, context); - case "OpsItemRelatedItemAlreadyExistsException": - case "com.amazonaws.ssm#OpsItemRelatedItemAlreadyExistsException": - throw await de_OpsItemRelatedItemAlreadyExistsExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_CancelCommandCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_CancelCommandCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_CancelCommandCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DuplicateInstanceId": - case "com.amazonaws.ssm#DuplicateInstanceId": - throw await de_DuplicateInstanceIdRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidCommandId": - case "com.amazonaws.ssm#InvalidCommandId": - throw await de_InvalidCommandIdRes(parsedOutput, context); - case "InvalidInstanceId": - case "com.amazonaws.ssm#InvalidInstanceId": - throw await de_InvalidInstanceIdRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_CancelMaintenanceWindowExecutionCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_CancelMaintenanceWindowExecutionCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_CancelMaintenanceWindowExecutionCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await de_DoesNotExistExceptionRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_CreateActivationCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_CreateActivationCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_CreateActivationCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidParameters": - case "com.amazonaws.ssm#InvalidParameters": - throw await de_InvalidParametersRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_CreateAssociationCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_CreateAssociationCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_CreateAssociationResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_CreateAssociationCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AssociationAlreadyExists": - case "com.amazonaws.ssm#AssociationAlreadyExists": - throw await de_AssociationAlreadyExistsRes(parsedOutput, context); - case "AssociationLimitExceeded": - case "com.amazonaws.ssm#AssociationLimitExceeded": - throw await de_AssociationLimitExceededRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidDocument": - case "com.amazonaws.ssm#InvalidDocument": - throw await de_InvalidDocumentRes(parsedOutput, context); - case "InvalidDocumentVersion": - case "com.amazonaws.ssm#InvalidDocumentVersion": - throw await de_InvalidDocumentVersionRes(parsedOutput, context); - case "InvalidInstanceId": - case "com.amazonaws.ssm#InvalidInstanceId": - throw await de_InvalidInstanceIdRes(parsedOutput, context); - case "InvalidOutputLocation": - case "com.amazonaws.ssm#InvalidOutputLocation": - throw await de_InvalidOutputLocationRes(parsedOutput, context); - case "InvalidParameters": - case "com.amazonaws.ssm#InvalidParameters": - throw await de_InvalidParametersRes(parsedOutput, context); - case "InvalidSchedule": - case "com.amazonaws.ssm#InvalidSchedule": - throw await de_InvalidScheduleRes(parsedOutput, context); - case "InvalidTag": - case "com.amazonaws.ssm#InvalidTag": - throw await de_InvalidTagRes(parsedOutput, context); - case "InvalidTarget": - case "com.amazonaws.ssm#InvalidTarget": - throw await de_InvalidTargetRes(parsedOutput, context); - case "InvalidTargetMaps": - case "com.amazonaws.ssm#InvalidTargetMaps": - throw await de_InvalidTargetMapsRes(parsedOutput, context); - case "UnsupportedPlatformType": - case "com.amazonaws.ssm#UnsupportedPlatformType": - throw await de_UnsupportedPlatformTypeRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_CreateAssociationBatchCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_CreateAssociationBatchCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_CreateAssociationBatchResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_CreateAssociationBatchCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AssociationLimitExceeded": - case "com.amazonaws.ssm#AssociationLimitExceeded": - throw await de_AssociationLimitExceededRes(parsedOutput, context); - case "DuplicateInstanceId": - case "com.amazonaws.ssm#DuplicateInstanceId": - throw await de_DuplicateInstanceIdRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidDocument": - case "com.amazonaws.ssm#InvalidDocument": - throw await de_InvalidDocumentRes(parsedOutput, context); - case "InvalidDocumentVersion": - case "com.amazonaws.ssm#InvalidDocumentVersion": - throw await de_InvalidDocumentVersionRes(parsedOutput, context); - case "InvalidInstanceId": - case "com.amazonaws.ssm#InvalidInstanceId": - throw await de_InvalidInstanceIdRes(parsedOutput, context); - case "InvalidOutputLocation": - case "com.amazonaws.ssm#InvalidOutputLocation": - throw await de_InvalidOutputLocationRes(parsedOutput, context); - case "InvalidParameters": - case "com.amazonaws.ssm#InvalidParameters": - throw await de_InvalidParametersRes(parsedOutput, context); - case "InvalidSchedule": - case "com.amazonaws.ssm#InvalidSchedule": - throw await de_InvalidScheduleRes(parsedOutput, context); - case "InvalidTarget": - case "com.amazonaws.ssm#InvalidTarget": - throw await de_InvalidTargetRes(parsedOutput, context); - case "InvalidTargetMaps": - case "com.amazonaws.ssm#InvalidTargetMaps": - throw await de_InvalidTargetMapsRes(parsedOutput, context); - case "UnsupportedPlatformType": - case "com.amazonaws.ssm#UnsupportedPlatformType": - throw await de_UnsupportedPlatformTypeRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_CreateDocumentCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_CreateDocumentCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_CreateDocumentResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_CreateDocumentCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DocumentAlreadyExists": - case "com.amazonaws.ssm#DocumentAlreadyExists": - throw await de_DocumentAlreadyExistsRes(parsedOutput, context); - case "DocumentLimitExceeded": - case "com.amazonaws.ssm#DocumentLimitExceeded": - throw await de_DocumentLimitExceededRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidDocumentContent": - case "com.amazonaws.ssm#InvalidDocumentContent": - throw await de_InvalidDocumentContentRes(parsedOutput, context); - case "InvalidDocumentSchemaVersion": - case "com.amazonaws.ssm#InvalidDocumentSchemaVersion": - throw await de_InvalidDocumentSchemaVersionRes(parsedOutput, context); - case "MaxDocumentSizeExceeded": - case "com.amazonaws.ssm#MaxDocumentSizeExceeded": - throw await de_MaxDocumentSizeExceededRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_CreateMaintenanceWindowCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_CreateMaintenanceWindowCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_CreateMaintenanceWindowCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "IdempotentParameterMismatch": - case "com.amazonaws.ssm#IdempotentParameterMismatch": - throw await de_IdempotentParameterMismatchRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "ResourceLimitExceededException": - case "com.amazonaws.ssm#ResourceLimitExceededException": - throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_CreateOpsItemCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_CreateOpsItemCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_CreateOpsItemCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "OpsItemAccessDeniedException": - case "com.amazonaws.ssm#OpsItemAccessDeniedException": - throw await de_OpsItemAccessDeniedExceptionRes(parsedOutput, context); - case "OpsItemAlreadyExistsException": - case "com.amazonaws.ssm#OpsItemAlreadyExistsException": - throw await de_OpsItemAlreadyExistsExceptionRes(parsedOutput, context); - case "OpsItemInvalidParameterException": - case "com.amazonaws.ssm#OpsItemInvalidParameterException": - throw await de_OpsItemInvalidParameterExceptionRes(parsedOutput, context); - case "OpsItemLimitExceededException": - case "com.amazonaws.ssm#OpsItemLimitExceededException": - throw await de_OpsItemLimitExceededExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_CreateOpsMetadataCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_CreateOpsMetadataCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_CreateOpsMetadataCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "OpsMetadataAlreadyExistsException": - case "com.amazonaws.ssm#OpsMetadataAlreadyExistsException": - throw await de_OpsMetadataAlreadyExistsExceptionRes(parsedOutput, context); - case "OpsMetadataInvalidArgumentException": - case "com.amazonaws.ssm#OpsMetadataInvalidArgumentException": - throw await de_OpsMetadataInvalidArgumentExceptionRes(parsedOutput, context); - case "OpsMetadataLimitExceededException": - case "com.amazonaws.ssm#OpsMetadataLimitExceededException": - throw await de_OpsMetadataLimitExceededExceptionRes(parsedOutput, context); - case "OpsMetadataTooManyUpdatesException": - case "com.amazonaws.ssm#OpsMetadataTooManyUpdatesException": - throw await de_OpsMetadataTooManyUpdatesExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_CreatePatchBaselineCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_CreatePatchBaselineCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_CreatePatchBaselineCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "IdempotentParameterMismatch": - case "com.amazonaws.ssm#IdempotentParameterMismatch": - throw await de_IdempotentParameterMismatchRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "ResourceLimitExceededException": - case "com.amazonaws.ssm#ResourceLimitExceededException": - throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_CreateResourceDataSyncCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_CreateResourceDataSyncCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_CreateResourceDataSyncCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "ResourceDataSyncAlreadyExistsException": - case "com.amazonaws.ssm#ResourceDataSyncAlreadyExistsException": - throw await de_ResourceDataSyncAlreadyExistsExceptionRes(parsedOutput, context); - case "ResourceDataSyncCountExceededException": - case "com.amazonaws.ssm#ResourceDataSyncCountExceededException": - throw await de_ResourceDataSyncCountExceededExceptionRes(parsedOutput, context); - case "ResourceDataSyncInvalidConfigurationException": - case "com.amazonaws.ssm#ResourceDataSyncInvalidConfigurationException": - throw await de_ResourceDataSyncInvalidConfigurationExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_DeleteActivationCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DeleteActivationCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_DeleteActivationCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidActivation": - case "com.amazonaws.ssm#InvalidActivation": - throw await de_InvalidActivationRes(parsedOutput, context); - case "InvalidActivationId": - case "com.amazonaws.ssm#InvalidActivationId": - throw await de_InvalidActivationIdRes(parsedOutput, context); - case "TooManyUpdates": - case "com.amazonaws.ssm#TooManyUpdates": - throw await de_TooManyUpdatesRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_DeleteAssociationCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DeleteAssociationCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_DeleteAssociationCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AssociationDoesNotExist": - case "com.amazonaws.ssm#AssociationDoesNotExist": - throw await de_AssociationDoesNotExistRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidDocument": - case "com.amazonaws.ssm#InvalidDocument": - throw await de_InvalidDocumentRes(parsedOutput, context); - case "InvalidInstanceId": - case "com.amazonaws.ssm#InvalidInstanceId": - throw await de_InvalidInstanceIdRes(parsedOutput, context); - case "TooManyUpdates": - case "com.amazonaws.ssm#TooManyUpdates": - throw await de_TooManyUpdatesRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_DeleteDocumentCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DeleteDocumentCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_DeleteDocumentCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AssociatedInstances": - case "com.amazonaws.ssm#AssociatedInstances": - throw await de_AssociatedInstancesRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidDocument": - case "com.amazonaws.ssm#InvalidDocument": - throw await de_InvalidDocumentRes(parsedOutput, context); - case "InvalidDocumentOperation": - case "com.amazonaws.ssm#InvalidDocumentOperation": - throw await de_InvalidDocumentOperationRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_DeleteInventoryCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DeleteInventoryCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_DeleteInventoryCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidDeleteInventoryParametersException": - case "com.amazonaws.ssm#InvalidDeleteInventoryParametersException": - throw await de_InvalidDeleteInventoryParametersExceptionRes(parsedOutput, context); - case "InvalidInventoryRequestException": - case "com.amazonaws.ssm#InvalidInventoryRequestException": - throw await de_InvalidInventoryRequestExceptionRes(parsedOutput, context); - case "InvalidOptionException": - case "com.amazonaws.ssm#InvalidOptionException": - throw await de_InvalidOptionExceptionRes(parsedOutput, context); - case "InvalidTypeNameException": - case "com.amazonaws.ssm#InvalidTypeNameException": - throw await de_InvalidTypeNameExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_DeleteMaintenanceWindowCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DeleteMaintenanceWindowCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_DeleteMaintenanceWindowCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_DeleteOpsItemCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DeleteOpsItemCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_DeleteOpsItemCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "OpsItemInvalidParameterException": - case "com.amazonaws.ssm#OpsItemInvalidParameterException": - throw await de_OpsItemInvalidParameterExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_DeleteOpsMetadataCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DeleteOpsMetadataCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_DeleteOpsMetadataCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "OpsMetadataInvalidArgumentException": - case "com.amazonaws.ssm#OpsMetadataInvalidArgumentException": - throw await de_OpsMetadataInvalidArgumentExceptionRes(parsedOutput, context); - case "OpsMetadataNotFoundException": - case "com.amazonaws.ssm#OpsMetadataNotFoundException": - throw await de_OpsMetadataNotFoundExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_DeleteParameterCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DeleteParameterCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_DeleteParameterCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "ParameterNotFound": - case "com.amazonaws.ssm#ParameterNotFound": - throw await de_ParameterNotFoundRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_DeleteParametersCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DeleteParametersCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_DeleteParametersCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_DeletePatchBaselineCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DeletePatchBaselineCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_DeletePatchBaselineCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "ResourceInUseException": - case "com.amazonaws.ssm#ResourceInUseException": - throw await de_ResourceInUseExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_DeleteResourceDataSyncCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DeleteResourceDataSyncCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_DeleteResourceDataSyncCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "ResourceDataSyncInvalidConfigurationException": - case "com.amazonaws.ssm#ResourceDataSyncInvalidConfigurationException": - throw await de_ResourceDataSyncInvalidConfigurationExceptionRes(parsedOutput, context); - case "ResourceDataSyncNotFoundException": - case "com.amazonaws.ssm#ResourceDataSyncNotFoundException": - throw await de_ResourceDataSyncNotFoundExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_DeleteResourcePolicyCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DeleteResourcePolicyCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_DeleteResourcePolicyCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "ResourcePolicyConflictException": - case "com.amazonaws.ssm#ResourcePolicyConflictException": - throw await de_ResourcePolicyConflictExceptionRes(parsedOutput, context); - case "ResourcePolicyInvalidParameterException": - case "com.amazonaws.ssm#ResourcePolicyInvalidParameterException": - throw await de_ResourcePolicyInvalidParameterExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_DeregisterManagedInstanceCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DeregisterManagedInstanceCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_DeregisterManagedInstanceCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidInstanceId": - case "com.amazonaws.ssm#InvalidInstanceId": - throw await de_InvalidInstanceIdRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_DeregisterPatchBaselineForPatchGroupCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DeregisterPatchBaselineForPatchGroupCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_DeregisterPatchBaselineForPatchGroupCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidResourceId": - case "com.amazonaws.ssm#InvalidResourceId": - throw await de_InvalidResourceIdRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_DeregisterTargetFromMaintenanceWindowCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DeregisterTargetFromMaintenanceWindowCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_DeregisterTargetFromMaintenanceWindowCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await de_DoesNotExistExceptionRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "TargetInUseException": - case "com.amazonaws.ssm#TargetInUseException": - throw await de_TargetInUseExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_DeregisterTaskFromMaintenanceWindowCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DeregisterTaskFromMaintenanceWindowCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_DeregisterTaskFromMaintenanceWindowCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await de_DoesNotExistExceptionRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_DescribeActivationsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribeActivationsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_DescribeActivationsResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_DescribeActivationsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidFilter": - case "com.amazonaws.ssm#InvalidFilter": - throw await de_InvalidFilterRes(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await de_InvalidNextTokenRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_DescribeAssociationCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribeAssociationCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_DescribeAssociationResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_DescribeAssociationCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AssociationDoesNotExist": - case "com.amazonaws.ssm#AssociationDoesNotExist": - throw await de_AssociationDoesNotExistRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidAssociationVersion": - case "com.amazonaws.ssm#InvalidAssociationVersion": - throw await de_InvalidAssociationVersionRes(parsedOutput, context); - case "InvalidDocument": - case "com.amazonaws.ssm#InvalidDocument": - throw await de_InvalidDocumentRes(parsedOutput, context); - case "InvalidInstanceId": - case "com.amazonaws.ssm#InvalidInstanceId": - throw await de_InvalidInstanceIdRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_DescribeAssociationExecutionsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribeAssociationExecutionsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_DescribeAssociationExecutionsResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_DescribeAssociationExecutionsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AssociationDoesNotExist": - case "com.amazonaws.ssm#AssociationDoesNotExist": - throw await de_AssociationDoesNotExistRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await de_InvalidNextTokenRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_DescribeAssociationExecutionTargetsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribeAssociationExecutionTargetsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_DescribeAssociationExecutionTargetsResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_DescribeAssociationExecutionTargetsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AssociationDoesNotExist": - case "com.amazonaws.ssm#AssociationDoesNotExist": - throw await de_AssociationDoesNotExistRes(parsedOutput, context); - case "AssociationExecutionDoesNotExist": - case "com.amazonaws.ssm#AssociationExecutionDoesNotExist": - throw await de_AssociationExecutionDoesNotExistRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await de_InvalidNextTokenRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_DescribeAutomationExecutionsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribeAutomationExecutionsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_DescribeAutomationExecutionsResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_DescribeAutomationExecutionsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidFilterKey": - case "com.amazonaws.ssm#InvalidFilterKey": - throw await de_InvalidFilterKeyRes(parsedOutput, context); - case "InvalidFilterValue": - case "com.amazonaws.ssm#InvalidFilterValue": - throw await de_InvalidFilterValueRes(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await de_InvalidNextTokenRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_DescribeAutomationStepExecutionsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribeAutomationStepExecutionsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_DescribeAutomationStepExecutionsResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_DescribeAutomationStepExecutionsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AutomationExecutionNotFoundException": - case "com.amazonaws.ssm#AutomationExecutionNotFoundException": - throw await de_AutomationExecutionNotFoundExceptionRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidFilterKey": - case "com.amazonaws.ssm#InvalidFilterKey": - throw await de_InvalidFilterKeyRes(parsedOutput, context); - case "InvalidFilterValue": - case "com.amazonaws.ssm#InvalidFilterValue": - throw await de_InvalidFilterValueRes(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await de_InvalidNextTokenRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_DescribeAvailablePatchesCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribeAvailablePatchesCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_DescribeAvailablePatchesResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_DescribeAvailablePatchesCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_DescribeDocumentCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribeDocumentCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_DescribeDocumentResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_DescribeDocumentCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidDocument": - case "com.amazonaws.ssm#InvalidDocument": - throw await de_InvalidDocumentRes(parsedOutput, context); - case "InvalidDocumentVersion": - case "com.amazonaws.ssm#InvalidDocumentVersion": - throw await de_InvalidDocumentVersionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_DescribeDocumentPermissionCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribeDocumentPermissionCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_DescribeDocumentPermissionCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidDocument": - case "com.amazonaws.ssm#InvalidDocument": - throw await de_InvalidDocumentRes(parsedOutput, context); - case "InvalidDocumentOperation": - case "com.amazonaws.ssm#InvalidDocumentOperation": - throw await de_InvalidDocumentOperationRes(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await de_InvalidNextTokenRes(parsedOutput, context); - case "InvalidPermissionType": - case "com.amazonaws.ssm#InvalidPermissionType": - throw await de_InvalidPermissionTypeRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_DescribeEffectiveInstanceAssociationsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribeEffectiveInstanceAssociationsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_DescribeEffectiveInstanceAssociationsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidInstanceId": - case "com.amazonaws.ssm#InvalidInstanceId": - throw await de_InvalidInstanceIdRes(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await de_InvalidNextTokenRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_DescribeEffectivePatchesForPatchBaselineCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribeEffectivePatchesForPatchBaselineCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_DescribeEffectivePatchesForPatchBaselineResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_DescribeEffectivePatchesForPatchBaselineCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await de_DoesNotExistExceptionRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidResourceId": - case "com.amazonaws.ssm#InvalidResourceId": - throw await de_InvalidResourceIdRes(parsedOutput, context); - case "UnsupportedOperatingSystem": - case "com.amazonaws.ssm#UnsupportedOperatingSystem": - throw await de_UnsupportedOperatingSystemRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_DescribeInstanceAssociationsStatusCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribeInstanceAssociationsStatusCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_DescribeInstanceAssociationsStatusResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_DescribeInstanceAssociationsStatusCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidInstanceId": - case "com.amazonaws.ssm#InvalidInstanceId": - throw await de_InvalidInstanceIdRes(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await de_InvalidNextTokenRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_DescribeInstanceInformationCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribeInstanceInformationCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_DescribeInstanceInformationResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_DescribeInstanceInformationCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidFilterKey": - case "com.amazonaws.ssm#InvalidFilterKey": - throw await de_InvalidFilterKeyRes(parsedOutput, context); - case "InvalidInstanceId": - case "com.amazonaws.ssm#InvalidInstanceId": - throw await de_InvalidInstanceIdRes(parsedOutput, context); - case "InvalidInstanceInformationFilterValue": - case "com.amazonaws.ssm#InvalidInstanceInformationFilterValue": - throw await de_InvalidInstanceInformationFilterValueRes(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await de_InvalidNextTokenRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_DescribeInstancePatchesCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribeInstancePatchesCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_DescribeInstancePatchesResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_DescribeInstancePatchesCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidFilter": - case "com.amazonaws.ssm#InvalidFilter": - throw await de_InvalidFilterRes(parsedOutput, context); - case "InvalidInstanceId": - case "com.amazonaws.ssm#InvalidInstanceId": - throw await de_InvalidInstanceIdRes(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await de_InvalidNextTokenRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_DescribeInstancePatchStatesCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribeInstancePatchStatesCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_DescribeInstancePatchStatesResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_DescribeInstancePatchStatesCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await de_InvalidNextTokenRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_DescribeInstancePatchStatesForPatchGroupCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribeInstancePatchStatesForPatchGroupCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_DescribeInstancePatchStatesForPatchGroupResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_DescribeInstancePatchStatesForPatchGroupCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidFilter": - case "com.amazonaws.ssm#InvalidFilter": - throw await de_InvalidFilterRes(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await de_InvalidNextTokenRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_DescribeInventoryDeletionsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribeInventoryDeletionsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_DescribeInventoryDeletionsResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_DescribeInventoryDeletionsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidDeletionIdException": - case "com.amazonaws.ssm#InvalidDeletionIdException": - throw await de_InvalidDeletionIdExceptionRes(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await de_InvalidNextTokenRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_DescribeMaintenanceWindowExecutionsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribeMaintenanceWindowExecutionsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_DescribeMaintenanceWindowExecutionsResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_DescribeMaintenanceWindowExecutionsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_DescribeMaintenanceWindowExecutionTaskInvocationsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribeMaintenanceWindowExecutionTaskInvocationsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_DescribeMaintenanceWindowExecutionTaskInvocationsResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_DescribeMaintenanceWindowExecutionTaskInvocationsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await de_DoesNotExistExceptionRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_DescribeMaintenanceWindowExecutionTasksCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribeMaintenanceWindowExecutionTasksCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_DescribeMaintenanceWindowExecutionTasksResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_DescribeMaintenanceWindowExecutionTasksCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await de_DoesNotExistExceptionRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_DescribeMaintenanceWindowsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribeMaintenanceWindowsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_DescribeMaintenanceWindowsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_DescribeMaintenanceWindowScheduleCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribeMaintenanceWindowScheduleCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_DescribeMaintenanceWindowScheduleCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await de_DoesNotExistExceptionRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_DescribeMaintenanceWindowsForTargetCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribeMaintenanceWindowsForTargetCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_DescribeMaintenanceWindowsForTargetCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_DescribeMaintenanceWindowTargetsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribeMaintenanceWindowTargetsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_DescribeMaintenanceWindowTargetsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await de_DoesNotExistExceptionRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_DescribeMaintenanceWindowTasksCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribeMaintenanceWindowTasksCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_DescribeMaintenanceWindowTasksCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await de_DoesNotExistExceptionRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_DescribeOpsItemsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribeOpsItemsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_DescribeOpsItemsResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_DescribeOpsItemsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_DescribeParametersCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribeParametersCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_DescribeParametersResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_DescribeParametersCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidFilterKey": - case "com.amazonaws.ssm#InvalidFilterKey": - throw await de_InvalidFilterKeyRes(parsedOutput, context); - case "InvalidFilterOption": - case "com.amazonaws.ssm#InvalidFilterOption": - throw await de_InvalidFilterOptionRes(parsedOutput, context); - case "InvalidFilterValue": - case "com.amazonaws.ssm#InvalidFilterValue": - throw await de_InvalidFilterValueRes(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await de_InvalidNextTokenRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_DescribePatchBaselinesCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribePatchBaselinesCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_DescribePatchBaselinesCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_DescribePatchGroupsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribePatchGroupsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_DescribePatchGroupsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_DescribePatchGroupStateCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribePatchGroupStateCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_DescribePatchGroupStateCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await de_InvalidNextTokenRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_DescribePatchPropertiesCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribePatchPropertiesCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_DescribePatchPropertiesCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_DescribeSessionsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DescribeSessionsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_DescribeSessionsResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_DescribeSessionsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidFilterKey": - case "com.amazonaws.ssm#InvalidFilterKey": - throw await de_InvalidFilterKeyRes(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await de_InvalidNextTokenRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_DisassociateOpsItemRelatedItemCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DisassociateOpsItemRelatedItemCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_DisassociateOpsItemRelatedItemCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "OpsItemConflictException": - case "com.amazonaws.ssm#OpsItemConflictException": - throw await de_OpsItemConflictExceptionRes(parsedOutput, context); - case "OpsItemInvalidParameterException": - case "com.amazonaws.ssm#OpsItemInvalidParameterException": - throw await de_OpsItemInvalidParameterExceptionRes(parsedOutput, context); - case "OpsItemNotFoundException": - case "com.amazonaws.ssm#OpsItemNotFoundException": - throw await de_OpsItemNotFoundExceptionRes(parsedOutput, context); - case "OpsItemRelatedItemAssociationNotFoundException": - case "com.amazonaws.ssm#OpsItemRelatedItemAssociationNotFoundException": - throw await de_OpsItemRelatedItemAssociationNotFoundExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_GetAutomationExecutionCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_GetAutomationExecutionCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_GetAutomationExecutionResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_GetAutomationExecutionCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AutomationExecutionNotFoundException": - case "com.amazonaws.ssm#AutomationExecutionNotFoundException": - throw await de_AutomationExecutionNotFoundExceptionRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_GetCalendarStateCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_GetCalendarStateCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_GetCalendarStateCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidDocument": - case "com.amazonaws.ssm#InvalidDocument": - throw await de_InvalidDocumentRes(parsedOutput, context); - case "InvalidDocumentType": - case "com.amazonaws.ssm#InvalidDocumentType": - throw await de_InvalidDocumentTypeRes(parsedOutput, context); - case "UnsupportedCalendarException": - case "com.amazonaws.ssm#UnsupportedCalendarException": - throw await de_UnsupportedCalendarExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_GetCommandInvocationCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_GetCommandInvocationCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_GetCommandInvocationCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidCommandId": - case "com.amazonaws.ssm#InvalidCommandId": - throw await de_InvalidCommandIdRes(parsedOutput, context); - case "InvalidInstanceId": - case "com.amazonaws.ssm#InvalidInstanceId": - throw await de_InvalidInstanceIdRes(parsedOutput, context); - case "InvalidPluginName": - case "com.amazonaws.ssm#InvalidPluginName": - throw await de_InvalidPluginNameRes(parsedOutput, context); - case "InvocationDoesNotExist": - case "com.amazonaws.ssm#InvocationDoesNotExist": - throw await de_InvocationDoesNotExistRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_GetConnectionStatusCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_GetConnectionStatusCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_GetConnectionStatusCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_GetDefaultPatchBaselineCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_GetDefaultPatchBaselineCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_GetDefaultPatchBaselineCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_GetDeployablePatchSnapshotForInstanceCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_GetDeployablePatchSnapshotForInstanceCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_GetDeployablePatchSnapshotForInstanceCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "UnsupportedFeatureRequiredException": - case "com.amazonaws.ssm#UnsupportedFeatureRequiredException": - throw await de_UnsupportedFeatureRequiredExceptionRes(parsedOutput, context); - case "UnsupportedOperatingSystem": - case "com.amazonaws.ssm#UnsupportedOperatingSystem": - throw await de_UnsupportedOperatingSystemRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_GetDocumentCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_GetDocumentCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_GetDocumentResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_GetDocumentCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidDocument": - case "com.amazonaws.ssm#InvalidDocument": - throw await de_InvalidDocumentRes(parsedOutput, context); - case "InvalidDocumentVersion": - case "com.amazonaws.ssm#InvalidDocumentVersion": - throw await de_InvalidDocumentVersionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_GetInventoryCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_GetInventoryCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_GetInventoryCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidAggregatorException": - case "com.amazonaws.ssm#InvalidAggregatorException": - throw await de_InvalidAggregatorExceptionRes(parsedOutput, context); - case "InvalidFilter": - case "com.amazonaws.ssm#InvalidFilter": - throw await de_InvalidFilterRes(parsedOutput, context); - case "InvalidInventoryGroupException": - case "com.amazonaws.ssm#InvalidInventoryGroupException": - throw await de_InvalidInventoryGroupExceptionRes(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await de_InvalidNextTokenRes(parsedOutput, context); - case "InvalidResultAttributeException": - case "com.amazonaws.ssm#InvalidResultAttributeException": - throw await de_InvalidResultAttributeExceptionRes(parsedOutput, context); - case "InvalidTypeNameException": - case "com.amazonaws.ssm#InvalidTypeNameException": - throw await de_InvalidTypeNameExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_GetInventorySchemaCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_GetInventorySchemaCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_GetInventorySchemaCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await de_InvalidNextTokenRes(parsedOutput, context); - case "InvalidTypeNameException": - case "com.amazonaws.ssm#InvalidTypeNameException": - throw await de_InvalidTypeNameExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_GetMaintenanceWindowCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_GetMaintenanceWindowCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_GetMaintenanceWindowResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_GetMaintenanceWindowCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await de_DoesNotExistExceptionRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_GetMaintenanceWindowExecutionCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_GetMaintenanceWindowExecutionCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_GetMaintenanceWindowExecutionResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_GetMaintenanceWindowExecutionCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await de_DoesNotExistExceptionRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_GetMaintenanceWindowExecutionTaskCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_GetMaintenanceWindowExecutionTaskCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_GetMaintenanceWindowExecutionTaskResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_GetMaintenanceWindowExecutionTaskCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await de_DoesNotExistExceptionRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_GetMaintenanceWindowExecutionTaskInvocationCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_GetMaintenanceWindowExecutionTaskInvocationCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_GetMaintenanceWindowExecutionTaskInvocationResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_GetMaintenanceWindowExecutionTaskInvocationCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await de_DoesNotExistExceptionRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_GetMaintenanceWindowTaskCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_GetMaintenanceWindowTaskCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_GetMaintenanceWindowTaskResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_GetMaintenanceWindowTaskCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await de_DoesNotExistExceptionRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_GetOpsItemCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_GetOpsItemCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_GetOpsItemResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_GetOpsItemCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "OpsItemAccessDeniedException": - case "com.amazonaws.ssm#OpsItemAccessDeniedException": - throw await de_OpsItemAccessDeniedExceptionRes(parsedOutput, context); - case "OpsItemNotFoundException": - case "com.amazonaws.ssm#OpsItemNotFoundException": - throw await de_OpsItemNotFoundExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_GetOpsMetadataCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_GetOpsMetadataCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_GetOpsMetadataCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "OpsMetadataInvalidArgumentException": - case "com.amazonaws.ssm#OpsMetadataInvalidArgumentException": - throw await de_OpsMetadataInvalidArgumentExceptionRes(parsedOutput, context); - case "OpsMetadataNotFoundException": - case "com.amazonaws.ssm#OpsMetadataNotFoundException": - throw await de_OpsMetadataNotFoundExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_GetOpsSummaryCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_GetOpsSummaryCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_GetOpsSummaryCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidAggregatorException": - case "com.amazonaws.ssm#InvalidAggregatorException": - throw await de_InvalidAggregatorExceptionRes(parsedOutput, context); - case "InvalidFilter": - case "com.amazonaws.ssm#InvalidFilter": - throw await de_InvalidFilterRes(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await de_InvalidNextTokenRes(parsedOutput, context); - case "InvalidTypeNameException": - case "com.amazonaws.ssm#InvalidTypeNameException": - throw await de_InvalidTypeNameExceptionRes(parsedOutput, context); - case "ResourceDataSyncNotFoundException": - case "com.amazonaws.ssm#ResourceDataSyncNotFoundException": - throw await de_ResourceDataSyncNotFoundExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_GetParameterCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_GetParameterCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_GetParameterResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_GetParameterCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidKeyId": - case "com.amazonaws.ssm#InvalidKeyId": - throw await de_InvalidKeyIdRes(parsedOutput, context); - case "ParameterNotFound": - case "com.amazonaws.ssm#ParameterNotFound": - throw await de_ParameterNotFoundRes(parsedOutput, context); - case "ParameterVersionNotFound": - case "com.amazonaws.ssm#ParameterVersionNotFound": - throw await de_ParameterVersionNotFoundRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_GetParameterHistoryCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_GetParameterHistoryCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_GetParameterHistoryResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_GetParameterHistoryCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidKeyId": - case "com.amazonaws.ssm#InvalidKeyId": - throw await de_InvalidKeyIdRes(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await de_InvalidNextTokenRes(parsedOutput, context); - case "ParameterNotFound": - case "com.amazonaws.ssm#ParameterNotFound": - throw await de_ParameterNotFoundRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_GetParametersCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_GetParametersCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_GetParametersResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_GetParametersCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidKeyId": - case "com.amazonaws.ssm#InvalidKeyId": - throw await de_InvalidKeyIdRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_GetParametersByPathCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_GetParametersByPathCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_GetParametersByPathResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_GetParametersByPathCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidFilterKey": - case "com.amazonaws.ssm#InvalidFilterKey": - throw await de_InvalidFilterKeyRes(parsedOutput, context); - case "InvalidFilterOption": - case "com.amazonaws.ssm#InvalidFilterOption": - throw await de_InvalidFilterOptionRes(parsedOutput, context); - case "InvalidFilterValue": - case "com.amazonaws.ssm#InvalidFilterValue": - throw await de_InvalidFilterValueRes(parsedOutput, context); - case "InvalidKeyId": - case "com.amazonaws.ssm#InvalidKeyId": - throw await de_InvalidKeyIdRes(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await de_InvalidNextTokenRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_GetPatchBaselineCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_GetPatchBaselineCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_GetPatchBaselineResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_GetPatchBaselineCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await de_DoesNotExistExceptionRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidResourceId": - case "com.amazonaws.ssm#InvalidResourceId": - throw await de_InvalidResourceIdRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_GetPatchBaselineForPatchGroupCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_GetPatchBaselineForPatchGroupCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_GetPatchBaselineForPatchGroupCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_GetResourcePoliciesCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_GetResourcePoliciesCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_GetResourcePoliciesCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "ResourcePolicyInvalidParameterException": - case "com.amazonaws.ssm#ResourcePolicyInvalidParameterException": - throw await de_ResourcePolicyInvalidParameterExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_GetServiceSettingCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_GetServiceSettingCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_GetServiceSettingResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_GetServiceSettingCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "ServiceSettingNotFound": - case "com.amazonaws.ssm#ServiceSettingNotFound": - throw await de_ServiceSettingNotFoundRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_LabelParameterVersionCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_LabelParameterVersionCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_LabelParameterVersionCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "ParameterNotFound": - case "com.amazonaws.ssm#ParameterNotFound": - throw await de_ParameterNotFoundRes(parsedOutput, context); - case "ParameterVersionLabelLimitExceeded": - case "com.amazonaws.ssm#ParameterVersionLabelLimitExceeded": - throw await de_ParameterVersionLabelLimitExceededRes(parsedOutput, context); - case "ParameterVersionNotFound": - case "com.amazonaws.ssm#ParameterVersionNotFound": - throw await de_ParameterVersionNotFoundRes(parsedOutput, context); - case "TooManyUpdates": - case "com.amazonaws.ssm#TooManyUpdates": - throw await de_TooManyUpdatesRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_ListAssociationsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_ListAssociationsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_ListAssociationsResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_ListAssociationsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await de_InvalidNextTokenRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_ListAssociationVersionsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_ListAssociationVersionsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_ListAssociationVersionsResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_ListAssociationVersionsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AssociationDoesNotExist": - case "com.amazonaws.ssm#AssociationDoesNotExist": - throw await de_AssociationDoesNotExistRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await de_InvalidNextTokenRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_ListCommandInvocationsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_ListCommandInvocationsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_ListCommandInvocationsResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_ListCommandInvocationsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidCommandId": - case "com.amazonaws.ssm#InvalidCommandId": - throw await de_InvalidCommandIdRes(parsedOutput, context); - case "InvalidFilterKey": - case "com.amazonaws.ssm#InvalidFilterKey": - throw await de_InvalidFilterKeyRes(parsedOutput, context); - case "InvalidInstanceId": - case "com.amazonaws.ssm#InvalidInstanceId": - throw await de_InvalidInstanceIdRes(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await de_InvalidNextTokenRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_ListCommandsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_ListCommandsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_ListCommandsResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_ListCommandsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidCommandId": - case "com.amazonaws.ssm#InvalidCommandId": - throw await de_InvalidCommandIdRes(parsedOutput, context); - case "InvalidFilterKey": - case "com.amazonaws.ssm#InvalidFilterKey": - throw await de_InvalidFilterKeyRes(parsedOutput, context); - case "InvalidInstanceId": - case "com.amazonaws.ssm#InvalidInstanceId": - throw await de_InvalidInstanceIdRes(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await de_InvalidNextTokenRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_ListComplianceItemsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_ListComplianceItemsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_ListComplianceItemsResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_ListComplianceItemsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidFilter": - case "com.amazonaws.ssm#InvalidFilter": - throw await de_InvalidFilterRes(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await de_InvalidNextTokenRes(parsedOutput, context); - case "InvalidResourceId": - case "com.amazonaws.ssm#InvalidResourceId": - throw await de_InvalidResourceIdRes(parsedOutput, context); - case "InvalidResourceType": - case "com.amazonaws.ssm#InvalidResourceType": - throw await de_InvalidResourceTypeRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_ListComplianceSummariesCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_ListComplianceSummariesCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_ListComplianceSummariesCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidFilter": - case "com.amazonaws.ssm#InvalidFilter": - throw await de_InvalidFilterRes(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await de_InvalidNextTokenRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_ListDocumentMetadataHistoryCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_ListDocumentMetadataHistoryCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_ListDocumentMetadataHistoryResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_ListDocumentMetadataHistoryCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidDocument": - case "com.amazonaws.ssm#InvalidDocument": - throw await de_InvalidDocumentRes(parsedOutput, context); - case "InvalidDocumentVersion": - case "com.amazonaws.ssm#InvalidDocumentVersion": - throw await de_InvalidDocumentVersionRes(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await de_InvalidNextTokenRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_ListDocumentsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_ListDocumentsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_ListDocumentsResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_ListDocumentsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidFilterKey": - case "com.amazonaws.ssm#InvalidFilterKey": - throw await de_InvalidFilterKeyRes(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await de_InvalidNextTokenRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_ListDocumentVersionsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_ListDocumentVersionsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_ListDocumentVersionsResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_ListDocumentVersionsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidDocument": - case "com.amazonaws.ssm#InvalidDocument": - throw await de_InvalidDocumentRes(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await de_InvalidNextTokenRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_ListInventoryEntriesCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_ListInventoryEntriesCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_ListInventoryEntriesCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidFilter": - case "com.amazonaws.ssm#InvalidFilter": - throw await de_InvalidFilterRes(parsedOutput, context); - case "InvalidInstanceId": - case "com.amazonaws.ssm#InvalidInstanceId": - throw await de_InvalidInstanceIdRes(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await de_InvalidNextTokenRes(parsedOutput, context); - case "InvalidTypeNameException": - case "com.amazonaws.ssm#InvalidTypeNameException": - throw await de_InvalidTypeNameExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_ListOpsItemEventsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_ListOpsItemEventsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_ListOpsItemEventsResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_ListOpsItemEventsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "OpsItemInvalidParameterException": - case "com.amazonaws.ssm#OpsItemInvalidParameterException": - throw await de_OpsItemInvalidParameterExceptionRes(parsedOutput, context); - case "OpsItemLimitExceededException": - case "com.amazonaws.ssm#OpsItemLimitExceededException": - throw await de_OpsItemLimitExceededExceptionRes(parsedOutput, context); - case "OpsItemNotFoundException": - case "com.amazonaws.ssm#OpsItemNotFoundException": - throw await de_OpsItemNotFoundExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_ListOpsItemRelatedItemsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_ListOpsItemRelatedItemsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_ListOpsItemRelatedItemsResponse(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_ListOpsItemRelatedItemsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "OpsItemInvalidParameterException": - case "com.amazonaws.ssm#OpsItemInvalidParameterException": - throw await de_OpsItemInvalidParameterExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_ListOpsMetadataCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_ListOpsMetadataCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_ListOpsMetadataResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_ListOpsMetadataCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "OpsMetadataInvalidArgumentException": - case "com.amazonaws.ssm#OpsMetadataInvalidArgumentException": - throw await de_OpsMetadataInvalidArgumentExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_ListResourceComplianceSummariesCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_ListResourceComplianceSummariesCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_ListResourceComplianceSummariesResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_ListResourceComplianceSummariesCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidFilter": - case "com.amazonaws.ssm#InvalidFilter": - throw await de_InvalidFilterRes(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await de_InvalidNextTokenRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_ListResourceDataSyncCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_ListResourceDataSyncCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_ListResourceDataSyncResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_ListResourceDataSyncCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidNextToken": - case "com.amazonaws.ssm#InvalidNextToken": - throw await de_InvalidNextTokenRes(parsedOutput, context); - case "ResourceDataSyncInvalidConfigurationException": - case "com.amazonaws.ssm#ResourceDataSyncInvalidConfigurationException": - throw await de_ResourceDataSyncInvalidConfigurationExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_ListTagsForResourceCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_ListTagsForResourceCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_ListTagsForResourceCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidResourceId": - case "com.amazonaws.ssm#InvalidResourceId": - throw await de_InvalidResourceIdRes(parsedOutput, context); - case "InvalidResourceType": - case "com.amazonaws.ssm#InvalidResourceType": - throw await de_InvalidResourceTypeRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_ModifyDocumentPermissionCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_ModifyDocumentPermissionCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_ModifyDocumentPermissionCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DocumentLimitExceeded": - case "com.amazonaws.ssm#DocumentLimitExceeded": - throw await de_DocumentLimitExceededRes(parsedOutput, context); - case "DocumentPermissionLimit": - case "com.amazonaws.ssm#DocumentPermissionLimit": - throw await de_DocumentPermissionLimitRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidDocument": - case "com.amazonaws.ssm#InvalidDocument": - throw await de_InvalidDocumentRes(parsedOutput, context); - case "InvalidPermissionType": - case "com.amazonaws.ssm#InvalidPermissionType": - throw await de_InvalidPermissionTypeRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_PutComplianceItemsCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_PutComplianceItemsCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_PutComplianceItemsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "ComplianceTypeCountLimitExceededException": - case "com.amazonaws.ssm#ComplianceTypeCountLimitExceededException": - throw await de_ComplianceTypeCountLimitExceededExceptionRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidItemContentException": - case "com.amazonaws.ssm#InvalidItemContentException": - throw await de_InvalidItemContentExceptionRes(parsedOutput, context); - case "InvalidResourceId": - case "com.amazonaws.ssm#InvalidResourceId": - throw await de_InvalidResourceIdRes(parsedOutput, context); - case "InvalidResourceType": - case "com.amazonaws.ssm#InvalidResourceType": - throw await de_InvalidResourceTypeRes(parsedOutput, context); - case "ItemSizeLimitExceededException": - case "com.amazonaws.ssm#ItemSizeLimitExceededException": - throw await de_ItemSizeLimitExceededExceptionRes(parsedOutput, context); - case "TotalSizeLimitExceededException": - case "com.amazonaws.ssm#TotalSizeLimitExceededException": - throw await de_TotalSizeLimitExceededExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_PutInventoryCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_PutInventoryCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_PutInventoryCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "CustomSchemaCountLimitExceededException": - case "com.amazonaws.ssm#CustomSchemaCountLimitExceededException": - throw await de_CustomSchemaCountLimitExceededExceptionRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidInstanceId": - case "com.amazonaws.ssm#InvalidInstanceId": - throw await de_InvalidInstanceIdRes(parsedOutput, context); - case "InvalidInventoryItemContextException": - case "com.amazonaws.ssm#InvalidInventoryItemContextException": - throw await de_InvalidInventoryItemContextExceptionRes(parsedOutput, context); - case "InvalidItemContentException": - case "com.amazonaws.ssm#InvalidItemContentException": - throw await de_InvalidItemContentExceptionRes(parsedOutput, context); - case "InvalidTypeNameException": - case "com.amazonaws.ssm#InvalidTypeNameException": - throw await de_InvalidTypeNameExceptionRes(parsedOutput, context); - case "ItemContentMismatchException": - case "com.amazonaws.ssm#ItemContentMismatchException": - throw await de_ItemContentMismatchExceptionRes(parsedOutput, context); - case "ItemSizeLimitExceededException": - case "com.amazonaws.ssm#ItemSizeLimitExceededException": - throw await de_ItemSizeLimitExceededExceptionRes(parsedOutput, context); - case "SubTypeCountLimitExceededException": - case "com.amazonaws.ssm#SubTypeCountLimitExceededException": - throw await de_SubTypeCountLimitExceededExceptionRes(parsedOutput, context); - case "TotalSizeLimitExceededException": - case "com.amazonaws.ssm#TotalSizeLimitExceededException": - throw await de_TotalSizeLimitExceededExceptionRes(parsedOutput, context); - case "UnsupportedInventoryItemContextException": - case "com.amazonaws.ssm#UnsupportedInventoryItemContextException": - throw await de_UnsupportedInventoryItemContextExceptionRes(parsedOutput, context); - case "UnsupportedInventorySchemaVersionException": - case "com.amazonaws.ssm#UnsupportedInventorySchemaVersionException": - throw await de_UnsupportedInventorySchemaVersionExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_PutParameterCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_PutParameterCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_PutParameterCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "HierarchyLevelLimitExceededException": - case "com.amazonaws.ssm#HierarchyLevelLimitExceededException": - throw await de_HierarchyLevelLimitExceededExceptionRes(parsedOutput, context); - case "HierarchyTypeMismatchException": - case "com.amazonaws.ssm#HierarchyTypeMismatchException": - throw await de_HierarchyTypeMismatchExceptionRes(parsedOutput, context); - case "IncompatiblePolicyException": - case "com.amazonaws.ssm#IncompatiblePolicyException": - throw await de_IncompatiblePolicyExceptionRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidAllowedPatternException": - case "com.amazonaws.ssm#InvalidAllowedPatternException": - throw await de_InvalidAllowedPatternExceptionRes(parsedOutput, context); - case "InvalidKeyId": - case "com.amazonaws.ssm#InvalidKeyId": - throw await de_InvalidKeyIdRes(parsedOutput, context); - case "InvalidPolicyAttributeException": - case "com.amazonaws.ssm#InvalidPolicyAttributeException": - throw await de_InvalidPolicyAttributeExceptionRes(parsedOutput, context); - case "InvalidPolicyTypeException": - case "com.amazonaws.ssm#InvalidPolicyTypeException": - throw await de_InvalidPolicyTypeExceptionRes(parsedOutput, context); - case "ParameterAlreadyExists": - case "com.amazonaws.ssm#ParameterAlreadyExists": - throw await de_ParameterAlreadyExistsRes(parsedOutput, context); - case "ParameterLimitExceeded": - case "com.amazonaws.ssm#ParameterLimitExceeded": - throw await de_ParameterLimitExceededRes(parsedOutput, context); - case "ParameterMaxVersionLimitExceeded": - case "com.amazonaws.ssm#ParameterMaxVersionLimitExceeded": - throw await de_ParameterMaxVersionLimitExceededRes(parsedOutput, context); - case "ParameterPatternMismatchException": - case "com.amazonaws.ssm#ParameterPatternMismatchException": - throw await de_ParameterPatternMismatchExceptionRes(parsedOutput, context); - case "PoliciesLimitExceededException": - case "com.amazonaws.ssm#PoliciesLimitExceededException": - throw await de_PoliciesLimitExceededExceptionRes(parsedOutput, context); - case "TooManyUpdates": - case "com.amazonaws.ssm#TooManyUpdates": - throw await de_TooManyUpdatesRes(parsedOutput, context); - case "UnsupportedParameterType": - case "com.amazonaws.ssm#UnsupportedParameterType": - throw await de_UnsupportedParameterTypeRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_PutResourcePolicyCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_PutResourcePolicyCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_PutResourcePolicyCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "ResourcePolicyConflictException": - case "com.amazonaws.ssm#ResourcePolicyConflictException": - throw await de_ResourcePolicyConflictExceptionRes(parsedOutput, context); - case "ResourcePolicyInvalidParameterException": - case "com.amazonaws.ssm#ResourcePolicyInvalidParameterException": - throw await de_ResourcePolicyInvalidParameterExceptionRes(parsedOutput, context); - case "ResourcePolicyLimitExceededException": - case "com.amazonaws.ssm#ResourcePolicyLimitExceededException": - throw await de_ResourcePolicyLimitExceededExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_RegisterDefaultPatchBaselineCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_RegisterDefaultPatchBaselineCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_RegisterDefaultPatchBaselineCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await de_DoesNotExistExceptionRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidResourceId": - case "com.amazonaws.ssm#InvalidResourceId": - throw await de_InvalidResourceIdRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_RegisterPatchBaselineForPatchGroupCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_RegisterPatchBaselineForPatchGroupCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_RegisterPatchBaselineForPatchGroupCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AlreadyExistsException": - case "com.amazonaws.ssm#AlreadyExistsException": - throw await de_AlreadyExistsExceptionRes(parsedOutput, context); - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await de_DoesNotExistExceptionRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidResourceId": - case "com.amazonaws.ssm#InvalidResourceId": - throw await de_InvalidResourceIdRes(parsedOutput, context); - case "ResourceLimitExceededException": - case "com.amazonaws.ssm#ResourceLimitExceededException": - throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_RegisterTargetWithMaintenanceWindowCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_RegisterTargetWithMaintenanceWindowCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_RegisterTargetWithMaintenanceWindowCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await de_DoesNotExistExceptionRes(parsedOutput, context); - case "IdempotentParameterMismatch": - case "com.amazonaws.ssm#IdempotentParameterMismatch": - throw await de_IdempotentParameterMismatchRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "ResourceLimitExceededException": - case "com.amazonaws.ssm#ResourceLimitExceededException": - throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_RegisterTaskWithMaintenanceWindowCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_RegisterTaskWithMaintenanceWindowCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_RegisterTaskWithMaintenanceWindowCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await de_DoesNotExistExceptionRes(parsedOutput, context); - case "FeatureNotAvailableException": - case "com.amazonaws.ssm#FeatureNotAvailableException": - throw await de_FeatureNotAvailableExceptionRes(parsedOutput, context); - case "IdempotentParameterMismatch": - case "com.amazonaws.ssm#IdempotentParameterMismatch": - throw await de_IdempotentParameterMismatchRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "ResourceLimitExceededException": - case "com.amazonaws.ssm#ResourceLimitExceededException": - throw await de_ResourceLimitExceededExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_RemoveTagsFromResourceCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_RemoveTagsFromResourceCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_RemoveTagsFromResourceCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidResourceId": - case "com.amazonaws.ssm#InvalidResourceId": - throw await de_InvalidResourceIdRes(parsedOutput, context); - case "InvalidResourceType": - case "com.amazonaws.ssm#InvalidResourceType": - throw await de_InvalidResourceTypeRes(parsedOutput, context); - case "TooManyUpdates": - case "com.amazonaws.ssm#TooManyUpdates": - throw await de_TooManyUpdatesRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_ResetServiceSettingCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_ResetServiceSettingCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_ResetServiceSettingResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_ResetServiceSettingCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "ServiceSettingNotFound": - case "com.amazonaws.ssm#ServiceSettingNotFound": - throw await de_ServiceSettingNotFoundRes(parsedOutput, context); - case "TooManyUpdates": - case "com.amazonaws.ssm#TooManyUpdates": - throw await de_TooManyUpdatesRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_ResumeSessionCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_ResumeSessionCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_ResumeSessionCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await de_DoesNotExistExceptionRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_SendAutomationSignalCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_SendAutomationSignalCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_SendAutomationSignalCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AutomationExecutionNotFoundException": - case "com.amazonaws.ssm#AutomationExecutionNotFoundException": - throw await de_AutomationExecutionNotFoundExceptionRes(parsedOutput, context); - case "AutomationStepNotFoundException": - case "com.amazonaws.ssm#AutomationStepNotFoundException": - throw await de_AutomationStepNotFoundExceptionRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidAutomationSignalException": - case "com.amazonaws.ssm#InvalidAutomationSignalException": - throw await de_InvalidAutomationSignalExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_SendCommandCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_SendCommandCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_SendCommandResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_SendCommandCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DuplicateInstanceId": - case "com.amazonaws.ssm#DuplicateInstanceId": - throw await de_DuplicateInstanceIdRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidDocument": - case "com.amazonaws.ssm#InvalidDocument": - throw await de_InvalidDocumentRes(parsedOutput, context); - case "InvalidDocumentVersion": - case "com.amazonaws.ssm#InvalidDocumentVersion": - throw await de_InvalidDocumentVersionRes(parsedOutput, context); - case "InvalidInstanceId": - case "com.amazonaws.ssm#InvalidInstanceId": - throw await de_InvalidInstanceIdRes(parsedOutput, context); - case "InvalidNotificationConfig": - case "com.amazonaws.ssm#InvalidNotificationConfig": - throw await de_InvalidNotificationConfigRes(parsedOutput, context); - case "InvalidOutputFolder": - case "com.amazonaws.ssm#InvalidOutputFolder": - throw await de_InvalidOutputFolderRes(parsedOutput, context); - case "InvalidParameters": - case "com.amazonaws.ssm#InvalidParameters": - throw await de_InvalidParametersRes(parsedOutput, context); - case "InvalidRole": - case "com.amazonaws.ssm#InvalidRole": - throw await de_InvalidRoleRes(parsedOutput, context); - case "MaxDocumentSizeExceeded": - case "com.amazonaws.ssm#MaxDocumentSizeExceeded": - throw await de_MaxDocumentSizeExceededRes(parsedOutput, context); - case "UnsupportedPlatformType": - case "com.amazonaws.ssm#UnsupportedPlatformType": - throw await de_UnsupportedPlatformTypeRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_StartAssociationsOnceCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_StartAssociationsOnceCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_StartAssociationsOnceCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AssociationDoesNotExist": - case "com.amazonaws.ssm#AssociationDoesNotExist": - throw await de_AssociationDoesNotExistRes(parsedOutput, context); - case "InvalidAssociation": - case "com.amazonaws.ssm#InvalidAssociation": - throw await de_InvalidAssociationRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_StartAutomationExecutionCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_StartAutomationExecutionCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_StartAutomationExecutionCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AutomationDefinitionNotFoundException": - case "com.amazonaws.ssm#AutomationDefinitionNotFoundException": - throw await de_AutomationDefinitionNotFoundExceptionRes(parsedOutput, context); - case "AutomationDefinitionVersionNotFoundException": - case "com.amazonaws.ssm#AutomationDefinitionVersionNotFoundException": - throw await de_AutomationDefinitionVersionNotFoundExceptionRes(parsedOutput, context); - case "AutomationExecutionLimitExceededException": - case "com.amazonaws.ssm#AutomationExecutionLimitExceededException": - throw await de_AutomationExecutionLimitExceededExceptionRes(parsedOutput, context); - case "IdempotentParameterMismatch": - case "com.amazonaws.ssm#IdempotentParameterMismatch": - throw await de_IdempotentParameterMismatchRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidAutomationExecutionParametersException": - case "com.amazonaws.ssm#InvalidAutomationExecutionParametersException": - throw await de_InvalidAutomationExecutionParametersExceptionRes(parsedOutput, context); - case "InvalidTarget": - case "com.amazonaws.ssm#InvalidTarget": - throw await de_InvalidTargetRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_StartChangeRequestExecutionCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_StartChangeRequestExecutionCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_StartChangeRequestExecutionCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AutomationDefinitionNotApprovedException": - case "com.amazonaws.ssm#AutomationDefinitionNotApprovedException": - throw await de_AutomationDefinitionNotApprovedExceptionRes(parsedOutput, context); - case "AutomationDefinitionNotFoundException": - case "com.amazonaws.ssm#AutomationDefinitionNotFoundException": - throw await de_AutomationDefinitionNotFoundExceptionRes(parsedOutput, context); - case "AutomationDefinitionVersionNotFoundException": - case "com.amazonaws.ssm#AutomationDefinitionVersionNotFoundException": - throw await de_AutomationDefinitionVersionNotFoundExceptionRes(parsedOutput, context); - case "AutomationExecutionLimitExceededException": - case "com.amazonaws.ssm#AutomationExecutionLimitExceededException": - throw await de_AutomationExecutionLimitExceededExceptionRes(parsedOutput, context); - case "IdempotentParameterMismatch": - case "com.amazonaws.ssm#IdempotentParameterMismatch": - throw await de_IdempotentParameterMismatchRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidAutomationExecutionParametersException": - case "com.amazonaws.ssm#InvalidAutomationExecutionParametersException": - throw await de_InvalidAutomationExecutionParametersExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_StartSessionCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_StartSessionCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_StartSessionCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidDocument": - case "com.amazonaws.ssm#InvalidDocument": - throw await de_InvalidDocumentRes(parsedOutput, context); - case "TargetNotConnected": - case "com.amazonaws.ssm#TargetNotConnected": - throw await de_TargetNotConnectedRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_StopAutomationExecutionCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_StopAutomationExecutionCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_StopAutomationExecutionCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AutomationExecutionNotFoundException": - case "com.amazonaws.ssm#AutomationExecutionNotFoundException": - throw await de_AutomationExecutionNotFoundExceptionRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidAutomationStatusUpdateException": - case "com.amazonaws.ssm#InvalidAutomationStatusUpdateException": - throw await de_InvalidAutomationStatusUpdateExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_TerminateSessionCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_TerminateSessionCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_TerminateSessionCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_UnlabelParameterVersionCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_UnlabelParameterVersionCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_UnlabelParameterVersionCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "ParameterNotFound": - case "com.amazonaws.ssm#ParameterNotFound": - throw await de_ParameterNotFoundRes(parsedOutput, context); - case "ParameterVersionNotFound": - case "com.amazonaws.ssm#ParameterVersionNotFound": - throw await de_ParameterVersionNotFoundRes(parsedOutput, context); - case "TooManyUpdates": - case "com.amazonaws.ssm#TooManyUpdates": - throw await de_TooManyUpdatesRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_UpdateAssociationCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_UpdateAssociationCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_UpdateAssociationResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_UpdateAssociationCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AssociationDoesNotExist": - case "com.amazonaws.ssm#AssociationDoesNotExist": - throw await de_AssociationDoesNotExistRes(parsedOutput, context); - case "AssociationVersionLimitExceeded": - case "com.amazonaws.ssm#AssociationVersionLimitExceeded": - throw await de_AssociationVersionLimitExceededRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidAssociationVersion": - case "com.amazonaws.ssm#InvalidAssociationVersion": - throw await de_InvalidAssociationVersionRes(parsedOutput, context); - case "InvalidDocument": - case "com.amazonaws.ssm#InvalidDocument": - throw await de_InvalidDocumentRes(parsedOutput, context); - case "InvalidDocumentVersion": - case "com.amazonaws.ssm#InvalidDocumentVersion": - throw await de_InvalidDocumentVersionRes(parsedOutput, context); - case "InvalidOutputLocation": - case "com.amazonaws.ssm#InvalidOutputLocation": - throw await de_InvalidOutputLocationRes(parsedOutput, context); - case "InvalidParameters": - case "com.amazonaws.ssm#InvalidParameters": - throw await de_InvalidParametersRes(parsedOutput, context); - case "InvalidSchedule": - case "com.amazonaws.ssm#InvalidSchedule": - throw await de_InvalidScheduleRes(parsedOutput, context); - case "InvalidTarget": - case "com.amazonaws.ssm#InvalidTarget": - throw await de_InvalidTargetRes(parsedOutput, context); - case "InvalidTargetMaps": - case "com.amazonaws.ssm#InvalidTargetMaps": - throw await de_InvalidTargetMapsRes(parsedOutput, context); - case "InvalidUpdate": - case "com.amazonaws.ssm#InvalidUpdate": - throw await de_InvalidUpdateRes(parsedOutput, context); - case "TooManyUpdates": - case "com.amazonaws.ssm#TooManyUpdates": - throw await de_TooManyUpdatesRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_UpdateAssociationStatusCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_UpdateAssociationStatusCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_UpdateAssociationStatusResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_UpdateAssociationStatusCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AssociationDoesNotExist": - case "com.amazonaws.ssm#AssociationDoesNotExist": - throw await de_AssociationDoesNotExistRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidDocument": - case "com.amazonaws.ssm#InvalidDocument": - throw await de_InvalidDocumentRes(parsedOutput, context); - case "InvalidInstanceId": - case "com.amazonaws.ssm#InvalidInstanceId": - throw await de_InvalidInstanceIdRes(parsedOutput, context); - case "StatusUnchanged": - case "com.amazonaws.ssm#StatusUnchanged": - throw await de_StatusUnchangedRes(parsedOutput, context); - case "TooManyUpdates": - case "com.amazonaws.ssm#TooManyUpdates": - throw await de_TooManyUpdatesRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_UpdateDocumentCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_UpdateDocumentCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_UpdateDocumentResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_UpdateDocumentCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DocumentVersionLimitExceeded": - case "com.amazonaws.ssm#DocumentVersionLimitExceeded": - throw await de_DocumentVersionLimitExceededRes(parsedOutput, context); - case "DuplicateDocumentContent": - case "com.amazonaws.ssm#DuplicateDocumentContent": - throw await de_DuplicateDocumentContentRes(parsedOutput, context); - case "DuplicateDocumentVersionName": - case "com.amazonaws.ssm#DuplicateDocumentVersionName": - throw await de_DuplicateDocumentVersionNameRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidDocument": - case "com.amazonaws.ssm#InvalidDocument": - throw await de_InvalidDocumentRes(parsedOutput, context); - case "InvalidDocumentContent": - case "com.amazonaws.ssm#InvalidDocumentContent": - throw await de_InvalidDocumentContentRes(parsedOutput, context); - case "InvalidDocumentOperation": - case "com.amazonaws.ssm#InvalidDocumentOperation": - throw await de_InvalidDocumentOperationRes(parsedOutput, context); - case "InvalidDocumentSchemaVersion": - case "com.amazonaws.ssm#InvalidDocumentSchemaVersion": - throw await de_InvalidDocumentSchemaVersionRes(parsedOutput, context); - case "InvalidDocumentVersion": - case "com.amazonaws.ssm#InvalidDocumentVersion": - throw await de_InvalidDocumentVersionRes(parsedOutput, context); - case "MaxDocumentSizeExceeded": - case "com.amazonaws.ssm#MaxDocumentSizeExceeded": - throw await de_MaxDocumentSizeExceededRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_UpdateDocumentDefaultVersionCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_UpdateDocumentDefaultVersionCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_UpdateDocumentDefaultVersionCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidDocument": - case "com.amazonaws.ssm#InvalidDocument": - throw await de_InvalidDocumentRes(parsedOutput, context); - case "InvalidDocumentSchemaVersion": - case "com.amazonaws.ssm#InvalidDocumentSchemaVersion": - throw await de_InvalidDocumentSchemaVersionRes(parsedOutput, context); - case "InvalidDocumentVersion": - case "com.amazonaws.ssm#InvalidDocumentVersion": - throw await de_InvalidDocumentVersionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_UpdateDocumentMetadataCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_UpdateDocumentMetadataCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_UpdateDocumentMetadataCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidDocument": - case "com.amazonaws.ssm#InvalidDocument": - throw await de_InvalidDocumentRes(parsedOutput, context); - case "InvalidDocumentOperation": - case "com.amazonaws.ssm#InvalidDocumentOperation": - throw await de_InvalidDocumentOperationRes(parsedOutput, context); - case "InvalidDocumentVersion": - case "com.amazonaws.ssm#InvalidDocumentVersion": - throw await de_InvalidDocumentVersionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_UpdateMaintenanceWindowCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_UpdateMaintenanceWindowCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_UpdateMaintenanceWindowCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await de_DoesNotExistExceptionRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_UpdateMaintenanceWindowTargetCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_UpdateMaintenanceWindowTargetCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_UpdateMaintenanceWindowTargetCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await de_DoesNotExistExceptionRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_UpdateMaintenanceWindowTaskCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_UpdateMaintenanceWindowTaskCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_UpdateMaintenanceWindowTaskResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_UpdateMaintenanceWindowTaskCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await de_DoesNotExistExceptionRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_UpdateManagedInstanceRoleCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_UpdateManagedInstanceRoleCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_UpdateManagedInstanceRoleCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "InvalidInstanceId": - case "com.amazonaws.ssm#InvalidInstanceId": - throw await de_InvalidInstanceIdRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_UpdateOpsItemCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_UpdateOpsItemCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_UpdateOpsItemCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "OpsItemAccessDeniedException": - case "com.amazonaws.ssm#OpsItemAccessDeniedException": - throw await de_OpsItemAccessDeniedExceptionRes(parsedOutput, context); - case "OpsItemAlreadyExistsException": - case "com.amazonaws.ssm#OpsItemAlreadyExistsException": - throw await de_OpsItemAlreadyExistsExceptionRes(parsedOutput, context); - case "OpsItemConflictException": - case "com.amazonaws.ssm#OpsItemConflictException": - throw await de_OpsItemConflictExceptionRes(parsedOutput, context); - case "OpsItemInvalidParameterException": - case "com.amazonaws.ssm#OpsItemInvalidParameterException": - throw await de_OpsItemInvalidParameterExceptionRes(parsedOutput, context); - case "OpsItemLimitExceededException": - case "com.amazonaws.ssm#OpsItemLimitExceededException": - throw await de_OpsItemLimitExceededExceptionRes(parsedOutput, context); - case "OpsItemNotFoundException": - case "com.amazonaws.ssm#OpsItemNotFoundException": - throw await de_OpsItemNotFoundExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_UpdateOpsMetadataCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_UpdateOpsMetadataCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_UpdateOpsMetadataCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "OpsMetadataInvalidArgumentException": - case "com.amazonaws.ssm#OpsMetadataInvalidArgumentException": - throw await de_OpsMetadataInvalidArgumentExceptionRes(parsedOutput, context); - case "OpsMetadataKeyLimitExceededException": - case "com.amazonaws.ssm#OpsMetadataKeyLimitExceededException": - throw await de_OpsMetadataKeyLimitExceededExceptionRes(parsedOutput, context); - case "OpsMetadataNotFoundException": - case "com.amazonaws.ssm#OpsMetadataNotFoundException": - throw await de_OpsMetadataNotFoundExceptionRes(parsedOutput, context); - case "OpsMetadataTooManyUpdatesException": - case "com.amazonaws.ssm#OpsMetadataTooManyUpdatesException": - throw await de_OpsMetadataTooManyUpdatesExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_UpdatePatchBaselineCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_UpdatePatchBaselineCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_UpdatePatchBaselineResult(data, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_UpdatePatchBaselineCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "DoesNotExistException": - case "com.amazonaws.ssm#DoesNotExistException": - throw await de_DoesNotExistExceptionRes(parsedOutput, context); - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_UpdateResourceDataSyncCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_UpdateResourceDataSyncCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_UpdateResourceDataSyncCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "ResourceDataSyncConflictException": - case "com.amazonaws.ssm#ResourceDataSyncConflictException": - throw await de_ResourceDataSyncConflictExceptionRes(parsedOutput, context); - case "ResourceDataSyncInvalidConfigurationException": - case "com.amazonaws.ssm#ResourceDataSyncInvalidConfigurationException": - throw await de_ResourceDataSyncInvalidConfigurationExceptionRes(parsedOutput, context); - case "ResourceDataSyncNotFoundException": - case "com.amazonaws.ssm#ResourceDataSyncNotFoundException": - throw await de_ResourceDataSyncNotFoundExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_UpdateServiceSettingCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_UpdateServiceSettingCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = _json(data); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_UpdateServiceSettingCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerError": - case "com.amazonaws.ssm#InternalServerError": - throw await de_InternalServerErrorRes(parsedOutput, context); - case "ServiceSettingNotFound": - case "com.amazonaws.ssm#ServiceSettingNotFound": - throw await de_ServiceSettingNotFoundRes(parsedOutput, context); - case "TooManyUpdates": - case "com.amazonaws.ssm#TooManyUpdates": - throw await de_TooManyUpdatesRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_AlreadyExistsExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new AlreadyExistsException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_AssociatedInstancesRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new AssociatedInstances({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_AssociationAlreadyExistsRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new AssociationAlreadyExists({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_AssociationDoesNotExistRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new AssociationDoesNotExist({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_AssociationExecutionDoesNotExistRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new AssociationExecutionDoesNotExist({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_AssociationLimitExceededRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new AssociationLimitExceeded({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_AssociationVersionLimitExceededRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new AssociationVersionLimitExceeded({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_AutomationDefinitionNotApprovedExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new AutomationDefinitionNotApprovedException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_AutomationDefinitionNotFoundExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new AutomationDefinitionNotFoundException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_AutomationDefinitionVersionNotFoundExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new AutomationDefinitionVersionNotFoundException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_AutomationExecutionLimitExceededExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new AutomationExecutionLimitExceededException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_AutomationExecutionNotFoundExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new AutomationExecutionNotFoundException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_AutomationStepNotFoundExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new AutomationStepNotFoundException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_ComplianceTypeCountLimitExceededExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new ComplianceTypeCountLimitExceededException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_CustomSchemaCountLimitExceededExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new CustomSchemaCountLimitExceededException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_DocumentAlreadyExistsRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new DocumentAlreadyExists({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_DocumentLimitExceededRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new DocumentLimitExceeded({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_DocumentPermissionLimitRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new DocumentPermissionLimit({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_DocumentVersionLimitExceededRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new DocumentVersionLimitExceeded({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_DoesNotExistExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new DoesNotExistException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_DuplicateDocumentContentRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new DuplicateDocumentContent({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_DuplicateDocumentVersionNameRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new DuplicateDocumentVersionName({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_DuplicateInstanceIdRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new DuplicateInstanceId({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_FeatureNotAvailableExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new FeatureNotAvailableException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_HierarchyLevelLimitExceededExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new HierarchyLevelLimitExceededException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_HierarchyTypeMismatchExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new HierarchyTypeMismatchException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_IdempotentParameterMismatchRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new IdempotentParameterMismatch({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_IncompatiblePolicyExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new IncompatiblePolicyException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_InternalServerErrorRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new InternalServerError({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_InvalidActivationRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new InvalidActivation({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_InvalidActivationIdRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new InvalidActivationId({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_InvalidAggregatorExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new InvalidAggregatorException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_InvalidAllowedPatternExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new InvalidAllowedPatternException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_InvalidAssociationRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new InvalidAssociation({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_InvalidAssociationVersionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new InvalidAssociationVersion({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_InvalidAutomationExecutionParametersExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new InvalidAutomationExecutionParametersException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_InvalidAutomationSignalExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new InvalidAutomationSignalException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_InvalidAutomationStatusUpdateExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new InvalidAutomationStatusUpdateException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_InvalidCommandIdRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new InvalidCommandId({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_InvalidDeleteInventoryParametersExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new InvalidDeleteInventoryParametersException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_InvalidDeletionIdExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new InvalidDeletionIdException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_InvalidDocumentRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new InvalidDocument({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_InvalidDocumentContentRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new InvalidDocumentContent({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_InvalidDocumentOperationRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new InvalidDocumentOperation({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_InvalidDocumentSchemaVersionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new InvalidDocumentSchemaVersion({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_InvalidDocumentTypeRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new InvalidDocumentType({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_InvalidDocumentVersionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new InvalidDocumentVersion({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_InvalidFilterRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new InvalidFilter({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_InvalidFilterKeyRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new InvalidFilterKey({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_InvalidFilterOptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new InvalidFilterOption({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_InvalidFilterValueRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new InvalidFilterValue({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_InvalidInstanceIdRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new InvalidInstanceId({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_InvalidInstanceInformationFilterValueRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new InvalidInstanceInformationFilterValue({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_InvalidInventoryGroupExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new InvalidInventoryGroupException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_InvalidInventoryItemContextExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new InvalidInventoryItemContextException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_InvalidInventoryRequestExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new InvalidInventoryRequestException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_InvalidItemContentExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new InvalidItemContentException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_InvalidKeyIdRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new InvalidKeyId({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_InvalidNextTokenRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new InvalidNextToken({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_InvalidNotificationConfigRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new InvalidNotificationConfig({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_InvalidOptionExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new InvalidOptionException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_InvalidOutputFolderRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new InvalidOutputFolder({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_InvalidOutputLocationRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new InvalidOutputLocation({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_InvalidParametersRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new InvalidParameters({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_InvalidPermissionTypeRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new InvalidPermissionType({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_InvalidPluginNameRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new InvalidPluginName({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_InvalidPolicyAttributeExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new InvalidPolicyAttributeException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_InvalidPolicyTypeExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new InvalidPolicyTypeException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_InvalidResourceIdRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new InvalidResourceId({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_InvalidResourceTypeRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new InvalidResourceType({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_InvalidResultAttributeExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new InvalidResultAttributeException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_InvalidRoleRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new InvalidRole({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_InvalidScheduleRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new InvalidSchedule({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_InvalidTagRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new InvalidTag({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_InvalidTargetRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new InvalidTarget({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_InvalidTargetMapsRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new InvalidTargetMaps({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_InvalidTypeNameExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new InvalidTypeNameException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_InvalidUpdateRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new InvalidUpdate({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_InvocationDoesNotExistRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new InvocationDoesNotExist({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_ItemContentMismatchExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new ItemContentMismatchException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_ItemSizeLimitExceededExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new ItemSizeLimitExceededException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_MaxDocumentSizeExceededRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new MaxDocumentSizeExceeded({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_OpsItemAccessDeniedExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new OpsItemAccessDeniedException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_OpsItemAlreadyExistsExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new OpsItemAlreadyExistsException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_OpsItemConflictExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new OpsItemConflictException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_OpsItemInvalidParameterExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new OpsItemInvalidParameterException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_OpsItemLimitExceededExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new OpsItemLimitExceededException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_OpsItemNotFoundExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new OpsItemNotFoundException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_OpsItemRelatedItemAlreadyExistsExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new OpsItemRelatedItemAlreadyExistsException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_OpsItemRelatedItemAssociationNotFoundExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new OpsItemRelatedItemAssociationNotFoundException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_OpsMetadataAlreadyExistsExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new OpsMetadataAlreadyExistsException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_OpsMetadataInvalidArgumentExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new OpsMetadataInvalidArgumentException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_OpsMetadataKeyLimitExceededExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new OpsMetadataKeyLimitExceededException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_OpsMetadataLimitExceededExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new OpsMetadataLimitExceededException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_OpsMetadataNotFoundExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new OpsMetadataNotFoundException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_OpsMetadataTooManyUpdatesExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new OpsMetadataTooManyUpdatesException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_ParameterAlreadyExistsRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new ParameterAlreadyExists({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_ParameterLimitExceededRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new ParameterLimitExceeded({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_ParameterMaxVersionLimitExceededRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new ParameterMaxVersionLimitExceeded({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_ParameterNotFoundRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new ParameterNotFound({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_ParameterPatternMismatchExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new ParameterPatternMismatchException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_ParameterVersionLabelLimitExceededRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new ParameterVersionLabelLimitExceeded({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_ParameterVersionNotFoundRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new ParameterVersionNotFound({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_PoliciesLimitExceededExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new PoliciesLimitExceededException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_ResourceDataSyncAlreadyExistsExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new ResourceDataSyncAlreadyExistsException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_ResourceDataSyncConflictExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new ResourceDataSyncConflictException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_ResourceDataSyncCountExceededExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new ResourceDataSyncCountExceededException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_ResourceDataSyncInvalidConfigurationExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new ResourceDataSyncInvalidConfigurationException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_ResourceDataSyncNotFoundExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new ResourceDataSyncNotFoundException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_ResourceInUseExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new ResourceInUseException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_ResourceLimitExceededExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new ResourceLimitExceededException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_ResourcePolicyConflictExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new ResourcePolicyConflictException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_ResourcePolicyInvalidParameterExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new ResourcePolicyInvalidParameterException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_ResourcePolicyLimitExceededExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new ResourcePolicyLimitExceededException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_ServiceSettingNotFoundRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new ServiceSettingNotFound({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_StatusUnchangedRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new StatusUnchanged({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_SubTypeCountLimitExceededExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new SubTypeCountLimitExceededException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_TargetInUseExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new TargetInUseException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_TargetNotConnectedRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new TargetNotConnected({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_TooManyTagsErrorRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new TooManyTagsError({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_TooManyUpdatesRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new TooManyUpdates({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_TotalSizeLimitExceededExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new TotalSizeLimitExceededException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_UnsupportedCalendarExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new UnsupportedCalendarException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_UnsupportedFeatureRequiredExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new UnsupportedFeatureRequiredException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_UnsupportedInventoryItemContextExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new UnsupportedInventoryItemContextException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_UnsupportedInventorySchemaVersionExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new UnsupportedInventorySchemaVersionException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_UnsupportedOperatingSystemRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new UnsupportedOperatingSystem({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_UnsupportedParameterTypeRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new UnsupportedParameterType({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_UnsupportedPlatformTypeRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = _json(body); - const exception = new UnsupportedPlatformType({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const se_AssociationStatus = (input, context) => { - return take(input, { - AdditionalInfo: [], - Date: (_) => Math.round(_.getTime() / 1000), - Message: [], - Name: [], - }); -}; -const se_ComplianceExecutionSummary = (input, context) => { - return take(input, { - ExecutionId: [], - ExecutionTime: (_) => Math.round(_.getTime() / 1000), - ExecutionType: [], - }); -}; -const se_CreateActivationRequest = (input, context) => { - return take(input, { - DefaultInstanceName: [], - Description: [], - ExpirationDate: (_) => Math.round(_.getTime() / 1000), - IamRole: [], - RegistrationLimit: [], - RegistrationMetadata: _json, - Tags: _json, - }); -}; -const se_CreateMaintenanceWindowRequest = (input, context) => { - return take(input, { - AllowUnassociatedTargets: [], - ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], - Cutoff: [], - Description: [], - Duration: [], - EndDate: [], - Name: [], - Schedule: [], - ScheduleOffset: [], - ScheduleTimezone: [], - StartDate: [], - Tags: _json, - }); -}; -const se_CreateOpsItemRequest = (input, context) => { - return take(input, { - AccountId: [], - ActualEndTime: (_) => Math.round(_.getTime() / 1000), - ActualStartTime: (_) => Math.round(_.getTime() / 1000), - Category: [], - Description: [], - Notifications: _json, - OperationalData: _json, - OpsItemType: [], - PlannedEndTime: (_) => Math.round(_.getTime() / 1000), - PlannedStartTime: (_) => Math.round(_.getTime() / 1000), - Priority: [], - RelatedOpsItems: _json, - Severity: [], - Source: [], - Tags: _json, - Title: [], - }); -}; -const se_CreatePatchBaselineRequest = (input, context) => { - return take(input, { - ApprovalRules: _json, - ApprovedPatches: _json, - ApprovedPatchesComplianceLevel: [], - ApprovedPatchesEnableNonSecurity: [], - ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], - Description: [], - GlobalFilters: _json, - Name: [], - OperatingSystem: [], - RejectedPatches: _json, - RejectedPatchesAction: [], - Sources: _json, - Tags: _json, - }); -}; -const se_DeleteInventoryRequest = (input, context) => { - return take(input, { - ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], - DryRun: [], - SchemaDeleteOption: [], - TypeName: [], - }); -}; -const se_GetInventoryRequest = (input, context) => { - return take(input, { - Aggregators: (_) => se_InventoryAggregatorList(_, context), - Filters: _json, - MaxResults: [], - NextToken: [], - ResultAttributes: _json, - }); -}; -const se_GetOpsSummaryRequest = (input, context) => { - return take(input, { - Aggregators: (_) => se_OpsAggregatorList(_, context), - Filters: _json, - MaxResults: [], - NextToken: [], - ResultAttributes: _json, - SyncName: [], - }); -}; -const se_InventoryAggregator = (input, context) => { - return take(input, { - Aggregators: (_) => se_InventoryAggregatorList(_, context), - Expression: [], - Groups: _json, - }); -}; -const se_InventoryAggregatorList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return se_InventoryAggregator(entry, context); - }); -}; -const se_MaintenanceWindowLambdaParameters = (input, context) => { - return take(input, { - ClientContext: [], - Payload: context.base64Encoder, - Qualifier: [], - }); -}; -const se_MaintenanceWindowTaskInvocationParameters = (input, context) => { - return take(input, { - Automation: _json, - Lambda: (_) => se_MaintenanceWindowLambdaParameters(_, context), - RunCommand: _json, - StepFunctions: _json, - }); -}; -const se_OpsAggregator = (input, context) => { - return take(input, { - AggregatorType: [], - Aggregators: (_) => se_OpsAggregatorList(_, context), - AttributeName: [], - Filters: _json, - TypeName: [], - Values: _json, - }); -}; -const se_OpsAggregatorList = (input, context) => { - return input - .filter((e) => e != null) - .map((entry) => { - return se_OpsAggregator(entry, context); - }); -}; -const se_PutComplianceItemsRequest = (input, context) => { - return take(input, { - ComplianceType: [], - ExecutionSummary: (_) => se_ComplianceExecutionSummary(_, context), - ItemContentHash: [], - Items: _json, - ResourceId: [], - ResourceType: [], - UploadType: [], - }); -}; -const se_RegisterTargetWithMaintenanceWindowRequest = (input, context) => { - return take(input, { - ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], - Description: [], - Name: [], - OwnerInformation: [], - ResourceType: [], - Targets: _json, - WindowId: [], - }); -}; -const se_RegisterTaskWithMaintenanceWindowRequest = (input, context) => { - return take(input, { - AlarmConfiguration: _json, - ClientToken: [true, (_) => _ ?? generateIdempotencyToken()], - CutoffBehavior: [], - Description: [], - LoggingInfo: _json, - MaxConcurrency: [], - MaxErrors: [], - Name: [], - Priority: [], - ServiceRoleArn: [], - Targets: _json, - TaskArn: [], - TaskInvocationParameters: (_) => se_MaintenanceWindowTaskInvocationParameters(_, context), - TaskParameters: _json, - TaskType: [], - WindowId: [], - }); -}; -const se_StartChangeRequestExecutionRequest = (input, context) => { - return take(input, { - AutoApprove: [], - ChangeDetails: [], - ChangeRequestName: [], - ClientToken: [], - DocumentName: [], - DocumentVersion: [], - Parameters: _json, - Runbooks: _json, - ScheduledEndTime: (_) => Math.round(_.getTime() / 1000), - ScheduledTime: (_) => Math.round(_.getTime() / 1000), - Tags: _json, - }); -}; -const se_UpdateAssociationStatusRequest = (input, context) => { - return take(input, { - AssociationStatus: (_) => se_AssociationStatus(_, context), - InstanceId: [], - Name: [], - }); -}; -const se_UpdateMaintenanceWindowTaskRequest = (input, context) => { - return take(input, { - AlarmConfiguration: _json, - CutoffBehavior: [], - Description: [], - LoggingInfo: _json, - MaxConcurrency: [], - MaxErrors: [], - Name: [], - Priority: [], - Replace: [], - ServiceRoleArn: [], - Targets: _json, - TaskArn: [], - TaskInvocationParameters: (_) => se_MaintenanceWindowTaskInvocationParameters(_, context), - TaskParameters: _json, - WindowId: [], - WindowTaskId: [], - }); -}; -const se_UpdateOpsItemRequest = (input, context) => { - return take(input, { - ActualEndTime: (_) => Math.round(_.getTime() / 1000), - ActualStartTime: (_) => Math.round(_.getTime() / 1000), - Category: [], - Description: [], - Notifications: _json, - OperationalData: _json, - OperationalDataToDelete: _json, - OpsItemArn: [], - OpsItemId: [], - PlannedEndTime: (_) => Math.round(_.getTime() / 1000), - PlannedStartTime: (_) => Math.round(_.getTime() / 1000), - Priority: [], - RelatedOpsItems: _json, - Severity: [], - Status: [], - Title: [], - }); -}; -const de_Activation = (output, context) => { - return take(output, { - ActivationId: __expectString, - CreatedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - DefaultInstanceName: __expectString, - Description: __expectString, - ExpirationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - Expired: __expectBoolean, - IamRole: __expectString, - RegistrationLimit: __expectInt32, - RegistrationsCount: __expectInt32, - Tags: _json, - }); -}; -const de_ActivationList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_Activation(entry, context); - }); - return retVal; -}; -const de_Association = (output, context) => { - return take(output, { - AssociationId: __expectString, - AssociationName: __expectString, - AssociationVersion: __expectString, - DocumentVersion: __expectString, - InstanceId: __expectString, - LastExecutionDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - Name: __expectString, - Overview: _json, - ScheduleExpression: __expectString, - ScheduleOffset: __expectInt32, - TargetMaps: _json, - Targets: _json, - }); -}; -const de_AssociationDescription = (output, context) => { - return take(output, { - AlarmConfiguration: _json, - ApplyOnlyAtCronInterval: __expectBoolean, - AssociationId: __expectString, - AssociationName: __expectString, - AssociationVersion: __expectString, - AutomationTargetParameterName: __expectString, - CalendarNames: _json, - ComplianceSeverity: __expectString, - Date: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - DocumentVersion: __expectString, - InstanceId: __expectString, - LastExecutionDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - LastSuccessfulExecutionDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - LastUpdateAssociationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - MaxConcurrency: __expectString, - MaxErrors: __expectString, - Name: __expectString, - OutputLocation: _json, - Overview: _json, - Parameters: _json, - ScheduleExpression: __expectString, - ScheduleOffset: __expectInt32, - Status: (_) => de_AssociationStatus(_, context), - SyncCompliance: __expectString, - TargetLocations: _json, - TargetMaps: _json, - Targets: _json, - TriggeredAlarms: _json, - }); -}; -const de_AssociationDescriptionList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_AssociationDescription(entry, context); - }); - return retVal; -}; -const de_AssociationExecution = (output, context) => { - return take(output, { - AlarmConfiguration: _json, - AssociationId: __expectString, - AssociationVersion: __expectString, - CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - DetailedStatus: __expectString, - ExecutionId: __expectString, - LastExecutionDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - ResourceCountByStatus: __expectString, - Status: __expectString, - TriggeredAlarms: _json, - }); -}; -const de_AssociationExecutionsList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_AssociationExecution(entry, context); - }); - return retVal; -}; -const de_AssociationExecutionTarget = (output, context) => { - return take(output, { - AssociationId: __expectString, - AssociationVersion: __expectString, - DetailedStatus: __expectString, - ExecutionId: __expectString, - LastExecutionDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - OutputSource: _json, - ResourceId: __expectString, - ResourceType: __expectString, - Status: __expectString, - }); -}; -const de_AssociationExecutionTargetsList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_AssociationExecutionTarget(entry, context); - }); - return retVal; -}; -const de_AssociationList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_Association(entry, context); - }); - return retVal; -}; -const de_AssociationStatus = (output, context) => { - return take(output, { - AdditionalInfo: __expectString, - Date: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - Message: __expectString, - Name: __expectString, - }); -}; -const de_AssociationVersionInfo = (output, context) => { - return take(output, { - ApplyOnlyAtCronInterval: __expectBoolean, - AssociationId: __expectString, - AssociationName: __expectString, - AssociationVersion: __expectString, - CalendarNames: _json, - ComplianceSeverity: __expectString, - CreatedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - DocumentVersion: __expectString, - MaxConcurrency: __expectString, - MaxErrors: __expectString, - Name: __expectString, - OutputLocation: _json, - Parameters: _json, - ScheduleExpression: __expectString, - ScheduleOffset: __expectInt32, - SyncCompliance: __expectString, - TargetLocations: _json, - TargetMaps: _json, - Targets: _json, - }); -}; -const de_AssociationVersionList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_AssociationVersionInfo(entry, context); - }); - return retVal; -}; -const de_AutomationExecution = (output, context) => { - return take(output, { - AlarmConfiguration: _json, - AssociationId: __expectString, - AutomationExecutionId: __expectString, - AutomationExecutionStatus: __expectString, - AutomationSubtype: __expectString, - ChangeRequestName: __expectString, - CurrentAction: __expectString, - CurrentStepName: __expectString, - DocumentName: __expectString, - DocumentVersion: __expectString, - ExecutedBy: __expectString, - ExecutionEndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - ExecutionStartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - FailureMessage: __expectString, - MaxConcurrency: __expectString, - MaxErrors: __expectString, - Mode: __expectString, - OpsItemId: __expectString, - Outputs: _json, - Parameters: _json, - ParentAutomationExecutionId: __expectString, - ProgressCounters: _json, - ResolvedTargets: _json, - Runbooks: _json, - ScheduledTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - StepExecutions: (_) => de_StepExecutionList(_, context), - StepExecutionsTruncated: __expectBoolean, - Target: __expectString, - TargetLocations: _json, - TargetMaps: _json, - TargetParameterName: __expectString, - Targets: _json, - TriggeredAlarms: _json, - Variables: _json, - }); -}; -const de_AutomationExecutionMetadata = (output, context) => { - return take(output, { - AlarmConfiguration: _json, - AssociationId: __expectString, - AutomationExecutionId: __expectString, - AutomationExecutionStatus: __expectString, - AutomationSubtype: __expectString, - AutomationType: __expectString, - ChangeRequestName: __expectString, - CurrentAction: __expectString, - CurrentStepName: __expectString, - DocumentName: __expectString, - DocumentVersion: __expectString, - ExecutedBy: __expectString, - ExecutionEndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - ExecutionStartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - FailureMessage: __expectString, - LogFile: __expectString, - MaxConcurrency: __expectString, - MaxErrors: __expectString, - Mode: __expectString, - OpsItemId: __expectString, - Outputs: _json, - ParentAutomationExecutionId: __expectString, - ResolvedTargets: _json, - Runbooks: _json, - ScheduledTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - Target: __expectString, - TargetMaps: _json, - TargetParameterName: __expectString, - Targets: _json, - TriggeredAlarms: _json, - }); -}; -const de_AutomationExecutionMetadataList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_AutomationExecutionMetadata(entry, context); - }); - return retVal; -}; -const de_Command = (output, context) => { - return take(output, { - AlarmConfiguration: _json, - CloudWatchOutputConfig: _json, - CommandId: __expectString, - Comment: __expectString, - CompletedCount: __expectInt32, - DeliveryTimedOutCount: __expectInt32, - DocumentName: __expectString, - DocumentVersion: __expectString, - ErrorCount: __expectInt32, - ExpiresAfter: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - InstanceIds: _json, - MaxConcurrency: __expectString, - MaxErrors: __expectString, - NotificationConfig: _json, - OutputS3BucketName: __expectString, - OutputS3KeyPrefix: __expectString, - OutputS3Region: __expectString, - Parameters: _json, - RequestedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - ServiceRole: __expectString, - Status: __expectString, - StatusDetails: __expectString, - TargetCount: __expectInt32, - Targets: _json, - TimeoutSeconds: __expectInt32, - TriggeredAlarms: _json, - }); -}; -const de_CommandInvocation = (output, context) => { - return take(output, { - CloudWatchOutputConfig: _json, - CommandId: __expectString, - CommandPlugins: (_) => de_CommandPluginList(_, context), - Comment: __expectString, - DocumentName: __expectString, - DocumentVersion: __expectString, - InstanceId: __expectString, - InstanceName: __expectString, - NotificationConfig: _json, - RequestedDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - ServiceRole: __expectString, - StandardErrorUrl: __expectString, - StandardOutputUrl: __expectString, - Status: __expectString, - StatusDetails: __expectString, - TraceOutput: __expectString, - }); -}; -const de_CommandInvocationList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_CommandInvocation(entry, context); - }); - return retVal; -}; -const de_CommandList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_Command(entry, context); - }); - return retVal; -}; -const de_CommandPlugin = (output, context) => { - return take(output, { - Name: __expectString, - Output: __expectString, - OutputS3BucketName: __expectString, - OutputS3KeyPrefix: __expectString, - OutputS3Region: __expectString, - ResponseCode: __expectInt32, - ResponseFinishDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - ResponseStartDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - StandardErrorUrl: __expectString, - StandardOutputUrl: __expectString, - Status: __expectString, - StatusDetails: __expectString, - }); -}; -const de_CommandPluginList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_CommandPlugin(entry, context); - }); - return retVal; -}; -const de_ComplianceExecutionSummary = (output, context) => { - return take(output, { - ExecutionId: __expectString, - ExecutionTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - ExecutionType: __expectString, - }); -}; -const de_ComplianceItem = (output, context) => { - return take(output, { - ComplianceType: __expectString, - Details: _json, - ExecutionSummary: (_) => de_ComplianceExecutionSummary(_, context), - Id: __expectString, - ResourceId: __expectString, - ResourceType: __expectString, - Severity: __expectString, - Status: __expectString, - Title: __expectString, - }); -}; -const de_ComplianceItemList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_ComplianceItem(entry, context); - }); - return retVal; -}; -const de_CreateAssociationBatchResult = (output, context) => { - return take(output, { - Failed: _json, - Successful: (_) => de_AssociationDescriptionList(_, context), - }); -}; -const de_CreateAssociationResult = (output, context) => { - return take(output, { - AssociationDescription: (_) => de_AssociationDescription(_, context), - }); -}; -const de_CreateDocumentResult = (output, context) => { - return take(output, { - DocumentDescription: (_) => de_DocumentDescription(_, context), - }); -}; -const de_DescribeActivationsResult = (output, context) => { - return take(output, { - ActivationList: (_) => de_ActivationList(_, context), - NextToken: __expectString, - }); -}; -const de_DescribeAssociationExecutionsResult = (output, context) => { - return take(output, { - AssociationExecutions: (_) => de_AssociationExecutionsList(_, context), - NextToken: __expectString, - }); -}; -const de_DescribeAssociationExecutionTargetsResult = (output, context) => { - return take(output, { - AssociationExecutionTargets: (_) => de_AssociationExecutionTargetsList(_, context), - NextToken: __expectString, - }); -}; -const de_DescribeAssociationResult = (output, context) => { - return take(output, { - AssociationDescription: (_) => de_AssociationDescription(_, context), - }); -}; -const de_DescribeAutomationExecutionsResult = (output, context) => { - return take(output, { - AutomationExecutionMetadataList: (_) => de_AutomationExecutionMetadataList(_, context), - NextToken: __expectString, - }); -}; -const de_DescribeAutomationStepExecutionsResult = (output, context) => { - return take(output, { - NextToken: __expectString, - StepExecutions: (_) => de_StepExecutionList(_, context), - }); -}; -const de_DescribeAvailablePatchesResult = (output, context) => { - return take(output, { - NextToken: __expectString, - Patches: (_) => de_PatchList(_, context), - }); -}; -const de_DescribeDocumentResult = (output, context) => { - return take(output, { - Document: (_) => de_DocumentDescription(_, context), - }); -}; -const de_DescribeEffectivePatchesForPatchBaselineResult = (output, context) => { - return take(output, { - EffectivePatches: (_) => de_EffectivePatchList(_, context), - NextToken: __expectString, - }); -}; -const de_DescribeInstanceAssociationsStatusResult = (output, context) => { - return take(output, { - InstanceAssociationStatusInfos: (_) => de_InstanceAssociationStatusInfos(_, context), - NextToken: __expectString, - }); -}; -const de_DescribeInstanceInformationResult = (output, context) => { - return take(output, { - InstanceInformationList: (_) => de_InstanceInformationList(_, context), - NextToken: __expectString, - }); -}; -const de_DescribeInstancePatchesResult = (output, context) => { - return take(output, { - NextToken: __expectString, - Patches: (_) => de_PatchComplianceDataList(_, context), - }); -}; -const de_DescribeInstancePatchStatesForPatchGroupResult = (output, context) => { - return take(output, { - InstancePatchStates: (_) => de_InstancePatchStatesList(_, context), - NextToken: __expectString, - }); -}; -const de_DescribeInstancePatchStatesResult = (output, context) => { - return take(output, { - InstancePatchStates: (_) => de_InstancePatchStateList(_, context), - NextToken: __expectString, - }); -}; -const de_DescribeInventoryDeletionsResult = (output, context) => { - return take(output, { - InventoryDeletions: (_) => de_InventoryDeletionsList(_, context), - NextToken: __expectString, - }); -}; -const de_DescribeMaintenanceWindowExecutionsResult = (output, context) => { - return take(output, { - NextToken: __expectString, - WindowExecutions: (_) => de_MaintenanceWindowExecutionList(_, context), - }); -}; -const de_DescribeMaintenanceWindowExecutionTaskInvocationsResult = (output, context) => { - return take(output, { - NextToken: __expectString, - WindowExecutionTaskInvocationIdentities: (_) => de_MaintenanceWindowExecutionTaskInvocationIdentityList(_, context), - }); -}; -const de_DescribeMaintenanceWindowExecutionTasksResult = (output, context) => { - return take(output, { - NextToken: __expectString, - WindowExecutionTaskIdentities: (_) => de_MaintenanceWindowExecutionTaskIdentityList(_, context), - }); -}; -const de_DescribeOpsItemsResponse = (output, context) => { - return take(output, { - NextToken: __expectString, - OpsItemSummaries: (_) => de_OpsItemSummaries(_, context), - }); -}; -const de_DescribeParametersResult = (output, context) => { - return take(output, { - NextToken: __expectString, - Parameters: (_) => de_ParameterMetadataList(_, context), - }); -}; -const de_DescribeSessionsResponse = (output, context) => { - return take(output, { - NextToken: __expectString, - Sessions: (_) => de_SessionList(_, context), - }); -}; -const de_DocumentDescription = (output, context) => { - return take(output, { - ApprovedVersion: __expectString, - AttachmentsInformation: _json, - Author: __expectString, - Category: _json, - CategoryEnum: _json, - CreatedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - DefaultVersion: __expectString, - Description: __expectString, - DisplayName: __expectString, - DocumentFormat: __expectString, - DocumentType: __expectString, - DocumentVersion: __expectString, - Hash: __expectString, - HashType: __expectString, - LatestVersion: __expectString, - Name: __expectString, - Owner: __expectString, - Parameters: _json, - PendingReviewVersion: __expectString, - PlatformTypes: _json, - Requires: _json, - ReviewInformation: (_) => de_ReviewInformationList(_, context), - ReviewStatus: __expectString, - SchemaVersion: __expectString, - Sha1: __expectString, - Status: __expectString, - StatusInformation: __expectString, - Tags: _json, - TargetType: __expectString, - VersionName: __expectString, - }); -}; -const de_DocumentIdentifier = (output, context) => { - return take(output, { - Author: __expectString, - CreatedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - DisplayName: __expectString, - DocumentFormat: __expectString, - DocumentType: __expectString, - DocumentVersion: __expectString, - Name: __expectString, - Owner: __expectString, - PlatformTypes: _json, - Requires: _json, - ReviewStatus: __expectString, - SchemaVersion: __expectString, - Tags: _json, - TargetType: __expectString, - VersionName: __expectString, - }); -}; -const de_DocumentIdentifierList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_DocumentIdentifier(entry, context); - }); - return retVal; -}; -const de_DocumentMetadataResponseInfo = (output, context) => { - return take(output, { - ReviewerResponse: (_) => de_DocumentReviewerResponseList(_, context), - }); -}; -const de_DocumentReviewerResponseList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_DocumentReviewerResponseSource(entry, context); - }); - return retVal; -}; -const de_DocumentReviewerResponseSource = (output, context) => { - return take(output, { - Comment: _json, - CreateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - ReviewStatus: __expectString, - Reviewer: __expectString, - UpdatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - }); -}; -const de_DocumentVersionInfo = (output, context) => { - return take(output, { - CreatedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - DisplayName: __expectString, - DocumentFormat: __expectString, - DocumentVersion: __expectString, - IsDefaultVersion: __expectBoolean, - Name: __expectString, - ReviewStatus: __expectString, - Status: __expectString, - StatusInformation: __expectString, - VersionName: __expectString, - }); -}; -const de_DocumentVersionList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_DocumentVersionInfo(entry, context); - }); - return retVal; -}; -const de_EffectivePatch = (output, context) => { - return take(output, { - Patch: (_) => de_Patch(_, context), - PatchStatus: (_) => de_PatchStatus(_, context), - }); -}; -const de_EffectivePatchList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_EffectivePatch(entry, context); - }); - return retVal; -}; -const de_GetAutomationExecutionResult = (output, context) => { - return take(output, { - AutomationExecution: (_) => de_AutomationExecution(_, context), - }); -}; -const de_GetDocumentResult = (output, context) => { - return take(output, { - AttachmentsContent: _json, - Content: __expectString, - CreatedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - DisplayName: __expectString, - DocumentFormat: __expectString, - DocumentType: __expectString, - DocumentVersion: __expectString, - Name: __expectString, - Requires: _json, - ReviewStatus: __expectString, - Status: __expectString, - StatusInformation: __expectString, - VersionName: __expectString, - }); -}; -const de_GetMaintenanceWindowExecutionResult = (output, context) => { - return take(output, { - EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - Status: __expectString, - StatusDetails: __expectString, - TaskIds: _json, - WindowExecutionId: __expectString, - }); -}; -const de_GetMaintenanceWindowExecutionTaskInvocationResult = (output, context) => { - return take(output, { - EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - ExecutionId: __expectString, - InvocationId: __expectString, - OwnerInformation: __expectString, - Parameters: __expectString, - StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - Status: __expectString, - StatusDetails: __expectString, - TaskExecutionId: __expectString, - TaskType: __expectString, - WindowExecutionId: __expectString, - WindowTargetId: __expectString, - }); -}; -const de_GetMaintenanceWindowExecutionTaskResult = (output, context) => { - return take(output, { - AlarmConfiguration: _json, - EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - MaxConcurrency: __expectString, - MaxErrors: __expectString, - Priority: __expectInt32, - ServiceRole: __expectString, - StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - Status: __expectString, - StatusDetails: __expectString, - TaskArn: __expectString, - TaskExecutionId: __expectString, - TaskParameters: _json, - TriggeredAlarms: _json, - Type: __expectString, - WindowExecutionId: __expectString, - }); -}; -const de_GetMaintenanceWindowResult = (output, context) => { - return take(output, { - AllowUnassociatedTargets: __expectBoolean, - CreatedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - Cutoff: __expectInt32, - Description: __expectString, - Duration: __expectInt32, - Enabled: __expectBoolean, - EndDate: __expectString, - ModifiedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - Name: __expectString, - NextExecutionTime: __expectString, - Schedule: __expectString, - ScheduleOffset: __expectInt32, - ScheduleTimezone: __expectString, - StartDate: __expectString, - WindowId: __expectString, - }); -}; -const de_GetMaintenanceWindowTaskResult = (output, context) => { - return take(output, { - AlarmConfiguration: _json, - CutoffBehavior: __expectString, - Description: __expectString, - LoggingInfo: _json, - MaxConcurrency: __expectString, - MaxErrors: __expectString, - Name: __expectString, - Priority: __expectInt32, - ServiceRoleArn: __expectString, - Targets: _json, - TaskArn: __expectString, - TaskInvocationParameters: (_) => de_MaintenanceWindowTaskInvocationParameters(_, context), - TaskParameters: _json, - TaskType: __expectString, - WindowId: __expectString, - WindowTaskId: __expectString, - }); -}; -const de_GetOpsItemResponse = (output, context) => { - return take(output, { - OpsItem: (_) => de_OpsItem(_, context), - }); -}; -const de_GetParameterHistoryResult = (output, context) => { - return take(output, { - NextToken: __expectString, - Parameters: (_) => de_ParameterHistoryList(_, context), - }); -}; -const de_GetParameterResult = (output, context) => { - return take(output, { - Parameter: (_) => de_Parameter(_, context), - }); -}; -const de_GetParametersByPathResult = (output, context) => { - return take(output, { - NextToken: __expectString, - Parameters: (_) => de_ParameterList(_, context), - }); -}; -const de_GetParametersResult = (output, context) => { - return take(output, { - InvalidParameters: _json, - Parameters: (_) => de_ParameterList(_, context), - }); -}; -const de_GetPatchBaselineResult = (output, context) => { - return take(output, { - ApprovalRules: _json, - ApprovedPatches: _json, - ApprovedPatchesComplianceLevel: __expectString, - ApprovedPatchesEnableNonSecurity: __expectBoolean, - BaselineId: __expectString, - CreatedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - Description: __expectString, - GlobalFilters: _json, - ModifiedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - Name: __expectString, - OperatingSystem: __expectString, - PatchGroups: _json, - RejectedPatches: _json, - RejectedPatchesAction: __expectString, - Sources: _json, - }); -}; -const de_GetServiceSettingResult = (output, context) => { - return take(output, { - ServiceSetting: (_) => de_ServiceSetting(_, context), - }); -}; -const de_InstanceAssociationStatusInfo = (output, context) => { - return take(output, { - AssociationId: __expectString, - AssociationName: __expectString, - AssociationVersion: __expectString, - DetailedStatus: __expectString, - DocumentVersion: __expectString, - ErrorCode: __expectString, - ExecutionDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - ExecutionSummary: __expectString, - InstanceId: __expectString, - Name: __expectString, - OutputUrl: _json, - Status: __expectString, - }); -}; -const de_InstanceAssociationStatusInfos = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_InstanceAssociationStatusInfo(entry, context); - }); - return retVal; -}; -const de_InstanceInformation = (output, context) => { - return take(output, { - ActivationId: __expectString, - AgentVersion: __expectString, - AssociationOverview: _json, - AssociationStatus: __expectString, - ComputerName: __expectString, - IPAddress: __expectString, - IamRole: __expectString, - InstanceId: __expectString, - IsLatestVersion: __expectBoolean, - LastAssociationExecutionDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - LastPingDateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - LastSuccessfulAssociationExecutionDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - Name: __expectString, - PingStatus: __expectString, - PlatformName: __expectString, - PlatformType: __expectString, - PlatformVersion: __expectString, - RegistrationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - ResourceType: __expectString, - SourceId: __expectString, - SourceType: __expectString, - }); -}; -const de_InstanceInformationList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_InstanceInformation(entry, context); - }); - return retVal; -}; -const de_InstancePatchState = (output, context) => { - return take(output, { - BaselineId: __expectString, - CriticalNonCompliantCount: __expectInt32, - FailedCount: __expectInt32, - InstallOverrideList: __expectString, - InstalledCount: __expectInt32, - InstalledOtherCount: __expectInt32, - InstalledPendingRebootCount: __expectInt32, - InstalledRejectedCount: __expectInt32, - InstanceId: __expectString, - LastNoRebootInstallOperationTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - MissingCount: __expectInt32, - NotApplicableCount: __expectInt32, - Operation: __expectString, - OperationEndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - OperationStartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - OtherNonCompliantCount: __expectInt32, - OwnerInformation: __expectString, - PatchGroup: __expectString, - RebootOption: __expectString, - SecurityNonCompliantCount: __expectInt32, - SnapshotId: __expectString, - UnreportedNotApplicableCount: __expectInt32, - }); -}; -const de_InstancePatchStateList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_InstancePatchState(entry, context); - }); - return retVal; -}; -const de_InstancePatchStatesList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_InstancePatchState(entry, context); - }); - return retVal; -}; -const de_InventoryDeletionsList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_InventoryDeletionStatusItem(entry, context); - }); - return retVal; -}; -const de_InventoryDeletionStatusItem = (output, context) => { - return take(output, { - DeletionId: __expectString, - DeletionStartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - DeletionSummary: _json, - LastStatus: __expectString, - LastStatusMessage: __expectString, - LastStatusUpdateTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - TypeName: __expectString, - }); -}; -const de_ListAssociationsResult = (output, context) => { - return take(output, { - Associations: (_) => de_AssociationList(_, context), - NextToken: __expectString, - }); -}; -const de_ListAssociationVersionsResult = (output, context) => { - return take(output, { - AssociationVersions: (_) => de_AssociationVersionList(_, context), - NextToken: __expectString, - }); -}; -const de_ListCommandInvocationsResult = (output, context) => { - return take(output, { - CommandInvocations: (_) => de_CommandInvocationList(_, context), - NextToken: __expectString, - }); -}; -const de_ListCommandsResult = (output, context) => { - return take(output, { - Commands: (_) => de_CommandList(_, context), - NextToken: __expectString, - }); -}; -const de_ListComplianceItemsResult = (output, context) => { - return take(output, { - ComplianceItems: (_) => de_ComplianceItemList(_, context), - NextToken: __expectString, - }); -}; -const de_ListDocumentMetadataHistoryResponse = (output, context) => { - return take(output, { - Author: __expectString, - DocumentVersion: __expectString, - Metadata: (_) => de_DocumentMetadataResponseInfo(_, context), - Name: __expectString, - NextToken: __expectString, - }); -}; -const de_ListDocumentsResult = (output, context) => { - return take(output, { - DocumentIdentifiers: (_) => de_DocumentIdentifierList(_, context), - NextToken: __expectString, - }); -}; -const de_ListDocumentVersionsResult = (output, context) => { - return take(output, { - DocumentVersions: (_) => de_DocumentVersionList(_, context), - NextToken: __expectString, - }); -}; -const de_ListOpsItemEventsResponse = (output, context) => { - return take(output, { - NextToken: __expectString, - Summaries: (_) => de_OpsItemEventSummaries(_, context), - }); -}; -const de_ListOpsItemRelatedItemsResponse = (output, context) => { - return take(output, { - NextToken: __expectString, - Summaries: (_) => de_OpsItemRelatedItemSummaries(_, context), - }); -}; -const de_ListOpsMetadataResult = (output, context) => { - return take(output, { - NextToken: __expectString, - OpsMetadataList: (_) => de_OpsMetadataList(_, context), - }); -}; -const de_ListResourceComplianceSummariesResult = (output, context) => { - return take(output, { - NextToken: __expectString, - ResourceComplianceSummaryItems: (_) => de_ResourceComplianceSummaryItemList(_, context), - }); -}; -const de_ListResourceDataSyncResult = (output, context) => { - return take(output, { - NextToken: __expectString, - ResourceDataSyncItems: (_) => de_ResourceDataSyncItemList(_, context), - }); -}; -const de_MaintenanceWindowExecution = (output, context) => { - return take(output, { - EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - Status: __expectString, - StatusDetails: __expectString, - WindowExecutionId: __expectString, - WindowId: __expectString, - }); -}; -const de_MaintenanceWindowExecutionList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_MaintenanceWindowExecution(entry, context); - }); - return retVal; -}; -const de_MaintenanceWindowExecutionTaskIdentity = (output, context) => { - return take(output, { - AlarmConfiguration: _json, - EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - Status: __expectString, - StatusDetails: __expectString, - TaskArn: __expectString, - TaskExecutionId: __expectString, - TaskType: __expectString, - TriggeredAlarms: _json, - WindowExecutionId: __expectString, - }); -}; -const de_MaintenanceWindowExecutionTaskIdentityList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_MaintenanceWindowExecutionTaskIdentity(entry, context); - }); - return retVal; -}; -const de_MaintenanceWindowExecutionTaskInvocationIdentity = (output, context) => { - return take(output, { - EndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - ExecutionId: __expectString, - InvocationId: __expectString, - OwnerInformation: __expectString, - Parameters: __expectString, - StartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - Status: __expectString, - StatusDetails: __expectString, - TaskExecutionId: __expectString, - TaskType: __expectString, - WindowExecutionId: __expectString, - WindowTargetId: __expectString, - }); -}; -const de_MaintenanceWindowExecutionTaskInvocationIdentityList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_MaintenanceWindowExecutionTaskInvocationIdentity(entry, context); - }); - return retVal; -}; -const de_MaintenanceWindowLambdaParameters = (output, context) => { - return take(output, { - ClientContext: __expectString, - Payload: context.base64Decoder, - Qualifier: __expectString, - }); -}; -const de_MaintenanceWindowTaskInvocationParameters = (output, context) => { - return take(output, { - Automation: _json, - Lambda: (_) => de_MaintenanceWindowLambdaParameters(_, context), - RunCommand: _json, - StepFunctions: _json, - }); -}; -const de_OpsItem = (output, context) => { - return take(output, { - ActualEndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - ActualStartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - Category: __expectString, - CreatedBy: __expectString, - CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - Description: __expectString, - LastModifiedBy: __expectString, - LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - Notifications: _json, - OperationalData: _json, - OpsItemArn: __expectString, - OpsItemId: __expectString, - OpsItemType: __expectString, - PlannedEndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - PlannedStartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - Priority: __expectInt32, - RelatedOpsItems: _json, - Severity: __expectString, - Source: __expectString, - Status: __expectString, - Title: __expectString, - Version: __expectString, - }); -}; -const de_OpsItemEventSummaries = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_OpsItemEventSummary(entry, context); - }); - return retVal; -}; -const de_OpsItemEventSummary = (output, context) => { - return take(output, { - CreatedBy: _json, - CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - Detail: __expectString, - DetailType: __expectString, - EventId: __expectString, - OpsItemId: __expectString, - Source: __expectString, - }); -}; -const de_OpsItemRelatedItemSummaries = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_OpsItemRelatedItemSummary(entry, context); - }); - return retVal; -}; -const de_OpsItemRelatedItemSummary = (output, context) => { - return take(output, { - AssociationId: __expectString, - AssociationType: __expectString, - CreatedBy: _json, - CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - LastModifiedBy: _json, - LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - OpsItemId: __expectString, - ResourceType: __expectString, - ResourceUri: __expectString, - }); -}; -const de_OpsItemSummaries = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_OpsItemSummary(entry, context); - }); - return retVal; -}; -const de_OpsItemSummary = (output, context) => { - return take(output, { - ActualEndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - ActualStartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - Category: __expectString, - CreatedBy: __expectString, - CreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - LastModifiedBy: __expectString, - LastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - OperationalData: _json, - OpsItemId: __expectString, - OpsItemType: __expectString, - PlannedEndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - PlannedStartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - Priority: __expectInt32, - Severity: __expectString, - Source: __expectString, - Status: __expectString, - Title: __expectString, - }); -}; -const de_OpsMetadata = (output, context) => { - return take(output, { - CreationDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - LastModifiedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - LastModifiedUser: __expectString, - OpsMetadataArn: __expectString, - ResourceId: __expectString, - }); -}; -const de_OpsMetadataList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_OpsMetadata(entry, context); - }); - return retVal; -}; -const de_Parameter = (output, context) => { - return take(output, { - ARN: __expectString, - DataType: __expectString, - LastModifiedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - Name: __expectString, - Selector: __expectString, - SourceResult: __expectString, - Type: __expectString, - Value: __expectString, - Version: __expectLong, - }); -}; -const de_ParameterHistory = (output, context) => { - return take(output, { - AllowedPattern: __expectString, - DataType: __expectString, - Description: __expectString, - KeyId: __expectString, - Labels: _json, - LastModifiedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - LastModifiedUser: __expectString, - Name: __expectString, - Policies: _json, - Tier: __expectString, - Type: __expectString, - Value: __expectString, - Version: __expectLong, - }); -}; -const de_ParameterHistoryList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_ParameterHistory(entry, context); - }); - return retVal; -}; -const de_ParameterList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_Parameter(entry, context); - }); - return retVal; -}; -const de_ParameterMetadata = (output, context) => { - return take(output, { - AllowedPattern: __expectString, - DataType: __expectString, - Description: __expectString, - KeyId: __expectString, - LastModifiedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - LastModifiedUser: __expectString, - Name: __expectString, - Policies: _json, - Tier: __expectString, - Type: __expectString, - Version: __expectLong, - }); -}; -const de_ParameterMetadataList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_ParameterMetadata(entry, context); - }); - return retVal; -}; -const de_Patch = (output, context) => { - return take(output, { - AdvisoryIds: _json, - Arch: __expectString, - BugzillaIds: _json, - CVEIds: _json, - Classification: __expectString, - ContentUrl: __expectString, - Description: __expectString, - Epoch: __expectInt32, - Id: __expectString, - KbNumber: __expectString, - Language: __expectString, - MsrcNumber: __expectString, - MsrcSeverity: __expectString, - Name: __expectString, - Product: __expectString, - ProductFamily: __expectString, - Release: __expectString, - ReleaseDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - Repository: __expectString, - Severity: __expectString, - Title: __expectString, - Vendor: __expectString, - Version: __expectString, - }); -}; -const de_PatchComplianceData = (output, context) => { - return take(output, { - CVEIds: __expectString, - Classification: __expectString, - InstalledTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - KBId: __expectString, - Severity: __expectString, - State: __expectString, - Title: __expectString, - }); -}; -const de_PatchComplianceDataList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_PatchComplianceData(entry, context); - }); - return retVal; -}; -const de_PatchList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_Patch(entry, context); - }); - return retVal; -}; -const de_PatchStatus = (output, context) => { - return take(output, { - ApprovalDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - ComplianceLevel: __expectString, - DeploymentStatus: __expectString, - }); -}; -const de_ResetServiceSettingResult = (output, context) => { - return take(output, { - ServiceSetting: (_) => de_ServiceSetting(_, context), - }); -}; -const de_ResourceComplianceSummaryItem = (output, context) => { - return take(output, { - ComplianceType: __expectString, - CompliantSummary: _json, - ExecutionSummary: (_) => de_ComplianceExecutionSummary(_, context), - NonCompliantSummary: _json, - OverallSeverity: __expectString, - ResourceId: __expectString, - ResourceType: __expectString, - Status: __expectString, - }); -}; -const de_ResourceComplianceSummaryItemList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_ResourceComplianceSummaryItem(entry, context); - }); - return retVal; -}; -const de_ResourceDataSyncItem = (output, context) => { - return take(output, { - LastStatus: __expectString, - LastSuccessfulSyncTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - LastSyncStatusMessage: __expectString, - LastSyncTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - S3Destination: _json, - SyncCreatedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - SyncLastModifiedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - SyncName: __expectString, - SyncSource: _json, - SyncType: __expectString, - }); -}; -const de_ResourceDataSyncItemList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_ResourceDataSyncItem(entry, context); - }); - return retVal; -}; -const de_ReviewInformation = (output, context) => { - return take(output, { - ReviewedTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - Reviewer: __expectString, - Status: __expectString, - }); -}; -const de_ReviewInformationList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_ReviewInformation(entry, context); - }); - return retVal; -}; -const de_SendCommandResult = (output, context) => { - return take(output, { - Command: (_) => de_Command(_, context), - }); -}; -const de_ServiceSetting = (output, context) => { - return take(output, { - ARN: __expectString, - LastModifiedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - LastModifiedUser: __expectString, - SettingId: __expectString, - SettingValue: __expectString, - Status: __expectString, - }); -}; -const de_Session = (output, context) => { - return take(output, { - Details: __expectString, - DocumentName: __expectString, - EndDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - MaxSessionDuration: __expectString, - OutputUrl: _json, - Owner: __expectString, - Reason: __expectString, - SessionId: __expectString, - StartDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - Status: __expectString, - Target: __expectString, - }); -}; -const de_SessionList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_Session(entry, context); - }); - return retVal; -}; -const de_StepExecution = (output, context) => { - return take(output, { - Action: __expectString, - ExecutionEndTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - ExecutionStartTime: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - FailureDetails: _json, - FailureMessage: __expectString, - Inputs: _json, - IsCritical: __expectBoolean, - IsEnd: __expectBoolean, - MaxAttempts: __expectInt32, - NextStep: __expectString, - OnFailure: __expectString, - Outputs: _json, - OverriddenParameters: _json, - ParentStepDetails: _json, - Response: __expectString, - ResponseCode: __expectString, - StepExecutionId: __expectString, - StepName: __expectString, - StepStatus: __expectString, - TargetLocation: _json, - Targets: _json, - TimeoutSeconds: __expectLong, - TriggeredAlarms: _json, - ValidNextSteps: _json, - }); -}; -const de_StepExecutionList = (output, context) => { - const retVal = (output || []) - .filter((e) => e != null) - .map((entry) => { - return de_StepExecution(entry, context); - }); - return retVal; -}; -const de_UpdateAssociationResult = (output, context) => { - return take(output, { - AssociationDescription: (_) => de_AssociationDescription(_, context), - }); -}; -const de_UpdateAssociationStatusResult = (output, context) => { - return take(output, { - AssociationDescription: (_) => de_AssociationDescription(_, context), - }); -}; -const de_UpdateDocumentResult = (output, context) => { - return take(output, { - DocumentDescription: (_) => de_DocumentDescription(_, context), - }); -}; -const de_UpdateMaintenanceWindowTaskResult = (output, context) => { - return take(output, { - AlarmConfiguration: _json, - CutoffBehavior: __expectString, - Description: __expectString, - LoggingInfo: _json, - MaxConcurrency: __expectString, - MaxErrors: __expectString, - Name: __expectString, - Priority: __expectInt32, - ServiceRoleArn: __expectString, - Targets: _json, - TaskArn: __expectString, - TaskInvocationParameters: (_) => de_MaintenanceWindowTaskInvocationParameters(_, context), - TaskParameters: _json, - WindowId: __expectString, - WindowTaskId: __expectString, - }); -}; -const de_UpdatePatchBaselineResult = (output, context) => { - return take(output, { - ApprovalRules: _json, - ApprovedPatches: _json, - ApprovedPatchesComplianceLevel: __expectString, - ApprovedPatchesEnableNonSecurity: __expectBoolean, - BaselineId: __expectString, - CreatedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - Description: __expectString, - GlobalFilters: _json, - ModifiedDate: (_) => __expectNonNull(__parseEpochTimestamp(__expectNumber(_))), - Name: __expectString, - OperatingSystem: __expectString, - RejectedPatches: _json, - RejectedPatchesAction: __expectString, - Sources: _json, - }); -}; -const deserializeMetadata = (output) => ({ - httpStatusCode: output.statusCode, - requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"], - extendedRequestId: output.headers["x-amz-id-2"], - cfId: output.headers["x-amz-cf-id"], -}); -const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body)); -const throwDefaultError = withBaseException(__BaseException); -const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); - const contents = { - protocol, - hostname, - port, - method: "POST", - path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path, - headers, - }; - if (resolvedHostname !== undefined) { - contents.hostname = resolvedHostname; - } - if (body !== undefined) { - contents.body = body; - } - return new __HttpRequest(contents); -}; -function sharedHeaders(operation) { - return { - "content-type": "application/x-amz-json-1.1", - "x-amz-target": `AmazonSSM.${operation}`, - }; -} -const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => { - if (encoded.length) { - return JSON.parse(encoded); - } - return {}; -}); -const parseErrorBody = async (errorBody, context) => { - const value = await parseBody(errorBody, context); - value.message = value.message ?? value.Message; - return value; -}; -const loadRestJsonErrorCode = (output, data) => { - const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()); - const sanitizeErrorCode = (rawValue) => { - let cleanValue = rawValue; - if (typeof cleanValue === "number") { - cleanValue = cleanValue.toString(); - } - if (cleanValue.indexOf(",") >= 0) { - cleanValue = cleanValue.split(",")[0]; - } - if (cleanValue.indexOf(":") >= 0) { - cleanValue = cleanValue.split(":")[0]; - } - if (cleanValue.indexOf("#") >= 0) { - cleanValue = cleanValue.split("#")[1]; - } - return cleanValue; - }; - const headerKey = findKey(output.headers, "x-amzn-errortype"); - if (headerKey !== undefined) { - return sanitizeErrorCode(output.headers[headerKey]); - } - if (data.code !== undefined) { - return sanitizeErrorCode(data.code); - } - if (data["__type"] !== undefined) { - return sanitizeErrorCode(data["__type"]); - } -}; diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/runtimeConfig.browser.js b/node_modules/@aws-sdk/client-ssm/dist-es/runtimeConfig.browser.js deleted file mode 100644 index 0794d655..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/runtimeConfig.browser.js +++ /dev/null @@ -1,34 +0,0 @@ -import packageInfo from "../package.json"; -import { Sha256 } from "@aws-crypto/sha256-browser"; -import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; -import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@smithy/config-resolver"; -import { FetchHttpHandler as RequestHandler, streamCollector } from "@smithy/fetch-http-handler"; -import { invalidProvider } from "@smithy/invalid-dependency"; -import { calculateBodyLength } from "@smithy/util-body-length-browser"; -import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/util-retry"; -import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared"; -import { loadConfigsForDefaultMode } from "@smithy/smithy-client"; -import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-browser"; -export const getRuntimeConfig = (config) => { - const defaultsMode = resolveDefaultsModeConfig(config); - const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); - const clientSharedValues = getSharedRuntimeConfig(config); - return { - ...clientSharedValues, - ...config, - runtime: "browser", - defaultsMode, - bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))), - defaultUserAgentProvider: config?.defaultUserAgentProvider ?? - defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), - maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS, - region: config?.region ?? invalidProvider("Region is missing"), - requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider), - retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE), - sha256: config?.sha256 ?? Sha256, - streamCollector: config?.streamCollector ?? streamCollector, - useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)), - useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)), - }; -}; diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/runtimeConfig.js b/node_modules/@aws-sdk/client-ssm/dist-es/runtimeConfig.js deleted file mode 100644 index 9d18b003..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/runtimeConfig.js +++ /dev/null @@ -1,45 +0,0 @@ -import packageInfo from "../package.json"; -import { decorateDefaultCredentialProvider } from "@aws-sdk/client-sts"; -import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; -import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; -import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; -import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver"; -import { Hash } from "@smithy/hash-node"; -import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry"; -import { loadConfig as loadNodeConfig } from "@smithy/node-config-provider"; -import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler"; -import { calculateBodyLength } from "@smithy/util-body-length-node"; -import { DEFAULT_RETRY_MODE } from "@smithy/util-retry"; -import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared"; -import { loadConfigsForDefaultMode } from "@smithy/smithy-client"; -import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node"; -import { emitWarningIfUnsupportedVersion } from "@smithy/smithy-client"; -export const getRuntimeConfig = (config) => { - emitWarningIfUnsupportedVersion(process.version); - const defaultsMode = resolveDefaultsModeConfig(config); - const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); - const clientSharedValues = getSharedRuntimeConfig(config); - awsCheckVersion(process.version); - return { - ...clientSharedValues, - ...config, - runtime: "node", - defaultsMode, - bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), - defaultUserAgentProvider: config?.defaultUserAgentProvider ?? - defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), - maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), - region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), - requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider), - retryMode: config?.retryMode ?? - loadNodeConfig({ - ...NODE_RETRY_MODE_CONFIG_OPTIONS, - default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE, - }), - sha256: config?.sha256 ?? Hash.bind(null, "sha256"), - streamCollector: config?.streamCollector ?? streamCollector, - useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), - useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), - }; -}; diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/runtimeConfig.native.js b/node_modules/@aws-sdk/client-ssm/dist-es/runtimeConfig.native.js deleted file mode 100644 index 0b546952..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/runtimeConfig.native.js +++ /dev/null @@ -1,11 +0,0 @@ -import { Sha256 } from "@aws-crypto/sha256-js"; -import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser"; -export const getRuntimeConfig = (config) => { - const browserDefaults = getBrowserRuntimeConfig(config); - return { - ...browserDefaults, - ...config, - runtime: "react-native", - sha256: config?.sha256 ?? Sha256, - }; -}; diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/runtimeConfig.shared.js b/node_modules/@aws-sdk/client-ssm/dist-es/runtimeConfig.shared.js deleted file mode 100644 index a5edd4ea..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/runtimeConfig.shared.js +++ /dev/null @@ -1,20 +0,0 @@ -import { NoOpLogger } from "@smithy/smithy-client"; -import { parseUrl } from "@smithy/url-parser"; -import { fromBase64, toBase64 } from "@smithy/util-base64"; -import { fromUtf8, toUtf8 } from "@smithy/util-utf8"; -import { defaultEndpointResolver } from "./endpoint/endpointResolver"; -export const getRuntimeConfig = (config) => { - return { - apiVersion: "2014-11-06", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "SSM", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, - }; -}; diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/runtimeExtensions.js b/node_modules/@aws-sdk/client-ssm/dist-es/runtimeExtensions.js deleted file mode 100644 index f68de417..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/runtimeExtensions.js +++ /dev/null @@ -1,18 +0,0 @@ -import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, } from "@aws-sdk/region-config-resolver"; -import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http"; -import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client"; -const asPartial = (t) => t; -export const resolveRuntimeExtensions = (runtimeConfig, extensions) => { - const extensionConfiguration = { - ...asPartial(getAwsRegionExtensionConfiguration(runtimeConfig)), - ...asPartial(getDefaultExtensionConfiguration(runtimeConfig)), - ...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)), - }; - extensions.forEach((extension) => extension.configure(extensionConfiguration)); - return { - ...runtimeConfig, - ...resolveAwsRegionExtensionConfiguration(extensionConfiguration), - ...resolveDefaultRuntimeConfig(extensionConfiguration), - ...resolveHttpHandlerRuntimeConfig(extensionConfiguration), - }; -}; diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/waiters/index.js b/node_modules/@aws-sdk/client-ssm/dist-es/waiters/index.js deleted file mode 100644 index 88427106..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/waiters/index.js +++ /dev/null @@ -1 +0,0 @@ -export * from "./waitForCommandExecuted"; diff --git a/node_modules/@aws-sdk/client-ssm/dist-es/waiters/waitForCommandExecuted.js b/node_modules/@aws-sdk/client-ssm/dist-es/waiters/waitForCommandExecuted.js deleted file mode 100644 index 7ab7764b..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-es/waiters/waitForCommandExecuted.js +++ /dev/null @@ -1,97 +0,0 @@ -import { checkExceptions, createWaiter, WaiterState } from "@smithy/util-waiter"; -import { GetCommandInvocationCommand } from "../commands/GetCommandInvocationCommand"; -const checkState = async (client, input) => { - let reason; - try { - const result = await client.send(new GetCommandInvocationCommand(input)); - reason = result; - try { - const returnComparator = () => { - return result.Status; - }; - if (returnComparator() === "Pending") { - return { state: WaiterState.RETRY, reason }; - } - } - catch (e) { } - try { - const returnComparator = () => { - return result.Status; - }; - if (returnComparator() === "InProgress") { - return { state: WaiterState.RETRY, reason }; - } - } - catch (e) { } - try { - const returnComparator = () => { - return result.Status; - }; - if (returnComparator() === "Delayed") { - return { state: WaiterState.RETRY, reason }; - } - } - catch (e) { } - try { - const returnComparator = () => { - return result.Status; - }; - if (returnComparator() === "Success") { - return { state: WaiterState.SUCCESS, reason }; - } - } - catch (e) { } - try { - const returnComparator = () => { - return result.Status; - }; - if (returnComparator() === "Cancelled") { - return { state: WaiterState.FAILURE, reason }; - } - } - catch (e) { } - try { - const returnComparator = () => { - return result.Status; - }; - if (returnComparator() === "TimedOut") { - return { state: WaiterState.FAILURE, reason }; - } - } - catch (e) { } - try { - const returnComparator = () => { - return result.Status; - }; - if (returnComparator() === "Failed") { - return { state: WaiterState.FAILURE, reason }; - } - } - catch (e) { } - try { - const returnComparator = () => { - return result.Status; - }; - if (returnComparator() === "Cancelling") { - return { state: WaiterState.FAILURE, reason }; - } - } - catch (e) { } - } - catch (exception) { - reason = exception; - if (exception.name && exception.name == "InvocationDoesNotExist") { - return { state: WaiterState.RETRY, reason }; - } - } - return { state: WaiterState.RETRY, reason }; -}; -export const waitForCommandExecuted = async (params, input) => { - const serviceDefaults = { minDelay: 5, maxDelay: 120 }; - return createWaiter({ ...serviceDefaults, ...params }, input, checkState); -}; -export const waitUntilCommandExecuted = async (params, input) => { - const serviceDefaults = { minDelay: 5, maxDelay: 120 }; - const result = await createWaiter({ ...serviceDefaults, ...params }, input, checkState); - return checkExceptions(result); -}; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/SSM.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/SSM.d.ts deleted file mode 100644 index 9b54b8ac..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/SSM.d.ts +++ /dev/null @@ -1,1018 +0,0 @@ -import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types"; -import { AddTagsToResourceCommandInput, AddTagsToResourceCommandOutput } from "./commands/AddTagsToResourceCommand"; -import { AssociateOpsItemRelatedItemCommandInput, AssociateOpsItemRelatedItemCommandOutput } from "./commands/AssociateOpsItemRelatedItemCommand"; -import { CancelCommandCommandInput, CancelCommandCommandOutput } from "./commands/CancelCommandCommand"; -import { CancelMaintenanceWindowExecutionCommandInput, CancelMaintenanceWindowExecutionCommandOutput } from "./commands/CancelMaintenanceWindowExecutionCommand"; -import { CreateActivationCommandInput, CreateActivationCommandOutput } from "./commands/CreateActivationCommand"; -import { CreateAssociationBatchCommandInput, CreateAssociationBatchCommandOutput } from "./commands/CreateAssociationBatchCommand"; -import { CreateAssociationCommandInput, CreateAssociationCommandOutput } from "./commands/CreateAssociationCommand"; -import { CreateDocumentCommandInput, CreateDocumentCommandOutput } from "./commands/CreateDocumentCommand"; -import { CreateMaintenanceWindowCommandInput, CreateMaintenanceWindowCommandOutput } from "./commands/CreateMaintenanceWindowCommand"; -import { CreateOpsItemCommandInput, CreateOpsItemCommandOutput } from "./commands/CreateOpsItemCommand"; -import { CreateOpsMetadataCommandInput, CreateOpsMetadataCommandOutput } from "./commands/CreateOpsMetadataCommand"; -import { CreatePatchBaselineCommandInput, CreatePatchBaselineCommandOutput } from "./commands/CreatePatchBaselineCommand"; -import { CreateResourceDataSyncCommandInput, CreateResourceDataSyncCommandOutput } from "./commands/CreateResourceDataSyncCommand"; -import { DeleteActivationCommandInput, DeleteActivationCommandOutput } from "./commands/DeleteActivationCommand"; -import { DeleteAssociationCommandInput, DeleteAssociationCommandOutput } from "./commands/DeleteAssociationCommand"; -import { DeleteDocumentCommandInput, DeleteDocumentCommandOutput } from "./commands/DeleteDocumentCommand"; -import { DeleteInventoryCommandInput, DeleteInventoryCommandOutput } from "./commands/DeleteInventoryCommand"; -import { DeleteMaintenanceWindowCommandInput, DeleteMaintenanceWindowCommandOutput } from "./commands/DeleteMaintenanceWindowCommand"; -import { DeleteOpsItemCommandInput, DeleteOpsItemCommandOutput } from "./commands/DeleteOpsItemCommand"; -import { DeleteOpsMetadataCommandInput, DeleteOpsMetadataCommandOutput } from "./commands/DeleteOpsMetadataCommand"; -import { DeleteParameterCommandInput, DeleteParameterCommandOutput } from "./commands/DeleteParameterCommand"; -import { DeleteParametersCommandInput, DeleteParametersCommandOutput } from "./commands/DeleteParametersCommand"; -import { DeletePatchBaselineCommandInput, DeletePatchBaselineCommandOutput } from "./commands/DeletePatchBaselineCommand"; -import { DeleteResourceDataSyncCommandInput, DeleteResourceDataSyncCommandOutput } from "./commands/DeleteResourceDataSyncCommand"; -import { DeleteResourcePolicyCommandInput, DeleteResourcePolicyCommandOutput } from "./commands/DeleteResourcePolicyCommand"; -import { DeregisterManagedInstanceCommandInput, DeregisterManagedInstanceCommandOutput } from "./commands/DeregisterManagedInstanceCommand"; -import { DeregisterPatchBaselineForPatchGroupCommandInput, DeregisterPatchBaselineForPatchGroupCommandOutput } from "./commands/DeregisterPatchBaselineForPatchGroupCommand"; -import { DeregisterTargetFromMaintenanceWindowCommandInput, DeregisterTargetFromMaintenanceWindowCommandOutput } from "./commands/DeregisterTargetFromMaintenanceWindowCommand"; -import { DeregisterTaskFromMaintenanceWindowCommandInput, DeregisterTaskFromMaintenanceWindowCommandOutput } from "./commands/DeregisterTaskFromMaintenanceWindowCommand"; -import { DescribeActivationsCommandInput, DescribeActivationsCommandOutput } from "./commands/DescribeActivationsCommand"; -import { DescribeAssociationCommandInput, DescribeAssociationCommandOutput } from "./commands/DescribeAssociationCommand"; -import { DescribeAssociationExecutionsCommandInput, DescribeAssociationExecutionsCommandOutput } from "./commands/DescribeAssociationExecutionsCommand"; -import { DescribeAssociationExecutionTargetsCommandInput, DescribeAssociationExecutionTargetsCommandOutput } from "./commands/DescribeAssociationExecutionTargetsCommand"; -import { DescribeAutomationExecutionsCommandInput, DescribeAutomationExecutionsCommandOutput } from "./commands/DescribeAutomationExecutionsCommand"; -import { DescribeAutomationStepExecutionsCommandInput, DescribeAutomationStepExecutionsCommandOutput } from "./commands/DescribeAutomationStepExecutionsCommand"; -import { DescribeAvailablePatchesCommandInput, DescribeAvailablePatchesCommandOutput } from "./commands/DescribeAvailablePatchesCommand"; -import { DescribeDocumentCommandInput, DescribeDocumentCommandOutput } from "./commands/DescribeDocumentCommand"; -import { DescribeDocumentPermissionCommandInput, DescribeDocumentPermissionCommandOutput } from "./commands/DescribeDocumentPermissionCommand"; -import { DescribeEffectiveInstanceAssociationsCommandInput, DescribeEffectiveInstanceAssociationsCommandOutput } from "./commands/DescribeEffectiveInstanceAssociationsCommand"; -import { DescribeEffectivePatchesForPatchBaselineCommandInput, DescribeEffectivePatchesForPatchBaselineCommandOutput } from "./commands/DescribeEffectivePatchesForPatchBaselineCommand"; -import { DescribeInstanceAssociationsStatusCommandInput, DescribeInstanceAssociationsStatusCommandOutput } from "./commands/DescribeInstanceAssociationsStatusCommand"; -import { DescribeInstanceInformationCommandInput, DescribeInstanceInformationCommandOutput } from "./commands/DescribeInstanceInformationCommand"; -import { DescribeInstancePatchesCommandInput, DescribeInstancePatchesCommandOutput } from "./commands/DescribeInstancePatchesCommand"; -import { DescribeInstancePatchStatesCommandInput, DescribeInstancePatchStatesCommandOutput } from "./commands/DescribeInstancePatchStatesCommand"; -import { DescribeInstancePatchStatesForPatchGroupCommandInput, DescribeInstancePatchStatesForPatchGroupCommandOutput } from "./commands/DescribeInstancePatchStatesForPatchGroupCommand"; -import { DescribeInventoryDeletionsCommandInput, DescribeInventoryDeletionsCommandOutput } from "./commands/DescribeInventoryDeletionsCommand"; -import { DescribeMaintenanceWindowExecutionsCommandInput, DescribeMaintenanceWindowExecutionsCommandOutput } from "./commands/DescribeMaintenanceWindowExecutionsCommand"; -import { DescribeMaintenanceWindowExecutionTaskInvocationsCommandInput, DescribeMaintenanceWindowExecutionTaskInvocationsCommandOutput } from "./commands/DescribeMaintenanceWindowExecutionTaskInvocationsCommand"; -import { DescribeMaintenanceWindowExecutionTasksCommandInput, DescribeMaintenanceWindowExecutionTasksCommandOutput } from "./commands/DescribeMaintenanceWindowExecutionTasksCommand"; -import { DescribeMaintenanceWindowScheduleCommandInput, DescribeMaintenanceWindowScheduleCommandOutput } from "./commands/DescribeMaintenanceWindowScheduleCommand"; -import { DescribeMaintenanceWindowsCommandInput, DescribeMaintenanceWindowsCommandOutput } from "./commands/DescribeMaintenanceWindowsCommand"; -import { DescribeMaintenanceWindowsForTargetCommandInput, DescribeMaintenanceWindowsForTargetCommandOutput } from "./commands/DescribeMaintenanceWindowsForTargetCommand"; -import { DescribeMaintenanceWindowTargetsCommandInput, DescribeMaintenanceWindowTargetsCommandOutput } from "./commands/DescribeMaintenanceWindowTargetsCommand"; -import { DescribeMaintenanceWindowTasksCommandInput, DescribeMaintenanceWindowTasksCommandOutput } from "./commands/DescribeMaintenanceWindowTasksCommand"; -import { DescribeOpsItemsCommandInput, DescribeOpsItemsCommandOutput } from "./commands/DescribeOpsItemsCommand"; -import { DescribeParametersCommandInput, DescribeParametersCommandOutput } from "./commands/DescribeParametersCommand"; -import { DescribePatchBaselinesCommandInput, DescribePatchBaselinesCommandOutput } from "./commands/DescribePatchBaselinesCommand"; -import { DescribePatchGroupsCommandInput, DescribePatchGroupsCommandOutput } from "./commands/DescribePatchGroupsCommand"; -import { DescribePatchGroupStateCommandInput, DescribePatchGroupStateCommandOutput } from "./commands/DescribePatchGroupStateCommand"; -import { DescribePatchPropertiesCommandInput, DescribePatchPropertiesCommandOutput } from "./commands/DescribePatchPropertiesCommand"; -import { DescribeSessionsCommandInput, DescribeSessionsCommandOutput } from "./commands/DescribeSessionsCommand"; -import { DisassociateOpsItemRelatedItemCommandInput, DisassociateOpsItemRelatedItemCommandOutput } from "./commands/DisassociateOpsItemRelatedItemCommand"; -import { GetAutomationExecutionCommandInput, GetAutomationExecutionCommandOutput } from "./commands/GetAutomationExecutionCommand"; -import { GetCalendarStateCommandInput, GetCalendarStateCommandOutput } from "./commands/GetCalendarStateCommand"; -import { GetCommandInvocationCommandInput, GetCommandInvocationCommandOutput } from "./commands/GetCommandInvocationCommand"; -import { GetConnectionStatusCommandInput, GetConnectionStatusCommandOutput } from "./commands/GetConnectionStatusCommand"; -import { GetDefaultPatchBaselineCommandInput, GetDefaultPatchBaselineCommandOutput } from "./commands/GetDefaultPatchBaselineCommand"; -import { GetDeployablePatchSnapshotForInstanceCommandInput, GetDeployablePatchSnapshotForInstanceCommandOutput } from "./commands/GetDeployablePatchSnapshotForInstanceCommand"; -import { GetDocumentCommandInput, GetDocumentCommandOutput } from "./commands/GetDocumentCommand"; -import { GetInventoryCommandInput, GetInventoryCommandOutput } from "./commands/GetInventoryCommand"; -import { GetInventorySchemaCommandInput, GetInventorySchemaCommandOutput } from "./commands/GetInventorySchemaCommand"; -import { GetMaintenanceWindowCommandInput, GetMaintenanceWindowCommandOutput } from "./commands/GetMaintenanceWindowCommand"; -import { GetMaintenanceWindowExecutionCommandInput, GetMaintenanceWindowExecutionCommandOutput } from "./commands/GetMaintenanceWindowExecutionCommand"; -import { GetMaintenanceWindowExecutionTaskCommandInput, GetMaintenanceWindowExecutionTaskCommandOutput } from "./commands/GetMaintenanceWindowExecutionTaskCommand"; -import { GetMaintenanceWindowExecutionTaskInvocationCommandInput, GetMaintenanceWindowExecutionTaskInvocationCommandOutput } from "./commands/GetMaintenanceWindowExecutionTaskInvocationCommand"; -import { GetMaintenanceWindowTaskCommandInput, GetMaintenanceWindowTaskCommandOutput } from "./commands/GetMaintenanceWindowTaskCommand"; -import { GetOpsItemCommandInput, GetOpsItemCommandOutput } from "./commands/GetOpsItemCommand"; -import { GetOpsMetadataCommandInput, GetOpsMetadataCommandOutput } from "./commands/GetOpsMetadataCommand"; -import { GetOpsSummaryCommandInput, GetOpsSummaryCommandOutput } from "./commands/GetOpsSummaryCommand"; -import { GetParameterCommandInput, GetParameterCommandOutput } from "./commands/GetParameterCommand"; -import { GetParameterHistoryCommandInput, GetParameterHistoryCommandOutput } from "./commands/GetParameterHistoryCommand"; -import { GetParametersByPathCommandInput, GetParametersByPathCommandOutput } from "./commands/GetParametersByPathCommand"; -import { GetParametersCommandInput, GetParametersCommandOutput } from "./commands/GetParametersCommand"; -import { GetPatchBaselineCommandInput, GetPatchBaselineCommandOutput } from "./commands/GetPatchBaselineCommand"; -import { GetPatchBaselineForPatchGroupCommandInput, GetPatchBaselineForPatchGroupCommandOutput } from "./commands/GetPatchBaselineForPatchGroupCommand"; -import { GetResourcePoliciesCommandInput, GetResourcePoliciesCommandOutput } from "./commands/GetResourcePoliciesCommand"; -import { GetServiceSettingCommandInput, GetServiceSettingCommandOutput } from "./commands/GetServiceSettingCommand"; -import { LabelParameterVersionCommandInput, LabelParameterVersionCommandOutput } from "./commands/LabelParameterVersionCommand"; -import { ListAssociationsCommandInput, ListAssociationsCommandOutput } from "./commands/ListAssociationsCommand"; -import { ListAssociationVersionsCommandInput, ListAssociationVersionsCommandOutput } from "./commands/ListAssociationVersionsCommand"; -import { ListCommandInvocationsCommandInput, ListCommandInvocationsCommandOutput } from "./commands/ListCommandInvocationsCommand"; -import { ListCommandsCommandInput, ListCommandsCommandOutput } from "./commands/ListCommandsCommand"; -import { ListComplianceItemsCommandInput, ListComplianceItemsCommandOutput } from "./commands/ListComplianceItemsCommand"; -import { ListComplianceSummariesCommandInput, ListComplianceSummariesCommandOutput } from "./commands/ListComplianceSummariesCommand"; -import { ListDocumentMetadataHistoryCommandInput, ListDocumentMetadataHistoryCommandOutput } from "./commands/ListDocumentMetadataHistoryCommand"; -import { ListDocumentsCommandInput, ListDocumentsCommandOutput } from "./commands/ListDocumentsCommand"; -import { ListDocumentVersionsCommandInput, ListDocumentVersionsCommandOutput } from "./commands/ListDocumentVersionsCommand"; -import { ListInventoryEntriesCommandInput, ListInventoryEntriesCommandOutput } from "./commands/ListInventoryEntriesCommand"; -import { ListOpsItemEventsCommandInput, ListOpsItemEventsCommandOutput } from "./commands/ListOpsItemEventsCommand"; -import { ListOpsItemRelatedItemsCommandInput, ListOpsItemRelatedItemsCommandOutput } from "./commands/ListOpsItemRelatedItemsCommand"; -import { ListOpsMetadataCommandInput, ListOpsMetadataCommandOutput } from "./commands/ListOpsMetadataCommand"; -import { ListResourceComplianceSummariesCommandInput, ListResourceComplianceSummariesCommandOutput } from "./commands/ListResourceComplianceSummariesCommand"; -import { ListResourceDataSyncCommandInput, ListResourceDataSyncCommandOutput } from "./commands/ListResourceDataSyncCommand"; -import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand"; -import { ModifyDocumentPermissionCommandInput, ModifyDocumentPermissionCommandOutput } from "./commands/ModifyDocumentPermissionCommand"; -import { PutComplianceItemsCommandInput, PutComplianceItemsCommandOutput } from "./commands/PutComplianceItemsCommand"; -import { PutInventoryCommandInput, PutInventoryCommandOutput } from "./commands/PutInventoryCommand"; -import { PutParameterCommandInput, PutParameterCommandOutput } from "./commands/PutParameterCommand"; -import { PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput } from "./commands/PutResourcePolicyCommand"; -import { RegisterDefaultPatchBaselineCommandInput, RegisterDefaultPatchBaselineCommandOutput } from "./commands/RegisterDefaultPatchBaselineCommand"; -import { RegisterPatchBaselineForPatchGroupCommandInput, RegisterPatchBaselineForPatchGroupCommandOutput } from "./commands/RegisterPatchBaselineForPatchGroupCommand"; -import { RegisterTargetWithMaintenanceWindowCommandInput, RegisterTargetWithMaintenanceWindowCommandOutput } from "./commands/RegisterTargetWithMaintenanceWindowCommand"; -import { RegisterTaskWithMaintenanceWindowCommandInput, RegisterTaskWithMaintenanceWindowCommandOutput } from "./commands/RegisterTaskWithMaintenanceWindowCommand"; -import { RemoveTagsFromResourceCommandInput, RemoveTagsFromResourceCommandOutput } from "./commands/RemoveTagsFromResourceCommand"; -import { ResetServiceSettingCommandInput, ResetServiceSettingCommandOutput } from "./commands/ResetServiceSettingCommand"; -import { ResumeSessionCommandInput, ResumeSessionCommandOutput } from "./commands/ResumeSessionCommand"; -import { SendAutomationSignalCommandInput, SendAutomationSignalCommandOutput } from "./commands/SendAutomationSignalCommand"; -import { SendCommandCommandInput, SendCommandCommandOutput } from "./commands/SendCommandCommand"; -import { StartAssociationsOnceCommandInput, StartAssociationsOnceCommandOutput } from "./commands/StartAssociationsOnceCommand"; -import { StartAutomationExecutionCommandInput, StartAutomationExecutionCommandOutput } from "./commands/StartAutomationExecutionCommand"; -import { StartChangeRequestExecutionCommandInput, StartChangeRequestExecutionCommandOutput } from "./commands/StartChangeRequestExecutionCommand"; -import { StartSessionCommandInput, StartSessionCommandOutput } from "./commands/StartSessionCommand"; -import { StopAutomationExecutionCommandInput, StopAutomationExecutionCommandOutput } from "./commands/StopAutomationExecutionCommand"; -import { TerminateSessionCommandInput, TerminateSessionCommandOutput } from "./commands/TerminateSessionCommand"; -import { UnlabelParameterVersionCommandInput, UnlabelParameterVersionCommandOutput } from "./commands/UnlabelParameterVersionCommand"; -import { UpdateAssociationCommandInput, UpdateAssociationCommandOutput } from "./commands/UpdateAssociationCommand"; -import { UpdateAssociationStatusCommandInput, UpdateAssociationStatusCommandOutput } from "./commands/UpdateAssociationStatusCommand"; -import { UpdateDocumentCommandInput, UpdateDocumentCommandOutput } from "./commands/UpdateDocumentCommand"; -import { UpdateDocumentDefaultVersionCommandInput, UpdateDocumentDefaultVersionCommandOutput } from "./commands/UpdateDocumentDefaultVersionCommand"; -import { UpdateDocumentMetadataCommandInput, UpdateDocumentMetadataCommandOutput } from "./commands/UpdateDocumentMetadataCommand"; -import { UpdateMaintenanceWindowCommandInput, UpdateMaintenanceWindowCommandOutput } from "./commands/UpdateMaintenanceWindowCommand"; -import { UpdateMaintenanceWindowTargetCommandInput, UpdateMaintenanceWindowTargetCommandOutput } from "./commands/UpdateMaintenanceWindowTargetCommand"; -import { UpdateMaintenanceWindowTaskCommandInput, UpdateMaintenanceWindowTaskCommandOutput } from "./commands/UpdateMaintenanceWindowTaskCommand"; -import { UpdateManagedInstanceRoleCommandInput, UpdateManagedInstanceRoleCommandOutput } from "./commands/UpdateManagedInstanceRoleCommand"; -import { UpdateOpsItemCommandInput, UpdateOpsItemCommandOutput } from "./commands/UpdateOpsItemCommand"; -import { UpdateOpsMetadataCommandInput, UpdateOpsMetadataCommandOutput } from "./commands/UpdateOpsMetadataCommand"; -import { UpdatePatchBaselineCommandInput, UpdatePatchBaselineCommandOutput } from "./commands/UpdatePatchBaselineCommand"; -import { UpdateResourceDataSyncCommandInput, UpdateResourceDataSyncCommandOutput } from "./commands/UpdateResourceDataSyncCommand"; -import { UpdateServiceSettingCommandInput, UpdateServiceSettingCommandOutput } from "./commands/UpdateServiceSettingCommand"; -import { SSMClient } from "./SSMClient"; -export interface SSM { - /** - * @see {@link AddTagsToResourceCommand} - */ - addTagsToResource(args: AddTagsToResourceCommandInput, options?: __HttpHandlerOptions): Promise; - addTagsToResource(args: AddTagsToResourceCommandInput, cb: (err: any, data?: AddTagsToResourceCommandOutput) => void): void; - addTagsToResource(args: AddTagsToResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AddTagsToResourceCommandOutput) => void): void; - /** - * @see {@link AssociateOpsItemRelatedItemCommand} - */ - associateOpsItemRelatedItem(args: AssociateOpsItemRelatedItemCommandInput, options?: __HttpHandlerOptions): Promise; - associateOpsItemRelatedItem(args: AssociateOpsItemRelatedItemCommandInput, cb: (err: any, data?: AssociateOpsItemRelatedItemCommandOutput) => void): void; - associateOpsItemRelatedItem(args: AssociateOpsItemRelatedItemCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AssociateOpsItemRelatedItemCommandOutput) => void): void; - /** - * @see {@link CancelCommandCommand} - */ - cancelCommand(args: CancelCommandCommandInput, options?: __HttpHandlerOptions): Promise; - cancelCommand(args: CancelCommandCommandInput, cb: (err: any, data?: CancelCommandCommandOutput) => void): void; - cancelCommand(args: CancelCommandCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CancelCommandCommandOutput) => void): void; - /** - * @see {@link CancelMaintenanceWindowExecutionCommand} - */ - cancelMaintenanceWindowExecution(args: CancelMaintenanceWindowExecutionCommandInput, options?: __HttpHandlerOptions): Promise; - cancelMaintenanceWindowExecution(args: CancelMaintenanceWindowExecutionCommandInput, cb: (err: any, data?: CancelMaintenanceWindowExecutionCommandOutput) => void): void; - cancelMaintenanceWindowExecution(args: CancelMaintenanceWindowExecutionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CancelMaintenanceWindowExecutionCommandOutput) => void): void; - /** - * @see {@link CreateActivationCommand} - */ - createActivation(args: CreateActivationCommandInput, options?: __HttpHandlerOptions): Promise; - createActivation(args: CreateActivationCommandInput, cb: (err: any, data?: CreateActivationCommandOutput) => void): void; - createActivation(args: CreateActivationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateActivationCommandOutput) => void): void; - /** - * @see {@link CreateAssociationCommand} - */ - createAssociation(args: CreateAssociationCommandInput, options?: __HttpHandlerOptions): Promise; - createAssociation(args: CreateAssociationCommandInput, cb: (err: any, data?: CreateAssociationCommandOutput) => void): void; - createAssociation(args: CreateAssociationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateAssociationCommandOutput) => void): void; - /** - * @see {@link CreateAssociationBatchCommand} - */ - createAssociationBatch(args: CreateAssociationBatchCommandInput, options?: __HttpHandlerOptions): Promise; - createAssociationBatch(args: CreateAssociationBatchCommandInput, cb: (err: any, data?: CreateAssociationBatchCommandOutput) => void): void; - createAssociationBatch(args: CreateAssociationBatchCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateAssociationBatchCommandOutput) => void): void; - /** - * @see {@link CreateDocumentCommand} - */ - createDocument(args: CreateDocumentCommandInput, options?: __HttpHandlerOptions): Promise; - createDocument(args: CreateDocumentCommandInput, cb: (err: any, data?: CreateDocumentCommandOutput) => void): void; - createDocument(args: CreateDocumentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateDocumentCommandOutput) => void): void; - /** - * @see {@link CreateMaintenanceWindowCommand} - */ - createMaintenanceWindow(args: CreateMaintenanceWindowCommandInput, options?: __HttpHandlerOptions): Promise; - createMaintenanceWindow(args: CreateMaintenanceWindowCommandInput, cb: (err: any, data?: CreateMaintenanceWindowCommandOutput) => void): void; - createMaintenanceWindow(args: CreateMaintenanceWindowCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateMaintenanceWindowCommandOutput) => void): void; - /** - * @see {@link CreateOpsItemCommand} - */ - createOpsItem(args: CreateOpsItemCommandInput, options?: __HttpHandlerOptions): Promise; - createOpsItem(args: CreateOpsItemCommandInput, cb: (err: any, data?: CreateOpsItemCommandOutput) => void): void; - createOpsItem(args: CreateOpsItemCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateOpsItemCommandOutput) => void): void; - /** - * @see {@link CreateOpsMetadataCommand} - */ - createOpsMetadata(args: CreateOpsMetadataCommandInput, options?: __HttpHandlerOptions): Promise; - createOpsMetadata(args: CreateOpsMetadataCommandInput, cb: (err: any, data?: CreateOpsMetadataCommandOutput) => void): void; - createOpsMetadata(args: CreateOpsMetadataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateOpsMetadataCommandOutput) => void): void; - /** - * @see {@link CreatePatchBaselineCommand} - */ - createPatchBaseline(args: CreatePatchBaselineCommandInput, options?: __HttpHandlerOptions): Promise; - createPatchBaseline(args: CreatePatchBaselineCommandInput, cb: (err: any, data?: CreatePatchBaselineCommandOutput) => void): void; - createPatchBaseline(args: CreatePatchBaselineCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreatePatchBaselineCommandOutput) => void): void; - /** - * @see {@link CreateResourceDataSyncCommand} - */ - createResourceDataSync(args: CreateResourceDataSyncCommandInput, options?: __HttpHandlerOptions): Promise; - createResourceDataSync(args: CreateResourceDataSyncCommandInput, cb: (err: any, data?: CreateResourceDataSyncCommandOutput) => void): void; - createResourceDataSync(args: CreateResourceDataSyncCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: CreateResourceDataSyncCommandOutput) => void): void; - /** - * @see {@link DeleteActivationCommand} - */ - deleteActivation(args: DeleteActivationCommandInput, options?: __HttpHandlerOptions): Promise; - deleteActivation(args: DeleteActivationCommandInput, cb: (err: any, data?: DeleteActivationCommandOutput) => void): void; - deleteActivation(args: DeleteActivationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteActivationCommandOutput) => void): void; - /** - * @see {@link DeleteAssociationCommand} - */ - deleteAssociation(args: DeleteAssociationCommandInput, options?: __HttpHandlerOptions): Promise; - deleteAssociation(args: DeleteAssociationCommandInput, cb: (err: any, data?: DeleteAssociationCommandOutput) => void): void; - deleteAssociation(args: DeleteAssociationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteAssociationCommandOutput) => void): void; - /** - * @see {@link DeleteDocumentCommand} - */ - deleteDocument(args: DeleteDocumentCommandInput, options?: __HttpHandlerOptions): Promise; - deleteDocument(args: DeleteDocumentCommandInput, cb: (err: any, data?: DeleteDocumentCommandOutput) => void): void; - deleteDocument(args: DeleteDocumentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteDocumentCommandOutput) => void): void; - /** - * @see {@link DeleteInventoryCommand} - */ - deleteInventory(args: DeleteInventoryCommandInput, options?: __HttpHandlerOptions): Promise; - deleteInventory(args: DeleteInventoryCommandInput, cb: (err: any, data?: DeleteInventoryCommandOutput) => void): void; - deleteInventory(args: DeleteInventoryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteInventoryCommandOutput) => void): void; - /** - * @see {@link DeleteMaintenanceWindowCommand} - */ - deleteMaintenanceWindow(args: DeleteMaintenanceWindowCommandInput, options?: __HttpHandlerOptions): Promise; - deleteMaintenanceWindow(args: DeleteMaintenanceWindowCommandInput, cb: (err: any, data?: DeleteMaintenanceWindowCommandOutput) => void): void; - deleteMaintenanceWindow(args: DeleteMaintenanceWindowCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteMaintenanceWindowCommandOutput) => void): void; - /** - * @see {@link DeleteOpsItemCommand} - */ - deleteOpsItem(args: DeleteOpsItemCommandInput, options?: __HttpHandlerOptions): Promise; - deleteOpsItem(args: DeleteOpsItemCommandInput, cb: (err: any, data?: DeleteOpsItemCommandOutput) => void): void; - deleteOpsItem(args: DeleteOpsItemCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteOpsItemCommandOutput) => void): void; - /** - * @see {@link DeleteOpsMetadataCommand} - */ - deleteOpsMetadata(args: DeleteOpsMetadataCommandInput, options?: __HttpHandlerOptions): Promise; - deleteOpsMetadata(args: DeleteOpsMetadataCommandInput, cb: (err: any, data?: DeleteOpsMetadataCommandOutput) => void): void; - deleteOpsMetadata(args: DeleteOpsMetadataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteOpsMetadataCommandOutput) => void): void; - /** - * @see {@link DeleteParameterCommand} - */ - deleteParameter(args: DeleteParameterCommandInput, options?: __HttpHandlerOptions): Promise; - deleteParameter(args: DeleteParameterCommandInput, cb: (err: any, data?: DeleteParameterCommandOutput) => void): void; - deleteParameter(args: DeleteParameterCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteParameterCommandOutput) => void): void; - /** - * @see {@link DeleteParametersCommand} - */ - deleteParameters(args: DeleteParametersCommandInput, options?: __HttpHandlerOptions): Promise; - deleteParameters(args: DeleteParametersCommandInput, cb: (err: any, data?: DeleteParametersCommandOutput) => void): void; - deleteParameters(args: DeleteParametersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteParametersCommandOutput) => void): void; - /** - * @see {@link DeletePatchBaselineCommand} - */ - deletePatchBaseline(args: DeletePatchBaselineCommandInput, options?: __HttpHandlerOptions): Promise; - deletePatchBaseline(args: DeletePatchBaselineCommandInput, cb: (err: any, data?: DeletePatchBaselineCommandOutput) => void): void; - deletePatchBaseline(args: DeletePatchBaselineCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeletePatchBaselineCommandOutput) => void): void; - /** - * @see {@link DeleteResourceDataSyncCommand} - */ - deleteResourceDataSync(args: DeleteResourceDataSyncCommandInput, options?: __HttpHandlerOptions): Promise; - deleteResourceDataSync(args: DeleteResourceDataSyncCommandInput, cb: (err: any, data?: DeleteResourceDataSyncCommandOutput) => void): void; - deleteResourceDataSync(args: DeleteResourceDataSyncCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteResourceDataSyncCommandOutput) => void): void; - /** - * @see {@link DeleteResourcePolicyCommand} - */ - deleteResourcePolicy(args: DeleteResourcePolicyCommandInput, options?: __HttpHandlerOptions): Promise; - deleteResourcePolicy(args: DeleteResourcePolicyCommandInput, cb: (err: any, data?: DeleteResourcePolicyCommandOutput) => void): void; - deleteResourcePolicy(args: DeleteResourcePolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeleteResourcePolicyCommandOutput) => void): void; - /** - * @see {@link DeregisterManagedInstanceCommand} - */ - deregisterManagedInstance(args: DeregisterManagedInstanceCommandInput, options?: __HttpHandlerOptions): Promise; - deregisterManagedInstance(args: DeregisterManagedInstanceCommandInput, cb: (err: any, data?: DeregisterManagedInstanceCommandOutput) => void): void; - deregisterManagedInstance(args: DeregisterManagedInstanceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeregisterManagedInstanceCommandOutput) => void): void; - /** - * @see {@link DeregisterPatchBaselineForPatchGroupCommand} - */ - deregisterPatchBaselineForPatchGroup(args: DeregisterPatchBaselineForPatchGroupCommandInput, options?: __HttpHandlerOptions): Promise; - deregisterPatchBaselineForPatchGroup(args: DeregisterPatchBaselineForPatchGroupCommandInput, cb: (err: any, data?: DeregisterPatchBaselineForPatchGroupCommandOutput) => void): void; - deregisterPatchBaselineForPatchGroup(args: DeregisterPatchBaselineForPatchGroupCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeregisterPatchBaselineForPatchGroupCommandOutput) => void): void; - /** - * @see {@link DeregisterTargetFromMaintenanceWindowCommand} - */ - deregisterTargetFromMaintenanceWindow(args: DeregisterTargetFromMaintenanceWindowCommandInput, options?: __HttpHandlerOptions): Promise; - deregisterTargetFromMaintenanceWindow(args: DeregisterTargetFromMaintenanceWindowCommandInput, cb: (err: any, data?: DeregisterTargetFromMaintenanceWindowCommandOutput) => void): void; - deregisterTargetFromMaintenanceWindow(args: DeregisterTargetFromMaintenanceWindowCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeregisterTargetFromMaintenanceWindowCommandOutput) => void): void; - /** - * @see {@link DeregisterTaskFromMaintenanceWindowCommand} - */ - deregisterTaskFromMaintenanceWindow(args: DeregisterTaskFromMaintenanceWindowCommandInput, options?: __HttpHandlerOptions): Promise; - deregisterTaskFromMaintenanceWindow(args: DeregisterTaskFromMaintenanceWindowCommandInput, cb: (err: any, data?: DeregisterTaskFromMaintenanceWindowCommandOutput) => void): void; - deregisterTaskFromMaintenanceWindow(args: DeregisterTaskFromMaintenanceWindowCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DeregisterTaskFromMaintenanceWindowCommandOutput) => void): void; - /** - * @see {@link DescribeActivationsCommand} - */ - describeActivations(args: DescribeActivationsCommandInput, options?: __HttpHandlerOptions): Promise; - describeActivations(args: DescribeActivationsCommandInput, cb: (err: any, data?: DescribeActivationsCommandOutput) => void): void; - describeActivations(args: DescribeActivationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeActivationsCommandOutput) => void): void; - /** - * @see {@link DescribeAssociationCommand} - */ - describeAssociation(args: DescribeAssociationCommandInput, options?: __HttpHandlerOptions): Promise; - describeAssociation(args: DescribeAssociationCommandInput, cb: (err: any, data?: DescribeAssociationCommandOutput) => void): void; - describeAssociation(args: DescribeAssociationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeAssociationCommandOutput) => void): void; - /** - * @see {@link DescribeAssociationExecutionsCommand} - */ - describeAssociationExecutions(args: DescribeAssociationExecutionsCommandInput, options?: __HttpHandlerOptions): Promise; - describeAssociationExecutions(args: DescribeAssociationExecutionsCommandInput, cb: (err: any, data?: DescribeAssociationExecutionsCommandOutput) => void): void; - describeAssociationExecutions(args: DescribeAssociationExecutionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeAssociationExecutionsCommandOutput) => void): void; - /** - * @see {@link DescribeAssociationExecutionTargetsCommand} - */ - describeAssociationExecutionTargets(args: DescribeAssociationExecutionTargetsCommandInput, options?: __HttpHandlerOptions): Promise; - describeAssociationExecutionTargets(args: DescribeAssociationExecutionTargetsCommandInput, cb: (err: any, data?: DescribeAssociationExecutionTargetsCommandOutput) => void): void; - describeAssociationExecutionTargets(args: DescribeAssociationExecutionTargetsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeAssociationExecutionTargetsCommandOutput) => void): void; - /** - * @see {@link DescribeAutomationExecutionsCommand} - */ - describeAutomationExecutions(args: DescribeAutomationExecutionsCommandInput, options?: __HttpHandlerOptions): Promise; - describeAutomationExecutions(args: DescribeAutomationExecutionsCommandInput, cb: (err: any, data?: DescribeAutomationExecutionsCommandOutput) => void): void; - describeAutomationExecutions(args: DescribeAutomationExecutionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeAutomationExecutionsCommandOutput) => void): void; - /** - * @see {@link DescribeAutomationStepExecutionsCommand} - */ - describeAutomationStepExecutions(args: DescribeAutomationStepExecutionsCommandInput, options?: __HttpHandlerOptions): Promise; - describeAutomationStepExecutions(args: DescribeAutomationStepExecutionsCommandInput, cb: (err: any, data?: DescribeAutomationStepExecutionsCommandOutput) => void): void; - describeAutomationStepExecutions(args: DescribeAutomationStepExecutionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeAutomationStepExecutionsCommandOutput) => void): void; - /** - * @see {@link DescribeAvailablePatchesCommand} - */ - describeAvailablePatches(args: DescribeAvailablePatchesCommandInput, options?: __HttpHandlerOptions): Promise; - describeAvailablePatches(args: DescribeAvailablePatchesCommandInput, cb: (err: any, data?: DescribeAvailablePatchesCommandOutput) => void): void; - describeAvailablePatches(args: DescribeAvailablePatchesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeAvailablePatchesCommandOutput) => void): void; - /** - * @see {@link DescribeDocumentCommand} - */ - describeDocument(args: DescribeDocumentCommandInput, options?: __HttpHandlerOptions): Promise; - describeDocument(args: DescribeDocumentCommandInput, cb: (err: any, data?: DescribeDocumentCommandOutput) => void): void; - describeDocument(args: DescribeDocumentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeDocumentCommandOutput) => void): void; - /** - * @see {@link DescribeDocumentPermissionCommand} - */ - describeDocumentPermission(args: DescribeDocumentPermissionCommandInput, options?: __HttpHandlerOptions): Promise; - describeDocumentPermission(args: DescribeDocumentPermissionCommandInput, cb: (err: any, data?: DescribeDocumentPermissionCommandOutput) => void): void; - describeDocumentPermission(args: DescribeDocumentPermissionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeDocumentPermissionCommandOutput) => void): void; - /** - * @see {@link DescribeEffectiveInstanceAssociationsCommand} - */ - describeEffectiveInstanceAssociations(args: DescribeEffectiveInstanceAssociationsCommandInput, options?: __HttpHandlerOptions): Promise; - describeEffectiveInstanceAssociations(args: DescribeEffectiveInstanceAssociationsCommandInput, cb: (err: any, data?: DescribeEffectiveInstanceAssociationsCommandOutput) => void): void; - describeEffectiveInstanceAssociations(args: DescribeEffectiveInstanceAssociationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeEffectiveInstanceAssociationsCommandOutput) => void): void; - /** - * @see {@link DescribeEffectivePatchesForPatchBaselineCommand} - */ - describeEffectivePatchesForPatchBaseline(args: DescribeEffectivePatchesForPatchBaselineCommandInput, options?: __HttpHandlerOptions): Promise; - describeEffectivePatchesForPatchBaseline(args: DescribeEffectivePatchesForPatchBaselineCommandInput, cb: (err: any, data?: DescribeEffectivePatchesForPatchBaselineCommandOutput) => void): void; - describeEffectivePatchesForPatchBaseline(args: DescribeEffectivePatchesForPatchBaselineCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeEffectivePatchesForPatchBaselineCommandOutput) => void): void; - /** - * @see {@link DescribeInstanceAssociationsStatusCommand} - */ - describeInstanceAssociationsStatus(args: DescribeInstanceAssociationsStatusCommandInput, options?: __HttpHandlerOptions): Promise; - describeInstanceAssociationsStatus(args: DescribeInstanceAssociationsStatusCommandInput, cb: (err: any, data?: DescribeInstanceAssociationsStatusCommandOutput) => void): void; - describeInstanceAssociationsStatus(args: DescribeInstanceAssociationsStatusCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeInstanceAssociationsStatusCommandOutput) => void): void; - /** - * @see {@link DescribeInstanceInformationCommand} - */ - describeInstanceInformation(args: DescribeInstanceInformationCommandInput, options?: __HttpHandlerOptions): Promise; - describeInstanceInformation(args: DescribeInstanceInformationCommandInput, cb: (err: any, data?: DescribeInstanceInformationCommandOutput) => void): void; - describeInstanceInformation(args: DescribeInstanceInformationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeInstanceInformationCommandOutput) => void): void; - /** - * @see {@link DescribeInstancePatchesCommand} - */ - describeInstancePatches(args: DescribeInstancePatchesCommandInput, options?: __HttpHandlerOptions): Promise; - describeInstancePatches(args: DescribeInstancePatchesCommandInput, cb: (err: any, data?: DescribeInstancePatchesCommandOutput) => void): void; - describeInstancePatches(args: DescribeInstancePatchesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeInstancePatchesCommandOutput) => void): void; - /** - * @see {@link DescribeInstancePatchStatesCommand} - */ - describeInstancePatchStates(args: DescribeInstancePatchStatesCommandInput, options?: __HttpHandlerOptions): Promise; - describeInstancePatchStates(args: DescribeInstancePatchStatesCommandInput, cb: (err: any, data?: DescribeInstancePatchStatesCommandOutput) => void): void; - describeInstancePatchStates(args: DescribeInstancePatchStatesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeInstancePatchStatesCommandOutput) => void): void; - /** - * @see {@link DescribeInstancePatchStatesForPatchGroupCommand} - */ - describeInstancePatchStatesForPatchGroup(args: DescribeInstancePatchStatesForPatchGroupCommandInput, options?: __HttpHandlerOptions): Promise; - describeInstancePatchStatesForPatchGroup(args: DescribeInstancePatchStatesForPatchGroupCommandInput, cb: (err: any, data?: DescribeInstancePatchStatesForPatchGroupCommandOutput) => void): void; - describeInstancePatchStatesForPatchGroup(args: DescribeInstancePatchStatesForPatchGroupCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeInstancePatchStatesForPatchGroupCommandOutput) => void): void; - /** - * @see {@link DescribeInventoryDeletionsCommand} - */ - describeInventoryDeletions(args: DescribeInventoryDeletionsCommandInput, options?: __HttpHandlerOptions): Promise; - describeInventoryDeletions(args: DescribeInventoryDeletionsCommandInput, cb: (err: any, data?: DescribeInventoryDeletionsCommandOutput) => void): void; - describeInventoryDeletions(args: DescribeInventoryDeletionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeInventoryDeletionsCommandOutput) => void): void; - /** - * @see {@link DescribeMaintenanceWindowExecutionsCommand} - */ - describeMaintenanceWindowExecutions(args: DescribeMaintenanceWindowExecutionsCommandInput, options?: __HttpHandlerOptions): Promise; - describeMaintenanceWindowExecutions(args: DescribeMaintenanceWindowExecutionsCommandInput, cb: (err: any, data?: DescribeMaintenanceWindowExecutionsCommandOutput) => void): void; - describeMaintenanceWindowExecutions(args: DescribeMaintenanceWindowExecutionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeMaintenanceWindowExecutionsCommandOutput) => void): void; - /** - * @see {@link DescribeMaintenanceWindowExecutionTaskInvocationsCommand} - */ - describeMaintenanceWindowExecutionTaskInvocations(args: DescribeMaintenanceWindowExecutionTaskInvocationsCommandInput, options?: __HttpHandlerOptions): Promise; - describeMaintenanceWindowExecutionTaskInvocations(args: DescribeMaintenanceWindowExecutionTaskInvocationsCommandInput, cb: (err: any, data?: DescribeMaintenanceWindowExecutionTaskInvocationsCommandOutput) => void): void; - describeMaintenanceWindowExecutionTaskInvocations(args: DescribeMaintenanceWindowExecutionTaskInvocationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeMaintenanceWindowExecutionTaskInvocationsCommandOutput) => void): void; - /** - * @see {@link DescribeMaintenanceWindowExecutionTasksCommand} - */ - describeMaintenanceWindowExecutionTasks(args: DescribeMaintenanceWindowExecutionTasksCommandInput, options?: __HttpHandlerOptions): Promise; - describeMaintenanceWindowExecutionTasks(args: DescribeMaintenanceWindowExecutionTasksCommandInput, cb: (err: any, data?: DescribeMaintenanceWindowExecutionTasksCommandOutput) => void): void; - describeMaintenanceWindowExecutionTasks(args: DescribeMaintenanceWindowExecutionTasksCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeMaintenanceWindowExecutionTasksCommandOutput) => void): void; - /** - * @see {@link DescribeMaintenanceWindowsCommand} - */ - describeMaintenanceWindows(args: DescribeMaintenanceWindowsCommandInput, options?: __HttpHandlerOptions): Promise; - describeMaintenanceWindows(args: DescribeMaintenanceWindowsCommandInput, cb: (err: any, data?: DescribeMaintenanceWindowsCommandOutput) => void): void; - describeMaintenanceWindows(args: DescribeMaintenanceWindowsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeMaintenanceWindowsCommandOutput) => void): void; - /** - * @see {@link DescribeMaintenanceWindowScheduleCommand} - */ - describeMaintenanceWindowSchedule(args: DescribeMaintenanceWindowScheduleCommandInput, options?: __HttpHandlerOptions): Promise; - describeMaintenanceWindowSchedule(args: DescribeMaintenanceWindowScheduleCommandInput, cb: (err: any, data?: DescribeMaintenanceWindowScheduleCommandOutput) => void): void; - describeMaintenanceWindowSchedule(args: DescribeMaintenanceWindowScheduleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeMaintenanceWindowScheduleCommandOutput) => void): void; - /** - * @see {@link DescribeMaintenanceWindowsForTargetCommand} - */ - describeMaintenanceWindowsForTarget(args: DescribeMaintenanceWindowsForTargetCommandInput, options?: __HttpHandlerOptions): Promise; - describeMaintenanceWindowsForTarget(args: DescribeMaintenanceWindowsForTargetCommandInput, cb: (err: any, data?: DescribeMaintenanceWindowsForTargetCommandOutput) => void): void; - describeMaintenanceWindowsForTarget(args: DescribeMaintenanceWindowsForTargetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeMaintenanceWindowsForTargetCommandOutput) => void): void; - /** - * @see {@link DescribeMaintenanceWindowTargetsCommand} - */ - describeMaintenanceWindowTargets(args: DescribeMaintenanceWindowTargetsCommandInput, options?: __HttpHandlerOptions): Promise; - describeMaintenanceWindowTargets(args: DescribeMaintenanceWindowTargetsCommandInput, cb: (err: any, data?: DescribeMaintenanceWindowTargetsCommandOutput) => void): void; - describeMaintenanceWindowTargets(args: DescribeMaintenanceWindowTargetsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeMaintenanceWindowTargetsCommandOutput) => void): void; - /** - * @see {@link DescribeMaintenanceWindowTasksCommand} - */ - describeMaintenanceWindowTasks(args: DescribeMaintenanceWindowTasksCommandInput, options?: __HttpHandlerOptions): Promise; - describeMaintenanceWindowTasks(args: DescribeMaintenanceWindowTasksCommandInput, cb: (err: any, data?: DescribeMaintenanceWindowTasksCommandOutput) => void): void; - describeMaintenanceWindowTasks(args: DescribeMaintenanceWindowTasksCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeMaintenanceWindowTasksCommandOutput) => void): void; - /** - * @see {@link DescribeOpsItemsCommand} - */ - describeOpsItems(args: DescribeOpsItemsCommandInput, options?: __HttpHandlerOptions): Promise; - describeOpsItems(args: DescribeOpsItemsCommandInput, cb: (err: any, data?: DescribeOpsItemsCommandOutput) => void): void; - describeOpsItems(args: DescribeOpsItemsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeOpsItemsCommandOutput) => void): void; - /** - * @see {@link DescribeParametersCommand} - */ - describeParameters(args: DescribeParametersCommandInput, options?: __HttpHandlerOptions): Promise; - describeParameters(args: DescribeParametersCommandInput, cb: (err: any, data?: DescribeParametersCommandOutput) => void): void; - describeParameters(args: DescribeParametersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeParametersCommandOutput) => void): void; - /** - * @see {@link DescribePatchBaselinesCommand} - */ - describePatchBaselines(args: DescribePatchBaselinesCommandInput, options?: __HttpHandlerOptions): Promise; - describePatchBaselines(args: DescribePatchBaselinesCommandInput, cb: (err: any, data?: DescribePatchBaselinesCommandOutput) => void): void; - describePatchBaselines(args: DescribePatchBaselinesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribePatchBaselinesCommandOutput) => void): void; - /** - * @see {@link DescribePatchGroupsCommand} - */ - describePatchGroups(args: DescribePatchGroupsCommandInput, options?: __HttpHandlerOptions): Promise; - describePatchGroups(args: DescribePatchGroupsCommandInput, cb: (err: any, data?: DescribePatchGroupsCommandOutput) => void): void; - describePatchGroups(args: DescribePatchGroupsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribePatchGroupsCommandOutput) => void): void; - /** - * @see {@link DescribePatchGroupStateCommand} - */ - describePatchGroupState(args: DescribePatchGroupStateCommandInput, options?: __HttpHandlerOptions): Promise; - describePatchGroupState(args: DescribePatchGroupStateCommandInput, cb: (err: any, data?: DescribePatchGroupStateCommandOutput) => void): void; - describePatchGroupState(args: DescribePatchGroupStateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribePatchGroupStateCommandOutput) => void): void; - /** - * @see {@link DescribePatchPropertiesCommand} - */ - describePatchProperties(args: DescribePatchPropertiesCommandInput, options?: __HttpHandlerOptions): Promise; - describePatchProperties(args: DescribePatchPropertiesCommandInput, cb: (err: any, data?: DescribePatchPropertiesCommandOutput) => void): void; - describePatchProperties(args: DescribePatchPropertiesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribePatchPropertiesCommandOutput) => void): void; - /** - * @see {@link DescribeSessionsCommand} - */ - describeSessions(args: DescribeSessionsCommandInput, options?: __HttpHandlerOptions): Promise; - describeSessions(args: DescribeSessionsCommandInput, cb: (err: any, data?: DescribeSessionsCommandOutput) => void): void; - describeSessions(args: DescribeSessionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DescribeSessionsCommandOutput) => void): void; - /** - * @see {@link DisassociateOpsItemRelatedItemCommand} - */ - disassociateOpsItemRelatedItem(args: DisassociateOpsItemRelatedItemCommandInput, options?: __HttpHandlerOptions): Promise; - disassociateOpsItemRelatedItem(args: DisassociateOpsItemRelatedItemCommandInput, cb: (err: any, data?: DisassociateOpsItemRelatedItemCommandOutput) => void): void; - disassociateOpsItemRelatedItem(args: DisassociateOpsItemRelatedItemCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DisassociateOpsItemRelatedItemCommandOutput) => void): void; - /** - * @see {@link GetAutomationExecutionCommand} - */ - getAutomationExecution(args: GetAutomationExecutionCommandInput, options?: __HttpHandlerOptions): Promise; - getAutomationExecution(args: GetAutomationExecutionCommandInput, cb: (err: any, data?: GetAutomationExecutionCommandOutput) => void): void; - getAutomationExecution(args: GetAutomationExecutionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetAutomationExecutionCommandOutput) => void): void; - /** - * @see {@link GetCalendarStateCommand} - */ - getCalendarState(args: GetCalendarStateCommandInput, options?: __HttpHandlerOptions): Promise; - getCalendarState(args: GetCalendarStateCommandInput, cb: (err: any, data?: GetCalendarStateCommandOutput) => void): void; - getCalendarState(args: GetCalendarStateCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetCalendarStateCommandOutput) => void): void; - /** - * @see {@link GetCommandInvocationCommand} - */ - getCommandInvocation(args: GetCommandInvocationCommandInput, options?: __HttpHandlerOptions): Promise; - getCommandInvocation(args: GetCommandInvocationCommandInput, cb: (err: any, data?: GetCommandInvocationCommandOutput) => void): void; - getCommandInvocation(args: GetCommandInvocationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetCommandInvocationCommandOutput) => void): void; - /** - * @see {@link GetConnectionStatusCommand} - */ - getConnectionStatus(args: GetConnectionStatusCommandInput, options?: __HttpHandlerOptions): Promise; - getConnectionStatus(args: GetConnectionStatusCommandInput, cb: (err: any, data?: GetConnectionStatusCommandOutput) => void): void; - getConnectionStatus(args: GetConnectionStatusCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetConnectionStatusCommandOutput) => void): void; - /** - * @see {@link GetDefaultPatchBaselineCommand} - */ - getDefaultPatchBaseline(args: GetDefaultPatchBaselineCommandInput, options?: __HttpHandlerOptions): Promise; - getDefaultPatchBaseline(args: GetDefaultPatchBaselineCommandInput, cb: (err: any, data?: GetDefaultPatchBaselineCommandOutput) => void): void; - getDefaultPatchBaseline(args: GetDefaultPatchBaselineCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetDefaultPatchBaselineCommandOutput) => void): void; - /** - * @see {@link GetDeployablePatchSnapshotForInstanceCommand} - */ - getDeployablePatchSnapshotForInstance(args: GetDeployablePatchSnapshotForInstanceCommandInput, options?: __HttpHandlerOptions): Promise; - getDeployablePatchSnapshotForInstance(args: GetDeployablePatchSnapshotForInstanceCommandInput, cb: (err: any, data?: GetDeployablePatchSnapshotForInstanceCommandOutput) => void): void; - getDeployablePatchSnapshotForInstance(args: GetDeployablePatchSnapshotForInstanceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetDeployablePatchSnapshotForInstanceCommandOutput) => void): void; - /** - * @see {@link GetDocumentCommand} - */ - getDocument(args: GetDocumentCommandInput, options?: __HttpHandlerOptions): Promise; - getDocument(args: GetDocumentCommandInput, cb: (err: any, data?: GetDocumentCommandOutput) => void): void; - getDocument(args: GetDocumentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetDocumentCommandOutput) => void): void; - /** - * @see {@link GetInventoryCommand} - */ - getInventory(args: GetInventoryCommandInput, options?: __HttpHandlerOptions): Promise; - getInventory(args: GetInventoryCommandInput, cb: (err: any, data?: GetInventoryCommandOutput) => void): void; - getInventory(args: GetInventoryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetInventoryCommandOutput) => void): void; - /** - * @see {@link GetInventorySchemaCommand} - */ - getInventorySchema(args: GetInventorySchemaCommandInput, options?: __HttpHandlerOptions): Promise; - getInventorySchema(args: GetInventorySchemaCommandInput, cb: (err: any, data?: GetInventorySchemaCommandOutput) => void): void; - getInventorySchema(args: GetInventorySchemaCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetInventorySchemaCommandOutput) => void): void; - /** - * @see {@link GetMaintenanceWindowCommand} - */ - getMaintenanceWindow(args: GetMaintenanceWindowCommandInput, options?: __HttpHandlerOptions): Promise; - getMaintenanceWindow(args: GetMaintenanceWindowCommandInput, cb: (err: any, data?: GetMaintenanceWindowCommandOutput) => void): void; - getMaintenanceWindow(args: GetMaintenanceWindowCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetMaintenanceWindowCommandOutput) => void): void; - /** - * @see {@link GetMaintenanceWindowExecutionCommand} - */ - getMaintenanceWindowExecution(args: GetMaintenanceWindowExecutionCommandInput, options?: __HttpHandlerOptions): Promise; - getMaintenanceWindowExecution(args: GetMaintenanceWindowExecutionCommandInput, cb: (err: any, data?: GetMaintenanceWindowExecutionCommandOutput) => void): void; - getMaintenanceWindowExecution(args: GetMaintenanceWindowExecutionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetMaintenanceWindowExecutionCommandOutput) => void): void; - /** - * @see {@link GetMaintenanceWindowExecutionTaskCommand} - */ - getMaintenanceWindowExecutionTask(args: GetMaintenanceWindowExecutionTaskCommandInput, options?: __HttpHandlerOptions): Promise; - getMaintenanceWindowExecutionTask(args: GetMaintenanceWindowExecutionTaskCommandInput, cb: (err: any, data?: GetMaintenanceWindowExecutionTaskCommandOutput) => void): void; - getMaintenanceWindowExecutionTask(args: GetMaintenanceWindowExecutionTaskCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetMaintenanceWindowExecutionTaskCommandOutput) => void): void; - /** - * @see {@link GetMaintenanceWindowExecutionTaskInvocationCommand} - */ - getMaintenanceWindowExecutionTaskInvocation(args: GetMaintenanceWindowExecutionTaskInvocationCommandInput, options?: __HttpHandlerOptions): Promise; - getMaintenanceWindowExecutionTaskInvocation(args: GetMaintenanceWindowExecutionTaskInvocationCommandInput, cb: (err: any, data?: GetMaintenanceWindowExecutionTaskInvocationCommandOutput) => void): void; - getMaintenanceWindowExecutionTaskInvocation(args: GetMaintenanceWindowExecutionTaskInvocationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetMaintenanceWindowExecutionTaskInvocationCommandOutput) => void): void; - /** - * @see {@link GetMaintenanceWindowTaskCommand} - */ - getMaintenanceWindowTask(args: GetMaintenanceWindowTaskCommandInput, options?: __HttpHandlerOptions): Promise; - getMaintenanceWindowTask(args: GetMaintenanceWindowTaskCommandInput, cb: (err: any, data?: GetMaintenanceWindowTaskCommandOutput) => void): void; - getMaintenanceWindowTask(args: GetMaintenanceWindowTaskCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetMaintenanceWindowTaskCommandOutput) => void): void; - /** - * @see {@link GetOpsItemCommand} - */ - getOpsItem(args: GetOpsItemCommandInput, options?: __HttpHandlerOptions): Promise; - getOpsItem(args: GetOpsItemCommandInput, cb: (err: any, data?: GetOpsItemCommandOutput) => void): void; - getOpsItem(args: GetOpsItemCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetOpsItemCommandOutput) => void): void; - /** - * @see {@link GetOpsMetadataCommand} - */ - getOpsMetadata(args: GetOpsMetadataCommandInput, options?: __HttpHandlerOptions): Promise; - getOpsMetadata(args: GetOpsMetadataCommandInput, cb: (err: any, data?: GetOpsMetadataCommandOutput) => void): void; - getOpsMetadata(args: GetOpsMetadataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetOpsMetadataCommandOutput) => void): void; - /** - * @see {@link GetOpsSummaryCommand} - */ - getOpsSummary(args: GetOpsSummaryCommandInput, options?: __HttpHandlerOptions): Promise; - getOpsSummary(args: GetOpsSummaryCommandInput, cb: (err: any, data?: GetOpsSummaryCommandOutput) => void): void; - getOpsSummary(args: GetOpsSummaryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetOpsSummaryCommandOutput) => void): void; - /** - * @see {@link GetParameterCommand} - */ - getParameter(args: GetParameterCommandInput, options?: __HttpHandlerOptions): Promise; - getParameter(args: GetParameterCommandInput, cb: (err: any, data?: GetParameterCommandOutput) => void): void; - getParameter(args: GetParameterCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetParameterCommandOutput) => void): void; - /** - * @see {@link GetParameterHistoryCommand} - */ - getParameterHistory(args: GetParameterHistoryCommandInput, options?: __HttpHandlerOptions): Promise; - getParameterHistory(args: GetParameterHistoryCommandInput, cb: (err: any, data?: GetParameterHistoryCommandOutput) => void): void; - getParameterHistory(args: GetParameterHistoryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetParameterHistoryCommandOutput) => void): void; - /** - * @see {@link GetParametersCommand} - */ - getParameters(args: GetParametersCommandInput, options?: __HttpHandlerOptions): Promise; - getParameters(args: GetParametersCommandInput, cb: (err: any, data?: GetParametersCommandOutput) => void): void; - getParameters(args: GetParametersCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetParametersCommandOutput) => void): void; - /** - * @see {@link GetParametersByPathCommand} - */ - getParametersByPath(args: GetParametersByPathCommandInput, options?: __HttpHandlerOptions): Promise; - getParametersByPath(args: GetParametersByPathCommandInput, cb: (err: any, data?: GetParametersByPathCommandOutput) => void): void; - getParametersByPath(args: GetParametersByPathCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetParametersByPathCommandOutput) => void): void; - /** - * @see {@link GetPatchBaselineCommand} - */ - getPatchBaseline(args: GetPatchBaselineCommandInput, options?: __HttpHandlerOptions): Promise; - getPatchBaseline(args: GetPatchBaselineCommandInput, cb: (err: any, data?: GetPatchBaselineCommandOutput) => void): void; - getPatchBaseline(args: GetPatchBaselineCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetPatchBaselineCommandOutput) => void): void; - /** - * @see {@link GetPatchBaselineForPatchGroupCommand} - */ - getPatchBaselineForPatchGroup(args: GetPatchBaselineForPatchGroupCommandInput, options?: __HttpHandlerOptions): Promise; - getPatchBaselineForPatchGroup(args: GetPatchBaselineForPatchGroupCommandInput, cb: (err: any, data?: GetPatchBaselineForPatchGroupCommandOutput) => void): void; - getPatchBaselineForPatchGroup(args: GetPatchBaselineForPatchGroupCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetPatchBaselineForPatchGroupCommandOutput) => void): void; - /** - * @see {@link GetResourcePoliciesCommand} - */ - getResourcePolicies(args: GetResourcePoliciesCommandInput, options?: __HttpHandlerOptions): Promise; - getResourcePolicies(args: GetResourcePoliciesCommandInput, cb: (err: any, data?: GetResourcePoliciesCommandOutput) => void): void; - getResourcePolicies(args: GetResourcePoliciesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetResourcePoliciesCommandOutput) => void): void; - /** - * @see {@link GetServiceSettingCommand} - */ - getServiceSetting(args: GetServiceSettingCommandInput, options?: __HttpHandlerOptions): Promise; - getServiceSetting(args: GetServiceSettingCommandInput, cb: (err: any, data?: GetServiceSettingCommandOutput) => void): void; - getServiceSetting(args: GetServiceSettingCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetServiceSettingCommandOutput) => void): void; - /** - * @see {@link LabelParameterVersionCommand} - */ - labelParameterVersion(args: LabelParameterVersionCommandInput, options?: __HttpHandlerOptions): Promise; - labelParameterVersion(args: LabelParameterVersionCommandInput, cb: (err: any, data?: LabelParameterVersionCommandOutput) => void): void; - labelParameterVersion(args: LabelParameterVersionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: LabelParameterVersionCommandOutput) => void): void; - /** - * @see {@link ListAssociationsCommand} - */ - listAssociations(args: ListAssociationsCommandInput, options?: __HttpHandlerOptions): Promise; - listAssociations(args: ListAssociationsCommandInput, cb: (err: any, data?: ListAssociationsCommandOutput) => void): void; - listAssociations(args: ListAssociationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAssociationsCommandOutput) => void): void; - /** - * @see {@link ListAssociationVersionsCommand} - */ - listAssociationVersions(args: ListAssociationVersionsCommandInput, options?: __HttpHandlerOptions): Promise; - listAssociationVersions(args: ListAssociationVersionsCommandInput, cb: (err: any, data?: ListAssociationVersionsCommandOutput) => void): void; - listAssociationVersions(args: ListAssociationVersionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAssociationVersionsCommandOutput) => void): void; - /** - * @see {@link ListCommandInvocationsCommand} - */ - listCommandInvocations(args: ListCommandInvocationsCommandInput, options?: __HttpHandlerOptions): Promise; - listCommandInvocations(args: ListCommandInvocationsCommandInput, cb: (err: any, data?: ListCommandInvocationsCommandOutput) => void): void; - listCommandInvocations(args: ListCommandInvocationsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListCommandInvocationsCommandOutput) => void): void; - /** - * @see {@link ListCommandsCommand} - */ - listCommands(args: ListCommandsCommandInput, options?: __HttpHandlerOptions): Promise; - listCommands(args: ListCommandsCommandInput, cb: (err: any, data?: ListCommandsCommandOutput) => void): void; - listCommands(args: ListCommandsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListCommandsCommandOutput) => void): void; - /** - * @see {@link ListComplianceItemsCommand} - */ - listComplianceItems(args: ListComplianceItemsCommandInput, options?: __HttpHandlerOptions): Promise; - listComplianceItems(args: ListComplianceItemsCommandInput, cb: (err: any, data?: ListComplianceItemsCommandOutput) => void): void; - listComplianceItems(args: ListComplianceItemsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListComplianceItemsCommandOutput) => void): void; - /** - * @see {@link ListComplianceSummariesCommand} - */ - listComplianceSummaries(args: ListComplianceSummariesCommandInput, options?: __HttpHandlerOptions): Promise; - listComplianceSummaries(args: ListComplianceSummariesCommandInput, cb: (err: any, data?: ListComplianceSummariesCommandOutput) => void): void; - listComplianceSummaries(args: ListComplianceSummariesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListComplianceSummariesCommandOutput) => void): void; - /** - * @see {@link ListDocumentMetadataHistoryCommand} - */ - listDocumentMetadataHistory(args: ListDocumentMetadataHistoryCommandInput, options?: __HttpHandlerOptions): Promise; - listDocumentMetadataHistory(args: ListDocumentMetadataHistoryCommandInput, cb: (err: any, data?: ListDocumentMetadataHistoryCommandOutput) => void): void; - listDocumentMetadataHistory(args: ListDocumentMetadataHistoryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListDocumentMetadataHistoryCommandOutput) => void): void; - /** - * @see {@link ListDocumentsCommand} - */ - listDocuments(args: ListDocumentsCommandInput, options?: __HttpHandlerOptions): Promise; - listDocuments(args: ListDocumentsCommandInput, cb: (err: any, data?: ListDocumentsCommandOutput) => void): void; - listDocuments(args: ListDocumentsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListDocumentsCommandOutput) => void): void; - /** - * @see {@link ListDocumentVersionsCommand} - */ - listDocumentVersions(args: ListDocumentVersionsCommandInput, options?: __HttpHandlerOptions): Promise; - listDocumentVersions(args: ListDocumentVersionsCommandInput, cb: (err: any, data?: ListDocumentVersionsCommandOutput) => void): void; - listDocumentVersions(args: ListDocumentVersionsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListDocumentVersionsCommandOutput) => void): void; - /** - * @see {@link ListInventoryEntriesCommand} - */ - listInventoryEntries(args: ListInventoryEntriesCommandInput, options?: __HttpHandlerOptions): Promise; - listInventoryEntries(args: ListInventoryEntriesCommandInput, cb: (err: any, data?: ListInventoryEntriesCommandOutput) => void): void; - listInventoryEntries(args: ListInventoryEntriesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListInventoryEntriesCommandOutput) => void): void; - /** - * @see {@link ListOpsItemEventsCommand} - */ - listOpsItemEvents(args: ListOpsItemEventsCommandInput, options?: __HttpHandlerOptions): Promise; - listOpsItemEvents(args: ListOpsItemEventsCommandInput, cb: (err: any, data?: ListOpsItemEventsCommandOutput) => void): void; - listOpsItemEvents(args: ListOpsItemEventsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListOpsItemEventsCommandOutput) => void): void; - /** - * @see {@link ListOpsItemRelatedItemsCommand} - */ - listOpsItemRelatedItems(args: ListOpsItemRelatedItemsCommandInput, options?: __HttpHandlerOptions): Promise; - listOpsItemRelatedItems(args: ListOpsItemRelatedItemsCommandInput, cb: (err: any, data?: ListOpsItemRelatedItemsCommandOutput) => void): void; - listOpsItemRelatedItems(args: ListOpsItemRelatedItemsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListOpsItemRelatedItemsCommandOutput) => void): void; - /** - * @see {@link ListOpsMetadataCommand} - */ - listOpsMetadata(args: ListOpsMetadataCommandInput, options?: __HttpHandlerOptions): Promise; - listOpsMetadata(args: ListOpsMetadataCommandInput, cb: (err: any, data?: ListOpsMetadataCommandOutput) => void): void; - listOpsMetadata(args: ListOpsMetadataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListOpsMetadataCommandOutput) => void): void; - /** - * @see {@link ListResourceComplianceSummariesCommand} - */ - listResourceComplianceSummaries(args: ListResourceComplianceSummariesCommandInput, options?: __HttpHandlerOptions): Promise; - listResourceComplianceSummaries(args: ListResourceComplianceSummariesCommandInput, cb: (err: any, data?: ListResourceComplianceSummariesCommandOutput) => void): void; - listResourceComplianceSummaries(args: ListResourceComplianceSummariesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListResourceComplianceSummariesCommandOutput) => void): void; - /** - * @see {@link ListResourceDataSyncCommand} - */ - listResourceDataSync(args: ListResourceDataSyncCommandInput, options?: __HttpHandlerOptions): Promise; - listResourceDataSync(args: ListResourceDataSyncCommandInput, cb: (err: any, data?: ListResourceDataSyncCommandOutput) => void): void; - listResourceDataSync(args: ListResourceDataSyncCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListResourceDataSyncCommandOutput) => void): void; - /** - * @see {@link ListTagsForResourceCommand} - */ - listTagsForResource(args: ListTagsForResourceCommandInput, options?: __HttpHandlerOptions): Promise; - listTagsForResource(args: ListTagsForResourceCommandInput, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void; - listTagsForResource(args: ListTagsForResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListTagsForResourceCommandOutput) => void): void; - /** - * @see {@link ModifyDocumentPermissionCommand} - */ - modifyDocumentPermission(args: ModifyDocumentPermissionCommandInput, options?: __HttpHandlerOptions): Promise; - modifyDocumentPermission(args: ModifyDocumentPermissionCommandInput, cb: (err: any, data?: ModifyDocumentPermissionCommandOutput) => void): void; - modifyDocumentPermission(args: ModifyDocumentPermissionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ModifyDocumentPermissionCommandOutput) => void): void; - /** - * @see {@link PutComplianceItemsCommand} - */ - putComplianceItems(args: PutComplianceItemsCommandInput, options?: __HttpHandlerOptions): Promise; - putComplianceItems(args: PutComplianceItemsCommandInput, cb: (err: any, data?: PutComplianceItemsCommandOutput) => void): void; - putComplianceItems(args: PutComplianceItemsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutComplianceItemsCommandOutput) => void): void; - /** - * @see {@link PutInventoryCommand} - */ - putInventory(args: PutInventoryCommandInput, options?: __HttpHandlerOptions): Promise; - putInventory(args: PutInventoryCommandInput, cb: (err: any, data?: PutInventoryCommandOutput) => void): void; - putInventory(args: PutInventoryCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutInventoryCommandOutput) => void): void; - /** - * @see {@link PutParameterCommand} - */ - putParameter(args: PutParameterCommandInput, options?: __HttpHandlerOptions): Promise; - putParameter(args: PutParameterCommandInput, cb: (err: any, data?: PutParameterCommandOutput) => void): void; - putParameter(args: PutParameterCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutParameterCommandOutput) => void): void; - /** - * @see {@link PutResourcePolicyCommand} - */ - putResourcePolicy(args: PutResourcePolicyCommandInput, options?: __HttpHandlerOptions): Promise; - putResourcePolicy(args: PutResourcePolicyCommandInput, cb: (err: any, data?: PutResourcePolicyCommandOutput) => void): void; - putResourcePolicy(args: PutResourcePolicyCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: PutResourcePolicyCommandOutput) => void): void; - /** - * @see {@link RegisterDefaultPatchBaselineCommand} - */ - registerDefaultPatchBaseline(args: RegisterDefaultPatchBaselineCommandInput, options?: __HttpHandlerOptions): Promise; - registerDefaultPatchBaseline(args: RegisterDefaultPatchBaselineCommandInput, cb: (err: any, data?: RegisterDefaultPatchBaselineCommandOutput) => void): void; - registerDefaultPatchBaseline(args: RegisterDefaultPatchBaselineCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RegisterDefaultPatchBaselineCommandOutput) => void): void; - /** - * @see {@link RegisterPatchBaselineForPatchGroupCommand} - */ - registerPatchBaselineForPatchGroup(args: RegisterPatchBaselineForPatchGroupCommandInput, options?: __HttpHandlerOptions): Promise; - registerPatchBaselineForPatchGroup(args: RegisterPatchBaselineForPatchGroupCommandInput, cb: (err: any, data?: RegisterPatchBaselineForPatchGroupCommandOutput) => void): void; - registerPatchBaselineForPatchGroup(args: RegisterPatchBaselineForPatchGroupCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RegisterPatchBaselineForPatchGroupCommandOutput) => void): void; - /** - * @see {@link RegisterTargetWithMaintenanceWindowCommand} - */ - registerTargetWithMaintenanceWindow(args: RegisterTargetWithMaintenanceWindowCommandInput, options?: __HttpHandlerOptions): Promise; - registerTargetWithMaintenanceWindow(args: RegisterTargetWithMaintenanceWindowCommandInput, cb: (err: any, data?: RegisterTargetWithMaintenanceWindowCommandOutput) => void): void; - registerTargetWithMaintenanceWindow(args: RegisterTargetWithMaintenanceWindowCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RegisterTargetWithMaintenanceWindowCommandOutput) => void): void; - /** - * @see {@link RegisterTaskWithMaintenanceWindowCommand} - */ - registerTaskWithMaintenanceWindow(args: RegisterTaskWithMaintenanceWindowCommandInput, options?: __HttpHandlerOptions): Promise; - registerTaskWithMaintenanceWindow(args: RegisterTaskWithMaintenanceWindowCommandInput, cb: (err: any, data?: RegisterTaskWithMaintenanceWindowCommandOutput) => void): void; - registerTaskWithMaintenanceWindow(args: RegisterTaskWithMaintenanceWindowCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RegisterTaskWithMaintenanceWindowCommandOutput) => void): void; - /** - * @see {@link RemoveTagsFromResourceCommand} - */ - removeTagsFromResource(args: RemoveTagsFromResourceCommandInput, options?: __HttpHandlerOptions): Promise; - removeTagsFromResource(args: RemoveTagsFromResourceCommandInput, cb: (err: any, data?: RemoveTagsFromResourceCommandOutput) => void): void; - removeTagsFromResource(args: RemoveTagsFromResourceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: RemoveTagsFromResourceCommandOutput) => void): void; - /** - * @see {@link ResetServiceSettingCommand} - */ - resetServiceSetting(args: ResetServiceSettingCommandInput, options?: __HttpHandlerOptions): Promise; - resetServiceSetting(args: ResetServiceSettingCommandInput, cb: (err: any, data?: ResetServiceSettingCommandOutput) => void): void; - resetServiceSetting(args: ResetServiceSettingCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ResetServiceSettingCommandOutput) => void): void; - /** - * @see {@link ResumeSessionCommand} - */ - resumeSession(args: ResumeSessionCommandInput, options?: __HttpHandlerOptions): Promise; - resumeSession(args: ResumeSessionCommandInput, cb: (err: any, data?: ResumeSessionCommandOutput) => void): void; - resumeSession(args: ResumeSessionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ResumeSessionCommandOutput) => void): void; - /** - * @see {@link SendAutomationSignalCommand} - */ - sendAutomationSignal(args: SendAutomationSignalCommandInput, options?: __HttpHandlerOptions): Promise; - sendAutomationSignal(args: SendAutomationSignalCommandInput, cb: (err: any, data?: SendAutomationSignalCommandOutput) => void): void; - sendAutomationSignal(args: SendAutomationSignalCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SendAutomationSignalCommandOutput) => void): void; - /** - * @see {@link SendCommandCommand} - */ - sendCommand(args: SendCommandCommandInput, options?: __HttpHandlerOptions): Promise; - sendCommand(args: SendCommandCommandInput, cb: (err: any, data?: SendCommandCommandOutput) => void): void; - sendCommand(args: SendCommandCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: SendCommandCommandOutput) => void): void; - /** - * @see {@link StartAssociationsOnceCommand} - */ - startAssociationsOnce(args: StartAssociationsOnceCommandInput, options?: __HttpHandlerOptions): Promise; - startAssociationsOnce(args: StartAssociationsOnceCommandInput, cb: (err: any, data?: StartAssociationsOnceCommandOutput) => void): void; - startAssociationsOnce(args: StartAssociationsOnceCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartAssociationsOnceCommandOutput) => void): void; - /** - * @see {@link StartAutomationExecutionCommand} - */ - startAutomationExecution(args: StartAutomationExecutionCommandInput, options?: __HttpHandlerOptions): Promise; - startAutomationExecution(args: StartAutomationExecutionCommandInput, cb: (err: any, data?: StartAutomationExecutionCommandOutput) => void): void; - startAutomationExecution(args: StartAutomationExecutionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartAutomationExecutionCommandOutput) => void): void; - /** - * @see {@link StartChangeRequestExecutionCommand} - */ - startChangeRequestExecution(args: StartChangeRequestExecutionCommandInput, options?: __HttpHandlerOptions): Promise; - startChangeRequestExecution(args: StartChangeRequestExecutionCommandInput, cb: (err: any, data?: StartChangeRequestExecutionCommandOutput) => void): void; - startChangeRequestExecution(args: StartChangeRequestExecutionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartChangeRequestExecutionCommandOutput) => void): void; - /** - * @see {@link StartSessionCommand} - */ - startSession(args: StartSessionCommandInput, options?: __HttpHandlerOptions): Promise; - startSession(args: StartSessionCommandInput, cb: (err: any, data?: StartSessionCommandOutput) => void): void; - startSession(args: StartSessionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StartSessionCommandOutput) => void): void; - /** - * @see {@link StopAutomationExecutionCommand} - */ - stopAutomationExecution(args: StopAutomationExecutionCommandInput, options?: __HttpHandlerOptions): Promise; - stopAutomationExecution(args: StopAutomationExecutionCommandInput, cb: (err: any, data?: StopAutomationExecutionCommandOutput) => void): void; - stopAutomationExecution(args: StopAutomationExecutionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: StopAutomationExecutionCommandOutput) => void): void; - /** - * @see {@link TerminateSessionCommand} - */ - terminateSession(args: TerminateSessionCommandInput, options?: __HttpHandlerOptions): Promise; - terminateSession(args: TerminateSessionCommandInput, cb: (err: any, data?: TerminateSessionCommandOutput) => void): void; - terminateSession(args: TerminateSessionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: TerminateSessionCommandOutput) => void): void; - /** - * @see {@link UnlabelParameterVersionCommand} - */ - unlabelParameterVersion(args: UnlabelParameterVersionCommandInput, options?: __HttpHandlerOptions): Promise; - unlabelParameterVersion(args: UnlabelParameterVersionCommandInput, cb: (err: any, data?: UnlabelParameterVersionCommandOutput) => void): void; - unlabelParameterVersion(args: UnlabelParameterVersionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UnlabelParameterVersionCommandOutput) => void): void; - /** - * @see {@link UpdateAssociationCommand} - */ - updateAssociation(args: UpdateAssociationCommandInput, options?: __HttpHandlerOptions): Promise; - updateAssociation(args: UpdateAssociationCommandInput, cb: (err: any, data?: UpdateAssociationCommandOutput) => void): void; - updateAssociation(args: UpdateAssociationCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateAssociationCommandOutput) => void): void; - /** - * @see {@link UpdateAssociationStatusCommand} - */ - updateAssociationStatus(args: UpdateAssociationStatusCommandInput, options?: __HttpHandlerOptions): Promise; - updateAssociationStatus(args: UpdateAssociationStatusCommandInput, cb: (err: any, data?: UpdateAssociationStatusCommandOutput) => void): void; - updateAssociationStatus(args: UpdateAssociationStatusCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateAssociationStatusCommandOutput) => void): void; - /** - * @see {@link UpdateDocumentCommand} - */ - updateDocument(args: UpdateDocumentCommandInput, options?: __HttpHandlerOptions): Promise; - updateDocument(args: UpdateDocumentCommandInput, cb: (err: any, data?: UpdateDocumentCommandOutput) => void): void; - updateDocument(args: UpdateDocumentCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateDocumentCommandOutput) => void): void; - /** - * @see {@link UpdateDocumentDefaultVersionCommand} - */ - updateDocumentDefaultVersion(args: UpdateDocumentDefaultVersionCommandInput, options?: __HttpHandlerOptions): Promise; - updateDocumentDefaultVersion(args: UpdateDocumentDefaultVersionCommandInput, cb: (err: any, data?: UpdateDocumentDefaultVersionCommandOutput) => void): void; - updateDocumentDefaultVersion(args: UpdateDocumentDefaultVersionCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateDocumentDefaultVersionCommandOutput) => void): void; - /** - * @see {@link UpdateDocumentMetadataCommand} - */ - updateDocumentMetadata(args: UpdateDocumentMetadataCommandInput, options?: __HttpHandlerOptions): Promise; - updateDocumentMetadata(args: UpdateDocumentMetadataCommandInput, cb: (err: any, data?: UpdateDocumentMetadataCommandOutput) => void): void; - updateDocumentMetadata(args: UpdateDocumentMetadataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateDocumentMetadataCommandOutput) => void): void; - /** - * @see {@link UpdateMaintenanceWindowCommand} - */ - updateMaintenanceWindow(args: UpdateMaintenanceWindowCommandInput, options?: __HttpHandlerOptions): Promise; - updateMaintenanceWindow(args: UpdateMaintenanceWindowCommandInput, cb: (err: any, data?: UpdateMaintenanceWindowCommandOutput) => void): void; - updateMaintenanceWindow(args: UpdateMaintenanceWindowCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateMaintenanceWindowCommandOutput) => void): void; - /** - * @see {@link UpdateMaintenanceWindowTargetCommand} - */ - updateMaintenanceWindowTarget(args: UpdateMaintenanceWindowTargetCommandInput, options?: __HttpHandlerOptions): Promise; - updateMaintenanceWindowTarget(args: UpdateMaintenanceWindowTargetCommandInput, cb: (err: any, data?: UpdateMaintenanceWindowTargetCommandOutput) => void): void; - updateMaintenanceWindowTarget(args: UpdateMaintenanceWindowTargetCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateMaintenanceWindowTargetCommandOutput) => void): void; - /** - * @see {@link UpdateMaintenanceWindowTaskCommand} - */ - updateMaintenanceWindowTask(args: UpdateMaintenanceWindowTaskCommandInput, options?: __HttpHandlerOptions): Promise; - updateMaintenanceWindowTask(args: UpdateMaintenanceWindowTaskCommandInput, cb: (err: any, data?: UpdateMaintenanceWindowTaskCommandOutput) => void): void; - updateMaintenanceWindowTask(args: UpdateMaintenanceWindowTaskCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateMaintenanceWindowTaskCommandOutput) => void): void; - /** - * @see {@link UpdateManagedInstanceRoleCommand} - */ - updateManagedInstanceRole(args: UpdateManagedInstanceRoleCommandInput, options?: __HttpHandlerOptions): Promise; - updateManagedInstanceRole(args: UpdateManagedInstanceRoleCommandInput, cb: (err: any, data?: UpdateManagedInstanceRoleCommandOutput) => void): void; - updateManagedInstanceRole(args: UpdateManagedInstanceRoleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateManagedInstanceRoleCommandOutput) => void): void; - /** - * @see {@link UpdateOpsItemCommand} - */ - updateOpsItem(args: UpdateOpsItemCommandInput, options?: __HttpHandlerOptions): Promise; - updateOpsItem(args: UpdateOpsItemCommandInput, cb: (err: any, data?: UpdateOpsItemCommandOutput) => void): void; - updateOpsItem(args: UpdateOpsItemCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateOpsItemCommandOutput) => void): void; - /** - * @see {@link UpdateOpsMetadataCommand} - */ - updateOpsMetadata(args: UpdateOpsMetadataCommandInput, options?: __HttpHandlerOptions): Promise; - updateOpsMetadata(args: UpdateOpsMetadataCommandInput, cb: (err: any, data?: UpdateOpsMetadataCommandOutput) => void): void; - updateOpsMetadata(args: UpdateOpsMetadataCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateOpsMetadataCommandOutput) => void): void; - /** - * @see {@link UpdatePatchBaselineCommand} - */ - updatePatchBaseline(args: UpdatePatchBaselineCommandInput, options?: __HttpHandlerOptions): Promise; - updatePatchBaseline(args: UpdatePatchBaselineCommandInput, cb: (err: any, data?: UpdatePatchBaselineCommandOutput) => void): void; - updatePatchBaseline(args: UpdatePatchBaselineCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdatePatchBaselineCommandOutput) => void): void; - /** - * @see {@link UpdateResourceDataSyncCommand} - */ - updateResourceDataSync(args: UpdateResourceDataSyncCommandInput, options?: __HttpHandlerOptions): Promise; - updateResourceDataSync(args: UpdateResourceDataSyncCommandInput, cb: (err: any, data?: UpdateResourceDataSyncCommandOutput) => void): void; - updateResourceDataSync(args: UpdateResourceDataSyncCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateResourceDataSyncCommandOutput) => void): void; - /** - * @see {@link UpdateServiceSettingCommand} - */ - updateServiceSetting(args: UpdateServiceSettingCommandInput, options?: __HttpHandlerOptions): Promise; - updateServiceSetting(args: UpdateServiceSettingCommandInput, cb: (err: any, data?: UpdateServiceSettingCommandOutput) => void): void; - updateServiceSetting(args: UpdateServiceSettingCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: UpdateServiceSettingCommandOutput) => void): void; -} -/** - * @public - *

Amazon Web Services Systems Manager is the operations hub for your Amazon Web Services applications and resources and a secure - * end-to-end management solution for hybrid cloud environments that enables safe and secure - * operations at scale.

- *

This reference is intended to be used with the Amazon Web Services Systems Manager User Guide. To get started, see Setting up Amazon Web Services Systems Manager.

- *

- * Related resources - *

- * - */ -export declare class SSM extends SSMClient implements SSM { -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/SSMClient.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/SSMClient.d.ts deleted file mode 100644 index 7f8d059c..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/SSMClient.d.ts +++ /dev/null @@ -1,343 +0,0 @@ -import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header"; -import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing"; -import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent"; -import { Credentials as __Credentials } from "@aws-sdk/types"; -import { RegionInputConfig, RegionResolvedConfig } from "@smithy/config-resolver"; -import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-endpoint"; -import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry"; -import { HttpHandler as __HttpHandler } from "@smithy/protocol-http"; -import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client"; -import { BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types"; -import { AddTagsToResourceCommandInput, AddTagsToResourceCommandOutput } from "./commands/AddTagsToResourceCommand"; -import { AssociateOpsItemRelatedItemCommandInput, AssociateOpsItemRelatedItemCommandOutput } from "./commands/AssociateOpsItemRelatedItemCommand"; -import { CancelCommandCommandInput, CancelCommandCommandOutput } from "./commands/CancelCommandCommand"; -import { CancelMaintenanceWindowExecutionCommandInput, CancelMaintenanceWindowExecutionCommandOutput } from "./commands/CancelMaintenanceWindowExecutionCommand"; -import { CreateActivationCommandInput, CreateActivationCommandOutput } from "./commands/CreateActivationCommand"; -import { CreateAssociationBatchCommandInput, CreateAssociationBatchCommandOutput } from "./commands/CreateAssociationBatchCommand"; -import { CreateAssociationCommandInput, CreateAssociationCommandOutput } from "./commands/CreateAssociationCommand"; -import { CreateDocumentCommandInput, CreateDocumentCommandOutput } from "./commands/CreateDocumentCommand"; -import { CreateMaintenanceWindowCommandInput, CreateMaintenanceWindowCommandOutput } from "./commands/CreateMaintenanceWindowCommand"; -import { CreateOpsItemCommandInput, CreateOpsItemCommandOutput } from "./commands/CreateOpsItemCommand"; -import { CreateOpsMetadataCommandInput, CreateOpsMetadataCommandOutput } from "./commands/CreateOpsMetadataCommand"; -import { CreatePatchBaselineCommandInput, CreatePatchBaselineCommandOutput } from "./commands/CreatePatchBaselineCommand"; -import { CreateResourceDataSyncCommandInput, CreateResourceDataSyncCommandOutput } from "./commands/CreateResourceDataSyncCommand"; -import { DeleteActivationCommandInput, DeleteActivationCommandOutput } from "./commands/DeleteActivationCommand"; -import { DeleteAssociationCommandInput, DeleteAssociationCommandOutput } from "./commands/DeleteAssociationCommand"; -import { DeleteDocumentCommandInput, DeleteDocumentCommandOutput } from "./commands/DeleteDocumentCommand"; -import { DeleteInventoryCommandInput, DeleteInventoryCommandOutput } from "./commands/DeleteInventoryCommand"; -import { DeleteMaintenanceWindowCommandInput, DeleteMaintenanceWindowCommandOutput } from "./commands/DeleteMaintenanceWindowCommand"; -import { DeleteOpsItemCommandInput, DeleteOpsItemCommandOutput } from "./commands/DeleteOpsItemCommand"; -import { DeleteOpsMetadataCommandInput, DeleteOpsMetadataCommandOutput } from "./commands/DeleteOpsMetadataCommand"; -import { DeleteParameterCommandInput, DeleteParameterCommandOutput } from "./commands/DeleteParameterCommand"; -import { DeleteParametersCommandInput, DeleteParametersCommandOutput } from "./commands/DeleteParametersCommand"; -import { DeletePatchBaselineCommandInput, DeletePatchBaselineCommandOutput } from "./commands/DeletePatchBaselineCommand"; -import { DeleteResourceDataSyncCommandInput, DeleteResourceDataSyncCommandOutput } from "./commands/DeleteResourceDataSyncCommand"; -import { DeleteResourcePolicyCommandInput, DeleteResourcePolicyCommandOutput } from "./commands/DeleteResourcePolicyCommand"; -import { DeregisterManagedInstanceCommandInput, DeregisterManagedInstanceCommandOutput } from "./commands/DeregisterManagedInstanceCommand"; -import { DeregisterPatchBaselineForPatchGroupCommandInput, DeregisterPatchBaselineForPatchGroupCommandOutput } from "./commands/DeregisterPatchBaselineForPatchGroupCommand"; -import { DeregisterTargetFromMaintenanceWindowCommandInput, DeregisterTargetFromMaintenanceWindowCommandOutput } from "./commands/DeregisterTargetFromMaintenanceWindowCommand"; -import { DeregisterTaskFromMaintenanceWindowCommandInput, DeregisterTaskFromMaintenanceWindowCommandOutput } from "./commands/DeregisterTaskFromMaintenanceWindowCommand"; -import { DescribeActivationsCommandInput, DescribeActivationsCommandOutput } from "./commands/DescribeActivationsCommand"; -import { DescribeAssociationCommandInput, DescribeAssociationCommandOutput } from "./commands/DescribeAssociationCommand"; -import { DescribeAssociationExecutionsCommandInput, DescribeAssociationExecutionsCommandOutput } from "./commands/DescribeAssociationExecutionsCommand"; -import { DescribeAssociationExecutionTargetsCommandInput, DescribeAssociationExecutionTargetsCommandOutput } from "./commands/DescribeAssociationExecutionTargetsCommand"; -import { DescribeAutomationExecutionsCommandInput, DescribeAutomationExecutionsCommandOutput } from "./commands/DescribeAutomationExecutionsCommand"; -import { DescribeAutomationStepExecutionsCommandInput, DescribeAutomationStepExecutionsCommandOutput } from "./commands/DescribeAutomationStepExecutionsCommand"; -import { DescribeAvailablePatchesCommandInput, DescribeAvailablePatchesCommandOutput } from "./commands/DescribeAvailablePatchesCommand"; -import { DescribeDocumentCommandInput, DescribeDocumentCommandOutput } from "./commands/DescribeDocumentCommand"; -import { DescribeDocumentPermissionCommandInput, DescribeDocumentPermissionCommandOutput } from "./commands/DescribeDocumentPermissionCommand"; -import { DescribeEffectiveInstanceAssociationsCommandInput, DescribeEffectiveInstanceAssociationsCommandOutput } from "./commands/DescribeEffectiveInstanceAssociationsCommand"; -import { DescribeEffectivePatchesForPatchBaselineCommandInput, DescribeEffectivePatchesForPatchBaselineCommandOutput } from "./commands/DescribeEffectivePatchesForPatchBaselineCommand"; -import { DescribeInstanceAssociationsStatusCommandInput, DescribeInstanceAssociationsStatusCommandOutput } from "./commands/DescribeInstanceAssociationsStatusCommand"; -import { DescribeInstanceInformationCommandInput, DescribeInstanceInformationCommandOutput } from "./commands/DescribeInstanceInformationCommand"; -import { DescribeInstancePatchesCommandInput, DescribeInstancePatchesCommandOutput } from "./commands/DescribeInstancePatchesCommand"; -import { DescribeInstancePatchStatesCommandInput, DescribeInstancePatchStatesCommandOutput } from "./commands/DescribeInstancePatchStatesCommand"; -import { DescribeInstancePatchStatesForPatchGroupCommandInput, DescribeInstancePatchStatesForPatchGroupCommandOutput } from "./commands/DescribeInstancePatchStatesForPatchGroupCommand"; -import { DescribeInventoryDeletionsCommandInput, DescribeInventoryDeletionsCommandOutput } from "./commands/DescribeInventoryDeletionsCommand"; -import { DescribeMaintenanceWindowExecutionsCommandInput, DescribeMaintenanceWindowExecutionsCommandOutput } from "./commands/DescribeMaintenanceWindowExecutionsCommand"; -import { DescribeMaintenanceWindowExecutionTaskInvocationsCommandInput, DescribeMaintenanceWindowExecutionTaskInvocationsCommandOutput } from "./commands/DescribeMaintenanceWindowExecutionTaskInvocationsCommand"; -import { DescribeMaintenanceWindowExecutionTasksCommandInput, DescribeMaintenanceWindowExecutionTasksCommandOutput } from "./commands/DescribeMaintenanceWindowExecutionTasksCommand"; -import { DescribeMaintenanceWindowScheduleCommandInput, DescribeMaintenanceWindowScheduleCommandOutput } from "./commands/DescribeMaintenanceWindowScheduleCommand"; -import { DescribeMaintenanceWindowsCommandInput, DescribeMaintenanceWindowsCommandOutput } from "./commands/DescribeMaintenanceWindowsCommand"; -import { DescribeMaintenanceWindowsForTargetCommandInput, DescribeMaintenanceWindowsForTargetCommandOutput } from "./commands/DescribeMaintenanceWindowsForTargetCommand"; -import { DescribeMaintenanceWindowTargetsCommandInput, DescribeMaintenanceWindowTargetsCommandOutput } from "./commands/DescribeMaintenanceWindowTargetsCommand"; -import { DescribeMaintenanceWindowTasksCommandInput, DescribeMaintenanceWindowTasksCommandOutput } from "./commands/DescribeMaintenanceWindowTasksCommand"; -import { DescribeOpsItemsCommandInput, DescribeOpsItemsCommandOutput } from "./commands/DescribeOpsItemsCommand"; -import { DescribeParametersCommandInput, DescribeParametersCommandOutput } from "./commands/DescribeParametersCommand"; -import { DescribePatchBaselinesCommandInput, DescribePatchBaselinesCommandOutput } from "./commands/DescribePatchBaselinesCommand"; -import { DescribePatchGroupsCommandInput, DescribePatchGroupsCommandOutput } from "./commands/DescribePatchGroupsCommand"; -import { DescribePatchGroupStateCommandInput, DescribePatchGroupStateCommandOutput } from "./commands/DescribePatchGroupStateCommand"; -import { DescribePatchPropertiesCommandInput, DescribePatchPropertiesCommandOutput } from "./commands/DescribePatchPropertiesCommand"; -import { DescribeSessionsCommandInput, DescribeSessionsCommandOutput } from "./commands/DescribeSessionsCommand"; -import { DisassociateOpsItemRelatedItemCommandInput, DisassociateOpsItemRelatedItemCommandOutput } from "./commands/DisassociateOpsItemRelatedItemCommand"; -import { GetAutomationExecutionCommandInput, GetAutomationExecutionCommandOutput } from "./commands/GetAutomationExecutionCommand"; -import { GetCalendarStateCommandInput, GetCalendarStateCommandOutput } from "./commands/GetCalendarStateCommand"; -import { GetCommandInvocationCommandInput, GetCommandInvocationCommandOutput } from "./commands/GetCommandInvocationCommand"; -import { GetConnectionStatusCommandInput, GetConnectionStatusCommandOutput } from "./commands/GetConnectionStatusCommand"; -import { GetDefaultPatchBaselineCommandInput, GetDefaultPatchBaselineCommandOutput } from "./commands/GetDefaultPatchBaselineCommand"; -import { GetDeployablePatchSnapshotForInstanceCommandInput, GetDeployablePatchSnapshotForInstanceCommandOutput } from "./commands/GetDeployablePatchSnapshotForInstanceCommand"; -import { GetDocumentCommandInput, GetDocumentCommandOutput } from "./commands/GetDocumentCommand"; -import { GetInventoryCommandInput, GetInventoryCommandOutput } from "./commands/GetInventoryCommand"; -import { GetInventorySchemaCommandInput, GetInventorySchemaCommandOutput } from "./commands/GetInventorySchemaCommand"; -import { GetMaintenanceWindowCommandInput, GetMaintenanceWindowCommandOutput } from "./commands/GetMaintenanceWindowCommand"; -import { GetMaintenanceWindowExecutionCommandInput, GetMaintenanceWindowExecutionCommandOutput } from "./commands/GetMaintenanceWindowExecutionCommand"; -import { GetMaintenanceWindowExecutionTaskCommandInput, GetMaintenanceWindowExecutionTaskCommandOutput } from "./commands/GetMaintenanceWindowExecutionTaskCommand"; -import { GetMaintenanceWindowExecutionTaskInvocationCommandInput, GetMaintenanceWindowExecutionTaskInvocationCommandOutput } from "./commands/GetMaintenanceWindowExecutionTaskInvocationCommand"; -import { GetMaintenanceWindowTaskCommandInput, GetMaintenanceWindowTaskCommandOutput } from "./commands/GetMaintenanceWindowTaskCommand"; -import { GetOpsItemCommandInput, GetOpsItemCommandOutput } from "./commands/GetOpsItemCommand"; -import { GetOpsMetadataCommandInput, GetOpsMetadataCommandOutput } from "./commands/GetOpsMetadataCommand"; -import { GetOpsSummaryCommandInput, GetOpsSummaryCommandOutput } from "./commands/GetOpsSummaryCommand"; -import { GetParameterCommandInput, GetParameterCommandOutput } from "./commands/GetParameterCommand"; -import { GetParameterHistoryCommandInput, GetParameterHistoryCommandOutput } from "./commands/GetParameterHistoryCommand"; -import { GetParametersByPathCommandInput, GetParametersByPathCommandOutput } from "./commands/GetParametersByPathCommand"; -import { GetParametersCommandInput, GetParametersCommandOutput } from "./commands/GetParametersCommand"; -import { GetPatchBaselineCommandInput, GetPatchBaselineCommandOutput } from "./commands/GetPatchBaselineCommand"; -import { GetPatchBaselineForPatchGroupCommandInput, GetPatchBaselineForPatchGroupCommandOutput } from "./commands/GetPatchBaselineForPatchGroupCommand"; -import { GetResourcePoliciesCommandInput, GetResourcePoliciesCommandOutput } from "./commands/GetResourcePoliciesCommand"; -import { GetServiceSettingCommandInput, GetServiceSettingCommandOutput } from "./commands/GetServiceSettingCommand"; -import { LabelParameterVersionCommandInput, LabelParameterVersionCommandOutput } from "./commands/LabelParameterVersionCommand"; -import { ListAssociationsCommandInput, ListAssociationsCommandOutput } from "./commands/ListAssociationsCommand"; -import { ListAssociationVersionsCommandInput, ListAssociationVersionsCommandOutput } from "./commands/ListAssociationVersionsCommand"; -import { ListCommandInvocationsCommandInput, ListCommandInvocationsCommandOutput } from "./commands/ListCommandInvocationsCommand"; -import { ListCommandsCommandInput, ListCommandsCommandOutput } from "./commands/ListCommandsCommand"; -import { ListComplianceItemsCommandInput, ListComplianceItemsCommandOutput } from "./commands/ListComplianceItemsCommand"; -import { ListComplianceSummariesCommandInput, ListComplianceSummariesCommandOutput } from "./commands/ListComplianceSummariesCommand"; -import { ListDocumentMetadataHistoryCommandInput, ListDocumentMetadataHistoryCommandOutput } from "./commands/ListDocumentMetadataHistoryCommand"; -import { ListDocumentsCommandInput, ListDocumentsCommandOutput } from "./commands/ListDocumentsCommand"; -import { ListDocumentVersionsCommandInput, ListDocumentVersionsCommandOutput } from "./commands/ListDocumentVersionsCommand"; -import { ListInventoryEntriesCommandInput, ListInventoryEntriesCommandOutput } from "./commands/ListInventoryEntriesCommand"; -import { ListOpsItemEventsCommandInput, ListOpsItemEventsCommandOutput } from "./commands/ListOpsItemEventsCommand"; -import { ListOpsItemRelatedItemsCommandInput, ListOpsItemRelatedItemsCommandOutput } from "./commands/ListOpsItemRelatedItemsCommand"; -import { ListOpsMetadataCommandInput, ListOpsMetadataCommandOutput } from "./commands/ListOpsMetadataCommand"; -import { ListResourceComplianceSummariesCommandInput, ListResourceComplianceSummariesCommandOutput } from "./commands/ListResourceComplianceSummariesCommand"; -import { ListResourceDataSyncCommandInput, ListResourceDataSyncCommandOutput } from "./commands/ListResourceDataSyncCommand"; -import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "./commands/ListTagsForResourceCommand"; -import { ModifyDocumentPermissionCommandInput, ModifyDocumentPermissionCommandOutput } from "./commands/ModifyDocumentPermissionCommand"; -import { PutComplianceItemsCommandInput, PutComplianceItemsCommandOutput } from "./commands/PutComplianceItemsCommand"; -import { PutInventoryCommandInput, PutInventoryCommandOutput } from "./commands/PutInventoryCommand"; -import { PutParameterCommandInput, PutParameterCommandOutput } from "./commands/PutParameterCommand"; -import { PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput } from "./commands/PutResourcePolicyCommand"; -import { RegisterDefaultPatchBaselineCommandInput, RegisterDefaultPatchBaselineCommandOutput } from "./commands/RegisterDefaultPatchBaselineCommand"; -import { RegisterPatchBaselineForPatchGroupCommandInput, RegisterPatchBaselineForPatchGroupCommandOutput } from "./commands/RegisterPatchBaselineForPatchGroupCommand"; -import { RegisterTargetWithMaintenanceWindowCommandInput, RegisterTargetWithMaintenanceWindowCommandOutput } from "./commands/RegisterTargetWithMaintenanceWindowCommand"; -import { RegisterTaskWithMaintenanceWindowCommandInput, RegisterTaskWithMaintenanceWindowCommandOutput } from "./commands/RegisterTaskWithMaintenanceWindowCommand"; -import { RemoveTagsFromResourceCommandInput, RemoveTagsFromResourceCommandOutput } from "./commands/RemoveTagsFromResourceCommand"; -import { ResetServiceSettingCommandInput, ResetServiceSettingCommandOutput } from "./commands/ResetServiceSettingCommand"; -import { ResumeSessionCommandInput, ResumeSessionCommandOutput } from "./commands/ResumeSessionCommand"; -import { SendAutomationSignalCommandInput, SendAutomationSignalCommandOutput } from "./commands/SendAutomationSignalCommand"; -import { SendCommandCommandInput, SendCommandCommandOutput } from "./commands/SendCommandCommand"; -import { StartAssociationsOnceCommandInput, StartAssociationsOnceCommandOutput } from "./commands/StartAssociationsOnceCommand"; -import { StartAutomationExecutionCommandInput, StartAutomationExecutionCommandOutput } from "./commands/StartAutomationExecutionCommand"; -import { StartChangeRequestExecutionCommandInput, StartChangeRequestExecutionCommandOutput } from "./commands/StartChangeRequestExecutionCommand"; -import { StartSessionCommandInput, StartSessionCommandOutput } from "./commands/StartSessionCommand"; -import { StopAutomationExecutionCommandInput, StopAutomationExecutionCommandOutput } from "./commands/StopAutomationExecutionCommand"; -import { TerminateSessionCommandInput, TerminateSessionCommandOutput } from "./commands/TerminateSessionCommand"; -import { UnlabelParameterVersionCommandInput, UnlabelParameterVersionCommandOutput } from "./commands/UnlabelParameterVersionCommand"; -import { UpdateAssociationCommandInput, UpdateAssociationCommandOutput } from "./commands/UpdateAssociationCommand"; -import { UpdateAssociationStatusCommandInput, UpdateAssociationStatusCommandOutput } from "./commands/UpdateAssociationStatusCommand"; -import { UpdateDocumentCommandInput, UpdateDocumentCommandOutput } from "./commands/UpdateDocumentCommand"; -import { UpdateDocumentDefaultVersionCommandInput, UpdateDocumentDefaultVersionCommandOutput } from "./commands/UpdateDocumentDefaultVersionCommand"; -import { UpdateDocumentMetadataCommandInput, UpdateDocumentMetadataCommandOutput } from "./commands/UpdateDocumentMetadataCommand"; -import { UpdateMaintenanceWindowCommandInput, UpdateMaintenanceWindowCommandOutput } from "./commands/UpdateMaintenanceWindowCommand"; -import { UpdateMaintenanceWindowTargetCommandInput, UpdateMaintenanceWindowTargetCommandOutput } from "./commands/UpdateMaintenanceWindowTargetCommand"; -import { UpdateMaintenanceWindowTaskCommandInput, UpdateMaintenanceWindowTaskCommandOutput } from "./commands/UpdateMaintenanceWindowTaskCommand"; -import { UpdateManagedInstanceRoleCommandInput, UpdateManagedInstanceRoleCommandOutput } from "./commands/UpdateManagedInstanceRoleCommand"; -import { UpdateOpsItemCommandInput, UpdateOpsItemCommandOutput } from "./commands/UpdateOpsItemCommand"; -import { UpdateOpsMetadataCommandInput, UpdateOpsMetadataCommandOutput } from "./commands/UpdateOpsMetadataCommand"; -import { UpdatePatchBaselineCommandInput, UpdatePatchBaselineCommandOutput } from "./commands/UpdatePatchBaselineCommand"; -import { UpdateResourceDataSyncCommandInput, UpdateResourceDataSyncCommandOutput } from "./commands/UpdateResourceDataSyncCommand"; -import { UpdateServiceSettingCommandInput, UpdateServiceSettingCommandOutput } from "./commands/UpdateServiceSettingCommand"; -import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters"; -import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions"; -export { __Client }; -/** - * @public - */ -export type ServiceInputTypes = AddTagsToResourceCommandInput | AssociateOpsItemRelatedItemCommandInput | CancelCommandCommandInput | CancelMaintenanceWindowExecutionCommandInput | CreateActivationCommandInput | CreateAssociationBatchCommandInput | CreateAssociationCommandInput | CreateDocumentCommandInput | CreateMaintenanceWindowCommandInput | CreateOpsItemCommandInput | CreateOpsMetadataCommandInput | CreatePatchBaselineCommandInput | CreateResourceDataSyncCommandInput | DeleteActivationCommandInput | DeleteAssociationCommandInput | DeleteDocumentCommandInput | DeleteInventoryCommandInput | DeleteMaintenanceWindowCommandInput | DeleteOpsItemCommandInput | DeleteOpsMetadataCommandInput | DeleteParameterCommandInput | DeleteParametersCommandInput | DeletePatchBaselineCommandInput | DeleteResourceDataSyncCommandInput | DeleteResourcePolicyCommandInput | DeregisterManagedInstanceCommandInput | DeregisterPatchBaselineForPatchGroupCommandInput | DeregisterTargetFromMaintenanceWindowCommandInput | DeregisterTaskFromMaintenanceWindowCommandInput | DescribeActivationsCommandInput | DescribeAssociationCommandInput | DescribeAssociationExecutionTargetsCommandInput | DescribeAssociationExecutionsCommandInput | DescribeAutomationExecutionsCommandInput | DescribeAutomationStepExecutionsCommandInput | DescribeAvailablePatchesCommandInput | DescribeDocumentCommandInput | DescribeDocumentPermissionCommandInput | DescribeEffectiveInstanceAssociationsCommandInput | DescribeEffectivePatchesForPatchBaselineCommandInput | DescribeInstanceAssociationsStatusCommandInput | DescribeInstanceInformationCommandInput | DescribeInstancePatchStatesCommandInput | DescribeInstancePatchStatesForPatchGroupCommandInput | DescribeInstancePatchesCommandInput | DescribeInventoryDeletionsCommandInput | DescribeMaintenanceWindowExecutionTaskInvocationsCommandInput | DescribeMaintenanceWindowExecutionTasksCommandInput | DescribeMaintenanceWindowExecutionsCommandInput | DescribeMaintenanceWindowScheduleCommandInput | DescribeMaintenanceWindowTargetsCommandInput | DescribeMaintenanceWindowTasksCommandInput | DescribeMaintenanceWindowsCommandInput | DescribeMaintenanceWindowsForTargetCommandInput | DescribeOpsItemsCommandInput | DescribeParametersCommandInput | DescribePatchBaselinesCommandInput | DescribePatchGroupStateCommandInput | DescribePatchGroupsCommandInput | DescribePatchPropertiesCommandInput | DescribeSessionsCommandInput | DisassociateOpsItemRelatedItemCommandInput | GetAutomationExecutionCommandInput | GetCalendarStateCommandInput | GetCommandInvocationCommandInput | GetConnectionStatusCommandInput | GetDefaultPatchBaselineCommandInput | GetDeployablePatchSnapshotForInstanceCommandInput | GetDocumentCommandInput | GetInventoryCommandInput | GetInventorySchemaCommandInput | GetMaintenanceWindowCommandInput | GetMaintenanceWindowExecutionCommandInput | GetMaintenanceWindowExecutionTaskCommandInput | GetMaintenanceWindowExecutionTaskInvocationCommandInput | GetMaintenanceWindowTaskCommandInput | GetOpsItemCommandInput | GetOpsMetadataCommandInput | GetOpsSummaryCommandInput | GetParameterCommandInput | GetParameterHistoryCommandInput | GetParametersByPathCommandInput | GetParametersCommandInput | GetPatchBaselineCommandInput | GetPatchBaselineForPatchGroupCommandInput | GetResourcePoliciesCommandInput | GetServiceSettingCommandInput | LabelParameterVersionCommandInput | ListAssociationVersionsCommandInput | ListAssociationsCommandInput | ListCommandInvocationsCommandInput | ListCommandsCommandInput | ListComplianceItemsCommandInput | ListComplianceSummariesCommandInput | ListDocumentMetadataHistoryCommandInput | ListDocumentVersionsCommandInput | ListDocumentsCommandInput | ListInventoryEntriesCommandInput | ListOpsItemEventsCommandInput | ListOpsItemRelatedItemsCommandInput | ListOpsMetadataCommandInput | ListResourceComplianceSummariesCommandInput | ListResourceDataSyncCommandInput | ListTagsForResourceCommandInput | ModifyDocumentPermissionCommandInput | PutComplianceItemsCommandInput | PutInventoryCommandInput | PutParameterCommandInput | PutResourcePolicyCommandInput | RegisterDefaultPatchBaselineCommandInput | RegisterPatchBaselineForPatchGroupCommandInput | RegisterTargetWithMaintenanceWindowCommandInput | RegisterTaskWithMaintenanceWindowCommandInput | RemoveTagsFromResourceCommandInput | ResetServiceSettingCommandInput | ResumeSessionCommandInput | SendAutomationSignalCommandInput | SendCommandCommandInput | StartAssociationsOnceCommandInput | StartAutomationExecutionCommandInput | StartChangeRequestExecutionCommandInput | StartSessionCommandInput | StopAutomationExecutionCommandInput | TerminateSessionCommandInput | UnlabelParameterVersionCommandInput | UpdateAssociationCommandInput | UpdateAssociationStatusCommandInput | UpdateDocumentCommandInput | UpdateDocumentDefaultVersionCommandInput | UpdateDocumentMetadataCommandInput | UpdateMaintenanceWindowCommandInput | UpdateMaintenanceWindowTargetCommandInput | UpdateMaintenanceWindowTaskCommandInput | UpdateManagedInstanceRoleCommandInput | UpdateOpsItemCommandInput | UpdateOpsMetadataCommandInput | UpdatePatchBaselineCommandInput | UpdateResourceDataSyncCommandInput | UpdateServiceSettingCommandInput; -/** - * @public - */ -export type ServiceOutputTypes = AddTagsToResourceCommandOutput | AssociateOpsItemRelatedItemCommandOutput | CancelCommandCommandOutput | CancelMaintenanceWindowExecutionCommandOutput | CreateActivationCommandOutput | CreateAssociationBatchCommandOutput | CreateAssociationCommandOutput | CreateDocumentCommandOutput | CreateMaintenanceWindowCommandOutput | CreateOpsItemCommandOutput | CreateOpsMetadataCommandOutput | CreatePatchBaselineCommandOutput | CreateResourceDataSyncCommandOutput | DeleteActivationCommandOutput | DeleteAssociationCommandOutput | DeleteDocumentCommandOutput | DeleteInventoryCommandOutput | DeleteMaintenanceWindowCommandOutput | DeleteOpsItemCommandOutput | DeleteOpsMetadataCommandOutput | DeleteParameterCommandOutput | DeleteParametersCommandOutput | DeletePatchBaselineCommandOutput | DeleteResourceDataSyncCommandOutput | DeleteResourcePolicyCommandOutput | DeregisterManagedInstanceCommandOutput | DeregisterPatchBaselineForPatchGroupCommandOutput | DeregisterTargetFromMaintenanceWindowCommandOutput | DeregisterTaskFromMaintenanceWindowCommandOutput | DescribeActivationsCommandOutput | DescribeAssociationCommandOutput | DescribeAssociationExecutionTargetsCommandOutput | DescribeAssociationExecutionsCommandOutput | DescribeAutomationExecutionsCommandOutput | DescribeAutomationStepExecutionsCommandOutput | DescribeAvailablePatchesCommandOutput | DescribeDocumentCommandOutput | DescribeDocumentPermissionCommandOutput | DescribeEffectiveInstanceAssociationsCommandOutput | DescribeEffectivePatchesForPatchBaselineCommandOutput | DescribeInstanceAssociationsStatusCommandOutput | DescribeInstanceInformationCommandOutput | DescribeInstancePatchStatesCommandOutput | DescribeInstancePatchStatesForPatchGroupCommandOutput | DescribeInstancePatchesCommandOutput | DescribeInventoryDeletionsCommandOutput | DescribeMaintenanceWindowExecutionTaskInvocationsCommandOutput | DescribeMaintenanceWindowExecutionTasksCommandOutput | DescribeMaintenanceWindowExecutionsCommandOutput | DescribeMaintenanceWindowScheduleCommandOutput | DescribeMaintenanceWindowTargetsCommandOutput | DescribeMaintenanceWindowTasksCommandOutput | DescribeMaintenanceWindowsCommandOutput | DescribeMaintenanceWindowsForTargetCommandOutput | DescribeOpsItemsCommandOutput | DescribeParametersCommandOutput | DescribePatchBaselinesCommandOutput | DescribePatchGroupStateCommandOutput | DescribePatchGroupsCommandOutput | DescribePatchPropertiesCommandOutput | DescribeSessionsCommandOutput | DisassociateOpsItemRelatedItemCommandOutput | GetAutomationExecutionCommandOutput | GetCalendarStateCommandOutput | GetCommandInvocationCommandOutput | GetConnectionStatusCommandOutput | GetDefaultPatchBaselineCommandOutput | GetDeployablePatchSnapshotForInstanceCommandOutput | GetDocumentCommandOutput | GetInventoryCommandOutput | GetInventorySchemaCommandOutput | GetMaintenanceWindowCommandOutput | GetMaintenanceWindowExecutionCommandOutput | GetMaintenanceWindowExecutionTaskCommandOutput | GetMaintenanceWindowExecutionTaskInvocationCommandOutput | GetMaintenanceWindowTaskCommandOutput | GetOpsItemCommandOutput | GetOpsMetadataCommandOutput | GetOpsSummaryCommandOutput | GetParameterCommandOutput | GetParameterHistoryCommandOutput | GetParametersByPathCommandOutput | GetParametersCommandOutput | GetPatchBaselineCommandOutput | GetPatchBaselineForPatchGroupCommandOutput | GetResourcePoliciesCommandOutput | GetServiceSettingCommandOutput | LabelParameterVersionCommandOutput | ListAssociationVersionsCommandOutput | ListAssociationsCommandOutput | ListCommandInvocationsCommandOutput | ListCommandsCommandOutput | ListComplianceItemsCommandOutput | ListComplianceSummariesCommandOutput | ListDocumentMetadataHistoryCommandOutput | ListDocumentVersionsCommandOutput | ListDocumentsCommandOutput | ListInventoryEntriesCommandOutput | ListOpsItemEventsCommandOutput | ListOpsItemRelatedItemsCommandOutput | ListOpsMetadataCommandOutput | ListResourceComplianceSummariesCommandOutput | ListResourceDataSyncCommandOutput | ListTagsForResourceCommandOutput | ModifyDocumentPermissionCommandOutput | PutComplianceItemsCommandOutput | PutInventoryCommandOutput | PutParameterCommandOutput | PutResourcePolicyCommandOutput | RegisterDefaultPatchBaselineCommandOutput | RegisterPatchBaselineForPatchGroupCommandOutput | RegisterTargetWithMaintenanceWindowCommandOutput | RegisterTaskWithMaintenanceWindowCommandOutput | RemoveTagsFromResourceCommandOutput | ResetServiceSettingCommandOutput | ResumeSessionCommandOutput | SendAutomationSignalCommandOutput | SendCommandCommandOutput | StartAssociationsOnceCommandOutput | StartAutomationExecutionCommandOutput | StartChangeRequestExecutionCommandOutput | StartSessionCommandOutput | StopAutomationExecutionCommandOutput | TerminateSessionCommandOutput | UnlabelParameterVersionCommandOutput | UpdateAssociationCommandOutput | UpdateAssociationStatusCommandOutput | UpdateDocumentCommandOutput | UpdateDocumentDefaultVersionCommandOutput | UpdateDocumentMetadataCommandOutput | UpdateMaintenanceWindowCommandOutput | UpdateMaintenanceWindowTargetCommandOutput | UpdateMaintenanceWindowTaskCommandOutput | UpdateManagedInstanceRoleCommandOutput | UpdateOpsItemCommandOutput | UpdateOpsMetadataCommandOutput | UpdatePatchBaselineCommandOutput | UpdateResourceDataSyncCommandOutput | UpdateServiceSettingCommandOutput; -/** - * @public - */ -export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> { - /** - * The HTTP handler to use. Fetch in browser and Https in Nodejs. - */ - requestHandler?: __HttpHandler; - /** - * A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface - * that computes the SHA-256 HMAC or checksum of a string or binary buffer. - * @internal - */ - sha256?: __ChecksumConstructor | __HashConstructor; - /** - * The function that will be used to convert strings into HTTP endpoints. - * @internal - */ - urlParser?: __UrlParser; - /** - * A function that can calculate the length of a request body. - * @internal - */ - bodyLengthChecker?: __BodyLengthCalculator; - /** - * A function that converts a stream into an array of bytes. - * @internal - */ - streamCollector?: __StreamCollector; - /** - * The function that will be used to convert a base64-encoded string to a byte array. - * @internal - */ - base64Decoder?: __Decoder; - /** - * The function that will be used to convert binary data to a base64-encoded string. - * @internal - */ - base64Encoder?: __Encoder; - /** - * The function that will be used to convert a UTF8-encoded string to a byte array. - * @internal - */ - utf8Decoder?: __Decoder; - /** - * The function that will be used to convert binary data to a UTF-8 encoded string. - * @internal - */ - utf8Encoder?: __Encoder; - /** - * The runtime environment. - * @internal - */ - runtime?: string; - /** - * Disable dynamically changing the endpoint of the client based on the hostPrefix - * trait of an operation. - */ - disableHostPrefix?: boolean; - /** - * Unique service identifier. - * @internal - */ - serviceId?: string; - /** - * Enables IPv6/IPv4 dualstack endpoint. - */ - useDualstackEndpoint?: boolean | __Provider; - /** - * Enables FIPS compatible endpoints. - */ - useFipsEndpoint?: boolean | __Provider; - /** - * The AWS region to which this client will send requests - */ - region?: string | __Provider; - /** - * Default credentials provider; Not available in browser runtime. - * @internal - */ - credentialDefaultProvider?: (input: any) => __Provider<__Credentials>; - /** - * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header - * @internal - */ - defaultUserAgentProvider?: Provider<__UserAgent>; - /** - * Value for how many times a request will be made at most in case of retry. - */ - maxAttempts?: number | __Provider; - /** - * Specifies which retry algorithm to use. - * @see https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-smithy-util-retry/Enum/RETRY_MODES/ - * - */ - retryMode?: string | __Provider; - /** - * Optional logger for logging debug/info/warn/error. - */ - logger?: __Logger; - /** - * Optional extensions - */ - extensions?: RuntimeExtension[]; - /** - * The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK. - */ - defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>; -} -/** - * @public - */ -export type SSMClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig & RetryInputConfig & HostHeaderInputConfig & AwsAuthInputConfig & UserAgentInputConfig & ClientInputEndpointParameters; -/** - * @public - * - * The configuration interface of SSMClient class constructor that set the region, credentials and other options. - */ -export interface SSMClientConfig extends SSMClientConfigType { -} -/** - * @public - */ -export type SSMClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required & RuntimeExtensionsConfig & RegionResolvedConfig & EndpointResolvedConfig & RetryResolvedConfig & HostHeaderResolvedConfig & AwsAuthResolvedConfig & UserAgentResolvedConfig & ClientResolvedEndpointParameters; -/** - * @public - * - * The resolved configuration interface of SSMClient class. This is resolved and normalized from the {@link SSMClientConfig | constructor configuration interface}. - */ -export interface SSMClientResolvedConfig extends SSMClientResolvedConfigType { -} -/** - * @public - *

Amazon Web Services Systems Manager is the operations hub for your Amazon Web Services applications and resources and a secure - * end-to-end management solution for hybrid cloud environments that enables safe and secure - * operations at scale.

- *

This reference is intended to be used with the Amazon Web Services Systems Manager User Guide. To get started, see Setting up Amazon Web Services Systems Manager.

- *

- * Related resources - *

- * - */ -export declare class SSMClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig> { - /** - * The resolved configuration of SSMClient class. This is resolved and normalized from the {@link SSMClientConfig | constructor configuration interface}. - */ - readonly config: SSMClientResolvedConfig; - constructor(...[configuration]: __CheckOptionalClientConfig); - /** - * Destroy underlying resources, like sockets. It's usually not necessary to do this. - * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed. - * Otherwise, sockets might stay open for quite a long time before the server terminates them. - */ - destroy(): void; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/AddTagsToResourceCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/AddTagsToResourceCommand.d.ts deleted file mode 100644 index b8c73b6f..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/AddTagsToResourceCommand.d.ts +++ /dev/null @@ -1,141 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { AddTagsToResourceRequest, AddTagsToResourceResult } from "../models/models_0"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link AddTagsToResourceCommand}. - */ -export interface AddTagsToResourceCommandInput extends AddTagsToResourceRequest { -} -/** - * @public - * - * The output of {@link AddTagsToResourceCommand}. - */ -export interface AddTagsToResourceCommandOutput extends AddTagsToResourceResult, __MetadataBearer { -} -/** - * @public - *

Adds or overwrites one or more tags for the specified resource. Tags - * are metadata that you can assign to your automations, documents, managed nodes, maintenance - * windows, Parameter Store parameters, and patch baselines. Tags enable you to categorize your - * resources in different ways, for example, by purpose, owner, or environment. Each tag consists of - * a key and an optional value, both of which you define. For example, you could define a set of - * tags for your account's managed nodes that helps you track each node's owner and stack level. For - * example:

- *
    - *
  • - *

    - * Key=Owner,Value=DbAdmin - *

    - *
  • - *
  • - *

    - * Key=Owner,Value=SysAdmin - *

    - *
  • - *
  • - *

    - * Key=Owner,Value=Dev - *

    - *
  • - *
  • - *

    - * Key=Stack,Value=Production - *

    - *
  • - *
  • - *

    - * Key=Stack,Value=Pre-Production - *

    - *
  • - *
  • - *

    - * Key=Stack,Value=Test - *

    - *
  • - *
- *

Most resources can have a maximum of 50 tags. Automations can have a maximum of 5 - * tags.

- *

We recommend that you devise a set of tag keys that meets your needs for each resource type. - * Using a consistent set of tag keys makes it easier for you to manage your resources. You can - * search and filter the resources based on the tags you add. Tags don't have any semantic meaning - * to and are interpreted strictly as a string of characters.

- *

For more information about using tags with Amazon Elastic Compute Cloud (Amazon EC2) instances, see Tagging your Amazon EC2 - * resources in the Amazon EC2 User Guide.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, AddTagsToResourceCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, AddTagsToResourceCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // AddTagsToResourceRequest - * ResourceType: "Document" || "ManagedInstance" || "MaintenanceWindow" || "Parameter" || "PatchBaseline" || "OpsItem" || "OpsMetadata" || "Automation" || "Association", // required - * ResourceId: "STRING_VALUE", // required - * Tags: [ // TagList // required - * { // Tag - * Key: "STRING_VALUE", // required - * Value: "STRING_VALUE", // required - * }, - * ], - * }; - * const command = new AddTagsToResourceCommand(input); - * const response = await client.send(command); - * // {}; - * - * ``` - * - * @param AddTagsToResourceCommandInput - {@link AddTagsToResourceCommandInput} - * @returns {@link AddTagsToResourceCommandOutput} - * @see {@link AddTagsToResourceCommandInput} for command's `input` shape. - * @see {@link AddTagsToResourceCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidResourceId} (client fault) - *

The resource ID isn't valid. Verify that you entered the correct ID and try again.

- * - * @throws {@link InvalidResourceType} (client fault) - *

The resource type isn't valid. For example, if you are attempting to tag an EC2 instance, - * the instance must be a registered managed node.

- * - * @throws {@link TooManyTagsError} (client fault) - *

The Targets parameter includes too many tags. Remove one or more tags and try - * the command again.

- * - * @throws {@link TooManyUpdates} (client fault) - *

There are concurrent updates for a resource that supports one update at a time.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class AddTagsToResourceCommand extends $Command { - readonly input: AddTagsToResourceCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: AddTagsToResourceCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/AssociateOpsItemRelatedItemCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/AssociateOpsItemRelatedItemCommand.d.ts deleted file mode 100644 index 0c389fc0..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/AssociateOpsItemRelatedItemCommand.d.ts +++ /dev/null @@ -1,97 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { AssociateOpsItemRelatedItemRequest, AssociateOpsItemRelatedItemResponse } from "../models/models_0"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link AssociateOpsItemRelatedItemCommand}. - */ -export interface AssociateOpsItemRelatedItemCommandInput extends AssociateOpsItemRelatedItemRequest { -} -/** - * @public - * - * The output of {@link AssociateOpsItemRelatedItemCommand}. - */ -export interface AssociateOpsItemRelatedItemCommandOutput extends AssociateOpsItemRelatedItemResponse, __MetadataBearer { -} -/** - * @public - *

Associates a related item to a Systems Manager OpsCenter OpsItem. For example, you can associate an - * Incident Manager incident or analysis with an OpsItem. Incident Manager and OpsCenter are capabilities of - * Amazon Web Services Systems Manager.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, AssociateOpsItemRelatedItemCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, AssociateOpsItemRelatedItemCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // AssociateOpsItemRelatedItemRequest - * OpsItemId: "STRING_VALUE", // required - * AssociationType: "STRING_VALUE", // required - * ResourceType: "STRING_VALUE", // required - * ResourceUri: "STRING_VALUE", // required - * }; - * const command = new AssociateOpsItemRelatedItemCommand(input); - * const response = await client.send(command); - * // { // AssociateOpsItemRelatedItemResponse - * // AssociationId: "STRING_VALUE", - * // }; - * - * ``` - * - * @param AssociateOpsItemRelatedItemCommandInput - {@link AssociateOpsItemRelatedItemCommandInput} - * @returns {@link AssociateOpsItemRelatedItemCommandOutput} - * @see {@link AssociateOpsItemRelatedItemCommandInput} for command's `input` shape. - * @see {@link AssociateOpsItemRelatedItemCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link OpsItemConflictException} (client fault) - *

The specified OpsItem is in the process of being deleted.

- * - * @throws {@link OpsItemInvalidParameterException} (client fault) - *

A specified parameter argument isn't valid. Verify the available arguments and try - * again.

- * - * @throws {@link OpsItemLimitExceededException} (client fault) - *

The request caused OpsItems to exceed one or more quotas.

- * - * @throws {@link OpsItemNotFoundException} (client fault) - *

The specified OpsItem ID doesn't exist. Verify the ID and try again.

- * - * @throws {@link OpsItemRelatedItemAlreadyExistsException} (client fault) - *

The Amazon Resource Name (ARN) is already associated with the OpsItem.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class AssociateOpsItemRelatedItemCommand extends $Command { - readonly input: AssociateOpsItemRelatedItemCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: AssociateOpsItemRelatedItemCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/CancelCommandCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/CancelCommandCommand.d.ts deleted file mode 100644 index f8d4f22b..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/CancelCommandCommand.d.ts +++ /dev/null @@ -1,104 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { CancelCommandRequest, CancelCommandResult } from "../models/models_0"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link CancelCommandCommand}. - */ -export interface CancelCommandCommandInput extends CancelCommandRequest { -} -/** - * @public - * - * The output of {@link CancelCommandCommand}. - */ -export interface CancelCommandCommandOutput extends CancelCommandResult, __MetadataBearer { -} -/** - * @public - *

Attempts to cancel the command specified by the Command ID. There is no guarantee that the - * command will be terminated and the underlying process stopped.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, CancelCommandCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, CancelCommandCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // CancelCommandRequest - * CommandId: "STRING_VALUE", // required - * InstanceIds: [ // InstanceIdList - * "STRING_VALUE", - * ], - * }; - * const command = new CancelCommandCommand(input); - * const response = await client.send(command); - * // {}; - * - * ``` - * - * @param CancelCommandCommandInput - {@link CancelCommandCommandInput} - * @returns {@link CancelCommandCommandOutput} - * @see {@link CancelCommandCommandInput} for command's `input` shape. - * @see {@link CancelCommandCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link DuplicateInstanceId} (client fault) - *

You can't specify a managed node ID in more than one association.

- * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidCommandId} (client fault) - *

The specified command ID isn't valid. Verify the ID and try again.

- * - * @throws {@link InvalidInstanceId} (client fault) - *

The following problems can cause this exception:

- *
    - *
  • - *

    You don't have permission to access the managed node.

    - *
  • - *
  • - *

    Amazon Web Services Systems Manager Agent(SSM Agent) isn't running. Verify that SSM Agent is - * running.

    - *
  • - *
  • - *

    SSM Agent isn't registered with the SSM endpoint. Try reinstalling SSM Agent.

    - *
  • - *
  • - *

    The managed node isn't in valid state. Valid states are: Running, - * Pending, Stopped, and Stopping. Invalid states are: - * Shutting-down and Terminated.

    - *
  • - *
- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class CancelCommandCommand extends $Command { - readonly input: CancelCommandCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: CancelCommandCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/CancelMaintenanceWindowExecutionCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/CancelMaintenanceWindowExecutionCommand.d.ts deleted file mode 100644 index dd68c09b..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/CancelMaintenanceWindowExecutionCommand.d.ts +++ /dev/null @@ -1,84 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { CancelMaintenanceWindowExecutionRequest, CancelMaintenanceWindowExecutionResult } from "../models/models_0"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link CancelMaintenanceWindowExecutionCommand}. - */ -export interface CancelMaintenanceWindowExecutionCommandInput extends CancelMaintenanceWindowExecutionRequest { -} -/** - * @public - * - * The output of {@link CancelMaintenanceWindowExecutionCommand}. - */ -export interface CancelMaintenanceWindowExecutionCommandOutput extends CancelMaintenanceWindowExecutionResult, __MetadataBearer { -} -/** - * @public - *

Stops a maintenance window execution that is already in progress and cancels any tasks in - * the window that haven't already starting running. Tasks already in progress will continue to - * completion.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, CancelMaintenanceWindowExecutionCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, CancelMaintenanceWindowExecutionCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // CancelMaintenanceWindowExecutionRequest - * WindowExecutionId: "STRING_VALUE", // required - * }; - * const command = new CancelMaintenanceWindowExecutionCommand(input); - * const response = await client.send(command); - * // { // CancelMaintenanceWindowExecutionResult - * // WindowExecutionId: "STRING_VALUE", - * // }; - * - * ``` - * - * @param CancelMaintenanceWindowExecutionCommandInput - {@link CancelMaintenanceWindowExecutionCommandInput} - * @returns {@link CancelMaintenanceWindowExecutionCommandOutput} - * @see {@link CancelMaintenanceWindowExecutionCommandInput} for command's `input` shape. - * @see {@link CancelMaintenanceWindowExecutionCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link DoesNotExistException} (client fault) - *

Error returned when the ID specified for a resource, such as a maintenance window or patch - * baseline, doesn't exist.

- *

For information about resource quotas in Amazon Web Services Systems Manager, see Systems Manager service quotas in the - * Amazon Web Services General Reference.

- * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class CancelMaintenanceWindowExecutionCommand extends $Command { - readonly input: CancelMaintenanceWindowExecutionCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: CancelMaintenanceWindowExecutionCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/CreateActivationCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/CreateActivationCommand.d.ts deleted file mode 100644 index 1a00b5d1..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/CreateActivationCommand.d.ts +++ /dev/null @@ -1,106 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { CreateActivationRequest, CreateActivationResult } from "../models/models_0"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link CreateActivationCommand}. - */ -export interface CreateActivationCommandInput extends CreateActivationRequest { -} -/** - * @public - * - * The output of {@link CreateActivationCommand}. - */ -export interface CreateActivationCommandOutput extends CreateActivationResult, __MetadataBearer { -} -/** - * @public - *

Generates an activation code and activation ID you can use to register your on-premises - * servers, edge devices, or virtual machine (VM) with Amazon Web Services Systems Manager. Registering these machines with - * Systems Manager makes it possible to manage them using Systems Manager capabilities. You use the activation code and - * ID when installing SSM Agent on machines in your hybrid environment. For more information about - * requirements for managing on-premises machines using Systems Manager, see Setting up - * Amazon Web Services Systems Manager for hybrid environments in the Amazon Web Services Systems Manager User Guide.

- * - *

Amazon Elastic Compute Cloud (Amazon EC2) instances, edge devices, and on-premises servers and VMs that are - * configured for Systems Manager are all called managed nodes.

- *
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, CreateActivationCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, CreateActivationCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // CreateActivationRequest - * Description: "STRING_VALUE", - * DefaultInstanceName: "STRING_VALUE", - * IamRole: "STRING_VALUE", // required - * RegistrationLimit: Number("int"), - * ExpirationDate: new Date("TIMESTAMP"), - * Tags: [ // TagList - * { // Tag - * Key: "STRING_VALUE", // required - * Value: "STRING_VALUE", // required - * }, - * ], - * RegistrationMetadata: [ // RegistrationMetadataList - * { // RegistrationMetadataItem - * Key: "STRING_VALUE", // required - * Value: "STRING_VALUE", // required - * }, - * ], - * }; - * const command = new CreateActivationCommand(input); - * const response = await client.send(command); - * // { // CreateActivationResult - * // ActivationId: "STRING_VALUE", - * // ActivationCode: "STRING_VALUE", - * // }; - * - * ``` - * - * @param CreateActivationCommandInput - {@link CreateActivationCommandInput} - * @returns {@link CreateActivationCommandOutput} - * @see {@link CreateActivationCommandInput} for command's `input` shape. - * @see {@link CreateActivationCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidParameters} (client fault) - *

You must specify values for all required parameters in the Amazon Web Services Systems Manager document (SSM - * document). You can only supply values to parameters defined in the SSM document.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class CreateActivationCommand extends $Command { - readonly input: CreateActivationCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: CreateActivationCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/CreateAssociationBatchCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/CreateAssociationBatchCommand.d.ts deleted file mode 100644 index a3016c5f..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/CreateAssociationBatchCommand.d.ts +++ /dev/null @@ -1,373 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { CreateAssociationBatchRequest, CreateAssociationBatchResult } from "../models/models_0"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link CreateAssociationBatchCommand}. - */ -export interface CreateAssociationBatchCommandInput extends CreateAssociationBatchRequest { -} -/** - * @public - * - * The output of {@link CreateAssociationBatchCommand}. - */ -export interface CreateAssociationBatchCommandOutput extends CreateAssociationBatchResult, __MetadataBearer { -} -/** - * @public - *

Associates the specified Amazon Web Services Systems Manager document (SSM document) with the specified managed nodes - * or targets.

- *

When you associate a document with one or more managed nodes using IDs or tags, Amazon Web Services Systems Manager - * Agent (SSM Agent) running on the managed node processes the document and configures the node as - * specified.

- *

If you associate a document with a managed node that already has an associated document, the - * system returns the AssociationAlreadyExists exception.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, CreateAssociationBatchCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, CreateAssociationBatchCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // CreateAssociationBatchRequest - * Entries: [ // CreateAssociationBatchRequestEntries // required - * { // CreateAssociationBatchRequestEntry - * Name: "STRING_VALUE", // required - * InstanceId: "STRING_VALUE", - * Parameters: { // Parameters - * "": [ // ParameterValueList - * "STRING_VALUE", - * ], - * }, - * AutomationTargetParameterName: "STRING_VALUE", - * DocumentVersion: "STRING_VALUE", - * Targets: [ // Targets - * { // Target - * Key: "STRING_VALUE", - * Values: [ // TargetValues - * "STRING_VALUE", - * ], - * }, - * ], - * ScheduleExpression: "STRING_VALUE", - * OutputLocation: { // InstanceAssociationOutputLocation - * S3Location: { // S3OutputLocation - * OutputS3Region: "STRING_VALUE", - * OutputS3BucketName: "STRING_VALUE", - * OutputS3KeyPrefix: "STRING_VALUE", - * }, - * }, - * AssociationName: "STRING_VALUE", - * MaxErrors: "STRING_VALUE", - * MaxConcurrency: "STRING_VALUE", - * ComplianceSeverity: "CRITICAL" || "HIGH" || "MEDIUM" || "LOW" || "UNSPECIFIED", - * SyncCompliance: "AUTO" || "MANUAL", - * ApplyOnlyAtCronInterval: true || false, - * CalendarNames: [ // CalendarNameOrARNList - * "STRING_VALUE", - * ], - * TargetLocations: [ // TargetLocations - * { // TargetLocation - * Accounts: [ // Accounts - * "STRING_VALUE", - * ], - * Regions: [ // Regions - * "STRING_VALUE", - * ], - * TargetLocationMaxConcurrency: "STRING_VALUE", - * TargetLocationMaxErrors: "STRING_VALUE", - * ExecutionRoleName: "STRING_VALUE", - * TargetLocationAlarmConfiguration: { // AlarmConfiguration - * IgnorePollAlarmFailure: true || false, - * Alarms: [ // AlarmList // required - * { // Alarm - * Name: "STRING_VALUE", // required - * }, - * ], - * }, - * }, - * ], - * ScheduleOffset: Number("int"), - * TargetMaps: [ // TargetMaps - * { // TargetMap - * "": [ // TargetMapValueList - * "STRING_VALUE", - * ], - * }, - * ], - * AlarmConfiguration: { - * IgnorePollAlarmFailure: true || false, - * Alarms: [ // required - * { - * Name: "STRING_VALUE", // required - * }, - * ], - * }, - * }, - * ], - * }; - * const command = new CreateAssociationBatchCommand(input); - * const response = await client.send(command); - * // { // CreateAssociationBatchResult - * // Successful: [ // AssociationDescriptionList - * // { // AssociationDescription - * // Name: "STRING_VALUE", - * // InstanceId: "STRING_VALUE", - * // AssociationVersion: "STRING_VALUE", - * // Date: new Date("TIMESTAMP"), - * // LastUpdateAssociationDate: new Date("TIMESTAMP"), - * // Status: { // AssociationStatus - * // Date: new Date("TIMESTAMP"), // required - * // Name: "Pending" || "Success" || "Failed", // required - * // Message: "STRING_VALUE", // required - * // AdditionalInfo: "STRING_VALUE", - * // }, - * // Overview: { // AssociationOverview - * // Status: "STRING_VALUE", - * // DetailedStatus: "STRING_VALUE", - * // AssociationStatusAggregatedCount: { // AssociationStatusAggregatedCount - * // "": Number("int"), - * // }, - * // }, - * // DocumentVersion: "STRING_VALUE", - * // AutomationTargetParameterName: "STRING_VALUE", - * // Parameters: { // Parameters - * // "": [ // ParameterValueList - * // "STRING_VALUE", - * // ], - * // }, - * // AssociationId: "STRING_VALUE", - * // Targets: [ // Targets - * // { // Target - * // Key: "STRING_VALUE", - * // Values: [ // TargetValues - * // "STRING_VALUE", - * // ], - * // }, - * // ], - * // ScheduleExpression: "STRING_VALUE", - * // OutputLocation: { // InstanceAssociationOutputLocation - * // S3Location: { // S3OutputLocation - * // OutputS3Region: "STRING_VALUE", - * // OutputS3BucketName: "STRING_VALUE", - * // OutputS3KeyPrefix: "STRING_VALUE", - * // }, - * // }, - * // LastExecutionDate: new Date("TIMESTAMP"), - * // LastSuccessfulExecutionDate: new Date("TIMESTAMP"), - * // AssociationName: "STRING_VALUE", - * // MaxErrors: "STRING_VALUE", - * // MaxConcurrency: "STRING_VALUE", - * // ComplianceSeverity: "CRITICAL" || "HIGH" || "MEDIUM" || "LOW" || "UNSPECIFIED", - * // SyncCompliance: "AUTO" || "MANUAL", - * // ApplyOnlyAtCronInterval: true || false, - * // CalendarNames: [ // CalendarNameOrARNList - * // "STRING_VALUE", - * // ], - * // TargetLocations: [ // TargetLocations - * // { // TargetLocation - * // Accounts: [ // Accounts - * // "STRING_VALUE", - * // ], - * // Regions: [ // Regions - * // "STRING_VALUE", - * // ], - * // TargetLocationMaxConcurrency: "STRING_VALUE", - * // TargetLocationMaxErrors: "STRING_VALUE", - * // ExecutionRoleName: "STRING_VALUE", - * // TargetLocationAlarmConfiguration: { // AlarmConfiguration - * // IgnorePollAlarmFailure: true || false, - * // Alarms: [ // AlarmList // required - * // { // Alarm - * // Name: "STRING_VALUE", // required - * // }, - * // ], - * // }, - * // }, - * // ], - * // ScheduleOffset: Number("int"), - * // TargetMaps: [ // TargetMaps - * // { // TargetMap - * // "": [ // TargetMapValueList - * // "STRING_VALUE", - * // ], - * // }, - * // ], - * // AlarmConfiguration: { - * // IgnorePollAlarmFailure: true || false, - * // Alarms: [ // required - * // { - * // Name: "STRING_VALUE", // required - * // }, - * // ], - * // }, - * // TriggeredAlarms: [ // AlarmStateInformationList - * // { // AlarmStateInformation - * // Name: "STRING_VALUE", // required - * // State: "UNKNOWN" || "ALARM", // required - * // }, - * // ], - * // }, - * // ], - * // Failed: [ // FailedCreateAssociationList - * // { // FailedCreateAssociation - * // Entry: { // CreateAssociationBatchRequestEntry - * // Name: "STRING_VALUE", // required - * // InstanceId: "STRING_VALUE", - * // Parameters: { - * // "": [ - * // "STRING_VALUE", - * // ], - * // }, - * // AutomationTargetParameterName: "STRING_VALUE", - * // DocumentVersion: "STRING_VALUE", - * // Targets: [ - * // { - * // Key: "STRING_VALUE", - * // Values: [ - * // "STRING_VALUE", - * // ], - * // }, - * // ], - * // ScheduleExpression: "STRING_VALUE", - * // OutputLocation: { - * // S3Location: { - * // OutputS3Region: "STRING_VALUE", - * // OutputS3BucketName: "STRING_VALUE", - * // OutputS3KeyPrefix: "STRING_VALUE", - * // }, - * // }, - * // AssociationName: "STRING_VALUE", - * // MaxErrors: "STRING_VALUE", - * // MaxConcurrency: "STRING_VALUE", - * // ComplianceSeverity: "CRITICAL" || "HIGH" || "MEDIUM" || "LOW" || "UNSPECIFIED", - * // SyncCompliance: "AUTO" || "MANUAL", - * // ApplyOnlyAtCronInterval: true || false, - * // CalendarNames: [ - * // "STRING_VALUE", - * // ], - * // TargetLocations: [ - * // { - * // Accounts: [ - * // "STRING_VALUE", - * // ], - * // Regions: [ - * // "STRING_VALUE", - * // ], - * // TargetLocationMaxConcurrency: "STRING_VALUE", - * // TargetLocationMaxErrors: "STRING_VALUE", - * // ExecutionRoleName: "STRING_VALUE", - * // TargetLocationAlarmConfiguration: "", - * // }, - * // ], - * // ScheduleOffset: Number("int"), - * // TargetMaps: [ - * // { - * // "": [ - * // "STRING_VALUE", - * // ], - * // }, - * // ], - * // AlarmConfiguration: "", - * // }, - * // Message: "STRING_VALUE", - * // Fault: "Client" || "Server" || "Unknown", - * // }, - * // ], - * // }; - * - * ``` - * - * @param CreateAssociationBatchCommandInput - {@link CreateAssociationBatchCommandInput} - * @returns {@link CreateAssociationBatchCommandOutput} - * @see {@link CreateAssociationBatchCommandInput} for command's `input` shape. - * @see {@link CreateAssociationBatchCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link AssociationLimitExceeded} (client fault) - *

You can have at most 2,000 active associations.

- * - * @throws {@link DuplicateInstanceId} (client fault) - *

You can't specify a managed node ID in more than one association.

- * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidDocument} (client fault) - *

The specified SSM document doesn't exist.

- * - * @throws {@link InvalidDocumentVersion} (client fault) - *

The document version isn't valid or doesn't exist.

- * - * @throws {@link InvalidInstanceId} (client fault) - *

The following problems can cause this exception:

- *
    - *
  • - *

    You don't have permission to access the managed node.

    - *
  • - *
  • - *

    Amazon Web Services Systems Manager Agent(SSM Agent) isn't running. Verify that SSM Agent is - * running.

    - *
  • - *
  • - *

    SSM Agent isn't registered with the SSM endpoint. Try reinstalling SSM Agent.

    - *
  • - *
  • - *

    The managed node isn't in valid state. Valid states are: Running, - * Pending, Stopped, and Stopping. Invalid states are: - * Shutting-down and Terminated.

    - *
  • - *
- * - * @throws {@link InvalidOutputLocation} (client fault) - *

The output location isn't valid or doesn't exist.

- * - * @throws {@link InvalidParameters} (client fault) - *

You must specify values for all required parameters in the Amazon Web Services Systems Manager document (SSM - * document). You can only supply values to parameters defined in the SSM document.

- * - * @throws {@link InvalidSchedule} (client fault) - *

The schedule is invalid. Verify your cron or rate expression and try again.

- * - * @throws {@link InvalidTarget} (client fault) - *

The target isn't valid or doesn't exist. It might not be configured for Systems Manager or you might - * not have permission to perform the operation.

- * - * @throws {@link InvalidTargetMaps} (client fault) - *

TargetMap parameter isn't valid.

- * - * @throws {@link UnsupportedPlatformType} (client fault) - *

The document doesn't support the platform type of the given managed node ID(s). For example, - * you sent an document for a Windows managed node to a Linux node.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class CreateAssociationBatchCommand extends $Command { - readonly input: CreateAssociationBatchCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: CreateAssociationBatchCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/CreateAssociationCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/CreateAssociationCommand.d.ts deleted file mode 100644 index aaee8878..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/CreateAssociationCommand.d.ts +++ /dev/null @@ -1,314 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { CreateAssociationRequest, CreateAssociationResult } from "../models/models_0"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link CreateAssociationCommand}. - */ -export interface CreateAssociationCommandInput extends CreateAssociationRequest { -} -/** - * @public - * - * The output of {@link CreateAssociationCommand}. - */ -export interface CreateAssociationCommandOutput extends CreateAssociationResult, __MetadataBearer { -} -/** - * @public - *

A State Manager association defines the state that you want to maintain on your managed - * nodes. For example, an association can specify that anti-virus software must be installed and - * running on your managed nodes, or that certain ports must be closed. For static targets, the - * association specifies a schedule for when the configuration is reapplied. For dynamic targets, - * such as an Amazon Web Services resource group or an Amazon Web Services autoscaling group, State Manager, a capability of - * Amazon Web Services Systems Manager applies the configuration when new managed nodes are added to the group. The - * association also specifies actions to take when applying the configuration. For example, an - * association for anti-virus software might run once a day. If the software isn't installed, then - * State Manager installs it. If the software is installed, but the service isn't running, then the - * association might instruct State Manager to start the service.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, CreateAssociationCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, CreateAssociationCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // CreateAssociationRequest - * Name: "STRING_VALUE", // required - * DocumentVersion: "STRING_VALUE", - * InstanceId: "STRING_VALUE", - * Parameters: { // Parameters - * "": [ // ParameterValueList - * "STRING_VALUE", - * ], - * }, - * Targets: [ // Targets - * { // Target - * Key: "STRING_VALUE", - * Values: [ // TargetValues - * "STRING_VALUE", - * ], - * }, - * ], - * ScheduleExpression: "STRING_VALUE", - * OutputLocation: { // InstanceAssociationOutputLocation - * S3Location: { // S3OutputLocation - * OutputS3Region: "STRING_VALUE", - * OutputS3BucketName: "STRING_VALUE", - * OutputS3KeyPrefix: "STRING_VALUE", - * }, - * }, - * AssociationName: "STRING_VALUE", - * AutomationTargetParameterName: "STRING_VALUE", - * MaxErrors: "STRING_VALUE", - * MaxConcurrency: "STRING_VALUE", - * ComplianceSeverity: "CRITICAL" || "HIGH" || "MEDIUM" || "LOW" || "UNSPECIFIED", - * SyncCompliance: "AUTO" || "MANUAL", - * ApplyOnlyAtCronInterval: true || false, - * CalendarNames: [ // CalendarNameOrARNList - * "STRING_VALUE", - * ], - * TargetLocations: [ // TargetLocations - * { // TargetLocation - * Accounts: [ // Accounts - * "STRING_VALUE", - * ], - * Regions: [ // Regions - * "STRING_VALUE", - * ], - * TargetLocationMaxConcurrency: "STRING_VALUE", - * TargetLocationMaxErrors: "STRING_VALUE", - * ExecutionRoleName: "STRING_VALUE", - * TargetLocationAlarmConfiguration: { // AlarmConfiguration - * IgnorePollAlarmFailure: true || false, - * Alarms: [ // AlarmList // required - * { // Alarm - * Name: "STRING_VALUE", // required - * }, - * ], - * }, - * }, - * ], - * ScheduleOffset: Number("int"), - * TargetMaps: [ // TargetMaps - * { // TargetMap - * "": [ // TargetMapValueList - * "STRING_VALUE", - * ], - * }, - * ], - * Tags: [ // TagList - * { // Tag - * Key: "STRING_VALUE", // required - * Value: "STRING_VALUE", // required - * }, - * ], - * AlarmConfiguration: { - * IgnorePollAlarmFailure: true || false, - * Alarms: [ // required - * { - * Name: "STRING_VALUE", // required - * }, - * ], - * }, - * }; - * const command = new CreateAssociationCommand(input); - * const response = await client.send(command); - * // { // CreateAssociationResult - * // AssociationDescription: { // AssociationDescription - * // Name: "STRING_VALUE", - * // InstanceId: "STRING_VALUE", - * // AssociationVersion: "STRING_VALUE", - * // Date: new Date("TIMESTAMP"), - * // LastUpdateAssociationDate: new Date("TIMESTAMP"), - * // Status: { // AssociationStatus - * // Date: new Date("TIMESTAMP"), // required - * // Name: "Pending" || "Success" || "Failed", // required - * // Message: "STRING_VALUE", // required - * // AdditionalInfo: "STRING_VALUE", - * // }, - * // Overview: { // AssociationOverview - * // Status: "STRING_VALUE", - * // DetailedStatus: "STRING_VALUE", - * // AssociationStatusAggregatedCount: { // AssociationStatusAggregatedCount - * // "": Number("int"), - * // }, - * // }, - * // DocumentVersion: "STRING_VALUE", - * // AutomationTargetParameterName: "STRING_VALUE", - * // Parameters: { // Parameters - * // "": [ // ParameterValueList - * // "STRING_VALUE", - * // ], - * // }, - * // AssociationId: "STRING_VALUE", - * // Targets: [ // Targets - * // { // Target - * // Key: "STRING_VALUE", - * // Values: [ // TargetValues - * // "STRING_VALUE", - * // ], - * // }, - * // ], - * // ScheduleExpression: "STRING_VALUE", - * // OutputLocation: { // InstanceAssociationOutputLocation - * // S3Location: { // S3OutputLocation - * // OutputS3Region: "STRING_VALUE", - * // OutputS3BucketName: "STRING_VALUE", - * // OutputS3KeyPrefix: "STRING_VALUE", - * // }, - * // }, - * // LastExecutionDate: new Date("TIMESTAMP"), - * // LastSuccessfulExecutionDate: new Date("TIMESTAMP"), - * // AssociationName: "STRING_VALUE", - * // MaxErrors: "STRING_VALUE", - * // MaxConcurrency: "STRING_VALUE", - * // ComplianceSeverity: "CRITICAL" || "HIGH" || "MEDIUM" || "LOW" || "UNSPECIFIED", - * // SyncCompliance: "AUTO" || "MANUAL", - * // ApplyOnlyAtCronInterval: true || false, - * // CalendarNames: [ // CalendarNameOrARNList - * // "STRING_VALUE", - * // ], - * // TargetLocations: [ // TargetLocations - * // { // TargetLocation - * // Accounts: [ // Accounts - * // "STRING_VALUE", - * // ], - * // Regions: [ // Regions - * // "STRING_VALUE", - * // ], - * // TargetLocationMaxConcurrency: "STRING_VALUE", - * // TargetLocationMaxErrors: "STRING_VALUE", - * // ExecutionRoleName: "STRING_VALUE", - * // TargetLocationAlarmConfiguration: { // AlarmConfiguration - * // IgnorePollAlarmFailure: true || false, - * // Alarms: [ // AlarmList // required - * // { // Alarm - * // Name: "STRING_VALUE", // required - * // }, - * // ], - * // }, - * // }, - * // ], - * // ScheduleOffset: Number("int"), - * // TargetMaps: [ // TargetMaps - * // { // TargetMap - * // "": [ // TargetMapValueList - * // "STRING_VALUE", - * // ], - * // }, - * // ], - * // AlarmConfiguration: { - * // IgnorePollAlarmFailure: true || false, - * // Alarms: [ // required - * // { - * // Name: "STRING_VALUE", // required - * // }, - * // ], - * // }, - * // TriggeredAlarms: [ // AlarmStateInformationList - * // { // AlarmStateInformation - * // Name: "STRING_VALUE", // required - * // State: "UNKNOWN" || "ALARM", // required - * // }, - * // ], - * // }, - * // }; - * - * ``` - * - * @param CreateAssociationCommandInput - {@link CreateAssociationCommandInput} - * @returns {@link CreateAssociationCommandOutput} - * @see {@link CreateAssociationCommandInput} for command's `input` shape. - * @see {@link CreateAssociationCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link AssociationAlreadyExists} (client fault) - *

The specified association already exists.

- * - * @throws {@link AssociationLimitExceeded} (client fault) - *

You can have at most 2,000 active associations.

- * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidDocument} (client fault) - *

The specified SSM document doesn't exist.

- * - * @throws {@link InvalidDocumentVersion} (client fault) - *

The document version isn't valid or doesn't exist.

- * - * @throws {@link InvalidInstanceId} (client fault) - *

The following problems can cause this exception:

- *
    - *
  • - *

    You don't have permission to access the managed node.

    - *
  • - *
  • - *

    Amazon Web Services Systems Manager Agent(SSM Agent) isn't running. Verify that SSM Agent is - * running.

    - *
  • - *
  • - *

    SSM Agent isn't registered with the SSM endpoint. Try reinstalling SSM Agent.

    - *
  • - *
  • - *

    The managed node isn't in valid state. Valid states are: Running, - * Pending, Stopped, and Stopping. Invalid states are: - * Shutting-down and Terminated.

    - *
  • - *
- * - * @throws {@link InvalidOutputLocation} (client fault) - *

The output location isn't valid or doesn't exist.

- * - * @throws {@link InvalidParameters} (client fault) - *

You must specify values for all required parameters in the Amazon Web Services Systems Manager document (SSM - * document). You can only supply values to parameters defined in the SSM document.

- * - * @throws {@link InvalidSchedule} (client fault) - *

The schedule is invalid. Verify your cron or rate expression and try again.

- * - * @throws {@link InvalidTag} (client fault) - *

The specified tag key or value isn't valid.

- * - * @throws {@link InvalidTarget} (client fault) - *

The target isn't valid or doesn't exist. It might not be configured for Systems Manager or you might - * not have permission to perform the operation.

- * - * @throws {@link InvalidTargetMaps} (client fault) - *

TargetMap parameter isn't valid.

- * - * @throws {@link UnsupportedPlatformType} (client fault) - *

The document doesn't support the platform type of the given managed node ID(s). For example, - * you sent an document for a Windows managed node to a Linux node.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class CreateAssociationCommand extends $Command { - readonly input: CreateAssociationCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: CreateAssociationCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/CreateDocumentCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/CreateDocumentCommand.d.ts deleted file mode 100644 index 243f5eea..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/CreateDocumentCommand.d.ts +++ /dev/null @@ -1,189 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { CreateDocumentRequest, CreateDocumentResult } from "../models/models_0"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link CreateDocumentCommand}. - */ -export interface CreateDocumentCommandInput extends CreateDocumentRequest { -} -/** - * @public - * - * The output of {@link CreateDocumentCommand}. - */ -export interface CreateDocumentCommandOutput extends CreateDocumentResult, __MetadataBearer { -} -/** - * @public - *

Creates a Amazon Web Services Systems Manager (SSM document). An SSM document defines the actions that Systems Manager performs - * on your managed nodes. For more information about SSM documents, including information about - * supported schemas, features, and syntax, see Amazon Web Services Systems Manager Documents in the - * Amazon Web Services Systems Manager User Guide.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, CreateDocumentCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, CreateDocumentCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // CreateDocumentRequest - * Content: "STRING_VALUE", // required - * Requires: [ // DocumentRequiresList - * { // DocumentRequires - * Name: "STRING_VALUE", // required - * Version: "STRING_VALUE", - * RequireType: "STRING_VALUE", - * VersionName: "STRING_VALUE", - * }, - * ], - * Attachments: [ // AttachmentsSourceList - * { // AttachmentsSource - * Key: "SourceUrl" || "S3FileUrl" || "AttachmentReference", - * Values: [ // AttachmentsSourceValues - * "STRING_VALUE", - * ], - * Name: "STRING_VALUE", - * }, - * ], - * Name: "STRING_VALUE", // required - * DisplayName: "STRING_VALUE", - * VersionName: "STRING_VALUE", - * DocumentType: "Command" || "Policy" || "Automation" || "Session" || "Package" || "ApplicationConfiguration" || "ApplicationConfigurationSchema" || "DeploymentStrategy" || "ChangeCalendar" || "Automation.ChangeTemplate" || "ProblemAnalysis" || "ProblemAnalysisTemplate" || "CloudFormation" || "ConformancePackTemplate" || "QuickSetup", - * DocumentFormat: "YAML" || "JSON" || "TEXT", - * TargetType: "STRING_VALUE", - * Tags: [ // TagList - * { // Tag - * Key: "STRING_VALUE", // required - * Value: "STRING_VALUE", // required - * }, - * ], - * }; - * const command = new CreateDocumentCommand(input); - * const response = await client.send(command); - * // { // CreateDocumentResult - * // DocumentDescription: { // DocumentDescription - * // Sha1: "STRING_VALUE", - * // Hash: "STRING_VALUE", - * // HashType: "Sha256" || "Sha1", - * // Name: "STRING_VALUE", - * // DisplayName: "STRING_VALUE", - * // VersionName: "STRING_VALUE", - * // Owner: "STRING_VALUE", - * // CreatedDate: new Date("TIMESTAMP"), - * // Status: "Creating" || "Active" || "Updating" || "Deleting" || "Failed", - * // StatusInformation: "STRING_VALUE", - * // DocumentVersion: "STRING_VALUE", - * // Description: "STRING_VALUE", - * // Parameters: [ // DocumentParameterList - * // { // DocumentParameter - * // Name: "STRING_VALUE", - * // Type: "String" || "StringList", - * // Description: "STRING_VALUE", - * // DefaultValue: "STRING_VALUE", - * // }, - * // ], - * // PlatformTypes: [ // PlatformTypeList - * // "Windows" || "Linux" || "MacOS", - * // ], - * // DocumentType: "Command" || "Policy" || "Automation" || "Session" || "Package" || "ApplicationConfiguration" || "ApplicationConfigurationSchema" || "DeploymentStrategy" || "ChangeCalendar" || "Automation.ChangeTemplate" || "ProblemAnalysis" || "ProblemAnalysisTemplate" || "CloudFormation" || "ConformancePackTemplate" || "QuickSetup", - * // SchemaVersion: "STRING_VALUE", - * // LatestVersion: "STRING_VALUE", - * // DefaultVersion: "STRING_VALUE", - * // DocumentFormat: "YAML" || "JSON" || "TEXT", - * // TargetType: "STRING_VALUE", - * // Tags: [ // TagList - * // { // Tag - * // Key: "STRING_VALUE", // required - * // Value: "STRING_VALUE", // required - * // }, - * // ], - * // AttachmentsInformation: [ // AttachmentInformationList - * // { // AttachmentInformation - * // Name: "STRING_VALUE", - * // }, - * // ], - * // Requires: [ // DocumentRequiresList - * // { // DocumentRequires - * // Name: "STRING_VALUE", // required - * // Version: "STRING_VALUE", - * // RequireType: "STRING_VALUE", - * // VersionName: "STRING_VALUE", - * // }, - * // ], - * // Author: "STRING_VALUE", - * // ReviewInformation: [ // ReviewInformationList - * // { // ReviewInformation - * // ReviewedTime: new Date("TIMESTAMP"), - * // Status: "APPROVED" || "NOT_REVIEWED" || "PENDING" || "REJECTED", - * // Reviewer: "STRING_VALUE", - * // }, - * // ], - * // ApprovedVersion: "STRING_VALUE", - * // PendingReviewVersion: "STRING_VALUE", - * // ReviewStatus: "APPROVED" || "NOT_REVIEWED" || "PENDING" || "REJECTED", - * // Category: [ // CategoryList - * // "STRING_VALUE", - * // ], - * // CategoryEnum: [ // CategoryEnumList - * // "STRING_VALUE", - * // ], - * // }, - * // }; - * - * ``` - * - * @param CreateDocumentCommandInput - {@link CreateDocumentCommandInput} - * @returns {@link CreateDocumentCommandOutput} - * @see {@link CreateDocumentCommandInput} for command's `input` shape. - * @see {@link CreateDocumentCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link DocumentAlreadyExists} (client fault) - *

The specified document already exists.

- * - * @throws {@link DocumentLimitExceeded} (client fault) - *

You can have at most 500 active SSM documents.

- * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidDocumentContent} (client fault) - *

The content for the document isn't valid.

- * - * @throws {@link InvalidDocumentSchemaVersion} (client fault) - *

The version of the document schema isn't supported.

- * - * @throws {@link MaxDocumentSizeExceeded} (client fault) - *

The size limit of a document is 64 KB.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class CreateDocumentCommand extends $Command { - readonly input: CreateDocumentCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: CreateDocumentCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/CreateMaintenanceWindowCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/CreateMaintenanceWindowCommand.d.ts deleted file mode 100644 index 6301c29b..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/CreateMaintenanceWindowCommand.d.ts +++ /dev/null @@ -1,110 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { CreateMaintenanceWindowRequest, CreateMaintenanceWindowResult } from "../models/models_0"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link CreateMaintenanceWindowCommand}. - */ -export interface CreateMaintenanceWindowCommandInput extends CreateMaintenanceWindowRequest { -} -/** - * @public - * - * The output of {@link CreateMaintenanceWindowCommand}. - */ -export interface CreateMaintenanceWindowCommandOutput extends CreateMaintenanceWindowResult, __MetadataBearer { -} -/** - * @public - *

Creates a new maintenance window.

- * - *

The value you specify for Duration determines the specific end time for the - * maintenance window based on the time it begins. No maintenance window tasks are permitted to - * start after the resulting endtime minus the number of hours you specify for Cutoff. - * For example, if the maintenance window starts at 3 PM, the duration is three hours, and the - * value you specify for Cutoff is one hour, no maintenance window tasks can start - * after 5 PM.

- *
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, CreateMaintenanceWindowCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, CreateMaintenanceWindowCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // CreateMaintenanceWindowRequest - * Name: "STRING_VALUE", // required - * Description: "STRING_VALUE", - * StartDate: "STRING_VALUE", - * EndDate: "STRING_VALUE", - * Schedule: "STRING_VALUE", // required - * ScheduleTimezone: "STRING_VALUE", - * ScheduleOffset: Number("int"), - * Duration: Number("int"), // required - * Cutoff: Number("int"), // required - * AllowUnassociatedTargets: true || false, // required - * ClientToken: "STRING_VALUE", - * Tags: [ // TagList - * { // Tag - * Key: "STRING_VALUE", // required - * Value: "STRING_VALUE", // required - * }, - * ], - * }; - * const command = new CreateMaintenanceWindowCommand(input); - * const response = await client.send(command); - * // { // CreateMaintenanceWindowResult - * // WindowId: "STRING_VALUE", - * // }; - * - * ``` - * - * @param CreateMaintenanceWindowCommandInput - {@link CreateMaintenanceWindowCommandInput} - * @returns {@link CreateMaintenanceWindowCommandOutput} - * @see {@link CreateMaintenanceWindowCommandInput} for command's `input` shape. - * @see {@link CreateMaintenanceWindowCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link IdempotentParameterMismatch} (client fault) - *

Error returned when an idempotent operation is retried and the parameters don't match the - * original call to the API with the same idempotency token.

- * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link ResourceLimitExceededException} (client fault) - *

Error returned when the caller has exceeded the default resource quotas. For example, too - * many maintenance windows or patch baselines have been created.

- *

For information about resource quotas in Systems Manager, see Systems Manager service quotas in the - * Amazon Web Services General Reference.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class CreateMaintenanceWindowCommand extends $Command { - readonly input: CreateMaintenanceWindowCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: CreateMaintenanceWindowCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/CreateOpsItemCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/CreateOpsItemCommand.d.ts deleted file mode 100644 index 81b2ec6d..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/CreateOpsItemCommand.d.ts +++ /dev/null @@ -1,130 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { CreateOpsItemRequest, CreateOpsItemResponse } from "../models/models_0"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link CreateOpsItemCommand}. - */ -export interface CreateOpsItemCommandInput extends CreateOpsItemRequest { -} -/** - * @public - * - * The output of {@link CreateOpsItemCommand}. - */ -export interface CreateOpsItemCommandOutput extends CreateOpsItemResponse, __MetadataBearer { -} -/** - * @public - *

Creates a new OpsItem. You must have permission in Identity and Access Management (IAM) to create a new OpsItem. For more information, see Set up OpsCenter in the - * Amazon Web Services Systems Manager User Guide.

- *

Operations engineers and IT professionals use Amazon Web Services Systems Manager OpsCenter to view, investigate, and - * remediate operational issues impacting the performance and health of their Amazon Web Services resources. For - * more information, see Amazon Web Services Systems Manager OpsCenter in the - * Amazon Web Services Systems Manager User Guide.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, CreateOpsItemCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, CreateOpsItemCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // CreateOpsItemRequest - * Description: "STRING_VALUE", // required - * OpsItemType: "STRING_VALUE", - * OperationalData: { // OpsItemOperationalData - * "": { // OpsItemDataValue - * Value: "STRING_VALUE", - * Type: "SearchableString" || "String", - * }, - * }, - * Notifications: [ // OpsItemNotifications - * { // OpsItemNotification - * Arn: "STRING_VALUE", - * }, - * ], - * Priority: Number("int"), - * RelatedOpsItems: [ // RelatedOpsItems - * { // RelatedOpsItem - * OpsItemId: "STRING_VALUE", // required - * }, - * ], - * Source: "STRING_VALUE", // required - * Title: "STRING_VALUE", // required - * Tags: [ // TagList - * { // Tag - * Key: "STRING_VALUE", // required - * Value: "STRING_VALUE", // required - * }, - * ], - * Category: "STRING_VALUE", - * Severity: "STRING_VALUE", - * ActualStartTime: new Date("TIMESTAMP"), - * ActualEndTime: new Date("TIMESTAMP"), - * PlannedStartTime: new Date("TIMESTAMP"), - * PlannedEndTime: new Date("TIMESTAMP"), - * AccountId: "STRING_VALUE", - * }; - * const command = new CreateOpsItemCommand(input); - * const response = await client.send(command); - * // { // CreateOpsItemResponse - * // OpsItemId: "STRING_VALUE", - * // OpsItemArn: "STRING_VALUE", - * // }; - * - * ``` - * - * @param CreateOpsItemCommandInput - {@link CreateOpsItemCommandInput} - * @returns {@link CreateOpsItemCommandOutput} - * @see {@link CreateOpsItemCommandInput} for command's `input` shape. - * @see {@link CreateOpsItemCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link OpsItemAccessDeniedException} (client fault) - *

You don't have permission to view OpsItems in the specified account. Verify that your account - * is configured either as a Systems Manager delegated administrator or that you are logged into the Organizations - * management account.

- * - * @throws {@link OpsItemAlreadyExistsException} (client fault) - *

The OpsItem already exists.

- * - * @throws {@link OpsItemInvalidParameterException} (client fault) - *

A specified parameter argument isn't valid. Verify the available arguments and try - * again.

- * - * @throws {@link OpsItemLimitExceededException} (client fault) - *

The request caused OpsItems to exceed one or more quotas.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class CreateOpsItemCommand extends $Command { - readonly input: CreateOpsItemCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: CreateOpsItemCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/CreateOpsMetadataCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/CreateOpsMetadataCommand.d.ts deleted file mode 100644 index ee415cab..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/CreateOpsMetadataCommand.d.ts +++ /dev/null @@ -1,102 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { CreateOpsMetadataRequest, CreateOpsMetadataResult } from "../models/models_0"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link CreateOpsMetadataCommand}. - */ -export interface CreateOpsMetadataCommandInput extends CreateOpsMetadataRequest { -} -/** - * @public - * - * The output of {@link CreateOpsMetadataCommand}. - */ -export interface CreateOpsMetadataCommandOutput extends CreateOpsMetadataResult, __MetadataBearer { -} -/** - * @public - *

If you create a new application in Application Manager, Amazon Web Services Systems Manager calls this API operation to specify - * information about the new application, including the application type.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, CreateOpsMetadataCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, CreateOpsMetadataCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // CreateOpsMetadataRequest - * ResourceId: "STRING_VALUE", // required - * Metadata: { // MetadataMap - * "": { // MetadataValue - * Value: "STRING_VALUE", - * }, - * }, - * Tags: [ // TagList - * { // Tag - * Key: "STRING_VALUE", // required - * Value: "STRING_VALUE", // required - * }, - * ], - * }; - * const command = new CreateOpsMetadataCommand(input); - * const response = await client.send(command); - * // { // CreateOpsMetadataResult - * // OpsMetadataArn: "STRING_VALUE", - * // }; - * - * ``` - * - * @param CreateOpsMetadataCommandInput - {@link CreateOpsMetadataCommandInput} - * @returns {@link CreateOpsMetadataCommandOutput} - * @see {@link CreateOpsMetadataCommandInput} for command's `input` shape. - * @see {@link CreateOpsMetadataCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link OpsMetadataAlreadyExistsException} (client fault) - *

An OpsMetadata object already exists for the selected resource.

- * - * @throws {@link OpsMetadataInvalidArgumentException} (client fault) - *

One of the arguments passed is invalid.

- * - * @throws {@link OpsMetadataLimitExceededException} (client fault) - *

Your account reached the maximum number of OpsMetadata objects allowed by Application Manager. The - * maximum is 200 OpsMetadata objects. Delete one or more OpsMetadata object and try again.

- * - * @throws {@link OpsMetadataTooManyUpdatesException} (client fault) - *

The system is processing too many concurrent updates. Wait a few moments and try - * again.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class CreateOpsMetadataCommand extends $Command { - readonly input: CreateOpsMetadataCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: CreateOpsMetadataCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/CreatePatchBaselineCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/CreatePatchBaselineCommand.d.ts deleted file mode 100644 index 6ba163a7..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/CreatePatchBaselineCommand.d.ts +++ /dev/null @@ -1,147 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { CreatePatchBaselineRequest, CreatePatchBaselineResult } from "../models/models_0"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link CreatePatchBaselineCommand}. - */ -export interface CreatePatchBaselineCommandInput extends CreatePatchBaselineRequest { -} -/** - * @public - * - * The output of {@link CreatePatchBaselineCommand}. - */ -export interface CreatePatchBaselineCommandOutput extends CreatePatchBaselineResult, __MetadataBearer { -} -/** - * @public - *

Creates a patch baseline.

- * - *

For information about valid key-value pairs in PatchFilters for each supported - * operating system type, see PatchFilter.

- *
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, CreatePatchBaselineCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, CreatePatchBaselineCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // CreatePatchBaselineRequest - * OperatingSystem: "WINDOWS" || "AMAZON_LINUX" || "AMAZON_LINUX_2" || "AMAZON_LINUX_2022" || "UBUNTU" || "REDHAT_ENTERPRISE_LINUX" || "SUSE" || "CENTOS" || "ORACLE_LINUX" || "DEBIAN" || "MACOS" || "RASPBIAN" || "ROCKY_LINUX" || "ALMA_LINUX" || "AMAZON_LINUX_2023", - * Name: "STRING_VALUE", // required - * GlobalFilters: { // PatchFilterGroup - * PatchFilters: [ // PatchFilterList // required - * { // PatchFilter - * Key: "ARCH" || "ADVISORY_ID" || "BUGZILLA_ID" || "PATCH_SET" || "PRODUCT" || "PRODUCT_FAMILY" || "CLASSIFICATION" || "CVE_ID" || "EPOCH" || "MSRC_SEVERITY" || "NAME" || "PATCH_ID" || "SECTION" || "PRIORITY" || "REPOSITORY" || "RELEASE" || "SEVERITY" || "SECURITY" || "VERSION", // required - * Values: [ // PatchFilterValueList // required - * "STRING_VALUE", - * ], - * }, - * ], - * }, - * ApprovalRules: { // PatchRuleGroup - * PatchRules: [ // PatchRuleList // required - * { // PatchRule - * PatchFilterGroup: { - * PatchFilters: [ // required - * { - * Key: "ARCH" || "ADVISORY_ID" || "BUGZILLA_ID" || "PATCH_SET" || "PRODUCT" || "PRODUCT_FAMILY" || "CLASSIFICATION" || "CVE_ID" || "EPOCH" || "MSRC_SEVERITY" || "NAME" || "PATCH_ID" || "SECTION" || "PRIORITY" || "REPOSITORY" || "RELEASE" || "SEVERITY" || "SECURITY" || "VERSION", // required - * Values: [ // required - * "STRING_VALUE", - * ], - * }, - * ], - * }, - * ComplianceLevel: "CRITICAL" || "HIGH" || "MEDIUM" || "LOW" || "INFORMATIONAL" || "UNSPECIFIED", - * ApproveAfterDays: Number("int"), - * ApproveUntilDate: "STRING_VALUE", - * EnableNonSecurity: true || false, - * }, - * ], - * }, - * ApprovedPatches: [ // PatchIdList - * "STRING_VALUE", - * ], - * ApprovedPatchesComplianceLevel: "CRITICAL" || "HIGH" || "MEDIUM" || "LOW" || "INFORMATIONAL" || "UNSPECIFIED", - * ApprovedPatchesEnableNonSecurity: true || false, - * RejectedPatches: [ - * "STRING_VALUE", - * ], - * RejectedPatchesAction: "ALLOW_AS_DEPENDENCY" || "BLOCK", - * Description: "STRING_VALUE", - * Sources: [ // PatchSourceList - * { // PatchSource - * Name: "STRING_VALUE", // required - * Products: [ // PatchSourceProductList // required - * "STRING_VALUE", - * ], - * Configuration: "STRING_VALUE", // required - * }, - * ], - * ClientToken: "STRING_VALUE", - * Tags: [ // TagList - * { // Tag - * Key: "STRING_VALUE", // required - * Value: "STRING_VALUE", // required - * }, - * ], - * }; - * const command = new CreatePatchBaselineCommand(input); - * const response = await client.send(command); - * // { // CreatePatchBaselineResult - * // BaselineId: "STRING_VALUE", - * // }; - * - * ``` - * - * @param CreatePatchBaselineCommandInput - {@link CreatePatchBaselineCommandInput} - * @returns {@link CreatePatchBaselineCommandOutput} - * @see {@link CreatePatchBaselineCommandInput} for command's `input` shape. - * @see {@link CreatePatchBaselineCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link IdempotentParameterMismatch} (client fault) - *

Error returned when an idempotent operation is retried and the parameters don't match the - * original call to the API with the same idempotency token.

- * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link ResourceLimitExceededException} (client fault) - *

Error returned when the caller has exceeded the default resource quotas. For example, too - * many maintenance windows or patch baselines have been created.

- *

For information about resource quotas in Systems Manager, see Systems Manager service quotas in the - * Amazon Web Services General Reference.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class CreatePatchBaselineCommand extends $Command { - readonly input: CreatePatchBaselineCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: CreatePatchBaselineCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/CreateResourceDataSyncCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/CreateResourceDataSyncCommand.d.ts deleted file mode 100644 index 779deccc..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/CreateResourceDataSyncCommand.d.ts +++ /dev/null @@ -1,130 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { CreateResourceDataSyncRequest, CreateResourceDataSyncResult } from "../models/models_0"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link CreateResourceDataSyncCommand}. - */ -export interface CreateResourceDataSyncCommandInput extends CreateResourceDataSyncRequest { -} -/** - * @public - * - * The output of {@link CreateResourceDataSyncCommand}. - */ -export interface CreateResourceDataSyncCommandOutput extends CreateResourceDataSyncResult, __MetadataBearer { -} -/** - * @public - *

A resource data sync helps you view data from multiple sources in a single location. - * Amazon Web Services Systems Manager offers two types of resource data sync: SyncToDestination and - * SyncFromSource.

- *

You can configure Systems Manager Inventory to use the SyncToDestination type to - * synchronize Inventory data from multiple Amazon Web Services Regions to a single Amazon Simple Storage Service (Amazon S3) bucket. For more information, see Configuring resource data - * sync for Inventory in the Amazon Web Services Systems Manager User Guide.

- *

You can configure Systems Manager Explorer to use the SyncFromSource type to synchronize - * operational work items (OpsItems) and operational data (OpsData) from multiple Amazon Web Services Regions to a - * single Amazon S3 bucket. This type can synchronize OpsItems and OpsData from multiple - * Amazon Web Services accounts and Amazon Web Services Regions or EntireOrganization by using Organizations. For more - * information, see Setting up Systems Manager - * Explorer to display data from multiple accounts and Regions in the - * Amazon Web Services Systems Manager User Guide.

- *

A resource data sync is an asynchronous operation that returns immediately. After a - * successful initial sync is completed, the system continuously syncs data. To check the status of - * a sync, use the ListResourceDataSync.

- * - *

By default, data isn't encrypted in Amazon S3. We strongly recommend that you - * enable encryption in Amazon S3 to ensure secure data storage. We also recommend that you - * secure access to the Amazon S3 bucket by creating a restrictive bucket policy.

- *
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, CreateResourceDataSyncCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, CreateResourceDataSyncCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // CreateResourceDataSyncRequest - * SyncName: "STRING_VALUE", // required - * S3Destination: { // ResourceDataSyncS3Destination - * BucketName: "STRING_VALUE", // required - * Prefix: "STRING_VALUE", - * SyncFormat: "JsonSerDe", // required - * Region: "STRING_VALUE", // required - * AWSKMSKeyARN: "STRING_VALUE", - * DestinationDataSharing: { // ResourceDataSyncDestinationDataSharing - * DestinationDataSharingType: "STRING_VALUE", - * }, - * }, - * SyncType: "STRING_VALUE", - * SyncSource: { // ResourceDataSyncSource - * SourceType: "STRING_VALUE", // required - * AwsOrganizationsSource: { // ResourceDataSyncAwsOrganizationsSource - * OrganizationSourceType: "STRING_VALUE", // required - * OrganizationalUnits: [ // ResourceDataSyncOrganizationalUnitList - * { // ResourceDataSyncOrganizationalUnit - * OrganizationalUnitId: "STRING_VALUE", - * }, - * ], - * }, - * SourceRegions: [ // ResourceDataSyncSourceRegionList // required - * "STRING_VALUE", - * ], - * IncludeFutureRegions: true || false, - * EnableAllOpsDataSources: true || false, - * }, - * }; - * const command = new CreateResourceDataSyncCommand(input); - * const response = await client.send(command); - * // {}; - * - * ``` - * - * @param CreateResourceDataSyncCommandInput - {@link CreateResourceDataSyncCommandInput} - * @returns {@link CreateResourceDataSyncCommandOutput} - * @see {@link CreateResourceDataSyncCommandInput} for command's `input` shape. - * @see {@link CreateResourceDataSyncCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link ResourceDataSyncAlreadyExistsException} (client fault) - *

A sync configuration with the same name already exists.

- * - * @throws {@link ResourceDataSyncCountExceededException} (client fault) - *

You have exceeded the allowed maximum sync configurations.

- * - * @throws {@link ResourceDataSyncInvalidConfigurationException} (client fault) - *

The specified sync configuration is invalid.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class CreateResourceDataSyncCommand extends $Command { - readonly input: CreateResourceDataSyncCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: CreateResourceDataSyncCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeleteActivationCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeleteActivationCommand.d.ts deleted file mode 100644 index 5944488a..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeleteActivationCommand.d.ts +++ /dev/null @@ -1,87 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { DeleteActivationRequest, DeleteActivationResult } from "../models/models_0"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link DeleteActivationCommand}. - */ -export interface DeleteActivationCommandInput extends DeleteActivationRequest { -} -/** - * @public - * - * The output of {@link DeleteActivationCommand}. - */ -export interface DeleteActivationCommandOutput extends DeleteActivationResult, __MetadataBearer { -} -/** - * @public - *

Deletes an activation. You aren't required to delete an activation. If you delete an - * activation, you can no longer use it to register additional managed nodes. Deleting an activation - * doesn't de-register managed nodes. You must manually de-register managed nodes.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, DeleteActivationCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, DeleteActivationCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // DeleteActivationRequest - * ActivationId: "STRING_VALUE", // required - * }; - * const command = new DeleteActivationCommand(input); - * const response = await client.send(command); - * // {}; - * - * ``` - * - * @param DeleteActivationCommandInput - {@link DeleteActivationCommandInput} - * @returns {@link DeleteActivationCommandOutput} - * @see {@link DeleteActivationCommandInput} for command's `input` shape. - * @see {@link DeleteActivationCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidActivation} (client fault) - *

The activation isn't valid. The activation might have been deleted, or the ActivationId and - * the ActivationCode don't match.

- * - * @throws {@link InvalidActivationId} (client fault) - *

The activation ID isn't valid. Verify the you entered the correct ActivationId or - * ActivationCode and try again.

- * - * @throws {@link TooManyUpdates} (client fault) - *

There are concurrent updates for a resource that supports one update at a time.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class DeleteActivationCommand extends $Command { - readonly input: DeleteActivationCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: DeleteActivationCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeleteAssociationCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeleteAssociationCommand.d.ts deleted file mode 100644 index 6caea72d..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeleteAssociationCommand.d.ts +++ /dev/null @@ -1,111 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { DeleteAssociationRequest, DeleteAssociationResult } from "../models/models_0"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link DeleteAssociationCommand}. - */ -export interface DeleteAssociationCommandInput extends DeleteAssociationRequest { -} -/** - * @public - * - * The output of {@link DeleteAssociationCommand}. - */ -export interface DeleteAssociationCommandOutput extends DeleteAssociationResult, __MetadataBearer { -} -/** - * @public - *

Disassociates the specified Amazon Web Services Systems Manager document (SSM document) from the specified managed - * node. If you created the association by using the Targets parameter, then you must - * delete the association by using the association ID.

- *

When you disassociate a document from a managed node, it doesn't change the configuration of - * the node. To change the configuration state of a managed node after you disassociate a document, - * you must create a new document with the desired configuration and associate it with the - * node.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, DeleteAssociationCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, DeleteAssociationCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // DeleteAssociationRequest - * Name: "STRING_VALUE", - * InstanceId: "STRING_VALUE", - * AssociationId: "STRING_VALUE", - * }; - * const command = new DeleteAssociationCommand(input); - * const response = await client.send(command); - * // {}; - * - * ``` - * - * @param DeleteAssociationCommandInput - {@link DeleteAssociationCommandInput} - * @returns {@link DeleteAssociationCommandOutput} - * @see {@link DeleteAssociationCommandInput} for command's `input` shape. - * @see {@link DeleteAssociationCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link AssociationDoesNotExist} (client fault) - *

The specified association doesn't exist.

- * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidDocument} (client fault) - *

The specified SSM document doesn't exist.

- * - * @throws {@link InvalidInstanceId} (client fault) - *

The following problems can cause this exception:

- *
    - *
  • - *

    You don't have permission to access the managed node.

    - *
  • - *
  • - *

    Amazon Web Services Systems Manager Agent(SSM Agent) isn't running. Verify that SSM Agent is - * running.

    - *
  • - *
  • - *

    SSM Agent isn't registered with the SSM endpoint. Try reinstalling SSM Agent.

    - *
  • - *
  • - *

    The managed node isn't in valid state. Valid states are: Running, - * Pending, Stopped, and Stopping. Invalid states are: - * Shutting-down and Terminated.

    - *
  • - *
- * - * @throws {@link TooManyUpdates} (client fault) - *

There are concurrent updates for a resource that supports one update at a time.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class DeleteAssociationCommand extends $Command { - readonly input: DeleteAssociationCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: DeleteAssociationCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeleteDocumentCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeleteDocumentCommand.d.ts deleted file mode 100644 index 72fe51ae..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeleteDocumentCommand.d.ts +++ /dev/null @@ -1,89 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { DeleteDocumentRequest, DeleteDocumentResult } from "../models/models_0"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link DeleteDocumentCommand}. - */ -export interface DeleteDocumentCommandInput extends DeleteDocumentRequest { -} -/** - * @public - * - * The output of {@link DeleteDocumentCommand}. - */ -export interface DeleteDocumentCommandOutput extends DeleteDocumentResult, __MetadataBearer { -} -/** - * @public - *

Deletes the Amazon Web Services Systems Manager document (SSM document) and all managed node associations to the - * document.

- *

Before you delete the document, we recommend that you use DeleteAssociation to disassociate all managed nodes that are associated with the document.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, DeleteDocumentCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, DeleteDocumentCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // DeleteDocumentRequest - * Name: "STRING_VALUE", // required - * DocumentVersion: "STRING_VALUE", - * VersionName: "STRING_VALUE", - * Force: true || false, - * }; - * const command = new DeleteDocumentCommand(input); - * const response = await client.send(command); - * // {}; - * - * ``` - * - * @param DeleteDocumentCommandInput - {@link DeleteDocumentCommandInput} - * @returns {@link DeleteDocumentCommandOutput} - * @see {@link DeleteDocumentCommandInput} for command's `input` shape. - * @see {@link DeleteDocumentCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link AssociatedInstances} (client fault) - *

You must disassociate a document from all managed nodes before you can delete it.

- * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidDocument} (client fault) - *

The specified SSM document doesn't exist.

- * - * @throws {@link InvalidDocumentOperation} (client fault) - *

You attempted to delete a document while it is still shared. You must stop sharing the - * document before you can delete it.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class DeleteDocumentCommand extends $Command { - readonly input: DeleteDocumentCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: DeleteDocumentCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeleteInventoryCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeleteInventoryCommand.d.ts deleted file mode 100644 index bd9408aa..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeleteInventoryCommand.d.ts +++ /dev/null @@ -1,105 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { DeleteInventoryRequest, DeleteInventoryResult } from "../models/models_0"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link DeleteInventoryCommand}. - */ -export interface DeleteInventoryCommandInput extends DeleteInventoryRequest { -} -/** - * @public - * - * The output of {@link DeleteInventoryCommand}. - */ -export interface DeleteInventoryCommandOutput extends DeleteInventoryResult, __MetadataBearer { -} -/** - * @public - *

Delete a custom inventory type or the data associated with a custom Inventory type. Deleting - * a custom inventory type is also referred to as deleting a custom inventory schema.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, DeleteInventoryCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, DeleteInventoryCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // DeleteInventoryRequest - * TypeName: "STRING_VALUE", // required - * SchemaDeleteOption: "DisableSchema" || "DeleteSchema", - * DryRun: true || false, - * ClientToken: "STRING_VALUE", - * }; - * const command = new DeleteInventoryCommand(input); - * const response = await client.send(command); - * // { // DeleteInventoryResult - * // DeletionId: "STRING_VALUE", - * // TypeName: "STRING_VALUE", - * // DeletionSummary: { // InventoryDeletionSummary - * // TotalCount: Number("int"), - * // RemainingCount: Number("int"), - * // SummaryItems: [ // InventoryDeletionSummaryItems - * // { // InventoryDeletionSummaryItem - * // Version: "STRING_VALUE", - * // Count: Number("int"), - * // RemainingCount: Number("int"), - * // }, - * // ], - * // }, - * // }; - * - * ``` - * - * @param DeleteInventoryCommandInput - {@link DeleteInventoryCommandInput} - * @returns {@link DeleteInventoryCommandOutput} - * @see {@link DeleteInventoryCommandInput} for command's `input` shape. - * @see {@link DeleteInventoryCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidDeleteInventoryParametersException} (client fault) - *

One or more of the parameters specified for the delete operation isn't valid. Verify all - * parameters and try again.

- * - * @throws {@link InvalidInventoryRequestException} (client fault) - *

The request isn't valid.

- * - * @throws {@link InvalidOptionException} (client fault) - *

The delete inventory option specified isn't valid. Verify the option and try again.

- * - * @throws {@link InvalidTypeNameException} (client fault) - *

The parameter type name isn't valid.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class DeleteInventoryCommand extends $Command { - readonly input: DeleteInventoryCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: DeleteInventoryCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeleteMaintenanceWindowCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeleteMaintenanceWindowCommand.d.ts deleted file mode 100644 index 8b3fca2e..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeleteMaintenanceWindowCommand.d.ts +++ /dev/null @@ -1,76 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { DeleteMaintenanceWindowRequest, DeleteMaintenanceWindowResult } from "../models/models_0"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link DeleteMaintenanceWindowCommand}. - */ -export interface DeleteMaintenanceWindowCommandInput extends DeleteMaintenanceWindowRequest { -} -/** - * @public - * - * The output of {@link DeleteMaintenanceWindowCommand}. - */ -export interface DeleteMaintenanceWindowCommandOutput extends DeleteMaintenanceWindowResult, __MetadataBearer { -} -/** - * @public - *

Deletes a maintenance window.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, DeleteMaintenanceWindowCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, DeleteMaintenanceWindowCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // DeleteMaintenanceWindowRequest - * WindowId: "STRING_VALUE", // required - * }; - * const command = new DeleteMaintenanceWindowCommand(input); - * const response = await client.send(command); - * // { // DeleteMaintenanceWindowResult - * // WindowId: "STRING_VALUE", - * // }; - * - * ``` - * - * @param DeleteMaintenanceWindowCommandInput - {@link DeleteMaintenanceWindowCommandInput} - * @returns {@link DeleteMaintenanceWindowCommandOutput} - * @see {@link DeleteMaintenanceWindowCommandInput} for command's `input` shape. - * @see {@link DeleteMaintenanceWindowCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class DeleteMaintenanceWindowCommand extends $Command { - readonly input: DeleteMaintenanceWindowCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: DeleteMaintenanceWindowCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeleteOpsItemCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeleteOpsItemCommand.d.ts deleted file mode 100644 index 1598ac4e..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeleteOpsItemCommand.d.ts +++ /dev/null @@ -1,105 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { DeleteOpsItemRequest, DeleteOpsItemResponse } from "../models/models_0"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link DeleteOpsItemCommand}. - */ -export interface DeleteOpsItemCommandInput extends DeleteOpsItemRequest { -} -/** - * @public - * - * The output of {@link DeleteOpsItemCommand}. - */ -export interface DeleteOpsItemCommandOutput extends DeleteOpsItemResponse, __MetadataBearer { -} -/** - * @public - *

Delete an OpsItem. You must have permission in Identity and Access Management (IAM) to - * delete an OpsItem.

- * - *

Note the following important information about this operation.

- *
    - *
  • - *

    Deleting an OpsItem is irreversible. You can't restore a deleted OpsItem.

    - *
  • - *
  • - *

    This operation uses an eventual consistency model, which means the - * system can take a few minutes to complete this operation. If you delete an OpsItem and - * immediately call, for example, GetOpsItem, the deleted OpsItem might still - * appear in the response.

    - *
  • - *
  • - *

    This operation is idempotent. The system doesn't throw an exception if you repeatedly - * call this operation for the same OpsItem. If the first call is successful, all additional calls - * return the same successful response as the first call.

    - *
  • - *
  • - *

    This operation doesn't support cross-account calls. A delegated administrator or - * management account can't delete OpsItems in other accounts, even if OpsCenter has been set up for - * cross-account administration. For more information about cross-account administration, see - * Setting up - * OpsCenter to centrally manage OpsItems across accounts in the Systems Manager User Guide.

    - *
  • - *
- *
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, DeleteOpsItemCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, DeleteOpsItemCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // DeleteOpsItemRequest - * OpsItemId: "STRING_VALUE", // required - * }; - * const command = new DeleteOpsItemCommand(input); - * const response = await client.send(command); - * // {}; - * - * ``` - * - * @param DeleteOpsItemCommandInput - {@link DeleteOpsItemCommandInput} - * @returns {@link DeleteOpsItemCommandOutput} - * @see {@link DeleteOpsItemCommandInput} for command's `input` shape. - * @see {@link DeleteOpsItemCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link OpsItemInvalidParameterException} (client fault) - *

A specified parameter argument isn't valid. Verify the available arguments and try - * again.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class DeleteOpsItemCommand extends $Command { - readonly input: DeleteOpsItemCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: DeleteOpsItemCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeleteOpsMetadataCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeleteOpsMetadataCommand.d.ts deleted file mode 100644 index d41c2d1f..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeleteOpsMetadataCommand.d.ts +++ /dev/null @@ -1,80 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { DeleteOpsMetadataRequest, DeleteOpsMetadataResult } from "../models/models_0"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link DeleteOpsMetadataCommand}. - */ -export interface DeleteOpsMetadataCommandInput extends DeleteOpsMetadataRequest { -} -/** - * @public - * - * The output of {@link DeleteOpsMetadataCommand}. - */ -export interface DeleteOpsMetadataCommandOutput extends DeleteOpsMetadataResult, __MetadataBearer { -} -/** - * @public - *

Delete OpsMetadata related to an application.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, DeleteOpsMetadataCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, DeleteOpsMetadataCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // DeleteOpsMetadataRequest - * OpsMetadataArn: "STRING_VALUE", // required - * }; - * const command = new DeleteOpsMetadataCommand(input); - * const response = await client.send(command); - * // {}; - * - * ``` - * - * @param DeleteOpsMetadataCommandInput - {@link DeleteOpsMetadataCommandInput} - * @returns {@link DeleteOpsMetadataCommandOutput} - * @see {@link DeleteOpsMetadataCommandInput} for command's `input` shape. - * @see {@link DeleteOpsMetadataCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link OpsMetadataInvalidArgumentException} (client fault) - *

One of the arguments passed is invalid.

- * - * @throws {@link OpsMetadataNotFoundException} (client fault) - *

The OpsMetadata object doesn't exist.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class DeleteOpsMetadataCommand extends $Command { - readonly input: DeleteOpsMetadataCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: DeleteOpsMetadataCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeleteParameterCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeleteParameterCommand.d.ts deleted file mode 100644 index e32cf751..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeleteParameterCommand.d.ts +++ /dev/null @@ -1,78 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { DeleteParameterRequest, DeleteParameterResult } from "../models/models_0"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link DeleteParameterCommand}. - */ -export interface DeleteParameterCommandInput extends DeleteParameterRequest { -} -/** - * @public - * - * The output of {@link DeleteParameterCommand}. - */ -export interface DeleteParameterCommandOutput extends DeleteParameterResult, __MetadataBearer { -} -/** - * @public - *

Delete a parameter from the system. After deleting a parameter, wait for at least 30 seconds - * to create a parameter with the same name.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, DeleteParameterCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, DeleteParameterCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // DeleteParameterRequest - * Name: "STRING_VALUE", // required - * }; - * const command = new DeleteParameterCommand(input); - * const response = await client.send(command); - * // {}; - * - * ``` - * - * @param DeleteParameterCommandInput - {@link DeleteParameterCommandInput} - * @returns {@link DeleteParameterCommandOutput} - * @see {@link DeleteParameterCommandInput} for command's `input` shape. - * @see {@link DeleteParameterCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link ParameterNotFound} (client fault) - *

The parameter couldn't be found. Verify the name and try again.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class DeleteParameterCommand extends $Command { - readonly input: DeleteParameterCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: DeleteParameterCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeleteParametersCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeleteParametersCommand.d.ts deleted file mode 100644 index c2bb777c..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeleteParametersCommand.d.ts +++ /dev/null @@ -1,84 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { DeleteParametersRequest, DeleteParametersResult } from "../models/models_0"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link DeleteParametersCommand}. - */ -export interface DeleteParametersCommandInput extends DeleteParametersRequest { -} -/** - * @public - * - * The output of {@link DeleteParametersCommand}. - */ -export interface DeleteParametersCommandOutput extends DeleteParametersResult, __MetadataBearer { -} -/** - * @public - *

Delete a list of parameters. After deleting a parameter, wait for at least 30 seconds to - * create a parameter with the same name.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, DeleteParametersCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, DeleteParametersCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // DeleteParametersRequest - * Names: [ // ParameterNameList // required - * "STRING_VALUE", - * ], - * }; - * const command = new DeleteParametersCommand(input); - * const response = await client.send(command); - * // { // DeleteParametersResult - * // DeletedParameters: [ // ParameterNameList - * // "STRING_VALUE", - * // ], - * // InvalidParameters: [ - * // "STRING_VALUE", - * // ], - * // }; - * - * ``` - * - * @param DeleteParametersCommandInput - {@link DeleteParametersCommandInput} - * @returns {@link DeleteParametersCommandOutput} - * @see {@link DeleteParametersCommandInput} for command's `input` shape. - * @see {@link DeleteParametersCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class DeleteParametersCommand extends $Command { - readonly input: DeleteParametersCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: DeleteParametersCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeletePatchBaselineCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeletePatchBaselineCommand.d.ts deleted file mode 100644 index 7c19b026..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeletePatchBaselineCommand.d.ts +++ /dev/null @@ -1,80 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { DeletePatchBaselineRequest, DeletePatchBaselineResult } from "../models/models_0"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link DeletePatchBaselineCommand}. - */ -export interface DeletePatchBaselineCommandInput extends DeletePatchBaselineRequest { -} -/** - * @public - * - * The output of {@link DeletePatchBaselineCommand}. - */ -export interface DeletePatchBaselineCommandOutput extends DeletePatchBaselineResult, __MetadataBearer { -} -/** - * @public - *

Deletes a patch baseline.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, DeletePatchBaselineCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, DeletePatchBaselineCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // DeletePatchBaselineRequest - * BaselineId: "STRING_VALUE", // required - * }; - * const command = new DeletePatchBaselineCommand(input); - * const response = await client.send(command); - * // { // DeletePatchBaselineResult - * // BaselineId: "STRING_VALUE", - * // }; - * - * ``` - * - * @param DeletePatchBaselineCommandInput - {@link DeletePatchBaselineCommandInput} - * @returns {@link DeletePatchBaselineCommandOutput} - * @see {@link DeletePatchBaselineCommandInput} for command's `input` shape. - * @see {@link DeletePatchBaselineCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link ResourceInUseException} (client fault) - *

Error returned if an attempt is made to delete a patch baseline that is registered for a - * patch group.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class DeletePatchBaselineCommand extends $Command { - readonly input: DeletePatchBaselineCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: DeletePatchBaselineCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeleteResourceDataSyncCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeleteResourceDataSyncCommand.d.ts deleted file mode 100644 index 1c8072ca..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeleteResourceDataSyncCommand.d.ts +++ /dev/null @@ -1,83 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { DeleteResourceDataSyncRequest, DeleteResourceDataSyncResult } from "../models/models_0"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link DeleteResourceDataSyncCommand}. - */ -export interface DeleteResourceDataSyncCommandInput extends DeleteResourceDataSyncRequest { -} -/** - * @public - * - * The output of {@link DeleteResourceDataSyncCommand}. - */ -export interface DeleteResourceDataSyncCommandOutput extends DeleteResourceDataSyncResult, __MetadataBearer { -} -/** - * @public - *

Deletes a resource data sync configuration. After the configuration is deleted, changes to - * data on managed nodes are no longer synced to or from the target. Deleting a sync configuration - * doesn't delete data.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, DeleteResourceDataSyncCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, DeleteResourceDataSyncCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // DeleteResourceDataSyncRequest - * SyncName: "STRING_VALUE", // required - * SyncType: "STRING_VALUE", - * }; - * const command = new DeleteResourceDataSyncCommand(input); - * const response = await client.send(command); - * // {}; - * - * ``` - * - * @param DeleteResourceDataSyncCommandInput - {@link DeleteResourceDataSyncCommandInput} - * @returns {@link DeleteResourceDataSyncCommandOutput} - * @see {@link DeleteResourceDataSyncCommandInput} for command's `input` shape. - * @see {@link DeleteResourceDataSyncCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link ResourceDataSyncInvalidConfigurationException} (client fault) - *

The specified sync configuration is invalid.

- * - * @throws {@link ResourceDataSyncNotFoundException} (client fault) - *

The specified sync name wasn't found.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class DeleteResourceDataSyncCommand extends $Command { - readonly input: DeleteResourceDataSyncCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: DeleteResourceDataSyncCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeleteResourcePolicyCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeleteResourcePolicyCommand.d.ts deleted file mode 100644 index 585e6dbb..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeleteResourcePolicyCommand.d.ts +++ /dev/null @@ -1,88 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { DeleteResourcePolicyRequest, DeleteResourcePolicyResponse } from "../models/models_0"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link DeleteResourcePolicyCommand}. - */ -export interface DeleteResourcePolicyCommandInput extends DeleteResourcePolicyRequest { -} -/** - * @public - * - * The output of {@link DeleteResourcePolicyCommand}. - */ -export interface DeleteResourcePolicyCommandOutput extends DeleteResourcePolicyResponse, __MetadataBearer { -} -/** - * @public - *

Deletes a Systems Manager resource policy. A resource policy helps you to define the IAM entity (for example, an Amazon Web Services account) that can manage your Systems Manager resources. Currently, - * OpsItemGroup is the only resource that supports Systems Manager resource policies. The - * resource policy for OpsItemGroup enables Amazon Web Services accounts to view and interact with - * OpsCenter operational work items (OpsItems).

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, DeleteResourcePolicyCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, DeleteResourcePolicyCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // DeleteResourcePolicyRequest - * ResourceArn: "STRING_VALUE", // required - * PolicyId: "STRING_VALUE", // required - * PolicyHash: "STRING_VALUE", // required - * }; - * const command = new DeleteResourcePolicyCommand(input); - * const response = await client.send(command); - * // {}; - * - * ``` - * - * @param DeleteResourcePolicyCommandInput - {@link DeleteResourcePolicyCommandInput} - * @returns {@link DeleteResourcePolicyCommandOutput} - * @see {@link DeleteResourcePolicyCommandInput} for command's `input` shape. - * @see {@link DeleteResourcePolicyCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link ResourcePolicyConflictException} (client fault) - *

The hash provided in the call doesn't match the stored hash. This exception is thrown when - * trying to update an obsolete policy version or when multiple requests to update a policy are - * sent.

- * - * @throws {@link ResourcePolicyInvalidParameterException} (client fault) - *

One or more parameters specified for the call aren't valid. Verify the parameters and their - * values and try again.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class DeleteResourcePolicyCommand extends $Command { - readonly input: DeleteResourcePolicyCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: DeleteResourcePolicyCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeregisterManagedInstanceCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeregisterManagedInstanceCommand.d.ts deleted file mode 100644 index 99e5119a..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeregisterManagedInstanceCommand.d.ts +++ /dev/null @@ -1,96 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { DeregisterManagedInstanceRequest, DeregisterManagedInstanceResult } from "../models/models_0"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link DeregisterManagedInstanceCommand}. - */ -export interface DeregisterManagedInstanceCommandInput extends DeregisterManagedInstanceRequest { -} -/** - * @public - * - * The output of {@link DeregisterManagedInstanceCommand}. - */ -export interface DeregisterManagedInstanceCommandOutput extends DeregisterManagedInstanceResult, __MetadataBearer { -} -/** - * @public - *

Removes the server or virtual machine from the list of registered servers. You can - * reregister the node again at any time. If you don't plan to use Run Command on the server, we - * suggest uninstalling SSM Agent first.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, DeregisterManagedInstanceCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, DeregisterManagedInstanceCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // DeregisterManagedInstanceRequest - * InstanceId: "STRING_VALUE", // required - * }; - * const command = new DeregisterManagedInstanceCommand(input); - * const response = await client.send(command); - * // {}; - * - * ``` - * - * @param DeregisterManagedInstanceCommandInput - {@link DeregisterManagedInstanceCommandInput} - * @returns {@link DeregisterManagedInstanceCommandOutput} - * @see {@link DeregisterManagedInstanceCommandInput} for command's `input` shape. - * @see {@link DeregisterManagedInstanceCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidInstanceId} (client fault) - *

The following problems can cause this exception:

- *
    - *
  • - *

    You don't have permission to access the managed node.

    - *
  • - *
  • - *

    Amazon Web Services Systems Manager Agent(SSM Agent) isn't running. Verify that SSM Agent is - * running.

    - *
  • - *
  • - *

    SSM Agent isn't registered with the SSM endpoint. Try reinstalling SSM Agent.

    - *
  • - *
  • - *

    The managed node isn't in valid state. Valid states are: Running, - * Pending, Stopped, and Stopping. Invalid states are: - * Shutting-down and Terminated.

    - *
  • - *
- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class DeregisterManagedInstanceCommand extends $Command { - readonly input: DeregisterManagedInstanceCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: DeregisterManagedInstanceCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeregisterPatchBaselineForPatchGroupCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeregisterPatchBaselineForPatchGroupCommand.d.ts deleted file mode 100644 index 8c1763d0..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeregisterPatchBaselineForPatchGroupCommand.d.ts +++ /dev/null @@ -1,81 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { DeregisterPatchBaselineForPatchGroupRequest, DeregisterPatchBaselineForPatchGroupResult } from "../models/models_0"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link DeregisterPatchBaselineForPatchGroupCommand}. - */ -export interface DeregisterPatchBaselineForPatchGroupCommandInput extends DeregisterPatchBaselineForPatchGroupRequest { -} -/** - * @public - * - * The output of {@link DeregisterPatchBaselineForPatchGroupCommand}. - */ -export interface DeregisterPatchBaselineForPatchGroupCommandOutput extends DeregisterPatchBaselineForPatchGroupResult, __MetadataBearer { -} -/** - * @public - *

Removes a patch group from a patch baseline.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, DeregisterPatchBaselineForPatchGroupCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, DeregisterPatchBaselineForPatchGroupCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // DeregisterPatchBaselineForPatchGroupRequest - * BaselineId: "STRING_VALUE", // required - * PatchGroup: "STRING_VALUE", // required - * }; - * const command = new DeregisterPatchBaselineForPatchGroupCommand(input); - * const response = await client.send(command); - * // { // DeregisterPatchBaselineForPatchGroupResult - * // BaselineId: "STRING_VALUE", - * // PatchGroup: "STRING_VALUE", - * // }; - * - * ``` - * - * @param DeregisterPatchBaselineForPatchGroupCommandInput - {@link DeregisterPatchBaselineForPatchGroupCommandInput} - * @returns {@link DeregisterPatchBaselineForPatchGroupCommandOutput} - * @see {@link DeregisterPatchBaselineForPatchGroupCommandInput} for command's `input` shape. - * @see {@link DeregisterPatchBaselineForPatchGroupCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidResourceId} (client fault) - *

The resource ID isn't valid. Verify that you entered the correct ID and try again.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class DeregisterPatchBaselineForPatchGroupCommand extends $Command { - readonly input: DeregisterPatchBaselineForPatchGroupCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: DeregisterPatchBaselineForPatchGroupCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeregisterTargetFromMaintenanceWindowCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeregisterTargetFromMaintenanceWindowCommand.d.ts deleted file mode 100644 index 819823d2..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeregisterTargetFromMaintenanceWindowCommand.d.ts +++ /dev/null @@ -1,89 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { DeregisterTargetFromMaintenanceWindowRequest, DeregisterTargetFromMaintenanceWindowResult } from "../models/models_0"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link DeregisterTargetFromMaintenanceWindowCommand}. - */ -export interface DeregisterTargetFromMaintenanceWindowCommandInput extends DeregisterTargetFromMaintenanceWindowRequest { -} -/** - * @public - * - * The output of {@link DeregisterTargetFromMaintenanceWindowCommand}. - */ -export interface DeregisterTargetFromMaintenanceWindowCommandOutput extends DeregisterTargetFromMaintenanceWindowResult, __MetadataBearer { -} -/** - * @public - *

Removes a target from a maintenance window.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, DeregisterTargetFromMaintenanceWindowCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, DeregisterTargetFromMaintenanceWindowCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // DeregisterTargetFromMaintenanceWindowRequest - * WindowId: "STRING_VALUE", // required - * WindowTargetId: "STRING_VALUE", // required - * Safe: true || false, - * }; - * const command = new DeregisterTargetFromMaintenanceWindowCommand(input); - * const response = await client.send(command); - * // { // DeregisterTargetFromMaintenanceWindowResult - * // WindowId: "STRING_VALUE", - * // WindowTargetId: "STRING_VALUE", - * // }; - * - * ``` - * - * @param DeregisterTargetFromMaintenanceWindowCommandInput - {@link DeregisterTargetFromMaintenanceWindowCommandInput} - * @returns {@link DeregisterTargetFromMaintenanceWindowCommandOutput} - * @see {@link DeregisterTargetFromMaintenanceWindowCommandInput} for command's `input` shape. - * @see {@link DeregisterTargetFromMaintenanceWindowCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link DoesNotExistException} (client fault) - *

Error returned when the ID specified for a resource, such as a maintenance window or patch - * baseline, doesn't exist.

- *

For information about resource quotas in Amazon Web Services Systems Manager, see Systems Manager service quotas in the - * Amazon Web Services General Reference.

- * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link TargetInUseException} (client fault) - *

You specified the Safe option for the DeregisterTargetFromMaintenanceWindow - * operation, but the target is still referenced in a task.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class DeregisterTargetFromMaintenanceWindowCommand extends $Command { - readonly input: DeregisterTargetFromMaintenanceWindowCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: DeregisterTargetFromMaintenanceWindowCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeregisterTaskFromMaintenanceWindowCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeregisterTaskFromMaintenanceWindowCommand.d.ts deleted file mode 100644 index 53f90324..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DeregisterTaskFromMaintenanceWindowCommand.d.ts +++ /dev/null @@ -1,84 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { DeregisterTaskFromMaintenanceWindowRequest, DeregisterTaskFromMaintenanceWindowResult } from "../models/models_0"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link DeregisterTaskFromMaintenanceWindowCommand}. - */ -export interface DeregisterTaskFromMaintenanceWindowCommandInput extends DeregisterTaskFromMaintenanceWindowRequest { -} -/** - * @public - * - * The output of {@link DeregisterTaskFromMaintenanceWindowCommand}. - */ -export interface DeregisterTaskFromMaintenanceWindowCommandOutput extends DeregisterTaskFromMaintenanceWindowResult, __MetadataBearer { -} -/** - * @public - *

Removes a task from a maintenance window.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, DeregisterTaskFromMaintenanceWindowCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, DeregisterTaskFromMaintenanceWindowCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // DeregisterTaskFromMaintenanceWindowRequest - * WindowId: "STRING_VALUE", // required - * WindowTaskId: "STRING_VALUE", // required - * }; - * const command = new DeregisterTaskFromMaintenanceWindowCommand(input); - * const response = await client.send(command); - * // { // DeregisterTaskFromMaintenanceWindowResult - * // WindowId: "STRING_VALUE", - * // WindowTaskId: "STRING_VALUE", - * // }; - * - * ``` - * - * @param DeregisterTaskFromMaintenanceWindowCommandInput - {@link DeregisterTaskFromMaintenanceWindowCommandInput} - * @returns {@link DeregisterTaskFromMaintenanceWindowCommandOutput} - * @see {@link DeregisterTaskFromMaintenanceWindowCommandInput} for command's `input` shape. - * @see {@link DeregisterTaskFromMaintenanceWindowCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link DoesNotExistException} (client fault) - *

Error returned when the ID specified for a resource, such as a maintenance window or patch - * baseline, doesn't exist.

- *

For information about resource quotas in Amazon Web Services Systems Manager, see Systems Manager service quotas in the - * Amazon Web Services General Reference.

- * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class DeregisterTaskFromMaintenanceWindowCommand extends $Command { - readonly input: DeregisterTaskFromMaintenanceWindowCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: DeregisterTaskFromMaintenanceWindowCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeActivationsCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeActivationsCommand.d.ts deleted file mode 100644 index e0ea362d..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeActivationsCommand.d.ts +++ /dev/null @@ -1,113 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { DescribeActivationsRequest, DescribeActivationsResult } from "../models/models_0"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link DescribeActivationsCommand}. - */ -export interface DescribeActivationsCommandInput extends DescribeActivationsRequest { -} -/** - * @public - * - * The output of {@link DescribeActivationsCommand}. - */ -export interface DescribeActivationsCommandOutput extends DescribeActivationsResult, __MetadataBearer { -} -/** - * @public - *

Describes details about the activation, such as the date and time the activation was - * created, its expiration date, the Identity and Access Management (IAM) role assigned to - * the managed nodes in the activation, and the number of nodes registered by using this - * activation.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, DescribeActivationsCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, DescribeActivationsCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // DescribeActivationsRequest - * Filters: [ // DescribeActivationsFilterList - * { // DescribeActivationsFilter - * FilterKey: "ActivationIds" || "DefaultInstanceName" || "IamRole", - * FilterValues: [ // StringList - * "STRING_VALUE", - * ], - * }, - * ], - * MaxResults: Number("int"), - * NextToken: "STRING_VALUE", - * }; - * const command = new DescribeActivationsCommand(input); - * const response = await client.send(command); - * // { // DescribeActivationsResult - * // ActivationList: [ // ActivationList - * // { // Activation - * // ActivationId: "STRING_VALUE", - * // Description: "STRING_VALUE", - * // DefaultInstanceName: "STRING_VALUE", - * // IamRole: "STRING_VALUE", - * // RegistrationLimit: Number("int"), - * // RegistrationsCount: Number("int"), - * // ExpirationDate: new Date("TIMESTAMP"), - * // Expired: true || false, - * // CreatedDate: new Date("TIMESTAMP"), - * // Tags: [ // TagList - * // { // Tag - * // Key: "STRING_VALUE", // required - * // Value: "STRING_VALUE", // required - * // }, - * // ], - * // }, - * // ], - * // NextToken: "STRING_VALUE", - * // }; - * - * ``` - * - * @param DescribeActivationsCommandInput - {@link DescribeActivationsCommandInput} - * @returns {@link DescribeActivationsCommandOutput} - * @see {@link DescribeActivationsCommandInput} for command's `input` shape. - * @see {@link DescribeActivationsCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidFilter} (client fault) - *

The filter name isn't valid. Verify the you entered the correct name and try again.

- * - * @throws {@link InvalidNextToken} (client fault) - *

The specified token isn't valid.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class DescribeActivationsCommand extends $Command { - readonly input: DescribeActivationsCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: DescribeActivationsCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeAssociationCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeAssociationCommand.d.ts deleted file mode 100644 index e31ffcda..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeAssociationCommand.d.ts +++ /dev/null @@ -1,209 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { DescribeAssociationRequest, DescribeAssociationResult } from "../models/models_0"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link DescribeAssociationCommand}. - */ -export interface DescribeAssociationCommandInput extends DescribeAssociationRequest { -} -/** - * @public - * - * The output of {@link DescribeAssociationCommand}. - */ -export interface DescribeAssociationCommandOutput extends DescribeAssociationResult, __MetadataBearer { -} -/** - * @public - *

Describes the association for the specified target or managed node. If you created the - * association by using the Targets parameter, then you must retrieve the association - * by using the association ID.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, DescribeAssociationCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, DescribeAssociationCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // DescribeAssociationRequest - * Name: "STRING_VALUE", - * InstanceId: "STRING_VALUE", - * AssociationId: "STRING_VALUE", - * AssociationVersion: "STRING_VALUE", - * }; - * const command = new DescribeAssociationCommand(input); - * const response = await client.send(command); - * // { // DescribeAssociationResult - * // AssociationDescription: { // AssociationDescription - * // Name: "STRING_VALUE", - * // InstanceId: "STRING_VALUE", - * // AssociationVersion: "STRING_VALUE", - * // Date: new Date("TIMESTAMP"), - * // LastUpdateAssociationDate: new Date("TIMESTAMP"), - * // Status: { // AssociationStatus - * // Date: new Date("TIMESTAMP"), // required - * // Name: "Pending" || "Success" || "Failed", // required - * // Message: "STRING_VALUE", // required - * // AdditionalInfo: "STRING_VALUE", - * // }, - * // Overview: { // AssociationOverview - * // Status: "STRING_VALUE", - * // DetailedStatus: "STRING_VALUE", - * // AssociationStatusAggregatedCount: { // AssociationStatusAggregatedCount - * // "": Number("int"), - * // }, - * // }, - * // DocumentVersion: "STRING_VALUE", - * // AutomationTargetParameterName: "STRING_VALUE", - * // Parameters: { // Parameters - * // "": [ // ParameterValueList - * // "STRING_VALUE", - * // ], - * // }, - * // AssociationId: "STRING_VALUE", - * // Targets: [ // Targets - * // { // Target - * // Key: "STRING_VALUE", - * // Values: [ // TargetValues - * // "STRING_VALUE", - * // ], - * // }, - * // ], - * // ScheduleExpression: "STRING_VALUE", - * // OutputLocation: { // InstanceAssociationOutputLocation - * // S3Location: { // S3OutputLocation - * // OutputS3Region: "STRING_VALUE", - * // OutputS3BucketName: "STRING_VALUE", - * // OutputS3KeyPrefix: "STRING_VALUE", - * // }, - * // }, - * // LastExecutionDate: new Date("TIMESTAMP"), - * // LastSuccessfulExecutionDate: new Date("TIMESTAMP"), - * // AssociationName: "STRING_VALUE", - * // MaxErrors: "STRING_VALUE", - * // MaxConcurrency: "STRING_VALUE", - * // ComplianceSeverity: "CRITICAL" || "HIGH" || "MEDIUM" || "LOW" || "UNSPECIFIED", - * // SyncCompliance: "AUTO" || "MANUAL", - * // ApplyOnlyAtCronInterval: true || false, - * // CalendarNames: [ // CalendarNameOrARNList - * // "STRING_VALUE", - * // ], - * // TargetLocations: [ // TargetLocations - * // { // TargetLocation - * // Accounts: [ // Accounts - * // "STRING_VALUE", - * // ], - * // Regions: [ // Regions - * // "STRING_VALUE", - * // ], - * // TargetLocationMaxConcurrency: "STRING_VALUE", - * // TargetLocationMaxErrors: "STRING_VALUE", - * // ExecutionRoleName: "STRING_VALUE", - * // TargetLocationAlarmConfiguration: { // AlarmConfiguration - * // IgnorePollAlarmFailure: true || false, - * // Alarms: [ // AlarmList // required - * // { // Alarm - * // Name: "STRING_VALUE", // required - * // }, - * // ], - * // }, - * // }, - * // ], - * // ScheduleOffset: Number("int"), - * // TargetMaps: [ // TargetMaps - * // { // TargetMap - * // "": [ // TargetMapValueList - * // "STRING_VALUE", - * // ], - * // }, - * // ], - * // AlarmConfiguration: { - * // IgnorePollAlarmFailure: true || false, - * // Alarms: [ // required - * // { - * // Name: "STRING_VALUE", // required - * // }, - * // ], - * // }, - * // TriggeredAlarms: [ // AlarmStateInformationList - * // { // AlarmStateInformation - * // Name: "STRING_VALUE", // required - * // State: "UNKNOWN" || "ALARM", // required - * // }, - * // ], - * // }, - * // }; - * - * ``` - * - * @param DescribeAssociationCommandInput - {@link DescribeAssociationCommandInput} - * @returns {@link DescribeAssociationCommandOutput} - * @see {@link DescribeAssociationCommandInput} for command's `input` shape. - * @see {@link DescribeAssociationCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link AssociationDoesNotExist} (client fault) - *

The specified association doesn't exist.

- * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidAssociationVersion} (client fault) - *

The version you specified isn't valid. Use ListAssociationVersions to view all versions of - * an association according to the association ID. Or, use the $LATEST parameter to - * view the latest version of the association.

- * - * @throws {@link InvalidDocument} (client fault) - *

The specified SSM document doesn't exist.

- * - * @throws {@link InvalidInstanceId} (client fault) - *

The following problems can cause this exception:

- *
    - *
  • - *

    You don't have permission to access the managed node.

    - *
  • - *
  • - *

    Amazon Web Services Systems Manager Agent(SSM Agent) isn't running. Verify that SSM Agent is - * running.

    - *
  • - *
  • - *

    SSM Agent isn't registered with the SSM endpoint. Try reinstalling SSM Agent.

    - *
  • - *
  • - *

    The managed node isn't in valid state. Valid states are: Running, - * Pending, Stopped, and Stopping. Invalid states are: - * Shutting-down and Terminated.

    - *
  • - *
- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class DescribeAssociationCommand extends $Command { - readonly input: DescribeAssociationCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: DescribeAssociationCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeAssociationExecutionTargetsCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeAssociationExecutionTargetsCommand.d.ts deleted file mode 100644 index ceac885a..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeAssociationExecutionTargetsCommand.d.ts +++ /dev/null @@ -1,110 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { DescribeAssociationExecutionTargetsRequest, DescribeAssociationExecutionTargetsResult } from "../models/models_0"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link DescribeAssociationExecutionTargetsCommand}. - */ -export interface DescribeAssociationExecutionTargetsCommandInput extends DescribeAssociationExecutionTargetsRequest { -} -/** - * @public - * - * The output of {@link DescribeAssociationExecutionTargetsCommand}. - */ -export interface DescribeAssociationExecutionTargetsCommandOutput extends DescribeAssociationExecutionTargetsResult, __MetadataBearer { -} -/** - * @public - *

Views information about a specific execution of a specific association.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, DescribeAssociationExecutionTargetsCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, DescribeAssociationExecutionTargetsCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // DescribeAssociationExecutionTargetsRequest - * AssociationId: "STRING_VALUE", // required - * ExecutionId: "STRING_VALUE", // required - * Filters: [ // AssociationExecutionTargetsFilterList - * { // AssociationExecutionTargetsFilter - * Key: "Status" || "ResourceId" || "ResourceType", // required - * Value: "STRING_VALUE", // required - * }, - * ], - * MaxResults: Number("int"), - * NextToken: "STRING_VALUE", - * }; - * const command = new DescribeAssociationExecutionTargetsCommand(input); - * const response = await client.send(command); - * // { // DescribeAssociationExecutionTargetsResult - * // AssociationExecutionTargets: [ // AssociationExecutionTargetsList - * // { // AssociationExecutionTarget - * // AssociationId: "STRING_VALUE", - * // AssociationVersion: "STRING_VALUE", - * // ExecutionId: "STRING_VALUE", - * // ResourceId: "STRING_VALUE", - * // ResourceType: "STRING_VALUE", - * // Status: "STRING_VALUE", - * // DetailedStatus: "STRING_VALUE", - * // LastExecutionDate: new Date("TIMESTAMP"), - * // OutputSource: { // OutputSource - * // OutputSourceId: "STRING_VALUE", - * // OutputSourceType: "STRING_VALUE", - * // }, - * // }, - * // ], - * // NextToken: "STRING_VALUE", - * // }; - * - * ``` - * - * @param DescribeAssociationExecutionTargetsCommandInput - {@link DescribeAssociationExecutionTargetsCommandInput} - * @returns {@link DescribeAssociationExecutionTargetsCommandOutput} - * @see {@link DescribeAssociationExecutionTargetsCommandInput} for command's `input` shape. - * @see {@link DescribeAssociationExecutionTargetsCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link AssociationDoesNotExist} (client fault) - *

The specified association doesn't exist.

- * - * @throws {@link AssociationExecutionDoesNotExist} (client fault) - *

The specified execution ID doesn't exist. Verify the ID number and try again.

- * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidNextToken} (client fault) - *

The specified token isn't valid.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class DescribeAssociationExecutionTargetsCommand extends $Command { - readonly input: DescribeAssociationExecutionTargetsCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: DescribeAssociationExecutionTargetsCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeAssociationExecutionsCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeAssociationExecutionsCommand.d.ts deleted file mode 100644 index d9c7ee24..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeAssociationExecutionsCommand.d.ts +++ /dev/null @@ -1,117 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { DescribeAssociationExecutionsRequest, DescribeAssociationExecutionsResult } from "../models/models_0"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link DescribeAssociationExecutionsCommand}. - */ -export interface DescribeAssociationExecutionsCommandInput extends DescribeAssociationExecutionsRequest { -} -/** - * @public - * - * The output of {@link DescribeAssociationExecutionsCommand}. - */ -export interface DescribeAssociationExecutionsCommandOutput extends DescribeAssociationExecutionsResult, __MetadataBearer { -} -/** - * @public - *

Views all executions for a specific association ID.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, DescribeAssociationExecutionsCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, DescribeAssociationExecutionsCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // DescribeAssociationExecutionsRequest - * AssociationId: "STRING_VALUE", // required - * Filters: [ // AssociationExecutionFilterList - * { // AssociationExecutionFilter - * Key: "ExecutionId" || "Status" || "CreatedTime", // required - * Value: "STRING_VALUE", // required - * Type: "EQUAL" || "LESS_THAN" || "GREATER_THAN", // required - * }, - * ], - * MaxResults: Number("int"), - * NextToken: "STRING_VALUE", - * }; - * const command = new DescribeAssociationExecutionsCommand(input); - * const response = await client.send(command); - * // { // DescribeAssociationExecutionsResult - * // AssociationExecutions: [ // AssociationExecutionsList - * // { // AssociationExecution - * // AssociationId: "STRING_VALUE", - * // AssociationVersion: "STRING_VALUE", - * // ExecutionId: "STRING_VALUE", - * // Status: "STRING_VALUE", - * // DetailedStatus: "STRING_VALUE", - * // CreatedTime: new Date("TIMESTAMP"), - * // LastExecutionDate: new Date("TIMESTAMP"), - * // ResourceCountByStatus: "STRING_VALUE", - * // AlarmConfiguration: { // AlarmConfiguration - * // IgnorePollAlarmFailure: true || false, - * // Alarms: [ // AlarmList // required - * // { // Alarm - * // Name: "STRING_VALUE", // required - * // }, - * // ], - * // }, - * // TriggeredAlarms: [ // AlarmStateInformationList - * // { // AlarmStateInformation - * // Name: "STRING_VALUE", // required - * // State: "UNKNOWN" || "ALARM", // required - * // }, - * // ], - * // }, - * // ], - * // NextToken: "STRING_VALUE", - * // }; - * - * ``` - * - * @param DescribeAssociationExecutionsCommandInput - {@link DescribeAssociationExecutionsCommandInput} - * @returns {@link DescribeAssociationExecutionsCommandOutput} - * @see {@link DescribeAssociationExecutionsCommandInput} for command's `input` shape. - * @see {@link DescribeAssociationExecutionsCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link AssociationDoesNotExist} (client fault) - *

The specified association doesn't exist.

- * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidNextToken} (client fault) - *

The specified token isn't valid.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class DescribeAssociationExecutionsCommand extends $Command { - readonly input: DescribeAssociationExecutionsCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: DescribeAssociationExecutionsCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeAutomationExecutionsCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeAutomationExecutionsCommand.d.ts deleted file mode 100644 index b627296c..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeAutomationExecutionsCommand.d.ts +++ /dev/null @@ -1,211 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { DescribeAutomationExecutionsRequest, DescribeAutomationExecutionsResult } from "../models/models_0"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link DescribeAutomationExecutionsCommand}. - */ -export interface DescribeAutomationExecutionsCommandInput extends DescribeAutomationExecutionsRequest { -} -/** - * @public - * - * The output of {@link DescribeAutomationExecutionsCommand}. - */ -export interface DescribeAutomationExecutionsCommandOutput extends DescribeAutomationExecutionsResult, __MetadataBearer { -} -/** - * @public - *

Provides details about all active and terminated Automation executions.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, DescribeAutomationExecutionsCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, DescribeAutomationExecutionsCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // DescribeAutomationExecutionsRequest - * Filters: [ // AutomationExecutionFilterList - * { // AutomationExecutionFilter - * Key: "DocumentNamePrefix" || "ExecutionStatus" || "ExecutionId" || "ParentExecutionId" || "CurrentAction" || "StartTimeBefore" || "StartTimeAfter" || "AutomationType" || "TagKey" || "TargetResourceGroup" || "AutomationSubtype" || "OpsItemId", // required - * Values: [ // AutomationExecutionFilterValueList // required - * "STRING_VALUE", - * ], - * }, - * ], - * MaxResults: Number("int"), - * NextToken: "STRING_VALUE", - * }; - * const command = new DescribeAutomationExecutionsCommand(input); - * const response = await client.send(command); - * // { // DescribeAutomationExecutionsResult - * // AutomationExecutionMetadataList: [ // AutomationExecutionMetadataList - * // { // AutomationExecutionMetadata - * // AutomationExecutionId: "STRING_VALUE", - * // DocumentName: "STRING_VALUE", - * // DocumentVersion: "STRING_VALUE", - * // AutomationExecutionStatus: "Pending" || "InProgress" || "Waiting" || "Success" || "TimedOut" || "Cancelling" || "Cancelled" || "Failed" || "PendingApproval" || "Approved" || "Rejected" || "Scheduled" || "RunbookInProgress" || "PendingChangeCalendarOverride" || "ChangeCalendarOverrideApproved" || "ChangeCalendarOverrideRejected" || "CompletedWithSuccess" || "CompletedWithFailure" || "Exited", - * // ExecutionStartTime: new Date("TIMESTAMP"), - * // ExecutionEndTime: new Date("TIMESTAMP"), - * // ExecutedBy: "STRING_VALUE", - * // LogFile: "STRING_VALUE", - * // Outputs: { // AutomationParameterMap - * // "": [ // AutomationParameterValueList - * // "STRING_VALUE", - * // ], - * // }, - * // Mode: "Auto" || "Interactive", - * // ParentAutomationExecutionId: "STRING_VALUE", - * // CurrentStepName: "STRING_VALUE", - * // CurrentAction: "STRING_VALUE", - * // FailureMessage: "STRING_VALUE", - * // TargetParameterName: "STRING_VALUE", - * // Targets: [ // Targets - * // { // Target - * // Key: "STRING_VALUE", - * // Values: [ // TargetValues - * // "STRING_VALUE", - * // ], - * // }, - * // ], - * // TargetMaps: [ // TargetMaps - * // { // TargetMap - * // "": [ // TargetMapValueList - * // "STRING_VALUE", - * // ], - * // }, - * // ], - * // ResolvedTargets: { // ResolvedTargets - * // ParameterValues: [ // TargetParameterList - * // "STRING_VALUE", - * // ], - * // Truncated: true || false, - * // }, - * // MaxConcurrency: "STRING_VALUE", - * // MaxErrors: "STRING_VALUE", - * // Target: "STRING_VALUE", - * // AutomationType: "CrossAccount" || "Local", - * // AlarmConfiguration: { // AlarmConfiguration - * // IgnorePollAlarmFailure: true || false, - * // Alarms: [ // AlarmList // required - * // { // Alarm - * // Name: "STRING_VALUE", // required - * // }, - * // ], - * // }, - * // TriggeredAlarms: [ // AlarmStateInformationList - * // { // AlarmStateInformation - * // Name: "STRING_VALUE", // required - * // State: "UNKNOWN" || "ALARM", // required - * // }, - * // ], - * // AutomationSubtype: "ChangeRequest", - * // ScheduledTime: new Date("TIMESTAMP"), - * // Runbooks: [ // Runbooks - * // { // Runbook - * // DocumentName: "STRING_VALUE", // required - * // DocumentVersion: "STRING_VALUE", - * // Parameters: { - * // "": [ - * // "STRING_VALUE", - * // ], - * // }, - * // TargetParameterName: "STRING_VALUE", - * // Targets: [ - * // { - * // Key: "STRING_VALUE", - * // Values: [ - * // "STRING_VALUE", - * // ], - * // }, - * // ], - * // TargetMaps: [ - * // { - * // "": [ - * // "STRING_VALUE", - * // ], - * // }, - * // ], - * // MaxConcurrency: "STRING_VALUE", - * // MaxErrors: "STRING_VALUE", - * // TargetLocations: [ // TargetLocations - * // { // TargetLocation - * // Accounts: [ // Accounts - * // "STRING_VALUE", - * // ], - * // Regions: [ // Regions - * // "STRING_VALUE", - * // ], - * // TargetLocationMaxConcurrency: "STRING_VALUE", - * // TargetLocationMaxErrors: "STRING_VALUE", - * // ExecutionRoleName: "STRING_VALUE", - * // TargetLocationAlarmConfiguration: { - * // IgnorePollAlarmFailure: true || false, - * // Alarms: [ // required - * // { - * // Name: "STRING_VALUE", // required - * // }, - * // ], - * // }, - * // }, - * // ], - * // }, - * // ], - * // OpsItemId: "STRING_VALUE", - * // AssociationId: "STRING_VALUE", - * // ChangeRequestName: "STRING_VALUE", - * // }, - * // ], - * // NextToken: "STRING_VALUE", - * // }; - * - * ``` - * - * @param DescribeAutomationExecutionsCommandInput - {@link DescribeAutomationExecutionsCommandInput} - * @returns {@link DescribeAutomationExecutionsCommandOutput} - * @see {@link DescribeAutomationExecutionsCommandInput} for command's `input` shape. - * @see {@link DescribeAutomationExecutionsCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidFilterKey} (client fault) - *

The specified key isn't valid.

- * - * @throws {@link InvalidFilterValue} (client fault) - *

The filter value isn't valid. Verify the value and try again.

- * - * @throws {@link InvalidNextToken} (client fault) - *

The specified token isn't valid.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class DescribeAutomationExecutionsCommand extends $Command { - readonly input: DescribeAutomationExecutionsCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: DescribeAutomationExecutionsCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeAutomationStepExecutionsCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeAutomationStepExecutionsCommand.d.ts deleted file mode 100644 index b767fc01..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeAutomationStepExecutionsCommand.d.ts +++ /dev/null @@ -1,185 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { DescribeAutomationStepExecutionsRequest, DescribeAutomationStepExecutionsResult } from "../models/models_0"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link DescribeAutomationStepExecutionsCommand}. - */ -export interface DescribeAutomationStepExecutionsCommandInput extends DescribeAutomationStepExecutionsRequest { -} -/** - * @public - * - * The output of {@link DescribeAutomationStepExecutionsCommand}. - */ -export interface DescribeAutomationStepExecutionsCommandOutput extends DescribeAutomationStepExecutionsResult, __MetadataBearer { -} -/** - * @public - *

Information about all active and terminated step executions in an Automation - * workflow.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, DescribeAutomationStepExecutionsCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, DescribeAutomationStepExecutionsCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // DescribeAutomationStepExecutionsRequest - * AutomationExecutionId: "STRING_VALUE", // required - * Filters: [ // StepExecutionFilterList - * { // StepExecutionFilter - * Key: "StartTimeBefore" || "StartTimeAfter" || "StepExecutionStatus" || "StepExecutionId" || "StepName" || "Action" || "ParentStepExecutionId" || "ParentStepIteration" || "ParentStepIteratorValue", // required - * Values: [ // StepExecutionFilterValueList // required - * "STRING_VALUE", - * ], - * }, - * ], - * NextToken: "STRING_VALUE", - * MaxResults: Number("int"), - * ReverseOrder: true || false, - * }; - * const command = new DescribeAutomationStepExecutionsCommand(input); - * const response = await client.send(command); - * // { // DescribeAutomationStepExecutionsResult - * // StepExecutions: [ // StepExecutionList - * // { // StepExecution - * // StepName: "STRING_VALUE", - * // Action: "STRING_VALUE", - * // TimeoutSeconds: Number("long"), - * // OnFailure: "STRING_VALUE", - * // MaxAttempts: Number("int"), - * // ExecutionStartTime: new Date("TIMESTAMP"), - * // ExecutionEndTime: new Date("TIMESTAMP"), - * // StepStatus: "Pending" || "InProgress" || "Waiting" || "Success" || "TimedOut" || "Cancelling" || "Cancelled" || "Failed" || "PendingApproval" || "Approved" || "Rejected" || "Scheduled" || "RunbookInProgress" || "PendingChangeCalendarOverride" || "ChangeCalendarOverrideApproved" || "ChangeCalendarOverrideRejected" || "CompletedWithSuccess" || "CompletedWithFailure" || "Exited", - * // ResponseCode: "STRING_VALUE", - * // Inputs: { // NormalStringMap - * // "": "STRING_VALUE", - * // }, - * // Outputs: { // AutomationParameterMap - * // "": [ // AutomationParameterValueList - * // "STRING_VALUE", - * // ], - * // }, - * // Response: "STRING_VALUE", - * // FailureMessage: "STRING_VALUE", - * // FailureDetails: { // FailureDetails - * // FailureStage: "STRING_VALUE", - * // FailureType: "STRING_VALUE", - * // Details: { - * // "": [ - * // "STRING_VALUE", - * // ], - * // }, - * // }, - * // StepExecutionId: "STRING_VALUE", - * // OverriddenParameters: { - * // "": [ - * // "STRING_VALUE", - * // ], - * // }, - * // IsEnd: true || false, - * // NextStep: "STRING_VALUE", - * // IsCritical: true || false, - * // ValidNextSteps: [ // ValidNextStepList - * // "STRING_VALUE", - * // ], - * // Targets: [ // Targets - * // { // Target - * // Key: "STRING_VALUE", - * // Values: [ // TargetValues - * // "STRING_VALUE", - * // ], - * // }, - * // ], - * // TargetLocation: { // TargetLocation - * // Accounts: [ // Accounts - * // "STRING_VALUE", - * // ], - * // Regions: [ // Regions - * // "STRING_VALUE", - * // ], - * // TargetLocationMaxConcurrency: "STRING_VALUE", - * // TargetLocationMaxErrors: "STRING_VALUE", - * // ExecutionRoleName: "STRING_VALUE", - * // TargetLocationAlarmConfiguration: { // AlarmConfiguration - * // IgnorePollAlarmFailure: true || false, - * // Alarms: [ // AlarmList // required - * // { // Alarm - * // Name: "STRING_VALUE", // required - * // }, - * // ], - * // }, - * // }, - * // TriggeredAlarms: [ // AlarmStateInformationList - * // { // AlarmStateInformation - * // Name: "STRING_VALUE", // required - * // State: "UNKNOWN" || "ALARM", // required - * // }, - * // ], - * // ParentStepDetails: { // ParentStepDetails - * // StepExecutionId: "STRING_VALUE", - * // StepName: "STRING_VALUE", - * // Action: "STRING_VALUE", - * // Iteration: Number("int"), - * // IteratorValue: "STRING_VALUE", - * // }, - * // }, - * // ], - * // NextToken: "STRING_VALUE", - * // }; - * - * ``` - * - * @param DescribeAutomationStepExecutionsCommandInput - {@link DescribeAutomationStepExecutionsCommandInput} - * @returns {@link DescribeAutomationStepExecutionsCommandOutput} - * @see {@link DescribeAutomationStepExecutionsCommandInput} for command's `input` shape. - * @see {@link DescribeAutomationStepExecutionsCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link AutomationExecutionNotFoundException} (client fault) - *

There is no automation execution information for the requested automation execution - * ID.

- * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidFilterKey} (client fault) - *

The specified key isn't valid.

- * - * @throws {@link InvalidFilterValue} (client fault) - *

The filter value isn't valid. Verify the value and try again.

- * - * @throws {@link InvalidNextToken} (client fault) - *

The specified token isn't valid.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class DescribeAutomationStepExecutionsCommand extends $Command { - readonly input: DescribeAutomationStepExecutionsCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: DescribeAutomationStepExecutionsCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeAvailablePatchesCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeAvailablePatchesCommand.d.ts deleted file mode 100644 index fcb88334..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeAvailablePatchesCommand.d.ts +++ /dev/null @@ -1,118 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { DescribeAvailablePatchesRequest, DescribeAvailablePatchesResult } from "../models/models_0"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link DescribeAvailablePatchesCommand}. - */ -export interface DescribeAvailablePatchesCommandInput extends DescribeAvailablePatchesRequest { -} -/** - * @public - * - * The output of {@link DescribeAvailablePatchesCommand}. - */ -export interface DescribeAvailablePatchesCommandOutput extends DescribeAvailablePatchesResult, __MetadataBearer { -} -/** - * @public - *

Lists all patches eligible to be included in a patch baseline.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, DescribeAvailablePatchesCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, DescribeAvailablePatchesCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // DescribeAvailablePatchesRequest - * Filters: [ // PatchOrchestratorFilterList - * { // PatchOrchestratorFilter - * Key: "STRING_VALUE", - * Values: [ // PatchOrchestratorFilterValues - * "STRING_VALUE", - * ], - * }, - * ], - * MaxResults: Number("int"), - * NextToken: "STRING_VALUE", - * }; - * const command = new DescribeAvailablePatchesCommand(input); - * const response = await client.send(command); - * // { // DescribeAvailablePatchesResult - * // Patches: [ // PatchList - * // { // Patch - * // Id: "STRING_VALUE", - * // ReleaseDate: new Date("TIMESTAMP"), - * // Title: "STRING_VALUE", - * // Description: "STRING_VALUE", - * // ContentUrl: "STRING_VALUE", - * // Vendor: "STRING_VALUE", - * // ProductFamily: "STRING_VALUE", - * // Product: "STRING_VALUE", - * // Classification: "STRING_VALUE", - * // MsrcSeverity: "STRING_VALUE", - * // KbNumber: "STRING_VALUE", - * // MsrcNumber: "STRING_VALUE", - * // Language: "STRING_VALUE", - * // AdvisoryIds: [ // PatchAdvisoryIdList - * // "STRING_VALUE", - * // ], - * // BugzillaIds: [ // PatchBugzillaIdList - * // "STRING_VALUE", - * // ], - * // CVEIds: [ // PatchCVEIdList - * // "STRING_VALUE", - * // ], - * // Name: "STRING_VALUE", - * // Epoch: Number("int"), - * // Version: "STRING_VALUE", - * // Release: "STRING_VALUE", - * // Arch: "STRING_VALUE", - * // Severity: "STRING_VALUE", - * // Repository: "STRING_VALUE", - * // }, - * // ], - * // NextToken: "STRING_VALUE", - * // }; - * - * ``` - * - * @param DescribeAvailablePatchesCommandInput - {@link DescribeAvailablePatchesCommandInput} - * @returns {@link DescribeAvailablePatchesCommandOutput} - * @see {@link DescribeAvailablePatchesCommandInput} for command's `input` shape. - * @see {@link DescribeAvailablePatchesCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class DescribeAvailablePatchesCommand extends $Command { - readonly input: DescribeAvailablePatchesCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: DescribeAvailablePatchesCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeDocumentCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeDocumentCommand.d.ts deleted file mode 100644 index 91936e50..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeDocumentCommand.d.ts +++ /dev/null @@ -1,150 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { DescribeDocumentRequest, DescribeDocumentResult } from "../models/models_0"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link DescribeDocumentCommand}. - */ -export interface DescribeDocumentCommandInput extends DescribeDocumentRequest { -} -/** - * @public - * - * The output of {@link DescribeDocumentCommand}. - */ -export interface DescribeDocumentCommandOutput extends DescribeDocumentResult, __MetadataBearer { -} -/** - * @public - *

Describes the specified Amazon Web Services Systems Manager document (SSM document).

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, DescribeDocumentCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, DescribeDocumentCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // DescribeDocumentRequest - * Name: "STRING_VALUE", // required - * DocumentVersion: "STRING_VALUE", - * VersionName: "STRING_VALUE", - * }; - * const command = new DescribeDocumentCommand(input); - * const response = await client.send(command); - * // { // DescribeDocumentResult - * // Document: { // DocumentDescription - * // Sha1: "STRING_VALUE", - * // Hash: "STRING_VALUE", - * // HashType: "Sha256" || "Sha1", - * // Name: "STRING_VALUE", - * // DisplayName: "STRING_VALUE", - * // VersionName: "STRING_VALUE", - * // Owner: "STRING_VALUE", - * // CreatedDate: new Date("TIMESTAMP"), - * // Status: "Creating" || "Active" || "Updating" || "Deleting" || "Failed", - * // StatusInformation: "STRING_VALUE", - * // DocumentVersion: "STRING_VALUE", - * // Description: "STRING_VALUE", - * // Parameters: [ // DocumentParameterList - * // { // DocumentParameter - * // Name: "STRING_VALUE", - * // Type: "String" || "StringList", - * // Description: "STRING_VALUE", - * // DefaultValue: "STRING_VALUE", - * // }, - * // ], - * // PlatformTypes: [ // PlatformTypeList - * // "Windows" || "Linux" || "MacOS", - * // ], - * // DocumentType: "Command" || "Policy" || "Automation" || "Session" || "Package" || "ApplicationConfiguration" || "ApplicationConfigurationSchema" || "DeploymentStrategy" || "ChangeCalendar" || "Automation.ChangeTemplate" || "ProblemAnalysis" || "ProblemAnalysisTemplate" || "CloudFormation" || "ConformancePackTemplate" || "QuickSetup", - * // SchemaVersion: "STRING_VALUE", - * // LatestVersion: "STRING_VALUE", - * // DefaultVersion: "STRING_VALUE", - * // DocumentFormat: "YAML" || "JSON" || "TEXT", - * // TargetType: "STRING_VALUE", - * // Tags: [ // TagList - * // { // Tag - * // Key: "STRING_VALUE", // required - * // Value: "STRING_VALUE", // required - * // }, - * // ], - * // AttachmentsInformation: [ // AttachmentInformationList - * // { // AttachmentInformation - * // Name: "STRING_VALUE", - * // }, - * // ], - * // Requires: [ // DocumentRequiresList - * // { // DocumentRequires - * // Name: "STRING_VALUE", // required - * // Version: "STRING_VALUE", - * // RequireType: "STRING_VALUE", - * // VersionName: "STRING_VALUE", - * // }, - * // ], - * // Author: "STRING_VALUE", - * // ReviewInformation: [ // ReviewInformationList - * // { // ReviewInformation - * // ReviewedTime: new Date("TIMESTAMP"), - * // Status: "APPROVED" || "NOT_REVIEWED" || "PENDING" || "REJECTED", - * // Reviewer: "STRING_VALUE", - * // }, - * // ], - * // ApprovedVersion: "STRING_VALUE", - * // PendingReviewVersion: "STRING_VALUE", - * // ReviewStatus: "APPROVED" || "NOT_REVIEWED" || "PENDING" || "REJECTED", - * // Category: [ // CategoryList - * // "STRING_VALUE", - * // ], - * // CategoryEnum: [ // CategoryEnumList - * // "STRING_VALUE", - * // ], - * // }, - * // }; - * - * ``` - * - * @param DescribeDocumentCommandInput - {@link DescribeDocumentCommandInput} - * @returns {@link DescribeDocumentCommandOutput} - * @see {@link DescribeDocumentCommandInput} for command's `input` shape. - * @see {@link DescribeDocumentCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidDocument} (client fault) - *

The specified SSM document doesn't exist.

- * - * @throws {@link InvalidDocumentVersion} (client fault) - *

The document version isn't valid or doesn't exist.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class DescribeDocumentCommand extends $Command { - readonly input: DescribeDocumentCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: DescribeDocumentCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeDocumentPermissionCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeDocumentPermissionCommand.d.ts deleted file mode 100644 index de3c24dd..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeDocumentPermissionCommand.d.ts +++ /dev/null @@ -1,104 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { DescribeDocumentPermissionRequest, DescribeDocumentPermissionResponse } from "../models/models_0"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link DescribeDocumentPermissionCommand}. - */ -export interface DescribeDocumentPermissionCommandInput extends DescribeDocumentPermissionRequest { -} -/** - * @public - * - * The output of {@link DescribeDocumentPermissionCommand}. - */ -export interface DescribeDocumentPermissionCommandOutput extends DescribeDocumentPermissionResponse, __MetadataBearer { -} -/** - * @public - *

Describes the permissions for a Amazon Web Services Systems Manager document (SSM document). If you created the - * document, you are the owner. If a document is shared, it can either be shared privately (by - * specifying a user's Amazon Web Services account ID) or publicly (All).

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, DescribeDocumentPermissionCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, DescribeDocumentPermissionCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // DescribeDocumentPermissionRequest - * Name: "STRING_VALUE", // required - * PermissionType: "Share", // required - * MaxResults: Number("int"), - * NextToken: "STRING_VALUE", - * }; - * const command = new DescribeDocumentPermissionCommand(input); - * const response = await client.send(command); - * // { // DescribeDocumentPermissionResponse - * // AccountIds: [ // AccountIdList - * // "STRING_VALUE", - * // ], - * // AccountSharingInfoList: [ // AccountSharingInfoList - * // { // AccountSharingInfo - * // AccountId: "STRING_VALUE", - * // SharedDocumentVersion: "STRING_VALUE", - * // }, - * // ], - * // NextToken: "STRING_VALUE", - * // }; - * - * ``` - * - * @param DescribeDocumentPermissionCommandInput - {@link DescribeDocumentPermissionCommandInput} - * @returns {@link DescribeDocumentPermissionCommandOutput} - * @see {@link DescribeDocumentPermissionCommandInput} for command's `input` shape. - * @see {@link DescribeDocumentPermissionCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidDocument} (client fault) - *

The specified SSM document doesn't exist.

- * - * @throws {@link InvalidDocumentOperation} (client fault) - *

You attempted to delete a document while it is still shared. You must stop sharing the - * document before you can delete it.

- * - * @throws {@link InvalidNextToken} (client fault) - *

The specified token isn't valid.

- * - * @throws {@link InvalidPermissionType} (client fault) - *

The permission type isn't supported. Share is the only supported - * permission type.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class DescribeDocumentPermissionCommand extends $Command { - readonly input: DescribeDocumentPermissionCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: DescribeDocumentPermissionCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeEffectiveInstanceAssociationsCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeEffectiveInstanceAssociationsCommand.d.ts deleted file mode 100644 index 3f9b3cf0..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeEffectiveInstanceAssociationsCommand.d.ts +++ /dev/null @@ -1,109 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { DescribeEffectiveInstanceAssociationsRequest, DescribeEffectiveInstanceAssociationsResult } from "../models/models_0"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link DescribeEffectiveInstanceAssociationsCommand}. - */ -export interface DescribeEffectiveInstanceAssociationsCommandInput extends DescribeEffectiveInstanceAssociationsRequest { -} -/** - * @public - * - * The output of {@link DescribeEffectiveInstanceAssociationsCommand}. - */ -export interface DescribeEffectiveInstanceAssociationsCommandOutput extends DescribeEffectiveInstanceAssociationsResult, __MetadataBearer { -} -/** - * @public - *

All associations for the managed node(s).

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, DescribeEffectiveInstanceAssociationsCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, DescribeEffectiveInstanceAssociationsCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // DescribeEffectiveInstanceAssociationsRequest - * InstanceId: "STRING_VALUE", // required - * MaxResults: Number("int"), - * NextToken: "STRING_VALUE", - * }; - * const command = new DescribeEffectiveInstanceAssociationsCommand(input); - * const response = await client.send(command); - * // { // DescribeEffectiveInstanceAssociationsResult - * // Associations: [ // InstanceAssociationList - * // { // InstanceAssociation - * // AssociationId: "STRING_VALUE", - * // InstanceId: "STRING_VALUE", - * // Content: "STRING_VALUE", - * // AssociationVersion: "STRING_VALUE", - * // }, - * // ], - * // NextToken: "STRING_VALUE", - * // }; - * - * ``` - * - * @param DescribeEffectiveInstanceAssociationsCommandInput - {@link DescribeEffectiveInstanceAssociationsCommandInput} - * @returns {@link DescribeEffectiveInstanceAssociationsCommandOutput} - * @see {@link DescribeEffectiveInstanceAssociationsCommandInput} for command's `input` shape. - * @see {@link DescribeEffectiveInstanceAssociationsCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidInstanceId} (client fault) - *

The following problems can cause this exception:

- *
    - *
  • - *

    You don't have permission to access the managed node.

    - *
  • - *
  • - *

    Amazon Web Services Systems Manager Agent(SSM Agent) isn't running. Verify that SSM Agent is - * running.

    - *
  • - *
  • - *

    SSM Agent isn't registered with the SSM endpoint. Try reinstalling SSM Agent.

    - *
  • - *
  • - *

    The managed node isn't in valid state. Valid states are: Running, - * Pending, Stopped, and Stopping. Invalid states are: - * Shutting-down and Terminated.

    - *
  • - *
- * - * @throws {@link InvalidNextToken} (client fault) - *

The specified token isn't valid.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class DescribeEffectiveInstanceAssociationsCommand extends $Command { - readonly input: DescribeEffectiveInstanceAssociationsCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: DescribeEffectiveInstanceAssociationsCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeEffectivePatchesForPatchBaselineCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeEffectivePatchesForPatchBaselineCommand.d.ts deleted file mode 100644 index 261a3a6b..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeEffectivePatchesForPatchBaselineCommand.d.ts +++ /dev/null @@ -1,132 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { DescribeEffectivePatchesForPatchBaselineRequest, DescribeEffectivePatchesForPatchBaselineResult } from "../models/models_0"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link DescribeEffectivePatchesForPatchBaselineCommand}. - */ -export interface DescribeEffectivePatchesForPatchBaselineCommandInput extends DescribeEffectivePatchesForPatchBaselineRequest { -} -/** - * @public - * - * The output of {@link DescribeEffectivePatchesForPatchBaselineCommand}. - */ -export interface DescribeEffectivePatchesForPatchBaselineCommandOutput extends DescribeEffectivePatchesForPatchBaselineResult, __MetadataBearer { -} -/** - * @public - *

Retrieves the current effective patches (the patch and the approval state) for the specified - * patch baseline. Applies to patch baselines for Windows only.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, DescribeEffectivePatchesForPatchBaselineCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, DescribeEffectivePatchesForPatchBaselineCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // DescribeEffectivePatchesForPatchBaselineRequest - * BaselineId: "STRING_VALUE", // required - * MaxResults: Number("int"), - * NextToken: "STRING_VALUE", - * }; - * const command = new DescribeEffectivePatchesForPatchBaselineCommand(input); - * const response = await client.send(command); - * // { // DescribeEffectivePatchesForPatchBaselineResult - * // EffectivePatches: [ // EffectivePatchList - * // { // EffectivePatch - * // Patch: { // Patch - * // Id: "STRING_VALUE", - * // ReleaseDate: new Date("TIMESTAMP"), - * // Title: "STRING_VALUE", - * // Description: "STRING_VALUE", - * // ContentUrl: "STRING_VALUE", - * // Vendor: "STRING_VALUE", - * // ProductFamily: "STRING_VALUE", - * // Product: "STRING_VALUE", - * // Classification: "STRING_VALUE", - * // MsrcSeverity: "STRING_VALUE", - * // KbNumber: "STRING_VALUE", - * // MsrcNumber: "STRING_VALUE", - * // Language: "STRING_VALUE", - * // AdvisoryIds: [ // PatchAdvisoryIdList - * // "STRING_VALUE", - * // ], - * // BugzillaIds: [ // PatchBugzillaIdList - * // "STRING_VALUE", - * // ], - * // CVEIds: [ // PatchCVEIdList - * // "STRING_VALUE", - * // ], - * // Name: "STRING_VALUE", - * // Epoch: Number("int"), - * // Version: "STRING_VALUE", - * // Release: "STRING_VALUE", - * // Arch: "STRING_VALUE", - * // Severity: "STRING_VALUE", - * // Repository: "STRING_VALUE", - * // }, - * // PatchStatus: { // PatchStatus - * // DeploymentStatus: "APPROVED" || "PENDING_APPROVAL" || "EXPLICIT_APPROVED" || "EXPLICIT_REJECTED", - * // ComplianceLevel: "CRITICAL" || "HIGH" || "MEDIUM" || "LOW" || "INFORMATIONAL" || "UNSPECIFIED", - * // ApprovalDate: new Date("TIMESTAMP"), - * // }, - * // }, - * // ], - * // NextToken: "STRING_VALUE", - * // }; - * - * ``` - * - * @param DescribeEffectivePatchesForPatchBaselineCommandInput - {@link DescribeEffectivePatchesForPatchBaselineCommandInput} - * @returns {@link DescribeEffectivePatchesForPatchBaselineCommandOutput} - * @see {@link DescribeEffectivePatchesForPatchBaselineCommandInput} for command's `input` shape. - * @see {@link DescribeEffectivePatchesForPatchBaselineCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link DoesNotExistException} (client fault) - *

Error returned when the ID specified for a resource, such as a maintenance window or patch - * baseline, doesn't exist.

- *

For information about resource quotas in Amazon Web Services Systems Manager, see Systems Manager service quotas in the - * Amazon Web Services General Reference.

- * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidResourceId} (client fault) - *

The resource ID isn't valid. Verify that you entered the correct ID and try again.

- * - * @throws {@link UnsupportedOperatingSystem} (client fault) - *

The operating systems you specified isn't supported, or the operation isn't supported for - * the operating system.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class DescribeEffectivePatchesForPatchBaselineCommand extends $Command { - readonly input: DescribeEffectivePatchesForPatchBaselineCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: DescribeEffectivePatchesForPatchBaselineCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeInstanceAssociationsStatusCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeInstanceAssociationsStatusCommand.d.ts deleted file mode 100644 index 1e2928e8..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeInstanceAssociationsStatusCommand.d.ts +++ /dev/null @@ -1,121 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { DescribeInstanceAssociationsStatusRequest, DescribeInstanceAssociationsStatusResult } from "../models/models_0"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link DescribeInstanceAssociationsStatusCommand}. - */ -export interface DescribeInstanceAssociationsStatusCommandInput extends DescribeInstanceAssociationsStatusRequest { -} -/** - * @public - * - * The output of {@link DescribeInstanceAssociationsStatusCommand}. - */ -export interface DescribeInstanceAssociationsStatusCommandOutput extends DescribeInstanceAssociationsStatusResult, __MetadataBearer { -} -/** - * @public - *

The status of the associations for the managed node(s).

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, DescribeInstanceAssociationsStatusCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, DescribeInstanceAssociationsStatusCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // DescribeInstanceAssociationsStatusRequest - * InstanceId: "STRING_VALUE", // required - * MaxResults: Number("int"), - * NextToken: "STRING_VALUE", - * }; - * const command = new DescribeInstanceAssociationsStatusCommand(input); - * const response = await client.send(command); - * // { // DescribeInstanceAssociationsStatusResult - * // InstanceAssociationStatusInfos: [ // InstanceAssociationStatusInfos - * // { // InstanceAssociationStatusInfo - * // AssociationId: "STRING_VALUE", - * // Name: "STRING_VALUE", - * // DocumentVersion: "STRING_VALUE", - * // AssociationVersion: "STRING_VALUE", - * // InstanceId: "STRING_VALUE", - * // ExecutionDate: new Date("TIMESTAMP"), - * // Status: "STRING_VALUE", - * // DetailedStatus: "STRING_VALUE", - * // ExecutionSummary: "STRING_VALUE", - * // ErrorCode: "STRING_VALUE", - * // OutputUrl: { // InstanceAssociationOutputUrl - * // S3OutputUrl: { // S3OutputUrl - * // OutputUrl: "STRING_VALUE", - * // }, - * // }, - * // AssociationName: "STRING_VALUE", - * // }, - * // ], - * // NextToken: "STRING_VALUE", - * // }; - * - * ``` - * - * @param DescribeInstanceAssociationsStatusCommandInput - {@link DescribeInstanceAssociationsStatusCommandInput} - * @returns {@link DescribeInstanceAssociationsStatusCommandOutput} - * @see {@link DescribeInstanceAssociationsStatusCommandInput} for command's `input` shape. - * @see {@link DescribeInstanceAssociationsStatusCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidInstanceId} (client fault) - *

The following problems can cause this exception:

- *
    - *
  • - *

    You don't have permission to access the managed node.

    - *
  • - *
  • - *

    Amazon Web Services Systems Manager Agent(SSM Agent) isn't running. Verify that SSM Agent is - * running.

    - *
  • - *
  • - *

    SSM Agent isn't registered with the SSM endpoint. Try reinstalling SSM Agent.

    - *
  • - *
  • - *

    The managed node isn't in valid state. Valid states are: Running, - * Pending, Stopped, and Stopping. Invalid states are: - * Shutting-down and Terminated.

    - *
  • - *
- * - * @throws {@link InvalidNextToken} (client fault) - *

The specified token isn't valid.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class DescribeInstanceAssociationsStatusCommand extends $Command { - readonly input: DescribeInstanceAssociationsStatusCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: DescribeInstanceAssociationsStatusCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeInstanceInformationCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeInstanceInformationCommand.d.ts deleted file mode 100644 index 050924ea..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeInstanceInformationCommand.d.ts +++ /dev/null @@ -1,161 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { DescribeInstanceInformationRequest, DescribeInstanceInformationResult } from "../models/models_0"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link DescribeInstanceInformationCommand}. - */ -export interface DescribeInstanceInformationCommandInput extends DescribeInstanceInformationRequest { -} -/** - * @public - * - * The output of {@link DescribeInstanceInformationCommand}. - */ -export interface DescribeInstanceInformationCommandOutput extends DescribeInstanceInformationResult, __MetadataBearer { -} -/** - * @public - *

Provides information about one or more of your managed nodes, including the operating system - * platform, SSM Agent version, association status, and IP address. This operation does not return - * information for nodes that are either Stopped or Terminated.

- *

If you specify one or more node IDs, the operation returns information for those managed - * nodes. If you don't specify node IDs, it returns information for all your managed nodes. If you - * specify a node ID that isn't valid or a node that you don't own, you receive an error.

- * - *

The IamRole field returned for this API operation is the Identity and Access Management (IAM) role assigned to on-premises managed nodes. This operation does not - * return the IAM role for EC2 instances.

- *
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, DescribeInstanceInformationCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, DescribeInstanceInformationCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // DescribeInstanceInformationRequest - * InstanceInformationFilterList: [ // InstanceInformationFilterList - * { // InstanceInformationFilter - * key: "InstanceIds" || "AgentVersion" || "PingStatus" || "PlatformTypes" || "ActivationIds" || "IamRole" || "ResourceType" || "AssociationStatus", // required - * valueSet: [ // InstanceInformationFilterValueSet // required - * "STRING_VALUE", - * ], - * }, - * ], - * Filters: [ // InstanceInformationStringFilterList - * { // InstanceInformationStringFilter - * Key: "STRING_VALUE", // required - * Values: [ // required - * "STRING_VALUE", - * ], - * }, - * ], - * MaxResults: Number("int"), - * NextToken: "STRING_VALUE", - * }; - * const command = new DescribeInstanceInformationCommand(input); - * const response = await client.send(command); - * // { // DescribeInstanceInformationResult - * // InstanceInformationList: [ // InstanceInformationList - * // { // InstanceInformation - * // InstanceId: "STRING_VALUE", - * // PingStatus: "Online" || "ConnectionLost" || "Inactive", - * // LastPingDateTime: new Date("TIMESTAMP"), - * // AgentVersion: "STRING_VALUE", - * // IsLatestVersion: true || false, - * // PlatformType: "Windows" || "Linux" || "MacOS", - * // PlatformName: "STRING_VALUE", - * // PlatformVersion: "STRING_VALUE", - * // ActivationId: "STRING_VALUE", - * // IamRole: "STRING_VALUE", - * // RegistrationDate: new Date("TIMESTAMP"), - * // ResourceType: "ManagedInstance" || "EC2Instance", - * // Name: "STRING_VALUE", - * // IPAddress: "STRING_VALUE", - * // ComputerName: "STRING_VALUE", - * // AssociationStatus: "STRING_VALUE", - * // LastAssociationExecutionDate: new Date("TIMESTAMP"), - * // LastSuccessfulAssociationExecutionDate: new Date("TIMESTAMP"), - * // AssociationOverview: { // InstanceAggregatedAssociationOverview - * // DetailedStatus: "STRING_VALUE", - * // InstanceAssociationStatusAggregatedCount: { // InstanceAssociationStatusAggregatedCount - * // "": Number("int"), - * // }, - * // }, - * // SourceId: "STRING_VALUE", - * // SourceType: "AWS::EC2::Instance" || "AWS::IoT::Thing" || "AWS::SSM::ManagedInstance", - * // }, - * // ], - * // NextToken: "STRING_VALUE", - * // }; - * - * ``` - * - * @param DescribeInstanceInformationCommandInput - {@link DescribeInstanceInformationCommandInput} - * @returns {@link DescribeInstanceInformationCommandOutput} - * @see {@link DescribeInstanceInformationCommandInput} for command's `input` shape. - * @see {@link DescribeInstanceInformationCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidFilterKey} (client fault) - *

The specified key isn't valid.

- * - * @throws {@link InvalidInstanceId} (client fault) - *

The following problems can cause this exception:

- *
    - *
  • - *

    You don't have permission to access the managed node.

    - *
  • - *
  • - *

    Amazon Web Services Systems Manager Agent(SSM Agent) isn't running. Verify that SSM Agent is - * running.

    - *
  • - *
  • - *

    SSM Agent isn't registered with the SSM endpoint. Try reinstalling SSM Agent.

    - *
  • - *
  • - *

    The managed node isn't in valid state. Valid states are: Running, - * Pending, Stopped, and Stopping. Invalid states are: - * Shutting-down and Terminated.

    - *
  • - *
- * - * @throws {@link InvalidInstanceInformationFilterValue} (client fault) - *

The specified filter value isn't valid.

- * - * @throws {@link InvalidNextToken} (client fault) - *

The specified token isn't valid.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class DescribeInstanceInformationCommand extends $Command { - readonly input: DescribeInstanceInformationCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: DescribeInstanceInformationCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeInstancePatchStatesCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeInstancePatchStatesCommand.d.ts deleted file mode 100644 index 93eb9533..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeInstancePatchStatesCommand.d.ts +++ /dev/null @@ -1,109 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { DescribeInstancePatchStatesRequest, DescribeInstancePatchStatesResult } from "../models/models_0"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link DescribeInstancePatchStatesCommand}. - */ -export interface DescribeInstancePatchStatesCommandInput extends DescribeInstancePatchStatesRequest { -} -/** - * @public - * - * The output of {@link DescribeInstancePatchStatesCommand}. - */ -export interface DescribeInstancePatchStatesCommandOutput extends DescribeInstancePatchStatesResult, __MetadataBearer { -} -/** - * @public - *

Retrieves the high-level patch state of one or more managed nodes.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, DescribeInstancePatchStatesCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, DescribeInstancePatchStatesCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // DescribeInstancePatchStatesRequest - * InstanceIds: [ // InstanceIdList // required - * "STRING_VALUE", - * ], - * NextToken: "STRING_VALUE", - * MaxResults: Number("int"), - * }; - * const command = new DescribeInstancePatchStatesCommand(input); - * const response = await client.send(command); - * // { // DescribeInstancePatchStatesResult - * // InstancePatchStates: [ // InstancePatchStateList - * // { // InstancePatchState - * // InstanceId: "STRING_VALUE", // required - * // PatchGroup: "STRING_VALUE", // required - * // BaselineId: "STRING_VALUE", // required - * // SnapshotId: "STRING_VALUE", - * // InstallOverrideList: "STRING_VALUE", - * // OwnerInformation: "STRING_VALUE", - * // InstalledCount: Number("int"), - * // InstalledOtherCount: Number("int"), - * // InstalledPendingRebootCount: Number("int"), - * // InstalledRejectedCount: Number("int"), - * // MissingCount: Number("int"), - * // FailedCount: Number("int"), - * // UnreportedNotApplicableCount: Number("int"), - * // NotApplicableCount: Number("int"), - * // OperationStartTime: new Date("TIMESTAMP"), // required - * // OperationEndTime: new Date("TIMESTAMP"), // required - * // Operation: "Scan" || "Install", // required - * // LastNoRebootInstallOperationTime: new Date("TIMESTAMP"), - * // RebootOption: "RebootIfNeeded" || "NoReboot", - * // CriticalNonCompliantCount: Number("int"), - * // SecurityNonCompliantCount: Number("int"), - * // OtherNonCompliantCount: Number("int"), - * // }, - * // ], - * // NextToken: "STRING_VALUE", - * // }; - * - * ``` - * - * @param DescribeInstancePatchStatesCommandInput - {@link DescribeInstancePatchStatesCommandInput} - * @returns {@link DescribeInstancePatchStatesCommandOutput} - * @see {@link DescribeInstancePatchStatesCommandInput} for command's `input` shape. - * @see {@link DescribeInstancePatchStatesCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidNextToken} (client fault) - *

The specified token isn't valid.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class DescribeInstancePatchStatesCommand extends $Command { - readonly input: DescribeInstancePatchStatesCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: DescribeInstancePatchStatesCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeInstancePatchStatesForPatchGroupCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeInstancePatchStatesForPatchGroupCommand.d.ts deleted file mode 100644 index 46b492ba..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeInstancePatchStatesForPatchGroupCommand.d.ts +++ /dev/null @@ -1,120 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { DescribeInstancePatchStatesForPatchGroupRequest, DescribeInstancePatchStatesForPatchGroupResult } from "../models/models_0"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link DescribeInstancePatchStatesForPatchGroupCommand}. - */ -export interface DescribeInstancePatchStatesForPatchGroupCommandInput extends DescribeInstancePatchStatesForPatchGroupRequest { -} -/** - * @public - * - * The output of {@link DescribeInstancePatchStatesForPatchGroupCommand}. - */ -export interface DescribeInstancePatchStatesForPatchGroupCommandOutput extends DescribeInstancePatchStatesForPatchGroupResult, __MetadataBearer { -} -/** - * @public - *

Retrieves the high-level patch state for the managed nodes in the specified patch - * group.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, DescribeInstancePatchStatesForPatchGroupCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, DescribeInstancePatchStatesForPatchGroupCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // DescribeInstancePatchStatesForPatchGroupRequest - * PatchGroup: "STRING_VALUE", // required - * Filters: [ // InstancePatchStateFilterList - * { // InstancePatchStateFilter - * Key: "STRING_VALUE", // required - * Values: [ // InstancePatchStateFilterValues // required - * "STRING_VALUE", - * ], - * Type: "Equal" || "NotEqual" || "LessThan" || "GreaterThan", // required - * }, - * ], - * NextToken: "STRING_VALUE", - * MaxResults: Number("int"), - * }; - * const command = new DescribeInstancePatchStatesForPatchGroupCommand(input); - * const response = await client.send(command); - * // { // DescribeInstancePatchStatesForPatchGroupResult - * // InstancePatchStates: [ // InstancePatchStatesList - * // { // InstancePatchState - * // InstanceId: "STRING_VALUE", // required - * // PatchGroup: "STRING_VALUE", // required - * // BaselineId: "STRING_VALUE", // required - * // SnapshotId: "STRING_VALUE", - * // InstallOverrideList: "STRING_VALUE", - * // OwnerInformation: "STRING_VALUE", - * // InstalledCount: Number("int"), - * // InstalledOtherCount: Number("int"), - * // InstalledPendingRebootCount: Number("int"), - * // InstalledRejectedCount: Number("int"), - * // MissingCount: Number("int"), - * // FailedCount: Number("int"), - * // UnreportedNotApplicableCount: Number("int"), - * // NotApplicableCount: Number("int"), - * // OperationStartTime: new Date("TIMESTAMP"), // required - * // OperationEndTime: new Date("TIMESTAMP"), // required - * // Operation: "Scan" || "Install", // required - * // LastNoRebootInstallOperationTime: new Date("TIMESTAMP"), - * // RebootOption: "RebootIfNeeded" || "NoReboot", - * // CriticalNonCompliantCount: Number("int"), - * // SecurityNonCompliantCount: Number("int"), - * // OtherNonCompliantCount: Number("int"), - * // }, - * // ], - * // NextToken: "STRING_VALUE", - * // }; - * - * ``` - * - * @param DescribeInstancePatchStatesForPatchGroupCommandInput - {@link DescribeInstancePatchStatesForPatchGroupCommandInput} - * @returns {@link DescribeInstancePatchStatesForPatchGroupCommandOutput} - * @see {@link DescribeInstancePatchStatesForPatchGroupCommandInput} for command's `input` shape. - * @see {@link DescribeInstancePatchStatesForPatchGroupCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidFilter} (client fault) - *

The filter name isn't valid. Verify the you entered the correct name and try again.

- * - * @throws {@link InvalidNextToken} (client fault) - *

The specified token isn't valid.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class DescribeInstancePatchStatesForPatchGroupCommand extends $Command { - readonly input: DescribeInstancePatchStatesForPatchGroupCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: DescribeInstancePatchStatesForPatchGroupCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeInstancePatchesCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeInstancePatchesCommand.d.ts deleted file mode 100644 index 3038de36..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeInstancePatchesCommand.d.ts +++ /dev/null @@ -1,124 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { DescribeInstancePatchesRequest, DescribeInstancePatchesResult } from "../models/models_0"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link DescribeInstancePatchesCommand}. - */ -export interface DescribeInstancePatchesCommandInput extends DescribeInstancePatchesRequest { -} -/** - * @public - * - * The output of {@link DescribeInstancePatchesCommand}. - */ -export interface DescribeInstancePatchesCommandOutput extends DescribeInstancePatchesResult, __MetadataBearer { -} -/** - * @public - *

Retrieves information about the patches on the specified managed node and their state - * relative to the patch baseline being used for the node.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, DescribeInstancePatchesCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, DescribeInstancePatchesCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // DescribeInstancePatchesRequest - * InstanceId: "STRING_VALUE", // required - * Filters: [ // PatchOrchestratorFilterList - * { // PatchOrchestratorFilter - * Key: "STRING_VALUE", - * Values: [ // PatchOrchestratorFilterValues - * "STRING_VALUE", - * ], - * }, - * ], - * NextToken: "STRING_VALUE", - * MaxResults: Number("int"), - * }; - * const command = new DescribeInstancePatchesCommand(input); - * const response = await client.send(command); - * // { // DescribeInstancePatchesResult - * // Patches: [ // PatchComplianceDataList - * // { // PatchComplianceData - * // Title: "STRING_VALUE", // required - * // KBId: "STRING_VALUE", // required - * // Classification: "STRING_VALUE", // required - * // Severity: "STRING_VALUE", // required - * // State: "INSTALLED" || "INSTALLED_OTHER" || "INSTALLED_PENDING_REBOOT" || "INSTALLED_REJECTED" || "MISSING" || "NOT_APPLICABLE" || "FAILED", // required - * // InstalledTime: new Date("TIMESTAMP"), // required - * // CVEIds: "STRING_VALUE", - * // }, - * // ], - * // NextToken: "STRING_VALUE", - * // }; - * - * ``` - * - * @param DescribeInstancePatchesCommandInput - {@link DescribeInstancePatchesCommandInput} - * @returns {@link DescribeInstancePatchesCommandOutput} - * @see {@link DescribeInstancePatchesCommandInput} for command's `input` shape. - * @see {@link DescribeInstancePatchesCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidFilter} (client fault) - *

The filter name isn't valid. Verify the you entered the correct name and try again.

- * - * @throws {@link InvalidInstanceId} (client fault) - *

The following problems can cause this exception:

- *
    - *
  • - *

    You don't have permission to access the managed node.

    - *
  • - *
  • - *

    Amazon Web Services Systems Manager Agent(SSM Agent) isn't running. Verify that SSM Agent is - * running.

    - *
  • - *
  • - *

    SSM Agent isn't registered with the SSM endpoint. Try reinstalling SSM Agent.

    - *
  • - *
  • - *

    The managed node isn't in valid state. Valid states are: Running, - * Pending, Stopped, and Stopping. Invalid states are: - * Shutting-down and Terminated.

    - *
  • - *
- * - * @throws {@link InvalidNextToken} (client fault) - *

The specified token isn't valid.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class DescribeInstancePatchesCommand extends $Command { - readonly input: DescribeInstancePatchesCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: DescribeInstancePatchesCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeInventoryDeletionsCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeInventoryDeletionsCommand.d.ts deleted file mode 100644 index c8081347..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeInventoryDeletionsCommand.d.ts +++ /dev/null @@ -1,106 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { DescribeInventoryDeletionsRequest, DescribeInventoryDeletionsResult } from "../models/models_0"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link DescribeInventoryDeletionsCommand}. - */ -export interface DescribeInventoryDeletionsCommandInput extends DescribeInventoryDeletionsRequest { -} -/** - * @public - * - * The output of {@link DescribeInventoryDeletionsCommand}. - */ -export interface DescribeInventoryDeletionsCommandOutput extends DescribeInventoryDeletionsResult, __MetadataBearer { -} -/** - * @public - *

Describes a specific delete inventory operation.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, DescribeInventoryDeletionsCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, DescribeInventoryDeletionsCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // DescribeInventoryDeletionsRequest - * DeletionId: "STRING_VALUE", - * NextToken: "STRING_VALUE", - * MaxResults: Number("int"), - * }; - * const command = new DescribeInventoryDeletionsCommand(input); - * const response = await client.send(command); - * // { // DescribeInventoryDeletionsResult - * // InventoryDeletions: [ // InventoryDeletionsList - * // { // InventoryDeletionStatusItem - * // DeletionId: "STRING_VALUE", - * // TypeName: "STRING_VALUE", - * // DeletionStartTime: new Date("TIMESTAMP"), - * // LastStatus: "InProgress" || "Complete", - * // LastStatusMessage: "STRING_VALUE", - * // DeletionSummary: { // InventoryDeletionSummary - * // TotalCount: Number("int"), - * // RemainingCount: Number("int"), - * // SummaryItems: [ // InventoryDeletionSummaryItems - * // { // InventoryDeletionSummaryItem - * // Version: "STRING_VALUE", - * // Count: Number("int"), - * // RemainingCount: Number("int"), - * // }, - * // ], - * // }, - * // LastStatusUpdateTime: new Date("TIMESTAMP"), - * // }, - * // ], - * // NextToken: "STRING_VALUE", - * // }; - * - * ``` - * - * @param DescribeInventoryDeletionsCommandInput - {@link DescribeInventoryDeletionsCommandInput} - * @returns {@link DescribeInventoryDeletionsCommandOutput} - * @see {@link DescribeInventoryDeletionsCommandInput} for command's `input` shape. - * @see {@link DescribeInventoryDeletionsCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidDeletionIdException} (client fault) - *

The ID specified for the delete operation doesn't exist or isn't valid. Verify the ID and - * try again.

- * - * @throws {@link InvalidNextToken} (client fault) - *

The specified token isn't valid.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class DescribeInventoryDeletionsCommand extends $Command { - readonly input: DescribeInventoryDeletionsCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: DescribeInventoryDeletionsCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeMaintenanceWindowExecutionTaskInvocationsCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeMaintenanceWindowExecutionTaskInvocationsCommand.d.ts deleted file mode 100644 index f0490fb9..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeMaintenanceWindowExecutionTaskInvocationsCommand.d.ts +++ /dev/null @@ -1,110 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { DescribeMaintenanceWindowExecutionTaskInvocationsRequest, DescribeMaintenanceWindowExecutionTaskInvocationsResult } from "../models/models_0"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link DescribeMaintenanceWindowExecutionTaskInvocationsCommand}. - */ -export interface DescribeMaintenanceWindowExecutionTaskInvocationsCommandInput extends DescribeMaintenanceWindowExecutionTaskInvocationsRequest { -} -/** - * @public - * - * The output of {@link DescribeMaintenanceWindowExecutionTaskInvocationsCommand}. - */ -export interface DescribeMaintenanceWindowExecutionTaskInvocationsCommandOutput extends DescribeMaintenanceWindowExecutionTaskInvocationsResult, __MetadataBearer { -} -/** - * @public - *

Retrieves the individual task executions (one per target) for a particular task run as part - * of a maintenance window execution.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, DescribeMaintenanceWindowExecutionTaskInvocationsCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, DescribeMaintenanceWindowExecutionTaskInvocationsCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // DescribeMaintenanceWindowExecutionTaskInvocationsRequest - * WindowExecutionId: "STRING_VALUE", // required - * TaskId: "STRING_VALUE", // required - * Filters: [ // MaintenanceWindowFilterList - * { // MaintenanceWindowFilter - * Key: "STRING_VALUE", - * Values: [ // MaintenanceWindowFilterValues - * "STRING_VALUE", - * ], - * }, - * ], - * MaxResults: Number("int"), - * NextToken: "STRING_VALUE", - * }; - * const command = new DescribeMaintenanceWindowExecutionTaskInvocationsCommand(input); - * const response = await client.send(command); - * // { // DescribeMaintenanceWindowExecutionTaskInvocationsResult - * // WindowExecutionTaskInvocationIdentities: [ // MaintenanceWindowExecutionTaskInvocationIdentityList - * // { // MaintenanceWindowExecutionTaskInvocationIdentity - * // WindowExecutionId: "STRING_VALUE", - * // TaskExecutionId: "STRING_VALUE", - * // InvocationId: "STRING_VALUE", - * // ExecutionId: "STRING_VALUE", - * // TaskType: "RUN_COMMAND" || "AUTOMATION" || "STEP_FUNCTIONS" || "LAMBDA", - * // Parameters: "STRING_VALUE", - * // Status: "PENDING" || "IN_PROGRESS" || "SUCCESS" || "FAILED" || "TIMED_OUT" || "CANCELLING" || "CANCELLED" || "SKIPPED_OVERLAPPING", - * // StatusDetails: "STRING_VALUE", - * // StartTime: new Date("TIMESTAMP"), - * // EndTime: new Date("TIMESTAMP"), - * // OwnerInformation: "STRING_VALUE", - * // WindowTargetId: "STRING_VALUE", - * // }, - * // ], - * // NextToken: "STRING_VALUE", - * // }; - * - * ``` - * - * @param DescribeMaintenanceWindowExecutionTaskInvocationsCommandInput - {@link DescribeMaintenanceWindowExecutionTaskInvocationsCommandInput} - * @returns {@link DescribeMaintenanceWindowExecutionTaskInvocationsCommandOutput} - * @see {@link DescribeMaintenanceWindowExecutionTaskInvocationsCommandInput} for command's `input` shape. - * @see {@link DescribeMaintenanceWindowExecutionTaskInvocationsCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link DoesNotExistException} (client fault) - *

Error returned when the ID specified for a resource, such as a maintenance window or patch - * baseline, doesn't exist.

- *

For information about resource quotas in Amazon Web Services Systems Manager, see Systems Manager service quotas in the - * Amazon Web Services General Reference.

- * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class DescribeMaintenanceWindowExecutionTaskInvocationsCommand extends $Command { - readonly input: DescribeMaintenanceWindowExecutionTaskInvocationsCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: DescribeMaintenanceWindowExecutionTaskInvocationsCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeMaintenanceWindowExecutionTasksCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeMaintenanceWindowExecutionTasksCommand.d.ts deleted file mode 100644 index 9a900cfc..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeMaintenanceWindowExecutionTasksCommand.d.ts +++ /dev/null @@ -1,118 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { DescribeMaintenanceWindowExecutionTasksRequest, DescribeMaintenanceWindowExecutionTasksResult } from "../models/models_0"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link DescribeMaintenanceWindowExecutionTasksCommand}. - */ -export interface DescribeMaintenanceWindowExecutionTasksCommandInput extends DescribeMaintenanceWindowExecutionTasksRequest { -} -/** - * @public - * - * The output of {@link DescribeMaintenanceWindowExecutionTasksCommand}. - */ -export interface DescribeMaintenanceWindowExecutionTasksCommandOutput extends DescribeMaintenanceWindowExecutionTasksResult, __MetadataBearer { -} -/** - * @public - *

For a given maintenance window execution, lists the tasks that were run.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, DescribeMaintenanceWindowExecutionTasksCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, DescribeMaintenanceWindowExecutionTasksCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // DescribeMaintenanceWindowExecutionTasksRequest - * WindowExecutionId: "STRING_VALUE", // required - * Filters: [ // MaintenanceWindowFilterList - * { // MaintenanceWindowFilter - * Key: "STRING_VALUE", - * Values: [ // MaintenanceWindowFilterValues - * "STRING_VALUE", - * ], - * }, - * ], - * MaxResults: Number("int"), - * NextToken: "STRING_VALUE", - * }; - * const command = new DescribeMaintenanceWindowExecutionTasksCommand(input); - * const response = await client.send(command); - * // { // DescribeMaintenanceWindowExecutionTasksResult - * // WindowExecutionTaskIdentities: [ // MaintenanceWindowExecutionTaskIdentityList - * // { // MaintenanceWindowExecutionTaskIdentity - * // WindowExecutionId: "STRING_VALUE", - * // TaskExecutionId: "STRING_VALUE", - * // Status: "PENDING" || "IN_PROGRESS" || "SUCCESS" || "FAILED" || "TIMED_OUT" || "CANCELLING" || "CANCELLED" || "SKIPPED_OVERLAPPING", - * // StatusDetails: "STRING_VALUE", - * // StartTime: new Date("TIMESTAMP"), - * // EndTime: new Date("TIMESTAMP"), - * // TaskArn: "STRING_VALUE", - * // TaskType: "RUN_COMMAND" || "AUTOMATION" || "STEP_FUNCTIONS" || "LAMBDA", - * // AlarmConfiguration: { // AlarmConfiguration - * // IgnorePollAlarmFailure: true || false, - * // Alarms: [ // AlarmList // required - * // { // Alarm - * // Name: "STRING_VALUE", // required - * // }, - * // ], - * // }, - * // TriggeredAlarms: [ // AlarmStateInformationList - * // { // AlarmStateInformation - * // Name: "STRING_VALUE", // required - * // State: "UNKNOWN" || "ALARM", // required - * // }, - * // ], - * // }, - * // ], - * // NextToken: "STRING_VALUE", - * // }; - * - * ``` - * - * @param DescribeMaintenanceWindowExecutionTasksCommandInput - {@link DescribeMaintenanceWindowExecutionTasksCommandInput} - * @returns {@link DescribeMaintenanceWindowExecutionTasksCommandOutput} - * @see {@link DescribeMaintenanceWindowExecutionTasksCommandInput} for command's `input` shape. - * @see {@link DescribeMaintenanceWindowExecutionTasksCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link DoesNotExistException} (client fault) - *

Error returned when the ID specified for a resource, such as a maintenance window or patch - * baseline, doesn't exist.

- *

For information about resource quotas in Amazon Web Services Systems Manager, see Systems Manager service quotas in the - * Amazon Web Services General Reference.

- * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class DescribeMaintenanceWindowExecutionTasksCommand extends $Command { - readonly input: DescribeMaintenanceWindowExecutionTasksCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: DescribeMaintenanceWindowExecutionTasksCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeMaintenanceWindowExecutionsCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeMaintenanceWindowExecutionsCommand.d.ts deleted file mode 100644 index 8821970d..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeMaintenanceWindowExecutionsCommand.d.ts +++ /dev/null @@ -1,98 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { DescribeMaintenanceWindowExecutionsRequest, DescribeMaintenanceWindowExecutionsResult } from "../models/models_0"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link DescribeMaintenanceWindowExecutionsCommand}. - */ -export interface DescribeMaintenanceWindowExecutionsCommandInput extends DescribeMaintenanceWindowExecutionsRequest { -} -/** - * @public - * - * The output of {@link DescribeMaintenanceWindowExecutionsCommand}. - */ -export interface DescribeMaintenanceWindowExecutionsCommandOutput extends DescribeMaintenanceWindowExecutionsResult, __MetadataBearer { -} -/** - * @public - *

Lists the executions of a maintenance window. This includes information about when the - * maintenance window was scheduled to be active, and information about tasks registered and run - * with the maintenance window.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, DescribeMaintenanceWindowExecutionsCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, DescribeMaintenanceWindowExecutionsCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // DescribeMaintenanceWindowExecutionsRequest - * WindowId: "STRING_VALUE", // required - * Filters: [ // MaintenanceWindowFilterList - * { // MaintenanceWindowFilter - * Key: "STRING_VALUE", - * Values: [ // MaintenanceWindowFilterValues - * "STRING_VALUE", - * ], - * }, - * ], - * MaxResults: Number("int"), - * NextToken: "STRING_VALUE", - * }; - * const command = new DescribeMaintenanceWindowExecutionsCommand(input); - * const response = await client.send(command); - * // { // DescribeMaintenanceWindowExecutionsResult - * // WindowExecutions: [ // MaintenanceWindowExecutionList - * // { // MaintenanceWindowExecution - * // WindowId: "STRING_VALUE", - * // WindowExecutionId: "STRING_VALUE", - * // Status: "PENDING" || "IN_PROGRESS" || "SUCCESS" || "FAILED" || "TIMED_OUT" || "CANCELLING" || "CANCELLED" || "SKIPPED_OVERLAPPING", - * // StatusDetails: "STRING_VALUE", - * // StartTime: new Date("TIMESTAMP"), - * // EndTime: new Date("TIMESTAMP"), - * // }, - * // ], - * // NextToken: "STRING_VALUE", - * // }; - * - * ``` - * - * @param DescribeMaintenanceWindowExecutionsCommandInput - {@link DescribeMaintenanceWindowExecutionsCommandInput} - * @returns {@link DescribeMaintenanceWindowExecutionsCommandOutput} - * @see {@link DescribeMaintenanceWindowExecutionsCommandInput} for command's `input` shape. - * @see {@link DescribeMaintenanceWindowExecutionsCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class DescribeMaintenanceWindowExecutionsCommand extends $Command { - readonly input: DescribeMaintenanceWindowExecutionsCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: DescribeMaintenanceWindowExecutionsCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeMaintenanceWindowScheduleCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeMaintenanceWindowScheduleCommand.d.ts deleted file mode 100644 index cbc1e49a..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeMaintenanceWindowScheduleCommand.d.ts +++ /dev/null @@ -1,108 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { DescribeMaintenanceWindowScheduleRequest, DescribeMaintenanceWindowScheduleResult } from "../models/models_0"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link DescribeMaintenanceWindowScheduleCommand}. - */ -export interface DescribeMaintenanceWindowScheduleCommandInput extends DescribeMaintenanceWindowScheduleRequest { -} -/** - * @public - * - * The output of {@link DescribeMaintenanceWindowScheduleCommand}. - */ -export interface DescribeMaintenanceWindowScheduleCommandOutput extends DescribeMaintenanceWindowScheduleResult, __MetadataBearer { -} -/** - * @public - *

Retrieves information about upcoming executions of a maintenance window.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, DescribeMaintenanceWindowScheduleCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, DescribeMaintenanceWindowScheduleCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // DescribeMaintenanceWindowScheduleRequest - * WindowId: "STRING_VALUE", - * Targets: [ // Targets - * { // Target - * Key: "STRING_VALUE", - * Values: [ // TargetValues - * "STRING_VALUE", - * ], - * }, - * ], - * ResourceType: "INSTANCE" || "RESOURCE_GROUP", - * Filters: [ // PatchOrchestratorFilterList - * { // PatchOrchestratorFilter - * Key: "STRING_VALUE", - * Values: [ // PatchOrchestratorFilterValues - * "STRING_VALUE", - * ], - * }, - * ], - * MaxResults: Number("int"), - * NextToken: "STRING_VALUE", - * }; - * const command = new DescribeMaintenanceWindowScheduleCommand(input); - * const response = await client.send(command); - * // { // DescribeMaintenanceWindowScheduleResult - * // ScheduledWindowExecutions: [ // ScheduledWindowExecutionList - * // { // ScheduledWindowExecution - * // WindowId: "STRING_VALUE", - * // Name: "STRING_VALUE", - * // ExecutionTime: "STRING_VALUE", - * // }, - * // ], - * // NextToken: "STRING_VALUE", - * // }; - * - * ``` - * - * @param DescribeMaintenanceWindowScheduleCommandInput - {@link DescribeMaintenanceWindowScheduleCommandInput} - * @returns {@link DescribeMaintenanceWindowScheduleCommandOutput} - * @see {@link DescribeMaintenanceWindowScheduleCommandInput} for command's `input` shape. - * @see {@link DescribeMaintenanceWindowScheduleCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link DoesNotExistException} (client fault) - *

Error returned when the ID specified for a resource, such as a maintenance window or patch - * baseline, doesn't exist.

- *

For information about resource quotas in Amazon Web Services Systems Manager, see Systems Manager service quotas in the - * Amazon Web Services General Reference.

- * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class DescribeMaintenanceWindowScheduleCommand extends $Command { - readonly input: DescribeMaintenanceWindowScheduleCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: DescribeMaintenanceWindowScheduleCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeMaintenanceWindowTargetsCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeMaintenanceWindowTargetsCommand.d.ts deleted file mode 100644 index c3783680..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeMaintenanceWindowTargetsCommand.d.ts +++ /dev/null @@ -1,110 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { DescribeMaintenanceWindowTargetsRequest, DescribeMaintenanceWindowTargetsResult } from "../models/models_0"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link DescribeMaintenanceWindowTargetsCommand}. - */ -export interface DescribeMaintenanceWindowTargetsCommandInput extends DescribeMaintenanceWindowTargetsRequest { -} -/** - * @public - * - * The output of {@link DescribeMaintenanceWindowTargetsCommand}. - */ -export interface DescribeMaintenanceWindowTargetsCommandOutput extends DescribeMaintenanceWindowTargetsResult, __MetadataBearer { -} -/** - * @public - *

Lists the targets registered with the maintenance window.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, DescribeMaintenanceWindowTargetsCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, DescribeMaintenanceWindowTargetsCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // DescribeMaintenanceWindowTargetsRequest - * WindowId: "STRING_VALUE", // required - * Filters: [ // MaintenanceWindowFilterList - * { // MaintenanceWindowFilter - * Key: "STRING_VALUE", - * Values: [ // MaintenanceWindowFilterValues - * "STRING_VALUE", - * ], - * }, - * ], - * MaxResults: Number("int"), - * NextToken: "STRING_VALUE", - * }; - * const command = new DescribeMaintenanceWindowTargetsCommand(input); - * const response = await client.send(command); - * // { // DescribeMaintenanceWindowTargetsResult - * // Targets: [ // MaintenanceWindowTargetList - * // { // MaintenanceWindowTarget - * // WindowId: "STRING_VALUE", - * // WindowTargetId: "STRING_VALUE", - * // ResourceType: "INSTANCE" || "RESOURCE_GROUP", - * // Targets: [ // Targets - * // { // Target - * // Key: "STRING_VALUE", - * // Values: [ // TargetValues - * // "STRING_VALUE", - * // ], - * // }, - * // ], - * // OwnerInformation: "STRING_VALUE", - * // Name: "STRING_VALUE", - * // Description: "STRING_VALUE", - * // }, - * // ], - * // NextToken: "STRING_VALUE", - * // }; - * - * ``` - * - * @param DescribeMaintenanceWindowTargetsCommandInput - {@link DescribeMaintenanceWindowTargetsCommandInput} - * @returns {@link DescribeMaintenanceWindowTargetsCommandOutput} - * @see {@link DescribeMaintenanceWindowTargetsCommandInput} for command's `input` shape. - * @see {@link DescribeMaintenanceWindowTargetsCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link DoesNotExistException} (client fault) - *

Error returned when the ID specified for a resource, such as a maintenance window or patch - * baseline, doesn't exist.

- *

For information about resource quotas in Amazon Web Services Systems Manager, see Systems Manager service quotas in the - * Amazon Web Services General Reference.

- * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class DescribeMaintenanceWindowTargetsCommand extends $Command { - readonly input: DescribeMaintenanceWindowTargetsCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: DescribeMaintenanceWindowTargetsCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeMaintenanceWindowTasksCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeMaintenanceWindowTasksCommand.d.ts deleted file mode 100644 index 6e51221c..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeMaintenanceWindowTasksCommand.d.ts +++ /dev/null @@ -1,142 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { DescribeMaintenanceWindowTasksRequest } from "../models/models_0"; -import { DescribeMaintenanceWindowTasksResult } from "../models/models_1"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link DescribeMaintenanceWindowTasksCommand}. - */ -export interface DescribeMaintenanceWindowTasksCommandInput extends DescribeMaintenanceWindowTasksRequest { -} -/** - * @public - * - * The output of {@link DescribeMaintenanceWindowTasksCommand}. - */ -export interface DescribeMaintenanceWindowTasksCommandOutput extends DescribeMaintenanceWindowTasksResult, __MetadataBearer { -} -/** - * @public - *

Lists the tasks in a maintenance window.

- * - *

For maintenance window tasks without a specified target, you can't supply values for - * --max-errors and --max-concurrency. Instead, the system inserts a - * placeholder value of 1, which may be reported in the response to this command. - * These values don't affect the running of your task and can be ignored.

- *
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, DescribeMaintenanceWindowTasksCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, DescribeMaintenanceWindowTasksCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // DescribeMaintenanceWindowTasksRequest - * WindowId: "STRING_VALUE", // required - * Filters: [ // MaintenanceWindowFilterList - * { // MaintenanceWindowFilter - * Key: "STRING_VALUE", - * Values: [ // MaintenanceWindowFilterValues - * "STRING_VALUE", - * ], - * }, - * ], - * MaxResults: Number("int"), - * NextToken: "STRING_VALUE", - * }; - * const command = new DescribeMaintenanceWindowTasksCommand(input); - * const response = await client.send(command); - * // { // DescribeMaintenanceWindowTasksResult - * // Tasks: [ // MaintenanceWindowTaskList - * // { // MaintenanceWindowTask - * // WindowId: "STRING_VALUE", - * // WindowTaskId: "STRING_VALUE", - * // TaskArn: "STRING_VALUE", - * // Type: "RUN_COMMAND" || "AUTOMATION" || "STEP_FUNCTIONS" || "LAMBDA", - * // Targets: [ // Targets - * // { // Target - * // Key: "STRING_VALUE", - * // Values: [ // TargetValues - * // "STRING_VALUE", - * // ], - * // }, - * // ], - * // TaskParameters: { // MaintenanceWindowTaskParameters - * // "": { // MaintenanceWindowTaskParameterValueExpression - * // Values: [ // MaintenanceWindowTaskParameterValueList - * // "STRING_VALUE", - * // ], - * // }, - * // }, - * // Priority: Number("int"), - * // LoggingInfo: { // LoggingInfo - * // S3BucketName: "STRING_VALUE", // required - * // S3KeyPrefix: "STRING_VALUE", - * // S3Region: "STRING_VALUE", // required - * // }, - * // ServiceRoleArn: "STRING_VALUE", - * // MaxConcurrency: "STRING_VALUE", - * // MaxErrors: "STRING_VALUE", - * // Name: "STRING_VALUE", - * // Description: "STRING_VALUE", - * // CutoffBehavior: "CONTINUE_TASK" || "CANCEL_TASK", - * // AlarmConfiguration: { // AlarmConfiguration - * // IgnorePollAlarmFailure: true || false, - * // Alarms: [ // AlarmList // required - * // { // Alarm - * // Name: "STRING_VALUE", // required - * // }, - * // ], - * // }, - * // }, - * // ], - * // NextToken: "STRING_VALUE", - * // }; - * - * ``` - * - * @param DescribeMaintenanceWindowTasksCommandInput - {@link DescribeMaintenanceWindowTasksCommandInput} - * @returns {@link DescribeMaintenanceWindowTasksCommandOutput} - * @see {@link DescribeMaintenanceWindowTasksCommandInput} for command's `input` shape. - * @see {@link DescribeMaintenanceWindowTasksCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link DoesNotExistException} (client fault) - *

Error returned when the ID specified for a resource, such as a maintenance window or patch - * baseline, doesn't exist.

- *

For information about resource quotas in Amazon Web Services Systems Manager, see Systems Manager service quotas in the - * Amazon Web Services General Reference.

- * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class DescribeMaintenanceWindowTasksCommand extends $Command { - readonly input: DescribeMaintenanceWindowTasksCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: DescribeMaintenanceWindowTasksCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeMaintenanceWindowsCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeMaintenanceWindowsCommand.d.ts deleted file mode 100644 index 92c51bfe..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeMaintenanceWindowsCommand.d.ts +++ /dev/null @@ -1,101 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { DescribeMaintenanceWindowsRequest, DescribeMaintenanceWindowsResult } from "../models/models_0"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link DescribeMaintenanceWindowsCommand}. - */ -export interface DescribeMaintenanceWindowsCommandInput extends DescribeMaintenanceWindowsRequest { -} -/** - * @public - * - * The output of {@link DescribeMaintenanceWindowsCommand}. - */ -export interface DescribeMaintenanceWindowsCommandOutput extends DescribeMaintenanceWindowsResult, __MetadataBearer { -} -/** - * @public - *

Retrieves the maintenance windows in an Amazon Web Services account.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, DescribeMaintenanceWindowsCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, DescribeMaintenanceWindowsCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // DescribeMaintenanceWindowsRequest - * Filters: [ // MaintenanceWindowFilterList - * { // MaintenanceWindowFilter - * Key: "STRING_VALUE", - * Values: [ // MaintenanceWindowFilterValues - * "STRING_VALUE", - * ], - * }, - * ], - * MaxResults: Number("int"), - * NextToken: "STRING_VALUE", - * }; - * const command = new DescribeMaintenanceWindowsCommand(input); - * const response = await client.send(command); - * // { // DescribeMaintenanceWindowsResult - * // WindowIdentities: [ // MaintenanceWindowIdentityList - * // { // MaintenanceWindowIdentity - * // WindowId: "STRING_VALUE", - * // Name: "STRING_VALUE", - * // Description: "STRING_VALUE", - * // Enabled: true || false, - * // Duration: Number("int"), - * // Cutoff: Number("int"), - * // Schedule: "STRING_VALUE", - * // ScheduleTimezone: "STRING_VALUE", - * // ScheduleOffset: Number("int"), - * // EndDate: "STRING_VALUE", - * // StartDate: "STRING_VALUE", - * // NextExecutionTime: "STRING_VALUE", - * // }, - * // ], - * // NextToken: "STRING_VALUE", - * // }; - * - * ``` - * - * @param DescribeMaintenanceWindowsCommandInput - {@link DescribeMaintenanceWindowsCommandInput} - * @returns {@link DescribeMaintenanceWindowsCommandOutput} - * @see {@link DescribeMaintenanceWindowsCommandInput} for command's `input` shape. - * @see {@link DescribeMaintenanceWindowsCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class DescribeMaintenanceWindowsCommand extends $Command { - readonly input: DescribeMaintenanceWindowsCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: DescribeMaintenanceWindowsCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeMaintenanceWindowsForTargetCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeMaintenanceWindowsForTargetCommand.d.ts deleted file mode 100644 index 3afb0ffd..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeMaintenanceWindowsForTargetCommand.d.ts +++ /dev/null @@ -1,93 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { DescribeMaintenanceWindowsForTargetRequest, DescribeMaintenanceWindowsForTargetResult } from "../models/models_0"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link DescribeMaintenanceWindowsForTargetCommand}. - */ -export interface DescribeMaintenanceWindowsForTargetCommandInput extends DescribeMaintenanceWindowsForTargetRequest { -} -/** - * @public - * - * The output of {@link DescribeMaintenanceWindowsForTargetCommand}. - */ -export interface DescribeMaintenanceWindowsForTargetCommandOutput extends DescribeMaintenanceWindowsForTargetResult, __MetadataBearer { -} -/** - * @public - *

Retrieves information about the maintenance window targets or tasks that a managed node is - * associated with.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, DescribeMaintenanceWindowsForTargetCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, DescribeMaintenanceWindowsForTargetCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // DescribeMaintenanceWindowsForTargetRequest - * Targets: [ // Targets // required - * { // Target - * Key: "STRING_VALUE", - * Values: [ // TargetValues - * "STRING_VALUE", - * ], - * }, - * ], - * ResourceType: "INSTANCE" || "RESOURCE_GROUP", // required - * MaxResults: Number("int"), - * NextToken: "STRING_VALUE", - * }; - * const command = new DescribeMaintenanceWindowsForTargetCommand(input); - * const response = await client.send(command); - * // { // DescribeMaintenanceWindowsForTargetResult - * // WindowIdentities: [ // MaintenanceWindowsForTargetList - * // { // MaintenanceWindowIdentityForTarget - * // WindowId: "STRING_VALUE", - * // Name: "STRING_VALUE", - * // }, - * // ], - * // NextToken: "STRING_VALUE", - * // }; - * - * ``` - * - * @param DescribeMaintenanceWindowsForTargetCommandInput - {@link DescribeMaintenanceWindowsForTargetCommandInput} - * @returns {@link DescribeMaintenanceWindowsForTargetCommandOutput} - * @see {@link DescribeMaintenanceWindowsForTargetCommandInput} for command's `input` shape. - * @see {@link DescribeMaintenanceWindowsForTargetCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class DescribeMaintenanceWindowsForTargetCommand extends $Command { - readonly input: DescribeMaintenanceWindowsForTargetCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: DescribeMaintenanceWindowsForTargetCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeOpsItemsCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeOpsItemsCommand.d.ts deleted file mode 100644 index 0a92a1a7..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeOpsItemsCommand.d.ts +++ /dev/null @@ -1,117 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { DescribeOpsItemsRequest, DescribeOpsItemsResponse } from "../models/models_1"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link DescribeOpsItemsCommand}. - */ -export interface DescribeOpsItemsCommandInput extends DescribeOpsItemsRequest { -} -/** - * @public - * - * The output of {@link DescribeOpsItemsCommand}. - */ -export interface DescribeOpsItemsCommandOutput extends DescribeOpsItemsResponse, __MetadataBearer { -} -/** - * @public - *

Query a set of OpsItems. You must have permission in Identity and Access Management (IAM) to query a list of OpsItems. For more information, see Set up OpsCenter in the - * Amazon Web Services Systems Manager User Guide.

- *

Operations engineers and IT professionals use Amazon Web Services Systems Manager OpsCenter to view, investigate, and - * remediate operational issues impacting the performance and health of their Amazon Web Services resources. For - * more information, see OpsCenter in the - * Amazon Web Services Systems Manager User Guide.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, DescribeOpsItemsCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, DescribeOpsItemsCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // DescribeOpsItemsRequest - * OpsItemFilters: [ // OpsItemFilters - * { // OpsItemFilter - * Key: "Status" || "CreatedBy" || "Source" || "Priority" || "Title" || "OpsItemId" || "CreatedTime" || "LastModifiedTime" || "ActualStartTime" || "ActualEndTime" || "PlannedStartTime" || "PlannedEndTime" || "OperationalData" || "OperationalDataKey" || "OperationalDataValue" || "ResourceId" || "AutomationId" || "Category" || "Severity" || "OpsItemType" || "ChangeRequestByRequesterArn" || "ChangeRequestByRequesterName" || "ChangeRequestByApproverArn" || "ChangeRequestByApproverName" || "ChangeRequestByTemplate" || "ChangeRequestByTargetsResourceGroup" || "InsightByType" || "AccountId", // required - * Values: [ // OpsItemFilterValues // required - * "STRING_VALUE", - * ], - * Operator: "Equal" || "Contains" || "GreaterThan" || "LessThan", // required - * }, - * ], - * MaxResults: Number("int"), - * NextToken: "STRING_VALUE", - * }; - * const command = new DescribeOpsItemsCommand(input); - * const response = await client.send(command); - * // { // DescribeOpsItemsResponse - * // NextToken: "STRING_VALUE", - * // OpsItemSummaries: [ // OpsItemSummaries - * // { // OpsItemSummary - * // CreatedBy: "STRING_VALUE", - * // CreatedTime: new Date("TIMESTAMP"), - * // LastModifiedBy: "STRING_VALUE", - * // LastModifiedTime: new Date("TIMESTAMP"), - * // Priority: Number("int"), - * // Source: "STRING_VALUE", - * // Status: "Open" || "InProgress" || "Resolved" || "Pending" || "TimedOut" || "Cancelling" || "Cancelled" || "Failed" || "CompletedWithSuccess" || "CompletedWithFailure" || "Scheduled" || "RunbookInProgress" || "PendingChangeCalendarOverride" || "ChangeCalendarOverrideApproved" || "ChangeCalendarOverrideRejected" || "PendingApproval" || "Approved" || "Rejected" || "Closed", - * // OpsItemId: "STRING_VALUE", - * // Title: "STRING_VALUE", - * // OperationalData: { // OpsItemOperationalData - * // "": { // OpsItemDataValue - * // Value: "STRING_VALUE", - * // Type: "SearchableString" || "String", - * // }, - * // }, - * // Category: "STRING_VALUE", - * // Severity: "STRING_VALUE", - * // OpsItemType: "STRING_VALUE", - * // ActualStartTime: new Date("TIMESTAMP"), - * // ActualEndTime: new Date("TIMESTAMP"), - * // PlannedStartTime: new Date("TIMESTAMP"), - * // PlannedEndTime: new Date("TIMESTAMP"), - * // }, - * // ], - * // }; - * - * ``` - * - * @param DescribeOpsItemsCommandInput - {@link DescribeOpsItemsCommandInput} - * @returns {@link DescribeOpsItemsCommandOutput} - * @see {@link DescribeOpsItemsCommandInput} for command's `input` shape. - * @see {@link DescribeOpsItemsCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class DescribeOpsItemsCommand extends $Command { - readonly input: DescribeOpsItemsCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: DescribeOpsItemsCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeParametersCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeParametersCommand.d.ts deleted file mode 100644 index 5bbfde1d..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeParametersCommand.d.ts +++ /dev/null @@ -1,140 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { DescribeParametersRequest, DescribeParametersResult } from "../models/models_1"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link DescribeParametersCommand}. - */ -export interface DescribeParametersCommandInput extends DescribeParametersRequest { -} -/** - * @public - * - * The output of {@link DescribeParametersCommand}. - */ -export interface DescribeParametersCommandOutput extends DescribeParametersResult, __MetadataBearer { -} -/** - * @public - *

Get information about a parameter.

- *

Request results are returned on a best-effort basis. If you specify MaxResults - * in the request, the response includes information up to the limit specified. The number of items - * returned, however, can be between zero and the value of MaxResults. If the service - * reaches an internal limit while processing the results, it stops the operation and returns the - * matching values up to that point and a NextToken. You can specify the - * NextToken in a subsequent call to get the next set of results.

- * - *

If you change the KMS key alias for the KMS key used to encrypt a parameter, then you must - * also update the key alias the parameter uses to reference KMS. Otherwise, - * DescribeParameters retrieves whatever the original key alias was - * referencing.

- *
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, DescribeParametersCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, DescribeParametersCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // DescribeParametersRequest - * Filters: [ // ParametersFilterList - * { // ParametersFilter - * Key: "Name" || "Type" || "KeyId", // required - * Values: [ // ParametersFilterValueList // required - * "STRING_VALUE", - * ], - * }, - * ], - * ParameterFilters: [ // ParameterStringFilterList - * { // ParameterStringFilter - * Key: "STRING_VALUE", // required - * Option: "STRING_VALUE", - * Values: [ // ParameterStringFilterValueList - * "STRING_VALUE", - * ], - * }, - * ], - * MaxResults: Number("int"), - * NextToken: "STRING_VALUE", - * }; - * const command = new DescribeParametersCommand(input); - * const response = await client.send(command); - * // { // DescribeParametersResult - * // Parameters: [ // ParameterMetadataList - * // { // ParameterMetadata - * // Name: "STRING_VALUE", - * // Type: "String" || "StringList" || "SecureString", - * // KeyId: "STRING_VALUE", - * // LastModifiedDate: new Date("TIMESTAMP"), - * // LastModifiedUser: "STRING_VALUE", - * // Description: "STRING_VALUE", - * // AllowedPattern: "STRING_VALUE", - * // Version: Number("long"), - * // Tier: "Standard" || "Advanced" || "Intelligent-Tiering", - * // Policies: [ // ParameterPolicyList - * // { // ParameterInlinePolicy - * // PolicyText: "STRING_VALUE", - * // PolicyType: "STRING_VALUE", - * // PolicyStatus: "STRING_VALUE", - * // }, - * // ], - * // DataType: "STRING_VALUE", - * // }, - * // ], - * // NextToken: "STRING_VALUE", - * // }; - * - * ``` - * - * @param DescribeParametersCommandInput - {@link DescribeParametersCommandInput} - * @returns {@link DescribeParametersCommandOutput} - * @see {@link DescribeParametersCommandInput} for command's `input` shape. - * @see {@link DescribeParametersCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidFilterKey} (client fault) - *

The specified key isn't valid.

- * - * @throws {@link InvalidFilterOption} (client fault) - *

The specified filter option isn't valid. Valid options are Equals and BeginsWith. For Path - * filter, valid options are Recursive and OneLevel.

- * - * @throws {@link InvalidFilterValue} (client fault) - *

The filter value isn't valid. Verify the value and try again.

- * - * @throws {@link InvalidNextToken} (client fault) - *

The specified token isn't valid.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class DescribeParametersCommand extends $Command { - readonly input: DescribeParametersCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: DescribeParametersCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribePatchBaselinesCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribePatchBaselinesCommand.d.ts deleted file mode 100644 index f4c45d2c..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribePatchBaselinesCommand.d.ts +++ /dev/null @@ -1,94 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { DescribePatchBaselinesRequest, DescribePatchBaselinesResult } from "../models/models_1"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link DescribePatchBaselinesCommand}. - */ -export interface DescribePatchBaselinesCommandInput extends DescribePatchBaselinesRequest { -} -/** - * @public - * - * The output of {@link DescribePatchBaselinesCommand}. - */ -export interface DescribePatchBaselinesCommandOutput extends DescribePatchBaselinesResult, __MetadataBearer { -} -/** - * @public - *

Lists the patch baselines in your Amazon Web Services account.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, DescribePatchBaselinesCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, DescribePatchBaselinesCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // DescribePatchBaselinesRequest - * Filters: [ // PatchOrchestratorFilterList - * { // PatchOrchestratorFilter - * Key: "STRING_VALUE", - * Values: [ // PatchOrchestratorFilterValues - * "STRING_VALUE", - * ], - * }, - * ], - * MaxResults: Number("int"), - * NextToken: "STRING_VALUE", - * }; - * const command = new DescribePatchBaselinesCommand(input); - * const response = await client.send(command); - * // { // DescribePatchBaselinesResult - * // BaselineIdentities: [ // PatchBaselineIdentityList - * // { // PatchBaselineIdentity - * // BaselineId: "STRING_VALUE", - * // BaselineName: "STRING_VALUE", - * // OperatingSystem: "WINDOWS" || "AMAZON_LINUX" || "AMAZON_LINUX_2" || "AMAZON_LINUX_2022" || "UBUNTU" || "REDHAT_ENTERPRISE_LINUX" || "SUSE" || "CENTOS" || "ORACLE_LINUX" || "DEBIAN" || "MACOS" || "RASPBIAN" || "ROCKY_LINUX" || "ALMA_LINUX" || "AMAZON_LINUX_2023", - * // BaselineDescription: "STRING_VALUE", - * // DefaultBaseline: true || false, - * // }, - * // ], - * // NextToken: "STRING_VALUE", - * // }; - * - * ``` - * - * @param DescribePatchBaselinesCommandInput - {@link DescribePatchBaselinesCommandInput} - * @returns {@link DescribePatchBaselinesCommandOutput} - * @see {@link DescribePatchBaselinesCommandInput} for command's `input` shape. - * @see {@link DescribePatchBaselinesCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class DescribePatchBaselinesCommand extends $Command { - readonly input: DescribePatchBaselinesCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: DescribePatchBaselinesCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribePatchGroupStateCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribePatchGroupStateCommand.d.ts deleted file mode 100644 index 5e52447e..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribePatchGroupStateCommand.d.ts +++ /dev/null @@ -1,90 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { DescribePatchGroupStateRequest, DescribePatchGroupStateResult } from "../models/models_1"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link DescribePatchGroupStateCommand}. - */ -export interface DescribePatchGroupStateCommandInput extends DescribePatchGroupStateRequest { -} -/** - * @public - * - * The output of {@link DescribePatchGroupStateCommand}. - */ -export interface DescribePatchGroupStateCommandOutput extends DescribePatchGroupStateResult, __MetadataBearer { -} -/** - * @public - *

Returns high-level aggregated patch compliance state information for a patch group.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, DescribePatchGroupStateCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, DescribePatchGroupStateCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // DescribePatchGroupStateRequest - * PatchGroup: "STRING_VALUE", // required - * }; - * const command = new DescribePatchGroupStateCommand(input); - * const response = await client.send(command); - * // { // DescribePatchGroupStateResult - * // Instances: Number("int"), - * // InstancesWithInstalledPatches: Number("int"), - * // InstancesWithInstalledOtherPatches: Number("int"), - * // InstancesWithInstalledPendingRebootPatches: Number("int"), - * // InstancesWithInstalledRejectedPatches: Number("int"), - * // InstancesWithMissingPatches: Number("int"), - * // InstancesWithFailedPatches: Number("int"), - * // InstancesWithNotApplicablePatches: Number("int"), - * // InstancesWithUnreportedNotApplicablePatches: Number("int"), - * // InstancesWithCriticalNonCompliantPatches: Number("int"), - * // InstancesWithSecurityNonCompliantPatches: Number("int"), - * // InstancesWithOtherNonCompliantPatches: Number("int"), - * // }; - * - * ``` - * - * @param DescribePatchGroupStateCommandInput - {@link DescribePatchGroupStateCommandInput} - * @returns {@link DescribePatchGroupStateCommandOutput} - * @see {@link DescribePatchGroupStateCommandInput} for command's `input` shape. - * @see {@link DescribePatchGroupStateCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidNextToken} (client fault) - *

The specified token isn't valid.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class DescribePatchGroupStateCommand extends $Command { - readonly input: DescribePatchGroupStateCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: DescribePatchGroupStateCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribePatchGroupsCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribePatchGroupsCommand.d.ts deleted file mode 100644 index c2e9382f..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribePatchGroupsCommand.d.ts +++ /dev/null @@ -1,97 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { DescribePatchGroupsRequest, DescribePatchGroupsResult } from "../models/models_1"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link DescribePatchGroupsCommand}. - */ -export interface DescribePatchGroupsCommandInput extends DescribePatchGroupsRequest { -} -/** - * @public - * - * The output of {@link DescribePatchGroupsCommand}. - */ -export interface DescribePatchGroupsCommandOutput extends DescribePatchGroupsResult, __MetadataBearer { -} -/** - * @public - *

Lists all patch groups that have been registered with patch baselines.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, DescribePatchGroupsCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, DescribePatchGroupsCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // DescribePatchGroupsRequest - * MaxResults: Number("int"), - * Filters: [ // PatchOrchestratorFilterList - * { // PatchOrchestratorFilter - * Key: "STRING_VALUE", - * Values: [ // PatchOrchestratorFilterValues - * "STRING_VALUE", - * ], - * }, - * ], - * NextToken: "STRING_VALUE", - * }; - * const command = new DescribePatchGroupsCommand(input); - * const response = await client.send(command); - * // { // DescribePatchGroupsResult - * // Mappings: [ // PatchGroupPatchBaselineMappingList - * // { // PatchGroupPatchBaselineMapping - * // PatchGroup: "STRING_VALUE", - * // BaselineIdentity: { // PatchBaselineIdentity - * // BaselineId: "STRING_VALUE", - * // BaselineName: "STRING_VALUE", - * // OperatingSystem: "WINDOWS" || "AMAZON_LINUX" || "AMAZON_LINUX_2" || "AMAZON_LINUX_2022" || "UBUNTU" || "REDHAT_ENTERPRISE_LINUX" || "SUSE" || "CENTOS" || "ORACLE_LINUX" || "DEBIAN" || "MACOS" || "RASPBIAN" || "ROCKY_LINUX" || "ALMA_LINUX" || "AMAZON_LINUX_2023", - * // BaselineDescription: "STRING_VALUE", - * // DefaultBaseline: true || false, - * // }, - * // }, - * // ], - * // NextToken: "STRING_VALUE", - * // }; - * - * ``` - * - * @param DescribePatchGroupsCommandInput - {@link DescribePatchGroupsCommandInput} - * @returns {@link DescribePatchGroupsCommandOutput} - * @see {@link DescribePatchGroupsCommandInput} for command's `input` shape. - * @see {@link DescribePatchGroupsCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class DescribePatchGroupsCommand extends $Command { - readonly input: DescribePatchGroupsCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: DescribePatchGroupsCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribePatchPropertiesCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribePatchPropertiesCommand.d.ts deleted file mode 100644 index 542a6975..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribePatchPropertiesCommand.d.ts +++ /dev/null @@ -1,148 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { DescribePatchPropertiesRequest, DescribePatchPropertiesResult } from "../models/models_1"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link DescribePatchPropertiesCommand}. - */ -export interface DescribePatchPropertiesCommandInput extends DescribePatchPropertiesRequest { -} -/** - * @public - * - * The output of {@link DescribePatchPropertiesCommand}. - */ -export interface DescribePatchPropertiesCommandOutput extends DescribePatchPropertiesResult, __MetadataBearer { -} -/** - * @public - *

Lists the properties of available patches organized by product, product family, - * classification, severity, and other properties of available patches. You can use the reported - * properties in the filters you specify in requests for operations such as CreatePatchBaseline, UpdatePatchBaseline, DescribeAvailablePatches, and DescribePatchBaselines.

- *

The following section lists the properties that can be used in filters for each major - * operating system type:

- *
- *
AMAZON_LINUX
- *
- *

Valid properties: PRODUCT | CLASSIFICATION | - * SEVERITY - *

- *
- *
AMAZON_LINUX_2
- *
- *

Valid properties: PRODUCT | CLASSIFICATION | - * SEVERITY - *

- *
- *
CENTOS
- *
- *

Valid properties: PRODUCT | CLASSIFICATION | - * SEVERITY - *

- *
- *
DEBIAN
- *
- *

Valid properties: PRODUCT | PRIORITY - *

- *
- *
MACOS
- *
- *

Valid properties: PRODUCT | CLASSIFICATION - *

- *
- *
ORACLE_LINUX
- *
- *

Valid properties: PRODUCT | CLASSIFICATION | - * SEVERITY - *

- *
- *
REDHAT_ENTERPRISE_LINUX
- *
- *

Valid properties: PRODUCT | CLASSIFICATION | - * SEVERITY - *

- *
- *
SUSE
- *
- *

Valid properties: PRODUCT | CLASSIFICATION | - * SEVERITY - *

- *
- *
UBUNTU
- *
- *

Valid properties: PRODUCT | PRIORITY - *

- *
- *
WINDOWS
- *
- *

Valid properties: PRODUCT | PRODUCT_FAMILY | - * CLASSIFICATION | MSRC_SEVERITY - *

- *
- *
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, DescribePatchPropertiesCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, DescribePatchPropertiesCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // DescribePatchPropertiesRequest - * OperatingSystem: "WINDOWS" || "AMAZON_LINUX" || "AMAZON_LINUX_2" || "AMAZON_LINUX_2022" || "UBUNTU" || "REDHAT_ENTERPRISE_LINUX" || "SUSE" || "CENTOS" || "ORACLE_LINUX" || "DEBIAN" || "MACOS" || "RASPBIAN" || "ROCKY_LINUX" || "ALMA_LINUX" || "AMAZON_LINUX_2023", // required - * Property: "PRODUCT" || "PRODUCT_FAMILY" || "CLASSIFICATION" || "MSRC_SEVERITY" || "PRIORITY" || "SEVERITY", // required - * PatchSet: "OS" || "APPLICATION", - * MaxResults: Number("int"), - * NextToken: "STRING_VALUE", - * }; - * const command = new DescribePatchPropertiesCommand(input); - * const response = await client.send(command); - * // { // DescribePatchPropertiesResult - * // Properties: [ // PatchPropertiesList - * // { // PatchPropertyEntry - * // "": "STRING_VALUE", - * // }, - * // ], - * // NextToken: "STRING_VALUE", - * // }; - * - * ``` - * - * @param DescribePatchPropertiesCommandInput - {@link DescribePatchPropertiesCommandInput} - * @returns {@link DescribePatchPropertiesCommandOutput} - * @see {@link DescribePatchPropertiesCommandInput} for command's `input` shape. - * @see {@link DescribePatchPropertiesCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class DescribePatchPropertiesCommand extends $Command { - readonly input: DescribePatchPropertiesCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: DescribePatchPropertiesCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeSessionsCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeSessionsCommand.d.ts deleted file mode 100644 index b80650de..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DescribeSessionsCommand.d.ts +++ /dev/null @@ -1,109 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { DescribeSessionsRequest, DescribeSessionsResponse } from "../models/models_1"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link DescribeSessionsCommand}. - */ -export interface DescribeSessionsCommandInput extends DescribeSessionsRequest { -} -/** - * @public - * - * The output of {@link DescribeSessionsCommand}. - */ -export interface DescribeSessionsCommandOutput extends DescribeSessionsResponse, __MetadataBearer { -} -/** - * @public - *

Retrieves a list of all active sessions (both connected and disconnected) or terminated - * sessions from the past 30 days.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, DescribeSessionsCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, DescribeSessionsCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // DescribeSessionsRequest - * State: "Active" || "History", // required - * MaxResults: Number("int"), - * NextToken: "STRING_VALUE", - * Filters: [ // SessionFilterList - * { // SessionFilter - * key: "InvokedAfter" || "InvokedBefore" || "Target" || "Owner" || "Status" || "SessionId", // required - * value: "STRING_VALUE", // required - * }, - * ], - * }; - * const command = new DescribeSessionsCommand(input); - * const response = await client.send(command); - * // { // DescribeSessionsResponse - * // Sessions: [ // SessionList - * // { // Session - * // SessionId: "STRING_VALUE", - * // Target: "STRING_VALUE", - * // Status: "Connected" || "Connecting" || "Disconnected" || "Terminated" || "Terminating" || "Failed", - * // StartDate: new Date("TIMESTAMP"), - * // EndDate: new Date("TIMESTAMP"), - * // DocumentName: "STRING_VALUE", - * // Owner: "STRING_VALUE", - * // Reason: "STRING_VALUE", - * // Details: "STRING_VALUE", - * // OutputUrl: { // SessionManagerOutputUrl - * // S3OutputUrl: "STRING_VALUE", - * // CloudWatchOutputUrl: "STRING_VALUE", - * // }, - * // MaxSessionDuration: "STRING_VALUE", - * // }, - * // ], - * // NextToken: "STRING_VALUE", - * // }; - * - * ``` - * - * @param DescribeSessionsCommandInput - {@link DescribeSessionsCommandInput} - * @returns {@link DescribeSessionsCommandOutput} - * @see {@link DescribeSessionsCommandInput} for command's `input` shape. - * @see {@link DescribeSessionsCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidFilterKey} (client fault) - *

The specified key isn't valid.

- * - * @throws {@link InvalidNextToken} (client fault) - *

The specified token isn't valid.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class DescribeSessionsCommand extends $Command { - readonly input: DescribeSessionsCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: DescribeSessionsCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DisassociateOpsItemRelatedItemCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/DisassociateOpsItemRelatedItemCommand.d.ts deleted file mode 100644 index 6c478b5b..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/DisassociateOpsItemRelatedItemCommand.d.ts +++ /dev/null @@ -1,91 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { DisassociateOpsItemRelatedItemRequest, DisassociateOpsItemRelatedItemResponse } from "../models/models_1"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link DisassociateOpsItemRelatedItemCommand}. - */ -export interface DisassociateOpsItemRelatedItemCommandInput extends DisassociateOpsItemRelatedItemRequest { -} -/** - * @public - * - * The output of {@link DisassociateOpsItemRelatedItemCommand}. - */ -export interface DisassociateOpsItemRelatedItemCommandOutput extends DisassociateOpsItemRelatedItemResponse, __MetadataBearer { -} -/** - * @public - *

Deletes the association between an OpsItem and a related item. For example, this API - * operation can delete an Incident Manager incident from an OpsItem. Incident Manager is a capability of - * Amazon Web Services Systems Manager.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, DisassociateOpsItemRelatedItemCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, DisassociateOpsItemRelatedItemCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // DisassociateOpsItemRelatedItemRequest - * OpsItemId: "STRING_VALUE", // required - * AssociationId: "STRING_VALUE", // required - * }; - * const command = new DisassociateOpsItemRelatedItemCommand(input); - * const response = await client.send(command); - * // {}; - * - * ``` - * - * @param DisassociateOpsItemRelatedItemCommandInput - {@link DisassociateOpsItemRelatedItemCommandInput} - * @returns {@link DisassociateOpsItemRelatedItemCommandOutput} - * @see {@link DisassociateOpsItemRelatedItemCommandInput} for command's `input` shape. - * @see {@link DisassociateOpsItemRelatedItemCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link OpsItemConflictException} (client fault) - *

The specified OpsItem is in the process of being deleted.

- * - * @throws {@link OpsItemInvalidParameterException} (client fault) - *

A specified parameter argument isn't valid. Verify the available arguments and try - * again.

- * - * @throws {@link OpsItemNotFoundException} (client fault) - *

The specified OpsItem ID doesn't exist. Verify the ID and try again.

- * - * @throws {@link OpsItemRelatedItemAssociationNotFoundException} (client fault) - *

The association wasn't found using the parameters you specified in the call. Verify the - * information and try again.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class DisassociateOpsItemRelatedItemCommand extends $Command { - readonly input: DisassociateOpsItemRelatedItemCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: DisassociateOpsItemRelatedItemCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetAutomationExecutionCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetAutomationExecutionCommand.d.ts deleted file mode 100644 index 60b80296..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetAutomationExecutionCommand.d.ts +++ /dev/null @@ -1,274 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { GetAutomationExecutionRequest, GetAutomationExecutionResult } from "../models/models_1"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link GetAutomationExecutionCommand}. - */ -export interface GetAutomationExecutionCommandInput extends GetAutomationExecutionRequest { -} -/** - * @public - * - * The output of {@link GetAutomationExecutionCommand}. - */ -export interface GetAutomationExecutionCommandOutput extends GetAutomationExecutionResult, __MetadataBearer { -} -/** - * @public - *

Get detailed information about a particular Automation execution.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, GetAutomationExecutionCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, GetAutomationExecutionCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // GetAutomationExecutionRequest - * AutomationExecutionId: "STRING_VALUE", // required - * }; - * const command = new GetAutomationExecutionCommand(input); - * const response = await client.send(command); - * // { // GetAutomationExecutionResult - * // AutomationExecution: { // AutomationExecution - * // AutomationExecutionId: "STRING_VALUE", - * // DocumentName: "STRING_VALUE", - * // DocumentVersion: "STRING_VALUE", - * // ExecutionStartTime: new Date("TIMESTAMP"), - * // ExecutionEndTime: new Date("TIMESTAMP"), - * // AutomationExecutionStatus: "Pending" || "InProgress" || "Waiting" || "Success" || "TimedOut" || "Cancelling" || "Cancelled" || "Failed" || "PendingApproval" || "Approved" || "Rejected" || "Scheduled" || "RunbookInProgress" || "PendingChangeCalendarOverride" || "ChangeCalendarOverrideApproved" || "ChangeCalendarOverrideRejected" || "CompletedWithSuccess" || "CompletedWithFailure" || "Exited", - * // StepExecutions: [ // StepExecutionList - * // { // StepExecution - * // StepName: "STRING_VALUE", - * // Action: "STRING_VALUE", - * // TimeoutSeconds: Number("long"), - * // OnFailure: "STRING_VALUE", - * // MaxAttempts: Number("int"), - * // ExecutionStartTime: new Date("TIMESTAMP"), - * // ExecutionEndTime: new Date("TIMESTAMP"), - * // StepStatus: "Pending" || "InProgress" || "Waiting" || "Success" || "TimedOut" || "Cancelling" || "Cancelled" || "Failed" || "PendingApproval" || "Approved" || "Rejected" || "Scheduled" || "RunbookInProgress" || "PendingChangeCalendarOverride" || "ChangeCalendarOverrideApproved" || "ChangeCalendarOverrideRejected" || "CompletedWithSuccess" || "CompletedWithFailure" || "Exited", - * // ResponseCode: "STRING_VALUE", - * // Inputs: { // NormalStringMap - * // "": "STRING_VALUE", - * // }, - * // Outputs: { // AutomationParameterMap - * // "": [ // AutomationParameterValueList - * // "STRING_VALUE", - * // ], - * // }, - * // Response: "STRING_VALUE", - * // FailureMessage: "STRING_VALUE", - * // FailureDetails: { // FailureDetails - * // FailureStage: "STRING_VALUE", - * // FailureType: "STRING_VALUE", - * // Details: { - * // "": [ - * // "STRING_VALUE", - * // ], - * // }, - * // }, - * // StepExecutionId: "STRING_VALUE", - * // OverriddenParameters: { - * // "": [ - * // "STRING_VALUE", - * // ], - * // }, - * // IsEnd: true || false, - * // NextStep: "STRING_VALUE", - * // IsCritical: true || false, - * // ValidNextSteps: [ // ValidNextStepList - * // "STRING_VALUE", - * // ], - * // Targets: [ // Targets - * // { // Target - * // Key: "STRING_VALUE", - * // Values: [ // TargetValues - * // "STRING_VALUE", - * // ], - * // }, - * // ], - * // TargetLocation: { // TargetLocation - * // Accounts: [ // Accounts - * // "STRING_VALUE", - * // ], - * // Regions: [ // Regions - * // "STRING_VALUE", - * // ], - * // TargetLocationMaxConcurrency: "STRING_VALUE", - * // TargetLocationMaxErrors: "STRING_VALUE", - * // ExecutionRoleName: "STRING_VALUE", - * // TargetLocationAlarmConfiguration: { // AlarmConfiguration - * // IgnorePollAlarmFailure: true || false, - * // Alarms: [ // AlarmList // required - * // { // Alarm - * // Name: "STRING_VALUE", // required - * // }, - * // ], - * // }, - * // }, - * // TriggeredAlarms: [ // AlarmStateInformationList - * // { // AlarmStateInformation - * // Name: "STRING_VALUE", // required - * // State: "UNKNOWN" || "ALARM", // required - * // }, - * // ], - * // ParentStepDetails: { // ParentStepDetails - * // StepExecutionId: "STRING_VALUE", - * // StepName: "STRING_VALUE", - * // Action: "STRING_VALUE", - * // Iteration: Number("int"), - * // IteratorValue: "STRING_VALUE", - * // }, - * // }, - * // ], - * // StepExecutionsTruncated: true || false, - * // Parameters: "", - * // Outputs: "", - * // FailureMessage: "STRING_VALUE", - * // Mode: "Auto" || "Interactive", - * // ParentAutomationExecutionId: "STRING_VALUE", - * // ExecutedBy: "STRING_VALUE", - * // CurrentStepName: "STRING_VALUE", - * // CurrentAction: "STRING_VALUE", - * // TargetParameterName: "STRING_VALUE", - * // Targets: [ - * // { - * // Key: "STRING_VALUE", - * // Values: [ - * // "STRING_VALUE", - * // ], - * // }, - * // ], - * // TargetMaps: [ // TargetMaps - * // { // TargetMap - * // "": [ // TargetMapValueList - * // "STRING_VALUE", - * // ], - * // }, - * // ], - * // ResolvedTargets: { // ResolvedTargets - * // ParameterValues: [ // TargetParameterList - * // "STRING_VALUE", - * // ], - * // Truncated: true || false, - * // }, - * // MaxConcurrency: "STRING_VALUE", - * // MaxErrors: "STRING_VALUE", - * // Target: "STRING_VALUE", - * // TargetLocations: [ // TargetLocations - * // { - * // Accounts: [ - * // "STRING_VALUE", - * // ], - * // Regions: [ - * // "STRING_VALUE", - * // ], - * // TargetLocationMaxConcurrency: "STRING_VALUE", - * // TargetLocationMaxErrors: "STRING_VALUE", - * // ExecutionRoleName: "STRING_VALUE", - * // TargetLocationAlarmConfiguration: { - * // IgnorePollAlarmFailure: true || false, - * // Alarms: [ // required - * // { - * // Name: "STRING_VALUE", // required - * // }, - * // ], - * // }, - * // }, - * // ], - * // ProgressCounters: { // ProgressCounters - * // TotalSteps: Number("int"), - * // SuccessSteps: Number("int"), - * // FailedSteps: Number("int"), - * // CancelledSteps: Number("int"), - * // TimedOutSteps: Number("int"), - * // }, - * // AlarmConfiguration: "", - * // TriggeredAlarms: [ - * // { - * // Name: "STRING_VALUE", // required - * // State: "UNKNOWN" || "ALARM", // required - * // }, - * // ], - * // AutomationSubtype: "ChangeRequest", - * // ScheduledTime: new Date("TIMESTAMP"), - * // Runbooks: [ // Runbooks - * // { // Runbook - * // DocumentName: "STRING_VALUE", // required - * // DocumentVersion: "STRING_VALUE", - * // Parameters: "", - * // TargetParameterName: "STRING_VALUE", - * // Targets: [ - * // { - * // Key: "STRING_VALUE", - * // Values: [ - * // "STRING_VALUE", - * // ], - * // }, - * // ], - * // TargetMaps: [ - * // { - * // "": [ - * // "STRING_VALUE", - * // ], - * // }, - * // ], - * // MaxConcurrency: "STRING_VALUE", - * // MaxErrors: "STRING_VALUE", - * // TargetLocations: [ - * // "", - * // ], - * // }, - * // ], - * // OpsItemId: "STRING_VALUE", - * // AssociationId: "STRING_VALUE", - * // ChangeRequestName: "STRING_VALUE", - * // Variables: "", - * // }, - * // }; - * - * ``` - * - * @param GetAutomationExecutionCommandInput - {@link GetAutomationExecutionCommandInput} - * @returns {@link GetAutomationExecutionCommandOutput} - * @see {@link GetAutomationExecutionCommandInput} for command's `input` shape. - * @see {@link GetAutomationExecutionCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link AutomationExecutionNotFoundException} (client fault) - *

There is no automation execution information for the requested automation execution - * ID.

- * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class GetAutomationExecutionCommand extends $Command { - readonly input: GetAutomationExecutionCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: GetAutomationExecutionCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetCalendarStateCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetCalendarStateCommand.d.ts deleted file mode 100644 index 6da50da2..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetCalendarStateCommand.d.ts +++ /dev/null @@ -1,99 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { GetCalendarStateRequest, GetCalendarStateResponse } from "../models/models_1"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link GetCalendarStateCommand}. - */ -export interface GetCalendarStateCommandInput extends GetCalendarStateRequest { -} -/** - * @public - * - * The output of {@link GetCalendarStateCommand}. - */ -export interface GetCalendarStateCommandOutput extends GetCalendarStateResponse, __MetadataBearer { -} -/** - * @public - *

Gets the state of a Amazon Web Services Systems Manager change calendar at the current time or a specified time. If - * you specify a time, GetCalendarState returns the state of the calendar at that - * specific time, and returns the next time that the change calendar state will transition. If you - * don't specify a time, GetCalendarState uses the current time. Change Calendar - * entries have two possible states: OPEN or CLOSED.

- *

If you specify more than one calendar in a request, the command returns the status of - * OPEN only if all calendars in the request are open. If one or more calendars in the - * request are closed, the status returned is CLOSED.

- *

For more information about Change Calendar, a capability of Amazon Web Services Systems Manager, see Amazon Web Services Systems Manager Change Calendar in the Amazon Web Services Systems Manager User Guide.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, GetCalendarStateCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, GetCalendarStateCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // GetCalendarStateRequest - * CalendarNames: [ // CalendarNameOrARNList // required - * "STRING_VALUE", - * ], - * AtTime: "STRING_VALUE", - * }; - * const command = new GetCalendarStateCommand(input); - * const response = await client.send(command); - * // { // GetCalendarStateResponse - * // State: "OPEN" || "CLOSED", - * // AtTime: "STRING_VALUE", - * // NextTransitionTime: "STRING_VALUE", - * // }; - * - * ``` - * - * @param GetCalendarStateCommandInput - {@link GetCalendarStateCommandInput} - * @returns {@link GetCalendarStateCommandOutput} - * @see {@link GetCalendarStateCommandInput} for command's `input` shape. - * @see {@link GetCalendarStateCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidDocument} (client fault) - *

The specified SSM document doesn't exist.

- * - * @throws {@link InvalidDocumentType} (client fault) - *

The SSM document type isn't valid. Valid document types are described in the - * DocumentType property.

- * - * @throws {@link UnsupportedCalendarException} (client fault) - *

The calendar entry contained in the specified SSM document isn't supported.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class GetCalendarStateCommand extends $Command { - readonly input: GetCalendarStateCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: GetCalendarStateCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetCommandInvocationCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetCommandInvocationCommand.d.ts deleted file mode 100644 index db2aabe7..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetCommandInvocationCommand.d.ts +++ /dev/null @@ -1,131 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { GetCommandInvocationRequest, GetCommandInvocationResult } from "../models/models_1"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link GetCommandInvocationCommand}. - */ -export interface GetCommandInvocationCommandInput extends GetCommandInvocationRequest { -} -/** - * @public - * - * The output of {@link GetCommandInvocationCommand}. - */ -export interface GetCommandInvocationCommandOutput extends GetCommandInvocationResult, __MetadataBearer { -} -/** - * @public - *

Returns detailed information about command execution for an invocation or plugin.

- *

- * GetCommandInvocation only gives the execution status of a plugin in a document. - * To get the command execution status on a specific managed node, use ListCommandInvocations. To get the command execution status across managed nodes, - * use ListCommands.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, GetCommandInvocationCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, GetCommandInvocationCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // GetCommandInvocationRequest - * CommandId: "STRING_VALUE", // required - * InstanceId: "STRING_VALUE", // required - * PluginName: "STRING_VALUE", - * }; - * const command = new GetCommandInvocationCommand(input); - * const response = await client.send(command); - * // { // GetCommandInvocationResult - * // CommandId: "STRING_VALUE", - * // InstanceId: "STRING_VALUE", - * // Comment: "STRING_VALUE", - * // DocumentName: "STRING_VALUE", - * // DocumentVersion: "STRING_VALUE", - * // PluginName: "STRING_VALUE", - * // ResponseCode: Number("int"), - * // ExecutionStartDateTime: "STRING_VALUE", - * // ExecutionElapsedTime: "STRING_VALUE", - * // ExecutionEndDateTime: "STRING_VALUE", - * // Status: "Pending" || "InProgress" || "Delayed" || "Success" || "Cancelled" || "TimedOut" || "Failed" || "Cancelling", - * // StatusDetails: "STRING_VALUE", - * // StandardOutputContent: "STRING_VALUE", - * // StandardOutputUrl: "STRING_VALUE", - * // StandardErrorContent: "STRING_VALUE", - * // StandardErrorUrl: "STRING_VALUE", - * // CloudWatchOutputConfig: { // CloudWatchOutputConfig - * // CloudWatchLogGroupName: "STRING_VALUE", - * // CloudWatchOutputEnabled: true || false, - * // }, - * // }; - * - * ``` - * - * @param GetCommandInvocationCommandInput - {@link GetCommandInvocationCommandInput} - * @returns {@link GetCommandInvocationCommandOutput} - * @see {@link GetCommandInvocationCommandInput} for command's `input` shape. - * @see {@link GetCommandInvocationCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidCommandId} (client fault) - *

The specified command ID isn't valid. Verify the ID and try again.

- * - * @throws {@link InvalidInstanceId} (client fault) - *

The following problems can cause this exception:

- *
    - *
  • - *

    You don't have permission to access the managed node.

    - *
  • - *
  • - *

    Amazon Web Services Systems Manager Agent(SSM Agent) isn't running. Verify that SSM Agent is - * running.

    - *
  • - *
  • - *

    SSM Agent isn't registered with the SSM endpoint. Try reinstalling SSM Agent.

    - *
  • - *
  • - *

    The managed node isn't in valid state. Valid states are: Running, - * Pending, Stopped, and Stopping. Invalid states are: - * Shutting-down and Terminated.

    - *
  • - *
- * - * @throws {@link InvalidPluginName} (client fault) - *

The plugin name isn't valid.

- * - * @throws {@link InvocationDoesNotExist} (client fault) - *

The command ID and managed node ID you specified didn't match any invocations. Verify the - * command ID and the managed node ID and try again.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class GetCommandInvocationCommand extends $Command { - readonly input: GetCommandInvocationCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: GetCommandInvocationCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetConnectionStatusCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetConnectionStatusCommand.d.ts deleted file mode 100644 index e4874aa4..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetConnectionStatusCommand.d.ts +++ /dev/null @@ -1,78 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { GetConnectionStatusRequest, GetConnectionStatusResponse } from "../models/models_1"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link GetConnectionStatusCommand}. - */ -export interface GetConnectionStatusCommandInput extends GetConnectionStatusRequest { -} -/** - * @public - * - * The output of {@link GetConnectionStatusCommand}. - */ -export interface GetConnectionStatusCommandOutput extends GetConnectionStatusResponse, __MetadataBearer { -} -/** - * @public - *

Retrieves the Session Manager connection status for a managed node to determine whether it is running - * and ready to receive Session Manager connections.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, GetConnectionStatusCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, GetConnectionStatusCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // GetConnectionStatusRequest - * Target: "STRING_VALUE", // required - * }; - * const command = new GetConnectionStatusCommand(input); - * const response = await client.send(command); - * // { // GetConnectionStatusResponse - * // Target: "STRING_VALUE", - * // Status: "connected" || "notconnected", - * // }; - * - * ``` - * - * @param GetConnectionStatusCommandInput - {@link GetConnectionStatusCommandInput} - * @returns {@link GetConnectionStatusCommandOutput} - * @see {@link GetConnectionStatusCommandInput} for command's `input` shape. - * @see {@link GetConnectionStatusCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class GetConnectionStatusCommand extends $Command { - readonly input: GetConnectionStatusCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: GetConnectionStatusCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetDefaultPatchBaselineCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetDefaultPatchBaselineCommand.d.ts deleted file mode 100644 index d44f95bf..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetDefaultPatchBaselineCommand.d.ts +++ /dev/null @@ -1,80 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { GetDefaultPatchBaselineRequest, GetDefaultPatchBaselineResult } from "../models/models_1"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link GetDefaultPatchBaselineCommand}. - */ -export interface GetDefaultPatchBaselineCommandInput extends GetDefaultPatchBaselineRequest { -} -/** - * @public - * - * The output of {@link GetDefaultPatchBaselineCommand}. - */ -export interface GetDefaultPatchBaselineCommandOutput extends GetDefaultPatchBaselineResult, __MetadataBearer { -} -/** - * @public - *

Retrieves the default patch baseline. Amazon Web Services Systems Manager supports creating multiple default patch - * baselines. For example, you can create a default patch baseline for each operating system.

- *

If you don't specify an operating system value, the default patch baseline for Windows is - * returned.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, GetDefaultPatchBaselineCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, GetDefaultPatchBaselineCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // GetDefaultPatchBaselineRequest - * OperatingSystem: "WINDOWS" || "AMAZON_LINUX" || "AMAZON_LINUX_2" || "AMAZON_LINUX_2022" || "UBUNTU" || "REDHAT_ENTERPRISE_LINUX" || "SUSE" || "CENTOS" || "ORACLE_LINUX" || "DEBIAN" || "MACOS" || "RASPBIAN" || "ROCKY_LINUX" || "ALMA_LINUX" || "AMAZON_LINUX_2023", - * }; - * const command = new GetDefaultPatchBaselineCommand(input); - * const response = await client.send(command); - * // { // GetDefaultPatchBaselineResult - * // BaselineId: "STRING_VALUE", - * // OperatingSystem: "WINDOWS" || "AMAZON_LINUX" || "AMAZON_LINUX_2" || "AMAZON_LINUX_2022" || "UBUNTU" || "REDHAT_ENTERPRISE_LINUX" || "SUSE" || "CENTOS" || "ORACLE_LINUX" || "DEBIAN" || "MACOS" || "RASPBIAN" || "ROCKY_LINUX" || "ALMA_LINUX" || "AMAZON_LINUX_2023", - * // }; - * - * ``` - * - * @param GetDefaultPatchBaselineCommandInput - {@link GetDefaultPatchBaselineCommandInput} - * @returns {@link GetDefaultPatchBaselineCommandOutput} - * @see {@link GetDefaultPatchBaselineCommandInput} for command's `input` shape. - * @see {@link GetDefaultPatchBaselineCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class GetDefaultPatchBaselineCommand extends $Command { - readonly input: GetDefaultPatchBaselineCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: GetDefaultPatchBaselineCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetDeployablePatchSnapshotForInstanceCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetDeployablePatchSnapshotForInstanceCommand.d.ts deleted file mode 100644 index a5bee5c1..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetDeployablePatchSnapshotForInstanceCommand.d.ts +++ /dev/null @@ -1,149 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { GetDeployablePatchSnapshotForInstanceRequest, GetDeployablePatchSnapshotForInstanceResult } from "../models/models_1"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link GetDeployablePatchSnapshotForInstanceCommand}. - */ -export interface GetDeployablePatchSnapshotForInstanceCommandInput extends GetDeployablePatchSnapshotForInstanceRequest { -} -/** - * @public - * - * The output of {@link GetDeployablePatchSnapshotForInstanceCommand}. - */ -export interface GetDeployablePatchSnapshotForInstanceCommandOutput extends GetDeployablePatchSnapshotForInstanceResult, __MetadataBearer { -} -/** - * @public - *

Retrieves the current snapshot for the patch baseline the managed node uses. This API is - * primarily used by the AWS-RunPatchBaseline Systems Manager document (SSM document).

- * - *

If you run the command locally, such as with the Command Line Interface (CLI), the system attempts to use your local Amazon Web Services credentials and the operation fails. To avoid - * this, you can run the command in the Amazon Web Services Systems Manager console. Use Run Command, a capability of - * Amazon Web Services Systems Manager, with an SSM document that enables you to target a managed node with a script or - * command. For example, run the command using the AWS-RunShellScript document or the - * AWS-RunPowerShellScript document.

- *
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, GetDeployablePatchSnapshotForInstanceCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, GetDeployablePatchSnapshotForInstanceCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // GetDeployablePatchSnapshotForInstanceRequest - * InstanceId: "STRING_VALUE", // required - * SnapshotId: "STRING_VALUE", // required - * BaselineOverride: { // BaselineOverride - * OperatingSystem: "WINDOWS" || "AMAZON_LINUX" || "AMAZON_LINUX_2" || "AMAZON_LINUX_2022" || "UBUNTU" || "REDHAT_ENTERPRISE_LINUX" || "SUSE" || "CENTOS" || "ORACLE_LINUX" || "DEBIAN" || "MACOS" || "RASPBIAN" || "ROCKY_LINUX" || "ALMA_LINUX" || "AMAZON_LINUX_2023", - * GlobalFilters: { // PatchFilterGroup - * PatchFilters: [ // PatchFilterList // required - * { // PatchFilter - * Key: "ARCH" || "ADVISORY_ID" || "BUGZILLA_ID" || "PATCH_SET" || "PRODUCT" || "PRODUCT_FAMILY" || "CLASSIFICATION" || "CVE_ID" || "EPOCH" || "MSRC_SEVERITY" || "NAME" || "PATCH_ID" || "SECTION" || "PRIORITY" || "REPOSITORY" || "RELEASE" || "SEVERITY" || "SECURITY" || "VERSION", // required - * Values: [ // PatchFilterValueList // required - * "STRING_VALUE", - * ], - * }, - * ], - * }, - * ApprovalRules: { // PatchRuleGroup - * PatchRules: [ // PatchRuleList // required - * { // PatchRule - * PatchFilterGroup: { - * PatchFilters: [ // required - * { - * Key: "ARCH" || "ADVISORY_ID" || "BUGZILLA_ID" || "PATCH_SET" || "PRODUCT" || "PRODUCT_FAMILY" || "CLASSIFICATION" || "CVE_ID" || "EPOCH" || "MSRC_SEVERITY" || "NAME" || "PATCH_ID" || "SECTION" || "PRIORITY" || "REPOSITORY" || "RELEASE" || "SEVERITY" || "SECURITY" || "VERSION", // required - * Values: [ // required - * "STRING_VALUE", - * ], - * }, - * ], - * }, - * ComplianceLevel: "CRITICAL" || "HIGH" || "MEDIUM" || "LOW" || "INFORMATIONAL" || "UNSPECIFIED", - * ApproveAfterDays: Number("int"), - * ApproveUntilDate: "STRING_VALUE", - * EnableNonSecurity: true || false, - * }, - * ], - * }, - * ApprovedPatches: [ // PatchIdList - * "STRING_VALUE", - * ], - * ApprovedPatchesComplianceLevel: "CRITICAL" || "HIGH" || "MEDIUM" || "LOW" || "INFORMATIONAL" || "UNSPECIFIED", - * RejectedPatches: [ - * "STRING_VALUE", - * ], - * RejectedPatchesAction: "ALLOW_AS_DEPENDENCY" || "BLOCK", - * ApprovedPatchesEnableNonSecurity: true || false, - * Sources: [ // PatchSourceList - * { // PatchSource - * Name: "STRING_VALUE", // required - * Products: [ // PatchSourceProductList // required - * "STRING_VALUE", - * ], - * Configuration: "STRING_VALUE", // required - * }, - * ], - * }, - * }; - * const command = new GetDeployablePatchSnapshotForInstanceCommand(input); - * const response = await client.send(command); - * // { // GetDeployablePatchSnapshotForInstanceResult - * // InstanceId: "STRING_VALUE", - * // SnapshotId: "STRING_VALUE", - * // SnapshotDownloadUrl: "STRING_VALUE", - * // Product: "STRING_VALUE", - * // }; - * - * ``` - * - * @param GetDeployablePatchSnapshotForInstanceCommandInput - {@link GetDeployablePatchSnapshotForInstanceCommandInput} - * @returns {@link GetDeployablePatchSnapshotForInstanceCommandOutput} - * @see {@link GetDeployablePatchSnapshotForInstanceCommandInput} for command's `input` shape. - * @see {@link GetDeployablePatchSnapshotForInstanceCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link UnsupportedFeatureRequiredException} (client fault) - *

Patching for applications released by Microsoft is only available on EC2 instances and - * advanced instances. To patch applications released by Microsoft on on-premises servers and VMs, - * you must enable advanced instances. For more information, see Enabling - * the advanced-instances tier in the Amazon Web Services Systems Manager User Guide.

- * - * @throws {@link UnsupportedOperatingSystem} (client fault) - *

The operating systems you specified isn't supported, or the operation isn't supported for - * the operating system.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class GetDeployablePatchSnapshotForInstanceCommand extends $Command { - readonly input: GetDeployablePatchSnapshotForInstanceCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: GetDeployablePatchSnapshotForInstanceCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetDocumentCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetDocumentCommand.d.ts deleted file mode 100644 index 7d8ae70a..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetDocumentCommand.d.ts +++ /dev/null @@ -1,112 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { GetDocumentRequest, GetDocumentResult } from "../models/models_1"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link GetDocumentCommand}. - */ -export interface GetDocumentCommandInput extends GetDocumentRequest { -} -/** - * @public - * - * The output of {@link GetDocumentCommand}. - */ -export interface GetDocumentCommandOutput extends GetDocumentResult, __MetadataBearer { -} -/** - * @public - *

Gets the contents of the specified Amazon Web Services Systems Manager document (SSM document).

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, GetDocumentCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, GetDocumentCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // GetDocumentRequest - * Name: "STRING_VALUE", // required - * VersionName: "STRING_VALUE", - * DocumentVersion: "STRING_VALUE", - * DocumentFormat: "YAML" || "JSON" || "TEXT", - * }; - * const command = new GetDocumentCommand(input); - * const response = await client.send(command); - * // { // GetDocumentResult - * // Name: "STRING_VALUE", - * // CreatedDate: new Date("TIMESTAMP"), - * // DisplayName: "STRING_VALUE", - * // VersionName: "STRING_VALUE", - * // DocumentVersion: "STRING_VALUE", - * // Status: "Creating" || "Active" || "Updating" || "Deleting" || "Failed", - * // StatusInformation: "STRING_VALUE", - * // Content: "STRING_VALUE", - * // DocumentType: "Command" || "Policy" || "Automation" || "Session" || "Package" || "ApplicationConfiguration" || "ApplicationConfigurationSchema" || "DeploymentStrategy" || "ChangeCalendar" || "Automation.ChangeTemplate" || "ProblemAnalysis" || "ProblemAnalysisTemplate" || "CloudFormation" || "ConformancePackTemplate" || "QuickSetup", - * // DocumentFormat: "YAML" || "JSON" || "TEXT", - * // Requires: [ // DocumentRequiresList - * // { // DocumentRequires - * // Name: "STRING_VALUE", // required - * // Version: "STRING_VALUE", - * // RequireType: "STRING_VALUE", - * // VersionName: "STRING_VALUE", - * // }, - * // ], - * // AttachmentsContent: [ // AttachmentContentList - * // { // AttachmentContent - * // Name: "STRING_VALUE", - * // Size: Number("long"), - * // Hash: "STRING_VALUE", - * // HashType: "Sha256", - * // Url: "STRING_VALUE", - * // }, - * // ], - * // ReviewStatus: "APPROVED" || "NOT_REVIEWED" || "PENDING" || "REJECTED", - * // }; - * - * ``` - * - * @param GetDocumentCommandInput - {@link GetDocumentCommandInput} - * @returns {@link GetDocumentCommandOutput} - * @see {@link GetDocumentCommandInput} for command's `input` shape. - * @see {@link GetDocumentCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidDocument} (client fault) - *

The specified SSM document doesn't exist.

- * - * @throws {@link InvalidDocumentVersion} (client fault) - *

The document version isn't valid or doesn't exist.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class GetDocumentCommand extends $Command { - readonly input: GetDocumentCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: GetDocumentCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetInventoryCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetInventoryCommand.d.ts deleted file mode 100644 index a3926efa..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetInventoryCommand.d.ts +++ /dev/null @@ -1,162 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { GetInventoryResult } from "../models/models_1"; -import { GetInventoryRequest } from "../models/models_2"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link GetInventoryCommand}. - */ -export interface GetInventoryCommandInput extends GetInventoryRequest { -} -/** - * @public - * - * The output of {@link GetInventoryCommand}. - */ -export interface GetInventoryCommandOutput extends GetInventoryResult, __MetadataBearer { -} -/** - * @public - *

Query inventory information. This includes managed node status, such as Stopped - * or Terminated.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, GetInventoryCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, GetInventoryCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // GetInventoryRequest - * Filters: [ // InventoryFilterList - * { // InventoryFilter - * Key: "STRING_VALUE", // required - * Values: [ // InventoryFilterValueList // required - * "STRING_VALUE", - * ], - * Type: "Equal" || "NotEqual" || "BeginWith" || "LessThan" || "GreaterThan" || "Exists", - * }, - * ], - * Aggregators: [ // InventoryAggregatorList - * { // InventoryAggregator - * Expression: "STRING_VALUE", - * Aggregators: [ - * { - * Expression: "STRING_VALUE", - * Aggregators: "", - * Groups: [ // InventoryGroupList - * { // InventoryGroup - * Name: "STRING_VALUE", // required - * Filters: [ // required - * { - * Key: "STRING_VALUE", // required - * Values: [ // required - * "STRING_VALUE", - * ], - * Type: "Equal" || "NotEqual" || "BeginWith" || "LessThan" || "GreaterThan" || "Exists", - * }, - * ], - * }, - * ], - * }, - * ], - * Groups: [ - * { - * Name: "STRING_VALUE", // required - * Filters: "", // required - * }, - * ], - * }, - * ], - * ResultAttributes: [ // ResultAttributeList - * { // ResultAttribute - * TypeName: "STRING_VALUE", // required - * }, - * ], - * NextToken: "STRING_VALUE", - * MaxResults: Number("int"), - * }; - * const command = new GetInventoryCommand(input); - * const response = await client.send(command); - * // { // GetInventoryResult - * // Entities: [ // InventoryResultEntityList - * // { // InventoryResultEntity - * // Id: "STRING_VALUE", - * // Data: { // InventoryResultItemMap - * // "": { // InventoryResultItem - * // TypeName: "STRING_VALUE", // required - * // SchemaVersion: "STRING_VALUE", // required - * // CaptureTime: "STRING_VALUE", - * // ContentHash: "STRING_VALUE", - * // Content: [ // InventoryItemEntryList // required - * // { // InventoryItemEntry - * // "": "STRING_VALUE", - * // }, - * // ], - * // }, - * // }, - * // }, - * // ], - * // NextToken: "STRING_VALUE", - * // }; - * - * ``` - * - * @param GetInventoryCommandInput - {@link GetInventoryCommandInput} - * @returns {@link GetInventoryCommandOutput} - * @see {@link GetInventoryCommandInput} for command's `input` shape. - * @see {@link GetInventoryCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidAggregatorException} (client fault) - *

The specified aggregator isn't valid for inventory groups. Verify that the aggregator uses a - * valid inventory type such as AWS:Application or - * AWS:InstanceInformation.

- * - * @throws {@link InvalidFilter} (client fault) - *

The filter name isn't valid. Verify the you entered the correct name and try again.

- * - * @throws {@link InvalidInventoryGroupException} (client fault) - *

The specified inventory group isn't valid.

- * - * @throws {@link InvalidNextToken} (client fault) - *

The specified token isn't valid.

- * - * @throws {@link InvalidResultAttributeException} (client fault) - *

The specified inventory item result attribute isn't valid.

- * - * @throws {@link InvalidTypeNameException} (client fault) - *

The parameter type name isn't valid.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class GetInventoryCommand extends $Command { - readonly input: GetInventoryCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: GetInventoryCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetInventorySchemaCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetInventorySchemaCommand.d.ts deleted file mode 100644 index ed86300c..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetInventorySchemaCommand.d.ts +++ /dev/null @@ -1,100 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { GetInventorySchemaRequest, GetInventorySchemaResult } from "../models/models_1"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link GetInventorySchemaCommand}. - */ -export interface GetInventorySchemaCommandInput extends GetInventorySchemaRequest { -} -/** - * @public - * - * The output of {@link GetInventorySchemaCommand}. - */ -export interface GetInventorySchemaCommandOutput extends GetInventorySchemaResult, __MetadataBearer { -} -/** - * @public - *

Return a list of inventory type names for the account, or return a list of attribute names - * for a specific Inventory item type.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, GetInventorySchemaCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, GetInventorySchemaCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // GetInventorySchemaRequest - * TypeName: "STRING_VALUE", - * NextToken: "STRING_VALUE", - * MaxResults: Number("int"), - * Aggregator: true || false, - * SubType: true || false, - * }; - * const command = new GetInventorySchemaCommand(input); - * const response = await client.send(command); - * // { // GetInventorySchemaResult - * // Schemas: [ // InventoryItemSchemaResultList - * // { // InventoryItemSchema - * // TypeName: "STRING_VALUE", // required - * // Version: "STRING_VALUE", - * // Attributes: [ // InventoryItemAttributeList // required - * // { // InventoryItemAttribute - * // Name: "STRING_VALUE", // required - * // DataType: "string" || "number", // required - * // }, - * // ], - * // DisplayName: "STRING_VALUE", - * // }, - * // ], - * // NextToken: "STRING_VALUE", - * // }; - * - * ``` - * - * @param GetInventorySchemaCommandInput - {@link GetInventorySchemaCommandInput} - * @returns {@link GetInventorySchemaCommandOutput} - * @see {@link GetInventorySchemaCommandInput} for command's `input` shape. - * @see {@link GetInventorySchemaCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidNextToken} (client fault) - *

The specified token isn't valid.

- * - * @throws {@link InvalidTypeNameException} (client fault) - *

The parameter type name isn't valid.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class GetInventorySchemaCommand extends $Command { - readonly input: GetInventorySchemaCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: GetInventorySchemaCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetMaintenanceWindowCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetMaintenanceWindowCommand.d.ts deleted file mode 100644 index 55812d6d..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetMaintenanceWindowCommand.d.ts +++ /dev/null @@ -1,96 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { GetMaintenanceWindowRequest, GetMaintenanceWindowResult } from "../models/models_1"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link GetMaintenanceWindowCommand}. - */ -export interface GetMaintenanceWindowCommandInput extends GetMaintenanceWindowRequest { -} -/** - * @public - * - * The output of {@link GetMaintenanceWindowCommand}. - */ -export interface GetMaintenanceWindowCommandOutput extends GetMaintenanceWindowResult, __MetadataBearer { -} -/** - * @public - *

Retrieves a maintenance window.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, GetMaintenanceWindowCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, GetMaintenanceWindowCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // GetMaintenanceWindowRequest - * WindowId: "STRING_VALUE", // required - * }; - * const command = new GetMaintenanceWindowCommand(input); - * const response = await client.send(command); - * // { // GetMaintenanceWindowResult - * // WindowId: "STRING_VALUE", - * // Name: "STRING_VALUE", - * // Description: "STRING_VALUE", - * // StartDate: "STRING_VALUE", - * // EndDate: "STRING_VALUE", - * // Schedule: "STRING_VALUE", - * // ScheduleTimezone: "STRING_VALUE", - * // ScheduleOffset: Number("int"), - * // NextExecutionTime: "STRING_VALUE", - * // Duration: Number("int"), - * // Cutoff: Number("int"), - * // AllowUnassociatedTargets: true || false, - * // Enabled: true || false, - * // CreatedDate: new Date("TIMESTAMP"), - * // ModifiedDate: new Date("TIMESTAMP"), - * // }; - * - * ``` - * - * @param GetMaintenanceWindowCommandInput - {@link GetMaintenanceWindowCommandInput} - * @returns {@link GetMaintenanceWindowCommandOutput} - * @see {@link GetMaintenanceWindowCommandInput} for command's `input` shape. - * @see {@link GetMaintenanceWindowCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link DoesNotExistException} (client fault) - *

Error returned when the ID specified for a resource, such as a maintenance window or patch - * baseline, doesn't exist.

- *

For information about resource quotas in Amazon Web Services Systems Manager, see Systems Manager service quotas in the - * Amazon Web Services General Reference.

- * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class GetMaintenanceWindowCommand extends $Command { - readonly input: GetMaintenanceWindowCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: GetMaintenanceWindowCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetMaintenanceWindowExecutionCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetMaintenanceWindowExecutionCommand.d.ts deleted file mode 100644 index 1c5a334c..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetMaintenanceWindowExecutionCommand.d.ts +++ /dev/null @@ -1,89 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { GetMaintenanceWindowExecutionRequest, GetMaintenanceWindowExecutionResult } from "../models/models_1"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link GetMaintenanceWindowExecutionCommand}. - */ -export interface GetMaintenanceWindowExecutionCommandInput extends GetMaintenanceWindowExecutionRequest { -} -/** - * @public - * - * The output of {@link GetMaintenanceWindowExecutionCommand}. - */ -export interface GetMaintenanceWindowExecutionCommandOutput extends GetMaintenanceWindowExecutionResult, __MetadataBearer { -} -/** - * @public - *

Retrieves details about a specific a maintenance window execution.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, GetMaintenanceWindowExecutionCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, GetMaintenanceWindowExecutionCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // GetMaintenanceWindowExecutionRequest - * WindowExecutionId: "STRING_VALUE", // required - * }; - * const command = new GetMaintenanceWindowExecutionCommand(input); - * const response = await client.send(command); - * // { // GetMaintenanceWindowExecutionResult - * // WindowExecutionId: "STRING_VALUE", - * // TaskIds: [ // MaintenanceWindowExecutionTaskIdList - * // "STRING_VALUE", - * // ], - * // Status: "PENDING" || "IN_PROGRESS" || "SUCCESS" || "FAILED" || "TIMED_OUT" || "CANCELLING" || "CANCELLED" || "SKIPPED_OVERLAPPING", - * // StatusDetails: "STRING_VALUE", - * // StartTime: new Date("TIMESTAMP"), - * // EndTime: new Date("TIMESTAMP"), - * // }; - * - * ``` - * - * @param GetMaintenanceWindowExecutionCommandInput - {@link GetMaintenanceWindowExecutionCommandInput} - * @returns {@link GetMaintenanceWindowExecutionCommandOutput} - * @see {@link GetMaintenanceWindowExecutionCommandInput} for command's `input` shape. - * @see {@link GetMaintenanceWindowExecutionCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link DoesNotExistException} (client fault) - *

Error returned when the ID specified for a resource, such as a maintenance window or patch - * baseline, doesn't exist.

- *

For information about resource quotas in Amazon Web Services Systems Manager, see Systems Manager service quotas in the - * Amazon Web Services General Reference.

- * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class GetMaintenanceWindowExecutionCommand extends $Command { - readonly input: GetMaintenanceWindowExecutionCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: GetMaintenanceWindowExecutionCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetMaintenanceWindowExecutionTaskCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetMaintenanceWindowExecutionTaskCommand.d.ts deleted file mode 100644 index 4f5699c7..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetMaintenanceWindowExecutionTaskCommand.d.ts +++ /dev/null @@ -1,118 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { GetMaintenanceWindowExecutionTaskRequest, GetMaintenanceWindowExecutionTaskResult } from "../models/models_1"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link GetMaintenanceWindowExecutionTaskCommand}. - */ -export interface GetMaintenanceWindowExecutionTaskCommandInput extends GetMaintenanceWindowExecutionTaskRequest { -} -/** - * @public - * - * The output of {@link GetMaintenanceWindowExecutionTaskCommand}. - */ -export interface GetMaintenanceWindowExecutionTaskCommandOutput extends GetMaintenanceWindowExecutionTaskResult, __MetadataBearer { -} -/** - * @public - *

Retrieves the details about a specific task run as part of a maintenance window - * execution.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, GetMaintenanceWindowExecutionTaskCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, GetMaintenanceWindowExecutionTaskCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // GetMaintenanceWindowExecutionTaskRequest - * WindowExecutionId: "STRING_VALUE", // required - * TaskId: "STRING_VALUE", // required - * }; - * const command = new GetMaintenanceWindowExecutionTaskCommand(input); - * const response = await client.send(command); - * // { // GetMaintenanceWindowExecutionTaskResult - * // WindowExecutionId: "STRING_VALUE", - * // TaskExecutionId: "STRING_VALUE", - * // TaskArn: "STRING_VALUE", - * // ServiceRole: "STRING_VALUE", - * // Type: "RUN_COMMAND" || "AUTOMATION" || "STEP_FUNCTIONS" || "LAMBDA", - * // TaskParameters: [ // MaintenanceWindowTaskParametersList - * // { // MaintenanceWindowTaskParameters - * // "": { // MaintenanceWindowTaskParameterValueExpression - * // Values: [ // MaintenanceWindowTaskParameterValueList - * // "STRING_VALUE", - * // ], - * // }, - * // }, - * // ], - * // Priority: Number("int"), - * // MaxConcurrency: "STRING_VALUE", - * // MaxErrors: "STRING_VALUE", - * // Status: "PENDING" || "IN_PROGRESS" || "SUCCESS" || "FAILED" || "TIMED_OUT" || "CANCELLING" || "CANCELLED" || "SKIPPED_OVERLAPPING", - * // StatusDetails: "STRING_VALUE", - * // StartTime: new Date("TIMESTAMP"), - * // EndTime: new Date("TIMESTAMP"), - * // AlarmConfiguration: { // AlarmConfiguration - * // IgnorePollAlarmFailure: true || false, - * // Alarms: [ // AlarmList // required - * // { // Alarm - * // Name: "STRING_VALUE", // required - * // }, - * // ], - * // }, - * // TriggeredAlarms: [ // AlarmStateInformationList - * // { // AlarmStateInformation - * // Name: "STRING_VALUE", // required - * // State: "UNKNOWN" || "ALARM", // required - * // }, - * // ], - * // }; - * - * ``` - * - * @param GetMaintenanceWindowExecutionTaskCommandInput - {@link GetMaintenanceWindowExecutionTaskCommandInput} - * @returns {@link GetMaintenanceWindowExecutionTaskCommandOutput} - * @see {@link GetMaintenanceWindowExecutionTaskCommandInput} for command's `input` shape. - * @see {@link GetMaintenanceWindowExecutionTaskCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link DoesNotExistException} (client fault) - *

Error returned when the ID specified for a resource, such as a maintenance window or patch - * baseline, doesn't exist.

- *

For information about resource quotas in Amazon Web Services Systems Manager, see Systems Manager service quotas in the - * Amazon Web Services General Reference.

- * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class GetMaintenanceWindowExecutionTaskCommand extends $Command { - readonly input: GetMaintenanceWindowExecutionTaskCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: GetMaintenanceWindowExecutionTaskCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetMaintenanceWindowExecutionTaskInvocationCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetMaintenanceWindowExecutionTaskInvocationCommand.d.ts deleted file mode 100644 index 6c66deff..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetMaintenanceWindowExecutionTaskInvocationCommand.d.ts +++ /dev/null @@ -1,95 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { GetMaintenanceWindowExecutionTaskInvocationRequest, GetMaintenanceWindowExecutionTaskInvocationResult } from "../models/models_1"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link GetMaintenanceWindowExecutionTaskInvocationCommand}. - */ -export interface GetMaintenanceWindowExecutionTaskInvocationCommandInput extends GetMaintenanceWindowExecutionTaskInvocationRequest { -} -/** - * @public - * - * The output of {@link GetMaintenanceWindowExecutionTaskInvocationCommand}. - */ -export interface GetMaintenanceWindowExecutionTaskInvocationCommandOutput extends GetMaintenanceWindowExecutionTaskInvocationResult, __MetadataBearer { -} -/** - * @public - *

Retrieves information about a specific task running on a specific target.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, GetMaintenanceWindowExecutionTaskInvocationCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, GetMaintenanceWindowExecutionTaskInvocationCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // GetMaintenanceWindowExecutionTaskInvocationRequest - * WindowExecutionId: "STRING_VALUE", // required - * TaskId: "STRING_VALUE", // required - * InvocationId: "STRING_VALUE", // required - * }; - * const command = new GetMaintenanceWindowExecutionTaskInvocationCommand(input); - * const response = await client.send(command); - * // { // GetMaintenanceWindowExecutionTaskInvocationResult - * // WindowExecutionId: "STRING_VALUE", - * // TaskExecutionId: "STRING_VALUE", - * // InvocationId: "STRING_VALUE", - * // ExecutionId: "STRING_VALUE", - * // TaskType: "RUN_COMMAND" || "AUTOMATION" || "STEP_FUNCTIONS" || "LAMBDA", - * // Parameters: "STRING_VALUE", - * // Status: "PENDING" || "IN_PROGRESS" || "SUCCESS" || "FAILED" || "TIMED_OUT" || "CANCELLING" || "CANCELLED" || "SKIPPED_OVERLAPPING", - * // StatusDetails: "STRING_VALUE", - * // StartTime: new Date("TIMESTAMP"), - * // EndTime: new Date("TIMESTAMP"), - * // OwnerInformation: "STRING_VALUE", - * // WindowTargetId: "STRING_VALUE", - * // }; - * - * ``` - * - * @param GetMaintenanceWindowExecutionTaskInvocationCommandInput - {@link GetMaintenanceWindowExecutionTaskInvocationCommandInput} - * @returns {@link GetMaintenanceWindowExecutionTaskInvocationCommandOutput} - * @see {@link GetMaintenanceWindowExecutionTaskInvocationCommandInput} for command's `input` shape. - * @see {@link GetMaintenanceWindowExecutionTaskInvocationCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link DoesNotExistException} (client fault) - *

Error returned when the ID specified for a resource, such as a maintenance window or patch - * baseline, doesn't exist.

- *

For information about resource quotas in Amazon Web Services Systems Manager, see Systems Manager service quotas in the - * Amazon Web Services General Reference.

- * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class GetMaintenanceWindowExecutionTaskInvocationCommand extends $Command { - readonly input: GetMaintenanceWindowExecutionTaskInvocationCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: GetMaintenanceWindowExecutionTaskInvocationCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetMaintenanceWindowTaskCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetMaintenanceWindowTaskCommand.d.ts deleted file mode 100644 index cc14b2bd..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetMaintenanceWindowTaskCommand.d.ts +++ /dev/null @@ -1,173 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { GetMaintenanceWindowTaskRequest, GetMaintenanceWindowTaskResult } from "../models/models_1"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link GetMaintenanceWindowTaskCommand}. - */ -export interface GetMaintenanceWindowTaskCommandInput extends GetMaintenanceWindowTaskRequest { -} -/** - * @public - * - * The output of {@link GetMaintenanceWindowTaskCommand}. - */ -export interface GetMaintenanceWindowTaskCommandOutput extends GetMaintenanceWindowTaskResult, __MetadataBearer { -} -/** - * @public - *

Retrieves the details of a maintenance window task.

- * - *

For maintenance window tasks without a specified target, you can't supply values for - * --max-errors and --max-concurrency. Instead, the system inserts a - * placeholder value of 1, which may be reported in the response to this command. - * These values don't affect the running of your task and can be ignored.

- *
- *

To retrieve a list of tasks in a maintenance window, instead use the DescribeMaintenanceWindowTasks command.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, GetMaintenanceWindowTaskCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, GetMaintenanceWindowTaskCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // GetMaintenanceWindowTaskRequest - * WindowId: "STRING_VALUE", // required - * WindowTaskId: "STRING_VALUE", // required - * }; - * const command = new GetMaintenanceWindowTaskCommand(input); - * const response = await client.send(command); - * // { // GetMaintenanceWindowTaskResult - * // WindowId: "STRING_VALUE", - * // WindowTaskId: "STRING_VALUE", - * // Targets: [ // Targets - * // { // Target - * // Key: "STRING_VALUE", - * // Values: [ // TargetValues - * // "STRING_VALUE", - * // ], - * // }, - * // ], - * // TaskArn: "STRING_VALUE", - * // ServiceRoleArn: "STRING_VALUE", - * // TaskType: "RUN_COMMAND" || "AUTOMATION" || "STEP_FUNCTIONS" || "LAMBDA", - * // TaskParameters: { // MaintenanceWindowTaskParameters - * // "": { // MaintenanceWindowTaskParameterValueExpression - * // Values: [ // MaintenanceWindowTaskParameterValueList - * // "STRING_VALUE", - * // ], - * // }, - * // }, - * // TaskInvocationParameters: { // MaintenanceWindowTaskInvocationParameters - * // RunCommand: { // MaintenanceWindowRunCommandParameters - * // Comment: "STRING_VALUE", - * // CloudWatchOutputConfig: { // CloudWatchOutputConfig - * // CloudWatchLogGroupName: "STRING_VALUE", - * // CloudWatchOutputEnabled: true || false, - * // }, - * // DocumentHash: "STRING_VALUE", - * // DocumentHashType: "Sha256" || "Sha1", - * // DocumentVersion: "STRING_VALUE", - * // NotificationConfig: { // NotificationConfig - * // NotificationArn: "STRING_VALUE", - * // NotificationEvents: [ // NotificationEventList - * // "All" || "InProgress" || "Success" || "TimedOut" || "Cancelled" || "Failed", - * // ], - * // NotificationType: "Command" || "Invocation", - * // }, - * // OutputS3BucketName: "STRING_VALUE", - * // OutputS3KeyPrefix: "STRING_VALUE", - * // Parameters: { // Parameters - * // "": [ // ParameterValueList - * // "STRING_VALUE", - * // ], - * // }, - * // ServiceRoleArn: "STRING_VALUE", - * // TimeoutSeconds: Number("int"), - * // }, - * // Automation: { // MaintenanceWindowAutomationParameters - * // DocumentVersion: "STRING_VALUE", - * // Parameters: { // AutomationParameterMap - * // "": [ // AutomationParameterValueList - * // "STRING_VALUE", - * // ], - * // }, - * // }, - * // StepFunctions: { // MaintenanceWindowStepFunctionsParameters - * // Input: "STRING_VALUE", - * // Name: "STRING_VALUE", - * // }, - * // Lambda: { // MaintenanceWindowLambdaParameters - * // ClientContext: "STRING_VALUE", - * // Qualifier: "STRING_VALUE", - * // Payload: "BLOB_VALUE", - * // }, - * // }, - * // Priority: Number("int"), - * // MaxConcurrency: "STRING_VALUE", - * // MaxErrors: "STRING_VALUE", - * // LoggingInfo: { // LoggingInfo - * // S3BucketName: "STRING_VALUE", // required - * // S3KeyPrefix: "STRING_VALUE", - * // S3Region: "STRING_VALUE", // required - * // }, - * // Name: "STRING_VALUE", - * // Description: "STRING_VALUE", - * // CutoffBehavior: "CONTINUE_TASK" || "CANCEL_TASK", - * // AlarmConfiguration: { // AlarmConfiguration - * // IgnorePollAlarmFailure: true || false, - * // Alarms: [ // AlarmList // required - * // { // Alarm - * // Name: "STRING_VALUE", // required - * // }, - * // ], - * // }, - * // }; - * - * ``` - * - * @param GetMaintenanceWindowTaskCommandInput - {@link GetMaintenanceWindowTaskCommandInput} - * @returns {@link GetMaintenanceWindowTaskCommandOutput} - * @see {@link GetMaintenanceWindowTaskCommandInput} for command's `input` shape. - * @see {@link GetMaintenanceWindowTaskCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link DoesNotExistException} (client fault) - *

Error returned when the ID specified for a resource, such as a maintenance window or patch - * baseline, doesn't exist.

- *

For information about resource quotas in Amazon Web Services Systems Manager, see Systems Manager service quotas in the - * Amazon Web Services General Reference.

- * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class GetMaintenanceWindowTaskCommand extends $Command { - readonly input: GetMaintenanceWindowTaskCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: GetMaintenanceWindowTaskCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetOpsItemCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetOpsItemCommand.d.ts deleted file mode 100644 index 157d08b5..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetOpsItemCommand.d.ts +++ /dev/null @@ -1,127 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { GetOpsItemRequest, GetOpsItemResponse } from "../models/models_1"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link GetOpsItemCommand}. - */ -export interface GetOpsItemCommandInput extends GetOpsItemRequest { -} -/** - * @public - * - * The output of {@link GetOpsItemCommand}. - */ -export interface GetOpsItemCommandOutput extends GetOpsItemResponse, __MetadataBearer { -} -/** - * @public - *

Get information about an OpsItem by using the ID. You must have permission in Identity and Access Management (IAM) to view information about an OpsItem. For more information, - * see Set - * up OpsCenter in the Amazon Web Services Systems Manager User Guide.

- *

Operations engineers and IT professionals use Amazon Web Services Systems Manager OpsCenter to view, investigate, and - * remediate operational issues impacting the performance and health of their Amazon Web Services resources. For - * more information, see OpsCenter in the - * Amazon Web Services Systems Manager User Guide.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, GetOpsItemCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, GetOpsItemCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // GetOpsItemRequest - * OpsItemId: "STRING_VALUE", // required - * OpsItemArn: "STRING_VALUE", - * }; - * const command = new GetOpsItemCommand(input); - * const response = await client.send(command); - * // { // GetOpsItemResponse - * // OpsItem: { // OpsItem - * // CreatedBy: "STRING_VALUE", - * // OpsItemType: "STRING_VALUE", - * // CreatedTime: new Date("TIMESTAMP"), - * // Description: "STRING_VALUE", - * // LastModifiedBy: "STRING_VALUE", - * // LastModifiedTime: new Date("TIMESTAMP"), - * // Notifications: [ // OpsItemNotifications - * // { // OpsItemNotification - * // Arn: "STRING_VALUE", - * // }, - * // ], - * // Priority: Number("int"), - * // RelatedOpsItems: [ // RelatedOpsItems - * // { // RelatedOpsItem - * // OpsItemId: "STRING_VALUE", // required - * // }, - * // ], - * // Status: "Open" || "InProgress" || "Resolved" || "Pending" || "TimedOut" || "Cancelling" || "Cancelled" || "Failed" || "CompletedWithSuccess" || "CompletedWithFailure" || "Scheduled" || "RunbookInProgress" || "PendingChangeCalendarOverride" || "ChangeCalendarOverrideApproved" || "ChangeCalendarOverrideRejected" || "PendingApproval" || "Approved" || "Rejected" || "Closed", - * // OpsItemId: "STRING_VALUE", - * // Version: "STRING_VALUE", - * // Title: "STRING_VALUE", - * // Source: "STRING_VALUE", - * // OperationalData: { // OpsItemOperationalData - * // "": { // OpsItemDataValue - * // Value: "STRING_VALUE", - * // Type: "SearchableString" || "String", - * // }, - * // }, - * // Category: "STRING_VALUE", - * // Severity: "STRING_VALUE", - * // ActualStartTime: new Date("TIMESTAMP"), - * // ActualEndTime: new Date("TIMESTAMP"), - * // PlannedStartTime: new Date("TIMESTAMP"), - * // PlannedEndTime: new Date("TIMESTAMP"), - * // OpsItemArn: "STRING_VALUE", - * // }, - * // }; - * - * ``` - * - * @param GetOpsItemCommandInput - {@link GetOpsItemCommandInput} - * @returns {@link GetOpsItemCommandOutput} - * @see {@link GetOpsItemCommandInput} for command's `input` shape. - * @see {@link GetOpsItemCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link OpsItemAccessDeniedException} (client fault) - *

You don't have permission to view OpsItems in the specified account. Verify that your account - * is configured either as a Systems Manager delegated administrator or that you are logged into the Organizations - * management account.

- * - * @throws {@link OpsItemNotFoundException} (client fault) - *

The specified OpsItem ID doesn't exist. Verify the ID and try again.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class GetOpsItemCommand extends $Command { - readonly input: GetOpsItemCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: GetOpsItemCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetOpsMetadataCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetOpsMetadataCommand.d.ts deleted file mode 100644 index d1af82cb..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetOpsMetadataCommand.d.ts +++ /dev/null @@ -1,90 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { GetOpsMetadataRequest, GetOpsMetadataResult } from "../models/models_1"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link GetOpsMetadataCommand}. - */ -export interface GetOpsMetadataCommandInput extends GetOpsMetadataRequest { -} -/** - * @public - * - * The output of {@link GetOpsMetadataCommand}. - */ -export interface GetOpsMetadataCommandOutput extends GetOpsMetadataResult, __MetadataBearer { -} -/** - * @public - *

View operational metadata related to an application in Application Manager.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, GetOpsMetadataCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, GetOpsMetadataCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // GetOpsMetadataRequest - * OpsMetadataArn: "STRING_VALUE", // required - * MaxResults: Number("int"), - * NextToken: "STRING_VALUE", - * }; - * const command = new GetOpsMetadataCommand(input); - * const response = await client.send(command); - * // { // GetOpsMetadataResult - * // ResourceId: "STRING_VALUE", - * // Metadata: { // MetadataMap - * // "": { // MetadataValue - * // Value: "STRING_VALUE", - * // }, - * // }, - * // NextToken: "STRING_VALUE", - * // }; - * - * ``` - * - * @param GetOpsMetadataCommandInput - {@link GetOpsMetadataCommandInput} - * @returns {@link GetOpsMetadataCommandOutput} - * @see {@link GetOpsMetadataCommandInput} for command's `input` shape. - * @see {@link GetOpsMetadataCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link OpsMetadataInvalidArgumentException} (client fault) - *

One of the arguments passed is invalid.

- * - * @throws {@link OpsMetadataNotFoundException} (client fault) - *

The OpsMetadata object doesn't exist.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class GetOpsMetadataCommand extends $Command { - readonly input: GetOpsMetadataCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: GetOpsMetadataCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetOpsSummaryCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetOpsSummaryCommand.d.ts deleted file mode 100644 index 16b798bc..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetOpsSummaryCommand.d.ts +++ /dev/null @@ -1,159 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { GetOpsSummaryResult } from "../models/models_1"; -import { GetOpsSummaryRequest } from "../models/models_2"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link GetOpsSummaryCommand}. - */ -export interface GetOpsSummaryCommandInput extends GetOpsSummaryRequest { -} -/** - * @public - * - * The output of {@link GetOpsSummaryCommand}. - */ -export interface GetOpsSummaryCommandOutput extends GetOpsSummaryResult, __MetadataBearer { -} -/** - * @public - *

View a summary of operations metadata (OpsData) based on specified filters and aggregators. - * OpsData can include information about Amazon Web Services Systems Manager OpsCenter operational workitems (OpsItems) as - * well as information about any Amazon Web Services resource or service configured to report OpsData to Amazon Web Services Systems Manager - * Explorer.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, GetOpsSummaryCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, GetOpsSummaryCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // GetOpsSummaryRequest - * SyncName: "STRING_VALUE", - * Filters: [ // OpsFilterList - * { // OpsFilter - * Key: "STRING_VALUE", // required - * Values: [ // OpsFilterValueList // required - * "STRING_VALUE", - * ], - * Type: "Equal" || "NotEqual" || "BeginWith" || "LessThan" || "GreaterThan" || "Exists", - * }, - * ], - * Aggregators: [ // OpsAggregatorList - * { // OpsAggregator - * AggregatorType: "STRING_VALUE", - * TypeName: "STRING_VALUE", - * AttributeName: "STRING_VALUE", - * Values: { // OpsAggregatorValueMap - * "": "STRING_VALUE", - * }, - * Filters: [ - * { - * Key: "STRING_VALUE", // required - * Values: [ // required - * "STRING_VALUE", - * ], - * Type: "Equal" || "NotEqual" || "BeginWith" || "LessThan" || "GreaterThan" || "Exists", - * }, - * ], - * Aggregators: [ - * { - * AggregatorType: "STRING_VALUE", - * TypeName: "STRING_VALUE", - * AttributeName: "STRING_VALUE", - * Values: { - * "": "STRING_VALUE", - * }, - * Filters: "", - * Aggregators: "", - * }, - * ], - * }, - * ], - * ResultAttributes: [ // OpsResultAttributeList - * { // OpsResultAttribute - * TypeName: "STRING_VALUE", // required - * }, - * ], - * NextToken: "STRING_VALUE", - * MaxResults: Number("int"), - * }; - * const command = new GetOpsSummaryCommand(input); - * const response = await client.send(command); - * // { // GetOpsSummaryResult - * // Entities: [ // OpsEntityList - * // { // OpsEntity - * // Id: "STRING_VALUE", - * // Data: { // OpsEntityItemMap - * // "": { // OpsEntityItem - * // CaptureTime: "STRING_VALUE", - * // Content: [ // OpsEntityItemEntryList - * // { // OpsEntityItemEntry - * // "": "STRING_VALUE", - * // }, - * // ], - * // }, - * // }, - * // }, - * // ], - * // NextToken: "STRING_VALUE", - * // }; - * - * ``` - * - * @param GetOpsSummaryCommandInput - {@link GetOpsSummaryCommandInput} - * @returns {@link GetOpsSummaryCommandOutput} - * @see {@link GetOpsSummaryCommandInput} for command's `input` shape. - * @see {@link GetOpsSummaryCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidAggregatorException} (client fault) - *

The specified aggregator isn't valid for inventory groups. Verify that the aggregator uses a - * valid inventory type such as AWS:Application or - * AWS:InstanceInformation.

- * - * @throws {@link InvalidFilter} (client fault) - *

The filter name isn't valid. Verify the you entered the correct name and try again.

- * - * @throws {@link InvalidNextToken} (client fault) - *

The specified token isn't valid.

- * - * @throws {@link InvalidTypeNameException} (client fault) - *

The parameter type name isn't valid.

- * - * @throws {@link ResourceDataSyncNotFoundException} (client fault) - *

The specified sync name wasn't found.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class GetOpsSummaryCommand extends $Command { - readonly input: GetOpsSummaryCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: GetOpsSummaryCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetParameterCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetParameterCommand.d.ts deleted file mode 100644 index be500e84..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetParameterCommand.d.ts +++ /dev/null @@ -1,100 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { GetParameterRequest, GetParameterResult } from "../models/models_1"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link GetParameterCommand}. - */ -export interface GetParameterCommandInput extends GetParameterRequest { -} -/** - * @public - * - * The output of {@link GetParameterCommand}. - */ -export interface GetParameterCommandOutput extends GetParameterResult, __MetadataBearer { -} -/** - * @public - *

Get information about a single parameter by specifying the parameter name.

- * - *

To get information about more than one parameter at a time, use the GetParameters operation.

- *
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, GetParameterCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, GetParameterCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // GetParameterRequest - * Name: "STRING_VALUE", // required - * WithDecryption: true || false, - * }; - * const command = new GetParameterCommand(input); - * const response = await client.send(command); - * // { // GetParameterResult - * // Parameter: { // Parameter - * // Name: "STRING_VALUE", - * // Type: "String" || "StringList" || "SecureString", - * // Value: "STRING_VALUE", - * // Version: Number("long"), - * // Selector: "STRING_VALUE", - * // SourceResult: "STRING_VALUE", - * // LastModifiedDate: new Date("TIMESTAMP"), - * // ARN: "STRING_VALUE", - * // DataType: "STRING_VALUE", - * // }, - * // }; - * - * ``` - * - * @param GetParameterCommandInput - {@link GetParameterCommandInput} - * @returns {@link GetParameterCommandOutput} - * @see {@link GetParameterCommandInput} for command's `input` shape. - * @see {@link GetParameterCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidKeyId} (client fault) - *

The query key ID isn't valid.

- * - * @throws {@link ParameterNotFound} (client fault) - *

The parameter couldn't be found. Verify the name and try again.

- * - * @throws {@link ParameterVersionNotFound} (client fault) - *

The specified parameter version wasn't found. Verify the parameter name and version, and try - * again.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class GetParameterCommand extends $Command { - readonly input: GetParameterCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: GetParameterCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetParameterHistoryCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetParameterHistoryCommand.d.ts deleted file mode 100644 index e48d57a0..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetParameterHistoryCommand.d.ts +++ /dev/null @@ -1,119 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { GetParameterHistoryRequest, GetParameterHistoryResult } from "../models/models_1"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link GetParameterHistoryCommand}. - */ -export interface GetParameterHistoryCommandInput extends GetParameterHistoryRequest { -} -/** - * @public - * - * The output of {@link GetParameterHistoryCommand}. - */ -export interface GetParameterHistoryCommandOutput extends GetParameterHistoryResult, __MetadataBearer { -} -/** - * @public - *

Retrieves the history of all changes to a parameter.

- * - *

If you change the KMS key alias for the KMS key used to encrypt a parameter, then you must - * also update the key alias the parameter uses to reference KMS. Otherwise, - * GetParameterHistory retrieves whatever the original key alias was - * referencing.

- *
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, GetParameterHistoryCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, GetParameterHistoryCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // GetParameterHistoryRequest - * Name: "STRING_VALUE", // required - * WithDecryption: true || false, - * MaxResults: Number("int"), - * NextToken: "STRING_VALUE", - * }; - * const command = new GetParameterHistoryCommand(input); - * const response = await client.send(command); - * // { // GetParameterHistoryResult - * // Parameters: [ // ParameterHistoryList - * // { // ParameterHistory - * // Name: "STRING_VALUE", - * // Type: "String" || "StringList" || "SecureString", - * // KeyId: "STRING_VALUE", - * // LastModifiedDate: new Date("TIMESTAMP"), - * // LastModifiedUser: "STRING_VALUE", - * // Description: "STRING_VALUE", - * // Value: "STRING_VALUE", - * // AllowedPattern: "STRING_VALUE", - * // Version: Number("long"), - * // Labels: [ // ParameterLabelList - * // "STRING_VALUE", - * // ], - * // Tier: "Standard" || "Advanced" || "Intelligent-Tiering", - * // Policies: [ // ParameterPolicyList - * // { // ParameterInlinePolicy - * // PolicyText: "STRING_VALUE", - * // PolicyType: "STRING_VALUE", - * // PolicyStatus: "STRING_VALUE", - * // }, - * // ], - * // DataType: "STRING_VALUE", - * // }, - * // ], - * // NextToken: "STRING_VALUE", - * // }; - * - * ``` - * - * @param GetParameterHistoryCommandInput - {@link GetParameterHistoryCommandInput} - * @returns {@link GetParameterHistoryCommandOutput} - * @see {@link GetParameterHistoryCommandInput} for command's `input` shape. - * @see {@link GetParameterHistoryCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidKeyId} (client fault) - *

The query key ID isn't valid.

- * - * @throws {@link InvalidNextToken} (client fault) - *

The specified token isn't valid.

- * - * @throws {@link ParameterNotFound} (client fault) - *

The parameter couldn't be found. Verify the name and try again.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class GetParameterHistoryCommand extends $Command { - readonly input: GetParameterHistoryCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: GetParameterHistoryCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetParametersByPathCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetParametersByPathCommand.d.ts deleted file mode 100644 index 88a088c3..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetParametersByPathCommand.d.ts +++ /dev/null @@ -1,124 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { GetParametersByPathRequest, GetParametersByPathResult } from "../models/models_1"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link GetParametersByPathCommand}. - */ -export interface GetParametersByPathCommandInput extends GetParametersByPathRequest { -} -/** - * @public - * - * The output of {@link GetParametersByPathCommand}. - */ -export interface GetParametersByPathCommandOutput extends GetParametersByPathResult, __MetadataBearer { -} -/** - * @public - *

Retrieve information about one or more parameters in a specific hierarchy.

- *

Request results are returned on a best-effort basis. If you specify MaxResults - * in the request, the response includes information up to the limit specified. The number of items - * returned, however, can be between zero and the value of MaxResults. If the service - * reaches an internal limit while processing the results, it stops the operation and returns the - * matching values up to that point and a NextToken. You can specify the - * NextToken in a subsequent call to get the next set of results.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, GetParametersByPathCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, GetParametersByPathCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // GetParametersByPathRequest - * Path: "STRING_VALUE", // required - * Recursive: true || false, - * ParameterFilters: [ // ParameterStringFilterList - * { // ParameterStringFilter - * Key: "STRING_VALUE", // required - * Option: "STRING_VALUE", - * Values: [ // ParameterStringFilterValueList - * "STRING_VALUE", - * ], - * }, - * ], - * WithDecryption: true || false, - * MaxResults: Number("int"), - * NextToken: "STRING_VALUE", - * }; - * const command = new GetParametersByPathCommand(input); - * const response = await client.send(command); - * // { // GetParametersByPathResult - * // Parameters: [ // ParameterList - * // { // Parameter - * // Name: "STRING_VALUE", - * // Type: "String" || "StringList" || "SecureString", - * // Value: "STRING_VALUE", - * // Version: Number("long"), - * // Selector: "STRING_VALUE", - * // SourceResult: "STRING_VALUE", - * // LastModifiedDate: new Date("TIMESTAMP"), - * // ARN: "STRING_VALUE", - * // DataType: "STRING_VALUE", - * // }, - * // ], - * // NextToken: "STRING_VALUE", - * // }; - * - * ``` - * - * @param GetParametersByPathCommandInput - {@link GetParametersByPathCommandInput} - * @returns {@link GetParametersByPathCommandOutput} - * @see {@link GetParametersByPathCommandInput} for command's `input` shape. - * @see {@link GetParametersByPathCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidFilterKey} (client fault) - *

The specified key isn't valid.

- * - * @throws {@link InvalidFilterOption} (client fault) - *

The specified filter option isn't valid. Valid options are Equals and BeginsWith. For Path - * filter, valid options are Recursive and OneLevel.

- * - * @throws {@link InvalidFilterValue} (client fault) - *

The filter value isn't valid. Verify the value and try again.

- * - * @throws {@link InvalidKeyId} (client fault) - *

The query key ID isn't valid.

- * - * @throws {@link InvalidNextToken} (client fault) - *

The specified token isn't valid.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class GetParametersByPathCommand extends $Command { - readonly input: GetParametersByPathCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: GetParametersByPathCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetParametersCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetParametersCommand.d.ts deleted file mode 100644 index 602d36fc..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetParametersCommand.d.ts +++ /dev/null @@ -1,101 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { GetParametersRequest, GetParametersResult } from "../models/models_1"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link GetParametersCommand}. - */ -export interface GetParametersCommandInput extends GetParametersRequest { -} -/** - * @public - * - * The output of {@link GetParametersCommand}. - */ -export interface GetParametersCommandOutput extends GetParametersResult, __MetadataBearer { -} -/** - * @public - *

Get information about one or more parameters by specifying multiple parameter names.

- * - *

To get information about a single parameter, you can use the GetParameter - * operation instead.

- *
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, GetParametersCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, GetParametersCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // GetParametersRequest - * Names: [ // ParameterNameList // required - * "STRING_VALUE", - * ], - * WithDecryption: true || false, - * }; - * const command = new GetParametersCommand(input); - * const response = await client.send(command); - * // { // GetParametersResult - * // Parameters: [ // ParameterList - * // { // Parameter - * // Name: "STRING_VALUE", - * // Type: "String" || "StringList" || "SecureString", - * // Value: "STRING_VALUE", - * // Version: Number("long"), - * // Selector: "STRING_VALUE", - * // SourceResult: "STRING_VALUE", - * // LastModifiedDate: new Date("TIMESTAMP"), - * // ARN: "STRING_VALUE", - * // DataType: "STRING_VALUE", - * // }, - * // ], - * // InvalidParameters: [ // ParameterNameList - * // "STRING_VALUE", - * // ], - * // }; - * - * ``` - * - * @param GetParametersCommandInput - {@link GetParametersCommandInput} - * @returns {@link GetParametersCommandOutput} - * @see {@link GetParametersCommandInput} for command's `input` shape. - * @see {@link GetParametersCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidKeyId} (client fault) - *

The query key ID isn't valid.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class GetParametersCommand extends $Command { - readonly input: GetParametersCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: GetParametersCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetPatchBaselineCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetPatchBaselineCommand.d.ts deleted file mode 100644 index 6fede806..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetPatchBaselineCommand.d.ts +++ /dev/null @@ -1,141 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { GetPatchBaselineRequest, GetPatchBaselineResult } from "../models/models_1"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link GetPatchBaselineCommand}. - */ -export interface GetPatchBaselineCommandInput extends GetPatchBaselineRequest { -} -/** - * @public - * - * The output of {@link GetPatchBaselineCommand}. - */ -export interface GetPatchBaselineCommandOutput extends GetPatchBaselineResult, __MetadataBearer { -} -/** - * @public - *

Retrieves information about a patch baseline.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, GetPatchBaselineCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, GetPatchBaselineCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // GetPatchBaselineRequest - * BaselineId: "STRING_VALUE", // required - * }; - * const command = new GetPatchBaselineCommand(input); - * const response = await client.send(command); - * // { // GetPatchBaselineResult - * // BaselineId: "STRING_VALUE", - * // Name: "STRING_VALUE", - * // OperatingSystem: "WINDOWS" || "AMAZON_LINUX" || "AMAZON_LINUX_2" || "AMAZON_LINUX_2022" || "UBUNTU" || "REDHAT_ENTERPRISE_LINUX" || "SUSE" || "CENTOS" || "ORACLE_LINUX" || "DEBIAN" || "MACOS" || "RASPBIAN" || "ROCKY_LINUX" || "ALMA_LINUX" || "AMAZON_LINUX_2023", - * // GlobalFilters: { // PatchFilterGroup - * // PatchFilters: [ // PatchFilterList // required - * // { // PatchFilter - * // Key: "ARCH" || "ADVISORY_ID" || "BUGZILLA_ID" || "PATCH_SET" || "PRODUCT" || "PRODUCT_FAMILY" || "CLASSIFICATION" || "CVE_ID" || "EPOCH" || "MSRC_SEVERITY" || "NAME" || "PATCH_ID" || "SECTION" || "PRIORITY" || "REPOSITORY" || "RELEASE" || "SEVERITY" || "SECURITY" || "VERSION", // required - * // Values: [ // PatchFilterValueList // required - * // "STRING_VALUE", - * // ], - * // }, - * // ], - * // }, - * // ApprovalRules: { // PatchRuleGroup - * // PatchRules: [ // PatchRuleList // required - * // { // PatchRule - * // PatchFilterGroup: { - * // PatchFilters: [ // required - * // { - * // Key: "ARCH" || "ADVISORY_ID" || "BUGZILLA_ID" || "PATCH_SET" || "PRODUCT" || "PRODUCT_FAMILY" || "CLASSIFICATION" || "CVE_ID" || "EPOCH" || "MSRC_SEVERITY" || "NAME" || "PATCH_ID" || "SECTION" || "PRIORITY" || "REPOSITORY" || "RELEASE" || "SEVERITY" || "SECURITY" || "VERSION", // required - * // Values: [ // required - * // "STRING_VALUE", - * // ], - * // }, - * // ], - * // }, - * // ComplianceLevel: "CRITICAL" || "HIGH" || "MEDIUM" || "LOW" || "INFORMATIONAL" || "UNSPECIFIED", - * // ApproveAfterDays: Number("int"), - * // ApproveUntilDate: "STRING_VALUE", - * // EnableNonSecurity: true || false, - * // }, - * // ], - * // }, - * // ApprovedPatches: [ // PatchIdList - * // "STRING_VALUE", - * // ], - * // ApprovedPatchesComplianceLevel: "CRITICAL" || "HIGH" || "MEDIUM" || "LOW" || "INFORMATIONAL" || "UNSPECIFIED", - * // ApprovedPatchesEnableNonSecurity: true || false, - * // RejectedPatches: [ - * // "STRING_VALUE", - * // ], - * // RejectedPatchesAction: "ALLOW_AS_DEPENDENCY" || "BLOCK", - * // PatchGroups: [ // PatchGroupList - * // "STRING_VALUE", - * // ], - * // CreatedDate: new Date("TIMESTAMP"), - * // ModifiedDate: new Date("TIMESTAMP"), - * // Description: "STRING_VALUE", - * // Sources: [ // PatchSourceList - * // { // PatchSource - * // Name: "STRING_VALUE", // required - * // Products: [ // PatchSourceProductList // required - * // "STRING_VALUE", - * // ], - * // Configuration: "STRING_VALUE", // required - * // }, - * // ], - * // }; - * - * ``` - * - * @param GetPatchBaselineCommandInput - {@link GetPatchBaselineCommandInput} - * @returns {@link GetPatchBaselineCommandOutput} - * @see {@link GetPatchBaselineCommandInput} for command's `input` shape. - * @see {@link GetPatchBaselineCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link DoesNotExistException} (client fault) - *

Error returned when the ID specified for a resource, such as a maintenance window or patch - * baseline, doesn't exist.

- *

For information about resource quotas in Amazon Web Services Systems Manager, see Systems Manager service quotas in the - * Amazon Web Services General Reference.

- * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidResourceId} (client fault) - *

The resource ID isn't valid. Verify that you entered the correct ID and try again.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class GetPatchBaselineCommand extends $Command { - readonly input: GetPatchBaselineCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: GetPatchBaselineCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetPatchBaselineForPatchGroupCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetPatchBaselineForPatchGroupCommand.d.ts deleted file mode 100644 index 34d5c421..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetPatchBaselineForPatchGroupCommand.d.ts +++ /dev/null @@ -1,79 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { GetPatchBaselineForPatchGroupRequest, GetPatchBaselineForPatchGroupResult } from "../models/models_1"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link GetPatchBaselineForPatchGroupCommand}. - */ -export interface GetPatchBaselineForPatchGroupCommandInput extends GetPatchBaselineForPatchGroupRequest { -} -/** - * @public - * - * The output of {@link GetPatchBaselineForPatchGroupCommand}. - */ -export interface GetPatchBaselineForPatchGroupCommandOutput extends GetPatchBaselineForPatchGroupResult, __MetadataBearer { -} -/** - * @public - *

Retrieves the patch baseline that should be used for the specified patch group.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, GetPatchBaselineForPatchGroupCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, GetPatchBaselineForPatchGroupCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // GetPatchBaselineForPatchGroupRequest - * PatchGroup: "STRING_VALUE", // required - * OperatingSystem: "WINDOWS" || "AMAZON_LINUX" || "AMAZON_LINUX_2" || "AMAZON_LINUX_2022" || "UBUNTU" || "REDHAT_ENTERPRISE_LINUX" || "SUSE" || "CENTOS" || "ORACLE_LINUX" || "DEBIAN" || "MACOS" || "RASPBIAN" || "ROCKY_LINUX" || "ALMA_LINUX" || "AMAZON_LINUX_2023", - * }; - * const command = new GetPatchBaselineForPatchGroupCommand(input); - * const response = await client.send(command); - * // { // GetPatchBaselineForPatchGroupResult - * // BaselineId: "STRING_VALUE", - * // PatchGroup: "STRING_VALUE", - * // OperatingSystem: "WINDOWS" || "AMAZON_LINUX" || "AMAZON_LINUX_2" || "AMAZON_LINUX_2022" || "UBUNTU" || "REDHAT_ENTERPRISE_LINUX" || "SUSE" || "CENTOS" || "ORACLE_LINUX" || "DEBIAN" || "MACOS" || "RASPBIAN" || "ROCKY_LINUX" || "ALMA_LINUX" || "AMAZON_LINUX_2023", - * // }; - * - * ``` - * - * @param GetPatchBaselineForPatchGroupCommandInput - {@link GetPatchBaselineForPatchGroupCommandInput} - * @returns {@link GetPatchBaselineForPatchGroupCommandOutput} - * @see {@link GetPatchBaselineForPatchGroupCommandInput} for command's `input` shape. - * @see {@link GetPatchBaselineForPatchGroupCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class GetPatchBaselineForPatchGroupCommand extends $Command { - readonly input: GetPatchBaselineForPatchGroupCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: GetPatchBaselineForPatchGroupCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetResourcePoliciesCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetResourcePoliciesCommand.d.ts deleted file mode 100644 index c4f68386..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetResourcePoliciesCommand.d.ts +++ /dev/null @@ -1,89 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { GetResourcePoliciesRequest, GetResourcePoliciesResponse } from "../models/models_1"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link GetResourcePoliciesCommand}. - */ -export interface GetResourcePoliciesCommandInput extends GetResourcePoliciesRequest { -} -/** - * @public - * - * The output of {@link GetResourcePoliciesCommand}. - */ -export interface GetResourcePoliciesCommandOutput extends GetResourcePoliciesResponse, __MetadataBearer { -} -/** - * @public - *

Returns an array of the Policy object.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, GetResourcePoliciesCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, GetResourcePoliciesCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // GetResourcePoliciesRequest - * ResourceArn: "STRING_VALUE", // required - * NextToken: "STRING_VALUE", - * MaxResults: Number("int"), - * }; - * const command = new GetResourcePoliciesCommand(input); - * const response = await client.send(command); - * // { // GetResourcePoliciesResponse - * // NextToken: "STRING_VALUE", - * // Policies: [ // GetResourcePoliciesResponseEntries - * // { // GetResourcePoliciesResponseEntry - * // PolicyId: "STRING_VALUE", - * // PolicyHash: "STRING_VALUE", - * // Policy: "STRING_VALUE", - * // }, - * // ], - * // }; - * - * ``` - * - * @param GetResourcePoliciesCommandInput - {@link GetResourcePoliciesCommandInput} - * @returns {@link GetResourcePoliciesCommandOutput} - * @see {@link GetResourcePoliciesCommandInput} for command's `input` shape. - * @see {@link GetResourcePoliciesCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link ResourcePolicyInvalidParameterException} (client fault) - *

One or more parameters specified for the call aren't valid. Verify the parameters and their - * values and try again.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class GetResourcePoliciesCommand extends $Command { - readonly input: GetResourcePoliciesCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: GetResourcePoliciesCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetServiceSettingCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetServiceSettingCommand.d.ts deleted file mode 100644 index bf6d718d..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/GetServiceSettingCommand.d.ts +++ /dev/null @@ -1,100 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { GetServiceSettingRequest, GetServiceSettingResult } from "../models/models_1"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link GetServiceSettingCommand}. - */ -export interface GetServiceSettingCommandInput extends GetServiceSettingRequest { -} -/** - * @public - * - * The output of {@link GetServiceSettingCommand}. - */ -export interface GetServiceSettingCommandOutput extends GetServiceSettingResult, __MetadataBearer { -} -/** - * @public - *

- * ServiceSetting is an account-level setting for an Amazon Web Services service. This setting - * defines how a user interacts with or uses a service or a feature of a service. For example, if an - * Amazon Web Services service charges money to the account based on feature or service usage, then the Amazon Web Services - * service team might create a default setting of false. This means the user can't use - * this feature unless they change the setting to true and intentionally opt in for a - * paid feature.

- *

Services map a SettingId object to a setting value. Amazon Web Services services teams define - * the default value for a SettingId. You can't create a new SettingId, - * but you can overwrite the default value if you have the ssm:UpdateServiceSetting - * permission for the setting. Use the UpdateServiceSetting API operation to - * change the default setting. Or use the ResetServiceSetting to change the value - * back to the original value defined by the Amazon Web Services service team.

- *

Query the current service setting for the Amazon Web Services account.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, GetServiceSettingCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, GetServiceSettingCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // GetServiceSettingRequest - * SettingId: "STRING_VALUE", // required - * }; - * const command = new GetServiceSettingCommand(input); - * const response = await client.send(command); - * // { // GetServiceSettingResult - * // ServiceSetting: { // ServiceSetting - * // SettingId: "STRING_VALUE", - * // SettingValue: "STRING_VALUE", - * // LastModifiedDate: new Date("TIMESTAMP"), - * // LastModifiedUser: "STRING_VALUE", - * // ARN: "STRING_VALUE", - * // Status: "STRING_VALUE", - * // }, - * // }; - * - * ``` - * - * @param GetServiceSettingCommandInput - {@link GetServiceSettingCommandInput} - * @returns {@link GetServiceSettingCommandOutput} - * @see {@link GetServiceSettingCommandInput} for command's `input` shape. - * @see {@link GetServiceSettingCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link ServiceSettingNotFound} (client fault) - *

The specified service setting wasn't found. Either the service name or the setting hasn't - * been provisioned by the Amazon Web Services service team.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class GetServiceSettingCommand extends $Command { - readonly input: GetServiceSettingCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: GetServiceSettingCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/LabelParameterVersionCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/LabelParameterVersionCommand.d.ts deleted file mode 100644 index fad93bf4..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/LabelParameterVersionCommand.d.ts +++ /dev/null @@ -1,132 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { LabelParameterVersionRequest, LabelParameterVersionResult } from "../models/models_1"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link LabelParameterVersionCommand}. - */ -export interface LabelParameterVersionCommandInput extends LabelParameterVersionRequest { -} -/** - * @public - * - * The output of {@link LabelParameterVersionCommand}. - */ -export interface LabelParameterVersionCommandOutput extends LabelParameterVersionResult, __MetadataBearer { -} -/** - * @public - *

A parameter label is a user-defined alias to help you manage different versions of a - * parameter. When you modify a parameter, Amazon Web Services Systems Manager automatically saves a new version and - * increments the version number by one. A label can help you remember the purpose of a parameter - * when there are multiple versions.

- *

Parameter labels have the following requirements and restrictions.

- *
    - *
  • - *

    A version of a parameter can have a maximum of 10 labels.

    - *
  • - *
  • - *

    You can't attach the same label to different versions of the same parameter. For example, - * if version 1 has the label Production, then you can't attach Production to version 2.

    - *
  • - *
  • - *

    You can move a label from one version of a parameter to another.

    - *
  • - *
  • - *

    You can't create a label when you create a new parameter. You must attach a label to a - * specific version of a parameter.

    - *
  • - *
  • - *

    If you no longer want to use a parameter label, then you can either delete it or move it - * to a different version of a parameter.

    - *
  • - *
  • - *

    A label can have a maximum of 100 characters.

    - *
  • - *
  • - *

    Labels can contain letters (case sensitive), numbers, periods (.), hyphens (-), or - * underscores (_).

    - *
  • - *
  • - *

    Labels can't begin with a number, "aws" or "ssm" (not case - * sensitive). If a label fails to meet these requirements, then the label isn't associated with a - * parameter and the system displays it in the list of InvalidLabels.

    - *
  • - *
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, LabelParameterVersionCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, LabelParameterVersionCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // LabelParameterVersionRequest - * Name: "STRING_VALUE", // required - * ParameterVersion: Number("long"), - * Labels: [ // ParameterLabelList // required - * "STRING_VALUE", - * ], - * }; - * const command = new LabelParameterVersionCommand(input); - * const response = await client.send(command); - * // { // LabelParameterVersionResult - * // InvalidLabels: [ // ParameterLabelList - * // "STRING_VALUE", - * // ], - * // ParameterVersion: Number("long"), - * // }; - * - * ``` - * - * @param LabelParameterVersionCommandInput - {@link LabelParameterVersionCommandInput} - * @returns {@link LabelParameterVersionCommandOutput} - * @see {@link LabelParameterVersionCommandInput} for command's `input` shape. - * @see {@link LabelParameterVersionCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link ParameterNotFound} (client fault) - *

The parameter couldn't be found. Verify the name and try again.

- * - * @throws {@link ParameterVersionLabelLimitExceeded} (client fault) - *

A parameter version can have a maximum of ten labels.

- * - * @throws {@link ParameterVersionNotFound} (client fault) - *

The specified parameter version wasn't found. Verify the parameter name and version, and try - * again.

- * - * @throws {@link TooManyUpdates} (client fault) - *

There are concurrent updates for a resource that supports one update at a time.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class LabelParameterVersionCommand extends $Command { - readonly input: LabelParameterVersionCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: LabelParameterVersionCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListAssociationVersionsCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListAssociationVersionsCommand.d.ts deleted file mode 100644 index 305cf90e..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListAssociationVersionsCommand.d.ts +++ /dev/null @@ -1,152 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { ListAssociationVersionsRequest, ListAssociationVersionsResult } from "../models/models_1"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link ListAssociationVersionsCommand}. - */ -export interface ListAssociationVersionsCommandInput extends ListAssociationVersionsRequest { -} -/** - * @public - * - * The output of {@link ListAssociationVersionsCommand}. - */ -export interface ListAssociationVersionsCommandOutput extends ListAssociationVersionsResult, __MetadataBearer { -} -/** - * @public - *

Retrieves all versions of an association for a specific association ID.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, ListAssociationVersionsCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, ListAssociationVersionsCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // ListAssociationVersionsRequest - * AssociationId: "STRING_VALUE", // required - * MaxResults: Number("int"), - * NextToken: "STRING_VALUE", - * }; - * const command = new ListAssociationVersionsCommand(input); - * const response = await client.send(command); - * // { // ListAssociationVersionsResult - * // AssociationVersions: [ // AssociationVersionList - * // { // AssociationVersionInfo - * // AssociationId: "STRING_VALUE", - * // AssociationVersion: "STRING_VALUE", - * // CreatedDate: new Date("TIMESTAMP"), - * // Name: "STRING_VALUE", - * // DocumentVersion: "STRING_VALUE", - * // Parameters: { // Parameters - * // "": [ // ParameterValueList - * // "STRING_VALUE", - * // ], - * // }, - * // Targets: [ // Targets - * // { // Target - * // Key: "STRING_VALUE", - * // Values: [ // TargetValues - * // "STRING_VALUE", - * // ], - * // }, - * // ], - * // ScheduleExpression: "STRING_VALUE", - * // OutputLocation: { // InstanceAssociationOutputLocation - * // S3Location: { // S3OutputLocation - * // OutputS3Region: "STRING_VALUE", - * // OutputS3BucketName: "STRING_VALUE", - * // OutputS3KeyPrefix: "STRING_VALUE", - * // }, - * // }, - * // AssociationName: "STRING_VALUE", - * // MaxErrors: "STRING_VALUE", - * // MaxConcurrency: "STRING_VALUE", - * // ComplianceSeverity: "CRITICAL" || "HIGH" || "MEDIUM" || "LOW" || "UNSPECIFIED", - * // SyncCompliance: "AUTO" || "MANUAL", - * // ApplyOnlyAtCronInterval: true || false, - * // CalendarNames: [ // CalendarNameOrARNList - * // "STRING_VALUE", - * // ], - * // TargetLocations: [ // TargetLocations - * // { // TargetLocation - * // Accounts: [ // Accounts - * // "STRING_VALUE", - * // ], - * // Regions: [ // Regions - * // "STRING_VALUE", - * // ], - * // TargetLocationMaxConcurrency: "STRING_VALUE", - * // TargetLocationMaxErrors: "STRING_VALUE", - * // ExecutionRoleName: "STRING_VALUE", - * // TargetLocationAlarmConfiguration: { // AlarmConfiguration - * // IgnorePollAlarmFailure: true || false, - * // Alarms: [ // AlarmList // required - * // { // Alarm - * // Name: "STRING_VALUE", // required - * // }, - * // ], - * // }, - * // }, - * // ], - * // ScheduleOffset: Number("int"), - * // TargetMaps: [ // TargetMaps - * // { // TargetMap - * // "": [ // TargetMapValueList - * // "STRING_VALUE", - * // ], - * // }, - * // ], - * // }, - * // ], - * // NextToken: "STRING_VALUE", - * // }; - * - * ``` - * - * @param ListAssociationVersionsCommandInput - {@link ListAssociationVersionsCommandInput} - * @returns {@link ListAssociationVersionsCommandOutput} - * @see {@link ListAssociationVersionsCommandInput} for command's `input` shape. - * @see {@link ListAssociationVersionsCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link AssociationDoesNotExist} (client fault) - *

The specified association doesn't exist.

- * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidNextToken} (client fault) - *

The specified token isn't valid.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class ListAssociationVersionsCommand extends $Command { - readonly input: ListAssociationVersionsCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: ListAssociationVersionsCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListAssociationsCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListAssociationsCommand.d.ts deleted file mode 100644 index a56b77d4..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListAssociationsCommand.d.ts +++ /dev/null @@ -1,123 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { ListAssociationsRequest, ListAssociationsResult } from "../models/models_1"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link ListAssociationsCommand}. - */ -export interface ListAssociationsCommandInput extends ListAssociationsRequest { -} -/** - * @public - * - * The output of {@link ListAssociationsCommand}. - */ -export interface ListAssociationsCommandOutput extends ListAssociationsResult, __MetadataBearer { -} -/** - * @public - *

Returns all State Manager associations in the current Amazon Web Services account and Amazon Web Services Region. You - * can limit the results to a specific State Manager association document or managed node by - * specifying a filter. State Manager is a capability of Amazon Web Services Systems Manager.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, ListAssociationsCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, ListAssociationsCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // ListAssociationsRequest - * AssociationFilterList: [ // AssociationFilterList - * { // AssociationFilter - * key: "InstanceId" || "Name" || "AssociationId" || "AssociationStatusName" || "LastExecutedBefore" || "LastExecutedAfter" || "AssociationName" || "ResourceGroupName", // required - * value: "STRING_VALUE", // required - * }, - * ], - * MaxResults: Number("int"), - * NextToken: "STRING_VALUE", - * }; - * const command = new ListAssociationsCommand(input); - * const response = await client.send(command); - * // { // ListAssociationsResult - * // Associations: [ // AssociationList - * // { // Association - * // Name: "STRING_VALUE", - * // InstanceId: "STRING_VALUE", - * // AssociationId: "STRING_VALUE", - * // AssociationVersion: "STRING_VALUE", - * // DocumentVersion: "STRING_VALUE", - * // Targets: [ // Targets - * // { // Target - * // Key: "STRING_VALUE", - * // Values: [ // TargetValues - * // "STRING_VALUE", - * // ], - * // }, - * // ], - * // LastExecutionDate: new Date("TIMESTAMP"), - * // Overview: { // AssociationOverview - * // Status: "STRING_VALUE", - * // DetailedStatus: "STRING_VALUE", - * // AssociationStatusAggregatedCount: { // AssociationStatusAggregatedCount - * // "": Number("int"), - * // }, - * // }, - * // ScheduleExpression: "STRING_VALUE", - * // AssociationName: "STRING_VALUE", - * // ScheduleOffset: Number("int"), - * // TargetMaps: [ // TargetMaps - * // { // TargetMap - * // "": [ // TargetMapValueList - * // "STRING_VALUE", - * // ], - * // }, - * // ], - * // }, - * // ], - * // NextToken: "STRING_VALUE", - * // }; - * - * ``` - * - * @param ListAssociationsCommandInput - {@link ListAssociationsCommandInput} - * @returns {@link ListAssociationsCommandOutput} - * @see {@link ListAssociationsCommandInput} for command's `input` shape. - * @see {@link ListAssociationsCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidNextToken} (client fault) - *

The specified token isn't valid.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class ListAssociationsCommand extends $Command { - readonly input: ListAssociationsCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: ListAssociationsCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListCommandInvocationsCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListCommandInvocationsCommand.d.ts deleted file mode 100644 index 68486af5..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListCommandInvocationsCommand.d.ts +++ /dev/null @@ -1,163 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { ListCommandInvocationsRequest, ListCommandInvocationsResult } from "../models/models_1"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link ListCommandInvocationsCommand}. - */ -export interface ListCommandInvocationsCommandInput extends ListCommandInvocationsRequest { -} -/** - * @public - * - * The output of {@link ListCommandInvocationsCommand}. - */ -export interface ListCommandInvocationsCommandOutput extends ListCommandInvocationsResult, __MetadataBearer { -} -/** - * @public - *

An invocation is copy of a command sent to a specific managed node. A command can apply to - * one or more managed nodes. A command invocation applies to one managed node. For example, if a - * user runs SendCommand against three managed nodes, then a command invocation is - * created for each requested managed node ID. ListCommandInvocations provide status - * about command execution.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, ListCommandInvocationsCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, ListCommandInvocationsCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // ListCommandInvocationsRequest - * CommandId: "STRING_VALUE", - * InstanceId: "STRING_VALUE", - * MaxResults: Number("int"), - * NextToken: "STRING_VALUE", - * Filters: [ // CommandFilterList - * { // CommandFilter - * key: "InvokedAfter" || "InvokedBefore" || "Status" || "ExecutionStage" || "DocumentName", // required - * value: "STRING_VALUE", // required - * }, - * ], - * Details: true || false, - * }; - * const command = new ListCommandInvocationsCommand(input); - * const response = await client.send(command); - * // { // ListCommandInvocationsResult - * // CommandInvocations: [ // CommandInvocationList - * // { // CommandInvocation - * // CommandId: "STRING_VALUE", - * // InstanceId: "STRING_VALUE", - * // InstanceName: "STRING_VALUE", - * // Comment: "STRING_VALUE", - * // DocumentName: "STRING_VALUE", - * // DocumentVersion: "STRING_VALUE", - * // RequestedDateTime: new Date("TIMESTAMP"), - * // Status: "Pending" || "InProgress" || "Delayed" || "Success" || "Cancelled" || "TimedOut" || "Failed" || "Cancelling", - * // StatusDetails: "STRING_VALUE", - * // TraceOutput: "STRING_VALUE", - * // StandardOutputUrl: "STRING_VALUE", - * // StandardErrorUrl: "STRING_VALUE", - * // CommandPlugins: [ // CommandPluginList - * // { // CommandPlugin - * // Name: "STRING_VALUE", - * // Status: "Pending" || "InProgress" || "Success" || "TimedOut" || "Cancelled" || "Failed", - * // StatusDetails: "STRING_VALUE", - * // ResponseCode: Number("int"), - * // ResponseStartDateTime: new Date("TIMESTAMP"), - * // ResponseFinishDateTime: new Date("TIMESTAMP"), - * // Output: "STRING_VALUE", - * // StandardOutputUrl: "STRING_VALUE", - * // StandardErrorUrl: "STRING_VALUE", - * // OutputS3Region: "STRING_VALUE", - * // OutputS3BucketName: "STRING_VALUE", - * // OutputS3KeyPrefix: "STRING_VALUE", - * // }, - * // ], - * // ServiceRole: "STRING_VALUE", - * // NotificationConfig: { // NotificationConfig - * // NotificationArn: "STRING_VALUE", - * // NotificationEvents: [ // NotificationEventList - * // "All" || "InProgress" || "Success" || "TimedOut" || "Cancelled" || "Failed", - * // ], - * // NotificationType: "Command" || "Invocation", - * // }, - * // CloudWatchOutputConfig: { // CloudWatchOutputConfig - * // CloudWatchLogGroupName: "STRING_VALUE", - * // CloudWatchOutputEnabled: true || false, - * // }, - * // }, - * // ], - * // NextToken: "STRING_VALUE", - * // }; - * - * ``` - * - * @param ListCommandInvocationsCommandInput - {@link ListCommandInvocationsCommandInput} - * @returns {@link ListCommandInvocationsCommandOutput} - * @see {@link ListCommandInvocationsCommandInput} for command's `input` shape. - * @see {@link ListCommandInvocationsCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidCommandId} (client fault) - *

The specified command ID isn't valid. Verify the ID and try again.

- * - * @throws {@link InvalidFilterKey} (client fault) - *

The specified key isn't valid.

- * - * @throws {@link InvalidInstanceId} (client fault) - *

The following problems can cause this exception:

- *
    - *
  • - *

    You don't have permission to access the managed node.

    - *
  • - *
  • - *

    Amazon Web Services Systems Manager Agent(SSM Agent) isn't running. Verify that SSM Agent is - * running.

    - *
  • - *
  • - *

    SSM Agent isn't registered with the SSM endpoint. Try reinstalling SSM Agent.

    - *
  • - *
  • - *

    The managed node isn't in valid state. Valid states are: Running, - * Pending, Stopped, and Stopping. Invalid states are: - * Shutting-down and Terminated.

    - *
  • - *
- * - * @throws {@link InvalidNextToken} (client fault) - *

The specified token isn't valid.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class ListCommandInvocationsCommand extends $Command { - readonly input: ListCommandInvocationsCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: ListCommandInvocationsCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListCommandsCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListCommandsCommand.d.ts deleted file mode 100644 index ffb2f4bb..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListCommandsCommand.d.ts +++ /dev/null @@ -1,178 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { ListCommandsRequest, ListCommandsResult } from "../models/models_1"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link ListCommandsCommand}. - */ -export interface ListCommandsCommandInput extends ListCommandsRequest { -} -/** - * @public - * - * The output of {@link ListCommandsCommand}. - */ -export interface ListCommandsCommandOutput extends ListCommandsResult, __MetadataBearer { -} -/** - * @public - *

Lists the commands requested by users of the Amazon Web Services account.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, ListCommandsCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, ListCommandsCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // ListCommandsRequest - * CommandId: "STRING_VALUE", - * InstanceId: "STRING_VALUE", - * MaxResults: Number("int"), - * NextToken: "STRING_VALUE", - * Filters: [ // CommandFilterList - * { // CommandFilter - * key: "InvokedAfter" || "InvokedBefore" || "Status" || "ExecutionStage" || "DocumentName", // required - * value: "STRING_VALUE", // required - * }, - * ], - * }; - * const command = new ListCommandsCommand(input); - * const response = await client.send(command); - * // { // ListCommandsResult - * // Commands: [ // CommandList - * // { // Command - * // CommandId: "STRING_VALUE", - * // DocumentName: "STRING_VALUE", - * // DocumentVersion: "STRING_VALUE", - * // Comment: "STRING_VALUE", - * // ExpiresAfter: new Date("TIMESTAMP"), - * // Parameters: { // Parameters - * // "": [ // ParameterValueList - * // "STRING_VALUE", - * // ], - * // }, - * // InstanceIds: [ // InstanceIdList - * // "STRING_VALUE", - * // ], - * // Targets: [ // Targets - * // { // Target - * // Key: "STRING_VALUE", - * // Values: [ // TargetValues - * // "STRING_VALUE", - * // ], - * // }, - * // ], - * // RequestedDateTime: new Date("TIMESTAMP"), - * // Status: "Pending" || "InProgress" || "Success" || "Cancelled" || "Failed" || "TimedOut" || "Cancelling", - * // StatusDetails: "STRING_VALUE", - * // OutputS3Region: "STRING_VALUE", - * // OutputS3BucketName: "STRING_VALUE", - * // OutputS3KeyPrefix: "STRING_VALUE", - * // MaxConcurrency: "STRING_VALUE", - * // MaxErrors: "STRING_VALUE", - * // TargetCount: Number("int"), - * // CompletedCount: Number("int"), - * // ErrorCount: Number("int"), - * // DeliveryTimedOutCount: Number("int"), - * // ServiceRole: "STRING_VALUE", - * // NotificationConfig: { // NotificationConfig - * // NotificationArn: "STRING_VALUE", - * // NotificationEvents: [ // NotificationEventList - * // "All" || "InProgress" || "Success" || "TimedOut" || "Cancelled" || "Failed", - * // ], - * // NotificationType: "Command" || "Invocation", - * // }, - * // CloudWatchOutputConfig: { // CloudWatchOutputConfig - * // CloudWatchLogGroupName: "STRING_VALUE", - * // CloudWatchOutputEnabled: true || false, - * // }, - * // TimeoutSeconds: Number("int"), - * // AlarmConfiguration: { // AlarmConfiguration - * // IgnorePollAlarmFailure: true || false, - * // Alarms: [ // AlarmList // required - * // { // Alarm - * // Name: "STRING_VALUE", // required - * // }, - * // ], - * // }, - * // TriggeredAlarms: [ // AlarmStateInformationList - * // { // AlarmStateInformation - * // Name: "STRING_VALUE", // required - * // State: "UNKNOWN" || "ALARM", // required - * // }, - * // ], - * // }, - * // ], - * // NextToken: "STRING_VALUE", - * // }; - * - * ``` - * - * @param ListCommandsCommandInput - {@link ListCommandsCommandInput} - * @returns {@link ListCommandsCommandOutput} - * @see {@link ListCommandsCommandInput} for command's `input` shape. - * @see {@link ListCommandsCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidCommandId} (client fault) - *

The specified command ID isn't valid. Verify the ID and try again.

- * - * @throws {@link InvalidFilterKey} (client fault) - *

The specified key isn't valid.

- * - * @throws {@link InvalidInstanceId} (client fault) - *

The following problems can cause this exception:

- *
    - *
  • - *

    You don't have permission to access the managed node.

    - *
  • - *
  • - *

    Amazon Web Services Systems Manager Agent(SSM Agent) isn't running. Verify that SSM Agent is - * running.

    - *
  • - *
  • - *

    SSM Agent isn't registered with the SSM endpoint. Try reinstalling SSM Agent.

    - *
  • - *
  • - *

    The managed node isn't in valid state. Valid states are: Running, - * Pending, Stopped, and Stopping. Invalid states are: - * Shutting-down and Terminated.

    - *
  • - *
- * - * @throws {@link InvalidNextToken} (client fault) - *

The specified token isn't valid.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class ListCommandsCommand extends $Command { - readonly input: ListCommandsCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: ListCommandsCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListComplianceItemsCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListComplianceItemsCommand.d.ts deleted file mode 100644 index e7a0c1fe..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListComplianceItemsCommand.d.ts +++ /dev/null @@ -1,126 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { ListComplianceItemsRequest, ListComplianceItemsResult } from "../models/models_1"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link ListComplianceItemsCommand}. - */ -export interface ListComplianceItemsCommandInput extends ListComplianceItemsRequest { -} -/** - * @public - * - * The output of {@link ListComplianceItemsCommand}. - */ -export interface ListComplianceItemsCommandOutput extends ListComplianceItemsResult, __MetadataBearer { -} -/** - * @public - *

For a specified resource ID, this API operation returns a list of compliance statuses for - * different resource types. Currently, you can only specify one resource ID per call. List results - * depend on the criteria specified in the filter.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, ListComplianceItemsCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, ListComplianceItemsCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // ListComplianceItemsRequest - * Filters: [ // ComplianceStringFilterList - * { // ComplianceStringFilter - * Key: "STRING_VALUE", - * Values: [ // ComplianceStringFilterValueList - * "STRING_VALUE", - * ], - * Type: "EQUAL" || "NOT_EQUAL" || "BEGIN_WITH" || "LESS_THAN" || "GREATER_THAN", - * }, - * ], - * ResourceIds: [ // ComplianceResourceIdList - * "STRING_VALUE", - * ], - * ResourceTypes: [ // ComplianceResourceTypeList - * "STRING_VALUE", - * ], - * NextToken: "STRING_VALUE", - * MaxResults: Number("int"), - * }; - * const command = new ListComplianceItemsCommand(input); - * const response = await client.send(command); - * // { // ListComplianceItemsResult - * // ComplianceItems: [ // ComplianceItemList - * // { // ComplianceItem - * // ComplianceType: "STRING_VALUE", - * // ResourceType: "STRING_VALUE", - * // ResourceId: "STRING_VALUE", - * // Id: "STRING_VALUE", - * // Title: "STRING_VALUE", - * // Status: "COMPLIANT" || "NON_COMPLIANT", - * // Severity: "CRITICAL" || "HIGH" || "MEDIUM" || "LOW" || "INFORMATIONAL" || "UNSPECIFIED", - * // ExecutionSummary: { // ComplianceExecutionSummary - * // ExecutionTime: new Date("TIMESTAMP"), // required - * // ExecutionId: "STRING_VALUE", - * // ExecutionType: "STRING_VALUE", - * // }, - * // Details: { // ComplianceItemDetails - * // "": "STRING_VALUE", - * // }, - * // }, - * // ], - * // NextToken: "STRING_VALUE", - * // }; - * - * ``` - * - * @param ListComplianceItemsCommandInput - {@link ListComplianceItemsCommandInput} - * @returns {@link ListComplianceItemsCommandOutput} - * @see {@link ListComplianceItemsCommandInput} for command's `input` shape. - * @see {@link ListComplianceItemsCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidFilter} (client fault) - *

The filter name isn't valid. Verify the you entered the correct name and try again.

- * - * @throws {@link InvalidNextToken} (client fault) - *

The specified token isn't valid.

- * - * @throws {@link InvalidResourceId} (client fault) - *

The resource ID isn't valid. Verify that you entered the correct ID and try again.

- * - * @throws {@link InvalidResourceType} (client fault) - *

The resource type isn't valid. For example, if you are attempting to tag an EC2 instance, - * the instance must be a registered managed node.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class ListComplianceItemsCommand extends $Command { - readonly input: ListComplianceItemsCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: ListComplianceItemsCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListComplianceSummariesCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListComplianceSummariesCommand.d.ts deleted file mode 100644 index a77fe24b..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListComplianceSummariesCommand.d.ts +++ /dev/null @@ -1,121 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { ListComplianceSummariesRequest, ListComplianceSummariesResult } from "../models/models_1"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link ListComplianceSummariesCommand}. - */ -export interface ListComplianceSummariesCommandInput extends ListComplianceSummariesRequest { -} -/** - * @public - * - * The output of {@link ListComplianceSummariesCommand}. - */ -export interface ListComplianceSummariesCommandOutput extends ListComplianceSummariesResult, __MetadataBearer { -} -/** - * @public - *

Returns a summary count of compliant and non-compliant resources for a compliance type. For - * example, this call can return State Manager associations, patches, or custom compliance types - * according to the filter criteria that you specify.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, ListComplianceSummariesCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, ListComplianceSummariesCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // ListComplianceSummariesRequest - * Filters: [ // ComplianceStringFilterList - * { // ComplianceStringFilter - * Key: "STRING_VALUE", - * Values: [ // ComplianceStringFilterValueList - * "STRING_VALUE", - * ], - * Type: "EQUAL" || "NOT_EQUAL" || "BEGIN_WITH" || "LESS_THAN" || "GREATER_THAN", - * }, - * ], - * NextToken: "STRING_VALUE", - * MaxResults: Number("int"), - * }; - * const command = new ListComplianceSummariesCommand(input); - * const response = await client.send(command); - * // { // ListComplianceSummariesResult - * // ComplianceSummaryItems: [ // ComplianceSummaryItemList - * // { // ComplianceSummaryItem - * // ComplianceType: "STRING_VALUE", - * // CompliantSummary: { // CompliantSummary - * // CompliantCount: Number("int"), - * // SeveritySummary: { // SeveritySummary - * // CriticalCount: Number("int"), - * // HighCount: Number("int"), - * // MediumCount: Number("int"), - * // LowCount: Number("int"), - * // InformationalCount: Number("int"), - * // UnspecifiedCount: Number("int"), - * // }, - * // }, - * // NonCompliantSummary: { // NonCompliantSummary - * // NonCompliantCount: Number("int"), - * // SeveritySummary: { - * // CriticalCount: Number("int"), - * // HighCount: Number("int"), - * // MediumCount: Number("int"), - * // LowCount: Number("int"), - * // InformationalCount: Number("int"), - * // UnspecifiedCount: Number("int"), - * // }, - * // }, - * // }, - * // ], - * // NextToken: "STRING_VALUE", - * // }; - * - * ``` - * - * @param ListComplianceSummariesCommandInput - {@link ListComplianceSummariesCommandInput} - * @returns {@link ListComplianceSummariesCommandOutput} - * @see {@link ListComplianceSummariesCommandInput} for command's `input` shape. - * @see {@link ListComplianceSummariesCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidFilter} (client fault) - *

The filter name isn't valid. Verify the you entered the correct name and try again.

- * - * @throws {@link InvalidNextToken} (client fault) - *

The specified token isn't valid.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class ListComplianceSummariesCommand extends $Command { - readonly input: ListComplianceSummariesCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: ListComplianceSummariesCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListDocumentMetadataHistoryCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListDocumentMetadataHistoryCommand.d.ts deleted file mode 100644 index 643d7940..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListDocumentMetadataHistoryCommand.d.ts +++ /dev/null @@ -1,108 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { ListDocumentMetadataHistoryRequest, ListDocumentMetadataHistoryResponse } from "../models/models_1"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link ListDocumentMetadataHistoryCommand}. - */ -export interface ListDocumentMetadataHistoryCommandInput extends ListDocumentMetadataHistoryRequest { -} -/** - * @public - * - * The output of {@link ListDocumentMetadataHistoryCommand}. - */ -export interface ListDocumentMetadataHistoryCommandOutput extends ListDocumentMetadataHistoryResponse, __MetadataBearer { -} -/** - * @public - *

Information about approval reviews for a version of a change template in Change Manager.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, ListDocumentMetadataHistoryCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, ListDocumentMetadataHistoryCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // ListDocumentMetadataHistoryRequest - * Name: "STRING_VALUE", // required - * DocumentVersion: "STRING_VALUE", - * Metadata: "DocumentReviews", // required - * NextToken: "STRING_VALUE", - * MaxResults: Number("int"), - * }; - * const command = new ListDocumentMetadataHistoryCommand(input); - * const response = await client.send(command); - * // { // ListDocumentMetadataHistoryResponse - * // Name: "STRING_VALUE", - * // DocumentVersion: "STRING_VALUE", - * // Author: "STRING_VALUE", - * // Metadata: { // DocumentMetadataResponseInfo - * // ReviewerResponse: [ // DocumentReviewerResponseList - * // { // DocumentReviewerResponseSource - * // CreateTime: new Date("TIMESTAMP"), - * // UpdatedTime: new Date("TIMESTAMP"), - * // ReviewStatus: "APPROVED" || "NOT_REVIEWED" || "PENDING" || "REJECTED", - * // Comment: [ // DocumentReviewCommentList - * // { // DocumentReviewCommentSource - * // Type: "Comment", - * // Content: "STRING_VALUE", - * // }, - * // ], - * // Reviewer: "STRING_VALUE", - * // }, - * // ], - * // }, - * // NextToken: "STRING_VALUE", - * // }; - * - * ``` - * - * @param ListDocumentMetadataHistoryCommandInput - {@link ListDocumentMetadataHistoryCommandInput} - * @returns {@link ListDocumentMetadataHistoryCommandOutput} - * @see {@link ListDocumentMetadataHistoryCommandInput} for command's `input` shape. - * @see {@link ListDocumentMetadataHistoryCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidDocument} (client fault) - *

The specified SSM document doesn't exist.

- * - * @throws {@link InvalidDocumentVersion} (client fault) - *

The document version isn't valid or doesn't exist.

- * - * @throws {@link InvalidNextToken} (client fault) - *

The specified token isn't valid.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class ListDocumentMetadataHistoryCommand extends $Command { - readonly input: ListDocumentMetadataHistoryCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: ListDocumentMetadataHistoryCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListDocumentVersionsCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListDocumentVersionsCommand.d.ts deleted file mode 100644 index b247763a..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListDocumentVersionsCommand.d.ts +++ /dev/null @@ -1,98 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { ListDocumentVersionsRequest, ListDocumentVersionsResult } from "../models/models_1"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link ListDocumentVersionsCommand}. - */ -export interface ListDocumentVersionsCommandInput extends ListDocumentVersionsRequest { -} -/** - * @public - * - * The output of {@link ListDocumentVersionsCommand}. - */ -export interface ListDocumentVersionsCommandOutput extends ListDocumentVersionsResult, __MetadataBearer { -} -/** - * @public - *

List all versions for a document.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, ListDocumentVersionsCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, ListDocumentVersionsCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // ListDocumentVersionsRequest - * Name: "STRING_VALUE", // required - * MaxResults: Number("int"), - * NextToken: "STRING_VALUE", - * }; - * const command = new ListDocumentVersionsCommand(input); - * const response = await client.send(command); - * // { // ListDocumentVersionsResult - * // DocumentVersions: [ // DocumentVersionList - * // { // DocumentVersionInfo - * // Name: "STRING_VALUE", - * // DisplayName: "STRING_VALUE", - * // DocumentVersion: "STRING_VALUE", - * // VersionName: "STRING_VALUE", - * // CreatedDate: new Date("TIMESTAMP"), - * // IsDefaultVersion: true || false, - * // DocumentFormat: "YAML" || "JSON" || "TEXT", - * // Status: "Creating" || "Active" || "Updating" || "Deleting" || "Failed", - * // StatusInformation: "STRING_VALUE", - * // ReviewStatus: "APPROVED" || "NOT_REVIEWED" || "PENDING" || "REJECTED", - * // }, - * // ], - * // NextToken: "STRING_VALUE", - * // }; - * - * ``` - * - * @param ListDocumentVersionsCommandInput - {@link ListDocumentVersionsCommandInput} - * @returns {@link ListDocumentVersionsCommandOutput} - * @see {@link ListDocumentVersionsCommandInput} for command's `input` shape. - * @see {@link ListDocumentVersionsCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidDocument} (client fault) - *

The specified SSM document doesn't exist.

- * - * @throws {@link InvalidNextToken} (client fault) - *

The specified token isn't valid.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class ListDocumentVersionsCommand extends $Command { - readonly input: ListDocumentVersionsCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: ListDocumentVersionsCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListDocumentsCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListDocumentsCommand.d.ts deleted file mode 100644 index 86c22a6d..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListDocumentsCommand.d.ts +++ /dev/null @@ -1,131 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { ListDocumentsRequest, ListDocumentsResult } from "../models/models_1"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link ListDocumentsCommand}. - */ -export interface ListDocumentsCommandInput extends ListDocumentsRequest { -} -/** - * @public - * - * The output of {@link ListDocumentsCommand}. - */ -export interface ListDocumentsCommandOutput extends ListDocumentsResult, __MetadataBearer { -} -/** - * @public - *

Returns all Systems Manager (SSM) documents in the current Amazon Web Services account and Amazon Web Services Region. You can - * limit the results of this request by using a filter.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, ListDocumentsCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, ListDocumentsCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // ListDocumentsRequest - * DocumentFilterList: [ // DocumentFilterList - * { // DocumentFilter - * key: "Name" || "Owner" || "PlatformTypes" || "DocumentType", // required - * value: "STRING_VALUE", // required - * }, - * ], - * Filters: [ // DocumentKeyValuesFilterList - * { // DocumentKeyValuesFilter - * Key: "STRING_VALUE", - * Values: [ // DocumentKeyValuesFilterValues - * "STRING_VALUE", - * ], - * }, - * ], - * MaxResults: Number("int"), - * NextToken: "STRING_VALUE", - * }; - * const command = new ListDocumentsCommand(input); - * const response = await client.send(command); - * // { // ListDocumentsResult - * // DocumentIdentifiers: [ // DocumentIdentifierList - * // { // DocumentIdentifier - * // Name: "STRING_VALUE", - * // CreatedDate: new Date("TIMESTAMP"), - * // DisplayName: "STRING_VALUE", - * // Owner: "STRING_VALUE", - * // VersionName: "STRING_VALUE", - * // PlatformTypes: [ // PlatformTypeList - * // "Windows" || "Linux" || "MacOS", - * // ], - * // DocumentVersion: "STRING_VALUE", - * // DocumentType: "Command" || "Policy" || "Automation" || "Session" || "Package" || "ApplicationConfiguration" || "ApplicationConfigurationSchema" || "DeploymentStrategy" || "ChangeCalendar" || "Automation.ChangeTemplate" || "ProblemAnalysis" || "ProblemAnalysisTemplate" || "CloudFormation" || "ConformancePackTemplate" || "QuickSetup", - * // SchemaVersion: "STRING_VALUE", - * // DocumentFormat: "YAML" || "JSON" || "TEXT", - * // TargetType: "STRING_VALUE", - * // Tags: [ // TagList - * // { // Tag - * // Key: "STRING_VALUE", // required - * // Value: "STRING_VALUE", // required - * // }, - * // ], - * // Requires: [ // DocumentRequiresList - * // { // DocumentRequires - * // Name: "STRING_VALUE", // required - * // Version: "STRING_VALUE", - * // RequireType: "STRING_VALUE", - * // VersionName: "STRING_VALUE", - * // }, - * // ], - * // ReviewStatus: "APPROVED" || "NOT_REVIEWED" || "PENDING" || "REJECTED", - * // Author: "STRING_VALUE", - * // }, - * // ], - * // NextToken: "STRING_VALUE", - * // }; - * - * ``` - * - * @param ListDocumentsCommandInput - {@link ListDocumentsCommandInput} - * @returns {@link ListDocumentsCommandOutput} - * @see {@link ListDocumentsCommandInput} for command's `input` shape. - * @see {@link ListDocumentsCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidFilterKey} (client fault) - *

The specified key isn't valid.

- * - * @throws {@link InvalidNextToken} (client fault) - *

The specified token isn't valid.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class ListDocumentsCommand extends $Command { - readonly input: ListDocumentsCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: ListDocumentsCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListInventoryEntriesCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListInventoryEntriesCommand.d.ts deleted file mode 100644 index c64c34e9..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListInventoryEntriesCommand.d.ts +++ /dev/null @@ -1,126 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { ListInventoryEntriesRequest, ListInventoryEntriesResult } from "../models/models_1"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link ListInventoryEntriesCommand}. - */ -export interface ListInventoryEntriesCommandInput extends ListInventoryEntriesRequest { -} -/** - * @public - * - * The output of {@link ListInventoryEntriesCommand}. - */ -export interface ListInventoryEntriesCommandOutput extends ListInventoryEntriesResult, __MetadataBearer { -} -/** - * @public - *

A list of inventory items returned by the request.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, ListInventoryEntriesCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, ListInventoryEntriesCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // ListInventoryEntriesRequest - * InstanceId: "STRING_VALUE", // required - * TypeName: "STRING_VALUE", // required - * Filters: [ // InventoryFilterList - * { // InventoryFilter - * Key: "STRING_VALUE", // required - * Values: [ // InventoryFilterValueList // required - * "STRING_VALUE", - * ], - * Type: "Equal" || "NotEqual" || "BeginWith" || "LessThan" || "GreaterThan" || "Exists", - * }, - * ], - * NextToken: "STRING_VALUE", - * MaxResults: Number("int"), - * }; - * const command = new ListInventoryEntriesCommand(input); - * const response = await client.send(command); - * // { // ListInventoryEntriesResult - * // TypeName: "STRING_VALUE", - * // InstanceId: "STRING_VALUE", - * // SchemaVersion: "STRING_VALUE", - * // CaptureTime: "STRING_VALUE", - * // Entries: [ // InventoryItemEntryList - * // { // InventoryItemEntry - * // "": "STRING_VALUE", - * // }, - * // ], - * // NextToken: "STRING_VALUE", - * // }; - * - * ``` - * - * @param ListInventoryEntriesCommandInput - {@link ListInventoryEntriesCommandInput} - * @returns {@link ListInventoryEntriesCommandOutput} - * @see {@link ListInventoryEntriesCommandInput} for command's `input` shape. - * @see {@link ListInventoryEntriesCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidFilter} (client fault) - *

The filter name isn't valid. Verify the you entered the correct name and try again.

- * - * @throws {@link InvalidInstanceId} (client fault) - *

The following problems can cause this exception:

- *
    - *
  • - *

    You don't have permission to access the managed node.

    - *
  • - *
  • - *

    Amazon Web Services Systems Manager Agent(SSM Agent) isn't running. Verify that SSM Agent is - * running.

    - *
  • - *
  • - *

    SSM Agent isn't registered with the SSM endpoint. Try reinstalling SSM Agent.

    - *
  • - *
  • - *

    The managed node isn't in valid state. Valid states are: Running, - * Pending, Stopped, and Stopping. Invalid states are: - * Shutting-down and Terminated.

    - *
  • - *
- * - * @throws {@link InvalidNextToken} (client fault) - *

The specified token isn't valid.

- * - * @throws {@link InvalidTypeNameException} (client fault) - *

The parameter type name isn't valid.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class ListInventoryEntriesCommand extends $Command { - readonly input: ListInventoryEntriesCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: ListInventoryEntriesCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListOpsItemEventsCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListOpsItemEventsCommand.d.ts deleted file mode 100644 index b3b71529..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListOpsItemEventsCommand.d.ts +++ /dev/null @@ -1,110 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { ListOpsItemEventsRequest, ListOpsItemEventsResponse } from "../models/models_1"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link ListOpsItemEventsCommand}. - */ -export interface ListOpsItemEventsCommandInput extends ListOpsItemEventsRequest { -} -/** - * @public - * - * The output of {@link ListOpsItemEventsCommand}. - */ -export interface ListOpsItemEventsCommandOutput extends ListOpsItemEventsResponse, __MetadataBearer { -} -/** - * @public - *

Returns a list of all OpsItem events in the current Amazon Web Services Region and Amazon Web Services account. You can - * limit the results to events associated with specific OpsItems by specifying a filter.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, ListOpsItemEventsCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, ListOpsItemEventsCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // ListOpsItemEventsRequest - * Filters: [ // OpsItemEventFilters - * { // OpsItemEventFilter - * Key: "OpsItemId", // required - * Values: [ // OpsItemEventFilterValues // required - * "STRING_VALUE", - * ], - * Operator: "Equal", // required - * }, - * ], - * MaxResults: Number("int"), - * NextToken: "STRING_VALUE", - * }; - * const command = new ListOpsItemEventsCommand(input); - * const response = await client.send(command); - * // { // ListOpsItemEventsResponse - * // NextToken: "STRING_VALUE", - * // Summaries: [ // OpsItemEventSummaries - * // { // OpsItemEventSummary - * // OpsItemId: "STRING_VALUE", - * // EventId: "STRING_VALUE", - * // Source: "STRING_VALUE", - * // DetailType: "STRING_VALUE", - * // Detail: "STRING_VALUE", - * // CreatedBy: { // OpsItemIdentity - * // Arn: "STRING_VALUE", - * // }, - * // CreatedTime: new Date("TIMESTAMP"), - * // }, - * // ], - * // }; - * - * ``` - * - * @param ListOpsItemEventsCommandInput - {@link ListOpsItemEventsCommandInput} - * @returns {@link ListOpsItemEventsCommandOutput} - * @see {@link ListOpsItemEventsCommandInput} for command's `input` shape. - * @see {@link ListOpsItemEventsCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link OpsItemInvalidParameterException} (client fault) - *

A specified parameter argument isn't valid. Verify the available arguments and try - * again.

- * - * @throws {@link OpsItemLimitExceededException} (client fault) - *

The request caused OpsItems to exceed one or more quotas.

- * - * @throws {@link OpsItemNotFoundException} (client fault) - *

The specified OpsItem ID doesn't exist. Verify the ID and try again.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class ListOpsItemEventsCommand extends $Command { - readonly input: ListOpsItemEventsCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: ListOpsItemEventsCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListOpsItemRelatedItemsCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListOpsItemRelatedItemsCommand.d.ts deleted file mode 100644 index 7dd9eed3..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListOpsItemRelatedItemsCommand.d.ts +++ /dev/null @@ -1,109 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { ListOpsItemRelatedItemsRequest, ListOpsItemRelatedItemsResponse } from "../models/models_1"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link ListOpsItemRelatedItemsCommand}. - */ -export interface ListOpsItemRelatedItemsCommandInput extends ListOpsItemRelatedItemsRequest { -} -/** - * @public - * - * The output of {@link ListOpsItemRelatedItemsCommand}. - */ -export interface ListOpsItemRelatedItemsCommandOutput extends ListOpsItemRelatedItemsResponse, __MetadataBearer { -} -/** - * @public - *

Lists all related-item resources associated with a Systems Manager OpsCenter OpsItem. OpsCenter is a - * capability of Amazon Web Services Systems Manager.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, ListOpsItemRelatedItemsCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, ListOpsItemRelatedItemsCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // ListOpsItemRelatedItemsRequest - * OpsItemId: "STRING_VALUE", - * Filters: [ // OpsItemRelatedItemsFilters - * { // OpsItemRelatedItemsFilter - * Key: "ResourceType" || "AssociationId" || "ResourceUri", // required - * Values: [ // OpsItemRelatedItemsFilterValues // required - * "STRING_VALUE", - * ], - * Operator: "Equal", // required - * }, - * ], - * MaxResults: Number("int"), - * NextToken: "STRING_VALUE", - * }; - * const command = new ListOpsItemRelatedItemsCommand(input); - * const response = await client.send(command); - * // { // ListOpsItemRelatedItemsResponse - * // NextToken: "STRING_VALUE", - * // Summaries: [ // OpsItemRelatedItemSummaries - * // { // OpsItemRelatedItemSummary - * // OpsItemId: "STRING_VALUE", - * // AssociationId: "STRING_VALUE", - * // ResourceType: "STRING_VALUE", - * // AssociationType: "STRING_VALUE", - * // ResourceUri: "STRING_VALUE", - * // CreatedBy: { // OpsItemIdentity - * // Arn: "STRING_VALUE", - * // }, - * // CreatedTime: new Date("TIMESTAMP"), - * // LastModifiedBy: { - * // Arn: "STRING_VALUE", - * // }, - * // LastModifiedTime: new Date("TIMESTAMP"), - * // }, - * // ], - * // }; - * - * ``` - * - * @param ListOpsItemRelatedItemsCommandInput - {@link ListOpsItemRelatedItemsCommandInput} - * @returns {@link ListOpsItemRelatedItemsCommandOutput} - * @see {@link ListOpsItemRelatedItemsCommandInput} for command's `input` shape. - * @see {@link ListOpsItemRelatedItemsCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link OpsItemInvalidParameterException} (client fault) - *

A specified parameter argument isn't valid. Verify the available arguments and try - * again.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class ListOpsItemRelatedItemsCommand extends $Command { - readonly input: ListOpsItemRelatedItemsCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: ListOpsItemRelatedItemsCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListOpsMetadataCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListOpsMetadataCommand.d.ts deleted file mode 100644 index a2da4c22..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListOpsMetadataCommand.d.ts +++ /dev/null @@ -1,98 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { ListOpsMetadataRequest, ListOpsMetadataResult } from "../models/models_1"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link ListOpsMetadataCommand}. - */ -export interface ListOpsMetadataCommandInput extends ListOpsMetadataRequest { -} -/** - * @public - * - * The output of {@link ListOpsMetadataCommand}. - */ -export interface ListOpsMetadataCommandOutput extends ListOpsMetadataResult, __MetadataBearer { -} -/** - * @public - *

Amazon Web Services Systems Manager calls this API operation when displaying all Application Manager OpsMetadata objects or - * blobs.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, ListOpsMetadataCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, ListOpsMetadataCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // ListOpsMetadataRequest - * Filters: [ // OpsMetadataFilterList - * { // OpsMetadataFilter - * Key: "STRING_VALUE", // required - * Values: [ // OpsMetadataFilterValueList // required - * "STRING_VALUE", - * ], - * }, - * ], - * MaxResults: Number("int"), - * NextToken: "STRING_VALUE", - * }; - * const command = new ListOpsMetadataCommand(input); - * const response = await client.send(command); - * // { // ListOpsMetadataResult - * // OpsMetadataList: [ // OpsMetadataList - * // { // OpsMetadata - * // ResourceId: "STRING_VALUE", - * // OpsMetadataArn: "STRING_VALUE", - * // LastModifiedDate: new Date("TIMESTAMP"), - * // LastModifiedUser: "STRING_VALUE", - * // CreationDate: new Date("TIMESTAMP"), - * // }, - * // ], - * // NextToken: "STRING_VALUE", - * // }; - * - * ``` - * - * @param ListOpsMetadataCommandInput - {@link ListOpsMetadataCommandInput} - * @returns {@link ListOpsMetadataCommandOutput} - * @see {@link ListOpsMetadataCommandInput} for command's `input` shape. - * @see {@link ListOpsMetadataCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link OpsMetadataInvalidArgumentException} (client fault) - *

One of the arguments passed is invalid.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class ListOpsMetadataCommand extends $Command { - readonly input: ListOpsMetadataCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: ListOpsMetadataCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListResourceComplianceSummariesCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListResourceComplianceSummariesCommand.d.ts deleted file mode 100644 index 35bca699..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListResourceComplianceSummariesCommand.d.ts +++ /dev/null @@ -1,130 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { ListResourceComplianceSummariesRequest, ListResourceComplianceSummariesResult } from "../models/models_1"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link ListResourceComplianceSummariesCommand}. - */ -export interface ListResourceComplianceSummariesCommandInput extends ListResourceComplianceSummariesRequest { -} -/** - * @public - * - * The output of {@link ListResourceComplianceSummariesCommand}. - */ -export interface ListResourceComplianceSummariesCommandOutput extends ListResourceComplianceSummariesResult, __MetadataBearer { -} -/** - * @public - *

Returns a resource-level summary count. The summary includes information about compliant and - * non-compliant statuses and detailed compliance-item severity counts, according to the filter - * criteria you specify.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, ListResourceComplianceSummariesCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, ListResourceComplianceSummariesCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // ListResourceComplianceSummariesRequest - * Filters: [ // ComplianceStringFilterList - * { // ComplianceStringFilter - * Key: "STRING_VALUE", - * Values: [ // ComplianceStringFilterValueList - * "STRING_VALUE", - * ], - * Type: "EQUAL" || "NOT_EQUAL" || "BEGIN_WITH" || "LESS_THAN" || "GREATER_THAN", - * }, - * ], - * NextToken: "STRING_VALUE", - * MaxResults: Number("int"), - * }; - * const command = new ListResourceComplianceSummariesCommand(input); - * const response = await client.send(command); - * // { // ListResourceComplianceSummariesResult - * // ResourceComplianceSummaryItems: [ // ResourceComplianceSummaryItemList - * // { // ResourceComplianceSummaryItem - * // ComplianceType: "STRING_VALUE", - * // ResourceType: "STRING_VALUE", - * // ResourceId: "STRING_VALUE", - * // Status: "COMPLIANT" || "NON_COMPLIANT", - * // OverallSeverity: "CRITICAL" || "HIGH" || "MEDIUM" || "LOW" || "INFORMATIONAL" || "UNSPECIFIED", - * // ExecutionSummary: { // ComplianceExecutionSummary - * // ExecutionTime: new Date("TIMESTAMP"), // required - * // ExecutionId: "STRING_VALUE", - * // ExecutionType: "STRING_VALUE", - * // }, - * // CompliantSummary: { // CompliantSummary - * // CompliantCount: Number("int"), - * // SeveritySummary: { // SeveritySummary - * // CriticalCount: Number("int"), - * // HighCount: Number("int"), - * // MediumCount: Number("int"), - * // LowCount: Number("int"), - * // InformationalCount: Number("int"), - * // UnspecifiedCount: Number("int"), - * // }, - * // }, - * // NonCompliantSummary: { // NonCompliantSummary - * // NonCompliantCount: Number("int"), - * // SeveritySummary: { - * // CriticalCount: Number("int"), - * // HighCount: Number("int"), - * // MediumCount: Number("int"), - * // LowCount: Number("int"), - * // InformationalCount: Number("int"), - * // UnspecifiedCount: Number("int"), - * // }, - * // }, - * // }, - * // ], - * // NextToken: "STRING_VALUE", - * // }; - * - * ``` - * - * @param ListResourceComplianceSummariesCommandInput - {@link ListResourceComplianceSummariesCommandInput} - * @returns {@link ListResourceComplianceSummariesCommandOutput} - * @see {@link ListResourceComplianceSummariesCommandInput} for command's `input` shape. - * @see {@link ListResourceComplianceSummariesCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidFilter} (client fault) - *

The filter name isn't valid. Verify the you entered the correct name and try again.

- * - * @throws {@link InvalidNextToken} (client fault) - *

The specified token isn't valid.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class ListResourceComplianceSummariesCommand extends $Command { - readonly input: ListResourceComplianceSummariesCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: ListResourceComplianceSummariesCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListResourceDataSyncCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListResourceDataSyncCommand.d.ts deleted file mode 100644 index 851ebec9..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListResourceDataSyncCommand.d.ts +++ /dev/null @@ -1,131 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { ListResourceDataSyncRequest, ListResourceDataSyncResult } from "../models/models_1"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link ListResourceDataSyncCommand}. - */ -export interface ListResourceDataSyncCommandInput extends ListResourceDataSyncRequest { -} -/** - * @public - * - * The output of {@link ListResourceDataSyncCommand}. - */ -export interface ListResourceDataSyncCommandOutput extends ListResourceDataSyncResult, __MetadataBearer { -} -/** - * @public - *

Lists your resource data sync configurations. Includes information about the last time a - * sync attempted to start, the last sync status, and the last time a sync successfully - * completed.

- *

The number of sync configurations might be too large to return using a single call to - * ListResourceDataSync. You can limit the number of sync configurations returned by - * using the MaxResults parameter. To determine whether there are more sync - * configurations to list, check the value of NextToken in the output. If there are - * more sync configurations to list, you can request them by specifying the NextToken - * returned in the call to the parameter of a subsequent call.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, ListResourceDataSyncCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, ListResourceDataSyncCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // ListResourceDataSyncRequest - * SyncType: "STRING_VALUE", - * NextToken: "STRING_VALUE", - * MaxResults: Number("int"), - * }; - * const command = new ListResourceDataSyncCommand(input); - * const response = await client.send(command); - * // { // ListResourceDataSyncResult - * // ResourceDataSyncItems: [ // ResourceDataSyncItemList - * // { // ResourceDataSyncItem - * // SyncName: "STRING_VALUE", - * // SyncType: "STRING_VALUE", - * // SyncSource: { // ResourceDataSyncSourceWithState - * // SourceType: "STRING_VALUE", - * // AwsOrganizationsSource: { // ResourceDataSyncAwsOrganizationsSource - * // OrganizationSourceType: "STRING_VALUE", // required - * // OrganizationalUnits: [ // ResourceDataSyncOrganizationalUnitList - * // { // ResourceDataSyncOrganizationalUnit - * // OrganizationalUnitId: "STRING_VALUE", - * // }, - * // ], - * // }, - * // SourceRegions: [ // ResourceDataSyncSourceRegionList - * // "STRING_VALUE", - * // ], - * // IncludeFutureRegions: true || false, - * // State: "STRING_VALUE", - * // EnableAllOpsDataSources: true || false, - * // }, - * // S3Destination: { // ResourceDataSyncS3Destination - * // BucketName: "STRING_VALUE", // required - * // Prefix: "STRING_VALUE", - * // SyncFormat: "JsonSerDe", // required - * // Region: "STRING_VALUE", // required - * // AWSKMSKeyARN: "STRING_VALUE", - * // DestinationDataSharing: { // ResourceDataSyncDestinationDataSharing - * // DestinationDataSharingType: "STRING_VALUE", - * // }, - * // }, - * // LastSyncTime: new Date("TIMESTAMP"), - * // LastSuccessfulSyncTime: new Date("TIMESTAMP"), - * // SyncLastModifiedTime: new Date("TIMESTAMP"), - * // LastStatus: "Successful" || "Failed" || "InProgress", - * // SyncCreatedTime: new Date("TIMESTAMP"), - * // LastSyncStatusMessage: "STRING_VALUE", - * // }, - * // ], - * // NextToken: "STRING_VALUE", - * // }; - * - * ``` - * - * @param ListResourceDataSyncCommandInput - {@link ListResourceDataSyncCommandInput} - * @returns {@link ListResourceDataSyncCommandOutput} - * @see {@link ListResourceDataSyncCommandInput} for command's `input` shape. - * @see {@link ListResourceDataSyncCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidNextToken} (client fault) - *

The specified token isn't valid.

- * - * @throws {@link ResourceDataSyncInvalidConfigurationException} (client fault) - *

The specified sync configuration is invalid.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class ListResourceDataSyncCommand extends $Command { - readonly input: ListResourceDataSyncCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: ListResourceDataSyncCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListTagsForResourceCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListTagsForResourceCommand.d.ts deleted file mode 100644 index c2c895f2..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/ListTagsForResourceCommand.d.ts +++ /dev/null @@ -1,90 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { ListTagsForResourceRequest, ListTagsForResourceResult } from "../models/models_1"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link ListTagsForResourceCommand}. - */ -export interface ListTagsForResourceCommandInput extends ListTagsForResourceRequest { -} -/** - * @public - * - * The output of {@link ListTagsForResourceCommand}. - */ -export interface ListTagsForResourceCommandOutput extends ListTagsForResourceResult, __MetadataBearer { -} -/** - * @public - *

Returns a list of the tags assigned to the specified resource.

- *

For information about the ID format for each supported resource type, see AddTagsToResource.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, ListTagsForResourceCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, ListTagsForResourceCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // ListTagsForResourceRequest - * ResourceType: "Document" || "ManagedInstance" || "MaintenanceWindow" || "Parameter" || "PatchBaseline" || "OpsItem" || "OpsMetadata" || "Automation" || "Association", // required - * ResourceId: "STRING_VALUE", // required - * }; - * const command = new ListTagsForResourceCommand(input); - * const response = await client.send(command); - * // { // ListTagsForResourceResult - * // TagList: [ // TagList - * // { // Tag - * // Key: "STRING_VALUE", // required - * // Value: "STRING_VALUE", // required - * // }, - * // ], - * // }; - * - * ``` - * - * @param ListTagsForResourceCommandInput - {@link ListTagsForResourceCommandInput} - * @returns {@link ListTagsForResourceCommandOutput} - * @see {@link ListTagsForResourceCommandInput} for command's `input` shape. - * @see {@link ListTagsForResourceCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidResourceId} (client fault) - *

The resource ID isn't valid. Verify that you entered the correct ID and try again.

- * - * @throws {@link InvalidResourceType} (client fault) - *

The resource type isn't valid. For example, if you are attempting to tag an EC2 instance, - * the instance must be a registered managed node.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class ListTagsForResourceCommand extends $Command { - readonly input: ListTagsForResourceCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: ListTagsForResourceCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/ModifyDocumentPermissionCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/ModifyDocumentPermissionCommand.d.ts deleted file mode 100644 index 612d24fa..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/ModifyDocumentPermissionCommand.d.ts +++ /dev/null @@ -1,103 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { ModifyDocumentPermissionRequest, ModifyDocumentPermissionResponse } from "../models/models_1"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link ModifyDocumentPermissionCommand}. - */ -export interface ModifyDocumentPermissionCommandInput extends ModifyDocumentPermissionRequest { -} -/** - * @public - * - * The output of {@link ModifyDocumentPermissionCommand}. - */ -export interface ModifyDocumentPermissionCommandOutput extends ModifyDocumentPermissionResponse, __MetadataBearer { -} -/** - * @public - *

Shares a Amazon Web Services Systems Manager document (SSM document)publicly or privately. If you share a document - * privately, you must specify the Amazon Web Services user IDs for those people who can use the document. If - * you share a document publicly, you must specify All as the account - * ID.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, ModifyDocumentPermissionCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, ModifyDocumentPermissionCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // ModifyDocumentPermissionRequest - * Name: "STRING_VALUE", // required - * PermissionType: "Share", // required - * AccountIdsToAdd: [ // AccountIdList - * "STRING_VALUE", - * ], - * AccountIdsToRemove: [ - * "STRING_VALUE", - * ], - * SharedDocumentVersion: "STRING_VALUE", - * }; - * const command = new ModifyDocumentPermissionCommand(input); - * const response = await client.send(command); - * // {}; - * - * ``` - * - * @param ModifyDocumentPermissionCommandInput - {@link ModifyDocumentPermissionCommandInput} - * @returns {@link ModifyDocumentPermissionCommandOutput} - * @see {@link ModifyDocumentPermissionCommandInput} for command's `input` shape. - * @see {@link ModifyDocumentPermissionCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link DocumentLimitExceeded} (client fault) - *

You can have at most 500 active SSM documents.

- * - * @throws {@link DocumentPermissionLimit} (client fault) - *

The document can't be shared with more Amazon Web Services accounts. You can specify a maximum of 20 - * accounts per API operation to share a private document.

- *

By default, you can share a private document with a maximum of 1,000 accounts and publicly - * share up to five documents.

- *

If you need to increase the quota for privately or publicly shared Systems Manager documents, contact - * Amazon Web Services Support.

- * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidDocument} (client fault) - *

The specified SSM document doesn't exist.

- * - * @throws {@link InvalidPermissionType} (client fault) - *

The permission type isn't supported. Share is the only supported - * permission type.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class ModifyDocumentPermissionCommand extends $Command { - readonly input: ModifyDocumentPermissionCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: ModifyDocumentPermissionCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/PutComplianceItemsCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/PutComplianceItemsCommand.d.ts deleted file mode 100644 index e1dd2d79..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/PutComplianceItemsCommand.d.ts +++ /dev/null @@ -1,169 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { PutComplianceItemsRequest, PutComplianceItemsResult } from "../models/models_1"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link PutComplianceItemsCommand}. - */ -export interface PutComplianceItemsCommandInput extends PutComplianceItemsRequest { -} -/** - * @public - * - * The output of {@link PutComplianceItemsCommand}. - */ -export interface PutComplianceItemsCommandOutput extends PutComplianceItemsResult, __MetadataBearer { -} -/** - * @public - *

Registers a compliance type and other compliance details on a designated resource. This - * operation lets you register custom compliance details with a resource. This call overwrites - * existing compliance information on the resource, so you must provide a full list of compliance - * items each time that you send the request.

- *

ComplianceType can be one of the following:

- *
    - *
  • - *

    ExecutionId: The execution ID when the patch, association, or custom compliance item was - * applied.

    - *
  • - *
  • - *

    ExecutionType: Specify patch, association, or Custom:string.

    - *
  • - *
  • - *

    ExecutionTime. The time the patch, association, or custom compliance item was applied to - * the managed node.

    - *
  • - *
  • - *

    Id: The patch, association, or custom compliance ID.

    - *
  • - *
  • - *

    Title: A title.

    - *
  • - *
  • - *

    Status: The status of the compliance item. For example, approved for patches, - * or Failed for associations.

    - *
  • - *
  • - *

    Severity: A patch severity. For example, Critical.

    - *
  • - *
  • - *

    DocumentName: An SSM document name. For example, AWS-RunPatchBaseline.

    - *
  • - *
  • - *

    DocumentVersion: An SSM document version number. For example, 4.

    - *
  • - *
  • - *

    Classification: A patch classification. For example, security updates.

    - *
  • - *
  • - *

    PatchBaselineId: A patch baseline ID.

    - *
  • - *
  • - *

    PatchSeverity: A patch severity. For example, Critical.

    - *
  • - *
  • - *

    PatchState: A patch state. For example, InstancesWithFailedPatches.

    - *
  • - *
  • - *

    PatchGroup: The name of a patch group.

    - *
  • - *
  • - *

    InstalledTime: The time the association, patch, or custom compliance item was applied to - * the resource. Specify the time by using the following format: yyyy-MM-dd'T'HH:mm:ss'Z'

    - *
  • - *
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, PutComplianceItemsCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, PutComplianceItemsCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // PutComplianceItemsRequest - * ResourceId: "STRING_VALUE", // required - * ResourceType: "STRING_VALUE", // required - * ComplianceType: "STRING_VALUE", // required - * ExecutionSummary: { // ComplianceExecutionSummary - * ExecutionTime: new Date("TIMESTAMP"), // required - * ExecutionId: "STRING_VALUE", - * ExecutionType: "STRING_VALUE", - * }, - * Items: [ // ComplianceItemEntryList // required - * { // ComplianceItemEntry - * Id: "STRING_VALUE", - * Title: "STRING_VALUE", - * Severity: "CRITICAL" || "HIGH" || "MEDIUM" || "LOW" || "INFORMATIONAL" || "UNSPECIFIED", // required - * Status: "COMPLIANT" || "NON_COMPLIANT", // required - * Details: { // ComplianceItemDetails - * "": "STRING_VALUE", - * }, - * }, - * ], - * ItemContentHash: "STRING_VALUE", - * UploadType: "COMPLETE" || "PARTIAL", - * }; - * const command = new PutComplianceItemsCommand(input); - * const response = await client.send(command); - * // {}; - * - * ``` - * - * @param PutComplianceItemsCommandInput - {@link PutComplianceItemsCommandInput} - * @returns {@link PutComplianceItemsCommandOutput} - * @see {@link PutComplianceItemsCommandInput} for command's `input` shape. - * @see {@link PutComplianceItemsCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link ComplianceTypeCountLimitExceededException} (client fault) - *

You specified too many custom compliance types. You can specify a maximum of 10 different - * types.

- * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidItemContentException} (client fault) - *

One or more content items isn't valid.

- * - * @throws {@link InvalidResourceId} (client fault) - *

The resource ID isn't valid. Verify that you entered the correct ID and try again.

- * - * @throws {@link InvalidResourceType} (client fault) - *

The resource type isn't valid. For example, if you are attempting to tag an EC2 instance, - * the instance must be a registered managed node.

- * - * @throws {@link ItemSizeLimitExceededException} (client fault) - *

The inventory item size has exceeded the size limit.

- * - * @throws {@link TotalSizeLimitExceededException} (client fault) - *

The size of inventory data has exceeded the total size limit for the resource.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class PutComplianceItemsCommand extends $Command { - readonly input: PutComplianceItemsCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: PutComplianceItemsCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/PutInventoryCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/PutInventoryCommand.d.ts deleted file mode 100644 index 0658e616..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/PutInventoryCommand.d.ts +++ /dev/null @@ -1,149 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { PutInventoryRequest, PutInventoryResult } from "../models/models_1"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link PutInventoryCommand}. - */ -export interface PutInventoryCommandInput extends PutInventoryRequest { -} -/** - * @public - * - * The output of {@link PutInventoryCommand}. - */ -export interface PutInventoryCommandOutput extends PutInventoryResult, __MetadataBearer { -} -/** - * @public - *

Bulk update custom inventory items on one or more managed nodes. The request adds an - * inventory item, if it doesn't already exist, or updates an inventory item, if it does - * exist.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, PutInventoryCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, PutInventoryCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // PutInventoryRequest - * InstanceId: "STRING_VALUE", // required - * Items: [ // InventoryItemList // required - * { // InventoryItem - * TypeName: "STRING_VALUE", // required - * SchemaVersion: "STRING_VALUE", // required - * CaptureTime: "STRING_VALUE", // required - * ContentHash: "STRING_VALUE", - * Content: [ // InventoryItemEntryList - * { // InventoryItemEntry - * "": "STRING_VALUE", - * }, - * ], - * Context: { // InventoryItemContentContext - * "": "STRING_VALUE", - * }, - * }, - * ], - * }; - * const command = new PutInventoryCommand(input); - * const response = await client.send(command); - * // { // PutInventoryResult - * // Message: "STRING_VALUE", - * // }; - * - * ``` - * - * @param PutInventoryCommandInput - {@link PutInventoryCommandInput} - * @returns {@link PutInventoryCommandOutput} - * @see {@link PutInventoryCommandInput} for command's `input` shape. - * @see {@link PutInventoryCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link CustomSchemaCountLimitExceededException} (client fault) - *

You have exceeded the limit for custom schemas. Delete one or more custom schemas and try - * again.

- * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidInstanceId} (client fault) - *

The following problems can cause this exception:

- *
    - *
  • - *

    You don't have permission to access the managed node.

    - *
  • - *
  • - *

    Amazon Web Services Systems Manager Agent(SSM Agent) isn't running. Verify that SSM Agent is - * running.

    - *
  • - *
  • - *

    SSM Agent isn't registered with the SSM endpoint. Try reinstalling SSM Agent.

    - *
  • - *
  • - *

    The managed node isn't in valid state. Valid states are: Running, - * Pending, Stopped, and Stopping. Invalid states are: - * Shutting-down and Terminated.

    - *
  • - *
- * - * @throws {@link InvalidInventoryItemContextException} (client fault) - *

You specified invalid keys or values in the Context attribute for - * InventoryItem. Verify the keys and values, and try again.

- * - * @throws {@link InvalidItemContentException} (client fault) - *

One or more content items isn't valid.

- * - * @throws {@link InvalidTypeNameException} (client fault) - *

The parameter type name isn't valid.

- * - * @throws {@link ItemContentMismatchException} (client fault) - *

The inventory item has invalid content.

- * - * @throws {@link ItemSizeLimitExceededException} (client fault) - *

The inventory item size has exceeded the size limit.

- * - * @throws {@link SubTypeCountLimitExceededException} (client fault) - *

The sub-type count exceeded the limit for the inventory type.

- * - * @throws {@link TotalSizeLimitExceededException} (client fault) - *

The size of inventory data has exceeded the total size limit for the resource.

- * - * @throws {@link UnsupportedInventoryItemContextException} (client fault) - *

The Context attribute that you specified for the InventoryItem - * isn't allowed for this inventory type. You can only use the Context attribute with - * inventory types like AWS:ComplianceItem.

- * - * @throws {@link UnsupportedInventorySchemaVersionException} (client fault) - *

Inventory item type schema version has to match supported versions in the service. Check - * output of GetInventorySchema to see the available schema version for each type.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class PutInventoryCommand extends $Command { - readonly input: PutInventoryCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: PutInventoryCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/PutParameterCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/PutParameterCommand.d.ts deleted file mode 100644 index 0c45f914..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/PutParameterCommand.d.ts +++ /dev/null @@ -1,156 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { PutParameterRequest, PutParameterResult } from "../models/models_1"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link PutParameterCommand}. - */ -export interface PutParameterCommandInput extends PutParameterRequest { -} -/** - * @public - * - * The output of {@link PutParameterCommand}. - */ -export interface PutParameterCommandOutput extends PutParameterResult, __MetadataBearer { -} -/** - * @public - *

Add a parameter to the system.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, PutParameterCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, PutParameterCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // PutParameterRequest - * Name: "STRING_VALUE", // required - * Description: "STRING_VALUE", - * Value: "STRING_VALUE", // required - * Type: "String" || "StringList" || "SecureString", - * KeyId: "STRING_VALUE", - * Overwrite: true || false, - * AllowedPattern: "STRING_VALUE", - * Tags: [ // TagList - * { // Tag - * Key: "STRING_VALUE", // required - * Value: "STRING_VALUE", // required - * }, - * ], - * Tier: "Standard" || "Advanced" || "Intelligent-Tiering", - * Policies: "STRING_VALUE", - * DataType: "STRING_VALUE", - * }; - * const command = new PutParameterCommand(input); - * const response = await client.send(command); - * // { // PutParameterResult - * // Version: Number("long"), - * // Tier: "Standard" || "Advanced" || "Intelligent-Tiering", - * // }; - * - * ``` - * - * @param PutParameterCommandInput - {@link PutParameterCommandInput} - * @returns {@link PutParameterCommandOutput} - * @see {@link PutParameterCommandInput} for command's `input` shape. - * @see {@link PutParameterCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link HierarchyLevelLimitExceededException} (client fault) - *

A hierarchy can have a maximum of 15 levels. For more information, see Requirements and - * constraints for parameter names in the Amazon Web Services Systems Manager User Guide.

- * - * @throws {@link HierarchyTypeMismatchException} (client fault) - *

Parameter Store doesn't support changing a parameter type in a hierarchy. For example, you - * can't change a parameter from a String type to a SecureString type. You - * must create a new, unique parameter.

- * - * @throws {@link IncompatiblePolicyException} (client fault) - *

There is a conflict in the policies specified for this parameter. You can't, for example, - * specify two Expiration policies for a parameter. Review your policies, and try again.

- * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidAllowedPatternException} (client fault) - *

The request doesn't meet the regular expression requirement.

- * - * @throws {@link InvalidKeyId} (client fault) - *

The query key ID isn't valid.

- * - * @throws {@link InvalidPolicyAttributeException} (client fault) - *

A policy attribute or its value is invalid.

- * - * @throws {@link InvalidPolicyTypeException} (client fault) - *

The policy type isn't supported. Parameter Store supports the following policy types: - * Expiration, ExpirationNotification, and NoChangeNotification.

- * - * @throws {@link ParameterAlreadyExists} (client fault) - *

The parameter already exists. You can't create duplicate parameters.

- * - * @throws {@link ParameterLimitExceeded} (client fault) - *

You have exceeded the number of parameters for this Amazon Web Services account. Delete one or more - * parameters and try again.

- * - * @throws {@link ParameterMaxVersionLimitExceeded} (client fault) - *

Parameter Store retains the 100 most recently created versions of a parameter. After this - * number of versions has been created, Parameter Store deletes the oldest version when a new one is - * created. However, if the oldest version has a label attached to it, - * Parameter Store won't delete the version and instead presents this error message:

- *

- * An error occurred (ParameterMaxVersionLimitExceeded) when calling the PutParameter - * operation: You attempted to create a new version of parameter-name by - * calling the PutParameter API with the overwrite flag. Version - * version-number, the oldest version, can't be deleted because it has a - * label associated with it. Move the label to another version of the parameter, and try - * again. - *

- *

This safeguard is to prevent parameter versions with mission critical labels assigned to - * them from being deleted. To continue creating new parameters, first move the label from the - * oldest version of the parameter to a newer one for use in your operations. For information about - * moving parameter labels, see Move a parameter label (console) or Move a parameter label (CLI) in the Amazon Web Services Systems Manager User Guide.

- * - * @throws {@link ParameterPatternMismatchException} (client fault) - *

The parameter name isn't valid.

- * - * @throws {@link PoliciesLimitExceededException} (client fault) - *

You specified more than the maximum number of allowed policies for the parameter. The - * maximum is 10.

- * - * @throws {@link TooManyUpdates} (client fault) - *

There are concurrent updates for a resource that supports one update at a time.

- * - * @throws {@link UnsupportedParameterType} (client fault) - *

The parameter type isn't supported.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class PutParameterCommand extends $Command { - readonly input: PutParameterCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: PutParameterCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/PutResourcePolicyCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/PutResourcePolicyCommand.d.ts deleted file mode 100644 index 4af5d1a5..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/PutResourcePolicyCommand.d.ts +++ /dev/null @@ -1,98 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { PutResourcePolicyRequest, PutResourcePolicyResponse } from "../models/models_1"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link PutResourcePolicyCommand}. - */ -export interface PutResourcePolicyCommandInput extends PutResourcePolicyRequest { -} -/** - * @public - * - * The output of {@link PutResourcePolicyCommand}. - */ -export interface PutResourcePolicyCommandOutput extends PutResourcePolicyResponse, __MetadataBearer { -} -/** - * @public - *

Creates or updates a Systems Manager resource policy. A resource policy helps you to define the - * IAM entity (for example, an Amazon Web Services account) that can manage your Systems Manager resources. - * Currently, OpsItemGroup is the only resource that supports Systems Manager resource policies. - * The resource policy for OpsItemGroup enables Amazon Web Services accounts to view and interact - * with OpsCenter operational work items (OpsItems).

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, PutResourcePolicyCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, PutResourcePolicyCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // PutResourcePolicyRequest - * ResourceArn: "STRING_VALUE", // required - * Policy: "STRING_VALUE", // required - * PolicyId: "STRING_VALUE", - * PolicyHash: "STRING_VALUE", - * }; - * const command = new PutResourcePolicyCommand(input); - * const response = await client.send(command); - * // { // PutResourcePolicyResponse - * // PolicyId: "STRING_VALUE", - * // PolicyHash: "STRING_VALUE", - * // }; - * - * ``` - * - * @param PutResourcePolicyCommandInput - {@link PutResourcePolicyCommandInput} - * @returns {@link PutResourcePolicyCommandOutput} - * @see {@link PutResourcePolicyCommandInput} for command's `input` shape. - * @see {@link PutResourcePolicyCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link ResourcePolicyConflictException} (client fault) - *

The hash provided in the call doesn't match the stored hash. This exception is thrown when - * trying to update an obsolete policy version or when multiple requests to update a policy are - * sent.

- * - * @throws {@link ResourcePolicyInvalidParameterException} (client fault) - *

One or more parameters specified for the call aren't valid. Verify the parameters and their - * values and try again.

- * - * @throws {@link ResourcePolicyLimitExceededException} (client fault) - *

The PutResourcePolicy API action enforces two limits. A policy can't be - * greater than 1024 bytes in size. And only one policy can be attached to - * OpsItemGroup. Verify these limits and try again.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class PutResourcePolicyCommand extends $Command { - readonly input: PutResourcePolicyCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: PutResourcePolicyCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/RegisterDefaultPatchBaselineCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/RegisterDefaultPatchBaselineCommand.d.ts deleted file mode 100644 index de95b4c0..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/RegisterDefaultPatchBaselineCommand.d.ts +++ /dev/null @@ -1,89 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { RegisterDefaultPatchBaselineRequest, RegisterDefaultPatchBaselineResult } from "../models/models_1"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link RegisterDefaultPatchBaselineCommand}. - */ -export interface RegisterDefaultPatchBaselineCommandInput extends RegisterDefaultPatchBaselineRequest { -} -/** - * @public - * - * The output of {@link RegisterDefaultPatchBaselineCommand}. - */ -export interface RegisterDefaultPatchBaselineCommandOutput extends RegisterDefaultPatchBaselineResult, __MetadataBearer { -} -/** - * @public - *

Defines the default patch baseline for the relevant operating system.

- *

To reset the Amazon Web Services-predefined patch baseline as the default, specify the full patch baseline - * Amazon Resource Name (ARN) as the baseline ID value. For example, for CentOS, specify - * arn:aws:ssm:us-east-2:733109147000:patchbaseline/pb-0574b43a65ea646ed instead of - * pb-0574b43a65ea646ed.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, RegisterDefaultPatchBaselineCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, RegisterDefaultPatchBaselineCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // RegisterDefaultPatchBaselineRequest - * BaselineId: "STRING_VALUE", // required - * }; - * const command = new RegisterDefaultPatchBaselineCommand(input); - * const response = await client.send(command); - * // { // RegisterDefaultPatchBaselineResult - * // BaselineId: "STRING_VALUE", - * // }; - * - * ``` - * - * @param RegisterDefaultPatchBaselineCommandInput - {@link RegisterDefaultPatchBaselineCommandInput} - * @returns {@link RegisterDefaultPatchBaselineCommandOutput} - * @see {@link RegisterDefaultPatchBaselineCommandInput} for command's `input` shape. - * @see {@link RegisterDefaultPatchBaselineCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link DoesNotExistException} (client fault) - *

Error returned when the ID specified for a resource, such as a maintenance window or patch - * baseline, doesn't exist.

- *

For information about resource quotas in Amazon Web Services Systems Manager, see Systems Manager service quotas in the - * Amazon Web Services General Reference.

- * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidResourceId} (client fault) - *

The resource ID isn't valid. Verify that you entered the correct ID and try again.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class RegisterDefaultPatchBaselineCommand extends $Command { - readonly input: RegisterDefaultPatchBaselineCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: RegisterDefaultPatchBaselineCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/RegisterPatchBaselineForPatchGroupCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/RegisterPatchBaselineForPatchGroupCommand.d.ts deleted file mode 100644 index bd751c75..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/RegisterPatchBaselineForPatchGroupCommand.d.ts +++ /dev/null @@ -1,97 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { RegisterPatchBaselineForPatchGroupRequest, RegisterPatchBaselineForPatchGroupResult } from "../models/models_1"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link RegisterPatchBaselineForPatchGroupCommand}. - */ -export interface RegisterPatchBaselineForPatchGroupCommandInput extends RegisterPatchBaselineForPatchGroupRequest { -} -/** - * @public - * - * The output of {@link RegisterPatchBaselineForPatchGroupCommand}. - */ -export interface RegisterPatchBaselineForPatchGroupCommandOutput extends RegisterPatchBaselineForPatchGroupResult, __MetadataBearer { -} -/** - * @public - *

Registers a patch baseline for a patch group.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, RegisterPatchBaselineForPatchGroupCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, RegisterPatchBaselineForPatchGroupCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // RegisterPatchBaselineForPatchGroupRequest - * BaselineId: "STRING_VALUE", // required - * PatchGroup: "STRING_VALUE", // required - * }; - * const command = new RegisterPatchBaselineForPatchGroupCommand(input); - * const response = await client.send(command); - * // { // RegisterPatchBaselineForPatchGroupResult - * // BaselineId: "STRING_VALUE", - * // PatchGroup: "STRING_VALUE", - * // }; - * - * ``` - * - * @param RegisterPatchBaselineForPatchGroupCommandInput - {@link RegisterPatchBaselineForPatchGroupCommandInput} - * @returns {@link RegisterPatchBaselineForPatchGroupCommandOutput} - * @see {@link RegisterPatchBaselineForPatchGroupCommandInput} for command's `input` shape. - * @see {@link RegisterPatchBaselineForPatchGroupCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link AlreadyExistsException} (client fault) - *

Error returned if an attempt is made to register a patch group with a patch baseline that is - * already registered with a different patch baseline.

- * - * @throws {@link DoesNotExistException} (client fault) - *

Error returned when the ID specified for a resource, such as a maintenance window or patch - * baseline, doesn't exist.

- *

For information about resource quotas in Amazon Web Services Systems Manager, see Systems Manager service quotas in the - * Amazon Web Services General Reference.

- * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidResourceId} (client fault) - *

The resource ID isn't valid. Verify that you entered the correct ID and try again.

- * - * @throws {@link ResourceLimitExceededException} (client fault) - *

Error returned when the caller has exceeded the default resource quotas. For example, too - * many maintenance windows or patch baselines have been created.

- *

For information about resource quotas in Systems Manager, see Systems Manager service quotas in the - * Amazon Web Services General Reference.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class RegisterPatchBaselineForPatchGroupCommand extends $Command { - readonly input: RegisterPatchBaselineForPatchGroupCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: RegisterPatchBaselineForPatchGroupCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/RegisterTargetWithMaintenanceWindowCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/RegisterTargetWithMaintenanceWindowCommand.d.ts deleted file mode 100644 index b8357f89..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/RegisterTargetWithMaintenanceWindowCommand.d.ts +++ /dev/null @@ -1,105 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { RegisterTargetWithMaintenanceWindowRequest, RegisterTargetWithMaintenanceWindowResult } from "../models/models_1"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link RegisterTargetWithMaintenanceWindowCommand}. - */ -export interface RegisterTargetWithMaintenanceWindowCommandInput extends RegisterTargetWithMaintenanceWindowRequest { -} -/** - * @public - * - * The output of {@link RegisterTargetWithMaintenanceWindowCommand}. - */ -export interface RegisterTargetWithMaintenanceWindowCommandOutput extends RegisterTargetWithMaintenanceWindowResult, __MetadataBearer { -} -/** - * @public - *

Registers a target with a maintenance window.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, RegisterTargetWithMaintenanceWindowCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, RegisterTargetWithMaintenanceWindowCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // RegisterTargetWithMaintenanceWindowRequest - * WindowId: "STRING_VALUE", // required - * ResourceType: "INSTANCE" || "RESOURCE_GROUP", // required - * Targets: [ // Targets // required - * { // Target - * Key: "STRING_VALUE", - * Values: [ // TargetValues - * "STRING_VALUE", - * ], - * }, - * ], - * OwnerInformation: "STRING_VALUE", - * Name: "STRING_VALUE", - * Description: "STRING_VALUE", - * ClientToken: "STRING_VALUE", - * }; - * const command = new RegisterTargetWithMaintenanceWindowCommand(input); - * const response = await client.send(command); - * // { // RegisterTargetWithMaintenanceWindowResult - * // WindowTargetId: "STRING_VALUE", - * // }; - * - * ``` - * - * @param RegisterTargetWithMaintenanceWindowCommandInput - {@link RegisterTargetWithMaintenanceWindowCommandInput} - * @returns {@link RegisterTargetWithMaintenanceWindowCommandOutput} - * @see {@link RegisterTargetWithMaintenanceWindowCommandInput} for command's `input` shape. - * @see {@link RegisterTargetWithMaintenanceWindowCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link DoesNotExistException} (client fault) - *

Error returned when the ID specified for a resource, such as a maintenance window or patch - * baseline, doesn't exist.

- *

For information about resource quotas in Amazon Web Services Systems Manager, see Systems Manager service quotas in the - * Amazon Web Services General Reference.

- * - * @throws {@link IdempotentParameterMismatch} (client fault) - *

Error returned when an idempotent operation is retried and the parameters don't match the - * original call to the API with the same idempotency token.

- * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link ResourceLimitExceededException} (client fault) - *

Error returned when the caller has exceeded the default resource quotas. For example, too - * many maintenance windows or patch baselines have been created.

- *

For information about resource quotas in Systems Manager, see Systems Manager service quotas in the - * Amazon Web Services General Reference.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class RegisterTargetWithMaintenanceWindowCommand extends $Command { - readonly input: RegisterTargetWithMaintenanceWindowCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: RegisterTargetWithMaintenanceWindowCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/RegisterTaskWithMaintenanceWindowCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/RegisterTaskWithMaintenanceWindowCommand.d.ts deleted file mode 100644 index d353d071..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/RegisterTaskWithMaintenanceWindowCommand.d.ts +++ /dev/null @@ -1,179 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { RegisterTaskWithMaintenanceWindowRequest, RegisterTaskWithMaintenanceWindowResult } from "../models/models_1"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link RegisterTaskWithMaintenanceWindowCommand}. - */ -export interface RegisterTaskWithMaintenanceWindowCommandInput extends RegisterTaskWithMaintenanceWindowRequest { -} -/** - * @public - * - * The output of {@link RegisterTaskWithMaintenanceWindowCommand}. - */ -export interface RegisterTaskWithMaintenanceWindowCommandOutput extends RegisterTaskWithMaintenanceWindowResult, __MetadataBearer { -} -/** - * @public - *

Adds a new task to a maintenance window.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, RegisterTaskWithMaintenanceWindowCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, RegisterTaskWithMaintenanceWindowCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // RegisterTaskWithMaintenanceWindowRequest - * WindowId: "STRING_VALUE", // required - * Targets: [ // Targets - * { // Target - * Key: "STRING_VALUE", - * Values: [ // TargetValues - * "STRING_VALUE", - * ], - * }, - * ], - * TaskArn: "STRING_VALUE", // required - * ServiceRoleArn: "STRING_VALUE", - * TaskType: "RUN_COMMAND" || "AUTOMATION" || "STEP_FUNCTIONS" || "LAMBDA", // required - * TaskParameters: { // MaintenanceWindowTaskParameters - * "": { // MaintenanceWindowTaskParameterValueExpression - * Values: [ // MaintenanceWindowTaskParameterValueList - * "STRING_VALUE", - * ], - * }, - * }, - * TaskInvocationParameters: { // MaintenanceWindowTaskInvocationParameters - * RunCommand: { // MaintenanceWindowRunCommandParameters - * Comment: "STRING_VALUE", - * CloudWatchOutputConfig: { // CloudWatchOutputConfig - * CloudWatchLogGroupName: "STRING_VALUE", - * CloudWatchOutputEnabled: true || false, - * }, - * DocumentHash: "STRING_VALUE", - * DocumentHashType: "Sha256" || "Sha1", - * DocumentVersion: "STRING_VALUE", - * NotificationConfig: { // NotificationConfig - * NotificationArn: "STRING_VALUE", - * NotificationEvents: [ // NotificationEventList - * "All" || "InProgress" || "Success" || "TimedOut" || "Cancelled" || "Failed", - * ], - * NotificationType: "Command" || "Invocation", - * }, - * OutputS3BucketName: "STRING_VALUE", - * OutputS3KeyPrefix: "STRING_VALUE", - * Parameters: { // Parameters - * "": [ // ParameterValueList - * "STRING_VALUE", - * ], - * }, - * ServiceRoleArn: "STRING_VALUE", - * TimeoutSeconds: Number("int"), - * }, - * Automation: { // MaintenanceWindowAutomationParameters - * DocumentVersion: "STRING_VALUE", - * Parameters: { // AutomationParameterMap - * "": [ // AutomationParameterValueList - * "STRING_VALUE", - * ], - * }, - * }, - * StepFunctions: { // MaintenanceWindowStepFunctionsParameters - * Input: "STRING_VALUE", - * Name: "STRING_VALUE", - * }, - * Lambda: { // MaintenanceWindowLambdaParameters - * ClientContext: "STRING_VALUE", - * Qualifier: "STRING_VALUE", - * Payload: "BLOB_VALUE", - * }, - * }, - * Priority: Number("int"), - * MaxConcurrency: "STRING_VALUE", - * MaxErrors: "STRING_VALUE", - * LoggingInfo: { // LoggingInfo - * S3BucketName: "STRING_VALUE", // required - * S3KeyPrefix: "STRING_VALUE", - * S3Region: "STRING_VALUE", // required - * }, - * Name: "STRING_VALUE", - * Description: "STRING_VALUE", - * ClientToken: "STRING_VALUE", - * CutoffBehavior: "CONTINUE_TASK" || "CANCEL_TASK", - * AlarmConfiguration: { // AlarmConfiguration - * IgnorePollAlarmFailure: true || false, - * Alarms: [ // AlarmList // required - * { // Alarm - * Name: "STRING_VALUE", // required - * }, - * ], - * }, - * }; - * const command = new RegisterTaskWithMaintenanceWindowCommand(input); - * const response = await client.send(command); - * // { // RegisterTaskWithMaintenanceWindowResult - * // WindowTaskId: "STRING_VALUE", - * // }; - * - * ``` - * - * @param RegisterTaskWithMaintenanceWindowCommandInput - {@link RegisterTaskWithMaintenanceWindowCommandInput} - * @returns {@link RegisterTaskWithMaintenanceWindowCommandOutput} - * @see {@link RegisterTaskWithMaintenanceWindowCommandInput} for command's `input` shape. - * @see {@link RegisterTaskWithMaintenanceWindowCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link DoesNotExistException} (client fault) - *

Error returned when the ID specified for a resource, such as a maintenance window or patch - * baseline, doesn't exist.

- *

For information about resource quotas in Amazon Web Services Systems Manager, see Systems Manager service quotas in the - * Amazon Web Services General Reference.

- * - * @throws {@link FeatureNotAvailableException} (client fault) - *

You attempted to register a LAMBDA or STEP_FUNCTIONS task in a - * region where the corresponding service isn't available.

- * - * @throws {@link IdempotentParameterMismatch} (client fault) - *

Error returned when an idempotent operation is retried and the parameters don't match the - * original call to the API with the same idempotency token.

- * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link ResourceLimitExceededException} (client fault) - *

Error returned when the caller has exceeded the default resource quotas. For example, too - * many maintenance windows or patch baselines have been created.

- *

For information about resource quotas in Systems Manager, see Systems Manager service quotas in the - * Amazon Web Services General Reference.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class RegisterTaskWithMaintenanceWindowCommand extends $Command { - readonly input: RegisterTaskWithMaintenanceWindowCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: RegisterTaskWithMaintenanceWindowCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/RemoveTagsFromResourceCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/RemoveTagsFromResourceCommand.d.ts deleted file mode 100644 index 60d536ea..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/RemoveTagsFromResourceCommand.d.ts +++ /dev/null @@ -1,88 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { RemoveTagsFromResourceRequest, RemoveTagsFromResourceResult } from "../models/models_1"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link RemoveTagsFromResourceCommand}. - */ -export interface RemoveTagsFromResourceCommandInput extends RemoveTagsFromResourceRequest { -} -/** - * @public - * - * The output of {@link RemoveTagsFromResourceCommand}. - */ -export interface RemoveTagsFromResourceCommandOutput extends RemoveTagsFromResourceResult, __MetadataBearer { -} -/** - * @public - *

Removes tag keys from the specified resource.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, RemoveTagsFromResourceCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, RemoveTagsFromResourceCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // RemoveTagsFromResourceRequest - * ResourceType: "Document" || "ManagedInstance" || "MaintenanceWindow" || "Parameter" || "PatchBaseline" || "OpsItem" || "OpsMetadata" || "Automation" || "Association", // required - * ResourceId: "STRING_VALUE", // required - * TagKeys: [ // KeyList // required - * "STRING_VALUE", - * ], - * }; - * const command = new RemoveTagsFromResourceCommand(input); - * const response = await client.send(command); - * // {}; - * - * ``` - * - * @param RemoveTagsFromResourceCommandInput - {@link RemoveTagsFromResourceCommandInput} - * @returns {@link RemoveTagsFromResourceCommandOutput} - * @see {@link RemoveTagsFromResourceCommandInput} for command's `input` shape. - * @see {@link RemoveTagsFromResourceCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidResourceId} (client fault) - *

The resource ID isn't valid. Verify that you entered the correct ID and try again.

- * - * @throws {@link InvalidResourceType} (client fault) - *

The resource type isn't valid. For example, if you are attempting to tag an EC2 instance, - * the instance must be a registered managed node.

- * - * @throws {@link TooManyUpdates} (client fault) - *

There are concurrent updates for a resource that supports one update at a time.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class RemoveTagsFromResourceCommand extends $Command { - readonly input: RemoveTagsFromResourceCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: RemoveTagsFromResourceCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/ResetServiceSettingCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/ResetServiceSettingCommand.d.ts deleted file mode 100644 index 53460693..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/ResetServiceSettingCommand.d.ts +++ /dev/null @@ -1,104 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { ResetServiceSettingRequest, ResetServiceSettingResult } from "../models/models_1"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link ResetServiceSettingCommand}. - */ -export interface ResetServiceSettingCommandInput extends ResetServiceSettingRequest { -} -/** - * @public - * - * The output of {@link ResetServiceSettingCommand}. - */ -export interface ResetServiceSettingCommandOutput extends ResetServiceSettingResult, __MetadataBearer { -} -/** - * @public - *

- * ServiceSetting is an account-level setting for an Amazon Web Services service. This setting - * defines how a user interacts with or uses a service or a feature of a service. For example, if an - * Amazon Web Services service charges money to the account based on feature or service usage, then the Amazon Web Services - * service team might create a default setting of "false". This means the user can't use this - * feature unless they change the setting to "true" and intentionally opt in for a paid - * feature.

- *

Services map a SettingId object to a setting value. Amazon Web Services services teams define - * the default value for a SettingId. You can't create a new SettingId, - * but you can overwrite the default value if you have the ssm:UpdateServiceSetting - * permission for the setting. Use the GetServiceSetting API operation to view the - * current value. Use the UpdateServiceSetting API operation to change the default - * setting.

- *

Reset the service setting for the account to the default value as provisioned by the Amazon Web Services - * service team.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, ResetServiceSettingCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, ResetServiceSettingCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // ResetServiceSettingRequest - * SettingId: "STRING_VALUE", // required - * }; - * const command = new ResetServiceSettingCommand(input); - * const response = await client.send(command); - * // { // ResetServiceSettingResult - * // ServiceSetting: { // ServiceSetting - * // SettingId: "STRING_VALUE", - * // SettingValue: "STRING_VALUE", - * // LastModifiedDate: new Date("TIMESTAMP"), - * // LastModifiedUser: "STRING_VALUE", - * // ARN: "STRING_VALUE", - * // Status: "STRING_VALUE", - * // }, - * // }; - * - * ``` - * - * @param ResetServiceSettingCommandInput - {@link ResetServiceSettingCommandInput} - * @returns {@link ResetServiceSettingCommandOutput} - * @see {@link ResetServiceSettingCommandInput} for command's `input` shape. - * @see {@link ResetServiceSettingCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link ServiceSettingNotFound} (client fault) - *

The specified service setting wasn't found. Either the service name or the setting hasn't - * been provisioned by the Amazon Web Services service team.

- * - * @throws {@link TooManyUpdates} (client fault) - *

There are concurrent updates for a resource that supports one update at a time.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class ResetServiceSettingCommand extends $Command { - readonly input: ResetServiceSettingCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: ResetServiceSettingCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/ResumeSessionCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/ResumeSessionCommand.d.ts deleted file mode 100644 index aea1309b..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/ResumeSessionCommand.d.ts +++ /dev/null @@ -1,89 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { ResumeSessionRequest, ResumeSessionResponse } from "../models/models_1"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link ResumeSessionCommand}. - */ -export interface ResumeSessionCommandInput extends ResumeSessionRequest { -} -/** - * @public - * - * The output of {@link ResumeSessionCommand}. - */ -export interface ResumeSessionCommandOutput extends ResumeSessionResponse, __MetadataBearer { -} -/** - * @public - *

Reconnects a session to a managed node after it has been disconnected. Connections can be - * resumed for disconnected sessions, but not terminated sessions.

- * - *

This command is primarily for use by client machines to automatically reconnect during - * intermittent network issues. It isn't intended for any other use.

- *
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, ResumeSessionCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, ResumeSessionCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // ResumeSessionRequest - * SessionId: "STRING_VALUE", // required - * }; - * const command = new ResumeSessionCommand(input); - * const response = await client.send(command); - * // { // ResumeSessionResponse - * // SessionId: "STRING_VALUE", - * // TokenValue: "STRING_VALUE", - * // StreamUrl: "STRING_VALUE", - * // }; - * - * ``` - * - * @param ResumeSessionCommandInput - {@link ResumeSessionCommandInput} - * @returns {@link ResumeSessionCommandOutput} - * @see {@link ResumeSessionCommandInput} for command's `input` shape. - * @see {@link ResumeSessionCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link DoesNotExistException} (client fault) - *

Error returned when the ID specified for a resource, such as a maintenance window or patch - * baseline, doesn't exist.

- *

For information about resource quotas in Amazon Web Services Systems Manager, see Systems Manager service quotas in the - * Amazon Web Services General Reference.

- * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class ResumeSessionCommand extends $Command { - readonly input: ResumeSessionCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: ResumeSessionCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/SendAutomationSignalCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/SendAutomationSignalCommand.d.ts deleted file mode 100644 index 83ec99f3..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/SendAutomationSignalCommand.d.ts +++ /dev/null @@ -1,92 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { SendAutomationSignalRequest, SendAutomationSignalResult } from "../models/models_1"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link SendAutomationSignalCommand}. - */ -export interface SendAutomationSignalCommandInput extends SendAutomationSignalRequest { -} -/** - * @public - * - * The output of {@link SendAutomationSignalCommand}. - */ -export interface SendAutomationSignalCommandOutput extends SendAutomationSignalResult, __MetadataBearer { -} -/** - * @public - *

Sends a signal to an Automation execution to change the current behavior or status of the - * execution.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, SendAutomationSignalCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, SendAutomationSignalCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // SendAutomationSignalRequest - * AutomationExecutionId: "STRING_VALUE", // required - * SignalType: "Approve" || "Reject" || "StartStep" || "StopStep" || "Resume", // required - * Payload: { // AutomationParameterMap - * "": [ // AutomationParameterValueList - * "STRING_VALUE", - * ], - * }, - * }; - * const command = new SendAutomationSignalCommand(input); - * const response = await client.send(command); - * // {}; - * - * ``` - * - * @param SendAutomationSignalCommandInput - {@link SendAutomationSignalCommandInput} - * @returns {@link SendAutomationSignalCommandOutput} - * @see {@link SendAutomationSignalCommandInput} for command's `input` shape. - * @see {@link SendAutomationSignalCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link AutomationExecutionNotFoundException} (client fault) - *

There is no automation execution information for the requested automation execution - * ID.

- * - * @throws {@link AutomationStepNotFoundException} (client fault) - *

The specified step name and execution ID don't exist. Verify the information and try - * again.

- * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidAutomationSignalException} (client fault) - *

The signal isn't valid for the current Automation execution.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class SendAutomationSignalCommand extends $Command { - readonly input: SendAutomationSignalCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: SendAutomationSignalCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/SendCommandCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/SendCommandCommand.d.ts deleted file mode 100644 index 9427642c..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/SendCommandCommand.d.ts +++ /dev/null @@ -1,235 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { SendCommandRequest, SendCommandResult } from "../models/models_1"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link SendCommandCommand}. - */ -export interface SendCommandCommandInput extends SendCommandRequest { -} -/** - * @public - * - * The output of {@link SendCommandCommand}. - */ -export interface SendCommandCommandOutput extends SendCommandResult, __MetadataBearer { -} -/** - * @public - *

Runs commands on one or more managed nodes.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, SendCommandCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, SendCommandCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // SendCommandRequest - * InstanceIds: [ // InstanceIdList - * "STRING_VALUE", - * ], - * Targets: [ // Targets - * { // Target - * Key: "STRING_VALUE", - * Values: [ // TargetValues - * "STRING_VALUE", - * ], - * }, - * ], - * DocumentName: "STRING_VALUE", // required - * DocumentVersion: "STRING_VALUE", - * DocumentHash: "STRING_VALUE", - * DocumentHashType: "Sha256" || "Sha1", - * TimeoutSeconds: Number("int"), - * Comment: "STRING_VALUE", - * Parameters: { // Parameters - * "": [ // ParameterValueList - * "STRING_VALUE", - * ], - * }, - * OutputS3Region: "STRING_VALUE", - * OutputS3BucketName: "STRING_VALUE", - * OutputS3KeyPrefix: "STRING_VALUE", - * MaxConcurrency: "STRING_VALUE", - * MaxErrors: "STRING_VALUE", - * ServiceRoleArn: "STRING_VALUE", - * NotificationConfig: { // NotificationConfig - * NotificationArn: "STRING_VALUE", - * NotificationEvents: [ // NotificationEventList - * "All" || "InProgress" || "Success" || "TimedOut" || "Cancelled" || "Failed", - * ], - * NotificationType: "Command" || "Invocation", - * }, - * CloudWatchOutputConfig: { // CloudWatchOutputConfig - * CloudWatchLogGroupName: "STRING_VALUE", - * CloudWatchOutputEnabled: true || false, - * }, - * AlarmConfiguration: { // AlarmConfiguration - * IgnorePollAlarmFailure: true || false, - * Alarms: [ // AlarmList // required - * { // Alarm - * Name: "STRING_VALUE", // required - * }, - * ], - * }, - * }; - * const command = new SendCommandCommand(input); - * const response = await client.send(command); - * // { // SendCommandResult - * // Command: { // Command - * // CommandId: "STRING_VALUE", - * // DocumentName: "STRING_VALUE", - * // DocumentVersion: "STRING_VALUE", - * // Comment: "STRING_VALUE", - * // ExpiresAfter: new Date("TIMESTAMP"), - * // Parameters: { // Parameters - * // "": [ // ParameterValueList - * // "STRING_VALUE", - * // ], - * // }, - * // InstanceIds: [ // InstanceIdList - * // "STRING_VALUE", - * // ], - * // Targets: [ // Targets - * // { // Target - * // Key: "STRING_VALUE", - * // Values: [ // TargetValues - * // "STRING_VALUE", - * // ], - * // }, - * // ], - * // RequestedDateTime: new Date("TIMESTAMP"), - * // Status: "Pending" || "InProgress" || "Success" || "Cancelled" || "Failed" || "TimedOut" || "Cancelling", - * // StatusDetails: "STRING_VALUE", - * // OutputS3Region: "STRING_VALUE", - * // OutputS3BucketName: "STRING_VALUE", - * // OutputS3KeyPrefix: "STRING_VALUE", - * // MaxConcurrency: "STRING_VALUE", - * // MaxErrors: "STRING_VALUE", - * // TargetCount: Number("int"), - * // CompletedCount: Number("int"), - * // ErrorCount: Number("int"), - * // DeliveryTimedOutCount: Number("int"), - * // ServiceRole: "STRING_VALUE", - * // NotificationConfig: { // NotificationConfig - * // NotificationArn: "STRING_VALUE", - * // NotificationEvents: [ // NotificationEventList - * // "All" || "InProgress" || "Success" || "TimedOut" || "Cancelled" || "Failed", - * // ], - * // NotificationType: "Command" || "Invocation", - * // }, - * // CloudWatchOutputConfig: { // CloudWatchOutputConfig - * // CloudWatchLogGroupName: "STRING_VALUE", - * // CloudWatchOutputEnabled: true || false, - * // }, - * // TimeoutSeconds: Number("int"), - * // AlarmConfiguration: { // AlarmConfiguration - * // IgnorePollAlarmFailure: true || false, - * // Alarms: [ // AlarmList // required - * // { // Alarm - * // Name: "STRING_VALUE", // required - * // }, - * // ], - * // }, - * // TriggeredAlarms: [ // AlarmStateInformationList - * // { // AlarmStateInformation - * // Name: "STRING_VALUE", // required - * // State: "UNKNOWN" || "ALARM", // required - * // }, - * // ], - * // }, - * // }; - * - * ``` - * - * @param SendCommandCommandInput - {@link SendCommandCommandInput} - * @returns {@link SendCommandCommandOutput} - * @see {@link SendCommandCommandInput} for command's `input` shape. - * @see {@link SendCommandCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link DuplicateInstanceId} (client fault) - *

You can't specify a managed node ID in more than one association.

- * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidDocument} (client fault) - *

The specified SSM document doesn't exist.

- * - * @throws {@link InvalidDocumentVersion} (client fault) - *

The document version isn't valid or doesn't exist.

- * - * @throws {@link InvalidInstanceId} (client fault) - *

The following problems can cause this exception:

- *
    - *
  • - *

    You don't have permission to access the managed node.

    - *
  • - *
  • - *

    Amazon Web Services Systems Manager Agent(SSM Agent) isn't running. Verify that SSM Agent is - * running.

    - *
  • - *
  • - *

    SSM Agent isn't registered with the SSM endpoint. Try reinstalling SSM Agent.

    - *
  • - *
  • - *

    The managed node isn't in valid state. Valid states are: Running, - * Pending, Stopped, and Stopping. Invalid states are: - * Shutting-down and Terminated.

    - *
  • - *
- * - * @throws {@link InvalidNotificationConfig} (client fault) - *

One or more configuration items isn't valid. Verify that a valid Amazon Resource Name (ARN) - * was provided for an Amazon Simple Notification Service topic.

- * - * @throws {@link InvalidOutputFolder} (client fault) - *

The S3 bucket doesn't exist.

- * - * @throws {@link InvalidParameters} (client fault) - *

You must specify values for all required parameters in the Amazon Web Services Systems Manager document (SSM - * document). You can only supply values to parameters defined in the SSM document.

- * - * @throws {@link InvalidRole} (client fault) - *

The role name can't contain invalid characters. Also verify that you specified an IAM role for notifications that includes the required trust policy. For information about - * configuring the IAM role for Run Command notifications, see Configuring Amazon SNS Notifications for Run Command in the - * Amazon Web Services Systems Manager User Guide.

- * - * @throws {@link MaxDocumentSizeExceeded} (client fault) - *

The size limit of a document is 64 KB.

- * - * @throws {@link UnsupportedPlatformType} (client fault) - *

The document doesn't support the platform type of the given managed node ID(s). For example, - * you sent an document for a Windows managed node to a Linux node.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class SendCommandCommand extends $Command { - readonly input: SendCommandCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: SendCommandCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/StartAssociationsOnceCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/StartAssociationsOnceCommand.d.ts deleted file mode 100644 index c4d68a28..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/StartAssociationsOnceCommand.d.ts +++ /dev/null @@ -1,80 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { StartAssociationsOnceRequest, StartAssociationsOnceResult } from "../models/models_1"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link StartAssociationsOnceCommand}. - */ -export interface StartAssociationsOnceCommandInput extends StartAssociationsOnceRequest { -} -/** - * @public - * - * The output of {@link StartAssociationsOnceCommand}. - */ -export interface StartAssociationsOnceCommandOutput extends StartAssociationsOnceResult, __MetadataBearer { -} -/** - * @public - *

Runs an association immediately and only one time. This operation can be helpful when - * troubleshooting associations.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, StartAssociationsOnceCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, StartAssociationsOnceCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // StartAssociationsOnceRequest - * AssociationIds: [ // AssociationIdList // required - * "STRING_VALUE", - * ], - * }; - * const command = new StartAssociationsOnceCommand(input); - * const response = await client.send(command); - * // {}; - * - * ``` - * - * @param StartAssociationsOnceCommandInput - {@link StartAssociationsOnceCommandInput} - * @returns {@link StartAssociationsOnceCommandOutput} - * @see {@link StartAssociationsOnceCommandInput} for command's `input` shape. - * @see {@link StartAssociationsOnceCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link AssociationDoesNotExist} (client fault) - *

The specified association doesn't exist.

- * - * @throws {@link InvalidAssociation} (client fault) - *

The association isn't valid or doesn't exist.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class StartAssociationsOnceCommand extends $Command { - readonly input: StartAssociationsOnceCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: StartAssociationsOnceCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/StartAutomationExecutionCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/StartAutomationExecutionCommand.d.ts deleted file mode 100644 index 46d525fe..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/StartAutomationExecutionCommand.d.ts +++ /dev/null @@ -1,160 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { StartAutomationExecutionRequest, StartAutomationExecutionResult } from "../models/models_1"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link StartAutomationExecutionCommand}. - */ -export interface StartAutomationExecutionCommandInput extends StartAutomationExecutionRequest { -} -/** - * @public - * - * The output of {@link StartAutomationExecutionCommand}. - */ -export interface StartAutomationExecutionCommandOutput extends StartAutomationExecutionResult, __MetadataBearer { -} -/** - * @public - *

Initiates execution of an Automation runbook.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, StartAutomationExecutionCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, StartAutomationExecutionCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // StartAutomationExecutionRequest - * DocumentName: "STRING_VALUE", // required - * DocumentVersion: "STRING_VALUE", - * Parameters: { // AutomationParameterMap - * "": [ // AutomationParameterValueList - * "STRING_VALUE", - * ], - * }, - * ClientToken: "STRING_VALUE", - * Mode: "Auto" || "Interactive", - * TargetParameterName: "STRING_VALUE", - * Targets: [ // Targets - * { // Target - * Key: "STRING_VALUE", - * Values: [ // TargetValues - * "STRING_VALUE", - * ], - * }, - * ], - * TargetMaps: [ // TargetMaps - * { // TargetMap - * "": [ // TargetMapValueList - * "STRING_VALUE", - * ], - * }, - * ], - * MaxConcurrency: "STRING_VALUE", - * MaxErrors: "STRING_VALUE", - * TargetLocations: [ // TargetLocations - * { // TargetLocation - * Accounts: [ // Accounts - * "STRING_VALUE", - * ], - * Regions: [ // Regions - * "STRING_VALUE", - * ], - * TargetLocationMaxConcurrency: "STRING_VALUE", - * TargetLocationMaxErrors: "STRING_VALUE", - * ExecutionRoleName: "STRING_VALUE", - * TargetLocationAlarmConfiguration: { // AlarmConfiguration - * IgnorePollAlarmFailure: true || false, - * Alarms: [ // AlarmList // required - * { // Alarm - * Name: "STRING_VALUE", // required - * }, - * ], - * }, - * }, - * ], - * Tags: [ // TagList - * { // Tag - * Key: "STRING_VALUE", // required - * Value: "STRING_VALUE", // required - * }, - * ], - * AlarmConfiguration: { - * IgnorePollAlarmFailure: true || false, - * Alarms: [ // required - * { - * Name: "STRING_VALUE", // required - * }, - * ], - * }, - * }; - * const command = new StartAutomationExecutionCommand(input); - * const response = await client.send(command); - * // { // StartAutomationExecutionResult - * // AutomationExecutionId: "STRING_VALUE", - * // }; - * - * ``` - * - * @param StartAutomationExecutionCommandInput - {@link StartAutomationExecutionCommandInput} - * @returns {@link StartAutomationExecutionCommandOutput} - * @see {@link StartAutomationExecutionCommandInput} for command's `input` shape. - * @see {@link StartAutomationExecutionCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link AutomationDefinitionNotFoundException} (client fault) - *

An Automation runbook with the specified name couldn't be found.

- * - * @throws {@link AutomationDefinitionVersionNotFoundException} (client fault) - *

An Automation runbook with the specified name and version couldn't be found.

- * - * @throws {@link AutomationExecutionLimitExceededException} (client fault) - *

The number of simultaneously running Automation executions exceeded the allowable - * limit.

- * - * @throws {@link IdempotentParameterMismatch} (client fault) - *

Error returned when an idempotent operation is retried and the parameters don't match the - * original call to the API with the same idempotency token.

- * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidAutomationExecutionParametersException} (client fault) - *

The supplied parameters for invoking the specified Automation runbook are incorrect. For - * example, they may not match the set of parameters permitted for the specified Automation - * document.

- * - * @throws {@link InvalidTarget} (client fault) - *

The target isn't valid or doesn't exist. It might not be configured for Systems Manager or you might - * not have permission to perform the operation.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class StartAutomationExecutionCommand extends $Command { - readonly input: StartAutomationExecutionCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: StartAutomationExecutionCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/StartChangeRequestExecutionCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/StartChangeRequestExecutionCommand.d.ts deleted file mode 100644 index e4ca9ce0..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/StartChangeRequestExecutionCommand.d.ts +++ /dev/null @@ -1,169 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { StartChangeRequestExecutionRequest, StartChangeRequestExecutionResult } from "../models/models_1"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link StartChangeRequestExecutionCommand}. - */ -export interface StartChangeRequestExecutionCommandInput extends StartChangeRequestExecutionRequest { -} -/** - * @public - * - * The output of {@link StartChangeRequestExecutionCommand}. - */ -export interface StartChangeRequestExecutionCommandOutput extends StartChangeRequestExecutionResult, __MetadataBearer { -} -/** - * @public - *

Creates a change request for Change Manager. The Automation runbooks specified in the - * change request run only after all required approvals for the change request have been - * received.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, StartChangeRequestExecutionCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, StartChangeRequestExecutionCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // StartChangeRequestExecutionRequest - * ScheduledTime: new Date("TIMESTAMP"), - * DocumentName: "STRING_VALUE", // required - * DocumentVersion: "STRING_VALUE", - * Parameters: { // AutomationParameterMap - * "": [ // AutomationParameterValueList - * "STRING_VALUE", - * ], - * }, - * ChangeRequestName: "STRING_VALUE", - * ClientToken: "STRING_VALUE", - * AutoApprove: true || false, - * Runbooks: [ // Runbooks // required - * { // Runbook - * DocumentName: "STRING_VALUE", // required - * DocumentVersion: "STRING_VALUE", - * Parameters: { - * "": [ - * "STRING_VALUE", - * ], - * }, - * TargetParameterName: "STRING_VALUE", - * Targets: [ // Targets - * { // Target - * Key: "STRING_VALUE", - * Values: [ // TargetValues - * "STRING_VALUE", - * ], - * }, - * ], - * TargetMaps: [ // TargetMaps - * { // TargetMap - * "": [ // TargetMapValueList - * "STRING_VALUE", - * ], - * }, - * ], - * MaxConcurrency: "STRING_VALUE", - * MaxErrors: "STRING_VALUE", - * TargetLocations: [ // TargetLocations - * { // TargetLocation - * Accounts: [ // Accounts - * "STRING_VALUE", - * ], - * Regions: [ // Regions - * "STRING_VALUE", - * ], - * TargetLocationMaxConcurrency: "STRING_VALUE", - * TargetLocationMaxErrors: "STRING_VALUE", - * ExecutionRoleName: "STRING_VALUE", - * TargetLocationAlarmConfiguration: { // AlarmConfiguration - * IgnorePollAlarmFailure: true || false, - * Alarms: [ // AlarmList // required - * { // Alarm - * Name: "STRING_VALUE", // required - * }, - * ], - * }, - * }, - * ], - * }, - * ], - * Tags: [ // TagList - * { // Tag - * Key: "STRING_VALUE", // required - * Value: "STRING_VALUE", // required - * }, - * ], - * ScheduledEndTime: new Date("TIMESTAMP"), - * ChangeDetails: "STRING_VALUE", - * }; - * const command = new StartChangeRequestExecutionCommand(input); - * const response = await client.send(command); - * // { // StartChangeRequestExecutionResult - * // AutomationExecutionId: "STRING_VALUE", - * // }; - * - * ``` - * - * @param StartChangeRequestExecutionCommandInput - {@link StartChangeRequestExecutionCommandInput} - * @returns {@link StartChangeRequestExecutionCommandOutput} - * @see {@link StartChangeRequestExecutionCommandInput} for command's `input` shape. - * @see {@link StartChangeRequestExecutionCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link AutomationDefinitionNotApprovedException} (client fault) - *

Indicates that the Change Manager change template used in the change request was rejected or is - * still in a pending state.

- * - * @throws {@link AutomationDefinitionNotFoundException} (client fault) - *

An Automation runbook with the specified name couldn't be found.

- * - * @throws {@link AutomationDefinitionVersionNotFoundException} (client fault) - *

An Automation runbook with the specified name and version couldn't be found.

- * - * @throws {@link AutomationExecutionLimitExceededException} (client fault) - *

The number of simultaneously running Automation executions exceeded the allowable - * limit.

- * - * @throws {@link IdempotentParameterMismatch} (client fault) - *

Error returned when an idempotent operation is retried and the parameters don't match the - * original call to the API with the same idempotency token.

- * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidAutomationExecutionParametersException} (client fault) - *

The supplied parameters for invoking the specified Automation runbook are incorrect. For - * example, they may not match the set of parameters permitted for the specified Automation - * document.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class StartChangeRequestExecutionCommand extends $Command { - readonly input: StartChangeRequestExecutionCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: StartChangeRequestExecutionCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/StartSessionCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/StartSessionCommand.d.ts deleted file mode 100644 index 02bc8d44..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/StartSessionCommand.d.ts +++ /dev/null @@ -1,104 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { StartSessionRequest, StartSessionResponse } from "../models/models_1"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link StartSessionCommand}. - */ -export interface StartSessionCommandInput extends StartSessionRequest { -} -/** - * @public - * - * The output of {@link StartSessionCommand}. - */ -export interface StartSessionCommandOutput extends StartSessionResponse, __MetadataBearer { -} -/** - * @public - *

Initiates a connection to a target (for example, a managed node) for a Session Manager session. - * Returns a URL and token that can be used to open a WebSocket connection for sending input and - * receiving outputs.

- * - *

Amazon Web Services CLI usage: start-session is an interactive command that requires the Session Manager - * plugin to be installed on the client machine making the call. For information, see Install - * the Session Manager plugin for the Amazon Web Services CLI in the Amazon Web Services Systems Manager User Guide.

- *

Amazon Web Services Tools for PowerShell usage: Start-SSMSession isn't currently supported by Amazon Web Services Tools - * for PowerShell on Windows local machines.

- *
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, StartSessionCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, StartSessionCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // StartSessionRequest - * Target: "STRING_VALUE", // required - * DocumentName: "STRING_VALUE", - * Reason: "STRING_VALUE", - * Parameters: { // SessionManagerParameters - * "": [ // SessionManagerParameterValueList - * "STRING_VALUE", - * ], - * }, - * }; - * const command = new StartSessionCommand(input); - * const response = await client.send(command); - * // { // StartSessionResponse - * // SessionId: "STRING_VALUE", - * // TokenValue: "STRING_VALUE", - * // StreamUrl: "STRING_VALUE", - * // }; - * - * ``` - * - * @param StartSessionCommandInput - {@link StartSessionCommandInput} - * @returns {@link StartSessionCommandOutput} - * @see {@link StartSessionCommandInput} for command's `input` shape. - * @see {@link StartSessionCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidDocument} (client fault) - *

The specified SSM document doesn't exist.

- * - * @throws {@link TargetNotConnected} (client fault) - *

The specified target managed node for the session isn't fully configured for use with Session Manager. - * For more information, see Getting started with - * Session Manager in the Amazon Web Services Systems Manager User Guide. This error is also returned if you - * attempt to start a session on a managed node that is located in a different account or - * Region

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class StartSessionCommand extends $Command { - readonly input: StartSessionCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: StartSessionCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/StopAutomationExecutionCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/StopAutomationExecutionCommand.d.ts deleted file mode 100644 index 19f33c87..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/StopAutomationExecutionCommand.d.ts +++ /dev/null @@ -1,82 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { StopAutomationExecutionRequest, StopAutomationExecutionResult } from "../models/models_1"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link StopAutomationExecutionCommand}. - */ -export interface StopAutomationExecutionCommandInput extends StopAutomationExecutionRequest { -} -/** - * @public - * - * The output of {@link StopAutomationExecutionCommand}. - */ -export interface StopAutomationExecutionCommandOutput extends StopAutomationExecutionResult, __MetadataBearer { -} -/** - * @public - *

Stop an Automation that is currently running.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, StopAutomationExecutionCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, StopAutomationExecutionCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // StopAutomationExecutionRequest - * AutomationExecutionId: "STRING_VALUE", // required - * Type: "Complete" || "Cancel", - * }; - * const command = new StopAutomationExecutionCommand(input); - * const response = await client.send(command); - * // {}; - * - * ``` - * - * @param StopAutomationExecutionCommandInput - {@link StopAutomationExecutionCommandInput} - * @returns {@link StopAutomationExecutionCommandOutput} - * @see {@link StopAutomationExecutionCommandInput} for command's `input` shape. - * @see {@link StopAutomationExecutionCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link AutomationExecutionNotFoundException} (client fault) - *

There is no automation execution information for the requested automation execution - * ID.

- * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidAutomationStatusUpdateException} (client fault) - *

The specified update status operation isn't valid.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class StopAutomationExecutionCommand extends $Command { - readonly input: StopAutomationExecutionCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: StopAutomationExecutionCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/TerminateSessionCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/TerminateSessionCommand.d.ts deleted file mode 100644 index 775d467f..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/TerminateSessionCommand.d.ts +++ /dev/null @@ -1,78 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { TerminateSessionRequest } from "../models/models_1"; -import { TerminateSessionResponse } from "../models/models_2"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link TerminateSessionCommand}. - */ -export interface TerminateSessionCommandInput extends TerminateSessionRequest { -} -/** - * @public - * - * The output of {@link TerminateSessionCommand}. - */ -export interface TerminateSessionCommandOutput extends TerminateSessionResponse, __MetadataBearer { -} -/** - * @public - *

Permanently ends a session and closes the data connection between the Session Manager client and - * SSM Agent on the managed node. A terminated session can't be resumed.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, TerminateSessionCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, TerminateSessionCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // TerminateSessionRequest - * SessionId: "STRING_VALUE", // required - * }; - * const command = new TerminateSessionCommand(input); - * const response = await client.send(command); - * // { // TerminateSessionResponse - * // SessionId: "STRING_VALUE", - * // }; - * - * ``` - * - * @param TerminateSessionCommandInput - {@link TerminateSessionCommandInput} - * @returns {@link TerminateSessionCommandOutput} - * @see {@link TerminateSessionCommandInput} for command's `input` shape. - * @see {@link TerminateSessionCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class TerminateSessionCommand extends $Command { - readonly input: TerminateSessionCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: TerminateSessionCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/UnlabelParameterVersionCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/UnlabelParameterVersionCommand.d.ts deleted file mode 100644 index dcaea699..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/UnlabelParameterVersionCommand.d.ts +++ /dev/null @@ -1,95 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { UnlabelParameterVersionRequest, UnlabelParameterVersionResult } from "../models/models_2"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link UnlabelParameterVersionCommand}. - */ -export interface UnlabelParameterVersionCommandInput extends UnlabelParameterVersionRequest { -} -/** - * @public - * - * The output of {@link UnlabelParameterVersionCommand}. - */ -export interface UnlabelParameterVersionCommandOutput extends UnlabelParameterVersionResult, __MetadataBearer { -} -/** - * @public - *

Remove a label or labels from a parameter.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, UnlabelParameterVersionCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, UnlabelParameterVersionCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // UnlabelParameterVersionRequest - * Name: "STRING_VALUE", // required - * ParameterVersion: Number("long"), // required - * Labels: [ // ParameterLabelList // required - * "STRING_VALUE", - * ], - * }; - * const command = new UnlabelParameterVersionCommand(input); - * const response = await client.send(command); - * // { // UnlabelParameterVersionResult - * // RemovedLabels: [ // ParameterLabelList - * // "STRING_VALUE", - * // ], - * // InvalidLabels: [ - * // "STRING_VALUE", - * // ], - * // }; - * - * ``` - * - * @param UnlabelParameterVersionCommandInput - {@link UnlabelParameterVersionCommandInput} - * @returns {@link UnlabelParameterVersionCommandOutput} - * @see {@link UnlabelParameterVersionCommandInput} for command's `input` shape. - * @see {@link UnlabelParameterVersionCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link ParameterNotFound} (client fault) - *

The parameter couldn't be found. Verify the name and try again.

- * - * @throws {@link ParameterVersionNotFound} (client fault) - *

The specified parameter version wasn't found. Verify the parameter name and version, and try - * again.

- * - * @throws {@link TooManyUpdates} (client fault) - *

There are concurrent updates for a resource that supports one update at a time.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class UnlabelParameterVersionCommand extends $Command { - readonly input: UnlabelParameterVersionCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: UnlabelParameterVersionCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdateAssociationCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdateAssociationCommand.d.ts deleted file mode 100644 index 496bd464..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdateAssociationCommand.d.ts +++ /dev/null @@ -1,304 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { UpdateAssociationRequest, UpdateAssociationResult } from "../models/models_2"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link UpdateAssociationCommand}. - */ -export interface UpdateAssociationCommandInput extends UpdateAssociationRequest { -} -/** - * @public - * - * The output of {@link UpdateAssociationCommand}. - */ -export interface UpdateAssociationCommandOutput extends UpdateAssociationResult, __MetadataBearer { -} -/** - * @public - *

Updates an association. You can update the association name and version, the document - * version, schedule, parameters, and Amazon Simple Storage Service (Amazon S3) output. When you - * call UpdateAssociation, the system removes all optional parameters from the request - * and overwrites the association with null values for those parameters. This is by design. You must - * specify all optional parameters in the call, even if you are not changing the parameters. This - * includes the Name parameter. Before calling this API action, we recommend that you - * call the DescribeAssociation API operation and make a note of all optional - * parameters required for your UpdateAssociation call.

- *

In order to call this API operation, a user, group, or role must be granted permission to - * call the DescribeAssociation API operation. If you don't have permission to - * call DescribeAssociation, then you receive the following error: An error - * occurred (AccessDeniedException) when calling the UpdateAssociation operation: User: - * isn't authorized to perform: ssm:DescribeAssociation on resource: - * - *

- * - *

When you update an association, the association immediately runs against the specified - * targets. You can add the ApplyOnlyAtCronInterval parameter to run the association - * during the next schedule run.

- *
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, UpdateAssociationCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, UpdateAssociationCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // UpdateAssociationRequest - * AssociationId: "STRING_VALUE", // required - * Parameters: { // Parameters - * "": [ // ParameterValueList - * "STRING_VALUE", - * ], - * }, - * DocumentVersion: "STRING_VALUE", - * ScheduleExpression: "STRING_VALUE", - * OutputLocation: { // InstanceAssociationOutputLocation - * S3Location: { // S3OutputLocation - * OutputS3Region: "STRING_VALUE", - * OutputS3BucketName: "STRING_VALUE", - * OutputS3KeyPrefix: "STRING_VALUE", - * }, - * }, - * Name: "STRING_VALUE", - * Targets: [ // Targets - * { // Target - * Key: "STRING_VALUE", - * Values: [ // TargetValues - * "STRING_VALUE", - * ], - * }, - * ], - * AssociationName: "STRING_VALUE", - * AssociationVersion: "STRING_VALUE", - * AutomationTargetParameterName: "STRING_VALUE", - * MaxErrors: "STRING_VALUE", - * MaxConcurrency: "STRING_VALUE", - * ComplianceSeverity: "CRITICAL" || "HIGH" || "MEDIUM" || "LOW" || "UNSPECIFIED", - * SyncCompliance: "AUTO" || "MANUAL", - * ApplyOnlyAtCronInterval: true || false, - * CalendarNames: [ // CalendarNameOrARNList - * "STRING_VALUE", - * ], - * TargetLocations: [ // TargetLocations - * { // TargetLocation - * Accounts: [ // Accounts - * "STRING_VALUE", - * ], - * Regions: [ // Regions - * "STRING_VALUE", - * ], - * TargetLocationMaxConcurrency: "STRING_VALUE", - * TargetLocationMaxErrors: "STRING_VALUE", - * ExecutionRoleName: "STRING_VALUE", - * TargetLocationAlarmConfiguration: { // AlarmConfiguration - * IgnorePollAlarmFailure: true || false, - * Alarms: [ // AlarmList // required - * { // Alarm - * Name: "STRING_VALUE", // required - * }, - * ], - * }, - * }, - * ], - * ScheduleOffset: Number("int"), - * TargetMaps: [ // TargetMaps - * { // TargetMap - * "": [ // TargetMapValueList - * "STRING_VALUE", - * ], - * }, - * ], - * AlarmConfiguration: { - * IgnorePollAlarmFailure: true || false, - * Alarms: [ // required - * { - * Name: "STRING_VALUE", // required - * }, - * ], - * }, - * }; - * const command = new UpdateAssociationCommand(input); - * const response = await client.send(command); - * // { // UpdateAssociationResult - * // AssociationDescription: { // AssociationDescription - * // Name: "STRING_VALUE", - * // InstanceId: "STRING_VALUE", - * // AssociationVersion: "STRING_VALUE", - * // Date: new Date("TIMESTAMP"), - * // LastUpdateAssociationDate: new Date("TIMESTAMP"), - * // Status: { // AssociationStatus - * // Date: new Date("TIMESTAMP"), // required - * // Name: "Pending" || "Success" || "Failed", // required - * // Message: "STRING_VALUE", // required - * // AdditionalInfo: "STRING_VALUE", - * // }, - * // Overview: { // AssociationOverview - * // Status: "STRING_VALUE", - * // DetailedStatus: "STRING_VALUE", - * // AssociationStatusAggregatedCount: { // AssociationStatusAggregatedCount - * // "": Number("int"), - * // }, - * // }, - * // DocumentVersion: "STRING_VALUE", - * // AutomationTargetParameterName: "STRING_VALUE", - * // Parameters: { // Parameters - * // "": [ // ParameterValueList - * // "STRING_VALUE", - * // ], - * // }, - * // AssociationId: "STRING_VALUE", - * // Targets: [ // Targets - * // { // Target - * // Key: "STRING_VALUE", - * // Values: [ // TargetValues - * // "STRING_VALUE", - * // ], - * // }, - * // ], - * // ScheduleExpression: "STRING_VALUE", - * // OutputLocation: { // InstanceAssociationOutputLocation - * // S3Location: { // S3OutputLocation - * // OutputS3Region: "STRING_VALUE", - * // OutputS3BucketName: "STRING_VALUE", - * // OutputS3KeyPrefix: "STRING_VALUE", - * // }, - * // }, - * // LastExecutionDate: new Date("TIMESTAMP"), - * // LastSuccessfulExecutionDate: new Date("TIMESTAMP"), - * // AssociationName: "STRING_VALUE", - * // MaxErrors: "STRING_VALUE", - * // MaxConcurrency: "STRING_VALUE", - * // ComplianceSeverity: "CRITICAL" || "HIGH" || "MEDIUM" || "LOW" || "UNSPECIFIED", - * // SyncCompliance: "AUTO" || "MANUAL", - * // ApplyOnlyAtCronInterval: true || false, - * // CalendarNames: [ // CalendarNameOrARNList - * // "STRING_VALUE", - * // ], - * // TargetLocations: [ // TargetLocations - * // { // TargetLocation - * // Accounts: [ // Accounts - * // "STRING_VALUE", - * // ], - * // Regions: [ // Regions - * // "STRING_VALUE", - * // ], - * // TargetLocationMaxConcurrency: "STRING_VALUE", - * // TargetLocationMaxErrors: "STRING_VALUE", - * // ExecutionRoleName: "STRING_VALUE", - * // TargetLocationAlarmConfiguration: { // AlarmConfiguration - * // IgnorePollAlarmFailure: true || false, - * // Alarms: [ // AlarmList // required - * // { // Alarm - * // Name: "STRING_VALUE", // required - * // }, - * // ], - * // }, - * // }, - * // ], - * // ScheduleOffset: Number("int"), - * // TargetMaps: [ // TargetMaps - * // { // TargetMap - * // "": [ // TargetMapValueList - * // "STRING_VALUE", - * // ], - * // }, - * // ], - * // AlarmConfiguration: { - * // IgnorePollAlarmFailure: true || false, - * // Alarms: [ // required - * // { - * // Name: "STRING_VALUE", // required - * // }, - * // ], - * // }, - * // TriggeredAlarms: [ // AlarmStateInformationList - * // { // AlarmStateInformation - * // Name: "STRING_VALUE", // required - * // State: "UNKNOWN" || "ALARM", // required - * // }, - * // ], - * // }, - * // }; - * - * ``` - * - * @param UpdateAssociationCommandInput - {@link UpdateAssociationCommandInput} - * @returns {@link UpdateAssociationCommandOutput} - * @see {@link UpdateAssociationCommandInput} for command's `input` shape. - * @see {@link UpdateAssociationCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link AssociationDoesNotExist} (client fault) - *

The specified association doesn't exist.

- * - * @throws {@link AssociationVersionLimitExceeded} (client fault) - *

You have reached the maximum number versions allowed for an association. Each association - * has a limit of 1,000 versions.

- * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidAssociationVersion} (client fault) - *

The version you specified isn't valid. Use ListAssociationVersions to view all versions of - * an association according to the association ID. Or, use the $LATEST parameter to - * view the latest version of the association.

- * - * @throws {@link InvalidDocument} (client fault) - *

The specified SSM document doesn't exist.

- * - * @throws {@link InvalidDocumentVersion} (client fault) - *

The document version isn't valid or doesn't exist.

- * - * @throws {@link InvalidOutputLocation} (client fault) - *

The output location isn't valid or doesn't exist.

- * - * @throws {@link InvalidParameters} (client fault) - *

You must specify values for all required parameters in the Amazon Web Services Systems Manager document (SSM - * document). You can only supply values to parameters defined in the SSM document.

- * - * @throws {@link InvalidSchedule} (client fault) - *

The schedule is invalid. Verify your cron or rate expression and try again.

- * - * @throws {@link InvalidTarget} (client fault) - *

The target isn't valid or doesn't exist. It might not be configured for Systems Manager or you might - * not have permission to perform the operation.

- * - * @throws {@link InvalidTargetMaps} (client fault) - *

TargetMap parameter isn't valid.

- * - * @throws {@link InvalidUpdate} (client fault) - *

The update isn't valid.

- * - * @throws {@link TooManyUpdates} (client fault) - *

There are concurrent updates for a resource that supports one update at a time.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class UpdateAssociationCommand extends $Command { - readonly input: UpdateAssociationCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: UpdateAssociationCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdateAssociationStatusCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdateAssociationStatusCommand.d.ts deleted file mode 100644 index d75c48ea..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdateAssociationStatusCommand.d.ts +++ /dev/null @@ -1,217 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { UpdateAssociationStatusRequest, UpdateAssociationStatusResult } from "../models/models_2"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link UpdateAssociationStatusCommand}. - */ -export interface UpdateAssociationStatusCommandInput extends UpdateAssociationStatusRequest { -} -/** - * @public - * - * The output of {@link UpdateAssociationStatusCommand}. - */ -export interface UpdateAssociationStatusCommandOutput extends UpdateAssociationStatusResult, __MetadataBearer { -} -/** - * @public - *

Updates the status of the Amazon Web Services Systems Manager document (SSM document) associated with the specified - * managed node.

- *

- * UpdateAssociationStatus is primarily used by the Amazon Web Services Systems Manager Agent (SSM Agent) to - * report status updates about your associations and is only used for associations created with the - * InstanceId legacy parameter.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, UpdateAssociationStatusCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, UpdateAssociationStatusCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // UpdateAssociationStatusRequest - * Name: "STRING_VALUE", // required - * InstanceId: "STRING_VALUE", // required - * AssociationStatus: { // AssociationStatus - * Date: new Date("TIMESTAMP"), // required - * Name: "Pending" || "Success" || "Failed", // required - * Message: "STRING_VALUE", // required - * AdditionalInfo: "STRING_VALUE", - * }, - * }; - * const command = new UpdateAssociationStatusCommand(input); - * const response = await client.send(command); - * // { // UpdateAssociationStatusResult - * // AssociationDescription: { // AssociationDescription - * // Name: "STRING_VALUE", - * // InstanceId: "STRING_VALUE", - * // AssociationVersion: "STRING_VALUE", - * // Date: new Date("TIMESTAMP"), - * // LastUpdateAssociationDate: new Date("TIMESTAMP"), - * // Status: { // AssociationStatus - * // Date: new Date("TIMESTAMP"), // required - * // Name: "Pending" || "Success" || "Failed", // required - * // Message: "STRING_VALUE", // required - * // AdditionalInfo: "STRING_VALUE", - * // }, - * // Overview: { // AssociationOverview - * // Status: "STRING_VALUE", - * // DetailedStatus: "STRING_VALUE", - * // AssociationStatusAggregatedCount: { // AssociationStatusAggregatedCount - * // "": Number("int"), - * // }, - * // }, - * // DocumentVersion: "STRING_VALUE", - * // AutomationTargetParameterName: "STRING_VALUE", - * // Parameters: { // Parameters - * // "": [ // ParameterValueList - * // "STRING_VALUE", - * // ], - * // }, - * // AssociationId: "STRING_VALUE", - * // Targets: [ // Targets - * // { // Target - * // Key: "STRING_VALUE", - * // Values: [ // TargetValues - * // "STRING_VALUE", - * // ], - * // }, - * // ], - * // ScheduleExpression: "STRING_VALUE", - * // OutputLocation: { // InstanceAssociationOutputLocation - * // S3Location: { // S3OutputLocation - * // OutputS3Region: "STRING_VALUE", - * // OutputS3BucketName: "STRING_VALUE", - * // OutputS3KeyPrefix: "STRING_VALUE", - * // }, - * // }, - * // LastExecutionDate: new Date("TIMESTAMP"), - * // LastSuccessfulExecutionDate: new Date("TIMESTAMP"), - * // AssociationName: "STRING_VALUE", - * // MaxErrors: "STRING_VALUE", - * // MaxConcurrency: "STRING_VALUE", - * // ComplianceSeverity: "CRITICAL" || "HIGH" || "MEDIUM" || "LOW" || "UNSPECIFIED", - * // SyncCompliance: "AUTO" || "MANUAL", - * // ApplyOnlyAtCronInterval: true || false, - * // CalendarNames: [ // CalendarNameOrARNList - * // "STRING_VALUE", - * // ], - * // TargetLocations: [ // TargetLocations - * // { // TargetLocation - * // Accounts: [ // Accounts - * // "STRING_VALUE", - * // ], - * // Regions: [ // Regions - * // "STRING_VALUE", - * // ], - * // TargetLocationMaxConcurrency: "STRING_VALUE", - * // TargetLocationMaxErrors: "STRING_VALUE", - * // ExecutionRoleName: "STRING_VALUE", - * // TargetLocationAlarmConfiguration: { // AlarmConfiguration - * // IgnorePollAlarmFailure: true || false, - * // Alarms: [ // AlarmList // required - * // { // Alarm - * // Name: "STRING_VALUE", // required - * // }, - * // ], - * // }, - * // }, - * // ], - * // ScheduleOffset: Number("int"), - * // TargetMaps: [ // TargetMaps - * // { // TargetMap - * // "": [ // TargetMapValueList - * // "STRING_VALUE", - * // ], - * // }, - * // ], - * // AlarmConfiguration: { - * // IgnorePollAlarmFailure: true || false, - * // Alarms: [ // required - * // { - * // Name: "STRING_VALUE", // required - * // }, - * // ], - * // }, - * // TriggeredAlarms: [ // AlarmStateInformationList - * // { // AlarmStateInformation - * // Name: "STRING_VALUE", // required - * // State: "UNKNOWN" || "ALARM", // required - * // }, - * // ], - * // }, - * // }; - * - * ``` - * - * @param UpdateAssociationStatusCommandInput - {@link UpdateAssociationStatusCommandInput} - * @returns {@link UpdateAssociationStatusCommandOutput} - * @see {@link UpdateAssociationStatusCommandInput} for command's `input` shape. - * @see {@link UpdateAssociationStatusCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link AssociationDoesNotExist} (client fault) - *

The specified association doesn't exist.

- * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidDocument} (client fault) - *

The specified SSM document doesn't exist.

- * - * @throws {@link InvalidInstanceId} (client fault) - *

The following problems can cause this exception:

- *
    - *
  • - *

    You don't have permission to access the managed node.

    - *
  • - *
  • - *

    Amazon Web Services Systems Manager Agent(SSM Agent) isn't running. Verify that SSM Agent is - * running.

    - *
  • - *
  • - *

    SSM Agent isn't registered with the SSM endpoint. Try reinstalling SSM Agent.

    - *
  • - *
  • - *

    The managed node isn't in valid state. Valid states are: Running, - * Pending, Stopped, and Stopping. Invalid states are: - * Shutting-down and Terminated.

    - *
  • - *
- * - * @throws {@link StatusUnchanged} (client fault) - *

The updated status is the same as the current status.

- * - * @throws {@link TooManyUpdates} (client fault) - *

There are concurrent updates for a resource that supports one update at a time.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class UpdateAssociationStatusCommand extends $Command { - readonly input: UpdateAssociationStatusCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: UpdateAssociationStatusCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdateDocumentCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdateDocumentCommand.d.ts deleted file mode 100644 index 178f3425..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdateDocumentCommand.d.ts +++ /dev/null @@ -1,188 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { UpdateDocumentRequest, UpdateDocumentResult } from "../models/models_2"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link UpdateDocumentCommand}. - */ -export interface UpdateDocumentCommandInput extends UpdateDocumentRequest { -} -/** - * @public - * - * The output of {@link UpdateDocumentCommand}. - */ -export interface UpdateDocumentCommandOutput extends UpdateDocumentResult, __MetadataBearer { -} -/** - * @public - *

Updates one or more values for an SSM document.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, UpdateDocumentCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, UpdateDocumentCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // UpdateDocumentRequest - * Content: "STRING_VALUE", // required - * Attachments: [ // AttachmentsSourceList - * { // AttachmentsSource - * Key: "SourceUrl" || "S3FileUrl" || "AttachmentReference", - * Values: [ // AttachmentsSourceValues - * "STRING_VALUE", - * ], - * Name: "STRING_VALUE", - * }, - * ], - * Name: "STRING_VALUE", // required - * DisplayName: "STRING_VALUE", - * VersionName: "STRING_VALUE", - * DocumentVersion: "STRING_VALUE", - * DocumentFormat: "YAML" || "JSON" || "TEXT", - * TargetType: "STRING_VALUE", - * }; - * const command = new UpdateDocumentCommand(input); - * const response = await client.send(command); - * // { // UpdateDocumentResult - * // DocumentDescription: { // DocumentDescription - * // Sha1: "STRING_VALUE", - * // Hash: "STRING_VALUE", - * // HashType: "Sha256" || "Sha1", - * // Name: "STRING_VALUE", - * // DisplayName: "STRING_VALUE", - * // VersionName: "STRING_VALUE", - * // Owner: "STRING_VALUE", - * // CreatedDate: new Date("TIMESTAMP"), - * // Status: "Creating" || "Active" || "Updating" || "Deleting" || "Failed", - * // StatusInformation: "STRING_VALUE", - * // DocumentVersion: "STRING_VALUE", - * // Description: "STRING_VALUE", - * // Parameters: [ // DocumentParameterList - * // { // DocumentParameter - * // Name: "STRING_VALUE", - * // Type: "String" || "StringList", - * // Description: "STRING_VALUE", - * // DefaultValue: "STRING_VALUE", - * // }, - * // ], - * // PlatformTypes: [ // PlatformTypeList - * // "Windows" || "Linux" || "MacOS", - * // ], - * // DocumentType: "Command" || "Policy" || "Automation" || "Session" || "Package" || "ApplicationConfiguration" || "ApplicationConfigurationSchema" || "DeploymentStrategy" || "ChangeCalendar" || "Automation.ChangeTemplate" || "ProblemAnalysis" || "ProblemAnalysisTemplate" || "CloudFormation" || "ConformancePackTemplate" || "QuickSetup", - * // SchemaVersion: "STRING_VALUE", - * // LatestVersion: "STRING_VALUE", - * // DefaultVersion: "STRING_VALUE", - * // DocumentFormat: "YAML" || "JSON" || "TEXT", - * // TargetType: "STRING_VALUE", - * // Tags: [ // TagList - * // { // Tag - * // Key: "STRING_VALUE", // required - * // Value: "STRING_VALUE", // required - * // }, - * // ], - * // AttachmentsInformation: [ // AttachmentInformationList - * // { // AttachmentInformation - * // Name: "STRING_VALUE", - * // }, - * // ], - * // Requires: [ // DocumentRequiresList - * // { // DocumentRequires - * // Name: "STRING_VALUE", // required - * // Version: "STRING_VALUE", - * // RequireType: "STRING_VALUE", - * // VersionName: "STRING_VALUE", - * // }, - * // ], - * // Author: "STRING_VALUE", - * // ReviewInformation: [ // ReviewInformationList - * // { // ReviewInformation - * // ReviewedTime: new Date("TIMESTAMP"), - * // Status: "APPROVED" || "NOT_REVIEWED" || "PENDING" || "REJECTED", - * // Reviewer: "STRING_VALUE", - * // }, - * // ], - * // ApprovedVersion: "STRING_VALUE", - * // PendingReviewVersion: "STRING_VALUE", - * // ReviewStatus: "APPROVED" || "NOT_REVIEWED" || "PENDING" || "REJECTED", - * // Category: [ // CategoryList - * // "STRING_VALUE", - * // ], - * // CategoryEnum: [ // CategoryEnumList - * // "STRING_VALUE", - * // ], - * // }, - * // }; - * - * ``` - * - * @param UpdateDocumentCommandInput - {@link UpdateDocumentCommandInput} - * @returns {@link UpdateDocumentCommandOutput} - * @see {@link UpdateDocumentCommandInput} for command's `input` shape. - * @see {@link UpdateDocumentCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link DocumentVersionLimitExceeded} (client fault) - *

The document has too many versions. Delete one or more document versions and try - * again.

- * - * @throws {@link DuplicateDocumentContent} (client fault) - *

The content of the association document matches another document. Change the content of the - * document and try again.

- * - * @throws {@link DuplicateDocumentVersionName} (client fault) - *

The version name has already been used in this document. Specify a different version name, - * and then try again.

- * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidDocument} (client fault) - *

The specified SSM document doesn't exist.

- * - * @throws {@link InvalidDocumentContent} (client fault) - *

The content for the document isn't valid.

- * - * @throws {@link InvalidDocumentOperation} (client fault) - *

You attempted to delete a document while it is still shared. You must stop sharing the - * document before you can delete it.

- * - * @throws {@link InvalidDocumentSchemaVersion} (client fault) - *

The version of the document schema isn't supported.

- * - * @throws {@link InvalidDocumentVersion} (client fault) - *

The document version isn't valid or doesn't exist.

- * - * @throws {@link MaxDocumentSizeExceeded} (client fault) - *

The size limit of a document is 64 KB.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class UpdateDocumentCommand extends $Command { - readonly input: UpdateDocumentCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: UpdateDocumentCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdateDocumentDefaultVersionCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdateDocumentDefaultVersionCommand.d.ts deleted file mode 100644 index 6ec9294a..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdateDocumentDefaultVersionCommand.d.ts +++ /dev/null @@ -1,95 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { UpdateDocumentDefaultVersionRequest, UpdateDocumentDefaultVersionResult } from "../models/models_2"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link UpdateDocumentDefaultVersionCommand}. - */ -export interface UpdateDocumentDefaultVersionCommandInput extends UpdateDocumentDefaultVersionRequest { -} -/** - * @public - * - * The output of {@link UpdateDocumentDefaultVersionCommand}. - */ -export interface UpdateDocumentDefaultVersionCommandOutput extends UpdateDocumentDefaultVersionResult, __MetadataBearer { -} -/** - * @public - *

Set the default version of a document.

- * - *

If you change a document version for a State Manager association, Systems Manager immediately runs - * the association unless you previously specifed the apply-only-at-cron-interval - * parameter.

- *
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, UpdateDocumentDefaultVersionCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, UpdateDocumentDefaultVersionCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // UpdateDocumentDefaultVersionRequest - * Name: "STRING_VALUE", // required - * DocumentVersion: "STRING_VALUE", // required - * }; - * const command = new UpdateDocumentDefaultVersionCommand(input); - * const response = await client.send(command); - * // { // UpdateDocumentDefaultVersionResult - * // Description: { // DocumentDefaultVersionDescription - * // Name: "STRING_VALUE", - * // DefaultVersion: "STRING_VALUE", - * // DefaultVersionName: "STRING_VALUE", - * // }, - * // }; - * - * ``` - * - * @param UpdateDocumentDefaultVersionCommandInput - {@link UpdateDocumentDefaultVersionCommandInput} - * @returns {@link UpdateDocumentDefaultVersionCommandOutput} - * @see {@link UpdateDocumentDefaultVersionCommandInput} for command's `input` shape. - * @see {@link UpdateDocumentDefaultVersionCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidDocument} (client fault) - *

The specified SSM document doesn't exist.

- * - * @throws {@link InvalidDocumentSchemaVersion} (client fault) - *

The version of the document schema isn't supported.

- * - * @throws {@link InvalidDocumentVersion} (client fault) - *

The document version isn't valid or doesn't exist.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class UpdateDocumentDefaultVersionCommand extends $Command { - readonly input: UpdateDocumentDefaultVersionCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: UpdateDocumentDefaultVersionCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdateDocumentMetadataCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdateDocumentMetadataCommand.d.ts deleted file mode 100644 index de3dcac7..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdateDocumentMetadataCommand.d.ts +++ /dev/null @@ -1,95 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { UpdateDocumentMetadataRequest, UpdateDocumentMetadataResponse } from "../models/models_2"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link UpdateDocumentMetadataCommand}. - */ -export interface UpdateDocumentMetadataCommandInput extends UpdateDocumentMetadataRequest { -} -/** - * @public - * - * The output of {@link UpdateDocumentMetadataCommand}. - */ -export interface UpdateDocumentMetadataCommandOutput extends UpdateDocumentMetadataResponse, __MetadataBearer { -} -/** - * @public - *

Updates information related to approval reviews for a specific version of a change template - * in Change Manager.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, UpdateDocumentMetadataCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, UpdateDocumentMetadataCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // UpdateDocumentMetadataRequest - * Name: "STRING_VALUE", // required - * DocumentVersion: "STRING_VALUE", - * DocumentReviews: { // DocumentReviews - * Action: "SendForReview" || "UpdateReview" || "Approve" || "Reject", // required - * Comment: [ // DocumentReviewCommentList - * { // DocumentReviewCommentSource - * Type: "Comment", - * Content: "STRING_VALUE", - * }, - * ], - * }, - * }; - * const command = new UpdateDocumentMetadataCommand(input); - * const response = await client.send(command); - * // {}; - * - * ``` - * - * @param UpdateDocumentMetadataCommandInput - {@link UpdateDocumentMetadataCommandInput} - * @returns {@link UpdateDocumentMetadataCommandOutput} - * @see {@link UpdateDocumentMetadataCommandInput} for command's `input` shape. - * @see {@link UpdateDocumentMetadataCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidDocument} (client fault) - *

The specified SSM document doesn't exist.

- * - * @throws {@link InvalidDocumentOperation} (client fault) - *

You attempted to delete a document while it is still shared. You must stop sharing the - * document before you can delete it.

- * - * @throws {@link InvalidDocumentVersion} (client fault) - *

The document version isn't valid or doesn't exist.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class UpdateDocumentMetadataCommand extends $Command { - readonly input: UpdateDocumentMetadataCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: UpdateDocumentMetadataCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdateMaintenanceWindowCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdateMaintenanceWindowCommand.d.ts deleted file mode 100644 index f6c7a6b4..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdateMaintenanceWindowCommand.d.ts +++ /dev/null @@ -1,113 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { UpdateMaintenanceWindowRequest, UpdateMaintenanceWindowResult } from "../models/models_2"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link UpdateMaintenanceWindowCommand}. - */ -export interface UpdateMaintenanceWindowCommandInput extends UpdateMaintenanceWindowRequest { -} -/** - * @public - * - * The output of {@link UpdateMaintenanceWindowCommand}. - */ -export interface UpdateMaintenanceWindowCommandOutput extends UpdateMaintenanceWindowResult, __MetadataBearer { -} -/** - * @public - *

Updates an existing maintenance window. Only specified parameters are modified.

- * - *

The value you specify for Duration determines the specific end time for the - * maintenance window based on the time it begins. No maintenance window tasks are permitted to - * start after the resulting endtime minus the number of hours you specify for Cutoff. - * For example, if the maintenance window starts at 3 PM, the duration is three hours, and the - * value you specify for Cutoff is one hour, no maintenance window tasks can start - * after 5 PM.

- *
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, UpdateMaintenanceWindowCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, UpdateMaintenanceWindowCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // UpdateMaintenanceWindowRequest - * WindowId: "STRING_VALUE", // required - * Name: "STRING_VALUE", - * Description: "STRING_VALUE", - * StartDate: "STRING_VALUE", - * EndDate: "STRING_VALUE", - * Schedule: "STRING_VALUE", - * ScheduleTimezone: "STRING_VALUE", - * ScheduleOffset: Number("int"), - * Duration: Number("int"), - * Cutoff: Number("int"), - * AllowUnassociatedTargets: true || false, - * Enabled: true || false, - * Replace: true || false, - * }; - * const command = new UpdateMaintenanceWindowCommand(input); - * const response = await client.send(command); - * // { // UpdateMaintenanceWindowResult - * // WindowId: "STRING_VALUE", - * // Name: "STRING_VALUE", - * // Description: "STRING_VALUE", - * // StartDate: "STRING_VALUE", - * // EndDate: "STRING_VALUE", - * // Schedule: "STRING_VALUE", - * // ScheduleTimezone: "STRING_VALUE", - * // ScheduleOffset: Number("int"), - * // Duration: Number("int"), - * // Cutoff: Number("int"), - * // AllowUnassociatedTargets: true || false, - * // Enabled: true || false, - * // }; - * - * ``` - * - * @param UpdateMaintenanceWindowCommandInput - {@link UpdateMaintenanceWindowCommandInput} - * @returns {@link UpdateMaintenanceWindowCommandOutput} - * @see {@link UpdateMaintenanceWindowCommandInput} for command's `input` shape. - * @see {@link UpdateMaintenanceWindowCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link DoesNotExistException} (client fault) - *

Error returned when the ID specified for a resource, such as a maintenance window or patch - * baseline, doesn't exist.

- *

For information about resource quotas in Amazon Web Services Systems Manager, see Systems Manager service quotas in the - * Amazon Web Services General Reference.

- * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class UpdateMaintenanceWindowCommand extends $Command { - readonly input: UpdateMaintenanceWindowCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: UpdateMaintenanceWindowCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdateMaintenanceWindowTargetCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdateMaintenanceWindowTargetCommand.d.ts deleted file mode 100644 index ddd86d5c..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdateMaintenanceWindowTargetCommand.d.ts +++ /dev/null @@ -1,132 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { UpdateMaintenanceWindowTargetRequest, UpdateMaintenanceWindowTargetResult } from "../models/models_2"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link UpdateMaintenanceWindowTargetCommand}. - */ -export interface UpdateMaintenanceWindowTargetCommandInput extends UpdateMaintenanceWindowTargetRequest { -} -/** - * @public - * - * The output of {@link UpdateMaintenanceWindowTargetCommand}. - */ -export interface UpdateMaintenanceWindowTargetCommandOutput extends UpdateMaintenanceWindowTargetResult, __MetadataBearer { -} -/** - * @public - *

Modifies the target of an existing maintenance window. You - * can change the following:

- *
    - *
  • - *

    Name

    - *
  • - *
  • - *

    Description

    - *
  • - *
  • - *

    Owner

    - *
  • - *
  • - *

    IDs for an ID target

    - *
  • - *
  • - *

    Tags for a Tag target

    - *
  • - *
  • - *

    From any supported tag type to another. The three supported tag types are ID target, Tag - * target, and resource group. For more information, see Target.

    - *
  • - *
- * - *

If a parameter is null, then the corresponding field isn't modified.

- *
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, UpdateMaintenanceWindowTargetCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, UpdateMaintenanceWindowTargetCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // UpdateMaintenanceWindowTargetRequest - * WindowId: "STRING_VALUE", // required - * WindowTargetId: "STRING_VALUE", // required - * Targets: [ // Targets - * { // Target - * Key: "STRING_VALUE", - * Values: [ // TargetValues - * "STRING_VALUE", - * ], - * }, - * ], - * OwnerInformation: "STRING_VALUE", - * Name: "STRING_VALUE", - * Description: "STRING_VALUE", - * Replace: true || false, - * }; - * const command = new UpdateMaintenanceWindowTargetCommand(input); - * const response = await client.send(command); - * // { // UpdateMaintenanceWindowTargetResult - * // WindowId: "STRING_VALUE", - * // WindowTargetId: "STRING_VALUE", - * // Targets: [ // Targets - * // { // Target - * // Key: "STRING_VALUE", - * // Values: [ // TargetValues - * // "STRING_VALUE", - * // ], - * // }, - * // ], - * // OwnerInformation: "STRING_VALUE", - * // Name: "STRING_VALUE", - * // Description: "STRING_VALUE", - * // }; - * - * ``` - * - * @param UpdateMaintenanceWindowTargetCommandInput - {@link UpdateMaintenanceWindowTargetCommandInput} - * @returns {@link UpdateMaintenanceWindowTargetCommandOutput} - * @see {@link UpdateMaintenanceWindowTargetCommandInput} for command's `input` shape. - * @see {@link UpdateMaintenanceWindowTargetCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link DoesNotExistException} (client fault) - *

Error returned when the ID specified for a resource, such as a maintenance window or patch - * baseline, doesn't exist.

- *

For information about resource quotas in Amazon Web Services Systems Manager, see Systems Manager service quotas in the - * Amazon Web Services General Reference.

- * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class UpdateMaintenanceWindowTargetCommand extends $Command { - readonly input: UpdateMaintenanceWindowTargetCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: UpdateMaintenanceWindowTargetCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdateMaintenanceWindowTaskCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdateMaintenanceWindowTaskCommand.d.ts deleted file mode 100644 index 1f2d66be..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdateMaintenanceWindowTaskCommand.d.ts +++ /dev/null @@ -1,302 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { UpdateMaintenanceWindowTaskRequest, UpdateMaintenanceWindowTaskResult } from "../models/models_2"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link UpdateMaintenanceWindowTaskCommand}. - */ -export interface UpdateMaintenanceWindowTaskCommandInput extends UpdateMaintenanceWindowTaskRequest { -} -/** - * @public - * - * The output of {@link UpdateMaintenanceWindowTaskCommand}. - */ -export interface UpdateMaintenanceWindowTaskCommandOutput extends UpdateMaintenanceWindowTaskResult, __MetadataBearer { -} -/** - * @public - *

Modifies a task assigned to a maintenance window. You can't change the task type, but you - * can change the following values:

- *
    - *
  • - *

    - * TaskARN. For example, you can change a RUN_COMMAND task from - * AWS-RunPowerShellScript to AWS-RunShellScript.

    - *
  • - *
  • - *

    - * ServiceRoleArn - *

    - *
  • - *
  • - *

    - * TaskInvocationParameters - *

    - *
  • - *
  • - *

    - * Priority - *

    - *
  • - *
  • - *

    - * MaxConcurrency - *

    - *
  • - *
  • - *

    - * MaxErrors - *

    - *
  • - *
- * - *

One or more targets must be specified for maintenance window Run Command-type tasks. - * Depending on the task, targets are optional for other maintenance window task types (Automation, - * Lambda, and Step Functions). For more information about running tasks - * that don't specify targets, see Registering - * maintenance window tasks without targets in the - * Amazon Web Services Systems Manager User Guide.

- *
- *

If the value for a parameter in UpdateMaintenanceWindowTask is null, then the - * corresponding field isn't modified. If you set Replace to true, then all fields - * required by the RegisterTaskWithMaintenanceWindow operation are required for - * this request. Optional fields that aren't specified are set to null.

- * - *

When you update a maintenance window task that has options specified in - * TaskInvocationParameters, you must provide again all the - * TaskInvocationParameters values that you want to retain. The values you don't - * specify again are removed. For example, suppose that when you registered a Run Command task, you - * specified TaskInvocationParameters values for Comment, - * NotificationConfig, and OutputS3BucketName. If you update the - * maintenance window task and specify only a different OutputS3BucketName value, the - * values for Comment and NotificationConfig are removed.

- *
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, UpdateMaintenanceWindowTaskCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, UpdateMaintenanceWindowTaskCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // UpdateMaintenanceWindowTaskRequest - * WindowId: "STRING_VALUE", // required - * WindowTaskId: "STRING_VALUE", // required - * Targets: [ // Targets - * { // Target - * Key: "STRING_VALUE", - * Values: [ // TargetValues - * "STRING_VALUE", - * ], - * }, - * ], - * TaskArn: "STRING_VALUE", - * ServiceRoleArn: "STRING_VALUE", - * TaskParameters: { // MaintenanceWindowTaskParameters - * "": { // MaintenanceWindowTaskParameterValueExpression - * Values: [ // MaintenanceWindowTaskParameterValueList - * "STRING_VALUE", - * ], - * }, - * }, - * TaskInvocationParameters: { // MaintenanceWindowTaskInvocationParameters - * RunCommand: { // MaintenanceWindowRunCommandParameters - * Comment: "STRING_VALUE", - * CloudWatchOutputConfig: { // CloudWatchOutputConfig - * CloudWatchLogGroupName: "STRING_VALUE", - * CloudWatchOutputEnabled: true || false, - * }, - * DocumentHash: "STRING_VALUE", - * DocumentHashType: "Sha256" || "Sha1", - * DocumentVersion: "STRING_VALUE", - * NotificationConfig: { // NotificationConfig - * NotificationArn: "STRING_VALUE", - * NotificationEvents: [ // NotificationEventList - * "All" || "InProgress" || "Success" || "TimedOut" || "Cancelled" || "Failed", - * ], - * NotificationType: "Command" || "Invocation", - * }, - * OutputS3BucketName: "STRING_VALUE", - * OutputS3KeyPrefix: "STRING_VALUE", - * Parameters: { // Parameters - * "": [ // ParameterValueList - * "STRING_VALUE", - * ], - * }, - * ServiceRoleArn: "STRING_VALUE", - * TimeoutSeconds: Number("int"), - * }, - * Automation: { // MaintenanceWindowAutomationParameters - * DocumentVersion: "STRING_VALUE", - * Parameters: { // AutomationParameterMap - * "": [ // AutomationParameterValueList - * "STRING_VALUE", - * ], - * }, - * }, - * StepFunctions: { // MaintenanceWindowStepFunctionsParameters - * Input: "STRING_VALUE", - * Name: "STRING_VALUE", - * }, - * Lambda: { // MaintenanceWindowLambdaParameters - * ClientContext: "STRING_VALUE", - * Qualifier: "STRING_VALUE", - * Payload: "BLOB_VALUE", - * }, - * }, - * Priority: Number("int"), - * MaxConcurrency: "STRING_VALUE", - * MaxErrors: "STRING_VALUE", - * LoggingInfo: { // LoggingInfo - * S3BucketName: "STRING_VALUE", // required - * S3KeyPrefix: "STRING_VALUE", - * S3Region: "STRING_VALUE", // required - * }, - * Name: "STRING_VALUE", - * Description: "STRING_VALUE", - * Replace: true || false, - * CutoffBehavior: "CONTINUE_TASK" || "CANCEL_TASK", - * AlarmConfiguration: { // AlarmConfiguration - * IgnorePollAlarmFailure: true || false, - * Alarms: [ // AlarmList // required - * { // Alarm - * Name: "STRING_VALUE", // required - * }, - * ], - * }, - * }; - * const command = new UpdateMaintenanceWindowTaskCommand(input); - * const response = await client.send(command); - * // { // UpdateMaintenanceWindowTaskResult - * // WindowId: "STRING_VALUE", - * // WindowTaskId: "STRING_VALUE", - * // Targets: [ // Targets - * // { // Target - * // Key: "STRING_VALUE", - * // Values: [ // TargetValues - * // "STRING_VALUE", - * // ], - * // }, - * // ], - * // TaskArn: "STRING_VALUE", - * // ServiceRoleArn: "STRING_VALUE", - * // TaskParameters: { // MaintenanceWindowTaskParameters - * // "": { // MaintenanceWindowTaskParameterValueExpression - * // Values: [ // MaintenanceWindowTaskParameterValueList - * // "STRING_VALUE", - * // ], - * // }, - * // }, - * // TaskInvocationParameters: { // MaintenanceWindowTaskInvocationParameters - * // RunCommand: { // MaintenanceWindowRunCommandParameters - * // Comment: "STRING_VALUE", - * // CloudWatchOutputConfig: { // CloudWatchOutputConfig - * // CloudWatchLogGroupName: "STRING_VALUE", - * // CloudWatchOutputEnabled: true || false, - * // }, - * // DocumentHash: "STRING_VALUE", - * // DocumentHashType: "Sha256" || "Sha1", - * // DocumentVersion: "STRING_VALUE", - * // NotificationConfig: { // NotificationConfig - * // NotificationArn: "STRING_VALUE", - * // NotificationEvents: [ // NotificationEventList - * // "All" || "InProgress" || "Success" || "TimedOut" || "Cancelled" || "Failed", - * // ], - * // NotificationType: "Command" || "Invocation", - * // }, - * // OutputS3BucketName: "STRING_VALUE", - * // OutputS3KeyPrefix: "STRING_VALUE", - * // Parameters: { // Parameters - * // "": [ // ParameterValueList - * // "STRING_VALUE", - * // ], - * // }, - * // ServiceRoleArn: "STRING_VALUE", - * // TimeoutSeconds: Number("int"), - * // }, - * // Automation: { // MaintenanceWindowAutomationParameters - * // DocumentVersion: "STRING_VALUE", - * // Parameters: { // AutomationParameterMap - * // "": [ // AutomationParameterValueList - * // "STRING_VALUE", - * // ], - * // }, - * // }, - * // StepFunctions: { // MaintenanceWindowStepFunctionsParameters - * // Input: "STRING_VALUE", - * // Name: "STRING_VALUE", - * // }, - * // Lambda: { // MaintenanceWindowLambdaParameters - * // ClientContext: "STRING_VALUE", - * // Qualifier: "STRING_VALUE", - * // Payload: "BLOB_VALUE", - * // }, - * // }, - * // Priority: Number("int"), - * // MaxConcurrency: "STRING_VALUE", - * // MaxErrors: "STRING_VALUE", - * // LoggingInfo: { // LoggingInfo - * // S3BucketName: "STRING_VALUE", // required - * // S3KeyPrefix: "STRING_VALUE", - * // S3Region: "STRING_VALUE", // required - * // }, - * // Name: "STRING_VALUE", - * // Description: "STRING_VALUE", - * // CutoffBehavior: "CONTINUE_TASK" || "CANCEL_TASK", - * // AlarmConfiguration: { // AlarmConfiguration - * // IgnorePollAlarmFailure: true || false, - * // Alarms: [ // AlarmList // required - * // { // Alarm - * // Name: "STRING_VALUE", // required - * // }, - * // ], - * // }, - * // }; - * - * ``` - * - * @param UpdateMaintenanceWindowTaskCommandInput - {@link UpdateMaintenanceWindowTaskCommandInput} - * @returns {@link UpdateMaintenanceWindowTaskCommandOutput} - * @see {@link UpdateMaintenanceWindowTaskCommandInput} for command's `input` shape. - * @see {@link UpdateMaintenanceWindowTaskCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link DoesNotExistException} (client fault) - *

Error returned when the ID specified for a resource, such as a maintenance window or patch - * baseline, doesn't exist.

- *

For information about resource quotas in Amazon Web Services Systems Manager, see Systems Manager service quotas in the - * Amazon Web Services General Reference.

- * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class UpdateMaintenanceWindowTaskCommand extends $Command { - readonly input: UpdateMaintenanceWindowTaskCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: UpdateMaintenanceWindowTaskCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdateManagedInstanceRoleCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdateManagedInstanceRoleCommand.d.ts deleted file mode 100644 index 10a4bf6a..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdateManagedInstanceRoleCommand.d.ts +++ /dev/null @@ -1,97 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { UpdateManagedInstanceRoleRequest, UpdateManagedInstanceRoleResult } from "../models/models_2"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link UpdateManagedInstanceRoleCommand}. - */ -export interface UpdateManagedInstanceRoleCommandInput extends UpdateManagedInstanceRoleRequest { -} -/** - * @public - * - * The output of {@link UpdateManagedInstanceRoleCommand}. - */ -export interface UpdateManagedInstanceRoleCommandOutput extends UpdateManagedInstanceRoleResult, __MetadataBearer { -} -/** - * @public - *

Changes the Identity and Access Management (IAM) role that is assigned to the - * on-premises server, edge device, or virtual machines (VM). IAM roles are first - * assigned to these hybrid nodes during the activation process. For more information, see CreateActivation.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, UpdateManagedInstanceRoleCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, UpdateManagedInstanceRoleCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // UpdateManagedInstanceRoleRequest - * InstanceId: "STRING_VALUE", // required - * IamRole: "STRING_VALUE", // required - * }; - * const command = new UpdateManagedInstanceRoleCommand(input); - * const response = await client.send(command); - * // {}; - * - * ``` - * - * @param UpdateManagedInstanceRoleCommandInput - {@link UpdateManagedInstanceRoleCommandInput} - * @returns {@link UpdateManagedInstanceRoleCommandOutput} - * @see {@link UpdateManagedInstanceRoleCommandInput} for command's `input` shape. - * @see {@link UpdateManagedInstanceRoleCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link InvalidInstanceId} (client fault) - *

The following problems can cause this exception:

- *
    - *
  • - *

    You don't have permission to access the managed node.

    - *
  • - *
  • - *

    Amazon Web Services Systems Manager Agent(SSM Agent) isn't running. Verify that SSM Agent is - * running.

    - *
  • - *
  • - *

    SSM Agent isn't registered with the SSM endpoint. Try reinstalling SSM Agent.

    - *
  • - *
  • - *

    The managed node isn't in valid state. Valid states are: Running, - * Pending, Stopped, and Stopping. Invalid states are: - * Shutting-down and Terminated.

    - *
  • - *
- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class UpdateManagedInstanceRoleCommand extends $Command { - readonly input: UpdateManagedInstanceRoleCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: UpdateManagedInstanceRoleCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdateOpsItemCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdateOpsItemCommand.d.ts deleted file mode 100644 index 008c9b84..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdateOpsItemCommand.d.ts +++ /dev/null @@ -1,130 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { UpdateOpsItemRequest, UpdateOpsItemResponse } from "../models/models_2"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link UpdateOpsItemCommand}. - */ -export interface UpdateOpsItemCommandInput extends UpdateOpsItemRequest { -} -/** - * @public - * - * The output of {@link UpdateOpsItemCommand}. - */ -export interface UpdateOpsItemCommandOutput extends UpdateOpsItemResponse, __MetadataBearer { -} -/** - * @public - *

Edit or change an OpsItem. You must have permission in Identity and Access Management (IAM) to update an OpsItem. For more information, see Set up OpsCenter in the - * Amazon Web Services Systems Manager User Guide.

- *

Operations engineers and IT professionals use Amazon Web Services Systems Manager OpsCenter to view, investigate, and - * remediate operational issues impacting the performance and health of their Amazon Web Services resources. For - * more information, see OpsCenter in the - * Amazon Web Services Systems Manager User Guide.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, UpdateOpsItemCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, UpdateOpsItemCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // UpdateOpsItemRequest - * Description: "STRING_VALUE", - * OperationalData: { // OpsItemOperationalData - * "": { // OpsItemDataValue - * Value: "STRING_VALUE", - * Type: "SearchableString" || "String", - * }, - * }, - * OperationalDataToDelete: [ // OpsItemOpsDataKeysList - * "STRING_VALUE", - * ], - * Notifications: [ // OpsItemNotifications - * { // OpsItemNotification - * Arn: "STRING_VALUE", - * }, - * ], - * Priority: Number("int"), - * RelatedOpsItems: [ // RelatedOpsItems - * { // RelatedOpsItem - * OpsItemId: "STRING_VALUE", // required - * }, - * ], - * Status: "Open" || "InProgress" || "Resolved" || "Pending" || "TimedOut" || "Cancelling" || "Cancelled" || "Failed" || "CompletedWithSuccess" || "CompletedWithFailure" || "Scheduled" || "RunbookInProgress" || "PendingChangeCalendarOverride" || "ChangeCalendarOverrideApproved" || "ChangeCalendarOverrideRejected" || "PendingApproval" || "Approved" || "Rejected" || "Closed", - * OpsItemId: "STRING_VALUE", // required - * Title: "STRING_VALUE", - * Category: "STRING_VALUE", - * Severity: "STRING_VALUE", - * ActualStartTime: new Date("TIMESTAMP"), - * ActualEndTime: new Date("TIMESTAMP"), - * PlannedStartTime: new Date("TIMESTAMP"), - * PlannedEndTime: new Date("TIMESTAMP"), - * OpsItemArn: "STRING_VALUE", - * }; - * const command = new UpdateOpsItemCommand(input); - * const response = await client.send(command); - * // {}; - * - * ``` - * - * @param UpdateOpsItemCommandInput - {@link UpdateOpsItemCommandInput} - * @returns {@link UpdateOpsItemCommandOutput} - * @see {@link UpdateOpsItemCommandInput} for command's `input` shape. - * @see {@link UpdateOpsItemCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link OpsItemAccessDeniedException} (client fault) - *

You don't have permission to view OpsItems in the specified account. Verify that your account - * is configured either as a Systems Manager delegated administrator or that you are logged into the Organizations - * management account.

- * - * @throws {@link OpsItemAlreadyExistsException} (client fault) - *

The OpsItem already exists.

- * - * @throws {@link OpsItemConflictException} (client fault) - *

The specified OpsItem is in the process of being deleted.

- * - * @throws {@link OpsItemInvalidParameterException} (client fault) - *

A specified parameter argument isn't valid. Verify the available arguments and try - * again.

- * - * @throws {@link OpsItemLimitExceededException} (client fault) - *

The request caused OpsItems to exceed one or more quotas.

- * - * @throws {@link OpsItemNotFoundException} (client fault) - *

The specified OpsItem ID doesn't exist. Verify the ID and try again.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class UpdateOpsItemCommand extends $Command { - readonly input: UpdateOpsItemCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: UpdateOpsItemCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdateOpsMetadataCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdateOpsMetadataCommand.d.ts deleted file mode 100644 index 578db648..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdateOpsMetadataCommand.d.ts +++ /dev/null @@ -1,98 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { UpdateOpsMetadataRequest, UpdateOpsMetadataResult } from "../models/models_2"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link UpdateOpsMetadataCommand}. - */ -export interface UpdateOpsMetadataCommandInput extends UpdateOpsMetadataRequest { -} -/** - * @public - * - * The output of {@link UpdateOpsMetadataCommand}. - */ -export interface UpdateOpsMetadataCommandOutput extends UpdateOpsMetadataResult, __MetadataBearer { -} -/** - * @public - *

Amazon Web Services Systems Manager calls this API operation when you edit OpsMetadata in Application Manager.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, UpdateOpsMetadataCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, UpdateOpsMetadataCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // UpdateOpsMetadataRequest - * OpsMetadataArn: "STRING_VALUE", // required - * MetadataToUpdate: { // MetadataMap - * "": { // MetadataValue - * Value: "STRING_VALUE", - * }, - * }, - * KeysToDelete: [ // MetadataKeysToDeleteList - * "STRING_VALUE", - * ], - * }; - * const command = new UpdateOpsMetadataCommand(input); - * const response = await client.send(command); - * // { // UpdateOpsMetadataResult - * // OpsMetadataArn: "STRING_VALUE", - * // }; - * - * ``` - * - * @param UpdateOpsMetadataCommandInput - {@link UpdateOpsMetadataCommandInput} - * @returns {@link UpdateOpsMetadataCommandOutput} - * @see {@link UpdateOpsMetadataCommandInput} for command's `input` shape. - * @see {@link UpdateOpsMetadataCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link OpsMetadataInvalidArgumentException} (client fault) - *

One of the arguments passed is invalid.

- * - * @throws {@link OpsMetadataKeyLimitExceededException} (client fault) - *

The OpsMetadata object exceeds the maximum number of OpsMetadata keys that you can assign to - * an application in Application Manager.

- * - * @throws {@link OpsMetadataNotFoundException} (client fault) - *

The OpsMetadata object doesn't exist.

- * - * @throws {@link OpsMetadataTooManyUpdatesException} (client fault) - *

The system is processing too many concurrent updates. Wait a few moments and try - * again.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class UpdateOpsMetadataCommand extends $Command { - readonly input: UpdateOpsMetadataCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: UpdateOpsMetadataCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdatePatchBaselineCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdatePatchBaselineCommand.d.ts deleted file mode 100644 index c90e82b7..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdatePatchBaselineCommand.d.ts +++ /dev/null @@ -1,191 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { UpdatePatchBaselineRequest, UpdatePatchBaselineResult } from "../models/models_2"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link UpdatePatchBaselineCommand}. - */ -export interface UpdatePatchBaselineCommandInput extends UpdatePatchBaselineRequest { -} -/** - * @public - * - * The output of {@link UpdatePatchBaselineCommand}. - */ -export interface UpdatePatchBaselineCommandOutput extends UpdatePatchBaselineResult, __MetadataBearer { -} -/** - * @public - *

Modifies an existing patch baseline. Fields not specified in the request are left - * unchanged.

- * - *

For information about valid key-value pairs in PatchFilters for each supported - * operating system type, see PatchFilter.

- *
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, UpdatePatchBaselineCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, UpdatePatchBaselineCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // UpdatePatchBaselineRequest - * BaselineId: "STRING_VALUE", // required - * Name: "STRING_VALUE", - * GlobalFilters: { // PatchFilterGroup - * PatchFilters: [ // PatchFilterList // required - * { // PatchFilter - * Key: "ARCH" || "ADVISORY_ID" || "BUGZILLA_ID" || "PATCH_SET" || "PRODUCT" || "PRODUCT_FAMILY" || "CLASSIFICATION" || "CVE_ID" || "EPOCH" || "MSRC_SEVERITY" || "NAME" || "PATCH_ID" || "SECTION" || "PRIORITY" || "REPOSITORY" || "RELEASE" || "SEVERITY" || "SECURITY" || "VERSION", // required - * Values: [ // PatchFilterValueList // required - * "STRING_VALUE", - * ], - * }, - * ], - * }, - * ApprovalRules: { // PatchRuleGroup - * PatchRules: [ // PatchRuleList // required - * { // PatchRule - * PatchFilterGroup: { - * PatchFilters: [ // required - * { - * Key: "ARCH" || "ADVISORY_ID" || "BUGZILLA_ID" || "PATCH_SET" || "PRODUCT" || "PRODUCT_FAMILY" || "CLASSIFICATION" || "CVE_ID" || "EPOCH" || "MSRC_SEVERITY" || "NAME" || "PATCH_ID" || "SECTION" || "PRIORITY" || "REPOSITORY" || "RELEASE" || "SEVERITY" || "SECURITY" || "VERSION", // required - * Values: [ // required - * "STRING_VALUE", - * ], - * }, - * ], - * }, - * ComplianceLevel: "CRITICAL" || "HIGH" || "MEDIUM" || "LOW" || "INFORMATIONAL" || "UNSPECIFIED", - * ApproveAfterDays: Number("int"), - * ApproveUntilDate: "STRING_VALUE", - * EnableNonSecurity: true || false, - * }, - * ], - * }, - * ApprovedPatches: [ // PatchIdList - * "STRING_VALUE", - * ], - * ApprovedPatchesComplianceLevel: "CRITICAL" || "HIGH" || "MEDIUM" || "LOW" || "INFORMATIONAL" || "UNSPECIFIED", - * ApprovedPatchesEnableNonSecurity: true || false, - * RejectedPatches: [ - * "STRING_VALUE", - * ], - * RejectedPatchesAction: "ALLOW_AS_DEPENDENCY" || "BLOCK", - * Description: "STRING_VALUE", - * Sources: [ // PatchSourceList - * { // PatchSource - * Name: "STRING_VALUE", // required - * Products: [ // PatchSourceProductList // required - * "STRING_VALUE", - * ], - * Configuration: "STRING_VALUE", // required - * }, - * ], - * Replace: true || false, - * }; - * const command = new UpdatePatchBaselineCommand(input); - * const response = await client.send(command); - * // { // UpdatePatchBaselineResult - * // BaselineId: "STRING_VALUE", - * // Name: "STRING_VALUE", - * // OperatingSystem: "WINDOWS" || "AMAZON_LINUX" || "AMAZON_LINUX_2" || "AMAZON_LINUX_2022" || "UBUNTU" || "REDHAT_ENTERPRISE_LINUX" || "SUSE" || "CENTOS" || "ORACLE_LINUX" || "DEBIAN" || "MACOS" || "RASPBIAN" || "ROCKY_LINUX" || "ALMA_LINUX" || "AMAZON_LINUX_2023", - * // GlobalFilters: { // PatchFilterGroup - * // PatchFilters: [ // PatchFilterList // required - * // { // PatchFilter - * // Key: "ARCH" || "ADVISORY_ID" || "BUGZILLA_ID" || "PATCH_SET" || "PRODUCT" || "PRODUCT_FAMILY" || "CLASSIFICATION" || "CVE_ID" || "EPOCH" || "MSRC_SEVERITY" || "NAME" || "PATCH_ID" || "SECTION" || "PRIORITY" || "REPOSITORY" || "RELEASE" || "SEVERITY" || "SECURITY" || "VERSION", // required - * // Values: [ // PatchFilterValueList // required - * // "STRING_VALUE", - * // ], - * // }, - * // ], - * // }, - * // ApprovalRules: { // PatchRuleGroup - * // PatchRules: [ // PatchRuleList // required - * // { // PatchRule - * // PatchFilterGroup: { - * // PatchFilters: [ // required - * // { - * // Key: "ARCH" || "ADVISORY_ID" || "BUGZILLA_ID" || "PATCH_SET" || "PRODUCT" || "PRODUCT_FAMILY" || "CLASSIFICATION" || "CVE_ID" || "EPOCH" || "MSRC_SEVERITY" || "NAME" || "PATCH_ID" || "SECTION" || "PRIORITY" || "REPOSITORY" || "RELEASE" || "SEVERITY" || "SECURITY" || "VERSION", // required - * // Values: [ // required - * // "STRING_VALUE", - * // ], - * // }, - * // ], - * // }, - * // ComplianceLevel: "CRITICAL" || "HIGH" || "MEDIUM" || "LOW" || "INFORMATIONAL" || "UNSPECIFIED", - * // ApproveAfterDays: Number("int"), - * // ApproveUntilDate: "STRING_VALUE", - * // EnableNonSecurity: true || false, - * // }, - * // ], - * // }, - * // ApprovedPatches: [ // PatchIdList - * // "STRING_VALUE", - * // ], - * // ApprovedPatchesComplianceLevel: "CRITICAL" || "HIGH" || "MEDIUM" || "LOW" || "INFORMATIONAL" || "UNSPECIFIED", - * // ApprovedPatchesEnableNonSecurity: true || false, - * // RejectedPatches: [ - * // "STRING_VALUE", - * // ], - * // RejectedPatchesAction: "ALLOW_AS_DEPENDENCY" || "BLOCK", - * // CreatedDate: new Date("TIMESTAMP"), - * // ModifiedDate: new Date("TIMESTAMP"), - * // Description: "STRING_VALUE", - * // Sources: [ // PatchSourceList - * // { // PatchSource - * // Name: "STRING_VALUE", // required - * // Products: [ // PatchSourceProductList // required - * // "STRING_VALUE", - * // ], - * // Configuration: "STRING_VALUE", // required - * // }, - * // ], - * // }; - * - * ``` - * - * @param UpdatePatchBaselineCommandInput - {@link UpdatePatchBaselineCommandInput} - * @returns {@link UpdatePatchBaselineCommandOutput} - * @see {@link UpdatePatchBaselineCommandInput} for command's `input` shape. - * @see {@link UpdatePatchBaselineCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link DoesNotExistException} (client fault) - *

Error returned when the ID specified for a resource, such as a maintenance window or patch - * baseline, doesn't exist.

- *

For information about resource quotas in Amazon Web Services Systems Manager, see Systems Manager service quotas in the - * Amazon Web Services General Reference.

- * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class UpdatePatchBaselineCommand extends $Command { - readonly input: UpdatePatchBaselineCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: UpdatePatchBaselineCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdateResourceDataSyncCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdateResourceDataSyncCommand.d.ts deleted file mode 100644 index 42a18acb..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdateResourceDataSyncCommand.d.ts +++ /dev/null @@ -1,110 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { UpdateResourceDataSyncRequest, UpdateResourceDataSyncResult } from "../models/models_2"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link UpdateResourceDataSyncCommand}. - */ -export interface UpdateResourceDataSyncCommandInput extends UpdateResourceDataSyncRequest { -} -/** - * @public - * - * The output of {@link UpdateResourceDataSyncCommand}. - */ -export interface UpdateResourceDataSyncCommandOutput extends UpdateResourceDataSyncResult, __MetadataBearer { -} -/** - * @public - *

Update a resource data sync. After you create a resource data sync for a Region, you can't - * change the account options for that sync. For example, if you create a sync in the us-east-2 - * (Ohio) Region and you choose the Include only the current account option, you can't - * edit that sync later and choose the Include all accounts from my Organizations - * configuration option. Instead, you must delete the first resource data sync, and create a - * new one.

- * - *

This API operation only supports a resource data sync that was created with a - * SyncFromSource SyncType.

- *
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, UpdateResourceDataSyncCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, UpdateResourceDataSyncCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // UpdateResourceDataSyncRequest - * SyncName: "STRING_VALUE", // required - * SyncType: "STRING_VALUE", // required - * SyncSource: { // ResourceDataSyncSource - * SourceType: "STRING_VALUE", // required - * AwsOrganizationsSource: { // ResourceDataSyncAwsOrganizationsSource - * OrganizationSourceType: "STRING_VALUE", // required - * OrganizationalUnits: [ // ResourceDataSyncOrganizationalUnitList - * { // ResourceDataSyncOrganizationalUnit - * OrganizationalUnitId: "STRING_VALUE", - * }, - * ], - * }, - * SourceRegions: [ // ResourceDataSyncSourceRegionList // required - * "STRING_VALUE", - * ], - * IncludeFutureRegions: true || false, - * EnableAllOpsDataSources: true || false, - * }, - * }; - * const command = new UpdateResourceDataSyncCommand(input); - * const response = await client.send(command); - * // {}; - * - * ``` - * - * @param UpdateResourceDataSyncCommandInput - {@link UpdateResourceDataSyncCommandInput} - * @returns {@link UpdateResourceDataSyncCommandOutput} - * @see {@link UpdateResourceDataSyncCommandInput} for command's `input` shape. - * @see {@link UpdateResourceDataSyncCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link ResourceDataSyncConflictException} (client fault) - *

Another UpdateResourceDataSync request is being processed. Wait a few minutes - * and try again.

- * - * @throws {@link ResourceDataSyncInvalidConfigurationException} (client fault) - *

The specified sync configuration is invalid.

- * - * @throws {@link ResourceDataSyncNotFoundException} (client fault) - *

The specified sync name wasn't found.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class UpdateResourceDataSyncCommand extends $Command { - readonly input: UpdateResourceDataSyncCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: UpdateResourceDataSyncCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdateServiceSettingCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdateServiceSettingCommand.d.ts deleted file mode 100644 index 659b4d32..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/UpdateServiceSettingCommand.d.ts +++ /dev/null @@ -1,95 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { UpdateServiceSettingRequest, UpdateServiceSettingResult } from "../models/models_2"; -import { ServiceInputTypes, ServiceOutputTypes, SSMClientResolvedConfig } from "../SSMClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link UpdateServiceSettingCommand}. - */ -export interface UpdateServiceSettingCommandInput extends UpdateServiceSettingRequest { -} -/** - * @public - * - * The output of {@link UpdateServiceSettingCommand}. - */ -export interface UpdateServiceSettingCommandOutput extends UpdateServiceSettingResult, __MetadataBearer { -} -/** - * @public - *

- * ServiceSetting is an account-level setting for an Amazon Web Services service. This setting - * defines how a user interacts with or uses a service or a feature of a service. For example, if an - * Amazon Web Services service charges money to the account based on feature or service usage, then the Amazon Web Services - * service team might create a default setting of "false". This means the user can't use this - * feature unless they change the setting to "true" and intentionally opt in for a paid - * feature.

- *

Services map a SettingId object to a setting value. Amazon Web Services services teams define - * the default value for a SettingId. You can't create a new SettingId, - * but you can overwrite the default value if you have the ssm:UpdateServiceSetting - * permission for the setting. Use the GetServiceSetting API operation to view the - * current value. Or, use the ResetServiceSetting to change the value back to the - * original value defined by the Amazon Web Services service team.

- *

Update the service setting for the account.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSMClient, UpdateServiceSettingCommand } from "@aws-sdk/client-ssm"; // ES Modules import - * // const { SSMClient, UpdateServiceSettingCommand } = require("@aws-sdk/client-ssm"); // CommonJS import - * const client = new SSMClient(config); - * const input = { // UpdateServiceSettingRequest - * SettingId: "STRING_VALUE", // required - * SettingValue: "STRING_VALUE", // required - * }; - * const command = new UpdateServiceSettingCommand(input); - * const response = await client.send(command); - * // {}; - * - * ``` - * - * @param UpdateServiceSettingCommandInput - {@link UpdateServiceSettingCommandInput} - * @returns {@link UpdateServiceSettingCommandOutput} - * @see {@link UpdateServiceSettingCommandInput} for command's `input` shape. - * @see {@link UpdateServiceSettingCommandOutput} for command's `response` shape. - * @see {@link SSMClientResolvedConfig | config} for SSMClient's `config` shape. - * - * @throws {@link InternalServerError} (server fault) - *

An error occurred on the server side.

- * - * @throws {@link ServiceSettingNotFound} (client fault) - *

The specified service setting wasn't found. Either the service name or the setting hasn't - * been provisioned by the Amazon Web Services service team.

- * - * @throws {@link TooManyUpdates} (client fault) - *

There are concurrent updates for a resource that supports one update at a time.

- * - * @throws {@link SSMServiceException} - *

Base exception class for all service exceptions from SSM service.

- * - */ -export declare class UpdateServiceSettingCommand extends $Command { - readonly input: UpdateServiceSettingCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: UpdateServiceSettingCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSMClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/commands/index.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/commands/index.d.ts deleted file mode 100644 index ae442763..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/commands/index.d.ts +++ /dev/null @@ -1,139 +0,0 @@ -export * from "./AddTagsToResourceCommand"; -export * from "./AssociateOpsItemRelatedItemCommand"; -export * from "./CancelCommandCommand"; -export * from "./CancelMaintenanceWindowExecutionCommand"; -export * from "./CreateActivationCommand"; -export * from "./CreateAssociationBatchCommand"; -export * from "./CreateAssociationCommand"; -export * from "./CreateDocumentCommand"; -export * from "./CreateMaintenanceWindowCommand"; -export * from "./CreateOpsItemCommand"; -export * from "./CreateOpsMetadataCommand"; -export * from "./CreatePatchBaselineCommand"; -export * from "./CreateResourceDataSyncCommand"; -export * from "./DeleteActivationCommand"; -export * from "./DeleteAssociationCommand"; -export * from "./DeleteDocumentCommand"; -export * from "./DeleteInventoryCommand"; -export * from "./DeleteMaintenanceWindowCommand"; -export * from "./DeleteOpsItemCommand"; -export * from "./DeleteOpsMetadataCommand"; -export * from "./DeleteParameterCommand"; -export * from "./DeleteParametersCommand"; -export * from "./DeletePatchBaselineCommand"; -export * from "./DeleteResourceDataSyncCommand"; -export * from "./DeleteResourcePolicyCommand"; -export * from "./DeregisterManagedInstanceCommand"; -export * from "./DeregisterPatchBaselineForPatchGroupCommand"; -export * from "./DeregisterTargetFromMaintenanceWindowCommand"; -export * from "./DeregisterTaskFromMaintenanceWindowCommand"; -export * from "./DescribeActivationsCommand"; -export * from "./DescribeAssociationCommand"; -export * from "./DescribeAssociationExecutionTargetsCommand"; -export * from "./DescribeAssociationExecutionsCommand"; -export * from "./DescribeAutomationExecutionsCommand"; -export * from "./DescribeAutomationStepExecutionsCommand"; -export * from "./DescribeAvailablePatchesCommand"; -export * from "./DescribeDocumentCommand"; -export * from "./DescribeDocumentPermissionCommand"; -export * from "./DescribeEffectiveInstanceAssociationsCommand"; -export * from "./DescribeEffectivePatchesForPatchBaselineCommand"; -export * from "./DescribeInstanceAssociationsStatusCommand"; -export * from "./DescribeInstanceInformationCommand"; -export * from "./DescribeInstancePatchStatesCommand"; -export * from "./DescribeInstancePatchStatesForPatchGroupCommand"; -export * from "./DescribeInstancePatchesCommand"; -export * from "./DescribeInventoryDeletionsCommand"; -export * from "./DescribeMaintenanceWindowExecutionTaskInvocationsCommand"; -export * from "./DescribeMaintenanceWindowExecutionTasksCommand"; -export * from "./DescribeMaintenanceWindowExecutionsCommand"; -export * from "./DescribeMaintenanceWindowScheduleCommand"; -export * from "./DescribeMaintenanceWindowTargetsCommand"; -export * from "./DescribeMaintenanceWindowTasksCommand"; -export * from "./DescribeMaintenanceWindowsCommand"; -export * from "./DescribeMaintenanceWindowsForTargetCommand"; -export * from "./DescribeOpsItemsCommand"; -export * from "./DescribeParametersCommand"; -export * from "./DescribePatchBaselinesCommand"; -export * from "./DescribePatchGroupStateCommand"; -export * from "./DescribePatchGroupsCommand"; -export * from "./DescribePatchPropertiesCommand"; -export * from "./DescribeSessionsCommand"; -export * from "./DisassociateOpsItemRelatedItemCommand"; -export * from "./GetAutomationExecutionCommand"; -export * from "./GetCalendarStateCommand"; -export * from "./GetCommandInvocationCommand"; -export * from "./GetConnectionStatusCommand"; -export * from "./GetDefaultPatchBaselineCommand"; -export * from "./GetDeployablePatchSnapshotForInstanceCommand"; -export * from "./GetDocumentCommand"; -export * from "./GetInventoryCommand"; -export * from "./GetInventorySchemaCommand"; -export * from "./GetMaintenanceWindowCommand"; -export * from "./GetMaintenanceWindowExecutionCommand"; -export * from "./GetMaintenanceWindowExecutionTaskCommand"; -export * from "./GetMaintenanceWindowExecutionTaskInvocationCommand"; -export * from "./GetMaintenanceWindowTaskCommand"; -export * from "./GetOpsItemCommand"; -export * from "./GetOpsMetadataCommand"; -export * from "./GetOpsSummaryCommand"; -export * from "./GetParameterCommand"; -export * from "./GetParameterHistoryCommand"; -export * from "./GetParametersByPathCommand"; -export * from "./GetParametersCommand"; -export * from "./GetPatchBaselineCommand"; -export * from "./GetPatchBaselineForPatchGroupCommand"; -export * from "./GetResourcePoliciesCommand"; -export * from "./GetServiceSettingCommand"; -export * from "./LabelParameterVersionCommand"; -export * from "./ListAssociationVersionsCommand"; -export * from "./ListAssociationsCommand"; -export * from "./ListCommandInvocationsCommand"; -export * from "./ListCommandsCommand"; -export * from "./ListComplianceItemsCommand"; -export * from "./ListComplianceSummariesCommand"; -export * from "./ListDocumentMetadataHistoryCommand"; -export * from "./ListDocumentVersionsCommand"; -export * from "./ListDocumentsCommand"; -export * from "./ListInventoryEntriesCommand"; -export * from "./ListOpsItemEventsCommand"; -export * from "./ListOpsItemRelatedItemsCommand"; -export * from "./ListOpsMetadataCommand"; -export * from "./ListResourceComplianceSummariesCommand"; -export * from "./ListResourceDataSyncCommand"; -export * from "./ListTagsForResourceCommand"; -export * from "./ModifyDocumentPermissionCommand"; -export * from "./PutComplianceItemsCommand"; -export * from "./PutInventoryCommand"; -export * from "./PutParameterCommand"; -export * from "./PutResourcePolicyCommand"; -export * from "./RegisterDefaultPatchBaselineCommand"; -export * from "./RegisterPatchBaselineForPatchGroupCommand"; -export * from "./RegisterTargetWithMaintenanceWindowCommand"; -export * from "./RegisterTaskWithMaintenanceWindowCommand"; -export * from "./RemoveTagsFromResourceCommand"; -export * from "./ResetServiceSettingCommand"; -export * from "./ResumeSessionCommand"; -export * from "./SendAutomationSignalCommand"; -export * from "./SendCommandCommand"; -export * from "./StartAssociationsOnceCommand"; -export * from "./StartAutomationExecutionCommand"; -export * from "./StartChangeRequestExecutionCommand"; -export * from "./StartSessionCommand"; -export * from "./StopAutomationExecutionCommand"; -export * from "./TerminateSessionCommand"; -export * from "./UnlabelParameterVersionCommand"; -export * from "./UpdateAssociationCommand"; -export * from "./UpdateAssociationStatusCommand"; -export * from "./UpdateDocumentCommand"; -export * from "./UpdateDocumentDefaultVersionCommand"; -export * from "./UpdateDocumentMetadataCommand"; -export * from "./UpdateMaintenanceWindowCommand"; -export * from "./UpdateMaintenanceWindowTargetCommand"; -export * from "./UpdateMaintenanceWindowTaskCommand"; -export * from "./UpdateManagedInstanceRoleCommand"; -export * from "./UpdateOpsItemCommand"; -export * from "./UpdateOpsMetadataCommand"; -export * from "./UpdatePatchBaselineCommand"; -export * from "./UpdateResourceDataSyncCommand"; -export * from "./UpdateServiceSettingCommand"; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/endpoint/EndpointParameters.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/endpoint/EndpointParameters.d.ts deleted file mode 100644 index 4cdfd2ad..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/endpoint/EndpointParameters.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@smithy/types"; -/** - * @public - */ -export interface ClientInputEndpointParameters { - region?: string | Provider; - useDualstackEndpoint?: boolean | Provider; - useFipsEndpoint?: boolean | Provider; - endpoint?: string | Provider | Endpoint | Provider | EndpointV2 | Provider; -} -export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & { - defaultSigningName: string; -}; -export declare const resolveClientEndpointParameters: (options: T & ClientInputEndpointParameters) => T & ClientInputEndpointParameters & { - defaultSigningName: string; -}; -export interface EndpointParameters extends __EndpointParameters { - Region?: string; - UseDualStack?: boolean; - UseFIPS?: boolean; - Endpoint?: string; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/endpoint/endpointResolver.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/endpoint/endpointResolver.d.ts deleted file mode 100644 index 70a8eaec..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/endpoint/endpointResolver.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { EndpointV2, Logger } from "@smithy/types"; -import { EndpointParameters } from "./EndpointParameters"; -export declare const defaultEndpointResolver: (endpointParams: EndpointParameters, context?: { - logger?: Logger; -}) => EndpointV2; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/endpoint/ruleset.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/endpoint/ruleset.d.ts deleted file mode 100644 index 4b238994..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/endpoint/ruleset.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { RuleSetObject } from "@smithy/types"; -export declare const ruleSet: RuleSetObject; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/extensionConfiguration.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/extensionConfiguration.d.ts deleted file mode 100644 index 861e8b74..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/extensionConfiguration.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { AwsRegionExtensionConfiguration } from "@aws-sdk/types"; -import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http"; -import { DefaultExtensionConfiguration } from "@smithy/types"; -/** - * @internal - */ -export interface SSMExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration, AwsRegionExtensionConfiguration { -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/index.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/index.d.ts deleted file mode 100644 index 348343d0..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/index.d.ts +++ /dev/null @@ -1,51 +0,0 @@ -/** - *

Amazon Web Services Systems Manager is the operations hub for your Amazon Web Services applications and resources and a secure - * end-to-end management solution for hybrid cloud environments that enables safe and secure - * operations at scale.

- *

This reference is intended to be used with the Amazon Web Services Systems Manager User Guide. To get started, see Setting up Amazon Web Services Systems Manager.

- *

- * Related resources - *

- * - * - * @packageDocumentation - */ -export * from "./SSMClient"; -export * from "./SSM"; -export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters"; -export { RuntimeExtension } from "./runtimeExtensions"; -export { SSMExtensionConfiguration } from "./extensionConfiguration"; -export * from "./commands"; -export * from "./pagination"; -export * from "./waiters"; -export * from "./models"; -import "@aws-sdk/util-endpoints"; -export { SSMServiceException } from "./models/SSMServiceException"; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/models/SSMServiceException.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/models/SSMServiceException.d.ts deleted file mode 100644 index d496b35c..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/models/SSMServiceException.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@smithy/smithy-client"; -export { __ServiceException, __ServiceExceptionOptions }; -/** - * @public - * - * Base exception class for all service exceptions from SSM service. - */ -export declare class SSMServiceException extends __ServiceException { - /** - * @internal - */ - constructor(options: __ServiceExceptionOptions); -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/models/index.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/models/index.d.ts deleted file mode 100644 index fd6a6aae..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/models/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * from "./models_0"; -export * from "./models_1"; -export * from "./models_2"; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/models/models_0.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/models/models_0.d.ts deleted file mode 100644 index 7d8a2b69..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/models/models_0.d.ts +++ /dev/null @@ -1,7976 +0,0 @@ -import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; -import { SSMServiceException as __BaseException } from "./SSMServiceException"; -/** - * @public - *

Information includes the Amazon Web Services account ID where the current document is shared and the - * version shared with that account.

- */ -export interface AccountSharingInfo { - /** - * @public - *

The Amazon Web Services account ID where the current document is shared.

- */ - AccountId?: string; - /** - * @public - *

The version of the current document shared with the account.

- */ - SharedDocumentVersion?: string; -} -/** - * @public - *

Metadata that you assign to your Amazon Web Services resources. Tags enable you to categorize your - * resources in different ways, for example, by purpose, owner, or environment. In Amazon Web Services Systems Manager, you - * can apply tags to Systems Manager documents (SSM documents), managed nodes, maintenance windows, - * parameters, patch baselines, OpsItems, and OpsMetadata.

- */ -export interface Tag { - /** - * @public - *

The name of the tag.

- */ - Key: string | undefined; - /** - * @public - *

The value of the tag.

- */ - Value: string | undefined; -} -/** - * @public - *

An activation registers one or more on-premises servers or virtual machines (VMs) with Amazon Web Services - * so that you can configure those servers or VMs using Run Command. A server or VM that has been - * registered with Amazon Web Services Systems Manager is called a managed node.

- */ -export interface Activation { - /** - * @public - *

The ID created by Systems Manager when you submitted the activation.

- */ - ActivationId?: string; - /** - * @public - *

A user defined description of the activation.

- */ - Description?: string; - /** - * @public - *

A name for the managed node when it is created.

- */ - DefaultInstanceName?: string; - /** - * @public - *

The Identity and Access Management (IAM) role to assign to the managed node.

- */ - IamRole?: string; - /** - * @public - *

The maximum number of managed nodes that can be registered using this activation.

- */ - RegistrationLimit?: number; - /** - * @public - *

The number of managed nodes already registered with this activation.

- */ - RegistrationsCount?: number; - /** - * @public - *

The date when this activation can no longer be used to register managed nodes.

- */ - ExpirationDate?: Date; - /** - * @public - *

Whether or not the activation is expired.

- */ - Expired?: boolean; - /** - * @public - *

The date the activation was created.

- */ - CreatedDate?: Date; - /** - * @public - *

Tags assigned to the activation.

- */ - Tags?: Tag[]; -} -/** - * @public - * @enum - */ -export declare const ResourceTypeForTagging: { - readonly ASSOCIATION: "Association"; - readonly AUTOMATION: "Automation"; - readonly DOCUMENT: "Document"; - readonly MAINTENANCE_WINDOW: "MaintenanceWindow"; - readonly MANAGED_INSTANCE: "ManagedInstance"; - readonly OPSMETADATA: "OpsMetadata"; - readonly OPS_ITEM: "OpsItem"; - readonly PARAMETER: "Parameter"; - readonly PATCH_BASELINE: "PatchBaseline"; -}; -/** - * @public - */ -export type ResourceTypeForTagging = (typeof ResourceTypeForTagging)[keyof typeof ResourceTypeForTagging]; -/** - * @public - */ -export interface AddTagsToResourceRequest { - /** - * @public - *

Specifies the type of resource you are tagging.

- * - *

The ManagedInstance type for this API operation is for on-premises managed - * nodes. You must specify the name of the managed node in the following format: - * mi-ID_number - * . For example, - * mi-1a2b3c4d5e6f.

- *
- */ - ResourceType: ResourceTypeForTagging | undefined; - /** - * @public - *

The resource ID you want to tag.

- *

Use the ID of the resource. Here are some examples:

- *

- * MaintenanceWindow: mw-012345abcde - *

- *

- * PatchBaseline: pb-012345abcde - *

- *

- * Automation: example-c160-4567-8519-012345abcde - *

- *

- * OpsMetadata object: ResourceID for tagging is created from the - * Amazon Resource Name (ARN) for the object. Specifically, ResourceID is created from - * the strings that come after the word opsmetadata in the ARN. For example, an - * OpsMetadata object with an ARN of - * arn:aws:ssm:us-east-2:1234567890:opsmetadata/aws/ssm/MyGroup/appmanager has a - * ResourceID of either aws/ssm/MyGroup/appmanager or - * /aws/ssm/MyGroup/appmanager.

- *

For the Document and Parameter values, use the name of the - * resource. If you're tagging a shared document, you must use the full ARN of the document.

- *

- * ManagedInstance: mi-012345abcde - *

- * - *

The ManagedInstance type for this API operation is only for on-premises - * managed nodes. You must specify the name of the managed node in the following format: - * mi-ID_number - * . For example, - * mi-1a2b3c4d5e6f.

- *
- */ - ResourceId: string | undefined; - /** - * @public - *

One or more tags. The value parameter is required.

- * - *

Don't enter personally identifiable information in this field.

- *
- */ - Tags: Tag[] | undefined; -} -/** - * @public - */ -export interface AddTagsToResourceResult { -} -/** - * @public - *

An error occurred on the server side.

- */ -export declare class InternalServerError extends __BaseException { - readonly name: "InternalServerError"; - readonly $fault: "server"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

The resource ID isn't valid. Verify that you entered the correct ID and try again.

- */ -export declare class InvalidResourceId extends __BaseException { - readonly name: "InvalidResourceId"; - readonly $fault: "client"; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

The resource type isn't valid. For example, if you are attempting to tag an EC2 instance, - * the instance must be a registered managed node.

- */ -export declare class InvalidResourceType extends __BaseException { - readonly name: "InvalidResourceType"; - readonly $fault: "client"; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

The Targets parameter includes too many tags. Remove one or more tags and try - * the command again.

- */ -export declare class TooManyTagsError extends __BaseException { - readonly name: "TooManyTagsError"; - readonly $fault: "client"; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

There are concurrent updates for a resource that supports one update at a time.

- */ -export declare class TooManyUpdates extends __BaseException { - readonly name: "TooManyUpdates"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

A CloudWatch alarm you apply to an automation or command.

- */ -export interface Alarm { - /** - * @public - *

The name of your CloudWatch alarm.

- */ - Name: string | undefined; -} -/** - * @public - *

The details for the CloudWatch alarm you want to apply to an automation or - * command.

- */ -export interface AlarmConfiguration { - /** - * @public - *

When this value is true, your automation or command continues to run in - * cases where we can’t retrieve alarm status information from CloudWatch. In cases - * where we successfully retrieve an alarm status of OK or INSUFFICIENT_DATA, the automation or - * command continues to run, regardless of this value. Default is false.

- */ - IgnorePollAlarmFailure?: boolean; - /** - * @public - *

The name of the CloudWatch alarm specified in the configuration.

- */ - Alarms: Alarm[] | undefined; -} -/** - * @public - * @enum - */ -export declare const ExternalAlarmState: { - readonly ALARM: "ALARM"; - readonly UNKNOWN: "UNKNOWN"; -}; -/** - * @public - */ -export type ExternalAlarmState = (typeof ExternalAlarmState)[keyof typeof ExternalAlarmState]; -/** - * @public - *

The details about the state of your CloudWatch alarm.

- */ -export interface AlarmStateInformation { - /** - * @public - *

The name of your CloudWatch alarm.

- */ - Name: string | undefined; - /** - * @public - *

The state of your CloudWatch alarm.

- */ - State: ExternalAlarmState | undefined; -} -/** - * @public - *

Error returned if an attempt is made to register a patch group with a patch baseline that is - * already registered with a different patch baseline.

- */ -export declare class AlreadyExistsException extends __BaseException { - readonly name: "AlreadyExistsException"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - */ -export interface AssociateOpsItemRelatedItemRequest { - /** - * @public - *

The ID of the OpsItem to which you want to associate a resource as a related item.

- */ - OpsItemId: string | undefined; - /** - * @public - *

The type of association that you want to create between an OpsItem and a resource. OpsCenter - * supports IsParentOf and RelatesTo association types.

- */ - AssociationType: string | undefined; - /** - * @public - *

The type of resource that you want to associate with an OpsItem. OpsCenter supports the - * following types:

- *

- * AWS::SSMIncidents::IncidentRecord: an Incident Manager incident.

- *

- * AWS::SSM::Document: a Systems Manager (SSM) document.

- */ - ResourceType: string | undefined; - /** - * @public - *

The Amazon Resource Name (ARN) of the Amazon Web Services resource that you want to associate with the - * OpsItem.

- */ - ResourceUri: string | undefined; -} -/** - * @public - */ -export interface AssociateOpsItemRelatedItemResponse { - /** - * @public - *

The association ID.

- */ - AssociationId?: string; -} -/** - * @public - *

The specified OpsItem is in the process of being deleted.

- */ -export declare class OpsItemConflictException extends __BaseException { - readonly name: "OpsItemConflictException"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

A specified parameter argument isn't valid. Verify the available arguments and try - * again.

- */ -export declare class OpsItemInvalidParameterException extends __BaseException { - readonly name: "OpsItemInvalidParameterException"; - readonly $fault: "client"; - ParameterNames?: string[]; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

The request caused OpsItems to exceed one or more quotas.

- */ -export declare class OpsItemLimitExceededException extends __BaseException { - readonly name: "OpsItemLimitExceededException"; - readonly $fault: "client"; - ResourceTypes?: string[]; - Limit?: number; - LimitType?: string; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

The specified OpsItem ID doesn't exist. Verify the ID and try again.

- */ -export declare class OpsItemNotFoundException extends __BaseException { - readonly name: "OpsItemNotFoundException"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

The Amazon Resource Name (ARN) is already associated with the OpsItem.

- */ -export declare class OpsItemRelatedItemAlreadyExistsException extends __BaseException { - readonly name: "OpsItemRelatedItemAlreadyExistsException"; - readonly $fault: "client"; - Message?: string; - ResourceUri?: string; - OpsItemId?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

- */ -export interface CancelCommandRequest { - /** - * @public - *

The ID of the command you want to cancel.

- */ - CommandId: string | undefined; - /** - * @public - *

(Optional) A list of managed node IDs on which you want to cancel the command. If not - * provided, the command is canceled on every node on which it was requested.

- */ - InstanceIds?: string[]; -} -/** - * @public - *

Whether or not the command was successfully canceled. There is no guarantee that a request - * can be canceled.

- */ -export interface CancelCommandResult { -} -/** - * @public - *

You can't specify a managed node ID in more than one association.

- */ -export declare class DuplicateInstanceId extends __BaseException { - readonly name: "DuplicateInstanceId"; - readonly $fault: "client"; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

The specified command ID isn't valid. Verify the ID and try again.

- */ -export declare class InvalidCommandId extends __BaseException { - readonly name: "InvalidCommandId"; - readonly $fault: "client"; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

The following problems can cause this exception:

- *
    - *
  • - *

    You don't have permission to access the managed node.

    - *
  • - *
  • - *

    Amazon Web Services Systems Manager Agent(SSM Agent) isn't running. Verify that SSM Agent is - * running.

    - *
  • - *
  • - *

    SSM Agent isn't registered with the SSM endpoint. Try reinstalling SSM Agent.

    - *
  • - *
  • - *

    The managed node isn't in valid state. Valid states are: Running, - * Pending, Stopped, and Stopping. Invalid states are: - * Shutting-down and Terminated.

    - *
  • - *
- */ -export declare class InvalidInstanceId extends __BaseException { - readonly name: "InvalidInstanceId"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - */ -export interface CancelMaintenanceWindowExecutionRequest { - /** - * @public - *

The ID of the maintenance window execution to stop.

- */ - WindowExecutionId: string | undefined; -} -/** - * @public - */ -export interface CancelMaintenanceWindowExecutionResult { - /** - * @public - *

The ID of the maintenance window execution that has been stopped.

- */ - WindowExecutionId?: string; -} -/** - * @public - *

Error returned when the ID specified for a resource, such as a maintenance window or patch - * baseline, doesn't exist.

- *

For information about resource quotas in Amazon Web Services Systems Manager, see Systems Manager service quotas in the - * Amazon Web Services General Reference.

- */ -export declare class DoesNotExistException extends __BaseException { - readonly name: "DoesNotExistException"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

Reserved for internal use.

- */ -export interface RegistrationMetadataItem { - /** - * @public - *

Reserved for internal use.

- */ - Key: string | undefined; - /** - * @public - *

Reserved for internal use.

- */ - Value: string | undefined; -} -/** - * @public - */ -export interface CreateActivationRequest { - /** - * @public - *

A user-defined description of the resource that you want to register with Systems Manager.

- * - *

Don't enter personally identifiable information in this field.

- *
- */ - Description?: string; - /** - * @public - *

The name of the registered, managed node as it will appear in the Amazon Web Services Systems Manager console or when - * you use the Amazon Web Services command line tools to list Systems Manager resources.

- * - *

Don't enter personally identifiable information in this field.

- *
- */ - DefaultInstanceName?: string; - /** - * @public - *

The name of the Identity and Access Management (IAM) role that you want to assign to - * the managed node. This IAM role must provide AssumeRole permissions for the - * Amazon Web Services Systems Manager service principal ssm.amazonaws.com. For more information, see Create an - * IAM service role for a hybrid environment in the - * Amazon Web Services Systems Manager User Guide.

- * - *

You can't specify an IAM service-linked role for this parameter. You must - * create a unique role.

- *
- */ - IamRole: string | undefined; - /** - * @public - *

Specify the maximum number of managed nodes you want to register. The default value is - * 1.

- */ - RegistrationLimit?: number; - /** - * @public - *

The date by which this activation request should expire, in timestamp format, such as - * "2021-07-07T00:00:00". You can specify a date up to 30 days in advance. If you don't provide an - * expiration date, the activation code expires in 24 hours.

- */ - ExpirationDate?: Date; - /** - * @public - *

Optional metadata that you assign to a resource. Tags enable you to categorize a resource in - * different ways, such as by purpose, owner, or environment. For example, you might want to tag an - * activation to identify which servers or virtual machines (VMs) in your on-premises environment - * you intend to activate. In this case, you could specify the following key-value pairs:

- *
    - *
  • - *

    - * Key=OS,Value=Windows - *

    - *
  • - *
  • - *

    - * Key=Environment,Value=Production - *

    - *
  • - *
- * - *

When you install SSM Agent on your on-premises servers and VMs, you specify an activation ID - * and code. When you specify the activation ID and code, tags assigned to the activation are - * automatically applied to the on-premises servers or VMs.

- *
- *

You can't add tags to or delete tags from an existing activation. You can tag your - * on-premises servers, edge devices, and VMs after they connect to Systems Manager for the first time and are - * assigned a managed node ID. This means they are listed in the Amazon Web Services Systems Manager console with an ID that - * is prefixed with "mi-". For information about how to add tags to your managed nodes, see AddTagsToResource. For information about how to remove tags from your managed nodes, - * see RemoveTagsFromResource.

- */ - Tags?: Tag[]; - /** - * @public - *

Reserved for internal use.

- */ - RegistrationMetadata?: RegistrationMetadataItem[]; -} -/** - * @public - */ -export interface CreateActivationResult { - /** - * @public - *

The ID number generated by the system when it processed the activation. The activation ID - * functions like a user name.

- */ - ActivationId?: string; - /** - * @public - *

The code the system generates when it processes the activation. The activation code - * functions like a password to validate the activation ID.

- */ - ActivationCode?: string; -} -/** - * @public - *

You must specify values for all required parameters in the Amazon Web Services Systems Manager document (SSM - * document). You can only supply values to parameters defined in the SSM document.

- */ -export declare class InvalidParameters extends __BaseException { - readonly name: "InvalidParameters"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

The specified association already exists.

- */ -export declare class AssociationAlreadyExists extends __BaseException { - readonly name: "AssociationAlreadyExists"; - readonly $fault: "client"; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

You can have at most 2,000 active associations.

- */ -export declare class AssociationLimitExceeded extends __BaseException { - readonly name: "AssociationLimitExceeded"; - readonly $fault: "client"; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - * @enum - */ -export declare const AssociationComplianceSeverity: { - readonly Critical: "CRITICAL"; - readonly High: "HIGH"; - readonly Low: "LOW"; - readonly Medium: "MEDIUM"; - readonly Unspecified: "UNSPECIFIED"; -}; -/** - * @public - */ -export type AssociationComplianceSeverity = (typeof AssociationComplianceSeverity)[keyof typeof AssociationComplianceSeverity]; -/** - * @public - *

An S3 bucket where you want to store the results of this request.

- */ -export interface S3OutputLocation { - /** - * @public - *

The Amazon Web Services Region of the S3 bucket.

- */ - OutputS3Region?: string; - /** - * @public - *

The name of the S3 bucket.

- */ - OutputS3BucketName?: string; - /** - * @public - *

The S3 bucket subfolder.

- */ - OutputS3KeyPrefix?: string; -} -/** - * @public - *

An S3 bucket where you want to store the results of this request.

- *

For the minimal permissions required to enable Amazon S3 output for an association, - * see Creating associations in the Systems Manager User Guide.

- */ -export interface InstanceAssociationOutputLocation { - /** - * @public - *

An S3 bucket where you want to store the results of this request.

- */ - S3Location?: S3OutputLocation; -} -/** - * @public - * @enum - */ -export declare const AssociationSyncCompliance: { - readonly Auto: "AUTO"; - readonly Manual: "MANUAL"; -}; -/** - * @public - */ -export type AssociationSyncCompliance = (typeof AssociationSyncCompliance)[keyof typeof AssociationSyncCompliance]; -/** - * @public - *

The combination of Amazon Web Services Regions and Amazon Web Services accounts targeted by the current Automation - * execution.

- */ -export interface TargetLocation { - /** - * @public - *

The Amazon Web Services accounts targeted by the current Automation execution.

- */ - Accounts?: string[]; - /** - * @public - *

The Amazon Web Services Regions targeted by the current Automation execution.

- */ - Regions?: string[]; - /** - * @public - *

The maximum number of Amazon Web Services Regions and Amazon Web Services accounts allowed to run the Automation - * concurrently.

- */ - TargetLocationMaxConcurrency?: string; - /** - * @public - *

The maximum number of errors allowed before the system stops queueing additional Automation - * executions for the currently running Automation.

- */ - TargetLocationMaxErrors?: string; - /** - * @public - *

The Automation execution role used by the currently running Automation. If not specified, - * the default value is AWS-SystemsManager-AutomationExecutionRole.

- */ - ExecutionRoleName?: string; - /** - * @public - *

The details for the CloudWatch alarm you want to apply to an automation or - * command.

- */ - TargetLocationAlarmConfiguration?: AlarmConfiguration; -} -/** - * @public - *

An array of search criteria that targets managed nodes using a key-value pair that you - * specify.

- * - *

One or more targets must be specified for maintenance window Run Command-type tasks. - * Depending on the task, targets are optional for other maintenance window task types (Automation, - * Lambda, and Step Functions). For more information about running tasks - * that don't specify targets, see Registering - * maintenance window tasks without targets in the - * Amazon Web Services Systems Manager User Guide.

- *
- *

Supported formats include the following.

- *
    - *
  • - *

    - * Key=InstanceIds,Values=,, - *

    - *
  • - *
  • - *

    - * Key=tag:,Values=, - *

    - *
  • - *
  • - *

    - * Key=tag-key,Values=, - *

    - *
  • - *
  • - *

    - * Run Command and Maintenance window targets only: - * Key=resource-groups:Name,Values= - *

    - *
  • - *
  • - *

    - * Maintenance window targets only: - * Key=resource-groups:ResourceTypeFilters,Values=, - *

    - *
  • - *
  • - *

    - * Automation targets only: - * Key=ResourceGroup;Values= - *

    - *
  • - *
- *

For example:

- *
    - *
  • - *

    - * Key=InstanceIds,Values=i-02573cafcfEXAMPLE,i-0471e04240EXAMPLE,i-07782c72faEXAMPLE - *

    - *
  • - *
  • - *

    - * Key=tag:CostCenter,Values=CostCenter1,CostCenter2,CostCenter3 - *

    - *
  • - *
  • - *

    - * Key=tag-key,Values=Name,Instance-Type,CostCenter - *

    - *
  • - *
  • - *

    - * Run Command and Maintenance window targets only: - * Key=resource-groups:Name,Values=ProductionResourceGroup - *

    - *

    This example demonstrates how to target all resources in the resource group ProductionResourceGroup in your maintenance window.

    - *
  • - *
  • - *

    - * Maintenance window targets only: - * Key=resource-groups:ResourceTypeFilters,Values=AWS::EC2::INSTANCE,AWS::EC2::VPC - *

    - *

    This example demonstrates how to target only Amazon Elastic Compute Cloud (Amazon EC2) - * instances and VPCs in your maintenance window.

    - *
  • - *
  • - *

    - * Automation targets only: - * Key=ResourceGroup,Values=MyResourceGroup - *

    - *
  • - *
  • - *

    - * State Manager association targets only: - * Key=InstanceIds,Values=* - *

    - *

    This example demonstrates how to target all managed instances in the Amazon Web Services Region where - * the association was created.

    - *
  • - *
- *

For more information about how to send commands that target managed nodes using - * Key,Value parameters, see Targeting multiple instances in the Amazon Web Services Systems Manager User Guide.

- */ -export interface Target { - /** - * @public - *

User-defined criteria for sending commands that target managed nodes that meet the - * criteria.

- */ - Key?: string; - /** - * @public - *

User-defined criteria that maps to Key. For example, if you specified - * tag:ServerRole, you could specify value:WebServer to run a command on - * instances that include EC2 tags of ServerRole,WebServer.

- *

Depending on the type of target, the maximum number of values for a key might be lower than - * the global maximum of 50.

- */ - Values?: string[]; -} -/** - * @public - */ -export interface CreateAssociationRequest { - /** - * @public - *

The name of the SSM Command document or Automation runbook that contains the configuration - * information for the managed node.

- *

You can specify Amazon Web Services-predefined documents, documents you created, or a document that is - * shared with you from another Amazon Web Services account.

- *

For Systems Manager documents (SSM documents) that are shared with you from other Amazon Web Services accounts, you - * must specify the complete SSM document ARN, in the following format:

- *

- * arn:partition:ssm:region:account-id:document/document-name - * - *

- *

For example:

- *

- * arn:aws:ssm:us-east-2:12345678912:document/My-Shared-Document - *

- *

For Amazon Web Services-predefined documents and SSM documents you created in your account, you only need - * to specify the document name. For example, AWS-ApplyPatchBaseline or - * My-Document.

- */ - Name: string | undefined; - /** - * @public - *

The document version you want to associate with the target(s). Can be a specific version or - * the default version.

- * - *

State Manager doesn't support running associations that use a new version of a document if - * that document is shared from another account. State Manager always runs the default - * version of a document if shared from another account, even though the Systems Manager console shows that a - * new version was processed. If you want to run an association using a new version of a document - * shared form another account, you must set the document version to default.

- *
- */ - DocumentVersion?: string; - /** - * @public - *

The managed node ID.

- * - *

- * InstanceId has been deprecated. To specify a managed node ID for an - * association, use the Targets parameter. Requests that - * include the parameter InstanceID with Systems Manager documents (SSM documents) that use - * schema version 2.0 or later will fail. In addition, if you use the - * parameter InstanceId, you can't use the parameters AssociationName, - * DocumentVersion, MaxErrors, MaxConcurrency, - * OutputLocation, or ScheduleExpression. To use these parameters, you - * must use the Targets parameter.

- *
- */ - InstanceId?: string; - /** - * @public - *

The parameters for the runtime configuration of the document.

- */ - Parameters?: Record; - /** - * @public - *

The targets for the association. You can target managed nodes by using tags, Amazon Web Services resource - * groups, all managed nodes in an Amazon Web Services account, or individual managed node IDs. You can target all - * managed nodes in an Amazon Web Services account by specifying the InstanceIds key with a value of - * *. For more information about choosing targets for an association, see Using targets and rate controls with State Manager associations in the - * Amazon Web Services Systems Manager User Guide.

- */ - Targets?: Target[]; - /** - * @public - *

A cron expression when the association will be applied to the target(s).

- */ - ScheduleExpression?: string; - /** - * @public - *

An Amazon Simple Storage Service (Amazon S3) bucket where you want to store the output - * details of the request.

- */ - OutputLocation?: InstanceAssociationOutputLocation; - /** - * @public - *

Specify a descriptive name for the association.

- */ - AssociationName?: string; - /** - * @public - *

Choose the parameter that will define how your automation will branch out. This target is - * required for associations that use an Automation runbook and target resources by using rate - * controls. Automation is a capability of Amazon Web Services Systems Manager.

- */ - AutomationTargetParameterName?: string; - /** - * @public - *

The number of errors that are allowed before the system stops sending requests to run the - * association on additional targets. You can specify either an absolute number of errors, for - * example 10, or a percentage of the target set, for example 10%. If you specify 3, for example, - * the system stops sending requests when the fourth error is received. If you specify 0, then the - * system stops sending requests after the first error is returned. If you run an association on 50 - * managed nodes and set MaxError to 10%, then the system stops sending the request - * when the sixth error is received.

- *

Executions that are already running an association when MaxErrors is reached - * are allowed to complete, but some of these executions may fail as well. If you need to ensure - * that there won't be more than max-errors failed executions, set MaxConcurrency to 1 - * so that executions proceed one at a time.

- */ - MaxErrors?: string; - /** - * @public - *

The maximum number of targets allowed to run the association at the same time. You can - * specify a number, for example 10, or a percentage of the target set, for example 10%. The default - * value is 100%, which means all targets run the association at the same time.

- *

If a new managed node starts and attempts to run an association while Systems Manager is running - * MaxConcurrency associations, the association is allowed to run. During the next - * association interval, the new managed node will process its association within the limit - * specified for MaxConcurrency.

- */ - MaxConcurrency?: string; - /** - * @public - *

The severity level to assign to the association.

- */ - ComplianceSeverity?: AssociationComplianceSeverity; - /** - * @public - *

The mode for generating association compliance. You can specify AUTO or - * MANUAL. In AUTO mode, the system uses the status of the association - * execution to determine the compliance status. If the association execution runs successfully, - * then the association is COMPLIANT. If the association execution doesn't run - * successfully, the association is NON-COMPLIANT.

- *

In MANUAL mode, you must specify the AssociationId as a parameter - * for the PutComplianceItems API operation. In this case, compliance data isn't - * managed by State Manager. It is managed by your direct call to the PutComplianceItems API operation.

- *

By default, all associations use AUTO mode.

- */ - SyncCompliance?: AssociationSyncCompliance; - /** - * @public - *

By default, when you create a new association, the system runs it immediately after it is - * created and then according to the schedule you specified. Specify this option if you don't want - * an association to run immediately after you create it. This parameter isn't supported for rate - * expressions.

- */ - ApplyOnlyAtCronInterval?: boolean; - /** - * @public - *

The names or Amazon Resource Names (ARNs) of the Change Calendar type documents you want to - * gate your associations under. The associations only run when that change calendar is open. For - * more information, see Amazon Web Services Systems Manager Change - * Calendar.

- */ - CalendarNames?: string[]; - /** - * @public - *

A location is a combination of Amazon Web Services Regions and Amazon Web Services accounts where you want to run the - * association. Use this action to create an association in multiple Regions and multiple - * accounts.

- */ - TargetLocations?: TargetLocation[]; - /** - * @public - *

Number of days to wait after the scheduled day to run an association. For example, if you - * specified a cron schedule of cron(0 0 ? * THU#2 *), you could specify an offset of 3 - * to run the association each Sunday after the second Thursday of the month. For more information - * about cron schedules for associations, see Reference: Cron - * and rate expressions for Systems Manager in the Amazon Web Services Systems Manager User Guide.

- * - *

To use offsets, you must specify the ApplyOnlyAtCronInterval parameter. This - * option tells the system not to run an association immediately after you create it.

- *
- */ - ScheduleOffset?: number; - /** - * @public - *

A key-value mapping of document parameters to target resources. Both Targets and TargetMaps - * can't be specified together.

- */ - TargetMaps?: Record[]; - /** - * @public - *

Adds or overwrites one or more tags for a State Manager association. - * Tags are metadata that you can assign to your Amazon Web Services resources. Tags enable - * you to categorize your resources in different ways, for example, by purpose, owner, or - * environment. Each tag consists of a key and an optional value, both of which you define.

- */ - Tags?: Tag[]; - /** - * @public - *

The details for the CloudWatch alarm you want to apply to an automation or - * command.

- */ - AlarmConfiguration?: AlarmConfiguration; -} -/** - * @public - *

Information about the association.

- */ -export interface AssociationOverview { - /** - * @public - *

The status of the association. Status can be: Pending, Success, or Failed.

- */ - Status?: string; - /** - * @public - *

A detailed status of the association.

- */ - DetailedStatus?: string; - /** - * @public - *

Returns the number of targets for the association status. For example, if you created an - * association with two managed nodes, and one of them was successful, this would return the count - * of managed nodes by status.

- */ - AssociationStatusAggregatedCount?: Record; -} -/** - * @public - * @enum - */ -export declare const AssociationStatusName: { - readonly Failed: "Failed"; - readonly Pending: "Pending"; - readonly Success: "Success"; -}; -/** - * @public - */ -export type AssociationStatusName = (typeof AssociationStatusName)[keyof typeof AssociationStatusName]; -/** - * @public - *

Describes an association status.

- */ -export interface AssociationStatus { - /** - * @public - *

The date when the status changed.

- */ - Date: Date | undefined; - /** - * @public - *

The status.

- */ - Name: AssociationStatusName | undefined; - /** - * @public - *

The reason for the status.

- */ - Message: string | undefined; - /** - * @public - *

A user-defined string.

- */ - AdditionalInfo?: string; -} -/** - * @public - *

Describes the parameters for a document.

- */ -export interface AssociationDescription { - /** - * @public - *

The name of the SSM document.

- */ - Name?: string; - /** - * @public - *

The managed node ID.

- */ - InstanceId?: string; - /** - * @public - *

The association version.

- */ - AssociationVersion?: string; - /** - * @public - *

The date when the association was made.

- */ - Date?: Date; - /** - * @public - *

The date when the association was last updated.

- */ - LastUpdateAssociationDate?: Date; - /** - * @public - *

The association status.

- */ - Status?: AssociationStatus; - /** - * @public - *

Information about the association.

- */ - Overview?: AssociationOverview; - /** - * @public - *

The document version.

- */ - DocumentVersion?: string; - /** - * @public - *

Choose the parameter that will define how your automation will branch out. This target is - * required for associations that use an Automation runbook and target resources by using rate - * controls. Automation is a capability of Amazon Web Services Systems Manager.

- */ - AutomationTargetParameterName?: string; - /** - * @public - *

A description of the parameters for a document.

- */ - Parameters?: Record; - /** - * @public - *

The association ID.

- */ - AssociationId?: string; - /** - * @public - *

The managed nodes targeted by the request.

- */ - Targets?: Target[]; - /** - * @public - *

A cron expression that specifies a schedule when the association runs.

- */ - ScheduleExpression?: string; - /** - * @public - *

An S3 bucket where you want to store the output details of the request.

- */ - OutputLocation?: InstanceAssociationOutputLocation; - /** - * @public - *

The date on which the association was last run.

- */ - LastExecutionDate?: Date; - /** - * @public - *

The last date on which the association was successfully run.

- */ - LastSuccessfulExecutionDate?: Date; - /** - * @public - *

The association name.

- */ - AssociationName?: string; - /** - * @public - *

The number of errors that are allowed before the system stops sending requests to run the - * association on additional targets. You can specify either an absolute number of errors, for - * example 10, or a percentage of the target set, for example 10%. If you specify 3, for example, - * the system stops sending requests when the fourth error is received. If you specify 0, then the - * system stops sending requests after the first error is returned. If you run an association on 50 - * managed nodes and set MaxError to 10%, then the system stops sending the request - * when the sixth error is received.

- *

Executions that are already running an association when MaxErrors is reached - * are allowed to complete, but some of these executions may fail as well. If you need to ensure - * that there won't be more than max-errors failed executions, set MaxConcurrency to 1 - * so that executions proceed one at a time.

- */ - MaxErrors?: string; - /** - * @public - *

The maximum number of targets allowed to run the association at the same time. You can - * specify a number, for example 10, or a percentage of the target set, for example 10%. The default - * value is 100%, which means all targets run the association at the same time.

- *

If a new managed node starts and attempts to run an association while Systems Manager is running - * MaxConcurrency associations, the association is allowed to run. During the next - * association interval, the new managed node will process its association within the limit - * specified for MaxConcurrency.

- */ - MaxConcurrency?: string; - /** - * @public - *

The severity level that is assigned to the association.

- */ - ComplianceSeverity?: AssociationComplianceSeverity; - /** - * @public - *

The mode for generating association compliance. You can specify AUTO or - * MANUAL. In AUTO mode, the system uses the status of the association - * execution to determine the compliance status. If the association execution runs successfully, - * then the association is COMPLIANT. If the association execution doesn't run - * successfully, the association is NON-COMPLIANT.

- *

In MANUAL mode, you must specify the AssociationId as a parameter - * for the PutComplianceItems API operation. In this case, compliance data isn't - * managed by State Manager, a capability of Amazon Web Services Systems Manager. It is managed by your direct call to the - * PutComplianceItems API operation.

- *

By default, all associations use AUTO mode.

- */ - SyncCompliance?: AssociationSyncCompliance; - /** - * @public - *

By default, when you create a new associations, the system runs it immediately after it is - * created and then according to the schedule you specified. Specify this option if you don't want - * an association to run immediately after you create it. This parameter isn't supported for rate - * expressions.

- */ - ApplyOnlyAtCronInterval?: boolean; - /** - * @public - *

The names or Amazon Resource Names (ARNs) of the Change Calendar type documents your - * associations are gated under. The associations only run when that change calendar is open. For - * more information, see Amazon Web Services Systems Manager Change - * Calendar.

- */ - CalendarNames?: string[]; - /** - * @public - *

The combination of Amazon Web Services Regions and Amazon Web Services accounts where you want to run the - * association.

- */ - TargetLocations?: TargetLocation[]; - /** - * @public - *

Number of days to wait after the scheduled day to run an association.

- */ - ScheduleOffset?: number; - /** - * @public - *

A key-value mapping of document parameters to target resources. Both Targets and TargetMaps - * can't be specified together.

- */ - TargetMaps?: Record[]; - /** - * @public - *

The details for the CloudWatch alarm you want to apply to an automation or - * command.

- */ - AlarmConfiguration?: AlarmConfiguration; - /** - * @public - *

The CloudWatch alarm that was invoked during the association.

- */ - TriggeredAlarms?: AlarmStateInformation[]; -} -/** - * @public - */ -export interface CreateAssociationResult { - /** - * @public - *

Information about the association.

- */ - AssociationDescription?: AssociationDescription; -} -/** - * @public - *

The specified SSM document doesn't exist.

- */ -export declare class InvalidDocument extends __BaseException { - readonly name: "InvalidDocument"; - readonly $fault: "client"; - /** - * @public - *

The SSM document doesn't exist or the document isn't available to the user. This exception - * can be issued by various API operations.

- */ - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

The document version isn't valid or doesn't exist.

- */ -export declare class InvalidDocumentVersion extends __BaseException { - readonly name: "InvalidDocumentVersion"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

The output location isn't valid or doesn't exist.

- */ -export declare class InvalidOutputLocation extends __BaseException { - readonly name: "InvalidOutputLocation"; - readonly $fault: "client"; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

The schedule is invalid. Verify your cron or rate expression and try again.

- */ -export declare class InvalidSchedule extends __BaseException { - readonly name: "InvalidSchedule"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

The specified tag key or value isn't valid.

- */ -export declare class InvalidTag extends __BaseException { - readonly name: "InvalidTag"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

The target isn't valid or doesn't exist. It might not be configured for Systems Manager or you might - * not have permission to perform the operation.

- */ -export declare class InvalidTarget extends __BaseException { - readonly name: "InvalidTarget"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

TargetMap parameter isn't valid.

- */ -export declare class InvalidTargetMaps extends __BaseException { - readonly name: "InvalidTargetMaps"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

The document doesn't support the platform type of the given managed node ID(s). For example, - * you sent an document for a Windows managed node to a Linux node.

- */ -export declare class UnsupportedPlatformType extends __BaseException { - readonly name: "UnsupportedPlatformType"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

Describes the association of a Amazon Web Services Systems Manager document (SSM document) and a managed node.

- */ -export interface CreateAssociationBatchRequestEntry { - /** - * @public - *

The name of the SSM document that contains the configuration information for the managed - * node. You can specify Command or Automation runbooks.

- *

You can specify Amazon Web Services-predefined documents, documents you created, or a document that is - * shared with you from another account.

- *

For SSM documents that are shared with you from other Amazon Web Services accounts, you must specify the - * complete SSM document ARN, in the following format:

- *

- * arn:aws:ssm:region:account-id:document/document-name - * - *

- *

For example:

- *

- * arn:aws:ssm:us-east-2:12345678912:document/My-Shared-Document - *

- *

For Amazon Web Services-predefined documents and SSM documents you created in your account, you only need - * to specify the document name. For example, AWS-ApplyPatchBaseline or - * My-Document.

- */ - Name: string | undefined; - /** - * @public - *

The managed node ID.

- * - *

- * InstanceId has been deprecated. To specify a managed node ID for an - * association, use the Targets parameter. Requests that - * include the parameter InstanceID with Systems Manager documents (SSM documents) that use - * schema version 2.0 or later will fail. In addition, if you use the - * parameter InstanceId, you can't use the parameters AssociationName, - * DocumentVersion, MaxErrors, MaxConcurrency, - * OutputLocation, or ScheduleExpression. To use these parameters, you - * must use the Targets parameter.

- *
- */ - InstanceId?: string; - /** - * @public - *

A description of the parameters for a document.

- */ - Parameters?: Record; - /** - * @public - *

Specify the target for the association. This target is required for associations that use an - * Automation runbook and target resources by using rate controls. Automation is a capability of - * Amazon Web Services Systems Manager.

- */ - AutomationTargetParameterName?: string; - /** - * @public - *

The document version.

- */ - DocumentVersion?: string; - /** - * @public - *

The managed nodes targeted by the request.

- */ - Targets?: Target[]; - /** - * @public - *

A cron expression that specifies a schedule when the association runs.

- */ - ScheduleExpression?: string; - /** - * @public - *

An S3 bucket where you want to store the results of this request.

- */ - OutputLocation?: InstanceAssociationOutputLocation; - /** - * @public - *

Specify a descriptive name for the association.

- */ - AssociationName?: string; - /** - * @public - *

The number of errors that are allowed before the system stops sending requests to run the - * association on additional targets. You can specify either an absolute number of errors, for - * example 10, or a percentage of the target set, for example 10%. If you specify 3, for example, - * the system stops sending requests when the fourth error is received. If you specify 0, then the - * system stops sending requests after the first error is returned. If you run an association on 50 - * managed nodes and set MaxError to 10%, then the system stops sending the request - * when the sixth error is received.

- *

Executions that are already running an association when MaxErrors is reached - * are allowed to complete, but some of these executions may fail as well. If you need to ensure - * that there won't be more than max-errors failed executions, set MaxConcurrency to 1 - * so that executions proceed one at a time.

- */ - MaxErrors?: string; - /** - * @public - *

The maximum number of targets allowed to run the association at the same time. You can - * specify a number, for example 10, or a percentage of the target set, for example 10%. The default - * value is 100%, which means all targets run the association at the same time.

- *

If a new managed node starts and attempts to run an association while Systems Manager is running - * MaxConcurrency associations, the association is allowed to run. During the next - * association interval, the new managed node will process its association within the limit - * specified for MaxConcurrency.

- */ - MaxConcurrency?: string; - /** - * @public - *

The severity level to assign to the association.

- */ - ComplianceSeverity?: AssociationComplianceSeverity; - /** - * @public - *

The mode for generating association compliance. You can specify AUTO or - * MANUAL. In AUTO mode, the system uses the status of the association - * execution to determine the compliance status. If the association execution runs successfully, - * then the association is COMPLIANT. If the association execution doesn't run - * successfully, the association is NON-COMPLIANT.

- *

In MANUAL mode, you must specify the AssociationId as a parameter - * for the PutComplianceItems API operation. In this case, compliance data isn't - * managed by State Manager, a capability of Amazon Web Services Systems Manager. It is managed by your direct call to the - * PutComplianceItems API operation.

- *

By default, all associations use AUTO mode.

- */ - SyncCompliance?: AssociationSyncCompliance; - /** - * @public - *

By default, when you create a new associations, the system runs it immediately after it is - * created and then according to the schedule you specified. Specify this option if you don't want - * an association to run immediately after you create it. This parameter isn't supported for rate - * expressions.

- */ - ApplyOnlyAtCronInterval?: boolean; - /** - * @public - *

The names or Amazon Resource Names (ARNs) of the Change Calendar type documents your - * associations are gated under. The associations only run when that Change Calendar is open. For - * more information, see Amazon Web Services Systems Manager Change - * Calendar.

- */ - CalendarNames?: string[]; - /** - * @public - *

Use this action to create an association in multiple Regions and multiple accounts.

- */ - TargetLocations?: TargetLocation[]; - /** - * @public - *

Number of days to wait after the scheduled day to run an association.

- */ - ScheduleOffset?: number; - /** - * @public - *

A key-value mapping of document parameters to target resources. Both Targets and TargetMaps - * can't be specified together.

- */ - TargetMaps?: Record[]; - /** - * @public - *

The details for the CloudWatch alarm you want to apply to an automation or - * command.

- */ - AlarmConfiguration?: AlarmConfiguration; -} -/** - * @public - */ -export interface CreateAssociationBatchRequest { - /** - * @public - *

One or more associations.

- */ - Entries: CreateAssociationBatchRequestEntry[] | undefined; -} -/** - * @public - * @enum - */ -export declare const Fault: { - readonly Client: "Client"; - readonly Server: "Server"; - readonly Unknown: "Unknown"; -}; -/** - * @public - */ -export type Fault = (typeof Fault)[keyof typeof Fault]; -/** - * @public - *

Describes a failed association.

- */ -export interface FailedCreateAssociation { - /** - * @public - *

The association.

- */ - Entry?: CreateAssociationBatchRequestEntry; - /** - * @public - *

A description of the failure.

- */ - Message?: string; - /** - * @public - *

The source of the failure.

- */ - Fault?: Fault; -} -/** - * @public - */ -export interface CreateAssociationBatchResult { - /** - * @public - *

Information about the associations that succeeded.

- */ - Successful?: AssociationDescription[]; - /** - * @public - *

Information about the associations that failed.

- */ - Failed?: FailedCreateAssociation[]; -} -/** - * @public - * @enum - */ -export declare const AttachmentsSourceKey: { - readonly AttachmentReference: "AttachmentReference"; - readonly S3FileUrl: "S3FileUrl"; - readonly SourceUrl: "SourceUrl"; -}; -/** - * @public - */ -export type AttachmentsSourceKey = (typeof AttachmentsSourceKey)[keyof typeof AttachmentsSourceKey]; -/** - * @public - *

Identifying information about a document attachment, including the file name and a key-value - * pair that identifies the location of an attachment to a document.

- */ -export interface AttachmentsSource { - /** - * @public - *

The key of a key-value pair that identifies the location of an attachment to a - * document.

- */ - Key?: AttachmentsSourceKey; - /** - * @public - *

The value of a key-value pair that identifies the location of an attachment to a document. - * The format for Value depends on the type of key you - * specify.

- *
    - *
  • - *

    For the key SourceUrl, the value is an S3 bucket location. For - * example:

    - *

    - * "Values": [ "s3://doc-example-bucket/my-folder" ] - *

    - *
  • - *
  • - *

    For the key S3FileUrl, the value is a file in an S3 bucket. For - * example:

    - *

    - * "Values": [ "s3://doc-example-bucket/my-folder/my-file.py" ] - *

    - *
  • - *
  • - *

    For the key AttachmentReference, the value is constructed from the - * name of another SSM document in your account, a version number of that document, and a file - * attached to that document version that you want to reuse. For example:

    - *

    - * "Values": [ "MyOtherDocument/3/my-other-file.py" ] - *

    - *

    However, if the SSM document is shared with you from another account, the full SSM - * document ARN must be specified instead of the document name only. For example:

    - *

    - * "Values": [ - * "arn:aws:ssm:us-east-2:111122223333:document/OtherAccountDocument/3/their-file.py" - * ] - *

    - *
  • - *
- */ - Values?: string[]; - /** - * @public - *

The name of the document attachment file.

- */ - Name?: string; -} -/** - * @public - * @enum - */ -export declare const DocumentFormat: { - readonly JSON: "JSON"; - readonly TEXT: "TEXT"; - readonly YAML: "YAML"; -}; -/** - * @public - */ -export type DocumentFormat = (typeof DocumentFormat)[keyof typeof DocumentFormat]; -/** - * @public - * @enum - */ -export declare const DocumentType: { - readonly ApplicationConfiguration: "ApplicationConfiguration"; - readonly ApplicationConfigurationSchema: "ApplicationConfigurationSchema"; - readonly Automation: "Automation"; - readonly ChangeCalendar: "ChangeCalendar"; - readonly ChangeTemplate: "Automation.ChangeTemplate"; - readonly CloudFormation: "CloudFormation"; - readonly Command: "Command"; - readonly ConformancePackTemplate: "ConformancePackTemplate"; - readonly DeploymentStrategy: "DeploymentStrategy"; - readonly Package: "Package"; - readonly Policy: "Policy"; - readonly ProblemAnalysis: "ProblemAnalysis"; - readonly ProblemAnalysisTemplate: "ProblemAnalysisTemplate"; - readonly QuickSetup: "QuickSetup"; - readonly Session: "Session"; -}; -/** - * @public - */ -export type DocumentType = (typeof DocumentType)[keyof typeof DocumentType]; -/** - * @public - *

An SSM document required by the current document.

- */ -export interface DocumentRequires { - /** - * @public - *

The name of the required SSM document. The name can be an Amazon Resource Name (ARN).

- */ - Name: string | undefined; - /** - * @public - *

The document version required by the current document.

- */ - Version?: string; - /** - * @public - *

The document type of the required SSM document.

- */ - RequireType?: string; - /** - * @public - *

An optional field specifying the version of the artifact associated with the document. For - * example, "Release 12, Update 6". This value is unique across all versions of a document, and - * can't be changed.

- */ - VersionName?: string; -} -/** - * @public - */ -export interface CreateDocumentRequest { - /** - * @public - *

The content for the new SSM document in JSON or YAML format. The content of the document - * must not exceed 64KB. This quota also includes the content specified for input parameters at - * runtime. We recommend storing the contents for your new document in an external JSON or YAML file - * and referencing the file in a command.

- *

For examples, see the following topics in the Amazon Web Services Systems Manager User Guide.

- * - */ - Content: string | undefined; - /** - * @public - *

A list of SSM documents required by a document. This parameter is used exclusively by - * AppConfig. When a user creates an AppConfig configuration in an SSM document, the user must also - * specify a required document for validation purposes. In this case, an - * ApplicationConfiguration document requires an - * ApplicationConfigurationSchema document for validation purposes. For more - * information, see What is AppConfig? in the - * AppConfig User Guide.

- */ - Requires?: DocumentRequires[]; - /** - * @public - *

A list of key-value pairs that describe attachments to a version of a document.

- */ - Attachments?: AttachmentsSource[]; - /** - * @public - *

A name for the SSM document.

- * - *

You can't use the following strings as document name prefixes. These are reserved by Amazon Web Services - * for use as document name prefixes:

- *
    - *
  • - *

    - * aws - *

    - *
  • - *
  • - *

    - * amazon - *

    - *
  • - *
  • - *

    - * amzn - *

    - *
  • - *
- *
- */ - Name: string | undefined; - /** - * @public - *

An optional field where you can specify a friendly name for the SSM document. This value can - * differ for each version of the document. You can update this value at a later time using the - * UpdateDocument operation.

- */ - DisplayName?: string; - /** - * @public - *

An optional field specifying the version of the artifact you are creating with the document. - * For example, Release12.1. This value is unique across all versions of a document, - * and can't be changed.

- */ - VersionName?: string; - /** - * @public - *

The type of document to create.

- * - *

The DeploymentStrategy document type is an internal-use-only document type - * reserved for AppConfig.

- *
- */ - DocumentType?: DocumentType; - /** - * @public - *

Specify the document format for the request. The document format can be JSON, YAML, or TEXT. - * JSON is the default format.

- */ - DocumentFormat?: DocumentFormat; - /** - * @public - *

Specify a target type to define the kinds of resources the document can run on. For example, - * to run a document on EC2 instances, specify the following value: - * /AWS::EC2::Instance. If you specify a value of '/' the document can run on all types - * of resources. If you don't specify a value, the document can't run on any resources. For a list - * of valid resource types, see Amazon Web Services resource and - * property types reference in the CloudFormation User Guide.

- */ - TargetType?: string; - /** - * @public - *

Optional metadata that you assign to a resource. Tags enable you to categorize a resource in - * different ways, such as by purpose, owner, or environment. For example, you might want to tag an - * SSM document to identify the types of targets or the environment where it will run. In this case, - * you could specify the following key-value pairs:

- *
    - *
  • - *

    - * Key=OS,Value=Windows - *

    - *
  • - *
  • - *

    - * Key=Environment,Value=Production - *

    - *
  • - *
- * - *

To add tags to an existing SSM document, use the AddTagsToResource - * operation.

- *
- */ - Tags?: Tag[]; -} -/** - * @public - *

An attribute of an attachment, such as the attachment name.

- */ -export interface AttachmentInformation { - /** - * @public - *

The name of the attachment.

- */ - Name?: string; -} -/** - * @public - * @enum - */ -export declare const DocumentHashType: { - readonly SHA1: "Sha1"; - readonly SHA256: "Sha256"; -}; -/** - * @public - */ -export type DocumentHashType = (typeof DocumentHashType)[keyof typeof DocumentHashType]; -/** - * @public - * @enum - */ -export declare const DocumentParameterType: { - readonly String: "String"; - readonly StringList: "StringList"; -}; -/** - * @public - */ -export type DocumentParameterType = (typeof DocumentParameterType)[keyof typeof DocumentParameterType]; -/** - * @public - *

Parameters specified in a Systems Manager document that run on the server when the command is run. - *

- */ -export interface DocumentParameter { - /** - * @public - *

The name of the parameter.

- */ - Name?: string; - /** - * @public - *

The type of parameter. The type can be either String or StringList.

- */ - Type?: DocumentParameterType; - /** - * @public - *

A description of what the parameter does, how to use it, the default value, and whether or - * not the parameter is optional.

- */ - Description?: string; - /** - * @public - *

If specified, the default values for the parameters. Parameters without a default value are - * required. Parameters with a default value are optional.

- */ - DefaultValue?: string; -} -/** - * @public - * @enum - */ -export declare const PlatformType: { - readonly LINUX: "Linux"; - readonly MACOS: "MacOS"; - readonly WINDOWS: "Windows"; -}; -/** - * @public - */ -export type PlatformType = (typeof PlatformType)[keyof typeof PlatformType]; -/** - * @public - * @enum - */ -export declare const ReviewStatus: { - readonly APPROVED: "APPROVED"; - readonly NOT_REVIEWED: "NOT_REVIEWED"; - readonly PENDING: "PENDING"; - readonly REJECTED: "REJECTED"; -}; -/** - * @public - */ -export type ReviewStatus = (typeof ReviewStatus)[keyof typeof ReviewStatus]; -/** - * @public - *

Information about the result of a document review request.

- */ -export interface ReviewInformation { - /** - * @public - *

The time that the reviewer took action on the document review request.

- */ - ReviewedTime?: Date; - /** - * @public - *

The current status of the document review request.

- */ - Status?: ReviewStatus; - /** - * @public - *

The reviewer assigned to take action on the document review request.

- */ - Reviewer?: string; -} -/** - * @public - * @enum - */ -export declare const DocumentStatus: { - readonly Active: "Active"; - readonly Creating: "Creating"; - readonly Deleting: "Deleting"; - readonly Failed: "Failed"; - readonly Updating: "Updating"; -}; -/** - * @public - */ -export type DocumentStatus = (typeof DocumentStatus)[keyof typeof DocumentStatus]; -/** - * @public - *

Describes an Amazon Web Services Systems Manager document (SSM document).

- */ -export interface DocumentDescription { - /** - * @public - *

The SHA1 hash of the document, which you can use for verification.

- */ - Sha1?: string; - /** - * @public - *

The Sha256 or Sha1 hash created by the system when the document was created.

- * - *

Sha1 hashes have been deprecated.

- *
- */ - Hash?: string; - /** - * @public - *

The hash type of the document. Valid values include Sha256 or - * Sha1.

- * - *

Sha1 hashes have been deprecated.

- *
- */ - HashType?: DocumentHashType; - /** - * @public - *

The name of the SSM document.

- */ - Name?: string; - /** - * @public - *

The friendly name of the SSM document. This value can differ for each version of the - * document. If you want to update this value, see UpdateDocument.

- */ - DisplayName?: string; - /** - * @public - *

The version of the artifact associated with the document.

- */ - VersionName?: string; - /** - * @public - *

The Amazon Web Services user that created the document.

- */ - Owner?: string; - /** - * @public - *

The date when the document was created.

- */ - CreatedDate?: Date; - /** - * @public - *

The status of the SSM document.

- */ - Status?: DocumentStatus; - /** - * @public - *

A message returned by Amazon Web Services Systems Manager that explains the Status value. For example, a - * Failed status might be explained by the StatusInformation message, - * "The specified S3 bucket doesn't exist. Verify that the URL of the S3 bucket is correct."

- */ - StatusInformation?: string; - /** - * @public - *

The document version.

- */ - DocumentVersion?: string; - /** - * @public - *

A description of the document.

- */ - Description?: string; - /** - * @public - *

A description of the parameters for a document.

- */ - Parameters?: DocumentParameter[]; - /** - * @public - *

The list of operating system (OS) platforms compatible with this SSM document.

- */ - PlatformTypes?: PlatformType[]; - /** - * @public - *

The type of document.

- */ - DocumentType?: DocumentType; - /** - * @public - *

The schema version.

- */ - SchemaVersion?: string; - /** - * @public - *

The latest version of the document.

- */ - LatestVersion?: string; - /** - * @public - *

The default version.

- */ - DefaultVersion?: string; - /** - * @public - *

The document format, either JSON or YAML.

- */ - DocumentFormat?: DocumentFormat; - /** - * @public - *

The target type which defines the kinds of resources the document can run on. For example, - * /AWS::EC2::Instance. For a list of valid resource types, see Amazon Web Services resource and - * property types reference in the CloudFormation User Guide.

- */ - TargetType?: string; - /** - * @public - *

The tags, or metadata, that have been applied to the document.

- */ - Tags?: Tag[]; - /** - * @public - *

Details about the document attachments, including names, locations, sizes, and so on.

- */ - AttachmentsInformation?: AttachmentInformation[]; - /** - * @public - *

A list of SSM documents required by a document. For example, an - * ApplicationConfiguration document requires an - * ApplicationConfigurationSchema document.

- */ - Requires?: DocumentRequires[]; - /** - * @public - *

The user in your organization who created the document.

- */ - Author?: string; - /** - * @public - *

Details about the review of a document.

- */ - ReviewInformation?: ReviewInformation[]; - /** - * @public - *

The version of the document currently approved for use in the organization.

- */ - ApprovedVersion?: string; - /** - * @public - *

The version of the document that is currently under review.

- */ - PendingReviewVersion?: string; - /** - * @public - *

The current status of the review.

- */ - ReviewStatus?: ReviewStatus; - /** - * @public - *

The classification of a document to help you identify and categorize its use.

- */ - Category?: string[]; - /** - * @public - *

The value that identifies a document's category.

- */ - CategoryEnum?: string[]; -} -/** - * @public - */ -export interface CreateDocumentResult { - /** - * @public - *

Information about the SSM document.

- */ - DocumentDescription?: DocumentDescription; -} -/** - * @public - *

The specified document already exists.

- */ -export declare class DocumentAlreadyExists extends __BaseException { - readonly name: "DocumentAlreadyExists"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

You can have at most 500 active SSM documents.

- */ -export declare class DocumentLimitExceeded extends __BaseException { - readonly name: "DocumentLimitExceeded"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

The content for the document isn't valid.

- */ -export declare class InvalidDocumentContent extends __BaseException { - readonly name: "InvalidDocumentContent"; - readonly $fault: "client"; - /** - * @public - *

A description of the validation error.

- */ - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

The version of the document schema isn't supported.

- */ -export declare class InvalidDocumentSchemaVersion extends __BaseException { - readonly name: "InvalidDocumentSchemaVersion"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

The size limit of a document is 64 KB.

- */ -export declare class MaxDocumentSizeExceeded extends __BaseException { - readonly name: "MaxDocumentSizeExceeded"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - */ -export interface CreateMaintenanceWindowRequest { - /** - * @public - *

The name of the maintenance window.

- */ - Name: string | undefined; - /** - * @public - *

An optional description for the maintenance window. We recommend specifying a description to - * help you organize your maintenance windows.

- */ - Description?: string; - /** - * @public - *

The date and time, in ISO-8601 Extended format, for when you want the maintenance window to - * become active. StartDate allows you to delay activation of the maintenance window - * until the specified future date.

- */ - StartDate?: string; - /** - * @public - *

The date and time, in ISO-8601 Extended format, for when you want the maintenance window to - * become inactive. EndDate allows you to set a date and time in the future when the - * maintenance window will no longer run.

- */ - EndDate?: string; - /** - * @public - *

The schedule of the maintenance window in the form of a cron or rate expression.

- */ - Schedule: string | undefined; - /** - * @public - *

The time zone that the scheduled maintenance window executions are based on, in Internet - * Assigned Numbers Authority (IANA) format. For example: "America/Los_Angeles", "UTC", or - * "Asia/Seoul". For more information, see the Time - * Zone Database on the IANA website.

- */ - ScheduleTimezone?: string; - /** - * @public - *

The number of days to wait after the date and time specified by a cron expression before - * running the maintenance window.

- *

For example, the following cron expression schedules a maintenance window to run on the - * third Tuesday of every month at 11:30 PM.

- *

- * cron(30 23 ? * TUE#3 *) - *

- *

If the schedule offset is 2, the maintenance window won't run until two days - * later.

- */ - ScheduleOffset?: number; - /** - * @public - *

The duration of the maintenance window in hours.

- */ - Duration: number | undefined; - /** - * @public - *

The number of hours before the end of the maintenance window that Amazon Web Services Systems Manager stops scheduling - * new tasks for execution.

- */ - Cutoff: number | undefined; - /** - * @public - *

Enables a maintenance window task to run on managed nodes, even if you haven't registered - * those nodes as targets. If enabled, then you must specify the unregistered managed nodes (by node - * ID) when you register a task with the maintenance window.

- *

If you don't enable this option, then you must specify previously-registered targets when - * you register a task with the maintenance window.

- */ - AllowUnassociatedTargets: boolean | undefined; - /** - * @public - *

User-provided idempotency token.

- */ - ClientToken?: string; - /** - * @public - *

Optional metadata that you assign to a resource. Tags enable you to categorize a resource in - * different ways, such as by purpose, owner, or environment. For example, you might want to tag a - * maintenance window to identify the type of tasks it will run, the types of targets, and the - * environment it will run in. In this case, you could specify the following key-value pairs:

- *
    - *
  • - *

    - * Key=TaskType,Value=AgentUpdate - *

    - *
  • - *
  • - *

    - * Key=OS,Value=Windows - *

    - *
  • - *
  • - *

    - * Key=Environment,Value=Production - *

    - *
  • - *
- * - *

To add tags to an existing maintenance window, use the AddTagsToResource - * operation.

- *
- */ - Tags?: Tag[]; -} -/** - * @public - */ -export interface CreateMaintenanceWindowResult { - /** - * @public - *

The ID of the created maintenance window.

- */ - WindowId?: string; -} -/** - * @public - *

Error returned when an idempotent operation is retried and the parameters don't match the - * original call to the API with the same idempotency token.

- */ -export declare class IdempotentParameterMismatch extends __BaseException { - readonly name: "IdempotentParameterMismatch"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

Error returned when the caller has exceeded the default resource quotas. For example, too - * many maintenance windows or patch baselines have been created.

- *

For information about resource quotas in Systems Manager, see Systems Manager service quotas in the - * Amazon Web Services General Reference.

- */ -export declare class ResourceLimitExceededException extends __BaseException { - readonly name: "ResourceLimitExceededException"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

A notification about the OpsItem.

- */ -export interface OpsItemNotification { - /** - * @public - *

The Amazon Resource Name (ARN) of an Amazon Simple Notification Service (Amazon SNS) topic where - * notifications are sent when this OpsItem is edited or changed.

- */ - Arn?: string; -} -/** - * @public - * @enum - */ -export declare const OpsItemDataType: { - readonly SEARCHABLE_STRING: "SearchableString"; - readonly STRING: "String"; -}; -/** - * @public - */ -export type OpsItemDataType = (typeof OpsItemDataType)[keyof typeof OpsItemDataType]; -/** - * @public - *

An object that defines the value of the key and its type in the OperationalData map.

- */ -export interface OpsItemDataValue { - /** - * @public - *

The value of the OperationalData key.

- */ - Value?: string; - /** - * @public - *

The type of key-value pair. Valid types include SearchableString and - * String.

- */ - Type?: OpsItemDataType; -} -/** - * @public - *

An OpsItems that shares something in common with the current OpsItem. For example, related - * OpsItems can include OpsItems with similar error messages, impacted resources, or statuses for - * the impacted resource.

- */ -export interface RelatedOpsItem { - /** - * @public - *

The ID of an OpsItem related to the current OpsItem.

- */ - OpsItemId: string | undefined; -} -/** - * @public - */ -export interface CreateOpsItemRequest { - /** - * @public - *

User-defined text that contains information about the OpsItem, in Markdown format.

- * - *

Provide enough information so that users viewing this OpsItem for the first time understand - * the issue.

- *
- */ - Description: string | undefined; - /** - * @public - *

The type of OpsItem to create. Systems Manager supports the following types of OpsItems:

- *
    - *
  • - *

    - * /aws/issue - *

    - *

    This type of OpsItem is used for default OpsItems created by OpsCenter.

    - *
  • - *
  • - *

    - * /aws/changerequest - *

    - *

    This type of OpsItem is used by Change Manager for reviewing and approving or rejecting change - * requests.

    - *
  • - *
  • - *

    - * /aws/insight - *

    - *

    This type of OpsItem is used by OpsCenter for aggregating and reporting on duplicate - * OpsItems.

    - *
  • - *
- */ - OpsItemType?: string; - /** - * @public - *

Operational data is custom data that provides useful reference details about the OpsItem. - * For example, you can specify log files, error strings, license keys, troubleshooting tips, or - * other relevant data. You enter operational data as key-value pairs. The key has a maximum length - * of 128 characters. The value has a maximum size of 20 KB.

- * - *

Operational data keys can't begin with the following: - * amazon, aws, amzn, ssm, - * /amazon, /aws, /amzn, /ssm.

- *
- *

You can choose to make the data searchable by other users in the account or you can restrict - * search access. Searchable data means that all users with access to the OpsItem Overview page (as - * provided by the DescribeOpsItems API operation) can view and search on the - * specified data. Operational data that isn't searchable is only viewable by users who have access - * to the OpsItem (as provided by the GetOpsItem API operation).

- *

Use the /aws/resources key in OperationalData to specify a related resource in - * the request. Use the /aws/automations key in OperationalData to associate an - * Automation runbook with the OpsItem. To view Amazon Web Services CLI example commands that use these keys, see - * Creating OpsItems - * manually in the Amazon Web Services Systems Manager User Guide.

- */ - OperationalData?: Record; - /** - * @public - *

The Amazon Resource Name (ARN) of an SNS topic where notifications are sent when this - * OpsItem is edited or changed.

- */ - Notifications?: OpsItemNotification[]; - /** - * @public - *

The importance of this OpsItem in relation to other OpsItems in the system.

- */ - Priority?: number; - /** - * @public - *

One or more OpsItems that share something in common with the current OpsItems. For example, - * related OpsItems can include OpsItems with similar error messages, impacted resources, or - * statuses for the impacted resource.

- */ - RelatedOpsItems?: RelatedOpsItem[]; - /** - * @public - *

The origin of the OpsItem, such as Amazon EC2 or Systems Manager.

- * - *

The source name can't contain the following strings: aws, amazon, - * and amzn.

- *
- */ - Source: string | undefined; - /** - * @public - *

A short heading that describes the nature of the OpsItem and the impacted resource.

- */ - Title: string | undefined; - /** - * @public - *

Optional metadata that you assign to a resource.

- *

Tags use a key-value pair. For example:

- *

- * Key=Department,Value=Finance - *

- * - *

To add tags to a new OpsItem, a user must have IAM permissions for both the - * ssm:CreateOpsItems operation and the ssm:AddTagsToResource operation. - * To add tags to an existing OpsItem, use the AddTagsToResource - * operation.

- *
- */ - Tags?: Tag[]; - /** - * @public - *

Specify a category to assign to an OpsItem.

- */ - Category?: string; - /** - * @public - *

Specify a severity to assign to an OpsItem.

- */ - Severity?: string; - /** - * @public - *

The time a runbook workflow started. Currently reported only for the OpsItem type - * /aws/changerequest.

- */ - ActualStartTime?: Date; - /** - * @public - *

The time a runbook workflow ended. Currently reported only for the OpsItem type - * /aws/changerequest.

- */ - ActualEndTime?: Date; - /** - * @public - *

The time specified in a change request for a runbook workflow to start. Currently supported - * only for the OpsItem type /aws/changerequest.

- */ - PlannedStartTime?: Date; - /** - * @public - *

The time specified in a change request for a runbook workflow to end. Currently supported - * only for the OpsItem type /aws/changerequest.

- */ - PlannedEndTime?: Date; - /** - * @public - *

The target Amazon Web Services account where you want to create an OpsItem. To make this call, your account - * must be configured to work with OpsItems across accounts. For more information, see Set up - * OpsCenter in the Amazon Web Services Systems Manager User Guide.

- */ - AccountId?: string; -} -/** - * @public - */ -export interface CreateOpsItemResponse { - /** - * @public - *

The ID of the OpsItem.

- */ - OpsItemId?: string; - /** - * @public - *

The OpsItem Amazon Resource Name (ARN).

- */ - OpsItemArn?: string; -} -/** - * @public - *

You don't have permission to view OpsItems in the specified account. Verify that your account - * is configured either as a Systems Manager delegated administrator or that you are logged into the Organizations - * management account.

- */ -export declare class OpsItemAccessDeniedException extends __BaseException { - readonly name: "OpsItemAccessDeniedException"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

The OpsItem already exists.

- */ -export declare class OpsItemAlreadyExistsException extends __BaseException { - readonly name: "OpsItemAlreadyExistsException"; - readonly $fault: "client"; - Message?: string; - OpsItemId?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

Metadata to assign to an Application Manager application.

- */ -export interface MetadataValue { - /** - * @public - *

Metadata value to assign to an Application Manager application.

- */ - Value?: string; -} -/** - * @public - */ -export interface CreateOpsMetadataRequest { - /** - * @public - *

A resource ID for a new Application Manager application.

- */ - ResourceId: string | undefined; - /** - * @public - *

Metadata for a new Application Manager application.

- */ - Metadata?: Record; - /** - * @public - *

Optional metadata that you assign to a resource. You can specify a maximum of five tags for - * an OpsMetadata object. Tags enable you to categorize a resource in different ways, such as by - * purpose, owner, or environment. For example, you might want to tag an OpsMetadata object to - * identify an environment or target Amazon Web Services Region. In this case, you could specify the following - * key-value pairs:

- *
    - *
  • - *

    - * Key=Environment,Value=Production - *

    - *
  • - *
  • - *

    - * Key=Region,Value=us-east-2 - *

    - *
  • - *
- */ - Tags?: Tag[]; -} -/** - * @public - */ -export interface CreateOpsMetadataResult { - /** - * @public - *

The Amazon Resource Name (ARN) of the OpsMetadata Object or blob created by the call.

- */ - OpsMetadataArn?: string; -} -/** - * @public - *

An OpsMetadata object already exists for the selected resource.

- */ -export declare class OpsMetadataAlreadyExistsException extends __BaseException { - readonly name: "OpsMetadataAlreadyExistsException"; - readonly $fault: "client"; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

One of the arguments passed is invalid.

- */ -export declare class OpsMetadataInvalidArgumentException extends __BaseException { - readonly name: "OpsMetadataInvalidArgumentException"; - readonly $fault: "client"; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

Your account reached the maximum number of OpsMetadata objects allowed by Application Manager. The - * maximum is 200 OpsMetadata objects. Delete one or more OpsMetadata object and try again.

- */ -export declare class OpsMetadataLimitExceededException extends __BaseException { - readonly name: "OpsMetadataLimitExceededException"; - readonly $fault: "client"; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

The system is processing too many concurrent updates. Wait a few moments and try - * again.

- */ -export declare class OpsMetadataTooManyUpdatesException extends __BaseException { - readonly name: "OpsMetadataTooManyUpdatesException"; - readonly $fault: "client"; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - * @enum - */ -export declare const PatchComplianceLevel: { - readonly Critical: "CRITICAL"; - readonly High: "HIGH"; - readonly Informational: "INFORMATIONAL"; - readonly Low: "LOW"; - readonly Medium: "MEDIUM"; - readonly Unspecified: "UNSPECIFIED"; -}; -/** - * @public - */ -export type PatchComplianceLevel = (typeof PatchComplianceLevel)[keyof typeof PatchComplianceLevel]; -/** - * @public - * @enum - */ -export declare const PatchFilterKey: { - readonly AdvisoryId: "ADVISORY_ID"; - readonly Arch: "ARCH"; - readonly BugzillaId: "BUGZILLA_ID"; - readonly CVEId: "CVE_ID"; - readonly Classification: "CLASSIFICATION"; - readonly Epoch: "EPOCH"; - readonly MsrcSeverity: "MSRC_SEVERITY"; - readonly Name: "NAME"; - readonly PatchId: "PATCH_ID"; - readonly PatchSet: "PATCH_SET"; - readonly Priority: "PRIORITY"; - readonly Product: "PRODUCT"; - readonly ProductFamily: "PRODUCT_FAMILY"; - readonly Release: "RELEASE"; - readonly Repository: "REPOSITORY"; - readonly Section: "SECTION"; - readonly Security: "SECURITY"; - readonly Severity: "SEVERITY"; - readonly Version: "VERSION"; -}; -/** - * @public - */ -export type PatchFilterKey = (typeof PatchFilterKey)[keyof typeof PatchFilterKey]; -/** - * @public - *

Defines which patches should be included in a patch baseline.

- *

A patch filter consists of a key and a set of values. The filter key is a patch property. - * For example, the available filter keys for WINDOWS are PATCH_SET, - * PRODUCT, PRODUCT_FAMILY, CLASSIFICATION, and - * MSRC_SEVERITY.

- *

The filter values define a matching criterion for the patch property indicated by the key. - * For example, if the filter key is PRODUCT and the filter values are ["Office - * 2013", "Office 2016"], then the filter accepts all patches where product name is either - * "Office 2013" or "Office 2016". The filter values can be exact values for the patch property - * given as a key, or a wildcard (*), which matches all values.

- *

You can view lists of valid values for the patch properties by running the - * DescribePatchProperties command. For information about which patch properties can - * be used with each major operating system, see DescribePatchProperties.

- */ -export interface PatchFilter { - /** - * @public - *

The key for the filter.

- *

Run the DescribePatchProperties command to view lists of valid keys for - * each operating system type.

- */ - Key: PatchFilterKey | undefined; - /** - * @public - *

The value for the filter key.

- *

Run the DescribePatchProperties command to view lists of valid values for - * each key based on operating system type.

- */ - Values: string[] | undefined; -} -/** - * @public - *

A set of patch filters, typically used for approval rules.

- */ -export interface PatchFilterGroup { - /** - * @public - *

The set of patch filters that make up the group.

- */ - PatchFilters: PatchFilter[] | undefined; -} -/** - * @public - *

Defines an approval rule for a patch baseline.

- */ -export interface PatchRule { - /** - * @public - *

The patch filter group that defines the criteria for the rule.

- */ - PatchFilterGroup: PatchFilterGroup | undefined; - /** - * @public - *

A compliance severity level for all approved patches in a patch baseline.

- */ - ComplianceLevel?: PatchComplianceLevel; - /** - * @public - *

The number of days after the release date of each patch matched by the rule that the patch - * is marked as approved in the patch baseline. For example, a value of 7 means that - * patches are approved seven days after they are released. Not supported on Debian Server or Ubuntu - * Server.

- */ - ApproveAfterDays?: number; - /** - * @public - *

The cutoff date for auto approval of released patches. Any patches released on or before - * this date are installed automatically. Not supported on Debian Server or Ubuntu Server.

- *

Enter dates in the format YYYY-MM-DD. For example, - * 2021-12-31.

- */ - ApproveUntilDate?: string; - /** - * @public - *

For managed nodes identified by the approval rule filters, enables a patch baseline to apply - * non-security updates available in the specified repository. The default value is - * false. Applies to Linux managed nodes only.

- */ - EnableNonSecurity?: boolean; -} -/** - * @public - *

A set of rules defining the approval rules for a patch baseline.

- */ -export interface PatchRuleGroup { - /** - * @public - *

The rules that make up the rule group.

- */ - PatchRules: PatchRule[] | undefined; -} -/** - * @public - * @enum - */ -export declare const OperatingSystem: { - readonly AlmaLinux: "ALMA_LINUX"; - readonly AmazonLinux: "AMAZON_LINUX"; - readonly AmazonLinux2: "AMAZON_LINUX_2"; - readonly AmazonLinux2022: "AMAZON_LINUX_2022"; - readonly AmazonLinux2023: "AMAZON_LINUX_2023"; - readonly CentOS: "CENTOS"; - readonly Debian: "DEBIAN"; - readonly MacOS: "MACOS"; - readonly OracleLinux: "ORACLE_LINUX"; - readonly Raspbian: "RASPBIAN"; - readonly RedhatEnterpriseLinux: "REDHAT_ENTERPRISE_LINUX"; - readonly Rocky_Linux: "ROCKY_LINUX"; - readonly Suse: "SUSE"; - readonly Ubuntu: "UBUNTU"; - readonly Windows: "WINDOWS"; -}; -/** - * @public - */ -export type OperatingSystem = (typeof OperatingSystem)[keyof typeof OperatingSystem]; -/** - * @public - * @enum - */ -export declare const PatchAction: { - readonly AllowAsDependency: "ALLOW_AS_DEPENDENCY"; - readonly Block: "BLOCK"; -}; -/** - * @public - */ -export type PatchAction = (typeof PatchAction)[keyof typeof PatchAction]; -/** - * @public - *

Information about the patches to use to update the managed nodes, including target operating - * systems and source repository. Applies to Linux managed nodes only.

- */ -export interface PatchSource { - /** - * @public - *

The name specified to identify the patch source.

- */ - Name: string | undefined; - /** - * @public - *

The specific operating system versions a patch repository applies to, such as "Ubuntu16.04", - * "AmazonLinux2016.09", "RedhatEnterpriseLinux7.2" or "Suse12.7". For lists of supported product - * values, see PatchFilter.

- */ - Products: string[] | undefined; - /** - * @public - *

The value of the yum repo configuration. For example:

- *

- * [main] - *

- *

- * name=MyCustomRepository - *

- *

- * baseurl=https://my-custom-repository - *

- *

- * enabled=1 - *

- * - *

For information about other options available for your yum repository configuration, see - * dnf.conf(5).

- *
- */ - Configuration: string | undefined; -} -/** - * @public - */ -export interface CreatePatchBaselineRequest { - /** - * @public - *

Defines the operating system the patch baseline applies to. The default value is - * WINDOWS.

- */ - OperatingSystem?: OperatingSystem; - /** - * @public - *

The name of the patch baseline.

- */ - Name: string | undefined; - /** - * @public - *

A set of global filters used to include patches in the baseline.

- */ - GlobalFilters?: PatchFilterGroup; - /** - * @public - *

A set of rules used to include patches in the baseline.

- */ - ApprovalRules?: PatchRuleGroup; - /** - * @public - *

A list of explicitly approved patches for the baseline.

- *

For information about accepted formats for lists of approved patches and rejected patches, - * see About - * package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

- */ - ApprovedPatches?: string[]; - /** - * @public - *

Defines the compliance level for approved patches. When an approved patch is reported as - * missing, this value describes the severity of the compliance violation. The default value is - * UNSPECIFIED.

- */ - ApprovedPatchesComplianceLevel?: PatchComplianceLevel; - /** - * @public - *

Indicates whether the list of approved patches includes non-security updates that should be - * applied to the managed nodes. The default value is false. Applies to Linux managed - * nodes only.

- */ - ApprovedPatchesEnableNonSecurity?: boolean; - /** - * @public - *

A list of explicitly rejected patches for the baseline.

- *

For information about accepted formats for lists of approved patches and rejected patches, - * see About - * package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

- */ - RejectedPatches?: string[]; - /** - * @public - *

The action for Patch Manager to take on patches included in the - * RejectedPackages list.

- *
    - *
  • - *

    - * - * ALLOW_AS_DEPENDENCY - * : A package in the - * Rejected patches list is installed only if it is a dependency of another package. - * It is considered compliant with the patch baseline, and its status is reported as - * InstalledOther. This is the default action if no option is specified.

    - *
  • - *
  • - *

    - * - * BLOCK - * : Packages in the - * RejectedPatches list, and packages that include them as dependencies, aren't - * installed under any circumstances. If a package was installed before it was added to the - * Rejected patches list, it is considered non-compliant with the patch baseline, and its status - * is reported as InstalledRejected.

    - *
  • - *
- */ - RejectedPatchesAction?: PatchAction; - /** - * @public - *

A description of the patch baseline.

- */ - Description?: string; - /** - * @public - *

Information about the patches to use to update the managed nodes, including target operating - * systems and source repositories. Applies to Linux managed nodes only.

- */ - Sources?: PatchSource[]; - /** - * @public - *

User-provided idempotency token.

- */ - ClientToken?: string; - /** - * @public - *

Optional metadata that you assign to a resource. Tags enable you to categorize a resource in - * different ways, such as by purpose, owner, or environment. For example, you might want to tag a - * patch baseline to identify the severity level of patches it specifies and the operating system - * family it applies to. In this case, you could specify the following key-value pairs:

- *
    - *
  • - *

    - * Key=PatchSeverity,Value=Critical - *

    - *
  • - *
  • - *

    - * Key=OS,Value=Windows - *

    - *
  • - *
- * - *

To add tags to an existing patch baseline, use the AddTagsToResource - * operation.

- *
- */ - Tags?: Tag[]; -} -/** - * @public - */ -export interface CreatePatchBaselineResult { - /** - * @public - *

The ID of the created patch baseline.

- */ - BaselineId?: string; -} -/** - * @public - *

Synchronize Amazon Web Services Systems Manager Inventory data from multiple Amazon Web Services accounts defined in Organizations to a - * centralized Amazon S3 bucket. Data is synchronized to individual key prefixes in the - * central bucket. Each key prefix represents a different Amazon Web Services account ID.

- */ -export interface ResourceDataSyncDestinationDataSharing { - /** - * @public - *

The sharing data type. Only Organization is supported.

- */ - DestinationDataSharingType?: string; -} -/** - * @public - * @enum - */ -export declare const ResourceDataSyncS3Format: { - readonly JSON_SERDE: "JsonSerDe"; -}; -/** - * @public - */ -export type ResourceDataSyncS3Format = (typeof ResourceDataSyncS3Format)[keyof typeof ResourceDataSyncS3Format]; -/** - * @public - *

Information about the target S3 bucket for the resource data sync.

- */ -export interface ResourceDataSyncS3Destination { - /** - * @public - *

The name of the S3 bucket where the aggregated data is stored.

- */ - BucketName: string | undefined; - /** - * @public - *

An Amazon S3 prefix for the bucket.

- */ - Prefix?: string; - /** - * @public - *

A supported sync format. The following format is currently supported: JsonSerDe

- */ - SyncFormat: ResourceDataSyncS3Format | undefined; - /** - * @public - *

The Amazon Web Services Region with the S3 bucket targeted by the resource data sync.

- */ - Region: string | undefined; - /** - * @public - *

The ARN of an encryption key for a destination in Amazon S3. Must belong to the same - * Region as the destination S3 bucket.

- */ - AWSKMSKeyARN?: string; - /** - * @public - *

Enables destination data sharing. By default, this field is null.

- */ - DestinationDataSharing?: ResourceDataSyncDestinationDataSharing; -} -/** - * @public - *

The Organizations organizational unit data source for the sync.

- */ -export interface ResourceDataSyncOrganizationalUnit { - /** - * @public - *

The Organizations unit ID data source for the sync.

- */ - OrganizationalUnitId?: string; -} -/** - * @public - *

Information about the AwsOrganizationsSource resource data sync source. A sync - * source of this type can synchronize data from Organizations or, if an Amazon Web Services organization isn't - * present, from multiple Amazon Web Services Regions.

- */ -export interface ResourceDataSyncAwsOrganizationsSource { - /** - * @public - *

If an Amazon Web Services organization is present, this is either OrganizationalUnits or - * EntireOrganization. For OrganizationalUnits, the data is aggregated - * from a set of organization units. For EntireOrganization, the data is aggregated - * from the entire Amazon Web Services organization.

- */ - OrganizationSourceType: string | undefined; - /** - * @public - *

The Organizations organization units included in the sync.

- */ - OrganizationalUnits?: ResourceDataSyncOrganizationalUnit[]; -} -/** - * @public - *

Information about the source of the data included in the resource data sync.

- */ -export interface ResourceDataSyncSource { - /** - * @public - *

The type of data source for the resource data sync. SourceType is either - * AwsOrganizations (if an organization is present in Organizations) or - * SingleAccountMultiRegions.

- */ - SourceType: string | undefined; - /** - * @public - *

Information about the AwsOrganizationsSource resource data sync source. A sync - * source of this type can synchronize data from Organizations.

- */ - AwsOrganizationsSource?: ResourceDataSyncAwsOrganizationsSource; - /** - * @public - *

The SyncSource Amazon Web Services Regions included in the resource data sync.

- */ - SourceRegions: string[] | undefined; - /** - * @public - *

Whether to automatically synchronize and aggregate data from new Amazon Web Services Regions when those - * Regions come online.

- */ - IncludeFutureRegions?: boolean; - /** - * @public - *

When you create a resource data sync, if you choose one of the Organizations options, then Systems Manager - * automatically enables all OpsData sources in the selected Amazon Web Services Regions for all Amazon Web Services accounts in - * your organization (or in the selected organization units). For more information, see About multiple account and Region resource data syncs in the - * Amazon Web Services Systems Manager User Guide.

- */ - EnableAllOpsDataSources?: boolean; -} -/** - * @public - */ -export interface CreateResourceDataSyncRequest { - /** - * @public - *

A name for the configuration.

- */ - SyncName: string | undefined; - /** - * @public - *

Amazon S3 configuration details for the sync. This parameter is required if the - * SyncType value is SyncToDestination.

- */ - S3Destination?: ResourceDataSyncS3Destination; - /** - * @public - *

Specify SyncToDestination to create a resource data sync that synchronizes data - * to an S3 bucket for Inventory. If you specify SyncToDestination, you must provide a - * value for S3Destination. Specify SyncFromSource to synchronize data - * from a single account and multiple Regions, or multiple Amazon Web Services accounts and Amazon Web Services Regions, as - * listed in Organizations for Explorer. If you specify SyncFromSource, you must provide a - * value for SyncSource. The default value is SyncToDestination.

- */ - SyncType?: string; - /** - * @public - *

Specify information about the data sources to synchronize. This parameter is required if the - * SyncType value is SyncFromSource.

- */ - SyncSource?: ResourceDataSyncSource; -} -/** - * @public - */ -export interface CreateResourceDataSyncResult { -} -/** - * @public - *

A sync configuration with the same name already exists.

- */ -export declare class ResourceDataSyncAlreadyExistsException extends __BaseException { - readonly name: "ResourceDataSyncAlreadyExistsException"; - readonly $fault: "client"; - SyncName?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

You have exceeded the allowed maximum sync configurations.

- */ -export declare class ResourceDataSyncCountExceededException extends __BaseException { - readonly name: "ResourceDataSyncCountExceededException"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

The specified sync configuration is invalid.

- */ -export declare class ResourceDataSyncInvalidConfigurationException extends __BaseException { - readonly name: "ResourceDataSyncInvalidConfigurationException"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - */ -export interface DeleteActivationRequest { - /** - * @public - *

The ID of the activation that you want to delete.

- */ - ActivationId: string | undefined; -} -/** - * @public - */ -export interface DeleteActivationResult { -} -/** - * @public - *

The activation isn't valid. The activation might have been deleted, or the ActivationId and - * the ActivationCode don't match.

- */ -export declare class InvalidActivation extends __BaseException { - readonly name: "InvalidActivation"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

The activation ID isn't valid. Verify the you entered the correct ActivationId or - * ActivationCode and try again.

- */ -export declare class InvalidActivationId extends __BaseException { - readonly name: "InvalidActivationId"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

The specified association doesn't exist.

- */ -export declare class AssociationDoesNotExist extends __BaseException { - readonly name: "AssociationDoesNotExist"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - */ -export interface DeleteAssociationRequest { - /** - * @public - *

The name of the SSM document.

- */ - Name?: string; - /** - * @public - *

The managed node ID.

- * - *

- * InstanceId has been deprecated. To specify a managed node ID for an - * association, use the Targets parameter. Requests that include the parameter - * InstanceID with Systems Manager documents (SSM documents) that use schema version 2.0 or - * later will fail. In addition, if you use the parameter InstanceId, you can't use - * the parameters AssociationName, DocumentVersion, - * MaxErrors, MaxConcurrency, OutputLocation, or - * ScheduleExpression. To use these parameters, you must use the Targets - * parameter.

- *
- */ - InstanceId?: string; - /** - * @public - *

The association ID that you want to delete.

- */ - AssociationId?: string; -} -/** - * @public - */ -export interface DeleteAssociationResult { -} -/** - * @public - *

You must disassociate a document from all managed nodes before you can delete it.

- */ -export declare class AssociatedInstances extends __BaseException { - readonly name: "AssociatedInstances"; - readonly $fault: "client"; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - */ -export interface DeleteDocumentRequest { - /** - * @public - *

The name of the document.

- */ - Name: string | undefined; - /** - * @public - *

The version of the document that you want to delete. If not provided, all versions of the - * document are deleted.

- */ - DocumentVersion?: string; - /** - * @public - *

The version name of the document that you want to delete. If not provided, all versions of - * the document are deleted.

- */ - VersionName?: string; - /** - * @public - *

Some SSM document types require that you specify a Force flag before you can - * delete the document. For example, you must specify a Force flag to delete a document - * of type ApplicationConfigurationSchema. You can restrict access to the - * Force flag in an Identity and Access Management (IAM) policy.

- */ - Force?: boolean; -} -/** - * @public - */ -export interface DeleteDocumentResult { -} -/** - * @public - *

You attempted to delete a document while it is still shared. You must stop sharing the - * document before you can delete it.

- */ -export declare class InvalidDocumentOperation extends __BaseException { - readonly name: "InvalidDocumentOperation"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - * @enum - */ -export declare const InventorySchemaDeleteOption: { - readonly DELETE_SCHEMA: "DeleteSchema"; - readonly DISABLE_SCHEMA: "DisableSchema"; -}; -/** - * @public - */ -export type InventorySchemaDeleteOption = (typeof InventorySchemaDeleteOption)[keyof typeof InventorySchemaDeleteOption]; -/** - * @public - */ -export interface DeleteInventoryRequest { - /** - * @public - *

The name of the custom inventory type for which you want to delete either all previously - * collected data or the inventory type itself.

- */ - TypeName: string | undefined; - /** - * @public - *

Use the SchemaDeleteOption to delete a custom inventory type (schema). If you - * don't choose this option, the system only deletes existing inventory data associated with the - * custom inventory type. Choose one of the following options:

- *

DisableSchema: If you choose this option, the system ignores all inventory data for the - * specified version, and any earlier versions. To enable this schema again, you must call the - * PutInventory operation for a version greater than the disabled version.

- *

DeleteSchema: This option deletes the specified custom type from the Inventory service. You - * can recreate the schema later, if you want.

- */ - SchemaDeleteOption?: InventorySchemaDeleteOption; - /** - * @public - *

Use this option to view a summary of the deletion request without deleting any data or the - * data type. This option is useful when you only want to understand what will be deleted. Once you - * validate that the data to be deleted is what you intend to delete, you can run the same command - * without specifying the DryRun option.

- */ - DryRun?: boolean; - /** - * @public - *

User-provided idempotency token.

- */ - ClientToken?: string; -} -/** - * @public - *

Either a count, remaining count, or a version number in a delete inventory summary.

- */ -export interface InventoryDeletionSummaryItem { - /** - * @public - *

The inventory type version.

- */ - Version?: string; - /** - * @public - *

A count of the number of deleted items.

- */ - Count?: number; - /** - * @public - *

The remaining number of items to delete.

- */ - RemainingCount?: number; -} -/** - * @public - *

Information about the delete operation.

- */ -export interface InventoryDeletionSummary { - /** - * @public - *

The total number of items to delete. This count doesn't change during the delete - * operation.

- */ - TotalCount?: number; - /** - * @public - *

Remaining number of items to delete.

- */ - RemainingCount?: number; - /** - * @public - *

A list of counts and versions for deleted items.

- */ - SummaryItems?: InventoryDeletionSummaryItem[]; -} -/** - * @public - */ -export interface DeleteInventoryResult { - /** - * @public - *

Every DeleteInventory operation is assigned a unique ID. This option returns a - * unique ID. You can use this ID to query the status of a delete operation. This option is useful - * for ensuring that a delete operation has completed before you begin other operations.

- */ - DeletionId?: string; - /** - * @public - *

The name of the inventory data type specified in the request.

- */ - TypeName?: string; - /** - * @public - *

A summary of the delete operation. For more information about this summary, see Deleting custom inventory in the Amazon Web Services Systems Manager User Guide.

- */ - DeletionSummary?: InventoryDeletionSummary; -} -/** - * @public - *

One or more of the parameters specified for the delete operation isn't valid. Verify all - * parameters and try again.

- */ -export declare class InvalidDeleteInventoryParametersException extends __BaseException { - readonly name: "InvalidDeleteInventoryParametersException"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

The request isn't valid.

- */ -export declare class InvalidInventoryRequestException extends __BaseException { - readonly name: "InvalidInventoryRequestException"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

The delete inventory option specified isn't valid. Verify the option and try again.

- */ -export declare class InvalidOptionException extends __BaseException { - readonly name: "InvalidOptionException"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

The parameter type name isn't valid.

- */ -export declare class InvalidTypeNameException extends __BaseException { - readonly name: "InvalidTypeNameException"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - */ -export interface DeleteMaintenanceWindowRequest { - /** - * @public - *

The ID of the maintenance window to delete.

- */ - WindowId: string | undefined; -} -/** - * @public - */ -export interface DeleteMaintenanceWindowResult { - /** - * @public - *

The ID of the deleted maintenance window.

- */ - WindowId?: string; -} -/** - * @public - */ -export interface DeleteOpsItemRequest { - /** - * @public - *

The ID of the OpsItem that you want to delete.

- */ - OpsItemId: string | undefined; -} -/** - * @public - */ -export interface DeleteOpsItemResponse { -} -/** - * @public - */ -export interface DeleteOpsMetadataRequest { - /** - * @public - *

The Amazon Resource Name (ARN) of an OpsMetadata Object to delete.

- */ - OpsMetadataArn: string | undefined; -} -/** - * @public - */ -export interface DeleteOpsMetadataResult { -} -/** - * @public - *

The OpsMetadata object doesn't exist.

- */ -export declare class OpsMetadataNotFoundException extends __BaseException { - readonly name: "OpsMetadataNotFoundException"; - readonly $fault: "client"; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - */ -export interface DeleteParameterRequest { - /** - * @public - *

The name of the parameter to delete.

- */ - Name: string | undefined; -} -/** - * @public - */ -export interface DeleteParameterResult { -} -/** - * @public - *

The parameter couldn't be found. Verify the name and try again.

- */ -export declare class ParameterNotFound extends __BaseException { - readonly name: "ParameterNotFound"; - readonly $fault: "client"; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - */ -export interface DeleteParametersRequest { - /** - * @public - *

The names of the parameters to delete. After deleting a parameter, wait for at least 30 - * seconds to create a parameter with the same name.

- */ - Names: string[] | undefined; -} -/** - * @public - */ -export interface DeleteParametersResult { - /** - * @public - *

The names of the deleted parameters.

- */ - DeletedParameters?: string[]; - /** - * @public - *

The names of parameters that weren't deleted because the parameters aren't valid.

- */ - InvalidParameters?: string[]; -} -/** - * @public - */ -export interface DeletePatchBaselineRequest { - /** - * @public - *

The ID of the patch baseline to delete.

- */ - BaselineId: string | undefined; -} -/** - * @public - */ -export interface DeletePatchBaselineResult { - /** - * @public - *

The ID of the deleted patch baseline.

- */ - BaselineId?: string; -} -/** - * @public - *

Error returned if an attempt is made to delete a patch baseline that is registered for a - * patch group.

- */ -export declare class ResourceInUseException extends __BaseException { - readonly name: "ResourceInUseException"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - */ -export interface DeleteResourceDataSyncRequest { - /** - * @public - *

The name of the configuration to delete.

- */ - SyncName: string | undefined; - /** - * @public - *

Specify the type of resource data sync to delete.

- */ - SyncType?: string; -} -/** - * @public - */ -export interface DeleteResourceDataSyncResult { -} -/** - * @public - *

The specified sync name wasn't found.

- */ -export declare class ResourceDataSyncNotFoundException extends __BaseException { - readonly name: "ResourceDataSyncNotFoundException"; - readonly $fault: "client"; - SyncName?: string; - SyncType?: string; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - */ -export interface DeleteResourcePolicyRequest { - /** - * @public - *

Amazon Resource Name (ARN) of the resource to which the policies are attached.

- */ - ResourceArn: string | undefined; - /** - * @public - *

The policy ID.

- */ - PolicyId: string | undefined; - /** - * @public - *

ID of the current policy version. The hash helps to prevent multiple calls from attempting - * to overwrite a policy.

- */ - PolicyHash: string | undefined; -} -/** - * @public - */ -export interface DeleteResourcePolicyResponse { -} -/** - * @public - *

The hash provided in the call doesn't match the stored hash. This exception is thrown when - * trying to update an obsolete policy version or when multiple requests to update a policy are - * sent.

- */ -export declare class ResourcePolicyConflictException extends __BaseException { - readonly name: "ResourcePolicyConflictException"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

One or more parameters specified for the call aren't valid. Verify the parameters and their - * values and try again.

- */ -export declare class ResourcePolicyInvalidParameterException extends __BaseException { - readonly name: "ResourcePolicyInvalidParameterException"; - readonly $fault: "client"; - ParameterNames?: string[]; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - */ -export interface DeregisterManagedInstanceRequest { - /** - * @public - *

The ID assigned to the managed node when you registered it using the activation process. - *

- */ - InstanceId: string | undefined; -} -/** - * @public - */ -export interface DeregisterManagedInstanceResult { -} -/** - * @public - */ -export interface DeregisterPatchBaselineForPatchGroupRequest { - /** - * @public - *

The ID of the patch baseline to deregister the patch group from.

- */ - BaselineId: string | undefined; - /** - * @public - *

The name of the patch group that should be deregistered from the patch baseline.

- */ - PatchGroup: string | undefined; -} -/** - * @public - */ -export interface DeregisterPatchBaselineForPatchGroupResult { - /** - * @public - *

The ID of the patch baseline the patch group was deregistered from.

- */ - BaselineId?: string; - /** - * @public - *

The name of the patch group deregistered from the patch baseline.

- */ - PatchGroup?: string; -} -/** - * @public - */ -export interface DeregisterTargetFromMaintenanceWindowRequest { - /** - * @public - *

The ID of the maintenance window the target should be removed from.

- */ - WindowId: string | undefined; - /** - * @public - *

The ID of the target definition to remove.

- */ - WindowTargetId: string | undefined; - /** - * @public - *

The system checks if the target is being referenced by a task. If the target is being - * referenced, the system returns an error and doesn't deregister the target from the maintenance - * window.

- */ - Safe?: boolean; -} -/** - * @public - */ -export interface DeregisterTargetFromMaintenanceWindowResult { - /** - * @public - *

The ID of the maintenance window the target was removed from.

- */ - WindowId?: string; - /** - * @public - *

The ID of the removed target definition.

- */ - WindowTargetId?: string; -} -/** - * @public - *

You specified the Safe option for the DeregisterTargetFromMaintenanceWindow - * operation, but the target is still referenced in a task.

- */ -export declare class TargetInUseException extends __BaseException { - readonly name: "TargetInUseException"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - */ -export interface DeregisterTaskFromMaintenanceWindowRequest { - /** - * @public - *

The ID of the maintenance window the task should be removed from.

- */ - WindowId: string | undefined; - /** - * @public - *

The ID of the task to remove from the maintenance window.

- */ - WindowTaskId: string | undefined; -} -/** - * @public - */ -export interface DeregisterTaskFromMaintenanceWindowResult { - /** - * @public - *

The ID of the maintenance window the task was removed from.

- */ - WindowId?: string; - /** - * @public - *

The ID of the task removed from the maintenance window.

- */ - WindowTaskId?: string; -} -/** - * @public - * @enum - */ -export declare const DescribeActivationsFilterKeys: { - readonly ACTIVATION_IDS: "ActivationIds"; - readonly DEFAULT_INSTANCE_NAME: "DefaultInstanceName"; - readonly IAM_ROLE: "IamRole"; -}; -/** - * @public - */ -export type DescribeActivationsFilterKeys = (typeof DescribeActivationsFilterKeys)[keyof typeof DescribeActivationsFilterKeys]; -/** - * @public - *

Filter for the DescribeActivation API.

- */ -export interface DescribeActivationsFilter { - /** - * @public - *

The name of the filter.

- */ - FilterKey?: DescribeActivationsFilterKeys; - /** - * @public - *

The filter values.

- */ - FilterValues?: string[]; -} -/** - * @public - */ -export interface DescribeActivationsRequest { - /** - * @public - *

A filter to view information about your activations.

- */ - Filters?: DescribeActivationsFilter[]; - /** - * @public - *

The maximum number of items to return for this call. The call also returns a token that you - * can specify in a subsequent call to get the next set of results.

- */ - MaxResults?: number; - /** - * @public - *

A token to start the list. Use this token to get the next set of results.

- */ - NextToken?: string; -} -/** - * @public - */ -export interface DescribeActivationsResult { - /** - * @public - *

A list of activations for your Amazon Web Services account.

- */ - ActivationList?: Activation[]; - /** - * @public - *

The token for the next set of items to return. Use this token to get the next set of - * results.

- */ - NextToken?: string; -} -/** - * @public - *

The filter name isn't valid. Verify the you entered the correct name and try again.

- */ -export declare class InvalidFilter extends __BaseException { - readonly name: "InvalidFilter"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

The specified token isn't valid.

- */ -export declare class InvalidNextToken extends __BaseException { - readonly name: "InvalidNextToken"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - */ -export interface DescribeAssociationRequest { - /** - * @public - *

The name of the SSM document.

- */ - Name?: string; - /** - * @public - *

The managed node ID.

- */ - InstanceId?: string; - /** - * @public - *

The association ID for which you want information.

- */ - AssociationId?: string; - /** - * @public - *

Specify the association version to retrieve. To view the latest version, either specify - * $LATEST for this parameter, or omit this parameter. To view a list of all - * associations for a managed node, use ListAssociations. To get a list of - * versions for a specific association, use ListAssociationVersions.

- */ - AssociationVersion?: string; -} -/** - * @public - */ -export interface DescribeAssociationResult { - /** - * @public - *

Information about the association.

- */ - AssociationDescription?: AssociationDescription; -} -/** - * @public - *

The version you specified isn't valid. Use ListAssociationVersions to view all versions of - * an association according to the association ID. Or, use the $LATEST parameter to - * view the latest version of the association.

- */ -export declare class InvalidAssociationVersion extends __BaseException { - readonly name: "InvalidAssociationVersion"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - * @enum - */ -export declare const AssociationExecutionFilterKey: { - readonly CreatedTime: "CreatedTime"; - readonly ExecutionId: "ExecutionId"; - readonly Status: "Status"; -}; -/** - * @public - */ -export type AssociationExecutionFilterKey = (typeof AssociationExecutionFilterKey)[keyof typeof AssociationExecutionFilterKey]; -/** - * @public - * @enum - */ -export declare const AssociationFilterOperatorType: { - readonly Equal: "EQUAL"; - readonly GreaterThan: "GREATER_THAN"; - readonly LessThan: "LESS_THAN"; -}; -/** - * @public - */ -export type AssociationFilterOperatorType = (typeof AssociationFilterOperatorType)[keyof typeof AssociationFilterOperatorType]; -/** - * @public - *

Filters used in the request.

- */ -export interface AssociationExecutionFilter { - /** - * @public - *

The key value used in the request.

- */ - Key: AssociationExecutionFilterKey | undefined; - /** - * @public - *

The value specified for the key.

- */ - Value: string | undefined; - /** - * @public - *

The filter type specified in the request.

- */ - Type: AssociationFilterOperatorType | undefined; -} -/** - * @public - */ -export interface DescribeAssociationExecutionsRequest { - /** - * @public - *

The association ID for which you want to view execution history details.

- */ - AssociationId: string | undefined; - /** - * @public - *

Filters for the request. You can specify the following filters and values.

- *

ExecutionId (EQUAL)

- *

Status (EQUAL)

- *

CreatedTime (EQUAL, GREATER_THAN, LESS_THAN)

- */ - Filters?: AssociationExecutionFilter[]; - /** - * @public - *

The maximum number of items to return for this call. The call also returns a token that you - * can specify in a subsequent call to get the next set of results.

- */ - MaxResults?: number; - /** - * @public - *

A token to start the list. Use this token to get the next set of results.

- */ - NextToken?: string; -} -/** - * @public - *

Includes information about the specified association.

- */ -export interface AssociationExecution { - /** - * @public - *

The association ID.

- */ - AssociationId?: string; - /** - * @public - *

The association version.

- */ - AssociationVersion?: string; - /** - * @public - *

The execution ID for the association.

- */ - ExecutionId?: string; - /** - * @public - *

The status of the association execution.

- */ - Status?: string; - /** - * @public - *

Detailed status information about the execution.

- */ - DetailedStatus?: string; - /** - * @public - *

The time the execution started.

- */ - CreatedTime?: Date; - /** - * @public - *

The date of the last execution.

- */ - LastExecutionDate?: Date; - /** - * @public - *

An aggregate status of the resources in the execution based on the status type.

- */ - ResourceCountByStatus?: string; - /** - * @public - *

The details for the CloudWatch alarm you want to apply to an automation or - * command.

- */ - AlarmConfiguration?: AlarmConfiguration; - /** - * @public - *

The CloudWatch alarms that were invoked by the association.

- */ - TriggeredAlarms?: AlarmStateInformation[]; -} -/** - * @public - */ -export interface DescribeAssociationExecutionsResult { - /** - * @public - *

A list of the executions for the specified association ID.

- */ - AssociationExecutions?: AssociationExecution[]; - /** - * @public - *

The token for the next set of items to return. Use this token to get the next set of - * results.

- */ - NextToken?: string; -} -/** - * @public - *

The specified execution ID doesn't exist. Verify the ID number and try again.

- */ -export declare class AssociationExecutionDoesNotExist extends __BaseException { - readonly name: "AssociationExecutionDoesNotExist"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - * @enum - */ -export declare const AssociationExecutionTargetsFilterKey: { - readonly ResourceId: "ResourceId"; - readonly ResourceType: "ResourceType"; - readonly Status: "Status"; -}; -/** - * @public - */ -export type AssociationExecutionTargetsFilterKey = (typeof AssociationExecutionTargetsFilterKey)[keyof typeof AssociationExecutionTargetsFilterKey]; -/** - * @public - *

Filters for the association execution.

- */ -export interface AssociationExecutionTargetsFilter { - /** - * @public - *

The key value used in the request.

- */ - Key: AssociationExecutionTargetsFilterKey | undefined; - /** - * @public - *

The value specified for the key.

- */ - Value: string | undefined; -} -/** - * @public - */ -export interface DescribeAssociationExecutionTargetsRequest { - /** - * @public - *

The association ID that includes the execution for which you want to view details.

- */ - AssociationId: string | undefined; - /** - * @public - *

The execution ID for which you want to view details.

- */ - ExecutionId: string | undefined; - /** - * @public - *

Filters for the request. You can specify the following filters and values.

- *

Status (EQUAL)

- *

ResourceId (EQUAL)

- *

ResourceType (EQUAL)

- */ - Filters?: AssociationExecutionTargetsFilter[]; - /** - * @public - *

The maximum number of items to return for this call. The call also returns a token that you - * can specify in a subsequent call to get the next set of results.

- */ - MaxResults?: number; - /** - * @public - *

A token to start the list. Use this token to get the next set of results.

- */ - NextToken?: string; -} -/** - * @public - *

Information about the source where the association execution details are stored.

- */ -export interface OutputSource { - /** - * @public - *

The ID of the output source, for example the URL of an S3 bucket.

- */ - OutputSourceId?: string; - /** - * @public - *

The type of source where the association execution details are stored, for example, Amazon S3.

- */ - OutputSourceType?: string; -} -/** - * @public - *

Includes information about the specified association execution.

- */ -export interface AssociationExecutionTarget { - /** - * @public - *

The association ID.

- */ - AssociationId?: string; - /** - * @public - *

The association version.

- */ - AssociationVersion?: string; - /** - * @public - *

The execution ID.

- */ - ExecutionId?: string; - /** - * @public - *

The resource ID, for example, the managed node ID where the association ran.

- */ - ResourceId?: string; - /** - * @public - *

The resource type, for example, EC2.

- */ - ResourceType?: string; - /** - * @public - *

The association execution status.

- */ - Status?: string; - /** - * @public - *

Detailed information about the execution status.

- */ - DetailedStatus?: string; - /** - * @public - *

The date of the last execution.

- */ - LastExecutionDate?: Date; - /** - * @public - *

The location where the association details are saved.

- */ - OutputSource?: OutputSource; -} -/** - * @public - */ -export interface DescribeAssociationExecutionTargetsResult { - /** - * @public - *

Information about the execution.

- */ - AssociationExecutionTargets?: AssociationExecutionTarget[]; - /** - * @public - *

The token for the next set of items to return. Use this token to get the next set of - * results.

- */ - NextToken?: string; -} -/** - * @public - * @enum - */ -export declare const AutomationExecutionFilterKey: { - readonly AUTOMATION_SUBTYPE: "AutomationSubtype"; - readonly AUTOMATION_TYPE: "AutomationType"; - readonly CURRENT_ACTION: "CurrentAction"; - readonly DOCUMENT_NAME_PREFIX: "DocumentNamePrefix"; - readonly EXECUTION_ID: "ExecutionId"; - readonly EXECUTION_STATUS: "ExecutionStatus"; - readonly OPS_ITEM_ID: "OpsItemId"; - readonly PARENT_EXECUTION_ID: "ParentExecutionId"; - readonly START_TIME_AFTER: "StartTimeAfter"; - readonly START_TIME_BEFORE: "StartTimeBefore"; - readonly TAG_KEY: "TagKey"; - readonly TARGET_RESOURCE_GROUP: "TargetResourceGroup"; -}; -/** - * @public - */ -export type AutomationExecutionFilterKey = (typeof AutomationExecutionFilterKey)[keyof typeof AutomationExecutionFilterKey]; -/** - * @public - *

A filter used to match specific automation executions. This is used to limit the scope of - * Automation execution information returned.

- */ -export interface AutomationExecutionFilter { - /** - * @public - *

One or more keys to limit the results.

- */ - Key: AutomationExecutionFilterKey | undefined; - /** - * @public - *

The values used to limit the execution information associated with the filter's key.

- */ - Values: string[] | undefined; -} -/** - * @public - */ -export interface DescribeAutomationExecutionsRequest { - /** - * @public - *

Filters used to limit the scope of executions that are requested.

- */ - Filters?: AutomationExecutionFilter[]; - /** - * @public - *

The maximum number of items to return for this call. The call also returns a token that you - * can specify in a subsequent call to get the next set of results.

- */ - MaxResults?: number; - /** - * @public - *

The token for the next set of items to return. (You received this token from a previous - * call.)

- */ - NextToken?: string; -} -/** - * @public - * @enum - */ -export declare const AutomationExecutionStatus: { - readonly APPROVED: "Approved"; - readonly CANCELLED: "Cancelled"; - readonly CANCELLING: "Cancelling"; - readonly CHANGE_CALENDAR_OVERRIDE_APPROVED: "ChangeCalendarOverrideApproved"; - readonly CHANGE_CALENDAR_OVERRIDE_REJECTED: "ChangeCalendarOverrideRejected"; - readonly COMPLETED_WITH_FAILURE: "CompletedWithFailure"; - readonly COMPLETED_WITH_SUCCESS: "CompletedWithSuccess"; - readonly EXITED: "Exited"; - readonly FAILED: "Failed"; - readonly INPROGRESS: "InProgress"; - readonly PENDING: "Pending"; - readonly PENDING_APPROVAL: "PendingApproval"; - readonly PENDING_CHANGE_CALENDAR_OVERRIDE: "PendingChangeCalendarOverride"; - readonly REJECTED: "Rejected"; - readonly RUNBOOK_INPROGRESS: "RunbookInProgress"; - readonly SCHEDULED: "Scheduled"; - readonly SUCCESS: "Success"; - readonly TIMEDOUT: "TimedOut"; - readonly WAITING: "Waiting"; -}; -/** - * @public - */ -export type AutomationExecutionStatus = (typeof AutomationExecutionStatus)[keyof typeof AutomationExecutionStatus]; -/** - * @public - * @enum - */ -export declare const AutomationSubtype: { - readonly ChangeRequest: "ChangeRequest"; -}; -/** - * @public - */ -export type AutomationSubtype = (typeof AutomationSubtype)[keyof typeof AutomationSubtype]; -/** - * @public - * @enum - */ -export declare const AutomationType: { - readonly CrossAccount: "CrossAccount"; - readonly Local: "Local"; -}; -/** - * @public - */ -export type AutomationType = (typeof AutomationType)[keyof typeof AutomationType]; -/** - * @public - * @enum - */ -export declare const ExecutionMode: { - readonly Auto: "Auto"; - readonly Interactive: "Interactive"; -}; -/** - * @public - */ -export type ExecutionMode = (typeof ExecutionMode)[keyof typeof ExecutionMode]; -/** - * @public - *

Information about targets that resolved during the Automation execution.

- */ -export interface ResolvedTargets { - /** - * @public - *

A list of parameter values sent to targets that resolved during the Automation - * execution.

- */ - ParameterValues?: string[]; - /** - * @public - *

A boolean value indicating whether the resolved target list is truncated.

- */ - Truncated?: boolean; -} -/** - * @public - *

Information about an Automation runbook used in a runbook workflow in Change Manager.

- * - *

The Automation runbooks specified for the runbook workflow can't run until all required - * approvals for the change request have been received.

- *
- */ -export interface Runbook { - /** - * @public - *

The name of the Automation runbook used in a runbook workflow.

- */ - DocumentName: string | undefined; - /** - * @public - *

The version of the Automation runbook used in a runbook workflow.

- */ - DocumentVersion?: string; - /** - * @public - *

The key-value map of execution parameters, which were supplied when calling - * StartChangeRequestExecution.

- */ - Parameters?: Record; - /** - * @public - *

The name of the parameter used as the target resource for the rate-controlled - * runbook workflow. Required if you specify Targets.

- */ - TargetParameterName?: string; - /** - * @public - *

A key-value mapping to target resources that the runbook operation performs tasks on. - * Required if you specify TargetParameterName.

- */ - Targets?: Target[]; - /** - * @public - *

A key-value mapping of runbook parameters to target resources. Both Targets and TargetMaps - * can't be specified together.

- */ - TargetMaps?: Record[]; - /** - * @public - *

The MaxConcurrency value specified by the user when the operation started, - * indicating the maximum number of resources that the runbook operation can run on at the same - * time.

- */ - MaxConcurrency?: string; - /** - * @public - *

The MaxErrors value specified by the user when the execution started, - * indicating the maximum number of errors that can occur during the operation before the updates - * are stopped or rolled back.

- */ - MaxErrors?: string; - /** - * @public - *

Information about the Amazon Web Services Regions and Amazon Web Services accounts targeted by the current Runbook - * operation.

- */ - TargetLocations?: TargetLocation[]; -} -/** - * @public - *

Details about a specific Automation execution.

- */ -export interface AutomationExecutionMetadata { - /** - * @public - *

The execution ID.

- */ - AutomationExecutionId?: string; - /** - * @public - *

The name of the Automation runbook used during execution.

- */ - DocumentName?: string; - /** - * @public - *

The document version used during the execution.

- */ - DocumentVersion?: string; - /** - * @public - *

The status of the execution.

- */ - AutomationExecutionStatus?: AutomationExecutionStatus; - /** - * @public - *

The time the execution started.

- */ - ExecutionStartTime?: Date; - /** - * @public - *

The time the execution finished. This isn't populated if the execution is still in - * progress.

- */ - ExecutionEndTime?: Date; - /** - * @public - *

The IAM role ARN of the user who ran the automation.

- */ - ExecutedBy?: string; - /** - * @public - *

An S3 bucket where execution information is stored.

- */ - LogFile?: string; - /** - * @public - *

The list of execution outputs as defined in the Automation runbook.

- */ - Outputs?: Record; - /** - * @public - *

The Automation execution mode.

- */ - Mode?: ExecutionMode; - /** - * @public - *

The execution ID of the parent automation.

- */ - ParentAutomationExecutionId?: string; - /** - * @public - *

The name of the step that is currently running.

- */ - CurrentStepName?: string; - /** - * @public - *

The action of the step that is currently running.

- */ - CurrentAction?: string; - /** - * @public - *

The list of execution outputs as defined in the Automation runbook.

- */ - FailureMessage?: string; - /** - * @public - *

The list of execution outputs as defined in the Automation runbook.

- */ - TargetParameterName?: string; - /** - * @public - *

The targets defined by the user when starting the automation.

- */ - Targets?: Target[]; - /** - * @public - *

The specified key-value mapping of document parameters to target resources.

- */ - TargetMaps?: Record[]; - /** - * @public - *

A list of targets that resolved during the execution.

- */ - ResolvedTargets?: ResolvedTargets; - /** - * @public - *

The MaxConcurrency value specified by the user when starting the - * automation.

- */ - MaxConcurrency?: string; - /** - * @public - *

The MaxErrors value specified by the user when starting the automation.

- */ - MaxErrors?: string; - /** - * @public - *

The list of execution outputs as defined in the Automation runbook.

- */ - Target?: string; - /** - * @public - *

Use this filter with DescribeAutomationExecutions. Specify either Local or - * CrossAccount. CrossAccount is an Automation that runs in multiple Amazon Web Services Regions and - * Amazon Web Services accounts. For more information, see Running Automation workflows in multiple Amazon Web Services Regions and accounts in the - * Amazon Web Services Systems Manager User Guide.

- */ - AutomationType?: AutomationType; - /** - * @public - *

The details for the CloudWatch alarm applied to your automation.

- */ - AlarmConfiguration?: AlarmConfiguration; - /** - * @public - *

The CloudWatch alarm that was invoked by the automation.

- */ - TriggeredAlarms?: AlarmStateInformation[]; - /** - * @public - *

The subtype of the Automation operation. Currently, the only supported value is - * ChangeRequest.

- */ - AutomationSubtype?: AutomationSubtype; - /** - * @public - *

The date and time the Automation operation is scheduled to start.

- */ - ScheduledTime?: Date; - /** - * @public - *

Information about the Automation runbooks that are run during a runbook workflow in - * Change Manager.

- * - *

The Automation runbooks specified for the runbook workflow can't run until all required - * approvals for the change request have been received.

- *
- */ - Runbooks?: Runbook[]; - /** - * @public - *

The ID of an OpsItem that is created to represent a Change Manager change request.

- */ - OpsItemId?: string; - /** - * @public - *

The ID of a State Manager association used in the Automation operation.

- */ - AssociationId?: string; - /** - * @public - *

The name of the Change Manager change request.

- */ - ChangeRequestName?: string; -} -/** - * @public - */ -export interface DescribeAutomationExecutionsResult { - /** - * @public - *

The list of details about each automation execution which has occurred which matches the - * filter specification, if any.

- */ - AutomationExecutionMetadataList?: AutomationExecutionMetadata[]; - /** - * @public - *

The token to use when requesting the next set of items. If there are no additional items to - * return, the string is empty.

- */ - NextToken?: string; -} -/** - * @public - *

The specified key isn't valid.

- */ -export declare class InvalidFilterKey extends __BaseException { - readonly name: "InvalidFilterKey"; - readonly $fault: "client"; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

The filter value isn't valid. Verify the value and try again.

- */ -export declare class InvalidFilterValue extends __BaseException { - readonly name: "InvalidFilterValue"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

There is no automation execution information for the requested automation execution - * ID.

- */ -export declare class AutomationExecutionNotFoundException extends __BaseException { - readonly name: "AutomationExecutionNotFoundException"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - * @enum - */ -export declare const StepExecutionFilterKey: { - readonly ACTION: "Action"; - readonly PARENT_STEP_EXECUTION_ID: "ParentStepExecutionId"; - readonly PARENT_STEP_ITERATION: "ParentStepIteration"; - readonly PARENT_STEP_ITERATOR_VALUE: "ParentStepIteratorValue"; - readonly START_TIME_AFTER: "StartTimeAfter"; - readonly START_TIME_BEFORE: "StartTimeBefore"; - readonly STEP_EXECUTION_ID: "StepExecutionId"; - readonly STEP_EXECUTION_STATUS: "StepExecutionStatus"; - readonly STEP_NAME: "StepName"; -}; -/** - * @public - */ -export type StepExecutionFilterKey = (typeof StepExecutionFilterKey)[keyof typeof StepExecutionFilterKey]; -/** - * @public - *

A filter to limit the amount of step execution information returned by the call.

- */ -export interface StepExecutionFilter { - /** - * @public - *

One or more keys to limit the results.

- */ - Key: StepExecutionFilterKey | undefined; - /** - * @public - *

The values of the filter key.

- */ - Values: string[] | undefined; -} -/** - * @public - */ -export interface DescribeAutomationStepExecutionsRequest { - /** - * @public - *

The Automation execution ID for which you want step execution descriptions.

- */ - AutomationExecutionId: string | undefined; - /** - * @public - *

One or more filters to limit the number of step executions returned by the request.

- */ - Filters?: StepExecutionFilter[]; - /** - * @public - *

The token for the next set of items to return. (You received this token from a previous - * call.)

- */ - NextToken?: string; - /** - * @public - *

The maximum number of items to return for this call. The call also returns a token that you - * can specify in a subsequent call to get the next set of results.

- */ - MaxResults?: number; - /** - * @public - *

Indicates whether to list step executions in reverse order by start time. The default value - * is 'false'.

- */ - ReverseOrder?: boolean; -} -/** - * @public - *

Information about an Automation failure.

- */ -export interface FailureDetails { - /** - * @public - *

The stage of the Automation execution when the failure occurred. The stages include the - * following: InputValidation, PreVerification, Invocation, PostVerification.

- */ - FailureStage?: string; - /** - * @public - *

The type of Automation failure. Failure types include the following: Action, Permission, - * Throttling, Verification, Internal.

- */ - FailureType?: string; - /** - * @public - *

Detailed information about the Automation step failure.

- */ - Details?: Record; -} -/** - * @public - *

A detailed status of the parent step.

- */ -export interface ParentStepDetails { - /** - * @public - *

The unique ID of a step execution.

- */ - StepExecutionId?: string; - /** - * @public - *

The name of the step.

- */ - StepName?: string; - /** - * @public - *

The name of the automation action.

- */ - Action?: string; - /** - * @public - *

The current repetition of the loop represented by an integer.

- */ - Iteration?: number; - /** - * @public - *

The current value of the specified iterator in the loop.

- */ - IteratorValue?: string; -} -/** - * @public - *

Detailed information about an the execution state of an Automation step.

- */ -export interface StepExecution { - /** - * @public - *

The name of this execution step.

- */ - StepName?: string; - /** - * @public - *

The action this step performs. The action determines the behavior of the step.

- */ - Action?: string; - /** - * @public - *

The timeout seconds of the step.

- */ - TimeoutSeconds?: number; - /** - * @public - *

The action to take if the step fails. The default value is Abort.

- */ - OnFailure?: string; - /** - * @public - *

The maximum number of tries to run the action of the step. The default value is - * 1.

- */ - MaxAttempts?: number; - /** - * @public - *

If a step has begun execution, this contains the time the step started. If the step is in - * Pending status, this field isn't populated.

- */ - ExecutionStartTime?: Date; - /** - * @public - *

If a step has finished execution, this contains the time the execution ended. If the step - * hasn't yet concluded, this field isn't populated.

- */ - ExecutionEndTime?: Date; - /** - * @public - *

The execution status for this step.

- */ - StepStatus?: AutomationExecutionStatus; - /** - * @public - *

The response code returned by the execution of the step.

- */ - ResponseCode?: string; - /** - * @public - *

Fully-resolved values passed into the step before execution.

- */ - Inputs?: Record; - /** - * @public - *

Returned values from the execution of the step.

- */ - Outputs?: Record; - /** - * @public - *

A message associated with the response code for an execution.

- */ - Response?: string; - /** - * @public - *

If a step failed, this message explains why the execution failed.

- */ - FailureMessage?: string; - /** - * @public - *

Information about the Automation failure.

- */ - FailureDetails?: FailureDetails; - /** - * @public - *

The unique ID of a step execution.

- */ - StepExecutionId?: string; - /** - * @public - *

A user-specified list of parameters to override when running a step.

- */ - OverriddenParameters?: Record; - /** - * @public - *

The flag which can be used to end automation no matter whether the step succeeds or - * fails.

- */ - IsEnd?: boolean; - /** - * @public - *

The next step after the step succeeds.

- */ - NextStep?: string; - /** - * @public - *

The flag which can be used to help decide whether the failure of current step leads to the - * Automation failure.

- */ - IsCritical?: boolean; - /** - * @public - *

Strategies used when step fails, we support Continue and Abort. Abort will fail the - * automation when the step fails. Continue will ignore the failure of current step and allow - * automation to run the next step. With conditional branching, we add step:stepName to support the - * automation to go to another specific step.

- */ - ValidNextSteps?: string[]; - /** - * @public - *

The targets for the step execution.

- */ - Targets?: Target[]; - /** - * @public - *

The combination of Amazon Web Services Regions and Amazon Web Services accounts targeted by the current Automation - * execution.

- */ - TargetLocation?: TargetLocation; - /** - * @public - *

The CloudWatch alarms that were invoked by the automation.

- */ - TriggeredAlarms?: AlarmStateInformation[]; - /** - * @public - *

Information about the parent step.

- */ - ParentStepDetails?: ParentStepDetails; -} -/** - * @public - */ -export interface DescribeAutomationStepExecutionsResult { - /** - * @public - *

A list of details about the current state of all steps that make up an execution.

- */ - StepExecutions?: StepExecution[]; - /** - * @public - *

The token to use when requesting the next set of items. If there are no additional items to - * return, the string is empty.

- */ - NextToken?: string; -} -/** - * @public - *

Defines a filter used in Patch Manager APIs. Supported filter keys depend on the API - * operation that includes the filter. Patch Manager API operations that use - * PatchOrchestratorFilter include the following:

- * - */ -export interface PatchOrchestratorFilter { - /** - * @public - *

The key for the filter.

- */ - Key?: string; - /** - * @public - *

The value for the filter.

- */ - Values?: string[]; -} -/** - * @public - */ -export interface DescribeAvailablePatchesRequest { - /** - * @public - *

Each element in the array is a structure containing a key-value pair.

- *

- * Windows Server - *

- *

Supported keys for Windows Server managed node patches include the following:

- *
    - *
  • - *

    - * - * PATCH_SET - * - *

    - *

    Sample values: OS | APPLICATION - *

    - *
  • - *
  • - *

    - * - * PRODUCT - * - *

    - *

    Sample values: WindowsServer2012 | Office 2010 | - * MicrosoftDefenderAntivirus - *

    - *
  • - *
  • - *

    - * - * PRODUCT_FAMILY - * - *

    - *

    Sample values: Windows | Office - *

    - *
  • - *
  • - *

    - * - * MSRC_SEVERITY - * - *

    - *

    Sample values: ServicePacks | Important | Moderate - *

    - *
  • - *
  • - *

    - * - * CLASSIFICATION - * - *

    - *

    Sample values: ServicePacks | SecurityUpdates | - * DefinitionUpdates - *

    - *
  • - *
  • - *

    - * - * PATCH_ID - * - *

    - *

    Sample values: KB123456 | KB4516046 - *

    - *
  • - *
- *

- * Linux - *

- * - *

When specifying filters for Linux patches, you must specify a key-pair for - * PRODUCT. For example, using the Command Line Interface (CLI), the - * following command fails:

- *

- * aws ssm describe-available-patches --filters Key=CVE_ID,Values=CVE-2018-3615 - *

- *

However, the following command succeeds:

- *

- * aws ssm describe-available-patches --filters Key=PRODUCT,Values=AmazonLinux2018.03 - * Key=CVE_ID,Values=CVE-2018-3615 - *

- *
- *

Supported keys for Linux managed node patches include the following:

- *
    - *
  • - *

    - * - * PRODUCT - * - *

    - *

    Sample values: AmazonLinux2018.03 | AmazonLinux2.0 - *

    - *
  • - *
  • - *

    - * - * NAME - * - *

    - *

    Sample values: kernel-headers | samba-python | php - *

    - *
  • - *
  • - *

    - * - * SEVERITY - * - *

    - *

    Sample values: Critical | Important | Medium | - * Low - *

    - *
  • - *
  • - *

    - * - * EPOCH - * - *

    - *

    Sample values: 0 | 1 - *

    - *
  • - *
  • - *

    - * - * VERSION - * - *

    - *

    Sample values: 78.6.1 | 4.10.16 - *

    - *
  • - *
  • - *

    - * - * RELEASE - * - *

    - *

    Sample values: 9.56.amzn1 | 1.amzn2 - *

    - *
  • - *
  • - *

    - * - * ARCH - * - *

    - *

    Sample values: i686 | x86_64 - *

    - *
  • - *
  • - *

    - * - * REPOSITORY - * - *

    - *

    Sample values: Core | Updates - *

    - *
  • - *
  • - *

    - * - * ADVISORY_ID - * - *

    - *

    Sample values: ALAS-2018-1058 | ALAS2-2021-1594 - *

    - *
  • - *
  • - *

    - * - * CVE_ID - * - *

    - *

    Sample values: CVE-2018-3615 | CVE-2020-1472 - *

    - *
  • - *
  • - *

    - * - * BUGZILLA_ID - * - *

    - *

    Sample values: 1463241 - *

    - *
  • - *
- */ - Filters?: PatchOrchestratorFilter[]; - /** - * @public - *

The maximum number of patches to return (per page).

- */ - MaxResults?: number; - /** - * @public - *

The token for the next set of items to return. (You received this token from a previous - * call.)

- */ - NextToken?: string; -} -/** - * @public - *

Represents metadata about a patch.

- */ -export interface Patch { - /** - * @public - *

The ID of the patch. Applies to Windows patches only.

- * - *

This ID isn't the same as the Microsoft Knowledge Base ID.

- *
- */ - Id?: string; - /** - * @public - *

The date the patch was released.

- */ - ReleaseDate?: Date; - /** - * @public - *

The title of the patch.

- */ - Title?: string; - /** - * @public - *

The description of the patch.

- */ - Description?: string; - /** - * @public - *

The URL where more information can be obtained about the patch.

- */ - ContentUrl?: string; - /** - * @public - *

The name of the vendor providing the patch.

- */ - Vendor?: string; - /** - * @public - *

The product family the patch is applicable for. For example, Windows or - * Amazon Linux 2.

- */ - ProductFamily?: string; - /** - * @public - *

The specific product the patch is applicable for. For example, - * WindowsServer2016 or AmazonLinux2018.03.

- */ - Product?: string; - /** - * @public - *

The classification of the patch. For example, SecurityUpdates, - * Updates, or CriticalUpdates.

- */ - Classification?: string; - /** - * @public - *

The severity of the patch, such as Critical, Important, or - * Moderate. Applies to Windows patches only.

- */ - MsrcSeverity?: string; - /** - * @public - *

The Microsoft Knowledge Base ID of the patch. Applies to Windows patches only.

- */ - KbNumber?: string; - /** - * @public - *

The ID of the Microsoft Security Response Center (MSRC) bulletin the patch is related to. - * For example, MS14-045. Applies to Windows patches only.

- */ - MsrcNumber?: string; - /** - * @public - *

The language of the patch if it's language-specific.

- */ - Language?: string; - /** - * @public - *

The Advisory ID of the patch. For example, RHSA-2020:3779. Applies to - * Linux-based managed nodes only.

- */ - AdvisoryIds?: string[]; - /** - * @public - *

The Bugzilla ID of the patch. For example, 1600646. Applies to Linux-based - * managed nodes only.

- */ - BugzillaIds?: string[]; - /** - * @public - *

The Common Vulnerabilities and Exposures (CVE) ID of the patch. For example, - * CVE-2011-3192. Applies to Linux-based managed nodes only.

- */ - CVEIds?: string[]; - /** - * @public - *

The name of the patch. Applies to Linux-based managed nodes only.

- */ - Name?: string; - /** - * @public - *

The epoch of the patch. For example in - * pkg-example-EE-20180914-2.2.amzn1.noarch, the epoch value is - * 20180914-2. Applies to Linux-based managed nodes only.

- */ - Epoch?: number; - /** - * @public - *

The version number of the patch. For example, in - * example-pkg-1.710.10-2.7.abcd.x86_64, the version number is indicated by - * -1. Applies to Linux-based managed nodes only.

- */ - Version?: string; - /** - * @public - *

The particular release of a patch. For example, in - * pkg-example-EE-20180914-2.2.amzn1.noarch, the release is 2.amaz1. - * Applies to Linux-based managed nodes only.

- */ - Release?: string; - /** - * @public - *

The architecture of the patch. For example, in - * example-pkg-0.710.10-2.7.abcd.x86_64, the architecture is indicated by - * x86_64. Applies to Linux-based managed nodes only.

- */ - Arch?: string; - /** - * @public - *

The severity level of the patch. For example, CRITICAL or - * MODERATE.

- */ - Severity?: string; - /** - * @public - *

The source patch repository for the operating system and version, such as - * trusty-security for Ubuntu Server 14.04 LTE and focal-security for - * Ubuntu Server 20.04 LTE. Applies to Linux-based managed nodes only.

- */ - Repository?: string; -} -/** - * @public - */ -export interface DescribeAvailablePatchesResult { - /** - * @public - *

An array of patches. Each entry in the array is a patch structure.

- */ - Patches?: Patch[]; - /** - * @public - *

The token to use when requesting the next set of items. If there are no additional items to - * return, the string is empty.

- */ - NextToken?: string; -} -/** - * @public - */ -export interface DescribeDocumentRequest { - /** - * @public - *

The name of the SSM document.

- */ - Name: string | undefined; - /** - * @public - *

The document version for which you want information. Can be a specific version or the - * default version.

- */ - DocumentVersion?: string; - /** - * @public - *

An optional field specifying the version of the artifact associated with the document. For - * example, "Release 12, Update 6". This value is unique across all versions of a document, and - * can't be changed.

- */ - VersionName?: string; -} -/** - * @public - */ -export interface DescribeDocumentResult { - /** - * @public - *

Information about the SSM document.

- */ - Document?: DocumentDescription; -} -/** - * @public - * @enum - */ -export declare const DocumentPermissionType: { - readonly SHARE: "Share"; -}; -/** - * @public - */ -export type DocumentPermissionType = (typeof DocumentPermissionType)[keyof typeof DocumentPermissionType]; -/** - * @public - */ -export interface DescribeDocumentPermissionRequest { - /** - * @public - *

The name of the document for which you are the owner.

- */ - Name: string | undefined; - /** - * @public - *

The permission type for the document. The permission type can be - * Share.

- */ - PermissionType: DocumentPermissionType | undefined; - /** - * @public - *

The maximum number of items to return for this call. The call also returns a token that you - * can specify in a subsequent call to get the next set of results.

- */ - MaxResults?: number; - /** - * @public - *

The token for the next set of items to return. (You received this token from a previous - * call.)

- */ - NextToken?: string; -} -/** - * @public - */ -export interface DescribeDocumentPermissionResponse { - /** - * @public - *

The account IDs that have permission to use this document. The ID can be either an - * Amazon Web Services account or All.

- */ - AccountIds?: string[]; - /** - * @public - *

A list of Amazon Web Services accounts where the current document is shared and the version shared with - * each account.

- */ - AccountSharingInfoList?: AccountSharingInfo[]; - /** - * @public - *

The token for the next set of items to return. Use this token to get the next set of - * results.

- */ - NextToken?: string; -} -/** - * @public - *

The permission type isn't supported. Share is the only supported - * permission type.

- */ -export declare class InvalidPermissionType extends __BaseException { - readonly name: "InvalidPermissionType"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - */ -export interface DescribeEffectiveInstanceAssociationsRequest { - /** - * @public - *

The managed node ID for which you want to view all associations.

- */ - InstanceId: string | undefined; - /** - * @public - *

The maximum number of items to return for this call. The call also returns a token that you - * can specify in a subsequent call to get the next set of results.

- */ - MaxResults?: number; - /** - * @public - *

The token for the next set of items to return. (You received this token from a previous - * call.)

- */ - NextToken?: string; -} -/** - * @public - *

One or more association documents on the managed node.

- */ -export interface InstanceAssociation { - /** - * @public - *

The association ID.

- */ - AssociationId?: string; - /** - * @public - *

The managed node ID.

- */ - InstanceId?: string; - /** - * @public - *

The content of the association document for the managed node(s).

- */ - Content?: string; - /** - * @public - *

Version information for the association on the managed node.

- */ - AssociationVersion?: string; -} -/** - * @public - */ -export interface DescribeEffectiveInstanceAssociationsResult { - /** - * @public - *

The associations for the requested managed node.

- */ - Associations?: InstanceAssociation[]; - /** - * @public - *

The token to use when requesting the next set of items. If there are no additional items to - * return, the string is empty.

- */ - NextToken?: string; -} -/** - * @public - */ -export interface DescribeEffectivePatchesForPatchBaselineRequest { - /** - * @public - *

The ID of the patch baseline to retrieve the effective patches for.

- */ - BaselineId: string | undefined; - /** - * @public - *

The maximum number of patches to return (per page).

- */ - MaxResults?: number; - /** - * @public - *

The token for the next set of items to return. (You received this token from a previous - * call.)

- */ - NextToken?: string; -} -/** - * @public - * @enum - */ -export declare const PatchDeploymentStatus: { - readonly Approved: "APPROVED"; - readonly ExplicitApproved: "EXPLICIT_APPROVED"; - readonly ExplicitRejected: "EXPLICIT_REJECTED"; - readonly PendingApproval: "PENDING_APPROVAL"; -}; -/** - * @public - */ -export type PatchDeploymentStatus = (typeof PatchDeploymentStatus)[keyof typeof PatchDeploymentStatus]; -/** - * @public - *

Information about the approval status of a patch.

- */ -export interface PatchStatus { - /** - * @public - *

The approval status of a patch.

- */ - DeploymentStatus?: PatchDeploymentStatus; - /** - * @public - *

The compliance severity level for a patch.

- */ - ComplianceLevel?: PatchComplianceLevel; - /** - * @public - *

The date the patch was approved (or will be approved if the status is - * PENDING_APPROVAL).

- */ - ApprovalDate?: Date; -} -/** - * @public - *

The EffectivePatch structure defines metadata about a patch along with the - * approval state of the patch in a particular patch baseline. The approval state includes - * information about whether the patch is currently approved, due to be approved by a rule, - * explicitly approved, or explicitly rejected and the date the patch was or will be - * approved.

- */ -export interface EffectivePatch { - /** - * @public - *

Provides metadata for a patch, including information such as the KB ID, severity, - * classification and a URL for where more information can be obtained about the patch.

- */ - Patch?: Patch; - /** - * @public - *

The status of the patch in a patch baseline. This includes information about whether the - * patch is currently approved, due to be approved by a rule, explicitly approved, or explicitly - * rejected and the date the patch was or will be approved.

- */ - PatchStatus?: PatchStatus; -} -/** - * @public - */ -export interface DescribeEffectivePatchesForPatchBaselineResult { - /** - * @public - *

An array of patches and patch status.

- */ - EffectivePatches?: EffectivePatch[]; - /** - * @public - *

The token to use when requesting the next set of items. If there are no additional items to - * return, the string is empty.

- */ - NextToken?: string; -} -/** - * @public - *

The operating systems you specified isn't supported, or the operation isn't supported for - * the operating system.

- */ -export declare class UnsupportedOperatingSystem extends __BaseException { - readonly name: "UnsupportedOperatingSystem"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - */ -export interface DescribeInstanceAssociationsStatusRequest { - /** - * @public - *

The managed node IDs for which you want association status information.

- */ - InstanceId: string | undefined; - /** - * @public - *

The maximum number of items to return for this call. The call also returns a token that you - * can specify in a subsequent call to get the next set of results.

- */ - MaxResults?: number; - /** - * @public - *

The token for the next set of items to return. (You received this token from a previous - * call.)

- */ - NextToken?: string; -} -/** - * @public - *

A URL for the Amazon Web Services Systems Manager (Systems Manager) bucket where you want to store the - * results of this request.

- */ -export interface S3OutputUrl { - /** - * @public - *

A URL for an S3 bucket where you want to store the results of this request.

- */ - OutputUrl?: string; -} -/** - * @public - *

The URL of S3 bucket where you want to store the results of this request.

- */ -export interface InstanceAssociationOutputUrl { - /** - * @public - *

The URL of S3 bucket where you want to store the results of this request.

- */ - S3OutputUrl?: S3OutputUrl; -} -/** - * @public - *

Status information about the association.

- */ -export interface InstanceAssociationStatusInfo { - /** - * @public - *

The association ID.

- */ - AssociationId?: string; - /** - * @public - *

The name of the association.

- */ - Name?: string; - /** - * @public - *

The association document versions.

- */ - DocumentVersion?: string; - /** - * @public - *

The version of the association applied to the managed node.

- */ - AssociationVersion?: string; - /** - * @public - *

The managed node ID where the association was created.

- */ - InstanceId?: string; - /** - * @public - *

The date the association ran.

- */ - ExecutionDate?: Date; - /** - * @public - *

Status information about the association.

- */ - Status?: string; - /** - * @public - *

Detailed status information about the association.

- */ - DetailedStatus?: string; - /** - * @public - *

Summary information about association execution.

- */ - ExecutionSummary?: string; - /** - * @public - *

An error code returned by the request to create the association.

- */ - ErrorCode?: string; - /** - * @public - *

A URL for an S3 bucket where you want to store the results of this request.

- */ - OutputUrl?: InstanceAssociationOutputUrl; - /** - * @public - *

The name of the association applied to the managed node.

- */ - AssociationName?: string; -} -/** - * @public - */ -export interface DescribeInstanceAssociationsStatusResult { - /** - * @public - *

Status information about the association.

- */ - InstanceAssociationStatusInfos?: InstanceAssociationStatusInfo[]; - /** - * @public - *

The token to use when requesting the next set of items. If there are no additional items to - * return, the string is empty.

- */ - NextToken?: string; -} -/** - * @public - *

The filters to describe or get information about your managed nodes.

- */ -export interface InstanceInformationStringFilter { - /** - * @public - *

The filter key name to describe your managed nodes.

- *

Valid filter key values: ActivationIds | AgentVersion | AssociationStatus | IamRole | - * InstanceIds | PingStatus | PlatformTypes | ResourceType | SourceIds | SourceTypes | "tag-key" | - * "tag:\{keyname\} - *

- *
    - *
  • - *

    Valid values for the AssociationStatus filter key: Success | Pending | - * Failed

    - *
  • - *
  • - *

    Valid values for the PingStatus filter key: Online | ConnectionLost | - * Inactive (deprecated)

    - *
  • - *
  • - *

    Valid values for the PlatformType filter key: Windows | Linux | MacOS

    - *
  • - *
  • - *

    Valid values for the ResourceType filter key: EC2Instance | - * ManagedInstance

    - *
  • - *
  • - *

    Valid values for the SourceType filter key: AWS::EC2::Instance | - * AWS::SSM::ManagedInstance | AWS::IoT::Thing

    - *
  • - *
  • - *

    Valid tag examples: Key=tag-key,Values=Purpose | - * Key=tag:Purpose,Values=Test.

    - *
  • - *
- */ - Key: string | undefined; - /** - * @public - *

The filter values.

- */ - Values: string[] | undefined; -} -/** - * @public - * @enum - */ -export declare const InstanceInformationFilterKey: { - readonly ACTIVATION_IDS: "ActivationIds"; - readonly AGENT_VERSION: "AgentVersion"; - readonly ASSOCIATION_STATUS: "AssociationStatus"; - readonly IAM_ROLE: "IamRole"; - readonly INSTANCE_IDS: "InstanceIds"; - readonly PING_STATUS: "PingStatus"; - readonly PLATFORM_TYPES: "PlatformTypes"; - readonly RESOURCE_TYPE: "ResourceType"; -}; -/** - * @public - */ -export type InstanceInformationFilterKey = (typeof InstanceInformationFilterKey)[keyof typeof InstanceInformationFilterKey]; -/** - * @public - *

Describes a filter for a specific list of managed nodes. You can filter node information by - * using tags. You specify tags by using a key-value mapping.

- *

Use this operation instead of the DescribeInstanceInformationRequest$InstanceInformationFilterList method. The - * InstanceInformationFilterList method is a legacy method and doesn't support tags. - *

- */ -export interface InstanceInformationFilter { - /** - * @public - *

The name of the filter.

- */ - key: InstanceInformationFilterKey | undefined; - /** - * @public - *

The filter values.

- */ - valueSet: string[] | undefined; -} -/** - * @public - */ -export interface DescribeInstanceInformationRequest { - /** - * @public - *

This is a legacy method. We recommend that you don't use this method. Instead, use the - * Filters data type. Filters enables you to return node information by - * filtering based on tags applied to managed nodes.

- * - *

Attempting to use InstanceInformationFilterList and Filters leads - * to an exception error.

- *
- */ - InstanceInformationFilterList?: InstanceInformationFilter[]; - /** - * @public - *

One or more filters. Use a filter to return a more specific list of managed nodes. You can - * filter based on tags applied to your managed nodes. Tag filters can't be combined with other - * filter types. Use this Filters data type instead of - * InstanceInformationFilterList, which is deprecated.

- */ - Filters?: InstanceInformationStringFilter[]; - /** - * @public - *

The maximum number of items to return for this call. The call also returns a token that you - * can specify in a subsequent call to get the next set of results. The default value is 10 items. - *

- */ - MaxResults?: number; - /** - * @public - *

The token for the next set of items to return. (You received this token from a previous - * call.)

- */ - NextToken?: string; -} -/** - * @public - *

Status information about the aggregated associations.

- */ -export interface InstanceAggregatedAssociationOverview { - /** - * @public - *

Detailed status information about the aggregated associations.

- */ - DetailedStatus?: string; - /** - * @public - *

The number of associations for the managed node(s).

- */ - InstanceAssociationStatusAggregatedCount?: Record; -} -/** - * @public - * @enum - */ -export declare const PingStatus: { - readonly CONNECTION_LOST: "ConnectionLost"; - readonly INACTIVE: "Inactive"; - readonly ONLINE: "Online"; -}; -/** - * @public - */ -export type PingStatus = (typeof PingStatus)[keyof typeof PingStatus]; -/** - * @public - * @enum - */ -export declare const ResourceType: { - readonly EC2_INSTANCE: "EC2Instance"; - readonly MANAGED_INSTANCE: "ManagedInstance"; -}; -/** - * @public - */ -export type ResourceType = (typeof ResourceType)[keyof typeof ResourceType]; -/** - * @public - * @enum - */ -export declare const SourceType: { - readonly AWS_EC2_INSTANCE: "AWS::EC2::Instance"; - readonly AWS_IOT_THING: "AWS::IoT::Thing"; - readonly AWS_SSM_MANAGEDINSTANCE: "AWS::SSM::ManagedInstance"; -}; -/** - * @public - */ -export type SourceType = (typeof SourceType)[keyof typeof SourceType]; -/** - * @public - *

Describes a filter for a specific list of managed nodes.

- */ -export interface InstanceInformation { - /** - * @public - *

The managed node ID.

- */ - InstanceId?: string; - /** - * @public - *

Connection status of SSM Agent.

- * - *

The status Inactive has been deprecated and is no longer in use.

- *
- */ - PingStatus?: PingStatus; - /** - * @public - *

The date and time when the agent last pinged the Systems Manager service.

- */ - LastPingDateTime?: Date; - /** - * @public - *

The version of SSM Agent running on your Linux managed node.

- */ - AgentVersion?: string; - /** - * @public - *

Indicates whether the latest version of SSM Agent is running on your Linux managed node. This - * field doesn't indicate whether or not the latest version is installed on Windows managed nodes, - * because some older versions of Windows Server use the EC2Config service to process Systems Manager - * requests.

- */ - IsLatestVersion?: boolean; - /** - * @public - *

The operating system platform type.

- */ - PlatformType?: PlatformType; - /** - * @public - *

The name of the operating system platform running on your managed node.

- */ - PlatformName?: string; - /** - * @public - *

The version of the OS platform running on your managed node.

- */ - PlatformVersion?: string; - /** - * @public - *

The activation ID created by Amazon Web Services Systems Manager when the server or virtual machine (VM) was - * registered.

- */ - ActivationId?: string; - /** - * @public - *

The Identity and Access Management (IAM) role assigned to the on-premises Systems Manager - * managed node. This call doesn't return the IAM role for Amazon Elastic Compute Cloud - * (Amazon EC2) instances. To retrieve the IAM role for an EC2 instance, use - * the Amazon EC2 DescribeInstances operation. For information, see DescribeInstances in the Amazon EC2 API Reference or describe-instances in the Amazon Web Services CLI Command Reference.

- */ - IamRole?: string; - /** - * @public - *

The date the server or VM was registered with Amazon Web Services as a managed node.

- */ - RegistrationDate?: Date; - /** - * @public - *

The type of instance. Instances are either EC2 instances or managed instances.

- */ - ResourceType?: ResourceType; - /** - * @public - *

The name assigned to an on-premises server, edge device, or virtual machine (VM) when it is - * activated as a Systems Manager managed node. The name is specified as the DefaultInstanceName - * property using the CreateActivation command. It is applied to the managed node - * by specifying the Activation Code and Activation ID when you install SSM Agent on the node, as - * explained in Install SSM Agent for a - * hybrid environment (Linux) and Install SSM Agent for a - * hybrid environment (Windows). To retrieve the Name tag of an EC2 instance, - * use the Amazon EC2 DescribeInstances operation. For information, see DescribeInstances in the Amazon EC2 API Reference or describe-instances in the Amazon Web Services CLI Command Reference.

- */ - Name?: string; - /** - * @public - *

The IP address of the managed node.

- */ - IPAddress?: string; - /** - * @public - *

The fully qualified host name of the managed node.

- */ - ComputerName?: string; - /** - * @public - *

The status of the association.

- */ - AssociationStatus?: string; - /** - * @public - *

The date the association was last run.

- */ - LastAssociationExecutionDate?: Date; - /** - * @public - *

The last date the association was successfully run.

- */ - LastSuccessfulAssociationExecutionDate?: Date; - /** - * @public - *

Information about the association.

- */ - AssociationOverview?: InstanceAggregatedAssociationOverview; - /** - * @public - *

The ID of the source resource. For IoT Greengrass devices, SourceId is - * the Thing name.

- */ - SourceId?: string; - /** - * @public - *

The type of the source resource. For IoT Greengrass devices, SourceType - * is AWS::IoT::Thing.

- */ - SourceType?: SourceType; -} -/** - * @public - */ -export interface DescribeInstanceInformationResult { - /** - * @public - *

The managed node information list.

- */ - InstanceInformationList?: InstanceInformation[]; - /** - * @public - *

The token to use when requesting the next set of items. If there are no additional items to - * return, the string is empty.

- */ - NextToken?: string; -} -/** - * @public - *

The specified filter value isn't valid.

- */ -export declare class InvalidInstanceInformationFilterValue extends __BaseException { - readonly name: "InvalidInstanceInformationFilterValue"; - readonly $fault: "client"; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - */ -export interface DescribeInstancePatchesRequest { - /** - * @public - *

The ID of the managed node whose patch state information should be retrieved.

- */ - InstanceId: string | undefined; - /** - * @public - *

Each element in the array is a structure containing a key-value pair.

- *

Supported keys for DescribeInstancePatchesinclude the following:

- *
    - *
  • - *

    - * - * Classification - * - *

    - *

    Sample values: Security | SecurityUpdates - *

    - *
  • - *
  • - *

    - * - * KBId - * - *

    - *

    Sample values: KB4480056 | java-1.7.0-openjdk.x86_64 - *

    - *
  • - *
  • - *

    - * - * Severity - * - *

    - *

    Sample values: Important | Medium | Low - *

    - *
  • - *
  • - *

    - * - * State - * - *

    - *

    Sample values: Installed | InstalledOther | - * InstalledPendingReboot - *

    - *

    For lists of all State values, see Understanding - * patch compliance state values in the Amazon Web Services Systems Manager User Guide.

    - *
  • - *
- */ - Filters?: PatchOrchestratorFilter[]; - /** - * @public - *

The token for the next set of items to return. (You received this token from a previous - * call.)

- */ - NextToken?: string; - /** - * @public - *

The maximum number of patches to return (per page).

- */ - MaxResults?: number; -} -/** - * @public - * @enum - */ -export declare const PatchComplianceDataState: { - readonly Failed: "FAILED"; - readonly Installed: "INSTALLED"; - readonly InstalledOther: "INSTALLED_OTHER"; - readonly InstalledPendingReboot: "INSTALLED_PENDING_REBOOT"; - readonly InstalledRejected: "INSTALLED_REJECTED"; - readonly Missing: "MISSING"; - readonly NotApplicable: "NOT_APPLICABLE"; -}; -/** - * @public - */ -export type PatchComplianceDataState = (typeof PatchComplianceDataState)[keyof typeof PatchComplianceDataState]; -/** - * @public - *

Information about the state of a patch on a particular managed node as it relates to the - * patch baseline used to patch the node.

- */ -export interface PatchComplianceData { - /** - * @public - *

The title of the patch.

- */ - Title: string | undefined; - /** - * @public - *

The operating system-specific ID of the patch.

- */ - KBId: string | undefined; - /** - * @public - *

The classification of the patch, such as SecurityUpdates, Updates, - * and CriticalUpdates.

- */ - Classification: string | undefined; - /** - * @public - *

The severity of the patch such as Critical, Important, and - * Moderate.

- */ - Severity: string | undefined; - /** - * @public - *

The state of the patch on the managed node, such as INSTALLED or FAILED.

- *

For descriptions of each patch state, see About patch compliance in the Amazon Web Services Systems Manager User Guide.

- */ - State: PatchComplianceDataState | undefined; - /** - * @public - *

The date/time the patch was installed on the managed node. Not all operating systems provide - * this level of information.

- */ - InstalledTime: Date | undefined; - /** - * @public - *

The IDs of one or more Common Vulnerabilities and Exposure (CVE) issues that are resolved by - * the patch.

- */ - CVEIds?: string; -} -/** - * @public - */ -export interface DescribeInstancePatchesResult { - /** - * @public - *

Each entry in the array is a structure containing:

- *
    - *
  • - *

    Title (string)

    - *
  • - *
  • - *

    KBId (string)

    - *
  • - *
  • - *

    Classification (string)

    - *
  • - *
  • - *

    Severity (string)

    - *
  • - *
  • - *

    State (string, such as "INSTALLED" or "FAILED")

    - *
  • - *
  • - *

    InstalledTime (DateTime)

    - *
  • - *
  • - *

    InstalledBy (string)

    - *
  • - *
- */ - Patches?: PatchComplianceData[]; - /** - * @public - *

The token to use when requesting the next set of items. If there are no additional items to - * return, the string is empty.

- */ - NextToken?: string; -} -/** - * @public - */ -export interface DescribeInstancePatchStatesRequest { - /** - * @public - *

The ID of the managed node for which patch state information should be retrieved.

- */ - InstanceIds: string[] | undefined; - /** - * @public - *

The token for the next set of items to return. (You received this token from a previous - * call.)

- */ - NextToken?: string; - /** - * @public - *

The maximum number of managed nodes to return (per page).

- */ - MaxResults?: number; -} -/** - * @public - * @enum - */ -export declare const PatchOperationType: { - readonly INSTALL: "Install"; - readonly SCAN: "Scan"; -}; -/** - * @public - */ -export type PatchOperationType = (typeof PatchOperationType)[keyof typeof PatchOperationType]; -/** - * @public - * @enum - */ -export declare const RebootOption: { - readonly NO_REBOOT: "NoReboot"; - readonly REBOOT_IF_NEEDED: "RebootIfNeeded"; -}; -/** - * @public - */ -export type RebootOption = (typeof RebootOption)[keyof typeof RebootOption]; -/** - * @public - *

Defines the high-level patch compliance state for a managed node, providing information - * about the number of installed, missing, not applicable, and failed patches along with metadata - * about the operation when this information was gathered for the managed node.

- */ -export interface InstancePatchState { - /** - * @public - *

The ID of the managed node the high-level patch compliance information was collected - * for.

- */ - InstanceId: string | undefined; - /** - * @public - *

The name of the patch group the managed node belongs to.

- */ - PatchGroup: string | undefined; - /** - * @public - *

The ID of the patch baseline used to patch the managed node.

- */ - BaselineId: string | undefined; - /** - * @public - *

The ID of the patch baseline snapshot used during the patching operation when this - * compliance data was collected.

- */ - SnapshotId?: string; - /** - * @public - *

An https URL or an Amazon Simple Storage Service (Amazon S3) path-style URL to a list of - * patches to be installed. This patch installation list, which you maintain in an S3 bucket in YAML - * format and specify in the SSM document AWS-RunPatchBaseline, overrides the patches - * specified by the default patch baseline.

- *

For more information about the InstallOverrideList parameter, see About the - * AWS-RunPatchBaseline - * SSM document in the - * Amazon Web Services Systems Manager User Guide.

- */ - InstallOverrideList?: string; - /** - * @public - *

Placeholder information. This field will always be empty in the current release of the - * service.

- */ - OwnerInformation?: string; - /** - * @public - *

The number of patches from the patch baseline that are installed on the managed node.

- */ - InstalledCount?: number; - /** - * @public - *

The number of patches not specified in the patch baseline that are installed on the managed - * node.

- */ - InstalledOtherCount?: number; - /** - * @public - *

The number of patches installed by Patch Manager since the last time the managed node was - * rebooted.

- */ - InstalledPendingRebootCount?: number; - /** - * @public - *

The number of patches installed on a managed node that are specified in a - * RejectedPatches list. Patches with a status of InstalledRejected were - * typically installed before they were added to a RejectedPatches list.

- * - *

If ALLOW_AS_DEPENDENCY is the specified option for - * RejectedPatchesAction, the value of InstalledRejectedCount will - * always be 0 (zero).

- *
- */ - InstalledRejectedCount?: number; - /** - * @public - *

The number of patches from the patch baseline that are applicable for the managed node but - * aren't currently installed.

- */ - MissingCount?: number; - /** - * @public - *

The number of patches from the patch baseline that were attempted to be installed during the - * last patching operation, but failed to install.

- */ - FailedCount?: number; - /** - * @public - *

The number of patches beyond the supported limit of NotApplicableCount that - * aren't reported by name to Inventory. Inventory is a capability of Amazon Web Services Systems Manager.

- */ - UnreportedNotApplicableCount?: number; - /** - * @public - *

The number of patches from the patch baseline that aren't applicable for the managed node - * and therefore aren't installed on the node. This number may be truncated if the list of patch - * names is very large. The number of patches beyond this limit are reported in - * UnreportedNotApplicableCount.

- */ - NotApplicableCount?: number; - /** - * @public - *

The time the most recent patching operation was started on the managed node.

- */ - OperationStartTime: Date | undefined; - /** - * @public - *

The time the most recent patching operation completed on the managed node.

- */ - OperationEndTime: Date | undefined; - /** - * @public - *

The type of patching operation that was performed: or

- *
    - *
  • - *

    - * SCAN assesses the patch compliance state.

    - *
  • - *
  • - *

    - * INSTALL installs missing patches.

    - *
  • - *
- */ - Operation: PatchOperationType | undefined; - /** - * @public - *

The time of the last attempt to patch the managed node with NoReboot specified - * as the reboot option.

- */ - LastNoRebootInstallOperationTime?: Date; - /** - * @public - *

Indicates the reboot option specified in the patch baseline.

- * - *

Reboot options apply to Install operations only. Reboots aren't attempted for - * Patch Manager Scan operations.

- *
- *
    - *
  • - *

    - * RebootIfNeeded: Patch Manager tries to reboot the managed node if it - * installed any patches, or if any patches are detected with a status of - * InstalledPendingReboot.

    - *
  • - *
  • - *

    - * NoReboot: Patch Manager attempts to install missing packages without trying - * to reboot the system. Patches installed with this option are assigned a status of - * InstalledPendingReboot. These patches might not be in effect until a reboot is - * performed.

    - *
  • - *
- */ - RebootOption?: RebootOption; - /** - * @public - *

The number of patches per node that are specified as Critical for compliance - * reporting in the patch baseline aren't installed. These patches might be missing, have failed - * installation, were rejected, or were installed but awaiting a required managed node reboot. The - * status of these managed nodes is NON_COMPLIANT.

- */ - CriticalNonCompliantCount?: number; - /** - * @public - *

The number of patches per node that are specified as Security in a patch - * advisory aren't installed. These patches might be missing, have failed installation, were - * rejected, or were installed but awaiting a required managed node reboot. The status of these - * managed nodes is NON_COMPLIANT.

- */ - SecurityNonCompliantCount?: number; - /** - * @public - *

The number of patches per node that are specified as other than Critical or - * Security but aren't compliant with the patch baseline. The status of these managed - * nodes is NON_COMPLIANT.

- */ - OtherNonCompliantCount?: number; -} -/** - * @public - */ -export interface DescribeInstancePatchStatesResult { - /** - * @public - *

The high-level patch state for the requested managed nodes.

- */ - InstancePatchStates?: InstancePatchState[]; - /** - * @public - *

The token to use when requesting the next set of items. If there are no additional items to - * return, the string is empty.

- */ - NextToken?: string; -} -/** - * @public - * @enum - */ -export declare const InstancePatchStateOperatorType: { - readonly EQUAL: "Equal"; - readonly GREATER_THAN: "GreaterThan"; - readonly LESS_THAN: "LessThan"; - readonly NOT_EQUAL: "NotEqual"; -}; -/** - * @public - */ -export type InstancePatchStateOperatorType = (typeof InstancePatchStateOperatorType)[keyof typeof InstancePatchStateOperatorType]; -/** - * @public - *

Defines a filter used in DescribeInstancePatchStatesForPatchGroup to scope - * down the information returned by the API.

- *

- * Example: To filter for all managed nodes in a patch group - * having more than three patches with a FailedCount status, use the following for the - * filter:

- *
    - *
  • - *

    Value for Key: FailedCount - *

    - *
  • - *
  • - *

    Value for Type: GreaterThan - *

    - *
  • - *
  • - *

    Value for Values: 3 - *

    - *
  • - *
- */ -export interface InstancePatchStateFilter { - /** - * @public - *

The key for the filter. Supported values include the following:

- *
    - *
  • - *

    - * InstalledCount - *

    - *
  • - *
  • - *

    - * InstalledOtherCount - *

    - *
  • - *
  • - *

    - * InstalledPendingRebootCount - *

    - *
  • - *
  • - *

    - * InstalledRejectedCount - *

    - *
  • - *
  • - *

    - * MissingCount - *

    - *
  • - *
  • - *

    - * FailedCount - *

    - *
  • - *
  • - *

    - * UnreportedNotApplicableCount - *

    - *
  • - *
  • - *

    - * NotApplicableCount - *

    - *
  • - *
- */ - Key: string | undefined; - /** - * @public - *

The value for the filter. Must be an integer greater than or equal to 0.

- */ - Values: string[] | undefined; - /** - * @public - *

The type of comparison that should be performed for the value.

- */ - Type: InstancePatchStateOperatorType | undefined; -} -/** - * @public - */ -export interface DescribeInstancePatchStatesForPatchGroupRequest { - /** - * @public - *

The name of the patch group for which the patch state information should be - * retrieved.

- */ - PatchGroup: string | undefined; - /** - * @public - *

Each entry in the array is a structure containing:

- *
    - *
  • - *

    Key (string between 1 and 200 characters)

    - *
  • - *
  • - *

    Values (array containing a single string)

    - *
  • - *
  • - *

    Type (string "Equal", "NotEqual", "LessThan", "GreaterThan")

    - *
  • - *
- */ - Filters?: InstancePatchStateFilter[]; - /** - * @public - *

The token for the next set of items to return. (You received this token from a previous - * call.)

- */ - NextToken?: string; - /** - * @public - *

The maximum number of patches to return (per page).

- */ - MaxResults?: number; -} -/** - * @public - */ -export interface DescribeInstancePatchStatesForPatchGroupResult { - /** - * @public - *

The high-level patch state for the requested managed nodes.

- */ - InstancePatchStates?: InstancePatchState[]; - /** - * @public - *

The token to use when requesting the next set of items. If there are no additional items to - * return, the string is empty.

- */ - NextToken?: string; -} -/** - * @public - */ -export interface DescribeInventoryDeletionsRequest { - /** - * @public - *

Specify the delete inventory ID for which you want information. This ID was returned by the - * DeleteInventory operation.

- */ - DeletionId?: string; - /** - * @public - *

A token to start the list. Use this token to get the next set of results.

- */ - NextToken?: string; - /** - * @public - *

The maximum number of items to return for this call. The call also returns a token that you - * can specify in a subsequent call to get the next set of results.

- */ - MaxResults?: number; -} -/** - * @public - * @enum - */ -export declare const InventoryDeletionStatus: { - readonly COMPLETE: "Complete"; - readonly IN_PROGRESS: "InProgress"; -}; -/** - * @public - */ -export type InventoryDeletionStatus = (typeof InventoryDeletionStatus)[keyof typeof InventoryDeletionStatus]; -/** - * @public - *

Status information returned by the DeleteInventory operation.

- */ -export interface InventoryDeletionStatusItem { - /** - * @public - *

The deletion ID returned by the DeleteInventory operation.

- */ - DeletionId?: string; - /** - * @public - *

The name of the inventory data type.

- */ - TypeName?: string; - /** - * @public - *

The UTC timestamp when the delete operation started.

- */ - DeletionStartTime?: Date; - /** - * @public - *

The status of the operation. Possible values are InProgress and Complete.

- */ - LastStatus?: InventoryDeletionStatus; - /** - * @public - *

Information about the status.

- */ - LastStatusMessage?: string; - /** - * @public - *

Information about the delete operation. For more information about this summary, see Understanding the delete inventory summary in the - * Amazon Web Services Systems Manager User Guide.

- */ - DeletionSummary?: InventoryDeletionSummary; - /** - * @public - *

The UTC timestamp of when the last status report.

- */ - LastStatusUpdateTime?: Date; -} -/** - * @public - */ -export interface DescribeInventoryDeletionsResult { - /** - * @public - *

A list of status items for deleted inventory.

- */ - InventoryDeletions?: InventoryDeletionStatusItem[]; - /** - * @public - *

The token for the next set of items to return. Use this token to get the next set of - * results.

- */ - NextToken?: string; -} -/** - * @public - *

The ID specified for the delete operation doesn't exist or isn't valid. Verify the ID and - * try again.

- */ -export declare class InvalidDeletionIdException extends __BaseException { - readonly name: "InvalidDeletionIdException"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

Filter used in the request. Supported filter keys depend on the API operation that includes - * the filter. API operations that use MaintenanceWindowFilter> include the - * following:

- * - */ -export interface MaintenanceWindowFilter { - /** - * @public - *

The name of the filter.

- */ - Key?: string; - /** - * @public - *

The filter values.

- */ - Values?: string[]; -} -/** - * @public - */ -export interface DescribeMaintenanceWindowExecutionsRequest { - /** - * @public - *

The ID of the maintenance window whose executions should be retrieved.

- */ - WindowId: string | undefined; - /** - * @public - *

Each entry in the array is a structure containing:

- *
    - *
  • - *

    Key. A string between 1 and 128 characters. Supported keys include - * ExecutedBefore and ExecutedAfter.

    - *
  • - *
  • - *

    Values. An array of strings, each between 1 and 256 characters. Supported values are - * date/time strings in a valid ISO 8601 date/time format, such as - * 2021-11-04T05:00:00Z.

    - *
  • - *
- */ - Filters?: MaintenanceWindowFilter[]; - /** - * @public - *

The maximum number of items to return for this call. The call also returns a token that you - * can specify in a subsequent call to get the next set of results.

- */ - MaxResults?: number; - /** - * @public - *

The token for the next set of items to return. (You received this token from a previous - * call.)

- */ - NextToken?: string; -} -/** - * @public - * @enum - */ -export declare const MaintenanceWindowExecutionStatus: { - readonly Cancelled: "CANCELLED"; - readonly Cancelling: "CANCELLING"; - readonly Failed: "FAILED"; - readonly InProgress: "IN_PROGRESS"; - readonly Pending: "PENDING"; - readonly SkippedOverlapping: "SKIPPED_OVERLAPPING"; - readonly Success: "SUCCESS"; - readonly TimedOut: "TIMED_OUT"; -}; -/** - * @public - */ -export type MaintenanceWindowExecutionStatus = (typeof MaintenanceWindowExecutionStatus)[keyof typeof MaintenanceWindowExecutionStatus]; -/** - * @public - *

Describes the information about an execution of a maintenance window.

- */ -export interface MaintenanceWindowExecution { - /** - * @public - *

The ID of the maintenance window.

- */ - WindowId?: string; - /** - * @public - *

The ID of the maintenance window execution.

- */ - WindowExecutionId?: string; - /** - * @public - *

The status of the execution.

- */ - Status?: MaintenanceWindowExecutionStatus; - /** - * @public - *

The details explaining the status. Not available for all status values.

- */ - StatusDetails?: string; - /** - * @public - *

The time the execution started.

- */ - StartTime?: Date; - /** - * @public - *

The time the execution finished.

- */ - EndTime?: Date; -} -/** - * @public - */ -export interface DescribeMaintenanceWindowExecutionsResult { - /** - * @public - *

Information about the maintenance window executions.

- */ - WindowExecutions?: MaintenanceWindowExecution[]; - /** - * @public - *

The token to use when requesting the next set of items. If there are no additional items to - * return, the string is empty.

- */ - NextToken?: string; -} -/** - * @public - */ -export interface DescribeMaintenanceWindowExecutionTaskInvocationsRequest { - /** - * @public - *

The ID of the maintenance window execution the task is part of.

- */ - WindowExecutionId: string | undefined; - /** - * @public - *

The ID of the specific task in the maintenance window task that should be retrieved.

- */ - TaskId: string | undefined; - /** - * @public - *

Optional filters used to scope down the returned task invocations. The supported filter key - * is STATUS with the corresponding values PENDING, - * IN_PROGRESS, SUCCESS, FAILED, TIMED_OUT, - * CANCELLING, and CANCELLED.

- */ - Filters?: MaintenanceWindowFilter[]; - /** - * @public - *

The maximum number of items to return for this call. The call also returns a token that you - * can specify in a subsequent call to get the next set of results.

- */ - MaxResults?: number; - /** - * @public - *

The token for the next set of items to return. (You received this token from a previous - * call.)

- */ - NextToken?: string; -} -/** - * @public - * @enum - */ -export declare const MaintenanceWindowTaskType: { - readonly Automation: "AUTOMATION"; - readonly Lambda: "LAMBDA"; - readonly RunCommand: "RUN_COMMAND"; - readonly StepFunctions: "STEP_FUNCTIONS"; -}; -/** - * @public - */ -export type MaintenanceWindowTaskType = (typeof MaintenanceWindowTaskType)[keyof typeof MaintenanceWindowTaskType]; -/** - * @public - *

Describes the information about a task invocation for a particular target as part of a task - * execution performed as part of a maintenance window execution.

- */ -export interface MaintenanceWindowExecutionTaskInvocationIdentity { - /** - * @public - *

The ID of the maintenance window execution that ran the task.

- */ - WindowExecutionId?: string; - /** - * @public - *

The ID of the specific task execution in the maintenance window execution.

- */ - TaskExecutionId?: string; - /** - * @public - *

The ID of the task invocation.

- */ - InvocationId?: string; - /** - * @public - *

The ID of the action performed in the service that actually handled the task invocation. If - * the task type is RUN_COMMAND, this value is the command ID.

- */ - ExecutionId?: string; - /** - * @public - *

The task type.

- */ - TaskType?: MaintenanceWindowTaskType; - /** - * @public - *

The parameters that were provided for the invocation when it was run.

- */ - Parameters?: string; - /** - * @public - *

The status of the task invocation.

- */ - Status?: MaintenanceWindowExecutionStatus; - /** - * @public - *

The details explaining the status of the task invocation. Not available for all status - * values.

- */ - StatusDetails?: string; - /** - * @public - *

The time the invocation started.

- */ - StartTime?: Date; - /** - * @public - *

The time the invocation finished.

- */ - EndTime?: Date; - /** - * @public - *

User-provided value that was specified when the target was registered with the maintenance - * window. This was also included in any Amazon CloudWatch Events events raised during the task - * invocation.

- */ - OwnerInformation?: string; - /** - * @public - *

The ID of the target definition in this maintenance window the invocation was performed - * for.

- */ - WindowTargetId?: string; -} -/** - * @public - */ -export interface DescribeMaintenanceWindowExecutionTaskInvocationsResult { - /** - * @public - *

Information about the task invocation results per invocation.

- */ - WindowExecutionTaskInvocationIdentities?: MaintenanceWindowExecutionTaskInvocationIdentity[]; - /** - * @public - *

The token to use when requesting the next set of items. If there are no additional items to - * return, the string is empty.

- */ - NextToken?: string; -} -/** - * @public - */ -export interface DescribeMaintenanceWindowExecutionTasksRequest { - /** - * @public - *

The ID of the maintenance window execution whose task executions should be retrieved.

- */ - WindowExecutionId: string | undefined; - /** - * @public - *

Optional filters used to scope down the returned tasks. The supported filter key is - * STATUS with the corresponding values PENDING, - * IN_PROGRESS, SUCCESS, FAILED, TIMED_OUT, - * CANCELLING, and CANCELLED.

- */ - Filters?: MaintenanceWindowFilter[]; - /** - * @public - *

The maximum number of items to return for this call. The call also returns a token that you - * can specify in a subsequent call to get the next set of results.

- */ - MaxResults?: number; - /** - * @public - *

The token for the next set of items to return. (You received this token from a previous - * call.)

- */ - NextToken?: string; -} -/** - * @public - *

Information about a task execution performed as part of a maintenance window - * execution.

- */ -export interface MaintenanceWindowExecutionTaskIdentity { - /** - * @public - *

The ID of the maintenance window execution that ran the task.

- */ - WindowExecutionId?: string; - /** - * @public - *

The ID of the specific task execution in the maintenance window execution.

- */ - TaskExecutionId?: string; - /** - * @public - *

The status of the task execution.

- */ - Status?: MaintenanceWindowExecutionStatus; - /** - * @public - *

The details explaining the status of the task execution. Not available for all status - * values.

- */ - StatusDetails?: string; - /** - * @public - *

The time the task execution started.

- */ - StartTime?: Date; - /** - * @public - *

The time the task execution finished.

- */ - EndTime?: Date; - /** - * @public - *

The Amazon Resource Name (ARN) of the task that ran.

- */ - TaskArn?: string; - /** - * @public - *

The type of task that ran.

- */ - TaskType?: MaintenanceWindowTaskType; - /** - * @public - *

The details for the CloudWatch alarm applied to your maintenance window task.

- */ - AlarmConfiguration?: AlarmConfiguration; - /** - * @public - *

The CloudWatch alarm that was invoked by the maintenance window task.

- */ - TriggeredAlarms?: AlarmStateInformation[]; -} -/** - * @public - */ -export interface DescribeMaintenanceWindowExecutionTasksResult { - /** - * @public - *

Information about the task executions.

- */ - WindowExecutionTaskIdentities?: MaintenanceWindowExecutionTaskIdentity[]; - /** - * @public - *

The token to use when requesting the next set of items. If there are no additional items to - * return, the string is empty.

- */ - NextToken?: string; -} -/** - * @public - */ -export interface DescribeMaintenanceWindowsRequest { - /** - * @public - *

Optional filters used to narrow down the scope of the returned maintenance windows. - * Supported filter keys are Name and Enabled. For example, - * Name=MyMaintenanceWindow and Enabled=True.

- */ - Filters?: MaintenanceWindowFilter[]; - /** - * @public - *

The maximum number of items to return for this call. The call also returns a token that you - * can specify in a subsequent call to get the next set of results.

- */ - MaxResults?: number; - /** - * @public - *

The token for the next set of items to return. (You received this token from a previous - * call.)

- */ - NextToken?: string; -} -/** - * @public - *

Information about the maintenance window.

- */ -export interface MaintenanceWindowIdentity { - /** - * @public - *

The ID of the maintenance window.

- */ - WindowId?: string; - /** - * @public - *

The name of the maintenance window.

- */ - Name?: string; - /** - * @public - *

A description of the maintenance window.

- */ - Description?: string; - /** - * @public - *

Indicates whether the maintenance window is enabled.

- */ - Enabled?: boolean; - /** - * @public - *

The duration of the maintenance window in hours.

- */ - Duration?: number; - /** - * @public - *

The number of hours before the end of the maintenance window that Amazon Web Services Systems Manager stops scheduling - * new tasks for execution.

- */ - Cutoff?: number; - /** - * @public - *

The schedule of the maintenance window in the form of a cron or rate expression.

- */ - Schedule?: string; - /** - * @public - *

The time zone that the scheduled maintenance window executions are based on, in Internet - * Assigned Numbers Authority (IANA) format.

- */ - ScheduleTimezone?: string; - /** - * @public - *

The number of days to wait to run a maintenance window after the scheduled cron expression - * date and time.

- */ - ScheduleOffset?: number; - /** - * @public - *

The date and time, in ISO-8601 Extended format, for when the maintenance window is scheduled - * to become inactive.

- */ - EndDate?: string; - /** - * @public - *

The date and time, in ISO-8601 Extended format, for when the maintenance window is scheduled - * to become active.

- */ - StartDate?: string; - /** - * @public - *

The next time the maintenance window will actually run, taking into account any specified - * times for the maintenance window to become active or inactive.

- */ - NextExecutionTime?: string; -} -/** - * @public - */ -export interface DescribeMaintenanceWindowsResult { - /** - * @public - *

Information about the maintenance windows.

- */ - WindowIdentities?: MaintenanceWindowIdentity[]; - /** - * @public - *

The token to use when requesting the next set of items. If there are no additional items to - * return, the string is empty.

- */ - NextToken?: string; -} -/** - * @public - * @enum - */ -export declare const MaintenanceWindowResourceType: { - readonly Instance: "INSTANCE"; - readonly ResourceGroup: "RESOURCE_GROUP"; -}; -/** - * @public - */ -export type MaintenanceWindowResourceType = (typeof MaintenanceWindowResourceType)[keyof typeof MaintenanceWindowResourceType]; -/** - * @public - */ -export interface DescribeMaintenanceWindowScheduleRequest { - /** - * @public - *

The ID of the maintenance window to retrieve information about.

- */ - WindowId?: string; - /** - * @public - *

The managed node ID or key-value pair to retrieve information about.

- */ - Targets?: Target[]; - /** - * @public - *

The type of resource you want to retrieve information about. For example, - * INSTANCE.

- */ - ResourceType?: MaintenanceWindowResourceType; - /** - * @public - *

Filters used to limit the range of results. For example, you can limit maintenance window - * executions to only those scheduled before or after a certain date and time.

- */ - Filters?: PatchOrchestratorFilter[]; - /** - * @public - *

The maximum number of items to return for this call. The call also returns a token that you - * can specify in a subsequent call to get the next set of results.

- */ - MaxResults?: number; - /** - * @public - *

The token for the next set of items to return. (You received this token from a previous - * call.)

- */ - NextToken?: string; -} -/** - * @public - *

Information about a scheduled execution for a maintenance window.

- */ -export interface ScheduledWindowExecution { - /** - * @public - *

The ID of the maintenance window to be run.

- */ - WindowId?: string; - /** - * @public - *

The name of the maintenance window to be run.

- */ - Name?: string; - /** - * @public - *

The time, in ISO-8601 Extended format, that the maintenance window is scheduled to be - * run.

- */ - ExecutionTime?: string; -} -/** - * @public - */ -export interface DescribeMaintenanceWindowScheduleResult { - /** - * @public - *

Information about maintenance window executions scheduled for the specified time - * range.

- */ - ScheduledWindowExecutions?: ScheduledWindowExecution[]; - /** - * @public - *

The token for the next set of items to return. (You use this token in the next call.)

- */ - NextToken?: string; -} -/** - * @public - */ -export interface DescribeMaintenanceWindowsForTargetRequest { - /** - * @public - *

The managed node ID or key-value pair to retrieve information about.

- */ - Targets: Target[] | undefined; - /** - * @public - *

The type of resource you want to retrieve information about. For example, - * INSTANCE.

- */ - ResourceType: MaintenanceWindowResourceType | undefined; - /** - * @public - *

The maximum number of items to return for this call. The call also returns a token that you - * can specify in a subsequent call to get the next set of results.

- */ - MaxResults?: number; - /** - * @public - *

The token for the next set of items to return. (You received this token from a previous - * call.)

- */ - NextToken?: string; -} -/** - * @public - *

The maintenance window to which the specified target belongs.

- */ -export interface MaintenanceWindowIdentityForTarget { - /** - * @public - *

The ID of the maintenance window.

- */ - WindowId?: string; - /** - * @public - *

The name of the maintenance window.

- */ - Name?: string; -} -/** - * @public - */ -export interface DescribeMaintenanceWindowsForTargetResult { - /** - * @public - *

Information about the maintenance window targets and tasks a managed node is associated - * with.

- */ - WindowIdentities?: MaintenanceWindowIdentityForTarget[]; - /** - * @public - *

The token for the next set of items to return. (You use this token in the next call.)

- */ - NextToken?: string; -} -/** - * @public - */ -export interface DescribeMaintenanceWindowTargetsRequest { - /** - * @public - *

The ID of the maintenance window whose targets should be retrieved.

- */ - WindowId: string | undefined; - /** - * @public - *

Optional filters that can be used to narrow down the scope of the returned window targets. - * The supported filter keys are Type, WindowTargetId, and - * OwnerInformation.

- */ - Filters?: MaintenanceWindowFilter[]; - /** - * @public - *

The maximum number of items to return for this call. The call also returns a token that you - * can specify in a subsequent call to get the next set of results.

- */ - MaxResults?: number; - /** - * @public - *

The token for the next set of items to return. (You received this token from a previous - * call.)

- */ - NextToken?: string; -} -/** - * @public - *

The target registered with the maintenance window.

- */ -export interface MaintenanceWindowTarget { - /** - * @public - *

The ID of the maintenance window to register the target with.

- */ - WindowId?: string; - /** - * @public - *

The ID of the target.

- */ - WindowTargetId?: string; - /** - * @public - *

The type of target that is being registered with the maintenance window.

- */ - ResourceType?: MaintenanceWindowResourceType; - /** - * @public - *

The targets, either managed nodes or tags.

- *

Specify managed nodes using the following format:

- *

- * Key=instanceids,Values=, - *

- *

Tags are specified using the following format:

- *

- * Key=,Values=.

- */ - Targets?: Target[]; - /** - * @public - *

A user-provided value that will be included in any Amazon CloudWatch Events events that are - * raised while running tasks for these targets in this maintenance window.

- */ - OwnerInformation?: string; - /** - * @public - *

The name for the maintenance window target.

- */ - Name?: string; - /** - * @public - *

A description for the target.

- */ - Description?: string; -} -/** - * @public - */ -export interface DescribeMaintenanceWindowTargetsResult { - /** - * @public - *

Information about the targets in the maintenance window.

- */ - Targets?: MaintenanceWindowTarget[]; - /** - * @public - *

The token to use when requesting the next set of items. If there are no additional items to - * return, the string is empty.

- */ - NextToken?: string; -} -/** - * @public - */ -export interface DescribeMaintenanceWindowTasksRequest { - /** - * @public - *

The ID of the maintenance window whose tasks should be retrieved.

- */ - WindowId: string | undefined; - /** - * @public - *

Optional filters used to narrow down the scope of the returned tasks. The supported filter - * keys are WindowTaskId, TaskArn, Priority, and - * TaskType.

- */ - Filters?: MaintenanceWindowFilter[]; - /** - * @public - *

The maximum number of items to return for this call. The call also returns a token that you - * can specify in a subsequent call to get the next set of results.

- */ - MaxResults?: number; - /** - * @public - *

The token for the next set of items to return. (You received this token from a previous - * call.)

- */ - NextToken?: string; -} -/** - * @public - * @enum - */ -export declare const MaintenanceWindowTaskCutoffBehavior: { - readonly CancelTask: "CANCEL_TASK"; - readonly ContinueTask: "CONTINUE_TASK"; -}; -/** - * @public - */ -export type MaintenanceWindowTaskCutoffBehavior = (typeof MaintenanceWindowTaskCutoffBehavior)[keyof typeof MaintenanceWindowTaskCutoffBehavior]; -/** - * @public - *

Information about an Amazon Simple Storage Service (Amazon S3) bucket to write managed - * node-level logs to.

- * - *

- * LoggingInfo has been deprecated. To specify an Amazon Simple Storage Service (Amazon S3) bucket to contain logs, instead use the - * OutputS3BucketName and OutputS3KeyPrefix options in the TaskInvocationParameters structure. - * For information about how Amazon Web Services Systems Manager handles these options for the supported maintenance - * window task types, see MaintenanceWindowTaskInvocationParameters.

- *
- */ -export interface LoggingInfo { - /** - * @public - *

The name of an S3 bucket where execution logs are stored.

- */ - S3BucketName: string | undefined; - /** - * @public - *

(Optional) The S3 bucket subfolder.

- */ - S3KeyPrefix?: string; - /** - * @public - *

The Amazon Web Services Region where the S3 bucket is located.

- */ - S3Region: string | undefined; -} -/** - * @public - *

Defines the values for a task parameter.

- */ -export interface MaintenanceWindowTaskParameterValueExpression { - /** - * @public - *

This field contains an array of 0 or more strings, each 1 to 255 characters in - * length.

- */ - Values?: string[]; -} -/** - * @internal - */ -export declare const CreateAssociationRequestFilterSensitiveLog: (obj: CreateAssociationRequest) => any; -/** - * @internal - */ -export declare const AssociationDescriptionFilterSensitiveLog: (obj: AssociationDescription) => any; -/** - * @internal - */ -export declare const CreateAssociationResultFilterSensitiveLog: (obj: CreateAssociationResult) => any; -/** - * @internal - */ -export declare const CreateAssociationBatchRequestEntryFilterSensitiveLog: (obj: CreateAssociationBatchRequestEntry) => any; -/** - * @internal - */ -export declare const CreateAssociationBatchRequestFilterSensitiveLog: (obj: CreateAssociationBatchRequest) => any; -/** - * @internal - */ -export declare const FailedCreateAssociationFilterSensitiveLog: (obj: FailedCreateAssociation) => any; -/** - * @internal - */ -export declare const CreateAssociationBatchResultFilterSensitiveLog: (obj: CreateAssociationBatchResult) => any; -/** - * @internal - */ -export declare const CreateMaintenanceWindowRequestFilterSensitiveLog: (obj: CreateMaintenanceWindowRequest) => any; -/** - * @internal - */ -export declare const PatchSourceFilterSensitiveLog: (obj: PatchSource) => any; -/** - * @internal - */ -export declare const CreatePatchBaselineRequestFilterSensitiveLog: (obj: CreatePatchBaselineRequest) => any; -/** - * @internal - */ -export declare const DescribeAssociationResultFilterSensitiveLog: (obj: DescribeAssociationResult) => any; -/** - * @internal - */ -export declare const InstancePatchStateFilterSensitiveLog: (obj: InstancePatchState) => any; -/** - * @internal - */ -export declare const DescribeInstancePatchStatesResultFilterSensitiveLog: (obj: DescribeInstancePatchStatesResult) => any; -/** - * @internal - */ -export declare const DescribeInstancePatchStatesForPatchGroupResultFilterSensitiveLog: (obj: DescribeInstancePatchStatesForPatchGroupResult) => any; -/** - * @internal - */ -export declare const MaintenanceWindowExecutionTaskInvocationIdentityFilterSensitiveLog: (obj: MaintenanceWindowExecutionTaskInvocationIdentity) => any; -/** - * @internal - */ -export declare const DescribeMaintenanceWindowExecutionTaskInvocationsResultFilterSensitiveLog: (obj: DescribeMaintenanceWindowExecutionTaskInvocationsResult) => any; -/** - * @internal - */ -export declare const MaintenanceWindowIdentityFilterSensitiveLog: (obj: MaintenanceWindowIdentity) => any; -/** - * @internal - */ -export declare const DescribeMaintenanceWindowsResultFilterSensitiveLog: (obj: DescribeMaintenanceWindowsResult) => any; -/** - * @internal - */ -export declare const MaintenanceWindowTargetFilterSensitiveLog: (obj: MaintenanceWindowTarget) => any; -/** - * @internal - */ -export declare const DescribeMaintenanceWindowTargetsResultFilterSensitiveLog: (obj: DescribeMaintenanceWindowTargetsResult) => any; -/** - * @internal - */ -export declare const MaintenanceWindowTaskParameterValueExpressionFilterSensitiveLog: (obj: MaintenanceWindowTaskParameterValueExpression) => any; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/models/models_1.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/models/models_1.d.ts deleted file mode 100644 index ce8a418e..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/models/models_1.d.ts +++ /dev/null @@ -1,9465 +0,0 @@ -import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; -import { AlarmConfiguration, AlarmStateInformation, AssociationComplianceSeverity, AssociationOverview, AssociationSyncCompliance, AutomationExecutionStatus, AutomationSubtype, DocumentFormat, DocumentHashType, DocumentPermissionType, DocumentRequires, DocumentStatus, DocumentType, ExecutionMode, InstanceAssociationOutputLocation, LoggingInfo, MaintenanceWindowExecutionStatus, MaintenanceWindowResourceType, MaintenanceWindowTaskCutoffBehavior, MaintenanceWindowTaskParameterValueExpression, MaintenanceWindowTaskType, MetadataValue, OperatingSystem, OpsItemDataValue, OpsItemNotification, PatchAction, PatchComplianceLevel, PatchFilterGroup, PatchOrchestratorFilter, PatchRuleGroup, PatchSource, PlatformType, RelatedOpsItem, ResolvedTargets, ResourceDataSyncAwsOrganizationsSource, ResourceDataSyncS3Destination, ResourceTypeForTagging, ReviewStatus, Runbook, StepExecution, Tag, Target, TargetLocation } from "./models_0"; -import { SSMServiceException as __BaseException } from "./SSMServiceException"; -/** - * @public - *

Information about a task defined for a maintenance window.

- */ -export interface MaintenanceWindowTask { - /** - * @public - *

The ID of the maintenance window where the task is registered.

- */ - WindowId?: string; - /** - * @public - *

The task ID.

- */ - WindowTaskId?: string; - /** - * @public - *

The resource that the task uses during execution. For RUN_COMMAND and - * AUTOMATION task types, TaskArn is the Amazon Web Services Systems Manager (SSM document) name or - * ARN. For LAMBDA tasks, it's the function name or ARN. For - * STEP_FUNCTIONS tasks, it's the state machine ARN.

- */ - TaskArn?: string; - /** - * @public - *

The type of task.

- */ - Type?: MaintenanceWindowTaskType; - /** - * @public - *

The targets (either managed nodes or tags). Managed nodes are specified using - * Key=instanceids,Values=,. Tags are specified - * using Key=,Values=.

- */ - Targets?: Target[]; - /** - * @public - *

The parameters that should be passed to the task when it is run.

- * - *

- * TaskParameters has been deprecated. To specify parameters to pass to a task when it runs, - * instead use the Parameters option in the TaskInvocationParameters structure. For information - * about how Systems Manager handles these options for the supported maintenance window task - * types, see MaintenanceWindowTaskInvocationParameters.

- *
- */ - TaskParameters?: Record; - /** - * @public - *

The priority of the task in the maintenance window. The lower the number, the higher the - * priority. Tasks that have the same priority are scheduled in parallel.

- */ - Priority?: number; - /** - * @public - *

Information about an S3 bucket to write task-level logs to.

- * - *

- * LoggingInfo has been deprecated. To specify an Amazon Simple Storage Service (Amazon S3) bucket to contain logs, instead use the - * OutputS3BucketName and OutputS3KeyPrefix options in the TaskInvocationParameters structure. - * For information about how Amazon Web Services Systems Manager handles these options for the supported maintenance - * window task types, see MaintenanceWindowTaskInvocationParameters.

- *
- */ - LoggingInfo?: LoggingInfo; - /** - * @public - *

The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) service role to use to publish Amazon Simple Notification Service - * (Amazon SNS) notifications for maintenance window Run Command tasks.

- */ - ServiceRoleArn?: string; - /** - * @public - *

The maximum number of targets this task can be run for, in parallel.

- * - *

Although this element is listed as "Required: No", a value can be omitted only when you are - * registering or updating a targetless - * task You must provide a value in all other cases.

- *

For maintenance window tasks without a target specified, you can't supply a value for this - * option. Instead, the system inserts a placeholder value of 1. This value doesn't - * affect the running of your task.

- *
- */ - MaxConcurrency?: string; - /** - * @public - *

The maximum number of errors allowed before this task stops being scheduled.

- * - *

Although this element is listed as "Required: No", a value can be omitted only when you are - * registering or updating a targetless - * task You must provide a value in all other cases.

- *

For maintenance window tasks without a target specified, you can't supply a value for this - * option. Instead, the system inserts a placeholder value of 1. This value doesn't - * affect the running of your task.

- *
- */ - MaxErrors?: string; - /** - * @public - *

The task name.

- */ - Name?: string; - /** - * @public - *

A description of the task.

- */ - Description?: string; - /** - * @public - *

The specification for whether tasks should continue to run after the cutoff time specified - * in the maintenance windows is reached.

- */ - CutoffBehavior?: MaintenanceWindowTaskCutoffBehavior; - /** - * @public - *

The details for the CloudWatch alarm applied to your maintenance window task.

- */ - AlarmConfiguration?: AlarmConfiguration; -} -/** - * @public - */ -export interface DescribeMaintenanceWindowTasksResult { - /** - * @public - *

Information about the tasks in the maintenance window.

- */ - Tasks?: MaintenanceWindowTask[]; - /** - * @public - *

The token to use when requesting the next set of items. If there are no additional items to - * return, the string is empty.

- */ - NextToken?: string; -} -/** - * @public - * @enum - */ -export declare const OpsItemFilterKey: { - readonly ACCOUNT_ID: "AccountId"; - readonly ACTUAL_END_TIME: "ActualEndTime"; - readonly ACTUAL_START_TIME: "ActualStartTime"; - readonly AUTOMATION_ID: "AutomationId"; - readonly CATEGORY: "Category"; - readonly CHANGE_REQUEST_APPROVER_ARN: "ChangeRequestByApproverArn"; - readonly CHANGE_REQUEST_APPROVER_NAME: "ChangeRequestByApproverName"; - readonly CHANGE_REQUEST_REQUESTER_ARN: "ChangeRequestByRequesterArn"; - readonly CHANGE_REQUEST_REQUESTER_NAME: "ChangeRequestByRequesterName"; - readonly CHANGE_REQUEST_TARGETS_RESOURCE_GROUP: "ChangeRequestByTargetsResourceGroup"; - readonly CHANGE_REQUEST_TEMPLATE: "ChangeRequestByTemplate"; - readonly CREATED_BY: "CreatedBy"; - readonly CREATED_TIME: "CreatedTime"; - readonly INSIGHT_TYPE: "InsightByType"; - readonly LAST_MODIFIED_TIME: "LastModifiedTime"; - readonly OPERATIONAL_DATA: "OperationalData"; - readonly OPERATIONAL_DATA_KEY: "OperationalDataKey"; - readonly OPERATIONAL_DATA_VALUE: "OperationalDataValue"; - readonly OPSITEM_ID: "OpsItemId"; - readonly OPSITEM_TYPE: "OpsItemType"; - readonly PLANNED_END_TIME: "PlannedEndTime"; - readonly PLANNED_START_TIME: "PlannedStartTime"; - readonly PRIORITY: "Priority"; - readonly RESOURCE_ID: "ResourceId"; - readonly SEVERITY: "Severity"; - readonly SOURCE: "Source"; - readonly STATUS: "Status"; - readonly TITLE: "Title"; -}; -/** - * @public - */ -export type OpsItemFilterKey = (typeof OpsItemFilterKey)[keyof typeof OpsItemFilterKey]; -/** - * @public - * @enum - */ -export declare const OpsItemFilterOperator: { - readonly CONTAINS: "Contains"; - readonly EQUAL: "Equal"; - readonly GREATER_THAN: "GreaterThan"; - readonly LESS_THAN: "LessThan"; -}; -/** - * @public - */ -export type OpsItemFilterOperator = (typeof OpsItemFilterOperator)[keyof typeof OpsItemFilterOperator]; -/** - * @public - *

Describes an OpsItem filter.

- */ -export interface OpsItemFilter { - /** - * @public - *

The name of the filter.

- */ - Key: OpsItemFilterKey | undefined; - /** - * @public - *

The filter value.

- */ - Values: string[] | undefined; - /** - * @public - *

The operator used by the filter call.

- */ - Operator: OpsItemFilterOperator | undefined; -} -/** - * @public - */ -export interface DescribeOpsItemsRequest { - /** - * @public - *

One or more filters to limit the response.

- *
    - *
  • - *

    Key: CreatedTime

    - *

    Operations: GreaterThan, LessThan

    - *
  • - *
  • - *

    Key: LastModifiedBy

    - *

    Operations: Contains, Equals

    - *
  • - *
  • - *

    Key: LastModifiedTime

    - *

    Operations: GreaterThan, LessThan

    - *
  • - *
  • - *

    Key: Priority

    - *

    Operations: Equals

    - *
  • - *
  • - *

    Key: Source

    - *

    Operations: Contains, Equals

    - *
  • - *
  • - *

    Key: Status

    - *

    Operations: Equals

    - *
  • - *
  • - *

    Key: Title*

    - *

    Operations: Equals,Contains

    - *
  • - *
  • - *

    Key: OperationalData**

    - *

    Operations: Equals

    - *
  • - *
  • - *

    Key: OperationalDataKey

    - *

    Operations: Equals

    - *
  • - *
  • - *

    Key: OperationalDataValue

    - *

    Operations: Equals, Contains

    - *
  • - *
  • - *

    Key: OpsItemId

    - *

    Operations: Equals

    - *
  • - *
  • - *

    Key: ResourceId

    - *

    Operations: Contains

    - *
  • - *
  • - *

    Key: AutomationId

    - *

    Operations: Equals

    - *
  • - *
  • - *

    Key: AccountId

    - *

    Operations: Equals

    - *
  • - *
- *

*The Equals operator for Title matches the first 100 characters. If you specify more than - * 100 characters, they system returns an error that the filter value exceeds the length - * limit.

- *

**If you filter the response by using the OperationalData operator, specify a key-value pair - * by using the following JSON format: \{"key":"key_name","value":"a_value"\}

- */ - OpsItemFilters?: OpsItemFilter[]; - /** - * @public - *

The maximum number of items to return for this call. The call also returns a token that you - * can specify in a subsequent call to get the next set of results.

- */ - MaxResults?: number; - /** - * @public - *

A token to start the list. Use this token to get the next set of results.

- */ - NextToken?: string; -} -/** - * @public - * @enum - */ -export declare const OpsItemStatus: { - readonly APPROVED: "Approved"; - readonly CANCELLED: "Cancelled"; - readonly CANCELLING: "Cancelling"; - readonly CHANGE_CALENDAR_OVERRIDE_APPROVED: "ChangeCalendarOverrideApproved"; - readonly CHANGE_CALENDAR_OVERRIDE_REJECTED: "ChangeCalendarOverrideRejected"; - readonly CLOSED: "Closed"; - readonly COMPLETED_WITH_FAILURE: "CompletedWithFailure"; - readonly COMPLETED_WITH_SUCCESS: "CompletedWithSuccess"; - readonly FAILED: "Failed"; - readonly IN_PROGRESS: "InProgress"; - readonly OPEN: "Open"; - readonly PENDING: "Pending"; - readonly PENDING_APPROVAL: "PendingApproval"; - readonly PENDING_CHANGE_CALENDAR_OVERRIDE: "PendingChangeCalendarOverride"; - readonly REJECTED: "Rejected"; - readonly RESOLVED: "Resolved"; - readonly RUNBOOK_IN_PROGRESS: "RunbookInProgress"; - readonly SCHEDULED: "Scheduled"; - readonly TIMED_OUT: "TimedOut"; -}; -/** - * @public - */ -export type OpsItemStatus = (typeof OpsItemStatus)[keyof typeof OpsItemStatus]; -/** - * @public - *

A count of OpsItems.

- */ -export interface OpsItemSummary { - /** - * @public - *

The Amazon Resource Name (ARN) of the IAM entity that created the - * OpsItem.

- */ - CreatedBy?: string; - /** - * @public - *

The date and time the OpsItem was created.

- */ - CreatedTime?: Date; - /** - * @public - *

The Amazon Resource Name (ARN) of the IAM entity that created the - * OpsItem.

- */ - LastModifiedBy?: string; - /** - * @public - *

The date and time the OpsItem was last updated.

- */ - LastModifiedTime?: Date; - /** - * @public - *

The importance of this OpsItem in relation to other OpsItems in the system.

- */ - Priority?: number; - /** - * @public - *

The impacted Amazon Web Services resource.

- */ - Source?: string; - /** - * @public - *

The OpsItem status. Status can be Open, In Progress, or - * Resolved.

- */ - Status?: OpsItemStatus; - /** - * @public - *

The ID of the OpsItem.

- */ - OpsItemId?: string; - /** - * @public - *

A short heading that describes the nature of the OpsItem and the impacted resource.

- */ - Title?: string; - /** - * @public - *

Operational data is custom data that provides useful reference details about the OpsItem. - *

- */ - OperationalData?: Record; - /** - * @public - *

A list of OpsItems by category.

- */ - Category?: string; - /** - * @public - *

A list of OpsItems by severity.

- */ - Severity?: string; - /** - * @public - *

The type of OpsItem. Systems Manager supports the following types of OpsItems:

- *
    - *
  • - *

    - * /aws/issue - *

    - *

    This type of OpsItem is used for default OpsItems created by OpsCenter.

    - *
  • - *
  • - *

    - * /aws/changerequest - *

    - *

    This type of OpsItem is used by Change Manager for reviewing and approving or rejecting change - * requests.

    - *
  • - *
  • - *

    - * /aws/insight - *

    - *

    This type of OpsItem is used by OpsCenter for aggregating and reporting on duplicate - * OpsItems.

    - *
  • - *
- */ - OpsItemType?: string; - /** - * @public - *

The time a runbook workflow started. Currently reported only for the OpsItem type - * /aws/changerequest.

- */ - ActualStartTime?: Date; - /** - * @public - *

The time a runbook workflow ended. Currently reported only for the OpsItem type - * /aws/changerequest.

- */ - ActualEndTime?: Date; - /** - * @public - *

The time specified in a change request for a runbook workflow to start. Currently supported - * only for the OpsItem type /aws/changerequest.

- */ - PlannedStartTime?: Date; - /** - * @public - *

The time specified in a change request for a runbook workflow to end. Currently supported - * only for the OpsItem type /aws/changerequest.

- */ - PlannedEndTime?: Date; -} -/** - * @public - */ -export interface DescribeOpsItemsResponse { - /** - * @public - *

The token for the next set of items to return. Use this token to get the next set of - * results.

- */ - NextToken?: string; - /** - * @public - *

A list of OpsItems.

- */ - OpsItemSummaries?: OpsItemSummary[]; -} -/** - * @public - * @enum - */ -export declare const ParametersFilterKey: { - readonly KEY_ID: "KeyId"; - readonly NAME: "Name"; - readonly TYPE: "Type"; -}; -/** - * @public - */ -export type ParametersFilterKey = (typeof ParametersFilterKey)[keyof typeof ParametersFilterKey]; -/** - * @public - *

This data type is deprecated. Instead, use ParameterStringFilter.

- */ -export interface ParametersFilter { - /** - * @public - *

The name of the filter.

- */ - Key: ParametersFilterKey | undefined; - /** - * @public - *

The filter values.

- */ - Values: string[] | undefined; -} -/** - * @public - *

One or more filters. Use a filter to return a more specific list of results.

- */ -export interface ParameterStringFilter { - /** - * @public - *

The name of the filter.

- *

The ParameterStringFilter object is used by the DescribeParameters and GetParametersByPath API operations. - * However, not all of the pattern values listed for Key can be used with both - * operations.

- *

For DescribeParameters, all of the listed patterns are valid except - * Label.

- *

For GetParametersByPath, the following patterns listed for Key - * aren't valid: tag, DataType, Name, Path, and - * Tier.

- *

For examples of Amazon Web Services CLI commands demonstrating valid parameter filter constructions, see - * Searching for Systems Manager parameters in the Amazon Web Services Systems Manager User Guide.

- */ - Key: string | undefined; - /** - * @public - *

For all filters used with DescribeParameters, valid options include - * Equals and BeginsWith. The Name filter additionally - * supports the Contains option. (Exception: For filters using the key - * Path, valid options include Recursive and - * OneLevel.)

- *

For filters used with GetParametersByPath, valid options include - * Equals and BeginsWith. (Exception: For filters using - * Label as the Key name, the only valid option is Equals.)

- */ - Option?: string; - /** - * @public - *

The value you want to search for.

- */ - Values?: string[]; -} -/** - * @public - */ -export interface DescribeParametersRequest { - /** - * @public - *

This data type is deprecated. Instead, use ParameterFilters.

- */ - Filters?: ParametersFilter[]; - /** - * @public - *

Filters to limit the request results.

- */ - ParameterFilters?: ParameterStringFilter[]; - /** - * @public - *

The maximum number of items to return for this call. The call also returns a token that you - * can specify in a subsequent call to get the next set of results.

- */ - MaxResults?: number; - /** - * @public - *

The token for the next set of items to return. (You received this token from a previous - * call.)

- */ - NextToken?: string; -} -/** - * @public - *

One or more policies assigned to a parameter.

- */ -export interface ParameterInlinePolicy { - /** - * @public - *

The JSON text of the policy.

- */ - PolicyText?: string; - /** - * @public - *

The type of policy. Parameter Store, a capability of Amazon Web Services Systems Manager, supports the following - * policy types: Expiration, ExpirationNotification, and NoChangeNotification.

- */ - PolicyType?: string; - /** - * @public - *

The status of the policy. Policies report the following statuses: Pending (the policy hasn't - * been enforced or applied yet), Finished (the policy was applied), Failed (the policy wasn't - * applied), or InProgress (the policy is being applied now).

- */ - PolicyStatus?: string; -} -/** - * @public - * @enum - */ -export declare const ParameterTier: { - readonly ADVANCED: "Advanced"; - readonly INTELLIGENT_TIERING: "Intelligent-Tiering"; - readonly STANDARD: "Standard"; -}; -/** - * @public - */ -export type ParameterTier = (typeof ParameterTier)[keyof typeof ParameterTier]; -/** - * @public - * @enum - */ -export declare const ParameterType: { - readonly SECURE_STRING: "SecureString"; - readonly STRING: "String"; - readonly STRING_LIST: "StringList"; -}; -/** - * @public - */ -export type ParameterType = (typeof ParameterType)[keyof typeof ParameterType]; -/** - * @public - *

Metadata includes information like the ARN of the last user and the date/time the parameter - * was last used.

- */ -export interface ParameterMetadata { - /** - * @public - *

The parameter name.

- */ - Name?: string; - /** - * @public - *

The type of parameter. Valid parameter types include the following: String, - * StringList, and SecureString.

- */ - Type?: ParameterType; - /** - * @public - *

The ID of the query key used for this parameter.

- */ - KeyId?: string; - /** - * @public - *

Date the parameter was last changed or updated.

- */ - LastModifiedDate?: Date; - /** - * @public - *

Amazon Resource Name (ARN) of the Amazon Web Services user who last changed the parameter.

- */ - LastModifiedUser?: string; - /** - * @public - *

Description of the parameter actions.

- */ - Description?: string; - /** - * @public - *

A parameter name can include only the following letters and symbols.

- *

a-zA-Z0-9_.-

- */ - AllowedPattern?: string; - /** - * @public - *

The parameter version.

- */ - Version?: number; - /** - * @public - *

The parameter tier.

- */ - Tier?: ParameterTier; - /** - * @public - *

A list of policies associated with a parameter.

- */ - Policies?: ParameterInlinePolicy[]; - /** - * @public - *

The data type of the parameter, such as text or aws:ec2:image. The - * default is text.

- */ - DataType?: string; -} -/** - * @public - */ -export interface DescribeParametersResult { - /** - * @public - *

Parameters returned by the request.

- */ - Parameters?: ParameterMetadata[]; - /** - * @public - *

The token to use when requesting the next set of items.

- */ - NextToken?: string; -} -/** - * @public - *

The specified filter option isn't valid. Valid options are Equals and BeginsWith. For Path - * filter, valid options are Recursive and OneLevel.

- */ -export declare class InvalidFilterOption extends __BaseException { - readonly name: "InvalidFilterOption"; - readonly $fault: "client"; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - */ -export interface DescribePatchBaselinesRequest { - /** - * @public - *

Each element in the array is a structure containing a key-value pair.

- *

Supported keys for DescribePatchBaselines include the following:

- *
    - *
  • - *

    - * - * NAME_PREFIX - * - *

    - *

    Sample values: AWS- | My- - *

    - *
  • - *
  • - *

    - * - * OWNER - * - *

    - *

    Sample values: AWS | Self - *

    - *
  • - *
  • - *

    - * - * OPERATING_SYSTEM - * - *

    - *

    Sample values: AMAZON_LINUX | SUSE | WINDOWS - *

    - *
  • - *
- */ - Filters?: PatchOrchestratorFilter[]; - /** - * @public - *

The maximum number of patch baselines to return (per page).

- */ - MaxResults?: number; - /** - * @public - *

The token for the next set of items to return. (You received this token from a previous - * call.)

- */ - NextToken?: string; -} -/** - * @public - *

Defines the basic information about a patch baseline.

- */ -export interface PatchBaselineIdentity { - /** - * @public - *

The ID of the patch baseline.

- */ - BaselineId?: string; - /** - * @public - *

The name of the patch baseline.

- */ - BaselineName?: string; - /** - * @public - *

Defines the operating system the patch baseline applies to. The default value is - * WINDOWS.

- */ - OperatingSystem?: OperatingSystem; - /** - * @public - *

The description of the patch baseline.

- */ - BaselineDescription?: string; - /** - * @public - *

Whether this is the default baseline. Amazon Web Services Systems Manager supports creating multiple default patch - * baselines. For example, you can create a default patch baseline for each operating system.

- */ - DefaultBaseline?: boolean; -} -/** - * @public - */ -export interface DescribePatchBaselinesResult { - /** - * @public - *

An array of PatchBaselineIdentity elements.

- */ - BaselineIdentities?: PatchBaselineIdentity[]; - /** - * @public - *

The token to use when requesting the next set of items. If there are no additional items to - * return, the string is empty.

- */ - NextToken?: string; -} -/** - * @public - */ -export interface DescribePatchGroupsRequest { - /** - * @public - *

The maximum number of patch groups to return (per page).

- */ - MaxResults?: number; - /** - * @public - *

Each element in the array is a structure containing a key-value pair.

- *

Supported keys for DescribePatchGroups include the following:

- *
    - *
  • - *

    - * - * NAME_PREFIX - * - *

    - *

    Sample values: AWS- | My-.

    - *
  • - *
  • - *

    - * - * OPERATING_SYSTEM - * - *

    - *

    Sample values: AMAZON_LINUX | SUSE | WINDOWS - *

    - *
  • - *
- */ - Filters?: PatchOrchestratorFilter[]; - /** - * @public - *

The token for the next set of items to return. (You received this token from a previous - * call.)

- */ - NextToken?: string; -} -/** - * @public - *

The mapping between a patch group and the patch baseline the patch group is registered - * with.

- */ -export interface PatchGroupPatchBaselineMapping { - /** - * @public - *

The name of the patch group registered with the patch baseline.

- */ - PatchGroup?: string; - /** - * @public - *

The patch baseline the patch group is registered with.

- */ - BaselineIdentity?: PatchBaselineIdentity; -} -/** - * @public - */ -export interface DescribePatchGroupsResult { - /** - * @public - *

Each entry in the array contains:

- *
    - *
  • - *

    - * PatchGroup: string (between 1 and 256 characters. Regex: - * ^([\p\{L\}\p\{Z\}\p\{N\}_.:/=+\-@]*)$) - *

    - *
  • - *
  • - *

    - * PatchBaselineIdentity: A PatchBaselineIdentity element.

    - *
  • - *
- */ - Mappings?: PatchGroupPatchBaselineMapping[]; - /** - * @public - *

The token to use when requesting the next set of items. If there are no additional items to - * return, the string is empty.

- */ - NextToken?: string; -} -/** - * @public - */ -export interface DescribePatchGroupStateRequest { - /** - * @public - *

The name of the patch group whose patch snapshot should be retrieved.

- */ - PatchGroup: string | undefined; -} -/** - * @public - */ -export interface DescribePatchGroupStateResult { - /** - * @public - *

The number of managed nodes in the patch group.

- */ - Instances?: number; - /** - * @public - *

The number of managed nodes with installed patches.

- */ - InstancesWithInstalledPatches?: number; - /** - * @public - *

The number of managed nodes with patches installed that aren't defined in the patch - * baseline.

- */ - InstancesWithInstalledOtherPatches?: number; - /** - * @public - *

The number of managed nodes with patches installed by Patch Manager that haven't been - * rebooted after the patch installation. The status of these managed nodes is - * NON_COMPLIANT.

- */ - InstancesWithInstalledPendingRebootPatches?: number; - /** - * @public - *

The number of managed nodes with patches installed that are specified in a - * RejectedPatches list. Patches with a status of INSTALLED_REJECTED were - * typically installed before they were added to a RejectedPatches list.

- * - *

If ALLOW_AS_DEPENDENCY is the specified option for - * RejectedPatchesAction, the value of - * InstancesWithInstalledRejectedPatches will always be 0 (zero).

- *
- */ - InstancesWithInstalledRejectedPatches?: number; - /** - * @public - *

The number of managed nodes with missing patches from the patch baseline.

- */ - InstancesWithMissingPatches?: number; - /** - * @public - *

The number of managed nodes with patches from the patch baseline that failed to - * install.

- */ - InstancesWithFailedPatches?: number; - /** - * @public - *

The number of managed nodes with patches that aren't applicable.

- */ - InstancesWithNotApplicablePatches?: number; - /** - * @public - *

The number of managed nodes with NotApplicable patches beyond the supported - * limit, which aren't reported by name to Inventory. Inventory is a capability of Amazon Web Services Systems Manager.

- */ - InstancesWithUnreportedNotApplicablePatches?: number; - /** - * @public - *

The number of managed nodes where patches that are specified as Critical for - * compliance reporting in the patch baseline aren't installed. These patches might be missing, have - * failed installation, were rejected, or were installed but awaiting a required managed node - * reboot. The status of these managed nodes is NON_COMPLIANT.

- */ - InstancesWithCriticalNonCompliantPatches?: number; - /** - * @public - *

The number of managed nodes where patches that are specified as Security in a - * patch advisory aren't installed. These patches might be missing, have failed installation, were - * rejected, or were installed but awaiting a required managed node reboot. The status of these - * managed nodes is NON_COMPLIANT.

- */ - InstancesWithSecurityNonCompliantPatches?: number; - /** - * @public - *

The number of managed nodes with patches installed that are specified as other than - * Critical or Security but aren't compliant with the patch baseline. The - * status of these managed nodes is NON_COMPLIANT.

- */ - InstancesWithOtherNonCompliantPatches?: number; -} -/** - * @public - * @enum - */ -export declare const PatchSet: { - readonly Application: "APPLICATION"; - readonly Os: "OS"; -}; -/** - * @public - */ -export type PatchSet = (typeof PatchSet)[keyof typeof PatchSet]; -/** - * @public - * @enum - */ -export declare const PatchProperty: { - readonly PatchClassification: "CLASSIFICATION"; - readonly PatchMsrcSeverity: "MSRC_SEVERITY"; - readonly PatchPriority: "PRIORITY"; - readonly PatchProductFamily: "PRODUCT_FAMILY"; - readonly PatchSeverity: "SEVERITY"; - readonly Product: "PRODUCT"; -}; -/** - * @public - */ -export type PatchProperty = (typeof PatchProperty)[keyof typeof PatchProperty]; -/** - * @public - */ -export interface DescribePatchPropertiesRequest { - /** - * @public - *

The operating system type for which to list patches.

- */ - OperatingSystem: OperatingSystem | undefined; - /** - * @public - *

The patch property for which you want to view patch details.

- */ - Property: PatchProperty | undefined; - /** - * @public - *

Indicates whether to list patches for the Windows operating system or for applications - * released by Microsoft. Not applicable for the Linux or macOS operating systems.

- */ - PatchSet?: PatchSet; - /** - * @public - *

The maximum number of items to return for this call. The call also returns a token that you - * can specify in a subsequent call to get the next set of results.

- */ - MaxResults?: number; - /** - * @public - *

The token for the next set of items to return. (You received this token from a previous - * call.)

- */ - NextToken?: string; -} -/** - * @public - */ -export interface DescribePatchPropertiesResult { - /** - * @public - *

A list of the properties for patches matching the filter request parameters.

- */ - Properties?: Record[]; - /** - * @public - *

The token for the next set of items to return. (You use this token in the next call.)

- */ - NextToken?: string; -} -/** - * @public - * @enum - */ -export declare const SessionFilterKey: { - readonly INVOKED_AFTER: "InvokedAfter"; - readonly INVOKED_BEFORE: "InvokedBefore"; - readonly OWNER: "Owner"; - readonly SESSION_ID: "SessionId"; - readonly STATUS: "Status"; - readonly TARGET_ID: "Target"; -}; -/** - * @public - */ -export type SessionFilterKey = (typeof SessionFilterKey)[keyof typeof SessionFilterKey]; -/** - * @public - *

Describes a filter for Session Manager information.

- */ -export interface SessionFilter { - /** - * @public - *

The name of the filter.

- */ - key: SessionFilterKey | undefined; - /** - * @public - *

The filter value. Valid values for each filter key are as follows:

- *
    - *
  • - *

    InvokedAfter: Specify a timestamp to limit your results. For example, specify - * 2018-08-29T00:00:00Z to see sessions that started August 29, 2018, and later.

    - *
  • - *
  • - *

    InvokedBefore: Specify a timestamp to limit your results. For example, specify - * 2018-08-29T00:00:00Z to see sessions that started before August 29, 2018.

    - *
  • - *
  • - *

    Target: Specify a managed node to which session connections have been made.

    - *
  • - *
  • - *

    Owner: Specify an Amazon Web Services user to see a list of sessions started by that user.

    - *
  • - *
  • - *

    Status: Specify a valid session status to see a list of all sessions with that status. - * Status values you can specify include:

    - *
      - *
    • - *

      Connected

      - *
    • - *
    • - *

      Connecting

      - *
    • - *
    • - *

      Disconnected

      - *
    • - *
    • - *

      Terminated

      - *
    • - *
    • - *

      Terminating

      - *
    • - *
    • - *

      Failed

      - *
    • - *
    - *
  • - *
  • - *

    SessionId: Specify a session ID to return details about the session.

    - *
  • - *
- */ - value: string | undefined; -} -/** - * @public - * @enum - */ -export declare const SessionState: { - readonly ACTIVE: "Active"; - readonly HISTORY: "History"; -}; -/** - * @public - */ -export type SessionState = (typeof SessionState)[keyof typeof SessionState]; -/** - * @public - */ -export interface DescribeSessionsRequest { - /** - * @public - *

The session status to retrieve a list of sessions for. For example, "Active".

- */ - State: SessionState | undefined; - /** - * @public - *

The maximum number of items to return for this call. The call also returns a token that you - * can specify in a subsequent call to get the next set of results.

- */ - MaxResults?: number; - /** - * @public - *

The token for the next set of items to return. (You received this token from a previous - * call.)

- */ - NextToken?: string; - /** - * @public - *

One or more filters to limit the type of sessions returned by the request.

- */ - Filters?: SessionFilter[]; -} -/** - * @public - *

Reserved for future use.

- */ -export interface SessionManagerOutputUrl { - /** - * @public - *

Reserved for future use.

- */ - S3OutputUrl?: string; - /** - * @public - *

Reserved for future use.

- */ - CloudWatchOutputUrl?: string; -} -/** - * @public - * @enum - */ -export declare const SessionStatus: { - readonly CONNECTED: "Connected"; - readonly CONNECTING: "Connecting"; - readonly DISCONNECTED: "Disconnected"; - readonly FAILED: "Failed"; - readonly TERMINATED: "Terminated"; - readonly TERMINATING: "Terminating"; -}; -/** - * @public - */ -export type SessionStatus = (typeof SessionStatus)[keyof typeof SessionStatus]; -/** - * @public - *

Information about a Session Manager connection to a managed node.

- */ -export interface Session { - /** - * @public - *

The ID of the session.

- */ - SessionId?: string; - /** - * @public - *

The managed node that the Session Manager session connected to.

- */ - Target?: string; - /** - * @public - *

The status of the session. For example, "Connected" or "Terminated".

- */ - Status?: SessionStatus; - /** - * @public - *

The date and time, in ISO-8601 Extended format, when the session began.

- */ - StartDate?: Date; - /** - * @public - *

The date and time, in ISO-8601 Extended format, when the session was terminated.

- */ - EndDate?: Date; - /** - * @public - *

The name of the Session Manager SSM document used to define the parameters and plugin settings for the - * session. For example, SSM-SessionManagerRunShell.

- */ - DocumentName?: string; - /** - * @public - *

The ID of the Amazon Web Services user that started the session.

- */ - Owner?: string; - /** - * @public - *

The reason for connecting to the instance.

- */ - Reason?: string; - /** - * @public - *

Reserved for future use.

- */ - Details?: string; - /** - * @public - *

Reserved for future use.

- */ - OutputUrl?: SessionManagerOutputUrl; - /** - * @public - *

The maximum duration of a session before it terminates.

- */ - MaxSessionDuration?: string; -} -/** - * @public - */ -export interface DescribeSessionsResponse { - /** - * @public - *

A list of sessions meeting the request parameters.

- */ - Sessions?: Session[]; - /** - * @public - *

The token for the next set of items to return. (You received this token from a previous - * call.)

- */ - NextToken?: string; -} -/** - * @public - */ -export interface DisassociateOpsItemRelatedItemRequest { - /** - * @public - *

The ID of the OpsItem for which you want to delete an association between the OpsItem and a - * related item.

- */ - OpsItemId: string | undefined; - /** - * @public - *

The ID of the association for which you want to delete an association between the OpsItem - * and a related item.

- */ - AssociationId: string | undefined; -} -/** - * @public - */ -export interface DisassociateOpsItemRelatedItemResponse { -} -/** - * @public - *

The association wasn't found using the parameters you specified in the call. Verify the - * information and try again.

- */ -export declare class OpsItemRelatedItemAssociationNotFoundException extends __BaseException { - readonly name: "OpsItemRelatedItemAssociationNotFoundException"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - */ -export interface GetAutomationExecutionRequest { - /** - * @public - *

The unique identifier for an existing automation execution to examine. The execution ID is - * returned by StartAutomationExecution when the execution of an Automation runbook is - * initiated.

- */ - AutomationExecutionId: string | undefined; -} -/** - * @public - *

An aggregate of step execution statuses displayed in the Amazon Web Services Systems Manager console for a - * multi-Region and multi-account Automation execution.

- */ -export interface ProgressCounters { - /** - * @public - *

The total number of steps run in all specified Amazon Web Services Regions and Amazon Web Services accounts for the - * current Automation execution.

- */ - TotalSteps?: number; - /** - * @public - *

The total number of steps that successfully completed in all specified Amazon Web Services Regions and - * Amazon Web Services accounts for the current Automation execution.

- */ - SuccessSteps?: number; - /** - * @public - *

The total number of steps that failed to run in all specified Amazon Web Services Regions and - * Amazon Web Services accounts for the current Automation execution.

- */ - FailedSteps?: number; - /** - * @public - *

The total number of steps that the system cancelled in all specified Amazon Web Services Regions and - * Amazon Web Services accounts for the current Automation execution.

- */ - CancelledSteps?: number; - /** - * @public - *

The total number of steps that timed out in all specified Amazon Web Services Regions and Amazon Web Services accounts - * for the current Automation execution.

- */ - TimedOutSteps?: number; -} -/** - * @public - *

Detailed information about the current state of an individual Automation execution.

- */ -export interface AutomationExecution { - /** - * @public - *

The execution ID.

- */ - AutomationExecutionId?: string; - /** - * @public - *

The name of the Automation runbook used during the execution.

- */ - DocumentName?: string; - /** - * @public - *

The version of the document to use during execution.

- */ - DocumentVersion?: string; - /** - * @public - *

The time the execution started.

- */ - ExecutionStartTime?: Date; - /** - * @public - *

The time the execution finished.

- */ - ExecutionEndTime?: Date; - /** - * @public - *

The execution status of the Automation.

- */ - AutomationExecutionStatus?: AutomationExecutionStatus; - /** - * @public - *

A list of details about the current state of all steps that comprise an execution. An - * Automation runbook contains a list of steps that are run in order.

- */ - StepExecutions?: StepExecution[]; - /** - * @public - *

A boolean value that indicates if the response contains the full list of the Automation step - * executions. If true, use the DescribeAutomationStepExecutions API operation to get the full list - * of step executions.

- */ - StepExecutionsTruncated?: boolean; - /** - * @public - *

The key-value map of execution parameters, which were supplied when calling StartAutomationExecution.

- */ - Parameters?: Record; - /** - * @public - *

The list of execution outputs as defined in the Automation runbook.

- */ - Outputs?: Record; - /** - * @public - *

A message describing why an execution has failed, if the status is set to Failed.

- */ - FailureMessage?: string; - /** - * @public - *

The automation execution mode.

- */ - Mode?: ExecutionMode; - /** - * @public - *

The AutomationExecutionId of the parent automation.

- */ - ParentAutomationExecutionId?: string; - /** - * @public - *

The Amazon Resource Name (ARN) of the user who ran the automation.

- */ - ExecutedBy?: string; - /** - * @public - *

The name of the step that is currently running.

- */ - CurrentStepName?: string; - /** - * @public - *

The action of the step that is currently running.

- */ - CurrentAction?: string; - /** - * @public - *

The parameter name.

- */ - TargetParameterName?: string; - /** - * @public - *

The specified targets.

- */ - Targets?: Target[]; - /** - * @public - *

The specified key-value mapping of document parameters to target resources.

- */ - TargetMaps?: Record[]; - /** - * @public - *

A list of resolved targets in the rate control execution.

- */ - ResolvedTargets?: ResolvedTargets; - /** - * @public - *

The MaxConcurrency value specified by the user when the execution - * started.

- */ - MaxConcurrency?: string; - /** - * @public - *

The MaxErrors value specified by the user when the execution started.

- */ - MaxErrors?: string; - /** - * @public - *

The target of the execution.

- */ - Target?: string; - /** - * @public - *

The combination of Amazon Web Services Regions and/or Amazon Web Services accounts where you want to run the - * Automation.

- */ - TargetLocations?: TargetLocation[]; - /** - * @public - *

An aggregate of step execution statuses displayed in the Amazon Web Services Systems Manager console for a - * multi-Region and multi-account Automation execution.

- */ - ProgressCounters?: ProgressCounters; - /** - * @public - *

The details for the CloudWatch alarm applied to your automation.

- */ - AlarmConfiguration?: AlarmConfiguration; - /** - * @public - *

The CloudWatch alarm that was invoked by the automation.

- */ - TriggeredAlarms?: AlarmStateInformation[]; - /** - * @public - *

The subtype of the Automation operation. Currently, the only supported value is - * ChangeRequest.

- */ - AutomationSubtype?: AutomationSubtype; - /** - * @public - *

The date and time the Automation operation is scheduled to start.

- */ - ScheduledTime?: Date; - /** - * @public - *

Information about the Automation runbooks that are run as part of a runbook workflow.

- * - *

The Automation runbooks specified for the runbook workflow can't run until all required - * approvals for the change request have been received.

- *
- */ - Runbooks?: Runbook[]; - /** - * @public - *

The ID of an OpsItem that is created to represent a Change Manager change request.

- */ - OpsItemId?: string; - /** - * @public - *

The ID of a State Manager association used in the Automation operation.

- */ - AssociationId?: string; - /** - * @public - *

The name of the Change Manager change request.

- */ - ChangeRequestName?: string; - /** - * @public - *

Variables defined for the automation.

- */ - Variables?: Record; -} -/** - * @public - */ -export interface GetAutomationExecutionResult { - /** - * @public - *

Detailed information about the current state of an automation execution.

- */ - AutomationExecution?: AutomationExecution; -} -/** - * @public - */ -export interface GetCalendarStateRequest { - /** - * @public - *

The names or Amazon Resource Names (ARNs) of the Systems Manager documents (SSM documents) that - * represent the calendar entries for which you want to get the state.

- */ - CalendarNames: string[] | undefined; - /** - * @public - *

(Optional) The specific time for which you want to get calendar state information, in ISO 8601 format. If you don't specify a - * value or AtTime, the current time is used.

- */ - AtTime?: string; -} -/** - * @public - * @enum - */ -export declare const CalendarState: { - readonly CLOSED: "CLOSED"; - readonly OPEN: "OPEN"; -}; -/** - * @public - */ -export type CalendarState = (typeof CalendarState)[keyof typeof CalendarState]; -/** - * @public - */ -export interface GetCalendarStateResponse { - /** - * @public - *

The state of the calendar. An OPEN calendar indicates that actions are allowed - * to proceed, and a CLOSED calendar indicates that actions aren't allowed to - * proceed.

- */ - State?: CalendarState; - /** - * @public - *

The time, as an ISO 8601 string, - * that you specified in your command. If you don't specify a time, GetCalendarState - * uses the current time.

- */ - AtTime?: string; - /** - * @public - *

The time, as an ISO 8601 string, - * that the calendar state will change. If the current calendar state is OPEN, - * NextTransitionTime indicates when the calendar state changes to - * CLOSED, and vice-versa.

- */ - NextTransitionTime?: string; -} -/** - * @public - *

The SSM document type isn't valid. Valid document types are described in the - * DocumentType property.

- */ -export declare class InvalidDocumentType extends __BaseException { - readonly name: "InvalidDocumentType"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

The calendar entry contained in the specified SSM document isn't supported.

- */ -export declare class UnsupportedCalendarException extends __BaseException { - readonly name: "UnsupportedCalendarException"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - */ -export interface GetCommandInvocationRequest { - /** - * @public - *

(Required) The parent command ID of the invocation plugin.

- */ - CommandId: string | undefined; - /** - * @public - *

(Required) The ID of the managed node targeted by the command. A managed - * node can be an Amazon Elastic Compute Cloud (Amazon EC2) instance, edge device, and on-premises server or VM - * in your hybrid environment that is configured for Amazon Web Services Systems Manager.

- */ - InstanceId: string | undefined; - /** - * @public - *

The name of the step for which you want detailed results. If the document contains only one - * step, you can omit the name and details for that step. If the document contains more than one - * step, you must specify the name of the step for which you want to view details. Be sure to - * specify the name of the step, not the name of a plugin like - * aws:RunShellScript.

- *

To find the PluginName, check the document content and find the name of the - * step you want details for. Alternatively, use ListCommandInvocations with the - * CommandId and Details parameters. The PluginName is the - * Name attribute of the CommandPlugin object in the - * CommandPlugins list.

- */ - PluginName?: string; -} -/** - * @public - *

Configuration options for sending command output to Amazon CloudWatch Logs.

- */ -export interface CloudWatchOutputConfig { - /** - * @public - *

The name of the CloudWatch Logs log group where you want to send command output. If you - * don't specify a group name, Amazon Web Services Systems Manager automatically creates a log group for you. The log group - * uses the following naming format:

- *

- * aws/ssm/SystemsManagerDocumentName - * - *

- */ - CloudWatchLogGroupName?: string; - /** - * @public - *

Enables Systems Manager to send command output to CloudWatch Logs.

- */ - CloudWatchOutputEnabled?: boolean; -} -/** - * @public - * @enum - */ -export declare const CommandInvocationStatus: { - readonly CANCELLED: "Cancelled"; - readonly CANCELLING: "Cancelling"; - readonly DELAYED: "Delayed"; - readonly FAILED: "Failed"; - readonly IN_PROGRESS: "InProgress"; - readonly PENDING: "Pending"; - readonly SUCCESS: "Success"; - readonly TIMED_OUT: "TimedOut"; -}; -/** - * @public - */ -export type CommandInvocationStatus = (typeof CommandInvocationStatus)[keyof typeof CommandInvocationStatus]; -/** - * @public - */ -export interface GetCommandInvocationResult { - /** - * @public - *

The parent command ID of the invocation plugin.

- */ - CommandId?: string; - /** - * @public - *

The ID of the managed node targeted by the command. A managed node can - * be an Amazon Elastic Compute Cloud (Amazon EC2) instance, edge device, or on-premises server or VM in your hybrid - * environment that is configured for Amazon Web Services Systems Manager.

- */ - InstanceId?: string; - /** - * @public - *

The comment text for the command.

- */ - Comment?: string; - /** - * @public - *

The name of the document that was run. For example, AWS-RunShellScript.

- */ - DocumentName?: string; - /** - * @public - *

The Systems Manager document (SSM document) version used in the request.

- */ - DocumentVersion?: string; - /** - * @public - *

The name of the plugin, or step name, for which details are reported. - * For example, aws:RunShellScript is a plugin.

- */ - PluginName?: string; - /** - * @public - *

The error level response code for the plugin script. If the response code is - * -1, then the command hasn't started running on the managed node, or it wasn't - * received by the node.

- */ - ResponseCode?: number; - /** - * @public - *

The date and time the plugin started running. Date and time are written in ISO 8601 format. - * For example, June 7, 2017 is represented as 2017-06-7. The following sample Amazon Web Services CLI command uses - * the InvokedBefore filter.

- *

- * aws ssm list-commands --filters key=InvokedBefore,value=2017-06-07T00:00:00Z - *

- *

If the plugin hasn't started to run, the string is empty.

- */ - ExecutionStartDateTime?: string; - /** - * @public - *

Duration since ExecutionStartDateTime.

- */ - ExecutionElapsedTime?: string; - /** - * @public - *

The date and time the plugin finished running. Date and time are written in ISO 8601 format. - * For example, June 7, 2017 is represented as 2017-06-7. The following sample Amazon Web Services CLI command uses - * the InvokedAfter filter.

- *

- * aws ssm list-commands --filters key=InvokedAfter,value=2017-06-07T00:00:00Z - *

- *

If the plugin hasn't started to run, the string is empty.

- */ - ExecutionEndDateTime?: string; - /** - * @public - *

The status of this invocation plugin. This status can be different than - * StatusDetails.

- */ - Status?: CommandInvocationStatus; - /** - * @public - *

A detailed status of the command execution for an invocation. StatusDetails - * includes more information than Status because it includes states resulting from - * error and concurrency control parameters. StatusDetails can show different results - * than Status. For more information about these statuses, see Understanding - * command statuses in the Amazon Web Services Systems Manager User Guide. - * StatusDetails can be one of the following values:

- *
    - *
  • - *

    Pending: The command hasn't been sent to the managed node.

    - *
  • - *
  • - *

    In Progress: The command has been sent to the managed node but hasn't reached a terminal - * state.

    - *
  • - *
  • - *

    Delayed: The system attempted to send the command to the target, but the target wasn't - * available. The managed node might not be available because of network issues, because the node - * was stopped, or for similar reasons. The system will try to send the command again.

    - *
  • - *
  • - *

    Success: The command or plugin ran successfully. This is a terminal state.

    - *
  • - *
  • - *

    Delivery Timed Out: The command wasn't delivered to the managed node before the delivery - * timeout expired. Delivery timeouts don't count against the parent command's - * MaxErrors limit, but they do contribute to whether the parent command status is - * Success or Incomplete. This is a terminal state.

    - *
  • - *
  • - *

    Execution Timed Out: The command started to run on the managed node, but the execution - * wasn't complete before the timeout expired. Execution timeouts count against the - * MaxErrors limit of the parent command. This is a terminal state.

    - *
  • - *
  • - *

    Failed: The command wasn't run successfully on the managed node. For a plugin, this - * indicates that the result code wasn't zero. For a command invocation, this indicates that the - * result code for one or more plugins wasn't zero. Invocation failures count against the - * MaxErrors limit of the parent command. This is a terminal state.

    - *
  • - *
  • - *

    Cancelled: The command was terminated before it was completed. This is a terminal - * state.

    - *
  • - *
  • - *

    Undeliverable: The command can't be delivered to the managed node. The node might not - * exist or might not be responding. Undeliverable invocations don't count against the parent - * command's MaxErrors limit and don't contribute to whether the parent command - * status is Success or Incomplete. This is a terminal state.

    - *
  • - *
  • - *

    Terminated: The parent command exceeded its MaxErrors limit and subsequent - * command invocations were canceled by the system. This is a terminal state.

    - *
  • - *
- */ - StatusDetails?: string; - /** - * @public - *

The first 24,000 characters written by the plugin to stdout. If the command - * hasn't finished running, if ExecutionStatus is neither Succeeded nor Failed, then - * this string is empty.

- */ - StandardOutputContent?: string; - /** - * @public - *

The URL for the complete text written by the plugin to stdout in Amazon Simple Storage Service (Amazon S3). If an S3 bucket wasn't specified, then this string is - * empty.

- */ - StandardOutputUrl?: string; - /** - * @public - *

The first 8,000 characters written by the plugin to stderr. If the command - * hasn't finished running, then this string is empty.

- */ - StandardErrorContent?: string; - /** - * @public - *

The URL for the complete text written by the plugin to stderr. If the command - * hasn't finished running, then this string is empty.

- */ - StandardErrorUrl?: string; - /** - * @public - *

Amazon CloudWatch Logs information where Systems Manager sent the command output.

- */ - CloudWatchOutputConfig?: CloudWatchOutputConfig; -} -/** - * @public - *

The plugin name isn't valid.

- */ -export declare class InvalidPluginName extends __BaseException { - readonly name: "InvalidPluginName"; - readonly $fault: "client"; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

The command ID and managed node ID you specified didn't match any invocations. Verify the - * command ID and the managed node ID and try again.

- */ -export declare class InvocationDoesNotExist extends __BaseException { - readonly name: "InvocationDoesNotExist"; - readonly $fault: "client"; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - */ -export interface GetConnectionStatusRequest { - /** - * @public - *

The managed node ID.

- */ - Target: string | undefined; -} -/** - * @public - * @enum - */ -export declare const ConnectionStatus: { - readonly CONNECTED: "connected"; - readonly NOT_CONNECTED: "notconnected"; -}; -/** - * @public - */ -export type ConnectionStatus = (typeof ConnectionStatus)[keyof typeof ConnectionStatus]; -/** - * @public - */ -export interface GetConnectionStatusResponse { - /** - * @public - *

The ID of the managed node to check connection status.

- */ - Target?: string; - /** - * @public - *

The status of the connection to the managed node. For example, 'Connected' or 'Not - * Connected'.

- */ - Status?: ConnectionStatus; -} -/** - * @public - */ -export interface GetDefaultPatchBaselineRequest { - /** - * @public - *

Returns the default patch baseline for the specified operating system.

- */ - OperatingSystem?: OperatingSystem; -} -/** - * @public - */ -export interface GetDefaultPatchBaselineResult { - /** - * @public - *

The ID of the default patch baseline.

- */ - BaselineId?: string; - /** - * @public - *

The operating system for the returned patch baseline.

- */ - OperatingSystem?: OperatingSystem; -} -/** - * @public - *

Defines the basic information about a patch baseline override.

- */ -export interface BaselineOverride { - /** - * @public - *

The operating system rule used by the patch baseline override.

- */ - OperatingSystem?: OperatingSystem; - /** - * @public - *

A set of patch filters, typically used for approval rules.

- */ - GlobalFilters?: PatchFilterGroup; - /** - * @public - *

A set of rules defining the approval rules for a patch baseline.

- */ - ApprovalRules?: PatchRuleGroup; - /** - * @public - *

A list of explicitly approved patches for the baseline.

- *

For information about accepted formats for lists of approved patches and rejected patches, - * see About - * package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

- */ - ApprovedPatches?: string[]; - /** - * @public - *

Defines the compliance level for approved patches. When an approved patch is reported as - * missing, this value describes the severity of the compliance violation.

- */ - ApprovedPatchesComplianceLevel?: PatchComplianceLevel; - /** - * @public - *

A list of explicitly rejected patches for the baseline.

- *

For information about accepted formats for lists of approved patches and rejected patches, - * see About - * package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

- */ - RejectedPatches?: string[]; - /** - * @public - *

The action for Patch Manager to take on patches included in the - * RejectedPackages list. A patch can be allowed only if it is a dependency of another - * package, or blocked entirely along with packages that include it as a dependency.

- */ - RejectedPatchesAction?: PatchAction; - /** - * @public - *

Indicates whether the list of approved patches includes non-security updates that should be - * applied to the managed nodes. The default value is false. Applies to Linux managed - * nodes only.

- */ - ApprovedPatchesEnableNonSecurity?: boolean; - /** - * @public - *

Information about the patches to use to update the managed nodes, including target operating - * systems and source repositories. Applies to Linux managed nodes only.

- */ - Sources?: PatchSource[]; -} -/** - * @public - */ -export interface GetDeployablePatchSnapshotForInstanceRequest { - /** - * @public - *

The ID of the managed node for which the appropriate patch snapshot should be - * retrieved.

- */ - InstanceId: string | undefined; - /** - * @public - *

The snapshot ID provided by the user when running AWS-RunPatchBaseline.

- */ - SnapshotId: string | undefined; - /** - * @public - *

Defines the basic information about a patch baseline override.

- */ - BaselineOverride?: BaselineOverride; -} -/** - * @public - */ -export interface GetDeployablePatchSnapshotForInstanceResult { - /** - * @public - *

The managed node ID.

- */ - InstanceId?: string; - /** - * @public - *

The user-defined snapshot ID.

- */ - SnapshotId?: string; - /** - * @public - *

A pre-signed Amazon Simple Storage Service (Amazon S3) URL that can be used to download the - * patch snapshot.

- */ - SnapshotDownloadUrl?: string; - /** - * @public - *

Returns the specific operating system (for example Windows Server 2012 or Amazon Linux - * 2015.09) on the managed node for the specified patch snapshot.

- */ - Product?: string; -} -/** - * @public - *

Patching for applications released by Microsoft is only available on EC2 instances and - * advanced instances. To patch applications released by Microsoft on on-premises servers and VMs, - * you must enable advanced instances. For more information, see Enabling - * the advanced-instances tier in the Amazon Web Services Systems Manager User Guide.

- */ -export declare class UnsupportedFeatureRequiredException extends __BaseException { - readonly name: "UnsupportedFeatureRequiredException"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - */ -export interface GetDocumentRequest { - /** - * @public - *

The name of the SSM document.

- */ - Name: string | undefined; - /** - * @public - *

An optional field specifying the version of the artifact associated with the document. For - * example, "Release 12, Update 6". This value is unique across all versions of a document and can't - * be changed.

- */ - VersionName?: string; - /** - * @public - *

The document version for which you want information.

- */ - DocumentVersion?: string; - /** - * @public - *

Returns the document in the specified format. The document format can be either JSON or - * YAML. JSON is the default format.

- */ - DocumentFormat?: DocumentFormat; -} -/** - * @public - * @enum - */ -export declare const AttachmentHashType: { - readonly SHA256: "Sha256"; -}; -/** - * @public - */ -export type AttachmentHashType = (typeof AttachmentHashType)[keyof typeof AttachmentHashType]; -/** - * @public - *

A structure that includes attributes that describe a document attachment.

- */ -export interface AttachmentContent { - /** - * @public - *

The name of an attachment.

- */ - Name?: string; - /** - * @public - *

The size of an attachment in bytes.

- */ - Size?: number; - /** - * @public - *

The cryptographic hash value of the document content.

- */ - Hash?: string; - /** - * @public - *

The hash algorithm used to calculate the hash value.

- */ - HashType?: AttachmentHashType; - /** - * @public - *

The URL location of the attachment content.

- */ - Url?: string; -} -/** - * @public - */ -export interface GetDocumentResult { - /** - * @public - *

The name of the SSM document.

- */ - Name?: string; - /** - * @public - *

The date the SSM document was created.

- */ - CreatedDate?: Date; - /** - * @public - *

The friendly name of the SSM document. This value can differ for each version of the - * document. If you want to update this value, see UpdateDocument.

- */ - DisplayName?: string; - /** - * @public - *

The version of the artifact associated with the document. For example, "Release 12, Update - * 6". This value is unique across all versions of a document, and can't be changed.

- */ - VersionName?: string; - /** - * @public - *

The document version.

- */ - DocumentVersion?: string; - /** - * @public - *

The status of the SSM document, such as Creating, Active, - * Updating, Failed, and Deleting.

- */ - Status?: DocumentStatus; - /** - * @public - *

A message returned by Amazon Web Services Systems Manager that explains the Status value. For example, a - * Failed status might be explained by the StatusInformation message, - * "The specified S3 bucket doesn't exist. Verify that the URL of the S3 bucket is correct."

- */ - StatusInformation?: string; - /** - * @public - *

The contents of the SSM document.

- */ - Content?: string; - /** - * @public - *

The document type.

- */ - DocumentType?: DocumentType; - /** - * @public - *

The document format, either JSON or YAML.

- */ - DocumentFormat?: DocumentFormat; - /** - * @public - *

A list of SSM documents required by a document. For example, an - * ApplicationConfiguration document requires an - * ApplicationConfigurationSchema document.

- */ - Requires?: DocumentRequires[]; - /** - * @public - *

A description of the document attachments, including names, locations, sizes, and so - * on.

- */ - AttachmentsContent?: AttachmentContent[]; - /** - * @public - *

The current review status of a new custom Systems Manager document (SSM document) created by a member - * of your organization, or of the latest version of an existing SSM document.

- *

Only one version of an SSM document can be in the APPROVED state at a time. When a new - * version is approved, the status of the previous version changes to REJECTED.

- *

Only one version of an SSM document can be in review, or PENDING, at a time.

- */ - ReviewStatus?: ReviewStatus; -} -/** - * @public - * @enum - */ -export declare const InventoryQueryOperatorType: { - readonly BEGIN_WITH: "BeginWith"; - readonly EQUAL: "Equal"; - readonly EXISTS: "Exists"; - readonly GREATER_THAN: "GreaterThan"; - readonly LESS_THAN: "LessThan"; - readonly NOT_EQUAL: "NotEqual"; -}; -/** - * @public - */ -export type InventoryQueryOperatorType = (typeof InventoryQueryOperatorType)[keyof typeof InventoryQueryOperatorType]; -/** - * @public - *

One or more filters. Use a filter to return a more specific list of results.

- */ -export interface InventoryFilter { - /** - * @public - *

The name of the filter key.

- */ - Key: string | undefined; - /** - * @public - *

Inventory filter values. Example: inventory filter where managed node IDs are specified as - * values Key=AWS:InstanceInformation.InstanceId,Values= i-a12b3c4d5e6g, - * i-1a2b3c4d5e6,Type=Equal.

- */ - Values: string[] | undefined; - /** - * @public - *

The type of filter.

- * - *

The Exists filter must be used with aggregators. For more information, see - * Aggregating inventory - * data in the Amazon Web Services Systems Manager User Guide.

- *
- */ - Type?: InventoryQueryOperatorType; -} -/** - * @public - *

A user-defined set of one or more filters on which to aggregate inventory data. Groups - * return a count of resources that match and don't match the specified criteria.

- */ -export interface InventoryGroup { - /** - * @public - *

The name of the group.

- */ - Name: string | undefined; - /** - * @public - *

Filters define the criteria for the group. The matchingCount field displays the - * number of resources that match the criteria. The notMatchingCount field displays the - * number of resources that don't match the criteria.

- */ - Filters: InventoryFilter[] | undefined; -} -/** - * @public - *

The inventory item result attribute.

- */ -export interface ResultAttribute { - /** - * @public - *

Name of the inventory item type. Valid value: AWS:InstanceInformation. Default - * Value: AWS:InstanceInformation.

- */ - TypeName: string | undefined; -} -/** - * @public - *

The inventory result item.

- */ -export interface InventoryResultItem { - /** - * @public - *

The name of the inventory result item type.

- */ - TypeName: string | undefined; - /** - * @public - *

The schema version for the inventory result item/

- */ - SchemaVersion: string | undefined; - /** - * @public - *

The time inventory item data was captured.

- */ - CaptureTime?: string; - /** - * @public - *

MD5 hash of the inventory item type contents. The content hash is used to determine whether - * to update inventory information. The PutInventory API doesn't update the inventory item type - * contents if the MD5 hash hasn't changed since last update.

- */ - ContentHash?: string; - /** - * @public - *

Contains all the inventory data of the item type. Results include attribute names and - * values.

- */ - Content: Record[] | undefined; -} -/** - * @public - *

Inventory query results.

- */ -export interface InventoryResultEntity { - /** - * @public - *

ID of the inventory result entity. For example, for managed node inventory the result will - * be the managed node ID. For EC2 instance inventory, the result will be the instance ID.

- */ - Id?: string; - /** - * @public - *

The data section in the inventory result entity JSON.

- */ - Data?: Record; -} -/** - * @public - */ -export interface GetInventoryResult { - /** - * @public - *

Collection of inventory entities such as a collection of managed node inventory.

- */ - Entities?: InventoryResultEntity[]; - /** - * @public - *

The token to use when requesting the next set of items. If there are no additional items to - * return, the string is empty.

- */ - NextToken?: string; -} -/** - * @public - *

The specified aggregator isn't valid for inventory groups. Verify that the aggregator uses a - * valid inventory type such as AWS:Application or - * AWS:InstanceInformation.

- */ -export declare class InvalidAggregatorException extends __BaseException { - readonly name: "InvalidAggregatorException"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

The specified inventory group isn't valid.

- */ -export declare class InvalidInventoryGroupException extends __BaseException { - readonly name: "InvalidInventoryGroupException"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

The specified inventory item result attribute isn't valid.

- */ -export declare class InvalidResultAttributeException extends __BaseException { - readonly name: "InvalidResultAttributeException"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - */ -export interface GetInventorySchemaRequest { - /** - * @public - *

The type of inventory item to return.

- */ - TypeName?: string; - /** - * @public - *

The token for the next set of items to return. (You received this token from a previous - * call.)

- */ - NextToken?: string; - /** - * @public - *

The maximum number of items to return for this call. The call also returns a token that you - * can specify in a subsequent call to get the next set of results.

- */ - MaxResults?: number; - /** - * @public - *

Returns inventory schemas that support aggregation. For example, this call returns the - * AWS:InstanceInformation type, because it supports aggregation based on the - * PlatformName, PlatformType, and PlatformVersion - * attributes.

- */ - Aggregator?: boolean; - /** - * @public - *

Returns the sub-type schema for a specified inventory type.

- */ - SubType?: boolean; -} -/** - * @public - * @enum - */ -export declare const InventoryAttributeDataType: { - readonly NUMBER: "number"; - readonly STRING: "string"; -}; -/** - * @public - */ -export type InventoryAttributeDataType = (typeof InventoryAttributeDataType)[keyof typeof InventoryAttributeDataType]; -/** - * @public - *

Attributes are the entries within the inventory item content. It contains name and - * value.

- */ -export interface InventoryItemAttribute { - /** - * @public - *

Name of the inventory item attribute.

- */ - Name: string | undefined; - /** - * @public - *

The data type of the inventory item attribute.

- */ - DataType: InventoryAttributeDataType | undefined; -} -/** - * @public - *

The inventory item schema definition. Users can use this to compose inventory query - * filters.

- */ -export interface InventoryItemSchema { - /** - * @public - *

The name of the inventory type. Default inventory item type names start with Amazon Web Services. Custom - * inventory type names will start with Custom. Default inventory item types include the following: - * AWS:AWSComponent, AWS:Application, - * AWS:InstanceInformation, AWS:Network, and - * AWS:WindowsUpdate.

- */ - TypeName: string | undefined; - /** - * @public - *

The schema version for the inventory item.

- */ - Version?: string; - /** - * @public - *

The schema attributes for inventory. This contains data type and attribute name.

- */ - Attributes: InventoryItemAttribute[] | undefined; - /** - * @public - *

The alias name of the inventory type. The alias name is used for display purposes.

- */ - DisplayName?: string; -} -/** - * @public - */ -export interface GetInventorySchemaResult { - /** - * @public - *

Inventory schemas returned by the request.

- */ - Schemas?: InventoryItemSchema[]; - /** - * @public - *

The token to use when requesting the next set of items. If there are no additional items to - * return, the string is empty.

- */ - NextToken?: string; -} -/** - * @public - */ -export interface GetMaintenanceWindowRequest { - /** - * @public - *

The ID of the maintenance window for which you want to retrieve information.

- */ - WindowId: string | undefined; -} -/** - * @public - */ -export interface GetMaintenanceWindowResult { - /** - * @public - *

The ID of the created maintenance window.

- */ - WindowId?: string; - /** - * @public - *

The name of the maintenance window.

- */ - Name?: string; - /** - * @public - *

The description of the maintenance window.

- */ - Description?: string; - /** - * @public - *

The date and time, in ISO-8601 Extended format, for when the maintenance window is scheduled - * to become active. The maintenance window won't run before this specified time.

- */ - StartDate?: string; - /** - * @public - *

The date and time, in ISO-8601 Extended format, for when the maintenance window is scheduled - * to become inactive. The maintenance window won't run after this specified time.

- */ - EndDate?: string; - /** - * @public - *

The schedule of the maintenance window in the form of a cron or rate expression.

- */ - Schedule?: string; - /** - * @public - *

The time zone that the scheduled maintenance window executions are based on, in Internet - * Assigned Numbers Authority (IANA) format. For example: "America/Los_Angeles", "UTC", or - * "Asia/Seoul". For more information, see the Time - * Zone Database on the IANA website.

- */ - ScheduleTimezone?: string; - /** - * @public - *

The number of days to wait to run a maintenance window after the scheduled cron expression - * date and time.

- */ - ScheduleOffset?: number; - /** - * @public - *

The next time the maintenance window will actually run, taking into account any specified - * times for the maintenance window to become active or inactive.

- */ - NextExecutionTime?: string; - /** - * @public - *

The duration of the maintenance window in hours.

- */ - Duration?: number; - /** - * @public - *

The number of hours before the end of the maintenance window that Amazon Web Services Systems Manager stops scheduling - * new tasks for execution.

- */ - Cutoff?: number; - /** - * @public - *

Whether targets must be registered with the maintenance window before tasks can be defined - * for those targets.

- */ - AllowUnassociatedTargets?: boolean; - /** - * @public - *

Indicates whether the maintenance window is enabled.

- */ - Enabled?: boolean; - /** - * @public - *

The date the maintenance window was created.

- */ - CreatedDate?: Date; - /** - * @public - *

The date the maintenance window was last modified.

- */ - ModifiedDate?: Date; -} -/** - * @public - */ -export interface GetMaintenanceWindowExecutionRequest { - /** - * @public - *

The ID of the maintenance window execution that includes the task.

- */ - WindowExecutionId: string | undefined; -} -/** - * @public - */ -export interface GetMaintenanceWindowExecutionResult { - /** - * @public - *

The ID of the maintenance window execution.

- */ - WindowExecutionId?: string; - /** - * @public - *

The ID of the task executions from the maintenance window execution.

- */ - TaskIds?: string[]; - /** - * @public - *

The status of the maintenance window execution.

- */ - Status?: MaintenanceWindowExecutionStatus; - /** - * @public - *

The details explaining the status. Not available for all status values.

- */ - StatusDetails?: string; - /** - * @public - *

The time the maintenance window started running.

- */ - StartTime?: Date; - /** - * @public - *

The time the maintenance window finished running.

- */ - EndTime?: Date; -} -/** - * @public - */ -export interface GetMaintenanceWindowExecutionTaskRequest { - /** - * @public - *

The ID of the maintenance window execution that includes the task.

- */ - WindowExecutionId: string | undefined; - /** - * @public - *

The ID of the specific task execution in the maintenance window task that should be - * retrieved.

- */ - TaskId: string | undefined; -} -/** - * @public - */ -export interface GetMaintenanceWindowExecutionTaskResult { - /** - * @public - *

The ID of the maintenance window execution that includes the task.

- */ - WindowExecutionId?: string; - /** - * @public - *

The ID of the specific task execution in the maintenance window task that was - * retrieved.

- */ - TaskExecutionId?: string; - /** - * @public - *

The Amazon Resource Name (ARN) of the task that ran.

- */ - TaskArn?: string; - /** - * @public - *

The role that was assumed when running the task.

- */ - ServiceRole?: string; - /** - * @public - *

The type of task that was run.

- */ - Type?: MaintenanceWindowTaskType; - /** - * @public - *

The parameters passed to the task when it was run.

- * - *

- * TaskParameters has been deprecated. To specify parameters to pass to a task when it runs, - * instead use the Parameters option in the TaskInvocationParameters structure. For information - * about how Systems Manager handles these options for the supported maintenance window task - * types, see MaintenanceWindowTaskInvocationParameters.

- *
- *

The map has the following format:

- *
    - *
  • - *

    - * Key: string, between 1 and 255 characters

    - *
  • - *
  • - *

    - * Value: an array of strings, each between 1 and 255 characters

    - *
  • - *
- */ - TaskParameters?: Record[]; - /** - * @public - *

The priority of the task.

- */ - Priority?: number; - /** - * @public - *

The defined maximum number of task executions that could be run in parallel.

- */ - MaxConcurrency?: string; - /** - * @public - *

The defined maximum number of task execution errors allowed before scheduling of the task - * execution would have been stopped.

- */ - MaxErrors?: string; - /** - * @public - *

The status of the task.

- */ - Status?: MaintenanceWindowExecutionStatus; - /** - * @public - *

The details explaining the status. Not available for all status values.

- */ - StatusDetails?: string; - /** - * @public - *

The time the task execution started.

- */ - StartTime?: Date; - /** - * @public - *

The time the task execution completed.

- */ - EndTime?: Date; - /** - * @public - *

The details for the CloudWatch alarm you applied to your maintenance window - * task.

- */ - AlarmConfiguration?: AlarmConfiguration; - /** - * @public - *

The CloudWatch alarms that were invoked by the maintenance window task.

- */ - TriggeredAlarms?: AlarmStateInformation[]; -} -/** - * @public - */ -export interface GetMaintenanceWindowExecutionTaskInvocationRequest { - /** - * @public - *

The ID of the maintenance window execution for which the task is a part.

- */ - WindowExecutionId: string | undefined; - /** - * @public - *

The ID of the specific task in the maintenance window task that should be retrieved.

- */ - TaskId: string | undefined; - /** - * @public - *

The invocation ID to retrieve.

- */ - InvocationId: string | undefined; -} -/** - * @public - */ -export interface GetMaintenanceWindowExecutionTaskInvocationResult { - /** - * @public - *

The maintenance window execution ID.

- */ - WindowExecutionId?: string; - /** - * @public - *

The task execution ID.

- */ - TaskExecutionId?: string; - /** - * @public - *

The invocation ID.

- */ - InvocationId?: string; - /** - * @public - *

The execution ID.

- */ - ExecutionId?: string; - /** - * @public - *

Retrieves the task type for a maintenance window.

- */ - TaskType?: MaintenanceWindowTaskType; - /** - * @public - *

The parameters used at the time that the task ran.

- */ - Parameters?: string; - /** - * @public - *

The task status for an invocation.

- */ - Status?: MaintenanceWindowExecutionStatus; - /** - * @public - *

The details explaining the status. Details are only available for certain status - * values.

- */ - StatusDetails?: string; - /** - * @public - *

The time that the task started running on the target.

- */ - StartTime?: Date; - /** - * @public - *

The time that the task finished running on the target.

- */ - EndTime?: Date; - /** - * @public - *

User-provided value to be included in any Amazon CloudWatch Events or Amazon EventBridge - * events raised while running tasks for these targets in this maintenance window.

- */ - OwnerInformation?: string; - /** - * @public - *

The maintenance window target ID.

- */ - WindowTargetId?: string; -} -/** - * @public - */ -export interface GetMaintenanceWindowTaskRequest { - /** - * @public - *

The maintenance window ID that includes the task to retrieve.

- */ - WindowId: string | undefined; - /** - * @public - *

The maintenance window task ID to retrieve.

- */ - WindowTaskId: string | undefined; -} -/** - * @public - *

The parameters for an AUTOMATION task type.

- */ -export interface MaintenanceWindowAutomationParameters { - /** - * @public - *

The version of an Automation runbook to use during task execution.

- */ - DocumentVersion?: string; - /** - * @public - *

The parameters for the AUTOMATION task.

- *

For information about specifying and updating task parameters, see RegisterTaskWithMaintenanceWindow and UpdateMaintenanceWindowTask.

- * - *

- * LoggingInfo has been deprecated. To specify an Amazon Simple Storage Service (Amazon S3) bucket to contain logs, instead use the - * OutputS3BucketName and OutputS3KeyPrefix options in the TaskInvocationParameters structure. - * For information about how Amazon Web Services Systems Manager handles these options for the supported maintenance - * window task types, see MaintenanceWindowTaskInvocationParameters.

- *

- * TaskParameters has been deprecated. To specify parameters to pass to a task when it runs, - * instead use the Parameters option in the TaskInvocationParameters structure. For information - * about how Systems Manager handles these options for the supported maintenance window task - * types, see MaintenanceWindowTaskInvocationParameters.

- *

For AUTOMATION task types, Amazon Web Services Systems Manager ignores any values specified for these - * parameters.

- *
- */ - Parameters?: Record; -} -/** - * @public - *

The parameters for a LAMBDA task type.

- *

For information about specifying and updating task parameters, see RegisterTaskWithMaintenanceWindow and UpdateMaintenanceWindowTask.

- * - *

- * LoggingInfo has been deprecated. To specify an Amazon Simple Storage Service (Amazon S3) bucket to contain logs, instead use the - * OutputS3BucketName and OutputS3KeyPrefix options in the TaskInvocationParameters structure. - * For information about how Amazon Web Services Systems Manager handles these options for the supported maintenance - * window task types, see MaintenanceWindowTaskInvocationParameters.

- *

- * TaskParameters has been deprecated. To specify parameters to pass to a task when it runs, - * instead use the Parameters option in the TaskInvocationParameters structure. For information - * about how Systems Manager handles these options for the supported maintenance window task - * types, see MaintenanceWindowTaskInvocationParameters.

- *

For Lambda tasks, Systems Manager ignores any values specified for TaskParameters and - * LoggingInfo.

- *
- */ -export interface MaintenanceWindowLambdaParameters { - /** - * @public - *

Pass client-specific information to the Lambda function that you are - * invoking. You can then process the client information in your Lambda function as you - * choose through the context variable.

- */ - ClientContext?: string; - /** - * @public - *

(Optional) Specify an Lambda function version or alias name. If you specify a - * function version, the operation uses the qualified function Amazon Resource Name (ARN) to invoke - * a specific Lambda function. If you specify an alias name, the operation uses the - * alias ARN to invoke the Lambda function version to which the alias points.

- */ - Qualifier?: string; - /** - * @public - *

JSON to provide to your Lambda function as input.

- */ - Payload?: Uint8Array; -} -/** - * @public - * @enum - */ -export declare const NotificationEvent: { - readonly ALL: "All"; - readonly CANCELLED: "Cancelled"; - readonly FAILED: "Failed"; - readonly IN_PROGRESS: "InProgress"; - readonly SUCCESS: "Success"; - readonly TIMED_OUT: "TimedOut"; -}; -/** - * @public - */ -export type NotificationEvent = (typeof NotificationEvent)[keyof typeof NotificationEvent]; -/** - * @public - * @enum - */ -export declare const NotificationType: { - readonly Command: "Command"; - readonly Invocation: "Invocation"; -}; -/** - * @public - */ -export type NotificationType = (typeof NotificationType)[keyof typeof NotificationType]; -/** - * @public - *

Configurations for sending notifications.

- */ -export interface NotificationConfig { - /** - * @public - *

An Amazon Resource Name (ARN) for an Amazon Simple Notification Service (Amazon SNS) topic. Run - * Command pushes notifications about command status changes to this topic.

- */ - NotificationArn?: string; - /** - * @public - *

The different events for which you can receive notifications. To learn more about these - * events, see Monitoring Systems Manager status - * changes using Amazon SNS notifications in the - * Amazon Web Services Systems Manager User Guide.

- */ - NotificationEvents?: NotificationEvent[]; - /** - * @public - *

The type of notification.

- *
    - *
  • - *

    - * Command: Receive notification when the status of a command changes.

    - *
  • - *
  • - *

    - * Invocation: For commands sent to multiple managed nodes, receive notification - * on a per-node basis when the status of a command changes.

    - *
  • - *
- */ - NotificationType?: NotificationType; -} -/** - * @public - *

The parameters for a RUN_COMMAND task type.

- *

For information about specifying and updating task parameters, see RegisterTaskWithMaintenanceWindow and UpdateMaintenanceWindowTask.

- * - *

- * LoggingInfo has been deprecated. To specify an Amazon Simple Storage Service (Amazon S3) bucket to contain logs, instead use the - * OutputS3BucketName and OutputS3KeyPrefix options in the TaskInvocationParameters structure. - * For information about how Amazon Web Services Systems Manager handles these options for the supported maintenance - * window task types, see MaintenanceWindowTaskInvocationParameters.

- *

- * TaskParameters has been deprecated. To specify parameters to pass to a task when it runs, - * instead use the Parameters option in the TaskInvocationParameters structure. For information - * about how Systems Manager handles these options for the supported maintenance window task - * types, see MaintenanceWindowTaskInvocationParameters.

- *

For RUN_COMMAND tasks, Systems Manager uses specified values for - * TaskParameters and LoggingInfo only if no values are specified for - * TaskInvocationParameters.

- *
- */ -export interface MaintenanceWindowRunCommandParameters { - /** - * @public - *

Information about the commands to run.

- */ - Comment?: string; - /** - * @public - *

Configuration options for sending command output to Amazon CloudWatch Logs.

- */ - CloudWatchOutputConfig?: CloudWatchOutputConfig; - /** - * @public - *

The SHA-256 or SHA-1 hash created by the system when the document was created. SHA-1 hashes - * have been deprecated.

- */ - DocumentHash?: string; - /** - * @public - *

SHA-256 or SHA-1. SHA-1 hashes have been deprecated.

- */ - DocumentHashType?: DocumentHashType; - /** - * @public - *

The Amazon Web Services Systems Manager document (SSM document) version to use in the request. You can specify - * $DEFAULT, $LATEST, or a specific version number. If you run commands - * by using the Amazon Web Services CLI, then you must escape the first two options by using a backslash. If you - * specify a version number, then you don't need to use the backslash. For example:

- *

- * --document-version "\$DEFAULT" - *

- *

- * --document-version "\$LATEST" - *

- *

- * --document-version "3" - *

- */ - DocumentVersion?: string; - /** - * @public - *

Configurations for sending notifications about command status changes on a per-managed node - * basis.

- */ - NotificationConfig?: NotificationConfig; - /** - * @public - *

The name of the Amazon Simple Storage Service (Amazon S3) bucket.

- */ - OutputS3BucketName?: string; - /** - * @public - *

The S3 bucket subfolder.

- */ - OutputS3KeyPrefix?: string; - /** - * @public - *

The parameters for the RUN_COMMAND task execution.

- */ - Parameters?: Record; - /** - * @public - *

The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) service role to use to publish Amazon Simple Notification Service - * (Amazon SNS) notifications for maintenance window Run Command tasks.

- */ - ServiceRoleArn?: string; - /** - * @public - *

If this time is reached and the command hasn't already started running, it doesn't - * run.

- */ - TimeoutSeconds?: number; -} -/** - * @public - *

The parameters for a STEP_FUNCTIONS task.

- *

For information about specifying and updating task parameters, see RegisterTaskWithMaintenanceWindow and UpdateMaintenanceWindowTask.

- * - *

- * LoggingInfo has been deprecated. To specify an Amazon Simple Storage Service (Amazon S3) bucket to contain logs, instead use the - * OutputS3BucketName and OutputS3KeyPrefix options in the TaskInvocationParameters structure. - * For information about how Amazon Web Services Systems Manager handles these options for the supported maintenance - * window task types, see MaintenanceWindowTaskInvocationParameters.

- *

- * TaskParameters has been deprecated. To specify parameters to pass to a task when it runs, - * instead use the Parameters option in the TaskInvocationParameters structure. For information - * about how Systems Manager handles these options for the supported maintenance window task - * types, see MaintenanceWindowTaskInvocationParameters.

- *

For Step Functions tasks, Systems Manager ignores any values specified for - * TaskParameters and LoggingInfo.

- *
- */ -export interface MaintenanceWindowStepFunctionsParameters { - /** - * @public - *

The inputs for the STEP_FUNCTIONS task.

- */ - Input?: string; - /** - * @public - *

The name of the STEP_FUNCTIONS task.

- */ - Name?: string; -} -/** - * @public - *

The parameters for task execution.

- */ -export interface MaintenanceWindowTaskInvocationParameters { - /** - * @public - *

The parameters for a RUN_COMMAND task type.

- */ - RunCommand?: MaintenanceWindowRunCommandParameters; - /** - * @public - *

The parameters for an AUTOMATION task type.

- */ - Automation?: MaintenanceWindowAutomationParameters; - /** - * @public - *

The parameters for a STEP_FUNCTIONS task type.

- */ - StepFunctions?: MaintenanceWindowStepFunctionsParameters; - /** - * @public - *

The parameters for a LAMBDA task type.

- */ - Lambda?: MaintenanceWindowLambdaParameters; -} -/** - * @public - */ -export interface GetMaintenanceWindowTaskResult { - /** - * @public - *

The retrieved maintenance window ID.

- */ - WindowId?: string; - /** - * @public - *

The retrieved maintenance window task ID.

- */ - WindowTaskId?: string; - /** - * @public - *

The targets where the task should run.

- */ - Targets?: Target[]; - /** - * @public - *

The resource that the task used during execution. For RUN_COMMAND and - * AUTOMATION task types, the value of TaskArn is the SSM document - * name/ARN. For LAMBDA tasks, the value is the function name/ARN. For - * STEP_FUNCTIONS tasks, the value is the state machine ARN.

- */ - TaskArn?: string; - /** - * @public - *

The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) service role to use to publish Amazon Simple Notification Service - * (Amazon SNS) notifications for maintenance window Run Command tasks.

- */ - ServiceRoleArn?: string; - /** - * @public - *

The type of task to run.

- */ - TaskType?: MaintenanceWindowTaskType; - /** - * @public - *

The parameters to pass to the task when it runs.

- * - *

- * TaskParameters has been deprecated. To specify parameters to pass to a task when it runs, - * instead use the Parameters option in the TaskInvocationParameters structure. For information - * about how Systems Manager handles these options for the supported maintenance window task - * types, see MaintenanceWindowTaskInvocationParameters.

- *
- */ - TaskParameters?: Record; - /** - * @public - *

The parameters to pass to the task when it runs.

- */ - TaskInvocationParameters?: MaintenanceWindowTaskInvocationParameters; - /** - * @public - *

The priority of the task when it runs. The lower the number, the higher the priority. Tasks - * that have the same priority are scheduled in parallel.

- */ - Priority?: number; - /** - * @public - *

The maximum number of targets allowed to run this task in parallel.

- * - *

For maintenance window tasks without a target specified, you can't supply a value for this - * option. Instead, the system inserts a placeholder value of 1, which may be reported - * in the response to this command. This value doesn't affect the running of your task and can be - * ignored.

- *
- */ - MaxConcurrency?: string; - /** - * @public - *

The maximum number of errors allowed before the task stops being scheduled.

- * - *

For maintenance window tasks without a target specified, you can't supply a value for this - * option. Instead, the system inserts a placeholder value of 1, which may be reported - * in the response to this command. This value doesn't affect the running of your task and can be - * ignored.

- *
- */ - MaxErrors?: string; - /** - * @public - *

The location in Amazon Simple Storage Service (Amazon S3) where the task results are - * logged.

- * - *

- * LoggingInfo has been deprecated. To specify an Amazon Simple Storage Service (Amazon S3) bucket to contain logs, instead use the - * OutputS3BucketName and OutputS3KeyPrefix options in the TaskInvocationParameters structure. - * For information about how Amazon Web Services Systems Manager handles these options for the supported maintenance - * window task types, see MaintenanceWindowTaskInvocationParameters.

- *
- */ - LoggingInfo?: LoggingInfo; - /** - * @public - *

The retrieved task name.

- */ - Name?: string; - /** - * @public - *

The retrieved task description.

- */ - Description?: string; - /** - * @public - *

The action to take on tasks when the maintenance window cutoff time is reached. - * CONTINUE_TASK means that tasks continue to run. For Automation, Lambda, Step Functions tasks, CANCEL_TASK means that currently - * running task invocations continue, but no new task invocations are started. For Run Command - * tasks, CANCEL_TASK means the system attempts to stop the task by sending a - * CancelCommand operation.

- */ - CutoffBehavior?: MaintenanceWindowTaskCutoffBehavior; - /** - * @public - *

The details for the CloudWatch alarm you applied to your maintenance window - * task.

- */ - AlarmConfiguration?: AlarmConfiguration; -} -/** - * @public - */ -export interface GetOpsItemRequest { - /** - * @public - *

The ID of the OpsItem that you want to get.

- */ - OpsItemId: string | undefined; - /** - * @public - *

The OpsItem Amazon Resource Name (ARN).

- */ - OpsItemArn?: string; -} -/** - * @public - *

Operations engineers and IT professionals use Amazon Web Services Systems Manager OpsCenter to view, investigate, and - * remediate operational work items (OpsItems) impacting the performance and health of their Amazon Web Services - * resources. OpsCenter is integrated with Amazon EventBridge and Amazon CloudWatch. This - * means you can configure these services to automatically create an OpsItem in OpsCenter when a - * CloudWatch alarm enters the ALARM state or when EventBridge processes an event from - * any Amazon Web Services service that publishes events. Configuring Amazon CloudWatch alarms and EventBridge events to automatically create OpsItems allows you to quickly diagnose and remediate - * issues with Amazon Web Services resources from a single console.

- *

To help you diagnose issues, each OpsItem includes contextually relevant information such as - * the name and ID of the Amazon Web Services resource that generated the OpsItem, alarm or event details, alarm - * history, and an alarm timeline graph. For the Amazon Web Services resource, OpsCenter aggregates information - * from Config, CloudTrail logs, and EventBridge, so you don't have - * to navigate across multiple console pages during your investigation. For more information, see - * OpsCenter in the Amazon Web Services Systems Manager User Guide.

- */ -export interface OpsItem { - /** - * @public - *

The ARN of the Amazon Web Services account that created the OpsItem.

- */ - CreatedBy?: string; - /** - * @public - *

The type of OpsItem. Systems Manager supports the following types of OpsItems:

- *
    - *
  • - *

    - * /aws/issue - *

    - *

    This type of OpsItem is used for default OpsItems created by OpsCenter.

    - *
  • - *
  • - *

    - * /aws/changerequest - *

    - *

    This type of OpsItem is used by Change Manager for reviewing and approving or rejecting change - * requests.

    - *
  • - *
  • - *

    - * /aws/insight - *

    - *

    This type of OpsItem is used by OpsCenter for aggregating and reporting on duplicate - * OpsItems.

    - *
  • - *
- */ - OpsItemType?: string; - /** - * @public - *

The date and time the OpsItem was created.

- */ - CreatedTime?: Date; - /** - * @public - *

The OpsItem description.

- */ - Description?: string; - /** - * @public - *

The ARN of the Amazon Web Services account that last updated the OpsItem.

- */ - LastModifiedBy?: string; - /** - * @public - *

The date and time the OpsItem was last updated.

- */ - LastModifiedTime?: Date; - /** - * @public - *

The Amazon Resource Name (ARN) of an Amazon Simple Notification Service (Amazon SNS) topic where - * notifications are sent when this OpsItem is edited or changed.

- */ - Notifications?: OpsItemNotification[]; - /** - * @public - *

The importance of this OpsItem in relation to other OpsItems in the system.

- */ - Priority?: number; - /** - * @public - *

One or more OpsItems that share something in common with the current OpsItem. For example, - * related OpsItems can include OpsItems with similar error messages, impacted resources, or - * statuses for the impacted resource.

- */ - RelatedOpsItems?: RelatedOpsItem[]; - /** - * @public - *

The OpsItem status. Status can be Open, In Progress, or - * Resolved. For more information, see Editing OpsItem details in the Amazon Web Services Systems Manager User Guide.

- */ - Status?: OpsItemStatus; - /** - * @public - *

The ID of the OpsItem.

- */ - OpsItemId?: string; - /** - * @public - *

The version of this OpsItem. Each time the OpsItem is edited the version number increments - * by one.

- */ - Version?: string; - /** - * @public - *

A short heading that describes the nature of the OpsItem and the impacted resource.

- */ - Title?: string; - /** - * @public - *

The origin of the OpsItem, such as Amazon EC2 or Systems Manager. The impacted resource is a subset of - * source.

- */ - Source?: string; - /** - * @public - *

Operational data is custom data that provides useful reference details about the OpsItem. - * For example, you can specify log files, error strings, license keys, troubleshooting tips, or - * other relevant data. You enter operational data as key-value pairs. The key has a maximum length - * of 128 characters. The value has a maximum size of 20 KB.

- * - *

Operational data keys can't begin with the following: - * amazon, aws, amzn, ssm, - * /amazon, /aws, /amzn, /ssm.

- *
- *

You can choose to make the data searchable by other users in the account or you can restrict - * search access. Searchable data means that all users with access to the OpsItem Overview page (as - * provided by the DescribeOpsItems API operation) can view and search on the - * specified data. Operational data that isn't searchable is only viewable by users who have access - * to the OpsItem (as provided by the GetOpsItem API operation).

- *

Use the /aws/resources key in OperationalData to specify a related resource in - * the request. Use the /aws/automations key in OperationalData to associate an - * Automation runbook with the OpsItem. To view Amazon Web Services CLI example commands that use these keys, see - * Creating OpsItems - * manually in the Amazon Web Services Systems Manager User Guide.

- */ - OperationalData?: Record; - /** - * @public - *

An OpsItem category. Category options include: Availability, Cost, Performance, Recovery, - * Security.

- */ - Category?: string; - /** - * @public - *

The severity of the OpsItem. Severity options range from 1 to 4.

- */ - Severity?: string; - /** - * @public - *

The time a runbook workflow started. Currently reported only for the OpsItem type - * /aws/changerequest.

- */ - ActualStartTime?: Date; - /** - * @public - *

The time a runbook workflow ended. Currently reported only for the OpsItem type - * /aws/changerequest.

- */ - ActualEndTime?: Date; - /** - * @public - *

The time specified in a change request for a runbook workflow to start. Currently supported - * only for the OpsItem type /aws/changerequest.

- */ - PlannedStartTime?: Date; - /** - * @public - *

The time specified in a change request for a runbook workflow to end. Currently supported - * only for the OpsItem type /aws/changerequest.

- */ - PlannedEndTime?: Date; - /** - * @public - *

The OpsItem Amazon Resource Name (ARN).

- */ - OpsItemArn?: string; -} -/** - * @public - */ -export interface GetOpsItemResponse { - /** - * @public - *

The OpsItem.

- */ - OpsItem?: OpsItem; -} -/** - * @public - */ -export interface GetOpsMetadataRequest { - /** - * @public - *

The Amazon Resource Name (ARN) of an OpsMetadata Object to view.

- */ - OpsMetadataArn: string | undefined; - /** - * @public - *

The maximum number of items to return for this call. The call also returns a token that you - * can specify in a subsequent call to get the next set of results.

- */ - MaxResults?: number; - /** - * @public - *

A token to start the list. Use this token to get the next set of results.

- */ - NextToken?: string; -} -/** - * @public - */ -export interface GetOpsMetadataResult { - /** - * @public - *

The resource ID of the Application Manager application.

- */ - ResourceId?: string; - /** - * @public - *

OpsMetadata for an Application Manager application.

- */ - Metadata?: Record; - /** - * @public - *

The token for the next set of items to return. Use this token to get the next set of - * results.

- */ - NextToken?: string; -} -/** - * @public - * @enum - */ -export declare const OpsFilterOperatorType: { - readonly BEGIN_WITH: "BeginWith"; - readonly EQUAL: "Equal"; - readonly EXISTS: "Exists"; - readonly GREATER_THAN: "GreaterThan"; - readonly LESS_THAN: "LessThan"; - readonly NOT_EQUAL: "NotEqual"; -}; -/** - * @public - */ -export type OpsFilterOperatorType = (typeof OpsFilterOperatorType)[keyof typeof OpsFilterOperatorType]; -/** - * @public - *

A filter for viewing OpsData summaries.

- */ -export interface OpsFilter { - /** - * @public - *

The name of the filter.

- */ - Key: string | undefined; - /** - * @public - *

The filter value.

- */ - Values: string[] | undefined; - /** - * @public - *

The type of filter.

- */ - Type?: OpsFilterOperatorType; -} -/** - * @public - *

The OpsItem data type to return.

- */ -export interface OpsResultAttribute { - /** - * @public - *

Name of the data type. Valid value: AWS:OpsItem, - * AWS:EC2InstanceInformation, AWS:OpsItemTrendline, or - * AWS:ComplianceSummary.

- */ - TypeName: string | undefined; -} -/** - * @public - *

The OpsData summary.

- */ -export interface OpsEntityItem { - /** - * @public - *

The time the OpsData was captured.

- */ - CaptureTime?: string; - /** - * @public - *

The details of an OpsData summary.

- */ - Content?: Record[]; -} -/** - * @public - *

The result of the query.

- */ -export interface OpsEntity { - /** - * @public - *

The query ID.

- */ - Id?: string; - /** - * @public - *

The data returned by the query.

- */ - Data?: Record; -} -/** - * @public - */ -export interface GetOpsSummaryResult { - /** - * @public - *

The list of aggregated details and filtered OpsData.

- */ - Entities?: OpsEntity[]; - /** - * @public - *

The token for the next set of items to return. Use this token to get the next set of - * results.

- */ - NextToken?: string; -} -/** - * @public - */ -export interface GetParameterRequest { - /** - * @public - *

The name of the parameter you want to query.

- *

To query by parameter label, use "Name": "name:label". To query by parameter - * version, use "Name": "name:version".

- */ - Name: string | undefined; - /** - * @public - *

Return decrypted values for secure string parameters. This flag is ignored for - * String and StringList parameter types.

- */ - WithDecryption?: boolean; -} -/** - * @public - *

An Amazon Web Services Systems Manager parameter in Parameter Store.

- */ -export interface Parameter { - /** - * @public - *

The name of the parameter.

- */ - Name?: string; - /** - * @public - *

The type of parameter. Valid values include the following: String, - * StringList, and SecureString.

- * - *

If type is StringList, the system returns a comma-separated string with no - * spaces between commas in the Value field.

- *
- */ - Type?: ParameterType; - /** - * @public - *

The parameter value.

- * - *

If type is StringList, the system returns a comma-separated string with no - * spaces between commas in the Value field.

- *
- */ - Value?: string; - /** - * @public - *

The parameter version.

- */ - Version?: number; - /** - * @public - *

Either the version number or the label used to retrieve the parameter value. Specify - * selectors by using one of the following formats:

- *

parameter_name:version

- *

parameter_name:label

- */ - Selector?: string; - /** - * @public - *

Applies to parameters that reference information in other Amazon Web Services services. - * SourceResult is the raw result or response from the source.

- */ - SourceResult?: string; - /** - * @public - *

Date the parameter was last changed or updated and the parameter version was created.

- */ - LastModifiedDate?: Date; - /** - * @public - *

The Amazon Resource Name (ARN) of the parameter.

- */ - ARN?: string; - /** - * @public - *

The data type of the parameter, such as text or aws:ec2:image. The - * default is text.

- */ - DataType?: string; -} -/** - * @public - */ -export interface GetParameterResult { - /** - * @public - *

Information about a parameter.

- */ - Parameter?: Parameter; -} -/** - * @public - *

The query key ID isn't valid.

- */ -export declare class InvalidKeyId extends __BaseException { - readonly name: "InvalidKeyId"; - readonly $fault: "client"; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

The specified parameter version wasn't found. Verify the parameter name and version, and try - * again.

- */ -export declare class ParameterVersionNotFound extends __BaseException { - readonly name: "ParameterVersionNotFound"; - readonly $fault: "client"; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - */ -export interface GetParameterHistoryRequest { - /** - * @public - *

The name of the parameter for which you want to review history.

- */ - Name: string | undefined; - /** - * @public - *

Return decrypted values for secure string parameters. This flag is ignored for - * String and StringList parameter types.

- */ - WithDecryption?: boolean; - /** - * @public - *

The maximum number of items to return for this call. The call also returns a token that you - * can specify in a subsequent call to get the next set of results.

- */ - MaxResults?: number; - /** - * @public - *

The token for the next set of items to return. (You received this token from a previous - * call.)

- */ - NextToken?: string; -} -/** - * @public - *

Information about parameter usage.

- */ -export interface ParameterHistory { - /** - * @public - *

The name of the parameter.

- */ - Name?: string; - /** - * @public - *

The type of parameter used.

- */ - Type?: ParameterType; - /** - * @public - *

The ID of the query key used for this parameter.

- */ - KeyId?: string; - /** - * @public - *

Date the parameter was last changed or updated.

- */ - LastModifiedDate?: Date; - /** - * @public - *

Amazon Resource Name (ARN) of the Amazon Web Services user who last changed the parameter.

- */ - LastModifiedUser?: string; - /** - * @public - *

Information about the parameter.

- */ - Description?: string; - /** - * @public - *

The parameter value.

- */ - Value?: string; - /** - * @public - *

Parameter names can include the following letters and symbols.

- *

a-zA-Z0-9_.-

- */ - AllowedPattern?: string; - /** - * @public - *

The parameter version.

- */ - Version?: number; - /** - * @public - *

Labels assigned to the parameter version.

- */ - Labels?: string[]; - /** - * @public - *

The parameter tier.

- */ - Tier?: ParameterTier; - /** - * @public - *

Information about the policies assigned to a parameter.

- *

- * Assigning parameter - * policies in the Amazon Web Services Systems Manager User Guide.

- */ - Policies?: ParameterInlinePolicy[]; - /** - * @public - *

The data type of the parameter, such as text or aws:ec2:image. The - * default is text.

- */ - DataType?: string; -} -/** - * @public - */ -export interface GetParameterHistoryResult { - /** - * @public - *

A list of parameters returned by the request.

- */ - Parameters?: ParameterHistory[]; - /** - * @public - *

The token to use when requesting the next set of items. If there are no additional items to - * return, the string is empty.

- */ - NextToken?: string; -} -/** - * @public - */ -export interface GetParametersRequest { - /** - * @public - *

Names of the parameters for which you want to query information.

- *

To query by parameter label, use "Name": "name:label". To query by parameter - * version, use "Name": "name:version".

- */ - Names: string[] | undefined; - /** - * @public - *

Return decrypted secure string value. Return decrypted values for secure string parameters. - * This flag is ignored for String and StringList parameter types.

- */ - WithDecryption?: boolean; -} -/** - * @public - */ -export interface GetParametersResult { - /** - * @public - *

A list of details for a parameter.

- */ - Parameters?: Parameter[]; - /** - * @public - *

A list of parameters that aren't formatted correctly or don't run during an - * execution.

- */ - InvalidParameters?: string[]; -} -/** - * @public - */ -export interface GetParametersByPathRequest { - /** - * @public - *

The hierarchy for the parameter. Hierarchies start with a forward slash (/). The hierarchy - * is the parameter name except the last part of the parameter. For the API call to succeed, the - * last part of the parameter name can't be in the path. A parameter name hierarchy can have a - * maximum of 15 levels. Here is an example of a hierarchy: - * /Finance/Prod/IAD/WinServ2016/license33 - *

- */ - Path: string | undefined; - /** - * @public - *

Retrieve all parameters within a hierarchy.

- * - *

If a user has access to a path, then the user can access all levels of that path. For - * example, if a user has permission to access path /a, then the user can also access - * /a/b. Even if a user has explicitly been denied access in IAM for - * parameter /a/b, they can still call the GetParametersByPath API operation - * recursively for /a and view /a/b.

- *
- */ - Recursive?: boolean; - /** - * @public - *

Filters to limit the request results.

- * - *

The following Key values are supported for GetParametersByPath: - * Type, KeyId, and Label.

- *

The following Key values aren't supported for - * GetParametersByPath: tag, DataType, Name, - * Path, and Tier.

- *
- */ - ParameterFilters?: ParameterStringFilter[]; - /** - * @public - *

Retrieve all parameters in a hierarchy with their value decrypted.

- */ - WithDecryption?: boolean; - /** - * @public - *

The maximum number of items to return for this call. The call also returns a token that you - * can specify in a subsequent call to get the next set of results.

- */ - MaxResults?: number; - /** - * @public - *

A token to start the list. Use this token to get the next set of results.

- */ - NextToken?: string; -} -/** - * @public - */ -export interface GetParametersByPathResult { - /** - * @public - *

A list of parameters found in the specified hierarchy.

- */ - Parameters?: Parameter[]; - /** - * @public - *

The token for the next set of items to return. Use this token to get the next set of - * results.

- */ - NextToken?: string; -} -/** - * @public - */ -export interface GetPatchBaselineRequest { - /** - * @public - *

The ID of the patch baseline to retrieve.

- * - *

To retrieve information about an Amazon Web Services managed patch baseline, specify the full Amazon - * Resource Name (ARN) of the baseline. For example, for the baseline - * AWS-AmazonLinuxDefaultPatchBaseline, specify - * arn:aws:ssm:us-east-2:733109147000:patchbaseline/pb-0e392de35e7c563b7 instead of - * pb-0e392de35e7c563b7.

- *
- */ - BaselineId: string | undefined; -} -/** - * @public - */ -export interface GetPatchBaselineResult { - /** - * @public - *

The ID of the retrieved patch baseline.

- */ - BaselineId?: string; - /** - * @public - *

The name of the patch baseline.

- */ - Name?: string; - /** - * @public - *

Returns the operating system specified for the patch baseline.

- */ - OperatingSystem?: OperatingSystem; - /** - * @public - *

A set of global filters used to exclude patches from the baseline.

- */ - GlobalFilters?: PatchFilterGroup; - /** - * @public - *

A set of rules used to include patches in the baseline.

- */ - ApprovalRules?: PatchRuleGroup; - /** - * @public - *

A list of explicitly approved patches for the baseline.

- */ - ApprovedPatches?: string[]; - /** - * @public - *

Returns the specified compliance severity level for approved patches in the patch - * baseline.

- */ - ApprovedPatchesComplianceLevel?: PatchComplianceLevel; - /** - * @public - *

Indicates whether the list of approved patches includes non-security updates that should be - * applied to the managed nodes. The default value is false. Applies to Linux managed - * nodes only.

- */ - ApprovedPatchesEnableNonSecurity?: boolean; - /** - * @public - *

A list of explicitly rejected patches for the baseline.

- */ - RejectedPatches?: string[]; - /** - * @public - *

The action specified to take on patches included in the RejectedPatches list. A - * patch can be allowed only if it is a dependency of another package, or blocked entirely along - * with packages that include it as a dependency.

- */ - RejectedPatchesAction?: PatchAction; - /** - * @public - *

Patch groups included in the patch baseline.

- */ - PatchGroups?: string[]; - /** - * @public - *

The date the patch baseline was created.

- */ - CreatedDate?: Date; - /** - * @public - *

The date the patch baseline was last modified.

- */ - ModifiedDate?: Date; - /** - * @public - *

A description of the patch baseline.

- */ - Description?: string; - /** - * @public - *

Information about the patches to use to update the managed nodes, including target operating - * systems and source repositories. Applies to Linux managed nodes only.

- */ - Sources?: PatchSource[]; -} -/** - * @public - */ -export interface GetPatchBaselineForPatchGroupRequest { - /** - * @public - *

The name of the patch group whose patch baseline should be retrieved.

- */ - PatchGroup: string | undefined; - /** - * @public - *

Returns the operating system rule specified for patch groups using the patch - * baseline.

- */ - OperatingSystem?: OperatingSystem; -} -/** - * @public - */ -export interface GetPatchBaselineForPatchGroupResult { - /** - * @public - *

The ID of the patch baseline that should be used for the patch group.

- */ - BaselineId?: string; - /** - * @public - *

The name of the patch group.

- */ - PatchGroup?: string; - /** - * @public - *

The operating system rule specified for patch groups using the patch baseline.

- */ - OperatingSystem?: OperatingSystem; -} -/** - * @public - */ -export interface GetResourcePoliciesRequest { - /** - * @public - *

Amazon Resource Name (ARN) of the resource to which the policies are attached.

- */ - ResourceArn: string | undefined; - /** - * @public - *

A token to start the list. Use this token to get the next set of results.

- */ - NextToken?: string; - /** - * @public - *

The maximum number of items to return for this call. The call also returns a token that you - * can specify in a subsequent call to get the next set of results.

- */ - MaxResults?: number; -} -/** - * @public - *

A resource policy helps you to define the IAM entity (for example, an - * Amazon Web Services account) that can manage your Systems Manager resources. Currently, OpsItemGroup is the - * only resource that supports Systems Manager resource policies. The resource policy for - * OpsItemGroup enables Amazon Web Services accounts to view and interact with OpsCenter operational - * work items (OpsItems).

- */ -export interface GetResourcePoliciesResponseEntry { - /** - * @public - *

A policy ID.

- */ - PolicyId?: string; - /** - * @public - *

ID of the current policy version. The hash helps to prevent a situation where multiple users - * attempt to overwrite a policy. You must provide this hash when updating or deleting a - * policy.

- */ - PolicyHash?: string; - /** - * @public - *

A resource policy helps you to define the IAM entity (for example, an - * Amazon Web Services account) that can manage your Systems Manager resources. Currently, OpsItemGroup is the - * only resource that supports Systems Manager resource policies. The resource policy for - * OpsItemGroup enables Amazon Web Services accounts to view and interact with OpsCenter operational - * work items (OpsItems).

- */ - Policy?: string; -} -/** - * @public - */ -export interface GetResourcePoliciesResponse { - /** - * @public - *

The token for the next set of items to return. Use this token to get the next set of - * results.

- */ - NextToken?: string; - /** - * @public - *

An array of the Policy object.

- */ - Policies?: GetResourcePoliciesResponseEntry[]; -} -/** - * @public - *

The request body of the GetServiceSetting API operation.

- */ -export interface GetServiceSettingRequest { - /** - * @public - *

The ID of the service setting to get. The setting ID can be one of the following.

- *
    - *
  • - *

    - * /ssm/managed-instance/default-ec2-instance-management-role - *

    - *
  • - *
  • - *

    - * /ssm/automation/customer-script-log-destination - *

    - *
  • - *
  • - *

    - * /ssm/automation/customer-script-log-group-name - *

    - *
  • - *
  • - *

    - * /ssm/documents/console/public-sharing-permission - *

    - *
  • - *
  • - *

    - * /ssm/managed-instance/activation-tier - *

    - *
  • - *
  • - *

    - * /ssm/opsinsights/opscenter - *

    - *
  • - *
  • - *

    - * /ssm/parameter-store/default-parameter-tier - *

    - *
  • - *
  • - *

    - * /ssm/parameter-store/high-throughput-enabled - *

    - *
  • - *
- */ - SettingId: string | undefined; -} -/** - * @public - *

The service setting data structure.

- *

- * ServiceSetting is an account-level setting for an Amazon Web Services service. This setting - * defines how a user interacts with or uses a service or a feature of a service. For example, if an - * Amazon Web Services service charges money to the account based on feature or service usage, then the Amazon Web Services - * service team might create a default setting of "false". This means the user can't use this - * feature unless they change the setting to "true" and intentionally opt in for a paid - * feature.

- *

Services map a SettingId object to a setting value. Amazon Web Services services teams define - * the default value for a SettingId. You can't create a new SettingId, - * but you can overwrite the default value if you have the ssm:UpdateServiceSetting - * permission for the setting. Use the UpdateServiceSetting API operation to - * change the default setting. Or, use the ResetServiceSetting to change the value - * back to the original value defined by the Amazon Web Services service team.

- */ -export interface ServiceSetting { - /** - * @public - *

The ID of the service setting.

- */ - SettingId?: string; - /** - * @public - *

The value of the service setting.

- */ - SettingValue?: string; - /** - * @public - *

The last time the service setting was modified.

- */ - LastModifiedDate?: Date; - /** - * @public - *

The ARN of the last modified user. This field is populated only if the setting value was - * overwritten.

- */ - LastModifiedUser?: string; - /** - * @public - *

The ARN of the service setting.

- */ - ARN?: string; - /** - * @public - *

The status of the service setting. The value can be Default, Customized or - * PendingUpdate.

- *
    - *
  • - *

    Default: The current setting uses a default value provisioned by the Amazon Web Services service - * team.

    - *
  • - *
  • - *

    Customized: The current setting use a custom value specified by the customer.

    - *
  • - *
  • - *

    PendingUpdate: The current setting uses a default or custom value, but a setting change - * request is pending approval.

    - *
  • - *
- */ - Status?: string; -} -/** - * @public - *

The query result body of the GetServiceSetting API operation.

- */ -export interface GetServiceSettingResult { - /** - * @public - *

The query result of the current service setting.

- */ - ServiceSetting?: ServiceSetting; -} -/** - * @public - *

The specified service setting wasn't found. Either the service name or the setting hasn't - * been provisioned by the Amazon Web Services service team.

- */ -export declare class ServiceSettingNotFound extends __BaseException { - readonly name: "ServiceSettingNotFound"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - */ -export interface LabelParameterVersionRequest { - /** - * @public - *

The parameter name on which you want to attach one or more labels.

- */ - Name: string | undefined; - /** - * @public - *

The specific version of the parameter on which you want to attach one or more labels. If no - * version is specified, the system attaches the label to the latest version.

- */ - ParameterVersion?: number; - /** - * @public - *

One or more labels to attach to the specified parameter version.

- */ - Labels: string[] | undefined; -} -/** - * @public - */ -export interface LabelParameterVersionResult { - /** - * @public - *

The label doesn't meet the requirements. For information about parameter label requirements, - * see Labeling parameters - * in the Amazon Web Services Systems Manager User Guide.

- */ - InvalidLabels?: string[]; - /** - * @public - *

The version of the parameter that has been labeled.

- */ - ParameterVersion?: number; -} -/** - * @public - *

A parameter version can have a maximum of ten labels.

- */ -export declare class ParameterVersionLabelLimitExceeded extends __BaseException { - readonly name: "ParameterVersionLabelLimitExceeded"; - readonly $fault: "client"; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - * @enum - */ -export declare const AssociationFilterKey: { - readonly AssociationId: "AssociationId"; - readonly AssociationName: "AssociationName"; - readonly InstanceId: "InstanceId"; - readonly LastExecutedAfter: "LastExecutedAfter"; - readonly LastExecutedBefore: "LastExecutedBefore"; - readonly Name: "Name"; - readonly ResourceGroupName: "ResourceGroupName"; - readonly Status: "AssociationStatusName"; -}; -/** - * @public - */ -export type AssociationFilterKey = (typeof AssociationFilterKey)[keyof typeof AssociationFilterKey]; -/** - * @public - *

Describes a filter.

- */ -export interface AssociationFilter { - /** - * @public - *

The name of the filter.

- * - *

- * InstanceId has been deprecated.

- *
- */ - key: AssociationFilterKey | undefined; - /** - * @public - *

The filter value.

- */ - value: string | undefined; -} -/** - * @public - */ -export interface ListAssociationsRequest { - /** - * @public - *

One or more filters. Use a filter to return a more specific list of results.

- * - *

Filtering associations using the InstanceID attribute only returns legacy - * associations created using the InstanceID attribute. Associations targeting the - * managed node that are part of the Target Attributes ResourceGroup or - * Tags aren't returned.

- *
- */ - AssociationFilterList?: AssociationFilter[]; - /** - * @public - *

The maximum number of items to return for this call. The call also returns a token that you - * can specify in a subsequent call to get the next set of results.

- */ - MaxResults?: number; - /** - * @public - *

The token for the next set of items to return. (You received this token from a previous - * call.)

- */ - NextToken?: string; -} -/** - * @public - *

Describes an association of a Amazon Web Services Systems Manager document (SSM document) and a managed node.

- */ -export interface Association { - /** - * @public - *

The name of the SSM document.

- */ - Name?: string; - /** - * @public - *

The managed node ID.

- */ - InstanceId?: string; - /** - * @public - *

The ID created by the system when you create an association. An association is a binding - * between a document and a set of targets with a schedule.

- */ - AssociationId?: string; - /** - * @public - *

The association version.

- */ - AssociationVersion?: string; - /** - * @public - *

The version of the document used in the association. If you change a document version for a - * State Manager association, Systems Manager immediately runs the association unless you previously specifed - * the apply-only-at-cron-interval parameter.

- * - *

State Manager doesn't support running associations that use a new version of a document if - * that document is shared from another account. State Manager always runs the default - * version of a document if shared from another account, even though the Systems Manager console shows that a - * new version was processed. If you want to run an association using a new version of a document - * shared form another account, you must set the document version to default.

- *
- */ - DocumentVersion?: string; - /** - * @public - *

The managed nodes targeted by the request to create an association. You can target all - * managed nodes in an Amazon Web Services account by specifying the InstanceIds key with a value of - * *.

- */ - Targets?: Target[]; - /** - * @public - *

The date on which the association was last run.

- */ - LastExecutionDate?: Date; - /** - * @public - *

Information about the association.

- */ - Overview?: AssociationOverview; - /** - * @public - *

A cron expression that specifies a schedule when the association runs. The schedule runs in - * Coordinated Universal Time (UTC).

- */ - ScheduleExpression?: string; - /** - * @public - *

The association name.

- */ - AssociationName?: string; - /** - * @public - *

Number of days to wait after the scheduled day to run an association.

- */ - ScheduleOffset?: number; - /** - * @public - *

A key-value mapping of document parameters to target resources. Both Targets and TargetMaps - * can't be specified together.

- */ - TargetMaps?: Record[]; -} -/** - * @public - */ -export interface ListAssociationsResult { - /** - * @public - *

The associations.

- */ - Associations?: Association[]; - /** - * @public - *

The token to use when requesting the next set of items. If there are no additional items to - * return, the string is empty.

- */ - NextToken?: string; -} -/** - * @public - */ -export interface ListAssociationVersionsRequest { - /** - * @public - *

The association ID for which you want to view all versions.

- */ - AssociationId: string | undefined; - /** - * @public - *

The maximum number of items to return for this call. The call also returns a token that you - * can specify in a subsequent call to get the next set of results.

- */ - MaxResults?: number; - /** - * @public - *

A token to start the list. Use this token to get the next set of results.

- */ - NextToken?: string; -} -/** - * @public - *

Information about the association version.

- */ -export interface AssociationVersionInfo { - /** - * @public - *

The ID created by the system when the association was created.

- */ - AssociationId?: string; - /** - * @public - *

The association version.

- */ - AssociationVersion?: string; - /** - * @public - *

The date the association version was created.

- */ - CreatedDate?: Date; - /** - * @public - *

The name specified when the association was created.

- */ - Name?: string; - /** - * @public - *

The version of an Amazon Web Services Systems Manager document (SSM document) used when the association version was - * created.

- */ - DocumentVersion?: string; - /** - * @public - *

Parameters specified when the association version was created.

- */ - Parameters?: Record; - /** - * @public - *

The targets specified for the association when the association version was created.

- */ - Targets?: Target[]; - /** - * @public - *

The cron or rate schedule specified for the association when the association version was - * created.

- */ - ScheduleExpression?: string; - /** - * @public - *

The location in Amazon S3 specified for the association when the association version - * was created.

- */ - OutputLocation?: InstanceAssociationOutputLocation; - /** - * @public - *

The name specified for the association version when the association version was - * created.

- */ - AssociationName?: string; - /** - * @public - *

The number of errors that are allowed before the system stops sending requests to run the - * association on additional targets. You can specify either an absolute number of errors, for - * example 10, or a percentage of the target set, for example 10%. If you specify 3, for example, - * the system stops sending requests when the fourth error is received. If you specify 0, then the - * system stops sending requests after the first error is returned. If you run an association on 50 - * managed nodes and set MaxError to 10%, then the system stops sending the request - * when the sixth error is received.

- *

Executions that are already running an association when MaxErrors is reached - * are allowed to complete, but some of these executions may fail as well. If you need to ensure - * that there won't be more than max-errors failed executions, set MaxConcurrency to 1 - * so that executions proceed one at a time.

- */ - MaxErrors?: string; - /** - * @public - *

The maximum number of targets allowed to run the association at the same time. You can - * specify a number, for example 10, or a percentage of the target set, for example 10%. The default - * value is 100%, which means all targets run the association at the same time.

- *

If a new managed node starts and attempts to run an association while Systems Manager is running - * MaxConcurrency associations, the association is allowed to run. During the next - * association interval, the new managed node will process its association within the limit - * specified for MaxConcurrency.

- */ - MaxConcurrency?: string; - /** - * @public - *

The severity level that is assigned to the association.

- */ - ComplianceSeverity?: AssociationComplianceSeverity; - /** - * @public - *

The mode for generating association compliance. You can specify AUTO or - * MANUAL. In AUTO mode, the system uses the status of the association - * execution to determine the compliance status. If the association execution runs successfully, - * then the association is COMPLIANT. If the association execution doesn't run - * successfully, the association is NON-COMPLIANT.

- *

In MANUAL mode, you must specify the AssociationId as a parameter - * for the PutComplianceItems API operation. In this case, compliance data isn't - * managed by State Manager, a capability of Amazon Web Services Systems Manager. It is managed by your direct call to the - * PutComplianceItems API operation.

- *

By default, all associations use AUTO mode.

- */ - SyncCompliance?: AssociationSyncCompliance; - /** - * @public - *

By default, when you create a new associations, the system runs it immediately after it is - * created and then according to the schedule you specified. Specify this option if you don't want - * an association to run immediately after you create it. This parameter isn't supported for rate - * expressions.

- */ - ApplyOnlyAtCronInterval?: boolean; - /** - * @public - *

The names or Amazon Resource Names (ARNs) of the Change Calendar type documents your - * associations are gated under. The associations for this version only run when that Change - * Calendar is open. For more information, see Amazon Web Services Systems Manager Change - * Calendar.

- */ - CalendarNames?: string[]; - /** - * @public - *

The combination of Amazon Web Services Regions and Amazon Web Services accounts where you wanted to run the association - * when this association version was created.

- */ - TargetLocations?: TargetLocation[]; - /** - * @public - *

Number of days to wait after the scheduled day to run an association.

- */ - ScheduleOffset?: number; - /** - * @public - *

A key-value mapping of document parameters to target resources. Both Targets and TargetMaps - * can't be specified together.

- */ - TargetMaps?: Record[]; -} -/** - * @public - */ -export interface ListAssociationVersionsResult { - /** - * @public - *

Information about all versions of the association for the specified association ID.

- */ - AssociationVersions?: AssociationVersionInfo[]; - /** - * @public - *

The token for the next set of items to return. Use this token to get the next set of - * results.

- */ - NextToken?: string; -} -/** - * @public - * @enum - */ -export declare const CommandFilterKey: { - readonly DOCUMENT_NAME: "DocumentName"; - readonly EXECUTION_STAGE: "ExecutionStage"; - readonly INVOKED_AFTER: "InvokedAfter"; - readonly INVOKED_BEFORE: "InvokedBefore"; - readonly STATUS: "Status"; -}; -/** - * @public - */ -export type CommandFilterKey = (typeof CommandFilterKey)[keyof typeof CommandFilterKey]; -/** - * @public - *

Describes a command filter.

- * - *

A managed node ID can't be specified when a command status is Pending because - * the command hasn't run on the node yet.

- *
- */ -export interface CommandFilter { - /** - * @public - *

The name of the filter.

- * - *

The ExecutionStage filter can't be used with the - * ListCommandInvocations operation, only with ListCommands.

- *
- */ - key: CommandFilterKey | undefined; - /** - * @public - *

The filter value. Valid values for each filter key are as follows:

- *
    - *
  • - *

    - * InvokedAfter: Specify a timestamp to limit your results. - * For example, specify 2021-07-07T00:00:00Z to see a list of command executions - * occurring July 7, 2021, and later.

    - *
  • - *
  • - *

    - * InvokedBefore: Specify a timestamp to limit your results. - * For example, specify 2021-07-07T00:00:00Z to see a list of command executions from - * before July 7, 2021.

    - *
  • - *
  • - *

    - * Status: Specify a valid command status to see a list of - * all command executions with that status. The status choices depend on the API you call.

    - *

    The status values you can specify for ListCommands are:

    - *
      - *
    • - *

      - * Pending - *

      - *
    • - *
    • - *

      - * InProgress - *

      - *
    • - *
    • - *

      - * Success - *

      - *
    • - *
    • - *

      - * Cancelled - *

      - *
    • - *
    • - *

      - * Failed - *

      - *
    • - *
    • - *

      - * TimedOut (this includes both Delivery and Execution time outs)

      - *
    • - *
    • - *

      - * AccessDenied - *

      - *
    • - *
    • - *

      - * DeliveryTimedOut - *

      - *
    • - *
    • - *

      - * ExecutionTimedOut - *

      - *
    • - *
    • - *

      - * Incomplete - *

      - *
    • - *
    • - *

      - * NoInstancesInTag - *

      - *
    • - *
    • - *

      - * LimitExceeded - *

      - *
    • - *
    - *

    The status values you can specify for ListCommandInvocations are:

    - *
      - *
    • - *

      - * Pending - *

      - *
    • - *
    • - *

      - * InProgress - *

      - *
    • - *
    • - *

      - * Delayed - *

      - *
    • - *
    • - *

      - * Success - *

      - *
    • - *
    • - *

      - * Cancelled - *

      - *
    • - *
    • - *

      - * Failed - *

      - *
    • - *
    • - *

      - * TimedOut (this includes both Delivery and Execution time outs)

      - *
    • - *
    • - *

      - * AccessDenied - *

      - *
    • - *
    • - *

      - * DeliveryTimedOut - *

      - *
    • - *
    • - *

      - * ExecutionTimedOut - *

      - *
    • - *
    • - *

      - * Undeliverable - *

      - *
    • - *
    • - *

      - * InvalidPlatform - *

      - *
    • - *
    • - *

      - * Terminated - *

      - *
    • - *
    - *
  • - *
  • - *

    - * DocumentName: Specify name of the Amazon Web Services Systems Manager document (SSM - * document) for which you want to see command execution results. For example, specify - * AWS-RunPatchBaseline to see command executions that used this SSM document to - * perform security patching operations on managed nodes.

    - *
  • - *
  • - *

    - * ExecutionStage: Specify one of the following values - * (ListCommands operations only):

    - *
      - *
    • - *

      - * Executing: Returns a list of command executions that are currently still - * running.

      - *
    • - *
    • - *

      - * Complete: Returns a list of command executions that have already completed. - *

      - *
    • - *
    - *
  • - *
- */ - value: string | undefined; -} -/** - * @public - */ -export interface ListCommandInvocationsRequest { - /** - * @public - *

(Optional) The invocations for a specific command ID.

- */ - CommandId?: string; - /** - * @public - *

(Optional) The command execution details for a specific managed node ID.

- */ - InstanceId?: string; - /** - * @public - *

(Optional) The maximum number of items to return for this call. The call also returns a - * token that you can specify in a subsequent call to get the next set of results.

- */ - MaxResults?: number; - /** - * @public - *

(Optional) The token for the next set of items to return. (You received this token from a - * previous call.)

- */ - NextToken?: string; - /** - * @public - *

(Optional) One or more filters. Use a filter to return a more specific list of - * results.

- */ - Filters?: CommandFilter[]; - /** - * @public - *

(Optional) If set this returns the response of the command executions and any command - * output. The default value is false.

- */ - Details?: boolean; -} -/** - * @public - * @enum - */ -export declare const CommandPluginStatus: { - readonly CANCELLED: "Cancelled"; - readonly FAILED: "Failed"; - readonly IN_PROGRESS: "InProgress"; - readonly PENDING: "Pending"; - readonly SUCCESS: "Success"; - readonly TIMED_OUT: "TimedOut"; -}; -/** - * @public - */ -export type CommandPluginStatus = (typeof CommandPluginStatus)[keyof typeof CommandPluginStatus]; -/** - * @public - *

Describes plugin details.

- */ -export interface CommandPlugin { - /** - * @public - *

The name of the plugin. Must be one of the following: aws:updateAgent, - * aws:domainjoin, aws:applications, - * aws:runPowerShellScript, aws:psmodule, aws:cloudWatch, - * aws:runShellScript, or aws:updateSSMAgent.

- */ - Name?: string; - /** - * @public - *

The status of this plugin. You can run a document with multiple plugins.

- */ - Status?: CommandPluginStatus; - /** - * @public - *

A detailed status of the plugin execution. StatusDetails includes more - * information than Status because it includes states resulting from error and concurrency control - * parameters. StatusDetails can show different results than Status. For more information about - * these statuses, see Understanding command - * statuses in the Amazon Web Services Systems Manager User Guide. StatusDetails can be one of the - * following values:

- *
    - *
  • - *

    Pending: The command hasn't been sent to the managed node.

    - *
  • - *
  • - *

    In Progress: The command has been sent to the managed node but hasn't reached a terminal - * state.

    - *
  • - *
  • - *

    Success: The execution of the command or plugin was successfully completed. This is a - * terminal state.

    - *
  • - *
  • - *

    Delivery Timed Out: The command wasn't delivered to the managed node before the delivery - * timeout expired. Delivery timeouts don't count against the parent command's - * MaxErrors limit, but they do contribute to whether the parent command status is - * Success or Incomplete. This is a terminal state.

    - *
  • - *
  • - *

    Execution Timed Out: Command execution started on the managed node, but the execution - * wasn't complete before the execution timeout expired. Execution timeouts count against the - * MaxErrors limit of the parent command. This is a terminal state.

    - *
  • - *
  • - *

    Failed: The command wasn't successful on the managed node. For a plugin, this indicates - * that the result code wasn't zero. For a command invocation, this indicates that the result code - * for one or more plugins wasn't zero. Invocation failures count against the MaxErrors limit of - * the parent command. This is a terminal state.

    - *
  • - *
  • - *

    Cancelled: The command was terminated before it was completed. This is a terminal - * state.

    - *
  • - *
  • - *

    Undeliverable: The command can't be delivered to the managed node. The managed node might - * not exist, or it might not be responding. Undeliverable invocations don't count against the - * parent command's MaxErrors limit, and they don't contribute to whether the parent command - * status is Success or Incomplete. This is a terminal state.

    - *
  • - *
  • - *

    Terminated: The parent command exceeded its MaxErrors limit and subsequent command - * invocations were canceled by the system. This is a terminal state.

    - *
  • - *
- */ - StatusDetails?: string; - /** - * @public - *

A numeric response code generated after running the plugin.

- */ - ResponseCode?: number; - /** - * @public - *

The time the plugin started running.

- */ - ResponseStartDateTime?: Date; - /** - * @public - *

The time the plugin stopped running. Could stop prematurely if, for example, a cancel - * command was sent.

- */ - ResponseFinishDateTime?: Date; - /** - * @public - *

Output of the plugin execution.

- */ - Output?: string; - /** - * @public - *

The URL for the complete text written by the plugin to stdout in Amazon S3. If the - * S3 bucket for the command wasn't specified, then this string is empty.

- */ - StandardOutputUrl?: string; - /** - * @public - *

The URL for the complete text written by the plugin to stderr. If execution isn't yet - * complete, then this string is empty.

- */ - StandardErrorUrl?: string; - /** - * @public - *

(Deprecated) You can no longer specify this parameter. The system ignores it. Instead, - * Amazon Web Services Systems Manager automatically determines the S3 bucket region.

- */ - OutputS3Region?: string; - /** - * @public - *

The S3 bucket where the responses to the command executions should be stored. This was - * requested when issuing the command. For example, in the following response:

- *

- * doc-example-bucket/ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix/i-02573cafcfEXAMPLE/awsrunShellScript - *

- *

- * doc-example-bucket is the name of the S3 bucket;

- *

- * ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix is the name of the S3 prefix;

- *

- * i-02573cafcfEXAMPLE is the managed node ID;

- *

- * awsrunShellScript is the name of the plugin.

- */ - OutputS3BucketName?: string; - /** - * @public - *

The S3 directory path inside the bucket where the responses to the command executions should - * be stored. This was requested when issuing the command. For example, in the following - * response:

- *

- * doc-example-bucket/ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix/i-02573cafcfEXAMPLE/awsrunShellScript - *

- *

- * doc-example-bucket is the name of the S3 bucket;

- *

- * ab19cb99-a030-46dd-9dfc-8eSAMPLEPre-Fix is the name of the S3 prefix;

- *

- * i-02573cafcfEXAMPLE is the managed node ID;

- *

- * awsrunShellScript is the name of the plugin.

- */ - OutputS3KeyPrefix?: string; -} -/** - * @public - *

An invocation is a copy of a command sent to a specific managed node. A command can apply to - * one or more managed nodes. A command invocation applies to one managed node. For example, if a - * user runs SendCommand against three managed nodes, then a command invocation is - * created for each requested managed node ID. A command invocation returns status and detail - * information about a command you ran.

- */ -export interface CommandInvocation { - /** - * @public - *

The command against which this invocation was requested.

- */ - CommandId?: string; - /** - * @public - *

The managed node ID in which this invocation was requested.

- */ - InstanceId?: string; - /** - * @public - *

The fully qualified host name of the managed node.

- */ - InstanceName?: string; - /** - * @public - *

User-specified information about the command, such as a brief description of what the - * command should do.

- */ - Comment?: string; - /** - * @public - *

The document name that was requested for execution.

- */ - DocumentName?: string; - /** - * @public - *

The Systems Manager document (SSM document) version.

- */ - DocumentVersion?: string; - /** - * @public - *

The time and date the request was sent to this managed node.

- */ - RequestedDateTime?: Date; - /** - * @public - *

Whether or not the invocation succeeded, failed, or is pending.

- */ - Status?: CommandInvocationStatus; - /** - * @public - *

A detailed status of the command execution for each invocation (each managed node targeted - * by the command). StatusDetails includes more information than Status because it includes states - * resulting from error and concurrency control parameters. StatusDetails can show different results - * than Status. For more information about these statuses, see Understanding command - * statuses in the Amazon Web Services Systems Manager User Guide. StatusDetails can be one of the - * following values:

- *
    - *
  • - *

    Pending: The command hasn't been sent to the managed node.

    - *
  • - *
  • - *

    In Progress: The command has been sent to the managed node but hasn't reached a terminal - * state.

    - *
  • - *
  • - *

    Success: The execution of the command or plugin was successfully completed. This is a - * terminal state.

    - *
  • - *
  • - *

    Delivery Timed Out: The command wasn't delivered to the managed node before the delivery - * timeout expired. Delivery timeouts don't count against the parent command's - * MaxErrors limit, but they do contribute to whether the parent command status is - * Success or Incomplete. This is a terminal state.

    - *
  • - *
  • - *

    Execution Timed Out: Command execution started on the managed node, but the execution - * wasn't complete before the execution timeout expired. Execution timeouts count against the - * MaxErrors limit of the parent command. This is a terminal state.

    - *
  • - *
  • - *

    Failed: The command wasn't successful on the managed node. For a plugin, this indicates - * that the result code wasn't zero. For a command invocation, this indicates that the result code - * for one or more plugins wasn't zero. Invocation failures count against the - * MaxErrors limit of the parent command. This is a terminal state.

    - *
  • - *
  • - *

    Cancelled: The command was terminated before it was completed. This is a terminal - * state.

    - *
  • - *
  • - *

    Undeliverable: The command can't be delivered to the managed node. The managed node might - * not exist or might not be responding. Undeliverable invocations don't count against the parent - * command's MaxErrors limit and don't contribute to whether the parent command status is Success - * or Incomplete. This is a terminal state.

    - *
  • - *
  • - *

    Terminated: The parent command exceeded its MaxErrors limit and subsequent command - * invocations were canceled by the system. This is a terminal state.

    - *
  • - *
  • - *

    Delayed: The system attempted to send the command to the managed node but wasn't - * successful. The system retries again.

    - *
  • - *
- */ - StatusDetails?: string; - /** - * @public - *

Gets the trace output sent by the agent.

- */ - TraceOutput?: string; - /** - * @public - *

The URL to the plugin's StdOut file in Amazon Simple Storage Service (Amazon S3), if the S3 - * bucket was defined for the parent command. For an invocation, StandardOutputUrl is - * populated if there is just one plugin defined for the command, and the S3 bucket was defined for - * the command.

- */ - StandardOutputUrl?: string; - /** - * @public - *

The URL to the plugin's StdErr file in Amazon Simple Storage Service (Amazon S3), if the S3 - * bucket was defined for the parent command. For an invocation, StandardErrorUrl is - * populated if there is just one plugin defined for the command, and the S3 bucket was defined for - * the command.

- */ - StandardErrorUrl?: string; - /** - * @public - *

Plugins processed by the command.

- */ - CommandPlugins?: CommandPlugin[]; - /** - * @public - *

The Identity and Access Management (IAM) service role that Run Command, a capability - * of Amazon Web Services Systems Manager, uses to act on your behalf when sending notifications about command status changes - * on a per managed node basis.

- */ - ServiceRole?: string; - /** - * @public - *

Configurations for sending notifications about command status changes on a per managed node - * basis.

- */ - NotificationConfig?: NotificationConfig; - /** - * @public - *

Amazon CloudWatch Logs information where you want Amazon Web Services Systems Manager to send the command - * output.

- */ - CloudWatchOutputConfig?: CloudWatchOutputConfig; -} -/** - * @public - */ -export interface ListCommandInvocationsResult { - /** - * @public - *

(Optional) A list of all invocations.

- */ - CommandInvocations?: CommandInvocation[]; - /** - * @public - *

(Optional) The token for the next set of items to return. (You received this token from a - * previous call.)

- */ - NextToken?: string; -} -/** - * @public - */ -export interface ListCommandsRequest { - /** - * @public - *

(Optional) If provided, lists only the specified command.

- */ - CommandId?: string; - /** - * @public - *

(Optional) Lists commands issued against this managed node ID.

- * - *

You can't specify a managed node ID in the same command that you specify - * Status = Pending. This is because the command hasn't reached the - * managed node yet.

- *
- */ - InstanceId?: string; - /** - * @public - *

(Optional) The maximum number of items to return for this call. The call also returns a - * token that you can specify in a subsequent call to get the next set of results.

- */ - MaxResults?: number; - /** - * @public - *

(Optional) The token for the next set of items to return. (You received this token from a - * previous call.)

- */ - NextToken?: string; - /** - * @public - *

(Optional) One or more filters. Use a filter to return a more specific list of results. - *

- */ - Filters?: CommandFilter[]; -} -/** - * @public - * @enum - */ -export declare const CommandStatus: { - readonly CANCELLED: "Cancelled"; - readonly CANCELLING: "Cancelling"; - readonly FAILED: "Failed"; - readonly IN_PROGRESS: "InProgress"; - readonly PENDING: "Pending"; - readonly SUCCESS: "Success"; - readonly TIMED_OUT: "TimedOut"; -}; -/** - * @public - */ -export type CommandStatus = (typeof CommandStatus)[keyof typeof CommandStatus]; -/** - * @public - *

Describes a command request.

- */ -export interface Command { - /** - * @public - *

A unique identifier for this command.

- */ - CommandId?: string; - /** - * @public - *

The name of the document requested for execution.

- */ - DocumentName?: string; - /** - * @public - *

The Systems Manager document (SSM document) version.

- */ - DocumentVersion?: string; - /** - * @public - *

User-specified information about the command, such as a brief description of what the - * command should do.

- */ - Comment?: string; - /** - * @public - *

If a command expires, it changes status to DeliveryTimedOut for all invocations - * that have the status InProgress, Pending, or Delayed. - * ExpiresAfter is calculated based on the total timeout for the overall command. For - * more information, see Understanding command timeout values in the - * Amazon Web Services Systems Manager User Guide.

- */ - ExpiresAfter?: Date; - /** - * @public - *

The parameter values to be inserted in the document when running the command.

- */ - Parameters?: Record; - /** - * @public - *

The managed node IDs against which this command was requested.

- */ - InstanceIds?: string[]; - /** - * @public - *

An array of search criteria that targets managed nodes using a Key,Value combination that - * you specify. Targets is required if you don't provide one or more managed node IDs in the - * call.

- */ - Targets?: Target[]; - /** - * @public - *

The date and time the command was requested.

- */ - RequestedDateTime?: Date; - /** - * @public - *

The status of the command.

- */ - Status?: CommandStatus; - /** - * @public - *

A detailed status of the command execution. StatusDetails includes more - * information than Status because it includes states resulting from error and - * concurrency control parameters. StatusDetails can show different results than - * Status. For more information about these statuses, see Understanding command - * statuses in the Amazon Web Services Systems Manager User Guide. StatusDetails can be one of the - * following values:

- *
    - *
  • - *

    Pending: The command hasn't been sent to any managed nodes.

    - *
  • - *
  • - *

    In Progress: The command has been sent to at least one managed node but hasn't reached a - * final state on all managed nodes.

    - *
  • - *
  • - *

    Success: The command successfully ran on all invocations. This is a terminal state.

    - *
  • - *
  • - *

    Delivery Timed Out: The value of MaxErrors or more command invocations shows a status of - * Delivery Timed Out. This is a terminal state.

    - *
  • - *
  • - *

    Execution Timed Out: The value of MaxErrors or more command invocations shows a status of - * Execution Timed Out. This is a terminal state.

    - *
  • - *
  • - *

    Failed: The value of MaxErrors or more command invocations shows a status of Failed. This - * is a terminal state.

    - *
  • - *
  • - *

    Incomplete: The command was attempted on all managed nodes and one or more invocations - * doesn't have a value of Success but not enough invocations failed for the status to be Failed. - * This is a terminal state.

    - *
  • - *
  • - *

    Cancelled: The command was terminated before it was completed. This is a terminal - * state.

    - *
  • - *
  • - *

    Rate Exceeded: The number of managed nodes targeted by the command exceeded the account - * limit for pending invocations. The system has canceled the command before running it on any - * managed node. This is a terminal state.

    - *
  • - *
  • - *

    Delayed: The system attempted to send the command to the managed node but wasn't - * successful. The system retries again.

    - *
  • - *
- */ - StatusDetails?: string; - /** - * @public - *

(Deprecated) You can no longer specify this parameter. The system ignores it. Instead, Systems Manager - * automatically determines the Amazon Web Services Region of the S3 bucket.

- */ - OutputS3Region?: string; - /** - * @public - *

The S3 bucket where the responses to the command executions should be stored. This was - * requested when issuing the command.

- */ - OutputS3BucketName?: string; - /** - * @public - *

The S3 directory path inside the bucket where the responses to the command executions should - * be stored. This was requested when issuing the command.

- */ - OutputS3KeyPrefix?: string; - /** - * @public - *

The maximum number of managed nodes that are allowed to run the command at the same time. - * You can specify a number of managed nodes, such as 10, or a percentage of nodes, such as 10%. The - * default value is 50. For more information about how to use MaxConcurrency, see - * Running - * commands using Systems Manager Run Command in the Amazon Web Services Systems Manager User Guide.

- */ - MaxConcurrency?: string; - /** - * @public - *

The maximum number of errors allowed before the system stops sending the command to - * additional targets. You can specify a number of errors, such as 10, or a percentage or errors, - * such as 10%. The default value is 0. For more information about how to use - * MaxErrors, see Running commands using Systems Manager Run - * Command in the Amazon Web Services Systems Manager User Guide.

- */ - MaxErrors?: string; - /** - * @public - *

The number of targets for the command.

- */ - TargetCount?: number; - /** - * @public - *

The number of targets for which the command invocation reached a terminal state. Terminal - * states include the following: Success, Failed, Execution Timed Out, Delivery Timed Out, - * Cancelled, Terminated, or Undeliverable.

- */ - CompletedCount?: number; - /** - * @public - *

The number of targets for which the status is Failed or Execution Timed Out.

- */ - ErrorCount?: number; - /** - * @public - *

The number of targets for which the status is Delivery Timed Out.

- */ - DeliveryTimedOutCount?: number; - /** - * @public - *

The Identity and Access Management (IAM) service role that Run Command, a capability - * of Amazon Web Services Systems Manager, uses to act on your behalf when sending notifications about command status changes. - *

- */ - ServiceRole?: string; - /** - * @public - *

Configurations for sending notifications about command status changes.

- */ - NotificationConfig?: NotificationConfig; - /** - * @public - *

Amazon CloudWatch Logs information where you want Amazon Web Services Systems Manager to send the command - * output.

- */ - CloudWatchOutputConfig?: CloudWatchOutputConfig; - /** - * @public - *

The TimeoutSeconds value specified for a command.

- */ - TimeoutSeconds?: number; - /** - * @public - *

The details for the CloudWatch alarm applied to your command.

- */ - AlarmConfiguration?: AlarmConfiguration; - /** - * @public - *

The CloudWatch alarm that was invoked by the command.

- */ - TriggeredAlarms?: AlarmStateInformation[]; -} -/** - * @public - */ -export interface ListCommandsResult { - /** - * @public - *

(Optional) The list of commands requested by the user.

- */ - Commands?: Command[]; - /** - * @public - *

(Optional) The token for the next set of items to return. (You received this token from a - * previous call.)

- */ - NextToken?: string; -} -/** - * @public - * @enum - */ -export declare const ComplianceQueryOperatorType: { - readonly BeginWith: "BEGIN_WITH"; - readonly Equal: "EQUAL"; - readonly GreaterThan: "GREATER_THAN"; - readonly LessThan: "LESS_THAN"; - readonly NotEqual: "NOT_EQUAL"; -}; -/** - * @public - */ -export type ComplianceQueryOperatorType = (typeof ComplianceQueryOperatorType)[keyof typeof ComplianceQueryOperatorType]; -/** - * @public - *

One or more filters. Use a filter to return a more specific list of results.

- */ -export interface ComplianceStringFilter { - /** - * @public - *

The name of the filter.

- */ - Key?: string; - /** - * @public - *

The value for which to search.

- */ - Values?: string[]; - /** - * @public - *

The type of comparison that should be performed for the value: Equal, NotEqual, BeginWith, - * LessThan, or GreaterThan.

- */ - Type?: ComplianceQueryOperatorType; -} -/** - * @public - */ -export interface ListComplianceItemsRequest { - /** - * @public - *

One or more compliance filters. Use a filter to return a more specific list of - * results.

- */ - Filters?: ComplianceStringFilter[]; - /** - * @public - *

The ID for the resources from which to get compliance information. Currently, you can only - * specify one resource ID.

- */ - ResourceIds?: string[]; - /** - * @public - *

The type of resource from which to get compliance information. Currently, the only supported - * resource type is ManagedInstance.

- */ - ResourceTypes?: string[]; - /** - * @public - *

A token to start the list. Use this token to get the next set of results.

- */ - NextToken?: string; - /** - * @public - *

The maximum number of items to return for this call. The call also returns a token that you - * can specify in a subsequent call to get the next set of results.

- */ - MaxResults?: number; -} -/** - * @public - *

A summary of the call execution that includes an execution ID, the type of execution (for - * example, Command), and the date/time of the execution using a datetime object that - * is saved in the following format: yyyy-MM-dd'T'HH:mm:ss'Z'.

- */ -export interface ComplianceExecutionSummary { - /** - * @public - *

The time the execution ran as a datetime object that is saved in the following format: - * yyyy-MM-dd'T'HH:mm:ss'Z'.

- */ - ExecutionTime: Date | undefined; - /** - * @public - *

An ID created by the system when PutComplianceItems was called. For example, - * CommandID is a valid execution ID. You can use this ID in subsequent calls.

- */ - ExecutionId?: string; - /** - * @public - *

The type of execution. For example, Command is a valid execution type.

- */ - ExecutionType?: string; -} -/** - * @public - * @enum - */ -export declare const ComplianceSeverity: { - readonly Critical: "CRITICAL"; - readonly High: "HIGH"; - readonly Informational: "INFORMATIONAL"; - readonly Low: "LOW"; - readonly Medium: "MEDIUM"; - readonly Unspecified: "UNSPECIFIED"; -}; -/** - * @public - */ -export type ComplianceSeverity = (typeof ComplianceSeverity)[keyof typeof ComplianceSeverity]; -/** - * @public - * @enum - */ -export declare const ComplianceStatus: { - readonly Compliant: "COMPLIANT"; - readonly NonCompliant: "NON_COMPLIANT"; -}; -/** - * @public - */ -export type ComplianceStatus = (typeof ComplianceStatus)[keyof typeof ComplianceStatus]; -/** - * @public - *

Information about the compliance as defined by the resource type. For example, for a patch - * resource type, Items includes information about the PatchSeverity, Classification, - * and so on.

- */ -export interface ComplianceItem { - /** - * @public - *

The compliance type. For example, Association (for a State Manager association), Patch, or - * Custom:string are all valid compliance types.

- */ - ComplianceType?: string; - /** - * @public - *

The type of resource. ManagedInstance is currently the only supported resource - * type.

- */ - ResourceType?: string; - /** - * @public - *

An ID for the resource. For a managed node, this is the node ID.

- */ - ResourceId?: string; - /** - * @public - *

An ID for the compliance item. For example, if the compliance item is a Windows patch, the - * ID could be the number of the KB article; for example: KB4010320.

- */ - Id?: string; - /** - * @public - *

A title for the compliance item. For example, if the compliance item is a Windows patch, the - * title could be the title of the KB article for the patch; for example: Security Update for Active - * Directory Federation Services.

- */ - Title?: string; - /** - * @public - *

The status of the compliance item. An item is either COMPLIANT, NON_COMPLIANT, or an empty - * string (for Windows patches that aren't applicable).

- */ - Status?: ComplianceStatus; - /** - * @public - *

The severity of the compliance status. Severity can be one of the following: Critical, High, - * Medium, Low, Informational, Unspecified.

- */ - Severity?: ComplianceSeverity; - /** - * @public - *

A summary for the compliance item. The summary includes an execution ID, the execution type - * (for example, command), and the execution time.

- */ - ExecutionSummary?: ComplianceExecutionSummary; - /** - * @public - *

A "Key": "Value" tag combination for the compliance item.

- */ - Details?: Record; -} -/** - * @public - */ -export interface ListComplianceItemsResult { - /** - * @public - *

A list of compliance information for the specified resource ID.

- */ - ComplianceItems?: ComplianceItem[]; - /** - * @public - *

The token for the next set of items to return. Use this token to get the next set of - * results.

- */ - NextToken?: string; -} -/** - * @public - */ -export interface ListComplianceSummariesRequest { - /** - * @public - *

One or more compliance or inventory filters. Use a filter to return a more specific list of - * results.

- */ - Filters?: ComplianceStringFilter[]; - /** - * @public - *

A token to start the list. Use this token to get the next set of results.

- */ - NextToken?: string; - /** - * @public - *

The maximum number of items to return for this call. Currently, you can specify null or 50. - * The call also returns a token that you can specify in a subsequent call to get the next set of - * results.

- */ - MaxResults?: number; -} -/** - * @public - *

The number of managed nodes found for each patch severity level defined in the request - * filter.

- */ -export interface SeveritySummary { - /** - * @public - *

The total number of resources or compliance items that have a severity level of - * Critical. Critical severity is determined by the organization that published the - * compliance items.

- */ - CriticalCount?: number; - /** - * @public - *

The total number of resources or compliance items that have a severity level of high. High - * severity is determined by the organization that published the compliance items.

- */ - HighCount?: number; - /** - * @public - *

The total number of resources or compliance items that have a severity level of medium. - * Medium severity is determined by the organization that published the compliance items.

- */ - MediumCount?: number; - /** - * @public - *

The total number of resources or compliance items that have a severity level of low. Low - * severity is determined by the organization that published the compliance items.

- */ - LowCount?: number; - /** - * @public - *

The total number of resources or compliance items that have a severity level of - * informational. Informational severity is determined by the organization that published the - * compliance items.

- */ - InformationalCount?: number; - /** - * @public - *

The total number of resources or compliance items that have a severity level of unspecified. - * Unspecified severity is determined by the organization that published the compliance - * items.

- */ - UnspecifiedCount?: number; -} -/** - * @public - *

A summary of resources that are compliant. The summary is organized according to the - * resource count for each compliance type.

- */ -export interface CompliantSummary { - /** - * @public - *

The total number of resources that are compliant.

- */ - CompliantCount?: number; - /** - * @public - *

A summary of the compliance severity by compliance type.

- */ - SeveritySummary?: SeveritySummary; -} -/** - * @public - *

A summary of resources that aren't compliant. The summary is organized according to resource - * type.

- */ -export interface NonCompliantSummary { - /** - * @public - *

The total number of compliance items that aren't compliant.

- */ - NonCompliantCount?: number; - /** - * @public - *

A summary of the non-compliance severity by compliance type

- */ - SeveritySummary?: SeveritySummary; -} -/** - * @public - *

A summary of compliance information by compliance type.

- */ -export interface ComplianceSummaryItem { - /** - * @public - *

The type of compliance item. For example, the compliance type can be Association, Patch, or - * Custom:string.

- */ - ComplianceType?: string; - /** - * @public - *

A list of COMPLIANT items for the specified compliance type.

- */ - CompliantSummary?: CompliantSummary; - /** - * @public - *

A list of NON_COMPLIANT items for the specified compliance type.

- */ - NonCompliantSummary?: NonCompliantSummary; -} -/** - * @public - */ -export interface ListComplianceSummariesResult { - /** - * @public - *

A list of compliant and non-compliant summary counts based on compliance types. For example, - * this call returns State Manager associations, patches, or custom compliance types according to - * the filter criteria that you specified.

- */ - ComplianceSummaryItems?: ComplianceSummaryItem[]; - /** - * @public - *

The token for the next set of items to return. Use this token to get the next set of - * results.

- */ - NextToken?: string; -} -/** - * @public - * @enum - */ -export declare const DocumentMetadataEnum: { - readonly DocumentReviews: "DocumentReviews"; -}; -/** - * @public - */ -export type DocumentMetadataEnum = (typeof DocumentMetadataEnum)[keyof typeof DocumentMetadataEnum]; -/** - * @public - */ -export interface ListDocumentMetadataHistoryRequest { - /** - * @public - *

The name of the change template.

- */ - Name: string | undefined; - /** - * @public - *

The version of the change template.

- */ - DocumentVersion?: string; - /** - * @public - *

The type of data for which details are being requested. Currently, the only supported value - * is DocumentReviews.

- */ - Metadata: DocumentMetadataEnum | undefined; - /** - * @public - *

The token for the next set of items to return. (You received this token from a previous - * call.)

- */ - NextToken?: string; - /** - * @public - *

The maximum number of items to return for this call. The call also returns a token that you - * can specify in a subsequent call to get the next set of results.

- */ - MaxResults?: number; -} -/** - * @public - * @enum - */ -export declare const DocumentReviewCommentType: { - readonly Comment: "Comment"; -}; -/** - * @public - */ -export type DocumentReviewCommentType = (typeof DocumentReviewCommentType)[keyof typeof DocumentReviewCommentType]; -/** - * @public - *

Information about comments added to a document review request.

- */ -export interface DocumentReviewCommentSource { - /** - * @public - *

The type of information added to a review request. Currently, only the value - * Comment is supported.

- */ - Type?: DocumentReviewCommentType; - /** - * @public - *

The content of a comment entered by a user who requests a review of a new document version, - * or who reviews the new version.

- */ - Content?: string; -} -/** - * @public - *

Information about a reviewer's response to a document review request.

- */ -export interface DocumentReviewerResponseSource { - /** - * @public - *

The date and time that a reviewer entered a response to a document review request.

- */ - CreateTime?: Date; - /** - * @public - *

The date and time that a reviewer last updated a response to a document review - * request.

- */ - UpdatedTime?: Date; - /** - * @public - *

The current review status of a new custom SSM document created by a member of your - * organization, or of the latest version of an existing SSM document.

- *

Only one version of a document can be in the APPROVED state at a time. When a new version is - * approved, the status of the previous version changes to REJECTED.

- *

Only one version of a document can be in review, or PENDING, at a time.

- */ - ReviewStatus?: ReviewStatus; - /** - * @public - *

The comment entered by a reviewer as part of their document review response.

- */ - Comment?: DocumentReviewCommentSource[]; - /** - * @public - *

The user in your organization assigned to review a document request.

- */ - Reviewer?: string; -} -/** - * @public - *

Details about the response to a document review request.

- */ -export interface DocumentMetadataResponseInfo { - /** - * @public - *

Details about a reviewer's response to a document review request.

- */ - ReviewerResponse?: DocumentReviewerResponseSource[]; -} -/** - * @public - */ -export interface ListDocumentMetadataHistoryResponse { - /** - * @public - *

The name of the change template.

- */ - Name?: string; - /** - * @public - *

The version of the change template.

- */ - DocumentVersion?: string; - /** - * @public - *

The user ID of the person in the organization who requested the review of the - * change template.

- */ - Author?: string; - /** - * @public - *

Information about the response to the change template approval request.

- */ - Metadata?: DocumentMetadataResponseInfo; - /** - * @public - *

The maximum number of items to return for this call. The call also returns a token that you - * can specify in a subsequent call to get the next set of results.

- */ - NextToken?: string; -} -/** - * @public - * @enum - */ -export declare const DocumentFilterKey: { - readonly DocumentType: "DocumentType"; - readonly Name: "Name"; - readonly Owner: "Owner"; - readonly PlatformTypes: "PlatformTypes"; -}; -/** - * @public - */ -export type DocumentFilterKey = (typeof DocumentFilterKey)[keyof typeof DocumentFilterKey]; -/** - * @public - *

This data type is deprecated. Instead, use DocumentKeyValuesFilter.

- */ -export interface DocumentFilter { - /** - * @public - *

The name of the filter.

- */ - key: DocumentFilterKey | undefined; - /** - * @public - *

The value of the filter.

- */ - value: string | undefined; -} -/** - * @public - *

One or more filters. Use a filter to return a more specific list of documents.

- *

For keys, you can specify one or more tags that have been applied to a document.

- *

You can also use Amazon Web Services-provided keys, some of which have specific allowed values. These keys - * and their associated values are as follows:

- *
- *
DocumentType
- *
- *
    - *
  • - *

    - * ApplicationConfiguration - *

    - *
  • - *
  • - *

    - * ApplicationConfigurationSchema - *

    - *
  • - *
  • - *

    - * Automation - *

    - *
  • - *
  • - *

    - * ChangeCalendar - *

    - *
  • - *
  • - *

    - * Command - *

    - *
  • - *
  • - *

    - * Package - *

    - *
  • - *
  • - *

    - * Policy - *

    - *
  • - *
  • - *

    - * Session - *

    - *
  • - *
- *
- *
Owner
- *
- *

Note that only one Owner can be specified in a request. For example: - * Key=Owner,Values=Self.

- *
    - *
  • - *

    - * Amazon - *

    - *
  • - *
  • - *

    - * Private - *

    - *
  • - *
  • - *

    - * Public - *

    - *
  • - *
  • - *

    - * Self - *

    - *
  • - *
  • - *

    - * ThirdParty - *

    - *
  • - *
- *
- *
PlatformTypes
- *
- *
    - *
  • - *

    - * Linux - *

    - *
  • - *
  • - *

    - * Windows - *

    - *
  • - *
- *
- *
- *

- * Name is another Amazon Web Services-provided key. If you use Name as a key, you - * can use a name prefix to return a list of documents. For example, in the Amazon Web Services CLI, to return a list - * of all documents that begin with Te, run the following command:

- *

- * aws ssm list-documents --filters Key=Name,Values=Te - *

- *

You can also use the TargetType Amazon Web Services-provided key. For a list of valid - * resource type values that can be used with this key, see Amazon Web Services resource and - * property types reference in the CloudFormation User Guide.

- *

If you specify more than two keys, only documents that are identified by all the tags are - * returned in the results. If you specify more than two values for a key, documents that are - * identified by any of the values are returned in the results.

- *

To specify a custom key-value pair, use the format - * Key=tag:tagName,Values=valueName.

- *

For example, if you created a key called region and are using the Amazon Web Services CLI to call the - * list-documents command:

- *

- * aws ssm list-documents --filters Key=tag:region,Values=east,west - * Key=Owner,Values=Self - *

- */ -export interface DocumentKeyValuesFilter { - /** - * @public - *

The name of the filter key.

- */ - Key?: string; - /** - * @public - *

The value for the filter key.

- */ - Values?: string[]; -} -/** - * @public - */ -export interface ListDocumentsRequest { - /** - * @public - *

This data type is deprecated. Instead, use Filters.

- */ - DocumentFilterList?: DocumentFilter[]; - /** - * @public - *

One or more DocumentKeyValuesFilter objects. Use a filter to return a more - * specific list of results. For keys, you can specify one or more key-value pair tags that have - * been applied to a document. Other valid keys include Owner, Name, - * PlatformTypes, DocumentType, and TargetType. For example, - * to return documents you own use Key=Owner,Values=Self. To specify a custom key-value - * pair, use the format Key=tag:tagName,Values=valueName.

- * - *

This API operation only supports filtering documents by using a single tag key and one or - * more tag values. For example: Key=tag:tagName,Values=valueName1,valueName2 - *

- *
- */ - Filters?: DocumentKeyValuesFilter[]; - /** - * @public - *

The maximum number of items to return for this call. The call also returns a token that you - * can specify in a subsequent call to get the next set of results.

- */ - MaxResults?: number; - /** - * @public - *

The token for the next set of items to return. (You received this token from a previous - * call.)

- */ - NextToken?: string; -} -/** - * @public - *

Describes the name of a SSM document.

- */ -export interface DocumentIdentifier { - /** - * @public - *

The name of the SSM document.

- */ - Name?: string; - /** - * @public - *

The date the SSM document was created.

- */ - CreatedDate?: Date; - /** - * @public - *

An optional field where you can specify a friendly name for the SSM document. This value can - * differ for each version of the document. If you want to update this value, see UpdateDocument.

- */ - DisplayName?: string; - /** - * @public - *

The Amazon Web Services user that created the document.

- */ - Owner?: string; - /** - * @public - *

An optional field specifying the version of the artifact associated with the document. For - * example, "Release 12, Update 6". This value is unique across all versions of a document, and - * can't be changed.

- */ - VersionName?: string; - /** - * @public - *

The operating system platform.

- */ - PlatformTypes?: PlatformType[]; - /** - * @public - *

The document version.

- */ - DocumentVersion?: string; - /** - * @public - *

The document type.

- */ - DocumentType?: DocumentType; - /** - * @public - *

The schema version.

- */ - SchemaVersion?: string; - /** - * @public - *

The document format, either JSON or YAML.

- */ - DocumentFormat?: DocumentFormat; - /** - * @public - *

The target type which defines the kinds of resources the document can run on. For example, - * /AWS::EC2::Instance. For a list of valid resource types, see Amazon Web Services resource and - * property types reference in the CloudFormation User Guide.

- */ - TargetType?: string; - /** - * @public - *

The tags, or metadata, that have been applied to the document.

- */ - Tags?: Tag[]; - /** - * @public - *

A list of SSM documents required by a document. For example, an - * ApplicationConfiguration document requires an - * ApplicationConfigurationSchema document.

- */ - Requires?: DocumentRequires[]; - /** - * @public - *

The current status of a document review.

- */ - ReviewStatus?: ReviewStatus; - /** - * @public - *

The user in your organization who created the document.

- */ - Author?: string; -} -/** - * @public - */ -export interface ListDocumentsResult { - /** - * @public - *

The names of the SSM documents.

- */ - DocumentIdentifiers?: DocumentIdentifier[]; - /** - * @public - *

The token to use when requesting the next set of items. If there are no additional items to - * return, the string is empty.

- */ - NextToken?: string; -} -/** - * @public - */ -export interface ListDocumentVersionsRequest { - /** - * @public - *

The name of the document. You can specify an Amazon Resource Name (ARN).

- */ - Name: string | undefined; - /** - * @public - *

The maximum number of items to return for this call. The call also returns a token that you - * can specify in a subsequent call to get the next set of results.

- */ - MaxResults?: number; - /** - * @public - *

The token for the next set of items to return. (You received this token from a previous - * call.)

- */ - NextToken?: string; -} -/** - * @public - *

Version information about the document.

- */ -export interface DocumentVersionInfo { - /** - * @public - *

The document name.

- */ - Name?: string; - /** - * @public - *

The friendly name of the SSM document. This value can differ for each version of the - * document. If you want to update this value, see UpdateDocument.

- */ - DisplayName?: string; - /** - * @public - *

The document version.

- */ - DocumentVersion?: string; - /** - * @public - *

The version of the artifact associated with the document. For example, "Release 12, Update - * 6". This value is unique across all versions of a document, and can't be changed.

- */ - VersionName?: string; - /** - * @public - *

The date the document was created.

- */ - CreatedDate?: Date; - /** - * @public - *

An identifier for the default version of the document.

- */ - IsDefaultVersion?: boolean; - /** - * @public - *

The document format, either JSON or YAML.

- */ - DocumentFormat?: DocumentFormat; - /** - * @public - *

The status of the SSM document, such as Creating, Active, - * Failed, and Deleting.

- */ - Status?: DocumentStatus; - /** - * @public - *

A message returned by Amazon Web Services Systems Manager that explains the Status value. For example, a - * Failed status might be explained by the StatusInformation message, - * "The specified S3 bucket doesn't exist. Verify that the URL of the S3 bucket is correct."

- */ - StatusInformation?: string; - /** - * @public - *

The current status of the approval review for the latest version of the document.

- */ - ReviewStatus?: ReviewStatus; -} -/** - * @public - */ -export interface ListDocumentVersionsResult { - /** - * @public - *

The document versions.

- */ - DocumentVersions?: DocumentVersionInfo[]; - /** - * @public - *

The token to use when requesting the next set of items. If there are no additional items to - * return, the string is empty.

- */ - NextToken?: string; -} -/** - * @public - */ -export interface ListInventoryEntriesRequest { - /** - * @public - *

The managed node ID for which you want inventory information.

- */ - InstanceId: string | undefined; - /** - * @public - *

The type of inventory item for which you want information.

- */ - TypeName: string | undefined; - /** - * @public - *

One or more filters. Use a filter to return a more specific list of results.

- */ - Filters?: InventoryFilter[]; - /** - * @public - *

The token for the next set of items to return. (You received this token from a previous - * call.)

- */ - NextToken?: string; - /** - * @public - *

The maximum number of items to return for this call. The call also returns a token that you - * can specify in a subsequent call to get the next set of results.

- */ - MaxResults?: number; -} -/** - * @public - */ -export interface ListInventoryEntriesResult { - /** - * @public - *

The type of inventory item returned by the request.

- */ - TypeName?: string; - /** - * @public - *

The managed node ID targeted by the request to query inventory information.

- */ - InstanceId?: string; - /** - * @public - *

The inventory schema version used by the managed node(s).

- */ - SchemaVersion?: string; - /** - * @public - *

The time that inventory information was collected for the managed node(s).

- */ - CaptureTime?: string; - /** - * @public - *

A list of inventory items on the managed node(s).

- */ - Entries?: Record[]; - /** - * @public - *

The token to use when requesting the next set of items. If there are no additional items to - * return, the string is empty.

- */ - NextToken?: string; -} -/** - * @public - * @enum - */ -export declare const OpsItemEventFilterKey: { - readonly OPSITEM_ID: "OpsItemId"; -}; -/** - * @public - */ -export type OpsItemEventFilterKey = (typeof OpsItemEventFilterKey)[keyof typeof OpsItemEventFilterKey]; -/** - * @public - * @enum - */ -export declare const OpsItemEventFilterOperator: { - readonly EQUAL: "Equal"; -}; -/** - * @public - */ -export type OpsItemEventFilterOperator = (typeof OpsItemEventFilterOperator)[keyof typeof OpsItemEventFilterOperator]; -/** - * @public - *

Describes a filter for a specific list of OpsItem events. You can filter event information - * by using tags. You specify tags by using a key-value pair mapping.

- */ -export interface OpsItemEventFilter { - /** - * @public - *

The name of the filter key. Currently, the only supported value is - * OpsItemId.

- */ - Key: OpsItemEventFilterKey | undefined; - /** - * @public - *

The values for the filter, consisting of one or more OpsItem IDs.

- */ - Values: string[] | undefined; - /** - * @public - *

The operator used by the filter call. Currently, the only supported value is - * Equal.

- */ - Operator: OpsItemEventFilterOperator | undefined; -} -/** - * @public - */ -export interface ListOpsItemEventsRequest { - /** - * @public - *

One or more OpsItem filters. Use a filter to return a more specific list of results.

- */ - Filters?: OpsItemEventFilter[]; - /** - * @public - *

The maximum number of items to return for this call. The call also returns a token that you - * can specify in a subsequent call to get the next set of results.

- */ - MaxResults?: number; - /** - * @public - *

A token to start the list. Use this token to get the next set of results.

- */ - NextToken?: string; -} -/** - * @public - *

Information about the user or resource that created an OpsItem event.

- */ -export interface OpsItemIdentity { - /** - * @public - *

The Amazon Resource Name (ARN) of the IAM entity that created the OpsItem - * event.

- */ - Arn?: string; -} -/** - * @public - *

Summary information about an OpsItem event or that associated an OpsItem with a related - * item.

- */ -export interface OpsItemEventSummary { - /** - * @public - *

The ID of the OpsItem.

- */ - OpsItemId?: string; - /** - * @public - *

The ID of the OpsItem event.

- */ - EventId?: string; - /** - * @public - *

The source of the OpsItem event.

- */ - Source?: string; - /** - * @public - *

The type of information provided as a detail.

- */ - DetailType?: string; - /** - * @public - *

Specific information about the OpsItem event.

- */ - Detail?: string; - /** - * @public - *

Information about the user or resource that created the OpsItem event.

- */ - CreatedBy?: OpsItemIdentity; - /** - * @public - *

The date and time the OpsItem event was created.

- */ - CreatedTime?: Date; -} -/** - * @public - */ -export interface ListOpsItemEventsResponse { - /** - * @public - *

The token for the next set of items to return. Use this token to get the next set of - * results.

- */ - NextToken?: string; - /** - * @public - *

A list of event information for the specified OpsItems.

- */ - Summaries?: OpsItemEventSummary[]; -} -/** - * @public - * @enum - */ -export declare const OpsItemRelatedItemsFilterKey: { - readonly ASSOCIATION_ID: "AssociationId"; - readonly RESOURCE_TYPE: "ResourceType"; - readonly RESOURCE_URI: "ResourceUri"; -}; -/** - * @public - */ -export type OpsItemRelatedItemsFilterKey = (typeof OpsItemRelatedItemsFilterKey)[keyof typeof OpsItemRelatedItemsFilterKey]; -/** - * @public - * @enum - */ -export declare const OpsItemRelatedItemsFilterOperator: { - readonly EQUAL: "Equal"; -}; -/** - * @public - */ -export type OpsItemRelatedItemsFilterOperator = (typeof OpsItemRelatedItemsFilterOperator)[keyof typeof OpsItemRelatedItemsFilterOperator]; -/** - * @public - *

Describes a filter for a specific list of related-item resources.

- */ -export interface OpsItemRelatedItemsFilter { - /** - * @public - *

The name of the filter key. Supported values include ResourceUri, - * ResourceType, or AssociationId.

- */ - Key: OpsItemRelatedItemsFilterKey | undefined; - /** - * @public - *

The values for the filter.

- */ - Values: string[] | undefined; - /** - * @public - *

The operator used by the filter call. The only supported operator is - * EQUAL.

- */ - Operator: OpsItemRelatedItemsFilterOperator | undefined; -} -/** - * @public - */ -export interface ListOpsItemRelatedItemsRequest { - /** - * @public - *

The ID of the OpsItem for which you want to list all related-item resources.

- */ - OpsItemId?: string; - /** - * @public - *

One or more OpsItem filters. Use a filter to return a more specific list of results.

- */ - Filters?: OpsItemRelatedItemsFilter[]; - /** - * @public - *

The maximum number of items to return for this call. The call also returns a token that you - * can specify in a subsequent call to get the next set of results.

- */ - MaxResults?: number; - /** - * @public - *

The token for the next set of items to return. (You received this token from a previous - * call.)

- */ - NextToken?: string; -} -/** - * @public - *

Summary information about related-item resources for an OpsItem.

- */ -export interface OpsItemRelatedItemSummary { - /** - * @public - *

The OpsItem ID.

- */ - OpsItemId?: string; - /** - * @public - *

The association ID.

- */ - AssociationId?: string; - /** - * @public - *

The resource type.

- */ - ResourceType?: string; - /** - * @public - *

The association type.

- */ - AssociationType?: string; - /** - * @public - *

The Amazon Resource Name (ARN) of the related-item resource.

- */ - ResourceUri?: string; - /** - * @public - *

Information about the user or resource that created an OpsItem event.

- */ - CreatedBy?: OpsItemIdentity; - /** - * @public - *

The time the related-item association was created.

- */ - CreatedTime?: Date; - /** - * @public - *

Information about the user or resource that created an OpsItem event.

- */ - LastModifiedBy?: OpsItemIdentity; - /** - * @public - *

The time the related-item association was last updated.

- */ - LastModifiedTime?: Date; -} -/** - * @public - */ -export interface ListOpsItemRelatedItemsResponse { - /** - * @public - *

The token for the next set of items to return. Use this token to get the next set of - * results.

- */ - NextToken?: string; - /** - * @public - *

A list of related-item resources for the specified OpsItem.

- */ - Summaries?: OpsItemRelatedItemSummary[]; -} -/** - * @public - *

A filter to limit the number of OpsMetadata objects displayed.

- */ -export interface OpsMetadataFilter { - /** - * @public - *

A filter key.

- */ - Key: string | undefined; - /** - * @public - *

A filter value.

- */ - Values: string[] | undefined; -} -/** - * @public - */ -export interface ListOpsMetadataRequest { - /** - * @public - *

One or more filters to limit the number of OpsMetadata objects returned by the call.

- */ - Filters?: OpsMetadataFilter[]; - /** - * @public - *

The maximum number of items to return for this call. The call also returns a token that you - * can specify in a subsequent call to get the next set of results.

- */ - MaxResults?: number; - /** - * @public - *

A token to start the list. Use this token to get the next set of results.

- */ - NextToken?: string; -} -/** - * @public - *

Operational metadata for an application in Application Manager.

- */ -export interface OpsMetadata { - /** - * @public - *

The ID of the Application Manager application.

- */ - ResourceId?: string; - /** - * @public - *

The Amazon Resource Name (ARN) of the OpsMetadata Object or blob.

- */ - OpsMetadataArn?: string; - /** - * @public - *

The date the OpsMetadata object was last updated.

- */ - LastModifiedDate?: Date; - /** - * @public - *

The user name who last updated the OpsMetadata object.

- */ - LastModifiedUser?: string; - /** - * @public - *

The date the OpsMetadata objects was created.

- */ - CreationDate?: Date; -} -/** - * @public - */ -export interface ListOpsMetadataResult { - /** - * @public - *

Returns a list of OpsMetadata objects.

- */ - OpsMetadataList?: OpsMetadata[]; - /** - * @public - *

The token for the next set of items to return. Use this token to get the next set of - * results.

- */ - NextToken?: string; -} -/** - * @public - */ -export interface ListResourceComplianceSummariesRequest { - /** - * @public - *

One or more filters. Use a filter to return a more specific list of results.

- */ - Filters?: ComplianceStringFilter[]; - /** - * @public - *

A token to start the list. Use this token to get the next set of results.

- */ - NextToken?: string; - /** - * @public - *

The maximum number of items to return for this call. The call also returns a token that you - * can specify in a subsequent call to get the next set of results.

- */ - MaxResults?: number; -} -/** - * @public - *

Compliance summary information for a specific resource.

- */ -export interface ResourceComplianceSummaryItem { - /** - * @public - *

The compliance type.

- */ - ComplianceType?: string; - /** - * @public - *

The resource type.

- */ - ResourceType?: string; - /** - * @public - *

The resource ID.

- */ - ResourceId?: string; - /** - * @public - *

The compliance status for the resource.

- */ - Status?: ComplianceStatus; - /** - * @public - *

The highest severity item found for the resource. The resource is compliant for this - * item.

- */ - OverallSeverity?: ComplianceSeverity; - /** - * @public - *

Information about the execution.

- */ - ExecutionSummary?: ComplianceExecutionSummary; - /** - * @public - *

A list of items that are compliant for the resource.

- */ - CompliantSummary?: CompliantSummary; - /** - * @public - *

A list of items that aren't compliant for the resource.

- */ - NonCompliantSummary?: NonCompliantSummary; -} -/** - * @public - */ -export interface ListResourceComplianceSummariesResult { - /** - * @public - *

A summary count for specified or targeted managed nodes. Summary count includes information - * about compliant and non-compliant State Manager associations, patch status, or custom items - * according to the filter criteria that you specify.

- */ - ResourceComplianceSummaryItems?: ResourceComplianceSummaryItem[]; - /** - * @public - *

The token for the next set of items to return. Use this token to get the next set of - * results.

- */ - NextToken?: string; -} -/** - * @public - */ -export interface ListResourceDataSyncRequest { - /** - * @public - *

View a list of resource data syncs according to the sync type. Specify - * SyncToDestination to view resource data syncs that synchronize data to an Amazon S3 bucket. Specify SyncFromSource to view resource data syncs from Organizations - * or from multiple Amazon Web Services Regions.

- */ - SyncType?: string; - /** - * @public - *

A token to start the list. Use this token to get the next set of results.

- */ - NextToken?: string; - /** - * @public - *

The maximum number of items to return for this call. The call also returns a token that you - * can specify in a subsequent call to get the next set of results.

- */ - MaxResults?: number; -} -/** - * @public - * @enum - */ -export declare const LastResourceDataSyncStatus: { - readonly FAILED: "Failed"; - readonly INPROGRESS: "InProgress"; - readonly SUCCESSFUL: "Successful"; -}; -/** - * @public - */ -export type LastResourceDataSyncStatus = (typeof LastResourceDataSyncStatus)[keyof typeof LastResourceDataSyncStatus]; -/** - * @public - *

The data type name for including resource data sync state. There are four sync - * states:

- *

- * OrganizationNotExists (Your organization doesn't exist)

- *

- * NoPermissions (The system can't locate the service-linked role. This role is - * automatically created when a user creates a resource data sync in Amazon Web Services Systems Manager Explorer.)

- *

- * InvalidOrganizationalUnit (You specified or selected an invalid unit in the - * resource data sync configuration.)

- *

- * TrustedAccessDisabled (You disabled Systems Manager access in the organization in - * Organizations.)

- */ -export interface ResourceDataSyncSourceWithState { - /** - * @public - *

The type of data source for the resource data sync. SourceType is either - * AwsOrganizations (if an organization is present in Organizations) or - * singleAccountMultiRegions.

- */ - SourceType?: string; - /** - * @public - *

The field name in SyncSource for the - * ResourceDataSyncAwsOrganizationsSource type.

- */ - AwsOrganizationsSource?: ResourceDataSyncAwsOrganizationsSource; - /** - * @public - *

The SyncSource Amazon Web Services Regions included in the resource data sync.

- */ - SourceRegions?: string[]; - /** - * @public - *

Whether to automatically synchronize and aggregate data from new Amazon Web Services Regions when those - * Regions come online.

- */ - IncludeFutureRegions?: boolean; - /** - * @public - *

The data type name for including resource data sync state. There are four sync - * states:

- *

- * OrganizationNotExists: Your organization doesn't exist.

- *

- * NoPermissions: The system can't locate the service-linked role. This role is - * automatically created when a user creates a resource data sync in Explorer.

- *

- * InvalidOrganizationalUnit: You specified or selected an invalid unit in the - * resource data sync configuration.

- *

- * TrustedAccessDisabled: You disabled Systems Manager access in the organization in - * Organizations.

- */ - State?: string; - /** - * @public - *

When you create a resource data sync, if you choose one of the Organizations options, then Systems Manager - * automatically enables all OpsData sources in the selected Amazon Web Services Regions for all Amazon Web Services accounts in - * your organization (or in the selected organization units). For more information, see About multiple account and Region resource data syncs in the - * Amazon Web Services Systems Manager User Guide.

- */ - EnableAllOpsDataSources?: boolean; -} -/** - * @public - *

Information about a resource data sync configuration, including its current status and last - * successful sync.

- */ -export interface ResourceDataSyncItem { - /** - * @public - *

The name of the resource data sync.

- */ - SyncName?: string; - /** - * @public - *

The type of resource data sync. If SyncType is SyncToDestination, - * then the resource data sync synchronizes data to an S3 bucket. If the SyncType is - * SyncFromSource then the resource data sync synchronizes data from Organizations or from - * multiple Amazon Web Services Regions.

- */ - SyncType?: string; - /** - * @public - *

Information about the source where the data was synchronized.

- */ - SyncSource?: ResourceDataSyncSourceWithState; - /** - * @public - *

Configuration information for the target S3 bucket.

- */ - S3Destination?: ResourceDataSyncS3Destination; - /** - * @public - *

The last time the configuration attempted to sync (UTC).

- */ - LastSyncTime?: Date; - /** - * @public - *

The last time the sync operations returned a status of SUCCESSFUL (UTC).

- */ - LastSuccessfulSyncTime?: Date; - /** - * @public - *

The date and time the resource data sync was changed.

- */ - SyncLastModifiedTime?: Date; - /** - * @public - *

The status reported by the last sync.

- */ - LastStatus?: LastResourceDataSyncStatus; - /** - * @public - *

The date and time the configuration was created (UTC).

- */ - SyncCreatedTime?: Date; - /** - * @public - *

The status message details reported by the last sync.

- */ - LastSyncStatusMessage?: string; -} -/** - * @public - */ -export interface ListResourceDataSyncResult { - /** - * @public - *

A list of your current resource data sync configurations and their statuses.

- */ - ResourceDataSyncItems?: ResourceDataSyncItem[]; - /** - * @public - *

The token for the next set of items to return. Use this token to get the next set of - * results.

- */ - NextToken?: string; -} -/** - * @public - */ -export interface ListTagsForResourceRequest { - /** - * @public - *

Returns a list of tags for a specific resource type.

- */ - ResourceType: ResourceTypeForTagging | undefined; - /** - * @public - *

The resource ID for which you want to see a list of tags.

- */ - ResourceId: string | undefined; -} -/** - * @public - */ -export interface ListTagsForResourceResult { - /** - * @public - *

A list of tags.

- */ - TagList?: Tag[]; -} -/** - * @public - *

The document can't be shared with more Amazon Web Services accounts. You can specify a maximum of 20 - * accounts per API operation to share a private document.

- *

By default, you can share a private document with a maximum of 1,000 accounts and publicly - * share up to five documents.

- *

If you need to increase the quota for privately or publicly shared Systems Manager documents, contact - * Amazon Web Services Support.

- */ -export declare class DocumentPermissionLimit extends __BaseException { - readonly name: "DocumentPermissionLimit"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - */ -export interface ModifyDocumentPermissionRequest { - /** - * @public - *

The name of the document that you want to share.

- */ - Name: string | undefined; - /** - * @public - *

The permission type for the document. The permission type can be - * Share.

- */ - PermissionType: DocumentPermissionType | undefined; - /** - * @public - *

The Amazon Web Services users that should have access to the document. The account IDs can either be a - * group of account IDs or All.

- */ - AccountIdsToAdd?: string[]; - /** - * @public - *

The Amazon Web Services users that should no longer have access to the document. The Amazon Web Services user - * can either be a group of account IDs or All. This action has a higher - * priority than AccountIdsToAdd. If you specify an ID to add and the same ID - * to remove, the system removes access to the document.

- */ - AccountIdsToRemove?: string[]; - /** - * @public - *

(Optional) The version of the document to share. If it isn't specified, the system choose - * the Default version to share.

- */ - SharedDocumentVersion?: string; -} -/** - * @public - */ -export interface ModifyDocumentPermissionResponse { -} -/** - * @public - *

You specified too many custom compliance types. You can specify a maximum of 10 different - * types.

- */ -export declare class ComplianceTypeCountLimitExceededException extends __BaseException { - readonly name: "ComplianceTypeCountLimitExceededException"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

One or more content items isn't valid.

- */ -export declare class InvalidItemContentException extends __BaseException { - readonly name: "InvalidItemContentException"; - readonly $fault: "client"; - TypeName?: string; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

The inventory item size has exceeded the size limit.

- */ -export declare class ItemSizeLimitExceededException extends __BaseException { - readonly name: "ItemSizeLimitExceededException"; - readonly $fault: "client"; - TypeName?: string; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

Information about a compliance item.

- */ -export interface ComplianceItemEntry { - /** - * @public - *

The compliance item ID. For example, if the compliance item is a Windows patch, the ID could - * be the number of the KB article.

- */ - Id?: string; - /** - * @public - *

The title of the compliance item. For example, if the compliance item is a Windows patch, - * the title could be the title of the KB article for the patch; for example: Security Update for - * Active Directory Federation Services.

- */ - Title?: string; - /** - * @public - *

The severity of the compliance status. Severity can be one of the following: Critical, High, - * Medium, Low, Informational, Unspecified.

- */ - Severity: ComplianceSeverity | undefined; - /** - * @public - *

The status of the compliance item. An item is either COMPLIANT or NON_COMPLIANT.

- */ - Status: ComplianceStatus | undefined; - /** - * @public - *

A "Key": "Value" tag combination for the compliance item.

- */ - Details?: Record; -} -/** - * @public - * @enum - */ -export declare const ComplianceUploadType: { - readonly Complete: "COMPLETE"; - readonly Partial: "PARTIAL"; -}; -/** - * @public - */ -export type ComplianceUploadType = (typeof ComplianceUploadType)[keyof typeof ComplianceUploadType]; -/** - * @public - */ -export interface PutComplianceItemsRequest { - /** - * @public - *

Specify an ID for this resource. For a managed node, this is the node ID.

- */ - ResourceId: string | undefined; - /** - * @public - *

Specify the type of resource. ManagedInstance is currently the only supported - * resource type.

- */ - ResourceType: string | undefined; - /** - * @public - *

Specify the compliance type. For example, specify Association (for a State Manager - * association), Patch, or Custom:string.

- */ - ComplianceType: string | undefined; - /** - * @public - *

A summary of the call execution that includes an execution ID, the type of execution (for - * example, Command), and the date/time of the execution using a datetime object that - * is saved in the following format: yyyy-MM-dd'T'HH:mm:ss'Z'.

- */ - ExecutionSummary: ComplianceExecutionSummary | undefined; - /** - * @public - *

Information about the compliance as defined by the resource type. For example, for a patch - * compliance type, Items includes information about the PatchSeverity, Classification, - * and so on.

- */ - Items: ComplianceItemEntry[] | undefined; - /** - * @public - *

MD5 or SHA-256 content hash. The content hash is used to determine if existing information - * should be overwritten or ignored. If the content hashes match, the request to put compliance - * information is ignored.

- */ - ItemContentHash?: string; - /** - * @public - *

The mode for uploading compliance items. You can specify COMPLETE or - * PARTIAL. In COMPLETE mode, the system overwrites all existing - * compliance information for the resource. You must provide a full list of compliance items each - * time you send the request.

- *

In PARTIAL mode, the system overwrites compliance information for a specific - * association. The association must be configured with SyncCompliance set to - * MANUAL. By default, all requests use COMPLETE mode.

- * - *

This attribute is only valid for association compliance.

- *
- */ - UploadType?: ComplianceUploadType; -} -/** - * @public - */ -export interface PutComplianceItemsResult { -} -/** - * @public - *

The size of inventory data has exceeded the total size limit for the resource.

- */ -export declare class TotalSizeLimitExceededException extends __BaseException { - readonly name: "TotalSizeLimitExceededException"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

You have exceeded the limit for custom schemas. Delete one or more custom schemas and try - * again.

- */ -export declare class CustomSchemaCountLimitExceededException extends __BaseException { - readonly name: "CustomSchemaCountLimitExceededException"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

You specified invalid keys or values in the Context attribute for - * InventoryItem. Verify the keys and values, and try again.

- */ -export declare class InvalidInventoryItemContextException extends __BaseException { - readonly name: "InvalidInventoryItemContextException"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

The inventory item has invalid content.

- */ -export declare class ItemContentMismatchException extends __BaseException { - readonly name: "ItemContentMismatchException"; - readonly $fault: "client"; - TypeName?: string; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

Information collected from managed nodes based on your inventory policy document

- */ -export interface InventoryItem { - /** - * @public - *

The name of the inventory type. Default inventory item type names start with - * AWS. Custom inventory type names will start with Custom. Default inventory item - * types include the following: AWS:AWSComponent, AWS:Application, - * AWS:InstanceInformation, AWS:Network, and - * AWS:WindowsUpdate.

- */ - TypeName: string | undefined; - /** - * @public - *

The schema version for the inventory item.

- */ - SchemaVersion: string | undefined; - /** - * @public - *

The time the inventory information was collected.

- */ - CaptureTime: string | undefined; - /** - * @public - *

MD5 hash of the inventory item type contents. The content hash is used to determine whether - * to update inventory information. The PutInventory API doesn't update the inventory item type - * contents if the MD5 hash hasn't changed since last update.

- */ - ContentHash?: string; - /** - * @public - *

The inventory data of the inventory type.

- */ - Content?: Record[]; - /** - * @public - *

A map of associated properties for a specified inventory type. For example, with this - * attribute, you can specify the ExecutionId, ExecutionType, - * ComplianceType properties of the AWS:ComplianceItem type.

- */ - Context?: Record; -} -/** - * @public - */ -export interface PutInventoryRequest { - /** - * @public - *

An managed node ID where you want to add or update inventory items.

- */ - InstanceId: string | undefined; - /** - * @public - *

The inventory items that you want to add or update on managed nodes.

- */ - Items: InventoryItem[] | undefined; -} -/** - * @public - */ -export interface PutInventoryResult { - /** - * @public - *

Information about the request.

- */ - Message?: string; -} -/** - * @public - *

The sub-type count exceeded the limit for the inventory type.

- */ -export declare class SubTypeCountLimitExceededException extends __BaseException { - readonly name: "SubTypeCountLimitExceededException"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

The Context attribute that you specified for the InventoryItem - * isn't allowed for this inventory type. You can only use the Context attribute with - * inventory types like AWS:ComplianceItem.

- */ -export declare class UnsupportedInventoryItemContextException extends __BaseException { - readonly name: "UnsupportedInventoryItemContextException"; - readonly $fault: "client"; - TypeName?: string; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

Inventory item type schema version has to match supported versions in the service. Check - * output of GetInventorySchema to see the available schema version for each type.

- */ -export declare class UnsupportedInventorySchemaVersionException extends __BaseException { - readonly name: "UnsupportedInventorySchemaVersionException"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

A hierarchy can have a maximum of 15 levels. For more information, see Requirements and - * constraints for parameter names in the Amazon Web Services Systems Manager User Guide.

- */ -export declare class HierarchyLevelLimitExceededException extends __BaseException { - readonly name: "HierarchyLevelLimitExceededException"; - readonly $fault: "client"; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

Parameter Store doesn't support changing a parameter type in a hierarchy. For example, you - * can't change a parameter from a String type to a SecureString type. You - * must create a new, unique parameter.

- */ -export declare class HierarchyTypeMismatchException extends __BaseException { - readonly name: "HierarchyTypeMismatchException"; - readonly $fault: "client"; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

There is a conflict in the policies specified for this parameter. You can't, for example, - * specify two Expiration policies for a parameter. Review your policies, and try again.

- */ -export declare class IncompatiblePolicyException extends __BaseException { - readonly name: "IncompatiblePolicyException"; - readonly $fault: "client"; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

The request doesn't meet the regular expression requirement.

- */ -export declare class InvalidAllowedPatternException extends __BaseException { - readonly name: "InvalidAllowedPatternException"; - readonly $fault: "client"; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

A policy attribute or its value is invalid.

- */ -export declare class InvalidPolicyAttributeException extends __BaseException { - readonly name: "InvalidPolicyAttributeException"; - readonly $fault: "client"; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

The policy type isn't supported. Parameter Store supports the following policy types: - * Expiration, ExpirationNotification, and NoChangeNotification.

- */ -export declare class InvalidPolicyTypeException extends __BaseException { - readonly name: "InvalidPolicyTypeException"; - readonly $fault: "client"; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

The parameter already exists. You can't create duplicate parameters.

- */ -export declare class ParameterAlreadyExists extends __BaseException { - readonly name: "ParameterAlreadyExists"; - readonly $fault: "client"; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

You have exceeded the number of parameters for this Amazon Web Services account. Delete one or more - * parameters and try again.

- */ -export declare class ParameterLimitExceeded extends __BaseException { - readonly name: "ParameterLimitExceeded"; - readonly $fault: "client"; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

Parameter Store retains the 100 most recently created versions of a parameter. After this - * number of versions has been created, Parameter Store deletes the oldest version when a new one is - * created. However, if the oldest version has a label attached to it, - * Parameter Store won't delete the version and instead presents this error message:

- *

- * An error occurred (ParameterMaxVersionLimitExceeded) when calling the PutParameter - * operation: You attempted to create a new version of parameter-name by - * calling the PutParameter API with the overwrite flag. Version - * version-number, the oldest version, can't be deleted because it has a - * label associated with it. Move the label to another version of the parameter, and try - * again. - *

- *

This safeguard is to prevent parameter versions with mission critical labels assigned to - * them from being deleted. To continue creating new parameters, first move the label from the - * oldest version of the parameter to a newer one for use in your operations. For information about - * moving parameter labels, see Move a parameter label (console) or Move a parameter label (CLI) in the Amazon Web Services Systems Manager User Guide.

- */ -export declare class ParameterMaxVersionLimitExceeded extends __BaseException { - readonly name: "ParameterMaxVersionLimitExceeded"; - readonly $fault: "client"; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

The parameter name isn't valid.

- */ -export declare class ParameterPatternMismatchException extends __BaseException { - readonly name: "ParameterPatternMismatchException"; - readonly $fault: "client"; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

You specified more than the maximum number of allowed policies for the parameter. The - * maximum is 10.

- */ -export declare class PoliciesLimitExceededException extends __BaseException { - readonly name: "PoliciesLimitExceededException"; - readonly $fault: "client"; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - */ -export interface PutParameterRequest { - /** - * @public - *

The fully qualified name of the parameter that you want to add to the system. The fully - * qualified name includes the complete hierarchy of the parameter path and name. For parameters in - * a hierarchy, you must include a leading forward slash character (/) when you create or reference - * a parameter. For example: /Dev/DBServer/MySQL/db-string13 - *

- *

Naming Constraints:

- *
    - *
  • - *

    Parameter names are case sensitive.

    - *
  • - *
  • - *

    A parameter name must be unique within an Amazon Web Services Region

    - *
  • - *
  • - *

    A parameter name can't be prefixed with "aws" or "ssm" - * (case-insensitive).

    - *
  • - *
  • - *

    Parameter names can include only the following symbols and letters: - * a-zA-Z0-9_.- - *

    - *

    In addition, the slash character ( / ) is used to delineate hierarchies in parameter - * names. For example: /Dev/Production/East/Project-ABC/MyParameter - *

    - *
  • - *
  • - *

    A parameter name can't include spaces.

    - *
  • - *
  • - *

    Parameter hierarchies are limited to a maximum depth of fifteen levels.

    - *
  • - *
- *

For additional information about valid values for parameter names, see Creating Systems Manager parameters in the Amazon Web Services Systems Manager User Guide.

- * - *

The maximum length constraint of 2048 characters listed below includes 1037 characters - * reserved for internal use by Systems Manager. The maximum length for a parameter name that you create is - * 1011 characters. This includes the characters in the ARN that precede the name you specify, such - * as arn:aws:ssm:us-east-2:111122223333:parameter/.

- *
- */ - Name: string | undefined; - /** - * @public - *

Information about the parameter that you want to add to the system. Optional but - * recommended.

- * - *

Don't enter personally identifiable information in this field.

- *
- */ - Description?: string; - /** - * @public - *

The parameter value that you want to add to the system. Standard parameters have a value - * limit of 4 KB. Advanced parameters have a value limit of 8 KB.

- * - *

Parameters can't be referenced or nested in the values of other parameters. You can't - * include \{\{\}\} or \{\{ssm:parameter-name\}\} in a - * parameter value.

- *
- */ - Value: string | undefined; - /** - * @public - *

The type of parameter that you want to add to the system.

- * - *

- * SecureString isn't currently supported for CloudFormation templates.

- *
- *

Items in a StringList must be separated by a comma (,). You can't - * use other punctuation or special character to escape items in the list. If you have a parameter - * value that requires a comma, then use the String data type.

- * - *

Specifying a parameter type isn't required when updating a parameter. You must specify a - * parameter type when creating a parameter.

- *
- */ - Type?: ParameterType; - /** - * @public - *

The Key Management Service (KMS) ID that you want to use to encrypt a - * parameter. Use a custom key for better security. Required for parameters that use the SecureString data type.

- *

If you don't specify a key ID, the system uses the default key associated with your - * Amazon Web Services account which is not as secure as using a custom key.

- *
    - *
  • - *

    To use a custom KMS key, choose the SecureString - * data type with the Key ID parameter.

    - *
  • - *
- */ - KeyId?: string; - /** - * @public - *

Overwrite an existing parameter. The default value is false.

- */ - Overwrite?: boolean; - /** - * @public - *

A regular expression used to validate the parameter value. For example, for String types - * with values restricted to numbers, you can specify the following: AllowedPattern=^\d+$

- */ - AllowedPattern?: string; - /** - * @public - *

Optional metadata that you assign to a resource. Tags enable you to categorize a resource in - * different ways, such as by purpose, owner, or environment. For example, you might want to tag a - * Systems Manager parameter to identify the type of resource to which it applies, the environment, or the - * type of configuration data referenced by the parameter. In this case, you could specify the - * following key-value pairs:

- *
    - *
  • - *

    - * Key=Resource,Value=S3bucket - *

    - *
  • - *
  • - *

    - * Key=OS,Value=Windows - *

    - *
  • - *
  • - *

    - * Key=ParameterType,Value=LicenseKey - *

    - *
  • - *
- * - *

To add tags to an existing Systems Manager parameter, use the AddTagsToResource - * operation.

- *
- */ - Tags?: Tag[]; - /** - * @public - *

The parameter tier to assign to a parameter.

- *

Parameter Store offers a standard tier and an advanced tier for parameters. Standard - * parameters have a content size limit of 4 KB and can't be configured to use parameter policies. - * You can create a maximum of 10,000 standard parameters for each Region in an Amazon Web Services account. - * Standard parameters are offered at no additional cost.

- *

Advanced parameters have a content size limit of 8 KB and can be configured to use parameter - * policies. You can create a maximum of 100,000 advanced parameters for each Region in an - * Amazon Web Services account. Advanced parameters incur a charge. For more information, see Standard and - * advanced parameter tiers in the Amazon Web Services Systems Manager User Guide.

- *

You can change a standard parameter to an advanced parameter any time. But you can't revert - * an advanced parameter to a standard parameter. Reverting an advanced parameter to a standard - * parameter would result in data loss because the system would truncate the size of the parameter - * from 8 KB to 4 KB. Reverting would also remove any policies attached to the parameter. Lastly, - * advanced parameters use a different form of encryption than standard parameters.

- *

If you no longer need an advanced parameter, or if you no longer want to incur charges for - * an advanced parameter, you must delete it and recreate it as a new standard parameter.

- *

- * Using the Default Tier Configuration - *

- *

In PutParameter requests, you can specify the tier to create the parameter in. - * Whenever you specify a tier in the request, Parameter Store creates or updates the parameter - * according to that request. However, if you don't specify a tier in a request, Parameter Store - * assigns the tier based on the current Parameter Store default tier configuration.

- *

The default tier when you begin using Parameter Store is the standard-parameter tier. If you - * use the advanced-parameter tier, you can specify one of the following as the default:

- *
    - *
  • - *

    - * Advanced: With this option, Parameter Store evaluates all - * requests as advanced parameters.

    - *
  • - *
  • - *

    - * Intelligent-Tiering: With this option, Parameter Store - * evaluates each request to determine if the parameter is standard or advanced.

    - *

    If the request doesn't include any options that require an advanced parameter, the - * parameter is created in the standard-parameter tier. If one or more options requiring an - * advanced parameter are included in the request, Parameter Store create a parameter in the - * advanced-parameter tier.

    - *

    This approach helps control your parameter-related costs by always creating standard - * parameters unless an advanced parameter is necessary.

    - *
  • - *
- *

Options that require an advanced parameter include the following:

- *
    - *
  • - *

    The content size of the parameter is more than 4 KB.

    - *
  • - *
  • - *

    The parameter uses a parameter policy.

    - *
  • - *
  • - *

    More than 10,000 parameters already exist in your Amazon Web Services account in the current - * Amazon Web Services Region.

    - *
  • - *
- *

For more information about configuring the default tier option, see Specifying a - * default parameter tier in the Amazon Web Services Systems Manager User Guide.

- */ - Tier?: ParameterTier; - /** - * @public - *

One or more policies to apply to a parameter. This operation takes a JSON array. Parameter - * Store, a capability of Amazon Web Services Systems Manager supports the following policy types:

- *

Expiration: This policy deletes the parameter after it expires. When you create the policy, - * you specify the expiration date. You can update the expiration date and time by updating the - * policy. Updating the parameter doesn't affect the expiration date and time. - * When the expiration time is reached, Parameter Store deletes the parameter.

- *

ExpirationNotification: This policy initiates an event in Amazon CloudWatch Events that - * notifies you about the expiration. By using this policy, you can receive notification before or - * after the expiration time is reached, in units of days or hours.

- *

NoChangeNotification: This policy initiates a CloudWatch Events event if a parameter hasn't - * been modified for a specified period of time. This policy type is useful when, for example, a - * secret needs to be changed within a period of time, but it hasn't been changed.

- *

All existing policies are preserved until you send new policies or an empty policy. For more - * information about parameter policies, see Assigning parameter - * policies.

- */ - Policies?: string; - /** - * @public - *

The data type for a String parameter. Supported data types include plain text - * and Amazon Machine Image (AMI) IDs.

- *

- * The following data type values are supported. - *

- *
    - *
  • - *

    - * text - *

    - *
  • - *
  • - *

    - * aws:ec2:image - *

    - *
  • - *
  • - *

    - * aws:ssm:integration - *

    - *
  • - *
- *

When you create a String parameter and specify aws:ec2:image, - * Amazon Web Services Systems Manager validates the parameter value is in the required format, such as - * ami-12345abcdeEXAMPLE, and that the specified AMI is available in your - * Amazon Web Services account.

- * - *

If the action is successful, the service sends back an HTTP 200 response which indicates a - * successful PutParameter call for all cases except for data type - * aws:ec2:image. If you call PutParameter with - * aws:ec2:image data type, a successful HTTP 200 response does not guarantee that - * your parameter was successfully created or updated. The aws:ec2:image value is - * validated asynchronously, and the PutParameter call returns before the validation - * is complete. If you submit an invalid AMI value, the PutParameter operation will return success, - * but the asynchronous validation will fail and the parameter will not be created or updated. To - * monitor whether your aws:ec2:image parameters are created successfully, see Setting - * up notifications or trigger actions based on Parameter Store events. For more - * information about AMI format validation , see Native parameter - * support for Amazon Machine Image (AMI) IDs.

- *
- */ - DataType?: string; -} -/** - * @public - */ -export interface PutParameterResult { - /** - * @public - *

The new version number of a parameter. If you edit a parameter value, Parameter Store - * automatically creates a new version and assigns this new version a unique ID. You can reference a - * parameter version ID in API operations or in Systems Manager documents (SSM documents). By default, if you - * don't specify a specific version, the system returns the latest parameter value when a parameter - * is called.

- */ - Version?: number; - /** - * @public - *

The tier assigned to the parameter.

- */ - Tier?: ParameterTier; -} -/** - * @public - *

The parameter type isn't supported.

- */ -export declare class UnsupportedParameterType extends __BaseException { - readonly name: "UnsupportedParameterType"; - readonly $fault: "client"; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - */ -export interface PutResourcePolicyRequest { - /** - * @public - *

Amazon Resource Name (ARN) of the resource to which you want to attach a policy.

- */ - ResourceArn: string | undefined; - /** - * @public - *

A policy you want to associate with a resource.

- */ - Policy: string | undefined; - /** - * @public - *

The policy ID.

- */ - PolicyId?: string; - /** - * @public - *

ID of the current policy version. The hash helps to prevent a situation where multiple users - * attempt to overwrite a policy. You must provide this hash when updating or deleting a - * policy.

- */ - PolicyHash?: string; -} -/** - * @public - */ -export interface PutResourcePolicyResponse { - /** - * @public - *

The policy ID. To update a policy, you must specify PolicyId and - * PolicyHash.

- */ - PolicyId?: string; - /** - * @public - *

ID of the current policy version.

- */ - PolicyHash?: string; -} -/** - * @public - *

The PutResourcePolicy API action enforces two limits. A policy can't be - * greater than 1024 bytes in size. And only one policy can be attached to - * OpsItemGroup. Verify these limits and try again.

- */ -export declare class ResourcePolicyLimitExceededException extends __BaseException { - readonly name: "ResourcePolicyLimitExceededException"; - readonly $fault: "client"; - Limit?: number; - LimitType?: string; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - */ -export interface RegisterDefaultPatchBaselineRequest { - /** - * @public - *

The ID of the patch baseline that should be the default patch baseline.

- */ - BaselineId: string | undefined; -} -/** - * @public - */ -export interface RegisterDefaultPatchBaselineResult { - /** - * @public - *

The ID of the default patch baseline.

- */ - BaselineId?: string; -} -/** - * @public - */ -export interface RegisterPatchBaselineForPatchGroupRequest { - /** - * @public - *

The ID of the patch baseline to register with the patch group.

- */ - BaselineId: string | undefined; - /** - * @public - *

The name of the patch group to be registered with the patch baseline.

- */ - PatchGroup: string | undefined; -} -/** - * @public - */ -export interface RegisterPatchBaselineForPatchGroupResult { - /** - * @public - *

The ID of the patch baseline the patch group was registered with.

- */ - BaselineId?: string; - /** - * @public - *

The name of the patch group registered with the patch baseline.

- */ - PatchGroup?: string; -} -/** - * @public - */ -export interface RegisterTargetWithMaintenanceWindowRequest { - /** - * @public - *

The ID of the maintenance window the target should be registered with.

- */ - WindowId: string | undefined; - /** - * @public - *

The type of target being registered with the maintenance window.

- */ - ResourceType: MaintenanceWindowResourceType | undefined; - /** - * @public - *

The targets to register with the maintenance window. In other words, the managed nodes to - * run commands on when the maintenance window runs.

- * - *

If a single maintenance window task is registered with multiple targets, its task - * invocations occur sequentially and not in parallel. If your task must run on multiple targets at - * the same time, register a task for each target individually and assign each task the same - * priority level.

- *
- *

You can specify targets using managed node IDs, resource group names, or tags that have been - * applied to managed nodes.

- *

- * Example 1: Specify managed node IDs

- *

- * Key=InstanceIds,Values=,, - *

- *

- * Example 2: Use tag key-pairs applied to managed - * nodes

- *

- * Key=tag:,Values=, - *

- *

- * Example 3: Use tag-keys applied to managed nodes

- *

- * Key=tag-key,Values=, - *

- *

- * Example 4: Use resource group names

- *

- * Key=resource-groups:Name,Values= - *

- *

- * Example 5: Use filters for resource group types

- *

- * Key=resource-groups:ResourceTypeFilters,Values=, - *

- * - *

For Key=resource-groups:ResourceTypeFilters, specify resource types in the - * following format

- *

- * Key=resource-groups:ResourceTypeFilters,Values=AWS::EC2::INSTANCE,AWS::EC2::VPC - *

- *
- *

For more information about these examples formats, including the best use case for each one, - * see Examples: Register - * targets with a maintenance window in the Amazon Web Services Systems Manager User Guide.

- */ - Targets: Target[] | undefined; - /** - * @public - *

User-provided value that will be included in any Amazon CloudWatch Events events raised while - * running tasks for these targets in this maintenance window.

- */ - OwnerInformation?: string; - /** - * @public - *

An optional name for the target.

- */ - Name?: string; - /** - * @public - *

An optional description for the target.

- */ - Description?: string; - /** - * @public - *

User-provided idempotency token.

- */ - ClientToken?: string; -} -/** - * @public - */ -export interface RegisterTargetWithMaintenanceWindowResult { - /** - * @public - *

The ID of the target definition in this maintenance window.

- */ - WindowTargetId?: string; -} -/** - * @public - *

You attempted to register a LAMBDA or STEP_FUNCTIONS task in a - * region where the corresponding service isn't available.

- */ -export declare class FeatureNotAvailableException extends __BaseException { - readonly name: "FeatureNotAvailableException"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - */ -export interface RegisterTaskWithMaintenanceWindowRequest { - /** - * @public - *

The ID of the maintenance window the task should be added to.

- */ - WindowId: string | undefined; - /** - * @public - *

The targets (either managed nodes or maintenance window targets).

- * - *

One or more targets must be specified for maintenance window Run Command-type tasks. - * Depending on the task, targets are optional for other maintenance window task types (Automation, - * Lambda, and Step Functions). For more information about running tasks - * that don't specify targets, see Registering - * maintenance window tasks without targets in the - * Amazon Web Services Systems Manager User Guide.

- *
- *

Specify managed nodes using the following format:

- *

- * Key=InstanceIds,Values=, - *

- *

Specify maintenance window targets using the following format:

- *

- * Key=WindowTargetIds,Values=, - *

- */ - Targets?: Target[]; - /** - * @public - *

The ARN of the task to run.

- */ - TaskArn: string | undefined; - /** - * @public - *

The Amazon Resource Name (ARN) of the IAM service role for Amazon Web Services Systems Manager to assume when running a - * maintenance window task. If you do not specify a service role ARN, Systems Manager uses your account's - * service-linked role. If no service-linked role for Systems Manager exists in your account, it is created when you run - * RegisterTaskWithMaintenanceWindow.

- *

For more information, see the following topics in the in the Amazon Web Services Systems Manager User Guide:

- * - */ - ServiceRoleArn?: string; - /** - * @public - *

The type of task being registered.

- */ - TaskType: MaintenanceWindowTaskType | undefined; - /** - * @public - *

The parameters that should be passed to the task when it is run.

- * - *

- * TaskParameters has been deprecated. To specify parameters to pass to a task when it runs, - * instead use the Parameters option in the TaskInvocationParameters structure. For information - * about how Systems Manager handles these options for the supported maintenance window task - * types, see MaintenanceWindowTaskInvocationParameters.

- *
- */ - TaskParameters?: Record; - /** - * @public - *

The parameters that the task should use during execution. Populate only the fields that - * match the task type. All other fields should be empty.

- */ - TaskInvocationParameters?: MaintenanceWindowTaskInvocationParameters; - /** - * @public - *

The priority of the task in the maintenance window, the lower the number the higher the - * priority. Tasks in a maintenance window are scheduled in priority order with tasks that have the - * same priority scheduled in parallel.

- */ - Priority?: number; - /** - * @public - *

The maximum number of targets this task can be run for, in parallel.

- * - *

Although this element is listed as "Required: No", a value can be omitted only when you are - * registering or updating a targetless - * task You must provide a value in all other cases.

- *

For maintenance window tasks without a target specified, you can't supply a value for this - * option. Instead, the system inserts a placeholder value of 1. This value doesn't - * affect the running of your task.

- *
- */ - MaxConcurrency?: string; - /** - * @public - *

The maximum number of errors allowed before this task stops being scheduled.

- * - *

Although this element is listed as "Required: No", a value can be omitted only when you are - * registering or updating a targetless - * task You must provide a value in all other cases.

- *

For maintenance window tasks without a target specified, you can't supply a value for this - * option. Instead, the system inserts a placeholder value of 1. This value doesn't - * affect the running of your task.

- *
- */ - MaxErrors?: string; - /** - * @public - *

A structure containing information about an Amazon Simple Storage Service (Amazon S3) bucket - * to write managed node-level logs to.

- * - *

- * LoggingInfo has been deprecated. To specify an Amazon Simple Storage Service (Amazon S3) bucket to contain logs, instead use the - * OutputS3BucketName and OutputS3KeyPrefix options in the TaskInvocationParameters structure. - * For information about how Amazon Web Services Systems Manager handles these options for the supported maintenance - * window task types, see MaintenanceWindowTaskInvocationParameters.

- *
- */ - LoggingInfo?: LoggingInfo; - /** - * @public - *

An optional name for the task.

- */ - Name?: string; - /** - * @public - *

An optional description for the task.

- */ - Description?: string; - /** - * @public - *

User-provided idempotency token.

- */ - ClientToken?: string; - /** - * @public - *

Indicates whether tasks should continue to run after the cutoff time specified in the - * maintenance windows is reached.

- *
    - *
  • - *

    - * CONTINUE_TASK: When the cutoff time is reached, any tasks that are running - * continue. The default value.

    - *
  • - *
  • - *

    - * CANCEL_TASK:

    - *
      - *
    • - *

      For Automation, Lambda, Step Functions tasks: When the cutoff - * time is reached, any task invocations that are already running continue, but no new task - * invocations are started.

      - *
    • - *
    • - *

      For Run Command tasks: When the cutoff time is reached, the system sends a CancelCommand operation that attempts to cancel the command associated with the - * task. However, there is no guarantee that the command will be terminated and the underlying - * process stopped.

      - *
    • - *
    - *

    The status for tasks that are not completed is TIMED_OUT.

    - *
  • - *
- */ - CutoffBehavior?: MaintenanceWindowTaskCutoffBehavior; - /** - * @public - *

The CloudWatch alarm you want to apply to your maintenance window task.

- */ - AlarmConfiguration?: AlarmConfiguration; -} -/** - * @public - */ -export interface RegisterTaskWithMaintenanceWindowResult { - /** - * @public - *

The ID of the task in the maintenance window.

- */ - WindowTaskId?: string; -} -/** - * @public - */ -export interface RemoveTagsFromResourceRequest { - /** - * @public - *

The type of resource from which you want to remove a tag.

- * - *

The ManagedInstance type for this API operation is only for on-premises - * managed nodes. Specify the name of the managed node in the following format: - * mi-ID_number - * . For example, - * mi-1a2b3c4d5e6f.

- *
- */ - ResourceType: ResourceTypeForTagging | undefined; - /** - * @public - *

The ID of the resource from which you want to remove tags. For example:

- *

ManagedInstance: mi-012345abcde

- *

MaintenanceWindow: mw-012345abcde

- *

- * Automation: example-c160-4567-8519-012345abcde - *

- *

PatchBaseline: pb-012345abcde

- *

OpsMetadata object: ResourceID for tagging is created from the Amazon Resource - * Name (ARN) for the object. Specifically, ResourceID is created from the strings that - * come after the word opsmetadata in the ARN. For example, an OpsMetadata object with - * an ARN of arn:aws:ssm:us-east-2:1234567890:opsmetadata/aws/ssm/MyGroup/appmanager - * has a ResourceID of either aws/ssm/MyGroup/appmanager or - * /aws/ssm/MyGroup/appmanager.

- *

For the Document and Parameter values, use the name of the resource.

- * - *

The ManagedInstance type for this API operation is only for on-premises - * managed nodes. Specify the name of the managed node in the following format: mi-ID_number. For - * example, mi-1a2b3c4d5e6f.

- *
- */ - ResourceId: string | undefined; - /** - * @public - *

Tag keys that you want to remove from the specified resource.

- */ - TagKeys: string[] | undefined; -} -/** - * @public - */ -export interface RemoveTagsFromResourceResult { -} -/** - * @public - *

The request body of the ResetServiceSetting API operation.

- */ -export interface ResetServiceSettingRequest { - /** - * @public - *

The Amazon Resource Name (ARN) of the service setting to reset. The setting ID can be one of - * the following.

- *
    - *
  • - *

    - * /ssm/managed-instance/default-ec2-instance-management-role - *

    - *
  • - *
  • - *

    - * /ssm/automation/customer-script-log-destination - *

    - *
  • - *
  • - *

    - * /ssm/automation/customer-script-log-group-name - *

    - *
  • - *
  • - *

    - * /ssm/documents/console/public-sharing-permission - *

    - *
  • - *
  • - *

    - * /ssm/managed-instance/activation-tier - *

    - *
  • - *
  • - *

    - * /ssm/opsinsights/opscenter - *

    - *
  • - *
  • - *

    - * /ssm/parameter-store/default-parameter-tier - *

    - *
  • - *
  • - *

    - * /ssm/parameter-store/high-throughput-enabled - *

    - *
  • - *
- */ - SettingId: string | undefined; -} -/** - * @public - *

The result body of the ResetServiceSetting API operation.

- */ -export interface ResetServiceSettingResult { - /** - * @public - *

The current, effective service setting after calling the ResetServiceSetting API - * operation.

- */ - ServiceSetting?: ServiceSetting; -} -/** - * @public - */ -export interface ResumeSessionRequest { - /** - * @public - *

The ID of the disconnected session to resume.

- */ - SessionId: string | undefined; -} -/** - * @public - */ -export interface ResumeSessionResponse { - /** - * @public - *

The ID of the session.

- */ - SessionId?: string; - /** - * @public - *

An encrypted token value containing session and caller information. Used to authenticate the - * connection to the managed node.

- */ - TokenValue?: string; - /** - * @public - *

A URL back to SSM Agent on the managed node that the Session Manager client uses to send commands and - * receive output from the managed node. Format: wss://ssmmessages.region.amazonaws.com/v1/data-channel/session-id?stream=(input|output).

- *

- * region represents the Region identifier for an - * Amazon Web Services Region supported by Amazon Web Services Systems Manager, such as us-east-2 for the US East (Ohio) Region. - * For a list of supported region values, see the Region column in Systems Manager service endpoints in the - * Amazon Web Services General Reference.

- *

- * session-id represents the ID of a Session Manager session, such as - * 1a2b3c4dEXAMPLE.

- */ - StreamUrl?: string; -} -/** - * @public - *

The specified step name and execution ID don't exist. Verify the information and try - * again.

- */ -export declare class AutomationStepNotFoundException extends __BaseException { - readonly name: "AutomationStepNotFoundException"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

The signal isn't valid for the current Automation execution.

- */ -export declare class InvalidAutomationSignalException extends __BaseException { - readonly name: "InvalidAutomationSignalException"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - * @enum - */ -export declare const SignalType: { - readonly APPROVE: "Approve"; - readonly REJECT: "Reject"; - readonly RESUME: "Resume"; - readonly START_STEP: "StartStep"; - readonly STOP_STEP: "StopStep"; -}; -/** - * @public - */ -export type SignalType = (typeof SignalType)[keyof typeof SignalType]; -/** - * @public - */ -export interface SendAutomationSignalRequest { - /** - * @public - *

The unique identifier for an existing Automation execution that you want to send the signal - * to.

- */ - AutomationExecutionId: string | undefined; - /** - * @public - *

The type of signal to send to an Automation execution.

- */ - SignalType: SignalType | undefined; - /** - * @public - *

The data sent with the signal. The data schema depends on the type of signal used in the - * request.

- *

For Approve and Reject signal types, the payload is an optional - * comment that you can send with the signal type. For example:

- *

- * Comment="Looks good" - *

- *

For StartStep and Resume signal types, you must send the name of - * the Automation step to start or resume as the payload. For example:

- *

- * StepName="step1" - *

- *

For the StopStep signal type, you must send the step execution ID as the - * payload. For example:

- *

- * StepExecutionId="97fff367-fc5a-4299-aed8-0123456789ab" - *

- */ - Payload?: Record; -} -/** - * @public - */ -export interface SendAutomationSignalResult { -} -/** - * @public - *

One or more configuration items isn't valid. Verify that a valid Amazon Resource Name (ARN) - * was provided for an Amazon Simple Notification Service topic.

- */ -export declare class InvalidNotificationConfig extends __BaseException { - readonly name: "InvalidNotificationConfig"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

The S3 bucket doesn't exist.

- */ -export declare class InvalidOutputFolder extends __BaseException { - readonly name: "InvalidOutputFolder"; - readonly $fault: "client"; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

The role name can't contain invalid characters. Also verify that you specified an IAM role for notifications that includes the required trust policy. For information about - * configuring the IAM role for Run Command notifications, see Configuring Amazon SNS Notifications for Run Command in the - * Amazon Web Services Systems Manager User Guide.

- */ -export declare class InvalidRole extends __BaseException { - readonly name: "InvalidRole"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - */ -export interface SendCommandRequest { - /** - * @public - *

The IDs of the managed nodes where the command should run. Specifying managed node IDs is - * most useful when you are targeting a limited number of managed nodes, though you can specify up - * to 50 IDs.

- *

To target a larger number of managed nodes, or if you prefer not to list individual node - * IDs, we recommend using the Targets option instead. Using Targets, - * which accepts tag key-value pairs to identify the managed nodes to send commands to, you can a - * send command to tens, hundreds, or thousands of nodes at once.

- *

For more information about how to use targets, see Using targets and rate - * controls to send commands to a fleet in the - * Amazon Web Services Systems Manager User Guide.

- */ - InstanceIds?: string[]; - /** - * @public - *

An array of search criteria that targets managed nodes using a Key,Value - * combination that you specify. Specifying targets is most useful when you want to send a command - * to a large number of managed nodes at once. Using Targets, which accepts tag - * key-value pairs to identify managed nodes, you can send a command to tens, hundreds, or thousands - * of nodes at once.

- *

To send a command to a smaller number of managed nodes, you can use the - * InstanceIds option instead.

- *

For more information about how to use targets, see Sending commands to a - * fleet in the Amazon Web Services Systems Manager User Guide.

- */ - Targets?: Target[]; - /** - * @public - *

The name of the Amazon Web Services Systems Manager document (SSM document) to run. This can be a public document or a - * custom document. To run a shared document belonging to another account, specify the document - * Amazon Resource Name (ARN). For more information about how to use shared documents, see Using shared - * SSM documents in the Amazon Web Services Systems Manager User Guide.

- * - *

If you specify a document name or ARN that hasn't been shared with your account, you - * receive an InvalidDocument error.

- *
- */ - DocumentName: string | undefined; - /** - * @public - *

The SSM document version to use in the request. You can specify $DEFAULT, $LATEST, or a - * specific version number. If you run commands by using the Command Line Interface (Amazon Web Services CLI), then - * you must escape the first two options by using a backslash. If you specify a version number, then - * you don't need to use the backslash. For example:

- *

--document-version "\$DEFAULT"

- *

--document-version "\$LATEST"

- *

--document-version "3"

- */ - DocumentVersion?: string; - /** - * @public - *

The Sha256 or Sha1 hash created by the system when the document was created.

- * - *

Sha1 hashes have been deprecated.

- *
- */ - DocumentHash?: string; - /** - * @public - *

Sha256 or Sha1.

- * - *

Sha1 hashes have been deprecated.

- *
- */ - DocumentHashType?: DocumentHashType; - /** - * @public - *

If this time is reached and the command hasn't already started running, it won't run.

- */ - TimeoutSeconds?: number; - /** - * @public - *

User-specified information about the command, such as a brief description of what the - * command should do.

- */ - Comment?: string; - /** - * @public - *

The required and optional parameters specified in the document being run.

- */ - Parameters?: Record; - /** - * @public - *

(Deprecated) You can no longer specify this parameter. The system ignores it. Instead, Systems Manager - * automatically determines the Amazon Web Services Region of the S3 bucket.

- */ - OutputS3Region?: string; - /** - * @public - *

The name of the S3 bucket where command execution responses should be stored.

- */ - OutputS3BucketName?: string; - /** - * @public - *

The directory structure within the S3 bucket where the responses should be stored.

- */ - OutputS3KeyPrefix?: string; - /** - * @public - *

(Optional) The maximum number of managed nodes that are allowed to run the command at the - * same time. You can specify a number such as 10 or a percentage such as 10%. The default value is - * 50. For more information about how to use MaxConcurrency, see Using - * concurrency controls in the Amazon Web Services Systems Manager User Guide.

- */ - MaxConcurrency?: string; - /** - * @public - *

The maximum number of errors allowed without the command failing. When the command fails one - * more time beyond the value of MaxErrors, the systems stops sending the command to - * additional targets. You can specify a number like 10 or a percentage like 10%. The default value - * is 0. For more information about how to use MaxErrors, see Using - * error controls in the Amazon Web Services Systems Manager User Guide.

- */ - MaxErrors?: string; - /** - * @public - *

The ARN of the Identity and Access Management (IAM) service role to use to publish - * Amazon Simple Notification Service (Amazon SNS) notifications for Run Command commands.

- *

This role must provide the sns:Publish permission for your notification topic. - * For information about creating and using this service role, see Monitoring Systems Manager status changes using Amazon SNS notifications in the - * Amazon Web Services Systems Manager User Guide.

- */ - ServiceRoleArn?: string; - /** - * @public - *

Configurations for sending notifications.

- */ - NotificationConfig?: NotificationConfig; - /** - * @public - *

Enables Amazon Web Services Systems Manager to send Run Command output to Amazon CloudWatch Logs. Run Command is a - * capability of Amazon Web Services Systems Manager.

- */ - CloudWatchOutputConfig?: CloudWatchOutputConfig; - /** - * @public - *

The CloudWatch alarm you want to apply to your command.

- */ - AlarmConfiguration?: AlarmConfiguration; -} -/** - * @public - */ -export interface SendCommandResult { - /** - * @public - *

The request as it was received by Systems Manager. Also provides the command ID which can be used - * future references to this request.

- */ - Command?: Command; -} -/** - * @public - *

The association isn't valid or doesn't exist.

- */ -export declare class InvalidAssociation extends __BaseException { - readonly name: "InvalidAssociation"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - */ -export interface StartAssociationsOnceRequest { - /** - * @public - *

The association IDs that you want to run immediately and only one time.

- */ - AssociationIds: string[] | undefined; -} -/** - * @public - */ -export interface StartAssociationsOnceResult { -} -/** - * @public - *

An Automation runbook with the specified name couldn't be found.

- */ -export declare class AutomationDefinitionNotFoundException extends __BaseException { - readonly name: "AutomationDefinitionNotFoundException"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

An Automation runbook with the specified name and version couldn't be found.

- */ -export declare class AutomationDefinitionVersionNotFoundException extends __BaseException { - readonly name: "AutomationDefinitionVersionNotFoundException"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

The number of simultaneously running Automation executions exceeded the allowable - * limit.

- */ -export declare class AutomationExecutionLimitExceededException extends __BaseException { - readonly name: "AutomationExecutionLimitExceededException"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

The supplied parameters for invoking the specified Automation runbook are incorrect. For - * example, they may not match the set of parameters permitted for the specified Automation - * document.

- */ -export declare class InvalidAutomationExecutionParametersException extends __BaseException { - readonly name: "InvalidAutomationExecutionParametersException"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - */ -export interface StartAutomationExecutionRequest { - /** - * @public - *

The name of the SSM document to run. This can be a public document or a custom document. To - * run a shared document belonging to another account, specify the document ARN. For more - * information about how to use shared documents, see Using shared SSM documents - * in the Amazon Web Services Systems Manager User Guide.

- */ - DocumentName: string | undefined; - /** - * @public - *

The version of the Automation runbook to use for this execution.

- */ - DocumentVersion?: string; - /** - * @public - *

A key-value map of execution parameters, which match the declared parameters in the - * Automation runbook.

- */ - Parameters?: Record; - /** - * @public - *

User-provided idempotency token. The token must be unique, is case insensitive, enforces the - * UUID format, and can't be reused.

- */ - ClientToken?: string; - /** - * @public - *

The execution mode of the automation. Valid modes include the following: Auto and - * Interactive. The default mode is Auto.

- */ - Mode?: ExecutionMode; - /** - * @public - *

The name of the parameter used as the target resource for the rate-controlled execution. - * Required if you specify targets.

- */ - TargetParameterName?: string; - /** - * @public - *

A key-value mapping to target resources. Required if you specify TargetParameterName.

- */ - Targets?: Target[]; - /** - * @public - *

A key-value mapping of document parameters to target resources. Both Targets and TargetMaps - * can't be specified together.

- */ - TargetMaps?: Record[]; - /** - * @public - *

The maximum number of targets allowed to run this task in parallel. You can specify a - * number, such as 10, or a percentage, such as 10%. The default value is 10.

- */ - MaxConcurrency?: string; - /** - * @public - *

The number of errors that are allowed before the system stops running the automation on - * additional targets. You can specify either an absolute number of errors, for example 10, or a - * percentage of the target set, for example 10%. If you specify 3, for example, the system stops - * running the automation when the fourth error is received. If you specify 0, then the system stops - * running the automation on additional targets after the first error result is returned. If you run - * an automation on 50 resources and set max-errors to 10%, then the system stops running the - * automation on additional targets when the sixth error is received.

- *

Executions that are already running an automation when max-errors is reached are allowed to - * complete, but some of these executions may fail as well. If you need to ensure that there won't - * be more than max-errors failed executions, set max-concurrency to 1 so the executions proceed one - * at a time.

- */ - MaxErrors?: string; - /** - * @public - *

A location is a combination of Amazon Web Services Regions and/or Amazon Web Services accounts where you want to run the - * automation. Use this operation to start an automation in multiple Amazon Web Services Regions and multiple - * Amazon Web Services accounts. For more information, see Running Automation workflows in multiple Amazon Web Services Regions and Amazon Web Services accounts in the - * Amazon Web Services Systems Manager User Guide.

- */ - TargetLocations?: TargetLocation[]; - /** - * @public - *

Optional metadata that you assign to a resource. You can specify a maximum of five tags for - * an automation. Tags enable you to categorize a resource in different ways, such as by purpose, - * owner, or environment. For example, you might want to tag an automation to identify an - * environment or operating system. In this case, you could specify the following key-value - * pairs:

- *
    - *
  • - *

    - * Key=environment,Value=test - *

    - *
  • - *
  • - *

    - * Key=OS,Value=Windows - *

    - *
  • - *
- * - *

To add tags to an existing automation, use the AddTagsToResource - * operation.

- *
- */ - Tags?: Tag[]; - /** - * @public - *

The CloudWatch alarm you want to apply to your automation.

- */ - AlarmConfiguration?: AlarmConfiguration; -} -/** - * @public - */ -export interface StartAutomationExecutionResult { - /** - * @public - *

The unique ID of a newly scheduled automation execution.

- */ - AutomationExecutionId?: string; -} -/** - * @public - *

Indicates that the Change Manager change template used in the change request was rejected or is - * still in a pending state.

- */ -export declare class AutomationDefinitionNotApprovedException extends __BaseException { - readonly name: "AutomationDefinitionNotApprovedException"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - */ -export interface StartChangeRequestExecutionRequest { - /** - * @public - *

The date and time specified in the change request to run the Automation runbooks.

- * - *

The Automation runbooks specified for the runbook workflow can't run until all required - * approvals for the change request have been received.

- *
- */ - ScheduledTime?: Date; - /** - * @public - *

The name of the change template document to run during the runbook workflow.

- */ - DocumentName: string | undefined; - /** - * @public - *

The version of the change template document to run during the runbook workflow.

- */ - DocumentVersion?: string; - /** - * @public - *

A key-value map of parameters that match the declared parameters in the change template - * document.

- */ - Parameters?: Record; - /** - * @public - *

The name of the change request associated with the runbook workflow to be run.

- */ - ChangeRequestName?: string; - /** - * @public - *

The user-provided idempotency token. The token must be unique, is case insensitive, enforces - * the UUID format, and can't be reused.

- */ - ClientToken?: string; - /** - * @public - *

Indicates whether the change request can be approved automatically without the need for - * manual approvals.

- *

If AutoApprovable is enabled in a change template, then setting - * AutoApprove to true in StartChangeRequestExecution - * creates a change request that bypasses approver review.

- * - *

Change Calendar restrictions are not bypassed in this scenario. If the state of an - * associated calendar is CLOSED, change freeze approvers must still grant permission - * for this change request to run. If they don't, the change won't be processed until the calendar - * state is again OPEN.

- *
- */ - AutoApprove?: boolean; - /** - * @public - *

Information about the Automation runbooks that are run during the runbook workflow.

- * - *

The Automation runbooks specified for the runbook workflow can't run until all required - * approvals for the change request have been received.

- *
- */ - Runbooks: Runbook[] | undefined; - /** - * @public - *

Optional metadata that you assign to a resource. You can specify a maximum of five tags for - * a change request. Tags enable you to categorize a resource in different ways, such as by - * purpose, owner, or environment. For example, you might want to tag a change request to identify - * an environment or target Amazon Web Services Region. In this case, you could specify the following key-value - * pairs:

- *
    - *
  • - *

    - * Key=Environment,Value=Production - *

    - *
  • - *
  • - *

    - * Key=Region,Value=us-east-2 - *

    - *
  • - *
- */ - Tags?: Tag[]; - /** - * @public - *

The time that the requester expects the runbook workflow related to the change request to - * complete. The time is an estimate only that the requester provides for reviewers.

- */ - ScheduledEndTime?: Date; - /** - * @public - *

User-provided details about the change. If no details are provided, content specified in the - * Template information section of the associated change template - * is added.

- */ - ChangeDetails?: string; -} -/** - * @public - */ -export interface StartChangeRequestExecutionResult { - /** - * @public - *

The unique ID of a runbook workflow operation. (A runbook workflow is a type of Automation - * operation.)

- */ - AutomationExecutionId?: string; -} -/** - * @public - */ -export interface StartSessionRequest { - /** - * @public - *

The managed node to connect to for the session.

- */ - Target: string | undefined; - /** - * @public - *

The name of the SSM document you want to use to define the type of session, input - * parameters, or preferences for the session. For example, SSM-SessionManagerRunShell. - * You can call the GetDocument API to verify the document exists before - * attempting to start a session. If no document name is provided, a shell to the managed node is - * launched by default. For more information, see Start a - * session in the Amazon Web Services Systems Manager User Guide.

- */ - DocumentName?: string; - /** - * @public - *

The reason for connecting to the instance. This value is included in the details for the - * Amazon CloudWatch Events event created when you start the session.

- */ - Reason?: string; - /** - * @public - *

The values you want to specify for the parameters defined in the Session - * document.

- */ - Parameters?: Record; -} -/** - * @public - */ -export interface StartSessionResponse { - /** - * @public - *

The ID of the session.

- */ - SessionId?: string; - /** - * @public - *

An encrypted token value containing session and caller information. This token is used to - * authenticate the connection to the managed node, and is valid only long enough to ensure the - * connection is successful. Never share your session's token.

- */ - TokenValue?: string; - /** - * @public - *

A URL back to SSM Agent on the managed node that the Session Manager client uses to send commands and - * receive output from the node. Format: wss://ssmmessages.region.amazonaws.com/v1/data-channel/session-id?stream=(input|output) - *

- *

- * region represents the Region identifier for an - * Amazon Web Services Region supported by Amazon Web Services Systems Manager, such as us-east-2 for the US East (Ohio) Region. - * For a list of supported region values, see the Region column in Systems Manager service endpoints in the - * Amazon Web Services General Reference.

- *

- * session-id represents the ID of a Session Manager session, such as - * 1a2b3c4dEXAMPLE.

- */ - StreamUrl?: string; -} -/** - * @public - *

The specified target managed node for the session isn't fully configured for use with Session Manager. - * For more information, see Getting started with - * Session Manager in the Amazon Web Services Systems Manager User Guide. This error is also returned if you - * attempt to start a session on a managed node that is located in a different account or - * Region

- */ -export declare class TargetNotConnected extends __BaseException { - readonly name: "TargetNotConnected"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

The specified update status operation isn't valid.

- */ -export declare class InvalidAutomationStatusUpdateException extends __BaseException { - readonly name: "InvalidAutomationStatusUpdateException"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - * @enum - */ -export declare const StopType: { - readonly CANCEL: "Cancel"; - readonly COMPLETE: "Complete"; -}; -/** - * @public - */ -export type StopType = (typeof StopType)[keyof typeof StopType]; -/** - * @public - */ -export interface StopAutomationExecutionRequest { - /** - * @public - *

The execution ID of the Automation to stop.

- */ - AutomationExecutionId: string | undefined; - /** - * @public - *

The stop request type. Valid types include the following: Cancel and Complete. The default - * type is Cancel.

- */ - Type?: StopType; -} -/** - * @public - */ -export interface StopAutomationExecutionResult { -} -/** - * @public - */ -export interface TerminateSessionRequest { - /** - * @public - *

The ID of the session to terminate.

- */ - SessionId: string | undefined; -} -/** - * @internal - */ -export declare const MaintenanceWindowTaskFilterSensitiveLog: (obj: MaintenanceWindowTask) => any; -/** - * @internal - */ -export declare const DescribeMaintenanceWindowTasksResultFilterSensitiveLog: (obj: DescribeMaintenanceWindowTasksResult) => any; -/** - * @internal - */ -export declare const BaselineOverrideFilterSensitiveLog: (obj: BaselineOverride) => any; -/** - * @internal - */ -export declare const GetDeployablePatchSnapshotForInstanceRequestFilterSensitiveLog: (obj: GetDeployablePatchSnapshotForInstanceRequest) => any; -/** - * @internal - */ -export declare const GetMaintenanceWindowResultFilterSensitiveLog: (obj: GetMaintenanceWindowResult) => any; -/** - * @internal - */ -export declare const GetMaintenanceWindowExecutionTaskResultFilterSensitiveLog: (obj: GetMaintenanceWindowExecutionTaskResult) => any; -/** - * @internal - */ -export declare const GetMaintenanceWindowExecutionTaskInvocationResultFilterSensitiveLog: (obj: GetMaintenanceWindowExecutionTaskInvocationResult) => any; -/** - * @internal - */ -export declare const MaintenanceWindowLambdaParametersFilterSensitiveLog: (obj: MaintenanceWindowLambdaParameters) => any; -/** - * @internal - */ -export declare const MaintenanceWindowRunCommandParametersFilterSensitiveLog: (obj: MaintenanceWindowRunCommandParameters) => any; -/** - * @internal - */ -export declare const MaintenanceWindowStepFunctionsParametersFilterSensitiveLog: (obj: MaintenanceWindowStepFunctionsParameters) => any; -/** - * @internal - */ -export declare const MaintenanceWindowTaskInvocationParametersFilterSensitiveLog: (obj: MaintenanceWindowTaskInvocationParameters) => any; -/** - * @internal - */ -export declare const GetMaintenanceWindowTaskResultFilterSensitiveLog: (obj: GetMaintenanceWindowTaskResult) => any; -/** - * @internal - */ -export declare const ParameterFilterSensitiveLog: (obj: Parameter) => any; -/** - * @internal - */ -export declare const GetParameterResultFilterSensitiveLog: (obj: GetParameterResult) => any; -/** - * @internal - */ -export declare const ParameterHistoryFilterSensitiveLog: (obj: ParameterHistory) => any; -/** - * @internal - */ -export declare const GetParameterHistoryResultFilterSensitiveLog: (obj: GetParameterHistoryResult) => any; -/** - * @internal - */ -export declare const GetParametersResultFilterSensitiveLog: (obj: GetParametersResult) => any; -/** - * @internal - */ -export declare const GetParametersByPathResultFilterSensitiveLog: (obj: GetParametersByPathResult) => any; -/** - * @internal - */ -export declare const GetPatchBaselineResultFilterSensitiveLog: (obj: GetPatchBaselineResult) => any; -/** - * @internal - */ -export declare const AssociationVersionInfoFilterSensitiveLog: (obj: AssociationVersionInfo) => any; -/** - * @internal - */ -export declare const ListAssociationVersionsResultFilterSensitiveLog: (obj: ListAssociationVersionsResult) => any; -/** - * @internal - */ -export declare const CommandFilterSensitiveLog: (obj: Command) => any; -/** - * @internal - */ -export declare const ListCommandsResultFilterSensitiveLog: (obj: ListCommandsResult) => any; -/** - * @internal - */ -export declare const PutParameterRequestFilterSensitiveLog: (obj: PutParameterRequest) => any; -/** - * @internal - */ -export declare const RegisterTargetWithMaintenanceWindowRequestFilterSensitiveLog: (obj: RegisterTargetWithMaintenanceWindowRequest) => any; -/** - * @internal - */ -export declare const RegisterTaskWithMaintenanceWindowRequestFilterSensitiveLog: (obj: RegisterTaskWithMaintenanceWindowRequest) => any; -/** - * @internal - */ -export declare const SendCommandRequestFilterSensitiveLog: (obj: SendCommandRequest) => any; -/** - * @internal - */ -export declare const SendCommandResultFilterSensitiveLog: (obj: SendCommandResult) => any; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/models/models_2.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/models/models_2.d.ts deleted file mode 100644 index da4aac7a..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/models/models_2.d.ts +++ /dev/null @@ -1,1739 +0,0 @@ -import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; -import { AlarmConfiguration, AssociationComplianceSeverity, AssociationDescription, AssociationStatus, AssociationSyncCompliance, AttachmentsSource, DocumentDescription, DocumentFormat, InstanceAssociationOutputLocation, LoggingInfo, MaintenanceWindowTaskCutoffBehavior, MaintenanceWindowTaskParameterValueExpression, MetadataValue, OperatingSystem, OpsItemDataValue, OpsItemNotification, PatchAction, PatchComplianceLevel, PatchFilterGroup, PatchRuleGroup, PatchSource, RelatedOpsItem, ResourceDataSyncSource, Target, TargetLocation } from "./models_0"; -import { DocumentReviewCommentSource, InventoryFilter, InventoryGroup, MaintenanceWindowTaskInvocationParameters, OpsFilter, OpsItemStatus, OpsResultAttribute, ResultAttribute } from "./models_1"; -import { SSMServiceException as __BaseException } from "./SSMServiceException"; -/** - * @public - */ -export interface TerminateSessionResponse { - /** - * @public - *

The ID of the session that has been terminated.

- */ - SessionId?: string; -} -/** - * @public - */ -export interface UnlabelParameterVersionRequest { - /** - * @public - *

The name of the parameter from which you want to delete one or more labels.

- */ - Name: string | undefined; - /** - * @public - *

The specific version of the parameter which you want to delete one or more labels from. If - * it isn't present, the call will fail.

- */ - ParameterVersion: number | undefined; - /** - * @public - *

One or more labels to delete from the specified parameter version.

- */ - Labels: string[] | undefined; -} -/** - * @public - */ -export interface UnlabelParameterVersionResult { - /** - * @public - *

A list of all labels deleted from the parameter.

- */ - RemovedLabels?: string[]; - /** - * @public - *

The labels that aren't attached to the given parameter version.

- */ - InvalidLabels?: string[]; -} -/** - * @public - *

You have reached the maximum number versions allowed for an association. Each association - * has a limit of 1,000 versions.

- */ -export declare class AssociationVersionLimitExceeded extends __BaseException { - readonly name: "AssociationVersionLimitExceeded"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

The update isn't valid.

- */ -export declare class InvalidUpdate extends __BaseException { - readonly name: "InvalidUpdate"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - */ -export interface UpdateAssociationRequest { - /** - * @public - *

The ID of the association you want to update.

- */ - AssociationId: string | undefined; - /** - * @public - *

The parameters you want to update for the association. If you create a parameter using - * Parameter Store, a capability of Amazon Web Services Systems Manager, you can reference the parameter using - * \{\{ssm:parameter-name\}\}.

- */ - Parameters?: Record; - /** - * @public - *

The document version you want update for the association.

- * - *

State Manager doesn't support running associations that use a new version of a document if - * that document is shared from another account. State Manager always runs the default - * version of a document if shared from another account, even though the Systems Manager console shows that a - * new version was processed. If you want to run an association using a new version of a document - * shared form another account, you must set the document version to default.

- *
- */ - DocumentVersion?: string; - /** - * @public - *

The cron expression used to schedule the association that you want to update.

- */ - ScheduleExpression?: string; - /** - * @public - *

An S3 bucket where you want to store the results of this request.

- */ - OutputLocation?: InstanceAssociationOutputLocation; - /** - * @public - *

The name of the SSM Command document or Automation runbook that contains the configuration - * information for the managed node.

- *

You can specify Amazon Web Services-predefined documents, documents you created, or a document that is - * shared with you from another account.

- *

For Systems Manager document (SSM document) that are shared with you from other Amazon Web Services accounts, you - * must specify the complete SSM document ARN, in the following format:

- *

- * arn:aws:ssm:region:account-id:document/document-name - * - *

- *

For example:

- *

- * arn:aws:ssm:us-east-2:12345678912:document/My-Shared-Document - *

- *

For Amazon Web Services-predefined documents and SSM documents you created in your account, you only need - * to specify the document name. For example, AWS-ApplyPatchBaseline or - * My-Document.

- */ - Name?: string; - /** - * @public - *

The targets of the association.

- */ - Targets?: Target[]; - /** - * @public - *

The name of the association that you want to update.

- */ - AssociationName?: string; - /** - * @public - *

This parameter is provided for concurrency control purposes. You must specify the latest - * association version in the service. If you want to ensure that this request succeeds, either - * specify $LATEST, or omit this parameter.

- */ - AssociationVersion?: string; - /** - * @public - *

Choose the parameter that will define how your automation will branch out. This target is - * required for associations that use an Automation runbook and target resources by using rate - * controls. Automation is a capability of Amazon Web Services Systems Manager.

- */ - AutomationTargetParameterName?: string; - /** - * @public - *

The number of errors that are allowed before the system stops sending requests to run the - * association on additional targets. You can specify either an absolute number of errors, for - * example 10, or a percentage of the target set, for example 10%. If you specify 3, for example, - * the system stops sending requests when the fourth error is received. If you specify 0, then the - * system stops sending requests after the first error is returned. If you run an association on 50 - * managed nodes and set MaxError to 10%, then the system stops sending the request - * when the sixth error is received.

- *

Executions that are already running an association when MaxErrors is reached - * are allowed to complete, but some of these executions may fail as well. If you need to ensure - * that there won't be more than max-errors failed executions, set MaxConcurrency to 1 - * so that executions proceed one at a time.

- */ - MaxErrors?: string; - /** - * @public - *

The maximum number of targets allowed to run the association at the same time. You can - * specify a number, for example 10, or a percentage of the target set, for example 10%. The default - * value is 100%, which means all targets run the association at the same time.

- *

If a new managed node starts and attempts to run an association while Systems Manager is running - * MaxConcurrency associations, the association is allowed to run. During the next - * association interval, the new managed node will process its association within the limit - * specified for MaxConcurrency.

- */ - MaxConcurrency?: string; - /** - * @public - *

The severity level to assign to the association.

- */ - ComplianceSeverity?: AssociationComplianceSeverity; - /** - * @public - *

The mode for generating association compliance. You can specify AUTO or - * MANUAL. In AUTO mode, the system uses the status of the association - * execution to determine the compliance status. If the association execution runs successfully, - * then the association is COMPLIANT. If the association execution doesn't run - * successfully, the association is NON-COMPLIANT.

- *

In MANUAL mode, you must specify the AssociationId as a parameter - * for the PutComplianceItems API operation. In this case, compliance data isn't - * managed by State Manager, a capability of Amazon Web Services Systems Manager. It is managed by your direct call to the - * PutComplianceItems API operation.

- *

By default, all associations use AUTO mode.

- */ - SyncCompliance?: AssociationSyncCompliance; - /** - * @public - *

By default, when you update an association, the system runs it immediately after it is - * updated and then according to the schedule you specified. Specify this option if you don't want - * an association to run immediately after you update it. This parameter isn't supported for rate - * expressions.

- *

If you chose this option when you created an association and later you edit that association - * or you make changes to the SSM document on which that association is based (by using the - * Documents page in the console), State Manager applies the association at the next specified cron - * interval. For example, if you chose the Latest version of an SSM document when you - * created an association and you edit the association by choosing a different document version on - * the Documents page, State Manager applies the association at the next specified cron interval if - * you previously selected this option. If this option wasn't selected, State Manager immediately - * runs the association.

- *

You can reset this option. To do so, specify the no-apply-only-at-cron-interval - * parameter when you update the association from the command line. This parameter forces the - * association to run immediately after updating it and according to the interval specified.

- */ - ApplyOnlyAtCronInterval?: boolean; - /** - * @public - *

The names or Amazon Resource Names (ARNs) of the Change Calendar type documents you want to - * gate your associations under. The associations only run when that change calendar is open. For - * more information, see Amazon Web Services Systems Manager Change - * Calendar.

- */ - CalendarNames?: string[]; - /** - * @public - *

A location is a combination of Amazon Web Services Regions and Amazon Web Services accounts where you want to run the - * association. Use this action to update an association in multiple Regions and multiple - * accounts.

- */ - TargetLocations?: TargetLocation[]; - /** - * @public - *

Number of days to wait after the scheduled day to run an association. For example, if you - * specified a cron schedule of cron(0 0 ? * THU#2 *), you could specify an offset of 3 - * to run the association each Sunday after the second Thursday of the month. For more information - * about cron schedules for associations, see Reference: Cron - * and rate expressions for Systems Manager in the Amazon Web Services Systems Manager User Guide.

- * - *

To use offsets, you must specify the ApplyOnlyAtCronInterval parameter. This - * option tells the system not to run an association immediately after you create it.

- *
- */ - ScheduleOffset?: number; - /** - * @public - *

A key-value mapping of document parameters to target resources. Both Targets and TargetMaps - * can't be specified together.

- */ - TargetMaps?: Record[]; - /** - * @public - *

The details for the CloudWatch alarm you want to apply to an automation or - * command.

- */ - AlarmConfiguration?: AlarmConfiguration; -} -/** - * @public - */ -export interface UpdateAssociationResult { - /** - * @public - *

The description of the association that was updated.

- */ - AssociationDescription?: AssociationDescription; -} -/** - * @public - *

The updated status is the same as the current status.

- */ -export declare class StatusUnchanged extends __BaseException { - readonly name: "StatusUnchanged"; - readonly $fault: "client"; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - */ -export interface UpdateAssociationStatusRequest { - /** - * @public - *

The name of the SSM document.

- */ - Name: string | undefined; - /** - * @public - *

The managed node ID.

- */ - InstanceId: string | undefined; - /** - * @public - *

The association status.

- */ - AssociationStatus: AssociationStatus | undefined; -} -/** - * @public - */ -export interface UpdateAssociationStatusResult { - /** - * @public - *

Information about the association.

- */ - AssociationDescription?: AssociationDescription; -} -/** - * @public - *

The document has too many versions. Delete one or more document versions and try - * again.

- */ -export declare class DocumentVersionLimitExceeded extends __BaseException { - readonly name: "DocumentVersionLimitExceeded"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

The content of the association document matches another document. Change the content of the - * document and try again.

- */ -export declare class DuplicateDocumentContent extends __BaseException { - readonly name: "DuplicateDocumentContent"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

The version name has already been used in this document. Specify a different version name, - * and then try again.

- */ -export declare class DuplicateDocumentVersionName extends __BaseException { - readonly name: "DuplicateDocumentVersionName"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - */ -export interface UpdateDocumentRequest { - /** - * @public - *

A valid JSON or YAML string.

- */ - Content: string | undefined; - /** - * @public - *

A list of key-value pairs that describe attachments to a version of a document.

- */ - Attachments?: AttachmentsSource[]; - /** - * @public - *

The name of the SSM document that you want to update.

- */ - Name: string | undefined; - /** - * @public - *

The friendly name of the SSM document that you want to update. This value can differ for - * each version of the document. If you don't specify a value for this parameter in your request, - * the existing value is applied to the new document version.

- */ - DisplayName?: string; - /** - * @public - *

An optional field specifying the version of the artifact you are updating with the document. - * For example, "Release 12, Update 6". This value is unique across all versions of a document, and - * can't be changed.

- */ - VersionName?: string; - /** - * @public - *

The version of the document that you want to update. Currently, Systems Manager supports updating only - * the latest version of the document. You can specify the version number of the latest version or - * use the $LATEST variable.

- * - *

If you change a document version for a State Manager association, Systems Manager immediately runs - * the association unless you previously specifed the apply-only-at-cron-interval - * parameter.

- *
- */ - DocumentVersion?: string; - /** - * @public - *

Specify the document format for the new document version. Systems Manager supports JSON and YAML - * documents. JSON is the default format.

- */ - DocumentFormat?: DocumentFormat; - /** - * @public - *

Specify a new target type for the document.

- */ - TargetType?: string; -} -/** - * @public - */ -export interface UpdateDocumentResult { - /** - * @public - *

A description of the document that was updated.

- */ - DocumentDescription?: DocumentDescription; -} -/** - * @public - */ -export interface UpdateDocumentDefaultVersionRequest { - /** - * @public - *

The name of a custom document that you want to set as the default version.

- */ - Name: string | undefined; - /** - * @public - *

The version of a custom document that you want to set as the default version.

- */ - DocumentVersion: string | undefined; -} -/** - * @public - *

A default version of a document.

- */ -export interface DocumentDefaultVersionDescription { - /** - * @public - *

The name of the document.

- */ - Name?: string; - /** - * @public - *

The default version of the document.

- */ - DefaultVersion?: string; - /** - * @public - *

The default version of the artifact associated with the document.

- */ - DefaultVersionName?: string; -} -/** - * @public - */ -export interface UpdateDocumentDefaultVersionResult { - /** - * @public - *

The description of a custom document that you want to set as the default version.

- */ - Description?: DocumentDefaultVersionDescription; -} -/** - * @public - * @enum - */ -export declare const DocumentReviewAction: { - readonly Approve: "Approve"; - readonly Reject: "Reject"; - readonly SendForReview: "SendForReview"; - readonly UpdateReview: "UpdateReview"; -}; -/** - * @public - */ -export type DocumentReviewAction = (typeof DocumentReviewAction)[keyof typeof DocumentReviewAction]; -/** - * @public - *

Information about a document approval review.

- */ -export interface DocumentReviews { - /** - * @public - *

The action to take on a document approval review request.

- */ - Action: DocumentReviewAction | undefined; - /** - * @public - *

A comment entered by a user in your organization about the document review request.

- */ - Comment?: DocumentReviewCommentSource[]; -} -/** - * @public - */ -export interface UpdateDocumentMetadataRequest { - /** - * @public - *

The name of the change template for which a version's metadata is to be updated.

- */ - Name: string | undefined; - /** - * @public - *

The version of a change template in which to update approval metadata.

- */ - DocumentVersion?: string; - /** - * @public - *

The change template review details to update.

- */ - DocumentReviews: DocumentReviews | undefined; -} -/** - * @public - */ -export interface UpdateDocumentMetadataResponse { -} -/** - * @public - */ -export interface UpdateMaintenanceWindowRequest { - /** - * @public - *

The ID of the maintenance window to update.

- */ - WindowId: string | undefined; - /** - * @public - *

The name of the maintenance window.

- */ - Name?: string; - /** - * @public - *

An optional description for the update request.

- */ - Description?: string; - /** - * @public - *

The date and time, in ISO-8601 Extended format, for when you want the maintenance window to - * become active. StartDate allows you to delay activation of the maintenance window - * until the specified future date.

- */ - StartDate?: string; - /** - * @public - *

The date and time, in ISO-8601 Extended format, for when you want the maintenance window to - * become inactive. EndDate allows you to set a date and time in the future when the - * maintenance window will no longer run.

- */ - EndDate?: string; - /** - * @public - *

The schedule of the maintenance window in the form of a cron or rate expression.

- */ - Schedule?: string; - /** - * @public - *

The time zone that the scheduled maintenance window executions are based on, in Internet - * Assigned Numbers Authority (IANA) format. For example: "America/Los_Angeles", "UTC", or - * "Asia/Seoul". For more information, see the Time - * Zone Database on the IANA website.

- */ - ScheduleTimezone?: string; - /** - * @public - *

The number of days to wait after the date and time specified by a cron expression before - * running the maintenance window.

- *

For example, the following cron expression schedules a maintenance window to run the third - * Tuesday of every month at 11:30 PM.

- *

- * cron(30 23 ? * TUE#3 *) - *

- *

If the schedule offset is 2, the maintenance window won't run until two days - * later.

- */ - ScheduleOffset?: number; - /** - * @public - *

The duration of the maintenance window in hours.

- */ - Duration?: number; - /** - * @public - *

The number of hours before the end of the maintenance window that Amazon Web Services Systems Manager stops scheduling - * new tasks for execution.

- */ - Cutoff?: number; - /** - * @public - *

Whether targets must be registered with the maintenance window before tasks can be defined - * for those targets.

- */ - AllowUnassociatedTargets?: boolean; - /** - * @public - *

Whether the maintenance window is enabled.

- */ - Enabled?: boolean; - /** - * @public - *

If True, then all fields that are required by the CreateMaintenanceWindow operation are also required for this API request. Optional - * fields that aren't specified are set to null.

- */ - Replace?: boolean; -} -/** - * @public - */ -export interface UpdateMaintenanceWindowResult { - /** - * @public - *

The ID of the created maintenance window.

- */ - WindowId?: string; - /** - * @public - *

The name of the maintenance window.

- */ - Name?: string; - /** - * @public - *

An optional description of the update.

- */ - Description?: string; - /** - * @public - *

The date and time, in ISO-8601 Extended format, for when the maintenance window is scheduled - * to become active. The maintenance window won't run before this specified time.

- */ - StartDate?: string; - /** - * @public - *

The date and time, in ISO-8601 Extended format, for when the maintenance window is scheduled - * to become inactive. The maintenance window won't run after this specified time.

- */ - EndDate?: string; - /** - * @public - *

The schedule of the maintenance window in the form of a cron or rate expression.

- */ - Schedule?: string; - /** - * @public - *

The time zone that the scheduled maintenance window executions are based on, in Internet - * Assigned Numbers Authority (IANA) format. For example: "America/Los_Angeles", "UTC", or - * "Asia/Seoul". For more information, see the Time - * Zone Database on the IANA website.

- */ - ScheduleTimezone?: string; - /** - * @public - *

The number of days to wait to run a maintenance window after the scheduled cron expression - * date and time.

- */ - ScheduleOffset?: number; - /** - * @public - *

The duration of the maintenance window in hours.

- */ - Duration?: number; - /** - * @public - *

The number of hours before the end of the maintenance window that Amazon Web Services Systems Manager stops scheduling - * new tasks for execution.

- */ - Cutoff?: number; - /** - * @public - *

Whether targets must be registered with the maintenance window before tasks can be defined - * for those targets.

- */ - AllowUnassociatedTargets?: boolean; - /** - * @public - *

Whether the maintenance window is enabled.

- */ - Enabled?: boolean; -} -/** - * @public - */ -export interface UpdateMaintenanceWindowTargetRequest { - /** - * @public - *

The maintenance window ID with which to modify the target.

- */ - WindowId: string | undefined; - /** - * @public - *

The target ID to modify.

- */ - WindowTargetId: string | undefined; - /** - * @public - *

The targets to add or replace.

- */ - Targets?: Target[]; - /** - * @public - *

User-provided value that will be included in any Amazon CloudWatch Events events raised while - * running tasks for these targets in this maintenance window.

- */ - OwnerInformation?: string; - /** - * @public - *

A name for the update.

- */ - Name?: string; - /** - * @public - *

An optional description for the update.

- */ - Description?: string; - /** - * @public - *

If True, then all fields that are required by the RegisterTargetWithMaintenanceWindow operation are also required for this API - * request. Optional fields that aren't specified are set to null.

- */ - Replace?: boolean; -} -/** - * @public - */ -export interface UpdateMaintenanceWindowTargetResult { - /** - * @public - *

The maintenance window ID specified in the update request.

- */ - WindowId?: string; - /** - * @public - *

The target ID specified in the update request.

- */ - WindowTargetId?: string; - /** - * @public - *

The updated targets.

- */ - Targets?: Target[]; - /** - * @public - *

The updated owner.

- */ - OwnerInformation?: string; - /** - * @public - *

The updated name.

- */ - Name?: string; - /** - * @public - *

The updated description.

- */ - Description?: string; -} -/** - * @public - */ -export interface UpdateMaintenanceWindowTaskRequest { - /** - * @public - *

The maintenance window ID that contains the task to modify.

- */ - WindowId: string | undefined; - /** - * @public - *

The task ID to modify.

- */ - WindowTaskId: string | undefined; - /** - * @public - *

The targets (either managed nodes or tags) to modify. Managed nodes are specified using the - * format Key=instanceids,Values=instanceID_1,instanceID_2. Tags are specified using - * the format Key=tag_name,Values=tag_value.

- * - *

One or more targets must be specified for maintenance window Run Command-type tasks. - * Depending on the task, targets are optional for other maintenance window task types (Automation, - * Lambda, and Step Functions). For more information about running tasks - * that don't specify targets, see Registering - * maintenance window tasks without targets in the - * Amazon Web Services Systems Manager User Guide.

- *
- */ - Targets?: Target[]; - /** - * @public - *

The task ARN to modify.

- */ - TaskArn?: string; - /** - * @public - *

The Amazon Resource Name (ARN) of the IAM service role for Amazon Web Services Systems Manager to assume when running a - * maintenance window task. If you do not specify a service role ARN, Systems Manager uses your account's - * service-linked role. If no service-linked role for Systems Manager exists in your account, it is created when you run - * RegisterTaskWithMaintenanceWindow.

- *

For more information, see the following topics in the in the Amazon Web Services Systems Manager User Guide:

- * - */ - ServiceRoleArn?: string; - /** - * @public - *

The parameters to modify.

- * - *

- * TaskParameters has been deprecated. To specify parameters to pass to a task when it runs, - * instead use the Parameters option in the TaskInvocationParameters structure. For information - * about how Systems Manager handles these options for the supported maintenance window task - * types, see MaintenanceWindowTaskInvocationParameters.

- *
- *

The map has the following format:

- *

Key: string, between 1 and 255 characters

- *

Value: an array of strings, each string is between 1 and 255 characters

- */ - TaskParameters?: Record; - /** - * @public - *

The parameters that the task should use during execution. Populate only the fields that - * match the task type. All other fields should be empty.

- * - *

When you update a maintenance window task that has options specified in - * TaskInvocationParameters, you must provide again all the - * TaskInvocationParameters values that you want to retain. The values you don't - * specify again are removed. For example, suppose that when you registered a Run Command task, you - * specified TaskInvocationParameters values for Comment, - * NotificationConfig, and OutputS3BucketName. If you update the - * maintenance window task and specify only a different OutputS3BucketName value, the - * values for Comment and NotificationConfig are removed.

- *
- */ - TaskInvocationParameters?: MaintenanceWindowTaskInvocationParameters; - /** - * @public - *

The new task priority to specify. The lower the number, the higher the priority. Tasks that - * have the same priority are scheduled in parallel.

- */ - Priority?: number; - /** - * @public - *

The new MaxConcurrency value you want to specify. MaxConcurrency - * is the number of targets that are allowed to run this task, in parallel.

- * - *

Although this element is listed as "Required: No", a value can be omitted only when you are - * registering or updating a targetless - * task You must provide a value in all other cases.

- *

For maintenance window tasks without a target specified, you can't supply a value for this - * option. Instead, the system inserts a placeholder value of 1. This value doesn't - * affect the running of your task.

- *
- */ - MaxConcurrency?: string; - /** - * @public - *

The new MaxErrors value to specify. MaxErrors is the maximum - * number of errors that are allowed before the task stops being scheduled.

- * - *

Although this element is listed as "Required: No", a value can be omitted only when you are - * registering or updating a targetless - * task You must provide a value in all other cases.

- *

For maintenance window tasks without a target specified, you can't supply a value for this - * option. Instead, the system inserts a placeholder value of 1. This value doesn't - * affect the running of your task.

- *
- */ - MaxErrors?: string; - /** - * @public - *

The new logging location in Amazon S3 to specify.

- * - *

- * LoggingInfo has been deprecated. To specify an Amazon Simple Storage Service (Amazon S3) bucket to contain logs, instead use the - * OutputS3BucketName and OutputS3KeyPrefix options in the TaskInvocationParameters structure. - * For information about how Amazon Web Services Systems Manager handles these options for the supported maintenance - * window task types, see MaintenanceWindowTaskInvocationParameters.

- *
- */ - LoggingInfo?: LoggingInfo; - /** - * @public - *

The new task name to specify.

- */ - Name?: string; - /** - * @public - *

The new task description to specify.

- */ - Description?: string; - /** - * @public - *

If True, then all fields that are required by the RegisterTaskWithMaintenanceWindow operation are also required for this API request. - * Optional fields that aren't specified are set to null.

- */ - Replace?: boolean; - /** - * @public - *

Indicates whether tasks should continue to run after the cutoff time specified in the - * maintenance windows is reached.

- *
    - *
  • - *

    - * CONTINUE_TASK: When the cutoff time is reached, any tasks that are running - * continue. The default value.

    - *
  • - *
  • - *

    - * CANCEL_TASK:

    - *
      - *
    • - *

      For Automation, Lambda, Step Functions tasks: When the cutoff - * time is reached, any task invocations that are already running continue, but no new task - * invocations are started.

      - *
    • - *
    • - *

      For Run Command tasks: When the cutoff time is reached, the system sends a CancelCommand operation that attempts to cancel the command associated with the - * task. However, there is no guarantee that the command will be terminated and the underlying - * process stopped.

      - *
    • - *
    - *

    The status for tasks that are not completed is TIMED_OUT.

    - *
  • - *
- */ - CutoffBehavior?: MaintenanceWindowTaskCutoffBehavior; - /** - * @public - *

The CloudWatch alarm you want to apply to your maintenance window task.

- */ - AlarmConfiguration?: AlarmConfiguration; -} -/** - * @public - */ -export interface UpdateMaintenanceWindowTaskResult { - /** - * @public - *

The ID of the maintenance window that was updated.

- */ - WindowId?: string; - /** - * @public - *

The task ID of the maintenance window that was updated.

- */ - WindowTaskId?: string; - /** - * @public - *

The updated target values.

- */ - Targets?: Target[]; - /** - * @public - *

The updated task ARN value.

- */ - TaskArn?: string; - /** - * @public - *

The Amazon Resource Name (ARN) of the Identity and Access Management (IAM) service role to use to publish Amazon Simple Notification Service - * (Amazon SNS) notifications for maintenance window Run Command tasks.

- */ - ServiceRoleArn?: string; - /** - * @public - *

The updated parameter values.

- * - *

- * TaskParameters has been deprecated. To specify parameters to pass to a task when it runs, - * instead use the Parameters option in the TaskInvocationParameters structure. For information - * about how Systems Manager handles these options for the supported maintenance window task - * types, see MaintenanceWindowTaskInvocationParameters.

- *
- */ - TaskParameters?: Record; - /** - * @public - *

The updated parameter values.

- */ - TaskInvocationParameters?: MaintenanceWindowTaskInvocationParameters; - /** - * @public - *

The updated priority value.

- */ - Priority?: number; - /** - * @public - *

The updated MaxConcurrency value.

- */ - MaxConcurrency?: string; - /** - * @public - *

The updated MaxErrors value.

- */ - MaxErrors?: string; - /** - * @public - *

The updated logging information in Amazon S3.

- * - *

- * LoggingInfo has been deprecated. To specify an Amazon Simple Storage Service (Amazon S3) bucket to contain logs, instead use the - * OutputS3BucketName and OutputS3KeyPrefix options in the TaskInvocationParameters structure. - * For information about how Amazon Web Services Systems Manager handles these options for the supported maintenance - * window task types, see MaintenanceWindowTaskInvocationParameters.

- *
- */ - LoggingInfo?: LoggingInfo; - /** - * @public - *

The updated task name.

- */ - Name?: string; - /** - * @public - *

The updated task description.

- */ - Description?: string; - /** - * @public - *

The specification for whether tasks should continue to run after the cutoff time specified - * in the maintenance windows is reached.

- */ - CutoffBehavior?: MaintenanceWindowTaskCutoffBehavior; - /** - * @public - *

The details for the CloudWatch alarm you applied to your maintenance window - * task.

- */ - AlarmConfiguration?: AlarmConfiguration; -} -/** - * @public - */ -export interface UpdateManagedInstanceRoleRequest { - /** - * @public - *

The ID of the managed node where you want to update the role.

- */ - InstanceId: string | undefined; - /** - * @public - *

The name of the Identity and Access Management (IAM) role that you want to assign to - * the managed node. This IAM role must provide AssumeRole permissions for the - * Amazon Web Services Systems Manager service principal ssm.amazonaws.com. For more information, see Create an - * IAM service role for a hybrid environment in the - * Amazon Web Services Systems Manager User Guide.

- * - *

You can't specify an IAM service-linked role for this parameter. You must - * create a unique role.

- *
- */ - IamRole: string | undefined; -} -/** - * @public - */ -export interface UpdateManagedInstanceRoleResult { -} -/** - * @public - */ -export interface UpdateOpsItemRequest { - /** - * @public - *

User-defined text that contains information about the OpsItem, in Markdown format.

- */ - Description?: string; - /** - * @public - *

Add new keys or edit existing key-value pairs of the OperationalData map in the OpsItem - * object.

- *

Operational data is custom data that provides useful reference details about the OpsItem. - * For example, you can specify log files, error strings, license keys, troubleshooting tips, or - * other relevant data. You enter operational data as key-value pairs. The key has a maximum length - * of 128 characters. The value has a maximum size of 20 KB.

- * - *

Operational data keys can't begin with the following: - * amazon, aws, amzn, ssm, - * /amazon, /aws, /amzn, /ssm.

- *
- *

You can choose to make the data searchable by other users in the account or you can restrict - * search access. Searchable data means that all users with access to the OpsItem Overview page (as - * provided by the DescribeOpsItems API operation) can view and search on the - * specified data. Operational data that isn't searchable is only viewable by users who have access - * to the OpsItem (as provided by the GetOpsItem API operation).

- *

Use the /aws/resources key in OperationalData to specify a related resource in - * the request. Use the /aws/automations key in OperationalData to associate an - * Automation runbook with the OpsItem. To view Amazon Web Services CLI example commands that use these keys, see - * Creating OpsItems - * manually in the Amazon Web Services Systems Manager User Guide.

- */ - OperationalData?: Record; - /** - * @public - *

Keys that you want to remove from the OperationalData map.

- */ - OperationalDataToDelete?: string[]; - /** - * @public - *

The Amazon Resource Name (ARN) of an SNS topic where notifications are sent when this - * OpsItem is edited or changed.

- */ - Notifications?: OpsItemNotification[]; - /** - * @public - *

The importance of this OpsItem in relation to other OpsItems in the system.

- */ - Priority?: number; - /** - * @public - *

One or more OpsItems that share something in common with the current OpsItems. For example, - * related OpsItems can include OpsItems with similar error messages, impacted resources, or - * statuses for the impacted resource.

- */ - RelatedOpsItems?: RelatedOpsItem[]; - /** - * @public - *

The OpsItem status. Status can be Open, In Progress, or - * Resolved. For more information, see Editing OpsItem details in the Amazon Web Services Systems Manager User Guide.

- */ - Status?: OpsItemStatus; - /** - * @public - *

The ID of the OpsItem.

- */ - OpsItemId: string | undefined; - /** - * @public - *

A short heading that describes the nature of the OpsItem and the impacted resource.

- */ - Title?: string; - /** - * @public - *

Specify a new category for an OpsItem.

- */ - Category?: string; - /** - * @public - *

Specify a new severity for an OpsItem.

- */ - Severity?: string; - /** - * @public - *

The time a runbook workflow started. Currently reported only for the OpsItem type - * /aws/changerequest.

- */ - ActualStartTime?: Date; - /** - * @public - *

The time a runbook workflow ended. Currently reported only for the OpsItem type - * /aws/changerequest.

- */ - ActualEndTime?: Date; - /** - * @public - *

The time specified in a change request for a runbook workflow to start. Currently supported - * only for the OpsItem type /aws/changerequest.

- */ - PlannedStartTime?: Date; - /** - * @public - *

The time specified in a change request for a runbook workflow to end. Currently supported - * only for the OpsItem type /aws/changerequest.

- */ - PlannedEndTime?: Date; - /** - * @public - *

The OpsItem Amazon Resource Name (ARN).

- */ - OpsItemArn?: string; -} -/** - * @public - */ -export interface UpdateOpsItemResponse { -} -/** - * @public - *

The OpsMetadata object exceeds the maximum number of OpsMetadata keys that you can assign to - * an application in Application Manager.

- */ -export declare class OpsMetadataKeyLimitExceededException extends __BaseException { - readonly name: "OpsMetadataKeyLimitExceededException"; - readonly $fault: "client"; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - */ -export interface UpdateOpsMetadataRequest { - /** - * @public - *

The Amazon Resource Name (ARN) of the OpsMetadata Object to update.

- */ - OpsMetadataArn: string | undefined; - /** - * @public - *

Metadata to add to an OpsMetadata object.

- */ - MetadataToUpdate?: Record; - /** - * @public - *

The metadata keys to delete from the OpsMetadata object.

- */ - KeysToDelete?: string[]; -} -/** - * @public - */ -export interface UpdateOpsMetadataResult { - /** - * @public - *

The Amazon Resource Name (ARN) of the OpsMetadata Object that was updated.

- */ - OpsMetadataArn?: string; -} -/** - * @public - */ -export interface UpdatePatchBaselineRequest { - /** - * @public - *

The ID of the patch baseline to update.

- */ - BaselineId: string | undefined; - /** - * @public - *

The name of the patch baseline.

- */ - Name?: string; - /** - * @public - *

A set of global filters used to include patches in the baseline.

- */ - GlobalFilters?: PatchFilterGroup; - /** - * @public - *

A set of rules used to include patches in the baseline.

- */ - ApprovalRules?: PatchRuleGroup; - /** - * @public - *

A list of explicitly approved patches for the baseline.

- *

For information about accepted formats for lists of approved patches and rejected patches, - * see About - * package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

- */ - ApprovedPatches?: string[]; - /** - * @public - *

Assigns a new compliance severity level to an existing patch baseline.

- */ - ApprovedPatchesComplianceLevel?: PatchComplianceLevel; - /** - * @public - *

Indicates whether the list of approved patches includes non-security updates that should be - * applied to the managed nodes. The default value is false. Applies to Linux managed - * nodes only.

- */ - ApprovedPatchesEnableNonSecurity?: boolean; - /** - * @public - *

A list of explicitly rejected patches for the baseline.

- *

For information about accepted formats for lists of approved patches and rejected patches, - * see About - * package name formats for approved and rejected patch lists in the Amazon Web Services Systems Manager User Guide.

- */ - RejectedPatches?: string[]; - /** - * @public - *

The action for Patch Manager to take on patches included in the - * RejectedPackages list.

- *
    - *
  • - *

    - * - * ALLOW_AS_DEPENDENCY - * : A package in the - * Rejected patches list is installed only if it is a dependency of another package. - * It is considered compliant with the patch baseline, and its status is reported as - * InstalledOther. This is the default action if no option is specified.

    - *
  • - *
  • - *

    - * - * BLOCK - * : Packages in the - * RejectedPatches list, and packages that include them as dependencies, aren't - * installed under any circumstances. If a package was installed before it was added to the - * Rejected patches list, it is considered non-compliant with the patch baseline, - * and its status is reported as InstalledRejected.

    - *
  • - *
- */ - RejectedPatchesAction?: PatchAction; - /** - * @public - *

A description of the patch baseline.

- */ - Description?: string; - /** - * @public - *

Information about the patches to use to update the managed nodes, including target operating - * systems and source repositories. Applies to Linux managed nodes only.

- */ - Sources?: PatchSource[]; - /** - * @public - *

If True, then all fields that are required by the CreatePatchBaseline - * operation are also required for this API request. Optional fields that aren't specified are set - * to null.

- */ - Replace?: boolean; -} -/** - * @public - */ -export interface UpdatePatchBaselineResult { - /** - * @public - *

The ID of the deleted patch baseline.

- */ - BaselineId?: string; - /** - * @public - *

The name of the patch baseline.

- */ - Name?: string; - /** - * @public - *

The operating system rule used by the updated patch baseline.

- */ - OperatingSystem?: OperatingSystem; - /** - * @public - *

A set of global filters used to exclude patches from the baseline.

- */ - GlobalFilters?: PatchFilterGroup; - /** - * @public - *

A set of rules used to include patches in the baseline.

- */ - ApprovalRules?: PatchRuleGroup; - /** - * @public - *

A list of explicitly approved patches for the baseline.

- */ - ApprovedPatches?: string[]; - /** - * @public - *

The compliance severity level assigned to the patch baseline after the update - * completed.

- */ - ApprovedPatchesComplianceLevel?: PatchComplianceLevel; - /** - * @public - *

Indicates whether the list of approved patches includes non-security updates that should be - * applied to the managed nodes. The default value is false. Applies to Linux managed - * nodes only.

- */ - ApprovedPatchesEnableNonSecurity?: boolean; - /** - * @public - *

A list of explicitly rejected patches for the baseline.

- */ - RejectedPatches?: string[]; - /** - * @public - *

The action specified to take on patches included in the RejectedPatches list. A - * patch can be allowed only if it is a dependency of another package, or blocked entirely along - * with packages that include it as a dependency.

- */ - RejectedPatchesAction?: PatchAction; - /** - * @public - *

The date when the patch baseline was created.

- */ - CreatedDate?: Date; - /** - * @public - *

The date when the patch baseline was last modified.

- */ - ModifiedDate?: Date; - /** - * @public - *

A description of the patch baseline.

- */ - Description?: string; - /** - * @public - *

Information about the patches to use to update the managed nodes, including target operating - * systems and source repositories. Applies to Linux managed nodes only.

- */ - Sources?: PatchSource[]; -} -/** - * @public - *

Another UpdateResourceDataSync request is being processed. Wait a few minutes - * and try again.

- */ -export declare class ResourceDataSyncConflictException extends __BaseException { - readonly name: "ResourceDataSyncConflictException"; - readonly $fault: "client"; - Message?: string; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - */ -export interface UpdateResourceDataSyncRequest { - /** - * @public - *

The name of the resource data sync you want to update.

- */ - SyncName: string | undefined; - /** - * @public - *

The type of resource data sync. The supported SyncType is - * SyncFromSource.

- */ - SyncType: string | undefined; - /** - * @public - *

Specify information about the data sources to synchronize.

- */ - SyncSource: ResourceDataSyncSource | undefined; -} -/** - * @public - */ -export interface UpdateResourceDataSyncResult { -} -/** - * @public - *

The request body of the UpdateServiceSetting API operation.

- */ -export interface UpdateServiceSettingRequest { - /** - * @public - *

The Amazon Resource Name (ARN) of the service setting to update. For example, - * arn:aws:ssm:us-east-1:111122223333:servicesetting/ssm/parameter-store/high-throughput-enabled. - * The setting ID can be one of the following.

- *
    - *
  • - *

    - * /ssm/managed-instance/default-ec2-instance-management-role - *

    - *
  • - *
  • - *

    - * /ssm/automation/customer-script-log-destination - *

    - *
  • - *
  • - *

    - * /ssm/automation/customer-script-log-group-name - *

    - *
  • - *
  • - *

    - * /ssm/documents/console/public-sharing-permission - *

    - *
  • - *
  • - *

    - * /ssm/managed-instance/activation-tier - *

    - *
  • - *
  • - *

    - * /ssm/opsinsights/opscenter - *

    - *
  • - *
  • - *

    - * /ssm/parameter-store/default-parameter-tier - *

    - *
  • - *
  • - *

    - * /ssm/parameter-store/high-throughput-enabled - *

    - *
  • - *
- * - *

Permissions to update the - * /ssm/managed-instance/default-ec2-instance-management-role setting should only be - * provided to administrators. Implement least privilege access when allowing individuals to - * configure or modify the Default Host Management Configuration.

- *
- */ - SettingId: string | undefined; - /** - * @public - *

The new value to specify for the service setting. The following list specifies the available - * values for each setting.

- *
    - *
  • - *

    For /ssm/managed-instance/default-ec2-instance-management-role, enter the - * name of an IAM role.

    - *
  • - *
  • - *

    For /ssm/automation/customer-script-log-destination, enter CloudWatch.

    - *
  • - *
  • - *

    For /ssm/automation/customer-script-log-group-name, enter the name of an - * Amazon CloudWatch Logs log group.

    - *
  • - *
  • - *

    For /ssm/documents/console/public-sharing-permission, enter - * Enable or Disable.

    - *
  • - *
  • - *

    For /ssm/managed-instance/activation-tier, enter standard or - * advanced.

    - *
  • - *
  • - *

    For /ssm/opsinsights/opscenter, enter Enabled or - * Disabled.

    - *
  • - *
  • - *

    For /ssm/parameter-store/default-parameter-tier, enter Standard, - * Advanced, or Intelligent-Tiering - *

    - *
  • - *
  • - *

    For /ssm/parameter-store/high-throughput-enabled, enter true or - * false.

    - *
  • - *
- */ - SettingValue: string | undefined; -} -/** - * @public - *

The result body of the UpdateServiceSetting API operation.

- */ -export interface UpdateServiceSettingResult { -} -/** - * @public - *

Specifies the inventory type and attribute for the aggregation execution.

- */ -export interface InventoryAggregator { - /** - * @public - *

The inventory type and attribute name for aggregation.

- */ - Expression?: string; - /** - * @public - *

Nested aggregators to further refine aggregation for an inventory type.

- */ - Aggregators?: InventoryAggregator[]; - /** - * @public - *

A user-defined set of one or more filters on which to aggregate inventory data. Groups - * return a count of resources that match and don't match the specified criteria.

- */ - Groups?: InventoryGroup[]; -} -/** - * @public - *

One or more aggregators for viewing counts of OpsData using different dimensions such as - * Source, CreatedTime, or Source and CreatedTime, to name a - * few.

- */ -export interface OpsAggregator { - /** - * @public - *

Either a Range or Count aggregator for limiting an OpsData - * summary.

- */ - AggregatorType?: string; - /** - * @public - *

The data type name to use for viewing counts of OpsData.

- */ - TypeName?: string; - /** - * @public - *

The name of an OpsData attribute on which to limit the count of OpsData.

- */ - AttributeName?: string; - /** - * @public - *

The aggregator value.

- */ - Values?: Record; - /** - * @public - *

The aggregator filters.

- */ - Filters?: OpsFilter[]; - /** - * @public - *

A nested aggregator for viewing counts of OpsData.

- */ - Aggregators?: OpsAggregator[]; -} -/** - * @public - */ -export interface GetInventoryRequest { - /** - * @public - *

One or more filters. Use a filter to return a more specific list of results.

- */ - Filters?: InventoryFilter[]; - /** - * @public - *

Returns counts of inventory types based on one or more expressions. For example, if you - * aggregate by using an expression that uses the AWS:InstanceInformation.PlatformType - * type, you can see a count of how many Windows and Linux managed nodes exist in your inventoried - * fleet.

- */ - Aggregators?: InventoryAggregator[]; - /** - * @public - *

The list of inventory item types to return.

- */ - ResultAttributes?: ResultAttribute[]; - /** - * @public - *

The token for the next set of items to return. (You received this token from a previous - * call.)

- */ - NextToken?: string; - /** - * @public - *

The maximum number of items to return for this call. The call also returns a token that you - * can specify in a subsequent call to get the next set of results.

- */ - MaxResults?: number; -} -/** - * @public - */ -export interface GetOpsSummaryRequest { - /** - * @public - *

Specify the name of a resource data sync to get.

- */ - SyncName?: string; - /** - * @public - *

Optional filters used to scope down the returned OpsData.

- */ - Filters?: OpsFilter[]; - /** - * @public - *

Optional aggregators that return counts of OpsData based on one or more expressions.

- */ - Aggregators?: OpsAggregator[]; - /** - * @public - *

The OpsData data type to return.

- */ - ResultAttributes?: OpsResultAttribute[]; - /** - * @public - *

A token to start the list. Use this token to get the next set of results.

- */ - NextToken?: string; - /** - * @public - *

The maximum number of items to return for this call. The call also returns a token that you - * can specify in a subsequent call to get the next set of results.

- */ - MaxResults?: number; -} -/** - * @internal - */ -export declare const UpdateAssociationRequestFilterSensitiveLog: (obj: UpdateAssociationRequest) => any; -/** - * @internal - */ -export declare const UpdateAssociationResultFilterSensitiveLog: (obj: UpdateAssociationResult) => any; -/** - * @internal - */ -export declare const UpdateAssociationStatusResultFilterSensitiveLog: (obj: UpdateAssociationStatusResult) => any; -/** - * @internal - */ -export declare const UpdateMaintenanceWindowRequestFilterSensitiveLog: (obj: UpdateMaintenanceWindowRequest) => any; -/** - * @internal - */ -export declare const UpdateMaintenanceWindowResultFilterSensitiveLog: (obj: UpdateMaintenanceWindowResult) => any; -/** - * @internal - */ -export declare const UpdateMaintenanceWindowTargetRequestFilterSensitiveLog: (obj: UpdateMaintenanceWindowTargetRequest) => any; -/** - * @internal - */ -export declare const UpdateMaintenanceWindowTargetResultFilterSensitiveLog: (obj: UpdateMaintenanceWindowTargetResult) => any; -/** - * @internal - */ -export declare const UpdateMaintenanceWindowTaskRequestFilterSensitiveLog: (obj: UpdateMaintenanceWindowTaskRequest) => any; -/** - * @internal - */ -export declare const UpdateMaintenanceWindowTaskResultFilterSensitiveLog: (obj: UpdateMaintenanceWindowTaskResult) => any; -/** - * @internal - */ -export declare const UpdatePatchBaselineRequestFilterSensitiveLog: (obj: UpdatePatchBaselineRequest) => any; -/** - * @internal - */ -export declare const UpdatePatchBaselineResultFilterSensitiveLog: (obj: UpdatePatchBaselineResult) => any; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeActivationsPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeActivationsPaginator.d.ts deleted file mode 100644 index 0385a816..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeActivationsPaginator.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { DescribeActivationsCommandInput, DescribeActivationsCommandOutput } from "../commands/DescribeActivationsCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -/** - * @public - */ -export declare function paginateDescribeActivations(config: SSMPaginationConfiguration, input: DescribeActivationsCommandInput, ...additionalArguments: any): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeAssociationExecutionTargetsPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeAssociationExecutionTargetsPaginator.d.ts deleted file mode 100644 index bc6ff7d3..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeAssociationExecutionTargetsPaginator.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { DescribeAssociationExecutionTargetsCommandInput, DescribeAssociationExecutionTargetsCommandOutput } from "../commands/DescribeAssociationExecutionTargetsCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -/** - * @public - */ -export declare function paginateDescribeAssociationExecutionTargets(config: SSMPaginationConfiguration, input: DescribeAssociationExecutionTargetsCommandInput, ...additionalArguments: any): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeAssociationExecutionsPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeAssociationExecutionsPaginator.d.ts deleted file mode 100644 index 77954909..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeAssociationExecutionsPaginator.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { DescribeAssociationExecutionsCommandInput, DescribeAssociationExecutionsCommandOutput } from "../commands/DescribeAssociationExecutionsCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -/** - * @public - */ -export declare function paginateDescribeAssociationExecutions(config: SSMPaginationConfiguration, input: DescribeAssociationExecutionsCommandInput, ...additionalArguments: any): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeAutomationExecutionsPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeAutomationExecutionsPaginator.d.ts deleted file mode 100644 index 332e64a2..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeAutomationExecutionsPaginator.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { DescribeAutomationExecutionsCommandInput, DescribeAutomationExecutionsCommandOutput } from "../commands/DescribeAutomationExecutionsCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -/** - * @public - */ -export declare function paginateDescribeAutomationExecutions(config: SSMPaginationConfiguration, input: DescribeAutomationExecutionsCommandInput, ...additionalArguments: any): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeAutomationStepExecutionsPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeAutomationStepExecutionsPaginator.d.ts deleted file mode 100644 index cceadacc..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeAutomationStepExecutionsPaginator.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { DescribeAutomationStepExecutionsCommandInput, DescribeAutomationStepExecutionsCommandOutput } from "../commands/DescribeAutomationStepExecutionsCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -/** - * @public - */ -export declare function paginateDescribeAutomationStepExecutions(config: SSMPaginationConfiguration, input: DescribeAutomationStepExecutionsCommandInput, ...additionalArguments: any): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeAvailablePatchesPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeAvailablePatchesPaginator.d.ts deleted file mode 100644 index d882af20..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeAvailablePatchesPaginator.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { DescribeAvailablePatchesCommandInput, DescribeAvailablePatchesCommandOutput } from "../commands/DescribeAvailablePatchesCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -/** - * @public - */ -export declare function paginateDescribeAvailablePatches(config: SSMPaginationConfiguration, input: DescribeAvailablePatchesCommandInput, ...additionalArguments: any): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeEffectiveInstanceAssociationsPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeEffectiveInstanceAssociationsPaginator.d.ts deleted file mode 100644 index 5aec0686..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeEffectiveInstanceAssociationsPaginator.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { DescribeEffectiveInstanceAssociationsCommandInput, DescribeEffectiveInstanceAssociationsCommandOutput } from "../commands/DescribeEffectiveInstanceAssociationsCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -/** - * @public - */ -export declare function paginateDescribeEffectiveInstanceAssociations(config: SSMPaginationConfiguration, input: DescribeEffectiveInstanceAssociationsCommandInput, ...additionalArguments: any): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeEffectivePatchesForPatchBaselinePaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeEffectivePatchesForPatchBaselinePaginator.d.ts deleted file mode 100644 index f33693e9..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeEffectivePatchesForPatchBaselinePaginator.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { DescribeEffectivePatchesForPatchBaselineCommandInput, DescribeEffectivePatchesForPatchBaselineCommandOutput } from "../commands/DescribeEffectivePatchesForPatchBaselineCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -/** - * @public - */ -export declare function paginateDescribeEffectivePatchesForPatchBaseline(config: SSMPaginationConfiguration, input: DescribeEffectivePatchesForPatchBaselineCommandInput, ...additionalArguments: any): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeInstanceAssociationsStatusPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeInstanceAssociationsStatusPaginator.d.ts deleted file mode 100644 index 128ad27e..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeInstanceAssociationsStatusPaginator.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { DescribeInstanceAssociationsStatusCommandInput, DescribeInstanceAssociationsStatusCommandOutput } from "../commands/DescribeInstanceAssociationsStatusCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -/** - * @public - */ -export declare function paginateDescribeInstanceAssociationsStatus(config: SSMPaginationConfiguration, input: DescribeInstanceAssociationsStatusCommandInput, ...additionalArguments: any): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeInstanceInformationPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeInstanceInformationPaginator.d.ts deleted file mode 100644 index 18101b1f..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeInstanceInformationPaginator.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { DescribeInstanceInformationCommandInput, DescribeInstanceInformationCommandOutput } from "../commands/DescribeInstanceInformationCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -/** - * @public - */ -export declare function paginateDescribeInstanceInformation(config: SSMPaginationConfiguration, input: DescribeInstanceInformationCommandInput, ...additionalArguments: any): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeInstancePatchStatesForPatchGroupPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeInstancePatchStatesForPatchGroupPaginator.d.ts deleted file mode 100644 index 2afee2f7..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeInstancePatchStatesForPatchGroupPaginator.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { DescribeInstancePatchStatesForPatchGroupCommandInput, DescribeInstancePatchStatesForPatchGroupCommandOutput } from "../commands/DescribeInstancePatchStatesForPatchGroupCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -/** - * @public - */ -export declare function paginateDescribeInstancePatchStatesForPatchGroup(config: SSMPaginationConfiguration, input: DescribeInstancePatchStatesForPatchGroupCommandInput, ...additionalArguments: any): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeInstancePatchStatesPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeInstancePatchStatesPaginator.d.ts deleted file mode 100644 index a290aef0..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeInstancePatchStatesPaginator.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { DescribeInstancePatchStatesCommandInput, DescribeInstancePatchStatesCommandOutput } from "../commands/DescribeInstancePatchStatesCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -/** - * @public - */ -export declare function paginateDescribeInstancePatchStates(config: SSMPaginationConfiguration, input: DescribeInstancePatchStatesCommandInput, ...additionalArguments: any): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeInstancePatchesPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeInstancePatchesPaginator.d.ts deleted file mode 100644 index 58cb1612..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeInstancePatchesPaginator.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { DescribeInstancePatchesCommandInput, DescribeInstancePatchesCommandOutput } from "../commands/DescribeInstancePatchesCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -/** - * @public - */ -export declare function paginateDescribeInstancePatches(config: SSMPaginationConfiguration, input: DescribeInstancePatchesCommandInput, ...additionalArguments: any): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeInventoryDeletionsPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeInventoryDeletionsPaginator.d.ts deleted file mode 100644 index 01ba28c2..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeInventoryDeletionsPaginator.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { DescribeInventoryDeletionsCommandInput, DescribeInventoryDeletionsCommandOutput } from "../commands/DescribeInventoryDeletionsCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -/** - * @public - */ -export declare function paginateDescribeInventoryDeletions(config: SSMPaginationConfiguration, input: DescribeInventoryDeletionsCommandInput, ...additionalArguments: any): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeMaintenanceWindowExecutionTaskInvocationsPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeMaintenanceWindowExecutionTaskInvocationsPaginator.d.ts deleted file mode 100644 index ffa26e39..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeMaintenanceWindowExecutionTaskInvocationsPaginator.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { DescribeMaintenanceWindowExecutionTaskInvocationsCommandInput, DescribeMaintenanceWindowExecutionTaskInvocationsCommandOutput } from "../commands/DescribeMaintenanceWindowExecutionTaskInvocationsCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -/** - * @public - */ -export declare function paginateDescribeMaintenanceWindowExecutionTaskInvocations(config: SSMPaginationConfiguration, input: DescribeMaintenanceWindowExecutionTaskInvocationsCommandInput, ...additionalArguments: any): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeMaintenanceWindowExecutionTasksPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeMaintenanceWindowExecutionTasksPaginator.d.ts deleted file mode 100644 index 1a4e1da9..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeMaintenanceWindowExecutionTasksPaginator.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { DescribeMaintenanceWindowExecutionTasksCommandInput, DescribeMaintenanceWindowExecutionTasksCommandOutput } from "../commands/DescribeMaintenanceWindowExecutionTasksCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -/** - * @public - */ -export declare function paginateDescribeMaintenanceWindowExecutionTasks(config: SSMPaginationConfiguration, input: DescribeMaintenanceWindowExecutionTasksCommandInput, ...additionalArguments: any): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeMaintenanceWindowExecutionsPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeMaintenanceWindowExecutionsPaginator.d.ts deleted file mode 100644 index 0fe24b49..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeMaintenanceWindowExecutionsPaginator.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { DescribeMaintenanceWindowExecutionsCommandInput, DescribeMaintenanceWindowExecutionsCommandOutput } from "../commands/DescribeMaintenanceWindowExecutionsCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -/** - * @public - */ -export declare function paginateDescribeMaintenanceWindowExecutions(config: SSMPaginationConfiguration, input: DescribeMaintenanceWindowExecutionsCommandInput, ...additionalArguments: any): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeMaintenanceWindowSchedulePaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeMaintenanceWindowSchedulePaginator.d.ts deleted file mode 100644 index 8bc26ec4..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeMaintenanceWindowSchedulePaginator.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { DescribeMaintenanceWindowScheduleCommandInput, DescribeMaintenanceWindowScheduleCommandOutput } from "../commands/DescribeMaintenanceWindowScheduleCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -/** - * @public - */ -export declare function paginateDescribeMaintenanceWindowSchedule(config: SSMPaginationConfiguration, input: DescribeMaintenanceWindowScheduleCommandInput, ...additionalArguments: any): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeMaintenanceWindowTargetsPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeMaintenanceWindowTargetsPaginator.d.ts deleted file mode 100644 index 52730d43..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeMaintenanceWindowTargetsPaginator.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { DescribeMaintenanceWindowTargetsCommandInput, DescribeMaintenanceWindowTargetsCommandOutput } from "../commands/DescribeMaintenanceWindowTargetsCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -/** - * @public - */ -export declare function paginateDescribeMaintenanceWindowTargets(config: SSMPaginationConfiguration, input: DescribeMaintenanceWindowTargetsCommandInput, ...additionalArguments: any): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeMaintenanceWindowTasksPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeMaintenanceWindowTasksPaginator.d.ts deleted file mode 100644 index 2a246197..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeMaintenanceWindowTasksPaginator.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { DescribeMaintenanceWindowTasksCommandInput, DescribeMaintenanceWindowTasksCommandOutput } from "../commands/DescribeMaintenanceWindowTasksCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -/** - * @public - */ -export declare function paginateDescribeMaintenanceWindowTasks(config: SSMPaginationConfiguration, input: DescribeMaintenanceWindowTasksCommandInput, ...additionalArguments: any): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeMaintenanceWindowsForTargetPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeMaintenanceWindowsForTargetPaginator.d.ts deleted file mode 100644 index b7c51d6d..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeMaintenanceWindowsForTargetPaginator.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { DescribeMaintenanceWindowsForTargetCommandInput, DescribeMaintenanceWindowsForTargetCommandOutput } from "../commands/DescribeMaintenanceWindowsForTargetCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -/** - * @public - */ -export declare function paginateDescribeMaintenanceWindowsForTarget(config: SSMPaginationConfiguration, input: DescribeMaintenanceWindowsForTargetCommandInput, ...additionalArguments: any): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeMaintenanceWindowsPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeMaintenanceWindowsPaginator.d.ts deleted file mode 100644 index 2b5d58d5..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeMaintenanceWindowsPaginator.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { DescribeMaintenanceWindowsCommandInput, DescribeMaintenanceWindowsCommandOutput } from "../commands/DescribeMaintenanceWindowsCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -/** - * @public - */ -export declare function paginateDescribeMaintenanceWindows(config: SSMPaginationConfiguration, input: DescribeMaintenanceWindowsCommandInput, ...additionalArguments: any): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeOpsItemsPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeOpsItemsPaginator.d.ts deleted file mode 100644 index 36312a56..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeOpsItemsPaginator.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { DescribeOpsItemsCommandInput, DescribeOpsItemsCommandOutput } from "../commands/DescribeOpsItemsCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -/** - * @public - */ -export declare function paginateDescribeOpsItems(config: SSMPaginationConfiguration, input: DescribeOpsItemsCommandInput, ...additionalArguments: any): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeParametersPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeParametersPaginator.d.ts deleted file mode 100644 index 036c8d57..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeParametersPaginator.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { DescribeParametersCommandInput, DescribeParametersCommandOutput } from "../commands/DescribeParametersCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -/** - * @public - */ -export declare function paginateDescribeParameters(config: SSMPaginationConfiguration, input: DescribeParametersCommandInput, ...additionalArguments: any): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribePatchBaselinesPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribePatchBaselinesPaginator.d.ts deleted file mode 100644 index 7cd2a008..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribePatchBaselinesPaginator.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { DescribePatchBaselinesCommandInput, DescribePatchBaselinesCommandOutput } from "../commands/DescribePatchBaselinesCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -/** - * @public - */ -export declare function paginateDescribePatchBaselines(config: SSMPaginationConfiguration, input: DescribePatchBaselinesCommandInput, ...additionalArguments: any): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribePatchGroupsPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribePatchGroupsPaginator.d.ts deleted file mode 100644 index 4eecc811..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribePatchGroupsPaginator.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { DescribePatchGroupsCommandInput, DescribePatchGroupsCommandOutput } from "../commands/DescribePatchGroupsCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -/** - * @public - */ -export declare function paginateDescribePatchGroups(config: SSMPaginationConfiguration, input: DescribePatchGroupsCommandInput, ...additionalArguments: any): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribePatchPropertiesPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribePatchPropertiesPaginator.d.ts deleted file mode 100644 index af39badd..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribePatchPropertiesPaginator.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { DescribePatchPropertiesCommandInput, DescribePatchPropertiesCommandOutput } from "../commands/DescribePatchPropertiesCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -/** - * @public - */ -export declare function paginateDescribePatchProperties(config: SSMPaginationConfiguration, input: DescribePatchPropertiesCommandInput, ...additionalArguments: any): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeSessionsPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeSessionsPaginator.d.ts deleted file mode 100644 index cef45e00..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/DescribeSessionsPaginator.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { DescribeSessionsCommandInput, DescribeSessionsCommandOutput } from "../commands/DescribeSessionsCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -/** - * @public - */ -export declare function paginateDescribeSessions(config: SSMPaginationConfiguration, input: DescribeSessionsCommandInput, ...additionalArguments: any): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/GetInventoryPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/pagination/GetInventoryPaginator.d.ts deleted file mode 100644 index eaca9492..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/GetInventoryPaginator.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { GetInventoryCommandInput, GetInventoryCommandOutput } from "../commands/GetInventoryCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -/** - * @public - */ -export declare function paginateGetInventory(config: SSMPaginationConfiguration, input: GetInventoryCommandInput, ...additionalArguments: any): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/GetInventorySchemaPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/pagination/GetInventorySchemaPaginator.d.ts deleted file mode 100644 index f3dc504d..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/GetInventorySchemaPaginator.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { GetInventorySchemaCommandInput, GetInventorySchemaCommandOutput } from "../commands/GetInventorySchemaCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -/** - * @public - */ -export declare function paginateGetInventorySchema(config: SSMPaginationConfiguration, input: GetInventorySchemaCommandInput, ...additionalArguments: any): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/GetOpsSummaryPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/pagination/GetOpsSummaryPaginator.d.ts deleted file mode 100644 index aa2802f5..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/GetOpsSummaryPaginator.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { GetOpsSummaryCommandInput, GetOpsSummaryCommandOutput } from "../commands/GetOpsSummaryCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -/** - * @public - */ -export declare function paginateGetOpsSummary(config: SSMPaginationConfiguration, input: GetOpsSummaryCommandInput, ...additionalArguments: any): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/GetParameterHistoryPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/pagination/GetParameterHistoryPaginator.d.ts deleted file mode 100644 index de5e5034..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/GetParameterHistoryPaginator.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { GetParameterHistoryCommandInput, GetParameterHistoryCommandOutput } from "../commands/GetParameterHistoryCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -/** - * @public - */ -export declare function paginateGetParameterHistory(config: SSMPaginationConfiguration, input: GetParameterHistoryCommandInput, ...additionalArguments: any): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/GetParametersByPathPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/pagination/GetParametersByPathPaginator.d.ts deleted file mode 100644 index 43e67cf5..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/GetParametersByPathPaginator.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { GetParametersByPathCommandInput, GetParametersByPathCommandOutput } from "../commands/GetParametersByPathCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -/** - * @public - */ -export declare function paginateGetParametersByPath(config: SSMPaginationConfiguration, input: GetParametersByPathCommandInput, ...additionalArguments: any): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/GetResourcePoliciesPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/pagination/GetResourcePoliciesPaginator.d.ts deleted file mode 100644 index 7e78bb6e..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/GetResourcePoliciesPaginator.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { GetResourcePoliciesCommandInput, GetResourcePoliciesCommandOutput } from "../commands/GetResourcePoliciesCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -/** - * @public - */ -export declare function paginateGetResourcePolicies(config: SSMPaginationConfiguration, input: GetResourcePoliciesCommandInput, ...additionalArguments: any): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/Interfaces.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/pagination/Interfaces.d.ts deleted file mode 100644 index f46bd5e1..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/Interfaces.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { PaginationConfiguration } from "@smithy/types"; -import { SSMClient } from "../SSMClient"; -/** - * @public - */ -export interface SSMPaginationConfiguration extends PaginationConfiguration { - client: SSMClient; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/ListAssociationVersionsPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/pagination/ListAssociationVersionsPaginator.d.ts deleted file mode 100644 index 5ac0317e..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/ListAssociationVersionsPaginator.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { ListAssociationVersionsCommandInput, ListAssociationVersionsCommandOutput } from "../commands/ListAssociationVersionsCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -/** - * @public - */ -export declare function paginateListAssociationVersions(config: SSMPaginationConfiguration, input: ListAssociationVersionsCommandInput, ...additionalArguments: any): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/ListAssociationsPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/pagination/ListAssociationsPaginator.d.ts deleted file mode 100644 index f637cc6a..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/ListAssociationsPaginator.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { ListAssociationsCommandInput, ListAssociationsCommandOutput } from "../commands/ListAssociationsCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -/** - * @public - */ -export declare function paginateListAssociations(config: SSMPaginationConfiguration, input: ListAssociationsCommandInput, ...additionalArguments: any): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/ListCommandInvocationsPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/pagination/ListCommandInvocationsPaginator.d.ts deleted file mode 100644 index 1b8709b4..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/ListCommandInvocationsPaginator.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { ListCommandInvocationsCommandInput, ListCommandInvocationsCommandOutput } from "../commands/ListCommandInvocationsCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -/** - * @public - */ -export declare function paginateListCommandInvocations(config: SSMPaginationConfiguration, input: ListCommandInvocationsCommandInput, ...additionalArguments: any): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/ListCommandsPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/pagination/ListCommandsPaginator.d.ts deleted file mode 100644 index f89f36d5..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/ListCommandsPaginator.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { ListCommandsCommandInput, ListCommandsCommandOutput } from "../commands/ListCommandsCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -/** - * @public - */ -export declare function paginateListCommands(config: SSMPaginationConfiguration, input: ListCommandsCommandInput, ...additionalArguments: any): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/ListComplianceItemsPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/pagination/ListComplianceItemsPaginator.d.ts deleted file mode 100644 index ca6dd829..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/ListComplianceItemsPaginator.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { ListComplianceItemsCommandInput, ListComplianceItemsCommandOutput } from "../commands/ListComplianceItemsCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -/** - * @public - */ -export declare function paginateListComplianceItems(config: SSMPaginationConfiguration, input: ListComplianceItemsCommandInput, ...additionalArguments: any): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/ListComplianceSummariesPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/pagination/ListComplianceSummariesPaginator.d.ts deleted file mode 100644 index f8d4852f..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/ListComplianceSummariesPaginator.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { ListComplianceSummariesCommandInput, ListComplianceSummariesCommandOutput } from "../commands/ListComplianceSummariesCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -/** - * @public - */ -export declare function paginateListComplianceSummaries(config: SSMPaginationConfiguration, input: ListComplianceSummariesCommandInput, ...additionalArguments: any): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/ListDocumentVersionsPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/pagination/ListDocumentVersionsPaginator.d.ts deleted file mode 100644 index 72946575..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/ListDocumentVersionsPaginator.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { ListDocumentVersionsCommandInput, ListDocumentVersionsCommandOutput } from "../commands/ListDocumentVersionsCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -/** - * @public - */ -export declare function paginateListDocumentVersions(config: SSMPaginationConfiguration, input: ListDocumentVersionsCommandInput, ...additionalArguments: any): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/ListDocumentsPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/pagination/ListDocumentsPaginator.d.ts deleted file mode 100644 index 745a9a3e..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/ListDocumentsPaginator.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { ListDocumentsCommandInput, ListDocumentsCommandOutput } from "../commands/ListDocumentsCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -/** - * @public - */ -export declare function paginateListDocuments(config: SSMPaginationConfiguration, input: ListDocumentsCommandInput, ...additionalArguments: any): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/ListOpsItemEventsPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/pagination/ListOpsItemEventsPaginator.d.ts deleted file mode 100644 index aa3a5130..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/ListOpsItemEventsPaginator.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { ListOpsItemEventsCommandInput, ListOpsItemEventsCommandOutput } from "../commands/ListOpsItemEventsCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -/** - * @public - */ -export declare function paginateListOpsItemEvents(config: SSMPaginationConfiguration, input: ListOpsItemEventsCommandInput, ...additionalArguments: any): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/ListOpsItemRelatedItemsPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/pagination/ListOpsItemRelatedItemsPaginator.d.ts deleted file mode 100644 index c4434fe6..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/ListOpsItemRelatedItemsPaginator.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { ListOpsItemRelatedItemsCommandInput, ListOpsItemRelatedItemsCommandOutput } from "../commands/ListOpsItemRelatedItemsCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -/** - * @public - */ -export declare function paginateListOpsItemRelatedItems(config: SSMPaginationConfiguration, input: ListOpsItemRelatedItemsCommandInput, ...additionalArguments: any): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/ListOpsMetadataPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/pagination/ListOpsMetadataPaginator.d.ts deleted file mode 100644 index ebbcd1dd..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/ListOpsMetadataPaginator.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { ListOpsMetadataCommandInput, ListOpsMetadataCommandOutput } from "../commands/ListOpsMetadataCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -/** - * @public - */ -export declare function paginateListOpsMetadata(config: SSMPaginationConfiguration, input: ListOpsMetadataCommandInput, ...additionalArguments: any): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/ListResourceComplianceSummariesPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/pagination/ListResourceComplianceSummariesPaginator.d.ts deleted file mode 100644 index cc9ca107..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/ListResourceComplianceSummariesPaginator.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { ListResourceComplianceSummariesCommandInput, ListResourceComplianceSummariesCommandOutput } from "../commands/ListResourceComplianceSummariesCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -/** - * @public - */ -export declare function paginateListResourceComplianceSummaries(config: SSMPaginationConfiguration, input: ListResourceComplianceSummariesCommandInput, ...additionalArguments: any): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/ListResourceDataSyncPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/pagination/ListResourceDataSyncPaginator.d.ts deleted file mode 100644 index 2dad4773..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/ListResourceDataSyncPaginator.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { ListResourceDataSyncCommandInput, ListResourceDataSyncCommandOutput } from "../commands/ListResourceDataSyncCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -/** - * @public - */ -export declare function paginateListResourceDataSync(config: SSMPaginationConfiguration, input: ListResourceDataSyncCommandInput, ...additionalArguments: any): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/index.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/pagination/index.d.ts deleted file mode 100644 index 7cb9faa7..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/pagination/index.d.ts +++ /dev/null @@ -1,48 +0,0 @@ -export * from "./DescribeActivationsPaginator"; -export * from "./DescribeAssociationExecutionTargetsPaginator"; -export * from "./DescribeAssociationExecutionsPaginator"; -export * from "./DescribeAutomationExecutionsPaginator"; -export * from "./DescribeAutomationStepExecutionsPaginator"; -export * from "./DescribeAvailablePatchesPaginator"; -export * from "./DescribeEffectiveInstanceAssociationsPaginator"; -export * from "./DescribeEffectivePatchesForPatchBaselinePaginator"; -export * from "./DescribeInstanceAssociationsStatusPaginator"; -export * from "./DescribeInstanceInformationPaginator"; -export * from "./Interfaces"; -export * from "./DescribeInstancePatchStatesForPatchGroupPaginator"; -export * from "./DescribeInstancePatchStatesPaginator"; -export * from "./DescribeInstancePatchesPaginator"; -export * from "./DescribeInventoryDeletionsPaginator"; -export * from "./DescribeMaintenanceWindowExecutionTaskInvocationsPaginator"; -export * from "./DescribeMaintenanceWindowExecutionTasksPaginator"; -export * from "./DescribeMaintenanceWindowExecutionsPaginator"; -export * from "./DescribeMaintenanceWindowSchedulePaginator"; -export * from "./DescribeMaintenanceWindowTargetsPaginator"; -export * from "./DescribeMaintenanceWindowTasksPaginator"; -export * from "./DescribeMaintenanceWindowsForTargetPaginator"; -export * from "./DescribeMaintenanceWindowsPaginator"; -export * from "./DescribeOpsItemsPaginator"; -export * from "./DescribeParametersPaginator"; -export * from "./DescribePatchBaselinesPaginator"; -export * from "./DescribePatchGroupsPaginator"; -export * from "./DescribePatchPropertiesPaginator"; -export * from "./DescribeSessionsPaginator"; -export * from "./GetInventoryPaginator"; -export * from "./GetInventorySchemaPaginator"; -export * from "./GetOpsSummaryPaginator"; -export * from "./GetParameterHistoryPaginator"; -export * from "./GetParametersByPathPaginator"; -export * from "./GetResourcePoliciesPaginator"; -export * from "./ListAssociationVersionsPaginator"; -export * from "./ListAssociationsPaginator"; -export * from "./ListCommandInvocationsPaginator"; -export * from "./ListCommandsPaginator"; -export * from "./ListComplianceItemsPaginator"; -export * from "./ListComplianceSummariesPaginator"; -export * from "./ListDocumentVersionsPaginator"; -export * from "./ListDocumentsPaginator"; -export * from "./ListOpsItemEventsPaginator"; -export * from "./ListOpsItemRelatedItemsPaginator"; -export * from "./ListOpsMetadataPaginator"; -export * from "./ListResourceComplianceSummariesPaginator"; -export * from "./ListResourceDataSyncPaginator"; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/protocols/Aws_json1_1.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/protocols/Aws_json1_1.d.ts deleted file mode 100644 index c4f5f3d1..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/protocols/Aws_json1_1.d.ts +++ /dev/null @@ -1,1253 +0,0 @@ -import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; -import { SerdeContext as __SerdeContext } from "@smithy/types"; -import { AddTagsToResourceCommandInput, AddTagsToResourceCommandOutput } from "../commands/AddTagsToResourceCommand"; -import { AssociateOpsItemRelatedItemCommandInput, AssociateOpsItemRelatedItemCommandOutput } from "../commands/AssociateOpsItemRelatedItemCommand"; -import { CancelCommandCommandInput, CancelCommandCommandOutput } from "../commands/CancelCommandCommand"; -import { CancelMaintenanceWindowExecutionCommandInput, CancelMaintenanceWindowExecutionCommandOutput } from "../commands/CancelMaintenanceWindowExecutionCommand"; -import { CreateActivationCommandInput, CreateActivationCommandOutput } from "../commands/CreateActivationCommand"; -import { CreateAssociationBatchCommandInput, CreateAssociationBatchCommandOutput } from "../commands/CreateAssociationBatchCommand"; -import { CreateAssociationCommandInput, CreateAssociationCommandOutput } from "../commands/CreateAssociationCommand"; -import { CreateDocumentCommandInput, CreateDocumentCommandOutput } from "../commands/CreateDocumentCommand"; -import { CreateMaintenanceWindowCommandInput, CreateMaintenanceWindowCommandOutput } from "../commands/CreateMaintenanceWindowCommand"; -import { CreateOpsItemCommandInput, CreateOpsItemCommandOutput } from "../commands/CreateOpsItemCommand"; -import { CreateOpsMetadataCommandInput, CreateOpsMetadataCommandOutput } from "../commands/CreateOpsMetadataCommand"; -import { CreatePatchBaselineCommandInput, CreatePatchBaselineCommandOutput } from "../commands/CreatePatchBaselineCommand"; -import { CreateResourceDataSyncCommandInput, CreateResourceDataSyncCommandOutput } from "../commands/CreateResourceDataSyncCommand"; -import { DeleteActivationCommandInput, DeleteActivationCommandOutput } from "../commands/DeleteActivationCommand"; -import { DeleteAssociationCommandInput, DeleteAssociationCommandOutput } from "../commands/DeleteAssociationCommand"; -import { DeleteDocumentCommandInput, DeleteDocumentCommandOutput } from "../commands/DeleteDocumentCommand"; -import { DeleteInventoryCommandInput, DeleteInventoryCommandOutput } from "../commands/DeleteInventoryCommand"; -import { DeleteMaintenanceWindowCommandInput, DeleteMaintenanceWindowCommandOutput } from "../commands/DeleteMaintenanceWindowCommand"; -import { DeleteOpsItemCommandInput, DeleteOpsItemCommandOutput } from "../commands/DeleteOpsItemCommand"; -import { DeleteOpsMetadataCommandInput, DeleteOpsMetadataCommandOutput } from "../commands/DeleteOpsMetadataCommand"; -import { DeleteParameterCommandInput, DeleteParameterCommandOutput } from "../commands/DeleteParameterCommand"; -import { DeleteParametersCommandInput, DeleteParametersCommandOutput } from "../commands/DeleteParametersCommand"; -import { DeletePatchBaselineCommandInput, DeletePatchBaselineCommandOutput } from "../commands/DeletePatchBaselineCommand"; -import { DeleteResourceDataSyncCommandInput, DeleteResourceDataSyncCommandOutput } from "../commands/DeleteResourceDataSyncCommand"; -import { DeleteResourcePolicyCommandInput, DeleteResourcePolicyCommandOutput } from "../commands/DeleteResourcePolicyCommand"; -import { DeregisterManagedInstanceCommandInput, DeregisterManagedInstanceCommandOutput } from "../commands/DeregisterManagedInstanceCommand"; -import { DeregisterPatchBaselineForPatchGroupCommandInput, DeregisterPatchBaselineForPatchGroupCommandOutput } from "../commands/DeregisterPatchBaselineForPatchGroupCommand"; -import { DeregisterTargetFromMaintenanceWindowCommandInput, DeregisterTargetFromMaintenanceWindowCommandOutput } from "../commands/DeregisterTargetFromMaintenanceWindowCommand"; -import { DeregisterTaskFromMaintenanceWindowCommandInput, DeregisterTaskFromMaintenanceWindowCommandOutput } from "../commands/DeregisterTaskFromMaintenanceWindowCommand"; -import { DescribeActivationsCommandInput, DescribeActivationsCommandOutput } from "../commands/DescribeActivationsCommand"; -import { DescribeAssociationCommandInput, DescribeAssociationCommandOutput } from "../commands/DescribeAssociationCommand"; -import { DescribeAssociationExecutionsCommandInput, DescribeAssociationExecutionsCommandOutput } from "../commands/DescribeAssociationExecutionsCommand"; -import { DescribeAssociationExecutionTargetsCommandInput, DescribeAssociationExecutionTargetsCommandOutput } from "../commands/DescribeAssociationExecutionTargetsCommand"; -import { DescribeAutomationExecutionsCommandInput, DescribeAutomationExecutionsCommandOutput } from "../commands/DescribeAutomationExecutionsCommand"; -import { DescribeAutomationStepExecutionsCommandInput, DescribeAutomationStepExecutionsCommandOutput } from "../commands/DescribeAutomationStepExecutionsCommand"; -import { DescribeAvailablePatchesCommandInput, DescribeAvailablePatchesCommandOutput } from "../commands/DescribeAvailablePatchesCommand"; -import { DescribeDocumentCommandInput, DescribeDocumentCommandOutput } from "../commands/DescribeDocumentCommand"; -import { DescribeDocumentPermissionCommandInput, DescribeDocumentPermissionCommandOutput } from "../commands/DescribeDocumentPermissionCommand"; -import { DescribeEffectiveInstanceAssociationsCommandInput, DescribeEffectiveInstanceAssociationsCommandOutput } from "../commands/DescribeEffectiveInstanceAssociationsCommand"; -import { DescribeEffectivePatchesForPatchBaselineCommandInput, DescribeEffectivePatchesForPatchBaselineCommandOutput } from "../commands/DescribeEffectivePatchesForPatchBaselineCommand"; -import { DescribeInstanceAssociationsStatusCommandInput, DescribeInstanceAssociationsStatusCommandOutput } from "../commands/DescribeInstanceAssociationsStatusCommand"; -import { DescribeInstanceInformationCommandInput, DescribeInstanceInformationCommandOutput } from "../commands/DescribeInstanceInformationCommand"; -import { DescribeInstancePatchesCommandInput, DescribeInstancePatchesCommandOutput } from "../commands/DescribeInstancePatchesCommand"; -import { DescribeInstancePatchStatesCommandInput, DescribeInstancePatchStatesCommandOutput } from "../commands/DescribeInstancePatchStatesCommand"; -import { DescribeInstancePatchStatesForPatchGroupCommandInput, DescribeInstancePatchStatesForPatchGroupCommandOutput } from "../commands/DescribeInstancePatchStatesForPatchGroupCommand"; -import { DescribeInventoryDeletionsCommandInput, DescribeInventoryDeletionsCommandOutput } from "../commands/DescribeInventoryDeletionsCommand"; -import { DescribeMaintenanceWindowExecutionsCommandInput, DescribeMaintenanceWindowExecutionsCommandOutput } from "../commands/DescribeMaintenanceWindowExecutionsCommand"; -import { DescribeMaintenanceWindowExecutionTaskInvocationsCommandInput, DescribeMaintenanceWindowExecutionTaskInvocationsCommandOutput } from "../commands/DescribeMaintenanceWindowExecutionTaskInvocationsCommand"; -import { DescribeMaintenanceWindowExecutionTasksCommandInput, DescribeMaintenanceWindowExecutionTasksCommandOutput } from "../commands/DescribeMaintenanceWindowExecutionTasksCommand"; -import { DescribeMaintenanceWindowScheduleCommandInput, DescribeMaintenanceWindowScheduleCommandOutput } from "../commands/DescribeMaintenanceWindowScheduleCommand"; -import { DescribeMaintenanceWindowsCommandInput, DescribeMaintenanceWindowsCommandOutput } from "../commands/DescribeMaintenanceWindowsCommand"; -import { DescribeMaintenanceWindowsForTargetCommandInput, DescribeMaintenanceWindowsForTargetCommandOutput } from "../commands/DescribeMaintenanceWindowsForTargetCommand"; -import { DescribeMaintenanceWindowTargetsCommandInput, DescribeMaintenanceWindowTargetsCommandOutput } from "../commands/DescribeMaintenanceWindowTargetsCommand"; -import { DescribeMaintenanceWindowTasksCommandInput, DescribeMaintenanceWindowTasksCommandOutput } from "../commands/DescribeMaintenanceWindowTasksCommand"; -import { DescribeOpsItemsCommandInput, DescribeOpsItemsCommandOutput } from "../commands/DescribeOpsItemsCommand"; -import { DescribeParametersCommandInput, DescribeParametersCommandOutput } from "../commands/DescribeParametersCommand"; -import { DescribePatchBaselinesCommandInput, DescribePatchBaselinesCommandOutput } from "../commands/DescribePatchBaselinesCommand"; -import { DescribePatchGroupsCommandInput, DescribePatchGroupsCommandOutput } from "../commands/DescribePatchGroupsCommand"; -import { DescribePatchGroupStateCommandInput, DescribePatchGroupStateCommandOutput } from "../commands/DescribePatchGroupStateCommand"; -import { DescribePatchPropertiesCommandInput, DescribePatchPropertiesCommandOutput } from "../commands/DescribePatchPropertiesCommand"; -import { DescribeSessionsCommandInput, DescribeSessionsCommandOutput } from "../commands/DescribeSessionsCommand"; -import { DisassociateOpsItemRelatedItemCommandInput, DisassociateOpsItemRelatedItemCommandOutput } from "../commands/DisassociateOpsItemRelatedItemCommand"; -import { GetAutomationExecutionCommandInput, GetAutomationExecutionCommandOutput } from "../commands/GetAutomationExecutionCommand"; -import { GetCalendarStateCommandInput, GetCalendarStateCommandOutput } from "../commands/GetCalendarStateCommand"; -import { GetCommandInvocationCommandInput, GetCommandInvocationCommandOutput } from "../commands/GetCommandInvocationCommand"; -import { GetConnectionStatusCommandInput, GetConnectionStatusCommandOutput } from "../commands/GetConnectionStatusCommand"; -import { GetDefaultPatchBaselineCommandInput, GetDefaultPatchBaselineCommandOutput } from "../commands/GetDefaultPatchBaselineCommand"; -import { GetDeployablePatchSnapshotForInstanceCommandInput, GetDeployablePatchSnapshotForInstanceCommandOutput } from "../commands/GetDeployablePatchSnapshotForInstanceCommand"; -import { GetDocumentCommandInput, GetDocumentCommandOutput } from "../commands/GetDocumentCommand"; -import { GetInventoryCommandInput, GetInventoryCommandOutput } from "../commands/GetInventoryCommand"; -import { GetInventorySchemaCommandInput, GetInventorySchemaCommandOutput } from "../commands/GetInventorySchemaCommand"; -import { GetMaintenanceWindowCommandInput, GetMaintenanceWindowCommandOutput } from "../commands/GetMaintenanceWindowCommand"; -import { GetMaintenanceWindowExecutionCommandInput, GetMaintenanceWindowExecutionCommandOutput } from "../commands/GetMaintenanceWindowExecutionCommand"; -import { GetMaintenanceWindowExecutionTaskCommandInput, GetMaintenanceWindowExecutionTaskCommandOutput } from "../commands/GetMaintenanceWindowExecutionTaskCommand"; -import { GetMaintenanceWindowExecutionTaskInvocationCommandInput, GetMaintenanceWindowExecutionTaskInvocationCommandOutput } from "../commands/GetMaintenanceWindowExecutionTaskInvocationCommand"; -import { GetMaintenanceWindowTaskCommandInput, GetMaintenanceWindowTaskCommandOutput } from "../commands/GetMaintenanceWindowTaskCommand"; -import { GetOpsItemCommandInput, GetOpsItemCommandOutput } from "../commands/GetOpsItemCommand"; -import { GetOpsMetadataCommandInput, GetOpsMetadataCommandOutput } from "../commands/GetOpsMetadataCommand"; -import { GetOpsSummaryCommandInput, GetOpsSummaryCommandOutput } from "../commands/GetOpsSummaryCommand"; -import { GetParameterCommandInput, GetParameterCommandOutput } from "../commands/GetParameterCommand"; -import { GetParameterHistoryCommandInput, GetParameterHistoryCommandOutput } from "../commands/GetParameterHistoryCommand"; -import { GetParametersByPathCommandInput, GetParametersByPathCommandOutput } from "../commands/GetParametersByPathCommand"; -import { GetParametersCommandInput, GetParametersCommandOutput } from "../commands/GetParametersCommand"; -import { GetPatchBaselineCommandInput, GetPatchBaselineCommandOutput } from "../commands/GetPatchBaselineCommand"; -import { GetPatchBaselineForPatchGroupCommandInput, GetPatchBaselineForPatchGroupCommandOutput } from "../commands/GetPatchBaselineForPatchGroupCommand"; -import { GetResourcePoliciesCommandInput, GetResourcePoliciesCommandOutput } from "../commands/GetResourcePoliciesCommand"; -import { GetServiceSettingCommandInput, GetServiceSettingCommandOutput } from "../commands/GetServiceSettingCommand"; -import { LabelParameterVersionCommandInput, LabelParameterVersionCommandOutput } from "../commands/LabelParameterVersionCommand"; -import { ListAssociationsCommandInput, ListAssociationsCommandOutput } from "../commands/ListAssociationsCommand"; -import { ListAssociationVersionsCommandInput, ListAssociationVersionsCommandOutput } from "../commands/ListAssociationVersionsCommand"; -import { ListCommandInvocationsCommandInput, ListCommandInvocationsCommandOutput } from "../commands/ListCommandInvocationsCommand"; -import { ListCommandsCommandInput, ListCommandsCommandOutput } from "../commands/ListCommandsCommand"; -import { ListComplianceItemsCommandInput, ListComplianceItemsCommandOutput } from "../commands/ListComplianceItemsCommand"; -import { ListComplianceSummariesCommandInput, ListComplianceSummariesCommandOutput } from "../commands/ListComplianceSummariesCommand"; -import { ListDocumentMetadataHistoryCommandInput, ListDocumentMetadataHistoryCommandOutput } from "../commands/ListDocumentMetadataHistoryCommand"; -import { ListDocumentsCommandInput, ListDocumentsCommandOutput } from "../commands/ListDocumentsCommand"; -import { ListDocumentVersionsCommandInput, ListDocumentVersionsCommandOutput } from "../commands/ListDocumentVersionsCommand"; -import { ListInventoryEntriesCommandInput, ListInventoryEntriesCommandOutput } from "../commands/ListInventoryEntriesCommand"; -import { ListOpsItemEventsCommandInput, ListOpsItemEventsCommandOutput } from "../commands/ListOpsItemEventsCommand"; -import { ListOpsItemRelatedItemsCommandInput, ListOpsItemRelatedItemsCommandOutput } from "../commands/ListOpsItemRelatedItemsCommand"; -import { ListOpsMetadataCommandInput, ListOpsMetadataCommandOutput } from "../commands/ListOpsMetadataCommand"; -import { ListResourceComplianceSummariesCommandInput, ListResourceComplianceSummariesCommandOutput } from "../commands/ListResourceComplianceSummariesCommand"; -import { ListResourceDataSyncCommandInput, ListResourceDataSyncCommandOutput } from "../commands/ListResourceDataSyncCommand"; -import { ListTagsForResourceCommandInput, ListTagsForResourceCommandOutput } from "../commands/ListTagsForResourceCommand"; -import { ModifyDocumentPermissionCommandInput, ModifyDocumentPermissionCommandOutput } from "../commands/ModifyDocumentPermissionCommand"; -import { PutComplianceItemsCommandInput, PutComplianceItemsCommandOutput } from "../commands/PutComplianceItemsCommand"; -import { PutInventoryCommandInput, PutInventoryCommandOutput } from "../commands/PutInventoryCommand"; -import { PutParameterCommandInput, PutParameterCommandOutput } from "../commands/PutParameterCommand"; -import { PutResourcePolicyCommandInput, PutResourcePolicyCommandOutput } from "../commands/PutResourcePolicyCommand"; -import { RegisterDefaultPatchBaselineCommandInput, RegisterDefaultPatchBaselineCommandOutput } from "../commands/RegisterDefaultPatchBaselineCommand"; -import { RegisterPatchBaselineForPatchGroupCommandInput, RegisterPatchBaselineForPatchGroupCommandOutput } from "../commands/RegisterPatchBaselineForPatchGroupCommand"; -import { RegisterTargetWithMaintenanceWindowCommandInput, RegisterTargetWithMaintenanceWindowCommandOutput } from "../commands/RegisterTargetWithMaintenanceWindowCommand"; -import { RegisterTaskWithMaintenanceWindowCommandInput, RegisterTaskWithMaintenanceWindowCommandOutput } from "../commands/RegisterTaskWithMaintenanceWindowCommand"; -import { RemoveTagsFromResourceCommandInput, RemoveTagsFromResourceCommandOutput } from "../commands/RemoveTagsFromResourceCommand"; -import { ResetServiceSettingCommandInput, ResetServiceSettingCommandOutput } from "../commands/ResetServiceSettingCommand"; -import { ResumeSessionCommandInput, ResumeSessionCommandOutput } from "../commands/ResumeSessionCommand"; -import { SendAutomationSignalCommandInput, SendAutomationSignalCommandOutput } from "../commands/SendAutomationSignalCommand"; -import { SendCommandCommandInput, SendCommandCommandOutput } from "../commands/SendCommandCommand"; -import { StartAssociationsOnceCommandInput, StartAssociationsOnceCommandOutput } from "../commands/StartAssociationsOnceCommand"; -import { StartAutomationExecutionCommandInput, StartAutomationExecutionCommandOutput } from "../commands/StartAutomationExecutionCommand"; -import { StartChangeRequestExecutionCommandInput, StartChangeRequestExecutionCommandOutput } from "../commands/StartChangeRequestExecutionCommand"; -import { StartSessionCommandInput, StartSessionCommandOutput } from "../commands/StartSessionCommand"; -import { StopAutomationExecutionCommandInput, StopAutomationExecutionCommandOutput } from "../commands/StopAutomationExecutionCommand"; -import { TerminateSessionCommandInput, TerminateSessionCommandOutput } from "../commands/TerminateSessionCommand"; -import { UnlabelParameterVersionCommandInput, UnlabelParameterVersionCommandOutput } from "../commands/UnlabelParameterVersionCommand"; -import { UpdateAssociationCommandInput, UpdateAssociationCommandOutput } from "../commands/UpdateAssociationCommand"; -import { UpdateAssociationStatusCommandInput, UpdateAssociationStatusCommandOutput } from "../commands/UpdateAssociationStatusCommand"; -import { UpdateDocumentCommandInput, UpdateDocumentCommandOutput } from "../commands/UpdateDocumentCommand"; -import { UpdateDocumentDefaultVersionCommandInput, UpdateDocumentDefaultVersionCommandOutput } from "../commands/UpdateDocumentDefaultVersionCommand"; -import { UpdateDocumentMetadataCommandInput, UpdateDocumentMetadataCommandOutput } from "../commands/UpdateDocumentMetadataCommand"; -import { UpdateMaintenanceWindowCommandInput, UpdateMaintenanceWindowCommandOutput } from "../commands/UpdateMaintenanceWindowCommand"; -import { UpdateMaintenanceWindowTargetCommandInput, UpdateMaintenanceWindowTargetCommandOutput } from "../commands/UpdateMaintenanceWindowTargetCommand"; -import { UpdateMaintenanceWindowTaskCommandInput, UpdateMaintenanceWindowTaskCommandOutput } from "../commands/UpdateMaintenanceWindowTaskCommand"; -import { UpdateManagedInstanceRoleCommandInput, UpdateManagedInstanceRoleCommandOutput } from "../commands/UpdateManagedInstanceRoleCommand"; -import { UpdateOpsItemCommandInput, UpdateOpsItemCommandOutput } from "../commands/UpdateOpsItemCommand"; -import { UpdateOpsMetadataCommandInput, UpdateOpsMetadataCommandOutput } from "../commands/UpdateOpsMetadataCommand"; -import { UpdatePatchBaselineCommandInput, UpdatePatchBaselineCommandOutput } from "../commands/UpdatePatchBaselineCommand"; -import { UpdateResourceDataSyncCommandInput, UpdateResourceDataSyncCommandOutput } from "../commands/UpdateResourceDataSyncCommand"; -import { UpdateServiceSettingCommandInput, UpdateServiceSettingCommandOutput } from "../commands/UpdateServiceSettingCommand"; -/** - * serializeAws_json1_1AddTagsToResourceCommand - */ -export declare const se_AddTagsToResourceCommand: (input: AddTagsToResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1AssociateOpsItemRelatedItemCommand - */ -export declare const se_AssociateOpsItemRelatedItemCommand: (input: AssociateOpsItemRelatedItemCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1CancelCommandCommand - */ -export declare const se_CancelCommandCommand: (input: CancelCommandCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1CancelMaintenanceWindowExecutionCommand - */ -export declare const se_CancelMaintenanceWindowExecutionCommand: (input: CancelMaintenanceWindowExecutionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1CreateActivationCommand - */ -export declare const se_CreateActivationCommand: (input: CreateActivationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1CreateAssociationCommand - */ -export declare const se_CreateAssociationCommand: (input: CreateAssociationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1CreateAssociationBatchCommand - */ -export declare const se_CreateAssociationBatchCommand: (input: CreateAssociationBatchCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1CreateDocumentCommand - */ -export declare const se_CreateDocumentCommand: (input: CreateDocumentCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1CreateMaintenanceWindowCommand - */ -export declare const se_CreateMaintenanceWindowCommand: (input: CreateMaintenanceWindowCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1CreateOpsItemCommand - */ -export declare const se_CreateOpsItemCommand: (input: CreateOpsItemCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1CreateOpsMetadataCommand - */ -export declare const se_CreateOpsMetadataCommand: (input: CreateOpsMetadataCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1CreatePatchBaselineCommand - */ -export declare const se_CreatePatchBaselineCommand: (input: CreatePatchBaselineCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1CreateResourceDataSyncCommand - */ -export declare const se_CreateResourceDataSyncCommand: (input: CreateResourceDataSyncCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1DeleteActivationCommand - */ -export declare const se_DeleteActivationCommand: (input: DeleteActivationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1DeleteAssociationCommand - */ -export declare const se_DeleteAssociationCommand: (input: DeleteAssociationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1DeleteDocumentCommand - */ -export declare const se_DeleteDocumentCommand: (input: DeleteDocumentCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1DeleteInventoryCommand - */ -export declare const se_DeleteInventoryCommand: (input: DeleteInventoryCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1DeleteMaintenanceWindowCommand - */ -export declare const se_DeleteMaintenanceWindowCommand: (input: DeleteMaintenanceWindowCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1DeleteOpsItemCommand - */ -export declare const se_DeleteOpsItemCommand: (input: DeleteOpsItemCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1DeleteOpsMetadataCommand - */ -export declare const se_DeleteOpsMetadataCommand: (input: DeleteOpsMetadataCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1DeleteParameterCommand - */ -export declare const se_DeleteParameterCommand: (input: DeleteParameterCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1DeleteParametersCommand - */ -export declare const se_DeleteParametersCommand: (input: DeleteParametersCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1DeletePatchBaselineCommand - */ -export declare const se_DeletePatchBaselineCommand: (input: DeletePatchBaselineCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1DeleteResourceDataSyncCommand - */ -export declare const se_DeleteResourceDataSyncCommand: (input: DeleteResourceDataSyncCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1DeleteResourcePolicyCommand - */ -export declare const se_DeleteResourcePolicyCommand: (input: DeleteResourcePolicyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1DeregisterManagedInstanceCommand - */ -export declare const se_DeregisterManagedInstanceCommand: (input: DeregisterManagedInstanceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1DeregisterPatchBaselineForPatchGroupCommand - */ -export declare const se_DeregisterPatchBaselineForPatchGroupCommand: (input: DeregisterPatchBaselineForPatchGroupCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1DeregisterTargetFromMaintenanceWindowCommand - */ -export declare const se_DeregisterTargetFromMaintenanceWindowCommand: (input: DeregisterTargetFromMaintenanceWindowCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1DeregisterTaskFromMaintenanceWindowCommand - */ -export declare const se_DeregisterTaskFromMaintenanceWindowCommand: (input: DeregisterTaskFromMaintenanceWindowCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1DescribeActivationsCommand - */ -export declare const se_DescribeActivationsCommand: (input: DescribeActivationsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1DescribeAssociationCommand - */ -export declare const se_DescribeAssociationCommand: (input: DescribeAssociationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1DescribeAssociationExecutionsCommand - */ -export declare const se_DescribeAssociationExecutionsCommand: (input: DescribeAssociationExecutionsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1DescribeAssociationExecutionTargetsCommand - */ -export declare const se_DescribeAssociationExecutionTargetsCommand: (input: DescribeAssociationExecutionTargetsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1DescribeAutomationExecutionsCommand - */ -export declare const se_DescribeAutomationExecutionsCommand: (input: DescribeAutomationExecutionsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1DescribeAutomationStepExecutionsCommand - */ -export declare const se_DescribeAutomationStepExecutionsCommand: (input: DescribeAutomationStepExecutionsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1DescribeAvailablePatchesCommand - */ -export declare const se_DescribeAvailablePatchesCommand: (input: DescribeAvailablePatchesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1DescribeDocumentCommand - */ -export declare const se_DescribeDocumentCommand: (input: DescribeDocumentCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1DescribeDocumentPermissionCommand - */ -export declare const se_DescribeDocumentPermissionCommand: (input: DescribeDocumentPermissionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1DescribeEffectiveInstanceAssociationsCommand - */ -export declare const se_DescribeEffectiveInstanceAssociationsCommand: (input: DescribeEffectiveInstanceAssociationsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1DescribeEffectivePatchesForPatchBaselineCommand - */ -export declare const se_DescribeEffectivePatchesForPatchBaselineCommand: (input: DescribeEffectivePatchesForPatchBaselineCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1DescribeInstanceAssociationsStatusCommand - */ -export declare const se_DescribeInstanceAssociationsStatusCommand: (input: DescribeInstanceAssociationsStatusCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1DescribeInstanceInformationCommand - */ -export declare const se_DescribeInstanceInformationCommand: (input: DescribeInstanceInformationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1DescribeInstancePatchesCommand - */ -export declare const se_DescribeInstancePatchesCommand: (input: DescribeInstancePatchesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1DescribeInstancePatchStatesCommand - */ -export declare const se_DescribeInstancePatchStatesCommand: (input: DescribeInstancePatchStatesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1DescribeInstancePatchStatesForPatchGroupCommand - */ -export declare const se_DescribeInstancePatchStatesForPatchGroupCommand: (input: DescribeInstancePatchStatesForPatchGroupCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1DescribeInventoryDeletionsCommand - */ -export declare const se_DescribeInventoryDeletionsCommand: (input: DescribeInventoryDeletionsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1DescribeMaintenanceWindowExecutionsCommand - */ -export declare const se_DescribeMaintenanceWindowExecutionsCommand: (input: DescribeMaintenanceWindowExecutionsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1DescribeMaintenanceWindowExecutionTaskInvocationsCommand - */ -export declare const se_DescribeMaintenanceWindowExecutionTaskInvocationsCommand: (input: DescribeMaintenanceWindowExecutionTaskInvocationsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1DescribeMaintenanceWindowExecutionTasksCommand - */ -export declare const se_DescribeMaintenanceWindowExecutionTasksCommand: (input: DescribeMaintenanceWindowExecutionTasksCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1DescribeMaintenanceWindowsCommand - */ -export declare const se_DescribeMaintenanceWindowsCommand: (input: DescribeMaintenanceWindowsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1DescribeMaintenanceWindowScheduleCommand - */ -export declare const se_DescribeMaintenanceWindowScheduleCommand: (input: DescribeMaintenanceWindowScheduleCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1DescribeMaintenanceWindowsForTargetCommand - */ -export declare const se_DescribeMaintenanceWindowsForTargetCommand: (input: DescribeMaintenanceWindowsForTargetCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1DescribeMaintenanceWindowTargetsCommand - */ -export declare const se_DescribeMaintenanceWindowTargetsCommand: (input: DescribeMaintenanceWindowTargetsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1DescribeMaintenanceWindowTasksCommand - */ -export declare const se_DescribeMaintenanceWindowTasksCommand: (input: DescribeMaintenanceWindowTasksCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1DescribeOpsItemsCommand - */ -export declare const se_DescribeOpsItemsCommand: (input: DescribeOpsItemsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1DescribeParametersCommand - */ -export declare const se_DescribeParametersCommand: (input: DescribeParametersCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1DescribePatchBaselinesCommand - */ -export declare const se_DescribePatchBaselinesCommand: (input: DescribePatchBaselinesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1DescribePatchGroupsCommand - */ -export declare const se_DescribePatchGroupsCommand: (input: DescribePatchGroupsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1DescribePatchGroupStateCommand - */ -export declare const se_DescribePatchGroupStateCommand: (input: DescribePatchGroupStateCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1DescribePatchPropertiesCommand - */ -export declare const se_DescribePatchPropertiesCommand: (input: DescribePatchPropertiesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1DescribeSessionsCommand - */ -export declare const se_DescribeSessionsCommand: (input: DescribeSessionsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1DisassociateOpsItemRelatedItemCommand - */ -export declare const se_DisassociateOpsItemRelatedItemCommand: (input: DisassociateOpsItemRelatedItemCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1GetAutomationExecutionCommand - */ -export declare const se_GetAutomationExecutionCommand: (input: GetAutomationExecutionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1GetCalendarStateCommand - */ -export declare const se_GetCalendarStateCommand: (input: GetCalendarStateCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1GetCommandInvocationCommand - */ -export declare const se_GetCommandInvocationCommand: (input: GetCommandInvocationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1GetConnectionStatusCommand - */ -export declare const se_GetConnectionStatusCommand: (input: GetConnectionStatusCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1GetDefaultPatchBaselineCommand - */ -export declare const se_GetDefaultPatchBaselineCommand: (input: GetDefaultPatchBaselineCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1GetDeployablePatchSnapshotForInstanceCommand - */ -export declare const se_GetDeployablePatchSnapshotForInstanceCommand: (input: GetDeployablePatchSnapshotForInstanceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1GetDocumentCommand - */ -export declare const se_GetDocumentCommand: (input: GetDocumentCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1GetInventoryCommand - */ -export declare const se_GetInventoryCommand: (input: GetInventoryCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1GetInventorySchemaCommand - */ -export declare const se_GetInventorySchemaCommand: (input: GetInventorySchemaCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1GetMaintenanceWindowCommand - */ -export declare const se_GetMaintenanceWindowCommand: (input: GetMaintenanceWindowCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1GetMaintenanceWindowExecutionCommand - */ -export declare const se_GetMaintenanceWindowExecutionCommand: (input: GetMaintenanceWindowExecutionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1GetMaintenanceWindowExecutionTaskCommand - */ -export declare const se_GetMaintenanceWindowExecutionTaskCommand: (input: GetMaintenanceWindowExecutionTaskCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1GetMaintenanceWindowExecutionTaskInvocationCommand - */ -export declare const se_GetMaintenanceWindowExecutionTaskInvocationCommand: (input: GetMaintenanceWindowExecutionTaskInvocationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1GetMaintenanceWindowTaskCommand - */ -export declare const se_GetMaintenanceWindowTaskCommand: (input: GetMaintenanceWindowTaskCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1GetOpsItemCommand - */ -export declare const se_GetOpsItemCommand: (input: GetOpsItemCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1GetOpsMetadataCommand - */ -export declare const se_GetOpsMetadataCommand: (input: GetOpsMetadataCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1GetOpsSummaryCommand - */ -export declare const se_GetOpsSummaryCommand: (input: GetOpsSummaryCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1GetParameterCommand - */ -export declare const se_GetParameterCommand: (input: GetParameterCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1GetParameterHistoryCommand - */ -export declare const se_GetParameterHistoryCommand: (input: GetParameterHistoryCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1GetParametersCommand - */ -export declare const se_GetParametersCommand: (input: GetParametersCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1GetParametersByPathCommand - */ -export declare const se_GetParametersByPathCommand: (input: GetParametersByPathCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1GetPatchBaselineCommand - */ -export declare const se_GetPatchBaselineCommand: (input: GetPatchBaselineCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1GetPatchBaselineForPatchGroupCommand - */ -export declare const se_GetPatchBaselineForPatchGroupCommand: (input: GetPatchBaselineForPatchGroupCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1GetResourcePoliciesCommand - */ -export declare const se_GetResourcePoliciesCommand: (input: GetResourcePoliciesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1GetServiceSettingCommand - */ -export declare const se_GetServiceSettingCommand: (input: GetServiceSettingCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1LabelParameterVersionCommand - */ -export declare const se_LabelParameterVersionCommand: (input: LabelParameterVersionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1ListAssociationsCommand - */ -export declare const se_ListAssociationsCommand: (input: ListAssociationsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1ListAssociationVersionsCommand - */ -export declare const se_ListAssociationVersionsCommand: (input: ListAssociationVersionsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1ListCommandInvocationsCommand - */ -export declare const se_ListCommandInvocationsCommand: (input: ListCommandInvocationsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1ListCommandsCommand - */ -export declare const se_ListCommandsCommand: (input: ListCommandsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1ListComplianceItemsCommand - */ -export declare const se_ListComplianceItemsCommand: (input: ListComplianceItemsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1ListComplianceSummariesCommand - */ -export declare const se_ListComplianceSummariesCommand: (input: ListComplianceSummariesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1ListDocumentMetadataHistoryCommand - */ -export declare const se_ListDocumentMetadataHistoryCommand: (input: ListDocumentMetadataHistoryCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1ListDocumentsCommand - */ -export declare const se_ListDocumentsCommand: (input: ListDocumentsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1ListDocumentVersionsCommand - */ -export declare const se_ListDocumentVersionsCommand: (input: ListDocumentVersionsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1ListInventoryEntriesCommand - */ -export declare const se_ListInventoryEntriesCommand: (input: ListInventoryEntriesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1ListOpsItemEventsCommand - */ -export declare const se_ListOpsItemEventsCommand: (input: ListOpsItemEventsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1ListOpsItemRelatedItemsCommand - */ -export declare const se_ListOpsItemRelatedItemsCommand: (input: ListOpsItemRelatedItemsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1ListOpsMetadataCommand - */ -export declare const se_ListOpsMetadataCommand: (input: ListOpsMetadataCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1ListResourceComplianceSummariesCommand - */ -export declare const se_ListResourceComplianceSummariesCommand: (input: ListResourceComplianceSummariesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1ListResourceDataSyncCommand - */ -export declare const se_ListResourceDataSyncCommand: (input: ListResourceDataSyncCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1ListTagsForResourceCommand - */ -export declare const se_ListTagsForResourceCommand: (input: ListTagsForResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1ModifyDocumentPermissionCommand - */ -export declare const se_ModifyDocumentPermissionCommand: (input: ModifyDocumentPermissionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1PutComplianceItemsCommand - */ -export declare const se_PutComplianceItemsCommand: (input: PutComplianceItemsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1PutInventoryCommand - */ -export declare const se_PutInventoryCommand: (input: PutInventoryCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1PutParameterCommand - */ -export declare const se_PutParameterCommand: (input: PutParameterCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1PutResourcePolicyCommand - */ -export declare const se_PutResourcePolicyCommand: (input: PutResourcePolicyCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1RegisterDefaultPatchBaselineCommand - */ -export declare const se_RegisterDefaultPatchBaselineCommand: (input: RegisterDefaultPatchBaselineCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1RegisterPatchBaselineForPatchGroupCommand - */ -export declare const se_RegisterPatchBaselineForPatchGroupCommand: (input: RegisterPatchBaselineForPatchGroupCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1RegisterTargetWithMaintenanceWindowCommand - */ -export declare const se_RegisterTargetWithMaintenanceWindowCommand: (input: RegisterTargetWithMaintenanceWindowCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1RegisterTaskWithMaintenanceWindowCommand - */ -export declare const se_RegisterTaskWithMaintenanceWindowCommand: (input: RegisterTaskWithMaintenanceWindowCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1RemoveTagsFromResourceCommand - */ -export declare const se_RemoveTagsFromResourceCommand: (input: RemoveTagsFromResourceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1ResetServiceSettingCommand - */ -export declare const se_ResetServiceSettingCommand: (input: ResetServiceSettingCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1ResumeSessionCommand - */ -export declare const se_ResumeSessionCommand: (input: ResumeSessionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1SendAutomationSignalCommand - */ -export declare const se_SendAutomationSignalCommand: (input: SendAutomationSignalCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1SendCommandCommand - */ -export declare const se_SendCommandCommand: (input: SendCommandCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1StartAssociationsOnceCommand - */ -export declare const se_StartAssociationsOnceCommand: (input: StartAssociationsOnceCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1StartAutomationExecutionCommand - */ -export declare const se_StartAutomationExecutionCommand: (input: StartAutomationExecutionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1StartChangeRequestExecutionCommand - */ -export declare const se_StartChangeRequestExecutionCommand: (input: StartChangeRequestExecutionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1StartSessionCommand - */ -export declare const se_StartSessionCommand: (input: StartSessionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1StopAutomationExecutionCommand - */ -export declare const se_StopAutomationExecutionCommand: (input: StopAutomationExecutionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1TerminateSessionCommand - */ -export declare const se_TerminateSessionCommand: (input: TerminateSessionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1UnlabelParameterVersionCommand - */ -export declare const se_UnlabelParameterVersionCommand: (input: UnlabelParameterVersionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1UpdateAssociationCommand - */ -export declare const se_UpdateAssociationCommand: (input: UpdateAssociationCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1UpdateAssociationStatusCommand - */ -export declare const se_UpdateAssociationStatusCommand: (input: UpdateAssociationStatusCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1UpdateDocumentCommand - */ -export declare const se_UpdateDocumentCommand: (input: UpdateDocumentCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1UpdateDocumentDefaultVersionCommand - */ -export declare const se_UpdateDocumentDefaultVersionCommand: (input: UpdateDocumentDefaultVersionCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1UpdateDocumentMetadataCommand - */ -export declare const se_UpdateDocumentMetadataCommand: (input: UpdateDocumentMetadataCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1UpdateMaintenanceWindowCommand - */ -export declare const se_UpdateMaintenanceWindowCommand: (input: UpdateMaintenanceWindowCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1UpdateMaintenanceWindowTargetCommand - */ -export declare const se_UpdateMaintenanceWindowTargetCommand: (input: UpdateMaintenanceWindowTargetCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1UpdateMaintenanceWindowTaskCommand - */ -export declare const se_UpdateMaintenanceWindowTaskCommand: (input: UpdateMaintenanceWindowTaskCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1UpdateManagedInstanceRoleCommand - */ -export declare const se_UpdateManagedInstanceRoleCommand: (input: UpdateManagedInstanceRoleCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1UpdateOpsItemCommand - */ -export declare const se_UpdateOpsItemCommand: (input: UpdateOpsItemCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1UpdateOpsMetadataCommand - */ -export declare const se_UpdateOpsMetadataCommand: (input: UpdateOpsMetadataCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1UpdatePatchBaselineCommand - */ -export declare const se_UpdatePatchBaselineCommand: (input: UpdatePatchBaselineCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1UpdateResourceDataSyncCommand - */ -export declare const se_UpdateResourceDataSyncCommand: (input: UpdateResourceDataSyncCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_json1_1UpdateServiceSettingCommand - */ -export declare const se_UpdateServiceSettingCommand: (input: UpdateServiceSettingCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * deserializeAws_json1_1AddTagsToResourceCommand - */ -export declare const de_AddTagsToResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1AssociateOpsItemRelatedItemCommand - */ -export declare const de_AssociateOpsItemRelatedItemCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1CancelCommandCommand - */ -export declare const de_CancelCommandCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1CancelMaintenanceWindowExecutionCommand - */ -export declare const de_CancelMaintenanceWindowExecutionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1CreateActivationCommand - */ -export declare const de_CreateActivationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1CreateAssociationCommand - */ -export declare const de_CreateAssociationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1CreateAssociationBatchCommand - */ -export declare const de_CreateAssociationBatchCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1CreateDocumentCommand - */ -export declare const de_CreateDocumentCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1CreateMaintenanceWindowCommand - */ -export declare const de_CreateMaintenanceWindowCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1CreateOpsItemCommand - */ -export declare const de_CreateOpsItemCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1CreateOpsMetadataCommand - */ -export declare const de_CreateOpsMetadataCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1CreatePatchBaselineCommand - */ -export declare const de_CreatePatchBaselineCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1CreateResourceDataSyncCommand - */ -export declare const de_CreateResourceDataSyncCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1DeleteActivationCommand - */ -export declare const de_DeleteActivationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1DeleteAssociationCommand - */ -export declare const de_DeleteAssociationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1DeleteDocumentCommand - */ -export declare const de_DeleteDocumentCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1DeleteInventoryCommand - */ -export declare const de_DeleteInventoryCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1DeleteMaintenanceWindowCommand - */ -export declare const de_DeleteMaintenanceWindowCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1DeleteOpsItemCommand - */ -export declare const de_DeleteOpsItemCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1DeleteOpsMetadataCommand - */ -export declare const de_DeleteOpsMetadataCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1DeleteParameterCommand - */ -export declare const de_DeleteParameterCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1DeleteParametersCommand - */ -export declare const de_DeleteParametersCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1DeletePatchBaselineCommand - */ -export declare const de_DeletePatchBaselineCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1DeleteResourceDataSyncCommand - */ -export declare const de_DeleteResourceDataSyncCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1DeleteResourcePolicyCommand - */ -export declare const de_DeleteResourcePolicyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1DeregisterManagedInstanceCommand - */ -export declare const de_DeregisterManagedInstanceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1DeregisterPatchBaselineForPatchGroupCommand - */ -export declare const de_DeregisterPatchBaselineForPatchGroupCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1DeregisterTargetFromMaintenanceWindowCommand - */ -export declare const de_DeregisterTargetFromMaintenanceWindowCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1DeregisterTaskFromMaintenanceWindowCommand - */ -export declare const de_DeregisterTaskFromMaintenanceWindowCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1DescribeActivationsCommand - */ -export declare const de_DescribeActivationsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1DescribeAssociationCommand - */ -export declare const de_DescribeAssociationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1DescribeAssociationExecutionsCommand - */ -export declare const de_DescribeAssociationExecutionsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1DescribeAssociationExecutionTargetsCommand - */ -export declare const de_DescribeAssociationExecutionTargetsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1DescribeAutomationExecutionsCommand - */ -export declare const de_DescribeAutomationExecutionsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1DescribeAutomationStepExecutionsCommand - */ -export declare const de_DescribeAutomationStepExecutionsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1DescribeAvailablePatchesCommand - */ -export declare const de_DescribeAvailablePatchesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1DescribeDocumentCommand - */ -export declare const de_DescribeDocumentCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1DescribeDocumentPermissionCommand - */ -export declare const de_DescribeDocumentPermissionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1DescribeEffectiveInstanceAssociationsCommand - */ -export declare const de_DescribeEffectiveInstanceAssociationsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1DescribeEffectivePatchesForPatchBaselineCommand - */ -export declare const de_DescribeEffectivePatchesForPatchBaselineCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1DescribeInstanceAssociationsStatusCommand - */ -export declare const de_DescribeInstanceAssociationsStatusCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1DescribeInstanceInformationCommand - */ -export declare const de_DescribeInstanceInformationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1DescribeInstancePatchesCommand - */ -export declare const de_DescribeInstancePatchesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1DescribeInstancePatchStatesCommand - */ -export declare const de_DescribeInstancePatchStatesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1DescribeInstancePatchStatesForPatchGroupCommand - */ -export declare const de_DescribeInstancePatchStatesForPatchGroupCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1DescribeInventoryDeletionsCommand - */ -export declare const de_DescribeInventoryDeletionsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1DescribeMaintenanceWindowExecutionsCommand - */ -export declare const de_DescribeMaintenanceWindowExecutionsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1DescribeMaintenanceWindowExecutionTaskInvocationsCommand - */ -export declare const de_DescribeMaintenanceWindowExecutionTaskInvocationsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1DescribeMaintenanceWindowExecutionTasksCommand - */ -export declare const de_DescribeMaintenanceWindowExecutionTasksCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1DescribeMaintenanceWindowsCommand - */ -export declare const de_DescribeMaintenanceWindowsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1DescribeMaintenanceWindowScheduleCommand - */ -export declare const de_DescribeMaintenanceWindowScheduleCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1DescribeMaintenanceWindowsForTargetCommand - */ -export declare const de_DescribeMaintenanceWindowsForTargetCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1DescribeMaintenanceWindowTargetsCommand - */ -export declare const de_DescribeMaintenanceWindowTargetsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1DescribeMaintenanceWindowTasksCommand - */ -export declare const de_DescribeMaintenanceWindowTasksCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1DescribeOpsItemsCommand - */ -export declare const de_DescribeOpsItemsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1DescribeParametersCommand - */ -export declare const de_DescribeParametersCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1DescribePatchBaselinesCommand - */ -export declare const de_DescribePatchBaselinesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1DescribePatchGroupsCommand - */ -export declare const de_DescribePatchGroupsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1DescribePatchGroupStateCommand - */ -export declare const de_DescribePatchGroupStateCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1DescribePatchPropertiesCommand - */ -export declare const de_DescribePatchPropertiesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1DescribeSessionsCommand - */ -export declare const de_DescribeSessionsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1DisassociateOpsItemRelatedItemCommand - */ -export declare const de_DisassociateOpsItemRelatedItemCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1GetAutomationExecutionCommand - */ -export declare const de_GetAutomationExecutionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1GetCalendarStateCommand - */ -export declare const de_GetCalendarStateCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1GetCommandInvocationCommand - */ -export declare const de_GetCommandInvocationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1GetConnectionStatusCommand - */ -export declare const de_GetConnectionStatusCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1GetDefaultPatchBaselineCommand - */ -export declare const de_GetDefaultPatchBaselineCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1GetDeployablePatchSnapshotForInstanceCommand - */ -export declare const de_GetDeployablePatchSnapshotForInstanceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1GetDocumentCommand - */ -export declare const de_GetDocumentCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1GetInventoryCommand - */ -export declare const de_GetInventoryCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1GetInventorySchemaCommand - */ -export declare const de_GetInventorySchemaCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1GetMaintenanceWindowCommand - */ -export declare const de_GetMaintenanceWindowCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1GetMaintenanceWindowExecutionCommand - */ -export declare const de_GetMaintenanceWindowExecutionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1GetMaintenanceWindowExecutionTaskCommand - */ -export declare const de_GetMaintenanceWindowExecutionTaskCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1GetMaintenanceWindowExecutionTaskInvocationCommand - */ -export declare const de_GetMaintenanceWindowExecutionTaskInvocationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1GetMaintenanceWindowTaskCommand - */ -export declare const de_GetMaintenanceWindowTaskCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1GetOpsItemCommand - */ -export declare const de_GetOpsItemCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1GetOpsMetadataCommand - */ -export declare const de_GetOpsMetadataCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1GetOpsSummaryCommand - */ -export declare const de_GetOpsSummaryCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1GetParameterCommand - */ -export declare const de_GetParameterCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1GetParameterHistoryCommand - */ -export declare const de_GetParameterHistoryCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1GetParametersCommand - */ -export declare const de_GetParametersCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1GetParametersByPathCommand - */ -export declare const de_GetParametersByPathCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1GetPatchBaselineCommand - */ -export declare const de_GetPatchBaselineCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1GetPatchBaselineForPatchGroupCommand - */ -export declare const de_GetPatchBaselineForPatchGroupCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1GetResourcePoliciesCommand - */ -export declare const de_GetResourcePoliciesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1GetServiceSettingCommand - */ -export declare const de_GetServiceSettingCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1LabelParameterVersionCommand - */ -export declare const de_LabelParameterVersionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1ListAssociationsCommand - */ -export declare const de_ListAssociationsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1ListAssociationVersionsCommand - */ -export declare const de_ListAssociationVersionsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1ListCommandInvocationsCommand - */ -export declare const de_ListCommandInvocationsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1ListCommandsCommand - */ -export declare const de_ListCommandsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1ListComplianceItemsCommand - */ -export declare const de_ListComplianceItemsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1ListComplianceSummariesCommand - */ -export declare const de_ListComplianceSummariesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1ListDocumentMetadataHistoryCommand - */ -export declare const de_ListDocumentMetadataHistoryCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1ListDocumentsCommand - */ -export declare const de_ListDocumentsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1ListDocumentVersionsCommand - */ -export declare const de_ListDocumentVersionsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1ListInventoryEntriesCommand - */ -export declare const de_ListInventoryEntriesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1ListOpsItemEventsCommand - */ -export declare const de_ListOpsItemEventsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1ListOpsItemRelatedItemsCommand - */ -export declare const de_ListOpsItemRelatedItemsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1ListOpsMetadataCommand - */ -export declare const de_ListOpsMetadataCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1ListResourceComplianceSummariesCommand - */ -export declare const de_ListResourceComplianceSummariesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1ListResourceDataSyncCommand - */ -export declare const de_ListResourceDataSyncCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1ListTagsForResourceCommand - */ -export declare const de_ListTagsForResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1ModifyDocumentPermissionCommand - */ -export declare const de_ModifyDocumentPermissionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1PutComplianceItemsCommand - */ -export declare const de_PutComplianceItemsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1PutInventoryCommand - */ -export declare const de_PutInventoryCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1PutParameterCommand - */ -export declare const de_PutParameterCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1PutResourcePolicyCommand - */ -export declare const de_PutResourcePolicyCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1RegisterDefaultPatchBaselineCommand - */ -export declare const de_RegisterDefaultPatchBaselineCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1RegisterPatchBaselineForPatchGroupCommand - */ -export declare const de_RegisterPatchBaselineForPatchGroupCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1RegisterTargetWithMaintenanceWindowCommand - */ -export declare const de_RegisterTargetWithMaintenanceWindowCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1RegisterTaskWithMaintenanceWindowCommand - */ -export declare const de_RegisterTaskWithMaintenanceWindowCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1RemoveTagsFromResourceCommand - */ -export declare const de_RemoveTagsFromResourceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1ResetServiceSettingCommand - */ -export declare const de_ResetServiceSettingCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1ResumeSessionCommand - */ -export declare const de_ResumeSessionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1SendAutomationSignalCommand - */ -export declare const de_SendAutomationSignalCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1SendCommandCommand - */ -export declare const de_SendCommandCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1StartAssociationsOnceCommand - */ -export declare const de_StartAssociationsOnceCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1StartAutomationExecutionCommand - */ -export declare const de_StartAutomationExecutionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1StartChangeRequestExecutionCommand - */ -export declare const de_StartChangeRequestExecutionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1StartSessionCommand - */ -export declare const de_StartSessionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1StopAutomationExecutionCommand - */ -export declare const de_StopAutomationExecutionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1TerminateSessionCommand - */ -export declare const de_TerminateSessionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1UnlabelParameterVersionCommand - */ -export declare const de_UnlabelParameterVersionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1UpdateAssociationCommand - */ -export declare const de_UpdateAssociationCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1UpdateAssociationStatusCommand - */ -export declare const de_UpdateAssociationStatusCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1UpdateDocumentCommand - */ -export declare const de_UpdateDocumentCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1UpdateDocumentDefaultVersionCommand - */ -export declare const de_UpdateDocumentDefaultVersionCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1UpdateDocumentMetadataCommand - */ -export declare const de_UpdateDocumentMetadataCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1UpdateMaintenanceWindowCommand - */ -export declare const de_UpdateMaintenanceWindowCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1UpdateMaintenanceWindowTargetCommand - */ -export declare const de_UpdateMaintenanceWindowTargetCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1UpdateMaintenanceWindowTaskCommand - */ -export declare const de_UpdateMaintenanceWindowTaskCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1UpdateManagedInstanceRoleCommand - */ -export declare const de_UpdateManagedInstanceRoleCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1UpdateOpsItemCommand - */ -export declare const de_UpdateOpsItemCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1UpdateOpsMetadataCommand - */ -export declare const de_UpdateOpsMetadataCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1UpdatePatchBaselineCommand - */ -export declare const de_UpdatePatchBaselineCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1UpdateResourceDataSyncCommand - */ -export declare const de_UpdateResourceDataSyncCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_json1_1UpdateServiceSettingCommand - */ -export declare const de_UpdateServiceSettingCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/runtimeConfig.browser.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/runtimeConfig.browser.d.ts deleted file mode 100644 index 96edeae9..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/runtimeConfig.browser.d.ts +++ /dev/null @@ -1,46 +0,0 @@ -import { FetchHttpHandler as RequestHandler } from "@smithy/fetch-http-handler"; -import { SSMClientConfig } from "./SSMClient"; -/** - * @internal - */ -export declare const getRuntimeConfig: (config: SSMClientConfig) => { - runtime: string; - defaultsMode: import("@smithy/types").Provider; - bodyLengthChecker: import("@smithy/types").BodyLengthCalculator; - credentialDefaultProvider: (input: any) => import("@smithy/types").Provider; - defaultUserAgentProvider: import("@smithy/types").Provider; - maxAttempts: number | import("@smithy/types").Provider; - region: string | import("@smithy/types").Provider; - requestHandler: (import("@smithy/types").RequestHandler & import("@smithy/types").RequestHandler & { - updateHttpClientConfig(key: never, value: never): void; - httpHandlerConfigs(): {}; - }) | RequestHandler; - retryMode: string | import("@smithy/types").Provider; - sha256: import("@smithy/types").HashConstructor; - streamCollector: import("@smithy/types").StreamCollector; - useDualstackEndpoint: boolean | import("@smithy/types").Provider; - useFipsEndpoint: boolean | import("@smithy/types").Provider; - apiVersion: string; - urlParser: import("@smithy/types").UrlParser; - base64Decoder: import("@smithy/types").Decoder; - base64Encoder: import("@smithy/types").Encoder; - utf8Decoder: import("@smithy/types").Decoder; - utf8Encoder: import("@smithy/types").Encoder; - disableHostPrefix: boolean; - serviceId: string; - logger: import("@smithy/types").Logger; - extensions: import("./runtimeExtensions").RuntimeExtension[]; - endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider) & (string | import("@smithy/types").Provider | import("@smithy/types").Endpoint | import("@smithy/types").Provider | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider)) | undefined; - endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: { - logger?: import("@smithy/types").Logger | undefined; - }) => import("@smithy/types").EndpointV2; - tls?: boolean | undefined; - retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined; - credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").Provider | undefined; - signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise) | undefined; - signingEscapePath?: boolean | undefined; - systemClockOffset?: number | undefined; - signingRegion?: string | undefined; - signerConstructor?: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | undefined; - customUserAgent?: string | import("@smithy/types").UserAgent | undefined; -}; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/runtimeConfig.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/runtimeConfig.d.ts deleted file mode 100644 index 80b293a4..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/runtimeConfig.d.ts +++ /dev/null @@ -1,46 +0,0 @@ -import { NodeHttpHandler as RequestHandler } from "@smithy/node-http-handler"; -import { SSMClientConfig } from "./SSMClient"; -/** - * @internal - */ -export declare const getRuntimeConfig: (config: SSMClientConfig) => { - runtime: string; - defaultsMode: import("@smithy/types").Provider; - bodyLengthChecker: import("@smithy/types").BodyLengthCalculator; - credentialDefaultProvider: (input: any) => import("@smithy/types").Provider; - defaultUserAgentProvider: import("@smithy/types").Provider; - maxAttempts: number | import("@smithy/types").Provider; - region: string | import("@smithy/types").Provider; - requestHandler: (import("@smithy/types").RequestHandler & import("@smithy/types").RequestHandler & { - updateHttpClientConfig(key: never, value: never): void; - httpHandlerConfigs(): {}; - }) | RequestHandler; - retryMode: string | import("@smithy/types").Provider; - sha256: import("@smithy/types").HashConstructor; - streamCollector: import("@smithy/types").StreamCollector; - useDualstackEndpoint: boolean | import("@smithy/types").Provider; - useFipsEndpoint: boolean | import("@smithy/types").Provider; - apiVersion: string; - urlParser: import("@smithy/types").UrlParser; - base64Decoder: import("@smithy/types").Decoder; - base64Encoder: import("@smithy/types").Encoder; - utf8Decoder: import("@smithy/types").Decoder; - utf8Encoder: import("@smithy/types").Encoder; - disableHostPrefix: boolean; - serviceId: string; - logger: import("@smithy/types").Logger; - extensions: import("./runtimeExtensions").RuntimeExtension[]; - endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider) & (string | import("@smithy/types").Provider | import("@smithy/types").Endpoint | import("@smithy/types").Provider | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider)) | undefined; - endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: { - logger?: import("@smithy/types").Logger | undefined; - }) => import("@smithy/types").EndpointV2; - tls?: boolean | undefined; - retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined; - credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").Provider | undefined; - signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise) | undefined; - signingEscapePath?: boolean | undefined; - systemClockOffset?: number | undefined; - signingRegion?: string | undefined; - signerConstructor?: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | undefined; - customUserAgent?: string | import("@smithy/types").UserAgent | undefined; -}; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/runtimeConfig.native.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/runtimeConfig.native.d.ts deleted file mode 100644 index eaa61feb..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/runtimeConfig.native.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -import { SSMClientConfig } from "./SSMClient"; -/** - * @internal - */ -export declare const getRuntimeConfig: (config: SSMClientConfig) => { - runtime: string; - sha256: import("@smithy/types").HashConstructor; - requestHandler: (import("@smithy/types").RequestHandler & import("@smithy/types").RequestHandler & { - updateHttpClientConfig(key: never, value: never): void; - httpHandlerConfigs(): {}; - }) | import("@smithy/fetch-http-handler").FetchHttpHandler; - apiVersion: string; - urlParser: import("@smithy/types").UrlParser; - bodyLengthChecker: import("@smithy/types").BodyLengthCalculator; - streamCollector: import("@smithy/types").StreamCollector; - base64Decoder: import("@smithy/types").Decoder; - base64Encoder: import("@smithy/types").Encoder; - utf8Decoder: import("@smithy/types").Decoder; - utf8Encoder: import("@smithy/types").Encoder; - disableHostPrefix: boolean; - serviceId: string; - useDualstackEndpoint: boolean | import("@smithy/types").Provider; - useFipsEndpoint: boolean | import("@smithy/types").Provider; - region: string | import("@smithy/types").Provider; - credentialDefaultProvider: (input: any) => import("@smithy/types").Provider; - defaultUserAgentProvider: import("@smithy/types").Provider; - maxAttempts: number | import("@smithy/types").Provider; - retryMode: string | import("@smithy/types").Provider; - logger: import("@smithy/types").Logger; - extensions: import("./runtimeExtensions").RuntimeExtension[]; - defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider; - endpoint?: string | import("@smithy/types").Endpoint | import("@smithy/types").Provider | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider | undefined; - endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: { - logger?: import("@smithy/types").Logger | undefined; - }) => import("@smithy/types").EndpointV2; - tls?: boolean | undefined; - retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined; - credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").Provider | undefined; - signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise) | undefined; - signingEscapePath?: boolean | undefined; - systemClockOffset?: number | undefined; - signingRegion?: string | undefined; - signerConstructor?: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | undefined; - customUserAgent?: string | import("@smithy/types").UserAgent | undefined; -}; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/runtimeConfig.shared.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/runtimeConfig.shared.d.ts deleted file mode 100644 index d4df3f33..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/runtimeConfig.shared.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { SSMClientConfig } from "./SSMClient"; -/** - * @internal - */ -export declare const getRuntimeConfig: (config: SSMClientConfig) => { - apiVersion: string; - base64Decoder: import("@smithy/types").Decoder; - base64Encoder: import("@smithy/types").Encoder; - disableHostPrefix: boolean; - endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: { - logger?: import("@smithy/types").Logger | undefined; - }) => import("@smithy/types").EndpointV2; - extensions: import("./runtimeExtensions").RuntimeExtension[]; - logger: import("@smithy/types").Logger; - serviceId: string; - urlParser: import("@smithy/types").UrlParser; - utf8Decoder: import("@smithy/types").Decoder; - utf8Encoder: import("@smithy/types").Encoder; -}; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/runtimeExtensions.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/runtimeExtensions.d.ts deleted file mode 100644 index 8ea50e31..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/runtimeExtensions.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { SSMExtensionConfiguration } from "./extensionConfiguration"; -/** - * @public - */ -export interface RuntimeExtension { - configure(extensionConfiguration: SSMExtensionConfiguration): void; -} -/** - * @public - */ -export interface RuntimeExtensionsConfig { - extensions: RuntimeExtension[]; -} -/** - * @internal - */ -export declare const resolveRuntimeExtensions: (runtimeConfig: any, extensions: RuntimeExtension[]) => any; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/SSM.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/SSM.d.ts deleted file mode 100644 index 6449f3bb..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/SSM.d.ts +++ /dev/null @@ -1,2482 +0,0 @@ -import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types"; -import { - AddTagsToResourceCommandInput, - AddTagsToResourceCommandOutput, -} from "./commands/AddTagsToResourceCommand"; -import { - AssociateOpsItemRelatedItemCommandInput, - AssociateOpsItemRelatedItemCommandOutput, -} from "./commands/AssociateOpsItemRelatedItemCommand"; -import { - CancelCommandCommandInput, - CancelCommandCommandOutput, -} from "./commands/CancelCommandCommand"; -import { - CancelMaintenanceWindowExecutionCommandInput, - CancelMaintenanceWindowExecutionCommandOutput, -} from "./commands/CancelMaintenanceWindowExecutionCommand"; -import { - CreateActivationCommandInput, - CreateActivationCommandOutput, -} from "./commands/CreateActivationCommand"; -import { - CreateAssociationBatchCommandInput, - CreateAssociationBatchCommandOutput, -} from "./commands/CreateAssociationBatchCommand"; -import { - CreateAssociationCommandInput, - CreateAssociationCommandOutput, -} from "./commands/CreateAssociationCommand"; -import { - CreateDocumentCommandInput, - CreateDocumentCommandOutput, -} from "./commands/CreateDocumentCommand"; -import { - CreateMaintenanceWindowCommandInput, - CreateMaintenanceWindowCommandOutput, -} from "./commands/CreateMaintenanceWindowCommand"; -import { - CreateOpsItemCommandInput, - CreateOpsItemCommandOutput, -} from "./commands/CreateOpsItemCommand"; -import { - CreateOpsMetadataCommandInput, - CreateOpsMetadataCommandOutput, -} from "./commands/CreateOpsMetadataCommand"; -import { - CreatePatchBaselineCommandInput, - CreatePatchBaselineCommandOutput, -} from "./commands/CreatePatchBaselineCommand"; -import { - CreateResourceDataSyncCommandInput, - CreateResourceDataSyncCommandOutput, -} from "./commands/CreateResourceDataSyncCommand"; -import { - DeleteActivationCommandInput, - DeleteActivationCommandOutput, -} from "./commands/DeleteActivationCommand"; -import { - DeleteAssociationCommandInput, - DeleteAssociationCommandOutput, -} from "./commands/DeleteAssociationCommand"; -import { - DeleteDocumentCommandInput, - DeleteDocumentCommandOutput, -} from "./commands/DeleteDocumentCommand"; -import { - DeleteInventoryCommandInput, - DeleteInventoryCommandOutput, -} from "./commands/DeleteInventoryCommand"; -import { - DeleteMaintenanceWindowCommandInput, - DeleteMaintenanceWindowCommandOutput, -} from "./commands/DeleteMaintenanceWindowCommand"; -import { - DeleteOpsItemCommandInput, - DeleteOpsItemCommandOutput, -} from "./commands/DeleteOpsItemCommand"; -import { - DeleteOpsMetadataCommandInput, - DeleteOpsMetadataCommandOutput, -} from "./commands/DeleteOpsMetadataCommand"; -import { - DeleteParameterCommandInput, - DeleteParameterCommandOutput, -} from "./commands/DeleteParameterCommand"; -import { - DeleteParametersCommandInput, - DeleteParametersCommandOutput, -} from "./commands/DeleteParametersCommand"; -import { - DeletePatchBaselineCommandInput, - DeletePatchBaselineCommandOutput, -} from "./commands/DeletePatchBaselineCommand"; -import { - DeleteResourceDataSyncCommandInput, - DeleteResourceDataSyncCommandOutput, -} from "./commands/DeleteResourceDataSyncCommand"; -import { - DeleteResourcePolicyCommandInput, - DeleteResourcePolicyCommandOutput, -} from "./commands/DeleteResourcePolicyCommand"; -import { - DeregisterManagedInstanceCommandInput, - DeregisterManagedInstanceCommandOutput, -} from "./commands/DeregisterManagedInstanceCommand"; -import { - DeregisterPatchBaselineForPatchGroupCommandInput, - DeregisterPatchBaselineForPatchGroupCommandOutput, -} from "./commands/DeregisterPatchBaselineForPatchGroupCommand"; -import { - DeregisterTargetFromMaintenanceWindowCommandInput, - DeregisterTargetFromMaintenanceWindowCommandOutput, -} from "./commands/DeregisterTargetFromMaintenanceWindowCommand"; -import { - DeregisterTaskFromMaintenanceWindowCommandInput, - DeregisterTaskFromMaintenanceWindowCommandOutput, -} from "./commands/DeregisterTaskFromMaintenanceWindowCommand"; -import { - DescribeActivationsCommandInput, - DescribeActivationsCommandOutput, -} from "./commands/DescribeActivationsCommand"; -import { - DescribeAssociationCommandInput, - DescribeAssociationCommandOutput, -} from "./commands/DescribeAssociationCommand"; -import { - DescribeAssociationExecutionsCommandInput, - DescribeAssociationExecutionsCommandOutput, -} from "./commands/DescribeAssociationExecutionsCommand"; -import { - DescribeAssociationExecutionTargetsCommandInput, - DescribeAssociationExecutionTargetsCommandOutput, -} from "./commands/DescribeAssociationExecutionTargetsCommand"; -import { - DescribeAutomationExecutionsCommandInput, - DescribeAutomationExecutionsCommandOutput, -} from "./commands/DescribeAutomationExecutionsCommand"; -import { - DescribeAutomationStepExecutionsCommandInput, - DescribeAutomationStepExecutionsCommandOutput, -} from "./commands/DescribeAutomationStepExecutionsCommand"; -import { - DescribeAvailablePatchesCommandInput, - DescribeAvailablePatchesCommandOutput, -} from "./commands/DescribeAvailablePatchesCommand"; -import { - DescribeDocumentCommandInput, - DescribeDocumentCommandOutput, -} from "./commands/DescribeDocumentCommand"; -import { - DescribeDocumentPermissionCommandInput, - DescribeDocumentPermissionCommandOutput, -} from "./commands/DescribeDocumentPermissionCommand"; -import { - DescribeEffectiveInstanceAssociationsCommandInput, - DescribeEffectiveInstanceAssociationsCommandOutput, -} from "./commands/DescribeEffectiveInstanceAssociationsCommand"; -import { - DescribeEffectivePatchesForPatchBaselineCommandInput, - DescribeEffectivePatchesForPatchBaselineCommandOutput, -} from "./commands/DescribeEffectivePatchesForPatchBaselineCommand"; -import { - DescribeInstanceAssociationsStatusCommandInput, - DescribeInstanceAssociationsStatusCommandOutput, -} from "./commands/DescribeInstanceAssociationsStatusCommand"; -import { - DescribeInstanceInformationCommandInput, - DescribeInstanceInformationCommandOutput, -} from "./commands/DescribeInstanceInformationCommand"; -import { - DescribeInstancePatchesCommandInput, - DescribeInstancePatchesCommandOutput, -} from "./commands/DescribeInstancePatchesCommand"; -import { - DescribeInstancePatchStatesCommandInput, - DescribeInstancePatchStatesCommandOutput, -} from "./commands/DescribeInstancePatchStatesCommand"; -import { - DescribeInstancePatchStatesForPatchGroupCommandInput, - DescribeInstancePatchStatesForPatchGroupCommandOutput, -} from "./commands/DescribeInstancePatchStatesForPatchGroupCommand"; -import { - DescribeInventoryDeletionsCommandInput, - DescribeInventoryDeletionsCommandOutput, -} from "./commands/DescribeInventoryDeletionsCommand"; -import { - DescribeMaintenanceWindowExecutionsCommandInput, - DescribeMaintenanceWindowExecutionsCommandOutput, -} from "./commands/DescribeMaintenanceWindowExecutionsCommand"; -import { - DescribeMaintenanceWindowExecutionTaskInvocationsCommandInput, - DescribeMaintenanceWindowExecutionTaskInvocationsCommandOutput, -} from "./commands/DescribeMaintenanceWindowExecutionTaskInvocationsCommand"; -import { - DescribeMaintenanceWindowExecutionTasksCommandInput, - DescribeMaintenanceWindowExecutionTasksCommandOutput, -} from "./commands/DescribeMaintenanceWindowExecutionTasksCommand"; -import { - DescribeMaintenanceWindowScheduleCommandInput, - DescribeMaintenanceWindowScheduleCommandOutput, -} from "./commands/DescribeMaintenanceWindowScheduleCommand"; -import { - DescribeMaintenanceWindowsCommandInput, - DescribeMaintenanceWindowsCommandOutput, -} from "./commands/DescribeMaintenanceWindowsCommand"; -import { - DescribeMaintenanceWindowsForTargetCommandInput, - DescribeMaintenanceWindowsForTargetCommandOutput, -} from "./commands/DescribeMaintenanceWindowsForTargetCommand"; -import { - DescribeMaintenanceWindowTargetsCommandInput, - DescribeMaintenanceWindowTargetsCommandOutput, -} from "./commands/DescribeMaintenanceWindowTargetsCommand"; -import { - DescribeMaintenanceWindowTasksCommandInput, - DescribeMaintenanceWindowTasksCommandOutput, -} from "./commands/DescribeMaintenanceWindowTasksCommand"; -import { - DescribeOpsItemsCommandInput, - DescribeOpsItemsCommandOutput, -} from "./commands/DescribeOpsItemsCommand"; -import { - DescribeParametersCommandInput, - DescribeParametersCommandOutput, -} from "./commands/DescribeParametersCommand"; -import { - DescribePatchBaselinesCommandInput, - DescribePatchBaselinesCommandOutput, -} from "./commands/DescribePatchBaselinesCommand"; -import { - DescribePatchGroupsCommandInput, - DescribePatchGroupsCommandOutput, -} from "./commands/DescribePatchGroupsCommand"; -import { - DescribePatchGroupStateCommandInput, - DescribePatchGroupStateCommandOutput, -} from "./commands/DescribePatchGroupStateCommand"; -import { - DescribePatchPropertiesCommandInput, - DescribePatchPropertiesCommandOutput, -} from "./commands/DescribePatchPropertiesCommand"; -import { - DescribeSessionsCommandInput, - DescribeSessionsCommandOutput, -} from "./commands/DescribeSessionsCommand"; -import { - DisassociateOpsItemRelatedItemCommandInput, - DisassociateOpsItemRelatedItemCommandOutput, -} from "./commands/DisassociateOpsItemRelatedItemCommand"; -import { - GetAutomationExecutionCommandInput, - GetAutomationExecutionCommandOutput, -} from "./commands/GetAutomationExecutionCommand"; -import { - GetCalendarStateCommandInput, - GetCalendarStateCommandOutput, -} from "./commands/GetCalendarStateCommand"; -import { - GetCommandInvocationCommandInput, - GetCommandInvocationCommandOutput, -} from "./commands/GetCommandInvocationCommand"; -import { - GetConnectionStatusCommandInput, - GetConnectionStatusCommandOutput, -} from "./commands/GetConnectionStatusCommand"; -import { - GetDefaultPatchBaselineCommandInput, - GetDefaultPatchBaselineCommandOutput, -} from "./commands/GetDefaultPatchBaselineCommand"; -import { - GetDeployablePatchSnapshotForInstanceCommandInput, - GetDeployablePatchSnapshotForInstanceCommandOutput, -} from "./commands/GetDeployablePatchSnapshotForInstanceCommand"; -import { - GetDocumentCommandInput, - GetDocumentCommandOutput, -} from "./commands/GetDocumentCommand"; -import { - GetInventoryCommandInput, - GetInventoryCommandOutput, -} from "./commands/GetInventoryCommand"; -import { - GetInventorySchemaCommandInput, - GetInventorySchemaCommandOutput, -} from "./commands/GetInventorySchemaCommand"; -import { - GetMaintenanceWindowCommandInput, - GetMaintenanceWindowCommandOutput, -} from "./commands/GetMaintenanceWindowCommand"; -import { - GetMaintenanceWindowExecutionCommandInput, - GetMaintenanceWindowExecutionCommandOutput, -} from "./commands/GetMaintenanceWindowExecutionCommand"; -import { - GetMaintenanceWindowExecutionTaskCommandInput, - GetMaintenanceWindowExecutionTaskCommandOutput, -} from "./commands/GetMaintenanceWindowExecutionTaskCommand"; -import { - GetMaintenanceWindowExecutionTaskInvocationCommandInput, - GetMaintenanceWindowExecutionTaskInvocationCommandOutput, -} from "./commands/GetMaintenanceWindowExecutionTaskInvocationCommand"; -import { - GetMaintenanceWindowTaskCommandInput, - GetMaintenanceWindowTaskCommandOutput, -} from "./commands/GetMaintenanceWindowTaskCommand"; -import { - GetOpsItemCommandInput, - GetOpsItemCommandOutput, -} from "./commands/GetOpsItemCommand"; -import { - GetOpsMetadataCommandInput, - GetOpsMetadataCommandOutput, -} from "./commands/GetOpsMetadataCommand"; -import { - GetOpsSummaryCommandInput, - GetOpsSummaryCommandOutput, -} from "./commands/GetOpsSummaryCommand"; -import { - GetParameterCommandInput, - GetParameterCommandOutput, -} from "./commands/GetParameterCommand"; -import { - GetParameterHistoryCommandInput, - GetParameterHistoryCommandOutput, -} from "./commands/GetParameterHistoryCommand"; -import { - GetParametersByPathCommandInput, - GetParametersByPathCommandOutput, -} from "./commands/GetParametersByPathCommand"; -import { - GetParametersCommandInput, - GetParametersCommandOutput, -} from "./commands/GetParametersCommand"; -import { - GetPatchBaselineCommandInput, - GetPatchBaselineCommandOutput, -} from "./commands/GetPatchBaselineCommand"; -import { - GetPatchBaselineForPatchGroupCommandInput, - GetPatchBaselineForPatchGroupCommandOutput, -} from "./commands/GetPatchBaselineForPatchGroupCommand"; -import { - GetResourcePoliciesCommandInput, - GetResourcePoliciesCommandOutput, -} from "./commands/GetResourcePoliciesCommand"; -import { - GetServiceSettingCommandInput, - GetServiceSettingCommandOutput, -} from "./commands/GetServiceSettingCommand"; -import { - LabelParameterVersionCommandInput, - LabelParameterVersionCommandOutput, -} from "./commands/LabelParameterVersionCommand"; -import { - ListAssociationsCommandInput, - ListAssociationsCommandOutput, -} from "./commands/ListAssociationsCommand"; -import { - ListAssociationVersionsCommandInput, - ListAssociationVersionsCommandOutput, -} from "./commands/ListAssociationVersionsCommand"; -import { - ListCommandInvocationsCommandInput, - ListCommandInvocationsCommandOutput, -} from "./commands/ListCommandInvocationsCommand"; -import { - ListCommandsCommandInput, - ListCommandsCommandOutput, -} from "./commands/ListCommandsCommand"; -import { - ListComplianceItemsCommandInput, - ListComplianceItemsCommandOutput, -} from "./commands/ListComplianceItemsCommand"; -import { - ListComplianceSummariesCommandInput, - ListComplianceSummariesCommandOutput, -} from "./commands/ListComplianceSummariesCommand"; -import { - ListDocumentMetadataHistoryCommandInput, - ListDocumentMetadataHistoryCommandOutput, -} from "./commands/ListDocumentMetadataHistoryCommand"; -import { - ListDocumentsCommandInput, - ListDocumentsCommandOutput, -} from "./commands/ListDocumentsCommand"; -import { - ListDocumentVersionsCommandInput, - ListDocumentVersionsCommandOutput, -} from "./commands/ListDocumentVersionsCommand"; -import { - ListInventoryEntriesCommandInput, - ListInventoryEntriesCommandOutput, -} from "./commands/ListInventoryEntriesCommand"; -import { - ListOpsItemEventsCommandInput, - ListOpsItemEventsCommandOutput, -} from "./commands/ListOpsItemEventsCommand"; -import { - ListOpsItemRelatedItemsCommandInput, - ListOpsItemRelatedItemsCommandOutput, -} from "./commands/ListOpsItemRelatedItemsCommand"; -import { - ListOpsMetadataCommandInput, - ListOpsMetadataCommandOutput, -} from "./commands/ListOpsMetadataCommand"; -import { - ListResourceComplianceSummariesCommandInput, - ListResourceComplianceSummariesCommandOutput, -} from "./commands/ListResourceComplianceSummariesCommand"; -import { - ListResourceDataSyncCommandInput, - ListResourceDataSyncCommandOutput, -} from "./commands/ListResourceDataSyncCommand"; -import { - ListTagsForResourceCommandInput, - ListTagsForResourceCommandOutput, -} from "./commands/ListTagsForResourceCommand"; -import { - ModifyDocumentPermissionCommandInput, - ModifyDocumentPermissionCommandOutput, -} from "./commands/ModifyDocumentPermissionCommand"; -import { - PutComplianceItemsCommandInput, - PutComplianceItemsCommandOutput, -} from "./commands/PutComplianceItemsCommand"; -import { - PutInventoryCommandInput, - PutInventoryCommandOutput, -} from "./commands/PutInventoryCommand"; -import { - PutParameterCommandInput, - PutParameterCommandOutput, -} from "./commands/PutParameterCommand"; -import { - PutResourcePolicyCommandInput, - PutResourcePolicyCommandOutput, -} from "./commands/PutResourcePolicyCommand"; -import { - RegisterDefaultPatchBaselineCommandInput, - RegisterDefaultPatchBaselineCommandOutput, -} from "./commands/RegisterDefaultPatchBaselineCommand"; -import { - RegisterPatchBaselineForPatchGroupCommandInput, - RegisterPatchBaselineForPatchGroupCommandOutput, -} from "./commands/RegisterPatchBaselineForPatchGroupCommand"; -import { - RegisterTargetWithMaintenanceWindowCommandInput, - RegisterTargetWithMaintenanceWindowCommandOutput, -} from "./commands/RegisterTargetWithMaintenanceWindowCommand"; -import { - RegisterTaskWithMaintenanceWindowCommandInput, - RegisterTaskWithMaintenanceWindowCommandOutput, -} from "./commands/RegisterTaskWithMaintenanceWindowCommand"; -import { - RemoveTagsFromResourceCommandInput, - RemoveTagsFromResourceCommandOutput, -} from "./commands/RemoveTagsFromResourceCommand"; -import { - ResetServiceSettingCommandInput, - ResetServiceSettingCommandOutput, -} from "./commands/ResetServiceSettingCommand"; -import { - ResumeSessionCommandInput, - ResumeSessionCommandOutput, -} from "./commands/ResumeSessionCommand"; -import { - SendAutomationSignalCommandInput, - SendAutomationSignalCommandOutput, -} from "./commands/SendAutomationSignalCommand"; -import { - SendCommandCommandInput, - SendCommandCommandOutput, -} from "./commands/SendCommandCommand"; -import { - StartAssociationsOnceCommandInput, - StartAssociationsOnceCommandOutput, -} from "./commands/StartAssociationsOnceCommand"; -import { - StartAutomationExecutionCommandInput, - StartAutomationExecutionCommandOutput, -} from "./commands/StartAutomationExecutionCommand"; -import { - StartChangeRequestExecutionCommandInput, - StartChangeRequestExecutionCommandOutput, -} from "./commands/StartChangeRequestExecutionCommand"; -import { - StartSessionCommandInput, - StartSessionCommandOutput, -} from "./commands/StartSessionCommand"; -import { - StopAutomationExecutionCommandInput, - StopAutomationExecutionCommandOutput, -} from "./commands/StopAutomationExecutionCommand"; -import { - TerminateSessionCommandInput, - TerminateSessionCommandOutput, -} from "./commands/TerminateSessionCommand"; -import { - UnlabelParameterVersionCommandInput, - UnlabelParameterVersionCommandOutput, -} from "./commands/UnlabelParameterVersionCommand"; -import { - UpdateAssociationCommandInput, - UpdateAssociationCommandOutput, -} from "./commands/UpdateAssociationCommand"; -import { - UpdateAssociationStatusCommandInput, - UpdateAssociationStatusCommandOutput, -} from "./commands/UpdateAssociationStatusCommand"; -import { - UpdateDocumentCommandInput, - UpdateDocumentCommandOutput, -} from "./commands/UpdateDocumentCommand"; -import { - UpdateDocumentDefaultVersionCommandInput, - UpdateDocumentDefaultVersionCommandOutput, -} from "./commands/UpdateDocumentDefaultVersionCommand"; -import { - UpdateDocumentMetadataCommandInput, - UpdateDocumentMetadataCommandOutput, -} from "./commands/UpdateDocumentMetadataCommand"; -import { - UpdateMaintenanceWindowCommandInput, - UpdateMaintenanceWindowCommandOutput, -} from "./commands/UpdateMaintenanceWindowCommand"; -import { - UpdateMaintenanceWindowTargetCommandInput, - UpdateMaintenanceWindowTargetCommandOutput, -} from "./commands/UpdateMaintenanceWindowTargetCommand"; -import { - UpdateMaintenanceWindowTaskCommandInput, - UpdateMaintenanceWindowTaskCommandOutput, -} from "./commands/UpdateMaintenanceWindowTaskCommand"; -import { - UpdateManagedInstanceRoleCommandInput, - UpdateManagedInstanceRoleCommandOutput, -} from "./commands/UpdateManagedInstanceRoleCommand"; -import { - UpdateOpsItemCommandInput, - UpdateOpsItemCommandOutput, -} from "./commands/UpdateOpsItemCommand"; -import { - UpdateOpsMetadataCommandInput, - UpdateOpsMetadataCommandOutput, -} from "./commands/UpdateOpsMetadataCommand"; -import { - UpdatePatchBaselineCommandInput, - UpdatePatchBaselineCommandOutput, -} from "./commands/UpdatePatchBaselineCommand"; -import { - UpdateResourceDataSyncCommandInput, - UpdateResourceDataSyncCommandOutput, -} from "./commands/UpdateResourceDataSyncCommand"; -import { - UpdateServiceSettingCommandInput, - UpdateServiceSettingCommandOutput, -} from "./commands/UpdateServiceSettingCommand"; -import { SSMClient } from "./SSMClient"; -export interface SSM { - addTagsToResource( - args: AddTagsToResourceCommandInput, - options?: __HttpHandlerOptions - ): Promise; - addTagsToResource( - args: AddTagsToResourceCommandInput, - cb: (err: any, data?: AddTagsToResourceCommandOutput) => void - ): void; - addTagsToResource( - args: AddTagsToResourceCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: AddTagsToResourceCommandOutput) => void - ): void; - associateOpsItemRelatedItem( - args: AssociateOpsItemRelatedItemCommandInput, - options?: __HttpHandlerOptions - ): Promise; - associateOpsItemRelatedItem( - args: AssociateOpsItemRelatedItemCommandInput, - cb: (err: any, data?: AssociateOpsItemRelatedItemCommandOutput) => void - ): void; - associateOpsItemRelatedItem( - args: AssociateOpsItemRelatedItemCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: AssociateOpsItemRelatedItemCommandOutput) => void - ): void; - cancelCommand( - args: CancelCommandCommandInput, - options?: __HttpHandlerOptions - ): Promise; - cancelCommand( - args: CancelCommandCommandInput, - cb: (err: any, data?: CancelCommandCommandOutput) => void - ): void; - cancelCommand( - args: CancelCommandCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: CancelCommandCommandOutput) => void - ): void; - cancelMaintenanceWindowExecution( - args: CancelMaintenanceWindowExecutionCommandInput, - options?: __HttpHandlerOptions - ): Promise; - cancelMaintenanceWindowExecution( - args: CancelMaintenanceWindowExecutionCommandInput, - cb: (err: any, data?: CancelMaintenanceWindowExecutionCommandOutput) => void - ): void; - cancelMaintenanceWindowExecution( - args: CancelMaintenanceWindowExecutionCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: CancelMaintenanceWindowExecutionCommandOutput) => void - ): void; - createActivation( - args: CreateActivationCommandInput, - options?: __HttpHandlerOptions - ): Promise; - createActivation( - args: CreateActivationCommandInput, - cb: (err: any, data?: CreateActivationCommandOutput) => void - ): void; - createActivation( - args: CreateActivationCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: CreateActivationCommandOutput) => void - ): void; - createAssociation( - args: CreateAssociationCommandInput, - options?: __HttpHandlerOptions - ): Promise; - createAssociation( - args: CreateAssociationCommandInput, - cb: (err: any, data?: CreateAssociationCommandOutput) => void - ): void; - createAssociation( - args: CreateAssociationCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: CreateAssociationCommandOutput) => void - ): void; - createAssociationBatch( - args: CreateAssociationBatchCommandInput, - options?: __HttpHandlerOptions - ): Promise; - createAssociationBatch( - args: CreateAssociationBatchCommandInput, - cb: (err: any, data?: CreateAssociationBatchCommandOutput) => void - ): void; - createAssociationBatch( - args: CreateAssociationBatchCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: CreateAssociationBatchCommandOutput) => void - ): void; - createDocument( - args: CreateDocumentCommandInput, - options?: __HttpHandlerOptions - ): Promise; - createDocument( - args: CreateDocumentCommandInput, - cb: (err: any, data?: CreateDocumentCommandOutput) => void - ): void; - createDocument( - args: CreateDocumentCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: CreateDocumentCommandOutput) => void - ): void; - createMaintenanceWindow( - args: CreateMaintenanceWindowCommandInput, - options?: __HttpHandlerOptions - ): Promise; - createMaintenanceWindow( - args: CreateMaintenanceWindowCommandInput, - cb: (err: any, data?: CreateMaintenanceWindowCommandOutput) => void - ): void; - createMaintenanceWindow( - args: CreateMaintenanceWindowCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: CreateMaintenanceWindowCommandOutput) => void - ): void; - createOpsItem( - args: CreateOpsItemCommandInput, - options?: __HttpHandlerOptions - ): Promise; - createOpsItem( - args: CreateOpsItemCommandInput, - cb: (err: any, data?: CreateOpsItemCommandOutput) => void - ): void; - createOpsItem( - args: CreateOpsItemCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: CreateOpsItemCommandOutput) => void - ): void; - createOpsMetadata( - args: CreateOpsMetadataCommandInput, - options?: __HttpHandlerOptions - ): Promise; - createOpsMetadata( - args: CreateOpsMetadataCommandInput, - cb: (err: any, data?: CreateOpsMetadataCommandOutput) => void - ): void; - createOpsMetadata( - args: CreateOpsMetadataCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: CreateOpsMetadataCommandOutput) => void - ): void; - createPatchBaseline( - args: CreatePatchBaselineCommandInput, - options?: __HttpHandlerOptions - ): Promise; - createPatchBaseline( - args: CreatePatchBaselineCommandInput, - cb: (err: any, data?: CreatePatchBaselineCommandOutput) => void - ): void; - createPatchBaseline( - args: CreatePatchBaselineCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: CreatePatchBaselineCommandOutput) => void - ): void; - createResourceDataSync( - args: CreateResourceDataSyncCommandInput, - options?: __HttpHandlerOptions - ): Promise; - createResourceDataSync( - args: CreateResourceDataSyncCommandInput, - cb: (err: any, data?: CreateResourceDataSyncCommandOutput) => void - ): void; - createResourceDataSync( - args: CreateResourceDataSyncCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: CreateResourceDataSyncCommandOutput) => void - ): void; - deleteActivation( - args: DeleteActivationCommandInput, - options?: __HttpHandlerOptions - ): Promise; - deleteActivation( - args: DeleteActivationCommandInput, - cb: (err: any, data?: DeleteActivationCommandOutput) => void - ): void; - deleteActivation( - args: DeleteActivationCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: DeleteActivationCommandOutput) => void - ): void; - deleteAssociation( - args: DeleteAssociationCommandInput, - options?: __HttpHandlerOptions - ): Promise; - deleteAssociation( - args: DeleteAssociationCommandInput, - cb: (err: any, data?: DeleteAssociationCommandOutput) => void - ): void; - deleteAssociation( - args: DeleteAssociationCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: DeleteAssociationCommandOutput) => void - ): void; - deleteDocument( - args: DeleteDocumentCommandInput, - options?: __HttpHandlerOptions - ): Promise; - deleteDocument( - args: DeleteDocumentCommandInput, - cb: (err: any, data?: DeleteDocumentCommandOutput) => void - ): void; - deleteDocument( - args: DeleteDocumentCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: DeleteDocumentCommandOutput) => void - ): void; - deleteInventory( - args: DeleteInventoryCommandInput, - options?: __HttpHandlerOptions - ): Promise; - deleteInventory( - args: DeleteInventoryCommandInput, - cb: (err: any, data?: DeleteInventoryCommandOutput) => void - ): void; - deleteInventory( - args: DeleteInventoryCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: DeleteInventoryCommandOutput) => void - ): void; - deleteMaintenanceWindow( - args: DeleteMaintenanceWindowCommandInput, - options?: __HttpHandlerOptions - ): Promise; - deleteMaintenanceWindow( - args: DeleteMaintenanceWindowCommandInput, - cb: (err: any, data?: DeleteMaintenanceWindowCommandOutput) => void - ): void; - deleteMaintenanceWindow( - args: DeleteMaintenanceWindowCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: DeleteMaintenanceWindowCommandOutput) => void - ): void; - deleteOpsItem( - args: DeleteOpsItemCommandInput, - options?: __HttpHandlerOptions - ): Promise; - deleteOpsItem( - args: DeleteOpsItemCommandInput, - cb: (err: any, data?: DeleteOpsItemCommandOutput) => void - ): void; - deleteOpsItem( - args: DeleteOpsItemCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: DeleteOpsItemCommandOutput) => void - ): void; - deleteOpsMetadata( - args: DeleteOpsMetadataCommandInput, - options?: __HttpHandlerOptions - ): Promise; - deleteOpsMetadata( - args: DeleteOpsMetadataCommandInput, - cb: (err: any, data?: DeleteOpsMetadataCommandOutput) => void - ): void; - deleteOpsMetadata( - args: DeleteOpsMetadataCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: DeleteOpsMetadataCommandOutput) => void - ): void; - deleteParameter( - args: DeleteParameterCommandInput, - options?: __HttpHandlerOptions - ): Promise; - deleteParameter( - args: DeleteParameterCommandInput, - cb: (err: any, data?: DeleteParameterCommandOutput) => void - ): void; - deleteParameter( - args: DeleteParameterCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: DeleteParameterCommandOutput) => void - ): void; - deleteParameters( - args: DeleteParametersCommandInput, - options?: __HttpHandlerOptions - ): Promise; - deleteParameters( - args: DeleteParametersCommandInput, - cb: (err: any, data?: DeleteParametersCommandOutput) => void - ): void; - deleteParameters( - args: DeleteParametersCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: DeleteParametersCommandOutput) => void - ): void; - deletePatchBaseline( - args: DeletePatchBaselineCommandInput, - options?: __HttpHandlerOptions - ): Promise; - deletePatchBaseline( - args: DeletePatchBaselineCommandInput, - cb: (err: any, data?: DeletePatchBaselineCommandOutput) => void - ): void; - deletePatchBaseline( - args: DeletePatchBaselineCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: DeletePatchBaselineCommandOutput) => void - ): void; - deleteResourceDataSync( - args: DeleteResourceDataSyncCommandInput, - options?: __HttpHandlerOptions - ): Promise; - deleteResourceDataSync( - args: DeleteResourceDataSyncCommandInput, - cb: (err: any, data?: DeleteResourceDataSyncCommandOutput) => void - ): void; - deleteResourceDataSync( - args: DeleteResourceDataSyncCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: DeleteResourceDataSyncCommandOutput) => void - ): void; - deleteResourcePolicy( - args: DeleteResourcePolicyCommandInput, - options?: __HttpHandlerOptions - ): Promise; - deleteResourcePolicy( - args: DeleteResourcePolicyCommandInput, - cb: (err: any, data?: DeleteResourcePolicyCommandOutput) => void - ): void; - deleteResourcePolicy( - args: DeleteResourcePolicyCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: DeleteResourcePolicyCommandOutput) => void - ): void; - deregisterManagedInstance( - args: DeregisterManagedInstanceCommandInput, - options?: __HttpHandlerOptions - ): Promise; - deregisterManagedInstance( - args: DeregisterManagedInstanceCommandInput, - cb: (err: any, data?: DeregisterManagedInstanceCommandOutput) => void - ): void; - deregisterManagedInstance( - args: DeregisterManagedInstanceCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: DeregisterManagedInstanceCommandOutput) => void - ): void; - deregisterPatchBaselineForPatchGroup( - args: DeregisterPatchBaselineForPatchGroupCommandInput, - options?: __HttpHandlerOptions - ): Promise; - deregisterPatchBaselineForPatchGroup( - args: DeregisterPatchBaselineForPatchGroupCommandInput, - cb: ( - err: any, - data?: DeregisterPatchBaselineForPatchGroupCommandOutput - ) => void - ): void; - deregisterPatchBaselineForPatchGroup( - args: DeregisterPatchBaselineForPatchGroupCommandInput, - options: __HttpHandlerOptions, - cb: ( - err: any, - data?: DeregisterPatchBaselineForPatchGroupCommandOutput - ) => void - ): void; - deregisterTargetFromMaintenanceWindow( - args: DeregisterTargetFromMaintenanceWindowCommandInput, - options?: __HttpHandlerOptions - ): Promise; - deregisterTargetFromMaintenanceWindow( - args: DeregisterTargetFromMaintenanceWindowCommandInput, - cb: ( - err: any, - data?: DeregisterTargetFromMaintenanceWindowCommandOutput - ) => void - ): void; - deregisterTargetFromMaintenanceWindow( - args: DeregisterTargetFromMaintenanceWindowCommandInput, - options: __HttpHandlerOptions, - cb: ( - err: any, - data?: DeregisterTargetFromMaintenanceWindowCommandOutput - ) => void - ): void; - deregisterTaskFromMaintenanceWindow( - args: DeregisterTaskFromMaintenanceWindowCommandInput, - options?: __HttpHandlerOptions - ): Promise; - deregisterTaskFromMaintenanceWindow( - args: DeregisterTaskFromMaintenanceWindowCommandInput, - cb: ( - err: any, - data?: DeregisterTaskFromMaintenanceWindowCommandOutput - ) => void - ): void; - deregisterTaskFromMaintenanceWindow( - args: DeregisterTaskFromMaintenanceWindowCommandInput, - options: __HttpHandlerOptions, - cb: ( - err: any, - data?: DeregisterTaskFromMaintenanceWindowCommandOutput - ) => void - ): void; - describeActivations( - args: DescribeActivationsCommandInput, - options?: __HttpHandlerOptions - ): Promise; - describeActivations( - args: DescribeActivationsCommandInput, - cb: (err: any, data?: DescribeActivationsCommandOutput) => void - ): void; - describeActivations( - args: DescribeActivationsCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: DescribeActivationsCommandOutput) => void - ): void; - describeAssociation( - args: DescribeAssociationCommandInput, - options?: __HttpHandlerOptions - ): Promise; - describeAssociation( - args: DescribeAssociationCommandInput, - cb: (err: any, data?: DescribeAssociationCommandOutput) => void - ): void; - describeAssociation( - args: DescribeAssociationCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: DescribeAssociationCommandOutput) => void - ): void; - describeAssociationExecutions( - args: DescribeAssociationExecutionsCommandInput, - options?: __HttpHandlerOptions - ): Promise; - describeAssociationExecutions( - args: DescribeAssociationExecutionsCommandInput, - cb: (err: any, data?: DescribeAssociationExecutionsCommandOutput) => void - ): void; - describeAssociationExecutions( - args: DescribeAssociationExecutionsCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: DescribeAssociationExecutionsCommandOutput) => void - ): void; - describeAssociationExecutionTargets( - args: DescribeAssociationExecutionTargetsCommandInput, - options?: __HttpHandlerOptions - ): Promise; - describeAssociationExecutionTargets( - args: DescribeAssociationExecutionTargetsCommandInput, - cb: ( - err: any, - data?: DescribeAssociationExecutionTargetsCommandOutput - ) => void - ): void; - describeAssociationExecutionTargets( - args: DescribeAssociationExecutionTargetsCommandInput, - options: __HttpHandlerOptions, - cb: ( - err: any, - data?: DescribeAssociationExecutionTargetsCommandOutput - ) => void - ): void; - describeAutomationExecutions( - args: DescribeAutomationExecutionsCommandInput, - options?: __HttpHandlerOptions - ): Promise; - describeAutomationExecutions( - args: DescribeAutomationExecutionsCommandInput, - cb: (err: any, data?: DescribeAutomationExecutionsCommandOutput) => void - ): void; - describeAutomationExecutions( - args: DescribeAutomationExecutionsCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: DescribeAutomationExecutionsCommandOutput) => void - ): void; - describeAutomationStepExecutions( - args: DescribeAutomationStepExecutionsCommandInput, - options?: __HttpHandlerOptions - ): Promise; - describeAutomationStepExecutions( - args: DescribeAutomationStepExecutionsCommandInput, - cb: (err: any, data?: DescribeAutomationStepExecutionsCommandOutput) => void - ): void; - describeAutomationStepExecutions( - args: DescribeAutomationStepExecutionsCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: DescribeAutomationStepExecutionsCommandOutput) => void - ): void; - describeAvailablePatches( - args: DescribeAvailablePatchesCommandInput, - options?: __HttpHandlerOptions - ): Promise; - describeAvailablePatches( - args: DescribeAvailablePatchesCommandInput, - cb: (err: any, data?: DescribeAvailablePatchesCommandOutput) => void - ): void; - describeAvailablePatches( - args: DescribeAvailablePatchesCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: DescribeAvailablePatchesCommandOutput) => void - ): void; - describeDocument( - args: DescribeDocumentCommandInput, - options?: __HttpHandlerOptions - ): Promise; - describeDocument( - args: DescribeDocumentCommandInput, - cb: (err: any, data?: DescribeDocumentCommandOutput) => void - ): void; - describeDocument( - args: DescribeDocumentCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: DescribeDocumentCommandOutput) => void - ): void; - describeDocumentPermission( - args: DescribeDocumentPermissionCommandInput, - options?: __HttpHandlerOptions - ): Promise; - describeDocumentPermission( - args: DescribeDocumentPermissionCommandInput, - cb: (err: any, data?: DescribeDocumentPermissionCommandOutput) => void - ): void; - describeDocumentPermission( - args: DescribeDocumentPermissionCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: DescribeDocumentPermissionCommandOutput) => void - ): void; - describeEffectiveInstanceAssociations( - args: DescribeEffectiveInstanceAssociationsCommandInput, - options?: __HttpHandlerOptions - ): Promise; - describeEffectiveInstanceAssociations( - args: DescribeEffectiveInstanceAssociationsCommandInput, - cb: ( - err: any, - data?: DescribeEffectiveInstanceAssociationsCommandOutput - ) => void - ): void; - describeEffectiveInstanceAssociations( - args: DescribeEffectiveInstanceAssociationsCommandInput, - options: __HttpHandlerOptions, - cb: ( - err: any, - data?: DescribeEffectiveInstanceAssociationsCommandOutput - ) => void - ): void; - describeEffectivePatchesForPatchBaseline( - args: DescribeEffectivePatchesForPatchBaselineCommandInput, - options?: __HttpHandlerOptions - ): Promise; - describeEffectivePatchesForPatchBaseline( - args: DescribeEffectivePatchesForPatchBaselineCommandInput, - cb: ( - err: any, - data?: DescribeEffectivePatchesForPatchBaselineCommandOutput - ) => void - ): void; - describeEffectivePatchesForPatchBaseline( - args: DescribeEffectivePatchesForPatchBaselineCommandInput, - options: __HttpHandlerOptions, - cb: ( - err: any, - data?: DescribeEffectivePatchesForPatchBaselineCommandOutput - ) => void - ): void; - describeInstanceAssociationsStatus( - args: DescribeInstanceAssociationsStatusCommandInput, - options?: __HttpHandlerOptions - ): Promise; - describeInstanceAssociationsStatus( - args: DescribeInstanceAssociationsStatusCommandInput, - cb: ( - err: any, - data?: DescribeInstanceAssociationsStatusCommandOutput - ) => void - ): void; - describeInstanceAssociationsStatus( - args: DescribeInstanceAssociationsStatusCommandInput, - options: __HttpHandlerOptions, - cb: ( - err: any, - data?: DescribeInstanceAssociationsStatusCommandOutput - ) => void - ): void; - describeInstanceInformation( - args: DescribeInstanceInformationCommandInput, - options?: __HttpHandlerOptions - ): Promise; - describeInstanceInformation( - args: DescribeInstanceInformationCommandInput, - cb: (err: any, data?: DescribeInstanceInformationCommandOutput) => void - ): void; - describeInstanceInformation( - args: DescribeInstanceInformationCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: DescribeInstanceInformationCommandOutput) => void - ): void; - describeInstancePatches( - args: DescribeInstancePatchesCommandInput, - options?: __HttpHandlerOptions - ): Promise; - describeInstancePatches( - args: DescribeInstancePatchesCommandInput, - cb: (err: any, data?: DescribeInstancePatchesCommandOutput) => void - ): void; - describeInstancePatches( - args: DescribeInstancePatchesCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: DescribeInstancePatchesCommandOutput) => void - ): void; - describeInstancePatchStates( - args: DescribeInstancePatchStatesCommandInput, - options?: __HttpHandlerOptions - ): Promise; - describeInstancePatchStates( - args: DescribeInstancePatchStatesCommandInput, - cb: (err: any, data?: DescribeInstancePatchStatesCommandOutput) => void - ): void; - describeInstancePatchStates( - args: DescribeInstancePatchStatesCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: DescribeInstancePatchStatesCommandOutput) => void - ): void; - describeInstancePatchStatesForPatchGroup( - args: DescribeInstancePatchStatesForPatchGroupCommandInput, - options?: __HttpHandlerOptions - ): Promise; - describeInstancePatchStatesForPatchGroup( - args: DescribeInstancePatchStatesForPatchGroupCommandInput, - cb: ( - err: any, - data?: DescribeInstancePatchStatesForPatchGroupCommandOutput - ) => void - ): void; - describeInstancePatchStatesForPatchGroup( - args: DescribeInstancePatchStatesForPatchGroupCommandInput, - options: __HttpHandlerOptions, - cb: ( - err: any, - data?: DescribeInstancePatchStatesForPatchGroupCommandOutput - ) => void - ): void; - describeInventoryDeletions( - args: DescribeInventoryDeletionsCommandInput, - options?: __HttpHandlerOptions - ): Promise; - describeInventoryDeletions( - args: DescribeInventoryDeletionsCommandInput, - cb: (err: any, data?: DescribeInventoryDeletionsCommandOutput) => void - ): void; - describeInventoryDeletions( - args: DescribeInventoryDeletionsCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: DescribeInventoryDeletionsCommandOutput) => void - ): void; - describeMaintenanceWindowExecutions( - args: DescribeMaintenanceWindowExecutionsCommandInput, - options?: __HttpHandlerOptions - ): Promise; - describeMaintenanceWindowExecutions( - args: DescribeMaintenanceWindowExecutionsCommandInput, - cb: ( - err: any, - data?: DescribeMaintenanceWindowExecutionsCommandOutput - ) => void - ): void; - describeMaintenanceWindowExecutions( - args: DescribeMaintenanceWindowExecutionsCommandInput, - options: __HttpHandlerOptions, - cb: ( - err: any, - data?: DescribeMaintenanceWindowExecutionsCommandOutput - ) => void - ): void; - describeMaintenanceWindowExecutionTaskInvocations( - args: DescribeMaintenanceWindowExecutionTaskInvocationsCommandInput, - options?: __HttpHandlerOptions - ): Promise; - describeMaintenanceWindowExecutionTaskInvocations( - args: DescribeMaintenanceWindowExecutionTaskInvocationsCommandInput, - cb: ( - err: any, - data?: DescribeMaintenanceWindowExecutionTaskInvocationsCommandOutput - ) => void - ): void; - describeMaintenanceWindowExecutionTaskInvocations( - args: DescribeMaintenanceWindowExecutionTaskInvocationsCommandInput, - options: __HttpHandlerOptions, - cb: ( - err: any, - data?: DescribeMaintenanceWindowExecutionTaskInvocationsCommandOutput - ) => void - ): void; - describeMaintenanceWindowExecutionTasks( - args: DescribeMaintenanceWindowExecutionTasksCommandInput, - options?: __HttpHandlerOptions - ): Promise; - describeMaintenanceWindowExecutionTasks( - args: DescribeMaintenanceWindowExecutionTasksCommandInput, - cb: ( - err: any, - data?: DescribeMaintenanceWindowExecutionTasksCommandOutput - ) => void - ): void; - describeMaintenanceWindowExecutionTasks( - args: DescribeMaintenanceWindowExecutionTasksCommandInput, - options: __HttpHandlerOptions, - cb: ( - err: any, - data?: DescribeMaintenanceWindowExecutionTasksCommandOutput - ) => void - ): void; - describeMaintenanceWindows( - args: DescribeMaintenanceWindowsCommandInput, - options?: __HttpHandlerOptions - ): Promise; - describeMaintenanceWindows( - args: DescribeMaintenanceWindowsCommandInput, - cb: (err: any, data?: DescribeMaintenanceWindowsCommandOutput) => void - ): void; - describeMaintenanceWindows( - args: DescribeMaintenanceWindowsCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: DescribeMaintenanceWindowsCommandOutput) => void - ): void; - describeMaintenanceWindowSchedule( - args: DescribeMaintenanceWindowScheduleCommandInput, - options?: __HttpHandlerOptions - ): Promise; - describeMaintenanceWindowSchedule( - args: DescribeMaintenanceWindowScheduleCommandInput, - cb: ( - err: any, - data?: DescribeMaintenanceWindowScheduleCommandOutput - ) => void - ): void; - describeMaintenanceWindowSchedule( - args: DescribeMaintenanceWindowScheduleCommandInput, - options: __HttpHandlerOptions, - cb: ( - err: any, - data?: DescribeMaintenanceWindowScheduleCommandOutput - ) => void - ): void; - describeMaintenanceWindowsForTarget( - args: DescribeMaintenanceWindowsForTargetCommandInput, - options?: __HttpHandlerOptions - ): Promise; - describeMaintenanceWindowsForTarget( - args: DescribeMaintenanceWindowsForTargetCommandInput, - cb: ( - err: any, - data?: DescribeMaintenanceWindowsForTargetCommandOutput - ) => void - ): void; - describeMaintenanceWindowsForTarget( - args: DescribeMaintenanceWindowsForTargetCommandInput, - options: __HttpHandlerOptions, - cb: ( - err: any, - data?: DescribeMaintenanceWindowsForTargetCommandOutput - ) => void - ): void; - describeMaintenanceWindowTargets( - args: DescribeMaintenanceWindowTargetsCommandInput, - options?: __HttpHandlerOptions - ): Promise; - describeMaintenanceWindowTargets( - args: DescribeMaintenanceWindowTargetsCommandInput, - cb: (err: any, data?: DescribeMaintenanceWindowTargetsCommandOutput) => void - ): void; - describeMaintenanceWindowTargets( - args: DescribeMaintenanceWindowTargetsCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: DescribeMaintenanceWindowTargetsCommandOutput) => void - ): void; - describeMaintenanceWindowTasks( - args: DescribeMaintenanceWindowTasksCommandInput, - options?: __HttpHandlerOptions - ): Promise; - describeMaintenanceWindowTasks( - args: DescribeMaintenanceWindowTasksCommandInput, - cb: (err: any, data?: DescribeMaintenanceWindowTasksCommandOutput) => void - ): void; - describeMaintenanceWindowTasks( - args: DescribeMaintenanceWindowTasksCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: DescribeMaintenanceWindowTasksCommandOutput) => void - ): void; - describeOpsItems( - args: DescribeOpsItemsCommandInput, - options?: __HttpHandlerOptions - ): Promise; - describeOpsItems( - args: DescribeOpsItemsCommandInput, - cb: (err: any, data?: DescribeOpsItemsCommandOutput) => void - ): void; - describeOpsItems( - args: DescribeOpsItemsCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: DescribeOpsItemsCommandOutput) => void - ): void; - describeParameters( - args: DescribeParametersCommandInput, - options?: __HttpHandlerOptions - ): Promise; - describeParameters( - args: DescribeParametersCommandInput, - cb: (err: any, data?: DescribeParametersCommandOutput) => void - ): void; - describeParameters( - args: DescribeParametersCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: DescribeParametersCommandOutput) => void - ): void; - describePatchBaselines( - args: DescribePatchBaselinesCommandInput, - options?: __HttpHandlerOptions - ): Promise; - describePatchBaselines( - args: DescribePatchBaselinesCommandInput, - cb: (err: any, data?: DescribePatchBaselinesCommandOutput) => void - ): void; - describePatchBaselines( - args: DescribePatchBaselinesCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: DescribePatchBaselinesCommandOutput) => void - ): void; - describePatchGroups( - args: DescribePatchGroupsCommandInput, - options?: __HttpHandlerOptions - ): Promise; - describePatchGroups( - args: DescribePatchGroupsCommandInput, - cb: (err: any, data?: DescribePatchGroupsCommandOutput) => void - ): void; - describePatchGroups( - args: DescribePatchGroupsCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: DescribePatchGroupsCommandOutput) => void - ): void; - describePatchGroupState( - args: DescribePatchGroupStateCommandInput, - options?: __HttpHandlerOptions - ): Promise; - describePatchGroupState( - args: DescribePatchGroupStateCommandInput, - cb: (err: any, data?: DescribePatchGroupStateCommandOutput) => void - ): void; - describePatchGroupState( - args: DescribePatchGroupStateCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: DescribePatchGroupStateCommandOutput) => void - ): void; - describePatchProperties( - args: DescribePatchPropertiesCommandInput, - options?: __HttpHandlerOptions - ): Promise; - describePatchProperties( - args: DescribePatchPropertiesCommandInput, - cb: (err: any, data?: DescribePatchPropertiesCommandOutput) => void - ): void; - describePatchProperties( - args: DescribePatchPropertiesCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: DescribePatchPropertiesCommandOutput) => void - ): void; - describeSessions( - args: DescribeSessionsCommandInput, - options?: __HttpHandlerOptions - ): Promise; - describeSessions( - args: DescribeSessionsCommandInput, - cb: (err: any, data?: DescribeSessionsCommandOutput) => void - ): void; - describeSessions( - args: DescribeSessionsCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: DescribeSessionsCommandOutput) => void - ): void; - disassociateOpsItemRelatedItem( - args: DisassociateOpsItemRelatedItemCommandInput, - options?: __HttpHandlerOptions - ): Promise; - disassociateOpsItemRelatedItem( - args: DisassociateOpsItemRelatedItemCommandInput, - cb: (err: any, data?: DisassociateOpsItemRelatedItemCommandOutput) => void - ): void; - disassociateOpsItemRelatedItem( - args: DisassociateOpsItemRelatedItemCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: DisassociateOpsItemRelatedItemCommandOutput) => void - ): void; - getAutomationExecution( - args: GetAutomationExecutionCommandInput, - options?: __HttpHandlerOptions - ): Promise; - getAutomationExecution( - args: GetAutomationExecutionCommandInput, - cb: (err: any, data?: GetAutomationExecutionCommandOutput) => void - ): void; - getAutomationExecution( - args: GetAutomationExecutionCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: GetAutomationExecutionCommandOutput) => void - ): void; - getCalendarState( - args: GetCalendarStateCommandInput, - options?: __HttpHandlerOptions - ): Promise; - getCalendarState( - args: GetCalendarStateCommandInput, - cb: (err: any, data?: GetCalendarStateCommandOutput) => void - ): void; - getCalendarState( - args: GetCalendarStateCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: GetCalendarStateCommandOutput) => void - ): void; - getCommandInvocation( - args: GetCommandInvocationCommandInput, - options?: __HttpHandlerOptions - ): Promise; - getCommandInvocation( - args: GetCommandInvocationCommandInput, - cb: (err: any, data?: GetCommandInvocationCommandOutput) => void - ): void; - getCommandInvocation( - args: GetCommandInvocationCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: GetCommandInvocationCommandOutput) => void - ): void; - getConnectionStatus( - args: GetConnectionStatusCommandInput, - options?: __HttpHandlerOptions - ): Promise; - getConnectionStatus( - args: GetConnectionStatusCommandInput, - cb: (err: any, data?: GetConnectionStatusCommandOutput) => void - ): void; - getConnectionStatus( - args: GetConnectionStatusCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: GetConnectionStatusCommandOutput) => void - ): void; - getDefaultPatchBaseline( - args: GetDefaultPatchBaselineCommandInput, - options?: __HttpHandlerOptions - ): Promise; - getDefaultPatchBaseline( - args: GetDefaultPatchBaselineCommandInput, - cb: (err: any, data?: GetDefaultPatchBaselineCommandOutput) => void - ): void; - getDefaultPatchBaseline( - args: GetDefaultPatchBaselineCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: GetDefaultPatchBaselineCommandOutput) => void - ): void; - getDeployablePatchSnapshotForInstance( - args: GetDeployablePatchSnapshotForInstanceCommandInput, - options?: __HttpHandlerOptions - ): Promise; - getDeployablePatchSnapshotForInstance( - args: GetDeployablePatchSnapshotForInstanceCommandInput, - cb: ( - err: any, - data?: GetDeployablePatchSnapshotForInstanceCommandOutput - ) => void - ): void; - getDeployablePatchSnapshotForInstance( - args: GetDeployablePatchSnapshotForInstanceCommandInput, - options: __HttpHandlerOptions, - cb: ( - err: any, - data?: GetDeployablePatchSnapshotForInstanceCommandOutput - ) => void - ): void; - getDocument( - args: GetDocumentCommandInput, - options?: __HttpHandlerOptions - ): Promise; - getDocument( - args: GetDocumentCommandInput, - cb: (err: any, data?: GetDocumentCommandOutput) => void - ): void; - getDocument( - args: GetDocumentCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: GetDocumentCommandOutput) => void - ): void; - getInventory( - args: GetInventoryCommandInput, - options?: __HttpHandlerOptions - ): Promise; - getInventory( - args: GetInventoryCommandInput, - cb: (err: any, data?: GetInventoryCommandOutput) => void - ): void; - getInventory( - args: GetInventoryCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: GetInventoryCommandOutput) => void - ): void; - getInventorySchema( - args: GetInventorySchemaCommandInput, - options?: __HttpHandlerOptions - ): Promise; - getInventorySchema( - args: GetInventorySchemaCommandInput, - cb: (err: any, data?: GetInventorySchemaCommandOutput) => void - ): void; - getInventorySchema( - args: GetInventorySchemaCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: GetInventorySchemaCommandOutput) => void - ): void; - getMaintenanceWindow( - args: GetMaintenanceWindowCommandInput, - options?: __HttpHandlerOptions - ): Promise; - getMaintenanceWindow( - args: GetMaintenanceWindowCommandInput, - cb: (err: any, data?: GetMaintenanceWindowCommandOutput) => void - ): void; - getMaintenanceWindow( - args: GetMaintenanceWindowCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: GetMaintenanceWindowCommandOutput) => void - ): void; - getMaintenanceWindowExecution( - args: GetMaintenanceWindowExecutionCommandInput, - options?: __HttpHandlerOptions - ): Promise; - getMaintenanceWindowExecution( - args: GetMaintenanceWindowExecutionCommandInput, - cb: (err: any, data?: GetMaintenanceWindowExecutionCommandOutput) => void - ): void; - getMaintenanceWindowExecution( - args: GetMaintenanceWindowExecutionCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: GetMaintenanceWindowExecutionCommandOutput) => void - ): void; - getMaintenanceWindowExecutionTask( - args: GetMaintenanceWindowExecutionTaskCommandInput, - options?: __HttpHandlerOptions - ): Promise; - getMaintenanceWindowExecutionTask( - args: GetMaintenanceWindowExecutionTaskCommandInput, - cb: ( - err: any, - data?: GetMaintenanceWindowExecutionTaskCommandOutput - ) => void - ): void; - getMaintenanceWindowExecutionTask( - args: GetMaintenanceWindowExecutionTaskCommandInput, - options: __HttpHandlerOptions, - cb: ( - err: any, - data?: GetMaintenanceWindowExecutionTaskCommandOutput - ) => void - ): void; - getMaintenanceWindowExecutionTaskInvocation( - args: GetMaintenanceWindowExecutionTaskInvocationCommandInput, - options?: __HttpHandlerOptions - ): Promise; - getMaintenanceWindowExecutionTaskInvocation( - args: GetMaintenanceWindowExecutionTaskInvocationCommandInput, - cb: ( - err: any, - data?: GetMaintenanceWindowExecutionTaskInvocationCommandOutput - ) => void - ): void; - getMaintenanceWindowExecutionTaskInvocation( - args: GetMaintenanceWindowExecutionTaskInvocationCommandInput, - options: __HttpHandlerOptions, - cb: ( - err: any, - data?: GetMaintenanceWindowExecutionTaskInvocationCommandOutput - ) => void - ): void; - getMaintenanceWindowTask( - args: GetMaintenanceWindowTaskCommandInput, - options?: __HttpHandlerOptions - ): Promise; - getMaintenanceWindowTask( - args: GetMaintenanceWindowTaskCommandInput, - cb: (err: any, data?: GetMaintenanceWindowTaskCommandOutput) => void - ): void; - getMaintenanceWindowTask( - args: GetMaintenanceWindowTaskCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: GetMaintenanceWindowTaskCommandOutput) => void - ): void; - getOpsItem( - args: GetOpsItemCommandInput, - options?: __HttpHandlerOptions - ): Promise; - getOpsItem( - args: GetOpsItemCommandInput, - cb: (err: any, data?: GetOpsItemCommandOutput) => void - ): void; - getOpsItem( - args: GetOpsItemCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: GetOpsItemCommandOutput) => void - ): void; - getOpsMetadata( - args: GetOpsMetadataCommandInput, - options?: __HttpHandlerOptions - ): Promise; - getOpsMetadata( - args: GetOpsMetadataCommandInput, - cb: (err: any, data?: GetOpsMetadataCommandOutput) => void - ): void; - getOpsMetadata( - args: GetOpsMetadataCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: GetOpsMetadataCommandOutput) => void - ): void; - getOpsSummary( - args: GetOpsSummaryCommandInput, - options?: __HttpHandlerOptions - ): Promise; - getOpsSummary( - args: GetOpsSummaryCommandInput, - cb: (err: any, data?: GetOpsSummaryCommandOutput) => void - ): void; - getOpsSummary( - args: GetOpsSummaryCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: GetOpsSummaryCommandOutput) => void - ): void; - getParameter( - args: GetParameterCommandInput, - options?: __HttpHandlerOptions - ): Promise; - getParameter( - args: GetParameterCommandInput, - cb: (err: any, data?: GetParameterCommandOutput) => void - ): void; - getParameter( - args: GetParameterCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: GetParameterCommandOutput) => void - ): void; - getParameterHistory( - args: GetParameterHistoryCommandInput, - options?: __HttpHandlerOptions - ): Promise; - getParameterHistory( - args: GetParameterHistoryCommandInput, - cb: (err: any, data?: GetParameterHistoryCommandOutput) => void - ): void; - getParameterHistory( - args: GetParameterHistoryCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: GetParameterHistoryCommandOutput) => void - ): void; - getParameters( - args: GetParametersCommandInput, - options?: __HttpHandlerOptions - ): Promise; - getParameters( - args: GetParametersCommandInput, - cb: (err: any, data?: GetParametersCommandOutput) => void - ): void; - getParameters( - args: GetParametersCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: GetParametersCommandOutput) => void - ): void; - getParametersByPath( - args: GetParametersByPathCommandInput, - options?: __HttpHandlerOptions - ): Promise; - getParametersByPath( - args: GetParametersByPathCommandInput, - cb: (err: any, data?: GetParametersByPathCommandOutput) => void - ): void; - getParametersByPath( - args: GetParametersByPathCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: GetParametersByPathCommandOutput) => void - ): void; - getPatchBaseline( - args: GetPatchBaselineCommandInput, - options?: __HttpHandlerOptions - ): Promise; - getPatchBaseline( - args: GetPatchBaselineCommandInput, - cb: (err: any, data?: GetPatchBaselineCommandOutput) => void - ): void; - getPatchBaseline( - args: GetPatchBaselineCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: GetPatchBaselineCommandOutput) => void - ): void; - getPatchBaselineForPatchGroup( - args: GetPatchBaselineForPatchGroupCommandInput, - options?: __HttpHandlerOptions - ): Promise; - getPatchBaselineForPatchGroup( - args: GetPatchBaselineForPatchGroupCommandInput, - cb: (err: any, data?: GetPatchBaselineForPatchGroupCommandOutput) => void - ): void; - getPatchBaselineForPatchGroup( - args: GetPatchBaselineForPatchGroupCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: GetPatchBaselineForPatchGroupCommandOutput) => void - ): void; - getResourcePolicies( - args: GetResourcePoliciesCommandInput, - options?: __HttpHandlerOptions - ): Promise; - getResourcePolicies( - args: GetResourcePoliciesCommandInput, - cb: (err: any, data?: GetResourcePoliciesCommandOutput) => void - ): void; - getResourcePolicies( - args: GetResourcePoliciesCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: GetResourcePoliciesCommandOutput) => void - ): void; - getServiceSetting( - args: GetServiceSettingCommandInput, - options?: __HttpHandlerOptions - ): Promise; - getServiceSetting( - args: GetServiceSettingCommandInput, - cb: (err: any, data?: GetServiceSettingCommandOutput) => void - ): void; - getServiceSetting( - args: GetServiceSettingCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: GetServiceSettingCommandOutput) => void - ): void; - labelParameterVersion( - args: LabelParameterVersionCommandInput, - options?: __HttpHandlerOptions - ): Promise; - labelParameterVersion( - args: LabelParameterVersionCommandInput, - cb: (err: any, data?: LabelParameterVersionCommandOutput) => void - ): void; - labelParameterVersion( - args: LabelParameterVersionCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: LabelParameterVersionCommandOutput) => void - ): void; - listAssociations( - args: ListAssociationsCommandInput, - options?: __HttpHandlerOptions - ): Promise; - listAssociations( - args: ListAssociationsCommandInput, - cb: (err: any, data?: ListAssociationsCommandOutput) => void - ): void; - listAssociations( - args: ListAssociationsCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: ListAssociationsCommandOutput) => void - ): void; - listAssociationVersions( - args: ListAssociationVersionsCommandInput, - options?: __HttpHandlerOptions - ): Promise; - listAssociationVersions( - args: ListAssociationVersionsCommandInput, - cb: (err: any, data?: ListAssociationVersionsCommandOutput) => void - ): void; - listAssociationVersions( - args: ListAssociationVersionsCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: ListAssociationVersionsCommandOutput) => void - ): void; - listCommandInvocations( - args: ListCommandInvocationsCommandInput, - options?: __HttpHandlerOptions - ): Promise; - listCommandInvocations( - args: ListCommandInvocationsCommandInput, - cb: (err: any, data?: ListCommandInvocationsCommandOutput) => void - ): void; - listCommandInvocations( - args: ListCommandInvocationsCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: ListCommandInvocationsCommandOutput) => void - ): void; - listCommands( - args: ListCommandsCommandInput, - options?: __HttpHandlerOptions - ): Promise; - listCommands( - args: ListCommandsCommandInput, - cb: (err: any, data?: ListCommandsCommandOutput) => void - ): void; - listCommands( - args: ListCommandsCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: ListCommandsCommandOutput) => void - ): void; - listComplianceItems( - args: ListComplianceItemsCommandInput, - options?: __HttpHandlerOptions - ): Promise; - listComplianceItems( - args: ListComplianceItemsCommandInput, - cb: (err: any, data?: ListComplianceItemsCommandOutput) => void - ): void; - listComplianceItems( - args: ListComplianceItemsCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: ListComplianceItemsCommandOutput) => void - ): void; - listComplianceSummaries( - args: ListComplianceSummariesCommandInput, - options?: __HttpHandlerOptions - ): Promise; - listComplianceSummaries( - args: ListComplianceSummariesCommandInput, - cb: (err: any, data?: ListComplianceSummariesCommandOutput) => void - ): void; - listComplianceSummaries( - args: ListComplianceSummariesCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: ListComplianceSummariesCommandOutput) => void - ): void; - listDocumentMetadataHistory( - args: ListDocumentMetadataHistoryCommandInput, - options?: __HttpHandlerOptions - ): Promise; - listDocumentMetadataHistory( - args: ListDocumentMetadataHistoryCommandInput, - cb: (err: any, data?: ListDocumentMetadataHistoryCommandOutput) => void - ): void; - listDocumentMetadataHistory( - args: ListDocumentMetadataHistoryCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: ListDocumentMetadataHistoryCommandOutput) => void - ): void; - listDocuments( - args: ListDocumentsCommandInput, - options?: __HttpHandlerOptions - ): Promise; - listDocuments( - args: ListDocumentsCommandInput, - cb: (err: any, data?: ListDocumentsCommandOutput) => void - ): void; - listDocuments( - args: ListDocumentsCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: ListDocumentsCommandOutput) => void - ): void; - listDocumentVersions( - args: ListDocumentVersionsCommandInput, - options?: __HttpHandlerOptions - ): Promise; - listDocumentVersions( - args: ListDocumentVersionsCommandInput, - cb: (err: any, data?: ListDocumentVersionsCommandOutput) => void - ): void; - listDocumentVersions( - args: ListDocumentVersionsCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: ListDocumentVersionsCommandOutput) => void - ): void; - listInventoryEntries( - args: ListInventoryEntriesCommandInput, - options?: __HttpHandlerOptions - ): Promise; - listInventoryEntries( - args: ListInventoryEntriesCommandInput, - cb: (err: any, data?: ListInventoryEntriesCommandOutput) => void - ): void; - listInventoryEntries( - args: ListInventoryEntriesCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: ListInventoryEntriesCommandOutput) => void - ): void; - listOpsItemEvents( - args: ListOpsItemEventsCommandInput, - options?: __HttpHandlerOptions - ): Promise; - listOpsItemEvents( - args: ListOpsItemEventsCommandInput, - cb: (err: any, data?: ListOpsItemEventsCommandOutput) => void - ): void; - listOpsItemEvents( - args: ListOpsItemEventsCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: ListOpsItemEventsCommandOutput) => void - ): void; - listOpsItemRelatedItems( - args: ListOpsItemRelatedItemsCommandInput, - options?: __HttpHandlerOptions - ): Promise; - listOpsItemRelatedItems( - args: ListOpsItemRelatedItemsCommandInput, - cb: (err: any, data?: ListOpsItemRelatedItemsCommandOutput) => void - ): void; - listOpsItemRelatedItems( - args: ListOpsItemRelatedItemsCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: ListOpsItemRelatedItemsCommandOutput) => void - ): void; - listOpsMetadata( - args: ListOpsMetadataCommandInput, - options?: __HttpHandlerOptions - ): Promise; - listOpsMetadata( - args: ListOpsMetadataCommandInput, - cb: (err: any, data?: ListOpsMetadataCommandOutput) => void - ): void; - listOpsMetadata( - args: ListOpsMetadataCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: ListOpsMetadataCommandOutput) => void - ): void; - listResourceComplianceSummaries( - args: ListResourceComplianceSummariesCommandInput, - options?: __HttpHandlerOptions - ): Promise; - listResourceComplianceSummaries( - args: ListResourceComplianceSummariesCommandInput, - cb: (err: any, data?: ListResourceComplianceSummariesCommandOutput) => void - ): void; - listResourceComplianceSummaries( - args: ListResourceComplianceSummariesCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: ListResourceComplianceSummariesCommandOutput) => void - ): void; - listResourceDataSync( - args: ListResourceDataSyncCommandInput, - options?: __HttpHandlerOptions - ): Promise; - listResourceDataSync( - args: ListResourceDataSyncCommandInput, - cb: (err: any, data?: ListResourceDataSyncCommandOutput) => void - ): void; - listResourceDataSync( - args: ListResourceDataSyncCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: ListResourceDataSyncCommandOutput) => void - ): void; - listTagsForResource( - args: ListTagsForResourceCommandInput, - options?: __HttpHandlerOptions - ): Promise; - listTagsForResource( - args: ListTagsForResourceCommandInput, - cb: (err: any, data?: ListTagsForResourceCommandOutput) => void - ): void; - listTagsForResource( - args: ListTagsForResourceCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: ListTagsForResourceCommandOutput) => void - ): void; - modifyDocumentPermission( - args: ModifyDocumentPermissionCommandInput, - options?: __HttpHandlerOptions - ): Promise; - modifyDocumentPermission( - args: ModifyDocumentPermissionCommandInput, - cb: (err: any, data?: ModifyDocumentPermissionCommandOutput) => void - ): void; - modifyDocumentPermission( - args: ModifyDocumentPermissionCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: ModifyDocumentPermissionCommandOutput) => void - ): void; - putComplianceItems( - args: PutComplianceItemsCommandInput, - options?: __HttpHandlerOptions - ): Promise; - putComplianceItems( - args: PutComplianceItemsCommandInput, - cb: (err: any, data?: PutComplianceItemsCommandOutput) => void - ): void; - putComplianceItems( - args: PutComplianceItemsCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: PutComplianceItemsCommandOutput) => void - ): void; - putInventory( - args: PutInventoryCommandInput, - options?: __HttpHandlerOptions - ): Promise; - putInventory( - args: PutInventoryCommandInput, - cb: (err: any, data?: PutInventoryCommandOutput) => void - ): void; - putInventory( - args: PutInventoryCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: PutInventoryCommandOutput) => void - ): void; - putParameter( - args: PutParameterCommandInput, - options?: __HttpHandlerOptions - ): Promise; - putParameter( - args: PutParameterCommandInput, - cb: (err: any, data?: PutParameterCommandOutput) => void - ): void; - putParameter( - args: PutParameterCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: PutParameterCommandOutput) => void - ): void; - putResourcePolicy( - args: PutResourcePolicyCommandInput, - options?: __HttpHandlerOptions - ): Promise; - putResourcePolicy( - args: PutResourcePolicyCommandInput, - cb: (err: any, data?: PutResourcePolicyCommandOutput) => void - ): void; - putResourcePolicy( - args: PutResourcePolicyCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: PutResourcePolicyCommandOutput) => void - ): void; - registerDefaultPatchBaseline( - args: RegisterDefaultPatchBaselineCommandInput, - options?: __HttpHandlerOptions - ): Promise; - registerDefaultPatchBaseline( - args: RegisterDefaultPatchBaselineCommandInput, - cb: (err: any, data?: RegisterDefaultPatchBaselineCommandOutput) => void - ): void; - registerDefaultPatchBaseline( - args: RegisterDefaultPatchBaselineCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: RegisterDefaultPatchBaselineCommandOutput) => void - ): void; - registerPatchBaselineForPatchGroup( - args: RegisterPatchBaselineForPatchGroupCommandInput, - options?: __HttpHandlerOptions - ): Promise; - registerPatchBaselineForPatchGroup( - args: RegisterPatchBaselineForPatchGroupCommandInput, - cb: ( - err: any, - data?: RegisterPatchBaselineForPatchGroupCommandOutput - ) => void - ): void; - registerPatchBaselineForPatchGroup( - args: RegisterPatchBaselineForPatchGroupCommandInput, - options: __HttpHandlerOptions, - cb: ( - err: any, - data?: RegisterPatchBaselineForPatchGroupCommandOutput - ) => void - ): void; - registerTargetWithMaintenanceWindow( - args: RegisterTargetWithMaintenanceWindowCommandInput, - options?: __HttpHandlerOptions - ): Promise; - registerTargetWithMaintenanceWindow( - args: RegisterTargetWithMaintenanceWindowCommandInput, - cb: ( - err: any, - data?: RegisterTargetWithMaintenanceWindowCommandOutput - ) => void - ): void; - registerTargetWithMaintenanceWindow( - args: RegisterTargetWithMaintenanceWindowCommandInput, - options: __HttpHandlerOptions, - cb: ( - err: any, - data?: RegisterTargetWithMaintenanceWindowCommandOutput - ) => void - ): void; - registerTaskWithMaintenanceWindow( - args: RegisterTaskWithMaintenanceWindowCommandInput, - options?: __HttpHandlerOptions - ): Promise; - registerTaskWithMaintenanceWindow( - args: RegisterTaskWithMaintenanceWindowCommandInput, - cb: ( - err: any, - data?: RegisterTaskWithMaintenanceWindowCommandOutput - ) => void - ): void; - registerTaskWithMaintenanceWindow( - args: RegisterTaskWithMaintenanceWindowCommandInput, - options: __HttpHandlerOptions, - cb: ( - err: any, - data?: RegisterTaskWithMaintenanceWindowCommandOutput - ) => void - ): void; - removeTagsFromResource( - args: RemoveTagsFromResourceCommandInput, - options?: __HttpHandlerOptions - ): Promise; - removeTagsFromResource( - args: RemoveTagsFromResourceCommandInput, - cb: (err: any, data?: RemoveTagsFromResourceCommandOutput) => void - ): void; - removeTagsFromResource( - args: RemoveTagsFromResourceCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: RemoveTagsFromResourceCommandOutput) => void - ): void; - resetServiceSetting( - args: ResetServiceSettingCommandInput, - options?: __HttpHandlerOptions - ): Promise; - resetServiceSetting( - args: ResetServiceSettingCommandInput, - cb: (err: any, data?: ResetServiceSettingCommandOutput) => void - ): void; - resetServiceSetting( - args: ResetServiceSettingCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: ResetServiceSettingCommandOutput) => void - ): void; - resumeSession( - args: ResumeSessionCommandInput, - options?: __HttpHandlerOptions - ): Promise; - resumeSession( - args: ResumeSessionCommandInput, - cb: (err: any, data?: ResumeSessionCommandOutput) => void - ): void; - resumeSession( - args: ResumeSessionCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: ResumeSessionCommandOutput) => void - ): void; - sendAutomationSignal( - args: SendAutomationSignalCommandInput, - options?: __HttpHandlerOptions - ): Promise; - sendAutomationSignal( - args: SendAutomationSignalCommandInput, - cb: (err: any, data?: SendAutomationSignalCommandOutput) => void - ): void; - sendAutomationSignal( - args: SendAutomationSignalCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: SendAutomationSignalCommandOutput) => void - ): void; - sendCommand( - args: SendCommandCommandInput, - options?: __HttpHandlerOptions - ): Promise; - sendCommand( - args: SendCommandCommandInput, - cb: (err: any, data?: SendCommandCommandOutput) => void - ): void; - sendCommand( - args: SendCommandCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: SendCommandCommandOutput) => void - ): void; - startAssociationsOnce( - args: StartAssociationsOnceCommandInput, - options?: __HttpHandlerOptions - ): Promise; - startAssociationsOnce( - args: StartAssociationsOnceCommandInput, - cb: (err: any, data?: StartAssociationsOnceCommandOutput) => void - ): void; - startAssociationsOnce( - args: StartAssociationsOnceCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: StartAssociationsOnceCommandOutput) => void - ): void; - startAutomationExecution( - args: StartAutomationExecutionCommandInput, - options?: __HttpHandlerOptions - ): Promise; - startAutomationExecution( - args: StartAutomationExecutionCommandInput, - cb: (err: any, data?: StartAutomationExecutionCommandOutput) => void - ): void; - startAutomationExecution( - args: StartAutomationExecutionCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: StartAutomationExecutionCommandOutput) => void - ): void; - startChangeRequestExecution( - args: StartChangeRequestExecutionCommandInput, - options?: __HttpHandlerOptions - ): Promise; - startChangeRequestExecution( - args: StartChangeRequestExecutionCommandInput, - cb: (err: any, data?: StartChangeRequestExecutionCommandOutput) => void - ): void; - startChangeRequestExecution( - args: StartChangeRequestExecutionCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: StartChangeRequestExecutionCommandOutput) => void - ): void; - startSession( - args: StartSessionCommandInput, - options?: __HttpHandlerOptions - ): Promise; - startSession( - args: StartSessionCommandInput, - cb: (err: any, data?: StartSessionCommandOutput) => void - ): void; - startSession( - args: StartSessionCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: StartSessionCommandOutput) => void - ): void; - stopAutomationExecution( - args: StopAutomationExecutionCommandInput, - options?: __HttpHandlerOptions - ): Promise; - stopAutomationExecution( - args: StopAutomationExecutionCommandInput, - cb: (err: any, data?: StopAutomationExecutionCommandOutput) => void - ): void; - stopAutomationExecution( - args: StopAutomationExecutionCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: StopAutomationExecutionCommandOutput) => void - ): void; - terminateSession( - args: TerminateSessionCommandInput, - options?: __HttpHandlerOptions - ): Promise; - terminateSession( - args: TerminateSessionCommandInput, - cb: (err: any, data?: TerminateSessionCommandOutput) => void - ): void; - terminateSession( - args: TerminateSessionCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: TerminateSessionCommandOutput) => void - ): void; - unlabelParameterVersion( - args: UnlabelParameterVersionCommandInput, - options?: __HttpHandlerOptions - ): Promise; - unlabelParameterVersion( - args: UnlabelParameterVersionCommandInput, - cb: (err: any, data?: UnlabelParameterVersionCommandOutput) => void - ): void; - unlabelParameterVersion( - args: UnlabelParameterVersionCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: UnlabelParameterVersionCommandOutput) => void - ): void; - updateAssociation( - args: UpdateAssociationCommandInput, - options?: __HttpHandlerOptions - ): Promise; - updateAssociation( - args: UpdateAssociationCommandInput, - cb: (err: any, data?: UpdateAssociationCommandOutput) => void - ): void; - updateAssociation( - args: UpdateAssociationCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: UpdateAssociationCommandOutput) => void - ): void; - updateAssociationStatus( - args: UpdateAssociationStatusCommandInput, - options?: __HttpHandlerOptions - ): Promise; - updateAssociationStatus( - args: UpdateAssociationStatusCommandInput, - cb: (err: any, data?: UpdateAssociationStatusCommandOutput) => void - ): void; - updateAssociationStatus( - args: UpdateAssociationStatusCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: UpdateAssociationStatusCommandOutput) => void - ): void; - updateDocument( - args: UpdateDocumentCommandInput, - options?: __HttpHandlerOptions - ): Promise; - updateDocument( - args: UpdateDocumentCommandInput, - cb: (err: any, data?: UpdateDocumentCommandOutput) => void - ): void; - updateDocument( - args: UpdateDocumentCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: UpdateDocumentCommandOutput) => void - ): void; - updateDocumentDefaultVersion( - args: UpdateDocumentDefaultVersionCommandInput, - options?: __HttpHandlerOptions - ): Promise; - updateDocumentDefaultVersion( - args: UpdateDocumentDefaultVersionCommandInput, - cb: (err: any, data?: UpdateDocumentDefaultVersionCommandOutput) => void - ): void; - updateDocumentDefaultVersion( - args: UpdateDocumentDefaultVersionCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: UpdateDocumentDefaultVersionCommandOutput) => void - ): void; - updateDocumentMetadata( - args: UpdateDocumentMetadataCommandInput, - options?: __HttpHandlerOptions - ): Promise; - updateDocumentMetadata( - args: UpdateDocumentMetadataCommandInput, - cb: (err: any, data?: UpdateDocumentMetadataCommandOutput) => void - ): void; - updateDocumentMetadata( - args: UpdateDocumentMetadataCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: UpdateDocumentMetadataCommandOutput) => void - ): void; - updateMaintenanceWindow( - args: UpdateMaintenanceWindowCommandInput, - options?: __HttpHandlerOptions - ): Promise; - updateMaintenanceWindow( - args: UpdateMaintenanceWindowCommandInput, - cb: (err: any, data?: UpdateMaintenanceWindowCommandOutput) => void - ): void; - updateMaintenanceWindow( - args: UpdateMaintenanceWindowCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: UpdateMaintenanceWindowCommandOutput) => void - ): void; - updateMaintenanceWindowTarget( - args: UpdateMaintenanceWindowTargetCommandInput, - options?: __HttpHandlerOptions - ): Promise; - updateMaintenanceWindowTarget( - args: UpdateMaintenanceWindowTargetCommandInput, - cb: (err: any, data?: UpdateMaintenanceWindowTargetCommandOutput) => void - ): void; - updateMaintenanceWindowTarget( - args: UpdateMaintenanceWindowTargetCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: UpdateMaintenanceWindowTargetCommandOutput) => void - ): void; - updateMaintenanceWindowTask( - args: UpdateMaintenanceWindowTaskCommandInput, - options?: __HttpHandlerOptions - ): Promise; - updateMaintenanceWindowTask( - args: UpdateMaintenanceWindowTaskCommandInput, - cb: (err: any, data?: UpdateMaintenanceWindowTaskCommandOutput) => void - ): void; - updateMaintenanceWindowTask( - args: UpdateMaintenanceWindowTaskCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: UpdateMaintenanceWindowTaskCommandOutput) => void - ): void; - updateManagedInstanceRole( - args: UpdateManagedInstanceRoleCommandInput, - options?: __HttpHandlerOptions - ): Promise; - updateManagedInstanceRole( - args: UpdateManagedInstanceRoleCommandInput, - cb: (err: any, data?: UpdateManagedInstanceRoleCommandOutput) => void - ): void; - updateManagedInstanceRole( - args: UpdateManagedInstanceRoleCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: UpdateManagedInstanceRoleCommandOutput) => void - ): void; - updateOpsItem( - args: UpdateOpsItemCommandInput, - options?: __HttpHandlerOptions - ): Promise; - updateOpsItem( - args: UpdateOpsItemCommandInput, - cb: (err: any, data?: UpdateOpsItemCommandOutput) => void - ): void; - updateOpsItem( - args: UpdateOpsItemCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: UpdateOpsItemCommandOutput) => void - ): void; - updateOpsMetadata( - args: UpdateOpsMetadataCommandInput, - options?: __HttpHandlerOptions - ): Promise; - updateOpsMetadata( - args: UpdateOpsMetadataCommandInput, - cb: (err: any, data?: UpdateOpsMetadataCommandOutput) => void - ): void; - updateOpsMetadata( - args: UpdateOpsMetadataCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: UpdateOpsMetadataCommandOutput) => void - ): void; - updatePatchBaseline( - args: UpdatePatchBaselineCommandInput, - options?: __HttpHandlerOptions - ): Promise; - updatePatchBaseline( - args: UpdatePatchBaselineCommandInput, - cb: (err: any, data?: UpdatePatchBaselineCommandOutput) => void - ): void; - updatePatchBaseline( - args: UpdatePatchBaselineCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: UpdatePatchBaselineCommandOutput) => void - ): void; - updateResourceDataSync( - args: UpdateResourceDataSyncCommandInput, - options?: __HttpHandlerOptions - ): Promise; - updateResourceDataSync( - args: UpdateResourceDataSyncCommandInput, - cb: (err: any, data?: UpdateResourceDataSyncCommandOutput) => void - ): void; - updateResourceDataSync( - args: UpdateResourceDataSyncCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: UpdateResourceDataSyncCommandOutput) => void - ): void; - updateServiceSetting( - args: UpdateServiceSettingCommandInput, - options?: __HttpHandlerOptions - ): Promise; - updateServiceSetting( - args: UpdateServiceSettingCommandInput, - cb: (err: any, data?: UpdateServiceSettingCommandOutput) => void - ): void; - updateServiceSetting( - args: UpdateServiceSettingCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: UpdateServiceSettingCommandOutput) => void - ): void; -} -export declare class SSM extends SSMClient implements SSM {} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/SSMClient.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/SSMClient.d.ts deleted file mode 100644 index bdea5e9b..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/SSMClient.d.ts +++ /dev/null @@ -1,949 +0,0 @@ -import { - HostHeaderInputConfig, - HostHeaderResolvedConfig, -} from "@aws-sdk/middleware-host-header"; -import { - AwsAuthInputConfig, - AwsAuthResolvedConfig, -} from "@aws-sdk/middleware-signing"; -import { - UserAgentInputConfig, - UserAgentResolvedConfig, -} from "@aws-sdk/middleware-user-agent"; -import { Credentials as __Credentials } from "@aws-sdk/types"; -import { - RegionInputConfig, - RegionResolvedConfig, -} from "@smithy/config-resolver"; -import { - EndpointInputConfig, - EndpointResolvedConfig, -} from "@smithy/middleware-endpoint"; -import { - RetryInputConfig, - RetryResolvedConfig, -} from "@smithy/middleware-retry"; -import { HttpHandler as __HttpHandler } from "@smithy/protocol-http"; -import { - Client as __Client, - DefaultsMode as __DefaultsMode, - SmithyConfiguration as __SmithyConfiguration, - SmithyResolvedConfiguration as __SmithyResolvedConfiguration, -} from "@smithy/smithy-client"; -import { - BodyLengthCalculator as __BodyLengthCalculator, - CheckOptionalClientConfig as __CheckOptionalClientConfig, - ChecksumConstructor as __ChecksumConstructor, - Decoder as __Decoder, - Encoder as __Encoder, - HashConstructor as __HashConstructor, - HttpHandlerOptions as __HttpHandlerOptions, - Logger as __Logger, - Provider as __Provider, - Provider, - StreamCollector as __StreamCollector, - UrlParser as __UrlParser, - UserAgent as __UserAgent, -} from "@smithy/types"; -import { - AddTagsToResourceCommandInput, - AddTagsToResourceCommandOutput, -} from "./commands/AddTagsToResourceCommand"; -import { - AssociateOpsItemRelatedItemCommandInput, - AssociateOpsItemRelatedItemCommandOutput, -} from "./commands/AssociateOpsItemRelatedItemCommand"; -import { - CancelCommandCommandInput, - CancelCommandCommandOutput, -} from "./commands/CancelCommandCommand"; -import { - CancelMaintenanceWindowExecutionCommandInput, - CancelMaintenanceWindowExecutionCommandOutput, -} from "./commands/CancelMaintenanceWindowExecutionCommand"; -import { - CreateActivationCommandInput, - CreateActivationCommandOutput, -} from "./commands/CreateActivationCommand"; -import { - CreateAssociationBatchCommandInput, - CreateAssociationBatchCommandOutput, -} from "./commands/CreateAssociationBatchCommand"; -import { - CreateAssociationCommandInput, - CreateAssociationCommandOutput, -} from "./commands/CreateAssociationCommand"; -import { - CreateDocumentCommandInput, - CreateDocumentCommandOutput, -} from "./commands/CreateDocumentCommand"; -import { - CreateMaintenanceWindowCommandInput, - CreateMaintenanceWindowCommandOutput, -} from "./commands/CreateMaintenanceWindowCommand"; -import { - CreateOpsItemCommandInput, - CreateOpsItemCommandOutput, -} from "./commands/CreateOpsItemCommand"; -import { - CreateOpsMetadataCommandInput, - CreateOpsMetadataCommandOutput, -} from "./commands/CreateOpsMetadataCommand"; -import { - CreatePatchBaselineCommandInput, - CreatePatchBaselineCommandOutput, -} from "./commands/CreatePatchBaselineCommand"; -import { - CreateResourceDataSyncCommandInput, - CreateResourceDataSyncCommandOutput, -} from "./commands/CreateResourceDataSyncCommand"; -import { - DeleteActivationCommandInput, - DeleteActivationCommandOutput, -} from "./commands/DeleteActivationCommand"; -import { - DeleteAssociationCommandInput, - DeleteAssociationCommandOutput, -} from "./commands/DeleteAssociationCommand"; -import { - DeleteDocumentCommandInput, - DeleteDocumentCommandOutput, -} from "./commands/DeleteDocumentCommand"; -import { - DeleteInventoryCommandInput, - DeleteInventoryCommandOutput, -} from "./commands/DeleteInventoryCommand"; -import { - DeleteMaintenanceWindowCommandInput, - DeleteMaintenanceWindowCommandOutput, -} from "./commands/DeleteMaintenanceWindowCommand"; -import { - DeleteOpsItemCommandInput, - DeleteOpsItemCommandOutput, -} from "./commands/DeleteOpsItemCommand"; -import { - DeleteOpsMetadataCommandInput, - DeleteOpsMetadataCommandOutput, -} from "./commands/DeleteOpsMetadataCommand"; -import { - DeleteParameterCommandInput, - DeleteParameterCommandOutput, -} from "./commands/DeleteParameterCommand"; -import { - DeleteParametersCommandInput, - DeleteParametersCommandOutput, -} from "./commands/DeleteParametersCommand"; -import { - DeletePatchBaselineCommandInput, - DeletePatchBaselineCommandOutput, -} from "./commands/DeletePatchBaselineCommand"; -import { - DeleteResourceDataSyncCommandInput, - DeleteResourceDataSyncCommandOutput, -} from "./commands/DeleteResourceDataSyncCommand"; -import { - DeleteResourcePolicyCommandInput, - DeleteResourcePolicyCommandOutput, -} from "./commands/DeleteResourcePolicyCommand"; -import { - DeregisterManagedInstanceCommandInput, - DeregisterManagedInstanceCommandOutput, -} from "./commands/DeregisterManagedInstanceCommand"; -import { - DeregisterPatchBaselineForPatchGroupCommandInput, - DeregisterPatchBaselineForPatchGroupCommandOutput, -} from "./commands/DeregisterPatchBaselineForPatchGroupCommand"; -import { - DeregisterTargetFromMaintenanceWindowCommandInput, - DeregisterTargetFromMaintenanceWindowCommandOutput, -} from "./commands/DeregisterTargetFromMaintenanceWindowCommand"; -import { - DeregisterTaskFromMaintenanceWindowCommandInput, - DeregisterTaskFromMaintenanceWindowCommandOutput, -} from "./commands/DeregisterTaskFromMaintenanceWindowCommand"; -import { - DescribeActivationsCommandInput, - DescribeActivationsCommandOutput, -} from "./commands/DescribeActivationsCommand"; -import { - DescribeAssociationCommandInput, - DescribeAssociationCommandOutput, -} from "./commands/DescribeAssociationCommand"; -import { - DescribeAssociationExecutionsCommandInput, - DescribeAssociationExecutionsCommandOutput, -} from "./commands/DescribeAssociationExecutionsCommand"; -import { - DescribeAssociationExecutionTargetsCommandInput, - DescribeAssociationExecutionTargetsCommandOutput, -} from "./commands/DescribeAssociationExecutionTargetsCommand"; -import { - DescribeAutomationExecutionsCommandInput, - DescribeAutomationExecutionsCommandOutput, -} from "./commands/DescribeAutomationExecutionsCommand"; -import { - DescribeAutomationStepExecutionsCommandInput, - DescribeAutomationStepExecutionsCommandOutput, -} from "./commands/DescribeAutomationStepExecutionsCommand"; -import { - DescribeAvailablePatchesCommandInput, - DescribeAvailablePatchesCommandOutput, -} from "./commands/DescribeAvailablePatchesCommand"; -import { - DescribeDocumentCommandInput, - DescribeDocumentCommandOutput, -} from "./commands/DescribeDocumentCommand"; -import { - DescribeDocumentPermissionCommandInput, - DescribeDocumentPermissionCommandOutput, -} from "./commands/DescribeDocumentPermissionCommand"; -import { - DescribeEffectiveInstanceAssociationsCommandInput, - DescribeEffectiveInstanceAssociationsCommandOutput, -} from "./commands/DescribeEffectiveInstanceAssociationsCommand"; -import { - DescribeEffectivePatchesForPatchBaselineCommandInput, - DescribeEffectivePatchesForPatchBaselineCommandOutput, -} from "./commands/DescribeEffectivePatchesForPatchBaselineCommand"; -import { - DescribeInstanceAssociationsStatusCommandInput, - DescribeInstanceAssociationsStatusCommandOutput, -} from "./commands/DescribeInstanceAssociationsStatusCommand"; -import { - DescribeInstanceInformationCommandInput, - DescribeInstanceInformationCommandOutput, -} from "./commands/DescribeInstanceInformationCommand"; -import { - DescribeInstancePatchesCommandInput, - DescribeInstancePatchesCommandOutput, -} from "./commands/DescribeInstancePatchesCommand"; -import { - DescribeInstancePatchStatesCommandInput, - DescribeInstancePatchStatesCommandOutput, -} from "./commands/DescribeInstancePatchStatesCommand"; -import { - DescribeInstancePatchStatesForPatchGroupCommandInput, - DescribeInstancePatchStatesForPatchGroupCommandOutput, -} from "./commands/DescribeInstancePatchStatesForPatchGroupCommand"; -import { - DescribeInventoryDeletionsCommandInput, - DescribeInventoryDeletionsCommandOutput, -} from "./commands/DescribeInventoryDeletionsCommand"; -import { - DescribeMaintenanceWindowExecutionsCommandInput, - DescribeMaintenanceWindowExecutionsCommandOutput, -} from "./commands/DescribeMaintenanceWindowExecutionsCommand"; -import { - DescribeMaintenanceWindowExecutionTaskInvocationsCommandInput, - DescribeMaintenanceWindowExecutionTaskInvocationsCommandOutput, -} from "./commands/DescribeMaintenanceWindowExecutionTaskInvocationsCommand"; -import { - DescribeMaintenanceWindowExecutionTasksCommandInput, - DescribeMaintenanceWindowExecutionTasksCommandOutput, -} from "./commands/DescribeMaintenanceWindowExecutionTasksCommand"; -import { - DescribeMaintenanceWindowScheduleCommandInput, - DescribeMaintenanceWindowScheduleCommandOutput, -} from "./commands/DescribeMaintenanceWindowScheduleCommand"; -import { - DescribeMaintenanceWindowsCommandInput, - DescribeMaintenanceWindowsCommandOutput, -} from "./commands/DescribeMaintenanceWindowsCommand"; -import { - DescribeMaintenanceWindowsForTargetCommandInput, - DescribeMaintenanceWindowsForTargetCommandOutput, -} from "./commands/DescribeMaintenanceWindowsForTargetCommand"; -import { - DescribeMaintenanceWindowTargetsCommandInput, - DescribeMaintenanceWindowTargetsCommandOutput, -} from "./commands/DescribeMaintenanceWindowTargetsCommand"; -import { - DescribeMaintenanceWindowTasksCommandInput, - DescribeMaintenanceWindowTasksCommandOutput, -} from "./commands/DescribeMaintenanceWindowTasksCommand"; -import { - DescribeOpsItemsCommandInput, - DescribeOpsItemsCommandOutput, -} from "./commands/DescribeOpsItemsCommand"; -import { - DescribeParametersCommandInput, - DescribeParametersCommandOutput, -} from "./commands/DescribeParametersCommand"; -import { - DescribePatchBaselinesCommandInput, - DescribePatchBaselinesCommandOutput, -} from "./commands/DescribePatchBaselinesCommand"; -import { - DescribePatchGroupsCommandInput, - DescribePatchGroupsCommandOutput, -} from "./commands/DescribePatchGroupsCommand"; -import { - DescribePatchGroupStateCommandInput, - DescribePatchGroupStateCommandOutput, -} from "./commands/DescribePatchGroupStateCommand"; -import { - DescribePatchPropertiesCommandInput, - DescribePatchPropertiesCommandOutput, -} from "./commands/DescribePatchPropertiesCommand"; -import { - DescribeSessionsCommandInput, - DescribeSessionsCommandOutput, -} from "./commands/DescribeSessionsCommand"; -import { - DisassociateOpsItemRelatedItemCommandInput, - DisassociateOpsItemRelatedItemCommandOutput, -} from "./commands/DisassociateOpsItemRelatedItemCommand"; -import { - GetAutomationExecutionCommandInput, - GetAutomationExecutionCommandOutput, -} from "./commands/GetAutomationExecutionCommand"; -import { - GetCalendarStateCommandInput, - GetCalendarStateCommandOutput, -} from "./commands/GetCalendarStateCommand"; -import { - GetCommandInvocationCommandInput, - GetCommandInvocationCommandOutput, -} from "./commands/GetCommandInvocationCommand"; -import { - GetConnectionStatusCommandInput, - GetConnectionStatusCommandOutput, -} from "./commands/GetConnectionStatusCommand"; -import { - GetDefaultPatchBaselineCommandInput, - GetDefaultPatchBaselineCommandOutput, -} from "./commands/GetDefaultPatchBaselineCommand"; -import { - GetDeployablePatchSnapshotForInstanceCommandInput, - GetDeployablePatchSnapshotForInstanceCommandOutput, -} from "./commands/GetDeployablePatchSnapshotForInstanceCommand"; -import { - GetDocumentCommandInput, - GetDocumentCommandOutput, -} from "./commands/GetDocumentCommand"; -import { - GetInventoryCommandInput, - GetInventoryCommandOutput, -} from "./commands/GetInventoryCommand"; -import { - GetInventorySchemaCommandInput, - GetInventorySchemaCommandOutput, -} from "./commands/GetInventorySchemaCommand"; -import { - GetMaintenanceWindowCommandInput, - GetMaintenanceWindowCommandOutput, -} from "./commands/GetMaintenanceWindowCommand"; -import { - GetMaintenanceWindowExecutionCommandInput, - GetMaintenanceWindowExecutionCommandOutput, -} from "./commands/GetMaintenanceWindowExecutionCommand"; -import { - GetMaintenanceWindowExecutionTaskCommandInput, - GetMaintenanceWindowExecutionTaskCommandOutput, -} from "./commands/GetMaintenanceWindowExecutionTaskCommand"; -import { - GetMaintenanceWindowExecutionTaskInvocationCommandInput, - GetMaintenanceWindowExecutionTaskInvocationCommandOutput, -} from "./commands/GetMaintenanceWindowExecutionTaskInvocationCommand"; -import { - GetMaintenanceWindowTaskCommandInput, - GetMaintenanceWindowTaskCommandOutput, -} from "./commands/GetMaintenanceWindowTaskCommand"; -import { - GetOpsItemCommandInput, - GetOpsItemCommandOutput, -} from "./commands/GetOpsItemCommand"; -import { - GetOpsMetadataCommandInput, - GetOpsMetadataCommandOutput, -} from "./commands/GetOpsMetadataCommand"; -import { - GetOpsSummaryCommandInput, - GetOpsSummaryCommandOutput, -} from "./commands/GetOpsSummaryCommand"; -import { - GetParameterCommandInput, - GetParameterCommandOutput, -} from "./commands/GetParameterCommand"; -import { - GetParameterHistoryCommandInput, - GetParameterHistoryCommandOutput, -} from "./commands/GetParameterHistoryCommand"; -import { - GetParametersByPathCommandInput, - GetParametersByPathCommandOutput, -} from "./commands/GetParametersByPathCommand"; -import { - GetParametersCommandInput, - GetParametersCommandOutput, -} from "./commands/GetParametersCommand"; -import { - GetPatchBaselineCommandInput, - GetPatchBaselineCommandOutput, -} from "./commands/GetPatchBaselineCommand"; -import { - GetPatchBaselineForPatchGroupCommandInput, - GetPatchBaselineForPatchGroupCommandOutput, -} from "./commands/GetPatchBaselineForPatchGroupCommand"; -import { - GetResourcePoliciesCommandInput, - GetResourcePoliciesCommandOutput, -} from "./commands/GetResourcePoliciesCommand"; -import { - GetServiceSettingCommandInput, - GetServiceSettingCommandOutput, -} from "./commands/GetServiceSettingCommand"; -import { - LabelParameterVersionCommandInput, - LabelParameterVersionCommandOutput, -} from "./commands/LabelParameterVersionCommand"; -import { - ListAssociationsCommandInput, - ListAssociationsCommandOutput, -} from "./commands/ListAssociationsCommand"; -import { - ListAssociationVersionsCommandInput, - ListAssociationVersionsCommandOutput, -} from "./commands/ListAssociationVersionsCommand"; -import { - ListCommandInvocationsCommandInput, - ListCommandInvocationsCommandOutput, -} from "./commands/ListCommandInvocationsCommand"; -import { - ListCommandsCommandInput, - ListCommandsCommandOutput, -} from "./commands/ListCommandsCommand"; -import { - ListComplianceItemsCommandInput, - ListComplianceItemsCommandOutput, -} from "./commands/ListComplianceItemsCommand"; -import { - ListComplianceSummariesCommandInput, - ListComplianceSummariesCommandOutput, -} from "./commands/ListComplianceSummariesCommand"; -import { - ListDocumentMetadataHistoryCommandInput, - ListDocumentMetadataHistoryCommandOutput, -} from "./commands/ListDocumentMetadataHistoryCommand"; -import { - ListDocumentsCommandInput, - ListDocumentsCommandOutput, -} from "./commands/ListDocumentsCommand"; -import { - ListDocumentVersionsCommandInput, - ListDocumentVersionsCommandOutput, -} from "./commands/ListDocumentVersionsCommand"; -import { - ListInventoryEntriesCommandInput, - ListInventoryEntriesCommandOutput, -} from "./commands/ListInventoryEntriesCommand"; -import { - ListOpsItemEventsCommandInput, - ListOpsItemEventsCommandOutput, -} from "./commands/ListOpsItemEventsCommand"; -import { - ListOpsItemRelatedItemsCommandInput, - ListOpsItemRelatedItemsCommandOutput, -} from "./commands/ListOpsItemRelatedItemsCommand"; -import { - ListOpsMetadataCommandInput, - ListOpsMetadataCommandOutput, -} from "./commands/ListOpsMetadataCommand"; -import { - ListResourceComplianceSummariesCommandInput, - ListResourceComplianceSummariesCommandOutput, -} from "./commands/ListResourceComplianceSummariesCommand"; -import { - ListResourceDataSyncCommandInput, - ListResourceDataSyncCommandOutput, -} from "./commands/ListResourceDataSyncCommand"; -import { - ListTagsForResourceCommandInput, - ListTagsForResourceCommandOutput, -} from "./commands/ListTagsForResourceCommand"; -import { - ModifyDocumentPermissionCommandInput, - ModifyDocumentPermissionCommandOutput, -} from "./commands/ModifyDocumentPermissionCommand"; -import { - PutComplianceItemsCommandInput, - PutComplianceItemsCommandOutput, -} from "./commands/PutComplianceItemsCommand"; -import { - PutInventoryCommandInput, - PutInventoryCommandOutput, -} from "./commands/PutInventoryCommand"; -import { - PutParameterCommandInput, - PutParameterCommandOutput, -} from "./commands/PutParameterCommand"; -import { - PutResourcePolicyCommandInput, - PutResourcePolicyCommandOutput, -} from "./commands/PutResourcePolicyCommand"; -import { - RegisterDefaultPatchBaselineCommandInput, - RegisterDefaultPatchBaselineCommandOutput, -} from "./commands/RegisterDefaultPatchBaselineCommand"; -import { - RegisterPatchBaselineForPatchGroupCommandInput, - RegisterPatchBaselineForPatchGroupCommandOutput, -} from "./commands/RegisterPatchBaselineForPatchGroupCommand"; -import { - RegisterTargetWithMaintenanceWindowCommandInput, - RegisterTargetWithMaintenanceWindowCommandOutput, -} from "./commands/RegisterTargetWithMaintenanceWindowCommand"; -import { - RegisterTaskWithMaintenanceWindowCommandInput, - RegisterTaskWithMaintenanceWindowCommandOutput, -} from "./commands/RegisterTaskWithMaintenanceWindowCommand"; -import { - RemoveTagsFromResourceCommandInput, - RemoveTagsFromResourceCommandOutput, -} from "./commands/RemoveTagsFromResourceCommand"; -import { - ResetServiceSettingCommandInput, - ResetServiceSettingCommandOutput, -} from "./commands/ResetServiceSettingCommand"; -import { - ResumeSessionCommandInput, - ResumeSessionCommandOutput, -} from "./commands/ResumeSessionCommand"; -import { - SendAutomationSignalCommandInput, - SendAutomationSignalCommandOutput, -} from "./commands/SendAutomationSignalCommand"; -import { - SendCommandCommandInput, - SendCommandCommandOutput, -} from "./commands/SendCommandCommand"; -import { - StartAssociationsOnceCommandInput, - StartAssociationsOnceCommandOutput, -} from "./commands/StartAssociationsOnceCommand"; -import { - StartAutomationExecutionCommandInput, - StartAutomationExecutionCommandOutput, -} from "./commands/StartAutomationExecutionCommand"; -import { - StartChangeRequestExecutionCommandInput, - StartChangeRequestExecutionCommandOutput, -} from "./commands/StartChangeRequestExecutionCommand"; -import { - StartSessionCommandInput, - StartSessionCommandOutput, -} from "./commands/StartSessionCommand"; -import { - StopAutomationExecutionCommandInput, - StopAutomationExecutionCommandOutput, -} from "./commands/StopAutomationExecutionCommand"; -import { - TerminateSessionCommandInput, - TerminateSessionCommandOutput, -} from "./commands/TerminateSessionCommand"; -import { - UnlabelParameterVersionCommandInput, - UnlabelParameterVersionCommandOutput, -} from "./commands/UnlabelParameterVersionCommand"; -import { - UpdateAssociationCommandInput, - UpdateAssociationCommandOutput, -} from "./commands/UpdateAssociationCommand"; -import { - UpdateAssociationStatusCommandInput, - UpdateAssociationStatusCommandOutput, -} from "./commands/UpdateAssociationStatusCommand"; -import { - UpdateDocumentCommandInput, - UpdateDocumentCommandOutput, -} from "./commands/UpdateDocumentCommand"; -import { - UpdateDocumentDefaultVersionCommandInput, - UpdateDocumentDefaultVersionCommandOutput, -} from "./commands/UpdateDocumentDefaultVersionCommand"; -import { - UpdateDocumentMetadataCommandInput, - UpdateDocumentMetadataCommandOutput, -} from "./commands/UpdateDocumentMetadataCommand"; -import { - UpdateMaintenanceWindowCommandInput, - UpdateMaintenanceWindowCommandOutput, -} from "./commands/UpdateMaintenanceWindowCommand"; -import { - UpdateMaintenanceWindowTargetCommandInput, - UpdateMaintenanceWindowTargetCommandOutput, -} from "./commands/UpdateMaintenanceWindowTargetCommand"; -import { - UpdateMaintenanceWindowTaskCommandInput, - UpdateMaintenanceWindowTaskCommandOutput, -} from "./commands/UpdateMaintenanceWindowTaskCommand"; -import { - UpdateManagedInstanceRoleCommandInput, - UpdateManagedInstanceRoleCommandOutput, -} from "./commands/UpdateManagedInstanceRoleCommand"; -import { - UpdateOpsItemCommandInput, - UpdateOpsItemCommandOutput, -} from "./commands/UpdateOpsItemCommand"; -import { - UpdateOpsMetadataCommandInput, - UpdateOpsMetadataCommandOutput, -} from "./commands/UpdateOpsMetadataCommand"; -import { - UpdatePatchBaselineCommandInput, - UpdatePatchBaselineCommandOutput, -} from "./commands/UpdatePatchBaselineCommand"; -import { - UpdateResourceDataSyncCommandInput, - UpdateResourceDataSyncCommandOutput, -} from "./commands/UpdateResourceDataSyncCommand"; -import { - UpdateServiceSettingCommandInput, - UpdateServiceSettingCommandOutput, -} from "./commands/UpdateServiceSettingCommand"; -import { - ClientInputEndpointParameters, - ClientResolvedEndpointParameters, - EndpointParameters, -} from "./endpoint/EndpointParameters"; -import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions"; -export { __Client }; -export type ServiceInputTypes = - | AddTagsToResourceCommandInput - | AssociateOpsItemRelatedItemCommandInput - | CancelCommandCommandInput - | CancelMaintenanceWindowExecutionCommandInput - | CreateActivationCommandInput - | CreateAssociationBatchCommandInput - | CreateAssociationCommandInput - | CreateDocumentCommandInput - | CreateMaintenanceWindowCommandInput - | CreateOpsItemCommandInput - | CreateOpsMetadataCommandInput - | CreatePatchBaselineCommandInput - | CreateResourceDataSyncCommandInput - | DeleteActivationCommandInput - | DeleteAssociationCommandInput - | DeleteDocumentCommandInput - | DeleteInventoryCommandInput - | DeleteMaintenanceWindowCommandInput - | DeleteOpsItemCommandInput - | DeleteOpsMetadataCommandInput - | DeleteParameterCommandInput - | DeleteParametersCommandInput - | DeletePatchBaselineCommandInput - | DeleteResourceDataSyncCommandInput - | DeleteResourcePolicyCommandInput - | DeregisterManagedInstanceCommandInput - | DeregisterPatchBaselineForPatchGroupCommandInput - | DeregisterTargetFromMaintenanceWindowCommandInput - | DeregisterTaskFromMaintenanceWindowCommandInput - | DescribeActivationsCommandInput - | DescribeAssociationCommandInput - | DescribeAssociationExecutionTargetsCommandInput - | DescribeAssociationExecutionsCommandInput - | DescribeAutomationExecutionsCommandInput - | DescribeAutomationStepExecutionsCommandInput - | DescribeAvailablePatchesCommandInput - | DescribeDocumentCommandInput - | DescribeDocumentPermissionCommandInput - | DescribeEffectiveInstanceAssociationsCommandInput - | DescribeEffectivePatchesForPatchBaselineCommandInput - | DescribeInstanceAssociationsStatusCommandInput - | DescribeInstanceInformationCommandInput - | DescribeInstancePatchStatesCommandInput - | DescribeInstancePatchStatesForPatchGroupCommandInput - | DescribeInstancePatchesCommandInput - | DescribeInventoryDeletionsCommandInput - | DescribeMaintenanceWindowExecutionTaskInvocationsCommandInput - | DescribeMaintenanceWindowExecutionTasksCommandInput - | DescribeMaintenanceWindowExecutionsCommandInput - | DescribeMaintenanceWindowScheduleCommandInput - | DescribeMaintenanceWindowTargetsCommandInput - | DescribeMaintenanceWindowTasksCommandInput - | DescribeMaintenanceWindowsCommandInput - | DescribeMaintenanceWindowsForTargetCommandInput - | DescribeOpsItemsCommandInput - | DescribeParametersCommandInput - | DescribePatchBaselinesCommandInput - | DescribePatchGroupStateCommandInput - | DescribePatchGroupsCommandInput - | DescribePatchPropertiesCommandInput - | DescribeSessionsCommandInput - | DisassociateOpsItemRelatedItemCommandInput - | GetAutomationExecutionCommandInput - | GetCalendarStateCommandInput - | GetCommandInvocationCommandInput - | GetConnectionStatusCommandInput - | GetDefaultPatchBaselineCommandInput - | GetDeployablePatchSnapshotForInstanceCommandInput - | GetDocumentCommandInput - | GetInventoryCommandInput - | GetInventorySchemaCommandInput - | GetMaintenanceWindowCommandInput - | GetMaintenanceWindowExecutionCommandInput - | GetMaintenanceWindowExecutionTaskCommandInput - | GetMaintenanceWindowExecutionTaskInvocationCommandInput - | GetMaintenanceWindowTaskCommandInput - | GetOpsItemCommandInput - | GetOpsMetadataCommandInput - | GetOpsSummaryCommandInput - | GetParameterCommandInput - | GetParameterHistoryCommandInput - | GetParametersByPathCommandInput - | GetParametersCommandInput - | GetPatchBaselineCommandInput - | GetPatchBaselineForPatchGroupCommandInput - | GetResourcePoliciesCommandInput - | GetServiceSettingCommandInput - | LabelParameterVersionCommandInput - | ListAssociationVersionsCommandInput - | ListAssociationsCommandInput - | ListCommandInvocationsCommandInput - | ListCommandsCommandInput - | ListComplianceItemsCommandInput - | ListComplianceSummariesCommandInput - | ListDocumentMetadataHistoryCommandInput - | ListDocumentVersionsCommandInput - | ListDocumentsCommandInput - | ListInventoryEntriesCommandInput - | ListOpsItemEventsCommandInput - | ListOpsItemRelatedItemsCommandInput - | ListOpsMetadataCommandInput - | ListResourceComplianceSummariesCommandInput - | ListResourceDataSyncCommandInput - | ListTagsForResourceCommandInput - | ModifyDocumentPermissionCommandInput - | PutComplianceItemsCommandInput - | PutInventoryCommandInput - | PutParameterCommandInput - | PutResourcePolicyCommandInput - | RegisterDefaultPatchBaselineCommandInput - | RegisterPatchBaselineForPatchGroupCommandInput - | RegisterTargetWithMaintenanceWindowCommandInput - | RegisterTaskWithMaintenanceWindowCommandInput - | RemoveTagsFromResourceCommandInput - | ResetServiceSettingCommandInput - | ResumeSessionCommandInput - | SendAutomationSignalCommandInput - | SendCommandCommandInput - | StartAssociationsOnceCommandInput - | StartAutomationExecutionCommandInput - | StartChangeRequestExecutionCommandInput - | StartSessionCommandInput - | StopAutomationExecutionCommandInput - | TerminateSessionCommandInput - | UnlabelParameterVersionCommandInput - | UpdateAssociationCommandInput - | UpdateAssociationStatusCommandInput - | UpdateDocumentCommandInput - | UpdateDocumentDefaultVersionCommandInput - | UpdateDocumentMetadataCommandInput - | UpdateMaintenanceWindowCommandInput - | UpdateMaintenanceWindowTargetCommandInput - | UpdateMaintenanceWindowTaskCommandInput - | UpdateManagedInstanceRoleCommandInput - | UpdateOpsItemCommandInput - | UpdateOpsMetadataCommandInput - | UpdatePatchBaselineCommandInput - | UpdateResourceDataSyncCommandInput - | UpdateServiceSettingCommandInput; -export type ServiceOutputTypes = - | AddTagsToResourceCommandOutput - | AssociateOpsItemRelatedItemCommandOutput - | CancelCommandCommandOutput - | CancelMaintenanceWindowExecutionCommandOutput - | CreateActivationCommandOutput - | CreateAssociationBatchCommandOutput - | CreateAssociationCommandOutput - | CreateDocumentCommandOutput - | CreateMaintenanceWindowCommandOutput - | CreateOpsItemCommandOutput - | CreateOpsMetadataCommandOutput - | CreatePatchBaselineCommandOutput - | CreateResourceDataSyncCommandOutput - | DeleteActivationCommandOutput - | DeleteAssociationCommandOutput - | DeleteDocumentCommandOutput - | DeleteInventoryCommandOutput - | DeleteMaintenanceWindowCommandOutput - | DeleteOpsItemCommandOutput - | DeleteOpsMetadataCommandOutput - | DeleteParameterCommandOutput - | DeleteParametersCommandOutput - | DeletePatchBaselineCommandOutput - | DeleteResourceDataSyncCommandOutput - | DeleteResourcePolicyCommandOutput - | DeregisterManagedInstanceCommandOutput - | DeregisterPatchBaselineForPatchGroupCommandOutput - | DeregisterTargetFromMaintenanceWindowCommandOutput - | DeregisterTaskFromMaintenanceWindowCommandOutput - | DescribeActivationsCommandOutput - | DescribeAssociationCommandOutput - | DescribeAssociationExecutionTargetsCommandOutput - | DescribeAssociationExecutionsCommandOutput - | DescribeAutomationExecutionsCommandOutput - | DescribeAutomationStepExecutionsCommandOutput - | DescribeAvailablePatchesCommandOutput - | DescribeDocumentCommandOutput - | DescribeDocumentPermissionCommandOutput - | DescribeEffectiveInstanceAssociationsCommandOutput - | DescribeEffectivePatchesForPatchBaselineCommandOutput - | DescribeInstanceAssociationsStatusCommandOutput - | DescribeInstanceInformationCommandOutput - | DescribeInstancePatchStatesCommandOutput - | DescribeInstancePatchStatesForPatchGroupCommandOutput - | DescribeInstancePatchesCommandOutput - | DescribeInventoryDeletionsCommandOutput - | DescribeMaintenanceWindowExecutionTaskInvocationsCommandOutput - | DescribeMaintenanceWindowExecutionTasksCommandOutput - | DescribeMaintenanceWindowExecutionsCommandOutput - | DescribeMaintenanceWindowScheduleCommandOutput - | DescribeMaintenanceWindowTargetsCommandOutput - | DescribeMaintenanceWindowTasksCommandOutput - | DescribeMaintenanceWindowsCommandOutput - | DescribeMaintenanceWindowsForTargetCommandOutput - | DescribeOpsItemsCommandOutput - | DescribeParametersCommandOutput - | DescribePatchBaselinesCommandOutput - | DescribePatchGroupStateCommandOutput - | DescribePatchGroupsCommandOutput - | DescribePatchPropertiesCommandOutput - | DescribeSessionsCommandOutput - | DisassociateOpsItemRelatedItemCommandOutput - | GetAutomationExecutionCommandOutput - | GetCalendarStateCommandOutput - | GetCommandInvocationCommandOutput - | GetConnectionStatusCommandOutput - | GetDefaultPatchBaselineCommandOutput - | GetDeployablePatchSnapshotForInstanceCommandOutput - | GetDocumentCommandOutput - | GetInventoryCommandOutput - | GetInventorySchemaCommandOutput - | GetMaintenanceWindowCommandOutput - | GetMaintenanceWindowExecutionCommandOutput - | GetMaintenanceWindowExecutionTaskCommandOutput - | GetMaintenanceWindowExecutionTaskInvocationCommandOutput - | GetMaintenanceWindowTaskCommandOutput - | GetOpsItemCommandOutput - | GetOpsMetadataCommandOutput - | GetOpsSummaryCommandOutput - | GetParameterCommandOutput - | GetParameterHistoryCommandOutput - | GetParametersByPathCommandOutput - | GetParametersCommandOutput - | GetPatchBaselineCommandOutput - | GetPatchBaselineForPatchGroupCommandOutput - | GetResourcePoliciesCommandOutput - | GetServiceSettingCommandOutput - | LabelParameterVersionCommandOutput - | ListAssociationVersionsCommandOutput - | ListAssociationsCommandOutput - | ListCommandInvocationsCommandOutput - | ListCommandsCommandOutput - | ListComplianceItemsCommandOutput - | ListComplianceSummariesCommandOutput - | ListDocumentMetadataHistoryCommandOutput - | ListDocumentVersionsCommandOutput - | ListDocumentsCommandOutput - | ListInventoryEntriesCommandOutput - | ListOpsItemEventsCommandOutput - | ListOpsItemRelatedItemsCommandOutput - | ListOpsMetadataCommandOutput - | ListResourceComplianceSummariesCommandOutput - | ListResourceDataSyncCommandOutput - | ListTagsForResourceCommandOutput - | ModifyDocumentPermissionCommandOutput - | PutComplianceItemsCommandOutput - | PutInventoryCommandOutput - | PutParameterCommandOutput - | PutResourcePolicyCommandOutput - | RegisterDefaultPatchBaselineCommandOutput - | RegisterPatchBaselineForPatchGroupCommandOutput - | RegisterTargetWithMaintenanceWindowCommandOutput - | RegisterTaskWithMaintenanceWindowCommandOutput - | RemoveTagsFromResourceCommandOutput - | ResetServiceSettingCommandOutput - | ResumeSessionCommandOutput - | SendAutomationSignalCommandOutput - | SendCommandCommandOutput - | StartAssociationsOnceCommandOutput - | StartAutomationExecutionCommandOutput - | StartChangeRequestExecutionCommandOutput - | StartSessionCommandOutput - | StopAutomationExecutionCommandOutput - | TerminateSessionCommandOutput - | UnlabelParameterVersionCommandOutput - | UpdateAssociationCommandOutput - | UpdateAssociationStatusCommandOutput - | UpdateDocumentCommandOutput - | UpdateDocumentDefaultVersionCommandOutput - | UpdateDocumentMetadataCommandOutput - | UpdateMaintenanceWindowCommandOutput - | UpdateMaintenanceWindowTargetCommandOutput - | UpdateMaintenanceWindowTaskCommandOutput - | UpdateManagedInstanceRoleCommandOutput - | UpdateOpsItemCommandOutput - | UpdateOpsMetadataCommandOutput - | UpdatePatchBaselineCommandOutput - | UpdateResourceDataSyncCommandOutput - | UpdateServiceSettingCommandOutput; -export interface ClientDefaults - extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> { - requestHandler?: __HttpHandler; - sha256?: __ChecksumConstructor | __HashConstructor; - urlParser?: __UrlParser; - bodyLengthChecker?: __BodyLengthCalculator; - streamCollector?: __StreamCollector; - base64Decoder?: __Decoder; - base64Encoder?: __Encoder; - utf8Decoder?: __Decoder; - utf8Encoder?: __Encoder; - runtime?: string; - disableHostPrefix?: boolean; - serviceId?: string; - useDualstackEndpoint?: boolean | __Provider; - useFipsEndpoint?: boolean | __Provider; - region?: string | __Provider; - credentialDefaultProvider?: (input: any) => __Provider<__Credentials>; - defaultUserAgentProvider?: Provider<__UserAgent>; - maxAttempts?: number | __Provider; - retryMode?: string | __Provider; - logger?: __Logger; - extensions?: RuntimeExtension[]; - defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>; -} -export type SSMClientConfigType = Partial< - __SmithyConfiguration<__HttpHandlerOptions> -> & - ClientDefaults & - RegionInputConfig & - EndpointInputConfig & - RetryInputConfig & - HostHeaderInputConfig & - AwsAuthInputConfig & - UserAgentInputConfig & - ClientInputEndpointParameters; -export interface SSMClientConfig extends SSMClientConfigType {} -export type SSMClientResolvedConfigType = - __SmithyResolvedConfiguration<__HttpHandlerOptions> & - Required & - RuntimeExtensionsConfig & - RegionResolvedConfig & - EndpointResolvedConfig & - RetryResolvedConfig & - HostHeaderResolvedConfig & - AwsAuthResolvedConfig & - UserAgentResolvedConfig & - ClientResolvedEndpointParameters; -export interface SSMClientResolvedConfig extends SSMClientResolvedConfigType {} -export declare class SSMClient extends __Client< - __HttpHandlerOptions, - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig -> { - readonly config: SSMClientResolvedConfig; - constructor(...[configuration]: __CheckOptionalClientConfig); - destroy(): void; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/AddTagsToResourceCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/AddTagsToResourceCommand.d.ts deleted file mode 100644 index 14632859..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/AddTagsToResourceCommand.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - AddTagsToResourceRequest, - AddTagsToResourceResult, -} from "../models/models_0"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface AddTagsToResourceCommandInput - extends AddTagsToResourceRequest {} -export interface AddTagsToResourceCommandOutput - extends AddTagsToResourceResult, - __MetadataBearer {} -export declare class AddTagsToResourceCommand extends $Command< - AddTagsToResourceCommandInput, - AddTagsToResourceCommandOutput, - SSMClientResolvedConfig -> { - readonly input: AddTagsToResourceCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: AddTagsToResourceCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/AssociateOpsItemRelatedItemCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/AssociateOpsItemRelatedItemCommand.d.ts deleted file mode 100644 index cb82453d..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/AssociateOpsItemRelatedItemCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - AssociateOpsItemRelatedItemRequest, - AssociateOpsItemRelatedItemResponse, -} from "../models/models_0"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface AssociateOpsItemRelatedItemCommandInput - extends AssociateOpsItemRelatedItemRequest {} -export interface AssociateOpsItemRelatedItemCommandOutput - extends AssociateOpsItemRelatedItemResponse, - __MetadataBearer {} -export declare class AssociateOpsItemRelatedItemCommand extends $Command< - AssociateOpsItemRelatedItemCommandInput, - AssociateOpsItemRelatedItemCommandOutput, - SSMClientResolvedConfig -> { - readonly input: AssociateOpsItemRelatedItemCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: AssociateOpsItemRelatedItemCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - AssociateOpsItemRelatedItemCommandInput, - AssociateOpsItemRelatedItemCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/CancelCommandCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/CancelCommandCommand.d.ts deleted file mode 100644 index 5e1bc5e7..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/CancelCommandCommand.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { CancelCommandRequest, CancelCommandResult } from "../models/models_0"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface CancelCommandCommandInput extends CancelCommandRequest {} -export interface CancelCommandCommandOutput - extends CancelCommandResult, - __MetadataBearer {} -export declare class CancelCommandCommand extends $Command< - CancelCommandCommandInput, - CancelCommandCommandOutput, - SSMClientResolvedConfig -> { - readonly input: CancelCommandCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: CancelCommandCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/CancelMaintenanceWindowExecutionCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/CancelMaintenanceWindowExecutionCommand.d.ts deleted file mode 100644 index b205672f..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/CancelMaintenanceWindowExecutionCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - CancelMaintenanceWindowExecutionRequest, - CancelMaintenanceWindowExecutionResult, -} from "../models/models_0"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface CancelMaintenanceWindowExecutionCommandInput - extends CancelMaintenanceWindowExecutionRequest {} -export interface CancelMaintenanceWindowExecutionCommandOutput - extends CancelMaintenanceWindowExecutionResult, - __MetadataBearer {} -export declare class CancelMaintenanceWindowExecutionCommand extends $Command< - CancelMaintenanceWindowExecutionCommandInput, - CancelMaintenanceWindowExecutionCommandOutput, - SSMClientResolvedConfig -> { - readonly input: CancelMaintenanceWindowExecutionCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: CancelMaintenanceWindowExecutionCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - CancelMaintenanceWindowExecutionCommandInput, - CancelMaintenanceWindowExecutionCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/CreateActivationCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/CreateActivationCommand.d.ts deleted file mode 100644 index 25a98e7e..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/CreateActivationCommand.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - CreateActivationRequest, - CreateActivationResult, -} from "../models/models_0"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface CreateActivationCommandInput extends CreateActivationRequest {} -export interface CreateActivationCommandOutput - extends CreateActivationResult, - __MetadataBearer {} -export declare class CreateActivationCommand extends $Command< - CreateActivationCommandInput, - CreateActivationCommandOutput, - SSMClientResolvedConfig -> { - readonly input: CreateActivationCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: CreateActivationCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/CreateAssociationBatchCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/CreateAssociationBatchCommand.d.ts deleted file mode 100644 index e459ab1b..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/CreateAssociationBatchCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - CreateAssociationBatchRequest, - CreateAssociationBatchResult, -} from "../models/models_0"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface CreateAssociationBatchCommandInput - extends CreateAssociationBatchRequest {} -export interface CreateAssociationBatchCommandOutput - extends CreateAssociationBatchResult, - __MetadataBearer {} -export declare class CreateAssociationBatchCommand extends $Command< - CreateAssociationBatchCommandInput, - CreateAssociationBatchCommandOutput, - SSMClientResolvedConfig -> { - readonly input: CreateAssociationBatchCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: CreateAssociationBatchCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - CreateAssociationBatchCommandInput, - CreateAssociationBatchCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/CreateAssociationCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/CreateAssociationCommand.d.ts deleted file mode 100644 index c9e3f01e..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/CreateAssociationCommand.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - CreateAssociationRequest, - CreateAssociationResult, -} from "../models/models_0"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface CreateAssociationCommandInput - extends CreateAssociationRequest {} -export interface CreateAssociationCommandOutput - extends CreateAssociationResult, - __MetadataBearer {} -export declare class CreateAssociationCommand extends $Command< - CreateAssociationCommandInput, - CreateAssociationCommandOutput, - SSMClientResolvedConfig -> { - readonly input: CreateAssociationCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: CreateAssociationCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/CreateDocumentCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/CreateDocumentCommand.d.ts deleted file mode 100644 index 84466c97..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/CreateDocumentCommand.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - CreateDocumentRequest, - CreateDocumentResult, -} from "../models/models_0"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface CreateDocumentCommandInput extends CreateDocumentRequest {} -export interface CreateDocumentCommandOutput - extends CreateDocumentResult, - __MetadataBearer {} -export declare class CreateDocumentCommand extends $Command< - CreateDocumentCommandInput, - CreateDocumentCommandOutput, - SSMClientResolvedConfig -> { - readonly input: CreateDocumentCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: CreateDocumentCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/CreateMaintenanceWindowCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/CreateMaintenanceWindowCommand.d.ts deleted file mode 100644 index f4be4fba..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/CreateMaintenanceWindowCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - CreateMaintenanceWindowRequest, - CreateMaintenanceWindowResult, -} from "../models/models_0"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface CreateMaintenanceWindowCommandInput - extends CreateMaintenanceWindowRequest {} -export interface CreateMaintenanceWindowCommandOutput - extends CreateMaintenanceWindowResult, - __MetadataBearer {} -export declare class CreateMaintenanceWindowCommand extends $Command< - CreateMaintenanceWindowCommandInput, - CreateMaintenanceWindowCommandOutput, - SSMClientResolvedConfig -> { - readonly input: CreateMaintenanceWindowCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: CreateMaintenanceWindowCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - CreateMaintenanceWindowCommandInput, - CreateMaintenanceWindowCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/CreateOpsItemCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/CreateOpsItemCommand.d.ts deleted file mode 100644 index e2fd9cc2..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/CreateOpsItemCommand.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - CreateOpsItemRequest, - CreateOpsItemResponse, -} from "../models/models_0"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface CreateOpsItemCommandInput extends CreateOpsItemRequest {} -export interface CreateOpsItemCommandOutput - extends CreateOpsItemResponse, - __MetadataBearer {} -export declare class CreateOpsItemCommand extends $Command< - CreateOpsItemCommandInput, - CreateOpsItemCommandOutput, - SSMClientResolvedConfig -> { - readonly input: CreateOpsItemCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: CreateOpsItemCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/CreateOpsMetadataCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/CreateOpsMetadataCommand.d.ts deleted file mode 100644 index ebf46179..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/CreateOpsMetadataCommand.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - CreateOpsMetadataRequest, - CreateOpsMetadataResult, -} from "../models/models_0"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface CreateOpsMetadataCommandInput - extends CreateOpsMetadataRequest {} -export interface CreateOpsMetadataCommandOutput - extends CreateOpsMetadataResult, - __MetadataBearer {} -export declare class CreateOpsMetadataCommand extends $Command< - CreateOpsMetadataCommandInput, - CreateOpsMetadataCommandOutput, - SSMClientResolvedConfig -> { - readonly input: CreateOpsMetadataCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: CreateOpsMetadataCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/CreatePatchBaselineCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/CreatePatchBaselineCommand.d.ts deleted file mode 100644 index 587b0985..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/CreatePatchBaselineCommand.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - CreatePatchBaselineRequest, - CreatePatchBaselineResult, -} from "../models/models_0"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface CreatePatchBaselineCommandInput - extends CreatePatchBaselineRequest {} -export interface CreatePatchBaselineCommandOutput - extends CreatePatchBaselineResult, - __MetadataBearer {} -export declare class CreatePatchBaselineCommand extends $Command< - CreatePatchBaselineCommandInput, - CreatePatchBaselineCommandOutput, - SSMClientResolvedConfig -> { - readonly input: CreatePatchBaselineCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: CreatePatchBaselineCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/CreateResourceDataSyncCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/CreateResourceDataSyncCommand.d.ts deleted file mode 100644 index 33cfb0db..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/CreateResourceDataSyncCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - CreateResourceDataSyncRequest, - CreateResourceDataSyncResult, -} from "../models/models_0"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface CreateResourceDataSyncCommandInput - extends CreateResourceDataSyncRequest {} -export interface CreateResourceDataSyncCommandOutput - extends CreateResourceDataSyncResult, - __MetadataBearer {} -export declare class CreateResourceDataSyncCommand extends $Command< - CreateResourceDataSyncCommandInput, - CreateResourceDataSyncCommandOutput, - SSMClientResolvedConfig -> { - readonly input: CreateResourceDataSyncCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: CreateResourceDataSyncCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - CreateResourceDataSyncCommandInput, - CreateResourceDataSyncCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DeleteActivationCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DeleteActivationCommand.d.ts deleted file mode 100644 index 194cda05..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DeleteActivationCommand.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - DeleteActivationRequest, - DeleteActivationResult, -} from "../models/models_0"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface DeleteActivationCommandInput extends DeleteActivationRequest {} -export interface DeleteActivationCommandOutput - extends DeleteActivationResult, - __MetadataBearer {} -export declare class DeleteActivationCommand extends $Command< - DeleteActivationCommandInput, - DeleteActivationCommandOutput, - SSMClientResolvedConfig -> { - readonly input: DeleteActivationCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: DeleteActivationCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DeleteAssociationCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DeleteAssociationCommand.d.ts deleted file mode 100644 index b900d2ed..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DeleteAssociationCommand.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - DeleteAssociationRequest, - DeleteAssociationResult, -} from "../models/models_0"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface DeleteAssociationCommandInput - extends DeleteAssociationRequest {} -export interface DeleteAssociationCommandOutput - extends DeleteAssociationResult, - __MetadataBearer {} -export declare class DeleteAssociationCommand extends $Command< - DeleteAssociationCommandInput, - DeleteAssociationCommandOutput, - SSMClientResolvedConfig -> { - readonly input: DeleteAssociationCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: DeleteAssociationCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DeleteDocumentCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DeleteDocumentCommand.d.ts deleted file mode 100644 index 40aa6d48..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DeleteDocumentCommand.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - DeleteDocumentRequest, - DeleteDocumentResult, -} from "../models/models_0"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface DeleteDocumentCommandInput extends DeleteDocumentRequest {} -export interface DeleteDocumentCommandOutput - extends DeleteDocumentResult, - __MetadataBearer {} -export declare class DeleteDocumentCommand extends $Command< - DeleteDocumentCommandInput, - DeleteDocumentCommandOutput, - SSMClientResolvedConfig -> { - readonly input: DeleteDocumentCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: DeleteDocumentCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DeleteInventoryCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DeleteInventoryCommand.d.ts deleted file mode 100644 index 07cd8a94..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DeleteInventoryCommand.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - DeleteInventoryRequest, - DeleteInventoryResult, -} from "../models/models_0"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface DeleteInventoryCommandInput extends DeleteInventoryRequest {} -export interface DeleteInventoryCommandOutput - extends DeleteInventoryResult, - __MetadataBearer {} -export declare class DeleteInventoryCommand extends $Command< - DeleteInventoryCommandInput, - DeleteInventoryCommandOutput, - SSMClientResolvedConfig -> { - readonly input: DeleteInventoryCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: DeleteInventoryCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DeleteMaintenanceWindowCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DeleteMaintenanceWindowCommand.d.ts deleted file mode 100644 index 3b2f217e..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DeleteMaintenanceWindowCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - DeleteMaintenanceWindowRequest, - DeleteMaintenanceWindowResult, -} from "../models/models_0"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface DeleteMaintenanceWindowCommandInput - extends DeleteMaintenanceWindowRequest {} -export interface DeleteMaintenanceWindowCommandOutput - extends DeleteMaintenanceWindowResult, - __MetadataBearer {} -export declare class DeleteMaintenanceWindowCommand extends $Command< - DeleteMaintenanceWindowCommandInput, - DeleteMaintenanceWindowCommandOutput, - SSMClientResolvedConfig -> { - readonly input: DeleteMaintenanceWindowCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: DeleteMaintenanceWindowCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - DeleteMaintenanceWindowCommandInput, - DeleteMaintenanceWindowCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DeleteOpsItemCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DeleteOpsItemCommand.d.ts deleted file mode 100644 index 571b94ed..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DeleteOpsItemCommand.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - DeleteOpsItemRequest, - DeleteOpsItemResponse, -} from "../models/models_0"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface DeleteOpsItemCommandInput extends DeleteOpsItemRequest {} -export interface DeleteOpsItemCommandOutput - extends DeleteOpsItemResponse, - __MetadataBearer {} -export declare class DeleteOpsItemCommand extends $Command< - DeleteOpsItemCommandInput, - DeleteOpsItemCommandOutput, - SSMClientResolvedConfig -> { - readonly input: DeleteOpsItemCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: DeleteOpsItemCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DeleteOpsMetadataCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DeleteOpsMetadataCommand.d.ts deleted file mode 100644 index 981cbac3..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DeleteOpsMetadataCommand.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - DeleteOpsMetadataRequest, - DeleteOpsMetadataResult, -} from "../models/models_0"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface DeleteOpsMetadataCommandInput - extends DeleteOpsMetadataRequest {} -export interface DeleteOpsMetadataCommandOutput - extends DeleteOpsMetadataResult, - __MetadataBearer {} -export declare class DeleteOpsMetadataCommand extends $Command< - DeleteOpsMetadataCommandInput, - DeleteOpsMetadataCommandOutput, - SSMClientResolvedConfig -> { - readonly input: DeleteOpsMetadataCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: DeleteOpsMetadataCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DeleteParameterCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DeleteParameterCommand.d.ts deleted file mode 100644 index 824fd4e0..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DeleteParameterCommand.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - DeleteParameterRequest, - DeleteParameterResult, -} from "../models/models_0"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface DeleteParameterCommandInput extends DeleteParameterRequest {} -export interface DeleteParameterCommandOutput - extends DeleteParameterResult, - __MetadataBearer {} -export declare class DeleteParameterCommand extends $Command< - DeleteParameterCommandInput, - DeleteParameterCommandOutput, - SSMClientResolvedConfig -> { - readonly input: DeleteParameterCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: DeleteParameterCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DeleteParametersCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DeleteParametersCommand.d.ts deleted file mode 100644 index 4c75b893..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DeleteParametersCommand.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - DeleteParametersRequest, - DeleteParametersResult, -} from "../models/models_0"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface DeleteParametersCommandInput extends DeleteParametersRequest {} -export interface DeleteParametersCommandOutput - extends DeleteParametersResult, - __MetadataBearer {} -export declare class DeleteParametersCommand extends $Command< - DeleteParametersCommandInput, - DeleteParametersCommandOutput, - SSMClientResolvedConfig -> { - readonly input: DeleteParametersCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: DeleteParametersCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DeletePatchBaselineCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DeletePatchBaselineCommand.d.ts deleted file mode 100644 index db57435e..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DeletePatchBaselineCommand.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - DeletePatchBaselineRequest, - DeletePatchBaselineResult, -} from "../models/models_0"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface DeletePatchBaselineCommandInput - extends DeletePatchBaselineRequest {} -export interface DeletePatchBaselineCommandOutput - extends DeletePatchBaselineResult, - __MetadataBearer {} -export declare class DeletePatchBaselineCommand extends $Command< - DeletePatchBaselineCommandInput, - DeletePatchBaselineCommandOutput, - SSMClientResolvedConfig -> { - readonly input: DeletePatchBaselineCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: DeletePatchBaselineCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DeleteResourceDataSyncCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DeleteResourceDataSyncCommand.d.ts deleted file mode 100644 index 019f43c5..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DeleteResourceDataSyncCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - DeleteResourceDataSyncRequest, - DeleteResourceDataSyncResult, -} from "../models/models_0"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface DeleteResourceDataSyncCommandInput - extends DeleteResourceDataSyncRequest {} -export interface DeleteResourceDataSyncCommandOutput - extends DeleteResourceDataSyncResult, - __MetadataBearer {} -export declare class DeleteResourceDataSyncCommand extends $Command< - DeleteResourceDataSyncCommandInput, - DeleteResourceDataSyncCommandOutput, - SSMClientResolvedConfig -> { - readonly input: DeleteResourceDataSyncCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: DeleteResourceDataSyncCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - DeleteResourceDataSyncCommandInput, - DeleteResourceDataSyncCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts deleted file mode 100644 index f13aef82..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DeleteResourcePolicyCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - DeleteResourcePolicyRequest, - DeleteResourcePolicyResponse, -} from "../models/models_0"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface DeleteResourcePolicyCommandInput - extends DeleteResourcePolicyRequest {} -export interface DeleteResourcePolicyCommandOutput - extends DeleteResourcePolicyResponse, - __MetadataBearer {} -export declare class DeleteResourcePolicyCommand extends $Command< - DeleteResourcePolicyCommandInput, - DeleteResourcePolicyCommandOutput, - SSMClientResolvedConfig -> { - readonly input: DeleteResourcePolicyCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: DeleteResourcePolicyCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - DeleteResourcePolicyCommandInput, - DeleteResourcePolicyCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DeregisterManagedInstanceCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DeregisterManagedInstanceCommand.d.ts deleted file mode 100644 index 352aaf5e..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DeregisterManagedInstanceCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - DeregisterManagedInstanceRequest, - DeregisterManagedInstanceResult, -} from "../models/models_0"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface DeregisterManagedInstanceCommandInput - extends DeregisterManagedInstanceRequest {} -export interface DeregisterManagedInstanceCommandOutput - extends DeregisterManagedInstanceResult, - __MetadataBearer {} -export declare class DeregisterManagedInstanceCommand extends $Command< - DeregisterManagedInstanceCommandInput, - DeregisterManagedInstanceCommandOutput, - SSMClientResolvedConfig -> { - readonly input: DeregisterManagedInstanceCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: DeregisterManagedInstanceCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - DeregisterManagedInstanceCommandInput, - DeregisterManagedInstanceCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DeregisterPatchBaselineForPatchGroupCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DeregisterPatchBaselineForPatchGroupCommand.d.ts deleted file mode 100644 index 13e2154b..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DeregisterPatchBaselineForPatchGroupCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - DeregisterPatchBaselineForPatchGroupRequest, - DeregisterPatchBaselineForPatchGroupResult, -} from "../models/models_0"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface DeregisterPatchBaselineForPatchGroupCommandInput - extends DeregisterPatchBaselineForPatchGroupRequest {} -export interface DeregisterPatchBaselineForPatchGroupCommandOutput - extends DeregisterPatchBaselineForPatchGroupResult, - __MetadataBearer {} -export declare class DeregisterPatchBaselineForPatchGroupCommand extends $Command< - DeregisterPatchBaselineForPatchGroupCommandInput, - DeregisterPatchBaselineForPatchGroupCommandOutput, - SSMClientResolvedConfig -> { - readonly input: DeregisterPatchBaselineForPatchGroupCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: DeregisterPatchBaselineForPatchGroupCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - DeregisterPatchBaselineForPatchGroupCommandInput, - DeregisterPatchBaselineForPatchGroupCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DeregisterTargetFromMaintenanceWindowCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DeregisterTargetFromMaintenanceWindowCommand.d.ts deleted file mode 100644 index 77a50b3c..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DeregisterTargetFromMaintenanceWindowCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - DeregisterTargetFromMaintenanceWindowRequest, - DeregisterTargetFromMaintenanceWindowResult, -} from "../models/models_0"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface DeregisterTargetFromMaintenanceWindowCommandInput - extends DeregisterTargetFromMaintenanceWindowRequest {} -export interface DeregisterTargetFromMaintenanceWindowCommandOutput - extends DeregisterTargetFromMaintenanceWindowResult, - __MetadataBearer {} -export declare class DeregisterTargetFromMaintenanceWindowCommand extends $Command< - DeregisterTargetFromMaintenanceWindowCommandInput, - DeregisterTargetFromMaintenanceWindowCommandOutput, - SSMClientResolvedConfig -> { - readonly input: DeregisterTargetFromMaintenanceWindowCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: DeregisterTargetFromMaintenanceWindowCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - DeregisterTargetFromMaintenanceWindowCommandInput, - DeregisterTargetFromMaintenanceWindowCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DeregisterTaskFromMaintenanceWindowCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DeregisterTaskFromMaintenanceWindowCommand.d.ts deleted file mode 100644 index 0e982fc3..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DeregisterTaskFromMaintenanceWindowCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - DeregisterTaskFromMaintenanceWindowRequest, - DeregisterTaskFromMaintenanceWindowResult, -} from "../models/models_0"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface DeregisterTaskFromMaintenanceWindowCommandInput - extends DeregisterTaskFromMaintenanceWindowRequest {} -export interface DeregisterTaskFromMaintenanceWindowCommandOutput - extends DeregisterTaskFromMaintenanceWindowResult, - __MetadataBearer {} -export declare class DeregisterTaskFromMaintenanceWindowCommand extends $Command< - DeregisterTaskFromMaintenanceWindowCommandInput, - DeregisterTaskFromMaintenanceWindowCommandOutput, - SSMClientResolvedConfig -> { - readonly input: DeregisterTaskFromMaintenanceWindowCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: DeregisterTaskFromMaintenanceWindowCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - DeregisterTaskFromMaintenanceWindowCommandInput, - DeregisterTaskFromMaintenanceWindowCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeActivationsCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeActivationsCommand.d.ts deleted file mode 100644 index 42a65cdd..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeActivationsCommand.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - DescribeActivationsRequest, - DescribeActivationsResult, -} from "../models/models_0"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface DescribeActivationsCommandInput - extends DescribeActivationsRequest {} -export interface DescribeActivationsCommandOutput - extends DescribeActivationsResult, - __MetadataBearer {} -export declare class DescribeActivationsCommand extends $Command< - DescribeActivationsCommandInput, - DescribeActivationsCommandOutput, - SSMClientResolvedConfig -> { - readonly input: DescribeActivationsCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: DescribeActivationsCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeAssociationCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeAssociationCommand.d.ts deleted file mode 100644 index 2ac72c35..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeAssociationCommand.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - DescribeAssociationRequest, - DescribeAssociationResult, -} from "../models/models_0"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface DescribeAssociationCommandInput - extends DescribeAssociationRequest {} -export interface DescribeAssociationCommandOutput - extends DescribeAssociationResult, - __MetadataBearer {} -export declare class DescribeAssociationCommand extends $Command< - DescribeAssociationCommandInput, - DescribeAssociationCommandOutput, - SSMClientResolvedConfig -> { - readonly input: DescribeAssociationCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: DescribeAssociationCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeAssociationExecutionTargetsCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeAssociationExecutionTargetsCommand.d.ts deleted file mode 100644 index a60a6d63..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeAssociationExecutionTargetsCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - DescribeAssociationExecutionTargetsRequest, - DescribeAssociationExecutionTargetsResult, -} from "../models/models_0"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface DescribeAssociationExecutionTargetsCommandInput - extends DescribeAssociationExecutionTargetsRequest {} -export interface DescribeAssociationExecutionTargetsCommandOutput - extends DescribeAssociationExecutionTargetsResult, - __MetadataBearer {} -export declare class DescribeAssociationExecutionTargetsCommand extends $Command< - DescribeAssociationExecutionTargetsCommandInput, - DescribeAssociationExecutionTargetsCommandOutput, - SSMClientResolvedConfig -> { - readonly input: DescribeAssociationExecutionTargetsCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: DescribeAssociationExecutionTargetsCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - DescribeAssociationExecutionTargetsCommandInput, - DescribeAssociationExecutionTargetsCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeAssociationExecutionsCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeAssociationExecutionsCommand.d.ts deleted file mode 100644 index c0108827..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeAssociationExecutionsCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - DescribeAssociationExecutionsRequest, - DescribeAssociationExecutionsResult, -} from "../models/models_0"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface DescribeAssociationExecutionsCommandInput - extends DescribeAssociationExecutionsRequest {} -export interface DescribeAssociationExecutionsCommandOutput - extends DescribeAssociationExecutionsResult, - __MetadataBearer {} -export declare class DescribeAssociationExecutionsCommand extends $Command< - DescribeAssociationExecutionsCommandInput, - DescribeAssociationExecutionsCommandOutput, - SSMClientResolvedConfig -> { - readonly input: DescribeAssociationExecutionsCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: DescribeAssociationExecutionsCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - DescribeAssociationExecutionsCommandInput, - DescribeAssociationExecutionsCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeAutomationExecutionsCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeAutomationExecutionsCommand.d.ts deleted file mode 100644 index 0877a614..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeAutomationExecutionsCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - DescribeAutomationExecutionsRequest, - DescribeAutomationExecutionsResult, -} from "../models/models_0"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface DescribeAutomationExecutionsCommandInput - extends DescribeAutomationExecutionsRequest {} -export interface DescribeAutomationExecutionsCommandOutput - extends DescribeAutomationExecutionsResult, - __MetadataBearer {} -export declare class DescribeAutomationExecutionsCommand extends $Command< - DescribeAutomationExecutionsCommandInput, - DescribeAutomationExecutionsCommandOutput, - SSMClientResolvedConfig -> { - readonly input: DescribeAutomationExecutionsCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: DescribeAutomationExecutionsCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - DescribeAutomationExecutionsCommandInput, - DescribeAutomationExecutionsCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeAutomationStepExecutionsCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeAutomationStepExecutionsCommand.d.ts deleted file mode 100644 index 02394177..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeAutomationStepExecutionsCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - DescribeAutomationStepExecutionsRequest, - DescribeAutomationStepExecutionsResult, -} from "../models/models_0"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface DescribeAutomationStepExecutionsCommandInput - extends DescribeAutomationStepExecutionsRequest {} -export interface DescribeAutomationStepExecutionsCommandOutput - extends DescribeAutomationStepExecutionsResult, - __MetadataBearer {} -export declare class DescribeAutomationStepExecutionsCommand extends $Command< - DescribeAutomationStepExecutionsCommandInput, - DescribeAutomationStepExecutionsCommandOutput, - SSMClientResolvedConfig -> { - readonly input: DescribeAutomationStepExecutionsCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: DescribeAutomationStepExecutionsCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - DescribeAutomationStepExecutionsCommandInput, - DescribeAutomationStepExecutionsCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeAvailablePatchesCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeAvailablePatchesCommand.d.ts deleted file mode 100644 index 2199cc03..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeAvailablePatchesCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - DescribeAvailablePatchesRequest, - DescribeAvailablePatchesResult, -} from "../models/models_0"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface DescribeAvailablePatchesCommandInput - extends DescribeAvailablePatchesRequest {} -export interface DescribeAvailablePatchesCommandOutput - extends DescribeAvailablePatchesResult, - __MetadataBearer {} -export declare class DescribeAvailablePatchesCommand extends $Command< - DescribeAvailablePatchesCommandInput, - DescribeAvailablePatchesCommandOutput, - SSMClientResolvedConfig -> { - readonly input: DescribeAvailablePatchesCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: DescribeAvailablePatchesCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - DescribeAvailablePatchesCommandInput, - DescribeAvailablePatchesCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeDocumentCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeDocumentCommand.d.ts deleted file mode 100644 index c5c4d4a0..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeDocumentCommand.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - DescribeDocumentRequest, - DescribeDocumentResult, -} from "../models/models_0"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface DescribeDocumentCommandInput extends DescribeDocumentRequest {} -export interface DescribeDocumentCommandOutput - extends DescribeDocumentResult, - __MetadataBearer {} -export declare class DescribeDocumentCommand extends $Command< - DescribeDocumentCommandInput, - DescribeDocumentCommandOutput, - SSMClientResolvedConfig -> { - readonly input: DescribeDocumentCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: DescribeDocumentCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeDocumentPermissionCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeDocumentPermissionCommand.d.ts deleted file mode 100644 index f6f1af0a..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeDocumentPermissionCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - DescribeDocumentPermissionRequest, - DescribeDocumentPermissionResponse, -} from "../models/models_0"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface DescribeDocumentPermissionCommandInput - extends DescribeDocumentPermissionRequest {} -export interface DescribeDocumentPermissionCommandOutput - extends DescribeDocumentPermissionResponse, - __MetadataBearer {} -export declare class DescribeDocumentPermissionCommand extends $Command< - DescribeDocumentPermissionCommandInput, - DescribeDocumentPermissionCommandOutput, - SSMClientResolvedConfig -> { - readonly input: DescribeDocumentPermissionCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: DescribeDocumentPermissionCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - DescribeDocumentPermissionCommandInput, - DescribeDocumentPermissionCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeEffectiveInstanceAssociationsCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeEffectiveInstanceAssociationsCommand.d.ts deleted file mode 100644 index 15f1f9f7..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeEffectiveInstanceAssociationsCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - DescribeEffectiveInstanceAssociationsRequest, - DescribeEffectiveInstanceAssociationsResult, -} from "../models/models_0"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface DescribeEffectiveInstanceAssociationsCommandInput - extends DescribeEffectiveInstanceAssociationsRequest {} -export interface DescribeEffectiveInstanceAssociationsCommandOutput - extends DescribeEffectiveInstanceAssociationsResult, - __MetadataBearer {} -export declare class DescribeEffectiveInstanceAssociationsCommand extends $Command< - DescribeEffectiveInstanceAssociationsCommandInput, - DescribeEffectiveInstanceAssociationsCommandOutput, - SSMClientResolvedConfig -> { - readonly input: DescribeEffectiveInstanceAssociationsCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: DescribeEffectiveInstanceAssociationsCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - DescribeEffectiveInstanceAssociationsCommandInput, - DescribeEffectiveInstanceAssociationsCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeEffectivePatchesForPatchBaselineCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeEffectivePatchesForPatchBaselineCommand.d.ts deleted file mode 100644 index 26e32312..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeEffectivePatchesForPatchBaselineCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - DescribeEffectivePatchesForPatchBaselineRequest, - DescribeEffectivePatchesForPatchBaselineResult, -} from "../models/models_0"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface DescribeEffectivePatchesForPatchBaselineCommandInput - extends DescribeEffectivePatchesForPatchBaselineRequest {} -export interface DescribeEffectivePatchesForPatchBaselineCommandOutput - extends DescribeEffectivePatchesForPatchBaselineResult, - __MetadataBearer {} -export declare class DescribeEffectivePatchesForPatchBaselineCommand extends $Command< - DescribeEffectivePatchesForPatchBaselineCommandInput, - DescribeEffectivePatchesForPatchBaselineCommandOutput, - SSMClientResolvedConfig -> { - readonly input: DescribeEffectivePatchesForPatchBaselineCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: DescribeEffectivePatchesForPatchBaselineCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - DescribeEffectivePatchesForPatchBaselineCommandInput, - DescribeEffectivePatchesForPatchBaselineCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeInstanceAssociationsStatusCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeInstanceAssociationsStatusCommand.d.ts deleted file mode 100644 index 4b35410b..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeInstanceAssociationsStatusCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - DescribeInstanceAssociationsStatusRequest, - DescribeInstanceAssociationsStatusResult, -} from "../models/models_0"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface DescribeInstanceAssociationsStatusCommandInput - extends DescribeInstanceAssociationsStatusRequest {} -export interface DescribeInstanceAssociationsStatusCommandOutput - extends DescribeInstanceAssociationsStatusResult, - __MetadataBearer {} -export declare class DescribeInstanceAssociationsStatusCommand extends $Command< - DescribeInstanceAssociationsStatusCommandInput, - DescribeInstanceAssociationsStatusCommandOutput, - SSMClientResolvedConfig -> { - readonly input: DescribeInstanceAssociationsStatusCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: DescribeInstanceAssociationsStatusCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - DescribeInstanceAssociationsStatusCommandInput, - DescribeInstanceAssociationsStatusCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeInstanceInformationCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeInstanceInformationCommand.d.ts deleted file mode 100644 index 6836bbd7..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeInstanceInformationCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - DescribeInstanceInformationRequest, - DescribeInstanceInformationResult, -} from "../models/models_0"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface DescribeInstanceInformationCommandInput - extends DescribeInstanceInformationRequest {} -export interface DescribeInstanceInformationCommandOutput - extends DescribeInstanceInformationResult, - __MetadataBearer {} -export declare class DescribeInstanceInformationCommand extends $Command< - DescribeInstanceInformationCommandInput, - DescribeInstanceInformationCommandOutput, - SSMClientResolvedConfig -> { - readonly input: DescribeInstanceInformationCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: DescribeInstanceInformationCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - DescribeInstanceInformationCommandInput, - DescribeInstanceInformationCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeInstancePatchStatesCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeInstancePatchStatesCommand.d.ts deleted file mode 100644 index 9bb8bbe2..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeInstancePatchStatesCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - DescribeInstancePatchStatesRequest, - DescribeInstancePatchStatesResult, -} from "../models/models_0"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface DescribeInstancePatchStatesCommandInput - extends DescribeInstancePatchStatesRequest {} -export interface DescribeInstancePatchStatesCommandOutput - extends DescribeInstancePatchStatesResult, - __MetadataBearer {} -export declare class DescribeInstancePatchStatesCommand extends $Command< - DescribeInstancePatchStatesCommandInput, - DescribeInstancePatchStatesCommandOutput, - SSMClientResolvedConfig -> { - readonly input: DescribeInstancePatchStatesCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: DescribeInstancePatchStatesCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - DescribeInstancePatchStatesCommandInput, - DescribeInstancePatchStatesCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeInstancePatchStatesForPatchGroupCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeInstancePatchStatesForPatchGroupCommand.d.ts deleted file mode 100644 index aa3200da..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeInstancePatchStatesForPatchGroupCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - DescribeInstancePatchStatesForPatchGroupRequest, - DescribeInstancePatchStatesForPatchGroupResult, -} from "../models/models_0"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface DescribeInstancePatchStatesForPatchGroupCommandInput - extends DescribeInstancePatchStatesForPatchGroupRequest {} -export interface DescribeInstancePatchStatesForPatchGroupCommandOutput - extends DescribeInstancePatchStatesForPatchGroupResult, - __MetadataBearer {} -export declare class DescribeInstancePatchStatesForPatchGroupCommand extends $Command< - DescribeInstancePatchStatesForPatchGroupCommandInput, - DescribeInstancePatchStatesForPatchGroupCommandOutput, - SSMClientResolvedConfig -> { - readonly input: DescribeInstancePatchStatesForPatchGroupCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: DescribeInstancePatchStatesForPatchGroupCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - DescribeInstancePatchStatesForPatchGroupCommandInput, - DescribeInstancePatchStatesForPatchGroupCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeInstancePatchesCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeInstancePatchesCommand.d.ts deleted file mode 100644 index 682257eb..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeInstancePatchesCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - DescribeInstancePatchesRequest, - DescribeInstancePatchesResult, -} from "../models/models_0"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface DescribeInstancePatchesCommandInput - extends DescribeInstancePatchesRequest {} -export interface DescribeInstancePatchesCommandOutput - extends DescribeInstancePatchesResult, - __MetadataBearer {} -export declare class DescribeInstancePatchesCommand extends $Command< - DescribeInstancePatchesCommandInput, - DescribeInstancePatchesCommandOutput, - SSMClientResolvedConfig -> { - readonly input: DescribeInstancePatchesCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: DescribeInstancePatchesCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - DescribeInstancePatchesCommandInput, - DescribeInstancePatchesCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeInventoryDeletionsCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeInventoryDeletionsCommand.d.ts deleted file mode 100644 index f976c745..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeInventoryDeletionsCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - DescribeInventoryDeletionsRequest, - DescribeInventoryDeletionsResult, -} from "../models/models_0"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface DescribeInventoryDeletionsCommandInput - extends DescribeInventoryDeletionsRequest {} -export interface DescribeInventoryDeletionsCommandOutput - extends DescribeInventoryDeletionsResult, - __MetadataBearer {} -export declare class DescribeInventoryDeletionsCommand extends $Command< - DescribeInventoryDeletionsCommandInput, - DescribeInventoryDeletionsCommandOutput, - SSMClientResolvedConfig -> { - readonly input: DescribeInventoryDeletionsCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: DescribeInventoryDeletionsCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - DescribeInventoryDeletionsCommandInput, - DescribeInventoryDeletionsCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeMaintenanceWindowExecutionTaskInvocationsCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeMaintenanceWindowExecutionTaskInvocationsCommand.d.ts deleted file mode 100644 index 61db926b..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeMaintenanceWindowExecutionTaskInvocationsCommand.d.ts +++ /dev/null @@ -1,44 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - DescribeMaintenanceWindowExecutionTaskInvocationsRequest, - DescribeMaintenanceWindowExecutionTaskInvocationsResult, -} from "../models/models_0"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface DescribeMaintenanceWindowExecutionTaskInvocationsCommandInput - extends DescribeMaintenanceWindowExecutionTaskInvocationsRequest {} -export interface DescribeMaintenanceWindowExecutionTaskInvocationsCommandOutput - extends DescribeMaintenanceWindowExecutionTaskInvocationsResult, - __MetadataBearer {} -export declare class DescribeMaintenanceWindowExecutionTaskInvocationsCommand extends $Command< - DescribeMaintenanceWindowExecutionTaskInvocationsCommandInput, - DescribeMaintenanceWindowExecutionTaskInvocationsCommandOutput, - SSMClientResolvedConfig -> { - readonly input: DescribeMaintenanceWindowExecutionTaskInvocationsCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor( - input: DescribeMaintenanceWindowExecutionTaskInvocationsCommandInput - ); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - DescribeMaintenanceWindowExecutionTaskInvocationsCommandInput, - DescribeMaintenanceWindowExecutionTaskInvocationsCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeMaintenanceWindowExecutionTasksCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeMaintenanceWindowExecutionTasksCommand.d.ts deleted file mode 100644 index 0ff49dd8..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeMaintenanceWindowExecutionTasksCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - DescribeMaintenanceWindowExecutionTasksRequest, - DescribeMaintenanceWindowExecutionTasksResult, -} from "../models/models_0"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface DescribeMaintenanceWindowExecutionTasksCommandInput - extends DescribeMaintenanceWindowExecutionTasksRequest {} -export interface DescribeMaintenanceWindowExecutionTasksCommandOutput - extends DescribeMaintenanceWindowExecutionTasksResult, - __MetadataBearer {} -export declare class DescribeMaintenanceWindowExecutionTasksCommand extends $Command< - DescribeMaintenanceWindowExecutionTasksCommandInput, - DescribeMaintenanceWindowExecutionTasksCommandOutput, - SSMClientResolvedConfig -> { - readonly input: DescribeMaintenanceWindowExecutionTasksCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: DescribeMaintenanceWindowExecutionTasksCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - DescribeMaintenanceWindowExecutionTasksCommandInput, - DescribeMaintenanceWindowExecutionTasksCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeMaintenanceWindowExecutionsCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeMaintenanceWindowExecutionsCommand.d.ts deleted file mode 100644 index a615edd0..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeMaintenanceWindowExecutionsCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - DescribeMaintenanceWindowExecutionsRequest, - DescribeMaintenanceWindowExecutionsResult, -} from "../models/models_0"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface DescribeMaintenanceWindowExecutionsCommandInput - extends DescribeMaintenanceWindowExecutionsRequest {} -export interface DescribeMaintenanceWindowExecutionsCommandOutput - extends DescribeMaintenanceWindowExecutionsResult, - __MetadataBearer {} -export declare class DescribeMaintenanceWindowExecutionsCommand extends $Command< - DescribeMaintenanceWindowExecutionsCommandInput, - DescribeMaintenanceWindowExecutionsCommandOutput, - SSMClientResolvedConfig -> { - readonly input: DescribeMaintenanceWindowExecutionsCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: DescribeMaintenanceWindowExecutionsCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - DescribeMaintenanceWindowExecutionsCommandInput, - DescribeMaintenanceWindowExecutionsCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeMaintenanceWindowScheduleCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeMaintenanceWindowScheduleCommand.d.ts deleted file mode 100644 index e988c8aa..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeMaintenanceWindowScheduleCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - DescribeMaintenanceWindowScheduleRequest, - DescribeMaintenanceWindowScheduleResult, -} from "../models/models_0"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface DescribeMaintenanceWindowScheduleCommandInput - extends DescribeMaintenanceWindowScheduleRequest {} -export interface DescribeMaintenanceWindowScheduleCommandOutput - extends DescribeMaintenanceWindowScheduleResult, - __MetadataBearer {} -export declare class DescribeMaintenanceWindowScheduleCommand extends $Command< - DescribeMaintenanceWindowScheduleCommandInput, - DescribeMaintenanceWindowScheduleCommandOutput, - SSMClientResolvedConfig -> { - readonly input: DescribeMaintenanceWindowScheduleCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: DescribeMaintenanceWindowScheduleCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - DescribeMaintenanceWindowScheduleCommandInput, - DescribeMaintenanceWindowScheduleCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeMaintenanceWindowTargetsCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeMaintenanceWindowTargetsCommand.d.ts deleted file mode 100644 index 341560d7..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeMaintenanceWindowTargetsCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - DescribeMaintenanceWindowTargetsRequest, - DescribeMaintenanceWindowTargetsResult, -} from "../models/models_0"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface DescribeMaintenanceWindowTargetsCommandInput - extends DescribeMaintenanceWindowTargetsRequest {} -export interface DescribeMaintenanceWindowTargetsCommandOutput - extends DescribeMaintenanceWindowTargetsResult, - __MetadataBearer {} -export declare class DescribeMaintenanceWindowTargetsCommand extends $Command< - DescribeMaintenanceWindowTargetsCommandInput, - DescribeMaintenanceWindowTargetsCommandOutput, - SSMClientResolvedConfig -> { - readonly input: DescribeMaintenanceWindowTargetsCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: DescribeMaintenanceWindowTargetsCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - DescribeMaintenanceWindowTargetsCommandInput, - DescribeMaintenanceWindowTargetsCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeMaintenanceWindowTasksCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeMaintenanceWindowTasksCommand.d.ts deleted file mode 100644 index 85ea0815..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeMaintenanceWindowTasksCommand.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { DescribeMaintenanceWindowTasksRequest } from "../models/models_0"; -import { DescribeMaintenanceWindowTasksResult } from "../models/models_1"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface DescribeMaintenanceWindowTasksCommandInput - extends DescribeMaintenanceWindowTasksRequest {} -export interface DescribeMaintenanceWindowTasksCommandOutput - extends DescribeMaintenanceWindowTasksResult, - __MetadataBearer {} -export declare class DescribeMaintenanceWindowTasksCommand extends $Command< - DescribeMaintenanceWindowTasksCommandInput, - DescribeMaintenanceWindowTasksCommandOutput, - SSMClientResolvedConfig -> { - readonly input: DescribeMaintenanceWindowTasksCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: DescribeMaintenanceWindowTasksCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - DescribeMaintenanceWindowTasksCommandInput, - DescribeMaintenanceWindowTasksCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeMaintenanceWindowsCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeMaintenanceWindowsCommand.d.ts deleted file mode 100644 index 6fa5a64e..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeMaintenanceWindowsCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - DescribeMaintenanceWindowsRequest, - DescribeMaintenanceWindowsResult, -} from "../models/models_0"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface DescribeMaintenanceWindowsCommandInput - extends DescribeMaintenanceWindowsRequest {} -export interface DescribeMaintenanceWindowsCommandOutput - extends DescribeMaintenanceWindowsResult, - __MetadataBearer {} -export declare class DescribeMaintenanceWindowsCommand extends $Command< - DescribeMaintenanceWindowsCommandInput, - DescribeMaintenanceWindowsCommandOutput, - SSMClientResolvedConfig -> { - readonly input: DescribeMaintenanceWindowsCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: DescribeMaintenanceWindowsCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - DescribeMaintenanceWindowsCommandInput, - DescribeMaintenanceWindowsCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeMaintenanceWindowsForTargetCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeMaintenanceWindowsForTargetCommand.d.ts deleted file mode 100644 index a617dfbc..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeMaintenanceWindowsForTargetCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - DescribeMaintenanceWindowsForTargetRequest, - DescribeMaintenanceWindowsForTargetResult, -} from "../models/models_0"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface DescribeMaintenanceWindowsForTargetCommandInput - extends DescribeMaintenanceWindowsForTargetRequest {} -export interface DescribeMaintenanceWindowsForTargetCommandOutput - extends DescribeMaintenanceWindowsForTargetResult, - __MetadataBearer {} -export declare class DescribeMaintenanceWindowsForTargetCommand extends $Command< - DescribeMaintenanceWindowsForTargetCommandInput, - DescribeMaintenanceWindowsForTargetCommandOutput, - SSMClientResolvedConfig -> { - readonly input: DescribeMaintenanceWindowsForTargetCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: DescribeMaintenanceWindowsForTargetCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - DescribeMaintenanceWindowsForTargetCommandInput, - DescribeMaintenanceWindowsForTargetCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeOpsItemsCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeOpsItemsCommand.d.ts deleted file mode 100644 index 0a66ad1d..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeOpsItemsCommand.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - DescribeOpsItemsRequest, - DescribeOpsItemsResponse, -} from "../models/models_1"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface DescribeOpsItemsCommandInput extends DescribeOpsItemsRequest {} -export interface DescribeOpsItemsCommandOutput - extends DescribeOpsItemsResponse, - __MetadataBearer {} -export declare class DescribeOpsItemsCommand extends $Command< - DescribeOpsItemsCommandInput, - DescribeOpsItemsCommandOutput, - SSMClientResolvedConfig -> { - readonly input: DescribeOpsItemsCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: DescribeOpsItemsCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeParametersCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeParametersCommand.d.ts deleted file mode 100644 index 7c2804af..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeParametersCommand.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - DescribeParametersRequest, - DescribeParametersResult, -} from "../models/models_1"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface DescribeParametersCommandInput - extends DescribeParametersRequest {} -export interface DescribeParametersCommandOutput - extends DescribeParametersResult, - __MetadataBearer {} -export declare class DescribeParametersCommand extends $Command< - DescribeParametersCommandInput, - DescribeParametersCommandOutput, - SSMClientResolvedConfig -> { - readonly input: DescribeParametersCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: DescribeParametersCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribePatchBaselinesCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribePatchBaselinesCommand.d.ts deleted file mode 100644 index f0851efe..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribePatchBaselinesCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - DescribePatchBaselinesRequest, - DescribePatchBaselinesResult, -} from "../models/models_1"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface DescribePatchBaselinesCommandInput - extends DescribePatchBaselinesRequest {} -export interface DescribePatchBaselinesCommandOutput - extends DescribePatchBaselinesResult, - __MetadataBearer {} -export declare class DescribePatchBaselinesCommand extends $Command< - DescribePatchBaselinesCommandInput, - DescribePatchBaselinesCommandOutput, - SSMClientResolvedConfig -> { - readonly input: DescribePatchBaselinesCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: DescribePatchBaselinesCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - DescribePatchBaselinesCommandInput, - DescribePatchBaselinesCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribePatchGroupStateCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribePatchGroupStateCommand.d.ts deleted file mode 100644 index 8812ea51..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribePatchGroupStateCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - DescribePatchGroupStateRequest, - DescribePatchGroupStateResult, -} from "../models/models_1"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface DescribePatchGroupStateCommandInput - extends DescribePatchGroupStateRequest {} -export interface DescribePatchGroupStateCommandOutput - extends DescribePatchGroupStateResult, - __MetadataBearer {} -export declare class DescribePatchGroupStateCommand extends $Command< - DescribePatchGroupStateCommandInput, - DescribePatchGroupStateCommandOutput, - SSMClientResolvedConfig -> { - readonly input: DescribePatchGroupStateCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: DescribePatchGroupStateCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - DescribePatchGroupStateCommandInput, - DescribePatchGroupStateCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribePatchGroupsCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribePatchGroupsCommand.d.ts deleted file mode 100644 index afda9a12..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribePatchGroupsCommand.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - DescribePatchGroupsRequest, - DescribePatchGroupsResult, -} from "../models/models_1"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface DescribePatchGroupsCommandInput - extends DescribePatchGroupsRequest {} -export interface DescribePatchGroupsCommandOutput - extends DescribePatchGroupsResult, - __MetadataBearer {} -export declare class DescribePatchGroupsCommand extends $Command< - DescribePatchGroupsCommandInput, - DescribePatchGroupsCommandOutput, - SSMClientResolvedConfig -> { - readonly input: DescribePatchGroupsCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: DescribePatchGroupsCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribePatchPropertiesCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribePatchPropertiesCommand.d.ts deleted file mode 100644 index d9fb8284..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribePatchPropertiesCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - DescribePatchPropertiesRequest, - DescribePatchPropertiesResult, -} from "../models/models_1"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface DescribePatchPropertiesCommandInput - extends DescribePatchPropertiesRequest {} -export interface DescribePatchPropertiesCommandOutput - extends DescribePatchPropertiesResult, - __MetadataBearer {} -export declare class DescribePatchPropertiesCommand extends $Command< - DescribePatchPropertiesCommandInput, - DescribePatchPropertiesCommandOutput, - SSMClientResolvedConfig -> { - readonly input: DescribePatchPropertiesCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: DescribePatchPropertiesCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - DescribePatchPropertiesCommandInput, - DescribePatchPropertiesCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeSessionsCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeSessionsCommand.d.ts deleted file mode 100644 index d7800d33..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DescribeSessionsCommand.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - DescribeSessionsRequest, - DescribeSessionsResponse, -} from "../models/models_1"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface DescribeSessionsCommandInput extends DescribeSessionsRequest {} -export interface DescribeSessionsCommandOutput - extends DescribeSessionsResponse, - __MetadataBearer {} -export declare class DescribeSessionsCommand extends $Command< - DescribeSessionsCommandInput, - DescribeSessionsCommandOutput, - SSMClientResolvedConfig -> { - readonly input: DescribeSessionsCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: DescribeSessionsCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DisassociateOpsItemRelatedItemCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DisassociateOpsItemRelatedItemCommand.d.ts deleted file mode 100644 index 801e9804..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/DisassociateOpsItemRelatedItemCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - DisassociateOpsItemRelatedItemRequest, - DisassociateOpsItemRelatedItemResponse, -} from "../models/models_1"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface DisassociateOpsItemRelatedItemCommandInput - extends DisassociateOpsItemRelatedItemRequest {} -export interface DisassociateOpsItemRelatedItemCommandOutput - extends DisassociateOpsItemRelatedItemResponse, - __MetadataBearer {} -export declare class DisassociateOpsItemRelatedItemCommand extends $Command< - DisassociateOpsItemRelatedItemCommandInput, - DisassociateOpsItemRelatedItemCommandOutput, - SSMClientResolvedConfig -> { - readonly input: DisassociateOpsItemRelatedItemCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: DisassociateOpsItemRelatedItemCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - DisassociateOpsItemRelatedItemCommandInput, - DisassociateOpsItemRelatedItemCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetAutomationExecutionCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetAutomationExecutionCommand.d.ts deleted file mode 100644 index 8ebb1ecc..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetAutomationExecutionCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - GetAutomationExecutionRequest, - GetAutomationExecutionResult, -} from "../models/models_1"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface GetAutomationExecutionCommandInput - extends GetAutomationExecutionRequest {} -export interface GetAutomationExecutionCommandOutput - extends GetAutomationExecutionResult, - __MetadataBearer {} -export declare class GetAutomationExecutionCommand extends $Command< - GetAutomationExecutionCommandInput, - GetAutomationExecutionCommandOutput, - SSMClientResolvedConfig -> { - readonly input: GetAutomationExecutionCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: GetAutomationExecutionCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - GetAutomationExecutionCommandInput, - GetAutomationExecutionCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetCalendarStateCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetCalendarStateCommand.d.ts deleted file mode 100644 index 7e86cb5a..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetCalendarStateCommand.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - GetCalendarStateRequest, - GetCalendarStateResponse, -} from "../models/models_1"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface GetCalendarStateCommandInput extends GetCalendarStateRequest {} -export interface GetCalendarStateCommandOutput - extends GetCalendarStateResponse, - __MetadataBearer {} -export declare class GetCalendarStateCommand extends $Command< - GetCalendarStateCommandInput, - GetCalendarStateCommandOutput, - SSMClientResolvedConfig -> { - readonly input: GetCalendarStateCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: GetCalendarStateCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetCommandInvocationCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetCommandInvocationCommand.d.ts deleted file mode 100644 index 0b3976cd..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetCommandInvocationCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - GetCommandInvocationRequest, - GetCommandInvocationResult, -} from "../models/models_1"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface GetCommandInvocationCommandInput - extends GetCommandInvocationRequest {} -export interface GetCommandInvocationCommandOutput - extends GetCommandInvocationResult, - __MetadataBearer {} -export declare class GetCommandInvocationCommand extends $Command< - GetCommandInvocationCommandInput, - GetCommandInvocationCommandOutput, - SSMClientResolvedConfig -> { - readonly input: GetCommandInvocationCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: GetCommandInvocationCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - GetCommandInvocationCommandInput, - GetCommandInvocationCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetConnectionStatusCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetConnectionStatusCommand.d.ts deleted file mode 100644 index 40936fcc..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetConnectionStatusCommand.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - GetConnectionStatusRequest, - GetConnectionStatusResponse, -} from "../models/models_1"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface GetConnectionStatusCommandInput - extends GetConnectionStatusRequest {} -export interface GetConnectionStatusCommandOutput - extends GetConnectionStatusResponse, - __MetadataBearer {} -export declare class GetConnectionStatusCommand extends $Command< - GetConnectionStatusCommandInput, - GetConnectionStatusCommandOutput, - SSMClientResolvedConfig -> { - readonly input: GetConnectionStatusCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: GetConnectionStatusCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetDefaultPatchBaselineCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetDefaultPatchBaselineCommand.d.ts deleted file mode 100644 index 21f84776..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetDefaultPatchBaselineCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - GetDefaultPatchBaselineRequest, - GetDefaultPatchBaselineResult, -} from "../models/models_1"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface GetDefaultPatchBaselineCommandInput - extends GetDefaultPatchBaselineRequest {} -export interface GetDefaultPatchBaselineCommandOutput - extends GetDefaultPatchBaselineResult, - __MetadataBearer {} -export declare class GetDefaultPatchBaselineCommand extends $Command< - GetDefaultPatchBaselineCommandInput, - GetDefaultPatchBaselineCommandOutput, - SSMClientResolvedConfig -> { - readonly input: GetDefaultPatchBaselineCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: GetDefaultPatchBaselineCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - GetDefaultPatchBaselineCommandInput, - GetDefaultPatchBaselineCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetDeployablePatchSnapshotForInstanceCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetDeployablePatchSnapshotForInstanceCommand.d.ts deleted file mode 100644 index c38e75a0..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetDeployablePatchSnapshotForInstanceCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - GetDeployablePatchSnapshotForInstanceRequest, - GetDeployablePatchSnapshotForInstanceResult, -} from "../models/models_1"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface GetDeployablePatchSnapshotForInstanceCommandInput - extends GetDeployablePatchSnapshotForInstanceRequest {} -export interface GetDeployablePatchSnapshotForInstanceCommandOutput - extends GetDeployablePatchSnapshotForInstanceResult, - __MetadataBearer {} -export declare class GetDeployablePatchSnapshotForInstanceCommand extends $Command< - GetDeployablePatchSnapshotForInstanceCommandInput, - GetDeployablePatchSnapshotForInstanceCommandOutput, - SSMClientResolvedConfig -> { - readonly input: GetDeployablePatchSnapshotForInstanceCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: GetDeployablePatchSnapshotForInstanceCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - GetDeployablePatchSnapshotForInstanceCommandInput, - GetDeployablePatchSnapshotForInstanceCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetDocumentCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetDocumentCommand.d.ts deleted file mode 100644 index 2a9b0b5d..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetDocumentCommand.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { GetDocumentRequest, GetDocumentResult } from "../models/models_1"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface GetDocumentCommandInput extends GetDocumentRequest {} -export interface GetDocumentCommandOutput - extends GetDocumentResult, - __MetadataBearer {} -export declare class GetDocumentCommand extends $Command< - GetDocumentCommandInput, - GetDocumentCommandOutput, - SSMClientResolvedConfig -> { - readonly input: GetDocumentCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: GetDocumentCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetInventoryCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetInventoryCommand.d.ts deleted file mode 100644 index 18e03d9f..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetInventoryCommand.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { GetInventoryResult } from "../models/models_1"; -import { GetInventoryRequest } from "../models/models_2"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface GetInventoryCommandInput extends GetInventoryRequest {} -export interface GetInventoryCommandOutput - extends GetInventoryResult, - __MetadataBearer {} -export declare class GetInventoryCommand extends $Command< - GetInventoryCommandInput, - GetInventoryCommandOutput, - SSMClientResolvedConfig -> { - readonly input: GetInventoryCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: GetInventoryCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetInventorySchemaCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetInventorySchemaCommand.d.ts deleted file mode 100644 index 9c9babeb..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetInventorySchemaCommand.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - GetInventorySchemaRequest, - GetInventorySchemaResult, -} from "../models/models_1"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface GetInventorySchemaCommandInput - extends GetInventorySchemaRequest {} -export interface GetInventorySchemaCommandOutput - extends GetInventorySchemaResult, - __MetadataBearer {} -export declare class GetInventorySchemaCommand extends $Command< - GetInventorySchemaCommandInput, - GetInventorySchemaCommandOutput, - SSMClientResolvedConfig -> { - readonly input: GetInventorySchemaCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: GetInventorySchemaCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetMaintenanceWindowCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetMaintenanceWindowCommand.d.ts deleted file mode 100644 index ba595f16..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetMaintenanceWindowCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - GetMaintenanceWindowRequest, - GetMaintenanceWindowResult, -} from "../models/models_1"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface GetMaintenanceWindowCommandInput - extends GetMaintenanceWindowRequest {} -export interface GetMaintenanceWindowCommandOutput - extends GetMaintenanceWindowResult, - __MetadataBearer {} -export declare class GetMaintenanceWindowCommand extends $Command< - GetMaintenanceWindowCommandInput, - GetMaintenanceWindowCommandOutput, - SSMClientResolvedConfig -> { - readonly input: GetMaintenanceWindowCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: GetMaintenanceWindowCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - GetMaintenanceWindowCommandInput, - GetMaintenanceWindowCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetMaintenanceWindowExecutionCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetMaintenanceWindowExecutionCommand.d.ts deleted file mode 100644 index 3b717d9f..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetMaintenanceWindowExecutionCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - GetMaintenanceWindowExecutionRequest, - GetMaintenanceWindowExecutionResult, -} from "../models/models_1"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface GetMaintenanceWindowExecutionCommandInput - extends GetMaintenanceWindowExecutionRequest {} -export interface GetMaintenanceWindowExecutionCommandOutput - extends GetMaintenanceWindowExecutionResult, - __MetadataBearer {} -export declare class GetMaintenanceWindowExecutionCommand extends $Command< - GetMaintenanceWindowExecutionCommandInput, - GetMaintenanceWindowExecutionCommandOutput, - SSMClientResolvedConfig -> { - readonly input: GetMaintenanceWindowExecutionCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: GetMaintenanceWindowExecutionCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - GetMaintenanceWindowExecutionCommandInput, - GetMaintenanceWindowExecutionCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetMaintenanceWindowExecutionTaskCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetMaintenanceWindowExecutionTaskCommand.d.ts deleted file mode 100644 index dc151d99..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetMaintenanceWindowExecutionTaskCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - GetMaintenanceWindowExecutionTaskRequest, - GetMaintenanceWindowExecutionTaskResult, -} from "../models/models_1"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface GetMaintenanceWindowExecutionTaskCommandInput - extends GetMaintenanceWindowExecutionTaskRequest {} -export interface GetMaintenanceWindowExecutionTaskCommandOutput - extends GetMaintenanceWindowExecutionTaskResult, - __MetadataBearer {} -export declare class GetMaintenanceWindowExecutionTaskCommand extends $Command< - GetMaintenanceWindowExecutionTaskCommandInput, - GetMaintenanceWindowExecutionTaskCommandOutput, - SSMClientResolvedConfig -> { - readonly input: GetMaintenanceWindowExecutionTaskCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: GetMaintenanceWindowExecutionTaskCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - GetMaintenanceWindowExecutionTaskCommandInput, - GetMaintenanceWindowExecutionTaskCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetMaintenanceWindowExecutionTaskInvocationCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetMaintenanceWindowExecutionTaskInvocationCommand.d.ts deleted file mode 100644 index 285e6daf..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetMaintenanceWindowExecutionTaskInvocationCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - GetMaintenanceWindowExecutionTaskInvocationRequest, - GetMaintenanceWindowExecutionTaskInvocationResult, -} from "../models/models_1"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface GetMaintenanceWindowExecutionTaskInvocationCommandInput - extends GetMaintenanceWindowExecutionTaskInvocationRequest {} -export interface GetMaintenanceWindowExecutionTaskInvocationCommandOutput - extends GetMaintenanceWindowExecutionTaskInvocationResult, - __MetadataBearer {} -export declare class GetMaintenanceWindowExecutionTaskInvocationCommand extends $Command< - GetMaintenanceWindowExecutionTaskInvocationCommandInput, - GetMaintenanceWindowExecutionTaskInvocationCommandOutput, - SSMClientResolvedConfig -> { - readonly input: GetMaintenanceWindowExecutionTaskInvocationCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: GetMaintenanceWindowExecutionTaskInvocationCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - GetMaintenanceWindowExecutionTaskInvocationCommandInput, - GetMaintenanceWindowExecutionTaskInvocationCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetMaintenanceWindowTaskCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetMaintenanceWindowTaskCommand.d.ts deleted file mode 100644 index e72ee92a..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetMaintenanceWindowTaskCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - GetMaintenanceWindowTaskRequest, - GetMaintenanceWindowTaskResult, -} from "../models/models_1"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface GetMaintenanceWindowTaskCommandInput - extends GetMaintenanceWindowTaskRequest {} -export interface GetMaintenanceWindowTaskCommandOutput - extends GetMaintenanceWindowTaskResult, - __MetadataBearer {} -export declare class GetMaintenanceWindowTaskCommand extends $Command< - GetMaintenanceWindowTaskCommandInput, - GetMaintenanceWindowTaskCommandOutput, - SSMClientResolvedConfig -> { - readonly input: GetMaintenanceWindowTaskCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: GetMaintenanceWindowTaskCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - GetMaintenanceWindowTaskCommandInput, - GetMaintenanceWindowTaskCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetOpsItemCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetOpsItemCommand.d.ts deleted file mode 100644 index ec6672ee..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetOpsItemCommand.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { GetOpsItemRequest, GetOpsItemResponse } from "../models/models_1"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface GetOpsItemCommandInput extends GetOpsItemRequest {} -export interface GetOpsItemCommandOutput - extends GetOpsItemResponse, - __MetadataBearer {} -export declare class GetOpsItemCommand extends $Command< - GetOpsItemCommandInput, - GetOpsItemCommandOutput, - SSMClientResolvedConfig -> { - readonly input: GetOpsItemCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: GetOpsItemCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetOpsMetadataCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetOpsMetadataCommand.d.ts deleted file mode 100644 index 6ecce25c..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetOpsMetadataCommand.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - GetOpsMetadataRequest, - GetOpsMetadataResult, -} from "../models/models_1"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface GetOpsMetadataCommandInput extends GetOpsMetadataRequest {} -export interface GetOpsMetadataCommandOutput - extends GetOpsMetadataResult, - __MetadataBearer {} -export declare class GetOpsMetadataCommand extends $Command< - GetOpsMetadataCommandInput, - GetOpsMetadataCommandOutput, - SSMClientResolvedConfig -> { - readonly input: GetOpsMetadataCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: GetOpsMetadataCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetOpsSummaryCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetOpsSummaryCommand.d.ts deleted file mode 100644 index 3b80d091..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetOpsSummaryCommand.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { GetOpsSummaryResult } from "../models/models_1"; -import { GetOpsSummaryRequest } from "../models/models_2"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface GetOpsSummaryCommandInput extends GetOpsSummaryRequest {} -export interface GetOpsSummaryCommandOutput - extends GetOpsSummaryResult, - __MetadataBearer {} -export declare class GetOpsSummaryCommand extends $Command< - GetOpsSummaryCommandInput, - GetOpsSummaryCommandOutput, - SSMClientResolvedConfig -> { - readonly input: GetOpsSummaryCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: GetOpsSummaryCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetParameterCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetParameterCommand.d.ts deleted file mode 100644 index f8b8cbe0..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetParameterCommand.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { GetParameterRequest, GetParameterResult } from "../models/models_1"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface GetParameterCommandInput extends GetParameterRequest {} -export interface GetParameterCommandOutput - extends GetParameterResult, - __MetadataBearer {} -export declare class GetParameterCommand extends $Command< - GetParameterCommandInput, - GetParameterCommandOutput, - SSMClientResolvedConfig -> { - readonly input: GetParameterCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: GetParameterCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetParameterHistoryCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetParameterHistoryCommand.d.ts deleted file mode 100644 index 87ea3e0c..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetParameterHistoryCommand.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - GetParameterHistoryRequest, - GetParameterHistoryResult, -} from "../models/models_1"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface GetParameterHistoryCommandInput - extends GetParameterHistoryRequest {} -export interface GetParameterHistoryCommandOutput - extends GetParameterHistoryResult, - __MetadataBearer {} -export declare class GetParameterHistoryCommand extends $Command< - GetParameterHistoryCommandInput, - GetParameterHistoryCommandOutput, - SSMClientResolvedConfig -> { - readonly input: GetParameterHistoryCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: GetParameterHistoryCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetParametersByPathCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetParametersByPathCommand.d.ts deleted file mode 100644 index 64e50139..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetParametersByPathCommand.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - GetParametersByPathRequest, - GetParametersByPathResult, -} from "../models/models_1"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface GetParametersByPathCommandInput - extends GetParametersByPathRequest {} -export interface GetParametersByPathCommandOutput - extends GetParametersByPathResult, - __MetadataBearer {} -export declare class GetParametersByPathCommand extends $Command< - GetParametersByPathCommandInput, - GetParametersByPathCommandOutput, - SSMClientResolvedConfig -> { - readonly input: GetParametersByPathCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: GetParametersByPathCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetParametersCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetParametersCommand.d.ts deleted file mode 100644 index 2cfa0b61..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetParametersCommand.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { GetParametersRequest, GetParametersResult } from "../models/models_1"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface GetParametersCommandInput extends GetParametersRequest {} -export interface GetParametersCommandOutput - extends GetParametersResult, - __MetadataBearer {} -export declare class GetParametersCommand extends $Command< - GetParametersCommandInput, - GetParametersCommandOutput, - SSMClientResolvedConfig -> { - readonly input: GetParametersCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: GetParametersCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetPatchBaselineCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetPatchBaselineCommand.d.ts deleted file mode 100644 index 6cacffc1..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetPatchBaselineCommand.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - GetPatchBaselineRequest, - GetPatchBaselineResult, -} from "../models/models_1"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface GetPatchBaselineCommandInput extends GetPatchBaselineRequest {} -export interface GetPatchBaselineCommandOutput - extends GetPatchBaselineResult, - __MetadataBearer {} -export declare class GetPatchBaselineCommand extends $Command< - GetPatchBaselineCommandInput, - GetPatchBaselineCommandOutput, - SSMClientResolvedConfig -> { - readonly input: GetPatchBaselineCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: GetPatchBaselineCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetPatchBaselineForPatchGroupCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetPatchBaselineForPatchGroupCommand.d.ts deleted file mode 100644 index 1201b218..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetPatchBaselineForPatchGroupCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - GetPatchBaselineForPatchGroupRequest, - GetPatchBaselineForPatchGroupResult, -} from "../models/models_1"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface GetPatchBaselineForPatchGroupCommandInput - extends GetPatchBaselineForPatchGroupRequest {} -export interface GetPatchBaselineForPatchGroupCommandOutput - extends GetPatchBaselineForPatchGroupResult, - __MetadataBearer {} -export declare class GetPatchBaselineForPatchGroupCommand extends $Command< - GetPatchBaselineForPatchGroupCommandInput, - GetPatchBaselineForPatchGroupCommandOutput, - SSMClientResolvedConfig -> { - readonly input: GetPatchBaselineForPatchGroupCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: GetPatchBaselineForPatchGroupCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - GetPatchBaselineForPatchGroupCommandInput, - GetPatchBaselineForPatchGroupCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetResourcePoliciesCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetResourcePoliciesCommand.d.ts deleted file mode 100644 index f4f6b307..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetResourcePoliciesCommand.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - GetResourcePoliciesRequest, - GetResourcePoliciesResponse, -} from "../models/models_1"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface GetResourcePoliciesCommandInput - extends GetResourcePoliciesRequest {} -export interface GetResourcePoliciesCommandOutput - extends GetResourcePoliciesResponse, - __MetadataBearer {} -export declare class GetResourcePoliciesCommand extends $Command< - GetResourcePoliciesCommandInput, - GetResourcePoliciesCommandOutput, - SSMClientResolvedConfig -> { - readonly input: GetResourcePoliciesCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: GetResourcePoliciesCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetServiceSettingCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetServiceSettingCommand.d.ts deleted file mode 100644 index 9cfadfc7..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/GetServiceSettingCommand.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - GetServiceSettingRequest, - GetServiceSettingResult, -} from "../models/models_1"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface GetServiceSettingCommandInput - extends GetServiceSettingRequest {} -export interface GetServiceSettingCommandOutput - extends GetServiceSettingResult, - __MetadataBearer {} -export declare class GetServiceSettingCommand extends $Command< - GetServiceSettingCommandInput, - GetServiceSettingCommandOutput, - SSMClientResolvedConfig -> { - readonly input: GetServiceSettingCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: GetServiceSettingCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/LabelParameterVersionCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/LabelParameterVersionCommand.d.ts deleted file mode 100644 index ee0cadef..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/LabelParameterVersionCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - LabelParameterVersionRequest, - LabelParameterVersionResult, -} from "../models/models_1"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface LabelParameterVersionCommandInput - extends LabelParameterVersionRequest {} -export interface LabelParameterVersionCommandOutput - extends LabelParameterVersionResult, - __MetadataBearer {} -export declare class LabelParameterVersionCommand extends $Command< - LabelParameterVersionCommandInput, - LabelParameterVersionCommandOutput, - SSMClientResolvedConfig -> { - readonly input: LabelParameterVersionCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: LabelParameterVersionCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - LabelParameterVersionCommandInput, - LabelParameterVersionCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ListAssociationVersionsCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ListAssociationVersionsCommand.d.ts deleted file mode 100644 index 341af724..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ListAssociationVersionsCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - ListAssociationVersionsRequest, - ListAssociationVersionsResult, -} from "../models/models_1"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface ListAssociationVersionsCommandInput - extends ListAssociationVersionsRequest {} -export interface ListAssociationVersionsCommandOutput - extends ListAssociationVersionsResult, - __MetadataBearer {} -export declare class ListAssociationVersionsCommand extends $Command< - ListAssociationVersionsCommandInput, - ListAssociationVersionsCommandOutput, - SSMClientResolvedConfig -> { - readonly input: ListAssociationVersionsCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: ListAssociationVersionsCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - ListAssociationVersionsCommandInput, - ListAssociationVersionsCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ListAssociationsCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ListAssociationsCommand.d.ts deleted file mode 100644 index a8ad52cb..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ListAssociationsCommand.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - ListAssociationsRequest, - ListAssociationsResult, -} from "../models/models_1"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface ListAssociationsCommandInput extends ListAssociationsRequest {} -export interface ListAssociationsCommandOutput - extends ListAssociationsResult, - __MetadataBearer {} -export declare class ListAssociationsCommand extends $Command< - ListAssociationsCommandInput, - ListAssociationsCommandOutput, - SSMClientResolvedConfig -> { - readonly input: ListAssociationsCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: ListAssociationsCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ListCommandInvocationsCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ListCommandInvocationsCommand.d.ts deleted file mode 100644 index 92542180..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ListCommandInvocationsCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - ListCommandInvocationsRequest, - ListCommandInvocationsResult, -} from "../models/models_1"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface ListCommandInvocationsCommandInput - extends ListCommandInvocationsRequest {} -export interface ListCommandInvocationsCommandOutput - extends ListCommandInvocationsResult, - __MetadataBearer {} -export declare class ListCommandInvocationsCommand extends $Command< - ListCommandInvocationsCommandInput, - ListCommandInvocationsCommandOutput, - SSMClientResolvedConfig -> { - readonly input: ListCommandInvocationsCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: ListCommandInvocationsCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - ListCommandInvocationsCommandInput, - ListCommandInvocationsCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ListCommandsCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ListCommandsCommand.d.ts deleted file mode 100644 index e3463a45..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ListCommandsCommand.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { ListCommandsRequest, ListCommandsResult } from "../models/models_1"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface ListCommandsCommandInput extends ListCommandsRequest {} -export interface ListCommandsCommandOutput - extends ListCommandsResult, - __MetadataBearer {} -export declare class ListCommandsCommand extends $Command< - ListCommandsCommandInput, - ListCommandsCommandOutput, - SSMClientResolvedConfig -> { - readonly input: ListCommandsCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: ListCommandsCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ListComplianceItemsCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ListComplianceItemsCommand.d.ts deleted file mode 100644 index 20b80d93..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ListComplianceItemsCommand.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - ListComplianceItemsRequest, - ListComplianceItemsResult, -} from "../models/models_1"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface ListComplianceItemsCommandInput - extends ListComplianceItemsRequest {} -export interface ListComplianceItemsCommandOutput - extends ListComplianceItemsResult, - __MetadataBearer {} -export declare class ListComplianceItemsCommand extends $Command< - ListComplianceItemsCommandInput, - ListComplianceItemsCommandOutput, - SSMClientResolvedConfig -> { - readonly input: ListComplianceItemsCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: ListComplianceItemsCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ListComplianceSummariesCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ListComplianceSummariesCommand.d.ts deleted file mode 100644 index 2b264155..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ListComplianceSummariesCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - ListComplianceSummariesRequest, - ListComplianceSummariesResult, -} from "../models/models_1"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface ListComplianceSummariesCommandInput - extends ListComplianceSummariesRequest {} -export interface ListComplianceSummariesCommandOutput - extends ListComplianceSummariesResult, - __MetadataBearer {} -export declare class ListComplianceSummariesCommand extends $Command< - ListComplianceSummariesCommandInput, - ListComplianceSummariesCommandOutput, - SSMClientResolvedConfig -> { - readonly input: ListComplianceSummariesCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: ListComplianceSummariesCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - ListComplianceSummariesCommandInput, - ListComplianceSummariesCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ListDocumentMetadataHistoryCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ListDocumentMetadataHistoryCommand.d.ts deleted file mode 100644 index 49ec040a..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ListDocumentMetadataHistoryCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - ListDocumentMetadataHistoryRequest, - ListDocumentMetadataHistoryResponse, -} from "../models/models_1"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface ListDocumentMetadataHistoryCommandInput - extends ListDocumentMetadataHistoryRequest {} -export interface ListDocumentMetadataHistoryCommandOutput - extends ListDocumentMetadataHistoryResponse, - __MetadataBearer {} -export declare class ListDocumentMetadataHistoryCommand extends $Command< - ListDocumentMetadataHistoryCommandInput, - ListDocumentMetadataHistoryCommandOutput, - SSMClientResolvedConfig -> { - readonly input: ListDocumentMetadataHistoryCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: ListDocumentMetadataHistoryCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - ListDocumentMetadataHistoryCommandInput, - ListDocumentMetadataHistoryCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ListDocumentVersionsCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ListDocumentVersionsCommand.d.ts deleted file mode 100644 index e4c860d0..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ListDocumentVersionsCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - ListDocumentVersionsRequest, - ListDocumentVersionsResult, -} from "../models/models_1"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface ListDocumentVersionsCommandInput - extends ListDocumentVersionsRequest {} -export interface ListDocumentVersionsCommandOutput - extends ListDocumentVersionsResult, - __MetadataBearer {} -export declare class ListDocumentVersionsCommand extends $Command< - ListDocumentVersionsCommandInput, - ListDocumentVersionsCommandOutput, - SSMClientResolvedConfig -> { - readonly input: ListDocumentVersionsCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: ListDocumentVersionsCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - ListDocumentVersionsCommandInput, - ListDocumentVersionsCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ListDocumentsCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ListDocumentsCommand.d.ts deleted file mode 100644 index 4091c783..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ListDocumentsCommand.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { ListDocumentsRequest, ListDocumentsResult } from "../models/models_1"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface ListDocumentsCommandInput extends ListDocumentsRequest {} -export interface ListDocumentsCommandOutput - extends ListDocumentsResult, - __MetadataBearer {} -export declare class ListDocumentsCommand extends $Command< - ListDocumentsCommandInput, - ListDocumentsCommandOutput, - SSMClientResolvedConfig -> { - readonly input: ListDocumentsCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: ListDocumentsCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ListInventoryEntriesCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ListInventoryEntriesCommand.d.ts deleted file mode 100644 index 2155e6ce..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ListInventoryEntriesCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - ListInventoryEntriesRequest, - ListInventoryEntriesResult, -} from "../models/models_1"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface ListInventoryEntriesCommandInput - extends ListInventoryEntriesRequest {} -export interface ListInventoryEntriesCommandOutput - extends ListInventoryEntriesResult, - __MetadataBearer {} -export declare class ListInventoryEntriesCommand extends $Command< - ListInventoryEntriesCommandInput, - ListInventoryEntriesCommandOutput, - SSMClientResolvedConfig -> { - readonly input: ListInventoryEntriesCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: ListInventoryEntriesCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - ListInventoryEntriesCommandInput, - ListInventoryEntriesCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ListOpsItemEventsCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ListOpsItemEventsCommand.d.ts deleted file mode 100644 index 03580ef6..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ListOpsItemEventsCommand.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - ListOpsItemEventsRequest, - ListOpsItemEventsResponse, -} from "../models/models_1"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface ListOpsItemEventsCommandInput - extends ListOpsItemEventsRequest {} -export interface ListOpsItemEventsCommandOutput - extends ListOpsItemEventsResponse, - __MetadataBearer {} -export declare class ListOpsItemEventsCommand extends $Command< - ListOpsItemEventsCommandInput, - ListOpsItemEventsCommandOutput, - SSMClientResolvedConfig -> { - readonly input: ListOpsItemEventsCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: ListOpsItemEventsCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ListOpsItemRelatedItemsCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ListOpsItemRelatedItemsCommand.d.ts deleted file mode 100644 index d856b5f0..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ListOpsItemRelatedItemsCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - ListOpsItemRelatedItemsRequest, - ListOpsItemRelatedItemsResponse, -} from "../models/models_1"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface ListOpsItemRelatedItemsCommandInput - extends ListOpsItemRelatedItemsRequest {} -export interface ListOpsItemRelatedItemsCommandOutput - extends ListOpsItemRelatedItemsResponse, - __MetadataBearer {} -export declare class ListOpsItemRelatedItemsCommand extends $Command< - ListOpsItemRelatedItemsCommandInput, - ListOpsItemRelatedItemsCommandOutput, - SSMClientResolvedConfig -> { - readonly input: ListOpsItemRelatedItemsCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: ListOpsItemRelatedItemsCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - ListOpsItemRelatedItemsCommandInput, - ListOpsItemRelatedItemsCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ListOpsMetadataCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ListOpsMetadataCommand.d.ts deleted file mode 100644 index 15b78899..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ListOpsMetadataCommand.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - ListOpsMetadataRequest, - ListOpsMetadataResult, -} from "../models/models_1"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface ListOpsMetadataCommandInput extends ListOpsMetadataRequest {} -export interface ListOpsMetadataCommandOutput - extends ListOpsMetadataResult, - __MetadataBearer {} -export declare class ListOpsMetadataCommand extends $Command< - ListOpsMetadataCommandInput, - ListOpsMetadataCommandOutput, - SSMClientResolvedConfig -> { - readonly input: ListOpsMetadataCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: ListOpsMetadataCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ListResourceComplianceSummariesCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ListResourceComplianceSummariesCommand.d.ts deleted file mode 100644 index 1a15a42e..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ListResourceComplianceSummariesCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - ListResourceComplianceSummariesRequest, - ListResourceComplianceSummariesResult, -} from "../models/models_1"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface ListResourceComplianceSummariesCommandInput - extends ListResourceComplianceSummariesRequest {} -export interface ListResourceComplianceSummariesCommandOutput - extends ListResourceComplianceSummariesResult, - __MetadataBearer {} -export declare class ListResourceComplianceSummariesCommand extends $Command< - ListResourceComplianceSummariesCommandInput, - ListResourceComplianceSummariesCommandOutput, - SSMClientResolvedConfig -> { - readonly input: ListResourceComplianceSummariesCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: ListResourceComplianceSummariesCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - ListResourceComplianceSummariesCommandInput, - ListResourceComplianceSummariesCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ListResourceDataSyncCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ListResourceDataSyncCommand.d.ts deleted file mode 100644 index a5224f56..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ListResourceDataSyncCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - ListResourceDataSyncRequest, - ListResourceDataSyncResult, -} from "../models/models_1"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface ListResourceDataSyncCommandInput - extends ListResourceDataSyncRequest {} -export interface ListResourceDataSyncCommandOutput - extends ListResourceDataSyncResult, - __MetadataBearer {} -export declare class ListResourceDataSyncCommand extends $Command< - ListResourceDataSyncCommandInput, - ListResourceDataSyncCommandOutput, - SSMClientResolvedConfig -> { - readonly input: ListResourceDataSyncCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: ListResourceDataSyncCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - ListResourceDataSyncCommandInput, - ListResourceDataSyncCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts deleted file mode 100644 index 26cf9396..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ListTagsForResourceCommand.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - ListTagsForResourceRequest, - ListTagsForResourceResult, -} from "../models/models_1"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface ListTagsForResourceCommandInput - extends ListTagsForResourceRequest {} -export interface ListTagsForResourceCommandOutput - extends ListTagsForResourceResult, - __MetadataBearer {} -export declare class ListTagsForResourceCommand extends $Command< - ListTagsForResourceCommandInput, - ListTagsForResourceCommandOutput, - SSMClientResolvedConfig -> { - readonly input: ListTagsForResourceCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: ListTagsForResourceCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ModifyDocumentPermissionCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ModifyDocumentPermissionCommand.d.ts deleted file mode 100644 index 4f71e8bf..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ModifyDocumentPermissionCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - ModifyDocumentPermissionRequest, - ModifyDocumentPermissionResponse, -} from "../models/models_1"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface ModifyDocumentPermissionCommandInput - extends ModifyDocumentPermissionRequest {} -export interface ModifyDocumentPermissionCommandOutput - extends ModifyDocumentPermissionResponse, - __MetadataBearer {} -export declare class ModifyDocumentPermissionCommand extends $Command< - ModifyDocumentPermissionCommandInput, - ModifyDocumentPermissionCommandOutput, - SSMClientResolvedConfig -> { - readonly input: ModifyDocumentPermissionCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: ModifyDocumentPermissionCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - ModifyDocumentPermissionCommandInput, - ModifyDocumentPermissionCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/PutComplianceItemsCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/PutComplianceItemsCommand.d.ts deleted file mode 100644 index 5f11804c..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/PutComplianceItemsCommand.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - PutComplianceItemsRequest, - PutComplianceItemsResult, -} from "../models/models_1"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface PutComplianceItemsCommandInput - extends PutComplianceItemsRequest {} -export interface PutComplianceItemsCommandOutput - extends PutComplianceItemsResult, - __MetadataBearer {} -export declare class PutComplianceItemsCommand extends $Command< - PutComplianceItemsCommandInput, - PutComplianceItemsCommandOutput, - SSMClientResolvedConfig -> { - readonly input: PutComplianceItemsCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: PutComplianceItemsCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/PutInventoryCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/PutInventoryCommand.d.ts deleted file mode 100644 index f7bc9d87..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/PutInventoryCommand.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { PutInventoryRequest, PutInventoryResult } from "../models/models_1"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface PutInventoryCommandInput extends PutInventoryRequest {} -export interface PutInventoryCommandOutput - extends PutInventoryResult, - __MetadataBearer {} -export declare class PutInventoryCommand extends $Command< - PutInventoryCommandInput, - PutInventoryCommandOutput, - SSMClientResolvedConfig -> { - readonly input: PutInventoryCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: PutInventoryCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/PutParameterCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/PutParameterCommand.d.ts deleted file mode 100644 index 4eb209aa..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/PutParameterCommand.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { PutParameterRequest, PutParameterResult } from "../models/models_1"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface PutParameterCommandInput extends PutParameterRequest {} -export interface PutParameterCommandOutput - extends PutParameterResult, - __MetadataBearer {} -export declare class PutParameterCommand extends $Command< - PutParameterCommandInput, - PutParameterCommandOutput, - SSMClientResolvedConfig -> { - readonly input: PutParameterCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: PutParameterCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts deleted file mode 100644 index 060089ad..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/PutResourcePolicyCommand.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - PutResourcePolicyRequest, - PutResourcePolicyResponse, -} from "../models/models_1"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface PutResourcePolicyCommandInput - extends PutResourcePolicyRequest {} -export interface PutResourcePolicyCommandOutput - extends PutResourcePolicyResponse, - __MetadataBearer {} -export declare class PutResourcePolicyCommand extends $Command< - PutResourcePolicyCommandInput, - PutResourcePolicyCommandOutput, - SSMClientResolvedConfig -> { - readonly input: PutResourcePolicyCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: PutResourcePolicyCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/RegisterDefaultPatchBaselineCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/RegisterDefaultPatchBaselineCommand.d.ts deleted file mode 100644 index 21b4783c..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/RegisterDefaultPatchBaselineCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - RegisterDefaultPatchBaselineRequest, - RegisterDefaultPatchBaselineResult, -} from "../models/models_1"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface RegisterDefaultPatchBaselineCommandInput - extends RegisterDefaultPatchBaselineRequest {} -export interface RegisterDefaultPatchBaselineCommandOutput - extends RegisterDefaultPatchBaselineResult, - __MetadataBearer {} -export declare class RegisterDefaultPatchBaselineCommand extends $Command< - RegisterDefaultPatchBaselineCommandInput, - RegisterDefaultPatchBaselineCommandOutput, - SSMClientResolvedConfig -> { - readonly input: RegisterDefaultPatchBaselineCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: RegisterDefaultPatchBaselineCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - RegisterDefaultPatchBaselineCommandInput, - RegisterDefaultPatchBaselineCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/RegisterPatchBaselineForPatchGroupCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/RegisterPatchBaselineForPatchGroupCommand.d.ts deleted file mode 100644 index e5ecc93b..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/RegisterPatchBaselineForPatchGroupCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - RegisterPatchBaselineForPatchGroupRequest, - RegisterPatchBaselineForPatchGroupResult, -} from "../models/models_1"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface RegisterPatchBaselineForPatchGroupCommandInput - extends RegisterPatchBaselineForPatchGroupRequest {} -export interface RegisterPatchBaselineForPatchGroupCommandOutput - extends RegisterPatchBaselineForPatchGroupResult, - __MetadataBearer {} -export declare class RegisterPatchBaselineForPatchGroupCommand extends $Command< - RegisterPatchBaselineForPatchGroupCommandInput, - RegisterPatchBaselineForPatchGroupCommandOutput, - SSMClientResolvedConfig -> { - readonly input: RegisterPatchBaselineForPatchGroupCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: RegisterPatchBaselineForPatchGroupCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - RegisterPatchBaselineForPatchGroupCommandInput, - RegisterPatchBaselineForPatchGroupCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/RegisterTargetWithMaintenanceWindowCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/RegisterTargetWithMaintenanceWindowCommand.d.ts deleted file mode 100644 index 210c44fd..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/RegisterTargetWithMaintenanceWindowCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - RegisterTargetWithMaintenanceWindowRequest, - RegisterTargetWithMaintenanceWindowResult, -} from "../models/models_1"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface RegisterTargetWithMaintenanceWindowCommandInput - extends RegisterTargetWithMaintenanceWindowRequest {} -export interface RegisterTargetWithMaintenanceWindowCommandOutput - extends RegisterTargetWithMaintenanceWindowResult, - __MetadataBearer {} -export declare class RegisterTargetWithMaintenanceWindowCommand extends $Command< - RegisterTargetWithMaintenanceWindowCommandInput, - RegisterTargetWithMaintenanceWindowCommandOutput, - SSMClientResolvedConfig -> { - readonly input: RegisterTargetWithMaintenanceWindowCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: RegisterTargetWithMaintenanceWindowCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - RegisterTargetWithMaintenanceWindowCommandInput, - RegisterTargetWithMaintenanceWindowCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/RegisterTaskWithMaintenanceWindowCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/RegisterTaskWithMaintenanceWindowCommand.d.ts deleted file mode 100644 index 00ca8f2c..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/RegisterTaskWithMaintenanceWindowCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - RegisterTaskWithMaintenanceWindowRequest, - RegisterTaskWithMaintenanceWindowResult, -} from "../models/models_1"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface RegisterTaskWithMaintenanceWindowCommandInput - extends RegisterTaskWithMaintenanceWindowRequest {} -export interface RegisterTaskWithMaintenanceWindowCommandOutput - extends RegisterTaskWithMaintenanceWindowResult, - __MetadataBearer {} -export declare class RegisterTaskWithMaintenanceWindowCommand extends $Command< - RegisterTaskWithMaintenanceWindowCommandInput, - RegisterTaskWithMaintenanceWindowCommandOutput, - SSMClientResolvedConfig -> { - readonly input: RegisterTaskWithMaintenanceWindowCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: RegisterTaskWithMaintenanceWindowCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - RegisterTaskWithMaintenanceWindowCommandInput, - RegisterTaskWithMaintenanceWindowCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/RemoveTagsFromResourceCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/RemoveTagsFromResourceCommand.d.ts deleted file mode 100644 index fc74703c..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/RemoveTagsFromResourceCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - RemoveTagsFromResourceRequest, - RemoveTagsFromResourceResult, -} from "../models/models_1"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface RemoveTagsFromResourceCommandInput - extends RemoveTagsFromResourceRequest {} -export interface RemoveTagsFromResourceCommandOutput - extends RemoveTagsFromResourceResult, - __MetadataBearer {} -export declare class RemoveTagsFromResourceCommand extends $Command< - RemoveTagsFromResourceCommandInput, - RemoveTagsFromResourceCommandOutput, - SSMClientResolvedConfig -> { - readonly input: RemoveTagsFromResourceCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: RemoveTagsFromResourceCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - RemoveTagsFromResourceCommandInput, - RemoveTagsFromResourceCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ResetServiceSettingCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ResetServiceSettingCommand.d.ts deleted file mode 100644 index 24fdf7bd..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ResetServiceSettingCommand.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - ResetServiceSettingRequest, - ResetServiceSettingResult, -} from "../models/models_1"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface ResetServiceSettingCommandInput - extends ResetServiceSettingRequest {} -export interface ResetServiceSettingCommandOutput - extends ResetServiceSettingResult, - __MetadataBearer {} -export declare class ResetServiceSettingCommand extends $Command< - ResetServiceSettingCommandInput, - ResetServiceSettingCommandOutput, - SSMClientResolvedConfig -> { - readonly input: ResetServiceSettingCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: ResetServiceSettingCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ResumeSessionCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ResumeSessionCommand.d.ts deleted file mode 100644 index dbf9b9ad..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/ResumeSessionCommand.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - ResumeSessionRequest, - ResumeSessionResponse, -} from "../models/models_1"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface ResumeSessionCommandInput extends ResumeSessionRequest {} -export interface ResumeSessionCommandOutput - extends ResumeSessionResponse, - __MetadataBearer {} -export declare class ResumeSessionCommand extends $Command< - ResumeSessionCommandInput, - ResumeSessionCommandOutput, - SSMClientResolvedConfig -> { - readonly input: ResumeSessionCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: ResumeSessionCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/SendAutomationSignalCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/SendAutomationSignalCommand.d.ts deleted file mode 100644 index 55f9d6f9..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/SendAutomationSignalCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - SendAutomationSignalRequest, - SendAutomationSignalResult, -} from "../models/models_1"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface SendAutomationSignalCommandInput - extends SendAutomationSignalRequest {} -export interface SendAutomationSignalCommandOutput - extends SendAutomationSignalResult, - __MetadataBearer {} -export declare class SendAutomationSignalCommand extends $Command< - SendAutomationSignalCommandInput, - SendAutomationSignalCommandOutput, - SSMClientResolvedConfig -> { - readonly input: SendAutomationSignalCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: SendAutomationSignalCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - SendAutomationSignalCommandInput, - SendAutomationSignalCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/SendCommandCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/SendCommandCommand.d.ts deleted file mode 100644 index b90e2371..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/SendCommandCommand.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { SendCommandRequest, SendCommandResult } from "../models/models_1"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface SendCommandCommandInput extends SendCommandRequest {} -export interface SendCommandCommandOutput - extends SendCommandResult, - __MetadataBearer {} -export declare class SendCommandCommand extends $Command< - SendCommandCommandInput, - SendCommandCommandOutput, - SSMClientResolvedConfig -> { - readonly input: SendCommandCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: SendCommandCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/StartAssociationsOnceCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/StartAssociationsOnceCommand.d.ts deleted file mode 100644 index 6a1228ab..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/StartAssociationsOnceCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - StartAssociationsOnceRequest, - StartAssociationsOnceResult, -} from "../models/models_1"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface StartAssociationsOnceCommandInput - extends StartAssociationsOnceRequest {} -export interface StartAssociationsOnceCommandOutput - extends StartAssociationsOnceResult, - __MetadataBearer {} -export declare class StartAssociationsOnceCommand extends $Command< - StartAssociationsOnceCommandInput, - StartAssociationsOnceCommandOutput, - SSMClientResolvedConfig -> { - readonly input: StartAssociationsOnceCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: StartAssociationsOnceCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - StartAssociationsOnceCommandInput, - StartAssociationsOnceCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/StartAutomationExecutionCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/StartAutomationExecutionCommand.d.ts deleted file mode 100644 index bcece1d6..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/StartAutomationExecutionCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - StartAutomationExecutionRequest, - StartAutomationExecutionResult, -} from "../models/models_1"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface StartAutomationExecutionCommandInput - extends StartAutomationExecutionRequest {} -export interface StartAutomationExecutionCommandOutput - extends StartAutomationExecutionResult, - __MetadataBearer {} -export declare class StartAutomationExecutionCommand extends $Command< - StartAutomationExecutionCommandInput, - StartAutomationExecutionCommandOutput, - SSMClientResolvedConfig -> { - readonly input: StartAutomationExecutionCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: StartAutomationExecutionCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - StartAutomationExecutionCommandInput, - StartAutomationExecutionCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/StartChangeRequestExecutionCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/StartChangeRequestExecutionCommand.d.ts deleted file mode 100644 index 39596d0a..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/StartChangeRequestExecutionCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - StartChangeRequestExecutionRequest, - StartChangeRequestExecutionResult, -} from "../models/models_1"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface StartChangeRequestExecutionCommandInput - extends StartChangeRequestExecutionRequest {} -export interface StartChangeRequestExecutionCommandOutput - extends StartChangeRequestExecutionResult, - __MetadataBearer {} -export declare class StartChangeRequestExecutionCommand extends $Command< - StartChangeRequestExecutionCommandInput, - StartChangeRequestExecutionCommandOutput, - SSMClientResolvedConfig -> { - readonly input: StartChangeRequestExecutionCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: StartChangeRequestExecutionCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - StartChangeRequestExecutionCommandInput, - StartChangeRequestExecutionCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/StartSessionCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/StartSessionCommand.d.ts deleted file mode 100644 index 06d225ef..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/StartSessionCommand.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { StartSessionRequest, StartSessionResponse } from "../models/models_1"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface StartSessionCommandInput extends StartSessionRequest {} -export interface StartSessionCommandOutput - extends StartSessionResponse, - __MetadataBearer {} -export declare class StartSessionCommand extends $Command< - StartSessionCommandInput, - StartSessionCommandOutput, - SSMClientResolvedConfig -> { - readonly input: StartSessionCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: StartSessionCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/StopAutomationExecutionCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/StopAutomationExecutionCommand.d.ts deleted file mode 100644 index 77c4bdc6..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/StopAutomationExecutionCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - StopAutomationExecutionRequest, - StopAutomationExecutionResult, -} from "../models/models_1"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface StopAutomationExecutionCommandInput - extends StopAutomationExecutionRequest {} -export interface StopAutomationExecutionCommandOutput - extends StopAutomationExecutionResult, - __MetadataBearer {} -export declare class StopAutomationExecutionCommand extends $Command< - StopAutomationExecutionCommandInput, - StopAutomationExecutionCommandOutput, - SSMClientResolvedConfig -> { - readonly input: StopAutomationExecutionCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: StopAutomationExecutionCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - StopAutomationExecutionCommandInput, - StopAutomationExecutionCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/TerminateSessionCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/TerminateSessionCommand.d.ts deleted file mode 100644 index c89190f6..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/TerminateSessionCommand.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { TerminateSessionRequest } from "../models/models_1"; -import { TerminateSessionResponse } from "../models/models_2"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface TerminateSessionCommandInput extends TerminateSessionRequest {} -export interface TerminateSessionCommandOutput - extends TerminateSessionResponse, - __MetadataBearer {} -export declare class TerminateSessionCommand extends $Command< - TerminateSessionCommandInput, - TerminateSessionCommandOutput, - SSMClientResolvedConfig -> { - readonly input: TerminateSessionCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: TerminateSessionCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/UnlabelParameterVersionCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/UnlabelParameterVersionCommand.d.ts deleted file mode 100644 index e3cca68c..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/UnlabelParameterVersionCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - UnlabelParameterVersionRequest, - UnlabelParameterVersionResult, -} from "../models/models_2"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface UnlabelParameterVersionCommandInput - extends UnlabelParameterVersionRequest {} -export interface UnlabelParameterVersionCommandOutput - extends UnlabelParameterVersionResult, - __MetadataBearer {} -export declare class UnlabelParameterVersionCommand extends $Command< - UnlabelParameterVersionCommandInput, - UnlabelParameterVersionCommandOutput, - SSMClientResolvedConfig -> { - readonly input: UnlabelParameterVersionCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: UnlabelParameterVersionCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - UnlabelParameterVersionCommandInput, - UnlabelParameterVersionCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/UpdateAssociationCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/UpdateAssociationCommand.d.ts deleted file mode 100644 index 717d518b..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/UpdateAssociationCommand.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - UpdateAssociationRequest, - UpdateAssociationResult, -} from "../models/models_2"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface UpdateAssociationCommandInput - extends UpdateAssociationRequest {} -export interface UpdateAssociationCommandOutput - extends UpdateAssociationResult, - __MetadataBearer {} -export declare class UpdateAssociationCommand extends $Command< - UpdateAssociationCommandInput, - UpdateAssociationCommandOutput, - SSMClientResolvedConfig -> { - readonly input: UpdateAssociationCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: UpdateAssociationCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/UpdateAssociationStatusCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/UpdateAssociationStatusCommand.d.ts deleted file mode 100644 index dfe8097b..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/UpdateAssociationStatusCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - UpdateAssociationStatusRequest, - UpdateAssociationStatusResult, -} from "../models/models_2"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface UpdateAssociationStatusCommandInput - extends UpdateAssociationStatusRequest {} -export interface UpdateAssociationStatusCommandOutput - extends UpdateAssociationStatusResult, - __MetadataBearer {} -export declare class UpdateAssociationStatusCommand extends $Command< - UpdateAssociationStatusCommandInput, - UpdateAssociationStatusCommandOutput, - SSMClientResolvedConfig -> { - readonly input: UpdateAssociationStatusCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: UpdateAssociationStatusCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - UpdateAssociationStatusCommandInput, - UpdateAssociationStatusCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/UpdateDocumentCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/UpdateDocumentCommand.d.ts deleted file mode 100644 index 29f84e22..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/UpdateDocumentCommand.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - UpdateDocumentRequest, - UpdateDocumentResult, -} from "../models/models_2"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface UpdateDocumentCommandInput extends UpdateDocumentRequest {} -export interface UpdateDocumentCommandOutput - extends UpdateDocumentResult, - __MetadataBearer {} -export declare class UpdateDocumentCommand extends $Command< - UpdateDocumentCommandInput, - UpdateDocumentCommandOutput, - SSMClientResolvedConfig -> { - readonly input: UpdateDocumentCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: UpdateDocumentCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/UpdateDocumentDefaultVersionCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/UpdateDocumentDefaultVersionCommand.d.ts deleted file mode 100644 index 2ba08470..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/UpdateDocumentDefaultVersionCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - UpdateDocumentDefaultVersionRequest, - UpdateDocumentDefaultVersionResult, -} from "../models/models_2"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface UpdateDocumentDefaultVersionCommandInput - extends UpdateDocumentDefaultVersionRequest {} -export interface UpdateDocumentDefaultVersionCommandOutput - extends UpdateDocumentDefaultVersionResult, - __MetadataBearer {} -export declare class UpdateDocumentDefaultVersionCommand extends $Command< - UpdateDocumentDefaultVersionCommandInput, - UpdateDocumentDefaultVersionCommandOutput, - SSMClientResolvedConfig -> { - readonly input: UpdateDocumentDefaultVersionCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: UpdateDocumentDefaultVersionCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - UpdateDocumentDefaultVersionCommandInput, - UpdateDocumentDefaultVersionCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/UpdateDocumentMetadataCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/UpdateDocumentMetadataCommand.d.ts deleted file mode 100644 index 35f18e6e..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/UpdateDocumentMetadataCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - UpdateDocumentMetadataRequest, - UpdateDocumentMetadataResponse, -} from "../models/models_2"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface UpdateDocumentMetadataCommandInput - extends UpdateDocumentMetadataRequest {} -export interface UpdateDocumentMetadataCommandOutput - extends UpdateDocumentMetadataResponse, - __MetadataBearer {} -export declare class UpdateDocumentMetadataCommand extends $Command< - UpdateDocumentMetadataCommandInput, - UpdateDocumentMetadataCommandOutput, - SSMClientResolvedConfig -> { - readonly input: UpdateDocumentMetadataCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: UpdateDocumentMetadataCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - UpdateDocumentMetadataCommandInput, - UpdateDocumentMetadataCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/UpdateMaintenanceWindowCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/UpdateMaintenanceWindowCommand.d.ts deleted file mode 100644 index 670998cc..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/UpdateMaintenanceWindowCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - UpdateMaintenanceWindowRequest, - UpdateMaintenanceWindowResult, -} from "../models/models_2"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface UpdateMaintenanceWindowCommandInput - extends UpdateMaintenanceWindowRequest {} -export interface UpdateMaintenanceWindowCommandOutput - extends UpdateMaintenanceWindowResult, - __MetadataBearer {} -export declare class UpdateMaintenanceWindowCommand extends $Command< - UpdateMaintenanceWindowCommandInput, - UpdateMaintenanceWindowCommandOutput, - SSMClientResolvedConfig -> { - readonly input: UpdateMaintenanceWindowCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: UpdateMaintenanceWindowCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - UpdateMaintenanceWindowCommandInput, - UpdateMaintenanceWindowCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/UpdateMaintenanceWindowTargetCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/UpdateMaintenanceWindowTargetCommand.d.ts deleted file mode 100644 index 1e697a32..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/UpdateMaintenanceWindowTargetCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - UpdateMaintenanceWindowTargetRequest, - UpdateMaintenanceWindowTargetResult, -} from "../models/models_2"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface UpdateMaintenanceWindowTargetCommandInput - extends UpdateMaintenanceWindowTargetRequest {} -export interface UpdateMaintenanceWindowTargetCommandOutput - extends UpdateMaintenanceWindowTargetResult, - __MetadataBearer {} -export declare class UpdateMaintenanceWindowTargetCommand extends $Command< - UpdateMaintenanceWindowTargetCommandInput, - UpdateMaintenanceWindowTargetCommandOutput, - SSMClientResolvedConfig -> { - readonly input: UpdateMaintenanceWindowTargetCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: UpdateMaintenanceWindowTargetCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - UpdateMaintenanceWindowTargetCommandInput, - UpdateMaintenanceWindowTargetCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/UpdateMaintenanceWindowTaskCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/UpdateMaintenanceWindowTaskCommand.d.ts deleted file mode 100644 index eff9674f..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/UpdateMaintenanceWindowTaskCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - UpdateMaintenanceWindowTaskRequest, - UpdateMaintenanceWindowTaskResult, -} from "../models/models_2"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface UpdateMaintenanceWindowTaskCommandInput - extends UpdateMaintenanceWindowTaskRequest {} -export interface UpdateMaintenanceWindowTaskCommandOutput - extends UpdateMaintenanceWindowTaskResult, - __MetadataBearer {} -export declare class UpdateMaintenanceWindowTaskCommand extends $Command< - UpdateMaintenanceWindowTaskCommandInput, - UpdateMaintenanceWindowTaskCommandOutput, - SSMClientResolvedConfig -> { - readonly input: UpdateMaintenanceWindowTaskCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: UpdateMaintenanceWindowTaskCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - UpdateMaintenanceWindowTaskCommandInput, - UpdateMaintenanceWindowTaskCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/UpdateManagedInstanceRoleCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/UpdateManagedInstanceRoleCommand.d.ts deleted file mode 100644 index 0569a9d7..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/UpdateManagedInstanceRoleCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - UpdateManagedInstanceRoleRequest, - UpdateManagedInstanceRoleResult, -} from "../models/models_2"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface UpdateManagedInstanceRoleCommandInput - extends UpdateManagedInstanceRoleRequest {} -export interface UpdateManagedInstanceRoleCommandOutput - extends UpdateManagedInstanceRoleResult, - __MetadataBearer {} -export declare class UpdateManagedInstanceRoleCommand extends $Command< - UpdateManagedInstanceRoleCommandInput, - UpdateManagedInstanceRoleCommandOutput, - SSMClientResolvedConfig -> { - readonly input: UpdateManagedInstanceRoleCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: UpdateManagedInstanceRoleCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - UpdateManagedInstanceRoleCommandInput, - UpdateManagedInstanceRoleCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/UpdateOpsItemCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/UpdateOpsItemCommand.d.ts deleted file mode 100644 index fe6f5d59..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/UpdateOpsItemCommand.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - UpdateOpsItemRequest, - UpdateOpsItemResponse, -} from "../models/models_2"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface UpdateOpsItemCommandInput extends UpdateOpsItemRequest {} -export interface UpdateOpsItemCommandOutput - extends UpdateOpsItemResponse, - __MetadataBearer {} -export declare class UpdateOpsItemCommand extends $Command< - UpdateOpsItemCommandInput, - UpdateOpsItemCommandOutput, - SSMClientResolvedConfig -> { - readonly input: UpdateOpsItemCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: UpdateOpsItemCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/UpdateOpsMetadataCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/UpdateOpsMetadataCommand.d.ts deleted file mode 100644 index e93ec220..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/UpdateOpsMetadataCommand.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - UpdateOpsMetadataRequest, - UpdateOpsMetadataResult, -} from "../models/models_2"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface UpdateOpsMetadataCommandInput - extends UpdateOpsMetadataRequest {} -export interface UpdateOpsMetadataCommandOutput - extends UpdateOpsMetadataResult, - __MetadataBearer {} -export declare class UpdateOpsMetadataCommand extends $Command< - UpdateOpsMetadataCommandInput, - UpdateOpsMetadataCommandOutput, - SSMClientResolvedConfig -> { - readonly input: UpdateOpsMetadataCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: UpdateOpsMetadataCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/UpdatePatchBaselineCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/UpdatePatchBaselineCommand.d.ts deleted file mode 100644 index a97858db..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/UpdatePatchBaselineCommand.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - UpdatePatchBaselineRequest, - UpdatePatchBaselineResult, -} from "../models/models_2"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface UpdatePatchBaselineCommandInput - extends UpdatePatchBaselineRequest {} -export interface UpdatePatchBaselineCommandOutput - extends UpdatePatchBaselineResult, - __MetadataBearer {} -export declare class UpdatePatchBaselineCommand extends $Command< - UpdatePatchBaselineCommandInput, - UpdatePatchBaselineCommandOutput, - SSMClientResolvedConfig -> { - readonly input: UpdatePatchBaselineCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: UpdatePatchBaselineCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/UpdateResourceDataSyncCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/UpdateResourceDataSyncCommand.d.ts deleted file mode 100644 index c694f643..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/UpdateResourceDataSyncCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - UpdateResourceDataSyncRequest, - UpdateResourceDataSyncResult, -} from "../models/models_2"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface UpdateResourceDataSyncCommandInput - extends UpdateResourceDataSyncRequest {} -export interface UpdateResourceDataSyncCommandOutput - extends UpdateResourceDataSyncResult, - __MetadataBearer {} -export declare class UpdateResourceDataSyncCommand extends $Command< - UpdateResourceDataSyncCommandInput, - UpdateResourceDataSyncCommandOutput, - SSMClientResolvedConfig -> { - readonly input: UpdateResourceDataSyncCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: UpdateResourceDataSyncCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - UpdateResourceDataSyncCommandInput, - UpdateResourceDataSyncCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/UpdateServiceSettingCommand.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/UpdateServiceSettingCommand.d.ts deleted file mode 100644 index 49391659..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/UpdateServiceSettingCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - UpdateServiceSettingRequest, - UpdateServiceSettingResult, -} from "../models/models_2"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSMClientResolvedConfig, -} from "../SSMClient"; -export { __MetadataBearer, $Command }; -export interface UpdateServiceSettingCommandInput - extends UpdateServiceSettingRequest {} -export interface UpdateServiceSettingCommandOutput - extends UpdateServiceSettingResult, - __MetadataBearer {} -export declare class UpdateServiceSettingCommand extends $Command< - UpdateServiceSettingCommandInput, - UpdateServiceSettingCommandOutput, - SSMClientResolvedConfig -> { - readonly input: UpdateServiceSettingCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: UpdateServiceSettingCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSMClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - UpdateServiceSettingCommandInput, - UpdateServiceSettingCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/index.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/index.d.ts deleted file mode 100644 index ae442763..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/commands/index.d.ts +++ /dev/null @@ -1,139 +0,0 @@ -export * from "./AddTagsToResourceCommand"; -export * from "./AssociateOpsItemRelatedItemCommand"; -export * from "./CancelCommandCommand"; -export * from "./CancelMaintenanceWindowExecutionCommand"; -export * from "./CreateActivationCommand"; -export * from "./CreateAssociationBatchCommand"; -export * from "./CreateAssociationCommand"; -export * from "./CreateDocumentCommand"; -export * from "./CreateMaintenanceWindowCommand"; -export * from "./CreateOpsItemCommand"; -export * from "./CreateOpsMetadataCommand"; -export * from "./CreatePatchBaselineCommand"; -export * from "./CreateResourceDataSyncCommand"; -export * from "./DeleteActivationCommand"; -export * from "./DeleteAssociationCommand"; -export * from "./DeleteDocumentCommand"; -export * from "./DeleteInventoryCommand"; -export * from "./DeleteMaintenanceWindowCommand"; -export * from "./DeleteOpsItemCommand"; -export * from "./DeleteOpsMetadataCommand"; -export * from "./DeleteParameterCommand"; -export * from "./DeleteParametersCommand"; -export * from "./DeletePatchBaselineCommand"; -export * from "./DeleteResourceDataSyncCommand"; -export * from "./DeleteResourcePolicyCommand"; -export * from "./DeregisterManagedInstanceCommand"; -export * from "./DeregisterPatchBaselineForPatchGroupCommand"; -export * from "./DeregisterTargetFromMaintenanceWindowCommand"; -export * from "./DeregisterTaskFromMaintenanceWindowCommand"; -export * from "./DescribeActivationsCommand"; -export * from "./DescribeAssociationCommand"; -export * from "./DescribeAssociationExecutionTargetsCommand"; -export * from "./DescribeAssociationExecutionsCommand"; -export * from "./DescribeAutomationExecutionsCommand"; -export * from "./DescribeAutomationStepExecutionsCommand"; -export * from "./DescribeAvailablePatchesCommand"; -export * from "./DescribeDocumentCommand"; -export * from "./DescribeDocumentPermissionCommand"; -export * from "./DescribeEffectiveInstanceAssociationsCommand"; -export * from "./DescribeEffectivePatchesForPatchBaselineCommand"; -export * from "./DescribeInstanceAssociationsStatusCommand"; -export * from "./DescribeInstanceInformationCommand"; -export * from "./DescribeInstancePatchStatesCommand"; -export * from "./DescribeInstancePatchStatesForPatchGroupCommand"; -export * from "./DescribeInstancePatchesCommand"; -export * from "./DescribeInventoryDeletionsCommand"; -export * from "./DescribeMaintenanceWindowExecutionTaskInvocationsCommand"; -export * from "./DescribeMaintenanceWindowExecutionTasksCommand"; -export * from "./DescribeMaintenanceWindowExecutionsCommand"; -export * from "./DescribeMaintenanceWindowScheduleCommand"; -export * from "./DescribeMaintenanceWindowTargetsCommand"; -export * from "./DescribeMaintenanceWindowTasksCommand"; -export * from "./DescribeMaintenanceWindowsCommand"; -export * from "./DescribeMaintenanceWindowsForTargetCommand"; -export * from "./DescribeOpsItemsCommand"; -export * from "./DescribeParametersCommand"; -export * from "./DescribePatchBaselinesCommand"; -export * from "./DescribePatchGroupStateCommand"; -export * from "./DescribePatchGroupsCommand"; -export * from "./DescribePatchPropertiesCommand"; -export * from "./DescribeSessionsCommand"; -export * from "./DisassociateOpsItemRelatedItemCommand"; -export * from "./GetAutomationExecutionCommand"; -export * from "./GetCalendarStateCommand"; -export * from "./GetCommandInvocationCommand"; -export * from "./GetConnectionStatusCommand"; -export * from "./GetDefaultPatchBaselineCommand"; -export * from "./GetDeployablePatchSnapshotForInstanceCommand"; -export * from "./GetDocumentCommand"; -export * from "./GetInventoryCommand"; -export * from "./GetInventorySchemaCommand"; -export * from "./GetMaintenanceWindowCommand"; -export * from "./GetMaintenanceWindowExecutionCommand"; -export * from "./GetMaintenanceWindowExecutionTaskCommand"; -export * from "./GetMaintenanceWindowExecutionTaskInvocationCommand"; -export * from "./GetMaintenanceWindowTaskCommand"; -export * from "./GetOpsItemCommand"; -export * from "./GetOpsMetadataCommand"; -export * from "./GetOpsSummaryCommand"; -export * from "./GetParameterCommand"; -export * from "./GetParameterHistoryCommand"; -export * from "./GetParametersByPathCommand"; -export * from "./GetParametersCommand"; -export * from "./GetPatchBaselineCommand"; -export * from "./GetPatchBaselineForPatchGroupCommand"; -export * from "./GetResourcePoliciesCommand"; -export * from "./GetServiceSettingCommand"; -export * from "./LabelParameterVersionCommand"; -export * from "./ListAssociationVersionsCommand"; -export * from "./ListAssociationsCommand"; -export * from "./ListCommandInvocationsCommand"; -export * from "./ListCommandsCommand"; -export * from "./ListComplianceItemsCommand"; -export * from "./ListComplianceSummariesCommand"; -export * from "./ListDocumentMetadataHistoryCommand"; -export * from "./ListDocumentVersionsCommand"; -export * from "./ListDocumentsCommand"; -export * from "./ListInventoryEntriesCommand"; -export * from "./ListOpsItemEventsCommand"; -export * from "./ListOpsItemRelatedItemsCommand"; -export * from "./ListOpsMetadataCommand"; -export * from "./ListResourceComplianceSummariesCommand"; -export * from "./ListResourceDataSyncCommand"; -export * from "./ListTagsForResourceCommand"; -export * from "./ModifyDocumentPermissionCommand"; -export * from "./PutComplianceItemsCommand"; -export * from "./PutInventoryCommand"; -export * from "./PutParameterCommand"; -export * from "./PutResourcePolicyCommand"; -export * from "./RegisterDefaultPatchBaselineCommand"; -export * from "./RegisterPatchBaselineForPatchGroupCommand"; -export * from "./RegisterTargetWithMaintenanceWindowCommand"; -export * from "./RegisterTaskWithMaintenanceWindowCommand"; -export * from "./RemoveTagsFromResourceCommand"; -export * from "./ResetServiceSettingCommand"; -export * from "./ResumeSessionCommand"; -export * from "./SendAutomationSignalCommand"; -export * from "./SendCommandCommand"; -export * from "./StartAssociationsOnceCommand"; -export * from "./StartAutomationExecutionCommand"; -export * from "./StartChangeRequestExecutionCommand"; -export * from "./StartSessionCommand"; -export * from "./StopAutomationExecutionCommand"; -export * from "./TerminateSessionCommand"; -export * from "./UnlabelParameterVersionCommand"; -export * from "./UpdateAssociationCommand"; -export * from "./UpdateAssociationStatusCommand"; -export * from "./UpdateDocumentCommand"; -export * from "./UpdateDocumentDefaultVersionCommand"; -export * from "./UpdateDocumentMetadataCommand"; -export * from "./UpdateMaintenanceWindowCommand"; -export * from "./UpdateMaintenanceWindowTargetCommand"; -export * from "./UpdateMaintenanceWindowTaskCommand"; -export * from "./UpdateManagedInstanceRoleCommand"; -export * from "./UpdateOpsItemCommand"; -export * from "./UpdateOpsMetadataCommand"; -export * from "./UpdatePatchBaselineCommand"; -export * from "./UpdateResourceDataSyncCommand"; -export * from "./UpdateServiceSettingCommand"; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/endpoint/EndpointParameters.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/endpoint/EndpointParameters.d.ts deleted file mode 100644 index 3cbdf4cd..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { - Endpoint, - EndpointParameters as __EndpointParameters, - EndpointV2, - Provider, -} from "@smithy/types"; -export interface ClientInputEndpointParameters { - region?: string | Provider; - useDualstackEndpoint?: boolean | Provider; - useFipsEndpoint?: boolean | Provider; - endpoint?: - | string - | Provider - | Endpoint - | Provider - | EndpointV2 - | Provider; -} -export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & { - defaultSigningName: string; -}; -export declare const resolveClientEndpointParameters: ( - options: T & ClientInputEndpointParameters -) => T & - ClientInputEndpointParameters & { - defaultSigningName: string; - }; -export interface EndpointParameters extends __EndpointParameters { - Region?: string; - UseDualStack?: boolean; - UseFIPS?: boolean; - Endpoint?: string; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/endpoint/endpointResolver.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/endpoint/endpointResolver.d.ts deleted file mode 100644 index 59099254..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/endpoint/endpointResolver.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { EndpointV2, Logger } from "@smithy/types"; -import { EndpointParameters } from "./EndpointParameters"; -export declare const defaultEndpointResolver: ( - endpointParams: EndpointParameters, - context?: { - logger?: Logger; - } -) => EndpointV2; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/endpoint/ruleset.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/endpoint/ruleset.d.ts deleted file mode 100644 index 4b238994..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/endpoint/ruleset.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { RuleSetObject } from "@smithy/types"; -export declare const ruleSet: RuleSetObject; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/extensionConfiguration.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/extensionConfiguration.d.ts deleted file mode 100644 index cceb968d..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/extensionConfiguration.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { AwsRegionExtensionConfiguration } from "@aws-sdk/types"; -import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http"; -import { DefaultExtensionConfiguration } from "@smithy/types"; -export interface SSMExtensionConfiguration - extends HttpHandlerExtensionConfiguration, - DefaultExtensionConfiguration, - AwsRegionExtensionConfiguration {} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/index.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/index.d.ts deleted file mode 100644 index 24af1b80..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/index.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -export * from "./SSMClient"; -export * from "./SSM"; -export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters"; -export { RuntimeExtension } from "./runtimeExtensions"; -export { SSMExtensionConfiguration } from "./extensionConfiguration"; -export * from "./commands"; -export * from "./pagination"; -export * from "./waiters"; -export * from "./models"; -import "@aws-sdk/util-endpoints"; -export { SSMServiceException } from "./models/SSMServiceException"; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/models/SSMServiceException.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/models/SSMServiceException.d.ts deleted file mode 100644 index c20b57e5..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/models/SSMServiceException.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { - ServiceException as __ServiceException, - ServiceExceptionOptions as __ServiceExceptionOptions, -} from "@smithy/smithy-client"; -export { __ServiceException, __ServiceExceptionOptions }; -export declare class SSMServiceException extends __ServiceException { - constructor(options: __ServiceExceptionOptions); -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/models/index.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/models/index.d.ts deleted file mode 100644 index fd6a6aae..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/models/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * from "./models_0"; -export * from "./models_1"; -export * from "./models_2"; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/models/models_0.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/models/models_0.d.ts deleted file mode 100644 index b443cc8f..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/models/models_0.d.ts +++ /dev/null @@ -1,2121 +0,0 @@ -import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; -import { SSMServiceException as __BaseException } from "./SSMServiceException"; -export interface AccountSharingInfo { - AccountId?: string; - SharedDocumentVersion?: string; -} -export interface Tag { - Key: string | undefined; - Value: string | undefined; -} -export interface Activation { - ActivationId?: string; - Description?: string; - DefaultInstanceName?: string; - IamRole?: string; - RegistrationLimit?: number; - RegistrationsCount?: number; - ExpirationDate?: Date; - Expired?: boolean; - CreatedDate?: Date; - Tags?: Tag[]; -} -export declare const ResourceTypeForTagging: { - readonly ASSOCIATION: "Association"; - readonly AUTOMATION: "Automation"; - readonly DOCUMENT: "Document"; - readonly MAINTENANCE_WINDOW: "MaintenanceWindow"; - readonly MANAGED_INSTANCE: "ManagedInstance"; - readonly OPSMETADATA: "OpsMetadata"; - readonly OPS_ITEM: "OpsItem"; - readonly PARAMETER: "Parameter"; - readonly PATCH_BASELINE: "PatchBaseline"; -}; -export type ResourceTypeForTagging = - (typeof ResourceTypeForTagging)[keyof typeof ResourceTypeForTagging]; -export interface AddTagsToResourceRequest { - ResourceType: ResourceTypeForTagging | undefined; - ResourceId: string | undefined; - Tags: Tag[] | undefined; -} -export interface AddTagsToResourceResult {} -export declare class InternalServerError extends __BaseException { - readonly name: "InternalServerError"; - readonly $fault: "server"; - Message?: string; - constructor( - opts: __ExceptionOptionType - ); -} -export declare class InvalidResourceId extends __BaseException { - readonly name: "InvalidResourceId"; - readonly $fault: "client"; - constructor(opts: __ExceptionOptionType); -} -export declare class InvalidResourceType extends __BaseException { - readonly name: "InvalidResourceType"; - readonly $fault: "client"; - constructor( - opts: __ExceptionOptionType - ); -} -export declare class TooManyTagsError extends __BaseException { - readonly name: "TooManyTagsError"; - readonly $fault: "client"; - constructor(opts: __ExceptionOptionType); -} -export declare class TooManyUpdates extends __BaseException { - readonly name: "TooManyUpdates"; - readonly $fault: "client"; - Message?: string; - constructor(opts: __ExceptionOptionType); -} -export interface Alarm { - Name: string | undefined; -} -export interface AlarmConfiguration { - IgnorePollAlarmFailure?: boolean; - Alarms: Alarm[] | undefined; -} -export declare const ExternalAlarmState: { - readonly ALARM: "ALARM"; - readonly UNKNOWN: "UNKNOWN"; -}; -export type ExternalAlarmState = - (typeof ExternalAlarmState)[keyof typeof ExternalAlarmState]; -export interface AlarmStateInformation { - Name: string | undefined; - State: ExternalAlarmState | undefined; -} -export declare class AlreadyExistsException extends __BaseException { - readonly name: "AlreadyExistsException"; - readonly $fault: "client"; - Message?: string; - constructor( - opts: __ExceptionOptionType - ); -} -export interface AssociateOpsItemRelatedItemRequest { - OpsItemId: string | undefined; - AssociationType: string | undefined; - ResourceType: string | undefined; - ResourceUri: string | undefined; -} -export interface AssociateOpsItemRelatedItemResponse { - AssociationId?: string; -} -export declare class OpsItemConflictException extends __BaseException { - readonly name: "OpsItemConflictException"; - readonly $fault: "client"; - Message?: string; - constructor( - opts: __ExceptionOptionType - ); -} -export declare class OpsItemInvalidParameterException extends __BaseException { - readonly name: "OpsItemInvalidParameterException"; - readonly $fault: "client"; - ParameterNames?: string[]; - Message?: string; - constructor( - opts: __ExceptionOptionType< - OpsItemInvalidParameterException, - __BaseException - > - ); -} -export declare class OpsItemLimitExceededException extends __BaseException { - readonly name: "OpsItemLimitExceededException"; - readonly $fault: "client"; - ResourceTypes?: string[]; - Limit?: number; - LimitType?: string; - Message?: string; - constructor( - opts: __ExceptionOptionType - ); -} -export declare class OpsItemNotFoundException extends __BaseException { - readonly name: "OpsItemNotFoundException"; - readonly $fault: "client"; - Message?: string; - constructor( - opts: __ExceptionOptionType - ); -} -export declare class OpsItemRelatedItemAlreadyExistsException extends __BaseException { - readonly name: "OpsItemRelatedItemAlreadyExistsException"; - readonly $fault: "client"; - Message?: string; - ResourceUri?: string; - OpsItemId?: string; - constructor( - opts: __ExceptionOptionType< - OpsItemRelatedItemAlreadyExistsException, - __BaseException - > - ); -} -export interface CancelCommandRequest { - CommandId: string | undefined; - InstanceIds?: string[]; -} -export interface CancelCommandResult {} -export declare class DuplicateInstanceId extends __BaseException { - readonly name: "DuplicateInstanceId"; - readonly $fault: "client"; - constructor( - opts: __ExceptionOptionType - ); -} -export declare class InvalidCommandId extends __BaseException { - readonly name: "InvalidCommandId"; - readonly $fault: "client"; - constructor(opts: __ExceptionOptionType); -} -export declare class InvalidInstanceId extends __BaseException { - readonly name: "InvalidInstanceId"; - readonly $fault: "client"; - Message?: string; - constructor(opts: __ExceptionOptionType); -} -export interface CancelMaintenanceWindowExecutionRequest { - WindowExecutionId: string | undefined; -} -export interface CancelMaintenanceWindowExecutionResult { - WindowExecutionId?: string; -} -export declare class DoesNotExistException extends __BaseException { - readonly name: "DoesNotExistException"; - readonly $fault: "client"; - Message?: string; - constructor( - opts: __ExceptionOptionType - ); -} -export interface RegistrationMetadataItem { - Key: string | undefined; - Value: string | undefined; -} -export interface CreateActivationRequest { - Description?: string; - DefaultInstanceName?: string; - IamRole: string | undefined; - RegistrationLimit?: number; - ExpirationDate?: Date; - Tags?: Tag[]; - RegistrationMetadata?: RegistrationMetadataItem[]; -} -export interface CreateActivationResult { - ActivationId?: string; - ActivationCode?: string; -} -export declare class InvalidParameters extends __BaseException { - readonly name: "InvalidParameters"; - readonly $fault: "client"; - Message?: string; - constructor(opts: __ExceptionOptionType); -} -export declare class AssociationAlreadyExists extends __BaseException { - readonly name: "AssociationAlreadyExists"; - readonly $fault: "client"; - constructor( - opts: __ExceptionOptionType - ); -} -export declare class AssociationLimitExceeded extends __BaseException { - readonly name: "AssociationLimitExceeded"; - readonly $fault: "client"; - constructor( - opts: __ExceptionOptionType - ); -} -export declare const AssociationComplianceSeverity: { - readonly Critical: "CRITICAL"; - readonly High: "HIGH"; - readonly Low: "LOW"; - readonly Medium: "MEDIUM"; - readonly Unspecified: "UNSPECIFIED"; -}; -export type AssociationComplianceSeverity = - (typeof AssociationComplianceSeverity)[keyof typeof AssociationComplianceSeverity]; -export interface S3OutputLocation { - OutputS3Region?: string; - OutputS3BucketName?: string; - OutputS3KeyPrefix?: string; -} -export interface InstanceAssociationOutputLocation { - S3Location?: S3OutputLocation; -} -export declare const AssociationSyncCompliance: { - readonly Auto: "AUTO"; - readonly Manual: "MANUAL"; -}; -export type AssociationSyncCompliance = - (typeof AssociationSyncCompliance)[keyof typeof AssociationSyncCompliance]; -export interface TargetLocation { - Accounts?: string[]; - Regions?: string[]; - TargetLocationMaxConcurrency?: string; - TargetLocationMaxErrors?: string; - ExecutionRoleName?: string; - TargetLocationAlarmConfiguration?: AlarmConfiguration; -} -export interface Target { - Key?: string; - Values?: string[]; -} -export interface CreateAssociationRequest { - Name: string | undefined; - DocumentVersion?: string; - InstanceId?: string; - Parameters?: Record; - Targets?: Target[]; - ScheduleExpression?: string; - OutputLocation?: InstanceAssociationOutputLocation; - AssociationName?: string; - AutomationTargetParameterName?: string; - MaxErrors?: string; - MaxConcurrency?: string; - ComplianceSeverity?: AssociationComplianceSeverity; - SyncCompliance?: AssociationSyncCompliance; - ApplyOnlyAtCronInterval?: boolean; - CalendarNames?: string[]; - TargetLocations?: TargetLocation[]; - ScheduleOffset?: number; - TargetMaps?: Record[]; - Tags?: Tag[]; - AlarmConfiguration?: AlarmConfiguration; -} -export interface AssociationOverview { - Status?: string; - DetailedStatus?: string; - AssociationStatusAggregatedCount?: Record; -} -export declare const AssociationStatusName: { - readonly Failed: "Failed"; - readonly Pending: "Pending"; - readonly Success: "Success"; -}; -export type AssociationStatusName = - (typeof AssociationStatusName)[keyof typeof AssociationStatusName]; -export interface AssociationStatus { - Date: Date | undefined; - Name: AssociationStatusName | undefined; - Message: string | undefined; - AdditionalInfo?: string; -} -export interface AssociationDescription { - Name?: string; - InstanceId?: string; - AssociationVersion?: string; - Date?: Date; - LastUpdateAssociationDate?: Date; - Status?: AssociationStatus; - Overview?: AssociationOverview; - DocumentVersion?: string; - AutomationTargetParameterName?: string; - Parameters?: Record; - AssociationId?: string; - Targets?: Target[]; - ScheduleExpression?: string; - OutputLocation?: InstanceAssociationOutputLocation; - LastExecutionDate?: Date; - LastSuccessfulExecutionDate?: Date; - AssociationName?: string; - MaxErrors?: string; - MaxConcurrency?: string; - ComplianceSeverity?: AssociationComplianceSeverity; - SyncCompliance?: AssociationSyncCompliance; - ApplyOnlyAtCronInterval?: boolean; - CalendarNames?: string[]; - TargetLocations?: TargetLocation[]; - ScheduleOffset?: number; - TargetMaps?: Record[]; - AlarmConfiguration?: AlarmConfiguration; - TriggeredAlarms?: AlarmStateInformation[]; -} -export interface CreateAssociationResult { - AssociationDescription?: AssociationDescription; -} -export declare class InvalidDocument extends __BaseException { - readonly name: "InvalidDocument"; - readonly $fault: "client"; - Message?: string; - constructor(opts: __ExceptionOptionType); -} -export declare class InvalidDocumentVersion extends __BaseException { - readonly name: "InvalidDocumentVersion"; - readonly $fault: "client"; - Message?: string; - constructor( - opts: __ExceptionOptionType - ); -} -export declare class InvalidOutputLocation extends __BaseException { - readonly name: "InvalidOutputLocation"; - readonly $fault: "client"; - constructor( - opts: __ExceptionOptionType - ); -} -export declare class InvalidSchedule extends __BaseException { - readonly name: "InvalidSchedule"; - readonly $fault: "client"; - Message?: string; - constructor(opts: __ExceptionOptionType); -} -export declare class InvalidTag extends __BaseException { - readonly name: "InvalidTag"; - readonly $fault: "client"; - Message?: string; - constructor(opts: __ExceptionOptionType); -} -export declare class InvalidTarget extends __BaseException { - readonly name: "InvalidTarget"; - readonly $fault: "client"; - Message?: string; - constructor(opts: __ExceptionOptionType); -} -export declare class InvalidTargetMaps extends __BaseException { - readonly name: "InvalidTargetMaps"; - readonly $fault: "client"; - Message?: string; - constructor(opts: __ExceptionOptionType); -} -export declare class UnsupportedPlatformType extends __BaseException { - readonly name: "UnsupportedPlatformType"; - readonly $fault: "client"; - Message?: string; - constructor( - opts: __ExceptionOptionType - ); -} -export interface CreateAssociationBatchRequestEntry { - Name: string | undefined; - InstanceId?: string; - Parameters?: Record; - AutomationTargetParameterName?: string; - DocumentVersion?: string; - Targets?: Target[]; - ScheduleExpression?: string; - OutputLocation?: InstanceAssociationOutputLocation; - AssociationName?: string; - MaxErrors?: string; - MaxConcurrency?: string; - ComplianceSeverity?: AssociationComplianceSeverity; - SyncCompliance?: AssociationSyncCompliance; - ApplyOnlyAtCronInterval?: boolean; - CalendarNames?: string[]; - TargetLocations?: TargetLocation[]; - ScheduleOffset?: number; - TargetMaps?: Record[]; - AlarmConfiguration?: AlarmConfiguration; -} -export interface CreateAssociationBatchRequest { - Entries: CreateAssociationBatchRequestEntry[] | undefined; -} -export declare const Fault: { - readonly Client: "Client"; - readonly Server: "Server"; - readonly Unknown: "Unknown"; -}; -export type Fault = (typeof Fault)[keyof typeof Fault]; -export interface FailedCreateAssociation { - Entry?: CreateAssociationBatchRequestEntry; - Message?: string; - Fault?: Fault; -} -export interface CreateAssociationBatchResult { - Successful?: AssociationDescription[]; - Failed?: FailedCreateAssociation[]; -} -export declare const AttachmentsSourceKey: { - readonly AttachmentReference: "AttachmentReference"; - readonly S3FileUrl: "S3FileUrl"; - readonly SourceUrl: "SourceUrl"; -}; -export type AttachmentsSourceKey = - (typeof AttachmentsSourceKey)[keyof typeof AttachmentsSourceKey]; -export interface AttachmentsSource { - Key?: AttachmentsSourceKey; - Values?: string[]; - Name?: string; -} -export declare const DocumentFormat: { - readonly JSON: "JSON"; - readonly TEXT: "TEXT"; - readonly YAML: "YAML"; -}; -export type DocumentFormat = - (typeof DocumentFormat)[keyof typeof DocumentFormat]; -export declare const DocumentType: { - readonly ApplicationConfiguration: "ApplicationConfiguration"; - readonly ApplicationConfigurationSchema: "ApplicationConfigurationSchema"; - readonly Automation: "Automation"; - readonly ChangeCalendar: "ChangeCalendar"; - readonly ChangeTemplate: "Automation.ChangeTemplate"; - readonly CloudFormation: "CloudFormation"; - readonly Command: "Command"; - readonly ConformancePackTemplate: "ConformancePackTemplate"; - readonly DeploymentStrategy: "DeploymentStrategy"; - readonly Package: "Package"; - readonly Policy: "Policy"; - readonly ProblemAnalysis: "ProblemAnalysis"; - readonly ProblemAnalysisTemplate: "ProblemAnalysisTemplate"; - readonly QuickSetup: "QuickSetup"; - readonly Session: "Session"; -}; -export type DocumentType = (typeof DocumentType)[keyof typeof DocumentType]; -export interface DocumentRequires { - Name: string | undefined; - Version?: string; - RequireType?: string; - VersionName?: string; -} -export interface CreateDocumentRequest { - Content: string | undefined; - Requires?: DocumentRequires[]; - Attachments?: AttachmentsSource[]; - Name: string | undefined; - DisplayName?: string; - VersionName?: string; - DocumentType?: DocumentType; - DocumentFormat?: DocumentFormat; - TargetType?: string; - Tags?: Tag[]; -} -export interface AttachmentInformation { - Name?: string; -} -export declare const DocumentHashType: { - readonly SHA1: "Sha1"; - readonly SHA256: "Sha256"; -}; -export type DocumentHashType = - (typeof DocumentHashType)[keyof typeof DocumentHashType]; -export declare const DocumentParameterType: { - readonly String: "String"; - readonly StringList: "StringList"; -}; -export type DocumentParameterType = - (typeof DocumentParameterType)[keyof typeof DocumentParameterType]; -export interface DocumentParameter { - Name?: string; - Type?: DocumentParameterType; - Description?: string; - DefaultValue?: string; -} -export declare const PlatformType: { - readonly LINUX: "Linux"; - readonly MACOS: "MacOS"; - readonly WINDOWS: "Windows"; -}; -export type PlatformType = (typeof PlatformType)[keyof typeof PlatformType]; -export declare const ReviewStatus: { - readonly APPROVED: "APPROVED"; - readonly NOT_REVIEWED: "NOT_REVIEWED"; - readonly PENDING: "PENDING"; - readonly REJECTED: "REJECTED"; -}; -export type ReviewStatus = (typeof ReviewStatus)[keyof typeof ReviewStatus]; -export interface ReviewInformation { - ReviewedTime?: Date; - Status?: ReviewStatus; - Reviewer?: string; -} -export declare const DocumentStatus: { - readonly Active: "Active"; - readonly Creating: "Creating"; - readonly Deleting: "Deleting"; - readonly Failed: "Failed"; - readonly Updating: "Updating"; -}; -export type DocumentStatus = - (typeof DocumentStatus)[keyof typeof DocumentStatus]; -export interface DocumentDescription { - Sha1?: string; - Hash?: string; - HashType?: DocumentHashType; - Name?: string; - DisplayName?: string; - VersionName?: string; - Owner?: string; - CreatedDate?: Date; - Status?: DocumentStatus; - StatusInformation?: string; - DocumentVersion?: string; - Description?: string; - Parameters?: DocumentParameter[]; - PlatformTypes?: PlatformType[]; - DocumentType?: DocumentType; - SchemaVersion?: string; - LatestVersion?: string; - DefaultVersion?: string; - DocumentFormat?: DocumentFormat; - TargetType?: string; - Tags?: Tag[]; - AttachmentsInformation?: AttachmentInformation[]; - Requires?: DocumentRequires[]; - Author?: string; - ReviewInformation?: ReviewInformation[]; - ApprovedVersion?: string; - PendingReviewVersion?: string; - ReviewStatus?: ReviewStatus; - Category?: string[]; - CategoryEnum?: string[]; -} -export interface CreateDocumentResult { - DocumentDescription?: DocumentDescription; -} -export declare class DocumentAlreadyExists extends __BaseException { - readonly name: "DocumentAlreadyExists"; - readonly $fault: "client"; - Message?: string; - constructor( - opts: __ExceptionOptionType - ); -} -export declare class DocumentLimitExceeded extends __BaseException { - readonly name: "DocumentLimitExceeded"; - readonly $fault: "client"; - Message?: string; - constructor( - opts: __ExceptionOptionType - ); -} -export declare class InvalidDocumentContent extends __BaseException { - readonly name: "InvalidDocumentContent"; - readonly $fault: "client"; - Message?: string; - constructor( - opts: __ExceptionOptionType - ); -} -export declare class InvalidDocumentSchemaVersion extends __BaseException { - readonly name: "InvalidDocumentSchemaVersion"; - readonly $fault: "client"; - Message?: string; - constructor( - opts: __ExceptionOptionType - ); -} -export declare class MaxDocumentSizeExceeded extends __BaseException { - readonly name: "MaxDocumentSizeExceeded"; - readonly $fault: "client"; - Message?: string; - constructor( - opts: __ExceptionOptionType - ); -} -export interface CreateMaintenanceWindowRequest { - Name: string | undefined; - Description?: string; - StartDate?: string; - EndDate?: string; - Schedule: string | undefined; - ScheduleTimezone?: string; - ScheduleOffset?: number; - Duration: number | undefined; - Cutoff: number | undefined; - AllowUnassociatedTargets: boolean | undefined; - ClientToken?: string; - Tags?: Tag[]; -} -export interface CreateMaintenanceWindowResult { - WindowId?: string; -} -export declare class IdempotentParameterMismatch extends __BaseException { - readonly name: "IdempotentParameterMismatch"; - readonly $fault: "client"; - Message?: string; - constructor( - opts: __ExceptionOptionType - ); -} -export declare class ResourceLimitExceededException extends __BaseException { - readonly name: "ResourceLimitExceededException"; - readonly $fault: "client"; - Message?: string; - constructor( - opts: __ExceptionOptionType - ); -} -export interface OpsItemNotification { - Arn?: string; -} -export declare const OpsItemDataType: { - readonly SEARCHABLE_STRING: "SearchableString"; - readonly STRING: "String"; -}; -export type OpsItemDataType = - (typeof OpsItemDataType)[keyof typeof OpsItemDataType]; -export interface OpsItemDataValue { - Value?: string; - Type?: OpsItemDataType; -} -export interface RelatedOpsItem { - OpsItemId: string | undefined; -} -export interface CreateOpsItemRequest { - Description: string | undefined; - OpsItemType?: string; - OperationalData?: Record; - Notifications?: OpsItemNotification[]; - Priority?: number; - RelatedOpsItems?: RelatedOpsItem[]; - Source: string | undefined; - Title: string | undefined; - Tags?: Tag[]; - Category?: string; - Severity?: string; - ActualStartTime?: Date; - ActualEndTime?: Date; - PlannedStartTime?: Date; - PlannedEndTime?: Date; - AccountId?: string; -} -export interface CreateOpsItemResponse { - OpsItemId?: string; - OpsItemArn?: string; -} -export declare class OpsItemAccessDeniedException extends __BaseException { - readonly name: "OpsItemAccessDeniedException"; - readonly $fault: "client"; - Message?: string; - constructor( - opts: __ExceptionOptionType - ); -} -export declare class OpsItemAlreadyExistsException extends __BaseException { - readonly name: "OpsItemAlreadyExistsException"; - readonly $fault: "client"; - Message?: string; - OpsItemId?: string; - constructor( - opts: __ExceptionOptionType - ); -} -export interface MetadataValue { - Value?: string; -} -export interface CreateOpsMetadataRequest { - ResourceId: string | undefined; - Metadata?: Record; - Tags?: Tag[]; -} -export interface CreateOpsMetadataResult { - OpsMetadataArn?: string; -} -export declare class OpsMetadataAlreadyExistsException extends __BaseException { - readonly name: "OpsMetadataAlreadyExistsException"; - readonly $fault: "client"; - constructor( - opts: __ExceptionOptionType< - OpsMetadataAlreadyExistsException, - __BaseException - > - ); -} -export declare class OpsMetadataInvalidArgumentException extends __BaseException { - readonly name: "OpsMetadataInvalidArgumentException"; - readonly $fault: "client"; - constructor( - opts: __ExceptionOptionType< - OpsMetadataInvalidArgumentException, - __BaseException - > - ); -} -export declare class OpsMetadataLimitExceededException extends __BaseException { - readonly name: "OpsMetadataLimitExceededException"; - readonly $fault: "client"; - constructor( - opts: __ExceptionOptionType< - OpsMetadataLimitExceededException, - __BaseException - > - ); -} -export declare class OpsMetadataTooManyUpdatesException extends __BaseException { - readonly name: "OpsMetadataTooManyUpdatesException"; - readonly $fault: "client"; - constructor( - opts: __ExceptionOptionType< - OpsMetadataTooManyUpdatesException, - __BaseException - > - ); -} -export declare const PatchComplianceLevel: { - readonly Critical: "CRITICAL"; - readonly High: "HIGH"; - readonly Informational: "INFORMATIONAL"; - readonly Low: "LOW"; - readonly Medium: "MEDIUM"; - readonly Unspecified: "UNSPECIFIED"; -}; -export type PatchComplianceLevel = - (typeof PatchComplianceLevel)[keyof typeof PatchComplianceLevel]; -export declare const PatchFilterKey: { - readonly AdvisoryId: "ADVISORY_ID"; - readonly Arch: "ARCH"; - readonly BugzillaId: "BUGZILLA_ID"; - readonly CVEId: "CVE_ID"; - readonly Classification: "CLASSIFICATION"; - readonly Epoch: "EPOCH"; - readonly MsrcSeverity: "MSRC_SEVERITY"; - readonly Name: "NAME"; - readonly PatchId: "PATCH_ID"; - readonly PatchSet: "PATCH_SET"; - readonly Priority: "PRIORITY"; - readonly Product: "PRODUCT"; - readonly ProductFamily: "PRODUCT_FAMILY"; - readonly Release: "RELEASE"; - readonly Repository: "REPOSITORY"; - readonly Section: "SECTION"; - readonly Security: "SECURITY"; - readonly Severity: "SEVERITY"; - readonly Version: "VERSION"; -}; -export type PatchFilterKey = - (typeof PatchFilterKey)[keyof typeof PatchFilterKey]; -export interface PatchFilter { - Key: PatchFilterKey | undefined; - Values: string[] | undefined; -} -export interface PatchFilterGroup { - PatchFilters: PatchFilter[] | undefined; -} -export interface PatchRule { - PatchFilterGroup: PatchFilterGroup | undefined; - ComplianceLevel?: PatchComplianceLevel; - ApproveAfterDays?: number; - ApproveUntilDate?: string; - EnableNonSecurity?: boolean; -} -export interface PatchRuleGroup { - PatchRules: PatchRule[] | undefined; -} -export declare const OperatingSystem: { - readonly AlmaLinux: "ALMA_LINUX"; - readonly AmazonLinux: "AMAZON_LINUX"; - readonly AmazonLinux2: "AMAZON_LINUX_2"; - readonly AmazonLinux2022: "AMAZON_LINUX_2022"; - readonly AmazonLinux2023: "AMAZON_LINUX_2023"; - readonly CentOS: "CENTOS"; - readonly Debian: "DEBIAN"; - readonly MacOS: "MACOS"; - readonly OracleLinux: "ORACLE_LINUX"; - readonly Raspbian: "RASPBIAN"; - readonly RedhatEnterpriseLinux: "REDHAT_ENTERPRISE_LINUX"; - readonly Rocky_Linux: "ROCKY_LINUX"; - readonly Suse: "SUSE"; - readonly Ubuntu: "UBUNTU"; - readonly Windows: "WINDOWS"; -}; -export type OperatingSystem = - (typeof OperatingSystem)[keyof typeof OperatingSystem]; -export declare const PatchAction: { - readonly AllowAsDependency: "ALLOW_AS_DEPENDENCY"; - readonly Block: "BLOCK"; -}; -export type PatchAction = (typeof PatchAction)[keyof typeof PatchAction]; -export interface PatchSource { - Name: string | undefined; - Products: string[] | undefined; - Configuration: string | undefined; -} -export interface CreatePatchBaselineRequest { - OperatingSystem?: OperatingSystem; - Name: string | undefined; - GlobalFilters?: PatchFilterGroup; - ApprovalRules?: PatchRuleGroup; - ApprovedPatches?: string[]; - ApprovedPatchesComplianceLevel?: PatchComplianceLevel; - ApprovedPatchesEnableNonSecurity?: boolean; - RejectedPatches?: string[]; - RejectedPatchesAction?: PatchAction; - Description?: string; - Sources?: PatchSource[]; - ClientToken?: string; - Tags?: Tag[]; -} -export interface CreatePatchBaselineResult { - BaselineId?: string; -} -export interface ResourceDataSyncDestinationDataSharing { - DestinationDataSharingType?: string; -} -export declare const ResourceDataSyncS3Format: { - readonly JSON_SERDE: "JsonSerDe"; -}; -export type ResourceDataSyncS3Format = - (typeof ResourceDataSyncS3Format)[keyof typeof ResourceDataSyncS3Format]; -export interface ResourceDataSyncS3Destination { - BucketName: string | undefined; - Prefix?: string; - SyncFormat: ResourceDataSyncS3Format | undefined; - Region: string | undefined; - AWSKMSKeyARN?: string; - DestinationDataSharing?: ResourceDataSyncDestinationDataSharing; -} -export interface ResourceDataSyncOrganizationalUnit { - OrganizationalUnitId?: string; -} -export interface ResourceDataSyncAwsOrganizationsSource { - OrganizationSourceType: string | undefined; - OrganizationalUnits?: ResourceDataSyncOrganizationalUnit[]; -} -export interface ResourceDataSyncSource { - SourceType: string | undefined; - AwsOrganizationsSource?: ResourceDataSyncAwsOrganizationsSource; - SourceRegions: string[] | undefined; - IncludeFutureRegions?: boolean; - EnableAllOpsDataSources?: boolean; -} -export interface CreateResourceDataSyncRequest { - SyncName: string | undefined; - S3Destination?: ResourceDataSyncS3Destination; - SyncType?: string; - SyncSource?: ResourceDataSyncSource; -} -export interface CreateResourceDataSyncResult {} -export declare class ResourceDataSyncAlreadyExistsException extends __BaseException { - readonly name: "ResourceDataSyncAlreadyExistsException"; - readonly $fault: "client"; - SyncName?: string; - constructor( - opts: __ExceptionOptionType< - ResourceDataSyncAlreadyExistsException, - __BaseException - > - ); -} -export declare class ResourceDataSyncCountExceededException extends __BaseException { - readonly name: "ResourceDataSyncCountExceededException"; - readonly $fault: "client"; - Message?: string; - constructor( - opts: __ExceptionOptionType< - ResourceDataSyncCountExceededException, - __BaseException - > - ); -} -export declare class ResourceDataSyncInvalidConfigurationException extends __BaseException { - readonly name: "ResourceDataSyncInvalidConfigurationException"; - readonly $fault: "client"; - Message?: string; - constructor( - opts: __ExceptionOptionType< - ResourceDataSyncInvalidConfigurationException, - __BaseException - > - ); -} -export interface DeleteActivationRequest { - ActivationId: string | undefined; -} -export interface DeleteActivationResult {} -export declare class InvalidActivation extends __BaseException { - readonly name: "InvalidActivation"; - readonly $fault: "client"; - Message?: string; - constructor(opts: __ExceptionOptionType); -} -export declare class InvalidActivationId extends __BaseException { - readonly name: "InvalidActivationId"; - readonly $fault: "client"; - Message?: string; - constructor( - opts: __ExceptionOptionType - ); -} -export declare class AssociationDoesNotExist extends __BaseException { - readonly name: "AssociationDoesNotExist"; - readonly $fault: "client"; - Message?: string; - constructor( - opts: __ExceptionOptionType - ); -} -export interface DeleteAssociationRequest { - Name?: string; - InstanceId?: string; - AssociationId?: string; -} -export interface DeleteAssociationResult {} -export declare class AssociatedInstances extends __BaseException { - readonly name: "AssociatedInstances"; - readonly $fault: "client"; - constructor( - opts: __ExceptionOptionType - ); -} -export interface DeleteDocumentRequest { - Name: string | undefined; - DocumentVersion?: string; - VersionName?: string; - Force?: boolean; -} -export interface DeleteDocumentResult {} -export declare class InvalidDocumentOperation extends __BaseException { - readonly name: "InvalidDocumentOperation"; - readonly $fault: "client"; - Message?: string; - constructor( - opts: __ExceptionOptionType - ); -} -export declare const InventorySchemaDeleteOption: { - readonly DELETE_SCHEMA: "DeleteSchema"; - readonly DISABLE_SCHEMA: "DisableSchema"; -}; -export type InventorySchemaDeleteOption = - (typeof InventorySchemaDeleteOption)[keyof typeof InventorySchemaDeleteOption]; -export interface DeleteInventoryRequest { - TypeName: string | undefined; - SchemaDeleteOption?: InventorySchemaDeleteOption; - DryRun?: boolean; - ClientToken?: string; -} -export interface InventoryDeletionSummaryItem { - Version?: string; - Count?: number; - RemainingCount?: number; -} -export interface InventoryDeletionSummary { - TotalCount?: number; - RemainingCount?: number; - SummaryItems?: InventoryDeletionSummaryItem[]; -} -export interface DeleteInventoryResult { - DeletionId?: string; - TypeName?: string; - DeletionSummary?: InventoryDeletionSummary; -} -export declare class InvalidDeleteInventoryParametersException extends __BaseException { - readonly name: "InvalidDeleteInventoryParametersException"; - readonly $fault: "client"; - Message?: string; - constructor( - opts: __ExceptionOptionType< - InvalidDeleteInventoryParametersException, - __BaseException - > - ); -} -export declare class InvalidInventoryRequestException extends __BaseException { - readonly name: "InvalidInventoryRequestException"; - readonly $fault: "client"; - Message?: string; - constructor( - opts: __ExceptionOptionType< - InvalidInventoryRequestException, - __BaseException - > - ); -} -export declare class InvalidOptionException extends __BaseException { - readonly name: "InvalidOptionException"; - readonly $fault: "client"; - Message?: string; - constructor( - opts: __ExceptionOptionType - ); -} -export declare class InvalidTypeNameException extends __BaseException { - readonly name: "InvalidTypeNameException"; - readonly $fault: "client"; - Message?: string; - constructor( - opts: __ExceptionOptionType - ); -} -export interface DeleteMaintenanceWindowRequest { - WindowId: string | undefined; -} -export interface DeleteMaintenanceWindowResult { - WindowId?: string; -} -export interface DeleteOpsItemRequest { - OpsItemId: string | undefined; -} -export interface DeleteOpsItemResponse {} -export interface DeleteOpsMetadataRequest { - OpsMetadataArn: string | undefined; -} -export interface DeleteOpsMetadataResult {} -export declare class OpsMetadataNotFoundException extends __BaseException { - readonly name: "OpsMetadataNotFoundException"; - readonly $fault: "client"; - constructor( - opts: __ExceptionOptionType - ); -} -export interface DeleteParameterRequest { - Name: string | undefined; -} -export interface DeleteParameterResult {} -export declare class ParameterNotFound extends __BaseException { - readonly name: "ParameterNotFound"; - readonly $fault: "client"; - constructor(opts: __ExceptionOptionType); -} -export interface DeleteParametersRequest { - Names: string[] | undefined; -} -export interface DeleteParametersResult { - DeletedParameters?: string[]; - InvalidParameters?: string[]; -} -export interface DeletePatchBaselineRequest { - BaselineId: string | undefined; -} -export interface DeletePatchBaselineResult { - BaselineId?: string; -} -export declare class ResourceInUseException extends __BaseException { - readonly name: "ResourceInUseException"; - readonly $fault: "client"; - Message?: string; - constructor( - opts: __ExceptionOptionType - ); -} -export interface DeleteResourceDataSyncRequest { - SyncName: string | undefined; - SyncType?: string; -} -export interface DeleteResourceDataSyncResult {} -export declare class ResourceDataSyncNotFoundException extends __BaseException { - readonly name: "ResourceDataSyncNotFoundException"; - readonly $fault: "client"; - SyncName?: string; - SyncType?: string; - Message?: string; - constructor( - opts: __ExceptionOptionType< - ResourceDataSyncNotFoundException, - __BaseException - > - ); -} -export interface DeleteResourcePolicyRequest { - ResourceArn: string | undefined; - PolicyId: string | undefined; - PolicyHash: string | undefined; -} -export interface DeleteResourcePolicyResponse {} -export declare class ResourcePolicyConflictException extends __BaseException { - readonly name: "ResourcePolicyConflictException"; - readonly $fault: "client"; - Message?: string; - constructor( - opts: __ExceptionOptionType< - ResourcePolicyConflictException, - __BaseException - > - ); -} -export declare class ResourcePolicyInvalidParameterException extends __BaseException { - readonly name: "ResourcePolicyInvalidParameterException"; - readonly $fault: "client"; - ParameterNames?: string[]; - Message?: string; - constructor( - opts: __ExceptionOptionType< - ResourcePolicyInvalidParameterException, - __BaseException - > - ); -} -export interface DeregisterManagedInstanceRequest { - InstanceId: string | undefined; -} -export interface DeregisterManagedInstanceResult {} -export interface DeregisterPatchBaselineForPatchGroupRequest { - BaselineId: string | undefined; - PatchGroup: string | undefined; -} -export interface DeregisterPatchBaselineForPatchGroupResult { - BaselineId?: string; - PatchGroup?: string; -} -export interface DeregisterTargetFromMaintenanceWindowRequest { - WindowId: string | undefined; - WindowTargetId: string | undefined; - Safe?: boolean; -} -export interface DeregisterTargetFromMaintenanceWindowResult { - WindowId?: string; - WindowTargetId?: string; -} -export declare class TargetInUseException extends __BaseException { - readonly name: "TargetInUseException"; - readonly $fault: "client"; - Message?: string; - constructor( - opts: __ExceptionOptionType - ); -} -export interface DeregisterTaskFromMaintenanceWindowRequest { - WindowId: string | undefined; - WindowTaskId: string | undefined; -} -export interface DeregisterTaskFromMaintenanceWindowResult { - WindowId?: string; - WindowTaskId?: string; -} -export declare const DescribeActivationsFilterKeys: { - readonly ACTIVATION_IDS: "ActivationIds"; - readonly DEFAULT_INSTANCE_NAME: "DefaultInstanceName"; - readonly IAM_ROLE: "IamRole"; -}; -export type DescribeActivationsFilterKeys = - (typeof DescribeActivationsFilterKeys)[keyof typeof DescribeActivationsFilterKeys]; -export interface DescribeActivationsFilter { - FilterKey?: DescribeActivationsFilterKeys; - FilterValues?: string[]; -} -export interface DescribeActivationsRequest { - Filters?: DescribeActivationsFilter[]; - MaxResults?: number; - NextToken?: string; -} -export interface DescribeActivationsResult { - ActivationList?: Activation[]; - NextToken?: string; -} -export declare class InvalidFilter extends __BaseException { - readonly name: "InvalidFilter"; - readonly $fault: "client"; - Message?: string; - constructor(opts: __ExceptionOptionType); -} -export declare class InvalidNextToken extends __BaseException { - readonly name: "InvalidNextToken"; - readonly $fault: "client"; - Message?: string; - constructor(opts: __ExceptionOptionType); -} -export interface DescribeAssociationRequest { - Name?: string; - InstanceId?: string; - AssociationId?: string; - AssociationVersion?: string; -} -export interface DescribeAssociationResult { - AssociationDescription?: AssociationDescription; -} -export declare class InvalidAssociationVersion extends __BaseException { - readonly name: "InvalidAssociationVersion"; - readonly $fault: "client"; - Message?: string; - constructor( - opts: __ExceptionOptionType - ); -} -export declare const AssociationExecutionFilterKey: { - readonly CreatedTime: "CreatedTime"; - readonly ExecutionId: "ExecutionId"; - readonly Status: "Status"; -}; -export type AssociationExecutionFilterKey = - (typeof AssociationExecutionFilterKey)[keyof typeof AssociationExecutionFilterKey]; -export declare const AssociationFilterOperatorType: { - readonly Equal: "EQUAL"; - readonly GreaterThan: "GREATER_THAN"; - readonly LessThan: "LESS_THAN"; -}; -export type AssociationFilterOperatorType = - (typeof AssociationFilterOperatorType)[keyof typeof AssociationFilterOperatorType]; -export interface AssociationExecutionFilter { - Key: AssociationExecutionFilterKey | undefined; - Value: string | undefined; - Type: AssociationFilterOperatorType | undefined; -} -export interface DescribeAssociationExecutionsRequest { - AssociationId: string | undefined; - Filters?: AssociationExecutionFilter[]; - MaxResults?: number; - NextToken?: string; -} -export interface AssociationExecution { - AssociationId?: string; - AssociationVersion?: string; - ExecutionId?: string; - Status?: string; - DetailedStatus?: string; - CreatedTime?: Date; - LastExecutionDate?: Date; - ResourceCountByStatus?: string; - AlarmConfiguration?: AlarmConfiguration; - TriggeredAlarms?: AlarmStateInformation[]; -} -export interface DescribeAssociationExecutionsResult { - AssociationExecutions?: AssociationExecution[]; - NextToken?: string; -} -export declare class AssociationExecutionDoesNotExist extends __BaseException { - readonly name: "AssociationExecutionDoesNotExist"; - readonly $fault: "client"; - Message?: string; - constructor( - opts: __ExceptionOptionType< - AssociationExecutionDoesNotExist, - __BaseException - > - ); -} -export declare const AssociationExecutionTargetsFilterKey: { - readonly ResourceId: "ResourceId"; - readonly ResourceType: "ResourceType"; - readonly Status: "Status"; -}; -export type AssociationExecutionTargetsFilterKey = - (typeof AssociationExecutionTargetsFilterKey)[keyof typeof AssociationExecutionTargetsFilterKey]; -export interface AssociationExecutionTargetsFilter { - Key: AssociationExecutionTargetsFilterKey | undefined; - Value: string | undefined; -} -export interface DescribeAssociationExecutionTargetsRequest { - AssociationId: string | undefined; - ExecutionId: string | undefined; - Filters?: AssociationExecutionTargetsFilter[]; - MaxResults?: number; - NextToken?: string; -} -export interface OutputSource { - OutputSourceId?: string; - OutputSourceType?: string; -} -export interface AssociationExecutionTarget { - AssociationId?: string; - AssociationVersion?: string; - ExecutionId?: string; - ResourceId?: string; - ResourceType?: string; - Status?: string; - DetailedStatus?: string; - LastExecutionDate?: Date; - OutputSource?: OutputSource; -} -export interface DescribeAssociationExecutionTargetsResult { - AssociationExecutionTargets?: AssociationExecutionTarget[]; - NextToken?: string; -} -export declare const AutomationExecutionFilterKey: { - readonly AUTOMATION_SUBTYPE: "AutomationSubtype"; - readonly AUTOMATION_TYPE: "AutomationType"; - readonly CURRENT_ACTION: "CurrentAction"; - readonly DOCUMENT_NAME_PREFIX: "DocumentNamePrefix"; - readonly EXECUTION_ID: "ExecutionId"; - readonly EXECUTION_STATUS: "ExecutionStatus"; - readonly OPS_ITEM_ID: "OpsItemId"; - readonly PARENT_EXECUTION_ID: "ParentExecutionId"; - readonly START_TIME_AFTER: "StartTimeAfter"; - readonly START_TIME_BEFORE: "StartTimeBefore"; - readonly TAG_KEY: "TagKey"; - readonly TARGET_RESOURCE_GROUP: "TargetResourceGroup"; -}; -export type AutomationExecutionFilterKey = - (typeof AutomationExecutionFilterKey)[keyof typeof AutomationExecutionFilterKey]; -export interface AutomationExecutionFilter { - Key: AutomationExecutionFilterKey | undefined; - Values: string[] | undefined; -} -export interface DescribeAutomationExecutionsRequest { - Filters?: AutomationExecutionFilter[]; - MaxResults?: number; - NextToken?: string; -} -export declare const AutomationExecutionStatus: { - readonly APPROVED: "Approved"; - readonly CANCELLED: "Cancelled"; - readonly CANCELLING: "Cancelling"; - readonly CHANGE_CALENDAR_OVERRIDE_APPROVED: "ChangeCalendarOverrideApproved"; - readonly CHANGE_CALENDAR_OVERRIDE_REJECTED: "ChangeCalendarOverrideRejected"; - readonly COMPLETED_WITH_FAILURE: "CompletedWithFailure"; - readonly COMPLETED_WITH_SUCCESS: "CompletedWithSuccess"; - readonly EXITED: "Exited"; - readonly FAILED: "Failed"; - readonly INPROGRESS: "InProgress"; - readonly PENDING: "Pending"; - readonly PENDING_APPROVAL: "PendingApproval"; - readonly PENDING_CHANGE_CALENDAR_OVERRIDE: "PendingChangeCalendarOverride"; - readonly REJECTED: "Rejected"; - readonly RUNBOOK_INPROGRESS: "RunbookInProgress"; - readonly SCHEDULED: "Scheduled"; - readonly SUCCESS: "Success"; - readonly TIMEDOUT: "TimedOut"; - readonly WAITING: "Waiting"; -}; -export type AutomationExecutionStatus = - (typeof AutomationExecutionStatus)[keyof typeof AutomationExecutionStatus]; -export declare const AutomationSubtype: { - readonly ChangeRequest: "ChangeRequest"; -}; -export type AutomationSubtype = - (typeof AutomationSubtype)[keyof typeof AutomationSubtype]; -export declare const AutomationType: { - readonly CrossAccount: "CrossAccount"; - readonly Local: "Local"; -}; -export type AutomationType = - (typeof AutomationType)[keyof typeof AutomationType]; -export declare const ExecutionMode: { - readonly Auto: "Auto"; - readonly Interactive: "Interactive"; -}; -export type ExecutionMode = (typeof ExecutionMode)[keyof typeof ExecutionMode]; -export interface ResolvedTargets { - ParameterValues?: string[]; - Truncated?: boolean; -} -export interface Runbook { - DocumentName: string | undefined; - DocumentVersion?: string; - Parameters?: Record; - TargetParameterName?: string; - Targets?: Target[]; - TargetMaps?: Record[]; - MaxConcurrency?: string; - MaxErrors?: string; - TargetLocations?: TargetLocation[]; -} -export interface AutomationExecutionMetadata { - AutomationExecutionId?: string; - DocumentName?: string; - DocumentVersion?: string; - AutomationExecutionStatus?: AutomationExecutionStatus; - ExecutionStartTime?: Date; - ExecutionEndTime?: Date; - ExecutedBy?: string; - LogFile?: string; - Outputs?: Record; - Mode?: ExecutionMode; - ParentAutomationExecutionId?: string; - CurrentStepName?: string; - CurrentAction?: string; - FailureMessage?: string; - TargetParameterName?: string; - Targets?: Target[]; - TargetMaps?: Record[]; - ResolvedTargets?: ResolvedTargets; - MaxConcurrency?: string; - MaxErrors?: string; - Target?: string; - AutomationType?: AutomationType; - AlarmConfiguration?: AlarmConfiguration; - TriggeredAlarms?: AlarmStateInformation[]; - AutomationSubtype?: AutomationSubtype; - ScheduledTime?: Date; - Runbooks?: Runbook[]; - OpsItemId?: string; - AssociationId?: string; - ChangeRequestName?: string; -} -export interface DescribeAutomationExecutionsResult { - AutomationExecutionMetadataList?: AutomationExecutionMetadata[]; - NextToken?: string; -} -export declare class InvalidFilterKey extends __BaseException { - readonly name: "InvalidFilterKey"; - readonly $fault: "client"; - constructor(opts: __ExceptionOptionType); -} -export declare class InvalidFilterValue extends __BaseException { - readonly name: "InvalidFilterValue"; - readonly $fault: "client"; - Message?: string; - constructor(opts: __ExceptionOptionType); -} -export declare class AutomationExecutionNotFoundException extends __BaseException { - readonly name: "AutomationExecutionNotFoundException"; - readonly $fault: "client"; - Message?: string; - constructor( - opts: __ExceptionOptionType< - AutomationExecutionNotFoundException, - __BaseException - > - ); -} -export declare const StepExecutionFilterKey: { - readonly ACTION: "Action"; - readonly PARENT_STEP_EXECUTION_ID: "ParentStepExecutionId"; - readonly PARENT_STEP_ITERATION: "ParentStepIteration"; - readonly PARENT_STEP_ITERATOR_VALUE: "ParentStepIteratorValue"; - readonly START_TIME_AFTER: "StartTimeAfter"; - readonly START_TIME_BEFORE: "StartTimeBefore"; - readonly STEP_EXECUTION_ID: "StepExecutionId"; - readonly STEP_EXECUTION_STATUS: "StepExecutionStatus"; - readonly STEP_NAME: "StepName"; -}; -export type StepExecutionFilterKey = - (typeof StepExecutionFilterKey)[keyof typeof StepExecutionFilterKey]; -export interface StepExecutionFilter { - Key: StepExecutionFilterKey | undefined; - Values: string[] | undefined; -} -export interface DescribeAutomationStepExecutionsRequest { - AutomationExecutionId: string | undefined; - Filters?: StepExecutionFilter[]; - NextToken?: string; - MaxResults?: number; - ReverseOrder?: boolean; -} -export interface FailureDetails { - FailureStage?: string; - FailureType?: string; - Details?: Record; -} -export interface ParentStepDetails { - StepExecutionId?: string; - StepName?: string; - Action?: string; - Iteration?: number; - IteratorValue?: string; -} -export interface StepExecution { - StepName?: string; - Action?: string; - TimeoutSeconds?: number; - OnFailure?: string; - MaxAttempts?: number; - ExecutionStartTime?: Date; - ExecutionEndTime?: Date; - StepStatus?: AutomationExecutionStatus; - ResponseCode?: string; - Inputs?: Record; - Outputs?: Record; - Response?: string; - FailureMessage?: string; - FailureDetails?: FailureDetails; - StepExecutionId?: string; - OverriddenParameters?: Record; - IsEnd?: boolean; - NextStep?: string; - IsCritical?: boolean; - ValidNextSteps?: string[]; - Targets?: Target[]; - TargetLocation?: TargetLocation; - TriggeredAlarms?: AlarmStateInformation[]; - ParentStepDetails?: ParentStepDetails; -} -export interface DescribeAutomationStepExecutionsResult { - StepExecutions?: StepExecution[]; - NextToken?: string; -} -export interface PatchOrchestratorFilter { - Key?: string; - Values?: string[]; -} -export interface DescribeAvailablePatchesRequest { - Filters?: PatchOrchestratorFilter[]; - MaxResults?: number; - NextToken?: string; -} -export interface Patch { - Id?: string; - ReleaseDate?: Date; - Title?: string; - Description?: string; - ContentUrl?: string; - Vendor?: string; - ProductFamily?: string; - Product?: string; - Classification?: string; - MsrcSeverity?: string; - KbNumber?: string; - MsrcNumber?: string; - Language?: string; - AdvisoryIds?: string[]; - BugzillaIds?: string[]; - CVEIds?: string[]; - Name?: string; - Epoch?: number; - Version?: string; - Release?: string; - Arch?: string; - Severity?: string; - Repository?: string; -} -export interface DescribeAvailablePatchesResult { - Patches?: Patch[]; - NextToken?: string; -} -export interface DescribeDocumentRequest { - Name: string | undefined; - DocumentVersion?: string; - VersionName?: string; -} -export interface DescribeDocumentResult { - Document?: DocumentDescription; -} -export declare const DocumentPermissionType: { - readonly SHARE: "Share"; -}; -export type DocumentPermissionType = - (typeof DocumentPermissionType)[keyof typeof DocumentPermissionType]; -export interface DescribeDocumentPermissionRequest { - Name: string | undefined; - PermissionType: DocumentPermissionType | undefined; - MaxResults?: number; - NextToken?: string; -} -export interface DescribeDocumentPermissionResponse { - AccountIds?: string[]; - AccountSharingInfoList?: AccountSharingInfo[]; - NextToken?: string; -} -export declare class InvalidPermissionType extends __BaseException { - readonly name: "InvalidPermissionType"; - readonly $fault: "client"; - Message?: string; - constructor( - opts: __ExceptionOptionType - ); -} -export interface DescribeEffectiveInstanceAssociationsRequest { - InstanceId: string | undefined; - MaxResults?: number; - NextToken?: string; -} -export interface InstanceAssociation { - AssociationId?: string; - InstanceId?: string; - Content?: string; - AssociationVersion?: string; -} -export interface DescribeEffectiveInstanceAssociationsResult { - Associations?: InstanceAssociation[]; - NextToken?: string; -} -export interface DescribeEffectivePatchesForPatchBaselineRequest { - BaselineId: string | undefined; - MaxResults?: number; - NextToken?: string; -} -export declare const PatchDeploymentStatus: { - readonly Approved: "APPROVED"; - readonly ExplicitApproved: "EXPLICIT_APPROVED"; - readonly ExplicitRejected: "EXPLICIT_REJECTED"; - readonly PendingApproval: "PENDING_APPROVAL"; -}; -export type PatchDeploymentStatus = - (typeof PatchDeploymentStatus)[keyof typeof PatchDeploymentStatus]; -export interface PatchStatus { - DeploymentStatus?: PatchDeploymentStatus; - ComplianceLevel?: PatchComplianceLevel; - ApprovalDate?: Date; -} -export interface EffectivePatch { - Patch?: Patch; - PatchStatus?: PatchStatus; -} -export interface DescribeEffectivePatchesForPatchBaselineResult { - EffectivePatches?: EffectivePatch[]; - NextToken?: string; -} -export declare class UnsupportedOperatingSystem extends __BaseException { - readonly name: "UnsupportedOperatingSystem"; - readonly $fault: "client"; - Message?: string; - constructor( - opts: __ExceptionOptionType - ); -} -export interface DescribeInstanceAssociationsStatusRequest { - InstanceId: string | undefined; - MaxResults?: number; - NextToken?: string; -} -export interface S3OutputUrl { - OutputUrl?: string; -} -export interface InstanceAssociationOutputUrl { - S3OutputUrl?: S3OutputUrl; -} -export interface InstanceAssociationStatusInfo { - AssociationId?: string; - Name?: string; - DocumentVersion?: string; - AssociationVersion?: string; - InstanceId?: string; - ExecutionDate?: Date; - Status?: string; - DetailedStatus?: string; - ExecutionSummary?: string; - ErrorCode?: string; - OutputUrl?: InstanceAssociationOutputUrl; - AssociationName?: string; -} -export interface DescribeInstanceAssociationsStatusResult { - InstanceAssociationStatusInfos?: InstanceAssociationStatusInfo[]; - NextToken?: string; -} -export interface InstanceInformationStringFilter { - Key: string | undefined; - Values: string[] | undefined; -} -export declare const InstanceInformationFilterKey: { - readonly ACTIVATION_IDS: "ActivationIds"; - readonly AGENT_VERSION: "AgentVersion"; - readonly ASSOCIATION_STATUS: "AssociationStatus"; - readonly IAM_ROLE: "IamRole"; - readonly INSTANCE_IDS: "InstanceIds"; - readonly PING_STATUS: "PingStatus"; - readonly PLATFORM_TYPES: "PlatformTypes"; - readonly RESOURCE_TYPE: "ResourceType"; -}; -export type InstanceInformationFilterKey = - (typeof InstanceInformationFilterKey)[keyof typeof InstanceInformationFilterKey]; -export interface InstanceInformationFilter { - key: InstanceInformationFilterKey | undefined; - valueSet: string[] | undefined; -} -export interface DescribeInstanceInformationRequest { - InstanceInformationFilterList?: InstanceInformationFilter[]; - Filters?: InstanceInformationStringFilter[]; - MaxResults?: number; - NextToken?: string; -} -export interface InstanceAggregatedAssociationOverview { - DetailedStatus?: string; - InstanceAssociationStatusAggregatedCount?: Record; -} -export declare const PingStatus: { - readonly CONNECTION_LOST: "ConnectionLost"; - readonly INACTIVE: "Inactive"; - readonly ONLINE: "Online"; -}; -export type PingStatus = (typeof PingStatus)[keyof typeof PingStatus]; -export declare const ResourceType: { - readonly EC2_INSTANCE: "EC2Instance"; - readonly MANAGED_INSTANCE: "ManagedInstance"; -}; -export type ResourceType = (typeof ResourceType)[keyof typeof ResourceType]; -export declare const SourceType: { - readonly AWS_EC2_INSTANCE: "AWS::EC2::Instance"; - readonly AWS_IOT_THING: "AWS::IoT::Thing"; - readonly AWS_SSM_MANAGEDINSTANCE: "AWS::SSM::ManagedInstance"; -}; -export type SourceType = (typeof SourceType)[keyof typeof SourceType]; -export interface InstanceInformation { - InstanceId?: string; - PingStatus?: PingStatus; - LastPingDateTime?: Date; - AgentVersion?: string; - IsLatestVersion?: boolean; - PlatformType?: PlatformType; - PlatformName?: string; - PlatformVersion?: string; - ActivationId?: string; - IamRole?: string; - RegistrationDate?: Date; - ResourceType?: ResourceType; - Name?: string; - IPAddress?: string; - ComputerName?: string; - AssociationStatus?: string; - LastAssociationExecutionDate?: Date; - LastSuccessfulAssociationExecutionDate?: Date; - AssociationOverview?: InstanceAggregatedAssociationOverview; - SourceId?: string; - SourceType?: SourceType; -} -export interface DescribeInstanceInformationResult { - InstanceInformationList?: InstanceInformation[]; - NextToken?: string; -} -export declare class InvalidInstanceInformationFilterValue extends __BaseException { - readonly name: "InvalidInstanceInformationFilterValue"; - readonly $fault: "client"; - constructor( - opts: __ExceptionOptionType< - InvalidInstanceInformationFilterValue, - __BaseException - > - ); -} -export interface DescribeInstancePatchesRequest { - InstanceId: string | undefined; - Filters?: PatchOrchestratorFilter[]; - NextToken?: string; - MaxResults?: number; -} -export declare const PatchComplianceDataState: { - readonly Failed: "FAILED"; - readonly Installed: "INSTALLED"; - readonly InstalledOther: "INSTALLED_OTHER"; - readonly InstalledPendingReboot: "INSTALLED_PENDING_REBOOT"; - readonly InstalledRejected: "INSTALLED_REJECTED"; - readonly Missing: "MISSING"; - readonly NotApplicable: "NOT_APPLICABLE"; -}; -export type PatchComplianceDataState = - (typeof PatchComplianceDataState)[keyof typeof PatchComplianceDataState]; -export interface PatchComplianceData { - Title: string | undefined; - KBId: string | undefined; - Classification: string | undefined; - Severity: string | undefined; - State: PatchComplianceDataState | undefined; - InstalledTime: Date | undefined; - CVEIds?: string; -} -export interface DescribeInstancePatchesResult { - Patches?: PatchComplianceData[]; - NextToken?: string; -} -export interface DescribeInstancePatchStatesRequest { - InstanceIds: string[] | undefined; - NextToken?: string; - MaxResults?: number; -} -export declare const PatchOperationType: { - readonly INSTALL: "Install"; - readonly SCAN: "Scan"; -}; -export type PatchOperationType = - (typeof PatchOperationType)[keyof typeof PatchOperationType]; -export declare const RebootOption: { - readonly NO_REBOOT: "NoReboot"; - readonly REBOOT_IF_NEEDED: "RebootIfNeeded"; -}; -export type RebootOption = (typeof RebootOption)[keyof typeof RebootOption]; -export interface InstancePatchState { - InstanceId: string | undefined; - PatchGroup: string | undefined; - BaselineId: string | undefined; - SnapshotId?: string; - InstallOverrideList?: string; - OwnerInformation?: string; - InstalledCount?: number; - InstalledOtherCount?: number; - InstalledPendingRebootCount?: number; - InstalledRejectedCount?: number; - MissingCount?: number; - FailedCount?: number; - UnreportedNotApplicableCount?: number; - NotApplicableCount?: number; - OperationStartTime: Date | undefined; - OperationEndTime: Date | undefined; - Operation: PatchOperationType | undefined; - LastNoRebootInstallOperationTime?: Date; - RebootOption?: RebootOption; - CriticalNonCompliantCount?: number; - SecurityNonCompliantCount?: number; - OtherNonCompliantCount?: number; -} -export interface DescribeInstancePatchStatesResult { - InstancePatchStates?: InstancePatchState[]; - NextToken?: string; -} -export declare const InstancePatchStateOperatorType: { - readonly EQUAL: "Equal"; - readonly GREATER_THAN: "GreaterThan"; - readonly LESS_THAN: "LessThan"; - readonly NOT_EQUAL: "NotEqual"; -}; -export type InstancePatchStateOperatorType = - (typeof InstancePatchStateOperatorType)[keyof typeof InstancePatchStateOperatorType]; -export interface InstancePatchStateFilter { - Key: string | undefined; - Values: string[] | undefined; - Type: InstancePatchStateOperatorType | undefined; -} -export interface DescribeInstancePatchStatesForPatchGroupRequest { - PatchGroup: string | undefined; - Filters?: InstancePatchStateFilter[]; - NextToken?: string; - MaxResults?: number; -} -export interface DescribeInstancePatchStatesForPatchGroupResult { - InstancePatchStates?: InstancePatchState[]; - NextToken?: string; -} -export interface DescribeInventoryDeletionsRequest { - DeletionId?: string; - NextToken?: string; - MaxResults?: number; -} -export declare const InventoryDeletionStatus: { - readonly COMPLETE: "Complete"; - readonly IN_PROGRESS: "InProgress"; -}; -export type InventoryDeletionStatus = - (typeof InventoryDeletionStatus)[keyof typeof InventoryDeletionStatus]; -export interface InventoryDeletionStatusItem { - DeletionId?: string; - TypeName?: string; - DeletionStartTime?: Date; - LastStatus?: InventoryDeletionStatus; - LastStatusMessage?: string; - DeletionSummary?: InventoryDeletionSummary; - LastStatusUpdateTime?: Date; -} -export interface DescribeInventoryDeletionsResult { - InventoryDeletions?: InventoryDeletionStatusItem[]; - NextToken?: string; -} -export declare class InvalidDeletionIdException extends __BaseException { - readonly name: "InvalidDeletionIdException"; - readonly $fault: "client"; - Message?: string; - constructor( - opts: __ExceptionOptionType - ); -} -export interface MaintenanceWindowFilter { - Key?: string; - Values?: string[]; -} -export interface DescribeMaintenanceWindowExecutionsRequest { - WindowId: string | undefined; - Filters?: MaintenanceWindowFilter[]; - MaxResults?: number; - NextToken?: string; -} -export declare const MaintenanceWindowExecutionStatus: { - readonly Cancelled: "CANCELLED"; - readonly Cancelling: "CANCELLING"; - readonly Failed: "FAILED"; - readonly InProgress: "IN_PROGRESS"; - readonly Pending: "PENDING"; - readonly SkippedOverlapping: "SKIPPED_OVERLAPPING"; - readonly Success: "SUCCESS"; - readonly TimedOut: "TIMED_OUT"; -}; -export type MaintenanceWindowExecutionStatus = - (typeof MaintenanceWindowExecutionStatus)[keyof typeof MaintenanceWindowExecutionStatus]; -export interface MaintenanceWindowExecution { - WindowId?: string; - WindowExecutionId?: string; - Status?: MaintenanceWindowExecutionStatus; - StatusDetails?: string; - StartTime?: Date; - EndTime?: Date; -} -export interface DescribeMaintenanceWindowExecutionsResult { - WindowExecutions?: MaintenanceWindowExecution[]; - NextToken?: string; -} -export interface DescribeMaintenanceWindowExecutionTaskInvocationsRequest { - WindowExecutionId: string | undefined; - TaskId: string | undefined; - Filters?: MaintenanceWindowFilter[]; - MaxResults?: number; - NextToken?: string; -} -export declare const MaintenanceWindowTaskType: { - readonly Automation: "AUTOMATION"; - readonly Lambda: "LAMBDA"; - readonly RunCommand: "RUN_COMMAND"; - readonly StepFunctions: "STEP_FUNCTIONS"; -}; -export type MaintenanceWindowTaskType = - (typeof MaintenanceWindowTaskType)[keyof typeof MaintenanceWindowTaskType]; -export interface MaintenanceWindowExecutionTaskInvocationIdentity { - WindowExecutionId?: string; - TaskExecutionId?: string; - InvocationId?: string; - ExecutionId?: string; - TaskType?: MaintenanceWindowTaskType; - Parameters?: string; - Status?: MaintenanceWindowExecutionStatus; - StatusDetails?: string; - StartTime?: Date; - EndTime?: Date; - OwnerInformation?: string; - WindowTargetId?: string; -} -export interface DescribeMaintenanceWindowExecutionTaskInvocationsResult { - WindowExecutionTaskInvocationIdentities?: MaintenanceWindowExecutionTaskInvocationIdentity[]; - NextToken?: string; -} -export interface DescribeMaintenanceWindowExecutionTasksRequest { - WindowExecutionId: string | undefined; - Filters?: MaintenanceWindowFilter[]; - MaxResults?: number; - NextToken?: string; -} -export interface MaintenanceWindowExecutionTaskIdentity { - WindowExecutionId?: string; - TaskExecutionId?: string; - Status?: MaintenanceWindowExecutionStatus; - StatusDetails?: string; - StartTime?: Date; - EndTime?: Date; - TaskArn?: string; - TaskType?: MaintenanceWindowTaskType; - AlarmConfiguration?: AlarmConfiguration; - TriggeredAlarms?: AlarmStateInformation[]; -} -export interface DescribeMaintenanceWindowExecutionTasksResult { - WindowExecutionTaskIdentities?: MaintenanceWindowExecutionTaskIdentity[]; - NextToken?: string; -} -export interface DescribeMaintenanceWindowsRequest { - Filters?: MaintenanceWindowFilter[]; - MaxResults?: number; - NextToken?: string; -} -export interface MaintenanceWindowIdentity { - WindowId?: string; - Name?: string; - Description?: string; - Enabled?: boolean; - Duration?: number; - Cutoff?: number; - Schedule?: string; - ScheduleTimezone?: string; - ScheduleOffset?: number; - EndDate?: string; - StartDate?: string; - NextExecutionTime?: string; -} -export interface DescribeMaintenanceWindowsResult { - WindowIdentities?: MaintenanceWindowIdentity[]; - NextToken?: string; -} -export declare const MaintenanceWindowResourceType: { - readonly Instance: "INSTANCE"; - readonly ResourceGroup: "RESOURCE_GROUP"; -}; -export type MaintenanceWindowResourceType = - (typeof MaintenanceWindowResourceType)[keyof typeof MaintenanceWindowResourceType]; -export interface DescribeMaintenanceWindowScheduleRequest { - WindowId?: string; - Targets?: Target[]; - ResourceType?: MaintenanceWindowResourceType; - Filters?: PatchOrchestratorFilter[]; - MaxResults?: number; - NextToken?: string; -} -export interface ScheduledWindowExecution { - WindowId?: string; - Name?: string; - ExecutionTime?: string; -} -export interface DescribeMaintenanceWindowScheduleResult { - ScheduledWindowExecutions?: ScheduledWindowExecution[]; - NextToken?: string; -} -export interface DescribeMaintenanceWindowsForTargetRequest { - Targets: Target[] | undefined; - ResourceType: MaintenanceWindowResourceType | undefined; - MaxResults?: number; - NextToken?: string; -} -export interface MaintenanceWindowIdentityForTarget { - WindowId?: string; - Name?: string; -} -export interface DescribeMaintenanceWindowsForTargetResult { - WindowIdentities?: MaintenanceWindowIdentityForTarget[]; - NextToken?: string; -} -export interface DescribeMaintenanceWindowTargetsRequest { - WindowId: string | undefined; - Filters?: MaintenanceWindowFilter[]; - MaxResults?: number; - NextToken?: string; -} -export interface MaintenanceWindowTarget { - WindowId?: string; - WindowTargetId?: string; - ResourceType?: MaintenanceWindowResourceType; - Targets?: Target[]; - OwnerInformation?: string; - Name?: string; - Description?: string; -} -export interface DescribeMaintenanceWindowTargetsResult { - Targets?: MaintenanceWindowTarget[]; - NextToken?: string; -} -export interface DescribeMaintenanceWindowTasksRequest { - WindowId: string | undefined; - Filters?: MaintenanceWindowFilter[]; - MaxResults?: number; - NextToken?: string; -} -export declare const MaintenanceWindowTaskCutoffBehavior: { - readonly CancelTask: "CANCEL_TASK"; - readonly ContinueTask: "CONTINUE_TASK"; -}; -export type MaintenanceWindowTaskCutoffBehavior = - (typeof MaintenanceWindowTaskCutoffBehavior)[keyof typeof MaintenanceWindowTaskCutoffBehavior]; -export interface LoggingInfo { - S3BucketName: string | undefined; - S3KeyPrefix?: string; - S3Region: string | undefined; -} -export interface MaintenanceWindowTaskParameterValueExpression { - Values?: string[]; -} -export declare const CreateAssociationRequestFilterSensitiveLog: ( - obj: CreateAssociationRequest -) => any; -export declare const AssociationDescriptionFilterSensitiveLog: ( - obj: AssociationDescription -) => any; -export declare const CreateAssociationResultFilterSensitiveLog: ( - obj: CreateAssociationResult -) => any; -export declare const CreateAssociationBatchRequestEntryFilterSensitiveLog: ( - obj: CreateAssociationBatchRequestEntry -) => any; -export declare const CreateAssociationBatchRequestFilterSensitiveLog: ( - obj: CreateAssociationBatchRequest -) => any; -export declare const FailedCreateAssociationFilterSensitiveLog: ( - obj: FailedCreateAssociation -) => any; -export declare const CreateAssociationBatchResultFilterSensitiveLog: ( - obj: CreateAssociationBatchResult -) => any; -export declare const CreateMaintenanceWindowRequestFilterSensitiveLog: ( - obj: CreateMaintenanceWindowRequest -) => any; -export declare const PatchSourceFilterSensitiveLog: (obj: PatchSource) => any; -export declare const CreatePatchBaselineRequestFilterSensitiveLog: ( - obj: CreatePatchBaselineRequest -) => any; -export declare const DescribeAssociationResultFilterSensitiveLog: ( - obj: DescribeAssociationResult -) => any; -export declare const InstancePatchStateFilterSensitiveLog: ( - obj: InstancePatchState -) => any; -export declare const DescribeInstancePatchStatesResultFilterSensitiveLog: ( - obj: DescribeInstancePatchStatesResult -) => any; -export declare const DescribeInstancePatchStatesForPatchGroupResultFilterSensitiveLog: ( - obj: DescribeInstancePatchStatesForPatchGroupResult -) => any; -export declare const MaintenanceWindowExecutionTaskInvocationIdentityFilterSensitiveLog: ( - obj: MaintenanceWindowExecutionTaskInvocationIdentity -) => any; -export declare const DescribeMaintenanceWindowExecutionTaskInvocationsResultFilterSensitiveLog: ( - obj: DescribeMaintenanceWindowExecutionTaskInvocationsResult -) => any; -export declare const MaintenanceWindowIdentityFilterSensitiveLog: ( - obj: MaintenanceWindowIdentity -) => any; -export declare const DescribeMaintenanceWindowsResultFilterSensitiveLog: ( - obj: DescribeMaintenanceWindowsResult -) => any; -export declare const MaintenanceWindowTargetFilterSensitiveLog: ( - obj: MaintenanceWindowTarget -) => any; -export declare const DescribeMaintenanceWindowTargetsResultFilterSensitiveLog: ( - obj: DescribeMaintenanceWindowTargetsResult -) => any; -export declare const MaintenanceWindowTaskParameterValueExpressionFilterSensitiveLog: ( - obj: MaintenanceWindowTaskParameterValueExpression -) => any; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/models/models_1.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/models/models_1.d.ts deleted file mode 100644 index 2f20849f..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/models/models_1.d.ts +++ /dev/null @@ -1,2279 +0,0 @@ -import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; -import { - AlarmConfiguration, - AlarmStateInformation, - AssociationComplianceSeverity, - AssociationOverview, - AssociationSyncCompliance, - AutomationExecutionStatus, - AutomationSubtype, - DocumentFormat, - DocumentHashType, - DocumentPermissionType, - DocumentRequires, - DocumentStatus, - DocumentType, - ExecutionMode, - InstanceAssociationOutputLocation, - LoggingInfo, - MaintenanceWindowExecutionStatus, - MaintenanceWindowResourceType, - MaintenanceWindowTaskCutoffBehavior, - MaintenanceWindowTaskParameterValueExpression, - MaintenanceWindowTaskType, - MetadataValue, - OperatingSystem, - OpsItemDataValue, - OpsItemNotification, - PatchAction, - PatchComplianceLevel, - PatchFilterGroup, - PatchOrchestratorFilter, - PatchRuleGroup, - PatchSource, - PlatformType, - RelatedOpsItem, - ResolvedTargets, - ResourceDataSyncAwsOrganizationsSource, - ResourceDataSyncS3Destination, - ResourceTypeForTagging, - ReviewStatus, - Runbook, - StepExecution, - Tag, - Target, - TargetLocation, -} from "./models_0"; -import { SSMServiceException as __BaseException } from "./SSMServiceException"; -export interface MaintenanceWindowTask { - WindowId?: string; - WindowTaskId?: string; - TaskArn?: string; - Type?: MaintenanceWindowTaskType; - Targets?: Target[]; - TaskParameters?: Record< - string, - MaintenanceWindowTaskParameterValueExpression - >; - Priority?: number; - LoggingInfo?: LoggingInfo; - ServiceRoleArn?: string; - MaxConcurrency?: string; - MaxErrors?: string; - Name?: string; - Description?: string; - CutoffBehavior?: MaintenanceWindowTaskCutoffBehavior; - AlarmConfiguration?: AlarmConfiguration; -} -export interface DescribeMaintenanceWindowTasksResult { - Tasks?: MaintenanceWindowTask[]; - NextToken?: string; -} -export declare const OpsItemFilterKey: { - readonly ACCOUNT_ID: "AccountId"; - readonly ACTUAL_END_TIME: "ActualEndTime"; - readonly ACTUAL_START_TIME: "ActualStartTime"; - readonly AUTOMATION_ID: "AutomationId"; - readonly CATEGORY: "Category"; - readonly CHANGE_REQUEST_APPROVER_ARN: "ChangeRequestByApproverArn"; - readonly CHANGE_REQUEST_APPROVER_NAME: "ChangeRequestByApproverName"; - readonly CHANGE_REQUEST_REQUESTER_ARN: "ChangeRequestByRequesterArn"; - readonly CHANGE_REQUEST_REQUESTER_NAME: "ChangeRequestByRequesterName"; - readonly CHANGE_REQUEST_TARGETS_RESOURCE_GROUP: "ChangeRequestByTargetsResourceGroup"; - readonly CHANGE_REQUEST_TEMPLATE: "ChangeRequestByTemplate"; - readonly CREATED_BY: "CreatedBy"; - readonly CREATED_TIME: "CreatedTime"; - readonly INSIGHT_TYPE: "InsightByType"; - readonly LAST_MODIFIED_TIME: "LastModifiedTime"; - readonly OPERATIONAL_DATA: "OperationalData"; - readonly OPERATIONAL_DATA_KEY: "OperationalDataKey"; - readonly OPERATIONAL_DATA_VALUE: "OperationalDataValue"; - readonly OPSITEM_ID: "OpsItemId"; - readonly OPSITEM_TYPE: "OpsItemType"; - readonly PLANNED_END_TIME: "PlannedEndTime"; - readonly PLANNED_START_TIME: "PlannedStartTime"; - readonly PRIORITY: "Priority"; - readonly RESOURCE_ID: "ResourceId"; - readonly SEVERITY: "Severity"; - readonly SOURCE: "Source"; - readonly STATUS: "Status"; - readonly TITLE: "Title"; -}; -export type OpsItemFilterKey = - (typeof OpsItemFilterKey)[keyof typeof OpsItemFilterKey]; -export declare const OpsItemFilterOperator: { - readonly CONTAINS: "Contains"; - readonly EQUAL: "Equal"; - readonly GREATER_THAN: "GreaterThan"; - readonly LESS_THAN: "LessThan"; -}; -export type OpsItemFilterOperator = - (typeof OpsItemFilterOperator)[keyof typeof OpsItemFilterOperator]; -export interface OpsItemFilter { - Key: OpsItemFilterKey | undefined; - Values: string[] | undefined; - Operator: OpsItemFilterOperator | undefined; -} -export interface DescribeOpsItemsRequest { - OpsItemFilters?: OpsItemFilter[]; - MaxResults?: number; - NextToken?: string; -} -export declare const OpsItemStatus: { - readonly APPROVED: "Approved"; - readonly CANCELLED: "Cancelled"; - readonly CANCELLING: "Cancelling"; - readonly CHANGE_CALENDAR_OVERRIDE_APPROVED: "ChangeCalendarOverrideApproved"; - readonly CHANGE_CALENDAR_OVERRIDE_REJECTED: "ChangeCalendarOverrideRejected"; - readonly CLOSED: "Closed"; - readonly COMPLETED_WITH_FAILURE: "CompletedWithFailure"; - readonly COMPLETED_WITH_SUCCESS: "CompletedWithSuccess"; - readonly FAILED: "Failed"; - readonly IN_PROGRESS: "InProgress"; - readonly OPEN: "Open"; - readonly PENDING: "Pending"; - readonly PENDING_APPROVAL: "PendingApproval"; - readonly PENDING_CHANGE_CALENDAR_OVERRIDE: "PendingChangeCalendarOverride"; - readonly REJECTED: "Rejected"; - readonly RESOLVED: "Resolved"; - readonly RUNBOOK_IN_PROGRESS: "RunbookInProgress"; - readonly SCHEDULED: "Scheduled"; - readonly TIMED_OUT: "TimedOut"; -}; -export type OpsItemStatus = (typeof OpsItemStatus)[keyof typeof OpsItemStatus]; -export interface OpsItemSummary { - CreatedBy?: string; - CreatedTime?: Date; - LastModifiedBy?: string; - LastModifiedTime?: Date; - Priority?: number; - Source?: string; - Status?: OpsItemStatus; - OpsItemId?: string; - Title?: string; - OperationalData?: Record; - Category?: string; - Severity?: string; - OpsItemType?: string; - ActualStartTime?: Date; - ActualEndTime?: Date; - PlannedStartTime?: Date; - PlannedEndTime?: Date; -} -export interface DescribeOpsItemsResponse { - NextToken?: string; - OpsItemSummaries?: OpsItemSummary[]; -} -export declare const ParametersFilterKey: { - readonly KEY_ID: "KeyId"; - readonly NAME: "Name"; - readonly TYPE: "Type"; -}; -export type ParametersFilterKey = - (typeof ParametersFilterKey)[keyof typeof ParametersFilterKey]; -export interface ParametersFilter { - Key: ParametersFilterKey | undefined; - Values: string[] | undefined; -} -export interface ParameterStringFilter { - Key: string | undefined; - Option?: string; - Values?: string[]; -} -export interface DescribeParametersRequest { - Filters?: ParametersFilter[]; - ParameterFilters?: ParameterStringFilter[]; - MaxResults?: number; - NextToken?: string; -} -export interface ParameterInlinePolicy { - PolicyText?: string; - PolicyType?: string; - PolicyStatus?: string; -} -export declare const ParameterTier: { - readonly ADVANCED: "Advanced"; - readonly INTELLIGENT_TIERING: "Intelligent-Tiering"; - readonly STANDARD: "Standard"; -}; -export type ParameterTier = (typeof ParameterTier)[keyof typeof ParameterTier]; -export declare const ParameterType: { - readonly SECURE_STRING: "SecureString"; - readonly STRING: "String"; - readonly STRING_LIST: "StringList"; -}; -export type ParameterType = (typeof ParameterType)[keyof typeof ParameterType]; -export interface ParameterMetadata { - Name?: string; - Type?: ParameterType; - KeyId?: string; - LastModifiedDate?: Date; - LastModifiedUser?: string; - Description?: string; - AllowedPattern?: string; - Version?: number; - Tier?: ParameterTier; - Policies?: ParameterInlinePolicy[]; - DataType?: string; -} -export interface DescribeParametersResult { - Parameters?: ParameterMetadata[]; - NextToken?: string; -} -export declare class InvalidFilterOption extends __BaseException { - readonly name: "InvalidFilterOption"; - readonly $fault: "client"; - constructor( - opts: __ExceptionOptionType - ); -} -export interface DescribePatchBaselinesRequest { - Filters?: PatchOrchestratorFilter[]; - MaxResults?: number; - NextToken?: string; -} -export interface PatchBaselineIdentity { - BaselineId?: string; - BaselineName?: string; - OperatingSystem?: OperatingSystem; - BaselineDescription?: string; - DefaultBaseline?: boolean; -} -export interface DescribePatchBaselinesResult { - BaselineIdentities?: PatchBaselineIdentity[]; - NextToken?: string; -} -export interface DescribePatchGroupsRequest { - MaxResults?: number; - Filters?: PatchOrchestratorFilter[]; - NextToken?: string; -} -export interface PatchGroupPatchBaselineMapping { - PatchGroup?: string; - BaselineIdentity?: PatchBaselineIdentity; -} -export interface DescribePatchGroupsResult { - Mappings?: PatchGroupPatchBaselineMapping[]; - NextToken?: string; -} -export interface DescribePatchGroupStateRequest { - PatchGroup: string | undefined; -} -export interface DescribePatchGroupStateResult { - Instances?: number; - InstancesWithInstalledPatches?: number; - InstancesWithInstalledOtherPatches?: number; - InstancesWithInstalledPendingRebootPatches?: number; - InstancesWithInstalledRejectedPatches?: number; - InstancesWithMissingPatches?: number; - InstancesWithFailedPatches?: number; - InstancesWithNotApplicablePatches?: number; - InstancesWithUnreportedNotApplicablePatches?: number; - InstancesWithCriticalNonCompliantPatches?: number; - InstancesWithSecurityNonCompliantPatches?: number; - InstancesWithOtherNonCompliantPatches?: number; -} -export declare const PatchSet: { - readonly Application: "APPLICATION"; - readonly Os: "OS"; -}; -export type PatchSet = (typeof PatchSet)[keyof typeof PatchSet]; -export declare const PatchProperty: { - readonly PatchClassification: "CLASSIFICATION"; - readonly PatchMsrcSeverity: "MSRC_SEVERITY"; - readonly PatchPriority: "PRIORITY"; - readonly PatchProductFamily: "PRODUCT_FAMILY"; - readonly PatchSeverity: "SEVERITY"; - readonly Product: "PRODUCT"; -}; -export type PatchProperty = (typeof PatchProperty)[keyof typeof PatchProperty]; -export interface DescribePatchPropertiesRequest { - OperatingSystem: OperatingSystem | undefined; - Property: PatchProperty | undefined; - PatchSet?: PatchSet; - MaxResults?: number; - NextToken?: string; -} -export interface DescribePatchPropertiesResult { - Properties?: Record[]; - NextToken?: string; -} -export declare const SessionFilterKey: { - readonly INVOKED_AFTER: "InvokedAfter"; - readonly INVOKED_BEFORE: "InvokedBefore"; - readonly OWNER: "Owner"; - readonly SESSION_ID: "SessionId"; - readonly STATUS: "Status"; - readonly TARGET_ID: "Target"; -}; -export type SessionFilterKey = - (typeof SessionFilterKey)[keyof typeof SessionFilterKey]; -export interface SessionFilter { - key: SessionFilterKey | undefined; - value: string | undefined; -} -export declare const SessionState: { - readonly ACTIVE: "Active"; - readonly HISTORY: "History"; -}; -export type SessionState = (typeof SessionState)[keyof typeof SessionState]; -export interface DescribeSessionsRequest { - State: SessionState | undefined; - MaxResults?: number; - NextToken?: string; - Filters?: SessionFilter[]; -} -export interface SessionManagerOutputUrl { - S3OutputUrl?: string; - CloudWatchOutputUrl?: string; -} -export declare const SessionStatus: { - readonly CONNECTED: "Connected"; - readonly CONNECTING: "Connecting"; - readonly DISCONNECTED: "Disconnected"; - readonly FAILED: "Failed"; - readonly TERMINATED: "Terminated"; - readonly TERMINATING: "Terminating"; -}; -export type SessionStatus = (typeof SessionStatus)[keyof typeof SessionStatus]; -export interface Session { - SessionId?: string; - Target?: string; - Status?: SessionStatus; - StartDate?: Date; - EndDate?: Date; - DocumentName?: string; - Owner?: string; - Reason?: string; - Details?: string; - OutputUrl?: SessionManagerOutputUrl; - MaxSessionDuration?: string; -} -export interface DescribeSessionsResponse { - Sessions?: Session[]; - NextToken?: string; -} -export interface DisassociateOpsItemRelatedItemRequest { - OpsItemId: string | undefined; - AssociationId: string | undefined; -} -export interface DisassociateOpsItemRelatedItemResponse {} -export declare class OpsItemRelatedItemAssociationNotFoundException extends __BaseException { - readonly name: "OpsItemRelatedItemAssociationNotFoundException"; - readonly $fault: "client"; - Message?: string; - constructor( - opts: __ExceptionOptionType< - OpsItemRelatedItemAssociationNotFoundException, - __BaseException - > - ); -} -export interface GetAutomationExecutionRequest { - AutomationExecutionId: string | undefined; -} -export interface ProgressCounters { - TotalSteps?: number; - SuccessSteps?: number; - FailedSteps?: number; - CancelledSteps?: number; - TimedOutSteps?: number; -} -export interface AutomationExecution { - AutomationExecutionId?: string; - DocumentName?: string; - DocumentVersion?: string; - ExecutionStartTime?: Date; - ExecutionEndTime?: Date; - AutomationExecutionStatus?: AutomationExecutionStatus; - StepExecutions?: StepExecution[]; - StepExecutionsTruncated?: boolean; - Parameters?: Record; - Outputs?: Record; - FailureMessage?: string; - Mode?: ExecutionMode; - ParentAutomationExecutionId?: string; - ExecutedBy?: string; - CurrentStepName?: string; - CurrentAction?: string; - TargetParameterName?: string; - Targets?: Target[]; - TargetMaps?: Record[]; - ResolvedTargets?: ResolvedTargets; - MaxConcurrency?: string; - MaxErrors?: string; - Target?: string; - TargetLocations?: TargetLocation[]; - ProgressCounters?: ProgressCounters; - AlarmConfiguration?: AlarmConfiguration; - TriggeredAlarms?: AlarmStateInformation[]; - AutomationSubtype?: AutomationSubtype; - ScheduledTime?: Date; - Runbooks?: Runbook[]; - OpsItemId?: string; - AssociationId?: string; - ChangeRequestName?: string; - Variables?: Record; -} -export interface GetAutomationExecutionResult { - AutomationExecution?: AutomationExecution; -} -export interface GetCalendarStateRequest { - CalendarNames: string[] | undefined; - AtTime?: string; -} -export declare const CalendarState: { - readonly CLOSED: "CLOSED"; - readonly OPEN: "OPEN"; -}; -export type CalendarState = (typeof CalendarState)[keyof typeof CalendarState]; -export interface GetCalendarStateResponse { - State?: CalendarState; - AtTime?: string; - NextTransitionTime?: string; -} -export declare class InvalidDocumentType extends __BaseException { - readonly name: "InvalidDocumentType"; - readonly $fault: "client"; - Message?: string; - constructor( - opts: __ExceptionOptionType - ); -} -export declare class UnsupportedCalendarException extends __BaseException { - readonly name: "UnsupportedCalendarException"; - readonly $fault: "client"; - Message?: string; - constructor( - opts: __ExceptionOptionType - ); -} -export interface GetCommandInvocationRequest { - CommandId: string | undefined; - InstanceId: string | undefined; - PluginName?: string; -} -export interface CloudWatchOutputConfig { - CloudWatchLogGroupName?: string; - CloudWatchOutputEnabled?: boolean; -} -export declare const CommandInvocationStatus: { - readonly CANCELLED: "Cancelled"; - readonly CANCELLING: "Cancelling"; - readonly DELAYED: "Delayed"; - readonly FAILED: "Failed"; - readonly IN_PROGRESS: "InProgress"; - readonly PENDING: "Pending"; - readonly SUCCESS: "Success"; - readonly TIMED_OUT: "TimedOut"; -}; -export type CommandInvocationStatus = - (typeof CommandInvocationStatus)[keyof typeof CommandInvocationStatus]; -export interface GetCommandInvocationResult { - CommandId?: string; - InstanceId?: string; - Comment?: string; - DocumentName?: string; - DocumentVersion?: string; - PluginName?: string; - ResponseCode?: number; - ExecutionStartDateTime?: string; - ExecutionElapsedTime?: string; - ExecutionEndDateTime?: string; - Status?: CommandInvocationStatus; - StatusDetails?: string; - StandardOutputContent?: string; - StandardOutputUrl?: string; - StandardErrorContent?: string; - StandardErrorUrl?: string; - CloudWatchOutputConfig?: CloudWatchOutputConfig; -} -export declare class InvalidPluginName extends __BaseException { - readonly name: "InvalidPluginName"; - readonly $fault: "client"; - constructor(opts: __ExceptionOptionType); -} -export declare class InvocationDoesNotExist extends __BaseException { - readonly name: "InvocationDoesNotExist"; - readonly $fault: "client"; - constructor( - opts: __ExceptionOptionType - ); -} -export interface GetConnectionStatusRequest { - Target: string | undefined; -} -export declare const ConnectionStatus: { - readonly CONNECTED: "connected"; - readonly NOT_CONNECTED: "notconnected"; -}; -export type ConnectionStatus = - (typeof ConnectionStatus)[keyof typeof ConnectionStatus]; -export interface GetConnectionStatusResponse { - Target?: string; - Status?: ConnectionStatus; -} -export interface GetDefaultPatchBaselineRequest { - OperatingSystem?: OperatingSystem; -} -export interface GetDefaultPatchBaselineResult { - BaselineId?: string; - OperatingSystem?: OperatingSystem; -} -export interface BaselineOverride { - OperatingSystem?: OperatingSystem; - GlobalFilters?: PatchFilterGroup; - ApprovalRules?: PatchRuleGroup; - ApprovedPatches?: string[]; - ApprovedPatchesComplianceLevel?: PatchComplianceLevel; - RejectedPatches?: string[]; - RejectedPatchesAction?: PatchAction; - ApprovedPatchesEnableNonSecurity?: boolean; - Sources?: PatchSource[]; -} -export interface GetDeployablePatchSnapshotForInstanceRequest { - InstanceId: string | undefined; - SnapshotId: string | undefined; - BaselineOverride?: BaselineOverride; -} -export interface GetDeployablePatchSnapshotForInstanceResult { - InstanceId?: string; - SnapshotId?: string; - SnapshotDownloadUrl?: string; - Product?: string; -} -export declare class UnsupportedFeatureRequiredException extends __BaseException { - readonly name: "UnsupportedFeatureRequiredException"; - readonly $fault: "client"; - Message?: string; - constructor( - opts: __ExceptionOptionType< - UnsupportedFeatureRequiredException, - __BaseException - > - ); -} -export interface GetDocumentRequest { - Name: string | undefined; - VersionName?: string; - DocumentVersion?: string; - DocumentFormat?: DocumentFormat; -} -export declare const AttachmentHashType: { - readonly SHA256: "Sha256"; -}; -export type AttachmentHashType = - (typeof AttachmentHashType)[keyof typeof AttachmentHashType]; -export interface AttachmentContent { - Name?: string; - Size?: number; - Hash?: string; - HashType?: AttachmentHashType; - Url?: string; -} -export interface GetDocumentResult { - Name?: string; - CreatedDate?: Date; - DisplayName?: string; - VersionName?: string; - DocumentVersion?: string; - Status?: DocumentStatus; - StatusInformation?: string; - Content?: string; - DocumentType?: DocumentType; - DocumentFormat?: DocumentFormat; - Requires?: DocumentRequires[]; - AttachmentsContent?: AttachmentContent[]; - ReviewStatus?: ReviewStatus; -} -export declare const InventoryQueryOperatorType: { - readonly BEGIN_WITH: "BeginWith"; - readonly EQUAL: "Equal"; - readonly EXISTS: "Exists"; - readonly GREATER_THAN: "GreaterThan"; - readonly LESS_THAN: "LessThan"; - readonly NOT_EQUAL: "NotEqual"; -}; -export type InventoryQueryOperatorType = - (typeof InventoryQueryOperatorType)[keyof typeof InventoryQueryOperatorType]; -export interface InventoryFilter { - Key: string | undefined; - Values: string[] | undefined; - Type?: InventoryQueryOperatorType; -} -export interface InventoryGroup { - Name: string | undefined; - Filters: InventoryFilter[] | undefined; -} -export interface ResultAttribute { - TypeName: string | undefined; -} -export interface InventoryResultItem { - TypeName: string | undefined; - SchemaVersion: string | undefined; - CaptureTime?: string; - ContentHash?: string; - Content: Record[] | undefined; -} -export interface InventoryResultEntity { - Id?: string; - Data?: Record; -} -export interface GetInventoryResult { - Entities?: InventoryResultEntity[]; - NextToken?: string; -} -export declare class InvalidAggregatorException extends __BaseException { - readonly name: "InvalidAggregatorException"; - readonly $fault: "client"; - Message?: string; - constructor( - opts: __ExceptionOptionType - ); -} -export declare class InvalidInventoryGroupException extends __BaseException { - readonly name: "InvalidInventoryGroupException"; - readonly $fault: "client"; - Message?: string; - constructor( - opts: __ExceptionOptionType - ); -} -export declare class InvalidResultAttributeException extends __BaseException { - readonly name: "InvalidResultAttributeException"; - readonly $fault: "client"; - Message?: string; - constructor( - opts: __ExceptionOptionType< - InvalidResultAttributeException, - __BaseException - > - ); -} -export interface GetInventorySchemaRequest { - TypeName?: string; - NextToken?: string; - MaxResults?: number; - Aggregator?: boolean; - SubType?: boolean; -} -export declare const InventoryAttributeDataType: { - readonly NUMBER: "number"; - readonly STRING: "string"; -}; -export type InventoryAttributeDataType = - (typeof InventoryAttributeDataType)[keyof typeof InventoryAttributeDataType]; -export interface InventoryItemAttribute { - Name: string | undefined; - DataType: InventoryAttributeDataType | undefined; -} -export interface InventoryItemSchema { - TypeName: string | undefined; - Version?: string; - Attributes: InventoryItemAttribute[] | undefined; - DisplayName?: string; -} -export interface GetInventorySchemaResult { - Schemas?: InventoryItemSchema[]; - NextToken?: string; -} -export interface GetMaintenanceWindowRequest { - WindowId: string | undefined; -} -export interface GetMaintenanceWindowResult { - WindowId?: string; - Name?: string; - Description?: string; - StartDate?: string; - EndDate?: string; - Schedule?: string; - ScheduleTimezone?: string; - ScheduleOffset?: number; - NextExecutionTime?: string; - Duration?: number; - Cutoff?: number; - AllowUnassociatedTargets?: boolean; - Enabled?: boolean; - CreatedDate?: Date; - ModifiedDate?: Date; -} -export interface GetMaintenanceWindowExecutionRequest { - WindowExecutionId: string | undefined; -} -export interface GetMaintenanceWindowExecutionResult { - WindowExecutionId?: string; - TaskIds?: string[]; - Status?: MaintenanceWindowExecutionStatus; - StatusDetails?: string; - StartTime?: Date; - EndTime?: Date; -} -export interface GetMaintenanceWindowExecutionTaskRequest { - WindowExecutionId: string | undefined; - TaskId: string | undefined; -} -export interface GetMaintenanceWindowExecutionTaskResult { - WindowExecutionId?: string; - TaskExecutionId?: string; - TaskArn?: string; - ServiceRole?: string; - Type?: MaintenanceWindowTaskType; - TaskParameters?: Record< - string, - MaintenanceWindowTaskParameterValueExpression - >[]; - Priority?: number; - MaxConcurrency?: string; - MaxErrors?: string; - Status?: MaintenanceWindowExecutionStatus; - StatusDetails?: string; - StartTime?: Date; - EndTime?: Date; - AlarmConfiguration?: AlarmConfiguration; - TriggeredAlarms?: AlarmStateInformation[]; -} -export interface GetMaintenanceWindowExecutionTaskInvocationRequest { - WindowExecutionId: string | undefined; - TaskId: string | undefined; - InvocationId: string | undefined; -} -export interface GetMaintenanceWindowExecutionTaskInvocationResult { - WindowExecutionId?: string; - TaskExecutionId?: string; - InvocationId?: string; - ExecutionId?: string; - TaskType?: MaintenanceWindowTaskType; - Parameters?: string; - Status?: MaintenanceWindowExecutionStatus; - StatusDetails?: string; - StartTime?: Date; - EndTime?: Date; - OwnerInformation?: string; - WindowTargetId?: string; -} -export interface GetMaintenanceWindowTaskRequest { - WindowId: string | undefined; - WindowTaskId: string | undefined; -} -export interface MaintenanceWindowAutomationParameters { - DocumentVersion?: string; - Parameters?: Record; -} -export interface MaintenanceWindowLambdaParameters { - ClientContext?: string; - Qualifier?: string; - Payload?: Uint8Array; -} -export declare const NotificationEvent: { - readonly ALL: "All"; - readonly CANCELLED: "Cancelled"; - readonly FAILED: "Failed"; - readonly IN_PROGRESS: "InProgress"; - readonly SUCCESS: "Success"; - readonly TIMED_OUT: "TimedOut"; -}; -export type NotificationEvent = - (typeof NotificationEvent)[keyof typeof NotificationEvent]; -export declare const NotificationType: { - readonly Command: "Command"; - readonly Invocation: "Invocation"; -}; -export type NotificationType = - (typeof NotificationType)[keyof typeof NotificationType]; -export interface NotificationConfig { - NotificationArn?: string; - NotificationEvents?: NotificationEvent[]; - NotificationType?: NotificationType; -} -export interface MaintenanceWindowRunCommandParameters { - Comment?: string; - CloudWatchOutputConfig?: CloudWatchOutputConfig; - DocumentHash?: string; - DocumentHashType?: DocumentHashType; - DocumentVersion?: string; - NotificationConfig?: NotificationConfig; - OutputS3BucketName?: string; - OutputS3KeyPrefix?: string; - Parameters?: Record; - ServiceRoleArn?: string; - TimeoutSeconds?: number; -} -export interface MaintenanceWindowStepFunctionsParameters { - Input?: string; - Name?: string; -} -export interface MaintenanceWindowTaskInvocationParameters { - RunCommand?: MaintenanceWindowRunCommandParameters; - Automation?: MaintenanceWindowAutomationParameters; - StepFunctions?: MaintenanceWindowStepFunctionsParameters; - Lambda?: MaintenanceWindowLambdaParameters; -} -export interface GetMaintenanceWindowTaskResult { - WindowId?: string; - WindowTaskId?: string; - Targets?: Target[]; - TaskArn?: string; - ServiceRoleArn?: string; - TaskType?: MaintenanceWindowTaskType; - TaskParameters?: Record< - string, - MaintenanceWindowTaskParameterValueExpression - >; - TaskInvocationParameters?: MaintenanceWindowTaskInvocationParameters; - Priority?: number; - MaxConcurrency?: string; - MaxErrors?: string; - LoggingInfo?: LoggingInfo; - Name?: string; - Description?: string; - CutoffBehavior?: MaintenanceWindowTaskCutoffBehavior; - AlarmConfiguration?: AlarmConfiguration; -} -export interface GetOpsItemRequest { - OpsItemId: string | undefined; - OpsItemArn?: string; -} -export interface OpsItem { - CreatedBy?: string; - OpsItemType?: string; - CreatedTime?: Date; - Description?: string; - LastModifiedBy?: string; - LastModifiedTime?: Date; - Notifications?: OpsItemNotification[]; - Priority?: number; - RelatedOpsItems?: RelatedOpsItem[]; - Status?: OpsItemStatus; - OpsItemId?: string; - Version?: string; - Title?: string; - Source?: string; - OperationalData?: Record; - Category?: string; - Severity?: string; - ActualStartTime?: Date; - ActualEndTime?: Date; - PlannedStartTime?: Date; - PlannedEndTime?: Date; - OpsItemArn?: string; -} -export interface GetOpsItemResponse { - OpsItem?: OpsItem; -} -export interface GetOpsMetadataRequest { - OpsMetadataArn: string | undefined; - MaxResults?: number; - NextToken?: string; -} -export interface GetOpsMetadataResult { - ResourceId?: string; - Metadata?: Record; - NextToken?: string; -} -export declare const OpsFilterOperatorType: { - readonly BEGIN_WITH: "BeginWith"; - readonly EQUAL: "Equal"; - readonly EXISTS: "Exists"; - readonly GREATER_THAN: "GreaterThan"; - readonly LESS_THAN: "LessThan"; - readonly NOT_EQUAL: "NotEqual"; -}; -export type OpsFilterOperatorType = - (typeof OpsFilterOperatorType)[keyof typeof OpsFilterOperatorType]; -export interface OpsFilter { - Key: string | undefined; - Values: string[] | undefined; - Type?: OpsFilterOperatorType; -} -export interface OpsResultAttribute { - TypeName: string | undefined; -} -export interface OpsEntityItem { - CaptureTime?: string; - Content?: Record[]; -} -export interface OpsEntity { - Id?: string; - Data?: Record; -} -export interface GetOpsSummaryResult { - Entities?: OpsEntity[]; - NextToken?: string; -} -export interface GetParameterRequest { - Name: string | undefined; - WithDecryption?: boolean; -} -export interface Parameter { - Name?: string; - Type?: ParameterType; - Value?: string; - Version?: number; - Selector?: string; - SourceResult?: string; - LastModifiedDate?: Date; - ARN?: string; - DataType?: string; -} -export interface GetParameterResult { - Parameter?: Parameter; -} -export declare class InvalidKeyId extends __BaseException { - readonly name: "InvalidKeyId"; - readonly $fault: "client"; - constructor(opts: __ExceptionOptionType); -} -export declare class ParameterVersionNotFound extends __BaseException { - readonly name: "ParameterVersionNotFound"; - readonly $fault: "client"; - constructor( - opts: __ExceptionOptionType - ); -} -export interface GetParameterHistoryRequest { - Name: string | undefined; - WithDecryption?: boolean; - MaxResults?: number; - NextToken?: string; -} -export interface ParameterHistory { - Name?: string; - Type?: ParameterType; - KeyId?: string; - LastModifiedDate?: Date; - LastModifiedUser?: string; - Description?: string; - Value?: string; - AllowedPattern?: string; - Version?: number; - Labels?: string[]; - Tier?: ParameterTier; - Policies?: ParameterInlinePolicy[]; - DataType?: string; -} -export interface GetParameterHistoryResult { - Parameters?: ParameterHistory[]; - NextToken?: string; -} -export interface GetParametersRequest { - Names: string[] | undefined; - WithDecryption?: boolean; -} -export interface GetParametersResult { - Parameters?: Parameter[]; - InvalidParameters?: string[]; -} -export interface GetParametersByPathRequest { - Path: string | undefined; - Recursive?: boolean; - ParameterFilters?: ParameterStringFilter[]; - WithDecryption?: boolean; - MaxResults?: number; - NextToken?: string; -} -export interface GetParametersByPathResult { - Parameters?: Parameter[]; - NextToken?: string; -} -export interface GetPatchBaselineRequest { - BaselineId: string | undefined; -} -export interface GetPatchBaselineResult { - BaselineId?: string; - Name?: string; - OperatingSystem?: OperatingSystem; - GlobalFilters?: PatchFilterGroup; - ApprovalRules?: PatchRuleGroup; - ApprovedPatches?: string[]; - ApprovedPatchesComplianceLevel?: PatchComplianceLevel; - ApprovedPatchesEnableNonSecurity?: boolean; - RejectedPatches?: string[]; - RejectedPatchesAction?: PatchAction; - PatchGroups?: string[]; - CreatedDate?: Date; - ModifiedDate?: Date; - Description?: string; - Sources?: PatchSource[]; -} -export interface GetPatchBaselineForPatchGroupRequest { - PatchGroup: string | undefined; - OperatingSystem?: OperatingSystem; -} -export interface GetPatchBaselineForPatchGroupResult { - BaselineId?: string; - PatchGroup?: string; - OperatingSystem?: OperatingSystem; -} -export interface GetResourcePoliciesRequest { - ResourceArn: string | undefined; - NextToken?: string; - MaxResults?: number; -} -export interface GetResourcePoliciesResponseEntry { - PolicyId?: string; - PolicyHash?: string; - Policy?: string; -} -export interface GetResourcePoliciesResponse { - NextToken?: string; - Policies?: GetResourcePoliciesResponseEntry[]; -} -export interface GetServiceSettingRequest { - SettingId: string | undefined; -} -export interface ServiceSetting { - SettingId?: string; - SettingValue?: string; - LastModifiedDate?: Date; - LastModifiedUser?: string; - ARN?: string; - Status?: string; -} -export interface GetServiceSettingResult { - ServiceSetting?: ServiceSetting; -} -export declare class ServiceSettingNotFound extends __BaseException { - readonly name: "ServiceSettingNotFound"; - readonly $fault: "client"; - Message?: string; - constructor( - opts: __ExceptionOptionType - ); -} -export interface LabelParameterVersionRequest { - Name: string | undefined; - ParameterVersion?: number; - Labels: string[] | undefined; -} -export interface LabelParameterVersionResult { - InvalidLabels?: string[]; - ParameterVersion?: number; -} -export declare class ParameterVersionLabelLimitExceeded extends __BaseException { - readonly name: "ParameterVersionLabelLimitExceeded"; - readonly $fault: "client"; - constructor( - opts: __ExceptionOptionType< - ParameterVersionLabelLimitExceeded, - __BaseException - > - ); -} -export declare const AssociationFilterKey: { - readonly AssociationId: "AssociationId"; - readonly AssociationName: "AssociationName"; - readonly InstanceId: "InstanceId"; - readonly LastExecutedAfter: "LastExecutedAfter"; - readonly LastExecutedBefore: "LastExecutedBefore"; - readonly Name: "Name"; - readonly ResourceGroupName: "ResourceGroupName"; - readonly Status: "AssociationStatusName"; -}; -export type AssociationFilterKey = - (typeof AssociationFilterKey)[keyof typeof AssociationFilterKey]; -export interface AssociationFilter { - key: AssociationFilterKey | undefined; - value: string | undefined; -} -export interface ListAssociationsRequest { - AssociationFilterList?: AssociationFilter[]; - MaxResults?: number; - NextToken?: string; -} -export interface Association { - Name?: string; - InstanceId?: string; - AssociationId?: string; - AssociationVersion?: string; - DocumentVersion?: string; - Targets?: Target[]; - LastExecutionDate?: Date; - Overview?: AssociationOverview; - ScheduleExpression?: string; - AssociationName?: string; - ScheduleOffset?: number; - TargetMaps?: Record[]; -} -export interface ListAssociationsResult { - Associations?: Association[]; - NextToken?: string; -} -export interface ListAssociationVersionsRequest { - AssociationId: string | undefined; - MaxResults?: number; - NextToken?: string; -} -export interface AssociationVersionInfo { - AssociationId?: string; - AssociationVersion?: string; - CreatedDate?: Date; - Name?: string; - DocumentVersion?: string; - Parameters?: Record; - Targets?: Target[]; - ScheduleExpression?: string; - OutputLocation?: InstanceAssociationOutputLocation; - AssociationName?: string; - MaxErrors?: string; - MaxConcurrency?: string; - ComplianceSeverity?: AssociationComplianceSeverity; - SyncCompliance?: AssociationSyncCompliance; - ApplyOnlyAtCronInterval?: boolean; - CalendarNames?: string[]; - TargetLocations?: TargetLocation[]; - ScheduleOffset?: number; - TargetMaps?: Record[]; -} -export interface ListAssociationVersionsResult { - AssociationVersions?: AssociationVersionInfo[]; - NextToken?: string; -} -export declare const CommandFilterKey: { - readonly DOCUMENT_NAME: "DocumentName"; - readonly EXECUTION_STAGE: "ExecutionStage"; - readonly INVOKED_AFTER: "InvokedAfter"; - readonly INVOKED_BEFORE: "InvokedBefore"; - readonly STATUS: "Status"; -}; -export type CommandFilterKey = - (typeof CommandFilterKey)[keyof typeof CommandFilterKey]; -export interface CommandFilter { - key: CommandFilterKey | undefined; - value: string | undefined; -} -export interface ListCommandInvocationsRequest { - CommandId?: string; - InstanceId?: string; - MaxResults?: number; - NextToken?: string; - Filters?: CommandFilter[]; - Details?: boolean; -} -export declare const CommandPluginStatus: { - readonly CANCELLED: "Cancelled"; - readonly FAILED: "Failed"; - readonly IN_PROGRESS: "InProgress"; - readonly PENDING: "Pending"; - readonly SUCCESS: "Success"; - readonly TIMED_OUT: "TimedOut"; -}; -export type CommandPluginStatus = - (typeof CommandPluginStatus)[keyof typeof CommandPluginStatus]; -export interface CommandPlugin { - Name?: string; - Status?: CommandPluginStatus; - StatusDetails?: string; - ResponseCode?: number; - ResponseStartDateTime?: Date; - ResponseFinishDateTime?: Date; - Output?: string; - StandardOutputUrl?: string; - StandardErrorUrl?: string; - OutputS3Region?: string; - OutputS3BucketName?: string; - OutputS3KeyPrefix?: string; -} -export interface CommandInvocation { - CommandId?: string; - InstanceId?: string; - InstanceName?: string; - Comment?: string; - DocumentName?: string; - DocumentVersion?: string; - RequestedDateTime?: Date; - Status?: CommandInvocationStatus; - StatusDetails?: string; - TraceOutput?: string; - StandardOutputUrl?: string; - StandardErrorUrl?: string; - CommandPlugins?: CommandPlugin[]; - ServiceRole?: string; - NotificationConfig?: NotificationConfig; - CloudWatchOutputConfig?: CloudWatchOutputConfig; -} -export interface ListCommandInvocationsResult { - CommandInvocations?: CommandInvocation[]; - NextToken?: string; -} -export interface ListCommandsRequest { - CommandId?: string; - InstanceId?: string; - MaxResults?: number; - NextToken?: string; - Filters?: CommandFilter[]; -} -export declare const CommandStatus: { - readonly CANCELLED: "Cancelled"; - readonly CANCELLING: "Cancelling"; - readonly FAILED: "Failed"; - readonly IN_PROGRESS: "InProgress"; - readonly PENDING: "Pending"; - readonly SUCCESS: "Success"; - readonly TIMED_OUT: "TimedOut"; -}; -export type CommandStatus = (typeof CommandStatus)[keyof typeof CommandStatus]; -export interface Command { - CommandId?: string; - DocumentName?: string; - DocumentVersion?: string; - Comment?: string; - ExpiresAfter?: Date; - Parameters?: Record; - InstanceIds?: string[]; - Targets?: Target[]; - RequestedDateTime?: Date; - Status?: CommandStatus; - StatusDetails?: string; - OutputS3Region?: string; - OutputS3BucketName?: string; - OutputS3KeyPrefix?: string; - MaxConcurrency?: string; - MaxErrors?: string; - TargetCount?: number; - CompletedCount?: number; - ErrorCount?: number; - DeliveryTimedOutCount?: number; - ServiceRole?: string; - NotificationConfig?: NotificationConfig; - CloudWatchOutputConfig?: CloudWatchOutputConfig; - TimeoutSeconds?: number; - AlarmConfiguration?: AlarmConfiguration; - TriggeredAlarms?: AlarmStateInformation[]; -} -export interface ListCommandsResult { - Commands?: Command[]; - NextToken?: string; -} -export declare const ComplianceQueryOperatorType: { - readonly BeginWith: "BEGIN_WITH"; - readonly Equal: "EQUAL"; - readonly GreaterThan: "GREATER_THAN"; - readonly LessThan: "LESS_THAN"; - readonly NotEqual: "NOT_EQUAL"; -}; -export type ComplianceQueryOperatorType = - (typeof ComplianceQueryOperatorType)[keyof typeof ComplianceQueryOperatorType]; -export interface ComplianceStringFilter { - Key?: string; - Values?: string[]; - Type?: ComplianceQueryOperatorType; -} -export interface ListComplianceItemsRequest { - Filters?: ComplianceStringFilter[]; - ResourceIds?: string[]; - ResourceTypes?: string[]; - NextToken?: string; - MaxResults?: number; -} -export interface ComplianceExecutionSummary { - ExecutionTime: Date | undefined; - ExecutionId?: string; - ExecutionType?: string; -} -export declare const ComplianceSeverity: { - readonly Critical: "CRITICAL"; - readonly High: "HIGH"; - readonly Informational: "INFORMATIONAL"; - readonly Low: "LOW"; - readonly Medium: "MEDIUM"; - readonly Unspecified: "UNSPECIFIED"; -}; -export type ComplianceSeverity = - (typeof ComplianceSeverity)[keyof typeof ComplianceSeverity]; -export declare const ComplianceStatus: { - readonly Compliant: "COMPLIANT"; - readonly NonCompliant: "NON_COMPLIANT"; -}; -export type ComplianceStatus = - (typeof ComplianceStatus)[keyof typeof ComplianceStatus]; -export interface ComplianceItem { - ComplianceType?: string; - ResourceType?: string; - ResourceId?: string; - Id?: string; - Title?: string; - Status?: ComplianceStatus; - Severity?: ComplianceSeverity; - ExecutionSummary?: ComplianceExecutionSummary; - Details?: Record; -} -export interface ListComplianceItemsResult { - ComplianceItems?: ComplianceItem[]; - NextToken?: string; -} -export interface ListComplianceSummariesRequest { - Filters?: ComplianceStringFilter[]; - NextToken?: string; - MaxResults?: number; -} -export interface SeveritySummary { - CriticalCount?: number; - HighCount?: number; - MediumCount?: number; - LowCount?: number; - InformationalCount?: number; - UnspecifiedCount?: number; -} -export interface CompliantSummary { - CompliantCount?: number; - SeveritySummary?: SeveritySummary; -} -export interface NonCompliantSummary { - NonCompliantCount?: number; - SeveritySummary?: SeveritySummary; -} -export interface ComplianceSummaryItem { - ComplianceType?: string; - CompliantSummary?: CompliantSummary; - NonCompliantSummary?: NonCompliantSummary; -} -export interface ListComplianceSummariesResult { - ComplianceSummaryItems?: ComplianceSummaryItem[]; - NextToken?: string; -} -export declare const DocumentMetadataEnum: { - readonly DocumentReviews: "DocumentReviews"; -}; -export type DocumentMetadataEnum = - (typeof DocumentMetadataEnum)[keyof typeof DocumentMetadataEnum]; -export interface ListDocumentMetadataHistoryRequest { - Name: string | undefined; - DocumentVersion?: string; - Metadata: DocumentMetadataEnum | undefined; - NextToken?: string; - MaxResults?: number; -} -export declare const DocumentReviewCommentType: { - readonly Comment: "Comment"; -}; -export type DocumentReviewCommentType = - (typeof DocumentReviewCommentType)[keyof typeof DocumentReviewCommentType]; -export interface DocumentReviewCommentSource { - Type?: DocumentReviewCommentType; - Content?: string; -} -export interface DocumentReviewerResponseSource { - CreateTime?: Date; - UpdatedTime?: Date; - ReviewStatus?: ReviewStatus; - Comment?: DocumentReviewCommentSource[]; - Reviewer?: string; -} -export interface DocumentMetadataResponseInfo { - ReviewerResponse?: DocumentReviewerResponseSource[]; -} -export interface ListDocumentMetadataHistoryResponse { - Name?: string; - DocumentVersion?: string; - Author?: string; - Metadata?: DocumentMetadataResponseInfo; - NextToken?: string; -} -export declare const DocumentFilterKey: { - readonly DocumentType: "DocumentType"; - readonly Name: "Name"; - readonly Owner: "Owner"; - readonly PlatformTypes: "PlatformTypes"; -}; -export type DocumentFilterKey = - (typeof DocumentFilterKey)[keyof typeof DocumentFilterKey]; -export interface DocumentFilter { - key: DocumentFilterKey | undefined; - value: string | undefined; -} -export interface DocumentKeyValuesFilter { - Key?: string; - Values?: string[]; -} -export interface ListDocumentsRequest { - DocumentFilterList?: DocumentFilter[]; - Filters?: DocumentKeyValuesFilter[]; - MaxResults?: number; - NextToken?: string; -} -export interface DocumentIdentifier { - Name?: string; - CreatedDate?: Date; - DisplayName?: string; - Owner?: string; - VersionName?: string; - PlatformTypes?: PlatformType[]; - DocumentVersion?: string; - DocumentType?: DocumentType; - SchemaVersion?: string; - DocumentFormat?: DocumentFormat; - TargetType?: string; - Tags?: Tag[]; - Requires?: DocumentRequires[]; - ReviewStatus?: ReviewStatus; - Author?: string; -} -export interface ListDocumentsResult { - DocumentIdentifiers?: DocumentIdentifier[]; - NextToken?: string; -} -export interface ListDocumentVersionsRequest { - Name: string | undefined; - MaxResults?: number; - NextToken?: string; -} -export interface DocumentVersionInfo { - Name?: string; - DisplayName?: string; - DocumentVersion?: string; - VersionName?: string; - CreatedDate?: Date; - IsDefaultVersion?: boolean; - DocumentFormat?: DocumentFormat; - Status?: DocumentStatus; - StatusInformation?: string; - ReviewStatus?: ReviewStatus; -} -export interface ListDocumentVersionsResult { - DocumentVersions?: DocumentVersionInfo[]; - NextToken?: string; -} -export interface ListInventoryEntriesRequest { - InstanceId: string | undefined; - TypeName: string | undefined; - Filters?: InventoryFilter[]; - NextToken?: string; - MaxResults?: number; -} -export interface ListInventoryEntriesResult { - TypeName?: string; - InstanceId?: string; - SchemaVersion?: string; - CaptureTime?: string; - Entries?: Record[]; - NextToken?: string; -} -export declare const OpsItemEventFilterKey: { - readonly OPSITEM_ID: "OpsItemId"; -}; -export type OpsItemEventFilterKey = - (typeof OpsItemEventFilterKey)[keyof typeof OpsItemEventFilterKey]; -export declare const OpsItemEventFilterOperator: { - readonly EQUAL: "Equal"; -}; -export type OpsItemEventFilterOperator = - (typeof OpsItemEventFilterOperator)[keyof typeof OpsItemEventFilterOperator]; -export interface OpsItemEventFilter { - Key: OpsItemEventFilterKey | undefined; - Values: string[] | undefined; - Operator: OpsItemEventFilterOperator | undefined; -} -export interface ListOpsItemEventsRequest { - Filters?: OpsItemEventFilter[]; - MaxResults?: number; - NextToken?: string; -} -export interface OpsItemIdentity { - Arn?: string; -} -export interface OpsItemEventSummary { - OpsItemId?: string; - EventId?: string; - Source?: string; - DetailType?: string; - Detail?: string; - CreatedBy?: OpsItemIdentity; - CreatedTime?: Date; -} -export interface ListOpsItemEventsResponse { - NextToken?: string; - Summaries?: OpsItemEventSummary[]; -} -export declare const OpsItemRelatedItemsFilterKey: { - readonly ASSOCIATION_ID: "AssociationId"; - readonly RESOURCE_TYPE: "ResourceType"; - readonly RESOURCE_URI: "ResourceUri"; -}; -export type OpsItemRelatedItemsFilterKey = - (typeof OpsItemRelatedItemsFilterKey)[keyof typeof OpsItemRelatedItemsFilterKey]; -export declare const OpsItemRelatedItemsFilterOperator: { - readonly EQUAL: "Equal"; -}; -export type OpsItemRelatedItemsFilterOperator = - (typeof OpsItemRelatedItemsFilterOperator)[keyof typeof OpsItemRelatedItemsFilterOperator]; -export interface OpsItemRelatedItemsFilter { - Key: OpsItemRelatedItemsFilterKey | undefined; - Values: string[] | undefined; - Operator: OpsItemRelatedItemsFilterOperator | undefined; -} -export interface ListOpsItemRelatedItemsRequest { - OpsItemId?: string; - Filters?: OpsItemRelatedItemsFilter[]; - MaxResults?: number; - NextToken?: string; -} -export interface OpsItemRelatedItemSummary { - OpsItemId?: string; - AssociationId?: string; - ResourceType?: string; - AssociationType?: string; - ResourceUri?: string; - CreatedBy?: OpsItemIdentity; - CreatedTime?: Date; - LastModifiedBy?: OpsItemIdentity; - LastModifiedTime?: Date; -} -export interface ListOpsItemRelatedItemsResponse { - NextToken?: string; - Summaries?: OpsItemRelatedItemSummary[]; -} -export interface OpsMetadataFilter { - Key: string | undefined; - Values: string[] | undefined; -} -export interface ListOpsMetadataRequest { - Filters?: OpsMetadataFilter[]; - MaxResults?: number; - NextToken?: string; -} -export interface OpsMetadata { - ResourceId?: string; - OpsMetadataArn?: string; - LastModifiedDate?: Date; - LastModifiedUser?: string; - CreationDate?: Date; -} -export interface ListOpsMetadataResult { - OpsMetadataList?: OpsMetadata[]; - NextToken?: string; -} -export interface ListResourceComplianceSummariesRequest { - Filters?: ComplianceStringFilter[]; - NextToken?: string; - MaxResults?: number; -} -export interface ResourceComplianceSummaryItem { - ComplianceType?: string; - ResourceType?: string; - ResourceId?: string; - Status?: ComplianceStatus; - OverallSeverity?: ComplianceSeverity; - ExecutionSummary?: ComplianceExecutionSummary; - CompliantSummary?: CompliantSummary; - NonCompliantSummary?: NonCompliantSummary; -} -export interface ListResourceComplianceSummariesResult { - ResourceComplianceSummaryItems?: ResourceComplianceSummaryItem[]; - NextToken?: string; -} -export interface ListResourceDataSyncRequest { - SyncType?: string; - NextToken?: string; - MaxResults?: number; -} -export declare const LastResourceDataSyncStatus: { - readonly FAILED: "Failed"; - readonly INPROGRESS: "InProgress"; - readonly SUCCESSFUL: "Successful"; -}; -export type LastResourceDataSyncStatus = - (typeof LastResourceDataSyncStatus)[keyof typeof LastResourceDataSyncStatus]; -export interface ResourceDataSyncSourceWithState { - SourceType?: string; - AwsOrganizationsSource?: ResourceDataSyncAwsOrganizationsSource; - SourceRegions?: string[]; - IncludeFutureRegions?: boolean; - State?: string; - EnableAllOpsDataSources?: boolean; -} -export interface ResourceDataSyncItem { - SyncName?: string; - SyncType?: string; - SyncSource?: ResourceDataSyncSourceWithState; - S3Destination?: ResourceDataSyncS3Destination; - LastSyncTime?: Date; - LastSuccessfulSyncTime?: Date; - SyncLastModifiedTime?: Date; - LastStatus?: LastResourceDataSyncStatus; - SyncCreatedTime?: Date; - LastSyncStatusMessage?: string; -} -export interface ListResourceDataSyncResult { - ResourceDataSyncItems?: ResourceDataSyncItem[]; - NextToken?: string; -} -export interface ListTagsForResourceRequest { - ResourceType: ResourceTypeForTagging | undefined; - ResourceId: string | undefined; -} -export interface ListTagsForResourceResult { - TagList?: Tag[]; -} -export declare class DocumentPermissionLimit extends __BaseException { - readonly name: "DocumentPermissionLimit"; - readonly $fault: "client"; - Message?: string; - constructor( - opts: __ExceptionOptionType - ); -} -export interface ModifyDocumentPermissionRequest { - Name: string | undefined; - PermissionType: DocumentPermissionType | undefined; - AccountIdsToAdd?: string[]; - AccountIdsToRemove?: string[]; - SharedDocumentVersion?: string; -} -export interface ModifyDocumentPermissionResponse {} -export declare class ComplianceTypeCountLimitExceededException extends __BaseException { - readonly name: "ComplianceTypeCountLimitExceededException"; - readonly $fault: "client"; - Message?: string; - constructor( - opts: __ExceptionOptionType< - ComplianceTypeCountLimitExceededException, - __BaseException - > - ); -} -export declare class InvalidItemContentException extends __BaseException { - readonly name: "InvalidItemContentException"; - readonly $fault: "client"; - TypeName?: string; - Message?: string; - constructor( - opts: __ExceptionOptionType - ); -} -export declare class ItemSizeLimitExceededException extends __BaseException { - readonly name: "ItemSizeLimitExceededException"; - readonly $fault: "client"; - TypeName?: string; - Message?: string; - constructor( - opts: __ExceptionOptionType - ); -} -export interface ComplianceItemEntry { - Id?: string; - Title?: string; - Severity: ComplianceSeverity | undefined; - Status: ComplianceStatus | undefined; - Details?: Record; -} -export declare const ComplianceUploadType: { - readonly Complete: "COMPLETE"; - readonly Partial: "PARTIAL"; -}; -export type ComplianceUploadType = - (typeof ComplianceUploadType)[keyof typeof ComplianceUploadType]; -export interface PutComplianceItemsRequest { - ResourceId: string | undefined; - ResourceType: string | undefined; - ComplianceType: string | undefined; - ExecutionSummary: ComplianceExecutionSummary | undefined; - Items: ComplianceItemEntry[] | undefined; - ItemContentHash?: string; - UploadType?: ComplianceUploadType; -} -export interface PutComplianceItemsResult {} -export declare class TotalSizeLimitExceededException extends __BaseException { - readonly name: "TotalSizeLimitExceededException"; - readonly $fault: "client"; - Message?: string; - constructor( - opts: __ExceptionOptionType< - TotalSizeLimitExceededException, - __BaseException - > - ); -} -export declare class CustomSchemaCountLimitExceededException extends __BaseException { - readonly name: "CustomSchemaCountLimitExceededException"; - readonly $fault: "client"; - Message?: string; - constructor( - opts: __ExceptionOptionType< - CustomSchemaCountLimitExceededException, - __BaseException - > - ); -} -export declare class InvalidInventoryItemContextException extends __BaseException { - readonly name: "InvalidInventoryItemContextException"; - readonly $fault: "client"; - Message?: string; - constructor( - opts: __ExceptionOptionType< - InvalidInventoryItemContextException, - __BaseException - > - ); -} -export declare class ItemContentMismatchException extends __BaseException { - readonly name: "ItemContentMismatchException"; - readonly $fault: "client"; - TypeName?: string; - Message?: string; - constructor( - opts: __ExceptionOptionType - ); -} -export interface InventoryItem { - TypeName: string | undefined; - SchemaVersion: string | undefined; - CaptureTime: string | undefined; - ContentHash?: string; - Content?: Record[]; - Context?: Record; -} -export interface PutInventoryRequest { - InstanceId: string | undefined; - Items: InventoryItem[] | undefined; -} -export interface PutInventoryResult { - Message?: string; -} -export declare class SubTypeCountLimitExceededException extends __BaseException { - readonly name: "SubTypeCountLimitExceededException"; - readonly $fault: "client"; - Message?: string; - constructor( - opts: __ExceptionOptionType< - SubTypeCountLimitExceededException, - __BaseException - > - ); -} -export declare class UnsupportedInventoryItemContextException extends __BaseException { - readonly name: "UnsupportedInventoryItemContextException"; - readonly $fault: "client"; - TypeName?: string; - Message?: string; - constructor( - opts: __ExceptionOptionType< - UnsupportedInventoryItemContextException, - __BaseException - > - ); -} -export declare class UnsupportedInventorySchemaVersionException extends __BaseException { - readonly name: "UnsupportedInventorySchemaVersionException"; - readonly $fault: "client"; - Message?: string; - constructor( - opts: __ExceptionOptionType< - UnsupportedInventorySchemaVersionException, - __BaseException - > - ); -} -export declare class HierarchyLevelLimitExceededException extends __BaseException { - readonly name: "HierarchyLevelLimitExceededException"; - readonly $fault: "client"; - constructor( - opts: __ExceptionOptionType< - HierarchyLevelLimitExceededException, - __BaseException - > - ); -} -export declare class HierarchyTypeMismatchException extends __BaseException { - readonly name: "HierarchyTypeMismatchException"; - readonly $fault: "client"; - constructor( - opts: __ExceptionOptionType - ); -} -export declare class IncompatiblePolicyException extends __BaseException { - readonly name: "IncompatiblePolicyException"; - readonly $fault: "client"; - constructor( - opts: __ExceptionOptionType - ); -} -export declare class InvalidAllowedPatternException extends __BaseException { - readonly name: "InvalidAllowedPatternException"; - readonly $fault: "client"; - constructor( - opts: __ExceptionOptionType - ); -} -export declare class InvalidPolicyAttributeException extends __BaseException { - readonly name: "InvalidPolicyAttributeException"; - readonly $fault: "client"; - constructor( - opts: __ExceptionOptionType< - InvalidPolicyAttributeException, - __BaseException - > - ); -} -export declare class InvalidPolicyTypeException extends __BaseException { - readonly name: "InvalidPolicyTypeException"; - readonly $fault: "client"; - constructor( - opts: __ExceptionOptionType - ); -} -export declare class ParameterAlreadyExists extends __BaseException { - readonly name: "ParameterAlreadyExists"; - readonly $fault: "client"; - constructor( - opts: __ExceptionOptionType - ); -} -export declare class ParameterLimitExceeded extends __BaseException { - readonly name: "ParameterLimitExceeded"; - readonly $fault: "client"; - constructor( - opts: __ExceptionOptionType - ); -} -export declare class ParameterMaxVersionLimitExceeded extends __BaseException { - readonly name: "ParameterMaxVersionLimitExceeded"; - readonly $fault: "client"; - constructor( - opts: __ExceptionOptionType< - ParameterMaxVersionLimitExceeded, - __BaseException - > - ); -} -export declare class ParameterPatternMismatchException extends __BaseException { - readonly name: "ParameterPatternMismatchException"; - readonly $fault: "client"; - constructor( - opts: __ExceptionOptionType< - ParameterPatternMismatchException, - __BaseException - > - ); -} -export declare class PoliciesLimitExceededException extends __BaseException { - readonly name: "PoliciesLimitExceededException"; - readonly $fault: "client"; - constructor( - opts: __ExceptionOptionType - ); -} -export interface PutParameterRequest { - Name: string | undefined; - Description?: string; - Value: string | undefined; - Type?: ParameterType; - KeyId?: string; - Overwrite?: boolean; - AllowedPattern?: string; - Tags?: Tag[]; - Tier?: ParameterTier; - Policies?: string; - DataType?: string; -} -export interface PutParameterResult { - Version?: number; - Tier?: ParameterTier; -} -export declare class UnsupportedParameterType extends __BaseException { - readonly name: "UnsupportedParameterType"; - readonly $fault: "client"; - constructor( - opts: __ExceptionOptionType - ); -} -export interface PutResourcePolicyRequest { - ResourceArn: string | undefined; - Policy: string | undefined; - PolicyId?: string; - PolicyHash?: string; -} -export interface PutResourcePolicyResponse { - PolicyId?: string; - PolicyHash?: string; -} -export declare class ResourcePolicyLimitExceededException extends __BaseException { - readonly name: "ResourcePolicyLimitExceededException"; - readonly $fault: "client"; - Limit?: number; - LimitType?: string; - Message?: string; - constructor( - opts: __ExceptionOptionType< - ResourcePolicyLimitExceededException, - __BaseException - > - ); -} -export interface RegisterDefaultPatchBaselineRequest { - BaselineId: string | undefined; -} -export interface RegisterDefaultPatchBaselineResult { - BaselineId?: string; -} -export interface RegisterPatchBaselineForPatchGroupRequest { - BaselineId: string | undefined; - PatchGroup: string | undefined; -} -export interface RegisterPatchBaselineForPatchGroupResult { - BaselineId?: string; - PatchGroup?: string; -} -export interface RegisterTargetWithMaintenanceWindowRequest { - WindowId: string | undefined; - ResourceType: MaintenanceWindowResourceType | undefined; - Targets: Target[] | undefined; - OwnerInformation?: string; - Name?: string; - Description?: string; - ClientToken?: string; -} -export interface RegisterTargetWithMaintenanceWindowResult { - WindowTargetId?: string; -} -export declare class FeatureNotAvailableException extends __BaseException { - readonly name: "FeatureNotAvailableException"; - readonly $fault: "client"; - Message?: string; - constructor( - opts: __ExceptionOptionType - ); -} -export interface RegisterTaskWithMaintenanceWindowRequest { - WindowId: string | undefined; - Targets?: Target[]; - TaskArn: string | undefined; - ServiceRoleArn?: string; - TaskType: MaintenanceWindowTaskType | undefined; - TaskParameters?: Record< - string, - MaintenanceWindowTaskParameterValueExpression - >; - TaskInvocationParameters?: MaintenanceWindowTaskInvocationParameters; - Priority?: number; - MaxConcurrency?: string; - MaxErrors?: string; - LoggingInfo?: LoggingInfo; - Name?: string; - Description?: string; - ClientToken?: string; - CutoffBehavior?: MaintenanceWindowTaskCutoffBehavior; - AlarmConfiguration?: AlarmConfiguration; -} -export interface RegisterTaskWithMaintenanceWindowResult { - WindowTaskId?: string; -} -export interface RemoveTagsFromResourceRequest { - ResourceType: ResourceTypeForTagging | undefined; - ResourceId: string | undefined; - TagKeys: string[] | undefined; -} -export interface RemoveTagsFromResourceResult {} -export interface ResetServiceSettingRequest { - SettingId: string | undefined; -} -export interface ResetServiceSettingResult { - ServiceSetting?: ServiceSetting; -} -export interface ResumeSessionRequest { - SessionId: string | undefined; -} -export interface ResumeSessionResponse { - SessionId?: string; - TokenValue?: string; - StreamUrl?: string; -} -export declare class AutomationStepNotFoundException extends __BaseException { - readonly name: "AutomationStepNotFoundException"; - readonly $fault: "client"; - Message?: string; - constructor( - opts: __ExceptionOptionType< - AutomationStepNotFoundException, - __BaseException - > - ); -} -export declare class InvalidAutomationSignalException extends __BaseException { - readonly name: "InvalidAutomationSignalException"; - readonly $fault: "client"; - Message?: string; - constructor( - opts: __ExceptionOptionType< - InvalidAutomationSignalException, - __BaseException - > - ); -} -export declare const SignalType: { - readonly APPROVE: "Approve"; - readonly REJECT: "Reject"; - readonly RESUME: "Resume"; - readonly START_STEP: "StartStep"; - readonly STOP_STEP: "StopStep"; -}; -export type SignalType = (typeof SignalType)[keyof typeof SignalType]; -export interface SendAutomationSignalRequest { - AutomationExecutionId: string | undefined; - SignalType: SignalType | undefined; - Payload?: Record; -} -export interface SendAutomationSignalResult {} -export declare class InvalidNotificationConfig extends __BaseException { - readonly name: "InvalidNotificationConfig"; - readonly $fault: "client"; - Message?: string; - constructor( - opts: __ExceptionOptionType - ); -} -export declare class InvalidOutputFolder extends __BaseException { - readonly name: "InvalidOutputFolder"; - readonly $fault: "client"; - constructor( - opts: __ExceptionOptionType - ); -} -export declare class InvalidRole extends __BaseException { - readonly name: "InvalidRole"; - readonly $fault: "client"; - Message?: string; - constructor(opts: __ExceptionOptionType); -} -export interface SendCommandRequest { - InstanceIds?: string[]; - Targets?: Target[]; - DocumentName: string | undefined; - DocumentVersion?: string; - DocumentHash?: string; - DocumentHashType?: DocumentHashType; - TimeoutSeconds?: number; - Comment?: string; - Parameters?: Record; - OutputS3Region?: string; - OutputS3BucketName?: string; - OutputS3KeyPrefix?: string; - MaxConcurrency?: string; - MaxErrors?: string; - ServiceRoleArn?: string; - NotificationConfig?: NotificationConfig; - CloudWatchOutputConfig?: CloudWatchOutputConfig; - AlarmConfiguration?: AlarmConfiguration; -} -export interface SendCommandResult { - Command?: Command; -} -export declare class InvalidAssociation extends __BaseException { - readonly name: "InvalidAssociation"; - readonly $fault: "client"; - Message?: string; - constructor(opts: __ExceptionOptionType); -} -export interface StartAssociationsOnceRequest { - AssociationIds: string[] | undefined; -} -export interface StartAssociationsOnceResult {} -export declare class AutomationDefinitionNotFoundException extends __BaseException { - readonly name: "AutomationDefinitionNotFoundException"; - readonly $fault: "client"; - Message?: string; - constructor( - opts: __ExceptionOptionType< - AutomationDefinitionNotFoundException, - __BaseException - > - ); -} -export declare class AutomationDefinitionVersionNotFoundException extends __BaseException { - readonly name: "AutomationDefinitionVersionNotFoundException"; - readonly $fault: "client"; - Message?: string; - constructor( - opts: __ExceptionOptionType< - AutomationDefinitionVersionNotFoundException, - __BaseException - > - ); -} -export declare class AutomationExecutionLimitExceededException extends __BaseException { - readonly name: "AutomationExecutionLimitExceededException"; - readonly $fault: "client"; - Message?: string; - constructor( - opts: __ExceptionOptionType< - AutomationExecutionLimitExceededException, - __BaseException - > - ); -} -export declare class InvalidAutomationExecutionParametersException extends __BaseException { - readonly name: "InvalidAutomationExecutionParametersException"; - readonly $fault: "client"; - Message?: string; - constructor( - opts: __ExceptionOptionType< - InvalidAutomationExecutionParametersException, - __BaseException - > - ); -} -export interface StartAutomationExecutionRequest { - DocumentName: string | undefined; - DocumentVersion?: string; - Parameters?: Record; - ClientToken?: string; - Mode?: ExecutionMode; - TargetParameterName?: string; - Targets?: Target[]; - TargetMaps?: Record[]; - MaxConcurrency?: string; - MaxErrors?: string; - TargetLocations?: TargetLocation[]; - Tags?: Tag[]; - AlarmConfiguration?: AlarmConfiguration; -} -export interface StartAutomationExecutionResult { - AutomationExecutionId?: string; -} -export declare class AutomationDefinitionNotApprovedException extends __BaseException { - readonly name: "AutomationDefinitionNotApprovedException"; - readonly $fault: "client"; - Message?: string; - constructor( - opts: __ExceptionOptionType< - AutomationDefinitionNotApprovedException, - __BaseException - > - ); -} -export interface StartChangeRequestExecutionRequest { - ScheduledTime?: Date; - DocumentName: string | undefined; - DocumentVersion?: string; - Parameters?: Record; - ChangeRequestName?: string; - ClientToken?: string; - AutoApprove?: boolean; - Runbooks: Runbook[] | undefined; - Tags?: Tag[]; - ScheduledEndTime?: Date; - ChangeDetails?: string; -} -export interface StartChangeRequestExecutionResult { - AutomationExecutionId?: string; -} -export interface StartSessionRequest { - Target: string | undefined; - DocumentName?: string; - Reason?: string; - Parameters?: Record; -} -export interface StartSessionResponse { - SessionId?: string; - TokenValue?: string; - StreamUrl?: string; -} -export declare class TargetNotConnected extends __BaseException { - readonly name: "TargetNotConnected"; - readonly $fault: "client"; - Message?: string; - constructor(opts: __ExceptionOptionType); -} -export declare class InvalidAutomationStatusUpdateException extends __BaseException { - readonly name: "InvalidAutomationStatusUpdateException"; - readonly $fault: "client"; - Message?: string; - constructor( - opts: __ExceptionOptionType< - InvalidAutomationStatusUpdateException, - __BaseException - > - ); -} -export declare const StopType: { - readonly CANCEL: "Cancel"; - readonly COMPLETE: "Complete"; -}; -export type StopType = (typeof StopType)[keyof typeof StopType]; -export interface StopAutomationExecutionRequest { - AutomationExecutionId: string | undefined; - Type?: StopType; -} -export interface StopAutomationExecutionResult {} -export interface TerminateSessionRequest { - SessionId: string | undefined; -} -export declare const MaintenanceWindowTaskFilterSensitiveLog: ( - obj: MaintenanceWindowTask -) => any; -export declare const DescribeMaintenanceWindowTasksResultFilterSensitiveLog: ( - obj: DescribeMaintenanceWindowTasksResult -) => any; -export declare const BaselineOverrideFilterSensitiveLog: ( - obj: BaselineOverride -) => any; -export declare const GetDeployablePatchSnapshotForInstanceRequestFilterSensitiveLog: ( - obj: GetDeployablePatchSnapshotForInstanceRequest -) => any; -export declare const GetMaintenanceWindowResultFilterSensitiveLog: ( - obj: GetMaintenanceWindowResult -) => any; -export declare const GetMaintenanceWindowExecutionTaskResultFilterSensitiveLog: ( - obj: GetMaintenanceWindowExecutionTaskResult -) => any; -export declare const GetMaintenanceWindowExecutionTaskInvocationResultFilterSensitiveLog: ( - obj: GetMaintenanceWindowExecutionTaskInvocationResult -) => any; -export declare const MaintenanceWindowLambdaParametersFilterSensitiveLog: ( - obj: MaintenanceWindowLambdaParameters -) => any; -export declare const MaintenanceWindowRunCommandParametersFilterSensitiveLog: ( - obj: MaintenanceWindowRunCommandParameters -) => any; -export declare const MaintenanceWindowStepFunctionsParametersFilterSensitiveLog: ( - obj: MaintenanceWindowStepFunctionsParameters -) => any; -export declare const MaintenanceWindowTaskInvocationParametersFilterSensitiveLog: ( - obj: MaintenanceWindowTaskInvocationParameters -) => any; -export declare const GetMaintenanceWindowTaskResultFilterSensitiveLog: ( - obj: GetMaintenanceWindowTaskResult -) => any; -export declare const ParameterFilterSensitiveLog: (obj: Parameter) => any; -export declare const GetParameterResultFilterSensitiveLog: ( - obj: GetParameterResult -) => any; -export declare const ParameterHistoryFilterSensitiveLog: ( - obj: ParameterHistory -) => any; -export declare const GetParameterHistoryResultFilterSensitiveLog: ( - obj: GetParameterHistoryResult -) => any; -export declare const GetParametersResultFilterSensitiveLog: ( - obj: GetParametersResult -) => any; -export declare const GetParametersByPathResultFilterSensitiveLog: ( - obj: GetParametersByPathResult -) => any; -export declare const GetPatchBaselineResultFilterSensitiveLog: ( - obj: GetPatchBaselineResult -) => any; -export declare const AssociationVersionInfoFilterSensitiveLog: ( - obj: AssociationVersionInfo -) => any; -export declare const ListAssociationVersionsResultFilterSensitiveLog: ( - obj: ListAssociationVersionsResult -) => any; -export declare const CommandFilterSensitiveLog: (obj: Command) => any; -export declare const ListCommandsResultFilterSensitiveLog: ( - obj: ListCommandsResult -) => any; -export declare const PutParameterRequestFilterSensitiveLog: ( - obj: PutParameterRequest -) => any; -export declare const RegisterTargetWithMaintenanceWindowRequestFilterSensitiveLog: ( - obj: RegisterTargetWithMaintenanceWindowRequest -) => any; -export declare const RegisterTaskWithMaintenanceWindowRequestFilterSensitiveLog: ( - obj: RegisterTaskWithMaintenanceWindowRequest -) => any; -export declare const SendCommandRequestFilterSensitiveLog: ( - obj: SendCommandRequest -) => any; -export declare const SendCommandResultFilterSensitiveLog: ( - obj: SendCommandResult -) => any; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/models/models_2.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/models/models_2.d.ts deleted file mode 100644 index df524698..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/models/models_2.d.ts +++ /dev/null @@ -1,415 +0,0 @@ -import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; -import { - AlarmConfiguration, - AssociationComplianceSeverity, - AssociationDescription, - AssociationStatus, - AssociationSyncCompliance, - AttachmentsSource, - DocumentDescription, - DocumentFormat, - InstanceAssociationOutputLocation, - LoggingInfo, - MaintenanceWindowTaskCutoffBehavior, - MaintenanceWindowTaskParameterValueExpression, - MetadataValue, - OperatingSystem, - OpsItemDataValue, - OpsItemNotification, - PatchAction, - PatchComplianceLevel, - PatchFilterGroup, - PatchRuleGroup, - PatchSource, - RelatedOpsItem, - ResourceDataSyncSource, - Target, - TargetLocation, -} from "./models_0"; -import { - DocumentReviewCommentSource, - InventoryFilter, - InventoryGroup, - MaintenanceWindowTaskInvocationParameters, - OpsFilter, - OpsItemStatus, - OpsResultAttribute, - ResultAttribute, -} from "./models_1"; -import { SSMServiceException as __BaseException } from "./SSMServiceException"; -export interface TerminateSessionResponse { - SessionId?: string; -} -export interface UnlabelParameterVersionRequest { - Name: string | undefined; - ParameterVersion: number | undefined; - Labels: string[] | undefined; -} -export interface UnlabelParameterVersionResult { - RemovedLabels?: string[]; - InvalidLabels?: string[]; -} -export declare class AssociationVersionLimitExceeded extends __BaseException { - readonly name: "AssociationVersionLimitExceeded"; - readonly $fault: "client"; - Message?: string; - constructor( - opts: __ExceptionOptionType< - AssociationVersionLimitExceeded, - __BaseException - > - ); -} -export declare class InvalidUpdate extends __BaseException { - readonly name: "InvalidUpdate"; - readonly $fault: "client"; - Message?: string; - constructor(opts: __ExceptionOptionType); -} -export interface UpdateAssociationRequest { - AssociationId: string | undefined; - Parameters?: Record; - DocumentVersion?: string; - ScheduleExpression?: string; - OutputLocation?: InstanceAssociationOutputLocation; - Name?: string; - Targets?: Target[]; - AssociationName?: string; - AssociationVersion?: string; - AutomationTargetParameterName?: string; - MaxErrors?: string; - MaxConcurrency?: string; - ComplianceSeverity?: AssociationComplianceSeverity; - SyncCompliance?: AssociationSyncCompliance; - ApplyOnlyAtCronInterval?: boolean; - CalendarNames?: string[]; - TargetLocations?: TargetLocation[]; - ScheduleOffset?: number; - TargetMaps?: Record[]; - AlarmConfiguration?: AlarmConfiguration; -} -export interface UpdateAssociationResult { - AssociationDescription?: AssociationDescription; -} -export declare class StatusUnchanged extends __BaseException { - readonly name: "StatusUnchanged"; - readonly $fault: "client"; - constructor(opts: __ExceptionOptionType); -} -export interface UpdateAssociationStatusRequest { - Name: string | undefined; - InstanceId: string | undefined; - AssociationStatus: AssociationStatus | undefined; -} -export interface UpdateAssociationStatusResult { - AssociationDescription?: AssociationDescription; -} -export declare class DocumentVersionLimitExceeded extends __BaseException { - readonly name: "DocumentVersionLimitExceeded"; - readonly $fault: "client"; - Message?: string; - constructor( - opts: __ExceptionOptionType - ); -} -export declare class DuplicateDocumentContent extends __BaseException { - readonly name: "DuplicateDocumentContent"; - readonly $fault: "client"; - Message?: string; - constructor( - opts: __ExceptionOptionType - ); -} -export declare class DuplicateDocumentVersionName extends __BaseException { - readonly name: "DuplicateDocumentVersionName"; - readonly $fault: "client"; - Message?: string; - constructor( - opts: __ExceptionOptionType - ); -} -export interface UpdateDocumentRequest { - Content: string | undefined; - Attachments?: AttachmentsSource[]; - Name: string | undefined; - DisplayName?: string; - VersionName?: string; - DocumentVersion?: string; - DocumentFormat?: DocumentFormat; - TargetType?: string; -} -export interface UpdateDocumentResult { - DocumentDescription?: DocumentDescription; -} -export interface UpdateDocumentDefaultVersionRequest { - Name: string | undefined; - DocumentVersion: string | undefined; -} -export interface DocumentDefaultVersionDescription { - Name?: string; - DefaultVersion?: string; - DefaultVersionName?: string; -} -export interface UpdateDocumentDefaultVersionResult { - Description?: DocumentDefaultVersionDescription; -} -export declare const DocumentReviewAction: { - readonly Approve: "Approve"; - readonly Reject: "Reject"; - readonly SendForReview: "SendForReview"; - readonly UpdateReview: "UpdateReview"; -}; -export type DocumentReviewAction = - (typeof DocumentReviewAction)[keyof typeof DocumentReviewAction]; -export interface DocumentReviews { - Action: DocumentReviewAction | undefined; - Comment?: DocumentReviewCommentSource[]; -} -export interface UpdateDocumentMetadataRequest { - Name: string | undefined; - DocumentVersion?: string; - DocumentReviews: DocumentReviews | undefined; -} -export interface UpdateDocumentMetadataResponse {} -export interface UpdateMaintenanceWindowRequest { - WindowId: string | undefined; - Name?: string; - Description?: string; - StartDate?: string; - EndDate?: string; - Schedule?: string; - ScheduleTimezone?: string; - ScheduleOffset?: number; - Duration?: number; - Cutoff?: number; - AllowUnassociatedTargets?: boolean; - Enabled?: boolean; - Replace?: boolean; -} -export interface UpdateMaintenanceWindowResult { - WindowId?: string; - Name?: string; - Description?: string; - StartDate?: string; - EndDate?: string; - Schedule?: string; - ScheduleTimezone?: string; - ScheduleOffset?: number; - Duration?: number; - Cutoff?: number; - AllowUnassociatedTargets?: boolean; - Enabled?: boolean; -} -export interface UpdateMaintenanceWindowTargetRequest { - WindowId: string | undefined; - WindowTargetId: string | undefined; - Targets?: Target[]; - OwnerInformation?: string; - Name?: string; - Description?: string; - Replace?: boolean; -} -export interface UpdateMaintenanceWindowTargetResult { - WindowId?: string; - WindowTargetId?: string; - Targets?: Target[]; - OwnerInformation?: string; - Name?: string; - Description?: string; -} -export interface UpdateMaintenanceWindowTaskRequest { - WindowId: string | undefined; - WindowTaskId: string | undefined; - Targets?: Target[]; - TaskArn?: string; - ServiceRoleArn?: string; - TaskParameters?: Record< - string, - MaintenanceWindowTaskParameterValueExpression - >; - TaskInvocationParameters?: MaintenanceWindowTaskInvocationParameters; - Priority?: number; - MaxConcurrency?: string; - MaxErrors?: string; - LoggingInfo?: LoggingInfo; - Name?: string; - Description?: string; - Replace?: boolean; - CutoffBehavior?: MaintenanceWindowTaskCutoffBehavior; - AlarmConfiguration?: AlarmConfiguration; -} -export interface UpdateMaintenanceWindowTaskResult { - WindowId?: string; - WindowTaskId?: string; - Targets?: Target[]; - TaskArn?: string; - ServiceRoleArn?: string; - TaskParameters?: Record< - string, - MaintenanceWindowTaskParameterValueExpression - >; - TaskInvocationParameters?: MaintenanceWindowTaskInvocationParameters; - Priority?: number; - MaxConcurrency?: string; - MaxErrors?: string; - LoggingInfo?: LoggingInfo; - Name?: string; - Description?: string; - CutoffBehavior?: MaintenanceWindowTaskCutoffBehavior; - AlarmConfiguration?: AlarmConfiguration; -} -export interface UpdateManagedInstanceRoleRequest { - InstanceId: string | undefined; - IamRole: string | undefined; -} -export interface UpdateManagedInstanceRoleResult {} -export interface UpdateOpsItemRequest { - Description?: string; - OperationalData?: Record; - OperationalDataToDelete?: string[]; - Notifications?: OpsItemNotification[]; - Priority?: number; - RelatedOpsItems?: RelatedOpsItem[]; - Status?: OpsItemStatus; - OpsItemId: string | undefined; - Title?: string; - Category?: string; - Severity?: string; - ActualStartTime?: Date; - ActualEndTime?: Date; - PlannedStartTime?: Date; - PlannedEndTime?: Date; - OpsItemArn?: string; -} -export interface UpdateOpsItemResponse {} -export declare class OpsMetadataKeyLimitExceededException extends __BaseException { - readonly name: "OpsMetadataKeyLimitExceededException"; - readonly $fault: "client"; - constructor( - opts: __ExceptionOptionType< - OpsMetadataKeyLimitExceededException, - __BaseException - > - ); -} -export interface UpdateOpsMetadataRequest { - OpsMetadataArn: string | undefined; - MetadataToUpdate?: Record; - KeysToDelete?: string[]; -} -export interface UpdateOpsMetadataResult { - OpsMetadataArn?: string; -} -export interface UpdatePatchBaselineRequest { - BaselineId: string | undefined; - Name?: string; - GlobalFilters?: PatchFilterGroup; - ApprovalRules?: PatchRuleGroup; - ApprovedPatches?: string[]; - ApprovedPatchesComplianceLevel?: PatchComplianceLevel; - ApprovedPatchesEnableNonSecurity?: boolean; - RejectedPatches?: string[]; - RejectedPatchesAction?: PatchAction; - Description?: string; - Sources?: PatchSource[]; - Replace?: boolean; -} -export interface UpdatePatchBaselineResult { - BaselineId?: string; - Name?: string; - OperatingSystem?: OperatingSystem; - GlobalFilters?: PatchFilterGroup; - ApprovalRules?: PatchRuleGroup; - ApprovedPatches?: string[]; - ApprovedPatchesComplianceLevel?: PatchComplianceLevel; - ApprovedPatchesEnableNonSecurity?: boolean; - RejectedPatches?: string[]; - RejectedPatchesAction?: PatchAction; - CreatedDate?: Date; - ModifiedDate?: Date; - Description?: string; - Sources?: PatchSource[]; -} -export declare class ResourceDataSyncConflictException extends __BaseException { - readonly name: "ResourceDataSyncConflictException"; - readonly $fault: "client"; - Message?: string; - constructor( - opts: __ExceptionOptionType< - ResourceDataSyncConflictException, - __BaseException - > - ); -} -export interface UpdateResourceDataSyncRequest { - SyncName: string | undefined; - SyncType: string | undefined; - SyncSource: ResourceDataSyncSource | undefined; -} -export interface UpdateResourceDataSyncResult {} -export interface UpdateServiceSettingRequest { - SettingId: string | undefined; - SettingValue: string | undefined; -} -export interface UpdateServiceSettingResult {} -export interface InventoryAggregator { - Expression?: string; - Aggregators?: InventoryAggregator[]; - Groups?: InventoryGroup[]; -} -export interface OpsAggregator { - AggregatorType?: string; - TypeName?: string; - AttributeName?: string; - Values?: Record; - Filters?: OpsFilter[]; - Aggregators?: OpsAggregator[]; -} -export interface GetInventoryRequest { - Filters?: InventoryFilter[]; - Aggregators?: InventoryAggregator[]; - ResultAttributes?: ResultAttribute[]; - NextToken?: string; - MaxResults?: number; -} -export interface GetOpsSummaryRequest { - SyncName?: string; - Filters?: OpsFilter[]; - Aggregators?: OpsAggregator[]; - ResultAttributes?: OpsResultAttribute[]; - NextToken?: string; - MaxResults?: number; -} -export declare const UpdateAssociationRequestFilterSensitiveLog: ( - obj: UpdateAssociationRequest -) => any; -export declare const UpdateAssociationResultFilterSensitiveLog: ( - obj: UpdateAssociationResult -) => any; -export declare const UpdateAssociationStatusResultFilterSensitiveLog: ( - obj: UpdateAssociationStatusResult -) => any; -export declare const UpdateMaintenanceWindowRequestFilterSensitiveLog: ( - obj: UpdateMaintenanceWindowRequest -) => any; -export declare const UpdateMaintenanceWindowResultFilterSensitiveLog: ( - obj: UpdateMaintenanceWindowResult -) => any; -export declare const UpdateMaintenanceWindowTargetRequestFilterSensitiveLog: ( - obj: UpdateMaintenanceWindowTargetRequest -) => any; -export declare const UpdateMaintenanceWindowTargetResultFilterSensitiveLog: ( - obj: UpdateMaintenanceWindowTargetResult -) => any; -export declare const UpdateMaintenanceWindowTaskRequestFilterSensitiveLog: ( - obj: UpdateMaintenanceWindowTaskRequest -) => any; -export declare const UpdateMaintenanceWindowTaskResultFilterSensitiveLog: ( - obj: UpdateMaintenanceWindowTaskResult -) => any; -export declare const UpdatePatchBaselineRequestFilterSensitiveLog: ( - obj: UpdatePatchBaselineRequest -) => any; -export declare const UpdatePatchBaselineResultFilterSensitiveLog: ( - obj: UpdatePatchBaselineResult -) => any; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeActivationsPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeActivationsPaginator.d.ts deleted file mode 100644 index 4853e8ba..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeActivationsPaginator.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { - DescribeActivationsCommandInput, - DescribeActivationsCommandOutput, -} from "../commands/DescribeActivationsCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -export declare function paginateDescribeActivations( - config: SSMPaginationConfiguration, - input: DescribeActivationsCommandInput, - ...additionalArguments: any -): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeAssociationExecutionTargetsPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeAssociationExecutionTargetsPaginator.d.ts deleted file mode 100644 index ea8ff83a..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeAssociationExecutionTargetsPaginator.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { - DescribeAssociationExecutionTargetsCommandInput, - DescribeAssociationExecutionTargetsCommandOutput, -} from "../commands/DescribeAssociationExecutionTargetsCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -export declare function paginateDescribeAssociationExecutionTargets( - config: SSMPaginationConfiguration, - input: DescribeAssociationExecutionTargetsCommandInput, - ...additionalArguments: any -): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeAssociationExecutionsPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeAssociationExecutionsPaginator.d.ts deleted file mode 100644 index 342dfffa..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeAssociationExecutionsPaginator.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { - DescribeAssociationExecutionsCommandInput, - DescribeAssociationExecutionsCommandOutput, -} from "../commands/DescribeAssociationExecutionsCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -export declare function paginateDescribeAssociationExecutions( - config: SSMPaginationConfiguration, - input: DescribeAssociationExecutionsCommandInput, - ...additionalArguments: any -): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeAutomationExecutionsPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeAutomationExecutionsPaginator.d.ts deleted file mode 100644 index f46109dc..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeAutomationExecutionsPaginator.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { - DescribeAutomationExecutionsCommandInput, - DescribeAutomationExecutionsCommandOutput, -} from "../commands/DescribeAutomationExecutionsCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -export declare function paginateDescribeAutomationExecutions( - config: SSMPaginationConfiguration, - input: DescribeAutomationExecutionsCommandInput, - ...additionalArguments: any -): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeAutomationStepExecutionsPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeAutomationStepExecutionsPaginator.d.ts deleted file mode 100644 index a3895856..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeAutomationStepExecutionsPaginator.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { - DescribeAutomationStepExecutionsCommandInput, - DescribeAutomationStepExecutionsCommandOutput, -} from "../commands/DescribeAutomationStepExecutionsCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -export declare function paginateDescribeAutomationStepExecutions( - config: SSMPaginationConfiguration, - input: DescribeAutomationStepExecutionsCommandInput, - ...additionalArguments: any -): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeAvailablePatchesPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeAvailablePatchesPaginator.d.ts deleted file mode 100644 index 71e378e8..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeAvailablePatchesPaginator.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { - DescribeAvailablePatchesCommandInput, - DescribeAvailablePatchesCommandOutput, -} from "../commands/DescribeAvailablePatchesCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -export declare function paginateDescribeAvailablePatches( - config: SSMPaginationConfiguration, - input: DescribeAvailablePatchesCommandInput, - ...additionalArguments: any -): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeEffectiveInstanceAssociationsPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeEffectiveInstanceAssociationsPaginator.d.ts deleted file mode 100644 index 4312a1f8..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeEffectiveInstanceAssociationsPaginator.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { - DescribeEffectiveInstanceAssociationsCommandInput, - DescribeEffectiveInstanceAssociationsCommandOutput, -} from "../commands/DescribeEffectiveInstanceAssociationsCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -export declare function paginateDescribeEffectiveInstanceAssociations( - config: SSMPaginationConfiguration, - input: DescribeEffectiveInstanceAssociationsCommandInput, - ...additionalArguments: any -): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeEffectivePatchesForPatchBaselinePaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeEffectivePatchesForPatchBaselinePaginator.d.ts deleted file mode 100644 index 50ebc100..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeEffectivePatchesForPatchBaselinePaginator.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { - DescribeEffectivePatchesForPatchBaselineCommandInput, - DescribeEffectivePatchesForPatchBaselineCommandOutput, -} from "../commands/DescribeEffectivePatchesForPatchBaselineCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -export declare function paginateDescribeEffectivePatchesForPatchBaseline( - config: SSMPaginationConfiguration, - input: DescribeEffectivePatchesForPatchBaselineCommandInput, - ...additionalArguments: any -): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeInstanceAssociationsStatusPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeInstanceAssociationsStatusPaginator.d.ts deleted file mode 100644 index bc955cd2..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeInstanceAssociationsStatusPaginator.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { - DescribeInstanceAssociationsStatusCommandInput, - DescribeInstanceAssociationsStatusCommandOutput, -} from "../commands/DescribeInstanceAssociationsStatusCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -export declare function paginateDescribeInstanceAssociationsStatus( - config: SSMPaginationConfiguration, - input: DescribeInstanceAssociationsStatusCommandInput, - ...additionalArguments: any -): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeInstanceInformationPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeInstanceInformationPaginator.d.ts deleted file mode 100644 index 737a71fd..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeInstanceInformationPaginator.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { - DescribeInstanceInformationCommandInput, - DescribeInstanceInformationCommandOutput, -} from "../commands/DescribeInstanceInformationCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -export declare function paginateDescribeInstanceInformation( - config: SSMPaginationConfiguration, - input: DescribeInstanceInformationCommandInput, - ...additionalArguments: any -): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeInstancePatchStatesForPatchGroupPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeInstancePatchStatesForPatchGroupPaginator.d.ts deleted file mode 100644 index 3f077b80..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeInstancePatchStatesForPatchGroupPaginator.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { - DescribeInstancePatchStatesForPatchGroupCommandInput, - DescribeInstancePatchStatesForPatchGroupCommandOutput, -} from "../commands/DescribeInstancePatchStatesForPatchGroupCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -export declare function paginateDescribeInstancePatchStatesForPatchGroup( - config: SSMPaginationConfiguration, - input: DescribeInstancePatchStatesForPatchGroupCommandInput, - ...additionalArguments: any -): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeInstancePatchStatesPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeInstancePatchStatesPaginator.d.ts deleted file mode 100644 index f972d899..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeInstancePatchStatesPaginator.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { - DescribeInstancePatchStatesCommandInput, - DescribeInstancePatchStatesCommandOutput, -} from "../commands/DescribeInstancePatchStatesCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -export declare function paginateDescribeInstancePatchStates( - config: SSMPaginationConfiguration, - input: DescribeInstancePatchStatesCommandInput, - ...additionalArguments: any -): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeInstancePatchesPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeInstancePatchesPaginator.d.ts deleted file mode 100644 index e26d7f2d..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeInstancePatchesPaginator.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { - DescribeInstancePatchesCommandInput, - DescribeInstancePatchesCommandOutput, -} from "../commands/DescribeInstancePatchesCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -export declare function paginateDescribeInstancePatches( - config: SSMPaginationConfiguration, - input: DescribeInstancePatchesCommandInput, - ...additionalArguments: any -): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeInventoryDeletionsPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeInventoryDeletionsPaginator.d.ts deleted file mode 100644 index bddc1725..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeInventoryDeletionsPaginator.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { - DescribeInventoryDeletionsCommandInput, - DescribeInventoryDeletionsCommandOutput, -} from "../commands/DescribeInventoryDeletionsCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -export declare function paginateDescribeInventoryDeletions( - config: SSMPaginationConfiguration, - input: DescribeInventoryDeletionsCommandInput, - ...additionalArguments: any -): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeMaintenanceWindowExecutionTaskInvocationsPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeMaintenanceWindowExecutionTaskInvocationsPaginator.d.ts deleted file mode 100644 index 349c92a7..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeMaintenanceWindowExecutionTaskInvocationsPaginator.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { - DescribeMaintenanceWindowExecutionTaskInvocationsCommandInput, - DescribeMaintenanceWindowExecutionTaskInvocationsCommandOutput, -} from "../commands/DescribeMaintenanceWindowExecutionTaskInvocationsCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -export declare function paginateDescribeMaintenanceWindowExecutionTaskInvocations( - config: SSMPaginationConfiguration, - input: DescribeMaintenanceWindowExecutionTaskInvocationsCommandInput, - ...additionalArguments: any -): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeMaintenanceWindowExecutionTasksPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeMaintenanceWindowExecutionTasksPaginator.d.ts deleted file mode 100644 index 4efc4e92..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeMaintenanceWindowExecutionTasksPaginator.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { - DescribeMaintenanceWindowExecutionTasksCommandInput, - DescribeMaintenanceWindowExecutionTasksCommandOutput, -} from "../commands/DescribeMaintenanceWindowExecutionTasksCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -export declare function paginateDescribeMaintenanceWindowExecutionTasks( - config: SSMPaginationConfiguration, - input: DescribeMaintenanceWindowExecutionTasksCommandInput, - ...additionalArguments: any -): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeMaintenanceWindowExecutionsPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeMaintenanceWindowExecutionsPaginator.d.ts deleted file mode 100644 index e978b608..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeMaintenanceWindowExecutionsPaginator.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { - DescribeMaintenanceWindowExecutionsCommandInput, - DescribeMaintenanceWindowExecutionsCommandOutput, -} from "../commands/DescribeMaintenanceWindowExecutionsCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -export declare function paginateDescribeMaintenanceWindowExecutions( - config: SSMPaginationConfiguration, - input: DescribeMaintenanceWindowExecutionsCommandInput, - ...additionalArguments: any -): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeMaintenanceWindowSchedulePaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeMaintenanceWindowSchedulePaginator.d.ts deleted file mode 100644 index a454d719..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeMaintenanceWindowSchedulePaginator.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { - DescribeMaintenanceWindowScheduleCommandInput, - DescribeMaintenanceWindowScheduleCommandOutput, -} from "../commands/DescribeMaintenanceWindowScheduleCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -export declare function paginateDescribeMaintenanceWindowSchedule( - config: SSMPaginationConfiguration, - input: DescribeMaintenanceWindowScheduleCommandInput, - ...additionalArguments: any -): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeMaintenanceWindowTargetsPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeMaintenanceWindowTargetsPaginator.d.ts deleted file mode 100644 index a5f42760..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeMaintenanceWindowTargetsPaginator.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { - DescribeMaintenanceWindowTargetsCommandInput, - DescribeMaintenanceWindowTargetsCommandOutput, -} from "../commands/DescribeMaintenanceWindowTargetsCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -export declare function paginateDescribeMaintenanceWindowTargets( - config: SSMPaginationConfiguration, - input: DescribeMaintenanceWindowTargetsCommandInput, - ...additionalArguments: any -): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeMaintenanceWindowTasksPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeMaintenanceWindowTasksPaginator.d.ts deleted file mode 100644 index dc97e87d..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeMaintenanceWindowTasksPaginator.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { - DescribeMaintenanceWindowTasksCommandInput, - DescribeMaintenanceWindowTasksCommandOutput, -} from "../commands/DescribeMaintenanceWindowTasksCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -export declare function paginateDescribeMaintenanceWindowTasks( - config: SSMPaginationConfiguration, - input: DescribeMaintenanceWindowTasksCommandInput, - ...additionalArguments: any -): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeMaintenanceWindowsForTargetPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeMaintenanceWindowsForTargetPaginator.d.ts deleted file mode 100644 index 944504f2..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeMaintenanceWindowsForTargetPaginator.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { - DescribeMaintenanceWindowsForTargetCommandInput, - DescribeMaintenanceWindowsForTargetCommandOutput, -} from "../commands/DescribeMaintenanceWindowsForTargetCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -export declare function paginateDescribeMaintenanceWindowsForTarget( - config: SSMPaginationConfiguration, - input: DescribeMaintenanceWindowsForTargetCommandInput, - ...additionalArguments: any -): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeMaintenanceWindowsPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeMaintenanceWindowsPaginator.d.ts deleted file mode 100644 index 93e162fc..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeMaintenanceWindowsPaginator.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { - DescribeMaintenanceWindowsCommandInput, - DescribeMaintenanceWindowsCommandOutput, -} from "../commands/DescribeMaintenanceWindowsCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -export declare function paginateDescribeMaintenanceWindows( - config: SSMPaginationConfiguration, - input: DescribeMaintenanceWindowsCommandInput, - ...additionalArguments: any -): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeOpsItemsPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeOpsItemsPaginator.d.ts deleted file mode 100644 index 910844da..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeOpsItemsPaginator.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { - DescribeOpsItemsCommandInput, - DescribeOpsItemsCommandOutput, -} from "../commands/DescribeOpsItemsCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -export declare function paginateDescribeOpsItems( - config: SSMPaginationConfiguration, - input: DescribeOpsItemsCommandInput, - ...additionalArguments: any -): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeParametersPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeParametersPaginator.d.ts deleted file mode 100644 index fccb5c85..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeParametersPaginator.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { - DescribeParametersCommandInput, - DescribeParametersCommandOutput, -} from "../commands/DescribeParametersCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -export declare function paginateDescribeParameters( - config: SSMPaginationConfiguration, - input: DescribeParametersCommandInput, - ...additionalArguments: any -): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribePatchBaselinesPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribePatchBaselinesPaginator.d.ts deleted file mode 100644 index 614cfafe..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribePatchBaselinesPaginator.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { - DescribePatchBaselinesCommandInput, - DescribePatchBaselinesCommandOutput, -} from "../commands/DescribePatchBaselinesCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -export declare function paginateDescribePatchBaselines( - config: SSMPaginationConfiguration, - input: DescribePatchBaselinesCommandInput, - ...additionalArguments: any -): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribePatchGroupsPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribePatchGroupsPaginator.d.ts deleted file mode 100644 index b202de69..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribePatchGroupsPaginator.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { - DescribePatchGroupsCommandInput, - DescribePatchGroupsCommandOutput, -} from "../commands/DescribePatchGroupsCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -export declare function paginateDescribePatchGroups( - config: SSMPaginationConfiguration, - input: DescribePatchGroupsCommandInput, - ...additionalArguments: any -): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribePatchPropertiesPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribePatchPropertiesPaginator.d.ts deleted file mode 100644 index 77465ae9..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribePatchPropertiesPaginator.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { - DescribePatchPropertiesCommandInput, - DescribePatchPropertiesCommandOutput, -} from "../commands/DescribePatchPropertiesCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -export declare function paginateDescribePatchProperties( - config: SSMPaginationConfiguration, - input: DescribePatchPropertiesCommandInput, - ...additionalArguments: any -): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeSessionsPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeSessionsPaginator.d.ts deleted file mode 100644 index 33b891a0..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/DescribeSessionsPaginator.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { - DescribeSessionsCommandInput, - DescribeSessionsCommandOutput, -} from "../commands/DescribeSessionsCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -export declare function paginateDescribeSessions( - config: SSMPaginationConfiguration, - input: DescribeSessionsCommandInput, - ...additionalArguments: any -): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/GetInventoryPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/GetInventoryPaginator.d.ts deleted file mode 100644 index 23c710ad..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/GetInventoryPaginator.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { - GetInventoryCommandInput, - GetInventoryCommandOutput, -} from "../commands/GetInventoryCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -export declare function paginateGetInventory( - config: SSMPaginationConfiguration, - input: GetInventoryCommandInput, - ...additionalArguments: any -): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/GetInventorySchemaPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/GetInventorySchemaPaginator.d.ts deleted file mode 100644 index 24d3baab..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/GetInventorySchemaPaginator.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { - GetInventorySchemaCommandInput, - GetInventorySchemaCommandOutput, -} from "../commands/GetInventorySchemaCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -export declare function paginateGetInventorySchema( - config: SSMPaginationConfiguration, - input: GetInventorySchemaCommandInput, - ...additionalArguments: any -): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/GetOpsSummaryPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/GetOpsSummaryPaginator.d.ts deleted file mode 100644 index daaf43da..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/GetOpsSummaryPaginator.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { - GetOpsSummaryCommandInput, - GetOpsSummaryCommandOutput, -} from "../commands/GetOpsSummaryCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -export declare function paginateGetOpsSummary( - config: SSMPaginationConfiguration, - input: GetOpsSummaryCommandInput, - ...additionalArguments: any -): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/GetParameterHistoryPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/GetParameterHistoryPaginator.d.ts deleted file mode 100644 index b1f740d6..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/GetParameterHistoryPaginator.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { - GetParameterHistoryCommandInput, - GetParameterHistoryCommandOutput, -} from "../commands/GetParameterHistoryCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -export declare function paginateGetParameterHistory( - config: SSMPaginationConfiguration, - input: GetParameterHistoryCommandInput, - ...additionalArguments: any -): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/GetParametersByPathPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/GetParametersByPathPaginator.d.ts deleted file mode 100644 index 1da9c21c..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/GetParametersByPathPaginator.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { - GetParametersByPathCommandInput, - GetParametersByPathCommandOutput, -} from "../commands/GetParametersByPathCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -export declare function paginateGetParametersByPath( - config: SSMPaginationConfiguration, - input: GetParametersByPathCommandInput, - ...additionalArguments: any -): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/GetResourcePoliciesPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/GetResourcePoliciesPaginator.d.ts deleted file mode 100644 index 69e5ed47..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/GetResourcePoliciesPaginator.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { - GetResourcePoliciesCommandInput, - GetResourcePoliciesCommandOutput, -} from "../commands/GetResourcePoliciesCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -export declare function paginateGetResourcePolicies( - config: SSMPaginationConfiguration, - input: GetResourcePoliciesCommandInput, - ...additionalArguments: any -): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/Interfaces.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/Interfaces.d.ts deleted file mode 100644 index 2fb7df62..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/Interfaces.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { PaginationConfiguration } from "@smithy/types"; -import { SSMClient } from "../SSMClient"; -export interface SSMPaginationConfiguration extends PaginationConfiguration { - client: SSMClient; -} diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/ListAssociationVersionsPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/ListAssociationVersionsPaginator.d.ts deleted file mode 100644 index fd445bc6..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/ListAssociationVersionsPaginator.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { - ListAssociationVersionsCommandInput, - ListAssociationVersionsCommandOutput, -} from "../commands/ListAssociationVersionsCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -export declare function paginateListAssociationVersions( - config: SSMPaginationConfiguration, - input: ListAssociationVersionsCommandInput, - ...additionalArguments: any -): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/ListAssociationsPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/ListAssociationsPaginator.d.ts deleted file mode 100644 index 8a765137..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/ListAssociationsPaginator.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { - ListAssociationsCommandInput, - ListAssociationsCommandOutput, -} from "../commands/ListAssociationsCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -export declare function paginateListAssociations( - config: SSMPaginationConfiguration, - input: ListAssociationsCommandInput, - ...additionalArguments: any -): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/ListCommandInvocationsPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/ListCommandInvocationsPaginator.d.ts deleted file mode 100644 index 46c58224..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/ListCommandInvocationsPaginator.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { - ListCommandInvocationsCommandInput, - ListCommandInvocationsCommandOutput, -} from "../commands/ListCommandInvocationsCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -export declare function paginateListCommandInvocations( - config: SSMPaginationConfiguration, - input: ListCommandInvocationsCommandInput, - ...additionalArguments: any -): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/ListCommandsPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/ListCommandsPaginator.d.ts deleted file mode 100644 index 3dab3894..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/ListCommandsPaginator.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { - ListCommandsCommandInput, - ListCommandsCommandOutput, -} from "../commands/ListCommandsCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -export declare function paginateListCommands( - config: SSMPaginationConfiguration, - input: ListCommandsCommandInput, - ...additionalArguments: any -): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/ListComplianceItemsPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/ListComplianceItemsPaginator.d.ts deleted file mode 100644 index 730b41fb..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/ListComplianceItemsPaginator.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { - ListComplianceItemsCommandInput, - ListComplianceItemsCommandOutput, -} from "../commands/ListComplianceItemsCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -export declare function paginateListComplianceItems( - config: SSMPaginationConfiguration, - input: ListComplianceItemsCommandInput, - ...additionalArguments: any -): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/ListComplianceSummariesPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/ListComplianceSummariesPaginator.d.ts deleted file mode 100644 index 3125e556..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/ListComplianceSummariesPaginator.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { - ListComplianceSummariesCommandInput, - ListComplianceSummariesCommandOutput, -} from "../commands/ListComplianceSummariesCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -export declare function paginateListComplianceSummaries( - config: SSMPaginationConfiguration, - input: ListComplianceSummariesCommandInput, - ...additionalArguments: any -): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/ListDocumentVersionsPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/ListDocumentVersionsPaginator.d.ts deleted file mode 100644 index 89ea4c7c..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/ListDocumentVersionsPaginator.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { - ListDocumentVersionsCommandInput, - ListDocumentVersionsCommandOutput, -} from "../commands/ListDocumentVersionsCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -export declare function paginateListDocumentVersions( - config: SSMPaginationConfiguration, - input: ListDocumentVersionsCommandInput, - ...additionalArguments: any -): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/ListDocumentsPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/ListDocumentsPaginator.d.ts deleted file mode 100644 index d60914e3..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/ListDocumentsPaginator.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { - ListDocumentsCommandInput, - ListDocumentsCommandOutput, -} from "../commands/ListDocumentsCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -export declare function paginateListDocuments( - config: SSMPaginationConfiguration, - input: ListDocumentsCommandInput, - ...additionalArguments: any -): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/ListOpsItemEventsPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/ListOpsItemEventsPaginator.d.ts deleted file mode 100644 index b16da8c0..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/ListOpsItemEventsPaginator.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { - ListOpsItemEventsCommandInput, - ListOpsItemEventsCommandOutput, -} from "../commands/ListOpsItemEventsCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -export declare function paginateListOpsItemEvents( - config: SSMPaginationConfiguration, - input: ListOpsItemEventsCommandInput, - ...additionalArguments: any -): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/ListOpsItemRelatedItemsPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/ListOpsItemRelatedItemsPaginator.d.ts deleted file mode 100644 index fc7cc52c..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/ListOpsItemRelatedItemsPaginator.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { - ListOpsItemRelatedItemsCommandInput, - ListOpsItemRelatedItemsCommandOutput, -} from "../commands/ListOpsItemRelatedItemsCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -export declare function paginateListOpsItemRelatedItems( - config: SSMPaginationConfiguration, - input: ListOpsItemRelatedItemsCommandInput, - ...additionalArguments: any -): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/ListOpsMetadataPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/ListOpsMetadataPaginator.d.ts deleted file mode 100644 index e3dd4fec..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/ListOpsMetadataPaginator.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { - ListOpsMetadataCommandInput, - ListOpsMetadataCommandOutput, -} from "../commands/ListOpsMetadataCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -export declare function paginateListOpsMetadata( - config: SSMPaginationConfiguration, - input: ListOpsMetadataCommandInput, - ...additionalArguments: any -): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/ListResourceComplianceSummariesPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/ListResourceComplianceSummariesPaginator.d.ts deleted file mode 100644 index 44b656a6..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/ListResourceComplianceSummariesPaginator.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { - ListResourceComplianceSummariesCommandInput, - ListResourceComplianceSummariesCommandOutput, -} from "../commands/ListResourceComplianceSummariesCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -export declare function paginateListResourceComplianceSummaries( - config: SSMPaginationConfiguration, - input: ListResourceComplianceSummariesCommandInput, - ...additionalArguments: any -): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/ListResourceDataSyncPaginator.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/ListResourceDataSyncPaginator.d.ts deleted file mode 100644 index c79d38a1..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/ListResourceDataSyncPaginator.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { - ListResourceDataSyncCommandInput, - ListResourceDataSyncCommandOutput, -} from "../commands/ListResourceDataSyncCommand"; -import { SSMPaginationConfiguration } from "./Interfaces"; -export declare function paginateListResourceDataSync( - config: SSMPaginationConfiguration, - input: ListResourceDataSyncCommandInput, - ...additionalArguments: any -): Paginator; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/index.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/index.d.ts deleted file mode 100644 index 7cb9faa7..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/pagination/index.d.ts +++ /dev/null @@ -1,48 +0,0 @@ -export * from "./DescribeActivationsPaginator"; -export * from "./DescribeAssociationExecutionTargetsPaginator"; -export * from "./DescribeAssociationExecutionsPaginator"; -export * from "./DescribeAutomationExecutionsPaginator"; -export * from "./DescribeAutomationStepExecutionsPaginator"; -export * from "./DescribeAvailablePatchesPaginator"; -export * from "./DescribeEffectiveInstanceAssociationsPaginator"; -export * from "./DescribeEffectivePatchesForPatchBaselinePaginator"; -export * from "./DescribeInstanceAssociationsStatusPaginator"; -export * from "./DescribeInstanceInformationPaginator"; -export * from "./Interfaces"; -export * from "./DescribeInstancePatchStatesForPatchGroupPaginator"; -export * from "./DescribeInstancePatchStatesPaginator"; -export * from "./DescribeInstancePatchesPaginator"; -export * from "./DescribeInventoryDeletionsPaginator"; -export * from "./DescribeMaintenanceWindowExecutionTaskInvocationsPaginator"; -export * from "./DescribeMaintenanceWindowExecutionTasksPaginator"; -export * from "./DescribeMaintenanceWindowExecutionsPaginator"; -export * from "./DescribeMaintenanceWindowSchedulePaginator"; -export * from "./DescribeMaintenanceWindowTargetsPaginator"; -export * from "./DescribeMaintenanceWindowTasksPaginator"; -export * from "./DescribeMaintenanceWindowsForTargetPaginator"; -export * from "./DescribeMaintenanceWindowsPaginator"; -export * from "./DescribeOpsItemsPaginator"; -export * from "./DescribeParametersPaginator"; -export * from "./DescribePatchBaselinesPaginator"; -export * from "./DescribePatchGroupsPaginator"; -export * from "./DescribePatchPropertiesPaginator"; -export * from "./DescribeSessionsPaginator"; -export * from "./GetInventoryPaginator"; -export * from "./GetInventorySchemaPaginator"; -export * from "./GetOpsSummaryPaginator"; -export * from "./GetParameterHistoryPaginator"; -export * from "./GetParametersByPathPaginator"; -export * from "./GetResourcePoliciesPaginator"; -export * from "./ListAssociationVersionsPaginator"; -export * from "./ListAssociationsPaginator"; -export * from "./ListCommandInvocationsPaginator"; -export * from "./ListCommandsPaginator"; -export * from "./ListComplianceItemsPaginator"; -export * from "./ListComplianceSummariesPaginator"; -export * from "./ListDocumentVersionsPaginator"; -export * from "./ListDocumentsPaginator"; -export * from "./ListOpsItemEventsPaginator"; -export * from "./ListOpsItemRelatedItemsPaginator"; -export * from "./ListOpsMetadataPaginator"; -export * from "./ListResourceComplianceSummariesPaginator"; -export * from "./ListResourceDataSyncPaginator"; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/protocols/Aws_json1_1.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/protocols/Aws_json1_1.d.ts deleted file mode 100644 index 9f7de03e..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/protocols/Aws_json1_1.d.ts +++ /dev/null @@ -1,1673 +0,0 @@ -import { - HttpRequest as __HttpRequest, - HttpResponse as __HttpResponse, -} from "@smithy/protocol-http"; -import { SerdeContext as __SerdeContext } from "@smithy/types"; -import { - AddTagsToResourceCommandInput, - AddTagsToResourceCommandOutput, -} from "../commands/AddTagsToResourceCommand"; -import { - AssociateOpsItemRelatedItemCommandInput, - AssociateOpsItemRelatedItemCommandOutput, -} from "../commands/AssociateOpsItemRelatedItemCommand"; -import { - CancelCommandCommandInput, - CancelCommandCommandOutput, -} from "../commands/CancelCommandCommand"; -import { - CancelMaintenanceWindowExecutionCommandInput, - CancelMaintenanceWindowExecutionCommandOutput, -} from "../commands/CancelMaintenanceWindowExecutionCommand"; -import { - CreateActivationCommandInput, - CreateActivationCommandOutput, -} from "../commands/CreateActivationCommand"; -import { - CreateAssociationBatchCommandInput, - CreateAssociationBatchCommandOutput, -} from "../commands/CreateAssociationBatchCommand"; -import { - CreateAssociationCommandInput, - CreateAssociationCommandOutput, -} from "../commands/CreateAssociationCommand"; -import { - CreateDocumentCommandInput, - CreateDocumentCommandOutput, -} from "../commands/CreateDocumentCommand"; -import { - CreateMaintenanceWindowCommandInput, - CreateMaintenanceWindowCommandOutput, -} from "../commands/CreateMaintenanceWindowCommand"; -import { - CreateOpsItemCommandInput, - CreateOpsItemCommandOutput, -} from "../commands/CreateOpsItemCommand"; -import { - CreateOpsMetadataCommandInput, - CreateOpsMetadataCommandOutput, -} from "../commands/CreateOpsMetadataCommand"; -import { - CreatePatchBaselineCommandInput, - CreatePatchBaselineCommandOutput, -} from "../commands/CreatePatchBaselineCommand"; -import { - CreateResourceDataSyncCommandInput, - CreateResourceDataSyncCommandOutput, -} from "../commands/CreateResourceDataSyncCommand"; -import { - DeleteActivationCommandInput, - DeleteActivationCommandOutput, -} from "../commands/DeleteActivationCommand"; -import { - DeleteAssociationCommandInput, - DeleteAssociationCommandOutput, -} from "../commands/DeleteAssociationCommand"; -import { - DeleteDocumentCommandInput, - DeleteDocumentCommandOutput, -} from "../commands/DeleteDocumentCommand"; -import { - DeleteInventoryCommandInput, - DeleteInventoryCommandOutput, -} from "../commands/DeleteInventoryCommand"; -import { - DeleteMaintenanceWindowCommandInput, - DeleteMaintenanceWindowCommandOutput, -} from "../commands/DeleteMaintenanceWindowCommand"; -import { - DeleteOpsItemCommandInput, - DeleteOpsItemCommandOutput, -} from "../commands/DeleteOpsItemCommand"; -import { - DeleteOpsMetadataCommandInput, - DeleteOpsMetadataCommandOutput, -} from "../commands/DeleteOpsMetadataCommand"; -import { - DeleteParameterCommandInput, - DeleteParameterCommandOutput, -} from "../commands/DeleteParameterCommand"; -import { - DeleteParametersCommandInput, - DeleteParametersCommandOutput, -} from "../commands/DeleteParametersCommand"; -import { - DeletePatchBaselineCommandInput, - DeletePatchBaselineCommandOutput, -} from "../commands/DeletePatchBaselineCommand"; -import { - DeleteResourceDataSyncCommandInput, - DeleteResourceDataSyncCommandOutput, -} from "../commands/DeleteResourceDataSyncCommand"; -import { - DeleteResourcePolicyCommandInput, - DeleteResourcePolicyCommandOutput, -} from "../commands/DeleteResourcePolicyCommand"; -import { - DeregisterManagedInstanceCommandInput, - DeregisterManagedInstanceCommandOutput, -} from "../commands/DeregisterManagedInstanceCommand"; -import { - DeregisterPatchBaselineForPatchGroupCommandInput, - DeregisterPatchBaselineForPatchGroupCommandOutput, -} from "../commands/DeregisterPatchBaselineForPatchGroupCommand"; -import { - DeregisterTargetFromMaintenanceWindowCommandInput, - DeregisterTargetFromMaintenanceWindowCommandOutput, -} from "../commands/DeregisterTargetFromMaintenanceWindowCommand"; -import { - DeregisterTaskFromMaintenanceWindowCommandInput, - DeregisterTaskFromMaintenanceWindowCommandOutput, -} from "../commands/DeregisterTaskFromMaintenanceWindowCommand"; -import { - DescribeActivationsCommandInput, - DescribeActivationsCommandOutput, -} from "../commands/DescribeActivationsCommand"; -import { - DescribeAssociationCommandInput, - DescribeAssociationCommandOutput, -} from "../commands/DescribeAssociationCommand"; -import { - DescribeAssociationExecutionsCommandInput, - DescribeAssociationExecutionsCommandOutput, -} from "../commands/DescribeAssociationExecutionsCommand"; -import { - DescribeAssociationExecutionTargetsCommandInput, - DescribeAssociationExecutionTargetsCommandOutput, -} from "../commands/DescribeAssociationExecutionTargetsCommand"; -import { - DescribeAutomationExecutionsCommandInput, - DescribeAutomationExecutionsCommandOutput, -} from "../commands/DescribeAutomationExecutionsCommand"; -import { - DescribeAutomationStepExecutionsCommandInput, - DescribeAutomationStepExecutionsCommandOutput, -} from "../commands/DescribeAutomationStepExecutionsCommand"; -import { - DescribeAvailablePatchesCommandInput, - DescribeAvailablePatchesCommandOutput, -} from "../commands/DescribeAvailablePatchesCommand"; -import { - DescribeDocumentCommandInput, - DescribeDocumentCommandOutput, -} from "../commands/DescribeDocumentCommand"; -import { - DescribeDocumentPermissionCommandInput, - DescribeDocumentPermissionCommandOutput, -} from "../commands/DescribeDocumentPermissionCommand"; -import { - DescribeEffectiveInstanceAssociationsCommandInput, - DescribeEffectiveInstanceAssociationsCommandOutput, -} from "../commands/DescribeEffectiveInstanceAssociationsCommand"; -import { - DescribeEffectivePatchesForPatchBaselineCommandInput, - DescribeEffectivePatchesForPatchBaselineCommandOutput, -} from "../commands/DescribeEffectivePatchesForPatchBaselineCommand"; -import { - DescribeInstanceAssociationsStatusCommandInput, - DescribeInstanceAssociationsStatusCommandOutput, -} from "../commands/DescribeInstanceAssociationsStatusCommand"; -import { - DescribeInstanceInformationCommandInput, - DescribeInstanceInformationCommandOutput, -} from "../commands/DescribeInstanceInformationCommand"; -import { - DescribeInstancePatchesCommandInput, - DescribeInstancePatchesCommandOutput, -} from "../commands/DescribeInstancePatchesCommand"; -import { - DescribeInstancePatchStatesCommandInput, - DescribeInstancePatchStatesCommandOutput, -} from "../commands/DescribeInstancePatchStatesCommand"; -import { - DescribeInstancePatchStatesForPatchGroupCommandInput, - DescribeInstancePatchStatesForPatchGroupCommandOutput, -} from "../commands/DescribeInstancePatchStatesForPatchGroupCommand"; -import { - DescribeInventoryDeletionsCommandInput, - DescribeInventoryDeletionsCommandOutput, -} from "../commands/DescribeInventoryDeletionsCommand"; -import { - DescribeMaintenanceWindowExecutionsCommandInput, - DescribeMaintenanceWindowExecutionsCommandOutput, -} from "../commands/DescribeMaintenanceWindowExecutionsCommand"; -import { - DescribeMaintenanceWindowExecutionTaskInvocationsCommandInput, - DescribeMaintenanceWindowExecutionTaskInvocationsCommandOutput, -} from "../commands/DescribeMaintenanceWindowExecutionTaskInvocationsCommand"; -import { - DescribeMaintenanceWindowExecutionTasksCommandInput, - DescribeMaintenanceWindowExecutionTasksCommandOutput, -} from "../commands/DescribeMaintenanceWindowExecutionTasksCommand"; -import { - DescribeMaintenanceWindowScheduleCommandInput, - DescribeMaintenanceWindowScheduleCommandOutput, -} from "../commands/DescribeMaintenanceWindowScheduleCommand"; -import { - DescribeMaintenanceWindowsCommandInput, - DescribeMaintenanceWindowsCommandOutput, -} from "../commands/DescribeMaintenanceWindowsCommand"; -import { - DescribeMaintenanceWindowsForTargetCommandInput, - DescribeMaintenanceWindowsForTargetCommandOutput, -} from "../commands/DescribeMaintenanceWindowsForTargetCommand"; -import { - DescribeMaintenanceWindowTargetsCommandInput, - DescribeMaintenanceWindowTargetsCommandOutput, -} from "../commands/DescribeMaintenanceWindowTargetsCommand"; -import { - DescribeMaintenanceWindowTasksCommandInput, - DescribeMaintenanceWindowTasksCommandOutput, -} from "../commands/DescribeMaintenanceWindowTasksCommand"; -import { - DescribeOpsItemsCommandInput, - DescribeOpsItemsCommandOutput, -} from "../commands/DescribeOpsItemsCommand"; -import { - DescribeParametersCommandInput, - DescribeParametersCommandOutput, -} from "../commands/DescribeParametersCommand"; -import { - DescribePatchBaselinesCommandInput, - DescribePatchBaselinesCommandOutput, -} from "../commands/DescribePatchBaselinesCommand"; -import { - DescribePatchGroupsCommandInput, - DescribePatchGroupsCommandOutput, -} from "../commands/DescribePatchGroupsCommand"; -import { - DescribePatchGroupStateCommandInput, - DescribePatchGroupStateCommandOutput, -} from "../commands/DescribePatchGroupStateCommand"; -import { - DescribePatchPropertiesCommandInput, - DescribePatchPropertiesCommandOutput, -} from "../commands/DescribePatchPropertiesCommand"; -import { - DescribeSessionsCommandInput, - DescribeSessionsCommandOutput, -} from "../commands/DescribeSessionsCommand"; -import { - DisassociateOpsItemRelatedItemCommandInput, - DisassociateOpsItemRelatedItemCommandOutput, -} from "../commands/DisassociateOpsItemRelatedItemCommand"; -import { - GetAutomationExecutionCommandInput, - GetAutomationExecutionCommandOutput, -} from "../commands/GetAutomationExecutionCommand"; -import { - GetCalendarStateCommandInput, - GetCalendarStateCommandOutput, -} from "../commands/GetCalendarStateCommand"; -import { - GetCommandInvocationCommandInput, - GetCommandInvocationCommandOutput, -} from "../commands/GetCommandInvocationCommand"; -import { - GetConnectionStatusCommandInput, - GetConnectionStatusCommandOutput, -} from "../commands/GetConnectionStatusCommand"; -import { - GetDefaultPatchBaselineCommandInput, - GetDefaultPatchBaselineCommandOutput, -} from "../commands/GetDefaultPatchBaselineCommand"; -import { - GetDeployablePatchSnapshotForInstanceCommandInput, - GetDeployablePatchSnapshotForInstanceCommandOutput, -} from "../commands/GetDeployablePatchSnapshotForInstanceCommand"; -import { - GetDocumentCommandInput, - GetDocumentCommandOutput, -} from "../commands/GetDocumentCommand"; -import { - GetInventoryCommandInput, - GetInventoryCommandOutput, -} from "../commands/GetInventoryCommand"; -import { - GetInventorySchemaCommandInput, - GetInventorySchemaCommandOutput, -} from "../commands/GetInventorySchemaCommand"; -import { - GetMaintenanceWindowCommandInput, - GetMaintenanceWindowCommandOutput, -} from "../commands/GetMaintenanceWindowCommand"; -import { - GetMaintenanceWindowExecutionCommandInput, - GetMaintenanceWindowExecutionCommandOutput, -} from "../commands/GetMaintenanceWindowExecutionCommand"; -import { - GetMaintenanceWindowExecutionTaskCommandInput, - GetMaintenanceWindowExecutionTaskCommandOutput, -} from "../commands/GetMaintenanceWindowExecutionTaskCommand"; -import { - GetMaintenanceWindowExecutionTaskInvocationCommandInput, - GetMaintenanceWindowExecutionTaskInvocationCommandOutput, -} from "../commands/GetMaintenanceWindowExecutionTaskInvocationCommand"; -import { - GetMaintenanceWindowTaskCommandInput, - GetMaintenanceWindowTaskCommandOutput, -} from "../commands/GetMaintenanceWindowTaskCommand"; -import { - GetOpsItemCommandInput, - GetOpsItemCommandOutput, -} from "../commands/GetOpsItemCommand"; -import { - GetOpsMetadataCommandInput, - GetOpsMetadataCommandOutput, -} from "../commands/GetOpsMetadataCommand"; -import { - GetOpsSummaryCommandInput, - GetOpsSummaryCommandOutput, -} from "../commands/GetOpsSummaryCommand"; -import { - GetParameterCommandInput, - GetParameterCommandOutput, -} from "../commands/GetParameterCommand"; -import { - GetParameterHistoryCommandInput, - GetParameterHistoryCommandOutput, -} from "../commands/GetParameterHistoryCommand"; -import { - GetParametersByPathCommandInput, - GetParametersByPathCommandOutput, -} from "../commands/GetParametersByPathCommand"; -import { - GetParametersCommandInput, - GetParametersCommandOutput, -} from "../commands/GetParametersCommand"; -import { - GetPatchBaselineCommandInput, - GetPatchBaselineCommandOutput, -} from "../commands/GetPatchBaselineCommand"; -import { - GetPatchBaselineForPatchGroupCommandInput, - GetPatchBaselineForPatchGroupCommandOutput, -} from "../commands/GetPatchBaselineForPatchGroupCommand"; -import { - GetResourcePoliciesCommandInput, - GetResourcePoliciesCommandOutput, -} from "../commands/GetResourcePoliciesCommand"; -import { - GetServiceSettingCommandInput, - GetServiceSettingCommandOutput, -} from "../commands/GetServiceSettingCommand"; -import { - LabelParameterVersionCommandInput, - LabelParameterVersionCommandOutput, -} from "../commands/LabelParameterVersionCommand"; -import { - ListAssociationsCommandInput, - ListAssociationsCommandOutput, -} from "../commands/ListAssociationsCommand"; -import { - ListAssociationVersionsCommandInput, - ListAssociationVersionsCommandOutput, -} from "../commands/ListAssociationVersionsCommand"; -import { - ListCommandInvocationsCommandInput, - ListCommandInvocationsCommandOutput, -} from "../commands/ListCommandInvocationsCommand"; -import { - ListCommandsCommandInput, - ListCommandsCommandOutput, -} from "../commands/ListCommandsCommand"; -import { - ListComplianceItemsCommandInput, - ListComplianceItemsCommandOutput, -} from "../commands/ListComplianceItemsCommand"; -import { - ListComplianceSummariesCommandInput, - ListComplianceSummariesCommandOutput, -} from "../commands/ListComplianceSummariesCommand"; -import { - ListDocumentMetadataHistoryCommandInput, - ListDocumentMetadataHistoryCommandOutput, -} from "../commands/ListDocumentMetadataHistoryCommand"; -import { - ListDocumentsCommandInput, - ListDocumentsCommandOutput, -} from "../commands/ListDocumentsCommand"; -import { - ListDocumentVersionsCommandInput, - ListDocumentVersionsCommandOutput, -} from "../commands/ListDocumentVersionsCommand"; -import { - ListInventoryEntriesCommandInput, - ListInventoryEntriesCommandOutput, -} from "../commands/ListInventoryEntriesCommand"; -import { - ListOpsItemEventsCommandInput, - ListOpsItemEventsCommandOutput, -} from "../commands/ListOpsItemEventsCommand"; -import { - ListOpsItemRelatedItemsCommandInput, - ListOpsItemRelatedItemsCommandOutput, -} from "../commands/ListOpsItemRelatedItemsCommand"; -import { - ListOpsMetadataCommandInput, - ListOpsMetadataCommandOutput, -} from "../commands/ListOpsMetadataCommand"; -import { - ListResourceComplianceSummariesCommandInput, - ListResourceComplianceSummariesCommandOutput, -} from "../commands/ListResourceComplianceSummariesCommand"; -import { - ListResourceDataSyncCommandInput, - ListResourceDataSyncCommandOutput, -} from "../commands/ListResourceDataSyncCommand"; -import { - ListTagsForResourceCommandInput, - ListTagsForResourceCommandOutput, -} from "../commands/ListTagsForResourceCommand"; -import { - ModifyDocumentPermissionCommandInput, - ModifyDocumentPermissionCommandOutput, -} from "../commands/ModifyDocumentPermissionCommand"; -import { - PutComplianceItemsCommandInput, - PutComplianceItemsCommandOutput, -} from "../commands/PutComplianceItemsCommand"; -import { - PutInventoryCommandInput, - PutInventoryCommandOutput, -} from "../commands/PutInventoryCommand"; -import { - PutParameterCommandInput, - PutParameterCommandOutput, -} from "../commands/PutParameterCommand"; -import { - PutResourcePolicyCommandInput, - PutResourcePolicyCommandOutput, -} from "../commands/PutResourcePolicyCommand"; -import { - RegisterDefaultPatchBaselineCommandInput, - RegisterDefaultPatchBaselineCommandOutput, -} from "../commands/RegisterDefaultPatchBaselineCommand"; -import { - RegisterPatchBaselineForPatchGroupCommandInput, - RegisterPatchBaselineForPatchGroupCommandOutput, -} from "../commands/RegisterPatchBaselineForPatchGroupCommand"; -import { - RegisterTargetWithMaintenanceWindowCommandInput, - RegisterTargetWithMaintenanceWindowCommandOutput, -} from "../commands/RegisterTargetWithMaintenanceWindowCommand"; -import { - RegisterTaskWithMaintenanceWindowCommandInput, - RegisterTaskWithMaintenanceWindowCommandOutput, -} from "../commands/RegisterTaskWithMaintenanceWindowCommand"; -import { - RemoveTagsFromResourceCommandInput, - RemoveTagsFromResourceCommandOutput, -} from "../commands/RemoveTagsFromResourceCommand"; -import { - ResetServiceSettingCommandInput, - ResetServiceSettingCommandOutput, -} from "../commands/ResetServiceSettingCommand"; -import { - ResumeSessionCommandInput, - ResumeSessionCommandOutput, -} from "../commands/ResumeSessionCommand"; -import { - SendAutomationSignalCommandInput, - SendAutomationSignalCommandOutput, -} from "../commands/SendAutomationSignalCommand"; -import { - SendCommandCommandInput, - SendCommandCommandOutput, -} from "../commands/SendCommandCommand"; -import { - StartAssociationsOnceCommandInput, - StartAssociationsOnceCommandOutput, -} from "../commands/StartAssociationsOnceCommand"; -import { - StartAutomationExecutionCommandInput, - StartAutomationExecutionCommandOutput, -} from "../commands/StartAutomationExecutionCommand"; -import { - StartChangeRequestExecutionCommandInput, - StartChangeRequestExecutionCommandOutput, -} from "../commands/StartChangeRequestExecutionCommand"; -import { - StartSessionCommandInput, - StartSessionCommandOutput, -} from "../commands/StartSessionCommand"; -import { - StopAutomationExecutionCommandInput, - StopAutomationExecutionCommandOutput, -} from "../commands/StopAutomationExecutionCommand"; -import { - TerminateSessionCommandInput, - TerminateSessionCommandOutput, -} from "../commands/TerminateSessionCommand"; -import { - UnlabelParameterVersionCommandInput, - UnlabelParameterVersionCommandOutput, -} from "../commands/UnlabelParameterVersionCommand"; -import { - UpdateAssociationCommandInput, - UpdateAssociationCommandOutput, -} from "../commands/UpdateAssociationCommand"; -import { - UpdateAssociationStatusCommandInput, - UpdateAssociationStatusCommandOutput, -} from "../commands/UpdateAssociationStatusCommand"; -import { - UpdateDocumentCommandInput, - UpdateDocumentCommandOutput, -} from "../commands/UpdateDocumentCommand"; -import { - UpdateDocumentDefaultVersionCommandInput, - UpdateDocumentDefaultVersionCommandOutput, -} from "../commands/UpdateDocumentDefaultVersionCommand"; -import { - UpdateDocumentMetadataCommandInput, - UpdateDocumentMetadataCommandOutput, -} from "../commands/UpdateDocumentMetadataCommand"; -import { - UpdateMaintenanceWindowCommandInput, - UpdateMaintenanceWindowCommandOutput, -} from "../commands/UpdateMaintenanceWindowCommand"; -import { - UpdateMaintenanceWindowTargetCommandInput, - UpdateMaintenanceWindowTargetCommandOutput, -} from "../commands/UpdateMaintenanceWindowTargetCommand"; -import { - UpdateMaintenanceWindowTaskCommandInput, - UpdateMaintenanceWindowTaskCommandOutput, -} from "../commands/UpdateMaintenanceWindowTaskCommand"; -import { - UpdateManagedInstanceRoleCommandInput, - UpdateManagedInstanceRoleCommandOutput, -} from "../commands/UpdateManagedInstanceRoleCommand"; -import { - UpdateOpsItemCommandInput, - UpdateOpsItemCommandOutput, -} from "../commands/UpdateOpsItemCommand"; -import { - UpdateOpsMetadataCommandInput, - UpdateOpsMetadataCommandOutput, -} from "../commands/UpdateOpsMetadataCommand"; -import { - UpdatePatchBaselineCommandInput, - UpdatePatchBaselineCommandOutput, -} from "../commands/UpdatePatchBaselineCommand"; -import { - UpdateResourceDataSyncCommandInput, - UpdateResourceDataSyncCommandOutput, -} from "../commands/UpdateResourceDataSyncCommand"; -import { - UpdateServiceSettingCommandInput, - UpdateServiceSettingCommandOutput, -} from "../commands/UpdateServiceSettingCommand"; -export declare const se_AddTagsToResourceCommand: ( - input: AddTagsToResourceCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_AssociateOpsItemRelatedItemCommand: ( - input: AssociateOpsItemRelatedItemCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_CancelCommandCommand: ( - input: CancelCommandCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_CancelMaintenanceWindowExecutionCommand: ( - input: CancelMaintenanceWindowExecutionCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_CreateActivationCommand: ( - input: CreateActivationCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_CreateAssociationCommand: ( - input: CreateAssociationCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_CreateAssociationBatchCommand: ( - input: CreateAssociationBatchCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_CreateDocumentCommand: ( - input: CreateDocumentCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_CreateMaintenanceWindowCommand: ( - input: CreateMaintenanceWindowCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_CreateOpsItemCommand: ( - input: CreateOpsItemCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_CreateOpsMetadataCommand: ( - input: CreateOpsMetadataCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_CreatePatchBaselineCommand: ( - input: CreatePatchBaselineCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_CreateResourceDataSyncCommand: ( - input: CreateResourceDataSyncCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_DeleteActivationCommand: ( - input: DeleteActivationCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_DeleteAssociationCommand: ( - input: DeleteAssociationCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_DeleteDocumentCommand: ( - input: DeleteDocumentCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_DeleteInventoryCommand: ( - input: DeleteInventoryCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_DeleteMaintenanceWindowCommand: ( - input: DeleteMaintenanceWindowCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_DeleteOpsItemCommand: ( - input: DeleteOpsItemCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_DeleteOpsMetadataCommand: ( - input: DeleteOpsMetadataCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_DeleteParameterCommand: ( - input: DeleteParameterCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_DeleteParametersCommand: ( - input: DeleteParametersCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_DeletePatchBaselineCommand: ( - input: DeletePatchBaselineCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_DeleteResourceDataSyncCommand: ( - input: DeleteResourceDataSyncCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_DeleteResourcePolicyCommand: ( - input: DeleteResourcePolicyCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_DeregisterManagedInstanceCommand: ( - input: DeregisterManagedInstanceCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_DeregisterPatchBaselineForPatchGroupCommand: ( - input: DeregisterPatchBaselineForPatchGroupCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_DeregisterTargetFromMaintenanceWindowCommand: ( - input: DeregisterTargetFromMaintenanceWindowCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_DeregisterTaskFromMaintenanceWindowCommand: ( - input: DeregisterTaskFromMaintenanceWindowCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_DescribeActivationsCommand: ( - input: DescribeActivationsCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_DescribeAssociationCommand: ( - input: DescribeAssociationCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_DescribeAssociationExecutionsCommand: ( - input: DescribeAssociationExecutionsCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_DescribeAssociationExecutionTargetsCommand: ( - input: DescribeAssociationExecutionTargetsCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_DescribeAutomationExecutionsCommand: ( - input: DescribeAutomationExecutionsCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_DescribeAutomationStepExecutionsCommand: ( - input: DescribeAutomationStepExecutionsCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_DescribeAvailablePatchesCommand: ( - input: DescribeAvailablePatchesCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_DescribeDocumentCommand: ( - input: DescribeDocumentCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_DescribeDocumentPermissionCommand: ( - input: DescribeDocumentPermissionCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_DescribeEffectiveInstanceAssociationsCommand: ( - input: DescribeEffectiveInstanceAssociationsCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_DescribeEffectivePatchesForPatchBaselineCommand: ( - input: DescribeEffectivePatchesForPatchBaselineCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_DescribeInstanceAssociationsStatusCommand: ( - input: DescribeInstanceAssociationsStatusCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_DescribeInstanceInformationCommand: ( - input: DescribeInstanceInformationCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_DescribeInstancePatchesCommand: ( - input: DescribeInstancePatchesCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_DescribeInstancePatchStatesCommand: ( - input: DescribeInstancePatchStatesCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_DescribeInstancePatchStatesForPatchGroupCommand: ( - input: DescribeInstancePatchStatesForPatchGroupCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_DescribeInventoryDeletionsCommand: ( - input: DescribeInventoryDeletionsCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_DescribeMaintenanceWindowExecutionsCommand: ( - input: DescribeMaintenanceWindowExecutionsCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_DescribeMaintenanceWindowExecutionTaskInvocationsCommand: ( - input: DescribeMaintenanceWindowExecutionTaskInvocationsCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_DescribeMaintenanceWindowExecutionTasksCommand: ( - input: DescribeMaintenanceWindowExecutionTasksCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_DescribeMaintenanceWindowsCommand: ( - input: DescribeMaintenanceWindowsCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_DescribeMaintenanceWindowScheduleCommand: ( - input: DescribeMaintenanceWindowScheduleCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_DescribeMaintenanceWindowsForTargetCommand: ( - input: DescribeMaintenanceWindowsForTargetCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_DescribeMaintenanceWindowTargetsCommand: ( - input: DescribeMaintenanceWindowTargetsCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_DescribeMaintenanceWindowTasksCommand: ( - input: DescribeMaintenanceWindowTasksCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_DescribeOpsItemsCommand: ( - input: DescribeOpsItemsCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_DescribeParametersCommand: ( - input: DescribeParametersCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_DescribePatchBaselinesCommand: ( - input: DescribePatchBaselinesCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_DescribePatchGroupsCommand: ( - input: DescribePatchGroupsCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_DescribePatchGroupStateCommand: ( - input: DescribePatchGroupStateCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_DescribePatchPropertiesCommand: ( - input: DescribePatchPropertiesCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_DescribeSessionsCommand: ( - input: DescribeSessionsCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_DisassociateOpsItemRelatedItemCommand: ( - input: DisassociateOpsItemRelatedItemCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_GetAutomationExecutionCommand: ( - input: GetAutomationExecutionCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_GetCalendarStateCommand: ( - input: GetCalendarStateCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_GetCommandInvocationCommand: ( - input: GetCommandInvocationCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_GetConnectionStatusCommand: ( - input: GetConnectionStatusCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_GetDefaultPatchBaselineCommand: ( - input: GetDefaultPatchBaselineCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_GetDeployablePatchSnapshotForInstanceCommand: ( - input: GetDeployablePatchSnapshotForInstanceCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_GetDocumentCommand: ( - input: GetDocumentCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_GetInventoryCommand: ( - input: GetInventoryCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_GetInventorySchemaCommand: ( - input: GetInventorySchemaCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_GetMaintenanceWindowCommand: ( - input: GetMaintenanceWindowCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_GetMaintenanceWindowExecutionCommand: ( - input: GetMaintenanceWindowExecutionCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_GetMaintenanceWindowExecutionTaskCommand: ( - input: GetMaintenanceWindowExecutionTaskCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_GetMaintenanceWindowExecutionTaskInvocationCommand: ( - input: GetMaintenanceWindowExecutionTaskInvocationCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_GetMaintenanceWindowTaskCommand: ( - input: GetMaintenanceWindowTaskCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_GetOpsItemCommand: ( - input: GetOpsItemCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_GetOpsMetadataCommand: ( - input: GetOpsMetadataCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_GetOpsSummaryCommand: ( - input: GetOpsSummaryCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_GetParameterCommand: ( - input: GetParameterCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_GetParameterHistoryCommand: ( - input: GetParameterHistoryCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_GetParametersCommand: ( - input: GetParametersCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_GetParametersByPathCommand: ( - input: GetParametersByPathCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_GetPatchBaselineCommand: ( - input: GetPatchBaselineCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_GetPatchBaselineForPatchGroupCommand: ( - input: GetPatchBaselineForPatchGroupCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_GetResourcePoliciesCommand: ( - input: GetResourcePoliciesCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_GetServiceSettingCommand: ( - input: GetServiceSettingCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_LabelParameterVersionCommand: ( - input: LabelParameterVersionCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_ListAssociationsCommand: ( - input: ListAssociationsCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_ListAssociationVersionsCommand: ( - input: ListAssociationVersionsCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_ListCommandInvocationsCommand: ( - input: ListCommandInvocationsCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_ListCommandsCommand: ( - input: ListCommandsCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_ListComplianceItemsCommand: ( - input: ListComplianceItemsCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_ListComplianceSummariesCommand: ( - input: ListComplianceSummariesCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_ListDocumentMetadataHistoryCommand: ( - input: ListDocumentMetadataHistoryCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_ListDocumentsCommand: ( - input: ListDocumentsCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_ListDocumentVersionsCommand: ( - input: ListDocumentVersionsCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_ListInventoryEntriesCommand: ( - input: ListInventoryEntriesCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_ListOpsItemEventsCommand: ( - input: ListOpsItemEventsCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_ListOpsItemRelatedItemsCommand: ( - input: ListOpsItemRelatedItemsCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_ListOpsMetadataCommand: ( - input: ListOpsMetadataCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_ListResourceComplianceSummariesCommand: ( - input: ListResourceComplianceSummariesCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_ListResourceDataSyncCommand: ( - input: ListResourceDataSyncCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_ListTagsForResourceCommand: ( - input: ListTagsForResourceCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_ModifyDocumentPermissionCommand: ( - input: ModifyDocumentPermissionCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_PutComplianceItemsCommand: ( - input: PutComplianceItemsCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_PutInventoryCommand: ( - input: PutInventoryCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_PutParameterCommand: ( - input: PutParameterCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_PutResourcePolicyCommand: ( - input: PutResourcePolicyCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_RegisterDefaultPatchBaselineCommand: ( - input: RegisterDefaultPatchBaselineCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_RegisterPatchBaselineForPatchGroupCommand: ( - input: RegisterPatchBaselineForPatchGroupCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_RegisterTargetWithMaintenanceWindowCommand: ( - input: RegisterTargetWithMaintenanceWindowCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_RegisterTaskWithMaintenanceWindowCommand: ( - input: RegisterTaskWithMaintenanceWindowCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_RemoveTagsFromResourceCommand: ( - input: RemoveTagsFromResourceCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_ResetServiceSettingCommand: ( - input: ResetServiceSettingCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_ResumeSessionCommand: ( - input: ResumeSessionCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_SendAutomationSignalCommand: ( - input: SendAutomationSignalCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_SendCommandCommand: ( - input: SendCommandCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_StartAssociationsOnceCommand: ( - input: StartAssociationsOnceCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_StartAutomationExecutionCommand: ( - input: StartAutomationExecutionCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_StartChangeRequestExecutionCommand: ( - input: StartChangeRequestExecutionCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_StartSessionCommand: ( - input: StartSessionCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_StopAutomationExecutionCommand: ( - input: StopAutomationExecutionCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_TerminateSessionCommand: ( - input: TerminateSessionCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_UnlabelParameterVersionCommand: ( - input: UnlabelParameterVersionCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_UpdateAssociationCommand: ( - input: UpdateAssociationCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_UpdateAssociationStatusCommand: ( - input: UpdateAssociationStatusCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_UpdateDocumentCommand: ( - input: UpdateDocumentCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_UpdateDocumentDefaultVersionCommand: ( - input: UpdateDocumentDefaultVersionCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_UpdateDocumentMetadataCommand: ( - input: UpdateDocumentMetadataCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_UpdateMaintenanceWindowCommand: ( - input: UpdateMaintenanceWindowCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_UpdateMaintenanceWindowTargetCommand: ( - input: UpdateMaintenanceWindowTargetCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_UpdateMaintenanceWindowTaskCommand: ( - input: UpdateMaintenanceWindowTaskCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_UpdateManagedInstanceRoleCommand: ( - input: UpdateManagedInstanceRoleCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_UpdateOpsItemCommand: ( - input: UpdateOpsItemCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_UpdateOpsMetadataCommand: ( - input: UpdateOpsMetadataCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_UpdatePatchBaselineCommand: ( - input: UpdatePatchBaselineCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_UpdateResourceDataSyncCommand: ( - input: UpdateResourceDataSyncCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_UpdateServiceSettingCommand: ( - input: UpdateServiceSettingCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const de_AddTagsToResourceCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_AssociateOpsItemRelatedItemCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_CancelCommandCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_CancelMaintenanceWindowExecutionCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_CreateActivationCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_CreateAssociationCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_CreateAssociationBatchCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_CreateDocumentCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_CreateMaintenanceWindowCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_CreateOpsItemCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_CreateOpsMetadataCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_CreatePatchBaselineCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_CreateResourceDataSyncCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_DeleteActivationCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_DeleteAssociationCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_DeleteDocumentCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_DeleteInventoryCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_DeleteMaintenanceWindowCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_DeleteOpsItemCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_DeleteOpsMetadataCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_DeleteParameterCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_DeleteParametersCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_DeletePatchBaselineCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_DeleteResourceDataSyncCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_DeleteResourcePolicyCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_DeregisterManagedInstanceCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_DeregisterPatchBaselineForPatchGroupCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_DeregisterTargetFromMaintenanceWindowCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_DeregisterTaskFromMaintenanceWindowCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_DescribeActivationsCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_DescribeAssociationCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_DescribeAssociationExecutionsCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_DescribeAssociationExecutionTargetsCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_DescribeAutomationExecutionsCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_DescribeAutomationStepExecutionsCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_DescribeAvailablePatchesCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_DescribeDocumentCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_DescribeDocumentPermissionCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_DescribeEffectiveInstanceAssociationsCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_DescribeEffectivePatchesForPatchBaselineCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_DescribeInstanceAssociationsStatusCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_DescribeInstanceInformationCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_DescribeInstancePatchesCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_DescribeInstancePatchStatesCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_DescribeInstancePatchStatesForPatchGroupCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_DescribeInventoryDeletionsCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_DescribeMaintenanceWindowExecutionsCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_DescribeMaintenanceWindowExecutionTaskInvocationsCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_DescribeMaintenanceWindowExecutionTasksCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_DescribeMaintenanceWindowsCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_DescribeMaintenanceWindowScheduleCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_DescribeMaintenanceWindowsForTargetCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_DescribeMaintenanceWindowTargetsCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_DescribeMaintenanceWindowTasksCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_DescribeOpsItemsCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_DescribeParametersCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_DescribePatchBaselinesCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_DescribePatchGroupsCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_DescribePatchGroupStateCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_DescribePatchPropertiesCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_DescribeSessionsCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_DisassociateOpsItemRelatedItemCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_GetAutomationExecutionCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_GetCalendarStateCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_GetCommandInvocationCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_GetConnectionStatusCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_GetDefaultPatchBaselineCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_GetDeployablePatchSnapshotForInstanceCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_GetDocumentCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_GetInventoryCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_GetInventorySchemaCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_GetMaintenanceWindowCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_GetMaintenanceWindowExecutionCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_GetMaintenanceWindowExecutionTaskCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_GetMaintenanceWindowExecutionTaskInvocationCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_GetMaintenanceWindowTaskCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_GetOpsItemCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_GetOpsMetadataCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_GetOpsSummaryCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_GetParameterCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_GetParameterHistoryCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_GetParametersCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_GetParametersByPathCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_GetPatchBaselineCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_GetPatchBaselineForPatchGroupCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_GetResourcePoliciesCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_GetServiceSettingCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_LabelParameterVersionCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_ListAssociationsCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_ListAssociationVersionsCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_ListCommandInvocationsCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_ListCommandsCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_ListComplianceItemsCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_ListComplianceSummariesCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_ListDocumentMetadataHistoryCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_ListDocumentsCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_ListDocumentVersionsCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_ListInventoryEntriesCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_ListOpsItemEventsCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_ListOpsItemRelatedItemsCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_ListOpsMetadataCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_ListResourceComplianceSummariesCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_ListResourceDataSyncCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_ListTagsForResourceCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_ModifyDocumentPermissionCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_PutComplianceItemsCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_PutInventoryCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_PutParameterCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_PutResourcePolicyCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_RegisterDefaultPatchBaselineCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_RegisterPatchBaselineForPatchGroupCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_RegisterTargetWithMaintenanceWindowCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_RegisterTaskWithMaintenanceWindowCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_RemoveTagsFromResourceCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_ResetServiceSettingCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_ResumeSessionCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_SendAutomationSignalCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_SendCommandCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_StartAssociationsOnceCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_StartAutomationExecutionCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_StartChangeRequestExecutionCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_StartSessionCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_StopAutomationExecutionCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_TerminateSessionCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_UnlabelParameterVersionCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_UpdateAssociationCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_UpdateAssociationStatusCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_UpdateDocumentCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_UpdateDocumentDefaultVersionCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_UpdateDocumentMetadataCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_UpdateMaintenanceWindowCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_UpdateMaintenanceWindowTargetCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_UpdateMaintenanceWindowTaskCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_UpdateManagedInstanceRoleCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_UpdateOpsItemCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_UpdateOpsMetadataCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_UpdatePatchBaselineCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_UpdateResourceDataSyncCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_UpdateServiceSettingCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/runtimeConfig.browser.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/runtimeConfig.browser.d.ts deleted file mode 100644 index bfa8bece..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/runtimeConfig.browser.d.ts +++ /dev/null @@ -1,97 +0,0 @@ -import { FetchHttpHandler as RequestHandler } from "@smithy/fetch-http-handler"; -import { SSMClientConfig } from "./SSMClient"; -export declare const getRuntimeConfig: (config: SSMClientConfig) => { - runtime: string; - defaultsMode: import("@smithy/types").Provider< - import("@smithy/smithy-client").ResolvedDefaultsMode - >; - bodyLengthChecker: import("@smithy/types").BodyLengthCalculator; - credentialDefaultProvider: ( - input: any - ) => import("@smithy/types").Provider; - defaultUserAgentProvider: import("@smithy/types").Provider< - import("@smithy/types").UserAgent - >; - maxAttempts: number | import("@smithy/types").Provider; - region: string | import("@smithy/types").Provider; - requestHandler: - | (import("@smithy/types").RequestHandler< - any, - any, - import("@smithy/types").HttpHandlerOptions - > & - import("@smithy/types").RequestHandler< - import("@smithy/protocol-http").HttpRequest, - import("@smithy/protocol-http").HttpResponse, - import("@smithy/types").HttpHandlerOptions - > & { - updateHttpClientConfig(key: never, value: never): void; - httpHandlerConfigs(): {}; - }) - | RequestHandler; - retryMode: string | import("@smithy/types").Provider; - sha256: import("@smithy/types").HashConstructor; - streamCollector: import("@smithy/types").StreamCollector; - useDualstackEndpoint: boolean | import("@smithy/types").Provider; - useFipsEndpoint: boolean | import("@smithy/types").Provider; - apiVersion: string; - urlParser: import("@smithy/types").UrlParser; - base64Decoder: import("@smithy/types").Decoder; - base64Encoder: import("@smithy/types").Encoder; - utf8Decoder: import("@smithy/types").Decoder; - utf8Encoder: import("@smithy/types").Encoder; - disableHostPrefix: boolean; - serviceId: string; - logger: import("@smithy/types").Logger; - extensions: import("./runtimeExtensions").RuntimeExtension[]; - endpoint?: - | (( - | string - | import("@smithy/types").Endpoint - | import("@smithy/types").Provider - | import("@smithy/types").EndpointV2 - | import("@smithy/types").Provider - ) & - ( - | string - | import("@smithy/types").Provider - | import("@smithy/types").Endpoint - | import("@smithy/types").Provider - | import("@smithy/types").EndpointV2 - | import("@smithy/types").Provider - )) - | undefined; - endpointProvider: ( - endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, - context?: { - logger?: import("@smithy/types").Logger | undefined; - } - ) => import("@smithy/types").EndpointV2; - tls?: boolean | undefined; - retryStrategy?: - | import("@smithy/types").RetryStrategy - | import("@smithy/types").RetryStrategyV2 - | undefined; - credentials?: - | import("@smithy/types").AwsCredentialIdentity - | import("@smithy/types").Provider< - import("@smithy/types").AwsCredentialIdentity - > - | undefined; - signer?: - | import("@smithy/types").RequestSigner - | (( - authScheme?: import("@smithy/types").AuthScheme | undefined - ) => Promise) - | undefined; - signingEscapePath?: boolean | undefined; - systemClockOffset?: number | undefined; - signingRegion?: string | undefined; - signerConstructor?: - | (new ( - options: import("@smithy/signature-v4").SignatureV4Init & - import("@smithy/signature-v4").SignatureV4CryptoInit - ) => import("@smithy/types").RequestSigner) - | undefined; - customUserAgent?: string | import("@smithy/types").UserAgent | undefined; -}; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/runtimeConfig.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/runtimeConfig.d.ts deleted file mode 100644 index edc9b5a5..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/runtimeConfig.d.ts +++ /dev/null @@ -1,97 +0,0 @@ -import { NodeHttpHandler as RequestHandler } from "@smithy/node-http-handler"; -import { SSMClientConfig } from "./SSMClient"; -export declare const getRuntimeConfig: (config: SSMClientConfig) => { - runtime: string; - defaultsMode: import("@smithy/types").Provider< - import("@smithy/smithy-client").ResolvedDefaultsMode - >; - bodyLengthChecker: import("@smithy/types").BodyLengthCalculator; - credentialDefaultProvider: ( - input: any - ) => import("@smithy/types").Provider; - defaultUserAgentProvider: import("@smithy/types").Provider< - import("@smithy/types").UserAgent - >; - maxAttempts: number | import("@smithy/types").Provider; - region: string | import("@smithy/types").Provider; - requestHandler: - | (import("@smithy/types").RequestHandler< - any, - any, - import("@smithy/types").HttpHandlerOptions - > & - import("@smithy/types").RequestHandler< - import("@smithy/protocol-http").HttpRequest, - import("@smithy/protocol-http").HttpResponse, - import("@smithy/types").HttpHandlerOptions - > & { - updateHttpClientConfig(key: never, value: never): void; - httpHandlerConfigs(): {}; - }) - | RequestHandler; - retryMode: string | import("@smithy/types").Provider; - sha256: import("@smithy/types").HashConstructor; - streamCollector: import("@smithy/types").StreamCollector; - useDualstackEndpoint: boolean | import("@smithy/types").Provider; - useFipsEndpoint: boolean | import("@smithy/types").Provider; - apiVersion: string; - urlParser: import("@smithy/types").UrlParser; - base64Decoder: import("@smithy/types").Decoder; - base64Encoder: import("@smithy/types").Encoder; - utf8Decoder: import("@smithy/types").Decoder; - utf8Encoder: import("@smithy/types").Encoder; - disableHostPrefix: boolean; - serviceId: string; - logger: import("@smithy/types").Logger; - extensions: import("./runtimeExtensions").RuntimeExtension[]; - endpoint?: - | (( - | string - | import("@smithy/types").Endpoint - | import("@smithy/types").Provider - | import("@smithy/types").EndpointV2 - | import("@smithy/types").Provider - ) & - ( - | string - | import("@smithy/types").Provider - | import("@smithy/types").Endpoint - | import("@smithy/types").Provider - | import("@smithy/types").EndpointV2 - | import("@smithy/types").Provider - )) - | undefined; - endpointProvider: ( - endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, - context?: { - logger?: import("@smithy/types").Logger | undefined; - } - ) => import("@smithy/types").EndpointV2; - tls?: boolean | undefined; - retryStrategy?: - | import("@smithy/types").RetryStrategy - | import("@smithy/types").RetryStrategyV2 - | undefined; - credentials?: - | import("@smithy/types").AwsCredentialIdentity - | import("@smithy/types").Provider< - import("@smithy/types").AwsCredentialIdentity - > - | undefined; - signer?: - | import("@smithy/types").RequestSigner - | (( - authScheme?: import("@smithy/types").AuthScheme | undefined - ) => Promise) - | undefined; - signingEscapePath?: boolean | undefined; - systemClockOffset?: number | undefined; - signingRegion?: string | undefined; - signerConstructor?: - | (new ( - options: import("@smithy/signature-v4").SignatureV4Init & - import("@smithy/signature-v4").SignatureV4CryptoInit - ) => import("@smithy/types").RequestSigner) - | undefined; - customUserAgent?: string | import("@smithy/types").UserAgent | undefined; -}; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/runtimeConfig.native.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/runtimeConfig.native.d.ts deleted file mode 100644 index a3c8cd54..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/runtimeConfig.native.d.ts +++ /dev/null @@ -1,88 +0,0 @@ -import { SSMClientConfig } from "./SSMClient"; -export declare const getRuntimeConfig: (config: SSMClientConfig) => { - runtime: string; - sha256: import("@smithy/types").HashConstructor; - requestHandler: - | (import("@smithy/types").RequestHandler< - any, - any, - import("@smithy/types").HttpHandlerOptions - > & - import("@smithy/types").RequestHandler< - import("@smithy/protocol-http").HttpRequest, - import("@smithy/protocol-http").HttpResponse, - import("@smithy/types").HttpHandlerOptions - > & { - updateHttpClientConfig(key: never, value: never): void; - httpHandlerConfigs(): {}; - }) - | import("@smithy/fetch-http-handler").FetchHttpHandler; - apiVersion: string; - urlParser: import("@smithy/types").UrlParser; - bodyLengthChecker: import("@smithy/types").BodyLengthCalculator; - streamCollector: import("@smithy/types").StreamCollector; - base64Decoder: import("@smithy/types").Decoder; - base64Encoder: import("@smithy/types").Encoder; - utf8Decoder: import("@smithy/types").Decoder; - utf8Encoder: import("@smithy/types").Encoder; - disableHostPrefix: boolean; - serviceId: string; - useDualstackEndpoint: boolean | import("@smithy/types").Provider; - useFipsEndpoint: boolean | import("@smithy/types").Provider; - region: string | import("@smithy/types").Provider; - credentialDefaultProvider: ( - input: any - ) => import("@smithy/types").Provider; - defaultUserAgentProvider: import("@smithy/types").Provider< - import("@smithy/types").UserAgent - >; - maxAttempts: number | import("@smithy/types").Provider; - retryMode: string | import("@smithy/types").Provider; - logger: import("@smithy/types").Logger; - extensions: import("./runtimeExtensions").RuntimeExtension[]; - defaultsMode: - | import("@smithy/smithy-client").DefaultsMode - | import("@smithy/types").Provider< - import("@smithy/smithy-client").DefaultsMode - >; - endpoint?: - | string - | import("@smithy/types").Endpoint - | import("@smithy/types").Provider - | import("@smithy/types").EndpointV2 - | import("@smithy/types").Provider - | undefined; - endpointProvider: ( - endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, - context?: { - logger?: import("@smithy/types").Logger | undefined; - } - ) => import("@smithy/types").EndpointV2; - tls?: boolean | undefined; - retryStrategy?: - | import("@smithy/types").RetryStrategy - | import("@smithy/types").RetryStrategyV2 - | undefined; - credentials?: - | import("@smithy/types").AwsCredentialIdentity - | import("@smithy/types").Provider< - import("@smithy/types").AwsCredentialIdentity - > - | undefined; - signer?: - | import("@smithy/types").RequestSigner - | (( - authScheme?: import("@smithy/types").AuthScheme | undefined - ) => Promise) - | undefined; - signingEscapePath?: boolean | undefined; - systemClockOffset?: number | undefined; - signingRegion?: string | undefined; - signerConstructor?: - | (new ( - options: import("@smithy/signature-v4").SignatureV4Init & - import("@smithy/signature-v4").SignatureV4CryptoInit - ) => import("@smithy/types").RequestSigner) - | undefined; - customUserAgent?: string | import("@smithy/types").UserAgent | undefined; -}; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/runtimeConfig.shared.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/runtimeConfig.shared.d.ts deleted file mode 100644 index 4407c637..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/runtimeConfig.shared.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { SSMClientConfig } from "./SSMClient"; -export declare const getRuntimeConfig: (config: SSMClientConfig) => { - apiVersion: string; - base64Decoder: import("@smithy/types").Decoder; - base64Encoder: import("@smithy/types").Encoder; - disableHostPrefix: boolean; - endpointProvider: ( - endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, - context?: { - logger?: import("@smithy/types").Logger | undefined; - } - ) => import("@smithy/types").EndpointV2; - extensions: import("./runtimeExtensions").RuntimeExtension[]; - logger: import("@smithy/types").Logger; - serviceId: string; - urlParser: import("@smithy/types").UrlParser; - utf8Decoder: import("@smithy/types").Decoder; - utf8Encoder: import("@smithy/types").Encoder; -}; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/runtimeExtensions.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/runtimeExtensions.d.ts deleted file mode 100644 index 574770da..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/runtimeExtensions.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { SSMExtensionConfiguration } from "./extensionConfiguration"; -export interface RuntimeExtension { - configure(extensionConfiguration: SSMExtensionConfiguration): void; -} -export interface RuntimeExtensionsConfig { - extensions: RuntimeExtension[]; -} -export declare const resolveRuntimeExtensions: ( - runtimeConfig: any, - extensions: RuntimeExtension[] -) => any; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/waiters/index.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/waiters/index.d.ts deleted file mode 100644 index 88427106..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/waiters/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./waitForCommandExecuted"; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/waiters/waitForCommandExecuted.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/waiters/waitForCommandExecuted.d.ts deleted file mode 100644 index ef9a81f8..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/ts3.4/waiters/waitForCommandExecuted.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter"; -import { GetCommandInvocationCommandInput } from "../commands/GetCommandInvocationCommand"; -import { SSMClient } from "../SSMClient"; -export declare const waitForCommandExecuted: ( - params: WaiterConfiguration, - input: GetCommandInvocationCommandInput -) => Promise; -export declare const waitUntilCommandExecuted: ( - params: WaiterConfiguration, - input: GetCommandInvocationCommandInput -) => Promise; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/waiters/index.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/waiters/index.d.ts deleted file mode 100644 index 88427106..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/waiters/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./waitForCommandExecuted"; diff --git a/node_modules/@aws-sdk/client-ssm/dist-types/waiters/waitForCommandExecuted.d.ts b/node_modules/@aws-sdk/client-ssm/dist-types/waiters/waitForCommandExecuted.d.ts deleted file mode 100644 index 47475384..00000000 --- a/node_modules/@aws-sdk/client-ssm/dist-types/waiters/waitForCommandExecuted.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { WaiterConfiguration, WaiterResult } from "@smithy/util-waiter"; -import { GetCommandInvocationCommandInput } from "../commands/GetCommandInvocationCommand"; -import { SSMClient } from "../SSMClient"; -/** - * - * @deprecated Use waitUntilCommandExecuted instead. waitForCommandExecuted does not throw error in non-success cases. - */ -export declare const waitForCommandExecuted: (params: WaiterConfiguration, input: GetCommandInvocationCommandInput) => Promise; -/** - * - * @param params - Waiter configuration options. - * @param input - The input to GetCommandInvocationCommand for polling. - */ -export declare const waitUntilCommandExecuted: (params: WaiterConfiguration, input: GetCommandInvocationCommandInput) => Promise; diff --git a/node_modules/@aws-sdk/client-ssm/package.json b/node_modules/@aws-sdk/client-ssm/package.json deleted file mode 100644 index 440bcbd4..00000000 --- a/node_modules/@aws-sdk/client-ssm/package.json +++ /dev/null @@ -1,105 +0,0 @@ -{ - "name": "@aws-sdk/client-ssm", - "description": "AWS SDK for JavaScript Ssm Client for Node.js, Browser and React Native", - "version": "3.454.0", - "scripts": { - "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", - "build:cjs": "tsc -p tsconfig.cjs.json", - "build:docs": "typedoc", - "build:es": "tsc -p tsconfig.es.json", - "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build", - "build:types": "tsc -p tsconfig.types.json", - "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", - "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "extract:docs": "api-extractor run --local", - "generate:client": "node ../../scripts/generate-clients/single-service --solo ssm" - }, - "main": "./dist-cjs/index.js", - "types": "./dist-types/index.d.ts", - "module": "./dist-es/index.js", - "sideEffects": false, - "dependencies": { - "@aws-crypto/sha256-browser": "3.0.0", - "@aws-crypto/sha256-js": "3.0.0", - "@aws-sdk/client-sts": "3.454.0", - "@aws-sdk/core": "3.451.0", - "@aws-sdk/credential-provider-node": "3.451.0", - "@aws-sdk/middleware-host-header": "3.451.0", - "@aws-sdk/middleware-logger": "3.451.0", - "@aws-sdk/middleware-recursion-detection": "3.451.0", - "@aws-sdk/middleware-signing": "3.451.0", - "@aws-sdk/middleware-user-agent": "3.451.0", - "@aws-sdk/region-config-resolver": "3.451.0", - "@aws-sdk/types": "3.451.0", - "@aws-sdk/util-endpoints": "3.451.0", - "@aws-sdk/util-user-agent-browser": "3.451.0", - "@aws-sdk/util-user-agent-node": "3.451.0", - "@smithy/config-resolver": "^2.0.18", - "@smithy/fetch-http-handler": "^2.2.6", - "@smithy/hash-node": "^2.0.15", - "@smithy/invalid-dependency": "^2.0.13", - "@smithy/middleware-content-length": "^2.0.15", - "@smithy/middleware-endpoint": "^2.2.0", - "@smithy/middleware-retry": "^2.0.20", - "@smithy/middleware-serde": "^2.0.13", - "@smithy/middleware-stack": "^2.0.7", - "@smithy/node-config-provider": "^2.1.5", - "@smithy/node-http-handler": "^2.1.9", - "@smithy/protocol-http": "^3.0.9", - "@smithy/smithy-client": "^2.1.15", - "@smithy/types": "^2.5.0", - "@smithy/url-parser": "^2.0.13", - "@smithy/util-base64": "^2.0.1", - "@smithy/util-body-length-browser": "^2.0.0", - "@smithy/util-body-length-node": "^2.1.0", - "@smithy/util-defaults-mode-browser": "^2.0.19", - "@smithy/util-defaults-mode-node": "^2.0.25", - "@smithy/util-endpoints": "^1.0.4", - "@smithy/util-retry": "^2.0.6", - "@smithy/util-utf8": "^2.0.2", - "@smithy/util-waiter": "^2.0.13", - "tslib": "^2.5.0", - "uuid": "^8.3.2" - }, - "devDependencies": { - "@smithy/service-client-documentation-generator": "^2.0.0", - "@tsconfig/node14": "1.0.3", - "@types/node": "^14.14.31", - "@types/uuid": "^8.3.0", - "concurrently": "7.0.0", - "downlevel-dts": "0.10.1", - "rimraf": "3.0.2", - "typedoc": "0.23.23", - "typescript": "~4.9.5" - }, - "engines": { - "node": ">=14.0.0" - }, - "typesVersions": { - "<4.0": { - "dist-types/*": [ - "dist-types/ts3.4/*" - ] - } - }, - "files": [ - "dist-*/**" - ], - "author": { - "name": "AWS SDK for JavaScript Team", - "url": "https://aws.amazon.com/javascript/" - }, - "license": "Apache-2.0", - "browser": { - "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser" - }, - "react-native": { - "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native" - }, - "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-ssm", - "repository": { - "type": "git", - "url": "https://github.com/aws/aws-sdk-js-v3.git", - "directory": "clients/client-ssm" - } -} diff --git a/node_modules/@aws-sdk/client-sso/LICENSE b/node_modules/@aws-sdk/client-sso/LICENSE deleted file mode 100644 index dd65ae06..00000000 --- a/node_modules/@aws-sdk/client-sso/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/node_modules/@aws-sdk/client-sso/README.md b/node_modules/@aws-sdk/client-sso/README.md deleted file mode 100644 index ccb59642..00000000 --- a/node_modules/@aws-sdk/client-sso/README.md +++ /dev/null @@ -1,252 +0,0 @@ - - -# @aws-sdk/client-sso - -## Description - -AWS SDK for JavaScript SSO Client for Node.js, Browser and React Native. - -

AWS IAM Identity Center (successor to AWS Single Sign-On) Portal is a web service that makes it easy for you to assign user access to -IAM Identity Center resources such as the AWS access portal. Users can get AWS account applications and roles -assigned to them and get federated into the application.

- -

Although AWS Single Sign-On was renamed, the sso and -identitystore API namespaces will continue to retain their original name for -backward compatibility purposes. For more information, see IAM Identity Center rename.

-
-

This reference guide describes the IAM Identity Center Portal operations that you can call -programatically and includes detailed information on data types and errors.

- -

AWS provides SDKs that consist of libraries and sample code for various programming -languages and platforms, such as Java, Ruby, .Net, iOS, or Android. The SDKs provide a -convenient way to create programmatic access to IAM Identity Center and other AWS services. For more -information about the AWS SDKs, including how to download and install them, see Tools for Amazon Web Services.

-
- -## Installing - -To install the this package, simply type add or install @aws-sdk/client-sso -using your favorite package manager: - -- `npm install @aws-sdk/client-sso` -- `yarn add @aws-sdk/client-sso` -- `pnpm add @aws-sdk/client-sso` - -## Getting Started - -### Import - -The AWS SDK is modulized by clients and commands. -To send a request, you only need to import the `SSOClient` and -the commands you need, for example `ListAccountsCommand`: - -```js -// ES5 example -const { SSOClient, ListAccountsCommand } = require("@aws-sdk/client-sso"); -``` - -```ts -// ES6+ example -import { SSOClient, ListAccountsCommand } from "@aws-sdk/client-sso"; -``` - -### Usage - -To send a request, you: - -- Initiate client with configuration (e.g. credentials, region). -- Initiate command with input parameters. -- Call `send` operation on client with command object as input. -- If you are using a custom http handler, you may call `destroy()` to close open connections. - -```js -// a client can be shared by different commands. -const client = new SSOClient({ region: "REGION" }); - -const params = { - /** input parameters */ -}; -const command = new ListAccountsCommand(params); -``` - -#### Async/await - -We recommend using [await](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/await) -operator to wait for the promise returned by send operation as follows: - -```js -// async/await. -try { - const data = await client.send(command); - // process data. -} catch (error) { - // error handling. -} finally { - // finally. -} -``` - -Async-await is clean, concise, intuitive, easy to debug and has better error handling -as compared to using Promise chains or callbacks. - -#### Promises - -You can also use [Promise chaining](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises#chaining) -to execute send operation. - -```js -client.send(command).then( - (data) => { - // process data. - }, - (error) => { - // error handling. - } -); -``` - -Promises can also be called using `.catch()` and `.finally()` as follows: - -```js -client - .send(command) - .then((data) => { - // process data. - }) - .catch((error) => { - // error handling. - }) - .finally(() => { - // finally. - }); -``` - -#### Callbacks - -We do not recommend using callbacks because of [callback hell](http://callbackhell.com/), -but they are supported by the send operation. - -```js -// callbacks. -client.send(command, (err, data) => { - // process err and data. -}); -``` - -#### v2 compatible style - -The client can also send requests using v2 compatible style. -However, it results in a bigger bundle size and may be dropped in next major version. More details in the blog post -on [modular packages in AWS SDK for JavaScript](https://aws.amazon.com/blogs/developer/modular-packages-in-aws-sdk-for-javascript/) - -```ts -import * as AWS from "@aws-sdk/client-sso"; -const client = new AWS.SSO({ region: "REGION" }); - -// async/await. -try { - const data = await client.listAccounts(params); - // process data. -} catch (error) { - // error handling. -} - -// Promises. -client - .listAccounts(params) - .then((data) => { - // process data. - }) - .catch((error) => { - // error handling. - }); - -// callbacks. -client.listAccounts(params, (err, data) => { - // process err and data. -}); -``` - -### Troubleshooting - -When the service returns an exception, the error will include the exception information, -as well as response metadata (e.g. request id). - -```js -try { - const data = await client.send(command); - // process data. -} catch (error) { - const { requestId, cfId, extendedRequestId } = error.$metadata; - console.log({ requestId, cfId, extendedRequestId }); - /** - * The keys within exceptions are also parsed. - * You can access them by specifying exception names: - * if (error.name === 'SomeServiceException') { - * const value = error.specialKeyInException; - * } - */ -} -``` - -## Getting Help - -Please use these community resources for getting help. -We use the GitHub issues for tracking bugs and feature requests, but have limited bandwidth to address them. - -- Visit [Developer Guide](https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/welcome.html) - or [API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/index.html). -- Check out the blog posts tagged with [`aws-sdk-js`](https://aws.amazon.com/blogs/developer/tag/aws-sdk-js/) - on AWS Developer Blog. -- Ask a question on [StackOverflow](https://stackoverflow.com/questions/tagged/aws-sdk-js) and tag it with `aws-sdk-js`. -- Join the AWS JavaScript community on [gitter](https://gitter.im/aws/aws-sdk-js-v3). -- If it turns out that you may have found a bug, please [open an issue](https://github.com/aws/aws-sdk-js-v3/issues/new/choose). - -To test your universal JavaScript code in Node.js, browser and react-native environments, -visit our [code samples repo](https://github.com/aws-samples/aws-sdk-js-tests). - -## Contributing - -This client code is generated automatically. Any modifications will be overwritten the next time the `@aws-sdk/client-sso` package is updated. -To contribute to client you can check our [generate clients scripts](https://github.com/aws/aws-sdk-js-v3/tree/main/scripts/generate-clients). - -## License - -This SDK is distributed under the -[Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0), -see LICENSE for more information. - -## Client Commands (Operations List) - -
- -GetRoleCredentials - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-sso/classes/getrolecredentialscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-sso/interfaces/getrolecredentialscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-sso/interfaces/getrolecredentialscommandoutput.html) - -
-
- -ListAccountRoles - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-sso/classes/listaccountrolescommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-sso/interfaces/listaccountrolescommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-sso/interfaces/listaccountrolescommandoutput.html) - -
-
- -ListAccounts - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-sso/classes/listaccountscommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-sso/interfaces/listaccountscommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-sso/interfaces/listaccountscommandoutput.html) - -
-
- -Logout - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-sso/classes/logoutcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-sso/interfaces/logoutcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-sso/interfaces/logoutcommandoutput.html) - -
diff --git a/node_modules/@aws-sdk/client-sso/dist-cjs/SSO.js b/node_modules/@aws-sdk/client-sso/dist-cjs/SSO.js deleted file mode 100644 index 84678ea4..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-cjs/SSO.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SSO = void 0; -const smithy_client_1 = require("@smithy/smithy-client"); -const GetRoleCredentialsCommand_1 = require("./commands/GetRoleCredentialsCommand"); -const ListAccountRolesCommand_1 = require("./commands/ListAccountRolesCommand"); -const ListAccountsCommand_1 = require("./commands/ListAccountsCommand"); -const LogoutCommand_1 = require("./commands/LogoutCommand"); -const SSOClient_1 = require("./SSOClient"); -const commands = { - GetRoleCredentialsCommand: GetRoleCredentialsCommand_1.GetRoleCredentialsCommand, - ListAccountRolesCommand: ListAccountRolesCommand_1.ListAccountRolesCommand, - ListAccountsCommand: ListAccountsCommand_1.ListAccountsCommand, - LogoutCommand: LogoutCommand_1.LogoutCommand, -}; -class SSO extends SSOClient_1.SSOClient { -} -exports.SSO = SSO; -(0, smithy_client_1.createAggregatedClient)(commands, SSO); diff --git a/node_modules/@aws-sdk/client-sso/dist-cjs/SSOClient.js b/node_modules/@aws-sdk/client-sso/dist-cjs/SSOClient.js deleted file mode 100644 index c94d369a..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-cjs/SSOClient.js +++ /dev/null @@ -1,40 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SSOClient = exports.__Client = void 0; -const middleware_host_header_1 = require("@aws-sdk/middleware-host-header"); -const middleware_logger_1 = require("@aws-sdk/middleware-logger"); -const middleware_recursion_detection_1 = require("@aws-sdk/middleware-recursion-detection"); -const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent"); -const config_resolver_1 = require("@smithy/config-resolver"); -const middleware_content_length_1 = require("@smithy/middleware-content-length"); -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_retry_1 = require("@smithy/middleware-retry"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "__Client", { enumerable: true, get: function () { return smithy_client_1.Client; } }); -const EndpointParameters_1 = require("./endpoint/EndpointParameters"); -const runtimeConfig_1 = require("./runtimeConfig"); -const runtimeExtensions_1 = require("./runtimeExtensions"); -class SSOClient extends smithy_client_1.Client { - constructor(...[configuration]) { - const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration || {}); - const _config_1 = (0, EndpointParameters_1.resolveClientEndpointParameters)(_config_0); - const _config_2 = (0, config_resolver_1.resolveRegionConfig)(_config_1); - const _config_3 = (0, middleware_endpoint_1.resolveEndpointConfig)(_config_2); - const _config_4 = (0, middleware_retry_1.resolveRetryConfig)(_config_3); - const _config_5 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_4); - const _config_6 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_5); - const _config_7 = (0, runtimeExtensions_1.resolveRuntimeExtensions)(_config_6, configuration?.extensions || []); - super(_config_7); - this.config = _config_7; - this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config)); - this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config)); - this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config)); - this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config)); - this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config)); - this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config)); - } - destroy() { - super.destroy(); - } -} -exports.SSOClient = SSOClient; diff --git a/node_modules/@aws-sdk/client-sso/dist-cjs/commands/GetRoleCredentialsCommand.js b/node_modules/@aws-sdk/client-sso/dist-cjs/commands/GetRoleCredentialsCommand.js deleted file mode 100644 index 257ca4b9..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-cjs/commands/GetRoleCredentialsCommand.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GetRoleCredentialsCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const models_0_1 = require("../models/models_0"); -const Aws_restJson1_1 = require("../protocols/Aws_restJson1"); -class GetRoleCredentialsCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetRoleCredentialsCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSOClient"; - const commandName = "GetRoleCredentialsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.GetRoleCredentialsRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.GetRoleCredentialsResponseFilterSensitiveLog, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "SWBPortalService", - operation: "GetRoleCredentials", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_restJson1_1.se_GetRoleCredentialsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_restJson1_1.de_GetRoleCredentialsCommand)(output, context); - } -} -exports.GetRoleCredentialsCommand = GetRoleCredentialsCommand; diff --git a/node_modules/@aws-sdk/client-sso/dist-cjs/commands/ListAccountRolesCommand.js b/node_modules/@aws-sdk/client-sso/dist-cjs/commands/ListAccountRolesCommand.js deleted file mode 100644 index e41441aa..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-cjs/commands/ListAccountRolesCommand.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ListAccountRolesCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const models_0_1 = require("../models/models_0"); -const Aws_restJson1_1 = require("../protocols/Aws_restJson1"); -class ListAccountRolesCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListAccountRolesCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSOClient"; - const commandName = "ListAccountRolesCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.ListAccountRolesRequestFilterSensitiveLog, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "SWBPortalService", - operation: "ListAccountRoles", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_restJson1_1.se_ListAccountRolesCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_restJson1_1.de_ListAccountRolesCommand)(output, context); - } -} -exports.ListAccountRolesCommand = ListAccountRolesCommand; diff --git a/node_modules/@aws-sdk/client-sso/dist-cjs/commands/ListAccountsCommand.js b/node_modules/@aws-sdk/client-sso/dist-cjs/commands/ListAccountsCommand.js deleted file mode 100644 index 3e0c8dd3..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-cjs/commands/ListAccountsCommand.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ListAccountsCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const models_0_1 = require("../models/models_0"); -const Aws_restJson1_1 = require("../protocols/Aws_restJson1"); -class ListAccountsCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, ListAccountsCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSOClient"; - const commandName = "ListAccountsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.ListAccountsRequestFilterSensitiveLog, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "SWBPortalService", - operation: "ListAccounts", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_restJson1_1.se_ListAccountsCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_restJson1_1.de_ListAccountsCommand)(output, context); - } -} -exports.ListAccountsCommand = ListAccountsCommand; diff --git a/node_modules/@aws-sdk/client-sso/dist-cjs/commands/LogoutCommand.js b/node_modules/@aws-sdk/client-sso/dist-cjs/commands/LogoutCommand.js deleted file mode 100644 index 90985242..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-cjs/commands/LogoutCommand.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.LogoutCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const models_0_1 = require("../models/models_0"); -const Aws_restJson1_1 = require("../protocols/Aws_restJson1"); -class LogoutCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, LogoutCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSOClient"; - const commandName = "LogoutCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.LogoutRequestFilterSensitiveLog, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "SWBPortalService", - operation: "Logout", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_restJson1_1.se_LogoutCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_restJson1_1.de_LogoutCommand)(output, context); - } -} -exports.LogoutCommand = LogoutCommand; diff --git a/node_modules/@aws-sdk/client-sso/dist-cjs/commands/index.js b/node_modules/@aws-sdk/client-sso/dist-cjs/commands/index.js deleted file mode 100644 index 7164b095..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-cjs/commands/index.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./GetRoleCredentialsCommand"), exports); -tslib_1.__exportStar(require("./ListAccountRolesCommand"), exports); -tslib_1.__exportStar(require("./ListAccountsCommand"), exports); -tslib_1.__exportStar(require("./LogoutCommand"), exports); diff --git a/node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/EndpointParameters.js b/node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/EndpointParameters.js deleted file mode 100644 index c9424215..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/EndpointParameters.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.resolveClientEndpointParameters = void 0; -const resolveClientEndpointParameters = (options) => { - return { - ...options, - useDualstackEndpoint: options.useDualstackEndpoint ?? false, - useFipsEndpoint: options.useFipsEndpoint ?? false, - defaultSigningName: "awsssoportal", - }; -}; -exports.resolveClientEndpointParameters = resolveClientEndpointParameters; diff --git a/node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/endpointResolver.js b/node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/endpointResolver.js deleted file mode 100644 index 3d8d8de8..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/endpointResolver.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.defaultEndpointResolver = void 0; -const util_endpoints_1 = require("@smithy/util-endpoints"); -const ruleset_1 = require("./ruleset"); -const defaultEndpointResolver = (endpointParams, context = {}) => { - return (0, util_endpoints_1.resolveEndpoint)(ruleset_1.ruleSet, { - endpointParams: endpointParams, - logger: context.logger, - }); -}; -exports.defaultEndpointResolver = defaultEndpointResolver; diff --git a/node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/ruleset.js b/node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/ruleset.js deleted file mode 100644 index 4321ed97..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-cjs/endpoint/ruleset.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ruleSet = void 0; -const u = "required", v = "fn", w = "argv", x = "ref"; -const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "getAttr", i = { [u]: false, "type": "String" }, j = { [u]: true, "default": false, "type": "Boolean" }, k = { [x]: "Endpoint" }, l = { [v]: c, [w]: [{ [x]: "UseFIPS" }, true] }, m = { [v]: c, [w]: [{ [x]: "UseDualStack" }, true] }, n = {}, o = { [v]: h, [w]: [{ [x]: g }, "supportsFIPS"] }, p = { [x]: g }, q = { [v]: c, [w]: [true, { [v]: h, [w]: [p, "supportsDualStack"] }] }, r = [l], s = [m], t = [{ [x]: "Region" }]; -const _data = { version: "1.0", parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i }, rules: [{ conditions: [{ [v]: b, [w]: [k] }], rules: [{ conditions: r, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: s, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: k, properties: n, headers: n }, type: e }], type: f }, { conditions: [{ [v]: b, [w]: t }], rules: [{ conditions: [{ [v]: "aws.partition", [w]: t, assign: g }], rules: [{ conditions: [l, m], rules: [{ conditions: [{ [v]: c, [w]: [a, o] }, q], rules: [{ endpoint: { url: "https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: r, rules: [{ conditions: [{ [v]: c, [w]: [o, a] }], rules: [{ conditions: [{ [v]: "stringEquals", [w]: [{ [v]: h, [w]: [p, "name"] }, "aws-us-gov"] }], endpoint: { url: "https://portal.sso.{Region}.amazonaws.com", properties: n, headers: n }, type: e }, { endpoint: { url: "https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: s, rules: [{ conditions: [q], rules: [{ endpoint: { url: "https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://portal.sso.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] }; -exports.ruleSet = _data; diff --git a/node_modules/@aws-sdk/client-sso/dist-cjs/extensionConfiguration.js b/node_modules/@aws-sdk/client-sso/dist-cjs/extensionConfiguration.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-cjs/extensionConfiguration.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@aws-sdk/client-sso/dist-cjs/index.js b/node_modules/@aws-sdk/client-sso/dist-cjs/index.js deleted file mode 100644 index 92509914..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-cjs/index.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SSOServiceException = void 0; -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./SSOClient"), exports); -tslib_1.__exportStar(require("./SSO"), exports); -tslib_1.__exportStar(require("./commands"), exports); -tslib_1.__exportStar(require("./pagination"), exports); -tslib_1.__exportStar(require("./models"), exports); -require("@aws-sdk/util-endpoints"); -var SSOServiceException_1 = require("./models/SSOServiceException"); -Object.defineProperty(exports, "SSOServiceException", { enumerable: true, get: function () { return SSOServiceException_1.SSOServiceException; } }); diff --git a/node_modules/@aws-sdk/client-sso/dist-cjs/models/SSOServiceException.js b/node_modules/@aws-sdk/client-sso/dist-cjs/models/SSOServiceException.js deleted file mode 100644 index 97ba0d89..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-cjs/models/SSOServiceException.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SSOServiceException = exports.__ServiceException = void 0; -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } }); -class SSOServiceException extends smithy_client_1.ServiceException { - constructor(options) { - super(options); - Object.setPrototypeOf(this, SSOServiceException.prototype); - } -} -exports.SSOServiceException = SSOServiceException; diff --git a/node_modules/@aws-sdk/client-sso/dist-cjs/models/index.js b/node_modules/@aws-sdk/client-sso/dist-cjs/models/index.js deleted file mode 100644 index 8ced418b..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-cjs/models/index.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./models_0"), exports); diff --git a/node_modules/@aws-sdk/client-sso/dist-cjs/models/models_0.js b/node_modules/@aws-sdk/client-sso/dist-cjs/models/models_0.js deleted file mode 100644 index 49024849..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-cjs/models/models_0.js +++ /dev/null @@ -1,88 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.LogoutRequestFilterSensitiveLog = exports.ListAccountsRequestFilterSensitiveLog = exports.ListAccountRolesRequestFilterSensitiveLog = exports.GetRoleCredentialsResponseFilterSensitiveLog = exports.RoleCredentialsFilterSensitiveLog = exports.GetRoleCredentialsRequestFilterSensitiveLog = exports.UnauthorizedException = exports.TooManyRequestsException = exports.ResourceNotFoundException = exports.InvalidRequestException = void 0; -const smithy_client_1 = require("@smithy/smithy-client"); -const SSOServiceException_1 = require("./SSOServiceException"); -class InvalidRequestException extends SSOServiceException_1.SSOServiceException { - constructor(opts) { - super({ - name: "InvalidRequestException", - $fault: "client", - ...opts, - }); - this.name = "InvalidRequestException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidRequestException.prototype); - } -} -exports.InvalidRequestException = InvalidRequestException; -class ResourceNotFoundException extends SSOServiceException_1.SSOServiceException { - constructor(opts) { - super({ - name: "ResourceNotFoundException", - $fault: "client", - ...opts, - }); - this.name = "ResourceNotFoundException"; - this.$fault = "client"; - Object.setPrototypeOf(this, ResourceNotFoundException.prototype); - } -} -exports.ResourceNotFoundException = ResourceNotFoundException; -class TooManyRequestsException extends SSOServiceException_1.SSOServiceException { - constructor(opts) { - super({ - name: "TooManyRequestsException", - $fault: "client", - ...opts, - }); - this.name = "TooManyRequestsException"; - this.$fault = "client"; - Object.setPrototypeOf(this, TooManyRequestsException.prototype); - } -} -exports.TooManyRequestsException = TooManyRequestsException; -class UnauthorizedException extends SSOServiceException_1.SSOServiceException { - constructor(opts) { - super({ - name: "UnauthorizedException", - $fault: "client", - ...opts, - }); - this.name = "UnauthorizedException"; - this.$fault = "client"; - Object.setPrototypeOf(this, UnauthorizedException.prototype); - } -} -exports.UnauthorizedException = UnauthorizedException; -const GetRoleCredentialsRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING }), -}); -exports.GetRoleCredentialsRequestFilterSensitiveLog = GetRoleCredentialsRequestFilterSensitiveLog; -const RoleCredentialsFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.secretAccessKey && { secretAccessKey: smithy_client_1.SENSITIVE_STRING }), - ...(obj.sessionToken && { sessionToken: smithy_client_1.SENSITIVE_STRING }), -}); -exports.RoleCredentialsFilterSensitiveLog = RoleCredentialsFilterSensitiveLog; -const GetRoleCredentialsResponseFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.roleCredentials && { roleCredentials: (0, exports.RoleCredentialsFilterSensitiveLog)(obj.roleCredentials) }), -}); -exports.GetRoleCredentialsResponseFilterSensitiveLog = GetRoleCredentialsResponseFilterSensitiveLog; -const ListAccountRolesRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING }), -}); -exports.ListAccountRolesRequestFilterSensitiveLog = ListAccountRolesRequestFilterSensitiveLog; -const ListAccountsRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING }), -}); -exports.ListAccountsRequestFilterSensitiveLog = ListAccountsRequestFilterSensitiveLog; -const LogoutRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.accessToken && { accessToken: smithy_client_1.SENSITIVE_STRING }), -}); -exports.LogoutRequestFilterSensitiveLog = LogoutRequestFilterSensitiveLog; diff --git a/node_modules/@aws-sdk/client-sso/dist-cjs/pagination/Interfaces.js b/node_modules/@aws-sdk/client-sso/dist-cjs/pagination/Interfaces.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-cjs/pagination/Interfaces.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@aws-sdk/client-sso/dist-cjs/pagination/ListAccountRolesPaginator.js b/node_modules/@aws-sdk/client-sso/dist-cjs/pagination/ListAccountRolesPaginator.js deleted file mode 100644 index 1991e75a..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-cjs/pagination/ListAccountRolesPaginator.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.paginateListAccountRoles = void 0; -const ListAccountRolesCommand_1 = require("../commands/ListAccountRolesCommand"); -const SSOClient_1 = require("../SSOClient"); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListAccountRolesCommand_1.ListAccountRolesCommand(input), ...args); -}; -async function* paginateListAccountRoles(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.nextToken = token; - input["maxResults"] = config.pageSize; - if (config.client instanceof SSOClient_1.SSOClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSO | SSOClient"); - } - yield page; - const prevToken = token; - token = page.nextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateListAccountRoles = paginateListAccountRoles; diff --git a/node_modules/@aws-sdk/client-sso/dist-cjs/pagination/ListAccountsPaginator.js b/node_modules/@aws-sdk/client-sso/dist-cjs/pagination/ListAccountsPaginator.js deleted file mode 100644 index d4d3d8cc..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-cjs/pagination/ListAccountsPaginator.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.paginateListAccounts = void 0; -const ListAccountsCommand_1 = require("../commands/ListAccountsCommand"); -const SSOClient_1 = require("../SSOClient"); -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListAccountsCommand_1.ListAccountsCommand(input), ...args); -}; -async function* paginateListAccounts(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.nextToken = token; - input["maxResults"] = config.pageSize; - if (config.client instanceof SSOClient_1.SSOClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSO | SSOClient"); - } - yield page; - const prevToken = token; - token = page.nextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} -exports.paginateListAccounts = paginateListAccounts; diff --git a/node_modules/@aws-sdk/client-sso/dist-cjs/pagination/index.js b/node_modules/@aws-sdk/client-sso/dist-cjs/pagination/index.js deleted file mode 100644 index ebb311a1..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-cjs/pagination/index.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./Interfaces"), exports); -tslib_1.__exportStar(require("./ListAccountRolesPaginator"), exports); -tslib_1.__exportStar(require("./ListAccountsPaginator"), exports); diff --git a/node_modules/@aws-sdk/client-sso/dist-cjs/protocols/Aws_restJson1.js b/node_modules/@aws-sdk/client-sso/dist-cjs/protocols/Aws_restJson1.js deleted file mode 100644 index da24226c..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-cjs/protocols/Aws_restJson1.js +++ /dev/null @@ -1,367 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.de_LogoutCommand = exports.de_ListAccountsCommand = exports.de_ListAccountRolesCommand = exports.de_GetRoleCredentialsCommand = exports.se_LogoutCommand = exports.se_ListAccountsCommand = exports.se_ListAccountRolesCommand = exports.se_GetRoleCredentialsCommand = void 0; -const protocol_http_1 = require("@smithy/protocol-http"); -const smithy_client_1 = require("@smithy/smithy-client"); -const models_0_1 = require("../models/models_0"); -const SSOServiceException_1 = require("../models/SSOServiceException"); -const se_GetRoleCredentialsCommand = async (input, context) => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); - const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, { - "x-amz-sso_bearer_token": input.accessToken, - }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/federation/credentials"; - const query = (0, smithy_client_1.map)({ - role_name: [, (0, smithy_client_1.expectNonNull)(input.roleName, `roleName`)], - account_id: [, (0, smithy_client_1.expectNonNull)(input.accountId, `accountId`)], - }); - let body; - return new protocol_http_1.HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); -}; -exports.se_GetRoleCredentialsCommand = se_GetRoleCredentialsCommand; -const se_ListAccountRolesCommand = async (input, context) => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); - const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, { - "x-amz-sso_bearer_token": input.accessToken, - }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assignment/roles"; - const query = (0, smithy_client_1.map)({ - next_token: [, input.nextToken], - max_result: [() => input.maxResults !== void 0, () => input.maxResults.toString()], - account_id: [, (0, smithy_client_1.expectNonNull)(input.accountId, `accountId`)], - }); - let body; - return new protocol_http_1.HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); -}; -exports.se_ListAccountRolesCommand = se_ListAccountRolesCommand; -const se_ListAccountsCommand = async (input, context) => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); - const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, { - "x-amz-sso_bearer_token": input.accessToken, - }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assignment/accounts"; - const query = (0, smithy_client_1.map)({ - next_token: [, input.nextToken], - max_result: [() => input.maxResults !== void 0, () => input.maxResults.toString()], - }); - let body; - return new protocol_http_1.HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); -}; -exports.se_ListAccountsCommand = se_ListAccountsCommand; -const se_LogoutCommand = async (input, context) => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); - const headers = (0, smithy_client_1.map)({}, isSerializableHeaderValue, { - "x-amz-sso_bearer_token": input.accessToken, - }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/logout"; - let body; - return new protocol_http_1.HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); -}; -exports.se_LogoutCommand = se_LogoutCommand; -const de_GetRoleCredentialsCommand = async (output, context) => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_GetRoleCredentialsCommandError(output, context); - } - const contents = (0, smithy_client_1.map)({ - $metadata: deserializeMetadata(output), - }); - const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body"); - const doc = (0, smithy_client_1.take)(data, { - roleCredentials: smithy_client_1._json, - }); - Object.assign(contents, doc); - return contents; -}; -exports.de_GetRoleCredentialsCommand = de_GetRoleCredentialsCommand; -const de_GetRoleCredentialsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidRequestException": - case "com.amazonaws.sso#InvalidRequestException": - throw await de_InvalidRequestExceptionRes(parsedOutput, context); - case "ResourceNotFoundException": - case "com.amazonaws.sso#ResourceNotFoundException": - throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); - case "TooManyRequestsException": - case "com.amazonaws.sso#TooManyRequestsException": - throw await de_TooManyRequestsExceptionRes(parsedOutput, context); - case "UnauthorizedException": - case "com.amazonaws.sso#UnauthorizedException": - throw await de_UnauthorizedExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_ListAccountRolesCommand = async (output, context) => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_ListAccountRolesCommandError(output, context); - } - const contents = (0, smithy_client_1.map)({ - $metadata: deserializeMetadata(output), - }); - const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body"); - const doc = (0, smithy_client_1.take)(data, { - nextToken: smithy_client_1.expectString, - roleList: smithy_client_1._json, - }); - Object.assign(contents, doc); - return contents; -}; -exports.de_ListAccountRolesCommand = de_ListAccountRolesCommand; -const de_ListAccountRolesCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidRequestException": - case "com.amazonaws.sso#InvalidRequestException": - throw await de_InvalidRequestExceptionRes(parsedOutput, context); - case "ResourceNotFoundException": - case "com.amazonaws.sso#ResourceNotFoundException": - throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); - case "TooManyRequestsException": - case "com.amazonaws.sso#TooManyRequestsException": - throw await de_TooManyRequestsExceptionRes(parsedOutput, context); - case "UnauthorizedException": - case "com.amazonaws.sso#UnauthorizedException": - throw await de_UnauthorizedExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_ListAccountsCommand = async (output, context) => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_ListAccountsCommandError(output, context); - } - const contents = (0, smithy_client_1.map)({ - $metadata: deserializeMetadata(output), - }); - const data = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.expectObject)(await parseBody(output.body, context)), "body"); - const doc = (0, smithy_client_1.take)(data, { - accountList: smithy_client_1._json, - nextToken: smithy_client_1.expectString, - }); - Object.assign(contents, doc); - return contents; -}; -exports.de_ListAccountsCommand = de_ListAccountsCommand; -const de_ListAccountsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidRequestException": - case "com.amazonaws.sso#InvalidRequestException": - throw await de_InvalidRequestExceptionRes(parsedOutput, context); - case "ResourceNotFoundException": - case "com.amazonaws.sso#ResourceNotFoundException": - throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); - case "TooManyRequestsException": - case "com.amazonaws.sso#TooManyRequestsException": - throw await de_TooManyRequestsExceptionRes(parsedOutput, context); - case "UnauthorizedException": - case "com.amazonaws.sso#UnauthorizedException": - throw await de_UnauthorizedExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const de_LogoutCommand = async (output, context) => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_LogoutCommandError(output, context); - } - const contents = (0, smithy_client_1.map)({ - $metadata: deserializeMetadata(output), - }); - await (0, smithy_client_1.collectBody)(output.body, context); - return contents; -}; -exports.de_LogoutCommand = de_LogoutCommand; -const de_LogoutCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidRequestException": - case "com.amazonaws.sso#InvalidRequestException": - throw await de_InvalidRequestExceptionRes(parsedOutput, context); - case "TooManyRequestsException": - case "com.amazonaws.sso#TooManyRequestsException": - throw await de_TooManyRequestsExceptionRes(parsedOutput, context); - case "UnauthorizedException": - case "com.amazonaws.sso#UnauthorizedException": - throw await de_UnauthorizedExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const throwDefaultError = (0, smithy_client_1.withBaseException)(SSOServiceException_1.SSOServiceException); -const de_InvalidRequestExceptionRes = async (parsedOutput, context) => { - const contents = (0, smithy_client_1.map)({}); - const data = parsedOutput.body; - const doc = (0, smithy_client_1.take)(data, { - message: smithy_client_1.expectString, - }); - Object.assign(contents, doc); - const exception = new models_0_1.InvalidRequestException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body); -}; -const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => { - const contents = (0, smithy_client_1.map)({}); - const data = parsedOutput.body; - const doc = (0, smithy_client_1.take)(data, { - message: smithy_client_1.expectString, - }); - Object.assign(contents, doc); - const exception = new models_0_1.ResourceNotFoundException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body); -}; -const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => { - const contents = (0, smithy_client_1.map)({}); - const data = parsedOutput.body; - const doc = (0, smithy_client_1.take)(data, { - message: smithy_client_1.expectString, - }); - Object.assign(contents, doc); - const exception = new models_0_1.TooManyRequestsException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body); -}; -const de_UnauthorizedExceptionRes = async (parsedOutput, context) => { - const contents = (0, smithy_client_1.map)({}); - const data = parsedOutput.body; - const doc = (0, smithy_client_1.take)(data, { - message: smithy_client_1.expectString, - }); - Object.assign(contents, doc); - const exception = new models_0_1.UnauthorizedException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return (0, smithy_client_1.decorateServiceException)(exception, parsedOutput.body); -}; -const deserializeMetadata = (output) => ({ - httpStatusCode: output.statusCode, - requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"], - extendedRequestId: output.headers["x-amz-id-2"], - cfId: output.headers["x-amz-cf-id"], -}); -const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)); -const isSerializableHeaderValue = (value) => value !== undefined && - value !== null && - value !== "" && - (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && - (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); -const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => { - if (encoded.length) { - return JSON.parse(encoded); - } - return {}; -}); -const parseErrorBody = async (errorBody, context) => { - const value = await parseBody(errorBody, context); - value.message = value.message ?? value.Message; - return value; -}; -const loadRestJsonErrorCode = (output, data) => { - const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()); - const sanitizeErrorCode = (rawValue) => { - let cleanValue = rawValue; - if (typeof cleanValue === "number") { - cleanValue = cleanValue.toString(); - } - if (cleanValue.indexOf(",") >= 0) { - cleanValue = cleanValue.split(",")[0]; - } - if (cleanValue.indexOf(":") >= 0) { - cleanValue = cleanValue.split(":")[0]; - } - if (cleanValue.indexOf("#") >= 0) { - cleanValue = cleanValue.split("#")[1]; - } - return cleanValue; - }; - const headerKey = findKey(output.headers, "x-amzn-errortype"); - if (headerKey !== undefined) { - return sanitizeErrorCode(output.headers[headerKey]); - } - if (data.code !== undefined) { - return sanitizeErrorCode(data.code); - } - if (data["__type"] !== undefined) { - return sanitizeErrorCode(data["__type"]); - } -}; diff --git a/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.browser.js b/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.browser.js deleted file mode 100644 index 05af0693..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.browser.js +++ /dev/null @@ -1,38 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getRuntimeConfig = void 0; -const tslib_1 = require("tslib"); -const package_json_1 = tslib_1.__importDefault(require("../package.json")); -const sha256_browser_1 = require("@aws-crypto/sha256-browser"); -const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser"); -const config_resolver_1 = require("@smithy/config-resolver"); -const fetch_http_handler_1 = require("@smithy/fetch-http-handler"); -const invalid_dependency_1 = require("@smithy/invalid-dependency"); -const util_body_length_browser_1 = require("@smithy/util-body-length-browser"); -const util_retry_1 = require("@smithy/util-retry"); -const runtimeConfig_shared_1 = require("./runtimeConfig.shared"); -const smithy_client_1 = require("@smithy/smithy-client"); -const util_defaults_mode_browser_1 = require("@smithy/util-defaults-mode-browser"); -const getRuntimeConfig = (config) => { - const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config); - const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode); - const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config); - return { - ...clientSharedValues, - ...config, - runtime: "browser", - defaultsMode, - bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength, - defaultUserAgentProvider: config?.defaultUserAgentProvider ?? - (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }), - maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS, - region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"), - requestHandler: config?.requestHandler ?? new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider), - retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE), - sha256: config?.sha256 ?? sha256_browser_1.Sha256, - streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector, - useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)), - useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)), - }; -}; -exports.getRuntimeConfig = getRuntimeConfig; diff --git a/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.js b/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.js deleted file mode 100644 index da01dd0a..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.js +++ /dev/null @@ -1,47 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getRuntimeConfig = void 0; -const tslib_1 = require("tslib"); -const package_json_1 = tslib_1.__importDefault(require("../package.json")); -const core_1 = require("@aws-sdk/core"); -const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node"); -const config_resolver_1 = require("@smithy/config-resolver"); -const hash_node_1 = require("@smithy/hash-node"); -const middleware_retry_1 = require("@smithy/middleware-retry"); -const node_config_provider_1 = require("@smithy/node-config-provider"); -const node_http_handler_1 = require("@smithy/node-http-handler"); -const util_body_length_node_1 = require("@smithy/util-body-length-node"); -const util_retry_1 = require("@smithy/util-retry"); -const runtimeConfig_shared_1 = require("./runtimeConfig.shared"); -const smithy_client_1 = require("@smithy/smithy-client"); -const util_defaults_mode_node_1 = require("@smithy/util-defaults-mode-node"); -const smithy_client_2 = require("@smithy/smithy-client"); -const getRuntimeConfig = (config) => { - (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version); - const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config); - const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode); - const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config); - (0, core_1.emitWarningIfUnsupportedVersion)(process.version); - return { - ...clientSharedValues, - ...config, - runtime: "node", - defaultsMode, - bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength, - defaultUserAgentProvider: config?.defaultUserAgentProvider ?? - (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }), - maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS), - region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS), - requestHandler: config?.requestHandler ?? new node_http_handler_1.NodeHttpHandler(defaultConfigProvider), - retryMode: config?.retryMode ?? - (0, node_config_provider_1.loadConfig)({ - ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS, - default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE, - }), - sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"), - streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector, - useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), - useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), - }; -}; -exports.getRuntimeConfig = getRuntimeConfig; diff --git a/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.native.js b/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.native.js deleted file mode 100644 index 34c5f8ec..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.native.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getRuntimeConfig = void 0; -const sha256_js_1 = require("@aws-crypto/sha256-js"); -const runtimeConfig_browser_1 = require("./runtimeConfig.browser"); -const getRuntimeConfig = (config) => { - const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config); - return { - ...browserDefaults, - ...config, - runtime: "react-native", - sha256: config?.sha256 ?? sha256_js_1.Sha256, - }; -}; -exports.getRuntimeConfig = getRuntimeConfig; diff --git a/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.shared.js b/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.shared.js deleted file mode 100644 index c6a40174..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeConfig.shared.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getRuntimeConfig = void 0; -const smithy_client_1 = require("@smithy/smithy-client"); -const url_parser_1 = require("@smithy/url-parser"); -const util_base64_1 = require("@smithy/util-base64"); -const util_utf8_1 = require("@smithy/util-utf8"); -const endpointResolver_1 = require("./endpoint/endpointResolver"); -const getRuntimeConfig = (config) => { - return { - apiVersion: "2019-06-10", - base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64, - base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new smithy_client_1.NoOpLogger(), - serviceId: config?.serviceId ?? "SSO", - urlParser: config?.urlParser ?? url_parser_1.parseUrl, - utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8, - utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8, - }; -}; -exports.getRuntimeConfig = getRuntimeConfig; diff --git a/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeExtensions.js b/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeExtensions.js deleted file mode 100644 index 23c25989..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-cjs/runtimeExtensions.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.resolveRuntimeExtensions = void 0; -const region_config_resolver_1 = require("@aws-sdk/region-config-resolver"); -const protocol_http_1 = require("@smithy/protocol-http"); -const smithy_client_1 = require("@smithy/smithy-client"); -const asPartial = (t) => t; -const resolveRuntimeExtensions = (runtimeConfig, extensions) => { - const extensionConfiguration = { - ...asPartial((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig)), - ...asPartial((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig)), - ...asPartial((0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig)), - }; - extensions.forEach((extension) => extension.configure(extensionConfiguration)); - return { - ...runtimeConfig, - ...(0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), - ...(0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration), - ...(0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), - }; -}; -exports.resolveRuntimeExtensions = resolveRuntimeExtensions; diff --git a/node_modules/@aws-sdk/client-sso/dist-es/SSO.js b/node_modules/@aws-sdk/client-sso/dist-es/SSO.js deleted file mode 100644 index 04d31690..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-es/SSO.js +++ /dev/null @@ -1,15 +0,0 @@ -import { createAggregatedClient } from "@smithy/smithy-client"; -import { GetRoleCredentialsCommand, } from "./commands/GetRoleCredentialsCommand"; -import { ListAccountRolesCommand, } from "./commands/ListAccountRolesCommand"; -import { ListAccountsCommand, } from "./commands/ListAccountsCommand"; -import { LogoutCommand } from "./commands/LogoutCommand"; -import { SSOClient } from "./SSOClient"; -const commands = { - GetRoleCredentialsCommand, - ListAccountRolesCommand, - ListAccountsCommand, - LogoutCommand, -}; -export class SSO extends SSOClient { -} -createAggregatedClient(commands, SSO); diff --git a/node_modules/@aws-sdk/client-sso/dist-es/SSOClient.js b/node_modules/@aws-sdk/client-sso/dist-es/SSOClient.js deleted file mode 100644 index e85eb8d3..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-es/SSOClient.js +++ /dev/null @@ -1,36 +0,0 @@ -import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header"; -import { getLoggerPlugin } from "@aws-sdk/middleware-logger"; -import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection"; -import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent"; -import { resolveRegionConfig } from "@smithy/config-resolver"; -import { getContentLengthPlugin } from "@smithy/middleware-content-length"; -import { resolveEndpointConfig } from "@smithy/middleware-endpoint"; -import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry"; -import { Client as __Client, } from "@smithy/smithy-client"; -import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters"; -import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig"; -import { resolveRuntimeExtensions } from "./runtimeExtensions"; -export { __Client }; -export class SSOClient extends __Client { - constructor(...[configuration]) { - const _config_0 = __getRuntimeConfig(configuration || {}); - const _config_1 = resolveClientEndpointParameters(_config_0); - const _config_2 = resolveRegionConfig(_config_1); - const _config_3 = resolveEndpointConfig(_config_2); - const _config_4 = resolveRetryConfig(_config_3); - const _config_5 = resolveHostHeaderConfig(_config_4); - const _config_6 = resolveUserAgentConfig(_config_5); - const _config_7 = resolveRuntimeExtensions(_config_6, configuration?.extensions || []); - super(_config_7); - this.config = _config_7; - this.middlewareStack.use(getRetryPlugin(this.config)); - this.middlewareStack.use(getContentLengthPlugin(this.config)); - this.middlewareStack.use(getHostHeaderPlugin(this.config)); - this.middlewareStack.use(getLoggerPlugin(this.config)); - this.middlewareStack.use(getRecursionDetectionPlugin(this.config)); - this.middlewareStack.use(getUserAgentPlugin(this.config)); - } - destroy() { - super.destroy(); - } -} diff --git a/node_modules/@aws-sdk/client-sso/dist-es/commands/GetRoleCredentialsCommand.js b/node_modules/@aws-sdk/client-sso/dist-es/commands/GetRoleCredentialsCommand.js deleted file mode 100644 index a4238046..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-es/commands/GetRoleCredentialsCommand.js +++ /dev/null @@ -1,48 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { GetRoleCredentialsRequestFilterSensitiveLog, GetRoleCredentialsResponseFilterSensitiveLog, } from "../models/models_0"; -import { de_GetRoleCredentialsCommand, se_GetRoleCredentialsCommand } from "../protocols/Aws_restJson1"; -export { $Command }; -export class GetRoleCredentialsCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, GetRoleCredentialsCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSOClient"; - const commandName = "GetRoleCredentialsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: GetRoleCredentialsRequestFilterSensitiveLog, - outputFilterSensitiveLog: GetRoleCredentialsResponseFilterSensitiveLog, - [SMITHY_CONTEXT_KEY]: { - service: "SWBPortalService", - operation: "GetRoleCredentials", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_GetRoleCredentialsCommand(input, context); - } - deserialize(output, context) { - return de_GetRoleCredentialsCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-sso/dist-es/commands/ListAccountRolesCommand.js b/node_modules/@aws-sdk/client-sso/dist-es/commands/ListAccountRolesCommand.js deleted file mode 100644 index 58578d01..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-es/commands/ListAccountRolesCommand.js +++ /dev/null @@ -1,48 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { ListAccountRolesRequestFilterSensitiveLog, } from "../models/models_0"; -import { de_ListAccountRolesCommand, se_ListAccountRolesCommand } from "../protocols/Aws_restJson1"; -export { $Command }; -export class ListAccountRolesCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, ListAccountRolesCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSOClient"; - const commandName = "ListAccountRolesCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: ListAccountRolesRequestFilterSensitiveLog, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "SWBPortalService", - operation: "ListAccountRoles", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_ListAccountRolesCommand(input, context); - } - deserialize(output, context) { - return de_ListAccountRolesCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-sso/dist-es/commands/ListAccountsCommand.js b/node_modules/@aws-sdk/client-sso/dist-es/commands/ListAccountsCommand.js deleted file mode 100644 index c22d0449..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-es/commands/ListAccountsCommand.js +++ /dev/null @@ -1,48 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { ListAccountsRequestFilterSensitiveLog } from "../models/models_0"; -import { de_ListAccountsCommand, se_ListAccountsCommand } from "../protocols/Aws_restJson1"; -export { $Command }; -export class ListAccountsCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, ListAccountsCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSOClient"; - const commandName = "ListAccountsCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: ListAccountsRequestFilterSensitiveLog, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "SWBPortalService", - operation: "ListAccounts", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_ListAccountsCommand(input, context); - } - deserialize(output, context) { - return de_ListAccountsCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-sso/dist-es/commands/LogoutCommand.js b/node_modules/@aws-sdk/client-sso/dist-es/commands/LogoutCommand.js deleted file mode 100644 index 31370602..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-es/commands/LogoutCommand.js +++ /dev/null @@ -1,48 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { LogoutRequestFilterSensitiveLog } from "../models/models_0"; -import { de_LogoutCommand, se_LogoutCommand } from "../protocols/Aws_restJson1"; -export { $Command }; -export class LogoutCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, LogoutCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSOClient"; - const commandName = "LogoutCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: LogoutRequestFilterSensitiveLog, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "SWBPortalService", - operation: "Logout", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_LogoutCommand(input, context); - } - deserialize(output, context) { - return de_LogoutCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-sso/dist-es/commands/index.js b/node_modules/@aws-sdk/client-sso/dist-es/commands/index.js deleted file mode 100644 index 0ab890d3..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-es/commands/index.js +++ /dev/null @@ -1,4 +0,0 @@ -export * from "./GetRoleCredentialsCommand"; -export * from "./ListAccountRolesCommand"; -export * from "./ListAccountsCommand"; -export * from "./LogoutCommand"; diff --git a/node_modules/@aws-sdk/client-sso/dist-es/endpoint/EndpointParameters.js b/node_modules/@aws-sdk/client-sso/dist-es/endpoint/EndpointParameters.js deleted file mode 100644 index ddb138fa..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-es/endpoint/EndpointParameters.js +++ /dev/null @@ -1,8 +0,0 @@ -export const resolveClientEndpointParameters = (options) => { - return { - ...options, - useDualstackEndpoint: options.useDualstackEndpoint ?? false, - useFipsEndpoint: options.useFipsEndpoint ?? false, - defaultSigningName: "awsssoportal", - }; -}; diff --git a/node_modules/@aws-sdk/client-sso/dist-es/endpoint/endpointResolver.js b/node_modules/@aws-sdk/client-sso/dist-es/endpoint/endpointResolver.js deleted file mode 100644 index 5c359268..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-es/endpoint/endpointResolver.js +++ /dev/null @@ -1,8 +0,0 @@ -import { resolveEndpoint } from "@smithy/util-endpoints"; -import { ruleSet } from "./ruleset"; -export const defaultEndpointResolver = (endpointParams, context = {}) => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams, - logger: context.logger, - }); -}; diff --git a/node_modules/@aws-sdk/client-sso/dist-es/endpoint/ruleset.js b/node_modules/@aws-sdk/client-sso/dist-es/endpoint/ruleset.js deleted file mode 100644 index c48673dd..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-es/endpoint/ruleset.js +++ /dev/null @@ -1,4 +0,0 @@ -const u = "required", v = "fn", w = "argv", x = "ref"; -const a = true, b = "isSet", c = "booleanEquals", d = "error", e = "endpoint", f = "tree", g = "PartitionResult", h = "getAttr", i = { [u]: false, "type": "String" }, j = { [u]: true, "default": false, "type": "Boolean" }, k = { [x]: "Endpoint" }, l = { [v]: c, [w]: [{ [x]: "UseFIPS" }, true] }, m = { [v]: c, [w]: [{ [x]: "UseDualStack" }, true] }, n = {}, o = { [v]: h, [w]: [{ [x]: g }, "supportsFIPS"] }, p = { [x]: g }, q = { [v]: c, [w]: [true, { [v]: h, [w]: [p, "supportsDualStack"] }] }, r = [l], s = [m], t = [{ [x]: "Region" }]; -const _data = { version: "1.0", parameters: { Region: i, UseDualStack: j, UseFIPS: j, Endpoint: i }, rules: [{ conditions: [{ [v]: b, [w]: [k] }], rules: [{ conditions: r, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: d }, { conditions: s, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: d }, { endpoint: { url: k, properties: n, headers: n }, type: e }], type: f }, { conditions: [{ [v]: b, [w]: t }], rules: [{ conditions: [{ [v]: "aws.partition", [w]: t, assign: g }], rules: [{ conditions: [l, m], rules: [{ conditions: [{ [v]: c, [w]: [a, o] }, q], rules: [{ endpoint: { url: "https://portal.sso-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: d }], type: f }, { conditions: r, rules: [{ conditions: [{ [v]: c, [w]: [o, a] }], rules: [{ conditions: [{ [v]: "stringEquals", [w]: [{ [v]: h, [w]: [p, "name"] }, "aws-us-gov"] }], endpoint: { url: "https://portal.sso.{Region}.amazonaws.com", properties: n, headers: n }, type: e }, { endpoint: { url: "https://portal.sso-fips.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "FIPS is enabled but this partition does not support FIPS", type: d }], type: f }, { conditions: s, rules: [{ conditions: [q], rules: [{ endpoint: { url: "https://portal.sso.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: n, headers: n }, type: e }], type: f }, { error: "DualStack is enabled but this partition does not support DualStack", type: d }], type: f }, { endpoint: { url: "https://portal.sso.{Region}.{PartitionResult#dnsSuffix}", properties: n, headers: n }, type: e }], type: f }], type: f }, { error: "Invalid Configuration: Missing Region", type: d }] }; -export const ruleSet = _data; diff --git a/node_modules/@aws-sdk/client-sso/dist-es/extensionConfiguration.js b/node_modules/@aws-sdk/client-sso/dist-es/extensionConfiguration.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-es/extensionConfiguration.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@aws-sdk/client-sso/dist-es/index.js b/node_modules/@aws-sdk/client-sso/dist-es/index.js deleted file mode 100644 index e55d618d..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-es/index.js +++ /dev/null @@ -1,7 +0,0 @@ -export * from "./SSOClient"; -export * from "./SSO"; -export * from "./commands"; -export * from "./pagination"; -export * from "./models"; -import "@aws-sdk/util-endpoints"; -export { SSOServiceException } from "./models/SSOServiceException"; diff --git a/node_modules/@aws-sdk/client-sso/dist-es/models/SSOServiceException.js b/node_modules/@aws-sdk/client-sso/dist-es/models/SSOServiceException.js deleted file mode 100644 index fa5d8fb9..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-es/models/SSOServiceException.js +++ /dev/null @@ -1,8 +0,0 @@ -import { ServiceException as __ServiceException, } from "@smithy/smithy-client"; -export { __ServiceException }; -export class SSOServiceException extends __ServiceException { - constructor(options) { - super(options); - Object.setPrototypeOf(this, SSOServiceException.prototype); - } -} diff --git a/node_modules/@aws-sdk/client-sso/dist-es/models/index.js b/node_modules/@aws-sdk/client-sso/dist-es/models/index.js deleted file mode 100644 index 09c5d6e0..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-es/models/index.js +++ /dev/null @@ -1 +0,0 @@ -export * from "./models_0"; diff --git a/node_modules/@aws-sdk/client-sso/dist-es/models/models_0.js b/node_modules/@aws-sdk/client-sso/dist-es/models/models_0.js deleted file mode 100644 index acaa73b3..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-es/models/models_0.js +++ /dev/null @@ -1,75 +0,0 @@ -import { SENSITIVE_STRING } from "@smithy/smithy-client"; -import { SSOServiceException as __BaseException } from "./SSOServiceException"; -export class InvalidRequestException extends __BaseException { - constructor(opts) { - super({ - name: "InvalidRequestException", - $fault: "client", - ...opts, - }); - this.name = "InvalidRequestException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidRequestException.prototype); - } -} -export class ResourceNotFoundException extends __BaseException { - constructor(opts) { - super({ - name: "ResourceNotFoundException", - $fault: "client", - ...opts, - }); - this.name = "ResourceNotFoundException"; - this.$fault = "client"; - Object.setPrototypeOf(this, ResourceNotFoundException.prototype); - } -} -export class TooManyRequestsException extends __BaseException { - constructor(opts) { - super({ - name: "TooManyRequestsException", - $fault: "client", - ...opts, - }); - this.name = "TooManyRequestsException"; - this.$fault = "client"; - Object.setPrototypeOf(this, TooManyRequestsException.prototype); - } -} -export class UnauthorizedException extends __BaseException { - constructor(opts) { - super({ - name: "UnauthorizedException", - $fault: "client", - ...opts, - }); - this.name = "UnauthorizedException"; - this.$fault = "client"; - Object.setPrototypeOf(this, UnauthorizedException.prototype); - } -} -export const GetRoleCredentialsRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.accessToken && { accessToken: SENSITIVE_STRING }), -}); -export const RoleCredentialsFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.secretAccessKey && { secretAccessKey: SENSITIVE_STRING }), - ...(obj.sessionToken && { sessionToken: SENSITIVE_STRING }), -}); -export const GetRoleCredentialsResponseFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.roleCredentials && { roleCredentials: RoleCredentialsFilterSensitiveLog(obj.roleCredentials) }), -}); -export const ListAccountRolesRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.accessToken && { accessToken: SENSITIVE_STRING }), -}); -export const ListAccountsRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.accessToken && { accessToken: SENSITIVE_STRING }), -}); -export const LogoutRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.accessToken && { accessToken: SENSITIVE_STRING }), -}); diff --git a/node_modules/@aws-sdk/client-sso/dist-es/pagination/Interfaces.js b/node_modules/@aws-sdk/client-sso/dist-es/pagination/Interfaces.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-es/pagination/Interfaces.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@aws-sdk/client-sso/dist-es/pagination/ListAccountRolesPaginator.js b/node_modules/@aws-sdk/client-sso/dist-es/pagination/ListAccountRolesPaginator.js deleted file mode 100644 index 04c69ad1..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-es/pagination/ListAccountRolesPaginator.js +++ /dev/null @@ -1,25 +0,0 @@ -import { ListAccountRolesCommand, } from "../commands/ListAccountRolesCommand"; -import { SSOClient } from "../SSOClient"; -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListAccountRolesCommand(input), ...args); -}; -export async function* paginateListAccountRoles(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.nextToken = token; - input["maxResults"] = config.pageSize; - if (config.client instanceof SSOClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSO | SSOClient"); - } - yield page; - const prevToken = token; - token = page.nextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} diff --git a/node_modules/@aws-sdk/client-sso/dist-es/pagination/ListAccountsPaginator.js b/node_modules/@aws-sdk/client-sso/dist-es/pagination/ListAccountsPaginator.js deleted file mode 100644 index e28eac99..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-es/pagination/ListAccountsPaginator.js +++ /dev/null @@ -1,25 +0,0 @@ -import { ListAccountsCommand, } from "../commands/ListAccountsCommand"; -import { SSOClient } from "../SSOClient"; -const makePagedClientRequest = async (client, input, ...args) => { - return await client.send(new ListAccountsCommand(input), ...args); -}; -export async function* paginateListAccounts(config, input, ...additionalArguments) { - let token = config.startingToken || undefined; - let hasNext = true; - let page; - while (hasNext) { - input.nextToken = token; - input["maxResults"] = config.pageSize; - if (config.client instanceof SSOClient) { - page = await makePagedClientRequest(config.client, input, ...additionalArguments); - } - else { - throw new Error("Invalid client, expected SSO | SSOClient"); - } - yield page; - const prevToken = token; - token = page.nextToken; - hasNext = !!(token && (!config.stopOnSameToken || token !== prevToken)); - } - return undefined; -} diff --git a/node_modules/@aws-sdk/client-sso/dist-es/pagination/index.js b/node_modules/@aws-sdk/client-sso/dist-es/pagination/index.js deleted file mode 100644 index 1e7866f7..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-es/pagination/index.js +++ /dev/null @@ -1,3 +0,0 @@ -export * from "./Interfaces"; -export * from "./ListAccountRolesPaginator"; -export * from "./ListAccountsPaginator"; diff --git a/node_modules/@aws-sdk/client-sso/dist-es/protocols/Aws_restJson1.js b/node_modules/@aws-sdk/client-sso/dist-es/protocols/Aws_restJson1.js deleted file mode 100644 index f6570b1f..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-es/protocols/Aws_restJson1.js +++ /dev/null @@ -1,356 +0,0 @@ -import { HttpRequest as __HttpRequest } from "@smithy/protocol-http"; -import { _json, collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, take, withBaseException, } from "@smithy/smithy-client"; -import { InvalidRequestException, ResourceNotFoundException, TooManyRequestsException, UnauthorizedException, } from "../models/models_0"; -import { SSOServiceException as __BaseException } from "../models/SSOServiceException"; -export const se_GetRoleCredentialsCommand = async (input, context) => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); - const headers = map({}, isSerializableHeaderValue, { - "x-amz-sso_bearer_token": input.accessToken, - }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/federation/credentials"; - const query = map({ - role_name: [, __expectNonNull(input.roleName, `roleName`)], - account_id: [, __expectNonNull(input.accountId, `accountId`)], - }); - let body; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); -}; -export const se_ListAccountRolesCommand = async (input, context) => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); - const headers = map({}, isSerializableHeaderValue, { - "x-amz-sso_bearer_token": input.accessToken, - }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assignment/roles"; - const query = map({ - next_token: [, input.nextToken], - max_result: [() => input.maxResults !== void 0, () => input.maxResults.toString()], - account_id: [, __expectNonNull(input.accountId, `accountId`)], - }); - let body; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); -}; -export const se_ListAccountsCommand = async (input, context) => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); - const headers = map({}, isSerializableHeaderValue, { - "x-amz-sso_bearer_token": input.accessToken, - }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/assignment/accounts"; - const query = map({ - next_token: [, input.nextToken], - max_result: [() => input.maxResults !== void 0, () => input.maxResults.toString()], - }); - let body; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "GET", - headers, - path: resolvedPath, - query, - body, - }); -}; -export const se_LogoutCommand = async (input, context) => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); - const headers = map({}, isSerializableHeaderValue, { - "x-amz-sso_bearer_token": input.accessToken, - }); - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}` + "/logout"; - let body; - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); -}; -export const de_GetRoleCredentialsCommand = async (output, context) => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_GetRoleCredentialsCommandError(output, context); - } - const contents = map({ - $metadata: deserializeMetadata(output), - }); - const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - const doc = take(data, { - roleCredentials: _json, - }); - Object.assign(contents, doc); - return contents; -}; -const de_GetRoleCredentialsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidRequestException": - case "com.amazonaws.sso#InvalidRequestException": - throw await de_InvalidRequestExceptionRes(parsedOutput, context); - case "ResourceNotFoundException": - case "com.amazonaws.sso#ResourceNotFoundException": - throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); - case "TooManyRequestsException": - case "com.amazonaws.sso#TooManyRequestsException": - throw await de_TooManyRequestsExceptionRes(parsedOutput, context); - case "UnauthorizedException": - case "com.amazonaws.sso#UnauthorizedException": - throw await de_UnauthorizedExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_ListAccountRolesCommand = async (output, context) => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_ListAccountRolesCommandError(output, context); - } - const contents = map({ - $metadata: deserializeMetadata(output), - }); - const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - const doc = take(data, { - nextToken: __expectString, - roleList: _json, - }); - Object.assign(contents, doc); - return contents; -}; -const de_ListAccountRolesCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidRequestException": - case "com.amazonaws.sso#InvalidRequestException": - throw await de_InvalidRequestExceptionRes(parsedOutput, context); - case "ResourceNotFoundException": - case "com.amazonaws.sso#ResourceNotFoundException": - throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); - case "TooManyRequestsException": - case "com.amazonaws.sso#TooManyRequestsException": - throw await de_TooManyRequestsExceptionRes(parsedOutput, context); - case "UnauthorizedException": - case "com.amazonaws.sso#UnauthorizedException": - throw await de_UnauthorizedExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_ListAccountsCommand = async (output, context) => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_ListAccountsCommandError(output, context); - } - const contents = map({ - $metadata: deserializeMetadata(output), - }); - const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - const doc = take(data, { - accountList: _json, - nextToken: __expectString, - }); - Object.assign(contents, doc); - return contents; -}; -const de_ListAccountsCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidRequestException": - case "com.amazonaws.sso#InvalidRequestException": - throw await de_InvalidRequestExceptionRes(parsedOutput, context); - case "ResourceNotFoundException": - case "com.amazonaws.sso#ResourceNotFoundException": - throw await de_ResourceNotFoundExceptionRes(parsedOutput, context); - case "TooManyRequestsException": - case "com.amazonaws.sso#TooManyRequestsException": - throw await de_TooManyRequestsExceptionRes(parsedOutput, context); - case "UnauthorizedException": - case "com.amazonaws.sso#UnauthorizedException": - throw await de_UnauthorizedExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -export const de_LogoutCommand = async (output, context) => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_LogoutCommandError(output, context); - } - const contents = map({ - $metadata: deserializeMetadata(output), - }); - await collectBody(output.body, context); - return contents; -}; -const de_LogoutCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidRequestException": - case "com.amazonaws.sso#InvalidRequestException": - throw await de_InvalidRequestExceptionRes(parsedOutput, context); - case "TooManyRequestsException": - case "com.amazonaws.sso#TooManyRequestsException": - throw await de_TooManyRequestsExceptionRes(parsedOutput, context); - case "UnauthorizedException": - case "com.amazonaws.sso#UnauthorizedException": - throw await de_UnauthorizedExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -const throwDefaultError = withBaseException(__BaseException); -const de_InvalidRequestExceptionRes = async (parsedOutput, context) => { - const contents = map({}); - const data = parsedOutput.body; - const doc = take(data, { - message: __expectString, - }); - Object.assign(contents, doc); - const exception = new InvalidRequestException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return __decorateServiceException(exception, parsedOutput.body); -}; -const de_ResourceNotFoundExceptionRes = async (parsedOutput, context) => { - const contents = map({}); - const data = parsedOutput.body; - const doc = take(data, { - message: __expectString, - }); - Object.assign(contents, doc); - const exception = new ResourceNotFoundException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return __decorateServiceException(exception, parsedOutput.body); -}; -const de_TooManyRequestsExceptionRes = async (parsedOutput, context) => { - const contents = map({}); - const data = parsedOutput.body; - const doc = take(data, { - message: __expectString, - }); - Object.assign(contents, doc); - const exception = new TooManyRequestsException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return __decorateServiceException(exception, parsedOutput.body); -}; -const de_UnauthorizedExceptionRes = async (parsedOutput, context) => { - const contents = map({}); - const data = parsedOutput.body; - const doc = take(data, { - message: __expectString, - }); - Object.assign(contents, doc); - const exception = new UnauthorizedException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return __decorateServiceException(exception, parsedOutput.body); -}; -const deserializeMetadata = (output) => ({ - httpStatusCode: output.statusCode, - requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"], - extendedRequestId: output.headers["x-amz-id-2"], - cfId: output.headers["x-amz-cf-id"], -}); -const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body)); -const isSerializableHeaderValue = (value) => value !== undefined && - value !== null && - value !== "" && - (!Object.getOwnPropertyNames(value).includes("length") || value.length != 0) && - (!Object.getOwnPropertyNames(value).includes("size") || value.size != 0); -const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => { - if (encoded.length) { - return JSON.parse(encoded); - } - return {}; -}); -const parseErrorBody = async (errorBody, context) => { - const value = await parseBody(errorBody, context); - value.message = value.message ?? value.Message; - return value; -}; -const loadRestJsonErrorCode = (output, data) => { - const findKey = (object, key) => Object.keys(object).find((k) => k.toLowerCase() === key.toLowerCase()); - const sanitizeErrorCode = (rawValue) => { - let cleanValue = rawValue; - if (typeof cleanValue === "number") { - cleanValue = cleanValue.toString(); - } - if (cleanValue.indexOf(",") >= 0) { - cleanValue = cleanValue.split(",")[0]; - } - if (cleanValue.indexOf(":") >= 0) { - cleanValue = cleanValue.split(":")[0]; - } - if (cleanValue.indexOf("#") >= 0) { - cleanValue = cleanValue.split("#")[1]; - } - return cleanValue; - }; - const headerKey = findKey(output.headers, "x-amzn-errortype"); - if (headerKey !== undefined) { - return sanitizeErrorCode(output.headers[headerKey]); - } - if (data.code !== undefined) { - return sanitizeErrorCode(data.code); - } - if (data["__type"] !== undefined) { - return sanitizeErrorCode(data["__type"]); - } -}; diff --git a/node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.browser.js b/node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.browser.js deleted file mode 100644 index 336e21e8..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.browser.js +++ /dev/null @@ -1,33 +0,0 @@ -import packageInfo from "../package.json"; -import { Sha256 } from "@aws-crypto/sha256-browser"; -import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; -import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@smithy/config-resolver"; -import { FetchHttpHandler as RequestHandler, streamCollector } from "@smithy/fetch-http-handler"; -import { invalidProvider } from "@smithy/invalid-dependency"; -import { calculateBodyLength } from "@smithy/util-body-length-browser"; -import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/util-retry"; -import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared"; -import { loadConfigsForDefaultMode } from "@smithy/smithy-client"; -import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-browser"; -export const getRuntimeConfig = (config) => { - const defaultsMode = resolveDefaultsModeConfig(config); - const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); - const clientSharedValues = getSharedRuntimeConfig(config); - return { - ...clientSharedValues, - ...config, - runtime: "browser", - defaultsMode, - bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - defaultUserAgentProvider: config?.defaultUserAgentProvider ?? - defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), - maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS, - region: config?.region ?? invalidProvider("Region is missing"), - requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider), - retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE), - sha256: config?.sha256 ?? Sha256, - streamCollector: config?.streamCollector ?? streamCollector, - useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)), - useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)), - }; -}; diff --git a/node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.js b/node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.js deleted file mode 100644 index 146a19d2..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.js +++ /dev/null @@ -1,42 +0,0 @@ -import packageInfo from "../package.json"; -import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; -import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; -import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver"; -import { Hash } from "@smithy/hash-node"; -import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry"; -import { loadConfig as loadNodeConfig } from "@smithy/node-config-provider"; -import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler"; -import { calculateBodyLength } from "@smithy/util-body-length-node"; -import { DEFAULT_RETRY_MODE } from "@smithy/util-retry"; -import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared"; -import { loadConfigsForDefaultMode } from "@smithy/smithy-client"; -import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node"; -import { emitWarningIfUnsupportedVersion } from "@smithy/smithy-client"; -export const getRuntimeConfig = (config) => { - emitWarningIfUnsupportedVersion(process.version); - const defaultsMode = resolveDefaultsModeConfig(config); - const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); - const clientSharedValues = getSharedRuntimeConfig(config); - awsCheckVersion(process.version); - return { - ...clientSharedValues, - ...config, - runtime: "node", - defaultsMode, - bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - defaultUserAgentProvider: config?.defaultUserAgentProvider ?? - defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), - maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), - region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), - requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider), - retryMode: config?.retryMode ?? - loadNodeConfig({ - ...NODE_RETRY_MODE_CONFIG_OPTIONS, - default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE, - }), - sha256: config?.sha256 ?? Hash.bind(null, "sha256"), - streamCollector: config?.streamCollector ?? streamCollector, - useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), - useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), - }; -}; diff --git a/node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.native.js b/node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.native.js deleted file mode 100644 index 0b546952..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.native.js +++ /dev/null @@ -1,11 +0,0 @@ -import { Sha256 } from "@aws-crypto/sha256-js"; -import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser"; -export const getRuntimeConfig = (config) => { - const browserDefaults = getBrowserRuntimeConfig(config); - return { - ...browserDefaults, - ...config, - runtime: "react-native", - sha256: config?.sha256 ?? Sha256, - }; -}; diff --git a/node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.shared.js b/node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.shared.js deleted file mode 100644 index d2ae1afc..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-es/runtimeConfig.shared.js +++ /dev/null @@ -1,20 +0,0 @@ -import { NoOpLogger } from "@smithy/smithy-client"; -import { parseUrl } from "@smithy/url-parser"; -import { fromBase64, toBase64 } from "@smithy/util-base64"; -import { fromUtf8, toUtf8 } from "@smithy/util-utf8"; -import { defaultEndpointResolver } from "./endpoint/endpointResolver"; -export const getRuntimeConfig = (config) => { - return { - apiVersion: "2019-06-10", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "SSO", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, - }; -}; diff --git a/node_modules/@aws-sdk/client-sso/dist-es/runtimeExtensions.js b/node_modules/@aws-sdk/client-sso/dist-es/runtimeExtensions.js deleted file mode 100644 index f68de417..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-es/runtimeExtensions.js +++ /dev/null @@ -1,18 +0,0 @@ -import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, } from "@aws-sdk/region-config-resolver"; -import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http"; -import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client"; -const asPartial = (t) => t; -export const resolveRuntimeExtensions = (runtimeConfig, extensions) => { - const extensionConfiguration = { - ...asPartial(getAwsRegionExtensionConfiguration(runtimeConfig)), - ...asPartial(getDefaultExtensionConfiguration(runtimeConfig)), - ...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)), - }; - extensions.forEach((extension) => extension.configure(extensionConfiguration)); - return { - ...runtimeConfig, - ...resolveAwsRegionExtensionConfiguration(extensionConfiguration), - ...resolveDefaultRuntimeConfig(extensionConfiguration), - ...resolveHttpHandlerRuntimeConfig(extensionConfiguration), - }; -}; diff --git a/node_modules/@aws-sdk/client-sso/dist-types/SSO.d.ts b/node_modules/@aws-sdk/client-sso/dist-types/SSO.d.ts deleted file mode 100644 index 5577dede..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-types/SSO.d.ts +++ /dev/null @@ -1,53 +0,0 @@ -import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types"; -import { GetRoleCredentialsCommandInput, GetRoleCredentialsCommandOutput } from "./commands/GetRoleCredentialsCommand"; -import { ListAccountRolesCommandInput, ListAccountRolesCommandOutput } from "./commands/ListAccountRolesCommand"; -import { ListAccountsCommandInput, ListAccountsCommandOutput } from "./commands/ListAccountsCommand"; -import { LogoutCommandInput, LogoutCommandOutput } from "./commands/LogoutCommand"; -import { SSOClient } from "./SSOClient"; -export interface SSO { - /** - * @see {@link GetRoleCredentialsCommand} - */ - getRoleCredentials(args: GetRoleCredentialsCommandInput, options?: __HttpHandlerOptions): Promise; - getRoleCredentials(args: GetRoleCredentialsCommandInput, cb: (err: any, data?: GetRoleCredentialsCommandOutput) => void): void; - getRoleCredentials(args: GetRoleCredentialsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetRoleCredentialsCommandOutput) => void): void; - /** - * @see {@link ListAccountRolesCommand} - */ - listAccountRoles(args: ListAccountRolesCommandInput, options?: __HttpHandlerOptions): Promise; - listAccountRoles(args: ListAccountRolesCommandInput, cb: (err: any, data?: ListAccountRolesCommandOutput) => void): void; - listAccountRoles(args: ListAccountRolesCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAccountRolesCommandOutput) => void): void; - /** - * @see {@link ListAccountsCommand} - */ - listAccounts(args: ListAccountsCommandInput, options?: __HttpHandlerOptions): Promise; - listAccounts(args: ListAccountsCommandInput, cb: (err: any, data?: ListAccountsCommandOutput) => void): void; - listAccounts(args: ListAccountsCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: ListAccountsCommandOutput) => void): void; - /** - * @see {@link LogoutCommand} - */ - logout(args: LogoutCommandInput, options?: __HttpHandlerOptions): Promise; - logout(args: LogoutCommandInput, cb: (err: any, data?: LogoutCommandOutput) => void): void; - logout(args: LogoutCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: LogoutCommandOutput) => void): void; -} -/** - * @public - *

AWS IAM Identity Center (successor to AWS Single Sign-On) Portal is a web service that makes it easy for you to assign user access to - * IAM Identity Center resources such as the AWS access portal. Users can get AWS account applications and roles - * assigned to them and get federated into the application.

- * - *

Although AWS Single Sign-On was renamed, the sso and - * identitystore API namespaces will continue to retain their original name for - * backward compatibility purposes. For more information, see IAM Identity Center rename.

- *
- *

This reference guide describes the IAM Identity Center Portal operations that you can call - * programatically and includes detailed information on data types and errors.

- * - *

AWS provides SDKs that consist of libraries and sample code for various programming - * languages and platforms, such as Java, Ruby, .Net, iOS, or Android. The SDKs provide a - * convenient way to create programmatic access to IAM Identity Center and other AWS services. For more - * information about the AWS SDKs, including how to download and install them, see Tools for Amazon Web Services.

- *
- */ -export declare class SSO extends SSOClient implements SSO { -} diff --git a/node_modules/@aws-sdk/client-sso/dist-types/SSOClient.d.ts b/node_modules/@aws-sdk/client-sso/dist-types/SSOClient.d.ts deleted file mode 100644 index c1c1bc25..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-types/SSOClient.d.ts +++ /dev/null @@ -1,181 +0,0 @@ -import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header"; -import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent"; -import { RegionInputConfig, RegionResolvedConfig } from "@smithy/config-resolver"; -import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-endpoint"; -import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry"; -import { HttpHandler as __HttpHandler } from "@smithy/protocol-http"; -import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client"; -import { BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types"; -import { GetRoleCredentialsCommandInput, GetRoleCredentialsCommandOutput } from "./commands/GetRoleCredentialsCommand"; -import { ListAccountRolesCommandInput, ListAccountRolesCommandOutput } from "./commands/ListAccountRolesCommand"; -import { ListAccountsCommandInput, ListAccountsCommandOutput } from "./commands/ListAccountsCommand"; -import { LogoutCommandInput, LogoutCommandOutput } from "./commands/LogoutCommand"; -import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters"; -import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions"; -export { __Client }; -/** - * @public - */ -export type ServiceInputTypes = GetRoleCredentialsCommandInput | ListAccountRolesCommandInput | ListAccountsCommandInput | LogoutCommandInput; -/** - * @public - */ -export type ServiceOutputTypes = GetRoleCredentialsCommandOutput | ListAccountRolesCommandOutput | ListAccountsCommandOutput | LogoutCommandOutput; -/** - * @public - */ -export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> { - /** - * The HTTP handler to use. Fetch in browser and Https in Nodejs. - */ - requestHandler?: __HttpHandler; - /** - * A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface - * that computes the SHA-256 HMAC or checksum of a string or binary buffer. - * @internal - */ - sha256?: __ChecksumConstructor | __HashConstructor; - /** - * The function that will be used to convert strings into HTTP endpoints. - * @internal - */ - urlParser?: __UrlParser; - /** - * A function that can calculate the length of a request body. - * @internal - */ - bodyLengthChecker?: __BodyLengthCalculator; - /** - * A function that converts a stream into an array of bytes. - * @internal - */ - streamCollector?: __StreamCollector; - /** - * The function that will be used to convert a base64-encoded string to a byte array. - * @internal - */ - base64Decoder?: __Decoder; - /** - * The function that will be used to convert binary data to a base64-encoded string. - * @internal - */ - base64Encoder?: __Encoder; - /** - * The function that will be used to convert a UTF8-encoded string to a byte array. - * @internal - */ - utf8Decoder?: __Decoder; - /** - * The function that will be used to convert binary data to a UTF-8 encoded string. - * @internal - */ - utf8Encoder?: __Encoder; - /** - * The runtime environment. - * @internal - */ - runtime?: string; - /** - * Disable dynamically changing the endpoint of the client based on the hostPrefix - * trait of an operation. - */ - disableHostPrefix?: boolean; - /** - * Unique service identifier. - * @internal - */ - serviceId?: string; - /** - * Enables IPv6/IPv4 dualstack endpoint. - */ - useDualstackEndpoint?: boolean | __Provider; - /** - * Enables FIPS compatible endpoints. - */ - useFipsEndpoint?: boolean | __Provider; - /** - * The AWS region to which this client will send requests - */ - region?: string | __Provider; - /** - * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header - * @internal - */ - defaultUserAgentProvider?: Provider<__UserAgent>; - /** - * Value for how many times a request will be made at most in case of retry. - */ - maxAttempts?: number | __Provider; - /** - * Specifies which retry algorithm to use. - * @see https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-smithy-util-retry/Enum/RETRY_MODES/ - * - */ - retryMode?: string | __Provider; - /** - * Optional logger for logging debug/info/warn/error. - */ - logger?: __Logger; - /** - * Optional extensions - */ - extensions?: RuntimeExtension[]; - /** - * The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK. - */ - defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>; -} -/** - * @public - */ -export type SSOClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig & RetryInputConfig & HostHeaderInputConfig & UserAgentInputConfig & ClientInputEndpointParameters; -/** - * @public - * - * The configuration interface of SSOClient class constructor that set the region, credentials and other options. - */ -export interface SSOClientConfig extends SSOClientConfigType { -} -/** - * @public - */ -export type SSOClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required & RuntimeExtensionsConfig & RegionResolvedConfig & EndpointResolvedConfig & RetryResolvedConfig & HostHeaderResolvedConfig & UserAgentResolvedConfig & ClientResolvedEndpointParameters; -/** - * @public - * - * The resolved configuration interface of SSOClient class. This is resolved and normalized from the {@link SSOClientConfig | constructor configuration interface}. - */ -export interface SSOClientResolvedConfig extends SSOClientResolvedConfigType { -} -/** - * @public - *

AWS IAM Identity Center (successor to AWS Single Sign-On) Portal is a web service that makes it easy for you to assign user access to - * IAM Identity Center resources such as the AWS access portal. Users can get AWS account applications and roles - * assigned to them and get federated into the application.

- * - *

Although AWS Single Sign-On was renamed, the sso and - * identitystore API namespaces will continue to retain their original name for - * backward compatibility purposes. For more information, see IAM Identity Center rename.

- *
- *

This reference guide describes the IAM Identity Center Portal operations that you can call - * programatically and includes detailed information on data types and errors.

- * - *

AWS provides SDKs that consist of libraries and sample code for various programming - * languages and platforms, such as Java, Ruby, .Net, iOS, or Android. The SDKs provide a - * convenient way to create programmatic access to IAM Identity Center and other AWS services. For more - * information about the AWS SDKs, including how to download and install them, see Tools for Amazon Web Services.

- *
- */ -export declare class SSOClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, SSOClientResolvedConfig> { - /** - * The resolved configuration of SSOClient class. This is resolved and normalized from the {@link SSOClientConfig | constructor configuration interface}. - */ - readonly config: SSOClientResolvedConfig; - constructor(...[configuration]: __CheckOptionalClientConfig); - /** - * Destroy underlying resources, like sockets. It's usually not necessary to do this. - * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed. - * Otherwise, sockets might stay open for quite a long time before the server terminates them. - */ - destroy(): void; -} diff --git a/node_modules/@aws-sdk/client-sso/dist-types/commands/GetRoleCredentialsCommand.d.ts b/node_modules/@aws-sdk/client-sso/dist-types/commands/GetRoleCredentialsCommand.d.ts deleted file mode 100644 index 6eeda7ea..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-types/commands/GetRoleCredentialsCommand.d.ts +++ /dev/null @@ -1,96 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { GetRoleCredentialsRequest, GetRoleCredentialsResponse } from "../models/models_0"; -import { ServiceInputTypes, ServiceOutputTypes, SSOClientResolvedConfig } from "../SSOClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link GetRoleCredentialsCommand}. - */ -export interface GetRoleCredentialsCommandInput extends GetRoleCredentialsRequest { -} -/** - * @public - * - * The output of {@link GetRoleCredentialsCommand}. - */ -export interface GetRoleCredentialsCommandOutput extends GetRoleCredentialsResponse, __MetadataBearer { -} -/** - * @public - *

Returns the STS short-term credentials for a given role name that is assigned to the - * user.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSOClient, GetRoleCredentialsCommand } from "@aws-sdk/client-sso"; // ES Modules import - * // const { SSOClient, GetRoleCredentialsCommand } = require("@aws-sdk/client-sso"); // CommonJS import - * const client = new SSOClient(config); - * const input = { // GetRoleCredentialsRequest - * roleName: "STRING_VALUE", // required - * accountId: "STRING_VALUE", // required - * accessToken: "STRING_VALUE", // required - * }; - * const command = new GetRoleCredentialsCommand(input); - * const response = await client.send(command); - * // { // GetRoleCredentialsResponse - * // roleCredentials: { // RoleCredentials - * // accessKeyId: "STRING_VALUE", - * // secretAccessKey: "STRING_VALUE", - * // sessionToken: "STRING_VALUE", - * // expiration: Number("long"), - * // }, - * // }; - * - * ``` - * - * @param GetRoleCredentialsCommandInput - {@link GetRoleCredentialsCommandInput} - * @returns {@link GetRoleCredentialsCommandOutput} - * @see {@link GetRoleCredentialsCommandInput} for command's `input` shape. - * @see {@link GetRoleCredentialsCommandOutput} for command's `response` shape. - * @see {@link SSOClientResolvedConfig | config} for SSOClient's `config` shape. - * - * @throws {@link InvalidRequestException} (client fault) - *

Indicates that a problem occurred with the input to the request. For example, a required - * parameter might be missing or out of range.

- * - * @throws {@link ResourceNotFoundException} (client fault) - *

The specified resource doesn't exist.

- * - * @throws {@link TooManyRequestsException} (client fault) - *

Indicates that the request is being made too frequently and is more than what the server - * can handle.

- * - * @throws {@link UnauthorizedException} (client fault) - *

Indicates that the request is not authorized. This can happen due to an invalid access - * token in the request.

- * - * @throws {@link SSOServiceException} - *

Base exception class for all service exceptions from SSO service.

- * - */ -export declare class GetRoleCredentialsCommand extends $Command { - readonly input: GetRoleCredentialsCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: GetRoleCredentialsCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSOClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-sso/dist-types/commands/ListAccountRolesCommand.d.ts b/node_modules/@aws-sdk/client-sso/dist-types/commands/ListAccountRolesCommand.d.ts deleted file mode 100644 index f00ed5b4..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-types/commands/ListAccountRolesCommand.d.ts +++ /dev/null @@ -1,97 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { ListAccountRolesRequest, ListAccountRolesResponse } from "../models/models_0"; -import { ServiceInputTypes, ServiceOutputTypes, SSOClientResolvedConfig } from "../SSOClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link ListAccountRolesCommand}. - */ -export interface ListAccountRolesCommandInput extends ListAccountRolesRequest { -} -/** - * @public - * - * The output of {@link ListAccountRolesCommand}. - */ -export interface ListAccountRolesCommandOutput extends ListAccountRolesResponse, __MetadataBearer { -} -/** - * @public - *

Lists all roles that are assigned to the user for a given AWS account.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSOClient, ListAccountRolesCommand } from "@aws-sdk/client-sso"; // ES Modules import - * // const { SSOClient, ListAccountRolesCommand } = require("@aws-sdk/client-sso"); // CommonJS import - * const client = new SSOClient(config); - * const input = { // ListAccountRolesRequest - * nextToken: "STRING_VALUE", - * maxResults: Number("int"), - * accessToken: "STRING_VALUE", // required - * accountId: "STRING_VALUE", // required - * }; - * const command = new ListAccountRolesCommand(input); - * const response = await client.send(command); - * // { // ListAccountRolesResponse - * // nextToken: "STRING_VALUE", - * // roleList: [ // RoleListType - * // { // RoleInfo - * // roleName: "STRING_VALUE", - * // accountId: "STRING_VALUE", - * // }, - * // ], - * // }; - * - * ``` - * - * @param ListAccountRolesCommandInput - {@link ListAccountRolesCommandInput} - * @returns {@link ListAccountRolesCommandOutput} - * @see {@link ListAccountRolesCommandInput} for command's `input` shape. - * @see {@link ListAccountRolesCommandOutput} for command's `response` shape. - * @see {@link SSOClientResolvedConfig | config} for SSOClient's `config` shape. - * - * @throws {@link InvalidRequestException} (client fault) - *

Indicates that a problem occurred with the input to the request. For example, a required - * parameter might be missing or out of range.

- * - * @throws {@link ResourceNotFoundException} (client fault) - *

The specified resource doesn't exist.

- * - * @throws {@link TooManyRequestsException} (client fault) - *

Indicates that the request is being made too frequently and is more than what the server - * can handle.

- * - * @throws {@link UnauthorizedException} (client fault) - *

Indicates that the request is not authorized. This can happen due to an invalid access - * token in the request.

- * - * @throws {@link SSOServiceException} - *

Base exception class for all service exceptions from SSO service.

- * - */ -export declare class ListAccountRolesCommand extends $Command { - readonly input: ListAccountRolesCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: ListAccountRolesCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSOClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-sso/dist-types/commands/ListAccountsCommand.d.ts b/node_modules/@aws-sdk/client-sso/dist-types/commands/ListAccountsCommand.d.ts deleted file mode 100644 index 786f8cab..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-types/commands/ListAccountsCommand.d.ts +++ /dev/null @@ -1,99 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { ListAccountsRequest, ListAccountsResponse } from "../models/models_0"; -import { ServiceInputTypes, ServiceOutputTypes, SSOClientResolvedConfig } from "../SSOClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link ListAccountsCommand}. - */ -export interface ListAccountsCommandInput extends ListAccountsRequest { -} -/** - * @public - * - * The output of {@link ListAccountsCommand}. - */ -export interface ListAccountsCommandOutput extends ListAccountsResponse, __MetadataBearer { -} -/** - * @public - *

Lists all AWS accounts assigned to the user. These AWS accounts are assigned by the - * administrator of the account. For more information, see Assign User Access in the IAM Identity Center User Guide. This operation - * returns a paginated response.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSOClient, ListAccountsCommand } from "@aws-sdk/client-sso"; // ES Modules import - * // const { SSOClient, ListAccountsCommand } = require("@aws-sdk/client-sso"); // CommonJS import - * const client = new SSOClient(config); - * const input = { // ListAccountsRequest - * nextToken: "STRING_VALUE", - * maxResults: Number("int"), - * accessToken: "STRING_VALUE", // required - * }; - * const command = new ListAccountsCommand(input); - * const response = await client.send(command); - * // { // ListAccountsResponse - * // nextToken: "STRING_VALUE", - * // accountList: [ // AccountListType - * // { // AccountInfo - * // accountId: "STRING_VALUE", - * // accountName: "STRING_VALUE", - * // emailAddress: "STRING_VALUE", - * // }, - * // ], - * // }; - * - * ``` - * - * @param ListAccountsCommandInput - {@link ListAccountsCommandInput} - * @returns {@link ListAccountsCommandOutput} - * @see {@link ListAccountsCommandInput} for command's `input` shape. - * @see {@link ListAccountsCommandOutput} for command's `response` shape. - * @see {@link SSOClientResolvedConfig | config} for SSOClient's `config` shape. - * - * @throws {@link InvalidRequestException} (client fault) - *

Indicates that a problem occurred with the input to the request. For example, a required - * parameter might be missing or out of range.

- * - * @throws {@link ResourceNotFoundException} (client fault) - *

The specified resource doesn't exist.

- * - * @throws {@link TooManyRequestsException} (client fault) - *

Indicates that the request is being made too frequently and is more than what the server - * can handle.

- * - * @throws {@link UnauthorizedException} (client fault) - *

Indicates that the request is not authorized. This can happen due to an invalid access - * token in the request.

- * - * @throws {@link SSOServiceException} - *

Base exception class for all service exceptions from SSO service.

- * - */ -export declare class ListAccountsCommand extends $Command { - readonly input: ListAccountsCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: ListAccountsCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSOClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-sso/dist-types/commands/LogoutCommand.d.ts b/node_modules/@aws-sdk/client-sso/dist-types/commands/LogoutCommand.d.ts deleted file mode 100644 index 21972081..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-types/commands/LogoutCommand.d.ts +++ /dev/null @@ -1,96 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { LogoutRequest } from "../models/models_0"; -import { ServiceInputTypes, ServiceOutputTypes, SSOClientResolvedConfig } from "../SSOClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link LogoutCommand}. - */ -export interface LogoutCommandInput extends LogoutRequest { -} -/** - * @public - * - * The output of {@link LogoutCommand}. - */ -export interface LogoutCommandOutput extends __MetadataBearer { -} -/** - * @public - *

Removes the locally stored SSO tokens from the client-side cache and sends an API call to - * the IAM Identity Center service to invalidate the corresponding server-side IAM Identity Center sign in - * session.

- * - *

If a user uses IAM Identity Center to access the AWS CLI, the user’s IAM Identity Center sign in session is - * used to obtain an IAM session, as specified in the corresponding IAM Identity Center permission set. - * More specifically, IAM Identity Center assumes an IAM role in the target account on behalf of the user, - * and the corresponding temporary AWS credentials are returned to the client.

- *

After user logout, any existing IAM role sessions that were created by using IAM Identity Center - * permission sets continue based on the duration configured in the permission set. - * For more information, see User - * authentications in the IAM Identity Center User - * Guide.

- *
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { SSOClient, LogoutCommand } from "@aws-sdk/client-sso"; // ES Modules import - * // const { SSOClient, LogoutCommand } = require("@aws-sdk/client-sso"); // CommonJS import - * const client = new SSOClient(config); - * const input = { // LogoutRequest - * accessToken: "STRING_VALUE", // required - * }; - * const command = new LogoutCommand(input); - * const response = await client.send(command); - * // {}; - * - * ``` - * - * @param LogoutCommandInput - {@link LogoutCommandInput} - * @returns {@link LogoutCommandOutput} - * @see {@link LogoutCommandInput} for command's `input` shape. - * @see {@link LogoutCommandOutput} for command's `response` shape. - * @see {@link SSOClientResolvedConfig | config} for SSOClient's `config` shape. - * - * @throws {@link InvalidRequestException} (client fault) - *

Indicates that a problem occurred with the input to the request. For example, a required - * parameter might be missing or out of range.

- * - * @throws {@link TooManyRequestsException} (client fault) - *

Indicates that the request is being made too frequently and is more than what the server - * can handle.

- * - * @throws {@link UnauthorizedException} (client fault) - *

Indicates that the request is not authorized. This can happen due to an invalid access - * token in the request.

- * - * @throws {@link SSOServiceException} - *

Base exception class for all service exceptions from SSO service.

- * - */ -export declare class LogoutCommand extends $Command { - readonly input: LogoutCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: LogoutCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: SSOClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-sso/dist-types/commands/index.d.ts b/node_modules/@aws-sdk/client-sso/dist-types/commands/index.d.ts deleted file mode 100644 index 0ab890d3..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-types/commands/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export * from "./GetRoleCredentialsCommand"; -export * from "./ListAccountRolesCommand"; -export * from "./ListAccountsCommand"; -export * from "./LogoutCommand"; diff --git a/node_modules/@aws-sdk/client-sso/dist-types/endpoint/EndpointParameters.d.ts b/node_modules/@aws-sdk/client-sso/dist-types/endpoint/EndpointParameters.d.ts deleted file mode 100644 index 4cdfd2ad..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-types/endpoint/EndpointParameters.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@smithy/types"; -/** - * @public - */ -export interface ClientInputEndpointParameters { - region?: string | Provider; - useDualstackEndpoint?: boolean | Provider; - useFipsEndpoint?: boolean | Provider; - endpoint?: string | Provider | Endpoint | Provider | EndpointV2 | Provider; -} -export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & { - defaultSigningName: string; -}; -export declare const resolveClientEndpointParameters: (options: T & ClientInputEndpointParameters) => T & ClientInputEndpointParameters & { - defaultSigningName: string; -}; -export interface EndpointParameters extends __EndpointParameters { - Region?: string; - UseDualStack?: boolean; - UseFIPS?: boolean; - Endpoint?: string; -} diff --git a/node_modules/@aws-sdk/client-sso/dist-types/endpoint/endpointResolver.d.ts b/node_modules/@aws-sdk/client-sso/dist-types/endpoint/endpointResolver.d.ts deleted file mode 100644 index 70a8eaec..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-types/endpoint/endpointResolver.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { EndpointV2, Logger } from "@smithy/types"; -import { EndpointParameters } from "./EndpointParameters"; -export declare const defaultEndpointResolver: (endpointParams: EndpointParameters, context?: { - logger?: Logger; -}) => EndpointV2; diff --git a/node_modules/@aws-sdk/client-sso/dist-types/endpoint/ruleset.d.ts b/node_modules/@aws-sdk/client-sso/dist-types/endpoint/ruleset.d.ts deleted file mode 100644 index 4b238994..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-types/endpoint/ruleset.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { RuleSetObject } from "@smithy/types"; -export declare const ruleSet: RuleSetObject; diff --git a/node_modules/@aws-sdk/client-sso/dist-types/extensionConfiguration.d.ts b/node_modules/@aws-sdk/client-sso/dist-types/extensionConfiguration.d.ts deleted file mode 100644 index 1341d4be..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-types/extensionConfiguration.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { AwsRegionExtensionConfiguration } from "@aws-sdk/types"; -import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http"; -import { DefaultExtensionConfiguration } from "@smithy/types"; -/** - * @internal - */ -export interface SSOExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration, AwsRegionExtensionConfiguration { -} diff --git a/node_modules/@aws-sdk/client-sso/dist-types/index.d.ts b/node_modules/@aws-sdk/client-sso/dist-types/index.d.ts deleted file mode 100644 index 17c0cf6c..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-types/index.d.ts +++ /dev/null @@ -1,30 +0,0 @@ -/** - *

AWS IAM Identity Center (successor to AWS Single Sign-On) Portal is a web service that makes it easy for you to assign user access to - * IAM Identity Center resources such as the AWS access portal. Users can get AWS account applications and roles - * assigned to them and get federated into the application.

- * - *

Although AWS Single Sign-On was renamed, the sso and - * identitystore API namespaces will continue to retain their original name for - * backward compatibility purposes. For more information, see IAM Identity Center rename.

- *
- *

This reference guide describes the IAM Identity Center Portal operations that you can call - * programatically and includes detailed information on data types and errors.

- * - *

AWS provides SDKs that consist of libraries and sample code for various programming - * languages and platforms, such as Java, Ruby, .Net, iOS, or Android. The SDKs provide a - * convenient way to create programmatic access to IAM Identity Center and other AWS services. For more - * information about the AWS SDKs, including how to download and install them, see Tools for Amazon Web Services.

- *
- * - * @packageDocumentation - */ -export * from "./SSOClient"; -export * from "./SSO"; -export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters"; -export { RuntimeExtension } from "./runtimeExtensions"; -export { SSOExtensionConfiguration } from "./extensionConfiguration"; -export * from "./commands"; -export * from "./pagination"; -export * from "./models"; -import "@aws-sdk/util-endpoints"; -export { SSOServiceException } from "./models/SSOServiceException"; diff --git a/node_modules/@aws-sdk/client-sso/dist-types/models/SSOServiceException.d.ts b/node_modules/@aws-sdk/client-sso/dist-types/models/SSOServiceException.d.ts deleted file mode 100644 index 89d84223..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-types/models/SSOServiceException.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@smithy/smithy-client"; -export { __ServiceException, __ServiceExceptionOptions }; -/** - * @public - * - * Base exception class for all service exceptions from SSO service. - */ -export declare class SSOServiceException extends __ServiceException { - /** - * @internal - */ - constructor(options: __ServiceExceptionOptions); -} diff --git a/node_modules/@aws-sdk/client-sso/dist-types/models/index.d.ts b/node_modules/@aws-sdk/client-sso/dist-types/models/index.d.ts deleted file mode 100644 index 09c5d6e0..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-types/models/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./models_0"; diff --git a/node_modules/@aws-sdk/client-sso/dist-types/models/models_0.d.ts b/node_modules/@aws-sdk/client-sso/dist-types/models/models_0.d.ts deleted file mode 100644 index 237795f1..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-types/models/models_0.d.ts +++ /dev/null @@ -1,266 +0,0 @@ -import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; -import { SSOServiceException as __BaseException } from "./SSOServiceException"; -/** - * @public - *

Provides information about your AWS account.

- */ -export interface AccountInfo { - /** - * @public - *

The identifier of the AWS account that is assigned to the user.

- */ - accountId?: string; - /** - * @public - *

The display name of the AWS account that is assigned to the user.

- */ - accountName?: string; - /** - * @public - *

The email address of the AWS account that is assigned to the user.

- */ - emailAddress?: string; -} -/** - * @public - */ -export interface GetRoleCredentialsRequest { - /** - * @public - *

The friendly name of the role that is assigned to the user.

- */ - roleName: string | undefined; - /** - * @public - *

The identifier for the AWS account that is assigned to the user.

- */ - accountId: string | undefined; - /** - * @public - *

The token issued by the CreateToken API call. For more information, see - * CreateToken in the IAM Identity Center OIDC API Reference Guide.

- */ - accessToken: string | undefined; -} -/** - * @public - *

Provides information about the role credentials that are assigned to the user.

- */ -export interface RoleCredentials { - /** - * @public - *

The identifier used for the temporary security credentials. For more information, see - * Using Temporary Security Credentials to Request Access to AWS Resources in the - * AWS IAM User Guide.

- */ - accessKeyId?: string; - /** - * @public - *

The key that is used to sign the request. For more information, see Using Temporary Security Credentials to Request Access to AWS Resources in the - * AWS IAM User Guide.

- */ - secretAccessKey?: string; - /** - * @public - *

The token used for temporary credentials. For more information, see Using Temporary Security Credentials to Request Access to AWS Resources in the - * AWS IAM User Guide.

- */ - sessionToken?: string; - /** - * @public - *

The date on which temporary security credentials expire.

- */ - expiration?: number; -} -/** - * @public - */ -export interface GetRoleCredentialsResponse { - /** - * @public - *

The credentials for the role that is assigned to the user.

- */ - roleCredentials?: RoleCredentials; -} -/** - * @public - *

Indicates that a problem occurred with the input to the request. For example, a required - * parameter might be missing or out of range.

- */ -export declare class InvalidRequestException extends __BaseException { - readonly name: "InvalidRequestException"; - readonly $fault: "client"; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

The specified resource doesn't exist.

- */ -export declare class ResourceNotFoundException extends __BaseException { - readonly name: "ResourceNotFoundException"; - readonly $fault: "client"; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

Indicates that the request is being made too frequently and is more than what the server - * can handle.

- */ -export declare class TooManyRequestsException extends __BaseException { - readonly name: "TooManyRequestsException"; - readonly $fault: "client"; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

Indicates that the request is not authorized. This can happen due to an invalid access - * token in the request.

- */ -export declare class UnauthorizedException extends __BaseException { - readonly name: "UnauthorizedException"; - readonly $fault: "client"; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - */ -export interface ListAccountRolesRequest { - /** - * @public - *

The page token from the previous response output when you request subsequent pages.

- */ - nextToken?: string; - /** - * @public - *

The number of items that clients can request per page.

- */ - maxResults?: number; - /** - * @public - *

The token issued by the CreateToken API call. For more information, see - * CreateToken in the IAM Identity Center OIDC API Reference Guide.

- */ - accessToken: string | undefined; - /** - * @public - *

The identifier for the AWS account that is assigned to the user.

- */ - accountId: string | undefined; -} -/** - * @public - *

Provides information about the role that is assigned to the user.

- */ -export interface RoleInfo { - /** - * @public - *

The friendly name of the role that is assigned to the user.

- */ - roleName?: string; - /** - * @public - *

The identifier of the AWS account assigned to the user.

- */ - accountId?: string; -} -/** - * @public - */ -export interface ListAccountRolesResponse { - /** - * @public - *

The page token client that is used to retrieve the list of accounts.

- */ - nextToken?: string; - /** - * @public - *

A paginated response with the list of roles and the next token if more results are - * available.

- */ - roleList?: RoleInfo[]; -} -/** - * @public - */ -export interface ListAccountsRequest { - /** - * @public - *

(Optional) When requesting subsequent pages, this is the page token from the previous - * response output.

- */ - nextToken?: string; - /** - * @public - *

This is the number of items clients can request per page.

- */ - maxResults?: number; - /** - * @public - *

The token issued by the CreateToken API call. For more information, see - * CreateToken in the IAM Identity Center OIDC API Reference Guide.

- */ - accessToken: string | undefined; -} -/** - * @public - */ -export interface ListAccountsResponse { - /** - * @public - *

The page token client that is used to retrieve the list of accounts.

- */ - nextToken?: string; - /** - * @public - *

A paginated response with the list of account information and the next token if more - * results are available.

- */ - accountList?: AccountInfo[]; -} -/** - * @public - */ -export interface LogoutRequest { - /** - * @public - *

The token issued by the CreateToken API call. For more information, see - * CreateToken in the IAM Identity Center OIDC API Reference Guide.

- */ - accessToken: string | undefined; -} -/** - * @internal - */ -export declare const GetRoleCredentialsRequestFilterSensitiveLog: (obj: GetRoleCredentialsRequest) => any; -/** - * @internal - */ -export declare const RoleCredentialsFilterSensitiveLog: (obj: RoleCredentials) => any; -/** - * @internal - */ -export declare const GetRoleCredentialsResponseFilterSensitiveLog: (obj: GetRoleCredentialsResponse) => any; -/** - * @internal - */ -export declare const ListAccountRolesRequestFilterSensitiveLog: (obj: ListAccountRolesRequest) => any; -/** - * @internal - */ -export declare const ListAccountsRequestFilterSensitiveLog: (obj: ListAccountsRequest) => any; -/** - * @internal - */ -export declare const LogoutRequestFilterSensitiveLog: (obj: LogoutRequest) => any; diff --git a/node_modules/@aws-sdk/client-sso/dist-types/pagination/Interfaces.d.ts b/node_modules/@aws-sdk/client-sso/dist-types/pagination/Interfaces.d.ts deleted file mode 100644 index 81addcaa..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-types/pagination/Interfaces.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { PaginationConfiguration } from "@smithy/types"; -import { SSOClient } from "../SSOClient"; -/** - * @public - */ -export interface SSOPaginationConfiguration extends PaginationConfiguration { - client: SSOClient; -} diff --git a/node_modules/@aws-sdk/client-sso/dist-types/pagination/ListAccountRolesPaginator.d.ts b/node_modules/@aws-sdk/client-sso/dist-types/pagination/ListAccountRolesPaginator.d.ts deleted file mode 100644 index 9df2168b..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-types/pagination/ListAccountRolesPaginator.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { ListAccountRolesCommandInput, ListAccountRolesCommandOutput } from "../commands/ListAccountRolesCommand"; -import { SSOPaginationConfiguration } from "./Interfaces"; -/** - * @public - */ -export declare function paginateListAccountRoles(config: SSOPaginationConfiguration, input: ListAccountRolesCommandInput, ...additionalArguments: any): Paginator; diff --git a/node_modules/@aws-sdk/client-sso/dist-types/pagination/ListAccountsPaginator.d.ts b/node_modules/@aws-sdk/client-sso/dist-types/pagination/ListAccountsPaginator.d.ts deleted file mode 100644 index 954c5c56..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-types/pagination/ListAccountsPaginator.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { ListAccountsCommandInput, ListAccountsCommandOutput } from "../commands/ListAccountsCommand"; -import { SSOPaginationConfiguration } from "./Interfaces"; -/** - * @public - */ -export declare function paginateListAccounts(config: SSOPaginationConfiguration, input: ListAccountsCommandInput, ...additionalArguments: any): Paginator; diff --git a/node_modules/@aws-sdk/client-sso/dist-types/pagination/index.d.ts b/node_modules/@aws-sdk/client-sso/dist-types/pagination/index.d.ts deleted file mode 100644 index 1e7866f7..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-types/pagination/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * from "./Interfaces"; -export * from "./ListAccountRolesPaginator"; -export * from "./ListAccountsPaginator"; diff --git a/node_modules/@aws-sdk/client-sso/dist-types/protocols/Aws_restJson1.d.ts b/node_modules/@aws-sdk/client-sso/dist-types/protocols/Aws_restJson1.d.ts deleted file mode 100644 index 02d97aa5..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-types/protocols/Aws_restJson1.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; -import { SerdeContext as __SerdeContext } from "@smithy/types"; -import { GetRoleCredentialsCommandInput, GetRoleCredentialsCommandOutput } from "../commands/GetRoleCredentialsCommand"; -import { ListAccountRolesCommandInput, ListAccountRolesCommandOutput } from "../commands/ListAccountRolesCommand"; -import { ListAccountsCommandInput, ListAccountsCommandOutput } from "../commands/ListAccountsCommand"; -import { LogoutCommandInput, LogoutCommandOutput } from "../commands/LogoutCommand"; -/** - * serializeAws_restJson1GetRoleCredentialsCommand - */ -export declare const se_GetRoleCredentialsCommand: (input: GetRoleCredentialsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_restJson1ListAccountRolesCommand - */ -export declare const se_ListAccountRolesCommand: (input: ListAccountRolesCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_restJson1ListAccountsCommand - */ -export declare const se_ListAccountsCommand: (input: ListAccountsCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_restJson1LogoutCommand - */ -export declare const se_LogoutCommand: (input: LogoutCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * deserializeAws_restJson1GetRoleCredentialsCommand - */ -export declare const de_GetRoleCredentialsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_restJson1ListAccountRolesCommand - */ -export declare const de_ListAccountRolesCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_restJson1ListAccountsCommand - */ -export declare const de_ListAccountsCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_restJson1LogoutCommand - */ -export declare const de_LogoutCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; diff --git a/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.browser.d.ts b/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.browser.d.ts deleted file mode 100644 index 17df256c..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.browser.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { FetchHttpHandler as RequestHandler } from "@smithy/fetch-http-handler"; -import { SSOClientConfig } from "./SSOClient"; -/** - * @internal - */ -export declare const getRuntimeConfig: (config: SSOClientConfig) => { - runtime: string; - defaultsMode: import("@smithy/types").Provider; - bodyLengthChecker: import("@smithy/types").BodyLengthCalculator; - defaultUserAgentProvider: import("@smithy/types").Provider; - maxAttempts: number | import("@smithy/types").Provider; - region: string | import("@smithy/types").Provider; - requestHandler: (import("@smithy/types").RequestHandler & import("@smithy/types").RequestHandler & { - updateHttpClientConfig(key: never, value: never): void; - httpHandlerConfigs(): {}; - }) | RequestHandler; - retryMode: string | import("@smithy/types").Provider; - sha256: import("@smithy/types").HashConstructor; - streamCollector: import("@smithy/types").StreamCollector; - useDualstackEndpoint: boolean | import("@smithy/types").Provider; - useFipsEndpoint: boolean | import("@smithy/types").Provider; - apiVersion: string; - urlParser: import("@smithy/types").UrlParser; - base64Decoder: import("@smithy/types").Decoder; - base64Encoder: import("@smithy/types").Encoder; - utf8Decoder: import("@smithy/types").Decoder; - utf8Encoder: import("@smithy/types").Encoder; - disableHostPrefix: boolean; - serviceId: string; - logger: import("@smithy/types").Logger; - extensions: import("./runtimeExtensions").RuntimeExtension[]; - endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider) & (string | import("@smithy/types").Provider | import("@smithy/types").Endpoint | import("@smithy/types").Provider | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider)) | undefined; - endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: { - logger?: import("@smithy/types").Logger | undefined; - }) => import("@smithy/types").EndpointV2; - tls?: boolean | undefined; - retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined; - customUserAgent?: string | import("@smithy/types").UserAgent | undefined; -}; diff --git a/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.d.ts b/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.d.ts deleted file mode 100644 index 905c72ee..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { NodeHttpHandler as RequestHandler } from "@smithy/node-http-handler"; -import { SSOClientConfig } from "./SSOClient"; -/** - * @internal - */ -export declare const getRuntimeConfig: (config: SSOClientConfig) => { - runtime: string; - defaultsMode: import("@smithy/types").Provider; - bodyLengthChecker: import("@smithy/types").BodyLengthCalculator; - defaultUserAgentProvider: import("@smithy/types").Provider; - maxAttempts: number | import("@smithy/types").Provider; - region: string | import("@smithy/types").Provider; - requestHandler: (import("@smithy/types").RequestHandler & import("@smithy/types").RequestHandler & { - updateHttpClientConfig(key: never, value: never): void; - httpHandlerConfigs(): {}; - }) | RequestHandler; - retryMode: string | import("@smithy/types").Provider; - sha256: import("@smithy/types").HashConstructor; - streamCollector: import("@smithy/types").StreamCollector; - useDualstackEndpoint: boolean | import("@smithy/types").Provider; - useFipsEndpoint: boolean | import("@smithy/types").Provider; - apiVersion: string; - urlParser: import("@smithy/types").UrlParser; - base64Decoder: import("@smithy/types").Decoder; - base64Encoder: import("@smithy/types").Encoder; - utf8Decoder: import("@smithy/types").Decoder; - utf8Encoder: import("@smithy/types").Encoder; - disableHostPrefix: boolean; - serviceId: string; - logger: import("@smithy/types").Logger; - extensions: import("./runtimeExtensions").RuntimeExtension[]; - endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider) & (string | import("@smithy/types").Provider | import("@smithy/types").Endpoint | import("@smithy/types").Provider | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider)) | undefined; - endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: { - logger?: import("@smithy/types").Logger | undefined; - }) => import("@smithy/types").EndpointV2; - tls?: boolean | undefined; - retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined; - customUserAgent?: string | import("@smithy/types").UserAgent | undefined; -}; diff --git a/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.native.d.ts b/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.native.d.ts deleted file mode 100644 index a7f1356e..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.native.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { SSOClientConfig } from "./SSOClient"; -/** - * @internal - */ -export declare const getRuntimeConfig: (config: SSOClientConfig) => { - runtime: string; - sha256: import("@smithy/types").HashConstructor; - requestHandler: (import("@smithy/types").RequestHandler & import("@smithy/types").RequestHandler & { - updateHttpClientConfig(key: never, value: never): void; - httpHandlerConfigs(): {}; - }) | import("@smithy/fetch-http-handler").FetchHttpHandler; - apiVersion: string; - urlParser: import("@smithy/types").UrlParser; - bodyLengthChecker: import("@smithy/types").BodyLengthCalculator; - streamCollector: import("@smithy/types").StreamCollector; - base64Decoder: import("@smithy/types").Decoder; - base64Encoder: import("@smithy/types").Encoder; - utf8Decoder: import("@smithy/types").Decoder; - utf8Encoder: import("@smithy/types").Encoder; - disableHostPrefix: boolean; - serviceId: string; - useDualstackEndpoint: boolean | import("@smithy/types").Provider; - useFipsEndpoint: boolean | import("@smithy/types").Provider; - region: string | import("@smithy/types").Provider; - defaultUserAgentProvider: import("@smithy/types").Provider; - maxAttempts: number | import("@smithy/types").Provider; - retryMode: string | import("@smithy/types").Provider; - logger: import("@smithy/types").Logger; - extensions: import("./runtimeExtensions").RuntimeExtension[]; - defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider; - endpoint?: string | import("@smithy/types").Endpoint | import("@smithy/types").Provider | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider | undefined; - endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: { - logger?: import("@smithy/types").Logger | undefined; - }) => import("@smithy/types").EndpointV2; - tls?: boolean | undefined; - retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined; - customUserAgent?: string | import("@smithy/types").UserAgent | undefined; -}; diff --git a/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.shared.d.ts b/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.shared.d.ts deleted file mode 100644 index 827e7591..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-types/runtimeConfig.shared.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { SSOClientConfig } from "./SSOClient"; -/** - * @internal - */ -export declare const getRuntimeConfig: (config: SSOClientConfig) => { - apiVersion: string; - base64Decoder: import("@smithy/types").Decoder; - base64Encoder: import("@smithy/types").Encoder; - disableHostPrefix: boolean; - endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: { - logger?: import("@smithy/types").Logger | undefined; - }) => import("@smithy/types").EndpointV2; - extensions: import("./runtimeExtensions").RuntimeExtension[]; - logger: import("@smithy/types").Logger; - serviceId: string; - urlParser: import("@smithy/types").UrlParser; - utf8Decoder: import("@smithy/types").Decoder; - utf8Encoder: import("@smithy/types").Encoder; -}; diff --git a/node_modules/@aws-sdk/client-sso/dist-types/runtimeExtensions.d.ts b/node_modules/@aws-sdk/client-sso/dist-types/runtimeExtensions.d.ts deleted file mode 100644 index a0f078c8..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-types/runtimeExtensions.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { SSOExtensionConfiguration } from "./extensionConfiguration"; -/** - * @public - */ -export interface RuntimeExtension { - configure(extensionConfiguration: SSOExtensionConfiguration): void; -} -/** - * @public - */ -export interface RuntimeExtensionsConfig { - extensions: RuntimeExtension[]; -} -/** - * @internal - */ -export declare const resolveRuntimeExtensions: (runtimeConfig: any, extensions: RuntimeExtension[]) => any; diff --git a/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/SSO.d.ts b/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/SSO.d.ts deleted file mode 100644 index 9a242fcc..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/SSO.d.ts +++ /dev/null @@ -1,73 +0,0 @@ -import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types"; -import { - GetRoleCredentialsCommandInput, - GetRoleCredentialsCommandOutput, -} from "./commands/GetRoleCredentialsCommand"; -import { - ListAccountRolesCommandInput, - ListAccountRolesCommandOutput, -} from "./commands/ListAccountRolesCommand"; -import { - ListAccountsCommandInput, - ListAccountsCommandOutput, -} from "./commands/ListAccountsCommand"; -import { - LogoutCommandInput, - LogoutCommandOutput, -} from "./commands/LogoutCommand"; -import { SSOClient } from "./SSOClient"; -export interface SSO { - getRoleCredentials( - args: GetRoleCredentialsCommandInput, - options?: __HttpHandlerOptions - ): Promise; - getRoleCredentials( - args: GetRoleCredentialsCommandInput, - cb: (err: any, data?: GetRoleCredentialsCommandOutput) => void - ): void; - getRoleCredentials( - args: GetRoleCredentialsCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: GetRoleCredentialsCommandOutput) => void - ): void; - listAccountRoles( - args: ListAccountRolesCommandInput, - options?: __HttpHandlerOptions - ): Promise; - listAccountRoles( - args: ListAccountRolesCommandInput, - cb: (err: any, data?: ListAccountRolesCommandOutput) => void - ): void; - listAccountRoles( - args: ListAccountRolesCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: ListAccountRolesCommandOutput) => void - ): void; - listAccounts( - args: ListAccountsCommandInput, - options?: __HttpHandlerOptions - ): Promise; - listAccounts( - args: ListAccountsCommandInput, - cb: (err: any, data?: ListAccountsCommandOutput) => void - ): void; - listAccounts( - args: ListAccountsCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: ListAccountsCommandOutput) => void - ): void; - logout( - args: LogoutCommandInput, - options?: __HttpHandlerOptions - ): Promise; - logout( - args: LogoutCommandInput, - cb: (err: any, data?: LogoutCommandOutput) => void - ): void; - logout( - args: LogoutCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: LogoutCommandOutput) => void - ): void; -} -export declare class SSO extends SSOClient implements SSO {} diff --git a/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/SSOClient.d.ts b/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/SSOClient.d.ts deleted file mode 100644 index ad4c19e9..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/SSOClient.d.ts +++ /dev/null @@ -1,131 +0,0 @@ -import { - HostHeaderInputConfig, - HostHeaderResolvedConfig, -} from "@aws-sdk/middleware-host-header"; -import { - UserAgentInputConfig, - UserAgentResolvedConfig, -} from "@aws-sdk/middleware-user-agent"; -import { - RegionInputConfig, - RegionResolvedConfig, -} from "@smithy/config-resolver"; -import { - EndpointInputConfig, - EndpointResolvedConfig, -} from "@smithy/middleware-endpoint"; -import { - RetryInputConfig, - RetryResolvedConfig, -} from "@smithy/middleware-retry"; -import { HttpHandler as __HttpHandler } from "@smithy/protocol-http"; -import { - Client as __Client, - DefaultsMode as __DefaultsMode, - SmithyConfiguration as __SmithyConfiguration, - SmithyResolvedConfiguration as __SmithyResolvedConfiguration, -} from "@smithy/smithy-client"; -import { - BodyLengthCalculator as __BodyLengthCalculator, - CheckOptionalClientConfig as __CheckOptionalClientConfig, - ChecksumConstructor as __ChecksumConstructor, - Decoder as __Decoder, - Encoder as __Encoder, - HashConstructor as __HashConstructor, - HttpHandlerOptions as __HttpHandlerOptions, - Logger as __Logger, - Provider as __Provider, - Provider, - StreamCollector as __StreamCollector, - UrlParser as __UrlParser, - UserAgent as __UserAgent, -} from "@smithy/types"; -import { - GetRoleCredentialsCommandInput, - GetRoleCredentialsCommandOutput, -} from "./commands/GetRoleCredentialsCommand"; -import { - ListAccountRolesCommandInput, - ListAccountRolesCommandOutput, -} from "./commands/ListAccountRolesCommand"; -import { - ListAccountsCommandInput, - ListAccountsCommandOutput, -} from "./commands/ListAccountsCommand"; -import { - LogoutCommandInput, - LogoutCommandOutput, -} from "./commands/LogoutCommand"; -import { - ClientInputEndpointParameters, - ClientResolvedEndpointParameters, - EndpointParameters, -} from "./endpoint/EndpointParameters"; -import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions"; -export { __Client }; -export type ServiceInputTypes = - | GetRoleCredentialsCommandInput - | ListAccountRolesCommandInput - | ListAccountsCommandInput - | LogoutCommandInput; -export type ServiceOutputTypes = - | GetRoleCredentialsCommandOutput - | ListAccountRolesCommandOutput - | ListAccountsCommandOutput - | LogoutCommandOutput; -export interface ClientDefaults - extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> { - requestHandler?: __HttpHandler; - sha256?: __ChecksumConstructor | __HashConstructor; - urlParser?: __UrlParser; - bodyLengthChecker?: __BodyLengthCalculator; - streamCollector?: __StreamCollector; - base64Decoder?: __Decoder; - base64Encoder?: __Encoder; - utf8Decoder?: __Decoder; - utf8Encoder?: __Encoder; - runtime?: string; - disableHostPrefix?: boolean; - serviceId?: string; - useDualstackEndpoint?: boolean | __Provider; - useFipsEndpoint?: boolean | __Provider; - region?: string | __Provider; - defaultUserAgentProvider?: Provider<__UserAgent>; - maxAttempts?: number | __Provider; - retryMode?: string | __Provider; - logger?: __Logger; - extensions?: RuntimeExtension[]; - defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>; -} -export type SSOClientConfigType = Partial< - __SmithyConfiguration<__HttpHandlerOptions> -> & - ClientDefaults & - RegionInputConfig & - EndpointInputConfig & - RetryInputConfig & - HostHeaderInputConfig & - UserAgentInputConfig & - ClientInputEndpointParameters; -export interface SSOClientConfig extends SSOClientConfigType {} -export type SSOClientResolvedConfigType = - __SmithyResolvedConfiguration<__HttpHandlerOptions> & - Required & - RuntimeExtensionsConfig & - RegionResolvedConfig & - EndpointResolvedConfig & - RetryResolvedConfig & - HostHeaderResolvedConfig & - UserAgentResolvedConfig & - ClientResolvedEndpointParameters; -export interface SSOClientResolvedConfig extends SSOClientResolvedConfigType {} -export declare class SSOClient extends __Client< - __HttpHandlerOptions, - ServiceInputTypes, - ServiceOutputTypes, - SSOClientResolvedConfig -> { - readonly config: SSOClientResolvedConfig; - constructor(...[configuration]: __CheckOptionalClientConfig); - destroy(): void; -} diff --git a/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/commands/GetRoleCredentialsCommand.d.ts b/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/commands/GetRoleCredentialsCommand.d.ts deleted file mode 100644 index abd3f004..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/commands/GetRoleCredentialsCommand.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - GetRoleCredentialsRequest, - GetRoleCredentialsResponse, -} from "../models/models_0"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSOClientResolvedConfig, -} from "../SSOClient"; -export { __MetadataBearer, $Command }; -export interface GetRoleCredentialsCommandInput - extends GetRoleCredentialsRequest {} -export interface GetRoleCredentialsCommandOutput - extends GetRoleCredentialsResponse, - __MetadataBearer {} -export declare class GetRoleCredentialsCommand extends $Command< - GetRoleCredentialsCommandInput, - GetRoleCredentialsCommandOutput, - SSOClientResolvedConfig -> { - readonly input: GetRoleCredentialsCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: GetRoleCredentialsCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSOClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/commands/ListAccountRolesCommand.d.ts b/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/commands/ListAccountRolesCommand.d.ts deleted file mode 100644 index a5a9bc38..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/commands/ListAccountRolesCommand.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - ListAccountRolesRequest, - ListAccountRolesResponse, -} from "../models/models_0"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSOClientResolvedConfig, -} from "../SSOClient"; -export { __MetadataBearer, $Command }; -export interface ListAccountRolesCommandInput extends ListAccountRolesRequest {} -export interface ListAccountRolesCommandOutput - extends ListAccountRolesResponse, - __MetadataBearer {} -export declare class ListAccountRolesCommand extends $Command< - ListAccountRolesCommandInput, - ListAccountRolesCommandOutput, - SSOClientResolvedConfig -> { - readonly input: ListAccountRolesCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: ListAccountRolesCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSOClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/commands/ListAccountsCommand.d.ts b/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/commands/ListAccountsCommand.d.ts deleted file mode 100644 index 0b8c6eaa..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/commands/ListAccountsCommand.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { ListAccountsRequest, ListAccountsResponse } from "../models/models_0"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSOClientResolvedConfig, -} from "../SSOClient"; -export { __MetadataBearer, $Command }; -export interface ListAccountsCommandInput extends ListAccountsRequest {} -export interface ListAccountsCommandOutput - extends ListAccountsResponse, - __MetadataBearer {} -export declare class ListAccountsCommand extends $Command< - ListAccountsCommandInput, - ListAccountsCommandOutput, - SSOClientResolvedConfig -> { - readonly input: ListAccountsCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: ListAccountsCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSOClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/commands/LogoutCommand.d.ts b/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/commands/LogoutCommand.d.ts deleted file mode 100644 index d21313cc..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/commands/LogoutCommand.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { LogoutRequest } from "../models/models_0"; -import { - ServiceInputTypes, - ServiceOutputTypes, - SSOClientResolvedConfig, -} from "../SSOClient"; -export { __MetadataBearer, $Command }; -export interface LogoutCommandInput extends LogoutRequest {} -export interface LogoutCommandOutput extends __MetadataBearer {} -export declare class LogoutCommand extends $Command< - LogoutCommandInput, - LogoutCommandOutput, - SSOClientResolvedConfig -> { - readonly input: LogoutCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: LogoutCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: SSOClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/commands/index.d.ts b/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/commands/index.d.ts deleted file mode 100644 index 0ab890d3..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/commands/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export * from "./GetRoleCredentialsCommand"; -export * from "./ListAccountRolesCommand"; -export * from "./ListAccountsCommand"; -export * from "./LogoutCommand"; diff --git a/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/endpoint/EndpointParameters.d.ts b/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/endpoint/EndpointParameters.d.ts deleted file mode 100644 index 3cbdf4cd..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { - Endpoint, - EndpointParameters as __EndpointParameters, - EndpointV2, - Provider, -} from "@smithy/types"; -export interface ClientInputEndpointParameters { - region?: string | Provider; - useDualstackEndpoint?: boolean | Provider; - useFipsEndpoint?: boolean | Provider; - endpoint?: - | string - | Provider - | Endpoint - | Provider - | EndpointV2 - | Provider; -} -export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & { - defaultSigningName: string; -}; -export declare const resolveClientEndpointParameters: ( - options: T & ClientInputEndpointParameters -) => T & - ClientInputEndpointParameters & { - defaultSigningName: string; - }; -export interface EndpointParameters extends __EndpointParameters { - Region?: string; - UseDualStack?: boolean; - UseFIPS?: boolean; - Endpoint?: string; -} diff --git a/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/endpoint/endpointResolver.d.ts b/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/endpoint/endpointResolver.d.ts deleted file mode 100644 index 59099254..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/endpoint/endpointResolver.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { EndpointV2, Logger } from "@smithy/types"; -import { EndpointParameters } from "./EndpointParameters"; -export declare const defaultEndpointResolver: ( - endpointParams: EndpointParameters, - context?: { - logger?: Logger; - } -) => EndpointV2; diff --git a/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/endpoint/ruleset.d.ts b/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/endpoint/ruleset.d.ts deleted file mode 100644 index 4b238994..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/endpoint/ruleset.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { RuleSetObject } from "@smithy/types"; -export declare const ruleSet: RuleSetObject; diff --git a/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/extensionConfiguration.d.ts b/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/extensionConfiguration.d.ts deleted file mode 100644 index 4f4cdc86..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/extensionConfiguration.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { AwsRegionExtensionConfiguration } from "@aws-sdk/types"; -import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http"; -import { DefaultExtensionConfiguration } from "@smithy/types"; -export interface SSOExtensionConfiguration - extends HttpHandlerExtensionConfiguration, - DefaultExtensionConfiguration, - AwsRegionExtensionConfiguration {} diff --git a/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/index.d.ts b/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/index.d.ts deleted file mode 100644 index a3f8a9a9..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/index.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -export * from "./SSOClient"; -export * from "./SSO"; -export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters"; -export { RuntimeExtension } from "./runtimeExtensions"; -export { SSOExtensionConfiguration } from "./extensionConfiguration"; -export * from "./commands"; -export * from "./pagination"; -export * from "./models"; -import "@aws-sdk/util-endpoints"; -export { SSOServiceException } from "./models/SSOServiceException"; diff --git a/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/models/SSOServiceException.d.ts b/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/models/SSOServiceException.d.ts deleted file mode 100644 index 1116dc85..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/models/SSOServiceException.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { - ServiceException as __ServiceException, - ServiceExceptionOptions as __ServiceExceptionOptions, -} from "@smithy/smithy-client"; -export { __ServiceException, __ServiceExceptionOptions }; -export declare class SSOServiceException extends __ServiceException { - constructor(options: __ServiceExceptionOptions); -} diff --git a/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/models/index.d.ts b/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/models/index.d.ts deleted file mode 100644 index 09c5d6e0..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/models/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./models_0"; diff --git a/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/models/models_0.d.ts b/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/models/models_0.d.ts deleted file mode 100644 index cb731fa6..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/models/models_0.d.ts +++ /dev/null @@ -1,93 +0,0 @@ -import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; -import { SSOServiceException as __BaseException } from "./SSOServiceException"; -export interface AccountInfo { - accountId?: string; - accountName?: string; - emailAddress?: string; -} -export interface GetRoleCredentialsRequest { - roleName: string | undefined; - accountId: string | undefined; - accessToken: string | undefined; -} -export interface RoleCredentials { - accessKeyId?: string; - secretAccessKey?: string; - sessionToken?: string; - expiration?: number; -} -export interface GetRoleCredentialsResponse { - roleCredentials?: RoleCredentials; -} -export declare class InvalidRequestException extends __BaseException { - readonly name: "InvalidRequestException"; - readonly $fault: "client"; - constructor( - opts: __ExceptionOptionType - ); -} -export declare class ResourceNotFoundException extends __BaseException { - readonly name: "ResourceNotFoundException"; - readonly $fault: "client"; - constructor( - opts: __ExceptionOptionType - ); -} -export declare class TooManyRequestsException extends __BaseException { - readonly name: "TooManyRequestsException"; - readonly $fault: "client"; - constructor( - opts: __ExceptionOptionType - ); -} -export declare class UnauthorizedException extends __BaseException { - readonly name: "UnauthorizedException"; - readonly $fault: "client"; - constructor( - opts: __ExceptionOptionType - ); -} -export interface ListAccountRolesRequest { - nextToken?: string; - maxResults?: number; - accessToken: string | undefined; - accountId: string | undefined; -} -export interface RoleInfo { - roleName?: string; - accountId?: string; -} -export interface ListAccountRolesResponse { - nextToken?: string; - roleList?: RoleInfo[]; -} -export interface ListAccountsRequest { - nextToken?: string; - maxResults?: number; - accessToken: string | undefined; -} -export interface ListAccountsResponse { - nextToken?: string; - accountList?: AccountInfo[]; -} -export interface LogoutRequest { - accessToken: string | undefined; -} -export declare const GetRoleCredentialsRequestFilterSensitiveLog: ( - obj: GetRoleCredentialsRequest -) => any; -export declare const RoleCredentialsFilterSensitiveLog: ( - obj: RoleCredentials -) => any; -export declare const GetRoleCredentialsResponseFilterSensitiveLog: ( - obj: GetRoleCredentialsResponse -) => any; -export declare const ListAccountRolesRequestFilterSensitiveLog: ( - obj: ListAccountRolesRequest -) => any; -export declare const ListAccountsRequestFilterSensitiveLog: ( - obj: ListAccountsRequest -) => any; -export declare const LogoutRequestFilterSensitiveLog: ( - obj: LogoutRequest -) => any; diff --git a/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/pagination/Interfaces.d.ts b/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/pagination/Interfaces.d.ts deleted file mode 100644 index 29708980..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/pagination/Interfaces.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { PaginationConfiguration } from "@smithy/types"; -import { SSOClient } from "../SSOClient"; -export interface SSOPaginationConfiguration extends PaginationConfiguration { - client: SSOClient; -} diff --git a/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/pagination/ListAccountRolesPaginator.d.ts b/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/pagination/ListAccountRolesPaginator.d.ts deleted file mode 100644 index 97bdf294..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/pagination/ListAccountRolesPaginator.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { - ListAccountRolesCommandInput, - ListAccountRolesCommandOutput, -} from "../commands/ListAccountRolesCommand"; -import { SSOPaginationConfiguration } from "./Interfaces"; -export declare function paginateListAccountRoles( - config: SSOPaginationConfiguration, - input: ListAccountRolesCommandInput, - ...additionalArguments: any -): Paginator; diff --git a/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/pagination/ListAccountsPaginator.d.ts b/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/pagination/ListAccountsPaginator.d.ts deleted file mode 100644 index 622a4c2f..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/pagination/ListAccountsPaginator.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Paginator } from "@smithy/types"; -import { - ListAccountsCommandInput, - ListAccountsCommandOutput, -} from "../commands/ListAccountsCommand"; -import { SSOPaginationConfiguration } from "./Interfaces"; -export declare function paginateListAccounts( - config: SSOPaginationConfiguration, - input: ListAccountsCommandInput, - ...additionalArguments: any -): Paginator; diff --git a/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/pagination/index.d.ts b/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/pagination/index.d.ts deleted file mode 100644 index 1e7866f7..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/pagination/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * from "./Interfaces"; -export * from "./ListAccountRolesPaginator"; -export * from "./ListAccountsPaginator"; diff --git a/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/protocols/Aws_restJson1.d.ts b/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/protocols/Aws_restJson1.d.ts deleted file mode 100644 index 74eebdc7..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/protocols/Aws_restJson1.d.ts +++ /dev/null @@ -1,53 +0,0 @@ -import { - HttpRequest as __HttpRequest, - HttpResponse as __HttpResponse, -} from "@smithy/protocol-http"; -import { SerdeContext as __SerdeContext } from "@smithy/types"; -import { - GetRoleCredentialsCommandInput, - GetRoleCredentialsCommandOutput, -} from "../commands/GetRoleCredentialsCommand"; -import { - ListAccountRolesCommandInput, - ListAccountRolesCommandOutput, -} from "../commands/ListAccountRolesCommand"; -import { - ListAccountsCommandInput, - ListAccountsCommandOutput, -} from "../commands/ListAccountsCommand"; -import { - LogoutCommandInput, - LogoutCommandOutput, -} from "../commands/LogoutCommand"; -export declare const se_GetRoleCredentialsCommand: ( - input: GetRoleCredentialsCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_ListAccountRolesCommand: ( - input: ListAccountRolesCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_ListAccountsCommand: ( - input: ListAccountsCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_LogoutCommand: ( - input: LogoutCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const de_GetRoleCredentialsCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_ListAccountRolesCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_ListAccountsCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_LogoutCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; diff --git a/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.browser.d.ts b/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.browser.d.ts deleted file mode 100644 index 6280282b..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.browser.d.ts +++ /dev/null @@ -1,73 +0,0 @@ -import { FetchHttpHandler as RequestHandler } from "@smithy/fetch-http-handler"; -import { SSOClientConfig } from "./SSOClient"; -export declare const getRuntimeConfig: (config: SSOClientConfig) => { - runtime: string; - defaultsMode: import("@smithy/types").Provider< - import("@smithy/smithy-client").ResolvedDefaultsMode - >; - bodyLengthChecker: import("@smithy/types").BodyLengthCalculator; - defaultUserAgentProvider: import("@smithy/types").Provider< - import("@smithy/types").UserAgent - >; - maxAttempts: number | import("@smithy/types").Provider; - region: string | import("@smithy/types").Provider; - requestHandler: - | (import("@smithy/types").RequestHandler< - any, - any, - import("@smithy/types").HttpHandlerOptions - > & - import("@smithy/types").RequestHandler< - import("@smithy/protocol-http").HttpRequest, - import("@smithy/protocol-http").HttpResponse, - import("@smithy/types").HttpHandlerOptions - > & { - updateHttpClientConfig(key: never, value: never): void; - httpHandlerConfigs(): {}; - }) - | RequestHandler; - retryMode: string | import("@smithy/types").Provider; - sha256: import("@smithy/types").HashConstructor; - streamCollector: import("@smithy/types").StreamCollector; - useDualstackEndpoint: boolean | import("@smithy/types").Provider; - useFipsEndpoint: boolean | import("@smithy/types").Provider; - apiVersion: string; - urlParser: import("@smithy/types").UrlParser; - base64Decoder: import("@smithy/types").Decoder; - base64Encoder: import("@smithy/types").Encoder; - utf8Decoder: import("@smithy/types").Decoder; - utf8Encoder: import("@smithy/types").Encoder; - disableHostPrefix: boolean; - serviceId: string; - logger: import("@smithy/types").Logger; - extensions: import("./runtimeExtensions").RuntimeExtension[]; - endpoint?: - | (( - | string - | import("@smithy/types").Endpoint - | import("@smithy/types").Provider - | import("@smithy/types").EndpointV2 - | import("@smithy/types").Provider - ) & - ( - | string - | import("@smithy/types").Provider - | import("@smithy/types").Endpoint - | import("@smithy/types").Provider - | import("@smithy/types").EndpointV2 - | import("@smithy/types").Provider - )) - | undefined; - endpointProvider: ( - endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, - context?: { - logger?: import("@smithy/types").Logger | undefined; - } - ) => import("@smithy/types").EndpointV2; - tls?: boolean | undefined; - retryStrategy?: - | import("@smithy/types").RetryStrategy - | import("@smithy/types").RetryStrategyV2 - | undefined; - customUserAgent?: string | import("@smithy/types").UserAgent | undefined; -}; diff --git a/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.d.ts b/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.d.ts deleted file mode 100644 index 236992ff..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.d.ts +++ /dev/null @@ -1,73 +0,0 @@ -import { NodeHttpHandler as RequestHandler } from "@smithy/node-http-handler"; -import { SSOClientConfig } from "./SSOClient"; -export declare const getRuntimeConfig: (config: SSOClientConfig) => { - runtime: string; - defaultsMode: import("@smithy/types").Provider< - import("@smithy/smithy-client").ResolvedDefaultsMode - >; - bodyLengthChecker: import("@smithy/types").BodyLengthCalculator; - defaultUserAgentProvider: import("@smithy/types").Provider< - import("@smithy/types").UserAgent - >; - maxAttempts: number | import("@smithy/types").Provider; - region: string | import("@smithy/types").Provider; - requestHandler: - | (import("@smithy/types").RequestHandler< - any, - any, - import("@smithy/types").HttpHandlerOptions - > & - import("@smithy/types").RequestHandler< - import("@smithy/protocol-http").HttpRequest, - import("@smithy/protocol-http").HttpResponse, - import("@smithy/types").HttpHandlerOptions - > & { - updateHttpClientConfig(key: never, value: never): void; - httpHandlerConfigs(): {}; - }) - | RequestHandler; - retryMode: string | import("@smithy/types").Provider; - sha256: import("@smithy/types").HashConstructor; - streamCollector: import("@smithy/types").StreamCollector; - useDualstackEndpoint: boolean | import("@smithy/types").Provider; - useFipsEndpoint: boolean | import("@smithy/types").Provider; - apiVersion: string; - urlParser: import("@smithy/types").UrlParser; - base64Decoder: import("@smithy/types").Decoder; - base64Encoder: import("@smithy/types").Encoder; - utf8Decoder: import("@smithy/types").Decoder; - utf8Encoder: import("@smithy/types").Encoder; - disableHostPrefix: boolean; - serviceId: string; - logger: import("@smithy/types").Logger; - extensions: import("./runtimeExtensions").RuntimeExtension[]; - endpoint?: - | (( - | string - | import("@smithy/types").Endpoint - | import("@smithy/types").Provider - | import("@smithy/types").EndpointV2 - | import("@smithy/types").Provider - ) & - ( - | string - | import("@smithy/types").Provider - | import("@smithy/types").Endpoint - | import("@smithy/types").Provider - | import("@smithy/types").EndpointV2 - | import("@smithy/types").Provider - )) - | undefined; - endpointProvider: ( - endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, - context?: { - logger?: import("@smithy/types").Logger | undefined; - } - ) => import("@smithy/types").EndpointV2; - tls?: boolean | undefined; - retryStrategy?: - | import("@smithy/types").RetryStrategy - | import("@smithy/types").RetryStrategyV2 - | undefined; - customUserAgent?: string | import("@smithy/types").UserAgent | undefined; -}; diff --git a/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.native.d.ts b/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.native.d.ts deleted file mode 100644 index ca78af14..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.native.d.ts +++ /dev/null @@ -1,64 +0,0 @@ -import { SSOClientConfig } from "./SSOClient"; -export declare const getRuntimeConfig: (config: SSOClientConfig) => { - runtime: string; - sha256: import("@smithy/types").HashConstructor; - requestHandler: - | (import("@smithy/types").RequestHandler< - any, - any, - import("@smithy/types").HttpHandlerOptions - > & - import("@smithy/types").RequestHandler< - import("@smithy/protocol-http").HttpRequest, - import("@smithy/protocol-http").HttpResponse, - import("@smithy/types").HttpHandlerOptions - > & { - updateHttpClientConfig(key: never, value: never): void; - httpHandlerConfigs(): {}; - }) - | import("@smithy/fetch-http-handler").FetchHttpHandler; - apiVersion: string; - urlParser: import("@smithy/types").UrlParser; - bodyLengthChecker: import("@smithy/types").BodyLengthCalculator; - streamCollector: import("@smithy/types").StreamCollector; - base64Decoder: import("@smithy/types").Decoder; - base64Encoder: import("@smithy/types").Encoder; - utf8Decoder: import("@smithy/types").Decoder; - utf8Encoder: import("@smithy/types").Encoder; - disableHostPrefix: boolean; - serviceId: string; - useDualstackEndpoint: boolean | import("@smithy/types").Provider; - useFipsEndpoint: boolean | import("@smithy/types").Provider; - region: string | import("@smithy/types").Provider; - defaultUserAgentProvider: import("@smithy/types").Provider< - import("@smithy/types").UserAgent - >; - maxAttempts: number | import("@smithy/types").Provider; - retryMode: string | import("@smithy/types").Provider; - logger: import("@smithy/types").Logger; - extensions: import("./runtimeExtensions").RuntimeExtension[]; - defaultsMode: - | import("@smithy/smithy-client").DefaultsMode - | import("@smithy/types").Provider< - import("@smithy/smithy-client").DefaultsMode - >; - endpoint?: - | string - | import("@smithy/types").Endpoint - | import("@smithy/types").Provider - | import("@smithy/types").EndpointV2 - | import("@smithy/types").Provider - | undefined; - endpointProvider: ( - endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, - context?: { - logger?: import("@smithy/types").Logger | undefined; - } - ) => import("@smithy/types").EndpointV2; - tls?: boolean | undefined; - retryStrategy?: - | import("@smithy/types").RetryStrategy - | import("@smithy/types").RetryStrategyV2 - | undefined; - customUserAgent?: string | import("@smithy/types").UserAgent | undefined; -}; diff --git a/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.shared.d.ts b/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.shared.d.ts deleted file mode 100644 index 762bac5c..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeConfig.shared.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { SSOClientConfig } from "./SSOClient"; -export declare const getRuntimeConfig: (config: SSOClientConfig) => { - apiVersion: string; - base64Decoder: import("@smithy/types").Decoder; - base64Encoder: import("@smithy/types").Encoder; - disableHostPrefix: boolean; - endpointProvider: ( - endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, - context?: { - logger?: import("@smithy/types").Logger | undefined; - } - ) => import("@smithy/types").EndpointV2; - extensions: import("./runtimeExtensions").RuntimeExtension[]; - logger: import("@smithy/types").Logger; - serviceId: string; - urlParser: import("@smithy/types").UrlParser; - utf8Decoder: import("@smithy/types").Decoder; - utf8Encoder: import("@smithy/types").Encoder; -}; diff --git a/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeExtensions.d.ts b/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeExtensions.d.ts deleted file mode 100644 index fbec1e52..00000000 --- a/node_modules/@aws-sdk/client-sso/dist-types/ts3.4/runtimeExtensions.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { SSOExtensionConfiguration } from "./extensionConfiguration"; -export interface RuntimeExtension { - configure(extensionConfiguration: SSOExtensionConfiguration): void; -} -export interface RuntimeExtensionsConfig { - extensions: RuntimeExtension[]; -} -export declare const resolveRuntimeExtensions: ( - runtimeConfig: any, - extensions: RuntimeExtension[] -) => any; diff --git a/node_modules/@aws-sdk/client-sso/package.json b/node_modules/@aws-sdk/client-sso/package.json deleted file mode 100644 index 2d855978..00000000 --- a/node_modules/@aws-sdk/client-sso/package.json +++ /dev/null @@ -1,99 +0,0 @@ -{ - "name": "@aws-sdk/client-sso", - "description": "AWS SDK for JavaScript Sso Client for Node.js, Browser and React Native", - "version": "3.451.0", - "scripts": { - "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", - "build:cjs": "tsc -p tsconfig.cjs.json", - "build:docs": "typedoc", - "build:es": "tsc -p tsconfig.es.json", - "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build", - "build:types": "tsc -p tsconfig.types.json", - "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", - "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "extract:docs": "api-extractor run --local", - "generate:client": "node ../../scripts/generate-clients/single-service --solo sso" - }, - "main": "./dist-cjs/index.js", - "types": "./dist-types/index.d.ts", - "module": "./dist-es/index.js", - "sideEffects": false, - "dependencies": { - "@aws-crypto/sha256-browser": "3.0.0", - "@aws-crypto/sha256-js": "3.0.0", - "@aws-sdk/core": "3.451.0", - "@aws-sdk/middleware-host-header": "3.451.0", - "@aws-sdk/middleware-logger": "3.451.0", - "@aws-sdk/middleware-recursion-detection": "3.451.0", - "@aws-sdk/middleware-user-agent": "3.451.0", - "@aws-sdk/region-config-resolver": "3.451.0", - "@aws-sdk/types": "3.451.0", - "@aws-sdk/util-endpoints": "3.451.0", - "@aws-sdk/util-user-agent-browser": "3.451.0", - "@aws-sdk/util-user-agent-node": "3.451.0", - "@smithy/config-resolver": "^2.0.18", - "@smithy/fetch-http-handler": "^2.2.6", - "@smithy/hash-node": "^2.0.15", - "@smithy/invalid-dependency": "^2.0.13", - "@smithy/middleware-content-length": "^2.0.15", - "@smithy/middleware-endpoint": "^2.2.0", - "@smithy/middleware-retry": "^2.0.20", - "@smithy/middleware-serde": "^2.0.13", - "@smithy/middleware-stack": "^2.0.7", - "@smithy/node-config-provider": "^2.1.5", - "@smithy/node-http-handler": "^2.1.9", - "@smithy/protocol-http": "^3.0.9", - "@smithy/smithy-client": "^2.1.15", - "@smithy/types": "^2.5.0", - "@smithy/url-parser": "^2.0.13", - "@smithy/util-base64": "^2.0.1", - "@smithy/util-body-length-browser": "^2.0.0", - "@smithy/util-body-length-node": "^2.1.0", - "@smithy/util-defaults-mode-browser": "^2.0.19", - "@smithy/util-defaults-mode-node": "^2.0.25", - "@smithy/util-endpoints": "^1.0.4", - "@smithy/util-retry": "^2.0.6", - "@smithy/util-utf8": "^2.0.2", - "tslib": "^2.5.0" - }, - "devDependencies": { - "@smithy/service-client-documentation-generator": "^2.0.0", - "@tsconfig/node14": "1.0.3", - "@types/node": "^14.14.31", - "concurrently": "7.0.0", - "downlevel-dts": "0.10.1", - "rimraf": "3.0.2", - "typedoc": "0.23.23", - "typescript": "~4.9.5" - }, - "engines": { - "node": ">=14.0.0" - }, - "typesVersions": { - "<4.0": { - "dist-types/*": [ - "dist-types/ts3.4/*" - ] - } - }, - "files": [ - "dist-*/**" - ], - "author": { - "name": "AWS SDK for JavaScript Team", - "url": "https://aws.amazon.com/javascript/" - }, - "license": "Apache-2.0", - "browser": { - "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser" - }, - "react-native": { - "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native" - }, - "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sso", - "repository": { - "type": "git", - "url": "https://github.com/aws/aws-sdk-js-v3.git", - "directory": "clients/client-sso" - } -} diff --git a/node_modules/@aws-sdk/client-sts/LICENSE b/node_modules/@aws-sdk/client-sts/LICENSE deleted file mode 100644 index dd65ae06..00000000 --- a/node_modules/@aws-sdk/client-sts/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/node_modules/@aws-sdk/client-sts/README.md b/node_modules/@aws-sdk/client-sts/README.md deleted file mode 100644 index 708f93c0..00000000 --- a/node_modules/@aws-sdk/client-sts/README.md +++ /dev/null @@ -1,273 +0,0 @@ - - -# @aws-sdk/client-sts - -## Description - -AWS SDK for JavaScript STS Client for Node.js, Browser and React Native. - -Security Token Service - -

Security Token Service (STS) enables you to request temporary, limited-privilege -credentials for users. This guide provides descriptions of the STS API. For -more information about using this service, see Temporary Security Credentials.

- -## Installing - -To install the this package, simply type add or install @aws-sdk/client-sts -using your favorite package manager: - -- `npm install @aws-sdk/client-sts` -- `yarn add @aws-sdk/client-sts` -- `pnpm add @aws-sdk/client-sts` - -## Getting Started - -### Import - -The AWS SDK is modulized by clients and commands. -To send a request, you only need to import the `STSClient` and -the commands you need, for example `GetCallerIdentityCommand`: - -```js -// ES5 example -const { STSClient, GetCallerIdentityCommand } = require("@aws-sdk/client-sts"); -``` - -```ts -// ES6+ example -import { STSClient, GetCallerIdentityCommand } from "@aws-sdk/client-sts"; -``` - -### Usage - -To send a request, you: - -- Initiate client with configuration (e.g. credentials, region). -- Initiate command with input parameters. -- Call `send` operation on client with command object as input. -- If you are using a custom http handler, you may call `destroy()` to close open connections. - -```js -// a client can be shared by different commands. -const client = new STSClient({ region: "REGION" }); - -const params = { - /** input parameters */ -}; -const command = new GetCallerIdentityCommand(params); -``` - -#### Async/await - -We recommend using [await](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/await) -operator to wait for the promise returned by send operation as follows: - -```js -// async/await. -try { - const data = await client.send(command); - // process data. -} catch (error) { - // error handling. -} finally { - // finally. -} -``` - -Async-await is clean, concise, intuitive, easy to debug and has better error handling -as compared to using Promise chains or callbacks. - -#### Promises - -You can also use [Promise chaining](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Using_promises#chaining) -to execute send operation. - -```js -client.send(command).then( - (data) => { - // process data. - }, - (error) => { - // error handling. - } -); -``` - -Promises can also be called using `.catch()` and `.finally()` as follows: - -```js -client - .send(command) - .then((data) => { - // process data. - }) - .catch((error) => { - // error handling. - }) - .finally(() => { - // finally. - }); -``` - -#### Callbacks - -We do not recommend using callbacks because of [callback hell](http://callbackhell.com/), -but they are supported by the send operation. - -```js -// callbacks. -client.send(command, (err, data) => { - // process err and data. -}); -``` - -#### v2 compatible style - -The client can also send requests using v2 compatible style. -However, it results in a bigger bundle size and may be dropped in next major version. More details in the blog post -on [modular packages in AWS SDK for JavaScript](https://aws.amazon.com/blogs/developer/modular-packages-in-aws-sdk-for-javascript/) - -```ts -import * as AWS from "@aws-sdk/client-sts"; -const client = new AWS.STS({ region: "REGION" }); - -// async/await. -try { - const data = await client.getCallerIdentity(params); - // process data. -} catch (error) { - // error handling. -} - -// Promises. -client - .getCallerIdentity(params) - .then((data) => { - // process data. - }) - .catch((error) => { - // error handling. - }); - -// callbacks. -client.getCallerIdentity(params, (err, data) => { - // process err and data. -}); -``` - -### Troubleshooting - -When the service returns an exception, the error will include the exception information, -as well as response metadata (e.g. request id). - -```js -try { - const data = await client.send(command); - // process data. -} catch (error) { - const { requestId, cfId, extendedRequestId } = error.$metadata; - console.log({ requestId, cfId, extendedRequestId }); - /** - * The keys within exceptions are also parsed. - * You can access them by specifying exception names: - * if (error.name === 'SomeServiceException') { - * const value = error.specialKeyInException; - * } - */ -} -``` - -## Getting Help - -Please use these community resources for getting help. -We use the GitHub issues for tracking bugs and feature requests, but have limited bandwidth to address them. - -- Visit [Developer Guide](https://docs.aws.amazon.com/sdk-for-javascript/v3/developer-guide/welcome.html) - or [API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/index.html). -- Check out the blog posts tagged with [`aws-sdk-js`](https://aws.amazon.com/blogs/developer/tag/aws-sdk-js/) - on AWS Developer Blog. -- Ask a question on [StackOverflow](https://stackoverflow.com/questions/tagged/aws-sdk-js) and tag it with `aws-sdk-js`. -- Join the AWS JavaScript community on [gitter](https://gitter.im/aws/aws-sdk-js-v3). -- If it turns out that you may have found a bug, please [open an issue](https://github.com/aws/aws-sdk-js-v3/issues/new/choose). - -To test your universal JavaScript code in Node.js, browser and react-native environments, -visit our [code samples repo](https://github.com/aws-samples/aws-sdk-js-tests). - -## Contributing - -This client code is generated automatically. Any modifications will be overwritten the next time the `@aws-sdk/client-sts` package is updated. -To contribute to client you can check our [generate clients scripts](https://github.com/aws/aws-sdk-js-v3/tree/main/scripts/generate-clients). - -## License - -This SDK is distributed under the -[Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0), -see LICENSE for more information. - -## Client Commands (Operations List) - -
- -AssumeRole - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-sts/classes/assumerolecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-sts/interfaces/assumerolecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-sts/interfaces/assumerolecommandoutput.html) - -
-
- -AssumeRoleWithSAML - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-sts/classes/assumerolewithsamlcommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-sts/interfaces/assumerolewithsamlcommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-sts/interfaces/assumerolewithsamlcommandoutput.html) - -
-
- -AssumeRoleWithWebIdentity - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-sts/classes/assumerolewithwebidentitycommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-sts/interfaces/assumerolewithwebidentitycommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-sts/interfaces/assumerolewithwebidentitycommandoutput.html) - -
-
- -DecodeAuthorizationMessage - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-sts/classes/decodeauthorizationmessagecommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-sts/interfaces/decodeauthorizationmessagecommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-sts/interfaces/decodeauthorizationmessagecommandoutput.html) - -
-
- -GetAccessKeyInfo - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-sts/classes/getaccesskeyinfocommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-sts/interfaces/getaccesskeyinfocommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-sts/interfaces/getaccesskeyinfocommandoutput.html) - -
-
- -GetCallerIdentity - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-sts/classes/getcalleridentitycommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-sts/interfaces/getcalleridentitycommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-sts/interfaces/getcalleridentitycommandoutput.html) - -
-
- -GetFederationToken - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-sts/classes/getfederationtokencommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-sts/interfaces/getfederationtokencommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-sts/interfaces/getfederationtokencommandoutput.html) - -
-
- -GetSessionToken - - -[Command API Reference](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-sts/classes/getsessiontokencommand.html) / [Input](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-sts/interfaces/getsessiontokencommandinput.html) / [Output](https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/clients/client-sts/interfaces/getsessiontokencommandoutput.html) - -
diff --git a/node_modules/@aws-sdk/client-sts/dist-cjs/STS.js b/node_modules/@aws-sdk/client-sts/dist-cjs/STS.js deleted file mode 100644 index 4f35e2ca..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-cjs/STS.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.STS = void 0; -const smithy_client_1 = require("@smithy/smithy-client"); -const AssumeRoleCommand_1 = require("./commands/AssumeRoleCommand"); -const AssumeRoleWithSAMLCommand_1 = require("./commands/AssumeRoleWithSAMLCommand"); -const AssumeRoleWithWebIdentityCommand_1 = require("./commands/AssumeRoleWithWebIdentityCommand"); -const DecodeAuthorizationMessageCommand_1 = require("./commands/DecodeAuthorizationMessageCommand"); -const GetAccessKeyInfoCommand_1 = require("./commands/GetAccessKeyInfoCommand"); -const GetCallerIdentityCommand_1 = require("./commands/GetCallerIdentityCommand"); -const GetFederationTokenCommand_1 = require("./commands/GetFederationTokenCommand"); -const GetSessionTokenCommand_1 = require("./commands/GetSessionTokenCommand"); -const STSClient_1 = require("./STSClient"); -const commands = { - AssumeRoleCommand: AssumeRoleCommand_1.AssumeRoleCommand, - AssumeRoleWithSAMLCommand: AssumeRoleWithSAMLCommand_1.AssumeRoleWithSAMLCommand, - AssumeRoleWithWebIdentityCommand: AssumeRoleWithWebIdentityCommand_1.AssumeRoleWithWebIdentityCommand, - DecodeAuthorizationMessageCommand: DecodeAuthorizationMessageCommand_1.DecodeAuthorizationMessageCommand, - GetAccessKeyInfoCommand: GetAccessKeyInfoCommand_1.GetAccessKeyInfoCommand, - GetCallerIdentityCommand: GetCallerIdentityCommand_1.GetCallerIdentityCommand, - GetFederationTokenCommand: GetFederationTokenCommand_1.GetFederationTokenCommand, - GetSessionTokenCommand: GetSessionTokenCommand_1.GetSessionTokenCommand, -}; -class STS extends STSClient_1.STSClient { -} -exports.STS = STS; -(0, smithy_client_1.createAggregatedClient)(commands, STS); diff --git a/node_modules/@aws-sdk/client-sts/dist-cjs/STSClient.js b/node_modules/@aws-sdk/client-sts/dist-cjs/STSClient.js deleted file mode 100644 index 93b8e114..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-cjs/STSClient.js +++ /dev/null @@ -1,42 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.STSClient = exports.__Client = void 0; -const middleware_host_header_1 = require("@aws-sdk/middleware-host-header"); -const middleware_logger_1 = require("@aws-sdk/middleware-logger"); -const middleware_recursion_detection_1 = require("@aws-sdk/middleware-recursion-detection"); -const middleware_sdk_sts_1 = require("@aws-sdk/middleware-sdk-sts"); -const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent"); -const config_resolver_1 = require("@smithy/config-resolver"); -const middleware_content_length_1 = require("@smithy/middleware-content-length"); -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_retry_1 = require("@smithy/middleware-retry"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "__Client", { enumerable: true, get: function () { return smithy_client_1.Client; } }); -const EndpointParameters_1 = require("./endpoint/EndpointParameters"); -const runtimeConfig_1 = require("./runtimeConfig"); -const runtimeExtensions_1 = require("./runtimeExtensions"); -class STSClient extends smithy_client_1.Client { - constructor(...[configuration]) { - const _config_0 = (0, runtimeConfig_1.getRuntimeConfig)(configuration || {}); - const _config_1 = (0, EndpointParameters_1.resolveClientEndpointParameters)(_config_0); - const _config_2 = (0, config_resolver_1.resolveRegionConfig)(_config_1); - const _config_3 = (0, middleware_endpoint_1.resolveEndpointConfig)(_config_2); - const _config_4 = (0, middleware_retry_1.resolveRetryConfig)(_config_3); - const _config_5 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_4); - const _config_6 = (0, middleware_sdk_sts_1.resolveStsAuthConfig)(_config_5, { stsClientCtor: STSClient }); - const _config_7 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_6); - const _config_8 = (0, runtimeExtensions_1.resolveRuntimeExtensions)(_config_7, configuration?.extensions || []); - super(_config_8); - this.config = _config_8; - this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config)); - this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config)); - this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config)); - this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config)); - this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config)); - this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config)); - } - destroy() { - super.destroy(); - } -} -exports.STSClient = STSClient; diff --git a/node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleCommand.js b/node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleCommand.js deleted file mode 100644 index 4c082cac..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleCommand.js +++ /dev/null @@ -1,55 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AssumeRoleCommand = exports.$Command = void 0; -const middleware_signing_1 = require("@aws-sdk/middleware-signing"); -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const models_0_1 = require("../models/models_0"); -const Aws_query_1 = require("../protocols/Aws_query"); -class AssumeRoleCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" }, - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, AssumeRoleCommand.getEndpointParameterInstructions())); - this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "STSClient"; - const commandName = "AssumeRoleCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: models_0_1.AssumeRoleResponseFilterSensitiveLog, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AWSSecurityTokenServiceV20110615", - operation: "AssumeRole", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_query_1.se_AssumeRoleCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_query_1.de_AssumeRoleCommand)(output, context); - } -} -exports.AssumeRoleCommand = AssumeRoleCommand; diff --git a/node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleWithSAMLCommand.js b/node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleWithSAMLCommand.js deleted file mode 100644 index d3b8586a..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleWithSAMLCommand.js +++ /dev/null @@ -1,53 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AssumeRoleWithSAMLCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const models_0_1 = require("../models/models_0"); -const Aws_query_1 = require("../protocols/Aws_query"); -class AssumeRoleWithSAMLCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" }, - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, AssumeRoleWithSAMLCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "STSClient"; - const commandName = "AssumeRoleWithSAMLCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.AssumeRoleWithSAMLRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.AssumeRoleWithSAMLResponseFilterSensitiveLog, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AWSSecurityTokenServiceV20110615", - operation: "AssumeRoleWithSAML", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_query_1.se_AssumeRoleWithSAMLCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_query_1.de_AssumeRoleWithSAMLCommand)(output, context); - } -} -exports.AssumeRoleWithSAMLCommand = AssumeRoleWithSAMLCommand; diff --git a/node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleWithWebIdentityCommand.js b/node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleWithWebIdentityCommand.js deleted file mode 100644 index 61820641..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-cjs/commands/AssumeRoleWithWebIdentityCommand.js +++ /dev/null @@ -1,53 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AssumeRoleWithWebIdentityCommand = exports.$Command = void 0; -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const models_0_1 = require("../models/models_0"); -const Aws_query_1 = require("../protocols/Aws_query"); -class AssumeRoleWithWebIdentityCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" }, - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, AssumeRoleWithWebIdentityCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "STSClient"; - const commandName = "AssumeRoleWithWebIdentityCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: models_0_1.AssumeRoleWithWebIdentityRequestFilterSensitiveLog, - outputFilterSensitiveLog: models_0_1.AssumeRoleWithWebIdentityResponseFilterSensitiveLog, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AWSSecurityTokenServiceV20110615", - operation: "AssumeRoleWithWebIdentity", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_query_1.se_AssumeRoleWithWebIdentityCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_query_1.de_AssumeRoleWithWebIdentityCommand)(output, context); - } -} -exports.AssumeRoleWithWebIdentityCommand = AssumeRoleWithWebIdentityCommand; diff --git a/node_modules/@aws-sdk/client-sts/dist-cjs/commands/DecodeAuthorizationMessageCommand.js b/node_modules/@aws-sdk/client-sts/dist-cjs/commands/DecodeAuthorizationMessageCommand.js deleted file mode 100644 index cdb350e6..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-cjs/commands/DecodeAuthorizationMessageCommand.js +++ /dev/null @@ -1,54 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DecodeAuthorizationMessageCommand = exports.$Command = void 0; -const middleware_signing_1 = require("@aws-sdk/middleware-signing"); -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_query_1 = require("../protocols/Aws_query"); -class DecodeAuthorizationMessageCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" }, - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, DecodeAuthorizationMessageCommand.getEndpointParameterInstructions())); - this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "STSClient"; - const commandName = "DecodeAuthorizationMessageCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AWSSecurityTokenServiceV20110615", - operation: "DecodeAuthorizationMessage", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_query_1.se_DecodeAuthorizationMessageCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_query_1.de_DecodeAuthorizationMessageCommand)(output, context); - } -} -exports.DecodeAuthorizationMessageCommand = DecodeAuthorizationMessageCommand; diff --git a/node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetAccessKeyInfoCommand.js b/node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetAccessKeyInfoCommand.js deleted file mode 100644 index a38f566a..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetAccessKeyInfoCommand.js +++ /dev/null @@ -1,54 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GetAccessKeyInfoCommand = exports.$Command = void 0; -const middleware_signing_1 = require("@aws-sdk/middleware-signing"); -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_query_1 = require("../protocols/Aws_query"); -class GetAccessKeyInfoCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" }, - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetAccessKeyInfoCommand.getEndpointParameterInstructions())); - this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "STSClient"; - const commandName = "GetAccessKeyInfoCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AWSSecurityTokenServiceV20110615", - operation: "GetAccessKeyInfo", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_query_1.se_GetAccessKeyInfoCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_query_1.de_GetAccessKeyInfoCommand)(output, context); - } -} -exports.GetAccessKeyInfoCommand = GetAccessKeyInfoCommand; diff --git a/node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetCallerIdentityCommand.js b/node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetCallerIdentityCommand.js deleted file mode 100644 index 990dbd24..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetCallerIdentityCommand.js +++ /dev/null @@ -1,54 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GetCallerIdentityCommand = exports.$Command = void 0; -const middleware_signing_1 = require("@aws-sdk/middleware-signing"); -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const Aws_query_1 = require("../protocols/Aws_query"); -class GetCallerIdentityCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" }, - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetCallerIdentityCommand.getEndpointParameterInstructions())); - this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "STSClient"; - const commandName = "GetCallerIdentityCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AWSSecurityTokenServiceV20110615", - operation: "GetCallerIdentity", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_query_1.se_GetCallerIdentityCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_query_1.de_GetCallerIdentityCommand)(output, context); - } -} -exports.GetCallerIdentityCommand = GetCallerIdentityCommand; diff --git a/node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetFederationTokenCommand.js b/node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetFederationTokenCommand.js deleted file mode 100644 index 95be393f..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetFederationTokenCommand.js +++ /dev/null @@ -1,55 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GetFederationTokenCommand = exports.$Command = void 0; -const middleware_signing_1 = require("@aws-sdk/middleware-signing"); -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const models_0_1 = require("../models/models_0"); -const Aws_query_1 = require("../protocols/Aws_query"); -class GetFederationTokenCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" }, - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetFederationTokenCommand.getEndpointParameterInstructions())); - this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "STSClient"; - const commandName = "GetFederationTokenCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: models_0_1.GetFederationTokenResponseFilterSensitiveLog, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AWSSecurityTokenServiceV20110615", - operation: "GetFederationToken", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_query_1.se_GetFederationTokenCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_query_1.de_GetFederationTokenCommand)(output, context); - } -} -exports.GetFederationTokenCommand = GetFederationTokenCommand; diff --git a/node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetSessionTokenCommand.js b/node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetSessionTokenCommand.js deleted file mode 100644 index 53b5da94..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-cjs/commands/GetSessionTokenCommand.js +++ /dev/null @@ -1,55 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GetSessionTokenCommand = exports.$Command = void 0; -const middleware_signing_1 = require("@aws-sdk/middleware-signing"); -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "$Command", { enumerable: true, get: function () { return smithy_client_1.Command; } }); -const types_1 = require("@smithy/types"); -const models_0_1 = require("../models/models_0"); -const Aws_query_1 = require("../protocols/Aws_query"); -class GetSessionTokenCommand extends smithy_client_1.Command { - static getEndpointParameterInstructions() { - return { - UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" }, - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_1.getEndpointPlugin)(configuration, GetSessionTokenCommand.getEndpointParameterInstructions())); - this.middlewareStack.use((0, middleware_signing_1.getAwsAuthPlugin)(configuration)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "STSClient"; - const commandName = "GetSessionTokenCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: models_0_1.GetSessionTokenResponseFilterSensitiveLog, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AWSSecurityTokenServiceV20110615", - operation: "GetSessionToken", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return (0, Aws_query_1.se_GetSessionTokenCommand)(input, context); - } - deserialize(output, context) { - return (0, Aws_query_1.de_GetSessionTokenCommand)(output, context); - } -} -exports.GetSessionTokenCommand = GetSessionTokenCommand; diff --git a/node_modules/@aws-sdk/client-sts/dist-cjs/commands/index.js b/node_modules/@aws-sdk/client-sts/dist-cjs/commands/index.js deleted file mode 100644 index f2bea9d2..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-cjs/commands/index.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./AssumeRoleCommand"), exports); -tslib_1.__exportStar(require("./AssumeRoleWithSAMLCommand"), exports); -tslib_1.__exportStar(require("./AssumeRoleWithWebIdentityCommand"), exports); -tslib_1.__exportStar(require("./DecodeAuthorizationMessageCommand"), exports); -tslib_1.__exportStar(require("./GetAccessKeyInfoCommand"), exports); -tslib_1.__exportStar(require("./GetCallerIdentityCommand"), exports); -tslib_1.__exportStar(require("./GetFederationTokenCommand"), exports); -tslib_1.__exportStar(require("./GetSessionTokenCommand"), exports); diff --git a/node_modules/@aws-sdk/client-sts/dist-cjs/defaultRoleAssumers.js b/node_modules/@aws-sdk/client-sts/dist-cjs/defaultRoleAssumers.js deleted file mode 100644 index c99813b5..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-cjs/defaultRoleAssumers.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.decorateDefaultCredentialProvider = exports.getDefaultRoleAssumerWithWebIdentity = exports.getDefaultRoleAssumer = void 0; -const defaultStsRoleAssumers_1 = require("./defaultStsRoleAssumers"); -const STSClient_1 = require("./STSClient"); -const getCustomizableStsClientCtor = (baseCtor, customizations) => { - if (!customizations) - return baseCtor; - else - return class CustomizableSTSClient extends baseCtor { - constructor(config) { - super(config); - for (const customization of customizations) { - this.middlewareStack.use(customization); - } - } - }; -}; -const getDefaultRoleAssumer = (stsOptions = {}, stsPlugins) => (0, defaultStsRoleAssumers_1.getDefaultRoleAssumer)(stsOptions, getCustomizableStsClientCtor(STSClient_1.STSClient, stsPlugins)); -exports.getDefaultRoleAssumer = getDefaultRoleAssumer; -const getDefaultRoleAssumerWithWebIdentity = (stsOptions = {}, stsPlugins) => (0, defaultStsRoleAssumers_1.getDefaultRoleAssumerWithWebIdentity)(stsOptions, getCustomizableStsClientCtor(STSClient_1.STSClient, stsPlugins)); -exports.getDefaultRoleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity; -const decorateDefaultCredentialProvider = (provider) => (input) => provider({ - roleAssumer: (0, exports.getDefaultRoleAssumer)(input), - roleAssumerWithWebIdentity: (0, exports.getDefaultRoleAssumerWithWebIdentity)(input), - ...input, -}); -exports.decorateDefaultCredentialProvider = decorateDefaultCredentialProvider; diff --git a/node_modules/@aws-sdk/client-sts/dist-cjs/defaultStsRoleAssumers.js b/node_modules/@aws-sdk/client-sts/dist-cjs/defaultStsRoleAssumers.js deleted file mode 100644 index 186e9ad8..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-cjs/defaultStsRoleAssumers.js +++ /dev/null @@ -1,76 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.decorateDefaultCredentialProvider = exports.getDefaultRoleAssumerWithWebIdentity = exports.getDefaultRoleAssumer = void 0; -const AssumeRoleCommand_1 = require("./commands/AssumeRoleCommand"); -const AssumeRoleWithWebIdentityCommand_1 = require("./commands/AssumeRoleWithWebIdentityCommand"); -const ASSUME_ROLE_DEFAULT_REGION = "us-east-1"; -const decorateDefaultRegion = (region) => { - if (typeof region !== "function") { - return region === undefined ? ASSUME_ROLE_DEFAULT_REGION : region; - } - return async () => { - try { - return await region(); - } - catch (e) { - return ASSUME_ROLE_DEFAULT_REGION; - } - }; -}; -const getDefaultRoleAssumer = (stsOptions, stsClientCtor) => { - let stsClient; - let closureSourceCreds; - return async (sourceCreds, params) => { - closureSourceCreds = sourceCreds; - if (!stsClient) { - const { logger, region, requestHandler } = stsOptions; - stsClient = new stsClientCtor({ - logger, - credentialDefaultProvider: () => async () => closureSourceCreds, - region: decorateDefaultRegion(region || stsOptions.region), - ...(requestHandler ? { requestHandler } : {}), - }); - } - const { Credentials } = await stsClient.send(new AssumeRoleCommand_1.AssumeRoleCommand(params)); - if (!Credentials || !Credentials.AccessKeyId || !Credentials.SecretAccessKey) { - throw new Error(`Invalid response from STS.assumeRole call with role ${params.RoleArn}`); - } - return { - accessKeyId: Credentials.AccessKeyId, - secretAccessKey: Credentials.SecretAccessKey, - sessionToken: Credentials.SessionToken, - expiration: Credentials.Expiration, - }; - }; -}; -exports.getDefaultRoleAssumer = getDefaultRoleAssumer; -const getDefaultRoleAssumerWithWebIdentity = (stsOptions, stsClientCtor) => { - let stsClient; - return async (params) => { - if (!stsClient) { - const { logger, region, requestHandler } = stsOptions; - stsClient = new stsClientCtor({ - logger, - region: decorateDefaultRegion(region || stsOptions.region), - ...(requestHandler ? { requestHandler } : {}), - }); - } - const { Credentials } = await stsClient.send(new AssumeRoleWithWebIdentityCommand_1.AssumeRoleWithWebIdentityCommand(params)); - if (!Credentials || !Credentials.AccessKeyId || !Credentials.SecretAccessKey) { - throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${params.RoleArn}`); - } - return { - accessKeyId: Credentials.AccessKeyId, - secretAccessKey: Credentials.SecretAccessKey, - sessionToken: Credentials.SessionToken, - expiration: Credentials.Expiration, - }; - }; -}; -exports.getDefaultRoleAssumerWithWebIdentity = getDefaultRoleAssumerWithWebIdentity; -const decorateDefaultCredentialProvider = (provider) => (input) => provider({ - roleAssumer: (0, exports.getDefaultRoleAssumer)(input, input.stsClientCtor), - roleAssumerWithWebIdentity: (0, exports.getDefaultRoleAssumerWithWebIdentity)(input, input.stsClientCtor), - ...input, -}); -exports.decorateDefaultCredentialProvider = decorateDefaultCredentialProvider; diff --git a/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/EndpointParameters.js b/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/EndpointParameters.js deleted file mode 100644 index 20ed973b..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/EndpointParameters.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.resolveClientEndpointParameters = void 0; -const resolveClientEndpointParameters = (options) => { - return { - ...options, - useDualstackEndpoint: options.useDualstackEndpoint ?? false, - useFipsEndpoint: options.useFipsEndpoint ?? false, - useGlobalEndpoint: options.useGlobalEndpoint ?? false, - defaultSigningName: "sts", - }; -}; -exports.resolveClientEndpointParameters = resolveClientEndpointParameters; diff --git a/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/endpointResolver.js b/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/endpointResolver.js deleted file mode 100644 index 3d8d8de8..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/endpointResolver.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.defaultEndpointResolver = void 0; -const util_endpoints_1 = require("@smithy/util-endpoints"); -const ruleset_1 = require("./ruleset"); -const defaultEndpointResolver = (endpointParams, context = {}) => { - return (0, util_endpoints_1.resolveEndpoint)(ruleset_1.ruleSet, { - endpointParams: endpointParams, - logger: context.logger, - }); -}; -exports.defaultEndpointResolver = defaultEndpointResolver; diff --git a/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/ruleset.js b/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/ruleset.js deleted file mode 100644 index 74282593..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-cjs/endpoint/ruleset.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ruleSet = void 0; -const F = "required", G = "type", H = "fn", I = "argv", J = "ref"; -const a = false, b = true, c = "booleanEquals", d = "stringEquals", e = "sigv4", f = "sts", g = "us-east-1", h = "endpoint", i = "https://sts.{Region}.{PartitionResult#dnsSuffix}", j = "tree", k = "error", l = "getAttr", m = { [F]: false, [G]: "String" }, n = { [F]: true, "default": false, [G]: "Boolean" }, o = { [J]: "Endpoint" }, p = { [H]: "isSet", [I]: [{ [J]: "Region" }] }, q = { [J]: "Region" }, r = { [H]: "aws.partition", [I]: [q], "assign": "PartitionResult" }, s = { [J]: "UseFIPS" }, t = { [J]: "UseDualStack" }, u = { "url": "https://sts.amazonaws.com", "properties": { "authSchemes": [{ "name": e, "signingName": f, "signingRegion": g }] }, "headers": {} }, v = {}, w = { "conditions": [{ [H]: d, [I]: [q, "aws-global"] }], [h]: u, [G]: h }, x = { [H]: c, [I]: [s, true] }, y = { [H]: c, [I]: [t, true] }, z = { [H]: l, [I]: [{ [J]: "PartitionResult" }, "supportsFIPS"] }, A = { [J]: "PartitionResult" }, B = { [H]: c, [I]: [true, { [H]: l, [I]: [A, "supportsDualStack"] }] }, C = [{ [H]: "isSet", [I]: [o] }], D = [x], E = [y]; -const _data = { version: "1.0", parameters: { Region: m, UseDualStack: n, UseFIPS: n, Endpoint: m, UseGlobalEndpoint: n }, rules: [{ conditions: [{ [H]: c, [I]: [{ [J]: "UseGlobalEndpoint" }, b] }, { [H]: "not", [I]: C }, p, r, { [H]: c, [I]: [s, a] }, { [H]: c, [I]: [t, a] }], rules: [{ conditions: [{ [H]: d, [I]: [q, "ap-northeast-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "ap-south-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "ap-southeast-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "ap-southeast-2"] }], endpoint: u, [G]: h }, w, { conditions: [{ [H]: d, [I]: [q, "ca-central-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "eu-central-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "eu-north-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "eu-west-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "eu-west-2"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "eu-west-3"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "sa-east-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, g] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "us-east-2"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "us-west-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "us-west-2"] }], endpoint: u, [G]: h }, { endpoint: { url: i, properties: { authSchemes: [{ name: e, signingName: f, signingRegion: "{Region}" }] }, headers: v }, [G]: h }], [G]: j }, { conditions: C, rules: [{ conditions: D, error: "Invalid Configuration: FIPS and custom endpoint are not supported", [G]: k }, { conditions: E, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", [G]: k }, { endpoint: { url: o, properties: v, headers: v }, [G]: h }], [G]: j }, { conditions: [p], rules: [{ conditions: [r], rules: [{ conditions: [x, y], rules: [{ conditions: [{ [H]: c, [I]: [b, z] }, B], rules: [{ endpoint: { url: "https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: v, headers: v }, [G]: h }], [G]: j }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", [G]: k }], [G]: j }, { conditions: D, rules: [{ conditions: [{ [H]: c, [I]: [z, b] }], rules: [{ conditions: [{ [H]: d, [I]: [{ [H]: l, [I]: [A, "name"] }, "aws-us-gov"] }], endpoint: { url: "https://sts.{Region}.amazonaws.com", properties: v, headers: v }, [G]: h }, { endpoint: { url: "https://sts-fips.{Region}.{PartitionResult#dnsSuffix}", properties: v, headers: v }, [G]: h }], [G]: j }, { error: "FIPS is enabled but this partition does not support FIPS", [G]: k }], [G]: j }, { conditions: E, rules: [{ conditions: [B], rules: [{ endpoint: { url: "https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: v, headers: v }, [G]: h }], [G]: j }, { error: "DualStack is enabled but this partition does not support DualStack", [G]: k }], [G]: j }, w, { endpoint: { url: i, properties: v, headers: v }, [G]: h }], [G]: j }], [G]: j }, { error: "Invalid Configuration: Missing Region", [G]: k }] }; -exports.ruleSet = _data; diff --git a/node_modules/@aws-sdk/client-sts/dist-cjs/extensionConfiguration.js b/node_modules/@aws-sdk/client-sts/dist-cjs/extensionConfiguration.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-cjs/extensionConfiguration.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@aws-sdk/client-sts/dist-cjs/index.js b/node_modules/@aws-sdk/client-sts/dist-cjs/index.js deleted file mode 100644 index e58da2b8..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-cjs/index.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.STSServiceException = void 0; -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./STSClient"), exports); -tslib_1.__exportStar(require("./STS"), exports); -tslib_1.__exportStar(require("./commands"), exports); -tslib_1.__exportStar(require("./models"), exports); -tslib_1.__exportStar(require("./defaultRoleAssumers"), exports); -require("@aws-sdk/util-endpoints"); -var STSServiceException_1 = require("./models/STSServiceException"); -Object.defineProperty(exports, "STSServiceException", { enumerable: true, get: function () { return STSServiceException_1.STSServiceException; } }); diff --git a/node_modules/@aws-sdk/client-sts/dist-cjs/models/STSServiceException.js b/node_modules/@aws-sdk/client-sts/dist-cjs/models/STSServiceException.js deleted file mode 100644 index 0e7b68a5..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-cjs/models/STSServiceException.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.STSServiceException = exports.__ServiceException = void 0; -const smithy_client_1 = require("@smithy/smithy-client"); -Object.defineProperty(exports, "__ServiceException", { enumerable: true, get: function () { return smithy_client_1.ServiceException; } }); -class STSServiceException extends smithy_client_1.ServiceException { - constructor(options) { - super(options); - Object.setPrototypeOf(this, STSServiceException.prototype); - } -} -exports.STSServiceException = STSServiceException; diff --git a/node_modules/@aws-sdk/client-sts/dist-cjs/models/index.js b/node_modules/@aws-sdk/client-sts/dist-cjs/models/index.js deleted file mode 100644 index 8ced418b..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-cjs/models/index.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./models_0"), exports); diff --git a/node_modules/@aws-sdk/client-sts/dist-cjs/models/models_0.js b/node_modules/@aws-sdk/client-sts/dist-cjs/models/models_0.js deleted file mode 100644 index 2dc60fd1..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-cjs/models/models_0.js +++ /dev/null @@ -1,149 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.GetSessionTokenResponseFilterSensitiveLog = exports.GetFederationTokenResponseFilterSensitiveLog = exports.AssumeRoleWithWebIdentityResponseFilterSensitiveLog = exports.AssumeRoleWithWebIdentityRequestFilterSensitiveLog = exports.AssumeRoleWithSAMLResponseFilterSensitiveLog = exports.AssumeRoleWithSAMLRequestFilterSensitiveLog = exports.AssumeRoleResponseFilterSensitiveLog = exports.CredentialsFilterSensitiveLog = exports.InvalidAuthorizationMessageException = exports.IDPCommunicationErrorException = exports.InvalidIdentityTokenException = exports.IDPRejectedClaimException = exports.RegionDisabledException = exports.PackedPolicyTooLargeException = exports.MalformedPolicyDocumentException = exports.ExpiredTokenException = void 0; -const smithy_client_1 = require("@smithy/smithy-client"); -const STSServiceException_1 = require("./STSServiceException"); -class ExpiredTokenException extends STSServiceException_1.STSServiceException { - constructor(opts) { - super({ - name: "ExpiredTokenException", - $fault: "client", - ...opts, - }); - this.name = "ExpiredTokenException"; - this.$fault = "client"; - Object.setPrototypeOf(this, ExpiredTokenException.prototype); - } -} -exports.ExpiredTokenException = ExpiredTokenException; -class MalformedPolicyDocumentException extends STSServiceException_1.STSServiceException { - constructor(opts) { - super({ - name: "MalformedPolicyDocumentException", - $fault: "client", - ...opts, - }); - this.name = "MalformedPolicyDocumentException"; - this.$fault = "client"; - Object.setPrototypeOf(this, MalformedPolicyDocumentException.prototype); - } -} -exports.MalformedPolicyDocumentException = MalformedPolicyDocumentException; -class PackedPolicyTooLargeException extends STSServiceException_1.STSServiceException { - constructor(opts) { - super({ - name: "PackedPolicyTooLargeException", - $fault: "client", - ...opts, - }); - this.name = "PackedPolicyTooLargeException"; - this.$fault = "client"; - Object.setPrototypeOf(this, PackedPolicyTooLargeException.prototype); - } -} -exports.PackedPolicyTooLargeException = PackedPolicyTooLargeException; -class RegionDisabledException extends STSServiceException_1.STSServiceException { - constructor(opts) { - super({ - name: "RegionDisabledException", - $fault: "client", - ...opts, - }); - this.name = "RegionDisabledException"; - this.$fault = "client"; - Object.setPrototypeOf(this, RegionDisabledException.prototype); - } -} -exports.RegionDisabledException = RegionDisabledException; -class IDPRejectedClaimException extends STSServiceException_1.STSServiceException { - constructor(opts) { - super({ - name: "IDPRejectedClaimException", - $fault: "client", - ...opts, - }); - this.name = "IDPRejectedClaimException"; - this.$fault = "client"; - Object.setPrototypeOf(this, IDPRejectedClaimException.prototype); - } -} -exports.IDPRejectedClaimException = IDPRejectedClaimException; -class InvalidIdentityTokenException extends STSServiceException_1.STSServiceException { - constructor(opts) { - super({ - name: "InvalidIdentityTokenException", - $fault: "client", - ...opts, - }); - this.name = "InvalidIdentityTokenException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidIdentityTokenException.prototype); - } -} -exports.InvalidIdentityTokenException = InvalidIdentityTokenException; -class IDPCommunicationErrorException extends STSServiceException_1.STSServiceException { - constructor(opts) { - super({ - name: "IDPCommunicationErrorException", - $fault: "client", - ...opts, - }); - this.name = "IDPCommunicationErrorException"; - this.$fault = "client"; - Object.setPrototypeOf(this, IDPCommunicationErrorException.prototype); - } -} -exports.IDPCommunicationErrorException = IDPCommunicationErrorException; -class InvalidAuthorizationMessageException extends STSServiceException_1.STSServiceException { - constructor(opts) { - super({ - name: "InvalidAuthorizationMessageException", - $fault: "client", - ...opts, - }); - this.name = "InvalidAuthorizationMessageException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidAuthorizationMessageException.prototype); - } -} -exports.InvalidAuthorizationMessageException = InvalidAuthorizationMessageException; -const CredentialsFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.SecretAccessKey && { SecretAccessKey: smithy_client_1.SENSITIVE_STRING }), -}); -exports.CredentialsFilterSensitiveLog = CredentialsFilterSensitiveLog; -const AssumeRoleResponseFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Credentials && { Credentials: (0, exports.CredentialsFilterSensitiveLog)(obj.Credentials) }), -}); -exports.AssumeRoleResponseFilterSensitiveLog = AssumeRoleResponseFilterSensitiveLog; -const AssumeRoleWithSAMLRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.SAMLAssertion && { SAMLAssertion: smithy_client_1.SENSITIVE_STRING }), -}); -exports.AssumeRoleWithSAMLRequestFilterSensitiveLog = AssumeRoleWithSAMLRequestFilterSensitiveLog; -const AssumeRoleWithSAMLResponseFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Credentials && { Credentials: (0, exports.CredentialsFilterSensitiveLog)(obj.Credentials) }), -}); -exports.AssumeRoleWithSAMLResponseFilterSensitiveLog = AssumeRoleWithSAMLResponseFilterSensitiveLog; -const AssumeRoleWithWebIdentityRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.WebIdentityToken && { WebIdentityToken: smithy_client_1.SENSITIVE_STRING }), -}); -exports.AssumeRoleWithWebIdentityRequestFilterSensitiveLog = AssumeRoleWithWebIdentityRequestFilterSensitiveLog; -const AssumeRoleWithWebIdentityResponseFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Credentials && { Credentials: (0, exports.CredentialsFilterSensitiveLog)(obj.Credentials) }), -}); -exports.AssumeRoleWithWebIdentityResponseFilterSensitiveLog = AssumeRoleWithWebIdentityResponseFilterSensitiveLog; -const GetFederationTokenResponseFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Credentials && { Credentials: (0, exports.CredentialsFilterSensitiveLog)(obj.Credentials) }), -}); -exports.GetFederationTokenResponseFilterSensitiveLog = GetFederationTokenResponseFilterSensitiveLog; -const GetSessionTokenResponseFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Credentials && { Credentials: (0, exports.CredentialsFilterSensitiveLog)(obj.Credentials) }), -}); -exports.GetSessionTokenResponseFilterSensitiveLog = GetSessionTokenResponseFilterSensitiveLog; diff --git a/node_modules/@aws-sdk/client-sts/dist-cjs/protocols/Aws_query.js b/node_modules/@aws-sdk/client-sts/dist-cjs/protocols/Aws_query.js deleted file mode 100644 index 6d06bf6a..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-cjs/protocols/Aws_query.js +++ /dev/null @@ -1,1028 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.de_GetSessionTokenCommand = exports.de_GetFederationTokenCommand = exports.de_GetCallerIdentityCommand = exports.de_GetAccessKeyInfoCommand = exports.de_DecodeAuthorizationMessageCommand = exports.de_AssumeRoleWithWebIdentityCommand = exports.de_AssumeRoleWithSAMLCommand = exports.de_AssumeRoleCommand = exports.se_GetSessionTokenCommand = exports.se_GetFederationTokenCommand = exports.se_GetCallerIdentityCommand = exports.se_GetAccessKeyInfoCommand = exports.se_DecodeAuthorizationMessageCommand = exports.se_AssumeRoleWithWebIdentityCommand = exports.se_AssumeRoleWithSAMLCommand = exports.se_AssumeRoleCommand = void 0; -const protocol_http_1 = require("@smithy/protocol-http"); -const smithy_client_1 = require("@smithy/smithy-client"); -const fast_xml_parser_1 = require("fast-xml-parser"); -const models_0_1 = require("../models/models_0"); -const STSServiceException_1 = require("../models/STSServiceException"); -const se_AssumeRoleCommand = async (input, context) => { - const headers = SHARED_HEADERS; - let body; - body = buildFormUrlencodedString({ - ...se_AssumeRoleRequest(input, context), - Action: "AssumeRole", - Version: "2011-06-15", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_AssumeRoleCommand = se_AssumeRoleCommand; -const se_AssumeRoleWithSAMLCommand = async (input, context) => { - const headers = SHARED_HEADERS; - let body; - body = buildFormUrlencodedString({ - ...se_AssumeRoleWithSAMLRequest(input, context), - Action: "AssumeRoleWithSAML", - Version: "2011-06-15", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_AssumeRoleWithSAMLCommand = se_AssumeRoleWithSAMLCommand; -const se_AssumeRoleWithWebIdentityCommand = async (input, context) => { - const headers = SHARED_HEADERS; - let body; - body = buildFormUrlencodedString({ - ...se_AssumeRoleWithWebIdentityRequest(input, context), - Action: "AssumeRoleWithWebIdentity", - Version: "2011-06-15", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_AssumeRoleWithWebIdentityCommand = se_AssumeRoleWithWebIdentityCommand; -const se_DecodeAuthorizationMessageCommand = async (input, context) => { - const headers = SHARED_HEADERS; - let body; - body = buildFormUrlencodedString({ - ...se_DecodeAuthorizationMessageRequest(input, context), - Action: "DecodeAuthorizationMessage", - Version: "2011-06-15", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_DecodeAuthorizationMessageCommand = se_DecodeAuthorizationMessageCommand; -const se_GetAccessKeyInfoCommand = async (input, context) => { - const headers = SHARED_HEADERS; - let body; - body = buildFormUrlencodedString({ - ...se_GetAccessKeyInfoRequest(input, context), - Action: "GetAccessKeyInfo", - Version: "2011-06-15", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_GetAccessKeyInfoCommand = se_GetAccessKeyInfoCommand; -const se_GetCallerIdentityCommand = async (input, context) => { - const headers = SHARED_HEADERS; - let body; - body = buildFormUrlencodedString({ - ...se_GetCallerIdentityRequest(input, context), - Action: "GetCallerIdentity", - Version: "2011-06-15", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_GetCallerIdentityCommand = se_GetCallerIdentityCommand; -const se_GetFederationTokenCommand = async (input, context) => { - const headers = SHARED_HEADERS; - let body; - body = buildFormUrlencodedString({ - ...se_GetFederationTokenRequest(input, context), - Action: "GetFederationToken", - Version: "2011-06-15", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_GetFederationTokenCommand = se_GetFederationTokenCommand; -const se_GetSessionTokenCommand = async (input, context) => { - const headers = SHARED_HEADERS; - let body; - body = buildFormUrlencodedString({ - ...se_GetSessionTokenRequest(input, context), - Action: "GetSessionToken", - Version: "2011-06-15", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -exports.se_GetSessionTokenCommand = se_GetSessionTokenCommand; -const de_AssumeRoleCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_AssumeRoleCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_AssumeRoleResponse(data.AssumeRoleResult, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_AssumeRoleCommand = de_AssumeRoleCommand; -const de_AssumeRoleCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "ExpiredTokenException": - case "com.amazonaws.sts#ExpiredTokenException": - throw await de_ExpiredTokenExceptionRes(parsedOutput, context); - case "MalformedPolicyDocument": - case "com.amazonaws.sts#MalformedPolicyDocumentException": - throw await de_MalformedPolicyDocumentExceptionRes(parsedOutput, context); - case "PackedPolicyTooLarge": - case "com.amazonaws.sts#PackedPolicyTooLargeException": - throw await de_PackedPolicyTooLargeExceptionRes(parsedOutput, context); - case "RegionDisabledException": - case "com.amazonaws.sts#RegionDisabledException": - throw await de_RegionDisabledExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody: parsedBody.Error, - errorCode, - }); - } -}; -const de_AssumeRoleWithSAMLCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_AssumeRoleWithSAMLCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_AssumeRoleWithSAMLResponse(data.AssumeRoleWithSAMLResult, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_AssumeRoleWithSAMLCommand = de_AssumeRoleWithSAMLCommand; -const de_AssumeRoleWithSAMLCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "ExpiredTokenException": - case "com.amazonaws.sts#ExpiredTokenException": - throw await de_ExpiredTokenExceptionRes(parsedOutput, context); - case "IDPRejectedClaim": - case "com.amazonaws.sts#IDPRejectedClaimException": - throw await de_IDPRejectedClaimExceptionRes(parsedOutput, context); - case "InvalidIdentityToken": - case "com.amazonaws.sts#InvalidIdentityTokenException": - throw await de_InvalidIdentityTokenExceptionRes(parsedOutput, context); - case "MalformedPolicyDocument": - case "com.amazonaws.sts#MalformedPolicyDocumentException": - throw await de_MalformedPolicyDocumentExceptionRes(parsedOutput, context); - case "PackedPolicyTooLarge": - case "com.amazonaws.sts#PackedPolicyTooLargeException": - throw await de_PackedPolicyTooLargeExceptionRes(parsedOutput, context); - case "RegionDisabledException": - case "com.amazonaws.sts#RegionDisabledException": - throw await de_RegionDisabledExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody: parsedBody.Error, - errorCode, - }); - } -}; -const de_AssumeRoleWithWebIdentityCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_AssumeRoleWithWebIdentityCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_AssumeRoleWithWebIdentityResponse(data.AssumeRoleWithWebIdentityResult, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_AssumeRoleWithWebIdentityCommand = de_AssumeRoleWithWebIdentityCommand; -const de_AssumeRoleWithWebIdentityCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "ExpiredTokenException": - case "com.amazonaws.sts#ExpiredTokenException": - throw await de_ExpiredTokenExceptionRes(parsedOutput, context); - case "IDPCommunicationError": - case "com.amazonaws.sts#IDPCommunicationErrorException": - throw await de_IDPCommunicationErrorExceptionRes(parsedOutput, context); - case "IDPRejectedClaim": - case "com.amazonaws.sts#IDPRejectedClaimException": - throw await de_IDPRejectedClaimExceptionRes(parsedOutput, context); - case "InvalidIdentityToken": - case "com.amazonaws.sts#InvalidIdentityTokenException": - throw await de_InvalidIdentityTokenExceptionRes(parsedOutput, context); - case "MalformedPolicyDocument": - case "com.amazonaws.sts#MalformedPolicyDocumentException": - throw await de_MalformedPolicyDocumentExceptionRes(parsedOutput, context); - case "PackedPolicyTooLarge": - case "com.amazonaws.sts#PackedPolicyTooLargeException": - throw await de_PackedPolicyTooLargeExceptionRes(parsedOutput, context); - case "RegionDisabledException": - case "com.amazonaws.sts#RegionDisabledException": - throw await de_RegionDisabledExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody: parsedBody.Error, - errorCode, - }); - } -}; -const de_DecodeAuthorizationMessageCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DecodeAuthorizationMessageCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_DecodeAuthorizationMessageResponse(data.DecodeAuthorizationMessageResult, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_DecodeAuthorizationMessageCommand = de_DecodeAuthorizationMessageCommand; -const de_DecodeAuthorizationMessageCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidAuthorizationMessageException": - case "com.amazonaws.sts#InvalidAuthorizationMessageException": - throw await de_InvalidAuthorizationMessageExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody: parsedBody.Error, - errorCode, - }); - } -}; -const de_GetAccessKeyInfoCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_GetAccessKeyInfoCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_GetAccessKeyInfoResponse(data.GetAccessKeyInfoResult, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_GetAccessKeyInfoCommand = de_GetAccessKeyInfoCommand; -const de_GetAccessKeyInfoCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody: parsedBody.Error, - errorCode, - }); -}; -const de_GetCallerIdentityCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_GetCallerIdentityCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_GetCallerIdentityResponse(data.GetCallerIdentityResult, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_GetCallerIdentityCommand = de_GetCallerIdentityCommand; -const de_GetCallerIdentityCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody: parsedBody.Error, - errorCode, - }); -}; -const de_GetFederationTokenCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_GetFederationTokenCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_GetFederationTokenResponse(data.GetFederationTokenResult, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_GetFederationTokenCommand = de_GetFederationTokenCommand; -const de_GetFederationTokenCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "MalformedPolicyDocument": - case "com.amazonaws.sts#MalformedPolicyDocumentException": - throw await de_MalformedPolicyDocumentExceptionRes(parsedOutput, context); - case "PackedPolicyTooLarge": - case "com.amazonaws.sts#PackedPolicyTooLargeException": - throw await de_PackedPolicyTooLargeExceptionRes(parsedOutput, context); - case "RegionDisabledException": - case "com.amazonaws.sts#RegionDisabledException": - throw await de_RegionDisabledExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody: parsedBody.Error, - errorCode, - }); - } -}; -const de_GetSessionTokenCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_GetSessionTokenCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_GetSessionTokenResponse(data.GetSessionTokenResult, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -exports.de_GetSessionTokenCommand = de_GetSessionTokenCommand; -const de_GetSessionTokenCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "RegionDisabledException": - case "com.amazonaws.sts#RegionDisabledException": - throw await de_RegionDisabledExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody: parsedBody.Error, - errorCode, - }); - } -}; -const de_ExpiredTokenExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = de_ExpiredTokenException(body.Error, context); - const exception = new models_0_1.ExpiredTokenException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_IDPCommunicationErrorExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = de_IDPCommunicationErrorException(body.Error, context); - const exception = new models_0_1.IDPCommunicationErrorException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_IDPRejectedClaimExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = de_IDPRejectedClaimException(body.Error, context); - const exception = new models_0_1.IDPRejectedClaimException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_InvalidAuthorizationMessageExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = de_InvalidAuthorizationMessageException(body.Error, context); - const exception = new models_0_1.InvalidAuthorizationMessageException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_InvalidIdentityTokenExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = de_InvalidIdentityTokenException(body.Error, context); - const exception = new models_0_1.InvalidIdentityTokenException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_MalformedPolicyDocumentExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = de_MalformedPolicyDocumentException(body.Error, context); - const exception = new models_0_1.MalformedPolicyDocumentException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_PackedPolicyTooLargeExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = de_PackedPolicyTooLargeException(body.Error, context); - const exception = new models_0_1.PackedPolicyTooLargeException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const de_RegionDisabledExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = de_RegionDisabledException(body.Error, context); - const exception = new models_0_1.RegionDisabledException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return (0, smithy_client_1.decorateServiceException)(exception, body); -}; -const se_AssumeRoleRequest = (input, context) => { - const entries = {}; - if (input.RoleArn != null) { - entries["RoleArn"] = input.RoleArn; - } - if (input.RoleSessionName != null) { - entries["RoleSessionName"] = input.RoleSessionName; - } - if (input.PolicyArns != null) { - const memberEntries = se_policyDescriptorListType(input.PolicyArns, context); - if (input.PolicyArns?.length === 0) { - entries.PolicyArns = []; - } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `PolicyArns.${key}`; - entries[loc] = value; - }); - } - if (input.Policy != null) { - entries["Policy"] = input.Policy; - } - if (input.DurationSeconds != null) { - entries["DurationSeconds"] = input.DurationSeconds; - } - if (input.Tags != null) { - const memberEntries = se_tagListType(input.Tags, context); - if (input.Tags?.length === 0) { - entries.Tags = []; - } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `Tags.${key}`; - entries[loc] = value; - }); - } - if (input.TransitiveTagKeys != null) { - const memberEntries = se_tagKeyListType(input.TransitiveTagKeys, context); - if (input.TransitiveTagKeys?.length === 0) { - entries.TransitiveTagKeys = []; - } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `TransitiveTagKeys.${key}`; - entries[loc] = value; - }); - } - if (input.ExternalId != null) { - entries["ExternalId"] = input.ExternalId; - } - if (input.SerialNumber != null) { - entries["SerialNumber"] = input.SerialNumber; - } - if (input.TokenCode != null) { - entries["TokenCode"] = input.TokenCode; - } - if (input.SourceIdentity != null) { - entries["SourceIdentity"] = input.SourceIdentity; - } - if (input.ProvidedContexts != null) { - const memberEntries = se_ProvidedContextsListType(input.ProvidedContexts, context); - if (input.ProvidedContexts?.length === 0) { - entries.ProvidedContexts = []; - } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `ProvidedContexts.${key}`; - entries[loc] = value; - }); - } - return entries; -}; -const se_AssumeRoleWithSAMLRequest = (input, context) => { - const entries = {}; - if (input.RoleArn != null) { - entries["RoleArn"] = input.RoleArn; - } - if (input.PrincipalArn != null) { - entries["PrincipalArn"] = input.PrincipalArn; - } - if (input.SAMLAssertion != null) { - entries["SAMLAssertion"] = input.SAMLAssertion; - } - if (input.PolicyArns != null) { - const memberEntries = se_policyDescriptorListType(input.PolicyArns, context); - if (input.PolicyArns?.length === 0) { - entries.PolicyArns = []; - } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `PolicyArns.${key}`; - entries[loc] = value; - }); - } - if (input.Policy != null) { - entries["Policy"] = input.Policy; - } - if (input.DurationSeconds != null) { - entries["DurationSeconds"] = input.DurationSeconds; - } - return entries; -}; -const se_AssumeRoleWithWebIdentityRequest = (input, context) => { - const entries = {}; - if (input.RoleArn != null) { - entries["RoleArn"] = input.RoleArn; - } - if (input.RoleSessionName != null) { - entries["RoleSessionName"] = input.RoleSessionName; - } - if (input.WebIdentityToken != null) { - entries["WebIdentityToken"] = input.WebIdentityToken; - } - if (input.ProviderId != null) { - entries["ProviderId"] = input.ProviderId; - } - if (input.PolicyArns != null) { - const memberEntries = se_policyDescriptorListType(input.PolicyArns, context); - if (input.PolicyArns?.length === 0) { - entries.PolicyArns = []; - } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `PolicyArns.${key}`; - entries[loc] = value; - }); - } - if (input.Policy != null) { - entries["Policy"] = input.Policy; - } - if (input.DurationSeconds != null) { - entries["DurationSeconds"] = input.DurationSeconds; - } - return entries; -}; -const se_DecodeAuthorizationMessageRequest = (input, context) => { - const entries = {}; - if (input.EncodedMessage != null) { - entries["EncodedMessage"] = input.EncodedMessage; - } - return entries; -}; -const se_GetAccessKeyInfoRequest = (input, context) => { - const entries = {}; - if (input.AccessKeyId != null) { - entries["AccessKeyId"] = input.AccessKeyId; - } - return entries; -}; -const se_GetCallerIdentityRequest = (input, context) => { - const entries = {}; - return entries; -}; -const se_GetFederationTokenRequest = (input, context) => { - const entries = {}; - if (input.Name != null) { - entries["Name"] = input.Name; - } - if (input.Policy != null) { - entries["Policy"] = input.Policy; - } - if (input.PolicyArns != null) { - const memberEntries = se_policyDescriptorListType(input.PolicyArns, context); - if (input.PolicyArns?.length === 0) { - entries.PolicyArns = []; - } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `PolicyArns.${key}`; - entries[loc] = value; - }); - } - if (input.DurationSeconds != null) { - entries["DurationSeconds"] = input.DurationSeconds; - } - if (input.Tags != null) { - const memberEntries = se_tagListType(input.Tags, context); - if (input.Tags?.length === 0) { - entries.Tags = []; - } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `Tags.${key}`; - entries[loc] = value; - }); - } - return entries; -}; -const se_GetSessionTokenRequest = (input, context) => { - const entries = {}; - if (input.DurationSeconds != null) { - entries["DurationSeconds"] = input.DurationSeconds; - } - if (input.SerialNumber != null) { - entries["SerialNumber"] = input.SerialNumber; - } - if (input.TokenCode != null) { - entries["TokenCode"] = input.TokenCode; - } - return entries; -}; -const se_policyDescriptorListType = (input, context) => { - const entries = {}; - let counter = 1; - for (const entry of input) { - if (entry === null) { - continue; - } - const memberEntries = se_PolicyDescriptorType(entry, context); - Object.entries(memberEntries).forEach(([key, value]) => { - entries[`member.${counter}.${key}`] = value; - }); - counter++; - } - return entries; -}; -const se_PolicyDescriptorType = (input, context) => { - const entries = {}; - if (input.arn != null) { - entries["arn"] = input.arn; - } - return entries; -}; -const se_ProvidedContext = (input, context) => { - const entries = {}; - if (input.ProviderArn != null) { - entries["ProviderArn"] = input.ProviderArn; - } - if (input.ContextAssertion != null) { - entries["ContextAssertion"] = input.ContextAssertion; - } - return entries; -}; -const se_ProvidedContextsListType = (input, context) => { - const entries = {}; - let counter = 1; - for (const entry of input) { - if (entry === null) { - continue; - } - const memberEntries = se_ProvidedContext(entry, context); - Object.entries(memberEntries).forEach(([key, value]) => { - entries[`member.${counter}.${key}`] = value; - }); - counter++; - } - return entries; -}; -const se_Tag = (input, context) => { - const entries = {}; - if (input.Key != null) { - entries["Key"] = input.Key; - } - if (input.Value != null) { - entries["Value"] = input.Value; - } - return entries; -}; -const se_tagKeyListType = (input, context) => { - const entries = {}; - let counter = 1; - for (const entry of input) { - if (entry === null) { - continue; - } - entries[`member.${counter}`] = entry; - counter++; - } - return entries; -}; -const se_tagListType = (input, context) => { - const entries = {}; - let counter = 1; - for (const entry of input) { - if (entry === null) { - continue; - } - const memberEntries = se_Tag(entry, context); - Object.entries(memberEntries).forEach(([key, value]) => { - entries[`member.${counter}.${key}`] = value; - }); - counter++; - } - return entries; -}; -const de_AssumedRoleUser = (output, context) => { - const contents = {}; - if (output["AssumedRoleId"] !== undefined) { - contents.AssumedRoleId = (0, smithy_client_1.expectString)(output["AssumedRoleId"]); - } - if (output["Arn"] !== undefined) { - contents.Arn = (0, smithy_client_1.expectString)(output["Arn"]); - } - return contents; -}; -const de_AssumeRoleResponse = (output, context) => { - const contents = {}; - if (output["Credentials"] !== undefined) { - contents.Credentials = de_Credentials(output["Credentials"], context); - } - if (output["AssumedRoleUser"] !== undefined) { - contents.AssumedRoleUser = de_AssumedRoleUser(output["AssumedRoleUser"], context); - } - if (output["PackedPolicySize"] !== undefined) { - contents.PackedPolicySize = (0, smithy_client_1.strictParseInt32)(output["PackedPolicySize"]); - } - if (output["SourceIdentity"] !== undefined) { - contents.SourceIdentity = (0, smithy_client_1.expectString)(output["SourceIdentity"]); - } - return contents; -}; -const de_AssumeRoleWithSAMLResponse = (output, context) => { - const contents = {}; - if (output["Credentials"] !== undefined) { - contents.Credentials = de_Credentials(output["Credentials"], context); - } - if (output["AssumedRoleUser"] !== undefined) { - contents.AssumedRoleUser = de_AssumedRoleUser(output["AssumedRoleUser"], context); - } - if (output["PackedPolicySize"] !== undefined) { - contents.PackedPolicySize = (0, smithy_client_1.strictParseInt32)(output["PackedPolicySize"]); - } - if (output["Subject"] !== undefined) { - contents.Subject = (0, smithy_client_1.expectString)(output["Subject"]); - } - if (output["SubjectType"] !== undefined) { - contents.SubjectType = (0, smithy_client_1.expectString)(output["SubjectType"]); - } - if (output["Issuer"] !== undefined) { - contents.Issuer = (0, smithy_client_1.expectString)(output["Issuer"]); - } - if (output["Audience"] !== undefined) { - contents.Audience = (0, smithy_client_1.expectString)(output["Audience"]); - } - if (output["NameQualifier"] !== undefined) { - contents.NameQualifier = (0, smithy_client_1.expectString)(output["NameQualifier"]); - } - if (output["SourceIdentity"] !== undefined) { - contents.SourceIdentity = (0, smithy_client_1.expectString)(output["SourceIdentity"]); - } - return contents; -}; -const de_AssumeRoleWithWebIdentityResponse = (output, context) => { - const contents = {}; - if (output["Credentials"] !== undefined) { - contents.Credentials = de_Credentials(output["Credentials"], context); - } - if (output["SubjectFromWebIdentityToken"] !== undefined) { - contents.SubjectFromWebIdentityToken = (0, smithy_client_1.expectString)(output["SubjectFromWebIdentityToken"]); - } - if (output["AssumedRoleUser"] !== undefined) { - contents.AssumedRoleUser = de_AssumedRoleUser(output["AssumedRoleUser"], context); - } - if (output["PackedPolicySize"] !== undefined) { - contents.PackedPolicySize = (0, smithy_client_1.strictParseInt32)(output["PackedPolicySize"]); - } - if (output["Provider"] !== undefined) { - contents.Provider = (0, smithy_client_1.expectString)(output["Provider"]); - } - if (output["Audience"] !== undefined) { - contents.Audience = (0, smithy_client_1.expectString)(output["Audience"]); - } - if (output["SourceIdentity"] !== undefined) { - contents.SourceIdentity = (0, smithy_client_1.expectString)(output["SourceIdentity"]); - } - return contents; -}; -const de_Credentials = (output, context) => { - const contents = {}; - if (output["AccessKeyId"] !== undefined) { - contents.AccessKeyId = (0, smithy_client_1.expectString)(output["AccessKeyId"]); - } - if (output["SecretAccessKey"] !== undefined) { - contents.SecretAccessKey = (0, smithy_client_1.expectString)(output["SecretAccessKey"]); - } - if (output["SessionToken"] !== undefined) { - contents.SessionToken = (0, smithy_client_1.expectString)(output["SessionToken"]); - } - if (output["Expiration"] !== undefined) { - contents.Expiration = (0, smithy_client_1.expectNonNull)((0, smithy_client_1.parseRfc3339DateTimeWithOffset)(output["Expiration"])); - } - return contents; -}; -const de_DecodeAuthorizationMessageResponse = (output, context) => { - const contents = {}; - if (output["DecodedMessage"] !== undefined) { - contents.DecodedMessage = (0, smithy_client_1.expectString)(output["DecodedMessage"]); - } - return contents; -}; -const de_ExpiredTokenException = (output, context) => { - const contents = {}; - if (output["message"] !== undefined) { - contents.message = (0, smithy_client_1.expectString)(output["message"]); - } - return contents; -}; -const de_FederatedUser = (output, context) => { - const contents = {}; - if (output["FederatedUserId"] !== undefined) { - contents.FederatedUserId = (0, smithy_client_1.expectString)(output["FederatedUserId"]); - } - if (output["Arn"] !== undefined) { - contents.Arn = (0, smithy_client_1.expectString)(output["Arn"]); - } - return contents; -}; -const de_GetAccessKeyInfoResponse = (output, context) => { - const contents = {}; - if (output["Account"] !== undefined) { - contents.Account = (0, smithy_client_1.expectString)(output["Account"]); - } - return contents; -}; -const de_GetCallerIdentityResponse = (output, context) => { - const contents = {}; - if (output["UserId"] !== undefined) { - contents.UserId = (0, smithy_client_1.expectString)(output["UserId"]); - } - if (output["Account"] !== undefined) { - contents.Account = (0, smithy_client_1.expectString)(output["Account"]); - } - if (output["Arn"] !== undefined) { - contents.Arn = (0, smithy_client_1.expectString)(output["Arn"]); - } - return contents; -}; -const de_GetFederationTokenResponse = (output, context) => { - const contents = {}; - if (output["Credentials"] !== undefined) { - contents.Credentials = de_Credentials(output["Credentials"], context); - } - if (output["FederatedUser"] !== undefined) { - contents.FederatedUser = de_FederatedUser(output["FederatedUser"], context); - } - if (output["PackedPolicySize"] !== undefined) { - contents.PackedPolicySize = (0, smithy_client_1.strictParseInt32)(output["PackedPolicySize"]); - } - return contents; -}; -const de_GetSessionTokenResponse = (output, context) => { - const contents = {}; - if (output["Credentials"] !== undefined) { - contents.Credentials = de_Credentials(output["Credentials"], context); - } - return contents; -}; -const de_IDPCommunicationErrorException = (output, context) => { - const contents = {}; - if (output["message"] !== undefined) { - contents.message = (0, smithy_client_1.expectString)(output["message"]); - } - return contents; -}; -const de_IDPRejectedClaimException = (output, context) => { - const contents = {}; - if (output["message"] !== undefined) { - contents.message = (0, smithy_client_1.expectString)(output["message"]); - } - return contents; -}; -const de_InvalidAuthorizationMessageException = (output, context) => { - const contents = {}; - if (output["message"] !== undefined) { - contents.message = (0, smithy_client_1.expectString)(output["message"]); - } - return contents; -}; -const de_InvalidIdentityTokenException = (output, context) => { - const contents = {}; - if (output["message"] !== undefined) { - contents.message = (0, smithy_client_1.expectString)(output["message"]); - } - return contents; -}; -const de_MalformedPolicyDocumentException = (output, context) => { - const contents = {}; - if (output["message"] !== undefined) { - contents.message = (0, smithy_client_1.expectString)(output["message"]); - } - return contents; -}; -const de_PackedPolicyTooLargeException = (output, context) => { - const contents = {}; - if (output["message"] !== undefined) { - contents.message = (0, smithy_client_1.expectString)(output["message"]); - } - return contents; -}; -const de_RegionDisabledException = (output, context) => { - const contents = {}; - if (output["message"] !== undefined) { - contents.message = (0, smithy_client_1.expectString)(output["message"]); - } - return contents; -}; -const deserializeMetadata = (output) => ({ - httpStatusCode: output.statusCode, - requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"], - extendedRequestId: output.headers["x-amz-id-2"], - cfId: output.headers["x-amz-cf-id"], -}); -const collectBodyString = (streamBody, context) => (0, smithy_client_1.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)); -const throwDefaultError = (0, smithy_client_1.withBaseException)(STSServiceException_1.STSServiceException); -const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); - const contents = { - protocol, - hostname, - port, - method: "POST", - path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path, - headers, - }; - if (resolvedHostname !== undefined) { - contents.hostname = resolvedHostname; - } - if (body !== undefined) { - contents.body = body; - } - return new protocol_http_1.HttpRequest(contents); -}; -const SHARED_HEADERS = { - "content-type": "application/x-www-form-urlencoded", -}; -const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => { - if (encoded.length) { - const parser = new fast_xml_parser_1.XMLParser({ - attributeNamePrefix: "", - htmlEntities: true, - ignoreAttributes: false, - ignoreDeclaration: true, - parseTagValue: false, - trimValues: false, - tagValueProcessor: (_, val) => (val.trim() === "" && val.includes("\n") ? "" : undefined), - }); - parser.addEntity("#xD", "\r"); - parser.addEntity("#10", "\n"); - const parsedObj = parser.parse(encoded); - const textNodeName = "#text"; - const key = Object.keys(parsedObj)[0]; - const parsedObjToReturn = parsedObj[key]; - if (parsedObjToReturn[textNodeName]) { - parsedObjToReturn[key] = parsedObjToReturn[textNodeName]; - delete parsedObjToReturn[textNodeName]; - } - return (0, smithy_client_1.getValueFromTextNode)(parsedObjToReturn); - } - return {}; -}); -const parseErrorBody = async (errorBody, context) => { - const value = await parseBody(errorBody, context); - if (value.Error) { - value.Error.message = value.Error.message ?? value.Error.Message; - } - return value; -}; -const buildFormUrlencodedString = (formEntries) => Object.entries(formEntries) - .map(([key, value]) => (0, smithy_client_1.extendedEncodeURIComponent)(key) + "=" + (0, smithy_client_1.extendedEncodeURIComponent)(value)) - .join("&"); -const loadQueryErrorCode = (output, data) => { - if (data.Error?.Code !== undefined) { - return data.Error.Code; - } - if (output.statusCode == 404) { - return "NotFound"; - } -}; diff --git a/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.browser.js b/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.browser.js deleted file mode 100644 index 1dbf1cc6..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.browser.js +++ /dev/null @@ -1,39 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getRuntimeConfig = void 0; -const tslib_1 = require("tslib"); -const package_json_1 = tslib_1.__importDefault(require("../package.json")); -const sha256_browser_1 = require("@aws-crypto/sha256-browser"); -const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser"); -const config_resolver_1 = require("@smithy/config-resolver"); -const fetch_http_handler_1 = require("@smithy/fetch-http-handler"); -const invalid_dependency_1 = require("@smithy/invalid-dependency"); -const util_body_length_browser_1 = require("@smithy/util-body-length-browser"); -const util_retry_1 = require("@smithy/util-retry"); -const runtimeConfig_shared_1 = require("./runtimeConfig.shared"); -const smithy_client_1 = require("@smithy/smithy-client"); -const util_defaults_mode_browser_1 = require("@smithy/util-defaults-mode-browser"); -const getRuntimeConfig = (config) => { - const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config); - const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode); - const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config); - return { - ...clientSharedValues, - ...config, - runtime: "browser", - defaultsMode, - bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_browser_1.calculateBodyLength, - credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))), - defaultUserAgentProvider: config?.defaultUserAgentProvider ?? - (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }), - maxAttempts: config?.maxAttempts ?? util_retry_1.DEFAULT_MAX_ATTEMPTS, - region: config?.region ?? (0, invalid_dependency_1.invalidProvider)("Region is missing"), - requestHandler: config?.requestHandler ?? new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider), - retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE), - sha256: config?.sha256 ?? sha256_browser_1.Sha256, - streamCollector: config?.streamCollector ?? fetch_http_handler_1.streamCollector, - useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_DUALSTACK_ENDPOINT)), - useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(config_resolver_1.DEFAULT_USE_FIPS_ENDPOINT)), - }; -}; -exports.getRuntimeConfig = getRuntimeConfig; diff --git a/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js b/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js deleted file mode 100644 index be4fad29..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.js +++ /dev/null @@ -1,50 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getRuntimeConfig = void 0; -const tslib_1 = require("tslib"); -const package_json_1 = tslib_1.__importDefault(require("../package.json")); -const defaultStsRoleAssumers_1 = require("./defaultStsRoleAssumers"); -const core_1 = require("@aws-sdk/core"); -const credential_provider_node_1 = require("@aws-sdk/credential-provider-node"); -const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node"); -const config_resolver_1 = require("@smithy/config-resolver"); -const hash_node_1 = require("@smithy/hash-node"); -const middleware_retry_1 = require("@smithy/middleware-retry"); -const node_config_provider_1 = require("@smithy/node-config-provider"); -const node_http_handler_1 = require("@smithy/node-http-handler"); -const util_body_length_node_1 = require("@smithy/util-body-length-node"); -const util_retry_1 = require("@smithy/util-retry"); -const runtimeConfig_shared_1 = require("./runtimeConfig.shared"); -const smithy_client_1 = require("@smithy/smithy-client"); -const util_defaults_mode_node_1 = require("@smithy/util-defaults-mode-node"); -const smithy_client_2 = require("@smithy/smithy-client"); -const getRuntimeConfig = (config) => { - (0, smithy_client_2.emitWarningIfUnsupportedVersion)(process.version); - const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config); - const defaultConfigProvider = () => defaultsMode().then(smithy_client_1.loadConfigsForDefaultMode); - const clientSharedValues = (0, runtimeConfig_shared_1.getRuntimeConfig)(config); - (0, core_1.emitWarningIfUnsupportedVersion)(process.version); - return { - ...clientSharedValues, - ...config, - runtime: "node", - defaultsMode, - bodyLengthChecker: config?.bodyLengthChecker ?? util_body_length_node_1.calculateBodyLength, - credentialDefaultProvider: config?.credentialDefaultProvider ?? (0, defaultStsRoleAssumers_1.decorateDefaultCredentialProvider)(credential_provider_node_1.defaultProvider), - defaultUserAgentProvider: config?.defaultUserAgentProvider ?? - (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_json_1.default.version }), - maxAttempts: config?.maxAttempts ?? (0, node_config_provider_1.loadConfig)(middleware_retry_1.NODE_MAX_ATTEMPT_CONFIG_OPTIONS), - region: config?.region ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS, config_resolver_1.NODE_REGION_CONFIG_FILE_OPTIONS), - requestHandler: config?.requestHandler ?? new node_http_handler_1.NodeHttpHandler(defaultConfigProvider), - retryMode: config?.retryMode ?? - (0, node_config_provider_1.loadConfig)({ - ...middleware_retry_1.NODE_RETRY_MODE_CONFIG_OPTIONS, - default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE, - }), - sha256: config?.sha256 ?? hash_node_1.Hash.bind(null, "sha256"), - streamCollector: config?.streamCollector ?? node_http_handler_1.streamCollector, - useDualstackEndpoint: config?.useDualstackEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), - useFipsEndpoint: config?.useFipsEndpoint ?? (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), - }; -}; -exports.getRuntimeConfig = getRuntimeConfig; diff --git a/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.native.js b/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.native.js deleted file mode 100644 index 34c5f8ec..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.native.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getRuntimeConfig = void 0; -const sha256_js_1 = require("@aws-crypto/sha256-js"); -const runtimeConfig_browser_1 = require("./runtimeConfig.browser"); -const getRuntimeConfig = (config) => { - const browserDefaults = (0, runtimeConfig_browser_1.getRuntimeConfig)(config); - return { - ...browserDefaults, - ...config, - runtime: "react-native", - sha256: config?.sha256 ?? sha256_js_1.Sha256, - }; -}; -exports.getRuntimeConfig = getRuntimeConfig; diff --git a/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.shared.js b/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.shared.js deleted file mode 100644 index 62775c10..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeConfig.shared.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getRuntimeConfig = void 0; -const smithy_client_1 = require("@smithy/smithy-client"); -const url_parser_1 = require("@smithy/url-parser"); -const util_base64_1 = require("@smithy/util-base64"); -const util_utf8_1 = require("@smithy/util-utf8"); -const endpointResolver_1 = require("./endpoint/endpointResolver"); -const getRuntimeConfig = (config) => { - return { - apiVersion: "2011-06-15", - base64Decoder: config?.base64Decoder ?? util_base64_1.fromBase64, - base64Encoder: config?.base64Encoder ?? util_base64_1.toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? endpointResolver_1.defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new smithy_client_1.NoOpLogger(), - serviceId: config?.serviceId ?? "STS", - urlParser: config?.urlParser ?? url_parser_1.parseUrl, - utf8Decoder: config?.utf8Decoder ?? util_utf8_1.fromUtf8, - utf8Encoder: config?.utf8Encoder ?? util_utf8_1.toUtf8, - }; -}; -exports.getRuntimeConfig = getRuntimeConfig; diff --git a/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeExtensions.js b/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeExtensions.js deleted file mode 100644 index 23c25989..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-cjs/runtimeExtensions.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.resolveRuntimeExtensions = void 0; -const region_config_resolver_1 = require("@aws-sdk/region-config-resolver"); -const protocol_http_1 = require("@smithy/protocol-http"); -const smithy_client_1 = require("@smithy/smithy-client"); -const asPartial = (t) => t; -const resolveRuntimeExtensions = (runtimeConfig, extensions) => { - const extensionConfiguration = { - ...asPartial((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig)), - ...asPartial((0, smithy_client_1.getDefaultExtensionConfiguration)(runtimeConfig)), - ...asPartial((0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig)), - }; - extensions.forEach((extension) => extension.configure(extensionConfiguration)); - return { - ...runtimeConfig, - ...(0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), - ...(0, smithy_client_1.resolveDefaultRuntimeConfig)(extensionConfiguration), - ...(0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), - }; -}; -exports.resolveRuntimeExtensions = resolveRuntimeExtensions; diff --git a/node_modules/@aws-sdk/client-sts/dist-es/STS.js b/node_modules/@aws-sdk/client-sts/dist-es/STS.js deleted file mode 100644 index 67ad5c1f..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-es/STS.js +++ /dev/null @@ -1,23 +0,0 @@ -import { createAggregatedClient } from "@smithy/smithy-client"; -import { AssumeRoleCommand } from "./commands/AssumeRoleCommand"; -import { AssumeRoleWithSAMLCommand, } from "./commands/AssumeRoleWithSAMLCommand"; -import { AssumeRoleWithWebIdentityCommand, } from "./commands/AssumeRoleWithWebIdentityCommand"; -import { DecodeAuthorizationMessageCommand, } from "./commands/DecodeAuthorizationMessageCommand"; -import { GetAccessKeyInfoCommand, } from "./commands/GetAccessKeyInfoCommand"; -import { GetCallerIdentityCommand, } from "./commands/GetCallerIdentityCommand"; -import { GetFederationTokenCommand, } from "./commands/GetFederationTokenCommand"; -import { GetSessionTokenCommand, } from "./commands/GetSessionTokenCommand"; -import { STSClient } from "./STSClient"; -const commands = { - AssumeRoleCommand, - AssumeRoleWithSAMLCommand, - AssumeRoleWithWebIdentityCommand, - DecodeAuthorizationMessageCommand, - GetAccessKeyInfoCommand, - GetCallerIdentityCommand, - GetFederationTokenCommand, - GetSessionTokenCommand, -}; -export class STS extends STSClient { -} -createAggregatedClient(commands, STS); diff --git a/node_modules/@aws-sdk/client-sts/dist-es/STSClient.js b/node_modules/@aws-sdk/client-sts/dist-es/STSClient.js deleted file mode 100644 index 67d8ac50..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-es/STSClient.js +++ /dev/null @@ -1,38 +0,0 @@ -import { getHostHeaderPlugin, resolveHostHeaderConfig, } from "@aws-sdk/middleware-host-header"; -import { getLoggerPlugin } from "@aws-sdk/middleware-logger"; -import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection"; -import { resolveStsAuthConfig } from "@aws-sdk/middleware-sdk-sts"; -import { getUserAgentPlugin, resolveUserAgentConfig, } from "@aws-sdk/middleware-user-agent"; -import { resolveRegionConfig } from "@smithy/config-resolver"; -import { getContentLengthPlugin } from "@smithy/middleware-content-length"; -import { resolveEndpointConfig } from "@smithy/middleware-endpoint"; -import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry"; -import { Client as __Client, } from "@smithy/smithy-client"; -import { resolveClientEndpointParameters, } from "./endpoint/EndpointParameters"; -import { getRuntimeConfig as __getRuntimeConfig } from "./runtimeConfig"; -import { resolveRuntimeExtensions } from "./runtimeExtensions"; -export { __Client }; -export class STSClient extends __Client { - constructor(...[configuration]) { - const _config_0 = __getRuntimeConfig(configuration || {}); - const _config_1 = resolveClientEndpointParameters(_config_0); - const _config_2 = resolveRegionConfig(_config_1); - const _config_3 = resolveEndpointConfig(_config_2); - const _config_4 = resolveRetryConfig(_config_3); - const _config_5 = resolveHostHeaderConfig(_config_4); - const _config_6 = resolveStsAuthConfig(_config_5, { stsClientCtor: STSClient }); - const _config_7 = resolveUserAgentConfig(_config_6); - const _config_8 = resolveRuntimeExtensions(_config_7, configuration?.extensions || []); - super(_config_8); - this.config = _config_8; - this.middlewareStack.use(getRetryPlugin(this.config)); - this.middlewareStack.use(getContentLengthPlugin(this.config)); - this.middlewareStack.use(getHostHeaderPlugin(this.config)); - this.middlewareStack.use(getLoggerPlugin(this.config)); - this.middlewareStack.use(getRecursionDetectionPlugin(this.config)); - this.middlewareStack.use(getUserAgentPlugin(this.config)); - } - destroy() { - super.destroy(); - } -} diff --git a/node_modules/@aws-sdk/client-sts/dist-es/commands/AssumeRoleCommand.js b/node_modules/@aws-sdk/client-sts/dist-es/commands/AssumeRoleCommand.js deleted file mode 100644 index a9e12ce1..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-es/commands/AssumeRoleCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { AssumeRoleResponseFilterSensitiveLog } from "../models/models_0"; -import { de_AssumeRoleCommand, se_AssumeRoleCommand } from "../protocols/Aws_query"; -export { $Command }; -export class AssumeRoleCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" }, - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, AssumeRoleCommand.getEndpointParameterInstructions())); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "STSClient"; - const commandName = "AssumeRoleCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: AssumeRoleResponseFilterSensitiveLog, - [SMITHY_CONTEXT_KEY]: { - service: "AWSSecurityTokenServiceV20110615", - operation: "AssumeRole", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_AssumeRoleCommand(input, context); - } - deserialize(output, context) { - return de_AssumeRoleCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-sts/dist-es/commands/AssumeRoleWithSAMLCommand.js b/node_modules/@aws-sdk/client-sts/dist-es/commands/AssumeRoleWithSAMLCommand.js deleted file mode 100644 index 3b37d975..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-es/commands/AssumeRoleWithSAMLCommand.js +++ /dev/null @@ -1,49 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { AssumeRoleWithSAMLRequestFilterSensitiveLog, AssumeRoleWithSAMLResponseFilterSensitiveLog, } from "../models/models_0"; -import { de_AssumeRoleWithSAMLCommand, se_AssumeRoleWithSAMLCommand } from "../protocols/Aws_query"; -export { $Command }; -export class AssumeRoleWithSAMLCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" }, - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, AssumeRoleWithSAMLCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "STSClient"; - const commandName = "AssumeRoleWithSAMLCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: AssumeRoleWithSAMLRequestFilterSensitiveLog, - outputFilterSensitiveLog: AssumeRoleWithSAMLResponseFilterSensitiveLog, - [SMITHY_CONTEXT_KEY]: { - service: "AWSSecurityTokenServiceV20110615", - operation: "AssumeRoleWithSAML", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_AssumeRoleWithSAMLCommand(input, context); - } - deserialize(output, context) { - return de_AssumeRoleWithSAMLCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-sts/dist-es/commands/AssumeRoleWithWebIdentityCommand.js b/node_modules/@aws-sdk/client-sts/dist-es/commands/AssumeRoleWithWebIdentityCommand.js deleted file mode 100644 index f52d62ac..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-es/commands/AssumeRoleWithWebIdentityCommand.js +++ /dev/null @@ -1,49 +0,0 @@ -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { AssumeRoleWithWebIdentityRequestFilterSensitiveLog, AssumeRoleWithWebIdentityResponseFilterSensitiveLog, } from "../models/models_0"; -import { de_AssumeRoleWithWebIdentityCommand, se_AssumeRoleWithWebIdentityCommand } from "../protocols/Aws_query"; -export { $Command }; -export class AssumeRoleWithWebIdentityCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" }, - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, AssumeRoleWithWebIdentityCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "STSClient"; - const commandName = "AssumeRoleWithWebIdentityCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: AssumeRoleWithWebIdentityRequestFilterSensitiveLog, - outputFilterSensitiveLog: AssumeRoleWithWebIdentityResponseFilterSensitiveLog, - [SMITHY_CONTEXT_KEY]: { - service: "AWSSecurityTokenServiceV20110615", - operation: "AssumeRoleWithWebIdentity", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_AssumeRoleWithWebIdentityCommand(input, context); - } - deserialize(output, context) { - return de_AssumeRoleWithWebIdentityCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-sts/dist-es/commands/DecodeAuthorizationMessageCommand.js b/node_modules/@aws-sdk/client-sts/dist-es/commands/DecodeAuthorizationMessageCommand.js deleted file mode 100644 index 419f47e7..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-es/commands/DecodeAuthorizationMessageCommand.js +++ /dev/null @@ -1,50 +0,0 @@ -import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_DecodeAuthorizationMessageCommand, se_DecodeAuthorizationMessageCommand } from "../protocols/Aws_query"; -export { $Command }; -export class DecodeAuthorizationMessageCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" }, - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, DecodeAuthorizationMessageCommand.getEndpointParameterInstructions())); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "STSClient"; - const commandName = "DecodeAuthorizationMessageCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AWSSecurityTokenServiceV20110615", - operation: "DecodeAuthorizationMessage", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_DecodeAuthorizationMessageCommand(input, context); - } - deserialize(output, context) { - return de_DecodeAuthorizationMessageCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-sts/dist-es/commands/GetAccessKeyInfoCommand.js b/node_modules/@aws-sdk/client-sts/dist-es/commands/GetAccessKeyInfoCommand.js deleted file mode 100644 index adcac124..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-es/commands/GetAccessKeyInfoCommand.js +++ /dev/null @@ -1,50 +0,0 @@ -import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_GetAccessKeyInfoCommand, se_GetAccessKeyInfoCommand } from "../protocols/Aws_query"; -export { $Command }; -export class GetAccessKeyInfoCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" }, - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, GetAccessKeyInfoCommand.getEndpointParameterInstructions())); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "STSClient"; - const commandName = "GetAccessKeyInfoCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AWSSecurityTokenServiceV20110615", - operation: "GetAccessKeyInfo", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_GetAccessKeyInfoCommand(input, context); - } - deserialize(output, context) { - return de_GetAccessKeyInfoCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-sts/dist-es/commands/GetCallerIdentityCommand.js b/node_modules/@aws-sdk/client-sts/dist-es/commands/GetCallerIdentityCommand.js deleted file mode 100644 index 06eff7b8..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-es/commands/GetCallerIdentityCommand.js +++ /dev/null @@ -1,50 +0,0 @@ -import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { de_GetCallerIdentityCommand, se_GetCallerIdentityCommand } from "../protocols/Aws_query"; -export { $Command }; -export class GetCallerIdentityCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" }, - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, GetCallerIdentityCommand.getEndpointParameterInstructions())); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "STSClient"; - const commandName = "GetCallerIdentityCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AWSSecurityTokenServiceV20110615", - operation: "GetCallerIdentity", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_GetCallerIdentityCommand(input, context); - } - deserialize(output, context) { - return de_GetCallerIdentityCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-sts/dist-es/commands/GetFederationTokenCommand.js b/node_modules/@aws-sdk/client-sts/dist-es/commands/GetFederationTokenCommand.js deleted file mode 100644 index 16df9f57..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-es/commands/GetFederationTokenCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { GetFederationTokenResponseFilterSensitiveLog, } from "../models/models_0"; -import { de_GetFederationTokenCommand, se_GetFederationTokenCommand } from "../protocols/Aws_query"; -export { $Command }; -export class GetFederationTokenCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" }, - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, GetFederationTokenCommand.getEndpointParameterInstructions())); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "STSClient"; - const commandName = "GetFederationTokenCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: GetFederationTokenResponseFilterSensitiveLog, - [SMITHY_CONTEXT_KEY]: { - service: "AWSSecurityTokenServiceV20110615", - operation: "GetFederationToken", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_GetFederationTokenCommand(input, context); - } - deserialize(output, context) { - return de_GetFederationTokenCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-sts/dist-es/commands/GetSessionTokenCommand.js b/node_modules/@aws-sdk/client-sts/dist-es/commands/GetSessionTokenCommand.js deleted file mode 100644 index 4ff1fdf4..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-es/commands/GetSessionTokenCommand.js +++ /dev/null @@ -1,51 +0,0 @@ -import { getAwsAuthPlugin } from "@aws-sdk/middleware-signing"; -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY, } from "@smithy/types"; -import { GetSessionTokenResponseFilterSensitiveLog, } from "../models/models_0"; -import { de_GetSessionTokenCommand, se_GetSessionTokenCommand } from "../protocols/Aws_query"; -export { $Command }; -export class GetSessionTokenCommand extends $Command { - static getEndpointParameterInstructions() { - return { - UseGlobalEndpoint: { type: "builtInParams", name: "useGlobalEndpoint" }, - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - constructor(input) { - super(); - this.input = input; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, GetSessionTokenCommand.getEndpointParameterInstructions())); - this.middlewareStack.use(getAwsAuthPlugin(configuration)); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "STSClient"; - const commandName = "GetSessionTokenCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: GetSessionTokenResponseFilterSensitiveLog, - [SMITHY_CONTEXT_KEY]: { - service: "AWSSecurityTokenServiceV20110615", - operation: "GetSessionToken", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_GetSessionTokenCommand(input, context); - } - deserialize(output, context) { - return de_GetSessionTokenCommand(output, context); - } -} diff --git a/node_modules/@aws-sdk/client-sts/dist-es/commands/index.js b/node_modules/@aws-sdk/client-sts/dist-es/commands/index.js deleted file mode 100644 index 802202ff..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-es/commands/index.js +++ /dev/null @@ -1,8 +0,0 @@ -export * from "./AssumeRoleCommand"; -export * from "./AssumeRoleWithSAMLCommand"; -export * from "./AssumeRoleWithWebIdentityCommand"; -export * from "./DecodeAuthorizationMessageCommand"; -export * from "./GetAccessKeyInfoCommand"; -export * from "./GetCallerIdentityCommand"; -export * from "./GetFederationTokenCommand"; -export * from "./GetSessionTokenCommand"; diff --git a/node_modules/@aws-sdk/client-sts/dist-es/defaultRoleAssumers.js b/node_modules/@aws-sdk/client-sts/dist-es/defaultRoleAssumers.js deleted file mode 100644 index aafb8c4e..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-es/defaultRoleAssumers.js +++ /dev/null @@ -1,22 +0,0 @@ -import { getDefaultRoleAssumer as StsGetDefaultRoleAssumer, getDefaultRoleAssumerWithWebIdentity as StsGetDefaultRoleAssumerWithWebIdentity, } from "./defaultStsRoleAssumers"; -import { STSClient } from "./STSClient"; -const getCustomizableStsClientCtor = (baseCtor, customizations) => { - if (!customizations) - return baseCtor; - else - return class CustomizableSTSClient extends baseCtor { - constructor(config) { - super(config); - for (const customization of customizations) { - this.middlewareStack.use(customization); - } - } - }; -}; -export const getDefaultRoleAssumer = (stsOptions = {}, stsPlugins) => StsGetDefaultRoleAssumer(stsOptions, getCustomizableStsClientCtor(STSClient, stsPlugins)); -export const getDefaultRoleAssumerWithWebIdentity = (stsOptions = {}, stsPlugins) => StsGetDefaultRoleAssumerWithWebIdentity(stsOptions, getCustomizableStsClientCtor(STSClient, stsPlugins)); -export const decorateDefaultCredentialProvider = (provider) => (input) => provider({ - roleAssumer: getDefaultRoleAssumer(input), - roleAssumerWithWebIdentity: getDefaultRoleAssumerWithWebIdentity(input), - ...input, -}); diff --git a/node_modules/@aws-sdk/client-sts/dist-es/defaultStsRoleAssumers.js b/node_modules/@aws-sdk/client-sts/dist-es/defaultStsRoleAssumers.js deleted file mode 100644 index f304082e..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-es/defaultStsRoleAssumers.js +++ /dev/null @@ -1,70 +0,0 @@ -import { AssumeRoleCommand } from "./commands/AssumeRoleCommand"; -import { AssumeRoleWithWebIdentityCommand, } from "./commands/AssumeRoleWithWebIdentityCommand"; -const ASSUME_ROLE_DEFAULT_REGION = "us-east-1"; -const decorateDefaultRegion = (region) => { - if (typeof region !== "function") { - return region === undefined ? ASSUME_ROLE_DEFAULT_REGION : region; - } - return async () => { - try { - return await region(); - } - catch (e) { - return ASSUME_ROLE_DEFAULT_REGION; - } - }; -}; -export const getDefaultRoleAssumer = (stsOptions, stsClientCtor) => { - let stsClient; - let closureSourceCreds; - return async (sourceCreds, params) => { - closureSourceCreds = sourceCreds; - if (!stsClient) { - const { logger, region, requestHandler } = stsOptions; - stsClient = new stsClientCtor({ - logger, - credentialDefaultProvider: () => async () => closureSourceCreds, - region: decorateDefaultRegion(region || stsOptions.region), - ...(requestHandler ? { requestHandler } : {}), - }); - } - const { Credentials } = await stsClient.send(new AssumeRoleCommand(params)); - if (!Credentials || !Credentials.AccessKeyId || !Credentials.SecretAccessKey) { - throw new Error(`Invalid response from STS.assumeRole call with role ${params.RoleArn}`); - } - return { - accessKeyId: Credentials.AccessKeyId, - secretAccessKey: Credentials.SecretAccessKey, - sessionToken: Credentials.SessionToken, - expiration: Credentials.Expiration, - }; - }; -}; -export const getDefaultRoleAssumerWithWebIdentity = (stsOptions, stsClientCtor) => { - let stsClient; - return async (params) => { - if (!stsClient) { - const { logger, region, requestHandler } = stsOptions; - stsClient = new stsClientCtor({ - logger, - region: decorateDefaultRegion(region || stsOptions.region), - ...(requestHandler ? { requestHandler } : {}), - }); - } - const { Credentials } = await stsClient.send(new AssumeRoleWithWebIdentityCommand(params)); - if (!Credentials || !Credentials.AccessKeyId || !Credentials.SecretAccessKey) { - throw new Error(`Invalid response from STS.assumeRoleWithWebIdentity call with role ${params.RoleArn}`); - } - return { - accessKeyId: Credentials.AccessKeyId, - secretAccessKey: Credentials.SecretAccessKey, - sessionToken: Credentials.SessionToken, - expiration: Credentials.Expiration, - }; - }; -}; -export const decorateDefaultCredentialProvider = (provider) => (input) => provider({ - roleAssumer: getDefaultRoleAssumer(input, input.stsClientCtor), - roleAssumerWithWebIdentity: getDefaultRoleAssumerWithWebIdentity(input, input.stsClientCtor), - ...input, -}); diff --git a/node_modules/@aws-sdk/client-sts/dist-es/endpoint/EndpointParameters.js b/node_modules/@aws-sdk/client-sts/dist-es/endpoint/EndpointParameters.js deleted file mode 100644 index 7110c4ae..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-es/endpoint/EndpointParameters.js +++ /dev/null @@ -1,9 +0,0 @@ -export const resolveClientEndpointParameters = (options) => { - return { - ...options, - useDualstackEndpoint: options.useDualstackEndpoint ?? false, - useFipsEndpoint: options.useFipsEndpoint ?? false, - useGlobalEndpoint: options.useGlobalEndpoint ?? false, - defaultSigningName: "sts", - }; -}; diff --git a/node_modules/@aws-sdk/client-sts/dist-es/endpoint/endpointResolver.js b/node_modules/@aws-sdk/client-sts/dist-es/endpoint/endpointResolver.js deleted file mode 100644 index 5c359268..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-es/endpoint/endpointResolver.js +++ /dev/null @@ -1,8 +0,0 @@ -import { resolveEndpoint } from "@smithy/util-endpoints"; -import { ruleSet } from "./ruleset"; -export const defaultEndpointResolver = (endpointParams, context = {}) => { - return resolveEndpoint(ruleSet, { - endpointParams: endpointParams, - logger: context.logger, - }); -}; diff --git a/node_modules/@aws-sdk/client-sts/dist-es/endpoint/ruleset.js b/node_modules/@aws-sdk/client-sts/dist-es/endpoint/ruleset.js deleted file mode 100644 index 99a438a5..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-es/endpoint/ruleset.js +++ /dev/null @@ -1,4 +0,0 @@ -const F = "required", G = "type", H = "fn", I = "argv", J = "ref"; -const a = false, b = true, c = "booleanEquals", d = "stringEquals", e = "sigv4", f = "sts", g = "us-east-1", h = "endpoint", i = "https://sts.{Region}.{PartitionResult#dnsSuffix}", j = "tree", k = "error", l = "getAttr", m = { [F]: false, [G]: "String" }, n = { [F]: true, "default": false, [G]: "Boolean" }, o = { [J]: "Endpoint" }, p = { [H]: "isSet", [I]: [{ [J]: "Region" }] }, q = { [J]: "Region" }, r = { [H]: "aws.partition", [I]: [q], "assign": "PartitionResult" }, s = { [J]: "UseFIPS" }, t = { [J]: "UseDualStack" }, u = { "url": "https://sts.amazonaws.com", "properties": { "authSchemes": [{ "name": e, "signingName": f, "signingRegion": g }] }, "headers": {} }, v = {}, w = { "conditions": [{ [H]: d, [I]: [q, "aws-global"] }], [h]: u, [G]: h }, x = { [H]: c, [I]: [s, true] }, y = { [H]: c, [I]: [t, true] }, z = { [H]: l, [I]: [{ [J]: "PartitionResult" }, "supportsFIPS"] }, A = { [J]: "PartitionResult" }, B = { [H]: c, [I]: [true, { [H]: l, [I]: [A, "supportsDualStack"] }] }, C = [{ [H]: "isSet", [I]: [o] }], D = [x], E = [y]; -const _data = { version: "1.0", parameters: { Region: m, UseDualStack: n, UseFIPS: n, Endpoint: m, UseGlobalEndpoint: n }, rules: [{ conditions: [{ [H]: c, [I]: [{ [J]: "UseGlobalEndpoint" }, b] }, { [H]: "not", [I]: C }, p, r, { [H]: c, [I]: [s, a] }, { [H]: c, [I]: [t, a] }], rules: [{ conditions: [{ [H]: d, [I]: [q, "ap-northeast-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "ap-south-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "ap-southeast-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "ap-southeast-2"] }], endpoint: u, [G]: h }, w, { conditions: [{ [H]: d, [I]: [q, "ca-central-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "eu-central-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "eu-north-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "eu-west-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "eu-west-2"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "eu-west-3"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "sa-east-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, g] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "us-east-2"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "us-west-1"] }], endpoint: u, [G]: h }, { conditions: [{ [H]: d, [I]: [q, "us-west-2"] }], endpoint: u, [G]: h }, { endpoint: { url: i, properties: { authSchemes: [{ name: e, signingName: f, signingRegion: "{Region}" }] }, headers: v }, [G]: h }], [G]: j }, { conditions: C, rules: [{ conditions: D, error: "Invalid Configuration: FIPS and custom endpoint are not supported", [G]: k }, { conditions: E, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", [G]: k }, { endpoint: { url: o, properties: v, headers: v }, [G]: h }], [G]: j }, { conditions: [p], rules: [{ conditions: [r], rules: [{ conditions: [x, y], rules: [{ conditions: [{ [H]: c, [I]: [b, z] }, B], rules: [{ endpoint: { url: "https://sts-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: v, headers: v }, [G]: h }], [G]: j }, { error: "FIPS and DualStack are enabled, but this partition does not support one or both", [G]: k }], [G]: j }, { conditions: D, rules: [{ conditions: [{ [H]: c, [I]: [z, b] }], rules: [{ conditions: [{ [H]: d, [I]: [{ [H]: l, [I]: [A, "name"] }, "aws-us-gov"] }], endpoint: { url: "https://sts.{Region}.amazonaws.com", properties: v, headers: v }, [G]: h }, { endpoint: { url: "https://sts-fips.{Region}.{PartitionResult#dnsSuffix}", properties: v, headers: v }, [G]: h }], [G]: j }, { error: "FIPS is enabled but this partition does not support FIPS", [G]: k }], [G]: j }, { conditions: E, rules: [{ conditions: [B], rules: [{ endpoint: { url: "https://sts.{Region}.{PartitionResult#dualStackDnsSuffix}", properties: v, headers: v }, [G]: h }], [G]: j }, { error: "DualStack is enabled but this partition does not support DualStack", [G]: k }], [G]: j }, w, { endpoint: { url: i, properties: v, headers: v }, [G]: h }], [G]: j }], [G]: j }, { error: "Invalid Configuration: Missing Region", [G]: k }] }; -export const ruleSet = _data; diff --git a/node_modules/@aws-sdk/client-sts/dist-es/extensionConfiguration.js b/node_modules/@aws-sdk/client-sts/dist-es/extensionConfiguration.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-es/extensionConfiguration.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@aws-sdk/client-sts/dist-es/index.js b/node_modules/@aws-sdk/client-sts/dist-es/index.js deleted file mode 100644 index d2e1dc49..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-es/index.js +++ /dev/null @@ -1,7 +0,0 @@ -export * from "./STSClient"; -export * from "./STS"; -export * from "./commands"; -export * from "./models"; -export * from "./defaultRoleAssumers"; -import "@aws-sdk/util-endpoints"; -export { STSServiceException } from "./models/STSServiceException"; diff --git a/node_modules/@aws-sdk/client-sts/dist-es/models/STSServiceException.js b/node_modules/@aws-sdk/client-sts/dist-es/models/STSServiceException.js deleted file mode 100644 index 6d2963c7..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-es/models/STSServiceException.js +++ /dev/null @@ -1,8 +0,0 @@ -import { ServiceException as __ServiceException, } from "@smithy/smithy-client"; -export { __ServiceException }; -export class STSServiceException extends __ServiceException { - constructor(options) { - super(options); - Object.setPrototypeOf(this, STSServiceException.prototype); - } -} diff --git a/node_modules/@aws-sdk/client-sts/dist-es/models/index.js b/node_modules/@aws-sdk/client-sts/dist-es/models/index.js deleted file mode 100644 index 09c5d6e0..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-es/models/index.js +++ /dev/null @@ -1 +0,0 @@ -export * from "./models_0"; diff --git a/node_modules/@aws-sdk/client-sts/dist-es/models/models_0.js b/node_modules/@aws-sdk/client-sts/dist-es/models/models_0.js deleted file mode 100644 index 79ff9afd..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-es/models/models_0.js +++ /dev/null @@ -1,130 +0,0 @@ -import { SENSITIVE_STRING } from "@smithy/smithy-client"; -import { STSServiceException as __BaseException } from "./STSServiceException"; -export class ExpiredTokenException extends __BaseException { - constructor(opts) { - super({ - name: "ExpiredTokenException", - $fault: "client", - ...opts, - }); - this.name = "ExpiredTokenException"; - this.$fault = "client"; - Object.setPrototypeOf(this, ExpiredTokenException.prototype); - } -} -export class MalformedPolicyDocumentException extends __BaseException { - constructor(opts) { - super({ - name: "MalformedPolicyDocumentException", - $fault: "client", - ...opts, - }); - this.name = "MalformedPolicyDocumentException"; - this.$fault = "client"; - Object.setPrototypeOf(this, MalformedPolicyDocumentException.prototype); - } -} -export class PackedPolicyTooLargeException extends __BaseException { - constructor(opts) { - super({ - name: "PackedPolicyTooLargeException", - $fault: "client", - ...opts, - }); - this.name = "PackedPolicyTooLargeException"; - this.$fault = "client"; - Object.setPrototypeOf(this, PackedPolicyTooLargeException.prototype); - } -} -export class RegionDisabledException extends __BaseException { - constructor(opts) { - super({ - name: "RegionDisabledException", - $fault: "client", - ...opts, - }); - this.name = "RegionDisabledException"; - this.$fault = "client"; - Object.setPrototypeOf(this, RegionDisabledException.prototype); - } -} -export class IDPRejectedClaimException extends __BaseException { - constructor(opts) { - super({ - name: "IDPRejectedClaimException", - $fault: "client", - ...opts, - }); - this.name = "IDPRejectedClaimException"; - this.$fault = "client"; - Object.setPrototypeOf(this, IDPRejectedClaimException.prototype); - } -} -export class InvalidIdentityTokenException extends __BaseException { - constructor(opts) { - super({ - name: "InvalidIdentityTokenException", - $fault: "client", - ...opts, - }); - this.name = "InvalidIdentityTokenException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidIdentityTokenException.prototype); - } -} -export class IDPCommunicationErrorException extends __BaseException { - constructor(opts) { - super({ - name: "IDPCommunicationErrorException", - $fault: "client", - ...opts, - }); - this.name = "IDPCommunicationErrorException"; - this.$fault = "client"; - Object.setPrototypeOf(this, IDPCommunicationErrorException.prototype); - } -} -export class InvalidAuthorizationMessageException extends __BaseException { - constructor(opts) { - super({ - name: "InvalidAuthorizationMessageException", - $fault: "client", - ...opts, - }); - this.name = "InvalidAuthorizationMessageException"; - this.$fault = "client"; - Object.setPrototypeOf(this, InvalidAuthorizationMessageException.prototype); - } -} -export const CredentialsFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.SecretAccessKey && { SecretAccessKey: SENSITIVE_STRING }), -}); -export const AssumeRoleResponseFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Credentials && { Credentials: CredentialsFilterSensitiveLog(obj.Credentials) }), -}); -export const AssumeRoleWithSAMLRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.SAMLAssertion && { SAMLAssertion: SENSITIVE_STRING }), -}); -export const AssumeRoleWithSAMLResponseFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Credentials && { Credentials: CredentialsFilterSensitiveLog(obj.Credentials) }), -}); -export const AssumeRoleWithWebIdentityRequestFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.WebIdentityToken && { WebIdentityToken: SENSITIVE_STRING }), -}); -export const AssumeRoleWithWebIdentityResponseFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Credentials && { Credentials: CredentialsFilterSensitiveLog(obj.Credentials) }), -}); -export const GetFederationTokenResponseFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Credentials && { Credentials: CredentialsFilterSensitiveLog(obj.Credentials) }), -}); -export const GetSessionTokenResponseFilterSensitiveLog = (obj) => ({ - ...obj, - ...(obj.Credentials && { Credentials: CredentialsFilterSensitiveLog(obj.Credentials) }), -}); diff --git a/node_modules/@aws-sdk/client-sts/dist-es/protocols/Aws_query.js b/node_modules/@aws-sdk/client-sts/dist-es/protocols/Aws_query.js deleted file mode 100644 index 1748666f..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-es/protocols/Aws_query.js +++ /dev/null @@ -1,1009 +0,0 @@ -import { HttpRequest as __HttpRequest } from "@smithy/protocol-http"; -import { collectBody, decorateServiceException as __decorateServiceException, expectNonNull as __expectNonNull, expectString as __expectString, extendedEncodeURIComponent as __extendedEncodeURIComponent, getValueFromTextNode as __getValueFromTextNode, parseRfc3339DateTimeWithOffset as __parseRfc3339DateTimeWithOffset, strictParseInt32 as __strictParseInt32, withBaseException, } from "@smithy/smithy-client"; -import { XMLParser } from "fast-xml-parser"; -import { ExpiredTokenException, IDPCommunicationErrorException, IDPRejectedClaimException, InvalidAuthorizationMessageException, InvalidIdentityTokenException, MalformedPolicyDocumentException, PackedPolicyTooLargeException, RegionDisabledException, } from "../models/models_0"; -import { STSServiceException as __BaseException } from "../models/STSServiceException"; -export const se_AssumeRoleCommand = async (input, context) => { - const headers = SHARED_HEADERS; - let body; - body = buildFormUrlencodedString({ - ...se_AssumeRoleRequest(input, context), - Action: "AssumeRole", - Version: "2011-06-15", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_AssumeRoleWithSAMLCommand = async (input, context) => { - const headers = SHARED_HEADERS; - let body; - body = buildFormUrlencodedString({ - ...se_AssumeRoleWithSAMLRequest(input, context), - Action: "AssumeRoleWithSAML", - Version: "2011-06-15", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_AssumeRoleWithWebIdentityCommand = async (input, context) => { - const headers = SHARED_HEADERS; - let body; - body = buildFormUrlencodedString({ - ...se_AssumeRoleWithWebIdentityRequest(input, context), - Action: "AssumeRoleWithWebIdentity", - Version: "2011-06-15", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_DecodeAuthorizationMessageCommand = async (input, context) => { - const headers = SHARED_HEADERS; - let body; - body = buildFormUrlencodedString({ - ...se_DecodeAuthorizationMessageRequest(input, context), - Action: "DecodeAuthorizationMessage", - Version: "2011-06-15", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_GetAccessKeyInfoCommand = async (input, context) => { - const headers = SHARED_HEADERS; - let body; - body = buildFormUrlencodedString({ - ...se_GetAccessKeyInfoRequest(input, context), - Action: "GetAccessKeyInfo", - Version: "2011-06-15", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_GetCallerIdentityCommand = async (input, context) => { - const headers = SHARED_HEADERS; - let body; - body = buildFormUrlencodedString({ - ...se_GetCallerIdentityRequest(input, context), - Action: "GetCallerIdentity", - Version: "2011-06-15", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_GetFederationTokenCommand = async (input, context) => { - const headers = SHARED_HEADERS; - let body; - body = buildFormUrlencodedString({ - ...se_GetFederationTokenRequest(input, context), - Action: "GetFederationToken", - Version: "2011-06-15", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const se_GetSessionTokenCommand = async (input, context) => { - const headers = SHARED_HEADERS; - let body; - body = buildFormUrlencodedString({ - ...se_GetSessionTokenRequest(input, context), - Action: "GetSessionToken", - Version: "2011-06-15", - }); - return buildHttpRpcRequest(context, headers, "/", undefined, body); -}; -export const de_AssumeRoleCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_AssumeRoleCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_AssumeRoleResponse(data.AssumeRoleResult, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_AssumeRoleCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "ExpiredTokenException": - case "com.amazonaws.sts#ExpiredTokenException": - throw await de_ExpiredTokenExceptionRes(parsedOutput, context); - case "MalformedPolicyDocument": - case "com.amazonaws.sts#MalformedPolicyDocumentException": - throw await de_MalformedPolicyDocumentExceptionRes(parsedOutput, context); - case "PackedPolicyTooLarge": - case "com.amazonaws.sts#PackedPolicyTooLargeException": - throw await de_PackedPolicyTooLargeExceptionRes(parsedOutput, context); - case "RegionDisabledException": - case "com.amazonaws.sts#RegionDisabledException": - throw await de_RegionDisabledExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody: parsedBody.Error, - errorCode, - }); - } -}; -export const de_AssumeRoleWithSAMLCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_AssumeRoleWithSAMLCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_AssumeRoleWithSAMLResponse(data.AssumeRoleWithSAMLResult, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_AssumeRoleWithSAMLCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "ExpiredTokenException": - case "com.amazonaws.sts#ExpiredTokenException": - throw await de_ExpiredTokenExceptionRes(parsedOutput, context); - case "IDPRejectedClaim": - case "com.amazonaws.sts#IDPRejectedClaimException": - throw await de_IDPRejectedClaimExceptionRes(parsedOutput, context); - case "InvalidIdentityToken": - case "com.amazonaws.sts#InvalidIdentityTokenException": - throw await de_InvalidIdentityTokenExceptionRes(parsedOutput, context); - case "MalformedPolicyDocument": - case "com.amazonaws.sts#MalformedPolicyDocumentException": - throw await de_MalformedPolicyDocumentExceptionRes(parsedOutput, context); - case "PackedPolicyTooLarge": - case "com.amazonaws.sts#PackedPolicyTooLargeException": - throw await de_PackedPolicyTooLargeExceptionRes(parsedOutput, context); - case "RegionDisabledException": - case "com.amazonaws.sts#RegionDisabledException": - throw await de_RegionDisabledExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody: parsedBody.Error, - errorCode, - }); - } -}; -export const de_AssumeRoleWithWebIdentityCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_AssumeRoleWithWebIdentityCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_AssumeRoleWithWebIdentityResponse(data.AssumeRoleWithWebIdentityResult, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_AssumeRoleWithWebIdentityCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "ExpiredTokenException": - case "com.amazonaws.sts#ExpiredTokenException": - throw await de_ExpiredTokenExceptionRes(parsedOutput, context); - case "IDPCommunicationError": - case "com.amazonaws.sts#IDPCommunicationErrorException": - throw await de_IDPCommunicationErrorExceptionRes(parsedOutput, context); - case "IDPRejectedClaim": - case "com.amazonaws.sts#IDPRejectedClaimException": - throw await de_IDPRejectedClaimExceptionRes(parsedOutput, context); - case "InvalidIdentityToken": - case "com.amazonaws.sts#InvalidIdentityTokenException": - throw await de_InvalidIdentityTokenExceptionRes(parsedOutput, context); - case "MalformedPolicyDocument": - case "com.amazonaws.sts#MalformedPolicyDocumentException": - throw await de_MalformedPolicyDocumentExceptionRes(parsedOutput, context); - case "PackedPolicyTooLarge": - case "com.amazonaws.sts#PackedPolicyTooLargeException": - throw await de_PackedPolicyTooLargeExceptionRes(parsedOutput, context); - case "RegionDisabledException": - case "com.amazonaws.sts#RegionDisabledException": - throw await de_RegionDisabledExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody: parsedBody.Error, - errorCode, - }); - } -}; -export const de_DecodeAuthorizationMessageCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_DecodeAuthorizationMessageCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_DecodeAuthorizationMessageResponse(data.DecodeAuthorizationMessageResult, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_DecodeAuthorizationMessageCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InvalidAuthorizationMessageException": - case "com.amazonaws.sts#InvalidAuthorizationMessageException": - throw await de_InvalidAuthorizationMessageExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody: parsedBody.Error, - errorCode, - }); - } -}; -export const de_GetAccessKeyInfoCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_GetAccessKeyInfoCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_GetAccessKeyInfoResponse(data.GetAccessKeyInfoResult, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_GetAccessKeyInfoCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody: parsedBody.Error, - errorCode, - }); -}; -export const de_GetCallerIdentityCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_GetCallerIdentityCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_GetCallerIdentityResponse(data.GetCallerIdentityResult, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_GetCallerIdentityCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody: parsedBody.Error, - errorCode, - }); -}; -export const de_GetFederationTokenCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_GetFederationTokenCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_GetFederationTokenResponse(data.GetFederationTokenResult, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_GetFederationTokenCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "MalformedPolicyDocument": - case "com.amazonaws.sts#MalformedPolicyDocumentException": - throw await de_MalformedPolicyDocumentExceptionRes(parsedOutput, context); - case "PackedPolicyTooLarge": - case "com.amazonaws.sts#PackedPolicyTooLargeException": - throw await de_PackedPolicyTooLargeExceptionRes(parsedOutput, context); - case "RegionDisabledException": - case "com.amazonaws.sts#RegionDisabledException": - throw await de_RegionDisabledExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody: parsedBody.Error, - errorCode, - }); - } -}; -export const de_GetSessionTokenCommand = async (output, context) => { - if (output.statusCode >= 300) { - return de_GetSessionTokenCommandError(output, context); - } - const data = await parseBody(output.body, context); - let contents = {}; - contents = de_GetSessionTokenResponse(data.GetSessionTokenResult, context); - const response = { - $metadata: deserializeMetadata(output), - ...contents, - }; - return response; -}; -const de_GetSessionTokenCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadQueryErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "RegionDisabledException": - case "com.amazonaws.sts#RegionDisabledException": - throw await de_RegionDisabledExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody: parsedBody.Error, - errorCode, - }); - } -}; -const de_ExpiredTokenExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = de_ExpiredTokenException(body.Error, context); - const exception = new ExpiredTokenException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_IDPCommunicationErrorExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = de_IDPCommunicationErrorException(body.Error, context); - const exception = new IDPCommunicationErrorException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_IDPRejectedClaimExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = de_IDPRejectedClaimException(body.Error, context); - const exception = new IDPRejectedClaimException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_InvalidAuthorizationMessageExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = de_InvalidAuthorizationMessageException(body.Error, context); - const exception = new InvalidAuthorizationMessageException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_InvalidIdentityTokenExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = de_InvalidIdentityTokenException(body.Error, context); - const exception = new InvalidIdentityTokenException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_MalformedPolicyDocumentExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = de_MalformedPolicyDocumentException(body.Error, context); - const exception = new MalformedPolicyDocumentException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_PackedPolicyTooLargeExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = de_PackedPolicyTooLargeException(body.Error, context); - const exception = new PackedPolicyTooLargeException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const de_RegionDisabledExceptionRes = async (parsedOutput, context) => { - const body = parsedOutput.body; - const deserialized = de_RegionDisabledException(body.Error, context); - const exception = new RegionDisabledException({ - $metadata: deserializeMetadata(parsedOutput), - ...deserialized, - }); - return __decorateServiceException(exception, body); -}; -const se_AssumeRoleRequest = (input, context) => { - const entries = {}; - if (input.RoleArn != null) { - entries["RoleArn"] = input.RoleArn; - } - if (input.RoleSessionName != null) { - entries["RoleSessionName"] = input.RoleSessionName; - } - if (input.PolicyArns != null) { - const memberEntries = se_policyDescriptorListType(input.PolicyArns, context); - if (input.PolicyArns?.length === 0) { - entries.PolicyArns = []; - } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `PolicyArns.${key}`; - entries[loc] = value; - }); - } - if (input.Policy != null) { - entries["Policy"] = input.Policy; - } - if (input.DurationSeconds != null) { - entries["DurationSeconds"] = input.DurationSeconds; - } - if (input.Tags != null) { - const memberEntries = se_tagListType(input.Tags, context); - if (input.Tags?.length === 0) { - entries.Tags = []; - } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `Tags.${key}`; - entries[loc] = value; - }); - } - if (input.TransitiveTagKeys != null) { - const memberEntries = se_tagKeyListType(input.TransitiveTagKeys, context); - if (input.TransitiveTagKeys?.length === 0) { - entries.TransitiveTagKeys = []; - } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `TransitiveTagKeys.${key}`; - entries[loc] = value; - }); - } - if (input.ExternalId != null) { - entries["ExternalId"] = input.ExternalId; - } - if (input.SerialNumber != null) { - entries["SerialNumber"] = input.SerialNumber; - } - if (input.TokenCode != null) { - entries["TokenCode"] = input.TokenCode; - } - if (input.SourceIdentity != null) { - entries["SourceIdentity"] = input.SourceIdentity; - } - if (input.ProvidedContexts != null) { - const memberEntries = se_ProvidedContextsListType(input.ProvidedContexts, context); - if (input.ProvidedContexts?.length === 0) { - entries.ProvidedContexts = []; - } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `ProvidedContexts.${key}`; - entries[loc] = value; - }); - } - return entries; -}; -const se_AssumeRoleWithSAMLRequest = (input, context) => { - const entries = {}; - if (input.RoleArn != null) { - entries["RoleArn"] = input.RoleArn; - } - if (input.PrincipalArn != null) { - entries["PrincipalArn"] = input.PrincipalArn; - } - if (input.SAMLAssertion != null) { - entries["SAMLAssertion"] = input.SAMLAssertion; - } - if (input.PolicyArns != null) { - const memberEntries = se_policyDescriptorListType(input.PolicyArns, context); - if (input.PolicyArns?.length === 0) { - entries.PolicyArns = []; - } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `PolicyArns.${key}`; - entries[loc] = value; - }); - } - if (input.Policy != null) { - entries["Policy"] = input.Policy; - } - if (input.DurationSeconds != null) { - entries["DurationSeconds"] = input.DurationSeconds; - } - return entries; -}; -const se_AssumeRoleWithWebIdentityRequest = (input, context) => { - const entries = {}; - if (input.RoleArn != null) { - entries["RoleArn"] = input.RoleArn; - } - if (input.RoleSessionName != null) { - entries["RoleSessionName"] = input.RoleSessionName; - } - if (input.WebIdentityToken != null) { - entries["WebIdentityToken"] = input.WebIdentityToken; - } - if (input.ProviderId != null) { - entries["ProviderId"] = input.ProviderId; - } - if (input.PolicyArns != null) { - const memberEntries = se_policyDescriptorListType(input.PolicyArns, context); - if (input.PolicyArns?.length === 0) { - entries.PolicyArns = []; - } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `PolicyArns.${key}`; - entries[loc] = value; - }); - } - if (input.Policy != null) { - entries["Policy"] = input.Policy; - } - if (input.DurationSeconds != null) { - entries["DurationSeconds"] = input.DurationSeconds; - } - return entries; -}; -const se_DecodeAuthorizationMessageRequest = (input, context) => { - const entries = {}; - if (input.EncodedMessage != null) { - entries["EncodedMessage"] = input.EncodedMessage; - } - return entries; -}; -const se_GetAccessKeyInfoRequest = (input, context) => { - const entries = {}; - if (input.AccessKeyId != null) { - entries["AccessKeyId"] = input.AccessKeyId; - } - return entries; -}; -const se_GetCallerIdentityRequest = (input, context) => { - const entries = {}; - return entries; -}; -const se_GetFederationTokenRequest = (input, context) => { - const entries = {}; - if (input.Name != null) { - entries["Name"] = input.Name; - } - if (input.Policy != null) { - entries["Policy"] = input.Policy; - } - if (input.PolicyArns != null) { - const memberEntries = se_policyDescriptorListType(input.PolicyArns, context); - if (input.PolicyArns?.length === 0) { - entries.PolicyArns = []; - } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `PolicyArns.${key}`; - entries[loc] = value; - }); - } - if (input.DurationSeconds != null) { - entries["DurationSeconds"] = input.DurationSeconds; - } - if (input.Tags != null) { - const memberEntries = se_tagListType(input.Tags, context); - if (input.Tags?.length === 0) { - entries.Tags = []; - } - Object.entries(memberEntries).forEach(([key, value]) => { - const loc = `Tags.${key}`; - entries[loc] = value; - }); - } - return entries; -}; -const se_GetSessionTokenRequest = (input, context) => { - const entries = {}; - if (input.DurationSeconds != null) { - entries["DurationSeconds"] = input.DurationSeconds; - } - if (input.SerialNumber != null) { - entries["SerialNumber"] = input.SerialNumber; - } - if (input.TokenCode != null) { - entries["TokenCode"] = input.TokenCode; - } - return entries; -}; -const se_policyDescriptorListType = (input, context) => { - const entries = {}; - let counter = 1; - for (const entry of input) { - if (entry === null) { - continue; - } - const memberEntries = se_PolicyDescriptorType(entry, context); - Object.entries(memberEntries).forEach(([key, value]) => { - entries[`member.${counter}.${key}`] = value; - }); - counter++; - } - return entries; -}; -const se_PolicyDescriptorType = (input, context) => { - const entries = {}; - if (input.arn != null) { - entries["arn"] = input.arn; - } - return entries; -}; -const se_ProvidedContext = (input, context) => { - const entries = {}; - if (input.ProviderArn != null) { - entries["ProviderArn"] = input.ProviderArn; - } - if (input.ContextAssertion != null) { - entries["ContextAssertion"] = input.ContextAssertion; - } - return entries; -}; -const se_ProvidedContextsListType = (input, context) => { - const entries = {}; - let counter = 1; - for (const entry of input) { - if (entry === null) { - continue; - } - const memberEntries = se_ProvidedContext(entry, context); - Object.entries(memberEntries).forEach(([key, value]) => { - entries[`member.${counter}.${key}`] = value; - }); - counter++; - } - return entries; -}; -const se_Tag = (input, context) => { - const entries = {}; - if (input.Key != null) { - entries["Key"] = input.Key; - } - if (input.Value != null) { - entries["Value"] = input.Value; - } - return entries; -}; -const se_tagKeyListType = (input, context) => { - const entries = {}; - let counter = 1; - for (const entry of input) { - if (entry === null) { - continue; - } - entries[`member.${counter}`] = entry; - counter++; - } - return entries; -}; -const se_tagListType = (input, context) => { - const entries = {}; - let counter = 1; - for (const entry of input) { - if (entry === null) { - continue; - } - const memberEntries = se_Tag(entry, context); - Object.entries(memberEntries).forEach(([key, value]) => { - entries[`member.${counter}.${key}`] = value; - }); - counter++; - } - return entries; -}; -const de_AssumedRoleUser = (output, context) => { - const contents = {}; - if (output["AssumedRoleId"] !== undefined) { - contents.AssumedRoleId = __expectString(output["AssumedRoleId"]); - } - if (output["Arn"] !== undefined) { - contents.Arn = __expectString(output["Arn"]); - } - return contents; -}; -const de_AssumeRoleResponse = (output, context) => { - const contents = {}; - if (output["Credentials"] !== undefined) { - contents.Credentials = de_Credentials(output["Credentials"], context); - } - if (output["AssumedRoleUser"] !== undefined) { - contents.AssumedRoleUser = de_AssumedRoleUser(output["AssumedRoleUser"], context); - } - if (output["PackedPolicySize"] !== undefined) { - contents.PackedPolicySize = __strictParseInt32(output["PackedPolicySize"]); - } - if (output["SourceIdentity"] !== undefined) { - contents.SourceIdentity = __expectString(output["SourceIdentity"]); - } - return contents; -}; -const de_AssumeRoleWithSAMLResponse = (output, context) => { - const contents = {}; - if (output["Credentials"] !== undefined) { - contents.Credentials = de_Credentials(output["Credentials"], context); - } - if (output["AssumedRoleUser"] !== undefined) { - contents.AssumedRoleUser = de_AssumedRoleUser(output["AssumedRoleUser"], context); - } - if (output["PackedPolicySize"] !== undefined) { - contents.PackedPolicySize = __strictParseInt32(output["PackedPolicySize"]); - } - if (output["Subject"] !== undefined) { - contents.Subject = __expectString(output["Subject"]); - } - if (output["SubjectType"] !== undefined) { - contents.SubjectType = __expectString(output["SubjectType"]); - } - if (output["Issuer"] !== undefined) { - contents.Issuer = __expectString(output["Issuer"]); - } - if (output["Audience"] !== undefined) { - contents.Audience = __expectString(output["Audience"]); - } - if (output["NameQualifier"] !== undefined) { - contents.NameQualifier = __expectString(output["NameQualifier"]); - } - if (output["SourceIdentity"] !== undefined) { - contents.SourceIdentity = __expectString(output["SourceIdentity"]); - } - return contents; -}; -const de_AssumeRoleWithWebIdentityResponse = (output, context) => { - const contents = {}; - if (output["Credentials"] !== undefined) { - contents.Credentials = de_Credentials(output["Credentials"], context); - } - if (output["SubjectFromWebIdentityToken"] !== undefined) { - contents.SubjectFromWebIdentityToken = __expectString(output["SubjectFromWebIdentityToken"]); - } - if (output["AssumedRoleUser"] !== undefined) { - contents.AssumedRoleUser = de_AssumedRoleUser(output["AssumedRoleUser"], context); - } - if (output["PackedPolicySize"] !== undefined) { - contents.PackedPolicySize = __strictParseInt32(output["PackedPolicySize"]); - } - if (output["Provider"] !== undefined) { - contents.Provider = __expectString(output["Provider"]); - } - if (output["Audience"] !== undefined) { - contents.Audience = __expectString(output["Audience"]); - } - if (output["SourceIdentity"] !== undefined) { - contents.SourceIdentity = __expectString(output["SourceIdentity"]); - } - return contents; -}; -const de_Credentials = (output, context) => { - const contents = {}; - if (output["AccessKeyId"] !== undefined) { - contents.AccessKeyId = __expectString(output["AccessKeyId"]); - } - if (output["SecretAccessKey"] !== undefined) { - contents.SecretAccessKey = __expectString(output["SecretAccessKey"]); - } - if (output["SessionToken"] !== undefined) { - contents.SessionToken = __expectString(output["SessionToken"]); - } - if (output["Expiration"] !== undefined) { - contents.Expiration = __expectNonNull(__parseRfc3339DateTimeWithOffset(output["Expiration"])); - } - return contents; -}; -const de_DecodeAuthorizationMessageResponse = (output, context) => { - const contents = {}; - if (output["DecodedMessage"] !== undefined) { - contents.DecodedMessage = __expectString(output["DecodedMessage"]); - } - return contents; -}; -const de_ExpiredTokenException = (output, context) => { - const contents = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); - } - return contents; -}; -const de_FederatedUser = (output, context) => { - const contents = {}; - if (output["FederatedUserId"] !== undefined) { - contents.FederatedUserId = __expectString(output["FederatedUserId"]); - } - if (output["Arn"] !== undefined) { - contents.Arn = __expectString(output["Arn"]); - } - return contents; -}; -const de_GetAccessKeyInfoResponse = (output, context) => { - const contents = {}; - if (output["Account"] !== undefined) { - contents.Account = __expectString(output["Account"]); - } - return contents; -}; -const de_GetCallerIdentityResponse = (output, context) => { - const contents = {}; - if (output["UserId"] !== undefined) { - contents.UserId = __expectString(output["UserId"]); - } - if (output["Account"] !== undefined) { - contents.Account = __expectString(output["Account"]); - } - if (output["Arn"] !== undefined) { - contents.Arn = __expectString(output["Arn"]); - } - return contents; -}; -const de_GetFederationTokenResponse = (output, context) => { - const contents = {}; - if (output["Credentials"] !== undefined) { - contents.Credentials = de_Credentials(output["Credentials"], context); - } - if (output["FederatedUser"] !== undefined) { - contents.FederatedUser = de_FederatedUser(output["FederatedUser"], context); - } - if (output["PackedPolicySize"] !== undefined) { - contents.PackedPolicySize = __strictParseInt32(output["PackedPolicySize"]); - } - return contents; -}; -const de_GetSessionTokenResponse = (output, context) => { - const contents = {}; - if (output["Credentials"] !== undefined) { - contents.Credentials = de_Credentials(output["Credentials"], context); - } - return contents; -}; -const de_IDPCommunicationErrorException = (output, context) => { - const contents = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); - } - return contents; -}; -const de_IDPRejectedClaimException = (output, context) => { - const contents = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); - } - return contents; -}; -const de_InvalidAuthorizationMessageException = (output, context) => { - const contents = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); - } - return contents; -}; -const de_InvalidIdentityTokenException = (output, context) => { - const contents = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); - } - return contents; -}; -const de_MalformedPolicyDocumentException = (output, context) => { - const contents = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); - } - return contents; -}; -const de_PackedPolicyTooLargeException = (output, context) => { - const contents = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); - } - return contents; -}; -const de_RegionDisabledException = (output, context) => { - const contents = {}; - if (output["message"] !== undefined) { - contents.message = __expectString(output["message"]); - } - return contents; -}; -const deserializeMetadata = (output) => ({ - httpStatusCode: output.statusCode, - requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"], - extendedRequestId: output.headers["x-amz-id-2"], - cfId: output.headers["x-amz-cf-id"], -}); -const collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body)); -const throwDefaultError = withBaseException(__BaseException); -const buildHttpRpcRequest = async (context, headers, path, resolvedHostname, body) => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); - const contents = { - protocol, - hostname, - port, - method: "POST", - path: basePath.endsWith("/") ? basePath.slice(0, -1) + path : basePath + path, - headers, - }; - if (resolvedHostname !== undefined) { - contents.hostname = resolvedHostname; - } - if (body !== undefined) { - contents.body = body; - } - return new __HttpRequest(contents); -}; -const SHARED_HEADERS = { - "content-type": "application/x-www-form-urlencoded", -}; -const parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => { - if (encoded.length) { - const parser = new XMLParser({ - attributeNamePrefix: "", - htmlEntities: true, - ignoreAttributes: false, - ignoreDeclaration: true, - parseTagValue: false, - trimValues: false, - tagValueProcessor: (_, val) => (val.trim() === "" && val.includes("\n") ? "" : undefined), - }); - parser.addEntity("#xD", "\r"); - parser.addEntity("#10", "\n"); - const parsedObj = parser.parse(encoded); - const textNodeName = "#text"; - const key = Object.keys(parsedObj)[0]; - const parsedObjToReturn = parsedObj[key]; - if (parsedObjToReturn[textNodeName]) { - parsedObjToReturn[key] = parsedObjToReturn[textNodeName]; - delete parsedObjToReturn[textNodeName]; - } - return __getValueFromTextNode(parsedObjToReturn); - } - return {}; -}); -const parseErrorBody = async (errorBody, context) => { - const value = await parseBody(errorBody, context); - if (value.Error) { - value.Error.message = value.Error.message ?? value.Error.Message; - } - return value; -}; -const buildFormUrlencodedString = (formEntries) => Object.entries(formEntries) - .map(([key, value]) => __extendedEncodeURIComponent(key) + "=" + __extendedEncodeURIComponent(value)) - .join("&"); -const loadQueryErrorCode = (output, data) => { - if (data.Error?.Code !== undefined) { - return data.Error.Code; - } - if (output.statusCode == 404) { - return "NotFound"; - } -}; diff --git a/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.browser.js b/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.browser.js deleted file mode 100644 index 0794d655..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.browser.js +++ /dev/null @@ -1,34 +0,0 @@ -import packageInfo from "../package.json"; -import { Sha256 } from "@aws-crypto/sha256-browser"; -import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; -import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@smithy/config-resolver"; -import { FetchHttpHandler as RequestHandler, streamCollector } from "@smithy/fetch-http-handler"; -import { invalidProvider } from "@smithy/invalid-dependency"; -import { calculateBodyLength } from "@smithy/util-body-length-browser"; -import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/util-retry"; -import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared"; -import { loadConfigsForDefaultMode } from "@smithy/smithy-client"; -import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-browser"; -export const getRuntimeConfig = (config) => { - const defaultsMode = resolveDefaultsModeConfig(config); - const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); - const clientSharedValues = getSharedRuntimeConfig(config); - return { - ...clientSharedValues, - ...config, - runtime: "browser", - defaultsMode, - bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: config?.credentialDefaultProvider ?? ((_) => () => Promise.reject(new Error("Credential is missing"))), - defaultUserAgentProvider: config?.defaultUserAgentProvider ?? - defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), - maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS, - region: config?.region ?? invalidProvider("Region is missing"), - requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider), - retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE), - sha256: config?.sha256 ?? Sha256, - streamCollector: config?.streamCollector ?? streamCollector, - useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)), - useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)), - }; -}; diff --git a/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.js b/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.js deleted file mode 100644 index 5c9abc68..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.js +++ /dev/null @@ -1,45 +0,0 @@ -import packageInfo from "../package.json"; -import { decorateDefaultCredentialProvider } from "./defaultStsRoleAssumers"; -import { emitWarningIfUnsupportedVersion as awsCheckVersion } from "@aws-sdk/core"; -import { defaultProvider as credentialDefaultProvider } from "@aws-sdk/credential-provider-node"; -import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; -import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver"; -import { Hash } from "@smithy/hash-node"; -import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry"; -import { loadConfig as loadNodeConfig } from "@smithy/node-config-provider"; -import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler"; -import { calculateBodyLength } from "@smithy/util-body-length-node"; -import { DEFAULT_RETRY_MODE } from "@smithy/util-retry"; -import { getRuntimeConfig as getSharedRuntimeConfig } from "./runtimeConfig.shared"; -import { loadConfigsForDefaultMode } from "@smithy/smithy-client"; -import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node"; -import { emitWarningIfUnsupportedVersion } from "@smithy/smithy-client"; -export const getRuntimeConfig = (config) => { - emitWarningIfUnsupportedVersion(process.version); - const defaultsMode = resolveDefaultsModeConfig(config); - const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); - const clientSharedValues = getSharedRuntimeConfig(config); - awsCheckVersion(process.version); - return { - ...clientSharedValues, - ...config, - runtime: "node", - defaultsMode, - bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - credentialDefaultProvider: config?.credentialDefaultProvider ?? decorateDefaultCredentialProvider(credentialDefaultProvider), - defaultUserAgentProvider: config?.defaultUserAgentProvider ?? - defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: packageInfo.version }), - maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), - region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), - requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider), - retryMode: config?.retryMode ?? - loadNodeConfig({ - ...NODE_RETRY_MODE_CONFIG_OPTIONS, - default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE, - }), - sha256: config?.sha256 ?? Hash.bind(null, "sha256"), - streamCollector: config?.streamCollector ?? streamCollector, - useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), - useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), - }; -}; diff --git a/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.native.js b/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.native.js deleted file mode 100644 index 0b546952..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.native.js +++ /dev/null @@ -1,11 +0,0 @@ -import { Sha256 } from "@aws-crypto/sha256-js"; -import { getRuntimeConfig as getBrowserRuntimeConfig } from "./runtimeConfig.browser"; -export const getRuntimeConfig = (config) => { - const browserDefaults = getBrowserRuntimeConfig(config); - return { - ...browserDefaults, - ...config, - runtime: "react-native", - sha256: config?.sha256 ?? Sha256, - }; -}; diff --git a/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.shared.js b/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.shared.js deleted file mode 100644 index 1da24673..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-es/runtimeConfig.shared.js +++ /dev/null @@ -1,20 +0,0 @@ -import { NoOpLogger } from "@smithy/smithy-client"; -import { parseUrl } from "@smithy/url-parser"; -import { fromBase64, toBase64 } from "@smithy/util-base64"; -import { fromUtf8, toUtf8 } from "@smithy/util-utf8"; -import { defaultEndpointResolver } from "./endpoint/endpointResolver"; -export const getRuntimeConfig = (config) => { - return { - apiVersion: "2011-06-15", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "STS", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, - }; -}; diff --git a/node_modules/@aws-sdk/client-sts/dist-es/runtimeExtensions.js b/node_modules/@aws-sdk/client-sts/dist-es/runtimeExtensions.js deleted file mode 100644 index f68de417..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-es/runtimeExtensions.js +++ /dev/null @@ -1,18 +0,0 @@ -import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, } from "@aws-sdk/region-config-resolver"; -import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http"; -import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client"; -const asPartial = (t) => t; -export const resolveRuntimeExtensions = (runtimeConfig, extensions) => { - const extensionConfiguration = { - ...asPartial(getAwsRegionExtensionConfiguration(runtimeConfig)), - ...asPartial(getDefaultExtensionConfiguration(runtimeConfig)), - ...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)), - }; - extensions.forEach((extension) => extension.configure(extensionConfiguration)); - return { - ...runtimeConfig, - ...resolveAwsRegionExtensionConfiguration(extensionConfiguration), - ...resolveDefaultRuntimeConfig(extensionConfiguration), - ...resolveHttpHandlerRuntimeConfig(extensionConfiguration), - }; -}; diff --git a/node_modules/@aws-sdk/client-sts/dist-types/STS.d.ts b/node_modules/@aws-sdk/client-sts/dist-types/STS.d.ts deleted file mode 100644 index 9b5a8f07..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-types/STS.d.ts +++ /dev/null @@ -1,69 +0,0 @@ -import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types"; -import { AssumeRoleCommandInput, AssumeRoleCommandOutput } from "./commands/AssumeRoleCommand"; -import { AssumeRoleWithSAMLCommandInput, AssumeRoleWithSAMLCommandOutput } from "./commands/AssumeRoleWithSAMLCommand"; -import { AssumeRoleWithWebIdentityCommandInput, AssumeRoleWithWebIdentityCommandOutput } from "./commands/AssumeRoleWithWebIdentityCommand"; -import { DecodeAuthorizationMessageCommandInput, DecodeAuthorizationMessageCommandOutput } from "./commands/DecodeAuthorizationMessageCommand"; -import { GetAccessKeyInfoCommandInput, GetAccessKeyInfoCommandOutput } from "./commands/GetAccessKeyInfoCommand"; -import { GetCallerIdentityCommandInput, GetCallerIdentityCommandOutput } from "./commands/GetCallerIdentityCommand"; -import { GetFederationTokenCommandInput, GetFederationTokenCommandOutput } from "./commands/GetFederationTokenCommand"; -import { GetSessionTokenCommandInput, GetSessionTokenCommandOutput } from "./commands/GetSessionTokenCommand"; -import { STSClient } from "./STSClient"; -export interface STS { - /** - * @see {@link AssumeRoleCommand} - */ - assumeRole(args: AssumeRoleCommandInput, options?: __HttpHandlerOptions): Promise; - assumeRole(args: AssumeRoleCommandInput, cb: (err: any, data?: AssumeRoleCommandOutput) => void): void; - assumeRole(args: AssumeRoleCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AssumeRoleCommandOutput) => void): void; - /** - * @see {@link AssumeRoleWithSAMLCommand} - */ - assumeRoleWithSAML(args: AssumeRoleWithSAMLCommandInput, options?: __HttpHandlerOptions): Promise; - assumeRoleWithSAML(args: AssumeRoleWithSAMLCommandInput, cb: (err: any, data?: AssumeRoleWithSAMLCommandOutput) => void): void; - assumeRoleWithSAML(args: AssumeRoleWithSAMLCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AssumeRoleWithSAMLCommandOutput) => void): void; - /** - * @see {@link AssumeRoleWithWebIdentityCommand} - */ - assumeRoleWithWebIdentity(args: AssumeRoleWithWebIdentityCommandInput, options?: __HttpHandlerOptions): Promise; - assumeRoleWithWebIdentity(args: AssumeRoleWithWebIdentityCommandInput, cb: (err: any, data?: AssumeRoleWithWebIdentityCommandOutput) => void): void; - assumeRoleWithWebIdentity(args: AssumeRoleWithWebIdentityCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: AssumeRoleWithWebIdentityCommandOutput) => void): void; - /** - * @see {@link DecodeAuthorizationMessageCommand} - */ - decodeAuthorizationMessage(args: DecodeAuthorizationMessageCommandInput, options?: __HttpHandlerOptions): Promise; - decodeAuthorizationMessage(args: DecodeAuthorizationMessageCommandInput, cb: (err: any, data?: DecodeAuthorizationMessageCommandOutput) => void): void; - decodeAuthorizationMessage(args: DecodeAuthorizationMessageCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: DecodeAuthorizationMessageCommandOutput) => void): void; - /** - * @see {@link GetAccessKeyInfoCommand} - */ - getAccessKeyInfo(args: GetAccessKeyInfoCommandInput, options?: __HttpHandlerOptions): Promise; - getAccessKeyInfo(args: GetAccessKeyInfoCommandInput, cb: (err: any, data?: GetAccessKeyInfoCommandOutput) => void): void; - getAccessKeyInfo(args: GetAccessKeyInfoCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetAccessKeyInfoCommandOutput) => void): void; - /** - * @see {@link GetCallerIdentityCommand} - */ - getCallerIdentity(args: GetCallerIdentityCommandInput, options?: __HttpHandlerOptions): Promise; - getCallerIdentity(args: GetCallerIdentityCommandInput, cb: (err: any, data?: GetCallerIdentityCommandOutput) => void): void; - getCallerIdentity(args: GetCallerIdentityCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetCallerIdentityCommandOutput) => void): void; - /** - * @see {@link GetFederationTokenCommand} - */ - getFederationToken(args: GetFederationTokenCommandInput, options?: __HttpHandlerOptions): Promise; - getFederationToken(args: GetFederationTokenCommandInput, cb: (err: any, data?: GetFederationTokenCommandOutput) => void): void; - getFederationToken(args: GetFederationTokenCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetFederationTokenCommandOutput) => void): void; - /** - * @see {@link GetSessionTokenCommand} - */ - getSessionToken(args: GetSessionTokenCommandInput, options?: __HttpHandlerOptions): Promise; - getSessionToken(args: GetSessionTokenCommandInput, cb: (err: any, data?: GetSessionTokenCommandOutput) => void): void; - getSessionToken(args: GetSessionTokenCommandInput, options: __HttpHandlerOptions, cb: (err: any, data?: GetSessionTokenCommandOutput) => void): void; -} -/** - * @public - * Security Token Service - *

Security Token Service (STS) enables you to request temporary, limited-privilege - * credentials for users. This guide provides descriptions of the STS API. For - * more information about using this service, see Temporary Security Credentials.

- */ -export declare class STS extends STSClient implements STS { -} diff --git a/node_modules/@aws-sdk/client-sts/dist-types/STSClient.d.ts b/node_modules/@aws-sdk/client-sts/dist-types/STSClient.d.ts deleted file mode 100644 index f7aa9519..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-types/STSClient.d.ts +++ /dev/null @@ -1,180 +0,0 @@ -import { HostHeaderInputConfig, HostHeaderResolvedConfig } from "@aws-sdk/middleware-host-header"; -import { StsAuthInputConfig, StsAuthResolvedConfig } from "@aws-sdk/middleware-sdk-sts"; -import { UserAgentInputConfig, UserAgentResolvedConfig } from "@aws-sdk/middleware-user-agent"; -import { Credentials as __Credentials } from "@aws-sdk/types"; -import { RegionInputConfig, RegionResolvedConfig } from "@smithy/config-resolver"; -import { EndpointInputConfig, EndpointResolvedConfig } from "@smithy/middleware-endpoint"; -import { RetryInputConfig, RetryResolvedConfig } from "@smithy/middleware-retry"; -import { HttpHandler as __HttpHandler } from "@smithy/protocol-http"; -import { Client as __Client, DefaultsMode as __DefaultsMode, SmithyConfiguration as __SmithyConfiguration, SmithyResolvedConfiguration as __SmithyResolvedConfiguration } from "@smithy/smithy-client"; -import { BodyLengthCalculator as __BodyLengthCalculator, CheckOptionalClientConfig as __CheckOptionalClientConfig, ChecksumConstructor as __ChecksumConstructor, Decoder as __Decoder, Encoder as __Encoder, HashConstructor as __HashConstructor, HttpHandlerOptions as __HttpHandlerOptions, Logger as __Logger, Provider as __Provider, Provider, StreamCollector as __StreamCollector, UrlParser as __UrlParser, UserAgent as __UserAgent } from "@smithy/types"; -import { AssumeRoleCommandInput, AssumeRoleCommandOutput } from "./commands/AssumeRoleCommand"; -import { AssumeRoleWithSAMLCommandInput, AssumeRoleWithSAMLCommandOutput } from "./commands/AssumeRoleWithSAMLCommand"; -import { AssumeRoleWithWebIdentityCommandInput, AssumeRoleWithWebIdentityCommandOutput } from "./commands/AssumeRoleWithWebIdentityCommand"; -import { DecodeAuthorizationMessageCommandInput, DecodeAuthorizationMessageCommandOutput } from "./commands/DecodeAuthorizationMessageCommand"; -import { GetAccessKeyInfoCommandInput, GetAccessKeyInfoCommandOutput } from "./commands/GetAccessKeyInfoCommand"; -import { GetCallerIdentityCommandInput, GetCallerIdentityCommandOutput } from "./commands/GetCallerIdentityCommand"; -import { GetFederationTokenCommandInput, GetFederationTokenCommandOutput } from "./commands/GetFederationTokenCommand"; -import { GetSessionTokenCommandInput, GetSessionTokenCommandOutput } from "./commands/GetSessionTokenCommand"; -import { ClientInputEndpointParameters, ClientResolvedEndpointParameters, EndpointParameters } from "./endpoint/EndpointParameters"; -import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions"; -export { __Client }; -/** - * @public - */ -export type ServiceInputTypes = AssumeRoleCommandInput | AssumeRoleWithSAMLCommandInput | AssumeRoleWithWebIdentityCommandInput | DecodeAuthorizationMessageCommandInput | GetAccessKeyInfoCommandInput | GetCallerIdentityCommandInput | GetFederationTokenCommandInput | GetSessionTokenCommandInput; -/** - * @public - */ -export type ServiceOutputTypes = AssumeRoleCommandOutput | AssumeRoleWithSAMLCommandOutput | AssumeRoleWithWebIdentityCommandOutput | DecodeAuthorizationMessageCommandOutput | GetAccessKeyInfoCommandOutput | GetCallerIdentityCommandOutput | GetFederationTokenCommandOutput | GetSessionTokenCommandOutput; -/** - * @public - */ -export interface ClientDefaults extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> { - /** - * The HTTP handler to use. Fetch in browser and Https in Nodejs. - */ - requestHandler?: __HttpHandler; - /** - * A constructor for a class implementing the {@link @smithy/types#ChecksumConstructor} interface - * that computes the SHA-256 HMAC or checksum of a string or binary buffer. - * @internal - */ - sha256?: __ChecksumConstructor | __HashConstructor; - /** - * The function that will be used to convert strings into HTTP endpoints. - * @internal - */ - urlParser?: __UrlParser; - /** - * A function that can calculate the length of a request body. - * @internal - */ - bodyLengthChecker?: __BodyLengthCalculator; - /** - * A function that converts a stream into an array of bytes. - * @internal - */ - streamCollector?: __StreamCollector; - /** - * The function that will be used to convert a base64-encoded string to a byte array. - * @internal - */ - base64Decoder?: __Decoder; - /** - * The function that will be used to convert binary data to a base64-encoded string. - * @internal - */ - base64Encoder?: __Encoder; - /** - * The function that will be used to convert a UTF8-encoded string to a byte array. - * @internal - */ - utf8Decoder?: __Decoder; - /** - * The function that will be used to convert binary data to a UTF-8 encoded string. - * @internal - */ - utf8Encoder?: __Encoder; - /** - * The runtime environment. - * @internal - */ - runtime?: string; - /** - * Disable dynamically changing the endpoint of the client based on the hostPrefix - * trait of an operation. - */ - disableHostPrefix?: boolean; - /** - * Unique service identifier. - * @internal - */ - serviceId?: string; - /** - * Enables IPv6/IPv4 dualstack endpoint. - */ - useDualstackEndpoint?: boolean | __Provider; - /** - * Enables FIPS compatible endpoints. - */ - useFipsEndpoint?: boolean | __Provider; - /** - * The AWS region to which this client will send requests - */ - region?: string | __Provider; - /** - * Default credentials provider; Not available in browser runtime. - * @internal - */ - credentialDefaultProvider?: (input: any) => __Provider<__Credentials>; - /** - * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header - * @internal - */ - defaultUserAgentProvider?: Provider<__UserAgent>; - /** - * Value for how many times a request will be made at most in case of retry. - */ - maxAttempts?: number | __Provider; - /** - * Specifies which retry algorithm to use. - * @see https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-smithy-util-retry/Enum/RETRY_MODES/ - * - */ - retryMode?: string | __Provider; - /** - * Optional logger for logging debug/info/warn/error. - */ - logger?: __Logger; - /** - * Optional extensions - */ - extensions?: RuntimeExtension[]; - /** - * The {@link @smithy/smithy-client#DefaultsMode} that will be used to determine how certain default configuration options are resolved in the SDK. - */ - defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>; -} -/** - * @public - */ -export type STSClientConfigType = Partial<__SmithyConfiguration<__HttpHandlerOptions>> & ClientDefaults & RegionInputConfig & EndpointInputConfig & RetryInputConfig & HostHeaderInputConfig & StsAuthInputConfig & UserAgentInputConfig & ClientInputEndpointParameters; -/** - * @public - * - * The configuration interface of STSClient class constructor that set the region, credentials and other options. - */ -export interface STSClientConfig extends STSClientConfigType { -} -/** - * @public - */ -export type STSClientResolvedConfigType = __SmithyResolvedConfiguration<__HttpHandlerOptions> & Required & RuntimeExtensionsConfig & RegionResolvedConfig & EndpointResolvedConfig & RetryResolvedConfig & HostHeaderResolvedConfig & StsAuthResolvedConfig & UserAgentResolvedConfig & ClientResolvedEndpointParameters; -/** - * @public - * - * The resolved configuration interface of STSClient class. This is resolved and normalized from the {@link STSClientConfig | constructor configuration interface}. - */ -export interface STSClientResolvedConfig extends STSClientResolvedConfigType { -} -/** - * @public - * Security Token Service - *

Security Token Service (STS) enables you to request temporary, limited-privilege - * credentials for users. This guide provides descriptions of the STS API. For - * more information about using this service, see Temporary Security Credentials.

- */ -export declare class STSClient extends __Client<__HttpHandlerOptions, ServiceInputTypes, ServiceOutputTypes, STSClientResolvedConfig> { - /** - * The resolved configuration of STSClient class. This is resolved and normalized from the {@link STSClientConfig | constructor configuration interface}. - */ - readonly config: STSClientResolvedConfig; - constructor(...[configuration]: __CheckOptionalClientConfig); - /** - * Destroy underlying resources, like sockets. It's usually not necessary to do this. - * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed. - * Otherwise, sockets might stay open for quite a long time before the server terminates them. - */ - destroy(): void; -} diff --git a/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRoleCommand.d.ts b/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRoleCommand.d.ts deleted file mode 100644 index bf13b9af..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRoleCommand.d.ts +++ /dev/null @@ -1,271 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { AssumeRoleRequest, AssumeRoleResponse } from "../models/models_0"; -import { ServiceInputTypes, ServiceOutputTypes, STSClientResolvedConfig } from "../STSClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link AssumeRoleCommand}. - */ -export interface AssumeRoleCommandInput extends AssumeRoleRequest { -} -/** - * @public - * - * The output of {@link AssumeRoleCommand}. - */ -export interface AssumeRoleCommandOutput extends AssumeRoleResponse, __MetadataBearer { -} -/** - * @public - *

Returns a set of temporary security credentials that you can use to access Amazon Web Services - * resources. These temporary credentials consist of an access key ID, a secret access key, - * and a security token. Typically, you use AssumeRole within your account or for - * cross-account access. For a comparison of AssumeRole with other API operations - * that produce temporary credentials, see Requesting Temporary Security - * Credentials and Comparing the - * Amazon Web Services STS API operations in the IAM User Guide.

- *

- * Permissions - *

- *

The temporary security credentials created by AssumeRole can be used to - * make API calls to any Amazon Web Services service with the following exception: You cannot call the - * Amazon Web Services STS GetFederationToken or GetSessionToken API - * operations.

- *

(Optional) You can pass inline or managed session policies to - * this operation. You can pass a single JSON policy document to use as an inline session - * policy. You can also specify up to 10 managed policy Amazon Resource Names (ARNs) to use as - * managed session policies. The plaintext that you use for both inline and managed session - * policies can't exceed 2,048 characters. Passing policies to this operation returns new - * temporary credentials. The resulting session's permissions are the intersection of the - * role's identity-based policy and the session policies. You can use the role's temporary - * credentials in subsequent Amazon Web Services API calls to access resources in the account that owns - * the role. You cannot use session policies to grant more permissions than those allowed - * by the identity-based policy of the role that is being assumed. For more information, see - * Session - * Policies in the IAM User Guide.

- *

When you create a role, you create two policies: a role trust policy that specifies - * who can assume the role, and a permissions policy that specifies - * what can be done with the role. You specify the trusted principal - * that is allowed to assume the role in the role trust policy.

- *

To assume a role from a different account, your Amazon Web Services account must be trusted by the - * role. The trust relationship is defined in the role's trust policy when the role is - * created. That trust policy states which accounts are allowed to delegate that access to - * users in the account.

- *

A user who wants to access a role in a different account must also have permissions that - * are delegated from the account administrator. The administrator must attach a policy that - * allows the user to call AssumeRole for the ARN of the role in the other - * account.

- *

To allow a user to assume a role in the same account, you can do either of the - * following:

- *
    - *
  • - *

    Attach a policy to the user that allows the user to call AssumeRole - * (as long as the role's trust policy trusts the account).

    - *
  • - *
  • - *

    Add the user as a principal directly in the role's trust policy.

    - *
  • - *
- *

You can do either because the role’s trust policy acts as an IAM resource-based - * policy. When a resource-based policy grants access to a principal in the same account, no - * additional identity-based policy is required. For more information about trust policies and - * resource-based policies, see IAM Policies in the - * IAM User Guide.

- *

- * Tags - *

- *

(Optional) You can pass tag key-value pairs to your session. These tags are called - * session tags. For more information about session tags, see Passing Session Tags in STS in the - * IAM User Guide.

- *

An administrator must grant you the permissions necessary to pass session tags. The - * administrator can also create granular permissions to allow you to pass only specific - * session tags. For more information, see Tutorial: Using Tags - * for Attribute-Based Access Control in the - * IAM User Guide.

- *

You can set the session tags as transitive. Transitive tags persist during role - * chaining. For more information, see Chaining Roles - * with Session Tags in the IAM User Guide.

- *

- * Using MFA with AssumeRole - *

- *

(Optional) You can include multi-factor authentication (MFA) information when you call - * AssumeRole. This is useful for cross-account scenarios to ensure that the - * user that assumes the role has been authenticated with an Amazon Web Services MFA device. In that - * scenario, the trust policy of the role being assumed includes a condition that tests for - * MFA authentication. If the caller does not include valid MFA information, the request to - * assume the role is denied. The condition in a trust policy that tests for MFA - * authentication might look like the following example.

- *

- * "Condition": \{"Bool": \{"aws:MultiFactorAuthPresent": true\}\} - *

- *

For more information, see Configuring MFA-Protected API Access - * in the IAM User Guide guide.

- *

To use MFA with AssumeRole, you pass values for the - * SerialNumber and TokenCode parameters. The - * SerialNumber value identifies the user's hardware or virtual MFA device. - * The TokenCode is the time-based one-time password (TOTP) that the MFA device - * produces.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { STSClient, AssumeRoleCommand } from "@aws-sdk/client-sts"; // ES Modules import - * // const { STSClient, AssumeRoleCommand } = require("@aws-sdk/client-sts"); // CommonJS import - * const client = new STSClient(config); - * const input = { // AssumeRoleRequest - * RoleArn: "STRING_VALUE", // required - * RoleSessionName: "STRING_VALUE", // required - * PolicyArns: [ // policyDescriptorListType - * { // PolicyDescriptorType - * arn: "STRING_VALUE", - * }, - * ], - * Policy: "STRING_VALUE", - * DurationSeconds: Number("int"), - * Tags: [ // tagListType - * { // Tag - * Key: "STRING_VALUE", // required - * Value: "STRING_VALUE", // required - * }, - * ], - * TransitiveTagKeys: [ // tagKeyListType - * "STRING_VALUE", - * ], - * ExternalId: "STRING_VALUE", - * SerialNumber: "STRING_VALUE", - * TokenCode: "STRING_VALUE", - * SourceIdentity: "STRING_VALUE", - * ProvidedContexts: [ // ProvidedContextsListType - * { // ProvidedContext - * ProviderArn: "STRING_VALUE", - * ContextAssertion: "STRING_VALUE", - * }, - * ], - * }; - * const command = new AssumeRoleCommand(input); - * const response = await client.send(command); - * // { // AssumeRoleResponse - * // Credentials: { // Credentials - * // AccessKeyId: "STRING_VALUE", // required - * // SecretAccessKey: "STRING_VALUE", // required - * // SessionToken: "STRING_VALUE", // required - * // Expiration: new Date("TIMESTAMP"), // required - * // }, - * // AssumedRoleUser: { // AssumedRoleUser - * // AssumedRoleId: "STRING_VALUE", // required - * // Arn: "STRING_VALUE", // required - * // }, - * // PackedPolicySize: Number("int"), - * // SourceIdentity: "STRING_VALUE", - * // }; - * - * ``` - * - * @param AssumeRoleCommandInput - {@link AssumeRoleCommandInput} - * @returns {@link AssumeRoleCommandOutput} - * @see {@link AssumeRoleCommandInput} for command's `input` shape. - * @see {@link AssumeRoleCommandOutput} for command's `response` shape. - * @see {@link STSClientResolvedConfig | config} for STSClient's `config` shape. - * - * @throws {@link ExpiredTokenException} (client fault) - *

The web identity token that was passed is expired or is not valid. Get a new identity - * token from the identity provider and then retry the request.

- * - * @throws {@link MalformedPolicyDocumentException} (client fault) - *

The request was rejected because the policy document was malformed. The error message - * describes the specific error.

- * - * @throws {@link PackedPolicyTooLargeException} (client fault) - *

The request was rejected because the total packed size of the session policies and - * session tags combined was too large. An Amazon Web Services conversion compresses the session policy - * document, session policy ARNs, and session tags into a packed binary format that has a - * separate limit. The error message indicates by percentage how close the policies and - * tags are to the upper size limit. For more information, see Passing Session Tags in STS in - * the IAM User Guide.

- *

You could receive this error even though you meet other defined session policy and - * session tag limits. For more information, see IAM and STS Entity - * Character Limits in the IAM User Guide.

- * - * @throws {@link RegionDisabledException} (client fault) - *

STS is not activated in the requested region for the account that is being asked to - * generate credentials. The account administrator must use the IAM console to activate STS - * in that region. For more information, see Activating and - * Deactivating Amazon Web Services STS in an Amazon Web Services Region in the IAM User - * Guide.

- * - * @throws {@link STSServiceException} - *

Base exception class for all service exceptions from STS service.

- * - * @example To assume a role - * ```javascript - * // - * const input = { - * "ExternalId": "123ABC", - * "Policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Sid\":\"Stmt1\",\"Effect\":\"Allow\",\"Action\":\"s3:ListAllMyBuckets\",\"Resource\":\"*\"}]}", - * "RoleArn": "arn:aws:iam::123456789012:role/demo", - * "RoleSessionName": "testAssumeRoleSession", - * "Tags": [ - * { - * "Key": "Project", - * "Value": "Unicorn" - * }, - * { - * "Key": "Team", - * "Value": "Automation" - * }, - * { - * "Key": "Cost-Center", - * "Value": "12345" - * } - * ], - * "TransitiveTagKeys": [ - * "Project", - * "Cost-Center" - * ] - * }; - * const command = new AssumeRoleCommand(input); - * const response = await client.send(command); - * /* response == - * { - * "AssumedRoleUser": { - * "Arn": "arn:aws:sts::123456789012:assumed-role/demo/Bob", - * "AssumedRoleId": "ARO123EXAMPLE123:Bob" - * }, - * "Credentials": { - * "AccessKeyId": "AKIAIOSFODNN7EXAMPLE", - * "Expiration": "2011-07-15T23:28:33.359Z", - * "SecretAccessKey": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYzEXAMPLEKEY", - * "SessionToken": "AQoDYXdzEPT//////////wEXAMPLEtc764bNrC9SAPBSM22wDOk4x4HIZ8j4FZTwdQWLWsKWHGBuFqwAeMicRXmxfpSPfIeoIYRqTflfKD8YUuwthAx7mSEI/qkPpKPi/kMcGdQrmGdeehM4IC1NtBmUpp2wUE8phUZampKsburEDy0KPkyQDYwT7WZ0wq5VSXDvp75YU9HFvlRd8Tx6q6fE8YQcHNVXAkiY9q6d+xo0rKwT38xVqr7ZD0u0iPPkUL64lIZbqBAz+scqKmlzm8FDrypNC9Yjc8fPOLn9FX9KSYvKTr4rvx3iSIlTJabIQwj2ICCR/oLxBA==" - * }, - * "PackedPolicySize": 8 - * } - * *\/ - * // example id: to-assume-a-role-1480532402212 - * ``` - * - */ -export declare class AssumeRoleCommand extends $Command { - readonly input: AssumeRoleCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: AssumeRoleCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: STSClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRoleWithSAMLCommand.d.ts b/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRoleWithSAMLCommand.d.ts deleted file mode 100644 index d558f51d..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRoleWithSAMLCommand.d.ts +++ /dev/null @@ -1,296 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { AssumeRoleWithSAMLRequest, AssumeRoleWithSAMLResponse } from "../models/models_0"; -import { ServiceInputTypes, ServiceOutputTypes, STSClientResolvedConfig } from "../STSClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link AssumeRoleWithSAMLCommand}. - */ -export interface AssumeRoleWithSAMLCommandInput extends AssumeRoleWithSAMLRequest { -} -/** - * @public - * - * The output of {@link AssumeRoleWithSAMLCommand}. - */ -export interface AssumeRoleWithSAMLCommandOutput extends AssumeRoleWithSAMLResponse, __MetadataBearer { -} -/** - * @public - *

Returns a set of temporary security credentials for users who have been authenticated - * via a SAML authentication response. This operation provides a mechanism for tying an - * enterprise identity store or directory to role-based Amazon Web Services access without user-specific - * credentials or configuration. For a comparison of AssumeRoleWithSAML with the - * other API operations that produce temporary credentials, see Requesting Temporary Security - * Credentials and Comparing the - * Amazon Web Services STS API operations in the IAM User Guide.

- *

The temporary security credentials returned by this operation consist of an access key - * ID, a secret access key, and a security token. Applications can use these temporary - * security credentials to sign calls to Amazon Web Services services.

- *

- * Session Duration - *

- *

By default, the temporary security credentials created by - * AssumeRoleWithSAML last for one hour. However, you can use the optional - * DurationSeconds parameter to specify the duration of your session. Your - * role session lasts for the duration that you specify, or until the time specified in the - * SAML authentication response's SessionNotOnOrAfter value, whichever is - * shorter. You can provide a DurationSeconds value from 900 seconds (15 minutes) - * up to the maximum session duration setting for the role. This setting can have a value from - * 1 hour to 12 hours. To learn how to view the maximum value for your role, see View the - * Maximum Session Duration Setting for a Role in the - * IAM User Guide. The maximum session duration limit applies when - * you use the AssumeRole* API operations or the assume-role* CLI - * commands. However the limit does not apply when you use those operations to create a - * console URL. For more information, see Using IAM Roles in the - * IAM User Guide.

- * - *

- * Role chaining limits your CLI or Amazon Web Services API role - * session to a maximum of one hour. When you use the AssumeRole API operation - * to assume a role, you can specify the duration of your role session with the - * DurationSeconds parameter. You can specify a parameter value of up to - * 43200 seconds (12 hours), depending on the maximum session duration setting for your - * role. However, if you assume a role using role chaining and provide a - * DurationSeconds parameter value greater than one hour, the operation - * fails.

- *
- *

- * Permissions - *

- *

The temporary security credentials created by AssumeRoleWithSAML can be - * used to make API calls to any Amazon Web Services service with the following exception: you cannot call - * the STS GetFederationToken or GetSessionToken API - * operations.

- *

(Optional) You can pass inline or managed session policies to - * this operation. You can pass a single JSON policy document to use as an inline session - * policy. You can also specify up to 10 managed policy Amazon Resource Names (ARNs) to use as - * managed session policies. The plaintext that you use for both inline and managed session - * policies can't exceed 2,048 characters. Passing policies to this operation returns new - * temporary credentials. The resulting session's permissions are the intersection of the - * role's identity-based policy and the session policies. You can use the role's temporary - * credentials in subsequent Amazon Web Services API calls to access resources in the account that owns - * the role. You cannot use session policies to grant more permissions than those allowed - * by the identity-based policy of the role that is being assumed. For more information, see - * Session - * Policies in the IAM User Guide.

- *

Calling AssumeRoleWithSAML does not require the use of Amazon Web Services security - * credentials. The identity of the caller is validated by using keys in the metadata document - * that is uploaded for the SAML provider entity for your identity provider.

- * - *

Calling AssumeRoleWithSAML can result in an entry in your CloudTrail logs. - * The entry includes the value in the NameID element of the SAML assertion. - * We recommend that you use a NameIDType that is not associated with any - * personally identifiable information (PII). For example, you could instead use the - * persistent identifier - * (urn:oasis:names:tc:SAML:2.0:nameid-format:persistent).

- *
- *

- * Tags - *

- *

(Optional) You can configure your IdP to pass attributes into your SAML assertion as - * session tags. Each session tag consists of a key name and an associated value. For more - * information about session tags, see Passing Session Tags in STS in the - * IAM User Guide.

- *

You can pass up to 50 session tags. The plaintext session tag keys can’t exceed 128 - * characters and the values can’t exceed 256 characters. For these and additional limits, see - * IAM - * and STS Character Limits in the IAM User Guide.

- * - *

An Amazon Web Services conversion compresses the passed inline session policy, managed policy ARNs, - * and session tags into a packed binary format that has a separate limit. Your request can - * fail for this limit even if your plaintext meets the other requirements. The - * PackedPolicySize response element indicates by percentage how close the - * policies and tags for your request are to the upper size limit.

- *
- *

You can pass a session tag with the same key as a tag that is attached to the role. When - * you do, session tags override the role's tags with the same key.

- *

An administrator must grant you the permissions necessary to pass session tags. The - * administrator can also create granular permissions to allow you to pass only specific - * session tags. For more information, see Tutorial: Using Tags - * for Attribute-Based Access Control in the - * IAM User Guide.

- *

You can set the session tags as transitive. Transitive tags persist during role - * chaining. For more information, see Chaining Roles - * with Session Tags in the IAM User Guide.

- *

- * SAML Configuration - *

- *

Before your application can call AssumeRoleWithSAML, you must configure - * your SAML identity provider (IdP) to issue the claims required by Amazon Web Services. Additionally, you - * must use Identity and Access Management (IAM) to create a SAML provider entity in your Amazon Web Services account that - * represents your identity provider. You must also create an IAM role that specifies this - * SAML provider in its trust policy.

- *

For more information, see the following resources:

- * - * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { STSClient, AssumeRoleWithSAMLCommand } from "@aws-sdk/client-sts"; // ES Modules import - * // const { STSClient, AssumeRoleWithSAMLCommand } = require("@aws-sdk/client-sts"); // CommonJS import - * const client = new STSClient(config); - * const input = { // AssumeRoleWithSAMLRequest - * RoleArn: "STRING_VALUE", // required - * PrincipalArn: "STRING_VALUE", // required - * SAMLAssertion: "STRING_VALUE", // required - * PolicyArns: [ // policyDescriptorListType - * { // PolicyDescriptorType - * arn: "STRING_VALUE", - * }, - * ], - * Policy: "STRING_VALUE", - * DurationSeconds: Number("int"), - * }; - * const command = new AssumeRoleWithSAMLCommand(input); - * const response = await client.send(command); - * // { // AssumeRoleWithSAMLResponse - * // Credentials: { // Credentials - * // AccessKeyId: "STRING_VALUE", // required - * // SecretAccessKey: "STRING_VALUE", // required - * // SessionToken: "STRING_VALUE", // required - * // Expiration: new Date("TIMESTAMP"), // required - * // }, - * // AssumedRoleUser: { // AssumedRoleUser - * // AssumedRoleId: "STRING_VALUE", // required - * // Arn: "STRING_VALUE", // required - * // }, - * // PackedPolicySize: Number("int"), - * // Subject: "STRING_VALUE", - * // SubjectType: "STRING_VALUE", - * // Issuer: "STRING_VALUE", - * // Audience: "STRING_VALUE", - * // NameQualifier: "STRING_VALUE", - * // SourceIdentity: "STRING_VALUE", - * // }; - * - * ``` - * - * @param AssumeRoleWithSAMLCommandInput - {@link AssumeRoleWithSAMLCommandInput} - * @returns {@link AssumeRoleWithSAMLCommandOutput} - * @see {@link AssumeRoleWithSAMLCommandInput} for command's `input` shape. - * @see {@link AssumeRoleWithSAMLCommandOutput} for command's `response` shape. - * @see {@link STSClientResolvedConfig | config} for STSClient's `config` shape. - * - * @throws {@link ExpiredTokenException} (client fault) - *

The web identity token that was passed is expired or is not valid. Get a new identity - * token from the identity provider and then retry the request.

- * - * @throws {@link IDPRejectedClaimException} (client fault) - *

The identity provider (IdP) reported that authentication failed. This might be because - * the claim is invalid.

- *

If this error is returned for the AssumeRoleWithWebIdentity operation, it - * can also mean that the claim has expired or has been explicitly revoked.

- * - * @throws {@link InvalidIdentityTokenException} (client fault) - *

The web identity token that was passed could not be validated by Amazon Web Services. Get a new - * identity token from the identity provider and then retry the request.

- * - * @throws {@link MalformedPolicyDocumentException} (client fault) - *

The request was rejected because the policy document was malformed. The error message - * describes the specific error.

- * - * @throws {@link PackedPolicyTooLargeException} (client fault) - *

The request was rejected because the total packed size of the session policies and - * session tags combined was too large. An Amazon Web Services conversion compresses the session policy - * document, session policy ARNs, and session tags into a packed binary format that has a - * separate limit. The error message indicates by percentage how close the policies and - * tags are to the upper size limit. For more information, see Passing Session Tags in STS in - * the IAM User Guide.

- *

You could receive this error even though you meet other defined session policy and - * session tag limits. For more information, see IAM and STS Entity - * Character Limits in the IAM User Guide.

- * - * @throws {@link RegionDisabledException} (client fault) - *

STS is not activated in the requested region for the account that is being asked to - * generate credentials. The account administrator must use the IAM console to activate STS - * in that region. For more information, see Activating and - * Deactivating Amazon Web Services STS in an Amazon Web Services Region in the IAM User - * Guide.

- * - * @throws {@link STSServiceException} - *

Base exception class for all service exceptions from STS service.

- * - * @example To assume a role using a SAML assertion - * ```javascript - * // - * const input = { - * "DurationSeconds": 3600, - * "PrincipalArn": "arn:aws:iam::123456789012:saml-provider/SAML-test", - * "RoleArn": "arn:aws:iam::123456789012:role/TestSaml", - * "SAMLAssertion": "VERYLONGENCODEDASSERTIONEXAMPLExzYW1sOkF1ZGllbmNlPmJsYW5rPC9zYW1sOkF1ZGllbmNlPjwvc2FtbDpBdWRpZW5jZVJlc3RyaWN0aW9uPjwvc2FtbDpDb25kaXRpb25zPjxzYW1sOlN1YmplY3Q+PHNhbWw6TmFtZUlEIEZvcm1hdD0idXJuOm9hc2lzOm5hbWVzOnRjOlNBTUw6Mi4wOm5hbWVpZC1mb3JtYXQ6dHJhbnNpZW50Ij5TYW1sRXhhbXBsZTwvc2FtbDpOYW1lSUQ+PHNhbWw6U3ViamVjdENvbmZpcm1hdGlvbiBNZXRob2Q9InVybjpvYXNpczpuYW1lczp0YzpTQU1MOjIuMDpjbTpiZWFyZXIiPjxzYW1sOlN1YmplY3RDb25maXJtYXRpb25EYXRhIE5vdE9uT3JBZnRlcj0iMjAxOS0xMS0wMVQyMDoyNTowNS4xNDVaIiBSZWNpcGllbnQ9Imh0dHBzOi8vc2lnbmluLmF3cy5hbWF6b24uY29tL3NhbWwiLz48L3NhbWw6U3ViamVjdENvbmZpcm1hdGlvbj48L3NhbWw6U3ViamVjdD48c2FtbDpBdXRoblN0YXRlbWVudCBBdXRoPD94bWwgdmpSZXNwb25zZT4=" - * }; - * const command = new AssumeRoleWithSAMLCommand(input); - * const response = await client.send(command); - * /* response == - * { - * "AssumedRoleUser": { - * "Arn": "arn:aws:sts::123456789012:assumed-role/TestSaml", - * "AssumedRoleId": "ARO456EXAMPLE789:TestSaml" - * }, - * "Audience": "https://signin.aws.amazon.com/saml", - * "Credentials": { - * "AccessKeyId": "ASIAV3ZUEFP6EXAMPLE", - * "Expiration": "2019-11-01T20:26:47Z", - * "SecretAccessKey": "8P+SQvWIuLnKhh8d++jpw0nNmQRBZvNEXAMPLEKEY", - * "SessionToken": "IQoJb3JpZ2luX2VjEOz////////////////////wEXAMPLEtMSJHMEUCIDoKK3JH9uGQE1z0sINr5M4jk+Na8KHDcCYRVjJCZEvOAiEA3OvJGtw1EcViOleS2vhs8VdCKFJQWPQrmGdeehM4IC1NtBmUpp2wUE8phUZampKsburEDy0KPkyQDYwT7WZ0wq5VSXDvp75YU9HFvlRd8Tx6q6fE8YQcHNVXAkiY9q6d+xo0rKwT38xVqr7ZD0u0iPPkUL64lIZbqBAz+scqKmlzm8FDrypNC9Yjc8fPOLn9FX9KSYvKTr4rvx3iSIlTJabIQwj2ICCR/oLxBA==" - * }, - * "Issuer": "https://integ.example.com/idp/shibboleth", - * "NameQualifier": "SbdGOnUkh1i4+EXAMPLExL/jEvs=", - * "PackedPolicySize": 6, - * "Subject": "SamlExample", - * "SubjectType": "transient" - * } - * *\/ - * // example id: to-assume-role-with-saml-14882749597814 - * ``` - * - */ -export declare class AssumeRoleWithSAMLCommand extends $Command { - readonly input: AssumeRoleWithSAMLCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: AssumeRoleWithSAMLCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: STSClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRoleWithWebIdentityCommand.d.ts b/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRoleWithWebIdentityCommand.d.ts deleted file mode 100644 index a6590216..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-types/commands/AssumeRoleWithWebIdentityCommand.d.ts +++ /dev/null @@ -1,305 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { AssumeRoleWithWebIdentityRequest, AssumeRoleWithWebIdentityResponse } from "../models/models_0"; -import { ServiceInputTypes, ServiceOutputTypes, STSClientResolvedConfig } from "../STSClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link AssumeRoleWithWebIdentityCommand}. - */ -export interface AssumeRoleWithWebIdentityCommandInput extends AssumeRoleWithWebIdentityRequest { -} -/** - * @public - * - * The output of {@link AssumeRoleWithWebIdentityCommand}. - */ -export interface AssumeRoleWithWebIdentityCommandOutput extends AssumeRoleWithWebIdentityResponse, __MetadataBearer { -} -/** - * @public - *

Returns a set of temporary security credentials for users who have been authenticated in - * a mobile or web application with a web identity provider. Example providers include the - * OAuth 2.0 providers Login with Amazon and Facebook, or any OpenID Connect-compatible - * identity provider such as Google or Amazon Cognito federated identities.

- * - *

For mobile applications, we recommend that you use Amazon Cognito. You can use Amazon Cognito with the - * Amazon Web Services SDK for iOS Developer Guide and the Amazon Web Services SDK for Android Developer Guide to uniquely - * identify a user. You can also supply the user with a consistent identity throughout the - * lifetime of an application.

- *

To learn more about Amazon Cognito, see Amazon Cognito identity - * pools in Amazon Cognito Developer Guide.

- *
- *

Calling AssumeRoleWithWebIdentity does not require the use of Amazon Web Services - * security credentials. Therefore, you can distribute an application (for example, on mobile - * devices) that requests temporary security credentials without including long-term Amazon Web Services - * credentials in the application. You also don't need to deploy server-based proxy services - * that use long-term Amazon Web Services credentials. Instead, the identity of the caller is validated by - * using a token from the web identity provider. For a comparison of - * AssumeRoleWithWebIdentity with the other API operations that produce - * temporary credentials, see Requesting Temporary Security - * Credentials and Comparing the - * Amazon Web Services STS API operations in the IAM User Guide.

- *

The temporary security credentials returned by this API consist of an access key ID, a - * secret access key, and a security token. Applications can use these temporary security - * credentials to sign calls to Amazon Web Services service API operations.

- *

- * Session Duration - *

- *

By default, the temporary security credentials created by - * AssumeRoleWithWebIdentity last for one hour. However, you can use the - * optional DurationSeconds parameter to specify the duration of your session. - * You can provide a value from 900 seconds (15 minutes) up to the maximum session duration - * setting for the role. This setting can have a value from 1 hour to 12 hours. To learn how - * to view the maximum value for your role, see View the - * Maximum Session Duration Setting for a Role in the - * IAM User Guide. The maximum session duration limit applies when - * you use the AssumeRole* API operations or the assume-role* CLI - * commands. However the limit does not apply when you use those operations to create a - * console URL. For more information, see Using IAM Roles in the - * IAM User Guide.

- *

- * Permissions - *

- *

The temporary security credentials created by AssumeRoleWithWebIdentity can - * be used to make API calls to any Amazon Web Services service with the following exception: you cannot - * call the STS GetFederationToken or GetSessionToken API - * operations.

- *

(Optional) You can pass inline or managed session policies to - * this operation. You can pass a single JSON policy document to use as an inline session - * policy. You can also specify up to 10 managed policy Amazon Resource Names (ARNs) to use as - * managed session policies. The plaintext that you use for both inline and managed session - * policies can't exceed 2,048 characters. Passing policies to this operation returns new - * temporary credentials. The resulting session's permissions are the intersection of the - * role's identity-based policy and the session policies. You can use the role's temporary - * credentials in subsequent Amazon Web Services API calls to access resources in the account that owns - * the role. You cannot use session policies to grant more permissions than those allowed - * by the identity-based policy of the role that is being assumed. For more information, see - * Session - * Policies in the IAM User Guide.

- *

- * Tags - *

- *

(Optional) You can configure your IdP to pass attributes into your web identity token as - * session tags. Each session tag consists of a key name and an associated value. For more - * information about session tags, see Passing Session Tags in STS in the - * IAM User Guide.

- *

You can pass up to 50 session tags. The plaintext session tag keys can’t exceed 128 - * characters and the values can’t exceed 256 characters. For these and additional limits, see - * IAM - * and STS Character Limits in the IAM User Guide.

- * - *

An Amazon Web Services conversion compresses the passed inline session policy, managed policy ARNs, - * and session tags into a packed binary format that has a separate limit. Your request can - * fail for this limit even if your plaintext meets the other requirements. The - * PackedPolicySize response element indicates by percentage how close the - * policies and tags for your request are to the upper size limit.

- *
- *

You can pass a session tag with the same key as a tag that is attached to the role. When - * you do, the session tag overrides the role tag with the same key.

- *

An administrator must grant you the permissions necessary to pass session tags. The - * administrator can also create granular permissions to allow you to pass only specific - * session tags. For more information, see Tutorial: Using Tags - * for Attribute-Based Access Control in the - * IAM User Guide.

- *

You can set the session tags as transitive. Transitive tags persist during role - * chaining. For more information, see Chaining Roles - * with Session Tags in the IAM User Guide.

- *

- * Identities - *

- *

Before your application can call AssumeRoleWithWebIdentity, you must have - * an identity token from a supported identity provider and create a role that the application - * can assume. The role that your application assumes must trust the identity provider that is - * associated with the identity token. In other words, the identity provider must be specified - * in the role's trust policy.

- * - *

Calling AssumeRoleWithWebIdentity can result in an entry in your - * CloudTrail logs. The entry includes the Subject of - * the provided web identity token. We recommend that you avoid using any personally - * identifiable information (PII) in this field. For example, you could instead use a GUID - * or a pairwise identifier, as suggested - * in the OIDC specification.

- *
- *

For more information about how to use web identity federation and the - * AssumeRoleWithWebIdentity API, see the following resources:

- * - * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { STSClient, AssumeRoleWithWebIdentityCommand } from "@aws-sdk/client-sts"; // ES Modules import - * // const { STSClient, AssumeRoleWithWebIdentityCommand } = require("@aws-sdk/client-sts"); // CommonJS import - * const client = new STSClient(config); - * const input = { // AssumeRoleWithWebIdentityRequest - * RoleArn: "STRING_VALUE", // required - * RoleSessionName: "STRING_VALUE", // required - * WebIdentityToken: "STRING_VALUE", // required - * ProviderId: "STRING_VALUE", - * PolicyArns: [ // policyDescriptorListType - * { // PolicyDescriptorType - * arn: "STRING_VALUE", - * }, - * ], - * Policy: "STRING_VALUE", - * DurationSeconds: Number("int"), - * }; - * const command = new AssumeRoleWithWebIdentityCommand(input); - * const response = await client.send(command); - * // { // AssumeRoleWithWebIdentityResponse - * // Credentials: { // Credentials - * // AccessKeyId: "STRING_VALUE", // required - * // SecretAccessKey: "STRING_VALUE", // required - * // SessionToken: "STRING_VALUE", // required - * // Expiration: new Date("TIMESTAMP"), // required - * // }, - * // SubjectFromWebIdentityToken: "STRING_VALUE", - * // AssumedRoleUser: { // AssumedRoleUser - * // AssumedRoleId: "STRING_VALUE", // required - * // Arn: "STRING_VALUE", // required - * // }, - * // PackedPolicySize: Number("int"), - * // Provider: "STRING_VALUE", - * // Audience: "STRING_VALUE", - * // SourceIdentity: "STRING_VALUE", - * // }; - * - * ``` - * - * @param AssumeRoleWithWebIdentityCommandInput - {@link AssumeRoleWithWebIdentityCommandInput} - * @returns {@link AssumeRoleWithWebIdentityCommandOutput} - * @see {@link AssumeRoleWithWebIdentityCommandInput} for command's `input` shape. - * @see {@link AssumeRoleWithWebIdentityCommandOutput} for command's `response` shape. - * @see {@link STSClientResolvedConfig | config} for STSClient's `config` shape. - * - * @throws {@link ExpiredTokenException} (client fault) - *

The web identity token that was passed is expired or is not valid. Get a new identity - * token from the identity provider and then retry the request.

- * - * @throws {@link IDPCommunicationErrorException} (client fault) - *

The request could not be fulfilled because the identity provider (IDP) that - * was asked to verify the incoming identity token could not be reached. This is often a - * transient error caused by network conditions. Retry the request a limited number of - * times so that you don't exceed the request rate. If the error persists, the - * identity provider might be down or not responding.

- * - * @throws {@link IDPRejectedClaimException} (client fault) - *

The identity provider (IdP) reported that authentication failed. This might be because - * the claim is invalid.

- *

If this error is returned for the AssumeRoleWithWebIdentity operation, it - * can also mean that the claim has expired or has been explicitly revoked.

- * - * @throws {@link InvalidIdentityTokenException} (client fault) - *

The web identity token that was passed could not be validated by Amazon Web Services. Get a new - * identity token from the identity provider and then retry the request.

- * - * @throws {@link MalformedPolicyDocumentException} (client fault) - *

The request was rejected because the policy document was malformed. The error message - * describes the specific error.

- * - * @throws {@link PackedPolicyTooLargeException} (client fault) - *

The request was rejected because the total packed size of the session policies and - * session tags combined was too large. An Amazon Web Services conversion compresses the session policy - * document, session policy ARNs, and session tags into a packed binary format that has a - * separate limit. The error message indicates by percentage how close the policies and - * tags are to the upper size limit. For more information, see Passing Session Tags in STS in - * the IAM User Guide.

- *

You could receive this error even though you meet other defined session policy and - * session tag limits. For more information, see IAM and STS Entity - * Character Limits in the IAM User Guide.

- * - * @throws {@link RegionDisabledException} (client fault) - *

STS is not activated in the requested region for the account that is being asked to - * generate credentials. The account administrator must use the IAM console to activate STS - * in that region. For more information, see Activating and - * Deactivating Amazon Web Services STS in an Amazon Web Services Region in the IAM User - * Guide.

- * - * @throws {@link STSServiceException} - *

Base exception class for all service exceptions from STS service.

- * - * @example To assume a role as an OpenID Connect-federated user - * ```javascript - * // - * const input = { - * "DurationSeconds": 3600, - * "Policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Sid\":\"Stmt1\",\"Effect\":\"Allow\",\"Action\":\"s3:ListAllMyBuckets\",\"Resource\":\"*\"}]}", - * "ProviderId": "www.amazon.com", - * "RoleArn": "arn:aws:iam::123456789012:role/FederatedWebIdentityRole", - * "RoleSessionName": "app1", - * "WebIdentityToken": "Atza%7CIQEBLjAsAhRFiXuWpUXuRvQ9PZL3GMFcYevydwIUFAHZwXZXXXXXXXXJnrulxKDHwy87oGKPznh0D6bEQZTSCzyoCtL_8S07pLpr0zMbn6w1lfVZKNTBdDansFBmtGnIsIapjI6xKR02Yc_2bQ8LZbUXSGm6Ry6_BG7PrtLZtj_dfCTj92xNGed-CrKqjG7nPBjNIL016GGvuS5gSvPRUxWES3VYfm1wl7WTI7jn-Pcb6M-buCgHhFOzTQxod27L9CqnOLio7N3gZAGpsp6n1-AJBOCJckcyXe2c6uD0srOJeZlKUm2eTDVMf8IehDVI0r1QOnTV6KzzAI3OY87Vd_cVMQ" - * }; - * const command = new AssumeRoleWithWebIdentityCommand(input); - * const response = await client.send(command); - * /* response == - * { - * "AssumedRoleUser": { - * "Arn": "arn:aws:sts::123456789012:assumed-role/FederatedWebIdentityRole/app1", - * "AssumedRoleId": "AROACLKWSDQRAOEXAMPLE:app1" - * }, - * "Audience": "client.5498841531868486423.1548@apps.example.com", - * "Credentials": { - * "AccessKeyId": "AKIAIOSFODNN7EXAMPLE", - * "Expiration": "2014-10-24T23:00:23Z", - * "SecretAccessKey": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYzEXAMPLEKEY", - * "SessionToken": "AQoDYXdzEE0a8ANXXXXXXXXNO1ewxE5TijQyp+IEXAMPLE" - * }, - * "PackedPolicySize": 123, - * "Provider": "www.amazon.com", - * "SubjectFromWebIdentityToken": "amzn1.account.AF6RHO7KZU5XRVQJGXK6HEXAMPLE" - * } - * *\/ - * // example id: to-assume-a-role-as-an-openid-connect-federated-user-1480533445696 - * ``` - * - */ -export declare class AssumeRoleWithWebIdentityCommand extends $Command { - readonly input: AssumeRoleWithWebIdentityCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: AssumeRoleWithWebIdentityCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: STSClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-sts/dist-types/commands/DecodeAuthorizationMessageCommand.d.ts b/node_modules/@aws-sdk/client-sts/dist-types/commands/DecodeAuthorizationMessageCommand.d.ts deleted file mode 100644 index e2feaebb..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-types/commands/DecodeAuthorizationMessageCommand.d.ts +++ /dev/null @@ -1,129 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { DecodeAuthorizationMessageRequest, DecodeAuthorizationMessageResponse } from "../models/models_0"; -import { ServiceInputTypes, ServiceOutputTypes, STSClientResolvedConfig } from "../STSClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link DecodeAuthorizationMessageCommand}. - */ -export interface DecodeAuthorizationMessageCommandInput extends DecodeAuthorizationMessageRequest { -} -/** - * @public - * - * The output of {@link DecodeAuthorizationMessageCommand}. - */ -export interface DecodeAuthorizationMessageCommandOutput extends DecodeAuthorizationMessageResponse, __MetadataBearer { -} -/** - * @public - *

Decodes additional information about the authorization status of a request from an - * encoded message returned in response to an Amazon Web Services request.

- *

For example, if a user is not authorized to perform an operation that he or she has - * requested, the request returns a Client.UnauthorizedOperation response (an - * HTTP 403 response). Some Amazon Web Services operations additionally return an encoded message that can - * provide details about this authorization failure.

- * - *

Only certain Amazon Web Services operations return an encoded authorization message. The - * documentation for an individual operation indicates whether that operation returns an - * encoded message in addition to returning an HTTP code.

- *
- *

The message is encoded because the details of the authorization status can contain - * privileged information that the user who requested the operation should not see. To decode - * an authorization status message, a user must be granted permissions through an IAM policy to - * request the DecodeAuthorizationMessage - * (sts:DecodeAuthorizationMessage) action.

- *

The decoded message includes the following type of information:

- *
    - *
  • - *

    Whether the request was denied due to an explicit deny or due to the absence of an - * explicit allow. For more information, see Determining Whether a Request is Allowed or Denied in the - * IAM User Guide.

    - *
  • - *
  • - *

    The principal who made the request.

    - *
  • - *
  • - *

    The requested action.

    - *
  • - *
  • - *

    The requested resource.

    - *
  • - *
  • - *

    The values of condition keys in the context of the user's request.

    - *
  • - *
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { STSClient, DecodeAuthorizationMessageCommand } from "@aws-sdk/client-sts"; // ES Modules import - * // const { STSClient, DecodeAuthorizationMessageCommand } = require("@aws-sdk/client-sts"); // CommonJS import - * const client = new STSClient(config); - * const input = { // DecodeAuthorizationMessageRequest - * EncodedMessage: "STRING_VALUE", // required - * }; - * const command = new DecodeAuthorizationMessageCommand(input); - * const response = await client.send(command); - * // { // DecodeAuthorizationMessageResponse - * // DecodedMessage: "STRING_VALUE", - * // }; - * - * ``` - * - * @param DecodeAuthorizationMessageCommandInput - {@link DecodeAuthorizationMessageCommandInput} - * @returns {@link DecodeAuthorizationMessageCommandOutput} - * @see {@link DecodeAuthorizationMessageCommandInput} for command's `input` shape. - * @see {@link DecodeAuthorizationMessageCommandOutput} for command's `response` shape. - * @see {@link STSClientResolvedConfig | config} for STSClient's `config` shape. - * - * @throws {@link InvalidAuthorizationMessageException} (client fault) - *

The error returned if the message passed to DecodeAuthorizationMessage - * was invalid. This can happen if the token contains invalid characters, such as - * linebreaks.

- * - * @throws {@link STSServiceException} - *

Base exception class for all service exceptions from STS service.

- * - * @example To decode information about an authorization status of a request - * ```javascript - * // - * const input = { - * "EncodedMessage": "" - * }; - * const command = new DecodeAuthorizationMessageCommand(input); - * const response = await client.send(command); - * /* response == - * { - * "DecodedMessage": "{\"allowed\": \"false\",\"explicitDeny\": \"false\",\"matchedStatements\": \"\",\"failures\": \"\",\"context\": {\"principal\": {\"id\": \"AIDACKCEVSQ6C2EXAMPLE\",\"name\": \"Bob\",\"arn\": \"arn:aws:iam::123456789012:user/Bob\"},\"action\": \"ec2:StopInstances\",\"resource\": \"arn:aws:ec2:us-east-1:123456789012:instance/i-dd01c9bd\",\"conditions\": [{\"item\": {\"key\": \"ec2:Tenancy\",\"values\": [\"default\"]},{\"item\": {\"key\": \"ec2:ResourceTag/elasticbeanstalk:environment-name\",\"values\": [\"Default-Environment\"]}},(Additional items ...)]}}" - * } - * *\/ - * // example id: to-decode-information-about-an-authorization-status-of-a-request-1480533854499 - * ``` - * - */ -export declare class DecodeAuthorizationMessageCommand extends $Command { - readonly input: DecodeAuthorizationMessageCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: DecodeAuthorizationMessageCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: STSClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-sts/dist-types/commands/GetAccessKeyInfoCommand.d.ts b/node_modules/@aws-sdk/client-sts/dist-types/commands/GetAccessKeyInfoCommand.d.ts deleted file mode 100644 index 7a00048a..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-types/commands/GetAccessKeyInfoCommand.d.ts +++ /dev/null @@ -1,89 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { GetAccessKeyInfoRequest, GetAccessKeyInfoResponse } from "../models/models_0"; -import { ServiceInputTypes, ServiceOutputTypes, STSClientResolvedConfig } from "../STSClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link GetAccessKeyInfoCommand}. - */ -export interface GetAccessKeyInfoCommandInput extends GetAccessKeyInfoRequest { -} -/** - * @public - * - * The output of {@link GetAccessKeyInfoCommand}. - */ -export interface GetAccessKeyInfoCommandOutput extends GetAccessKeyInfoResponse, __MetadataBearer { -} -/** - * @public - *

Returns the account identifier for the specified access key ID.

- *

Access keys consist of two parts: an access key ID (for example, - * AKIAIOSFODNN7EXAMPLE) and a secret access key (for example, - * wJalrXUtnFEMI/K7MDENG/bPxRfiCYEXAMPLEKEY). For more information about - * access keys, see Managing Access Keys for IAM - * Users in the IAM User Guide.

- *

When you pass an access key ID to this operation, it returns the ID of the Amazon Web Services account - * to which the keys belong. Access key IDs beginning with AKIA are long-term - * credentials for an IAM user or the Amazon Web Services account root user. Access key IDs - * beginning with ASIA are temporary credentials that are created using STS - * operations. If the account in the response belongs to you, you can sign in as the root user and review your root user access keys. Then, you can pull a credentials - * report to learn which IAM user owns the keys. To learn who - * requested the temporary credentials for an ASIA access key, view the STS - * events in your CloudTrail logs in the IAM User Guide.

- *

This operation does not indicate the state of the access key. The key might be active, - * inactive, or deleted. Active keys might not have permissions to perform an operation. - * Providing a deleted access key might return an error that the key doesn't exist.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { STSClient, GetAccessKeyInfoCommand } from "@aws-sdk/client-sts"; // ES Modules import - * // const { STSClient, GetAccessKeyInfoCommand } = require("@aws-sdk/client-sts"); // CommonJS import - * const client = new STSClient(config); - * const input = { // GetAccessKeyInfoRequest - * AccessKeyId: "STRING_VALUE", // required - * }; - * const command = new GetAccessKeyInfoCommand(input); - * const response = await client.send(command); - * // { // GetAccessKeyInfoResponse - * // Account: "STRING_VALUE", - * // }; - * - * ``` - * - * @param GetAccessKeyInfoCommandInput - {@link GetAccessKeyInfoCommandInput} - * @returns {@link GetAccessKeyInfoCommandOutput} - * @see {@link GetAccessKeyInfoCommandInput} for command's `input` shape. - * @see {@link GetAccessKeyInfoCommandOutput} for command's `response` shape. - * @see {@link STSClientResolvedConfig | config} for STSClient's `config` shape. - * - * @throws {@link STSServiceException} - *

Base exception class for all service exceptions from STS service.

- * - */ -export declare class GetAccessKeyInfoCommand extends $Command { - readonly input: GetAccessKeyInfoCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: GetAccessKeyInfoCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: STSClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-sts/dist-types/commands/GetCallerIdentityCommand.d.ts b/node_modules/@aws-sdk/client-sts/dist-types/commands/GetCallerIdentityCommand.d.ts deleted file mode 100644 index 73e07b19..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-types/commands/GetCallerIdentityCommand.d.ts +++ /dev/null @@ -1,130 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { GetCallerIdentityRequest, GetCallerIdentityResponse } from "../models/models_0"; -import { ServiceInputTypes, ServiceOutputTypes, STSClientResolvedConfig } from "../STSClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link GetCallerIdentityCommand}. - */ -export interface GetCallerIdentityCommandInput extends GetCallerIdentityRequest { -} -/** - * @public - * - * The output of {@link GetCallerIdentityCommand}. - */ -export interface GetCallerIdentityCommandOutput extends GetCallerIdentityResponse, __MetadataBearer { -} -/** - * @public - *

Returns details about the IAM user or role whose credentials are used to - * call the operation.

- * - *

No permissions are required to perform this operation. If an administrator attaches a - * policy to your identity that explicitly denies access to the - * sts:GetCallerIdentity action, you can still perform this operation. - * Permissions are not required because the same information is returned when access is - * denied. To view an example response, see I Am Not Authorized to Perform: iam:DeleteVirtualMFADevice in the - * IAM User Guide.

- *
- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { STSClient, GetCallerIdentityCommand } from "@aws-sdk/client-sts"; // ES Modules import - * // const { STSClient, GetCallerIdentityCommand } = require("@aws-sdk/client-sts"); // CommonJS import - * const client = new STSClient(config); - * const input = {}; - * const command = new GetCallerIdentityCommand(input); - * const response = await client.send(command); - * // { // GetCallerIdentityResponse - * // UserId: "STRING_VALUE", - * // Account: "STRING_VALUE", - * // Arn: "STRING_VALUE", - * // }; - * - * ``` - * - * @param GetCallerIdentityCommandInput - {@link GetCallerIdentityCommandInput} - * @returns {@link GetCallerIdentityCommandOutput} - * @see {@link GetCallerIdentityCommandInput} for command's `input` shape. - * @see {@link GetCallerIdentityCommandOutput} for command's `response` shape. - * @see {@link STSClientResolvedConfig | config} for STSClient's `config` shape. - * - * @throws {@link STSServiceException} - *

Base exception class for all service exceptions from STS service.

- * - * @example To get details about a calling IAM user - * ```javascript - * // This example shows a request and response made with the credentials for a user named Alice in the AWS account 123456789012. - * const input = {}; - * const command = new GetCallerIdentityCommand(input); - * const response = await client.send(command); - * /* response == - * { - * "Account": "123456789012", - * "Arn": "arn:aws:iam::123456789012:user/Alice", - * "UserId": "AKIAI44QH8DHBEXAMPLE" - * } - * *\/ - * // example id: to-get-details-about-a-calling-iam-user-1480540050376 - * ``` - * - * @example To get details about a calling user federated with AssumeRole - * ```javascript - * // This example shows a request and response made with temporary credentials created by AssumeRole. The name of the assumed role is my-role-name, and the RoleSessionName is set to my-role-session-name. - * const input = {}; - * const command = new GetCallerIdentityCommand(input); - * const response = await client.send(command); - * /* response == - * { - * "Account": "123456789012", - * "Arn": "arn:aws:sts::123456789012:assumed-role/my-role-name/my-role-session-name", - * "UserId": "AKIAI44QH8DHBEXAMPLE:my-role-session-name" - * } - * *\/ - * // example id: to-get-details-about-a-calling-user-federated-with-assumerole-1480540158545 - * ``` - * - * @example To get details about a calling user federated with GetFederationToken - * ```javascript - * // This example shows a request and response made with temporary credentials created by using GetFederationToken. The Name parameter is set to my-federated-user-name. - * const input = {}; - * const command = new GetCallerIdentityCommand(input); - * const response = await client.send(command); - * /* response == - * { - * "Account": "123456789012", - * "Arn": "arn:aws:sts::123456789012:federated-user/my-federated-user-name", - * "UserId": "123456789012:my-federated-user-name" - * } - * *\/ - * // example id: to-get-details-about-a-calling-user-federated-with-getfederationtoken-1480540231316 - * ``` - * - */ -export declare class GetCallerIdentityCommand extends $Command { - readonly input: GetCallerIdentityCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: GetCallerIdentityCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: STSClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-sts/dist-types/commands/GetFederationTokenCommand.d.ts b/node_modules/@aws-sdk/client-sts/dist-types/commands/GetFederationTokenCommand.d.ts deleted file mode 100644 index ee75da50..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-types/commands/GetFederationTokenCommand.d.ts +++ /dev/null @@ -1,244 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { GetFederationTokenRequest, GetFederationTokenResponse } from "../models/models_0"; -import { ServiceInputTypes, ServiceOutputTypes, STSClientResolvedConfig } from "../STSClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link GetFederationTokenCommand}. - */ -export interface GetFederationTokenCommandInput extends GetFederationTokenRequest { -} -/** - * @public - * - * The output of {@link GetFederationTokenCommand}. - */ -export interface GetFederationTokenCommandOutput extends GetFederationTokenResponse, __MetadataBearer { -} -/** - * @public - *

Returns a set of temporary security credentials (consisting of an access key ID, a - * secret access key, and a security token) for a user. A typical use is in a proxy - * application that gets temporary security credentials on behalf of distributed applications - * inside a corporate network.

- *

You must call the GetFederationToken operation using the long-term security - * credentials of an IAM user. As a result, this call is appropriate in - * contexts where those credentials can be safeguarded, usually in a server-based application. - * For a comparison of GetFederationToken with the other API operations that - * produce temporary credentials, see Requesting Temporary Security - * Credentials and Comparing the - * Amazon Web Services STS API operations in the IAM User Guide.

- *

Although it is possible to call GetFederationToken using the security - * credentials of an Amazon Web Services account root user rather than an IAM user that you - * create for the purpose of a proxy application, we do not recommend it. For more - * information, see Safeguard your root user credentials and don't use them for everyday tasks in the - * IAM User Guide.

- * - *

You can create a mobile-based or browser-based app that can authenticate users using - * a web identity provider like Login with Amazon, Facebook, Google, or an OpenID - * Connect-compatible identity provider. In this case, we recommend that you use Amazon Cognito or - * AssumeRoleWithWebIdentity. For more information, see Federation Through a Web-based Identity Provider in the - * IAM User Guide.

- *
- *

- * Session duration - *

- *

The temporary credentials are valid for the specified duration, from 900 seconds (15 - * minutes) up to a maximum of 129,600 seconds (36 hours). The default session duration is - * 43,200 seconds (12 hours). Temporary credentials obtained by using the root user - * credentials have a maximum duration of 3,600 seconds (1 hour).

- *

- * Permissions - *

- *

You can use the temporary credentials created by GetFederationToken in any - * Amazon Web Services service with the following exceptions:

- *
    - *
  • - *

    You cannot call any IAM operations using the CLI or the Amazon Web Services API. This - * limitation does not apply to console sessions.

    - *
  • - *
  • - *

    You cannot call any STS operations except GetCallerIdentity.

    - *
  • - *
- *

You can use temporary credentials for single sign-on (SSO) to the console.

- *

You must pass an inline or managed session policy to - * this operation. You can pass a single JSON policy document to use as an inline session - * policy. You can also specify up to 10 managed policy Amazon Resource Names (ARNs) to use as - * managed session policies. The plaintext that you use for both inline and managed session - * policies can't exceed 2,048 characters.

- *

Though the session policy parameters are optional, if you do not pass a policy, then the - * resulting federated user session has no permissions. When you pass session policies, the - * session permissions are the intersection of the IAM user policies and the - * session policies that you pass. This gives you a way to further restrict the permissions - * for a federated user. You cannot use session policies to grant more permissions than those - * that are defined in the permissions policy of the IAM user. For more - * information, see Session Policies in - * the IAM User Guide. For information about using - * GetFederationToken to create temporary security credentials, see GetFederationToken—Federation Through a Custom Identity Broker.

- *

You can use the credentials to access a resource that has a resource-based policy. If - * that policy specifically references the federated user session in the - * Principal element of the policy, the session has the permissions allowed by - * the policy. These permissions are granted in addition to the permissions granted by the - * session policies.

- *

- * Tags - *

- *

(Optional) You can pass tag key-value pairs to your session. These are called session - * tags. For more information about session tags, see Passing Session Tags in STS in the - * IAM User Guide.

- * - *

You can create a mobile-based or browser-based app that can authenticate users using - * a web identity provider like Login with Amazon, Facebook, Google, or an OpenID - * Connect-compatible identity provider. In this case, we recommend that you use Amazon Cognito or - * AssumeRoleWithWebIdentity. For more information, see Federation Through a Web-based Identity Provider in the - * IAM User Guide.

- *
- *

An administrator must grant you the permissions necessary to pass session tags. The - * administrator can also create granular permissions to allow you to pass only specific - * session tags. For more information, see Tutorial: Using Tags - * for Attribute-Based Access Control in the - * IAM User Guide.

- *

Tag key–value pairs are not case sensitive, but case is preserved. This means that you - * cannot have separate Department and department tag keys. Assume - * that the user that you are federating has the - * Department=Marketing tag and you pass the - * department=engineering session tag. Department - * and department are not saved as separate tags, and the session tag passed in - * the request takes precedence over the user tag.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { STSClient, GetFederationTokenCommand } from "@aws-sdk/client-sts"; // ES Modules import - * // const { STSClient, GetFederationTokenCommand } = require("@aws-sdk/client-sts"); // CommonJS import - * const client = new STSClient(config); - * const input = { // GetFederationTokenRequest - * Name: "STRING_VALUE", // required - * Policy: "STRING_VALUE", - * PolicyArns: [ // policyDescriptorListType - * { // PolicyDescriptorType - * arn: "STRING_VALUE", - * }, - * ], - * DurationSeconds: Number("int"), - * Tags: [ // tagListType - * { // Tag - * Key: "STRING_VALUE", // required - * Value: "STRING_VALUE", // required - * }, - * ], - * }; - * const command = new GetFederationTokenCommand(input); - * const response = await client.send(command); - * // { // GetFederationTokenResponse - * // Credentials: { // Credentials - * // AccessKeyId: "STRING_VALUE", // required - * // SecretAccessKey: "STRING_VALUE", // required - * // SessionToken: "STRING_VALUE", // required - * // Expiration: new Date("TIMESTAMP"), // required - * // }, - * // FederatedUser: { // FederatedUser - * // FederatedUserId: "STRING_VALUE", // required - * // Arn: "STRING_VALUE", // required - * // }, - * // PackedPolicySize: Number("int"), - * // }; - * - * ``` - * - * @param GetFederationTokenCommandInput - {@link GetFederationTokenCommandInput} - * @returns {@link GetFederationTokenCommandOutput} - * @see {@link GetFederationTokenCommandInput} for command's `input` shape. - * @see {@link GetFederationTokenCommandOutput} for command's `response` shape. - * @see {@link STSClientResolvedConfig | config} for STSClient's `config` shape. - * - * @throws {@link MalformedPolicyDocumentException} (client fault) - *

The request was rejected because the policy document was malformed. The error message - * describes the specific error.

- * - * @throws {@link PackedPolicyTooLargeException} (client fault) - *

The request was rejected because the total packed size of the session policies and - * session tags combined was too large. An Amazon Web Services conversion compresses the session policy - * document, session policy ARNs, and session tags into a packed binary format that has a - * separate limit. The error message indicates by percentage how close the policies and - * tags are to the upper size limit. For more information, see Passing Session Tags in STS in - * the IAM User Guide.

- *

You could receive this error even though you meet other defined session policy and - * session tag limits. For more information, see IAM and STS Entity - * Character Limits in the IAM User Guide.

- * - * @throws {@link RegionDisabledException} (client fault) - *

STS is not activated in the requested region for the account that is being asked to - * generate credentials. The account administrator must use the IAM console to activate STS - * in that region. For more information, see Activating and - * Deactivating Amazon Web Services STS in an Amazon Web Services Region in the IAM User - * Guide.

- * - * @throws {@link STSServiceException} - *

Base exception class for all service exceptions from STS service.

- * - * @example To get temporary credentials for a role by using GetFederationToken - * ```javascript - * // - * const input = { - * "DurationSeconds": 3600, - * "Name": "testFedUserSession", - * "Policy": "{\"Version\":\"2012-10-17\",\"Statement\":[{\"Sid\":\"Stmt1\",\"Effect\":\"Allow\",\"Action\":\"s3:ListAllMyBuckets\",\"Resource\":\"*\"}]}", - * "Tags": [ - * { - * "Key": "Project", - * "Value": "Pegasus" - * }, - * { - * "Key": "Cost-Center", - * "Value": "98765" - * } - * ] - * }; - * const command = new GetFederationTokenCommand(input); - * const response = await client.send(command); - * /* response == - * { - * "Credentials": { - * "AccessKeyId": "AKIAIOSFODNN7EXAMPLE", - * "Expiration": "2011-07-15T23:28:33.359Z", - * "SecretAccessKey": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYzEXAMPLEKEY", - * "SessionToken": "AQoDYXdzEPT//////////wEXAMPLEtc764bNrC9SAPBSM22wDOk4x4HIZ8j4FZTwdQWLWsKWHGBuFqwAeMicRXmxfpSPfIeoIYRqTflfKD8YUuwthAx7mSEI/qkPpKPi/kMcGdQrmGdeehM4IC1NtBmUpp2wUE8phUZampKsburEDy0KPkyQDYwT7WZ0wq5VSXDvp75YU9HFvlRd8Tx6q6fE8YQcHNVXAkiY9q6d+xo0rKwT38xVqr7ZD0u0iPPkUL64lIZbqBAz+scqKmlzm8FDrypNC9Yjc8fPOLn9FX9KSYvKTr4rvx3iSIlTJabIQwj2ICCR/oLxBA==" - * }, - * "FederatedUser": { - * "Arn": "arn:aws:sts::123456789012:federated-user/Bob", - * "FederatedUserId": "123456789012:Bob" - * }, - * "PackedPolicySize": 8 - * } - * *\/ - * // example id: to-get-temporary-credentials-for-a-role-by-using-getfederationtoken-1480540749900 - * ``` - * - */ -export declare class GetFederationTokenCommand extends $Command { - readonly input: GetFederationTokenCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: GetFederationTokenCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: STSClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-sts/dist-types/commands/GetSessionTokenCommand.d.ts b/node_modules/@aws-sdk/client-sts/dist-types/commands/GetSessionTokenCommand.d.ts deleted file mode 100644 index b80631af..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-types/commands/GetSessionTokenCommand.d.ts +++ /dev/null @@ -1,168 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { Handler, HttpHandlerOptions as __HttpHandlerOptions, MetadataBearer as __MetadataBearer, MiddlewareStack } from "@smithy/types"; -import { GetSessionTokenRequest, GetSessionTokenResponse } from "../models/models_0"; -import { ServiceInputTypes, ServiceOutputTypes, STSClientResolvedConfig } from "../STSClient"; -/** - * @public - */ -export { __MetadataBearer, $Command }; -/** - * @public - * - * The input for {@link GetSessionTokenCommand}. - */ -export interface GetSessionTokenCommandInput extends GetSessionTokenRequest { -} -/** - * @public - * - * The output of {@link GetSessionTokenCommand}. - */ -export interface GetSessionTokenCommandOutput extends GetSessionTokenResponse, __MetadataBearer { -} -/** - * @public - *

Returns a set of temporary credentials for an Amazon Web Services account or IAM user. - * The credentials consist of an access key ID, a secret access key, and a security token. - * Typically, you use GetSessionToken if you want to use MFA to protect - * programmatic calls to specific Amazon Web Services API operations like Amazon EC2 - * StopInstances.

- *

MFA-enabled IAM users must call GetSessionToken and submit - * an MFA code that is associated with their MFA device. Using the temporary security - * credentials that the call returns, IAM users can then make programmatic - * calls to API operations that require MFA authentication. An incorrect MFA code causes the - * API to return an access denied error. For a comparison of GetSessionToken with - * the other API operations that produce temporary credentials, see Requesting - * Temporary Security Credentials and Comparing the - * Amazon Web Services STS API operations in the IAM User Guide.

- * - *

No permissions are required for users to perform this operation. The purpose of the - * sts:GetSessionToken operation is to authenticate the user using MFA. You - * cannot use policies to control authentication operations. For more information, see - * Permissions for GetSessionToken in the - * IAM User Guide.

- *
- *

- * Session Duration - *

- *

The GetSessionToken operation must be called by using the long-term Amazon Web Services - * security credentials of an IAM user. Credentials that are created by IAM users are valid for the duration that you specify. This duration can range - * from 900 seconds (15 minutes) up to a maximum of 129,600 seconds (36 hours), with a default - * of 43,200 seconds (12 hours). Credentials based on account credentials can range from 900 - * seconds (15 minutes) up to 3,600 seconds (1 hour), with a default of 1 hour.

- *

- * Permissions - *

- *

The temporary security credentials created by GetSessionToken can be used - * to make API calls to any Amazon Web Services service with the following exceptions:

- *
    - *
  • - *

    You cannot call any IAM API operations unless MFA authentication information is - * included in the request.

    - *
  • - *
  • - *

    You cannot call any STS API except - * AssumeRole or GetCallerIdentity.

    - *
  • - *
- *

The credentials that GetSessionToken returns are based on permissions - * associated with the IAM user whose credentials were used to call the - * operation. The temporary credentials have the same permissions as the IAM user.

- * - *

Although it is possible to call GetSessionToken using the security - * credentials of an Amazon Web Services account root user rather than an IAM user, we do - * not recommend it. If GetSessionToken is called using root user - * credentials, the temporary credentials have root user permissions. For more - * information, see Safeguard your root user credentials and don't use them for everyday tasks in the - * IAM User Guide - *

- *
- *

For more information about using GetSessionToken to create temporary - * credentials, see Temporary - * Credentials for Users in Untrusted Environments in the - * IAM User Guide.

- * @example - * Use a bare-bones client and the command you need to make an API call. - * ```javascript - * import { STSClient, GetSessionTokenCommand } from "@aws-sdk/client-sts"; // ES Modules import - * // const { STSClient, GetSessionTokenCommand } = require("@aws-sdk/client-sts"); // CommonJS import - * const client = new STSClient(config); - * const input = { // GetSessionTokenRequest - * DurationSeconds: Number("int"), - * SerialNumber: "STRING_VALUE", - * TokenCode: "STRING_VALUE", - * }; - * const command = new GetSessionTokenCommand(input); - * const response = await client.send(command); - * // { // GetSessionTokenResponse - * // Credentials: { // Credentials - * // AccessKeyId: "STRING_VALUE", // required - * // SecretAccessKey: "STRING_VALUE", // required - * // SessionToken: "STRING_VALUE", // required - * // Expiration: new Date("TIMESTAMP"), // required - * // }, - * // }; - * - * ``` - * - * @param GetSessionTokenCommandInput - {@link GetSessionTokenCommandInput} - * @returns {@link GetSessionTokenCommandOutput} - * @see {@link GetSessionTokenCommandInput} for command's `input` shape. - * @see {@link GetSessionTokenCommandOutput} for command's `response` shape. - * @see {@link STSClientResolvedConfig | config} for STSClient's `config` shape. - * - * @throws {@link RegionDisabledException} (client fault) - *

STS is not activated in the requested region for the account that is being asked to - * generate credentials. The account administrator must use the IAM console to activate STS - * in that region. For more information, see Activating and - * Deactivating Amazon Web Services STS in an Amazon Web Services Region in the IAM User - * Guide.

- * - * @throws {@link STSServiceException} - *

Base exception class for all service exceptions from STS service.

- * - * @example To get temporary credentials for an IAM user or an AWS account - * ```javascript - * // - * const input = { - * "DurationSeconds": 3600, - * "SerialNumber": "YourMFASerialNumber", - * "TokenCode": "123456" - * }; - * const command = new GetSessionTokenCommand(input); - * const response = await client.send(command); - * /* response == - * { - * "Credentials": { - * "AccessKeyId": "AKIAIOSFODNN7EXAMPLE", - * "Expiration": "2011-07-11T19:55:29.611Z", - * "SecretAccessKey": "wJalrXUtnFEMI/K7MDENG/bPxRfiCYzEXAMPLEKEY", - * "SessionToken": "AQoEXAMPLEH4aoAH0gNCAPyJxz4BlCFFxWNE1OPTgk5TthT+FvwqnKwRcOIfrRh3c/LTo6UDdyJwOOvEVPvLXCrrrUtdnniCEXAMPLE/IvU1dYUg2RVAJBanLiHb4IgRmpRV3zrkuWJOgQs8IZZaIv2BXIa2R4OlgkBN9bkUDNCJiBeb/AXlzBBko7b15fjrBs2+cTQtpZ3CYWFXG8C5zqx37wnOE49mRl/+OtkIKGO7fAE" - * } - * } - * *\/ - * // example id: to-get-temporary-credentials-for-an-iam-user-or-an-aws-account-1480540814038 - * ``` - * - */ -export declare class GetSessionTokenCommand extends $Command { - readonly input: GetSessionTokenCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - /** - * @public - */ - constructor(input: GetSessionTokenCommandInput); - /** - * @internal - */ - resolveMiddleware(clientStack: MiddlewareStack, configuration: STSClientResolvedConfig, options?: __HttpHandlerOptions): Handler; - /** - * @internal - */ - private serialize; - /** - * @internal - */ - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-sts/dist-types/commands/index.d.ts b/node_modules/@aws-sdk/client-sts/dist-types/commands/index.d.ts deleted file mode 100644 index 802202ff..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-types/commands/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -export * from "./AssumeRoleCommand"; -export * from "./AssumeRoleWithSAMLCommand"; -export * from "./AssumeRoleWithWebIdentityCommand"; -export * from "./DecodeAuthorizationMessageCommand"; -export * from "./GetAccessKeyInfoCommand"; -export * from "./GetCallerIdentityCommand"; -export * from "./GetFederationTokenCommand"; -export * from "./GetSessionTokenCommand"; diff --git a/node_modules/@aws-sdk/client-sts/dist-types/defaultRoleAssumers.d.ts b/node_modules/@aws-sdk/client-sts/dist-types/defaultRoleAssumers.d.ts deleted file mode 100644 index 8f7cebed..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-types/defaultRoleAssumers.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { Pluggable } from "@smithy/types"; -import { DefaultCredentialProvider, RoleAssumer, RoleAssumerWithWebIdentity } from "./defaultStsRoleAssumers"; -import { ServiceInputTypes, ServiceOutputTypes, STSClientConfig } from "./STSClient"; -/** - * The default role assumer that used by credential providers when sts:AssumeRole API is needed. - */ -export declare const getDefaultRoleAssumer: (stsOptions?: Pick, stsPlugins?: Pluggable[]) => RoleAssumer; -/** - * The default role assumer that used by credential providers when sts:AssumeRoleWithWebIdentity API is needed. - */ -export declare const getDefaultRoleAssumerWithWebIdentity: (stsOptions?: Pick, stsPlugins?: Pluggable[]) => RoleAssumerWithWebIdentity; -/** - * The default credential providers depend STS client to assume role with desired API: sts:assumeRole, - * sts:assumeRoleWithWebIdentity, etc. This function decorates the default credential provider with role assumers which - * encapsulates the process of calling STS commands. This can only be imported by AWS client packages to avoid circular - * dependencies. - * - * @internal - */ -export declare const decorateDefaultCredentialProvider: (provider: DefaultCredentialProvider) => DefaultCredentialProvider; diff --git a/node_modules/@aws-sdk/client-sts/dist-types/defaultStsRoleAssumers.d.ts b/node_modules/@aws-sdk/client-sts/dist-types/defaultStsRoleAssumers.d.ts deleted file mode 100644 index b86e7f40..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-types/defaultStsRoleAssumers.d.ts +++ /dev/null @@ -1,36 +0,0 @@ -import { Credentials } from "@aws-sdk/types"; -import { Provider } from "@smithy/types"; -import { AssumeRoleCommandInput } from "./commands/AssumeRoleCommand"; -import { AssumeRoleWithWebIdentityCommandInput } from "./commands/AssumeRoleWithWebIdentityCommand"; -import type { STSClient, STSClientConfig } from "./STSClient"; -/** - * @internal - */ -export type RoleAssumer = (sourceCreds: Credentials, params: AssumeRoleCommandInput) => Promise; -/** - * The default role assumer that used by credential providers when sts:AssumeRole API is needed. - * @internal - */ -export declare const getDefaultRoleAssumer: (stsOptions: Pick, stsClientCtor: new (options: STSClientConfig) => STSClient) => RoleAssumer; -/** - * @internal - */ -export type RoleAssumerWithWebIdentity = (params: AssumeRoleWithWebIdentityCommandInput) => Promise; -/** - * The default role assumer that used by credential providers when sts:AssumeRoleWithWebIdentity API is needed. - * @internal - */ -export declare const getDefaultRoleAssumerWithWebIdentity: (stsOptions: Pick, stsClientCtor: new (options: STSClientConfig) => STSClient) => RoleAssumerWithWebIdentity; -/** - * @internal - */ -export type DefaultCredentialProvider = (input: any) => Provider; -/** - * The default credential providers depend STS client to assume role with desired API: sts:assumeRole, - * sts:assumeRoleWithWebIdentity, etc. This function decorates the default credential provider with role assumers which - * encapsulates the process of calling STS commands. This can only be imported by AWS client packages to avoid circular - * dependencies. - * - * @internal - */ -export declare const decorateDefaultCredentialProvider: (provider: DefaultCredentialProvider) => DefaultCredentialProvider; diff --git a/node_modules/@aws-sdk/client-sts/dist-types/endpoint/EndpointParameters.d.ts b/node_modules/@aws-sdk/client-sts/dist-types/endpoint/EndpointParameters.d.ts deleted file mode 100644 index 69564b2b..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-types/endpoint/EndpointParameters.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { Endpoint, EndpointParameters as __EndpointParameters, EndpointV2, Provider } from "@smithy/types"; -/** - * @public - */ -export interface ClientInputEndpointParameters { - region?: string | Provider; - useDualstackEndpoint?: boolean | Provider; - useFipsEndpoint?: boolean | Provider; - endpoint?: string | Provider | Endpoint | Provider | EndpointV2 | Provider; - useGlobalEndpoint?: boolean | Provider; -} -export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & { - defaultSigningName: string; -}; -export declare const resolveClientEndpointParameters: (options: T & ClientInputEndpointParameters) => T & ClientInputEndpointParameters & { - defaultSigningName: string; -}; -export interface EndpointParameters extends __EndpointParameters { - Region?: string; - UseDualStack?: boolean; - UseFIPS?: boolean; - Endpoint?: string; - UseGlobalEndpoint?: boolean; -} diff --git a/node_modules/@aws-sdk/client-sts/dist-types/endpoint/endpointResolver.d.ts b/node_modules/@aws-sdk/client-sts/dist-types/endpoint/endpointResolver.d.ts deleted file mode 100644 index 70a8eaec..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-types/endpoint/endpointResolver.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { EndpointV2, Logger } from "@smithy/types"; -import { EndpointParameters } from "./EndpointParameters"; -export declare const defaultEndpointResolver: (endpointParams: EndpointParameters, context?: { - logger?: Logger; -}) => EndpointV2; diff --git a/node_modules/@aws-sdk/client-sts/dist-types/endpoint/ruleset.d.ts b/node_modules/@aws-sdk/client-sts/dist-types/endpoint/ruleset.d.ts deleted file mode 100644 index 4b238994..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-types/endpoint/ruleset.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { RuleSetObject } from "@smithy/types"; -export declare const ruleSet: RuleSetObject; diff --git a/node_modules/@aws-sdk/client-sts/dist-types/extensionConfiguration.d.ts b/node_modules/@aws-sdk/client-sts/dist-types/extensionConfiguration.d.ts deleted file mode 100644 index f744ada3..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-types/extensionConfiguration.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { AwsRegionExtensionConfiguration } from "@aws-sdk/types"; -import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http"; -import { DefaultExtensionConfiguration } from "@smithy/types"; -/** - * @internal - */ -export interface STSExtensionConfiguration extends HttpHandlerExtensionConfiguration, DefaultExtensionConfiguration, AwsRegionExtensionConfiguration { -} diff --git a/node_modules/@aws-sdk/client-sts/dist-types/index.d.ts b/node_modules/@aws-sdk/client-sts/dist-types/index.d.ts deleted file mode 100644 index 64bb83fd..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-types/index.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * Security Token Service - *

Security Token Service (STS) enables you to request temporary, limited-privilege - * credentials for users. This guide provides descriptions of the STS API. For - * more information about using this service, see Temporary Security Credentials.

- * - * @packageDocumentation - */ -export * from "./STSClient"; -export * from "./STS"; -export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters"; -export { RuntimeExtension } from "./runtimeExtensions"; -export { STSExtensionConfiguration } from "./extensionConfiguration"; -export * from "./commands"; -export * from "./models"; -export * from "./defaultRoleAssumers"; -import "@aws-sdk/util-endpoints"; -export { STSServiceException } from "./models/STSServiceException"; diff --git a/node_modules/@aws-sdk/client-sts/dist-types/models/STSServiceException.d.ts b/node_modules/@aws-sdk/client-sts/dist-types/models/STSServiceException.d.ts deleted file mode 100644 index 4a05ac84..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-types/models/STSServiceException.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { ServiceException as __ServiceException, ServiceExceptionOptions as __ServiceExceptionOptions } from "@smithy/smithy-client"; -export { __ServiceException, __ServiceExceptionOptions }; -/** - * @public - * - * Base exception class for all service exceptions from STS service. - */ -export declare class STSServiceException extends __ServiceException { - /** - * @internal - */ - constructor(options: __ServiceExceptionOptions); -} diff --git a/node_modules/@aws-sdk/client-sts/dist-types/models/index.d.ts b/node_modules/@aws-sdk/client-sts/dist-types/models/index.d.ts deleted file mode 100644 index 09c5d6e0..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-types/models/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./models_0"; diff --git a/node_modules/@aws-sdk/client-sts/dist-types/models/models_0.d.ts b/node_modules/@aws-sdk/client-sts/dist-types/models/models_0.d.ts deleted file mode 100644 index b23d8697..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-types/models/models_0.d.ts +++ /dev/null @@ -1,1213 +0,0 @@ -import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; -import { STSServiceException as __BaseException } from "./STSServiceException"; -/** - * @public - *

The identifiers for the temporary security credentials that the operation - * returns.

- */ -export interface AssumedRoleUser { - /** - * @public - *

A unique identifier that contains the role ID and the role session name of the role that - * is being assumed. The role ID is generated by Amazon Web Services when the role is created.

- */ - AssumedRoleId: string | undefined; - /** - * @public - *

The ARN of the temporary security credentials that are returned from the AssumeRole action. For more information about ARNs and how to use them in - * policies, see IAM Identifiers in the - * IAM User Guide.

- */ - Arn: string | undefined; -} -/** - * @public - *

A reference to the IAM managed policy that is passed as a session policy for a role - * session or a federated user session.

- */ -export interface PolicyDescriptorType { - /** - * @public - *

The Amazon Resource Name (ARN) of the IAM managed policy to use as a session policy - * for the role. For more information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services - * Service Namespaces in the Amazon Web Services General Reference.

- */ - arn?: string; -} -/** - * @public - *

Contains information about the provided context. This includes the signed and encrypted - * trusted context assertion and the context provider ARN from which the trusted context - * assertion was generated.

- */ -export interface ProvidedContext { - /** - * @public - *

The context provider ARN from which the trusted context assertion was generated.

- */ - ProviderArn?: string; - /** - * @public - *

The signed and encrypted trusted context assertion generated by the context provider. - * The trusted context assertion is signed and encrypted by Amazon Web Services STS.

- */ - ContextAssertion?: string; -} -/** - * @public - *

You can pass custom key-value pair attributes when you assume a role or federate a user. - * These are called session tags. You can then use the session tags to control access to - * resources. For more information, see Tagging Amazon Web Services STS Sessions in the - * IAM User Guide.

- */ -export interface Tag { - /** - * @public - *

The key for a session tag.

- *

You can pass up to 50 session tags. The plain text session tag keys can’t exceed 128 - * characters. For these and additional limits, see IAM - * and STS Character Limits in the IAM User Guide.

- */ - Key: string | undefined; - /** - * @public - *

The value for a session tag.

- *

You can pass up to 50 session tags. The plain text session tag values can’t exceed 256 - * characters. For these and additional limits, see IAM - * and STS Character Limits in the IAM User Guide.

- */ - Value: string | undefined; -} -/** - * @public - */ -export interface AssumeRoleRequest { - /** - * @public - *

The Amazon Resource Name (ARN) of the role to assume.

- */ - RoleArn: string | undefined; - /** - * @public - *

An identifier for the assumed role session.

- *

Use the role session name to uniquely identify a session when the same role is assumed - * by different principals or for different reasons. In cross-account scenarios, the role - * session name is visible to, and can be logged by the account that owns the role. The role - * session name is also used in the ARN of the assumed role principal. This means that - * subsequent cross-account API requests that use the temporary security credentials will - * expose the role session name to the external account in their CloudTrail logs.

- *

The regex used to validate this parameter is a string of characters - * consisting of upper- and lower-case alphanumeric characters with no spaces. You can - * also include underscores or any of the following characters: =,.@-

- */ - RoleSessionName: string | undefined; - /** - * @public - *

The Amazon Resource Names (ARNs) of the IAM managed policies that you want to use as - * managed session policies. The policies must exist in the same account as the role.

- *

This parameter is optional. You can provide up to 10 managed policy ARNs. However, the - * plaintext that you use for both inline and managed session policies can't exceed 2,048 - * characters. For more information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services - * Service Namespaces in the Amazon Web Services General Reference.

- * - *

An Amazon Web Services conversion compresses the passed inline session policy, managed policy ARNs, - * and session tags into a packed binary format that has a separate limit. Your request can - * fail for this limit even if your plaintext meets the other requirements. The - * PackedPolicySize response element indicates by percentage how close the - * policies and tags for your request are to the upper size limit.

- *
- *

Passing policies to this operation returns new - * temporary credentials. The resulting session's permissions are the intersection of the - * role's identity-based policy and the session policies. You can use the role's temporary - * credentials in subsequent Amazon Web Services API calls to access resources in the account that owns - * the role. You cannot use session policies to grant more permissions than those allowed - * by the identity-based policy of the role that is being assumed. For more information, see - * Session - * Policies in the IAM User Guide.

- */ - PolicyArns?: PolicyDescriptorType[]; - /** - * @public - *

An IAM policy in JSON format that you want to use as an inline session policy.

- *

This parameter is optional. Passing policies to this operation returns new - * temporary credentials. The resulting session's permissions are the intersection of the - * role's identity-based policy and the session policies. You can use the role's temporary - * credentials in subsequent Amazon Web Services API calls to access resources in the account that owns - * the role. You cannot use session policies to grant more permissions than those allowed - * by the identity-based policy of the role that is being assumed. For more information, see - * Session - * Policies in the IAM User Guide.

- *

The plaintext that you use for both inline and managed session policies can't exceed - * 2,048 characters. The JSON policy characters can be any ASCII character from the space - * character to the end of the valid character list (\u0020 through \u00FF). It can also - * include the tab (\u0009), linefeed (\u000A), and carriage return (\u000D) - * characters.

- * - *

An Amazon Web Services conversion compresses the passed inline session policy, managed policy ARNs, - * and session tags into a packed binary format that has a separate limit. Your request can - * fail for this limit even if your plaintext meets the other requirements. The - * PackedPolicySize response element indicates by percentage how close the - * policies and tags for your request are to the upper size limit.

- *
- */ - Policy?: string; - /** - * @public - *

The duration, in seconds, of the role session. The value specified can range from 900 - * seconds (15 minutes) up to the maximum session duration set for the role. The maximum - * session duration setting can have a value from 1 hour to 12 hours. If you specify a value - * higher than this setting or the administrator setting (whichever is lower), the operation - * fails. For example, if you specify a session duration of 12 hours, but your administrator - * set the maximum session duration to 6 hours, your operation fails.

- *

Role chaining limits your Amazon Web Services CLI or Amazon Web Services API role session to a maximum of one hour. - * When you use the AssumeRole API operation to assume a role, you can specify - * the duration of your role session with the DurationSeconds parameter. You can - * specify a parameter value of up to 43200 seconds (12 hours), depending on the maximum - * session duration setting for your role. However, if you assume a role using role chaining - * and provide a DurationSeconds parameter value greater than one hour, the - * operation fails. To learn how to view the maximum value for your role, see View the - * Maximum Session Duration Setting for a Role in the - * IAM User Guide.

- *

By default, the value is set to 3600 seconds.

- * - *

The DurationSeconds parameter is separate from the duration of a console - * session that you might request using the returned credentials. The request to the - * federation endpoint for a console sign-in token takes a SessionDuration - * parameter that specifies the maximum length of the console session. For more - * information, see Creating a URL - * that Enables Federated Users to Access the Amazon Web Services Management Console in the - * IAM User Guide.

- *
- */ - DurationSeconds?: number; - /** - * @public - *

A list of session tags that you want to pass. Each session tag consists of a key name - * and an associated value. For more information about session tags, see Tagging Amazon Web Services STS - * Sessions in the IAM User Guide.

- *

This parameter is optional. You can pass up to 50 session tags. The plaintext session - * tag keys can’t exceed 128 characters, and the values can’t exceed 256 characters. For these - * and additional limits, see IAM - * and STS Character Limits in the IAM User Guide.

- * - *

An Amazon Web Services conversion compresses the passed inline session policy, managed policy ARNs, - * and session tags into a packed binary format that has a separate limit. Your request can - * fail for this limit even if your plaintext meets the other requirements. The - * PackedPolicySize response element indicates by percentage how close the - * policies and tags for your request are to the upper size limit.

- *
- *

You can pass a session tag with the same key as a tag that is already attached to the - * role. When you do, session tags override a role tag with the same key.

- *

Tag key–value pairs are not case sensitive, but case is preserved. This means that you - * cannot have separate Department and department tag keys. Assume - * that the role has the Department=Marketing tag and you pass the - * department=engineering session tag. Department - * and department are not saved as separate tags, and the session tag passed in - * the request takes precedence over the role tag.

- *

Additionally, if you used temporary credentials to perform this operation, the new - * session inherits any transitive session tags from the calling session. If you pass a - * session tag with the same key as an inherited tag, the operation fails. To view the - * inherited tags for a session, see the CloudTrail logs. For more information, see Viewing Session Tags in CloudTrail in the - * IAM User Guide.

- */ - Tags?: Tag[]; - /** - * @public - *

A list of keys for session tags that you want to set as transitive. If you set a tag key - * as transitive, the corresponding key and value passes to subsequent sessions in a role - * chain. For more information, see Chaining Roles - * with Session Tags in the IAM User Guide.

- *

This parameter is optional. When you set session tags as transitive, the session policy - * and session tags packed binary limit is not affected.

- *

If you choose not to specify a transitive tag key, then no tags are passed from this - * session to any subsequent sessions.

- */ - TransitiveTagKeys?: string[]; - /** - * @public - *

A unique identifier that might be required when you assume a role in another account. If - * the administrator of the account to which the role belongs provided you with an external - * ID, then provide that value in the ExternalId parameter. This value can be any - * string, such as a passphrase or account number. A cross-account role is usually set up to - * trust everyone in an account. Therefore, the administrator of the trusting account might - * send an external ID to the administrator of the trusted account. That way, only someone - * with the ID can assume the role, rather than everyone in the account. For more information - * about the external ID, see How to Use an External ID - * When Granting Access to Your Amazon Web Services Resources to a Third Party in the - * IAM User Guide.

- *

The regex used to validate this parameter is a string of - * characters consisting of upper- and lower-case alphanumeric characters with no spaces. - * You can also include underscores or any of the following characters: =,.@:/-

- */ - ExternalId?: string; - /** - * @public - *

The identification number of the MFA device that is associated with the user who is - * making the AssumeRole call. Specify this value if the trust policy of the role - * being assumed includes a condition that requires MFA authentication. The value is either - * the serial number for a hardware device (such as GAHT12345678) or an Amazon - * Resource Name (ARN) for a virtual device (such as - * arn:aws:iam::123456789012:mfa/user).

- *

The regex used to validate this parameter is a string of characters - * consisting of upper- and lower-case alphanumeric characters with no spaces. You can - * also include underscores or any of the following characters: =,.@-

- */ - SerialNumber?: string; - /** - * @public - *

The value provided by the MFA device, if the trust policy of the role being assumed - * requires MFA. (In other words, if the policy includes a condition that tests for MFA). If - * the role being assumed requires MFA and if the TokenCode value is missing or - * expired, the AssumeRole call returns an "access denied" error.

- *

The format for this parameter, as described by its regex pattern, is a sequence of six - * numeric digits.

- */ - TokenCode?: string; - /** - * @public - *

The source identity specified by the principal that is calling the - * AssumeRole operation.

- *

You can require users to specify a source identity when they assume a role. You do this - * by using the sts:SourceIdentity condition key in a role trust policy. You can - * use source identity information in CloudTrail logs to determine who took actions with a role. - * You can use the aws:SourceIdentity condition key to further control access to - * Amazon Web Services resources based on the value of source identity. For more information about using - * source identity, see Monitor and control - * actions taken with assumed roles in the - * IAM User Guide.

- *

The regex used to validate this parameter is a string of characters consisting of upper- - * and lower-case alphanumeric characters with no spaces. You can also include underscores or - * any of the following characters: =,.@-. You cannot use a value that begins with the text - * aws:. This prefix is reserved for Amazon Web Services internal use.

- */ - SourceIdentity?: string; - /** - * @public - *

A list of previously acquired trusted context assertions in the format of a JSON array. - * The trusted context assertion is signed and encrypted by Amazon Web Services STS.

- *

The following is an example of a ProvidedContext value that includes a - * single trusted context assertion and the ARN of the context provider from which the trusted - * context assertion was generated.

- *

- * [\{"ProviderArn":"arn:aws:iam::aws:contextProvider/identitycenter","ContextAssertion":"trusted-context-assertion"\}] - *

- */ - ProvidedContexts?: ProvidedContext[]; -} -/** - * @public - *

Amazon Web Services credentials for API authentication.

- */ -export interface Credentials { - /** - * @public - *

The access key ID that identifies the temporary security credentials.

- */ - AccessKeyId: string | undefined; - /** - * @public - *

The secret access key that can be used to sign requests.

- */ - SecretAccessKey: string | undefined; - /** - * @public - *

The token that users must pass to the service API to use the temporary - * credentials.

- */ - SessionToken: string | undefined; - /** - * @public - *

The date on which the current credentials expire.

- */ - Expiration: Date | undefined; -} -/** - * @public - *

Contains the response to a successful AssumeRole request, including - * temporary Amazon Web Services credentials that can be used to make Amazon Web Services requests.

- */ -export interface AssumeRoleResponse { - /** - * @public - *

The temporary security credentials, which include an access key ID, a secret access key, - * and a security (or session) token.

- * - *

The size of the security token that STS API operations return is not fixed. We - * strongly recommend that you make no assumptions about the maximum size.

- *
- */ - Credentials?: Credentials; - /** - * @public - *

The Amazon Resource Name (ARN) and the assumed role ID, which are identifiers that you - * can use to refer to the resulting temporary security credentials. For example, you can - * reference these credentials as a principal in a resource-based policy by using the ARN or - * assumed role ID. The ARN and ID include the RoleSessionName that you specified - * when you called AssumeRole.

- */ - AssumedRoleUser?: AssumedRoleUser; - /** - * @public - *

A percentage value that indicates the packed size of the session policies and session - * tags combined passed in the request. The request fails if the packed size is greater than 100 percent, - * which means the policies and tags exceeded the allowed space.

- */ - PackedPolicySize?: number; - /** - * @public - *

The source identity specified by the principal that is calling the - * AssumeRole operation.

- *

You can require users to specify a source identity when they assume a role. You do this - * by using the sts:SourceIdentity condition key in a role trust policy. You can - * use source identity information in CloudTrail logs to determine who took actions with a role. - * You can use the aws:SourceIdentity condition key to further control access to - * Amazon Web Services resources based on the value of source identity. For more information about using - * source identity, see Monitor and control - * actions taken with assumed roles in the - * IAM User Guide.

- *

The regex used to validate this parameter is a string of characters consisting of upper- - * and lower-case alphanumeric characters with no spaces. You can also include underscores or - * any of the following characters: =,.@-

- */ - SourceIdentity?: string; -} -/** - * @public - *

The web identity token that was passed is expired or is not valid. Get a new identity - * token from the identity provider and then retry the request.

- */ -export declare class ExpiredTokenException extends __BaseException { - readonly name: "ExpiredTokenException"; - readonly $fault: "client"; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

The request was rejected because the policy document was malformed. The error message - * describes the specific error.

- */ -export declare class MalformedPolicyDocumentException extends __BaseException { - readonly name: "MalformedPolicyDocumentException"; - readonly $fault: "client"; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

The request was rejected because the total packed size of the session policies and - * session tags combined was too large. An Amazon Web Services conversion compresses the session policy - * document, session policy ARNs, and session tags into a packed binary format that has a - * separate limit. The error message indicates by percentage how close the policies and - * tags are to the upper size limit. For more information, see Passing Session Tags in STS in - * the IAM User Guide.

- *

You could receive this error even though you meet other defined session policy and - * session tag limits. For more information, see IAM and STS Entity - * Character Limits in the IAM User Guide.

- */ -export declare class PackedPolicyTooLargeException extends __BaseException { - readonly name: "PackedPolicyTooLargeException"; - readonly $fault: "client"; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

STS is not activated in the requested region for the account that is being asked to - * generate credentials. The account administrator must use the IAM console to activate STS - * in that region. For more information, see Activating and - * Deactivating Amazon Web Services STS in an Amazon Web Services Region in the IAM User - * Guide.

- */ -export declare class RegionDisabledException extends __BaseException { - readonly name: "RegionDisabledException"; - readonly $fault: "client"; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - */ -export interface AssumeRoleWithSAMLRequest { - /** - * @public - *

The Amazon Resource Name (ARN) of the role that the caller is assuming.

- */ - RoleArn: string | undefined; - /** - * @public - *

The Amazon Resource Name (ARN) of the SAML provider in IAM that describes the - * IdP.

- */ - PrincipalArn: string | undefined; - /** - * @public - *

The base64 encoded SAML authentication response provided by the IdP.

- *

For more information, see Configuring a Relying Party and - * Adding Claims in the IAM User Guide.

- */ - SAMLAssertion: string | undefined; - /** - * @public - *

The Amazon Resource Names (ARNs) of the IAM managed policies that you want to use as - * managed session policies. The policies must exist in the same account as the role.

- *

This parameter is optional. You can provide up to 10 managed policy ARNs. However, the - * plaintext that you use for both inline and managed session policies can't exceed 2,048 - * characters. For more information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services - * Service Namespaces in the Amazon Web Services General Reference.

- * - *

An Amazon Web Services conversion compresses the passed inline session policy, managed policy ARNs, - * and session tags into a packed binary format that has a separate limit. Your request can - * fail for this limit even if your plaintext meets the other requirements. The - * PackedPolicySize response element indicates by percentage how close the - * policies and tags for your request are to the upper size limit.

- *
- *

Passing policies to this operation returns new - * temporary credentials. The resulting session's permissions are the intersection of the - * role's identity-based policy and the session policies. You can use the role's temporary - * credentials in subsequent Amazon Web Services API calls to access resources in the account that owns - * the role. You cannot use session policies to grant more permissions than those allowed - * by the identity-based policy of the role that is being assumed. For more information, see - * Session - * Policies in the IAM User Guide.

- */ - PolicyArns?: PolicyDescriptorType[]; - /** - * @public - *

An IAM policy in JSON format that you want to use as an inline session policy.

- *

This parameter is optional. Passing policies to this operation returns new - * temporary credentials. The resulting session's permissions are the intersection of the - * role's identity-based policy and the session policies. You can use the role's temporary - * credentials in subsequent Amazon Web Services API calls to access resources in the account that owns - * the role. You cannot use session policies to grant more permissions than those allowed - * by the identity-based policy of the role that is being assumed. For more information, see - * Session - * Policies in the IAM User Guide.

- *

The plaintext that you use for both inline and managed session policies can't exceed - * 2,048 characters. The JSON policy characters can be any ASCII character from the space - * character to the end of the valid character list (\u0020 through \u00FF). It can also - * include the tab (\u0009), linefeed (\u000A), and carriage return (\u000D) - * characters.

- * - *

An Amazon Web Services conversion compresses the passed inline session policy, managed policy ARNs, - * and session tags into a packed binary format that has a separate limit. Your request can - * fail for this limit even if your plaintext meets the other requirements. The - * PackedPolicySize response element indicates by percentage how close the - * policies and tags for your request are to the upper size limit.

- *
- */ - Policy?: string; - /** - * @public - *

The duration, in seconds, of the role session. Your role session lasts for the duration - * that you specify for the DurationSeconds parameter, or until the time - * specified in the SAML authentication response's SessionNotOnOrAfter value, - * whichever is shorter. You can provide a DurationSeconds value from 900 seconds - * (15 minutes) up to the maximum session duration setting for the role. This setting can have - * a value from 1 hour to 12 hours. If you specify a value higher than this setting, the - * operation fails. For example, if you specify a session duration of 12 hours, but your - * administrator set the maximum session duration to 6 hours, your operation fails. To learn - * how to view the maximum value for your role, see View the - * Maximum Session Duration Setting for a Role in the - * IAM User Guide.

- *

By default, the value is set to 3600 seconds.

- * - *

The DurationSeconds parameter is separate from the duration of a console - * session that you might request using the returned credentials. The request to the - * federation endpoint for a console sign-in token takes a SessionDuration - * parameter that specifies the maximum length of the console session. For more - * information, see Creating a URL - * that Enables Federated Users to Access the Amazon Web Services Management Console in the - * IAM User Guide.

- *
- */ - DurationSeconds?: number; -} -/** - * @public - *

Contains the response to a successful AssumeRoleWithSAML request, - * including temporary Amazon Web Services credentials that can be used to make Amazon Web Services requests.

- */ -export interface AssumeRoleWithSAMLResponse { - /** - * @public - *

The temporary security credentials, which include an access key ID, a secret access key, - * and a security (or session) token.

- * - *

The size of the security token that STS API operations return is not fixed. We - * strongly recommend that you make no assumptions about the maximum size.

- *
- */ - Credentials?: Credentials; - /** - * @public - *

The identifiers for the temporary security credentials that the operation - * returns.

- */ - AssumedRoleUser?: AssumedRoleUser; - /** - * @public - *

A percentage value that indicates the packed size of the session policies and session - * tags combined passed in the request. The request fails if the packed size is greater than 100 percent, - * which means the policies and tags exceeded the allowed space.

- */ - PackedPolicySize?: number; - /** - * @public - *

The value of the NameID element in the Subject element of the - * SAML assertion.

- */ - Subject?: string; - /** - * @public - *

The format of the name ID, as defined by the Format attribute in the - * NameID element of the SAML assertion. Typical examples of the format are - * transient or persistent.

- *

If the format includes the prefix - * urn:oasis:names:tc:SAML:2.0:nameid-format, that prefix is removed. For - * example, urn:oasis:names:tc:SAML:2.0:nameid-format:transient is returned as - * transient. If the format includes any other prefix, the format is returned - * with no modifications.

- */ - SubjectType?: string; - /** - * @public - *

The value of the Issuer element of the SAML assertion.

- */ - Issuer?: string; - /** - * @public - *

The value of the Recipient attribute of the - * SubjectConfirmationData element of the SAML assertion.

- */ - Audience?: string; - /** - * @public - *

A hash value based on the concatenation of the following:

- *
    - *
  • - *

    The Issuer response value.

    - *
  • - *
  • - *

    The Amazon Web Services account ID.

    - *
  • - *
  • - *

    The friendly name (the last part of the ARN) of the SAML provider in IAM.

    - *
  • - *
- *

The combination of NameQualifier and Subject can be used to - * uniquely identify a user.

- *

The following pseudocode shows how the hash value is calculated:

- *

- * BASE64 ( SHA1 ( "https://example.com/saml" + "123456789012" + "/MySAMLIdP" ) ) - *

- */ - NameQualifier?: string; - /** - * @public - *

The value in the SourceIdentity attribute in the SAML assertion.

- *

You can require users to set a source identity value when they assume a role. You do - * this by using the sts:SourceIdentity condition key in a role trust policy. - * That way, actions that are taken with the role are associated with that user. After the - * source identity is set, the value cannot be changed. It is present in the request for all - * actions that are taken by the role and persists across chained - * role sessions. You can configure your SAML identity provider to use an attribute - * associated with your users, like user name or email, as the source identity when calling - * AssumeRoleWithSAML. You do this by adding an attribute to the SAML - * assertion. For more information about using source identity, see Monitor and control - * actions taken with assumed roles in the - * IAM User Guide.

- *

The regex used to validate this parameter is a string of characters - * consisting of upper- and lower-case alphanumeric characters with no spaces. You can - * also include underscores or any of the following characters: =,.@-

- */ - SourceIdentity?: string; -} -/** - * @public - *

The identity provider (IdP) reported that authentication failed. This might be because - * the claim is invalid.

- *

If this error is returned for the AssumeRoleWithWebIdentity operation, it - * can also mean that the claim has expired or has been explicitly revoked.

- */ -export declare class IDPRejectedClaimException extends __BaseException { - readonly name: "IDPRejectedClaimException"; - readonly $fault: "client"; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - *

The web identity token that was passed could not be validated by Amazon Web Services. Get a new - * identity token from the identity provider and then retry the request.

- */ -export declare class InvalidIdentityTokenException extends __BaseException { - readonly name: "InvalidIdentityTokenException"; - readonly $fault: "client"; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - */ -export interface AssumeRoleWithWebIdentityRequest { - /** - * @public - *

The Amazon Resource Name (ARN) of the role that the caller is assuming.

- */ - RoleArn: string | undefined; - /** - * @public - *

An identifier for the assumed role session. Typically, you pass the name or identifier - * that is associated with the user who is using your application. That way, the temporary - * security credentials that your application will use are associated with that user. This - * session name is included as part of the ARN and assumed role ID in the - * AssumedRoleUser response element.

- *

The regex used to validate this parameter is a string of characters - * consisting of upper- and lower-case alphanumeric characters with no spaces. You can - * also include underscores or any of the following characters: =,.@-

- */ - RoleSessionName: string | undefined; - /** - * @public - *

The OAuth 2.0 access token or OpenID Connect ID token that is provided by the identity - * provider. Your application must get this token by authenticating the user who is using your - * application with a web identity provider before the application makes an - * AssumeRoleWithWebIdentity call. Only tokens with RSA algorithms (RS256) are - * supported.

- */ - WebIdentityToken: string | undefined; - /** - * @public - *

The fully qualified host component of the domain name of the OAuth 2.0 identity - * provider. Do not specify this value for an OpenID Connect identity provider.

- *

Currently www.amazon.com and graph.facebook.com are the only - * supported identity providers for OAuth 2.0 access tokens. Do not include URL schemes and - * port numbers.

- *

Do not specify this value for OpenID Connect ID tokens.

- */ - ProviderId?: string; - /** - * @public - *

The Amazon Resource Names (ARNs) of the IAM managed policies that you want to use as - * managed session policies. The policies must exist in the same account as the role.

- *

This parameter is optional. You can provide up to 10 managed policy ARNs. However, the - * plaintext that you use for both inline and managed session policies can't exceed 2,048 - * characters. For more information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services - * Service Namespaces in the Amazon Web Services General Reference.

- * - *

An Amazon Web Services conversion compresses the passed inline session policy, managed policy ARNs, - * and session tags into a packed binary format that has a separate limit. Your request can - * fail for this limit even if your plaintext meets the other requirements. The - * PackedPolicySize response element indicates by percentage how close the - * policies and tags for your request are to the upper size limit.

- *
- *

Passing policies to this operation returns new - * temporary credentials. The resulting session's permissions are the intersection of the - * role's identity-based policy and the session policies. You can use the role's temporary - * credentials in subsequent Amazon Web Services API calls to access resources in the account that owns - * the role. You cannot use session policies to grant more permissions than those allowed - * by the identity-based policy of the role that is being assumed. For more information, see - * Session - * Policies in the IAM User Guide.

- */ - PolicyArns?: PolicyDescriptorType[]; - /** - * @public - *

An IAM policy in JSON format that you want to use as an inline session policy.

- *

This parameter is optional. Passing policies to this operation returns new - * temporary credentials. The resulting session's permissions are the intersection of the - * role's identity-based policy and the session policies. You can use the role's temporary - * credentials in subsequent Amazon Web Services API calls to access resources in the account that owns - * the role. You cannot use session policies to grant more permissions than those allowed - * by the identity-based policy of the role that is being assumed. For more information, see - * Session - * Policies in the IAM User Guide.

- *

The plaintext that you use for both inline and managed session policies can't exceed - * 2,048 characters. The JSON policy characters can be any ASCII character from the space - * character to the end of the valid character list (\u0020 through \u00FF). It can also - * include the tab (\u0009), linefeed (\u000A), and carriage return (\u000D) - * characters.

- * - *

An Amazon Web Services conversion compresses the passed inline session policy, managed policy ARNs, - * and session tags into a packed binary format that has a separate limit. Your request can - * fail for this limit even if your plaintext meets the other requirements. The - * PackedPolicySize response element indicates by percentage how close the - * policies and tags for your request are to the upper size limit.

- *
- */ - Policy?: string; - /** - * @public - *

The duration, in seconds, of the role session. The value can range from 900 seconds (15 - * minutes) up to the maximum session duration setting for the role. This setting can have a - * value from 1 hour to 12 hours. If you specify a value higher than this setting, the - * operation fails. For example, if you specify a session duration of 12 hours, but your - * administrator set the maximum session duration to 6 hours, your operation fails. To learn - * how to view the maximum value for your role, see View the - * Maximum Session Duration Setting for a Role in the - * IAM User Guide.

- *

By default, the value is set to 3600 seconds.

- * - *

The DurationSeconds parameter is separate from the duration of a console - * session that you might request using the returned credentials. The request to the - * federation endpoint for a console sign-in token takes a SessionDuration - * parameter that specifies the maximum length of the console session. For more - * information, see Creating a URL - * that Enables Federated Users to Access the Amazon Web Services Management Console in the - * IAM User Guide.

- *
- */ - DurationSeconds?: number; -} -/** - * @public - *

Contains the response to a successful AssumeRoleWithWebIdentity - * request, including temporary Amazon Web Services credentials that can be used to make Amazon Web Services requests.

- */ -export interface AssumeRoleWithWebIdentityResponse { - /** - * @public - *

The temporary security credentials, which include an access key ID, a secret access key, - * and a security token.

- * - *

The size of the security token that STS API operations return is not fixed. We - * strongly recommend that you make no assumptions about the maximum size.

- *
- */ - Credentials?: Credentials; - /** - * @public - *

The unique user identifier that is returned by the identity provider. This identifier is - * associated with the WebIdentityToken that was submitted with the - * AssumeRoleWithWebIdentity call. The identifier is typically unique to the - * user and the application that acquired the WebIdentityToken (pairwise - * identifier). For OpenID Connect ID tokens, this field contains the value returned by the - * identity provider as the token's sub (Subject) claim.

- */ - SubjectFromWebIdentityToken?: string; - /** - * @public - *

The Amazon Resource Name (ARN) and the assumed role ID, which are identifiers that you - * can use to refer to the resulting temporary security credentials. For example, you can - * reference these credentials as a principal in a resource-based policy by using the ARN or - * assumed role ID. The ARN and ID include the RoleSessionName that you specified - * when you called AssumeRole.

- */ - AssumedRoleUser?: AssumedRoleUser; - /** - * @public - *

A percentage value that indicates the packed size of the session policies and session - * tags combined passed in the request. The request fails if the packed size is greater than 100 percent, - * which means the policies and tags exceeded the allowed space.

- */ - PackedPolicySize?: number; - /** - * @public - *

The issuing authority of the web identity token presented. For OpenID Connect ID - * tokens, this contains the value of the iss field. For OAuth 2.0 access tokens, - * this contains the value of the ProviderId parameter that was passed in the - * AssumeRoleWithWebIdentity request.

- */ - Provider?: string; - /** - * @public - *

The intended audience (also known as client ID) of the web identity token. This is - * traditionally the client identifier issued to the application that requested the web - * identity token.

- */ - Audience?: string; - /** - * @public - *

The value of the source identity that is returned in the JSON web token (JWT) from the - * identity provider.

- *

You can require users to set a source identity value when they assume a role. You do - * this by using the sts:SourceIdentity condition key in a role trust policy. - * That way, actions that are taken with the role are associated with that user. After the - * source identity is set, the value cannot be changed. It is present in the request for all - * actions that are taken by the role and persists across chained - * role sessions. You can configure your identity provider to use an attribute - * associated with your users, like user name or email, as the source identity when calling - * AssumeRoleWithWebIdentity. You do this by adding a claim to the JSON web - * token. To learn more about OIDC tokens and claims, see Using Tokens with User Pools in the Amazon Cognito Developer Guide. - * For more information about using source identity, see Monitor and control - * actions taken with assumed roles in the - * IAM User Guide.

- *

The regex used to validate this parameter is a string of characters - * consisting of upper- and lower-case alphanumeric characters with no spaces. You can - * also include underscores or any of the following characters: =,.@-

- */ - SourceIdentity?: string; -} -/** - * @public - *

The request could not be fulfilled because the identity provider (IDP) that - * was asked to verify the incoming identity token could not be reached. This is often a - * transient error caused by network conditions. Retry the request a limited number of - * times so that you don't exceed the request rate. If the error persists, the - * identity provider might be down or not responding.

- */ -export declare class IDPCommunicationErrorException extends __BaseException { - readonly name: "IDPCommunicationErrorException"; - readonly $fault: "client"; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - */ -export interface DecodeAuthorizationMessageRequest { - /** - * @public - *

The encoded message that was returned with the response.

- */ - EncodedMessage: string | undefined; -} -/** - * @public - *

A document that contains additional information about the authorization status of a - * request from an encoded message that is returned in response to an Amazon Web Services request.

- */ -export interface DecodeAuthorizationMessageResponse { - /** - * @public - *

The API returns a response with the decoded message.

- */ - DecodedMessage?: string; -} -/** - * @public - *

The error returned if the message passed to DecodeAuthorizationMessage - * was invalid. This can happen if the token contains invalid characters, such as - * linebreaks.

- */ -export declare class InvalidAuthorizationMessageException extends __BaseException { - readonly name: "InvalidAuthorizationMessageException"; - readonly $fault: "client"; - /** - * @internal - */ - constructor(opts: __ExceptionOptionType); -} -/** - * @public - */ -export interface GetAccessKeyInfoRequest { - /** - * @public - *

The identifier of an access key.

- *

This parameter allows (through its regex pattern) a string of characters that can - * consist of any upper- or lowercase letter or digit.

- */ - AccessKeyId: string | undefined; -} -/** - * @public - */ -export interface GetAccessKeyInfoResponse { - /** - * @public - *

The number used to identify the Amazon Web Services account.

- */ - Account?: string; -} -/** - * @public - */ -export interface GetCallerIdentityRequest { -} -/** - * @public - *

Contains the response to a successful GetCallerIdentity request, - * including information about the entity making the request.

- */ -export interface GetCallerIdentityResponse { - /** - * @public - *

The unique identifier of the calling entity. The exact value depends on the type of - * entity that is making the call. The values returned are those listed in the aws:userid column in the Principal - * table found on the Policy Variables reference - * page in the IAM User Guide.

- */ - UserId?: string; - /** - * @public - *

The Amazon Web Services account ID number of the account that owns or contains the calling - * entity.

- */ - Account?: string; - /** - * @public - *

The Amazon Web Services ARN associated with the calling entity.

- */ - Arn?: string; -} -/** - * @public - */ -export interface GetFederationTokenRequest { - /** - * @public - *

The name of the federated user. The name is used as an identifier for the temporary - * security credentials (such as Bob). For example, you can reference the - * federated user name in a resource-based policy, such as in an Amazon S3 bucket policy.

- *

The regex used to validate this parameter is a string of characters - * consisting of upper- and lower-case alphanumeric characters with no spaces. You can - * also include underscores or any of the following characters: =,.@-

- */ - Name: string | undefined; - /** - * @public - *

An IAM policy in JSON format that you want to use as an inline session policy.

- *

You must pass an inline or managed session policy to - * this operation. You can pass a single JSON policy document to use as an inline session - * policy. You can also specify up to 10 managed policy Amazon Resource Names (ARNs) to use as - * managed session policies.

- *

This parameter is optional. However, if you do not pass any session policies, then the - * resulting federated user session has no permissions.

- *

When you pass session policies, the session permissions are the intersection of the - * IAM user policies and the session policies that you pass. This gives you - * a way to further restrict the permissions for a federated user. You cannot use session - * policies to grant more permissions than those that are defined in the permissions policy of - * the IAM user. For more information, see Session Policies in - * the IAM User Guide.

- *

The resulting credentials can be used to access a resource that has a resource-based - * policy. If that policy specifically references the federated user session in the - * Principal element of the policy, the session has the permissions allowed by - * the policy. These permissions are granted in addition to the permissions that are granted - * by the session policies.

- *

The plaintext that you use for both inline and managed session policies can't exceed - * 2,048 characters. The JSON policy characters can be any ASCII character from the space - * character to the end of the valid character list (\u0020 through \u00FF). It can also - * include the tab (\u0009), linefeed (\u000A), and carriage return (\u000D) - * characters.

- * - *

An Amazon Web Services conversion compresses the passed inline session policy, managed policy ARNs, - * and session tags into a packed binary format that has a separate limit. Your request can - * fail for this limit even if your plaintext meets the other requirements. The - * PackedPolicySize response element indicates by percentage how close the - * policies and tags for your request are to the upper size limit.

- *
- */ - Policy?: string; - /** - * @public - *

The Amazon Resource Names (ARNs) of the IAM managed policies that you want to use as a - * managed session policy. The policies must exist in the same account as the IAM user that is requesting federated access.

- *

You must pass an inline or managed session policy to - * this operation. You can pass a single JSON policy document to use as an inline session - * policy. You can also specify up to 10 managed policy Amazon Resource Names (ARNs) to use as - * managed session policies. The plaintext that you use for both inline and managed session - * policies can't exceed 2,048 characters. You can provide up to 10 managed policy ARNs. For - * more information about ARNs, see Amazon Resource Names (ARNs) and Amazon Web Services - * Service Namespaces in the Amazon Web Services General Reference.

- *

This parameter is optional. However, if you do not pass any session policies, then the - * resulting federated user session has no permissions.

- *

When you pass session policies, the session permissions are the intersection of the - * IAM user policies and the session policies that you pass. This gives you - * a way to further restrict the permissions for a federated user. You cannot use session - * policies to grant more permissions than those that are defined in the permissions policy of - * the IAM user. For more information, see Session Policies in - * the IAM User Guide.

- *

The resulting credentials can be used to access a resource that has a resource-based - * policy. If that policy specifically references the federated user session in the - * Principal element of the policy, the session has the permissions allowed by - * the policy. These permissions are granted in addition to the permissions that are granted - * by the session policies.

- * - *

An Amazon Web Services conversion compresses the passed inline session policy, managed policy ARNs, - * and session tags into a packed binary format that has a separate limit. Your request can - * fail for this limit even if your plaintext meets the other requirements. The - * PackedPolicySize response element indicates by percentage how close the - * policies and tags for your request are to the upper size limit.

- *
- */ - PolicyArns?: PolicyDescriptorType[]; - /** - * @public - *

The duration, in seconds, that the session should last. Acceptable durations for - * federation sessions range from 900 seconds (15 minutes) to 129,600 seconds (36 hours), with - * 43,200 seconds (12 hours) as the default. Sessions obtained using root user - * credentials are restricted to a maximum of 3,600 seconds (one hour). If the specified - * duration is longer than one hour, the session obtained by using root user - * credentials defaults to one hour.

- */ - DurationSeconds?: number; - /** - * @public - *

A list of session tags. Each session tag consists of a key name and an associated value. - * For more information about session tags, see Passing Session Tags in STS in the - * IAM User Guide.

- *

This parameter is optional. You can pass up to 50 session tags. The plaintext session - * tag keys can’t exceed 128 characters and the values can’t exceed 256 characters. For these - * and additional limits, see IAM - * and STS Character Limits in the IAM User Guide.

- * - *

An Amazon Web Services conversion compresses the passed inline session policy, managed policy ARNs, - * and session tags into a packed binary format that has a separate limit. Your request can - * fail for this limit even if your plaintext meets the other requirements. The - * PackedPolicySize response element indicates by percentage how close the - * policies and tags for your request are to the upper size limit.

- *
- *

You can pass a session tag with the same key as a tag that is already attached to the - * user you are federating. When you do, session tags override a user tag with the same key.

- *

Tag key–value pairs are not case sensitive, but case is preserved. This means that you - * cannot have separate Department and department tag keys. Assume - * that the role has the Department=Marketing tag and you pass the - * department=engineering session tag. Department - * and department are not saved as separate tags, and the session tag passed in - * the request takes precedence over the role tag.

- */ - Tags?: Tag[]; -} -/** - * @public - *

Identifiers for the federated user that is associated with the credentials.

- */ -export interface FederatedUser { - /** - * @public - *

The string that identifies the federated user associated with the credentials, similar - * to the unique ID of an IAM user.

- */ - FederatedUserId: string | undefined; - /** - * @public - *

The ARN that specifies the federated user that is associated with the credentials. For - * more information about ARNs and how to use them in policies, see IAM - * Identifiers in the IAM User Guide.

- */ - Arn: string | undefined; -} -/** - * @public - *

Contains the response to a successful GetFederationToken request, - * including temporary Amazon Web Services credentials that can be used to make Amazon Web Services requests.

- */ -export interface GetFederationTokenResponse { - /** - * @public - *

The temporary security credentials, which include an access key ID, a secret access key, - * and a security (or session) token.

- * - *

The size of the security token that STS API operations return is not fixed. We - * strongly recommend that you make no assumptions about the maximum size.

- *
- */ - Credentials?: Credentials; - /** - * @public - *

Identifiers for the federated user associated with the credentials (such as - * arn:aws:sts::123456789012:federated-user/Bob or - * 123456789012:Bob). You can use the federated user's ARN in your - * resource-based policies, such as an Amazon S3 bucket policy.

- */ - FederatedUser?: FederatedUser; - /** - * @public - *

A percentage value that indicates the packed size of the session policies and session - * tags combined passed in the request. The request fails if the packed size is greater than 100 percent, - * which means the policies and tags exceeded the allowed space.

- */ - PackedPolicySize?: number; -} -/** - * @public - */ -export interface GetSessionTokenRequest { - /** - * @public - *

The duration, in seconds, that the credentials should remain valid. Acceptable durations - * for IAM user sessions range from 900 seconds (15 minutes) to 129,600 seconds - * (36 hours), with 43,200 seconds (12 hours) as the default. Sessions for Amazon Web Services account - * owners are restricted to a maximum of 3,600 seconds (one hour). If the duration is longer - * than one hour, the session for Amazon Web Services account owners defaults to one hour.

- */ - DurationSeconds?: number; - /** - * @public - *

The identification number of the MFA device that is associated with the IAM user who is making the GetSessionToken call. Specify this value - * if the IAM user has a policy that requires MFA authentication. The value is - * either the serial number for a hardware device (such as GAHT12345678) or an - * Amazon Resource Name (ARN) for a virtual device (such as - * arn:aws:iam::123456789012:mfa/user). You can find the device for an IAM user by going to the Amazon Web Services Management Console and viewing the user's security credentials.

- *

The regex used to validate this parameter is a string of - * characters consisting of upper- and lower-case alphanumeric characters with no spaces. - * You can also include underscores or any of the following characters: =,.@:/-

- */ - SerialNumber?: string; - /** - * @public - *

The value provided by the MFA device, if MFA is required. If any policy requires the - * IAM user to submit an MFA code, specify this value. If MFA authentication - * is required, the user must provide a code when requesting a set of temporary security - * credentials. A user who fails to provide the code receives an "access denied" response when - * requesting resources that require MFA authentication.

- *

The format for this parameter, as described by its regex pattern, is a sequence of six - * numeric digits.

- */ - TokenCode?: string; -} -/** - * @public - *

Contains the response to a successful GetSessionToken request, - * including temporary Amazon Web Services credentials that can be used to make Amazon Web Services requests.

- */ -export interface GetSessionTokenResponse { - /** - * @public - *

The temporary security credentials, which include an access key ID, a secret access key, - * and a security (or session) token.

- * - *

The size of the security token that STS API operations return is not fixed. We - * strongly recommend that you make no assumptions about the maximum size.

- *
- */ - Credentials?: Credentials; -} -/** - * @internal - */ -export declare const CredentialsFilterSensitiveLog: (obj: Credentials) => any; -/** - * @internal - */ -export declare const AssumeRoleResponseFilterSensitiveLog: (obj: AssumeRoleResponse) => any; -/** - * @internal - */ -export declare const AssumeRoleWithSAMLRequestFilterSensitiveLog: (obj: AssumeRoleWithSAMLRequest) => any; -/** - * @internal - */ -export declare const AssumeRoleWithSAMLResponseFilterSensitiveLog: (obj: AssumeRoleWithSAMLResponse) => any; -/** - * @internal - */ -export declare const AssumeRoleWithWebIdentityRequestFilterSensitiveLog: (obj: AssumeRoleWithWebIdentityRequest) => any; -/** - * @internal - */ -export declare const AssumeRoleWithWebIdentityResponseFilterSensitiveLog: (obj: AssumeRoleWithWebIdentityResponse) => any; -/** - * @internal - */ -export declare const GetFederationTokenResponseFilterSensitiveLog: (obj: GetFederationTokenResponse) => any; -/** - * @internal - */ -export declare const GetSessionTokenResponseFilterSensitiveLog: (obj: GetSessionTokenResponse) => any; diff --git a/node_modules/@aws-sdk/client-sts/dist-types/protocols/Aws_query.d.ts b/node_modules/@aws-sdk/client-sts/dist-types/protocols/Aws_query.d.ts deleted file mode 100644 index 0bdc58a2..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-types/protocols/Aws_query.d.ts +++ /dev/null @@ -1,74 +0,0 @@ -import { HttpRequest as __HttpRequest, HttpResponse as __HttpResponse } from "@smithy/protocol-http"; -import { SerdeContext as __SerdeContext } from "@smithy/types"; -import { AssumeRoleCommandInput, AssumeRoleCommandOutput } from "../commands/AssumeRoleCommand"; -import { AssumeRoleWithSAMLCommandInput, AssumeRoleWithSAMLCommandOutput } from "../commands/AssumeRoleWithSAMLCommand"; -import { AssumeRoleWithWebIdentityCommandInput, AssumeRoleWithWebIdentityCommandOutput } from "../commands/AssumeRoleWithWebIdentityCommand"; -import { DecodeAuthorizationMessageCommandInput, DecodeAuthorizationMessageCommandOutput } from "../commands/DecodeAuthorizationMessageCommand"; -import { GetAccessKeyInfoCommandInput, GetAccessKeyInfoCommandOutput } from "../commands/GetAccessKeyInfoCommand"; -import { GetCallerIdentityCommandInput, GetCallerIdentityCommandOutput } from "../commands/GetCallerIdentityCommand"; -import { GetFederationTokenCommandInput, GetFederationTokenCommandOutput } from "../commands/GetFederationTokenCommand"; -import { GetSessionTokenCommandInput, GetSessionTokenCommandOutput } from "../commands/GetSessionTokenCommand"; -/** - * serializeAws_queryAssumeRoleCommand - */ -export declare const se_AssumeRoleCommand: (input: AssumeRoleCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_queryAssumeRoleWithSAMLCommand - */ -export declare const se_AssumeRoleWithSAMLCommand: (input: AssumeRoleWithSAMLCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_queryAssumeRoleWithWebIdentityCommand - */ -export declare const se_AssumeRoleWithWebIdentityCommand: (input: AssumeRoleWithWebIdentityCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_queryDecodeAuthorizationMessageCommand - */ -export declare const se_DecodeAuthorizationMessageCommand: (input: DecodeAuthorizationMessageCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_queryGetAccessKeyInfoCommand - */ -export declare const se_GetAccessKeyInfoCommand: (input: GetAccessKeyInfoCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_queryGetCallerIdentityCommand - */ -export declare const se_GetCallerIdentityCommand: (input: GetCallerIdentityCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_queryGetFederationTokenCommand - */ -export declare const se_GetFederationTokenCommand: (input: GetFederationTokenCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * serializeAws_queryGetSessionTokenCommand - */ -export declare const se_GetSessionTokenCommand: (input: GetSessionTokenCommandInput, context: __SerdeContext) => Promise<__HttpRequest>; -/** - * deserializeAws_queryAssumeRoleCommand - */ -export declare const de_AssumeRoleCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_queryAssumeRoleWithSAMLCommand - */ -export declare const de_AssumeRoleWithSAMLCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_queryAssumeRoleWithWebIdentityCommand - */ -export declare const de_AssumeRoleWithWebIdentityCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_queryDecodeAuthorizationMessageCommand - */ -export declare const de_DecodeAuthorizationMessageCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_queryGetAccessKeyInfoCommand - */ -export declare const de_GetAccessKeyInfoCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_queryGetCallerIdentityCommand - */ -export declare const de_GetCallerIdentityCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_queryGetFederationTokenCommand - */ -export declare const de_GetFederationTokenCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; -/** - * deserializeAws_queryGetSessionTokenCommand - */ -export declare const de_GetSessionTokenCommand: (output: __HttpResponse, context: __SerdeContext) => Promise; diff --git a/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.browser.d.ts b/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.browser.d.ts deleted file mode 100644 index f8cf00d6..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.browser.d.ts +++ /dev/null @@ -1,47 +0,0 @@ -import { FetchHttpHandler as RequestHandler } from "@smithy/fetch-http-handler"; -import { STSClientConfig } from "./STSClient"; -/** - * @internal - */ -export declare const getRuntimeConfig: (config: STSClientConfig) => { - runtime: string; - defaultsMode: import("@smithy/types").Provider; - bodyLengthChecker: import("@smithy/types").BodyLengthCalculator; - credentialDefaultProvider: (input: any) => import("@smithy/types").Provider; - defaultUserAgentProvider: import("@smithy/types").Provider; - maxAttempts: number | import("@smithy/types").Provider; - region: string | import("@smithy/types").Provider; - requestHandler: (import("@smithy/types").RequestHandler & import("@smithy/types").RequestHandler & { - updateHttpClientConfig(key: never, value: never): void; - httpHandlerConfigs(): {}; - }) | RequestHandler; - retryMode: string | import("@smithy/types").Provider; - sha256: import("@smithy/types").HashConstructor; - streamCollector: import("@smithy/types").StreamCollector; - useDualstackEndpoint: boolean | import("@smithy/types").Provider; - useFipsEndpoint: boolean | import("@smithy/types").Provider; - apiVersion: string; - urlParser: import("@smithy/types").UrlParser; - base64Decoder: import("@smithy/types").Decoder; - base64Encoder: import("@smithy/types").Encoder; - utf8Decoder: import("@smithy/types").Decoder; - utf8Encoder: import("@smithy/types").Encoder; - disableHostPrefix: boolean; - serviceId: string; - logger: import("@smithy/types").Logger; - extensions: import("./runtimeExtensions").RuntimeExtension[]; - endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider) & (string | import("@smithy/types").Provider | import("@smithy/types").Endpoint | import("@smithy/types").Provider | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider)) | undefined; - endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: { - logger?: import("@smithy/types").Logger | undefined; - }) => import("@smithy/types").EndpointV2; - tls?: boolean | undefined; - retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined; - credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").Provider | undefined; - signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise) | undefined; - signingEscapePath?: boolean | undefined; - systemClockOffset?: number | undefined; - signingRegion?: string | undefined; - signerConstructor?: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | undefined; - customUserAgent?: string | import("@smithy/types").UserAgent | undefined; - useGlobalEndpoint?: boolean | import("@smithy/types").Provider | undefined; -}; diff --git a/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.d.ts b/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.d.ts deleted file mode 100644 index e0d33fbc..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.d.ts +++ /dev/null @@ -1,47 +0,0 @@ -import { NodeHttpHandler as RequestHandler } from "@smithy/node-http-handler"; -import { STSClientConfig } from "./STSClient"; -/** - * @internal - */ -export declare const getRuntimeConfig: (config: STSClientConfig) => { - runtime: string; - defaultsMode: import("@smithy/types").Provider; - bodyLengthChecker: import("@smithy/types").BodyLengthCalculator; - credentialDefaultProvider: import("./defaultStsRoleAssumers").DefaultCredentialProvider; - defaultUserAgentProvider: import("@smithy/types").Provider; - maxAttempts: number | import("@smithy/types").Provider; - region: string | import("@smithy/types").Provider; - requestHandler: (import("@smithy/types").RequestHandler & import("@smithy/types").RequestHandler & { - updateHttpClientConfig(key: never, value: never): void; - httpHandlerConfigs(): {}; - }) | RequestHandler; - retryMode: string | import("@smithy/types").Provider; - sha256: import("@smithy/types").HashConstructor; - streamCollector: import("@smithy/types").StreamCollector; - useDualstackEndpoint: boolean | import("@smithy/types").Provider; - useFipsEndpoint: boolean | import("@smithy/types").Provider; - apiVersion: string; - urlParser: import("@smithy/types").UrlParser; - base64Decoder: import("@smithy/types").Decoder; - base64Encoder: import("@smithy/types").Encoder; - utf8Decoder: import("@smithy/types").Decoder; - utf8Encoder: import("@smithy/types").Encoder; - disableHostPrefix: boolean; - serviceId: string; - logger: import("@smithy/types").Logger; - extensions: import("./runtimeExtensions").RuntimeExtension[]; - endpoint?: ((string | import("@smithy/types").Endpoint | import("@smithy/types").Provider | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider) & (string | import("@smithy/types").Provider | import("@smithy/types").Endpoint | import("@smithy/types").Provider | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider)) | undefined; - endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: { - logger?: import("@smithy/types").Logger | undefined; - }) => import("@smithy/types").EndpointV2; - tls?: boolean | undefined; - retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined; - credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").Provider | undefined; - signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise) | undefined; - signingEscapePath?: boolean | undefined; - systemClockOffset?: number | undefined; - signingRegion?: string | undefined; - signerConstructor?: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | undefined; - customUserAgent?: string | import("@smithy/types").UserAgent | undefined; - useGlobalEndpoint?: boolean | import("@smithy/types").Provider | undefined; -}; diff --git a/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.native.d.ts b/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.native.d.ts deleted file mode 100644 index 4b078c85..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.native.d.ts +++ /dev/null @@ -1,46 +0,0 @@ -import { STSClientConfig } from "./STSClient"; -/** - * @internal - */ -export declare const getRuntimeConfig: (config: STSClientConfig) => { - runtime: string; - sha256: import("@smithy/types").HashConstructor; - requestHandler: (import("@smithy/types").RequestHandler & import("@smithy/types").RequestHandler & { - updateHttpClientConfig(key: never, value: never): void; - httpHandlerConfigs(): {}; - }) | import("@smithy/fetch-http-handler").FetchHttpHandler; - apiVersion: string; - urlParser: import("@smithy/types").UrlParser; - bodyLengthChecker: import("@smithy/types").BodyLengthCalculator; - streamCollector: import("@smithy/types").StreamCollector; - base64Decoder: import("@smithy/types").Decoder; - base64Encoder: import("@smithy/types").Encoder; - utf8Decoder: import("@smithy/types").Decoder; - utf8Encoder: import("@smithy/types").Encoder; - disableHostPrefix: boolean; - serviceId: string; - useDualstackEndpoint: boolean | import("@smithy/types").Provider; - useFipsEndpoint: boolean | import("@smithy/types").Provider; - region: string | import("@smithy/types").Provider; - credentialDefaultProvider: (input: any) => import("@smithy/types").Provider; - defaultUserAgentProvider: import("@smithy/types").Provider; - maxAttempts: number | import("@smithy/types").Provider; - retryMode: string | import("@smithy/types").Provider; - logger: import("@smithy/types").Logger; - extensions: import("./runtimeExtensions").RuntimeExtension[]; - defaultsMode: import("@smithy/smithy-client").DefaultsMode | import("@smithy/types").Provider; - endpoint?: string | import("@smithy/types").Endpoint | import("@smithy/types").Provider | import("@smithy/types").EndpointV2 | import("@smithy/types").Provider | undefined; - endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: { - logger?: import("@smithy/types").Logger | undefined; - }) => import("@smithy/types").EndpointV2; - tls?: boolean | undefined; - retryStrategy?: import("@smithy/types").RetryStrategy | import("@smithy/types").RetryStrategyV2 | undefined; - credentials?: import("@smithy/types").AwsCredentialIdentity | import("@smithy/types").Provider | undefined; - signer?: import("@smithy/types").RequestSigner | ((authScheme?: import("@smithy/types").AuthScheme | undefined) => Promise) | undefined; - signingEscapePath?: boolean | undefined; - systemClockOffset?: number | undefined; - signingRegion?: string | undefined; - signerConstructor?: (new (options: import("@smithy/signature-v4").SignatureV4Init & import("@smithy/signature-v4").SignatureV4CryptoInit) => import("@smithy/types").RequestSigner) | undefined; - customUserAgent?: string | import("@smithy/types").UserAgent | undefined; - useGlobalEndpoint?: boolean | import("@smithy/types").Provider | undefined; -}; diff --git a/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.shared.d.ts b/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.shared.d.ts deleted file mode 100644 index 891bad5b..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-types/runtimeConfig.shared.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { STSClientConfig } from "./STSClient"; -/** - * @internal - */ -export declare const getRuntimeConfig: (config: STSClientConfig) => { - apiVersion: string; - base64Decoder: import("@smithy/types").Decoder; - base64Encoder: import("@smithy/types").Encoder; - disableHostPrefix: boolean; - endpointProvider: (endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, context?: { - logger?: import("@smithy/types").Logger | undefined; - }) => import("@smithy/types").EndpointV2; - extensions: import("./runtimeExtensions").RuntimeExtension[]; - logger: import("@smithy/types").Logger; - serviceId: string; - urlParser: import("@smithy/types").UrlParser; - utf8Decoder: import("@smithy/types").Decoder; - utf8Encoder: import("@smithy/types").Encoder; -}; diff --git a/node_modules/@aws-sdk/client-sts/dist-types/runtimeExtensions.d.ts b/node_modules/@aws-sdk/client-sts/dist-types/runtimeExtensions.d.ts deleted file mode 100644 index ebd8567f..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-types/runtimeExtensions.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { STSExtensionConfiguration } from "./extensionConfiguration"; -/** - * @public - */ -export interface RuntimeExtension { - configure(extensionConfiguration: STSExtensionConfiguration): void; -} -/** - * @public - */ -export interface RuntimeExtensionsConfig { - extensions: RuntimeExtension[]; -} -/** - * @internal - */ -export declare const resolveRuntimeExtensions: (runtimeConfig: any, extensions: RuntimeExtension[]) => any; diff --git a/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/STS.d.ts b/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/STS.d.ts deleted file mode 100644 index 94150b06..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/STS.d.ts +++ /dev/null @@ -1,141 +0,0 @@ -import { HttpHandlerOptions as __HttpHandlerOptions } from "@smithy/types"; -import { - AssumeRoleCommandInput, - AssumeRoleCommandOutput, -} from "./commands/AssumeRoleCommand"; -import { - AssumeRoleWithSAMLCommandInput, - AssumeRoleWithSAMLCommandOutput, -} from "./commands/AssumeRoleWithSAMLCommand"; -import { - AssumeRoleWithWebIdentityCommandInput, - AssumeRoleWithWebIdentityCommandOutput, -} from "./commands/AssumeRoleWithWebIdentityCommand"; -import { - DecodeAuthorizationMessageCommandInput, - DecodeAuthorizationMessageCommandOutput, -} from "./commands/DecodeAuthorizationMessageCommand"; -import { - GetAccessKeyInfoCommandInput, - GetAccessKeyInfoCommandOutput, -} from "./commands/GetAccessKeyInfoCommand"; -import { - GetCallerIdentityCommandInput, - GetCallerIdentityCommandOutput, -} from "./commands/GetCallerIdentityCommand"; -import { - GetFederationTokenCommandInput, - GetFederationTokenCommandOutput, -} from "./commands/GetFederationTokenCommand"; -import { - GetSessionTokenCommandInput, - GetSessionTokenCommandOutput, -} from "./commands/GetSessionTokenCommand"; -import { STSClient } from "./STSClient"; -export interface STS { - assumeRole( - args: AssumeRoleCommandInput, - options?: __HttpHandlerOptions - ): Promise; - assumeRole( - args: AssumeRoleCommandInput, - cb: (err: any, data?: AssumeRoleCommandOutput) => void - ): void; - assumeRole( - args: AssumeRoleCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: AssumeRoleCommandOutput) => void - ): void; - assumeRoleWithSAML( - args: AssumeRoleWithSAMLCommandInput, - options?: __HttpHandlerOptions - ): Promise; - assumeRoleWithSAML( - args: AssumeRoleWithSAMLCommandInput, - cb: (err: any, data?: AssumeRoleWithSAMLCommandOutput) => void - ): void; - assumeRoleWithSAML( - args: AssumeRoleWithSAMLCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: AssumeRoleWithSAMLCommandOutput) => void - ): void; - assumeRoleWithWebIdentity( - args: AssumeRoleWithWebIdentityCommandInput, - options?: __HttpHandlerOptions - ): Promise; - assumeRoleWithWebIdentity( - args: AssumeRoleWithWebIdentityCommandInput, - cb: (err: any, data?: AssumeRoleWithWebIdentityCommandOutput) => void - ): void; - assumeRoleWithWebIdentity( - args: AssumeRoleWithWebIdentityCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: AssumeRoleWithWebIdentityCommandOutput) => void - ): void; - decodeAuthorizationMessage( - args: DecodeAuthorizationMessageCommandInput, - options?: __HttpHandlerOptions - ): Promise; - decodeAuthorizationMessage( - args: DecodeAuthorizationMessageCommandInput, - cb: (err: any, data?: DecodeAuthorizationMessageCommandOutput) => void - ): void; - decodeAuthorizationMessage( - args: DecodeAuthorizationMessageCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: DecodeAuthorizationMessageCommandOutput) => void - ): void; - getAccessKeyInfo( - args: GetAccessKeyInfoCommandInput, - options?: __HttpHandlerOptions - ): Promise; - getAccessKeyInfo( - args: GetAccessKeyInfoCommandInput, - cb: (err: any, data?: GetAccessKeyInfoCommandOutput) => void - ): void; - getAccessKeyInfo( - args: GetAccessKeyInfoCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: GetAccessKeyInfoCommandOutput) => void - ): void; - getCallerIdentity( - args: GetCallerIdentityCommandInput, - options?: __HttpHandlerOptions - ): Promise; - getCallerIdentity( - args: GetCallerIdentityCommandInput, - cb: (err: any, data?: GetCallerIdentityCommandOutput) => void - ): void; - getCallerIdentity( - args: GetCallerIdentityCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: GetCallerIdentityCommandOutput) => void - ): void; - getFederationToken( - args: GetFederationTokenCommandInput, - options?: __HttpHandlerOptions - ): Promise; - getFederationToken( - args: GetFederationTokenCommandInput, - cb: (err: any, data?: GetFederationTokenCommandOutput) => void - ): void; - getFederationToken( - args: GetFederationTokenCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: GetFederationTokenCommandOutput) => void - ): void; - getSessionToken( - args: GetSessionTokenCommandInput, - options?: __HttpHandlerOptions - ): Promise; - getSessionToken( - args: GetSessionTokenCommandInput, - cb: (err: any, data?: GetSessionTokenCommandOutput) => void - ): void; - getSessionToken( - args: GetSessionTokenCommandInput, - options: __HttpHandlerOptions, - cb: (err: any, data?: GetSessionTokenCommandOutput) => void - ): void; -} -export declare class STS extends STSClient implements STS {} diff --git a/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/STSClient.d.ts b/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/STSClient.d.ts deleted file mode 100644 index dfcc43b3..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/STSClient.d.ts +++ /dev/null @@ -1,163 +0,0 @@ -import { - HostHeaderInputConfig, - HostHeaderResolvedConfig, -} from "@aws-sdk/middleware-host-header"; -import { - StsAuthInputConfig, - StsAuthResolvedConfig, -} from "@aws-sdk/middleware-sdk-sts"; -import { - UserAgentInputConfig, - UserAgentResolvedConfig, -} from "@aws-sdk/middleware-user-agent"; -import { Credentials as __Credentials } from "@aws-sdk/types"; -import { - RegionInputConfig, - RegionResolvedConfig, -} from "@smithy/config-resolver"; -import { - EndpointInputConfig, - EndpointResolvedConfig, -} from "@smithy/middleware-endpoint"; -import { - RetryInputConfig, - RetryResolvedConfig, -} from "@smithy/middleware-retry"; -import { HttpHandler as __HttpHandler } from "@smithy/protocol-http"; -import { - Client as __Client, - DefaultsMode as __DefaultsMode, - SmithyConfiguration as __SmithyConfiguration, - SmithyResolvedConfiguration as __SmithyResolvedConfiguration, -} from "@smithy/smithy-client"; -import { - BodyLengthCalculator as __BodyLengthCalculator, - CheckOptionalClientConfig as __CheckOptionalClientConfig, - ChecksumConstructor as __ChecksumConstructor, - Decoder as __Decoder, - Encoder as __Encoder, - HashConstructor as __HashConstructor, - HttpHandlerOptions as __HttpHandlerOptions, - Logger as __Logger, - Provider as __Provider, - Provider, - StreamCollector as __StreamCollector, - UrlParser as __UrlParser, - UserAgent as __UserAgent, -} from "@smithy/types"; -import { - AssumeRoleCommandInput, - AssumeRoleCommandOutput, -} from "./commands/AssumeRoleCommand"; -import { - AssumeRoleWithSAMLCommandInput, - AssumeRoleWithSAMLCommandOutput, -} from "./commands/AssumeRoleWithSAMLCommand"; -import { - AssumeRoleWithWebIdentityCommandInput, - AssumeRoleWithWebIdentityCommandOutput, -} from "./commands/AssumeRoleWithWebIdentityCommand"; -import { - DecodeAuthorizationMessageCommandInput, - DecodeAuthorizationMessageCommandOutput, -} from "./commands/DecodeAuthorizationMessageCommand"; -import { - GetAccessKeyInfoCommandInput, - GetAccessKeyInfoCommandOutput, -} from "./commands/GetAccessKeyInfoCommand"; -import { - GetCallerIdentityCommandInput, - GetCallerIdentityCommandOutput, -} from "./commands/GetCallerIdentityCommand"; -import { - GetFederationTokenCommandInput, - GetFederationTokenCommandOutput, -} from "./commands/GetFederationTokenCommand"; -import { - GetSessionTokenCommandInput, - GetSessionTokenCommandOutput, -} from "./commands/GetSessionTokenCommand"; -import { - ClientInputEndpointParameters, - ClientResolvedEndpointParameters, - EndpointParameters, -} from "./endpoint/EndpointParameters"; -import { RuntimeExtension, RuntimeExtensionsConfig } from "./runtimeExtensions"; -export { __Client }; -export type ServiceInputTypes = - | AssumeRoleCommandInput - | AssumeRoleWithSAMLCommandInput - | AssumeRoleWithWebIdentityCommandInput - | DecodeAuthorizationMessageCommandInput - | GetAccessKeyInfoCommandInput - | GetCallerIdentityCommandInput - | GetFederationTokenCommandInput - | GetSessionTokenCommandInput; -export type ServiceOutputTypes = - | AssumeRoleCommandOutput - | AssumeRoleWithSAMLCommandOutput - | AssumeRoleWithWebIdentityCommandOutput - | DecodeAuthorizationMessageCommandOutput - | GetAccessKeyInfoCommandOutput - | GetCallerIdentityCommandOutput - | GetFederationTokenCommandOutput - | GetSessionTokenCommandOutput; -export interface ClientDefaults - extends Partial<__SmithyResolvedConfiguration<__HttpHandlerOptions>> { - requestHandler?: __HttpHandler; - sha256?: __ChecksumConstructor | __HashConstructor; - urlParser?: __UrlParser; - bodyLengthChecker?: __BodyLengthCalculator; - streamCollector?: __StreamCollector; - base64Decoder?: __Decoder; - base64Encoder?: __Encoder; - utf8Decoder?: __Decoder; - utf8Encoder?: __Encoder; - runtime?: string; - disableHostPrefix?: boolean; - serviceId?: string; - useDualstackEndpoint?: boolean | __Provider; - useFipsEndpoint?: boolean | __Provider; - region?: string | __Provider; - credentialDefaultProvider?: (input: any) => __Provider<__Credentials>; - defaultUserAgentProvider?: Provider<__UserAgent>; - maxAttempts?: number | __Provider; - retryMode?: string | __Provider; - logger?: __Logger; - extensions?: RuntimeExtension[]; - defaultsMode?: __DefaultsMode | __Provider<__DefaultsMode>; -} -export type STSClientConfigType = Partial< - __SmithyConfiguration<__HttpHandlerOptions> -> & - ClientDefaults & - RegionInputConfig & - EndpointInputConfig & - RetryInputConfig & - HostHeaderInputConfig & - StsAuthInputConfig & - UserAgentInputConfig & - ClientInputEndpointParameters; -export interface STSClientConfig extends STSClientConfigType {} -export type STSClientResolvedConfigType = - __SmithyResolvedConfiguration<__HttpHandlerOptions> & - Required & - RuntimeExtensionsConfig & - RegionResolvedConfig & - EndpointResolvedConfig & - RetryResolvedConfig & - HostHeaderResolvedConfig & - StsAuthResolvedConfig & - UserAgentResolvedConfig & - ClientResolvedEndpointParameters; -export interface STSClientResolvedConfig extends STSClientResolvedConfigType {} -export declare class STSClient extends __Client< - __HttpHandlerOptions, - ServiceInputTypes, - ServiceOutputTypes, - STSClientResolvedConfig -> { - readonly config: STSClientResolvedConfig; - constructor(...[configuration]: __CheckOptionalClientConfig); - destroy(): void; -} diff --git a/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/AssumeRoleCommand.d.ts b/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/AssumeRoleCommand.d.ts deleted file mode 100644 index 14fe84be..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/AssumeRoleCommand.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { AssumeRoleRequest, AssumeRoleResponse } from "../models/models_0"; -import { - ServiceInputTypes, - ServiceOutputTypes, - STSClientResolvedConfig, -} from "../STSClient"; -export { __MetadataBearer, $Command }; -export interface AssumeRoleCommandInput extends AssumeRoleRequest {} -export interface AssumeRoleCommandOutput - extends AssumeRoleResponse, - __MetadataBearer {} -export declare class AssumeRoleCommand extends $Command< - AssumeRoleCommandInput, - AssumeRoleCommandOutput, - STSClientResolvedConfig -> { - readonly input: AssumeRoleCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: AssumeRoleCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: STSClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/AssumeRoleWithSAMLCommand.d.ts b/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/AssumeRoleWithSAMLCommand.d.ts deleted file mode 100644 index ab3f0f4a..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/AssumeRoleWithSAMLCommand.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - AssumeRoleWithSAMLRequest, - AssumeRoleWithSAMLResponse, -} from "../models/models_0"; -import { - ServiceInputTypes, - ServiceOutputTypes, - STSClientResolvedConfig, -} from "../STSClient"; -export { __MetadataBearer, $Command }; -export interface AssumeRoleWithSAMLCommandInput - extends AssumeRoleWithSAMLRequest {} -export interface AssumeRoleWithSAMLCommandOutput - extends AssumeRoleWithSAMLResponse, - __MetadataBearer {} -export declare class AssumeRoleWithSAMLCommand extends $Command< - AssumeRoleWithSAMLCommandInput, - AssumeRoleWithSAMLCommandOutput, - STSClientResolvedConfig -> { - readonly input: AssumeRoleWithSAMLCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: AssumeRoleWithSAMLCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: STSClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/AssumeRoleWithWebIdentityCommand.d.ts b/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/AssumeRoleWithWebIdentityCommand.d.ts deleted file mode 100644 index c617b00f..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/AssumeRoleWithWebIdentityCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - AssumeRoleWithWebIdentityRequest, - AssumeRoleWithWebIdentityResponse, -} from "../models/models_0"; -import { - ServiceInputTypes, - ServiceOutputTypes, - STSClientResolvedConfig, -} from "../STSClient"; -export { __MetadataBearer, $Command }; -export interface AssumeRoleWithWebIdentityCommandInput - extends AssumeRoleWithWebIdentityRequest {} -export interface AssumeRoleWithWebIdentityCommandOutput - extends AssumeRoleWithWebIdentityResponse, - __MetadataBearer {} -export declare class AssumeRoleWithWebIdentityCommand extends $Command< - AssumeRoleWithWebIdentityCommandInput, - AssumeRoleWithWebIdentityCommandOutput, - STSClientResolvedConfig -> { - readonly input: AssumeRoleWithWebIdentityCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: AssumeRoleWithWebIdentityCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: STSClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - AssumeRoleWithWebIdentityCommandInput, - AssumeRoleWithWebIdentityCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/DecodeAuthorizationMessageCommand.d.ts b/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/DecodeAuthorizationMessageCommand.d.ts deleted file mode 100644 index 8b66a5d4..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/DecodeAuthorizationMessageCommand.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - DecodeAuthorizationMessageRequest, - DecodeAuthorizationMessageResponse, -} from "../models/models_0"; -import { - ServiceInputTypes, - ServiceOutputTypes, - STSClientResolvedConfig, -} from "../STSClient"; -export { __MetadataBearer, $Command }; -export interface DecodeAuthorizationMessageCommandInput - extends DecodeAuthorizationMessageRequest {} -export interface DecodeAuthorizationMessageCommandOutput - extends DecodeAuthorizationMessageResponse, - __MetadataBearer {} -export declare class DecodeAuthorizationMessageCommand extends $Command< - DecodeAuthorizationMessageCommandInput, - DecodeAuthorizationMessageCommandOutput, - STSClientResolvedConfig -> { - readonly input: DecodeAuthorizationMessageCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: DecodeAuthorizationMessageCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: STSClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler< - DecodeAuthorizationMessageCommandInput, - DecodeAuthorizationMessageCommandOutput - >; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/GetAccessKeyInfoCommand.d.ts b/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/GetAccessKeyInfoCommand.d.ts deleted file mode 100644 index 76eeefe9..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/GetAccessKeyInfoCommand.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - GetAccessKeyInfoRequest, - GetAccessKeyInfoResponse, -} from "../models/models_0"; -import { - ServiceInputTypes, - ServiceOutputTypes, - STSClientResolvedConfig, -} from "../STSClient"; -export { __MetadataBearer, $Command }; -export interface GetAccessKeyInfoCommandInput extends GetAccessKeyInfoRequest {} -export interface GetAccessKeyInfoCommandOutput - extends GetAccessKeyInfoResponse, - __MetadataBearer {} -export declare class GetAccessKeyInfoCommand extends $Command< - GetAccessKeyInfoCommandInput, - GetAccessKeyInfoCommandOutput, - STSClientResolvedConfig -> { - readonly input: GetAccessKeyInfoCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: GetAccessKeyInfoCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: STSClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/GetCallerIdentityCommand.d.ts b/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/GetCallerIdentityCommand.d.ts deleted file mode 100644 index ba41ae10..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/GetCallerIdentityCommand.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - GetCallerIdentityRequest, - GetCallerIdentityResponse, -} from "../models/models_0"; -import { - ServiceInputTypes, - ServiceOutputTypes, - STSClientResolvedConfig, -} from "../STSClient"; -export { __MetadataBearer, $Command }; -export interface GetCallerIdentityCommandInput - extends GetCallerIdentityRequest {} -export interface GetCallerIdentityCommandOutput - extends GetCallerIdentityResponse, - __MetadataBearer {} -export declare class GetCallerIdentityCommand extends $Command< - GetCallerIdentityCommandInput, - GetCallerIdentityCommandOutput, - STSClientResolvedConfig -> { - readonly input: GetCallerIdentityCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: GetCallerIdentityCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: STSClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/GetFederationTokenCommand.d.ts b/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/GetFederationTokenCommand.d.ts deleted file mode 100644 index 6a7c3d66..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/GetFederationTokenCommand.d.ts +++ /dev/null @@ -1,39 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - GetFederationTokenRequest, - GetFederationTokenResponse, -} from "../models/models_0"; -import { - ServiceInputTypes, - ServiceOutputTypes, - STSClientResolvedConfig, -} from "../STSClient"; -export { __MetadataBearer, $Command }; -export interface GetFederationTokenCommandInput - extends GetFederationTokenRequest {} -export interface GetFederationTokenCommandOutput - extends GetFederationTokenResponse, - __MetadataBearer {} -export declare class GetFederationTokenCommand extends $Command< - GetFederationTokenCommandInput, - GetFederationTokenCommandOutput, - STSClientResolvedConfig -> { - readonly input: GetFederationTokenCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: GetFederationTokenCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: STSClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/GetSessionTokenCommand.d.ts b/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/GetSessionTokenCommand.d.ts deleted file mode 100644 index 4dbade42..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/GetSessionTokenCommand.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { EndpointParameterInstructions } from "@smithy/middleware-endpoint"; -import { Command as $Command } from "@smithy/smithy-client"; -import { - Handler, - HttpHandlerOptions as __HttpHandlerOptions, - MetadataBearer as __MetadataBearer, - MiddlewareStack, -} from "@smithy/types"; -import { - GetSessionTokenRequest, - GetSessionTokenResponse, -} from "../models/models_0"; -import { - ServiceInputTypes, - ServiceOutputTypes, - STSClientResolvedConfig, -} from "../STSClient"; -export { __MetadataBearer, $Command }; -export interface GetSessionTokenCommandInput extends GetSessionTokenRequest {} -export interface GetSessionTokenCommandOutput - extends GetSessionTokenResponse, - __MetadataBearer {} -export declare class GetSessionTokenCommand extends $Command< - GetSessionTokenCommandInput, - GetSessionTokenCommandOutput, - STSClientResolvedConfig -> { - readonly input: GetSessionTokenCommandInput; - static getEndpointParameterInstructions(): EndpointParameterInstructions; - constructor(input: GetSessionTokenCommandInput); - resolveMiddleware( - clientStack: MiddlewareStack, - configuration: STSClientResolvedConfig, - options?: __HttpHandlerOptions - ): Handler; - private serialize; - private deserialize; -} diff --git a/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/index.d.ts b/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/index.d.ts deleted file mode 100644 index 802202ff..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/commands/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -export * from "./AssumeRoleCommand"; -export * from "./AssumeRoleWithSAMLCommand"; -export * from "./AssumeRoleWithWebIdentityCommand"; -export * from "./DecodeAuthorizationMessageCommand"; -export * from "./GetAccessKeyInfoCommand"; -export * from "./GetCallerIdentityCommand"; -export * from "./GetFederationTokenCommand"; -export * from "./GetSessionTokenCommand"; diff --git a/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/defaultRoleAssumers.d.ts b/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/defaultRoleAssumers.d.ts deleted file mode 100644 index 44d37a65..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/defaultRoleAssumers.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { Pluggable } from "@smithy/types"; -import { - DefaultCredentialProvider, - RoleAssumer, - RoleAssumerWithWebIdentity, -} from "./defaultStsRoleAssumers"; -import { - ServiceInputTypes, - ServiceOutputTypes, - STSClientConfig, -} from "./STSClient"; -export declare const getDefaultRoleAssumer: ( - stsOptions?: Pick, - stsPlugins?: Pluggable[] -) => RoleAssumer; -export declare const getDefaultRoleAssumerWithWebIdentity: ( - stsOptions?: Pick, - stsPlugins?: Pluggable[] -) => RoleAssumerWithWebIdentity; -export declare const decorateDefaultCredentialProvider: ( - provider: DefaultCredentialProvider -) => DefaultCredentialProvider; diff --git a/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/defaultStsRoleAssumers.d.ts b/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/defaultStsRoleAssumers.d.ts deleted file mode 100644 index 7923ff95..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/defaultStsRoleAssumers.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { Credentials } from "@aws-sdk/types"; -import { Provider } from "@smithy/types"; -import { AssumeRoleCommandInput } from "./commands/AssumeRoleCommand"; -import { AssumeRoleWithWebIdentityCommandInput } from "./commands/AssumeRoleWithWebIdentityCommand"; -import { STSClient, STSClientConfig } from "./STSClient"; -export type RoleAssumer = ( - sourceCreds: Credentials, - params: AssumeRoleCommandInput -) => Promise; -export declare const getDefaultRoleAssumer: ( - stsOptions: Pick, - stsClientCtor: new (options: STSClientConfig) => STSClient -) => RoleAssumer; -export type RoleAssumerWithWebIdentity = ( - params: AssumeRoleWithWebIdentityCommandInput -) => Promise; -export declare const getDefaultRoleAssumerWithWebIdentity: ( - stsOptions: Pick, - stsClientCtor: new (options: STSClientConfig) => STSClient -) => RoleAssumerWithWebIdentity; -export type DefaultCredentialProvider = (input: any) => Provider; -export declare const decorateDefaultCredentialProvider: ( - provider: DefaultCredentialProvider -) => DefaultCredentialProvider; diff --git a/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/endpoint/EndpointParameters.d.ts b/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/endpoint/EndpointParameters.d.ts deleted file mode 100644 index 9e11e789..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/endpoint/EndpointParameters.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { - Endpoint, - EndpointParameters as __EndpointParameters, - EndpointV2, - Provider, -} from "@smithy/types"; -export interface ClientInputEndpointParameters { - region?: string | Provider; - useDualstackEndpoint?: boolean | Provider; - useFipsEndpoint?: boolean | Provider; - endpoint?: - | string - | Provider - | Endpoint - | Provider - | EndpointV2 - | Provider; - useGlobalEndpoint?: boolean | Provider; -} -export type ClientResolvedEndpointParameters = ClientInputEndpointParameters & { - defaultSigningName: string; -}; -export declare const resolveClientEndpointParameters: ( - options: T & ClientInputEndpointParameters -) => T & - ClientInputEndpointParameters & { - defaultSigningName: string; - }; -export interface EndpointParameters extends __EndpointParameters { - Region?: string; - UseDualStack?: boolean; - UseFIPS?: boolean; - Endpoint?: string; - UseGlobalEndpoint?: boolean; -} diff --git a/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/endpoint/endpointResolver.d.ts b/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/endpoint/endpointResolver.d.ts deleted file mode 100644 index 59099254..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/endpoint/endpointResolver.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { EndpointV2, Logger } from "@smithy/types"; -import { EndpointParameters } from "./EndpointParameters"; -export declare const defaultEndpointResolver: ( - endpointParams: EndpointParameters, - context?: { - logger?: Logger; - } -) => EndpointV2; diff --git a/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/endpoint/ruleset.d.ts b/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/endpoint/ruleset.d.ts deleted file mode 100644 index 4b238994..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/endpoint/ruleset.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { RuleSetObject } from "@smithy/types"; -export declare const ruleSet: RuleSetObject; diff --git a/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/extensionConfiguration.d.ts b/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/extensionConfiguration.d.ts deleted file mode 100644 index 51a04109..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/extensionConfiguration.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { AwsRegionExtensionConfiguration } from "@aws-sdk/types"; -import { HttpHandlerExtensionConfiguration } from "@smithy/protocol-http"; -import { DefaultExtensionConfiguration } from "@smithy/types"; -export interface STSExtensionConfiguration - extends HttpHandlerExtensionConfiguration, - DefaultExtensionConfiguration, - AwsRegionExtensionConfiguration {} diff --git a/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/index.d.ts b/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/index.d.ts deleted file mode 100644 index 406c1733..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/index.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -export * from "./STSClient"; -export * from "./STS"; -export { ClientInputEndpointParameters } from "./endpoint/EndpointParameters"; -export { RuntimeExtension } from "./runtimeExtensions"; -export { STSExtensionConfiguration } from "./extensionConfiguration"; -export * from "./commands"; -export * from "./models"; -export * from "./defaultRoleAssumers"; -import "@aws-sdk/util-endpoints"; -export { STSServiceException } from "./models/STSServiceException"; diff --git a/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/models/STSServiceException.d.ts b/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/models/STSServiceException.d.ts deleted file mode 100644 index 50ec07e8..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/models/STSServiceException.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { - ServiceException as __ServiceException, - ServiceExceptionOptions as __ServiceExceptionOptions, -} from "@smithy/smithy-client"; -export { __ServiceException, __ServiceExceptionOptions }; -export declare class STSServiceException extends __ServiceException { - constructor(options: __ServiceExceptionOptions); -} diff --git a/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/models/index.d.ts b/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/models/index.d.ts deleted file mode 100644 index 09c5d6e0..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/models/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./models_0"; diff --git a/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/models/models_0.d.ts b/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/models/models_0.d.ts deleted file mode 100644 index 14ce0c51..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/models/models_0.d.ts +++ /dev/null @@ -1,206 +0,0 @@ -import { ExceptionOptionType as __ExceptionOptionType } from "@smithy/smithy-client"; -import { STSServiceException as __BaseException } from "./STSServiceException"; -export interface AssumedRoleUser { - AssumedRoleId: string | undefined; - Arn: string | undefined; -} -export interface PolicyDescriptorType { - arn?: string; -} -export interface ProvidedContext { - ProviderArn?: string; - ContextAssertion?: string; -} -export interface Tag { - Key: string | undefined; - Value: string | undefined; -} -export interface AssumeRoleRequest { - RoleArn: string | undefined; - RoleSessionName: string | undefined; - PolicyArns?: PolicyDescriptorType[]; - Policy?: string; - DurationSeconds?: number; - Tags?: Tag[]; - TransitiveTagKeys?: string[]; - ExternalId?: string; - SerialNumber?: string; - TokenCode?: string; - SourceIdentity?: string; - ProvidedContexts?: ProvidedContext[]; -} -export interface Credentials { - AccessKeyId: string | undefined; - SecretAccessKey: string | undefined; - SessionToken: string | undefined; - Expiration: Date | undefined; -} -export interface AssumeRoleResponse { - Credentials?: Credentials; - AssumedRoleUser?: AssumedRoleUser; - PackedPolicySize?: number; - SourceIdentity?: string; -} -export declare class ExpiredTokenException extends __BaseException { - readonly name: "ExpiredTokenException"; - readonly $fault: "client"; - constructor( - opts: __ExceptionOptionType - ); -} -export declare class MalformedPolicyDocumentException extends __BaseException { - readonly name: "MalformedPolicyDocumentException"; - readonly $fault: "client"; - constructor( - opts: __ExceptionOptionType< - MalformedPolicyDocumentException, - __BaseException - > - ); -} -export declare class PackedPolicyTooLargeException extends __BaseException { - readonly name: "PackedPolicyTooLargeException"; - readonly $fault: "client"; - constructor( - opts: __ExceptionOptionType - ); -} -export declare class RegionDisabledException extends __BaseException { - readonly name: "RegionDisabledException"; - readonly $fault: "client"; - constructor( - opts: __ExceptionOptionType - ); -} -export interface AssumeRoleWithSAMLRequest { - RoleArn: string | undefined; - PrincipalArn: string | undefined; - SAMLAssertion: string | undefined; - PolicyArns?: PolicyDescriptorType[]; - Policy?: string; - DurationSeconds?: number; -} -export interface AssumeRoleWithSAMLResponse { - Credentials?: Credentials; - AssumedRoleUser?: AssumedRoleUser; - PackedPolicySize?: number; - Subject?: string; - SubjectType?: string; - Issuer?: string; - Audience?: string; - NameQualifier?: string; - SourceIdentity?: string; -} -export declare class IDPRejectedClaimException extends __BaseException { - readonly name: "IDPRejectedClaimException"; - readonly $fault: "client"; - constructor( - opts: __ExceptionOptionType - ); -} -export declare class InvalidIdentityTokenException extends __BaseException { - readonly name: "InvalidIdentityTokenException"; - readonly $fault: "client"; - constructor( - opts: __ExceptionOptionType - ); -} -export interface AssumeRoleWithWebIdentityRequest { - RoleArn: string | undefined; - RoleSessionName: string | undefined; - WebIdentityToken: string | undefined; - ProviderId?: string; - PolicyArns?: PolicyDescriptorType[]; - Policy?: string; - DurationSeconds?: number; -} -export interface AssumeRoleWithWebIdentityResponse { - Credentials?: Credentials; - SubjectFromWebIdentityToken?: string; - AssumedRoleUser?: AssumedRoleUser; - PackedPolicySize?: number; - Provider?: string; - Audience?: string; - SourceIdentity?: string; -} -export declare class IDPCommunicationErrorException extends __BaseException { - readonly name: "IDPCommunicationErrorException"; - readonly $fault: "client"; - constructor( - opts: __ExceptionOptionType - ); -} -export interface DecodeAuthorizationMessageRequest { - EncodedMessage: string | undefined; -} -export interface DecodeAuthorizationMessageResponse { - DecodedMessage?: string; -} -export declare class InvalidAuthorizationMessageException extends __BaseException { - readonly name: "InvalidAuthorizationMessageException"; - readonly $fault: "client"; - constructor( - opts: __ExceptionOptionType< - InvalidAuthorizationMessageException, - __BaseException - > - ); -} -export interface GetAccessKeyInfoRequest { - AccessKeyId: string | undefined; -} -export interface GetAccessKeyInfoResponse { - Account?: string; -} -export interface GetCallerIdentityRequest {} -export interface GetCallerIdentityResponse { - UserId?: string; - Account?: string; - Arn?: string; -} -export interface GetFederationTokenRequest { - Name: string | undefined; - Policy?: string; - PolicyArns?: PolicyDescriptorType[]; - DurationSeconds?: number; - Tags?: Tag[]; -} -export interface FederatedUser { - FederatedUserId: string | undefined; - Arn: string | undefined; -} -export interface GetFederationTokenResponse { - Credentials?: Credentials; - FederatedUser?: FederatedUser; - PackedPolicySize?: number; -} -export interface GetSessionTokenRequest { - DurationSeconds?: number; - SerialNumber?: string; - TokenCode?: string; -} -export interface GetSessionTokenResponse { - Credentials?: Credentials; -} -export declare const CredentialsFilterSensitiveLog: (obj: Credentials) => any; -export declare const AssumeRoleResponseFilterSensitiveLog: ( - obj: AssumeRoleResponse -) => any; -export declare const AssumeRoleWithSAMLRequestFilterSensitiveLog: ( - obj: AssumeRoleWithSAMLRequest -) => any; -export declare const AssumeRoleWithSAMLResponseFilterSensitiveLog: ( - obj: AssumeRoleWithSAMLResponse -) => any; -export declare const AssumeRoleWithWebIdentityRequestFilterSensitiveLog: ( - obj: AssumeRoleWithWebIdentityRequest -) => any; -export declare const AssumeRoleWithWebIdentityResponseFilterSensitiveLog: ( - obj: AssumeRoleWithWebIdentityResponse -) => any; -export declare const GetFederationTokenResponseFilterSensitiveLog: ( - obj: GetFederationTokenResponse -) => any; -export declare const GetSessionTokenResponseFilterSensitiveLog: ( - obj: GetSessionTokenResponse -) => any; diff --git a/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/protocols/Aws_query.d.ts b/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/protocols/Aws_query.d.ts deleted file mode 100644 index 29e38ea8..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/protocols/Aws_query.d.ts +++ /dev/null @@ -1,101 +0,0 @@ -import { - HttpRequest as __HttpRequest, - HttpResponse as __HttpResponse, -} from "@smithy/protocol-http"; -import { SerdeContext as __SerdeContext } from "@smithy/types"; -import { - AssumeRoleCommandInput, - AssumeRoleCommandOutput, -} from "../commands/AssumeRoleCommand"; -import { - AssumeRoleWithSAMLCommandInput, - AssumeRoleWithSAMLCommandOutput, -} from "../commands/AssumeRoleWithSAMLCommand"; -import { - AssumeRoleWithWebIdentityCommandInput, - AssumeRoleWithWebIdentityCommandOutput, -} from "../commands/AssumeRoleWithWebIdentityCommand"; -import { - DecodeAuthorizationMessageCommandInput, - DecodeAuthorizationMessageCommandOutput, -} from "../commands/DecodeAuthorizationMessageCommand"; -import { - GetAccessKeyInfoCommandInput, - GetAccessKeyInfoCommandOutput, -} from "../commands/GetAccessKeyInfoCommand"; -import { - GetCallerIdentityCommandInput, - GetCallerIdentityCommandOutput, -} from "../commands/GetCallerIdentityCommand"; -import { - GetFederationTokenCommandInput, - GetFederationTokenCommandOutput, -} from "../commands/GetFederationTokenCommand"; -import { - GetSessionTokenCommandInput, - GetSessionTokenCommandOutput, -} from "../commands/GetSessionTokenCommand"; -export declare const se_AssumeRoleCommand: ( - input: AssumeRoleCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_AssumeRoleWithSAMLCommand: ( - input: AssumeRoleWithSAMLCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_AssumeRoleWithWebIdentityCommand: ( - input: AssumeRoleWithWebIdentityCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_DecodeAuthorizationMessageCommand: ( - input: DecodeAuthorizationMessageCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_GetAccessKeyInfoCommand: ( - input: GetAccessKeyInfoCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_GetCallerIdentityCommand: ( - input: GetCallerIdentityCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_GetFederationTokenCommand: ( - input: GetFederationTokenCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const se_GetSessionTokenCommand: ( - input: GetSessionTokenCommandInput, - context: __SerdeContext -) => Promise<__HttpRequest>; -export declare const de_AssumeRoleCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_AssumeRoleWithSAMLCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_AssumeRoleWithWebIdentityCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_DecodeAuthorizationMessageCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_GetAccessKeyInfoCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_GetCallerIdentityCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_GetFederationTokenCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; -export declare const de_GetSessionTokenCommand: ( - output: __HttpResponse, - context: __SerdeContext -) => Promise; diff --git a/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.browser.d.ts b/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.browser.d.ts deleted file mode 100644 index 06deb8cd..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.browser.d.ts +++ /dev/null @@ -1,101 +0,0 @@ -import { FetchHttpHandler as RequestHandler } from "@smithy/fetch-http-handler"; -import { STSClientConfig } from "./STSClient"; -export declare const getRuntimeConfig: (config: STSClientConfig) => { - runtime: string; - defaultsMode: import("@smithy/types").Provider< - import("@smithy/smithy-client").ResolvedDefaultsMode - >; - bodyLengthChecker: import("@smithy/types").BodyLengthCalculator; - credentialDefaultProvider: ( - input: any - ) => import("@smithy/types").Provider; - defaultUserAgentProvider: import("@smithy/types").Provider< - import("@smithy/types").UserAgent - >; - maxAttempts: number | import("@smithy/types").Provider; - region: string | import("@smithy/types").Provider; - requestHandler: - | (import("@smithy/types").RequestHandler< - any, - any, - import("@smithy/types").HttpHandlerOptions - > & - import("@smithy/types").RequestHandler< - import("@smithy/protocol-http").HttpRequest, - import("@smithy/protocol-http").HttpResponse, - import("@smithy/types").HttpHandlerOptions - > & { - updateHttpClientConfig(key: never, value: never): void; - httpHandlerConfigs(): {}; - }) - | RequestHandler; - retryMode: string | import("@smithy/types").Provider; - sha256: import("@smithy/types").HashConstructor; - streamCollector: import("@smithy/types").StreamCollector; - useDualstackEndpoint: boolean | import("@smithy/types").Provider; - useFipsEndpoint: boolean | import("@smithy/types").Provider; - apiVersion: string; - urlParser: import("@smithy/types").UrlParser; - base64Decoder: import("@smithy/types").Decoder; - base64Encoder: import("@smithy/types").Encoder; - utf8Decoder: import("@smithy/types").Decoder; - utf8Encoder: import("@smithy/types").Encoder; - disableHostPrefix: boolean; - serviceId: string; - logger: import("@smithy/types").Logger; - extensions: import("./runtimeExtensions").RuntimeExtension[]; - endpoint?: - | (( - | string - | import("@smithy/types").Endpoint - | import("@smithy/types").Provider - | import("@smithy/types").EndpointV2 - | import("@smithy/types").Provider - ) & - ( - | string - | import("@smithy/types").Provider - | import("@smithy/types").Endpoint - | import("@smithy/types").Provider - | import("@smithy/types").EndpointV2 - | import("@smithy/types").Provider - )) - | undefined; - endpointProvider: ( - endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, - context?: { - logger?: import("@smithy/types").Logger | undefined; - } - ) => import("@smithy/types").EndpointV2; - tls?: boolean | undefined; - retryStrategy?: - | import("@smithy/types").RetryStrategy - | import("@smithy/types").RetryStrategyV2 - | undefined; - credentials?: - | import("@smithy/types").AwsCredentialIdentity - | import("@smithy/types").Provider< - import("@smithy/types").AwsCredentialIdentity - > - | undefined; - signer?: - | import("@smithy/types").RequestSigner - | (( - authScheme?: import("@smithy/types").AuthScheme | undefined - ) => Promise) - | undefined; - signingEscapePath?: boolean | undefined; - systemClockOffset?: number | undefined; - signingRegion?: string | undefined; - signerConstructor?: - | (new ( - options: import("@smithy/signature-v4").SignatureV4Init & - import("@smithy/signature-v4").SignatureV4CryptoInit - ) => import("@smithy/types").RequestSigner) - | undefined; - customUserAgent?: string | import("@smithy/types").UserAgent | undefined; - useGlobalEndpoint?: - | boolean - | import("@smithy/types").Provider - | undefined; -}; diff --git a/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.d.ts b/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.d.ts deleted file mode 100644 index fdd61842..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.d.ts +++ /dev/null @@ -1,99 +0,0 @@ -import { NodeHttpHandler as RequestHandler } from "@smithy/node-http-handler"; -import { STSClientConfig } from "./STSClient"; -export declare const getRuntimeConfig: (config: STSClientConfig) => { - runtime: string; - defaultsMode: import("@smithy/types").Provider< - import("@smithy/smithy-client").ResolvedDefaultsMode - >; - bodyLengthChecker: import("@smithy/types").BodyLengthCalculator; - credentialDefaultProvider: import("./defaultStsRoleAssumers").DefaultCredentialProvider; - defaultUserAgentProvider: import("@smithy/types").Provider< - import("@smithy/types").UserAgent - >; - maxAttempts: number | import("@smithy/types").Provider; - region: string | import("@smithy/types").Provider; - requestHandler: - | (import("@smithy/types").RequestHandler< - any, - any, - import("@smithy/types").HttpHandlerOptions - > & - import("@smithy/types").RequestHandler< - import("@smithy/protocol-http").HttpRequest, - import("@smithy/protocol-http").HttpResponse, - import("@smithy/types").HttpHandlerOptions - > & { - updateHttpClientConfig(key: never, value: never): void; - httpHandlerConfigs(): {}; - }) - | RequestHandler; - retryMode: string | import("@smithy/types").Provider; - sha256: import("@smithy/types").HashConstructor; - streamCollector: import("@smithy/types").StreamCollector; - useDualstackEndpoint: boolean | import("@smithy/types").Provider; - useFipsEndpoint: boolean | import("@smithy/types").Provider; - apiVersion: string; - urlParser: import("@smithy/types").UrlParser; - base64Decoder: import("@smithy/types").Decoder; - base64Encoder: import("@smithy/types").Encoder; - utf8Decoder: import("@smithy/types").Decoder; - utf8Encoder: import("@smithy/types").Encoder; - disableHostPrefix: boolean; - serviceId: string; - logger: import("@smithy/types").Logger; - extensions: import("./runtimeExtensions").RuntimeExtension[]; - endpoint?: - | (( - | string - | import("@smithy/types").Endpoint - | import("@smithy/types").Provider - | import("@smithy/types").EndpointV2 - | import("@smithy/types").Provider - ) & - ( - | string - | import("@smithy/types").Provider - | import("@smithy/types").Endpoint - | import("@smithy/types").Provider - | import("@smithy/types").EndpointV2 - | import("@smithy/types").Provider - )) - | undefined; - endpointProvider: ( - endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, - context?: { - logger?: import("@smithy/types").Logger | undefined; - } - ) => import("@smithy/types").EndpointV2; - tls?: boolean | undefined; - retryStrategy?: - | import("@smithy/types").RetryStrategy - | import("@smithy/types").RetryStrategyV2 - | undefined; - credentials?: - | import("@smithy/types").AwsCredentialIdentity - | import("@smithy/types").Provider< - import("@smithy/types").AwsCredentialIdentity - > - | undefined; - signer?: - | import("@smithy/types").RequestSigner - | (( - authScheme?: import("@smithy/types").AuthScheme | undefined - ) => Promise) - | undefined; - signingEscapePath?: boolean | undefined; - systemClockOffset?: number | undefined; - signingRegion?: string | undefined; - signerConstructor?: - | (new ( - options: import("@smithy/signature-v4").SignatureV4Init & - import("@smithy/signature-v4").SignatureV4CryptoInit - ) => import("@smithy/types").RequestSigner) - | undefined; - customUserAgent?: string | import("@smithy/types").UserAgent | undefined; - useGlobalEndpoint?: - | boolean - | import("@smithy/types").Provider - | undefined; -}; diff --git a/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.native.d.ts b/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.native.d.ts deleted file mode 100644 index 82f8590f..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.native.d.ts +++ /dev/null @@ -1,92 +0,0 @@ -import { STSClientConfig } from "./STSClient"; -export declare const getRuntimeConfig: (config: STSClientConfig) => { - runtime: string; - sha256: import("@smithy/types").HashConstructor; - requestHandler: - | (import("@smithy/types").RequestHandler< - any, - any, - import("@smithy/types").HttpHandlerOptions - > & - import("@smithy/types").RequestHandler< - import("@smithy/protocol-http").HttpRequest, - import("@smithy/protocol-http").HttpResponse, - import("@smithy/types").HttpHandlerOptions - > & { - updateHttpClientConfig(key: never, value: never): void; - httpHandlerConfigs(): {}; - }) - | import("@smithy/fetch-http-handler").FetchHttpHandler; - apiVersion: string; - urlParser: import("@smithy/types").UrlParser; - bodyLengthChecker: import("@smithy/types").BodyLengthCalculator; - streamCollector: import("@smithy/types").StreamCollector; - base64Decoder: import("@smithy/types").Decoder; - base64Encoder: import("@smithy/types").Encoder; - utf8Decoder: import("@smithy/types").Decoder; - utf8Encoder: import("@smithy/types").Encoder; - disableHostPrefix: boolean; - serviceId: string; - useDualstackEndpoint: boolean | import("@smithy/types").Provider; - useFipsEndpoint: boolean | import("@smithy/types").Provider; - region: string | import("@smithy/types").Provider; - credentialDefaultProvider: ( - input: any - ) => import("@smithy/types").Provider; - defaultUserAgentProvider: import("@smithy/types").Provider< - import("@smithy/types").UserAgent - >; - maxAttempts: number | import("@smithy/types").Provider; - retryMode: string | import("@smithy/types").Provider; - logger: import("@smithy/types").Logger; - extensions: import("./runtimeExtensions").RuntimeExtension[]; - defaultsMode: - | import("@smithy/smithy-client").DefaultsMode - | import("@smithy/types").Provider< - import("@smithy/smithy-client").DefaultsMode - >; - endpoint?: - | string - | import("@smithy/types").Endpoint - | import("@smithy/types").Provider - | import("@smithy/types").EndpointV2 - | import("@smithy/types").Provider - | undefined; - endpointProvider: ( - endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, - context?: { - logger?: import("@smithy/types").Logger | undefined; - } - ) => import("@smithy/types").EndpointV2; - tls?: boolean | undefined; - retryStrategy?: - | import("@smithy/types").RetryStrategy - | import("@smithy/types").RetryStrategyV2 - | undefined; - credentials?: - | import("@smithy/types").AwsCredentialIdentity - | import("@smithy/types").Provider< - import("@smithy/types").AwsCredentialIdentity - > - | undefined; - signer?: - | import("@smithy/types").RequestSigner - | (( - authScheme?: import("@smithy/types").AuthScheme | undefined - ) => Promise) - | undefined; - signingEscapePath?: boolean | undefined; - systemClockOffset?: number | undefined; - signingRegion?: string | undefined; - signerConstructor?: - | (new ( - options: import("@smithy/signature-v4").SignatureV4Init & - import("@smithy/signature-v4").SignatureV4CryptoInit - ) => import("@smithy/types").RequestSigner) - | undefined; - customUserAgent?: string | import("@smithy/types").UserAgent | undefined; - useGlobalEndpoint?: - | boolean - | import("@smithy/types").Provider - | undefined; -}; diff --git a/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.shared.d.ts b/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.shared.d.ts deleted file mode 100644 index d23214e7..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeConfig.shared.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { STSClientConfig } from "./STSClient"; -export declare const getRuntimeConfig: (config: STSClientConfig) => { - apiVersion: string; - base64Decoder: import("@smithy/types").Decoder; - base64Encoder: import("@smithy/types").Encoder; - disableHostPrefix: boolean; - endpointProvider: ( - endpointParams: import("./endpoint/EndpointParameters").EndpointParameters, - context?: { - logger?: import("@smithy/types").Logger | undefined; - } - ) => import("@smithy/types").EndpointV2; - extensions: import("./runtimeExtensions").RuntimeExtension[]; - logger: import("@smithy/types").Logger; - serviceId: string; - urlParser: import("@smithy/types").UrlParser; - utf8Decoder: import("@smithy/types").Decoder; - utf8Encoder: import("@smithy/types").Encoder; -}; diff --git a/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeExtensions.d.ts b/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeExtensions.d.ts deleted file mode 100644 index d3cd411e..00000000 --- a/node_modules/@aws-sdk/client-sts/dist-types/ts3.4/runtimeExtensions.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { STSExtensionConfiguration } from "./extensionConfiguration"; -export interface RuntimeExtension { - configure(extensionConfiguration: STSExtensionConfiguration): void; -} -export interface RuntimeExtensionsConfig { - extensions: RuntimeExtension[]; -} -export declare const resolveRuntimeExtensions: ( - runtimeConfig: any, - extensions: RuntimeExtension[] -) => any; diff --git a/node_modules/@aws-sdk/client-sts/package.json b/node_modules/@aws-sdk/client-sts/package.json deleted file mode 100644 index 22d01530..00000000 --- a/node_modules/@aws-sdk/client-sts/package.json +++ /dev/null @@ -1,105 +0,0 @@ -{ - "name": "@aws-sdk/client-sts", - "description": "AWS SDK for JavaScript Sts Client for Node.js, Browser and React Native", - "version": "3.454.0", - "scripts": { - "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", - "build:cjs": "tsc -p tsconfig.cjs.json", - "build:docs": "typedoc", - "build:es": "tsc -p tsconfig.es.json", - "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build", - "build:types": "tsc -p tsconfig.types.json", - "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", - "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "extract:docs": "api-extractor run --local", - "generate:client": "node ../../scripts/generate-clients/single-service --solo sts", - "test": "yarn test:unit", - "test:unit": "jest" - }, - "main": "./dist-cjs/index.js", - "types": "./dist-types/index.d.ts", - "module": "./dist-es/index.js", - "sideEffects": false, - "dependencies": { - "@aws-crypto/sha256-browser": "3.0.0", - "@aws-crypto/sha256-js": "3.0.0", - "@aws-sdk/core": "3.451.0", - "@aws-sdk/credential-provider-node": "3.451.0", - "@aws-sdk/middleware-host-header": "3.451.0", - "@aws-sdk/middleware-logger": "3.451.0", - "@aws-sdk/middleware-recursion-detection": "3.451.0", - "@aws-sdk/middleware-sdk-sts": "3.451.0", - "@aws-sdk/middleware-signing": "3.451.0", - "@aws-sdk/middleware-user-agent": "3.451.0", - "@aws-sdk/region-config-resolver": "3.451.0", - "@aws-sdk/types": "3.451.0", - "@aws-sdk/util-endpoints": "3.451.0", - "@aws-sdk/util-user-agent-browser": "3.451.0", - "@aws-sdk/util-user-agent-node": "3.451.0", - "@smithy/config-resolver": "^2.0.18", - "@smithy/fetch-http-handler": "^2.2.6", - "@smithy/hash-node": "^2.0.15", - "@smithy/invalid-dependency": "^2.0.13", - "@smithy/middleware-content-length": "^2.0.15", - "@smithy/middleware-endpoint": "^2.2.0", - "@smithy/middleware-retry": "^2.0.20", - "@smithy/middleware-serde": "^2.0.13", - "@smithy/middleware-stack": "^2.0.7", - "@smithy/node-config-provider": "^2.1.5", - "@smithy/node-http-handler": "^2.1.9", - "@smithy/protocol-http": "^3.0.9", - "@smithy/smithy-client": "^2.1.15", - "@smithy/types": "^2.5.0", - "@smithy/url-parser": "^2.0.13", - "@smithy/util-base64": "^2.0.1", - "@smithy/util-body-length-browser": "^2.0.0", - "@smithy/util-body-length-node": "^2.1.0", - "@smithy/util-defaults-mode-browser": "^2.0.19", - "@smithy/util-defaults-mode-node": "^2.0.25", - "@smithy/util-endpoints": "^1.0.4", - "@smithy/util-retry": "^2.0.6", - "@smithy/util-utf8": "^2.0.2", - "fast-xml-parser": "4.2.5", - "tslib": "^2.5.0" - }, - "devDependencies": { - "@smithy/service-client-documentation-generator": "^2.0.0", - "@tsconfig/node14": "1.0.3", - "@types/node": "^14.14.31", - "concurrently": "7.0.0", - "downlevel-dts": "0.10.1", - "rimraf": "3.0.2", - "typedoc": "0.23.23", - "typescript": "~4.9.5" - }, - "engines": { - "node": ">=14.0.0" - }, - "typesVersions": { - "<4.0": { - "dist-types/*": [ - "dist-types/ts3.4/*" - ] - } - }, - "files": [ - "dist-*/**" - ], - "author": { - "name": "AWS SDK for JavaScript Team", - "url": "https://aws.amazon.com/javascript/" - }, - "license": "Apache-2.0", - "browser": { - "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.browser" - }, - "react-native": { - "./dist-es/runtimeConfig": "./dist-es/runtimeConfig.native" - }, - "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/clients/client-sts", - "repository": { - "type": "git", - "url": "https://github.com/aws/aws-sdk-js-v3.git", - "directory": "clients/client-sts" - } -} diff --git a/node_modules/@aws-sdk/core/CHANGELOG.md b/node_modules/@aws-sdk/core/CHANGELOG.md deleted file mode 100644 index 1977e1b5..00000000 --- a/node_modules/@aws-sdk/core/CHANGELOG.md +++ /dev/null @@ -1,70 +0,0 @@ -# Change Log - -All notable changes to this project will be documented in this file. -See [Conventional Commits](https://conventionalcommits.org) for commit guidelines. - -# [3.451.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.450.0...v3.451.0) (2023-11-14) - -**Note:** Version bump only for package @aws-sdk/core - - - - - -# [3.445.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.444.0...v3.445.0) (2023-11-07) - - -### Bug Fixes - -* **core:** add tslib ([#5459](https://github.com/aws/aws-sdk-js-v3/issues/5459)) ([35a1aed](https://github.com/aws/aws-sdk-js-v3/commit/35a1aed1f0d2d6fb33c24232cb24268a1f8c1b05)) - - - - - -# [3.441.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.440.0...v3.441.0) (2023-11-01) - -**Note:** Version bump only for package @aws-sdk/core - - - - - -# [3.436.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.435.0...v3.436.0) (2023-10-25) - -**Note:** Version bump only for package @aws-sdk/core - - - - - -# [3.433.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.432.0...v3.433.0) (2023-10-20) - - -### Bug Fixes - -* **codegen:** use partial record for enum keyed types ([#5391](https://github.com/aws/aws-sdk-js-v3/issues/5391)) ([70c2107](https://github.com/aws/aws-sdk-js-v3/commit/70c2107b970d035bfedb211278c88fdbfc2e5334)) - - - - - -# [3.431.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.430.0...v3.431.0) (2023-10-18) - -**Note:** Version bump only for package @aws-sdk/core - - - - - -# [3.430.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.429.0...v3.430.0) (2023-10-17) - -**Note:** Version bump only for package @aws-sdk/core - - - - - -# [3.429.0](https://github.com/aws/aws-sdk-js-v3/compare/v3.428.0...v3.429.0) (2023-10-16) - -**Note:** Version bump only for package @aws-sdk/core diff --git a/node_modules/@aws-sdk/core/README.md b/node_modules/@aws-sdk/core/README.md deleted file mode 100644 index 0bbfa212..00000000 --- a/node_modules/@aws-sdk/core/README.md +++ /dev/null @@ -1,5 +0,0 @@ -# @aws-sdk/core - -This package provides common or core functionality to the AWS SDK for JavaScript (v3). - -You do not need to explicitly install this package, since it will be transitively installed by AWS SDK clients. diff --git a/node_modules/@aws-sdk/core/api-extractor.json b/node_modules/@aws-sdk/core/api-extractor.json deleted file mode 100644 index b03e22a1..00000000 --- a/node_modules/@aws-sdk/core/api-extractor.json +++ /dev/null @@ -1,4 +0,0 @@ -{ - "extends": "../../api-extractor.packages.json", - "mainEntryPointFilePath": "./dist-types/index.d.ts" -} diff --git a/node_modules/@aws-sdk/core/dist-cjs/client/emitWarningIfUnsupportedVersion.js b/node_modules/@aws-sdk/core/dist-cjs/client/emitWarningIfUnsupportedVersion.js deleted file mode 100644 index eaeb11fd..00000000 --- a/node_modules/@aws-sdk/core/dist-cjs/client/emitWarningIfUnsupportedVersion.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.emitWarningIfUnsupportedVersion = void 0; -let warningEmitted = false; -const emitWarningIfUnsupportedVersion = (version) => { - if (version && !warningEmitted && parseInt(version.substring(1, version.indexOf("."))) < 16) { - warningEmitted = true; - process.emitWarning(`NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will -no longer support Node.js 14.x on May 1, 2024. - -To continue receiving updates to AWS services, bug fixes, and security -updates please upgrade to an active Node.js LTS version. - -More information can be found at: https://a.co/dzr2AJd`); - } -}; -exports.emitWarningIfUnsupportedVersion = emitWarningIfUnsupportedVersion; diff --git a/node_modules/@aws-sdk/core/dist-cjs/client/index.js b/node_modules/@aws-sdk/core/dist-cjs/client/index.js deleted file mode 100644 index 238cd3ae..00000000 --- a/node_modules/@aws-sdk/core/dist-cjs/client/index.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./emitWarningIfUnsupportedVersion"), exports); diff --git a/node_modules/@aws-sdk/core/dist-cjs/index.js b/node_modules/@aws-sdk/core/dist-cjs/index.js deleted file mode 100644 index a61c8b43..00000000 --- a/node_modules/@aws-sdk/core/dist-cjs/index.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./client/index"), exports); -tslib_1.__exportStar(require("./protocols/index"), exports); diff --git a/node_modules/@aws-sdk/core/dist-cjs/protocols/coercing-serializers.js b/node_modules/@aws-sdk/core/dist-cjs/protocols/coercing-serializers.js deleted file mode 100644 index 9783f9be..00000000 --- a/node_modules/@aws-sdk/core/dist-cjs/protocols/coercing-serializers.js +++ /dev/null @@ -1,59 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports._toNum = exports._toBool = exports._toStr = void 0; -const _toStr = (val) => { - if (val == null) { - return val; - } - if (typeof val === "number" || typeof val === "bigint") { - const warning = new Error(`Received number ${val} where a string was expected.`); - warning.name = "Warning"; - console.warn(warning); - return String(val); - } - if (typeof val === "boolean") { - const warning = new Error(`Received boolean ${val} where a string was expected.`); - warning.name = "Warning"; - console.warn(warning); - return String(val); - } - return val; -}; -exports._toStr = _toStr; -const _toBool = (val) => { - if (val == null) { - return val; - } - if (typeof val === "number") { - } - if (typeof val === "string") { - const lowercase = val.toLowerCase(); - if (val !== "" && lowercase !== "false" && lowercase !== "true") { - const warning = new Error(`Received string "${val}" where a boolean was expected.`); - warning.name = "Warning"; - console.warn(warning); - } - return val !== "" && lowercase !== "false"; - } - return val; -}; -exports._toBool = _toBool; -const _toNum = (val) => { - if (val == null) { - return val; - } - if (typeof val === "boolean") { - } - if (typeof val === "string") { - const num = Number(val); - if (num.toString() !== val) { - const warning = new Error(`Received string "${val}" where a number was expected.`); - warning.name = "Warning"; - console.warn(warning); - return val; - } - return num; - } - return val; -}; -exports._toNum = _toNum; diff --git a/node_modules/@aws-sdk/core/dist-cjs/protocols/index.js b/node_modules/@aws-sdk/core/dist-cjs/protocols/index.js deleted file mode 100644 index 4f79874a..00000000 --- a/node_modules/@aws-sdk/core/dist-cjs/protocols/index.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./coercing-serializers"), exports); -tslib_1.__exportStar(require("./json/awsExpectUnion"), exports); diff --git a/node_modules/@aws-sdk/core/dist-cjs/protocols/json/awsExpectUnion.js b/node_modules/@aws-sdk/core/dist-cjs/protocols/json/awsExpectUnion.js deleted file mode 100644 index 37e4ceb9..00000000 --- a/node_modules/@aws-sdk/core/dist-cjs/protocols/json/awsExpectUnion.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.awsExpectUnion = void 0; -const smithy_client_1 = require("@smithy/smithy-client"); -const awsExpectUnion = (value) => { - if (value == null) { - return undefined; - } - if (typeof value === "object" && "__type" in value) { - delete value.__type; - } - return (0, smithy_client_1.expectUnion)(value); -}; -exports.awsExpectUnion = awsExpectUnion; diff --git a/node_modules/@aws-sdk/core/dist-es/client/emitWarningIfUnsupportedVersion.js b/node_modules/@aws-sdk/core/dist-es/client/emitWarningIfUnsupportedVersion.js deleted file mode 100644 index a6822d1e..00000000 --- a/node_modules/@aws-sdk/core/dist-es/client/emitWarningIfUnsupportedVersion.js +++ /dev/null @@ -1,13 +0,0 @@ -let warningEmitted = false; -export const emitWarningIfUnsupportedVersion = (version) => { - if (version && !warningEmitted && parseInt(version.substring(1, version.indexOf("."))) < 16) { - warningEmitted = true; - process.emitWarning(`NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will -no longer support Node.js 14.x on May 1, 2024. - -To continue receiving updates to AWS services, bug fixes, and security -updates please upgrade to an active Node.js LTS version. - -More information can be found at: https://a.co/dzr2AJd`); - } -}; diff --git a/node_modules/@aws-sdk/core/dist-es/client/index.js b/node_modules/@aws-sdk/core/dist-es/client/index.js deleted file mode 100644 index ed9af926..00000000 --- a/node_modules/@aws-sdk/core/dist-es/client/index.js +++ /dev/null @@ -1 +0,0 @@ -export * from "./emitWarningIfUnsupportedVersion"; diff --git a/node_modules/@aws-sdk/core/dist-es/index.js b/node_modules/@aws-sdk/core/dist-es/index.js deleted file mode 100644 index 2501accc..00000000 --- a/node_modules/@aws-sdk/core/dist-es/index.js +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client/index"; -export * from "./protocols/index"; diff --git a/node_modules/@aws-sdk/core/dist-es/protocols/coercing-serializers.js b/node_modules/@aws-sdk/core/dist-es/protocols/coercing-serializers.js deleted file mode 100644 index fce893b4..00000000 --- a/node_modules/@aws-sdk/core/dist-es/protocols/coercing-serializers.js +++ /dev/null @@ -1,53 +0,0 @@ -export const _toStr = (val) => { - if (val == null) { - return val; - } - if (typeof val === "number" || typeof val === "bigint") { - const warning = new Error(`Received number ${val} where a string was expected.`); - warning.name = "Warning"; - console.warn(warning); - return String(val); - } - if (typeof val === "boolean") { - const warning = new Error(`Received boolean ${val} where a string was expected.`); - warning.name = "Warning"; - console.warn(warning); - return String(val); - } - return val; -}; -export const _toBool = (val) => { - if (val == null) { - return val; - } - if (typeof val === "number") { - } - if (typeof val === "string") { - const lowercase = val.toLowerCase(); - if (val !== "" && lowercase !== "false" && lowercase !== "true") { - const warning = new Error(`Received string "${val}" where a boolean was expected.`); - warning.name = "Warning"; - console.warn(warning); - } - return val !== "" && lowercase !== "false"; - } - return val; -}; -export const _toNum = (val) => { - if (val == null) { - return val; - } - if (typeof val === "boolean") { - } - if (typeof val === "string") { - const num = Number(val); - if (num.toString() !== val) { - const warning = new Error(`Received string "${val}" where a number was expected.`); - warning.name = "Warning"; - console.warn(warning); - return val; - } - return num; - } - return val; -}; diff --git a/node_modules/@aws-sdk/core/dist-es/protocols/index.js b/node_modules/@aws-sdk/core/dist-es/protocols/index.js deleted file mode 100644 index c3a1b7cf..00000000 --- a/node_modules/@aws-sdk/core/dist-es/protocols/index.js +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./coercing-serializers"; -export * from "./json/awsExpectUnion"; diff --git a/node_modules/@aws-sdk/core/dist-es/protocols/json/awsExpectUnion.js b/node_modules/@aws-sdk/core/dist-es/protocols/json/awsExpectUnion.js deleted file mode 100644 index 1c6cc322..00000000 --- a/node_modules/@aws-sdk/core/dist-es/protocols/json/awsExpectUnion.js +++ /dev/null @@ -1,10 +0,0 @@ -import { expectUnion } from "@smithy/smithy-client"; -export const awsExpectUnion = (value) => { - if (value == null) { - return undefined; - } - if (typeof value === "object" && "__type" in value) { - delete value.__type; - } - return expectUnion(value); -}; diff --git a/node_modules/@aws-sdk/core/dist-types/client/emitWarningIfUnsupportedVersion.d.ts b/node_modules/@aws-sdk/core/dist-types/client/emitWarningIfUnsupportedVersion.d.ts deleted file mode 100644 index 0b82cf05..00000000 --- a/node_modules/@aws-sdk/core/dist-types/client/emitWarningIfUnsupportedVersion.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -/** - * @internal - * - * Emits warning if the provided Node.js version string is - * pending deprecation by AWS SDK JSv3. - * - * @param version - The Node.js version string. - */ -export declare const emitWarningIfUnsupportedVersion: (version: string) => void; diff --git a/node_modules/@aws-sdk/core/dist-types/client/index.d.ts b/node_modules/@aws-sdk/core/dist-types/client/index.d.ts deleted file mode 100644 index ed9af926..00000000 --- a/node_modules/@aws-sdk/core/dist-types/client/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./emitWarningIfUnsupportedVersion"; diff --git a/node_modules/@aws-sdk/core/dist-types/index.d.ts b/node_modules/@aws-sdk/core/dist-types/index.d.ts deleted file mode 100644 index 2501accc..00000000 --- a/node_modules/@aws-sdk/core/dist-types/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client/index"; -export * from "./protocols/index"; diff --git a/node_modules/@aws-sdk/core/dist-types/protocols/coercing-serializers.d.ts b/node_modules/@aws-sdk/core/dist-types/protocols/coercing-serializers.d.ts deleted file mode 100644 index 10d9d396..00000000 --- a/node_modules/@aws-sdk/core/dist-types/protocols/coercing-serializers.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -/** - * @internal - * - * Used for awsQueryCompatibility trait. - */ -export declare const _toStr: (val: unknown) => string | undefined; -/** - * @internal - * - * Used for awsQueryCompatibility trait. - */ -export declare const _toBool: (val: unknown) => boolean | undefined; -/** - * @internal - * - * Used for awsQueryCompatibility trait. - */ -export declare const _toNum: (val: unknown) => number | undefined; diff --git a/node_modules/@aws-sdk/core/dist-types/protocols/index.d.ts b/node_modules/@aws-sdk/core/dist-types/protocols/index.d.ts deleted file mode 100644 index c3a1b7cf..00000000 --- a/node_modules/@aws-sdk/core/dist-types/protocols/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./coercing-serializers"; -export * from "./json/awsExpectUnion"; diff --git a/node_modules/@aws-sdk/core/dist-types/protocols/json/awsExpectUnion.d.ts b/node_modules/@aws-sdk/core/dist-types/protocols/json/awsExpectUnion.d.ts deleted file mode 100644 index 98607ea4..00000000 --- a/node_modules/@aws-sdk/core/dist-types/protocols/json/awsExpectUnion.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * @internal - * - * Forwards to Smithy's expectUnion function, but also ignores - * the `__type` field if it is present. - */ -export declare const awsExpectUnion: (value: unknown) => Record | undefined; diff --git a/node_modules/@aws-sdk/core/dist-types/ts3.4/client/emitWarningIfUnsupportedVersion.d.ts b/node_modules/@aws-sdk/core/dist-types/ts3.4/client/emitWarningIfUnsupportedVersion.d.ts deleted file mode 100644 index b9cb3ac1..00000000 --- a/node_modules/@aws-sdk/core/dist-types/ts3.4/client/emitWarningIfUnsupportedVersion.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const emitWarningIfUnsupportedVersion: (version: string) => void; diff --git a/node_modules/@aws-sdk/core/dist-types/ts3.4/client/index.d.ts b/node_modules/@aws-sdk/core/dist-types/ts3.4/client/index.d.ts deleted file mode 100644 index ed9af926..00000000 --- a/node_modules/@aws-sdk/core/dist-types/ts3.4/client/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./emitWarningIfUnsupportedVersion"; diff --git a/node_modules/@aws-sdk/core/dist-types/ts3.4/index.d.ts b/node_modules/@aws-sdk/core/dist-types/ts3.4/index.d.ts deleted file mode 100644 index 2501accc..00000000 --- a/node_modules/@aws-sdk/core/dist-types/ts3.4/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client/index"; -export * from "./protocols/index"; diff --git a/node_modules/@aws-sdk/core/dist-types/ts3.4/protocols/coercing-serializers.d.ts b/node_modules/@aws-sdk/core/dist-types/ts3.4/protocols/coercing-serializers.d.ts deleted file mode 100644 index 7657ceb9..00000000 --- a/node_modules/@aws-sdk/core/dist-types/ts3.4/protocols/coercing-serializers.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export declare const _toStr: (val: unknown) => string | undefined; -export declare const _toBool: (val: unknown) => boolean | undefined; -export declare const _toNum: (val: unknown) => number | undefined; diff --git a/node_modules/@aws-sdk/core/dist-types/ts3.4/protocols/index.d.ts b/node_modules/@aws-sdk/core/dist-types/ts3.4/protocols/index.d.ts deleted file mode 100644 index c3a1b7cf..00000000 --- a/node_modules/@aws-sdk/core/dist-types/ts3.4/protocols/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./coercing-serializers"; -export * from "./json/awsExpectUnion"; diff --git a/node_modules/@aws-sdk/core/dist-types/ts3.4/protocols/json/awsExpectUnion.d.ts b/node_modules/@aws-sdk/core/dist-types/ts3.4/protocols/json/awsExpectUnion.d.ts deleted file mode 100644 index fdc331e0..00000000 --- a/node_modules/@aws-sdk/core/dist-types/ts3.4/protocols/json/awsExpectUnion.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export declare const awsExpectUnion: ( - value: unknown -) => Record | undefined; diff --git a/node_modules/@aws-sdk/core/jest.config.js b/node_modules/@aws-sdk/core/jest.config.js deleted file mode 100644 index f2c48a84..00000000 --- a/node_modules/@aws-sdk/core/jest.config.js +++ /dev/null @@ -1,6 +0,0 @@ -const base = require("../../jest.config.base.js"); - -module.exports = { - ...base, - testPathIgnorePatterns: ["/node_modules/"], -}; diff --git a/node_modules/@aws-sdk/core/package.json b/node_modules/@aws-sdk/core/package.json deleted file mode 100644 index 716da894..00000000 --- a/node_modules/@aws-sdk/core/package.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "name": "@aws-sdk/core", - "version": "3.451.0", - "description": "Core functions & classes shared by multiple AWS SDK clients", - "scripts": { - "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", - "build:cjs": "tsc -p tsconfig.cjs.json && yarn lint", - "build:es": "tsc -p tsconfig.es.json", - "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build", - "build:types": "tsc -p tsconfig.types.json", - "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", - "lint": "node ./scripts/lint.js", - "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "extract:docs": "api-extractor run --local", - "test": "jest --passWithNoTests" - }, - "main": "./dist-cjs/index.js", - "module": "./dist-es/index.js", - "types": "./dist-types/index.d.ts", - "sideEffects": false, - "author": { - "name": "AWS SDK for JavaScript Team", - "url": "https://aws.amazon.com/javascript/" - }, - "license": "Apache-2.0", - "dependencies": { - "@smithy/smithy-client": "^2.1.15", - "tslib": "^2.5.0" - }, - "devDependencies": { - "@tsconfig/recommended": "1.0.1", - "concurrently": "7.0.0", - "downlevel-dts": "0.10.1", - "rimraf": "3.0.2", - "typedoc": "0.23.23", - "typescript": "~4.9.5" - }, - "engines": { - "node": ">=14.0.0" - }, - "typesVersions": { - "<4.0": { - "dist-types/*": [ - "dist-types/ts3.4/*" - ] - } - }, - "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/master/packages/core", - "repository": { - "type": "git", - "url": "https://github.com/aws/aws-sdk-js-v3.git", - "directory": "packages/core" - }, - "typedoc": { - "entryPoint": "src/index.ts" - } -} diff --git a/node_modules/@aws-sdk/core/scripts/lint.js b/node_modules/@aws-sdk/core/scripts/lint.js deleted file mode 100644 index ffaa9c4e..00000000 --- a/node_modules/@aws-sdk/core/scripts/lint.js +++ /dev/null @@ -1,24 +0,0 @@ -const fs = require("fs"); -const path = require("path"); -const assert = require("assert"); - -const root = path.join(__dirname, ".."); - -const pkgJson = require(path.join(root, "package.json")); -const srcFolders = fs.readdirSync(path.join(root, "src")); - -assert(pkgJson.exports === undefined, "We cannot support package.json exports yet."); - -/** - * We probably can't enable package.json exports until - * dropping support for Node.js 14.x and TypeScript 4.6. - */ -process.exit(0); - -for (const srcFolder of srcFolders) { - if (fs.lstatSync(path.join(root, "src", srcFolder)).isDirectory()) { - if (!pkgJson.exports["./" + srcFolder]) { - throw new Error(`${srcFolder} is missing exports statement in package.json`); - } - } -} diff --git a/node_modules/@aws-sdk/core/src/client/emitWarningIfUnsupportedVersion.spec.ts b/node_modules/@aws-sdk/core/src/client/emitWarningIfUnsupportedVersion.spec.ts deleted file mode 100644 index 7bb2f56e..00000000 --- a/node_modules/@aws-sdk/core/src/client/emitWarningIfUnsupportedVersion.spec.ts +++ /dev/null @@ -1,70 +0,0 @@ -describe("emitWarningIfUnsupportedVersion", () => { - let emitWarningIfUnsupportedVersion; - const emitWarning = process.emitWarning; - const supportedVersion = "16.0.0"; - - beforeEach(() => { - const module = require("./emitWarningIfUnsupportedVersion"); - emitWarningIfUnsupportedVersion = module.emitWarningIfUnsupportedVersion; - }); - - afterEach(() => { - jest.clearAllMocks(); - jest.resetModules(); - process.emitWarning = emitWarning; - }); - - describe(`emits warning for Node.js <${supportedVersion}`, () => { - const getPreviousMajorVersion = (major: number) => (major === 0 ? 0 : major - 1); - - const getPreviousMinorVersion = ([major, minor]: [number, number]) => - minor === 0 ? [getPreviousMajorVersion(major), 9] : [major, minor - 1]; - - const getPreviousPatchVersion = ([major, minor, patch]: [number, number, number]) => - patch === 0 ? [...getPreviousMinorVersion([major, minor]), 9] : [major, minor, patch - 1]; - - const [major, minor, patch] = supportedVersion.split(".").map(Number); - it.each( - [ - getPreviousPatchVersion([major, minor, patch]), - [...getPreviousMinorVersion([major, minor]), 0], - [getPreviousMajorVersion(major), 0, 0], - ].map((arr) => `v${arr.join(".")}`) - )(`%s`, async (unsupportedVersion) => { - process.emitWarning = jest.fn(); - emitWarningIfUnsupportedVersion(unsupportedVersion); - - // Verify that the warning was emitted. - expect(process.emitWarning).toHaveBeenCalledTimes(1); - expect(process.emitWarning).toHaveBeenCalledWith( - `NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will -no longer support Node.js 14.x on May 1, 2024. - -To continue receiving updates to AWS services, bug fixes, and security -updates please upgrade to an active Node.js LTS version. - -More information can be found at: https://a.co/dzr2AJd` - ); - - // Verify that the warning emits only once. - emitWarningIfUnsupportedVersion(unsupportedVersion); - expect(process.emitWarning).toHaveBeenCalledTimes(1); - }); - }); - - describe(`emits no warning for Node.js >=${supportedVersion}`, () => { - const [major, minor, patch] = supportedVersion.split(".").map(Number); - it.each( - [ - [major, minor, patch], - [major, minor, patch + 1], - [major, minor + 1, 0], - [major + 1, 0, 0], - ].map((arr) => `v${arr.join(".")}`) - )(`%s`, async (unsupportedVersion) => { - process.emitWarning = jest.fn(); - emitWarningIfUnsupportedVersion(unsupportedVersion); - expect(process.emitWarning).not.toHaveBeenCalled(); - }); - }); -}); diff --git a/node_modules/@aws-sdk/core/src/client/emitWarningIfUnsupportedVersion.ts b/node_modules/@aws-sdk/core/src/client/emitWarningIfUnsupportedVersion.ts deleted file mode 100644 index 2f33ab12..00000000 --- a/node_modules/@aws-sdk/core/src/client/emitWarningIfUnsupportedVersion.ts +++ /dev/null @@ -1,25 +0,0 @@ -// Stores whether the warning was already emitted. -let warningEmitted = false; - -/** - * @internal - * - * Emits warning if the provided Node.js version string is - * pending deprecation by AWS SDK JSv3. - * - * @param version - The Node.js version string. - */ -export const emitWarningIfUnsupportedVersion = (version: string) => { - if (version && !warningEmitted && parseInt(version.substring(1, version.indexOf("."))) < 16) { - warningEmitted = true; - process.emitWarning( - `NodeDeprecationWarning: The AWS SDK for JavaScript (v3) will -no longer support Node.js 14.x on May 1, 2024. - -To continue receiving updates to AWS services, bug fixes, and security -updates please upgrade to an active Node.js LTS version. - -More information can be found at: https://a.co/dzr2AJd` - ); - } -}; diff --git a/node_modules/@aws-sdk/core/src/client/index.ts b/node_modules/@aws-sdk/core/src/client/index.ts deleted file mode 100644 index ed9af926..00000000 --- a/node_modules/@aws-sdk/core/src/client/index.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./emitWarningIfUnsupportedVersion"; diff --git a/node_modules/@aws-sdk/core/src/index.ts b/node_modules/@aws-sdk/core/src/index.ts deleted file mode 100644 index 2501accc..00000000 --- a/node_modules/@aws-sdk/core/src/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./client/index"; -export * from "./protocols/index"; diff --git a/node_modules/@aws-sdk/core/src/protocols/coercing-serializers.spec.ts b/node_modules/@aws-sdk/core/src/protocols/coercing-serializers.spec.ts deleted file mode 100644 index 05210d28..00000000 --- a/node_modules/@aws-sdk/core/src/protocols/coercing-serializers.spec.ts +++ /dev/null @@ -1,76 +0,0 @@ -import { _toBool, _toNum, _toStr } from "./coercing-serializers"; - -const consoleWarn = console.warn; - -beforeAll(() => { - console.warn = () => {}; -}); - -afterAll(() => { - console.warn = consoleWarn; -}); - -describe(_toBool.name, () => { - it("ignores nullish", () => { - expect(_toBool(null)).toBe(null); - expect(_toBool(undefined)).toBe(undefined); - }); - - it("converts strings", () => { - expect(_toBool("false")).toEqual(false); - expect(_toBool("true")).toEqual(true); - - expect(_toBool("False")).toEqual(false); - expect(_toBool("True")).toEqual(true); - - expect(_toBool("")).toEqual(false); - expect(_toBool("a")).toEqual(true); // warns - }); - - it("does not convert numbers", () => { - expect(_toBool(0)).toEqual(0); - expect(_toBool(1)).toEqual(1); - }); -}); - -describe(_toStr.name, () => { - it("ignores nullish", () => { - expect(_toStr(null)).toBe(null); - expect(_toStr(undefined)).toBe(undefined); - }); - - it("converts numbers", () => { - expect(_toStr(0)).toEqual("0"); - expect(_toStr(1)).toEqual("1"); - }); - - it("converts booleans", () => { - expect(_toStr(false)).toEqual("false"); - expect(_toStr(true)).toEqual("true"); - }); -}); - -describe(_toNum.name, () => { - it("ignores nullish", () => { - expect(_toNum(null)).toBe(null); - expect(_toNum(undefined)).toBe(undefined); - }); - - it("converts numeric strings", () => { - expect(_toNum("1234")).toEqual(1234); - expect(_toNum("1234.56")).toEqual(1234.56); - }); - - it("does not convert prefix-numeric strings", () => { - expect(_toNum("1234abc")).toEqual("1234abc"); - expect(_toNum("1234.56abc")).toEqual("1234.56abc"); - }); - - it("does not convert non-numeric strings", () => { - expect(_toNum("abcdef")).toEqual("abcdef"); - }); - it("does not convert bools", () => { - expect(_toNum(false)).toEqual(false); - expect(_toNum(true)).toEqual(true); - }); -}); diff --git a/node_modules/@aws-sdk/core/src/protocols/coercing-serializers.ts b/node_modules/@aws-sdk/core/src/protocols/coercing-serializers.ts deleted file mode 100644 index afed4729..00000000 --- a/node_modules/@aws-sdk/core/src/protocols/coercing-serializers.ts +++ /dev/null @@ -1,72 +0,0 @@ -/** - * @internal - * - * Used for awsQueryCompatibility trait. - */ -export const _toStr = (val: unknown): string | undefined => { - if (val == null) { - return val as undefined; - } - if (typeof val === "number" || typeof val === "bigint") { - const warning = new Error(`Received number ${val} where a string was expected.`); - warning.name = "Warning"; - console.warn(warning); - return String(val); - } - if (typeof val === "boolean") { - const warning = new Error(`Received boolean ${val} where a string was expected.`); - warning.name = "Warning"; - console.warn(warning); - return String(val); - } - return val as string; -}; - -/** - * @internal - * - * Used for awsQueryCompatibility trait. - */ -export const _toBool = (val: unknown): boolean | undefined => { - if (val == null) { - return val as undefined; - } - if (typeof val === "number") { - // transmit to service to be rejected. - } - if (typeof val === "string") { - const lowercase = val.toLowerCase(); - if (val !== "" && lowercase !== "false" && lowercase !== "true") { - const warning = new Error(`Received string "${val}" where a boolean was expected.`); - warning.name = "Warning"; - console.warn(warning); - } - return val !== "" && lowercase !== "false"; - } - return val as boolean; -}; - -/** - * @internal - * - * Used for awsQueryCompatibility trait. - */ -export const _toNum = (val: unknown): number | undefined => { - if (val == null) { - return val as undefined; - } - if (typeof val === "boolean") { - // transmit to service to be rejected. - } - if (typeof val === "string") { - const num = Number(val); - if (num.toString() !== val) { - const warning = new Error(`Received string "${val}" where a number was expected.`); - warning.name = "Warning"; - console.warn(warning); - return val as unknown as undefined; - } - return num; - } - return val as number; -}; diff --git a/node_modules/@aws-sdk/core/src/protocols/index.ts b/node_modules/@aws-sdk/core/src/protocols/index.ts deleted file mode 100644 index c3a1b7cf..00000000 --- a/node_modules/@aws-sdk/core/src/protocols/index.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./coercing-serializers"; -export * from "./json/awsExpectUnion"; diff --git a/node_modules/@aws-sdk/core/src/protocols/json/awsExpectUnion.spec.ts b/node_modules/@aws-sdk/core/src/protocols/json/awsExpectUnion.spec.ts deleted file mode 100644 index c267c687..00000000 --- a/node_modules/@aws-sdk/core/src/protocols/json/awsExpectUnion.spec.ts +++ /dev/null @@ -1,30 +0,0 @@ -import { awsExpectUnion } from "./awsExpectUnion"; - -describe(awsExpectUnion.name, () => { - it("ignores the __type field", () => { - expect( - awsExpectUnion({ - K: "V", - __type: "X", - }) - ).toEqual({ - K: "V", - }); - }); - - it("throws when there are extra keys or no keys", () => { - expect(() => - awsExpectUnion({ - __type: "X", - }) - ).toThrowError(); - - expect(() => - awsExpectUnion({ - K: "V", - I: "S", - __type: "X", - }) - ).toThrowError(); - }); -}); diff --git a/node_modules/@aws-sdk/core/src/protocols/json/awsExpectUnion.ts b/node_modules/@aws-sdk/core/src/protocols/json/awsExpectUnion.ts deleted file mode 100644 index dd9b38e0..00000000 --- a/node_modules/@aws-sdk/core/src/protocols/json/awsExpectUnion.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { expectUnion } from "@smithy/smithy-client"; - -/** - * @internal - * - * Forwards to Smithy's expectUnion function, but also ignores - * the `__type` field if it is present. - */ -export const awsExpectUnion = (value: unknown): Record | undefined => { - if (value == null) { - return undefined; - } - if (typeof value === "object" && "__type" in value) { - delete value.__type; - } - return expectUnion(value); -}; diff --git a/node_modules/@aws-sdk/core/tsconfig.cjs.json b/node_modules/@aws-sdk/core/tsconfig.cjs.json deleted file mode 100644 index 8f8d6342..00000000 --- a/node_modules/@aws-sdk/core/tsconfig.cjs.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "compilerOptions": { - "rootDir": "./src", - "outDir": "./dist-cjs", - "baseUrl": "." - }, - "extends": "../../tsconfig.cjs.json", - "include": ["src/"] -} diff --git a/node_modules/@aws-sdk/core/tsconfig.cjs.tsbuildinfo b/node_modules/@aws-sdk/core/tsconfig.cjs.tsbuildinfo deleted file mode 100644 index 8a017459..00000000 --- a/node_modules/@aws-sdk/core/tsconfig.cjs.tsbuildinfo +++ /dev/null @@ -1 +0,0 @@ -{"program":{"fileNames":["../../node_modules/typescript/lib/lib.es5.d.ts","../../node_modules/typescript/lib/lib.es2015.d.ts","../../node_modules/typescript/lib/lib.es2016.d.ts","../../node_modules/typescript/lib/lib.es2017.d.ts","../../node_modules/typescript/lib/lib.es2018.d.ts","../../node_modules/typescript/lib/lib.dom.d.ts","../../node_modules/typescript/lib/lib.dom.iterable.d.ts","../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../node_modules/tslib/tslib.d.ts","./src/client/emitWarningIfUnsupportedVersion.ts","./src/client/index.ts","./src/protocols/coercing-serializers.ts","../../node_modules/@smithy/types/dist-types/abort.d.ts","../../node_modules/@smithy/types/dist-types/auth/auth.d.ts","../../node_modules/@smithy/types/dist-types/auth/HttpApiKeyAuth.d.ts","../../node_modules/@smithy/types/dist-types/identity/identity.d.ts","../../node_modules/@smithy/types/dist-types/endpoint.d.ts","../../node_modules/@smithy/types/dist-types/logger.d.ts","../../node_modules/@smithy/types/dist-types/uri.d.ts","../../node_modules/@smithy/types/dist-types/http.d.ts","../../node_modules/@smithy/types/dist-types/response.d.ts","../../node_modules/@smithy/types/dist-types/util.d.ts","../../node_modules/@smithy/types/dist-types/middleware.d.ts","../../node_modules/@smithy/types/dist-types/auth/HttpSigner.d.ts","../../node_modules/@smithy/types/dist-types/auth/IdentityProviderConfig.d.ts","../../node_modules/@smithy/types/dist-types/auth/HttpAuthScheme.d.ts","../../node_modules/@smithy/types/dist-types/auth/HttpAuthSchemeProvider.d.ts","../../node_modules/@smithy/types/dist-types/auth/index.d.ts","../../node_modules/@types/node/assert.d.ts","../../node_modules/@types/node/globals.d.ts","../../node_modules/@types/node/async_hooks.d.ts","../../node_modules/@types/node/buffer.d.ts","../../node_modules/@types/node/child_process.d.ts","../../node_modules/@types/node/cluster.d.ts","../../node_modules/@types/node/console.d.ts","../../node_modules/@types/node/constants.d.ts","../../node_modules/@types/node/crypto.d.ts","../../node_modules/@types/node/dgram.d.ts","../../node_modules/@types/node/dns.d.ts","../../node_modules/@types/node/domain.d.ts","../../node_modules/@types/node/events.d.ts","../../node_modules/@types/node/fs.d.ts","../../node_modules/@types/node/fs/promises.d.ts","../../node_modules/@types/node/http.d.ts","../../node_modules/@types/node/http2.d.ts","../../node_modules/@types/node/https.d.ts","../../node_modules/@types/node/inspector.d.ts","../../node_modules/@types/node/module.d.ts","../../node_modules/@types/node/net.d.ts","../../node_modules/@types/node/os.d.ts","../../node_modules/@types/node/path.d.ts","../../node_modules/@types/node/perf_hooks.d.ts","../../node_modules/@types/node/process.d.ts","../../node_modules/@types/node/punycode.d.ts","../../node_modules/@types/node/querystring.d.ts","../../node_modules/@types/node/readline.d.ts","../../node_modules/@types/node/repl.d.ts","../../node_modules/@types/node/stream.d.ts","../../node_modules/@types/node/string_decoder.d.ts","../../node_modules/@types/node/timers.d.ts","../../node_modules/@types/node/tls.d.ts","../../node_modules/@types/node/trace_events.d.ts","../../node_modules/@types/node/tty.d.ts","../../node_modules/@types/node/url.d.ts","../../node_modules/@types/node/util.d.ts","../../node_modules/@types/node/v8.d.ts","../../node_modules/@types/node/vm.d.ts","../../node_modules/@types/node/wasi.d.ts","../../node_modules/@types/node/worker_threads.d.ts","../../node_modules/@types/node/zlib.d.ts","../../node_modules/@types/node/globals.global.d.ts","../../node_modules/@types/node/index.d.ts","../../node_modules/@smithy/types/dist-types/transform/exact.d.ts","../../node_modules/@smithy/types/dist-types/externals-check/browser-externals-check.d.ts","../../node_modules/@smithy/types/dist-types/blob/blob-payload-input-types.d.ts","../../node_modules/@smithy/types/dist-types/crypto.d.ts","../../node_modules/@smithy/types/dist-types/checksum.d.ts","../../node_modules/@smithy/types/dist-types/command.d.ts","../../node_modules/@smithy/types/dist-types/client.d.ts","../../node_modules/@smithy/types/dist-types/connection/config.d.ts","../../node_modules/@smithy/types/dist-types/transfer.d.ts","../../node_modules/@smithy/types/dist-types/connection/manager.d.ts","../../node_modules/@smithy/types/dist-types/connection/pool.d.ts","../../node_modules/@smithy/types/dist-types/connection/index.d.ts","../../node_modules/@smithy/types/dist-types/eventStream.d.ts","../../node_modules/@smithy/types/dist-types/encode.d.ts","../../node_modules/@smithy/types/dist-types/endpoints/shared.d.ts","../../node_modules/@smithy/types/dist-types/endpoints/EndpointRuleObject.d.ts","../../node_modules/@smithy/types/dist-types/endpoints/ErrorRuleObject.d.ts","../../node_modules/@smithy/types/dist-types/endpoints/TreeRuleObject.d.ts","../../node_modules/@smithy/types/dist-types/endpoints/RuleSetObject.d.ts","../../node_modules/@smithy/types/dist-types/endpoints/index.d.ts","../../node_modules/@smithy/types/dist-types/extensions/checksum.d.ts","../../node_modules/@smithy/types/dist-types/extensions/defaultClientConfiguration.d.ts","../../node_modules/@smithy/types/dist-types/retry.d.ts","../../node_modules/@smithy/types/dist-types/extensions/retry.d.ts","../../node_modules/@smithy/types/dist-types/extensions/defaultExtensionConfiguration.d.ts","../../node_modules/@smithy/types/dist-types/extensions/index.d.ts","../../node_modules/@smithy/types/dist-types/identity/apiKeyIdentity.d.ts","../../node_modules/@smithy/types/dist-types/identity/awsCredentialIdentity.d.ts","../../node_modules/@smithy/types/dist-types/identity/tokenIdentity.d.ts","../../node_modules/@smithy/types/dist-types/identity/index.d.ts","../../node_modules/@smithy/types/dist-types/pagination.d.ts","../../node_modules/@smithy/types/dist-types/profile.d.ts","../../node_modules/@smithy/types/dist-types/serde.d.ts","../../node_modules/@smithy/types/dist-types/shapes.d.ts","../../node_modules/@smithy/types/dist-types/signature.d.ts","../../node_modules/@smithy/types/dist-types/stream.d.ts","../../node_modules/@smithy/types/dist-types/streaming-payload/streaming-blob-common-types.d.ts","../../node_modules/@smithy/types/dist-types/streaming-payload/streaming-blob-payload-input-types.d.ts","../../node_modules/@smithy/types/dist-types/streaming-payload/streaming-blob-payload-output-types.d.ts","../../node_modules/@smithy/types/dist-types/transform/type-transform.d.ts","../../node_modules/@smithy/types/dist-types/transform/client-method-transforms.d.ts","../../node_modules/@smithy/types/dist-types/transform/client-payload-blob-type-narrow.d.ts","../../node_modules/@smithy/types/dist-types/waiter.d.ts","../../node_modules/@smithy/types/dist-types/index.d.ts","../../node_modules/@smithy/smithy-client/dist-types/NoOpLogger.d.ts","../../node_modules/@smithy/smithy-client/dist-types/client.d.ts","../../node_modules/@smithy/util-stream/dist-types/blob/Uint8ArrayBlobAdapter.d.ts","../../node_modules/@smithy/util-stream/dist-types/getAwsChunkedEncodingStream.d.ts","../../node_modules/@smithy/util-stream/dist-types/sdk-stream-mixin.d.ts","../../node_modules/@smithy/util-stream/dist-types/index.d.ts","../../node_modules/@smithy/smithy-client/dist-types/collect-stream-body.d.ts","../../node_modules/@smithy/smithy-client/dist-types/command.d.ts","../../node_modules/@smithy/smithy-client/dist-types/constants.d.ts","../../node_modules/@smithy/smithy-client/dist-types/create-aggregated-client.d.ts","../../node_modules/@smithy/smithy-client/dist-types/date-utils.d.ts","../../node_modules/@smithy/smithy-client/dist-types/default-error-handler.d.ts","../../node_modules/@smithy/smithy-client/dist-types/defaults-mode.d.ts","../../node_modules/@smithy/smithy-client/dist-types/emitWarningIfUnsupportedVersion.d.ts","../../node_modules/@smithy/smithy-client/dist-types/extensions/checksum.d.ts","../../node_modules/@smithy/smithy-client/dist-types/extensions/retry.d.ts","../../node_modules/@smithy/smithy-client/dist-types/extensions/defaultExtensionConfiguration.d.ts","../../node_modules/@smithy/smithy-client/dist-types/extensions/index.d.ts","../../node_modules/@smithy/smithy-client/dist-types/exceptions.d.ts","../../node_modules/@smithy/smithy-client/dist-types/extended-encode-uri-component.d.ts","../../node_modules/@smithy/smithy-client/dist-types/get-array-if-single-item.d.ts","../../node_modules/@smithy/smithy-client/dist-types/get-value-from-text-node.d.ts","../../node_modules/@smithy/smithy-client/dist-types/lazy-json.d.ts","../../node_modules/@smithy/smithy-client/dist-types/object-mapping.d.ts","../../node_modules/@smithy/smithy-client/dist-types/parse-utils.d.ts","../../node_modules/@smithy/smithy-client/dist-types/resolve-path.d.ts","../../node_modules/@smithy/smithy-client/dist-types/ser-utils.d.ts","../../node_modules/@smithy/smithy-client/dist-types/serde-json.d.ts","../../node_modules/@smithy/smithy-client/dist-types/split-every.d.ts","../../node_modules/@smithy/smithy-client/dist-types/index.d.ts","./src/protocols/json/awsExpectUnion.ts","./src/protocols/index.ts","./src/index.ts","../../node_modules/@types/argparse/index.d.ts","../../node_modules/@types/babel__generator/node_modules/@babel/types/lib/index.d.ts","../../node_modules/@types/babel__generator/index.d.ts","../../node_modules/@types/babel__core/node_modules/@babel/types/lib/index.d.ts","../../node_modules/@types/babel__core/node_modules/@babel/parser/typings/babel-parser.d.ts","../../node_modules/@types/babel__template/node_modules/@babel/parser/typings/babel-parser.d.ts","../../node_modules/@types/babel__template/node_modules/@babel/types/lib/index.d.ts","../../node_modules/@types/babel__template/index.d.ts","../../node_modules/@types/babel__traverse/node_modules/@babel/types/lib/index.d.ts","../../node_modules/@types/babel__traverse/index.d.ts","../../node_modules/@types/babel__core/index.d.ts","../../node_modules/@types/chai/index.d.ts","../../node_modules/@types/chai-as-promised/index.d.ts","../../node_modules/@types/chai-subset/index.d.ts","../../node_modules/@types/connect/index.d.ts","../../node_modules/@types/eslint/helpers.d.ts","../../node_modules/@types/estree/index.d.ts","../../node_modules/@types/json-schema/index.d.ts","../../node_modules/@types/eslint/index.d.ts","../../node_modules/@types/eslint-scope/index.d.ts","../../node_modules/@types/fs-extra/index.d.ts","../../node_modules/@types/graceful-fs/index.d.ts","../../node_modules/@types/istanbul-lib-coverage/index.d.ts","../../node_modules/@types/istanbul-lib-report/index.d.ts","../../node_modules/@types/istanbul-reports/index.d.ts","../../node_modules/expect/node_modules/@jest/expect-utils/build/index.d.ts","../../node_modules/chalk/index.d.ts","../../node_modules/@sinclair/typebox/typebox.d.ts","../../node_modules/pretty-format/node_modules/@jest/schemas/build/index.d.ts","../../node_modules/pretty-format/build/index.d.ts","../../node_modules/expect/node_modules/jest-diff/build/index.d.ts","../../node_modules/expect/node_modules/jest-matcher-utils/build/index.d.ts","../../node_modules/expect/build/index.d.ts","../../node_modules/@types/jest/index.d.ts","../../node_modules/parse5/dist/common/html.d.ts","../../node_modules/parse5/dist/common/token.d.ts","../../node_modules/parse5/dist/common/error-codes.d.ts","../../node_modules/parse5/dist/tokenizer/preprocessor.d.ts","../../node_modules/parse5/dist/tokenizer/index.d.ts","../../node_modules/parse5/dist/tree-adapters/interface.d.ts","../../node_modules/parse5/dist/parser/open-element-stack.d.ts","../../node_modules/parse5/dist/parser/formatting-element-list.d.ts","../../node_modules/parse5/dist/parser/index.d.ts","../../node_modules/parse5/dist/tree-adapters/default.d.ts","../../node_modules/parse5/dist/serializer/index.d.ts","../../node_modules/parse5/dist/common/foreign-content.d.ts","../../node_modules/parse5/dist/index.d.ts","../../node_modules/@types/tough-cookie/index.d.ts","../../node_modules/@types/jsdom/base.d.ts","../../node_modules/@types/jsdom/index.d.ts","../../node_modules/@types/json5/index.d.ts","../../node_modules/@types/lodash/common/common.d.ts","../../node_modules/@types/lodash/common/array.d.ts","../../node_modules/@types/lodash/common/collection.d.ts","../../node_modules/@types/lodash/common/date.d.ts","../../node_modules/@types/lodash/common/function.d.ts","../../node_modules/@types/lodash/common/lang.d.ts","../../node_modules/@types/lodash/common/math.d.ts","../../node_modules/@types/lodash/common/number.d.ts","../../node_modules/@types/lodash/common/object.d.ts","../../node_modules/@types/lodash/common/seq.d.ts","../../node_modules/@types/lodash/common/string.d.ts","../../node_modules/@types/lodash/common/util.d.ts","../../node_modules/@types/lodash/index.d.ts","../../node_modules/@types/minimatch/index.d.ts","../../node_modules/@types/minimist/index.d.ts","../../node_modules/@types/normalize-package-data/index.d.ts","../../node_modules/@types/parse-json/index.d.ts","../../node_modules/@types/prettier/index.d.ts","../../node_modules/@types/semver/classes/semver.d.ts","../../node_modules/@types/semver/functions/parse.d.ts","../../node_modules/@types/semver/functions/valid.d.ts","../../node_modules/@types/semver/functions/clean.d.ts","../../node_modules/@types/semver/functions/inc.d.ts","../../node_modules/@types/semver/functions/diff.d.ts","../../node_modules/@types/semver/functions/major.d.ts","../../node_modules/@types/semver/functions/minor.d.ts","../../node_modules/@types/semver/functions/patch.d.ts","../../node_modules/@types/semver/functions/prerelease.d.ts","../../node_modules/@types/semver/functions/compare.d.ts","../../node_modules/@types/semver/functions/rcompare.d.ts","../../node_modules/@types/semver/functions/compare-loose.d.ts","../../node_modules/@types/semver/functions/compare-build.d.ts","../../node_modules/@types/semver/functions/sort.d.ts","../../node_modules/@types/semver/functions/rsort.d.ts","../../node_modules/@types/semver/functions/gt.d.ts","../../node_modules/@types/semver/functions/lt.d.ts","../../node_modules/@types/semver/functions/eq.d.ts","../../node_modules/@types/semver/functions/neq.d.ts","../../node_modules/@types/semver/functions/gte.d.ts","../../node_modules/@types/semver/functions/lte.d.ts","../../node_modules/@types/semver/functions/cmp.d.ts","../../node_modules/@types/semver/functions/coerce.d.ts","../../node_modules/@types/semver/classes/comparator.d.ts","../../node_modules/@types/semver/classes/range.d.ts","../../node_modules/@types/semver/functions/satisfies.d.ts","../../node_modules/@types/semver/ranges/max-satisfying.d.ts","../../node_modules/@types/semver/ranges/min-satisfying.d.ts","../../node_modules/@types/semver/ranges/to-comparators.d.ts","../../node_modules/@types/semver/ranges/min-version.d.ts","../../node_modules/@types/semver/ranges/valid.d.ts","../../node_modules/@types/semver/ranges/outside.d.ts","../../node_modules/@types/semver/ranges/gtr.d.ts","../../node_modules/@types/semver/ranges/ltr.d.ts","../../node_modules/@types/semver/ranges/intersects.d.ts","../../node_modules/@types/semver/ranges/simplify.d.ts","../../node_modules/@types/semver/ranges/subset.d.ts","../../node_modules/@types/semver/internals/identifiers.d.ts","../../node_modules/@types/semver/index.d.ts","../../node_modules/@types/stack-utils/index.d.ts","../../node_modules/@types/uuid/index.d.ts","../../node_modules/@types/ws/index.d.ts","../../node_modules/@types/yargs-parser/index.d.ts","../../node_modules/@types/yargs/index.d.ts"],"fileInfos":[{"version":"8730f4bf322026ff5229336391a18bcaa1f94d4f82416c8b2f3954e2ccaae2ba","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06",{"version":"3aafcb693fe5b5c3bd277bd4c3a617b53db474fe498fc5df067c5603b1eebde7","affectsGlobalScope":true},{"version":"f3d4da15233e593eacb3965cde7960f3fddf5878528d882bcedd5cbaba0193c7","affectsGlobalScope":true},{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"8cc8c5a3bac513368b0157f3d8b31cfdcfe78b56d3724f30f80ed9715e404af8","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"5f406584aef28a331c36523df688ca3650288d14f39c5d2e555c95f0d2ff8f6f","affectsGlobalScope":true},{"version":"22f230e544b35349cfb3bd9110b6ef37b41c6d6c43c3314a31bd0d9652fcec72","affectsGlobalScope":true},{"version":"7ea0b55f6b315cf9ac2ad622b0a7813315bb6e97bf4bb3fbf8f8affbca7dc695","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"eb26de841c52236d8222f87e9e6a235332e0788af8c87a71e9e210314300410a","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"81cac4cbc92c0c839c70f8ffb94eb61e2d32dc1c3cf6d95844ca099463cf37ea","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"09aa50414b80c023553090e2f53827f007a301bc34b0495bfb2c3c08ab9ad1eb","affectsGlobalScope":true},{"version":"2768ef564cfc0689a1b76106c421a2909bdff0acbe87da010785adab80efdd5c","affectsGlobalScope":true},{"version":"52d1bb7ab7a3306fd0375c8bff560feed26ed676a5b0457fa8027b563aecb9a4","affectsGlobalScope":true},"7a1971efcba559ea9002ada4c4e3c925004fb67a755300d53b5edf9399354900","8c7a59a58fb16c668f3a836ecb58afd0d8764478e1c3744870c0c039f286dd91","38f6da5b6f318c33e18dd7c983cab3fe52f510c9a2573948fb13f012e01b1ba6","e61062cf47b67f1a1968f7d150da3aea7b77a9fd5ebce90301c3e0180ca30ab4","c55ae709f94155174ff63647edd2a7e3acbd02a2909aa2541569e8b8bac9fc40","530e5c7e4f74267b7800f1702cf0c576282296a960acbdb2960389b2b1d0875b","1c483cc60a58a0d4c9a068bdaa8d95933263e6017fbea33c9f99790cf870f0a8","07863eea4f350458f803714350e43947f7f73d1d67a9ddf747017065d36b073a","d5f1bbd44ba4f63d8a01fff5e1edc1c1fb50e9caa48a4fa48298a4485d6ff75c","4d2b263907b8c03c5b2df90e6c1f166e9da85bd87bf439683f150afc91fce7e7","c70e38e0f30b7c0542af9aa7e0324a23dd2b0c1a64e078296653d1d3b36fa248","d12680e217215b37094868d491d00196e80f270ce47e5a4bc50269945ae5554d","396c2c14fa408707235d761a965bd84ce3d4fc3117c3b9f1404d6987d98a30d6","5866f85b79bae844211df93770e10e68298d934f2aed751e7a5cdf9ab59f76dc","06289b9873760aac77aed4035ea6c60b1e0879b8afe47a4530bc8522b9b804b1","6b5d7adb6b8a4b6e70ac805805da9cf421a4a852be62a0f39e8c692e7f2675d0","3e7ffc7dd797e5d44d387d0892bc288480493e73dcab9832812907d1389e4a98","db011ec9589fd51995cbd0765673838e38e6485a6559163cc53dcf508b480909","e1a4253f0cca15c14516f52a2ad36c3520b140b5dfb3b3880a368cd75d45d6d9","159af954f2633a12fdee68605009e7e5b150dbeb6d70c46672fd41059c154d53","4c2c4f53e8eedd970f8afa369d7371544fb6231bf95e659f8602e09abe74d5a5",{"version":"cb5a780979155e80a2184eb987cc411a95c9a1686019ade06918c312a0b7c9b2","affectsGlobalScope":true},"c2b5085f47e41d6940bbc5b0d3bd7cc0037c752efb18aecd243c9cf83ad0c0b7","3143a5add0467b83150961ecd33773b561a1207aec727002aa1d70333068eb1b","f87191b7fafe7a0edad375710d99f900e49cef560b66bf309cf3f8e1b7177126","586af7d2abe2f9d59c5e757c370087d6c6baea81b033250f43b8df808d6dfb33",{"version":"1a048ff164b8d9609f5de3139d4e37f6e8a82af82087ac414b9208f52ef8aac7","affectsGlobalScope":true},"3111079f3cb5f2b9c812ca3f46161562bce5bfb355e915f46ed46c41714dc1c3","e7bee4a6d9bb78afa390b25e0ce97a2f94787a1eb17f0a16e732dcbebba3f3ee","b32b6b16cb0bda68199582ad6f22242d07ee75fac9b1f28a98cd838afc5eea45","4441ee4119824bfaebc49308559edd7545978f9cb41a40f115074e1031dde75f",{"version":"60693a88462d0e97900123b5bf7c73e146ce0cc94da46a61fe6775b430d2ff05","affectsGlobalScope":true},{"version":"588c69eda58b9202676ec7ca11a72c3762819b46a0ed72462c769846153c447c","affectsGlobalScope":true},"ae064ed4f855716b7ff348639ddcd6a6d354a72fae82f506608a7dc9266aa24c","92f019c55b21c939616f6a48f678e714ac7b109444cbbf23ad69310ce66ecbdc","bba259efdf9ab95e0c7d3cc8e99250f56bb6b31d6129efdf733ca4eb1d01feea","499b7544062cf44fab253daeaea8ba28877d9e7ff4149246b1f0154d1c9ed535","139fd681eff7771a38d0c025d13c7a11c5474f6aab61e01c41511d71496df173","f614c3f61e46ccc2cb58702d5a158338ea57ee09099fde5db4cfc63ed0ce4d74","44e42ed6ec9c4451ebe89524e80ac8564e9dd0988c56e6c58f393c810730595d","a504c109b872b0e653549bd258eb06584c148c98d79406c7516995865a6d5089","155865f5f76db0996cd5e20cc5760613ea170ee5ad594c1f3d76fcaa05382161","e92852d673c836fc64e10c38640abcd67c463456e5df55723ac699b8e6ab3a8a","4455c78d226d061b1203c7614c6c6eb5f4f9db5f00d44ff47d0112de8766fbc4",{"version":"ec369bb9d97c4dc09dd2a4093b7ca3ba69ad284831fccac8a1977785e9e38ce5","affectsGlobalScope":true},"4465a636f5f6e9665a90e30691862c9e0a3ac2edc0e66296704f10865e924f2a","9af781f03d44f5635ed7844be0ce370d9d595d4b4ec67cad88f0fac03255257e","f9fd4c3ef6de27fa0e256f4e75b61711c4be05a3399f7714621d3edc832e36b0","e49290b7a927995c0d7e6b2b9c8296284b68a9036d9966531de65185269258d7","aa95cc73ea5315e4f6fc8c6db43d49e3b7de3780cae20a4f1319032809013038","874ca809b79276460011480a2829f4c8d4db29416dd411f71efbf8f497f0ac09","6c903bceaf3f3bc04f2d4c7dcd89ce9fb148b3ba0a5f5408d8f6de2b7eecc7ea","504d049d9e550a65466b73ca39da6469ab41786074ea1d16d37c8853f9f6ab2e","23a28f834a078986bbf58f4e3705956983ff81c3c2493f3db3e5f0e8a9507779","4febdf7f3ec92706c58e0b4e8159cd6de718284ef384260b07c9641c13fc70ce",{"version":"bf241ed073916ec9e21a3c138936edd444b6787d874844c0d05fc00a8f109d19","affectsGlobalScope":true},"7335933d9f30dcfd2c4b6080a8b78e81912a7fcefb1dafccb67ca4cb4b3ac23d","a6bfe9de9adef749010c118104b071d14943802ff0614732b47ce4f1c3e383cd","4c3d0e10396646db4a1e917fb852077ee77ae62e512913bef9cccc2bb0f8bd0e","3b220849d58140dcc6718f5b52dcd29fdb79c45bc28f561cbd29eb1cac6cce13","0ee22fce41f7417a24c808d266e91b850629113c104713a35854393d55994beb","22d1b1d965baba05766613e2e6c753bb005d4386c448cafd72c309ba689e8c24",{"version":"2708349d5a11a5c2e5f3a0765259ebe7ee00cdcc8161cb9990cb4910328442a1","affectsGlobalScope":true},"c6c0bd221bb1e94768e94218f8298e47633495529d60cae7d8da9374247a1cf5","a1b36a1f91a54daf2e89e12b834fa41fb7338bc044d1f08a80817efc93c99ee5","8bb4a5b632dd5a868f3271750895cb61b0e20cff82032d87e89288faee8dd6e2","0c1aabfd9fb1818afb2e798f91f669edafce59cd7e3423d25b1cfccfaaf2c403","017de6fdabea79015d493bf71e56cbbff092525253c1d76003b3d58280cd82a0","ab9ea2596cb7800bd79d1526930c785606ec4f439c275adbca5adc1ddf87747d","aee8faa433dde04beedb779b3329456a286a966462d666c138c19113ce78c79e","b7e9c39f7edd1ecd2c3d73b753213a0834144d82ac2a67230c1d291d25430a2e","4e693235d606287d6b5a4e7d572f190862b93ea4a28df8a63fc328aa8becdc9d","e58d1ea2fc84c9c03742b4f56449b7d4602c8c4deb4f0e57c619bab35bbbbf81","d82bc1f8fe8eef55aa741373da68b80a8503228c9aa0ec46bdd38fd7e0c02a18","d7c7f8a461326507d90d0888efff0c4011a5e69eb08ccb990232aa22334e4dd6","5af5ebe8c9b84f667cd047cfcf1942d53e3b369dbd63fbea2a189bbf381146c6","27deb39ac0921db739b503407dc9aa93a546b015c06738bc8b66bdf0ae593c7c","eff5b8bdfe94c0a174484a6de01e802fb66f99f8737a20e4fba4df05c2f24cea","52fa3a4f47e30ef266dbda3b69821fe5811be4faad2b266586090d8b4806342e","5cb6f9ea4a097094fe624c3513111292690e39e83167a412f8912807be71ca65","fa461c83b2adc6b33997a95335d19723bddd4d7aaff41cac6f9f817e3c3ae730","d9eed4a308aeb32babee0600d21c3a3ba8452c89e8a4916e5460b45da147c33c","fc9bdd9b3d8fb59c913cb3b8dea0d79b38dfe9331ef07e1c6dc6bf363f061ad6","e647d13de80e1b6b4e1d94363ea6f5f8f77dfb95d562748b488a7248af25aabf","0c3c4ce6a1884610c99306719f59174d81808c69393c30119f9c2aef0449a2cb","219a25474e58a8161b242776856ec5f6960839b63e74809445e51cadbfc18096","16a6f76f6507cc76012cfd3954136a41a58db595231c2f9bfaf35eca6b25346c","bef94eba81ae2c09059c0d9abdb1ae1b7090314f70550f3c8cd5d7ead4a4f212","48b787ad458be9b524fa5fdfef34f68798074132d4b8cfe6a6fe9c2bf334c532","37280465f8f9b2ea21d490979952b18b7f4d1f0d8fab2d627618fb2cfa1828e3","3f3f85dc43cb93c5a797f1ff0fa948d0e17843a443ae11a20cc032ccdf1b9997","9252778562c2587c88775bf9e8a474a2ac51d562fff90b0ab240b51d0248f16d","869010bc679df668137cb3b78a3cb8196e97acf285208a57f6156ceac894a2f7","bcae62618c23047e36d373f0feac5b13f09689e4cd08e788af13271dbe73a139","29a99d2e57b3e08a997cbc2397bdb251441a545306a74b95ffedc5f03d9bc6b7","5ae003688265a1547bbcb344bf0e26cb994149ac2c032756718e9039302dfac8","c5f2cdab01270375da7f5c3ae12157d529938533f0145fa0df91735a96cc1a65","53522a2c33f9196ef05e72118a009c6ae717265e5b0eac3ee6bdc8305e8dde2e","9da2c58a27fdce871c2eac09d5172b04248bb86ada9b0d10e8b3dfa8470b8dd3","5c317403752871838140f70879b09509e37422e92e7364b4363c7b179310ee44","7b270dc53f35dd0b44bfa619ad4d351fffd512e14053c3688323ed007eda3f6d","6d4e928f232ade7221cffc6e4332ec935baa176415c9bf5d12111bb883a247d2","e86ad029224d4f2af3e188be8b5e9badf8c7083247572069bac7bd2193131fc7","057cac07c7bc5abdcfba44325fcea4906dff7919a3d7d82d4ec40f8b4c90cf2f","38aa389acf91d77db5a4f8e26e713ed53dc832ed5573def9cd20acd9ba97c1fe","e56784be93954f1f86d4dd3ac61b4c9727e75864baf123a1b584b970baed4ba0","b9115605f72b65a662723020b2a1eb696c375a5803d6b401dc01fcbfe49ece90","f1afe721e73e468fa292f5fe9ed48955fc6c53ef8b62e9783446b563e0b66fc4","4d250e905299144850c6f8e74dad1ee892d847643bacf637e89adcce013f0700","54b7035573d88f8e94019d00067b3999bf97f4181e6fc3f0573e9cfcb68d0b98","ed3e176bc769725ebc1d93f1d6890fc3d977b9155ae5d03be96ec2d49b303370","7933769d84f5ae16546aef06537ca578f1c8d7cca0708452a00613050ac1f265","cc5c913c4716a0d1563b2a63a7c4dc2fa81b7d7bc58489c79896d69b27e978cd","f194cdeb1caaf80e625f4fad340a9434b2b83786028dcc5ea6f3c459cc7789a0","f8ce447bbda4f75da74cecd866cc1ff9bdde62189ac9d8dc14a16c48b3d702fa","0fda680cf2b072a930dfe98dcd8f5c1da8f9fcac4cac37768ee318ef40145c8c","7f5a6eac3d3d334e2f2eba41f659e9618c06361958762869055e22219f341554","6f996f44113b76a9960d3fad280f4f671115c5e971356d1dbb4d1b000af8b3b3","67f2cd6e208e68fdfa366967d1949575df6ccf90c104fc9747b3f1bdb69ad55a","f99ab9dffe6281c9b6df9ae9d8584d18eabf2107572bbd8fa5c83c8afe531af8","4fc9939c86a7d80ab6a361264e5666336d37e080a00d831d9358ad83575267da","f4ba385eedea4d7be1feeeac05aaa05d6741d931251a85ab48e0610271d001ce","fc79932b9aa710f025b89bf8d8329d99080286e5e079a7d5a529236e9f5dd69e","6646d9075e3e0eedb02c9d03bffef54c8bbeb601d27eed46f143aba435bac37d","0dec72b4c5c4bb149750fef4fc26bdae8f410de941ee766c953f5ac77381d690","8f2644578a3273f43fd700803b89b842d2cd09c1fba2421db45737357e50f5b1","f5405fb679a467cb979f8744940b22b7bc3a0bcbe648c3910d98de3188d42a78","68969a0efd9030866f60c027aedbd600f66ea09e1c9290853cc24c2dcc92000f","639f94fe145a72ce520d3d7b9b3b6c9049624d90cbf85cff46fb47fb28d1d8fe","8327a51d574987a2b0f61ea40df4adddf959f67bc48c303d4b33d47ba3be114a","991fd5ebf9f30ffa17cae6faeae6a838d3d91bdcdd419bce358dc99b8e5b0ad0","51b4ab145645785c8ced29238192f870dbb98f1968a7c7ef2580cd40663b2940","589713fefe7282fd008a2672c5fbacc4a94f31138bae6a03db2c7b5453dc8788","786691c952fe3feac79aca8f0e7e580d95c19afc8a4c6f8765e99fb756d8d9d7","4c348f139d006057ce9384e60b4ee1ce06bee5c16e19ff70f293ad88d5893386","e9d33b2549b5779b6cad92cb6a370c6c106cc12dc80da1cc199e2cb3a715bf38","62b753ed351fba7e0f6b57103529ce90f2e11b949b8fc69c39464fe958535c25","21e1fa3e5c95c61161a1ea2d819972e3b7e916a58571f8f9828b8a6c32e641ea","b63519c0b5db6d56337c5245fa458b3d3017c204ca7be0c220a2fb967526ea79","3d60c1c9c93650dafc5df38f26a3e3d5339280e2a1fea1ecac5661d8ed02ae52","7107b57a41ccc036da5fd0959fadff6f3ed5b8b91358613bcccd9c593b63c679","dc3b172ee27054dbcedcf5007b78c256021db936f6313a9ce9a3ecbb503fd646","ac65f04c2df0218cb8e54f012745cbfcc3c0e67c1f6b1e557d88842bbb72e2db","cc957354aa3c94c9961ebf46282cfde1e81d107fc5785a61f62c67f1dd3ac2eb","ac65f04c2df0218cb8e54f012745cbfcc3c0e67c1f6b1e557d88842bbb72e2db","a2e86df4db576d80704e25293cec6f20fc6101a11f4747440e2eef58fb3c860c","a2e86df4db576d80704e25293cec6f20fc6101a11f4747440e2eef58fb3c860c","ac65f04c2df0218cb8e54f012745cbfcc3c0e67c1f6b1e557d88842bbb72e2db","93de1c6dab503f053efe8d304cb522bb3a89feab8c98f307a674a4fae04773e9","ac65f04c2df0218cb8e54f012745cbfcc3c0e67c1f6b1e557d88842bbb72e2db","6704f0b54df85640baaeebd86c9d4a1dbb661d5a4d57a75bc84162f562f6531d","9d255af1b09c6697089d3c9bf438292a298d8b7a95c68793c9aae80afc9e5ca7",{"version":"c3bc5d095c3c22fd20b5a6550b9c9a6d56c3ffbb87ef057ccce7764b6bed4428","affectsGlobalScope":true},{"version":"63e2182615c513e89bb8a3e749d08f7c379e86490fcdbf6d35f2c14b3507a6e8","affectsGlobalScope":true},{"version":"f4c0db3a49cea9babd5d224ba14243a6a6119bf65a65198994033aaea3a60a71","affectsGlobalScope":true},"6d829824ead8999f87b6df21200df3c6150391b894b4e80662caa462bd48d073",{"version":"64d4b35c5456adf258d2cf56c341e203a073253f229ef3208fc0d5020253b241","affectsGlobalScope":true},"bee89e1eb6425eb49894f3f25e4562dc2564e84e5aa7610b7e13d8ecddf8f5db","dca41e86e89dfb2e85e6935260250f02eb6683b86c2fa16bec729ddd1bcd9b4b","6670e71d65610bd7b64aac5fdf58c21c545f7fa31e060f02a0dcd91763831eb8","e050a0afcdbb269720a900c85076d18e0c1ab73e580202a2bf6964978181222a","6de408de17cb0e3fa3a5e3d0f79bd104848d98dbfa72e92fddfa1a4aa3d8393c","bf88ef4208a770ca39a844b182b3695df536326ea566893fdc5b8418702a331e","8b06ac3faeacb8484d84ddb44571d8f410697f98d7bfa86c0fda60373a9f5215","7eb06594824ada538b1d8b48c3925a83e7db792f47a081a62cf3e5c4e23cf0ee","f5638f7c2f12a9a1a57b5c41b3c1ea7db3876c003bab68e6a57afd6bcc169af0","6c1e688f95fcaf53b1e41c0fdadf2c1cfc96fa924eaf7f9fdb60f96deb0a4986","0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2","c085e9aa62d1ae1375794c1fb927a445fa105fed891a7e24edbb1c3300f7384a","f315e1e65a1f80992f0509e84e4ae2df15ecd9ef73df975f7c98813b71e4c8da","5b9586e9b0b6322e5bfbd2c29bd3b8e21ab9d871f82346cb71020e3d84bae73e","3e70a7e67c2cb16f8cd49097360c0309fe9d1e3210ff9222e9dac1f8df9d4fb6","ab68d2a3e3e8767c3fba8f80de099a1cfc18c0de79e42cb02ae66e22dfe14a66","6d969939c4a63f70f2aa49e88da6f64b655c8e6799612807bef41ccff6ea0da9",{"version":"240c702fb4b3bd54d83ee167d80fa7f0cd7300fef7eea0b32cef33129740893c","affectsGlobalScope":true},"ba600bf38b5c1a5dffa1b99dd7a783549082bbba3b4fe9497eaaf5e4c1764b20","ae8cd6af37275eac75f5369cdb5f01063bcf1f48d74cb434303ee50ec446acfe","2518830a2fda9c272ba48798d0e7b857037443b06594db8e42c87e86944ee9e4","95c1cf650d16b197525b5bfdf8dd7abba0a49d99ddb12a4ba66466a8a6903e49","1fe0aabe758d56ad72495d6e6c7b6ae75619faaeaaf03f0ddf1948eea4cfac84","bbc57966c8c48ee78fd58aadb893784025be056ae538ae22d1e83c502a987e68","5e5d6f6697e378b0660b567866bf67d099d0ea754f8810c0dabe737805f5cf03","99ab49d4732fdc98cf5c495925e65e796544cb4086fe42afc235dfc02bcf2351","af8339d509c40da075088e544c28ed37b519876e5c4d36a48644ebfb3c6ae6c8","d393adc32e520d4274bb4c3dfdcdb342b806a230b66ef0f82b35bffbc4aa2590","c26af7eaedb4f710984634e419ab15e54e5bb99a0b3cae71188c2fff572276de","38b58ef018d0aeee42ef74c42978bb5805503233fdeeb82cd2aed2199fb0d013","3b6040253231d44e6778eb6861cc86c1758562e77783d21b7ecbc73322ded539","cc256fd958b33576ed32c7338c64adb0d08fc0c2c6525010202fab83f32745da","fd0589ca571ad090b531d8c095e26caa53d4825c64d3ff2b2b1ab95d72294175",{"version":"669843ecafb89ae1e944df06360e8966219e4c1c34c0d28aa2503272cdd444a7","affectsGlobalScope":true},"96d14f21b7652903852eef49379d04dbda28c16ed36468f8c9fa08f7c14c9538","675e702f2032766a91eeadee64f51014c64688525da99dccd8178f0c599f13a8","458111fc89d11d2151277c822dfdc1a28fa5b6b2493cf942e37d4cd0a6ee5f22","19c816167e076e7c24f074389c6cf3ed87bdbb917d1ea439ca281f9d26db2439","187119ff4f9553676a884e296089e131e8cc01691c546273b1d0089c3533ce42","febf0b2de54781102b00f61653b21377390a048fbf5262718c91860d11ff34a6","98f9d826db9cd99d27a01a59ee5f22863df00ccf1aaf43e1d7db80ebf716f7c3","0aaef8cded245bf5036a7a40b65622dd6c4da71f7a35343112edbe112b348a1e","00baffbe8a2f2e4875367479489b5d43b5fc1429ecb4a4cc98cfc3009095f52a","dcd91d3b697cb650b95db5471189b99815af5db2a1cd28760f91e0b12ede8ed5","3c92b6dfd43cc1c2485d9eba5ff0b74a19bb8725b692773ef1d66dac48cda4bd","3cf0d343c2276842a5b617f22ba82af6322c7cfe8bb52238ffc0c491a3c21019","df996e25faa505f85aeb294d15ebe61b399cf1d1e49959cdfaf2cc0815c203f9","30abc554c7ad13063a02ddd06757929b34357aea1f6fcf4ca39114cb0fc19384","8841e2aa774b89bd23302dede20663306dc1b9902431ac64b24be8b8d0e3f649","209e814e8e71aec74f69686a9506dd7610b97ab59dcee9446266446f72a76d05","6fa0008bf91a4cc9c8963bace4bba0bd6865cbfa29c3e3ccc461155660fb113a","2b8264b2fefd7367e0f20e2c04eed5d3038831fe00f5efbc110ff0131aab899b","d88a5e779faf033be3d52142a04fbe1cb96009868e3bbdd296b2bc6c59e06c0e","2b93035328f7778d200252681c1d86285d501ed424825a18f81e4c3028aa51d9","2ac9c8332c5f8510b8bdd571f8271e0f39b0577714d5e95c1e79a12b2616f069","42c21aa963e7b86fa00801d96e88b36803188018d5ad91db2a9101bccd40b3ff","d31eb848cdebb4c55b4893b335a7c0cca95ad66dee13cbb7d0893810c0a9c301","b9f96255e1048ed2ea33ec553122716f0e57fc1c3ad778e9aa15f5b46547bd23","7a9e0a564fee396cacf706523b5aeed96e04c6b871a8bebefad78499fbffc5bc","906c751ef5822ec0dadcea2f0e9db64a33fb4ee926cc9f7efa38afe5d5371b2a","5387c049e9702f2d2d7ece1a74836a14b47fbebe9bbeb19f94c580a37c855351","c68391fb9efad5d99ff332c65b1606248c4e4a9f1dd9a087204242b56c7126d6","e9cf02252d3a0ced987d24845dcb1f11c1be5541f17e5daa44c6de2d18138d0c","e8b02b879754d85f48489294f99147aeccc352c760d95a6fe2b6e49cd400b2fe","9f6908ab3d8a86c68b86e38578afc7095114e66b2fc36a2a96e9252aac3998e0","0eedb2344442b143ddcd788f87096961cd8572b64f10b4afc3356aa0460171c6","71405cc70f183d029cc5018375f6c35117ffdaf11846c35ebf85ee3956b1b2a6","c68baff4d8ba346130e9753cefe2e487a16731bf17e05fdacc81e8c9a26aae9d","2cd15528d8bb5d0453aa339b4b52e0696e8b07e790c153831c642c3dea5ac8af","479d622e66283ffa9883fbc33e441f7fc928b2277ff30aacbec7b7761b4e9579","ade307876dc5ca267ca308d09e737b611505e015c535863f22420a11fffc1c54","f8cdefa3e0dee639eccbe9794b46f90291e5fd3989fcba60d2f08fde56179fb9","86c5a62f99aac7053976e317dbe9acb2eaf903aaf3d2e5bb1cafe5c2df7b37a8","2b300954ce01a8343866f737656e13243e86e5baef51bd0631b21dcef1f6e954","a2d409a9ffd872d6b9d78ead00baa116bbc73cfa959fce9a2f29d3227876b2a1","b288936f560cd71f4a6002953290de9ff8dfbfbf37f5a9391be5c83322324898","61178a781ef82e0ff54f9430397e71e8f365fc1e3725e0e5346f2de7b0d50dfa","6a6ccb37feb3aad32d9be026a3337db195979cd5727a616fc0f557e974101a54","c649ea79205c029a02272ef55b7ab14ada0903db26144d2205021f24727ac7a3","38e2b02897c6357bbcff729ef84c736727b45cc152abe95a7567caccdfad2a1d","d6610ea7e0b1a7686dba062a1e5544dd7d34140f4545305b7c6afaebfb348341","3dee35db743bdba2c8d19aece7ac049bde6fa587e195d86547c882784e6ba34c","b15e55c5fa977c2f25ca0b1db52cfa2d1fd4bf0baf90a8b90d4a7678ca462ff1","f41d30972724714763a2698ae949fbc463afb203b5fa7c4ad7e4de0871129a17","843dd7b6a7c6269fd43827303f5cbe65c1fecabc30b4670a50d5a15d57daeeb9","f06d8b8567ee9fd799bf7f806efe93b67683ef24f4dea5b23ef12edff4434d9d","6017384f697ff38bc3ef6a546df5b230c3c31329db84cbfe686c83bec011e2b2","e1a5b30d9248549ca0c0bb1d653bafae20c64c4aa5928cc4cd3017b55c2177b0","a593632d5878f17295bd53e1c77f27bf4c15212822f764a2bfc1702f4b413fa0","a868a534ba1c2ca9060b8a13b0ffbbbf78b4be7b0ff80d8c75b02773f7192c29","da7545aba8f54a50fde23e2ede00158dc8112560d934cee58098dfb03aae9b9d","34baf65cfee92f110d6653322e2120c2d368ee64b3c7981dff08ed105c4f19b0","a1a261624efb3a00ff346b13580f70f3463b8cdcc58b60f5793ff11785d52cab","b0d10e46cfe3f6c476b69af02eaa38e4ccc7430221ce3109ae84bb9fb8282298","fab58e600970e66547644a44bc9918e3223aa2cbd9e8763cec004b2cfb48827e","bc81aff061c53a7140270555f4b22da4ecfe8601e8027cf5aa175fbdc7927c31","70e9a18da08294f75bf23e46c7d69e67634c0765d355887b9b41f0d959e1426e","e9eb1b173aa166892f3eddab182e49cfe59aa2e14d33aedb6b49d175ed6a3750"],"options":{"downlevelIteration":true,"esModuleInterop":true,"experimentalDecorators":true,"importHelpers":true,"jsx":2,"module":1,"noEmitHelpers":true,"noFallthroughCasesInSwitch":true,"outDir":"./dist-cjs","preserveConstEnums":true,"removeComments":true,"rootDir":"./src","strict":true,"target":5,"useUnknownInCatchVariables":false},"fileIdsList":[[138],[138,144],[140],[138,153,154],[155],[138,139,140,145,146,147,148,149,150,151,152,156,157,158,159,160,161,162,163,164,165,166,167],[38,45,46,47],[45,48],[38,42],[38,48],[36,37,46,47,48,49],[80,94,96],[98],[43,44,45,100],[43,45],[102,104,105],[102,103],[107],[36],[39,109],[109],[112],[109,110,111],[109,110,111,112,113],[40],[42,43,45],[98,99],[115],[115,118],[115,116,118,119],[44,117],[95],[35,41],[38],[38,121,122,123],[35,39,40,41,42,43,44,45,50,97,98,99,100,101,103,106,107,108,114,117,120,124,125,126,127,128,129,130,131,132,133,134,136,137],[36,39,40,44],[101],[42,44,103],[42,43],[42,107],[44,98,99],[66,80,94,96,127],[43,100,133,134],[42,66,67,94,101,127,132,134,135],[42],[35],[80,94,138],[141,142,143],[80,138],[173,174,176,179,181],[173],[173,176],[183],[66,94],[188,190],[187,188,189],[64,94],[194],[195],[201,204],[63,89,94,218,219,221],[220],[223,225,226,227,228,229,230,231,232,233,234,235],[223,224,226,227,228,229,230,231,232,233,234,235],[224,225,226,227,228,229,230,231,232,233,234,235],[223,224,225,227,228,229,230,231,232,233,234,235],[223,224,225,226,228,229,230,231,232,233,234,235],[223,224,225,226,227,229,230,231,232,233,234,235],[223,224,225,226,227,228,230,231,232,233,234,235],[223,224,225,226,227,228,229,231,232,233,234,235],[223,224,225,226,227,228,229,230,232,233,234,235],[223,224,225,226,227,228,229,230,231,233,234,235],[223,224,225,226,227,228,229,230,231,232,234,235],[223,224,225,226,227,228,229,230,231,232,233,235],[223,224,225,226,227,228,229,230,231,232,233,234],[51],[53],[54,59],[55,63,64,71,80],[55,56,63,71],[57,87],[58,59,64,72],[59,80],[60,61,63,71],[61],[62,63],[63],[63,64,65,80,86],[64,65],[63,66,71,80,86],[63,64,66,67,71,80,83,86],[66,68,80,83,86],[51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93],[63,69],[70,86],[61,63,71,80],[72],[73],[53,74],[75,85],[76],[77],[63,78],[78,79,87,89],[63,80],[81],[82],[71,80,83],[84],[71,85],[66,77,86],[87],[80,88],[89],[90],[63,65,80,86,89,91],[80,92],[241,280],[241,265,280],[280],[241],[241,266,280],[241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279],[266,280],[63,66,68,71,80,83,86,92,94],[284],[53,94,197,203],[201],[198,202],[207],[206,207],[206],[206,207,208,210,211,214,215,216,217],[207,211],[206,207,208,210,211,212,213],[206,211],[211,215],[207,208,209],[208],[206,207,211],[200],[199],[31],[31,32],[31,33,170],[31,34,169],[31,168]],"referencedMap":[[139,1],[140,1],[145,2],[146,1],[148,3],[157,1],[153,1],[155,4],[156,5],[154,1],[168,6],[48,7],[49,8],[46,9],[47,10],[50,11],[97,12],[99,13],[101,14],[100,15],[106,16],[104,17],[108,18],[39,19],[110,20],[111,21],[113,22],[112,23],[114,24],[109,25],[107,26],[115,27],[116,28],[119,29],[120,30],[118,31],[96,32],[42,33],[121,34],[122,34],[124,35],[123,34],[138,36],[45,37],[125,38],[127,39],[128,40],[129,41],[130,42],[131,12],[132,12],[133,43],[135,44],[136,45],[41,46],[44,26],[137,47],[142,48],[144,49],[143,50],[182,51],[176,52],[174,52],[179,53],[177,52],[181,52],[184,54],[185,54],[186,55],[191,56],[190,57],[192,58],[193,58],[195,59],[196,60],[205,61],[220,62],[221,63],[224,64],[225,65],[223,66],[226,67],[227,68],[228,69],[229,70],[230,71],[231,72],[232,73],[233,74],[234,75],[235,76],[51,77],[53,78],[54,79],[55,80],[56,81],[57,82],[58,83],[59,84],[60,85],[61,86],[62,87],[63,88],[64,89],[65,90],[66,91],[67,92],[68,93],[94,94],[69,95],[70,96],[71,97],[72,98],[73,99],[74,100],[75,101],[76,102],[77,103],[78,104],[79,105],[80,106],[81,107],[82,108],[83,109],[84,110],[85,111],[86,112],[87,113],[88,114],[89,115],[90,116],[91,117],[92,118],[265,119],[266,120],[241,121],[244,121],[263,119],[264,119],[254,119],[253,122],[251,119],[246,119],[259,119],[257,119],[261,119],[245,119],[258,119],[262,119],[247,119],[248,119],[260,119],[242,119],[249,119],[250,119],[252,119],[256,119],[267,123],[255,119],[243,119],[280,124],[274,123],[276,125],[275,123],[268,123],[269,123],[271,123],[273,123],[277,125],[278,125],[270,125],[272,125],[283,126],[285,127],[204,128],[202,129],[203,130],[208,131],[217,132],[207,133],[218,134],[213,135],[214,136],[212,137],[216,138],[210,139],[209,140],[215,141],[211,132],[201,142],[200,143],[32,144],[33,145],[171,146],[34,144],[170,147],[169,148]],"exportedModulesMap":[[139,1],[140,1],[145,2],[146,1],[148,3],[157,1],[153,1],[155,4],[156,5],[154,1],[168,6],[48,7],[49,8],[46,9],[47,10],[50,11],[97,12],[99,13],[101,14],[100,15],[106,16],[104,17],[108,18],[39,19],[110,20],[111,21],[113,22],[112,23],[114,24],[109,25],[107,26],[115,27],[116,28],[119,29],[120,30],[118,31],[96,32],[42,33],[121,34],[122,34],[124,35],[123,34],[138,36],[45,37],[125,38],[127,39],[128,40],[129,41],[130,42],[131,12],[132,12],[133,43],[135,44],[136,45],[41,46],[44,26],[137,47],[142,48],[144,49],[143,50],[182,51],[176,52],[174,52],[179,53],[177,52],[181,52],[184,54],[185,54],[186,55],[191,56],[190,57],[192,58],[193,58],[195,59],[196,60],[205,61],[220,62],[221,63],[224,64],[225,65],[223,66],[226,67],[227,68],[228,69],[229,70],[230,71],[231,72],[232,73],[233,74],[234,75],[235,76],[51,77],[53,78],[54,79],[55,80],[56,81],[57,82],[58,83],[59,84],[60,85],[61,86],[62,87],[63,88],[64,89],[65,90],[66,91],[67,92],[68,93],[94,94],[69,95],[70,96],[71,97],[72,98],[73,99],[74,100],[75,101],[76,102],[77,103],[78,104],[79,105],[80,106],[81,107],[82,108],[83,109],[84,110],[85,111],[86,112],[87,113],[88,114],[89,115],[90,116],[91,117],[92,118],[265,119],[266,120],[241,121],[244,121],[263,119],[264,119],[254,119],[253,122],[251,119],[246,119],[259,119],[257,119],[261,119],[245,119],[258,119],[262,119],[247,119],[248,119],[260,119],[242,119],[249,119],[250,119],[252,119],[256,119],[267,123],[255,119],[243,119],[280,124],[274,123],[276,125],[275,123],[268,123],[269,123],[271,123],[273,123],[277,125],[278,125],[270,125],[272,125],[283,126],[285,127],[204,128],[202,129],[203,130],[208,131],[217,132],[207,133],[218,134],[213,135],[214,136],[212,137],[216,138],[210,139],[209,140],[215,141],[211,132],[201,142],[200,143],[32,144],[33,145],[171,146],[34,144],[170,147],[169,148]],"semanticDiagnosticsPerFile":[199,139,140,145,146,147,148,149,150,151,152,157,158,153,155,156,154,159,160,168,161,162,163,164,165,166,167,35,37,48,49,46,47,36,50,97,99,101,100,102,106,104,105,98,108,39,110,111,113,112,114,109,107,115,116,119,120,118,96,42,121,122,38,124,123,138,40,45,125,126,43,117,127,128,129,130,131,132,133,103,135,136,95,134,41,44,137,141,142,144,143,172,182,176,175,174,173,179,177,178,181,180,184,185,183,186,191,187,190,188,192,193,194,195,196,205,220,221,189,222,224,225,223,226,227,228,229,230,231,232,233,234,235,236,237,51,53,54,55,56,57,58,59,60,61,62,63,64,65,52,93,66,67,68,94,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,238,239,240,265,266,241,244,263,264,254,253,251,246,259,257,261,245,258,262,247,248,260,242,249,250,252,256,267,255,243,280,279,274,276,275,268,269,271,273,277,278,270,272,281,219,282,283,284,285,198,204,197,202,203,208,217,206,207,218,213,214,212,216,210,209,215,211,201,200,31,6,7,9,8,2,10,11,12,13,14,15,16,17,3,4,21,18,19,20,22,23,24,5,25,26,27,28,29,1,30,32,33,171,34,170,169]},"version":"4.9.5"} \ No newline at end of file diff --git a/node_modules/@aws-sdk/core/tsconfig.es.json b/node_modules/@aws-sdk/core/tsconfig.es.json deleted file mode 100644 index ce87108b..00000000 --- a/node_modules/@aws-sdk/core/tsconfig.es.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "compilerOptions": { - "rootDir": "./src", - "outDir": "./dist-es", - "baseUrl": "." - }, - "extends": "../../tsconfig.es.json", - "include": ["src/"] -} diff --git a/node_modules/@aws-sdk/core/tsconfig.es.tsbuildinfo b/node_modules/@aws-sdk/core/tsconfig.es.tsbuildinfo deleted file mode 100644 index 5dc9c1b4..00000000 --- a/node_modules/@aws-sdk/core/tsconfig.es.tsbuildinfo +++ /dev/null @@ -1 +0,0 @@ -{"program":{"fileNames":["../../node_modules/typescript/lib/lib.es5.d.ts","../../node_modules/typescript/lib/lib.es2015.d.ts","../../node_modules/typescript/lib/lib.es2016.d.ts","../../node_modules/typescript/lib/lib.es2017.d.ts","../../node_modules/typescript/lib/lib.es2018.d.ts","../../node_modules/typescript/lib/lib.dom.d.ts","../../node_modules/typescript/lib/lib.dom.iterable.d.ts","../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../node_modules/typescript/lib/lib.esnext.intl.d.ts","../../node_modules/tslib/tslib.d.ts","./src/client/emitWarningIfUnsupportedVersion.ts","./src/client/index.ts","./src/protocols/coercing-serializers.ts","../../node_modules/@smithy/types/dist-types/abort.d.ts","../../node_modules/@smithy/types/dist-types/auth/auth.d.ts","../../node_modules/@smithy/types/dist-types/auth/HttpApiKeyAuth.d.ts","../../node_modules/@smithy/types/dist-types/identity/identity.d.ts","../../node_modules/@smithy/types/dist-types/endpoint.d.ts","../../node_modules/@smithy/types/dist-types/logger.d.ts","../../node_modules/@smithy/types/dist-types/uri.d.ts","../../node_modules/@smithy/types/dist-types/http.d.ts","../../node_modules/@smithy/types/dist-types/response.d.ts","../../node_modules/@smithy/types/dist-types/util.d.ts","../../node_modules/@smithy/types/dist-types/middleware.d.ts","../../node_modules/@smithy/types/dist-types/auth/HttpSigner.d.ts","../../node_modules/@smithy/types/dist-types/auth/IdentityProviderConfig.d.ts","../../node_modules/@smithy/types/dist-types/auth/HttpAuthScheme.d.ts","../../node_modules/@smithy/types/dist-types/auth/HttpAuthSchemeProvider.d.ts","../../node_modules/@smithy/types/dist-types/auth/index.d.ts","../../node_modules/@types/node/assert.d.ts","../../node_modules/@types/node/globals.d.ts","../../node_modules/@types/node/async_hooks.d.ts","../../node_modules/@types/node/buffer.d.ts","../../node_modules/@types/node/child_process.d.ts","../../node_modules/@types/node/cluster.d.ts","../../node_modules/@types/node/console.d.ts","../../node_modules/@types/node/constants.d.ts","../../node_modules/@types/node/crypto.d.ts","../../node_modules/@types/node/dgram.d.ts","../../node_modules/@types/node/dns.d.ts","../../node_modules/@types/node/domain.d.ts","../../node_modules/@types/node/events.d.ts","../../node_modules/@types/node/fs.d.ts","../../node_modules/@types/node/fs/promises.d.ts","../../node_modules/@types/node/http.d.ts","../../node_modules/@types/node/http2.d.ts","../../node_modules/@types/node/https.d.ts","../../node_modules/@types/node/inspector.d.ts","../../node_modules/@types/node/module.d.ts","../../node_modules/@types/node/net.d.ts","../../node_modules/@types/node/os.d.ts","../../node_modules/@types/node/path.d.ts","../../node_modules/@types/node/perf_hooks.d.ts","../../node_modules/@types/node/process.d.ts","../../node_modules/@types/node/punycode.d.ts","../../node_modules/@types/node/querystring.d.ts","../../node_modules/@types/node/readline.d.ts","../../node_modules/@types/node/repl.d.ts","../../node_modules/@types/node/stream.d.ts","../../node_modules/@types/node/string_decoder.d.ts","../../node_modules/@types/node/timers.d.ts","../../node_modules/@types/node/tls.d.ts","../../node_modules/@types/node/trace_events.d.ts","../../node_modules/@types/node/tty.d.ts","../../node_modules/@types/node/url.d.ts","../../node_modules/@types/node/util.d.ts","../../node_modules/@types/node/v8.d.ts","../../node_modules/@types/node/vm.d.ts","../../node_modules/@types/node/wasi.d.ts","../../node_modules/@types/node/worker_threads.d.ts","../../node_modules/@types/node/zlib.d.ts","../../node_modules/@types/node/globals.global.d.ts","../../node_modules/@types/node/index.d.ts","../../node_modules/@smithy/types/dist-types/transform/exact.d.ts","../../node_modules/@smithy/types/dist-types/externals-check/browser-externals-check.d.ts","../../node_modules/@smithy/types/dist-types/blob/blob-payload-input-types.d.ts","../../node_modules/@smithy/types/dist-types/crypto.d.ts","../../node_modules/@smithy/types/dist-types/checksum.d.ts","../../node_modules/@smithy/types/dist-types/command.d.ts","../../node_modules/@smithy/types/dist-types/client.d.ts","../../node_modules/@smithy/types/dist-types/connection/config.d.ts","../../node_modules/@smithy/types/dist-types/transfer.d.ts","../../node_modules/@smithy/types/dist-types/connection/manager.d.ts","../../node_modules/@smithy/types/dist-types/connection/pool.d.ts","../../node_modules/@smithy/types/dist-types/connection/index.d.ts","../../node_modules/@smithy/types/dist-types/eventStream.d.ts","../../node_modules/@smithy/types/dist-types/encode.d.ts","../../node_modules/@smithy/types/dist-types/endpoints/shared.d.ts","../../node_modules/@smithy/types/dist-types/endpoints/EndpointRuleObject.d.ts","../../node_modules/@smithy/types/dist-types/endpoints/ErrorRuleObject.d.ts","../../node_modules/@smithy/types/dist-types/endpoints/TreeRuleObject.d.ts","../../node_modules/@smithy/types/dist-types/endpoints/RuleSetObject.d.ts","../../node_modules/@smithy/types/dist-types/endpoints/index.d.ts","../../node_modules/@smithy/types/dist-types/extensions/checksum.d.ts","../../node_modules/@smithy/types/dist-types/extensions/defaultClientConfiguration.d.ts","../../node_modules/@smithy/types/dist-types/retry.d.ts","../../node_modules/@smithy/types/dist-types/extensions/retry.d.ts","../../node_modules/@smithy/types/dist-types/extensions/defaultExtensionConfiguration.d.ts","../../node_modules/@smithy/types/dist-types/extensions/index.d.ts","../../node_modules/@smithy/types/dist-types/identity/apiKeyIdentity.d.ts","../../node_modules/@smithy/types/dist-types/identity/awsCredentialIdentity.d.ts","../../node_modules/@smithy/types/dist-types/identity/tokenIdentity.d.ts","../../node_modules/@smithy/types/dist-types/identity/index.d.ts","../../node_modules/@smithy/types/dist-types/pagination.d.ts","../../node_modules/@smithy/types/dist-types/profile.d.ts","../../node_modules/@smithy/types/dist-types/serde.d.ts","../../node_modules/@smithy/types/dist-types/shapes.d.ts","../../node_modules/@smithy/types/dist-types/signature.d.ts","../../node_modules/@smithy/types/dist-types/stream.d.ts","../../node_modules/@smithy/types/dist-types/streaming-payload/streaming-blob-common-types.d.ts","../../node_modules/@smithy/types/dist-types/streaming-payload/streaming-blob-payload-input-types.d.ts","../../node_modules/@smithy/types/dist-types/streaming-payload/streaming-blob-payload-output-types.d.ts","../../node_modules/@smithy/types/dist-types/transform/type-transform.d.ts","../../node_modules/@smithy/types/dist-types/transform/client-method-transforms.d.ts","../../node_modules/@smithy/types/dist-types/transform/client-payload-blob-type-narrow.d.ts","../../node_modules/@smithy/types/dist-types/waiter.d.ts","../../node_modules/@smithy/types/dist-types/index.d.ts","../../node_modules/@smithy/smithy-client/dist-types/NoOpLogger.d.ts","../../node_modules/@smithy/smithy-client/dist-types/client.d.ts","../../node_modules/@smithy/util-stream/dist-types/blob/Uint8ArrayBlobAdapter.d.ts","../../node_modules/@smithy/util-stream/dist-types/getAwsChunkedEncodingStream.d.ts","../../node_modules/@smithy/util-stream/dist-types/sdk-stream-mixin.d.ts","../../node_modules/@smithy/util-stream/dist-types/index.d.ts","../../node_modules/@smithy/smithy-client/dist-types/collect-stream-body.d.ts","../../node_modules/@smithy/smithy-client/dist-types/command.d.ts","../../node_modules/@smithy/smithy-client/dist-types/constants.d.ts","../../node_modules/@smithy/smithy-client/dist-types/create-aggregated-client.d.ts","../../node_modules/@smithy/smithy-client/dist-types/date-utils.d.ts","../../node_modules/@smithy/smithy-client/dist-types/default-error-handler.d.ts","../../node_modules/@smithy/smithy-client/dist-types/defaults-mode.d.ts","../../node_modules/@smithy/smithy-client/dist-types/emitWarningIfUnsupportedVersion.d.ts","../../node_modules/@smithy/smithy-client/dist-types/extensions/checksum.d.ts","../../node_modules/@smithy/smithy-client/dist-types/extensions/retry.d.ts","../../node_modules/@smithy/smithy-client/dist-types/extensions/defaultExtensionConfiguration.d.ts","../../node_modules/@smithy/smithy-client/dist-types/extensions/index.d.ts","../../node_modules/@smithy/smithy-client/dist-types/exceptions.d.ts","../../node_modules/@smithy/smithy-client/dist-types/extended-encode-uri-component.d.ts","../../node_modules/@smithy/smithy-client/dist-types/get-array-if-single-item.d.ts","../../node_modules/@smithy/smithy-client/dist-types/get-value-from-text-node.d.ts","../../node_modules/@smithy/smithy-client/dist-types/lazy-json.d.ts","../../node_modules/@smithy/smithy-client/dist-types/object-mapping.d.ts","../../node_modules/@smithy/smithy-client/dist-types/parse-utils.d.ts","../../node_modules/@smithy/smithy-client/dist-types/resolve-path.d.ts","../../node_modules/@smithy/smithy-client/dist-types/ser-utils.d.ts","../../node_modules/@smithy/smithy-client/dist-types/serde-json.d.ts","../../node_modules/@smithy/smithy-client/dist-types/split-every.d.ts","../../node_modules/@smithy/smithy-client/dist-types/index.d.ts","./src/protocols/json/awsExpectUnion.ts","./src/protocols/index.ts","./src/index.ts","../../node_modules/@types/argparse/index.d.ts","../../node_modules/@types/babel__generator/node_modules/@babel/types/lib/index.d.ts","../../node_modules/@types/babel__generator/index.d.ts","../../node_modules/@types/babel__core/node_modules/@babel/types/lib/index.d.ts","../../node_modules/@types/babel__core/node_modules/@babel/parser/typings/babel-parser.d.ts","../../node_modules/@types/babel__template/node_modules/@babel/parser/typings/babel-parser.d.ts","../../node_modules/@types/babel__template/node_modules/@babel/types/lib/index.d.ts","../../node_modules/@types/babel__template/index.d.ts","../../node_modules/@types/babel__traverse/node_modules/@babel/types/lib/index.d.ts","../../node_modules/@types/babel__traverse/index.d.ts","../../node_modules/@types/babel__core/index.d.ts","../../node_modules/@types/chai/index.d.ts","../../node_modules/@types/chai-as-promised/index.d.ts","../../node_modules/@types/chai-subset/index.d.ts","../../node_modules/@types/connect/index.d.ts","../../node_modules/@types/eslint/helpers.d.ts","../../node_modules/@types/estree/index.d.ts","../../node_modules/@types/json-schema/index.d.ts","../../node_modules/@types/eslint/index.d.ts","../../node_modules/@types/eslint-scope/index.d.ts","../../node_modules/@types/fs-extra/index.d.ts","../../node_modules/@types/graceful-fs/index.d.ts","../../node_modules/@types/istanbul-lib-coverage/index.d.ts","../../node_modules/@types/istanbul-lib-report/index.d.ts","../../node_modules/@types/istanbul-reports/index.d.ts","../../node_modules/expect/node_modules/@jest/expect-utils/build/index.d.ts","../../node_modules/chalk/index.d.ts","../../node_modules/@sinclair/typebox/typebox.d.ts","../../node_modules/pretty-format/node_modules/@jest/schemas/build/index.d.ts","../../node_modules/pretty-format/build/index.d.ts","../../node_modules/expect/node_modules/jest-diff/build/index.d.ts","../../node_modules/expect/node_modules/jest-matcher-utils/build/index.d.ts","../../node_modules/expect/build/index.d.ts","../../node_modules/@types/jest/index.d.ts","../../node_modules/parse5/dist/common/html.d.ts","../../node_modules/parse5/dist/common/token.d.ts","../../node_modules/parse5/dist/common/error-codes.d.ts","../../node_modules/parse5/dist/tokenizer/preprocessor.d.ts","../../node_modules/parse5/dist/tokenizer/index.d.ts","../../node_modules/parse5/dist/tree-adapters/interface.d.ts","../../node_modules/parse5/dist/parser/open-element-stack.d.ts","../../node_modules/parse5/dist/parser/formatting-element-list.d.ts","../../node_modules/parse5/dist/parser/index.d.ts","../../node_modules/parse5/dist/tree-adapters/default.d.ts","../../node_modules/parse5/dist/serializer/index.d.ts","../../node_modules/parse5/dist/common/foreign-content.d.ts","../../node_modules/parse5/dist/index.d.ts","../../node_modules/@types/tough-cookie/index.d.ts","../../node_modules/@types/jsdom/base.d.ts","../../node_modules/@types/jsdom/index.d.ts","../../node_modules/@types/json5/index.d.ts","../../node_modules/@types/lodash/common/common.d.ts","../../node_modules/@types/lodash/common/array.d.ts","../../node_modules/@types/lodash/common/collection.d.ts","../../node_modules/@types/lodash/common/date.d.ts","../../node_modules/@types/lodash/common/function.d.ts","../../node_modules/@types/lodash/common/lang.d.ts","../../node_modules/@types/lodash/common/math.d.ts","../../node_modules/@types/lodash/common/number.d.ts","../../node_modules/@types/lodash/common/object.d.ts","../../node_modules/@types/lodash/common/seq.d.ts","../../node_modules/@types/lodash/common/string.d.ts","../../node_modules/@types/lodash/common/util.d.ts","../../node_modules/@types/lodash/index.d.ts","../../node_modules/@types/minimatch/index.d.ts","../../node_modules/@types/minimist/index.d.ts","../../node_modules/@types/normalize-package-data/index.d.ts","../../node_modules/@types/parse-json/index.d.ts","../../node_modules/@types/prettier/index.d.ts","../../node_modules/@types/semver/classes/semver.d.ts","../../node_modules/@types/semver/functions/parse.d.ts","../../node_modules/@types/semver/functions/valid.d.ts","../../node_modules/@types/semver/functions/clean.d.ts","../../node_modules/@types/semver/functions/inc.d.ts","../../node_modules/@types/semver/functions/diff.d.ts","../../node_modules/@types/semver/functions/major.d.ts","../../node_modules/@types/semver/functions/minor.d.ts","../../node_modules/@types/semver/functions/patch.d.ts","../../node_modules/@types/semver/functions/prerelease.d.ts","../../node_modules/@types/semver/functions/compare.d.ts","../../node_modules/@types/semver/functions/rcompare.d.ts","../../node_modules/@types/semver/functions/compare-loose.d.ts","../../node_modules/@types/semver/functions/compare-build.d.ts","../../node_modules/@types/semver/functions/sort.d.ts","../../node_modules/@types/semver/functions/rsort.d.ts","../../node_modules/@types/semver/functions/gt.d.ts","../../node_modules/@types/semver/functions/lt.d.ts","../../node_modules/@types/semver/functions/eq.d.ts","../../node_modules/@types/semver/functions/neq.d.ts","../../node_modules/@types/semver/functions/gte.d.ts","../../node_modules/@types/semver/functions/lte.d.ts","../../node_modules/@types/semver/functions/cmp.d.ts","../../node_modules/@types/semver/functions/coerce.d.ts","../../node_modules/@types/semver/classes/comparator.d.ts","../../node_modules/@types/semver/classes/range.d.ts","../../node_modules/@types/semver/functions/satisfies.d.ts","../../node_modules/@types/semver/ranges/max-satisfying.d.ts","../../node_modules/@types/semver/ranges/min-satisfying.d.ts","../../node_modules/@types/semver/ranges/to-comparators.d.ts","../../node_modules/@types/semver/ranges/min-version.d.ts","../../node_modules/@types/semver/ranges/valid.d.ts","../../node_modules/@types/semver/ranges/outside.d.ts","../../node_modules/@types/semver/ranges/gtr.d.ts","../../node_modules/@types/semver/ranges/ltr.d.ts","../../node_modules/@types/semver/ranges/intersects.d.ts","../../node_modules/@types/semver/ranges/simplify.d.ts","../../node_modules/@types/semver/ranges/subset.d.ts","../../node_modules/@types/semver/internals/identifiers.d.ts","../../node_modules/@types/semver/index.d.ts","../../node_modules/@types/stack-utils/index.d.ts","../../node_modules/@types/uuid/index.d.ts","../../node_modules/@types/ws/index.d.ts","../../node_modules/@types/yargs-parser/index.d.ts","../../node_modules/@types/yargs/index.d.ts"],"fileInfos":[{"version":"8730f4bf322026ff5229336391a18bcaa1f94d4f82416c8b2f3954e2ccaae2ba","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06",{"version":"3aafcb693fe5b5c3bd277bd4c3a617b53db474fe498fc5df067c5603b1eebde7","affectsGlobalScope":true},{"version":"f3d4da15233e593eacb3965cde7960f3fddf5878528d882bcedd5cbaba0193c7","affectsGlobalScope":true},{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"8cc8c5a3bac513368b0157f3d8b31cfdcfe78b56d3724f30f80ed9715e404af8","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"5f406584aef28a331c36523df688ca3650288d14f39c5d2e555c95f0d2ff8f6f","affectsGlobalScope":true},{"version":"22f230e544b35349cfb3bd9110b6ef37b41c6d6c43c3314a31bd0d9652fcec72","affectsGlobalScope":true},{"version":"7ea0b55f6b315cf9ac2ad622b0a7813315bb6e97bf4bb3fbf8f8affbca7dc695","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"eb26de841c52236d8222f87e9e6a235332e0788af8c87a71e9e210314300410a","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"81cac4cbc92c0c839c70f8ffb94eb61e2d32dc1c3cf6d95844ca099463cf37ea","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"09aa50414b80c023553090e2f53827f007a301bc34b0495bfb2c3c08ab9ad1eb","affectsGlobalScope":true},{"version":"2768ef564cfc0689a1b76106c421a2909bdff0acbe87da010785adab80efdd5c","affectsGlobalScope":true},{"version":"52d1bb7ab7a3306fd0375c8bff560feed26ed676a5b0457fa8027b563aecb9a4","affectsGlobalScope":true},"7a1971efcba559ea9002ada4c4e3c925004fb67a755300d53b5edf9399354900","8c7a59a58fb16c668f3a836ecb58afd0d8764478e1c3744870c0c039f286dd91","38f6da5b6f318c33e18dd7c983cab3fe52f510c9a2573948fb13f012e01b1ba6","e61062cf47b67f1a1968f7d150da3aea7b77a9fd5ebce90301c3e0180ca30ab4","c55ae709f94155174ff63647edd2a7e3acbd02a2909aa2541569e8b8bac9fc40","530e5c7e4f74267b7800f1702cf0c576282296a960acbdb2960389b2b1d0875b","1c483cc60a58a0d4c9a068bdaa8d95933263e6017fbea33c9f99790cf870f0a8","07863eea4f350458f803714350e43947f7f73d1d67a9ddf747017065d36b073a","d5f1bbd44ba4f63d8a01fff5e1edc1c1fb50e9caa48a4fa48298a4485d6ff75c","4d2b263907b8c03c5b2df90e6c1f166e9da85bd87bf439683f150afc91fce7e7","c70e38e0f30b7c0542af9aa7e0324a23dd2b0c1a64e078296653d1d3b36fa248","d12680e217215b37094868d491d00196e80f270ce47e5a4bc50269945ae5554d","396c2c14fa408707235d761a965bd84ce3d4fc3117c3b9f1404d6987d98a30d6","5866f85b79bae844211df93770e10e68298d934f2aed751e7a5cdf9ab59f76dc","06289b9873760aac77aed4035ea6c60b1e0879b8afe47a4530bc8522b9b804b1","6b5d7adb6b8a4b6e70ac805805da9cf421a4a852be62a0f39e8c692e7f2675d0","3e7ffc7dd797e5d44d387d0892bc288480493e73dcab9832812907d1389e4a98","db011ec9589fd51995cbd0765673838e38e6485a6559163cc53dcf508b480909","e1a4253f0cca15c14516f52a2ad36c3520b140b5dfb3b3880a368cd75d45d6d9","159af954f2633a12fdee68605009e7e5b150dbeb6d70c46672fd41059c154d53","4c2c4f53e8eedd970f8afa369d7371544fb6231bf95e659f8602e09abe74d5a5",{"version":"cb5a780979155e80a2184eb987cc411a95c9a1686019ade06918c312a0b7c9b2","affectsGlobalScope":true},"c2b5085f47e41d6940bbc5b0d3bd7cc0037c752efb18aecd243c9cf83ad0c0b7","3143a5add0467b83150961ecd33773b561a1207aec727002aa1d70333068eb1b","f87191b7fafe7a0edad375710d99f900e49cef560b66bf309cf3f8e1b7177126","586af7d2abe2f9d59c5e757c370087d6c6baea81b033250f43b8df808d6dfb33",{"version":"1a048ff164b8d9609f5de3139d4e37f6e8a82af82087ac414b9208f52ef8aac7","affectsGlobalScope":true},"3111079f3cb5f2b9c812ca3f46161562bce5bfb355e915f46ed46c41714dc1c3","e7bee4a6d9bb78afa390b25e0ce97a2f94787a1eb17f0a16e732dcbebba3f3ee","b32b6b16cb0bda68199582ad6f22242d07ee75fac9b1f28a98cd838afc5eea45","4441ee4119824bfaebc49308559edd7545978f9cb41a40f115074e1031dde75f",{"version":"60693a88462d0e97900123b5bf7c73e146ce0cc94da46a61fe6775b430d2ff05","affectsGlobalScope":true},{"version":"588c69eda58b9202676ec7ca11a72c3762819b46a0ed72462c769846153c447c","affectsGlobalScope":true},"ae064ed4f855716b7ff348639ddcd6a6d354a72fae82f506608a7dc9266aa24c","92f019c55b21c939616f6a48f678e714ac7b109444cbbf23ad69310ce66ecbdc","bba259efdf9ab95e0c7d3cc8e99250f56bb6b31d6129efdf733ca4eb1d01feea","499b7544062cf44fab253daeaea8ba28877d9e7ff4149246b1f0154d1c9ed535","139fd681eff7771a38d0c025d13c7a11c5474f6aab61e01c41511d71496df173","f614c3f61e46ccc2cb58702d5a158338ea57ee09099fde5db4cfc63ed0ce4d74","44e42ed6ec9c4451ebe89524e80ac8564e9dd0988c56e6c58f393c810730595d","a504c109b872b0e653549bd258eb06584c148c98d79406c7516995865a6d5089","155865f5f76db0996cd5e20cc5760613ea170ee5ad594c1f3d76fcaa05382161","e92852d673c836fc64e10c38640abcd67c463456e5df55723ac699b8e6ab3a8a","4455c78d226d061b1203c7614c6c6eb5f4f9db5f00d44ff47d0112de8766fbc4",{"version":"ec369bb9d97c4dc09dd2a4093b7ca3ba69ad284831fccac8a1977785e9e38ce5","affectsGlobalScope":true},"4465a636f5f6e9665a90e30691862c9e0a3ac2edc0e66296704f10865e924f2a","9af781f03d44f5635ed7844be0ce370d9d595d4b4ec67cad88f0fac03255257e","f9fd4c3ef6de27fa0e256f4e75b61711c4be05a3399f7714621d3edc832e36b0","e49290b7a927995c0d7e6b2b9c8296284b68a9036d9966531de65185269258d7","aa95cc73ea5315e4f6fc8c6db43d49e3b7de3780cae20a4f1319032809013038","874ca809b79276460011480a2829f4c8d4db29416dd411f71efbf8f497f0ac09","6c903bceaf3f3bc04f2d4c7dcd89ce9fb148b3ba0a5f5408d8f6de2b7eecc7ea","504d049d9e550a65466b73ca39da6469ab41786074ea1d16d37c8853f9f6ab2e","23a28f834a078986bbf58f4e3705956983ff81c3c2493f3db3e5f0e8a9507779","4febdf7f3ec92706c58e0b4e8159cd6de718284ef384260b07c9641c13fc70ce",{"version":"bf241ed073916ec9e21a3c138936edd444b6787d874844c0d05fc00a8f109d19","affectsGlobalScope":true},"7335933d9f30dcfd2c4b6080a8b78e81912a7fcefb1dafccb67ca4cb4b3ac23d","a6bfe9de9adef749010c118104b071d14943802ff0614732b47ce4f1c3e383cd","4c3d0e10396646db4a1e917fb852077ee77ae62e512913bef9cccc2bb0f8bd0e","3b220849d58140dcc6718f5b52dcd29fdb79c45bc28f561cbd29eb1cac6cce13","0ee22fce41f7417a24c808d266e91b850629113c104713a35854393d55994beb","22d1b1d965baba05766613e2e6c753bb005d4386c448cafd72c309ba689e8c24",{"version":"2708349d5a11a5c2e5f3a0765259ebe7ee00cdcc8161cb9990cb4910328442a1","affectsGlobalScope":true},"c6c0bd221bb1e94768e94218f8298e47633495529d60cae7d8da9374247a1cf5","a1b36a1f91a54daf2e89e12b834fa41fb7338bc044d1f08a80817efc93c99ee5","8bb4a5b632dd5a868f3271750895cb61b0e20cff82032d87e89288faee8dd6e2","0c1aabfd9fb1818afb2e798f91f669edafce59cd7e3423d25b1cfccfaaf2c403","017de6fdabea79015d493bf71e56cbbff092525253c1d76003b3d58280cd82a0","ab9ea2596cb7800bd79d1526930c785606ec4f439c275adbca5adc1ddf87747d","aee8faa433dde04beedb779b3329456a286a966462d666c138c19113ce78c79e","b7e9c39f7edd1ecd2c3d73b753213a0834144d82ac2a67230c1d291d25430a2e","4e693235d606287d6b5a4e7d572f190862b93ea4a28df8a63fc328aa8becdc9d","e58d1ea2fc84c9c03742b4f56449b7d4602c8c4deb4f0e57c619bab35bbbbf81","d82bc1f8fe8eef55aa741373da68b80a8503228c9aa0ec46bdd38fd7e0c02a18","d7c7f8a461326507d90d0888efff0c4011a5e69eb08ccb990232aa22334e4dd6","5af5ebe8c9b84f667cd047cfcf1942d53e3b369dbd63fbea2a189bbf381146c6","27deb39ac0921db739b503407dc9aa93a546b015c06738bc8b66bdf0ae593c7c","eff5b8bdfe94c0a174484a6de01e802fb66f99f8737a20e4fba4df05c2f24cea","52fa3a4f47e30ef266dbda3b69821fe5811be4faad2b266586090d8b4806342e","5cb6f9ea4a097094fe624c3513111292690e39e83167a412f8912807be71ca65","fa461c83b2adc6b33997a95335d19723bddd4d7aaff41cac6f9f817e3c3ae730","d9eed4a308aeb32babee0600d21c3a3ba8452c89e8a4916e5460b45da147c33c","fc9bdd9b3d8fb59c913cb3b8dea0d79b38dfe9331ef07e1c6dc6bf363f061ad6","e647d13de80e1b6b4e1d94363ea6f5f8f77dfb95d562748b488a7248af25aabf","0c3c4ce6a1884610c99306719f59174d81808c69393c30119f9c2aef0449a2cb","219a25474e58a8161b242776856ec5f6960839b63e74809445e51cadbfc18096","16a6f76f6507cc76012cfd3954136a41a58db595231c2f9bfaf35eca6b25346c","bef94eba81ae2c09059c0d9abdb1ae1b7090314f70550f3c8cd5d7ead4a4f212","48b787ad458be9b524fa5fdfef34f68798074132d4b8cfe6a6fe9c2bf334c532","37280465f8f9b2ea21d490979952b18b7f4d1f0d8fab2d627618fb2cfa1828e3","3f3f85dc43cb93c5a797f1ff0fa948d0e17843a443ae11a20cc032ccdf1b9997","9252778562c2587c88775bf9e8a474a2ac51d562fff90b0ab240b51d0248f16d","869010bc679df668137cb3b78a3cb8196e97acf285208a57f6156ceac894a2f7","bcae62618c23047e36d373f0feac5b13f09689e4cd08e788af13271dbe73a139","29a99d2e57b3e08a997cbc2397bdb251441a545306a74b95ffedc5f03d9bc6b7","5ae003688265a1547bbcb344bf0e26cb994149ac2c032756718e9039302dfac8","c5f2cdab01270375da7f5c3ae12157d529938533f0145fa0df91735a96cc1a65","53522a2c33f9196ef05e72118a009c6ae717265e5b0eac3ee6bdc8305e8dde2e","9da2c58a27fdce871c2eac09d5172b04248bb86ada9b0d10e8b3dfa8470b8dd3","5c317403752871838140f70879b09509e37422e92e7364b4363c7b179310ee44","7b270dc53f35dd0b44bfa619ad4d351fffd512e14053c3688323ed007eda3f6d","6d4e928f232ade7221cffc6e4332ec935baa176415c9bf5d12111bb883a247d2","e86ad029224d4f2af3e188be8b5e9badf8c7083247572069bac7bd2193131fc7","057cac07c7bc5abdcfba44325fcea4906dff7919a3d7d82d4ec40f8b4c90cf2f","38aa389acf91d77db5a4f8e26e713ed53dc832ed5573def9cd20acd9ba97c1fe","e56784be93954f1f86d4dd3ac61b4c9727e75864baf123a1b584b970baed4ba0","b9115605f72b65a662723020b2a1eb696c375a5803d6b401dc01fcbfe49ece90","f1afe721e73e468fa292f5fe9ed48955fc6c53ef8b62e9783446b563e0b66fc4","4d250e905299144850c6f8e74dad1ee892d847643bacf637e89adcce013f0700","54b7035573d88f8e94019d00067b3999bf97f4181e6fc3f0573e9cfcb68d0b98","ed3e176bc769725ebc1d93f1d6890fc3d977b9155ae5d03be96ec2d49b303370","7933769d84f5ae16546aef06537ca578f1c8d7cca0708452a00613050ac1f265","cc5c913c4716a0d1563b2a63a7c4dc2fa81b7d7bc58489c79896d69b27e978cd","f194cdeb1caaf80e625f4fad340a9434b2b83786028dcc5ea6f3c459cc7789a0","f8ce447bbda4f75da74cecd866cc1ff9bdde62189ac9d8dc14a16c48b3d702fa","0fda680cf2b072a930dfe98dcd8f5c1da8f9fcac4cac37768ee318ef40145c8c","7f5a6eac3d3d334e2f2eba41f659e9618c06361958762869055e22219f341554","6f996f44113b76a9960d3fad280f4f671115c5e971356d1dbb4d1b000af8b3b3","67f2cd6e208e68fdfa366967d1949575df6ccf90c104fc9747b3f1bdb69ad55a","f99ab9dffe6281c9b6df9ae9d8584d18eabf2107572bbd8fa5c83c8afe531af8","4fc9939c86a7d80ab6a361264e5666336d37e080a00d831d9358ad83575267da","f4ba385eedea4d7be1feeeac05aaa05d6741d931251a85ab48e0610271d001ce","fc79932b9aa710f025b89bf8d8329d99080286e5e079a7d5a529236e9f5dd69e","6646d9075e3e0eedb02c9d03bffef54c8bbeb601d27eed46f143aba435bac37d","0dec72b4c5c4bb149750fef4fc26bdae8f410de941ee766c953f5ac77381d690","8f2644578a3273f43fd700803b89b842d2cd09c1fba2421db45737357e50f5b1","f5405fb679a467cb979f8744940b22b7bc3a0bcbe648c3910d98de3188d42a78","68969a0efd9030866f60c027aedbd600f66ea09e1c9290853cc24c2dcc92000f","639f94fe145a72ce520d3d7b9b3b6c9049624d90cbf85cff46fb47fb28d1d8fe","8327a51d574987a2b0f61ea40df4adddf959f67bc48c303d4b33d47ba3be114a","991fd5ebf9f30ffa17cae6faeae6a838d3d91bdcdd419bce358dc99b8e5b0ad0","51b4ab145645785c8ced29238192f870dbb98f1968a7c7ef2580cd40663b2940","589713fefe7282fd008a2672c5fbacc4a94f31138bae6a03db2c7b5453dc8788","786691c952fe3feac79aca8f0e7e580d95c19afc8a4c6f8765e99fb756d8d9d7","4c348f139d006057ce9384e60b4ee1ce06bee5c16e19ff70f293ad88d5893386","e9d33b2549b5779b6cad92cb6a370c6c106cc12dc80da1cc199e2cb3a715bf38","62b753ed351fba7e0f6b57103529ce90f2e11b949b8fc69c39464fe958535c25","21e1fa3e5c95c61161a1ea2d819972e3b7e916a58571f8f9828b8a6c32e641ea","b63519c0b5db6d56337c5245fa458b3d3017c204ca7be0c220a2fb967526ea79","3d60c1c9c93650dafc5df38f26a3e3d5339280e2a1fea1ecac5661d8ed02ae52","7107b57a41ccc036da5fd0959fadff6f3ed5b8b91358613bcccd9c593b63c679","dc3b172ee27054dbcedcf5007b78c256021db936f6313a9ce9a3ecbb503fd646","ac65f04c2df0218cb8e54f012745cbfcc3c0e67c1f6b1e557d88842bbb72e2db","cc957354aa3c94c9961ebf46282cfde1e81d107fc5785a61f62c67f1dd3ac2eb","ac65f04c2df0218cb8e54f012745cbfcc3c0e67c1f6b1e557d88842bbb72e2db","a2e86df4db576d80704e25293cec6f20fc6101a11f4747440e2eef58fb3c860c","a2e86df4db576d80704e25293cec6f20fc6101a11f4747440e2eef58fb3c860c","ac65f04c2df0218cb8e54f012745cbfcc3c0e67c1f6b1e557d88842bbb72e2db","93de1c6dab503f053efe8d304cb522bb3a89feab8c98f307a674a4fae04773e9","ac65f04c2df0218cb8e54f012745cbfcc3c0e67c1f6b1e557d88842bbb72e2db","6704f0b54df85640baaeebd86c9d4a1dbb661d5a4d57a75bc84162f562f6531d","9d255af1b09c6697089d3c9bf438292a298d8b7a95c68793c9aae80afc9e5ca7",{"version":"c3bc5d095c3c22fd20b5a6550b9c9a6d56c3ffbb87ef057ccce7764b6bed4428","affectsGlobalScope":true},{"version":"63e2182615c513e89bb8a3e749d08f7c379e86490fcdbf6d35f2c14b3507a6e8","affectsGlobalScope":true},{"version":"f4c0db3a49cea9babd5d224ba14243a6a6119bf65a65198994033aaea3a60a71","affectsGlobalScope":true},"6d829824ead8999f87b6df21200df3c6150391b894b4e80662caa462bd48d073",{"version":"64d4b35c5456adf258d2cf56c341e203a073253f229ef3208fc0d5020253b241","affectsGlobalScope":true},"bee89e1eb6425eb49894f3f25e4562dc2564e84e5aa7610b7e13d8ecddf8f5db","dca41e86e89dfb2e85e6935260250f02eb6683b86c2fa16bec729ddd1bcd9b4b","6670e71d65610bd7b64aac5fdf58c21c545f7fa31e060f02a0dcd91763831eb8","e050a0afcdbb269720a900c85076d18e0c1ab73e580202a2bf6964978181222a","6de408de17cb0e3fa3a5e3d0f79bd104848d98dbfa72e92fddfa1a4aa3d8393c","bf88ef4208a770ca39a844b182b3695df536326ea566893fdc5b8418702a331e","8b06ac3faeacb8484d84ddb44571d8f410697f98d7bfa86c0fda60373a9f5215","7eb06594824ada538b1d8b48c3925a83e7db792f47a081a62cf3e5c4e23cf0ee","f5638f7c2f12a9a1a57b5c41b3c1ea7db3876c003bab68e6a57afd6bcc169af0","6c1e688f95fcaf53b1e41c0fdadf2c1cfc96fa924eaf7f9fdb60f96deb0a4986","0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2","c085e9aa62d1ae1375794c1fb927a445fa105fed891a7e24edbb1c3300f7384a","f315e1e65a1f80992f0509e84e4ae2df15ecd9ef73df975f7c98813b71e4c8da","5b9586e9b0b6322e5bfbd2c29bd3b8e21ab9d871f82346cb71020e3d84bae73e","3e70a7e67c2cb16f8cd49097360c0309fe9d1e3210ff9222e9dac1f8df9d4fb6","ab68d2a3e3e8767c3fba8f80de099a1cfc18c0de79e42cb02ae66e22dfe14a66","6d969939c4a63f70f2aa49e88da6f64b655c8e6799612807bef41ccff6ea0da9",{"version":"240c702fb4b3bd54d83ee167d80fa7f0cd7300fef7eea0b32cef33129740893c","affectsGlobalScope":true},"ba600bf38b5c1a5dffa1b99dd7a783549082bbba3b4fe9497eaaf5e4c1764b20","ae8cd6af37275eac75f5369cdb5f01063bcf1f48d74cb434303ee50ec446acfe","2518830a2fda9c272ba48798d0e7b857037443b06594db8e42c87e86944ee9e4","95c1cf650d16b197525b5bfdf8dd7abba0a49d99ddb12a4ba66466a8a6903e49","1fe0aabe758d56ad72495d6e6c7b6ae75619faaeaaf03f0ddf1948eea4cfac84","bbc57966c8c48ee78fd58aadb893784025be056ae538ae22d1e83c502a987e68","5e5d6f6697e378b0660b567866bf67d099d0ea754f8810c0dabe737805f5cf03","99ab49d4732fdc98cf5c495925e65e796544cb4086fe42afc235dfc02bcf2351","af8339d509c40da075088e544c28ed37b519876e5c4d36a48644ebfb3c6ae6c8","d393adc32e520d4274bb4c3dfdcdb342b806a230b66ef0f82b35bffbc4aa2590","c26af7eaedb4f710984634e419ab15e54e5bb99a0b3cae71188c2fff572276de","38b58ef018d0aeee42ef74c42978bb5805503233fdeeb82cd2aed2199fb0d013","3b6040253231d44e6778eb6861cc86c1758562e77783d21b7ecbc73322ded539","cc256fd958b33576ed32c7338c64adb0d08fc0c2c6525010202fab83f32745da","fd0589ca571ad090b531d8c095e26caa53d4825c64d3ff2b2b1ab95d72294175",{"version":"669843ecafb89ae1e944df06360e8966219e4c1c34c0d28aa2503272cdd444a7","affectsGlobalScope":true},"96d14f21b7652903852eef49379d04dbda28c16ed36468f8c9fa08f7c14c9538","675e702f2032766a91eeadee64f51014c64688525da99dccd8178f0c599f13a8","458111fc89d11d2151277c822dfdc1a28fa5b6b2493cf942e37d4cd0a6ee5f22","19c816167e076e7c24f074389c6cf3ed87bdbb917d1ea439ca281f9d26db2439","187119ff4f9553676a884e296089e131e8cc01691c546273b1d0089c3533ce42","febf0b2de54781102b00f61653b21377390a048fbf5262718c91860d11ff34a6","98f9d826db9cd99d27a01a59ee5f22863df00ccf1aaf43e1d7db80ebf716f7c3","0aaef8cded245bf5036a7a40b65622dd6c4da71f7a35343112edbe112b348a1e","00baffbe8a2f2e4875367479489b5d43b5fc1429ecb4a4cc98cfc3009095f52a","dcd91d3b697cb650b95db5471189b99815af5db2a1cd28760f91e0b12ede8ed5","3c92b6dfd43cc1c2485d9eba5ff0b74a19bb8725b692773ef1d66dac48cda4bd","3cf0d343c2276842a5b617f22ba82af6322c7cfe8bb52238ffc0c491a3c21019","df996e25faa505f85aeb294d15ebe61b399cf1d1e49959cdfaf2cc0815c203f9","30abc554c7ad13063a02ddd06757929b34357aea1f6fcf4ca39114cb0fc19384","8841e2aa774b89bd23302dede20663306dc1b9902431ac64b24be8b8d0e3f649","209e814e8e71aec74f69686a9506dd7610b97ab59dcee9446266446f72a76d05","6fa0008bf91a4cc9c8963bace4bba0bd6865cbfa29c3e3ccc461155660fb113a","2b8264b2fefd7367e0f20e2c04eed5d3038831fe00f5efbc110ff0131aab899b","d88a5e779faf033be3d52142a04fbe1cb96009868e3bbdd296b2bc6c59e06c0e","2b93035328f7778d200252681c1d86285d501ed424825a18f81e4c3028aa51d9","2ac9c8332c5f8510b8bdd571f8271e0f39b0577714d5e95c1e79a12b2616f069","42c21aa963e7b86fa00801d96e88b36803188018d5ad91db2a9101bccd40b3ff","d31eb848cdebb4c55b4893b335a7c0cca95ad66dee13cbb7d0893810c0a9c301","b9f96255e1048ed2ea33ec553122716f0e57fc1c3ad778e9aa15f5b46547bd23","7a9e0a564fee396cacf706523b5aeed96e04c6b871a8bebefad78499fbffc5bc","906c751ef5822ec0dadcea2f0e9db64a33fb4ee926cc9f7efa38afe5d5371b2a","5387c049e9702f2d2d7ece1a74836a14b47fbebe9bbeb19f94c580a37c855351","c68391fb9efad5d99ff332c65b1606248c4e4a9f1dd9a087204242b56c7126d6","e9cf02252d3a0ced987d24845dcb1f11c1be5541f17e5daa44c6de2d18138d0c","e8b02b879754d85f48489294f99147aeccc352c760d95a6fe2b6e49cd400b2fe","9f6908ab3d8a86c68b86e38578afc7095114e66b2fc36a2a96e9252aac3998e0","0eedb2344442b143ddcd788f87096961cd8572b64f10b4afc3356aa0460171c6","71405cc70f183d029cc5018375f6c35117ffdaf11846c35ebf85ee3956b1b2a6","c68baff4d8ba346130e9753cefe2e487a16731bf17e05fdacc81e8c9a26aae9d","2cd15528d8bb5d0453aa339b4b52e0696e8b07e790c153831c642c3dea5ac8af","479d622e66283ffa9883fbc33e441f7fc928b2277ff30aacbec7b7761b4e9579","ade307876dc5ca267ca308d09e737b611505e015c535863f22420a11fffc1c54","f8cdefa3e0dee639eccbe9794b46f90291e5fd3989fcba60d2f08fde56179fb9","86c5a62f99aac7053976e317dbe9acb2eaf903aaf3d2e5bb1cafe5c2df7b37a8","2b300954ce01a8343866f737656e13243e86e5baef51bd0631b21dcef1f6e954","a2d409a9ffd872d6b9d78ead00baa116bbc73cfa959fce9a2f29d3227876b2a1","b288936f560cd71f4a6002953290de9ff8dfbfbf37f5a9391be5c83322324898","61178a781ef82e0ff54f9430397e71e8f365fc1e3725e0e5346f2de7b0d50dfa","6a6ccb37feb3aad32d9be026a3337db195979cd5727a616fc0f557e974101a54","c649ea79205c029a02272ef55b7ab14ada0903db26144d2205021f24727ac7a3","38e2b02897c6357bbcff729ef84c736727b45cc152abe95a7567caccdfad2a1d","d6610ea7e0b1a7686dba062a1e5544dd7d34140f4545305b7c6afaebfb348341","3dee35db743bdba2c8d19aece7ac049bde6fa587e195d86547c882784e6ba34c","b15e55c5fa977c2f25ca0b1db52cfa2d1fd4bf0baf90a8b90d4a7678ca462ff1","f41d30972724714763a2698ae949fbc463afb203b5fa7c4ad7e4de0871129a17","843dd7b6a7c6269fd43827303f5cbe65c1fecabc30b4670a50d5a15d57daeeb9","f06d8b8567ee9fd799bf7f806efe93b67683ef24f4dea5b23ef12edff4434d9d","6017384f697ff38bc3ef6a546df5b230c3c31329db84cbfe686c83bec011e2b2","e1a5b30d9248549ca0c0bb1d653bafae20c64c4aa5928cc4cd3017b55c2177b0","a593632d5878f17295bd53e1c77f27bf4c15212822f764a2bfc1702f4b413fa0","a868a534ba1c2ca9060b8a13b0ffbbbf78b4be7b0ff80d8c75b02773f7192c29","da7545aba8f54a50fde23e2ede00158dc8112560d934cee58098dfb03aae9b9d","34baf65cfee92f110d6653322e2120c2d368ee64b3c7981dff08ed105c4f19b0","a1a261624efb3a00ff346b13580f70f3463b8cdcc58b60f5793ff11785d52cab","b0d10e46cfe3f6c476b69af02eaa38e4ccc7430221ce3109ae84bb9fb8282298","fab58e600970e66547644a44bc9918e3223aa2cbd9e8763cec004b2cfb48827e","bc81aff061c53a7140270555f4b22da4ecfe8601e8027cf5aa175fbdc7927c31","70e9a18da08294f75bf23e46c7d69e67634c0765d355887b9b41f0d959e1426e","e9eb1b173aa166892f3eddab182e49cfe59aa2e14d33aedb6b49d175ed6a3750"],"options":{"downlevelIteration":true,"esModuleInterop":true,"experimentalDecorators":true,"importHelpers":true,"jsx":2,"module":99,"noEmitHelpers":true,"noFallthroughCasesInSwitch":true,"outDir":"./dist-es","preserveConstEnums":true,"removeComments":true,"rootDir":"./src","strict":true,"target":7,"useUnknownInCatchVariables":false},"fileIdsList":[[138],[138,144],[140],[138,153,154],[155],[138,139,140,145,146,147,148,149,150,151,152,156,157,158,159,160,161,162,163,164,165,166,167],[38,45,46,47],[45,48],[38,42],[38,48],[36,37,46,47,48,49],[80,94,96],[98],[43,44,45,100],[43,45],[102,104,105],[102,103],[107],[36],[39,109],[109],[112],[109,110,111],[109,110,111,112,113],[40],[42,43,45],[98,99],[115],[115,118],[115,116,118,119],[44,117],[95],[35,41],[38],[38,121,122,123],[35,39,40,41,42,43,44,45,50,97,98,99,100,101,103,106,107,108,114,117,120,124,125,126,127,128,129,130,131,132,133,134,136,137],[36,39,40,44],[101],[42,44,103],[42,43],[42,107],[44,98,99],[66,80,94,96,127],[43,100,133,134],[42,66,67,94,101,127,132,134,135],[42],[35],[80,94,138],[141,142,143],[80,138],[173,174,176,179,181],[173],[173,176],[183],[66,94],[188,190],[187,188,189],[64,94],[194],[195],[201,204],[63,89,94,218,219,221],[220],[223,225,226,227,228,229,230,231,232,233,234,235],[223,224,226,227,228,229,230,231,232,233,234,235],[224,225,226,227,228,229,230,231,232,233,234,235],[223,224,225,227,228,229,230,231,232,233,234,235],[223,224,225,226,228,229,230,231,232,233,234,235],[223,224,225,226,227,229,230,231,232,233,234,235],[223,224,225,226,227,228,230,231,232,233,234,235],[223,224,225,226,227,228,229,231,232,233,234,235],[223,224,225,226,227,228,229,230,232,233,234,235],[223,224,225,226,227,228,229,230,231,233,234,235],[223,224,225,226,227,228,229,230,231,232,234,235],[223,224,225,226,227,228,229,230,231,232,233,235],[223,224,225,226,227,228,229,230,231,232,233,234],[51],[53],[54,59],[55,63,64,71,80],[55,56,63,71],[57,87],[58,59,64,72],[59,80],[60,61,63,71],[61],[62,63],[63],[63,64,65,80,86],[64,65],[63,66,71,80,86],[63,64,66,67,71,80,83,86],[66,68,80,83,86],[51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93],[63,69],[70,86],[61,63,71,80],[72],[73],[53,74],[75,85],[76],[77],[63,78],[78,79,87,89],[63,80],[81],[82],[71,80,83],[84],[71,85],[66,77,86],[87],[80,88],[89],[90],[63,65,80,86,89,91],[80,92],[241,280],[241,265,280],[280],[241],[241,266,280],[241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278,279],[266,280],[63,66,68,71,80,83,86,92,94],[284],[53,94,197,203],[201],[198,202],[207],[206,207],[206],[206,207,208,210,211,214,215,216,217],[207,211],[206,207,208,210,211,212,213],[206,211],[211,215],[207,208,209],[208],[206,207,211],[200],[199],[31],[31,32],[31,33,170],[31,34,169],[31,168]],"referencedMap":[[139,1],[140,1],[145,2],[146,1],[148,3],[157,1],[153,1],[155,4],[156,5],[154,1],[168,6],[48,7],[49,8],[46,9],[47,10],[50,11],[97,12],[99,13],[101,14],[100,15],[106,16],[104,17],[108,18],[39,19],[110,20],[111,21],[113,22],[112,23],[114,24],[109,25],[107,26],[115,27],[116,28],[119,29],[120,30],[118,31],[96,32],[42,33],[121,34],[122,34],[124,35],[123,34],[138,36],[45,37],[125,38],[127,39],[128,40],[129,41],[130,42],[131,12],[132,12],[133,43],[135,44],[136,45],[41,46],[44,26],[137,47],[142,48],[144,49],[143,50],[182,51],[176,52],[174,52],[179,53],[177,52],[181,52],[184,54],[185,54],[186,55],[191,56],[190,57],[192,58],[193,58],[195,59],[196,60],[205,61],[220,62],[221,63],[224,64],[225,65],[223,66],[226,67],[227,68],[228,69],[229,70],[230,71],[231,72],[232,73],[233,74],[234,75],[235,76],[51,77],[53,78],[54,79],[55,80],[56,81],[57,82],[58,83],[59,84],[60,85],[61,86],[62,87],[63,88],[64,89],[65,90],[66,91],[67,92],[68,93],[94,94],[69,95],[70,96],[71,97],[72,98],[73,99],[74,100],[75,101],[76,102],[77,103],[78,104],[79,105],[80,106],[81,107],[82,108],[83,109],[84,110],[85,111],[86,112],[87,113],[88,114],[89,115],[90,116],[91,117],[92,118],[265,119],[266,120],[241,121],[244,121],[263,119],[264,119],[254,119],[253,122],[251,119],[246,119],[259,119],[257,119],[261,119],[245,119],[258,119],[262,119],[247,119],[248,119],[260,119],[242,119],[249,119],[250,119],[252,119],[256,119],[267,123],[255,119],[243,119],[280,124],[274,123],[276,125],[275,123],[268,123],[269,123],[271,123],[273,123],[277,125],[278,125],[270,125],[272,125],[283,126],[285,127],[204,128],[202,129],[203,130],[208,131],[217,132],[207,133],[218,134],[213,135],[214,136],[212,137],[216,138],[210,139],[209,140],[215,141],[211,132],[201,142],[200,143],[32,144],[33,145],[171,146],[34,144],[170,147],[169,148]],"exportedModulesMap":[[139,1],[140,1],[145,2],[146,1],[148,3],[157,1],[153,1],[155,4],[156,5],[154,1],[168,6],[48,7],[49,8],[46,9],[47,10],[50,11],[97,12],[99,13],[101,14],[100,15],[106,16],[104,17],[108,18],[39,19],[110,20],[111,21],[113,22],[112,23],[114,24],[109,25],[107,26],[115,27],[116,28],[119,29],[120,30],[118,31],[96,32],[42,33],[121,34],[122,34],[124,35],[123,34],[138,36],[45,37],[125,38],[127,39],[128,40],[129,41],[130,42],[131,12],[132,12],[133,43],[135,44],[136,45],[41,46],[44,26],[137,47],[142,48],[144,49],[143,50],[182,51],[176,52],[174,52],[179,53],[177,52],[181,52],[184,54],[185,54],[186,55],[191,56],[190,57],[192,58],[193,58],[195,59],[196,60],[205,61],[220,62],[221,63],[224,64],[225,65],[223,66],[226,67],[227,68],[228,69],[229,70],[230,71],[231,72],[232,73],[233,74],[234,75],[235,76],[51,77],[53,78],[54,79],[55,80],[56,81],[57,82],[58,83],[59,84],[60,85],[61,86],[62,87],[63,88],[64,89],[65,90],[66,91],[67,92],[68,93],[94,94],[69,95],[70,96],[71,97],[72,98],[73,99],[74,100],[75,101],[76,102],[77,103],[78,104],[79,105],[80,106],[81,107],[82,108],[83,109],[84,110],[85,111],[86,112],[87,113],[88,114],[89,115],[90,116],[91,117],[92,118],[265,119],[266,120],[241,121],[244,121],[263,119],[264,119],[254,119],[253,122],[251,119],[246,119],[259,119],[257,119],[261,119],[245,119],[258,119],[262,119],[247,119],[248,119],[260,119],[242,119],[249,119],[250,119],[252,119],[256,119],[267,123],[255,119],[243,119],[280,124],[274,123],[276,125],[275,123],[268,123],[269,123],[271,123],[273,123],[277,125],[278,125],[270,125],[272,125],[283,126],[285,127],[204,128],[202,129],[203,130],[208,131],[217,132],[207,133],[218,134],[213,135],[214,136],[212,137],[216,138],[210,139],[209,140],[215,141],[211,132],[201,142],[200,143],[32,144],[33,145],[171,146],[34,144],[170,147],[169,148]],"semanticDiagnosticsPerFile":[199,139,140,145,146,147,148,149,150,151,152,157,158,153,155,156,154,159,160,168,161,162,163,164,165,166,167,35,37,48,49,46,47,36,50,97,99,101,100,102,106,104,105,98,108,39,110,111,113,112,114,109,107,115,116,119,120,118,96,42,121,122,38,124,123,138,40,45,125,126,43,117,127,128,129,130,131,132,133,103,135,136,95,134,41,44,137,141,142,144,143,172,182,176,175,174,173,179,177,178,181,180,184,185,183,186,191,187,190,188,192,193,194,195,196,205,220,221,189,222,224,225,223,226,227,228,229,230,231,232,233,234,235,236,237,51,53,54,55,56,57,58,59,60,61,62,63,64,65,52,93,66,67,68,94,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,238,239,240,265,266,241,244,263,264,254,253,251,246,259,257,261,245,258,262,247,248,260,242,249,250,252,256,267,255,243,280,279,274,276,275,268,269,271,273,277,278,270,272,281,219,282,283,284,285,198,204,197,202,203,208,217,206,207,218,213,214,212,216,210,209,215,211,201,200,31,6,7,9,8,2,10,11,12,13,14,15,16,17,3,4,21,18,19,20,22,23,24,5,25,26,27,28,29,1,30,32,33,171,34,170,169]},"version":"4.9.5"} \ No newline at end of file diff --git a/node_modules/@aws-sdk/core/tsconfig.types.json b/node_modules/@aws-sdk/core/tsconfig.types.json deleted file mode 100644 index 6cdf9f52..00000000 --- a/node_modules/@aws-sdk/core/tsconfig.types.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "compilerOptions": { - "baseUrl": ".", - "declarationDir": "dist-types", - "rootDir": "src" - }, - "extends": "../../tsconfig.types.json", - "include": ["src/"] -} diff --git a/node_modules/@aws-sdk/core/tsconfig.types.tsbuildinfo b/node_modules/@aws-sdk/core/tsconfig.types.tsbuildinfo deleted file mode 100644 index 60ff4563..00000000 --- a/node_modules/@aws-sdk/core/tsconfig.types.tsbuildinfo +++ /dev/null @@ -1 +0,0 @@ -{"program":{"fileNames":["../../node_modules/typescript/lib/lib.es5.d.ts","../../node_modules/typescript/lib/lib.es2015.d.ts","../../node_modules/typescript/lib/lib.es2016.d.ts","../../node_modules/typescript/lib/lib.es2017.d.ts","../../node_modules/typescript/lib/lib.es2018.d.ts","../../node_modules/typescript/lib/lib.dom.d.ts","../../node_modules/typescript/lib/lib.dom.iterable.d.ts","../../node_modules/typescript/lib/lib.es2015.core.d.ts","../../node_modules/typescript/lib/lib.es2015.collection.d.ts","../../node_modules/typescript/lib/lib.es2015.generator.d.ts","../../node_modules/typescript/lib/lib.es2015.iterable.d.ts","../../node_modules/typescript/lib/lib.es2015.promise.d.ts","../../node_modules/typescript/lib/lib.es2015.proxy.d.ts","../../node_modules/typescript/lib/lib.es2015.reflect.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.d.ts","../../node_modules/typescript/lib/lib.es2015.symbol.wellknown.d.ts","../../node_modules/typescript/lib/lib.es2016.array.include.d.ts","../../node_modules/typescript/lib/lib.es2017.object.d.ts","../../node_modules/typescript/lib/lib.es2017.sharedmemory.d.ts","../../node_modules/typescript/lib/lib.es2017.string.d.ts","../../node_modules/typescript/lib/lib.es2017.intl.d.ts","../../node_modules/typescript/lib/lib.es2017.typedarrays.d.ts","../../node_modules/typescript/lib/lib.es2018.asyncgenerator.d.ts","../../node_modules/typescript/lib/lib.es2018.asynciterable.d.ts","../../node_modules/typescript/lib/lib.es2018.intl.d.ts","../../node_modules/typescript/lib/lib.es2018.promise.d.ts","../../node_modules/typescript/lib/lib.es2018.regexp.d.ts","../../node_modules/typescript/lib/lib.es2020.bigint.d.ts","../../node_modules/typescript/lib/lib.es2020.intl.d.ts","../../node_modules/typescript/lib/lib.esnext.intl.d.ts","./src/client/emitWarningIfUnsupportedVersion.ts","./src/client/index.ts","./src/protocols/coercing-serializers.ts","../../node_modules/@smithy/types/dist-types/abort.d.ts","../../node_modules/@smithy/types/dist-types/auth/auth.d.ts","../../node_modules/@smithy/types/dist-types/auth/HttpApiKeyAuth.d.ts","../../node_modules/@smithy/types/dist-types/identity/identity.d.ts","../../node_modules/@smithy/types/dist-types/endpoint.d.ts","../../node_modules/@smithy/types/dist-types/logger.d.ts","../../node_modules/@smithy/types/dist-types/uri.d.ts","../../node_modules/@smithy/types/dist-types/http.d.ts","../../node_modules/@smithy/types/dist-types/response.d.ts","../../node_modules/@smithy/types/dist-types/util.d.ts","../../node_modules/@smithy/types/dist-types/middleware.d.ts","../../node_modules/@smithy/types/dist-types/auth/HttpSigner.d.ts","../../node_modules/@smithy/types/dist-types/auth/IdentityProviderConfig.d.ts","../../node_modules/@smithy/types/dist-types/auth/HttpAuthScheme.d.ts","../../node_modules/@smithy/types/dist-types/auth/HttpAuthSchemeProvider.d.ts","../../node_modules/@smithy/types/dist-types/auth/index.d.ts","../../node_modules/@types/node/assert.d.ts","../../node_modules/@types/node/globals.d.ts","../../node_modules/@types/node/async_hooks.d.ts","../../node_modules/@types/node/buffer.d.ts","../../node_modules/@types/node/child_process.d.ts","../../node_modules/@types/node/cluster.d.ts","../../node_modules/@types/node/console.d.ts","../../node_modules/@types/node/constants.d.ts","../../node_modules/@types/node/crypto.d.ts","../../node_modules/@types/node/dgram.d.ts","../../node_modules/@types/node/dns.d.ts","../../node_modules/@types/node/domain.d.ts","../../node_modules/@types/node/events.d.ts","../../node_modules/@types/node/fs.d.ts","../../node_modules/@types/node/fs/promises.d.ts","../../node_modules/@types/node/http.d.ts","../../node_modules/@types/node/http2.d.ts","../../node_modules/@types/node/https.d.ts","../../node_modules/@types/node/inspector.d.ts","../../node_modules/@types/node/module.d.ts","../../node_modules/@types/node/net.d.ts","../../node_modules/@types/node/os.d.ts","../../node_modules/@types/node/path.d.ts","../../node_modules/@types/node/perf_hooks.d.ts","../../node_modules/@types/node/process.d.ts","../../node_modules/@types/node/punycode.d.ts","../../node_modules/@types/node/querystring.d.ts","../../node_modules/@types/node/readline.d.ts","../../node_modules/@types/node/repl.d.ts","../../node_modules/@types/node/stream.d.ts","../../node_modules/@types/node/string_decoder.d.ts","../../node_modules/@types/node/timers.d.ts","../../node_modules/@types/node/tls.d.ts","../../node_modules/@types/node/trace_events.d.ts","../../node_modules/@types/node/tty.d.ts","../../node_modules/@types/node/url.d.ts","../../node_modules/@types/node/util.d.ts","../../node_modules/@types/node/v8.d.ts","../../node_modules/@types/node/vm.d.ts","../../node_modules/@types/node/wasi.d.ts","../../node_modules/@types/node/worker_threads.d.ts","../../node_modules/@types/node/zlib.d.ts","../../node_modules/@types/node/globals.global.d.ts","../../node_modules/@types/node/index.d.ts","../../node_modules/@smithy/types/dist-types/transform/exact.d.ts","../../node_modules/@smithy/types/dist-types/externals-check/browser-externals-check.d.ts","../../node_modules/@smithy/types/dist-types/blob/blob-payload-input-types.d.ts","../../node_modules/@smithy/types/dist-types/crypto.d.ts","../../node_modules/@smithy/types/dist-types/checksum.d.ts","../../node_modules/@smithy/types/dist-types/command.d.ts","../../node_modules/@smithy/types/dist-types/client.d.ts","../../node_modules/@smithy/types/dist-types/connection/config.d.ts","../../node_modules/@smithy/types/dist-types/transfer.d.ts","../../node_modules/@smithy/types/dist-types/connection/manager.d.ts","../../node_modules/@smithy/types/dist-types/connection/pool.d.ts","../../node_modules/@smithy/types/dist-types/connection/index.d.ts","../../node_modules/@smithy/types/dist-types/eventStream.d.ts","../../node_modules/@smithy/types/dist-types/encode.d.ts","../../node_modules/@smithy/types/dist-types/endpoints/shared.d.ts","../../node_modules/@smithy/types/dist-types/endpoints/EndpointRuleObject.d.ts","../../node_modules/@smithy/types/dist-types/endpoints/ErrorRuleObject.d.ts","../../node_modules/@smithy/types/dist-types/endpoints/TreeRuleObject.d.ts","../../node_modules/@smithy/types/dist-types/endpoints/RuleSetObject.d.ts","../../node_modules/@smithy/types/dist-types/endpoints/index.d.ts","../../node_modules/@smithy/types/dist-types/extensions/checksum.d.ts","../../node_modules/@smithy/types/dist-types/extensions/defaultClientConfiguration.d.ts","../../node_modules/@smithy/types/dist-types/retry.d.ts","../../node_modules/@smithy/types/dist-types/extensions/retry.d.ts","../../node_modules/@smithy/types/dist-types/extensions/defaultExtensionConfiguration.d.ts","../../node_modules/@smithy/types/dist-types/extensions/index.d.ts","../../node_modules/@smithy/types/dist-types/identity/apiKeyIdentity.d.ts","../../node_modules/@smithy/types/dist-types/identity/awsCredentialIdentity.d.ts","../../node_modules/@smithy/types/dist-types/identity/tokenIdentity.d.ts","../../node_modules/@smithy/types/dist-types/identity/index.d.ts","../../node_modules/@smithy/types/dist-types/pagination.d.ts","../../node_modules/@smithy/types/dist-types/profile.d.ts","../../node_modules/@smithy/types/dist-types/serde.d.ts","../../node_modules/@smithy/types/dist-types/shapes.d.ts","../../node_modules/@smithy/types/dist-types/signature.d.ts","../../node_modules/@smithy/types/dist-types/stream.d.ts","../../node_modules/@smithy/types/dist-types/streaming-payload/streaming-blob-common-types.d.ts","../../node_modules/@smithy/types/dist-types/streaming-payload/streaming-blob-payload-input-types.d.ts","../../node_modules/@smithy/types/dist-types/streaming-payload/streaming-blob-payload-output-types.d.ts","../../node_modules/@smithy/types/dist-types/transform/type-transform.d.ts","../../node_modules/@smithy/types/dist-types/transform/client-method-transforms.d.ts","../../node_modules/@smithy/types/dist-types/transform/client-payload-blob-type-narrow.d.ts","../../node_modules/@smithy/types/dist-types/waiter.d.ts","../../node_modules/@smithy/types/dist-types/index.d.ts","../../node_modules/@smithy/smithy-client/dist-types/NoOpLogger.d.ts","../../node_modules/@smithy/smithy-client/dist-types/client.d.ts","../../node_modules/@smithy/util-stream/dist-types/blob/Uint8ArrayBlobAdapter.d.ts","../../node_modules/@smithy/util-stream/dist-types/getAwsChunkedEncodingStream.d.ts","../../node_modules/@smithy/util-stream/dist-types/sdk-stream-mixin.d.ts","../../node_modules/@smithy/util-stream/dist-types/index.d.ts","../../node_modules/@smithy/smithy-client/dist-types/collect-stream-body.d.ts","../../node_modules/@smithy/smithy-client/dist-types/command.d.ts","../../node_modules/@smithy/smithy-client/dist-types/constants.d.ts","../../node_modules/@smithy/smithy-client/dist-types/create-aggregated-client.d.ts","../../node_modules/@smithy/smithy-client/dist-types/date-utils.d.ts","../../node_modules/@smithy/smithy-client/dist-types/default-error-handler.d.ts","../../node_modules/@smithy/smithy-client/dist-types/defaults-mode.d.ts","../../node_modules/@smithy/smithy-client/dist-types/emitWarningIfUnsupportedVersion.d.ts","../../node_modules/@smithy/smithy-client/dist-types/extensions/checksum.d.ts","../../node_modules/@smithy/smithy-client/dist-types/extensions/retry.d.ts","../../node_modules/@smithy/smithy-client/dist-types/extensions/defaultExtensionConfiguration.d.ts","../../node_modules/@smithy/smithy-client/dist-types/extensions/index.d.ts","../../node_modules/@smithy/smithy-client/dist-types/exceptions.d.ts","../../node_modules/@smithy/smithy-client/dist-types/extended-encode-uri-component.d.ts","../../node_modules/@smithy/smithy-client/dist-types/get-array-if-single-item.d.ts","../../node_modules/@smithy/smithy-client/dist-types/get-value-from-text-node.d.ts","../../node_modules/@smithy/smithy-client/dist-types/lazy-json.d.ts","../../node_modules/@smithy/smithy-client/dist-types/object-mapping.d.ts","../../node_modules/@smithy/smithy-client/dist-types/parse-utils.d.ts","../../node_modules/@smithy/smithy-client/dist-types/resolve-path.d.ts","../../node_modules/@smithy/smithy-client/dist-types/ser-utils.d.ts","../../node_modules/@smithy/smithy-client/dist-types/serde-json.d.ts","../../node_modules/@smithy/smithy-client/dist-types/split-every.d.ts","../../node_modules/@smithy/smithy-client/dist-types/index.d.ts","./src/protocols/json/awsExpectUnion.ts","./src/protocols/index.ts","./src/index.ts","../../node_modules/@types/argparse/index.d.ts","../../node_modules/@types/babel__generator/node_modules/@babel/types/lib/index.d.ts","../../node_modules/@types/babel__generator/index.d.ts","../../node_modules/@types/babel__core/node_modules/@babel/types/lib/index.d.ts","../../node_modules/@types/babel__core/node_modules/@babel/parser/typings/babel-parser.d.ts","../../node_modules/@types/babel__template/node_modules/@babel/parser/typings/babel-parser.d.ts","../../node_modules/@types/babel__template/node_modules/@babel/types/lib/index.d.ts","../../node_modules/@types/babel__template/index.d.ts","../../node_modules/@types/babel__traverse/node_modules/@babel/types/lib/index.d.ts","../../node_modules/@types/babel__traverse/index.d.ts","../../node_modules/@types/babel__core/index.d.ts","../../node_modules/@types/chai/index.d.ts","../../node_modules/@types/chai-as-promised/index.d.ts","../../node_modules/@types/chai-subset/index.d.ts","../../node_modules/@types/connect/index.d.ts","../../node_modules/@types/eslint/helpers.d.ts","../../node_modules/@types/estree/index.d.ts","../../node_modules/@types/json-schema/index.d.ts","../../node_modules/@types/eslint/index.d.ts","../../node_modules/@types/eslint-scope/index.d.ts","../../node_modules/@types/fs-extra/index.d.ts","../../node_modules/@types/graceful-fs/index.d.ts","../../node_modules/@types/istanbul-lib-coverage/index.d.ts","../../node_modules/@types/istanbul-lib-report/index.d.ts","../../node_modules/@types/istanbul-reports/index.d.ts","../../node_modules/expect/node_modules/@jest/expect-utils/build/index.d.ts","../../node_modules/chalk/index.d.ts","../../node_modules/@sinclair/typebox/typebox.d.ts","../../node_modules/pretty-format/node_modules/@jest/schemas/build/index.d.ts","../../node_modules/pretty-format/build/index.d.ts","../../node_modules/expect/node_modules/jest-diff/build/index.d.ts","../../node_modules/expect/node_modules/jest-matcher-utils/build/index.d.ts","../../node_modules/expect/build/index.d.ts","../../node_modules/@types/jest/index.d.ts","../../node_modules/parse5/dist/common/html.d.ts","../../node_modules/parse5/dist/common/token.d.ts","../../node_modules/parse5/dist/common/error-codes.d.ts","../../node_modules/parse5/dist/tokenizer/preprocessor.d.ts","../../node_modules/parse5/dist/tokenizer/index.d.ts","../../node_modules/parse5/dist/tree-adapters/interface.d.ts","../../node_modules/parse5/dist/parser/open-element-stack.d.ts","../../node_modules/parse5/dist/parser/formatting-element-list.d.ts","../../node_modules/parse5/dist/parser/index.d.ts","../../node_modules/parse5/dist/tree-adapters/default.d.ts","../../node_modules/parse5/dist/serializer/index.d.ts","../../node_modules/parse5/dist/common/foreign-content.d.ts","../../node_modules/parse5/dist/index.d.ts","../../node_modules/@types/tough-cookie/index.d.ts","../../node_modules/@types/jsdom/base.d.ts","../../node_modules/@types/jsdom/index.d.ts","../../node_modules/@types/json5/index.d.ts","../../node_modules/@types/lodash/common/common.d.ts","../../node_modules/@types/lodash/common/array.d.ts","../../node_modules/@types/lodash/common/collection.d.ts","../../node_modules/@types/lodash/common/date.d.ts","../../node_modules/@types/lodash/common/function.d.ts","../../node_modules/@types/lodash/common/lang.d.ts","../../node_modules/@types/lodash/common/math.d.ts","../../node_modules/@types/lodash/common/number.d.ts","../../node_modules/@types/lodash/common/object.d.ts","../../node_modules/@types/lodash/common/seq.d.ts","../../node_modules/@types/lodash/common/string.d.ts","../../node_modules/@types/lodash/common/util.d.ts","../../node_modules/@types/lodash/index.d.ts","../../node_modules/@types/minimatch/index.d.ts","../../node_modules/@types/minimist/index.d.ts","../../node_modules/@types/normalize-package-data/index.d.ts","../../node_modules/@types/parse-json/index.d.ts","../../node_modules/@types/prettier/index.d.ts","../../node_modules/@types/semver/classes/semver.d.ts","../../node_modules/@types/semver/functions/parse.d.ts","../../node_modules/@types/semver/functions/valid.d.ts","../../node_modules/@types/semver/functions/clean.d.ts","../../node_modules/@types/semver/functions/inc.d.ts","../../node_modules/@types/semver/functions/diff.d.ts","../../node_modules/@types/semver/functions/major.d.ts","../../node_modules/@types/semver/functions/minor.d.ts","../../node_modules/@types/semver/functions/patch.d.ts","../../node_modules/@types/semver/functions/prerelease.d.ts","../../node_modules/@types/semver/functions/compare.d.ts","../../node_modules/@types/semver/functions/rcompare.d.ts","../../node_modules/@types/semver/functions/compare-loose.d.ts","../../node_modules/@types/semver/functions/compare-build.d.ts","../../node_modules/@types/semver/functions/sort.d.ts","../../node_modules/@types/semver/functions/rsort.d.ts","../../node_modules/@types/semver/functions/gt.d.ts","../../node_modules/@types/semver/functions/lt.d.ts","../../node_modules/@types/semver/functions/eq.d.ts","../../node_modules/@types/semver/functions/neq.d.ts","../../node_modules/@types/semver/functions/gte.d.ts","../../node_modules/@types/semver/functions/lte.d.ts","../../node_modules/@types/semver/functions/cmp.d.ts","../../node_modules/@types/semver/functions/coerce.d.ts","../../node_modules/@types/semver/classes/comparator.d.ts","../../node_modules/@types/semver/classes/range.d.ts","../../node_modules/@types/semver/functions/satisfies.d.ts","../../node_modules/@types/semver/ranges/max-satisfying.d.ts","../../node_modules/@types/semver/ranges/min-satisfying.d.ts","../../node_modules/@types/semver/ranges/to-comparators.d.ts","../../node_modules/@types/semver/ranges/min-version.d.ts","../../node_modules/@types/semver/ranges/valid.d.ts","../../node_modules/@types/semver/ranges/outside.d.ts","../../node_modules/@types/semver/ranges/gtr.d.ts","../../node_modules/@types/semver/ranges/ltr.d.ts","../../node_modules/@types/semver/ranges/intersects.d.ts","../../node_modules/@types/semver/ranges/simplify.d.ts","../../node_modules/@types/semver/ranges/subset.d.ts","../../node_modules/@types/semver/internals/identifiers.d.ts","../../node_modules/@types/semver/index.d.ts","../../node_modules/@types/stack-utils/index.d.ts","../../node_modules/@types/uuid/index.d.ts","../../node_modules/@types/ws/index.d.ts","../../node_modules/@types/yargs-parser/index.d.ts","../../node_modules/@types/yargs/index.d.ts"],"fileInfos":[{"version":"8730f4bf322026ff5229336391a18bcaa1f94d4f82416c8b2f3954e2ccaae2ba","affectsGlobalScope":true},"dc47c4fa66b9b9890cf076304de2a9c5201e94b740cffdf09f87296d877d71f6","7a387c58583dfca701b6c85e0adaf43fb17d590fb16d5b2dc0a2fbd89f35c467","8a12173c586e95f4433e0c6dc446bc88346be73ffe9ca6eec7aa63c8f3dca7f9","5f4e733ced4e129482ae2186aae29fde948ab7182844c3a5a51dd346182c7b06",{"version":"3aafcb693fe5b5c3bd277bd4c3a617b53db474fe498fc5df067c5603b1eebde7","affectsGlobalScope":true},{"version":"f3d4da15233e593eacb3965cde7960f3fddf5878528d882bcedd5cbaba0193c7","affectsGlobalScope":true},{"version":"adb996790133eb33b33aadb9c09f15c2c575e71fb57a62de8bf74dbf59ec7dfb","affectsGlobalScope":true},{"version":"8cc8c5a3bac513368b0157f3d8b31cfdcfe78b56d3724f30f80ed9715e404af8","affectsGlobalScope":true},{"version":"cdccba9a388c2ee3fd6ad4018c640a471a6c060e96f1232062223063b0a5ac6a","affectsGlobalScope":true},{"version":"c5c05907c02476e4bde6b7e76a79ffcd948aedd14b6a8f56e4674221b0417398","affectsGlobalScope":true},{"version":"5f406584aef28a331c36523df688ca3650288d14f39c5d2e555c95f0d2ff8f6f","affectsGlobalScope":true},{"version":"22f230e544b35349cfb3bd9110b6ef37b41c6d6c43c3314a31bd0d9652fcec72","affectsGlobalScope":true},{"version":"7ea0b55f6b315cf9ac2ad622b0a7813315bb6e97bf4bb3fbf8f8affbca7dc695","affectsGlobalScope":true},{"version":"3013574108c36fd3aaca79764002b3717da09725a36a6fc02eac386593110f93","affectsGlobalScope":true},{"version":"eb26de841c52236d8222f87e9e6a235332e0788af8c87a71e9e210314300410a","affectsGlobalScope":true},{"version":"3be5a1453daa63e031d266bf342f3943603873d890ab8b9ada95e22389389006","affectsGlobalScope":true},{"version":"17bb1fc99591b00515502d264fa55dc8370c45c5298f4a5c2083557dccba5a2a","affectsGlobalScope":true},{"version":"7ce9f0bde3307ca1f944119f6365f2d776d281a393b576a18a2f2893a2d75c98","affectsGlobalScope":true},{"version":"6a6b173e739a6a99629a8594bfb294cc7329bfb7b227f12e1f7c11bc163b8577","affectsGlobalScope":true},{"version":"81cac4cbc92c0c839c70f8ffb94eb61e2d32dc1c3cf6d95844ca099463cf37ea","affectsGlobalScope":true},{"version":"b0124885ef82641903d232172577f2ceb5d3e60aed4da1153bab4221e1f6dd4e","affectsGlobalScope":true},{"version":"0eb85d6c590b0d577919a79e0084fa1744c1beba6fd0d4e951432fa1ede5510a","affectsGlobalScope":true},{"version":"da233fc1c8a377ba9e0bed690a73c290d843c2c3d23a7bd7ec5cd3d7d73ba1e0","affectsGlobalScope":true},{"version":"d154ea5bb7f7f9001ed9153e876b2d5b8f5c2bb9ec02b3ae0d239ec769f1f2ae","affectsGlobalScope":true},{"version":"bb2d3fb05a1d2ffbca947cc7cbc95d23e1d053d6595391bd325deb265a18d36c","affectsGlobalScope":true},{"version":"c80df75850fea5caa2afe43b9949338ce4e2de086f91713e9af1a06f973872b8","affectsGlobalScope":true},{"version":"09aa50414b80c023553090e2f53827f007a301bc34b0495bfb2c3c08ab9ad1eb","affectsGlobalScope":true},{"version":"2768ef564cfc0689a1b76106c421a2909bdff0acbe87da010785adab80efdd5c","affectsGlobalScope":true},{"version":"52d1bb7ab7a3306fd0375c8bff560feed26ed676a5b0457fa8027b563aecb9a4","affectsGlobalScope":true},{"version":"8c7a59a58fb16c668f3a836ecb58afd0d8764478e1c3744870c0c039f286dd91","signature":"02ec1ffcc0823cb9c9ba420c619d3af2c726e3a674b66a91941c07a3e7f65dba"},"38f6da5b6f318c33e18dd7c983cab3fe52f510c9a2573948fb13f012e01b1ba6",{"version":"e61062cf47b67f1a1968f7d150da3aea7b77a9fd5ebce90301c3e0180ca30ab4","signature":"25091d25f74760301f1e094456e2e6af52ceb6ef1ece48910463528e499992d8"},"c55ae709f94155174ff63647edd2a7e3acbd02a2909aa2541569e8b8bac9fc40","530e5c7e4f74267b7800f1702cf0c576282296a960acbdb2960389b2b1d0875b","1c483cc60a58a0d4c9a068bdaa8d95933263e6017fbea33c9f99790cf870f0a8","07863eea4f350458f803714350e43947f7f73d1d67a9ddf747017065d36b073a","d5f1bbd44ba4f63d8a01fff5e1edc1c1fb50e9caa48a4fa48298a4485d6ff75c","4d2b263907b8c03c5b2df90e6c1f166e9da85bd87bf439683f150afc91fce7e7","c70e38e0f30b7c0542af9aa7e0324a23dd2b0c1a64e078296653d1d3b36fa248","d12680e217215b37094868d491d00196e80f270ce47e5a4bc50269945ae5554d","396c2c14fa408707235d761a965bd84ce3d4fc3117c3b9f1404d6987d98a30d6","5866f85b79bae844211df93770e10e68298d934f2aed751e7a5cdf9ab59f76dc","06289b9873760aac77aed4035ea6c60b1e0879b8afe47a4530bc8522b9b804b1","6b5d7adb6b8a4b6e70ac805805da9cf421a4a852be62a0f39e8c692e7f2675d0","3e7ffc7dd797e5d44d387d0892bc288480493e73dcab9832812907d1389e4a98","db011ec9589fd51995cbd0765673838e38e6485a6559163cc53dcf508b480909","e1a4253f0cca15c14516f52a2ad36c3520b140b5dfb3b3880a368cd75d45d6d9","159af954f2633a12fdee68605009e7e5b150dbeb6d70c46672fd41059c154d53","4c2c4f53e8eedd970f8afa369d7371544fb6231bf95e659f8602e09abe74d5a5",{"version":"cb5a780979155e80a2184eb987cc411a95c9a1686019ade06918c312a0b7c9b2","affectsGlobalScope":true},"c2b5085f47e41d6940bbc5b0d3bd7cc0037c752efb18aecd243c9cf83ad0c0b7","3143a5add0467b83150961ecd33773b561a1207aec727002aa1d70333068eb1b","f87191b7fafe7a0edad375710d99f900e49cef560b66bf309cf3f8e1b7177126","586af7d2abe2f9d59c5e757c370087d6c6baea81b033250f43b8df808d6dfb33",{"version":"1a048ff164b8d9609f5de3139d4e37f6e8a82af82087ac414b9208f52ef8aac7","affectsGlobalScope":true},"3111079f3cb5f2b9c812ca3f46161562bce5bfb355e915f46ed46c41714dc1c3","e7bee4a6d9bb78afa390b25e0ce97a2f94787a1eb17f0a16e732dcbebba3f3ee","b32b6b16cb0bda68199582ad6f22242d07ee75fac9b1f28a98cd838afc5eea45","4441ee4119824bfaebc49308559edd7545978f9cb41a40f115074e1031dde75f",{"version":"60693a88462d0e97900123b5bf7c73e146ce0cc94da46a61fe6775b430d2ff05","affectsGlobalScope":true},{"version":"588c69eda58b9202676ec7ca11a72c3762819b46a0ed72462c769846153c447c","affectsGlobalScope":true},"ae064ed4f855716b7ff348639ddcd6a6d354a72fae82f506608a7dc9266aa24c","92f019c55b21c939616f6a48f678e714ac7b109444cbbf23ad69310ce66ecbdc","bba259efdf9ab95e0c7d3cc8e99250f56bb6b31d6129efdf733ca4eb1d01feea","499b7544062cf44fab253daeaea8ba28877d9e7ff4149246b1f0154d1c9ed535","139fd681eff7771a38d0c025d13c7a11c5474f6aab61e01c41511d71496df173","f614c3f61e46ccc2cb58702d5a158338ea57ee09099fde5db4cfc63ed0ce4d74","44e42ed6ec9c4451ebe89524e80ac8564e9dd0988c56e6c58f393c810730595d","a504c109b872b0e653549bd258eb06584c148c98d79406c7516995865a6d5089","155865f5f76db0996cd5e20cc5760613ea170ee5ad594c1f3d76fcaa05382161","e92852d673c836fc64e10c38640abcd67c463456e5df55723ac699b8e6ab3a8a","4455c78d226d061b1203c7614c6c6eb5f4f9db5f00d44ff47d0112de8766fbc4",{"version":"ec369bb9d97c4dc09dd2a4093b7ca3ba69ad284831fccac8a1977785e9e38ce5","affectsGlobalScope":true},"4465a636f5f6e9665a90e30691862c9e0a3ac2edc0e66296704f10865e924f2a","9af781f03d44f5635ed7844be0ce370d9d595d4b4ec67cad88f0fac03255257e","f9fd4c3ef6de27fa0e256f4e75b61711c4be05a3399f7714621d3edc832e36b0","e49290b7a927995c0d7e6b2b9c8296284b68a9036d9966531de65185269258d7","aa95cc73ea5315e4f6fc8c6db43d49e3b7de3780cae20a4f1319032809013038","874ca809b79276460011480a2829f4c8d4db29416dd411f71efbf8f497f0ac09","6c903bceaf3f3bc04f2d4c7dcd89ce9fb148b3ba0a5f5408d8f6de2b7eecc7ea","504d049d9e550a65466b73ca39da6469ab41786074ea1d16d37c8853f9f6ab2e","23a28f834a078986bbf58f4e3705956983ff81c3c2493f3db3e5f0e8a9507779","4febdf7f3ec92706c58e0b4e8159cd6de718284ef384260b07c9641c13fc70ce",{"version":"bf241ed073916ec9e21a3c138936edd444b6787d874844c0d05fc00a8f109d19","affectsGlobalScope":true},"7335933d9f30dcfd2c4b6080a8b78e81912a7fcefb1dafccb67ca4cb4b3ac23d","a6bfe9de9adef749010c118104b071d14943802ff0614732b47ce4f1c3e383cd","4c3d0e10396646db4a1e917fb852077ee77ae62e512913bef9cccc2bb0f8bd0e","3b220849d58140dcc6718f5b52dcd29fdb79c45bc28f561cbd29eb1cac6cce13","0ee22fce41f7417a24c808d266e91b850629113c104713a35854393d55994beb","22d1b1d965baba05766613e2e6c753bb005d4386c448cafd72c309ba689e8c24",{"version":"2708349d5a11a5c2e5f3a0765259ebe7ee00cdcc8161cb9990cb4910328442a1","affectsGlobalScope":true},"c6c0bd221bb1e94768e94218f8298e47633495529d60cae7d8da9374247a1cf5","a1b36a1f91a54daf2e89e12b834fa41fb7338bc044d1f08a80817efc93c99ee5","8bb4a5b632dd5a868f3271750895cb61b0e20cff82032d87e89288faee8dd6e2","0c1aabfd9fb1818afb2e798f91f669edafce59cd7e3423d25b1cfccfaaf2c403","017de6fdabea79015d493bf71e56cbbff092525253c1d76003b3d58280cd82a0","ab9ea2596cb7800bd79d1526930c785606ec4f439c275adbca5adc1ddf87747d","aee8faa433dde04beedb779b3329456a286a966462d666c138c19113ce78c79e","b7e9c39f7edd1ecd2c3d73b753213a0834144d82ac2a67230c1d291d25430a2e","4e693235d606287d6b5a4e7d572f190862b93ea4a28df8a63fc328aa8becdc9d","e58d1ea2fc84c9c03742b4f56449b7d4602c8c4deb4f0e57c619bab35bbbbf81","d82bc1f8fe8eef55aa741373da68b80a8503228c9aa0ec46bdd38fd7e0c02a18","d7c7f8a461326507d90d0888efff0c4011a5e69eb08ccb990232aa22334e4dd6","5af5ebe8c9b84f667cd047cfcf1942d53e3b369dbd63fbea2a189bbf381146c6","27deb39ac0921db739b503407dc9aa93a546b015c06738bc8b66bdf0ae593c7c","eff5b8bdfe94c0a174484a6de01e802fb66f99f8737a20e4fba4df05c2f24cea","52fa3a4f47e30ef266dbda3b69821fe5811be4faad2b266586090d8b4806342e","5cb6f9ea4a097094fe624c3513111292690e39e83167a412f8912807be71ca65","fa461c83b2adc6b33997a95335d19723bddd4d7aaff41cac6f9f817e3c3ae730","d9eed4a308aeb32babee0600d21c3a3ba8452c89e8a4916e5460b45da147c33c","fc9bdd9b3d8fb59c913cb3b8dea0d79b38dfe9331ef07e1c6dc6bf363f061ad6","e647d13de80e1b6b4e1d94363ea6f5f8f77dfb95d562748b488a7248af25aabf","0c3c4ce6a1884610c99306719f59174d81808c69393c30119f9c2aef0449a2cb","219a25474e58a8161b242776856ec5f6960839b63e74809445e51cadbfc18096","16a6f76f6507cc76012cfd3954136a41a58db595231c2f9bfaf35eca6b25346c","bef94eba81ae2c09059c0d9abdb1ae1b7090314f70550f3c8cd5d7ead4a4f212","48b787ad458be9b524fa5fdfef34f68798074132d4b8cfe6a6fe9c2bf334c532","37280465f8f9b2ea21d490979952b18b7f4d1f0d8fab2d627618fb2cfa1828e3","3f3f85dc43cb93c5a797f1ff0fa948d0e17843a443ae11a20cc032ccdf1b9997","9252778562c2587c88775bf9e8a474a2ac51d562fff90b0ab240b51d0248f16d","869010bc679df668137cb3b78a3cb8196e97acf285208a57f6156ceac894a2f7","bcae62618c23047e36d373f0feac5b13f09689e4cd08e788af13271dbe73a139","29a99d2e57b3e08a997cbc2397bdb251441a545306a74b95ffedc5f03d9bc6b7","5ae003688265a1547bbcb344bf0e26cb994149ac2c032756718e9039302dfac8","c5f2cdab01270375da7f5c3ae12157d529938533f0145fa0df91735a96cc1a65","53522a2c33f9196ef05e72118a009c6ae717265e5b0eac3ee6bdc8305e8dde2e","9da2c58a27fdce871c2eac09d5172b04248bb86ada9b0d10e8b3dfa8470b8dd3","5c317403752871838140f70879b09509e37422e92e7364b4363c7b179310ee44","7b270dc53f35dd0b44bfa619ad4d351fffd512e14053c3688323ed007eda3f6d","6d4e928f232ade7221cffc6e4332ec935baa176415c9bf5d12111bb883a247d2","e86ad029224d4f2af3e188be8b5e9badf8c7083247572069bac7bd2193131fc7","057cac07c7bc5abdcfba44325fcea4906dff7919a3d7d82d4ec40f8b4c90cf2f","38aa389acf91d77db5a4f8e26e713ed53dc832ed5573def9cd20acd9ba97c1fe","e56784be93954f1f86d4dd3ac61b4c9727e75864baf123a1b584b970baed4ba0","b9115605f72b65a662723020b2a1eb696c375a5803d6b401dc01fcbfe49ece90","f1afe721e73e468fa292f5fe9ed48955fc6c53ef8b62e9783446b563e0b66fc4","4d250e905299144850c6f8e74dad1ee892d847643bacf637e89adcce013f0700","54b7035573d88f8e94019d00067b3999bf97f4181e6fc3f0573e9cfcb68d0b98","ed3e176bc769725ebc1d93f1d6890fc3d977b9155ae5d03be96ec2d49b303370","7933769d84f5ae16546aef06537ca578f1c8d7cca0708452a00613050ac1f265","cc5c913c4716a0d1563b2a63a7c4dc2fa81b7d7bc58489c79896d69b27e978cd","f194cdeb1caaf80e625f4fad340a9434b2b83786028dcc5ea6f3c459cc7789a0","f8ce447bbda4f75da74cecd866cc1ff9bdde62189ac9d8dc14a16c48b3d702fa","0fda680cf2b072a930dfe98dcd8f5c1da8f9fcac4cac37768ee318ef40145c8c","7f5a6eac3d3d334e2f2eba41f659e9618c06361958762869055e22219f341554","6f996f44113b76a9960d3fad280f4f671115c5e971356d1dbb4d1b000af8b3b3","67f2cd6e208e68fdfa366967d1949575df6ccf90c104fc9747b3f1bdb69ad55a","f99ab9dffe6281c9b6df9ae9d8584d18eabf2107572bbd8fa5c83c8afe531af8","4fc9939c86a7d80ab6a361264e5666336d37e080a00d831d9358ad83575267da","f4ba385eedea4d7be1feeeac05aaa05d6741d931251a85ab48e0610271d001ce","fc79932b9aa710f025b89bf8d8329d99080286e5e079a7d5a529236e9f5dd69e","6646d9075e3e0eedb02c9d03bffef54c8bbeb601d27eed46f143aba435bac37d","0dec72b4c5c4bb149750fef4fc26bdae8f410de941ee766c953f5ac77381d690","8f2644578a3273f43fd700803b89b842d2cd09c1fba2421db45737357e50f5b1","f5405fb679a467cb979f8744940b22b7bc3a0bcbe648c3910d98de3188d42a78","68969a0efd9030866f60c027aedbd600f66ea09e1c9290853cc24c2dcc92000f","639f94fe145a72ce520d3d7b9b3b6c9049624d90cbf85cff46fb47fb28d1d8fe","8327a51d574987a2b0f61ea40df4adddf959f67bc48c303d4b33d47ba3be114a","991fd5ebf9f30ffa17cae6faeae6a838d3d91bdcdd419bce358dc99b8e5b0ad0","51b4ab145645785c8ced29238192f870dbb98f1968a7c7ef2580cd40663b2940","589713fefe7282fd008a2672c5fbacc4a94f31138bae6a03db2c7b5453dc8788","786691c952fe3feac79aca8f0e7e580d95c19afc8a4c6f8765e99fb756d8d9d7","4c348f139d006057ce9384e60b4ee1ce06bee5c16e19ff70f293ad88d5893386","e9d33b2549b5779b6cad92cb6a370c6c106cc12dc80da1cc199e2cb3a715bf38","62b753ed351fba7e0f6b57103529ce90f2e11b949b8fc69c39464fe958535c25","21e1fa3e5c95c61161a1ea2d819972e3b7e916a58571f8f9828b8a6c32e641ea",{"version":"b63519c0b5db6d56337c5245fa458b3d3017c204ca7be0c220a2fb967526ea79","signature":"853d02f4f46ca9700fefd0d45062f5b82c9335ba2224ca4d7bd34d6ae4fc4a7f"},"3d60c1c9c93650dafc5df38f26a3e3d5339280e2a1fea1ecac5661d8ed02ae52","7107b57a41ccc036da5fd0959fadff6f3ed5b8b91358613bcccd9c593b63c679","dc3b172ee27054dbcedcf5007b78c256021db936f6313a9ce9a3ecbb503fd646","ac65f04c2df0218cb8e54f012745cbfcc3c0e67c1f6b1e557d88842bbb72e2db","cc957354aa3c94c9961ebf46282cfde1e81d107fc5785a61f62c67f1dd3ac2eb","ac65f04c2df0218cb8e54f012745cbfcc3c0e67c1f6b1e557d88842bbb72e2db","a2e86df4db576d80704e25293cec6f20fc6101a11f4747440e2eef58fb3c860c","a2e86df4db576d80704e25293cec6f20fc6101a11f4747440e2eef58fb3c860c","ac65f04c2df0218cb8e54f012745cbfcc3c0e67c1f6b1e557d88842bbb72e2db","93de1c6dab503f053efe8d304cb522bb3a89feab8c98f307a674a4fae04773e9","ac65f04c2df0218cb8e54f012745cbfcc3c0e67c1f6b1e557d88842bbb72e2db","6704f0b54df85640baaeebd86c9d4a1dbb661d5a4d57a75bc84162f562f6531d","9d255af1b09c6697089d3c9bf438292a298d8b7a95c68793c9aae80afc9e5ca7",{"version":"c3bc5d095c3c22fd20b5a6550b9c9a6d56c3ffbb87ef057ccce7764b6bed4428","affectsGlobalScope":true},{"version":"63e2182615c513e89bb8a3e749d08f7c379e86490fcdbf6d35f2c14b3507a6e8","affectsGlobalScope":true},{"version":"f4c0db3a49cea9babd5d224ba14243a6a6119bf65a65198994033aaea3a60a71","affectsGlobalScope":true},"6d829824ead8999f87b6df21200df3c6150391b894b4e80662caa462bd48d073",{"version":"64d4b35c5456adf258d2cf56c341e203a073253f229ef3208fc0d5020253b241","affectsGlobalScope":true},"bee89e1eb6425eb49894f3f25e4562dc2564e84e5aa7610b7e13d8ecddf8f5db","dca41e86e89dfb2e85e6935260250f02eb6683b86c2fa16bec729ddd1bcd9b4b","6670e71d65610bd7b64aac5fdf58c21c545f7fa31e060f02a0dcd91763831eb8","e050a0afcdbb269720a900c85076d18e0c1ab73e580202a2bf6964978181222a","6de408de17cb0e3fa3a5e3d0f79bd104848d98dbfa72e92fddfa1a4aa3d8393c","bf88ef4208a770ca39a844b182b3695df536326ea566893fdc5b8418702a331e","8b06ac3faeacb8484d84ddb44571d8f410697f98d7bfa86c0fda60373a9f5215","7eb06594824ada538b1d8b48c3925a83e7db792f47a081a62cf3e5c4e23cf0ee","f5638f7c2f12a9a1a57b5c41b3c1ea7db3876c003bab68e6a57afd6bcc169af0","6c1e688f95fcaf53b1e41c0fdadf2c1cfc96fa924eaf7f9fdb60f96deb0a4986","0d14fa22c41fdc7277e6f71473b20ebc07f40f00e38875142335d5b63cdfc9d2","c085e9aa62d1ae1375794c1fb927a445fa105fed891a7e24edbb1c3300f7384a","f315e1e65a1f80992f0509e84e4ae2df15ecd9ef73df975f7c98813b71e4c8da","5b9586e9b0b6322e5bfbd2c29bd3b8e21ab9d871f82346cb71020e3d84bae73e","3e70a7e67c2cb16f8cd49097360c0309fe9d1e3210ff9222e9dac1f8df9d4fb6","ab68d2a3e3e8767c3fba8f80de099a1cfc18c0de79e42cb02ae66e22dfe14a66","6d969939c4a63f70f2aa49e88da6f64b655c8e6799612807bef41ccff6ea0da9",{"version":"240c702fb4b3bd54d83ee167d80fa7f0cd7300fef7eea0b32cef33129740893c","affectsGlobalScope":true},"ba600bf38b5c1a5dffa1b99dd7a783549082bbba3b4fe9497eaaf5e4c1764b20","ae8cd6af37275eac75f5369cdb5f01063bcf1f48d74cb434303ee50ec446acfe","2518830a2fda9c272ba48798d0e7b857037443b06594db8e42c87e86944ee9e4","95c1cf650d16b197525b5bfdf8dd7abba0a49d99ddb12a4ba66466a8a6903e49","1fe0aabe758d56ad72495d6e6c7b6ae75619faaeaaf03f0ddf1948eea4cfac84","bbc57966c8c48ee78fd58aadb893784025be056ae538ae22d1e83c502a987e68","5e5d6f6697e378b0660b567866bf67d099d0ea754f8810c0dabe737805f5cf03","99ab49d4732fdc98cf5c495925e65e796544cb4086fe42afc235dfc02bcf2351","af8339d509c40da075088e544c28ed37b519876e5c4d36a48644ebfb3c6ae6c8","d393adc32e520d4274bb4c3dfdcdb342b806a230b66ef0f82b35bffbc4aa2590","c26af7eaedb4f710984634e419ab15e54e5bb99a0b3cae71188c2fff572276de","38b58ef018d0aeee42ef74c42978bb5805503233fdeeb82cd2aed2199fb0d013","3b6040253231d44e6778eb6861cc86c1758562e77783d21b7ecbc73322ded539","cc256fd958b33576ed32c7338c64adb0d08fc0c2c6525010202fab83f32745da","fd0589ca571ad090b531d8c095e26caa53d4825c64d3ff2b2b1ab95d72294175",{"version":"669843ecafb89ae1e944df06360e8966219e4c1c34c0d28aa2503272cdd444a7","affectsGlobalScope":true},"96d14f21b7652903852eef49379d04dbda28c16ed36468f8c9fa08f7c14c9538","675e702f2032766a91eeadee64f51014c64688525da99dccd8178f0c599f13a8","458111fc89d11d2151277c822dfdc1a28fa5b6b2493cf942e37d4cd0a6ee5f22","19c816167e076e7c24f074389c6cf3ed87bdbb917d1ea439ca281f9d26db2439","187119ff4f9553676a884e296089e131e8cc01691c546273b1d0089c3533ce42","febf0b2de54781102b00f61653b21377390a048fbf5262718c91860d11ff34a6","98f9d826db9cd99d27a01a59ee5f22863df00ccf1aaf43e1d7db80ebf716f7c3","0aaef8cded245bf5036a7a40b65622dd6c4da71f7a35343112edbe112b348a1e","00baffbe8a2f2e4875367479489b5d43b5fc1429ecb4a4cc98cfc3009095f52a","dcd91d3b697cb650b95db5471189b99815af5db2a1cd28760f91e0b12ede8ed5","3c92b6dfd43cc1c2485d9eba5ff0b74a19bb8725b692773ef1d66dac48cda4bd","3cf0d343c2276842a5b617f22ba82af6322c7cfe8bb52238ffc0c491a3c21019","df996e25faa505f85aeb294d15ebe61b399cf1d1e49959cdfaf2cc0815c203f9","30abc554c7ad13063a02ddd06757929b34357aea1f6fcf4ca39114cb0fc19384","8841e2aa774b89bd23302dede20663306dc1b9902431ac64b24be8b8d0e3f649","209e814e8e71aec74f69686a9506dd7610b97ab59dcee9446266446f72a76d05","6fa0008bf91a4cc9c8963bace4bba0bd6865cbfa29c3e3ccc461155660fb113a","2b8264b2fefd7367e0f20e2c04eed5d3038831fe00f5efbc110ff0131aab899b","d88a5e779faf033be3d52142a04fbe1cb96009868e3bbdd296b2bc6c59e06c0e","2b93035328f7778d200252681c1d86285d501ed424825a18f81e4c3028aa51d9","2ac9c8332c5f8510b8bdd571f8271e0f39b0577714d5e95c1e79a12b2616f069","42c21aa963e7b86fa00801d96e88b36803188018d5ad91db2a9101bccd40b3ff","d31eb848cdebb4c55b4893b335a7c0cca95ad66dee13cbb7d0893810c0a9c301","b9f96255e1048ed2ea33ec553122716f0e57fc1c3ad778e9aa15f5b46547bd23","7a9e0a564fee396cacf706523b5aeed96e04c6b871a8bebefad78499fbffc5bc","906c751ef5822ec0dadcea2f0e9db64a33fb4ee926cc9f7efa38afe5d5371b2a","5387c049e9702f2d2d7ece1a74836a14b47fbebe9bbeb19f94c580a37c855351","c68391fb9efad5d99ff332c65b1606248c4e4a9f1dd9a087204242b56c7126d6","e9cf02252d3a0ced987d24845dcb1f11c1be5541f17e5daa44c6de2d18138d0c","e8b02b879754d85f48489294f99147aeccc352c760d95a6fe2b6e49cd400b2fe","9f6908ab3d8a86c68b86e38578afc7095114e66b2fc36a2a96e9252aac3998e0","0eedb2344442b143ddcd788f87096961cd8572b64f10b4afc3356aa0460171c6","71405cc70f183d029cc5018375f6c35117ffdaf11846c35ebf85ee3956b1b2a6","c68baff4d8ba346130e9753cefe2e487a16731bf17e05fdacc81e8c9a26aae9d","2cd15528d8bb5d0453aa339b4b52e0696e8b07e790c153831c642c3dea5ac8af","479d622e66283ffa9883fbc33e441f7fc928b2277ff30aacbec7b7761b4e9579","ade307876dc5ca267ca308d09e737b611505e015c535863f22420a11fffc1c54","f8cdefa3e0dee639eccbe9794b46f90291e5fd3989fcba60d2f08fde56179fb9","86c5a62f99aac7053976e317dbe9acb2eaf903aaf3d2e5bb1cafe5c2df7b37a8","2b300954ce01a8343866f737656e13243e86e5baef51bd0631b21dcef1f6e954","a2d409a9ffd872d6b9d78ead00baa116bbc73cfa959fce9a2f29d3227876b2a1","b288936f560cd71f4a6002953290de9ff8dfbfbf37f5a9391be5c83322324898","61178a781ef82e0ff54f9430397e71e8f365fc1e3725e0e5346f2de7b0d50dfa","6a6ccb37feb3aad32d9be026a3337db195979cd5727a616fc0f557e974101a54","c649ea79205c029a02272ef55b7ab14ada0903db26144d2205021f24727ac7a3","38e2b02897c6357bbcff729ef84c736727b45cc152abe95a7567caccdfad2a1d","d6610ea7e0b1a7686dba062a1e5544dd7d34140f4545305b7c6afaebfb348341","3dee35db743bdba2c8d19aece7ac049bde6fa587e195d86547c882784e6ba34c","b15e55c5fa977c2f25ca0b1db52cfa2d1fd4bf0baf90a8b90d4a7678ca462ff1","f41d30972724714763a2698ae949fbc463afb203b5fa7c4ad7e4de0871129a17","843dd7b6a7c6269fd43827303f5cbe65c1fecabc30b4670a50d5a15d57daeeb9","f06d8b8567ee9fd799bf7f806efe93b67683ef24f4dea5b23ef12edff4434d9d","6017384f697ff38bc3ef6a546df5b230c3c31329db84cbfe686c83bec011e2b2","e1a5b30d9248549ca0c0bb1d653bafae20c64c4aa5928cc4cd3017b55c2177b0","a593632d5878f17295bd53e1c77f27bf4c15212822f764a2bfc1702f4b413fa0","a868a534ba1c2ca9060b8a13b0ffbbbf78b4be7b0ff80d8c75b02773f7192c29","da7545aba8f54a50fde23e2ede00158dc8112560d934cee58098dfb03aae9b9d","34baf65cfee92f110d6653322e2120c2d368ee64b3c7981dff08ed105c4f19b0","a1a261624efb3a00ff346b13580f70f3463b8cdcc58b60f5793ff11785d52cab","b0d10e46cfe3f6c476b69af02eaa38e4ccc7430221ce3109ae84bb9fb8282298","fab58e600970e66547644a44bc9918e3223aa2cbd9e8763cec004b2cfb48827e","bc81aff061c53a7140270555f4b22da4ecfe8601e8027cf5aa175fbdc7927c31","70e9a18da08294f75bf23e46c7d69e67634c0765d355887b9b41f0d959e1426e","e9eb1b173aa166892f3eddab182e49cfe59aa2e14d33aedb6b49d175ed6a3750"],"options":{"declaration":true,"declarationDir":"./dist-types","downlevelIteration":true,"emitDeclarationOnly":true,"esModuleInterop":true,"experimentalDecorators":true,"jsx":2,"module":1,"noFallthroughCasesInSwitch":true,"preserveConstEnums":true,"removeComments":false,"rootDir":"./src","strict":true,"target":1,"useUnknownInCatchVariables":false},"fileIdsList":[[137],[137,143],[139],[137,152,153],[154],[137,138,139,144,145,146,147,148,149,150,151,155,156,157,158,159,160,161,162,163,164,165,166],[37,44,45,46],[44,47],[37,41],[37,47],[35,36,45,46,47,48],[79,93,95],[97],[42,43,44,99],[42,44],[101,103,104],[101,102],[106],[35],[38,108],[108],[111],[108,109,110],[108,109,110,111,112],[39],[41,42,44],[97,98],[114],[114,117],[114,115,117,118],[43,116],[94],[34,40],[37],[37,120,121,122],[34,38,39,40,41,42,43,44,49,96,97,98,99,100,102,105,106,107,113,116,119,123,124,125,126,127,128,129,130,131,132,133,135,136],[35,38,39,43],[100],[41,43,102],[41,42],[41,106],[43,97,98],[65,79,93,95,126],[42,99,132,133],[41,65,66,93,100,126,131,133,134],[41],[34],[79,93,137],[140,141,142],[79,137],[172,173,175,178,180],[172],[172,175],[182],[65,93],[187,189],[186,187,188],[63,93],[193],[194],[200,203],[62,88,93,217,218,220],[219],[222,224,225,226,227,228,229,230,231,232,233,234],[222,223,225,226,227,228,229,230,231,232,233,234],[223,224,225,226,227,228,229,230,231,232,233,234],[222,223,224,226,227,228,229,230,231,232,233,234],[222,223,224,225,227,228,229,230,231,232,233,234],[222,223,224,225,226,228,229,230,231,232,233,234],[222,223,224,225,226,227,229,230,231,232,233,234],[222,223,224,225,226,227,228,230,231,232,233,234],[222,223,224,225,226,227,228,229,231,232,233,234],[222,223,224,225,226,227,228,229,230,232,233,234],[222,223,224,225,226,227,228,229,230,231,233,234],[222,223,224,225,226,227,228,229,230,231,232,234],[222,223,224,225,226,227,228,229,230,231,232,233],[50],[52],[53,58],[54,62,63,70,79],[54,55,62,70],[56,86],[57,58,63,71],[58,79],[59,60,62,70],[60],[61,62],[62],[62,63,64,79,85],[63,64],[62,65,70,79,85],[62,63,65,66,70,79,82,85],[65,67,79,82,85],[50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92],[62,68],[69,85],[60,62,70,79],[71],[72],[52,73],[74,84],[75],[76],[62,77],[77,78,86,88],[62,79],[80],[81],[70,79,82],[83],[70,84],[65,76,85],[86],[79,87],[88],[89],[62,64,79,85,88,90],[79,91],[240,279],[240,264,279],[279],[240],[240,265,279],[240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255,256,257,258,259,260,261,262,263,264,265,266,267,268,269,270,271,272,273,274,275,276,277,278],[265,279],[62,65,67,70,79,82,85,91,93],[283],[52,93,196,202],[200],[197,201],[206],[205,206],[205],[205,206,207,209,210,213,214,215,216],[206,210],[205,206,207,209,210,211,212],[205,210],[210,214],[206,207,208],[207],[205,206,210],[199],[198],[31],[32,169],[33,168],[167]],"referencedMap":[[138,1],[139,1],[144,2],[145,1],[147,3],[156,1],[152,1],[154,4],[155,5],[153,1],[167,6],[47,7],[48,8],[45,9],[46,10],[49,11],[96,12],[98,13],[100,14],[99,15],[105,16],[103,17],[107,18],[38,19],[109,20],[110,21],[112,22],[111,23],[113,24],[108,25],[106,26],[114,27],[115,28],[118,29],[119,30],[117,31],[95,32],[41,33],[120,34],[121,34],[123,35],[122,34],[137,36],[44,37],[124,38],[126,39],[127,40],[128,41],[129,42],[130,12],[131,12],[132,43],[134,44],[135,45],[40,46],[43,26],[136,47],[141,48],[143,49],[142,50],[181,51],[175,52],[173,52],[178,53],[176,52],[180,52],[183,54],[184,54],[185,55],[190,56],[189,57],[191,58],[192,58],[194,59],[195,60],[204,61],[219,62],[220,63],[223,64],[224,65],[222,66],[225,67],[226,68],[227,69],[228,70],[229,71],[230,72],[231,73],[232,74],[233,75],[234,76],[50,77],[52,78],[53,79],[54,80],[55,81],[56,82],[57,83],[58,84],[59,85],[60,86],[61,87],[62,88],[63,89],[64,90],[65,91],[66,92],[67,93],[93,94],[68,95],[69,96],[70,97],[71,98],[72,99],[73,100],[74,101],[75,102],[76,103],[77,104],[78,105],[79,106],[80,107],[81,108],[82,109],[83,110],[84,111],[85,112],[86,113],[87,114],[88,115],[89,116],[90,117],[91,118],[264,119],[265,120],[240,121],[243,121],[262,119],[263,119],[253,119],[252,122],[250,119],[245,119],[258,119],[256,119],[260,119],[244,119],[257,119],[261,119],[246,119],[247,119],[259,119],[241,119],[248,119],[249,119],[251,119],[255,119],[266,123],[254,119],[242,119],[279,124],[273,123],[275,125],[274,123],[267,123],[268,123],[270,123],[272,123],[276,125],[277,125],[269,125],[271,125],[282,126],[284,127],[203,128],[201,129],[202,130],[207,131],[216,132],[206,133],[217,134],[212,135],[213,136],[211,137],[215,138],[209,139],[208,140],[214,141],[210,132],[200,142],[199,143],[32,144],[170,145],[169,146],[168,147]],"exportedModulesMap":[[138,1],[139,1],[144,2],[145,1],[147,3],[156,1],[152,1],[154,4],[155,5],[153,1],[167,6],[47,7],[48,8],[45,9],[46,10],[49,11],[96,12],[98,13],[100,14],[99,15],[105,16],[103,17],[107,18],[38,19],[109,20],[110,21],[112,22],[111,23],[113,24],[108,25],[106,26],[114,27],[115,28],[118,29],[119,30],[117,31],[95,32],[41,33],[120,34],[121,34],[123,35],[122,34],[137,36],[44,37],[124,38],[126,39],[127,40],[128,41],[129,42],[130,12],[131,12],[132,43],[134,44],[135,45],[40,46],[43,26],[136,47],[141,48],[143,49],[142,50],[181,51],[175,52],[173,52],[178,53],[176,52],[180,52],[183,54],[184,54],[185,55],[190,56],[189,57],[191,58],[192,58],[194,59],[195,60],[204,61],[219,62],[220,63],[223,64],[224,65],[222,66],[225,67],[226,68],[227,69],[228,70],[229,71],[230,72],[231,73],[232,74],[233,75],[234,76],[50,77],[52,78],[53,79],[54,80],[55,81],[56,82],[57,83],[58,84],[59,85],[60,86],[61,87],[62,88],[63,89],[64,90],[65,91],[66,92],[67,93],[93,94],[68,95],[69,96],[70,97],[71,98],[72,99],[73,100],[74,101],[75,102],[76,103],[77,104],[78,105],[79,106],[80,107],[81,108],[82,109],[83,110],[84,111],[85,112],[86,113],[87,114],[88,115],[89,116],[90,117],[91,118],[264,119],[265,120],[240,121],[243,121],[262,119],[263,119],[253,119],[252,122],[250,119],[245,119],[258,119],[256,119],[260,119],[244,119],[257,119],[261,119],[246,119],[247,119],[259,119],[241,119],[248,119],[249,119],[251,119],[255,119],[266,123],[254,119],[242,119],[279,124],[273,123],[275,125],[274,123],[267,123],[268,123],[270,123],[272,123],[276,125],[277,125],[269,125],[271,125],[282,126],[284,127],[203,128],[201,129],[202,130],[207,131],[216,132],[206,133],[217,134],[212,135],[213,136],[211,137],[215,138],[209,139],[208,140],[214,141],[210,132],[200,142],[199,143],[32,144],[170,145],[169,146]],"semanticDiagnosticsPerFile":[198,138,139,144,145,146,147,148,149,150,151,156,157,152,154,155,153,158,159,167,160,161,162,163,164,165,166,34,36,47,48,45,46,35,49,96,98,100,99,101,105,103,104,97,107,38,109,110,112,111,113,108,106,114,115,118,119,117,95,41,120,121,37,123,122,137,39,44,124,125,42,116,126,127,128,129,130,131,132,102,134,135,94,133,40,43,136,140,141,143,142,171,181,175,174,173,172,178,176,177,180,179,183,184,182,185,190,186,189,187,191,192,193,194,195,204,219,220,188,221,223,224,222,225,226,227,228,229,230,231,232,233,234,235,236,50,52,53,54,55,56,57,58,59,60,61,62,63,64,51,92,65,66,67,93,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,237,238,239,264,265,240,243,262,263,253,252,250,245,258,256,260,244,257,261,246,247,259,241,248,249,251,255,266,254,242,279,278,273,275,274,267,268,270,272,276,277,269,271,280,218,281,282,283,284,197,203,196,201,202,207,216,205,206,217,212,213,211,215,209,208,214,210,200,199,6,7,9,8,2,10,11,12,13,14,15,16,17,3,4,21,18,19,20,22,23,24,5,25,26,27,28,29,1,30,31,32,170,33,169,168]},"version":"4.9.5"} \ No newline at end of file diff --git a/node_modules/@aws-sdk/credential-provider-env/LICENSE b/node_modules/@aws-sdk/credential-provider-env/LICENSE deleted file mode 100644 index 7b6491ba..00000000 --- a/node_modules/@aws-sdk/credential-provider-env/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. \ No newline at end of file diff --git a/node_modules/@aws-sdk/credential-provider-env/README.md b/node_modules/@aws-sdk/credential-provider-env/README.md deleted file mode 100644 index 61a64361..00000000 --- a/node_modules/@aws-sdk/credential-provider-env/README.md +++ /dev/null @@ -1,11 +0,0 @@ -# @aws-sdk/credential-provider-env - -[![NPM version](https://img.shields.io/npm/v/@aws-sdk/credential-provider-env/latest.svg)](https://www.npmjs.com/package/@aws-sdk/credential-provider-env) -[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/credential-provider-env.svg)](https://www.npmjs.com/package/@aws-sdk/credential-provider-env) - -> An internal package - -## Usage - -You probably shouldn't, at least directly. Please use [@aws-sdk/credential-providers](https://www.npmjs.com/package/@aws-sdk/credential-providers) -instead. diff --git a/node_modules/@aws-sdk/credential-provider-env/dist-cjs/fromEnv.js b/node_modules/@aws-sdk/credential-provider-env/dist-cjs/fromEnv.js deleted file mode 100644 index 353bdaa2..00000000 --- a/node_modules/@aws-sdk/credential-provider-env/dist-cjs/fromEnv.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.fromEnv = exports.ENV_EXPIRATION = exports.ENV_SESSION = exports.ENV_SECRET = exports.ENV_KEY = void 0; -const property_provider_1 = require("@smithy/property-provider"); -exports.ENV_KEY = "AWS_ACCESS_KEY_ID"; -exports.ENV_SECRET = "AWS_SECRET_ACCESS_KEY"; -exports.ENV_SESSION = "AWS_SESSION_TOKEN"; -exports.ENV_EXPIRATION = "AWS_CREDENTIAL_EXPIRATION"; -const fromEnv = () => async () => { - const accessKeyId = process.env[exports.ENV_KEY]; - const secretAccessKey = process.env[exports.ENV_SECRET]; - const sessionToken = process.env[exports.ENV_SESSION]; - const expiry = process.env[exports.ENV_EXPIRATION]; - if (accessKeyId && secretAccessKey) { - return { - accessKeyId, - secretAccessKey, - ...(sessionToken && { sessionToken }), - ...(expiry && { expiration: new Date(expiry) }), - }; - } - throw new property_provider_1.CredentialsProviderError("Unable to find environment variable credentials."); -}; -exports.fromEnv = fromEnv; diff --git a/node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js b/node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js deleted file mode 100644 index 567b7209..00000000 --- a/node_modules/@aws-sdk/credential-provider-env/dist-cjs/index.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./fromEnv"), exports); diff --git a/node_modules/@aws-sdk/credential-provider-env/dist-es/fromEnv.js b/node_modules/@aws-sdk/credential-provider-env/dist-es/fromEnv.js deleted file mode 100644 index e5186243..00000000 --- a/node_modules/@aws-sdk/credential-provider-env/dist-es/fromEnv.js +++ /dev/null @@ -1,20 +0,0 @@ -import { CredentialsProviderError } from "@smithy/property-provider"; -export const ENV_KEY = "AWS_ACCESS_KEY_ID"; -export const ENV_SECRET = "AWS_SECRET_ACCESS_KEY"; -export const ENV_SESSION = "AWS_SESSION_TOKEN"; -export const ENV_EXPIRATION = "AWS_CREDENTIAL_EXPIRATION"; -export const fromEnv = () => async () => { - const accessKeyId = process.env[ENV_KEY]; - const secretAccessKey = process.env[ENV_SECRET]; - const sessionToken = process.env[ENV_SESSION]; - const expiry = process.env[ENV_EXPIRATION]; - if (accessKeyId && secretAccessKey) { - return { - accessKeyId, - secretAccessKey, - ...(sessionToken && { sessionToken }), - ...(expiry && { expiration: new Date(expiry) }), - }; - } - throw new CredentialsProviderError("Unable to find environment variable credentials."); -}; diff --git a/node_modules/@aws-sdk/credential-provider-env/dist-es/index.js b/node_modules/@aws-sdk/credential-provider-env/dist-es/index.js deleted file mode 100644 index 17bf6daa..00000000 --- a/node_modules/@aws-sdk/credential-provider-env/dist-es/index.js +++ /dev/null @@ -1 +0,0 @@ -export * from "./fromEnv"; diff --git a/node_modules/@aws-sdk/credential-provider-env/dist-types/fromEnv.d.ts b/node_modules/@aws-sdk/credential-provider-env/dist-types/fromEnv.d.ts deleted file mode 100644 index 8f9daa1a..00000000 --- a/node_modules/@aws-sdk/credential-provider-env/dist-types/fromEnv.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { AwsCredentialIdentityProvider } from "@smithy/types"; -/** - * @internal - */ -export declare const ENV_KEY = "AWS_ACCESS_KEY_ID"; -/** - * @internal - */ -export declare const ENV_SECRET = "AWS_SECRET_ACCESS_KEY"; -/** - * @internal - */ -export declare const ENV_SESSION = "AWS_SESSION_TOKEN"; -/** - * @internal - */ -export declare const ENV_EXPIRATION = "AWS_CREDENTIAL_EXPIRATION"; -/** - * @internal - * - * Source AWS credentials from known environment variables. If either the - * `AWS_ACCESS_KEY_ID` or `AWS_SECRET_ACCESS_KEY` environment variable is not - * set in this process, the provider will return a rejected promise. - */ -export declare const fromEnv: () => AwsCredentialIdentityProvider; diff --git a/node_modules/@aws-sdk/credential-provider-env/dist-types/index.d.ts b/node_modules/@aws-sdk/credential-provider-env/dist-types/index.d.ts deleted file mode 100644 index fe76e31b..00000000 --- a/node_modules/@aws-sdk/credential-provider-env/dist-types/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/** - * @internal - */ -export * from "./fromEnv"; diff --git a/node_modules/@aws-sdk/credential-provider-env/dist-types/ts3.4/fromEnv.d.ts b/node_modules/@aws-sdk/credential-provider-env/dist-types/ts3.4/fromEnv.d.ts deleted file mode 100644 index 7e6699d2..00000000 --- a/node_modules/@aws-sdk/credential-provider-env/dist-types/ts3.4/fromEnv.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { AwsCredentialIdentityProvider } from "@smithy/types"; -export declare const ENV_KEY = "AWS_ACCESS_KEY_ID"; -export declare const ENV_SECRET = "AWS_SECRET_ACCESS_KEY"; -export declare const ENV_SESSION = "AWS_SESSION_TOKEN"; -export declare const ENV_EXPIRATION = "AWS_CREDENTIAL_EXPIRATION"; -export declare const fromEnv: () => AwsCredentialIdentityProvider; diff --git a/node_modules/@aws-sdk/credential-provider-env/dist-types/ts3.4/index.d.ts b/node_modules/@aws-sdk/credential-provider-env/dist-types/ts3.4/index.d.ts deleted file mode 100644 index 17bf6daa..00000000 --- a/node_modules/@aws-sdk/credential-provider-env/dist-types/ts3.4/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./fromEnv"; diff --git a/node_modules/@aws-sdk/credential-provider-env/package.json b/node_modules/@aws-sdk/credential-provider-env/package.json deleted file mode 100644 index 0cbb91a4..00000000 --- a/node_modules/@aws-sdk/credential-provider-env/package.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "name": "@aws-sdk/credential-provider-env", - "version": "3.451.0", - "description": "AWS credential provider that sources credentials from known environment variables", - "main": "./dist-cjs/index.js", - "module": "./dist-es/index.js", - "scripts": { - "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", - "build:cjs": "tsc -p tsconfig.cjs.json", - "build:es": "tsc -p tsconfig.es.json", - "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build", - "build:types": "tsc -p tsconfig.types.json", - "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", - "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "jest" - }, - "keywords": [ - "aws", - "credentials" - ], - "author": { - "name": "AWS SDK for JavaScript Team", - "url": "https://aws.amazon.com/javascript/" - }, - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.451.0", - "@smithy/property-provider": "^2.0.0", - "@smithy/types": "^2.5.0", - "tslib": "^2.5.0" - }, - "devDependencies": { - "@tsconfig/recommended": "1.0.1", - "@types/node": "^14.14.31", - "concurrently": "7.0.0", - "downlevel-dts": "0.10.1", - "rimraf": "3.0.2", - "typedoc": "0.23.23", - "typescript": "~4.9.5" - }, - "types": "./dist-types/index.d.ts", - "engines": { - "node": ">=14.0.0" - }, - "typesVersions": { - "<4.0": { - "dist-types/*": [ - "dist-types/ts3.4/*" - ] - } - }, - "files": [ - "dist-*/**" - ], - "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/credential-provider-env", - "repository": { - "type": "git", - "url": "https://github.com/aws/aws-sdk-js-v3.git", - "directory": "packages/credential-provider-env" - }, - "typedoc": { - "entryPoint": "src/index.ts" - } -} diff --git a/node_modules/@aws-sdk/credential-provider-ini/LICENSE b/node_modules/@aws-sdk/credential-provider-ini/LICENSE deleted file mode 100644 index 7b6491ba..00000000 --- a/node_modules/@aws-sdk/credential-provider-ini/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. \ No newline at end of file diff --git a/node_modules/@aws-sdk/credential-provider-ini/README.md b/node_modules/@aws-sdk/credential-provider-ini/README.md deleted file mode 100644 index b4f3af1b..00000000 --- a/node_modules/@aws-sdk/credential-provider-ini/README.md +++ /dev/null @@ -1,11 +0,0 @@ -# @aws-sdk/credential-provider-ini - -[![NPM version](https://img.shields.io/npm/v/@aws-sdk/credential-provider-ini/latest.svg)](https://www.npmjs.com/package/@aws-sdk/credential-provider-ini) -[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/credential-provider-ini.svg)](https://www.npmjs.com/package/@aws-sdk/credential-provider-ini) - -> An internal package - -## Usage - -You probably shouldn't, at least directly. Please use [@aws-sdk/credential-providers](https://www.npmjs.com/package/@aws-sdk/credential-providers) -instead. diff --git a/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/fromIni.js b/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/fromIni.js deleted file mode 100644 index 0556c432..00000000 --- a/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/fromIni.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.fromIni = void 0; -const shared_ini_file_loader_1 = require("@smithy/shared-ini-file-loader"); -const resolveProfileData_1 = require("./resolveProfileData"); -const fromIni = (init = {}) => async () => { - const profiles = await (0, shared_ini_file_loader_1.parseKnownFiles)(init); - return (0, resolveProfileData_1.resolveProfileData)((0, shared_ini_file_loader_1.getProfileName)(init), profiles, init); -}; -exports.fromIni = fromIni; diff --git a/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js b/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js deleted file mode 100644 index 07290210..00000000 --- a/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/index.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./fromIni"), exports); diff --git a/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveAssumeRoleCredentials.js b/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveAssumeRoleCredentials.js deleted file mode 100644 index b1b34de3..00000000 --- a/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveAssumeRoleCredentials.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.resolveAssumeRoleCredentials = exports.isAssumeRoleProfile = void 0; -const property_provider_1 = require("@smithy/property-provider"); -const shared_ini_file_loader_1 = require("@smithy/shared-ini-file-loader"); -const resolveCredentialSource_1 = require("./resolveCredentialSource"); -const resolveProfileData_1 = require("./resolveProfileData"); -const isAssumeRoleProfile = (arg) => Boolean(arg) && - typeof arg === "object" && - typeof arg.role_arn === "string" && - ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1 && - ["undefined", "string"].indexOf(typeof arg.external_id) > -1 && - ["undefined", "string"].indexOf(typeof arg.mfa_serial) > -1 && - (isAssumeRoleWithSourceProfile(arg) || isAssumeRoleWithProviderProfile(arg)); -exports.isAssumeRoleProfile = isAssumeRoleProfile; -const isAssumeRoleWithSourceProfile = (arg) => typeof arg.source_profile === "string" && typeof arg.credential_source === "undefined"; -const isAssumeRoleWithProviderProfile = (arg) => typeof arg.credential_source === "string" && typeof arg.source_profile === "undefined"; -const resolveAssumeRoleCredentials = async (profileName, profiles, options, visitedProfiles = {}) => { - const data = profiles[profileName]; - if (!options.roleAssumer) { - throw new property_provider_1.CredentialsProviderError(`Profile ${profileName} requires a role to be assumed, but no role assumption callback was provided.`, false); - } - const { source_profile } = data; - if (source_profile && source_profile in visitedProfiles) { - throw new property_provider_1.CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile` + - ` ${(0, shared_ini_file_loader_1.getProfileName)(options)}. Profiles visited: ` + - Object.keys(visitedProfiles).join(", "), false); - } - const sourceCredsProvider = source_profile - ? (0, resolveProfileData_1.resolveProfileData)(source_profile, profiles, options, { - ...visitedProfiles, - [source_profile]: true, - }) - : (0, resolveCredentialSource_1.resolveCredentialSource)(data.credential_source, profileName)(); - const params = { - RoleArn: data.role_arn, - RoleSessionName: data.role_session_name || `aws-sdk-js-${Date.now()}`, - ExternalId: data.external_id, - DurationSeconds: parseInt(data.duration_seconds || "3600", 10), - }; - const { mfa_serial } = data; - if (mfa_serial) { - if (!options.mfaCodeProvider) { - throw new property_provider_1.CredentialsProviderError(`Profile ${profileName} requires multi-factor authentication, but no MFA code callback was provided.`, false); - } - params.SerialNumber = mfa_serial; - params.TokenCode = await options.mfaCodeProvider(mfa_serial); - } - const sourceCreds = await sourceCredsProvider; - return options.roleAssumer(sourceCreds, params); -}; -exports.resolveAssumeRoleCredentials = resolveAssumeRoleCredentials; diff --git a/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveCredentialSource.js b/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveCredentialSource.js deleted file mode 100644 index 74a8586c..00000000 --- a/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveCredentialSource.js +++ /dev/null @@ -1,21 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.resolveCredentialSource = void 0; -const credential_provider_env_1 = require("@aws-sdk/credential-provider-env"); -const credential_provider_imds_1 = require("@smithy/credential-provider-imds"); -const property_provider_1 = require("@smithy/property-provider"); -const resolveCredentialSource = (credentialSource, profileName) => { - const sourceProvidersMap = { - EcsContainer: credential_provider_imds_1.fromContainerMetadata, - Ec2InstanceMetadata: credential_provider_imds_1.fromInstanceMetadata, - Environment: credential_provider_env_1.fromEnv, - }; - if (credentialSource in sourceProvidersMap) { - return sourceProvidersMap[credentialSource](); - } - else { - throw new property_provider_1.CredentialsProviderError(`Unsupported credential source in profile ${profileName}. Got ${credentialSource}, ` + - `expected EcsContainer or Ec2InstanceMetadata or Environment.`); - } -}; -exports.resolveCredentialSource = resolveCredentialSource; diff --git a/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveProcessCredentials.js b/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveProcessCredentials.js deleted file mode 100644 index 395d0319..00000000 --- a/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveProcessCredentials.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.resolveProcessCredentials = exports.isProcessProfile = void 0; -const credential_provider_process_1 = require("@aws-sdk/credential-provider-process"); -const isProcessProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.credential_process === "string"; -exports.isProcessProfile = isProcessProfile; -const resolveProcessCredentials = async (options, profile) => (0, credential_provider_process_1.fromProcess)({ - ...options, - profile, -})(); -exports.resolveProcessCredentials = resolveProcessCredentials; diff --git a/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveProfileData.js b/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveProfileData.js deleted file mode 100644 index 70270c05..00000000 --- a/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveProfileData.js +++ /dev/null @@ -1,32 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.resolveProfileData = void 0; -const property_provider_1 = require("@smithy/property-provider"); -const resolveAssumeRoleCredentials_1 = require("./resolveAssumeRoleCredentials"); -const resolveProcessCredentials_1 = require("./resolveProcessCredentials"); -const resolveSsoCredentials_1 = require("./resolveSsoCredentials"); -const resolveStaticCredentials_1 = require("./resolveStaticCredentials"); -const resolveWebIdentityCredentials_1 = require("./resolveWebIdentityCredentials"); -const resolveProfileData = async (profileName, profiles, options, visitedProfiles = {}) => { - const data = profiles[profileName]; - if (Object.keys(visitedProfiles).length > 0 && (0, resolveStaticCredentials_1.isStaticCredsProfile)(data)) { - return (0, resolveStaticCredentials_1.resolveStaticCredentials)(data); - } - if ((0, resolveAssumeRoleCredentials_1.isAssumeRoleProfile)(data)) { - return (0, resolveAssumeRoleCredentials_1.resolveAssumeRoleCredentials)(profileName, profiles, options, visitedProfiles); - } - if ((0, resolveStaticCredentials_1.isStaticCredsProfile)(data)) { - return (0, resolveStaticCredentials_1.resolveStaticCredentials)(data); - } - if ((0, resolveWebIdentityCredentials_1.isWebIdentityProfile)(data)) { - return (0, resolveWebIdentityCredentials_1.resolveWebIdentityCredentials)(data, options); - } - if ((0, resolveProcessCredentials_1.isProcessProfile)(data)) { - return (0, resolveProcessCredentials_1.resolveProcessCredentials)(options, profileName); - } - if ((0, resolveSsoCredentials_1.isSsoProfile)(data)) { - return (0, resolveSsoCredentials_1.resolveSsoCredentials)(data); - } - throw new property_provider_1.CredentialsProviderError(`Profile ${profileName} could not be found or parsed in shared credentials file.`); -}; -exports.resolveProfileData = resolveProfileData; diff --git a/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveSsoCredentials.js b/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveSsoCredentials.js deleted file mode 100644 index 27b55c32..00000000 --- a/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveSsoCredentials.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.resolveSsoCredentials = exports.isSsoProfile = void 0; -const credential_provider_sso_1 = require("@aws-sdk/credential-provider-sso"); -var credential_provider_sso_2 = require("@aws-sdk/credential-provider-sso"); -Object.defineProperty(exports, "isSsoProfile", { enumerable: true, get: function () { return credential_provider_sso_2.isSsoProfile; } }); -const resolveSsoCredentials = (data) => { - const { sso_start_url, sso_account_id, sso_session, sso_region, sso_role_name } = (0, credential_provider_sso_1.validateSsoProfile)(data); - return (0, credential_provider_sso_1.fromSSO)({ - ssoStartUrl: sso_start_url, - ssoAccountId: sso_account_id, - ssoSession: sso_session, - ssoRegion: sso_region, - ssoRoleName: sso_role_name, - })(); -}; -exports.resolveSsoCredentials = resolveSsoCredentials; diff --git a/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveStaticCredentials.js b/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveStaticCredentials.js deleted file mode 100644 index 43d4df73..00000000 --- a/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveStaticCredentials.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.resolveStaticCredentials = exports.isStaticCredsProfile = void 0; -const isStaticCredsProfile = (arg) => Boolean(arg) && - typeof arg === "object" && - typeof arg.aws_access_key_id === "string" && - typeof arg.aws_secret_access_key === "string" && - ["undefined", "string"].indexOf(typeof arg.aws_session_token) > -1; -exports.isStaticCredsProfile = isStaticCredsProfile; -const resolveStaticCredentials = (profile) => Promise.resolve({ - accessKeyId: profile.aws_access_key_id, - secretAccessKey: profile.aws_secret_access_key, - sessionToken: profile.aws_session_token, -}); -exports.resolveStaticCredentials = resolveStaticCredentials; diff --git a/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveWebIdentityCredentials.js b/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveWebIdentityCredentials.js deleted file mode 100644 index 4b5d0bd4..00000000 --- a/node_modules/@aws-sdk/credential-provider-ini/dist-cjs/resolveWebIdentityCredentials.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.resolveWebIdentityCredentials = exports.isWebIdentityProfile = void 0; -const credential_provider_web_identity_1 = require("@aws-sdk/credential-provider-web-identity"); -const isWebIdentityProfile = (arg) => Boolean(arg) && - typeof arg === "object" && - typeof arg.web_identity_token_file === "string" && - typeof arg.role_arn === "string" && - ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1; -exports.isWebIdentityProfile = isWebIdentityProfile; -const resolveWebIdentityCredentials = async (profile, options) => (0, credential_provider_web_identity_1.fromTokenFile)({ - webIdentityTokenFile: profile.web_identity_token_file, - roleArn: profile.role_arn, - roleSessionName: profile.role_session_name, - roleAssumerWithWebIdentity: options.roleAssumerWithWebIdentity, -})(); -exports.resolveWebIdentityCredentials = resolveWebIdentityCredentials; diff --git a/node_modules/@aws-sdk/credential-provider-ini/dist-es/fromIni.js b/node_modules/@aws-sdk/credential-provider-ini/dist-es/fromIni.js deleted file mode 100644 index 67930efa..00000000 --- a/node_modules/@aws-sdk/credential-provider-ini/dist-es/fromIni.js +++ /dev/null @@ -1,6 +0,0 @@ -import { getProfileName, parseKnownFiles } from "@smithy/shared-ini-file-loader"; -import { resolveProfileData } from "./resolveProfileData"; -export const fromIni = (init = {}) => async () => { - const profiles = await parseKnownFiles(init); - return resolveProfileData(getProfileName(init), profiles, init); -}; diff --git a/node_modules/@aws-sdk/credential-provider-ini/dist-es/index.js b/node_modules/@aws-sdk/credential-provider-ini/dist-es/index.js deleted file mode 100644 index b0191315..00000000 --- a/node_modules/@aws-sdk/credential-provider-ini/dist-es/index.js +++ /dev/null @@ -1 +0,0 @@ -export * from "./fromIni"; diff --git a/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveAssumeRoleCredentials.js b/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveAssumeRoleCredentials.js deleted file mode 100644 index c71ac063..00000000 --- a/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveAssumeRoleCredentials.js +++ /dev/null @@ -1,47 +0,0 @@ -import { CredentialsProviderError } from "@smithy/property-provider"; -import { getProfileName } from "@smithy/shared-ini-file-loader"; -import { resolveCredentialSource } from "./resolveCredentialSource"; -import { resolveProfileData } from "./resolveProfileData"; -export const isAssumeRoleProfile = (arg) => Boolean(arg) && - typeof arg === "object" && - typeof arg.role_arn === "string" && - ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1 && - ["undefined", "string"].indexOf(typeof arg.external_id) > -1 && - ["undefined", "string"].indexOf(typeof arg.mfa_serial) > -1 && - (isAssumeRoleWithSourceProfile(arg) || isAssumeRoleWithProviderProfile(arg)); -const isAssumeRoleWithSourceProfile = (arg) => typeof arg.source_profile === "string" && typeof arg.credential_source === "undefined"; -const isAssumeRoleWithProviderProfile = (arg) => typeof arg.credential_source === "string" && typeof arg.source_profile === "undefined"; -export const resolveAssumeRoleCredentials = async (profileName, profiles, options, visitedProfiles = {}) => { - const data = profiles[profileName]; - if (!options.roleAssumer) { - throw new CredentialsProviderError(`Profile ${profileName} requires a role to be assumed, but no role assumption callback was provided.`, false); - } - const { source_profile } = data; - if (source_profile && source_profile in visitedProfiles) { - throw new CredentialsProviderError(`Detected a cycle attempting to resolve credentials for profile` + - ` ${getProfileName(options)}. Profiles visited: ` + - Object.keys(visitedProfiles).join(", "), false); - } - const sourceCredsProvider = source_profile - ? resolveProfileData(source_profile, profiles, options, { - ...visitedProfiles, - [source_profile]: true, - }) - : resolveCredentialSource(data.credential_source, profileName)(); - const params = { - RoleArn: data.role_arn, - RoleSessionName: data.role_session_name || `aws-sdk-js-${Date.now()}`, - ExternalId: data.external_id, - DurationSeconds: parseInt(data.duration_seconds || "3600", 10), - }; - const { mfa_serial } = data; - if (mfa_serial) { - if (!options.mfaCodeProvider) { - throw new CredentialsProviderError(`Profile ${profileName} requires multi-factor authentication, but no MFA code callback was provided.`, false); - } - params.SerialNumber = mfa_serial; - params.TokenCode = await options.mfaCodeProvider(mfa_serial); - } - const sourceCreds = await sourceCredsProvider; - return options.roleAssumer(sourceCreds, params); -}; diff --git a/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveCredentialSource.js b/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveCredentialSource.js deleted file mode 100644 index a8fc48cc..00000000 --- a/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveCredentialSource.js +++ /dev/null @@ -1,17 +0,0 @@ -import { fromEnv } from "@aws-sdk/credential-provider-env"; -import { fromContainerMetadata, fromInstanceMetadata } from "@smithy/credential-provider-imds"; -import { CredentialsProviderError } from "@smithy/property-provider"; -export const resolveCredentialSource = (credentialSource, profileName) => { - const sourceProvidersMap = { - EcsContainer: fromContainerMetadata, - Ec2InstanceMetadata: fromInstanceMetadata, - Environment: fromEnv, - }; - if (credentialSource in sourceProvidersMap) { - return sourceProvidersMap[credentialSource](); - } - else { - throw new CredentialsProviderError(`Unsupported credential source in profile ${profileName}. Got ${credentialSource}, ` + - `expected EcsContainer or Ec2InstanceMetadata or Environment.`); - } -}; diff --git a/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProcessCredentials.js b/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProcessCredentials.js deleted file mode 100644 index 36a4be46..00000000 --- a/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProcessCredentials.js +++ /dev/null @@ -1,6 +0,0 @@ -import { fromProcess } from "@aws-sdk/credential-provider-process"; -export const isProcessProfile = (arg) => Boolean(arg) && typeof arg === "object" && typeof arg.credential_process === "string"; -export const resolveProcessCredentials = async (options, profile) => fromProcess({ - ...options, - profile, -})(); diff --git a/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProfileData.js b/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProfileData.js deleted file mode 100644 index 90efcba3..00000000 --- a/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveProfileData.js +++ /dev/null @@ -1,28 +0,0 @@ -import { CredentialsProviderError } from "@smithy/property-provider"; -import { isAssumeRoleProfile, resolveAssumeRoleCredentials } from "./resolveAssumeRoleCredentials"; -import { isProcessProfile, resolveProcessCredentials } from "./resolveProcessCredentials"; -import { isSsoProfile, resolveSsoCredentials } from "./resolveSsoCredentials"; -import { isStaticCredsProfile, resolveStaticCredentials } from "./resolveStaticCredentials"; -import { isWebIdentityProfile, resolveWebIdentityCredentials } from "./resolveWebIdentityCredentials"; -export const resolveProfileData = async (profileName, profiles, options, visitedProfiles = {}) => { - const data = profiles[profileName]; - if (Object.keys(visitedProfiles).length > 0 && isStaticCredsProfile(data)) { - return resolveStaticCredentials(data); - } - if (isAssumeRoleProfile(data)) { - return resolveAssumeRoleCredentials(profileName, profiles, options, visitedProfiles); - } - if (isStaticCredsProfile(data)) { - return resolveStaticCredentials(data); - } - if (isWebIdentityProfile(data)) { - return resolveWebIdentityCredentials(data, options); - } - if (isProcessProfile(data)) { - return resolveProcessCredentials(options, profileName); - } - if (isSsoProfile(data)) { - return resolveSsoCredentials(data); - } - throw new CredentialsProviderError(`Profile ${profileName} could not be found or parsed in shared credentials file.`); -}; diff --git a/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveSsoCredentials.js b/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveSsoCredentials.js deleted file mode 100644 index d25395b9..00000000 --- a/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveSsoCredentials.js +++ /dev/null @@ -1,12 +0,0 @@ -import { fromSSO, validateSsoProfile } from "@aws-sdk/credential-provider-sso"; -export { isSsoProfile } from "@aws-sdk/credential-provider-sso"; -export const resolveSsoCredentials = (data) => { - const { sso_start_url, sso_account_id, sso_session, sso_region, sso_role_name } = validateSsoProfile(data); - return fromSSO({ - ssoStartUrl: sso_start_url, - ssoAccountId: sso_account_id, - ssoSession: sso_session, - ssoRegion: sso_region, - ssoRoleName: sso_role_name, - })(); -}; diff --git a/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveStaticCredentials.js b/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveStaticCredentials.js deleted file mode 100644 index 717f2d64..00000000 --- a/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveStaticCredentials.js +++ /dev/null @@ -1,10 +0,0 @@ -export const isStaticCredsProfile = (arg) => Boolean(arg) && - typeof arg === "object" && - typeof arg.aws_access_key_id === "string" && - typeof arg.aws_secret_access_key === "string" && - ["undefined", "string"].indexOf(typeof arg.aws_session_token) > -1; -export const resolveStaticCredentials = (profile) => Promise.resolve({ - accessKeyId: profile.aws_access_key_id, - secretAccessKey: profile.aws_secret_access_key, - sessionToken: profile.aws_session_token, -}); diff --git a/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveWebIdentityCredentials.js b/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveWebIdentityCredentials.js deleted file mode 100644 index 6cce9f46..00000000 --- a/node_modules/@aws-sdk/credential-provider-ini/dist-es/resolveWebIdentityCredentials.js +++ /dev/null @@ -1,12 +0,0 @@ -import { fromTokenFile } from "@aws-sdk/credential-provider-web-identity"; -export const isWebIdentityProfile = (arg) => Boolean(arg) && - typeof arg === "object" && - typeof arg.web_identity_token_file === "string" && - typeof arg.role_arn === "string" && - ["undefined", "string"].indexOf(typeof arg.role_session_name) > -1; -export const resolveWebIdentityCredentials = async (profile, options) => fromTokenFile({ - webIdentityTokenFile: profile.web_identity_token_file, - roleArn: profile.role_arn, - roleSessionName: profile.role_session_name, - roleAssumerWithWebIdentity: options.roleAssumerWithWebIdentity, -})(); diff --git a/node_modules/@aws-sdk/credential-provider-ini/dist-types/fromIni.d.ts b/node_modules/@aws-sdk/credential-provider-ini/dist-types/fromIni.d.ts deleted file mode 100644 index 54336b5f..00000000 --- a/node_modules/@aws-sdk/credential-provider-ini/dist-types/fromIni.d.ts +++ /dev/null @@ -1,41 +0,0 @@ -import { AssumeRoleWithWebIdentityParams } from "@aws-sdk/credential-provider-web-identity"; -import { SourceProfileInit } from "@smithy/shared-ini-file-loader"; -import { AwsCredentialIdentity, AwsCredentialIdentityProvider } from "@smithy/types"; -import { AssumeRoleParams } from "./resolveAssumeRoleCredentials"; -/** - * @internal - */ -export interface FromIniInit extends SourceProfileInit { - /** - * A function that returns a promise fulfilled with an MFA token code for - * the provided MFA Serial code. If a profile requires an MFA code and - * `mfaCodeProvider` is not a valid function, the credential provider - * promise will be rejected. - * - * @param mfaSerial The serial code of the MFA device specified. - */ - mfaCodeProvider?: (mfaSerial: string) => Promise; - /** - * A function that assumes a role and returns a promise fulfilled with - * credentials for the assumed role. - * - * @param sourceCreds The credentials with which to assume a role. - * @param params - */ - roleAssumer?: (sourceCreds: AwsCredentialIdentity, params: AssumeRoleParams) => Promise; - /** - * A function that assumes a role with web identity and returns a promise fulfilled with - * credentials for the assumed role. - * - * @param sourceCreds The credentials with which to assume a role. - * @param params - */ - roleAssumerWithWebIdentity?: (params: AssumeRoleWithWebIdentityParams) => Promise; -} -/** - * @internal - * - * Creates a credential provider that will read from ini files and supports - * role assumption and multi-factor authentication. - */ -export declare const fromIni: (init?: FromIniInit) => AwsCredentialIdentityProvider; diff --git a/node_modules/@aws-sdk/credential-provider-ini/dist-types/index.d.ts b/node_modules/@aws-sdk/credential-provider-ini/dist-types/index.d.ts deleted file mode 100644 index 75680c07..00000000 --- a/node_modules/@aws-sdk/credential-provider-ini/dist-types/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/** - * @internal - */ -export * from "./fromIni"; diff --git a/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveAssumeRoleCredentials.d.ts b/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveAssumeRoleCredentials.d.ts deleted file mode 100644 index 8947c11e..00000000 --- a/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveAssumeRoleCredentials.d.ts +++ /dev/null @@ -1,44 +0,0 @@ -import { ParsedIniData } from "@smithy/types"; -import { FromIniInit } from "./fromIni"; -/** - * @internal - * - * @see http://docs.aws.amazon.com/AWSJavaScriptSDK/latest/AWS/STS.html#assumeRole-property - * TODO update the above to link to V3 docs - */ -export interface AssumeRoleParams { - /** - * The identifier of the role to be assumed. - */ - RoleArn: string; - /** - * A name for the assumed role session. - */ - RoleSessionName: string; - /** - * A unique identifier that is used by third parties when assuming roles in - * their customers' accounts. - */ - ExternalId?: string; - /** - * The identification number of the MFA device that is associated with the - * user who is making the `AssumeRole` call. - */ - SerialNumber?: string; - /** - * The value provided by the MFA device. - */ - TokenCode?: string; - /** - * The duration, in seconds, of the role session. - */ - DurationSeconds?: number; -} -/** - * @internal - */ -export declare const isAssumeRoleProfile: (arg: any) => boolean; -/** - * @internal - */ -export declare const resolveAssumeRoleCredentials: (profileName: string, profiles: ParsedIniData, options: FromIniInit, visitedProfiles?: Record) => Promise; diff --git a/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveCredentialSource.d.ts b/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveCredentialSource.d.ts deleted file mode 100644 index 29c47360..00000000 --- a/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveCredentialSource.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { AwsCredentialIdentityProvider } from "@smithy/types"; -/** - * @internal - * - * Resolve the `credential_source` entry from the profile, and return the - * credential providers respectively. No memoization is needed for the - * credential source providers because memoization should be added outside the - * fromIni() provider. The source credential needs to be refreshed every time - * fromIni() is called. - */ -export declare const resolveCredentialSource: (credentialSource: string, profileName: string) => AwsCredentialIdentityProvider; diff --git a/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveProcessCredentials.d.ts b/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveProcessCredentials.d.ts deleted file mode 100644 index 8392f0b5..00000000 --- a/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveProcessCredentials.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { Credentials } from "@aws-sdk/types"; -import { Profile } from "@smithy/types"; -import { FromIniInit } from "./fromIni"; -/** - * @internal - */ -export interface ProcessProfile extends Profile { - credential_process: string; -} -/** - * @internal - */ -export declare const isProcessProfile: (arg: any) => arg is ProcessProfile; -/** - * @internal - */ -export declare const resolveProcessCredentials: (options: FromIniInit, profile: string) => Promise; diff --git a/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveProfileData.d.ts b/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveProfileData.d.ts deleted file mode 100644 index f8e86d79..00000000 --- a/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveProfileData.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { AwsCredentialIdentity, ParsedIniData } from "@smithy/types"; -import { FromIniInit } from "./fromIni"; -/** - * @internal - */ -export declare const resolveProfileData: (profileName: string, profiles: ParsedIniData, options: FromIniInit, visitedProfiles?: Record) => Promise; diff --git a/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveSsoCredentials.d.ts b/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveSsoCredentials.d.ts deleted file mode 100644 index cff83c51..00000000 --- a/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveSsoCredentials.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { SsoProfile } from "@aws-sdk/credential-provider-sso"; -/** - * @internal - */ -export { isSsoProfile } from "@aws-sdk/credential-provider-sso"; -/** - * @internal - */ -export declare const resolveSsoCredentials: (data: Partial) => Promise; diff --git a/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveStaticCredentials.d.ts b/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveStaticCredentials.d.ts deleted file mode 100644 index 97927ce2..00000000 --- a/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveStaticCredentials.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { AwsCredentialIdentity, Profile } from "@smithy/types"; -/** - * @internal - */ -export interface StaticCredsProfile extends Profile { - aws_access_key_id: string; - aws_secret_access_key: string; - aws_session_token?: string; -} -/** - * @internal - */ -export declare const isStaticCredsProfile: (arg: any) => arg is StaticCredsProfile; -/** - * @internal - */ -export declare const resolveStaticCredentials: (profile: StaticCredsProfile) => Promise; diff --git a/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveWebIdentityCredentials.d.ts b/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveWebIdentityCredentials.d.ts deleted file mode 100644 index acb1d454..00000000 --- a/node_modules/@aws-sdk/credential-provider-ini/dist-types/resolveWebIdentityCredentials.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { AwsCredentialIdentity, Profile } from "@smithy/types"; -import { FromIniInit } from "./fromIni"; -/** - * @internal - */ -export interface WebIdentityProfile extends Profile { - web_identity_token_file: string; - role_arn: string; - role_session_name?: string; -} -/** - * @internal - */ -export declare const isWebIdentityProfile: (arg: any) => arg is WebIdentityProfile; -/** - * @internal - */ -export declare const resolveWebIdentityCredentials: (profile: WebIdentityProfile, options: FromIniInit) => Promise; diff --git a/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/fromIni.d.ts b/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/fromIni.d.ts deleted file mode 100644 index ea402c6b..00000000 --- a/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/fromIni.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { AssumeRoleWithWebIdentityParams } from "@aws-sdk/credential-provider-web-identity"; -import { SourceProfileInit } from "@smithy/shared-ini-file-loader"; -import { - AwsCredentialIdentity, - AwsCredentialIdentityProvider, -} from "@smithy/types"; -import { AssumeRoleParams } from "./resolveAssumeRoleCredentials"; -export interface FromIniInit extends SourceProfileInit { - mfaCodeProvider?: (mfaSerial: string) => Promise; - roleAssumer?: ( - sourceCreds: AwsCredentialIdentity, - params: AssumeRoleParams - ) => Promise; - roleAssumerWithWebIdentity?: ( - params: AssumeRoleWithWebIdentityParams - ) => Promise; -} -export declare const fromIni: ( - init?: FromIniInit -) => AwsCredentialIdentityProvider; diff --git a/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/index.d.ts b/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/index.d.ts deleted file mode 100644 index b0191315..00000000 --- a/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./fromIni"; diff --git a/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveAssumeRoleCredentials.d.ts b/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveAssumeRoleCredentials.d.ts deleted file mode 100644 index 28355ba4..00000000 --- a/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveAssumeRoleCredentials.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { ParsedIniData } from "@smithy/types"; -import { FromIniInit } from "./fromIni"; -export interface AssumeRoleParams { - RoleArn: string; - RoleSessionName: string; - ExternalId?: string; - SerialNumber?: string; - TokenCode?: string; - DurationSeconds?: number; -} -export declare const isAssumeRoleProfile: (arg: any) => boolean; -export declare const resolveAssumeRoleCredentials: ( - profileName: string, - profiles: ParsedIniData, - options: FromIniInit, - visitedProfiles?: Record -) => Promise; diff --git a/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveCredentialSource.d.ts b/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveCredentialSource.d.ts deleted file mode 100644 index 9132d6d8..00000000 --- a/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveCredentialSource.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { AwsCredentialIdentityProvider } from "@smithy/types"; -export declare const resolveCredentialSource: ( - credentialSource: string, - profileName: string -) => AwsCredentialIdentityProvider; diff --git a/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveProcessCredentials.d.ts b/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveProcessCredentials.d.ts deleted file mode 100644 index 1a8a0ed7..00000000 --- a/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveProcessCredentials.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Credentials } from "@aws-sdk/types"; -import { Profile } from "@smithy/types"; -import { FromIniInit } from "./fromIni"; -export interface ProcessProfile extends Profile { - credential_process: string; -} -export declare const isProcessProfile: (arg: any) => arg is ProcessProfile; -export declare const resolveProcessCredentials: ( - options: FromIniInit, - profile: string -) => Promise; diff --git a/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveProfileData.d.ts b/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveProfileData.d.ts deleted file mode 100644 index 66b57b83..00000000 --- a/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveProfileData.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { AwsCredentialIdentity, ParsedIniData } from "@smithy/types"; -import { FromIniInit } from "./fromIni"; -export declare const resolveProfileData: ( - profileName: string, - profiles: ParsedIniData, - options: FromIniInit, - visitedProfiles?: Record -) => Promise; diff --git a/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveSsoCredentials.d.ts b/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveSsoCredentials.d.ts deleted file mode 100644 index 75d96421..00000000 --- a/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveSsoCredentials.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { SsoProfile } from "@aws-sdk/credential-provider-sso"; -export { isSsoProfile } from "@aws-sdk/credential-provider-sso"; -export declare const resolveSsoCredentials: ( - data: Partial -) => Promise; diff --git a/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveStaticCredentials.d.ts b/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveStaticCredentials.d.ts deleted file mode 100644 index 35ed8c13..00000000 --- a/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveStaticCredentials.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { AwsCredentialIdentity, Profile } from "@smithy/types"; -export interface StaticCredsProfile extends Profile { - aws_access_key_id: string; - aws_secret_access_key: string; - aws_session_token?: string; -} -export declare const isStaticCredsProfile: ( - arg: any -) => arg is StaticCredsProfile; -export declare const resolveStaticCredentials: ( - profile: StaticCredsProfile -) => Promise; diff --git a/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveWebIdentityCredentials.d.ts b/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveWebIdentityCredentials.d.ts deleted file mode 100644 index 4179f942..00000000 --- a/node_modules/@aws-sdk/credential-provider-ini/dist-types/ts3.4/resolveWebIdentityCredentials.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { AwsCredentialIdentity, Profile } from "@smithy/types"; -import { FromIniInit } from "./fromIni"; -export interface WebIdentityProfile extends Profile { - web_identity_token_file: string; - role_arn: string; - role_session_name?: string; -} -export declare const isWebIdentityProfile: ( - arg: any -) => arg is WebIdentityProfile; -export declare const resolveWebIdentityCredentials: ( - profile: WebIdentityProfile, - options: FromIniInit -) => Promise; diff --git a/node_modules/@aws-sdk/credential-provider-ini/package.json b/node_modules/@aws-sdk/credential-provider-ini/package.json deleted file mode 100644 index 45e70c87..00000000 --- a/node_modules/@aws-sdk/credential-provider-ini/package.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "name": "@aws-sdk/credential-provider-ini", - "version": "3.451.0", - "description": "AWS credential provider that sources credentials from ~/.aws/credentials and ~/.aws/config", - "main": "./dist-cjs/index.js", - "module": "./dist-es/index.js", - "scripts": { - "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", - "build:cjs": "tsc -p tsconfig.cjs.json", - "build:es": "tsc -p tsconfig.es.json", - "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build", - "build:types": "tsc -p tsconfig.types.json", - "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", - "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "jest" - }, - "keywords": [ - "aws", - "credentials" - ], - "author": { - "name": "AWS SDK for JavaScript Team", - "url": "https://aws.amazon.com/javascript/" - }, - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/credential-provider-env": "3.451.0", - "@aws-sdk/credential-provider-process": "3.451.0", - "@aws-sdk/credential-provider-sso": "3.451.0", - "@aws-sdk/credential-provider-web-identity": "3.451.0", - "@aws-sdk/types": "3.451.0", - "@smithy/credential-provider-imds": "^2.0.0", - "@smithy/property-provider": "^2.0.0", - "@smithy/shared-ini-file-loader": "^2.0.6", - "@smithy/types": "^2.5.0", - "tslib": "^2.5.0" - }, - "devDependencies": { - "@tsconfig/recommended": "1.0.1", - "@types/node": "^14.14.31", - "concurrently": "7.0.0", - "downlevel-dts": "0.10.1", - "rimraf": "3.0.2", - "typedoc": "0.23.23", - "typescript": "~4.9.5" - }, - "types": "./dist-types/index.d.ts", - "engines": { - "node": ">=14.0.0" - }, - "typesVersions": { - "<4.0": { - "dist-types/*": [ - "dist-types/ts3.4/*" - ] - } - }, - "files": [ - "dist-*/**" - ], - "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/credential-provider-ini", - "repository": { - "type": "git", - "url": "https://github.com/aws/aws-sdk-js-v3.git", - "directory": "packages/credential-provider-ini" - }, - "typedoc": { - "entryPoint": "src/index.ts" - } -} diff --git a/node_modules/@aws-sdk/credential-provider-node/LICENSE b/node_modules/@aws-sdk/credential-provider-node/LICENSE deleted file mode 100644 index 7b6491ba..00000000 --- a/node_modules/@aws-sdk/credential-provider-node/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. \ No newline at end of file diff --git a/node_modules/@aws-sdk/credential-provider-node/README.md b/node_modules/@aws-sdk/credential-provider-node/README.md deleted file mode 100644 index 6fd902d8..00000000 --- a/node_modules/@aws-sdk/credential-provider-node/README.md +++ /dev/null @@ -1,104 +0,0 @@ -# @aws-sdk/credential-provider-node - -[![NPM version](https://img.shields.io/npm/v/@aws-sdk/credential-provider-node/latest.svg)](https://www.npmjs.com/package/@aws-sdk/credential-provider-node) -[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/credential-provider-node.svg)](https://www.npmjs.com/package/@aws-sdk/credential-provider-node) - -## AWS Credential Provider for Node.JS - -This module provides a factory function, `fromEnv`, that will attempt to source -AWS credentials from a Node.JS environment. It will attempt to find credentials -from the following sources (listed in order of precedence): - -- Environment variables exposed via `process.env` -- SSO credentials from token cache -- Web identity token credentials -- Shared credentials and config ini files -- The EC2/ECS Instance Metadata Service - -The default credential provider will invoke one provider at a time and only -continue to the next if no credentials have been located. For example, if the -process finds values defined via the `AWS_ACCESS_KEY_ID` and -`AWS_SECRET_ACCESS_KEY` environment variables, the files at `~/.aws/credentials` -and `~/.aws/config` will not be read, nor will any messages be sent to the -Instance Metadata Service. - -If invalid configuration is encountered (such as a profile in -`~/.aws/credentials` specifying as its `source_profile` the name of a profile -that does not exist), then the chained provider will be rejected with an error -and will not invoke the next provider in the list. - -_IMPORTANT_: if you intend to acquire credentials using EKS -[IAM Roles for Service Accounts](https://docs.aws.amazon.com/eks/latest/userguide/iam-roles-for-service-accounts.html) -then you must explicitly specify a value for `roleAssumerWithWebIdentity`. There is a -default function available in `@aws-sdk/client-sts` package. An example of using -this: - -```js -const { getDefaultRoleAssumerWithWebIdentity } = require("@aws-sdk/client-sts"); -const { defaultProvider } = require("@aws-sdk/credential-provider-node"); -const { S3Client, GetObjectCommand } = require("@aws-sdk/client-s3"); - -const provider = defaultProvider({ - roleAssumerWithWebIdentity: getDefaultRoleAssumerWithWebIdentity({ - // You must explicitly pass a region if you are not using us-east-1 - region: "eu-west-1" - }), -}); - -const client = new S3Client({ credentialDefaultProvider: provider }); -``` - -_IMPORTANT_: We provide a wrapper of this provider in `@aws-sdk/credential-providers` -package to save you from importing `getDefaultRoleAssumerWithWebIdentity()` or -`getDefaultRoleAssume()` from STS package. Similarly, you can do: - -```js -const { fromNodeProviderChain } = require("@aws-sdk/credential-providers"); - -const credentials = fromNodeProviderChain(); - -const client = new S3Client({ credentials }); -``` - -## Supported configuration - -You may customize how credentials are resolved by providing an options hash to -the `defaultProvider` factory function. The following options are -supported: - -- `profile` - The configuration profile to use. If not specified, the provider - will use the value in the `AWS_PROFILE` environment variable or a default of - `default`. -- `filepath` - The path to the shared credentials file. If not specified, the - provider will use the value in the `AWS_SHARED_CREDENTIALS_FILE` environment - variable or a default of `~/.aws/credentials`. -- `configFilepath` - The path to the shared config file. If not specified, the - provider will use the value in the `AWS_CONFIG_FILE` environment variable or a - default of `~/.aws/config`. -- `mfaCodeProvider` - A function that returns a a promise fulfilled with an - MFA token code for the provided MFA Serial code. If a profile requires an MFA - code and `mfaCodeProvider` is not a valid function, the credential provider - promise will be rejected. -- `roleAssumer` - A function that assumes a role and returns a promise - fulfilled with credentials for the assumed role. If not specified, no role - will be assumed, and an error will be thrown. -- `roleArn` - ARN to assume. If not specified, the provider will use the value - in the `AWS_ROLE_ARN` environment variable. -- `webIdentityTokenFile` - File location of where the `OIDC` token is stored. - If not specified, the provider will use the value in the `AWS_WEB_IDENTITY_TOKEN_FILE` - environment variable. -- `roleAssumerWithWebIdentity` - A function that assumes a role with web identity and - returns a promise fulfilled with credentials for the assumed role. -- `timeout` - The connection timeout (in milliseconds) to apply to any remote - requests. If not specified, a default value of `1000` (one second) is used. -- `maxRetries` - The maximum number of times any HTTP connections should be - retried. If not specified, a default value of `0` will be used. - -## Related packages: - -- [AWS Credential Provider for Node.JS - Environment Variables](../credential-provider-env) -- [AWS Credential Provider for Node.JS - SSO](../credential-provider-sso) -- [AWS Credential Provider for Node.JS - Web Identity](../credential-provider-web-identity) -- [AWS Credential Provider for Node.JS - Shared Configuration Files](../credential-provider-ini) -- [AWS Credential Provider for Node.JS - Instance and Container Metadata](../credential-provider-imds) -- [AWS Shared Configuration File Loader](../shared-ini-file-loader) diff --git a/node_modules/@aws-sdk/credential-provider-node/dist-cjs/defaultProvider.js b/node_modules/@aws-sdk/credential-provider-node/dist-cjs/defaultProvider.js deleted file mode 100644 index e2f17d8a..00000000 --- a/node_modules/@aws-sdk/credential-provider-node/dist-cjs/defaultProvider.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.defaultProvider = void 0; -const credential_provider_env_1 = require("@aws-sdk/credential-provider-env"); -const credential_provider_ini_1 = require("@aws-sdk/credential-provider-ini"); -const credential_provider_process_1 = require("@aws-sdk/credential-provider-process"); -const credential_provider_sso_1 = require("@aws-sdk/credential-provider-sso"); -const credential_provider_web_identity_1 = require("@aws-sdk/credential-provider-web-identity"); -const property_provider_1 = require("@smithy/property-provider"); -const shared_ini_file_loader_1 = require("@smithy/shared-ini-file-loader"); -const remoteProvider_1 = require("./remoteProvider"); -const defaultProvider = (init = {}) => (0, property_provider_1.memoize)((0, property_provider_1.chain)(...(init.profile || process.env[shared_ini_file_loader_1.ENV_PROFILE] ? [] : [(0, credential_provider_env_1.fromEnv)()]), (0, credential_provider_sso_1.fromSSO)(init), (0, credential_provider_ini_1.fromIni)(init), (0, credential_provider_process_1.fromProcess)(init), (0, credential_provider_web_identity_1.fromTokenFile)(init), (0, remoteProvider_1.remoteProvider)(init), async () => { - throw new property_provider_1.CredentialsProviderError("Could not load credentials from any providers", false); -}), (credentials) => credentials.expiration !== undefined && credentials.expiration.getTime() - Date.now() < 300000, (credentials) => credentials.expiration !== undefined); -exports.defaultProvider = defaultProvider; diff --git a/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js b/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js deleted file mode 100644 index ea45c384..00000000 --- a/node_modules/@aws-sdk/credential-provider-node/dist-cjs/index.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./defaultProvider"), exports); diff --git a/node_modules/@aws-sdk/credential-provider-node/dist-cjs/remoteProvider.js b/node_modules/@aws-sdk/credential-provider-node/dist-cjs/remoteProvider.js deleted file mode 100644 index dbab32d9..00000000 --- a/node_modules/@aws-sdk/credential-provider-node/dist-cjs/remoteProvider.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.remoteProvider = exports.ENV_IMDS_DISABLED = void 0; -const credential_provider_imds_1 = require("@smithy/credential-provider-imds"); -const property_provider_1 = require("@smithy/property-provider"); -exports.ENV_IMDS_DISABLED = "AWS_EC2_METADATA_DISABLED"; -const remoteProvider = (init) => { - if (process.env[credential_provider_imds_1.ENV_CMDS_RELATIVE_URI] || process.env[credential_provider_imds_1.ENV_CMDS_FULL_URI]) { - return (0, credential_provider_imds_1.fromContainerMetadata)(init); - } - if (process.env[exports.ENV_IMDS_DISABLED]) { - return async () => { - throw new property_provider_1.CredentialsProviderError("EC2 Instance Metadata Service access disabled"); - }; - } - return (0, credential_provider_imds_1.fromInstanceMetadata)(init); -}; -exports.remoteProvider = remoteProvider; diff --git a/node_modules/@aws-sdk/credential-provider-node/dist-es/defaultProvider.js b/node_modules/@aws-sdk/credential-provider-node/dist-es/defaultProvider.js deleted file mode 100644 index b062ec95..00000000 --- a/node_modules/@aws-sdk/credential-provider-node/dist-es/defaultProvider.js +++ /dev/null @@ -1,11 +0,0 @@ -import { fromEnv } from "@aws-sdk/credential-provider-env"; -import { fromIni } from "@aws-sdk/credential-provider-ini"; -import { fromProcess } from "@aws-sdk/credential-provider-process"; -import { fromSSO } from "@aws-sdk/credential-provider-sso"; -import { fromTokenFile } from "@aws-sdk/credential-provider-web-identity"; -import { chain, CredentialsProviderError, memoize } from "@smithy/property-provider"; -import { ENV_PROFILE } from "@smithy/shared-ini-file-loader"; -import { remoteProvider } from "./remoteProvider"; -export const defaultProvider = (init = {}) => memoize(chain(...(init.profile || process.env[ENV_PROFILE] ? [] : [fromEnv()]), fromSSO(init), fromIni(init), fromProcess(init), fromTokenFile(init), remoteProvider(init), async () => { - throw new CredentialsProviderError("Could not load credentials from any providers", false); -}), (credentials) => credentials.expiration !== undefined && credentials.expiration.getTime() - Date.now() < 300000, (credentials) => credentials.expiration !== undefined); diff --git a/node_modules/@aws-sdk/credential-provider-node/dist-es/index.js b/node_modules/@aws-sdk/credential-provider-node/dist-es/index.js deleted file mode 100644 index c82818e5..00000000 --- a/node_modules/@aws-sdk/credential-provider-node/dist-es/index.js +++ /dev/null @@ -1 +0,0 @@ -export * from "./defaultProvider"; diff --git a/node_modules/@aws-sdk/credential-provider-node/dist-es/remoteProvider.js b/node_modules/@aws-sdk/credential-provider-node/dist-es/remoteProvider.js deleted file mode 100644 index b4579436..00000000 --- a/node_modules/@aws-sdk/credential-provider-node/dist-es/remoteProvider.js +++ /dev/null @@ -1,14 +0,0 @@ -import { ENV_CMDS_FULL_URI, ENV_CMDS_RELATIVE_URI, fromContainerMetadata, fromInstanceMetadata, } from "@smithy/credential-provider-imds"; -import { CredentialsProviderError } from "@smithy/property-provider"; -export const ENV_IMDS_DISABLED = "AWS_EC2_METADATA_DISABLED"; -export const remoteProvider = (init) => { - if (process.env[ENV_CMDS_RELATIVE_URI] || process.env[ENV_CMDS_FULL_URI]) { - return fromContainerMetadata(init); - } - if (process.env[ENV_IMDS_DISABLED]) { - return async () => { - throw new CredentialsProviderError("EC2 Instance Metadata Service access disabled"); - }; - } - return fromInstanceMetadata(init); -}; diff --git a/node_modules/@aws-sdk/credential-provider-node/dist-types/defaultProvider.d.ts b/node_modules/@aws-sdk/credential-provider-node/dist-types/defaultProvider.d.ts deleted file mode 100644 index 6829c0e4..00000000 --- a/node_modules/@aws-sdk/credential-provider-node/dist-types/defaultProvider.d.ts +++ /dev/null @@ -1,42 +0,0 @@ -import { FromIniInit } from "@aws-sdk/credential-provider-ini"; -import { FromProcessInit } from "@aws-sdk/credential-provider-process"; -import { FromSSOInit } from "@aws-sdk/credential-provider-sso"; -import { FromTokenFileInit } from "@aws-sdk/credential-provider-web-identity"; -import { RemoteProviderInit } from "@smithy/credential-provider-imds"; -import { AwsCredentialIdentity, MemoizedProvider } from "@smithy/types"; -export type DefaultProviderInit = FromIniInit & RemoteProviderInit & FromProcessInit & FromSSOInit & FromTokenFileInit; -/** - * Creates a credential provider that will attempt to find credentials from the - * following sources (listed in order of precedence): - * * Environment variables exposed via `process.env` - * * SSO credentials from token cache - * * Web identity token credentials - * * Shared credentials and config ini files - * * The EC2/ECS Instance Metadata Service - * - * The default credential provider will invoke one provider at a time and only - * continue to the next if no credentials have been located. For example, if - * the process finds values defined via the `AWS_ACCESS_KEY_ID` and - * `AWS_SECRET_ACCESS_KEY` environment variables, the files at - * `~/.aws/credentials` and `~/.aws/config` will not be read, nor will any - * messages be sent to the Instance Metadata Service. - * - * @param init Configuration that is passed to each individual - * provider - * - * @see {@link fromEnv} The function used to source credentials from - * environment variables - * @see {@link fromSSO} The function used to source credentials from - * resolved SSO token cache - * @see {@link fromTokenFile} The function used to source credentials from - * token file - * @see {@link fromIni} The function used to source credentials from INI - * files - * @see {@link fromProcess} The function used to sources credentials from - * credential_process in INI files - * @see {@link fromInstanceMetadata} The function used to source credentials from the - * EC2 Instance Metadata Service - * @see {@link fromContainerMetadata} The function used to source credentials from the - * ECS Container Metadata Service - */ -export declare const defaultProvider: (init?: DefaultProviderInit) => MemoizedProvider; diff --git a/node_modules/@aws-sdk/credential-provider-node/dist-types/index.d.ts b/node_modules/@aws-sdk/credential-provider-node/dist-types/index.d.ts deleted file mode 100644 index c82818e5..00000000 --- a/node_modules/@aws-sdk/credential-provider-node/dist-types/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./defaultProvider"; diff --git a/node_modules/@aws-sdk/credential-provider-node/dist-types/remoteProvider.d.ts b/node_modules/@aws-sdk/credential-provider-node/dist-types/remoteProvider.d.ts deleted file mode 100644 index 3b0b7c3a..00000000 --- a/node_modules/@aws-sdk/credential-provider-node/dist-types/remoteProvider.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { RemoteProviderInit } from "@smithy/credential-provider-imds"; -import { AwsCredentialIdentityProvider } from "@smithy/types"; -export declare const ENV_IMDS_DISABLED = "AWS_EC2_METADATA_DISABLED"; -export declare const remoteProvider: (init: RemoteProviderInit) => AwsCredentialIdentityProvider; diff --git a/node_modules/@aws-sdk/credential-provider-node/dist-types/ts3.4/defaultProvider.d.ts b/node_modules/@aws-sdk/credential-provider-node/dist-types/ts3.4/defaultProvider.d.ts deleted file mode 100644 index f932b9ab..00000000 --- a/node_modules/@aws-sdk/credential-provider-node/dist-types/ts3.4/defaultProvider.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { FromIniInit } from "@aws-sdk/credential-provider-ini"; -import { FromProcessInit } from "@aws-sdk/credential-provider-process"; -import { FromSSOInit } from "@aws-sdk/credential-provider-sso"; -import { FromTokenFileInit } from "@aws-sdk/credential-provider-web-identity"; -import { RemoteProviderInit } from "@smithy/credential-provider-imds"; -import { AwsCredentialIdentity, MemoizedProvider } from "@smithy/types"; -export type DefaultProviderInit = FromIniInit & - RemoteProviderInit & - FromProcessInit & - FromSSOInit & - FromTokenFileInit; -export declare const defaultProvider: ( - init?: DefaultProviderInit -) => MemoizedProvider; diff --git a/node_modules/@aws-sdk/credential-provider-node/dist-types/ts3.4/index.d.ts b/node_modules/@aws-sdk/credential-provider-node/dist-types/ts3.4/index.d.ts deleted file mode 100644 index c82818e5..00000000 --- a/node_modules/@aws-sdk/credential-provider-node/dist-types/ts3.4/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./defaultProvider"; diff --git a/node_modules/@aws-sdk/credential-provider-node/dist-types/ts3.4/remoteProvider.d.ts b/node_modules/@aws-sdk/credential-provider-node/dist-types/ts3.4/remoteProvider.d.ts deleted file mode 100644 index fbf702bb..00000000 --- a/node_modules/@aws-sdk/credential-provider-node/dist-types/ts3.4/remoteProvider.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { RemoteProviderInit } from "@smithy/credential-provider-imds"; -import { AwsCredentialIdentityProvider } from "@smithy/types"; -export declare const ENV_IMDS_DISABLED = "AWS_EC2_METADATA_DISABLED"; -export declare const remoteProvider: ( - init: RemoteProviderInit -) => AwsCredentialIdentityProvider; diff --git a/node_modules/@aws-sdk/credential-provider-node/package.json b/node_modules/@aws-sdk/credential-provider-node/package.json deleted file mode 100644 index 47c92784..00000000 --- a/node_modules/@aws-sdk/credential-provider-node/package.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "name": "@aws-sdk/credential-provider-node", - "version": "3.451.0", - "description": "AWS credential provider that sources credentials from a Node.JS environment. ", - "engines": { - "node": ">=14.0.0" - }, - "main": "./dist-cjs/index.js", - "module": "./dist-es/index.js", - "scripts": { - "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", - "build:cjs": "tsc -p tsconfig.cjs.json", - "build:es": "tsc -p tsconfig.es.json", - "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build", - "build:types": "tsc -p tsconfig.types.json", - "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", - "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "jest" - }, - "keywords": [ - "aws", - "credentials" - ], - "author": { - "name": "AWS SDK for JavaScript Team", - "url": "https://aws.amazon.com/javascript/" - }, - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/credential-provider-env": "3.451.0", - "@aws-sdk/credential-provider-ini": "3.451.0", - "@aws-sdk/credential-provider-process": "3.451.0", - "@aws-sdk/credential-provider-sso": "3.451.0", - "@aws-sdk/credential-provider-web-identity": "3.451.0", - "@aws-sdk/types": "3.451.0", - "@smithy/credential-provider-imds": "^2.0.0", - "@smithy/property-provider": "^2.0.0", - "@smithy/shared-ini-file-loader": "^2.0.6", - "@smithy/types": "^2.5.0", - "tslib": "^2.5.0" - }, - "devDependencies": { - "@tsconfig/recommended": "1.0.1", - "@types/node": "^14.14.31", - "concurrently": "7.0.0", - "downlevel-dts": "0.10.1", - "rimraf": "3.0.2", - "typedoc": "0.23.23", - "typescript": "~4.9.5" - }, - "types": "./dist-types/index.d.ts", - "typesVersions": { - "<4.0": { - "dist-types/*": [ - "dist-types/ts3.4/*" - ] - } - }, - "files": [ - "dist-*/**" - ], - "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/credential-provider-node", - "repository": { - "type": "git", - "url": "https://github.com/aws/aws-sdk-js-v3.git", - "directory": "packages/credential-provider-node" - }, - "typedoc": { - "entryPoint": "src/index.ts" - } -} diff --git a/node_modules/@aws-sdk/credential-provider-process/LICENSE b/node_modules/@aws-sdk/credential-provider-process/LICENSE deleted file mode 100644 index f9a66739..00000000 --- a/node_modules/@aws-sdk/credential-provider-process/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. \ No newline at end of file diff --git a/node_modules/@aws-sdk/credential-provider-process/README.md b/node_modules/@aws-sdk/credential-provider-process/README.md deleted file mode 100644 index 4e9d9bd4..00000000 --- a/node_modules/@aws-sdk/credential-provider-process/README.md +++ /dev/null @@ -1,11 +0,0 @@ -# @aws-sdk/credential-provider-process - -[![NPM version](https://img.shields.io/npm/v/@aws-sdk/credential-provider-process/latest.svg)](https://www.npmjs.com/package/@aws-sdk/credential-provider-process) -[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/credential-provider-process.svg)](https://www.npmjs.com/package/@aws-sdk/credential-provider-process) - -> An internal package - -## Usage - -You probably shouldn't, at least directly. Please use [@aws-sdk/credential-providers](https://www.npmjs.com/package/@aws-sdk/credential-providers) -instead. diff --git a/node_modules/@aws-sdk/credential-provider-process/dist-cjs/ProcessCredentials.js b/node_modules/@aws-sdk/credential-provider-process/dist-cjs/ProcessCredentials.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@aws-sdk/credential-provider-process/dist-cjs/ProcessCredentials.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@aws-sdk/credential-provider-process/dist-cjs/fromProcess.js b/node_modules/@aws-sdk/credential-provider-process/dist-cjs/fromProcess.js deleted file mode 100644 index 27e29a01..00000000 --- a/node_modules/@aws-sdk/credential-provider-process/dist-cjs/fromProcess.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.fromProcess = void 0; -const shared_ini_file_loader_1 = require("@smithy/shared-ini-file-loader"); -const resolveProcessCredentials_1 = require("./resolveProcessCredentials"); -const fromProcess = (init = {}) => async () => { - const profiles = await (0, shared_ini_file_loader_1.parseKnownFiles)(init); - return (0, resolveProcessCredentials_1.resolveProcessCredentials)((0, shared_ini_file_loader_1.getProfileName)(init), profiles); -}; -exports.fromProcess = fromProcess; diff --git a/node_modules/@aws-sdk/credential-provider-process/dist-cjs/getValidatedProcessCredentials.js b/node_modules/@aws-sdk/credential-provider-process/dist-cjs/getValidatedProcessCredentials.js deleted file mode 100644 index a60569b1..00000000 --- a/node_modules/@aws-sdk/credential-provider-process/dist-cjs/getValidatedProcessCredentials.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getValidatedProcessCredentials = void 0; -const getValidatedProcessCredentials = (profileName, data) => { - if (data.Version !== 1) { - throw Error(`Profile ${profileName} credential_process did not return Version 1.`); - } - if (data.AccessKeyId === undefined || data.SecretAccessKey === undefined) { - throw Error(`Profile ${profileName} credential_process returned invalid credentials.`); - } - if (data.Expiration) { - const currentTime = new Date(); - const expireTime = new Date(data.Expiration); - if (expireTime < currentTime) { - throw Error(`Profile ${profileName} credential_process returned expired credentials.`); - } - } - return { - accessKeyId: data.AccessKeyId, - secretAccessKey: data.SecretAccessKey, - ...(data.SessionToken && { sessionToken: data.SessionToken }), - ...(data.Expiration && { expiration: new Date(data.Expiration) }), - }; -}; -exports.getValidatedProcessCredentials = getValidatedProcessCredentials; diff --git a/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js b/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js deleted file mode 100644 index 85d88197..00000000 --- a/node_modules/@aws-sdk/credential-provider-process/dist-cjs/index.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./fromProcess"), exports); diff --git a/node_modules/@aws-sdk/credential-provider-process/dist-cjs/resolveProcessCredentials.js b/node_modules/@aws-sdk/credential-provider-process/dist-cjs/resolveProcessCredentials.js deleted file mode 100644 index 6ece8130..00000000 --- a/node_modules/@aws-sdk/credential-provider-process/dist-cjs/resolveProcessCredentials.js +++ /dev/null @@ -1,37 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.resolveProcessCredentials = void 0; -const property_provider_1 = require("@smithy/property-provider"); -const child_process_1 = require("child_process"); -const util_1 = require("util"); -const getValidatedProcessCredentials_1 = require("./getValidatedProcessCredentials"); -const resolveProcessCredentials = async (profileName, profiles) => { - const profile = profiles[profileName]; - if (profiles[profileName]) { - const credentialProcess = profile["credential_process"]; - if (credentialProcess !== undefined) { - const execPromise = (0, util_1.promisify)(child_process_1.exec); - try { - const { stdout } = await execPromise(credentialProcess); - let data; - try { - data = JSON.parse(stdout.trim()); - } - catch (_a) { - throw Error(`Profile ${profileName} credential_process returned invalid JSON.`); - } - return (0, getValidatedProcessCredentials_1.getValidatedProcessCredentials)(profileName, data); - } - catch (error) { - throw new property_provider_1.CredentialsProviderError(error.message); - } - } - else { - throw new property_provider_1.CredentialsProviderError(`Profile ${profileName} did not contain credential_process.`); - } - } - else { - throw new property_provider_1.CredentialsProviderError(`Profile ${profileName} could not be found in shared credentials file.`); - } -}; -exports.resolveProcessCredentials = resolveProcessCredentials; diff --git a/node_modules/@aws-sdk/credential-provider-process/dist-es/ProcessCredentials.js b/node_modules/@aws-sdk/credential-provider-process/dist-es/ProcessCredentials.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@aws-sdk/credential-provider-process/dist-es/ProcessCredentials.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@aws-sdk/credential-provider-process/dist-es/fromProcess.js b/node_modules/@aws-sdk/credential-provider-process/dist-es/fromProcess.js deleted file mode 100644 index 49d92872..00000000 --- a/node_modules/@aws-sdk/credential-provider-process/dist-es/fromProcess.js +++ /dev/null @@ -1,6 +0,0 @@ -import { getProfileName, parseKnownFiles } from "@smithy/shared-ini-file-loader"; -import { resolveProcessCredentials } from "./resolveProcessCredentials"; -export const fromProcess = (init = {}) => async () => { - const profiles = await parseKnownFiles(init); - return resolveProcessCredentials(getProfileName(init), profiles); -}; diff --git a/node_modules/@aws-sdk/credential-provider-process/dist-es/getValidatedProcessCredentials.js b/node_modules/@aws-sdk/credential-provider-process/dist-es/getValidatedProcessCredentials.js deleted file mode 100644 index 9d851028..00000000 --- a/node_modules/@aws-sdk/credential-provider-process/dist-es/getValidatedProcessCredentials.js +++ /dev/null @@ -1,21 +0,0 @@ -export const getValidatedProcessCredentials = (profileName, data) => { - if (data.Version !== 1) { - throw Error(`Profile ${profileName} credential_process did not return Version 1.`); - } - if (data.AccessKeyId === undefined || data.SecretAccessKey === undefined) { - throw Error(`Profile ${profileName} credential_process returned invalid credentials.`); - } - if (data.Expiration) { - const currentTime = new Date(); - const expireTime = new Date(data.Expiration); - if (expireTime < currentTime) { - throw Error(`Profile ${profileName} credential_process returned expired credentials.`); - } - } - return { - accessKeyId: data.AccessKeyId, - secretAccessKey: data.SecretAccessKey, - ...(data.SessionToken && { sessionToken: data.SessionToken }), - ...(data.Expiration && { expiration: new Date(data.Expiration) }), - }; -}; diff --git a/node_modules/@aws-sdk/credential-provider-process/dist-es/index.js b/node_modules/@aws-sdk/credential-provider-process/dist-es/index.js deleted file mode 100644 index b921d353..00000000 --- a/node_modules/@aws-sdk/credential-provider-process/dist-es/index.js +++ /dev/null @@ -1 +0,0 @@ -export * from "./fromProcess"; diff --git a/node_modules/@aws-sdk/credential-provider-process/dist-es/resolveProcessCredentials.js b/node_modules/@aws-sdk/credential-provider-process/dist-es/resolveProcessCredentials.js deleted file mode 100644 index 78ed8ab8..00000000 --- a/node_modules/@aws-sdk/credential-provider-process/dist-es/resolveProcessCredentials.js +++ /dev/null @@ -1,33 +0,0 @@ -import { CredentialsProviderError } from "@smithy/property-provider"; -import { exec } from "child_process"; -import { promisify } from "util"; -import { getValidatedProcessCredentials } from "./getValidatedProcessCredentials"; -export const resolveProcessCredentials = async (profileName, profiles) => { - const profile = profiles[profileName]; - if (profiles[profileName]) { - const credentialProcess = profile["credential_process"]; - if (credentialProcess !== undefined) { - const execPromise = promisify(exec); - try { - const { stdout } = await execPromise(credentialProcess); - let data; - try { - data = JSON.parse(stdout.trim()); - } - catch { - throw Error(`Profile ${profileName} credential_process returned invalid JSON.`); - } - return getValidatedProcessCredentials(profileName, data); - } - catch (error) { - throw new CredentialsProviderError(error.message); - } - } - else { - throw new CredentialsProviderError(`Profile ${profileName} did not contain credential_process.`); - } - } - else { - throw new CredentialsProviderError(`Profile ${profileName} could not be found in shared credentials file.`); - } -}; diff --git a/node_modules/@aws-sdk/credential-provider-process/dist-types/ProcessCredentials.d.ts b/node_modules/@aws-sdk/credential-provider-process/dist-types/ProcessCredentials.d.ts deleted file mode 100644 index 0067873c..00000000 --- a/node_modules/@aws-sdk/credential-provider-process/dist-types/ProcessCredentials.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * @internal - */ -export type ProcessCredentials = { - Version: number; - AccessKeyId: string; - SecretAccessKey: string; - SessionToken?: string; - Expiration?: number; -}; diff --git a/node_modules/@aws-sdk/credential-provider-process/dist-types/fromProcess.d.ts b/node_modules/@aws-sdk/credential-provider-process/dist-types/fromProcess.d.ts deleted file mode 100644 index d8d0a1d0..00000000 --- a/node_modules/@aws-sdk/credential-provider-process/dist-types/fromProcess.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { SourceProfileInit } from "@smithy/shared-ini-file-loader"; -import { AwsCredentialIdentityProvider } from "@smithy/types"; -/** - * @internal - */ -export interface FromProcessInit extends SourceProfileInit { -} -/** - * @internal - * - * Creates a credential provider that will read from a credential_process specified - * in ini files. - */ -export declare const fromProcess: (init?: FromProcessInit) => AwsCredentialIdentityProvider; diff --git a/node_modules/@aws-sdk/credential-provider-process/dist-types/getValidatedProcessCredentials.d.ts b/node_modules/@aws-sdk/credential-provider-process/dist-types/getValidatedProcessCredentials.d.ts deleted file mode 100644 index 4864690f..00000000 --- a/node_modules/@aws-sdk/credential-provider-process/dist-types/getValidatedProcessCredentials.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { AwsCredentialIdentity } from "@smithy/types"; -import { ProcessCredentials } from "./ProcessCredentials"; -/** - * @internal - */ -export declare const getValidatedProcessCredentials: (profileName: string, data: ProcessCredentials) => AwsCredentialIdentity; diff --git a/node_modules/@aws-sdk/credential-provider-process/dist-types/index.d.ts b/node_modules/@aws-sdk/credential-provider-process/dist-types/index.d.ts deleted file mode 100644 index adad9394..00000000 --- a/node_modules/@aws-sdk/credential-provider-process/dist-types/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/** - * @internal - */ -export * from "./fromProcess"; diff --git a/node_modules/@aws-sdk/credential-provider-process/dist-types/resolveProcessCredentials.d.ts b/node_modules/@aws-sdk/credential-provider-process/dist-types/resolveProcessCredentials.d.ts deleted file mode 100644 index be7881e8..00000000 --- a/node_modules/@aws-sdk/credential-provider-process/dist-types/resolveProcessCredentials.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { AwsCredentialIdentity, ParsedIniData } from "@smithy/types"; -/** - * @internal - */ -export declare const resolveProcessCredentials: (profileName: string, profiles: ParsedIniData) => Promise; diff --git a/node_modules/@aws-sdk/credential-provider-process/dist-types/ts3.4/ProcessCredentials.d.ts b/node_modules/@aws-sdk/credential-provider-process/dist-types/ts3.4/ProcessCredentials.d.ts deleted file mode 100644 index 7b2e8536..00000000 --- a/node_modules/@aws-sdk/credential-provider-process/dist-types/ts3.4/ProcessCredentials.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -export type ProcessCredentials = { - Version: number; - AccessKeyId: string; - SecretAccessKey: string; - SessionToken?: string; - Expiration?: number; -}; diff --git a/node_modules/@aws-sdk/credential-provider-process/dist-types/ts3.4/fromProcess.d.ts b/node_modules/@aws-sdk/credential-provider-process/dist-types/ts3.4/fromProcess.d.ts deleted file mode 100644 index b02c6159..00000000 --- a/node_modules/@aws-sdk/credential-provider-process/dist-types/ts3.4/fromProcess.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { SourceProfileInit } from "@smithy/shared-ini-file-loader"; -import { AwsCredentialIdentityProvider } from "@smithy/types"; -export interface FromProcessInit extends SourceProfileInit {} -export declare const fromProcess: ( - init?: FromProcessInit -) => AwsCredentialIdentityProvider; diff --git a/node_modules/@aws-sdk/credential-provider-process/dist-types/ts3.4/getValidatedProcessCredentials.d.ts b/node_modules/@aws-sdk/credential-provider-process/dist-types/ts3.4/getValidatedProcessCredentials.d.ts deleted file mode 100644 index a5cd7d91..00000000 --- a/node_modules/@aws-sdk/credential-provider-process/dist-types/ts3.4/getValidatedProcessCredentials.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { AwsCredentialIdentity } from "@smithy/types"; -import { ProcessCredentials } from "./ProcessCredentials"; -export declare const getValidatedProcessCredentials: ( - profileName: string, - data: ProcessCredentials -) => AwsCredentialIdentity; diff --git a/node_modules/@aws-sdk/credential-provider-process/dist-types/ts3.4/index.d.ts b/node_modules/@aws-sdk/credential-provider-process/dist-types/ts3.4/index.d.ts deleted file mode 100644 index b921d353..00000000 --- a/node_modules/@aws-sdk/credential-provider-process/dist-types/ts3.4/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./fromProcess"; diff --git a/node_modules/@aws-sdk/credential-provider-process/dist-types/ts3.4/resolveProcessCredentials.d.ts b/node_modules/@aws-sdk/credential-provider-process/dist-types/ts3.4/resolveProcessCredentials.d.ts deleted file mode 100644 index 0903a2fc..00000000 --- a/node_modules/@aws-sdk/credential-provider-process/dist-types/ts3.4/resolveProcessCredentials.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { AwsCredentialIdentity, ParsedIniData } from "@smithy/types"; -export declare const resolveProcessCredentials: ( - profileName: string, - profiles: ParsedIniData -) => Promise; diff --git a/node_modules/@aws-sdk/credential-provider-process/package.json b/node_modules/@aws-sdk/credential-provider-process/package.json deleted file mode 100644 index feb93c65..00000000 --- a/node_modules/@aws-sdk/credential-provider-process/package.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "name": "@aws-sdk/credential-provider-process", - "version": "3.451.0", - "description": "AWS credential provider that sources credential_process from ~/.aws/credentials and ~/.aws/config", - "main": "./dist-cjs/index.js", - "module": "./dist-es/index.js", - "scripts": { - "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", - "build:cjs": "tsc -p tsconfig.cjs.json", - "build:es": "tsc -p tsconfig.es.json", - "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build", - "build:types": "tsc -p tsconfig.types.json", - "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", - "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "jest" - }, - "keywords": [ - "aws", - "credentials" - ], - "author": { - "name": "AWS SDK for JavaScript Team", - "url": "https://aws.amazon.com/javascript/" - }, - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.451.0", - "@smithy/property-provider": "^2.0.0", - "@smithy/shared-ini-file-loader": "^2.0.6", - "@smithy/types": "^2.5.0", - "tslib": "^2.5.0" - }, - "devDependencies": { - "@tsconfig/recommended": "1.0.1", - "@types/node": "^14.14.31", - "concurrently": "7.0.0", - "downlevel-dts": "0.10.1", - "rimraf": "3.0.2", - "typedoc": "0.23.23", - "typescript": "~4.9.5" - }, - "types": "./dist-types/index.d.ts", - "engines": { - "node": ">=14.0.0" - }, - "typesVersions": { - "<4.0": { - "dist-types/*": [ - "dist-types/ts3.4/*" - ] - } - }, - "files": [ - "dist-*/**" - ], - "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/credential-provider-process", - "repository": { - "type": "git", - "url": "https://github.com/aws/aws-sdk-js-v3.git", - "directory": "packages/credential-provider-process" - }, - "typedoc": { - "entryPoint": "src/index.ts" - } -} diff --git a/node_modules/@aws-sdk/credential-provider-sso/LICENSE b/node_modules/@aws-sdk/credential-provider-sso/LICENSE deleted file mode 100644 index f9a66739..00000000 --- a/node_modules/@aws-sdk/credential-provider-sso/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. \ No newline at end of file diff --git a/node_modules/@aws-sdk/credential-provider-sso/README.md b/node_modules/@aws-sdk/credential-provider-sso/README.md deleted file mode 100644 index aba3fa80..00000000 --- a/node_modules/@aws-sdk/credential-provider-sso/README.md +++ /dev/null @@ -1,11 +0,0 @@ -# @aws-sdk/credential-provider-sso - -[![NPM version](https://img.shields.io/npm/v/@aws-sdk/credential-provider-sso/latest.svg)](https://www.npmjs.com/package/@aws-sdk/credential-provider-sso) -[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/credential-provider-sso.svg)](https://www.npmjs.com/package/@aws-sdk/credential-provider-sso) - -> An internal package - -## Usage - -You probably shouldn't, at least directly. Please use [@aws-sdk/credential-providers](https://www.npmjs.com/package/@aws-sdk/credential-providers) -instead. diff --git a/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/fromSSO.js b/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/fromSSO.js deleted file mode 100644 index 119d0217..00000000 --- a/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/fromSSO.js +++ /dev/null @@ -1,61 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.fromSSO = void 0; -const property_provider_1 = require("@smithy/property-provider"); -const shared_ini_file_loader_1 = require("@smithy/shared-ini-file-loader"); -const isSsoProfile_1 = require("./isSsoProfile"); -const resolveSSOCredentials_1 = require("./resolveSSOCredentials"); -const validateSsoProfile_1 = require("./validateSsoProfile"); -const fromSSO = (init = {}) => async () => { - const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, ssoSession } = init; - const profileName = (0, shared_ini_file_loader_1.getProfileName)(init); - if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName && !ssoSession) { - const profiles = await (0, shared_ini_file_loader_1.parseKnownFiles)(init); - const profile = profiles[profileName]; - if (!profile) { - throw new property_provider_1.CredentialsProviderError(`Profile ${profileName} was not found.`); - } - if (!(0, isSsoProfile_1.isSsoProfile)(profile)) { - throw new property_provider_1.CredentialsProviderError(`Profile ${profileName} is not configured with SSO credentials.`); - } - if (profile === null || profile === void 0 ? void 0 : profile.sso_session) { - const ssoSessions = await (0, shared_ini_file_loader_1.loadSsoSessionData)(init); - const session = ssoSessions[profile.sso_session]; - const conflictMsg = ` configurations in profile ${profileName} and sso-session ${profile.sso_session}`; - if (ssoRegion && ssoRegion !== session.sso_region) { - throw new property_provider_1.CredentialsProviderError(`Conflicting SSO region` + conflictMsg, false); - } - if (ssoStartUrl && ssoStartUrl !== session.sso_start_url) { - throw new property_provider_1.CredentialsProviderError(`Conflicting SSO start_url` + conflictMsg, false); - } - profile.sso_region = session.sso_region; - profile.sso_start_url = session.sso_start_url; - } - const { sso_start_url, sso_account_id, sso_region, sso_role_name, sso_session } = (0, validateSsoProfile_1.validateSsoProfile)(profile); - return (0, resolveSSOCredentials_1.resolveSSOCredentials)({ - ssoStartUrl: sso_start_url, - ssoSession: sso_session, - ssoAccountId: sso_account_id, - ssoRegion: sso_region, - ssoRoleName: sso_role_name, - ssoClient: ssoClient, - profile: profileName, - }); - } - else if (!ssoStartUrl || !ssoAccountId || !ssoRegion || !ssoRoleName) { - throw new property_provider_1.CredentialsProviderError("Incomplete configuration. The fromSSO() argument hash must include " + - '"ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"'); - } - else { - return (0, resolveSSOCredentials_1.resolveSSOCredentials)({ - ssoStartUrl, - ssoSession, - ssoAccountId, - ssoRegion, - ssoRoleName, - ssoClient, - profile: profileName, - }); - } -}; -exports.fromSSO = fromSSO; diff --git a/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js b/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js deleted file mode 100644 index b692007d..00000000 --- a/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/index.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./fromSSO"), exports); -tslib_1.__exportStar(require("./isSsoProfile"), exports); -tslib_1.__exportStar(require("./types"), exports); -tslib_1.__exportStar(require("./validateSsoProfile"), exports); diff --git a/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/isSsoProfile.js b/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/isSsoProfile.js deleted file mode 100644 index e477d8e3..00000000 --- a/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/isSsoProfile.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isSsoProfile = void 0; -const isSsoProfile = (arg) => arg && - (typeof arg.sso_start_url === "string" || - typeof arg.sso_account_id === "string" || - typeof arg.sso_session === "string" || - typeof arg.sso_region === "string" || - typeof arg.sso_role_name === "string"); -exports.isSsoProfile = isSsoProfile; diff --git a/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/resolveSSOCredentials.js b/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/resolveSSOCredentials.js deleted file mode 100644 index 3d1e77ef..00000000 --- a/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/resolveSSOCredentials.js +++ /dev/null @@ -1,54 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.resolveSSOCredentials = void 0; -const client_sso_1 = require("@aws-sdk/client-sso"); -const token_providers_1 = require("@aws-sdk/token-providers"); -const property_provider_1 = require("@smithy/property-provider"); -const shared_ini_file_loader_1 = require("@smithy/shared-ini-file-loader"); -const SHOULD_FAIL_CREDENTIAL_CHAIN = false; -const resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, profile, }) => { - let token; - const refreshMessage = `To refresh this SSO session run aws sso login with the corresponding profile.`; - if (ssoSession) { - try { - const _token = await (0, token_providers_1.fromSso)({ profile })(); - token = { - accessToken: _token.token, - expiresAt: new Date(_token.expiration).toISOString(), - }; - } - catch (e) { - throw new property_provider_1.CredentialsProviderError(e.message, SHOULD_FAIL_CREDENTIAL_CHAIN); - } - } - else { - try { - token = await (0, shared_ini_file_loader_1.getSSOTokenFromFile)(ssoStartUrl); - } - catch (e) { - throw new property_provider_1.CredentialsProviderError(`The SSO session associated with this profile is invalid. ${refreshMessage}`, SHOULD_FAIL_CREDENTIAL_CHAIN); - } - } - if (new Date(token.expiresAt).getTime() - Date.now() <= 0) { - throw new property_provider_1.CredentialsProviderError(`The SSO session associated with this profile has expired. ${refreshMessage}`, SHOULD_FAIL_CREDENTIAL_CHAIN); - } - const { accessToken } = token; - const sso = ssoClient || new client_sso_1.SSOClient({ region: ssoRegion }); - let ssoResp; - try { - ssoResp = await sso.send(new client_sso_1.GetRoleCredentialsCommand({ - accountId: ssoAccountId, - roleName: ssoRoleName, - accessToken, - })); - } - catch (e) { - throw property_provider_1.CredentialsProviderError.from(e, SHOULD_FAIL_CREDENTIAL_CHAIN); - } - const { roleCredentials: { accessKeyId, secretAccessKey, sessionToken, expiration } = {} } = ssoResp; - if (!accessKeyId || !secretAccessKey || !sessionToken || !expiration) { - throw new property_provider_1.CredentialsProviderError("SSO returns an invalid temporary credential.", SHOULD_FAIL_CREDENTIAL_CHAIN); - } - return { accessKeyId, secretAccessKey, sessionToken, expiration: new Date(expiration) }; -}; -exports.resolveSSOCredentials = resolveSSOCredentials; diff --git a/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/types.js b/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/types.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/types.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/validateSsoProfile.js b/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/validateSsoProfile.js deleted file mode 100644 index 2169fb1a..00000000 --- a/node_modules/@aws-sdk/credential-provider-sso/dist-cjs/validateSsoProfile.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.validateSsoProfile = void 0; -const property_provider_1 = require("@smithy/property-provider"); -const validateSsoProfile = (profile) => { - const { sso_start_url, sso_account_id, sso_region, sso_role_name } = profile; - if (!sso_start_url || !sso_account_id || !sso_region || !sso_role_name) { - throw new property_provider_1.CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", ` + - `"sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(profile).join(", ")}\nReference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`, false); - } - return profile; -}; -exports.validateSsoProfile = validateSsoProfile; diff --git a/node_modules/@aws-sdk/credential-provider-sso/dist-es/fromSSO.js b/node_modules/@aws-sdk/credential-provider-sso/dist-es/fromSSO.js deleted file mode 100644 index b56c8ba7..00000000 --- a/node_modules/@aws-sdk/credential-provider-sso/dist-es/fromSSO.js +++ /dev/null @@ -1,57 +0,0 @@ -import { CredentialsProviderError } from "@smithy/property-provider"; -import { getProfileName, loadSsoSessionData, parseKnownFiles } from "@smithy/shared-ini-file-loader"; -import { isSsoProfile } from "./isSsoProfile"; -import { resolveSSOCredentials } from "./resolveSSOCredentials"; -import { validateSsoProfile } from "./validateSsoProfile"; -export const fromSSO = (init = {}) => async () => { - const { ssoStartUrl, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, ssoSession } = init; - const profileName = getProfileName(init); - if (!ssoStartUrl && !ssoAccountId && !ssoRegion && !ssoRoleName && !ssoSession) { - const profiles = await parseKnownFiles(init); - const profile = profiles[profileName]; - if (!profile) { - throw new CredentialsProviderError(`Profile ${profileName} was not found.`); - } - if (!isSsoProfile(profile)) { - throw new CredentialsProviderError(`Profile ${profileName} is not configured with SSO credentials.`); - } - if (profile?.sso_session) { - const ssoSessions = await loadSsoSessionData(init); - const session = ssoSessions[profile.sso_session]; - const conflictMsg = ` configurations in profile ${profileName} and sso-session ${profile.sso_session}`; - if (ssoRegion && ssoRegion !== session.sso_region) { - throw new CredentialsProviderError(`Conflicting SSO region` + conflictMsg, false); - } - if (ssoStartUrl && ssoStartUrl !== session.sso_start_url) { - throw new CredentialsProviderError(`Conflicting SSO start_url` + conflictMsg, false); - } - profile.sso_region = session.sso_region; - profile.sso_start_url = session.sso_start_url; - } - const { sso_start_url, sso_account_id, sso_region, sso_role_name, sso_session } = validateSsoProfile(profile); - return resolveSSOCredentials({ - ssoStartUrl: sso_start_url, - ssoSession: sso_session, - ssoAccountId: sso_account_id, - ssoRegion: sso_region, - ssoRoleName: sso_role_name, - ssoClient: ssoClient, - profile: profileName, - }); - } - else if (!ssoStartUrl || !ssoAccountId || !ssoRegion || !ssoRoleName) { - throw new CredentialsProviderError("Incomplete configuration. The fromSSO() argument hash must include " + - '"ssoStartUrl", "ssoAccountId", "ssoRegion", "ssoRoleName"'); - } - else { - return resolveSSOCredentials({ - ssoStartUrl, - ssoSession, - ssoAccountId, - ssoRegion, - ssoRoleName, - ssoClient, - profile: profileName, - }); - } -}; diff --git a/node_modules/@aws-sdk/credential-provider-sso/dist-es/index.js b/node_modules/@aws-sdk/credential-provider-sso/dist-es/index.js deleted file mode 100644 index 7215fb68..00000000 --- a/node_modules/@aws-sdk/credential-provider-sso/dist-es/index.js +++ /dev/null @@ -1,4 +0,0 @@ -export * from "./fromSSO"; -export * from "./isSsoProfile"; -export * from "./types"; -export * from "./validateSsoProfile"; diff --git a/node_modules/@aws-sdk/credential-provider-sso/dist-es/isSsoProfile.js b/node_modules/@aws-sdk/credential-provider-sso/dist-es/isSsoProfile.js deleted file mode 100644 index e6554380..00000000 --- a/node_modules/@aws-sdk/credential-provider-sso/dist-es/isSsoProfile.js +++ /dev/null @@ -1,6 +0,0 @@ -export const isSsoProfile = (arg) => arg && - (typeof arg.sso_start_url === "string" || - typeof arg.sso_account_id === "string" || - typeof arg.sso_session === "string" || - typeof arg.sso_region === "string" || - typeof arg.sso_role_name === "string"); diff --git a/node_modules/@aws-sdk/credential-provider-sso/dist-es/resolveSSOCredentials.js b/node_modules/@aws-sdk/credential-provider-sso/dist-es/resolveSSOCredentials.js deleted file mode 100644 index f9aa893a..00000000 --- a/node_modules/@aws-sdk/credential-provider-sso/dist-es/resolveSSOCredentials.js +++ /dev/null @@ -1,50 +0,0 @@ -import { GetRoleCredentialsCommand, SSOClient } from "@aws-sdk/client-sso"; -import { fromSso as getSsoTokenProvider } from "@aws-sdk/token-providers"; -import { CredentialsProviderError } from "@smithy/property-provider"; -import { getSSOTokenFromFile } from "@smithy/shared-ini-file-loader"; -const SHOULD_FAIL_CREDENTIAL_CHAIN = false; -export const resolveSSOCredentials = async ({ ssoStartUrl, ssoSession, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, profile, }) => { - let token; - const refreshMessage = `To refresh this SSO session run aws sso login with the corresponding profile.`; - if (ssoSession) { - try { - const _token = await getSsoTokenProvider({ profile })(); - token = { - accessToken: _token.token, - expiresAt: new Date(_token.expiration).toISOString(), - }; - } - catch (e) { - throw new CredentialsProviderError(e.message, SHOULD_FAIL_CREDENTIAL_CHAIN); - } - } - else { - try { - token = await getSSOTokenFromFile(ssoStartUrl); - } - catch (e) { - throw new CredentialsProviderError(`The SSO session associated with this profile is invalid. ${refreshMessage}`, SHOULD_FAIL_CREDENTIAL_CHAIN); - } - } - if (new Date(token.expiresAt).getTime() - Date.now() <= 0) { - throw new CredentialsProviderError(`The SSO session associated with this profile has expired. ${refreshMessage}`, SHOULD_FAIL_CREDENTIAL_CHAIN); - } - const { accessToken } = token; - const sso = ssoClient || new SSOClient({ region: ssoRegion }); - let ssoResp; - try { - ssoResp = await sso.send(new GetRoleCredentialsCommand({ - accountId: ssoAccountId, - roleName: ssoRoleName, - accessToken, - })); - } - catch (e) { - throw CredentialsProviderError.from(e, SHOULD_FAIL_CREDENTIAL_CHAIN); - } - const { roleCredentials: { accessKeyId, secretAccessKey, sessionToken, expiration } = {} } = ssoResp; - if (!accessKeyId || !secretAccessKey || !sessionToken || !expiration) { - throw new CredentialsProviderError("SSO returns an invalid temporary credential.", SHOULD_FAIL_CREDENTIAL_CHAIN); - } - return { accessKeyId, secretAccessKey, sessionToken, expiration: new Date(expiration) }; -}; diff --git a/node_modules/@aws-sdk/credential-provider-sso/dist-es/types.js b/node_modules/@aws-sdk/credential-provider-sso/dist-es/types.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@aws-sdk/credential-provider-sso/dist-es/types.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@aws-sdk/credential-provider-sso/dist-es/validateSsoProfile.js b/node_modules/@aws-sdk/credential-provider-sso/dist-es/validateSsoProfile.js deleted file mode 100644 index ba5acebf..00000000 --- a/node_modules/@aws-sdk/credential-provider-sso/dist-es/validateSsoProfile.js +++ /dev/null @@ -1,9 +0,0 @@ -import { CredentialsProviderError } from "@smithy/property-provider"; -export const validateSsoProfile = (profile) => { - const { sso_start_url, sso_account_id, sso_region, sso_role_name } = profile; - if (!sso_start_url || !sso_account_id || !sso_region || !sso_role_name) { - throw new CredentialsProviderError(`Profile is configured with invalid SSO credentials. Required parameters "sso_account_id", ` + - `"sso_region", "sso_role_name", "sso_start_url". Got ${Object.keys(profile).join(", ")}\nReference: https://docs.aws.amazon.com/cli/latest/userguide/cli-configure-sso.html`, false); - } - return profile; -}; diff --git a/node_modules/@aws-sdk/credential-provider-sso/dist-types/fromSSO.d.ts b/node_modules/@aws-sdk/credential-provider-sso/dist-types/fromSSO.d.ts deleted file mode 100644 index 6785eb3d..00000000 --- a/node_modules/@aws-sdk/credential-provider-sso/dist-types/fromSSO.d.ts +++ /dev/null @@ -1,67 +0,0 @@ -import { SSOClient } from "@aws-sdk/client-sso"; -import { SourceProfileInit } from "@smithy/shared-ini-file-loader"; -import { AwsCredentialIdentityProvider } from "@smithy/types"; -/** - * @internal - */ -export interface SsoCredentialsParameters { - /** - * The URL to the AWS SSO service. - */ - ssoStartUrl: string; - /** - * SSO session identifier. - * Presence implies usage of the SSOTokenProvider. - */ - ssoSession?: string; - /** - * The ID of the AWS account to use for temporary credentials. - */ - ssoAccountId: string; - /** - * The AWS region to use for temporary credentials. - */ - ssoRegion: string; - /** - * The name of the AWS role to assume. - */ - ssoRoleName: string; -} -/** - * @internal - */ -export interface FromSSOInit extends SourceProfileInit { - ssoClient?: SSOClient; -} -/** - * @internal - * - * Creates a credential provider that will read from a credential_process specified - * in ini files. - * - * The SSO credential provider must support both - * - * 1. the legacy profile format, - * @example - * ``` - * [profile sample-profile] - * sso_account_id = 012345678901 - * sso_region = us-east-1 - * sso_role_name = SampleRole - * sso_start_url = https://www.....com/start - * ``` - * - * 2. and the profile format for SSO Token Providers. - * @example - * ``` - * [profile sso-profile] - * sso_session = dev - * sso_account_id = 012345678901 - * sso_role_name = SampleRole - * - * [sso-session dev] - * sso_region = us-east-1 - * sso_start_url = https://www.....com/start - * ``` - */ -export declare const fromSSO: (init?: FromSSOInit & Partial) => AwsCredentialIdentityProvider; diff --git a/node_modules/@aws-sdk/credential-provider-sso/dist-types/index.d.ts b/node_modules/@aws-sdk/credential-provider-sso/dist-types/index.d.ts deleted file mode 100644 index d851c152..00000000 --- a/node_modules/@aws-sdk/credential-provider-sso/dist-types/index.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * @internal - */ -export * from "./fromSSO"; -/** - * @internal - */ -export * from "./isSsoProfile"; -/** - * @internal - */ -export * from "./types"; -/** - * @internal - */ -export * from "./validateSsoProfile"; diff --git a/node_modules/@aws-sdk/credential-provider-sso/dist-types/isSsoProfile.d.ts b/node_modules/@aws-sdk/credential-provider-sso/dist-types/isSsoProfile.d.ts deleted file mode 100644 index 77c1fb23..00000000 --- a/node_modules/@aws-sdk/credential-provider-sso/dist-types/isSsoProfile.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { Profile } from "@smithy/types"; -import { SsoProfile } from "./types"; -/** - * @internal - */ -export declare const isSsoProfile: (arg: Profile) => arg is Partial; diff --git a/node_modules/@aws-sdk/credential-provider-sso/dist-types/resolveSSOCredentials.d.ts b/node_modules/@aws-sdk/credential-provider-sso/dist-types/resolveSSOCredentials.d.ts deleted file mode 100644 index dabe2f58..00000000 --- a/node_modules/@aws-sdk/credential-provider-sso/dist-types/resolveSSOCredentials.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { AwsCredentialIdentity } from "@smithy/types"; -import { FromSSOInit, SsoCredentialsParameters } from "./fromSSO"; -/** - * @private - */ -export declare const resolveSSOCredentials: ({ ssoStartUrl, ssoSession, ssoAccountId, ssoRegion, ssoRoleName, ssoClient, profile, }: FromSSOInit & SsoCredentialsParameters) => Promise; diff --git a/node_modules/@aws-sdk/credential-provider-sso/dist-types/ts3.4/fromSSO.d.ts b/node_modules/@aws-sdk/credential-provider-sso/dist-types/ts3.4/fromSSO.d.ts deleted file mode 100644 index 8fb1674a..00000000 --- a/node_modules/@aws-sdk/credential-provider-sso/dist-types/ts3.4/fromSSO.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { SSOClient } from "@aws-sdk/client-sso"; -import { SourceProfileInit } from "@smithy/shared-ini-file-loader"; -import { AwsCredentialIdentityProvider } from "@smithy/types"; -export interface SsoCredentialsParameters { - ssoStartUrl: string; - ssoSession?: string; - ssoAccountId: string; - ssoRegion: string; - ssoRoleName: string; -} -export interface FromSSOInit extends SourceProfileInit { - ssoClient?: SSOClient; -} -export declare const fromSSO: ( - init?: FromSSOInit & Partial -) => AwsCredentialIdentityProvider; diff --git a/node_modules/@aws-sdk/credential-provider-sso/dist-types/ts3.4/index.d.ts b/node_modules/@aws-sdk/credential-provider-sso/dist-types/ts3.4/index.d.ts deleted file mode 100644 index 7215fb68..00000000 --- a/node_modules/@aws-sdk/credential-provider-sso/dist-types/ts3.4/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export * from "./fromSSO"; -export * from "./isSsoProfile"; -export * from "./types"; -export * from "./validateSsoProfile"; diff --git a/node_modules/@aws-sdk/credential-provider-sso/dist-types/ts3.4/isSsoProfile.d.ts b/node_modules/@aws-sdk/credential-provider-sso/dist-types/ts3.4/isSsoProfile.d.ts deleted file mode 100644 index b4e8bddd..00000000 --- a/node_modules/@aws-sdk/credential-provider-sso/dist-types/ts3.4/isSsoProfile.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { Profile } from "@smithy/types"; -import { SsoProfile } from "./types"; -export declare const isSsoProfile: (arg: Profile) => arg is Partial; diff --git a/node_modules/@aws-sdk/credential-provider-sso/dist-types/ts3.4/resolveSSOCredentials.d.ts b/node_modules/@aws-sdk/credential-provider-sso/dist-types/ts3.4/resolveSSOCredentials.d.ts deleted file mode 100644 index 1a74d6c4..00000000 --- a/node_modules/@aws-sdk/credential-provider-sso/dist-types/ts3.4/resolveSSOCredentials.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { AwsCredentialIdentity } from "@smithy/types"; -import { FromSSOInit, SsoCredentialsParameters } from "./fromSSO"; -export declare const resolveSSOCredentials: ({ - ssoStartUrl, - ssoSession, - ssoAccountId, - ssoRegion, - ssoRoleName, - ssoClient, - profile, -}: FromSSOInit & SsoCredentialsParameters) => Promise; diff --git a/node_modules/@aws-sdk/credential-provider-sso/dist-types/ts3.4/types.d.ts b/node_modules/@aws-sdk/credential-provider-sso/dist-types/ts3.4/types.d.ts deleted file mode 100644 index 4a3986b3..00000000 --- a/node_modules/@aws-sdk/credential-provider-sso/dist-types/ts3.4/types.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { Profile } from "@smithy/types"; -export interface SSOToken { - accessToken: string; - expiresAt: string; - region?: string; - startUrl?: string; -} -export interface SsoProfile extends Profile { - sso_start_url: string; - sso_session?: string; - sso_account_id: string; - sso_region: string; - sso_role_name: string; -} diff --git a/node_modules/@aws-sdk/credential-provider-sso/dist-types/ts3.4/validateSsoProfile.d.ts b/node_modules/@aws-sdk/credential-provider-sso/dist-types/ts3.4/validateSsoProfile.d.ts deleted file mode 100644 index 67fa8639..00000000 --- a/node_modules/@aws-sdk/credential-provider-sso/dist-types/ts3.4/validateSsoProfile.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { SsoProfile } from "./types"; -export declare const validateSsoProfile: ( - profile: Partial -) => SsoProfile; diff --git a/node_modules/@aws-sdk/credential-provider-sso/dist-types/types.d.ts b/node_modules/@aws-sdk/credential-provider-sso/dist-types/types.d.ts deleted file mode 100644 index 551d6784..00000000 --- a/node_modules/@aws-sdk/credential-provider-sso/dist-types/types.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { Profile } from "@smithy/types"; -/** - * @internal - * - * Cached SSO token retrieved from SSO login flow. - */ -export interface SSOToken { - accessToken: string; - expiresAt: string; - region?: string; - startUrl?: string; -} -/** - * @internal - */ -export interface SsoProfile extends Profile { - sso_start_url: string; - sso_session?: string; - sso_account_id: string; - sso_region: string; - sso_role_name: string; -} diff --git a/node_modules/@aws-sdk/credential-provider-sso/dist-types/validateSsoProfile.d.ts b/node_modules/@aws-sdk/credential-provider-sso/dist-types/validateSsoProfile.d.ts deleted file mode 100644 index eddea0cb..00000000 --- a/node_modules/@aws-sdk/credential-provider-sso/dist-types/validateSsoProfile.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { SsoProfile } from "./types"; -/** - * @internal - */ -export declare const validateSsoProfile: (profile: Partial) => SsoProfile; diff --git a/node_modules/@aws-sdk/credential-provider-sso/package.json b/node_modules/@aws-sdk/credential-provider-sso/package.json deleted file mode 100644 index 65cbd408..00000000 --- a/node_modules/@aws-sdk/credential-provider-sso/package.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "name": "@aws-sdk/credential-provider-sso", - "version": "3.451.0", - "description": "AWS credential provider that exchanges a resolved SSO login token file for temporary AWS credentials", - "main": "./dist-cjs/index.js", - "module": "./dist-es/index.js", - "scripts": { - "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", - "build:cjs": "tsc -p tsconfig.cjs.json", - "build:es": "tsc -p tsconfig.es.json", - "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build", - "build:types": "tsc -p tsconfig.types.json", - "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", - "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "jest" - }, - "keywords": [ - "aws", - "credentials" - ], - "author": { - "name": "AWS SDK for JavaScript Team", - "url": "https://aws.amazon.com/javascript/" - }, - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/client-sso": "3.451.0", - "@aws-sdk/token-providers": "3.451.0", - "@aws-sdk/types": "3.451.0", - "@smithy/property-provider": "^2.0.0", - "@smithy/shared-ini-file-loader": "^2.0.6", - "@smithy/types": "^2.5.0", - "tslib": "^2.5.0" - }, - "devDependencies": { - "@tsconfig/recommended": "1.0.1", - "@types/node": "^14.14.31", - "concurrently": "7.0.0", - "downlevel-dts": "0.10.1", - "rimraf": "3.0.2", - "typedoc": "0.23.23", - "typescript": "~4.9.5" - }, - "types": "./dist-types/index.d.ts", - "engines": { - "node": ">=14.0.0" - }, - "typesVersions": { - "<4.0": { - "dist-types/*": [ - "dist-types/ts3.4/*" - ] - } - }, - "files": [ - "dist-*/**" - ], - "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/master/packages/credential-provider-sso", - "repository": { - "type": "git", - "url": "https://github.com/aws/aws-sdk-js-v3.git", - "directory": "packages/credential-provider-sso" - }, - "typedoc": { - "entryPoint": "src/index.ts" - } -} diff --git a/node_modules/@aws-sdk/credential-provider-web-identity/LICENSE b/node_modules/@aws-sdk/credential-provider-web-identity/LICENSE deleted file mode 100644 index f9a66739..00000000 --- a/node_modules/@aws-sdk/credential-provider-web-identity/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. \ No newline at end of file diff --git a/node_modules/@aws-sdk/credential-provider-web-identity/README.md b/node_modules/@aws-sdk/credential-provider-web-identity/README.md deleted file mode 100644 index e4858a41..00000000 --- a/node_modules/@aws-sdk/credential-provider-web-identity/README.md +++ /dev/null @@ -1,11 +0,0 @@ -# @aws-sdk/credential-provider-web-identity - -[![NPM version](https://img.shields.io/npm/v/@aws-sdk/credential-provider-web-identity/latest.svg)](https://www.npmjs.com/package/@aws-sdk/credential-provider-web-identity) -[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/credential-provider-web-identity.svg)](https://www.npmjs.com/package/@aws-sdk/credential-provider-web-identity) - -> An internal package - -## Usage - -You probably shouldn't, at least directly. Please use [@aws-sdk/credential-providers](https://www.npmjs.com/package/@aws-sdk/credential-providers) -instead. diff --git a/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js b/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js deleted file mode 100644 index a4f568e9..00000000 --- a/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromTokenFile.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.fromTokenFile = void 0; -const property_provider_1 = require("@smithy/property-provider"); -const fs_1 = require("fs"); -const fromWebToken_1 = require("./fromWebToken"); -const ENV_TOKEN_FILE = "AWS_WEB_IDENTITY_TOKEN_FILE"; -const ENV_ROLE_ARN = "AWS_ROLE_ARN"; -const ENV_ROLE_SESSION_NAME = "AWS_ROLE_SESSION_NAME"; -const fromTokenFile = (init = {}) => async () => { - var _a, _b, _c; - const webIdentityTokenFile = (_a = init === null || init === void 0 ? void 0 : init.webIdentityTokenFile) !== null && _a !== void 0 ? _a : process.env[ENV_TOKEN_FILE]; - const roleArn = (_b = init === null || init === void 0 ? void 0 : init.roleArn) !== null && _b !== void 0 ? _b : process.env[ENV_ROLE_ARN]; - const roleSessionName = (_c = init === null || init === void 0 ? void 0 : init.roleSessionName) !== null && _c !== void 0 ? _c : process.env[ENV_ROLE_SESSION_NAME]; - if (!webIdentityTokenFile || !roleArn) { - throw new property_provider_1.CredentialsProviderError("Web identity configuration not specified"); - } - return (0, fromWebToken_1.fromWebToken)({ - ...init, - webIdentityToken: (0, fs_1.readFileSync)(webIdentityTokenFile, { encoding: "ascii" }), - roleArn, - roleSessionName, - })(); -}; -exports.fromTokenFile = fromTokenFile; diff --git a/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js b/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js deleted file mode 100644 index c9d3624c..00000000 --- a/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/fromWebToken.js +++ /dev/null @@ -1,21 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.fromWebToken = void 0; -const property_provider_1 = require("@smithy/property-provider"); -const fromWebToken = (init) => () => { - const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy, durationSeconds, roleAssumerWithWebIdentity, } = init; - if (!roleAssumerWithWebIdentity) { - throw new property_provider_1.CredentialsProviderError(`Role Arn '${roleArn}' needs to be assumed with web identity,` + - ` but no role assumption callback was provided.`, false); - } - return roleAssumerWithWebIdentity({ - RoleArn: roleArn, - RoleSessionName: roleSessionName !== null && roleSessionName !== void 0 ? roleSessionName : `aws-sdk-js-session-${Date.now()}`, - WebIdentityToken: webIdentityToken, - ProviderId: providerId, - PolicyArns: policyArns, - Policy: policy, - DurationSeconds: durationSeconds, - }); -}; -exports.fromWebToken = fromWebToken; diff --git a/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js b/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js deleted file mode 100644 index 2470bd90..00000000 --- a/node_modules/@aws-sdk/credential-provider-web-identity/dist-cjs/index.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./fromTokenFile"), exports); -tslib_1.__exportStar(require("./fromWebToken"), exports); diff --git a/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromTokenFile.js b/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromTokenFile.js deleted file mode 100644 index 91678697..00000000 --- a/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromTokenFile.js +++ /dev/null @@ -1,20 +0,0 @@ -import { CredentialsProviderError } from "@smithy/property-provider"; -import { readFileSync } from "fs"; -import { fromWebToken } from "./fromWebToken"; -const ENV_TOKEN_FILE = "AWS_WEB_IDENTITY_TOKEN_FILE"; -const ENV_ROLE_ARN = "AWS_ROLE_ARN"; -const ENV_ROLE_SESSION_NAME = "AWS_ROLE_SESSION_NAME"; -export const fromTokenFile = (init = {}) => async () => { - const webIdentityTokenFile = init?.webIdentityTokenFile ?? process.env[ENV_TOKEN_FILE]; - const roleArn = init?.roleArn ?? process.env[ENV_ROLE_ARN]; - const roleSessionName = init?.roleSessionName ?? process.env[ENV_ROLE_SESSION_NAME]; - if (!webIdentityTokenFile || !roleArn) { - throw new CredentialsProviderError("Web identity configuration not specified"); - } - return fromWebToken({ - ...init, - webIdentityToken: readFileSync(webIdentityTokenFile, { encoding: "ascii" }), - roleArn, - roleSessionName, - })(); -}; diff --git a/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromWebToken.js b/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromWebToken.js deleted file mode 100644 index 7de9d7d7..00000000 --- a/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/fromWebToken.js +++ /dev/null @@ -1,17 +0,0 @@ -import { CredentialsProviderError } from "@smithy/property-provider"; -export const fromWebToken = (init) => () => { - const { roleArn, roleSessionName, webIdentityToken, providerId, policyArns, policy, durationSeconds, roleAssumerWithWebIdentity, } = init; - if (!roleAssumerWithWebIdentity) { - throw new CredentialsProviderError(`Role Arn '${roleArn}' needs to be assumed with web identity,` + - ` but no role assumption callback was provided.`, false); - } - return roleAssumerWithWebIdentity({ - RoleArn: roleArn, - RoleSessionName: roleSessionName ?? `aws-sdk-js-session-${Date.now()}`, - WebIdentityToken: webIdentityToken, - ProviderId: providerId, - PolicyArns: policyArns, - Policy: policy, - DurationSeconds: durationSeconds, - }); -}; diff --git a/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/index.js b/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/index.js deleted file mode 100644 index 0e900c0a..00000000 --- a/node_modules/@aws-sdk/credential-provider-web-identity/dist-es/index.js +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./fromTokenFile"; -export * from "./fromWebToken"; diff --git a/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/fromTokenFile.d.ts b/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/fromTokenFile.d.ts deleted file mode 100644 index c691d1da..00000000 --- a/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/fromTokenFile.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { AwsCredentialIdentityProvider } from "@smithy/types"; -import { FromWebTokenInit } from "./fromWebToken"; -/** - * @internal - */ -export interface FromTokenFileInit extends Partial> { - /** - * File location of where the `OIDC` token is stored. - */ - webIdentityTokenFile?: string; -} -/** - * @internal - * - * Represents OIDC credentials from a file on disk. - */ -export declare const fromTokenFile: (init?: FromTokenFileInit) => AwsCredentialIdentityProvider; diff --git a/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/fromWebToken.d.ts b/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/fromWebToken.d.ts deleted file mode 100644 index 1ddae67d..00000000 --- a/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/fromWebToken.d.ts +++ /dev/null @@ -1,135 +0,0 @@ -import { AwsCredentialIdentity, AwsCredentialIdentityProvider } from "@smithy/types"; -/** - * @internal - */ -export interface AssumeRoleWithWebIdentityParams { - /** - *

The Amazon Resource Name (ARN) of the role that the caller is assuming.

- */ - RoleArn: string; - /** - *

An identifier for the assumed role session. Typically, you pass the name or identifier - * that is associated with the user who is using your application. That way, the temporary - * security credentials that your application will use are associated with that user. This - * session name is included as part of the ARN and assumed role ID in the - * AssumedRoleUser response element.

- *

The regex used to validate this parameter is a string of characters - * consisting of upper- and lower-case alphanumeric characters with no spaces. You can - * also include underscores or any of the following characters: =,.@-

- */ - RoleSessionName: string; - /** - *

The OAuth 2.0 access token or OpenID Connect ID token that is provided by the identity - * provider. Your application must get this token by authenticating the user who is using your - * application with a web identity provider before the application makes an - * AssumeRoleWithWebIdentity call.

- */ - WebIdentityToken: string; - /** - *

The fully qualified host component of the domain name of the identity provider.

- *

Specify this value only for OAuth 2.0 access tokens. Currently - * www.amazon.com and graph.facebook.com are the only supported - * identity providers for OAuth 2.0 access tokens. Do not include URL schemes and port - * numbers.

- *

Do not specify this value for OpenID Connect ID tokens.

- */ - ProviderId?: string; - /** - *

The Amazon Resource Names (ARNs) of the IAM managed policies that you want to use as - * managed session policies. The policies must exist in the same account as the role.

- *

This parameter is optional. You can provide up to 10 managed policy ARNs. However, the - * plain text that you use for both inline and managed session policies can't exceed 2,048 - * characters. For more information about ARNs, see Amazon Resource Names (ARNs) and AWS - * Service Namespaces in the AWS General Reference.

- * - *

An AWS conversion compresses the passed session policies and session tags into a - * packed binary format that has a separate limit. Your request can fail for this limit - * even if your plain text meets the other requirements. The PackedPolicySize - * response element indicates by percentage how close the policies and tags for your - * request are to the upper size limit. - *

- *
- * - *

Passing policies to this operation returns new - * temporary credentials. The resulting session's permissions are the intersection of the - * role's identity-based policy and the session policies. You can use the role's temporary - * credentials in subsequent AWS API calls to access resources in the account that owns - * the role. You cannot use session policies to grant more permissions than those allowed - * by the identity-based policy of the role that is being assumed. For more information, see - * Session - * Policies in the IAM User Guide.

- */ - PolicyArns?: { - arn?: string; - }[]; - /** - *

An IAM policy in JSON format that you want to use as an inline session policy.

- *

This parameter is optional. Passing policies to this operation returns new - * temporary credentials. The resulting session's permissions are the intersection of the - * role's identity-based policy and the session policies. You can use the role's temporary - * credentials in subsequent AWS API calls to access resources in the account that owns - * the role. You cannot use session policies to grant more permissions than those allowed - * by the identity-based policy of the role that is being assumed. For more information, see - * Session - * Policies in the IAM User Guide.

- *

The plain text that you use for both inline and managed session policies can't exceed - * 2,048 characters. The JSON policy characters can be any ASCII character from the space - * character to the end of the valid character list (\u0020 through \u00FF). It can also - * include the tab (\u0009), linefeed (\u000A), and carriage return (\u000D) - * characters.

- * - *

An AWS conversion compresses the passed session policies and session tags into a - * packed binary format that has a separate limit. Your request can fail for this limit - * even if your plain text meets the other requirements. The PackedPolicySize - * response element indicates by percentage how close the policies and tags for your - * request are to the upper size limit. - *

- *
- */ - Policy?: string; - /** - *

The duration, in seconds, of the role session. The value can range from 900 seconds (15 - * minutes) up to the maximum session duration setting for the role. This setting can have a - * value from 1 hour to 12 hours. If you specify a value higher than this setting, the - * operation fails. For example, if you specify a session duration of 12 hours, but your - * administrator set the maximum session duration to 6 hours, your operation fails. To learn - * how to view the maximum value for your role, see View the - * Maximum Session Duration Setting for a Role in the - * IAM User Guide.

- *

By default, the value is set to 3600 seconds.

- * - *

The DurationSeconds parameter is separate from the duration of a console - * session that you might request using the returned credentials. The request to the - * federation endpoint for a console sign-in token takes a SessionDuration - * parameter that specifies the maximum length of the console session. For more - * information, see Creating a URL - * that Enables Federated Users to Access the AWS Management Console in the - * IAM User Guide.

- *
- */ - DurationSeconds?: number; -} -type LowerCaseKey = { - [K in keyof T as `${Uncapitalize}`]: T[K]; -}; -/** - * @internal - */ -export interface FromWebTokenInit extends Omit, "roleSessionName"> { - /** - * The IAM session name used to distinguish sessions. - */ - roleSessionName?: string; - /** - * A function that assumes a role with web identity and returns a promise fulfilled with - * credentials for the assumed role. - * - * @param params input parameter of sts:AssumeRoleWithWebIdentity API. - */ - roleAssumerWithWebIdentity?: (params: AssumeRoleWithWebIdentityParams) => Promise; -} -/** - * @internal - */ -export declare const fromWebToken: (init: FromWebTokenInit) => AwsCredentialIdentityProvider; -export {}; diff --git a/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/index.d.ts b/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/index.d.ts deleted file mode 100644 index 36c15dcd..00000000 --- a/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @internal - */ -export * from "./fromTokenFile"; -/** - * @internal - */ -export * from "./fromWebToken"; diff --git a/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/ts3.4/fromTokenFile.d.ts b/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/ts3.4/fromTokenFile.d.ts deleted file mode 100644 index 4bbc9f31..00000000 --- a/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/ts3.4/fromTokenFile.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { AwsCredentialIdentityProvider } from "@smithy/types"; -import { FromWebTokenInit } from "./fromWebToken"; -export interface FromTokenFileInit - extends Partial< - Pick> - > { - webIdentityTokenFile?: string; -} -export declare const fromTokenFile: ( - init?: FromTokenFileInit -) => AwsCredentialIdentityProvider; diff --git a/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/ts3.4/fromWebToken.d.ts b/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/ts3.4/fromWebToken.d.ts deleted file mode 100644 index c53ba84e..00000000 --- a/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/ts3.4/fromWebToken.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { - AwsCredentialIdentity, - AwsCredentialIdentityProvider, -} from "@smithy/types"; -export interface AssumeRoleWithWebIdentityParams { - RoleArn: string; - RoleSessionName: string; - WebIdentityToken: string; - ProviderId?: string; - PolicyArns?: { - arn?: string; - }[]; - Policy?: string; - DurationSeconds?: number; -} -type LowerCaseKey = { - [K in keyof T as `${Uncapitalize}`]: T[K]; -}; -export interface FromWebTokenInit - extends Pick< - LowerCaseKey, - Exclude< - keyof LowerCaseKey, - "roleSessionName" - > - > { - roleSessionName?: string; - roleAssumerWithWebIdentity?: ( - params: AssumeRoleWithWebIdentityParams - ) => Promise; -} -export declare const fromWebToken: ( - init: FromWebTokenInit -) => AwsCredentialIdentityProvider; -export {}; diff --git a/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/ts3.4/index.d.ts b/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/ts3.4/index.d.ts deleted file mode 100644 index 0e900c0a..00000000 --- a/node_modules/@aws-sdk/credential-provider-web-identity/dist-types/ts3.4/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./fromTokenFile"; -export * from "./fromWebToken"; diff --git a/node_modules/@aws-sdk/credential-provider-web-identity/package.json b/node_modules/@aws-sdk/credential-provider-web-identity/package.json deleted file mode 100644 index 971781e6..00000000 --- a/node_modules/@aws-sdk/credential-provider-web-identity/package.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "name": "@aws-sdk/credential-provider-web-identity", - "version": "3.451.0", - "description": "AWS credential provider that calls STS assumeRole for temporary AWS credentials", - "main": "./dist-cjs/index.js", - "module": "./dist-es/index.js", - "scripts": { - "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", - "build:cjs": "tsc -p tsconfig.cjs.json", - "build:es": "tsc -p tsconfig.es.json", - "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build", - "build:types": "tsc -p tsconfig.types.json", - "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", - "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "jest" - }, - "browser": { - "./dist-es/fromTokenFile": false, - "./dist-cjs/fromTokenFile": false - }, - "react-native": { - "./dist-es/fromTokenFile": false, - "./dist-cjs/fromTokenFile": false - }, - "keywords": [ - "aws", - "credentials" - ], - "author": { - "name": "AWS SDK for JavaScript Team", - "url": "https://aws.amazon.com/javascript/" - }, - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.451.0", - "@smithy/property-provider": "^2.0.0", - "@smithy/types": "^2.5.0", - "tslib": "^2.5.0" - }, - "devDependencies": { - "@tsconfig/recommended": "1.0.1", - "@types/node": "^14.14.31", - "concurrently": "7.0.0", - "downlevel-dts": "0.10.1", - "rimraf": "3.0.2", - "typedoc": "0.23.23", - "typescript": "~4.9.5" - }, - "types": "./dist-types/index.d.ts", - "engines": { - "node": ">=14.0.0" - }, - "typesVersions": { - "<4.0": { - "dist-types/*": [ - "dist-types/ts3.4/*" - ] - } - }, - "files": [ - "dist-*/**" - ], - "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/master/packages/credential-provider-web-identity", - "repository": { - "type": "git", - "url": "https://github.com/aws/aws-sdk-js-v3.git", - "directory": "packages/credential-provider-web-identity" - }, - "typedoc": { - "entryPoint": "src/index.ts" - } -} diff --git a/node_modules/@aws-sdk/middleware-host-header/LICENSE b/node_modules/@aws-sdk/middleware-host-header/LICENSE deleted file mode 100644 index e907b586..00000000 --- a/node_modules/@aws-sdk/middleware-host-header/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/node_modules/@aws-sdk/middleware-host-header/README.md b/node_modules/@aws-sdk/middleware-host-header/README.md deleted file mode 100644 index 123940e6..00000000 --- a/node_modules/@aws-sdk/middleware-host-header/README.md +++ /dev/null @@ -1,4 +0,0 @@ -# @aws-sdk/middleware-host-header - -[![NPM version](https://img.shields.io/npm/v/@aws-sdk/middleware-host-header/latest.svg)](https://www.npmjs.com/package/@aws-sdk/middleware-host-header) -[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/middleware-host-header.svg)](https://www.npmjs.com/package/@aws-sdk/middleware-host-header) diff --git a/node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js b/node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js deleted file mode 100644 index 7ba3b6fe..00000000 --- a/node_modules/@aws-sdk/middleware-host-header/dist-cjs/index.js +++ /dev/null @@ -1,39 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getHostHeaderPlugin = exports.hostHeaderMiddlewareOptions = exports.hostHeaderMiddleware = exports.resolveHostHeaderConfig = void 0; -const protocol_http_1 = require("@smithy/protocol-http"); -function resolveHostHeaderConfig(input) { - return input; -} -exports.resolveHostHeaderConfig = resolveHostHeaderConfig; -const hostHeaderMiddleware = (options) => (next) => async (args) => { - if (!protocol_http_1.HttpRequest.isInstance(args.request)) - return next(args); - const { request } = args; - const { handlerProtocol = "" } = options.requestHandler.metadata || {}; - if (handlerProtocol.indexOf("h2") >= 0 && !request.headers[":authority"]) { - delete request.headers["host"]; - request.headers[":authority"] = request.hostname + (request.port ? ":" + request.port : ""); - } - else if (!request.headers["host"]) { - let host = request.hostname; - if (request.port != null) - host += `:${request.port}`; - request.headers["host"] = host; - } - return next(args); -}; -exports.hostHeaderMiddleware = hostHeaderMiddleware; -exports.hostHeaderMiddlewareOptions = { - name: "hostHeaderMiddleware", - step: "build", - priority: "low", - tags: ["HOST"], - override: true, -}; -const getHostHeaderPlugin = (options) => ({ - applyToStack: (clientStack) => { - clientStack.add((0, exports.hostHeaderMiddleware)(options), exports.hostHeaderMiddlewareOptions); - }, -}); -exports.getHostHeaderPlugin = getHostHeaderPlugin; diff --git a/node_modules/@aws-sdk/middleware-host-header/dist-es/index.js b/node_modules/@aws-sdk/middleware-host-header/dist-es/index.js deleted file mode 100644 index 2e2fb62e..00000000 --- a/node_modules/@aws-sdk/middleware-host-header/dist-es/index.js +++ /dev/null @@ -1,33 +0,0 @@ -import { HttpRequest } from "@smithy/protocol-http"; -export function resolveHostHeaderConfig(input) { - return input; -} -export const hostHeaderMiddleware = (options) => (next) => async (args) => { - if (!HttpRequest.isInstance(args.request)) - return next(args); - const { request } = args; - const { handlerProtocol = "" } = options.requestHandler.metadata || {}; - if (handlerProtocol.indexOf("h2") >= 0 && !request.headers[":authority"]) { - delete request.headers["host"]; - request.headers[":authority"] = request.hostname + (request.port ? ":" + request.port : ""); - } - else if (!request.headers["host"]) { - let host = request.hostname; - if (request.port != null) - host += `:${request.port}`; - request.headers["host"] = host; - } - return next(args); -}; -export const hostHeaderMiddlewareOptions = { - name: "hostHeaderMiddleware", - step: "build", - priority: "low", - tags: ["HOST"], - override: true, -}; -export const getHostHeaderPlugin = (options) => ({ - applyToStack: (clientStack) => { - clientStack.add(hostHeaderMiddleware(options), hostHeaderMiddlewareOptions); - }, -}); diff --git a/node_modules/@aws-sdk/middleware-host-header/dist-types/index.d.ts b/node_modules/@aws-sdk/middleware-host-header/dist-types/index.d.ts deleted file mode 100644 index 4d8d2c44..00000000 --- a/node_modules/@aws-sdk/middleware-host-header/dist-types/index.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { AbsoluteLocation, BuildHandlerOptions, BuildMiddleware, Pluggable, RequestHandler } from "@smithy/types"; -/** - * @public - */ -export interface HostHeaderInputConfig { -} -interface PreviouslyResolved { - requestHandler: RequestHandler; -} -export interface HostHeaderResolvedConfig { - /** - * The HTTP handler to use. Fetch in browser and Https in Nodejs. - */ - requestHandler: RequestHandler; -} -export declare function resolveHostHeaderConfig(input: T & PreviouslyResolved & HostHeaderInputConfig): T & HostHeaderResolvedConfig; -export declare const hostHeaderMiddleware: (options: HostHeaderResolvedConfig) => BuildMiddleware; -export declare const hostHeaderMiddlewareOptions: BuildHandlerOptions & AbsoluteLocation; -export declare const getHostHeaderPlugin: (options: HostHeaderResolvedConfig) => Pluggable; -export {}; diff --git a/node_modules/@aws-sdk/middleware-host-header/dist-types/ts3.4/index.d.ts b/node_modules/@aws-sdk/middleware-host-header/dist-types/ts3.4/index.d.ts deleted file mode 100644 index 3ca5561e..00000000 --- a/node_modules/@aws-sdk/middleware-host-header/dist-types/ts3.4/index.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { - AbsoluteLocation, - BuildHandlerOptions, - BuildMiddleware, - Pluggable, - RequestHandler, -} from "@smithy/types"; -export interface HostHeaderInputConfig {} -interface PreviouslyResolved { - requestHandler: RequestHandler; -} -export interface HostHeaderResolvedConfig { - requestHandler: RequestHandler; -} -export declare function resolveHostHeaderConfig( - input: T & PreviouslyResolved & HostHeaderInputConfig -): T & HostHeaderResolvedConfig; -export declare const hostHeaderMiddleware: < - Input extends object, - Output extends object ->( - options: HostHeaderResolvedConfig -) => BuildMiddleware; -export declare const hostHeaderMiddlewareOptions: BuildHandlerOptions & - AbsoluteLocation; -export declare const getHostHeaderPlugin: ( - options: HostHeaderResolvedConfig -) => Pluggable; -export {}; diff --git a/node_modules/@aws-sdk/middleware-host-header/package.json b/node_modules/@aws-sdk/middleware-host-header/package.json deleted file mode 100644 index 6297b06a..00000000 --- a/node_modules/@aws-sdk/middleware-host-header/package.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "name": "@aws-sdk/middleware-host-header", - "version": "3.451.0", - "scripts": { - "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", - "build:cjs": "tsc -p tsconfig.cjs.json", - "build:es": "tsc -p tsconfig.es.json", - "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build", - "build:types": "tsc -p tsconfig.types.json", - "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", - "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "jest", - "test:integration": "jest -c jest.config.integ.js" - }, - "main": "./dist-cjs/index.js", - "module": "./dist-es/index.js", - "types": "./dist-types/index.d.ts", - "author": { - "name": "AWS SDK for JavaScript Team", - "url": "https://aws.amazon.com/javascript/" - }, - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.451.0", - "@smithy/protocol-http": "^3.0.9", - "@smithy/types": "^2.5.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "typesVersions": { - "<4.0": { - "dist-types/*": [ - "dist-types/ts3.4/*" - ] - } - }, - "files": [ - "dist-*/**" - ], - "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/middleware-host-header", - "repository": { - "type": "git", - "url": "https://github.com/aws/aws-sdk-js-v3.git", - "directory": "packages/middleware-host-header" - }, - "devDependencies": { - "@tsconfig/recommended": "1.0.1", - "concurrently": "7.0.0", - "downlevel-dts": "0.10.1", - "rimraf": "3.0.2", - "typedoc": "0.23.23", - "typescript": "~4.9.5" - }, - "typedoc": { - "entryPoint": "src/index.ts" - } -} diff --git a/node_modules/@aws-sdk/middleware-logger/LICENSE b/node_modules/@aws-sdk/middleware-logger/LICENSE deleted file mode 100644 index 74d4e5c3..00000000 --- a/node_modules/@aws-sdk/middleware-logger/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. \ No newline at end of file diff --git a/node_modules/@aws-sdk/middleware-logger/README.md b/node_modules/@aws-sdk/middleware-logger/README.md deleted file mode 100644 index 861fa43f..00000000 --- a/node_modules/@aws-sdk/middleware-logger/README.md +++ /dev/null @@ -1,4 +0,0 @@ -# @aws-sdk/middleware-logger - -[![NPM version](https://img.shields.io/npm/v/@aws-sdk/middleware-logger/latest.svg)](https://www.npmjs.com/package/@aws-sdk/middleware-logger) -[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/middleware-logger.svg)](https://www.npmjs.com/package/@aws-sdk/middleware-logger) diff --git a/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js b/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js deleted file mode 100644 index 747113b0..00000000 --- a/node_modules/@aws-sdk/middleware-logger/dist-cjs/index.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./loggerMiddleware"), exports); diff --git a/node_modules/@aws-sdk/middleware-logger/dist-cjs/loggerMiddleware.js b/node_modules/@aws-sdk/middleware-logger/dist-cjs/loggerMiddleware.js deleted file mode 100644 index e2879a8f..00000000 --- a/node_modules/@aws-sdk/middleware-logger/dist-cjs/loggerMiddleware.js +++ /dev/null @@ -1,48 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getLoggerPlugin = exports.loggerMiddlewareOptions = exports.loggerMiddleware = void 0; -const loggerMiddleware = () => (next, context) => async (args) => { - var _a, _b; - try { - const response = await next(args); - const { clientName, commandName, logger, dynamoDbDocumentClientOptions = {} } = context; - const { overrideInputFilterSensitiveLog, overrideOutputFilterSensitiveLog } = dynamoDbDocumentClientOptions; - const inputFilterSensitiveLog = overrideInputFilterSensitiveLog !== null && overrideInputFilterSensitiveLog !== void 0 ? overrideInputFilterSensitiveLog : context.inputFilterSensitiveLog; - const outputFilterSensitiveLog = overrideOutputFilterSensitiveLog !== null && overrideOutputFilterSensitiveLog !== void 0 ? overrideOutputFilterSensitiveLog : context.outputFilterSensitiveLog; - const { $metadata, ...outputWithoutMetadata } = response.output; - (_a = logger === null || logger === void 0 ? void 0 : logger.info) === null || _a === void 0 ? void 0 : _a.call(logger, { - clientName, - commandName, - input: inputFilterSensitiveLog(args.input), - output: outputFilterSensitiveLog(outputWithoutMetadata), - metadata: $metadata, - }); - return response; - } - catch (error) { - const { clientName, commandName, logger, dynamoDbDocumentClientOptions = {} } = context; - const { overrideInputFilterSensitiveLog } = dynamoDbDocumentClientOptions; - const inputFilterSensitiveLog = overrideInputFilterSensitiveLog !== null && overrideInputFilterSensitiveLog !== void 0 ? overrideInputFilterSensitiveLog : context.inputFilterSensitiveLog; - (_b = logger === null || logger === void 0 ? void 0 : logger.error) === null || _b === void 0 ? void 0 : _b.call(logger, { - clientName, - commandName, - input: inputFilterSensitiveLog(args.input), - error, - metadata: error.$metadata, - }); - throw error; - } -}; -exports.loggerMiddleware = loggerMiddleware; -exports.loggerMiddlewareOptions = { - name: "loggerMiddleware", - tags: ["LOGGER"], - step: "initialize", - override: true, -}; -const getLoggerPlugin = (options) => ({ - applyToStack: (clientStack) => { - clientStack.add((0, exports.loggerMiddleware)(), exports.loggerMiddlewareOptions); - }, -}); -exports.getLoggerPlugin = getLoggerPlugin; diff --git a/node_modules/@aws-sdk/middleware-logger/dist-es/index.js b/node_modules/@aws-sdk/middleware-logger/dist-es/index.js deleted file mode 100644 index 171e3bc5..00000000 --- a/node_modules/@aws-sdk/middleware-logger/dist-es/index.js +++ /dev/null @@ -1 +0,0 @@ -export * from "./loggerMiddleware"; diff --git a/node_modules/@aws-sdk/middleware-logger/dist-es/loggerMiddleware.js b/node_modules/@aws-sdk/middleware-logger/dist-es/loggerMiddleware.js deleted file mode 100644 index 50da4cca..00000000 --- a/node_modules/@aws-sdk/middleware-logger/dist-es/loggerMiddleware.js +++ /dev/null @@ -1,42 +0,0 @@ -export const loggerMiddleware = () => (next, context) => async (args) => { - try { - const response = await next(args); - const { clientName, commandName, logger, dynamoDbDocumentClientOptions = {} } = context; - const { overrideInputFilterSensitiveLog, overrideOutputFilterSensitiveLog } = dynamoDbDocumentClientOptions; - const inputFilterSensitiveLog = overrideInputFilterSensitiveLog ?? context.inputFilterSensitiveLog; - const outputFilterSensitiveLog = overrideOutputFilterSensitiveLog ?? context.outputFilterSensitiveLog; - const { $metadata, ...outputWithoutMetadata } = response.output; - logger?.info?.({ - clientName, - commandName, - input: inputFilterSensitiveLog(args.input), - output: outputFilterSensitiveLog(outputWithoutMetadata), - metadata: $metadata, - }); - return response; - } - catch (error) { - const { clientName, commandName, logger, dynamoDbDocumentClientOptions = {} } = context; - const { overrideInputFilterSensitiveLog } = dynamoDbDocumentClientOptions; - const inputFilterSensitiveLog = overrideInputFilterSensitiveLog ?? context.inputFilterSensitiveLog; - logger?.error?.({ - clientName, - commandName, - input: inputFilterSensitiveLog(args.input), - error, - metadata: error.$metadata, - }); - throw error; - } -}; -export const loggerMiddlewareOptions = { - name: "loggerMiddleware", - tags: ["LOGGER"], - step: "initialize", - override: true, -}; -export const getLoggerPlugin = (options) => ({ - applyToStack: (clientStack) => { - clientStack.add(loggerMiddleware(), loggerMiddlewareOptions); - }, -}); diff --git a/node_modules/@aws-sdk/middleware-logger/dist-types/index.d.ts b/node_modules/@aws-sdk/middleware-logger/dist-types/index.d.ts deleted file mode 100644 index 171e3bc5..00000000 --- a/node_modules/@aws-sdk/middleware-logger/dist-types/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./loggerMiddleware"; diff --git a/node_modules/@aws-sdk/middleware-logger/dist-types/loggerMiddleware.d.ts b/node_modules/@aws-sdk/middleware-logger/dist-types/loggerMiddleware.d.ts deleted file mode 100644 index 5712017d..00000000 --- a/node_modules/@aws-sdk/middleware-logger/dist-types/loggerMiddleware.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { AbsoluteLocation, HandlerExecutionContext, InitializeHandler, InitializeHandlerOptions, MetadataBearer, Pluggable } from "@smithy/types"; -export declare const loggerMiddleware: () => (next: InitializeHandler, context: HandlerExecutionContext) => InitializeHandler; -export declare const loggerMiddlewareOptions: InitializeHandlerOptions & AbsoluteLocation; -export declare const getLoggerPlugin: (options: any) => Pluggable; diff --git a/node_modules/@aws-sdk/middleware-logger/dist-types/ts3.4/index.d.ts b/node_modules/@aws-sdk/middleware-logger/dist-types/ts3.4/index.d.ts deleted file mode 100644 index 171e3bc5..00000000 --- a/node_modules/@aws-sdk/middleware-logger/dist-types/ts3.4/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./loggerMiddleware"; diff --git a/node_modules/@aws-sdk/middleware-logger/dist-types/ts3.4/loggerMiddleware.d.ts b/node_modules/@aws-sdk/middleware-logger/dist-types/ts3.4/loggerMiddleware.d.ts deleted file mode 100644 index 10ded9e2..00000000 --- a/node_modules/@aws-sdk/middleware-logger/dist-types/ts3.4/loggerMiddleware.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { - AbsoluteLocation, - HandlerExecutionContext, - InitializeHandler, - InitializeHandlerOptions, - MetadataBearer, - Pluggable, -} from "@smithy/types"; -export declare const loggerMiddleware: () => < - Output extends MetadataBearer = MetadataBearer ->( - next: InitializeHandler, - context: HandlerExecutionContext -) => InitializeHandler; -export declare const loggerMiddlewareOptions: InitializeHandlerOptions & - AbsoluteLocation; -export declare const getLoggerPlugin: (options: any) => Pluggable; diff --git a/node_modules/@aws-sdk/middleware-logger/package.json b/node_modules/@aws-sdk/middleware-logger/package.json deleted file mode 100644 index ab091c31..00000000 --- a/node_modules/@aws-sdk/middleware-logger/package.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "name": "@aws-sdk/middleware-logger", - "version": "3.451.0", - "scripts": { - "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", - "build:cjs": "tsc -p tsconfig.cjs.json", - "build:es": "tsc -p tsconfig.es.json", - "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build", - "build:types": "tsc -p tsconfig.types.json", - "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", - "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "jest --passWithNoTests", - "test:integration": "jest -c jest.config.integ.js" - }, - "author": { - "name": "AWS SDK for JavaScript Team", - "email": "", - "url": "https://aws.amazon.com/javascript/" - }, - "license": "Apache-2.0", - "main": "./dist-cjs/index.js", - "module": "./dist-es/index.js", - "types": "./dist-types/index.d.ts", - "dependencies": { - "@aws-sdk/types": "3.451.0", - "@smithy/types": "^2.5.0", - "tslib": "^2.5.0" - }, - "devDependencies": { - "@tsconfig/recommended": "1.0.1", - "@types/node": "^14.14.31", - "concurrently": "7.0.0", - "downlevel-dts": "0.10.1", - "rimraf": "3.0.2", - "typedoc": "0.23.23", - "typescript": "~4.9.5" - }, - "engines": { - "node": ">=14.0.0" - }, - "typesVersions": { - "<4.0": { - "dist-types/*": [ - "dist-types/ts3.4/*" - ] - } - }, - "files": [ - "dist-*/**" - ], - "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/middleware-logger", - "repository": { - "type": "git", - "url": "https://github.com/aws/aws-sdk-js-v3.git", - "directory": "packages/middleware-logger" - }, - "typedoc": { - "entryPoint": "src/index.ts" - } -} diff --git a/node_modules/@aws-sdk/middleware-recursion-detection/LICENSE b/node_modules/@aws-sdk/middleware-recursion-detection/LICENSE deleted file mode 100644 index e907b586..00000000 --- a/node_modules/@aws-sdk/middleware-recursion-detection/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/node_modules/@aws-sdk/middleware-recursion-detection/README.md b/node_modules/@aws-sdk/middleware-recursion-detection/README.md deleted file mode 100644 index 2d5437e0..00000000 --- a/node_modules/@aws-sdk/middleware-recursion-detection/README.md +++ /dev/null @@ -1,10 +0,0 @@ -# @aws-sdk/middleware-recursion-detection - -[![NPM version](https://img.shields.io/npm/v/@aws-sdk/middleware-recursion-detection/latest.svg)](https://www.npmjs.com/package/@aws-sdk/middleware-recursion-detection) -[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/middleware-recursion-detection.svg)](https://www.npmjs.com/package/@aws-sdk/middleware-recursion-detection) - -> An internal package - -## Usage - -You probably shouldn't, at least directly. diff --git a/node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js b/node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js deleted file mode 100644 index a8d60920..00000000 --- a/node_modules/@aws-sdk/middleware-recursion-detection/dist-cjs/index.js +++ /dev/null @@ -1,39 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getRecursionDetectionPlugin = exports.addRecursionDetectionMiddlewareOptions = exports.recursionDetectionMiddleware = void 0; -const protocol_http_1 = require("@smithy/protocol-http"); -const TRACE_ID_HEADER_NAME = "X-Amzn-Trace-Id"; -const ENV_LAMBDA_FUNCTION_NAME = "AWS_LAMBDA_FUNCTION_NAME"; -const ENV_TRACE_ID = "_X_AMZN_TRACE_ID"; -const recursionDetectionMiddleware = (options) => (next) => async (args) => { - const { request } = args; - if (!protocol_http_1.HttpRequest.isInstance(request) || - options.runtime !== "node" || - request.headers.hasOwnProperty(TRACE_ID_HEADER_NAME)) { - return next(args); - } - const functionName = process.env[ENV_LAMBDA_FUNCTION_NAME]; - const traceId = process.env[ENV_TRACE_ID]; - const nonEmptyString = (str) => typeof str === "string" && str.length > 0; - if (nonEmptyString(functionName) && nonEmptyString(traceId)) { - request.headers[TRACE_ID_HEADER_NAME] = traceId; - } - return next({ - ...args, - request, - }); -}; -exports.recursionDetectionMiddleware = recursionDetectionMiddleware; -exports.addRecursionDetectionMiddlewareOptions = { - step: "build", - tags: ["RECURSION_DETECTION"], - name: "recursionDetectionMiddleware", - override: true, - priority: "low", -}; -const getRecursionDetectionPlugin = (options) => ({ - applyToStack: (clientStack) => { - clientStack.add((0, exports.recursionDetectionMiddleware)(options), exports.addRecursionDetectionMiddlewareOptions); - }, -}); -exports.getRecursionDetectionPlugin = getRecursionDetectionPlugin; diff --git a/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/index.js b/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/index.js deleted file mode 100644 index 5cd4afa5..00000000 --- a/node_modules/@aws-sdk/middleware-recursion-detection/dist-es/index.js +++ /dev/null @@ -1,34 +0,0 @@ -import { HttpRequest } from "@smithy/protocol-http"; -const TRACE_ID_HEADER_NAME = "X-Amzn-Trace-Id"; -const ENV_LAMBDA_FUNCTION_NAME = "AWS_LAMBDA_FUNCTION_NAME"; -const ENV_TRACE_ID = "_X_AMZN_TRACE_ID"; -export const recursionDetectionMiddleware = (options) => (next) => async (args) => { - const { request } = args; - if (!HttpRequest.isInstance(request) || - options.runtime !== "node" || - request.headers.hasOwnProperty(TRACE_ID_HEADER_NAME)) { - return next(args); - } - const functionName = process.env[ENV_LAMBDA_FUNCTION_NAME]; - const traceId = process.env[ENV_TRACE_ID]; - const nonEmptyString = (str) => typeof str === "string" && str.length > 0; - if (nonEmptyString(functionName) && nonEmptyString(traceId)) { - request.headers[TRACE_ID_HEADER_NAME] = traceId; - } - return next({ - ...args, - request, - }); -}; -export const addRecursionDetectionMiddlewareOptions = { - step: "build", - tags: ["RECURSION_DETECTION"], - name: "recursionDetectionMiddleware", - override: true, - priority: "low", -}; -export const getRecursionDetectionPlugin = (options) => ({ - applyToStack: (clientStack) => { - clientStack.add(recursionDetectionMiddleware(options), addRecursionDetectionMiddlewareOptions); - }, -}); diff --git a/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/index.d.ts b/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/index.d.ts deleted file mode 100644 index 9f929840..00000000 --- a/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/index.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { AbsoluteLocation, BuildHandlerOptions, BuildMiddleware, Pluggable } from "@smithy/types"; -interface PreviouslyResolved { - runtime: string; -} -/** - * Inject to trace ID to request header to detect recursion invocation in Lambda. - * @internal - */ -export declare const recursionDetectionMiddleware: (options: PreviouslyResolved) => BuildMiddleware; -/** - * @internal - */ -export declare const addRecursionDetectionMiddlewareOptions: BuildHandlerOptions & AbsoluteLocation; -/** - * @internal - */ -export declare const getRecursionDetectionPlugin: (options: PreviouslyResolved) => Pluggable; -export {}; diff --git a/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/ts3.4/index.d.ts b/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/ts3.4/index.d.ts deleted file mode 100644 index 8d1658be..00000000 --- a/node_modules/@aws-sdk/middleware-recursion-detection/dist-types/ts3.4/index.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { - AbsoluteLocation, - BuildHandlerOptions, - BuildMiddleware, - Pluggable, -} from "@smithy/types"; -interface PreviouslyResolved { - runtime: string; -} -export declare const recursionDetectionMiddleware: ( - options: PreviouslyResolved -) => BuildMiddleware; -export declare const addRecursionDetectionMiddlewareOptions: BuildHandlerOptions & - AbsoluteLocation; -export declare const getRecursionDetectionPlugin: ( - options: PreviouslyResolved -) => Pluggable; -export {}; diff --git a/node_modules/@aws-sdk/middleware-recursion-detection/package.json b/node_modules/@aws-sdk/middleware-recursion-detection/package.json deleted file mode 100644 index d1d8880a..00000000 --- a/node_modules/@aws-sdk/middleware-recursion-detection/package.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "name": "@aws-sdk/middleware-recursion-detection", - "version": "3.451.0", - "scripts": { - "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", - "build:cjs": "tsc -p tsconfig.cjs.json", - "build:es": "tsc -p tsconfig.es.json", - "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build", - "build:types": "tsc -p tsconfig.types.json", - "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", - "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "jest", - "test:integration": "jest -c jest.config.integ.js" - }, - "main": "./dist-cjs/index.js", - "module": "./dist-es/index.js", - "types": "./dist-types/index.d.ts", - "author": { - "name": "AWS SDK for JavaScript Team", - "url": "https://aws.amazon.com/javascript/" - }, - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.451.0", - "@smithy/protocol-http": "^3.0.9", - "@smithy/types": "^2.5.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "typesVersions": { - "<4.0": { - "dist-types/*": [ - "dist-types/ts3.4/*" - ] - } - }, - "files": [ - "dist-*/**" - ], - "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/middleware-recursion-detection", - "repository": { - "type": "git", - "url": "https://github.com/aws/aws-sdk-js-v3.git", - "directory": "packages/middleware-recursion-detection" - }, - "devDependencies": { - "@tsconfig/recommended": "1.0.1", - "concurrently": "7.0.0", - "downlevel-dts": "0.10.1", - "rimraf": "3.0.2", - "typedoc": "0.23.23", - "typescript": "~4.9.5" - }, - "typedoc": { - "entryPoint": "src/index.ts" - } -} diff --git a/node_modules/@aws-sdk/middleware-sdk-sts/LICENSE b/node_modules/@aws-sdk/middleware-sdk-sts/LICENSE deleted file mode 100644 index dd65ae06..00000000 --- a/node_modules/@aws-sdk/middleware-sdk-sts/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/node_modules/@aws-sdk/middleware-sdk-sts/README.md b/node_modules/@aws-sdk/middleware-sdk-sts/README.md deleted file mode 100644 index db18b93b..00000000 --- a/node_modules/@aws-sdk/middleware-sdk-sts/README.md +++ /dev/null @@ -1,4 +0,0 @@ -# @aws-sdk/middleware-sdk-sts - -[![NPM version](https://img.shields.io/npm/v/@aws-sdk/middleware-sdk-sts/latest.svg)](https://www.npmjs.com/package/@aws-sdk/middleware-sdk-sts) -[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/middleware-sdk-sts.svg)](https://www.npmjs.com/package/@aws-sdk/middleware-sdk-sts) diff --git a/node_modules/@aws-sdk/middleware-sdk-sts/dist-cjs/index.js b/node_modules/@aws-sdk/middleware-sdk-sts/dist-cjs/index.js deleted file mode 100644 index c556762a..00000000 --- a/node_modules/@aws-sdk/middleware-sdk-sts/dist-cjs/index.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.resolveStsAuthConfig = void 0; -const middleware_signing_1 = require("@aws-sdk/middleware-signing"); -const resolveStsAuthConfig = (input, { stsClientCtor }) => (0, middleware_signing_1.resolveAwsAuthConfig)({ - ...input, - stsClientCtor, -}); -exports.resolveStsAuthConfig = resolveStsAuthConfig; diff --git a/node_modules/@aws-sdk/middleware-sdk-sts/dist-es/index.js b/node_modules/@aws-sdk/middleware-sdk-sts/dist-es/index.js deleted file mode 100644 index 6659df64..00000000 --- a/node_modules/@aws-sdk/middleware-sdk-sts/dist-es/index.js +++ /dev/null @@ -1,5 +0,0 @@ -import { resolveAwsAuthConfig } from "@aws-sdk/middleware-signing"; -export const resolveStsAuthConfig = (input, { stsClientCtor }) => resolveAwsAuthConfig({ - ...input, - stsClientCtor, -}); diff --git a/node_modules/@aws-sdk/middleware-sdk-sts/dist-types/index.d.ts b/node_modules/@aws-sdk/middleware-sdk-sts/dist-types/index.d.ts deleted file mode 100644 index 6cfaaf1a..00000000 --- a/node_modules/@aws-sdk/middleware-sdk-sts/dist-types/index.d.ts +++ /dev/null @@ -1,37 +0,0 @@ -import { AwsAuthInputConfig, AwsAuthResolvedConfig } from "@aws-sdk/middleware-signing"; -import { AwsCredentialIdentity, ChecksumConstructor, Client, HashConstructor, Provider, RegionInfoProvider } from "@smithy/types"; -/** - * @public - */ -export interface StsAuthInputConfig extends AwsAuthInputConfig { -} -interface PreviouslyResolved { - credentialDefaultProvider: (input: any) => Provider; - region: string | Provider; - regionInfoProvider?: RegionInfoProvider; - signingName?: string; - serviceId: string; - sha256: ChecksumConstructor | HashConstructor; - useFipsEndpoint: Provider; - useDualstackEndpoint: Provider; -} -export interface StsAuthResolvedConfig extends AwsAuthResolvedConfig { - /** - * Reference to STSClient class constructor. - * @internal - */ - stsClientCtor: new (clientConfig: any) => Client; -} -export interface StsAuthConfigOptions { - /** - * Reference to STSClient class constructor. - */ - stsClientCtor: new (clientConfig: any) => Client; -} -/** - * Set STS client constructor to `stsClientCtor` config parameter. It is used - * for role assumers for STS client internally. See `clients/client-sts/defaultStsRoleAssumers.ts` - * and `clients/client-sts/STSClient.ts`. - */ -export declare const resolveStsAuthConfig: (input: T & PreviouslyResolved & StsAuthInputConfig, { stsClientCtor }: StsAuthConfigOptions) => T & StsAuthResolvedConfig; -export {}; diff --git a/node_modules/@aws-sdk/middleware-sdk-sts/dist-types/ts3.4/index.d.ts b/node_modules/@aws-sdk/middleware-sdk-sts/dist-types/ts3.4/index.d.ts deleted file mode 100644 index 3875adbb..00000000 --- a/node_modules/@aws-sdk/middleware-sdk-sts/dist-types/ts3.4/index.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { - AwsAuthInputConfig, - AwsAuthResolvedConfig, -} from "@aws-sdk/middleware-signing"; -import { - AwsCredentialIdentity, - ChecksumConstructor, - Client, - HashConstructor, - Provider, - RegionInfoProvider, -} from "@smithy/types"; -export interface StsAuthInputConfig extends AwsAuthInputConfig {} -interface PreviouslyResolved { - credentialDefaultProvider: (input: any) => Provider; - region: string | Provider; - regionInfoProvider?: RegionInfoProvider; - signingName?: string; - serviceId: string; - sha256: ChecksumConstructor | HashConstructor; - useFipsEndpoint: Provider; - useDualstackEndpoint: Provider; -} -export interface StsAuthResolvedConfig extends AwsAuthResolvedConfig { - stsClientCtor: new (clientConfig: any) => Client; -} -export interface StsAuthConfigOptions { - stsClientCtor: new (clientConfig: any) => Client; -} -export declare const resolveStsAuthConfig: ( - input: T & PreviouslyResolved & StsAuthInputConfig, - { stsClientCtor }: StsAuthConfigOptions -) => T & StsAuthResolvedConfig; -export {}; diff --git a/node_modules/@aws-sdk/middleware-sdk-sts/package.json b/node_modules/@aws-sdk/middleware-sdk-sts/package.json deleted file mode 100644 index e5726b32..00000000 --- a/node_modules/@aws-sdk/middleware-sdk-sts/package.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "name": "@aws-sdk/middleware-sdk-sts", - "version": "3.451.0", - "scripts": { - "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", - "build:cjs": "tsc -p tsconfig.cjs.json", - "build:es": "tsc -p tsconfig.es.json", - "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build", - "build:types": "tsc -p tsconfig.types.json", - "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", - "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "exit 0", - "test:integration": "jest -c jest.config.integ.js" - }, - "main": "./dist-cjs/index.js", - "module": "./dist-es/index.js", - "types": "./dist-types/index.d.ts", - "author": { - "name": "AWS SDK for JavaScript Team", - "url": "https://aws.amazon.com/javascript/" - }, - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/middleware-signing": "3.451.0", - "@aws-sdk/types": "3.451.0", - "@smithy/types": "^2.5.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "typesVersions": { - "<4.0": { - "dist-types/*": [ - "dist-types/ts3.4/*" - ] - } - }, - "files": [ - "dist-*/**" - ], - "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/middleware-sdk-sts", - "repository": { - "type": "git", - "url": "https://github.com/aws/aws-sdk-js-v3.git", - "directory": "packages/middleware-sdk-sts" - }, - "devDependencies": { - "@tsconfig/recommended": "1.0.1", - "concurrently": "7.0.0", - "downlevel-dts": "0.10.1", - "rimraf": "3.0.2", - "typedoc": "0.23.23", - "typescript": "~4.9.5" - }, - "typedoc": { - "entryPoint": "src/index.ts" - } -} diff --git a/node_modules/@aws-sdk/middleware-signing/LICENSE b/node_modules/@aws-sdk/middleware-signing/LICENSE deleted file mode 100644 index 7b6491ba..00000000 --- a/node_modules/@aws-sdk/middleware-signing/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. \ No newline at end of file diff --git a/node_modules/@aws-sdk/middleware-signing/README.md b/node_modules/@aws-sdk/middleware-signing/README.md deleted file mode 100644 index 22cb5d40..00000000 --- a/node_modules/@aws-sdk/middleware-signing/README.md +++ /dev/null @@ -1,4 +0,0 @@ -# @aws-sdk/signer-middleware - -[![NPM version](https://img.shields.io/npm/v/@aws-sdk/middleware-signing/latest.svg)](https://www.npmjs.com/package/@aws-sdk/middleware-signing) -[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/middleware-signing.svg)](https://www.npmjs.com/package/@aws-sdk/middleware-signing) diff --git a/node_modules/@aws-sdk/middleware-signing/dist-cjs/awsAuthConfiguration.js b/node_modules/@aws-sdk/middleware-signing/dist-cjs/awsAuthConfiguration.js deleted file mode 100644 index 5c007993..00000000 --- a/node_modules/@aws-sdk/middleware-signing/dist-cjs/awsAuthConfiguration.js +++ /dev/null @@ -1,108 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.resolveSigV4AuthConfig = exports.resolveAwsAuthConfig = void 0; -const property_provider_1 = require("@smithy/property-provider"); -const signature_v4_1 = require("@smithy/signature-v4"); -const util_middleware_1 = require("@smithy/util-middleware"); -const CREDENTIAL_EXPIRE_WINDOW = 300000; -const resolveAwsAuthConfig = (input) => { - const normalizedCreds = input.credentials - ? normalizeCredentialProvider(input.credentials) - : input.credentialDefaultProvider(input); - const { signingEscapePath = true, systemClockOffset = input.systemClockOffset || 0, sha256 } = input; - let signer; - if (input.signer) { - signer = (0, util_middleware_1.normalizeProvider)(input.signer); - } - else if (input.regionInfoProvider) { - signer = () => (0, util_middleware_1.normalizeProvider)(input.region)() - .then(async (region) => [ - (await input.regionInfoProvider(region, { - useFipsEndpoint: await input.useFipsEndpoint(), - useDualstackEndpoint: await input.useDualstackEndpoint(), - })) || {}, - region, - ]) - .then(([regionInfo, region]) => { - const { signingRegion, signingService } = regionInfo; - input.signingRegion = input.signingRegion || signingRegion || region; - input.signingName = input.signingName || signingService || input.serviceId; - const params = { - ...input, - credentials: normalizedCreds, - region: input.signingRegion, - service: input.signingName, - sha256, - uriEscapePath: signingEscapePath, - }; - const SignerCtor = input.signerConstructor || signature_v4_1.SignatureV4; - return new SignerCtor(params); - }); - } - else { - signer = async (authScheme) => { - authScheme = Object.assign({}, { - name: "sigv4", - signingName: input.signingName || input.defaultSigningName, - signingRegion: await (0, util_middleware_1.normalizeProvider)(input.region)(), - properties: {}, - }, authScheme); - const signingRegion = authScheme.signingRegion; - const signingService = authScheme.signingName; - input.signingRegion = input.signingRegion || signingRegion; - input.signingName = input.signingName || signingService || input.serviceId; - const params = { - ...input, - credentials: normalizedCreds, - region: input.signingRegion, - service: input.signingName, - sha256, - uriEscapePath: signingEscapePath, - }; - const SignerCtor = input.signerConstructor || signature_v4_1.SignatureV4; - return new SignerCtor(params); - }; - } - return { - ...input, - systemClockOffset, - signingEscapePath, - credentials: normalizedCreds, - signer, - }; -}; -exports.resolveAwsAuthConfig = resolveAwsAuthConfig; -const resolveSigV4AuthConfig = (input) => { - const normalizedCreds = input.credentials - ? normalizeCredentialProvider(input.credentials) - : input.credentialDefaultProvider(input); - const { signingEscapePath = true, systemClockOffset = input.systemClockOffset || 0, sha256 } = input; - let signer; - if (input.signer) { - signer = (0, util_middleware_1.normalizeProvider)(input.signer); - } - else { - signer = (0, util_middleware_1.normalizeProvider)(new signature_v4_1.SignatureV4({ - credentials: normalizedCreds, - region: input.region, - service: input.signingName, - sha256, - uriEscapePath: signingEscapePath, - })); - } - return { - ...input, - systemClockOffset, - signingEscapePath, - credentials: normalizedCreds, - signer, - }; -}; -exports.resolveSigV4AuthConfig = resolveSigV4AuthConfig; -const normalizeCredentialProvider = (credentials) => { - if (typeof credentials === "function") { - return (0, property_provider_1.memoize)(credentials, (credentials) => credentials.expiration !== undefined && - credentials.expiration.getTime() - Date.now() < CREDENTIAL_EXPIRE_WINDOW, (credentials) => credentials.expiration !== undefined); - } - return (0, util_middleware_1.normalizeProvider)(credentials); -}; diff --git a/node_modules/@aws-sdk/middleware-signing/dist-cjs/awsAuthMiddleware.js b/node_modules/@aws-sdk/middleware-signing/dist-cjs/awsAuthMiddleware.js deleted file mode 100644 index d9f66bf6..00000000 --- a/node_modules/@aws-sdk/middleware-signing/dist-cjs/awsAuthMiddleware.js +++ /dev/null @@ -1,50 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getSigV4AuthPlugin = exports.getAwsAuthPlugin = exports.awsAuthMiddlewareOptions = exports.awsAuthMiddleware = void 0; -const protocol_http_1 = require("@smithy/protocol-http"); -const getSkewCorrectedDate_1 = require("./utils/getSkewCorrectedDate"); -const getUpdatedSystemClockOffset_1 = require("./utils/getUpdatedSystemClockOffset"); -const awsAuthMiddleware = (options) => (next, context) => async function (args) { - var _a, _b, _c, _d; - if (!protocol_http_1.HttpRequest.isInstance(args.request)) - return next(args); - const authScheme = (_c = (_b = (_a = context.endpointV2) === null || _a === void 0 ? void 0 : _a.properties) === null || _b === void 0 ? void 0 : _b.authSchemes) === null || _c === void 0 ? void 0 : _c[0]; - const multiRegionOverride = (authScheme === null || authScheme === void 0 ? void 0 : authScheme.name) === "sigv4a" ? (_d = authScheme === null || authScheme === void 0 ? void 0 : authScheme.signingRegionSet) === null || _d === void 0 ? void 0 : _d.join(",") : undefined; - const signer = await options.signer(authScheme); - const output = await next({ - ...args, - request: await signer.sign(args.request, { - signingDate: (0, getSkewCorrectedDate_1.getSkewCorrectedDate)(options.systemClockOffset), - signingRegion: multiRegionOverride || context["signing_region"], - signingService: context["signing_service"], - }), - }).catch((error) => { - var _a; - const serverTime = (_a = error.ServerTime) !== null && _a !== void 0 ? _a : getDateHeader(error.$response); - if (serverTime) { - options.systemClockOffset = (0, getUpdatedSystemClockOffset_1.getUpdatedSystemClockOffset)(serverTime, options.systemClockOffset); - } - throw error; - }); - const dateHeader = getDateHeader(output.response); - if (dateHeader) { - options.systemClockOffset = (0, getUpdatedSystemClockOffset_1.getUpdatedSystemClockOffset)(dateHeader, options.systemClockOffset); - } - return output; -}; -exports.awsAuthMiddleware = awsAuthMiddleware; -const getDateHeader = (response) => { var _a, _b, _c; return protocol_http_1.HttpResponse.isInstance(response) ? (_b = (_a = response.headers) === null || _a === void 0 ? void 0 : _a.date) !== null && _b !== void 0 ? _b : (_c = response.headers) === null || _c === void 0 ? void 0 : _c.Date : undefined; }; -exports.awsAuthMiddlewareOptions = { - name: "awsAuthMiddleware", - tags: ["SIGNATURE", "AWSAUTH"], - relation: "after", - toMiddleware: "retryMiddleware", - override: true, -}; -const getAwsAuthPlugin = (options) => ({ - applyToStack: (clientStack) => { - clientStack.addRelativeTo((0, exports.awsAuthMiddleware)(options), exports.awsAuthMiddlewareOptions); - }, -}); -exports.getAwsAuthPlugin = getAwsAuthPlugin; -exports.getSigV4AuthPlugin = exports.getAwsAuthPlugin; diff --git a/node_modules/@aws-sdk/middleware-signing/dist-cjs/index.js b/node_modules/@aws-sdk/middleware-signing/dist-cjs/index.js deleted file mode 100644 index 0dd5e8f4..00000000 --- a/node_modules/@aws-sdk/middleware-signing/dist-cjs/index.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./awsAuthConfiguration"), exports); -tslib_1.__exportStar(require("./awsAuthMiddleware"), exports); diff --git a/node_modules/@aws-sdk/middleware-signing/dist-cjs/utils/getSkewCorrectedDate.js b/node_modules/@aws-sdk/middleware-signing/dist-cjs/utils/getSkewCorrectedDate.js deleted file mode 100644 index 35c08122..00000000 --- a/node_modules/@aws-sdk/middleware-signing/dist-cjs/utils/getSkewCorrectedDate.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getSkewCorrectedDate = void 0; -const getSkewCorrectedDate = (systemClockOffset) => new Date(Date.now() + systemClockOffset); -exports.getSkewCorrectedDate = getSkewCorrectedDate; diff --git a/node_modules/@aws-sdk/middleware-signing/dist-cjs/utils/getUpdatedSystemClockOffset.js b/node_modules/@aws-sdk/middleware-signing/dist-cjs/utils/getUpdatedSystemClockOffset.js deleted file mode 100644 index 44070563..00000000 --- a/node_modules/@aws-sdk/middleware-signing/dist-cjs/utils/getUpdatedSystemClockOffset.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getUpdatedSystemClockOffset = void 0; -const isClockSkewed_1 = require("./isClockSkewed"); -const getUpdatedSystemClockOffset = (clockTime, currentSystemClockOffset) => { - const clockTimeInMs = Date.parse(clockTime); - if ((0, isClockSkewed_1.isClockSkewed)(clockTimeInMs, currentSystemClockOffset)) { - return clockTimeInMs - Date.now(); - } - return currentSystemClockOffset; -}; -exports.getUpdatedSystemClockOffset = getUpdatedSystemClockOffset; diff --git a/node_modules/@aws-sdk/middleware-signing/dist-cjs/utils/isClockSkewed.js b/node_modules/@aws-sdk/middleware-signing/dist-cjs/utils/isClockSkewed.js deleted file mode 100644 index 918dbbef..00000000 --- a/node_modules/@aws-sdk/middleware-signing/dist-cjs/utils/isClockSkewed.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isClockSkewed = void 0; -const getSkewCorrectedDate_1 = require("./getSkewCorrectedDate"); -const isClockSkewed = (clockTime, systemClockOffset) => Math.abs((0, getSkewCorrectedDate_1.getSkewCorrectedDate)(systemClockOffset).getTime() - clockTime) >= 300000; -exports.isClockSkewed = isClockSkewed; diff --git a/node_modules/@aws-sdk/middleware-signing/dist-es/awsAuthConfiguration.js b/node_modules/@aws-sdk/middleware-signing/dist-es/awsAuthConfiguration.js deleted file mode 100644 index db841d37..00000000 --- a/node_modules/@aws-sdk/middleware-signing/dist-es/awsAuthConfiguration.js +++ /dev/null @@ -1,103 +0,0 @@ -import { memoize } from "@smithy/property-provider"; -import { SignatureV4 } from "@smithy/signature-v4"; -import { normalizeProvider } from "@smithy/util-middleware"; -const CREDENTIAL_EXPIRE_WINDOW = 300000; -export const resolveAwsAuthConfig = (input) => { - const normalizedCreds = input.credentials - ? normalizeCredentialProvider(input.credentials) - : input.credentialDefaultProvider(input); - const { signingEscapePath = true, systemClockOffset = input.systemClockOffset || 0, sha256 } = input; - let signer; - if (input.signer) { - signer = normalizeProvider(input.signer); - } - else if (input.regionInfoProvider) { - signer = () => normalizeProvider(input.region)() - .then(async (region) => [ - (await input.regionInfoProvider(region, { - useFipsEndpoint: await input.useFipsEndpoint(), - useDualstackEndpoint: await input.useDualstackEndpoint(), - })) || {}, - region, - ]) - .then(([regionInfo, region]) => { - const { signingRegion, signingService } = regionInfo; - input.signingRegion = input.signingRegion || signingRegion || region; - input.signingName = input.signingName || signingService || input.serviceId; - const params = { - ...input, - credentials: normalizedCreds, - region: input.signingRegion, - service: input.signingName, - sha256, - uriEscapePath: signingEscapePath, - }; - const SignerCtor = input.signerConstructor || SignatureV4; - return new SignerCtor(params); - }); - } - else { - signer = async (authScheme) => { - authScheme = Object.assign({}, { - name: "sigv4", - signingName: input.signingName || input.defaultSigningName, - signingRegion: await normalizeProvider(input.region)(), - properties: {}, - }, authScheme); - const signingRegion = authScheme.signingRegion; - const signingService = authScheme.signingName; - input.signingRegion = input.signingRegion || signingRegion; - input.signingName = input.signingName || signingService || input.serviceId; - const params = { - ...input, - credentials: normalizedCreds, - region: input.signingRegion, - service: input.signingName, - sha256, - uriEscapePath: signingEscapePath, - }; - const SignerCtor = input.signerConstructor || SignatureV4; - return new SignerCtor(params); - }; - } - return { - ...input, - systemClockOffset, - signingEscapePath, - credentials: normalizedCreds, - signer, - }; -}; -export const resolveSigV4AuthConfig = (input) => { - const normalizedCreds = input.credentials - ? normalizeCredentialProvider(input.credentials) - : input.credentialDefaultProvider(input); - const { signingEscapePath = true, systemClockOffset = input.systemClockOffset || 0, sha256 } = input; - let signer; - if (input.signer) { - signer = normalizeProvider(input.signer); - } - else { - signer = normalizeProvider(new SignatureV4({ - credentials: normalizedCreds, - region: input.region, - service: input.signingName, - sha256, - uriEscapePath: signingEscapePath, - })); - } - return { - ...input, - systemClockOffset, - signingEscapePath, - credentials: normalizedCreds, - signer, - }; -}; -const normalizeCredentialProvider = (credentials) => { - if (typeof credentials === "function") { - return memoize(credentials, (credentials) => credentials.expiration !== undefined && - credentials.expiration.getTime() - Date.now() < CREDENTIAL_EXPIRE_WINDOW, (credentials) => credentials.expiration !== undefined); - } - return normalizeProvider(credentials); -}; diff --git a/node_modules/@aws-sdk/middleware-signing/dist-es/awsAuthMiddleware.js b/node_modules/@aws-sdk/middleware-signing/dist-es/awsAuthMiddleware.js deleted file mode 100644 index 8d5dbf7e..00000000 --- a/node_modules/@aws-sdk/middleware-signing/dist-es/awsAuthMiddleware.js +++ /dev/null @@ -1,43 +0,0 @@ -import { HttpRequest, HttpResponse } from "@smithy/protocol-http"; -import { getSkewCorrectedDate } from "./utils/getSkewCorrectedDate"; -import { getUpdatedSystemClockOffset } from "./utils/getUpdatedSystemClockOffset"; -export const awsAuthMiddleware = (options) => (next, context) => async function (args) { - if (!HttpRequest.isInstance(args.request)) - return next(args); - const authScheme = context.endpointV2?.properties?.authSchemes?.[0]; - const multiRegionOverride = authScheme?.name === "sigv4a" ? authScheme?.signingRegionSet?.join(",") : undefined; - const signer = await options.signer(authScheme); - const output = await next({ - ...args, - request: await signer.sign(args.request, { - signingDate: getSkewCorrectedDate(options.systemClockOffset), - signingRegion: multiRegionOverride || context["signing_region"], - signingService: context["signing_service"], - }), - }).catch((error) => { - const serverTime = error.ServerTime ?? getDateHeader(error.$response); - if (serverTime) { - options.systemClockOffset = getUpdatedSystemClockOffset(serverTime, options.systemClockOffset); - } - throw error; - }); - const dateHeader = getDateHeader(output.response); - if (dateHeader) { - options.systemClockOffset = getUpdatedSystemClockOffset(dateHeader, options.systemClockOffset); - } - return output; -}; -const getDateHeader = (response) => HttpResponse.isInstance(response) ? response.headers?.date ?? response.headers?.Date : undefined; -export const awsAuthMiddlewareOptions = { - name: "awsAuthMiddleware", - tags: ["SIGNATURE", "AWSAUTH"], - relation: "after", - toMiddleware: "retryMiddleware", - override: true, -}; -export const getAwsAuthPlugin = (options) => ({ - applyToStack: (clientStack) => { - clientStack.addRelativeTo(awsAuthMiddleware(options), awsAuthMiddlewareOptions); - }, -}); -export const getSigV4AuthPlugin = getAwsAuthPlugin; diff --git a/node_modules/@aws-sdk/middleware-signing/dist-es/index.js b/node_modules/@aws-sdk/middleware-signing/dist-es/index.js deleted file mode 100644 index 67806b71..00000000 --- a/node_modules/@aws-sdk/middleware-signing/dist-es/index.js +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./awsAuthConfiguration"; -export * from "./awsAuthMiddleware"; diff --git a/node_modules/@aws-sdk/middleware-signing/dist-es/utils/getSkewCorrectedDate.js b/node_modules/@aws-sdk/middleware-signing/dist-es/utils/getSkewCorrectedDate.js deleted file mode 100644 index 6ee80363..00000000 --- a/node_modules/@aws-sdk/middleware-signing/dist-es/utils/getSkewCorrectedDate.js +++ /dev/null @@ -1 +0,0 @@ -export const getSkewCorrectedDate = (systemClockOffset) => new Date(Date.now() + systemClockOffset); diff --git a/node_modules/@aws-sdk/middleware-signing/dist-es/utils/getUpdatedSystemClockOffset.js b/node_modules/@aws-sdk/middleware-signing/dist-es/utils/getUpdatedSystemClockOffset.js deleted file mode 100644 index 859c41a2..00000000 --- a/node_modules/@aws-sdk/middleware-signing/dist-es/utils/getUpdatedSystemClockOffset.js +++ /dev/null @@ -1,8 +0,0 @@ -import { isClockSkewed } from "./isClockSkewed"; -export const getUpdatedSystemClockOffset = (clockTime, currentSystemClockOffset) => { - const clockTimeInMs = Date.parse(clockTime); - if (isClockSkewed(clockTimeInMs, currentSystemClockOffset)) { - return clockTimeInMs - Date.now(); - } - return currentSystemClockOffset; -}; diff --git a/node_modules/@aws-sdk/middleware-signing/dist-es/utils/isClockSkewed.js b/node_modules/@aws-sdk/middleware-signing/dist-es/utils/isClockSkewed.js deleted file mode 100644 index 086d7a87..00000000 --- a/node_modules/@aws-sdk/middleware-signing/dist-es/utils/isClockSkewed.js +++ /dev/null @@ -1,2 +0,0 @@ -import { getSkewCorrectedDate } from "./getSkewCorrectedDate"; -export const isClockSkewed = (clockTime, systemClockOffset) => Math.abs(getSkewCorrectedDate(systemClockOffset).getTime() - clockTime) >= 300000; diff --git a/node_modules/@aws-sdk/middleware-signing/dist-types/awsAuthConfiguration.d.ts b/node_modules/@aws-sdk/middleware-signing/dist-types/awsAuthConfiguration.d.ts deleted file mode 100644 index 888cf929..00000000 --- a/node_modules/@aws-sdk/middleware-signing/dist-types/awsAuthConfiguration.d.ts +++ /dev/null @@ -1,99 +0,0 @@ -import { SignatureV4CryptoInit, SignatureV4Init } from "@smithy/signature-v4"; -import { AuthScheme, AwsCredentialIdentity, ChecksumConstructor, HashConstructor, Logger, MemoizedProvider, Provider, RegionInfoProvider, RequestSigner } from "@smithy/types"; -/** - * @public - */ -export interface AwsAuthInputConfig { - /** - * The credentials used to sign requests. - */ - credentials?: AwsCredentialIdentity | Provider; - /** - * The signer to use when signing requests. - */ - signer?: RequestSigner | ((authScheme?: AuthScheme) => Promise); - /** - * Whether to escape request path when signing the request. - */ - signingEscapePath?: boolean; - /** - * An offset value in milliseconds to apply to all signing times. - */ - systemClockOffset?: number; - /** - * The region where you want to sign your request against. This - * can be different to the region in the endpoint. - */ - signingRegion?: string; - /** - * The injectable SigV4-compatible signer class constructor. If not supplied, - * regular SignatureV4 constructor will be used. - * - * @internal - */ - signerConstructor?: new (options: SignatureV4Init & SignatureV4CryptoInit) => RequestSigner; -} -/** - * @public - */ -export interface SigV4AuthInputConfig { - /** - * The credentials used to sign requests. - */ - credentials?: AwsCredentialIdentity | Provider; - /** - * The signer to use when signing requests. - */ - signer?: RequestSigner | ((authScheme?: AuthScheme) => Promise); - /** - * Whether to escape request path when signing the request. - */ - signingEscapePath?: boolean; - /** - * An offset value in milliseconds to apply to all signing times. - */ - systemClockOffset?: number; -} -interface PreviouslyResolved { - credentialDefaultProvider: (input: any) => MemoizedProvider; - region: string | Provider; - regionInfoProvider?: RegionInfoProvider; - signingName?: string; - defaultSigningName?: string; - serviceId: string; - sha256: ChecksumConstructor | HashConstructor; - useFipsEndpoint: Provider; - useDualstackEndpoint: Provider; -} -interface SigV4PreviouslyResolved { - credentialDefaultProvider: (input: any) => MemoizedProvider; - region: string | Provider; - signingName: string; - sha256: ChecksumConstructor | HashConstructor; - logger?: Logger; -} -export interface AwsAuthResolvedConfig { - /** - * Resolved value for input config {@link AwsAuthInputConfig.credentials} - * This provider MAY memoize the loaded credentials for certain period. - * See {@link MemoizedProvider} for more information. - */ - credentials: MemoizedProvider; - /** - * Resolved value for input config {@link AwsAuthInputConfig.signer} - */ - signer: (authScheme?: AuthScheme) => Promise; - /** - * Resolved value for input config {@link AwsAuthInputConfig.signingEscapePath} - */ - signingEscapePath: boolean; - /** - * Resolved value for input config {@link AwsAuthInputConfig.systemClockOffset} - */ - systemClockOffset: number; -} -export interface SigV4AuthResolvedConfig extends AwsAuthResolvedConfig { -} -export declare const resolveAwsAuthConfig: (input: T & AwsAuthInputConfig & PreviouslyResolved) => T & AwsAuthResolvedConfig; -export declare const resolveSigV4AuthConfig: (input: T & SigV4AuthInputConfig & SigV4PreviouslyResolved) => T & SigV4AuthResolvedConfig; -export {}; diff --git a/node_modules/@aws-sdk/middleware-signing/dist-types/awsAuthMiddleware.d.ts b/node_modules/@aws-sdk/middleware-signing/dist-types/awsAuthMiddleware.d.ts deleted file mode 100644 index f530ba3f..00000000 --- a/node_modules/@aws-sdk/middleware-signing/dist-types/awsAuthMiddleware.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { FinalizeRequestMiddleware, Pluggable, RelativeMiddlewareOptions } from "@smithy/types"; -import { AwsAuthResolvedConfig } from "./awsAuthConfiguration"; -export declare const awsAuthMiddleware: (options: AwsAuthResolvedConfig) => FinalizeRequestMiddleware; -export declare const awsAuthMiddlewareOptions: RelativeMiddlewareOptions; -export declare const getAwsAuthPlugin: (options: AwsAuthResolvedConfig) => Pluggable; -export declare const getSigV4AuthPlugin: (options: AwsAuthResolvedConfig) => Pluggable; diff --git a/node_modules/@aws-sdk/middleware-signing/dist-types/index.d.ts b/node_modules/@aws-sdk/middleware-signing/dist-types/index.d.ts deleted file mode 100644 index 67806b71..00000000 --- a/node_modules/@aws-sdk/middleware-signing/dist-types/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./awsAuthConfiguration"; -export * from "./awsAuthMiddleware"; diff --git a/node_modules/@aws-sdk/middleware-signing/dist-types/ts3.4/awsAuthConfiguration.d.ts b/node_modules/@aws-sdk/middleware-signing/dist-types/ts3.4/awsAuthConfiguration.d.ts deleted file mode 100644 index 44653132..00000000 --- a/node_modules/@aws-sdk/middleware-signing/dist-types/ts3.4/awsAuthConfiguration.d.ts +++ /dev/null @@ -1,68 +0,0 @@ -import { SignatureV4CryptoInit, SignatureV4Init } from "@smithy/signature-v4"; -import { - AuthScheme, - AwsCredentialIdentity, - ChecksumConstructor, - HashConstructor, - Logger, - MemoizedProvider, - Provider, - RegionInfoProvider, - RequestSigner, -} from "@smithy/types"; -export interface AwsAuthInputConfig { - credentials?: AwsCredentialIdentity | Provider; - signer?: - | RequestSigner - | ((authScheme?: AuthScheme) => Promise); - signingEscapePath?: boolean; - systemClockOffset?: number; - signingRegion?: string; - signerConstructor?: new ( - options: SignatureV4Init & SignatureV4CryptoInit - ) => RequestSigner; -} -export interface SigV4AuthInputConfig { - credentials?: AwsCredentialIdentity | Provider; - signer?: - | RequestSigner - | ((authScheme?: AuthScheme) => Promise); - signingEscapePath?: boolean; - systemClockOffset?: number; -} -interface PreviouslyResolved { - credentialDefaultProvider: ( - input: any - ) => MemoizedProvider; - region: string | Provider; - regionInfoProvider?: RegionInfoProvider; - signingName?: string; - defaultSigningName?: string; - serviceId: string; - sha256: ChecksumConstructor | HashConstructor; - useFipsEndpoint: Provider; - useDualstackEndpoint: Provider; -} -interface SigV4PreviouslyResolved { - credentialDefaultProvider: ( - input: any - ) => MemoizedProvider; - region: string | Provider; - signingName: string; - sha256: ChecksumConstructor | HashConstructor; - logger?: Logger; -} -export interface AwsAuthResolvedConfig { - credentials: MemoizedProvider; - signer: (authScheme?: AuthScheme) => Promise; - signingEscapePath: boolean; - systemClockOffset: number; -} -export interface SigV4AuthResolvedConfig extends AwsAuthResolvedConfig {} -export declare const resolveAwsAuthConfig: ( - input: T & AwsAuthInputConfig & PreviouslyResolved -) => T & AwsAuthResolvedConfig; -export declare const resolveSigV4AuthConfig: ( - input: T & SigV4AuthInputConfig & SigV4PreviouslyResolved -) => T & SigV4AuthResolvedConfig; -export {}; diff --git a/node_modules/@aws-sdk/middleware-signing/dist-types/ts3.4/awsAuthMiddleware.d.ts b/node_modules/@aws-sdk/middleware-signing/dist-types/ts3.4/awsAuthMiddleware.d.ts deleted file mode 100644 index aa7ad380..00000000 --- a/node_modules/@aws-sdk/middleware-signing/dist-types/ts3.4/awsAuthMiddleware.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { - FinalizeRequestMiddleware, - Pluggable, - RelativeMiddlewareOptions, -} from "@smithy/types"; -import { AwsAuthResolvedConfig } from "./awsAuthConfiguration"; -export declare const awsAuthMiddleware: < - Input extends object, - Output extends object ->( - options: AwsAuthResolvedConfig -) => FinalizeRequestMiddleware; -export declare const awsAuthMiddlewareOptions: RelativeMiddlewareOptions; -export declare const getAwsAuthPlugin: ( - options: AwsAuthResolvedConfig -) => Pluggable; -export declare const getSigV4AuthPlugin: ( - options: AwsAuthResolvedConfig -) => Pluggable; diff --git a/node_modules/@aws-sdk/middleware-signing/dist-types/ts3.4/index.d.ts b/node_modules/@aws-sdk/middleware-signing/dist-types/ts3.4/index.d.ts deleted file mode 100644 index 67806b71..00000000 --- a/node_modules/@aws-sdk/middleware-signing/dist-types/ts3.4/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./awsAuthConfiguration"; -export * from "./awsAuthMiddleware"; diff --git a/node_modules/@aws-sdk/middleware-signing/dist-types/ts3.4/utils/getSkewCorrectedDate.d.ts b/node_modules/@aws-sdk/middleware-signing/dist-types/ts3.4/utils/getSkewCorrectedDate.d.ts deleted file mode 100644 index 741c5ea3..00000000 --- a/node_modules/@aws-sdk/middleware-signing/dist-types/ts3.4/utils/getSkewCorrectedDate.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const getSkewCorrectedDate: (systemClockOffset: number) => Date; diff --git a/node_modules/@aws-sdk/middleware-signing/dist-types/ts3.4/utils/getUpdatedSystemClockOffset.d.ts b/node_modules/@aws-sdk/middleware-signing/dist-types/ts3.4/utils/getUpdatedSystemClockOffset.d.ts deleted file mode 100644 index eae33117..00000000 --- a/node_modules/@aws-sdk/middleware-signing/dist-types/ts3.4/utils/getUpdatedSystemClockOffset.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare const getUpdatedSystemClockOffset: ( - clockTime: string, - currentSystemClockOffset: number -) => number; diff --git a/node_modules/@aws-sdk/middleware-signing/dist-types/ts3.4/utils/isClockSkewed.d.ts b/node_modules/@aws-sdk/middleware-signing/dist-types/ts3.4/utils/isClockSkewed.d.ts deleted file mode 100644 index 9f994f87..00000000 --- a/node_modules/@aws-sdk/middleware-signing/dist-types/ts3.4/utils/isClockSkewed.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare const isClockSkewed: ( - clockTime: number, - systemClockOffset: number -) => boolean; diff --git a/node_modules/@aws-sdk/middleware-signing/dist-types/utils/getSkewCorrectedDate.d.ts b/node_modules/@aws-sdk/middleware-signing/dist-types/utils/getSkewCorrectedDate.d.ts deleted file mode 100644 index 8c887d23..00000000 --- a/node_modules/@aws-sdk/middleware-signing/dist-types/utils/getSkewCorrectedDate.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -/** - * Returns a date that is corrected for clock skew. - * - * @param systemClockOffset The offset of the system clock in milliseconds. - */ -export declare const getSkewCorrectedDate: (systemClockOffset: number) => Date; diff --git a/node_modules/@aws-sdk/middleware-signing/dist-types/utils/getUpdatedSystemClockOffset.d.ts b/node_modules/@aws-sdk/middleware-signing/dist-types/utils/getUpdatedSystemClockOffset.d.ts deleted file mode 100644 index 66e91998..00000000 --- a/node_modules/@aws-sdk/middleware-signing/dist-types/utils/getUpdatedSystemClockOffset.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * If clock is skewed, it returns the difference between serverTime and current time. - * If clock is not skewed, it returns currentSystemClockOffset. - * - * @param clockTime The string value of the server time. - * @param currentSystemClockOffset The current system clock offset. - */ -export declare const getUpdatedSystemClockOffset: (clockTime: string, currentSystemClockOffset: number) => number; diff --git a/node_modules/@aws-sdk/middleware-signing/dist-types/utils/isClockSkewed.d.ts b/node_modules/@aws-sdk/middleware-signing/dist-types/utils/isClockSkewed.d.ts deleted file mode 100644 index 0dde5932..00000000 --- a/node_modules/@aws-sdk/middleware-signing/dist-types/utils/isClockSkewed.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * Checks if the provided date is within the skew window of 300000ms. - * - * @param clockTime - The time to check for skew in milliseconds. - * @param systemClockOffset - The offset of the system clock in milliseconds. - */ -export declare const isClockSkewed: (clockTime: number, systemClockOffset: number) => boolean; diff --git a/node_modules/@aws-sdk/middleware-signing/package.json b/node_modules/@aws-sdk/middleware-signing/package.json deleted file mode 100644 index e69e51c6..00000000 --- a/node_modules/@aws-sdk/middleware-signing/package.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "name": "@aws-sdk/middleware-signing", - "version": "3.451.0", - "scripts": { - "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", - "build:cjs": "tsc -p tsconfig.cjs.json", - "build:es": "tsc -p tsconfig.es.json", - "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build", - "build:types": "tsc -p tsconfig.types.json", - "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", - "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "jest --passWithNoTests", - "test:integration": "jest -c jest.config.integ.js", - "extract:docs": "api-extractor run --local" - }, - "main": "./dist-cjs/index.js", - "module": "./dist-es/index.js", - "types": "./dist-types/index.d.ts", - "author": { - "name": "AWS SDK for JavaScript Team", - "url": "https://aws.amazon.com/javascript/" - }, - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.451.0", - "@smithy/property-provider": "^2.0.0", - "@smithy/protocol-http": "^3.0.9", - "@smithy/signature-v4": "^2.0.0", - "@smithy/types": "^2.5.0", - "@smithy/util-middleware": "^2.0.6", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "typesVersions": { - "<4.0": { - "dist-types/*": [ - "dist-types/ts3.4/*" - ] - } - }, - "files": [ - "dist-*/**" - ], - "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/middleware-signing", - "repository": { - "type": "git", - "url": "https://github.com/aws/aws-sdk-js-v3.git", - "directory": "packages/middleware-signing" - }, - "devDependencies": { - "@tsconfig/recommended": "1.0.1", - "concurrently": "7.0.0", - "downlevel-dts": "0.10.1", - "rimraf": "3.0.2", - "typedoc": "0.23.23", - "typescript": "~4.9.5" - }, - "typedoc": { - "entryPoint": "src/index.ts" - } -} diff --git a/node_modules/@aws-sdk/middleware-user-agent/LICENSE b/node_modules/@aws-sdk/middleware-user-agent/LICENSE deleted file mode 100644 index e907b586..00000000 --- a/node_modules/@aws-sdk/middleware-user-agent/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/node_modules/@aws-sdk/middleware-user-agent/README.md b/node_modules/@aws-sdk/middleware-user-agent/README.md deleted file mode 100644 index a0bf1a92..00000000 --- a/node_modules/@aws-sdk/middleware-user-agent/README.md +++ /dev/null @@ -1,4 +0,0 @@ -# @aws-sdk/middleware-user-agent - -[![NPM version](https://img.shields.io/npm/v/@aws-sdk/middleware-user-agent/latest.svg)](https://www.npmjs.com/package/@aws-sdk/middleware-user-agent) -[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/middleware-user-agent.svg)](https://www.npmjs.com/package/@aws-sdk/middleware-user-agent) diff --git a/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/configurations.js b/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/configurations.js deleted file mode 100644 index 6dbaf96c..00000000 --- a/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/configurations.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.resolveUserAgentConfig = void 0; -function resolveUserAgentConfig(input) { - return { - ...input, - customUserAgent: typeof input.customUserAgent === "string" ? [[input.customUserAgent]] : input.customUserAgent, - }; -} -exports.resolveUserAgentConfig = resolveUserAgentConfig; diff --git a/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/constants.js b/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/constants.js deleted file mode 100644 index 57865204..00000000 --- a/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/constants.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.UA_ESCAPE_CHAR = exports.UA_VALUE_ESCAPE_REGEX = exports.UA_NAME_ESCAPE_REGEX = exports.UA_NAME_SEPARATOR = exports.SPACE = exports.X_AMZ_USER_AGENT = exports.USER_AGENT = void 0; -exports.USER_AGENT = "user-agent"; -exports.X_AMZ_USER_AGENT = "x-amz-user-agent"; -exports.SPACE = " "; -exports.UA_NAME_SEPARATOR = "/"; -exports.UA_NAME_ESCAPE_REGEX = /[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g; -exports.UA_VALUE_ESCAPE_REGEX = /[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g; -exports.UA_ESCAPE_CHAR = "-"; diff --git a/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js b/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js deleted file mode 100644 index bc28e3aa..00000000 --- a/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/index.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./configurations"), exports); -tslib_1.__exportStar(require("./user-agent-middleware"), exports); diff --git a/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/user-agent-middleware.js b/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/user-agent-middleware.js deleted file mode 100644 index 1a5dda0f..00000000 --- a/node_modules/@aws-sdk/middleware-user-agent/dist-cjs/user-agent-middleware.js +++ /dev/null @@ -1,79 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getUserAgentPlugin = exports.getUserAgentMiddlewareOptions = exports.userAgentMiddleware = void 0; -const util_endpoints_1 = require("@aws-sdk/util-endpoints"); -const protocol_http_1 = require("@smithy/protocol-http"); -const constants_1 = require("./constants"); -const userAgentMiddleware = (options) => (next, context) => async (args) => { - var _a, _b; - const { request } = args; - if (!protocol_http_1.HttpRequest.isInstance(request)) - return next(args); - const { headers } = request; - const userAgent = ((_a = context === null || context === void 0 ? void 0 : context.userAgent) === null || _a === void 0 ? void 0 : _a.map(escapeUserAgent)) || []; - const defaultUserAgent = (await options.defaultUserAgentProvider()).map(escapeUserAgent); - const customUserAgent = ((_b = options === null || options === void 0 ? void 0 : options.customUserAgent) === null || _b === void 0 ? void 0 : _b.map(escapeUserAgent)) || []; - const prefix = (0, util_endpoints_1.getUserAgentPrefix)(); - const sdkUserAgentValue = (prefix ? [prefix] : []) - .concat([...defaultUserAgent, ...userAgent, ...customUserAgent]) - .join(constants_1.SPACE); - const normalUAValue = [ - ...defaultUserAgent.filter((section) => section.startsWith("aws-sdk-")), - ...customUserAgent, - ].join(constants_1.SPACE); - if (options.runtime !== "browser") { - if (normalUAValue) { - headers[constants_1.X_AMZ_USER_AGENT] = headers[constants_1.X_AMZ_USER_AGENT] - ? `${headers[constants_1.USER_AGENT]} ${normalUAValue}` - : normalUAValue; - } - headers[constants_1.USER_AGENT] = sdkUserAgentValue; - } - else { - headers[constants_1.X_AMZ_USER_AGENT] = sdkUserAgentValue; - } - return next({ - ...args, - request, - }); -}; -exports.userAgentMiddleware = userAgentMiddleware; -const escapeUserAgent = (userAgentPair) => { - var _a; - const name = userAgentPair[0] - .split(constants_1.UA_NAME_SEPARATOR) - .map((part) => part.replace(constants_1.UA_NAME_ESCAPE_REGEX, constants_1.UA_ESCAPE_CHAR)) - .join(constants_1.UA_NAME_SEPARATOR); - const version = (_a = userAgentPair[1]) === null || _a === void 0 ? void 0 : _a.replace(constants_1.UA_VALUE_ESCAPE_REGEX, constants_1.UA_ESCAPE_CHAR); - const prefixSeparatorIndex = name.indexOf(constants_1.UA_NAME_SEPARATOR); - const prefix = name.substring(0, prefixSeparatorIndex); - let uaName = name.substring(prefixSeparatorIndex + 1); - if (prefix === "api") { - uaName = uaName.toLowerCase(); - } - return [prefix, uaName, version] - .filter((item) => item && item.length > 0) - .reduce((acc, item, index) => { - switch (index) { - case 0: - return item; - case 1: - return `${acc}/${item}`; - default: - return `${acc}#${item}`; - } - }, ""); -}; -exports.getUserAgentMiddlewareOptions = { - name: "getUserAgentMiddleware", - step: "build", - priority: "low", - tags: ["SET_USER_AGENT", "USER_AGENT"], - override: true, -}; -const getUserAgentPlugin = (config) => ({ - applyToStack: (clientStack) => { - clientStack.add((0, exports.userAgentMiddleware)(config), exports.getUserAgentMiddlewareOptions); - }, -}); -exports.getUserAgentPlugin = getUserAgentPlugin; diff --git a/node_modules/@aws-sdk/middleware-user-agent/dist-es/configurations.js b/node_modules/@aws-sdk/middleware-user-agent/dist-es/configurations.js deleted file mode 100644 index aaa099ef..00000000 --- a/node_modules/@aws-sdk/middleware-user-agent/dist-es/configurations.js +++ /dev/null @@ -1,6 +0,0 @@ -export function resolveUserAgentConfig(input) { - return { - ...input, - customUserAgent: typeof input.customUserAgent === "string" ? [[input.customUserAgent]] : input.customUserAgent, - }; -} diff --git a/node_modules/@aws-sdk/middleware-user-agent/dist-es/constants.js b/node_modules/@aws-sdk/middleware-user-agent/dist-es/constants.js deleted file mode 100644 index 33e33916..00000000 --- a/node_modules/@aws-sdk/middleware-user-agent/dist-es/constants.js +++ /dev/null @@ -1,7 +0,0 @@ -export const USER_AGENT = "user-agent"; -export const X_AMZ_USER_AGENT = "x-amz-user-agent"; -export const SPACE = " "; -export const UA_NAME_SEPARATOR = "/"; -export const UA_NAME_ESCAPE_REGEX = /[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w]/g; -export const UA_VALUE_ESCAPE_REGEX = /[^\!\$\%\&\'\*\+\-\.\^\_\`\|\~\d\w\#]/g; -export const UA_ESCAPE_CHAR = "-"; diff --git a/node_modules/@aws-sdk/middleware-user-agent/dist-es/index.js b/node_modules/@aws-sdk/middleware-user-agent/dist-es/index.js deleted file mode 100644 index 0456ec7b..00000000 --- a/node_modules/@aws-sdk/middleware-user-agent/dist-es/index.js +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./configurations"; -export * from "./user-agent-middleware"; diff --git a/node_modules/@aws-sdk/middleware-user-agent/dist-es/user-agent-middleware.js b/node_modules/@aws-sdk/middleware-user-agent/dist-es/user-agent-middleware.js deleted file mode 100644 index 30d84b4d..00000000 --- a/node_modules/@aws-sdk/middleware-user-agent/dist-es/user-agent-middleware.js +++ /dev/null @@ -1,72 +0,0 @@ -import { getUserAgentPrefix } from "@aws-sdk/util-endpoints"; -import { HttpRequest } from "@smithy/protocol-http"; -import { SPACE, UA_ESCAPE_CHAR, UA_NAME_ESCAPE_REGEX, UA_NAME_SEPARATOR, UA_VALUE_ESCAPE_REGEX, USER_AGENT, X_AMZ_USER_AGENT, } from "./constants"; -export const userAgentMiddleware = (options) => (next, context) => async (args) => { - const { request } = args; - if (!HttpRequest.isInstance(request)) - return next(args); - const { headers } = request; - const userAgent = context?.userAgent?.map(escapeUserAgent) || []; - const defaultUserAgent = (await options.defaultUserAgentProvider()).map(escapeUserAgent); - const customUserAgent = options?.customUserAgent?.map(escapeUserAgent) || []; - const prefix = getUserAgentPrefix(); - const sdkUserAgentValue = (prefix ? [prefix] : []) - .concat([...defaultUserAgent, ...userAgent, ...customUserAgent]) - .join(SPACE); - const normalUAValue = [ - ...defaultUserAgent.filter((section) => section.startsWith("aws-sdk-")), - ...customUserAgent, - ].join(SPACE); - if (options.runtime !== "browser") { - if (normalUAValue) { - headers[X_AMZ_USER_AGENT] = headers[X_AMZ_USER_AGENT] - ? `${headers[USER_AGENT]} ${normalUAValue}` - : normalUAValue; - } - headers[USER_AGENT] = sdkUserAgentValue; - } - else { - headers[X_AMZ_USER_AGENT] = sdkUserAgentValue; - } - return next({ - ...args, - request, - }); -}; -const escapeUserAgent = (userAgentPair) => { - const name = userAgentPair[0] - .split(UA_NAME_SEPARATOR) - .map((part) => part.replace(UA_NAME_ESCAPE_REGEX, UA_ESCAPE_CHAR)) - .join(UA_NAME_SEPARATOR); - const version = userAgentPair[1]?.replace(UA_VALUE_ESCAPE_REGEX, UA_ESCAPE_CHAR); - const prefixSeparatorIndex = name.indexOf(UA_NAME_SEPARATOR); - const prefix = name.substring(0, prefixSeparatorIndex); - let uaName = name.substring(prefixSeparatorIndex + 1); - if (prefix === "api") { - uaName = uaName.toLowerCase(); - } - return [prefix, uaName, version] - .filter((item) => item && item.length > 0) - .reduce((acc, item, index) => { - switch (index) { - case 0: - return item; - case 1: - return `${acc}/${item}`; - default: - return `${acc}#${item}`; - } - }, ""); -}; -export const getUserAgentMiddlewareOptions = { - name: "getUserAgentMiddleware", - step: "build", - priority: "low", - tags: ["SET_USER_AGENT", "USER_AGENT"], - override: true, -}; -export const getUserAgentPlugin = (config) => ({ - applyToStack: (clientStack) => { - clientStack.add(userAgentMiddleware(config), getUserAgentMiddlewareOptions); - }, -}); diff --git a/node_modules/@aws-sdk/middleware-user-agent/dist-types/configurations.d.ts b/node_modules/@aws-sdk/middleware-user-agent/dist-types/configurations.d.ts deleted file mode 100644 index 8aa9a6fd..00000000 --- a/node_modules/@aws-sdk/middleware-user-agent/dist-types/configurations.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { Provider, UserAgent } from "@smithy/types"; -/** - * @public - */ -export interface UserAgentInputConfig { - /** - * The custom user agent header that would be appended to default one - */ - customUserAgent?: string | UserAgent; -} -interface PreviouslyResolved { - defaultUserAgentProvider: Provider; - runtime: string; -} -export interface UserAgentResolvedConfig { - /** - * The provider populating default tracking information to be sent with `user-agent`, `x-amz-user-agent` header. - * @internal - */ - defaultUserAgentProvider: Provider; - /** - * The custom user agent header that would be appended to default one - */ - customUserAgent?: UserAgent; - /** - * The runtime environment - */ - runtime: string; -} -export declare function resolveUserAgentConfig(input: T & PreviouslyResolved & UserAgentInputConfig): T & UserAgentResolvedConfig; -export {}; diff --git a/node_modules/@aws-sdk/middleware-user-agent/dist-types/constants.d.ts b/node_modules/@aws-sdk/middleware-user-agent/dist-types/constants.d.ts deleted file mode 100644 index 8c0dfc93..00000000 --- a/node_modules/@aws-sdk/middleware-user-agent/dist-types/constants.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -export declare const USER_AGENT = "user-agent"; -export declare const X_AMZ_USER_AGENT = "x-amz-user-agent"; -export declare const SPACE = " "; -export declare const UA_NAME_SEPARATOR = "/"; -export declare const UA_NAME_ESCAPE_REGEX: RegExp; -export declare const UA_VALUE_ESCAPE_REGEX: RegExp; -export declare const UA_ESCAPE_CHAR = "-"; diff --git a/node_modules/@aws-sdk/middleware-user-agent/dist-types/index.d.ts b/node_modules/@aws-sdk/middleware-user-agent/dist-types/index.d.ts deleted file mode 100644 index 0456ec7b..00000000 --- a/node_modules/@aws-sdk/middleware-user-agent/dist-types/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./configurations"; -export * from "./user-agent-middleware"; diff --git a/node_modules/@aws-sdk/middleware-user-agent/dist-types/ts3.4/configurations.d.ts b/node_modules/@aws-sdk/middleware-user-agent/dist-types/ts3.4/configurations.d.ts deleted file mode 100644 index 910d5676..00000000 --- a/node_modules/@aws-sdk/middleware-user-agent/dist-types/ts3.4/configurations.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { Provider, UserAgent } from "@smithy/types"; -export interface UserAgentInputConfig { - customUserAgent?: string | UserAgent; -} -interface PreviouslyResolved { - defaultUserAgentProvider: Provider; - runtime: string; -} -export interface UserAgentResolvedConfig { - defaultUserAgentProvider: Provider; - customUserAgent?: UserAgent; - runtime: string; -} -export declare function resolveUserAgentConfig( - input: T & PreviouslyResolved & UserAgentInputConfig -): T & UserAgentResolvedConfig; -export {}; diff --git a/node_modules/@aws-sdk/middleware-user-agent/dist-types/ts3.4/constants.d.ts b/node_modules/@aws-sdk/middleware-user-agent/dist-types/ts3.4/constants.d.ts deleted file mode 100644 index 8c0dfc93..00000000 --- a/node_modules/@aws-sdk/middleware-user-agent/dist-types/ts3.4/constants.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -export declare const USER_AGENT = "user-agent"; -export declare const X_AMZ_USER_AGENT = "x-amz-user-agent"; -export declare const SPACE = " "; -export declare const UA_NAME_SEPARATOR = "/"; -export declare const UA_NAME_ESCAPE_REGEX: RegExp; -export declare const UA_VALUE_ESCAPE_REGEX: RegExp; -export declare const UA_ESCAPE_CHAR = "-"; diff --git a/node_modules/@aws-sdk/middleware-user-agent/dist-types/ts3.4/index.d.ts b/node_modules/@aws-sdk/middleware-user-agent/dist-types/ts3.4/index.d.ts deleted file mode 100644 index 0456ec7b..00000000 --- a/node_modules/@aws-sdk/middleware-user-agent/dist-types/ts3.4/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./configurations"; -export * from "./user-agent-middleware"; diff --git a/node_modules/@aws-sdk/middleware-user-agent/dist-types/ts3.4/user-agent-middleware.d.ts b/node_modules/@aws-sdk/middleware-user-agent/dist-types/ts3.4/user-agent-middleware.d.ts deleted file mode 100644 index f7461aa4..00000000 --- a/node_modules/@aws-sdk/middleware-user-agent/dist-types/ts3.4/user-agent-middleware.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { - AbsoluteLocation, - BuildHandler, - BuildHandlerOptions, - HandlerExecutionContext, - MetadataBearer, - Pluggable, -} from "@smithy/types"; -import { UserAgentResolvedConfig } from "./configurations"; -export declare const userAgentMiddleware: ( - options: UserAgentResolvedConfig -) => ( - next: BuildHandler, - context: HandlerExecutionContext -) => BuildHandler; -export declare const getUserAgentMiddlewareOptions: BuildHandlerOptions & - AbsoluteLocation; -export declare const getUserAgentPlugin: ( - config: UserAgentResolvedConfig -) => Pluggable; diff --git a/node_modules/@aws-sdk/middleware-user-agent/dist-types/user-agent-middleware.d.ts b/node_modules/@aws-sdk/middleware-user-agent/dist-types/user-agent-middleware.d.ts deleted file mode 100644 index 30c5341c..00000000 --- a/node_modules/@aws-sdk/middleware-user-agent/dist-types/user-agent-middleware.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { AbsoluteLocation, BuildHandler, BuildHandlerOptions, HandlerExecutionContext, MetadataBearer, Pluggable } from "@smithy/types"; -import { UserAgentResolvedConfig } from "./configurations"; -/** - * Build user agent header sections from: - * 1. runtime-specific default user agent provider; - * 2. custom user agent from `customUserAgent` client config; - * 3. handler execution context set by internal SDK components; - * The built user agent will be set to `x-amz-user-agent` header for ALL the - * runtimes. - * Please note that any override to the `user-agent` or `x-amz-user-agent` header - * in the HTTP request is discouraged. Please use `customUserAgent` client - * config or middleware setting the `userAgent` context to generate desired user - * agent. - */ -export declare const userAgentMiddleware: (options: UserAgentResolvedConfig) => (next: BuildHandler, context: HandlerExecutionContext) => BuildHandler; -export declare const getUserAgentMiddlewareOptions: BuildHandlerOptions & AbsoluteLocation; -export declare const getUserAgentPlugin: (config: UserAgentResolvedConfig) => Pluggable; diff --git a/node_modules/@aws-sdk/middleware-user-agent/package.json b/node_modules/@aws-sdk/middleware-user-agent/package.json deleted file mode 100644 index 22822292..00000000 --- a/node_modules/@aws-sdk/middleware-user-agent/package.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "name": "@aws-sdk/middleware-user-agent", - "version": "3.451.0", - "scripts": { - "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", - "build:cjs": "tsc -p tsconfig.cjs.json", - "build:es": "tsc -p tsconfig.es.json", - "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build", - "build:types": "tsc -p tsconfig.types.json", - "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", - "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "jest --passWithNoTests", - "test:integration": "jest -c jest.config.integ.js", - "extract:docs": "api-extractor run --local" - }, - "main": "./dist-cjs/index.js", - "module": "./dist-es/index.js", - "types": "./dist-types/index.d.ts", - "author": { - "name": "AWS SDK for JavaScript Team", - "url": "https://aws.amazon.com/javascript/" - }, - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.451.0", - "@aws-sdk/util-endpoints": "3.451.0", - "@smithy/protocol-http": "^3.0.9", - "@smithy/types": "^2.5.0", - "tslib": "^2.5.0" - }, - "devDependencies": { - "@tsconfig/recommended": "1.0.1", - "concurrently": "7.0.0", - "downlevel-dts": "0.10.1", - "rimraf": "3.0.2", - "typedoc": "0.23.23", - "typescript": "~4.9.5" - }, - "engines": { - "node": ">=14.0.0" - }, - "typesVersions": { - "<4.0": { - "dist-types/*": [ - "dist-types/ts3.4/*" - ] - } - }, - "files": [ - "dist-*/**" - ], - "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/middleware-user-agent", - "repository": { - "type": "git", - "url": "https://github.com/aws/aws-sdk-js-v3.git", - "directory": "packages/middleware-user-agent" - }, - "typedoc": { - "entryPoint": "src/index.ts" - } -} diff --git a/node_modules/@aws-sdk/region-config-resolver/LICENSE b/node_modules/@aws-sdk/region-config-resolver/LICENSE deleted file mode 100644 index 7b6491ba..00000000 --- a/node_modules/@aws-sdk/region-config-resolver/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. \ No newline at end of file diff --git a/node_modules/@aws-sdk/region-config-resolver/README.md b/node_modules/@aws-sdk/region-config-resolver/README.md deleted file mode 100644 index 389b7655..00000000 --- a/node_modules/@aws-sdk/region-config-resolver/README.md +++ /dev/null @@ -1,12 +0,0 @@ -# @aws-sdk/region-config-resolver - -[![NPM version](https://img.shields.io/npm/v/@aws-sdk/region-config-resolver/latest.svg)](https://www.npmjs.com/package/@aws-sdk/region-config-resolver) -[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/region-config-resolver.svg)](https://www.npmjs.com/package/@aws-sdk/region-config-resolver) - -> An internal package - -This package provides utilities for AWS region config resolvers. - -## Usage - -You probably shouldn't, at least directly. diff --git a/node_modules/@aws-sdk/region-config-resolver/dist-cjs/extensions/index.js b/node_modules/@aws-sdk/region-config-resolver/dist-cjs/extensions/index.js deleted file mode 100644 index 5888c0c3..00000000 --- a/node_modules/@aws-sdk/region-config-resolver/dist-cjs/extensions/index.js +++ /dev/null @@ -1,30 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.resolveAwsRegionExtensionConfiguration = exports.getAwsRegionExtensionConfiguration = void 0; -const getAwsRegionExtensionConfiguration = (runtimeConfig) => { - let runtimeConfigRegion = async () => { - if (runtimeConfig.region === undefined) { - throw new Error("Region is missing from runtimeConfig"); - } - const region = runtimeConfig.region; - if (typeof region === "string") { - return region; - } - return region(); - }; - return { - setRegion(region) { - runtimeConfigRegion = region; - }, - region() { - return runtimeConfigRegion; - }, - }; -}; -exports.getAwsRegionExtensionConfiguration = getAwsRegionExtensionConfiguration; -const resolveAwsRegionExtensionConfiguration = (awsRegionExtensionConfiguration) => { - return { - region: awsRegionExtensionConfiguration.region(), - }; -}; -exports.resolveAwsRegionExtensionConfiguration = resolveAwsRegionExtensionConfiguration; diff --git a/node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js b/node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js deleted file mode 100644 index 096362a1..00000000 --- a/node_modules/@aws-sdk/region-config-resolver/dist-cjs/index.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./extensions"), exports); -tslib_1.__exportStar(require("./regionConfig"), exports); diff --git a/node_modules/@aws-sdk/region-config-resolver/dist-cjs/regionConfig/config.js b/node_modules/@aws-sdk/region-config-resolver/dist-cjs/regionConfig/config.js deleted file mode 100644 index 2ad79b6f..00000000 --- a/node_modules/@aws-sdk/region-config-resolver/dist-cjs/regionConfig/config.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.NODE_REGION_CONFIG_FILE_OPTIONS = exports.NODE_REGION_CONFIG_OPTIONS = exports.REGION_INI_NAME = exports.REGION_ENV_NAME = void 0; -exports.REGION_ENV_NAME = "AWS_REGION"; -exports.REGION_INI_NAME = "region"; -exports.NODE_REGION_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => env[exports.REGION_ENV_NAME], - configFileSelector: (profile) => profile[exports.REGION_INI_NAME], - default: () => { - throw new Error("Region is missing"); - }, -}; -exports.NODE_REGION_CONFIG_FILE_OPTIONS = { - preferredFile: "credentials", -}; diff --git a/node_modules/@aws-sdk/region-config-resolver/dist-cjs/regionConfig/getRealRegion.js b/node_modules/@aws-sdk/region-config-resolver/dist-cjs/regionConfig/getRealRegion.js deleted file mode 100644 index 49b5cbd4..00000000 --- a/node_modules/@aws-sdk/region-config-resolver/dist-cjs/regionConfig/getRealRegion.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getRealRegion = void 0; -const isFipsRegion_1 = require("./isFipsRegion"); -const getRealRegion = (region) => (0, isFipsRegion_1.isFipsRegion)(region) - ? ["fips-aws-global", "aws-fips"].includes(region) - ? "us-east-1" - : region.replace(/fips-(dkr-|prod-)?|-fips/, "") - : region; -exports.getRealRegion = getRealRegion; diff --git a/node_modules/@aws-sdk/region-config-resolver/dist-cjs/regionConfig/index.js b/node_modules/@aws-sdk/region-config-resolver/dist-cjs/regionConfig/index.js deleted file mode 100644 index 74a28f2b..00000000 --- a/node_modules/@aws-sdk/region-config-resolver/dist-cjs/regionConfig/index.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./config"), exports); -tslib_1.__exportStar(require("./resolveRegionConfig"), exports); diff --git a/node_modules/@aws-sdk/region-config-resolver/dist-cjs/regionConfig/isFipsRegion.js b/node_modules/@aws-sdk/region-config-resolver/dist-cjs/regionConfig/isFipsRegion.js deleted file mode 100644 index 011d0a2c..00000000 --- a/node_modules/@aws-sdk/region-config-resolver/dist-cjs/regionConfig/isFipsRegion.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isFipsRegion = void 0; -const isFipsRegion = (region) => typeof region === "string" && (region.startsWith("fips-") || region.endsWith("-fips")); -exports.isFipsRegion = isFipsRegion; diff --git a/node_modules/@aws-sdk/region-config-resolver/dist-cjs/regionConfig/resolveRegionConfig.js b/node_modules/@aws-sdk/region-config-resolver/dist-cjs/regionConfig/resolveRegionConfig.js deleted file mode 100644 index ff5eec87..00000000 --- a/node_modules/@aws-sdk/region-config-resolver/dist-cjs/regionConfig/resolveRegionConfig.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.resolveRegionConfig = void 0; -const getRealRegion_1 = require("./getRealRegion"); -const isFipsRegion_1 = require("./isFipsRegion"); -const resolveRegionConfig = (input) => { - const { region, useFipsEndpoint } = input; - if (!region) { - throw new Error("Region is missing"); - } - return { - ...input, - region: async () => { - if (typeof region === "string") { - return (0, getRealRegion_1.getRealRegion)(region); - } - const providedRegion = await region(); - return (0, getRealRegion_1.getRealRegion)(providedRegion); - }, - useFipsEndpoint: async () => { - const providedRegion = typeof region === "string" ? region : await region(); - if ((0, isFipsRegion_1.isFipsRegion)(providedRegion)) { - return true; - } - return typeof useFipsEndpoint !== "function" ? Promise.resolve(!!useFipsEndpoint) : useFipsEndpoint(); - }, - }; -}; -exports.resolveRegionConfig = resolveRegionConfig; diff --git a/node_modules/@aws-sdk/region-config-resolver/dist-es/extensions/index.js b/node_modules/@aws-sdk/region-config-resolver/dist-es/extensions/index.js deleted file mode 100644 index 26a7cdf0..00000000 --- a/node_modules/@aws-sdk/region-config-resolver/dist-es/extensions/index.js +++ /dev/null @@ -1,25 +0,0 @@ -export const getAwsRegionExtensionConfiguration = (runtimeConfig) => { - let runtimeConfigRegion = async () => { - if (runtimeConfig.region === undefined) { - throw new Error("Region is missing from runtimeConfig"); - } - const region = runtimeConfig.region; - if (typeof region === "string") { - return region; - } - return region(); - }; - return { - setRegion(region) { - runtimeConfigRegion = region; - }, - region() { - return runtimeConfigRegion; - }, - }; -}; -export const resolveAwsRegionExtensionConfiguration = (awsRegionExtensionConfiguration) => { - return { - region: awsRegionExtensionConfiguration.region(), - }; -}; diff --git a/node_modules/@aws-sdk/region-config-resolver/dist-es/index.js b/node_modules/@aws-sdk/region-config-resolver/dist-es/index.js deleted file mode 100644 index 6f4e482f..00000000 --- a/node_modules/@aws-sdk/region-config-resolver/dist-es/index.js +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./extensions"; -export * from "./regionConfig"; diff --git a/node_modules/@aws-sdk/region-config-resolver/dist-es/regionConfig/config.js b/node_modules/@aws-sdk/region-config-resolver/dist-es/regionConfig/config.js deleted file mode 100644 index 7db98960..00000000 --- a/node_modules/@aws-sdk/region-config-resolver/dist-es/regionConfig/config.js +++ /dev/null @@ -1,12 +0,0 @@ -export const REGION_ENV_NAME = "AWS_REGION"; -export const REGION_INI_NAME = "region"; -export const NODE_REGION_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => env[REGION_ENV_NAME], - configFileSelector: (profile) => profile[REGION_INI_NAME], - default: () => { - throw new Error("Region is missing"); - }, -}; -export const NODE_REGION_CONFIG_FILE_OPTIONS = { - preferredFile: "credentials", -}; diff --git a/node_modules/@aws-sdk/region-config-resolver/dist-es/regionConfig/getRealRegion.js b/node_modules/@aws-sdk/region-config-resolver/dist-es/regionConfig/getRealRegion.js deleted file mode 100644 index 8d1246bf..00000000 --- a/node_modules/@aws-sdk/region-config-resolver/dist-es/regionConfig/getRealRegion.js +++ /dev/null @@ -1,6 +0,0 @@ -import { isFipsRegion } from "./isFipsRegion"; -export const getRealRegion = (region) => isFipsRegion(region) - ? ["fips-aws-global", "aws-fips"].includes(region) - ? "us-east-1" - : region.replace(/fips-(dkr-|prod-)?|-fips/, "") - : region; diff --git a/node_modules/@aws-sdk/region-config-resolver/dist-es/regionConfig/index.js b/node_modules/@aws-sdk/region-config-resolver/dist-es/regionConfig/index.js deleted file mode 100644 index 83675f77..00000000 --- a/node_modules/@aws-sdk/region-config-resolver/dist-es/regionConfig/index.js +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./config"; -export * from "./resolveRegionConfig"; diff --git a/node_modules/@aws-sdk/region-config-resolver/dist-es/regionConfig/isFipsRegion.js b/node_modules/@aws-sdk/region-config-resolver/dist-es/regionConfig/isFipsRegion.js deleted file mode 100644 index d758967d..00000000 --- a/node_modules/@aws-sdk/region-config-resolver/dist-es/regionConfig/isFipsRegion.js +++ /dev/null @@ -1 +0,0 @@ -export const isFipsRegion = (region) => typeof region === "string" && (region.startsWith("fips-") || region.endsWith("-fips")); diff --git a/node_modules/@aws-sdk/region-config-resolver/dist-es/regionConfig/resolveRegionConfig.js b/node_modules/@aws-sdk/region-config-resolver/dist-es/regionConfig/resolveRegionConfig.js deleted file mode 100644 index 0028a55d..00000000 --- a/node_modules/@aws-sdk/region-config-resolver/dist-es/regionConfig/resolveRegionConfig.js +++ /dev/null @@ -1,25 +0,0 @@ -import { getRealRegion } from "./getRealRegion"; -import { isFipsRegion } from "./isFipsRegion"; -export const resolveRegionConfig = (input) => { - const { region, useFipsEndpoint } = input; - if (!region) { - throw new Error("Region is missing"); - } - return { - ...input, - region: async () => { - if (typeof region === "string") { - return getRealRegion(region); - } - const providedRegion = await region(); - return getRealRegion(providedRegion); - }, - useFipsEndpoint: async () => { - const providedRegion = typeof region === "string" ? region : await region(); - if (isFipsRegion(providedRegion)) { - return true; - } - return typeof useFipsEndpoint !== "function" ? Promise.resolve(!!useFipsEndpoint) : useFipsEndpoint(); - }, - }; -}; diff --git a/node_modules/@aws-sdk/region-config-resolver/dist-types/extensions/index.d.ts b/node_modules/@aws-sdk/region-config-resolver/dist-types/extensions/index.d.ts deleted file mode 100644 index 7756bad0..00000000 --- a/node_modules/@aws-sdk/region-config-resolver/dist-types/extensions/index.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { AwsRegionExtensionConfiguration } from "@aws-sdk/types"; -import { Provider } from "@smithy/types"; -export type RegionExtensionRuntimeConfigType = Partial<{ - region: string | Provider; -}>; -/** - * @internal - */ -export declare const getAwsRegionExtensionConfiguration: (runtimeConfig: RegionExtensionRuntimeConfigType) => { - setRegion(region: Provider): void; - region(): Provider; -}; -/** - * @internal - */ -export declare const resolveAwsRegionExtensionConfiguration: (awsRegionExtensionConfiguration: AwsRegionExtensionConfiguration) => RegionExtensionRuntimeConfigType; diff --git a/node_modules/@aws-sdk/region-config-resolver/dist-types/index.d.ts b/node_modules/@aws-sdk/region-config-resolver/dist-types/index.d.ts deleted file mode 100644 index 6f4e482f..00000000 --- a/node_modules/@aws-sdk/region-config-resolver/dist-types/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./extensions"; -export * from "./regionConfig"; diff --git a/node_modules/@aws-sdk/region-config-resolver/dist-types/regionConfig/config.d.ts b/node_modules/@aws-sdk/region-config-resolver/dist-types/regionConfig/config.d.ts deleted file mode 100644 index d203bb05..00000000 --- a/node_modules/@aws-sdk/region-config-resolver/dist-types/regionConfig/config.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { LoadedConfigSelectors, LocalConfigOptions } from "@smithy/node-config-provider"; -/** - * @internal - */ -export declare const REGION_ENV_NAME = "AWS_REGION"; -/** - * @internal - */ -export declare const REGION_INI_NAME = "region"; -/** - * @internal - */ -export declare const NODE_REGION_CONFIG_OPTIONS: LoadedConfigSelectors; -/** - * @internal - */ -export declare const NODE_REGION_CONFIG_FILE_OPTIONS: LocalConfigOptions; diff --git a/node_modules/@aws-sdk/region-config-resolver/dist-types/regionConfig/getRealRegion.d.ts b/node_modules/@aws-sdk/region-config-resolver/dist-types/regionConfig/getRealRegion.d.ts deleted file mode 100644 index c70fb5b6..00000000 --- a/node_modules/@aws-sdk/region-config-resolver/dist-types/regionConfig/getRealRegion.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/** - * @internal - */ -export declare const getRealRegion: (region: string) => string; diff --git a/node_modules/@aws-sdk/region-config-resolver/dist-types/regionConfig/index.d.ts b/node_modules/@aws-sdk/region-config-resolver/dist-types/regionConfig/index.d.ts deleted file mode 100644 index 6dcf5e55..00000000 --- a/node_modules/@aws-sdk/region-config-resolver/dist-types/regionConfig/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @internal - */ -export * from "./config"; -/** - * @internal - */ -export * from "./resolveRegionConfig"; diff --git a/node_modules/@aws-sdk/region-config-resolver/dist-types/regionConfig/isFipsRegion.d.ts b/node_modules/@aws-sdk/region-config-resolver/dist-types/regionConfig/isFipsRegion.d.ts deleted file mode 100644 index b42cee72..00000000 --- a/node_modules/@aws-sdk/region-config-resolver/dist-types/regionConfig/isFipsRegion.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/** - * @internal - */ -export declare const isFipsRegion: (region: string) => boolean; diff --git a/node_modules/@aws-sdk/region-config-resolver/dist-types/regionConfig/resolveRegionConfig.d.ts b/node_modules/@aws-sdk/region-config-resolver/dist-types/regionConfig/resolveRegionConfig.d.ts deleted file mode 100644 index 84ed4d01..00000000 --- a/node_modules/@aws-sdk/region-config-resolver/dist-types/regionConfig/resolveRegionConfig.d.ts +++ /dev/null @@ -1,37 +0,0 @@ -import { Provider } from "@smithy/types"; -/** - * @public - */ -export interface RegionInputConfig { - /** - * The AWS region to which this client will send requests - */ - region?: string | Provider; - /** - * Enables FIPS compatible endpoints. - */ - useFipsEndpoint?: boolean | Provider; -} -/** - * @internal - */ -interface PreviouslyResolved { -} -/** - * @internal - */ -export interface RegionResolvedConfig { - /** - * Resolved value for input config {@link RegionInputConfig.region} - */ - region: Provider; - /** - * Resolved value for input {@link RegionInputConfig.useFipsEndpoint} - */ - useFipsEndpoint: Provider; -} -/** - * @internal - */ -export declare const resolveRegionConfig: (input: T & RegionInputConfig & PreviouslyResolved) => T & RegionResolvedConfig; -export {}; diff --git a/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/extensions/index.d.ts b/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/extensions/index.d.ts deleted file mode 100644 index c1328e3e..00000000 --- a/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/extensions/index.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { AwsRegionExtensionConfiguration } from "@aws-sdk/types"; -import { Provider } from "@smithy/types"; -export type RegionExtensionRuntimeConfigType = Partial<{ - region: string | Provider; -}>; -export declare const getAwsRegionExtensionConfiguration: ( - runtimeConfig: RegionExtensionRuntimeConfigType -) => { - setRegion(region: Provider): void; - region(): Provider; -}; -export declare const resolveAwsRegionExtensionConfiguration: ( - awsRegionExtensionConfiguration: AwsRegionExtensionConfiguration -) => RegionExtensionRuntimeConfigType; diff --git a/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/index.d.ts b/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/index.d.ts deleted file mode 100644 index 6f4e482f..00000000 --- a/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./extensions"; -export * from "./regionConfig"; diff --git a/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/regionConfig/config.d.ts b/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/regionConfig/config.d.ts deleted file mode 100644 index ceb3e02b..00000000 --- a/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/regionConfig/config.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { - LoadedConfigSelectors, - LocalConfigOptions, -} from "@smithy/node-config-provider"; -export declare const REGION_ENV_NAME = "AWS_REGION"; -export declare const REGION_INI_NAME = "region"; -export declare const NODE_REGION_CONFIG_OPTIONS: LoadedConfigSelectors; -export declare const NODE_REGION_CONFIG_FILE_OPTIONS: LocalConfigOptions; diff --git a/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/regionConfig/getRealRegion.d.ts b/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/regionConfig/getRealRegion.d.ts deleted file mode 100644 index f06119bd..00000000 --- a/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/regionConfig/getRealRegion.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const getRealRegion: (region: string) => string; diff --git a/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/regionConfig/index.d.ts b/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/regionConfig/index.d.ts deleted file mode 100644 index 83675f77..00000000 --- a/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/regionConfig/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./config"; -export * from "./resolveRegionConfig"; diff --git a/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/regionConfig/isFipsRegion.d.ts b/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/regionConfig/isFipsRegion.d.ts deleted file mode 100644 index 13d34f29..00000000 --- a/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/regionConfig/isFipsRegion.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const isFipsRegion: (region: string) => boolean; diff --git a/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/regionConfig/resolveRegionConfig.d.ts b/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/regionConfig/resolveRegionConfig.d.ts deleted file mode 100644 index 86b83642..00000000 --- a/node_modules/@aws-sdk/region-config-resolver/dist-types/ts3.4/regionConfig/resolveRegionConfig.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { Provider } from "@smithy/types"; -export interface RegionInputConfig { - region?: string | Provider; - useFipsEndpoint?: boolean | Provider; -} -interface PreviouslyResolved {} -export interface RegionResolvedConfig { - region: Provider; - useFipsEndpoint: Provider; -} -export declare const resolveRegionConfig: ( - input: T & RegionInputConfig & PreviouslyResolved -) => T & RegionResolvedConfig; -export {}; diff --git a/node_modules/@aws-sdk/region-config-resolver/package.json b/node_modules/@aws-sdk/region-config-resolver/package.json deleted file mode 100644 index 367b47d6..00000000 --- a/node_modules/@aws-sdk/region-config-resolver/package.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "name": "@aws-sdk/region-config-resolver", - "version": "3.451.0", - "scripts": { - "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", - "build:cjs": "tsc -p tsconfig.cjs.json", - "build:es": "tsc -p tsconfig.es.json", - "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build", - "build:types": "tsc -p tsconfig.types.json", - "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", - "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "extract:docs": "api-extractor run --local", - "test": "jest" - }, - "main": "./dist-cjs/index.js", - "module": "./dist-es/index.js", - "types": "./dist-types/index.d.ts", - "author": { - "name": "AWS SDK for JavaScript Team", - "url": "https://aws.amazon.com/javascript/" - }, - "license": "Apache-2.0", - "dependencies": { - "@smithy/node-config-provider": "^2.1.5", - "@smithy/types": "^2.5.0", - "@smithy/util-config-provider": "^2.0.0", - "@smithy/util-middleware": "^2.0.6", - "tslib": "^2.5.0" - }, - "devDependencies": { - "@tsconfig/recommended": "1.0.1", - "concurrently": "7.0.0", - "downlevel-dts": "0.10.1", - "jest": "28.1.1", - "rimraf": "3.0.2", - "typedoc": "0.23.23", - "typescript": "~4.9.5" - }, - "engines": { - "node": ">=14.0.0" - }, - "typesVersions": { - "<4.0": { - "dist-types/*": [ - "dist-types/ts3.4/*" - ] - } - }, - "files": [ - "dist-*/**" - ], - "homepage": "https://github.com/awslabs/smithy-typescript/tree/main/packages/region-config-resolver", - "repository": { - "type": "git", - "url": "https://github.com/aws/aws-sdk-js-v3.git", - "directory": "packages/region-config-resolver" - }, - "typedoc": { - "entryPoint": "src/index.ts" - } -} diff --git a/node_modules/@aws-sdk/token-providers/LICENSE b/node_modules/@aws-sdk/token-providers/LICENSE deleted file mode 100644 index 7b6491ba..00000000 --- a/node_modules/@aws-sdk/token-providers/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. \ No newline at end of file diff --git a/node_modules/@aws-sdk/token-providers/README.md b/node_modules/@aws-sdk/token-providers/README.md deleted file mode 100644 index 9078019d..00000000 --- a/node_modules/@aws-sdk/token-providers/README.md +++ /dev/null @@ -1,53 +0,0 @@ -# @aws-sdk/token-providers - -[![NPM version](https://img.shields.io/npm/v/@aws-sdk/token-providers/latest.svg)](https://www.npmjs.com/package/@aws-sdk/token-providers) -[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/token-providers.svg)](https://www.npmjs.com/package/@aws-sdk/token-providers) - -A collection of all token providers. The token providers should be used when the authorization -type is going to be token based. For example, the `bearer` authorization type set using -[httpBearerAuth trait][http-bearer-auth-trait] in Smithy. - -## Static Token Provider - -```ts -import { fromStatic } from "@aws-sdk/token-providers"; - -const token = { token: "TOKEN" }; -const staticTokenProvider = fromStatic(token); - -const staticToken = await staticTokenProvider(); // returns { token: "TOKEN" } -``` - -## SSO Token Provider - -```ts -import { fromSso } from "@aws-sdk/token-providers"; - -// returns token from SSO token cache or ssoOidc.createToken() call. -const ssoToken = await fromSso(); -``` - -## Token Provider Chain - -```ts -import { nodeProvider } from "@aws-sdk/token-providers"; - -// returns token from default providers. -const token = await nodeProvider(); -``` - -[http-bearer-auth-trait]: https://smithy.io/2.0/spec/authentication-traits.html#smithy-api-httpbearerauth-trait - ---- - -### Development - -This package contains a minimal copy of the SSO OIDC client, instead of relying on the full client, which -would cause a circular dependency. - -When regenerating the bundled version of the SSO OIDC client, run the esbuild.js script and then make the following changes: - -- Remove any dependency of the generated client on the credential chain such that it would create - a circular dependency back to this package. Because we only need the `CreateTokenCommand`, the client, and this command's - associated `Exception`s, it is possible to remove auth dependencies. -- Ensure all required packages are declared in the `package.json` of token-providers. diff --git a/node_modules/@aws-sdk/token-providers/dist-cjs/bundle/client-sso-oidc-browser.js b/node_modules/@aws-sdk/token-providers/dist-cjs/bundle/client-sso-oidc-browser.js deleted file mode 100644 index bc1ded3a..00000000 --- a/node_modules/@aws-sdk/token-providers/dist-cjs/bundle/client-sso-oidc-browser.js +++ /dev/null @@ -1,1032 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.UnsupportedGrantTypeException = exports.UnauthorizedClientException = exports.SlowDownException = exports.SSOOIDCClient = exports.InvalidScopeException = exports.InvalidRequestException = exports.InvalidClientException = exports.InternalServerException = exports.ExpiredTokenException = exports.CreateTokenCommand = exports.AuthorizationPendingException = exports.AccessDeniedException = void 0; -const middleware_host_header_1 = require("@aws-sdk/middleware-host-header"); -const middleware_logger_1 = require("@aws-sdk/middleware-logger"); -const middleware_recursion_detection_1 = require("@aws-sdk/middleware-recursion-detection"); -const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent"); -const config_resolver_1 = require("@smithy/config-resolver"); -const middleware_content_length_1 = require("@smithy/middleware-content-length"); -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_retry_1 = require("@smithy/middleware-retry"); -const smithy_client_1 = require("@smithy/smithy-client"); -var resolveClientEndpointParameters = (options) => { - var _a, _b; - return { - ...options, - useDualstackEndpoint: (_a = options.useDualstackEndpoint) !== null && _a !== void 0 ? _a : false, - useFipsEndpoint: (_b = options.useFipsEndpoint) !== null && _b !== void 0 ? _b : false, - defaultSigningName: "awsssooidc", - }; -}; -var package_default = { version: "3.429.0" }; -const sha256_browser_1 = require("@aws-crypto/sha256-browser"); -const util_user_agent_browser_1 = require("@aws-sdk/util-user-agent-browser"); -const config_resolver_2 = require("@smithy/config-resolver"); -const fetch_http_handler_1 = require("@smithy/fetch-http-handler"); -const invalid_dependency_1 = require("@smithy/invalid-dependency"); -const util_body_length_browser_1 = require("@smithy/util-body-length-browser"); -const util_retry_1 = require("@smithy/util-retry"); -const smithy_client_2 = require("@smithy/smithy-client"); -const url_parser_1 = require("@smithy/url-parser"); -const util_base64_1 = require("@smithy/util-base64"); -const util_utf8_1 = require("@smithy/util-utf8"); -const util_endpoints_1 = require("@aws-sdk/util-endpoints"); -var s = "required"; -var t = "fn"; -var u = "argv"; -var v = "ref"; -var a = "isSet"; -var b = "tree"; -var c = "error"; -var d = "endpoint"; -var e = "PartitionResult"; -var f = "getAttr"; -var g = { [s]: false, type: "String" }; -var h = { [s]: true, default: false, type: "Boolean" }; -var i = { [v]: "Endpoint" }; -var j = { [t]: "booleanEquals", [u]: [{ [v]: "UseFIPS" }, true] }; -var k = { [t]: "booleanEquals", [u]: [{ [v]: "UseDualStack" }, true] }; -var l = {}; -var m = { [t]: "booleanEquals", [u]: [true, { [t]: f, [u]: [{ [v]: e }, "supportsFIPS"] }] }; -var n = { [v]: e }; -var o = { [t]: "booleanEquals", [u]: [true, { [t]: f, [u]: [n, "supportsDualStack"] }] }; -var p = [j]; -var q = [k]; -var r = [{ [v]: "Region" }]; -var _data = { - version: "1.0", - parameters: { Region: g, UseDualStack: h, UseFIPS: h, Endpoint: g }, - rules: [ - { - conditions: [{ [t]: a, [u]: [i] }], - type: b, - rules: [ - { conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, - { conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, - { endpoint: { url: i, properties: l, headers: l }, type: d }, - ], - }, - { - conditions: [{ [t]: a, [u]: r }], - type: b, - rules: [ - { - conditions: [{ [t]: "aws.partition", [u]: r, assign: e }], - type: b, - rules: [ - { - conditions: [j, k], - type: b, - rules: [ - { - conditions: [m, o], - type: b, - rules: [ - { - endpoint: { - url: "https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: l, - headers: l, - }, - type: d, - }, - ], - }, - { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }, - ], - }, - { - conditions: p, - type: b, - rules: [ - { - conditions: [m], - type: b, - rules: [ - { - conditions: [{ [t]: "stringEquals", [u]: ["aws-us-gov", { [t]: f, [u]: [n, "name"] }] }], - endpoint: { url: "https://oidc.{Region}.amazonaws.com", properties: l, headers: l }, - type: d, - }, - { - endpoint: { - url: "https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: l, - headers: l, - }, - type: d, - }, - ], - }, - { error: "FIPS is enabled but this partition does not support FIPS", type: c }, - ], - }, - { - conditions: q, - type: b, - rules: [ - { - conditions: [o], - type: b, - rules: [ - { - endpoint: { - url: "https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: l, - headers: l, - }, - type: d, - }, - ], - }, - { error: "DualStack is enabled but this partition does not support DualStack", type: c }, - ], - }, - { - endpoint: { url: "https://oidc.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, - type: d, - }, - ], - }, - ], - }, - { error: "Invalid Configuration: Missing Region", type: c }, - ], -}; -var ruleSet = _data; -var defaultEndpointResolver = (endpointParams, context = {}) => { - return (0, util_endpoints_1.resolveEndpoint)(ruleSet, { - endpointParams, - logger: context.logger, - }); -}; -var getRuntimeConfig = (config) => { - var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k; - return ({ - apiVersion: "2019-06-10", - base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_1.fromBase64, - base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_1.toBase64, - disableHostPrefix: (_c = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _c !== void 0 ? _c : false, - endpointProvider: (_d = config === null || config === void 0 ? void 0 : config.endpointProvider) !== null && _d !== void 0 ? _d : defaultEndpointResolver, - extensions: (_e = config === null || config === void 0 ? void 0 : config.extensions) !== null && _e !== void 0 ? _e : [], - logger: (_f = config === null || config === void 0 ? void 0 : config.logger) !== null && _f !== void 0 ? _f : new smithy_client_2.NoOpLogger(), - serviceId: (_g = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _g !== void 0 ? _g : "SSO OIDC", - urlParser: (_h = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _h !== void 0 ? _h : url_parser_1.parseUrl, - utf8Decoder: (_j = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _j !== void 0 ? _j : util_utf8_1.fromUtf8, - utf8Encoder: (_k = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _k !== void 0 ? _k : util_utf8_1.toUtf8, - }); -}; -const smithy_client_3 = require("@smithy/smithy-client"); -const util_defaults_mode_browser_1 = require("@smithy/util-defaults-mode-browser"); -var getRuntimeConfig2 = (config) => { - var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k; - const defaultsMode = (0, util_defaults_mode_browser_1.resolveDefaultsModeConfig)(config); - const defaultConfigProvider = () => defaultsMode().then(smithy_client_3.loadConfigsForDefaultMode); - const clientSharedValues = getRuntimeConfig(config); - return { - ...clientSharedValues, - ...config, - runtime: "browser", - defaultsMode, - bodyLengthChecker: (_a = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _a !== void 0 ? _a : util_body_length_browser_1.calculateBodyLength, - defaultUserAgentProvider: (_b = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _b !== void 0 ? _b : (0, util_user_agent_browser_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_default.version }), - maxAttempts: (_c = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _c !== void 0 ? _c : util_retry_1.DEFAULT_MAX_ATTEMPTS, - region: (_d = config === null || config === void 0 ? void 0 : config.region) !== null && _d !== void 0 ? _d : (0, invalid_dependency_1.invalidProvider)("Region is missing"), - requestHandler: (_e = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _e !== void 0 ? _e : new fetch_http_handler_1.FetchHttpHandler(defaultConfigProvider), - retryMode: (_f = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _f !== void 0 ? _f : (async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE), - sha256: (_g = config === null || config === void 0 ? void 0 : config.sha256) !== null && _g !== void 0 ? _g : sha256_browser_1.Sha256, - streamCollector: (_h = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _h !== void 0 ? _h : fetch_http_handler_1.streamCollector, - useDualstackEndpoint: (_j = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _j !== void 0 ? _j : (() => Promise.resolve(config_resolver_2.DEFAULT_USE_DUALSTACK_ENDPOINT)), - useFipsEndpoint: (_k = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _k !== void 0 ? _k : (() => Promise.resolve(config_resolver_2.DEFAULT_USE_FIPS_ENDPOINT)), - }; -}; -const region_config_resolver_1 = require("@aws-sdk/region-config-resolver"); -const protocol_http_1 = require("@smithy/protocol-http"); -const smithy_client_4 = require("@smithy/smithy-client"); -var asPartial = (t2) => t2; -var resolveRuntimeExtensions = (runtimeConfig, extensions) => { - const extensionConfiguration = { - ...asPartial((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig)), - ...asPartial((0, smithy_client_4.getDefaultExtensionConfiguration)(runtimeConfig)), - ...asPartial((0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig)), - }; - extensions.forEach((extension) => extension.configure(extensionConfiguration)); - return { - ...runtimeConfig, - ...(0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), - ...(0, smithy_client_4.resolveDefaultRuntimeConfig)(extensionConfiguration), - ...(0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), - }; -}; -var SSOOIDCClient = class extends smithy_client_1.Client { - constructor(...[configuration]) { - const _config_0 = getRuntimeConfig2(configuration || {}); - const _config_1 = resolveClientEndpointParameters(_config_0); - const _config_2 = (0, config_resolver_1.resolveRegionConfig)(_config_1); - const _config_3 = (0, middleware_endpoint_1.resolveEndpointConfig)(_config_2); - const _config_4 = (0, middleware_retry_1.resolveRetryConfig)(_config_3); - const _config_5 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_4); - const _config_6 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_5); - const _config_7 = resolveRuntimeExtensions(_config_6, (configuration === null || configuration === void 0 ? void 0 : configuration.extensions) || []); - super(_config_7); - this.config = _config_7; - this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config)); - this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config)); - this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config)); - this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config)); - this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config)); - this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config)); - } - destroy() { - super.destroy(); - } -}; -exports.SSOOIDCClient = SSOOIDCClient; -const smithy_client_5 = require("@smithy/smithy-client"); -const middleware_endpoint_2 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_6 = require("@smithy/smithy-client"); -const types_1 = require("@smithy/types"); -const protocol_http_2 = require("@smithy/protocol-http"); -const smithy_client_7 = require("@smithy/smithy-client"); -const smithy_client_8 = require("@smithy/smithy-client"); -var SSOOIDCServiceException = class _SSOOIDCServiceException extends smithy_client_8.ServiceException { - constructor(options) { - super(options); - Object.setPrototypeOf(this, _SSOOIDCServiceException.prototype); - } -}; -var AccessDeniedException = class _AccessDeniedException extends SSOOIDCServiceException { - constructor(opts) { - super({ - name: "AccessDeniedException", - $fault: "client", - ...opts, - }); - this.name = "AccessDeniedException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _AccessDeniedException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; -exports.AccessDeniedException = AccessDeniedException; -var AuthorizationPendingException = class _AuthorizationPendingException extends SSOOIDCServiceException { - constructor(opts) { - super({ - name: "AuthorizationPendingException", - $fault: "client", - ...opts, - }); - this.name = "AuthorizationPendingException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _AuthorizationPendingException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; -exports.AuthorizationPendingException = AuthorizationPendingException; -var ExpiredTokenException = class _ExpiredTokenException extends SSOOIDCServiceException { - constructor(opts) { - super({ - name: "ExpiredTokenException", - $fault: "client", - ...opts, - }); - this.name = "ExpiredTokenException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _ExpiredTokenException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; -exports.ExpiredTokenException = ExpiredTokenException; -var InternalServerException = class _InternalServerException extends SSOOIDCServiceException { - constructor(opts) { - super({ - name: "InternalServerException", - $fault: "server", - ...opts, - }); - this.name = "InternalServerException"; - this.$fault = "server"; - Object.setPrototypeOf(this, _InternalServerException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; -exports.InternalServerException = InternalServerException; -var InvalidClientException = class _InvalidClientException extends SSOOIDCServiceException { - constructor(opts) { - super({ - name: "InvalidClientException", - $fault: "client", - ...opts, - }); - this.name = "InvalidClientException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _InvalidClientException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; -exports.InvalidClientException = InvalidClientException; -var InvalidGrantException = class _InvalidGrantException extends SSOOIDCServiceException { - constructor(opts) { - super({ - name: "InvalidGrantException", - $fault: "client", - ...opts, - }); - this.name = "InvalidGrantException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _InvalidGrantException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; -var InvalidRequestException = class _InvalidRequestException extends SSOOIDCServiceException { - constructor(opts) { - super({ - name: "InvalidRequestException", - $fault: "client", - ...opts, - }); - this.name = "InvalidRequestException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _InvalidRequestException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; -exports.InvalidRequestException = InvalidRequestException; -var InvalidScopeException = class _InvalidScopeException extends SSOOIDCServiceException { - constructor(opts) { - super({ - name: "InvalidScopeException", - $fault: "client", - ...opts, - }); - this.name = "InvalidScopeException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _InvalidScopeException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; -exports.InvalidScopeException = InvalidScopeException; -var SlowDownException = class _SlowDownException extends SSOOIDCServiceException { - constructor(opts) { - super({ - name: "SlowDownException", - $fault: "client", - ...opts, - }); - this.name = "SlowDownException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _SlowDownException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; -exports.SlowDownException = SlowDownException; -var UnauthorizedClientException = class _UnauthorizedClientException extends SSOOIDCServiceException { - constructor(opts) { - super({ - name: "UnauthorizedClientException", - $fault: "client", - ...opts, - }); - this.name = "UnauthorizedClientException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _UnauthorizedClientException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; -exports.UnauthorizedClientException = UnauthorizedClientException; -var UnsupportedGrantTypeException = class _UnsupportedGrantTypeException extends SSOOIDCServiceException { - constructor(opts) { - super({ - name: "UnsupportedGrantTypeException", - $fault: "client", - ...opts, - }); - this.name = "UnsupportedGrantTypeException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _UnsupportedGrantTypeException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; -exports.UnsupportedGrantTypeException = UnsupportedGrantTypeException; -var InvalidClientMetadataException = class _InvalidClientMetadataException extends SSOOIDCServiceException { - constructor(opts) { - super({ - name: "InvalidClientMetadataException", - $fault: "client", - ...opts, - }); - this.name = "InvalidClientMetadataException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _InvalidClientMetadataException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; -var se_CreateTokenCommand = async (input, context) => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); - const headers = { - "content-type": "application/json", - }; - const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/token`; - let body; - body = JSON.stringify((0, smithy_client_7.take)(input, { - clientId: [], - clientSecret: [], - code: [], - deviceCode: [], - grantType: [], - redirectUri: [], - refreshToken: [], - scope: (_) => (0, smithy_client_7._json)(_), - })); - return new protocol_http_2.HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); -}; -var se_RegisterClientCommand = async (input, context) => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); - const headers = { - "content-type": "application/json", - }; - const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/client/register`; - let body; - body = JSON.stringify((0, smithy_client_7.take)(input, { - clientName: [], - clientType: [], - scopes: (_) => (0, smithy_client_7._json)(_), - })); - return new protocol_http_2.HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); -}; -var se_StartDeviceAuthorizationCommand = async (input, context) => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); - const headers = { - "content-type": "application/json", - }; - const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/device_authorization`; - let body; - body = JSON.stringify((0, smithy_client_7.take)(input, { - clientId: [], - clientSecret: [], - startUrl: [], - })); - return new protocol_http_2.HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); -}; -var de_CreateTokenCommand = async (output, context) => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CreateTokenCommandError(output, context); - } - const contents = (0, smithy_client_7.map)({ - $metadata: deserializeMetadata(output), - }); - const data = (0, smithy_client_7.expectNonNull)((0, smithy_client_7.expectObject)(await parseBody(output.body, context)), "body"); - const doc = (0, smithy_client_7.take)(data, { - accessToken: smithy_client_7.expectString, - expiresIn: smithy_client_7.expectInt32, - idToken: smithy_client_7.expectString, - refreshToken: smithy_client_7.expectString, - tokenType: smithy_client_7.expectString, - }); - Object.assign(contents, doc); - return contents; -}; -var de_CreateTokenCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AccessDeniedException": - case "com.amazonaws.ssooidc#AccessDeniedException": - throw await de_AccessDeniedExceptionRes(parsedOutput, context); - case "AuthorizationPendingException": - case "com.amazonaws.ssooidc#AuthorizationPendingException": - throw await de_AuthorizationPendingExceptionRes(parsedOutput, context); - case "ExpiredTokenException": - case "com.amazonaws.ssooidc#ExpiredTokenException": - throw await de_ExpiredTokenExceptionRes(parsedOutput, context); - case "InternalServerException": - case "com.amazonaws.ssooidc#InternalServerException": - throw await de_InternalServerExceptionRes(parsedOutput, context); - case "InvalidClientException": - case "com.amazonaws.ssooidc#InvalidClientException": - throw await de_InvalidClientExceptionRes(parsedOutput, context); - case "InvalidGrantException": - case "com.amazonaws.ssooidc#InvalidGrantException": - throw await de_InvalidGrantExceptionRes(parsedOutput, context); - case "InvalidRequestException": - case "com.amazonaws.ssooidc#InvalidRequestException": - throw await de_InvalidRequestExceptionRes(parsedOutput, context); - case "InvalidScopeException": - case "com.amazonaws.ssooidc#InvalidScopeException": - throw await de_InvalidScopeExceptionRes(parsedOutput, context); - case "SlowDownException": - case "com.amazonaws.ssooidc#SlowDownException": - throw await de_SlowDownExceptionRes(parsedOutput, context); - case "UnauthorizedClientException": - case "com.amazonaws.ssooidc#UnauthorizedClientException": - throw await de_UnauthorizedClientExceptionRes(parsedOutput, context); - case "UnsupportedGrantTypeException": - case "com.amazonaws.ssooidc#UnsupportedGrantTypeException": - throw await de_UnsupportedGrantTypeExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -var de_RegisterClientCommand = async (output, context) => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_RegisterClientCommandError(output, context); - } - const contents = (0, smithy_client_7.map)({ - $metadata: deserializeMetadata(output), - }); - const data = (0, smithy_client_7.expectNonNull)((0, smithy_client_7.expectObject)(await parseBody(output.body, context)), "body"); - const doc = (0, smithy_client_7.take)(data, { - authorizationEndpoint: smithy_client_7.expectString, - clientId: smithy_client_7.expectString, - clientIdIssuedAt: smithy_client_7.expectLong, - clientSecret: smithy_client_7.expectString, - clientSecretExpiresAt: smithy_client_7.expectLong, - tokenEndpoint: smithy_client_7.expectString, - }); - Object.assign(contents, doc); - return contents; -}; -var de_RegisterClientCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerException": - case "com.amazonaws.ssooidc#InternalServerException": - throw await de_InternalServerExceptionRes(parsedOutput, context); - case "InvalidClientMetadataException": - case "com.amazonaws.ssooidc#InvalidClientMetadataException": - throw await de_InvalidClientMetadataExceptionRes(parsedOutput, context); - case "InvalidRequestException": - case "com.amazonaws.ssooidc#InvalidRequestException": - throw await de_InvalidRequestExceptionRes(parsedOutput, context); - case "InvalidScopeException": - case "com.amazonaws.ssooidc#InvalidScopeException": - throw await de_InvalidScopeExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -var de_StartDeviceAuthorizationCommand = async (output, context) => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_StartDeviceAuthorizationCommandError(output, context); - } - const contents = (0, smithy_client_7.map)({ - $metadata: deserializeMetadata(output), - }); - const data = (0, smithy_client_7.expectNonNull)((0, smithy_client_7.expectObject)(await parseBody(output.body, context)), "body"); - const doc = (0, smithy_client_7.take)(data, { - deviceCode: smithy_client_7.expectString, - expiresIn: smithy_client_7.expectInt32, - interval: smithy_client_7.expectInt32, - userCode: smithy_client_7.expectString, - verificationUri: smithy_client_7.expectString, - verificationUriComplete: smithy_client_7.expectString, - }); - Object.assign(contents, doc); - return contents; -}; -var de_StartDeviceAuthorizationCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerException": - case "com.amazonaws.ssooidc#InternalServerException": - throw await de_InternalServerExceptionRes(parsedOutput, context); - case "InvalidClientException": - case "com.amazonaws.ssooidc#InvalidClientException": - throw await de_InvalidClientExceptionRes(parsedOutput, context); - case "InvalidRequestException": - case "com.amazonaws.ssooidc#InvalidRequestException": - throw await de_InvalidRequestExceptionRes(parsedOutput, context); - case "SlowDownException": - case "com.amazonaws.ssooidc#SlowDownException": - throw await de_SlowDownExceptionRes(parsedOutput, context); - case "UnauthorizedClientException": - case "com.amazonaws.ssooidc#UnauthorizedClientException": - throw await de_UnauthorizedClientExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -var throwDefaultError = (0, smithy_client_7.withBaseException)(SSOOIDCServiceException); -var de_AccessDeniedExceptionRes = async (parsedOutput, context) => { - const contents = (0, smithy_client_7.map)({}); - const data = parsedOutput.body; - const doc = (0, smithy_client_7.take)(data, { - error: smithy_client_7.expectString, - error_description: smithy_client_7.expectString, - }); - Object.assign(contents, doc); - const exception = new AccessDeniedException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return (0, smithy_client_7.decorateServiceException)(exception, parsedOutput.body); -}; -var de_AuthorizationPendingExceptionRes = async (parsedOutput, context) => { - const contents = (0, smithy_client_7.map)({}); - const data = parsedOutput.body; - const doc = (0, smithy_client_7.take)(data, { - error: smithy_client_7.expectString, - error_description: smithy_client_7.expectString, - }); - Object.assign(contents, doc); - const exception = new AuthorizationPendingException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return (0, smithy_client_7.decorateServiceException)(exception, parsedOutput.body); -}; -var de_ExpiredTokenExceptionRes = async (parsedOutput, context) => { - const contents = (0, smithy_client_7.map)({}); - const data = parsedOutput.body; - const doc = (0, smithy_client_7.take)(data, { - error: smithy_client_7.expectString, - error_description: smithy_client_7.expectString, - }); - Object.assign(contents, doc); - const exception = new ExpiredTokenException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return (0, smithy_client_7.decorateServiceException)(exception, parsedOutput.body); -}; -var de_InternalServerExceptionRes = async (parsedOutput, context) => { - const contents = (0, smithy_client_7.map)({}); - const data = parsedOutput.body; - const doc = (0, smithy_client_7.take)(data, { - error: smithy_client_7.expectString, - error_description: smithy_client_7.expectString, - }); - Object.assign(contents, doc); - const exception = new InternalServerException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return (0, smithy_client_7.decorateServiceException)(exception, parsedOutput.body); -}; -var de_InvalidClientExceptionRes = async (parsedOutput, context) => { - const contents = (0, smithy_client_7.map)({}); - const data = parsedOutput.body; - const doc = (0, smithy_client_7.take)(data, { - error: smithy_client_7.expectString, - error_description: smithy_client_7.expectString, - }); - Object.assign(contents, doc); - const exception = new InvalidClientException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return (0, smithy_client_7.decorateServiceException)(exception, parsedOutput.body); -}; -var de_InvalidClientMetadataExceptionRes = async (parsedOutput, context) => { - const contents = (0, smithy_client_7.map)({}); - const data = parsedOutput.body; - const doc = (0, smithy_client_7.take)(data, { - error: smithy_client_7.expectString, - error_description: smithy_client_7.expectString, - }); - Object.assign(contents, doc); - const exception = new InvalidClientMetadataException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return (0, smithy_client_7.decorateServiceException)(exception, parsedOutput.body); -}; -var de_InvalidGrantExceptionRes = async (parsedOutput, context) => { - const contents = (0, smithy_client_7.map)({}); - const data = parsedOutput.body; - const doc = (0, smithy_client_7.take)(data, { - error: smithy_client_7.expectString, - error_description: smithy_client_7.expectString, - }); - Object.assign(contents, doc); - const exception = new InvalidGrantException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return (0, smithy_client_7.decorateServiceException)(exception, parsedOutput.body); -}; -var de_InvalidRequestExceptionRes = async (parsedOutput, context) => { - const contents = (0, smithy_client_7.map)({}); - const data = parsedOutput.body; - const doc = (0, smithy_client_7.take)(data, { - error: smithy_client_7.expectString, - error_description: smithy_client_7.expectString, - }); - Object.assign(contents, doc); - const exception = new InvalidRequestException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return (0, smithy_client_7.decorateServiceException)(exception, parsedOutput.body); -}; -var de_InvalidScopeExceptionRes = async (parsedOutput, context) => { - const contents = (0, smithy_client_7.map)({}); - const data = parsedOutput.body; - const doc = (0, smithy_client_7.take)(data, { - error: smithy_client_7.expectString, - error_description: smithy_client_7.expectString, - }); - Object.assign(contents, doc); - const exception = new InvalidScopeException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return (0, smithy_client_7.decorateServiceException)(exception, parsedOutput.body); -}; -var de_SlowDownExceptionRes = async (parsedOutput, context) => { - const contents = (0, smithy_client_7.map)({}); - const data = parsedOutput.body; - const doc = (0, smithy_client_7.take)(data, { - error: smithy_client_7.expectString, - error_description: smithy_client_7.expectString, - }); - Object.assign(contents, doc); - const exception = new SlowDownException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return (0, smithy_client_7.decorateServiceException)(exception, parsedOutput.body); -}; -var de_UnauthorizedClientExceptionRes = async (parsedOutput, context) => { - const contents = (0, smithy_client_7.map)({}); - const data = parsedOutput.body; - const doc = (0, smithy_client_7.take)(data, { - error: smithy_client_7.expectString, - error_description: smithy_client_7.expectString, - }); - Object.assign(contents, doc); - const exception = new UnauthorizedClientException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return (0, smithy_client_7.decorateServiceException)(exception, parsedOutput.body); -}; -var de_UnsupportedGrantTypeExceptionRes = async (parsedOutput, context) => { - const contents = (0, smithy_client_7.map)({}); - const data = parsedOutput.body; - const doc = (0, smithy_client_7.take)(data, { - error: smithy_client_7.expectString, - error_description: smithy_client_7.expectString, - }); - Object.assign(contents, doc); - const exception = new UnsupportedGrantTypeException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return (0, smithy_client_7.decorateServiceException)(exception, parsedOutput.body); -}; -var deserializeMetadata = (output) => { - var _a, _b; - return ({ - httpStatusCode: output.statusCode, - requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"], - extendedRequestId: output.headers["x-amz-id-2"], - cfId: output.headers["x-amz-cf-id"], - }); -}; -var collectBodyString = (streamBody, context) => (0, smithy_client_7.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)); -var parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => { - if (encoded.length) { - return JSON.parse(encoded); - } - return {}; -}); -var parseErrorBody = async (errorBody, context) => { - var _a; - const value = await parseBody(errorBody, context); - value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message; - return value; -}; -var loadRestJsonErrorCode = (output, data) => { - const findKey = (object, key) => Object.keys(object).find((k2) => k2.toLowerCase() === key.toLowerCase()); - const sanitizeErrorCode = (rawValue) => { - let cleanValue = rawValue; - if (typeof cleanValue === "number") { - cleanValue = cleanValue.toString(); - } - if (cleanValue.indexOf(",") >= 0) { - cleanValue = cleanValue.split(",")[0]; - } - if (cleanValue.indexOf(":") >= 0) { - cleanValue = cleanValue.split(":")[0]; - } - if (cleanValue.indexOf("#") >= 0) { - cleanValue = cleanValue.split("#")[1]; - } - return cleanValue; - }; - const headerKey = findKey(output.headers, "x-amzn-errortype"); - if (headerKey !== void 0) { - return sanitizeErrorCode(output.headers[headerKey]); - } - if (data.code !== void 0) { - return sanitizeErrorCode(data.code); - } - if (data["__type"] !== void 0) { - return sanitizeErrorCode(data["__type"]); - } -}; -var CreateTokenCommand = class _CreateTokenCommand extends smithy_client_6.Command { - constructor(input) { - super(); - this.input = input; - } - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_2.getEndpointPlugin)(configuration, _CreateTokenCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSOOIDCClient"; - const commandName = "CreateTokenCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AWSSSOOIDCService", - operation: "CreateToken", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_CreateTokenCommand(input, context); - } - deserialize(output, context) { - return de_CreateTokenCommand(output, context); - } -}; -exports.CreateTokenCommand = CreateTokenCommand; -const middleware_endpoint_3 = require("@smithy/middleware-endpoint"); -const middleware_serde_2 = require("@smithy/middleware-serde"); -const smithy_client_9 = require("@smithy/smithy-client"); -const types_2 = require("@smithy/types"); -var RegisterClientCommand = class _RegisterClientCommand extends smithy_client_9.Command { - constructor(input) { - super(); - this.input = input; - } - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_2.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_3.getEndpointPlugin)(configuration, _RegisterClientCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSOOIDCClient"; - const commandName = "RegisterClientCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_2.SMITHY_CONTEXT_KEY]: { - service: "AWSSSOOIDCService", - operation: "RegisterClient", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_RegisterClientCommand(input, context); - } - deserialize(output, context) { - return de_RegisterClientCommand(output, context); - } -}; -const middleware_endpoint_4 = require("@smithy/middleware-endpoint"); -const middleware_serde_3 = require("@smithy/middleware-serde"); -const smithy_client_10 = require("@smithy/smithy-client"); -const types_3 = require("@smithy/types"); -var StartDeviceAuthorizationCommand = class _StartDeviceAuthorizationCommand extends smithy_client_10.Command { - constructor(input) { - super(); - this.input = input; - } - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_3.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_4.getEndpointPlugin)(configuration, _StartDeviceAuthorizationCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSOOIDCClient"; - const commandName = "StartDeviceAuthorizationCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_3.SMITHY_CONTEXT_KEY]: { - service: "AWSSSOOIDCService", - operation: "StartDeviceAuthorization", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_StartDeviceAuthorizationCommand(input, context); - } - deserialize(output, context) { - return de_StartDeviceAuthorizationCommand(output, context); - } -}; -var commands = { - CreateTokenCommand, - RegisterClientCommand, - StartDeviceAuthorizationCommand, -}; -var SSOOIDC = class extends SSOOIDCClient { -}; -(0, smithy_client_5.createAggregatedClient)(commands, SSOOIDC); diff --git a/node_modules/@aws-sdk/token-providers/dist-cjs/bundle/client-sso-oidc-node.js b/node_modules/@aws-sdk/token-providers/dist-cjs/bundle/client-sso-oidc-node.js deleted file mode 100644 index 1f80d995..00000000 --- a/node_modules/@aws-sdk/token-providers/dist-cjs/bundle/client-sso-oidc-node.js +++ /dev/null @@ -1,1038 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.UnsupportedGrantTypeException = exports.UnauthorizedClientException = exports.SlowDownException = exports.SSOOIDCClient = exports.InvalidScopeException = exports.InvalidRequestException = exports.InvalidClientException = exports.InternalServerException = exports.ExpiredTokenException = exports.CreateTokenCommand = exports.AuthorizationPendingException = exports.AccessDeniedException = void 0; -const middleware_host_header_1 = require("@aws-sdk/middleware-host-header"); -const middleware_logger_1 = require("@aws-sdk/middleware-logger"); -const middleware_recursion_detection_1 = require("@aws-sdk/middleware-recursion-detection"); -const middleware_user_agent_1 = require("@aws-sdk/middleware-user-agent"); -const config_resolver_1 = require("@smithy/config-resolver"); -const middleware_content_length_1 = require("@smithy/middleware-content-length"); -const middleware_endpoint_1 = require("@smithy/middleware-endpoint"); -const middleware_retry_1 = require("@smithy/middleware-retry"); -const smithy_client_1 = require("@smithy/smithy-client"); -var resolveClientEndpointParameters = (options) => { - var _a, _b; - return { - ...options, - useDualstackEndpoint: (_a = options.useDualstackEndpoint) !== null && _a !== void 0 ? _a : false, - useFipsEndpoint: (_b = options.useFipsEndpoint) !== null && _b !== void 0 ? _b : false, - defaultSigningName: "awsssooidc", - }; -}; -var package_default = { version: "3.429.0" }; -const util_user_agent_node_1 = require("@aws-sdk/util-user-agent-node"); -const config_resolver_2 = require("@smithy/config-resolver"); -const hash_node_1 = require("@smithy/hash-node"); -const middleware_retry_2 = require("@smithy/middleware-retry"); -const node_config_provider_1 = require("@smithy/node-config-provider"); -const node_http_handler_1 = require("@smithy/node-http-handler"); -const util_body_length_node_1 = require("@smithy/util-body-length-node"); -const util_retry_1 = require("@smithy/util-retry"); -const smithy_client_2 = require("@smithy/smithy-client"); -const url_parser_1 = require("@smithy/url-parser"); -const util_base64_1 = require("@smithy/util-base64"); -const util_utf8_1 = require("@smithy/util-utf8"); -const util_endpoints_1 = require("@smithy/util-endpoints"); -var s = "required"; -var t = "fn"; -var u = "argv"; -var v = "ref"; -var a = "isSet"; -var b = "tree"; -var c = "error"; -var d = "endpoint"; -var e = "PartitionResult"; -var f = "getAttr"; -var g = { [s]: false, type: "String" }; -var h = { [s]: true, default: false, type: "Boolean" }; -var i = { [v]: "Endpoint" }; -var j = { [t]: "booleanEquals", [u]: [{ [v]: "UseFIPS" }, true] }; -var k = { [t]: "booleanEquals", [u]: [{ [v]: "UseDualStack" }, true] }; -var l = {}; -var m = { [t]: "booleanEquals", [u]: [true, { [t]: f, [u]: [{ [v]: e }, "supportsFIPS"] }] }; -var n = { [v]: e }; -var o = { [t]: "booleanEquals", [u]: [true, { [t]: f, [u]: [n, "supportsDualStack"] }] }; -var p = [j]; -var q = [k]; -var r = [{ [v]: "Region" }]; -var _data = { - version: "1.0", - parameters: { Region: g, UseDualStack: h, UseFIPS: h, Endpoint: g }, - rules: [ - { - conditions: [{ [t]: a, [u]: [i] }], - type: b, - rules: [ - { conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, - { conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, - { endpoint: { url: i, properties: l, headers: l }, type: d }, - ], - }, - { - conditions: [{ [t]: a, [u]: r }], - type: b, - rules: [ - { - conditions: [{ [t]: "aws.partition", [u]: r, assign: e }], - type: b, - rules: [ - { - conditions: [j, k], - type: b, - rules: [ - { - conditions: [m, o], - type: b, - rules: [ - { - endpoint: { - url: "https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: l, - headers: l, - }, - type: d, - }, - ], - }, - { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }, - ], - }, - { - conditions: p, - type: b, - rules: [ - { - conditions: [m], - type: b, - rules: [ - { - conditions: [{ [t]: "stringEquals", [u]: ["aws-us-gov", { [t]: f, [u]: [n, "name"] }] }], - endpoint: { url: "https://oidc.{Region}.amazonaws.com", properties: l, headers: l }, - type: d, - }, - { - endpoint: { - url: "https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: l, - headers: l, - }, - type: d, - }, - ], - }, - { error: "FIPS is enabled but this partition does not support FIPS", type: c }, - ], - }, - { - conditions: q, - type: b, - rules: [ - { - conditions: [o], - type: b, - rules: [ - { - endpoint: { - url: "https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: l, - headers: l, - }, - type: d, - }, - ], - }, - { error: "DualStack is enabled but this partition does not support DualStack", type: c }, - ], - }, - { - endpoint: { url: "https://oidc.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, - type: d, - }, - ], - }, - ], - }, - { error: "Invalid Configuration: Missing Region", type: c }, - ], -}; -var ruleSet = _data; -var defaultEndpointResolver = (endpointParams, context = {}) => { - return (0, util_endpoints_1.resolveEndpoint)(ruleSet, { - endpointParams, - logger: context.logger, - }); -}; -var getRuntimeConfig = (config) => { - var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k; - return ({ - apiVersion: "2019-06-10", - base64Decoder: (_a = config === null || config === void 0 ? void 0 : config.base64Decoder) !== null && _a !== void 0 ? _a : util_base64_1.fromBase64, - base64Encoder: (_b = config === null || config === void 0 ? void 0 : config.base64Encoder) !== null && _b !== void 0 ? _b : util_base64_1.toBase64, - disableHostPrefix: (_c = config === null || config === void 0 ? void 0 : config.disableHostPrefix) !== null && _c !== void 0 ? _c : false, - endpointProvider: (_d = config === null || config === void 0 ? void 0 : config.endpointProvider) !== null && _d !== void 0 ? _d : defaultEndpointResolver, - extensions: (_e = config === null || config === void 0 ? void 0 : config.extensions) !== null && _e !== void 0 ? _e : [], - logger: (_f = config === null || config === void 0 ? void 0 : config.logger) !== null && _f !== void 0 ? _f : new smithy_client_2.NoOpLogger(), - serviceId: (_g = config === null || config === void 0 ? void 0 : config.serviceId) !== null && _g !== void 0 ? _g : "SSO OIDC", - urlParser: (_h = config === null || config === void 0 ? void 0 : config.urlParser) !== null && _h !== void 0 ? _h : url_parser_1.parseUrl, - utf8Decoder: (_j = config === null || config === void 0 ? void 0 : config.utf8Decoder) !== null && _j !== void 0 ? _j : util_utf8_1.fromUtf8, - utf8Encoder: (_k = config === null || config === void 0 ? void 0 : config.utf8Encoder) !== null && _k !== void 0 ? _k : util_utf8_1.toUtf8, - }); -}; -const smithy_client_3 = require("@smithy/smithy-client"); -const util_defaults_mode_node_1 = require("@smithy/util-defaults-mode-node"); -const smithy_client_4 = require("@smithy/smithy-client"); -var getRuntimeConfig2 = (config) => { - var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k; - (0, smithy_client_4.emitWarningIfUnsupportedVersion)(process.version); - const defaultsMode = (0, util_defaults_mode_node_1.resolveDefaultsModeConfig)(config); - const defaultConfigProvider = () => defaultsMode().then(smithy_client_3.loadConfigsForDefaultMode); - const clientSharedValues = getRuntimeConfig(config); - return { - ...clientSharedValues, - ...config, - runtime: "node", - defaultsMode, - bodyLengthChecker: (_a = config === null || config === void 0 ? void 0 : config.bodyLengthChecker) !== null && _a !== void 0 ? _a : util_body_length_node_1.calculateBodyLength, - defaultUserAgentProvider: (_b = config === null || config === void 0 ? void 0 : config.defaultUserAgentProvider) !== null && _b !== void 0 ? _b : (0, util_user_agent_node_1.defaultUserAgent)({ serviceId: clientSharedValues.serviceId, clientVersion: package_default.version }), - maxAttempts: (_c = config === null || config === void 0 ? void 0 : config.maxAttempts) !== null && _c !== void 0 ? _c : (0, node_config_provider_1.loadConfig)(middleware_retry_2.NODE_MAX_ATTEMPT_CONFIG_OPTIONS), - region: (_d = config === null || config === void 0 ? void 0 : config.region) !== null && _d !== void 0 ? _d : (0, node_config_provider_1.loadConfig)(config_resolver_2.NODE_REGION_CONFIG_OPTIONS, config_resolver_2.NODE_REGION_CONFIG_FILE_OPTIONS), - requestHandler: (_e = config === null || config === void 0 ? void 0 : config.requestHandler) !== null && _e !== void 0 ? _e : new node_http_handler_1.NodeHttpHandler(defaultConfigProvider), - retryMode: (_f = config === null || config === void 0 ? void 0 : config.retryMode) !== null && _f !== void 0 ? _f : (0, node_config_provider_1.loadConfig)({ - ...middleware_retry_2.NODE_RETRY_MODE_CONFIG_OPTIONS, - default: async () => (await defaultConfigProvider()).retryMode || util_retry_1.DEFAULT_RETRY_MODE, - }), - sha256: (_g = config === null || config === void 0 ? void 0 : config.sha256) !== null && _g !== void 0 ? _g : hash_node_1.Hash.bind(null, "sha256"), - streamCollector: (_h = config === null || config === void 0 ? void 0 : config.streamCollector) !== null && _h !== void 0 ? _h : node_http_handler_1.streamCollector, - useDualstackEndpoint: (_j = config === null || config === void 0 ? void 0 : config.useDualstackEndpoint) !== null && _j !== void 0 ? _j : (0, node_config_provider_1.loadConfig)(config_resolver_2.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), - useFipsEndpoint: (_k = config === null || config === void 0 ? void 0 : config.useFipsEndpoint) !== null && _k !== void 0 ? _k : (0, node_config_provider_1.loadConfig)(config_resolver_2.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), - }; -}; -const region_config_resolver_1 = require("@aws-sdk/region-config-resolver"); -const protocol_http_1 = require("@smithy/protocol-http"); -const smithy_client_5 = require("@smithy/smithy-client"); -var asPartial = (t2) => t2; -var resolveRuntimeExtensions = (runtimeConfig, extensions) => { - const extensionConfiguration = { - ...asPartial((0, region_config_resolver_1.getAwsRegionExtensionConfiguration)(runtimeConfig)), - ...asPartial((0, smithy_client_5.getDefaultExtensionConfiguration)(runtimeConfig)), - ...asPartial((0, protocol_http_1.getHttpHandlerExtensionConfiguration)(runtimeConfig)), - }; - extensions.forEach((extension) => extension.configure(extensionConfiguration)); - return { - ...runtimeConfig, - ...(0, region_config_resolver_1.resolveAwsRegionExtensionConfiguration)(extensionConfiguration), - ...(0, smithy_client_5.resolveDefaultRuntimeConfig)(extensionConfiguration), - ...(0, protocol_http_1.resolveHttpHandlerRuntimeConfig)(extensionConfiguration), - }; -}; -var SSOOIDCClient = class extends smithy_client_1.Client { - constructor(...[configuration]) { - const _config_0 = getRuntimeConfig2(configuration || {}); - const _config_1 = resolveClientEndpointParameters(_config_0); - const _config_2 = (0, config_resolver_1.resolveRegionConfig)(_config_1); - const _config_3 = (0, middleware_endpoint_1.resolveEndpointConfig)(_config_2); - const _config_4 = (0, middleware_retry_1.resolveRetryConfig)(_config_3); - const _config_5 = (0, middleware_host_header_1.resolveHostHeaderConfig)(_config_4); - const _config_6 = (0, middleware_user_agent_1.resolveUserAgentConfig)(_config_5); - const _config_7 = resolveRuntimeExtensions(_config_6, (configuration === null || configuration === void 0 ? void 0 : configuration.extensions) || []); - super(_config_7); - this.config = _config_7; - this.middlewareStack.use((0, middleware_retry_1.getRetryPlugin)(this.config)); - this.middlewareStack.use((0, middleware_content_length_1.getContentLengthPlugin)(this.config)); - this.middlewareStack.use((0, middleware_host_header_1.getHostHeaderPlugin)(this.config)); - this.middlewareStack.use((0, middleware_logger_1.getLoggerPlugin)(this.config)); - this.middlewareStack.use((0, middleware_recursion_detection_1.getRecursionDetectionPlugin)(this.config)); - this.middlewareStack.use((0, middleware_user_agent_1.getUserAgentPlugin)(this.config)); - } - destroy() { - super.destroy(); - } -}; -exports.SSOOIDCClient = SSOOIDCClient; -const smithy_client_6 = require("@smithy/smithy-client"); -const middleware_endpoint_2 = require("@smithy/middleware-endpoint"); -const middleware_serde_1 = require("@smithy/middleware-serde"); -const smithy_client_7 = require("@smithy/smithy-client"); -const types_1 = require("@smithy/types"); -const protocol_http_2 = require("@smithy/protocol-http"); -const smithy_client_8 = require("@smithy/smithy-client"); -const smithy_client_9 = require("@smithy/smithy-client"); -var SSOOIDCServiceException = class _SSOOIDCServiceException extends smithy_client_9.ServiceException { - constructor(options) { - super(options); - Object.setPrototypeOf(this, _SSOOIDCServiceException.prototype); - } -}; -var AccessDeniedException = class _AccessDeniedException extends SSOOIDCServiceException { - constructor(opts) { - super({ - name: "AccessDeniedException", - $fault: "client", - ...opts, - }); - this.name = "AccessDeniedException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _AccessDeniedException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; -exports.AccessDeniedException = AccessDeniedException; -var AuthorizationPendingException = class _AuthorizationPendingException extends SSOOIDCServiceException { - constructor(opts) { - super({ - name: "AuthorizationPendingException", - $fault: "client", - ...opts, - }); - this.name = "AuthorizationPendingException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _AuthorizationPendingException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; -exports.AuthorizationPendingException = AuthorizationPendingException; -var ExpiredTokenException = class _ExpiredTokenException extends SSOOIDCServiceException { - constructor(opts) { - super({ - name: "ExpiredTokenException", - $fault: "client", - ...opts, - }); - this.name = "ExpiredTokenException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _ExpiredTokenException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; -exports.ExpiredTokenException = ExpiredTokenException; -var InternalServerException = class _InternalServerException extends SSOOIDCServiceException { - constructor(opts) { - super({ - name: "InternalServerException", - $fault: "server", - ...opts, - }); - this.name = "InternalServerException"; - this.$fault = "server"; - Object.setPrototypeOf(this, _InternalServerException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; -exports.InternalServerException = InternalServerException; -var InvalidClientException = class _InvalidClientException extends SSOOIDCServiceException { - constructor(opts) { - super({ - name: "InvalidClientException", - $fault: "client", - ...opts, - }); - this.name = "InvalidClientException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _InvalidClientException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; -exports.InvalidClientException = InvalidClientException; -var InvalidGrantException = class _InvalidGrantException extends SSOOIDCServiceException { - constructor(opts) { - super({ - name: "InvalidGrantException", - $fault: "client", - ...opts, - }); - this.name = "InvalidGrantException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _InvalidGrantException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; -var InvalidRequestException = class _InvalidRequestException extends SSOOIDCServiceException { - constructor(opts) { - super({ - name: "InvalidRequestException", - $fault: "client", - ...opts, - }); - this.name = "InvalidRequestException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _InvalidRequestException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; -exports.InvalidRequestException = InvalidRequestException; -var InvalidScopeException = class _InvalidScopeException extends SSOOIDCServiceException { - constructor(opts) { - super({ - name: "InvalidScopeException", - $fault: "client", - ...opts, - }); - this.name = "InvalidScopeException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _InvalidScopeException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; -exports.InvalidScopeException = InvalidScopeException; -var SlowDownException = class _SlowDownException extends SSOOIDCServiceException { - constructor(opts) { - super({ - name: "SlowDownException", - $fault: "client", - ...opts, - }); - this.name = "SlowDownException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _SlowDownException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; -exports.SlowDownException = SlowDownException; -var UnauthorizedClientException = class _UnauthorizedClientException extends SSOOIDCServiceException { - constructor(opts) { - super({ - name: "UnauthorizedClientException", - $fault: "client", - ...opts, - }); - this.name = "UnauthorizedClientException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _UnauthorizedClientException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; -exports.UnauthorizedClientException = UnauthorizedClientException; -var UnsupportedGrantTypeException = class _UnsupportedGrantTypeException extends SSOOIDCServiceException { - constructor(opts) { - super({ - name: "UnsupportedGrantTypeException", - $fault: "client", - ...opts, - }); - this.name = "UnsupportedGrantTypeException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _UnsupportedGrantTypeException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; -exports.UnsupportedGrantTypeException = UnsupportedGrantTypeException; -var InvalidClientMetadataException = class _InvalidClientMetadataException extends SSOOIDCServiceException { - constructor(opts) { - super({ - name: "InvalidClientMetadataException", - $fault: "client", - ...opts, - }); - this.name = "InvalidClientMetadataException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _InvalidClientMetadataException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; -var se_CreateTokenCommand = async (input, context) => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); - const headers = { - "content-type": "application/json", - }; - const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/token`; - let body; - body = JSON.stringify((0, smithy_client_8.take)(input, { - clientId: [], - clientSecret: [], - code: [], - deviceCode: [], - grantType: [], - redirectUri: [], - refreshToken: [], - scope: (_) => (0, smithy_client_8._json)(_), - })); - return new protocol_http_2.HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); -}; -var se_RegisterClientCommand = async (input, context) => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); - const headers = { - "content-type": "application/json", - }; - const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/client/register`; - let body; - body = JSON.stringify((0, smithy_client_8.take)(input, { - clientName: [], - clientType: [], - scopes: (_) => (0, smithy_client_8._json)(_), - })); - return new protocol_http_2.HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); -}; -var se_StartDeviceAuthorizationCommand = async (input, context) => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); - const headers = { - "content-type": "application/json", - }; - const resolvedPath = `${(basePath === null || basePath === void 0 ? void 0 : basePath.endsWith("/")) ? basePath.slice(0, -1) : basePath || ""}/device_authorization`; - let body; - body = JSON.stringify((0, smithy_client_8.take)(input, { - clientId: [], - clientSecret: [], - startUrl: [], - })); - return new protocol_http_2.HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); -}; -var de_CreateTokenCommand = async (output, context) => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CreateTokenCommandError(output, context); - } - const contents = (0, smithy_client_8.map)({ - $metadata: deserializeMetadata(output), - }); - const data = (0, smithy_client_8.expectNonNull)((0, smithy_client_8.expectObject)(await parseBody(output.body, context)), "body"); - const doc = (0, smithy_client_8.take)(data, { - accessToken: smithy_client_8.expectString, - expiresIn: smithy_client_8.expectInt32, - idToken: smithy_client_8.expectString, - refreshToken: smithy_client_8.expectString, - tokenType: smithy_client_8.expectString, - }); - Object.assign(contents, doc); - return contents; -}; -var de_CreateTokenCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AccessDeniedException": - case "com.amazonaws.ssooidc#AccessDeniedException": - throw await de_AccessDeniedExceptionRes(parsedOutput, context); - case "AuthorizationPendingException": - case "com.amazonaws.ssooidc#AuthorizationPendingException": - throw await de_AuthorizationPendingExceptionRes(parsedOutput, context); - case "ExpiredTokenException": - case "com.amazonaws.ssooidc#ExpiredTokenException": - throw await de_ExpiredTokenExceptionRes(parsedOutput, context); - case "InternalServerException": - case "com.amazonaws.ssooidc#InternalServerException": - throw await de_InternalServerExceptionRes(parsedOutput, context); - case "InvalidClientException": - case "com.amazonaws.ssooidc#InvalidClientException": - throw await de_InvalidClientExceptionRes(parsedOutput, context); - case "InvalidGrantException": - case "com.amazonaws.ssooidc#InvalidGrantException": - throw await de_InvalidGrantExceptionRes(parsedOutput, context); - case "InvalidRequestException": - case "com.amazonaws.ssooidc#InvalidRequestException": - throw await de_InvalidRequestExceptionRes(parsedOutput, context); - case "InvalidScopeException": - case "com.amazonaws.ssooidc#InvalidScopeException": - throw await de_InvalidScopeExceptionRes(parsedOutput, context); - case "SlowDownException": - case "com.amazonaws.ssooidc#SlowDownException": - throw await de_SlowDownExceptionRes(parsedOutput, context); - case "UnauthorizedClientException": - case "com.amazonaws.ssooidc#UnauthorizedClientException": - throw await de_UnauthorizedClientExceptionRes(parsedOutput, context); - case "UnsupportedGrantTypeException": - case "com.amazonaws.ssooidc#UnsupportedGrantTypeException": - throw await de_UnsupportedGrantTypeExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -var de_RegisterClientCommand = async (output, context) => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_RegisterClientCommandError(output, context); - } - const contents = (0, smithy_client_8.map)({ - $metadata: deserializeMetadata(output), - }); - const data = (0, smithy_client_8.expectNonNull)((0, smithy_client_8.expectObject)(await parseBody(output.body, context)), "body"); - const doc = (0, smithy_client_8.take)(data, { - authorizationEndpoint: smithy_client_8.expectString, - clientId: smithy_client_8.expectString, - clientIdIssuedAt: smithy_client_8.expectLong, - clientSecret: smithy_client_8.expectString, - clientSecretExpiresAt: smithy_client_8.expectLong, - tokenEndpoint: smithy_client_8.expectString, - }); - Object.assign(contents, doc); - return contents; -}; -var de_RegisterClientCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerException": - case "com.amazonaws.ssooidc#InternalServerException": - throw await de_InternalServerExceptionRes(parsedOutput, context); - case "InvalidClientMetadataException": - case "com.amazonaws.ssooidc#InvalidClientMetadataException": - throw await de_InvalidClientMetadataExceptionRes(parsedOutput, context); - case "InvalidRequestException": - case "com.amazonaws.ssooidc#InvalidRequestException": - throw await de_InvalidRequestExceptionRes(parsedOutput, context); - case "InvalidScopeException": - case "com.amazonaws.ssooidc#InvalidScopeException": - throw await de_InvalidScopeExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -var de_StartDeviceAuthorizationCommand = async (output, context) => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_StartDeviceAuthorizationCommandError(output, context); - } - const contents = (0, smithy_client_8.map)({ - $metadata: deserializeMetadata(output), - }); - const data = (0, smithy_client_8.expectNonNull)((0, smithy_client_8.expectObject)(await parseBody(output.body, context)), "body"); - const doc = (0, smithy_client_8.take)(data, { - deviceCode: smithy_client_8.expectString, - expiresIn: smithy_client_8.expectInt32, - interval: smithy_client_8.expectInt32, - userCode: smithy_client_8.expectString, - verificationUri: smithy_client_8.expectString, - verificationUriComplete: smithy_client_8.expectString, - }); - Object.assign(contents, doc); - return contents; -}; -var de_StartDeviceAuthorizationCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerException": - case "com.amazonaws.ssooidc#InternalServerException": - throw await de_InternalServerExceptionRes(parsedOutput, context); - case "InvalidClientException": - case "com.amazonaws.ssooidc#InvalidClientException": - throw await de_InvalidClientExceptionRes(parsedOutput, context); - case "InvalidRequestException": - case "com.amazonaws.ssooidc#InvalidRequestException": - throw await de_InvalidRequestExceptionRes(parsedOutput, context); - case "SlowDownException": - case "com.amazonaws.ssooidc#SlowDownException": - throw await de_SlowDownExceptionRes(parsedOutput, context); - case "UnauthorizedClientException": - case "com.amazonaws.ssooidc#UnauthorizedClientException": - throw await de_UnauthorizedClientExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -var throwDefaultError = (0, smithy_client_8.withBaseException)(SSOOIDCServiceException); -var de_AccessDeniedExceptionRes = async (parsedOutput, context) => { - const contents = (0, smithy_client_8.map)({}); - const data = parsedOutput.body; - const doc = (0, smithy_client_8.take)(data, { - error: smithy_client_8.expectString, - error_description: smithy_client_8.expectString, - }); - Object.assign(contents, doc); - const exception = new AccessDeniedException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return (0, smithy_client_8.decorateServiceException)(exception, parsedOutput.body); -}; -var de_AuthorizationPendingExceptionRes = async (parsedOutput, context) => { - const contents = (0, smithy_client_8.map)({}); - const data = parsedOutput.body; - const doc = (0, smithy_client_8.take)(data, { - error: smithy_client_8.expectString, - error_description: smithy_client_8.expectString, - }); - Object.assign(contents, doc); - const exception = new AuthorizationPendingException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return (0, smithy_client_8.decorateServiceException)(exception, parsedOutput.body); -}; -var de_ExpiredTokenExceptionRes = async (parsedOutput, context) => { - const contents = (0, smithy_client_8.map)({}); - const data = parsedOutput.body; - const doc = (0, smithy_client_8.take)(data, { - error: smithy_client_8.expectString, - error_description: smithy_client_8.expectString, - }); - Object.assign(contents, doc); - const exception = new ExpiredTokenException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return (0, smithy_client_8.decorateServiceException)(exception, parsedOutput.body); -}; -var de_InternalServerExceptionRes = async (parsedOutput, context) => { - const contents = (0, smithy_client_8.map)({}); - const data = parsedOutput.body; - const doc = (0, smithy_client_8.take)(data, { - error: smithy_client_8.expectString, - error_description: smithy_client_8.expectString, - }); - Object.assign(contents, doc); - const exception = new InternalServerException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return (0, smithy_client_8.decorateServiceException)(exception, parsedOutput.body); -}; -var de_InvalidClientExceptionRes = async (parsedOutput, context) => { - const contents = (0, smithy_client_8.map)({}); - const data = parsedOutput.body; - const doc = (0, smithy_client_8.take)(data, { - error: smithy_client_8.expectString, - error_description: smithy_client_8.expectString, - }); - Object.assign(contents, doc); - const exception = new InvalidClientException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return (0, smithy_client_8.decorateServiceException)(exception, parsedOutput.body); -}; -var de_InvalidClientMetadataExceptionRes = async (parsedOutput, context) => { - const contents = (0, smithy_client_8.map)({}); - const data = parsedOutput.body; - const doc = (0, smithy_client_8.take)(data, { - error: smithy_client_8.expectString, - error_description: smithy_client_8.expectString, - }); - Object.assign(contents, doc); - const exception = new InvalidClientMetadataException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return (0, smithy_client_8.decorateServiceException)(exception, parsedOutput.body); -}; -var de_InvalidGrantExceptionRes = async (parsedOutput, context) => { - const contents = (0, smithy_client_8.map)({}); - const data = parsedOutput.body; - const doc = (0, smithy_client_8.take)(data, { - error: smithy_client_8.expectString, - error_description: smithy_client_8.expectString, - }); - Object.assign(contents, doc); - const exception = new InvalidGrantException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return (0, smithy_client_8.decorateServiceException)(exception, parsedOutput.body); -}; -var de_InvalidRequestExceptionRes = async (parsedOutput, context) => { - const contents = (0, smithy_client_8.map)({}); - const data = parsedOutput.body; - const doc = (0, smithy_client_8.take)(data, { - error: smithy_client_8.expectString, - error_description: smithy_client_8.expectString, - }); - Object.assign(contents, doc); - const exception = new InvalidRequestException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return (0, smithy_client_8.decorateServiceException)(exception, parsedOutput.body); -}; -var de_InvalidScopeExceptionRes = async (parsedOutput, context) => { - const contents = (0, smithy_client_8.map)({}); - const data = parsedOutput.body; - const doc = (0, smithy_client_8.take)(data, { - error: smithy_client_8.expectString, - error_description: smithy_client_8.expectString, - }); - Object.assign(contents, doc); - const exception = new InvalidScopeException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return (0, smithy_client_8.decorateServiceException)(exception, parsedOutput.body); -}; -var de_SlowDownExceptionRes = async (parsedOutput, context) => { - const contents = (0, smithy_client_8.map)({}); - const data = parsedOutput.body; - const doc = (0, smithy_client_8.take)(data, { - error: smithy_client_8.expectString, - error_description: smithy_client_8.expectString, - }); - Object.assign(contents, doc); - const exception = new SlowDownException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return (0, smithy_client_8.decorateServiceException)(exception, parsedOutput.body); -}; -var de_UnauthorizedClientExceptionRes = async (parsedOutput, context) => { - const contents = (0, smithy_client_8.map)({}); - const data = parsedOutput.body; - const doc = (0, smithy_client_8.take)(data, { - error: smithy_client_8.expectString, - error_description: smithy_client_8.expectString, - }); - Object.assign(contents, doc); - const exception = new UnauthorizedClientException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return (0, smithy_client_8.decorateServiceException)(exception, parsedOutput.body); -}; -var de_UnsupportedGrantTypeExceptionRes = async (parsedOutput, context) => { - const contents = (0, smithy_client_8.map)({}); - const data = parsedOutput.body; - const doc = (0, smithy_client_8.take)(data, { - error: smithy_client_8.expectString, - error_description: smithy_client_8.expectString, - }); - Object.assign(contents, doc); - const exception = new UnsupportedGrantTypeException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return (0, smithy_client_8.decorateServiceException)(exception, parsedOutput.body); -}; -var deserializeMetadata = (output) => { - var _a, _b; - return ({ - httpStatusCode: output.statusCode, - requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"], - extendedRequestId: output.headers["x-amz-id-2"], - cfId: output.headers["x-amz-cf-id"], - }); -}; -var collectBodyString = (streamBody, context) => (0, smithy_client_8.collectBody)(streamBody, context).then((body) => context.utf8Encoder(body)); -var parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => { - if (encoded.length) { - return JSON.parse(encoded); - } - return {}; -}); -var parseErrorBody = async (errorBody, context) => { - var _a; - const value = await parseBody(errorBody, context); - value.message = (_a = value.message) !== null && _a !== void 0 ? _a : value.Message; - return value; -}; -var loadRestJsonErrorCode = (output, data) => { - const findKey = (object, key) => Object.keys(object).find((k2) => k2.toLowerCase() === key.toLowerCase()); - const sanitizeErrorCode = (rawValue) => { - let cleanValue = rawValue; - if (typeof cleanValue === "number") { - cleanValue = cleanValue.toString(); - } - if (cleanValue.indexOf(",") >= 0) { - cleanValue = cleanValue.split(",")[0]; - } - if (cleanValue.indexOf(":") >= 0) { - cleanValue = cleanValue.split(":")[0]; - } - if (cleanValue.indexOf("#") >= 0) { - cleanValue = cleanValue.split("#")[1]; - } - return cleanValue; - }; - const headerKey = findKey(output.headers, "x-amzn-errortype"); - if (headerKey !== void 0) { - return sanitizeErrorCode(output.headers[headerKey]); - } - if (data.code !== void 0) { - return sanitizeErrorCode(data.code); - } - if (data["__type"] !== void 0) { - return sanitizeErrorCode(data["__type"]); - } -}; -var CreateTokenCommand = class _CreateTokenCommand extends smithy_client_7.Command { - constructor(input) { - super(); - this.input = input; - } - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_1.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_2.getEndpointPlugin)(configuration, _CreateTokenCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSOOIDCClient"; - const commandName = "CreateTokenCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_1.SMITHY_CONTEXT_KEY]: { - service: "AWSSSOOIDCService", - operation: "CreateToken", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_CreateTokenCommand(input, context); - } - deserialize(output, context) { - return de_CreateTokenCommand(output, context); - } -}; -exports.CreateTokenCommand = CreateTokenCommand; -const middleware_endpoint_3 = require("@smithy/middleware-endpoint"); -const middleware_serde_2 = require("@smithy/middleware-serde"); -const smithy_client_10 = require("@smithy/smithy-client"); -const types_2 = require("@smithy/types"); -var RegisterClientCommand = class _RegisterClientCommand extends smithy_client_10.Command { - constructor(input) { - super(); - this.input = input; - } - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_2.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_3.getEndpointPlugin)(configuration, _RegisterClientCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSOOIDCClient"; - const commandName = "RegisterClientCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_2.SMITHY_CONTEXT_KEY]: { - service: "AWSSSOOIDCService", - operation: "RegisterClient", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_RegisterClientCommand(input, context); - } - deserialize(output, context) { - return de_RegisterClientCommand(output, context); - } -}; -const middleware_endpoint_4 = require("@smithy/middleware-endpoint"); -const middleware_serde_3 = require("@smithy/middleware-serde"); -const smithy_client_11 = require("@smithy/smithy-client"); -const types_3 = require("@smithy/types"); -var StartDeviceAuthorizationCommand = class _StartDeviceAuthorizationCommand extends smithy_client_11.Command { - constructor(input) { - super(); - this.input = input; - } - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use((0, middleware_serde_3.getSerdePlugin)(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use((0, middleware_endpoint_4.getEndpointPlugin)(configuration, _StartDeviceAuthorizationCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSOOIDCClient"; - const commandName = "StartDeviceAuthorizationCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [types_3.SMITHY_CONTEXT_KEY]: { - service: "AWSSSOOIDCService", - operation: "StartDeviceAuthorization", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_StartDeviceAuthorizationCommand(input, context); - } - deserialize(output, context) { - return de_StartDeviceAuthorizationCommand(output, context); - } -}; -var commands = { - CreateTokenCommand, - RegisterClientCommand, - StartDeviceAuthorizationCommand, -}; -var SSOOIDC = class extends SSOOIDCClient { -}; -(0, smithy_client_6.createAggregatedClient)(commands, SSOOIDC); diff --git a/node_modules/@aws-sdk/token-providers/dist-cjs/constants.js b/node_modules/@aws-sdk/token-providers/dist-cjs/constants.js deleted file mode 100644 index 135f8b55..00000000 --- a/node_modules/@aws-sdk/token-providers/dist-cjs/constants.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.REFRESH_MESSAGE = exports.EXPIRE_WINDOW_MS = void 0; -exports.EXPIRE_WINDOW_MS = 5 * 60 * 1000; -exports.REFRESH_MESSAGE = `To refresh this SSO session run 'aws sso login' with the corresponding profile.`; diff --git a/node_modules/@aws-sdk/token-providers/dist-cjs/fromSso.js b/node_modules/@aws-sdk/token-providers/dist-cjs/fromSso.js deleted file mode 100644 index 438263f1..00000000 --- a/node_modules/@aws-sdk/token-providers/dist-cjs/fromSso.js +++ /dev/null @@ -1,82 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.fromSso = void 0; -const property_provider_1 = require("@smithy/property-provider"); -const shared_ini_file_loader_1 = require("@smithy/shared-ini-file-loader"); -const constants_1 = require("./constants"); -const getNewSsoOidcToken_1 = require("./getNewSsoOidcToken"); -const validateTokenExpiry_1 = require("./validateTokenExpiry"); -const validateTokenKey_1 = require("./validateTokenKey"); -const writeSSOTokenToFile_1 = require("./writeSSOTokenToFile"); -const lastRefreshAttemptTime = new Date(0); -const fromSso = (init = {}) => async () => { - const profiles = await (0, shared_ini_file_loader_1.parseKnownFiles)(init); - const profileName = (0, shared_ini_file_loader_1.getProfileName)(init); - const profile = profiles[profileName]; - if (!profile) { - throw new property_provider_1.TokenProviderError(`Profile '${profileName}' could not be found in shared credentials file.`, false); - } - else if (!profile["sso_session"]) { - throw new property_provider_1.TokenProviderError(`Profile '${profileName}' is missing required property 'sso_session'.`); - } - const ssoSessionName = profile["sso_session"]; - const ssoSessions = await (0, shared_ini_file_loader_1.loadSsoSessionData)(init); - const ssoSession = ssoSessions[ssoSessionName]; - if (!ssoSession) { - throw new property_provider_1.TokenProviderError(`Sso session '${ssoSessionName}' could not be found in shared credentials file.`, false); - } - for (const ssoSessionRequiredKey of ["sso_start_url", "sso_region"]) { - if (!ssoSession[ssoSessionRequiredKey]) { - throw new property_provider_1.TokenProviderError(`Sso session '${ssoSessionName}' is missing required property '${ssoSessionRequiredKey}'.`, false); - } - } - const ssoStartUrl = ssoSession["sso_start_url"]; - const ssoRegion = ssoSession["sso_region"]; - let ssoToken; - try { - ssoToken = await (0, shared_ini_file_loader_1.getSSOTokenFromFile)(ssoSessionName); - } - catch (e) { - throw new property_provider_1.TokenProviderError(`The SSO session token associated with profile=${profileName} was not found or is invalid. ${constants_1.REFRESH_MESSAGE}`, false); - } - (0, validateTokenKey_1.validateTokenKey)("accessToken", ssoToken.accessToken); - (0, validateTokenKey_1.validateTokenKey)("expiresAt", ssoToken.expiresAt); - const { accessToken, expiresAt } = ssoToken; - const existingToken = { token: accessToken, expiration: new Date(expiresAt) }; - if (existingToken.expiration.getTime() - Date.now() > constants_1.EXPIRE_WINDOW_MS) { - return existingToken; - } - if (Date.now() - lastRefreshAttemptTime.getTime() < 30 * 1000) { - (0, validateTokenExpiry_1.validateTokenExpiry)(existingToken); - return existingToken; - } - (0, validateTokenKey_1.validateTokenKey)("clientId", ssoToken.clientId, true); - (0, validateTokenKey_1.validateTokenKey)("clientSecret", ssoToken.clientSecret, true); - (0, validateTokenKey_1.validateTokenKey)("refreshToken", ssoToken.refreshToken, true); - try { - lastRefreshAttemptTime.setTime(Date.now()); - const newSsoOidcToken = await (0, getNewSsoOidcToken_1.getNewSsoOidcToken)(ssoToken, ssoRegion); - (0, validateTokenKey_1.validateTokenKey)("accessToken", newSsoOidcToken.accessToken); - (0, validateTokenKey_1.validateTokenKey)("expiresIn", newSsoOidcToken.expiresIn); - const newTokenExpiration = new Date(Date.now() + newSsoOidcToken.expiresIn * 1000); - try { - await (0, writeSSOTokenToFile_1.writeSSOTokenToFile)(ssoSessionName, { - ...ssoToken, - accessToken: newSsoOidcToken.accessToken, - expiresAt: newTokenExpiration.toISOString(), - refreshToken: newSsoOidcToken.refreshToken, - }); - } - catch (error) { - } - return { - token: newSsoOidcToken.accessToken, - expiration: newTokenExpiration, - }; - } - catch (error) { - (0, validateTokenExpiry_1.validateTokenExpiry)(existingToken); - return existingToken; - } -}; -exports.fromSso = fromSso; diff --git a/node_modules/@aws-sdk/token-providers/dist-cjs/fromStatic.js b/node_modules/@aws-sdk/token-providers/dist-cjs/fromStatic.js deleted file mode 100644 index 89bc44c5..00000000 --- a/node_modules/@aws-sdk/token-providers/dist-cjs/fromStatic.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.fromStatic = void 0; -const property_provider_1 = require("@smithy/property-provider"); -const fromStatic = ({ token }) => async () => { - if (!token || !token.token) { - throw new property_provider_1.TokenProviderError(`Please pass a valid token to fromStatic`, false); - } - return token; -}; -exports.fromStatic = fromStatic; diff --git a/node_modules/@aws-sdk/token-providers/dist-cjs/getNewSsoOidcToken.js b/node_modules/@aws-sdk/token-providers/dist-cjs/getNewSsoOidcToken.js deleted file mode 100644 index 9319463f..00000000 --- a/node_modules/@aws-sdk/token-providers/dist-cjs/getNewSsoOidcToken.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getNewSsoOidcToken = void 0; -const client_sso_oidc_node_1 = require("./bundle/client-sso-oidc-node"); -const getSsoOidcClient_1 = require("./getSsoOidcClient"); -const getNewSsoOidcToken = (ssoToken, ssoRegion) => { - const ssoOidcClient = (0, getSsoOidcClient_1.getSsoOidcClient)(ssoRegion); - return ssoOidcClient.send(new client_sso_oidc_node_1.CreateTokenCommand({ - clientId: ssoToken.clientId, - clientSecret: ssoToken.clientSecret, - refreshToken: ssoToken.refreshToken, - grantType: "refresh_token", - })); -}; -exports.getNewSsoOidcToken = getNewSsoOidcToken; diff --git a/node_modules/@aws-sdk/token-providers/dist-cjs/getSsoOidcClient.js b/node_modules/@aws-sdk/token-providers/dist-cjs/getSsoOidcClient.js deleted file mode 100644 index 0367003f..00000000 --- a/node_modules/@aws-sdk/token-providers/dist-cjs/getSsoOidcClient.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getSsoOidcClient = void 0; -const client_sso_oidc_node_1 = require("./bundle/client-sso-oidc-node"); -const ssoOidcClientsHash = {}; -const getSsoOidcClient = (ssoRegion) => { - if (ssoOidcClientsHash[ssoRegion]) { - return ssoOidcClientsHash[ssoRegion]; - } - const ssoOidcClient = new client_sso_oidc_node_1.SSOOIDCClient({ region: ssoRegion }); - ssoOidcClientsHash[ssoRegion] = ssoOidcClient; - return ssoOidcClient; -}; -exports.getSsoOidcClient = getSsoOidcClient; diff --git a/node_modules/@aws-sdk/token-providers/dist-cjs/index.js b/node_modules/@aws-sdk/token-providers/dist-cjs/index.js deleted file mode 100644 index b4974bad..00000000 --- a/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./bundle/client-sso-oidc-node"), exports); -tslib_1.__exportStar(require("./fromSso"), exports); -tslib_1.__exportStar(require("./fromStatic"), exports); -tslib_1.__exportStar(require("./nodeProvider"), exports); diff --git a/node_modules/@aws-sdk/token-providers/dist-cjs/nodeProvider.js b/node_modules/@aws-sdk/token-providers/dist-cjs/nodeProvider.js deleted file mode 100644 index d462e49c..00000000 --- a/node_modules/@aws-sdk/token-providers/dist-cjs/nodeProvider.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.nodeProvider = void 0; -const property_provider_1 = require("@smithy/property-provider"); -const fromSso_1 = require("./fromSso"); -const nodeProvider = (init = {}) => (0, property_provider_1.memoize)((0, property_provider_1.chain)((0, fromSso_1.fromSso)(init), async () => { - throw new property_provider_1.TokenProviderError("Could not load token from any providers", false); -}), (token) => token.expiration !== undefined && token.expiration.getTime() - Date.now() < 300000, (token) => token.expiration !== undefined); -exports.nodeProvider = nodeProvider; diff --git a/node_modules/@aws-sdk/token-providers/dist-cjs/validateTokenExpiry.js b/node_modules/@aws-sdk/token-providers/dist-cjs/validateTokenExpiry.js deleted file mode 100644 index 21713572..00000000 --- a/node_modules/@aws-sdk/token-providers/dist-cjs/validateTokenExpiry.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.validateTokenExpiry = void 0; -const property_provider_1 = require("@smithy/property-provider"); -const constants_1 = require("./constants"); -const validateTokenExpiry = (token) => { - if (token.expiration && token.expiration.getTime() < Date.now()) { - throw new property_provider_1.TokenProviderError(`Token is expired. ${constants_1.REFRESH_MESSAGE}`, false); - } -}; -exports.validateTokenExpiry = validateTokenExpiry; diff --git a/node_modules/@aws-sdk/token-providers/dist-cjs/validateTokenKey.js b/node_modules/@aws-sdk/token-providers/dist-cjs/validateTokenKey.js deleted file mode 100644 index 286ac95a..00000000 --- a/node_modules/@aws-sdk/token-providers/dist-cjs/validateTokenKey.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.validateTokenKey = void 0; -const property_provider_1 = require("@smithy/property-provider"); -const constants_1 = require("./constants"); -const validateTokenKey = (key, value, forRefresh = false) => { - if (typeof value === "undefined") { - throw new property_provider_1.TokenProviderError(`Value not present for '${key}' in SSO Token${forRefresh ? ". Cannot refresh" : ""}. ${constants_1.REFRESH_MESSAGE}`, false); - } -}; -exports.validateTokenKey = validateTokenKey; diff --git a/node_modules/@aws-sdk/token-providers/dist-cjs/writeSSOTokenToFile.js b/node_modules/@aws-sdk/token-providers/dist-cjs/writeSSOTokenToFile.js deleted file mode 100644 index b389ad3a..00000000 --- a/node_modules/@aws-sdk/token-providers/dist-cjs/writeSSOTokenToFile.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.writeSSOTokenToFile = void 0; -const shared_ini_file_loader_1 = require("@smithy/shared-ini-file-loader"); -const fs_1 = require("fs"); -const { writeFile } = fs_1.promises; -const writeSSOTokenToFile = (id, ssoToken) => { - const tokenFilepath = (0, shared_ini_file_loader_1.getSSOTokenFilepath)(id); - const tokenString = JSON.stringify(ssoToken, null, 2); - return writeFile(tokenFilepath, tokenString); -}; -exports.writeSSOTokenToFile = writeSSOTokenToFile; diff --git a/node_modules/@aws-sdk/token-providers/dist-es/bundle/client-sso-oidc-browser.js b/node_modules/@aws-sdk/token-providers/dist-es/bundle/client-sso-oidc-browser.js deleted file mode 100644 index b78240fa..00000000 --- a/node_modules/@aws-sdk/token-providers/dist-es/bundle/client-sso-oidc-browser.js +++ /dev/null @@ -1,1010 +0,0 @@ -import { getHostHeaderPlugin, resolveHostHeaderConfig } from "@aws-sdk/middleware-host-header"; -import { getLoggerPlugin } from "@aws-sdk/middleware-logger"; -import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection"; -import { getUserAgentPlugin, resolveUserAgentConfig } from "@aws-sdk/middleware-user-agent"; -import { resolveRegionConfig } from "@smithy/config-resolver"; -import { getContentLengthPlugin } from "@smithy/middleware-content-length"; -import { resolveEndpointConfig } from "@smithy/middleware-endpoint"; -import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry"; -import { Client as __Client } from "@smithy/smithy-client"; -var resolveClientEndpointParameters = (options) => { - return { - ...options, - useDualstackEndpoint: options.useDualstackEndpoint ?? false, - useFipsEndpoint: options.useFipsEndpoint ?? false, - defaultSigningName: "awsssooidc", - }; -}; -var package_default = { version: "3.429.0" }; -import { Sha256 } from "@aws-crypto/sha256-browser"; -import { defaultUserAgent } from "@aws-sdk/util-user-agent-browser"; -import { DEFAULT_USE_DUALSTACK_ENDPOINT, DEFAULT_USE_FIPS_ENDPOINT } from "@smithy/config-resolver"; -import { FetchHttpHandler as RequestHandler, streamCollector } from "@smithy/fetch-http-handler"; -import { invalidProvider } from "@smithy/invalid-dependency"; -import { calculateBodyLength } from "@smithy/util-body-length-browser"; -import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE } from "@smithy/util-retry"; -import { NoOpLogger } from "@smithy/smithy-client"; -import { parseUrl } from "@smithy/url-parser"; -import { fromBase64, toBase64 } from "@smithy/util-base64"; -import { fromUtf8, toUtf8 } from "@smithy/util-utf8"; -import { resolveEndpoint } from "@aws-sdk/util-endpoints"; -var s = "required"; -var t = "fn"; -var u = "argv"; -var v = "ref"; -var a = "isSet"; -var b = "tree"; -var c = "error"; -var d = "endpoint"; -var e = "PartitionResult"; -var f = "getAttr"; -var g = { [s]: false, type: "String" }; -var h = { [s]: true, default: false, type: "Boolean" }; -var i = { [v]: "Endpoint" }; -var j = { [t]: "booleanEquals", [u]: [{ [v]: "UseFIPS" }, true] }; -var k = { [t]: "booleanEquals", [u]: [{ [v]: "UseDualStack" }, true] }; -var l = {}; -var m = { [t]: "booleanEquals", [u]: [true, { [t]: f, [u]: [{ [v]: e }, "supportsFIPS"] }] }; -var n = { [v]: e }; -var o = { [t]: "booleanEquals", [u]: [true, { [t]: f, [u]: [n, "supportsDualStack"] }] }; -var p = [j]; -var q = [k]; -var r = [{ [v]: "Region" }]; -var _data = { - version: "1.0", - parameters: { Region: g, UseDualStack: h, UseFIPS: h, Endpoint: g }, - rules: [ - { - conditions: [{ [t]: a, [u]: [i] }], - type: b, - rules: [ - { conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, - { conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, - { endpoint: { url: i, properties: l, headers: l }, type: d }, - ], - }, - { - conditions: [{ [t]: a, [u]: r }], - type: b, - rules: [ - { - conditions: [{ [t]: "aws.partition", [u]: r, assign: e }], - type: b, - rules: [ - { - conditions: [j, k], - type: b, - rules: [ - { - conditions: [m, o], - type: b, - rules: [ - { - endpoint: { - url: "https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: l, - headers: l, - }, - type: d, - }, - ], - }, - { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }, - ], - }, - { - conditions: p, - type: b, - rules: [ - { - conditions: [m], - type: b, - rules: [ - { - conditions: [{ [t]: "stringEquals", [u]: ["aws-us-gov", { [t]: f, [u]: [n, "name"] }] }], - endpoint: { url: "https://oidc.{Region}.amazonaws.com", properties: l, headers: l }, - type: d, - }, - { - endpoint: { - url: "https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: l, - headers: l, - }, - type: d, - }, - ], - }, - { error: "FIPS is enabled but this partition does not support FIPS", type: c }, - ], - }, - { - conditions: q, - type: b, - rules: [ - { - conditions: [o], - type: b, - rules: [ - { - endpoint: { - url: "https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: l, - headers: l, - }, - type: d, - }, - ], - }, - { error: "DualStack is enabled but this partition does not support DualStack", type: c }, - ], - }, - { - endpoint: { url: "https://oidc.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, - type: d, - }, - ], - }, - ], - }, - { error: "Invalid Configuration: Missing Region", type: c }, - ], -}; -var ruleSet = _data; -var defaultEndpointResolver = (endpointParams, context = {}) => { - return resolveEndpoint(ruleSet, { - endpointParams, - logger: context.logger, - }); -}; -var getRuntimeConfig = (config) => ({ - apiVersion: "2019-06-10", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "SSO OIDC", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); -import { loadConfigsForDefaultMode } from "@smithy/smithy-client"; -import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-browser"; -var getRuntimeConfig2 = (config) => { - const defaultsMode = resolveDefaultsModeConfig(config); - const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); - const clientSharedValues = getRuntimeConfig(config); - return { - ...clientSharedValues, - ...config, - runtime: "browser", - defaultsMode, - bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - defaultUserAgentProvider: config?.defaultUserAgentProvider ?? - defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_default.version }), - maxAttempts: config?.maxAttempts ?? DEFAULT_MAX_ATTEMPTS, - region: config?.region ?? invalidProvider("Region is missing"), - requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider), - retryMode: config?.retryMode ?? (async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE), - sha256: config?.sha256 ?? Sha256, - streamCollector: config?.streamCollector ?? streamCollector, - useDualstackEndpoint: config?.useDualstackEndpoint ?? (() => Promise.resolve(DEFAULT_USE_DUALSTACK_ENDPOINT)), - useFipsEndpoint: config?.useFipsEndpoint ?? (() => Promise.resolve(DEFAULT_USE_FIPS_ENDPOINT)), - }; -}; -import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, } from "@aws-sdk/region-config-resolver"; -import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http"; -import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client"; -var asPartial = (t2) => t2; -var resolveRuntimeExtensions = (runtimeConfig, extensions) => { - const extensionConfiguration = { - ...asPartial(getAwsRegionExtensionConfiguration(runtimeConfig)), - ...asPartial(getDefaultExtensionConfiguration(runtimeConfig)), - ...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)), - }; - extensions.forEach((extension) => extension.configure(extensionConfiguration)); - return { - ...runtimeConfig, - ...resolveAwsRegionExtensionConfiguration(extensionConfiguration), - ...resolveDefaultRuntimeConfig(extensionConfiguration), - ...resolveHttpHandlerRuntimeConfig(extensionConfiguration), - }; -}; -var SSOOIDCClient = class extends __Client { - constructor(...[configuration]) { - const _config_0 = getRuntimeConfig2(configuration || {}); - const _config_1 = resolveClientEndpointParameters(_config_0); - const _config_2 = resolveRegionConfig(_config_1); - const _config_3 = resolveEndpointConfig(_config_2); - const _config_4 = resolveRetryConfig(_config_3); - const _config_5 = resolveHostHeaderConfig(_config_4); - const _config_6 = resolveUserAgentConfig(_config_5); - const _config_7 = resolveRuntimeExtensions(_config_6, configuration?.extensions || []); - super(_config_7); - this.config = _config_7; - this.middlewareStack.use(getRetryPlugin(this.config)); - this.middlewareStack.use(getContentLengthPlugin(this.config)); - this.middlewareStack.use(getHostHeaderPlugin(this.config)); - this.middlewareStack.use(getLoggerPlugin(this.config)); - this.middlewareStack.use(getRecursionDetectionPlugin(this.config)); - this.middlewareStack.use(getUserAgentPlugin(this.config)); - } - destroy() { - super.destroy(); - } -}; -import { createAggregatedClient } from "@smithy/smithy-client"; -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY } from "@smithy/types"; -import { HttpRequest as __HttpRequest } from "@smithy/protocol-http"; -import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, take, withBaseException, } from "@smithy/smithy-client"; -import { ServiceException as __ServiceException, } from "@smithy/smithy-client"; -var SSOOIDCServiceException = class _SSOOIDCServiceException extends __ServiceException { - constructor(options) { - super(options); - Object.setPrototypeOf(this, _SSOOIDCServiceException.prototype); - } -}; -var AccessDeniedException = class _AccessDeniedException extends SSOOIDCServiceException { - constructor(opts) { - super({ - name: "AccessDeniedException", - $fault: "client", - ...opts, - }); - this.name = "AccessDeniedException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _AccessDeniedException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; -var AuthorizationPendingException = class _AuthorizationPendingException extends SSOOIDCServiceException { - constructor(opts) { - super({ - name: "AuthorizationPendingException", - $fault: "client", - ...opts, - }); - this.name = "AuthorizationPendingException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _AuthorizationPendingException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; -var ExpiredTokenException = class _ExpiredTokenException extends SSOOIDCServiceException { - constructor(opts) { - super({ - name: "ExpiredTokenException", - $fault: "client", - ...opts, - }); - this.name = "ExpiredTokenException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _ExpiredTokenException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; -var InternalServerException = class _InternalServerException extends SSOOIDCServiceException { - constructor(opts) { - super({ - name: "InternalServerException", - $fault: "server", - ...opts, - }); - this.name = "InternalServerException"; - this.$fault = "server"; - Object.setPrototypeOf(this, _InternalServerException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; -var InvalidClientException = class _InvalidClientException extends SSOOIDCServiceException { - constructor(opts) { - super({ - name: "InvalidClientException", - $fault: "client", - ...opts, - }); - this.name = "InvalidClientException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _InvalidClientException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; -var InvalidGrantException = class _InvalidGrantException extends SSOOIDCServiceException { - constructor(opts) { - super({ - name: "InvalidGrantException", - $fault: "client", - ...opts, - }); - this.name = "InvalidGrantException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _InvalidGrantException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; -var InvalidRequestException = class _InvalidRequestException extends SSOOIDCServiceException { - constructor(opts) { - super({ - name: "InvalidRequestException", - $fault: "client", - ...opts, - }); - this.name = "InvalidRequestException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _InvalidRequestException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; -var InvalidScopeException = class _InvalidScopeException extends SSOOIDCServiceException { - constructor(opts) { - super({ - name: "InvalidScopeException", - $fault: "client", - ...opts, - }); - this.name = "InvalidScopeException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _InvalidScopeException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; -var SlowDownException = class _SlowDownException extends SSOOIDCServiceException { - constructor(opts) { - super({ - name: "SlowDownException", - $fault: "client", - ...opts, - }); - this.name = "SlowDownException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _SlowDownException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; -var UnauthorizedClientException = class _UnauthorizedClientException extends SSOOIDCServiceException { - constructor(opts) { - super({ - name: "UnauthorizedClientException", - $fault: "client", - ...opts, - }); - this.name = "UnauthorizedClientException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _UnauthorizedClientException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; -var UnsupportedGrantTypeException = class _UnsupportedGrantTypeException extends SSOOIDCServiceException { - constructor(opts) { - super({ - name: "UnsupportedGrantTypeException", - $fault: "client", - ...opts, - }); - this.name = "UnsupportedGrantTypeException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _UnsupportedGrantTypeException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; -var InvalidClientMetadataException = class _InvalidClientMetadataException extends SSOOIDCServiceException { - constructor(opts) { - super({ - name: "InvalidClientMetadataException", - $fault: "client", - ...opts, - }); - this.name = "InvalidClientMetadataException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _InvalidClientMetadataException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; -var se_CreateTokenCommand = async (input, context) => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); - const headers = { - "content-type": "application/json", - }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}/token`; - let body; - body = JSON.stringify(take(input, { - clientId: [], - clientSecret: [], - code: [], - deviceCode: [], - grantType: [], - redirectUri: [], - refreshToken: [], - scope: (_) => _json(_), - })); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); -}; -var se_RegisterClientCommand = async (input, context) => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); - const headers = { - "content-type": "application/json", - }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}/client/register`; - let body; - body = JSON.stringify(take(input, { - clientName: [], - clientType: [], - scopes: (_) => _json(_), - })); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); -}; -var se_StartDeviceAuthorizationCommand = async (input, context) => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); - const headers = { - "content-type": "application/json", - }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}/device_authorization`; - let body; - body = JSON.stringify(take(input, { - clientId: [], - clientSecret: [], - startUrl: [], - })); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); -}; -var de_CreateTokenCommand = async (output, context) => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CreateTokenCommandError(output, context); - } - const contents = map({ - $metadata: deserializeMetadata(output), - }); - const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - const doc = take(data, { - accessToken: __expectString, - expiresIn: __expectInt32, - idToken: __expectString, - refreshToken: __expectString, - tokenType: __expectString, - }); - Object.assign(contents, doc); - return contents; -}; -var de_CreateTokenCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AccessDeniedException": - case "com.amazonaws.ssooidc#AccessDeniedException": - throw await de_AccessDeniedExceptionRes(parsedOutput, context); - case "AuthorizationPendingException": - case "com.amazonaws.ssooidc#AuthorizationPendingException": - throw await de_AuthorizationPendingExceptionRes(parsedOutput, context); - case "ExpiredTokenException": - case "com.amazonaws.ssooidc#ExpiredTokenException": - throw await de_ExpiredTokenExceptionRes(parsedOutput, context); - case "InternalServerException": - case "com.amazonaws.ssooidc#InternalServerException": - throw await de_InternalServerExceptionRes(parsedOutput, context); - case "InvalidClientException": - case "com.amazonaws.ssooidc#InvalidClientException": - throw await de_InvalidClientExceptionRes(parsedOutput, context); - case "InvalidGrantException": - case "com.amazonaws.ssooidc#InvalidGrantException": - throw await de_InvalidGrantExceptionRes(parsedOutput, context); - case "InvalidRequestException": - case "com.amazonaws.ssooidc#InvalidRequestException": - throw await de_InvalidRequestExceptionRes(parsedOutput, context); - case "InvalidScopeException": - case "com.amazonaws.ssooidc#InvalidScopeException": - throw await de_InvalidScopeExceptionRes(parsedOutput, context); - case "SlowDownException": - case "com.amazonaws.ssooidc#SlowDownException": - throw await de_SlowDownExceptionRes(parsedOutput, context); - case "UnauthorizedClientException": - case "com.amazonaws.ssooidc#UnauthorizedClientException": - throw await de_UnauthorizedClientExceptionRes(parsedOutput, context); - case "UnsupportedGrantTypeException": - case "com.amazonaws.ssooidc#UnsupportedGrantTypeException": - throw await de_UnsupportedGrantTypeExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -var de_RegisterClientCommand = async (output, context) => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_RegisterClientCommandError(output, context); - } - const contents = map({ - $metadata: deserializeMetadata(output), - }); - const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - const doc = take(data, { - authorizationEndpoint: __expectString, - clientId: __expectString, - clientIdIssuedAt: __expectLong, - clientSecret: __expectString, - clientSecretExpiresAt: __expectLong, - tokenEndpoint: __expectString, - }); - Object.assign(contents, doc); - return contents; -}; -var de_RegisterClientCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerException": - case "com.amazonaws.ssooidc#InternalServerException": - throw await de_InternalServerExceptionRes(parsedOutput, context); - case "InvalidClientMetadataException": - case "com.amazonaws.ssooidc#InvalidClientMetadataException": - throw await de_InvalidClientMetadataExceptionRes(parsedOutput, context); - case "InvalidRequestException": - case "com.amazonaws.ssooidc#InvalidRequestException": - throw await de_InvalidRequestExceptionRes(parsedOutput, context); - case "InvalidScopeException": - case "com.amazonaws.ssooidc#InvalidScopeException": - throw await de_InvalidScopeExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -var de_StartDeviceAuthorizationCommand = async (output, context) => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_StartDeviceAuthorizationCommandError(output, context); - } - const contents = map({ - $metadata: deserializeMetadata(output), - }); - const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - const doc = take(data, { - deviceCode: __expectString, - expiresIn: __expectInt32, - interval: __expectInt32, - userCode: __expectString, - verificationUri: __expectString, - verificationUriComplete: __expectString, - }); - Object.assign(contents, doc); - return contents; -}; -var de_StartDeviceAuthorizationCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerException": - case "com.amazonaws.ssooidc#InternalServerException": - throw await de_InternalServerExceptionRes(parsedOutput, context); - case "InvalidClientException": - case "com.amazonaws.ssooidc#InvalidClientException": - throw await de_InvalidClientExceptionRes(parsedOutput, context); - case "InvalidRequestException": - case "com.amazonaws.ssooidc#InvalidRequestException": - throw await de_InvalidRequestExceptionRes(parsedOutput, context); - case "SlowDownException": - case "com.amazonaws.ssooidc#SlowDownException": - throw await de_SlowDownExceptionRes(parsedOutput, context); - case "UnauthorizedClientException": - case "com.amazonaws.ssooidc#UnauthorizedClientException": - throw await de_UnauthorizedClientExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -var throwDefaultError = withBaseException(SSOOIDCServiceException); -var de_AccessDeniedExceptionRes = async (parsedOutput, context) => { - const contents = map({}); - const data = parsedOutput.body; - const doc = take(data, { - error: __expectString, - error_description: __expectString, - }); - Object.assign(contents, doc); - const exception = new AccessDeniedException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return __decorateServiceException(exception, parsedOutput.body); -}; -var de_AuthorizationPendingExceptionRes = async (parsedOutput, context) => { - const contents = map({}); - const data = parsedOutput.body; - const doc = take(data, { - error: __expectString, - error_description: __expectString, - }); - Object.assign(contents, doc); - const exception = new AuthorizationPendingException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return __decorateServiceException(exception, parsedOutput.body); -}; -var de_ExpiredTokenExceptionRes = async (parsedOutput, context) => { - const contents = map({}); - const data = parsedOutput.body; - const doc = take(data, { - error: __expectString, - error_description: __expectString, - }); - Object.assign(contents, doc); - const exception = new ExpiredTokenException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return __decorateServiceException(exception, parsedOutput.body); -}; -var de_InternalServerExceptionRes = async (parsedOutput, context) => { - const contents = map({}); - const data = parsedOutput.body; - const doc = take(data, { - error: __expectString, - error_description: __expectString, - }); - Object.assign(contents, doc); - const exception = new InternalServerException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return __decorateServiceException(exception, parsedOutput.body); -}; -var de_InvalidClientExceptionRes = async (parsedOutput, context) => { - const contents = map({}); - const data = parsedOutput.body; - const doc = take(data, { - error: __expectString, - error_description: __expectString, - }); - Object.assign(contents, doc); - const exception = new InvalidClientException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return __decorateServiceException(exception, parsedOutput.body); -}; -var de_InvalidClientMetadataExceptionRes = async (parsedOutput, context) => { - const contents = map({}); - const data = parsedOutput.body; - const doc = take(data, { - error: __expectString, - error_description: __expectString, - }); - Object.assign(contents, doc); - const exception = new InvalidClientMetadataException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return __decorateServiceException(exception, parsedOutput.body); -}; -var de_InvalidGrantExceptionRes = async (parsedOutput, context) => { - const contents = map({}); - const data = parsedOutput.body; - const doc = take(data, { - error: __expectString, - error_description: __expectString, - }); - Object.assign(contents, doc); - const exception = new InvalidGrantException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return __decorateServiceException(exception, parsedOutput.body); -}; -var de_InvalidRequestExceptionRes = async (parsedOutput, context) => { - const contents = map({}); - const data = parsedOutput.body; - const doc = take(data, { - error: __expectString, - error_description: __expectString, - }); - Object.assign(contents, doc); - const exception = new InvalidRequestException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return __decorateServiceException(exception, parsedOutput.body); -}; -var de_InvalidScopeExceptionRes = async (parsedOutput, context) => { - const contents = map({}); - const data = parsedOutput.body; - const doc = take(data, { - error: __expectString, - error_description: __expectString, - }); - Object.assign(contents, doc); - const exception = new InvalidScopeException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return __decorateServiceException(exception, parsedOutput.body); -}; -var de_SlowDownExceptionRes = async (parsedOutput, context) => { - const contents = map({}); - const data = parsedOutput.body; - const doc = take(data, { - error: __expectString, - error_description: __expectString, - }); - Object.assign(contents, doc); - const exception = new SlowDownException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return __decorateServiceException(exception, parsedOutput.body); -}; -var de_UnauthorizedClientExceptionRes = async (parsedOutput, context) => { - const contents = map({}); - const data = parsedOutput.body; - const doc = take(data, { - error: __expectString, - error_description: __expectString, - }); - Object.assign(contents, doc); - const exception = new UnauthorizedClientException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return __decorateServiceException(exception, parsedOutput.body); -}; -var de_UnsupportedGrantTypeExceptionRes = async (parsedOutput, context) => { - const contents = map({}); - const data = parsedOutput.body; - const doc = take(data, { - error: __expectString, - error_description: __expectString, - }); - Object.assign(contents, doc); - const exception = new UnsupportedGrantTypeException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return __decorateServiceException(exception, parsedOutput.body); -}; -var deserializeMetadata = (output) => ({ - httpStatusCode: output.statusCode, - requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"], - extendedRequestId: output.headers["x-amz-id-2"], - cfId: output.headers["x-amz-cf-id"], -}); -var collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body)); -var parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => { - if (encoded.length) { - return JSON.parse(encoded); - } - return {}; -}); -var parseErrorBody = async (errorBody, context) => { - const value = await parseBody(errorBody, context); - value.message = value.message ?? value.Message; - return value; -}; -var loadRestJsonErrorCode = (output, data) => { - const findKey = (object, key) => Object.keys(object).find((k2) => k2.toLowerCase() === key.toLowerCase()); - const sanitizeErrorCode = (rawValue) => { - let cleanValue = rawValue; - if (typeof cleanValue === "number") { - cleanValue = cleanValue.toString(); - } - if (cleanValue.indexOf(",") >= 0) { - cleanValue = cleanValue.split(",")[0]; - } - if (cleanValue.indexOf(":") >= 0) { - cleanValue = cleanValue.split(":")[0]; - } - if (cleanValue.indexOf("#") >= 0) { - cleanValue = cleanValue.split("#")[1]; - } - return cleanValue; - }; - const headerKey = findKey(output.headers, "x-amzn-errortype"); - if (headerKey !== void 0) { - return sanitizeErrorCode(output.headers[headerKey]); - } - if (data.code !== void 0) { - return sanitizeErrorCode(data.code); - } - if (data["__type"] !== void 0) { - return sanitizeErrorCode(data["__type"]); - } -}; -var CreateTokenCommand = class _CreateTokenCommand extends $Command { - constructor(input) { - super(); - this.input = input; - } - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, _CreateTokenCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSOOIDCClient"; - const commandName = "CreateTokenCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AWSSSOOIDCService", - operation: "CreateToken", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_CreateTokenCommand(input, context); - } - deserialize(output, context) { - return de_CreateTokenCommand(output, context); - } -}; -import { getEndpointPlugin as getEndpointPlugin2 } from "@smithy/middleware-endpoint"; -import { getSerdePlugin as getSerdePlugin2 } from "@smithy/middleware-serde"; -import { Command as $Command2 } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY as SMITHY_CONTEXT_KEY2 } from "@smithy/types"; -var RegisterClientCommand = class _RegisterClientCommand extends $Command2 { - constructor(input) { - super(); - this.input = input; - } - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin2(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin2(configuration, _RegisterClientCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSOOIDCClient"; - const commandName = "RegisterClientCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY2]: { - service: "AWSSSOOIDCService", - operation: "RegisterClient", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_RegisterClientCommand(input, context); - } - deserialize(output, context) { - return de_RegisterClientCommand(output, context); - } -}; -import { getEndpointPlugin as getEndpointPlugin3 } from "@smithy/middleware-endpoint"; -import { getSerdePlugin as getSerdePlugin3 } from "@smithy/middleware-serde"; -import { Command as $Command3 } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY as SMITHY_CONTEXT_KEY3 } from "@smithy/types"; -var StartDeviceAuthorizationCommand = class _StartDeviceAuthorizationCommand extends $Command3 { - constructor(input) { - super(); - this.input = input; - } - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin3(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin3(configuration, _StartDeviceAuthorizationCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSOOIDCClient"; - const commandName = "StartDeviceAuthorizationCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY3]: { - service: "AWSSSOOIDCService", - operation: "StartDeviceAuthorization", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_StartDeviceAuthorizationCommand(input, context); - } - deserialize(output, context) { - return de_StartDeviceAuthorizationCommand(output, context); - } -}; -var commands = { - CreateTokenCommand, - RegisterClientCommand, - StartDeviceAuthorizationCommand, -}; -var SSOOIDC = class extends SSOOIDCClient { -}; -createAggregatedClient(commands, SSOOIDC); -export { AccessDeniedException, AuthorizationPendingException, CreateTokenCommand, ExpiredTokenException, InternalServerException, InvalidClientException, InvalidRequestException, InvalidScopeException, SSOOIDCClient, SlowDownException, UnauthorizedClientException, UnsupportedGrantTypeException, }; diff --git a/node_modules/@aws-sdk/token-providers/dist-es/bundle/client-sso-oidc-node.js b/node_modules/@aws-sdk/token-providers/dist-es/bundle/client-sso-oidc-node.js deleted file mode 100644 index 9b20c903..00000000 --- a/node_modules/@aws-sdk/token-providers/dist-es/bundle/client-sso-oidc-node.js +++ /dev/null @@ -1,1017 +0,0 @@ -import { getHostHeaderPlugin, resolveHostHeaderConfig } from "@aws-sdk/middleware-host-header"; -import { getLoggerPlugin } from "@aws-sdk/middleware-logger"; -import { getRecursionDetectionPlugin } from "@aws-sdk/middleware-recursion-detection"; -import { getUserAgentPlugin, resolveUserAgentConfig } from "@aws-sdk/middleware-user-agent"; -import { resolveRegionConfig } from "@smithy/config-resolver"; -import { getContentLengthPlugin } from "@smithy/middleware-content-length"; -import { resolveEndpointConfig } from "@smithy/middleware-endpoint"; -import { getRetryPlugin, resolveRetryConfig } from "@smithy/middleware-retry"; -import { Client as __Client } from "@smithy/smithy-client"; -var resolveClientEndpointParameters = (options) => { - return { - ...options, - useDualstackEndpoint: options.useDualstackEndpoint ?? false, - useFipsEndpoint: options.useFipsEndpoint ?? false, - defaultSigningName: "awsssooidc", - }; -}; -var package_default = { version: "3.429.0" }; -import { defaultUserAgent } from "@aws-sdk/util-user-agent-node"; -import { NODE_REGION_CONFIG_FILE_OPTIONS, NODE_REGION_CONFIG_OPTIONS, NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS, NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS, } from "@smithy/config-resolver"; -import { Hash } from "@smithy/hash-node"; -import { NODE_MAX_ATTEMPT_CONFIG_OPTIONS, NODE_RETRY_MODE_CONFIG_OPTIONS } from "@smithy/middleware-retry"; -import { loadConfig as loadNodeConfig } from "@smithy/node-config-provider"; -import { NodeHttpHandler as RequestHandler, streamCollector } from "@smithy/node-http-handler"; -import { calculateBodyLength } from "@smithy/util-body-length-node"; -import { DEFAULT_RETRY_MODE } from "@smithy/util-retry"; -import { NoOpLogger } from "@smithy/smithy-client"; -import { parseUrl } from "@smithy/url-parser"; -import { fromBase64, toBase64 } from "@smithy/util-base64"; -import { fromUtf8, toUtf8 } from "@smithy/util-utf8"; -import { resolveEndpoint } from "@smithy/util-endpoints"; -var s = "required"; -var t = "fn"; -var u = "argv"; -var v = "ref"; -var a = "isSet"; -var b = "tree"; -var c = "error"; -var d = "endpoint"; -var e = "PartitionResult"; -var f = "getAttr"; -var g = { [s]: false, type: "String" }; -var h = { [s]: true, default: false, type: "Boolean" }; -var i = { [v]: "Endpoint" }; -var j = { [t]: "booleanEquals", [u]: [{ [v]: "UseFIPS" }, true] }; -var k = { [t]: "booleanEquals", [u]: [{ [v]: "UseDualStack" }, true] }; -var l = {}; -var m = { [t]: "booleanEquals", [u]: [true, { [t]: f, [u]: [{ [v]: e }, "supportsFIPS"] }] }; -var n = { [v]: e }; -var o = { [t]: "booleanEquals", [u]: [true, { [t]: f, [u]: [n, "supportsDualStack"] }] }; -var p = [j]; -var q = [k]; -var r = [{ [v]: "Region" }]; -var _data = { - version: "1.0", - parameters: { Region: g, UseDualStack: h, UseFIPS: h, Endpoint: g }, - rules: [ - { - conditions: [{ [t]: a, [u]: [i] }], - type: b, - rules: [ - { conditions: p, error: "Invalid Configuration: FIPS and custom endpoint are not supported", type: c }, - { conditions: q, error: "Invalid Configuration: Dualstack and custom endpoint are not supported", type: c }, - { endpoint: { url: i, properties: l, headers: l }, type: d }, - ], - }, - { - conditions: [{ [t]: a, [u]: r }], - type: b, - rules: [ - { - conditions: [{ [t]: "aws.partition", [u]: r, assign: e }], - type: b, - rules: [ - { - conditions: [j, k], - type: b, - rules: [ - { - conditions: [m, o], - type: b, - rules: [ - { - endpoint: { - url: "https://oidc-fips.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: l, - headers: l, - }, - type: d, - }, - ], - }, - { error: "FIPS and DualStack are enabled, but this partition does not support one or both", type: c }, - ], - }, - { - conditions: p, - type: b, - rules: [ - { - conditions: [m], - type: b, - rules: [ - { - conditions: [{ [t]: "stringEquals", [u]: ["aws-us-gov", { [t]: f, [u]: [n, "name"] }] }], - endpoint: { url: "https://oidc.{Region}.amazonaws.com", properties: l, headers: l }, - type: d, - }, - { - endpoint: { - url: "https://oidc-fips.{Region}.{PartitionResult#dnsSuffix}", - properties: l, - headers: l, - }, - type: d, - }, - ], - }, - { error: "FIPS is enabled but this partition does not support FIPS", type: c }, - ], - }, - { - conditions: q, - type: b, - rules: [ - { - conditions: [o], - type: b, - rules: [ - { - endpoint: { - url: "https://oidc.{Region}.{PartitionResult#dualStackDnsSuffix}", - properties: l, - headers: l, - }, - type: d, - }, - ], - }, - { error: "DualStack is enabled but this partition does not support DualStack", type: c }, - ], - }, - { - endpoint: { url: "https://oidc.{Region}.{PartitionResult#dnsSuffix}", properties: l, headers: l }, - type: d, - }, - ], - }, - ], - }, - { error: "Invalid Configuration: Missing Region", type: c }, - ], -}; -var ruleSet = _data; -var defaultEndpointResolver = (endpointParams, context = {}) => { - return resolveEndpoint(ruleSet, { - endpointParams, - logger: context.logger, - }); -}; -var getRuntimeConfig = (config) => ({ - apiVersion: "2019-06-10", - base64Decoder: config?.base64Decoder ?? fromBase64, - base64Encoder: config?.base64Encoder ?? toBase64, - disableHostPrefix: config?.disableHostPrefix ?? false, - endpointProvider: config?.endpointProvider ?? defaultEndpointResolver, - extensions: config?.extensions ?? [], - logger: config?.logger ?? new NoOpLogger(), - serviceId: config?.serviceId ?? "SSO OIDC", - urlParser: config?.urlParser ?? parseUrl, - utf8Decoder: config?.utf8Decoder ?? fromUtf8, - utf8Encoder: config?.utf8Encoder ?? toUtf8, -}); -import { loadConfigsForDefaultMode } from "@smithy/smithy-client"; -import { resolveDefaultsModeConfig } from "@smithy/util-defaults-mode-node"; -import { emitWarningIfUnsupportedVersion } from "@smithy/smithy-client"; -var getRuntimeConfig2 = (config) => { - emitWarningIfUnsupportedVersion(process.version); - const defaultsMode = resolveDefaultsModeConfig(config); - const defaultConfigProvider = () => defaultsMode().then(loadConfigsForDefaultMode); - const clientSharedValues = getRuntimeConfig(config); - return { - ...clientSharedValues, - ...config, - runtime: "node", - defaultsMode, - bodyLengthChecker: config?.bodyLengthChecker ?? calculateBodyLength, - defaultUserAgentProvider: config?.defaultUserAgentProvider ?? - defaultUserAgent({ serviceId: clientSharedValues.serviceId, clientVersion: package_default.version }), - maxAttempts: config?.maxAttempts ?? loadNodeConfig(NODE_MAX_ATTEMPT_CONFIG_OPTIONS), - region: config?.region ?? loadNodeConfig(NODE_REGION_CONFIG_OPTIONS, NODE_REGION_CONFIG_FILE_OPTIONS), - requestHandler: config?.requestHandler ?? new RequestHandler(defaultConfigProvider), - retryMode: config?.retryMode ?? - loadNodeConfig({ - ...NODE_RETRY_MODE_CONFIG_OPTIONS, - default: async () => (await defaultConfigProvider()).retryMode || DEFAULT_RETRY_MODE, - }), - sha256: config?.sha256 ?? Hash.bind(null, "sha256"), - streamCollector: config?.streamCollector ?? streamCollector, - useDualstackEndpoint: config?.useDualstackEndpoint ?? loadNodeConfig(NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS), - useFipsEndpoint: config?.useFipsEndpoint ?? loadNodeConfig(NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS), - }; -}; -import { getAwsRegionExtensionConfiguration, resolveAwsRegionExtensionConfiguration, } from "@aws-sdk/region-config-resolver"; -import { getHttpHandlerExtensionConfiguration, resolveHttpHandlerRuntimeConfig } from "@smithy/protocol-http"; -import { getDefaultExtensionConfiguration, resolveDefaultRuntimeConfig } from "@smithy/smithy-client"; -var asPartial = (t2) => t2; -var resolveRuntimeExtensions = (runtimeConfig, extensions) => { - const extensionConfiguration = { - ...asPartial(getAwsRegionExtensionConfiguration(runtimeConfig)), - ...asPartial(getDefaultExtensionConfiguration(runtimeConfig)), - ...asPartial(getHttpHandlerExtensionConfiguration(runtimeConfig)), - }; - extensions.forEach((extension) => extension.configure(extensionConfiguration)); - return { - ...runtimeConfig, - ...resolveAwsRegionExtensionConfiguration(extensionConfiguration), - ...resolveDefaultRuntimeConfig(extensionConfiguration), - ...resolveHttpHandlerRuntimeConfig(extensionConfiguration), - }; -}; -var SSOOIDCClient = class extends __Client { - constructor(...[configuration]) { - const _config_0 = getRuntimeConfig2(configuration || {}); - const _config_1 = resolveClientEndpointParameters(_config_0); - const _config_2 = resolveRegionConfig(_config_1); - const _config_3 = resolveEndpointConfig(_config_2); - const _config_4 = resolveRetryConfig(_config_3); - const _config_5 = resolveHostHeaderConfig(_config_4); - const _config_6 = resolveUserAgentConfig(_config_5); - const _config_7 = resolveRuntimeExtensions(_config_6, configuration?.extensions || []); - super(_config_7); - this.config = _config_7; - this.middlewareStack.use(getRetryPlugin(this.config)); - this.middlewareStack.use(getContentLengthPlugin(this.config)); - this.middlewareStack.use(getHostHeaderPlugin(this.config)); - this.middlewareStack.use(getLoggerPlugin(this.config)); - this.middlewareStack.use(getRecursionDetectionPlugin(this.config)); - this.middlewareStack.use(getUserAgentPlugin(this.config)); - } - destroy() { - super.destroy(); - } -}; -import { createAggregatedClient } from "@smithy/smithy-client"; -import { getEndpointPlugin } from "@smithy/middleware-endpoint"; -import { getSerdePlugin } from "@smithy/middleware-serde"; -import { Command as $Command } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY } from "@smithy/types"; -import { HttpRequest as __HttpRequest } from "@smithy/protocol-http"; -import { _json, collectBody, decorateServiceException as __decorateServiceException, expectInt32 as __expectInt32, expectLong as __expectLong, expectNonNull as __expectNonNull, expectObject as __expectObject, expectString as __expectString, map, take, withBaseException, } from "@smithy/smithy-client"; -import { ServiceException as __ServiceException, } from "@smithy/smithy-client"; -var SSOOIDCServiceException = class _SSOOIDCServiceException extends __ServiceException { - constructor(options) { - super(options); - Object.setPrototypeOf(this, _SSOOIDCServiceException.prototype); - } -}; -var AccessDeniedException = class _AccessDeniedException extends SSOOIDCServiceException { - constructor(opts) { - super({ - name: "AccessDeniedException", - $fault: "client", - ...opts, - }); - this.name = "AccessDeniedException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _AccessDeniedException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; -var AuthorizationPendingException = class _AuthorizationPendingException extends SSOOIDCServiceException { - constructor(opts) { - super({ - name: "AuthorizationPendingException", - $fault: "client", - ...opts, - }); - this.name = "AuthorizationPendingException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _AuthorizationPendingException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; -var ExpiredTokenException = class _ExpiredTokenException extends SSOOIDCServiceException { - constructor(opts) { - super({ - name: "ExpiredTokenException", - $fault: "client", - ...opts, - }); - this.name = "ExpiredTokenException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _ExpiredTokenException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; -var InternalServerException = class _InternalServerException extends SSOOIDCServiceException { - constructor(opts) { - super({ - name: "InternalServerException", - $fault: "server", - ...opts, - }); - this.name = "InternalServerException"; - this.$fault = "server"; - Object.setPrototypeOf(this, _InternalServerException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; -var InvalidClientException = class _InvalidClientException extends SSOOIDCServiceException { - constructor(opts) { - super({ - name: "InvalidClientException", - $fault: "client", - ...opts, - }); - this.name = "InvalidClientException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _InvalidClientException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; -var InvalidGrantException = class _InvalidGrantException extends SSOOIDCServiceException { - constructor(opts) { - super({ - name: "InvalidGrantException", - $fault: "client", - ...opts, - }); - this.name = "InvalidGrantException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _InvalidGrantException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; -var InvalidRequestException = class _InvalidRequestException extends SSOOIDCServiceException { - constructor(opts) { - super({ - name: "InvalidRequestException", - $fault: "client", - ...opts, - }); - this.name = "InvalidRequestException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _InvalidRequestException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; -var InvalidScopeException = class _InvalidScopeException extends SSOOIDCServiceException { - constructor(opts) { - super({ - name: "InvalidScopeException", - $fault: "client", - ...opts, - }); - this.name = "InvalidScopeException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _InvalidScopeException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; -var SlowDownException = class _SlowDownException extends SSOOIDCServiceException { - constructor(opts) { - super({ - name: "SlowDownException", - $fault: "client", - ...opts, - }); - this.name = "SlowDownException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _SlowDownException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; -var UnauthorizedClientException = class _UnauthorizedClientException extends SSOOIDCServiceException { - constructor(opts) { - super({ - name: "UnauthorizedClientException", - $fault: "client", - ...opts, - }); - this.name = "UnauthorizedClientException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _UnauthorizedClientException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; -var UnsupportedGrantTypeException = class _UnsupportedGrantTypeException extends SSOOIDCServiceException { - constructor(opts) { - super({ - name: "UnsupportedGrantTypeException", - $fault: "client", - ...opts, - }); - this.name = "UnsupportedGrantTypeException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _UnsupportedGrantTypeException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; -var InvalidClientMetadataException = class _InvalidClientMetadataException extends SSOOIDCServiceException { - constructor(opts) { - super({ - name: "InvalidClientMetadataException", - $fault: "client", - ...opts, - }); - this.name = "InvalidClientMetadataException"; - this.$fault = "client"; - Object.setPrototypeOf(this, _InvalidClientMetadataException.prototype); - this.error = opts.error; - this.error_description = opts.error_description; - } -}; -var se_CreateTokenCommand = async (input, context) => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); - const headers = { - "content-type": "application/json", - }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}/token`; - let body; - body = JSON.stringify(take(input, { - clientId: [], - clientSecret: [], - code: [], - deviceCode: [], - grantType: [], - redirectUri: [], - refreshToken: [], - scope: (_) => _json(_), - })); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); -}; -var se_RegisterClientCommand = async (input, context) => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); - const headers = { - "content-type": "application/json", - }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}/client/register`; - let body; - body = JSON.stringify(take(input, { - clientName: [], - clientType: [], - scopes: (_) => _json(_), - })); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); -}; -var se_StartDeviceAuthorizationCommand = async (input, context) => { - const { hostname, protocol = "https", port, path: basePath } = await context.endpoint(); - const headers = { - "content-type": "application/json", - }; - const resolvedPath = `${basePath?.endsWith("/") ? basePath.slice(0, -1) : basePath || ""}/device_authorization`; - let body; - body = JSON.stringify(take(input, { - clientId: [], - clientSecret: [], - startUrl: [], - })); - return new __HttpRequest({ - protocol, - hostname, - port, - method: "POST", - headers, - path: resolvedPath, - body, - }); -}; -var de_CreateTokenCommand = async (output, context) => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_CreateTokenCommandError(output, context); - } - const contents = map({ - $metadata: deserializeMetadata(output), - }); - const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - const doc = take(data, { - accessToken: __expectString, - expiresIn: __expectInt32, - idToken: __expectString, - refreshToken: __expectString, - tokenType: __expectString, - }); - Object.assign(contents, doc); - return contents; -}; -var de_CreateTokenCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "AccessDeniedException": - case "com.amazonaws.ssooidc#AccessDeniedException": - throw await de_AccessDeniedExceptionRes(parsedOutput, context); - case "AuthorizationPendingException": - case "com.amazonaws.ssooidc#AuthorizationPendingException": - throw await de_AuthorizationPendingExceptionRes(parsedOutput, context); - case "ExpiredTokenException": - case "com.amazonaws.ssooidc#ExpiredTokenException": - throw await de_ExpiredTokenExceptionRes(parsedOutput, context); - case "InternalServerException": - case "com.amazonaws.ssooidc#InternalServerException": - throw await de_InternalServerExceptionRes(parsedOutput, context); - case "InvalidClientException": - case "com.amazonaws.ssooidc#InvalidClientException": - throw await de_InvalidClientExceptionRes(parsedOutput, context); - case "InvalidGrantException": - case "com.amazonaws.ssooidc#InvalidGrantException": - throw await de_InvalidGrantExceptionRes(parsedOutput, context); - case "InvalidRequestException": - case "com.amazonaws.ssooidc#InvalidRequestException": - throw await de_InvalidRequestExceptionRes(parsedOutput, context); - case "InvalidScopeException": - case "com.amazonaws.ssooidc#InvalidScopeException": - throw await de_InvalidScopeExceptionRes(parsedOutput, context); - case "SlowDownException": - case "com.amazonaws.ssooidc#SlowDownException": - throw await de_SlowDownExceptionRes(parsedOutput, context); - case "UnauthorizedClientException": - case "com.amazonaws.ssooidc#UnauthorizedClientException": - throw await de_UnauthorizedClientExceptionRes(parsedOutput, context); - case "UnsupportedGrantTypeException": - case "com.amazonaws.ssooidc#UnsupportedGrantTypeException": - throw await de_UnsupportedGrantTypeExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -var de_RegisterClientCommand = async (output, context) => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_RegisterClientCommandError(output, context); - } - const contents = map({ - $metadata: deserializeMetadata(output), - }); - const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - const doc = take(data, { - authorizationEndpoint: __expectString, - clientId: __expectString, - clientIdIssuedAt: __expectLong, - clientSecret: __expectString, - clientSecretExpiresAt: __expectLong, - tokenEndpoint: __expectString, - }); - Object.assign(contents, doc); - return contents; -}; -var de_RegisterClientCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerException": - case "com.amazonaws.ssooidc#InternalServerException": - throw await de_InternalServerExceptionRes(parsedOutput, context); - case "InvalidClientMetadataException": - case "com.amazonaws.ssooidc#InvalidClientMetadataException": - throw await de_InvalidClientMetadataExceptionRes(parsedOutput, context); - case "InvalidRequestException": - case "com.amazonaws.ssooidc#InvalidRequestException": - throw await de_InvalidRequestExceptionRes(parsedOutput, context); - case "InvalidScopeException": - case "com.amazonaws.ssooidc#InvalidScopeException": - throw await de_InvalidScopeExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -var de_StartDeviceAuthorizationCommand = async (output, context) => { - if (output.statusCode !== 200 && output.statusCode >= 300) { - return de_StartDeviceAuthorizationCommandError(output, context); - } - const contents = map({ - $metadata: deserializeMetadata(output), - }); - const data = __expectNonNull(__expectObject(await parseBody(output.body, context)), "body"); - const doc = take(data, { - deviceCode: __expectString, - expiresIn: __expectInt32, - interval: __expectInt32, - userCode: __expectString, - verificationUri: __expectString, - verificationUriComplete: __expectString, - }); - Object.assign(contents, doc); - return contents; -}; -var de_StartDeviceAuthorizationCommandError = async (output, context) => { - const parsedOutput = { - ...output, - body: await parseErrorBody(output.body, context), - }; - const errorCode = loadRestJsonErrorCode(output, parsedOutput.body); - switch (errorCode) { - case "InternalServerException": - case "com.amazonaws.ssooidc#InternalServerException": - throw await de_InternalServerExceptionRes(parsedOutput, context); - case "InvalidClientException": - case "com.amazonaws.ssooidc#InvalidClientException": - throw await de_InvalidClientExceptionRes(parsedOutput, context); - case "InvalidRequestException": - case "com.amazonaws.ssooidc#InvalidRequestException": - throw await de_InvalidRequestExceptionRes(parsedOutput, context); - case "SlowDownException": - case "com.amazonaws.ssooidc#SlowDownException": - throw await de_SlowDownExceptionRes(parsedOutput, context); - case "UnauthorizedClientException": - case "com.amazonaws.ssooidc#UnauthorizedClientException": - throw await de_UnauthorizedClientExceptionRes(parsedOutput, context); - default: - const parsedBody = parsedOutput.body; - return throwDefaultError({ - output, - parsedBody, - errorCode, - }); - } -}; -var throwDefaultError = withBaseException(SSOOIDCServiceException); -var de_AccessDeniedExceptionRes = async (parsedOutput, context) => { - const contents = map({}); - const data = parsedOutput.body; - const doc = take(data, { - error: __expectString, - error_description: __expectString, - }); - Object.assign(contents, doc); - const exception = new AccessDeniedException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return __decorateServiceException(exception, parsedOutput.body); -}; -var de_AuthorizationPendingExceptionRes = async (parsedOutput, context) => { - const contents = map({}); - const data = parsedOutput.body; - const doc = take(data, { - error: __expectString, - error_description: __expectString, - }); - Object.assign(contents, doc); - const exception = new AuthorizationPendingException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return __decorateServiceException(exception, parsedOutput.body); -}; -var de_ExpiredTokenExceptionRes = async (parsedOutput, context) => { - const contents = map({}); - const data = parsedOutput.body; - const doc = take(data, { - error: __expectString, - error_description: __expectString, - }); - Object.assign(contents, doc); - const exception = new ExpiredTokenException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return __decorateServiceException(exception, parsedOutput.body); -}; -var de_InternalServerExceptionRes = async (parsedOutput, context) => { - const contents = map({}); - const data = parsedOutput.body; - const doc = take(data, { - error: __expectString, - error_description: __expectString, - }); - Object.assign(contents, doc); - const exception = new InternalServerException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return __decorateServiceException(exception, parsedOutput.body); -}; -var de_InvalidClientExceptionRes = async (parsedOutput, context) => { - const contents = map({}); - const data = parsedOutput.body; - const doc = take(data, { - error: __expectString, - error_description: __expectString, - }); - Object.assign(contents, doc); - const exception = new InvalidClientException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return __decorateServiceException(exception, parsedOutput.body); -}; -var de_InvalidClientMetadataExceptionRes = async (parsedOutput, context) => { - const contents = map({}); - const data = parsedOutput.body; - const doc = take(data, { - error: __expectString, - error_description: __expectString, - }); - Object.assign(contents, doc); - const exception = new InvalidClientMetadataException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return __decorateServiceException(exception, parsedOutput.body); -}; -var de_InvalidGrantExceptionRes = async (parsedOutput, context) => { - const contents = map({}); - const data = parsedOutput.body; - const doc = take(data, { - error: __expectString, - error_description: __expectString, - }); - Object.assign(contents, doc); - const exception = new InvalidGrantException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return __decorateServiceException(exception, parsedOutput.body); -}; -var de_InvalidRequestExceptionRes = async (parsedOutput, context) => { - const contents = map({}); - const data = parsedOutput.body; - const doc = take(data, { - error: __expectString, - error_description: __expectString, - }); - Object.assign(contents, doc); - const exception = new InvalidRequestException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return __decorateServiceException(exception, parsedOutput.body); -}; -var de_InvalidScopeExceptionRes = async (parsedOutput, context) => { - const contents = map({}); - const data = parsedOutput.body; - const doc = take(data, { - error: __expectString, - error_description: __expectString, - }); - Object.assign(contents, doc); - const exception = new InvalidScopeException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return __decorateServiceException(exception, parsedOutput.body); -}; -var de_SlowDownExceptionRes = async (parsedOutput, context) => { - const contents = map({}); - const data = parsedOutput.body; - const doc = take(data, { - error: __expectString, - error_description: __expectString, - }); - Object.assign(contents, doc); - const exception = new SlowDownException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return __decorateServiceException(exception, parsedOutput.body); -}; -var de_UnauthorizedClientExceptionRes = async (parsedOutput, context) => { - const contents = map({}); - const data = parsedOutput.body; - const doc = take(data, { - error: __expectString, - error_description: __expectString, - }); - Object.assign(contents, doc); - const exception = new UnauthorizedClientException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return __decorateServiceException(exception, parsedOutput.body); -}; -var de_UnsupportedGrantTypeExceptionRes = async (parsedOutput, context) => { - const contents = map({}); - const data = parsedOutput.body; - const doc = take(data, { - error: __expectString, - error_description: __expectString, - }); - Object.assign(contents, doc); - const exception = new UnsupportedGrantTypeException({ - $metadata: deserializeMetadata(parsedOutput), - ...contents, - }); - return __decorateServiceException(exception, parsedOutput.body); -}; -var deserializeMetadata = (output) => ({ - httpStatusCode: output.statusCode, - requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"], - extendedRequestId: output.headers["x-amz-id-2"], - cfId: output.headers["x-amz-cf-id"], -}); -var collectBodyString = (streamBody, context) => collectBody(streamBody, context).then((body) => context.utf8Encoder(body)); -var parseBody = (streamBody, context) => collectBodyString(streamBody, context).then((encoded) => { - if (encoded.length) { - return JSON.parse(encoded); - } - return {}; -}); -var parseErrorBody = async (errorBody, context) => { - const value = await parseBody(errorBody, context); - value.message = value.message ?? value.Message; - return value; -}; -var loadRestJsonErrorCode = (output, data) => { - const findKey = (object, key) => Object.keys(object).find((k2) => k2.toLowerCase() === key.toLowerCase()); - const sanitizeErrorCode = (rawValue) => { - let cleanValue = rawValue; - if (typeof cleanValue === "number") { - cleanValue = cleanValue.toString(); - } - if (cleanValue.indexOf(",") >= 0) { - cleanValue = cleanValue.split(",")[0]; - } - if (cleanValue.indexOf(":") >= 0) { - cleanValue = cleanValue.split(":")[0]; - } - if (cleanValue.indexOf("#") >= 0) { - cleanValue = cleanValue.split("#")[1]; - } - return cleanValue; - }; - const headerKey = findKey(output.headers, "x-amzn-errortype"); - if (headerKey !== void 0) { - return sanitizeErrorCode(output.headers[headerKey]); - } - if (data.code !== void 0) { - return sanitizeErrorCode(data.code); - } - if (data["__type"] !== void 0) { - return sanitizeErrorCode(data["__type"]); - } -}; -var CreateTokenCommand = class _CreateTokenCommand extends $Command { - constructor(input) { - super(); - this.input = input; - } - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin(configuration, _CreateTokenCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSOOIDCClient"; - const commandName = "CreateTokenCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY]: { - service: "AWSSSOOIDCService", - operation: "CreateToken", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_CreateTokenCommand(input, context); - } - deserialize(output, context) { - return de_CreateTokenCommand(output, context); - } -}; -import { getEndpointPlugin as getEndpointPlugin2 } from "@smithy/middleware-endpoint"; -import { getSerdePlugin as getSerdePlugin2 } from "@smithy/middleware-serde"; -import { Command as $Command2 } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY as SMITHY_CONTEXT_KEY2 } from "@smithy/types"; -var RegisterClientCommand = class _RegisterClientCommand extends $Command2 { - constructor(input) { - super(); - this.input = input; - } - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin2(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin2(configuration, _RegisterClientCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSOOIDCClient"; - const commandName = "RegisterClientCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY2]: { - service: "AWSSSOOIDCService", - operation: "RegisterClient", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_RegisterClientCommand(input, context); - } - deserialize(output, context) { - return de_RegisterClientCommand(output, context); - } -}; -import { getEndpointPlugin as getEndpointPlugin3 } from "@smithy/middleware-endpoint"; -import { getSerdePlugin as getSerdePlugin3 } from "@smithy/middleware-serde"; -import { Command as $Command3 } from "@smithy/smithy-client"; -import { SMITHY_CONTEXT_KEY as SMITHY_CONTEXT_KEY3 } from "@smithy/types"; -var StartDeviceAuthorizationCommand = class _StartDeviceAuthorizationCommand extends $Command3 { - constructor(input) { - super(); - this.input = input; - } - static getEndpointParameterInstructions() { - return { - UseFIPS: { type: "builtInParams", name: "useFipsEndpoint" }, - Endpoint: { type: "builtInParams", name: "endpoint" }, - Region: { type: "builtInParams", name: "region" }, - UseDualStack: { type: "builtInParams", name: "useDualstackEndpoint" }, - }; - } - resolveMiddleware(clientStack, configuration, options) { - this.middlewareStack.use(getSerdePlugin3(configuration, this.serialize, this.deserialize)); - this.middlewareStack.use(getEndpointPlugin3(configuration, _StartDeviceAuthorizationCommand.getEndpointParameterInstructions())); - const stack = clientStack.concat(this.middlewareStack); - const { logger } = configuration; - const clientName = "SSOOIDCClient"; - const commandName = "StartDeviceAuthorizationCommand"; - const handlerExecutionContext = { - logger, - clientName, - commandName, - inputFilterSensitiveLog: (_) => _, - outputFilterSensitiveLog: (_) => _, - [SMITHY_CONTEXT_KEY3]: { - service: "AWSSSOOIDCService", - operation: "StartDeviceAuthorization", - }, - }; - const { requestHandler } = configuration; - return stack.resolve((request) => requestHandler.handle(request.request, options || {}), handlerExecutionContext); - } - serialize(input, context) { - return se_StartDeviceAuthorizationCommand(input, context); - } - deserialize(output, context) { - return de_StartDeviceAuthorizationCommand(output, context); - } -}; -var commands = { - CreateTokenCommand, - RegisterClientCommand, - StartDeviceAuthorizationCommand, -}; -var SSOOIDC = class extends SSOOIDCClient { -}; -createAggregatedClient(commands, SSOOIDC); -export { AccessDeniedException, AuthorizationPendingException, CreateTokenCommand, ExpiredTokenException, InternalServerException, InvalidClientException, InvalidRequestException, InvalidScopeException, SSOOIDCClient, SlowDownException, UnauthorizedClientException, UnsupportedGrantTypeException, }; diff --git a/node_modules/@aws-sdk/token-providers/dist-es/constants.js b/node_modules/@aws-sdk/token-providers/dist-es/constants.js deleted file mode 100644 index b84a1267..00000000 --- a/node_modules/@aws-sdk/token-providers/dist-es/constants.js +++ /dev/null @@ -1,2 +0,0 @@ -export const EXPIRE_WINDOW_MS = 5 * 60 * 1000; -export const REFRESH_MESSAGE = `To refresh this SSO session run 'aws sso login' with the corresponding profile.`; diff --git a/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js b/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js deleted file mode 100644 index 5d73f523..00000000 --- a/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js +++ /dev/null @@ -1,78 +0,0 @@ -import { TokenProviderError } from "@smithy/property-provider"; -import { getProfileName, getSSOTokenFromFile, loadSsoSessionData, parseKnownFiles, } from "@smithy/shared-ini-file-loader"; -import { EXPIRE_WINDOW_MS, REFRESH_MESSAGE } from "./constants"; -import { getNewSsoOidcToken } from "./getNewSsoOidcToken"; -import { validateTokenExpiry } from "./validateTokenExpiry"; -import { validateTokenKey } from "./validateTokenKey"; -import { writeSSOTokenToFile } from "./writeSSOTokenToFile"; -const lastRefreshAttemptTime = new Date(0); -export const fromSso = (init = {}) => async () => { - const profiles = await parseKnownFiles(init); - const profileName = getProfileName(init); - const profile = profiles[profileName]; - if (!profile) { - throw new TokenProviderError(`Profile '${profileName}' could not be found in shared credentials file.`, false); - } - else if (!profile["sso_session"]) { - throw new TokenProviderError(`Profile '${profileName}' is missing required property 'sso_session'.`); - } - const ssoSessionName = profile["sso_session"]; - const ssoSessions = await loadSsoSessionData(init); - const ssoSession = ssoSessions[ssoSessionName]; - if (!ssoSession) { - throw new TokenProviderError(`Sso session '${ssoSessionName}' could not be found in shared credentials file.`, false); - } - for (const ssoSessionRequiredKey of ["sso_start_url", "sso_region"]) { - if (!ssoSession[ssoSessionRequiredKey]) { - throw new TokenProviderError(`Sso session '${ssoSessionName}' is missing required property '${ssoSessionRequiredKey}'.`, false); - } - } - const ssoStartUrl = ssoSession["sso_start_url"]; - const ssoRegion = ssoSession["sso_region"]; - let ssoToken; - try { - ssoToken = await getSSOTokenFromFile(ssoSessionName); - } - catch (e) { - throw new TokenProviderError(`The SSO session token associated with profile=${profileName} was not found or is invalid. ${REFRESH_MESSAGE}`, false); - } - validateTokenKey("accessToken", ssoToken.accessToken); - validateTokenKey("expiresAt", ssoToken.expiresAt); - const { accessToken, expiresAt } = ssoToken; - const existingToken = { token: accessToken, expiration: new Date(expiresAt) }; - if (existingToken.expiration.getTime() - Date.now() > EXPIRE_WINDOW_MS) { - return existingToken; - } - if (Date.now() - lastRefreshAttemptTime.getTime() < 30 * 1000) { - validateTokenExpiry(existingToken); - return existingToken; - } - validateTokenKey("clientId", ssoToken.clientId, true); - validateTokenKey("clientSecret", ssoToken.clientSecret, true); - validateTokenKey("refreshToken", ssoToken.refreshToken, true); - try { - lastRefreshAttemptTime.setTime(Date.now()); - const newSsoOidcToken = await getNewSsoOidcToken(ssoToken, ssoRegion); - validateTokenKey("accessToken", newSsoOidcToken.accessToken); - validateTokenKey("expiresIn", newSsoOidcToken.expiresIn); - const newTokenExpiration = new Date(Date.now() + newSsoOidcToken.expiresIn * 1000); - try { - await writeSSOTokenToFile(ssoSessionName, { - ...ssoToken, - accessToken: newSsoOidcToken.accessToken, - expiresAt: newTokenExpiration.toISOString(), - refreshToken: newSsoOidcToken.refreshToken, - }); - } - catch (error) { - } - return { - token: newSsoOidcToken.accessToken, - expiration: newTokenExpiration, - }; - } - catch (error) { - validateTokenExpiry(existingToken); - return existingToken; - } -}; diff --git a/node_modules/@aws-sdk/token-providers/dist-es/fromStatic.js b/node_modules/@aws-sdk/token-providers/dist-es/fromStatic.js deleted file mode 100644 index 89c28b25..00000000 --- a/node_modules/@aws-sdk/token-providers/dist-es/fromStatic.js +++ /dev/null @@ -1,7 +0,0 @@ -import { TokenProviderError } from "@smithy/property-provider"; -export const fromStatic = ({ token }) => async () => { - if (!token || !token.token) { - throw new TokenProviderError(`Please pass a valid token to fromStatic`, false); - } - return token; -}; diff --git a/node_modules/@aws-sdk/token-providers/dist-es/getNewSsoOidcToken.js b/node_modules/@aws-sdk/token-providers/dist-es/getNewSsoOidcToken.js deleted file mode 100644 index 2f67a3f4..00000000 --- a/node_modules/@aws-sdk/token-providers/dist-es/getNewSsoOidcToken.js +++ /dev/null @@ -1,11 +0,0 @@ -import { CreateTokenCommand } from "./bundle/client-sso-oidc-node"; -import { getSsoOidcClient } from "./getSsoOidcClient"; -export const getNewSsoOidcToken = (ssoToken, ssoRegion) => { - const ssoOidcClient = getSsoOidcClient(ssoRegion); - return ssoOidcClient.send(new CreateTokenCommand({ - clientId: ssoToken.clientId, - clientSecret: ssoToken.clientSecret, - refreshToken: ssoToken.refreshToken, - grantType: "refresh_token", - })); -}; diff --git a/node_modules/@aws-sdk/token-providers/dist-es/getSsoOidcClient.js b/node_modules/@aws-sdk/token-providers/dist-es/getSsoOidcClient.js deleted file mode 100644 index 4f896e53..00000000 --- a/node_modules/@aws-sdk/token-providers/dist-es/getSsoOidcClient.js +++ /dev/null @@ -1,10 +0,0 @@ -import { SSOOIDCClient } from "./bundle/client-sso-oidc-node"; -const ssoOidcClientsHash = {}; -export const getSsoOidcClient = (ssoRegion) => { - if (ssoOidcClientsHash[ssoRegion]) { - return ssoOidcClientsHash[ssoRegion]; - } - const ssoOidcClient = new SSOOIDCClient({ region: ssoRegion }); - ssoOidcClientsHash[ssoRegion] = ssoOidcClient; - return ssoOidcClient; -}; diff --git a/node_modules/@aws-sdk/token-providers/dist-es/index.js b/node_modules/@aws-sdk/token-providers/dist-es/index.js deleted file mode 100644 index ec5f9a64..00000000 --- a/node_modules/@aws-sdk/token-providers/dist-es/index.js +++ /dev/null @@ -1,4 +0,0 @@ -export * from "./bundle/client-sso-oidc-node"; -export * from "./fromSso"; -export * from "./fromStatic"; -export * from "./nodeProvider"; diff --git a/node_modules/@aws-sdk/token-providers/dist-es/nodeProvider.js b/node_modules/@aws-sdk/token-providers/dist-es/nodeProvider.js deleted file mode 100644 index a0c7b520..00000000 --- a/node_modules/@aws-sdk/token-providers/dist-es/nodeProvider.js +++ /dev/null @@ -1,5 +0,0 @@ -import { chain, memoize, TokenProviderError } from "@smithy/property-provider"; -import { fromSso } from "./fromSso"; -export const nodeProvider = (init = {}) => memoize(chain(fromSso(init), async () => { - throw new TokenProviderError("Could not load token from any providers", false); -}), (token) => token.expiration !== undefined && token.expiration.getTime() - Date.now() < 300000, (token) => token.expiration !== undefined); diff --git a/node_modules/@aws-sdk/token-providers/dist-es/validateTokenExpiry.js b/node_modules/@aws-sdk/token-providers/dist-es/validateTokenExpiry.js deleted file mode 100644 index 8118d7c7..00000000 --- a/node_modules/@aws-sdk/token-providers/dist-es/validateTokenExpiry.js +++ /dev/null @@ -1,7 +0,0 @@ -import { TokenProviderError } from "@smithy/property-provider"; -import { REFRESH_MESSAGE } from "./constants"; -export const validateTokenExpiry = (token) => { - if (token.expiration && token.expiration.getTime() < Date.now()) { - throw new TokenProviderError(`Token is expired. ${REFRESH_MESSAGE}`, false); - } -}; diff --git a/node_modules/@aws-sdk/token-providers/dist-es/validateTokenKey.js b/node_modules/@aws-sdk/token-providers/dist-es/validateTokenKey.js deleted file mode 100644 index 49796380..00000000 --- a/node_modules/@aws-sdk/token-providers/dist-es/validateTokenKey.js +++ /dev/null @@ -1,7 +0,0 @@ -import { TokenProviderError } from "@smithy/property-provider"; -import { REFRESH_MESSAGE } from "./constants"; -export const validateTokenKey = (key, value, forRefresh = false) => { - if (typeof value === "undefined") { - throw new TokenProviderError(`Value not present for '${key}' in SSO Token${forRefresh ? ". Cannot refresh" : ""}. ${REFRESH_MESSAGE}`, false); - } -}; diff --git a/node_modules/@aws-sdk/token-providers/dist-es/writeSSOTokenToFile.js b/node_modules/@aws-sdk/token-providers/dist-es/writeSSOTokenToFile.js deleted file mode 100644 index 6da2c9b5..00000000 --- a/node_modules/@aws-sdk/token-providers/dist-es/writeSSOTokenToFile.js +++ /dev/null @@ -1,8 +0,0 @@ -import { getSSOTokenFilepath } from "@smithy/shared-ini-file-loader"; -import { promises as fsPromises } from "fs"; -const { writeFile } = fsPromises; -export const writeSSOTokenToFile = (id, ssoToken) => { - const tokenFilepath = getSSOTokenFilepath(id); - const tokenString = JSON.stringify(ssoToken, null, 2); - return writeFile(tokenFilepath, tokenString); -}; diff --git a/node_modules/@aws-sdk/token-providers/dist-types/bundle/client-sso-oidc-browser.d.ts b/node_modules/@aws-sdk/token-providers/dist-types/bundle/client-sso-oidc-browser.d.ts deleted file mode 100644 index fd6754b6..00000000 --- a/node_modules/@aws-sdk/token-providers/dist-types/bundle/client-sso-oidc-browser.d.ts +++ /dev/null @@ -1,187 +0,0 @@ -/// -declare var SSOOIDCClient: { - new (__0_0: any): { - /** - * Destroy underlying resources, like sockets. It's usually not necessary to do this. - * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed. - * Otherwise, sockets might stay open for quite a long time before the server terminates them. - */ - destroy(): void; - }; -}; -import { HttpRequest as __HttpRequest } from "@smithy/protocol-http"; -declare var AccessDeniedException: { - new (opts: any): { - readonly $fault: "server" | "client"; - $response?: import("@smithy/types").HttpResponse | undefined; - $retryable?: import("@smithy/types").RetryableTrait | undefined; - $metadata: import("@smithy/types").ResponseMetadata; - name: string; - message: string; - stack?: string | undefined; - }; - captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void; - prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined; - stackTraceLimit: number; -}; -declare var AuthorizationPendingException: { - new (opts: any): { - readonly $fault: "server" | "client"; - $response?: import("@smithy/types").HttpResponse | undefined; - $retryable?: import("@smithy/types").RetryableTrait | undefined; - $metadata: import("@smithy/types").ResponseMetadata; - name: string; - message: string; - stack?: string | undefined; - }; - captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void; - prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined; - stackTraceLimit: number; -}; -declare var ExpiredTokenException: { - new (opts: any): { - readonly $fault: "server" | "client"; - $response?: import("@smithy/types").HttpResponse | undefined; - $retryable?: import("@smithy/types").RetryableTrait | undefined; - $metadata: import("@smithy/types").ResponseMetadata; - name: string; - message: string; - stack?: string | undefined; - }; - captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void; - prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined; - stackTraceLimit: number; -}; -declare var InternalServerException: { - new (opts: any): { - readonly $fault: "server" | "client"; - $response?: import("@smithy/types").HttpResponse | undefined; - $retryable?: import("@smithy/types").RetryableTrait | undefined; - $metadata: import("@smithy/types").ResponseMetadata; - name: string; - message: string; - stack?: string | undefined; - }; - captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void; - prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined; - stackTraceLimit: number; -}; -declare var InvalidClientException: { - new (opts: any): { - readonly $fault: "server" | "client"; - $response?: import("@smithy/types").HttpResponse | undefined; - $retryable?: import("@smithy/types").RetryableTrait | undefined; - $metadata: import("@smithy/types").ResponseMetadata; - name: string; - message: string; - stack?: string | undefined; - }; - captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void; - prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined; - stackTraceLimit: number; -}; -declare var InvalidRequestException: { - new (opts: any): { - readonly $fault: "server" | "client"; - $response?: import("@smithy/types").HttpResponse | undefined; - $retryable?: import("@smithy/types").RetryableTrait | undefined; - $metadata: import("@smithy/types").ResponseMetadata; - name: string; - message: string; - stack?: string | undefined; - }; - captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void; - prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined; - stackTraceLimit: number; -}; -declare var InvalidScopeException: { - new (opts: any): { - readonly $fault: "server" | "client"; - $response?: import("@smithy/types").HttpResponse | undefined; - $retryable?: import("@smithy/types").RetryableTrait | undefined; - $metadata: import("@smithy/types").ResponseMetadata; - name: string; - message: string; - stack?: string | undefined; - }; - captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void; - prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined; - stackTraceLimit: number; -}; -declare var SlowDownException: { - new (opts: any): { - readonly $fault: "server" | "client"; - $response?: import("@smithy/types").HttpResponse | undefined; - $retryable?: import("@smithy/types").RetryableTrait | undefined; - $metadata: import("@smithy/types").ResponseMetadata; - name: string; - message: string; - stack?: string | undefined; - }; - captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void; - prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined; - stackTraceLimit: number; -}; -declare var UnauthorizedClientException: { - new (opts: any): { - readonly $fault: "server" | "client"; - $response?: import("@smithy/types").HttpResponse | undefined; - $retryable?: import("@smithy/types").RetryableTrait | undefined; - $metadata: import("@smithy/types").ResponseMetadata; - name: string; - message: string; - stack?: string | undefined; - }; - captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void; - prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined; - stackTraceLimit: number; -}; -declare var UnsupportedGrantTypeException: { - new (opts: any): { - readonly $fault: "server" | "client"; - $response?: import("@smithy/types").HttpResponse | undefined; - $retryable?: import("@smithy/types").RetryableTrait | undefined; - $metadata: import("@smithy/types").ResponseMetadata; - name: string; - message: string; - stack?: string | undefined; - }; - captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void; - prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined; - stackTraceLimit: number; -}; -declare var CreateTokenCommand: { - new (input: any): { - /** - * @internal - */ - resolveMiddleware(clientStack: any, configuration: any, options: any): any; - /** - * @internal - */ - serialize(input: any, context: any): Promise<__HttpRequest>; - /** - * @internal - */ - deserialize(output: any, context: any): Promise; - }; - getEndpointParameterInstructions(): { - UseFIPS: { - type: string; - name: string; - }; - Endpoint: { - type: string; - name: string; - }; - Region: { - type: string; - name: string; - }; - UseDualStack: { - type: string; - name: string; - }; - }; -}; -export { AccessDeniedException, AuthorizationPendingException, CreateTokenCommand, ExpiredTokenException, InternalServerException, InvalidClientException, InvalidRequestException, InvalidScopeException, SSOOIDCClient, SlowDownException, UnauthorizedClientException, UnsupportedGrantTypeException, }; diff --git a/node_modules/@aws-sdk/token-providers/dist-types/bundle/client-sso-oidc-node.d.ts b/node_modules/@aws-sdk/token-providers/dist-types/bundle/client-sso-oidc-node.d.ts deleted file mode 100644 index fd6754b6..00000000 --- a/node_modules/@aws-sdk/token-providers/dist-types/bundle/client-sso-oidc-node.d.ts +++ /dev/null @@ -1,187 +0,0 @@ -/// -declare var SSOOIDCClient: { - new (__0_0: any): { - /** - * Destroy underlying resources, like sockets. It's usually not necessary to do this. - * However in Node.js, it's best to explicitly shut down the client's agent when it is no longer needed. - * Otherwise, sockets might stay open for quite a long time before the server terminates them. - */ - destroy(): void; - }; -}; -import { HttpRequest as __HttpRequest } from "@smithy/protocol-http"; -declare var AccessDeniedException: { - new (opts: any): { - readonly $fault: "server" | "client"; - $response?: import("@smithy/types").HttpResponse | undefined; - $retryable?: import("@smithy/types").RetryableTrait | undefined; - $metadata: import("@smithy/types").ResponseMetadata; - name: string; - message: string; - stack?: string | undefined; - }; - captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void; - prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined; - stackTraceLimit: number; -}; -declare var AuthorizationPendingException: { - new (opts: any): { - readonly $fault: "server" | "client"; - $response?: import("@smithy/types").HttpResponse | undefined; - $retryable?: import("@smithy/types").RetryableTrait | undefined; - $metadata: import("@smithy/types").ResponseMetadata; - name: string; - message: string; - stack?: string | undefined; - }; - captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void; - prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined; - stackTraceLimit: number; -}; -declare var ExpiredTokenException: { - new (opts: any): { - readonly $fault: "server" | "client"; - $response?: import("@smithy/types").HttpResponse | undefined; - $retryable?: import("@smithy/types").RetryableTrait | undefined; - $metadata: import("@smithy/types").ResponseMetadata; - name: string; - message: string; - stack?: string | undefined; - }; - captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void; - prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined; - stackTraceLimit: number; -}; -declare var InternalServerException: { - new (opts: any): { - readonly $fault: "server" | "client"; - $response?: import("@smithy/types").HttpResponse | undefined; - $retryable?: import("@smithy/types").RetryableTrait | undefined; - $metadata: import("@smithy/types").ResponseMetadata; - name: string; - message: string; - stack?: string | undefined; - }; - captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void; - prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined; - stackTraceLimit: number; -}; -declare var InvalidClientException: { - new (opts: any): { - readonly $fault: "server" | "client"; - $response?: import("@smithy/types").HttpResponse | undefined; - $retryable?: import("@smithy/types").RetryableTrait | undefined; - $metadata: import("@smithy/types").ResponseMetadata; - name: string; - message: string; - stack?: string | undefined; - }; - captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void; - prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined; - stackTraceLimit: number; -}; -declare var InvalidRequestException: { - new (opts: any): { - readonly $fault: "server" | "client"; - $response?: import("@smithy/types").HttpResponse | undefined; - $retryable?: import("@smithy/types").RetryableTrait | undefined; - $metadata: import("@smithy/types").ResponseMetadata; - name: string; - message: string; - stack?: string | undefined; - }; - captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void; - prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined; - stackTraceLimit: number; -}; -declare var InvalidScopeException: { - new (opts: any): { - readonly $fault: "server" | "client"; - $response?: import("@smithy/types").HttpResponse | undefined; - $retryable?: import("@smithy/types").RetryableTrait | undefined; - $metadata: import("@smithy/types").ResponseMetadata; - name: string; - message: string; - stack?: string | undefined; - }; - captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void; - prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined; - stackTraceLimit: number; -}; -declare var SlowDownException: { - new (opts: any): { - readonly $fault: "server" | "client"; - $response?: import("@smithy/types").HttpResponse | undefined; - $retryable?: import("@smithy/types").RetryableTrait | undefined; - $metadata: import("@smithy/types").ResponseMetadata; - name: string; - message: string; - stack?: string | undefined; - }; - captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void; - prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined; - stackTraceLimit: number; -}; -declare var UnauthorizedClientException: { - new (opts: any): { - readonly $fault: "server" | "client"; - $response?: import("@smithy/types").HttpResponse | undefined; - $retryable?: import("@smithy/types").RetryableTrait | undefined; - $metadata: import("@smithy/types").ResponseMetadata; - name: string; - message: string; - stack?: string | undefined; - }; - captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void; - prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined; - stackTraceLimit: number; -}; -declare var UnsupportedGrantTypeException: { - new (opts: any): { - readonly $fault: "server" | "client"; - $response?: import("@smithy/types").HttpResponse | undefined; - $retryable?: import("@smithy/types").RetryableTrait | undefined; - $metadata: import("@smithy/types").ResponseMetadata; - name: string; - message: string; - stack?: string | undefined; - }; - captureStackTrace(targetObject: object, constructorOpt?: Function | undefined): void; - prepareStackTrace?: ((err: Error, stackTraces: NodeJS.CallSite[]) => any) | undefined; - stackTraceLimit: number; -}; -declare var CreateTokenCommand: { - new (input: any): { - /** - * @internal - */ - resolveMiddleware(clientStack: any, configuration: any, options: any): any; - /** - * @internal - */ - serialize(input: any, context: any): Promise<__HttpRequest>; - /** - * @internal - */ - deserialize(output: any, context: any): Promise; - }; - getEndpointParameterInstructions(): { - UseFIPS: { - type: string; - name: string; - }; - Endpoint: { - type: string; - name: string; - }; - Region: { - type: string; - name: string; - }; - UseDualStack: { - type: string; - name: string; - }; - }; -}; -export { AccessDeniedException, AuthorizationPendingException, CreateTokenCommand, ExpiredTokenException, InternalServerException, InvalidClientException, InvalidRequestException, InvalidScopeException, SSOOIDCClient, SlowDownException, UnauthorizedClientException, UnsupportedGrantTypeException, }; diff --git a/node_modules/@aws-sdk/token-providers/dist-types/constants.d.ts b/node_modules/@aws-sdk/token-providers/dist-types/constants.d.ts deleted file mode 100644 index de28cde9..00000000 --- a/node_modules/@aws-sdk/token-providers/dist-types/constants.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * The time window (5 mins) that SDK will treat the SSO token expires in before the defined expiration date in token. - * This is needed because server side may have invalidated the token before the defined expiration date. - * - * @internal - */ -export declare const EXPIRE_WINDOW_MS: number; -export declare const REFRESH_MESSAGE = "To refresh this SSO session run 'aws sso login' with the corresponding profile."; diff --git a/node_modules/@aws-sdk/token-providers/dist-types/fromSso.d.ts b/node_modules/@aws-sdk/token-providers/dist-types/fromSso.d.ts deleted file mode 100644 index 73856028..00000000 --- a/node_modules/@aws-sdk/token-providers/dist-types/fromSso.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { TokenIdentityProvider } from "@aws-sdk/types"; -import { SourceProfileInit } from "@smithy/shared-ini-file-loader"; -export interface FromSsoInit extends SourceProfileInit { -} -/** - * Creates a token provider that will read from SSO token cache or ssoOidc.createToken() call. - */ -export declare const fromSso: (init?: FromSsoInit) => TokenIdentityProvider; diff --git a/node_modules/@aws-sdk/token-providers/dist-types/fromStatic.d.ts b/node_modules/@aws-sdk/token-providers/dist-types/fromStatic.d.ts deleted file mode 100644 index 97967ebd..00000000 --- a/node_modules/@aws-sdk/token-providers/dist-types/fromStatic.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { TokenIdentity, TokenIdentityProvider } from "@aws-sdk/types"; -export interface FromStaticInit { - token?: TokenIdentity; -} -/** - * Creates a token provider that will read from static token. - */ -export declare const fromStatic: ({ token }: FromStaticInit) => TokenIdentityProvider; diff --git a/node_modules/@aws-sdk/token-providers/dist-types/getNewSsoOidcToken.d.ts b/node_modules/@aws-sdk/token-providers/dist-types/getNewSsoOidcToken.d.ts deleted file mode 100644 index 79a15c7b..00000000 --- a/node_modules/@aws-sdk/token-providers/dist-types/getNewSsoOidcToken.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { SSOToken } from "@smithy/shared-ini-file-loader"; -/** - * Returns a new SSO OIDC token from ssoOids.createToken() API call. - */ -export declare const getNewSsoOidcToken: (ssoToken: SSOToken, ssoRegion: string) => any; diff --git a/node_modules/@aws-sdk/token-providers/dist-types/getSsoOidcClient.d.ts b/node_modules/@aws-sdk/token-providers/dist-types/getSsoOidcClient.d.ts deleted file mode 100644 index d542445b..00000000 --- a/node_modules/@aws-sdk/token-providers/dist-types/getSsoOidcClient.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -/** - * Returns a SSOOIDC client for the given region. If the client has already been created, - * it will be returned from the hash. - */ -export declare const getSsoOidcClient: (ssoRegion: string) => any; diff --git a/node_modules/@aws-sdk/token-providers/dist-types/index.d.ts b/node_modules/@aws-sdk/token-providers/dist-types/index.d.ts deleted file mode 100644 index ec5f9a64..00000000 --- a/node_modules/@aws-sdk/token-providers/dist-types/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export * from "./bundle/client-sso-oidc-node"; -export * from "./fromSso"; -export * from "./fromStatic"; -export * from "./nodeProvider"; diff --git a/node_modules/@aws-sdk/token-providers/dist-types/nodeProvider.d.ts b/node_modules/@aws-sdk/token-providers/dist-types/nodeProvider.d.ts deleted file mode 100644 index e4846ec5..00000000 --- a/node_modules/@aws-sdk/token-providers/dist-types/nodeProvider.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { TokenIdentityProvider } from "@aws-sdk/types"; -import { FromSsoInit } from "./fromSso"; -/** - * Creates a token provider that will attempt to find token from the - * following sources (listed in order of precedence): - * * SSO token from SSO cache or ssoOidc.createToken() call - * - * The default token provider is designed to invoke one provider at a time and only - * continue to the next if no token has been located. It currently has only SSO - * Token Provider in the chain. - * - * @param init Configuration that is passed to each individual - * provider - * - * @see fromSso The function used to source credentials from - * SSO cache or ssoOidc.createToken() call - */ -export declare const nodeProvider: (init?: FromSsoInit) => TokenIdentityProvider; diff --git a/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/bundle/client-sso-oidc-browser.d.ts b/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/bundle/client-sso-oidc-browser.d.ts deleted file mode 100644 index 5aa3b27c..00000000 --- a/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/bundle/client-sso-oidc-browser.d.ts +++ /dev/null @@ -1,235 +0,0 @@ -declare var SSOOIDCClient: { - new (__0_0: any): { - destroy(): void; - }; -}; -import { HttpRequest as __HttpRequest } from "@smithy/protocol-http"; -declare var AccessDeniedException: { - new (opts: any): { - readonly $fault: "server" | "client"; - $response?: import("@smithy/types").HttpResponse | undefined; - $retryable?: import("@smithy/types").RetryableTrait | undefined; - $metadata: import("@smithy/types").ResponseMetadata; - name: string; - message: string; - stack?: string | undefined; - }; - captureStackTrace( - targetObject: object, - constructorOpt?: Function | undefined - ): void; - prepareStackTrace?: - | ((err: Error, stackTraces: NodeJS.CallSite[]) => any) - | undefined; - stackTraceLimit: number; -}; -declare var AuthorizationPendingException: { - new (opts: any): { - readonly $fault: "server" | "client"; - $response?: import("@smithy/types").HttpResponse | undefined; - $retryable?: import("@smithy/types").RetryableTrait | undefined; - $metadata: import("@smithy/types").ResponseMetadata; - name: string; - message: string; - stack?: string | undefined; - }; - captureStackTrace( - targetObject: object, - constructorOpt?: Function | undefined - ): void; - prepareStackTrace?: - | ((err: Error, stackTraces: NodeJS.CallSite[]) => any) - | undefined; - stackTraceLimit: number; -}; -declare var ExpiredTokenException: { - new (opts: any): { - readonly $fault: "server" | "client"; - $response?: import("@smithy/types").HttpResponse | undefined; - $retryable?: import("@smithy/types").RetryableTrait | undefined; - $metadata: import("@smithy/types").ResponseMetadata; - name: string; - message: string; - stack?: string | undefined; - }; - captureStackTrace( - targetObject: object, - constructorOpt?: Function | undefined - ): void; - prepareStackTrace?: - | ((err: Error, stackTraces: NodeJS.CallSite[]) => any) - | undefined; - stackTraceLimit: number; -}; -declare var InternalServerException: { - new (opts: any): { - readonly $fault: "server" | "client"; - $response?: import("@smithy/types").HttpResponse | undefined; - $retryable?: import("@smithy/types").RetryableTrait | undefined; - $metadata: import("@smithy/types").ResponseMetadata; - name: string; - message: string; - stack?: string | undefined; - }; - captureStackTrace( - targetObject: object, - constructorOpt?: Function | undefined - ): void; - prepareStackTrace?: - | ((err: Error, stackTraces: NodeJS.CallSite[]) => any) - | undefined; - stackTraceLimit: number; -}; -declare var InvalidClientException: { - new (opts: any): { - readonly $fault: "server" | "client"; - $response?: import("@smithy/types").HttpResponse | undefined; - $retryable?: import("@smithy/types").RetryableTrait | undefined; - $metadata: import("@smithy/types").ResponseMetadata; - name: string; - message: string; - stack?: string | undefined; - }; - captureStackTrace( - targetObject: object, - constructorOpt?: Function | undefined - ): void; - prepareStackTrace?: - | ((err: Error, stackTraces: NodeJS.CallSite[]) => any) - | undefined; - stackTraceLimit: number; -}; -declare var InvalidRequestException: { - new (opts: any): { - readonly $fault: "server" | "client"; - $response?: import("@smithy/types").HttpResponse | undefined; - $retryable?: import("@smithy/types").RetryableTrait | undefined; - $metadata: import("@smithy/types").ResponseMetadata; - name: string; - message: string; - stack?: string | undefined; - }; - captureStackTrace( - targetObject: object, - constructorOpt?: Function | undefined - ): void; - prepareStackTrace?: - | ((err: Error, stackTraces: NodeJS.CallSite[]) => any) - | undefined; - stackTraceLimit: number; -}; -declare var InvalidScopeException: { - new (opts: any): { - readonly $fault: "server" | "client"; - $response?: import("@smithy/types").HttpResponse | undefined; - $retryable?: import("@smithy/types").RetryableTrait | undefined; - $metadata: import("@smithy/types").ResponseMetadata; - name: string; - message: string; - stack?: string | undefined; - }; - captureStackTrace( - targetObject: object, - constructorOpt?: Function | undefined - ): void; - prepareStackTrace?: - | ((err: Error, stackTraces: NodeJS.CallSite[]) => any) - | undefined; - stackTraceLimit: number; -}; -declare var SlowDownException: { - new (opts: any): { - readonly $fault: "server" | "client"; - $response?: import("@smithy/types").HttpResponse | undefined; - $retryable?: import("@smithy/types").RetryableTrait | undefined; - $metadata: import("@smithy/types").ResponseMetadata; - name: string; - message: string; - stack?: string | undefined; - }; - captureStackTrace( - targetObject: object, - constructorOpt?: Function | undefined - ): void; - prepareStackTrace?: - | ((err: Error, stackTraces: NodeJS.CallSite[]) => any) - | undefined; - stackTraceLimit: number; -}; -declare var UnauthorizedClientException: { - new (opts: any): { - readonly $fault: "server" | "client"; - $response?: import("@smithy/types").HttpResponse | undefined; - $retryable?: import("@smithy/types").RetryableTrait | undefined; - $metadata: import("@smithy/types").ResponseMetadata; - name: string; - message: string; - stack?: string | undefined; - }; - captureStackTrace( - targetObject: object, - constructorOpt?: Function | undefined - ): void; - prepareStackTrace?: - | ((err: Error, stackTraces: NodeJS.CallSite[]) => any) - | undefined; - stackTraceLimit: number; -}; -declare var UnsupportedGrantTypeException: { - new (opts: any): { - readonly $fault: "server" | "client"; - $response?: import("@smithy/types").HttpResponse | undefined; - $retryable?: import("@smithy/types").RetryableTrait | undefined; - $metadata: import("@smithy/types").ResponseMetadata; - name: string; - message: string; - stack?: string | undefined; - }; - captureStackTrace( - targetObject: object, - constructorOpt?: Function | undefined - ): void; - prepareStackTrace?: - | ((err: Error, stackTraces: NodeJS.CallSite[]) => any) - | undefined; - stackTraceLimit: number; -}; -declare var CreateTokenCommand: { - new (input: any): { - resolveMiddleware(clientStack: any, configuration: any, options: any): any; - serialize(input: any, context: any): Promise<__HttpRequest>; - deserialize(output: any, context: any): Promise; - }; - getEndpointParameterInstructions(): { - UseFIPS: { - type: string; - name: string; - }; - Endpoint: { - type: string; - name: string; - }; - Region: { - type: string; - name: string; - }; - UseDualStack: { - type: string; - name: string; - }; - }; -}; -export { - AccessDeniedException, - AuthorizationPendingException, - CreateTokenCommand, - ExpiredTokenException, - InternalServerException, - InvalidClientException, - InvalidRequestException, - InvalidScopeException, - SSOOIDCClient, - SlowDownException, - UnauthorizedClientException, - UnsupportedGrantTypeException, -}; diff --git a/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/bundle/client-sso-oidc-node.d.ts b/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/bundle/client-sso-oidc-node.d.ts deleted file mode 100644 index 5aa3b27c..00000000 --- a/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/bundle/client-sso-oidc-node.d.ts +++ /dev/null @@ -1,235 +0,0 @@ -declare var SSOOIDCClient: { - new (__0_0: any): { - destroy(): void; - }; -}; -import { HttpRequest as __HttpRequest } from "@smithy/protocol-http"; -declare var AccessDeniedException: { - new (opts: any): { - readonly $fault: "server" | "client"; - $response?: import("@smithy/types").HttpResponse | undefined; - $retryable?: import("@smithy/types").RetryableTrait | undefined; - $metadata: import("@smithy/types").ResponseMetadata; - name: string; - message: string; - stack?: string | undefined; - }; - captureStackTrace( - targetObject: object, - constructorOpt?: Function | undefined - ): void; - prepareStackTrace?: - | ((err: Error, stackTraces: NodeJS.CallSite[]) => any) - | undefined; - stackTraceLimit: number; -}; -declare var AuthorizationPendingException: { - new (opts: any): { - readonly $fault: "server" | "client"; - $response?: import("@smithy/types").HttpResponse | undefined; - $retryable?: import("@smithy/types").RetryableTrait | undefined; - $metadata: import("@smithy/types").ResponseMetadata; - name: string; - message: string; - stack?: string | undefined; - }; - captureStackTrace( - targetObject: object, - constructorOpt?: Function | undefined - ): void; - prepareStackTrace?: - | ((err: Error, stackTraces: NodeJS.CallSite[]) => any) - | undefined; - stackTraceLimit: number; -}; -declare var ExpiredTokenException: { - new (opts: any): { - readonly $fault: "server" | "client"; - $response?: import("@smithy/types").HttpResponse | undefined; - $retryable?: import("@smithy/types").RetryableTrait | undefined; - $metadata: import("@smithy/types").ResponseMetadata; - name: string; - message: string; - stack?: string | undefined; - }; - captureStackTrace( - targetObject: object, - constructorOpt?: Function | undefined - ): void; - prepareStackTrace?: - | ((err: Error, stackTraces: NodeJS.CallSite[]) => any) - | undefined; - stackTraceLimit: number; -}; -declare var InternalServerException: { - new (opts: any): { - readonly $fault: "server" | "client"; - $response?: import("@smithy/types").HttpResponse | undefined; - $retryable?: import("@smithy/types").RetryableTrait | undefined; - $metadata: import("@smithy/types").ResponseMetadata; - name: string; - message: string; - stack?: string | undefined; - }; - captureStackTrace( - targetObject: object, - constructorOpt?: Function | undefined - ): void; - prepareStackTrace?: - | ((err: Error, stackTraces: NodeJS.CallSite[]) => any) - | undefined; - stackTraceLimit: number; -}; -declare var InvalidClientException: { - new (opts: any): { - readonly $fault: "server" | "client"; - $response?: import("@smithy/types").HttpResponse | undefined; - $retryable?: import("@smithy/types").RetryableTrait | undefined; - $metadata: import("@smithy/types").ResponseMetadata; - name: string; - message: string; - stack?: string | undefined; - }; - captureStackTrace( - targetObject: object, - constructorOpt?: Function | undefined - ): void; - prepareStackTrace?: - | ((err: Error, stackTraces: NodeJS.CallSite[]) => any) - | undefined; - stackTraceLimit: number; -}; -declare var InvalidRequestException: { - new (opts: any): { - readonly $fault: "server" | "client"; - $response?: import("@smithy/types").HttpResponse | undefined; - $retryable?: import("@smithy/types").RetryableTrait | undefined; - $metadata: import("@smithy/types").ResponseMetadata; - name: string; - message: string; - stack?: string | undefined; - }; - captureStackTrace( - targetObject: object, - constructorOpt?: Function | undefined - ): void; - prepareStackTrace?: - | ((err: Error, stackTraces: NodeJS.CallSite[]) => any) - | undefined; - stackTraceLimit: number; -}; -declare var InvalidScopeException: { - new (opts: any): { - readonly $fault: "server" | "client"; - $response?: import("@smithy/types").HttpResponse | undefined; - $retryable?: import("@smithy/types").RetryableTrait | undefined; - $metadata: import("@smithy/types").ResponseMetadata; - name: string; - message: string; - stack?: string | undefined; - }; - captureStackTrace( - targetObject: object, - constructorOpt?: Function | undefined - ): void; - prepareStackTrace?: - | ((err: Error, stackTraces: NodeJS.CallSite[]) => any) - | undefined; - stackTraceLimit: number; -}; -declare var SlowDownException: { - new (opts: any): { - readonly $fault: "server" | "client"; - $response?: import("@smithy/types").HttpResponse | undefined; - $retryable?: import("@smithy/types").RetryableTrait | undefined; - $metadata: import("@smithy/types").ResponseMetadata; - name: string; - message: string; - stack?: string | undefined; - }; - captureStackTrace( - targetObject: object, - constructorOpt?: Function | undefined - ): void; - prepareStackTrace?: - | ((err: Error, stackTraces: NodeJS.CallSite[]) => any) - | undefined; - stackTraceLimit: number; -}; -declare var UnauthorizedClientException: { - new (opts: any): { - readonly $fault: "server" | "client"; - $response?: import("@smithy/types").HttpResponse | undefined; - $retryable?: import("@smithy/types").RetryableTrait | undefined; - $metadata: import("@smithy/types").ResponseMetadata; - name: string; - message: string; - stack?: string | undefined; - }; - captureStackTrace( - targetObject: object, - constructorOpt?: Function | undefined - ): void; - prepareStackTrace?: - | ((err: Error, stackTraces: NodeJS.CallSite[]) => any) - | undefined; - stackTraceLimit: number; -}; -declare var UnsupportedGrantTypeException: { - new (opts: any): { - readonly $fault: "server" | "client"; - $response?: import("@smithy/types").HttpResponse | undefined; - $retryable?: import("@smithy/types").RetryableTrait | undefined; - $metadata: import("@smithy/types").ResponseMetadata; - name: string; - message: string; - stack?: string | undefined; - }; - captureStackTrace( - targetObject: object, - constructorOpt?: Function | undefined - ): void; - prepareStackTrace?: - | ((err: Error, stackTraces: NodeJS.CallSite[]) => any) - | undefined; - stackTraceLimit: number; -}; -declare var CreateTokenCommand: { - new (input: any): { - resolveMiddleware(clientStack: any, configuration: any, options: any): any; - serialize(input: any, context: any): Promise<__HttpRequest>; - deserialize(output: any, context: any): Promise; - }; - getEndpointParameterInstructions(): { - UseFIPS: { - type: string; - name: string; - }; - Endpoint: { - type: string; - name: string; - }; - Region: { - type: string; - name: string; - }; - UseDualStack: { - type: string; - name: string; - }; - }; -}; -export { - AccessDeniedException, - AuthorizationPendingException, - CreateTokenCommand, - ExpiredTokenException, - InternalServerException, - InvalidClientException, - InvalidRequestException, - InvalidScopeException, - SSOOIDCClient, - SlowDownException, - UnauthorizedClientException, - UnsupportedGrantTypeException, -}; diff --git a/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/constants.d.ts b/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/constants.d.ts deleted file mode 100644 index d7e75772..00000000 --- a/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/constants.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export declare const EXPIRE_WINDOW_MS: number; -export declare const REFRESH_MESSAGE = - "To refresh this SSO session run 'aws sso login' with the corresponding profile."; diff --git a/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/fromSso.d.ts b/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/fromSso.d.ts deleted file mode 100644 index 7f9d9e28..00000000 --- a/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/fromSso.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { TokenIdentityProvider } from "@aws-sdk/types"; -import { SourceProfileInit } from "@smithy/shared-ini-file-loader"; -export interface FromSsoInit extends SourceProfileInit {} -export declare const fromSso: (init?: FromSsoInit) => TokenIdentityProvider; diff --git a/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/fromStatic.d.ts b/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/fromStatic.d.ts deleted file mode 100644 index 7c338b9d..00000000 --- a/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/fromStatic.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { TokenIdentity, TokenIdentityProvider } from "@aws-sdk/types"; -export interface FromStaticInit { - token?: TokenIdentity; -} -export declare const fromStatic: ({ - token, -}: FromStaticInit) => TokenIdentityProvider; diff --git a/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/getNewSsoOidcToken.d.ts b/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/getNewSsoOidcToken.d.ts deleted file mode 100644 index aad6dc01..00000000 --- a/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/getNewSsoOidcToken.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { SSOToken } from "@smithy/shared-ini-file-loader"; -export declare const getNewSsoOidcToken: ( - ssoToken: SSOToken, - ssoRegion: string -) => any; diff --git a/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/getSsoOidcClient.d.ts b/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/getSsoOidcClient.d.ts deleted file mode 100644 index 07b4e5b1..00000000 --- a/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/getSsoOidcClient.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const getSsoOidcClient: (ssoRegion: string) => any; diff --git a/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/index.d.ts b/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/index.d.ts deleted file mode 100644 index ec5f9a64..00000000 --- a/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export * from "./bundle/client-sso-oidc-node"; -export * from "./fromSso"; -export * from "./fromStatic"; -export * from "./nodeProvider"; diff --git a/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/nodeProvider.d.ts b/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/nodeProvider.d.ts deleted file mode 100644 index 11a9bd43..00000000 --- a/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/nodeProvider.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { TokenIdentityProvider } from "@aws-sdk/types"; -import { FromSsoInit } from "./fromSso"; -export declare const nodeProvider: ( - init?: FromSsoInit -) => TokenIdentityProvider; diff --git a/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/validateTokenExpiry.d.ts b/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/validateTokenExpiry.d.ts deleted file mode 100644 index 90036052..00000000 --- a/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/validateTokenExpiry.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { TokenIdentity } from "@aws-sdk/types"; -export declare const validateTokenExpiry: (token: TokenIdentity) => void; diff --git a/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/validateTokenKey.d.ts b/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/validateTokenKey.d.ts deleted file mode 100644 index 105b2b4f..00000000 --- a/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/validateTokenKey.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export declare const validateTokenKey: ( - key: string, - value: unknown, - forRefresh?: boolean -) => void; diff --git a/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/writeSSOTokenToFile.d.ts b/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/writeSSOTokenToFile.d.ts deleted file mode 100644 index a6d025f3..00000000 --- a/node_modules/@aws-sdk/token-providers/dist-types/ts3.4/writeSSOTokenToFile.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { SSOToken } from "@smithy/shared-ini-file-loader"; -export declare const writeSSOTokenToFile: ( - id: string, - ssoToken: SSOToken -) => Promise; diff --git a/node_modules/@aws-sdk/token-providers/dist-types/validateTokenExpiry.d.ts b/node_modules/@aws-sdk/token-providers/dist-types/validateTokenExpiry.d.ts deleted file mode 100644 index 1253784a..00000000 --- a/node_modules/@aws-sdk/token-providers/dist-types/validateTokenExpiry.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { TokenIdentity } from "@aws-sdk/types"; -/** - * Throws TokenProviderError is token is expired. - */ -export declare const validateTokenExpiry: (token: TokenIdentity) => void; diff --git a/node_modules/@aws-sdk/token-providers/dist-types/validateTokenKey.d.ts b/node_modules/@aws-sdk/token-providers/dist-types/validateTokenKey.d.ts deleted file mode 100644 index a9618fd8..00000000 --- a/node_modules/@aws-sdk/token-providers/dist-types/validateTokenKey.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/** - * Throws TokenProviderError if value is undefined for key. - */ -export declare const validateTokenKey: (key: string, value: unknown, forRefresh?: boolean) => void; diff --git a/node_modules/@aws-sdk/token-providers/dist-types/writeSSOTokenToFile.d.ts b/node_modules/@aws-sdk/token-providers/dist-types/writeSSOTokenToFile.d.ts deleted file mode 100644 index a1e17e88..00000000 --- a/node_modules/@aws-sdk/token-providers/dist-types/writeSSOTokenToFile.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { SSOToken } from "@smithy/shared-ini-file-loader"; -/** - * Writes SSO token to file based on filepath computed from ssoStartUrl or session name. - */ -export declare const writeSSOTokenToFile: (id: string, ssoToken: SSOToken) => Promise; diff --git a/node_modules/@aws-sdk/token-providers/package.json b/node_modules/@aws-sdk/token-providers/package.json deleted file mode 100644 index 50dbb070..00000000 --- a/node_modules/@aws-sdk/token-providers/package.json +++ /dev/null @@ -1,107 +0,0 @@ -{ - "name": "@aws-sdk/token-providers", - "version": "3.451.0", - "description": "A collection of token providers", - "main": "./dist-cjs/index.js", - "module": "./dist-es/index.js", - "sideEffects": false, - "scripts": { - "build:client-bundle": "node ./scripts/esbuild", - "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", - "build:cjs": "tsc -p tsconfig.cjs.json", - "build:es": "tsc -p tsconfig.es.json", - "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build", - "build:types": "tsc -p tsconfig.types.json", - "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", - "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "extract:docs": "api-extractor run --local", - "test": "jest" - }, - "keywords": [ - "aws", - "token" - ], - "author": { - "name": "AWS SDK for JavaScript Team", - "url": "https://aws.amazon.com/javascript/" - }, - "license": "Apache-2.0", - "dependencies": { - "@aws-crypto/sha256-browser": "3.0.0", - "@aws-crypto/sha256-js": "3.0.0", - "@aws-sdk/middleware-host-header": "3.451.0", - "@aws-sdk/middleware-logger": "3.451.0", - "@aws-sdk/middleware-recursion-detection": "3.451.0", - "@aws-sdk/middleware-user-agent": "3.451.0", - "@aws-sdk/region-config-resolver": "3.451.0", - "@aws-sdk/types": "3.451.0", - "@aws-sdk/util-endpoints": "3.451.0", - "@aws-sdk/util-user-agent-browser": "3.451.0", - "@aws-sdk/util-user-agent-node": "3.451.0", - "@smithy/config-resolver": "^2.0.18", - "@smithy/fetch-http-handler": "^2.2.6", - "@smithy/hash-node": "^2.0.15", - "@smithy/invalid-dependency": "^2.0.13", - "@smithy/middleware-content-length": "^2.0.15", - "@smithy/middleware-endpoint": "^2.2.0", - "@smithy/middleware-retry": "^2.0.20", - "@smithy/middleware-serde": "^2.0.13", - "@smithy/middleware-stack": "^2.0.7", - "@smithy/node-config-provider": "^2.1.5", - "@smithy/node-http-handler": "^2.1.9", - "@smithy/property-provider": "^2.0.0", - "@smithy/protocol-http": "^3.0.9", - "@smithy/shared-ini-file-loader": "^2.0.6", - "@smithy/smithy-client": "^2.1.15", - "@smithy/types": "^2.5.0", - "@smithy/url-parser": "^2.0.13", - "@smithy/util-base64": "^2.0.1", - "@smithy/util-body-length-browser": "^2.0.0", - "@smithy/util-body-length-node": "^2.1.0", - "@smithy/util-defaults-mode-browser": "^2.0.19", - "@smithy/util-defaults-mode-node": "^2.0.25", - "@smithy/util-endpoints": "^1.0.4", - "@smithy/util-retry": "^2.0.6", - "@smithy/util-utf8": "^2.0.2", - "tslib": "^2.5.0" - }, - "devDependencies": { - "@tsconfig/recommended": "1.0.1", - "@types/node": "^14.14.31", - "concurrently": "7.0.0", - "downlevel-dts": "0.10.1", - "rimraf": "3.0.2", - "typedoc": "0.23.23", - "typescript": "~4.9.5" - }, - "types": "./dist-types/index.d.ts", - "engines": { - "node": ">=14.0.0" - }, - "typesVersions": { - "<4.0": { - "dist-types/*": [ - "dist-types/ts3.4/*" - ] - } - }, - "files": [ - "dist-*/**" - ], - "browser": { - "./dist-es/bundle/client-sso-oidc-node": "./dist-es/bundle/client-sso-oidc-browser" - }, - "react-native": { - "./dist-es/bundle/client-sso-oidc-node": "./dist-es/bundle/client-sso-oidc-browser", - "./dist-cjs/bundle/client-sso-oidc-node": "./dist-cjs/bundle/client-sso-oidc-browser" - }, - "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/token-providers", - "repository": { - "type": "git", - "url": "https://github.com/aws/aws-sdk-js-v3.git", - "directory": "packages/token-providers" - }, - "typedoc": { - "entryPoint": "src/index.ts" - } -} diff --git a/node_modules/@aws-sdk/types/LICENSE b/node_modules/@aws-sdk/types/LICENSE deleted file mode 100644 index 7b6491ba..00000000 --- a/node_modules/@aws-sdk/types/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. \ No newline at end of file diff --git a/node_modules/@aws-sdk/types/README.md b/node_modules/@aws-sdk/types/README.md deleted file mode 100644 index a5658db8..00000000 --- a/node_modules/@aws-sdk/types/README.md +++ /dev/null @@ -1,4 +0,0 @@ -# @aws-sdk/types - -[![NPM version](https://img.shields.io/npm/v/@aws-sdk/types/latest.svg)](https://www.npmjs.com/package/@aws-sdk/types) -[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/types.svg)](https://www.npmjs.com/package/@aws-sdk/types) diff --git a/node_modules/@aws-sdk/types/dist-cjs/abort.js b/node_modules/@aws-sdk/types/dist-cjs/abort.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@aws-sdk/types/dist-cjs/abort.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@aws-sdk/types/dist-cjs/auth.js b/node_modules/@aws-sdk/types/dist-cjs/auth.js deleted file mode 100644 index fe3766f9..00000000 --- a/node_modules/@aws-sdk/types/dist-cjs/auth.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.HttpAuthLocation = void 0; -var types_1 = require("@smithy/types"); -Object.defineProperty(exports, "HttpAuthLocation", { enumerable: true, get: function () { return types_1.HttpAuthLocation; } }); diff --git a/node_modules/@aws-sdk/types/dist-cjs/blob/blob-types.js b/node_modules/@aws-sdk/types/dist-cjs/blob/blob-types.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@aws-sdk/types/dist-cjs/blob/blob-types.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@aws-sdk/types/dist-cjs/blob/runtime-blob-types.browser.js b/node_modules/@aws-sdk/types/dist-cjs/blob/runtime-blob-types.browser.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@aws-sdk/types/dist-cjs/blob/runtime-blob-types.browser.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@aws-sdk/types/dist-cjs/blob/runtime-blob-types.node.js b/node_modules/@aws-sdk/types/dist-cjs/blob/runtime-blob-types.node.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@aws-sdk/types/dist-cjs/blob/runtime-blob-types.node.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@aws-sdk/types/dist-cjs/checksum.js b/node_modules/@aws-sdk/types/dist-cjs/checksum.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@aws-sdk/types/dist-cjs/checksum.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@aws-sdk/types/dist-cjs/client.js b/node_modules/@aws-sdk/types/dist-cjs/client.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@aws-sdk/types/dist-cjs/client.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@aws-sdk/types/dist-cjs/command.js b/node_modules/@aws-sdk/types/dist-cjs/command.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@aws-sdk/types/dist-cjs/command.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@aws-sdk/types/dist-cjs/connection.js b/node_modules/@aws-sdk/types/dist-cjs/connection.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@aws-sdk/types/dist-cjs/connection.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@aws-sdk/types/dist-cjs/credentials.js b/node_modules/@aws-sdk/types/dist-cjs/credentials.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@aws-sdk/types/dist-cjs/credentials.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@aws-sdk/types/dist-cjs/crypto.js b/node_modules/@aws-sdk/types/dist-cjs/crypto.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@aws-sdk/types/dist-cjs/crypto.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@aws-sdk/types/dist-cjs/dns.js b/node_modules/@aws-sdk/types/dist-cjs/dns.js deleted file mode 100644 index b66ea620..00000000 --- a/node_modules/@aws-sdk/types/dist-cjs/dns.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.HostAddressType = void 0; -var HostAddressType; -(function (HostAddressType) { - HostAddressType["AAAA"] = "AAAA"; - HostAddressType["A"] = "A"; -})(HostAddressType = exports.HostAddressType || (exports.HostAddressType = {})); diff --git a/node_modules/@aws-sdk/types/dist-cjs/encode.js b/node_modules/@aws-sdk/types/dist-cjs/encode.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@aws-sdk/types/dist-cjs/encode.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@aws-sdk/types/dist-cjs/endpoint.js b/node_modules/@aws-sdk/types/dist-cjs/endpoint.js deleted file mode 100644 index aacb3bd9..00000000 --- a/node_modules/@aws-sdk/types/dist-cjs/endpoint.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.EndpointURLScheme = void 0; -var types_1 = require("@smithy/types"); -Object.defineProperty(exports, "EndpointURLScheme", { enumerable: true, get: function () { return types_1.EndpointURLScheme; } }); diff --git a/node_modules/@aws-sdk/types/dist-cjs/eventStream.js b/node_modules/@aws-sdk/types/dist-cjs/eventStream.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@aws-sdk/types/dist-cjs/eventStream.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@aws-sdk/types/dist-cjs/extensions/index.js b/node_modules/@aws-sdk/types/dist-cjs/extensions/index.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@aws-sdk/types/dist-cjs/extensions/index.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@aws-sdk/types/dist-cjs/http.js b/node_modules/@aws-sdk/types/dist-cjs/http.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@aws-sdk/types/dist-cjs/http.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@aws-sdk/types/dist-cjs/identity/AnonymousIdentity.js b/node_modules/@aws-sdk/types/dist-cjs/identity/AnonymousIdentity.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@aws-sdk/types/dist-cjs/identity/AnonymousIdentity.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@aws-sdk/types/dist-cjs/identity/AwsCredentialIdentity.js b/node_modules/@aws-sdk/types/dist-cjs/identity/AwsCredentialIdentity.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@aws-sdk/types/dist-cjs/identity/AwsCredentialIdentity.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@aws-sdk/types/dist-cjs/identity/Identity.js b/node_modules/@aws-sdk/types/dist-cjs/identity/Identity.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@aws-sdk/types/dist-cjs/identity/Identity.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@aws-sdk/types/dist-cjs/identity/LoginIdentity.js b/node_modules/@aws-sdk/types/dist-cjs/identity/LoginIdentity.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@aws-sdk/types/dist-cjs/identity/LoginIdentity.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@aws-sdk/types/dist-cjs/identity/TokenIdentity.js b/node_modules/@aws-sdk/types/dist-cjs/identity/TokenIdentity.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@aws-sdk/types/dist-cjs/identity/TokenIdentity.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@aws-sdk/types/dist-cjs/identity/index.js b/node_modules/@aws-sdk/types/dist-cjs/identity/index.js deleted file mode 100644 index 9e9c97d9..00000000 --- a/node_modules/@aws-sdk/types/dist-cjs/identity/index.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./AnonymousIdentity"), exports); -tslib_1.__exportStar(require("./AwsCredentialIdentity"), exports); -tslib_1.__exportStar(require("./Identity"), exports); -tslib_1.__exportStar(require("./LoginIdentity"), exports); -tslib_1.__exportStar(require("./TokenIdentity"), exports); diff --git a/node_modules/@aws-sdk/types/dist-cjs/index.js b/node_modules/@aws-sdk/types/dist-cjs/index.js deleted file mode 100644 index 7781382c..00000000 --- a/node_modules/@aws-sdk/types/dist-cjs/index.js +++ /dev/null @@ -1,35 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./abort"), exports); -tslib_1.__exportStar(require("./auth"), exports); -tslib_1.__exportStar(require("./blob/blob-types"), exports); -tslib_1.__exportStar(require("./checksum"), exports); -tslib_1.__exportStar(require("./client"), exports); -tslib_1.__exportStar(require("./command"), exports); -tslib_1.__exportStar(require("./connection"), exports); -tslib_1.__exportStar(require("./credentials"), exports); -tslib_1.__exportStar(require("./crypto"), exports); -tslib_1.__exportStar(require("./dns"), exports); -tslib_1.__exportStar(require("./encode"), exports); -tslib_1.__exportStar(require("./endpoint"), exports); -tslib_1.__exportStar(require("./eventStream"), exports); -tslib_1.__exportStar(require("./extensions"), exports); -tslib_1.__exportStar(require("./http"), exports); -tslib_1.__exportStar(require("./identity"), exports); -tslib_1.__exportStar(require("./logger"), exports); -tslib_1.__exportStar(require("./middleware"), exports); -tslib_1.__exportStar(require("./pagination"), exports); -tslib_1.__exportStar(require("./profile"), exports); -tslib_1.__exportStar(require("./request"), exports); -tslib_1.__exportStar(require("./response"), exports); -tslib_1.__exportStar(require("./retry"), exports); -tslib_1.__exportStar(require("./serde"), exports); -tslib_1.__exportStar(require("./shapes"), exports); -tslib_1.__exportStar(require("./signature"), exports); -tslib_1.__exportStar(require("./stream"), exports); -tslib_1.__exportStar(require("./token"), exports); -tslib_1.__exportStar(require("./transfer"), exports); -tslib_1.__exportStar(require("./uri"), exports); -tslib_1.__exportStar(require("./util"), exports); -tslib_1.__exportStar(require("./waiter"), exports); diff --git a/node_modules/@aws-sdk/types/dist-cjs/logger.js b/node_modules/@aws-sdk/types/dist-cjs/logger.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@aws-sdk/types/dist-cjs/logger.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@aws-sdk/types/dist-cjs/middleware.js b/node_modules/@aws-sdk/types/dist-cjs/middleware.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@aws-sdk/types/dist-cjs/middleware.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@aws-sdk/types/dist-cjs/pagination.js b/node_modules/@aws-sdk/types/dist-cjs/pagination.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@aws-sdk/types/dist-cjs/pagination.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@aws-sdk/types/dist-cjs/profile.js b/node_modules/@aws-sdk/types/dist-cjs/profile.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@aws-sdk/types/dist-cjs/profile.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@aws-sdk/types/dist-cjs/request.js b/node_modules/@aws-sdk/types/dist-cjs/request.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@aws-sdk/types/dist-cjs/request.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@aws-sdk/types/dist-cjs/response.js b/node_modules/@aws-sdk/types/dist-cjs/response.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@aws-sdk/types/dist-cjs/response.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@aws-sdk/types/dist-cjs/retry.js b/node_modules/@aws-sdk/types/dist-cjs/retry.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@aws-sdk/types/dist-cjs/retry.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@aws-sdk/types/dist-cjs/serde.js b/node_modules/@aws-sdk/types/dist-cjs/serde.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@aws-sdk/types/dist-cjs/serde.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@aws-sdk/types/dist-cjs/shapes.js b/node_modules/@aws-sdk/types/dist-cjs/shapes.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@aws-sdk/types/dist-cjs/shapes.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@aws-sdk/types/dist-cjs/signature.js b/node_modules/@aws-sdk/types/dist-cjs/signature.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@aws-sdk/types/dist-cjs/signature.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@aws-sdk/types/dist-cjs/stream.js b/node_modules/@aws-sdk/types/dist-cjs/stream.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@aws-sdk/types/dist-cjs/stream.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@aws-sdk/types/dist-cjs/token.js b/node_modules/@aws-sdk/types/dist-cjs/token.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@aws-sdk/types/dist-cjs/token.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@aws-sdk/types/dist-cjs/transfer.js b/node_modules/@aws-sdk/types/dist-cjs/transfer.js deleted file mode 100644 index da2379ad..00000000 --- a/node_modules/@aws-sdk/types/dist-cjs/transfer.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.RequestHandlerProtocol = void 0; -var types_1 = require("@smithy/types"); -Object.defineProperty(exports, "RequestHandlerProtocol", { enumerable: true, get: function () { return types_1.RequestHandlerProtocol; } }); diff --git a/node_modules/@aws-sdk/types/dist-cjs/uri.js b/node_modules/@aws-sdk/types/dist-cjs/uri.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@aws-sdk/types/dist-cjs/uri.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@aws-sdk/types/dist-cjs/util.js b/node_modules/@aws-sdk/types/dist-cjs/util.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@aws-sdk/types/dist-cjs/util.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@aws-sdk/types/dist-cjs/waiter.js b/node_modules/@aws-sdk/types/dist-cjs/waiter.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@aws-sdk/types/dist-cjs/waiter.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@aws-sdk/types/dist-es/abort.js b/node_modules/@aws-sdk/types/dist-es/abort.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@aws-sdk/types/dist-es/abort.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@aws-sdk/types/dist-es/auth.js b/node_modules/@aws-sdk/types/dist-es/auth.js deleted file mode 100644 index 81f903b2..00000000 --- a/node_modules/@aws-sdk/types/dist-es/auth.js +++ /dev/null @@ -1 +0,0 @@ -export { HttpAuthLocation } from "@smithy/types"; diff --git a/node_modules/@aws-sdk/types/dist-es/blob/blob-types.js b/node_modules/@aws-sdk/types/dist-es/blob/blob-types.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@aws-sdk/types/dist-es/blob/blob-types.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@aws-sdk/types/dist-es/blob/runtime-blob-types.browser.js b/node_modules/@aws-sdk/types/dist-es/blob/runtime-blob-types.browser.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@aws-sdk/types/dist-es/blob/runtime-blob-types.browser.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@aws-sdk/types/dist-es/blob/runtime-blob-types.node.js b/node_modules/@aws-sdk/types/dist-es/blob/runtime-blob-types.node.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@aws-sdk/types/dist-es/blob/runtime-blob-types.node.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@aws-sdk/types/dist-es/checksum.js b/node_modules/@aws-sdk/types/dist-es/checksum.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@aws-sdk/types/dist-es/checksum.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@aws-sdk/types/dist-es/client.js b/node_modules/@aws-sdk/types/dist-es/client.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@aws-sdk/types/dist-es/client.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@aws-sdk/types/dist-es/command.js b/node_modules/@aws-sdk/types/dist-es/command.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@aws-sdk/types/dist-es/command.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@aws-sdk/types/dist-es/connection.js b/node_modules/@aws-sdk/types/dist-es/connection.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@aws-sdk/types/dist-es/connection.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@aws-sdk/types/dist-es/credentials.js b/node_modules/@aws-sdk/types/dist-es/credentials.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@aws-sdk/types/dist-es/credentials.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@aws-sdk/types/dist-es/crypto.js b/node_modules/@aws-sdk/types/dist-es/crypto.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@aws-sdk/types/dist-es/crypto.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@aws-sdk/types/dist-es/dns.js b/node_modules/@aws-sdk/types/dist-es/dns.js deleted file mode 100644 index c6a2cd96..00000000 --- a/node_modules/@aws-sdk/types/dist-es/dns.js +++ /dev/null @@ -1,5 +0,0 @@ -export var HostAddressType; -(function (HostAddressType) { - HostAddressType["AAAA"] = "AAAA"; - HostAddressType["A"] = "A"; -})(HostAddressType || (HostAddressType = {})); diff --git a/node_modules/@aws-sdk/types/dist-es/encode.js b/node_modules/@aws-sdk/types/dist-es/encode.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@aws-sdk/types/dist-es/encode.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@aws-sdk/types/dist-es/endpoint.js b/node_modules/@aws-sdk/types/dist-es/endpoint.js deleted file mode 100644 index ec53acc8..00000000 --- a/node_modules/@aws-sdk/types/dist-es/endpoint.js +++ /dev/null @@ -1 +0,0 @@ -export { EndpointURLScheme, } from "@smithy/types"; diff --git a/node_modules/@aws-sdk/types/dist-es/eventStream.js b/node_modules/@aws-sdk/types/dist-es/eventStream.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@aws-sdk/types/dist-es/eventStream.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@aws-sdk/types/dist-es/extensions/index.js b/node_modules/@aws-sdk/types/dist-es/extensions/index.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@aws-sdk/types/dist-es/extensions/index.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@aws-sdk/types/dist-es/http.js b/node_modules/@aws-sdk/types/dist-es/http.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@aws-sdk/types/dist-es/http.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@aws-sdk/types/dist-es/identity/AnonymousIdentity.js b/node_modules/@aws-sdk/types/dist-es/identity/AnonymousIdentity.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@aws-sdk/types/dist-es/identity/AnonymousIdentity.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@aws-sdk/types/dist-es/identity/AwsCredentialIdentity.js b/node_modules/@aws-sdk/types/dist-es/identity/AwsCredentialIdentity.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@aws-sdk/types/dist-es/identity/AwsCredentialIdentity.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@aws-sdk/types/dist-es/identity/Identity.js b/node_modules/@aws-sdk/types/dist-es/identity/Identity.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@aws-sdk/types/dist-es/identity/Identity.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@aws-sdk/types/dist-es/identity/LoginIdentity.js b/node_modules/@aws-sdk/types/dist-es/identity/LoginIdentity.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@aws-sdk/types/dist-es/identity/LoginIdentity.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@aws-sdk/types/dist-es/identity/TokenIdentity.js b/node_modules/@aws-sdk/types/dist-es/identity/TokenIdentity.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@aws-sdk/types/dist-es/identity/TokenIdentity.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@aws-sdk/types/dist-es/identity/index.js b/node_modules/@aws-sdk/types/dist-es/identity/index.js deleted file mode 100644 index 863e78e8..00000000 --- a/node_modules/@aws-sdk/types/dist-es/identity/index.js +++ /dev/null @@ -1,5 +0,0 @@ -export * from "./AnonymousIdentity"; -export * from "./AwsCredentialIdentity"; -export * from "./Identity"; -export * from "./LoginIdentity"; -export * from "./TokenIdentity"; diff --git a/node_modules/@aws-sdk/types/dist-es/index.js b/node_modules/@aws-sdk/types/dist-es/index.js deleted file mode 100644 index ab64cd94..00000000 --- a/node_modules/@aws-sdk/types/dist-es/index.js +++ /dev/null @@ -1,32 +0,0 @@ -export * from "./abort"; -export * from "./auth"; -export * from "./blob/blob-types"; -export * from "./checksum"; -export * from "./client"; -export * from "./command"; -export * from "./connection"; -export * from "./credentials"; -export * from "./crypto"; -export * from "./dns"; -export * from "./encode"; -export * from "./endpoint"; -export * from "./eventStream"; -export * from "./extensions"; -export * from "./http"; -export * from "./identity"; -export * from "./logger"; -export * from "./middleware"; -export * from "./pagination"; -export * from "./profile"; -export * from "./request"; -export * from "./response"; -export * from "./retry"; -export * from "./serde"; -export * from "./shapes"; -export * from "./signature"; -export * from "./stream"; -export * from "./token"; -export * from "./transfer"; -export * from "./uri"; -export * from "./util"; -export * from "./waiter"; diff --git a/node_modules/@aws-sdk/types/dist-es/logger.js b/node_modules/@aws-sdk/types/dist-es/logger.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@aws-sdk/types/dist-es/logger.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@aws-sdk/types/dist-es/middleware.js b/node_modules/@aws-sdk/types/dist-es/middleware.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@aws-sdk/types/dist-es/middleware.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@aws-sdk/types/dist-es/pagination.js b/node_modules/@aws-sdk/types/dist-es/pagination.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@aws-sdk/types/dist-es/pagination.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@aws-sdk/types/dist-es/profile.js b/node_modules/@aws-sdk/types/dist-es/profile.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@aws-sdk/types/dist-es/profile.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@aws-sdk/types/dist-es/request.js b/node_modules/@aws-sdk/types/dist-es/request.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@aws-sdk/types/dist-es/request.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@aws-sdk/types/dist-es/response.js b/node_modules/@aws-sdk/types/dist-es/response.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@aws-sdk/types/dist-es/response.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@aws-sdk/types/dist-es/retry.js b/node_modules/@aws-sdk/types/dist-es/retry.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@aws-sdk/types/dist-es/retry.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@aws-sdk/types/dist-es/serde.js b/node_modules/@aws-sdk/types/dist-es/serde.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@aws-sdk/types/dist-es/serde.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@aws-sdk/types/dist-es/shapes.js b/node_modules/@aws-sdk/types/dist-es/shapes.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@aws-sdk/types/dist-es/shapes.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@aws-sdk/types/dist-es/signature.js b/node_modules/@aws-sdk/types/dist-es/signature.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@aws-sdk/types/dist-es/signature.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@aws-sdk/types/dist-es/stream.js b/node_modules/@aws-sdk/types/dist-es/stream.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@aws-sdk/types/dist-es/stream.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@aws-sdk/types/dist-es/token.js b/node_modules/@aws-sdk/types/dist-es/token.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@aws-sdk/types/dist-es/token.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@aws-sdk/types/dist-es/transfer.js b/node_modules/@aws-sdk/types/dist-es/transfer.js deleted file mode 100644 index ba575896..00000000 --- a/node_modules/@aws-sdk/types/dist-es/transfer.js +++ /dev/null @@ -1 +0,0 @@ -export { RequestHandlerProtocol, } from "@smithy/types"; diff --git a/node_modules/@aws-sdk/types/dist-es/uri.js b/node_modules/@aws-sdk/types/dist-es/uri.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@aws-sdk/types/dist-es/uri.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@aws-sdk/types/dist-es/util.js b/node_modules/@aws-sdk/types/dist-es/util.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@aws-sdk/types/dist-es/util.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@aws-sdk/types/dist-es/waiter.js b/node_modules/@aws-sdk/types/dist-es/waiter.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@aws-sdk/types/dist-es/waiter.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@aws-sdk/types/dist-types/abort.d.ts b/node_modules/@aws-sdk/types/dist-types/abort.d.ts deleted file mode 100644 index dad6079f..00000000 --- a/node_modules/@aws-sdk/types/dist-types/abort.d.ts +++ /dev/null @@ -1 +0,0 @@ -export { AbortController, AbortHandler, AbortSignal } from "@smithy/types"; diff --git a/node_modules/@aws-sdk/types/dist-types/auth.d.ts b/node_modules/@aws-sdk/types/dist-types/auth.d.ts deleted file mode 100644 index 6626c16d..00000000 --- a/node_modules/@aws-sdk/types/dist-types/auth.d.ts +++ /dev/null @@ -1 +0,0 @@ -export { AuthScheme, HttpAuthDefinition, HttpAuthLocation } from "@smithy/types"; diff --git a/node_modules/@aws-sdk/types/dist-types/blob/blob-types.d.ts b/node_modules/@aws-sdk/types/dist-types/blob/blob-types.d.ts deleted file mode 100644 index fedb3d52..00000000 --- a/node_modules/@aws-sdk/types/dist-types/blob/blob-types.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { BlobTypes } from '@smithy/types'; -export { BlobTypes }; diff --git a/node_modules/@aws-sdk/types/dist-types/blob/runtime-blob-types.browser.d.ts b/node_modules/@aws-sdk/types/dist-types/blob/runtime-blob-types.browser.d.ts deleted file mode 100644 index 55816b4e..00000000 --- a/node_modules/@aws-sdk/types/dist-types/blob/runtime-blob-types.browser.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -/** - * @public - * - * Additional blob types for the browser environment. - */ -export type RuntimeBlobTypes = Blob | ReadableStream; diff --git a/node_modules/@aws-sdk/types/dist-types/blob/runtime-blob-types.node.d.ts b/node_modules/@aws-sdk/types/dist-types/blob/runtime-blob-types.node.d.ts deleted file mode 100644 index 0721e64d..00000000 --- a/node_modules/@aws-sdk/types/dist-types/blob/runtime-blob-types.node.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -/// -/// -import { Readable } from "stream"; -/** - * @public - * - * Additional blob types for the Node.js environment. - */ -export type RuntimeBlobTypes = Readable | Buffer; diff --git a/node_modules/@aws-sdk/types/dist-types/checksum.d.ts b/node_modules/@aws-sdk/types/dist-types/checksum.d.ts deleted file mode 100644 index f805d729..00000000 --- a/node_modules/@aws-sdk/types/dist-types/checksum.d.ts +++ /dev/null @@ -1 +0,0 @@ -export { Checksum, ChecksumConstructor } from "@smithy/types"; diff --git a/node_modules/@aws-sdk/types/dist-types/client.d.ts b/node_modules/@aws-sdk/types/dist-types/client.d.ts deleted file mode 100644 index d6b3dcf9..00000000 --- a/node_modules/@aws-sdk/types/dist-types/client.d.ts +++ /dev/null @@ -1 +0,0 @@ -export { Client } from "@smithy/types"; diff --git a/node_modules/@aws-sdk/types/dist-types/command.d.ts b/node_modules/@aws-sdk/types/dist-types/command.d.ts deleted file mode 100644 index 38872670..00000000 --- a/node_modules/@aws-sdk/types/dist-types/command.d.ts +++ /dev/null @@ -1 +0,0 @@ -export { Command } from "@smithy/types"; diff --git a/node_modules/@aws-sdk/types/dist-types/connection.d.ts b/node_modules/@aws-sdk/types/dist-types/connection.d.ts deleted file mode 100644 index efcb4d77..00000000 --- a/node_modules/@aws-sdk/types/dist-types/connection.d.ts +++ /dev/null @@ -1 +0,0 @@ -export { ConnectConfiguration, ConnectionManager, ConnectionManagerConfiguration, ConnectionPool } from "@smithy/types"; diff --git a/node_modules/@aws-sdk/types/dist-types/credentials.d.ts b/node_modules/@aws-sdk/types/dist-types/credentials.d.ts deleted file mode 100644 index dc2236d6..00000000 --- a/node_modules/@aws-sdk/types/dist-types/credentials.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { AwsCredentialIdentity } from "./identity"; -import { Provider } from "./util"; -/** - * @public - * - * An object representing temporary or permanent AWS credentials. - * - * @deprecated Use {@link AwsCredentialIdentity} - */ -export interface Credentials extends AwsCredentialIdentity { -} -/** - * @public - * - * @deprecated Use {@link AwsCredentialIdentityProvider} - */ -export type CredentialProvider = Provider; diff --git a/node_modules/@aws-sdk/types/dist-types/crypto.d.ts b/node_modules/@aws-sdk/types/dist-types/crypto.d.ts deleted file mode 100644 index aeeea502..00000000 --- a/node_modules/@aws-sdk/types/dist-types/crypto.d.ts +++ /dev/null @@ -1 +0,0 @@ -export { Hash, HashConstructor, StreamHasher, randomValues, SourceData } from "@smithy/types"; diff --git a/node_modules/@aws-sdk/types/dist-types/dns.d.ts b/node_modules/@aws-sdk/types/dist-types/dns.d.ts deleted file mode 100644 index 8348cc49..00000000 --- a/node_modules/@aws-sdk/types/dist-types/dns.d.ts +++ /dev/null @@ -1,85 +0,0 @@ -/** - * @public - * - * DNS record types - */ -export declare enum HostAddressType { - /** - * IPv6 - */ - AAAA = "AAAA", - /** - * IPv4 - */ - A = "A" -} -/** - * @public - */ -export interface HostAddress { - /** - * The {@link HostAddressType} of the host address. - */ - addressType: HostAddressType; - /** - * The resolved numerical address represented as a - * string. - */ - address: string; - /** - * The host name the {@link address} was resolved from. - */ - hostName: string; - /** - * The service record of {@link hostName}. - */ - service?: string; -} -/** - * @public - */ -export interface HostResolverArguments { - /** - * The host name to resolve. - */ - hostName: string; - /** - * The service record of {@link hostName}. - */ - service?: string; -} -/** - * @public - * - * Host Resolver interface for DNS queries - */ -export interface HostResolver { - /** - * Resolves the address(es) for {@link HostResolverArguments} and returns a - * list of addresses with (most likely) two addresses, one {@link HostAddressType.AAAA} - * and one {@link HostAddressType.A}. Calls to this function will likely alter - * the cache (if implemented) so that if there's multiple addresses, a different - * set will be returned on the next call. - * In the case of multi-answer, still only a maximum of two records should be - * returned. The resolver implementation is responsible for caching and rotation - * of the multiple addresses that get returned. - * Implementations don't have to explictly call getaddrinfo(), they can use - * high level abstractions provided in their language runtimes/libraries. - * @param args - arguments with host name query addresses for - * @returns promise with a list of {@link HostAddress} - */ - resolveAddress(args: HostResolverArguments): Promise; - /** - * Reports a failure on a {@link HostAddress} so that the cache (if implemented) - * can accomodate the failure and likely not return the address until it recovers. - * @param addr - host address to report a failure on - */ - reportFailureOnAddress(addr: HostAddress): void; - /** - * Empties the cache (if implemented) for a {@link HostResolverArguments.hostName}. - * If {@link HostResolverArguments.hostName} is not provided, the cache (if - * implemented) is emptied for all host names. - * @param args - optional arguments to empty the cache for - */ - purgeCache(args?: HostResolverArguments): void; -} diff --git a/node_modules/@aws-sdk/types/dist-types/encode.d.ts b/node_modules/@aws-sdk/types/dist-types/encode.d.ts deleted file mode 100644 index 128ee570..00000000 --- a/node_modules/@aws-sdk/types/dist-types/encode.d.ts +++ /dev/null @@ -1 +0,0 @@ -export { MessageDecoder, MessageEncoder, AvailableMessage, AvailableMessages } from "@smithy/types"; diff --git a/node_modules/@aws-sdk/types/dist-types/endpoint.d.ts b/node_modules/@aws-sdk/types/dist-types/endpoint.d.ts deleted file mode 100644 index f2ffaf55..00000000 --- a/node_modules/@aws-sdk/types/dist-types/endpoint.d.ts +++ /dev/null @@ -1 +0,0 @@ -export { EndpointARN, EndpointPartition, EndpointURLScheme, EndpointURL, EndpointObjectProperty, EndpointV2, EndpointParameters, } from "@smithy/types"; diff --git a/node_modules/@aws-sdk/types/dist-types/eventStream.d.ts b/node_modules/@aws-sdk/types/dist-types/eventStream.d.ts deleted file mode 100644 index cee02f7e..00000000 --- a/node_modules/@aws-sdk/types/dist-types/eventStream.d.ts +++ /dev/null @@ -1 +0,0 @@ -export { Message, MessageHeaders, BooleanHeaderValue, ByteHeaderValue, ShortHeaderValue, IntegerHeaderValue, LongHeaderValue, BinaryHeaderValue, StringHeaderValue, TimestampHeaderValue, UuidHeaderValue, MessageHeaderValue, Int64, EventStreamSerdeContext, EventStreamMarshaller, EventStreamMarshallerDeserFn, EventStreamMarshallerSerFn, EventStreamPayloadHandler, EventStreamPayloadHandlerProvider, EventStreamRequestSigner, EventStreamSerdeProvider, EventStreamSignerProvider, } from "@smithy/types"; diff --git a/node_modules/@aws-sdk/types/dist-types/extensions/index.d.ts b/node_modules/@aws-sdk/types/dist-types/extensions/index.d.ts deleted file mode 100644 index 5a45bcbc..00000000 --- a/node_modules/@aws-sdk/types/dist-types/extensions/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { Provider } from "@smithy/types"; -/** - * @internal - */ -export interface AwsRegionExtensionConfiguration { - setRegion(region: Provider): void; - region(): Provider; -} diff --git a/node_modules/@aws-sdk/types/dist-types/http.d.ts b/node_modules/@aws-sdk/types/dist-types/http.d.ts deleted file mode 100644 index 7594b5ad..00000000 --- a/node_modules/@aws-sdk/types/dist-types/http.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { HttpResponse } from "@smithy/types"; -export { Endpoint, HeaderBag, HttpHandlerOptions, HttpMessage, HttpRequest, HttpResponse, QueryParameterBag, } from "@smithy/types"; -/** - * @public - * - * A collection of key/value pairs with case-insensitive keys. - */ -export interface Headers extends Map { - /** - * Returns a new instance of Headers with the specified header set to the - * provided value. Does not modify the original Headers instance. - * - * @param headerName - The name of the header to add or overwrite - * @param headerValue - The value to which the header should be set - */ - withHeader(headerName: string, headerValue: string): Headers; - /** - * Returns a new instance of Headers without the specified header. Does not - * modify the original Headers instance. - * - * @param headerName - The name of the header to remove - */ - withoutHeader(headerName: string): Headers; -} -/** - * @public - * - * Represents HTTP message whose body has been resolved to a string. This is - * used in parsing http message. - */ -export interface ResolvedHttpResponse extends HttpResponse { - body: string; -} diff --git a/node_modules/@aws-sdk/types/dist-types/identity/AnonymousIdentity.d.ts b/node_modules/@aws-sdk/types/dist-types/identity/AnonymousIdentity.d.ts deleted file mode 100644 index c7006e3d..00000000 --- a/node_modules/@aws-sdk/types/dist-types/identity/AnonymousIdentity.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { Identity } from "./Identity"; -/** - * @public - */ -export interface AnonymousIdentity extends Identity { -} diff --git a/node_modules/@aws-sdk/types/dist-types/identity/AwsCredentialIdentity.d.ts b/node_modules/@aws-sdk/types/dist-types/identity/AwsCredentialIdentity.d.ts deleted file mode 100644 index 1113d9c3..00000000 --- a/node_modules/@aws-sdk/types/dist-types/identity/AwsCredentialIdentity.d.ts +++ /dev/null @@ -1 +0,0 @@ -export { AwsCredentialIdentity, AwsCredentialIdentityProvider } from "@smithy/types"; diff --git a/node_modules/@aws-sdk/types/dist-types/identity/Identity.d.ts b/node_modules/@aws-sdk/types/dist-types/identity/Identity.d.ts deleted file mode 100644 index 4175fd34..00000000 --- a/node_modules/@aws-sdk/types/dist-types/identity/Identity.d.ts +++ /dev/null @@ -1 +0,0 @@ -export { Identity, IdentityProvider } from "@smithy/types"; diff --git a/node_modules/@aws-sdk/types/dist-types/identity/LoginIdentity.d.ts b/node_modules/@aws-sdk/types/dist-types/identity/LoginIdentity.d.ts deleted file mode 100644 index 13793f98..00000000 --- a/node_modules/@aws-sdk/types/dist-types/identity/LoginIdentity.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { Identity, IdentityProvider } from "./Identity"; -/** - * @public - */ -export interface LoginIdentity extends Identity { - /** - * Identity username - */ - readonly username: string; - /** - * Identity password - */ - readonly password: string; -} -/** - * @public - */ -export type LoginIdentityProvider = IdentityProvider; diff --git a/node_modules/@aws-sdk/types/dist-types/identity/TokenIdentity.d.ts b/node_modules/@aws-sdk/types/dist-types/identity/TokenIdentity.d.ts deleted file mode 100644 index d64a63e9..00000000 --- a/node_modules/@aws-sdk/types/dist-types/identity/TokenIdentity.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { Identity, IdentityProvider } from "./Identity"; -/** - * @public - */ -export interface TokenIdentity extends Identity { - /** - * The literal token string - */ - readonly token: string; -} -/** - * @public - */ -export type TokenIdentityProvider = IdentityProvider; diff --git a/node_modules/@aws-sdk/types/dist-types/identity/index.d.ts b/node_modules/@aws-sdk/types/dist-types/identity/index.d.ts deleted file mode 100644 index 863e78e8..00000000 --- a/node_modules/@aws-sdk/types/dist-types/identity/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export * from "./AnonymousIdentity"; -export * from "./AwsCredentialIdentity"; -export * from "./Identity"; -export * from "./LoginIdentity"; -export * from "./TokenIdentity"; diff --git a/node_modules/@aws-sdk/types/dist-types/index.d.ts b/node_modules/@aws-sdk/types/dist-types/index.d.ts deleted file mode 100644 index ab64cd94..00000000 --- a/node_modules/@aws-sdk/types/dist-types/index.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -export * from "./abort"; -export * from "./auth"; -export * from "./blob/blob-types"; -export * from "./checksum"; -export * from "./client"; -export * from "./command"; -export * from "./connection"; -export * from "./credentials"; -export * from "./crypto"; -export * from "./dns"; -export * from "./encode"; -export * from "./endpoint"; -export * from "./eventStream"; -export * from "./extensions"; -export * from "./http"; -export * from "./identity"; -export * from "./logger"; -export * from "./middleware"; -export * from "./pagination"; -export * from "./profile"; -export * from "./request"; -export * from "./response"; -export * from "./retry"; -export * from "./serde"; -export * from "./shapes"; -export * from "./signature"; -export * from "./stream"; -export * from "./token"; -export * from "./transfer"; -export * from "./uri"; -export * from "./util"; -export * from "./waiter"; diff --git a/node_modules/@aws-sdk/types/dist-types/logger.d.ts b/node_modules/@aws-sdk/types/dist-types/logger.d.ts deleted file mode 100644 index c363a8e8..00000000 --- a/node_modules/@aws-sdk/types/dist-types/logger.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { Logger } from "@smithy/types"; -export { Logger } from "@smithy/types"; -/** - * @public - * - * A list of logger's log level. These levels are sorted in - * order of increasing severity. Each log level includes itself and all - * the levels behind itself. - * - * @example `new Logger({logLevel: 'warn'})` will print all the warn and error - * message. - */ -export type LogLevel = "all" | "trace" | "debug" | "log" | "info" | "warn" | "error" | "off"; -/** - * @public - * - * An object consumed by Logger constructor to initiate a logger object. - */ -export interface LoggerOptions { - logger?: Logger; - logLevel?: LogLevel; -} diff --git a/node_modules/@aws-sdk/types/dist-types/middleware.d.ts b/node_modules/@aws-sdk/types/dist-types/middleware.d.ts deleted file mode 100644 index 18966f7a..00000000 --- a/node_modules/@aws-sdk/types/dist-types/middleware.d.ts +++ /dev/null @@ -1 +0,0 @@ -export { AbsoluteLocation, BuildHandler, BuildHandlerArguments, BuildHandlerOptions, BuildHandlerOutput, BuildMiddleware, DeserializeHandler, DeserializeHandlerArguments, DeserializeHandlerOptions, DeserializeHandlerOutput, DeserializeMiddleware, FinalizeHandler, FinalizeHandlerArguments, FinalizeHandlerOutput, FinalizeRequestHandlerOptions, FinalizeRequestMiddleware, Handler, HandlerExecutionContext, HandlerOptions, InitializeHandler, InitializeHandlerArguments, InitializeHandlerOptions, InitializeHandlerOutput, InitializeMiddleware, MiddlewareStack, MiddlewareType, Pluggable, Priority, Relation, RelativeLocation, RelativeMiddlewareOptions, SerializeHandler, SerializeHandlerArguments, SerializeHandlerOptions, SerializeHandlerOutput, SerializeMiddleware, Step, Terminalware, } from "@smithy/types"; diff --git a/node_modules/@aws-sdk/types/dist-types/pagination.d.ts b/node_modules/@aws-sdk/types/dist-types/pagination.d.ts deleted file mode 100644 index af791b0f..00000000 --- a/node_modules/@aws-sdk/types/dist-types/pagination.d.ts +++ /dev/null @@ -1 +0,0 @@ -export { PaginationConfiguration, Paginator } from "@smithy/types"; diff --git a/node_modules/@aws-sdk/types/dist-types/profile.d.ts b/node_modules/@aws-sdk/types/dist-types/profile.d.ts deleted file mode 100644 index 9916f3bf..00000000 --- a/node_modules/@aws-sdk/types/dist-types/profile.d.ts +++ /dev/null @@ -1 +0,0 @@ -export { IniSection, Profile, ParsedIniData, SharedConfigFiles } from "@smithy/types"; diff --git a/node_modules/@aws-sdk/types/dist-types/request.d.ts b/node_modules/@aws-sdk/types/dist-types/request.d.ts deleted file mode 100644 index 95405d1b..00000000 --- a/node_modules/@aws-sdk/types/dist-types/request.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * @internal - */ -export interface Request { - destination: URL; - body?: any; -} diff --git a/node_modules/@aws-sdk/types/dist-types/response.d.ts b/node_modules/@aws-sdk/types/dist-types/response.d.ts deleted file mode 100644 index 8d993504..00000000 --- a/node_modules/@aws-sdk/types/dist-types/response.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -export { MetadataBearer, ResponseMetadata } from "@smithy/types"; -/** - * @internal - */ -export interface Response { - body: any; -} diff --git a/node_modules/@aws-sdk/types/dist-types/retry.d.ts b/node_modules/@aws-sdk/types/dist-types/retry.d.ts deleted file mode 100644 index 4b7eb98b..00000000 --- a/node_modules/@aws-sdk/types/dist-types/retry.d.ts +++ /dev/null @@ -1 +0,0 @@ -export { ExponentialBackoffJitterType, ExponentialBackoffStrategyOptions, RetryBackoffStrategy, RetryErrorInfo, RetryErrorType, RetryStrategyOptions, RetryStrategyV2, RetryToken, StandardRetryBackoffStrategy, StandardRetryToken, } from "@smithy/types"; diff --git a/node_modules/@aws-sdk/types/dist-types/serde.d.ts b/node_modules/@aws-sdk/types/dist-types/serde.d.ts deleted file mode 100644 index c4cab796..00000000 --- a/node_modules/@aws-sdk/types/dist-types/serde.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -export { EndpointBearer, StreamCollector, SerdeContext, ResponseDeserializer, RequestSerializer, SdkStreamMixin, SdkStream, WithSdkStreamMixin, SdkStreamMixinInjector, SdkStreamSerdeContext, } from "@smithy/types"; -/** - * @public - * - * Declare DOM interfaces in case dom.d.ts is not added to the tsconfig lib, causing - * interfaces to not be defined. For developers with dom.d.ts added, the interfaces will - * be merged correctly. - * - * This is also required for any clients with streaming interfaces where the corresponding - * types are also referred. The type is only declared here once since this `@aws-sdk/types` - * is depended by all `@aws-sdk` packages. - */ -declare global { - /** - * @public - */ - export interface ReadableStream { - } - /** - * @public - */ - export interface Blob { - } -} diff --git a/node_modules/@aws-sdk/types/dist-types/shapes.d.ts b/node_modules/@aws-sdk/types/dist-types/shapes.d.ts deleted file mode 100644 index bc19cc78..00000000 --- a/node_modules/@aws-sdk/types/dist-types/shapes.d.ts +++ /dev/null @@ -1 +0,0 @@ -export { DocumentType, RetryableTrait, SmithyException, SdkError } from "@smithy/types"; diff --git a/node_modules/@aws-sdk/types/dist-types/signature.d.ts b/node_modules/@aws-sdk/types/dist-types/signature.d.ts deleted file mode 100644 index 23cbe97e..00000000 --- a/node_modules/@aws-sdk/types/dist-types/signature.d.ts +++ /dev/null @@ -1 +0,0 @@ -export { DateInput, EventSigner, EventSigningArguments, FormattedEvent, MessageSigner, RequestSigningArguments, RequestPresigner, RequestPresigningArguments, RequestSigner, SignableMessage, SignedMessage, SigningArguments, StringSigner, } from "@smithy/types"; diff --git a/node_modules/@aws-sdk/types/dist-types/stream.d.ts b/node_modules/@aws-sdk/types/dist-types/stream.d.ts deleted file mode 100644 index 9092844a..00000000 --- a/node_modules/@aws-sdk/types/dist-types/stream.d.ts +++ /dev/null @@ -1 +0,0 @@ -export { GetAwsChunkedEncodingStream, GetAwsChunkedEncodingStreamOptions } from "@smithy/types"; diff --git a/node_modules/@aws-sdk/types/dist-types/token.d.ts b/node_modules/@aws-sdk/types/dist-types/token.d.ts deleted file mode 100644 index a68d58f8..00000000 --- a/node_modules/@aws-sdk/types/dist-types/token.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { TokenIdentity } from "./identity"; -import { Provider } from "./util"; -/** - * @public - * - * An object representing temporary or permanent AWS token. - * - * @deprecated Use {@link TokenIdentity} - */ -export interface Token extends TokenIdentity { -} -/** - * @public - * - * @deprecated Use {@link TokenIdentityProvider} - */ -export type TokenProvider = Provider; diff --git a/node_modules/@aws-sdk/types/dist-types/transfer.d.ts b/node_modules/@aws-sdk/types/dist-types/transfer.d.ts deleted file mode 100644 index ba781903..00000000 --- a/node_modules/@aws-sdk/types/dist-types/transfer.d.ts +++ /dev/null @@ -1 +0,0 @@ -export { RequestContext, RequestHandler, RequestHandlerMetadata, RequestHandlerOutput, RequestHandlerProtocol, } from "@smithy/types"; diff --git a/node_modules/@aws-sdk/types/dist-types/ts3.4/abort.d.ts b/node_modules/@aws-sdk/types/dist-types/ts3.4/abort.d.ts deleted file mode 100644 index dad6079f..00000000 --- a/node_modules/@aws-sdk/types/dist-types/ts3.4/abort.d.ts +++ /dev/null @@ -1 +0,0 @@ -export { AbortController, AbortHandler, AbortSignal } from "@smithy/types"; diff --git a/node_modules/@aws-sdk/types/dist-types/ts3.4/auth.d.ts b/node_modules/@aws-sdk/types/dist-types/ts3.4/auth.d.ts deleted file mode 100644 index 8a02dbc8..00000000 --- a/node_modules/@aws-sdk/types/dist-types/ts3.4/auth.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export { - AuthScheme, - HttpAuthDefinition, - HttpAuthLocation, -} from "@smithy/types"; diff --git a/node_modules/@aws-sdk/types/dist-types/ts3.4/blob/blob-types.d.ts b/node_modules/@aws-sdk/types/dist-types/ts3.4/blob/blob-types.d.ts deleted file mode 100644 index df39efe0..00000000 --- a/node_modules/@aws-sdk/types/dist-types/ts3.4/blob/blob-types.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { BlobTypes } from "@smithy/types"; -export { BlobTypes }; diff --git a/node_modules/@aws-sdk/types/dist-types/ts3.4/blob/runtime-blob-types.browser.d.ts b/node_modules/@aws-sdk/types/dist-types/ts3.4/blob/runtime-blob-types.browser.d.ts deleted file mode 100644 index 9980e3b7..00000000 --- a/node_modules/@aws-sdk/types/dist-types/ts3.4/blob/runtime-blob-types.browser.d.ts +++ /dev/null @@ -1 +0,0 @@ -export type RuntimeBlobTypes = Blob | ReadableStream; diff --git a/node_modules/@aws-sdk/types/dist-types/ts3.4/blob/runtime-blob-types.node.d.ts b/node_modules/@aws-sdk/types/dist-types/ts3.4/blob/runtime-blob-types.node.d.ts deleted file mode 100644 index decb0cff..00000000 --- a/node_modules/@aws-sdk/types/dist-types/ts3.4/blob/runtime-blob-types.node.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { Readable } from "stream"; -export type RuntimeBlobTypes = Readable | Buffer; diff --git a/node_modules/@aws-sdk/types/dist-types/ts3.4/checksum.d.ts b/node_modules/@aws-sdk/types/dist-types/ts3.4/checksum.d.ts deleted file mode 100644 index f805d729..00000000 --- a/node_modules/@aws-sdk/types/dist-types/ts3.4/checksum.d.ts +++ /dev/null @@ -1 +0,0 @@ -export { Checksum, ChecksumConstructor } from "@smithy/types"; diff --git a/node_modules/@aws-sdk/types/dist-types/ts3.4/client.d.ts b/node_modules/@aws-sdk/types/dist-types/ts3.4/client.d.ts deleted file mode 100644 index d6b3dcf9..00000000 --- a/node_modules/@aws-sdk/types/dist-types/ts3.4/client.d.ts +++ /dev/null @@ -1 +0,0 @@ -export { Client } from "@smithy/types"; diff --git a/node_modules/@aws-sdk/types/dist-types/ts3.4/command.d.ts b/node_modules/@aws-sdk/types/dist-types/ts3.4/command.d.ts deleted file mode 100644 index 38872670..00000000 --- a/node_modules/@aws-sdk/types/dist-types/ts3.4/command.d.ts +++ /dev/null @@ -1 +0,0 @@ -export { Command } from "@smithy/types"; diff --git a/node_modules/@aws-sdk/types/dist-types/ts3.4/connection.d.ts b/node_modules/@aws-sdk/types/dist-types/ts3.4/connection.d.ts deleted file mode 100644 index 36ebd004..00000000 --- a/node_modules/@aws-sdk/types/dist-types/ts3.4/connection.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export { - ConnectConfiguration, - ConnectionManager, - ConnectionManagerConfiguration, - ConnectionPool, -} from "@smithy/types"; diff --git a/node_modules/@aws-sdk/types/dist-types/ts3.4/credentials.d.ts b/node_modules/@aws-sdk/types/dist-types/ts3.4/credentials.d.ts deleted file mode 100644 index 2cd22147..00000000 --- a/node_modules/@aws-sdk/types/dist-types/ts3.4/credentials.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { AwsCredentialIdentity } from "./identity"; -import { Provider } from "./util"; -export interface Credentials extends AwsCredentialIdentity {} -export type CredentialProvider = Provider; diff --git a/node_modules/@aws-sdk/types/dist-types/ts3.4/crypto.d.ts b/node_modules/@aws-sdk/types/dist-types/ts3.4/crypto.d.ts deleted file mode 100644 index dfe61bfe..00000000 --- a/node_modules/@aws-sdk/types/dist-types/ts3.4/crypto.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -export { - Hash, - HashConstructor, - StreamHasher, - randomValues, - SourceData, -} from "@smithy/types"; diff --git a/node_modules/@aws-sdk/types/dist-types/ts3.4/dns.d.ts b/node_modules/@aws-sdk/types/dist-types/ts3.4/dns.d.ts deleted file mode 100644 index d8999492..00000000 --- a/node_modules/@aws-sdk/types/dist-types/ts3.4/dns.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -export declare enum HostAddressType { - AAAA = "AAAA", - A = "A", -} -export interface HostAddress { - addressType: HostAddressType; - address: string; - hostName: string; - service?: string; -} -export interface HostResolverArguments { - hostName: string; - service?: string; -} -export interface HostResolver { - resolveAddress(args: HostResolverArguments): Promise; - reportFailureOnAddress(addr: HostAddress): void; - purgeCache(args?: HostResolverArguments): void; -} diff --git a/node_modules/@aws-sdk/types/dist-types/ts3.4/encode.d.ts b/node_modules/@aws-sdk/types/dist-types/ts3.4/encode.d.ts deleted file mode 100644 index 76966f9b..00000000 --- a/node_modules/@aws-sdk/types/dist-types/ts3.4/encode.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export { - MessageDecoder, - MessageEncoder, - AvailableMessage, - AvailableMessages, -} from "@smithy/types"; diff --git a/node_modules/@aws-sdk/types/dist-types/ts3.4/endpoint.d.ts b/node_modules/@aws-sdk/types/dist-types/ts3.4/endpoint.d.ts deleted file mode 100644 index ff3c7ded..00000000 --- a/node_modules/@aws-sdk/types/dist-types/ts3.4/endpoint.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -export { - EndpointARN, - EndpointPartition, - EndpointURLScheme, - EndpointURL, - EndpointObjectProperty, - EndpointV2, - EndpointParameters, -} from "@smithy/types"; diff --git a/node_modules/@aws-sdk/types/dist-types/ts3.4/eventStream.d.ts b/node_modules/@aws-sdk/types/dist-types/ts3.4/eventStream.d.ts deleted file mode 100644 index e4c04a9b..00000000 --- a/node_modules/@aws-sdk/types/dist-types/ts3.4/eventStream.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -export { - Message, - MessageHeaders, - BooleanHeaderValue, - ByteHeaderValue, - ShortHeaderValue, - IntegerHeaderValue, - LongHeaderValue, - BinaryHeaderValue, - StringHeaderValue, - TimestampHeaderValue, - UuidHeaderValue, - MessageHeaderValue, - Int64, - EventStreamSerdeContext, - EventStreamMarshaller, - EventStreamMarshallerDeserFn, - EventStreamMarshallerSerFn, - EventStreamPayloadHandler, - EventStreamPayloadHandlerProvider, - EventStreamRequestSigner, - EventStreamSerdeProvider, - EventStreamSignerProvider, -} from "@smithy/types"; diff --git a/node_modules/@aws-sdk/types/dist-types/ts3.4/extensions/index.d.ts b/node_modules/@aws-sdk/types/dist-types/ts3.4/extensions/index.d.ts deleted file mode 100644 index accf5ec7..00000000 --- a/node_modules/@aws-sdk/types/dist-types/ts3.4/extensions/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { Provider } from "@smithy/types"; -export interface AwsRegionExtensionConfiguration { - setRegion(region: Provider): void; - region(): Provider; -} diff --git a/node_modules/@aws-sdk/types/dist-types/ts3.4/http.d.ts b/node_modules/@aws-sdk/types/dist-types/ts3.4/http.d.ts deleted file mode 100644 index d8e0eab8..00000000 --- a/node_modules/@aws-sdk/types/dist-types/ts3.4/http.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { HttpResponse } from "@smithy/types"; -export { - Endpoint, - HeaderBag, - HttpHandlerOptions, - HttpMessage, - HttpRequest, - HttpResponse, - QueryParameterBag, -} from "@smithy/types"; -export interface Headers extends Map { - withHeader(headerName: string, headerValue: string): Headers; - withoutHeader(headerName: string): Headers; -} -export interface ResolvedHttpResponse extends HttpResponse { - body: string; -} diff --git a/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/AnonymousIdentity.d.ts b/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/AnonymousIdentity.d.ts deleted file mode 100644 index 5b175f60..00000000 --- a/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/AnonymousIdentity.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { Identity } from "./Identity"; -export interface AnonymousIdentity extends Identity {} diff --git a/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/AwsCredentialIdentity.d.ts b/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/AwsCredentialIdentity.d.ts deleted file mode 100644 index 3b7ce8c4..00000000 --- a/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/AwsCredentialIdentity.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export { - AwsCredentialIdentity, - AwsCredentialIdentityProvider, -} from "@smithy/types"; diff --git a/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/Identity.d.ts b/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/Identity.d.ts deleted file mode 100644 index 4175fd34..00000000 --- a/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/Identity.d.ts +++ /dev/null @@ -1 +0,0 @@ -export { Identity, IdentityProvider } from "@smithy/types"; diff --git a/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/LoginIdentity.d.ts b/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/LoginIdentity.d.ts deleted file mode 100644 index 3258bbb2..00000000 --- a/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/LoginIdentity.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { Identity, IdentityProvider } from "./Identity"; -export interface LoginIdentity extends Identity { - readonly username: string; - readonly password: string; -} -export type LoginIdentityProvider = IdentityProvider; diff --git a/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/TokenIdentity.d.ts b/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/TokenIdentity.d.ts deleted file mode 100644 index 4bbb4cc0..00000000 --- a/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/TokenIdentity.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { Identity, IdentityProvider } from "./Identity"; -export interface TokenIdentity extends Identity { - readonly token: string; -} -export type TokenIdentityProvider = IdentityProvider; diff --git a/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/index.d.ts b/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/index.d.ts deleted file mode 100644 index 863e78e8..00000000 --- a/node_modules/@aws-sdk/types/dist-types/ts3.4/identity/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export * from "./AnonymousIdentity"; -export * from "./AwsCredentialIdentity"; -export * from "./Identity"; -export * from "./LoginIdentity"; -export * from "./TokenIdentity"; diff --git a/node_modules/@aws-sdk/types/dist-types/ts3.4/index.d.ts b/node_modules/@aws-sdk/types/dist-types/ts3.4/index.d.ts deleted file mode 100644 index ab64cd94..00000000 --- a/node_modules/@aws-sdk/types/dist-types/ts3.4/index.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -export * from "./abort"; -export * from "./auth"; -export * from "./blob/blob-types"; -export * from "./checksum"; -export * from "./client"; -export * from "./command"; -export * from "./connection"; -export * from "./credentials"; -export * from "./crypto"; -export * from "./dns"; -export * from "./encode"; -export * from "./endpoint"; -export * from "./eventStream"; -export * from "./extensions"; -export * from "./http"; -export * from "./identity"; -export * from "./logger"; -export * from "./middleware"; -export * from "./pagination"; -export * from "./profile"; -export * from "./request"; -export * from "./response"; -export * from "./retry"; -export * from "./serde"; -export * from "./shapes"; -export * from "./signature"; -export * from "./stream"; -export * from "./token"; -export * from "./transfer"; -export * from "./uri"; -export * from "./util"; -export * from "./waiter"; diff --git a/node_modules/@aws-sdk/types/dist-types/ts3.4/logger.d.ts b/node_modules/@aws-sdk/types/dist-types/ts3.4/logger.d.ts deleted file mode 100644 index c7149157..00000000 --- a/node_modules/@aws-sdk/types/dist-types/ts3.4/logger.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { Logger } from "@smithy/types"; -export { Logger } from "@smithy/types"; -export type LogLevel = - | "all" - | "trace" - | "debug" - | "log" - | "info" - | "warn" - | "error" - | "off"; -export interface LoggerOptions { - logger?: Logger; - logLevel?: LogLevel; -} diff --git a/node_modules/@aws-sdk/types/dist-types/ts3.4/middleware.d.ts b/node_modules/@aws-sdk/types/dist-types/ts3.4/middleware.d.ts deleted file mode 100644 index 3ae51bd9..00000000 --- a/node_modules/@aws-sdk/types/dist-types/ts3.4/middleware.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -export { - AbsoluteLocation, - BuildHandler, - BuildHandlerArguments, - BuildHandlerOptions, - BuildHandlerOutput, - BuildMiddleware, - DeserializeHandler, - DeserializeHandlerArguments, - DeserializeHandlerOptions, - DeserializeHandlerOutput, - DeserializeMiddleware, - FinalizeHandler, - FinalizeHandlerArguments, - FinalizeHandlerOutput, - FinalizeRequestHandlerOptions, - FinalizeRequestMiddleware, - Handler, - HandlerExecutionContext, - HandlerOptions, - InitializeHandler, - InitializeHandlerArguments, - InitializeHandlerOptions, - InitializeHandlerOutput, - InitializeMiddleware, - MiddlewareStack, - MiddlewareType, - Pluggable, - Priority, - Relation, - RelativeLocation, - RelativeMiddlewareOptions, - SerializeHandler, - SerializeHandlerArguments, - SerializeHandlerOptions, - SerializeHandlerOutput, - SerializeMiddleware, - Step, - Terminalware, -} from "@smithy/types"; diff --git a/node_modules/@aws-sdk/types/dist-types/ts3.4/pagination.d.ts b/node_modules/@aws-sdk/types/dist-types/ts3.4/pagination.d.ts deleted file mode 100644 index af791b0f..00000000 --- a/node_modules/@aws-sdk/types/dist-types/ts3.4/pagination.d.ts +++ /dev/null @@ -1 +0,0 @@ -export { PaginationConfiguration, Paginator } from "@smithy/types"; diff --git a/node_modules/@aws-sdk/types/dist-types/ts3.4/profile.d.ts b/node_modules/@aws-sdk/types/dist-types/ts3.4/profile.d.ts deleted file mode 100644 index b3813d83..00000000 --- a/node_modules/@aws-sdk/types/dist-types/ts3.4/profile.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export { - IniSection, - Profile, - ParsedIniData, - SharedConfigFiles, -} from "@smithy/types"; diff --git a/node_modules/@aws-sdk/types/dist-types/ts3.4/request.d.ts b/node_modules/@aws-sdk/types/dist-types/ts3.4/request.d.ts deleted file mode 100644 index 5c6e7938..00000000 --- a/node_modules/@aws-sdk/types/dist-types/ts3.4/request.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export interface Request { - destination: URL; - body?: any; -} diff --git a/node_modules/@aws-sdk/types/dist-types/ts3.4/response.d.ts b/node_modules/@aws-sdk/types/dist-types/ts3.4/response.d.ts deleted file mode 100644 index 4e5fcd0e..00000000 --- a/node_modules/@aws-sdk/types/dist-types/ts3.4/response.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export { MetadataBearer, ResponseMetadata } from "@smithy/types"; -export interface Response { - body: any; -} diff --git a/node_modules/@aws-sdk/types/dist-types/ts3.4/retry.d.ts b/node_modules/@aws-sdk/types/dist-types/ts3.4/retry.d.ts deleted file mode 100644 index 8fc946ad..00000000 --- a/node_modules/@aws-sdk/types/dist-types/ts3.4/retry.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -export { - ExponentialBackoffJitterType, - ExponentialBackoffStrategyOptions, - RetryBackoffStrategy, - RetryErrorInfo, - RetryErrorType, - RetryStrategyOptions, - RetryStrategyV2, - RetryToken, - StandardRetryBackoffStrategy, - StandardRetryToken, -} from "@smithy/types"; diff --git a/node_modules/@aws-sdk/types/dist-types/ts3.4/serde.d.ts b/node_modules/@aws-sdk/types/dist-types/ts3.4/serde.d.ts deleted file mode 100644 index a7ed76f3..00000000 --- a/node_modules/@aws-sdk/types/dist-types/ts3.4/serde.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -export { - EndpointBearer, - StreamCollector, - SerdeContext, - ResponseDeserializer, - RequestSerializer, - SdkStreamMixin, - SdkStream, - WithSdkStreamMixin, - SdkStreamMixinInjector, - SdkStreamSerdeContext, -} from "@smithy/types"; -declare global { - export interface ReadableStream {} - export interface Blob {} -} diff --git a/node_modules/@aws-sdk/types/dist-types/ts3.4/shapes.d.ts b/node_modules/@aws-sdk/types/dist-types/ts3.4/shapes.d.ts deleted file mode 100644 index d1efa9a0..00000000 --- a/node_modules/@aws-sdk/types/dist-types/ts3.4/shapes.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export { - DocumentType, - RetryableTrait, - SmithyException, - SdkError, -} from "@smithy/types"; diff --git a/node_modules/@aws-sdk/types/dist-types/ts3.4/signature.d.ts b/node_modules/@aws-sdk/types/dist-types/ts3.4/signature.d.ts deleted file mode 100644 index cbabd757..00000000 --- a/node_modules/@aws-sdk/types/dist-types/ts3.4/signature.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -export { - DateInput, - EventSigner, - EventSigningArguments, - FormattedEvent, - MessageSigner, - RequestSigningArguments, - RequestPresigner, - RequestPresigningArguments, - RequestSigner, - SignableMessage, - SignedMessage, - SigningArguments, - StringSigner, -} from "@smithy/types"; diff --git a/node_modules/@aws-sdk/types/dist-types/ts3.4/stream.d.ts b/node_modules/@aws-sdk/types/dist-types/ts3.4/stream.d.ts deleted file mode 100644 index 1b794136..00000000 --- a/node_modules/@aws-sdk/types/dist-types/ts3.4/stream.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export { - GetAwsChunkedEncodingStream, - GetAwsChunkedEncodingStreamOptions, -} from "@smithy/types"; diff --git a/node_modules/@aws-sdk/types/dist-types/ts3.4/token.d.ts b/node_modules/@aws-sdk/types/dist-types/ts3.4/token.d.ts deleted file mode 100644 index c33e5066..00000000 --- a/node_modules/@aws-sdk/types/dist-types/ts3.4/token.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { TokenIdentity } from "./identity"; -import { Provider } from "./util"; -export interface Token extends TokenIdentity {} -export type TokenProvider = Provider; diff --git a/node_modules/@aws-sdk/types/dist-types/ts3.4/transfer.d.ts b/node_modules/@aws-sdk/types/dist-types/ts3.4/transfer.d.ts deleted file mode 100644 index 04a7f87a..00000000 --- a/node_modules/@aws-sdk/types/dist-types/ts3.4/transfer.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -export { - RequestContext, - RequestHandler, - RequestHandlerMetadata, - RequestHandlerOutput, - RequestHandlerProtocol, -} from "@smithy/types"; diff --git a/node_modules/@aws-sdk/types/dist-types/ts3.4/uri.d.ts b/node_modules/@aws-sdk/types/dist-types/ts3.4/uri.d.ts deleted file mode 100644 index 297dfe46..00000000 --- a/node_modules/@aws-sdk/types/dist-types/ts3.4/uri.d.ts +++ /dev/null @@ -1 +0,0 @@ -export { URI } from "@smithy/types"; diff --git a/node_modules/@aws-sdk/types/dist-types/ts3.4/util.d.ts b/node_modules/@aws-sdk/types/dist-types/ts3.4/util.d.ts deleted file mode 100644 index e7e43e62..00000000 --- a/node_modules/@aws-sdk/types/dist-types/ts3.4/util.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -export { - Encoder, - Decoder, - Provider, - UserAgentPair, - UserAgent, - UrlParser, - MemoizedProvider, - BodyLengthCalculator, - RegionInfo, - RegionInfoProviderOptions, - RegionInfoProvider, - RetryStrategy, -} from "@smithy/types"; diff --git a/node_modules/@aws-sdk/types/dist-types/ts3.4/waiter.d.ts b/node_modules/@aws-sdk/types/dist-types/ts3.4/waiter.d.ts deleted file mode 100644 index bb98020d..00000000 --- a/node_modules/@aws-sdk/types/dist-types/ts3.4/waiter.d.ts +++ /dev/null @@ -1 +0,0 @@ -export { WaiterConfiguration } from "@smithy/types"; diff --git a/node_modules/@aws-sdk/types/dist-types/uri.d.ts b/node_modules/@aws-sdk/types/dist-types/uri.d.ts deleted file mode 100644 index 297dfe46..00000000 --- a/node_modules/@aws-sdk/types/dist-types/uri.d.ts +++ /dev/null @@ -1 +0,0 @@ -export { URI } from "@smithy/types"; diff --git a/node_modules/@aws-sdk/types/dist-types/util.d.ts b/node_modules/@aws-sdk/types/dist-types/util.d.ts deleted file mode 100644 index fd059b64..00000000 --- a/node_modules/@aws-sdk/types/dist-types/util.d.ts +++ /dev/null @@ -1 +0,0 @@ -export { Encoder, Decoder, Provider, UserAgentPair, UserAgent, UrlParser, MemoizedProvider, BodyLengthCalculator, RegionInfo, RegionInfoProviderOptions, RegionInfoProvider, RetryStrategy, } from "@smithy/types"; diff --git a/node_modules/@aws-sdk/types/dist-types/waiter.d.ts b/node_modules/@aws-sdk/types/dist-types/waiter.d.ts deleted file mode 100644 index bb98020d..00000000 --- a/node_modules/@aws-sdk/types/dist-types/waiter.d.ts +++ /dev/null @@ -1 +0,0 @@ -export { WaiterConfiguration } from "@smithy/types"; diff --git a/node_modules/@aws-sdk/types/package.json b/node_modules/@aws-sdk/types/package.json deleted file mode 100755 index c4d5afa9..00000000 --- a/node_modules/@aws-sdk/types/package.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "name": "@aws-sdk/types", - "version": "3.451.0", - "main": "./dist-cjs/index.js", - "module": "./dist-es/index.js", - "types": "./dist-types/index.d.ts", - "description": "Types for the AWS SDK", - "scripts": { - "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", - "build:cjs": "tsc -p tsconfig.cjs.json", - "build:es": "tsc -p tsconfig.es.json", - "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build", - "build:types": "tsc -p tsconfig.types.json", - "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", - "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "extract:docs": "api-extractor run --local", - "test": "tsc -p tsconfig.test.json" - }, - "author": { - "name": "AWS SDK for JavaScript Team", - "url": "https://aws.amazon.com/javascript/" - }, - "license": "Apache-2.0", - "engines": { - "node": ">=14.0.0" - }, - "typesVersions": { - "<4.0": { - "dist-types/*": [ - "dist-types/ts3.4/*" - ] - } - }, - "files": [ - "dist-*/**" - ], - "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/types", - "repository": { - "type": "git", - "url": "https://github.com/aws/aws-sdk-js-v3.git", - "directory": "packages/types" - }, - "dependencies": { - "@smithy/types": "^2.5.0", - "tslib": "^2.5.0" - }, - "devDependencies": { - "@tsconfig/recommended": "1.0.1", - "concurrently": "7.0.0", - "downlevel-dts": "0.10.1", - "rimraf": "3.0.2", - "typedoc": "0.23.23", - "typescript": "~4.9.5" - }, - "typedoc": { - "entryPoint": "src/index.ts" - }, - "browser": { - "./dist-es/blob/runtime-blob-types.node": "./dist-es/blob/runtime-blob-types.browser" - }, - "react-native": { - "./dist-es/blob/runtime-blob-types.node": "./dist-es/blob/runtime-blob-types.browser", - "./dist-cjs/blob/runtime-blob-types.node": "./dist-cjs/blob/runtime-blob-types.browser" - } -} diff --git a/node_modules/@aws-sdk/util-endpoints/LICENSE b/node_modules/@aws-sdk/util-endpoints/LICENSE deleted file mode 100644 index 7b6491ba..00000000 --- a/node_modules/@aws-sdk/util-endpoints/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. \ No newline at end of file diff --git a/node_modules/@aws-sdk/util-endpoints/README.md b/node_modules/@aws-sdk/util-endpoints/README.md deleted file mode 100644 index 641f54a2..00000000 --- a/node_modules/@aws-sdk/util-endpoints/README.md +++ /dev/null @@ -1,6 +0,0 @@ -# @aws-sdk/util-endpoints - -[![NPM version](https://img.shields.io/npm/v/@aws-sdk/util-endpoints/latest.svg)](https://www.npmjs.com/package/@aws-sdk/util-endpoints) -[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/util-endpoints.svg)](https://www.npmjs.com/package/@aws-sdk/util-endpoints) - -> An internal package diff --git a/node_modules/@aws-sdk/util-endpoints/dist-cjs/aws.js b/node_modules/@aws-sdk/util-endpoints/dist-cjs/aws.js deleted file mode 100644 index 7b375c8e..00000000 --- a/node_modules/@aws-sdk/util-endpoints/dist-cjs/aws.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const util_endpoints_1 = require("@smithy/util-endpoints"); -const isVirtualHostableS3Bucket_1 = require("./lib/aws/isVirtualHostableS3Bucket"); -const parseArn_1 = require("./lib/aws/parseArn"); -const partition_1 = require("./lib/aws/partition"); -const awsEndpointFunctions = { - isVirtualHostableS3Bucket: isVirtualHostableS3Bucket_1.isVirtualHostableS3Bucket, - parseArn: parseArn_1.parseArn, - partition: partition_1.partition, -}; -util_endpoints_1.customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js b/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js deleted file mode 100644 index bb396242..00000000 --- a/node_modules/@aws-sdk/util-endpoints/dist-cjs/index.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./aws"), exports); -tslib_1.__exportStar(require("./lib/aws/partition"), exports); -tslib_1.__exportStar(require("./lib/isIpAddress"), exports); -tslib_1.__exportStar(require("./resolveEndpoint"), exports); -tslib_1.__exportStar(require("./types"), exports); diff --git a/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/index.js b/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/index.js deleted file mode 100644 index 9da97e0b..00000000 --- a/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/index.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./isVirtualHostableS3Bucket"), exports); -tslib_1.__exportStar(require("./parseArn"), exports); -tslib_1.__exportStar(require("./partition"), exports); diff --git a/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/isVirtualHostableS3Bucket.js b/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/isVirtualHostableS3Bucket.js deleted file mode 100644 index bdb3a248..00000000 --- a/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/isVirtualHostableS3Bucket.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isVirtualHostableS3Bucket = void 0; -const util_endpoints_1 = require("@smithy/util-endpoints"); -const isIpAddress_1 = require("../isIpAddress"); -const isVirtualHostableS3Bucket = (value, allowSubDomains = false) => { - if (allowSubDomains) { - for (const label of value.split(".")) { - if (!(0, exports.isVirtualHostableS3Bucket)(label)) { - return false; - } - } - return true; - } - if (!(0, util_endpoints_1.isValidHostLabel)(value)) { - return false; - } - if (value.length < 3 || value.length > 63) { - return false; - } - if (value !== value.toLowerCase()) { - return false; - } - if ((0, isIpAddress_1.isIpAddress)(value)) { - return false; - } - return true; -}; -exports.isVirtualHostableS3Bucket = isVirtualHostableS3Bucket; diff --git a/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/parseArn.js b/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/parseArn.js deleted file mode 100644 index 9925939f..00000000 --- a/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/parseArn.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.parseArn = void 0; -const parseArn = (value) => { - const segments = value.split(":"); - if (segments.length < 6) - return null; - const [arn, partition, service, region, accountId, ...resourceId] = segments; - if (arn !== "arn" || partition === "" || service === "" || resourceId[0] === "") - return null; - return { - partition, - service, - region, - accountId, - resourceId: resourceId[0].includes("/") ? resourceId[0].split("/") : resourceId, - }; -}; -exports.parseArn = parseArn; diff --git a/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partition.js b/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partition.js deleted file mode 100644 index 24647b9b..00000000 --- a/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partition.js +++ /dev/null @@ -1,49 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getUserAgentPrefix = exports.useDefaultPartitionInfo = exports.setPartitionInfo = exports.partition = void 0; -const tslib_1 = require("tslib"); -const partitions_json_1 = tslib_1.__importDefault(require("./partitions.json")); -let selectedPartitionsInfo = partitions_json_1.default; -let selectedUserAgentPrefix = ""; -const partition = (value) => { - const { partitions } = selectedPartitionsInfo; - for (const partition of partitions) { - const { regions, outputs } = partition; - for (const [region, regionData] of Object.entries(regions)) { - if (region === value) { - return { - ...outputs, - ...regionData, - }; - } - } - } - for (const partition of partitions) { - const { regionRegex, outputs } = partition; - if (new RegExp(regionRegex).test(value)) { - return { - ...outputs, - }; - } - } - const DEFAULT_PARTITION = partitions.find((partition) => partition.id === "aws"); - if (!DEFAULT_PARTITION) { - throw new Error("Provided region was not found in the partition array or regex," + - " and default partition with id 'aws' doesn't exist."); - } - return { - ...DEFAULT_PARTITION.outputs, - }; -}; -exports.partition = partition; -const setPartitionInfo = (partitionsInfo, userAgentPrefix = "") => { - selectedPartitionsInfo = partitionsInfo; - selectedUserAgentPrefix = userAgentPrefix; -}; -exports.setPartitionInfo = setPartitionInfo; -const useDefaultPartitionInfo = () => { - (0, exports.setPartitionInfo)(partitions_json_1.default, ""); -}; -exports.useDefaultPartitionInfo = useDefaultPartitionInfo; -const getUserAgentPrefix = () => selectedUserAgentPrefix; -exports.getUserAgentPrefix = getUserAgentPrefix; diff --git a/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json b/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json deleted file mode 100644 index 0eeedb41..00000000 --- a/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/aws/partitions.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "partitions": [{ - "id": "aws", - "outputs": { - "dnsSuffix": "amazonaws.com", - "dualStackDnsSuffix": "api.aws", - "implicitGlobalRegion": "us-east-1", - "name": "aws", - "supportsDualStack": true, - "supportsFIPS": true - }, - "regionRegex": "^(us|eu|ap|sa|ca|me|af|il)\\-\\w+\\-\\d+$", - "regions": { - "af-south-1": { - "description": "Africa (Cape Town)" - }, - "ap-east-1": { - "description": "Asia Pacific (Hong Kong)" - }, - "ap-northeast-1": { - "description": "Asia Pacific (Tokyo)" - }, - "ap-northeast-2": { - "description": "Asia Pacific (Seoul)" - }, - "ap-northeast-3": { - "description": "Asia Pacific (Osaka)" - }, - "ap-south-1": { - "description": "Asia Pacific (Mumbai)" - }, - "ap-south-2": { - "description": "Asia Pacific (Hyderabad)" - }, - "ap-southeast-1": { - "description": "Asia Pacific (Singapore)" - }, - "ap-southeast-2": { - "description": "Asia Pacific (Sydney)" - }, - "ap-southeast-3": { - "description": "Asia Pacific (Jakarta)" - }, - "ap-southeast-4": { - "description": "Asia Pacific (Melbourne)" - }, - "aws-global": { - "description": "AWS Standard global region" - }, - "ca-central-1": { - "description": "Canada (Central)" - }, - "eu-central-1": { - "description": "Europe (Frankfurt)" - }, - "eu-central-2": { - "description": "Europe (Zurich)" - }, - "eu-north-1": { - "description": "Europe (Stockholm)" - }, - "eu-south-1": { - "description": "Europe (Milan)" - }, - "eu-south-2": { - "description": "Europe (Spain)" - }, - "eu-west-1": { - "description": "Europe (Ireland)" - }, - "eu-west-2": { - "description": "Europe (London)" - }, - "eu-west-3": { - "description": "Europe (Paris)" - }, - "il-central-1": { - "description": "Israel (Tel Aviv)" - }, - "me-central-1": { - "description": "Middle East (UAE)" - }, - "me-south-1": { - "description": "Middle East (Bahrain)" - }, - "sa-east-1": { - "description": "South America (Sao Paulo)" - }, - "us-east-1": { - "description": "US East (N. Virginia)" - }, - "us-east-2": { - "description": "US East (Ohio)" - }, - "us-west-1": { - "description": "US West (N. California)" - }, - "us-west-2": { - "description": "US West (Oregon)" - } - } - }, { - "id": "aws-cn", - "outputs": { - "dnsSuffix": "amazonaws.com.cn", - "dualStackDnsSuffix": "api.amazonwebservices.com.cn", - "implicitGlobalRegion": "cn-northwest-1", - "name": "aws-cn", - "supportsDualStack": true, - "supportsFIPS": true - }, - "regionRegex": "^cn\\-\\w+\\-\\d+$", - "regions": { - "aws-cn-global": { - "description": "AWS China global region" - }, - "cn-north-1": { - "description": "China (Beijing)" - }, - "cn-northwest-1": { - "description": "China (Ningxia)" - } - } - }, { - "id": "aws-us-gov", - "outputs": { - "dnsSuffix": "amazonaws.com", - "dualStackDnsSuffix": "api.aws", - "implicitGlobalRegion": "us-gov-west-1", - "name": "aws-us-gov", - "supportsDualStack": true, - "supportsFIPS": true - }, - "regionRegex": "^us\\-gov\\-\\w+\\-\\d+$", - "regions": { - "aws-us-gov-global": { - "description": "AWS GovCloud (US) global region" - }, - "us-gov-east-1": { - "description": "AWS GovCloud (US-East)" - }, - "us-gov-west-1": { - "description": "AWS GovCloud (US-West)" - } - } - }, { - "id": "aws-iso", - "outputs": { - "dnsSuffix": "c2s.ic.gov", - "dualStackDnsSuffix": "c2s.ic.gov", - "implicitGlobalRegion": "us-iso-east-1", - "name": "aws-iso", - "supportsDualStack": false, - "supportsFIPS": true - }, - "regionRegex": "^us\\-iso\\-\\w+\\-\\d+$", - "regions": { - "aws-iso-global": { - "description": "AWS ISO (US) global region" - }, - "us-iso-east-1": { - "description": "US ISO East" - }, - "us-iso-west-1": { - "description": "US ISO WEST" - } - } - }, { - "id": "aws-iso-b", - "outputs": { - "dnsSuffix": "sc2s.sgov.gov", - "dualStackDnsSuffix": "sc2s.sgov.gov", - "implicitGlobalRegion": "us-isob-east-1", - "name": "aws-iso-b", - "supportsDualStack": false, - "supportsFIPS": true - }, - "regionRegex": "^us\\-isob\\-\\w+\\-\\d+$", - "regions": { - "aws-iso-b-global": { - "description": "AWS ISOB (US) global region" - }, - "us-isob-east-1": { - "description": "US ISOB East (Ohio)" - } - } - }, { - "id": "aws-iso-e", - "outputs": { - "dnsSuffix": "cloud.adc-e.uk", - "dualStackDnsSuffix": "cloud.adc-e.uk", - "implicitGlobalRegion": "eu-isoe-west-1", - "name": "aws-iso-e", - "supportsDualStack": false, - "supportsFIPS": true - }, - "regionRegex": "^eu\\-isoe\\-\\w+\\-\\d+$", - "regions": {} - }, { - "id": "aws-iso-f", - "outputs": { - "dnsSuffix": "csp.hci.ic.gov", - "dualStackDnsSuffix": "csp.hci.ic.gov", - "implicitGlobalRegion": "us-isof-south-1", - "name": "aws-iso-f", - "supportsDualStack": false, - "supportsFIPS": true - }, - "regionRegex": "^us\\-isof\\-\\w+\\-\\d+$", - "regions": {} - }], - "version": "1.1" -} diff --git a/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/isIpAddress.js b/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/isIpAddress.js deleted file mode 100644 index 9895a5e7..00000000 --- a/node_modules/@aws-sdk/util-endpoints/dist-cjs/lib/isIpAddress.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isIpAddress = void 0; -var util_endpoints_1 = require("@smithy/util-endpoints"); -Object.defineProperty(exports, "isIpAddress", { enumerable: true, get: function () { return util_endpoints_1.isIpAddress; } }); diff --git a/node_modules/@aws-sdk/util-endpoints/dist-cjs/resolveEndpoint.js b/node_modules/@aws-sdk/util-endpoints/dist-cjs/resolveEndpoint.js deleted file mode 100644 index aa904d39..00000000 --- a/node_modules/@aws-sdk/util-endpoints/dist-cjs/resolveEndpoint.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.resolveEndpoint = void 0; -var util_endpoints_1 = require("@smithy/util-endpoints"); -Object.defineProperty(exports, "resolveEndpoint", { enumerable: true, get: function () { return util_endpoints_1.resolveEndpoint; } }); diff --git a/node_modules/@aws-sdk/util-endpoints/dist-cjs/types/EndpointError.js b/node_modules/@aws-sdk/util-endpoints/dist-cjs/types/EndpointError.js deleted file mode 100644 index 846e76f1..00000000 --- a/node_modules/@aws-sdk/util-endpoints/dist-cjs/types/EndpointError.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.EndpointError = void 0; -var util_endpoints_1 = require("@smithy/util-endpoints"); -Object.defineProperty(exports, "EndpointError", { enumerable: true, get: function () { return util_endpoints_1.EndpointError; } }); diff --git a/node_modules/@aws-sdk/util-endpoints/dist-cjs/types/EndpointRuleObject.js b/node_modules/@aws-sdk/util-endpoints/dist-cjs/types/EndpointRuleObject.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@aws-sdk/util-endpoints/dist-cjs/types/EndpointRuleObject.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@aws-sdk/util-endpoints/dist-cjs/types/ErrorRuleObject.js b/node_modules/@aws-sdk/util-endpoints/dist-cjs/types/ErrorRuleObject.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@aws-sdk/util-endpoints/dist-cjs/types/ErrorRuleObject.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@aws-sdk/util-endpoints/dist-cjs/types/RuleSetObject.js b/node_modules/@aws-sdk/util-endpoints/dist-cjs/types/RuleSetObject.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@aws-sdk/util-endpoints/dist-cjs/types/RuleSetObject.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@aws-sdk/util-endpoints/dist-cjs/types/TreeRuleObject.js b/node_modules/@aws-sdk/util-endpoints/dist-cjs/types/TreeRuleObject.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@aws-sdk/util-endpoints/dist-cjs/types/TreeRuleObject.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@aws-sdk/util-endpoints/dist-cjs/types/index.js b/node_modules/@aws-sdk/util-endpoints/dist-cjs/types/index.js deleted file mode 100644 index fe0ed9db..00000000 --- a/node_modules/@aws-sdk/util-endpoints/dist-cjs/types/index.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./EndpointError"), exports); -tslib_1.__exportStar(require("./EndpointRuleObject"), exports); -tslib_1.__exportStar(require("./ErrorRuleObject"), exports); -tslib_1.__exportStar(require("./RuleSetObject"), exports); -tslib_1.__exportStar(require("./TreeRuleObject"), exports); -tslib_1.__exportStar(require("./shared"), exports); diff --git a/node_modules/@aws-sdk/util-endpoints/dist-cjs/types/shared.js b/node_modules/@aws-sdk/util-endpoints/dist-cjs/types/shared.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@aws-sdk/util-endpoints/dist-cjs/types/shared.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@aws-sdk/util-endpoints/dist-es/aws.js b/node_modules/@aws-sdk/util-endpoints/dist-es/aws.js deleted file mode 100644 index f5557d76..00000000 --- a/node_modules/@aws-sdk/util-endpoints/dist-es/aws.js +++ /dev/null @@ -1,10 +0,0 @@ -import { customEndpointFunctions } from "@smithy/util-endpoints"; -import { isVirtualHostableS3Bucket } from "./lib/aws/isVirtualHostableS3Bucket"; -import { parseArn } from "./lib/aws/parseArn"; -import { partition } from "./lib/aws/partition"; -const awsEndpointFunctions = { - isVirtualHostableS3Bucket: isVirtualHostableS3Bucket, - parseArn: parseArn, - partition: partition, -}; -customEndpointFunctions.aws = awsEndpointFunctions; diff --git a/node_modules/@aws-sdk/util-endpoints/dist-es/index.js b/node_modules/@aws-sdk/util-endpoints/dist-es/index.js deleted file mode 100644 index d046d907..00000000 --- a/node_modules/@aws-sdk/util-endpoints/dist-es/index.js +++ /dev/null @@ -1,5 +0,0 @@ -export * from "./aws"; -export * from "./lib/aws/partition"; -export * from "./lib/isIpAddress"; -export * from "./resolveEndpoint"; -export * from "./types"; diff --git a/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/index.js b/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/index.js deleted file mode 100644 index 03be049d..00000000 --- a/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/index.js +++ /dev/null @@ -1,3 +0,0 @@ -export * from "./isVirtualHostableS3Bucket"; -export * from "./parseArn"; -export * from "./partition"; diff --git a/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/isVirtualHostableS3Bucket.js b/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/isVirtualHostableS3Bucket.js deleted file mode 100644 index f2bacc0b..00000000 --- a/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/isVirtualHostableS3Bucket.js +++ /dev/null @@ -1,25 +0,0 @@ -import { isValidHostLabel } from "@smithy/util-endpoints"; -import { isIpAddress } from "../isIpAddress"; -export const isVirtualHostableS3Bucket = (value, allowSubDomains = false) => { - if (allowSubDomains) { - for (const label of value.split(".")) { - if (!isVirtualHostableS3Bucket(label)) { - return false; - } - } - return true; - } - if (!isValidHostLabel(value)) { - return false; - } - if (value.length < 3 || value.length > 63) { - return false; - } - if (value !== value.toLowerCase()) { - return false; - } - if (isIpAddress(value)) { - return false; - } - return true; -}; diff --git a/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/parseArn.js b/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/parseArn.js deleted file mode 100644 index 25cc4287..00000000 --- a/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/parseArn.js +++ /dev/null @@ -1,15 +0,0 @@ -export const parseArn = (value) => { - const segments = value.split(":"); - if (segments.length < 6) - return null; - const [arn, partition, service, region, accountId, ...resourceId] = segments; - if (arn !== "arn" || partition === "" || service === "" || resourceId[0] === "") - return null; - return { - partition, - service, - region, - accountId, - resourceId: resourceId[0].includes("/") ? resourceId[0].split("/") : resourceId, - }; -}; diff --git a/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partition.js b/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partition.js deleted file mode 100644 index 8d39d812..00000000 --- a/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partition.js +++ /dev/null @@ -1,41 +0,0 @@ -import partitionsInfo from "./partitions.json"; -let selectedPartitionsInfo = partitionsInfo; -let selectedUserAgentPrefix = ""; -export const partition = (value) => { - const { partitions } = selectedPartitionsInfo; - for (const partition of partitions) { - const { regions, outputs } = partition; - for (const [region, regionData] of Object.entries(regions)) { - if (region === value) { - return { - ...outputs, - ...regionData, - }; - } - } - } - for (const partition of partitions) { - const { regionRegex, outputs } = partition; - if (new RegExp(regionRegex).test(value)) { - return { - ...outputs, - }; - } - } - const DEFAULT_PARTITION = partitions.find((partition) => partition.id === "aws"); - if (!DEFAULT_PARTITION) { - throw new Error("Provided region was not found in the partition array or regex," + - " and default partition with id 'aws' doesn't exist."); - } - return { - ...DEFAULT_PARTITION.outputs, - }; -}; -export const setPartitionInfo = (partitionsInfo, userAgentPrefix = "") => { - selectedPartitionsInfo = partitionsInfo; - selectedUserAgentPrefix = userAgentPrefix; -}; -export const useDefaultPartitionInfo = () => { - setPartitionInfo(partitionsInfo, ""); -}; -export const getUserAgentPrefix = () => selectedUserAgentPrefix; diff --git a/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json b/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json deleted file mode 100644 index 0eeedb41..00000000 --- a/node_modules/@aws-sdk/util-endpoints/dist-es/lib/aws/partitions.json +++ /dev/null @@ -1,213 +0,0 @@ -{ - "partitions": [{ - "id": "aws", - "outputs": { - "dnsSuffix": "amazonaws.com", - "dualStackDnsSuffix": "api.aws", - "implicitGlobalRegion": "us-east-1", - "name": "aws", - "supportsDualStack": true, - "supportsFIPS": true - }, - "regionRegex": "^(us|eu|ap|sa|ca|me|af|il)\\-\\w+\\-\\d+$", - "regions": { - "af-south-1": { - "description": "Africa (Cape Town)" - }, - "ap-east-1": { - "description": "Asia Pacific (Hong Kong)" - }, - "ap-northeast-1": { - "description": "Asia Pacific (Tokyo)" - }, - "ap-northeast-2": { - "description": "Asia Pacific (Seoul)" - }, - "ap-northeast-3": { - "description": "Asia Pacific (Osaka)" - }, - "ap-south-1": { - "description": "Asia Pacific (Mumbai)" - }, - "ap-south-2": { - "description": "Asia Pacific (Hyderabad)" - }, - "ap-southeast-1": { - "description": "Asia Pacific (Singapore)" - }, - "ap-southeast-2": { - "description": "Asia Pacific (Sydney)" - }, - "ap-southeast-3": { - "description": "Asia Pacific (Jakarta)" - }, - "ap-southeast-4": { - "description": "Asia Pacific (Melbourne)" - }, - "aws-global": { - "description": "AWS Standard global region" - }, - "ca-central-1": { - "description": "Canada (Central)" - }, - "eu-central-1": { - "description": "Europe (Frankfurt)" - }, - "eu-central-2": { - "description": "Europe (Zurich)" - }, - "eu-north-1": { - "description": "Europe (Stockholm)" - }, - "eu-south-1": { - "description": "Europe (Milan)" - }, - "eu-south-2": { - "description": "Europe (Spain)" - }, - "eu-west-1": { - "description": "Europe (Ireland)" - }, - "eu-west-2": { - "description": "Europe (London)" - }, - "eu-west-3": { - "description": "Europe (Paris)" - }, - "il-central-1": { - "description": "Israel (Tel Aviv)" - }, - "me-central-1": { - "description": "Middle East (UAE)" - }, - "me-south-1": { - "description": "Middle East (Bahrain)" - }, - "sa-east-1": { - "description": "South America (Sao Paulo)" - }, - "us-east-1": { - "description": "US East (N. Virginia)" - }, - "us-east-2": { - "description": "US East (Ohio)" - }, - "us-west-1": { - "description": "US West (N. California)" - }, - "us-west-2": { - "description": "US West (Oregon)" - } - } - }, { - "id": "aws-cn", - "outputs": { - "dnsSuffix": "amazonaws.com.cn", - "dualStackDnsSuffix": "api.amazonwebservices.com.cn", - "implicitGlobalRegion": "cn-northwest-1", - "name": "aws-cn", - "supportsDualStack": true, - "supportsFIPS": true - }, - "regionRegex": "^cn\\-\\w+\\-\\d+$", - "regions": { - "aws-cn-global": { - "description": "AWS China global region" - }, - "cn-north-1": { - "description": "China (Beijing)" - }, - "cn-northwest-1": { - "description": "China (Ningxia)" - } - } - }, { - "id": "aws-us-gov", - "outputs": { - "dnsSuffix": "amazonaws.com", - "dualStackDnsSuffix": "api.aws", - "implicitGlobalRegion": "us-gov-west-1", - "name": "aws-us-gov", - "supportsDualStack": true, - "supportsFIPS": true - }, - "regionRegex": "^us\\-gov\\-\\w+\\-\\d+$", - "regions": { - "aws-us-gov-global": { - "description": "AWS GovCloud (US) global region" - }, - "us-gov-east-1": { - "description": "AWS GovCloud (US-East)" - }, - "us-gov-west-1": { - "description": "AWS GovCloud (US-West)" - } - } - }, { - "id": "aws-iso", - "outputs": { - "dnsSuffix": "c2s.ic.gov", - "dualStackDnsSuffix": "c2s.ic.gov", - "implicitGlobalRegion": "us-iso-east-1", - "name": "aws-iso", - "supportsDualStack": false, - "supportsFIPS": true - }, - "regionRegex": "^us\\-iso\\-\\w+\\-\\d+$", - "regions": { - "aws-iso-global": { - "description": "AWS ISO (US) global region" - }, - "us-iso-east-1": { - "description": "US ISO East" - }, - "us-iso-west-1": { - "description": "US ISO WEST" - } - } - }, { - "id": "aws-iso-b", - "outputs": { - "dnsSuffix": "sc2s.sgov.gov", - "dualStackDnsSuffix": "sc2s.sgov.gov", - "implicitGlobalRegion": "us-isob-east-1", - "name": "aws-iso-b", - "supportsDualStack": false, - "supportsFIPS": true - }, - "regionRegex": "^us\\-isob\\-\\w+\\-\\d+$", - "regions": { - "aws-iso-b-global": { - "description": "AWS ISOB (US) global region" - }, - "us-isob-east-1": { - "description": "US ISOB East (Ohio)" - } - } - }, { - "id": "aws-iso-e", - "outputs": { - "dnsSuffix": "cloud.adc-e.uk", - "dualStackDnsSuffix": "cloud.adc-e.uk", - "implicitGlobalRegion": "eu-isoe-west-1", - "name": "aws-iso-e", - "supportsDualStack": false, - "supportsFIPS": true - }, - "regionRegex": "^eu\\-isoe\\-\\w+\\-\\d+$", - "regions": {} - }, { - "id": "aws-iso-f", - "outputs": { - "dnsSuffix": "csp.hci.ic.gov", - "dualStackDnsSuffix": "csp.hci.ic.gov", - "implicitGlobalRegion": "us-isof-south-1", - "name": "aws-iso-f", - "supportsDualStack": false, - "supportsFIPS": true - }, - "regionRegex": "^us\\-isof\\-\\w+\\-\\d+$", - "regions": {} - }], - "version": "1.1" -} diff --git a/node_modules/@aws-sdk/util-endpoints/dist-es/lib/isIpAddress.js b/node_modules/@aws-sdk/util-endpoints/dist-es/lib/isIpAddress.js deleted file mode 100644 index 59bfcd8c..00000000 --- a/node_modules/@aws-sdk/util-endpoints/dist-es/lib/isIpAddress.js +++ /dev/null @@ -1 +0,0 @@ -export { isIpAddress } from "@smithy/util-endpoints"; diff --git a/node_modules/@aws-sdk/util-endpoints/dist-es/resolveEndpoint.js b/node_modules/@aws-sdk/util-endpoints/dist-es/resolveEndpoint.js deleted file mode 100644 index e2453f7f..00000000 --- a/node_modules/@aws-sdk/util-endpoints/dist-es/resolveEndpoint.js +++ /dev/null @@ -1 +0,0 @@ -export { resolveEndpoint } from "@smithy/util-endpoints"; diff --git a/node_modules/@aws-sdk/util-endpoints/dist-es/types/EndpointError.js b/node_modules/@aws-sdk/util-endpoints/dist-es/types/EndpointError.js deleted file mode 100644 index 521e688b..00000000 --- a/node_modules/@aws-sdk/util-endpoints/dist-es/types/EndpointError.js +++ /dev/null @@ -1 +0,0 @@ -export { EndpointError } from "@smithy/util-endpoints"; diff --git a/node_modules/@aws-sdk/util-endpoints/dist-es/types/EndpointRuleObject.js b/node_modules/@aws-sdk/util-endpoints/dist-es/types/EndpointRuleObject.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@aws-sdk/util-endpoints/dist-es/types/EndpointRuleObject.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@aws-sdk/util-endpoints/dist-es/types/ErrorRuleObject.js b/node_modules/@aws-sdk/util-endpoints/dist-es/types/ErrorRuleObject.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@aws-sdk/util-endpoints/dist-es/types/ErrorRuleObject.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@aws-sdk/util-endpoints/dist-es/types/RuleSetObject.js b/node_modules/@aws-sdk/util-endpoints/dist-es/types/RuleSetObject.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@aws-sdk/util-endpoints/dist-es/types/RuleSetObject.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@aws-sdk/util-endpoints/dist-es/types/TreeRuleObject.js b/node_modules/@aws-sdk/util-endpoints/dist-es/types/TreeRuleObject.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@aws-sdk/util-endpoints/dist-es/types/TreeRuleObject.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@aws-sdk/util-endpoints/dist-es/types/index.js b/node_modules/@aws-sdk/util-endpoints/dist-es/types/index.js deleted file mode 100644 index daba5019..00000000 --- a/node_modules/@aws-sdk/util-endpoints/dist-es/types/index.js +++ /dev/null @@ -1,6 +0,0 @@ -export * from "./EndpointError"; -export * from "./EndpointRuleObject"; -export * from "./ErrorRuleObject"; -export * from "./RuleSetObject"; -export * from "./TreeRuleObject"; -export * from "./shared"; diff --git a/node_modules/@aws-sdk/util-endpoints/dist-es/types/shared.js b/node_modules/@aws-sdk/util-endpoints/dist-es/types/shared.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@aws-sdk/util-endpoints/dist-es/types/shared.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@aws-sdk/util-endpoints/dist-types/aws.d.ts b/node_modules/@aws-sdk/util-endpoints/dist-types/aws.d.ts deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@aws-sdk/util-endpoints/dist-types/aws.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@aws-sdk/util-endpoints/dist-types/index.d.ts b/node_modules/@aws-sdk/util-endpoints/dist-types/index.d.ts deleted file mode 100644 index d046d907..00000000 --- a/node_modules/@aws-sdk/util-endpoints/dist-types/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export * from "./aws"; -export * from "./lib/aws/partition"; -export * from "./lib/isIpAddress"; -export * from "./resolveEndpoint"; -export * from "./types"; diff --git a/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/index.d.ts b/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/index.d.ts deleted file mode 100644 index 03be049d..00000000 --- a/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * from "./isVirtualHostableS3Bucket"; -export * from "./parseArn"; -export * from "./partition"; diff --git a/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/isVirtualHostableS3Bucket.d.ts b/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/isVirtualHostableS3Bucket.d.ts deleted file mode 100644 index 25d46e4b..00000000 --- a/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/isVirtualHostableS3Bucket.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -/** - * Evaluates whether a string is a DNS compatible bucket name and can be used with - * virtual hosted style addressing. - */ -export declare const isVirtualHostableS3Bucket: (value: string, allowSubDomains?: boolean) => boolean; diff --git a/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/parseArn.d.ts b/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/parseArn.d.ts deleted file mode 100644 index fa5af83b..00000000 --- a/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/parseArn.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { EndpointARN } from "@smithy/types"; -/** - * Evaluates a single string argument value, and returns an object containing - * details about the parsed ARN. - * If the input was not a valid ARN, the function returns null. - */ -export declare const parseArn: (value: string) => EndpointARN | null; diff --git a/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/partition.d.ts b/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/partition.d.ts deleted file mode 100644 index 96d14e41..00000000 --- a/node_modules/@aws-sdk/util-endpoints/dist-types/lib/aws/partition.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { EndpointPartition } from "@smithy/types"; -export type PartitionsInfo = { - partitions: Array<{ - id: string; - outputs: { - dnsSuffix: string; - dualStackDnsSuffix: string; - name: string; - supportsDualStack: boolean; - supportsFIPS: boolean; - }; - regionRegex: string; - regions: Record; - }>; -}; -/** - * Evaluates a single string argument value as a region, and matches the - * string value to an AWS partition. - * The matcher MUST always return a successful object describing the partition - * that the region has been determined to be a part of. - */ -export declare const partition: (value: string) => EndpointPartition; -/** - * Set custom partitions.json data. - * @internal - */ -export declare const setPartitionInfo: (partitionsInfo: PartitionsInfo, userAgentPrefix?: string) => void; -/** - * Reset to the default partitions.json data. - * @internal - */ -export declare const useDefaultPartitionInfo: () => void; -/** - * @internal - */ -export declare const getUserAgentPrefix: () => string; diff --git a/node_modules/@aws-sdk/util-endpoints/dist-types/lib/isIpAddress.d.ts b/node_modules/@aws-sdk/util-endpoints/dist-types/lib/isIpAddress.d.ts deleted file mode 100644 index 59bfcd8c..00000000 --- a/node_modules/@aws-sdk/util-endpoints/dist-types/lib/isIpAddress.d.ts +++ /dev/null @@ -1 +0,0 @@ -export { isIpAddress } from "@smithy/util-endpoints"; diff --git a/node_modules/@aws-sdk/util-endpoints/dist-types/resolveEndpoint.d.ts b/node_modules/@aws-sdk/util-endpoints/dist-types/resolveEndpoint.d.ts deleted file mode 100644 index e2453f7f..00000000 --- a/node_modules/@aws-sdk/util-endpoints/dist-types/resolveEndpoint.d.ts +++ /dev/null @@ -1 +0,0 @@ -export { resolveEndpoint } from "@smithy/util-endpoints"; diff --git a/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/aws.d.ts b/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/aws.d.ts deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/aws.d.ts +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/index.d.ts b/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/index.d.ts deleted file mode 100644 index d046d907..00000000 --- a/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export * from "./aws"; -export * from "./lib/aws/partition"; -export * from "./lib/isIpAddress"; -export * from "./resolveEndpoint"; -export * from "./types"; diff --git a/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/index.d.ts b/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/index.d.ts deleted file mode 100644 index 03be049d..00000000 --- a/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * from "./isVirtualHostableS3Bucket"; -export * from "./parseArn"; -export * from "./partition"; diff --git a/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/isVirtualHostableS3Bucket.d.ts b/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/isVirtualHostableS3Bucket.d.ts deleted file mode 100644 index 5ef32963..00000000 --- a/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/isVirtualHostableS3Bucket.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export declare const isVirtualHostableS3Bucket: ( - value: string, - allowSubDomains?: boolean -) => boolean; diff --git a/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/parseArn.d.ts b/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/parseArn.d.ts deleted file mode 100644 index 690d4595..00000000 --- a/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/parseArn.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { EndpointARN } from "@smithy/types"; -export declare const parseArn: (value: string) => EndpointARN | null; diff --git a/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/partition.d.ts b/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/partition.d.ts deleted file mode 100644 index 0683113c..00000000 --- a/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/aws/partition.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { EndpointPartition } from "@smithy/types"; -export type PartitionsInfo = { - partitions: Array<{ - id: string; - outputs: { - dnsSuffix: string; - dualStackDnsSuffix: string; - name: string; - supportsDualStack: boolean; - supportsFIPS: boolean; - }; - regionRegex: string; - regions: Record< - string, - | { - description?: string; - } - | undefined - >; - }>; -}; -export declare const partition: (value: string) => EndpointPartition; -export declare const setPartitionInfo: ( - partitionsInfo: PartitionsInfo, - userAgentPrefix?: string -) => void; -export declare const useDefaultPartitionInfo: () => void; -export declare const getUserAgentPrefix: () => string; diff --git a/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/isIpAddress.d.ts b/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/isIpAddress.d.ts deleted file mode 100644 index 59bfcd8c..00000000 --- a/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/lib/isIpAddress.d.ts +++ /dev/null @@ -1 +0,0 @@ -export { isIpAddress } from "@smithy/util-endpoints"; diff --git a/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/resolveEndpoint.d.ts b/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/resolveEndpoint.d.ts deleted file mode 100644 index e2453f7f..00000000 --- a/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/resolveEndpoint.d.ts +++ /dev/null @@ -1 +0,0 @@ -export { resolveEndpoint } from "@smithy/util-endpoints"; diff --git a/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/EndpointError.d.ts b/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/EndpointError.d.ts deleted file mode 100644 index 521e688b..00000000 --- a/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/EndpointError.d.ts +++ /dev/null @@ -1 +0,0 @@ -export { EndpointError } from "@smithy/util-endpoints"; diff --git a/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/EndpointRuleObject.d.ts b/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/EndpointRuleObject.d.ts deleted file mode 100644 index b48af7fa..00000000 --- a/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/EndpointRuleObject.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export { - EndpointObjectProperties, - EndpointObjectHeaders, - EndpointObject, - EndpointRuleObject, -} from "@smithy/util-endpoints"; diff --git a/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/ErrorRuleObject.d.ts b/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/ErrorRuleObject.d.ts deleted file mode 100644 index e7b8881b..00000000 --- a/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/ErrorRuleObject.d.ts +++ /dev/null @@ -1 +0,0 @@ -export { ErrorRuleObject } from "@smithy/util-endpoints"; diff --git a/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/RuleSetObject.d.ts b/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/RuleSetObject.d.ts deleted file mode 100644 index 2a489c67..00000000 --- a/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/RuleSetObject.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export { - DeprecatedObject, - ParameterObject, - RuleSetObject, -} from "@smithy/util-endpoints"; diff --git a/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/TreeRuleObject.d.ts b/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/TreeRuleObject.d.ts deleted file mode 100644 index 716ddcfc..00000000 --- a/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/TreeRuleObject.d.ts +++ /dev/null @@ -1 +0,0 @@ -export { RuleSetRules, TreeRuleObject } from "@smithy/util-endpoints"; diff --git a/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/index.d.ts b/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/index.d.ts deleted file mode 100644 index daba5019..00000000 --- a/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/index.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export * from "./EndpointError"; -export * from "./EndpointRuleObject"; -export * from "./ErrorRuleObject"; -export * from "./RuleSetObject"; -export * from "./TreeRuleObject"; -export * from "./shared"; diff --git a/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/shared.d.ts b/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/shared.d.ts deleted file mode 100644 index cfd2248a..00000000 --- a/node_modules/@aws-sdk/util-endpoints/dist-types/ts3.4/types/shared.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -export { - ReferenceObject, - FunctionObject, - FunctionArgv, - FunctionReturn, - ConditionObject, - Expression, - EndpointParams, - EndpointResolverOptions, - ReferenceRecord, - EvaluateOptions, -} from "@smithy/util-endpoints"; diff --git a/node_modules/@aws-sdk/util-endpoints/dist-types/types/EndpointError.d.ts b/node_modules/@aws-sdk/util-endpoints/dist-types/types/EndpointError.d.ts deleted file mode 100644 index 521e688b..00000000 --- a/node_modules/@aws-sdk/util-endpoints/dist-types/types/EndpointError.d.ts +++ /dev/null @@ -1 +0,0 @@ -export { EndpointError } from "@smithy/util-endpoints"; diff --git a/node_modules/@aws-sdk/util-endpoints/dist-types/types/EndpointRuleObject.d.ts b/node_modules/@aws-sdk/util-endpoints/dist-types/types/EndpointRuleObject.d.ts deleted file mode 100644 index ef666fe0..00000000 --- a/node_modules/@aws-sdk/util-endpoints/dist-types/types/EndpointRuleObject.d.ts +++ /dev/null @@ -1 +0,0 @@ -export { EndpointObjectProperties, EndpointObjectHeaders, EndpointObject, EndpointRuleObject, } from "@smithy/util-endpoints"; diff --git a/node_modules/@aws-sdk/util-endpoints/dist-types/types/ErrorRuleObject.d.ts b/node_modules/@aws-sdk/util-endpoints/dist-types/types/ErrorRuleObject.d.ts deleted file mode 100644 index e7b8881b..00000000 --- a/node_modules/@aws-sdk/util-endpoints/dist-types/types/ErrorRuleObject.d.ts +++ /dev/null @@ -1 +0,0 @@ -export { ErrorRuleObject } from "@smithy/util-endpoints"; diff --git a/node_modules/@aws-sdk/util-endpoints/dist-types/types/RuleSetObject.d.ts b/node_modules/@aws-sdk/util-endpoints/dist-types/types/RuleSetObject.d.ts deleted file mode 100644 index c052af07..00000000 --- a/node_modules/@aws-sdk/util-endpoints/dist-types/types/RuleSetObject.d.ts +++ /dev/null @@ -1 +0,0 @@ -export { DeprecatedObject, ParameterObject, RuleSetObject } from "@smithy/util-endpoints"; diff --git a/node_modules/@aws-sdk/util-endpoints/dist-types/types/TreeRuleObject.d.ts b/node_modules/@aws-sdk/util-endpoints/dist-types/types/TreeRuleObject.d.ts deleted file mode 100644 index 716ddcfc..00000000 --- a/node_modules/@aws-sdk/util-endpoints/dist-types/types/TreeRuleObject.d.ts +++ /dev/null @@ -1 +0,0 @@ -export { RuleSetRules, TreeRuleObject } from "@smithy/util-endpoints"; diff --git a/node_modules/@aws-sdk/util-endpoints/dist-types/types/index.d.ts b/node_modules/@aws-sdk/util-endpoints/dist-types/types/index.d.ts deleted file mode 100644 index daba5019..00000000 --- a/node_modules/@aws-sdk/util-endpoints/dist-types/types/index.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export * from "./EndpointError"; -export * from "./EndpointRuleObject"; -export * from "./ErrorRuleObject"; -export * from "./RuleSetObject"; -export * from "./TreeRuleObject"; -export * from "./shared"; diff --git a/node_modules/@aws-sdk/util-endpoints/dist-types/types/shared.d.ts b/node_modules/@aws-sdk/util-endpoints/dist-types/types/shared.d.ts deleted file mode 100644 index af7cc53b..00000000 --- a/node_modules/@aws-sdk/util-endpoints/dist-types/types/shared.d.ts +++ /dev/null @@ -1 +0,0 @@ -export { ReferenceObject, FunctionObject, FunctionArgv, FunctionReturn, ConditionObject, Expression, EndpointParams, EndpointResolverOptions, ReferenceRecord, EvaluateOptions, } from "@smithy/util-endpoints"; diff --git a/node_modules/@aws-sdk/util-endpoints/package.json b/node_modules/@aws-sdk/util-endpoints/package.json deleted file mode 100644 index 9384bbbf..00000000 --- a/node_modules/@aws-sdk/util-endpoints/package.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "name": "@aws-sdk/util-endpoints", - "version": "3.451.0", - "description": "Utilities to help with endpoint resolution", - "main": "./dist-cjs/index.js", - "module": "./dist-es/index.js", - "types": "./dist-types/index.d.ts", - "scripts": { - "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", - "build:cjs": "tsc -p tsconfig.cjs.json", - "build:es": "tsc -p tsconfig.es.json", - "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build", - "build:types": "tsc -p tsconfig.types.json", - "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", - "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "jest", - "test:integration": "jest --c jest.config.integ.js" - }, - "author": { - "name": "AWS SDK for JavaScript Team", - "url": "https://aws.amazon.com/javascript/" - }, - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.451.0", - "@smithy/util-endpoints": "^1.0.4", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "typesVersions": { - "<4.0": { - "dist-types/*": [ - "dist-types/ts3.4/*" - ] - } - }, - "files": [ - "dist-*/**" - ], - "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/util-endpoints", - "repository": { - "type": "git", - "url": "https://github.com/aws/aws-sdk-js-v3.git", - "directory": "packages/util-endpoints" - }, - "devDependencies": { - "@tsconfig/recommended": "1.0.1", - "concurrently": "7.0.0", - "downlevel-dts": "0.10.1", - "rimraf": "3.0.2", - "typedoc": "0.23.23", - "typescript": "~4.9.5" - }, - "typedoc": { - "entryPoint": "src/index.ts" - } -} diff --git a/node_modules/@aws-sdk/util-locate-window/LICENSE b/node_modules/@aws-sdk/util-locate-window/LICENSE deleted file mode 100644 index 7b6491ba..00000000 --- a/node_modules/@aws-sdk/util-locate-window/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. \ No newline at end of file diff --git a/node_modules/@aws-sdk/util-locate-window/README.md b/node_modules/@aws-sdk/util-locate-window/README.md deleted file mode 100644 index cac53d3f..00000000 --- a/node_modules/@aws-sdk/util-locate-window/README.md +++ /dev/null @@ -1,4 +0,0 @@ -# @aws-sdk/util-locate-window - -[![NPM version](https://img.shields.io/npm/v/@aws-sdk/util-locate-window/latest.svg)](https://www.npmjs.com/package/@aws-sdk/util-locate-window) -[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/util-locate-window.svg)](https://www.npmjs.com/package/@aws-sdk/util-locate-window) diff --git a/node_modules/@aws-sdk/util-locate-window/dist-cjs/index.js b/node_modules/@aws-sdk/util-locate-window/dist-cjs/index.js deleted file mode 100644 index a66c1a7e..00000000 --- a/node_modules/@aws-sdk/util-locate-window/dist-cjs/index.js +++ /dev/null @@ -1,13 +0,0 @@ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.locateWindow = void 0; -const fallbackWindow = {}; -function locateWindow() { - if (typeof window !== "undefined") { - return window; - } - else if (typeof self !== "undefined") { - return self; - } - return fallbackWindow; -} -exports.locateWindow = locateWindow; diff --git a/node_modules/@aws-sdk/util-locate-window/dist-es/index.js b/node_modules/@aws-sdk/util-locate-window/dist-es/index.js deleted file mode 100644 index a51e6442..00000000 --- a/node_modules/@aws-sdk/util-locate-window/dist-es/index.js +++ /dev/null @@ -1,10 +0,0 @@ -const fallbackWindow = {}; -export function locateWindow() { - if (typeof window !== "undefined") { - return window; - } - else if (typeof self !== "undefined") { - return self; - } - return fallbackWindow; -} diff --git a/node_modules/@aws-sdk/util-locate-window/dist-types/index.d.ts b/node_modules/@aws-sdk/util-locate-window/dist-types/index.d.ts deleted file mode 100644 index 2b02d7f4..00000000 --- a/node_modules/@aws-sdk/util-locate-window/dist-types/index.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -/** - * Locates the global scope for a browser or browser-like environment. If - * neither `window` nor `self` is defined by the environment, the same object - * will be returned on each invocation. - */ -export declare function locateWindow(): Window; diff --git a/node_modules/@aws-sdk/util-locate-window/dist-types/ts3.4/index.d.ts b/node_modules/@aws-sdk/util-locate-window/dist-types/ts3.4/index.d.ts deleted file mode 100644 index a5bbba31..00000000 --- a/node_modules/@aws-sdk/util-locate-window/dist-types/ts3.4/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare function locateWindow(): Window; diff --git a/node_modules/@aws-sdk/util-locate-window/package.json b/node_modules/@aws-sdk/util-locate-window/package.json deleted file mode 100644 index bfecffe7..00000000 --- a/node_modules/@aws-sdk/util-locate-window/package.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "name": "@aws-sdk/util-locate-window", - "version": "3.310.0", - "scripts": { - "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", - "build:cjs": "tsc -p tsconfig.cjs.json", - "build:es": "tsc -p tsconfig.es.json", - "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build", - "build:types": "tsc -p tsconfig.types.json", - "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", - "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "jest" - }, - "author": { - "name": "AWS SDK for JavaScript Team", - "url": "https://aws.amazon.com/javascript/" - }, - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.5.0" - }, - "devDependencies": { - "@tsconfig/recommended": "1.0.1", - "@types/node": "^14.14.31", - "concurrently": "7.0.0", - "downlevel-dts": "0.10.1", - "rimraf": "3.0.2", - "typedoc": "0.23.23", - "typescript": "~4.9.5" - }, - "main": "./dist-cjs/index.js", - "module": "./dist-es/index.js", - "types": "./dist-types/index.d.ts", - "engines": { - "node": ">=14.0.0" - }, - "typesVersions": { - "<4.0": { - "dist-types/*": [ - "dist-types/ts3.4/*" - ] - } - }, - "files": [ - "dist-*/**" - ], - "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/util-locate-window", - "repository": { - "type": "git", - "url": "https://github.com/aws/aws-sdk-js-v3.git", - "directory": "packages/util-locate-window" - }, - "typedoc": { - "entryPoint": "src/index.ts" - } -} diff --git a/node_modules/@aws-sdk/util-user-agent-browser/LICENSE b/node_modules/@aws-sdk/util-user-agent-browser/LICENSE deleted file mode 100644 index dd65ae06..00000000 --- a/node_modules/@aws-sdk/util-user-agent-browser/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/node_modules/@aws-sdk/util-user-agent-browser/README.md b/node_modules/@aws-sdk/util-user-agent-browser/README.md deleted file mode 100644 index f2b6c628..00000000 --- a/node_modules/@aws-sdk/util-user-agent-browser/README.md +++ /dev/null @@ -1,10 +0,0 @@ -# @aws-sdk/util-user-agent-browser - -[![NPM version](https://img.shields.io/npm/v/@aws-sdk/util-user-agent-browser/latest.svg)](https://www.npmjs.com/package/@aws-sdk/util-user-agent-browser) -[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/util-user-agent-browser.svg)](https://www.npmjs.com/package/@aws-sdk/util-user-agent-browser) - -> An internal package - -## Usage - -You probably shouldn't, at least directly. diff --git a/node_modules/@aws-sdk/util-user-agent-browser/dist-cjs/configurations.js b/node_modules/@aws-sdk/util-user-agent-browser/dist-cjs/configurations.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@aws-sdk/util-user-agent-browser/dist-cjs/configurations.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@aws-sdk/util-user-agent-browser/dist-cjs/index.js b/node_modules/@aws-sdk/util-user-agent-browser/dist-cjs/index.js deleted file mode 100644 index 4f4b5ad8..00000000 --- a/node_modules/@aws-sdk/util-user-agent-browser/dist-cjs/index.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.defaultUserAgent = void 0; -const tslib_1 = require("tslib"); -const bowser_1 = tslib_1.__importDefault(require("bowser")); -const defaultUserAgent = ({ serviceId, clientVersion }) => async () => { - var _a, _b, _c, _d, _e, _f, _g; - const parsedUA = typeof window !== "undefined" && ((_a = window === null || window === void 0 ? void 0 : window.navigator) === null || _a === void 0 ? void 0 : _a.userAgent) - ? bowser_1.default.parse(window.navigator.userAgent) - : undefined; - const sections = [ - ["aws-sdk-js", clientVersion], - ["ua", "2.0"], - [`os/${((_b = parsedUA === null || parsedUA === void 0 ? void 0 : parsedUA.os) === null || _b === void 0 ? void 0 : _b.name) || "other"}`, (_c = parsedUA === null || parsedUA === void 0 ? void 0 : parsedUA.os) === null || _c === void 0 ? void 0 : _c.version], - ["lang/js"], - ["md/browser", `${(_e = (_d = parsedUA === null || parsedUA === void 0 ? void 0 : parsedUA.browser) === null || _d === void 0 ? void 0 : _d.name) !== null && _e !== void 0 ? _e : "unknown"}_${(_g = (_f = parsedUA === null || parsedUA === void 0 ? void 0 : parsedUA.browser) === null || _f === void 0 ? void 0 : _f.version) !== null && _g !== void 0 ? _g : "unknown"}`], - ]; - if (serviceId) { - sections.push([`api/${serviceId}`, clientVersion]); - } - return sections; -}; -exports.defaultUserAgent = defaultUserAgent; diff --git a/node_modules/@aws-sdk/util-user-agent-browser/dist-cjs/index.native.js b/node_modules/@aws-sdk/util-user-agent-browser/dist-cjs/index.native.js deleted file mode 100644 index c7abae0e..00000000 --- a/node_modules/@aws-sdk/util-user-agent-browser/dist-cjs/index.native.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.defaultUserAgent = void 0; -const defaultUserAgent = ({ serviceId, clientVersion }) => async () => { - const sections = [ - ["aws-sdk-js", clientVersion], - ["ua", "2.0"], - ["os/other"], - ["lang/js"], - ["md/rn"], - ]; - if (serviceId) { - sections.push([`api/${serviceId}`, clientVersion]); - } - return sections; -}; -exports.defaultUserAgent = defaultUserAgent; diff --git a/node_modules/@aws-sdk/util-user-agent-browser/dist-es/configurations.js b/node_modules/@aws-sdk/util-user-agent-browser/dist-es/configurations.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@aws-sdk/util-user-agent-browser/dist-es/configurations.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@aws-sdk/util-user-agent-browser/dist-es/index.js b/node_modules/@aws-sdk/util-user-agent-browser/dist-es/index.js deleted file mode 100644 index 2da60c6a..00000000 --- a/node_modules/@aws-sdk/util-user-agent-browser/dist-es/index.js +++ /dev/null @@ -1,17 +0,0 @@ -import bowser from "bowser"; -export const defaultUserAgent = ({ serviceId, clientVersion }) => async () => { - const parsedUA = typeof window !== "undefined" && window?.navigator?.userAgent - ? bowser.parse(window.navigator.userAgent) - : undefined; - const sections = [ - ["aws-sdk-js", clientVersion], - ["ua", "2.0"], - [`os/${parsedUA?.os?.name || "other"}`, parsedUA?.os?.version], - ["lang/js"], - ["md/browser", `${parsedUA?.browser?.name ?? "unknown"}_${parsedUA?.browser?.version ?? "unknown"}`], - ]; - if (serviceId) { - sections.push([`api/${serviceId}`, clientVersion]); - } - return sections; -}; diff --git a/node_modules/@aws-sdk/util-user-agent-browser/dist-es/index.native.js b/node_modules/@aws-sdk/util-user-agent-browser/dist-es/index.native.js deleted file mode 100644 index b95d6db7..00000000 --- a/node_modules/@aws-sdk/util-user-agent-browser/dist-es/index.native.js +++ /dev/null @@ -1,13 +0,0 @@ -export const defaultUserAgent = ({ serviceId, clientVersion }) => async () => { - const sections = [ - ["aws-sdk-js", clientVersion], - ["ua", "2.0"], - ["os/other"], - ["lang/js"], - ["md/rn"], - ]; - if (serviceId) { - sections.push([`api/${serviceId}`, clientVersion]); - } - return sections; -}; diff --git a/node_modules/@aws-sdk/util-user-agent-browser/dist-types/configurations.d.ts b/node_modules/@aws-sdk/util-user-agent-browser/dist-types/configurations.d.ts deleted file mode 100644 index 00537a90..00000000 --- a/node_modules/@aws-sdk/util-user-agent-browser/dist-types/configurations.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * @internal - */ -export interface DefaultUserAgentOptions { - serviceId?: string; - clientVersion: string; -} diff --git a/node_modules/@aws-sdk/util-user-agent-browser/dist-types/index.d.ts b/node_modules/@aws-sdk/util-user-agent-browser/dist-types/index.d.ts deleted file mode 100644 index 1c470025..00000000 --- a/node_modules/@aws-sdk/util-user-agent-browser/dist-types/index.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { Provider, UserAgent } from "@smithy/types"; -import { DefaultUserAgentOptions } from "./configurations"; -/** - * @internal - * - * Default provider to the user agent in browsers. It's a best effort to infer - * the device information. It uses bowser library to detect the browser and version - */ -export declare const defaultUserAgent: ({ serviceId, clientVersion }: DefaultUserAgentOptions) => Provider; diff --git a/node_modules/@aws-sdk/util-user-agent-browser/dist-types/index.native.d.ts b/node_modules/@aws-sdk/util-user-agent-browser/dist-types/index.native.d.ts deleted file mode 100644 index 3e5aff72..00000000 --- a/node_modules/@aws-sdk/util-user-agent-browser/dist-types/index.native.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { Provider, UserAgent } from "@smithy/types"; -import { DefaultUserAgentOptions } from "./configurations"; -/** - * @internal - * - * Default provider to the user agent in ReactNative. It's a best effort to infer - * the device information. It uses bowser library to detect the browser and virsion - */ -export declare const defaultUserAgent: ({ serviceId, clientVersion }: DefaultUserAgentOptions) => Provider; diff --git a/node_modules/@aws-sdk/util-user-agent-browser/dist-types/ts3.4/configurations.d.ts b/node_modules/@aws-sdk/util-user-agent-browser/dist-types/ts3.4/configurations.d.ts deleted file mode 100644 index 1428231d..00000000 --- a/node_modules/@aws-sdk/util-user-agent-browser/dist-types/ts3.4/configurations.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export interface DefaultUserAgentOptions { - serviceId?: string; - clientVersion: string; -} diff --git a/node_modules/@aws-sdk/util-user-agent-browser/dist-types/ts3.4/index.d.ts b/node_modules/@aws-sdk/util-user-agent-browser/dist-types/ts3.4/index.d.ts deleted file mode 100644 index 3b47c4f2..00000000 --- a/node_modules/@aws-sdk/util-user-agent-browser/dist-types/ts3.4/index.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { Provider, UserAgent } from "@smithy/types"; -import { DefaultUserAgentOptions } from "./configurations"; -export declare const defaultUserAgent: ({ - serviceId, - clientVersion, -}: DefaultUserAgentOptions) => Provider; diff --git a/node_modules/@aws-sdk/util-user-agent-browser/dist-types/ts3.4/index.native.d.ts b/node_modules/@aws-sdk/util-user-agent-browser/dist-types/ts3.4/index.native.d.ts deleted file mode 100644 index 3b47c4f2..00000000 --- a/node_modules/@aws-sdk/util-user-agent-browser/dist-types/ts3.4/index.native.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { Provider, UserAgent } from "@smithy/types"; -import { DefaultUserAgentOptions } from "./configurations"; -export declare const defaultUserAgent: ({ - serviceId, - clientVersion, -}: DefaultUserAgentOptions) => Provider; diff --git a/node_modules/@aws-sdk/util-user-agent-browser/package.json b/node_modules/@aws-sdk/util-user-agent-browser/package.json deleted file mode 100644 index c3f4c49f..00000000 --- a/node_modules/@aws-sdk/util-user-agent-browser/package.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "name": "@aws-sdk/util-user-agent-browser", - "version": "3.451.0", - "scripts": { - "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", - "build:cjs": "tsc -p tsconfig.cjs.json", - "build:es": "tsc -p tsconfig.es.json", - "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build", - "build:types": "tsc -p tsconfig.types.json", - "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", - "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "jest" - }, - "main": "./dist-cjs/index.js", - "module": "./dist-es/index.js", - "browser": "./dist-es/index.js", - "types": "./dist-types/index.d.ts", - "author": { - "name": "AWS SDK for JavaScript Team", - "url": "https://aws.amazon.com/javascript/" - }, - "license": "Apache-2.0", - "react-native": "dist-es/index.native.js", - "dependencies": { - "@aws-sdk/types": "3.451.0", - "@smithy/types": "^2.5.0", - "bowser": "^2.11.0", - "tslib": "^2.5.0" - }, - "devDependencies": { - "@tsconfig/recommended": "1.0.1", - "concurrently": "7.0.0", - "downlevel-dts": "0.10.1", - "rimraf": "3.0.2", - "typedoc": "0.23.23", - "typescript": "~4.9.5" - }, - "typesVersions": { - "<4.0": { - "dist-types/*": [ - "dist-types/ts3.4/*" - ] - } - }, - "files": [ - "dist-*/**" - ], - "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/util-user-agent-browser", - "repository": { - "type": "git", - "url": "https://github.com/aws/aws-sdk-js-v3.git", - "directory": "packages/util-user-agent-browser" - }, - "typedoc": { - "entryPoint": "src/index.ts" - } -} diff --git a/node_modules/@aws-sdk/util-user-agent-node/LICENSE b/node_modules/@aws-sdk/util-user-agent-node/LICENSE deleted file mode 100644 index dd65ae06..00000000 --- a/node_modules/@aws-sdk/util-user-agent-node/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/node_modules/@aws-sdk/util-user-agent-node/README.md b/node_modules/@aws-sdk/util-user-agent-node/README.md deleted file mode 100644 index fccfbb54..00000000 --- a/node_modules/@aws-sdk/util-user-agent-node/README.md +++ /dev/null @@ -1,10 +0,0 @@ -# @aws-sdk/util-user-agent-node - -[![NPM version](https://img.shields.io/npm/v/@aws-sdk/util-user-agent-node/latest.svg)](https://www.npmjs.com/package/@aws-sdk/util-user-agent-node) -[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/util-user-agent-node.svg)](https://www.npmjs.com/package/@aws-sdk/util-user-agent-node) - -> An internal package - -## Usage - -You probably shouldn't, at least directly. diff --git a/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/crt-availability.js b/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/crt-availability.js deleted file mode 100644 index 1e69b48d..00000000 --- a/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/crt-availability.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.crtAvailability = void 0; -exports.crtAvailability = { - isCrtAvailable: false, -}; diff --git a/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js b/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js deleted file mode 100644 index 3a8ecade..00000000 --- a/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/index.js +++ /dev/null @@ -1,44 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.defaultUserAgent = exports.UA_APP_ID_INI_NAME = exports.UA_APP_ID_ENV_NAME = exports.crtAvailability = void 0; -const node_config_provider_1 = require("@smithy/node-config-provider"); -const os_1 = require("os"); -const process_1 = require("process"); -const is_crt_available_1 = require("./is-crt-available"); -var crt_availability_1 = require("./crt-availability"); -Object.defineProperty(exports, "crtAvailability", { enumerable: true, get: function () { return crt_availability_1.crtAvailability; } }); -exports.UA_APP_ID_ENV_NAME = "AWS_SDK_UA_APP_ID"; -exports.UA_APP_ID_INI_NAME = "sdk-ua-app-id"; -const defaultUserAgent = ({ serviceId, clientVersion }) => { - const sections = [ - ["aws-sdk-js", clientVersion], - ["ua", "2.0"], - [`os/${(0, os_1.platform)()}`, (0, os_1.release)()], - ["lang/js"], - ["md/nodejs", `${process_1.versions.node}`], - ]; - const crtAvailable = (0, is_crt_available_1.isCrtAvailable)(); - if (crtAvailable) { - sections.push(crtAvailable); - } - if (serviceId) { - sections.push([`api/${serviceId}`, clientVersion]); - } - if (process_1.env.AWS_EXECUTION_ENV) { - sections.push([`exec-env/${process_1.env.AWS_EXECUTION_ENV}`]); - } - const appIdPromise = (0, node_config_provider_1.loadConfig)({ - environmentVariableSelector: (env) => env[exports.UA_APP_ID_ENV_NAME], - configFileSelector: (profile) => profile[exports.UA_APP_ID_INI_NAME], - default: undefined, - })(); - let resolvedUserAgent = undefined; - return async () => { - if (!resolvedUserAgent) { - const appId = await appIdPromise; - resolvedUserAgent = appId ? [...sections, [`app/${appId}`]] : [...sections]; - } - return resolvedUserAgent; - }; -}; -exports.defaultUserAgent = defaultUserAgent; diff --git a/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/is-crt-available.js b/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/is-crt-available.js deleted file mode 100644 index b6ecf05c..00000000 --- a/node_modules/@aws-sdk/util-user-agent-node/dist-cjs/is-crt-available.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isCrtAvailable = void 0; -const crt_availability_1 = require("./crt-availability"); -const isCrtAvailable = () => { - if (crt_availability_1.crtAvailability.isCrtAvailable) { - return ["md/crt-avail"]; - } - return null; -}; -exports.isCrtAvailable = isCrtAvailable; diff --git a/node_modules/@aws-sdk/util-user-agent-node/dist-es/crt-availability.js b/node_modules/@aws-sdk/util-user-agent-node/dist-es/crt-availability.js deleted file mode 100644 index 99ebeb97..00000000 --- a/node_modules/@aws-sdk/util-user-agent-node/dist-es/crt-availability.js +++ /dev/null @@ -1,3 +0,0 @@ -export const crtAvailability = { - isCrtAvailable: false, -}; diff --git a/node_modules/@aws-sdk/util-user-agent-node/dist-es/index.js b/node_modules/@aws-sdk/util-user-agent-node/dist-es/index.js deleted file mode 100644 index fd3b99fc..00000000 --- a/node_modules/@aws-sdk/util-user-agent-node/dist-es/index.js +++ /dev/null @@ -1,39 +0,0 @@ -import { loadConfig } from "@smithy/node-config-provider"; -import { platform, release } from "os"; -import { env, versions } from "process"; -import { isCrtAvailable } from "./is-crt-available"; -export { crtAvailability } from "./crt-availability"; -export const UA_APP_ID_ENV_NAME = "AWS_SDK_UA_APP_ID"; -export const UA_APP_ID_INI_NAME = "sdk-ua-app-id"; -export const defaultUserAgent = ({ serviceId, clientVersion }) => { - const sections = [ - ["aws-sdk-js", clientVersion], - ["ua", "2.0"], - [`os/${platform()}`, release()], - ["lang/js"], - ["md/nodejs", `${versions.node}`], - ]; - const crtAvailable = isCrtAvailable(); - if (crtAvailable) { - sections.push(crtAvailable); - } - if (serviceId) { - sections.push([`api/${serviceId}`, clientVersion]); - } - if (env.AWS_EXECUTION_ENV) { - sections.push([`exec-env/${env.AWS_EXECUTION_ENV}`]); - } - const appIdPromise = loadConfig({ - environmentVariableSelector: (env) => env[UA_APP_ID_ENV_NAME], - configFileSelector: (profile) => profile[UA_APP_ID_INI_NAME], - default: undefined, - })(); - let resolvedUserAgent = undefined; - return async () => { - if (!resolvedUserAgent) { - const appId = await appIdPromise; - resolvedUserAgent = appId ? [...sections, [`app/${appId}`]] : [...sections]; - } - return resolvedUserAgent; - }; -}; diff --git a/node_modules/@aws-sdk/util-user-agent-node/dist-es/is-crt-available.js b/node_modules/@aws-sdk/util-user-agent-node/dist-es/is-crt-available.js deleted file mode 100644 index e9f8b0de..00000000 --- a/node_modules/@aws-sdk/util-user-agent-node/dist-es/is-crt-available.js +++ /dev/null @@ -1,7 +0,0 @@ -import { crtAvailability } from "./crt-availability"; -export const isCrtAvailable = () => { - if (crtAvailability.isCrtAvailable) { - return ["md/crt-avail"]; - } - return null; -}; diff --git a/node_modules/@aws-sdk/util-user-agent-node/dist-types/crt-availability.d.ts b/node_modules/@aws-sdk/util-user-agent-node/dist-types/crt-availability.d.ts deleted file mode 100644 index c2033a05..00000000 --- a/node_modules/@aws-sdk/util-user-agent-node/dist-types/crt-availability.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -/** - * @internal - * - * If \@aws-sdk/signature-v4-crt is installed and loaded, it will register - * this value to true. - */ -export declare const crtAvailability: { - isCrtAvailable: boolean; -}; diff --git a/node_modules/@aws-sdk/util-user-agent-node/dist-types/index.d.ts b/node_modules/@aws-sdk/util-user-agent-node/dist-types/index.d.ts deleted file mode 100644 index 5ccece56..00000000 --- a/node_modules/@aws-sdk/util-user-agent-node/dist-types/index.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { Provider, UserAgent } from "@smithy/types"; -export { crtAvailability } from "./crt-availability"; -/** - * @internal - */ -export declare const UA_APP_ID_ENV_NAME = "AWS_SDK_UA_APP_ID"; -/** - * @internal - */ -export declare const UA_APP_ID_INI_NAME = "sdk-ua-app-id"; -interface DefaultUserAgentOptions { - serviceId?: string; - clientVersion: string; -} -/** - * @internal - * - * Collect metrics from runtime to put into user agent. - */ -export declare const defaultUserAgent: ({ serviceId, clientVersion }: DefaultUserAgentOptions) => Provider; diff --git a/node_modules/@aws-sdk/util-user-agent-node/dist-types/is-crt-available.d.ts b/node_modules/@aws-sdk/util-user-agent-node/dist-types/is-crt-available.d.ts deleted file mode 100644 index 675ffa8e..00000000 --- a/node_modules/@aws-sdk/util-user-agent-node/dist-types/is-crt-available.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { UserAgentPair } from "@smithy/types"; -/** - * @internal - */ -export declare const isCrtAvailable: () => UserAgentPair | null; diff --git a/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/crt-availability.d.ts b/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/crt-availability.d.ts deleted file mode 100644 index 9dccfb03..00000000 --- a/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/crt-availability.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export declare const crtAvailability: { - isCrtAvailable: boolean; -}; diff --git a/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/index.d.ts b/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/index.d.ts deleted file mode 100644 index a1292f7e..00000000 --- a/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/index.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { Provider, UserAgent } from "@smithy/types"; -export { crtAvailability } from "./crt-availability"; -export declare const UA_APP_ID_ENV_NAME = "AWS_SDK_UA_APP_ID"; -export declare const UA_APP_ID_INI_NAME = "sdk-ua-app-id"; -interface DefaultUserAgentOptions { - serviceId?: string; - clientVersion: string; -} -export declare const defaultUserAgent: ({ - serviceId, - clientVersion, -}: DefaultUserAgentOptions) => Provider; diff --git a/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/is-crt-available.d.ts b/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/is-crt-available.d.ts deleted file mode 100644 index d28355c1..00000000 --- a/node_modules/@aws-sdk/util-user-agent-node/dist-types/ts3.4/is-crt-available.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { UserAgentPair } from "@smithy/types"; -export declare const isCrtAvailable: () => UserAgentPair | null; diff --git a/node_modules/@aws-sdk/util-user-agent-node/package.json b/node_modules/@aws-sdk/util-user-agent-node/package.json deleted file mode 100644 index dcdf2666..00000000 --- a/node_modules/@aws-sdk/util-user-agent-node/package.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "name": "@aws-sdk/util-user-agent-node", - "version": "3.451.0", - "scripts": { - "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", - "build:cjs": "tsc -p tsconfig.cjs.json", - "build:es": "tsc -p tsconfig.es.json", - "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build", - "build:types": "tsc -p tsconfig.types.json", - "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", - "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "jest" - }, - "main": "./dist-cjs/index.js", - "module": "./dist-es/index.js", - "types": "./dist-types/index.d.ts", - "author": { - "name": "AWS SDK for JavaScript Team", - "url": "https://aws.amazon.com/javascript/" - }, - "license": "Apache-2.0", - "dependencies": { - "@aws-sdk/types": "3.451.0", - "@smithy/node-config-provider": "^2.1.5", - "@smithy/types": "^2.5.0", - "tslib": "^2.5.0" - }, - "devDependencies": { - "@tsconfig/recommended": "1.0.1", - "@types/node": "^14.14.31", - "concurrently": "7.0.0", - "downlevel-dts": "0.10.1", - "rimraf": "3.0.2", - "typedoc": "0.23.23", - "typescript": "~4.9.5" - }, - "peerDependencies": { - "aws-crt": ">=1.0.0" - }, - "peerDependenciesMeta": { - "aws-crt": { - "optional": true - } - }, - "engines": { - "node": ">=14.0.0" - }, - "typesVersions": { - "<4.0": { - "dist-types/*": [ - "dist-types/ts3.4/*" - ] - } - }, - "files": [ - "dist-*/**" - ], - "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/util-user-agent-node", - "repository": { - "type": "git", - "url": "https://github.com/aws/aws-sdk-js-v3.git", - "directory": "packages/util-user-agent-node" - }, - "typedoc": { - "entryPoint": "src/index.ts" - } -} diff --git a/node_modules/@aws-sdk/util-utf8-browser/LICENSE b/node_modules/@aws-sdk/util-utf8-browser/LICENSE deleted file mode 100644 index 7b6491ba..00000000 --- a/node_modules/@aws-sdk/util-utf8-browser/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. \ No newline at end of file diff --git a/node_modules/@aws-sdk/util-utf8-browser/README.md b/node_modules/@aws-sdk/util-utf8-browser/README.md deleted file mode 100644 index 0ee6c23b..00000000 --- a/node_modules/@aws-sdk/util-utf8-browser/README.md +++ /dev/null @@ -1,8 +0,0 @@ -# @aws-sdk/util-utf8-browser - -[![NPM version](https://img.shields.io/npm/v/@aws-sdk/util-utf8-browser/latest.svg)](https://www.npmjs.com/package/@aws-sdk/util-utf8-browser) -[![NPM downloads](https://img.shields.io/npm/dm/@aws-sdk/util-utf8-browser.svg)](https://www.npmjs.com/package/@aws-sdk/util-utf8-browser) - -> Deprecated package -> -> This internal package is deprecated in favor of [@aws-sdk/util-utf8](https://www.npmjs.com/package/@aws-sdk/util-utf8). diff --git a/node_modules/@aws-sdk/util-utf8-browser/dist-cjs/index.js b/node_modules/@aws-sdk/util-utf8-browser/dist-cjs/index.js deleted file mode 100644 index e5960876..00000000 --- a/node_modules/@aws-sdk/util-utf8-browser/dist-cjs/index.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.toUtf8 = exports.fromUtf8 = void 0; -const pureJs_1 = require("./pureJs"); -const whatwgEncodingApi_1 = require("./whatwgEncodingApi"); -const fromUtf8 = (input) => typeof TextEncoder === "function" ? (0, whatwgEncodingApi_1.fromUtf8)(input) : (0, pureJs_1.fromUtf8)(input); -exports.fromUtf8 = fromUtf8; -const toUtf8 = (input) => typeof TextDecoder === "function" ? (0, whatwgEncodingApi_1.toUtf8)(input) : (0, pureJs_1.toUtf8)(input); -exports.toUtf8 = toUtf8; diff --git a/node_modules/@aws-sdk/util-utf8-browser/dist-cjs/pureJs.js b/node_modules/@aws-sdk/util-utf8-browser/dist-cjs/pureJs.js deleted file mode 100644 index 0361b761..00000000 --- a/node_modules/@aws-sdk/util-utf8-browser/dist-cjs/pureJs.js +++ /dev/null @@ -1,47 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.toUtf8 = exports.fromUtf8 = void 0; -const fromUtf8 = (input) => { - const bytes = []; - for (let i = 0, len = input.length; i < len; i++) { - const value = input.charCodeAt(i); - if (value < 0x80) { - bytes.push(value); - } - else if (value < 0x800) { - bytes.push((value >> 6) | 0b11000000, (value & 0b111111) | 0b10000000); - } - else if (i + 1 < input.length && (value & 0xfc00) === 0xd800 && (input.charCodeAt(i + 1) & 0xfc00) === 0xdc00) { - const surrogatePair = 0x10000 + ((value & 0b1111111111) << 10) + (input.charCodeAt(++i) & 0b1111111111); - bytes.push((surrogatePair >> 18) | 0b11110000, ((surrogatePair >> 12) & 0b111111) | 0b10000000, ((surrogatePair >> 6) & 0b111111) | 0b10000000, (surrogatePair & 0b111111) | 0b10000000); - } - else { - bytes.push((value >> 12) | 0b11100000, ((value >> 6) & 0b111111) | 0b10000000, (value & 0b111111) | 0b10000000); - } - } - return Uint8Array.from(bytes); -}; -exports.fromUtf8 = fromUtf8; -const toUtf8 = (input) => { - let decoded = ""; - for (let i = 0, len = input.length; i < len; i++) { - const byte = input[i]; - if (byte < 0x80) { - decoded += String.fromCharCode(byte); - } - else if (0b11000000 <= byte && byte < 0b11100000) { - const nextByte = input[++i]; - decoded += String.fromCharCode(((byte & 0b11111) << 6) | (nextByte & 0b111111)); - } - else if (0b11110000 <= byte && byte < 0b101101101) { - const surrogatePair = [byte, input[++i], input[++i], input[++i]]; - const encoded = "%" + surrogatePair.map((byteValue) => byteValue.toString(16)).join("%"); - decoded += decodeURIComponent(encoded); - } - else { - decoded += String.fromCharCode(((byte & 0b1111) << 12) | ((input[++i] & 0b111111) << 6) | (input[++i] & 0b111111)); - } - } - return decoded; -}; -exports.toUtf8 = toUtf8; diff --git a/node_modules/@aws-sdk/util-utf8-browser/dist-cjs/whatwgEncodingApi.js b/node_modules/@aws-sdk/util-utf8-browser/dist-cjs/whatwgEncodingApi.js deleted file mode 100644 index b17f4906..00000000 --- a/node_modules/@aws-sdk/util-utf8-browser/dist-cjs/whatwgEncodingApi.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.toUtf8 = exports.fromUtf8 = void 0; -function fromUtf8(input) { - return new TextEncoder().encode(input); -} -exports.fromUtf8 = fromUtf8; -function toUtf8(input) { - return new TextDecoder("utf-8").decode(input); -} -exports.toUtf8 = toUtf8; diff --git a/node_modules/@aws-sdk/util-utf8-browser/dist-es/index.js b/node_modules/@aws-sdk/util-utf8-browser/dist-es/index.js deleted file mode 100644 index 2f8b1056..00000000 --- a/node_modules/@aws-sdk/util-utf8-browser/dist-es/index.js +++ /dev/null @@ -1,4 +0,0 @@ -import { fromUtf8 as jsFromUtf8, toUtf8 as jsToUtf8 } from "./pureJs"; -import { fromUtf8 as textEncoderFromUtf8, toUtf8 as textEncoderToUtf8 } from "./whatwgEncodingApi"; -export const fromUtf8 = (input) => typeof TextEncoder === "function" ? textEncoderFromUtf8(input) : jsFromUtf8(input); -export const toUtf8 = (input) => typeof TextDecoder === "function" ? textEncoderToUtf8(input) : jsToUtf8(input); diff --git a/node_modules/@aws-sdk/util-utf8-browser/dist-es/pureJs.js b/node_modules/@aws-sdk/util-utf8-browser/dist-es/pureJs.js deleted file mode 100644 index c038096b..00000000 --- a/node_modules/@aws-sdk/util-utf8-browser/dist-es/pureJs.js +++ /dev/null @@ -1,42 +0,0 @@ -export const fromUtf8 = (input) => { - const bytes = []; - for (let i = 0, len = input.length; i < len; i++) { - const value = input.charCodeAt(i); - if (value < 0x80) { - bytes.push(value); - } - else if (value < 0x800) { - bytes.push((value >> 6) | 0b11000000, (value & 0b111111) | 0b10000000); - } - else if (i + 1 < input.length && (value & 0xfc00) === 0xd800 && (input.charCodeAt(i + 1) & 0xfc00) === 0xdc00) { - const surrogatePair = 0x10000 + ((value & 0b1111111111) << 10) + (input.charCodeAt(++i) & 0b1111111111); - bytes.push((surrogatePair >> 18) | 0b11110000, ((surrogatePair >> 12) & 0b111111) | 0b10000000, ((surrogatePair >> 6) & 0b111111) | 0b10000000, (surrogatePair & 0b111111) | 0b10000000); - } - else { - bytes.push((value >> 12) | 0b11100000, ((value >> 6) & 0b111111) | 0b10000000, (value & 0b111111) | 0b10000000); - } - } - return Uint8Array.from(bytes); -}; -export const toUtf8 = (input) => { - let decoded = ""; - for (let i = 0, len = input.length; i < len; i++) { - const byte = input[i]; - if (byte < 0x80) { - decoded += String.fromCharCode(byte); - } - else if (0b11000000 <= byte && byte < 0b11100000) { - const nextByte = input[++i]; - decoded += String.fromCharCode(((byte & 0b11111) << 6) | (nextByte & 0b111111)); - } - else if (0b11110000 <= byte && byte < 0b101101101) { - const surrogatePair = [byte, input[++i], input[++i], input[++i]]; - const encoded = "%" + surrogatePair.map((byteValue) => byteValue.toString(16)).join("%"); - decoded += decodeURIComponent(encoded); - } - else { - decoded += String.fromCharCode(((byte & 0b1111) << 12) | ((input[++i] & 0b111111) << 6) | (input[++i] & 0b111111)); - } - } - return decoded; -}; diff --git a/node_modules/@aws-sdk/util-utf8-browser/dist-es/whatwgEncodingApi.js b/node_modules/@aws-sdk/util-utf8-browser/dist-es/whatwgEncodingApi.js deleted file mode 100644 index 22f6f567..00000000 --- a/node_modules/@aws-sdk/util-utf8-browser/dist-es/whatwgEncodingApi.js +++ /dev/null @@ -1,6 +0,0 @@ -export function fromUtf8(input) { - return new TextEncoder().encode(input); -} -export function toUtf8(input) { - return new TextDecoder("utf-8").decode(input); -} diff --git a/node_modules/@aws-sdk/util-utf8-browser/dist-types/index.d.ts b/node_modules/@aws-sdk/util-utf8-browser/dist-types/index.d.ts deleted file mode 100644 index c0cf3575..00000000 --- a/node_modules/@aws-sdk/util-utf8-browser/dist-types/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare const fromUtf8: (input: string) => Uint8Array; -export declare const toUtf8: (input: Uint8Array) => string; diff --git a/node_modules/@aws-sdk/util-utf8-browser/dist-types/pureJs.d.ts b/node_modules/@aws-sdk/util-utf8-browser/dist-types/pureJs.d.ts deleted file mode 100644 index 1590f990..00000000 --- a/node_modules/@aws-sdk/util-utf8-browser/dist-types/pureJs.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * Converts a JS string from its native UCS-2/UTF-16 representation into a - * Uint8Array of the bytes used to represent the equivalent characters in UTF-8. - * - * Cribbed from the `goog.crypt.stringToUtf8ByteArray` function in the Google - * Closure library, though updated to use typed arrays. - */ -export declare const fromUtf8: (input: string) => Uint8Array; -/** - * Converts a typed array of bytes containing UTF-8 data into a native JS - * string. - * - * Partly cribbed from the `goog.crypt.utf8ByteArrayToString` function in the - * Google Closure library, though updated to use typed arrays and to better - * handle astral plane code points. - */ -export declare const toUtf8: (input: Uint8Array) => string; diff --git a/node_modules/@aws-sdk/util-utf8-browser/dist-types/ts3.4/index.d.ts b/node_modules/@aws-sdk/util-utf8-browser/dist-types/ts3.4/index.d.ts deleted file mode 100644 index c0cf3575..00000000 --- a/node_modules/@aws-sdk/util-utf8-browser/dist-types/ts3.4/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare const fromUtf8: (input: string) => Uint8Array; -export declare const toUtf8: (input: Uint8Array) => string; diff --git a/node_modules/@aws-sdk/util-utf8-browser/dist-types/ts3.4/pureJs.d.ts b/node_modules/@aws-sdk/util-utf8-browser/dist-types/ts3.4/pureJs.d.ts deleted file mode 100644 index c0cf3575..00000000 --- a/node_modules/@aws-sdk/util-utf8-browser/dist-types/ts3.4/pureJs.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare const fromUtf8: (input: string) => Uint8Array; -export declare const toUtf8: (input: Uint8Array) => string; diff --git a/node_modules/@aws-sdk/util-utf8-browser/dist-types/ts3.4/whatwgEncodingApi.d.ts b/node_modules/@aws-sdk/util-utf8-browser/dist-types/ts3.4/whatwgEncodingApi.d.ts deleted file mode 100644 index 287ec898..00000000 --- a/node_modules/@aws-sdk/util-utf8-browser/dist-types/ts3.4/whatwgEncodingApi.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function fromUtf8(input: string): Uint8Array; -export declare function toUtf8(input: Uint8Array): string; diff --git a/node_modules/@aws-sdk/util-utf8-browser/dist-types/whatwgEncodingApi.d.ts b/node_modules/@aws-sdk/util-utf8-browser/dist-types/whatwgEncodingApi.d.ts deleted file mode 100644 index 287ec898..00000000 --- a/node_modules/@aws-sdk/util-utf8-browser/dist-types/whatwgEncodingApi.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function fromUtf8(input: string): Uint8Array; -export declare function toUtf8(input: Uint8Array): string; diff --git a/node_modules/@aws-sdk/util-utf8-browser/package.json b/node_modules/@aws-sdk/util-utf8-browser/package.json deleted file mode 100644 index f3dd61f5..00000000 --- a/node_modules/@aws-sdk/util-utf8-browser/package.json +++ /dev/null @@ -1,50 +0,0 @@ -{ - "name": "@aws-sdk/util-utf8-browser", - "version": "3.259.0", - "description": "A browser UTF-8 string <-> UInt8Array converter", - "main": "./dist-cjs/index.js", - "module": "./dist-es/index.js", - "scripts": { - "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types'", - "build:cjs": "tsc -p tsconfig.cjs.json", - "build:es": "tsc -p tsconfig.es.json", - "build:include:deps": "lerna run --scope $npm_package_name --include-dependencies build", - "build:types": "tsc -p tsconfig.types.json", - "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", - "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "test": "jest" - }, - "author": { - "name": "AWS SDK for JavaScript Team", - "url": "https://aws.amazon.com/javascript/" - }, - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.3.1" - }, - "types": "./dist-types/index.d.ts", - "typesVersions": { - "<4.0": { - "dist-types/*": [ - "dist-types/ts3.4/*" - ] - } - }, - "files": [ - "dist-*" - ], - "homepage": "https://github.com/aws/aws-sdk-js-v3/tree/main/packages/util-utf8-browser", - "repository": { - "type": "git", - "url": "https://github.com/aws/aws-sdk-js-v3.git", - "directory": "packages/util-utf8-browser" - }, - "devDependencies": { - "@tsconfig/recommended": "1.0.1", - "concurrently": "7.0.0", - "downlevel-dts": "0.10.1", - "rimraf": "3.0.2", - "typedoc": "0.19.2", - "typescript": "~4.6.2" - } -} diff --git a/node_modules/@extractus/feed-extractor/.eslintignore b/node_modules/@extractus/feed-extractor/.eslintignore deleted file mode 100644 index f06235c4..00000000 --- a/node_modules/@extractus/feed-extractor/.eslintignore +++ /dev/null @@ -1,2 +0,0 @@ -node_modules -dist diff --git a/node_modules/@extractus/feed-extractor/.eslintrc.json b/node_modules/@extractus/feed-extractor/.eslintrc.json deleted file mode 100644 index 42c12254..00000000 --- a/node_modules/@extractus/feed-extractor/.eslintrc.json +++ /dev/null @@ -1,121 +0,0 @@ -{ - "parserOptions": { - "ecmaVersion": "latest", - "sourceType": "module" - }, - "env": { - "es6": true, - "node": true, - "browser": true, - "jest": true - }, - "globals": { - "globalThis": true - }, - "plugins": [], - "overrides": [], - "extends": ["eslint:recommended"], - "rules": { - "arrow-spacing": ["error", { "before": true, "after": true }], - "block-spacing": ["error", "always"], - "brace-style": ["error", "1tbs", { "allowSingleLine": true }], - "camelcase": ["error", { - "allow": ["^UNSAFE_"], - "properties": "never", - "ignoreGlobals": true - }], - "comma-dangle": ["error", { - "arrays": "always-multiline", - "objects": "always-multiline", - "imports": "never", - "exports": "never", - "functions": "never" - }], - "comma-spacing": ["error", { "before": false, "after": true }], - "eol-last": "error", - "eqeqeq": ["error", "always", { "null": "ignore" }], - "func-call-spacing": ["error", "never"], - "indent": [ - "error", - 2, - { - "MemberExpression": 1, - "FunctionDeclaration": { - "body": 1, - "parameters": 2 - }, - "SwitchCase": 1 - } - ], - "key-spacing": ["error", { "beforeColon": false, "afterColon": true }], - "keyword-spacing": ["error", { "before": true, "after": true }], - "lines-between-class-members": ["error", "always", { "exceptAfterSingleLine": true }], - "max-len": [ - "error", - { - "code": 120, - "ignoreTrailingComments": true, - "ignoreComments": true, - "ignoreUrls": true - } - ], - "max-lines": [ - "error", - { - "max": 520, - "skipBlankLines": true, - "skipComments": false - } - ], - "max-lines-per-function": [ - "error", - { - "max": 240, - "skipBlankLines": true - } - ], - "max-params": ["error", 3], - "no-array-constructor": "error", - "no-mixed-spaces-and-tabs": "error", - "no-multi-spaces": "error", - "no-multi-str": "error", - "no-multiple-empty-lines": [ - "error", - { - "max": 1, - "maxEOF": 0 - } - ], - "no-restricted-syntax": [ - "error", - "WithStatement", - "BinaryExpression[operator='in']" - ], - "no-trailing-spaces": "error", - "no-use-before-define": [ - "error", - { - "functions": true, - "classes": true, - "variables": false - } - ], - "no-var": "warn", - "object-curly-spacing": ["error", "always"], - "padded-blocks": [ - "error", - { - "blocks": "never", - "switches": "never", - "classes": "never" - } - ], - "quotes": ["error", "single"], - "space-before-blocks": ["error", "always"], - "space-before-function-paren": ["error", "always"], - "space-infix-ops": "error", - "space-unary-ops": ["error", { "words": true, "nonwords": false }], - "space-in-parens": ["error", "never"], - "semi": ["error", "never"] - } -} diff --git a/node_modules/@extractus/feed-extractor/CONTRIBUTING.md b/node_modules/@extractus/feed-extractor/CONTRIBUTING.md deleted file mode 100644 index 7a01d848..00000000 --- a/node_modules/@extractus/feed-extractor/CONTRIBUTING.md +++ /dev/null @@ -1,71 +0,0 @@ -# Contributing to `@extractus/feed-extractor` - -Glad to see you here. - -Collaborations and pull requests are always welcomed, though larger proposals should be discussed first. - -As an OSS, it's better to follow the Unix philosophy: "do one thing and do it well". - - -## Third-party libraries - -Please avoid using libaries other than those available in the standard library, unless necessary. - -This library needs to be simple and flexible to run on multiple platforms such as Deno, Bun, or even browser. - - -## Coding convention - -Make sure your code lints before opening a pull request. - -```bash -cd feed-extractor - -# check coding convention issue -npm run lint - -# auto fix coding convention issue -npm run lint:fix -``` - -*When you run `npm test`, the linting process will be triggered at first.* - - -## Testing - -Be sure to run the unit test suite before opening a pull request. An example test run is shown below. - -```bash -cd feed-extractor -npm test -``` - -![feed-extractor unit test](https://i.imgur.com/2b5xt6S.png) - -If test coverage decreased, please check test scripts and try to improve this number. - - -## Documentation - -If you've changed APIs, please update README and [the examples](examples). - - -## Clean commit histories - -When you open a pull request, please ensure the commit history is clean. -Squash the commits into logical blocks, perhaps a single commit if that makes sense. - -What you want to avoid is commits such as "WIP" and "fix test" in the history. -This is so we keep history on master clean and straightforward. - -For people new to git, please refer the following guides: - -- [Writing good commit messages](https://github.com/erlang/otp/wiki/writing-good-commit-messages) -- [Commit Message Guidelines](https://gist.github.com/robertpainsi/b632364184e70900af4ab688decf6f53) - - -## License - -By contributing to `@extractus/feed-extractor`, you agree that your contributions will be licensed under its [MIT license](LICENSE). - ---- diff --git a/node_modules/@extractus/feed-extractor/LICENSE b/node_modules/@extractus/feed-extractor/LICENSE deleted file mode 100755 index 761840db..00000000 --- a/node_modules/@extractus/feed-extractor/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2015 Extractus - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - diff --git a/node_modules/@extractus/feed-extractor/README.md b/node_modules/@extractus/feed-extractor/README.md deleted file mode 100755 index 7b4e668f..00000000 --- a/node_modules/@extractus/feed-extractor/README.md +++ /dev/null @@ -1,380 +0,0 @@ -# feed-extractor - -To read & normalize RSS/ATOM/JSON feed data. - -[![npm version](https://badge.fury.io/js/@extractus%2Ffeed-extractor.svg)](https://badge.fury.io/js/@extractus%2Ffeed-extractor) -![CodeQL](https://github.com/extractus/feed-extractor/workflows/CodeQL/badge.svg) -![CI test](https://github.com/extractus/feed-extractor/workflows/ci-test/badge.svg) -[![Coverage Status](https://img.shields.io/coveralls/github/extractus/feed-extractor)](https://coveralls.io/github/extractus/feed-extractor?branch=main) - -(This library is derived from [feed-reader](https://www.npmjs.com/package/feed-reader) renamed.) - -## Demo - -- [Give it a try!](https://extractor-demos.pages.dev/feed-extractor) -- [Example FaaS](https://extractus.deno.dev/extract?apikey=rn0wbHos2e73W6ghQf705bdF&type=feed&url=https://news.google.com/rss) - -## Install & Usage - -### Node.js - -```bash -npm i @extractus/feed-extractor -``` - -```ts -import { extract } from '@extractus/feed-extractor' - -// extract a RSS -const result = await extract('https://news.google.com/rss') -console.log(result) -``` - -### Deno - -```ts -// deno < 1.28 -import { extract } from 'https://esm.sh/@extractus/feed-extractor' - -// deno > 1.28 -import { extract } from 'npm:@extractus/feed-extractor' -``` - -### Browser - -```ts -import { extract } from 'https://esm.sh/@extractus/feed-extractor' -``` - -Please check [the examples](https://github.com/extractus/feed-extractor/tree/main/examples) for reference. - - -## APIs - -- [extract()](#extract) -- [extractFromJson()](#extractfromjson) -- [extractFromXml()](#extractfromxml) - -#### Note: - -- *Old method `read()` has been marked as deprecated and will be removed in next major release.* - ---- - -### `extract()` - -Load and extract feed data from given RSS/ATOM/JSON source. Return a Promise object. - -#### Syntax - -```ts -extract(String url) -extract(String url, Object parserOptions) -extract(String url, Object parserOptions, Object fetchOptions) -``` - -Example: - -```js -import { extract } from '@extractus/feed-extractor' - -const result = await extract('https://news.google.com/atom') -console.log(result) -``` - -Without any options, the result should have the following structure: - -```ts -{ - title: String, - link: String, - description: String, - generator: String, - language: String, - published: ISO Date String, - entries: Array[ - { - id: String, - title: String, - link: String, - description: String, - published: ISO Datetime String - }, - // ... - ] -} -``` - -#### Parameters - -##### `url` *required* - -URL of a valid feed source - -Feed content must be accessible and conform one of the following standards: - - - [RSS Feed](https://www.rssboard.org/rss-specification) - - [RDF Feed](https://web.resource.org/rss/1.0/spec) - - [ATOM Feed](https://datatracker.ietf.org/doc/html/rfc5023) - - [JSON Feed](https://www.jsonfeed.org/version/1.1/) - -##### `parserOptions` *optional* - -Object with all or several of the following properties: - - - `normalization`: Boolean, normalize feed data or keep original. Default `true`. - - `useISODateFormat`: Boolean, convert datetime to ISO format. Default `true`. - - `descriptionMaxLen`: Number, to truncate description. Default `250` characters. Set to `0` = no truncation. - - `xmlParserOptions`: Object, used by xml parser, view [fast-xml-parser's docs](https://github.com/NaturalIntelligence/fast-xml-parser/blob/master/docs/v4/2.XMLparseOptions.md) - - `getExtraFeedFields`: Function, to get more fields from feed data - - `getExtraEntryFields`: Function, to get more fields from feed entry data - - `baseUrl`: URL string, to absolutify the links within feed content - -For example: - -```ts -import { extract } from '@extractus/feed-extractor' - -await extract('https://news.google.com/atom', { - useISODateFormat: false -}) - -await extract('https://news.google.com/rss', { - useISODateFormat: false, - getExtraFeedFields: (feedData) => { - return { - subtitle: feedData.subtitle || '' - } - }, - getExtraEntryFields: (feedEntry) => { - const { - enclosure, - category - } = feedEntry - return { - enclosure: { - url: enclosure['@_url'], - type: enclosure['@_type'], - length: enclosure['@_length'] - }, - category: isString(category) ? category : { - text: category['@_text'], - domain: category['@_domain'] - } - } - } -}) -``` - -##### `fetchOptions` *optional* - -`fetchOptions` is an object that can have the following properties: - -- `headers`: to set request headers -- `proxy`: another endpoint to forward the request to -- `agent`: a HTTP proxy agent -- `signal`: AbortController signal or AbortSignal timeout to terminate the request - -For example, you can use this param to set request headers to fetch as below: - -```js -import { extract } from '@extractus/feed-extractor' - -const url = 'https://news.google.com/rss' -await extract(url, null, { - headers: { - 'user-agent': 'Opera/9.60 (Windows NT 6.0; U; en) Presto/2.1.1' - } -}) -``` - -You can also specify a proxy endpoint to load remote content, instead of fetching directly. - -For example: - -```js -import { extract } from '@extractus/feed-extractor' - -const url = 'https://news.google.com/rss' - -await extract(url, null, { - headers: { - 'user-agent': 'Opera/9.60 (Windows NT 6.0; U; en) Presto/2.1.1' - }, - proxy: { - target: 'https://your-secret-proxy.io/loadXml?url=', - headers: { - 'Proxy-Authorization': 'Bearer YWxhZGRpbjpvcGVuc2VzYW1l...' - } - } -}) -``` - -Passing requests to proxy is useful while running `@extractus/feed-extractor` on browser. -View `examples/browser-feed-reader` as reference example. - -Another way to work with proxy is use `agent` option instead of `proxy` as below: - -```js -import { extract } from '@extractus/feed-extractor' - -import { HttpsProxyAgent } from 'https-proxy-agent' - -const proxy = 'http://abc:RaNdoMpasswORd_country-France@proxy.packetstream.io:31113' - -const url = 'https://news.google.com/rss' - -const feed = await extract(url, null, { - agent: new HttpsProxyAgent(proxy), -}) -console.log('Run feed-extractor with proxy:', proxy) -console.log(feed) -``` - -For more info about [https-proxy-agent](https://www.npmjs.com/package/https-proxy-agent), check [its repo](https://github.com/TooTallNate/proxy-agents). - -By default, there is no request timeout. You can use the option `signal` to cancel request at the right time. - -The common way is to use AbortControler: - -```js -const controller = new AbortController() - -// stop after 5 seconds -setTimeout(() => { - controller.abort() -}, 5000) - -const data = await extract(url, null, { - signal: controller.signal, -}) -``` - -A newer solution is AbortSignal's `timeout()` static method: - -```js -// stop after 5 seconds -const data = await extract(url, null, { - signal: AbortSignal.timeout(5000), -}) -``` - -For more info: - -- [AbortController constructor](https://developer.mozilla.org/en-US/docs/Web/API/AbortController) -- [AbortSignal: timeout() static method](https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal/timeout_static) - - -### `extractFromJson()` - -Extract feed data from JSON string. -Return an object which contains feed data. - -#### Syntax - -```ts -extractFromJson(String json) -extractFromJson(String json, Object parserOptions) -``` - -Example: - -```js -import { extractFromJson } from '@extractus/feed-extractor' - -const url = 'https://www.jsonfeed.org/feed.json' -// this resource provides data in JSON feed format -// so we fetch remote content as json -// then pass to feed-extractor -const res = await fetch(url) -const json = await res.json() - -const feed = extractFromJson(json) -console.log(feed) -``` - -#### Parameters - -##### `json` *required* - -JSON string loaded from JSON feed resource. - -##### `parserOptions` *optional* - -See [parserOptions](#parseroptions-optional) above. - - -### `extractFromXml()` - -Extract feed data from XML string. -Return an object which contains feed data. - -#### Syntax - -```ts -extractFromXml(String xml) -extractFromXml(String xml, Object parserOptions) -``` - -Example: - -```js -import { extractFromXml } from '@extractus/feed-extractor' - -const url = 'https://news.google.com/atom' -// this resource provides data in ATOM feed format -// so we fetch remote content as text -// then pass to feed-extractor -const res = await fetch(url) -const xml = await res.text() - -const feed = extractFromXml(xml) -console.log(feed) -``` - -#### Parameters - -##### `xml` *required* - -XML string loaded from RSS/ATOM feed resource. - -##### `parserOptions` *optional* - -See [parserOptions](#parseroptions-optional) above. - - -## Test - -```bash -git clone https://github.com/extractus/feed-extractor.git -cd feed-extractor -pnpm i -pnpm test -``` - -![feed-extractor-test.png](https://i.imgur.com/2b5xt6S.png) - - -## Quick evaluation - -```bash -git clone https://github.com/extractus/feed-extractor.git -cd feed-extractor -pnpm i -pnpm eval https://news.google.com/rss -``` - -## License -The MIT License (MIT) - -## Support the project - -If you find value from this open source project, you can support in the following ways: - -- Give it a star ⭐ -- Buy me a coffee: https://paypal.me/ndaidong 🍵 -- Subscribe [Feed Reader service](https://rapidapi.com/pwshub-pwshub-default/api/feed-reader1/) on RapidAPI 😉 - -Thank you. - ---- diff --git a/node_modules/@extractus/feed-extractor/SECURITY.md b/node_modules/@extractus/feed-extractor/SECURITY.md deleted file mode 100644 index 82cc3484..00000000 --- a/node_modules/@extractus/feed-extractor/SECURITY.md +++ /dev/null @@ -1,17 +0,0 @@ -# Security Policy - -## Supported Versions - -Due to resource limitations, only the latest stable minor release is getting bugfixes (including security ones). - -So e.g. if the latest stable version is 6.1.3, then 6.1.x line will still get security fixes but older versions (like 6.0.x) won't get any fixes. - -Description above is a general rule and may be altered on case by case basis. - -## Reporting a Vulnerability - -You can report low severity vulnerabilities as GitHub issues. - -More severe vulnerabilities should be reported to email extractus.security@skiff.com. - ---- diff --git a/node_modules/@extractus/feed-extractor/deno.json b/node_modules/@extractus/feed-extractor/deno.json deleted file mode 100644 index 01ca3564..00000000 --- a/node_modules/@extractus/feed-extractor/deno.json +++ /dev/null @@ -1,8 +0,0 @@ -{ - "imports": { - "cross-fetch": "./src/deno/cross-fetch.js", - "html-entities": "https://esm.sh/html-entities@2.4.0", - "fast-xml-parser": "https://esm.sh/fast-xml-parser@4.3.2", - "bellajs": "https://esm.sh/bellajs@11.1.2" - } -} diff --git a/node_modules/@extractus/feed-extractor/eval.js b/node_modules/@extractus/feed-extractor/eval.js deleted file mode 100755 index 249ff174..00000000 --- a/node_modules/@extractus/feed-extractor/eval.js +++ /dev/null @@ -1,25 +0,0 @@ -// eval.js -// to quickly test with a single url or file - -import { extract } from './src/main.js' - -const run = async (url) => { - try { - console.time('extract-feed') - const feed = await extract(url) - console.log(feed) - console.timeEnd('extract-feed') - } catch (err) { - console.log(err.message) - } -} - -const init = (argv) => { - if (argv.length === 3) { - const url = argv[2] - return run(url) - } - return 'Nothing to do!' -} - -init(process.argv) diff --git a/node_modules/@extractus/feed-extractor/index.d.ts b/node_modules/@extractus/feed-extractor/index.d.ts deleted file mode 100755 index ffdd4f87..00000000 --- a/node_modules/@extractus/feed-extractor/index.d.ts +++ /dev/null @@ -1,95 +0,0 @@ -// Type definitions - -export interface FeedEntry { - /** - * id, guid, or generated identifier for the entry - */ - id: string; - link?: string; - title?: string; - description?: string; - published?: Date; -} - -export interface FeedData { - link?: string; - title?: string; - description?: string; - generator?: string; - language?: string; - published?: Date; - entries?: Array; -} - -export interface ProxyConfig { - target?: string; - headers?: any; -} - -export interface ReaderOptions { - /** - * normalize feed data or keep original - * default: true - */ - normalization?: boolean; - /** - * convert datetime to ISO format - * default: true - */ - useISODateFormat?: boolean; - /** - * to truncate description - * default: 210 - */ - descriptionMaxLen?: number; - /** - * fast-xml-parser options - * https://github.com/NaturalIntelligence/fast-xml-parser/blob/master/docs/v4/2.XMLparseOptions.md - */ - xmlParserOptions?: any; - /** - * fill in the baseurl when it does not exist in the link - * default: '' - */ - baseUrl?: string; - /** - * merge extra feed fields in result - */ - getExtraFeedFields?: (feedData: object) => object; - /** - * merge extra entry fields in result - */ - getExtraEntryFields?: (entryData: object) => object; -} - -export interface FetchOptions { - // Definitions by: Ryan Graham - method?: "GET" | "POST" | "DELETE" | "PATCH" | "PUT" | "HEAD" | "OPTIONS" | "CONNECT"; - headers?: any; - body?: any; - mode?: "cors" | "no-cors" | "same-origin"; - credentials?: "omit" | "same-origin" | "include"; - cache?: "default" | "no-store" | "reload" | "no-cache" | "force-cache" | "only-if-cached"; - redirect?: "follow" | "error" | "manual"; - referrer?: string; - referrerPolicy?: "referrer" | "no-referrer-when-downgrade" | "origin" | "origin-when-cross-origin" | "unsafe-url"; - integrity?: any; - proxy?: ProxyConfig; - /** - * http proxy agent - * default: null - */ - agent?: object; - /** - * signal to terminate request - * default: null - */ - signal?: object; -} - -export function extractFromXml(xml: string, options?: ReaderOptions): FeedData; -export function extractFromJson(json: string, options?: ReaderOptions): FeedData; - -export function extract(url: string, options?: ReaderOptions, fetchOptions?: FetchOptions): Promise; - -export function read(url: string, options?: ReaderOptions, fetchOptions?: FetchOptions): Promise; diff --git a/node_modules/@extractus/feed-extractor/node_modules/.bin/fxparser b/node_modules/@extractus/feed-extractor/node_modules/.bin/fxparser deleted file mode 120000 index 75327ed9..00000000 --- a/node_modules/@extractus/feed-extractor/node_modules/.bin/fxparser +++ /dev/null @@ -1 +0,0 @@ -../fast-xml-parser/src/cli/cli.js \ No newline at end of file diff --git a/node_modules/@extractus/feed-extractor/node_modules/fast-xml-parser/CHANGELOG.md b/node_modules/@extractus/feed-extractor/node_modules/fast-xml-parser/CHANGELOG.md deleted file mode 100644 index 047d7ab3..00000000 --- a/node_modules/@extractus/feed-extractor/node_modules/fast-xml-parser/CHANGELOG.md +++ /dev/null @@ -1,572 +0,0 @@ -Note: If you find missing information about particular minor version, that version must have been changed without any functional change in this library. - -**4.3.2 / 2023-10-02** -* fix `jObj.hasOwnProperty` when give input is null (By [Arda TANRIKULU](https://github.com/ardatan)) - -**4.3.1 / 2023-09-24** -* revert back "Fix typings for builder and parser to make return type generic" to avoid failure of existing projects. Need to decide a common approach. - -**4.3.0 / 2023-09-20** -* Fix stopNodes to work with removeNSPrefix (#607) (#608) (By [Craig Andrews]https://github.com/candrews)) -* Fix #610 ignore properties set to Object.prototype -* Fix typings for builder and parser to make return type generic (By [Sarah Dayan](https://github.com/sarahdayan)) - -**4.2.7 / 2023-07-30** -* Fix: builder should set text node correctly when only textnode is present (#589) (By [qianqing](https://github.com/joneqian)) -* Fix: Fix for null and undefined attributes when building xml (#585) (#598). A null or undefined value should be ignored. (By [Eugenio Ceschia](https://github.com/cecia234)) - -**4.2.6 / 2023-07-17** -* Fix: Remove trailing slash from jPath for self-closing tags (#595) (By [Maciej Radzikowski](https://github.com/m-radzikowski)) - -**4.2.5 / 2023-06-22** -* change code implementation - -**4.2.4 / 2023-06-06** -* fix security bug - -**4.2.3 / 2023-06-05** -* fix security bug - -**4.2.2 / 2023-04-18** -* fix #562: fix unpaired tag when it comes in last of a nested tag. Also throw error when unpaired tag is used as closing tag - -**4.2.1 / 2023-04-18** -* fix: jpath after unpaired tags - -**4.2.0 / 2023-04-09** -* support `updateTag` parser property - -**4.1.4 / 2023-04-08** -* update typings to let user create XMLBuilder instance without options (#556) (By [Patrick](https://github.com/omggga)) -* fix: IsArray option isn't parsing tags with 0 as value correctly #490 (#557) (By [Aleksandr Murashkin](https://github.com/p-kuen)) -* feature: support `oneListGroup` to group repeated children tags udder single group - -**4.1.3 / 2023-02-26** -* fix #546: Support complex entity value - -**4.1.2 / 2023-02-12** -* Security Fix - -**4.1.1 / 2023-02-03** -* Fix #540: ignoreAttributes breaks unpairedTags -* Refactor XML builder code - -**4.1.0 / 2023-02-02** -* Fix '<' or '>' in DTD comment throwing an error. (#533) (By [Adam Baker](https://github.com/Cwazywierdo)) -* Set "eNotation" to 'true' as default - -**4.0.15 / 2023-01-25** -* make "eNotation" optional - -**4.0.14 / 2023-01-22** -* fixed: add missed typing "eNotation" to parse values - -**4.0.13 / 2023-01-07** -* preserveorder formatting (By [mdeknowis](https://github.com/mdeknowis)) -* support `transformAttributeName` (By [Erik Rothoff Andersson](https://github.com/erkie)) - -**4.0.12 / 2022-11-19** -* fix typescript - -**4.0.11 / 2022-10-05** -* fix #501: parse for entities only once - -**4.0.10 / 2022-09-14** -* fix broken links in demo site (By [Yannick Lang](https://github.com/layaxx)) -* fix #491: tagValueProcessor type definition (By [Andrea Francesco Speziale](https://github.com/andreafspeziale)) -* Add jsdocs for tagValueProcessor - - -**4.0.9 / 2022-07-10** -* fix #470: stop-tag can have self-closing tag with same name -* fix #472: stopNode can have any special tag inside -* Allow !ATTLIST and !NOTATION with DOCTYPE -* Add transformTagName option to transform tag names when parsing (#469) (By [Erik Rothoff Andersson](https://github.com/erkie)) - -**4.0.8 / 2022-05-28** -* Fix CDATA parsing returning empty string when value = 0 (#451) (By [ndelanou](https://github.com/ndelanou)) -* Fix stopNodes when same tag appears inside node (#456) (By [patrickshipe](https://github.com/patrickshipe)) -* fix #468: prettify own properties only - -**4.0.7 / 2022-03-18** -* support CDATA even if tag order is not preserved -* support Comments even if tag order is not preserved -* fix #446: XMLbuilder should not indent XML declaration - -**4.0.6 / 2022-03-08** -* fix: call tagValueProcessor only once for array items -* fix: missing changed for #437 - -**4.0.5 / 2022-03-06** -* fix #437: call tagValueProcessor from XML builder - -**4.0.4 / 2022-03-03** -* fix #435: should skip unpaired and self-closing nodes when set as stopnodes - -**4.0.3 / 2022-02-15** -* fix: ReferenceError when Bundled with Strict (#431) (By [Andreas Heissenberger](https://github.com/aheissenberger)) - - -**4.0.2 / 2022-02-04** -* builder supports `suppressUnpairedNode` -* parser supports `ignoreDeclaration` and `ignorePiTags` -* fix: when comment is parsed as text value if given as ` ...` #423 -* builder supports decoding `&` - -**4.0.1 / 2022-01-08** -* fix builder for pi tag -* fix: support suppressBooleanAttrs by builder - -**4.0.0 / 2022-01-06** -* Generating different combined, parser only, builder only, validator only browser bundles -* Keeping cjs modules as they can be imported in cjs and esm modules both. Otherwise refer `esm` branch. - -**4.0.0-beta.8 / 2021-12-13** -* call tagValueProcessor for stop nodes - -**4.0.0-beta.7 / 2021-12-09** -* fix Validator bug when an attribute has no value but '=' only -* XML Builder should suppress unpaired tags by default. -* documents update for missing features -* refactoring to use Object.assign -* refactoring to remove repeated code - -**4.0.0-beta.6 / 2021-12-05** -* Support PI Tags processing -* Support `suppressBooleanAttributes` by XML Builder for attributes with value `true`. - -**4.0.0-beta.5 / 2021-12-04** -* fix: when a tag with name "attributes" - -**4.0.0-beta.4 / 2021-12-02** -* Support HTML document parsing -* skip stop nodes parsing when building the XML from JS object -* Support external entites without DOCTYPE -* update dev dependency: strnum v1.0.5 to fix long number issue - -**4.0.0-beta.3 / 2021-11-30** -* support global stopNodes expression like "*.stop" -* support self-closing and paired unpaired tags -* fix: CDATA should not be parsed. -* Fix typings for XMLBuilder (#396)(By [Anders Emil Salvesen](https://github.com/andersem)) -* supports XML entities, HTML entities, DOCTYPE entities - -**⚠️ 4.0.0-beta.2 / 2021-11-19** -* rename `attrMap` to `attibutes` in parser output when `preserveOrder:true` -* supports unpairedTags - -**⚠️ 4.0.0-beta.1 / 2021-11-18** -* Parser returns an array now - * to make the structure common - * and to return root level detail -* renamed `cdataTagName` to `cdataPropName` -* Added `commentPropName` -* fix typings - -**⚠️ 4.0.0-beta.0 / 2021-11-16** -* Name change of many configuration properties. - * `attrNodeName` to `attributesGroupName` - * `attrValueProcessor` to `attributeValueProcessor` - * `parseNodeValue` to `parseTagValue` - * `ignoreNameSpace` to `removeNSPrefix` - * `numParseOptions` to `numberParseOptions` - * spelling correction for `suppressEmptyNode` -* Name change of cli and browser bundle to **fxparser** -* `isArray` option is added to parse a tag into array -* `preserveOrder` option is added to render XML in such a way that the result js Object maintains the order of properties same as in XML. -* Processing behaviour of `tagValueProcessor` and `attributeValueProcessor` are changes with extra input parameters -* j2xparser is renamed to XMLBuilder. -* You need to build XML parser instance for given options first before parsing XML. -* fix #327, #336: throw error when extra text after XML content -* fix #330: attribute value can have '\n', -* fix #350: attrbiutes can be separated by '\n' from tagname - -3.21.1 / 2021-10-31 -* Correctly format JSON elements with a text prop but no attribute props ( By [haddadnj](https://github.com/haddadnj) ) - -3.21.0 / 2021-10-25 - * feat: added option `rootNodeName` to set tag name for array input when converting js object to XML. - * feat: added option `alwaysCreateTextNode` to force text node creation (by: *@massimo-ua*) - * ⚠️ feat: Better error location for unclosed tags. (by *@Gei0r*) - * Some error messages would be changed when validating XML. Eg - * `{ InvalidXml: "Invalid '[ \"rootNode\"]' found." }` → `{InvalidTag: "Unclosed tag 'rootNode'."}` - * `{ InvalidTag: "Closing tag 'rootNode' is expected inplace of 'rootnode'." }` → `{ InvalidTag: "Expected closing tag 'rootNode' (opened in line 1) instead of closing tag 'rootnode'."}` - * ⚠️ feat: Column in error response when validating XML -```js -{ - "code": "InvalidAttr", - "msg": "Attribute 'abc' is repeated.", - "line": 1, - "col": 22 -} -``` - -3.20.1 / 2021-09-25 - * update strnum package - -3.20.0 / 2021-09-10 - * Use strnum npm package to parse string to number - * breaking change: long number will be parsed to scientific notation. - -3.19.0 / 2021-03-14 - * License changed to MIT original - * Fix #321 : namespace tag parsing - -3.18.0 / 2021-02-05 - * Support RegEx and function in arrayMode option - * Fix #317 : validate nested PI tags - -3.17.4 / 2020-06-07 - * Refactor some code to support IE11 - * Fix: `` space as attribute string - -3.17.3 / 2020-05-23 - * Fix: tag name separated by \n \t - * Fix: throw error for unclosed tags - -3.17.2 / 2020-05-23 - * Fixed an issue in processing doctype tag - * Fixed tagName where it should not have whitespace chars - -3.17.1 / 2020-05-19 - * Fixed an issue in checking opening tag - -3.17.0 / 2020-05-18 - * parser: fix '<' issue when it comes in aatr value - * parser: refactoring to remove dependency from regex - * validator: fix IE 11 issue for error messages - * updated dev dependencies - * separated benchmark module to sub-module - * breaking change: comments will not be removed from CDATA data - -3.16.0 / 2020-01-12 - * validaor: fix for ampersand characters (#215) - * refactoring to support unicode chars in tag name - * update typing for validator error - -3.15.1 / 2019-12-09 - * validaor: fix multiple roots are not allowed - -3.15.0 / 2019-11-23 - * validaor: improve error messaging - * validator: add line number in case of error - * validator: add more error scenarios to make it more descriptive - -3.14.0 / 2019-10-25 - * arrayMode for XML to JS obj parsing - -3.13.0 / 2019-10-02 - * pass tag/attr name to tag/attr value processor - * inbuilt optional validation with XML parser - -3.12.21 / 2019-10-02 - * Fix validator for unclosed XMLs - * move nimnjs dependency to dev dependency - * update dependencies - -3.12.20 / 2019-08-16 - * Revert: Fix #167: '>' in attribute value as it is causing high performance degrade. - -3.12.19 / 2019-07-28 - * Fix js to xml parser should work for date values. (broken: `tagValueProcessor` will receive the original value instead of string always) (breaking change) - -3.12.18 / 2019-07-27 - * remove configstore dependency - -3.12.17 / 2019-07-14 - * Fix #167: '>' in attribute value - -3.12.16 / 2019-03-23 - * Support a new option "stopNodes". (#150) -Accept the list of tags which are not required to be parsed. Instead, all the nested tag and data will be assigned as string. - * Don't show post-install message - -3.12.12 / 2019-01-11 - * fix : IE parseInt, parseFloat error - -3.12.11 / 2018-12-24 - * fix #132: "/" should not be parsed as boolean attr in case of self closing tags - -3.12.9 / 2018-11-23 - * fix #129 : validator should not fail when an atrribute name is 'length' - -3.12.8 / 2018-11-22 - * fix #128 : use 'attrValueProcessor' to process attribute value in json2xml parser - -3.12.6 / 2018-11-10 - * Fix #126: check for type - -3.12.4 / 2018-09-12 - * Fix: include tasks in npm package - -3.12.3 / 2018-09-12 - * Fix CLI issue raised in last PR - -3.12.2 / 2018-09-11 - * Fix formatting for JSON to XML output - * Migrate to webpack (PR merged) - * fix cli (PR merged) - -3.12.0 / 2018-08-06 - * Support hexadecimal values - * Support true number parsing - -3.11.2 / 2018-07-23 - * Update Demo for more options - * Update license information - * Update readme for formatting, users, and spelling mistakes - * Add missing typescript definition for j2xParser - * refactoring: change filenames - -3.11.1 / 2018-06-05 - * fix #93: read the text after self closing tag - -3.11.0 / 2018-05-20 - * return defaultOptions if there are not options in buildOptions function - * added localeRange declaration in parser.d.ts - * Added support of cyrillic characters in validator XML - * fixed bug in validator work when XML data with byte order marker - -3.10.0 / 2018-05-13 - * Added support of cyrillic characters in parsing XML to JSON - -3.9.11 / 2018-05-09 - * fix https://github.com/NaturalIntelligence/fast-xml-parser/issues/80 fix nimn chars - * update package information - * fix https://github.com/NaturalIntelligence/fast-xml-parser/issues/86: json 2 xml parser : property with null value should be parsed to self closing tag. - * update online demo - * revert zombiejs to old version to support old version of node - * update dependencies - -3.3.10 / 2018-04-23 - * fix #77 : parse even if closing tag has space before '>' - * include all css & js lib in demo app - * remove babel dependencies until needed - -3.3.9 / 2018-04-18 - * fix #74 : TS2314 TypeScript compiler error - -3.3.8 / 2018-04-17 - * fix #73 : IE doesn't support Object.assign - -3.3.7 / 2018-04-14 - * fix: use let insted of const in for loop of validator - * Merge pull request - https://github.com/NaturalIntelligence/fast-xml-parser/issues/71 from bb/master - first draft of typings for typescript - https://github.com/NaturalIntelligence/fast-xml-parser/issues/69 - * Merge pull request - https://github.com/NaturalIntelligence/fast-xml-parser/issues/70 from bb/patch-1 - fix some typos in readme - -3.3.6 / 2018-03-21 - * change arrow functions to full notation for IE compatibility - -3.3.5 / 2018-03-15 - * fix https://github.com/NaturalIntelligence/fast-xml-parser/issues/67 : attrNodeName invalid behavior - * fix: remove decodeHTML char condition - -3.3.4 / 2018-03-14 - * remove dependency on "he" package - * refactor code to separate methods in separate files. - * draft code for transforming XML to json string. It is not officially documented due to performance issue. - -3.3.0 / 2018-03-05 - * use common default options for XML parsing for consistency. And add `parseToNimn` method. - * update nexttodo - * update README about XML to Nimn transformation and remove special notes about 3.x release - * update CONTRIBUTING.ms mentioning nexttodo - * add negative case for XML PIs - * validate xml processing instruction tags https://github.com/NaturalIntelligence/fast-xml-parser/issues/62 - * nimndata: handle array with object - * nimndata: node with nested node and text node - * nimndata: handle attributes and text node - * nimndata: add options, handle array - * add xml to nimn data converter - * x2j: direct access property with tagname - * update changelog - * fix validator when single quote presents in value enclosed with double quotes or vice versa - * Revert "remove unneded nimnjs dependency, move opencollective to devDependencies and replace it - with more light opencollective-postinstall" - This reverts commit d47aa7181075d82db4fee97fd8ea32b056fe3f46. - * Merge pull request: https://github.com/NaturalIntelligence/fast-xml-parser/issues/63 from HaroldPutman/suppress-undefined - Keep undefined nodes out of the XML output : This is useful when you are deleting nodes from the JSON and rewriting XML. - -3.2.4 / 2018-03-01 - * fix #59 fix in validator when open quote presents in attribute value - * Create nexttodo.md - * exclude static from bitHound tests - * add package lock - -3.2.3 / 2018-02-28 - * Merge pull request from Delagen/master: fix namespaces can contain the same characters as xml names - -3.2.2 / 2018-02-22 - * fix: attribute xmlns should not be removed if ignoreNameSpace is false - * create CONTRIBUTING.md - -3.2.1 / 2018-02-17 - * fix: empty attribute should be parsed - -3.2.0 / 2018-02-16 - * Merge pull request : Dev to Master - * Update README and version - * j2x:add performance test - * j2x: Remove extra empty line before closing tag - * j2x: suppress empty nodes to self closing node if configured - * j2x: provide option to give indentation depth - * j2x: make optional formatting - * j2x: encodeHTMLchat - * j2x: handle cdata tag - * j2x: handle grouped attributes - * convert json to xml - - nested object - - array - - attributes - - text value - * small refactoring - * Merge pull request: Update cli.js to let user validate XML file or data - * Add option for rendering CDATA as separate property - -3.0.1 / 2018-02-09 - * fix CRLF: replace it with single space in attributes value only. - -3.0.0 / 2018-02-08 - * change online tool with new changes - * update info about new options - * separate tag value processing to separate function - * make HTML decoding optional - * give an option to allow boolean attributes - * change cli options as per v3 - * Correct comparison table format on README - * update v3 information - * some performance improvement changes - * Make regex object local to the method and move some common methods to util - * Change parser to - - handle multiple instances of CDATA - - make triming of value optionals - - HTML decode attribute and text value - - refactor code to separate files - * Ignore newline chars without RE (in validator) - * validate for XML prolog - * Validate DOCTYPE without RE - * Update validator to return error response - * Update README to add detail about V3 - * Separate xmlNode model class - * include vscode debug config - * fix for repeated object - * fix attribute regex for boolean attributes - * Fix validator for invalid attributes -2.9.4 / 2018-02-02 - * Merge pull request: Decode HTML characters - * refactor source folder name - * ignore bundle / browser js to be published to npm -2.9.3 / 2018-01-26 - * Merge pull request: Correctly remove CRLF line breaks - * Enable to parse attribute in online editor - * Fix testing demo app test - * Describe parsing options - * Add options for online demo -2.9.2 / 2018-01-18 - * Remove check if tag starting with "XML" - * Fix: when there are spaces before / after CDATA - -2.9.1 / 2018-01-16 - * Fix: newline should be replaced with single space - * Fix: for single and multiline comments - * validate xml with CDATA - * Fix: the issue when there is no space between 2 attributes - * Fix: https://github.com/NaturalIntelligence/fast-xml-parser/issues/33: when there is newline char in attr val, it doesn't parse - * Merge pull request: fix ignoreNamespace - * fix: don't wrap attributes if only namespace attrs - * fix: use portfinder for run tests, update deps - * fix: don't treat namespaces as attributes when ignoreNamespace enabled - -2.9.0 / 2018-01-10 - * Rewrite the validator to handle large files. - Ignore DOCTYPE validation. - * Fix: When attribute value has equal sign - -2.8.3 / 2017-12-15 - * Fix: when a tag has value along with subtags - -2.8.2 / 2017-12-04 - * Fix value parsing for IE - -2.8.1 / 2017-12-01 - * fix: validator should return false instead of err when invalid XML - -2.8.0 / 2017-11-29 - * Add CLI option to ignore value conversion - * Fix variable name when filename is given on CLI - * Update CLI help text - * Merge pull request: xml2js: Accept standard input - * Test Node 8 - * Update dependencies - * Bundle readToEnd - * Add ability to read from standard input - -2.7.4 / 2017-09-22 - * Merge pull request: Allow wrap attributes with subobject to compatible with other parsers output - -2.7.3 / 2017-08-02 - * fix: handle CDATA with regx - -2.7.2 / 2017-07-30 - * Change travis config for yarn caching - * fix validator: when tag property is same as array property - * Merge pull request: Failing test case in validator for valid SVG - -2.7.1 / 2017-07-26 - * Fix: Handle val 0 - -2.7.0 / 2017-07-25 - * Fix test for arrayMode - * Merge pull request: Add arrayMode option to parse any nodes as arrays - -2.6.0 / 2017-07-14 - * code improvement - * Add unit tests for value conversion for attr - * Merge pull request: option of an attribute value conversion to a number (textAttrConversion) the same way as the textNodeConversion option does. Default value is false. - -2.5.1 / 2017-07-01 - * Fix XML element name pattern - * Fix XML element name pattern while parsing - * Fix validation for xml tag element - -2.5.0 / 2017-06-25 - * Improve Validator performance - * update attr matching regex - * Add perf tests - * Improve atrr regex to handle all cases - -2.4.4 / 2017-06-08 - * Bug fix: when an attribute has single or double quote in value - -2.4.3 / 2017-06-05 - * Bug fix: when multiple CDATA tags are given - * Merge pull request: add option "textNodeConversion" - * add option "textNodeConversion" - -2.4.1 / 2017-04-14 - * fix tests - * Bug fix: preserve initial space of node value - * Handle CDATA - -2.3.1 / 2017-03-15 - * Bug fix: when single self closing tag - * Merge pull request: fix .codeclimate.yml - * Update .codeclimate.yml - Fixed config so it does not error anymore. - * Update .codeclimate.yml - -2.3.0 / 2017-02-26 - * Code improvement - * add bithound config - * Update usage - * Update travis to generate bundle js before running tests - * 1.Browserify, 2. add more tests for validator - * Add validator - * Fix CLI default parameter bug - -2.2.1 / 2017-02-05 - * Bug fix: CLI default option diff --git a/node_modules/@extractus/feed-extractor/node_modules/fast-xml-parser/LICENSE b/node_modules/@extractus/feed-extractor/node_modules/fast-xml-parser/LICENSE deleted file mode 100644 index d7da622a..00000000 --- a/node_modules/@extractus/feed-extractor/node_modules/fast-xml-parser/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2017 Amit Kumar Gupta - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/node_modules/@extractus/feed-extractor/node_modules/fast-xml-parser/README.md b/node_modules/@extractus/feed-extractor/node_modules/fast-xml-parser/README.md deleted file mode 100644 index 8bbe78cd..00000000 --- a/node_modules/@extractus/feed-extractor/node_modules/fast-xml-parser/README.md +++ /dev/null @@ -1,214 +0,0 @@ -# [fast-xml-parser](https://www.npmjs.com/package/fast-xml-parser) -[![Known Vulnerabilities](https://snyk.io/test/github/naturalintelligence/fast-xml-parser/badge.svg)](https://snyk.io/test/github/naturalintelligence/fast-xml-parser) -[![NPM quality][quality-image]][quality-url] -[![Coverage Status](https://coveralls.io/repos/github/NaturalIntelligence/fast-xml-parser/badge.svg?branch=master)](https://coveralls.io/github/NaturalIntelligence/fast-xml-parser?branch=master) -[Try me](https://naturalintelligence.github.io/fast-xml-parser/) -[![NPM total downloads](https://img.shields.io/npm/dt/fast-xml-parser.svg)](https://npm.im/fast-xml-parser) - -[quality-image]: http://npm.packagequality.com/shield/fast-xml-parser.svg?style=flat-square -[quality-url]: http://packagequality.com/#?package=fast-xml-parser - - -Validate XML, Parse XML to JS Object, or Build XML from JS Object without C/C++ based libraries and no callback. - -I need a Career advice. I've posted the query on my profile. Your support would be appreciable. - -Sponsor this project 👉 - - - - - - - Stubmatic donate button - - -### Current Sponsors - -Check the complete list at [ThankYouBackers](https://github.com/NaturalIntelligence/ThankYouBackers) for our sponsors and supporters. - -Through Github - - - -Through OpenCollective - - - - - - - - - - - - - -## Users - - - - - - - - - - - - - - - - -Check the bigger [list](./USERs.md) - -The list of users is collected either from the list published by Github, communicated directly through mails/chat , or from other resources. If you feel that your name in the above list is incorrectly published or you're not the user of this library anymore then you can inform us to remove it. We'll do the necessary changes ASAP. - -If you want to be an anonymous user of this application and don't want to be highlighted anywhere then you can contact me at -- githubissues@proton.me -- https://linkedin.com/in/amitguptagwl/ - -## Main Features - -FXP logo - -* Validate XML data syntactically -* Parse XML to JS Object -* Build XML from JS Object -* Works with node packages, in browser, and in CLI (press try me button above for demo) -* Faster than any other pure JS implementation. -* It can handle big files (tested up to 100mb). -* Controlled parsing using various options -* XML Entities, HTML entities, and DOCTYPE entites are supported. -* unpaired tags (Eg `
` in HTML), stop nodes (Eg ` -: - -``` - -Check lib folder for different browser bundles - -| Bundle Name | Size | -| ------------------ | ---- | -| fxbuilder.min.js | 5.2K | -| fxparser.js | 50K | -| fxparser.min.js | 17K | -| fxp.min.js | 22K | -| fxvalidator.min.js | 5.7K | - -### Documents -**v3** -* [documents](./docs/v3/docs.md) - -**v4** -1. [GettingStarted.md](./docs/v4/1.GettingStarted.md) -2. [XML Parser](./docs/v4/2.XMLparseOptions.md) -3. [XML Builder](./docs/v4/3.XMLBuilder.md) -4. [XML Validator](./docs/v4/4.XMLValidator.md) -5. [Entities](./docs/v4/5.Entities.md) -6. [HTML Document Parsing](./docs/v4/6.HTMLParsing.md) -7. [PI Tag processing](./docs/v4/7.PITags.md) -## Performance - -### XML Parser - -![](./docs/imgs/XMLParser_v4.png) -* Y-axis: requests per second -* X-axis: File size - -**Large files** -![](./docs/imgs/XMLParser_large_v4.png) -* Y-axis: requests per second -* X-axis: File size -### XML Builder - -![](./docs/imgs/XMLBuilder_v4.png) -* Y-axis: requests per second - -negative means error - -[![](static/img/ni_ads_ads.gif)](https://github.com/NaturalIntelligence/ads/) - -## Our other projects and research you must try - -* **[BigBit standard](https://github.com/amitguptagwl/bigbit)** : - * Single text encoding to replace UTF-8, UTF-16, UTF-32 and more with less memory. - * Single Numeric datatype alternative of integer, float, double, long, decimal and more without precision loss. -* **[Cytorus](https://github.com/NaturalIntelligence/cytorus)**: Be specific and flexible while running E2E tests. - * Run tests only for a particular User Story - * Run tests for a route or from a route - * Customizable reporting - * Central dashboard for better monitoring - * Options to integrate E2E tests with Jira, Github etc using Central dashboard `Tian`. -* **[Stubmatic](https://github.com/NaturalIntelligence/Stubmatic)** : Create fake webservices, DynamoDB or S3 servers, Manage fake/mock stub data, Or fake any HTTP(s) call. - - -## Supporters -### Contributors - -This project exists thanks to [all](graphs/contributors) the people who contribute. [[Contribute](docs/CONTRIBUTING.md)]. - - - - -### Backers - -Thank you to all our backers! 🙏 [[Become a backer](https://opencollective.com/fast-xml-parser#backer)] - - - - - -# License -* MIT License - -![Donate $5](static/img/donation_quote.png) diff --git a/node_modules/@extractus/feed-extractor/node_modules/fast-xml-parser/package.json b/node_modules/@extractus/feed-extractor/node_modules/fast-xml-parser/package.json deleted file mode 100644 index 2ed0e05b..00000000 --- a/node_modules/@extractus/feed-extractor/node_modules/fast-xml-parser/package.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "name": "fast-xml-parser", - "version": "4.3.2", - "description": "Validate XML, Parse XML, Build XML without C/C++ based libraries", - "main": "./src/fxp.js", - "scripts": { - "test": "nyc --reporter=lcov --reporter=text jasmine spec/*spec.js", - "unit": "jasmine", - "coverage": "nyc report --reporter html --reporter text -t .nyc_output --report-dir .nyc_output/summary", - "perf": "node ./benchmark/perfTest3.js", - "lint": "eslint src/*.js spec/*.js", - "bundle": "webpack --config webpack-prod.config.js", - "prettier": "prettier --write src/**/*.js", - "publish-please": "publish-please", - "checkReadiness": "publish-please --dry-run" - }, - "bin": { - "fxparser": "./src/cli/cli.js" - }, - "repository": { - "type": "git", - "url": "https://github.com/NaturalIntelligence/fast-xml-parser" - }, - "keywords": [ - "fast", - "xml", - "json", - "parser", - "xml2js", - "x2js", - "xml2json", - "js", - "cli", - "validator", - "validate", - "transformer", - "assert", - "js2xml", - "json2xml", - "html" - ], - "author": "Amit Gupta (https://solothought.com)", - "license": "MIT", - "devDependencies": { - "@babel/core": "^7.13.10", - "@babel/plugin-transform-runtime": "^7.13.10", - "@babel/preset-env": "^7.13.10", - "@babel/register": "^7.13.8", - "babel-loader": "^8.2.2", - "cytorus": "^0.2.9", - "eslint": "^8.3.0", - "he": "^1.2.0", - "jasmine": "^3.6.4", - "nyc": "^15.1.0", - "prettier": "^1.19.1", - "publish-please": "^5.5.2", - "webpack": "^5.64.4", - "webpack-cli": "^4.9.1" - }, - "typings": "src/fxp.d.ts", - "funding": [{ - "type": "github", - "url": "https://github.com/sponsors/NaturalIntelligence" - },{ - "type": "paypal", - "url": "https://paypal.me/naturalintelligence" - }], - "dependencies": { - "strnum": "^1.0.5" - } -} diff --git a/node_modules/@extractus/feed-extractor/node_modules/fast-xml-parser/src/cli/cli.js b/node_modules/@extractus/feed-extractor/node_modules/fast-xml-parser/src/cli/cli.js deleted file mode 100755 index 984534ca..00000000 --- a/node_modules/@extractus/feed-extractor/node_modules/fast-xml-parser/src/cli/cli.js +++ /dev/null @@ -1,93 +0,0 @@ -#!/usr/bin/env node -'use strict'; -/*eslint-disable no-console*/ -const fs = require('fs'); -const path = require('path'); -const {XMLParser, XMLValidator} = require("../fxp"); -const readToEnd = require('./read').readToEnd; - -const version = require('./../../package.json').version; -if (process.argv[2] === '--help' || process.argv[2] === '-h') { - console.log(require("./man")); -} else if (process.argv[2] === '--version') { - console.log(version); -} else { - const options = { - removeNSPrefix: true, - ignoreAttributes: false, - parseTagValue: true, - parseAttributeValue: true, - }; - let fileName = ''; - let outputFileName; - let validate = false; - let validateOnly = false; - for (let i = 2; i < process.argv.length; i++) { - if (process.argv[i] === '-ns') { - options.removeNSPrefix = false; - } else if (process.argv[i] === '-a') { - options.ignoreAttributes = true; - } else if (process.argv[i] === '-c') { - options.parseTagValue = false; - options.parseAttributeValue = false; - } else if (process.argv[i] === '-o') { - outputFileName = process.argv[++i]; - } else if (process.argv[i] === '-v') { - validate = true; - } else if (process.argv[i] === '-V') { - validateOnly = true; - } else { - //filename - fileName = process.argv[i]; - } - } - - const callback = function(xmlData) { - let output = ''; - if (validate) { - const parser = new XMLParser(options); - output = parser.parse(xmlData,validate); - } else if (validateOnly) { - output = XMLValidator.validate(xmlData); - process.exitCode = output === true ? 0 : 1; - } else { - const parser = new XMLParser(options); - output = JSON.stringify(parser.parse(xmlData,validate), null, 4); - } - if (outputFileName) { - writeToFile(outputFileName, output); - } else { - console.log(output); - } - }; - - try { - - if (!fileName) { - readToEnd(process.stdin, function(err, data) { - if (err) { - throw err; - } - callback(data.toString()); - }); - } else { - fs.readFile(fileName, function(err, data) { - if (err) { - throw err; - } - callback(data.toString()); - }); - } - } catch (e) { - console.log('Seems an invalid file or stream.' + e); - } -} - -function writeToFile(fileName, data) { - fs.writeFile(fileName, data, function(err) { - if (err) { - throw err; - } - console.log('JSON output has been written to ' + fileName); - }); -} diff --git a/node_modules/@extractus/feed-extractor/node_modules/fast-xml-parser/src/cli/man.js b/node_modules/@extractus/feed-extractor/node_modules/fast-xml-parser/src/cli/man.js deleted file mode 100644 index 89947cc7..00000000 --- a/node_modules/@extractus/feed-extractor/node_modules/fast-xml-parser/src/cli/man.js +++ /dev/null @@ -1,12 +0,0 @@ -module.exports = `Fast XML Parser 4.0.0 ----------------- -$ fxparser [-ns|-a|-c|-v|-V] [-o outputfile.json] -$ cat xmlfile.xml | fxparser [-ns|-a|-c|-v|-V] [-o outputfile.json] - -Options ----------------- --ns: remove namespace from tag and atrribute name. --a: don't parse attributes. --c: parse values to premitive type. --v: validate before parsing. --V: validate only.` \ No newline at end of file diff --git a/node_modules/@extractus/feed-extractor/node_modules/fast-xml-parser/src/cli/read.js b/node_modules/@extractus/feed-extractor/node_modules/fast-xml-parser/src/cli/read.js deleted file mode 100644 index 642da527..00000000 --- a/node_modules/@extractus/feed-extractor/node_modules/fast-xml-parser/src/cli/read.js +++ /dev/null @@ -1,92 +0,0 @@ -'use strict'; - -// Copyright 2013 Timothy J Fontaine -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the 'Software'), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE - -/* - -Read any stream all the way to the end and trigger a single cb - -const http = require('http'); - -const rte = require('readtoend'); - -http.get('http://nodejs.org', function(response) { - rte.readToEnd(response, function(err, body) { - console.log(body); - }); -}); - -*/ - -let stream = require('stream'); -const util = require('util'); - -if (!stream.Transform) { - stream = require('readable-stream'); -} - -function ReadToEnd(opts) { - if (!(this instanceof ReadToEnd)) { - return new ReadToEnd(opts); - } - - stream.Transform.call(this, opts); - - this._rte_encoding = opts.encoding || 'utf8'; - - this._buff = ''; -} - -module.exports = ReadToEnd; -util.inherits(ReadToEnd, stream.Transform); - -ReadToEnd.prototype._transform = function(chunk, encoding, done) { - this._buff += chunk.toString(this._rte_encoding); - this.push(chunk); - done(); -}; - -ReadToEnd.prototype._flush = function(done) { - this.emit('complete', undefined, this._buff); - done(); -}; - -ReadToEnd.readToEnd = function(stream, options, cb) { - if (!cb) { - cb = options; - options = {}; - } - - const dest = new ReadToEnd(options); - - stream.pipe(dest); - - stream.on('error', function(err) { - stream.unpipe(dest); - cb(err); - }); - - dest.on('complete', cb); - - dest.resume(); - - return dest; -}; diff --git a/node_modules/@extractus/feed-extractor/node_modules/fast-xml-parser/src/fxp.d.ts b/node_modules/@extractus/feed-extractor/node_modules/fast-xml-parser/src/fxp.d.ts deleted file mode 100644 index d622f27e..00000000 --- a/node_modules/@extractus/feed-extractor/node_modules/fast-xml-parser/src/fxp.d.ts +++ /dev/null @@ -1,108 +0,0 @@ -type X2jOptions = { - preserveOrder: boolean; - attributeNamePrefix: string; - attributesGroupName: false | string; - textNodeName: string; - ignoreAttributes: boolean; - removeNSPrefix: boolean; - allowBooleanAttributes: boolean; - parseTagValue: boolean; - parseAttributeValue: boolean; - trimValues: boolean; - cdataPropName: false | string; - commentPropName: false | string; - /** -Control how tag value should be parsed. Called only if tag value is not empty - -@returns {undefined|null} `undefined` or `null` to set original value. -@returns {unknown} -1. Different value or value with different data type to set new value.
-2. Same value to set parsed value if `parseTagValue: true`. - */ - tagValueProcessor: (tagName: string, tagValue: string, jPath: string, hasAttributes: boolean, isLeafNode: boolean) => unknown; - attributeValueProcessor: (attrName: string, attrValue: string, jPath: string) => unknown; - numberParseOptions: strnumOptions; - stopNodes: string[]; - unpairedTags: string[]; - alwaysCreateTextNode: boolean; - isArray: (tagName: string, jPath: string, isLeafNode: boolean, isAttribute: boolean) => boolean; - processEntities: boolean; - htmlEntities: boolean; - ignoreDeclaration: boolean; - ignorePiTags: boolean; - transformTagName: ((tagName: string) => string) | false; - transformAttributeName: ((attributeName: string) => string) | false; - /** -Change the tag name when a different name is returned. Skip the tag from parsed result when false is returned. -Modify `attrs` object to control attributes for the given tag. - -@returns {string} new tag name. -@returns false to skip the tag - */ - updateTag: (tagName: string, jPath: string, attrs: {[k: string]: string}) => string | boolean; -}; -type strnumOptions = { - hex: boolean; - leadingZeros: boolean, - skipLike?: RegExp, - eNotation?: boolean -} -type X2jOptionsOptional = Partial; -type validationOptions = { - allowBooleanAttributes: boolean; - unpairedTags: string[]; -}; -type validationOptionsOptional = Partial; - -type XmlBuilderOptions = { - attributeNamePrefix: string; - attributesGroupName: false | string; - textNodeName: string; - ignoreAttributes: boolean; - cdataPropName: false | string; - commentPropName: false | string; - format: boolean; - indentBy: string; - arrayNodeName: string; - suppressEmptyNode: boolean; - suppressUnpairedNode: boolean; - suppressBooleanAttributes: boolean; - preserveOrder: boolean; - unpairedTags: string[]; - stopNodes: string[]; - tagValueProcessor: (name: string, value: unknown) => string; - attributeValueProcessor: (name: string, value: unknown) => string; - processEntities: boolean; - oneListGroup: boolean; -}; -type XmlBuilderOptionsOptional = Partial; - -type ESchema = string | object | Array; - -type ValidationError = { - err: { - code: string; - msg: string, - line: number, - col: number - }; -}; - -export class XMLParser { - constructor(options?: X2jOptionsOptional); - parse(xmlData: string | Buffer ,validationOptions?: validationOptionsOptional | boolean): any; - /** - * Add Entity which is not by default supported by this library - * @param entityIndentifier {string} Eg: 'ent' for &ent; - * @param entityValue {string} Eg: '\r' - */ - addEntity(entityIndentifier: string, entityValue: string): void; -} - -export class XMLValidator{ - static validate( xmlData: string, options?: validationOptionsOptional): true | ValidationError; -} -export class XMLBuilder { - constructor(options?: XmlBuilderOptionsOptional); - build(jObj: any): any; -} diff --git a/node_modules/@extractus/feed-extractor/node_modules/fast-xml-parser/src/fxp.js b/node_modules/@extractus/feed-extractor/node_modules/fast-xml-parser/src/fxp.js deleted file mode 100644 index 9cfa0ac0..00000000 --- a/node_modules/@extractus/feed-extractor/node_modules/fast-xml-parser/src/fxp.js +++ /dev/null @@ -1,11 +0,0 @@ -'use strict'; - -const validator = require('./validator'); -const XMLParser = require('./xmlparser/XMLParser'); -const XMLBuilder = require('./xmlbuilder/json2xml'); - -module.exports = { - XMLParser: XMLParser, - XMLValidator: validator, - XMLBuilder: XMLBuilder -} \ No newline at end of file diff --git a/node_modules/@extractus/feed-extractor/node_modules/fast-xml-parser/src/util.js b/node_modules/@extractus/feed-extractor/node_modules/fast-xml-parser/src/util.js deleted file mode 100644 index df0a60d5..00000000 --- a/node_modules/@extractus/feed-extractor/node_modules/fast-xml-parser/src/util.js +++ /dev/null @@ -1,72 +0,0 @@ -'use strict'; - -const nameStartChar = ':A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD'; -const nameChar = nameStartChar + '\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040'; -const nameRegexp = '[' + nameStartChar + '][' + nameChar + ']*' -const regexName = new RegExp('^' + nameRegexp + '$'); - -const getAllMatches = function(string, regex) { - const matches = []; - let match = regex.exec(string); - while (match) { - const allmatches = []; - allmatches.startIndex = regex.lastIndex - match[0].length; - const len = match.length; - for (let index = 0; index < len; index++) { - allmatches.push(match[index]); - } - matches.push(allmatches); - match = regex.exec(string); - } - return matches; -}; - -const isName = function(string) { - const match = regexName.exec(string); - return !(match === null || typeof match === 'undefined'); -}; - -exports.isExist = function(v) { - return typeof v !== 'undefined'; -}; - -exports.isEmptyObject = function(obj) { - return Object.keys(obj).length === 0; -}; - -/** - * Copy all the properties of a into b. - * @param {*} target - * @param {*} a - */ -exports.merge = function(target, a, arrayMode) { - if (a) { - const keys = Object.keys(a); // will return an array of own properties - const len = keys.length; //don't make it inline - for (let i = 0; i < len; i++) { - if (arrayMode === 'strict') { - target[keys[i]] = [ a[keys[i]] ]; - } else { - target[keys[i]] = a[keys[i]]; - } - } - } -}; -/* exports.merge =function (b,a){ - return Object.assign(b,a); -} */ - -exports.getValue = function(v) { - if (exports.isExist(v)) { - return v; - } else { - return ''; - } -}; - -// const fakeCall = function(a) {return a;}; -// const fakeCallNoReturn = function() {}; - -exports.isName = isName; -exports.getAllMatches = getAllMatches; -exports.nameRegexp = nameRegexp; diff --git a/node_modules/@extractus/feed-extractor/node_modules/fast-xml-parser/src/validator.js b/node_modules/@extractus/feed-extractor/node_modules/fast-xml-parser/src/validator.js deleted file mode 100644 index 11b051b1..00000000 --- a/node_modules/@extractus/feed-extractor/node_modules/fast-xml-parser/src/validator.js +++ /dev/null @@ -1,423 +0,0 @@ -'use strict'; - -const util = require('./util'); - -const defaultOptions = { - allowBooleanAttributes: false, //A tag can have attributes without any value - unpairedTags: [] -}; - -//const tagsPattern = new RegExp("<\\/?([\\w:\\-_\.]+)\\s*\/?>","g"); -exports.validate = function (xmlData, options) { - options = Object.assign({}, defaultOptions, options); - - //xmlData = xmlData.replace(/(\r\n|\n|\r)/gm,"");//make it single line - //xmlData = xmlData.replace(/(^\s*<\?xml.*?\?>)/g,"");//Remove XML starting tag - //xmlData = xmlData.replace(/()/g,"");//Remove DOCTYPE - const tags = []; - let tagFound = false; - - //indicates that the root tag has been closed (aka. depth 0 has been reached) - let reachedRoot = false; - - if (xmlData[0] === '\ufeff') { - // check for byte order mark (BOM) - xmlData = xmlData.substr(1); - } - - for (let i = 0; i < xmlData.length; i++) { - - if (xmlData[i] === '<' && xmlData[i+1] === '?') { - i+=2; - i = readPI(xmlData,i); - if (i.err) return i; - }else if (xmlData[i] === '<') { - //starting of tag - //read until you reach to '>' avoiding any '>' in attribute value - let tagStartPos = i; - i++; - - if (xmlData[i] === '!') { - i = readCommentAndCDATA(xmlData, i); - continue; - } else { - let closingTag = false; - if (xmlData[i] === '/') { - //closing tag - closingTag = true; - i++; - } - //read tagname - let tagName = ''; - for (; i < xmlData.length && - xmlData[i] !== '>' && - xmlData[i] !== ' ' && - xmlData[i] !== '\t' && - xmlData[i] !== '\n' && - xmlData[i] !== '\r'; i++ - ) { - tagName += xmlData[i]; - } - tagName = tagName.trim(); - //console.log(tagName); - - if (tagName[tagName.length - 1] === '/') { - //self closing tag without attributes - tagName = tagName.substring(0, tagName.length - 1); - //continue; - i--; - } - if (!validateTagName(tagName)) { - let msg; - if (tagName.trim().length === 0) { - msg = "Invalid space after '<'."; - } else { - msg = "Tag '"+tagName+"' is an invalid name."; - } - return getErrorObject('InvalidTag', msg, getLineNumberForPosition(xmlData, i)); - } - - const result = readAttributeStr(xmlData, i); - if (result === false) { - return getErrorObject('InvalidAttr', "Attributes for '"+tagName+"' have open quote.", getLineNumberForPosition(xmlData, i)); - } - let attrStr = result.value; - i = result.index; - - if (attrStr[attrStr.length - 1] === '/') { - //self closing tag - const attrStrStart = i - attrStr.length; - attrStr = attrStr.substring(0, attrStr.length - 1); - const isValid = validateAttributeString(attrStr, options); - if (isValid === true) { - tagFound = true; - //continue; //text may presents after self closing tag - } else { - //the result from the nested function returns the position of the error within the attribute - //in order to get the 'true' error line, we need to calculate the position where the attribute begins (i - attrStr.length) and then add the position within the attribute - //this gives us the absolute index in the entire xml, which we can use to find the line at last - return getErrorObject(isValid.err.code, isValid.err.msg, getLineNumberForPosition(xmlData, attrStrStart + isValid.err.line)); - } - } else if (closingTag) { - if (!result.tagClosed) { - return getErrorObject('InvalidTag', "Closing tag '"+tagName+"' doesn't have proper closing.", getLineNumberForPosition(xmlData, i)); - } else if (attrStr.trim().length > 0) { - return getErrorObject('InvalidTag', "Closing tag '"+tagName+"' can't have attributes or invalid starting.", getLineNumberForPosition(xmlData, tagStartPos)); - } else { - const otg = tags.pop(); - if (tagName !== otg.tagName) { - let openPos = getLineNumberForPosition(xmlData, otg.tagStartPos); - return getErrorObject('InvalidTag', - "Expected closing tag '"+otg.tagName+"' (opened in line "+openPos.line+", col "+openPos.col+") instead of closing tag '"+tagName+"'.", - getLineNumberForPosition(xmlData, tagStartPos)); - } - - //when there are no more tags, we reached the root level. - if (tags.length == 0) { - reachedRoot = true; - } - } - } else { - const isValid = validateAttributeString(attrStr, options); - if (isValid !== true) { - //the result from the nested function returns the position of the error within the attribute - //in order to get the 'true' error line, we need to calculate the position where the attribute begins (i - attrStr.length) and then add the position within the attribute - //this gives us the absolute index in the entire xml, which we can use to find the line at last - return getErrorObject(isValid.err.code, isValid.err.msg, getLineNumberForPosition(xmlData, i - attrStr.length + isValid.err.line)); - } - - //if the root level has been reached before ... - if (reachedRoot === true) { - return getErrorObject('InvalidXml', 'Multiple possible root nodes found.', getLineNumberForPosition(xmlData, i)); - } else if(options.unpairedTags.indexOf(tagName) !== -1){ - //don't push into stack - } else { - tags.push({tagName, tagStartPos}); - } - tagFound = true; - } - - //skip tag text value - //It may include comments and CDATA value - for (i++; i < xmlData.length; i++) { - if (xmlData[i] === '<') { - if (xmlData[i + 1] === '!') { - //comment or CADATA - i++; - i = readCommentAndCDATA(xmlData, i); - continue; - } else if (xmlData[i+1] === '?') { - i = readPI(xmlData, ++i); - if (i.err) return i; - } else{ - break; - } - } else if (xmlData[i] === '&') { - const afterAmp = validateAmpersand(xmlData, i); - if (afterAmp == -1) - return getErrorObject('InvalidChar', "char '&' is not expected.", getLineNumberForPosition(xmlData, i)); - i = afterAmp; - }else{ - if (reachedRoot === true && !isWhiteSpace(xmlData[i])) { - return getErrorObject('InvalidXml', "Extra text at the end", getLineNumberForPosition(xmlData, i)); - } - } - } //end of reading tag text value - if (xmlData[i] === '<') { - i--; - } - } - } else { - if ( isWhiteSpace(xmlData[i])) { - continue; - } - return getErrorObject('InvalidChar', "char '"+xmlData[i]+"' is not expected.", getLineNumberForPosition(xmlData, i)); - } - } - - if (!tagFound) { - return getErrorObject('InvalidXml', 'Start tag expected.', 1); - }else if (tags.length == 1) { - return getErrorObject('InvalidTag', "Unclosed tag '"+tags[0].tagName+"'.", getLineNumberForPosition(xmlData, tags[0].tagStartPos)); - }else if (tags.length > 0) { - return getErrorObject('InvalidXml', "Invalid '"+ - JSON.stringify(tags.map(t => t.tagName), null, 4).replace(/\r?\n/g, '')+ - "' found.", {line: 1, col: 1}); - } - - return true; -}; - -function isWhiteSpace(char){ - return char === ' ' || char === '\t' || char === '\n' || char === '\r'; -} -/** - * Read Processing insstructions and skip - * @param {*} xmlData - * @param {*} i - */ -function readPI(xmlData, i) { - const start = i; - for (; i < xmlData.length; i++) { - if (xmlData[i] == '?' || xmlData[i] == ' ') { - //tagname - const tagname = xmlData.substr(start, i - start); - if (i > 5 && tagname === 'xml') { - return getErrorObject('InvalidXml', 'XML declaration allowed only at the start of the document.', getLineNumberForPosition(xmlData, i)); - } else if (xmlData[i] == '?' && xmlData[i + 1] == '>') { - //check if valid attribut string - i++; - break; - } else { - continue; - } - } - } - return i; -} - -function readCommentAndCDATA(xmlData, i) { - if (xmlData.length > i + 5 && xmlData[i + 1] === '-' && xmlData[i + 2] === '-') { - //comment - for (i += 3; i < xmlData.length; i++) { - if (xmlData[i] === '-' && xmlData[i + 1] === '-' && xmlData[i + 2] === '>') { - i += 2; - break; - } - } - } else if ( - xmlData.length > i + 8 && - xmlData[i + 1] === 'D' && - xmlData[i + 2] === 'O' && - xmlData[i + 3] === 'C' && - xmlData[i + 4] === 'T' && - xmlData[i + 5] === 'Y' && - xmlData[i + 6] === 'P' && - xmlData[i + 7] === 'E' - ) { - let angleBracketsCount = 1; - for (i += 8; i < xmlData.length; i++) { - if (xmlData[i] === '<') { - angleBracketsCount++; - } else if (xmlData[i] === '>') { - angleBracketsCount--; - if (angleBracketsCount === 0) { - break; - } - } - } - } else if ( - xmlData.length > i + 9 && - xmlData[i + 1] === '[' && - xmlData[i + 2] === 'C' && - xmlData[i + 3] === 'D' && - xmlData[i + 4] === 'A' && - xmlData[i + 5] === 'T' && - xmlData[i + 6] === 'A' && - xmlData[i + 7] === '[' - ) { - for (i += 8; i < xmlData.length; i++) { - if (xmlData[i] === ']' && xmlData[i + 1] === ']' && xmlData[i + 2] === '>') { - i += 2; - break; - } - } - } - - return i; -} - -const doubleQuote = '"'; -const singleQuote = "'"; - -/** - * Keep reading xmlData until '<' is found outside the attribute value. - * @param {string} xmlData - * @param {number} i - */ -function readAttributeStr(xmlData, i) { - let attrStr = ''; - let startChar = ''; - let tagClosed = false; - for (; i < xmlData.length; i++) { - if (xmlData[i] === doubleQuote || xmlData[i] === singleQuote) { - if (startChar === '') { - startChar = xmlData[i]; - } else if (startChar !== xmlData[i]) { - //if vaue is enclosed with double quote then single quotes are allowed inside the value and vice versa - } else { - startChar = ''; - } - } else if (xmlData[i] === '>') { - if (startChar === '') { - tagClosed = true; - break; - } - } - attrStr += xmlData[i]; - } - if (startChar !== '') { - return false; - } - - return { - value: attrStr, - index: i, - tagClosed: tagClosed - }; -} - -/** - * Select all the attributes whether valid or invalid. - */ -const validAttrStrRegxp = new RegExp('(\\s*)([^\\s=]+)(\\s*=)?(\\s*([\'"])(([\\s\\S])*?)\\5)?', 'g'); - -//attr, ="sd", a="amit's", a="sd"b="saf", ab cd="" - -function validateAttributeString(attrStr, options) { - //console.log("start:"+attrStr+":end"); - - //if(attrStr.trim().length === 0) return true; //empty string - - const matches = util.getAllMatches(attrStr, validAttrStrRegxp); - const attrNames = {}; - - for (let i = 0; i < matches.length; i++) { - if (matches[i][1].length === 0) { - //nospace before attribute name: a="sd"b="saf" - return getErrorObject('InvalidAttr', "Attribute '"+matches[i][2]+"' has no space in starting.", getPositionFromMatch(matches[i])) - } else if (matches[i][3] !== undefined && matches[i][4] === undefined) { - return getErrorObject('InvalidAttr', "Attribute '"+matches[i][2]+"' is without value.", getPositionFromMatch(matches[i])); - } else if (matches[i][3] === undefined && !options.allowBooleanAttributes) { - //independent attribute: ab - return getErrorObject('InvalidAttr', "boolean attribute '"+matches[i][2]+"' is not allowed.", getPositionFromMatch(matches[i])); - } - /* else if(matches[i][6] === undefined){//attribute without value: ab= - return { err: { code:"InvalidAttr",msg:"attribute " + matches[i][2] + " has no value assigned."}}; - } */ - const attrName = matches[i][2]; - if (!validateAttrName(attrName)) { - return getErrorObject('InvalidAttr', "Attribute '"+attrName+"' is an invalid name.", getPositionFromMatch(matches[i])); - } - if (!attrNames.hasOwnProperty(attrName)) { - //check for duplicate attribute. - attrNames[attrName] = 1; - } else { - return getErrorObject('InvalidAttr', "Attribute '"+attrName+"' is repeated.", getPositionFromMatch(matches[i])); - } - } - - return true; -} - -function validateNumberAmpersand(xmlData, i) { - let re = /\d/; - if (xmlData[i] === 'x') { - i++; - re = /[\da-fA-F]/; - } - for (; i < xmlData.length; i++) { - if (xmlData[i] === ';') - return i; - if (!xmlData[i].match(re)) - break; - } - return -1; -} - -function validateAmpersand(xmlData, i) { - // https://www.w3.org/TR/xml/#dt-charref - i++; - if (xmlData[i] === ';') - return -1; - if (xmlData[i] === '#') { - i++; - return validateNumberAmpersand(xmlData, i); - } - let count = 0; - for (; i < xmlData.length; i++, count++) { - if (xmlData[i].match(/\w/) && count < 20) - continue; - if (xmlData[i] === ';') - break; - return -1; - } - return i; -} - -function getErrorObject(code, message, lineNumber) { - return { - err: { - code: code, - msg: message, - line: lineNumber.line || lineNumber, - col: lineNumber.col, - }, - }; -} - -function validateAttrName(attrName) { - return util.isName(attrName); -} - -// const startsWithXML = /^xml/i; - -function validateTagName(tagname) { - return util.isName(tagname) /* && !tagname.match(startsWithXML) */; -} - -//this function returns the line number for the character at the given index -function getLineNumberForPosition(xmlData, index) { - const lines = xmlData.substring(0, index).split(/\r?\n/); - return { - line: lines.length, - - // column number is last line's length + 1, because column numbering starts at 1: - col: lines[lines.length - 1].length + 1 - }; -} - -//this function returns the position of the first character of match within attrStr -function getPositionFromMatch(match) { - return match.startIndex + match[1].length; -} diff --git a/node_modules/@extractus/feed-extractor/node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js b/node_modules/@extractus/feed-extractor/node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js deleted file mode 100644 index 5707ee0f..00000000 --- a/node_modules/@extractus/feed-extractor/node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js +++ /dev/null @@ -1,270 +0,0 @@ -'use strict'; -//parse Empty Node as self closing node -const buildFromOrderedJs = require('./orderedJs2Xml'); - -const defaultOptions = { - attributeNamePrefix: '@_', - attributesGroupName: false, - textNodeName: '#text', - ignoreAttributes: true, - cdataPropName: false, - format: false, - indentBy: ' ', - suppressEmptyNode: false, - suppressUnpairedNode: true, - suppressBooleanAttributes: true, - tagValueProcessor: function(key, a) { - return a; - }, - attributeValueProcessor: function(attrName, a) { - return a; - }, - preserveOrder: false, - commentPropName: false, - unpairedTags: [], - entities: [ - { regex: new RegExp("&", "g"), val: "&" },//it must be on top - { regex: new RegExp(">", "g"), val: ">" }, - { regex: new RegExp("<", "g"), val: "<" }, - { regex: new RegExp("\'", "g"), val: "'" }, - { regex: new RegExp("\"", "g"), val: """ } - ], - processEntities: true, - stopNodes: [], - // transformTagName: false, - // transformAttributeName: false, - oneListGroup: false -}; - -function Builder(options) { - this.options = Object.assign({}, defaultOptions, options); - if (this.options.ignoreAttributes || this.options.attributesGroupName) { - this.isAttribute = function(/*a*/) { - return false; - }; - } else { - this.attrPrefixLen = this.options.attributeNamePrefix.length; - this.isAttribute = isAttribute; - } - - this.processTextOrObjNode = processTextOrObjNode - - if (this.options.format) { - this.indentate = indentate; - this.tagEndChar = '>\n'; - this.newLine = '\n'; - } else { - this.indentate = function() { - return ''; - }; - this.tagEndChar = '>'; - this.newLine = ''; - } -} - -Builder.prototype.build = function(jObj) { - if(this.options.preserveOrder){ - return buildFromOrderedJs(jObj, this.options); - }else { - if(Array.isArray(jObj) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1){ - jObj = { - [this.options.arrayNodeName] : jObj - } - } - return this.j2x(jObj, 0).val; - } -}; - -Builder.prototype.j2x = function(jObj, level) { - let attrStr = ''; - let val = ''; - for (let key in jObj) { - if(!Object.prototype.hasOwnProperty.call(jObj, key)) continue; - if (typeof jObj[key] === 'undefined') { - // supress undefined node only if it is not an attribute - if (this.isAttribute(key)) { - val += ''; - } - } else if (jObj[key] === null) { - // null attribute should be ignored by the attribute list, but should not cause the tag closing - if (this.isAttribute(key)) { - val += ''; - } else if (key[0] === '?') { - val += this.indentate(level) + '<' + key + '?' + this.tagEndChar; - } else { - val += this.indentate(level) + '<' + key + '/' + this.tagEndChar; - } - // val += this.indentate(level) + '<' + key + '/' + this.tagEndChar; - } else if (jObj[key] instanceof Date) { - val += this.buildTextValNode(jObj[key], key, '', level); - } else if (typeof jObj[key] !== 'object') { - //premitive type - const attr = this.isAttribute(key); - if (attr) { - attrStr += this.buildAttrPairStr(attr, '' + jObj[key]); - }else { - //tag value - if (key === this.options.textNodeName) { - let newval = this.options.tagValueProcessor(key, '' + jObj[key]); - val += this.replaceEntitiesValue(newval); - } else { - val += this.buildTextValNode(jObj[key], key, '', level); - } - } - } else if (Array.isArray(jObj[key])) { - //repeated nodes - const arrLen = jObj[key].length; - let listTagVal = ""; - for (let j = 0; j < arrLen; j++) { - const item = jObj[key][j]; - if (typeof item === 'undefined') { - // supress undefined node - } else if (item === null) { - if(key[0] === "?") val += this.indentate(level) + '<' + key + '?' + this.tagEndChar; - else val += this.indentate(level) + '<' + key + '/' + this.tagEndChar; - // val += this.indentate(level) + '<' + key + '/' + this.tagEndChar; - } else if (typeof item === 'object') { - if(this.options.oneListGroup ){ - listTagVal += this.j2x(item, level + 1).val; - }else{ - listTagVal += this.processTextOrObjNode(item, key, level) - } - } else { - listTagVal += this.buildTextValNode(item, key, '', level); - } - } - if(this.options.oneListGroup){ - listTagVal = this.buildObjectNode(listTagVal, key, '', level); - } - val += listTagVal; - } else { - //nested node - if (this.options.attributesGroupName && key === this.options.attributesGroupName) { - const Ks = Object.keys(jObj[key]); - const L = Ks.length; - for (let j = 0; j < L; j++) { - attrStr += this.buildAttrPairStr(Ks[j], '' + jObj[key][Ks[j]]); - } - } else { - val += this.processTextOrObjNode(jObj[key], key, level) - } - } - } - return {attrStr: attrStr, val: val}; -}; - -Builder.prototype.buildAttrPairStr = function(attrName, val){ - val = this.options.attributeValueProcessor(attrName, '' + val); - val = this.replaceEntitiesValue(val); - if (this.options.suppressBooleanAttributes && val === "true") { - return ' ' + attrName; - } else return ' ' + attrName + '="' + val + '"'; -} - -function processTextOrObjNode (object, key, level) { - const result = this.j2x(object, level + 1); - if (object[this.options.textNodeName] !== undefined && Object.keys(object).length === 1) { - return this.buildTextValNode(object[this.options.textNodeName], key, result.attrStr, level); - } else { - return this.buildObjectNode(result.val, key, result.attrStr, level); - } -} - -Builder.prototype.buildObjectNode = function(val, key, attrStr, level) { - if(val === ""){ - if(key[0] === "?") return this.indentate(level) + '<' + key + attrStr+ '?' + this.tagEndChar; - else { - return this.indentate(level) + '<' + key + attrStr + this.closeTag(key) + this.tagEndChar; - } - }else{ - - let tagEndExp = '' + val + tagEndExp ); - } else if (this.options.commentPropName !== false && key === this.options.commentPropName && piClosingChar.length === 0) { - return this.indentate(level) + `` + this.newLine; - }else { - return ( - this.indentate(level) + '<' + key + attrStr + piClosingChar + this.tagEndChar + - val + - this.indentate(level) + tagEndExp ); - } - } -} - -Builder.prototype.closeTag = function(key){ - let closeTag = ""; - if(this.options.unpairedTags.indexOf(key) !== -1){ //unpaired - if(!this.options.suppressUnpairedNode) closeTag = "/" - }else if(this.options.suppressEmptyNode){ //empty - closeTag = "/"; - }else{ - closeTag = `>` + this.newLine; - }else if (this.options.commentPropName !== false && key === this.options.commentPropName) { - return this.indentate(level) + `` + this.newLine; - }else if(key[0] === "?") {//PI tag - return this.indentate(level) + '<' + key + attrStr+ '?' + this.tagEndChar; - }else{ - let textValue = this.options.tagValueProcessor(key, val); - textValue = this.replaceEntitiesValue(textValue); - - if( textValue === ''){ - return this.indentate(level) + '<' + key + attrStr + this.closeTag(key) + this.tagEndChar; - }else{ - return this.indentate(level) + '<' + key + attrStr + '>' + - textValue + - ' 0 && this.options.processEntities){ - for (let i=0; i 0) { - indentation = EOL; - } - return arrToStr(jArray, options, "", indentation); -} - -function arrToStr(arr, options, jPath, indentation) { - let xmlStr = ""; - let isPreviousElementTag = false; - - for (let i = 0; i < arr.length; i++) { - const tagObj = arr[i]; - const tagName = propName(tagObj); - if(tagName === undefined) continue; - - let newJPath = ""; - if (jPath.length === 0) newJPath = tagName - else newJPath = `${jPath}.${tagName}`; - - if (tagName === options.textNodeName) { - let tagText = tagObj[tagName]; - if (!isStopNode(newJPath, options)) { - tagText = options.tagValueProcessor(tagName, tagText); - tagText = replaceEntitiesValue(tagText, options); - } - if (isPreviousElementTag) { - xmlStr += indentation; - } - xmlStr += tagText; - isPreviousElementTag = false; - continue; - } else if (tagName === options.cdataPropName) { - if (isPreviousElementTag) { - xmlStr += indentation; - } - xmlStr += ``; - isPreviousElementTag = false; - continue; - } else if (tagName === options.commentPropName) { - xmlStr += indentation + ``; - isPreviousElementTag = true; - continue; - } else if (tagName[0] === "?") { - const attStr = attr_to_str(tagObj[":@"], options); - const tempInd = tagName === "?xml" ? "" : indentation; - let piTextNodeName = tagObj[tagName][0][options.textNodeName]; - piTextNodeName = piTextNodeName.length !== 0 ? " " + piTextNodeName : ""; //remove extra spacing - xmlStr += tempInd + `<${tagName}${piTextNodeName}${attStr}?>`; - isPreviousElementTag = true; - continue; - } - let newIdentation = indentation; - if (newIdentation !== "") { - newIdentation += options.indentBy; - } - const attStr = attr_to_str(tagObj[":@"], options); - const tagStart = indentation + `<${tagName}${attStr}`; - const tagValue = arrToStr(tagObj[tagName], options, newJPath, newIdentation); - if (options.unpairedTags.indexOf(tagName) !== -1) { - if (options.suppressUnpairedNode) xmlStr += tagStart + ">"; - else xmlStr += tagStart + "/>"; - } else if ((!tagValue || tagValue.length === 0) && options.suppressEmptyNode) { - xmlStr += tagStart + "/>"; - } else if (tagValue && tagValue.endsWith(">")) { - xmlStr += tagStart + `>${tagValue}${indentation}`; - } else { - xmlStr += tagStart + ">"; - if (tagValue && indentation !== "" && (tagValue.includes("/>") || tagValue.includes("`; - } - isPreviousElementTag = true; - } - - return xmlStr; -} - -function propName(obj) { - const keys = Object.keys(obj); - for (let i = 0; i < keys.length; i++) { - const key = keys[i]; - if(!obj.hasOwnProperty(key)) continue; - if (key !== ":@") return key; - } -} - -function attr_to_str(attrMap, options) { - let attrStr = ""; - if (attrMap && !options.ignoreAttributes) { - for (let attr in attrMap) { - if(!attrMap.hasOwnProperty(attr)) continue; - let attrVal = options.attributeValueProcessor(attr, attrMap[attr]); - attrVal = replaceEntitiesValue(attrVal, options); - if (attrVal === true && options.suppressBooleanAttributes) { - attrStr += ` ${attr.substr(options.attributeNamePrefix.length)}`; - } else { - attrStr += ` ${attr.substr(options.attributeNamePrefix.length)}="${attrVal}"`; - } - } - } - return attrStr; -} - -function isStopNode(jPath, options) { - jPath = jPath.substr(0, jPath.length - options.textNodeName.length - 1); - let tagName = jPath.substr(jPath.lastIndexOf(".") + 1); - for (let index in options.stopNodes) { - if (options.stopNodes[index] === jPath || options.stopNodes[index] === "*." + tagName) return true; - } - return false; -} - -function replaceEntitiesValue(textValue, options) { - if (textValue && textValue.length > 0 && options.processEntities) { - for (let i = 0; i < options.entities.length; i++) { - const entity = options.entities[i]; - textValue = textValue.replace(entity.regex, entity.val); - } - } - return textValue; -} -module.exports = toXml; diff --git a/node_modules/@extractus/feed-extractor/node_modules/fast-xml-parser/src/xmlbuilder/prettifyJs2Xml.js b/node_modules/@extractus/feed-extractor/node_modules/fast-xml-parser/src/xmlbuilder/prettifyJs2Xml.js deleted file mode 100644 index e69de29b..00000000 diff --git a/node_modules/@extractus/feed-extractor/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js b/node_modules/@extractus/feed-extractor/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js deleted file mode 100644 index bcf9dee4..00000000 --- a/node_modules/@extractus/feed-extractor/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js +++ /dev/null @@ -1,152 +0,0 @@ -const util = require('../util'); - -//TODO: handle comments -function readDocType(xmlData, i){ - - const entities = {}; - if( xmlData[i + 3] === 'O' && - xmlData[i + 4] === 'C' && - xmlData[i + 5] === 'T' && - xmlData[i + 6] === 'Y' && - xmlData[i + 7] === 'P' && - xmlData[i + 8] === 'E') - { - i = i+9; - let angleBracketsCount = 1; - let hasBody = false, comment = false; - let exp = ""; - for(;i') { //Read tag content - if(comment){ - if( xmlData[i - 1] === "-" && xmlData[i - 2] === "-"){ - comment = false; - angleBracketsCount--; - } - }else{ - angleBracketsCount--; - } - if (angleBracketsCount === 0) { - break; - } - }else if( xmlData[i] === '['){ - hasBody = true; - }else{ - exp += xmlData[i]; - } - } - if(angleBracketsCount !== 0){ - throw new Error(`Unclosed DOCTYPE`); - } - }else{ - throw new Error(`Invalid Tag instead of DOCTYPE`); - } - return {entities, i}; -} - -function readEntityExp(xmlData,i){ - //External entities are not supported - // - - //Parameter entities are not supported - // - - //Internal entities are supported - // - - //read EntityName - let entityName = ""; - for (; i < xmlData.length && (xmlData[i] !== "'" && xmlData[i] !== '"' ); i++) { - // if(xmlData[i] === " ") continue; - // else - entityName += xmlData[i]; - } - entityName = entityName.trim(); - if(entityName.indexOf(" ") !== -1) throw new Error("External entites are not supported"); - - //read Entity Value - const startChar = xmlData[i++]; - let val = "" - for (; i < xmlData.length && xmlData[i] !== startChar ; i++) { - val += xmlData[i]; - } - return [entityName, val, i]; -} - -function isComment(xmlData, i){ - if(xmlData[i+1] === '!' && - xmlData[i+2] === '-' && - xmlData[i+3] === '-') return true - return false -} -function isEntity(xmlData, i){ - if(xmlData[i+1] === '!' && - xmlData[i+2] === 'E' && - xmlData[i+3] === 'N' && - xmlData[i+4] === 'T' && - xmlData[i+5] === 'I' && - xmlData[i+6] === 'T' && - xmlData[i+7] === 'Y') return true - return false -} -function isElement(xmlData, i){ - if(xmlData[i+1] === '!' && - xmlData[i+2] === 'E' && - xmlData[i+3] === 'L' && - xmlData[i+4] === 'E' && - xmlData[i+5] === 'M' && - xmlData[i+6] === 'E' && - xmlData[i+7] === 'N' && - xmlData[i+8] === 'T') return true - return false -} - -function isAttlist(xmlData, i){ - if(xmlData[i+1] === '!' && - xmlData[i+2] === 'A' && - xmlData[i+3] === 'T' && - xmlData[i+4] === 'T' && - xmlData[i+5] === 'L' && - xmlData[i+6] === 'I' && - xmlData[i+7] === 'S' && - xmlData[i+8] === 'T') return true - return false -} -function isNotation(xmlData, i){ - if(xmlData[i+1] === '!' && - xmlData[i+2] === 'N' && - xmlData[i+3] === 'O' && - xmlData[i+4] === 'T' && - xmlData[i+5] === 'A' && - xmlData[i+6] === 'T' && - xmlData[i+7] === 'I' && - xmlData[i+8] === 'O' && - xmlData[i+9] === 'N') return true - return false -} - -function validateEntityName(name){ - if (util.isName(name)) - return name; - else - throw new Error(`Invalid entity name ${name}`); -} - -module.exports = readDocType; diff --git a/node_modules/@extractus/feed-extractor/node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js b/node_modules/@extractus/feed-extractor/node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js deleted file mode 100644 index bca37769..00000000 --- a/node_modules/@extractus/feed-extractor/node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js +++ /dev/null @@ -1,48 +0,0 @@ - -const defaultOptions = { - preserveOrder: false, - attributeNamePrefix: '@_', - attributesGroupName: false, - textNodeName: '#text', - ignoreAttributes: true, - removeNSPrefix: false, // remove NS from tag name or attribute name if true - allowBooleanAttributes: false, //a tag can have attributes without any value - //ignoreRootElement : false, - parseTagValue: true, - parseAttributeValue: false, - trimValues: true, //Trim string values of tag and attributes - cdataPropName: false, - numberParseOptions: { - hex: true, - leadingZeros: true, - eNotation: true - }, - tagValueProcessor: function(tagName, val) { - return val; - }, - attributeValueProcessor: function(attrName, val) { - return val; - }, - stopNodes: [], //nested tags will not be parsed even for errors - alwaysCreateTextNode: false, - isArray: () => false, - commentPropName: false, - unpairedTags: [], - processEntities: true, - htmlEntities: false, - ignoreDeclaration: false, - ignorePiTags: false, - transformTagName: false, - transformAttributeName: false, - updateTag: function(tagName, jPath, attrs){ - return tagName - }, - // skipEmptyListItem: false -}; - -const buildOptions = function(options) { - return Object.assign({}, defaultOptions, options); -}; - -exports.buildOptions = buildOptions; -exports.defaultOptions = defaultOptions; \ No newline at end of file diff --git a/node_modules/@extractus/feed-extractor/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js b/node_modules/@extractus/feed-extractor/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js deleted file mode 100644 index 0047837f..00000000 --- a/node_modules/@extractus/feed-extractor/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +++ /dev/null @@ -1,592 +0,0 @@ -'use strict'; -///@ts-check - -const util = require('../util'); -const xmlNode = require('./xmlNode'); -const readDocType = require("./DocTypeReader"); -const toNumber = require("strnum"); - -const regx = - '<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)' - .replace(/NAME/g, util.nameRegexp); - -//const tagsRegx = new RegExp("<(\\/?[\\w:\\-\._]+)([^>]*)>(\\s*"+cdataRegx+")*([^<]+)?","g"); -//const tagsRegx = new RegExp("<(\\/?)((\\w*:)?([\\w:\\-\._]+))([^>]*)>([^<]*)("+cdataRegx+"([^<]*))*([^<]+)?","g"); - -class OrderedObjParser{ - constructor(options){ - this.options = options; - this.currentNode = null; - this.tagsNodeStack = []; - this.docTypeEntities = {}; - this.lastEntities = { - "apos" : { regex: /&(apos|#39|#x27);/g, val : "'"}, - "gt" : { regex: /&(gt|#62|#x3E);/g, val : ">"}, - "lt" : { regex: /&(lt|#60|#x3C);/g, val : "<"}, - "quot" : { regex: /&(quot|#34|#x22);/g, val : "\""}, - }; - this.ampEntity = { regex: /&(amp|#38|#x26);/g, val : "&"}; - this.htmlEntities = { - "space": { regex: /&(nbsp|#160);/g, val: " " }, - // "lt" : { regex: /&(lt|#60);/g, val: "<" }, - // "gt" : { regex: /&(gt|#62);/g, val: ">" }, - // "amp" : { regex: /&(amp|#38);/g, val: "&" }, - // "quot" : { regex: /&(quot|#34);/g, val: "\"" }, - // "apos" : { regex: /&(apos|#39);/g, val: "'" }, - "cent" : { regex: /&(cent|#162);/g, val: "¢" }, - "pound" : { regex: /&(pound|#163);/g, val: "£" }, - "yen" : { regex: /&(yen|#165);/g, val: "¥" }, - "euro" : { regex: /&(euro|#8364);/g, val: "€" }, - "copyright" : { regex: /&(copy|#169);/g, val: "©" }, - "reg" : { regex: /&(reg|#174);/g, val: "®" }, - "inr" : { regex: /&(inr|#8377);/g, val: "₹" }, - }; - this.addExternalEntities = addExternalEntities; - this.parseXml = parseXml; - this.parseTextData = parseTextData; - this.resolveNameSpace = resolveNameSpace; - this.buildAttributesMap = buildAttributesMap; - this.isItStopNode = isItStopNode; - this.replaceEntitiesValue = replaceEntitiesValue; - this.readStopNodeData = readStopNodeData; - this.saveTextToParentTag = saveTextToParentTag; - this.addChild = addChild; - } - -} - -function addExternalEntities(externalEntities){ - const entKeys = Object.keys(externalEntities); - for (let i = 0; i < entKeys.length; i++) { - const ent = entKeys[i]; - this.lastEntities[ent] = { - regex: new RegExp("&"+ent+";","g"), - val : externalEntities[ent] - } - } -} - -/** - * @param {string} val - * @param {string} tagName - * @param {string} jPath - * @param {boolean} dontTrim - * @param {boolean} hasAttributes - * @param {boolean} isLeafNode - * @param {boolean} escapeEntities - */ -function parseTextData(val, tagName, jPath, dontTrim, hasAttributes, isLeafNode, escapeEntities) { - if (val !== undefined) { - if (this.options.trimValues && !dontTrim) { - val = val.trim(); - } - if(val.length > 0){ - if(!escapeEntities) val = this.replaceEntitiesValue(val); - - const newval = this.options.tagValueProcessor(tagName, val, jPath, hasAttributes, isLeafNode); - if(newval === null || newval === undefined){ - //don't parse - return val; - }else if(typeof newval !== typeof val || newval !== val){ - //overwrite - return newval; - }else if(this.options.trimValues){ - return parseValue(val, this.options.parseTagValue, this.options.numberParseOptions); - }else{ - const trimmedVal = val.trim(); - if(trimmedVal === val){ - return parseValue(val, this.options.parseTagValue, this.options.numberParseOptions); - }else{ - return val; - } - } - } - } -} - -function resolveNameSpace(tagname) { - if (this.options.removeNSPrefix) { - const tags = tagname.split(':'); - const prefix = tagname.charAt(0) === '/' ? '/' : ''; - if (tags[0] === 'xmlns') { - return ''; - } - if (tags.length === 2) { - tagname = prefix + tags[1]; - } - } - return tagname; -} - -//TODO: change regex to capture NS -//const attrsRegx = new RegExp("([\\w\\-\\.\\:]+)\\s*=\\s*(['\"])((.|\n)*?)\\2","gm"); -const attrsRegx = new RegExp('([^\\s=]+)\\s*(=\\s*([\'"])([\\s\\S]*?)\\3)?', 'gm'); - -function buildAttributesMap(attrStr, jPath, tagName) { - if (!this.options.ignoreAttributes && typeof attrStr === 'string') { - // attrStr = attrStr.replace(/\r?\n/g, ' '); - //attrStr = attrStr || attrStr.trim(); - - const matches = util.getAllMatches(attrStr, attrsRegx); - const len = matches.length; //don't make it inline - const attrs = {}; - for (let i = 0; i < len; i++) { - const attrName = this.resolveNameSpace(matches[i][1]); - let oldVal = matches[i][4]; - let aName = this.options.attributeNamePrefix + attrName; - if (attrName.length) { - if (this.options.transformAttributeName) { - aName = this.options.transformAttributeName(aName); - } - if(aName === "__proto__") aName = "#__proto__"; - if (oldVal !== undefined) { - if (this.options.trimValues) { - oldVal = oldVal.trim(); - } - oldVal = this.replaceEntitiesValue(oldVal); - const newVal = this.options.attributeValueProcessor(attrName, oldVal, jPath); - if(newVal === null || newVal === undefined){ - //don't parse - attrs[aName] = oldVal; - }else if(typeof newVal !== typeof oldVal || newVal !== oldVal){ - //overwrite - attrs[aName] = newVal; - }else{ - //parse - attrs[aName] = parseValue( - oldVal, - this.options.parseAttributeValue, - this.options.numberParseOptions - ); - } - } else if (this.options.allowBooleanAttributes) { - attrs[aName] = true; - } - } - } - if (!Object.keys(attrs).length) { - return; - } - if (this.options.attributesGroupName) { - const attrCollection = {}; - attrCollection[this.options.attributesGroupName] = attrs; - return attrCollection; - } - return attrs - } -} - -const parseXml = function(xmlData) { - xmlData = xmlData.replace(/\r\n?/g, "\n"); //TODO: remove this line - const xmlObj = new xmlNode('!xml'); - let currentNode = xmlObj; - let textData = ""; - let jPath = ""; - for(let i=0; i< xmlData.length; i++){//for each char in XML data - const ch = xmlData[i]; - if(ch === '<'){ - // const nextIndex = i+1; - // const _2ndChar = xmlData[nextIndex]; - if( xmlData[i+1] === '/') {//Closing Tag - const closeIndex = findClosingIndex(xmlData, ">", i, "Closing Tag is not closed.") - let tagName = xmlData.substring(i+2,closeIndex).trim(); - - if(this.options.removeNSPrefix){ - const colonIndex = tagName.indexOf(":"); - if(colonIndex !== -1){ - tagName = tagName.substr(colonIndex+1); - } - } - - if(this.options.transformTagName) { - tagName = this.options.transformTagName(tagName); - } - - if(currentNode){ - textData = this.saveTextToParentTag(textData, currentNode, jPath); - } - - //check if last tag of nested tag was unpaired tag - const lastTagName = jPath.substring(jPath.lastIndexOf(".")+1); - if(tagName && this.options.unpairedTags.indexOf(tagName) !== -1 ){ - throw new Error(`Unpaired tag can not be used as closing tag: `); - } - let propIndex = 0 - if(lastTagName && this.options.unpairedTags.indexOf(lastTagName) !== -1 ){ - propIndex = jPath.lastIndexOf('.', jPath.lastIndexOf('.')-1) - this.tagsNodeStack.pop(); - }else{ - propIndex = jPath.lastIndexOf("."); - } - jPath = jPath.substring(0, propIndex); - - currentNode = this.tagsNodeStack.pop();//avoid recursion, set the parent tag scope - textData = ""; - i = closeIndex; - } else if( xmlData[i+1] === '?') { - - let tagData = readTagExp(xmlData,i, false, "?>"); - if(!tagData) throw new Error("Pi Tag is not closed."); - - textData = this.saveTextToParentTag(textData, currentNode, jPath); - if( (this.options.ignoreDeclaration && tagData.tagName === "?xml") || this.options.ignorePiTags){ - - }else{ - - const childNode = new xmlNode(tagData.tagName); - childNode.add(this.options.textNodeName, ""); - - if(tagData.tagName !== tagData.tagExp && tagData.attrExpPresent){ - childNode[":@"] = this.buildAttributesMap(tagData.tagExp, jPath, tagData.tagName); - } - this.addChild(currentNode, childNode, jPath) - - } - - - i = tagData.closeIndex + 1; - } else if(xmlData.substr(i + 1, 3) === '!--') { - const endIndex = findClosingIndex(xmlData, "-->", i+4, "Comment is not closed.") - if(this.options.commentPropName){ - const comment = xmlData.substring(i + 4, endIndex - 2); - - textData = this.saveTextToParentTag(textData, currentNode, jPath); - - currentNode.add(this.options.commentPropName, [ { [this.options.textNodeName] : comment } ]); - } - i = endIndex; - } else if( xmlData.substr(i + 1, 2) === '!D') { - const result = readDocType(xmlData, i); - this.docTypeEntities = result.entities; - i = result.i; - }else if(xmlData.substr(i + 1, 2) === '![') { - const closeIndex = findClosingIndex(xmlData, "]]>", i, "CDATA is not closed.") - 2; - const tagExp = xmlData.substring(i + 9,closeIndex); - - textData = this.saveTextToParentTag(textData, currentNode, jPath); - - //cdata should be set even if it is 0 length string - if(this.options.cdataPropName){ - // let val = this.parseTextData(tagExp, this.options.cdataPropName, jPath + "." + this.options.cdataPropName, true, false, true); - // if(!val) val = ""; - currentNode.add(this.options.cdataPropName, [ { [this.options.textNodeName] : tagExp } ]); - }else{ - let val = this.parseTextData(tagExp, currentNode.tagname, jPath, true, false, true); - if(val == undefined) val = ""; - currentNode.add(this.options.textNodeName, val); - } - - i = closeIndex + 2; - }else {//Opening tag - let result = readTagExp(xmlData,i, this.options.removeNSPrefix); - let tagName= result.tagName; - const rawTagName = result.rawTagName; - let tagExp = result.tagExp; - let attrExpPresent = result.attrExpPresent; - let closeIndex = result.closeIndex; - - if (this.options.transformTagName) { - tagName = this.options.transformTagName(tagName); - } - - //save text as child node - if (currentNode && textData) { - if(currentNode.tagname !== '!xml'){ - //when nested tag is found - textData = this.saveTextToParentTag(textData, currentNode, jPath, false); - } - } - - //check if last tag was unpaired tag - const lastTag = currentNode; - if(lastTag && this.options.unpairedTags.indexOf(lastTag.tagname) !== -1 ){ - currentNode = this.tagsNodeStack.pop(); - jPath = jPath.substring(0, jPath.lastIndexOf(".")); - } - if(tagName !== xmlObj.tagname){ - jPath += jPath ? "." + tagName : tagName; - } - if (this.isItStopNode(this.options.stopNodes, jPath, tagName)) { - let tagContent = ""; - //self-closing tag - if(tagExp.length > 0 && tagExp.lastIndexOf("/") === tagExp.length - 1){ - i = result.closeIndex; - } - //unpaired tag - else if(this.options.unpairedTags.indexOf(tagName) !== -1){ - i = result.closeIndex; - } - //normal tag - else{ - //read until closing tag is found - const result = this.readStopNodeData(xmlData, rawTagName, closeIndex + 1); - if(!result) throw new Error(`Unexpected end of ${rawTagName}`); - i = result.i; - tagContent = result.tagContent; - } - - const childNode = new xmlNode(tagName); - if(tagName !== tagExp && attrExpPresent){ - childNode[":@"] = this.buildAttributesMap(tagExp, jPath, tagName); - } - if(tagContent) { - tagContent = this.parseTextData(tagContent, tagName, jPath, true, attrExpPresent, true, true); - } - - jPath = jPath.substr(0, jPath.lastIndexOf(".")); - childNode.add(this.options.textNodeName, tagContent); - - this.addChild(currentNode, childNode, jPath) - }else{ - //selfClosing tag - if(tagExp.length > 0 && tagExp.lastIndexOf("/") === tagExp.length - 1){ - if(tagName[tagName.length - 1] === "/"){ //remove trailing '/' - tagName = tagName.substr(0, tagName.length - 1); - jPath = jPath.substr(0, jPath.length - 1); - tagExp = tagName; - }else{ - tagExp = tagExp.substr(0, tagExp.length - 1); - } - - if(this.options.transformTagName) { - tagName = this.options.transformTagName(tagName); - } - - const childNode = new xmlNode(tagName); - if(tagName !== tagExp && attrExpPresent){ - childNode[":@"] = this.buildAttributesMap(tagExp, jPath, tagName); - } - this.addChild(currentNode, childNode, jPath) - jPath = jPath.substr(0, jPath.lastIndexOf(".")); - } - //opening tag - else{ - const childNode = new xmlNode( tagName); - this.tagsNodeStack.push(currentNode); - - if(tagName !== tagExp && attrExpPresent){ - childNode[":@"] = this.buildAttributesMap(tagExp, jPath, tagName); - } - this.addChild(currentNode, childNode, jPath) - currentNode = childNode; - } - textData = ""; - i = closeIndex; - } - } - }else{ - textData += xmlData[i]; - } - } - return xmlObj.child; -} - -function addChild(currentNode, childNode, jPath){ - const result = this.options.updateTag(childNode.tagname, jPath, childNode[":@"]) - if(result === false){ - }else if(typeof result === "string"){ - childNode.tagname = result - currentNode.addChild(childNode); - }else{ - currentNode.addChild(childNode); - } -} - -const replaceEntitiesValue = function(val){ - - if(this.options.processEntities){ - for(let entityName in this.docTypeEntities){ - const entity = this.docTypeEntities[entityName]; - val = val.replace( entity.regx, entity.val); - } - for(let entityName in this.lastEntities){ - const entity = this.lastEntities[entityName]; - val = val.replace( entity.regex, entity.val); - } - if(this.options.htmlEntities){ - for(let entityName in this.htmlEntities){ - const entity = this.htmlEntities[entityName]; - val = val.replace( entity.regex, entity.val); - } - } - val = val.replace( this.ampEntity.regex, this.ampEntity.val); - } - return val; -} -function saveTextToParentTag(textData, currentNode, jPath, isLeafNode) { - if (textData) { //store previously collected data as textNode - if(isLeafNode === undefined) isLeafNode = Object.keys(currentNode.child).length === 0 - - textData = this.parseTextData(textData, - currentNode.tagname, - jPath, - false, - currentNode[":@"] ? Object.keys(currentNode[":@"]).length !== 0 : false, - isLeafNode); - - if (textData !== undefined && textData !== "") - currentNode.add(this.options.textNodeName, textData); - textData = ""; - } - return textData; -} - -//TODO: use jPath to simplify the logic -/** - * - * @param {string[]} stopNodes - * @param {string} jPath - * @param {string} currentTagName - */ -function isItStopNode(stopNodes, jPath, currentTagName){ - const allNodesExp = "*." + currentTagName; - for (const stopNodePath in stopNodes) { - const stopNodeExp = stopNodes[stopNodePath]; - if( allNodesExp === stopNodeExp || jPath === stopNodeExp ) return true; - } - return false; -} - -/** - * Returns the tag Expression and where it is ending handling single-double quotes situation - * @param {string} xmlData - * @param {number} i starting index - * @returns - */ -function tagExpWithClosingIndex(xmlData, i, closingChar = ">"){ - let attrBoundary; - let tagExp = ""; - for (let index = i; index < xmlData.length; index++) { - let ch = xmlData[index]; - if (attrBoundary) { - if (ch === attrBoundary) attrBoundary = "";//reset - } else if (ch === '"' || ch === "'") { - attrBoundary = ch; - } else if (ch === closingChar[0]) { - if(closingChar[1]){ - if(xmlData[index + 1] === closingChar[1]){ - return { - data: tagExp, - index: index - } - } - }else{ - return { - data: tagExp, - index: index - } - } - } else if (ch === '\t') { - ch = " " - } - tagExp += ch; - } -} - -function findClosingIndex(xmlData, str, i, errMsg){ - const closingIndex = xmlData.indexOf(str, i); - if(closingIndex === -1){ - throw new Error(errMsg) - }else{ - return closingIndex + str.length - 1; - } -} - -function readTagExp(xmlData,i, removeNSPrefix, closingChar = ">"){ - const result = tagExpWithClosingIndex(xmlData, i+1, closingChar); - if(!result) return; - let tagExp = result.data; - const closeIndex = result.index; - const separatorIndex = tagExp.search(/\s/); - let tagName = tagExp; - let attrExpPresent = true; - if(separatorIndex !== -1){//separate tag name and attributes expression - tagName = tagExp.substr(0, separatorIndex).replace(/\s\s*$/, ''); - tagExp = tagExp.substr(separatorIndex + 1); - } - - const rawTagName = tagName; - if(removeNSPrefix){ - const colonIndex = tagName.indexOf(":"); - if(colonIndex !== -1){ - tagName = tagName.substr(colonIndex+1); - attrExpPresent = tagName !== result.data.substr(colonIndex + 1); - } - } - - return { - tagName: tagName, - tagExp: tagExp, - closeIndex: closeIndex, - attrExpPresent: attrExpPresent, - rawTagName: rawTagName, - } -} -/** - * find paired tag for a stop node - * @param {string} xmlData - * @param {string} tagName - * @param {number} i - */ -function readStopNodeData(xmlData, tagName, i){ - const startIndex = i; - // Starting at 1 since we already have an open tag - let openTagCount = 1; - - for (; i < xmlData.length; i++) { - if( xmlData[i] === "<"){ - if (xmlData[i+1] === "/") {//close tag - const closeIndex = findClosingIndex(xmlData, ">", i, `${tagName} is not closed`); - let closeTagName = xmlData.substring(i+2,closeIndex).trim(); - if(closeTagName === tagName){ - openTagCount--; - if (openTagCount === 0) { - return { - tagContent: xmlData.substring(startIndex, i), - i : closeIndex - } - } - } - i=closeIndex; - } else if(xmlData[i+1] === '?') { - const closeIndex = findClosingIndex(xmlData, "?>", i+1, "StopNode is not closed.") - i=closeIndex; - } else if(xmlData.substr(i + 1, 3) === '!--') { - const closeIndex = findClosingIndex(xmlData, "-->", i+3, "StopNode is not closed.") - i=closeIndex; - } else if(xmlData.substr(i + 1, 2) === '![') { - const closeIndex = findClosingIndex(xmlData, "]]>", i, "StopNode is not closed.") - 2; - i=closeIndex; - } else { - const tagData = readTagExp(xmlData, i, '>') - - if (tagData) { - const openTagName = tagData && tagData.tagName; - if (openTagName === tagName && tagData.tagExp[tagData.tagExp.length-1] !== "/") { - openTagCount++; - } - i=tagData.closeIndex; - } - } - } - }//end for loop -} - -function parseValue(val, shouldParse, options) { - if (shouldParse && typeof val === 'string') { - //console.log(options) - const newval = val.trim(); - if(newval === 'true' ) return true; - else if(newval === 'false' ) return false; - else return toNumber(val, options); - } else { - if (util.isExist(val)) { - return val; - } else { - return ''; - } - } -} - - -module.exports = OrderedObjParser; diff --git a/node_modules/@extractus/feed-extractor/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js b/node_modules/@extractus/feed-extractor/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js deleted file mode 100644 index ffaf59b5..00000000 --- a/node_modules/@extractus/feed-extractor/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js +++ /dev/null @@ -1,58 +0,0 @@ -const { buildOptions} = require("./OptionsBuilder"); -const OrderedObjParser = require("./OrderedObjParser"); -const { prettify} = require("./node2json"); -const validator = require('../validator'); - -class XMLParser{ - - constructor(options){ - this.externalEntities = {}; - this.options = buildOptions(options); - - } - /** - * Parse XML dats to JS object - * @param {string|Buffer} xmlData - * @param {boolean|Object} validationOption - */ - parse(xmlData,validationOption){ - if(typeof xmlData === "string"){ - }else if( xmlData.toString){ - xmlData = xmlData.toString(); - }else{ - throw new Error("XML data is accepted in String or Bytes[] form.") - } - if( validationOption){ - if(validationOption === true) validationOption = {}; //validate with default options - - const result = validator.validate(xmlData, validationOption); - if (result !== true) { - throw Error( `${result.err.msg}:${result.err.line}:${result.err.col}` ) - } - } - const orderedObjParser = new OrderedObjParser(this.options); - orderedObjParser.addExternalEntities(this.externalEntities); - const orderedResult = orderedObjParser.parseXml(xmlData); - if(this.options.preserveOrder || orderedResult === undefined) return orderedResult; - else return prettify(orderedResult, this.options); - } - - /** - * Add Entity which is not by default supported by this library - * @param {string} key - * @param {string} value - */ - addEntity(key, value){ - if(value.indexOf("&") !== -1){ - throw new Error("Entity value can't have '&'") - }else if(key.indexOf("&") !== -1 || key.indexOf(";") !== -1){ - throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for ' '") - }else if(value === "&"){ - throw new Error("An entity with value '&' is not permitted"); - }else{ - this.externalEntities[key] = value; - } - } -} - -module.exports = XMLParser; \ No newline at end of file diff --git a/node_modules/@extractus/feed-extractor/node_modules/fast-xml-parser/src/xmlparser/node2json.js b/node_modules/@extractus/feed-extractor/node_modules/fast-xml-parser/src/xmlparser/node2json.js deleted file mode 100644 index 30455738..00000000 --- a/node_modules/@extractus/feed-extractor/node_modules/fast-xml-parser/src/xmlparser/node2json.js +++ /dev/null @@ -1,113 +0,0 @@ -'use strict'; - -/** - * - * @param {array} node - * @param {any} options - * @returns - */ -function prettify(node, options){ - return compress( node, options); -} - -/** - * - * @param {array} arr - * @param {object} options - * @param {string} jPath - * @returns object - */ -function compress(arr, options, jPath){ - let text; - const compressedObj = {}; - for (let i = 0; i < arr.length; i++) { - const tagObj = arr[i]; - const property = propName(tagObj); - let newJpath = ""; - if(jPath === undefined) newJpath = property; - else newJpath = jPath + "." + property; - - if(property === options.textNodeName){ - if(text === undefined) text = tagObj[property]; - else text += "" + tagObj[property]; - }else if(property === undefined){ - continue; - }else if(tagObj[property]){ - - let val = compress(tagObj[property], options, newJpath); - const isLeaf = isLeafTag(val, options); - - if(tagObj[":@"]){ - assignAttributes( val, tagObj[":@"], newJpath, options); - }else if(Object.keys(val).length === 1 && val[options.textNodeName] !== undefined && !options.alwaysCreateTextNode){ - val = val[options.textNodeName]; - }else if(Object.keys(val).length === 0){ - if(options.alwaysCreateTextNode) val[options.textNodeName] = ""; - else val = ""; - } - - if(compressedObj[property] !== undefined && compressedObj.hasOwnProperty(property)) { - if(!Array.isArray(compressedObj[property])) { - compressedObj[property] = [ compressedObj[property] ]; - } - compressedObj[property].push(val); - }else{ - //TODO: if a node is not an array, then check if it should be an array - //also determine if it is a leaf node - if (options.isArray(property, newJpath, isLeaf )) { - compressedObj[property] = [val]; - }else{ - compressedObj[property] = val; - } - } - } - - } - // if(text && text.length > 0) compressedObj[options.textNodeName] = text; - if(typeof text === "string"){ - if(text.length > 0) compressedObj[options.textNodeName] = text; - }else if(text !== undefined) compressedObj[options.textNodeName] = text; - return compressedObj; -} - -function propName(obj){ - const keys = Object.keys(obj); - for (let i = 0; i < keys.length; i++) { - const key = keys[i]; - if(key !== ":@") return key; - } -} - -function assignAttributes(obj, attrMap, jpath, options){ - if (attrMap) { - const keys = Object.keys(attrMap); - const len = keys.length; //don't make it inline - for (let i = 0; i < len; i++) { - const atrrName = keys[i]; - if (options.isArray(atrrName, jpath + "." + atrrName, true, true)) { - obj[atrrName] = [ attrMap[atrrName] ]; - } else { - obj[atrrName] = attrMap[atrrName]; - } - } - } -} - -function isLeafTag(obj, options){ - const { textNodeName } = options; - const propCount = Object.keys(obj).length; - - if (propCount === 0) { - return true; - } - - if ( - propCount === 1 && - (obj[textNodeName] || typeof obj[textNodeName] === "boolean" || obj[textNodeName] === 0) - ) { - return true; - } - - return false; -} -exports.prettify = prettify; diff --git a/node_modules/@extractus/feed-extractor/node_modules/fast-xml-parser/src/xmlparser/xmlNode.js b/node_modules/@extractus/feed-extractor/node_modules/fast-xml-parser/src/xmlparser/xmlNode.js deleted file mode 100644 index 93195242..00000000 --- a/node_modules/@extractus/feed-extractor/node_modules/fast-xml-parser/src/xmlparser/xmlNode.js +++ /dev/null @@ -1,25 +0,0 @@ -'use strict'; - -class XmlNode{ - constructor(tagname) { - this.tagname = tagname; - this.child = []; //nested tags, text, cdata, comments in order - this[":@"] = {}; //attributes map - } - add(key,val){ - // this.child.push( {name : key, val: val, isCdata: isCdata }); - if(key === "__proto__") key = "#__proto__"; - this.child.push( {[key]: val }); - } - addChild(node) { - if(node.tagname === "__proto__") node.tagname = "#__proto__"; - if(node[":@"] && Object.keys(node[":@"]).length > 0){ - this.child.push( { [node.tagname]: node.child, [":@"]: node[":@"] }); - }else{ - this.child.push( { [node.tagname]: node.child }); - } - }; -}; - - -module.exports = XmlNode; \ No newline at end of file diff --git a/node_modules/@extractus/feed-extractor/package.json b/node_modules/@extractus/feed-extractor/package.json deleted file mode 100755 index a16826e1..00000000 --- a/node_modules/@extractus/feed-extractor/package.json +++ /dev/null @@ -1,52 +0,0 @@ -{ - "version": "7.0.7", - "name": "@extractus/feed-extractor", - "description": "To read and normalize RSS/ATOM/JSON feed data", - "homepage": "https://extractor-demos.pages.dev", - "repository": { - "type": "git", - "url": "git@github.com:extractus/feed-extractor.git" - }, - "author": "@extractus", - "main": "./src/main.js", - "type": "module", - "imports": { - "cross-fetch": "./src/deno/cross-fetch.js" - }, - "browser": { - "cross-fetch": "./src/deno/cross-fetch.js" - }, - "types": "./index.d.ts", - "engines": { - "node": ">= 16" - }, - "scripts": { - "lint": "eslint .", - "lint:fix": "eslint --fix .", - "pretest": "npm run lint", - "test": "NODE_ENV=test NODE_OPTIONS=--experimental-vm-modules jest --verbose --coverage=true", - "eval": "node eval", - "reset": "node reset" - }, - "dependencies": { - "bellajs": "^11.1.2", - "cross-fetch": "^4.0.0", - "fast-xml-parser": "^4.3.2", - "html-entities": "^2.4.0" - }, - "devDependencies": { - "eslint": "^8.53.0", - "https-proxy-agent": "^7.0.2", - "jest": "^29.7.0", - "nock": "^13.3.8" - }, - "keywords": [ - "extractor", - "parser", - "feed", - "rss", - "atom", - "util" - ], - "license": "MIT" -} diff --git a/node_modules/@extractus/feed-extractor/reset.js b/node_modules/@extractus/feed-extractor/reset.js deleted file mode 100755 index 0457bd67..00000000 --- a/node_modules/@extractus/feed-extractor/reset.js +++ /dev/null @@ -1,34 +0,0 @@ -// reset.js - -import { - existsSync, - unlinkSync -} from 'fs' - -import { execSync } from 'child_process' - -const dirs = [ - 'dist', - 'docs', - '.nyc_output', - 'coverage', - 'node_modules', - '.nuxt', -] - -const files = [ - 'yarn.lock', - 'pnpm-lock.yaml', - 'package-lock.json', - 'coverage.lcov', -] - -dirs.forEach((d) => { - execSync(`rm -rf ${d}`) -}) - -files.forEach((f) => { - if (existsSync(f)) { - unlinkSync(f) - } -}) diff --git a/node_modules/@extractus/feed-extractor/src/deno/cross-fetch.js b/node_modules/@extractus/feed-extractor/src/deno/cross-fetch.js deleted file mode 100644 index d084f98d..00000000 --- a/node_modules/@extractus/feed-extractor/src/deno/cross-fetch.js +++ /dev/null @@ -1,2 +0,0 @@ -// cross-fetch.js -export default fetch diff --git a/node_modules/@extractus/feed-extractor/src/main.js b/node_modules/@extractus/feed-extractor/src/main.js deleted file mode 100755 index e41ba9eb..00000000 --- a/node_modules/@extractus/feed-extractor/src/main.js +++ /dev/null @@ -1,74 +0,0 @@ -// main.js - -import { isValid as isValidUrl } from './utils/linker.js' - -import retrieve from './utils/retrieve.js' -import { validate, xml2obj, isRSS, isAtom, isRdf } from './utils/xmlparser.js' -import parseJsonFeed from './utils/parseJsonFeed.js' -import parseRssFeed from './utils/parseRssFeed.js' -import parseAtomFeed from './utils/parseAtomFeed.js' -import parseRdfFeed from './utils/parseRdfFeed.js' - -const getopt = (options = {}) => { - const { - normalization = true, - descriptionMaxLen = 250, - useISODateFormat = true, - xmlParserOptions = {}, - baseUrl = '', - getExtraFeedFields = () => ({}), - getExtraEntryFields = () => ({}), - } = options - - return { - normalization, - descriptionMaxLen, - useISODateFormat, - xmlParserOptions, - baseUrl, - getExtraFeedFields, - getExtraEntryFields, - } -} - -export const extractFromJson = (json, options = {}) => { - return parseJsonFeed(json, getopt(options)) -} - -export const extractFromXml = (xml, options = {}) => { - if (!validate(xml)) { - throw new Error('The XML document is not well-formed') - } - - const opts = getopt(options) - - const data = xml2obj(xml, opts.xmlParserOptions) - - return isRSS(data) - ? parseRssFeed(data, opts) - : isAtom(data) - ? parseAtomFeed(data, opts) - : isRdf(data) - ? parseRdfFeed(data, opts) - : null -} - -export const extract = async (url, options = {}, fetchOptions = {}) => { - if (!isValidUrl(url)) { - throw new Error('Input param must be a valid URL') - } - - const data = await retrieve(url, fetchOptions) - if (!data.text && !data.json) { - throw new Error(`Failed to load content from "${url}"`) - } - - const { type, json, text } = data - - return type === 'json' ? extractFromJson(json, options) : extractFromXml(text, options) -} - -export const read = async (url, options, fetchOptions) => { - console.warn('WARNING: read() is deprecated. Please use extract() instead!') - return extract(url, options, fetchOptions) -} diff --git a/node_modules/@extractus/feed-extractor/src/main.test.js b/node_modules/@extractus/feed-extractor/src/main.test.js deleted file mode 100644 index 36e7666c..00000000 --- a/node_modules/@extractus/feed-extractor/src/main.test.js +++ /dev/null @@ -1,505 +0,0 @@ -// main.test -/* eslint-env jest */ - -import { readFileSync } from 'fs' - -import nock from 'nock' -import { HttpsProxyAgent } from 'https-proxy-agent' - -import { hasProperty, isString } from 'bellajs' - -import { extract, extractFromXml, extractFromJson, read } from './main.js' -import { isValid as isValidUrl } from './utils/linker.js' - -const env = process.env || {} -const PROXY_SERVER = env.PROXY_SERVER || '' - -const feedAttrs = 'title link description generator language published entries'.split(' ') -const entryAttrs = 'title link description published id'.split(' ') - -const parseUrl = (url) => { - const re = new URL(url) - return { - baseUrl: `${re.protocol}//${re.host}`, - path: re.pathname, - } -} - -const isValidDate = (d) => { - return (new Date(d)).toString() !== 'Invalid Date' -} - -const validateProps = (entry) => { - const { id, link, title, published, description } = entry - return isString(description) && - isString(id) && id !== '' && - isString(title) && title !== '' && - isString(link) && isValidUrl(link) && - isString(published) && isValidDate(published) -} - -describe('test extract() function with common issues', () => { - test('extract feed from a non-string link', () => { - expect(extract([])).rejects.toThrow(new Error('Input param must be a valid URL')) - }) - - test('extract feed from a 404 link', () => { - const url = 'https://somewhere.xyz/alpha/beta' - const { baseUrl, path } = parseUrl(url) - nock(baseUrl).get(path).reply(404) - expect(extract(url)).rejects.toThrow(new Error('Request failed with error code 404')) - }) - - test('extract feed from empty xml', () => { - const url = 'https://empty-source.elsewhere/rss' - const { baseUrl, path } = parseUrl(url) - nock(baseUrl).get(path).reply(200, '', { - 'Content-Type': 'application/xml', - }) - expect(extract(url)).rejects.toThrow(new Error(`Failed to load content from "${url}"`)) - }) - - test('extract feed from invalid xml', async () => { - const url = 'https://averybad-source.elsewhere/rss' - const xml = '' - const { baseUrl, path } = parseUrl(url) - nock(baseUrl).get(path).reply(200, xml, { - 'Content-Type': 'application/xml', - }) - expect(extract(url)).rejects.toThrow(new Error('The XML document is not well-formed')) - }) - - test('extract feed from invalid json', async () => { - const url = 'https://averybad-source.elsewhere/jsonfeed' - const { baseUrl, path } = parseUrl(url) - nock(baseUrl).get(path).reply(200, 'this is not json string', { - 'Content-Type': 'application/json', - }) - expect(extract(url)).rejects.toThrow(new Error('Failed to convert data to JSON object')) - }) -}) - -describe('test extract() standard feed', () => { - test('extract rss feed from Google', async () => { - const url = 'https://some-news-page.tld/rss' - const xml = readFileSync('test-data/rss-feed-standard-realworld.xml', 'utf8') - const { baseUrl, path } = parseUrl(url) - nock(baseUrl).get(path).reply(200, xml, { - 'Content-Type': 'application/xml', - }) - const result = await extract(url) - feedAttrs.forEach((k) => { - expect(hasProperty(result, k)).toBe(true) - }) - entryAttrs.forEach((k) => { - expect(hasProperty(result.entries[0], k)).toBe(true) - }) - expect(validateProps(result.entries[0])).toBe(true) - }) - - test('extract atom feed from Google', async () => { - const url = 'https://some-news-page.tld/atom' - const xml = readFileSync('test-data/atom-feed-standard-realworld.xml', 'utf8') - const { baseUrl, path } = parseUrl(url) - nock(baseUrl).get(path).reply(200, xml, { - 'Content-Type': 'application/xml', - }) - const result = await extract(url) - feedAttrs.forEach((k) => { - expect(hasProperty(result, k)).toBe(true) - }) - entryAttrs.forEach((k) => { - expect(hasProperty(result.entries[0], k)).toBe(true) - }) - expect(validateProps(result.entries[0])).toBe(true) - }) - - test('extract atom feed from Google with extraFields', async () => { - const url = 'https://some-news-page.tld/atom' - const xml = readFileSync('test-data/atom-feed-standard-realworld.xml', 'utf8') - const { baseUrl, path } = parseUrl(url) - nock(baseUrl).get(path).reply(200, xml, { - 'Content-Type': 'application/xml', - }) - const result = await extract(url, { - getExtraFeedFields: data => { - return { - author: data.author, - } - }, - getExtraEntryFields: data => { - return { - id: data.id, - } - }, - }) - expect(hasProperty(result, 'author')).toBe(true) - expect(hasProperty(result.entries[0], 'id')).toBe(true) - expect(validateProps(result.entries[0])).toBe(true) - }) - - test('extract rdf feed from Slashdot with extraFields', async () => { - const url = 'https://some-news-page.tld/atom' - const xml = readFileSync('test-data/rdf-standard.xml', 'utf8') - const { baseUrl, path } = parseUrl(url) - nock(baseUrl).get(path).reply(200, xml, { - 'Content-Type': 'application/xml', - }) - const result = await extract(url, { - getExtraFeedFields: data => { - return { - subject: data['dc:subject'], - } - }, - getExtraEntryFields: data => { - return { - author: data['dc:creator'], - } - }, - }) - expect(hasProperty(result, 'subject')).toBe(true) - expect(hasProperty(result.entries[0], 'author')).toBe(true) - expect(validateProps(result.entries[0])).toBe(true) - }) - - test('extract atom feed which contains multi links', async () => { - const url = 'https://some-news-page.tld/atom/multilinks' - const xml = readFileSync('test-data/atom-multilinks.xml', 'utf8') - const { baseUrl, path } = parseUrl(url) - nock(baseUrl).get(path).reply(200, xml, { - 'Content-Type': 'application/xml', - }) - const result = await extract(url) - feedAttrs.forEach((k) => { - expect(hasProperty(result, k)).toBe(true) - }) - entryAttrs.forEach((k) => { - expect(hasProperty(result.entries[0], k)).toBe(true) - }) - expect(validateProps(result.entries[0])).toBe(true) - }) - - test('extract json feed from Micro.blog', async () => { - const url = 'https://some-news-page.tld/json' - const json = readFileSync('test-data/json-feed-standard-realworld.json', 'utf8') - const { baseUrl, path } = parseUrl(url) - nock(baseUrl).get(path).reply(200, json, { - 'Content-Type': 'text/json', - }) - const result = await extract(url) - feedAttrs.forEach((k) => { - expect(hasProperty(result, k)).toBe(true) - }) - entryAttrs.forEach((k) => { - expect(hasProperty(result.entries[0], k)).toBe(true) - }) - expect(validateProps(result.entries[0])).toBe(true) - }) - - test('extract json feed from Micro.blog with extra fields', async () => { - const url = 'https://some-news-page.tld/json' - const json = readFileSync('test-data/json-feed-standard-realworld.json', 'utf8') - const { baseUrl, path } = parseUrl(url) - nock(baseUrl).get(path).reply(200, json, { - 'Content-Type': 'text/json', - }) - const result = await extract(url, { - getExtraFeedFields: data => { - return { - icon: data.icon, - } - }, - getExtraEntryFields: data => { - return { - id: data.id, - } - }, - }) - expect(hasProperty(result, 'icon')).toBe(true) - expect(hasProperty(result.entries[0], 'id')).toBe(true) - expect(validateProps(result.entries[0])).toBe(true) - }) - - test('extract rss feed from huggingface.co (no link)', async () => { - const url = 'https://huggingface.co/no-link/rss' - const xml = readFileSync('test-data/rss-feed-miss-link.xml', 'utf8') - const { baseUrl, path } = parseUrl(url) - nock(baseUrl).get(path).reply(200, xml, { - 'Content-Type': 'application/xml', - }) - const result = await extract(url) - feedAttrs.forEach((k) => { - expect(hasProperty(result, k)).toBe(true) - }) - entryAttrs.forEach((k) => { - expect(hasProperty(result.entries[0], k)).toBe(true) - }) - expect(validateProps(result.entries[0])).toBe(true) - }) - - test('extract rss feed from medium.com (content:encoded)', async () => { - const url = 'https://medium.com/feed/@ameliakusiak' - const xml = readFileSync('test-data/medium-feed.xml', 'utf8') - const { baseUrl, path } = parseUrl(url) - nock(baseUrl).get(path).reply(200, xml, { - 'Content-Type': 'application/xml', - }) - const result = await extract(url) - feedAttrs.forEach((k) => { - expect(hasProperty(result, k)).toBe(true) - }) - entryAttrs.forEach((k) => { - expect(hasProperty(result.entries[0], k)).toBe(true) - }) - expect(validateProps(result.entries[0])).toBe(true) - }) -}) - -describe('test extract() with `useISODateFormat` option', () => { - test('set `useISODateFormat` to false', async () => { - const url = 'https://realworld-standard-feed.tld/rss' - const xml = readFileSync('test-data/rss-feed-standard-realworld.xml', 'utf8') - const { baseUrl, path } = parseUrl(url) - nock(baseUrl).get(path).reply(200, xml, { - 'Content-Type': 'application/xml', - }) - const result = await extract(url, { - useISODateFormat: false, - }) - expect(result.published).toEqual('Thu, 28 Jul 2022 03:39:57 GMT') - expect(result.entries[0].published).toEqual('Thu, 28 Jul 2022 02:43:00 GMT') - }) - - test('set `useISODateFormat` to true', async () => { - const url = 'https://realworld-standard-feed.tld/rss' - const xml = readFileSync('test-data/rss-feed-standard-realworld.xml', 'utf8') - const { baseUrl, path } = parseUrl(url) - nock(baseUrl).get(path).reply(200, xml, { - 'Content-Type': 'application/xml', - }) - const result = await extract(url, { - useISODateFormat: true, - }) - expect(result.published).toEqual('2022-07-28T03:39:57.000Z') - expect(result.entries[0].published).toEqual('2022-07-28T02:43:00.000Z') - }) -}) - -describe('test extract() without normalization', () => { - test('extract rss feed from Google', async () => { - const url = 'https://some-news-page.tld/rss' - const xml = readFileSync('test-data/rss-feed-standard-realworld.xml', 'utf8') - const { baseUrl, path } = parseUrl(url) - nock(baseUrl).get(path).reply(200, xml, { - 'Content-Type': 'application/xml', - }) - const result = await extract(url, { - normalization: false, - }) - expect(hasProperty(result, 'webMaster')).toBe(true) - expect(hasProperty(result, 'item')).toBe(true) - expect(hasProperty(result.item[0], 'source')).toBe(true) - }) - test('extract rss feed from standard example', async () => { - const url = 'https://some-news-page.tld/rss' - const xml = readFileSync('test-data/rss-feed-standard.xml', 'utf8') - const { baseUrl, path } = parseUrl(url) - nock(baseUrl).get(path).reply(200, xml, { - 'Content-Type': 'application/xml', - }) - const result = await extract(url, { - normalization: false, - }) - expect(hasProperty(result, 'copyright')).toBe(true) - expect(hasProperty(result, 'item')).toBe(true) - expect(hasProperty(result.item, 'guid')).toBe(true) - }) - - test('extract rdf feed from Slashdot without normalization', async () => { - const url = 'https://some-news-page.tld/atom' - const xml = readFileSync('test-data/rdf-standard.xml', 'utf8') - const { baseUrl, path } = parseUrl(url) - nock(baseUrl).get(path).reply(200, xml, { - 'Content-Type': 'application/xml', - }) - const result = await extract(url, { - normalization: false, - }) - expect(hasProperty(result.channel, 'syn:updateBase')).toBe(true) - expect(hasProperty(result.channel, 'dc:rights')).toBe(true) - expect(hasProperty(result, 'item')).toBe(true) - expect(hasProperty(result.item[0], 'slash:department')).toBe(true) - }) - - test('extract atom feed from Google', async () => { - const url = 'https://some-news-page.tld/atom' - const xml = readFileSync('test-data/atom-feed-standard-realworld.xml', 'utf8') - const { baseUrl, path } = parseUrl(url) - nock(baseUrl).get(path).reply(200, xml, { - 'Content-Type': 'application/xml', - }) - const result = await extract(url, { - normalization: false, - }) - expect(hasProperty(result, 'id')).toBe(true) - expect(hasProperty(result, 'rights')).toBe(true) - expect(hasProperty(result, 'entry')).toBe(true) - expect(hasProperty(result.entry[0], 'updated')).toBe(true) - }) - - test('extract atom feed from standard example', async () => { - const url = 'https://some-news-page.tld/atom' - const xml = readFileSync('test-data/atom-feed-standard.xml', 'utf8') - const { baseUrl, path } = parseUrl(url) - nock(baseUrl).get(path).reply(200, xml, { - 'Content-Type': 'application/xml', - }) - const result = await extract(url, { - normalization: false, - }) - expect(hasProperty(result, 'id')).toBe(true) - expect(hasProperty(result, 'entry')).toBe(true) - expect(hasProperty(result.entry, 'published')).toBe(true) - expect(hasProperty(result.entry, 'updated')).toBe(true) - expect(hasProperty(result.entry, 'summary')).toBe(true) - expect(hasProperty(result.entry, 'content')).toBe(true) - }) - - test('extract json feed from Micro.blog', async () => { - const url = 'https://some-news-page.tld/json' - const json = readFileSync('test-data/json-feed-standard-realworld.json', 'utf8') - const { baseUrl, path } = parseUrl(url) - nock(baseUrl).get(path).reply(200, json, { - 'Content-Type': 'application/json', - }) - const result = await extract(url, { - normalization: false, - }) - expect(hasProperty(result, 'icon')).toBe(true) - expect(hasProperty(result, 'favicon')).toBe(true) - expect(hasProperty(result, 'items')).toBe(true) - expect(hasProperty(result.items[0], 'tags')).toBe(true) - expect(hasProperty(result.items[0], 'date_published')).toBe(true) - }) - - test('extract rss podcast feed with enclosure tag', async () => { - const url = 'https://some-podcast-page.tld/podcast/rss' - const xml = readFileSync('test-data/podcast.rss', 'utf8') - const { baseUrl, path } = parseUrl(url) - nock(baseUrl).get(path).reply(200, xml, { - 'Content-Type': 'application/xml', - }) - const result = await extract(url, { - normalization: false, - }) - expect(hasProperty(result, 'itunes:owner')).toBe(true) - expect(hasProperty(result.item[0], 'itunes:duration')).toBe(true) - }) -}) - -describe('test extract with `baseUrl` option', () => { - test('extract rss feed from file', () => { - const baseUrl = 'https://huggingface.co' - const xml = readFileSync('test-data/rss-feed-miss-base-url.xml', 'utf8') - const result = extractFromXml(xml, { baseUrl }) - - feedAttrs.forEach((k) => { - expect(hasProperty(result, k)).toBe(true) - }) - - entryAttrs.forEach((k) => { - expect(hasProperty(result.entries[0], k)).toBe(true) - }) - - expect(validateProps(result.entries[0])).toBe(true) - expect(result.link).toBe(baseUrl + '/blog') - expect(result.entries[0].link).toBe(baseUrl + '/blog/intro-graphml') - }) - - test('extract rdf feed from file', () => { - const baseUrl = 'https://slashdot.org' - const xml = readFileSync('test-data/rdf-standard.xml', 'utf8') - const result = extractFromXml(xml, { baseUrl }) - - feedAttrs.forEach((k) => { - expect(hasProperty(result, k)).toBe(true) - }) - - entryAttrs.forEach((k) => { - expect(hasProperty(result.entries[0], k)).toBe(true) - }) - - expect(validateProps(result.entries[0])).toBe(true) - expect(result.link).toBe(baseUrl + '/') - const firstItemLink = result.entries[0].link - expect(firstItemLink.startsWith('https://tech.slashdot.org/story/23/08/23/2238246/spacex-')).toBe(true) - }) - - test('extract json feed from file', () => { - const baseUrl = 'https://www.jsonfeed.org' - const json = readFileSync('test-data/json-feed-miss-base-url.json', 'utf8') - const result = extractFromJson(JSON.parse(json), { baseUrl }) - - feedAttrs.forEach((k) => { - expect(hasProperty(result, k)).toBe(true) - }) - - entryAttrs.forEach((k) => { - expect(hasProperty(result.entries[0], k)).toBe(true) - }) - - expect(result.link).toBe(baseUrl + '/') - expect(result.entries[0].link).toBe(baseUrl + '/2020/08/07/json-feed-version.html') - }) - - test('extract rss feed with url', async () => { - const url = 'https://huggingface.co/blog/rss' - const xml = readFileSync('test-data/rss-feed-miss-base-url.xml', 'utf8') - const { baseUrl, path } = parseUrl(url) - nock(baseUrl).get(path).reply(200, xml, { - 'Content-Type': 'application/xml', - }) - const result = await extract(url, { baseUrl }) - - feedAttrs.forEach((k) => { - expect(hasProperty(result, k)).toBe(true) - }) - - entryAttrs.forEach((k) => { - expect(hasProperty(result.entries[0], k)).toBe(true) - }) - - expect(validateProps(result.entries[0])).toBe(true) - expect(result.link).toBe(baseUrl + '/blog') - expect(result.entries[0].link).toBe(baseUrl + '/blog/intro-graphml') - }) -}) - -if (PROXY_SERVER !== '') { - describe('test extract live RSS via proxy server', () => { - test('check if extract method works with proxy server', async () => { - const url = 'https://news.google.com/rss' - const result = await extract(url, {}, { - agent: new HttpsProxyAgent(PROXY_SERVER), - }) - expect(result.title).toContain('Google News') - expect(result.entries.length).toBeGreaterThan(0) - }, 10000) - }) -} - -describe('check old method read()', () => { - test('ensure that depricated method read() still works', async () => { - const url = 'https://realworld-standard-feed.tld/rss' - const xml = readFileSync('test-data/rss-feed-standard-realworld.xml', 'utf8') - const { baseUrl, path } = parseUrl(url) - nock(baseUrl).get(path).reply(200, xml, { - 'Content-Type': 'application/xml', - }) - const result = await read(url, { - useISODateFormat: true, - }) - expect(result.published).toEqual('2022-07-28T03:39:57.000Z') - expect(result.entries[0].published).toEqual('2022-07-28T02:43:00.000Z') - }) -}) diff --git a/node_modules/@extractus/feed-extractor/src/utils/linker.js b/node_modules/@extractus/feed-extractor/src/utils/linker.js deleted file mode 100755 index 78b42e18..00000000 --- a/node_modules/@extractus/feed-extractor/src/utils/linker.js +++ /dev/null @@ -1,93 +0,0 @@ -// utils -> linker - -export const isValid = (url = '') => { - try { - const ourl = new URL(url) - return ourl !== null && ourl.protocol.startsWith('http') - } catch (err) { - return false - } -} - -export const absolutify = (fullUrl = '', relativeUrl = '') => { - try { - const result = new URL(relativeUrl, fullUrl) - return result.toString() - } catch (err) { - return '' - } -} - -const blacklistKeys = [ - 'CNDID', - '__twitter_impression', - '_hsenc', - '_openstat', - 'action_object_map', - 'action_ref_map', - 'action_type_map', - 'amp', - 'fb_action_ids', - 'fb_action_types', - 'fb_ref', - 'fb_source', - 'fbclid', - 'ga_campaign', - 'ga_content', - 'ga_medium', - 'ga_place', - 'ga_source', - 'ga_term', - 'gs_l', - 'hmb_campaign', - 'hmb_medium', - 'hmb_source', - 'mbid', - 'mc_cid', - 'mc_eid', - 'mkt_tok', - 'referrer', - 'spJobID', - 'spMailingID', - 'spReportId', - 'spUserID', - 'utm_brand', - 'utm_campaign', - 'utm_cid', - 'utm_content', - 'utm_int', - 'utm_mailing', - 'utm_medium', - 'utm_name', - 'utm_place', - 'utm_pubreferrer', - 'utm_reader', - 'utm_social', - 'utm_source', - 'utm_swu', - 'utm_term', - 'utm_userid', - 'utm_viz_id', - 'wt_mc_o', - 'yclid', - 'WT.mc_id', - 'WT.mc_ev', - 'WT.srch', - 'pk_source', - 'pk_medium', - 'pk_campaign', -] - -export const purify = (url) => { - try { - const pureUrl = new URL(url) - - blacklistKeys.forEach((key) => { - pureUrl.searchParams.delete(key) - }) - - return pureUrl.toString().replace(pureUrl.hash, '') - } catch (err) { - return null - } -} diff --git a/node_modules/@extractus/feed-extractor/src/utils/linker.test.js b/node_modules/@extractus/feed-extractor/src/utils/linker.test.js deleted file mode 100755 index bd247ce3..00000000 --- a/node_modules/@extractus/feed-extractor/src/utils/linker.test.js +++ /dev/null @@ -1,138 +0,0 @@ -// linker.test -/* eslint-env jest */ - -import { isValid, absolutify, purify } from './linker.js' - -describe('test exported methods from `linker`', () => { - const cases = [ - { - url: 'https://www.23hq.com', - expected: true, - }, - { - url: 'https://secure.actblue.com', - expected: true, - }, - { - url: 'https://docs.microsoft.com/en-us/azure/iot-edge/quickstart?view=iotedge-2018-06', - expected: true, - }, - { - url: 'http://192.168.1.199:8081/example/page', - expected: true, - }, - { - url: 'ftp://192.168.1.199:8081/example/page', - expected: false, - }, - { - url: '', - expected: false, - }, - { - url: null, - expected: false, - }, - { - url: { a: 'x' }, - expected: false, - }, - ] - cases.forEach(({ url, expected }) => { - test(`isValid("${url}") must return "${expected}"`, () => { - const result = isValid(url) - expect(result).toEqual(expected) - }) - }) - - const entries = [ - { - full: '', - expected: '', - }, - { - relative: {}, - expected: '', - }, - { - full: 'https://some.where/article/abc-xyz', - relative: 'category/page.html', - expected: 'https://some.where/article/category/page.html', - }, - { - full: 'https://some.where/article/abc-xyz', - relative: '../category/page.html', - expected: 'https://some.where/category/page.html', - }, - { - full: 'https://some.where/blog/authors/article/abc-xyz', - relative: '/category/page.html', - expected: 'https://some.where/category/page.html', - }, - { - full: 'https://some.where/article/abc-xyz', - expected: 'https://some.where/article/abc-xyz', - }, - ] - entries.forEach((entry) => { - const { - full, - relative, - expected, - } = entry - test(`absolutify("${full}", "${relative}") must become "${expected}"`, () => { - const result = absolutify(full, relative) - expect(result).toEqual(expected) - }) - }) - - test('test url purify() with invalid url', () => { - const urls = [ - null, - '', - 123, - {}, - ] - urls.forEach((url) => { - const result = purify(url) - expect(result).toEqual(null) - }) - }) - - test('test url purify() removing regular marketing params', () => { - const entries = [ - { - url: 'https://some.where/article/abc-xyz', - expected: 'https://some.where/article/abc-xyz', - }, - { - url: 'https://some.where/article/abc-xyz#name,bob', - expected: 'https://some.where/article/abc-xyz', - }, - { - url: 'https://some.where/article/abc-xyz?utm_source=news4&utm_medium=email&utm_campaign=spring-summer', - expected: 'https://some.where/article/abc-xyz', - }, - { - url: 'https://some.where/article/abc-xyz?q=3&utm_source=news4&utm_medium=email&utm_campaign=spring-summer', - expected: 'https://some.where/article/abc-xyz?q=3', - }, - { - url: 'https://some.where/article/abc-xyz?pk_source=news4&pk_medium=email&pk_campaign=spring-summer', - expected: 'https://some.where/article/abc-xyz', - }, - { - url: 'https://some.where/article/abc-xyz?q=3&pk_source=news4&pk_medium=email&pk_campaign=spring-summer', - expected: 'https://some.where/article/abc-xyz?q=3', - }, - ] - entries.forEach((entry) => { - const { - url, - expected, - } = entry - const result = purify(url) - expect(result).toEqual(expected) - }) - }) -}) diff --git a/node_modules/@extractus/feed-extractor/src/utils/normalizer.js b/node_modules/@extractus/feed-extractor/src/utils/normalizer.js deleted file mode 100644 index 5a50b159..00000000 --- a/node_modules/@extractus/feed-extractor/src/utils/normalizer.js +++ /dev/null @@ -1,113 +0,0 @@ -// normalizer - -import { - isString, - isObject, - isArray, - hasProperty, - stripTags, - truncate -} from 'bellajs' - -import { decode } from 'html-entities' - -import { absolutify, isValid as isValidUrl, purify as purifyUrl } from './linker.js' - -export const toISODateString = (dstr) => { - try { - return dstr ? (new Date(dstr)).toISOString() : '' - } catch (err) { - return '' - } -} - -export const buildDescription = (val, maxlen = 0) => { - const stripped = stripTags(String(val).trim().replace(/^$/g, '')) - const text = maxlen > 0 ? truncate(stripped, maxlen) : stripped - return text.replace(/\n+/g, ' ') -} - -export const getText = (val) => { - const txt = isObject(val) ? (val._text || val['#text'] || val._cdata || val.$t) : val - return txt ? decode(String(txt).trim()) : '' -} - -export const getLink = (val = [], id = '') => { - if (isObject(id) && hasProperty(id, '@_isPermaLink') && id['@_isPermaLink'] === 'true') { - return getText(id) - } - const getEntryLink = (links) => { - const items = links.map((item) => { - return getLink(item) - }) - return items.length > 0 ? items[0] : '' - } - const url = isString(val) - ? getText(val) - : isObject(val) && hasProperty(val, 'href') - ? getText(val.href) - : isObject(val) && hasProperty(val, '@_href') - ? getText(val['@_href']) - : isObject(val) && hasProperty(val, '@_url') - ? getText(val['@_url']) - : isObject(val) && hasProperty(val, '_attributes') - ? getText(val._attributes.href) - : isArray(val) ? getEntryLink(val) : '' - - return url ? url : isValidUrl(id) ? id : '' -} - -export const getPureUrl = (url, id = '', baseUrl) => { - const link = getLink(url, id) - const pu = purifyUrl(link) - - return link - ? pu - ? pu - : absolutify(baseUrl, link) - : '' -} - -const hash = (str) => Math.abs(str.split('').reduce((s, c) => Math.imul(31, s) + c.charCodeAt(0) | 0, 0)).toString(36) - -export const getEntryId = (id, url, pubDate) => { - return id ? getText(id) : hash(getPureUrl(url)) + '-' + (new Date(pubDate)).getTime() -} - -export const getEnclosure = (val) => { - const url = hasProperty(val, '@_url') ? val['@_url'] : '' - const type = hasProperty(val, '@_type') ? val['@_type'] : '' - const length = Number(hasProperty(val, '@_length') ? val['@_length'] : 0) - return !url || !type - ? null - : { - url, - type, - length, - } -} - -const getCategory = (v) => { - return isObject(v) - ? { - text: getText(v), - domain: v['@_domain'], - } - : v -} - -export const getOptionalTags = (val, key) => { - if (key === 'source') { - return { - text: getText(val), - url: getLink(val), - } - } - if (key === 'category') { - return isArray(val) ? val.map(getCategory) : getCategory(val) - } - if (key === 'enclosure') { - return getEnclosure(val) - } - return val -} diff --git a/node_modules/@extractus/feed-extractor/src/utils/normalizer.test.js b/node_modules/@extractus/feed-extractor/src/utils/normalizer.test.js deleted file mode 100644 index bf5529e5..00000000 --- a/node_modules/@extractus/feed-extractor/src/utils/normalizer.test.js +++ /dev/null @@ -1,13 +0,0 @@ -// normalizer.test -/* eslint-env jest */ - -import { toISODateString } from './normalizer.js' - -describe('test `normalizer` methods', () => { - test('test toISODateString()', () => { - expect(toISODateString('Thu, 28 Jul 2022 08:59:58 GMT')).toEqual('2022-07-28T08:59:58.000Z') - expect(toISODateString('2022-07-28T02:43:00.000000000Z')).toEqual('2022-07-28T02:43:00.000Z') - expect(toISODateString('')).toEqual('') - expect(toISODateString('Thi, 280 Jul 2022 108:79:68 XMT')).toEqual('') - }) -}) diff --git a/node_modules/@extractus/feed-extractor/src/utils/parseAtomFeed.js b/node_modules/@extractus/feed-extractor/src/utils/parseAtomFeed.js deleted file mode 100644 index b74147db..00000000 --- a/node_modules/@extractus/feed-extractor/src/utils/parseAtomFeed.js +++ /dev/null @@ -1,140 +0,0 @@ -// parseAtomFeed.js - -// specs: https://datatracker.ietf.org/doc/html/rfc5023 -// refer: https://validator.w3.org/feed/docs/atom.html - -import { isArray, hasProperty } from 'bellajs' - -import { - getText, - toISODateString, - buildDescription, - getPureUrl, - getEntryId -} from './normalizer.js' - -const transform = (item, options) => { - const { - useISODateFormat, - descriptionMaxLen, - baseUrl, - getExtraEntryFields, - } = options - - const { - id = '', - title = '', - issued = '', - modified = '', - updated = '', - published = '', - link = '', - summary = '', - content = '', - } = item - - const pubDate = updated || modified || published || issued - const htmlContent = getText(summary || content) - const entry = { - id: getEntryId(id, link, pubDate), - title: getText(title), - link: getPureUrl(link, id, baseUrl), - published: useISODateFormat ? toISODateString(pubDate) : pubDate, - description: buildDescription(htmlContent, descriptionMaxLen), - } - - const extraFields = getExtraEntryFields(item) - - return { - ...entry, - ...extraFields, - } -} - -const flatten = (feed, baseUrl) => { - const { - id, - title = '', - link = '', - entry, - } = feed - - const entries = isArray(entry) ? entry : [entry] - const items = entries.map((entry) => { - const { - id, - title = '', - link = '', - summary = '', - content = '', - } = entry - const item = { - ...entry, - title: getText(title), - link: getPureUrl(link, id, baseUrl), - } - if (hasProperty(item, 'summary')) { - item.summary = getText(summary) - } - if (hasProperty(item, 'content')) { - item.content = getText(content) - } - return item - }) - - const output = { - ...feed, - title: getText(title), - link: getPureUrl(link, id, baseUrl), - entry: isArray(entry) ? items : items[0], - } - return output -} - -const parseAtom = (data, options = {}) => { - const { - normalization, - baseUrl, - getExtraFeedFields, - } = options - - const feedData = data.feed - - if (!normalization) { - return flatten(feedData, baseUrl) - } - - const { - id = '', - title = '', - link = '', - subtitle = '', - generator = '', - language = '', - updated = '', - entry: item = [], - } = feedData - - const extraFields = getExtraFeedFields(feedData) - - const items = isArray(item) ? item : [item] - - const published = options.useISODateFormat ? toISODateString(updated) : updated - - return { - title: getText(title), - link: getPureUrl(link, id, baseUrl), - description: subtitle, - language, - generator, - published, - ...extraFields, - entries: items.map((item) => { - return transform(item, options) - }), - } -} - -export default (data, options = {}) => { - return parseAtom(data, options) -} diff --git a/node_modules/@extractus/feed-extractor/src/utils/parseJsonFeed.js b/node_modules/@extractus/feed-extractor/src/utils/parseJsonFeed.js deleted file mode 100644 index d112cba7..00000000 --- a/node_modules/@extractus/feed-extractor/src/utils/parseJsonFeed.js +++ /dev/null @@ -1,89 +0,0 @@ -// parseJsonFeed.js - -// specs: https://www.jsonfeed.org/version/1.1/ - -import { isArray } from 'bellajs' - -import { - toISODateString, - buildDescription, - getEntryId -} from './normalizer.js' - -import { absolutify, purify as purifyUrl } from './linker.js' - -const transform = (item, options) => { - const { - useISODateFormat, - descriptionMaxLen, - baseUrl, - getExtraEntryFields, - } = options - - const { - id = '', - title = '', - url: link = '', - date_published: pubDate = '', - summary = '', - content_html: htmlContent = '', - content_text: textContent = '', - } = item - - const published = useISODateFormat ? toISODateString(pubDate) : pubDate - const extraFields = getExtraEntryFields(item) - - const entry = { - id: getEntryId(id, link, pubDate), - title, - link: purifyUrl(link) || absolutify(baseUrl, link), - published, - description: buildDescription(textContent || htmlContent || summary, descriptionMaxLen), - } - - return { - ...entry, - ...extraFields, - } -} - -const parseJson = (data, options) => { - const { - normalization, - baseUrl, - getExtraFeedFields, - } = options - - if (!normalization) { - return data - } - - const { - title = '', - home_page_url: homepageUrl = '', - description = '', - language = '', - items: item = [], - } = data - - const extraFields = getExtraFeedFields(data) - - const items = isArray(item) ? item : [item] - - return { - title, - link: purifyUrl(homepageUrl) || absolutify(baseUrl, homepageUrl), - description, - language, - published: '', - generator: '', - ...extraFields, - entries: items.map((item) => { - return transform(item, options) - }), - } -} - -export default (data, options = {}) => { - return parseJson(data, options) -} diff --git a/node_modules/@extractus/feed-extractor/src/utils/parseRdfFeed.js b/node_modules/@extractus/feed-extractor/src/utils/parseRdfFeed.js deleted file mode 100644 index bc9e8830..00000000 --- a/node_modules/@extractus/feed-extractor/src/utils/parseRdfFeed.js +++ /dev/null @@ -1,129 +0,0 @@ -// parseRssFeed.js - -// specs: https://www.rssboard.org/rss-specification - -import { isArray } from 'bellajs' - -import { - getText, - toISODateString, - buildDescription, - getPureUrl, - getEntryId -} from './normalizer.js' - -const transform = (item, options) => { - const { - useISODateFormat, - descriptionMaxLen, - baseUrl, - getExtraEntryFields, - } = options - - const { - guid = '', - title = '', - link = '', - 'dc:date': pubDate = '', - description = '', - 'content:encoded': content = '', - } = item - - const published = useISODateFormat ? toISODateString(pubDate) : pubDate - const htmlContent = getText(description || content) - const entry = { - id: getEntryId(guid, link, pubDate), - title: getText(title), - link: getPureUrl(link, guid, baseUrl), - published, - description: buildDescription(htmlContent, descriptionMaxLen), - } - - const extraFields = getExtraEntryFields(item) - - return { - ...entry, - ...extraFields, - } -} - -const flatten = (feed, baseUrl) => { - const { - title = '', - link = '', - item, - } = feed - - const items = isArray(item) ? item : [item] - const entries = items.map((entry) => { - const { - id, - title = '', - link = '', - } = entry - - const item = { - ...entry, - title: getText(title), - link: getPureUrl(link, id, baseUrl), - } - - return item - }) - - const output = { - ...feed, - title: getText(title), - link: getPureUrl(link, baseUrl), - item: isArray(item) ? entries : entries[0], - } - return output -} - -const parseRdf = (data, options = {}) => { - const { - normalization, - baseUrl, - getExtraFeedFields, - } = options - - const feedData = data['rdf:RDF'] - - if (!normalization) { - return flatten(feedData, baseUrl) - } - - const { - title = '', - link = '', - description = '', - generator = '', - 'dc:language': language = '', - 'dc:date': lastBuildDate = '', - } = feedData.channel - - const { item } = feedData - - const extraFields = getExtraFeedFields(feedData) - - const items = isArray(item) ? item : [item] - - const published = options.useISODateFormat ? toISODateString(lastBuildDate) : lastBuildDate - - return { - title: getText(title), - link: getPureUrl(link, '', baseUrl), - description, - language, - generator, - published, - ...extraFields, - entries: items.map((item) => { - return transform(item, options) - }), - } -} - -export default (data, options = {}) => { - return parseRdf(data, options) -} diff --git a/node_modules/@extractus/feed-extractor/src/utils/parseRssFeed.js b/node_modules/@extractus/feed-extractor/src/utils/parseRssFeed.js deleted file mode 100644 index c1af7538..00000000 --- a/node_modules/@extractus/feed-extractor/src/utils/parseRssFeed.js +++ /dev/null @@ -1,144 +0,0 @@ -// parseRssFeed.js - -// specs: https://www.rssboard.org/rss-specification - -import { isArray, hasProperty } from 'bellajs' - -import { - getText, - toISODateString, - buildDescription, - getPureUrl, - getOptionalTags, - getEntryId -} from './normalizer.js' - -const transform = (item, options) => { - const { - useISODateFormat, - descriptionMaxLen, - baseUrl, - getExtraEntryFields, - } = options - - const { - guid = '', - title = '', - link = '', - pubDate = '', - description = '', - 'content:encoded': content = '', - } = item - - const published = useISODateFormat ? toISODateString(pubDate) : pubDate - const htmlContent = getText(description || content) - const entry = { - id: getEntryId(guid, link, pubDate), - title: getText(title), - link: getPureUrl(link, guid, baseUrl), - published, - description: buildDescription(htmlContent, descriptionMaxLen), - } - - const extraFields = getExtraEntryFields(item) - - return { - ...entry, - ...extraFields, - } -} - -const flatten = (feed, baseUrl) => { - const { - title = '', - link = '', - item, - } = feed - - const items = isArray(item) ? item : [item] - const entries = items.map((entry) => { - const { - id, - title = '', - link = '', - } = entry - - const item = { - ...entry, - title: getText(title), - link: getPureUrl(link, id, baseUrl), - } - - const txtTags = 'guid description source'.split(' ') - - txtTags.forEach((key) => { - if (hasProperty(entry, key)) { - item[key] = getText(entry[key]) - } - }) - - const optionalProps = 'source category enclosure author image'.split(' ') - optionalProps.forEach((key) => { - if (hasProperty(item, key)) { - entry[key] = getOptionalTags(item[key], key) - } - }) - - return item - }) - - const output = { - ...feed, - title: getText(title), - link: getPureUrl(link, baseUrl), - item: isArray(item) ? entries : entries[0], - } - return output -} - -const parseRss = (data, options = {}) => { - const { - normalization, - baseUrl, - getExtraFeedFields, - } = options - - const feedData = data.rss.channel - - if (!normalization) { - return flatten(feedData, baseUrl) - } - - const { - title = '', - link = '', - description = '', - generator = '', - language = '', - lastBuildDate = '', - item = [], - } = feedData - - const extraFields = getExtraFeedFields(feedData) - - const items = isArray(item) ? item : [item] - - const published = options.useISODateFormat ? toISODateString(lastBuildDate) : lastBuildDate - - return { - title: getText(title), - link: getPureUrl(link, '', baseUrl), - description, - language, - generator, - published, - ...extraFields, - entries: items.map((item) => { - return transform(item, options) - }), - } -} - -export default (data, options = {}) => { - return parseRss(data, options) -} diff --git a/node_modules/@extractus/feed-extractor/src/utils/retrieve.js b/node_modules/@extractus/feed-extractor/src/utils/retrieve.js deleted file mode 100755 index c4db1b3c..00000000 --- a/node_modules/@extractus/feed-extractor/src/utils/retrieve.js +++ /dev/null @@ -1,50 +0,0 @@ -// utils -> retrieve - -import fetch from 'cross-fetch' - -const profetch = async (url, options = {}) => { - const { proxy = {}, signal = null } = options - const { - target, - headers = {}, - } = proxy - const res = await fetch(target + encodeURIComponent(url), { - headers, - signal, - }) - return res -} - -export default async (url, options = {}) => { - const { - headers = { - 'user-agent': 'Mozilla/5.0 (X11; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/115.0', - }, - proxy = null, - agent = null, - signal = null, - } = options - - const res = proxy ? await profetch(url, { proxy, signal }) : await fetch(url, { headers, agent, signal }) - - const status = res.status - if (status >= 400) { - throw new Error(`Request failed with error code ${status}`) - } - const contentType = res.headers.get('content-type') - const text = await res.text() - - if (/(\+|\/)(xml|html)/.test(contentType)) { - return { type: 'xml', text: text.trim(), status, contentType } - } - - if (/(\+|\/)json/.test(contentType)) { - try { - const data = JSON.parse(text) - return { type: 'json', json: data, status, contentType } - } catch (err) { - throw new Error('Failed to convert data to JSON object') - } - } - throw new Error(`Invalid content type: ${contentType}`) -} diff --git a/node_modules/@extractus/feed-extractor/src/utils/retrieve.test.js b/node_modules/@extractus/feed-extractor/src/utils/retrieve.test.js deleted file mode 100755 index e1791304..00000000 --- a/node_modules/@extractus/feed-extractor/src/utils/retrieve.test.js +++ /dev/null @@ -1,76 +0,0 @@ -// retrieve.test -/* eslint-env jest */ - -import nock from 'nock' - -import retrieve from './retrieve.js' - -const parseUrl = (url) => { - const re = new URL(url) - return { - baseUrl: `${re.protocol}//${re.host}`, - path: re.pathname, - } -} - -describe('test retrieve() method', () => { - test('test retrieve with bad status code', async () => { - const url = 'https://some.where/bad/page' - const { baseUrl, path } = parseUrl(url) - nock(baseUrl).get(path).reply(500, 'Error 500') - expect(retrieve(url)).rejects.toThrow(new Error('Request failed with error code 500')) - }) - - test('test retrieve with bad conten type', async () => { - const url = 'https://some.where/bad/page' - const { baseUrl, path } = parseUrl(url) - nock(baseUrl).get(path).reply(200, 'this is xml', { - 'Content-Type': 'something/type', - }) - expect(retrieve(url)).rejects.toThrow(new Error('Invalid content type: something/type')) - }) - - test('test retrieve from good source', async () => { - const url = 'https://some.where/good/page' - const { baseUrl, path } = parseUrl(url) - nock(baseUrl).get(path).reply(200, '
this is content
', { - 'Content-Type': 'application/rss+xml', - }) - const result = await retrieve(url) - expect(result.type).toEqual('xml') - expect(result.text).toEqual('
this is content
') - }) - - test('test retrieve from good source, but having \\r\\n before/after root xml', async () => { - const url = 'https://some.where/good/page' - const { baseUrl, path } = parseUrl(url) - nock(baseUrl).get(path).reply(200, '\n\r\r\n\n
this is content
\n\r\r\n\n', { - 'Content-Type': 'text/xml', - }) - const result = await retrieve(url) - expect(result.type).toEqual('xml') - expect(result.text).toBe('
this is content
') - }) - - test('test retrieve using proxy', async () => { - const url = 'https://some.where/good/source-with-proxy' - const { baseUrl, path } = parseUrl(url) - nock(baseUrl).get(path).reply(200, 'something bad', { - 'Content-Type': 'bad/thing', - }) - nock('https://proxy-server.com') - .get('/api/proxy?url=https%3A%2F%2Fsome.where%2Fgood%2Fsource-with-proxy') - .reply(200, 'this is xml', { - 'Content-Type': 'text/xml', - }) - - const result = await retrieve(url, { - proxy: { - target: 'https://proxy-server.com/api/proxy?url=', - }, - }) - expect(result.type).toEqual('xml') - expect(result.text).toEqual('this is xml') - nock.cleanAll() - }) -}) diff --git a/node_modules/@extractus/feed-extractor/src/utils/xmlparser.js b/node_modules/@extractus/feed-extractor/src/utils/xmlparser.js deleted file mode 100755 index bd5a82a4..00000000 --- a/node_modules/@extractus/feed-extractor/src/utils/xmlparser.js +++ /dev/null @@ -1,32 +0,0 @@ -// utils / xmlparser - -import { hasProperty, isString } from 'bellajs' - -import { XMLValidator, XMLParser } from 'fast-xml-parser' - -export const isRSS = (data = {}) => { - return hasProperty(data, 'rss') && hasProperty(data.rss, 'channel') -} - -export const isAtom = (data = {}) => { - return hasProperty(data, 'feed') && hasProperty(data.feed, 'entry') -} - -export const isRdf = (data = {}) => { - return hasProperty(data, 'rdf:RDF') && hasProperty(data['rdf:RDF'], 'channel') -} - -export const validate = (xml) => { - return (!isString(xml) || !xml.length) ? false : XMLValidator.validate(xml) === true -} - -export const xml2obj = (xml = '', extraOptions = {}) => { - const options = { - attributeNamePrefix: '@_', - ignoreAttributes: false, - ...extraOptions, - } - const parser = new XMLParser(options) - const jsonObj = parser.parse(xml) - return jsonObj -} diff --git a/node_modules/@extractus/feed-extractor/src/utils/xmlparser.test.js b/node_modules/@extractus/feed-extractor/src/utils/xmlparser.test.js deleted file mode 100755 index e3aad84c..00000000 --- a/node_modules/@extractus/feed-extractor/src/utils/xmlparser.test.js +++ /dev/null @@ -1,41 +0,0 @@ -// xmlparser.test -/* eslint-env jest */ - -import { readFileSync } from 'fs' - -import { validate, isRSS, isAtom, xml2obj } from './xmlparser.js' - -describe('test methods from `xmlparser`', () => { - test('test validate(well format xml)', async () => { - const xmlData = 'value' - const result = validate(xmlData) - expect(result).toBe(true) - }) - - test('test validate(bad format xml)', async () => { - const xmlData = 'value' - const result = validate(xmlData) - expect(result).toBe(false) - }) - - test('test validate(standard rss content)', async () => { - const xml = readFileSync('test-data/rss-feed-standard.xml', 'utf8') - const xmlData = xml2obj(xml) - expect(isRSS(xmlData)).toBe(true) - expect(isAtom(xmlData)).toBe(false) - }) - - test('test validate(standard atom content)', async () => { - const xml = readFileSync('test-data/atom-feed-standard.xml', 'utf8') - const xmlData = xml2obj(xml) - expect(isAtom(xmlData)).toBe(true) - expect(isRSS(xmlData)).toBe(false) - }) - - test('test xml2obj(well format xml)', async () => { - const xmlData = 'value' - const result = xml2obj(xmlData) - expect(result).toBeInstanceOf(Object) - expect(result.xml).toBeInstanceOf(Object) - }) -}) diff --git a/node_modules/@noble/ciphers/LICENSE b/node_modules/@noble/ciphers/LICENSE deleted file mode 100644 index 5a53d5f1..00000000 --- a/node_modules/@noble/ciphers/LICENSE +++ /dev/null @@ -1,22 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2022 Paul Miller (https://paulmillr.com) -Copyright (c) 2016 Thomas Pornin - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the “Software”), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. \ No newline at end of file diff --git a/node_modules/@noble/ciphers/README.md b/node_modules/@noble/ciphers/README.md deleted file mode 100644 index 0a7abdb7..00000000 --- a/node_modules/@noble/ciphers/README.md +++ /dev/null @@ -1,424 +0,0 @@ -# noble-ciphers - -Auditable & minimal JS implementation of Salsa20, ChaCha, Poly1305 & AES-SIV - -- 🔒 Auditable -- 🔻 Tree-shaking-friendly: use only what's necessary, other code won't be included -- 🏎 [Ultra-fast](#speed), hand-optimized for caveats of JS engines -- 🔍 Unique tests ensure correctness: property-based, cross-library and Wycheproof vectors -- 💼 AES: GCM (Galois Counter Mode), SIV (Nonce Misuse-Resistant encryption) -- 💃 Salsa20, ChaCha, XSalsa20, XChaCha, Poly1305, ChaCha8, ChaCha12 -- ✍️ FF1 format-preserving encryption -- 🧂 Compatible with NaCl / libsodium secretbox -- 🪶 Just 500 lines / 4KB gzipped for Salsa + ChaCha + Poly build - -### This library belongs to _noble_ crypto - -> **noble-crypto** — high-security, easily auditable set of contained cryptographic libraries and tools. - -- No dependencies, protection against supply chain attacks -- Auditable TypeScript / JS code -- Supported on all major platforms -- Releases are signed with PGP keys and built transparently with NPM provenance -- Check out [homepage](https://paulmillr.com/noble/) & all libraries: - [ciphers](https://github.com/paulmillr/noble-ciphers), - [curves](https://github.com/paulmillr/noble-curves), - [hashes](https://github.com/paulmillr/noble-hashes), - 4kb [secp256k1](https://github.com/paulmillr/noble-secp256k1) / - [ed25519](https://github.com/paulmillr/noble-ed25519) - -## Usage - -> npm install @noble/ciphers - -We support all major platforms and runtimes. -For [Deno](https://deno.land), ensure to use -[npm specifier](https://deno.land/manual@v1.28.0/node/npm_specifiers). -For React Native, you may need a -[polyfill for crypto.getRandomValues](https://github.com/LinusU/react-native-get-random-values). -If you don't like NPM, a standalone -[noble-ciphers.js](https://github.com/paulmillr/noble-ciphers/releases) is also available. - -```js -// import * from '@noble/ciphers'; // Error: use sub-imports, to ensure small app size -// Simple API: uses xchacha20poly1305 with random nonce. Abstracts complexity away. -import { encrypt, decrypt, utf8ToBytes, randomKey } from '@noble/ciphers/simple'; -const key = randomKey(); -const plaintext = utf8ToBytes('hello'); // Library works over Uint8Array-s -const ciphertext = encrypt(key, plaintext); -const plaintext_ = decrypt(key, ciphertext); - -// Simple AES API: uses aes_256_gcm with random nonce. -import { aes_encrypt, aes_decrypt } from '@noble/ciphers/simple'; -const a_key = randomKey(); -const a_ciphertext = await aes_encrypt(a_key, plaintext); -const a_plaintext = await aes_decrypt(a_key, a_ciphertext); -``` - -For specific APIs, see [salsa](#salsa), [chacha](#chacha) and [aes](#aes) -sections below. All available imports: - -```js -// AEADs -import { xsalsa20poly1305 } from '@noble/ciphers/salsa'; // aka sodium secretbox -import { chacha20poly1305, xchacha20poly1305 } from '@noble/ciphers/chacha'; -// Pure ciphers -import { salsa20, xsalsa20 } from '@noble/ciphers/salsa'; -import { chacha20, xchacha20, chacha8, chacha12 } from '@noble/ciphers/chacha'; -// AES webcrypto shortcuts -import { - aes_128_gcm, aes_128_ctr, aes_128_cbc, aes_256_gcm, aes_256_ctr, aes_256_cbc -} from '@noble/ciphers/webcrypto/aes'; -import { aes_256_gcm_siv } from '@noble/ciphers/webcrypto/siv'; // AES-GCM-SIV -import { FF1, BinaryFF1 } from '@noble/ciphers/webcrypto/ff1'; // FF1 -import { randomBytes } from '@noble/ciphers/webcrypto/utils'; -import { bytesToHex, hexToBytes, bytesToUtf8, utf8ToBytes, concatBytes } from '@noble/ciphers/utils'; -import * as c from '@noble/ciphers/_micro'; // Everything, written in minimal, auditable way -``` - -### How to encrypt properly - -1. Use unpredictable key with enough entropy - - Random key must be using cryptographically secure random number generator (CSPRNG), not `Math.random` etc. - - Non-random key generated from KDF is fine - - Re-using key is fine, but be aware of rules for cryptographic key wear-out and [encryption limits](#encryption-limits) -2. Use new nonce every time and [don't repeat it](#nonces) - - `simple` module manages nonces for you - - chacha and salsa20 are fine for sequential counters that *never* repeat: `01, 02...` - - xchacha and xsalsa20 should be used for random nonces instead -3. Prefer authenticated encryption (AEAD) - - chacha20poly1305 is good, chacha20 without poly1305 is bad - - aes-gcm is good, aes-ctr / aes-cbc is bad - - Flipping bits or even ciphertext substitution won't be detected in - unauthenticated ciphers -4. Don't re-use keys between different protocols - - For example, using secp256k1 key in AES is bad - - Use hkdf or, at least, a hash function to create sub-key instead - -### Salsa - -```js -import { xsalsa20poly1305 } from '@noble/ciphers/salsa'; -import { utf8ToBytes } from '@noble/ciphers/utils'; -import { randomBytes } from '@noble/ciphers/webcrypto/utils'; - -const key = randomBytes(32); -const data = utf8ToBytes('hello, noble'); // strings must be converted to Uint8Array - -const nonce = randomBytes(24); -const stream_x = xsalsa20poly1305(key, nonce); // === secretbox(key, nonce) -const ciphertext = stream_x.encrypt(data); // === secretbox.seal(data) -const plaintext = stream_x.decrypt(ciphertext); // === secretbox.open(ciphertext) - -// Avoid memory allocations: re-use same uint8array -stream_x.decrypt(ciphertext, ciphertext.subarray(-16)); -// ciphertext is now plaintext - -// We provide sodium secretbox alias, which is just xsalsa20poly1305 -import { secretbox } from '@noble/ciphers/simple'; -const box = secretbox(key, nonce); -const ciphertext = box.seal(plaintext); -const plaintext = box.open(ciphertext); - -// Standalone salsa is also available -import { salsa20, xsalsa20 } from '@noble/ciphers/salsa'; -const nonce12 = randomBytes(12); // salsa uses 96-bit nonce, xsalsa uses 192-bit -const encrypted_s = salsa20(key, nonce12, data); -const encrypted_xs = xsalsa20(key, nonce, data); -``` - -Salsa20 stream cipher ([website](https://cr.yp.to/snuffle.html), -[PDF](https://cr.yp.to/snuffle/salsafamily-20071225.pdf), -[wiki](https://en.wikipedia.org/wiki/Salsa20)) was released in 2005. -Salsa's goal was to implement AES replacement that does not rely on S-Boxes, -which are hard to implement in a constant-time manner. -Salsa20 is usually faster than AES, a big deal on slow, budget mobile phones. - -[XSalsa20](https://cr.yp.to/snuffle/xsalsa-20110204.pdf), extended-nonce -variant was released in 2008. It switched nonces from 96-bit to 192-bit, -and became safe to be picked at random. - -Nacl / Libsodium popularized term "secretbox", a simple black-box -authenticated encryption. Secretbox is just xsalsa20-poly1305. We provide the -alias and corresponding seal / open methods. - -### ChaCha - -```js -import { chacha20poly1305, xchacha20poly1305 } from '@noble/ciphers/chacha'; -import { utf8ToBytes } from '@noble/ciphers/utils'; -import { randomBytes } from '@noble/ciphers/webcrypto/utils'; - -const key = randomBytes(32); -const data = utf8ToBytes('hello, noble'); // strings must be converted to Uint8Array - -const nonce12 = randomBytes(12); // chacha uses 96-bit nonce -const stream_c = chacha20poly1305(key, nonce12); -const ciphertext_c = stream_c.encrypt(data); -const plaintext_c = stream_c.decrypt(ciphertext_c); // === data - -// Avoid memory allocations: re-use same uint8array -stream_c.decrypt(ciphertext_c, ciphertext_c.subarray(-16)); -// ciphertext_c is now plaintext_c - -const nonce24 = randomBytes(24); // xchacha uses 192-bit nonce -const stream_xc = xchacha20poly1305(key, nonce24); -const ciphertext_xc = stream_xc.encrypt(data); -const plaintext_xc = stream_xc.decrypt(ciphertext_xc); // === data - -// Standalone chacha is also available -import { chacha20, xchacha20, chacha8, chacha12 } from '@noble/ciphers/chacha'; -const ciphertext_pc = chacha20(key, nonce12, data); -const ciphertext_pxc = xchacha20(key, nonce24, data); -const ciphertext_8 = chacha8(key, nonce12, data); -const ciphertext_12 = chacha12(key, nonce12, data); -``` - -ChaCha20 stream cipher ([website](https://cr.yp.to/chacha.html), -[PDF](http://cr.yp.to/chacha/chacha-20080128.pdf), -[wiki](https://en.wikipedia.org/wiki/Salsa20), -[blog post](https://loup-vaillant.fr/tutorials/chacha20-design)) was released -in 2008. ChaCha aims to increase the diffusion per round, but had slightly less -cryptanalysis. It was standardized in -[RFC 8439](https://datatracker.ietf.org/doc/html/rfc8439) and is now used in TLS 1.3. - -XChaCha20 ([draft RFC](https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-xchacha)) -extended-nonce variant is also provided. Similar to XSalsa, it's safe to use with -randomly-generated nonces. - -### Poly1305 - -Poly1305 ([website](https://cr.yp.to/mac.html), -[PDF](https://cr.yp.to/mac/poly1305-20050329.pdf), -[wiki](https://en.wikipedia.org/wiki/Poly1305), -[blog post](https://loup-vaillant.fr/tutorials/poly1305-design)) -is a fast and parallel secret-key message-authentication code suitable for -a wide variety of applications. It was standardized in -[RFC 8439](https://datatracker.ietf.org/doc/html/rfc8439) and is now used in TLS 1.3. - -Poly1305 is polynomial-evaluation MAC, which is not perfect for every situation: -just like GCM, it lacks Random Key Robustness: the tags can be forged, and can't -be used in PAKE schemes. See -[invisible salamanders attack](https://keymaterial.net/2020/09/07/invisible-salamanders-in-aes-gcm-siv/). -To combat invisible salamanders, `hash(key)` can be included in ciphertext, -however, this would violate ciphertext indistinguishability: -an attacker would know which key was used - so `HKDF(key, i)` -could be used instead. - -Even though poly1305 can be imported separately from the library, we suggest -using chacha-poly or xsalsa-poly. - -### AES - -```js -import { - aes_128_gcm, aes_128_ctr, aes_128_cbc, - aes_256_gcm, aes_256_ctr, aes_256_cbc -} from '@noble/ciphers/webcrypto/aes'; - -for (let cipher of [aes_256_gcm, aes_256_ctr, aes_256_cbc]) { - const stream_new = cipher(key, nonce); - const ciphertext_new = await stream_new.encrypt(plaintext); - const plaintext_new = await stream_new.decrypt(ciphertext); -} - -import { aes_256_gcm_siv } from '@noble/ciphers/webcrypto/siv'; -const stream_siv = aes_256_gcm_siv(key, nonce) -await stream_siv.encrypt(plaintext, AAD); -``` - -AES ([wiki](https://en.wikipedia.org/wiki/Advanced_Encryption_Standard)) -is a variant of Rijndael block cipher, standardized by NIST. - -We don't implement AES in pure JS for now: instead, we wrap WebCrypto built-in -and provide an improved, simple API. There is a simple reason for this: -webcrypto API is terrible: different block modes require different params. - -Optional [AES-GCM-SIV](https://en.wikipedia.org/wiki/AES-GCM-SIV) -(synthetic initialization vector) nonce-misuse-resistant mode is also provided. - -##### How AES works - -`cipher = encrypt(block, key)`. Data is split into 128-bit blocks. Encrypted in 10/12/14 rounds (128/192/256bit). Every round does: - -1. **S-box**, table substitution -2. **Shift rows**, cyclic shift left of all rows of data array -3. **Mix columns**, multiplying every column by fixed polynomial -4. **Add round key**, round_key xor i-th column of array - -For non-deterministic (not ECB) schemes, initialization vector (IV) is mixed to block/key; -and each new round either depends on previous block's key, or on some counter. - -##### Block modes - -We only expose GCM & SIV for now. - -- ECB — simple deterministic replacement. Dangerous: always map x to y. See [AES Penguin](https://words.filippo.io/the-ecb-penguin/) -- CBC — key is previous round’s block. Hard to use: need proper padding, also needs MAC -- CTR — counter, allows to create streaming cipher. Requires good IV. Parallelizable. OK, but no MAC -- GCM — modern CTR, parallel, with MAC. Not ideal: - - Conservative key wear-out is `2**32` (4B) msgs - - MAC can be forged: see Poly1305 section above -- SIV — synthetic initialization vector, nonce-misuse-resistant - - Can be 1.5-2x slower than GCM by itself - - nonce misuse-resistant schemes guarantee that if a - nonce repeats, then the only security loss is that identical - plaintexts will produce identical ciphertexts - - MAC can be forged: see Poly1305 section above -- XTS — used in hard drives. Similar to ECB (deterministic), but has `[i][j]` - tweak arguments corresponding to sector i and 16-byte block (part of sector) j. Not authenticated! - -### FF1 - -Format-preserving encryption algorithm (FPE-FF1) specified in NIST Special Publication 800-38G. - -More info: https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-38G.pdf - -## Security - -The library is experimental. Use at your own risk. - -### Nonces - -Most ciphers need a key and a nonce (aka initialization vector / IV) to encrypt a data: - - ciphertext = encrypt(plaintext, key, nonce) - -Repeating (key, nonce) pair with different plaintexts would allow an attacker to decrypt it: - - ciphertext_a = encrypt(plaintext_a, key, nonce) - ciphertext_b = encrypt(plaintext_b, key, nonce) - stream_diff = xor(ciphertext_a, ciphertext_b) # Break encryption - -So, you can't repeat nonces. One way of doing so is using counters: - - for i in 0..: - ciphertext[i] = encrypt(plaintexts[i], key, i) - -Another is generating random nonce every time: - - for i in 0..: - rand_nonces[i] = random() - ciphertext[i] = encrypt(plaintexts[i], key, rand_nonces[i]) - -Counters are OK, but it's not always possible to store current counter value: -e.g. in decentralized, unsyncable systems. - -Randomness is OK, but there's a catch: -ChaCha20 and AES-GCM use 96-bit / 12-byte nonces, which implies -higher chance of collision. In the example above, -`random()` can collide and produce repeating nonce. - -To safely use random nonces, utilize XSalsa20 or XChaCha: -they increased nonce length to 192-bit, minimizing a chance of collision. -AES-SIV is also fine. In situations where you can't use eXtended-nonce -algorithms, key rotation is advised. hkdf would work great for this case. - -### Encryption limits - -A "protected message" would mean a probability of `2**-50` that a passive attacker -successfully distinguishes the ciphertext outputs of the AEAD scheme from the outputs -of a random function. See [RFC draft](https://datatracker.ietf.org/doc/draft-irtf-cfrg-aead-limits/) for details. - -- Max message size: - - AES-GCM: ~68GB, `2**36-256` - - Salsa, ChaCha, XSalsa, XChaCha: ~256GB, `2**38-64` -- Max amount of protected messages, under same key: - - AES-GCM: `2**32.5` - - Salsa, ChaCha: `2**46`, but only integrity is affected, not confidentiality - - XSalsa, XChaCha: `2**72` -- Max amount of protected messages, across all keys: - - AES-GCM: `2**69/B` where B is max blocks encrypted by a key. Meaning - `2**59` for 1KB, `2**49` for 1MB, `2**39` for 1GB - - Salsa, ChaCha, XSalsa, XChaCha: `2**100` - -## Speed - -To summarize, noble is the fastest JS implementation. - -You can gain additional speed-up and -avoid memory allocations by passing `output` -uint8array into encrypt / decrypt methods. - -Benchmark results on Apple M2 with node v20: - -``` -encrypt (64B) -├─xsalsa20poly1305 x 484,966 ops/sec @ 2μs/op -├─chacha20poly1305 x 442,282 ops/sec @ 2μs/op -└─xchacha20poly1305 x 300,842 ops/sec @ 3μs/op -encrypt (1KB) -├─xsalsa20poly1305 x 143,905 ops/sec @ 6μs/op -├─chacha20poly1305 x 141,663 ops/sec @ 7μs/op -└─xchacha20poly1305 x 122,639 ops/sec @ 8μs/op -encrypt (8KB) -├─xsalsa20poly1305 x 23,373 ops/sec @ 42μs/op -├─chacha20poly1305 x 23,683 ops/sec @ 42μs/op -└─xchacha20poly1305 x 23,066 ops/sec @ 43μs/op -encrypt (1MB) -├─xsalsa20poly1305 x 193 ops/sec @ 5ms/op -├─chacha20poly1305 x 196 ops/sec @ 5ms/op -└─xchacha20poly1305 x 195 ops/sec @ 5ms/op -``` - -Unauthenticated encryption: - -``` -encrypt (64B) -├─salsa x 1,272,264 ops/sec @ 786ns/op -├─chacha x 1,526,717 ops/sec @ 655ns/op -├─xsalsa x 847,457 ops/sec @ 1μs/op -└─xchacha x 848,896 ops/sec @ 1μs/op -encrypt (1KB) -├─salsa x 355,492 ops/sec @ 2μs/op -├─chacha x 377,358 ops/sec @ 2μs/op -├─xsalsa x 311,915 ops/sec @ 3μs/op -└─xchacha x 315,457 ops/sec @ 3μs/op -encrypt (8KB) -├─salsa x 56,063 ops/sec @ 17μs/op -├─chacha x 57,359 ops/sec @ 17μs/op -├─xsalsa x 54,848 ops/sec @ 18μs/op -└─xchacha x 55,475 ops/sec @ 18μs/op -encrypt (1MB) -├─salsa x 465 ops/sec @ 2ms/op -├─chacha x 474 ops/sec @ 2ms/op -├─xsalsa x 466 ops/sec @ 2ms/op -└─xchacha x 476 ops/sec @ 2ms/op -``` - -Compare to other implementations: - -``` -xsalsa20poly1305 (encrypt, 1MB) -├─tweetnacl x 108 ops/sec @ 9ms/op -├─noble x 190 ops/sec @ 5ms/op -└─micro x 21 ops/sec @ 47ms/op - -chacha20poly1305 (encrypt, 1MB) -├─node x 1,360 ops/sec @ 735μs/op -├─stablelib x 117 ops/sec @ 8ms/op -├─noble x 193 ops/sec @ 5ms/op -└─micro x 19 ops/sec @ 50ms/op - -chacha (encrypt, 1MB) -├─node x 2,035 ops/sec @ 491μs/op -├─stablelib x 206 ops/sec @ 4ms/op -├─noble x 474 ops/sec @ 2ms/op -└─micro x 61 ops/sec @ 16ms/op -``` - -## Contributing & testing - -1. Clone the repository -2. `npm install` to install build dependencies like TypeScript -3. `npm run build` to compile TypeScript code -4. `npm run test` will execute all main tests - -## License - -The MIT License (MIT) - -Copyright (c) 2023 Paul Miller [(https://paulmillr.com)](https://paulmillr.com) -Copyright (c) 2016 Thomas Pornin - -See LICENSE file. diff --git a/node_modules/@noble/ciphers/_assert.d.ts b/node_modules/@noble/ciphers/_assert.d.ts deleted file mode 100644 index ece011b3..00000000 --- a/node_modules/@noble/ciphers/_assert.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -declare function number(n: number): void; -declare function bool(b: boolean): void; -declare function bytes(b: Uint8Array | undefined, ...lengths: number[]): void; -export type Hash = { - (data: Uint8Array): Uint8Array; - blockLen: number; - outputLen: number; - create: any; -}; -declare function hash(hash: Hash): void; -declare function exists(instance: any, checkFinished?: boolean): void; -declare function output(out: any, instance: any): void; -export { number, bool, bytes, hash, exists, output }; -declare const assert: { - number: typeof number; - bool: typeof bool; - bytes: typeof bytes; - hash: typeof hash; - exists: typeof exists; - output: typeof output; -}; -export default assert; -//# sourceMappingURL=_assert.d.ts.map \ No newline at end of file diff --git a/node_modules/@noble/ciphers/_assert.d.ts.map b/node_modules/@noble/ciphers/_assert.d.ts.map deleted file mode 100644 index 1abc35c7..00000000 --- a/node_modules/@noble/ciphers/_assert.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"_assert.d.ts","sourceRoot":"","sources":["src/_assert.ts"],"names":[],"mappings":"AAAA,iBAAS,MAAM,CAAC,CAAC,EAAE,MAAM,QAExB;AAED,iBAAS,IAAI,CAAC,CAAC,EAAE,OAAO,QAEvB;AAED,iBAAS,KAAK,CAAC,CAAC,EAAE,UAAU,GAAG,SAAS,EAAE,GAAG,OAAO,EAAE,MAAM,EAAE,QAI7D;AAED,MAAM,MAAM,IAAI,GAAG;IACjB,CAAC,IAAI,EAAE,UAAU,GAAG,UAAU,CAAC;IAC/B,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE,GAAG,CAAC;CACb,CAAC;AACF,iBAAS,IAAI,CAAC,IAAI,EAAE,IAAI,QAKvB;AAED,iBAAS,MAAM,CAAC,QAAQ,EAAE,GAAG,EAAE,aAAa,UAAO,QAGlD;AACD,iBAAS,MAAM,CAAC,GAAG,EAAE,GAAG,EAAE,QAAQ,EAAE,GAAG,QAMtC;AAED,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;AACrD,QAAA,MAAM,MAAM;;;;;;;CAAgD,CAAC;AAC7D,eAAe,MAAM,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/ciphers/_assert.js b/node_modules/@noble/ciphers/_assert.js deleted file mode 100644 index bb562b29..00000000 --- a/node_modules/@noble/ciphers/_assert.js +++ /dev/null @@ -1,45 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.output = exports.exists = exports.hash = exports.bytes = exports.bool = exports.number = void 0; -function number(n) { - if (!Number.isSafeInteger(n) || n < 0) - throw new Error(`Wrong positive integer: ${n}`); -} -exports.number = number; -function bool(b) { - if (typeof b !== 'boolean') - throw new Error(`Expected boolean, not ${b}`); -} -exports.bool = bool; -function bytes(b, ...lengths) { - if (!(b instanceof Uint8Array)) - throw new Error('Expected Uint8Array'); - if (lengths.length > 0 && !lengths.includes(b.length)) - throw new Error(`Expected Uint8Array of length ${lengths}, not of length=${b.length}`); -} -exports.bytes = bytes; -function hash(hash) { - if (typeof hash !== 'function' || typeof hash.create !== 'function') - throw new Error('hash must be wrapped by utils.wrapConstructor'); - number(hash.outputLen); - number(hash.blockLen); -} -exports.hash = hash; -function exists(instance, checkFinished = true) { - if (instance.destroyed) - throw new Error('Hash instance has been destroyed'); - if (checkFinished && instance.finished) - throw new Error('Hash#digest() has already been called'); -} -exports.exists = exists; -function output(out, instance) { - bytes(out); - const min = instance.outputLen; - if (out.length < min) { - throw new Error(`digestInto() expects output buffer of length at least ${min}`); - } -} -exports.output = output; -const assert = { number, bool, bytes, hash, exists, output }; -exports.default = assert; -//# sourceMappingURL=_assert.js.map \ No newline at end of file diff --git a/node_modules/@noble/ciphers/_assert.js.map b/node_modules/@noble/ciphers/_assert.js.map deleted file mode 100644 index 7ebc0b03..00000000 --- a/node_modules/@noble/ciphers/_assert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AkC,CAAC,CAAC;IAC5E,IAAI,aAAa,IAAI,QAAQ,CAAC,QAAQ;QAAE,MAAM,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAC;AACnG,CAAC;AASmC,wBAAM;AAR1C,SAAS,MAAM,CAAC,GAAQ,EAAE,QAAa;IACrC,KAAK,CAAC,GAAG,CAAC,CAAC;IACX,MAAM,GAAG,GAAG,QAAQ,CAAC,SAAS,CAAC;IAC/B,IAAI,GAAG,CAAC,MAAM,GAAG,GAAG,EAAE;QACpB,MAAM,IAAI,KAAK,CAAC,yDAAyD,GAAG,EAAE,CAAC,CAAC;KACjF;AACH,CAAC;AAE2C,wBAAM;AAClD,MAAM,MAAM,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;AAC7D,kBAAe,MAAM,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/ciphers/_micro.d.ts b/node_modules/@noble/ciphers/_micro.d.ts deleted file mode 100644 index 3a8197b7..00000000 --- a/node_modules/@noble/ciphers/_micro.d.ts +++ /dev/null @@ -1,58 +0,0 @@ -/*! noble-ciphers - MIT License (c) 2023 Paul Miller (paulmillr.com) */ -import * as u from './utils.js'; -export declare function hsalsa(c: Uint32Array, key: Uint8Array, nonce: Uint8Array): Uint8Array; -export declare function hchacha(c: Uint32Array, key: Uint8Array, nonce: Uint8Array): Uint8Array; -/** - * salsa20, 12-byte nonce. - */ -export declare const salsa20: (key: Uint8Array, nonce: Uint8Array, data: Uint8Array, output?: Uint8Array | undefined, counter?: number) => Uint8Array; -/** - * xsalsa20, 24-byte nonce. - */ -export declare const xsalsa20: (key: Uint8Array, nonce: Uint8Array, data: Uint8Array, output?: Uint8Array | undefined, counter?: number) => Uint8Array; -/** - * chacha20 non-RFC, original version by djb. 8-byte nonce, 8-byte counter. - */ -export declare const chacha20orig: (key: Uint8Array, nonce: Uint8Array, data: Uint8Array, output?: Uint8Array | undefined, counter?: number) => Uint8Array; -/** - * chacha20 RFC 8439 (IETF / TLS). 12-byte nonce, 4-byte counter. - */ -export declare const chacha20: (key: Uint8Array, nonce: Uint8Array, data: Uint8Array, output?: Uint8Array | undefined, counter?: number) => Uint8Array; -/** - * xchacha20 eXtended-nonce. https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-xchacha - */ -export declare const xchacha20: (key: Uint8Array, nonce: Uint8Array, data: Uint8Array, output?: Uint8Array | undefined, counter?: number) => Uint8Array; -/** - * 8-round chacha from the original paper. - */ -export declare const chacha8: (key: Uint8Array, nonce: Uint8Array, data: Uint8Array, output?: Uint8Array | undefined, counter?: number) => Uint8Array; -/** - * 12-round chacha from the original paper. - */ -export declare const chacha12: (key: Uint8Array, nonce: Uint8Array, data: Uint8Array, output?: Uint8Array | undefined, counter?: number) => Uint8Array; -export declare function poly1305(msg: Uint8Array, key: Uint8Array): Uint8Array; -/** - * xsalsa20-poly1305 eXtended-nonce (24 bytes) salsa. - */ -export declare function xsalsa20poly1305(key: Uint8Array, nonce: Uint8Array): { - encrypt: (plaintext: Uint8Array) => Uint8Array; - decrypt: (ciphertext: Uint8Array) => Uint8Array; -}; -/** - * Alias to xsalsa20-poly1305 - */ -export declare function secretbox(key: Uint8Array, nonce: Uint8Array): { - seal: (plaintext: Uint8Array) => Uint8Array; - open: (ciphertext: Uint8Array) => Uint8Array; -}; -export declare const _poly1305_aead: (fn: typeof chacha20) => (key: Uint8Array, nonce: Uint8Array, AAD?: Uint8Array) => u.Cipher; -/** - * chacha20-poly1305 12-byte-nonce chacha. - */ -export declare const chacha20poly1305: (key: Uint8Array, nonce: Uint8Array, AAD?: Uint8Array) => u.Cipher; -/** - * xchacha20-poly1305 eXtended-nonce (24 bytes) chacha. - * With 24-byte nonce, it's safe to use fill it with random (CSPRNG). - */ -export declare const xchacha20poly1305: (key: Uint8Array, nonce: Uint8Array, AAD?: Uint8Array) => u.Cipher; -//# sourceMappingURL=_micro.d.ts.map \ No newline at end of file diff --git a/node_modules/@noble/ciphers/_micro.d.ts.map b/node_modules/@noble/ciphers/_micro.d.ts.map deleted file mode 100644 index 526022db..00000000 --- a/node_modules/@noble/ciphers/_micro.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"_micro.d.ts","sourceRoot":"","sources":["src/_micro.ts"],"names":[],"mappings":"AAAA,uEAAuE;AAMvE,OAAO,KAAK,CAAC,MAAM,YAAY,CAAC;AA8EhC,wBAAgB,MAAM,CAAC,CAAC,EAAE,WAAW,EAAE,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,GAAG,UAAU,CAYrF;AAsBD,wBAAgB,OAAO,CAAC,CAAC,EAAE,WAAW,EAAE,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,GAAG,UAAU,CAYtF;AAED;;GAEG;AACH,eAAO,MAAM,OAAO,yHAAsD,CAAC;AAE3E;;GAEG;AACH,eAAO,MAAM,QAAQ,yHAKnB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,YAAY,yHAAuE,CAAC;AACjG;;GAEG;AACH,eAAO,MAAM,QAAQ,yHAKnB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,SAAS,yHAMpB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,OAAO,yHAKlB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,QAAQ,yHAKnB,CAAC;AAKH,wBAAgB,QAAQ,CAAC,GAAG,EAAE,UAAU,EAAE,GAAG,EAAE,UAAU,GAAG,UAAU,CAcrE;AA4BD;;GAEG;AACH,wBAAgB,gBAAgB,CAAC,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU;yBAI1C,UAAU;0BAST,UAAU;EAUnC;AAED;;GAEG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU;;;EAK3D;AAED,eAAO,MAAM,cAAc,OACpB,eAAe,WACd,UAAU,SAAS,UAAU,QAAQ,UAAU,KAAG,EAAE,MAwBzD,CAAC;AAEJ;;GAEG;AACH,eAAO,MAAM,gBAAgB,QA7BrB,UAAU,SAAS,UAAU,QAAQ,UAAU,KAAG,EAAE,MA6BJ,CAAC;AAEzD;;;GAGG;AACH,eAAO,MAAM,iBAAiB,QAnCtB,UAAU,SAAS,UAAU,QAAQ,UAAU,KAAG,EAAE,MAmCF,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/ciphers/_micro.js b/node_modules/@noble/ciphers/_micro.js deleted file mode 100644 index 93d57bfc..00000000 --- a/node_modules/@noble/ciphers/_micro.js +++ /dev/null @@ -1,290 +0,0 @@ -"use strict"; -/*! noble-ciphers - MIT License (c) 2023 Paul Miller (paulmillr.com) */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.xchacha20poly1305 = exports.chacha20poly1305 = exports._poly1305_aead = exports.secretbox = exports.xsalsa20poly1305 = exports.poly1305 = exports.chacha12 = exports.chacha8 = exports.xchacha20 = exports.chacha20 = exports.chacha20orig = exports.xsalsa20 = exports.salsa20 = exports.hchacha = exports.hsalsa = void 0; -// micro-noble-ciphers: more auditable, but slower version of salsa20, chacha & poly1305. -// Implements the same algorithms that are present in other files, -// but without unrolled loops (https://en.wikipedia.org/wiki/Loop_unrolling). -const u = require("./utils.js"); -const _salsa_js_1 = require("./_salsa.js"); -// Utils -function hexToNumber(hex) { - if (typeof hex !== 'string') - throw new Error('hex string expected, got ' + typeof hex); - // Big Endian - return BigInt(hex === '' ? '0' : `0x${hex}`); -} -function bytesToNumberLE(bytes) { - return hexToNumber(u.bytesToHex(Uint8Array.from(bytes).reverse())); -} -function numberToBytesLE(n, len) { - return u.hexToBytes(n.toString(16).padStart(len * 2, '0')).reverse(); -} -const rotl = (a, b) => (a << b) | (a >>> (32 - b)); -// /Utils -function salsaQR(x, a, b, c, d) { - x[b] ^= rotl((x[a] + x[d]) | 0, 7); - x[c] ^= rotl((x[b] + x[a]) | 0, 9); - x[d] ^= rotl((x[c] + x[b]) | 0, 13); - x[a] ^= rotl((x[d] + x[c]) | 0, 18); -} -// prettier-ignore -function chachaQR(x, a, b, c, d) { - x[a] = (x[a] + x[b]) | 0; - x[d] = rotl(x[d] ^ x[a], 16); - x[c] = (x[c] + x[d]) | 0; - x[b] = rotl(x[b] ^ x[c], 12); - x[a] = (x[a] + x[b]) | 0; - x[d] = rotl(x[d] ^ x[a], 8); - x[c] = (x[c] + x[d]) | 0; - x[b] = rotl(x[b] ^ x[c], 7); -} -function salsaRound(x, rounds = 20) { - for (let i = 0; i < rounds; i += 2) { - salsaQR(x, 0, 4, 8, 12); - salsaQR(x, 5, 9, 13, 1); - salsaQR(x, 10, 14, 2, 6); - salsaQR(x, 15, 3, 7, 11); - salsaQR(x, 0, 1, 2, 3); - salsaQR(x, 5, 6, 7, 4); - salsaQR(x, 10, 11, 8, 9); - salsaQR(x, 15, 12, 13, 14); - } -} -function chachaRound(x, rounds = 20) { - for (let i = 0; i < rounds; i += 2) { - chachaQR(x, 0, 4, 8, 12); - chachaQR(x, 1, 5, 9, 13); - chachaQR(x, 2, 6, 10, 14); - chachaQR(x, 3, 7, 11, 15); - chachaQR(x, 0, 5, 10, 15); - chachaQR(x, 1, 6, 11, 12); - chachaQR(x, 2, 7, 8, 13); - chachaQR(x, 3, 4, 9, 14); - } -} -function salsaCore(c, k, n, out, cnt, rounds = 20) { - // prettier-ignore - const y = new Uint32Array([ - c[0], k[0], k[1], k[2], - k[3], c[1], n[0], n[1], - cnt, 0, c[2], k[4], - k[5], k[6], k[7], c[3], // Key Key Key "te k" - ]); - const x = y.slice(); - salsaRound(x, rounds); - for (let i = 0; i < 16; i++) - out[i] = (y[i] + x[i]) | 0; -} -function hsalsa(c, key, nonce) { - const k = u.u32(key); - const i = u.u32(nonce); - // prettier-ignore - const x = new Uint32Array([ - c[0], k[0], k[1], k[2], - k[3], c[1], i[0], i[1], - i[2], i[3], c[2], k[4], - k[5], k[6], k[7], c[3] - ]); - salsaRound(x); - return u.u8(new Uint32Array([x[0], x[5], x[10], x[15], x[6], x[7], x[8], x[9]])); -} -exports.hsalsa = hsalsa; -function chachaCore(c, k, n, out, cnt, rounds = 20) { - // prettier-ignore - const y = new Uint32Array([ - c[0], c[1], c[2], c[3], - k[0], k[1], k[2], k[3], - k[4], k[5], k[6], k[7], - cnt, n[0], n[1], n[2], // Counter Counter Nonce Nonce - ]); - const x = y.slice(); - chachaRound(x, rounds); - for (let i = 0; i < 16; i++) - out[i] = (y[i] + x[i]) | 0; -} -function hchacha(c, key, nonce) { - const k = u.u32(key); - const i = u.u32(nonce); - // prettier-ignore - const x = new Uint32Array([ - c[0], c[1], c[2], c[3], - k[0], k[1], k[2], k[3], - k[4], k[5], k[6], k[7], - i[0], i[1], i[2], i[3], - ]); - chachaRound(x); - return u.u8(new Uint32Array([x[0], x[1], x[2], x[3], x[12], x[13], x[14], x[15]])); -} -exports.hchacha = hchacha; -/** - * salsa20, 12-byte nonce. - */ -exports.salsa20 = (0, _salsa_js_1.salsaBasic)({ core: salsaCore, counterRight: true }); -/** - * xsalsa20, 24-byte nonce. - */ -exports.xsalsa20 = (0, _salsa_js_1.salsaBasic)({ - core: salsaCore, - counterRight: true, - extendNonceFn: hsalsa, - allow128bitKeys: false, -}); -/** - * chacha20 non-RFC, original version by djb. 8-byte nonce, 8-byte counter. - */ -exports.chacha20orig = (0, _salsa_js_1.salsaBasic)({ core: chachaCore, counterRight: false, counterLen: 8 }); -/** - * chacha20 RFC 8439 (IETF / TLS). 12-byte nonce, 4-byte counter. - */ -exports.chacha20 = (0, _salsa_js_1.salsaBasic)({ - core: chachaCore, - counterRight: false, - counterLen: 4, - allow128bitKeys: false, -}); -/** - * xchacha20 eXtended-nonce. https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-xchacha - */ -exports.xchacha20 = (0, _salsa_js_1.salsaBasic)({ - core: chachaCore, - counterRight: false, - counterLen: 8, - extendNonceFn: hchacha, - allow128bitKeys: false, -}); -/** - * 8-round chacha from the original paper. - */ -exports.chacha8 = (0, _salsa_js_1.salsaBasic)({ - core: chachaCore, - counterRight: false, - counterLen: 4, - rounds: 8, -}); -/** - * 12-round chacha from the original paper. - */ -exports.chacha12 = (0, _salsa_js_1.salsaBasic)({ - core: chachaCore, - counterRight: false, - counterLen: 4, - rounds: 12, -}); -const POW_2_130_5 = 2n ** 130n - 5n; -const POW_2_128_1 = 2n ** (16n * 8n) - 1n; -// Can be speed-up using BigUint64Array, but would be more complicated -function poly1305(msg, key) { - u.ensureBytes(msg); - u.ensureBytes(key); - let acc = 0n; - const r = bytesToNumberLE(key.subarray(0, 16)) & 0x0ffffffc0ffffffc0ffffffc0fffffffn; - const s = bytesToNumberLE(key.subarray(16)); - // Process by 16 byte chunks - for (let i = 0; i < msg.length; i += 16) { - const m = msg.subarray(i, i + 16); - const n = bytesToNumberLE(m) | (1n << BigInt(8 * m.length)); - acc = ((acc + n) * r) % POW_2_130_5; - } - const res = (acc + s) & POW_2_128_1; - return numberToBytesLE(res, 16); -} -exports.poly1305 = poly1305; -function computeTag(fn, key, nonce, ciphertext, AAD) { - const res = []; - if (AAD) { - res.push(AAD); - const leftover = AAD.length % 16; - if (leftover > 0) - res.push(new Uint8Array(16 - leftover)); - } - res.push(ciphertext); - const leftover = ciphertext.length % 16; - if (leftover > 0) - res.push(new Uint8Array(16 - leftover)); - // Lengths - const num = new Uint8Array(16); - const view = u.createView(num); - u.setBigUint64(view, 0, BigInt(AAD ? AAD.length : 0), true); - u.setBigUint64(view, 8, BigInt(ciphertext.length), true); - res.push(num); - const authKey = fn(key, nonce, new Uint8Array(32)); - return poly1305(u.concatBytes(...res), authKey); -} -/** - * xsalsa20-poly1305 eXtended-nonce (24 bytes) salsa. - */ -function xsalsa20poly1305(key, nonce) { - u.ensureBytes(key); - u.ensureBytes(nonce); - return { - encrypt: (plaintext) => { - u.ensureBytes(plaintext); - const m = u.concatBytes(new Uint8Array(32), plaintext); - const c = (0, exports.xsalsa20)(key, nonce, m); - const authKey = c.subarray(0, 32); - const data = c.subarray(32); - const tag = poly1305(data, authKey); - return u.concatBytes(tag, data); - }, - decrypt: (ciphertext) => { - u.ensureBytes(ciphertext); - if (ciphertext.length < 16) - throw new Error('encrypted data must be at least 16 bytes'); - const c = u.concatBytes(new Uint8Array(16), ciphertext); - const authKey = (0, exports.xsalsa20)(key, nonce, new Uint8Array(32)); - const tag = poly1305(c.subarray(32), authKey); - if (!u.equalBytes(c.subarray(16, 32), tag)) - throw new Error('invalid poly1305 tag'); - return (0, exports.xsalsa20)(key, nonce, c).subarray(32); - }, - }; -} -exports.xsalsa20poly1305 = xsalsa20poly1305; -/** - * Alias to xsalsa20-poly1305 - */ -function secretbox(key, nonce) { - u.ensureBytes(key); - u.ensureBytes(nonce); - const xs = xsalsa20poly1305(key, nonce); - return { seal: xs.encrypt, open: xs.decrypt }; -} -exports.secretbox = secretbox; -const _poly1305_aead = (fn) => (key, nonce, AAD) => { - const tagLength = 16; - const keyLength = 32; - u.ensureBytes(key, keyLength); - u.ensureBytes(nonce); - return { - tagLength, - encrypt: (plaintext) => { - u.ensureBytes(plaintext); - const res = fn(key, nonce, plaintext, undefined, 1); - const tag = computeTag(fn, key, nonce, res, AAD); - return u.concatBytes(res, tag); - }, - decrypt: (ciphertext) => { - u.ensureBytes(ciphertext); - if (ciphertext.length < tagLength) - throw new Error(`encrypted data must be at least ${tagLength} bytes`); - const passedTag = ciphertext.subarray(-tagLength); - const data = ciphertext.subarray(0, -tagLength); - const tag = computeTag(fn, key, nonce, data, AAD); - if (!u.equalBytes(passedTag, tag)) - throw new Error('invalid poly1305 tag'); - return fn(key, nonce, data, undefined, 1); - }, - }; -}; -exports._poly1305_aead = _poly1305_aead; -/** - * chacha20-poly1305 12-byte-nonce chacha. - */ -exports.chacha20poly1305 = (0, exports._poly1305_aead)(exports.chacha20); -/** - * xchacha20-poly1305 eXtended-nonce (24 bytes) chacha. - * With 24-byte nonce, it's safe to use fill it with random (CSPRNG). - */ -exports.xchacha20poly1305 = (0, exports._poly1305_aead)(exports.xchacha20); -//# sourceMappingURL=_micro.js.map \ No newline at end of file diff --git a/node_modules/@noble/ciphers/_micro.js.map b/node_modules/@noble/ciphers/_micro.js.map deleted file mode 100644 index 6250fbbd..00000000 --- a/node_modules/@noble/ciphers/_micro.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"_micro.js","sourceRoot":"","sources":["src/_micro.ts"],"names":[],"mappings":";AAAA,uEAAuE;;;AAEvE,yFAAyF;AACzF,kEAAkE;AAClE,6EAA6E;AAE7E,gCAAgC;AAChC,2CAAyC;AACzC,QAAQ;AACR,SAAS,WAAW,CAAC,GAAW;IAC9B,IAAI,OAAO,GAAG,KAAK,QAAQ;QAAE,MAAM,IAAI,KAAK,CAAC,2BAA2B,GAAG,OAAO,GAAG,CAAC,CAAC;IACvF,aAAa;IACb,OAAO,MAAM,CAAC,GAAG,KAAK,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,GAAG,EAAE,CAAC,CAAC;AAC/C,CAAC;AACD,SAAS,eAAe,CAAC,KAAiB;IACxC,OAAO,WAAW,CAAC,CAAC,CAAC,UAAU,CAAC,UAAU,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,OAAO,EAAE,CAAC,CAAC,CAAC;AACrE,CAAC;AACD,SAAS,eAAe,CAAC,CAAkB,EAAE,GAAW;IACtD,OAAO,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,GAAG,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,OAAO,EAAE,CAAC;AACvE,CAAC;AAED,MAAM,IAAI,GAAG,CAAC,CAAS,EAAE,CAAS,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;AACnE,SAAS;AAET,SAAS,OAAO,CAAC,CAAc,EAAE,CAAS,EAAE,CAAS,EAAE,CAAS,EAAE,CAAS;IACzE,CAAC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AC,CAAC;YACjD,OAAO,CAAC,CAAC,WAAW,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC;QACjC,CAAC;QACD,OAAO,EAAE,CAAC,UAAsB,EAAE,EAAE;YAClC,CAAC,CAAC,WAAW,CAAC,UAAU,CAAC,CAAC;YAC1B,IAAI,UAAU,CAAC,MAAM,GAAG,SAAS;gBAC/B,MAAM,IAAI,KAAK,CAAC,mCAAmC,SAAS,QAAQ,CAAC,CAAC;YACxE,MAAM,SAAS,GAAG,UAAU,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,CAAC;YAClD,MAAM,IAAI,GAAG,UAAU,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC;YAChD,MAAM,GAAG,GAAG,UAAU,CAAC,EAAE,EAAE,GAAG,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,CAAC,CAAC;YAClD,IAAI,CAAC,CAAC,CAAC,UAAU,CAAC,SAAS,EAAE,GAAG,CAAC;gBAAE,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;YAC3E,OAAO,EAAE,CAAC,GAAG,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC;QAC5C,CAAC;KACF,CAAC;AACJ,CAAC,CAAC;AA1BS,QAAA,cAAc,kBA0BvB;AAEJ;;GAEG;AACU,QAAA,gBAAgB,GAAG,IAAA,sBAAc,EAAC,gBAAQ,CAAC,CAAC;AAEzD;;;GAGG;AACU,QAAA,iBAAiB,GAAG,IAAA,sBAAc,EAAC,iBAAS,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/ciphers/_poly1305.d.ts b/node_modules/@noble/ciphers/_poly1305.d.ts deleted file mode 100644 index ca0dfb8d..00000000 --- a/node_modules/@noble/ciphers/_poly1305.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { Input, Hash } from './utils.js'; -export type CHash = ReturnType; -export declare function wrapConstructorWithKey>(hashCons: (key: Input) => Hash): { - (msg: Input, key: Input): Uint8Array; - outputLen: number; - blockLen: number; - create(key: Input): Hash; -}; -export declare const poly1305: { - (msg: Input, key: Input): Uint8Array; - outputLen: number; - blockLen: number; - create(key: Input): Hash>; -}; -//# sourceMappingURL=_poly1305.d.ts.map \ No newline at end of file diff --git a/node_modules/@noble/ciphers/_poly1305.d.ts.map b/node_modules/@noble/ciphers/_poly1305.d.ts.map deleted file mode 100644 index 3f364463..00000000 --- a/node_modules/@noble/ciphers/_poly1305.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"_poly1305.d.ts","sourceRoot":"","sources":["src/_poly1305.ts"],"names":[],"mappings":"AAAA,OAAO,EAAW,KAAK,EAAe,IAAI,EAAE,MAAM,YAAY,CAAC;AAmR/D,MAAM,MAAM,KAAK,GAAG,UAAU,CAAC,OAAO,sBAAsB,CAAC,CAAC;AAC9D,wBAAgB,sBAAsB,CAAC,CAAC,SAAS,IAAI,CAAC,CAAC,CAAC,EAAE,QAAQ,EAAE,CAAC,GAAG,EAAE,KAAK,KAAK,IAAI,CAAC,CAAC,CAAC;UACrE,KAAK,OAAO,KAAK,GAAG,UAAU;;;gBAI7B,KAAK;EAE3B;AAED,eAAO,MAAM,QAAQ;UARC,KAAK,OAAO,KAAK,GAAG,UAAU;;;gBAI7B,KAAK;CAI8C,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/ciphers/_poly1305.js b/node_modules/@noble/ciphers/_poly1305.js deleted file mode 100644 index d37bd9cb..00000000 --- a/node_modules/@noble/ciphers/_poly1305.js +++ /dev/null @@ -1,268 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.poly1305 = exports.wrapConstructorWithKey = void 0; -const utils_js_1 = require("./utils.js"); -const _assert_js_1 = require("./_assert.js"); -// Poly1305 is a fast and parallel secret-key message-authentication code. -// https://cr.yp.to/mac.html, https://cr.yp.to/mac/poly1305-20050329.pdf -// https://datatracker.ietf.org/doc/html/rfc8439 -// Based on Public Domain poly1305-donna https://github.com/floodyberry/poly1305-donna -const u8to16 = (a, i) => (a[i++] & 0xff) | ((a[i++] & 0xff) << 8); -class Poly1305 { - constructor(key) { - this.blockLen = 16; - this.outputLen = 16; - this.buffer = new Uint8Array(16); - this.r = new Uint16Array(10); - this.h = new Uint16Array(10); - this.pad = new Uint16Array(8); - this.pos = 0; - this.finished = false; - key = (0, utils_js_1.toBytes)(key); - (0, utils_js_1.ensureBytes)(key, 32); - const t0 = u8to16(key, 0); - const t1 = u8to16(key, 2); - const t2 = u8to16(key, 4); - const t3 = u8to16(key, 6); - const t4 = u8to16(key, 8); - const t5 = u8to16(key, 10); - const t6 = u8to16(key, 12); - const t7 = u8to16(key, 14); - // https://github.com/floodyberry/poly1305-donna/blob/e6ad6e091d30d7f4ec2d4f978be1fcfcbce72781/poly1305-donna-16.h#L47 - this.r[0] = t0 & 0x1fff; - this.r[1] = ((t0 >>> 13) | (t1 << 3)) & 0x1fff; - this.r[2] = ((t1 >>> 10) | (t2 << 6)) & 0x1f03; - this.r[3] = ((t2 >>> 7) | (t3 << 9)) & 0x1fff; - this.r[4] = ((t3 >>> 4) | (t4 << 12)) & 0x00ff; - this.r[5] = (t4 >>> 1) & 0x1ffe; - this.r[6] = ((t4 >>> 14) | (t5 << 2)) & 0x1fff; - this.r[7] = ((t5 >>> 11) | (t6 << 5)) & 0x1f81; - this.r[8] = ((t6 >>> 8) | (t7 << 8)) & 0x1fff; - this.r[9] = (t7 >>> 5) & 0x007f; - for (let i = 0; i < 8; i++) - this.pad[i] = u8to16(key, 16 + 2 * i); - } - process(data, offset, isLast = false) { - const hibit = isLast ? 0 : 1 << 11; - const { h, r } = this; - const r0 = r[0]; - const r1 = r[1]; - const r2 = r[2]; - const r3 = r[3]; - const r4 = r[4]; - const r5 = r[5]; - const r6 = r[6]; - const r7 = r[7]; - const r8 = r[8]; - const r9 = r[9]; - const t0 = u8to16(data, offset + 0); - const t1 = u8to16(data, offset + 2); - const t2 = u8to16(data, offset + 4); - const t3 = u8to16(data, offset + 6); - const t4 = u8to16(data, offset + 8); - const t5 = u8to16(data, offset + 10); - const t6 = u8to16(data, offset + 12); - const t7 = u8to16(data, offset + 14); - let h0 = h[0] + (t0 & 0x1fff); - let h1 = h[1] + (((t0 >>> 13) | (t1 << 3)) & 0x1fff); - let h2 = h[2] + (((t1 >>> 10) | (t2 << 6)) & 0x1fff); - let h3 = h[3] + (((t2 >>> 7) | (t3 << 9)) & 0x1fff); - let h4 = h[4] + (((t3 >>> 4) | (t4 << 12)) & 0x1fff); - let h5 = h[5] + ((t4 >>> 1) & 0x1fff); - let h6 = h[6] + (((t4 >>> 14) | (t5 << 2)) & 0x1fff); - let h7 = h[7] + (((t5 >>> 11) | (t6 << 5)) & 0x1fff); - let h8 = h[8] + (((t6 >>> 8) | (t7 << 8)) & 0x1fff); - let h9 = h[9] + ((t7 >>> 5) | hibit); - let c = 0; - let d0 = c + h0 * r0 + h1 * (5 * r9) + h2 * (5 * r8) + h3 * (5 * r7) + h4 * (5 * r6); - c = d0 >>> 13; - d0 &= 0x1fff; - d0 += h5 * (5 * r5) + h6 * (5 * r4) + h7 * (5 * r3) + h8 * (5 * r2) + h9 * (5 * r1); - c += d0 >>> 13; - d0 &= 0x1fff; - let d1 = c + h0 * r1 + h1 * r0 + h2 * (5 * r9) + h3 * (5 * r8) + h4 * (5 * r7); - c = d1 >>> 13; - d1 &= 0x1fff; - d1 += h5 * (5 * r6) + h6 * (5 * r5) + h7 * (5 * r4) + h8 * (5 * r3) + h9 * (5 * r2); - c += d1 >>> 13; - d1 &= 0x1fff; - let d2 = c + h0 * r2 + h1 * r1 + h2 * r0 + h3 * (5 * r9) + h4 * (5 * r8); - c = d2 >>> 13; - d2 &= 0x1fff; - d2 += h5 * (5 * r7) + h6 * (5 * r6) + h7 * (5 * r5) + h8 * (5 * r4) + h9 * (5 * r3); - c += d2 >>> 13; - d2 &= 0x1fff; - let d3 = c + h0 * r3 + h1 * r2 + h2 * r1 + h3 * r0 + h4 * (5 * r9); - c = d3 >>> 13; - d3 &= 0x1fff; - d3 += h5 * (5 * r8) + h6 * (5 * r7) + h7 * (5 * r6) + h8 * (5 * r5) + h9 * (5 * r4); - c += d3 >>> 13; - d3 &= 0x1fff; - let d4 = c + h0 * r4 + h1 * r3 + h2 * r2 + h3 * r1 + h4 * r0; - c = d4 >>> 13; - d4 &= 0x1fff; - d4 += h5 * (5 * r9) + h6 * (5 * r8) + h7 * (5 * r7) + h8 * (5 * r6) + h9 * (5 * r5); - c += d4 >>> 13; - d4 &= 0x1fff; - let d5 = c + h0 * r5 + h1 * r4 + h2 * r3 + h3 * r2 + h4 * r1; - c = d5 >>> 13; - d5 &= 0x1fff; - d5 += h5 * r0 + h6 * (5 * r9) + h7 * (5 * r8) + h8 * (5 * r7) + h9 * (5 * r6); - c += d5 >>> 13; - d5 &= 0x1fff; - let d6 = c + h0 * r6 + h1 * r5 + h2 * r4 + h3 * r3 + h4 * r2; - c = d6 >>> 13; - d6 &= 0x1fff; - d6 += h5 * r1 + h6 * r0 + h7 * (5 * r9) + h8 * (5 * r8) + h9 * (5 * r7); - c += d6 >>> 13; - d6 &= 0x1fff; - let d7 = c + h0 * r7 + h1 * r6 + h2 * r5 + h3 * r4 + h4 * r3; - c = d7 >>> 13; - d7 &= 0x1fff; - d7 += h5 * r2 + h6 * r1 + h7 * r0 + h8 * (5 * r9) + h9 * (5 * r8); - c += d7 >>> 13; - d7 &= 0x1fff; - let d8 = c + h0 * r8 + h1 * r7 + h2 * r6 + h3 * r5 + h4 * r4; - c = d8 >>> 13; - d8 &= 0x1fff; - d8 += h5 * r3 + h6 * r2 + h7 * r1 + h8 * r0 + h9 * (5 * r9); - c += d8 >>> 13; - d8 &= 0x1fff; - let d9 = c + h0 * r9 + h1 * r8 + h2 * r7 + h3 * r6 + h4 * r5; - c = d9 >>> 13; - d9 &= 0x1fff; - d9 += h5 * r4 + h6 * r3 + h7 * r2 + h8 * r1 + h9 * r0; - c += d9 >>> 13; - d9 &= 0x1fff; - c = ((c << 2) + c) | 0; - c = (c + d0) | 0; - d0 = c & 0x1fff; - c = c >>> 13; - d1 += c; - h[0] = d0; - h[1] = d1; - h[2] = d2; - h[3] = d3; - h[4] = d4; - h[5] = d5; - h[6] = d6; - h[7] = d7; - h[8] = d8; - h[9] = d9; - } - finalize() { - const { h, pad } = this; - const g = new Uint16Array(10); - let c = h[1] >>> 13; - h[1] &= 0x1fff; - for (let i = 2; i < 10; i++) { - h[i] += c; - c = h[i] >>> 13; - h[i] &= 0x1fff; - } - h[0] += c * 5; - c = h[0] >>> 13; - h[0] &= 0x1fff; - h[1] += c; - c = h[1] >>> 13; - h[1] &= 0x1fff; - h[2] += c; - g[0] = h[0] + 5; - c = g[0] >>> 13; - g[0] &= 0x1fff; - for (let i = 1; i < 10; i++) { - g[i] = h[i] + c; - c = g[i] >>> 13; - g[i] &= 0x1fff; - } - g[9] -= 1 << 13; - let mask = (c ^ 1) - 1; - for (let i = 0; i < 10; i++) - g[i] &= mask; - mask = ~mask; - for (let i = 0; i < 10; i++) - h[i] = (h[i] & mask) | g[i]; - h[0] = (h[0] | (h[1] << 13)) & 0xffff; - h[1] = ((h[1] >>> 3) | (h[2] << 10)) & 0xffff; - h[2] = ((h[2] >>> 6) | (h[3] << 7)) & 0xffff; - h[3] = ((h[3] >>> 9) | (h[4] << 4)) & 0xffff; - h[4] = ((h[4] >>> 12) | (h[5] << 1) | (h[6] << 14)) & 0xffff; - h[5] = ((h[6] >>> 2) | (h[7] << 11)) & 0xffff; - h[6] = ((h[7] >>> 5) | (h[8] << 8)) & 0xffff; - h[7] = ((h[8] >>> 8) | (h[9] << 5)) & 0xffff; - let f = h[0] + pad[0]; - h[0] = f & 0xffff; - for (let i = 1; i < 8; i++) { - f = (((h[i] + pad[i]) | 0) + (f >>> 16)) | 0; - h[i] = f & 0xffff; - } - } - update(data) { - _assert_js_1.default.exists(this); - const { buffer, blockLen } = this; - data = (0, utils_js_1.toBytes)(data); - const len = data.length; - for (let pos = 0; pos < len;) { - const take = Math.min(blockLen - this.pos, len - pos); - // Fast path: we have at least one block in input - if (take === blockLen) { - for (; blockLen <= len - pos; pos += blockLen) - this.process(data, pos); - continue; - } - buffer.set(data.subarray(pos, pos + take), this.pos); - this.pos += take; - pos += take; - if (this.pos === blockLen) { - this.process(buffer, 0, false); - this.pos = 0; - } - } - return this; - } - destroy() { - this.h.fill(0); - this.r.fill(0); - this.buffer.fill(0); - this.pad.fill(0); - } - digestInto(out) { - _assert_js_1.default.exists(this); - _assert_js_1.default.output(out, this); - this.finished = true; - const { buffer, h } = this; - let { pos } = this; - if (pos) { - buffer[pos++] = 1; - // buffer.subarray(pos).fill(0); - for (; pos < 16; pos++) - buffer[pos] = 0; - this.process(buffer, 0, true); - } - this.finalize(); - let opos = 0; - for (let i = 0; i < 8; i++) { - out[opos++] = h[i] >>> 0; - out[opos++] = h[i] >>> 8; - } - return out; - } - digest() { - const { buffer, outputLen } = this; - this.digestInto(buffer); - const res = buffer.slice(0, outputLen); - this.destroy(); - return res; - } -} -function wrapConstructorWithKey(hashCons) { - const hashC = (msg, key) => hashCons(key).update((0, utils_js_1.toBytes)(msg)).digest(); - const tmp = hashCons(new Uint8Array(32)); - hashC.outputLen = tmp.outputLen; - hashC.blockLen = tmp.blockLen; - hashC.create = (key) => hashCons(key); - return hashC; -} -exports.wrapConstructorWithKey = wrapConstructorWithKey; -exports.poly1305 = wrapConstructorWithKey((key) => new Poly1305(key)); -//# sourceMappingURL=_poly1305.js.map \ No newline at end of file diff --git a/node_modules/@noble/ciphers/_poly1305.js.map b/node_modules/@noble/ciphers/_poly1305.js.map deleted file mode 100644 index e591b471..00000000 --- a/node_modules/@noble/ciphers/_poly1305.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"_poly1305.js","sourceRoot":"","sources":["src/_poly1305.ts"],"names":[],"mappings":";;;AAAA,yCAA+D;AAC/D,6CAAkC;AAElC,0EAA0E;AAC1E,wEAAwE;AACxE,gDAAgD;AAEhD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CAAC;IAC7C,OAAO,KAAK,CAAC;AACf,CAAC;AAPD,wDAOC;AAEY,QAAA,QAAQ,GAAG,sBAAsB,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/ciphers/_polyval.d.ts b/node_modules/@noble/ciphers/_polyval.d.ts deleted file mode 100644 index f1a199ac..00000000 --- a/node_modules/@noble/ciphers/_polyval.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare function polyval(h: Uint8Array, data: Uint8Array): Uint8Array; -//# sourceMappingURL=_polyval.d.ts.map \ No newline at end of file diff --git a/node_modules/@noble/ciphers/_polyval.d.ts.map b/node_modules/@noble/ciphers/_polyval.d.ts.map deleted file mode 100644 index 3b9b14cc..00000000 --- a/node_modules/@noble/ciphers/_polyval.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"_polyval.d.ts","sourceRoot":"","sources":["src/_polyval.ts"],"names":[],"mappings":"AAyDA,wBAAgB,OAAO,CAAC,CAAC,EAAE,UAAU,EAAE,IAAI,EAAE,UAAU,cAiDtD"} \ No newline at end of file diff --git a/node_modules/@noble/ciphers/_polyval.js b/node_modules/@noble/ciphers/_polyval.js deleted file mode 100644 index 73cd0d54..00000000 --- a/node_modules/@noble/ciphers/_polyval.js +++ /dev/null @@ -1,104 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.polyval = void 0; -const utils_js_1 = require("./utils.js"); -// AES-SIV polyval, little-endian "mirror image" of AES-GCM GHash -// polynomial hash function. Defined in RFC 8452. -// Reverse bits in u32, constant-time, precompute will be faster, but non-constant time -function rev32(x) { - x = ((x & 1431655765) << 1) | ((x >>> 1) & 1431655765); - x = ((x & 858993459) << 2) | ((x >>> 2) & 858993459); - x = ((x & 252645135) << 4) | ((x >>> 4) & 252645135); - x = ((x & 16711935) << 8) | ((x >>> 8) & 16711935); - return (x << 16) | (x >>> 16); -} -// wrapped 32 bit multiplication -const wrapMul = (a, b) => Math.imul(a, b) >>> 0; -// https://timtaubert.de/blog/2017/06/verified-binary-multiplication-for-ghash/ -function bmul32(x, y) { - const x0 = x & 286331153; - const x1 = x & 572662306; - const x2 = x & 1145324612; - const x3 = x & 2290649224; - const y0 = y & 286331153; - const y1 = y & 572662306; - const y2 = y & 1145324612; - const y3 = y & 2290649224; - let res = (wrapMul(x0, y0) ^ wrapMul(x1, y3) ^ wrapMul(x2, y2) ^ wrapMul(x3, y1)) & 286331153; - res |= (wrapMul(x0, y1) ^ wrapMul(x1, y0) ^ wrapMul(x2, y3) ^ wrapMul(x3, y2)) & 572662306; - res |= (wrapMul(x0, y2) ^ wrapMul(x1, y1) ^ wrapMul(x2, y0) ^ wrapMul(x3, y3)) & 1145324612; - res |= (wrapMul(x0, y3) ^ wrapMul(x1, y2) ^ wrapMul(x2, y1) ^ wrapMul(x3, y0)) & 2290649224; - return res >>> 0; -} -function mulPart(arr) { - const a = new Uint32Array(18); - a[0] = arr[0]; - a[1] = arr[1]; - a[2] = arr[2]; - a[3] = arr[3]; - a[4] = a[0] ^ a[1]; - a[5] = a[2] ^ a[3]; - a[6] = a[0] ^ a[2]; - a[7] = a[1] ^ a[3]; - a[8] = a[6] ^ a[7]; - a[9] = rev32(arr[0]); - a[10] = rev32(arr[1]); - a[11] = rev32(arr[2]); - a[12] = rev32(arr[3]); - a[13] = a[9] ^ a[10]; - a[14] = a[11] ^ a[12]; - a[15] = a[9] ^ a[11]; - a[16] = a[10] ^ a[12]; - a[17] = a[15] ^ a[16]; - return a; -} -function polyval(h, data) { - (0, utils_js_1.ensureBytes)(h); - (0, utils_js_1.ensureBytes)(data); - const s = new Uint32Array(4); - // Precompute for multiplication - const a = mulPart((0, utils_js_1.u32)(h)); - if (data.length % 16) - throw new Error('polyval: data must be padded to 16 bytes'); - const data32 = (0, utils_js_1.u32)(data); - for (let i = 0; i < data32.length; i += 4) { - // Xor - s[0] ^= data32[i + 0]; - s[1] ^= data32[i + 1]; - s[2] ^= data32[i + 2]; - s[3] ^= data32[i + 3]; - // Dot via Karatsuba multiplication, based on MIT-licensed - // https://bearssl.org/gitweb/?p=BearSSL;a=blob;f=src/hash/ghash_ctmul32.c;hb=4b6046412 - const b = mulPart(s); - const c = new Uint32Array(18); - for (let i = 0; i < 18; i++) - c[i] = bmul32(a[i], b[i]); - c[4] ^= c[0] ^ c[1]; - c[5] ^= c[2] ^ c[3]; - c[8] ^= c[6] ^ c[7]; - c[13] ^= c[9] ^ c[10]; - c[14] ^= c[11] ^ c[12]; - c[17] ^= c[15] ^ c[16]; - const zw = new Uint32Array(8); - zw[0] = c[0]; - zw[1] = c[4] ^ (rev32(c[9]) >>> 1); - zw[2] = c[1] ^ c[0] ^ c[2] ^ c[6] ^ (rev32(c[13]) >>> 1); - zw[3] = c[4] ^ c[5] ^ c[8] ^ (rev32(c[10] ^ c[9] ^ c[11] ^ c[15]) >>> 1); - zw[4] = c[2] ^ c[1] ^ c[3] ^ c[7] ^ (rev32(c[13] ^ c[14] ^ c[17]) >>> 1); - zw[5] = c[5] ^ (rev32(c[11] ^ c[10] ^ c[12] ^ c[16]) >>> 1); - zw[6] = c[3] ^ (rev32(c[14]) >>> 1); - zw[7] = rev32(c[12]) >>> 1; - for (let i = 0; i < 4; i++) { - const lw = zw[i]; - zw[i + 4] ^= lw ^ (lw >>> 1) ^ (lw >>> 2) ^ (lw >>> 7); - zw[i + 3] ^= (lw << 31) ^ (lw << 30) ^ (lw << 25); - } - s[0] = zw[4]; - s[1] = zw[5]; - s[2] = zw[6]; - s[3] = zw[7]; - } - return (0, utils_js_1.u8)(s); -} -exports.polyval = polyval; -//# sourceMappingURL=_polyval.js.map \ No newline at end of file diff --git a/node_modules/@noble/ciphers/_polyval.js.map b/node_modules/@noble/ciphers/_polyval.js.map deleted file mode 100644 index f959f790..00000000 --- a/node_modules/@noble/ciphers/_polyval.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"_pol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AE,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC;YACjB,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,GAAG,CAAC,EAAE,KAAK,CAAC,CAAC,GAAG,CAAC,EAAE,KAAK,CAAC,CAAC,GAAG,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC;YACvD,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;SACnD;QAED,CAAC,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC;QACb,CAAC,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC;QACb,CAAC,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC;QACb,CAAC,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC;KACd;IACD,OAAO,IAAA,aAAE,EAAC,CAAC,CAAC,CAAC;AACf,CAAC;AAjDD,0BAiDC"} \ No newline at end of file diff --git a/node_modules/@noble/ciphers/_salsa.d.ts b/node_modules/@noble/ciphers/_salsa.d.ts deleted file mode 100644 index 5b62dfac..00000000 --- a/node_modules/@noble/ciphers/_salsa.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -export type SalsaOpts = { - core: (c: Uint32Array, key: Uint32Array, nonce: Uint32Array, out: Uint32Array, counter: number, rounds?: number) => void; - rounds?: number; - counterRight?: boolean; - counterLen?: number; - blockLen?: number; - allow128bitKeys?: boolean; - extendNonceFn?: (c: Uint32Array, key: Uint8Array, src: Uint8Array, dst: Uint8Array) => Uint8Array; -}; -export declare const salsaBasic: (opts: SalsaOpts) => (key: Uint8Array, nonce: Uint8Array, data: Uint8Array, output?: Uint8Array, counter?: number) => Uint8Array; -//# sourceMappingURL=_salsa.d.ts.map \ No newline at end of file diff --git a/node_modules/@noble/ciphers/_salsa.d.ts.map b/node_modules/@noble/ciphers/_salsa.d.ts.map deleted file mode 100644 index 9eca103a..00000000 --- a/node_modules/@noble/ciphers/_salsa.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"_salsa.d.ts","sourceRoot":"","sources":["src/_salsa.ts"],"names":[],"mappings":"AA0DA,MAAM,MAAM,SAAS,GAAG;IACtB,IAAI,EAAE,CACJ,CAAC,EAAE,WAAW,EACd,GAAG,EAAE,WAAW,EAChB,KAAK,EAAE,WAAW,EAClB,GAAG,EAAE,WAAW,EAChB,OAAO,EAAE,MAAM,EACf,MAAM,CAAC,EAAE,MAAM,KACZ,IAAI,CAAC;IACV,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,YAAY,CAAC,EAAE,OAAO,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,eAAe,CAAC,EAAE,OAAO,CAAC;IAC1B,aAAa,CAAC,EAAE,CAAC,CAAC,EAAE,WAAW,EAAE,GAAG,EAAE,UAAU,EAAE,GAAG,EAAE,UAAU,EAAE,GAAG,EAAE,UAAU,KAAK,UAAU,CAAC;CACnG,CAAC;AAKF,eAAO,MAAM,UAAU,SAAU,SAAS,WAcjC,UAAU,SACR,UAAU,QACX,UAAU,WACP,UAAU,uBAElB,UA6EJ,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/ciphers/_salsa.js b/node_modules/@noble/ciphers/_salsa.js deleted file mode 100644 index a5188a83..00000000 --- a/node_modules/@noble/ciphers/_salsa.js +++ /dev/null @@ -1,158 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.salsaBasic = void 0; -// Basic utils for salsa-like ciphers -// Check out _micro.ts for descriptive documentation. -const _assert_js_1 = require("./_assert.js"); -const utils_js_1 = require("./utils.js"); -/* -RFC8439 requires multi-step cipher stream, where -authKey starts with counter: 0, actual msg with counter: 1. - -For this, we need a way to re-use nonce / counter: - - const counter = new Uint8Array(4); - chacha(..., counter, ...); // counter is now 1 - chacha(..., counter, ...); // counter is now 2 - -This is complicated: - -- Original papers don't allow mutating counters -- Counter overflow is undefined: https://mailarchive.ietf.org/arch/msg/cfrg/gsOnTJzcbgG6OqD8Sc0GO5aR_tU/ -- 3rd-party library stablelib implementation uses an approach where you can provide - nonce and counter instead of just nonce - and it will re-use it -- We could have did something similar, but ChaCha has different counter position - (counter | nonce), which is not composable with XChaCha, because full counter - is (nonce16 | counter | nonce16). Stablelib doesn't support in-place counter for XChaCha. -- We could separate nonce & counter and provide separate API for counter re-use, but - there are different counter sizes depending on an algorithm. -- Salsa & ChaCha also differ in structures of key / sigma: - - salsa: c0 | k(4) | c1 | nonce(2) | ctr(2) | c2 | k(4) | c4 - chacha: c(4) | k(8) | ctr(1) | nonce(3) - chachaDJB: c(4) | k(8) | ctr(2) | nonce(2) -- Creating function such as `setSalsaState(key, nonce, sigma, data)` won't work, - because we can't re-use counter array -- 32-bit nonce is `2 ** 32 * 64` = 256GB with 32-bit counter -- JS does not allow UintArrays bigger than 4GB, so supporting 64-bit counters doesn't matter - -Structure is as following: - -key=16 -> sigma16, k=key|key -key=32 -> sigma32, k=key - -nonces: -salsa20: 8 (8-byte counter) -chacha20djb: 8 (8-byte counter) -chacha20tls: 12 (4-byte counter) -xsalsa: 24 (16 -> hsalsa, 8 -> old nonce) -xchacha: 24 (16 -> hchacha, 8 -> old nonce) - -https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-xchacha#appendix-A.2 -Use the subkey and remaining 8 byte nonce with ChaCha20 as normal -(prefixed by 4 NUL bytes, since [RFC8439] specifies a 12-byte nonce). -*/ -const sigma16 = (0, utils_js_1.utf8ToBytes)('expand 16-byte k'); -const sigma32 = (0, utils_js_1.utf8ToBytes)('expand 32-byte k'); -const sigma16_32 = (0, utils_js_1.u32)(sigma16); -const sigma32_32 = (0, utils_js_1.u32)(sigma32); -// Is byte array aligned to 4 byte offset (u32)? -const isAligned32 = (b) => !(b.byteOffset % 4); -const salsaBasic = (opts) => { - const { core, rounds, counterRight, counterLen, allow128bitKeys, extendNonceFn, blockLen } = (0, utils_js_1.checkOpts)({ rounds: 20, counterRight: false, counterLen: 8, allow128bitKeys: true, blockLen: 64 }, opts); - _assert_js_1.default.number(counterLen); - _assert_js_1.default.number(rounds); - _assert_js_1.default.number(blockLen); - _assert_js_1.default.bool(counterRight); - _assert_js_1.default.bool(allow128bitKeys); - const blockLen32 = blockLen / 4; - if (blockLen % 4 !== 0) - throw new Error('Salsa/ChaCha: blockLen must be aligned to 4 bytes'); - return (key, nonce, data, output, counter = 0) => { - _assert_js_1.default.bytes(key); - _assert_js_1.default.bytes(nonce); - _assert_js_1.default.bytes(data); - if (!output) - output = new Uint8Array(data.length); - _assert_js_1.default.bytes(output); - _assert_js_1.default.number(counter); - // > new Uint32Array([2**32]) - // Uint32Array(1) [ 0 ] - // > new Uint32Array([2**32-1]) - // Uint32Array(1) [ 4294967295 ] - if (counter < 0 || counter >= 2 ** 32 - 1) - throw new Error('Salsa/ChaCha: counter overflow'); - if (output.length < data.length) { - throw new Error(`Salsa/ChaCha: output (${output.length}) is shorter than data (${data.length})`); - } - const toClean = []; - let k, sigma; - // Handle 128 byte keys - if (key.length === 32) { - k = key; - sigma = sigma32_32; - } - else if (key.length === 16 && allow128bitKeys) { - k = new Uint8Array(32); - k.set(key); - k.set(key, 16); - sigma = sigma16_32; - toClean.push(k); - } - else - throw new Error(`Salsa/ChaCha: invalid 32-byte key, got length=${key.length}`); - // Handle extended nonce (HChaCha/HSalsa) - if (extendNonceFn) { - if (nonce.length <= 16) - throw new Error(`Salsa/ChaCha: extended nonce must be bigger than 16 bytes`); - k = extendNonceFn(sigma, k, nonce.subarray(0, 16), new Uint8Array(32)); - toClean.push(k); - nonce = nonce.subarray(16); - } - // Handle nonce counter - const nonceLen = 16 - counterLen; - if (nonce.length !== nonceLen) - throw new Error(`Salsa/ChaCha: nonce must be ${nonceLen} or 16 bytes`); - // Pad counter when nonce is 64 bit - if (nonceLen !== 12) { - const nc = new Uint8Array(12); - nc.set(nonce, counterRight ? 0 : 12 - nonce.length); - toClean.push((nonce = nc)); - } - // Counter positions - const block = new Uint8Array(blockLen); - // Cast to Uint32Array for speed - const b32 = (0, utils_js_1.u32)(block); - const k32 = (0, utils_js_1.u32)(k); - const n32 = (0, utils_js_1.u32)(nonce); - // Make sure that buffers aligned to 4 bytes - const d32 = isAligned32(data) && (0, utils_js_1.u32)(data); - const o32 = isAligned32(output) && (0, utils_js_1.u32)(output); - toClean.push(b32); - const len = data.length; - for (let pos = 0, ctr = counter; pos < len; ctr++) { - core(sigma, k32, n32, b32, ctr, rounds); - if (ctr >= 2 ** 32 - 1) - throw new Error('Salsa/ChaCha: counter overflow'); - const take = Math.min(blockLen, len - pos); - // full block && aligned to 4 bytes - if (take === blockLen && o32 && d32) { - const pos32 = pos / 4; - if (pos % 4 !== 0) - throw new Error('Salsa/ChaCha: invalid block position'); - for (let j = 0; j < blockLen32; j++) - o32[pos32 + j] = d32[pos32 + j] ^ b32[j]; - pos += blockLen; - continue; - } - for (let j = 0; j < take; j++) - output[pos + j] = data[pos + j] ^ block[j]; - pos += take; - } - for (let i = 0; i < toClean.length; i++) - toClean[i].fill(0); - return output; - }; -}; -exports.salsaBasic = salsaBasic; -//# sourceMappingURL=_salsa.js.map \ No newline at end of file diff --git a/node_modules/@noble/ciphers/_salsa.js.map b/node_modules/@noble/ciphers/_salsa.js.map deleted file mode 100644 index 7072abe7..00000000 --- a/node_modules/@noble/ciphers/_salsa.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"_salsa.js","sourceRoot":"","sources":["src/_salsa.ts"],"names":[],"mappings":";;;AAAA,qCAAqC;AACrC,qDAAqD;AACrD,6CAAkC;AAClC,yCAAyD;AAEzD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8CE;AAEF,MAAM,OAAO,GAAG,IAAA,sBAA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AC,GAAG,KAAK,CAAC,CAAC,CAAC,CAAC;YAC1E,GAAG,IAAI,IAAI,CAAC;SACb;QACD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,EAAE;YAAE,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAC5D,OAAO,MAAM,CAAC;IAChB,CAAC,CAAC;AACJ,CAAC,CAAC;AAhGW,QAAA,UAAU,cAgGrB"} \ No newline at end of file diff --git a/node_modules/@noble/ciphers/chacha.d.ts b/node_modules/@noble/ciphers/chacha.d.ts deleted file mode 100644 index 11e30a16..00000000 --- a/node_modules/@noble/ciphers/chacha.d.ts +++ /dev/null @@ -1,53 +0,0 @@ -import { Cipher } from './utils.js'; -/** - * hchacha helper method, used primarily in xchacha, to hash - * key and nonce into key' and nonce'. - * Same as chachaCore, but there doesn't seem to be a way to move the block - * out without 25% performance hit. - */ -export declare function hchacha(c: Uint32Array, key: Uint8Array, src: Uint8Array, out: Uint8Array): Uint8Array; -/** - * Original, non-RFC chacha20 from DJB. 8-byte nonce, 8-byte counter. - */ -export declare const chacha20orig: (key: Uint8Array, nonce: Uint8Array, data: Uint8Array, output?: Uint8Array | undefined, counter?: number) => Uint8Array; -/** - * ChaCha stream cipher. Conforms to RFC 8439 (IETF, TLS). 12-byte nonce, 4-byte counter. - * With 12-byte nonce, it's not safe to use fill it with random (CSPRNG), due to collision chance. - */ -export declare const chacha20: (key: Uint8Array, nonce: Uint8Array, data: Uint8Array, output?: Uint8Array | undefined, counter?: number) => Uint8Array; -/** - * XChaCha eXtended-nonce ChaCha. 24-byte nonce. - * With 24-byte nonce, it's safe to use fill it with random (CSPRNG). - * https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-xchacha - */ -export declare const xchacha20: (key: Uint8Array, nonce: Uint8Array, data: Uint8Array, output?: Uint8Array | undefined, counter?: number) => Uint8Array; -/** - * Reduced 8-round chacha, described in original paper. - */ -export declare const chacha8: (key: Uint8Array, nonce: Uint8Array, data: Uint8Array, output?: Uint8Array | undefined, counter?: number) => Uint8Array; -/** - * Reduced 12-round chacha, described in original paper. - */ -export declare const chacha12: (key: Uint8Array, nonce: Uint8Array, data: Uint8Array, output?: Uint8Array | undefined, counter?: number) => Uint8Array; -/** - * AEAD algorithm from RFC 8439. - * Salsa20 and chacha (RFC 8439) use poly1305 differently. - * We could have composed them similar to: - * https://github.com/paulmillr/scure-base/blob/b266c73dde977b1dd7ef40ef7a23cc15aab526b3/index.ts#L250 - * But it's hard because of authKey: - * In salsa20, authKey changes position in salsa stream. - * In chacha, authKey can't be computed inside computeTag, it modifies the counter. - */ -export declare const _poly1305_aead: (xorStream: typeof chacha20) => (key: Uint8Array, nonce: Uint8Array, AAD?: Uint8Array) => Cipher; -/** - * ChaCha20-Poly1305 from RFC 8439. - * With 12-byte nonce, it's not safe to use fill it with random (CSPRNG), due to collision chance. - */ -export declare const chacha20poly1305: (key: Uint8Array, nonce: Uint8Array, AAD?: Uint8Array) => Cipher; -/** - * XChaCha20-Poly1305 extended-nonce chacha. - * https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-xchacha - * With 24-byte nonce, it's safe to use fill it with random (CSPRNG). - */ -export declare const xchacha20poly1305: (key: Uint8Array, nonce: Uint8Array, AAD?: Uint8Array) => Cipher; -//# sourceMappingURL=chacha.d.ts.map \ No newline at end of file diff --git a/node_modules/@noble/ciphers/chacha.d.ts.map b/node_modules/@noble/ciphers/chacha.d.ts.map deleted file mode 100644 index d44785e5..00000000 --- a/node_modules/@noble/ciphers/chacha.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"chacha.d.ts","sourceRoot":"","sources":["src/chacha.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAA0D,MAAM,YAAY,CAAC;AAgF5F;;;;;GAKG;AAEH,wBAAgB,OAAO,CACrB,CAAC,EAAE,WAAW,EAAE,GAAG,EAAE,UAAU,EAAE,GAAG,EAAE,UAAU,EAAE,GAAG,EAAE,UAAU,GAChE,UAAU,CA0DZ;AACD;;GAEG;AACH,eAAO,MAAM,YAAY,yHAIvB,CAAC;AACH;;;GAGG;AACH,eAAO,MAAM,QAAQ,yHAKnB,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,SAAS,yHAMpB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,OAAO,yHAKlB,CAAC;AAEH;;GAEG;AACH,eAAO,MAAM,QAAQ,yHAKnB,CAAC;AA+BH;;;;;;;;GAQG;AACH,eAAO,MAAM,cAAc,cACb,eAAe,WACrB,UAAU,SAAS,UAAU,QAAQ,UAAU,KAAG,MAqCvD,CAAC;AAEJ;;;GAGG;AACH,eAAO,MAAM,gBAAgB,QA3CrB,UAAU,SAAS,UAAU,QAAQ,UAAU,KAAG,MA2Cc,CAAC;AACzE;;;;GAIG;AACH,eAAO,MAAM,iBAAiB,QAjDtB,UAAU,SAAS,UAAU,QAAQ,UAAU,KAAG,MAiDgB,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/ciphers/chacha.js b/node_modules/@noble/ciphers/chacha.js deleted file mode 100644 index 78b72318..00000000 --- a/node_modules/@noble/ciphers/chacha.js +++ /dev/null @@ -1,334 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.xchacha20poly1305 = exports.chacha20poly1305 = exports._poly1305_aead = exports.chacha12 = exports.chacha8 = exports.xchacha20 = exports.chacha20 = exports.chacha20orig = exports.hchacha = void 0; -const utils_js_1 = require("./utils.js"); -const _poly1305_js_1 = require("./_poly1305.js"); -const _salsa_js_1 = require("./_salsa.js"); -// ChaCha20 stream cipher was released in 2008. ChaCha aims to increase -// the diffusion per round, but had slightly less cryptanalysis. -// https://cr.yp.to/chacha.html, http://cr.yp.to/chacha/chacha-20080128.pdf -// Left rotate for uint32 -const rotl = (a, b) => (a << b) | (a >>> (32 - b)); -/** - * ChaCha core function. - */ -// prettier-ignore -function chachaCore(c, k, n, out, cnt, rounds = 20) { - let y00 = c[0], y01 = c[1], y02 = c[2], y03 = c[3]; // "expa" "nd 3" "2-by" "te k" - let y04 = k[0], y05 = k[1], y06 = k[2], y07 = k[3]; // Key Key Key Key - let y08 = k[4], y09 = k[5], y10 = k[6], y11 = k[7]; // Key Key Key Key - let y12 = cnt, y13 = n[0], y14 = n[1], y15 = n[2]; // Counter Counter Nonce Nonce - // Save state to temporary variables - let x00 = y00, x01 = y01, x02 = y02, x03 = y03, x04 = y04, x05 = y05, x06 = y06, x07 = y07, x08 = y08, x09 = y09, x10 = y10, x11 = y11, x12 = y12, x13 = y13, x14 = y14, x15 = y15; - // Main loop - for (let i = 0; i < rounds; i += 2) { - x00 = (x00 + x04) | 0; - x12 = rotl(x12 ^ x00, 16); - x08 = (x08 + x12) | 0; - x04 = rotl(x04 ^ x08, 12); - x00 = (x00 + x04) | 0; - x12 = rotl(x12 ^ x00, 8); - x08 = (x08 + x12) | 0; - x04 = rotl(x04 ^ x08, 7); - x01 = (x01 + x05) | 0; - x13 = rotl(x13 ^ x01, 16); - x09 = (x09 + x13) | 0; - x05 = rotl(x05 ^ x09, 12); - x01 = (x01 + x05) | 0; - x13 = rotl(x13 ^ x01, 8); - x09 = (x09 + x13) | 0; - x05 = rotl(x05 ^ x09, 7); - x02 = (x02 + x06) | 0; - x14 = rotl(x14 ^ x02, 16); - x10 = (x10 + x14) | 0; - x06 = rotl(x06 ^ x10, 12); - x02 = (x02 + x06) | 0; - x14 = rotl(x14 ^ x02, 8); - x10 = (x10 + x14) | 0; - x06 = rotl(x06 ^ x10, 7); - x03 = (x03 + x07) | 0; - x15 = rotl(x15 ^ x03, 16); - x11 = (x11 + x15) | 0; - x07 = rotl(x07 ^ x11, 12); - x03 = (x03 + x07) | 0; - x15 = rotl(x15 ^ x03, 8); - x11 = (x11 + x15) | 0; - x07 = rotl(x07 ^ x11, 7); - x00 = (x00 + x05) | 0; - x15 = rotl(x15 ^ x00, 16); - x10 = (x10 + x15) | 0; - x05 = rotl(x05 ^ x10, 12); - x00 = (x00 + x05) | 0; - x15 = rotl(x15 ^ x00, 8); - x10 = (x10 + x15) | 0; - x05 = rotl(x05 ^ x10, 7); - x01 = (x01 + x06) | 0; - x12 = rotl(x12 ^ x01, 16); - x11 = (x11 + x12) | 0; - x06 = rotl(x06 ^ x11, 12); - x01 = (x01 + x06) | 0; - x12 = rotl(x12 ^ x01, 8); - x11 = (x11 + x12) | 0; - x06 = rotl(x06 ^ x11, 7); - x02 = (x02 + x07) | 0; - x13 = rotl(x13 ^ x02, 16); - x08 = (x08 + x13) | 0; - x07 = rotl(x07 ^ x08, 12); - x02 = (x02 + x07) | 0; - x13 = rotl(x13 ^ x02, 8); - x08 = (x08 + x13) | 0; - x07 = rotl(x07 ^ x08, 7); - x03 = (x03 + x04) | 0; - x14 = rotl(x14 ^ x03, 16); - x09 = (x09 + x14) | 0; - x04 = rotl(x04 ^ x09, 12); - x03 = (x03 + x04) | 0; - x14 = rotl(x14 ^ x03, 8); - x09 = (x09 + x14) | 0; - x04 = rotl(x04 ^ x09, 7); - } - // Write output - let oi = 0; - out[oi++] = (y00 + x00) | 0; - out[oi++] = (y01 + x01) | 0; - out[oi++] = (y02 + x02) | 0; - out[oi++] = (y03 + x03) | 0; - out[oi++] = (y04 + x04) | 0; - out[oi++] = (y05 + x05) | 0; - out[oi++] = (y06 + x06) | 0; - out[oi++] = (y07 + x07) | 0; - out[oi++] = (y08 + x08) | 0; - out[oi++] = (y09 + x09) | 0; - out[oi++] = (y10 + x10) | 0; - out[oi++] = (y11 + x11) | 0; - out[oi++] = (y12 + x12) | 0; - out[oi++] = (y13 + x13) | 0; - out[oi++] = (y14 + x14) | 0; - out[oi++] = (y15 + x15) | 0; -} -/** - * hchacha helper method, used primarily in xchacha, to hash - * key and nonce into key' and nonce'. - * Same as chachaCore, but there doesn't seem to be a way to move the block - * out without 25% performance hit. - */ -// prettier-ignore -function hchacha(c, key, src, out) { - const k32 = (0, utils_js_1.u32)(key); - const i32 = (0, utils_js_1.u32)(src); - const o32 = (0, utils_js_1.u32)(out); - let x00 = c[0], x01 = c[1], x02 = c[2], x03 = c[3]; - let x04 = k32[0], x05 = k32[1], x06 = k32[2], x07 = k32[3]; - let x08 = k32[4], x09 = k32[5], x10 = k32[6], x11 = k32[7]; - let x12 = i32[0], x13 = i32[1], x14 = i32[2], x15 = i32[3]; - for (let i = 0; i < 20; i += 2) { - x00 = (x00 + x04) | 0; - x12 = rotl(x12 ^ x00, 16); - x08 = (x08 + x12) | 0; - x04 = rotl(x04 ^ x08, 12); - x00 = (x00 + x04) | 0; - x12 = rotl(x12 ^ x00, 8); - x08 = (x08 + x12) | 0; - x04 = rotl(x04 ^ x08, 7); - x01 = (x01 + x05) | 0; - x13 = rotl(x13 ^ x01, 16); - x09 = (x09 + x13) | 0; - x05 = rotl(x05 ^ x09, 12); - x01 = (x01 + x05) | 0; - x13 = rotl(x13 ^ x01, 8); - x09 = (x09 + x13) | 0; - x05 = rotl(x05 ^ x09, 7); - x02 = (x02 + x06) | 0; - x14 = rotl(x14 ^ x02, 16); - x10 = (x10 + x14) | 0; - x06 = rotl(x06 ^ x10, 12); - x02 = (x02 + x06) | 0; - x14 = rotl(x14 ^ x02, 8); - x10 = (x10 + x14) | 0; - x06 = rotl(x06 ^ x10, 7); - x03 = (x03 + x07) | 0; - x15 = rotl(x15 ^ x03, 16); - x11 = (x11 + x15) | 0; - x07 = rotl(x07 ^ x11, 12); - x03 = (x03 + x07) | 0; - x15 = rotl(x15 ^ x03, 8); - x11 = (x11 + x15) | 0; - x07 = rotl(x07 ^ x11, 7); - x00 = (x00 + x05) | 0; - x15 = rotl(x15 ^ x00, 16); - x10 = (x10 + x15) | 0; - x05 = rotl(x05 ^ x10, 12); - x00 = (x00 + x05) | 0; - x15 = rotl(x15 ^ x00, 8); - x10 = (x10 + x15) | 0; - x05 = rotl(x05 ^ x10, 7); - x01 = (x01 + x06) | 0; - x12 = rotl(x12 ^ x01, 16); - x11 = (x11 + x12) | 0; - x06 = rotl(x06 ^ x11, 12); - x01 = (x01 + x06) | 0; - x12 = rotl(x12 ^ x01, 8); - x11 = (x11 + x12) | 0; - x06 = rotl(x06 ^ x11, 7); - x02 = (x02 + x07) | 0; - x13 = rotl(x13 ^ x02, 16); - x08 = (x08 + x13) | 0; - x07 = rotl(x07 ^ x08, 12); - x02 = (x02 + x07) | 0; - x13 = rotl(x13 ^ x02, 8); - x08 = (x08 + x13) | 0; - x07 = rotl(x07 ^ x08, 7); - x03 = (x03 + x04) | 0; - x14 = rotl(x14 ^ x03, 16); - x09 = (x09 + x14) | 0; - x04 = rotl(x04 ^ x09, 12); - x03 = (x03 + x04) | 0; - x14 = rotl(x14 ^ x03, 8); - x09 = (x09 + x14) | 0; - x04 = rotl(x04 ^ x09, 7); - } - o32[0] = x00; - o32[1] = x01; - o32[2] = x02; - o32[3] = x03; - o32[4] = x12; - o32[5] = x13; - o32[6] = x14; - o32[7] = x15; - return out; -} -exports.hchacha = hchacha; -/** - * Original, non-RFC chacha20 from DJB. 8-byte nonce, 8-byte counter. - */ -exports.chacha20orig = (0, _salsa_js_1.salsaBasic)({ - core: chachaCore, - counterRight: false, - counterLen: 8, -}); -/** - * ChaCha stream cipher. Conforms to RFC 8439 (IETF, TLS). 12-byte nonce, 4-byte counter. - * With 12-byte nonce, it's not safe to use fill it with random (CSPRNG), due to collision chance. - */ -exports.chacha20 = (0, _salsa_js_1.salsaBasic)({ - core: chachaCore, - counterRight: false, - counterLen: 4, - allow128bitKeys: false, -}); -/** - * XChaCha eXtended-nonce ChaCha. 24-byte nonce. - * With 24-byte nonce, it's safe to use fill it with random (CSPRNG). - * https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-xchacha - */ -exports.xchacha20 = (0, _salsa_js_1.salsaBasic)({ - core: chachaCore, - counterRight: false, - counterLen: 8, - extendNonceFn: hchacha, - allow128bitKeys: false, -}); -/** - * Reduced 8-round chacha, described in original paper. - */ -exports.chacha8 = (0, _salsa_js_1.salsaBasic)({ - core: chachaCore, - counterRight: false, - counterLen: 4, - rounds: 8, -}); -/** - * Reduced 12-round chacha, described in original paper. - */ -exports.chacha12 = (0, _salsa_js_1.salsaBasic)({ - core: chachaCore, - counterRight: false, - counterLen: 4, - rounds: 12, -}); -const ZERO = /* @__PURE__ */ new Uint8Array(16); -// Pad to digest size with zeros -const updatePadded = (h, msg) => { - h.update(msg); - const left = msg.length % 16; - if (left) - h.update(ZERO.subarray(left)); -}; -const computeTag = (fn, key, nonce, data, AAD) => { - const authKey = fn(key, nonce, new Uint8Array(32)); - const h = _poly1305_js_1.poly1305.create(authKey); - if (AAD) - updatePadded(h, AAD); - updatePadded(h, data); - const num = new Uint8Array(16); - const view = (0, utils_js_1.createView)(num); - (0, utils_js_1.setBigUint64)(view, 0, BigInt(AAD ? AAD.length : 0), true); - (0, utils_js_1.setBigUint64)(view, 8, BigInt(data.length), true); - h.update(num); - const res = h.digest(); - authKey.fill(0); - return res; -}; -/** - * AEAD algorithm from RFC 8439. - * Salsa20 and chacha (RFC 8439) use poly1305 differently. - * We could have composed them similar to: - * https://github.com/paulmillr/scure-base/blob/b266c73dde977b1dd7ef40ef7a23cc15aab526b3/index.ts#L250 - * But it's hard because of authKey: - * In salsa20, authKey changes position in salsa stream. - * In chacha, authKey can't be computed inside computeTag, it modifies the counter. - */ -const _poly1305_aead = (xorStream) => (key, nonce, AAD) => { - const tagLength = 16; - (0, utils_js_1.ensureBytes)(key, 32); - (0, utils_js_1.ensureBytes)(nonce); - return { - tagLength, - encrypt: (plaintext, output) => { - const plength = plaintext.length; - const clength = plength + tagLength; - if (output) { - (0, utils_js_1.ensureBytes)(output, clength); - } - else { - output = new Uint8Array(clength); - } - xorStream(key, nonce, plaintext, output, 1); - const tag = computeTag(xorStream, key, nonce, output.subarray(0, -tagLength), AAD); - output.set(tag, plength); // append tag - return output; - }, - decrypt: (ciphertext, output) => { - const clength = ciphertext.length; - const plength = clength - tagLength; - if (clength < tagLength) - throw new Error(`encrypted data must be at least ${tagLength} bytes`); - if (output) { - (0, utils_js_1.ensureBytes)(output, plength); - } - else { - output = new Uint8Array(plength); - } - const data = ciphertext.subarray(0, -tagLength); - const passedTag = ciphertext.subarray(-tagLength); - const tag = computeTag(xorStream, key, nonce, data, AAD); - if (!(0, utils_js_1.equalBytes)(passedTag, tag)) - throw new Error('invalid tag'); - xorStream(key, nonce, data, output, 1); - return output; - }, - }; -}; -exports._poly1305_aead = _poly1305_aead; -/** - * ChaCha20-Poly1305 from RFC 8439. - * With 12-byte nonce, it's not safe to use fill it with random (CSPRNG), due to collision chance. - */ -exports.chacha20poly1305 = (0, exports._poly1305_aead)(exports.chacha20); -/** - * XChaCha20-Poly1305 extended-nonce chacha. - * https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-xchacha - * With 24-byte nonce, it's safe to use fill it with random (CSPRNG). - */ -exports.xchacha20poly1305 = (0, exports._poly1305_aead)(exports.xchacha20); -//# sourceMappingURL=chacha.js.map \ No newline at end of file diff --git a/node_modules/@noble/ciphers/chacha.js.map b/node_modules/@noble/ciphers/chacha.js.map deleted file mode 100644 index da79ae54..00000000 --- a/node_modules/@noble/ciphers/chacha.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"chacha.js","sourceRoot":"","sources":["src/chacha.ts"],"names":[],"mappings":";;;AAAA,yCAA4F;AAC5F,iDAA0C;AAC1C,2CAAyC;AAEzC,uEAAuE;AACvE,gEAAgE;AAChE,2EAA2E;AAE3E,yBAAyB;AACzB,MAAM,IAAI,GAAG,CAAC,CAAS,EAAE,CAAS,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;AAEnE;;GAEG;AACH,kBAAkB;AAClB,SAAS,UAAU,CACjB,CAAc,EAAE,CAAc,EAAE,CAAc,EAAE,GAAgB,EAAE,GAAW,EAAE,MAAM,GAAG,EAAE;IAE1F,IAAI,GAAG,GAA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;;;GAGG;AACU,QAAA,gBAAgB,GAAmB,IAAA,sBAAc,EAAC,gBAAQ,CAAC,CAAC;AACzE;;;;GAIG;AACU,QAAA,iBAAiB,GAAmB,IAAA,sBAAc,EAAC,iBAAS,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/ciphers/esm/_assert.js b/node_modules/@noble/ciphers/esm/_assert.js deleted file mode 100644 index b0cc8fa6..00000000 --- a/node_modules/@noble/ciphers/esm/_assert.js +++ /dev/null @@ -1,37 +0,0 @@ -function number(n) { - if (!Number.isSafeInteger(n) || n < 0) - throw new Error(`Wrong positive integer: ${n}`); -} -function bool(b) { - if (typeof b !== 'boolean') - throw new Error(`Expected boolean, not ${b}`); -} -function bytes(b, ...lengths) { - if (!(b instanceof Uint8Array)) - throw new Error('Expected Uint8Array'); - if (lengths.length > 0 && !lengths.includes(b.length)) - throw new Error(`Expected Uint8Array of length ${lengths}, not of length=${b.length}`); -} -function hash(hash) { - if (typeof hash !== 'function' || typeof hash.create !== 'function') - throw new Error('hash must be wrapped by utils.wrapConstructor'); - number(hash.outputLen); - number(hash.blockLen); -} -function exists(instance, checkFinished = true) { - if (instance.destroyed) - throw new Error('Hash instance has been destroyed'); - if (checkFinished && instance.finished) - throw new Error('Hash#digest() has already been called'); -} -function output(out, instance) { - bytes(out); - const min = instance.outputLen; - if (out.length < min) { - throw new Error(`digestInto() expects output buffer of length at least ${min}`); - } -} -export { number, bool, bytes, hash, exists, output }; -const assert = { number, bool, bytes, hash, exists, output }; -export default assert; -//# sourceMappingURL=_assert.js.map \ No newline at end of file diff --git a/node_modules/@noble/ciphers/esm/_assert.js.map b/node_modules/@noble/ciphers/esm/_assert.js.map deleted file mode 100644 index 294a70e9..00000000 --- a/node_modules/@noble/ciphers/esm/_assert.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"_assert.js","sourceRoot":"","sources":["../src/_assert.ts"],"names":[],"mappings":"AAAA,SAAS,MAAM,CAAC,CAAS;IACvB,IAAI,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AAM,GAAG,GAAG,QAAQ,CAAC,SAAS,CAAC;IAC/B,IAAI,GAAG,CAAC,MAAM,GAAG,GAAG,EAAE;QACpB,MAAM,IAAI,KAAK,CAAC,yDAAyD,GAAG,EAAE,CAAC,CAAC;KACjF;AACH,CAAC;AAED,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;AACrD,MAAM,MAAM,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;AAC7D,eAAe,MAAM,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/ciphers/esm/_micro.js b/node_modules/@noble/ciphers/esm/_micro.js deleted file mode 100644 index 30a82824..00000000 --- a/node_modules/@noble/ciphers/esm/_micro.js +++ /dev/null @@ -1,281 +0,0 @@ -/*! noble-ciphers - MIT License (c) 2023 Paul Miller (paulmillr.com) */ -// micro-noble-ciphers: more auditable, but slower version of salsa20, chacha & poly1305. -// Implements the same algorithms that are present in other files, -// but without unrolled loops (https://en.wikipedia.org/wiki/Loop_unrolling). -import * as u from './utils.js'; -import { salsaBasic } from './_salsa.js'; -// Utils -function hexToNumber(hex) { - if (typeof hex !== 'string') - throw new Error('hex string expected, got ' + typeof hex); - // Big Endian - return BigInt(hex === '' ? '0' : `0x${hex}`); -} -function bytesToNumberLE(bytes) { - return hexToNumber(u.bytesToHex(Uint8Array.from(bytes).reverse())); -} -function numberToBytesLE(n, len) { - return u.hexToBytes(n.toString(16).padStart(len * 2, '0')).reverse(); -} -const rotl = (a, b) => (a << b) | (a >>> (32 - b)); -// /Utils -function salsaQR(x, a, b, c, d) { - x[b] ^= rotl((x[a] + x[d]) | 0, 7); - x[c] ^= rotl((x[b] + x[a]) | 0, 9); - x[d] ^= rotl((x[c] + x[b]) | 0, 13); - x[a] ^= rotl((x[d] + x[c]) | 0, 18); -} -// prettier-ignore -function chachaQR(x, a, b, c, d) { - x[a] = (x[a] + x[b]) | 0; - x[d] = rotl(x[d] ^ x[a], 16); - x[c] = (x[c] + x[d]) | 0; - x[b] = rotl(x[b] ^ x[c], 12); - x[a] = (x[a] + x[b]) | 0; - x[d] = rotl(x[d] ^ x[a], 8); - x[c] = (x[c] + x[d]) | 0; - x[b] = rotl(x[b] ^ x[c], 7); -} -function salsaRound(x, rounds = 20) { - for (let i = 0; i < rounds; i += 2) { - salsaQR(x, 0, 4, 8, 12); - salsaQR(x, 5, 9, 13, 1); - salsaQR(x, 10, 14, 2, 6); - salsaQR(x, 15, 3, 7, 11); - salsaQR(x, 0, 1, 2, 3); - salsaQR(x, 5, 6, 7, 4); - salsaQR(x, 10, 11, 8, 9); - salsaQR(x, 15, 12, 13, 14); - } -} -function chachaRound(x, rounds = 20) { - for (let i = 0; i < rounds; i += 2) { - chachaQR(x, 0, 4, 8, 12); - chachaQR(x, 1, 5, 9, 13); - chachaQR(x, 2, 6, 10, 14); - chachaQR(x, 3, 7, 11, 15); - chachaQR(x, 0, 5, 10, 15); - chachaQR(x, 1, 6, 11, 12); - chachaQR(x, 2, 7, 8, 13); - chachaQR(x, 3, 4, 9, 14); - } -} -function salsaCore(c, k, n, out, cnt, rounds = 20) { - // prettier-ignore - const y = new Uint32Array([ - c[0], k[0], k[1], k[2], - k[3], c[1], n[0], n[1], - cnt, 0, c[2], k[4], - k[5], k[6], k[7], c[3], // Key Key Key "te k" - ]); - const x = y.slice(); - salsaRound(x, rounds); - for (let i = 0; i < 16; i++) - out[i] = (y[i] + x[i]) | 0; -} -export function hsalsa(c, key, nonce) { - const k = u.u32(key); - const i = u.u32(nonce); - // prettier-ignore - const x = new Uint32Array([ - c[0], k[0], k[1], k[2], - k[3], c[1], i[0], i[1], - i[2], i[3], c[2], k[4], - k[5], k[6], k[7], c[3] - ]); - salsaRound(x); - return u.u8(new Uint32Array([x[0], x[5], x[10], x[15], x[6], x[7], x[8], x[9]])); -} -function chachaCore(c, k, n, out, cnt, rounds = 20) { - // prettier-ignore - const y = new Uint32Array([ - c[0], c[1], c[2], c[3], - k[0], k[1], k[2], k[3], - k[4], k[5], k[6], k[7], - cnt, n[0], n[1], n[2], // Counter Counter Nonce Nonce - ]); - const x = y.slice(); - chachaRound(x, rounds); - for (let i = 0; i < 16; i++) - out[i] = (y[i] + x[i]) | 0; -} -export function hchacha(c, key, nonce) { - const k = u.u32(key); - const i = u.u32(nonce); - // prettier-ignore - const x = new Uint32Array([ - c[0], c[1], c[2], c[3], - k[0], k[1], k[2], k[3], - k[4], k[5], k[6], k[7], - i[0], i[1], i[2], i[3], - ]); - chachaRound(x); - return u.u8(new Uint32Array([x[0], x[1], x[2], x[3], x[12], x[13], x[14], x[15]])); -} -/** - * salsa20, 12-byte nonce. - */ -export const salsa20 = salsaBasic({ core: salsaCore, counterRight: true }); -/** - * xsalsa20, 24-byte nonce. - */ -export const xsalsa20 = salsaBasic({ - core: salsaCore, - counterRight: true, - extendNonceFn: hsalsa, - allow128bitKeys: false, -}); -/** - * chacha20 non-RFC, original version by djb. 8-byte nonce, 8-byte counter. - */ -export const chacha20orig = salsaBasic({ core: chachaCore, counterRight: false, counterLen: 8 }); -/** - * chacha20 RFC 8439 (IETF / TLS). 12-byte nonce, 4-byte counter. - */ -export const chacha20 = salsaBasic({ - core: chachaCore, - counterRight: false, - counterLen: 4, - allow128bitKeys: false, -}); -/** - * xchacha20 eXtended-nonce. https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-xchacha - */ -export const xchacha20 = salsaBasic({ - core: chachaCore, - counterRight: false, - counterLen: 8, - extendNonceFn: hchacha, - allow128bitKeys: false, -}); -/** - * 8-round chacha from the original paper. - */ -export const chacha8 = salsaBasic({ - core: chachaCore, - counterRight: false, - counterLen: 4, - rounds: 8, -}); -/** - * 12-round chacha from the original paper. - */ -export const chacha12 = salsaBasic({ - core: chachaCore, - counterRight: false, - counterLen: 4, - rounds: 12, -}); -const POW_2_130_5 = 2n ** 130n - 5n; -const POW_2_128_1 = 2n ** (16n * 8n) - 1n; -// Can be speed-up using BigUint64Array, but would be more complicated -export function poly1305(msg, key) { - u.ensureBytes(msg); - u.ensureBytes(key); - let acc = 0n; - const r = bytesToNumberLE(key.subarray(0, 16)) & 0x0ffffffc0ffffffc0ffffffc0fffffffn; - const s = bytesToNumberLE(key.subarray(16)); - // Process by 16 byte chunks - for (let i = 0; i < msg.length; i += 16) { - const m = msg.subarray(i, i + 16); - const n = bytesToNumberLE(m) | (1n << BigInt(8 * m.length)); - acc = ((acc + n) * r) % POW_2_130_5; - } - const res = (acc + s) & POW_2_128_1; - return numberToBytesLE(res, 16); -} -function computeTag(fn, key, nonce, ciphertext, AAD) { - const res = []; - if (AAD) { - res.push(AAD); - const leftover = AAD.length % 16; - if (leftover > 0) - res.push(new Uint8Array(16 - leftover)); - } - res.push(ciphertext); - const leftover = ciphertext.length % 16; - if (leftover > 0) - res.push(new Uint8Array(16 - leftover)); - // Lengths - const num = new Uint8Array(16); - const view = u.createView(num); - u.setBigUint64(view, 0, BigInt(AAD ? AAD.length : 0), true); - u.setBigUint64(view, 8, BigInt(ciphertext.length), true); - res.push(num); - const authKey = fn(key, nonce, new Uint8Array(32)); - return poly1305(u.concatBytes(...res), authKey); -} -/** - * xsalsa20-poly1305 eXtended-nonce (24 bytes) salsa. - */ -export function xsalsa20poly1305(key, nonce) { - u.ensureBytes(key); - u.ensureBytes(nonce); - return { - encrypt: (plaintext) => { - u.ensureBytes(plaintext); - const m = u.concatBytes(new Uint8Array(32), plaintext); - const c = xsalsa20(key, nonce, m); - const authKey = c.subarray(0, 32); - const data = c.subarray(32); - const tag = poly1305(data, authKey); - return u.concatBytes(tag, data); - }, - decrypt: (ciphertext) => { - u.ensureBytes(ciphertext); - if (ciphertext.length < 16) - throw new Error('encrypted data must be at least 16 bytes'); - const c = u.concatBytes(new Uint8Array(16), ciphertext); - const authKey = xsalsa20(key, nonce, new Uint8Array(32)); - const tag = poly1305(c.subarray(32), authKey); - if (!u.equalBytes(c.subarray(16, 32), tag)) - throw new Error('invalid poly1305 tag'); - return xsalsa20(key, nonce, c).subarray(32); - }, - }; -} -/** - * Alias to xsalsa20-poly1305 - */ -export function secretbox(key, nonce) { - u.ensureBytes(key); - u.ensureBytes(nonce); - const xs = xsalsa20poly1305(key, nonce); - return { seal: xs.encrypt, open: xs.decrypt }; -} -export const _poly1305_aead = (fn) => (key, nonce, AAD) => { - const tagLength = 16; - const keyLength = 32; - u.ensureBytes(key, keyLength); - u.ensureBytes(nonce); - return { - tagLength, - encrypt: (plaintext) => { - u.ensureBytes(plaintext); - const res = fn(key, nonce, plaintext, undefined, 1); - const tag = computeTag(fn, key, nonce, res, AAD); - return u.concatBytes(res, tag); - }, - decrypt: (ciphertext) => { - u.ensureBytes(ciphertext); - if (ciphertext.length < tagLength) - throw new Error(`encrypted data must be at least ${tagLength} bytes`); - const passedTag = ciphertext.subarray(-tagLength); - const data = ciphertext.subarray(0, -tagLength); - const tag = computeTag(fn, key, nonce, data, AAD); - if (!u.equalBytes(passedTag, tag)) - throw new Error('invalid poly1305 tag'); - return fn(key, nonce, data, undefined, 1); - }, - }; -}; -/** - * chacha20-poly1305 12-byte-nonce chacha. - */ -export const chacha20poly1305 = _poly1305_aead(chacha20); -/** - * xchacha20-poly1305 eXtended-nonce (24 bytes) chacha. - * With 24-byte nonce, it's safe to use fill it with random (CSPRNG). - */ -export const xchacha20poly1305 = _poly1305_aead(xchacha20); -//# sourceMappingURL=_micro.js.map \ No newline at end of file diff --git a/node_modules/@noble/ciphers/esm/_micro.js.map b/node_modules/@noble/ciphers/esm/_micro.js.map deleted file mode 100644 index 1f065b31..00000000 --- a/node_modules/@noble/ciphers/esm/_micro.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"_micro.js","sourceRoot":"","sources":["../src/_micro.ts"],"names":[],"mappings":"AAAA,uEAAuE;AAEvE,yFAAyF;AACzF,kEAAkE;AAClE,6EAA6E;AAE7E,OAAO,KAAK,CAAC,MAAM,YAAY,CAAC;A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CAAC;YACxE,MAAM,SAAS,GAAG,UAAU,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,CAAC;YAClD,MAAM,IAAI,GAAG,UAAU,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC;YAChD,MAAM,GAAG,GAAG,UAAU,CAAC,EAAE,EAAE,GAAG,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,CAAC,CAAC;YAClD,IAAI,CAAC,CAAC,CAAC,UAAU,CAAC,SAAS,EAAE,GAAG,CAAC;gBAAE,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;YAC3E,OAAO,EAAE,CAAC,GAAG,EAAE,KAAK,EAAE,IAAI,EAAE,SAAS,EAAE,CAAC,CAAC,CAAC;QAC5C,CAAC;KACF,CAAC;AACJ,CAAC,CAAC;AAEJ;;GAEG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,cAAc,CAAC,QAAQ,CAAC,CAAC;AAEzD;;;GAGG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,cAAc,CAAC,SAAS,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/ciphers/esm/_poly1305.js b/node_modules/@noble/ciphers/esm/_poly1305.js deleted file mode 100644 index 262a77d6..00000000 --- a/node_modules/@noble/ciphers/esm/_poly1305.js +++ /dev/null @@ -1,264 +0,0 @@ -import { toBytes, ensureBytes } from './utils.js'; -import assert from './_assert.js'; -// Poly1305 is a fast and parallel secret-key message-authentication code. -// https://cr.yp.to/mac.html, https://cr.yp.to/mac/poly1305-20050329.pdf -// https://datatracker.ietf.org/doc/html/rfc8439 -// Based on Public Domain poly1305-donna https://github.com/floodyberry/poly1305-donna -const u8to16 = (a, i) => (a[i++] & 0xff) | ((a[i++] & 0xff) << 8); -class Poly1305 { - constructor(key) { - this.blockLen = 16; - this.outputLen = 16; - this.buffer = new Uint8Array(16); - this.r = new Uint16Array(10); - this.h = new Uint16Array(10); - this.pad = new Uint16Array(8); - this.pos = 0; - this.finished = false; - key = toBytes(key); - ensureBytes(key, 32); - const t0 = u8to16(key, 0); - const t1 = u8to16(key, 2); - const t2 = u8to16(key, 4); - const t3 = u8to16(key, 6); - const t4 = u8to16(key, 8); - const t5 = u8to16(key, 10); - const t6 = u8to16(key, 12); - const t7 = u8to16(key, 14); - // https://github.com/floodyberry/poly1305-donna/blob/e6ad6e091d30d7f4ec2d4f978be1fcfcbce72781/poly1305-donna-16.h#L47 - this.r[0] = t0 & 0x1fff; - this.r[1] = ((t0 >>> 13) | (t1 << 3)) & 0x1fff; - this.r[2] = ((t1 >>> 10) | (t2 << 6)) & 0x1f03; - this.r[3] = ((t2 >>> 7) | (t3 << 9)) & 0x1fff; - this.r[4] = ((t3 >>> 4) | (t4 << 12)) & 0x00ff; - this.r[5] = (t4 >>> 1) & 0x1ffe; - this.r[6] = ((t4 >>> 14) | (t5 << 2)) & 0x1fff; - this.r[7] = ((t5 >>> 11) | (t6 << 5)) & 0x1f81; - this.r[8] = ((t6 >>> 8) | (t7 << 8)) & 0x1fff; - this.r[9] = (t7 >>> 5) & 0x007f; - for (let i = 0; i < 8; i++) - this.pad[i] = u8to16(key, 16 + 2 * i); - } - process(data, offset, isLast = false) { - const hibit = isLast ? 0 : 1 << 11; - const { h, r } = this; - const r0 = r[0]; - const r1 = r[1]; - const r2 = r[2]; - const r3 = r[3]; - const r4 = r[4]; - const r5 = r[5]; - const r6 = r[6]; - const r7 = r[7]; - const r8 = r[8]; - const r9 = r[9]; - const t0 = u8to16(data, offset + 0); - const t1 = u8to16(data, offset + 2); - const t2 = u8to16(data, offset + 4); - const t3 = u8to16(data, offset + 6); - const t4 = u8to16(data, offset + 8); - const t5 = u8to16(data, offset + 10); - const t6 = u8to16(data, offset + 12); - const t7 = u8to16(data, offset + 14); - let h0 = h[0] + (t0 & 0x1fff); - let h1 = h[1] + (((t0 >>> 13) | (t1 << 3)) & 0x1fff); - let h2 = h[2] + (((t1 >>> 10) | (t2 << 6)) & 0x1fff); - let h3 = h[3] + (((t2 >>> 7) | (t3 << 9)) & 0x1fff); - let h4 = h[4] + (((t3 >>> 4) | (t4 << 12)) & 0x1fff); - let h5 = h[5] + ((t4 >>> 1) & 0x1fff); - let h6 = h[6] + (((t4 >>> 14) | (t5 << 2)) & 0x1fff); - let h7 = h[7] + (((t5 >>> 11) | (t6 << 5)) & 0x1fff); - let h8 = h[8] + (((t6 >>> 8) | (t7 << 8)) & 0x1fff); - let h9 = h[9] + ((t7 >>> 5) | hibit); - let c = 0; - let d0 = c + h0 * r0 + h1 * (5 * r9) + h2 * (5 * r8) + h3 * (5 * r7) + h4 * (5 * r6); - c = d0 >>> 13; - d0 &= 0x1fff; - d0 += h5 * (5 * r5) + h6 * (5 * r4) + h7 * (5 * r3) + h8 * (5 * r2) + h9 * (5 * r1); - c += d0 >>> 13; - d0 &= 0x1fff; - let d1 = c + h0 * r1 + h1 * r0 + h2 * (5 * r9) + h3 * (5 * r8) + h4 * (5 * r7); - c = d1 >>> 13; - d1 &= 0x1fff; - d1 += h5 * (5 * r6) + h6 * (5 * r5) + h7 * (5 * r4) + h8 * (5 * r3) + h9 * (5 * r2); - c += d1 >>> 13; - d1 &= 0x1fff; - let d2 = c + h0 * r2 + h1 * r1 + h2 * r0 + h3 * (5 * r9) + h4 * (5 * r8); - c = d2 >>> 13; - d2 &= 0x1fff; - d2 += h5 * (5 * r7) + h6 * (5 * r6) + h7 * (5 * r5) + h8 * (5 * r4) + h9 * (5 * r3); - c += d2 >>> 13; - d2 &= 0x1fff; - let d3 = c + h0 * r3 + h1 * r2 + h2 * r1 + h3 * r0 + h4 * (5 * r9); - c = d3 >>> 13; - d3 &= 0x1fff; - d3 += h5 * (5 * r8) + h6 * (5 * r7) + h7 * (5 * r6) + h8 * (5 * r5) + h9 * (5 * r4); - c += d3 >>> 13; - d3 &= 0x1fff; - let d4 = c + h0 * r4 + h1 * r3 + h2 * r2 + h3 * r1 + h4 * r0; - c = d4 >>> 13; - d4 &= 0x1fff; - d4 += h5 * (5 * r9) + h6 * (5 * r8) + h7 * (5 * r7) + h8 * (5 * r6) + h9 * (5 * r5); - c += d4 >>> 13; - d4 &= 0x1fff; - let d5 = c + h0 * r5 + h1 * r4 + h2 * r3 + h3 * r2 + h4 * r1; - c = d5 >>> 13; - d5 &= 0x1fff; - d5 += h5 * r0 + h6 * (5 * r9) + h7 * (5 * r8) + h8 * (5 * r7) + h9 * (5 * r6); - c += d5 >>> 13; - d5 &= 0x1fff; - let d6 = c + h0 * r6 + h1 * r5 + h2 * r4 + h3 * r3 + h4 * r2; - c = d6 >>> 13; - d6 &= 0x1fff; - d6 += h5 * r1 + h6 * r0 + h7 * (5 * r9) + h8 * (5 * r8) + h9 * (5 * r7); - c += d6 >>> 13; - d6 &= 0x1fff; - let d7 = c + h0 * r7 + h1 * r6 + h2 * r5 + h3 * r4 + h4 * r3; - c = d7 >>> 13; - d7 &= 0x1fff; - d7 += h5 * r2 + h6 * r1 + h7 * r0 + h8 * (5 * r9) + h9 * (5 * r8); - c += d7 >>> 13; - d7 &= 0x1fff; - let d8 = c + h0 * r8 + h1 * r7 + h2 * r6 + h3 * r5 + h4 * r4; - c = d8 >>> 13; - d8 &= 0x1fff; - d8 += h5 * r3 + h6 * r2 + h7 * r1 + h8 * r0 + h9 * (5 * r9); - c += d8 >>> 13; - d8 &= 0x1fff; - let d9 = c + h0 * r9 + h1 * r8 + h2 * r7 + h3 * r6 + h4 * r5; - c = d9 >>> 13; - d9 &= 0x1fff; - d9 += h5 * r4 + h6 * r3 + h7 * r2 + h8 * r1 + h9 * r0; - c += d9 >>> 13; - d9 &= 0x1fff; - c = ((c << 2) + c) | 0; - c = (c + d0) | 0; - d0 = c & 0x1fff; - c = c >>> 13; - d1 += c; - h[0] = d0; - h[1] = d1; - h[2] = d2; - h[3] = d3; - h[4] = d4; - h[5] = d5; - h[6] = d6; - h[7] = d7; - h[8] = d8; - h[9] = d9; - } - finalize() { - const { h, pad } = this; - const g = new Uint16Array(10); - let c = h[1] >>> 13; - h[1] &= 0x1fff; - for (let i = 2; i < 10; i++) { - h[i] += c; - c = h[i] >>> 13; - h[i] &= 0x1fff; - } - h[0] += c * 5; - c = h[0] >>> 13; - h[0] &= 0x1fff; - h[1] += c; - c = h[1] >>> 13; - h[1] &= 0x1fff; - h[2] += c; - g[0] = h[0] + 5; - c = g[0] >>> 13; - g[0] &= 0x1fff; - for (let i = 1; i < 10; i++) { - g[i] = h[i] + c; - c = g[i] >>> 13; - g[i] &= 0x1fff; - } - g[9] -= 1 << 13; - let mask = (c ^ 1) - 1; - for (let i = 0; i < 10; i++) - g[i] &= mask; - mask = ~mask; - for (let i = 0; i < 10; i++) - h[i] = (h[i] & mask) | g[i]; - h[0] = (h[0] | (h[1] << 13)) & 0xffff; - h[1] = ((h[1] >>> 3) | (h[2] << 10)) & 0xffff; - h[2] = ((h[2] >>> 6) | (h[3] << 7)) & 0xffff; - h[3] = ((h[3] >>> 9) | (h[4] << 4)) & 0xffff; - h[4] = ((h[4] >>> 12) | (h[5] << 1) | (h[6] << 14)) & 0xffff; - h[5] = ((h[6] >>> 2) | (h[7] << 11)) & 0xffff; - h[6] = ((h[7] >>> 5) | (h[8] << 8)) & 0xffff; - h[7] = ((h[8] >>> 8) | (h[9] << 5)) & 0xffff; - let f = h[0] + pad[0]; - h[0] = f & 0xffff; - for (let i = 1; i < 8; i++) { - f = (((h[i] + pad[i]) | 0) + (f >>> 16)) | 0; - h[i] = f & 0xffff; - } - } - update(data) { - assert.exists(this); - const { buffer, blockLen } = this; - data = toBytes(data); - const len = data.length; - for (let pos = 0; pos < len;) { - const take = Math.min(blockLen - this.pos, len - pos); - // Fast path: we have at least one block in input - if (take === blockLen) { - for (; blockLen <= len - pos; pos += blockLen) - this.process(data, pos); - continue; - } - buffer.set(data.subarray(pos, pos + take), this.pos); - this.pos += take; - pos += take; - if (this.pos === blockLen) { - this.process(buffer, 0, false); - this.pos = 0; - } - } - return this; - } - destroy() { - this.h.fill(0); - this.r.fill(0); - this.buffer.fill(0); - this.pad.fill(0); - } - digestInto(out) { - assert.exists(this); - assert.output(out, this); - this.finished = true; - const { buffer, h } = this; - let { pos } = this; - if (pos) { - buffer[pos++] = 1; - // buffer.subarray(pos).fill(0); - for (; pos < 16; pos++) - buffer[pos] = 0; - this.process(buffer, 0, true); - } - this.finalize(); - let opos = 0; - for (let i = 0; i < 8; i++) { - out[opos++] = h[i] >>> 0; - out[opos++] = h[i] >>> 8; - } - return out; - } - digest() { - const { buffer, outputLen } = this; - this.digestInto(buffer); - const res = buffer.slice(0, outputLen); - this.destroy(); - return res; - } -} -export function wrapConstructorWithKey(hashCons) { - const hashC = (msg, key) => hashCons(key).update(toBytes(msg)).digest(); - const tmp = hashCons(new Uint8Array(32)); - hashC.outputLen = tmp.outputLen; - hashC.blockLen = tmp.blockLen; - hashC.create = (key) => hashCons(key); - return hashC; -} -export const poly1305 = wrapConstructorWithKey((key) => new Poly1305(key)); -//# sourceMappingURL=_poly1305.js.map \ No newline at end of file diff --git a/node_modules/@noble/ciphers/esm/_poly1305.js.map b/node_modules/@noble/ciphers/esm/_poly1305.js.map deleted file mode 100644 index 8aeed80e..00000000 --- a/node_modules/@noble/ciphers/esm/_poly1305.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"_poly1305.js","sourceRoot":"","sources":["../src/_poly1305.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAS,WAAW,EAAQ,MAAM,YAAY,CAAC;AAC/D,OAAO,MAAM,MAAM,cAAc,CAAC;AAElC,0EAA0E;AAC1E,wEAAwE;AACxE,gDAAgD;AAEhD,sFAAsF;AACtF,MAAM,MAAM,GAAG,CAAC,CAAa,EAAE,CAAS,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC;AACtF,MAAM,QAAQ;IAUZ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B,GAAG,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;YACzB,GAAG,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC;SAC1B;QACD,OAAO,GAAG,CAAC;IACb,CAAC;IACD,MAAM;QACJ,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,CAAC;QACnC,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;QACxB,MAAM,GAAG,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC;QACvC,IAAI,CAAC,OAAO,EAAE,CAAC;QACf,OAAO,GAAG,CAAC;IACb,CAAC;CACF;AAGD,MAAM,UAAU,sBAAsB,CAAoB,QAAiC;IACzF,MAAM,KAAK,GAAG,CAAC,GAAU,EAAE,GAAU,EAAc,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAClG,MAAM,GAAG,GAAG,QAAQ,CAAC,IAAI,UAAU,CAAC,EAAE,CAAC,CAAC,CAAC;IACzC,KAAK,CAAC,SAAS,GAAG,GAAG,CAAC,SAAS,CAAC;IAChC,KAAK,CAAC,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC;IAC9B,KAAK,CAAC,MAAM,GAAG,CAAC,GAAU,EAAE,EAAE,CAAC,QAAQ,CAAC,GAAG,CAAC,CAAC;IAC7C,OAAO,KAAK,CAAC;AACf,CAAC;AAED,MAAM,CAAC,MAAM,QAAQ,GAAG,sBAAsB,CAAC,CAAC,GAAG,EAAE,EAAE,CAAC,IAAI,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/ciphers/esm/_polyval.js b/node_modules/@noble/ciphers/esm/_polyval.js deleted file mode 100644 index 8ced625f..00000000 --- a/node_modules/@noble/ciphers/esm/_polyval.js +++ /dev/null @@ -1,100 +0,0 @@ -import { u8, u32, ensureBytes } from './utils.js'; -// AES-SIV polyval, little-endian "mirror image" of AES-GCM GHash -// polynomial hash function. Defined in RFC 8452. -// Reverse bits in u32, constant-time, precompute will be faster, but non-constant time -function rev32(x) { - x = ((x & 1431655765) << 1) | ((x >>> 1) & 1431655765); - x = ((x & 858993459) << 2) | ((x >>> 2) & 858993459); - x = ((x & 252645135) << 4) | ((x >>> 4) & 252645135); - x = ((x & 16711935) << 8) | ((x >>> 8) & 16711935); - return (x << 16) | (x >>> 16); -} -// wrapped 32 bit multiplication -const wrapMul = (a, b) => Math.imul(a, b) >>> 0; -// https://timtaubert.de/blog/2017/06/verified-binary-multiplication-for-ghash/ -function bmul32(x, y) { - const x0 = x & 286331153; - const x1 = x & 572662306; - const x2 = x & 1145324612; - const x3 = x & 2290649224; - const y0 = y & 286331153; - const y1 = y & 572662306; - const y2 = y & 1145324612; - const y3 = y & 2290649224; - let res = (wrapMul(x0, y0) ^ wrapMul(x1, y3) ^ wrapMul(x2, y2) ^ wrapMul(x3, y1)) & 286331153; - res |= (wrapMul(x0, y1) ^ wrapMul(x1, y0) ^ wrapMul(x2, y3) ^ wrapMul(x3, y2)) & 572662306; - res |= (wrapMul(x0, y2) ^ wrapMul(x1, y1) ^ wrapMul(x2, y0) ^ wrapMul(x3, y3)) & 1145324612; - res |= (wrapMul(x0, y3) ^ wrapMul(x1, y2) ^ wrapMul(x2, y1) ^ wrapMul(x3, y0)) & 2290649224; - return res >>> 0; -} -function mulPart(arr) { - const a = new Uint32Array(18); - a[0] = arr[0]; - a[1] = arr[1]; - a[2] = arr[2]; - a[3] = arr[3]; - a[4] = a[0] ^ a[1]; - a[5] = a[2] ^ a[3]; - a[6] = a[0] ^ a[2]; - a[7] = a[1] ^ a[3]; - a[8] = a[6] ^ a[7]; - a[9] = rev32(arr[0]); - a[10] = rev32(arr[1]); - a[11] = rev32(arr[2]); - a[12] = rev32(arr[3]); - a[13] = a[9] ^ a[10]; - a[14] = a[11] ^ a[12]; - a[15] = a[9] ^ a[11]; - a[16] = a[10] ^ a[12]; - a[17] = a[15] ^ a[16]; - return a; -} -export function polyval(h, data) { - ensureBytes(h); - ensureBytes(data); - const s = new Uint32Array(4); - // Precompute for multiplication - const a = mulPart(u32(h)); - if (data.length % 16) - throw new Error('polyval: data must be padded to 16 bytes'); - const data32 = u32(data); - for (let i = 0; i < data32.length; i += 4) { - // Xor - s[0] ^= data32[i + 0]; - s[1] ^= data32[i + 1]; - s[2] ^= data32[i + 2]; - s[3] ^= data32[i + 3]; - // Dot via Karatsuba multiplication, based on MIT-licensed - // https://bearssl.org/gitweb/?p=BearSSL;a=blob;f=src/hash/ghash_ctmul32.c;hb=4b6046412 - const b = mulPart(s); - const c = new Uint32Array(18); - for (let i = 0; i < 18; i++) - c[i] = bmul32(a[i], b[i]); - c[4] ^= c[0] ^ c[1]; - c[5] ^= c[2] ^ c[3]; - c[8] ^= c[6] ^ c[7]; - c[13] ^= c[9] ^ c[10]; - c[14] ^= c[11] ^ c[12]; - c[17] ^= c[15] ^ c[16]; - const zw = new Uint32Array(8); - zw[0] = c[0]; - zw[1] = c[4] ^ (rev32(c[9]) >>> 1); - zw[2] = c[1] ^ c[0] ^ c[2] ^ c[6] ^ (rev32(c[13]) >>> 1); - zw[3] = c[4] ^ c[5] ^ c[8] ^ (rev32(c[10] ^ c[9] ^ c[11] ^ c[15]) >>> 1); - zw[4] = c[2] ^ c[1] ^ c[3] ^ c[7] ^ (rev32(c[13] ^ c[14] ^ c[17]) >>> 1); - zw[5] = c[5] ^ (rev32(c[11] ^ c[10] ^ c[12] ^ c[16]) >>> 1); - zw[6] = c[3] ^ (rev32(c[14]) >>> 1); - zw[7] = rev32(c[12]) >>> 1; - for (let i = 0; i < 4; i++) { - const lw = zw[i]; - zw[i + 4] ^= lw ^ (lw >>> 1) ^ (lw >>> 2) ^ (lw >>> 7); - zw[i + 3] ^= (lw << 31) ^ (lw << 30) ^ (lw << 25); - } - s[0] = zw[4]; - s[1] = zw[5]; - s[2] = zw[6]; - s[3] = zw[7]; - } - return u8(s); -} -//# sourceMappingURL=_polyval.js.map \ No newline at end of file diff --git a/node_modules/@noble/ciphers/esm/_polyval.js.map b/node_modules/@noble/ciphers/esm/_polyval.js.map deleted file mode 100644 index 3b558ff5..00000000 --- a/node_modules/@noble/ciphers/esm/_polyval.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"_polyval.js","sourceRoot":"","sources":["../src/_polyval.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,EAAE,EAAE,GAAG,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAElD,iEAAiE;AACjE,iDAAiD;AAEjD,uFAAuF;AACvF,SAAS,KAAK,CAAC,CAAS;IACtB,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,UAAW,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,GAAG,UAAW,CAAC,CAAC;IACzD,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,SAAW,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,GAAG,SAAW,CAAC,CAAC;IACzD,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,SAAW,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,GAAG,SAAW,CAAC,CAAC;IACzD,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,QAAW,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,KAAK,CAAC,CAAC,GAAG,QAAW,CAAC,CAAC;IACzD,OAAO,CAAC,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,KAAK,EAAE,CAAC,CAAC;AAChC,CAAC;AAED,gCAAgC;AAChC,MAAM,OAAO,GAAG,CAAC,CAAS,EAAE,CAAS,EAAE,EAAE,CAAC,I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AC;QAC5D,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;QACpC,EAAE,CAAC,CAAC,CAAC,GAAG,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,CAAC,CAAC;QAC3B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE;YAC1B,MAAM,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC;YACjB,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,GAAG,CAAC,EAAE,KAAK,CAAC,CAAC,GAAG,CAAC,EAAE,KAAK,CAAC,CAAC,GAAG,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC;YACvD,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,IAAI,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,CAAC,GAAG,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC;SACnD;QAED,CAAC,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC;QACb,CAAC,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC;QACb,CAAC,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC;QACb,CAAC,CAAC,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC;KACd;IACD,OAAO,EAAE,CAAC,CAAC,CAAC,CAAC;AACf,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/ciphers/esm/_salsa.js b/node_modules/@noble/ciphers/esm/_salsa.js deleted file mode 100644 index c2a0530a..00000000 --- a/node_modules/@noble/ciphers/esm/_salsa.js +++ /dev/null @@ -1,154 +0,0 @@ -// Basic utils for salsa-like ciphers -// Check out _micro.ts for descriptive documentation. -import assert from './_assert.js'; -import { u32, utf8ToBytes, checkOpts } from './utils.js'; -/* -RFC8439 requires multi-step cipher stream, where -authKey starts with counter: 0, actual msg with counter: 1. - -For this, we need a way to re-use nonce / counter: - - const counter = new Uint8Array(4); - chacha(..., counter, ...); // counter is now 1 - chacha(..., counter, ...); // counter is now 2 - -This is complicated: - -- Original papers don't allow mutating counters -- Counter overflow is undefined: https://mailarchive.ietf.org/arch/msg/cfrg/gsOnTJzcbgG6OqD8Sc0GO5aR_tU/ -- 3rd-party library stablelib implementation uses an approach where you can provide - nonce and counter instead of just nonce - and it will re-use it -- We could have did something similar, but ChaCha has different counter position - (counter | nonce), which is not composable with XChaCha, because full counter - is (nonce16 | counter | nonce16). Stablelib doesn't support in-place counter for XChaCha. -- We could separate nonce & counter and provide separate API for counter re-use, but - there are different counter sizes depending on an algorithm. -- Salsa & ChaCha also differ in structures of key / sigma: - - salsa: c0 | k(4) | c1 | nonce(2) | ctr(2) | c2 | k(4) | c4 - chacha: c(4) | k(8) | ctr(1) | nonce(3) - chachaDJB: c(4) | k(8) | ctr(2) | nonce(2) -- Creating function such as `setSalsaState(key, nonce, sigma, data)` won't work, - because we can't re-use counter array -- 32-bit nonce is `2 ** 32 * 64` = 256GB with 32-bit counter -- JS does not allow UintArrays bigger than 4GB, so supporting 64-bit counters doesn't matter - -Structure is as following: - -key=16 -> sigma16, k=key|key -key=32 -> sigma32, k=key - -nonces: -salsa20: 8 (8-byte counter) -chacha20djb: 8 (8-byte counter) -chacha20tls: 12 (4-byte counter) -xsalsa: 24 (16 -> hsalsa, 8 -> old nonce) -xchacha: 24 (16 -> hchacha, 8 -> old nonce) - -https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-xchacha#appendix-A.2 -Use the subkey and remaining 8 byte nonce with ChaCha20 as normal -(prefixed by 4 NUL bytes, since [RFC8439] specifies a 12-byte nonce). -*/ -const sigma16 = utf8ToBytes('expand 16-byte k'); -const sigma32 = utf8ToBytes('expand 32-byte k'); -const sigma16_32 = u32(sigma16); -const sigma32_32 = u32(sigma32); -// Is byte array aligned to 4 byte offset (u32)? -const isAligned32 = (b) => !(b.byteOffset % 4); -export const salsaBasic = (opts) => { - const { core, rounds, counterRight, counterLen, allow128bitKeys, extendNonceFn, blockLen } = checkOpts({ rounds: 20, counterRight: false, counterLen: 8, allow128bitKeys: true, blockLen: 64 }, opts); - assert.number(counterLen); - assert.number(rounds); - assert.number(blockLen); - assert.bool(counterRight); - assert.bool(allow128bitKeys); - const blockLen32 = blockLen / 4; - if (blockLen % 4 !== 0) - throw new Error('Salsa/ChaCha: blockLen must be aligned to 4 bytes'); - return (key, nonce, data, output, counter = 0) => { - assert.bytes(key); - assert.bytes(nonce); - assert.bytes(data); - if (!output) - output = new Uint8Array(data.length); - assert.bytes(output); - assert.number(counter); - // > new Uint32Array([2**32]) - // Uint32Array(1) [ 0 ] - // > new Uint32Array([2**32-1]) - // Uint32Array(1) [ 4294967295 ] - if (counter < 0 || counter >= 2 ** 32 - 1) - throw new Error('Salsa/ChaCha: counter overflow'); - if (output.length < data.length) { - throw new Error(`Salsa/ChaCha: output (${output.length}) is shorter than data (${data.length})`); - } - const toClean = []; - let k, sigma; - // Handle 128 byte keys - if (key.length === 32) { - k = key; - sigma = sigma32_32; - } - else if (key.length === 16 && allow128bitKeys) { - k = new Uint8Array(32); - k.set(key); - k.set(key, 16); - sigma = sigma16_32; - toClean.push(k); - } - else - throw new Error(`Salsa/ChaCha: invalid 32-byte key, got length=${key.length}`); - // Handle extended nonce (HChaCha/HSalsa) - if (extendNonceFn) { - if (nonce.length <= 16) - throw new Error(`Salsa/ChaCha: extended nonce must be bigger than 16 bytes`); - k = extendNonceFn(sigma, k, nonce.subarray(0, 16), new Uint8Array(32)); - toClean.push(k); - nonce = nonce.subarray(16); - } - // Handle nonce counter - const nonceLen = 16 - counterLen; - if (nonce.length !== nonceLen) - throw new Error(`Salsa/ChaCha: nonce must be ${nonceLen} or 16 bytes`); - // Pad counter when nonce is 64 bit - if (nonceLen !== 12) { - const nc = new Uint8Array(12); - nc.set(nonce, counterRight ? 0 : 12 - nonce.length); - toClean.push((nonce = nc)); - } - // Counter positions - const block = new Uint8Array(blockLen); - // Cast to Uint32Array for speed - const b32 = u32(block); - const k32 = u32(k); - const n32 = u32(nonce); - // Make sure that buffers aligned to 4 bytes - const d32 = isAligned32(data) && u32(data); - const o32 = isAligned32(output) && u32(output); - toClean.push(b32); - const len = data.length; - for (let pos = 0, ctr = counter; pos < len; ctr++) { - core(sigma, k32, n32, b32, ctr, rounds); - if (ctr >= 2 ** 32 - 1) - throw new Error('Salsa/ChaCha: counter overflow'); - const take = Math.min(blockLen, len - pos); - // full block && aligned to 4 bytes - if (take === blockLen && o32 && d32) { - const pos32 = pos / 4; - if (pos % 4 !== 0) - throw new Error('Salsa/ChaCha: invalid block position'); - for (let j = 0; j < blockLen32; j++) - o32[pos32 + j] = d32[pos32 + j] ^ b32[j]; - pos += blockLen; - continue; - } - for (let j = 0; j < take; j++) - output[pos + j] = data[pos + j] ^ block[j]; - pos += take; - } - for (let i = 0; i < toClean.length; i++) - toClean[i].fill(0); - return output; - }; -}; -//# sourceMappingURL=_salsa.js.map \ No newline at end of file diff --git a/node_modules/@noble/ciphers/esm/_salsa.js.map b/node_modules/@noble/ciphers/esm/_salsa.js.map deleted file mode 100644 index 5834e71b..00000000 --- a/node_modules/@noble/ciphers/esm/_salsa.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"_salsa.js","sourceRoot":"","sources":["../src/_salsa.ts"],"names":[],"mappings":"AAAA,qCAAqC;AACrC,qDAAqD;AACrD,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,GAAG,EAAE,WAAW,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAEzD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA8CE;AAEF,MAAM,OAAO,GAAG,WAAW,CAAC,kBAAkB,CAAC,CAAC;AAChD,MAA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AC,GAAG,CAAC,EAAE,CAAC,GAAG,OAAO,CAAC,MAAM,EAAE,CAAC,EAAE;YAAE,OAAO,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QAC5D,OAAO,MAAM,CAAC;IAChB,CAAC,CAAC;AACJ,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/ciphers/esm/chacha.js b/node_modules/@noble/ciphers/esm/chacha.js deleted file mode 100644 index 8719b51b..00000000 --- a/node_modules/@noble/ciphers/esm/chacha.js +++ /dev/null @@ -1,329 +0,0 @@ -import { createView, ensureBytes, equalBytes, setBigUint64, u32 } from './utils.js'; -import { poly1305 } from './_poly1305.js'; -import { salsaBasic } from './_salsa.js'; -// ChaCha20 stream cipher was released in 2008. ChaCha aims to increase -// the diffusion per round, but had slightly less cryptanalysis. -// https://cr.yp.to/chacha.html, http://cr.yp.to/chacha/chacha-20080128.pdf -// Left rotate for uint32 -const rotl = (a, b) => (a << b) | (a >>> (32 - b)); -/** - * ChaCha core function. - */ -// prettier-ignore -function chachaCore(c, k, n, out, cnt, rounds = 20) { - let y00 = c[0], y01 = c[1], y02 = c[2], y03 = c[3]; // "expa" "nd 3" "2-by" "te k" - let y04 = k[0], y05 = k[1], y06 = k[2], y07 = k[3]; // Key Key Key Key - let y08 = k[4], y09 = k[5], y10 = k[6], y11 = k[7]; // Key Key Key Key - let y12 = cnt, y13 = n[0], y14 = n[1], y15 = n[2]; // Counter Counter Nonce Nonce - // Save state to temporary variables - let x00 = y00, x01 = y01, x02 = y02, x03 = y03, x04 = y04, x05 = y05, x06 = y06, x07 = y07, x08 = y08, x09 = y09, x10 = y10, x11 = y11, x12 = y12, x13 = y13, x14 = y14, x15 = y15; - // Main loop - for (let i = 0; i < rounds; i += 2) { - x00 = (x00 + x04) | 0; - x12 = rotl(x12 ^ x00, 16); - x08 = (x08 + x12) | 0; - x04 = rotl(x04 ^ x08, 12); - x00 = (x00 + x04) | 0; - x12 = rotl(x12 ^ x00, 8); - x08 = (x08 + x12) | 0; - x04 = rotl(x04 ^ x08, 7); - x01 = (x01 + x05) | 0; - x13 = rotl(x13 ^ x01, 16); - x09 = (x09 + x13) | 0; - x05 = rotl(x05 ^ x09, 12); - x01 = (x01 + x05) | 0; - x13 = rotl(x13 ^ x01, 8); - x09 = (x09 + x13) | 0; - x05 = rotl(x05 ^ x09, 7); - x02 = (x02 + x06) | 0; - x14 = rotl(x14 ^ x02, 16); - x10 = (x10 + x14) | 0; - x06 = rotl(x06 ^ x10, 12); - x02 = (x02 + x06) | 0; - x14 = rotl(x14 ^ x02, 8); - x10 = (x10 + x14) | 0; - x06 = rotl(x06 ^ x10, 7); - x03 = (x03 + x07) | 0; - x15 = rotl(x15 ^ x03, 16); - x11 = (x11 + x15) | 0; - x07 = rotl(x07 ^ x11, 12); - x03 = (x03 + x07) | 0; - x15 = rotl(x15 ^ x03, 8); - x11 = (x11 + x15) | 0; - x07 = rotl(x07 ^ x11, 7); - x00 = (x00 + x05) | 0; - x15 = rotl(x15 ^ x00, 16); - x10 = (x10 + x15) | 0; - x05 = rotl(x05 ^ x10, 12); - x00 = (x00 + x05) | 0; - x15 = rotl(x15 ^ x00, 8); - x10 = (x10 + x15) | 0; - x05 = rotl(x05 ^ x10, 7); - x01 = (x01 + x06) | 0; - x12 = rotl(x12 ^ x01, 16); - x11 = (x11 + x12) | 0; - x06 = rotl(x06 ^ x11, 12); - x01 = (x01 + x06) | 0; - x12 = rotl(x12 ^ x01, 8); - x11 = (x11 + x12) | 0; - x06 = rotl(x06 ^ x11, 7); - x02 = (x02 + x07) | 0; - x13 = rotl(x13 ^ x02, 16); - x08 = (x08 + x13) | 0; - x07 = rotl(x07 ^ x08, 12); - x02 = (x02 + x07) | 0; - x13 = rotl(x13 ^ x02, 8); - x08 = (x08 + x13) | 0; - x07 = rotl(x07 ^ x08, 7); - x03 = (x03 + x04) | 0; - x14 = rotl(x14 ^ x03, 16); - x09 = (x09 + x14) | 0; - x04 = rotl(x04 ^ x09, 12); - x03 = (x03 + x04) | 0; - x14 = rotl(x14 ^ x03, 8); - x09 = (x09 + x14) | 0; - x04 = rotl(x04 ^ x09, 7); - } - // Write output - let oi = 0; - out[oi++] = (y00 + x00) | 0; - out[oi++] = (y01 + x01) | 0; - out[oi++] = (y02 + x02) | 0; - out[oi++] = (y03 + x03) | 0; - out[oi++] = (y04 + x04) | 0; - out[oi++] = (y05 + x05) | 0; - out[oi++] = (y06 + x06) | 0; - out[oi++] = (y07 + x07) | 0; - out[oi++] = (y08 + x08) | 0; - out[oi++] = (y09 + x09) | 0; - out[oi++] = (y10 + x10) | 0; - out[oi++] = (y11 + x11) | 0; - out[oi++] = (y12 + x12) | 0; - out[oi++] = (y13 + x13) | 0; - out[oi++] = (y14 + x14) | 0; - out[oi++] = (y15 + x15) | 0; -} -/** - * hchacha helper method, used primarily in xchacha, to hash - * key and nonce into key' and nonce'. - * Same as chachaCore, but there doesn't seem to be a way to move the block - * out without 25% performance hit. - */ -// prettier-ignore -export function hchacha(c, key, src, out) { - const k32 = u32(key); - const i32 = u32(src); - const o32 = u32(out); - let x00 = c[0], x01 = c[1], x02 = c[2], x03 = c[3]; - let x04 = k32[0], x05 = k32[1], x06 = k32[2], x07 = k32[3]; - let x08 = k32[4], x09 = k32[5], x10 = k32[6], x11 = k32[7]; - let x12 = i32[0], x13 = i32[1], x14 = i32[2], x15 = i32[3]; - for (let i = 0; i < 20; i += 2) { - x00 = (x00 + x04) | 0; - x12 = rotl(x12 ^ x00, 16); - x08 = (x08 + x12) | 0; - x04 = rotl(x04 ^ x08, 12); - x00 = (x00 + x04) | 0; - x12 = rotl(x12 ^ x00, 8); - x08 = (x08 + x12) | 0; - x04 = rotl(x04 ^ x08, 7); - x01 = (x01 + x05) | 0; - x13 = rotl(x13 ^ x01, 16); - x09 = (x09 + x13) | 0; - x05 = rotl(x05 ^ x09, 12); - x01 = (x01 + x05) | 0; - x13 = rotl(x13 ^ x01, 8); - x09 = (x09 + x13) | 0; - x05 = rotl(x05 ^ x09, 7); - x02 = (x02 + x06) | 0; - x14 = rotl(x14 ^ x02, 16); - x10 = (x10 + x14) | 0; - x06 = rotl(x06 ^ x10, 12); - x02 = (x02 + x06) | 0; - x14 = rotl(x14 ^ x02, 8); - x10 = (x10 + x14) | 0; - x06 = rotl(x06 ^ x10, 7); - x03 = (x03 + x07) | 0; - x15 = rotl(x15 ^ x03, 16); - x11 = (x11 + x15) | 0; - x07 = rotl(x07 ^ x11, 12); - x03 = (x03 + x07) | 0; - x15 = rotl(x15 ^ x03, 8); - x11 = (x11 + x15) | 0; - x07 = rotl(x07 ^ x11, 7); - x00 = (x00 + x05) | 0; - x15 = rotl(x15 ^ x00, 16); - x10 = (x10 + x15) | 0; - x05 = rotl(x05 ^ x10, 12); - x00 = (x00 + x05) | 0; - x15 = rotl(x15 ^ x00, 8); - x10 = (x10 + x15) | 0; - x05 = rotl(x05 ^ x10, 7); - x01 = (x01 + x06) | 0; - x12 = rotl(x12 ^ x01, 16); - x11 = (x11 + x12) | 0; - x06 = rotl(x06 ^ x11, 12); - x01 = (x01 + x06) | 0; - x12 = rotl(x12 ^ x01, 8); - x11 = (x11 + x12) | 0; - x06 = rotl(x06 ^ x11, 7); - x02 = (x02 + x07) | 0; - x13 = rotl(x13 ^ x02, 16); - x08 = (x08 + x13) | 0; - x07 = rotl(x07 ^ x08, 12); - x02 = (x02 + x07) | 0; - x13 = rotl(x13 ^ x02, 8); - x08 = (x08 + x13) | 0; - x07 = rotl(x07 ^ x08, 7); - x03 = (x03 + x04) | 0; - x14 = rotl(x14 ^ x03, 16); - x09 = (x09 + x14) | 0; - x04 = rotl(x04 ^ x09, 12); - x03 = (x03 + x04) | 0; - x14 = rotl(x14 ^ x03, 8); - x09 = (x09 + x14) | 0; - x04 = rotl(x04 ^ x09, 7); - } - o32[0] = x00; - o32[1] = x01; - o32[2] = x02; - o32[3] = x03; - o32[4] = x12; - o32[5] = x13; - o32[6] = x14; - o32[7] = x15; - return out; -} -/** - * Original, non-RFC chacha20 from DJB. 8-byte nonce, 8-byte counter. - */ -export const chacha20orig = /* @__PURE__ */ salsaBasic({ - core: chachaCore, - counterRight: false, - counterLen: 8, -}); -/** - * ChaCha stream cipher. Conforms to RFC 8439 (IETF, TLS). 12-byte nonce, 4-byte counter. - * With 12-byte nonce, it's not safe to use fill it with random (CSPRNG), due to collision chance. - */ -export const chacha20 = /* @__PURE__ */ salsaBasic({ - core: chachaCore, - counterRight: false, - counterLen: 4, - allow128bitKeys: false, -}); -/** - * XChaCha eXtended-nonce ChaCha. 24-byte nonce. - * With 24-byte nonce, it's safe to use fill it with random (CSPRNG). - * https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-xchacha - */ -export const xchacha20 = /* @__PURE__ */ salsaBasic({ - core: chachaCore, - counterRight: false, - counterLen: 8, - extendNonceFn: hchacha, - allow128bitKeys: false, -}); -/** - * Reduced 8-round chacha, described in original paper. - */ -export const chacha8 = /* @__PURE__ */ salsaBasic({ - core: chachaCore, - counterRight: false, - counterLen: 4, - rounds: 8, -}); -/** - * Reduced 12-round chacha, described in original paper. - */ -export const chacha12 = /* @__PURE__ */ salsaBasic({ - core: chachaCore, - counterRight: false, - counterLen: 4, - rounds: 12, -}); -const ZERO = /* @__PURE__ */ new Uint8Array(16); -// Pad to digest size with zeros -const updatePadded = (h, msg) => { - h.update(msg); - const left = msg.length % 16; - if (left) - h.update(ZERO.subarray(left)); -}; -const computeTag = (fn, key, nonce, data, AAD) => { - const authKey = fn(key, nonce, new Uint8Array(32)); - const h = poly1305.create(authKey); - if (AAD) - updatePadded(h, AAD); - updatePadded(h, data); - const num = new Uint8Array(16); - const view = createView(num); - setBigUint64(view, 0, BigInt(AAD ? AAD.length : 0), true); - setBigUint64(view, 8, BigInt(data.length), true); - h.update(num); - const res = h.digest(); - authKey.fill(0); - return res; -}; -/** - * AEAD algorithm from RFC 8439. - * Salsa20 and chacha (RFC 8439) use poly1305 differently. - * We could have composed them similar to: - * https://github.com/paulmillr/scure-base/blob/b266c73dde977b1dd7ef40ef7a23cc15aab526b3/index.ts#L250 - * But it's hard because of authKey: - * In salsa20, authKey changes position in salsa stream. - * In chacha, authKey can't be computed inside computeTag, it modifies the counter. - */ -export const _poly1305_aead = (xorStream) => (key, nonce, AAD) => { - const tagLength = 16; - ensureBytes(key, 32); - ensureBytes(nonce); - return { - tagLength, - encrypt: (plaintext, output) => { - const plength = plaintext.length; - const clength = plength + tagLength; - if (output) { - ensureBytes(output, clength); - } - else { - output = new Uint8Array(clength); - } - xorStream(key, nonce, plaintext, output, 1); - const tag = computeTag(xorStream, key, nonce, output.subarray(0, -tagLength), AAD); - output.set(tag, plength); // append tag - return output; - }, - decrypt: (ciphertext, output) => { - const clength = ciphertext.length; - const plength = clength - tagLength; - if (clength < tagLength) - throw new Error(`encrypted data must be at least ${tagLength} bytes`); - if (output) { - ensureBytes(output, plength); - } - else { - output = new Uint8Array(plength); - } - const data = ciphertext.subarray(0, -tagLength); - const passedTag = ciphertext.subarray(-tagLength); - const tag = computeTag(xorStream, key, nonce, data, AAD); - if (!equalBytes(passedTag, tag)) - throw new Error('invalid tag'); - xorStream(key, nonce, data, output, 1); - return output; - }, - }; -}; -/** - * ChaCha20-Poly1305 from RFC 8439. - * With 12-byte nonce, it's not safe to use fill it with random (CSPRNG), due to collision chance. - */ -export const chacha20poly1305 = /* @__PURE__ */ _poly1305_aead(chacha20); -/** - * XChaCha20-Poly1305 extended-nonce chacha. - * https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-xchacha - * With 24-byte nonce, it's safe to use fill it with random (CSPRNG). - */ -export const xchacha20poly1305 = /* @__PURE__ */ _poly1305_aead(xchacha20); -//# sourceMappingURL=chacha.js.map \ No newline at end of file diff --git a/node_modules/@noble/ciphers/esm/chacha.js.map b/node_modules/@noble/ciphers/esm/chacha.js.map deleted file mode 100644 index 67418bb3..00000000 --- a/node_modules/@noble/ciphers/esm/chacha.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"chacha.js","sourceR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iBAAM;gBACL,MAAM,GAAG,IAAI,UAAU,CAAC,OAAO,CAAC,CAAC;aAClC;YACD,MAAM,IAAI,GAAG,UAAU,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,SAAS,CAAC,CAAC;YAChD,MAAM,SAAS,GAAG,UAAU,CAAC,QAAQ,CAAC,CAAC,SAAS,CAAC,CAAC;YAClD,MAAM,GAAG,GAAG,UAAU,CAAC,SAAS,EAAE,GAAG,EAAE,KAAK,EAAE,IAAI,EAAE,GAAG,CAAC,CAAC;YACzD,IAAI,CAAC,UAAU,CAAC,SAAS,EAAE,GAAG,CAAC;gBAAE,MAAM,IAAI,KAAK,CAAC,aAAa,CAAC,CAAC;YAChE,SAAS,CAAC,GAAG,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC;YACvC,OAAO,MAAM,CAAC;QAChB,CAAC;KACF,CAAC;AACJ,CAAC,CAAC;AAEJ;;;GAGG;AACH,MAAM,CAAC,MAAM,gBAAgB,GAAG,eAAe,CAAC,cAAc,CAAC,QAAQ,CAAC,CAAC;AACzE;;;;GAIG;AACH,MAAM,CAAC,MAAM,iBAAiB,GAAG,eAAe,CAAC,cAAc,CAAC,SAAS,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/ciphers/esm/index.js b/node_modules/@noble/ciphers/esm/index.js deleted file mode 100644 index 5a9cbf16..00000000 --- a/node_modules/@noble/ciphers/esm/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -throw new Error('noble-ciphers have no entry-point: consult README for usage'); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@noble/ciphers/esm/index.js.map b/node_modules/@noble/ciphers/esm/index.js.map deleted file mode 100644 index b10ac5ec..00000000 --- a/node_modules/@noble/ciphers/esm/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,MAAM,IAAI,KAAK,CAAC,6DAA6D,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/ciphers/esm/package.json b/node_modules/@noble/ciphers/esm/package.json deleted file mode 100644 index cf1903ab..00000000 --- a/node_modules/@noble/ciphers/esm/package.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "type": "module", - "browser": { - "node:crypto": false - }, - "node": { - "./crypto": "./esm/cryptoNode.js" - } -} diff --git a/node_modules/@noble/ciphers/esm/salsa.js b/node_modules/@noble/ciphers/esm/salsa.js deleted file mode 100644 index 5c7ecdbf..00000000 --- a/node_modules/@noble/ciphers/esm/salsa.js +++ /dev/null @@ -1,207 +0,0 @@ -import { ensureBytes, u32, equalBytes } from './utils.js'; -import { salsaBasic } from './_salsa.js'; -import { poly1305 } from './_poly1305.js'; -// Salsa20 stream cipher was released in 2005. -// Salsa's goal was to implement AES replacement that does not rely on S-Boxes, -// which are hard to implement in a constant-time manner. -// https://cr.yp.to/snuffle.html, https://cr.yp.to/snuffle/salsafamily-20071225.pdf -// Left rotate for uint32 -const rotl = (a, b) => (a << b) | (a >>> (32 - b)); -/** - * Salsa20 core function. - */ -// prettier-ignore -function salsaCore(c, k, i, out, cnt, rounds = 20) { - // Based on https://cr.yp.to/salsa20.html - let y00 = c[0], y01 = k[0], y02 = k[1], y03 = k[2]; // "expa" Key Key Key - let y04 = k[3], y05 = c[1], y06 = i[0], y07 = i[1]; // Key "nd 3" Nonce Nonce - let y08 = cnt, y09 = 0, y10 = c[2], y11 = k[4]; // Pos. Pos. "2-by" Key - let y12 = k[5], y13 = k[6], y14 = k[7], y15 = c[3]; // Key Key Key "te k" - // Save state to temporary variables - let x00 = y00, x01 = y01, x02 = y02, x03 = y03, x04 = y04, x05 = y05, x06 = y06, x07 = y07, x08 = y08, x09 = y09, x10 = y10, x11 = y11, x12 = y12, x13 = y13, x14 = y14, x15 = y15; - // Main loop - for (let i = 0; i < rounds; i += 2) { - x04 ^= rotl(x00 + x12 | 0, 7); - x08 ^= rotl(x04 + x00 | 0, 9); - x12 ^= rotl(x08 + x04 | 0, 13); - x00 ^= rotl(x12 + x08 | 0, 18); - x09 ^= rotl(x05 + x01 | 0, 7); - x13 ^= rotl(x09 + x05 | 0, 9); - x01 ^= rotl(x13 + x09 | 0, 13); - x05 ^= rotl(x01 + x13 | 0, 18); - x14 ^= rotl(x10 + x06 | 0, 7); - x02 ^= rotl(x14 + x10 | 0, 9); - x06 ^= rotl(x02 + x14 | 0, 13); - x10 ^= rotl(x06 + x02 | 0, 18); - x03 ^= rotl(x15 + x11 | 0, 7); - x07 ^= rotl(x03 + x15 | 0, 9); - x11 ^= rotl(x07 + x03 | 0, 13); - x15 ^= rotl(x11 + x07 | 0, 18); - x01 ^= rotl(x00 + x03 | 0, 7); - x02 ^= rotl(x01 + x00 | 0, 9); - x03 ^= rotl(x02 + x01 | 0, 13); - x00 ^= rotl(x03 + x02 | 0, 18); - x06 ^= rotl(x05 + x04 | 0, 7); - x07 ^= rotl(x06 + x05 | 0, 9); - x04 ^= rotl(x07 + x06 | 0, 13); - x05 ^= rotl(x04 + x07 | 0, 18); - x11 ^= rotl(x10 + x09 | 0, 7); - x08 ^= rotl(x11 + x10 | 0, 9); - x09 ^= rotl(x08 + x11 | 0, 13); - x10 ^= rotl(x09 + x08 | 0, 18); - x12 ^= rotl(x15 + x14 | 0, 7); - x13 ^= rotl(x12 + x15 | 0, 9); - x14 ^= rotl(x13 + x12 | 0, 13); - x15 ^= rotl(x14 + x13 | 0, 18); - } - // Write output - let oi = 0; - out[oi++] = (y00 + x00) | 0; - out[oi++] = (y01 + x01) | 0; - out[oi++] = (y02 + x02) | 0; - out[oi++] = (y03 + x03) | 0; - out[oi++] = (y04 + x04) | 0; - out[oi++] = (y05 + x05) | 0; - out[oi++] = (y06 + x06) | 0; - out[oi++] = (y07 + x07) | 0; - out[oi++] = (y08 + x08) | 0; - out[oi++] = (y09 + x09) | 0; - out[oi++] = (y10 + x10) | 0; - out[oi++] = (y11 + x11) | 0; - out[oi++] = (y12 + x12) | 0; - out[oi++] = (y13 + x13) | 0; - out[oi++] = (y14 + x14) | 0; - out[oi++] = (y15 + x15) | 0; -} -/** - * hsalsa hashing function, used primarily in xsalsa, to hash - * key and nonce into key' and nonce'. - * Same as salsaCore, but there doesn't seem to be a way to move the block - * out without 25% performance hit. - */ -// prettier-ignore -export function hsalsa(c, key, nonce, out) { - const k32 = u32(key); - const i32 = u32(nonce); - const o32 = u32(out); - let x00 = c[0], x01 = k32[0], x02 = k32[1], x03 = k32[2], x04 = k32[3]; - let x05 = c[1], x06 = i32[0], x07 = i32[1], x08 = i32[2], x09 = i32[3]; - let x10 = c[2], x11 = k32[4], x12 = k32[5], x13 = k32[6], x14 = k32[7]; - let x15 = c[3]; - // Main loop - for (let i = 0; i < 20; i += 2) { - x04 ^= rotl(x00 + x12 | 0, 7); - x08 ^= rotl(x04 + x00 | 0, 9); - x12 ^= rotl(x08 + x04 | 0, 13); - x00 ^= rotl(x12 + x08 | 0, 18); - x09 ^= rotl(x05 + x01 | 0, 7); - x13 ^= rotl(x09 + x05 | 0, 9); - x01 ^= rotl(x13 + x09 | 0, 13); - x05 ^= rotl(x01 + x13 | 0, 18); - x14 ^= rotl(x10 + x06 | 0, 7); - x02 ^= rotl(x14 + x10 | 0, 9); - x06 ^= rotl(x02 + x14 | 0, 13); - x10 ^= rotl(x06 + x02 | 0, 18); - x03 ^= rotl(x15 + x11 | 0, 7); - x07 ^= rotl(x03 + x15 | 0, 9); - x11 ^= rotl(x07 + x03 | 0, 13); - x15 ^= rotl(x11 + x07 | 0, 18); - x01 ^= rotl(x00 + x03 | 0, 7); - x02 ^= rotl(x01 + x00 | 0, 9); - x03 ^= rotl(x02 + x01 | 0, 13); - x00 ^= rotl(x03 + x02 | 0, 18); - x06 ^= rotl(x05 + x04 | 0, 7); - x07 ^= rotl(x06 + x05 | 0, 9); - x04 ^= rotl(x07 + x06 | 0, 13); - x05 ^= rotl(x04 + x07 | 0, 18); - x11 ^= rotl(x10 + x09 | 0, 7); - x08 ^= rotl(x11 + x10 | 0, 9); - x09 ^= rotl(x08 + x11 | 0, 13); - x10 ^= rotl(x09 + x08 | 0, 18); - x12 ^= rotl(x15 + x14 | 0, 7); - x13 ^= rotl(x12 + x15 | 0, 9); - x14 ^= rotl(x13 + x12 | 0, 13); - x15 ^= rotl(x14 + x13 | 0, 18); - } - o32[0] = x00; - o32[1] = x05; - o32[2] = x10; - o32[3] = x15; - o32[4] = x06; - o32[5] = x07; - o32[6] = x08; - o32[7] = x09; - return out; -} -/** - * Salsa20 from original paper. - * With 12-byte nonce, it's not safe to use fill it with random (CSPRNG), due to collision chance. - */ -export const salsa20 = /* @__PURE__ */ salsaBasic({ core: salsaCore, counterRight: true }); -/** - * xsalsa20 eXtended-nonce salsa. - * With 24-byte nonce, it's safe to use fill it with random (CSPRNG). - */ -export const xsalsa20 = /* @__PURE__ */ salsaBasic({ - core: salsaCore, - counterRight: true, - extendNonceFn: hsalsa, - allow128bitKeys: false, -}); -/** - * xsalsa20-poly1305 eXtended-nonce salsa. - * With 24-byte nonce, it's safe to use fill it with random (CSPRNG). - * Also known as secretbox from libsodium / nacl. - */ -export const xsalsa20poly1305 = (key, nonce) => { - const tagLength = 16; - ensureBytes(key, 32); - ensureBytes(nonce, 24); - return { - tagLength, - encrypt: (plaintext, output) => { - ensureBytes(plaintext); - // This is small optimization (calculate auth key with same call as encryption itself) makes it hard - // to separate tag calculation and encryption itself, since 32 byte is half-block of salsa (64 byte) - const clength = plaintext.length + 32; - if (output) { - ensureBytes(output, clength); - } - else { - output = new Uint8Array(clength); - } - output.set(plaintext, 32); - xsalsa20(key, nonce, output, output); - const authKey = output.subarray(0, 32); - const tag = poly1305(output.subarray(32), authKey); - // Clean auth key, even though JS provides no guarantees about memory cleaning - output.set(tag, tagLength); - output.subarray(0, tagLength).fill(0); - return output.subarray(tagLength); - }, - decrypt: (ciphertext) => { - ensureBytes(ciphertext); - const clength = ciphertext.length; - if (clength < tagLength) - throw new Error('encrypted data should be at least 16 bytes'); - // Create new ciphertext array: - // auth tag auth tag from ciphertext ciphertext - // [bytes 0..16] [bytes 16..32] [bytes 32..] - // 16 instead of 32, because we already have 16 byte tag - const ciphertext_ = new Uint8Array(clength + tagLength); // alloc - ciphertext_.set(ciphertext, tagLength); - // Each xsalsa20 calls to hsalsa to calculate key, but seems not much perf difference - // Separate call to calculate authkey, since first bytes contains tag - const authKey = xsalsa20(key, nonce, new Uint8Array(32)); // alloc(32) - const tag = poly1305(ciphertext_.subarray(32), authKey); - if (!equalBytes(ciphertext_.subarray(16, 32), tag)) - throw new Error('invalid tag'); - const plaintext = xsalsa20(key, nonce, ciphertext_); // alloc - // Clean auth key, even though JS provides no guarantees about memory cleaning - plaintext.subarray(0, 32).fill(0); - authKey.fill(0); - return plaintext.subarray(32); - }, - }; -}; -//# sourceMappingURL=salsa.js.map \ No newline at end of file diff --git a/node_modules/@noble/ciphers/esm/salsa.js.map b/node_modules/@noble/ciphers/esm/salsa.js.map deleted file mode 100644 index 29b90c37..00000000 --- a/node_modules/@noble/ciphers/esm/salsa.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"salsa.js","sourceRoot":"","sources":["../src/salsa.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,GAAG,EAAE,UAAU,EAAU,MAAM,YAAY,CAAC;AAClE,OAAO,EAAE,UAAU,EAAE,MAAM,aAAa,CAAC;AACzC,OAAO,EAAE,QAAQ,EAAE,MAAM,gBAAgB,CAAC;AAE1C,8CAA8C;AAC9C,+EAA+E;AAC/E,yDAAyD;AACzD,mFAAmF;AAEnF,yBAAyB;AACzB,MAAM,IAAI,GAAG,CAAC,CAAS,EAAE,CAAS,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;AAEnE;;GAEG;AACH,kBAAkB;AAClB,SAAS,SAAS,CAChB,CAAc,EAAE,CAAc,EAAE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C,CAAC;QAChC,CAAC;KACF,CAAC;AACJ,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/ciphers/esm/simple.js b/node_modules/@noble/ciphers/esm/simple.js deleted file mode 100644 index 45fbd5d4..00000000 --- a/node_modules/@noble/ciphers/esm/simple.js +++ /dev/null @@ -1,58 +0,0 @@ -import { xchacha20poly1305 } from './chacha.js'; -import { xsalsa20poly1305 } from './salsa.js'; -import { concatBytes, ensureBytes, utf8ToBytes } from './utils.js'; -import { aes_256_gcm } from './webcrypto/aes.js'; -import { randomBytes } from './webcrypto/utils.js'; -export { utf8ToBytes }; -/** - * Alias to xsalsa20poly1305, for compatibility with libsodium / nacl - */ -export function secretbox(key, nonce) { - ensureBytes(key); - ensureBytes(nonce); - const xs = xsalsa20poly1305(key, nonce); - return { seal: xs.encrypt, open: xs.decrypt }; -} -export function randomKey() { - return randomBytes(32); -} -/** - * Encrypt plaintext under key with random nonce, using xchacha20poly1305. - * User never touches nonce: it is prepended to ciphertext. - */ -export function encrypt(key, plaintext) { - ensureBytes(key); - const nonce = randomBytes(24); - const ciphertext = xchacha20poly1305(key, nonce).encrypt(plaintext); - return concatBytes(nonce, ciphertext); -} -/** - * Decrypt plaintext under key with random nonce, using xchacha20poly1305. - * User never touches nonce: it is prepended to ciphertext. - */ -export function decrypt(key, ciphertext) { - const nonceLength = 24; - ensureBytes(ciphertext); - if (ciphertext.length <= nonceLength) - throw new Error('invalid ciphertext length'); - const nonce = ciphertext.subarray(0, nonceLength); - const ciphertextWithoutNonce = ciphertext.subarray(nonceLength); - return xchacha20poly1305(key, nonce).decrypt(ciphertextWithoutNonce); -} -export async function aes_encrypt(key, plaintext) { - const nonceLength = 12; - ensureBytes(key); - const nonce = randomBytes(nonceLength); - const ciphertext = await aes_256_gcm(key, nonce).encrypt(plaintext); - return concatBytes(nonce, ciphertext); -} -export async function aes_decrypt(key, ciphertext) { - const nonceLength = 12; - ensureBytes(ciphertext); - if (ciphertext.length <= nonceLength) - throw new Error('invalid ciphertext length'); - const nonce = ciphertext.subarray(0, nonceLength); - const ciphertextWithoutNonce = ciphertext.subarray(nonceLength); - return aes_256_gcm(key, nonce).decrypt(ciphertextWithoutNonce); -} -//# sourceMappingURL=simple.js.map \ No newline at end of file diff --git a/node_modules/@noble/ciphers/esm/simple.js.map b/node_modules/@noble/ciphers/esm/simple.js.map deleted file mode 100644 index bfdaac2b..00000000 --- a/node_modules/@noble/ciphers/esm/simple.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"simple.js","sourceRoot":"","sources":["../src/simple.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,iBAAiB,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,gBAAgB,EAAE,MAAM,YAAY,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACnE,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAEnD,OAAO,EAAE,WAAW,EAAE,CAAC;AAEvB;;GAEG;AACH,MAAM,UAAU,SAAS,CAAC,GAAe,EAAE,KAAiB;IAC1D,WAAW,CAAC,GAAG,CAAC,CAAC;IACjB,WAAW,CAAC,KAAK,CAAC,CAAC;IACnB,MAAM,EAAE,GAAG,gBAAgB,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC;IACxC,OAAO,EAAE,IAAI,EAAE,EAAE,CAAC,OAAO,EAAE,IAAI,EAAE,EAAE,CAAC,OAAO,EAAE,CAAC;AAChD,CAAC;AAED,MAAM,UAAU,SAAS;IACvB,OAAO,WAAW,CAAC,EAAE,CAAC,CAAC;AACzB,CAAC;AACD;;;GAGG;AACH,MAAM,UAAU,OAAO,CAAC,GAAe,EAAE,SAAqB;IAC5D,WAAW,CAAC,GAAG,CAAC,CAAC;IACjB,MAAM,KAAK,GAAG,WAAW,CAAC,EAAE,CAAC,CAAC;IAC9B,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K,GAAG,UAAU,CAAC,QAAQ,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC;IAClD,MAAM,sBAAsB,GAAG,UAAU,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;IAChE,OAAO,WAAW,CAAC,GAAG,EAAE,KAAK,CAAC,CAAC,OAAO,CAAC,sBAAsB,CAAC,CAAC;AACjE,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/ciphers/esm/utils.js b/node_modules/@noble/ciphers/esm/utils.js deleted file mode 100644 index 378c90da..00000000 --- a/node_modules/@noble/ciphers/esm/utils.js +++ /dev/null @@ -1,143 +0,0 @@ -/*! noble-ciphers - MIT License (c) 2023 Paul Miller (paulmillr.com) */ -const u8a = (a) => a instanceof Uint8Array; -// Cast array to different type -export const u8 = (arr) => new Uint8Array(arr.buffer, arr.byteOffset, arr.byteLength); -export const u16 = (arr) => new Uint16Array(arr.buffer, arr.byteOffset, Math.floor(arr.byteLength / 2)); -export const u32 = (arr) => new Uint32Array(arr.buffer, arr.byteOffset, Math.floor(arr.byteLength / 4)); -// Cast array to view -export const createView = (arr) => new DataView(arr.buffer, arr.byteOffset, arr.byteLength); -// big-endian hardware is rare. Just in case someone still decides to run ciphers: -// early-throw an error because we don't support BE yet. -export const isLE = new Uint8Array(new Uint32Array([0x11223344]).buffer)[0] === 0x44; -if (!isLE) - throw new Error('Non little-endian hardware is not supported'); -const hexes = /* @__PURE__ */ Array.from({ length: 256 }, (_, i) => i.toString(16).padStart(2, '0')); -/** - * @example bytesToHex(Uint8Array.from([0xca, 0xfe, 0x01, 0x23])) // 'cafe0123' - */ -export function bytesToHex(bytes) { - if (!u8a(bytes)) - throw new Error('Uint8Array expected'); - // pre-caching improves the speed 6x - let hex = ''; - for (let i = 0; i < bytes.length; i++) { - hex += hexes[bytes[i]]; - } - return hex; -} -/** - * @example hexToBytes('cafe0123') // Uint8Array.from([0xca, 0xfe, 0x01, 0x23]) - */ -export function hexToBytes(hex) { - if (typeof hex !== 'string') - throw new Error('hex string expected, got ' + typeof hex); - const len = hex.length; - if (len % 2) - throw new Error('padded hex string expected, got unpadded hex of length ' + len); - const array = new Uint8Array(len / 2); - for (let i = 0; i < array.length; i++) { - const j = i * 2; - const hexByte = hex.slice(j, j + 2); - const byte = Number.parseInt(hexByte, 16); - if (Number.isNaN(byte) || byte < 0) - throw new Error('Invalid byte sequence'); - array[i] = byte; - } - return array; -} -// There is no setImmediate in browser and setTimeout is slow. -// call of async fn will return Promise, which will be fullfiled only on -// next scheduler queue processing step and this is exactly what we need. -export const nextTick = async () => { }; -// Returns control to thread each 'tick' ms to avoid blocking -export async function asyncLoop(iters, tick, cb) { - let ts = Date.now(); - for (let i = 0; i < iters; i++) { - cb(i); - // Date.now() is not monotonic, so in case if clock goes backwards we return return control too - const diff = Date.now() - ts; - if (diff >= 0 && diff < tick) - continue; - await nextTick(); - ts += diff; - } -} -/** - * @example utf8ToBytes('abc') // new Uint8Array([97, 98, 99]) - */ -export function utf8ToBytes(str) { - if (typeof str !== 'string') - throw new Error(`utf8ToBytes expected string, got ${typeof str}`); - return new Uint8Array(new TextEncoder().encode(str)); // https://bugzil.la/1681809 -} -export function bytesToUtf8(bytes) { - return new TextDecoder().decode(bytes); -} -/** - * Normalizes (non-hex) string or Uint8Array to Uint8Array. - * Warning: when Uint8Array is passed, it would NOT get copied. - * Keep in mind for future mutable operations. - */ -export function toBytes(data) { - if (typeof data === 'string') - data = utf8ToBytes(data); - if (!u8a(data)) - throw new Error(`expected Uint8Array, got ${typeof data}`); - return data; -} -/** - * Copies several Uint8Arrays into one. - */ -export function concatBytes(...arrays) { - const r = new Uint8Array(arrays.reduce((sum, a) => sum + a.length, 0)); - let pad = 0; // walk through each item, ensure they have proper type - arrays.forEach((a) => { - if (!u8a(a)) - throw new Error('Uint8Array expected'); - r.set(a, pad); - pad += a.length; - }); - return r; -} -// Check if object doens't have custom constructor (like Uint8Array/Array) -const isPlainObject = (obj) => Object.prototype.toString.call(obj) === '[object Object]' && obj.constructor === Object; -export function checkOpts(defaults, opts) { - if (opts !== undefined && (typeof opts !== 'object' || !isPlainObject(opts))) - throw new Error('options must be object or undefined'); - const merged = Object.assign(defaults, opts); - return merged; -} -export function ensureBytes(b, len) { - if (!(b instanceof Uint8Array)) - throw new Error('Uint8Array expected'); - if (typeof len === 'number') - if (b.length !== len) - throw new Error(`Uint8Array length ${len} expected`); -} -// Constant-time equality -export function equalBytes(a, b) { - // Should not happen - if (a.length !== b.length) - throw new Error('equalBytes: Different size of Uint8Arrays'); - let isSame = true; - for (let i = 0; i < a.length; i++) - isSame && (isSame = a[i] === b[i]); // Lets hope JIT won't optimize away. - return isSame; -} -// For runtime check if class implements interface -export class Hash { -} -// Polyfill for Safari 14 -export function setBigUint64(view, byteOffset, value, isLE) { - if (typeof view.setBigUint64 === 'function') - return view.setBigUint64(byteOffset, value, isLE); - const _32n = BigInt(32); - const _u32_max = BigInt(0xffffffff); - const wh = Number((value >> _32n) & _u32_max); - const wl = Number(value & _u32_max); - const h = isLE ? 4 : 0; - const l = isLE ? 0 : 4; - view.setUint32(byteOffset + h, wh, isLE); - view.setUint32(byteOffset + l, wl, isLE); -} -//# sourceMappingURL=utils.js.map \ No newline at end of file diff --git a/node_modules/@noble/ciphers/esm/utils.js.map b/node_modules/@noble/ciphers/esm/utils.js.map deleted file mode 100644 index cc1d625c..00000000 --- a/node_modules/@noble/ciphers/esm/utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,uEAAuE;AAMvE,MAAM,GAAG,GAAG,CAAC,CAAM,EAAmB,EAAE,CAAC,CAAC,YAAY,UAAU,CAAC;AACjE,+BAA+B;AAC/B,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAe,EAAE,EAAE,CAAC,IAAI,UAAU,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,UAAU,EAAE,GAAG,CAAC,UAAU,CAAC,CAAC;AAClG,MAA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AAC,CAAC,CAAC;IACvB,IAAI,CAAC,SAAS,CAAC,UAAU,GAAG,CAAC,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;IACzC,IAAI,CAAC,SAAS,CAAC,UAAU,GAAG,CAAC,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;AAC3C,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/ciphers/esm/webcrypto/aes.js b/node_modules/@noble/ciphers/esm/webcrypto/aes.js deleted file mode 100644 index 836c7269..00000000 --- a/node_modules/@noble/ciphers/esm/webcrypto/aes.js +++ /dev/null @@ -1,42 +0,0 @@ -import { ensureBytes } from '../utils.js'; -import { getWebcryptoSubtle } from './utils.js'; -function generate(algo, length) { - const keyLength = length / 8; - const keyParams = { name: algo, length }; - const cryptParams = { name: algo }; - // const params: Record = ({ e: algo, i: { name: algo, length } }); - return (key, nonce) => { - ensureBytes(key, keyLength); - if (algo === 'AES-CTR') { - cryptParams.counter = nonce; - cryptParams.length = 64; - } - else { - cryptParams.iv = nonce; - } - return { - keyLength, - async encrypt(plaintext) { - ensureBytes(plaintext); - const cr = getWebcryptoSubtle(); - const iKey = await cr.importKey('raw', key, keyParams, true, ['encrypt']); - const cipher = await cr.encrypt(cryptParams, iKey, plaintext); - return new Uint8Array(cipher); - }, - async decrypt(ciphertext) { - ensureBytes(ciphertext); - const cr = getWebcryptoSubtle(); - const iKey = await cr.importKey('raw', key, keyParams, true, ['decrypt']); - const plaintext = await cr.decrypt(cryptParams, iKey, ciphertext); - return new Uint8Array(plaintext); - }, - }; - }; -} -export const aes_128_ctr = generate('AES-CTR', 128); -export const aes_256_ctr = generate('AES-CTR', 256); -export const aes_128_cbc = generate('AES-CBC', 128); -export const aes_256_cbc = generate('AES-CBC', 256); -export const aes_128_gcm = generate('AES-GCM', 128); -export const aes_256_gcm = generate('AES-GCM', 256); -//# sourceMappingURL=aes.js.map \ No newline at end of file diff --git a/node_modules/@noble/ciphers/esm/webcrypto/aes.js.map b/node_modules/@noble/ciphers/esm/webcrypto/aes.js.map deleted file mode 100644 index 86453f06..00000000 --- a/node_modules/@noble/ciphers/esm/webcrypto/aes.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"aes.js","sourceRoot":"","sources":["../../src/webcrypto/aes.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAC1C,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAEhD,SAAS,QAAQ,CAAC,IAAY,EAAE,MAAc;IAC5C,MAAM,SAAS,GAAG,MAAM,GAAG,CAAC,CAAC;IAC7B,MAAM,SAAS,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IACzC,MAAM,WAAW,GAAwB,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACxD,gFAAgF;IAEhF,OAAO,CAAC,GAAe,EAAE,KAAiB,EAAE,EAAE;QAC5C,WAAW,CAAC,GAAG,EAAE,SAAS,CAAC,CAAC;QAC5B,IAAI,IAAI,KAAK,SAAS,EAAE;YACtB,WAAW,CAAC,OAAO,GAAG,KAAK,CAAC;YAC5B,WAAW,CAAC,MAAM,GAAG,EAAE,CAAC;SACzB;aAAM;YACL,WAAW,CAAC,EAAE,GAAG,KAAK,CAAC;SACxB;QAED,OAAO;YACL,SAAS;YAET,KAAK,CAAC,OAAO,CAAC,SAAqB;gBACjC,WAAW,CAAC,SAAS,CAAC,CAAC;gBACvB,MAAM,EAAE,GAAG,kBAAkB,EAAE,CAAC;gBAChC,MAAM,IAAI,GAAG,MAAM,EAAE,CAAC,SAAS,CAAC,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;gBAC1E,MAAM,MAAM,GAAG,MAAM,EAAE,CAAC,OAAO,CAAC,WAAW,EAAE,IAAI,EAAE,SAAS,CAAC,CAAC;gBAC9D,OAAO,IAAI,UAAU,CAAC,MAAM,CAAC,CAAC;YAChC,CAAC;YAED,KAAK,CAAC,OAAO,CAAC,UAAsB;gBAClC,WAAW,CAAC,UAAU,CAAC,CAAC;gBACxB,MAAM,EAAE,GAAG,kBAAkB,EAAE,CAAC;gBAChC,MAAM,IAAI,GAAG,MAAM,EAAE,CAAC,SAAS,CAAC,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;gBAC1E,MAAM,SAAS,GAAG,MAAM,EAAE,CAAC,OAAO,CAAC,WAAW,EAAE,IAAI,EAAE,UAAU,CAAC,CAAC;gBAClE,OAAO,IAAI,UAAU,CAAC,SAAS,CAAC,CAAC;YACnC,CAAC;SACF,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC;AAED,MAAM,CAAC,MAAM,WAAW,GAAG,QAAQ,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC;AACpD,MAAM,CAAC,MAAM,WAAW,GAAG,QAAQ,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC;AAEpD,MAAM,CAAC,MAAM,WAAW,GAAG,QAAQ,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC;AACpD,MAAM,CAAC,MAAM,WAAW,GAAG,QAAQ,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC;AAEpD,MAAM,CAAC,MAAM,WAAW,GAAG,QAAQ,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC;AACpD,MAAM,CAAC,MAAM,WAAW,GAAG,QAAQ,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/ciphers/esm/webcrypto/crypto.js b/node_modules/@noble/ciphers/esm/webcrypto/crypto.js deleted file mode 100644 index 8d499a08..00000000 --- a/node_modules/@noble/ciphers/esm/webcrypto/crypto.js +++ /dev/null @@ -1,2 +0,0 @@ -export const crypto = typeof globalThis === 'object' && 'crypto' in globalThis ? globalThis.crypto : undefined; -//# sourceMappingURL=crypto.js.map \ No newline at end of file diff --git a/node_modules/@noble/ciphers/esm/webcrypto/crypto.js.map b/node_modules/@noble/ciphers/esm/webcrypto/crypto.js.map deleted file mode 100644 index 068de0fd..00000000 --- a/node_modules/@noble/ciphers/esm/webcrypto/crypto.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"crypto.js","sourceRoot":"","sources":["../../src/webcrypto/crypto.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,MAAM,GACjB,OAAO,UAAU,KAAK,QAAQ,IAAI,QAAQ,IAAI,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/ciphers/esm/webcrypto/cryptoNode.js b/node_modules/@noble/ciphers/esm/webcrypto/cryptoNode.js deleted file mode 100644 index 241f1da4..00000000 --- a/node_modules/@noble/ciphers/esm/webcrypto/cryptoNode.js +++ /dev/null @@ -1,7 +0,0 @@ -// We use WebCrypto aka globalThis.crypto, which exists in browsers and node.js 16+. -// See utils.ts for details. -// The file will throw on node.js 14 and earlier. -// @ts-ignore -import * as nc from 'node:crypto'; -export const crypto = nc && typeof nc === 'object' && 'webcrypto' in nc ? nc.webcrypto : undefined; -//# sourceMappingURL=cryptoNode.js.map \ No newline at end of file diff --git a/node_modules/@noble/ciphers/esm/webcrypto/cryptoNode.js.map b/node_modules/@noble/ciphers/esm/webcrypto/cryptoNode.js.map deleted file mode 100644 index aebf8f08..00000000 --- a/node_modules/@noble/ciphers/esm/webcrypto/cryptoNode.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"cryptoNode.js","sourceRoot":"","sources":["../../src/webcrypto/cryptoNode.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,4BAA4B;AAC5B,iDAAiD;AACjD,aAAa;AACb,OAAO,KAAK,EAAE,MAAM,aAAa,CAAC;AAClC,MAAM,CAAC,MAAM,MAAM,GACjB,EAAE,IAAI,OAAO,EAAE,KAAK,QAAQ,IAAI,WAAW,IAAI,EAAE,CAAC,CAAC,CAAE,EAAE,CAAC,SAAiB,CAAC,CAAC,CAAC,SAAS,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/ciphers/esm/webcrypto/ff1.js b/node_modules/@noble/ciphers/esm/webcrypto/ff1.js deleted file mode 100644 index 9534e774..00000000 --- a/node_modules/@noble/ciphers/esm/webcrypto/ff1.js +++ /dev/null @@ -1,171 +0,0 @@ -import { getWebcryptoSubtle } from './utils.js'; -// Format-preserving encryption algorithm (FPE-FF1) specified in NIST Special Publication 800-38G. -// https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-38G.pdf -// Utils -function toBytesBE(num, length) { - let hex = num.toString(16); - hex = hex.length & 1 ? `0${hex}` : hex; - if (length) - hex = hex.padStart(length * 2, '00'); - const len = hex.length / 2; - const u8 = new Uint8Array(len); - for (let j = 0, i = 0; i < hex.length && i < len * 2; i += 2, j++) - u8[j] = parseInt(hex[i] + hex[i + 1], 16); - return u8; -} -function fromBytesBE(bytes) { - let value = 0n; - for (let i = bytes.length - 1, j = 0; i >= 0; i--, j++) - value += (BigInt(bytes[i]) & 255n) << (8n * BigInt(j)); - return value; -} -function mod(a, b) { - const result = a % b; - return result >= 0 ? result : b + result; -} -// AES stuff -const BLOCK_LEN = 16; -const IV = new Uint8Array(BLOCK_LEN); -export async function encryptBlock(msg, key) { - if (key.length !== 16 && key.length !== 32) - throw new Error('Invalid key length'); - const cr = getWebcryptoSubtle(); - const mode = { name: `AES-CBC`, length: key.length * 8 }; - const wKey = await cr.importKey('raw', key, mode, true, ['encrypt']); - const cipher = await cr.encrypt({ name: `aes-cbc`, iv: IV, counter: IV, length: 64 }, wKey, msg); - return new Uint8Array(cipher).subarray(0, 16); -} -function NUMradix(radix, data) { - let res = 0n; - for (let i of data) - res = res * BigInt(radix) + BigInt(i); - return res; -} -async function getRound(radix, key, tweak, x) { - if (radix > 2 ** 16 - 1) - throw new Error(`Invalid radix: ${radix}`); - // radix**minlen ≥ 100 - const minLen = Math.ceil(Math.log(100) / Math.log(radix)); - const maxLen = 2 ** 32 - 1; - // 2 ≤ minlen ≤ maxlen < 2**32 - if (2 > minLen || minLen > maxLen || maxLen >= 2 ** 32) - throw new Error('Invalid radix: 2 ≤ minlen ≤ maxlen < 2**32'); - if (x.length < minLen || x.length > maxLen) - throw new Error('X is outside minLen..maxLen bounds'); - const u = Math.floor(x.length / 2); - const v = x.length - u; - const b = Math.ceil(Math.ceil(v * Math.log2(radix)) / 8); - const d = 4 * Math.ceil(b / 4) + 4; - const padding = mod(-tweak.length - b - 1, 16); - // P = [1]1 || [2]1 || [1]1 || [radix]3 || [10]1 || [u mod 256]1 || [n]4 || [t]4. - const P = new Uint8Array([1, 2, 1, 0, 0, 0, 10, u, 0, 0, 0, 0, 0, 0, 0, 0]); - const view = new DataView(P.buffer); - view.setUint16(4, radix, false); - view.setUint32(8, x.length, false); - view.setUint32(12, tweak.length, false); - // Q = T || [0](−t−b−1) mod 16 || [i]1 || [NUMradix(B)]b. - const PQ = new Uint8Array(P.length + tweak.length + padding + 1 + b); - PQ.set(P); - P.fill(0); - PQ.set(tweak, P.length); - const round = async (A, B, i, decrypt = false) => { - // Q = ... || [i]1 || [NUMradix(B)]b. - PQ[PQ.length - b - 1] = i; - if (b) - PQ.set(toBytesBE(NUMradix(radix, B), b), PQ.length - b); - // PRF - let r = new Uint8Array(16); - for (let j = 0; j < PQ.length / BLOCK_LEN; j++) { - for (let i = 0; i < BLOCK_LEN; i++) - r[i] ^= PQ[j * BLOCK_LEN + i]; - r.set(await encryptBlock(r, key)); - } - // Let S be the first d bytes of the following string of ⎡d/16⎤ blocks: - // R || CIPHK(R ⊕[1]16) || CIPHK(R ⊕[2]16) ...CIPHK(R ⊕[⎡d / 16⎤ – 1]16). - let s = Array.from(r); - for (let j = 1; s.length < d; j++) { - const block = toBytesBE(BigInt(j), 16); - for (let k = 0; k < BLOCK_LEN; k++) - block[k] ^= r[k]; - s.push(...Array.from(await encryptBlock(block, key))); - } - let y = fromBytesBE(Uint8Array.from(s.slice(0, d))); - s.fill(0); - if (decrypt) - y = -y; - const m = i % 2 === 0 ? u : v; - let c = mod(NUMradix(radix, A) + y, BigInt(radix) ** BigInt(m)); - // STR(radix, m, c) - const C = Array(m).fill(0); - for (let i = 0; i < m; i++, c /= BigInt(radix)) - C[m - 1 - i] = Number(c % BigInt(radix)); - A.fill(0); - A = B; - B = C; - return [A, B]; - }; - const destroy = () => PQ.fill(0); - return { u, round, destroy }; -} -const EMPTY_BUF = new Uint8Array([]); -export function FF1(radix, key, tweak = EMPTY_BUF) { - const PQ = getRound.bind(null, radix, key, tweak); - return { - async encrypt(x) { - const { u, round, destroy } = await PQ(x); - let [A, B] = [x.slice(0, u), x.slice(u)]; - for (let i = 0; i < 10; i++) - [A, B] = await round(A, B, i); - destroy(); - const res = A.concat(B); - A.fill(0); - B.fill(0); - return res; - }, - async decrypt(x) { - const { u, round, destroy } = await PQ(x); - // The FF1.Decrypt algorithm is similar to the FF1.Encrypt algorithm; - // the differences are in Step 6, where: - // 1) the order of the indices is reversed, - // 2) the roles of A and B are swapped - // 3) modular addition is replaced by modular subtraction, in Step 6vi. - let [B, A] = [x.slice(0, u), x.slice(u)]; - for (let i = 9; i >= 0; i--) - [A, B] = await round(A, B, i, true); - destroy(); - const res = B.concat(A); - A.fill(0); - B.fill(0); - return res; - }, - }; -} -// Binary string which encodes each byte in little-endian byte order -const binLE = { - encode(bytes) { - const x = []; - for (let i = 0; i < bytes.length; i++) { - for (let j = 0, tmp = bytes[i]; j < 8; j++, tmp >>= 1) - x.push(tmp & 1); - } - return x; - }, - decode(b) { - if (b.length % 8) - throw new Error('Invalid binary string'); - const res = new Uint8Array(b.length / 8); - for (let i = 0, j = 0; i < res.length; i++) { - res[i] = b[j++] | (b[j++] << 1) | (b[j++] << 2) | (b[j++] << 3); - res[i] |= (b[j++] << 4) | (b[j++] << 5) | (b[j++] << 6) | (b[j++] << 7); - } - return res; - }, -}; -export function BinaryFF1(key, tweak = EMPTY_BUF) { - const ff1 = FF1(2, key, tweak); - return { - encrypt: async (x) => binLE.decode(await ff1.encrypt(binLE.encode(x))), - decrypt: async (x) => binLE.decode(await ff1.decrypt(binLE.encode(x))), - }; -} -//# sourceMappingURL=ff1.js.map \ No newline at end of file diff --git a/node_modules/@noble/ciphers/esm/webcrypto/ff1.js.map b/node_modules/@noble/ciphers/esm/webcrypto/ff1.js.map deleted file mode 100644 index 473b88a1..00000000 --- a/node_modules/@noble/ciphers/esm/webcrypto/ff1.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ff1.js","sourceRoot":"","sources":["../../src/webcrypto/ff1.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAEhD,kGAAkG;AAClG,4EAA4E;AAE5E,QAAQ;AACR,SAAS,SAAS,CAAC,GAAW,EAAE,MAAe;IAC7C,IAAI,GAAG,GAAG,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;IAC3B,GAAG,GAAG,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC;IACvC,IAAI,MAAM;QAAE,GAAG,GAAG,GAAG,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE,IAAI,CAAC,CAAC;IACjD,MAAM,GAAG,GAAG,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC;IAC3B,MAAM,EAAE,GAAG,IAAI,UAAU,CAAC,GAAG,CAAC,CAAC;IAC/B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE;QAC/D,EAAE,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG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AG,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;KACnF,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/ciphers/esm/webcrypto/siv.js b/node_modules/@noble/ciphers/esm/webcrypto/siv.js deleted file mode 100644 index 7a42d8af..00000000 --- a/node_modules/@noble/ciphers/esm/webcrypto/siv.js +++ /dev/null @@ -1,122 +0,0 @@ -import { createView, setBigUint64 } from '../utils.js'; -import { polyval } from '../_polyval.js'; -import { getWebcryptoSubtle } from './utils.js'; -/** - * AES-GCM-SIV: classic AES-GCM with nonce-misuse resistance. - * RFC 8452, https://datatracker.ietf.org/doc/html/rfc8452 - */ -// AES stuff (same as ff1) -const BLOCK_LEN = 16; -const IV = new Uint8Array(BLOCK_LEN); -async function encryptBlock(msg, key) { - if (key.length !== 16 && key.length !== 32) - throw new Error('Invalid key length'); - const mode = { name: `AES-CBC`, length: key.length * 8 }; - const cr = getWebcryptoSubtle(); - const wKey = await cr.importKey('raw', key, mode, true, ['encrypt']); - const cipher = await cr.encrypt({ name: `aes-cbc`, iv: IV, counter: IV, length: 64 }, wKey, msg); - return new Uint8Array(cipher).subarray(0, 16); -} -// Kinda constant-time equality -function equalBytes(a, b) { - // Should not happen - if (a.length !== b.length) - throw new Error('equalBytes: Different size of Uint8Arrays'); - let flag = true; - for (let i = 0; i < a.length; i++) - if (a[i] !== b[i]) - flag && (flag = false); - return flag; -} -// Wrap position so it will be in padded to blockSize -const wrapPos = (pos, blockSize) => Math.ceil(pos / blockSize) * blockSize; -const limit = (name, min, max) => (value) => { - if (!Number.isSafeInteger(value) || min > value || value > max) - throw new Error(`${name}: invalid value=${value}, must be [${min}..${max}]`); -}; -// From RFC 8452: Section 6 -const AAD_LIMIT = limit('AAD', 0, 2 ** 36); -const PLAIN_LIMIT = limit('Plaintext', 0, 2 ** 36); -const NONCE_LIMIT = limit('Nonce', 12, 12); -const CIPHER_LIMIT = limit('Ciphertext', 16, 2 ** 36 + 16); -// nodejs api doesn't support 32bit counters, browser does -async function ctr(key, tag, input) { - // The initial counter block is the tag with the most significant bit of the last byte set to one. - let block = tag.slice(); - block[15] |= 0x80; - let view = createView(block); - let output = new Uint8Array(input.length); - for (let pos = 0; pos < input.length;) { - const encryptedBlock = await encryptBlock(block, key); - view.setUint32(0, view.getUint32(0, true) + 1, true); - const take = Math.min(input.length, encryptedBlock.length); - for (let j = 0; j < take; j++, pos++) - output[pos] = encryptedBlock[j] ^ input[pos]; - } - return new Uint8Array(output); -} -export async function deriveKeys(key, nonce) { - NONCE_LIMIT(nonce.length); - const len = key.length; - if (len !== 16 && len !== 32) - throw new Error(`key length must be 16 or 32 bytes, got: ${len} bytes`); - const encKey = new Uint8Array(len); - const authKey = new Uint8Array(16); - let counter = 0; - const deriveBlock = new Uint8Array(nonce.length + 4); - deriveBlock.set(nonce, 4); - const view = createView(deriveBlock); - for (const derivedKey of [authKey, encKey]) { - for (let i = 0; i < derivedKey.length; i += 8) { - view.setUint32(0, counter++, true); - const block = await encryptBlock(deriveBlock, key); - derivedKey.set(block.subarray(0, 8), i); - } - } - return { authKey, encKey }; -} -export async function aes_256_gcm_siv(key, nonce, AAD) { - const { encKey, authKey } = await deriveKeys(key, nonce); - const computeTag = async (data, AAD) => { - const dataPos = wrapPos(AAD.length, 16); - const lenPos = wrapPos(dataPos + data.length, 16); - const block = new Uint8Array(lenPos + 16); - const view = createView(block); - block.set(AAD); - block.set(data, dataPos); - setBigUint64(view, lenPos, BigInt(AAD.length * 8), true); - setBigUint64(view, lenPos + 8, BigInt(data.length * 8), true); - // Compute the expected tag by XORing S_s and the nonce, clearing the - // most significant bit of the last byte and encrypting with the - // message-encryption key. - const tag = polyval(authKey, block); - for (let i = 0; i < 12; i++) - tag[i] ^= nonce[i]; - // Clear the highest bit - tag[15] &= 0x7f; - return await encryptBlock(tag, encKey); - }; - return { - // computeTag, - encrypt: async (plaintext) => { - AAD_LIMIT(AAD.length); - PLAIN_LIMIT(plaintext.length); - const tag = await computeTag(plaintext, AAD); - const out = new Uint8Array(plaintext.length + 16); - out.set(tag, plaintext.length); - out.set(await ctr(encKey, tag, plaintext)); - return out; - }, - decrypt: async (ciphertext) => { - CIPHER_LIMIT(ciphertext.length); - AAD_LIMIT(AAD.length); - const tag = ciphertext.subarray(-16); - const plaintext = await ctr(encKey, tag, ciphertext.subarray(0, -16)); - const expectedTag = await computeTag(plaintext, AAD); - if (!equalBytes(tag, expectedTag)) - throw new Error('invalid poly1305 tag'); - return plaintext; - }, - }; -} -//# sourceMappingURL=siv.js.map \ No newline at end of file diff --git a/node_modules/@noble/ciphers/esm/webcrypto/siv.js.map b/node_modules/@noble/ciphers/esm/webcrypto/siv.js.map deleted file mode 100644 index 0133521b..00000000 --- a/node_modules/@noble/ciphers/esm/webcrypto/siv.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"siv.js","sourceRoot":"","sources":["../../src/webcrypto/siv.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,UAAU,EAAE,YAAY,EAAE,MAAM,aAAa,CAAC;AACpE,OAAO,EAAE,OAAO,EAAE,MAAM,gBAAgB,CAAC;AACzC,OAAO,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AAChD;;;GAGG;AAEH,0BAA0B;AAC1B,MAAM,SAAS,GAAG,EAAE,CAAC;AACrB,MAAM,EAAE,GAAG,IAAI,UAAU,CAAC,SAAS,CAAC,CAAC;AACrC,KAAK,UAAU,YAAY,CAAC,GAAe,EAAE,GAAe;IAC1D,IAAI,GAAG,CAAC,MAAM,KAAK,EAAE,IAAI,GAAG,CAAC,MAAM,KAAK,EAAE;QAAE,MAAM,IAAI,KAAK,CAAC,oBAAoB,CAAC,CAAC;IAClF,MAAM,IAAI,GAAG,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;IACzD,MAAM,EAAE,GAAG,kBAAkB,EAAE,CAAC;IAChC,MAA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O,SAAS,CAAC;QACnB,CAAC;KACF,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/ciphers/esm/webcrypto/utils.js b/node_modules/@noble/ciphers/esm/webcrypto/utils.js deleted file mode 100644 index a35b4a39..00000000 --- a/node_modules/@noble/ciphers/esm/webcrypto/utils.js +++ /dev/null @@ -1,23 +0,0 @@ -// We use WebCrypto aka globalThis.crypto, which exists in browsers and node.js 16+. -// node.js versions earlier than v19 don't declare it in global scope. -// For node.js, package.js on#exports field mapping rewrites import -// from `crypto` to `cryptoNode`, which imports native module. -// Makes the utils un-importable in browsers without a bundler. -// Once node.js 18 is deprecated, we can just drop the import. -import { crypto } from '@noble/ciphers/webcrypto/crypto'; -/** - * Secure PRNG. Uses `crypto.getRandomValues`, which defers to OS. - */ -export function randomBytes(bytesLength = 32) { - if (crypto && typeof crypto.getRandomValues === 'function') { - return crypto.getRandomValues(new Uint8Array(bytesLength)); - } - throw new Error('crypto.getRandomValues must be defined'); -} -export function getWebcryptoSubtle() { - if (crypto && typeof crypto.subtle === 'object' && crypto.subtle != null) { - return crypto.subtle; - } - throw new Error('crypto.subtle must be defined'); -} -//# sourceMappingURL=utils.js.map \ No newline at end of file diff --git a/node_modules/@noble/ciphers/esm/webcrypto/utils.js.map b/node_modules/@noble/ciphers/esm/webcrypto/utils.js.map deleted file mode 100644 index 5edb2b31..00000000 --- a/node_modules/@noble/ciphers/esm/webcrypto/utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/webcrypto/utils.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,sEAAsE;AACtE,mEAAmE;AACnE,8DAA8D;AAC9D,+DAA+D;AAC/D,8DAA8D;AAC9D,OAAO,EAAE,MAAM,EAAE,MAAM,iCAAiC,CAAC;AAEzD;;GAEG;AACH,MAAM,UAAU,WAAW,CAAC,WAAW,GAAG,EAAE;IAC1C,IAAI,MAAM,IAAI,OAAO,MAAM,CAAC,eAAe,KAAK,UAAU,EAAE;QAC1D,OAAO,MAAM,CAAC,eAAe,CAAC,IAAI,UAAU,CAAC,WAAW,CAAC,CAAC,CAAC;KAC5D;IACD,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;AAC5D,CAAC;AAED,MAAM,UAAU,kBAAkB;IAChC,IAAI,MAAM,IAAI,OAAO,MAAM,CAAC,MAAM,KAAK,QAAQ,IAAI,MAAM,CAAC,MAAM,IAAI,IAAI,EAAE;QACxE,OAAO,MAAM,CAAC,MAAM,CAAC;KACtB;IACD,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAC;AACnD,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/ciphers/index.d.ts b/node_modules/@noble/ciphers/index.d.ts deleted file mode 100644 index f36479a7..00000000 --- a/node_modules/@noble/ciphers/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@noble/ciphers/index.d.ts.map b/node_modules/@noble/ciphers/index.d.ts.map deleted file mode 100644 index 4e8c5816..00000000 --- a/node_modules/@noble/ciphers/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/@noble/ciphers/index.js b/node_modules/@noble/ciphers/index.js deleted file mode 100644 index 5a9cbf16..00000000 --- a/node_modules/@noble/ciphers/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -throw new Error('noble-ciphers have no entry-point: consult README for usage'); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@noble/ciphers/index.js.map b/node_modules/@noble/ciphers/index.js.map deleted file mode 100644 index e3396da5..00000000 --- a/node_modules/@noble/ciphers/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":";AAAA,MAAM,IAAI,KAAK,CAAC,6DAA6D,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/ciphers/package.json b/node_modules/@noble/ciphers/package.json deleted file mode 100644 index 14f72c7f..00000000 --- a/node_modules/@noble/ciphers/package.json +++ /dev/null @@ -1,136 +0,0 @@ -{ - "name": "@noble/ciphers", - "version": "0.2.0", - "description": "Auditable & minimal JS implementation of Salsa20, ChaCha, Poly1305 & AES-SIV", - "files": [ - "esm", - "src", - "webcrypto", - "*.js", - "*.js.map", - "*.d.ts", - "*.d.ts.map" - ], - "scripts": { - "bench": "node benchmark/aead.js noble && node benchmark/ciphers.js noble", - "bench:all": "node benchmark/{aead,ciphers,poly}.js", - "bench:install": "cd benchmark && npm install && cd ../../", - "build": "npm run build:clean; tsc && tsc -p tsconfig.esm.json", - "build:release": "cd build; npm i; npm run build", - "build:clean": "rm *.{js,d.ts,js.map,d.ts.map} esm/*.{js,d.ts,js.map,d.ts.map} 2> /dev/null; rm -r esm/webcrypto 2> /dev/null", - "lint": "prettier --check 'src/**/*.{js,ts}' 'test/**/*.{js,ts,mjs}'", - "format": "prettier --write 'src/**/*.{js,ts}' 'test/**/*.{js,ts,mjs}'", - "test": "node test/index.js" - }, - "author": "Paul Miller (https://paulmillr.com)", - "homepage": "https://paulmillr.com/noble/", - "repository": { - "type": "git", - "url": "https://github.com/paulmillr/noble-ciphers.git" - }, - "license": "MIT", - "devDependencies": { - "@scure/base": "1.1.1", - "fast-check": "3.0.0", - "micro-bmark": "0.3.1", - "micro-should": "0.4.0", - "prettier": "2.8.4", - "typescript": "5.0.2" - }, - "main": "index.js", - "exports": { - ".": { - "types": "./index.d.ts", - "import": "./esm/index.js", - "default": "./index.js" - }, - "./webcrypto/crypto": { - "types": "./webcrypto/crypto.d.ts", - "node": { - "import": "./esm/webcrypto/cryptoNode.js", - "default": "./webcrypto/cryptoNode.js" - }, - "import": "./esm/webcrypto/crypto.js", - "default": "./webcrypto/crypto.js" - }, - "./_micro": { - "types": "./_micro.d.ts", - "import": "./esm/_micro.js", - "default": "./_micro.js" - }, - "./_poly1305": { - "types": "./_poly1305.d.ts", - "import": "./esm/_poly1305.js", - "default": "./_poly1305.js" - }, - "./chacha": { - "types": "./chacha.d.ts", - "import": "./esm/chacha.js", - "default": "./chacha.js" - }, - "./salsa": { - "types": "./salsa.d.ts", - "import": "./esm/salsa.js", - "default": "./salsa.js" - }, - "./simple": { - "types": "./simple.d.ts", - "import": "./esm/simple.js", - "default": "./simple.js" - }, - "./utils": { - "types": "./utils.d.ts", - "import": "./esm/utils.js", - "default": "./utils.js" - }, - "./index": { - "types": "./index.d.ts", - "import": "./esm/index.js", - "default": "./index.js" - }, - "./webcrypto/aes": { - "types": "./webcrypto/aes.d.ts", - "import": "./esm/webcrypto/aes.js", - "default": "./webcrypto/aes.js" - }, - "./webcrypto/siv": { - "types": "./webcrypto/siv.d.ts", - "import": "./esm/webcrypto/siv.js", - "default": "./webcrypto/siv.js" - }, - "./webcrypto/ff1": { - "types": "./webcrypto/ff1.d.ts", - "import": "./esm/webcrypto/ff1.js", - "default": "./webcrypto/ff1.js" - }, - "./webcrypto/utils": { - "types": "./webcrypto/utils.d.ts", - "import": "./esm/webcrypto/utils.js", - "default": "./webcrypto/utils.js" - } - }, - "browser": { - "node:crypto": false, - "./webcrypto/crypto": "./webcrypto/crypto.js" - }, - "keywords": [ - "salsa20", - "chacha", - "aes", - "cryptography", - "crypto", - "noble", - "cipher", - "ciphers", - "xsalsa20", - "xchacha20", - "poly1305", - "xsalsa20poly1305", - "chacha20poly1305", - "xchacha20poly1305", - "secretbox", - "rijndael", - "siv" - ], - "funding": "https://paulmillr.com/funding/" -} diff --git a/node_modules/@noble/ciphers/salsa.d.ts b/node_modules/@noble/ciphers/salsa.d.ts deleted file mode 100644 index 809500fe..00000000 --- a/node_modules/@noble/ciphers/salsa.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { Cipher } from './utils.js'; -/** - * hsalsa hashing function, used primarily in xsalsa, to hash - * key and nonce into key' and nonce'. - * Same as salsaCore, but there doesn't seem to be a way to move the block - * out without 25% performance hit. - */ -export declare function hsalsa(c: Uint32Array, key: Uint8Array, nonce: Uint8Array, out: Uint8Array): Uint8Array; -/** - * Salsa20 from original paper. - * With 12-byte nonce, it's not safe to use fill it with random (CSPRNG), due to collision chance. - */ -export declare const salsa20: (key: Uint8Array, nonce: Uint8Array, data: Uint8Array, output?: Uint8Array | undefined, counter?: number) => Uint8Array; -/** - * xsalsa20 eXtended-nonce salsa. - * With 24-byte nonce, it's safe to use fill it with random (CSPRNG). - */ -export declare const xsalsa20: (key: Uint8Array, nonce: Uint8Array, data: Uint8Array, output?: Uint8Array | undefined, counter?: number) => Uint8Array; -/** - * xsalsa20-poly1305 eXtended-nonce salsa. - * With 24-byte nonce, it's safe to use fill it with random (CSPRNG). - * Also known as secretbox from libsodium / nacl. - */ -export declare const xsalsa20poly1305: (key: Uint8Array, nonce: Uint8Array) => Cipher; -//# sourceMappingURL=salsa.d.ts.map \ No newline at end of file diff --git a/node_modules/@noble/ciphers/salsa.d.ts.map b/node_modules/@noble/ciphers/salsa.d.ts.map deleted file mode 100644 index 8456913f..00000000 --- a/node_modules/@noble/ciphers/salsa.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"salsa.d.ts","sourceRoot":"","sources":["src/salsa.ts"],"names":[],"mappings":"AAAA,OAAO,EAAgC,MAAM,EAAE,MAAM,YAAY,CAAC;AA4DlE;;;;;GAKG;AAEH,wBAAgB,MAAM,CAAC,CAAC,EAAE,WAAW,EAAE,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU,EAAE,GAAG,EAAE,UAAU,GAAG,UAAU,CAoCtG;AAED;;;GAGG;AACH,eAAO,MAAM,OAAO,yHAAsE,CAAC;AAE3F;;;GAGG;AACH,eAAO,MAAM,QAAQ,yHAKnB,CAAC;AAEH;;;;GAIG;AACH,eAAO,MAAM,gBAAgB,QAAS,UAAU,SAAS,UAAU,KAAG,MAgDrE,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/ciphers/salsa.js b/node_modules/@noble/ciphers/salsa.js deleted file mode 100644 index 3ec8aa3a..00000000 --- a/node_modules/@noble/ciphers/salsa.js +++ /dev/null @@ -1,212 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.xsalsa20poly1305 = exports.xsalsa20 = exports.salsa20 = exports.hsalsa = void 0; -const utils_js_1 = require("./utils.js"); -const _salsa_js_1 = require("./_salsa.js"); -const _poly1305_js_1 = require("./_poly1305.js"); -// Salsa20 stream cipher was released in 2005. -// Salsa's goal was to implement AES replacement that does not rely on S-Boxes, -// which are hard to implement in a constant-time manner. -// https://cr.yp.to/snuffle.html, https://cr.yp.to/snuffle/salsafamily-20071225.pdf -// Left rotate for uint32 -const rotl = (a, b) => (a << b) | (a >>> (32 - b)); -/** - * Salsa20 core function. - */ -// prettier-ignore -function salsaCore(c, k, i, out, cnt, rounds = 20) { - // Based on https://cr.yp.to/salsa20.html - let y00 = c[0], y01 = k[0], y02 = k[1], y03 = k[2]; // "expa" Key Key Key - let y04 = k[3], y05 = c[1], y06 = i[0], y07 = i[1]; // Key "nd 3" Nonce Nonce - let y08 = cnt, y09 = 0, y10 = c[2], y11 = k[4]; // Pos. Pos. "2-by" Key - let y12 = k[5], y13 = k[6], y14 = k[7], y15 = c[3]; // Key Key Key "te k" - // Save state to temporary variables - let x00 = y00, x01 = y01, x02 = y02, x03 = y03, x04 = y04, x05 = y05, x06 = y06, x07 = y07, x08 = y08, x09 = y09, x10 = y10, x11 = y11, x12 = y12, x13 = y13, x14 = y14, x15 = y15; - // Main loop - for (let i = 0; i < rounds; i += 2) { - x04 ^= rotl(x00 + x12 | 0, 7); - x08 ^= rotl(x04 + x00 | 0, 9); - x12 ^= rotl(x08 + x04 | 0, 13); - x00 ^= rotl(x12 + x08 | 0, 18); - x09 ^= rotl(x05 + x01 | 0, 7); - x13 ^= rotl(x09 + x05 | 0, 9); - x01 ^= rotl(x13 + x09 | 0, 13); - x05 ^= rotl(x01 + x13 | 0, 18); - x14 ^= rotl(x10 + x06 | 0, 7); - x02 ^= rotl(x14 + x10 | 0, 9); - x06 ^= rotl(x02 + x14 | 0, 13); - x10 ^= rotl(x06 + x02 | 0, 18); - x03 ^= rotl(x15 + x11 | 0, 7); - x07 ^= rotl(x03 + x15 | 0, 9); - x11 ^= rotl(x07 + x03 | 0, 13); - x15 ^= rotl(x11 + x07 | 0, 18); - x01 ^= rotl(x00 + x03 | 0, 7); - x02 ^= rotl(x01 + x00 | 0, 9); - x03 ^= rotl(x02 + x01 | 0, 13); - x00 ^= rotl(x03 + x02 | 0, 18); - x06 ^= rotl(x05 + x04 | 0, 7); - x07 ^= rotl(x06 + x05 | 0, 9); - x04 ^= rotl(x07 + x06 | 0, 13); - x05 ^= rotl(x04 + x07 | 0, 18); - x11 ^= rotl(x10 + x09 | 0, 7); - x08 ^= rotl(x11 + x10 | 0, 9); - x09 ^= rotl(x08 + x11 | 0, 13); - x10 ^= rotl(x09 + x08 | 0, 18); - x12 ^= rotl(x15 + x14 | 0, 7); - x13 ^= rotl(x12 + x15 | 0, 9); - x14 ^= rotl(x13 + x12 | 0, 13); - x15 ^= rotl(x14 + x13 | 0, 18); - } - // Write output - let oi = 0; - out[oi++] = (y00 + x00) | 0; - out[oi++] = (y01 + x01) | 0; - out[oi++] = (y02 + x02) | 0; - out[oi++] = (y03 + x03) | 0; - out[oi++] = (y04 + x04) | 0; - out[oi++] = (y05 + x05) | 0; - out[oi++] = (y06 + x06) | 0; - out[oi++] = (y07 + x07) | 0; - out[oi++] = (y08 + x08) | 0; - out[oi++] = (y09 + x09) | 0; - out[oi++] = (y10 + x10) | 0; - out[oi++] = (y11 + x11) | 0; - out[oi++] = (y12 + x12) | 0; - out[oi++] = (y13 + x13) | 0; - out[oi++] = (y14 + x14) | 0; - out[oi++] = (y15 + x15) | 0; -} -/** - * hsalsa hashing function, used primarily in xsalsa, to hash - * key and nonce into key' and nonce'. - * Same as salsaCore, but there doesn't seem to be a way to move the block - * out without 25% performance hit. - */ -// prettier-ignore -function hsalsa(c, key, nonce, out) { - const k32 = (0, utils_js_1.u32)(key); - const i32 = (0, utils_js_1.u32)(nonce); - const o32 = (0, utils_js_1.u32)(out); - let x00 = c[0], x01 = k32[0], x02 = k32[1], x03 = k32[2], x04 = k32[3]; - let x05 = c[1], x06 = i32[0], x07 = i32[1], x08 = i32[2], x09 = i32[3]; - let x10 = c[2], x11 = k32[4], x12 = k32[5], x13 = k32[6], x14 = k32[7]; - let x15 = c[3]; - // Main loop - for (let i = 0; i < 20; i += 2) { - x04 ^= rotl(x00 + x12 | 0, 7); - x08 ^= rotl(x04 + x00 | 0, 9); - x12 ^= rotl(x08 + x04 | 0, 13); - x00 ^= rotl(x12 + x08 | 0, 18); - x09 ^= rotl(x05 + x01 | 0, 7); - x13 ^= rotl(x09 + x05 | 0, 9); - x01 ^= rotl(x13 + x09 | 0, 13); - x05 ^= rotl(x01 + x13 | 0, 18); - x14 ^= rotl(x10 + x06 | 0, 7); - x02 ^= rotl(x14 + x10 | 0, 9); - x06 ^= rotl(x02 + x14 | 0, 13); - x10 ^= rotl(x06 + x02 | 0, 18); - x03 ^= rotl(x15 + x11 | 0, 7); - x07 ^= rotl(x03 + x15 | 0, 9); - x11 ^= rotl(x07 + x03 | 0, 13); - x15 ^= rotl(x11 + x07 | 0, 18); - x01 ^= rotl(x00 + x03 | 0, 7); - x02 ^= rotl(x01 + x00 | 0, 9); - x03 ^= rotl(x02 + x01 | 0, 13); - x00 ^= rotl(x03 + x02 | 0, 18); - x06 ^= rotl(x05 + x04 | 0, 7); - x07 ^= rotl(x06 + x05 | 0, 9); - x04 ^= rotl(x07 + x06 | 0, 13); - x05 ^= rotl(x04 + x07 | 0, 18); - x11 ^= rotl(x10 + x09 | 0, 7); - x08 ^= rotl(x11 + x10 | 0, 9); - x09 ^= rotl(x08 + x11 | 0, 13); - x10 ^= rotl(x09 + x08 | 0, 18); - x12 ^= rotl(x15 + x14 | 0, 7); - x13 ^= rotl(x12 + x15 | 0, 9); - x14 ^= rotl(x13 + x12 | 0, 13); - x15 ^= rotl(x14 + x13 | 0, 18); - } - o32[0] = x00; - o32[1] = x05; - o32[2] = x10; - o32[3] = x15; - o32[4] = x06; - o32[5] = x07; - o32[6] = x08; - o32[7] = x09; - return out; -} -exports.hsalsa = hsalsa; -/** - * Salsa20 from original paper. - * With 12-byte nonce, it's not safe to use fill it with random (CSPRNG), due to collision chance. - */ -exports.salsa20 = (0, _salsa_js_1.salsaBasic)({ core: salsaCore, counterRight: true }); -/** - * xsalsa20 eXtended-nonce salsa. - * With 24-byte nonce, it's safe to use fill it with random (CSPRNG). - */ -exports.xsalsa20 = (0, _salsa_js_1.salsaBasic)({ - core: salsaCore, - counterRight: true, - extendNonceFn: hsalsa, - allow128bitKeys: false, -}); -/** - * xsalsa20-poly1305 eXtended-nonce salsa. - * With 24-byte nonce, it's safe to use fill it with random (CSPRNG). - * Also known as secretbox from libsodium / nacl. - */ -const xsalsa20poly1305 = (key, nonce) => { - const tagLength = 16; - (0, utils_js_1.ensureBytes)(key, 32); - (0, utils_js_1.ensureBytes)(nonce, 24); - return { - tagLength, - encrypt: (plaintext, output) => { - (0, utils_js_1.ensureBytes)(plaintext); - // This is small optimization (calculate auth key with same call as encryption itself) makes it hard - // to separate tag calculation and encryption itself, since 32 byte is half-block of salsa (64 byte) - const clength = plaintext.length + 32; - if (output) { - (0, utils_js_1.ensureBytes)(output, clength); - } - else { - output = new Uint8Array(clength); - } - output.set(plaintext, 32); - (0, exports.xsalsa20)(key, nonce, output, output); - const authKey = output.subarray(0, 32); - const tag = (0, _poly1305_js_1.poly1305)(output.subarray(32), authKey); - // Clean auth key, even though JS provides no guarantees about memory cleaning - output.set(tag, tagLength); - output.subarray(0, tagLength).fill(0); - return output.subarray(tagLength); - }, - decrypt: (ciphertext) => { - (0, utils_js_1.ensureBytes)(ciphertext); - const clength = ciphertext.length; - if (clength < tagLength) - throw new Error('encrypted data should be at least 16 bytes'); - // Create new ciphertext array: - // auth tag auth tag from ciphertext ciphertext - // [bytes 0..16] [bytes 16..32] [bytes 32..] - // 16 instead of 32, because we already have 16 byte tag - const ciphertext_ = new Uint8Array(clength + tagLength); // alloc - ciphertext_.set(ciphertext, tagLength); - // Each xsalsa20 calls to hsalsa to calculate key, but seems not much perf difference - // Separate call to calculate authkey, since first bytes contains tag - const authKey = (0, exports.xsalsa20)(key, nonce, new Uint8Array(32)); // alloc(32) - const tag = (0, _poly1305_js_1.poly1305)(ciphertext_.subarray(32), authKey); - if (!(0, utils_js_1.equalBytes)(ciphertext_.subarray(16, 32), tag)) - throw new Error('invalid tag'); - const plaintext = (0, exports.xsalsa20)(key, nonce, ciphertext_); // alloc - // Clean auth key, even though JS provides no guarantees about memory cleaning - plaintext.subarray(0, 32).fill(0); - authKey.fill(0); - return plaintext.subarray(32); - }, - }; -}; -exports.xsalsa20poly1305 = xsalsa20poly1305; -//# sourceMappingURL=salsa.js.map \ No newline at end of file diff --git a/node_modules/@noble/ciphers/salsa.js.map b/node_modules/@noble/ciphers/salsa.js.map deleted file mode 100644 index bd20e2c1..00000000 --- a/node_modules/@noble/ciphers/salsa.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"salsa.js","sourceRoot":"","sources":["src/salsa.ts"],"names":[],"mappings":";;;AAAA,yCAAkE;AAClE,2CAAyC;AACzC,iDAA0C;AAE1C,8CAA8C;AAC9C,+EAA+E;AAC/E,yDAAyD;AACzD,mFAAmF;AAEnF,yBAAyB;AACzB,MAAM,IAAI,GAAG,CAAC,CAAS,EAAE,CAAS,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;AAEnE;;GAEG;AACH,kBAAkB;AAClB,SAAS,SAAS,CAChB,CAAc,EAAE,CAAc,EAAE,CAAc,EAAE,GAAgB,EAAE,GAAW,EAAE,MAAM,GAAG,EAA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EAAE,CAAC,CAAC;QAChC,CAAC;KACF,CAAC;AACJ,CAAC,CAAC;AAhDW,QAAA,gBAAgB,oBAgD3B"} \ No newline at end of file diff --git a/node_modules/@noble/ciphers/simple.d.ts b/node_modules/@noble/ciphers/simple.d.ts deleted file mode 100644 index 7486fd74..00000000 --- a/node_modules/@noble/ciphers/simple.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { utf8ToBytes } from './utils.js'; -export { utf8ToBytes }; -/** - * Alias to xsalsa20poly1305, for compatibility with libsodium / nacl - */ -export declare function secretbox(key: Uint8Array, nonce: Uint8Array): { - seal: (plaintext: Uint8Array) => Uint8Array; - open: (ciphertext: Uint8Array) => Uint8Array; -}; -export declare function randomKey(): Uint8Array; -/** - * Encrypt plaintext under key with random nonce, using xchacha20poly1305. - * User never touches nonce: it is prepended to ciphertext. - */ -export declare function encrypt(key: Uint8Array, plaintext: Uint8Array): Uint8Array; -/** - * Decrypt plaintext under key with random nonce, using xchacha20poly1305. - * User never touches nonce: it is prepended to ciphertext. - */ -export declare function decrypt(key: Uint8Array, ciphertext: Uint8Array): Uint8Array; -export declare function aes_encrypt(key: Uint8Array, plaintext: Uint8Array): Promise; -export declare function aes_decrypt(key: Uint8Array, ciphertext: Uint8Array): Promise; -//# sourceMappingURL=simple.d.ts.map \ No newline at end of file diff --git a/node_modules/@noble/ciphers/simple.d.ts.map b/node_modules/@noble/ciphers/simple.d.ts.map deleted file mode 100644 index e35b2363..00000000 --- a/node_modules/@noble/ciphers/simple.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"simple.d.ts","sourceRoot":"","sources":["src/simple.ts"],"names":[],"mappings":"AAEA,OAAO,EAA4B,WAAW,EAAE,MAAM,YAAY,CAAC;AAInE,OAAO,EAAE,WAAW,EAAE,CAAC;AAEvB;;GAEG;AACH,wBAAgB,SAAS,CAAC,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU;;;EAK3D;AAED,wBAAgB,SAAS,IAAI,UAAU,CAEtC;AACD;;;GAGG;AACH,wBAAgB,OAAO,CAAC,GAAG,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,GAAG,UAAU,CAK1E;AAED;;;GAGG;AACH,wBAAgB,OAAO,CAAC,GAAG,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,GAAG,UAAU,CAO3E;AAED,wBAAsB,WAAW,CAAC,GAAG,EAAE,UAAU,EAAE,SAAS,EAAE,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,CAM7F;AAED,wBAAsB,WAAW,CAAC,GAAG,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,CAO9F"} \ No newline at end of file diff --git a/node_modules/@noble/ciphers/simple.js b/node_modules/@noble/ciphers/simple.js deleted file mode 100644 index 58309299..00000000 --- a/node_modules/@noble/ciphers/simple.js +++ /dev/null @@ -1,67 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.aes_decrypt = exports.aes_encrypt = exports.decrypt = exports.encrypt = exports.randomKey = exports.secretbox = exports.utf8ToBytes = void 0; -const chacha_js_1 = require("./chacha.js"); -const salsa_js_1 = require("./salsa.js"); -const utils_js_1 = require("./utils.js"); -Object.defineProperty(exports, "utf8ToBytes", { enumerable: true, get: function () { return utils_js_1.utf8ToBytes; } }); -const aes_js_1 = require("./webcrypto/aes.js"); -const utils_js_2 = require("./webcrypto/utils.js"); -/** - * Alias to xsalsa20poly1305, for compatibility with libsodium / nacl - */ -function secretbox(key, nonce) { - (0, utils_js_1.ensureBytes)(key); - (0, utils_js_1.ensureBytes)(nonce); - const xs = (0, salsa_js_1.xsalsa20poly1305)(key, nonce); - return { seal: xs.encrypt, open: xs.decrypt }; -} -exports.secretbox = secretbox; -function randomKey() { - return (0, utils_js_2.randomBytes)(32); -} -exports.randomKey = randomKey; -/** - * Encrypt plaintext under key with random nonce, using xchacha20poly1305. - * User never touches nonce: it is prepended to ciphertext. - */ -function encrypt(key, plaintext) { - (0, utils_js_1.ensureBytes)(key); - const nonce = (0, utils_js_2.randomBytes)(24); - const ciphertext = (0, chacha_js_1.xchacha20poly1305)(key, nonce).encrypt(plaintext); - return (0, utils_js_1.concatBytes)(nonce, ciphertext); -} -exports.encrypt = encrypt; -/** - * Decrypt plaintext under key with random nonce, using xchacha20poly1305. - * User never touches nonce: it is prepended to ciphertext. - */ -function decrypt(key, ciphertext) { - const nonceLength = 24; - (0, utils_js_1.ensureBytes)(ciphertext); - if (ciphertext.length <= nonceLength) - throw new Error('invalid ciphertext length'); - const nonce = ciphertext.subarray(0, nonceLength); - const ciphertextWithoutNonce = ciphertext.subarray(nonceLength); - return (0, chacha_js_1.xchacha20poly1305)(key, nonce).decrypt(ciphertextWithoutNonce); -} -exports.decrypt = decrypt; -async function aes_encrypt(key, plaintext) { - const nonceLength = 12; - (0, utils_js_1.ensureBytes)(key); - const nonce = (0, utils_js_2.randomBytes)(nonceLength); - const ciphertext = await (0, aes_js_1.aes_256_gcm)(key, nonce).encrypt(plaintext); - return (0, utils_js_1.concatBytes)(nonce, ciphertext); -} -exports.aes_encrypt = aes_encrypt; -async function aes_decrypt(key, ciphertext) { - const nonceLength = 12; - (0, utils_js_1.ensureBytes)(ciphertext); - if (ciphertext.length <= nonceLength) - throw new Error('invalid ciphertext length'); - const nonce = ciphertext.subarray(0, nonceLength); - const ciphertextWithoutNonce = ciphertext.subarray(nonceLength); - return (0, aes_js_1.aes_256_gcm)(key, nonce).decrypt(ciphertextWithoutNonce); -} -exports.aes_decrypt = aes_decrypt; -//# sourceMappingURL=simple.js.map \ No newline at end of file diff --git a/node_modules/@noble/ciphers/simple.js.map b/node_modules/@noble/ciphers/simple.js.map deleted file mode 100644 index e25813eb..00000000 --- a/node_modules/@noble/ciphers/simple.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"simple.js","sourceRoot":"","sources":["src/simple.ts"],"names":[],"mappings":";;;AAAA,2CAAgD;AAChD,yCAA8C;AAC9C,yCAAm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E,OAAO,IAAA,6BAAiB,EAAC,GAAG,EAAE,KAAK,CAAC,CAAC,OAAO,CAAC,sBAAsB,CAAC,CAAC;AACvE,CAAC;AAPD,0BAOC;AAEM,KAAK,UAAU,WAAW,CAAC,GAAe,EAAE,SAAqB;IACtE,MAAM,WAAW,GAAG,EAAE,CAAC;IACvB,IAAA,sBAAW,EAAC,GAAG,CAAC,CAAC;IACjB,MAAM,KAAK,GAAG,IAAA,sBAAW,EAAC,WAAW,CAAC,CAAC;IACvC,MAAM,UAAU,GAAG,MAAM,IAAA,oBAAW,EAAC,GAAG,EAAE,KAAK,CAAC,CAAC,OAAO,CAAC,SAAS,CAAC,CAAC;IACpE,OAAO,IAAA,sBAAW,EAAC,KAAK,EAAE,UAAU,CAAC,CAAC;AACxC,CAAC;AAND,kCAMC;AAEM,KAAK,UAAU,WAAW,CAAC,GAAe,EAAE,UAAsB;IACvE,MAAM,WAAW,GAAG,EAAE,CAAC;IACvB,IAAA,sBAAW,EAAC,UAAU,CAAC,CAAC;IACxB,IAAI,UAAU,CAAC,MAAM,IAAI,WAAW;QAAE,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,CAAC;IACnF,MAAM,KAAK,GAAG,UAAU,CAAC,QAAQ,CAAC,CAAC,EAAE,WAAW,CAAC,CAAC;IAClD,MAAM,sBAAsB,GAAG,UAAU,CAAC,QAAQ,CAAC,WAAW,CAAC,CAAC;IAChE,OAAO,IAAA,oBAAW,EAAC,GAAG,EAAE,KAAK,CAAC,CAAC,OAAO,CAAC,sBAAsB,CAAC,CAAC;AACjE,CAAC;AAPD,kCAOC"} \ No newline at end of file diff --git a/node_modules/@noble/ciphers/src/_assert.ts b/node_modules/@noble/ciphers/src/_assert.ts deleted file mode 100644 index cd802fdc..00000000 --- a/node_modules/@noble/ciphers/src/_assert.ts +++ /dev/null @@ -1,42 +0,0 @@ -function number(n: number) { - if (!Number.isSafeInteger(n) || n < 0) throw new Error(`Wrong positive integer: ${n}`); -} - -function bool(b: boolean) { - if (typeof b !== 'boolean') throw new Error(`Expected boolean, not ${b}`); -} - -function bytes(b: Uint8Array | undefined, ...lengths: number[]) { - if (!(b instanceof Uint8Array)) throw new Error('Expected Uint8Array'); - if (lengths.length > 0 && !lengths.includes(b.length)) - throw new Error(`Expected Uint8Array of length ${lengths}, not of length=${b.length}`); -} - -export type Hash = { - (data: Uint8Array): Uint8Array; - blockLen: number; - outputLen: number; - create: any; -}; -function hash(hash: Hash) { - if (typeof hash !== 'function' || typeof hash.create !== 'function') - throw new Error('hash must be wrapped by utils.wrapConstructor'); - number(hash.outputLen); - number(hash.blockLen); -} - -function exists(instance: any, checkFinished = true) { - if (instance.destroyed) throw new Error('Hash instance has been destroyed'); - if (checkFinished && instance.finished) throw new Error('Hash#digest() has already been called'); -} -function output(out: any, instance: any) { - bytes(out); - const min = instance.outputLen; - if (out.length < min) { - throw new Error(`digestInto() expects output buffer of length at least ${min}`); - } -} - -export { number, bool, bytes, hash, exists, output }; -const assert = { number, bool, bytes, hash, exists, output }; -export default assert; diff --git a/node_modules/@noble/ciphers/src/_micro.ts b/node_modules/@noble/ciphers/src/_micro.ts deleted file mode 100644 index 0cf1878e..00000000 --- a/node_modules/@noble/ciphers/src/_micro.ts +++ /dev/null @@ -1,313 +0,0 @@ -/*! noble-ciphers - MIT License (c) 2023 Paul Miller (paulmillr.com) */ - -// micro-noble-ciphers: more auditable, but slower version of salsa20, chacha & poly1305. -// Implements the same algorithms that are present in other files, -// but without unrolled loops (https://en.wikipedia.org/wiki/Loop_unrolling). - -import * as u from './utils.js'; -import { salsaBasic } from './_salsa.js'; -// Utils -function hexToNumber(hex: string): bigint { - if (typeof hex !== 'string') throw new Error('hex string expected, got ' + typeof hex); - // Big Endian - return BigInt(hex === '' ? '0' : `0x${hex}`); -} -function bytesToNumberLE(bytes: Uint8Array): bigint { - return hexToNumber(u.bytesToHex(Uint8Array.from(bytes).reverse())); -} -function numberToBytesLE(n: number | bigint, len: number): Uint8Array { - return u.hexToBytes(n.toString(16).padStart(len * 2, '0')).reverse(); -} - -const rotl = (a: number, b: number) => (a << b) | (a >>> (32 - b)); -// /Utils - -function salsaQR(x: Uint32Array, a: number, b: number, c: number, d: number) { - x[b] ^= rotl((x[a] + x[d]) | 0, 7); - x[c] ^= rotl((x[b] + x[a]) | 0, 9); - x[d] ^= rotl((x[c] + x[b]) | 0, 13); - x[a] ^= rotl((x[d] + x[c]) | 0, 18); -} -// prettier-ignore -function chachaQR(x: Uint32Array, a: number, b: number, c: number, d: number) { - x[a] = (x[a] + x[b]) | 0; x[d] = rotl(x[d] ^ x[a], 16); - x[c] = (x[c] + x[d]) | 0; x[b] = rotl(x[b] ^ x[c], 12); - x[a] = (x[a] + x[b]) | 0; x[d] = rotl(x[d] ^ x[a], 8); - x[c] = (x[c] + x[d]) | 0; x[b] = rotl(x[b] ^ x[c], 7); -} - -function salsaRound(x: Uint32Array, rounds = 20) { - for (let i = 0; i < rounds; i += 2) { - salsaQR(x, 0, 4, 8, 12); - salsaQR(x, 5, 9, 13, 1); - salsaQR(x, 10, 14, 2, 6); - salsaQR(x, 15, 3, 7, 11); - salsaQR(x, 0, 1, 2, 3); - salsaQR(x, 5, 6, 7, 4); - salsaQR(x, 10, 11, 8, 9); - salsaQR(x, 15, 12, 13, 14); - } -} - -function chachaRound(x: Uint32Array, rounds = 20) { - for (let i = 0; i < rounds; i += 2) { - chachaQR(x, 0, 4, 8, 12); - chachaQR(x, 1, 5, 9, 13); - chachaQR(x, 2, 6, 10, 14); - chachaQR(x, 3, 7, 11, 15); - chachaQR(x, 0, 5, 10, 15); - chachaQR(x, 1, 6, 11, 12); - chachaQR(x, 2, 7, 8, 13); - chachaQR(x, 3, 4, 9, 14); - } -} - -function salsaCore( - c: Uint32Array, - k: Uint32Array, - n: Uint32Array, - out: Uint32Array, - cnt: number, - rounds = 20 -): void { - // prettier-ignore - const y = new Uint32Array([ - c[0], k[0], k[1], k[2], // "expa" Key Key Key - k[3], c[1], n[0], n[1], // Key "nd 3" Nonce Nonce - cnt, 0 , c[2], k[4], // Pos. Pos. "2-by" Key - k[5], k[6], k[7], c[3], // Key Key Key "te k" - ]); - const x = y.slice(); - salsaRound(x, rounds); - for (let i = 0; i < 16; i++) out[i] = (y[i] + x[i]) | 0; -} - -export function hsalsa(c: Uint32Array, key: Uint8Array, nonce: Uint8Array): Uint8Array { - const k = u.u32(key); - const i = u.u32(nonce); - // prettier-ignore - const x = new Uint32Array([ - c[0], k[0], k[1], k[2], - k[3], c[1], i[0], i[1], - i[2], i[3], c[2], k[4], - k[5], k[6], k[7], c[3] - ]); - salsaRound(x); - return u.u8(new Uint32Array([x[0], x[5], x[10], x[15], x[6], x[7], x[8], x[9]])); -} - -function chachaCore( - c: Uint32Array, - k: Uint32Array, - n: Uint32Array, - out: Uint32Array, - cnt: number, - rounds = 20 -): void { - // prettier-ignore - const y = new Uint32Array([ - c[0], c[1], c[2], c[3], // "expa" "nd 3" "2-by" "te k" - k[0], k[1], k[2], k[3], // Key Key Key Key - k[4], k[5], k[6], k[7], // Key Key Key Key - cnt, n[0], n[1], n[2], // Counter Counter Nonce Nonce - ]); - const x = y.slice(); - chachaRound(x, rounds); - for (let i = 0; i < 16; i++) out[i] = (y[i] + x[i]) | 0; -} - -export function hchacha(c: Uint32Array, key: Uint8Array, nonce: Uint8Array): Uint8Array { - const k = u.u32(key); - const i = u.u32(nonce); - // prettier-ignore - const x = new Uint32Array([ - c[0], c[1], c[2], c[3], - k[0], k[1], k[2], k[3], - k[4], k[5], k[6], k[7], - i[0], i[1], i[2], i[3], - ]); - chachaRound(x); - return u.u8(new Uint32Array([x[0], x[1], x[2], x[3], x[12], x[13], x[14], x[15]])); -} - -/** - * salsa20, 12-byte nonce. - */ -export const salsa20 = salsaBasic({ core: salsaCore, counterRight: true }); - -/** - * xsalsa20, 24-byte nonce. - */ -export const xsalsa20 = salsaBasic({ - core: salsaCore, - counterRight: true, - extendNonceFn: hsalsa, - allow128bitKeys: false, -}); - -/** - * chacha20 non-RFC, original version by djb. 8-byte nonce, 8-byte counter. - */ -export const chacha20orig = salsaBasic({ core: chachaCore, counterRight: false, counterLen: 8 }); -/** - * chacha20 RFC 8439 (IETF / TLS). 12-byte nonce, 4-byte counter. - */ -export const chacha20 = salsaBasic({ - core: chachaCore, - counterRight: false, - counterLen: 4, - allow128bitKeys: false, -}); - -/** - * xchacha20 eXtended-nonce. https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-xchacha - */ -export const xchacha20 = salsaBasic({ - core: chachaCore, - counterRight: false, - counterLen: 8, - extendNonceFn: hchacha, - allow128bitKeys: false, -}); - -/** - * 8-round chacha from the original paper. - */ -export const chacha8 = salsaBasic({ - core: chachaCore, - counterRight: false, - counterLen: 4, - rounds: 8, -}); - -/** - * 12-round chacha from the original paper. - */ -export const chacha12 = salsaBasic({ - core: chachaCore, - counterRight: false, - counterLen: 4, - rounds: 12, -}); - -const POW_2_130_5 = 2n ** 130n - 5n; -const POW_2_128_1 = 2n ** (16n * 8n) - 1n; -// Can be speed-up using BigUint64Array, but would be more complicated -export function poly1305(msg: Uint8Array, key: Uint8Array): Uint8Array { - u.ensureBytes(msg); - u.ensureBytes(key); - let acc = 0n; - const r = bytesToNumberLE(key.subarray(0, 16)) & 0x0ffffffc0ffffffc0ffffffc0fffffffn; - const s = bytesToNumberLE(key.subarray(16)); - // Process by 16 byte chunks - for (let i = 0; i < msg.length; i += 16) { - const m = msg.subarray(i, i + 16); - const n = bytesToNumberLE(m) | (1n << BigInt(8 * m.length)); - acc = ((acc + n) * r) % POW_2_130_5; - } - const res = (acc + s) & POW_2_128_1; - return numberToBytesLE(res, 16); -} - -function computeTag( - fn: typeof chacha20, - key: Uint8Array, - nonce: Uint8Array, - ciphertext: Uint8Array, - AAD?: Uint8Array -): Uint8Array { - const res = []; - if (AAD) { - res.push(AAD); - const leftover = AAD.length % 16; - if (leftover > 0) res.push(new Uint8Array(16 - leftover)); - } - res.push(ciphertext); - const leftover = ciphertext.length % 16; - if (leftover > 0) res.push(new Uint8Array(16 - leftover)); - // Lengths - const num = new Uint8Array(16); - const view = u.createView(num); - u.setBigUint64(view, 0, BigInt(AAD ? AAD.length : 0), true); - u.setBigUint64(view, 8, BigInt(ciphertext.length), true); - res.push(num); - const authKey = fn(key, nonce, new Uint8Array(32)); - return poly1305(u.concatBytes(...res), authKey); -} - -/** - * xsalsa20-poly1305 eXtended-nonce (24 bytes) salsa. - */ -export function xsalsa20poly1305(key: Uint8Array, nonce: Uint8Array) { - u.ensureBytes(key); - u.ensureBytes(nonce); - return { - encrypt: (plaintext: Uint8Array) => { - u.ensureBytes(plaintext); - const m = u.concatBytes(new Uint8Array(32), plaintext); - const c = xsalsa20(key, nonce, m); - const authKey = c.subarray(0, 32); - const data = c.subarray(32); - const tag = poly1305(data, authKey); - return u.concatBytes(tag, data); - }, - decrypt: (ciphertext: Uint8Array) => { - u.ensureBytes(ciphertext); - if (ciphertext.length < 16) throw new Error('encrypted data must be at least 16 bytes'); - const c = u.concatBytes(new Uint8Array(16), ciphertext); - const authKey = xsalsa20(key, nonce, new Uint8Array(32)); - const tag = poly1305(c.subarray(32), authKey); - if (!u.equalBytes(c.subarray(16, 32), tag)) throw new Error('invalid poly1305 tag'); - return xsalsa20(key, nonce, c).subarray(32); - }, - }; -} - -/** - * Alias to xsalsa20-poly1305 - */ -export function secretbox(key: Uint8Array, nonce: Uint8Array) { - u.ensureBytes(key); - u.ensureBytes(nonce); - const xs = xsalsa20poly1305(key, nonce); - return { seal: xs.encrypt, open: xs.decrypt }; -} - -export const _poly1305_aead = - (fn: typeof chacha20) => - (key: Uint8Array, nonce: Uint8Array, AAD?: Uint8Array): u.Cipher => { - const tagLength = 16; - const keyLength = 32; - u.ensureBytes(key, keyLength); - u.ensureBytes(nonce); - return { - tagLength, - encrypt: (plaintext: Uint8Array) => { - u.ensureBytes(plaintext); - const res = fn(key, nonce, plaintext, undefined, 1); - const tag = computeTag(fn, key, nonce, res, AAD); - return u.concatBytes(res, tag); - }, - decrypt: (ciphertext: Uint8Array) => { - u.ensureBytes(ciphertext); - if (ciphertext.length < tagLength) - throw new Error(`encrypted data must be at least ${tagLength} bytes`); - const passedTag = ciphertext.subarray(-tagLength); - const data = ciphertext.subarray(0, -tagLength); - const tag = computeTag(fn, key, nonce, data, AAD); - if (!u.equalBytes(passedTag, tag)) throw new Error('invalid poly1305 tag'); - return fn(key, nonce, data, undefined, 1); - }, - }; - }; - -/** - * chacha20-poly1305 12-byte-nonce chacha. - */ -export const chacha20poly1305 = _poly1305_aead(chacha20); - -/** - * xchacha20-poly1305 eXtended-nonce (24 bytes) chacha. - * With 24-byte nonce, it's safe to use fill it with random (CSPRNG). - */ -export const xchacha20poly1305 = _poly1305_aead(xchacha20); diff --git a/node_modules/@noble/ciphers/src/_poly1305.ts b/node_modules/@noble/ciphers/src/_poly1305.ts deleted file mode 100644 index 70d8f1c7..00000000 --- a/node_modules/@noble/ciphers/src/_poly1305.ts +++ /dev/null @@ -1,286 +0,0 @@ -import { toBytes, Input, ensureBytes, Hash } from './utils.js'; -import assert from './_assert.js'; - -// Poly1305 is a fast and parallel secret-key message-authentication code. -// https://cr.yp.to/mac.html, https://cr.yp.to/mac/poly1305-20050329.pdf -// https://datatracker.ietf.org/doc/html/rfc8439 - -// Based on Public Domain poly1305-donna https://github.com/floodyberry/poly1305-donna -const u8to16 = (a: Uint8Array, i: number) => (a[i++] & 0xff) | ((a[i++] & 0xff) << 8); -class Poly1305 implements Hash { - readonly blockLen = 16; - readonly outputLen = 16; - private buffer = new Uint8Array(16); - private r = new Uint16Array(10); - private h = new Uint16Array(10); - private pad = new Uint16Array(8); - private pos = 0; - protected finished = false; - - constructor(key: Input) { - key = toBytes(key); - ensureBytes(key, 32); - const t0 = u8to16(key, 0); - const t1 = u8to16(key, 2); - const t2 = u8to16(key, 4); - const t3 = u8to16(key, 6); - const t4 = u8to16(key, 8); - const t5 = u8to16(key, 10); - const t6 = u8to16(key, 12); - const t7 = u8to16(key, 14); - - // https://github.com/floodyberry/poly1305-donna/blob/e6ad6e091d30d7f4ec2d4f978be1fcfcbce72781/poly1305-donna-16.h#L47 - this.r[0] = t0 & 0x1fff; - this.r[1] = ((t0 >>> 13) | (t1 << 3)) & 0x1fff; - this.r[2] = ((t1 >>> 10) | (t2 << 6)) & 0x1f03; - this.r[3] = ((t2 >>> 7) | (t3 << 9)) & 0x1fff; - this.r[4] = ((t3 >>> 4) | (t4 << 12)) & 0x00ff; - this.r[5] = (t4 >>> 1) & 0x1ffe; - this.r[6] = ((t4 >>> 14) | (t5 << 2)) & 0x1fff; - this.r[7] = ((t5 >>> 11) | (t6 << 5)) & 0x1f81; - this.r[8] = ((t6 >>> 8) | (t7 << 8)) & 0x1fff; - this.r[9] = (t7 >>> 5) & 0x007f; - for (let i = 0; i < 8; i++) this.pad[i] = u8to16(key, 16 + 2 * i); - } - - private process(data: Uint8Array, offset: number, isLast = false) { - const hibit = isLast ? 0 : 1 << 11; - const { h, r } = this; - const r0 = r[0]; - const r1 = r[1]; - const r2 = r[2]; - const r3 = r[3]; - const r4 = r[4]; - const r5 = r[5]; - const r6 = r[6]; - const r7 = r[7]; - const r8 = r[8]; - const r9 = r[9]; - - const t0 = u8to16(data, offset + 0); - const t1 = u8to16(data, offset + 2); - const t2 = u8to16(data, offset + 4); - const t3 = u8to16(data, offset + 6); - const t4 = u8to16(data, offset + 8); - const t5 = u8to16(data, offset + 10); - const t6 = u8to16(data, offset + 12); - const t7 = u8to16(data, offset + 14); - - let h0 = h[0] + (t0 & 0x1fff); - let h1 = h[1] + (((t0 >>> 13) | (t1 << 3)) & 0x1fff); - let h2 = h[2] + (((t1 >>> 10) | (t2 << 6)) & 0x1fff); - let h3 = h[3] + (((t2 >>> 7) | (t3 << 9)) & 0x1fff); - let h4 = h[4] + (((t3 >>> 4) | (t4 << 12)) & 0x1fff); - let h5 = h[5] + ((t4 >>> 1) & 0x1fff); - let h6 = h[6] + (((t4 >>> 14) | (t5 << 2)) & 0x1fff); - let h7 = h[7] + (((t5 >>> 11) | (t6 << 5)) & 0x1fff); - let h8 = h[8] + (((t6 >>> 8) | (t7 << 8)) & 0x1fff); - let h9 = h[9] + ((t7 >>> 5) | hibit); - - let c = 0; - - let d0 = c + h0 * r0 + h1 * (5 * r9) + h2 * (5 * r8) + h3 * (5 * r7) + h4 * (5 * r6); - c = d0 >>> 13; - d0 &= 0x1fff; - d0 += h5 * (5 * r5) + h6 * (5 * r4) + h7 * (5 * r3) + h8 * (5 * r2) + h9 * (5 * r1); - c += d0 >>> 13; - d0 &= 0x1fff; - - let d1 = c + h0 * r1 + h1 * r0 + h2 * (5 * r9) + h3 * (5 * r8) + h4 * (5 * r7); - c = d1 >>> 13; - d1 &= 0x1fff; - d1 += h5 * (5 * r6) + h6 * (5 * r5) + h7 * (5 * r4) + h8 * (5 * r3) + h9 * (5 * r2); - c += d1 >>> 13; - d1 &= 0x1fff; - - let d2 = c + h0 * r2 + h1 * r1 + h2 * r0 + h3 * (5 * r9) + h4 * (5 * r8); - c = d2 >>> 13; - d2 &= 0x1fff; - d2 += h5 * (5 * r7) + h6 * (5 * r6) + h7 * (5 * r5) + h8 * (5 * r4) + h9 * (5 * r3); - c += d2 >>> 13; - d2 &= 0x1fff; - - let d3 = c + h0 * r3 + h1 * r2 + h2 * r1 + h3 * r0 + h4 * (5 * r9); - c = d3 >>> 13; - d3 &= 0x1fff; - d3 += h5 * (5 * r8) + h6 * (5 * r7) + h7 * (5 * r6) + h8 * (5 * r5) + h9 * (5 * r4); - c += d3 >>> 13; - d3 &= 0x1fff; - - let d4 = c + h0 * r4 + h1 * r3 + h2 * r2 + h3 * r1 + h4 * r0; - c = d4 >>> 13; - d4 &= 0x1fff; - d4 += h5 * (5 * r9) + h6 * (5 * r8) + h7 * (5 * r7) + h8 * (5 * r6) + h9 * (5 * r5); - c += d4 >>> 13; - d4 &= 0x1fff; - - let d5 = c + h0 * r5 + h1 * r4 + h2 * r3 + h3 * r2 + h4 * r1; - c = d5 >>> 13; - d5 &= 0x1fff; - d5 += h5 * r0 + h6 * (5 * r9) + h7 * (5 * r8) + h8 * (5 * r7) + h9 * (5 * r6); - c += d5 >>> 13; - d5 &= 0x1fff; - - let d6 = c + h0 * r6 + h1 * r5 + h2 * r4 + h3 * r3 + h4 * r2; - c = d6 >>> 13; - d6 &= 0x1fff; - d6 += h5 * r1 + h6 * r0 + h7 * (5 * r9) + h8 * (5 * r8) + h9 * (5 * r7); - c += d6 >>> 13; - d6 &= 0x1fff; - - let d7 = c + h0 * r7 + h1 * r6 + h2 * r5 + h3 * r4 + h4 * r3; - c = d7 >>> 13; - d7 &= 0x1fff; - d7 += h5 * r2 + h6 * r1 + h7 * r0 + h8 * (5 * r9) + h9 * (5 * r8); - c += d7 >>> 13; - d7 &= 0x1fff; - - let d8 = c + h0 * r8 + h1 * r7 + h2 * r6 + h3 * r5 + h4 * r4; - c = d8 >>> 13; - d8 &= 0x1fff; - d8 += h5 * r3 + h6 * r2 + h7 * r1 + h8 * r0 + h9 * (5 * r9); - c += d8 >>> 13; - d8 &= 0x1fff; - - let d9 = c + h0 * r9 + h1 * r8 + h2 * r7 + h3 * r6 + h4 * r5; - c = d9 >>> 13; - d9 &= 0x1fff; - d9 += h5 * r4 + h6 * r3 + h7 * r2 + h8 * r1 + h9 * r0; - c += d9 >>> 13; - d9 &= 0x1fff; - - c = ((c << 2) + c) | 0; - c = (c + d0) | 0; - d0 = c & 0x1fff; - c = c >>> 13; - d1 += c; - - h[0] = d0; - h[1] = d1; - h[2] = d2; - h[3] = d3; - h[4] = d4; - h[5] = d5; - h[6] = d6; - h[7] = d7; - h[8] = d8; - h[9] = d9; - } - - private finalize() { - const { h, pad } = this; - const g = new Uint16Array(10); - let c = h[1] >>> 13; - h[1] &= 0x1fff; - for (let i = 2; i < 10; i++) { - h[i] += c; - c = h[i] >>> 13; - h[i] &= 0x1fff; - } - h[0] += c * 5; - c = h[0] >>> 13; - h[0] &= 0x1fff; - h[1] += c; - c = h[1] >>> 13; - h[1] &= 0x1fff; - h[2] += c; - - g[0] = h[0] + 5; - c = g[0] >>> 13; - g[0] &= 0x1fff; - for (let i = 1; i < 10; i++) { - g[i] = h[i] + c; - c = g[i] >>> 13; - g[i] &= 0x1fff; - } - g[9] -= 1 << 13; - - let mask = (c ^ 1) - 1; - for (let i = 0; i < 10; i++) g[i] &= mask; - mask = ~mask; - for (let i = 0; i < 10; i++) h[i] = (h[i] & mask) | g[i]; - h[0] = (h[0] | (h[1] << 13)) & 0xffff; - h[1] = ((h[1] >>> 3) | (h[2] << 10)) & 0xffff; - h[2] = ((h[2] >>> 6) | (h[3] << 7)) & 0xffff; - h[3] = ((h[3] >>> 9) | (h[4] << 4)) & 0xffff; - h[4] = ((h[4] >>> 12) | (h[5] << 1) | (h[6] << 14)) & 0xffff; - h[5] = ((h[6] >>> 2) | (h[7] << 11)) & 0xffff; - h[6] = ((h[7] >>> 5) | (h[8] << 8)) & 0xffff; - h[7] = ((h[8] >>> 8) | (h[9] << 5)) & 0xffff; - - let f = h[0] + pad[0]; - h[0] = f & 0xffff; - for (let i = 1; i < 8; i++) { - f = (((h[i] + pad[i]) | 0) + (f >>> 16)) | 0; - h[i] = f & 0xffff; - } - } - update(data: Input): this { - assert.exists(this); - const { buffer, blockLen } = this; - data = toBytes(data); - const len = data.length; - - for (let pos = 0; pos < len; ) { - const take = Math.min(blockLen - this.pos, len - pos); - // Fast path: we have at least one block in input - if (take === blockLen) { - for (; blockLen <= len - pos; pos += blockLen) this.process(data, pos); - continue; - } - buffer.set(data.subarray(pos, pos + take), this.pos); - this.pos += take; - pos += take; - if (this.pos === blockLen) { - this.process(buffer, 0, false); - this.pos = 0; - } - } - return this; - } - destroy() { - this.h.fill(0); - this.r.fill(0); - this.buffer.fill(0); - this.pad.fill(0); - } - digestInto(out: Uint8Array) { - assert.exists(this); - assert.output(out, this); - this.finished = true; - const { buffer, h } = this; - let { pos } = this; - if (pos) { - buffer[pos++] = 1; - // buffer.subarray(pos).fill(0); - for (; pos < 16; pos++) buffer[pos] = 0; - this.process(buffer, 0, true); - } - this.finalize(); - let opos = 0; - for (let i = 0; i < 8; i++) { - out[opos++] = h[i] >>> 0; - out[opos++] = h[i] >>> 8; - } - return out; - } - digest(): Uint8Array { - const { buffer, outputLen } = this; - this.digestInto(buffer); - const res = buffer.slice(0, outputLen); - this.destroy(); - return res; - } -} - -export type CHash = ReturnType; -export function wrapConstructorWithKey>(hashCons: (key: Input) => Hash) { - const hashC = (msg: Input, key: Input): Uint8Array => hashCons(key).update(toBytes(msg)).digest(); - const tmp = hashCons(new Uint8Array(32)); - hashC.outputLen = tmp.outputLen; - hashC.blockLen = tmp.blockLen; - hashC.create = (key: Input) => hashCons(key); - return hashC; -} - -export const poly1305 = wrapConstructorWithKey((key) => new Poly1305(key)); diff --git a/node_modules/@noble/ciphers/src/_polyval.ts b/node_modules/@noble/ciphers/src/_polyval.ts deleted file mode 100644 index 41f5b462..00000000 --- a/node_modules/@noble/ciphers/src/_polyval.ts +++ /dev/null @@ -1,107 +0,0 @@ -import { u8, u32, ensureBytes } from './utils.js'; - -// AES-SIV polyval, little-endian "mirror image" of AES-GCM GHash -// polynomial hash function. Defined in RFC 8452. - -// Reverse bits in u32, constant-time, precompute will be faster, but non-constant time -function rev32(x: number) { - x = ((x & 0x5555_5555) << 1) | ((x >>> 1) & 0x5555_5555); - x = ((x & 0x3333_3333) << 2) | ((x >>> 2) & 0x3333_3333); - x = ((x & 0x0f0f_0f0f) << 4) | ((x >>> 4) & 0x0f0f_0f0f); - x = ((x & 0x00ff_00ff) << 8) | ((x >>> 8) & 0x00ff_00ff); - return (x << 16) | (x >>> 16); -} - -// wrapped 32 bit multiplication -const wrapMul = (a: number, b: number) => Math.imul(a, b) >>> 0; - -// https://timtaubert.de/blog/2017/06/verified-binary-multiplication-for-ghash/ -function bmul32(x: number, y: number) { - const x0 = x & 0x1111_1111; - const x1 = x & 0x2222_2222; - const x2 = x & 0x4444_4444; - const x3 = x & 0x8888_8888; - const y0 = y & 0x1111_1111; - const y1 = y & 0x2222_2222; - const y2 = y & 0x4444_4444; - const y3 = y & 0x8888_8888; - let res = (wrapMul(x0, y0) ^ wrapMul(x1, y3) ^ wrapMul(x2, y2) ^ wrapMul(x3, y1)) & 0x1111_1111; - res |= (wrapMul(x0, y1) ^ wrapMul(x1, y0) ^ wrapMul(x2, y3) ^ wrapMul(x3, y2)) & 0x2222_2222; - res |= (wrapMul(x0, y2) ^ wrapMul(x1, y1) ^ wrapMul(x2, y0) ^ wrapMul(x3, y3)) & 0x4444_4444; - res |= (wrapMul(x0, y3) ^ wrapMul(x1, y2) ^ wrapMul(x2, y1) ^ wrapMul(x3, y0)) & 0x8888_8888; - return res >>> 0; -} - -function mulPart(arr: Uint32Array) { - const a = new Uint32Array(18); - a[0] = arr[0]; - a[1] = arr[1]; - a[2] = arr[2]; - a[3] = arr[3]; - a[4] = a[0] ^ a[1]; - a[5] = a[2] ^ a[3]; - a[6] = a[0] ^ a[2]; - a[7] = a[1] ^ a[3]; - a[8] = a[6] ^ a[7]; - a[9] = rev32(arr[0]); - a[10] = rev32(arr[1]); - a[11] = rev32(arr[2]); - a[12] = rev32(arr[3]); - a[13] = a[9] ^ a[10]; - a[14] = a[11] ^ a[12]; - a[15] = a[9] ^ a[11]; - a[16] = a[10] ^ a[12]; - a[17] = a[15] ^ a[16]; - return a; -} - -export function polyval(h: Uint8Array, data: Uint8Array) { - ensureBytes(h); - ensureBytes(data); - const s = new Uint32Array(4); - // Precompute for multiplication - const a = mulPart(u32(h)); - if (data.length % 16) throw new Error('polyval: data must be padded to 16 bytes'); - const data32 = u32(data); - for (let i = 0; i < data32.length; i += 4) { - // Xor - s[0] ^= data32[i + 0]; - s[1] ^= data32[i + 1]; - s[2] ^= data32[i + 2]; - s[3] ^= data32[i + 3]; - - // Dot via Karatsuba multiplication, based on MIT-licensed - // https://bearssl.org/gitweb/?p=BearSSL;a=blob;f=src/hash/ghash_ctmul32.c;hb=4b6046412 - const b = mulPart(s); - - const c = new Uint32Array(18); - for (let i = 0; i < 18; i++) c[i] = bmul32(a[i], b[i]); - c[4] ^= c[0] ^ c[1]; - c[5] ^= c[2] ^ c[3]; - c[8] ^= c[6] ^ c[7]; - c[13] ^= c[9] ^ c[10]; - c[14] ^= c[11] ^ c[12]; - c[17] ^= c[15] ^ c[16]; - - const zw = new Uint32Array(8); - zw[0] = c[0]; - zw[1] = c[4] ^ (rev32(c[9]) >>> 1); - zw[2] = c[1] ^ c[0] ^ c[2] ^ c[6] ^ (rev32(c[13]) >>> 1); - zw[3] = c[4] ^ c[5] ^ c[8] ^ (rev32(c[10] ^ c[9] ^ c[11] ^ c[15]) >>> 1); - zw[4] = c[2] ^ c[1] ^ c[3] ^ c[7] ^ (rev32(c[13] ^ c[14] ^ c[17]) >>> 1); - zw[5] = c[5] ^ (rev32(c[11] ^ c[10] ^ c[12] ^ c[16]) >>> 1); - zw[6] = c[3] ^ (rev32(c[14]) >>> 1); - zw[7] = rev32(c[12]) >>> 1; - for (let i = 0; i < 4; i++) { - const lw = zw[i]; - zw[i + 4] ^= lw ^ (lw >>> 1) ^ (lw >>> 2) ^ (lw >>> 7); - zw[i + 3] ^= (lw << 31) ^ (lw << 30) ^ (lw << 25); - } - - s[0] = zw[4]; - s[1] = zw[5]; - s[2] = zw[6]; - s[3] = zw[7]; - } - return u8(s); -} diff --git a/node_modules/@noble/ciphers/src/_salsa.ts b/node_modules/@noble/ciphers/src/_salsa.ts deleted file mode 100644 index 9ff5d71b..00000000 --- a/node_modules/@noble/ciphers/src/_salsa.ts +++ /dev/null @@ -1,175 +0,0 @@ -// Basic utils for salsa-like ciphers -// Check out _micro.ts for descriptive documentation. -import assert from './_assert.js'; -import { u32, utf8ToBytes, checkOpts } from './utils.js'; - -/* -RFC8439 requires multi-step cipher stream, where -authKey starts with counter: 0, actual msg with counter: 1. - -For this, we need a way to re-use nonce / counter: - - const counter = new Uint8Array(4); - chacha(..., counter, ...); // counter is now 1 - chacha(..., counter, ...); // counter is now 2 - -This is complicated: - -- Original papers don't allow mutating counters -- Counter overflow is undefined: https://mailarchive.ietf.org/arch/msg/cfrg/gsOnTJzcbgG6OqD8Sc0GO5aR_tU/ -- 3rd-party library stablelib implementation uses an approach where you can provide - nonce and counter instead of just nonce - and it will re-use it -- We could have did something similar, but ChaCha has different counter position - (counter | nonce), which is not composable with XChaCha, because full counter - is (nonce16 | counter | nonce16). Stablelib doesn't support in-place counter for XChaCha. -- We could separate nonce & counter and provide separate API for counter re-use, but - there are different counter sizes depending on an algorithm. -- Salsa & ChaCha also differ in structures of key / sigma: - - salsa: c0 | k(4) | c1 | nonce(2) | ctr(2) | c2 | k(4) | c4 - chacha: c(4) | k(8) | ctr(1) | nonce(3) - chachaDJB: c(4) | k(8) | ctr(2) | nonce(2) -- Creating function such as `setSalsaState(key, nonce, sigma, data)` won't work, - because we can't re-use counter array -- 32-bit nonce is `2 ** 32 * 64` = 256GB with 32-bit counter -- JS does not allow UintArrays bigger than 4GB, so supporting 64-bit counters doesn't matter - -Structure is as following: - -key=16 -> sigma16, k=key|key -key=32 -> sigma32, k=key - -nonces: -salsa20: 8 (8-byte counter) -chacha20djb: 8 (8-byte counter) -chacha20tls: 12 (4-byte counter) -xsalsa: 24 (16 -> hsalsa, 8 -> old nonce) -xchacha: 24 (16 -> hchacha, 8 -> old nonce) - -https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-xchacha#appendix-A.2 -Use the subkey and remaining 8 byte nonce with ChaCha20 as normal -(prefixed by 4 NUL bytes, since [RFC8439] specifies a 12-byte nonce). -*/ - -const sigma16 = utf8ToBytes('expand 16-byte k'); -const sigma32 = utf8ToBytes('expand 32-byte k'); -const sigma16_32 = u32(sigma16); -const sigma32_32 = u32(sigma32); - -export type SalsaOpts = { - core: ( - c: Uint32Array, - key: Uint32Array, - nonce: Uint32Array, - out: Uint32Array, - counter: number, - rounds?: number - ) => void; - rounds?: number; - counterRight?: boolean; // counterRight ? nonce | counter : counter | nonce; - counterLen?: number; - blockLen?: number; // NOTE: not tested with different blockLens! - allow128bitKeys?: boolean; // Original salsa/chacha allows these, but not tested! - extendNonceFn?: (c: Uint32Array, key: Uint8Array, src: Uint8Array, dst: Uint8Array) => Uint8Array; -}; - -// Is byte array aligned to 4 byte offset (u32)? -const isAligned32 = (b: Uint8Array) => !(b.byteOffset % 4); - -export const salsaBasic = (opts: SalsaOpts) => { - const { core, rounds, counterRight, counterLen, allow128bitKeys, extendNonceFn, blockLen } = - checkOpts( - { rounds: 20, counterRight: false, counterLen: 8, allow128bitKeys: true, blockLen: 64 }, - opts - ); - assert.number(counterLen); - assert.number(rounds); - assert.number(blockLen); - assert.bool(counterRight); - assert.bool(allow128bitKeys); - const blockLen32 = blockLen / 4; - if (blockLen % 4 !== 0) throw new Error('Salsa/ChaCha: blockLen must be aligned to 4 bytes'); - return ( - key: Uint8Array, - nonce: Uint8Array, - data: Uint8Array, - output?: Uint8Array, - counter = 0 - ): Uint8Array => { - assert.bytes(key); - assert.bytes(nonce); - assert.bytes(data); - if (!output) output = new Uint8Array(data.length); - assert.bytes(output); - assert.number(counter); - // > new Uint32Array([2**32]) - // Uint32Array(1) [ 0 ] - // > new Uint32Array([2**32-1]) - // Uint32Array(1) [ 4294967295 ] - if (counter < 0 || counter >= 2 ** 32 - 1) throw new Error('Salsa/ChaCha: counter overflow'); - if (output.length < data.length) { - throw new Error( - `Salsa/ChaCha: output (${output.length}) is shorter than data (${data.length})` - ); - } - const toClean = []; - let k, sigma; - // Handle 128 byte keys - if (key.length === 32) { - k = key; - sigma = sigma32_32; - } else if (key.length === 16 && allow128bitKeys) { - k = new Uint8Array(32); - k.set(key); - k.set(key, 16); - sigma = sigma16_32; - toClean.push(k); - } else throw new Error(`Salsa/ChaCha: invalid 32-byte key, got length=${key.length}`); - // Handle extended nonce (HChaCha/HSalsa) - if (extendNonceFn) { - if (nonce.length <= 16) - throw new Error(`Salsa/ChaCha: extended nonce must be bigger than 16 bytes`); - k = extendNonceFn(sigma, k, nonce.subarray(0, 16), new Uint8Array(32)); - toClean.push(k); - nonce = nonce.subarray(16); - } - // Handle nonce counter - const nonceLen = 16 - counterLen; - if (nonce.length !== nonceLen) - throw new Error(`Salsa/ChaCha: nonce must be ${nonceLen} or 16 bytes`); - // Pad counter when nonce is 64 bit - if (nonceLen !== 12) { - const nc = new Uint8Array(12); - nc.set(nonce, counterRight ? 0 : 12 - nonce.length); - toClean.push((nonce = nc)); - } - // Counter positions - const block = new Uint8Array(blockLen); - // Cast to Uint32Array for speed - const b32 = u32(block); - const k32 = u32(k); - const n32 = u32(nonce); - // Make sure that buffers aligned to 4 bytes - const d32 = isAligned32(data) && u32(data); - const o32 = isAligned32(output) && u32(output); - toClean.push(b32); - const len = data.length; - for (let pos = 0, ctr = counter; pos < len; ctr++) { - core(sigma, k32, n32, b32, ctr, rounds); - if (ctr >= 2 ** 32 - 1) throw new Error('Salsa/ChaCha: counter overflow'); - const take = Math.min(blockLen, len - pos); - // full block && aligned to 4 bytes - if (take === blockLen && o32 && d32) { - const pos32 = pos / 4; - if (pos % 4 !== 0) throw new Error('Salsa/ChaCha: invalid block position'); - for (let j = 0; j < blockLen32; j++) o32[pos32 + j] = d32[pos32 + j] ^ b32[j]; - pos += blockLen; - continue; - } - for (let j = 0; j < take; j++) output[pos + j] = data[pos + j] ^ block[j]; - pos += take; - } - for (let i = 0; i < toClean.length; i++) toClean[i].fill(0); - return output; - }; -}; diff --git a/node_modules/@noble/ciphers/src/chacha.ts b/node_modules/@noble/ciphers/src/chacha.ts deleted file mode 100644 index a8dbae47..00000000 --- a/node_modules/@noble/ciphers/src/chacha.ts +++ /dev/null @@ -1,290 +0,0 @@ -import { Cipher, createView, ensureBytes, equalBytes, setBigUint64, u32 } from './utils.js'; -import { poly1305 } from './_poly1305.js'; -import { salsaBasic } from './_salsa.js'; - -// ChaCha20 stream cipher was released in 2008. ChaCha aims to increase -// the diffusion per round, but had slightly less cryptanalysis. -// https://cr.yp.to/chacha.html, http://cr.yp.to/chacha/chacha-20080128.pdf - -// Left rotate for uint32 -const rotl = (a: number, b: number) => (a << b) | (a >>> (32 - b)); - -/** - * ChaCha core function. - */ -// prettier-ignore -function chachaCore( - c: Uint32Array, k: Uint32Array, n: Uint32Array, out: Uint32Array, cnt: number, rounds = 20 -): void { - let y00 = c[0], y01 = c[1], y02 = c[2], y03 = c[3]; // "expa" "nd 3" "2-by" "te k" - let y04 = k[0], y05 = k[1], y06 = k[2], y07 = k[3]; // Key Key Key Key - let y08 = k[4], y09 = k[5], y10 = k[6], y11 = k[7]; // Key Key Key Key - let y12 = cnt, y13 = n[0], y14 = n[1], y15 = n[2]; // Counter Counter Nonce Nonce - // Save state to temporary variables - let x00 = y00, x01 = y01, x02 = y02, x03 = y03, - x04 = y04, x05 = y05, x06 = y06, x07 = y07, - x08 = y08, x09 = y09, x10 = y10, x11 = y11, - x12 = y12, x13 = y13, x14 = y14, x15 = y15; - // Main loop - for (let i = 0; i < rounds; i += 2) { - x00 = (x00 + x04) | 0; x12 = rotl(x12 ^ x00, 16); - x08 = (x08 + x12) | 0; x04 = rotl(x04 ^ x08, 12); - x00 = (x00 + x04) | 0; x12 = rotl(x12 ^ x00, 8); - x08 = (x08 + x12) | 0; x04 = rotl(x04 ^ x08, 7); - - x01 = (x01 + x05) | 0; x13 = rotl(x13 ^ x01, 16); - x09 = (x09 + x13) | 0; x05 = rotl(x05 ^ x09, 12); - x01 = (x01 + x05) | 0; x13 = rotl(x13 ^ x01, 8); - x09 = (x09 + x13) | 0; x05 = rotl(x05 ^ x09, 7); - - x02 = (x02 + x06) | 0; x14 = rotl(x14 ^ x02, 16); - x10 = (x10 + x14) | 0; x06 = rotl(x06 ^ x10, 12); - x02 = (x02 + x06) | 0; x14 = rotl(x14 ^x02, 8); - x10 = (x10 + x14) | 0; x06 = rotl(x06 ^ x10, 7); - - x03 = (x03 + x07) | 0; x15 = rotl(x15 ^ x03, 16); - x11 = (x11 + x15) | 0; x07 = rotl(x07 ^ x11, 12); - x03 = (x03 + x07) | 0; x15 = rotl(x15 ^ x03, 8) - x11 = (x11 + x15) | 0; x07 = rotl(x07 ^ x11, 7); - - x00 = (x00 + x05) | 0; x15 = rotl(x15 ^ x00, 16); - x10 = (x10 + x15) | 0; x05 = rotl(x05 ^ x10, 12); - x00 = (x00 + x05) | 0; x15 = rotl(x15 ^ x00, 8); - x10 = (x10 + x15) | 0; x05 = rotl(x05 ^ x10, 7); - - x01 = (x01 + x06) | 0; x12 = rotl(x12 ^ x01, 16); - x11 = (x11 + x12) | 0; x06 = rotl(x06 ^ x11, 12); - x01 = (x01 + x06) | 0; x12 = rotl(x12 ^ x01, 8); - x11 = (x11 + x12) | 0; x06 = rotl(x06 ^ x11, 7); - - x02 = (x02 + x07) | 0; x13 = rotl(x13 ^ x02, 16); - x08 = (x08 + x13) | 0; x07 = rotl(x07 ^ x08, 12); - x02 = (x02 + x07) | 0; x13 = rotl(x13 ^ x02, 8); - x08 = (x08 + x13) | 0; x07 = rotl(x07 ^ x08, 7); - - x03 = (x03 + x04) | 0; x14 = rotl(x14 ^ x03, 16) - x09 = (x09 + x14) | 0; x04 = rotl(x04 ^ x09, 12); - x03 = (x03 + x04) | 0; x14 = rotl(x14 ^ x03, 8); - x09 = (x09 + x14) | 0; x04 = rotl(x04 ^ x09, 7); - } - // Write output - let oi = 0; - out[oi++] = (y00 + x00) | 0; out[oi++] = (y01 + x01) | 0; - out[oi++] = (y02 + x02) | 0; out[oi++] = (y03 + x03) | 0; - out[oi++] = (y04 + x04) | 0; out[oi++] = (y05 + x05) | 0; - out[oi++] = (y06 + x06) | 0; out[oi++] = (y07 + x07) | 0; - out[oi++] = (y08 + x08) | 0; out[oi++] = (y09 + x09) | 0; - out[oi++] = (y10 + x10) | 0; out[oi++] = (y11 + x11) | 0; - out[oi++] = (y12 + x12) | 0; out[oi++] = (y13 + x13) | 0; - out[oi++] = (y14 + x14) | 0; out[oi++] = (y15 + x15) | 0; -} -/** - * hchacha helper method, used primarily in xchacha, to hash - * key and nonce into key' and nonce'. - * Same as chachaCore, but there doesn't seem to be a way to move the block - * out without 25% performance hit. - */ -// prettier-ignore -export function hchacha( - c: Uint32Array, key: Uint8Array, src: Uint8Array, out: Uint8Array -): Uint8Array { - const k32 = u32(key); - const i32 = u32(src); - const o32 = u32(out); - let x00 = c[0], x01 = c[1], x02 = c[2], x03 = c[3]; - let x04 = k32[0], x05 = k32[1], x06 = k32[2], x07 = k32[3]; - let x08 = k32[4], x09 = k32[5], x10 = k32[6], x11 = k32[7] - let x12 = i32[0], x13 = i32[1], x14 = i32[2], x15 = i32[3]; - for (let i = 0; i < 20; i += 2) { - x00 = (x00 + x04) | 0; x12 = rotl(x12 ^ x00, 16); - x08 = (x08 + x12) | 0; x04 = rotl(x04 ^ x08, 12); - x00 = (x00 + x04) | 0; x12 = rotl(x12 ^ x00, 8); - x08 = (x08 + x12) | 0; x04 = rotl(x04 ^ x08, 7); - - x01 = (x01 + x05) | 0; x13 = rotl(x13 ^ x01, 16); - x09 = (x09 + x13) | 0; x05 = rotl(x05 ^ x09, 12); - x01 = (x01 + x05) | 0; x13 = rotl(x13 ^ x01, 8); - x09 = (x09 + x13) | 0; x05 = rotl(x05 ^ x09, 7); - - x02 = (x02 + x06) | 0; x14 = rotl(x14 ^ x02, 16); - x10 = (x10 + x14) | 0; x06 = rotl(x06 ^ x10, 12); - x02 = (x02 + x06) | 0; x14 = rotl(x14 ^ x02, 8); - x10 = (x10 + x14) | 0; x06 = rotl(x06 ^ x10, 7); - - x03 = (x03 + x07) | 0; x15 = rotl(x15 ^ x03, 16); - x11 = (x11 + x15) | 0; x07 = rotl(x07 ^ x11, 12); - x03 = (x03 + x07) | 0; x15 = rotl(x15 ^ x03, 8) - x11 = (x11 + x15) | 0; x07 = rotl(x07 ^ x11, 7); - - x00 = (x00 + x05) | 0; x15 = rotl(x15 ^ x00, 16); - x10 = (x10 + x15) | 0; x05 = rotl(x05 ^ x10, 12); - x00 = (x00 + x05) | 0; x15 = rotl(x15 ^ x00, 8); - x10 = (x10 + x15) | 0; x05 = rotl(x05 ^ x10, 7); - - x01 = (x01 + x06) | 0; x12 = rotl(x12 ^ x01, 16); - x11 = (x11 + x12) | 0; x06 = rotl(x06 ^ x11, 12); - x01 = (x01 + x06) | 0; x12 = rotl(x12 ^ x01, 8); - x11 = (x11 + x12) | 0; x06 = rotl(x06 ^ x11, 7); - - x02 = (x02 + x07) | 0; x13 = rotl(x13 ^ x02, 16); - x08 = (x08 + x13) | 0; x07 = rotl(x07 ^ x08, 12); - x02 = (x02 + x07) | 0; x13 = rotl(x13 ^ x02, 8); - x08 = (x08 + x13) | 0; x07 = rotl(x07 ^ x08, 7); - - x03 = (x03 + x04) | 0; x14 = rotl(x14 ^ x03, 16) - x09 = (x09 + x14) | 0; x04 = rotl(x04 ^ x09, 12); - x03 = (x03 + x04) | 0; x14 = rotl(x14 ^ x03, 8); - x09 = (x09 + x14) | 0; x04 = rotl(x04 ^ x09, 7); - } - o32[0] = x00; - o32[1] = x01; - o32[2] = x02; - o32[3] = x03; - o32[4] = x12; - o32[5] = x13; - o32[6] = x14; - o32[7] = x15; - return out; -} -/** - * Original, non-RFC chacha20 from DJB. 8-byte nonce, 8-byte counter. - */ -export const chacha20orig = /* @__PURE__ */ salsaBasic({ - core: chachaCore, - counterRight: false, - counterLen: 8, -}); -/** - * ChaCha stream cipher. Conforms to RFC 8439 (IETF, TLS). 12-byte nonce, 4-byte counter. - * With 12-byte nonce, it's not safe to use fill it with random (CSPRNG), due to collision chance. - */ -export const chacha20 = /* @__PURE__ */ salsaBasic({ - core: chachaCore, - counterRight: false, - counterLen: 4, - allow128bitKeys: false, -}); - -/** - * XChaCha eXtended-nonce ChaCha. 24-byte nonce. - * With 24-byte nonce, it's safe to use fill it with random (CSPRNG). - * https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-xchacha - */ -export const xchacha20 = /* @__PURE__ */ salsaBasic({ - core: chachaCore, - counterRight: false, - counterLen: 8, - extendNonceFn: hchacha, - allow128bitKeys: false, -}); - -/** - * Reduced 8-round chacha, described in original paper. - */ -export const chacha8 = /* @__PURE__ */ salsaBasic({ - core: chachaCore, - counterRight: false, - counterLen: 4, - rounds: 8, -}); - -/** - * Reduced 12-round chacha, described in original paper. - */ -export const chacha12 = /* @__PURE__ */ salsaBasic({ - core: chachaCore, - counterRight: false, - counterLen: 4, - rounds: 12, -}); - -const ZERO = /* @__PURE__ */ new Uint8Array(16); -// Pad to digest size with zeros -const updatePadded = (h: ReturnType, msg: Uint8Array) => { - h.update(msg); - const left = msg.length % 16; - if (left) h.update(ZERO.subarray(left)); -}; - -const computeTag = ( - fn: typeof chacha20, - key: Uint8Array, - nonce: Uint8Array, - data: Uint8Array, - AAD?: Uint8Array -) => { - const authKey = fn(key, nonce, new Uint8Array(32)); - const h = poly1305.create(authKey); - if (AAD) updatePadded(h, AAD); - updatePadded(h, data); - const num = new Uint8Array(16); - const view = createView(num); - setBigUint64(view, 0, BigInt(AAD ? AAD.length : 0), true); - setBigUint64(view, 8, BigInt(data.length), true); - h.update(num); - const res = h.digest(); - authKey.fill(0); - return res; -}; - -/** - * AEAD algorithm from RFC 8439. - * Salsa20 and chacha (RFC 8439) use poly1305 differently. - * We could have composed them similar to: - * https://github.com/paulmillr/scure-base/blob/b266c73dde977b1dd7ef40ef7a23cc15aab526b3/index.ts#L250 - * But it's hard because of authKey: - * In salsa20, authKey changes position in salsa stream. - * In chacha, authKey can't be computed inside computeTag, it modifies the counter. - */ -export const _poly1305_aead = - (xorStream: typeof chacha20) => - (key: Uint8Array, nonce: Uint8Array, AAD?: Uint8Array): Cipher => { - const tagLength = 16; - ensureBytes(key, 32); - ensureBytes(nonce); - return { - tagLength, - encrypt: (plaintext: Uint8Array, output?: Uint8Array) => { - const plength = plaintext.length; - const clength = plength + tagLength; - if (output) { - ensureBytes(output, clength); - } else { - output = new Uint8Array(clength); - } - xorStream(key, nonce, plaintext, output, 1); - const tag = computeTag(xorStream, key, nonce, output.subarray(0, -tagLength), AAD); - output.set(tag, plength); // append tag - return output; - }, - decrypt: (ciphertext: Uint8Array, output?: Uint8Array) => { - const clength = ciphertext.length; - const plength = clength - tagLength; - if (clength < tagLength) - throw new Error(`encrypted data must be at least ${tagLength} bytes`); - if (output) { - ensureBytes(output, plength); - } else { - output = new Uint8Array(plength); - } - const data = ciphertext.subarray(0, -tagLength); - const passedTag = ciphertext.subarray(-tagLength); - const tag = computeTag(xorStream, key, nonce, data, AAD); - if (!equalBytes(passedTag, tag)) throw new Error('invalid tag'); - xorStream(key, nonce, data, output, 1); - return output; - }, - }; - }; - -/** - * ChaCha20-Poly1305 from RFC 8439. - * With 12-byte nonce, it's not safe to use fill it with random (CSPRNG), due to collision chance. - */ -export const chacha20poly1305 = /* @__PURE__ */ _poly1305_aead(chacha20); -/** - * XChaCha20-Poly1305 extended-nonce chacha. - * https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-xchacha - * With 24-byte nonce, it's safe to use fill it with random (CSPRNG). - */ -export const xchacha20poly1305 = /* @__PURE__ */ _poly1305_aead(xchacha20); diff --git a/node_modules/@noble/ciphers/src/index.ts b/node_modules/@noble/ciphers/src/index.ts deleted file mode 100644 index e1b6b619..00000000 --- a/node_modules/@noble/ciphers/src/index.ts +++ /dev/null @@ -1 +0,0 @@ -throw new Error('noble-ciphers have no entry-point: consult README for usage'); diff --git a/node_modules/@noble/ciphers/src/salsa.ts b/node_modules/@noble/ciphers/src/salsa.ts deleted file mode 100644 index c6845bb8..00000000 --- a/node_modules/@noble/ciphers/src/salsa.ts +++ /dev/null @@ -1,176 +0,0 @@ -import { ensureBytes, u32, equalBytes, Cipher } from './utils.js'; -import { salsaBasic } from './_salsa.js'; -import { poly1305 } from './_poly1305.js'; - -// Salsa20 stream cipher was released in 2005. -// Salsa's goal was to implement AES replacement that does not rely on S-Boxes, -// which are hard to implement in a constant-time manner. -// https://cr.yp.to/snuffle.html, https://cr.yp.to/snuffle/salsafamily-20071225.pdf - -// Left rotate for uint32 -const rotl = (a: number, b: number) => (a << b) | (a >>> (32 - b)); - -/** - * Salsa20 core function. - */ -// prettier-ignore -function salsaCore( - c: Uint32Array, k: Uint32Array, i: Uint32Array, out: Uint32Array, cnt: number, rounds = 20 -): void { - // Based on https://cr.yp.to/salsa20.html - let y00 = c[0], y01 = k[0], y02 = k[1], y03 = k[2]; // "expa" Key Key Key - let y04 = k[3], y05 = c[1], y06 = i[0], y07 = i[1]; // Key "nd 3" Nonce Nonce - let y08 = cnt, y09 = 0 , y10 = c[2], y11 = k[4]; // Pos. Pos. "2-by" Key - let y12 = k[5], y13 = k[6], y14 = k[7], y15 = c[3]; // Key Key Key "te k" - // Save state to temporary variables - let x00 = y00, x01 = y01, x02 = y02, x03 = y03, - x04 = y04, x05 = y05, x06 = y06, x07 = y07, - x08 = y08, x09 = y09, x10 = y10, x11 = y11, - x12 = y12, x13 = y13, x14 = y14, x15 = y15; - // Main loop - for (let i = 0; i < rounds; i += 2) { - x04 ^= rotl(x00 + x12 | 0, 7); x08 ^= rotl(x04 + x00 | 0, 9); - x12 ^= rotl(x08 + x04 | 0, 13); x00 ^= rotl(x12 + x08 | 0, 18); - x09 ^= rotl(x05 + x01 | 0, 7); x13 ^= rotl(x09 + x05 | 0, 9); - x01 ^= rotl(x13 + x09 | 0, 13); x05 ^= rotl(x01 + x13 | 0, 18); - x14 ^= rotl(x10 + x06 | 0, 7); x02 ^= rotl(x14 + x10 | 0, 9); - x06 ^= rotl(x02 + x14 | 0, 13); x10 ^= rotl(x06 + x02 | 0, 18); - x03 ^= rotl(x15 + x11 | 0, 7); x07 ^= rotl(x03 + x15 | 0, 9); - x11 ^= rotl(x07 + x03 | 0, 13); x15 ^= rotl(x11 + x07 | 0, 18); - x01 ^= rotl(x00 + x03 | 0, 7); x02 ^= rotl(x01 + x00 | 0, 9); - x03 ^= rotl(x02 + x01 | 0, 13); x00 ^= rotl(x03 + x02 | 0, 18); - x06 ^= rotl(x05 + x04 | 0, 7); x07 ^= rotl(x06 + x05 | 0, 9); - x04 ^= rotl(x07 + x06 | 0, 13); x05 ^= rotl(x04 + x07 | 0, 18); - x11 ^= rotl(x10 + x09 | 0, 7); x08 ^= rotl(x11 + x10 | 0, 9); - x09 ^= rotl(x08 + x11 | 0, 13); x10 ^= rotl(x09 + x08 | 0, 18); - x12 ^= rotl(x15 + x14 | 0, 7); x13 ^= rotl(x12 + x15 | 0, 9); - x14 ^= rotl(x13 + x12 | 0, 13); x15 ^= rotl(x14 + x13 | 0, 18); - } - // Write output - let oi = 0; - out[oi++] = (y00 + x00) | 0; out[oi++] = (y01 + x01) | 0; - out[oi++] = (y02 + x02) | 0; out[oi++] = (y03 + x03) | 0; - out[oi++] = (y04 + x04) | 0; out[oi++] = (y05 + x05) | 0; - out[oi++] = (y06 + x06) | 0; out[oi++] = (y07 + x07) | 0; - out[oi++] = (y08 + x08) | 0; out[oi++] = (y09 + x09) | 0; - out[oi++] = (y10 + x10) | 0; out[oi++] = (y11 + x11) | 0; - out[oi++] = (y12 + x12) | 0; out[oi++] = (y13 + x13) | 0; - out[oi++] = (y14 + x14) | 0; out[oi++] = (y15 + x15) | 0; -} - -/** - * hsalsa hashing function, used primarily in xsalsa, to hash - * key and nonce into key' and nonce'. - * Same as salsaCore, but there doesn't seem to be a way to move the block - * out without 25% performance hit. - */ -// prettier-ignore -export function hsalsa(c: Uint32Array, key: Uint8Array, nonce: Uint8Array, out: Uint8Array): Uint8Array { - const k32 = u32(key); - const i32 = u32(nonce); - const o32 = u32(out); - let x00 = c[0], x01 = k32[0], x02 = k32[1], x03 = k32[2], x04 = k32[3]; - let x05 = c[1], x06 = i32[0], x07 = i32[1], x08 = i32[2], x09 = i32[3]; - let x10 = c[2], x11 = k32[4], x12 = k32[5], x13 = k32[6], x14 = k32[7]; - let x15 = c[3]; - // Main loop - for (let i = 0; i < 20; i += 2) { - x04 ^= rotl(x00 + x12 | 0, 7); x08 ^= rotl(x04 + x00 | 0, 9); - x12 ^= rotl(x08 + x04 | 0, 13); x00 ^= rotl(x12 + x08 | 0, 18); - x09 ^= rotl(x05 + x01 | 0, 7); x13 ^= rotl(x09 + x05 | 0, 9); - x01 ^= rotl(x13 + x09 | 0, 13); x05 ^= rotl(x01 + x13 | 0, 18); - x14 ^= rotl(x10 + x06 | 0, 7); x02 ^= rotl(x14 + x10 | 0, 9); - x06 ^= rotl(x02 + x14 | 0, 13); x10 ^= rotl(x06 + x02 | 0, 18); - x03 ^= rotl(x15 + x11 | 0, 7); x07 ^= rotl(x03 + x15 | 0, 9); - x11 ^= rotl(x07 + x03 | 0, 13); x15 ^= rotl(x11 + x07 | 0, 18); - x01 ^= rotl(x00 + x03 | 0, 7); x02 ^= rotl(x01 + x00 | 0, 9); - x03 ^= rotl(x02 + x01 | 0, 13); x00 ^= rotl(x03 + x02 | 0, 18); - x06 ^= rotl(x05 + x04 | 0, 7); x07 ^= rotl(x06 + x05 | 0, 9); - x04 ^= rotl(x07 + x06 | 0, 13); x05 ^= rotl(x04 + x07 | 0, 18); - x11 ^= rotl(x10 + x09 | 0, 7); x08 ^= rotl(x11 + x10 | 0, 9); - x09 ^= rotl(x08 + x11 | 0, 13); x10 ^= rotl(x09 + x08 | 0, 18); - x12 ^= rotl(x15 + x14 | 0, 7); x13 ^= rotl(x12 + x15 | 0, 9); - x14 ^= rotl(x13 + x12 | 0, 13); x15 ^= rotl(x14 + x13 | 0, 18); - } - o32[0] = x00; - o32[1] = x05; - o32[2] = x10; - o32[3] = x15; - o32[4] = x06; - o32[5] = x07; - o32[6] = x08; - o32[7] = x09; - return out; -} - -/** - * Salsa20 from original paper. - * With 12-byte nonce, it's not safe to use fill it with random (CSPRNG), due to collision chance. - */ -export const salsa20 = /* @__PURE__ */ salsaBasic({ core: salsaCore, counterRight: true }); - -/** - * xsalsa20 eXtended-nonce salsa. - * With 24-byte nonce, it's safe to use fill it with random (CSPRNG). - */ -export const xsalsa20 = /* @__PURE__ */ salsaBasic({ - core: salsaCore, - counterRight: true, - extendNonceFn: hsalsa, - allow128bitKeys: false, -}); - -/** - * xsalsa20-poly1305 eXtended-nonce salsa. - * With 24-byte nonce, it's safe to use fill it with random (CSPRNG). - * Also known as secretbox from libsodium / nacl. - */ -export const xsalsa20poly1305 = (key: Uint8Array, nonce: Uint8Array): Cipher => { - const tagLength = 16; - ensureBytes(key, 32); - ensureBytes(nonce, 24); - return { - tagLength, - encrypt: (plaintext: Uint8Array, output?: Uint8Array) => { - ensureBytes(plaintext); - // This is small optimization (calculate auth key with same call as encryption itself) makes it hard - // to separate tag calculation and encryption itself, since 32 byte is half-block of salsa (64 byte) - const clength = plaintext.length + 32; - if (output) { - ensureBytes(output, clength); - } else { - output = new Uint8Array(clength); - } - output.set(plaintext, 32); - xsalsa20(key, nonce, output, output); - const authKey = output.subarray(0, 32); - const tag = poly1305(output.subarray(32), authKey); - // Clean auth key, even though JS provides no guarantees about memory cleaning - output.set(tag, tagLength); - output.subarray(0, tagLength).fill(0); - return output.subarray(tagLength); - }, - decrypt: (ciphertext: Uint8Array) => { - ensureBytes(ciphertext); - const clength = ciphertext.length; - if (clength < tagLength) throw new Error('encrypted data should be at least 16 bytes'); - // Create new ciphertext array: - // auth tag auth tag from ciphertext ciphertext - // [bytes 0..16] [bytes 16..32] [bytes 32..] - // 16 instead of 32, because we already have 16 byte tag - const ciphertext_ = new Uint8Array(clength + tagLength); // alloc - ciphertext_.set(ciphertext, tagLength); - // Each xsalsa20 calls to hsalsa to calculate key, but seems not much perf difference - // Separate call to calculate authkey, since first bytes contains tag - const authKey = xsalsa20(key, nonce, new Uint8Array(32)); // alloc(32) - const tag = poly1305(ciphertext_.subarray(32), authKey); - if (!equalBytes(ciphertext_.subarray(16, 32), tag)) throw new Error('invalid tag'); - - const plaintext = xsalsa20(key, nonce, ciphertext_); // alloc - // Clean auth key, even though JS provides no guarantees about memory cleaning - plaintext.subarray(0, 32).fill(0); - authKey.fill(0); - return plaintext.subarray(32); - }, - }; -}; diff --git a/node_modules/@noble/ciphers/src/simple.ts b/node_modules/@noble/ciphers/src/simple.ts deleted file mode 100644 index 47602e9e..00000000 --- a/node_modules/@noble/ciphers/src/simple.ts +++ /dev/null @@ -1,61 +0,0 @@ -import { xchacha20poly1305 } from './chacha.js'; -import { xsalsa20poly1305 } from './salsa.js'; -import { concatBytes, ensureBytes, utf8ToBytes } from './utils.js'; -import { aes_256_gcm } from './webcrypto/aes.js'; -import { randomBytes } from './webcrypto/utils.js'; - -export { utf8ToBytes }; - -/** - * Alias to xsalsa20poly1305, for compatibility with libsodium / nacl - */ -export function secretbox(key: Uint8Array, nonce: Uint8Array) { - ensureBytes(key); - ensureBytes(nonce); - const xs = xsalsa20poly1305(key, nonce); - return { seal: xs.encrypt, open: xs.decrypt }; -} - -export function randomKey(): Uint8Array { - return randomBytes(32); -} -/** - * Encrypt plaintext under key with random nonce, using xchacha20poly1305. - * User never touches nonce: it is prepended to ciphertext. - */ -export function encrypt(key: Uint8Array, plaintext: Uint8Array): Uint8Array { - ensureBytes(key); - const nonce = randomBytes(24); - const ciphertext = xchacha20poly1305(key, nonce).encrypt(plaintext); - return concatBytes(nonce, ciphertext); -} - -/** - * Decrypt plaintext under key with random nonce, using xchacha20poly1305. - * User never touches nonce: it is prepended to ciphertext. - */ -export function decrypt(key: Uint8Array, ciphertext: Uint8Array): Uint8Array { - const nonceLength = 24; - ensureBytes(ciphertext); - if (ciphertext.length <= nonceLength) throw new Error('invalid ciphertext length'); - const nonce = ciphertext.subarray(0, nonceLength); - const ciphertextWithoutNonce = ciphertext.subarray(nonceLength); - return xchacha20poly1305(key, nonce).decrypt(ciphertextWithoutNonce); -} - -export async function aes_encrypt(key: Uint8Array, plaintext: Uint8Array): Promise { - const nonceLength = 12; - ensureBytes(key); - const nonce = randomBytes(nonceLength); - const ciphertext = await aes_256_gcm(key, nonce).encrypt(plaintext); - return concatBytes(nonce, ciphertext); -} - -export async function aes_decrypt(key: Uint8Array, ciphertext: Uint8Array): Promise { - const nonceLength = 12; - ensureBytes(ciphertext); - if (ciphertext.length <= nonceLength) throw new Error('invalid ciphertext length'); - const nonce = ciphertext.subarray(0, nonceLength); - const ciphertextWithoutNonce = ciphertext.subarray(nonceLength); - return aes_256_gcm(key, nonce).decrypt(ciphertextWithoutNonce); -} diff --git a/node_modules/@noble/ciphers/src/utils.ts b/node_modules/@noble/ciphers/src/utils.ts deleted file mode 100644 index 083ed7c5..00000000 --- a/node_modules/@noble/ciphers/src/utils.ts +++ /dev/null @@ -1,195 +0,0 @@ -/*! noble-ciphers - MIT License (c) 2023 Paul Miller (paulmillr.com) */ - -// prettier-ignore -export type TypedArray = Int8Array | Uint8ClampedArray | Uint8Array | - Uint16Array | Int16Array | Uint32Array | Int32Array; - -const u8a = (a: any): a is Uint8Array => a instanceof Uint8Array; -// Cast array to different type -export const u8 = (arr: TypedArray) => new Uint8Array(arr.buffer, arr.byteOffset, arr.byteLength); -export const u16 = (arr: TypedArray) => - new Uint16Array(arr.buffer, arr.byteOffset, Math.floor(arr.byteLength / 2)); -export const u32 = (arr: TypedArray) => - new Uint32Array(arr.buffer, arr.byteOffset, Math.floor(arr.byteLength / 4)); - -// Cast array to view -export const createView = (arr: TypedArray) => - new DataView(arr.buffer, arr.byteOffset, arr.byteLength); - -// big-endian hardware is rare. Just in case someone still decides to run ciphers: -// early-throw an error because we don't support BE yet. -export const isLE = new Uint8Array(new Uint32Array([0x11223344]).buffer)[0] === 0x44; -if (!isLE) throw new Error('Non little-endian hardware is not supported'); - -const hexes = /* @__PURE__ */ Array.from({ length: 256 }, (_, i) => - i.toString(16).padStart(2, '0') -); -/** - * @example bytesToHex(Uint8Array.from([0xca, 0xfe, 0x01, 0x23])) // 'cafe0123' - */ -export function bytesToHex(bytes: Uint8Array): string { - if (!u8a(bytes)) throw new Error('Uint8Array expected'); - // pre-caching improves the speed 6x - let hex = ''; - for (let i = 0; i < bytes.length; i++) { - hex += hexes[bytes[i]]; - } - return hex; -} - -/** - * @example hexToBytes('cafe0123') // Uint8Array.from([0xca, 0xfe, 0x01, 0x23]) - */ -export function hexToBytes(hex: string): Uint8Array { - if (typeof hex !== 'string') throw new Error('hex string expected, got ' + typeof hex); - const len = hex.length; - if (len % 2) throw new Error('padded hex string expected, got unpadded hex of length ' + len); - const array = new Uint8Array(len / 2); - for (let i = 0; i < array.length; i++) { - const j = i * 2; - const hexByte = hex.slice(j, j + 2); - const byte = Number.parseInt(hexByte, 16); - if (Number.isNaN(byte) || byte < 0) throw new Error('Invalid byte sequence'); - array[i] = byte; - } - return array; -} - -// There is no setImmediate in browser and setTimeout is slow. -// call of async fn will return Promise, which will be fullfiled only on -// next scheduler queue processing step and this is exactly what we need. -export const nextTick = async () => {}; - -// Returns control to thread each 'tick' ms to avoid blocking -export async function asyncLoop(iters: number, tick: number, cb: (i: number) => void) { - let ts = Date.now(); - for (let i = 0; i < iters; i++) { - cb(i); - // Date.now() is not monotonic, so in case if clock goes backwards we return return control too - const diff = Date.now() - ts; - if (diff >= 0 && diff < tick) continue; - await nextTick(); - ts += diff; - } -} - -// Global symbols in both browsers and Node.js since v11 -// See https://github.com/microsoft/TypeScript/issues/31535 -declare const TextEncoder: any; -declare const TextDecoder: any; - -/** - * @example utf8ToBytes('abc') // new Uint8Array([97, 98, 99]) - */ -export function utf8ToBytes(str: string): Uint8Array { - if (typeof str !== 'string') throw new Error(`utf8ToBytes expected string, got ${typeof str}`); - return new Uint8Array(new TextEncoder().encode(str)); // https://bugzil.la/1681809 -} - -export function bytesToUtf8(bytes: Uint8Array): string { - return new TextDecoder().decode(bytes); -} - -export type Input = Uint8Array | string; -/** - * Normalizes (non-hex) string or Uint8Array to Uint8Array. - * Warning: when Uint8Array is passed, it would NOT get copied. - * Keep in mind for future mutable operations. - */ -export function toBytes(data: Input): Uint8Array { - if (typeof data === 'string') data = utf8ToBytes(data); - if (!u8a(data)) throw new Error(`expected Uint8Array, got ${typeof data}`); - return data; -} - -/** - * Copies several Uint8Arrays into one. - */ -export function concatBytes(...arrays: Uint8Array[]): Uint8Array { - const r = new Uint8Array(arrays.reduce((sum, a) => sum + a.length, 0)); - let pad = 0; // walk through each item, ensure they have proper type - arrays.forEach((a) => { - if (!u8a(a)) throw new Error('Uint8Array expected'); - r.set(a, pad); - pad += a.length; - }); - return r; -} - -// Check if object doens't have custom constructor (like Uint8Array/Array) -const isPlainObject = (obj: any) => - Object.prototype.toString.call(obj) === '[object Object]' && obj.constructor === Object; - -type EmptyObj = {}; -export function checkOpts( - defaults: T1, - opts?: T2 -): T1 & T2 { - if (opts !== undefined && (typeof opts !== 'object' || !isPlainObject(opts))) - throw new Error('options must be object or undefined'); - const merged = Object.assign(defaults, opts); - return merged as T1 & T2; -} - -export function ensureBytes(b: any, len?: number) { - if (!(b instanceof Uint8Array)) throw new Error('Uint8Array expected'); - if (typeof len === 'number') - if (b.length !== len) throw new Error(`Uint8Array length ${len} expected`); -} - -// Constant-time equality -export function equalBytes(a: Uint8Array, b: Uint8Array): boolean { - // Should not happen - if (a.length !== b.length) throw new Error('equalBytes: Different size of Uint8Arrays'); - let isSame = true; - for (let i = 0; i < a.length; i++) isSame &&= a[i] === b[i]; // Lets hope JIT won't optimize away. - return isSame; -} - -// For runtime check if class implements interface -export abstract class Hash> { - abstract blockLen: number; // Bytes per block - abstract outputLen: number; // Bytes in output - abstract update(buf: Input): this; - // Writes digest into buf - abstract digestInto(buf: Uint8Array): void; - abstract digest(): Uint8Array; - /** - * Resets internal state. Makes Hash instance unusable. - * Reset is impossible for keyed hashes if key is consumed into state. If digest is not consumed - * by user, they will need to manually call `destroy()` when zeroing is necessary. - */ - abstract destroy(): void; -} - -// This will allow to re-use with composable things like packed & base encoders -// Also, we probably can make tags composable -export type Cipher = { - tagLength?: number; - encrypt(plaintext: Uint8Array): Uint8Array; - decrypt(ciphertext: Uint8Array): Uint8Array; -}; - -export type AsyncCipher = { - tagLength?: number; - encrypt(plaintext: Uint8Array): Promise; - decrypt(ciphertext: Uint8Array): Promise; -}; - -// Polyfill for Safari 14 -export function setBigUint64( - view: DataView, - byteOffset: number, - value: bigint, - isLE: boolean -): void { - if (typeof view.setBigUint64 === 'function') return view.setBigUint64(byteOffset, value, isLE); - const _32n = BigInt(32); - const _u32_max = BigInt(0xffffffff); - const wh = Number((value >> _32n) & _u32_max); - const wl = Number(value & _u32_max); - const h = isLE ? 4 : 0; - const l = isLE ? 0 : 4; - view.setUint32(byteOffset + h, wh, isLE); - view.setUint32(byteOffset + l, wl, isLE); -} diff --git a/node_modules/@noble/ciphers/src/webcrypto/aes.ts b/node_modules/@noble/ciphers/src/webcrypto/aes.ts deleted file mode 100644 index c0a13f1a..00000000 --- a/node_modules/@noble/ciphers/src/webcrypto/aes.ts +++ /dev/null @@ -1,48 +0,0 @@ -import { ensureBytes } from '../utils.js'; -import { getWebcryptoSubtle } from './utils.js'; - -function generate(algo: string, length: number) { - const keyLength = length / 8; - const keyParams = { name: algo, length }; - const cryptParams: Record = { name: algo }; - // const params: Record = ({ e: algo, i: { name: algo, length } }); - - return (key: Uint8Array, nonce: Uint8Array) => { - ensureBytes(key, keyLength); - if (algo === 'AES-CTR') { - cryptParams.counter = nonce; - cryptParams.length = 64; - } else { - cryptParams.iv = nonce; - } - - return { - keyLength, - - async encrypt(plaintext: Uint8Array): Promise { - ensureBytes(plaintext); - const cr = getWebcryptoSubtle(); - const iKey = await cr.importKey('raw', key, keyParams, true, ['encrypt']); - const cipher = await cr.encrypt(cryptParams, iKey, plaintext); - return new Uint8Array(cipher); - }, - - async decrypt(ciphertext: Uint8Array): Promise { - ensureBytes(ciphertext); - const cr = getWebcryptoSubtle(); - const iKey = await cr.importKey('raw', key, keyParams, true, ['decrypt']); - const plaintext = await cr.decrypt(cryptParams, iKey, ciphertext); - return new Uint8Array(plaintext); - }, - }; - }; -} - -export const aes_128_ctr = generate('AES-CTR', 128); -export const aes_256_ctr = generate('AES-CTR', 256); - -export const aes_128_cbc = generate('AES-CBC', 128); -export const aes_256_cbc = generate('AES-CBC', 256); - -export const aes_128_gcm = generate('AES-GCM', 128); -export const aes_256_gcm = generate('AES-GCM', 256); diff --git a/node_modules/@noble/ciphers/src/webcrypto/crypto.ts b/node_modules/@noble/ciphers/src/webcrypto/crypto.ts deleted file mode 100644 index eaea6bef..00000000 --- a/node_modules/@noble/ciphers/src/webcrypto/crypto.ts +++ /dev/null @@ -1,5 +0,0 @@ -// We use WebCrypto aka globalThis.crypto, which exists in browsers and node.js 16+. -// See utils.ts for details. -declare const globalThis: Record | undefined; -export const crypto = - typeof globalThis === 'object' && 'crypto' in globalThis ? globalThis.crypto : undefined; diff --git a/node_modules/@noble/ciphers/src/webcrypto/cryptoNode.ts b/node_modules/@noble/ciphers/src/webcrypto/cryptoNode.ts deleted file mode 100644 index 6fdba9ec..00000000 --- a/node_modules/@noble/ciphers/src/webcrypto/cryptoNode.ts +++ /dev/null @@ -1,7 +0,0 @@ -// We use WebCrypto aka globalThis.crypto, which exists in browsers and node.js 16+. -// See utils.ts for details. -// The file will throw on node.js 14 and earlier. -// @ts-ignore -import * as nc from 'node:crypto'; -export const crypto = - nc && typeof nc === 'object' && 'webcrypto' in nc ? (nc.webcrypto as any) : undefined; diff --git a/node_modules/@noble/ciphers/src/webcrypto/ff1.ts b/node_modules/@noble/ciphers/src/webcrypto/ff1.ts deleted file mode 100644 index 432578b0..00000000 --- a/node_modules/@noble/ciphers/src/webcrypto/ff1.ts +++ /dev/null @@ -1,169 +0,0 @@ -import type { AsyncCipher } from '../utils.js'; -import { getWebcryptoSubtle } from './utils.js'; - -// Format-preserving encryption algorithm (FPE-FF1) specified in NIST Special Publication 800-38G. -// https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-38G.pdf - -// Utils -function toBytesBE(num: bigint, length?: number): Uint8Array { - let hex = num.toString(16); - hex = hex.length & 1 ? `0${hex}` : hex; - if (length) hex = hex.padStart(length * 2, '00'); - const len = hex.length / 2; - const u8 = new Uint8Array(len); - for (let j = 0, i = 0; i < hex.length && i < len * 2; i += 2, j++) - u8[j] = parseInt(hex[i] + hex[i + 1], 16); - return u8; -} - -function fromBytesBE(bytes: Uint8Array): bigint { - let value = 0n; - for (let i = bytes.length - 1, j = 0; i >= 0; i--, j++) - value += (BigInt(bytes[i]) & 255n) << (8n * BigInt(j)); - return value; -} - -// Calculates a modulo b -function mod(a: number, b: number): number; -function mod(a: bigint, b: bigint): bigint; -function mod(a: any, b: any): number | bigint { - const result = a % b; - return result >= 0 ? result : b + result; -} -// AES stuff -const BLOCK_LEN = 16; -const IV = new Uint8Array(BLOCK_LEN); -export async function encryptBlock(msg: Uint8Array, key: Uint8Array): Promise { - if (key.length !== 16 && key.length !== 32) throw new Error('Invalid key length'); - const cr = getWebcryptoSubtle(); - const mode = { name: `AES-CBC`, length: key.length * 8 }; - const wKey = await cr.importKey('raw', key, mode, true, ['encrypt']); - const cipher = await cr.encrypt({ name: `aes-cbc`, iv: IV, counter: IV, length: 64 }, wKey, msg); - return new Uint8Array(cipher).subarray(0, 16); -} - -function NUMradix(radix: number, data: number[]): bigint { - let res = 0n; - for (let i of data) res = res * BigInt(radix) + BigInt(i); - return res; -} - -async function getRound(radix: number, key: Uint8Array, tweak: Uint8Array, x: number[]) { - if (radix > 2 ** 16 - 1) throw new Error(`Invalid radix: ${radix}`); - // radix**minlen ≥ 100 - const minLen = Math.ceil(Math.log(100) / Math.log(radix)); - const maxLen = 2 ** 32 - 1; - // 2 ≤ minlen ≤ maxlen < 2**32 - if (2 > minLen || minLen > maxLen || maxLen >= 2 ** 32) - throw new Error('Invalid radix: 2 ≤ minlen ≤ maxlen < 2**32'); - if (x.length < minLen || x.length > maxLen) throw new Error('X is outside minLen..maxLen bounds'); - const u = Math.floor(x.length / 2); - const v = x.length - u; - const b = Math.ceil(Math.ceil(v * Math.log2(radix)) / 8); - const d = 4 * Math.ceil(b / 4) + 4; - const padding = mod(-tweak.length - b - 1, 16); - // P = [1]1 || [2]1 || [1]1 || [radix]3 || [10]1 || [u mod 256]1 || [n]4 || [t]4. - const P = new Uint8Array([1, 2, 1, 0, 0, 0, 10, u, 0, 0, 0, 0, 0, 0, 0, 0]); - const view = new DataView(P.buffer); - view.setUint16(4, radix, false); - view.setUint32(8, x.length, false); - view.setUint32(12, tweak.length, false); - // Q = T || [0](−t−b−1) mod 16 || [i]1 || [NUMradix(B)]b. - const PQ = new Uint8Array(P.length + tweak.length + padding + 1 + b); - PQ.set(P); - P.fill(0); - PQ.set(tweak, P.length); - const round = async (A: number[], B: number[], i: number, decrypt = false) => { - // Q = ... || [i]1 || [NUMradix(B)]b. - PQ[PQ.length - b - 1] = i; - if (b) PQ.set(toBytesBE(NUMradix(radix, B), b), PQ.length - b); - // PRF - let r = new Uint8Array(16); - for (let j = 0; j < PQ.length / BLOCK_LEN; j++) { - for (let i = 0; i < BLOCK_LEN; i++) r[i] ^= PQ[j * BLOCK_LEN + i]; - r.set(await encryptBlock(r, key)); - } - // Let S be the first d bytes of the following string of ⎡d/16⎤ blocks: - // R || CIPHK(R ⊕[1]16) || CIPHK(R ⊕[2]16) ...CIPHK(R ⊕[⎡d / 16⎤ – 1]16). - let s = Array.from(r); - for (let j = 1; s.length < d; j++) { - const block = toBytesBE(BigInt(j), 16); - for (let k = 0; k < BLOCK_LEN; k++) block[k] ^= r[k]; - s.push(...Array.from(await encryptBlock(block, key))); - } - let y = fromBytesBE(Uint8Array.from(s.slice(0, d))); - s.fill(0); - if (decrypt) y = -y; - const m = i % 2 === 0 ? u : v; - let c = mod(NUMradix(radix, A) + y, BigInt(radix) ** BigInt(m)); - // STR(radix, m, c) - const C = Array(m).fill(0); - for (let i = 0; i < m; i++, c /= BigInt(radix)) C[m - 1 - i] = Number(c % BigInt(radix)); - A.fill(0); - A = B; - B = C; - return [A, B]; - }; - const destroy = () => PQ.fill(0); - return { u, round, destroy }; -} - -const EMPTY_BUF = new Uint8Array([]); - -export function FF1(radix: number, key: Uint8Array, tweak: Uint8Array = EMPTY_BUF) { - const PQ = getRound.bind(null, radix, key, tweak); - return { - async encrypt(x: number[]) { - const { u, round, destroy } = await PQ(x); - let [A, B] = [x.slice(0, u), x.slice(u)]; - for (let i = 0; i < 10; i++) [A, B] = await round(A, B, i); - destroy(); - const res = A.concat(B); - A.fill(0); - B.fill(0); - return res; - }, - async decrypt(x: number[]) { - const { u, round, destroy } = await PQ(x); - // The FF1.Decrypt algorithm is similar to the FF1.Encrypt algorithm; - // the differences are in Step 6, where: - // 1) the order of the indices is reversed, - // 2) the roles of A and B are swapped - // 3) modular addition is replaced by modular subtraction, in Step 6vi. - let [B, A] = [x.slice(0, u), x.slice(u)]; - for (let i = 9; i >= 0; i--) [A, B] = await round(A, B, i, true); - destroy(); - const res = B.concat(A); - A.fill(0); - B.fill(0); - return res; - }, - }; -} -// Binary string which encodes each byte in little-endian byte order -const binLE = { - encode(bytes: Uint8Array): number[] { - const x = []; - for (let i = 0; i < bytes.length; i++) { - for (let j = 0, tmp = bytes[i]; j < 8; j++, tmp >>= 1) x.push(tmp & 1); - } - return x; - }, - decode(b: number[]): Uint8Array { - if (b.length % 8) throw new Error('Invalid binary string'); - const res = new Uint8Array(b.length / 8); - for (let i = 0, j = 0; i < res.length; i++) { - res[i] = b[j++] | (b[j++] << 1) | (b[j++] << 2) | (b[j++] << 3); - res[i] |= (b[j++] << 4) | (b[j++] << 5) | (b[j++] << 6) | (b[j++] << 7); - } - return res; - }, -}; - -export function BinaryFF1(key: Uint8Array, tweak: Uint8Array = EMPTY_BUF): AsyncCipher { - const ff1 = FF1(2, key, tweak); - return { - encrypt: async (x: Uint8Array) => binLE.decode(await ff1.encrypt(binLE.encode(x))), - decrypt: async (x: Uint8Array) => binLE.decode(await ff1.decrypt(binLE.encode(x))), - }; -} diff --git a/node_modules/@noble/ciphers/src/webcrypto/siv.ts b/node_modules/@noble/ciphers/src/webcrypto/siv.ts deleted file mode 100644 index fe37ca9f..00000000 --- a/node_modules/@noble/ciphers/src/webcrypto/siv.ts +++ /dev/null @@ -1,125 +0,0 @@ -import { AsyncCipher, createView, setBigUint64 } from '../utils.js'; -import { polyval } from '../_polyval.js'; -import { getWebcryptoSubtle } from './utils.js'; -/** - * AES-GCM-SIV: classic AES-GCM with nonce-misuse resistance. - * RFC 8452, https://datatracker.ietf.org/doc/html/rfc8452 - */ - -// AES stuff (same as ff1) -const BLOCK_LEN = 16; -const IV = new Uint8Array(BLOCK_LEN); -async function encryptBlock(msg: Uint8Array, key: Uint8Array): Promise { - if (key.length !== 16 && key.length !== 32) throw new Error('Invalid key length'); - const mode = { name: `AES-CBC`, length: key.length * 8 }; - const cr = getWebcryptoSubtle(); - const wKey = await cr.importKey('raw', key, mode, true, ['encrypt']); - const cipher = await cr.encrypt({ name: `aes-cbc`, iv: IV, counter: IV, length: 64 }, wKey, msg); - return new Uint8Array(cipher).subarray(0, 16); -} - -// Kinda constant-time equality -function equalBytes(a: Uint8Array, b: Uint8Array): boolean { - // Should not happen - if (a.length !== b.length) throw new Error('equalBytes: Different size of Uint8Arrays'); - let flag = true; - for (let i = 0; i < a.length; i++) if (a[i] !== b[i]) flag &&= false; - return flag; -} -// Wrap position so it will be in padded to blockSize -const wrapPos = (pos: number, blockSize: number) => Math.ceil(pos / blockSize) * blockSize; - -const limit = (name: string, min: number, max: number) => (value: number) => { - if (!Number.isSafeInteger(value) || min > value || value > max) - throw new Error(`${name}: invalid value=${value}, must be [${min}..${max}]`); -}; - -// From RFC 8452: Section 6 -const AAD_LIMIT = limit('AAD', 0, 2 ** 36); -const PLAIN_LIMIT = limit('Plaintext', 0, 2 ** 36); -const NONCE_LIMIT = limit('Nonce', 12, 12); -const CIPHER_LIMIT = limit('Ciphertext', 16, 2 ** 36 + 16); - -// nodejs api doesn't support 32bit counters, browser does -async function ctr(key: Uint8Array, tag: Uint8Array, input: Uint8Array) { - // The initial counter block is the tag with the most significant bit of the last byte set to one. - let block = tag.slice(); - block[15] |= 0x80; - let view = createView(block); - let output = new Uint8Array(input.length); - for (let pos = 0; pos < input.length; ) { - const encryptedBlock = await encryptBlock(block, key); - view.setUint32(0, view.getUint32(0, true) + 1, true); - const take = Math.min(input.length, encryptedBlock.length); - for (let j = 0; j < take; j++, pos++) output[pos] = encryptedBlock[j] ^ input[pos]; - } - return new Uint8Array(output); -} - -export async function deriveKeys(key: Uint8Array, nonce: Uint8Array) { - NONCE_LIMIT(nonce.length); - const len = key.length; - if (len !== 16 && len !== 32) - throw new Error(`key length must be 16 or 32 bytes, got: ${len} bytes`); - const encKey = new Uint8Array(len); - const authKey = new Uint8Array(16); - let counter = 0; - const deriveBlock = new Uint8Array(nonce.length + 4); - deriveBlock.set(nonce, 4); - const view = createView(deriveBlock); - for (const derivedKey of [authKey, encKey]) { - for (let i = 0; i < derivedKey.length; i += 8) { - view.setUint32(0, counter++, true); - const block = await encryptBlock(deriveBlock, key); - derivedKey.set(block.subarray(0, 8), i); - } - } - return { authKey, encKey }; -} - -export async function aes_256_gcm_siv( - key: Uint8Array, - nonce: Uint8Array, - AAD: Uint8Array -): Promise { - const { encKey, authKey } = await deriveKeys(key, nonce); - const computeTag = async (data: Uint8Array, AAD: Uint8Array) => { - const dataPos = wrapPos(AAD.length, 16); - const lenPos = wrapPos(dataPos + data.length, 16); - const block = new Uint8Array(lenPos + 16); - const view = createView(block); - block.set(AAD); - block.set(data, dataPos); - setBigUint64(view, lenPos, BigInt(AAD.length * 8), true); - setBigUint64(view, lenPos + 8, BigInt(data.length * 8), true); - // Compute the expected tag by XORing S_s and the nonce, clearing the - // most significant bit of the last byte and encrypting with the - // message-encryption key. - const tag = polyval(authKey, block); - for (let i = 0; i < 12; i++) tag[i] ^= nonce[i]; - // Clear the highest bit - tag[15] &= 0x7f; - return await encryptBlock(tag, encKey); - }; - return { - // computeTag, - encrypt: async (plaintext: Uint8Array) => { - AAD_LIMIT(AAD.length); - PLAIN_LIMIT(plaintext.length); - const tag = await computeTag(plaintext, AAD); - const out = new Uint8Array(plaintext.length + 16); - out.set(tag, plaintext.length); - out.set(await ctr(encKey, tag, plaintext)); - return out; - }, - decrypt: async (ciphertext: Uint8Array) => { - CIPHER_LIMIT(ciphertext.length); - AAD_LIMIT(AAD.length); - const tag = ciphertext.subarray(-16); - const plaintext = await ctr(encKey, tag, ciphertext.subarray(0, -16)); - const expectedTag = await computeTag(plaintext, AAD); - if (!equalBytes(tag, expectedTag)) throw new Error('invalid poly1305 tag'); - return plaintext; - }, - }; -} diff --git a/node_modules/@noble/ciphers/src/webcrypto/utils.ts b/node_modules/@noble/ciphers/src/webcrypto/utils.ts deleted file mode 100644 index c0060242..00000000 --- a/node_modules/@noble/ciphers/src/webcrypto/utils.ts +++ /dev/null @@ -1,24 +0,0 @@ -// We use WebCrypto aka globalThis.crypto, which exists in browsers and node.js 16+. -// node.js versions earlier than v19 don't declare it in global scope. -// For node.js, package.js on#exports field mapping rewrites import -// from `crypto` to `cryptoNode`, which imports native module. -// Makes the utils un-importable in browsers without a bundler. -// Once node.js 18 is deprecated, we can just drop the import. -import { crypto } from '@noble/ciphers/webcrypto/crypto'; - -/** - * Secure PRNG. Uses `crypto.getRandomValues`, which defers to OS. - */ -export function randomBytes(bytesLength = 32): Uint8Array { - if (crypto && typeof crypto.getRandomValues === 'function') { - return crypto.getRandomValues(new Uint8Array(bytesLength)); - } - throw new Error('crypto.getRandomValues must be defined'); -} - -export function getWebcryptoSubtle() { - if (crypto && typeof crypto.subtle === 'object' && crypto.subtle != null) { - return crypto.subtle; - } - throw new Error('crypto.subtle must be defined'); -} diff --git a/node_modules/@noble/ciphers/utils.d.ts b/node_modules/@noble/ciphers/utils.d.ts deleted file mode 100644 index f6c95cd7..00000000 --- a/node_modules/@noble/ciphers/utils.d.ts +++ /dev/null @@ -1,63 +0,0 @@ -/*! noble-ciphers - MIT License (c) 2023 Paul Miller (paulmillr.com) */ -export type TypedArray = Int8Array | Uint8ClampedArray | Uint8Array | Uint16Array | Int16Array | Uint32Array | Int32Array; -export declare const u8: (arr: TypedArray) => Uint8Array; -export declare const u16: (arr: TypedArray) => Uint16Array; -export declare const u32: (arr: TypedArray) => Uint32Array; -export declare const createView: (arr: TypedArray) => DataView; -export declare const isLE: boolean; -/** - * @example bytesToHex(Uint8Array.from([0xca, 0xfe, 0x01, 0x23])) // 'cafe0123' - */ -export declare function bytesToHex(bytes: Uint8Array): string; -/** - * @example hexToBytes('cafe0123') // Uint8Array.from([0xca, 0xfe, 0x01, 0x23]) - */ -export declare function hexToBytes(hex: string): Uint8Array; -export declare const nextTick: () => Promise; -export declare function asyncLoop(iters: number, tick: number, cb: (i: number) => void): Promise; -/** - * @example utf8ToBytes('abc') // new Uint8Array([97, 98, 99]) - */ -export declare function utf8ToBytes(str: string): Uint8Array; -export declare function bytesToUtf8(bytes: Uint8Array): string; -export type Input = Uint8Array | string; -/** - * Normalizes (non-hex) string or Uint8Array to Uint8Array. - * Warning: when Uint8Array is passed, it would NOT get copied. - * Keep in mind for future mutable operations. - */ -export declare function toBytes(data: Input): Uint8Array; -/** - * Copies several Uint8Arrays into one. - */ -export declare function concatBytes(...arrays: Uint8Array[]): Uint8Array; -type EmptyObj = {}; -export declare function checkOpts(defaults: T1, opts?: T2): T1 & T2; -export declare function ensureBytes(b: any, len?: number): void; -export declare function equalBytes(a: Uint8Array, b: Uint8Array): boolean; -export declare abstract class Hash> { - abstract blockLen: number; - abstract outputLen: number; - abstract update(buf: Input): this; - abstract digestInto(buf: Uint8Array): void; - abstract digest(): Uint8Array; - /** - * Resets internal state. Makes Hash instance unusable. - * Reset is impossible for keyed hashes if key is consumed into state. If digest is not consumed - * by user, they will need to manually call `destroy()` when zeroing is necessary. - */ - abstract destroy(): void; -} -export type Cipher = { - tagLength?: number; - encrypt(plaintext: Uint8Array): Uint8Array; - decrypt(ciphertext: Uint8Array): Uint8Array; -}; -export type AsyncCipher = { - tagLength?: number; - encrypt(plaintext: Uint8Array): Promise; - decrypt(ciphertext: Uint8Array): Promise; -}; -export declare function setBigUint64(view: DataView, byteOffset: number, value: bigint, isLE: boolean): void; -export {}; -//# sourceMappingURL=utils.d.ts.map \ No newline at end of file diff --git a/node_modules/@noble/ciphers/utils.d.ts.map b/node_modules/@noble/ciphers/utils.d.ts.map deleted file mode 100644 index 5df3427e..00000000 --- a/node_modules/@noble/ciphers/utils.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"utils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90..00000000 --- a/node_modules/@noble/ciphers/utils.js +++ /dev/null @@ -1,163 +0,0 @@ -"use strict"; -/*! noble-ciphers - MIT License (c) 2023 Paul Miller (paulmillr.com) */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.setBigUint64 = exports.Hash = exports.equalBytes = exports.ensureBytes = exports.checkOpts = exports.concatBytes = exports.toBytes = exports.bytesToUtf8 = exports.utf8ToBytes = exports.asyncLoop = exports.nextTick = exports.hexToBytes = exports.bytesToHex = exports.isLE = exports.createView = exports.u32 = exports.u16 = exports.u8 = void 0; -const u8a = (a) => a instanceof Uint8Array; -// Cast array to different type -const u8 = (arr) => new Uint8Array(arr.buffer, arr.byteOffset, arr.byteLength); -exports.u8 = u8; -const u16 = (arr) => new Uint16Array(arr.buffer, arr.byteOffset, Math.floor(arr.byteLength / 2)); -exports.u16 = u16; -const u32 = (arr) => new Uint32Array(arr.buffer, arr.byteOffset, Math.floor(arr.byteLength / 4)); -exports.u32 = u32; -// Cast array to view -const createView = (arr) => new DataView(arr.buffer, arr.byteOffset, arr.byteLength); -exports.createView = createView; -// big-endian hardware is rare. Just in case someone still decides to run ciphers: -// early-throw an error because we don't support BE yet. -exports.isLE = new Uint8Array(new Uint32Array([0x11223344]).buffer)[0] === 0x44; -if (!exports.isLE) - throw new Error('Non little-endian hardware is not supported'); -const hexes = /* @__PURE__ */ Array.from({ length: 256 }, (_, i) => i.toString(16).padStart(2, '0')); -/** - * @example bytesToHex(Uint8Array.from([0xca, 0xfe, 0x01, 0x23])) // 'cafe0123' - */ -function bytesToHex(bytes) { - if (!u8a(bytes)) - throw new Error('Uint8Array expected'); - // pre-caching improves the speed 6x - let hex = ''; - for (let i = 0; i < bytes.length; i++) { - hex += hexes[bytes[i]]; - } - return hex; -} -exports.bytesToHex = bytesToHex; -/** - * @example hexToBytes('cafe0123') // Uint8Array.from([0xca, 0xfe, 0x01, 0x23]) - */ -function hexToBytes(hex) { - if (typeof hex !== 'string') - throw new Error('hex string expected, got ' + typeof hex); - const len = hex.length; - if (len % 2) - throw new Error('padded hex string expected, got unpadded hex of length ' + len); - const array = new Uint8Array(len / 2); - for (let i = 0; i < array.length; i++) { - const j = i * 2; - const hexByte = hex.slice(j, j + 2); - const byte = Number.parseInt(hexByte, 16); - if (Number.isNaN(byte) || byte < 0) - throw new Error('Invalid byte sequence'); - array[i] = byte; - } - return array; -} -exports.hexToBytes = hexToBytes; -// There is no setImmediate in browser and setTimeout is slow. -// call of async fn will return Promise, which will be fullfiled only on -// next scheduler queue processing step and this is exactly what we need. -const nextTick = async () => { }; -exports.nextTick = nextTick; -// Returns control to thread each 'tick' ms to avoid blocking -async function asyncLoop(iters, tick, cb) { - let ts = Date.now(); - for (let i = 0; i < iters; i++) { - cb(i); - // Date.now() is not monotonic, so in case if clock goes backwards we return return control too - const diff = Date.now() - ts; - if (diff >= 0 && diff < tick) - continue; - await (0, exports.nextTick)(); - ts += diff; - } -} -exports.asyncLoop = asyncLoop; -/** - * @example utf8ToBytes('abc') // new Uint8Array([97, 98, 99]) - */ -function utf8ToBytes(str) { - if (typeof str !== 'string') - throw new Error(`utf8ToBytes expected string, got ${typeof str}`); - return new Uint8Array(new TextEncoder().encode(str)); // https://bugzil.la/1681809 -} -exports.utf8ToBytes = utf8ToBytes; -function bytesToUtf8(bytes) { - return new TextDecoder().decode(bytes); -} -exports.bytesToUtf8 = bytesToUtf8; -/** - * Normalizes (non-hex) string or Uint8Array to Uint8Array. - * Warning: when Uint8Array is passed, it would NOT get copied. - * Keep in mind for future mutable operations. - */ -function toBytes(data) { - if (typeof data === 'string') - data = utf8ToBytes(data); - if (!u8a(data)) - throw new Error(`expected Uint8Array, got ${typeof data}`); - return data; -} -exports.toBytes = toBytes; -/** - * Copies several Uint8Arrays into one. - */ -function concatBytes(...arrays) { - const r = new Uint8Array(arrays.reduce((sum, a) => sum + a.length, 0)); - let pad = 0; // walk through each item, ensure they have proper type - arrays.forEach((a) => { - if (!u8a(a)) - throw new Error('Uint8Array expected'); - r.set(a, pad); - pad += a.length; - }); - return r; -} -exports.concatBytes = concatBytes; -// Check if object doens't have custom constructor (like Uint8Array/Array) -const isPlainObject = (obj) => Object.prototype.toString.call(obj) === '[object Object]' && obj.constructor === Object; -function checkOpts(defaults, opts) { - if (opts !== undefined && (typeof opts !== 'object' || !isPlainObject(opts))) - throw new Error('options must be object or undefined'); - const merged = Object.assign(defaults, opts); - return merged; -} -exports.checkOpts = checkOpts; -function ensureBytes(b, len) { - if (!(b instanceof Uint8Array)) - throw new Error('Uint8Array expected'); - if (typeof len === 'number') - if (b.length !== len) - throw new Error(`Uint8Array length ${len} expected`); -} -exports.ensureBytes = ensureBytes; -// Constant-time equality -function equalBytes(a, b) { - // Should not happen - if (a.length !== b.length) - throw new Error('equalBytes: Different size of Uint8Arrays'); - let isSame = true; - for (let i = 0; i < a.length; i++) - isSame && (isSame = a[i] === b[i]); // Lets hope JIT won't optimize away. - return isSame; -} -exports.equalBytes = equalBytes; -// For runtime check if class implements interface -class Hash { -} -exports.Hash = Hash; -// Polyfill for Safari 14 -function setBigUint64(view, byteOffset, value, isLE) { - if (typeof view.setBigUint64 === 'function') - return view.setBigUint64(byteOffset, value, isLE); - const _32n = BigInt(32); - const _u32_max = BigInt(0xffffffff); - const wh = Number((value >> _32n) & _u32_max); - const wl = Number(value & _u32_max); - const h = isLE ? 4 : 0; - const l = isLE ? 0 : 4; - view.setUint32(byteOffset + h, wh, isLE); - view.setUint32(byteOffset + l, wl, isLE); -} -exports.setBigUint64 = setBigUint64; -//# sourceMappingURL=utils.js.map \ No newline at end of file diff --git a/node_modules/@noble/ciphers/utils.js.map b/node_modules/@noble/ciphers/utils.js.map deleted file mode 100644 index 4eaf7ec6..00000000 --- a/node_modules/@noble/ciphers/utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"utils.js","sourceRoot":"","sources":["src/utils.ts"],"names":[],"mappings":";AAAA,uEAAuE;;;AAMvE,MAAM,GAAG,GAAG,CAAC,CAAM,EAAmB,EAAE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AAQ,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC;IACpC,MAAM,EAAE,GAAG,MAAM,CAAC,CAAC,KAAK,IAAI,IAAI,CAAC,GAAG,QAAQ,CAAC,CAAC;IAC9C,MAAM,EAAE,GAAG,MAAM,CAAC,KAAK,GAAG,QAAQ,CAAC,CAAC;IACpC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACvB,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACvB,IAAI,CAAC,SAAS,CAAC,UAAU,GAAG,CAAC,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;IACzC,IAAI,CAAC,SAAS,CAAC,UAAU,GAAG,CAAC,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;AAC3C,CAAC;AAfD,oCAeC"} \ No newline at end of file diff --git a/node_modules/@noble/ciphers/webcrypto/aes.d.ts b/node_modules/@noble/ciphers/webcrypto/aes.d.ts deleted file mode 100644 index a8b56feb..00000000 --- a/node_modules/@noble/ciphers/webcrypto/aes.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -export declare const aes_128_ctr: (key: Uint8Array, nonce: Uint8Array) => { - keyLength: number; - encrypt(plaintext: Uint8Array): Promise; - decrypt(ciphertext: Uint8Array): Promise; -}; -export declare const aes_256_ctr: (key: Uint8Array, nonce: Uint8Array) => { - keyLength: number; - encrypt(plaintext: Uint8Array): Promise; - decrypt(ciphertext: Uint8Array): Promise; -}; -export declare const aes_128_cbc: (key: Uint8Array, nonce: Uint8Array) => { - keyLength: number; - encrypt(plaintext: Uint8Array): Promise; - decrypt(ciphertext: Uint8Array): Promise; -}; -export declare const aes_256_cbc: (key: Uint8Array, nonce: Uint8Array) => { - keyLength: number; - encrypt(plaintext: Uint8Array): Promise; - decrypt(ciphertext: Uint8Array): Promise; -}; -export declare const aes_128_gcm: (key: Uint8Array, nonce: Uint8Array) => { - keyLength: number; - encrypt(plaintext: Uint8Array): Promise; - decrypt(ciphertext: Uint8Array): Promise; -}; -export declare const aes_256_gcm: (key: Uint8Array, nonce: Uint8Array) => { - keyLength: number; - encrypt(plaintext: Uint8Array): Promise; - decrypt(ciphertext: Uint8Array): Promise; -}; -//# sourceMappingURL=aes.d.ts.map \ No newline at end of file diff --git a/node_modules/@noble/ciphers/webcrypto/aes.d.ts.map b/node_modules/@noble/ciphers/webcrypto/aes.d.ts.map deleted file mode 100644 index 7d8c404d..00000000 --- a/node_modules/@noble/ciphers/webcrypto/aes.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"aes.d.ts","sourceRoot":"","sources":["../src/webcrypto/aes.ts"],"names":[],"mappings":"AAwCA,eAAO,MAAM,WAAW,QA/BT,UAAU,SAAS,UAAU;;uBAYb,UAAU,GAAG,QAAQ,UAAU,CAAC;wBAQ/B,UAAU,GAAG,QAAQ,UAAU,CAAC;CAWb,CAAC;AACpD,eAAO,MAAM,WAAW,QAhCT,UAAU,SAAS,UAAU;;uBAYb,UAAU,GAAG,QAAQ,UAAU,CAAC;wBAQ/B,UAAU,GAAG,QAAQ,UAAU,CAAC;CAYb,CAAC;AAEpD,eAAO,MAAM,WAAW,QAlCT,UAAU,SAAS,UAAU;;uBAYb,UAAU,GAAG,QAAQ,UAAU,CAAC;wBAQ/B,UAAU,GAAG,QAAQ,UAAU,CAAC;CAcb,CAAC;AACpD,eAAO,MAAM,WAAW,QAnCT,UAAU,SAAS,UAAU;;uBAYb,UAAU,GAAG,QAAQ,UAAU,CAAC;wBAQ/B,UAAU,GAAG,QAAQ,UAAU,CAAC;CAeb,CAAC;AAEpD,eAAO,MAAM,WAAW,QArCT,UAAU,SAAS,UAAU;;uBAYb,UAAU,GAAG,QAAQ,UAAU,CAAC;wBAQ/B,UAAU,GAAG,QAAQ,UAAU,CAAC;CAiBb,CAAC;AACpD,eAAO,MAAM,WAAW,QAtCT,UAAU,SAAS,UAAU;;uBAYb,UAAU,GAAG,QAAQ,UAAU,CAAC;wBAQ/B,UAAU,GAAG,QAAQ,UAAU,CAAC;CAkBb,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/ciphers/webcrypto/aes.js b/node_modules/@noble/ciphers/webcrypto/aes.js deleted file mode 100644 index 93f7de54..00000000 --- a/node_modules/@noble/ciphers/webcrypto/aes.js +++ /dev/null @@ -1,45 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.aes_256_gcm = exports.aes_128_gcm = exports.aes_256_cbc = exports.aes_128_cbc = exports.aes_256_ctr = exports.aes_128_ctr = void 0; -const utils_js_1 = require("../utils.js"); -const utils_js_2 = require("./utils.js"); -function generate(algo, length) { - const keyLength = length / 8; - const keyParams = { name: algo, length }; - const cryptParams = { name: algo }; - // const params: Record = ({ e: algo, i: { name: algo, length } }); - return (key, nonce) => { - (0, utils_js_1.ensureBytes)(key, keyLength); - if (algo === 'AES-CTR') { - cryptParams.counter = nonce; - cryptParams.length = 64; - } - else { - cryptParams.iv = nonce; - } - return { - keyLength, - async encrypt(plaintext) { - (0, utils_js_1.ensureBytes)(plaintext); - const cr = (0, utils_js_2.getWebcryptoSubtle)(); - const iKey = await cr.importKey('raw', key, keyParams, true, ['encrypt']); - const cipher = await cr.encrypt(cryptParams, iKey, plaintext); - return new Uint8Array(cipher); - }, - async decrypt(ciphertext) { - (0, utils_js_1.ensureBytes)(ciphertext); - const cr = (0, utils_js_2.getWebcryptoSubtle)(); - const iKey = await cr.importKey('raw', key, keyParams, true, ['decrypt']); - const plaintext = await cr.decrypt(cryptParams, iKey, ciphertext); - return new Uint8Array(plaintext); - }, - }; - }; -} -exports.aes_128_ctr = generate('AES-CTR', 128); -exports.aes_256_ctr = generate('AES-CTR', 256); -exports.aes_128_cbc = generate('AES-CBC', 128); -exports.aes_256_cbc = generate('AES-CBC', 256); -exports.aes_128_gcm = generate('AES-GCM', 128); -exports.aes_256_gcm = generate('AES-GCM', 256); -//# sourceMappingURL=aes.js.map \ No newline at end of file diff --git a/node_modules/@noble/ciphers/webcrypto/aes.js.map b/node_modules/@noble/ciphers/webcrypto/aes.js.map deleted file mode 100644 index 93a12852..00000000 --- a/node_modules/@noble/ciphers/webcrypto/aes.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"aes.js","sourceRoot":"","sources":["../src/webcrypto/aes.ts"],"names":[],"mappings":";;;AAAA,0CAA0C;AAC1C,yCAAgD;AAEhD,SAAS,QAAQ,CAAC,IAAY,EAAE,MAAc;IAC5C,MAAM,SAAS,GAAG,MAAM,GAAG,CAAC,CAAC;IAC7B,MAAM,SAAS,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IACzC,MAAM,WAAW,GAAwB,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IACxD,gFAAgF;IAEhF,OAAO,CAAC,GAAe,EAAE,KAAiB,EAAE,EAAE;QAC5C,IAAA,sBAAW,EAAC,GAAG,EAAE,SAAS,CAAC,CAAC;QAC5B,IAAI,IAAI,KAAK,SAAS,EAAE;YACtB,WAAW,CAAC,OAAO,GAAG,KAAK,CAAC;YAC5B,WAAW,CAAC,MAAM,GAAG,EAAE,CAAC;SACzB;aAAM;YACL,WAAW,CAAC,EAAE,GAAG,KAAK,CAAC;SACxB;QAED,OAAO;YACL,SAAS;YAET,KAAK,CAAC,OAAO,CAAC,SAAqB;gBACjC,IAAA,sBAAW,EAAC,SAAS,CAAC,CAAC;gBACvB,MAAM,EAAE,GAAG,IAAA,6BAAkB,GAAE,CAAC;gBAChC,MAAM,IAAI,GAAG,MAAM,EAAE,CAAC,SAAS,CAAC,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;gBAC1E,MAAM,MAAM,GAAG,MAAM,EAAE,CAAC,OAAO,CAAC,WAAW,EAAE,IAAI,EAAE,SAAS,CAAC,CAAC;gBAC9D,OAAO,IAAI,UAAU,CAAC,MAAM,CAAC,CAAC;YAChC,CAAC;YAED,KAAK,CAAC,OAAO,CAAC,UAAsB;gBAClC,IAAA,sBAAW,EAAC,UAAU,CAAC,CAAC;gBACxB,MAAM,EAAE,GAAG,IAAA,6BAAkB,GAAE,CAAC;gBAChC,MAAM,IAAI,GAAG,MAAM,EAAE,CAAC,SAAS,CAAC,KAAK,EAAE,GAAG,EAAE,SAAS,EAAE,IAAI,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;gBAC1E,MAAM,SAAS,GAAG,MAAM,EAAE,CAAC,OAAO,CAAC,WAAW,EAAE,IAAI,EAAE,UAAU,CAAC,CAAC;gBAClE,OAAO,IAAI,UAAU,CAAC,SAAS,CAAC,CAAC;YACnC,CAAC;SACF,CAAC;IACJ,CAAC,CAAC;AACJ,CAAC;AAEY,QAAA,WAAW,GAAG,QAAQ,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC;AACvC,QAAA,WAAW,GAAG,QAAQ,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC;AAEvC,QAAA,WAAW,GAAG,QAAQ,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC;AACvC,QAAA,WAAW,GAAG,QAAQ,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC;AAEvC,QAAA,WAAW,GAAG,QAAQ,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC;AACvC,QAAA,WAAW,GAAG,QAAQ,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/ciphers/webcrypto/crypto.d.ts b/node_modules/@noble/ciphers/webcrypto/crypto.d.ts deleted file mode 100644 index ac181a02..00000000 --- a/node_modules/@noble/ciphers/webcrypto/crypto.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare const crypto: any; -//# sourceMappingURL=crypto.d.ts.map \ No newline at end of file diff --git a/node_modules/@noble/ciphers/webcrypto/crypto.d.ts.map b/node_modules/@noble/ciphers/webcrypto/crypto.d.ts.map deleted file mode 100644 index 6a9b70da..00000000 --- a/node_modules/@noble/ciphers/webcrypto/crypto.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"crypto.d.ts","sourceRoot":"","sources":["../src/webcrypto/crypto.ts"],"names":[],"mappings":"AAGA,eAAO,MAAM,MAAM,KACuE,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/ciphers/webcrypto/crypto.js b/node_modules/@noble/ciphers/webcrypto/crypto.js deleted file mode 100644 index 8226391f..00000000 --- a/node_modules/@noble/ciphers/webcrypto/crypto.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.crypto = void 0; -exports.crypto = typeof globalThis === 'object' && 'crypto' in globalThis ? globalThis.crypto : undefined; -//# sourceMappingURL=crypto.js.map \ No newline at end of file diff --git a/node_modules/@noble/ciphers/webcrypto/crypto.js.map b/node_modules/@noble/ciphers/webcrypto/crypto.js.map deleted file mode 100644 index 617a40a9..00000000 --- a/node_modules/@noble/ciphers/webcrypto/crypto.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"crypto.js","sourceRoot":"","sources":["../src/webcrypto/crypto.ts"],"names":[],"mappings":";;;AAGa,QAAA,MAAM,GACjB,OAAO,UAAU,KAAK,QAAQ,IAAI,QAAQ,IAAI,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/ciphers/webcrypto/cryptoNode.d.ts b/node_modules/@noble/ciphers/webcrypto/cryptoNode.d.ts deleted file mode 100644 index 98bda7be..00000000 --- a/node_modules/@noble/ciphers/webcrypto/cryptoNode.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare const crypto: any; -//# sourceMappingURL=cryptoNode.d.ts.map \ No newline at end of file diff --git a/node_modules/@noble/ciphers/webcrypto/cryptoNode.d.ts.map b/node_modules/@noble/ciphers/webcrypto/cryptoNode.d.ts.map deleted file mode 100644 index 5168ab8b..00000000 --- a/node_modules/@noble/ciphers/webcrypto/cryptoNode.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"cryptoNode.d.ts","sourceRoot":"","sources":["../src/webcrypto/cryptoNode.ts"],"names":[],"mappings":"AAKA,eAAO,MAAM,MAAM,KACoE,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/ciphers/webcrypto/cryptoNode.js b/node_modules/@noble/ciphers/webcrypto/cryptoNode.js deleted file mode 100644 index a88676d1..00000000 --- a/node_modules/@noble/ciphers/webcrypto/cryptoNode.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.crypto = void 0; -// We use WebCrypto aka globalThis.crypto, which exists in browsers and node.js 16+. -// See utils.ts for details. -// The file will throw on node.js 14 and earlier. -// @ts-ignore -const nc = require("node:crypto"); -exports.crypto = nc && typeof nc === 'object' && 'webcrypto' in nc ? nc.webcrypto : undefined; -//# sourceMappingURL=cryptoNode.js.map \ No newline at end of file diff --git a/node_modules/@noble/ciphers/webcrypto/cryptoNode.js.map b/node_modules/@noble/ciphers/webcrypto/cryptoNode.js.map deleted file mode 100644 index 50c57742..00000000 --- a/node_modules/@noble/ciphers/webcrypto/cryptoNode.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"cryptoNode.js","sourceRoot":"","sources":["../src/webcrypto/cryptoNode.ts"],"names":[],"mappings":";;;AAAA,oFAAoF;AACpF,4BAA4B;AAC5B,iDAAiD;AACjD,aAAa;AACb,kCAAkC;AACrB,QAAA,MAAM,GACjB,EAAE,IAAI,OAAO,EAAE,KAAK,QAAQ,IAAI,WAAW,IAAI,EAAE,CAAC,CAAC,CAAE,EAAE,CAAC,SAAiB,CAAC,CAAC,CAAC,SAAS,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/ciphers/webcrypto/ff1.d.ts b/node_modules/@noble/ciphers/webcrypto/ff1.d.ts deleted file mode 100644 index 8398654f..00000000 --- a/node_modules/@noble/ciphers/webcrypto/ff1.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type { AsyncCipher } from '../utils.js'; -export declare function encryptBlock(msg: Uint8Array, key: Uint8Array): Promise; -export declare function FF1(radix: number, key: Uint8Array, tweak?: Uint8Array): { - encrypt(x: number[]): Promise; - decrypt(x: number[]): Promise; -}; -export declare function BinaryFF1(key: Uint8Array, tweak?: Uint8Array): AsyncCipher; -//# sourceMappingURL=ff1.d.ts.map \ No newline at end of file diff --git a/node_modules/@noble/ciphers/webcrypto/ff1.d.ts.map b/node_modules/@noble/ciphers/webcrypto/ff1.d.ts.map deleted file mode 100644 index b2db5326..00000000 --- a/node_modules/@noble/ciphers/webcrypto/ff1.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ff1.d.ts","sourceRoot":"","sources":["../src/webcrypto/ff1.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,aAAa,CAAC;AAmC/C,wBAAsB,YAAY,CAAC,GAAG,EAAE,UAAU,EAAE,GAAG,EAAE,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC,CAOxF;AAsED,wBAAgB,GAAG,CAAC,KAAK,EAAE,MAAM,EAAE,GAAG,EAAE,UAAU,EAAE,KAAK,GAAE,UAAsB;eAG5D,MAAM,EAAE;eAUR,MAAM,EAAE;EAgB5B;AAqBD,wBAAgB,SAAS,CAAC,GAAG,EAAE,UAAU,EAAE,KAAK,GAAE,UAAsB,GAAG,WAAW,CAMrF"} \ No newline at end of file diff --git a/node_modules/@noble/ciphers/webcrypto/ff1.js b/node_modules/@noble/ciphers/webcrypto/ff1.js deleted file mode 100644 index 985f0e9f..00000000 --- a/node_modules/@noble/ciphers/webcrypto/ff1.js +++ /dev/null @@ -1,177 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.BinaryFF1 = exports.FF1 = exports.encryptBlock = void 0; -const utils_js_1 = require("./utils.js"); -// Format-preserving encryption algorithm (FPE-FF1) specified in NIST Special Publication 800-38G. -// https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-38G.pdf -// Utils -function toBytesBE(num, length) { - let hex = num.toString(16); - hex = hex.length & 1 ? `0${hex}` : hex; - if (length) - hex = hex.padStart(length * 2, '00'); - const len = hex.length / 2; - const u8 = new Uint8Array(len); - for (let j = 0, i = 0; i < hex.length && i < len * 2; i += 2, j++) - u8[j] = parseInt(hex[i] + hex[i + 1], 16); - return u8; -} -function fromBytesBE(bytes) { - let value = 0n; - for (let i = bytes.length - 1, j = 0; i >= 0; i--, j++) - value += (BigInt(bytes[i]) & 255n) << (8n * BigInt(j)); - return value; -} -function mod(a, b) { - const result = a % b; - return result >= 0 ? result : b + result; -} -// AES stuff -const BLOCK_LEN = 16; -const IV = new Uint8Array(BLOCK_LEN); -async function encryptBlock(msg, key) { - if (key.length !== 16 && key.length !== 32) - throw new Error('Invalid key length'); - const cr = (0, utils_js_1.getWebcryptoSubtle)(); - const mode = { name: `AES-CBC`, length: key.length * 8 }; - const wKey = await cr.importKey('raw', key, mode, true, ['encrypt']); - const cipher = await cr.encrypt({ name: `aes-cbc`, iv: IV, counter: IV, length: 64 }, wKey, msg); - return new Uint8Array(cipher).subarray(0, 16); -} -exports.encryptBlock = encryptBlock; -function NUMradix(radix, data) { - let res = 0n; - for (let i of data) - res = res * BigInt(radix) + BigInt(i); - return res; -} -async function getRound(radix, key, tweak, x) { - if (radix > 2 ** 16 - 1) - throw new Error(`Invalid radix: ${radix}`); - // radix**minlen ≥ 100 - const minLen = Math.ceil(Math.log(100) / Math.log(radix)); - const maxLen = 2 ** 32 - 1; - // 2 ≤ minlen ≤ maxlen < 2**32 - if (2 > minLen || minLen > maxLen || maxLen >= 2 ** 32) - throw new Error('Invalid radix: 2 ≤ minlen ≤ maxlen < 2**32'); - if (x.length < minLen || x.length > maxLen) - throw new Error('X is outside minLen..maxLen bounds'); - const u = Math.floor(x.length / 2); - const v = x.length - u; - const b = Math.ceil(Math.ceil(v * Math.log2(radix)) / 8); - const d = 4 * Math.ceil(b / 4) + 4; - const padding = mod(-tweak.length - b - 1, 16); - // P = [1]1 || [2]1 || [1]1 || [radix]3 || [10]1 || [u mod 256]1 || [n]4 || [t]4. - const P = new Uint8Array([1, 2, 1, 0, 0, 0, 10, u, 0, 0, 0, 0, 0, 0, 0, 0]); - const view = new DataView(P.buffer); - view.setUint16(4, radix, false); - view.setUint32(8, x.length, false); - view.setUint32(12, tweak.length, false); - // Q = T || [0](−t−b−1) mod 16 || [i]1 || [NUMradix(B)]b. - const PQ = new Uint8Array(P.length + tweak.length + padding + 1 + b); - PQ.set(P); - P.fill(0); - PQ.set(tweak, P.length); - const round = async (A, B, i, decrypt = false) => { - // Q = ... || [i]1 || [NUMradix(B)]b. - PQ[PQ.length - b - 1] = i; - if (b) - PQ.set(toBytesBE(NUMradix(radix, B), b), PQ.length - b); - // PRF - let r = new Uint8Array(16); - for (let j = 0; j < PQ.length / BLOCK_LEN; j++) { - for (let i = 0; i < BLOCK_LEN; i++) - r[i] ^= PQ[j * BLOCK_LEN + i]; - r.set(await encryptBlock(r, key)); - } - // Let S be the first d bytes of the following string of ⎡d/16⎤ blocks: - // R || CIPHK(R ⊕[1]16) || CIPHK(R ⊕[2]16) ...CIPHK(R ⊕[⎡d / 16⎤ – 1]16). - let s = Array.from(r); - for (let j = 1; s.length < d; j++) { - const block = toBytesBE(BigInt(j), 16); - for (let k = 0; k < BLOCK_LEN; k++) - block[k] ^= r[k]; - s.push(...Array.from(await encryptBlock(block, key))); - } - let y = fromBytesBE(Uint8Array.from(s.slice(0, d))); - s.fill(0); - if (decrypt) - y = -y; - const m = i % 2 === 0 ? u : v; - let c = mod(NUMradix(radix, A) + y, BigInt(radix) ** BigInt(m)); - // STR(radix, m, c) - const C = Array(m).fill(0); - for (let i = 0; i < m; i++, c /= BigInt(radix)) - C[m - 1 - i] = Number(c % BigInt(radix)); - A.fill(0); - A = B; - B = C; - return [A, B]; - }; - const destroy = () => PQ.fill(0); - return { u, round, destroy }; -} -const EMPTY_BUF = new Uint8Array([]); -function FF1(radix, key, tweak = EMPTY_BUF) { - const PQ = getRound.bind(null, radix, key, tweak); - return { - async encrypt(x) { - const { u, round, destroy } = await PQ(x); - let [A, B] = [x.slice(0, u), x.slice(u)]; - for (let i = 0; i < 10; i++) - [A, B] = await round(A, B, i); - destroy(); - const res = A.concat(B); - A.fill(0); - B.fill(0); - return res; - }, - async decrypt(x) { - const { u, round, destroy } = await PQ(x); - // The FF1.Decrypt algorithm is similar to the FF1.Encrypt algorithm; - // the differences are in Step 6, where: - // 1) the order of the indices is reversed, - // 2) the roles of A and B are swapped - // 3) modular addition is replaced by modular subtraction, in Step 6vi. - let [B, A] = [x.slice(0, u), x.slice(u)]; - for (let i = 9; i >= 0; i--) - [A, B] = await round(A, B, i, true); - destroy(); - const res = B.concat(A); - A.fill(0); - B.fill(0); - return res; - }, - }; -} -exports.FF1 = FF1; -// Binary string which encodes each byte in little-endian byte order -const binLE = { - encode(bytes) { - const x = []; - for (let i = 0; i < bytes.length; i++) { - for (let j = 0, tmp = bytes[i]; j < 8; j++, tmp >>= 1) - x.push(tmp & 1); - } - return x; - }, - decode(b) { - if (b.length % 8) - throw new Error('Invalid binary string'); - const res = new Uint8Array(b.length / 8); - for (let i = 0, j = 0; i < res.length; i++) { - res[i] = b[j++] | (b[j++] << 1) | (b[j++] << 2) | (b[j++] << 3); - res[i] |= (b[j++] << 4) | (b[j++] << 5) | (b[j++] << 6) | (b[j++] << 7); - } - return res; - }, -}; -function BinaryFF1(key, tweak = EMPTY_BUF) { - const ff1 = FF1(2, key, tweak); - return { - encrypt: async (x) => binLE.decode(await ff1.encrypt(binLE.encode(x))), - decrypt: async (x) => binLE.decode(await ff1.decrypt(binLE.encode(x))), - }; -} -exports.BinaryFF1 = BinaryFF1; -//# sourceMappingURL=ff1.js.map \ No newline at end of file diff --git a/node_modules/@noble/ciphers/webcrypto/ff1.js.map b/node_modules/@noble/ciphers/webcrypto/ff1.js.map deleted file mode 100644 index 666faa57..00000000 --- a/node_modules/@noble/ciphers/webcrypto/ff1.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ff1.js","sourceRoot":"","sources":["../src/webcrypto/ff1.ts"],"names":[],"mappings":";;;AACA,yCAAgD;AAEhD,kGAAkG;AAClG,4EAA4E;AAE5E,QAAQ;AACR,SAAS,SAAS,CAAC,GAAW,EAAE,MAAe;IAC7C,IAAI,GAAG,GAAG,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC;IAC3B,GAAG,GAAG,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,GAAG,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC;IACvC,IAAI,MAAM;QAAE,GAAG,GAAG,GAAG,CAAC,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE,IAAI,CAAC,CAAC;IACjD,MAAM,GAAG,GAAG,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC;IAC3B,MAAM,EAAE,GAAG,IAAI,UAAU,CAAC,GAAG,CAAC,CAAC;IAC/B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,IAAI,CAAC,GAAG,GAAG,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE;QAC/D,EAAE,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IAC5C,OAAO,EAAE,CAAC;AACZ,CAAC;AAED,SAAS,WAAW,CAAC,KAAiB;IACpC,IAAI,KAAK,GAAG,EAAE,CAAC;IACf,KAAK,IAAI,CAAC,GAAG,KAAK,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,EAAE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AAC,EAAE,EAAE;YAC1C,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;YAChE,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,CAAC,CAAC;SACzE;QACD,OAAO,GAAG,CAAC;IACb,CAAC;CACF,CAAC;AAEF,SAAgB,SAAS,CAAC,GAAe,EAAE,QAAoB,SAAS;IACtE,MAAM,GAAG,GAAG,GAAG,CAAC,CAAC,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC;IAC/B,OAAO;QACL,OAAO,EAAE,KAAK,EAAE,CAAa,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;QAClF,OAAO,EAAE,KAAK,EAAE,CAAa,EAAE,EAAE,CAAC,KAAK,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,OAAO,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;KACnF,CAAC;AACJ,CAAC;AAND,8BAMC"} \ No newline at end of file diff --git a/node_modules/@noble/ciphers/webcrypto/siv.d.ts b/node_modules/@noble/ciphers/webcrypto/siv.d.ts deleted file mode 100644 index d84556ae..00000000 --- a/node_modules/@noble/ciphers/webcrypto/siv.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { AsyncCipher } from '../utils.js'; -export declare function deriveKeys(key: Uint8Array, nonce: Uint8Array): Promise<{ - authKey: Uint8Array; - encKey: Uint8Array; -}>; -export declare function aes_256_gcm_siv(key: Uint8Array, nonce: Uint8Array, AAD: Uint8Array): Promise; -//# sourceMappingURL=siv.d.ts.map \ No newline at end of file diff --git a/node_modules/@noble/ciphers/webcrypto/siv.d.ts.map b/node_modules/@noble/ciphers/webcrypto/siv.d.ts.map deleted file mode 100644 index a67bd8ff..00000000 --- a/node_modules/@noble/ciphers/webcrypto/siv.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"siv.d.ts","sourceRoot":"","sources":["../src/webcrypto/siv.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,WAAW,EAA4B,MAAM,aAAa,CAAC;AA0DpE,wBAAsB,UAAU,CAAC,GAAG,EAAE,UAAU,EAAE,KAAK,EAAE,UAAU;;;GAmBlE;AAED,wBAAsB,eAAe,CACnC,GAAG,EAAE,UAAU,EACf,KAAK,EAAE,UAAU,EACjB,GAAG,EAAE,UAAU,GACd,OAAO,CAAC,WAAW,CAAC,CAyCtB"} \ No newline at end of file diff --git a/node_modules/@noble/ciphers/webcrypto/siv.js b/node_modules/@noble/ciphers/webcrypto/siv.js deleted file mode 100644 index 8be16e99..00000000 --- a/node_modules/@noble/ciphers/webcrypto/siv.js +++ /dev/null @@ -1,127 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.aes_256_gcm_siv = exports.deriveKeys = void 0; -const utils_js_1 = require("../utils.js"); -const _polyval_js_1 = require("../_polyval.js"); -const utils_js_2 = require("./utils.js"); -/** - * AES-GCM-SIV: classic AES-GCM with nonce-misuse resistance. - * RFC 8452, https://datatracker.ietf.org/doc/html/rfc8452 - */ -// AES stuff (same as ff1) -const BLOCK_LEN = 16; -const IV = new Uint8Array(BLOCK_LEN); -async function encryptBlock(msg, key) { - if (key.length !== 16 && key.length !== 32) - throw new Error('Invalid key length'); - const mode = { name: `AES-CBC`, length: key.length * 8 }; - const cr = (0, utils_js_2.getWebcryptoSubtle)(); - const wKey = await cr.importKey('raw', key, mode, true, ['encrypt']); - const cipher = await cr.encrypt({ name: `aes-cbc`, iv: IV, counter: IV, length: 64 }, wKey, msg); - return new Uint8Array(cipher).subarray(0, 16); -} -// Kinda constant-time equality -function equalBytes(a, b) { - // Should not happen - if (a.length !== b.length) - throw new Error('equalBytes: Different size of Uint8Arrays'); - let flag = true; - for (let i = 0; i < a.length; i++) - if (a[i] !== b[i]) - flag && (flag = false); - return flag; -} -// Wrap position so it will be in padded to blockSize -const wrapPos = (pos, blockSize) => Math.ceil(pos / blockSize) * blockSize; -const limit = (name, min, max) => (value) => { - if (!Number.isSafeInteger(value) || min > value || value > max) - throw new Error(`${name}: invalid value=${value}, must be [${min}..${max}]`); -}; -// From RFC 8452: Section 6 -const AAD_LIMIT = limit('AAD', 0, 2 ** 36); -const PLAIN_LIMIT = limit('Plaintext', 0, 2 ** 36); -const NONCE_LIMIT = limit('Nonce', 12, 12); -const CIPHER_LIMIT = limit('Ciphertext', 16, 2 ** 36 + 16); -// nodejs api doesn't support 32bit counters, browser does -async function ctr(key, tag, input) { - // The initial counter block is the tag with the most significant bit of the last byte set to one. - let block = tag.slice(); - block[15] |= 0x80; - let view = (0, utils_js_1.createView)(block); - let output = new Uint8Array(input.length); - for (let pos = 0; pos < input.length;) { - const encryptedBlock = await encryptBlock(block, key); - view.setUint32(0, view.getUint32(0, true) + 1, true); - const take = Math.min(input.length, encryptedBlock.length); - for (let j = 0; j < take; j++, pos++) - output[pos] = encryptedBlock[j] ^ input[pos]; - } - return new Uint8Array(output); -} -async function deriveKeys(key, nonce) { - NONCE_LIMIT(nonce.length); - const len = key.length; - if (len !== 16 && len !== 32) - throw new Error(`key length must be 16 or 32 bytes, got: ${len} bytes`); - const encKey = new Uint8Array(len); - const authKey = new Uint8Array(16); - let counter = 0; - const deriveBlock = new Uint8Array(nonce.length + 4); - deriveBlock.set(nonce, 4); - const view = (0, utils_js_1.createView)(deriveBlock); - for (const derivedKey of [authKey, encKey]) { - for (let i = 0; i < derivedKey.length; i += 8) { - view.setUint32(0, counter++, true); - const block = await encryptBlock(deriveBlock, key); - derivedKey.set(block.subarray(0, 8), i); - } - } - return { authKey, encKey }; -} -exports.deriveKeys = deriveKeys; -async function aes_256_gcm_siv(key, nonce, AAD) { - const { encKey, authKey } = await deriveKeys(key, nonce); - const computeTag = async (data, AAD) => { - const dataPos = wrapPos(AAD.length, 16); - const lenPos = wrapPos(dataPos + data.length, 16); - const block = new Uint8Array(lenPos + 16); - const view = (0, utils_js_1.createView)(block); - block.set(AAD); - block.set(data, dataPos); - (0, utils_js_1.setBigUint64)(view, lenPos, BigInt(AAD.length * 8), true); - (0, utils_js_1.setBigUint64)(view, lenPos + 8, BigInt(data.length * 8), true); - // Compute the expected tag by XORing S_s and the nonce, clearing the - // most significant bit of the last byte and encrypting with the - // message-encryption key. - const tag = (0, _polyval_js_1.polyval)(authKey, block); - for (let i = 0; i < 12; i++) - tag[i] ^= nonce[i]; - // Clear the highest bit - tag[15] &= 0x7f; - return await encryptBlock(tag, encKey); - }; - return { - // computeTag, - encrypt: async (plaintext) => { - AAD_LIMIT(AAD.length); - PLAIN_LIMIT(plaintext.length); - const tag = await computeTag(plaintext, AAD); - const out = new Uint8Array(plaintext.length + 16); - out.set(tag, plaintext.length); - out.set(await ctr(encKey, tag, plaintext)); - return out; - }, - decrypt: async (ciphertext) => { - CIPHER_LIMIT(ciphertext.length); - AAD_LIMIT(AAD.length); - const tag = ciphertext.subarray(-16); - const plaintext = await ctr(encKey, tag, ciphertext.subarray(0, -16)); - const expectedTag = await computeTag(plaintext, AAD); - if (!equalBytes(tag, expectedTag)) - throw new Error('invalid poly1305 tag'); - return plaintext; - }, - }; -} -exports.aes_256_gcm_siv = aes_256_gcm_siv; -//# sourceMappingURL=siv.js.map \ No newline at end of file diff --git a/node_modules/@noble/ciphers/webcrypto/siv.js.map b/node_modules/@noble/ciphers/webcrypto/siv.js.map deleted file mode 100644 index 6c399b95..00000000 --- a/node_modules/@noble/ciphers/webcrypto/siv.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"siv.js","sourceRoot":"","sources":["../src/webcrypto/siv.ts"],"names":[],"mappings":";;;AAAA,0CAAoE;AACpE,gDAAyC;AACzC,yCAAgD;AAChD;;;GAGG;AAEH,0BAA0B;AAC1B,MAAM,SAAS,GAAG,EAAE,CAAC;AACrB,MAAM,EAAE,GAAG,IAAI,UAAU,CAAC,SAAS,CAAC,CAAC;AACrC,KAAK,UAAU,YAAY,CAAC,GAAe,EAAE,GAAe;IAC1D,IAAI,GAAG,CAAC,MAAM,KAAK,EAAE,IAAI,GAAG,CAAC,MAAM,KAAK,EAAE;QAAE,MAAM,IAAI,KAAK,CAAC,oBAAoB,CAAC,CAAC;IAClF,MAAM,IAAI,GAAG,EAAE,IAAI,EAAE,SAAS,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;IACzD,MAAM,EAAE,GAAG,IAAA,6BAAkB,GAAE,CAAC;IAChC,MAAM,IAAI,GAAG,MAAM,EAAE,CAAC,SAAS,CAAC,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC,SAAS,CAAC,CAAC,CAAC;IACrE,MAAM,MAAM,GAAG,MAAM,EAAE,CAAC,OAAO,CAAC,EAAE,IAAI,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,EAAE,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,CAAC,CAAC;IACjG,OAAO,IAAI,UAAU,CAAC,MAAM,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;AAChD,CAAC;AAED,+BAA+B;AAC/B,SAAS,UAAU,CAAC,CAAa,EAAE,CAAa;IAC9C,oBAAoB;IACpB,IAA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AAG,EAAE,CAAC,CAAC;YAClD,GAAG,CAAC,GAAG,CAAC,GAAG,EAAE,SAAS,CAAC,MAAM,CAAC,CAAC;YAC/B,GAAG,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,MAAM,EAAE,GAAG,EAAE,SAAS,CAAC,CAAC,CAAC;YAC3C,OAAO,GAAG,CAAC;QACb,CAAC;QACD,OAAO,EAAE,KAAK,EAAE,UAAsB,EAAE,EAAE;YACxC,YAAY,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;YAChC,SAAS,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;YACtB,MAAM,GAAG,GAAG,UAAU,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC;YACrC,MAAM,SAAS,GAAG,MAAM,GAAG,CAAC,MAAM,EAAE,GAAG,EAAE,UAAU,CAAC,QAAQ,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;YACtE,MAAM,WAAW,GAAG,MAAM,UAAU,CAAC,SAAS,EAAE,GAAG,CAAC,CAAC;YACrD,IAAI,CAAC,UAAU,CAAC,GAAG,EAAE,WAAW,CAAC;gBAAE,MAAM,IAAI,KAAK,CAAC,sBAAsB,CAAC,CAAC;YAC3E,OAAO,SAAS,CAAC;QACnB,CAAC;KACF,CAAC;AACJ,CAAC;AA7CD,0CA6CC"} \ No newline at end of file diff --git a/node_modules/@noble/ciphers/webcrypto/utils.d.ts b/node_modules/@noble/ciphers/webcrypto/utils.d.ts deleted file mode 100644 index 96ebf1c9..00000000 --- a/node_modules/@noble/ciphers/webcrypto/utils.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -/** - * Secure PRNG. Uses `crypto.getRandomValues`, which defers to OS. - */ -export declare function randomBytes(bytesLength?: number): Uint8Array; -export declare function getWebcryptoSubtle(): any; -//# sourceMappingURL=utils.d.ts.map \ No newline at end of file diff --git a/node_modules/@noble/ciphers/webcrypto/utils.d.ts.map b/node_modules/@noble/ciphers/webcrypto/utils.d.ts.map deleted file mode 100644 index a6abe7d0..00000000 --- a/node_modules/@noble/ciphers/webcrypto/utils.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/webcrypto/utils.ts"],"names":[],"mappings":"AAQA;;GAEG;AACH,wBAAgB,WAAW,CAAC,WAAW,SAAK,GAAG,UAAU,CAKxD;AAED,wBAAgB,kBAAkB,QAKjC"} \ No newline at end of file diff --git a/node_modules/@noble/ciphers/webcrypto/utils.js b/node_modules/@noble/ciphers/webcrypto/utils.js deleted file mode 100644 index a6c14236..00000000 --- a/node_modules/@noble/ciphers/webcrypto/utils.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getWebcryptoSubtle = exports.randomBytes = void 0; -// We use WebCrypto aka globalThis.crypto, which exists in browsers and node.js 16+. -// node.js versions earlier than v19 don't declare it in global scope. -// For node.js, package.js on#exports field mapping rewrites import -// from `crypto` to `cryptoNode`, which imports native module. -// Makes the utils un-importable in browsers without a bundler. -// Once node.js 18 is deprecated, we can just drop the import. -const crypto_1 = require("@noble/ciphers/webcrypto/crypto"); -/** - * Secure PRNG. Uses `crypto.getRandomValues`, which defers to OS. - */ -function randomBytes(bytesLength = 32) { - if (crypto_1.crypto && typeof crypto_1.crypto.getRandomValues === 'function') { - return crypto_1.crypto.getRandomValues(new Uint8Array(bytesLength)); - } - throw new Error('crypto.getRandomValues must be defined'); -} -exports.randomBytes = randomBytes; -function getWebcryptoSubtle() { - if (crypto_1.crypto && typeof crypto_1.crypto.subtle === 'object' && crypto_1.crypto.subtle != null) { - return crypto_1.crypto.subtle; - } - throw new Error('crypto.subtle must be defined'); -} -exports.getWebcryptoSubtle = getWebcryptoSubtle; -//# sourceMappingURL=utils.js.map \ No newline at end of file diff --git a/node_modules/@noble/ciphers/webcrypto/utils.js.map b/node_modules/@noble/ciphers/webcrypto/utils.js.map deleted file mode 100644 index 2e14adf1..00000000 --- a/node_modules/@noble/ciphers/webcrypto/utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/webcrypto/utils.ts"],"names":[],"mappings":";;;AAAA,oFAAoF;AACpF,sEAAsE;AACtE,mEAAmE;AACnE,8DAA8D;AAC9D,+DAA+D;AAC/D,8DAA8D;AAC9D,4DAAyD;AAEzD;;GAEG;AACH,SAAgB,WAAW,CAAC,WAAW,GAAG,EAAE;IAC1C,IAAI,eAAM,IAAI,OAAO,eAAM,CAAC,eAAe,KAAK,UAAU,EAAE;QAC1D,OAAO,eAAM,CAAC,eAAe,CAAC,IAAI,UAAU,CAAC,WAAW,CAAC,CAAC,CAAC;KAC5D;IACD,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;AAC5D,CAAC;AALD,kCAKC;AAED,SAAgB,kBAAkB;IAChC,IAAI,eAAM,IAAI,OAAO,eAAM,CAAC,MAAM,KAAK,QAAQ,IAAI,eAAM,CAAC,MAAM,IAAI,IAAI,EAAE;QACxE,OAAO,eAAM,CAAC,MAAM,CAAC;KACtB;IACD,MAAM,IAAI,KAAK,CAAC,+BAA+B,CAAC,CAAC;AACnD,CAAC;AALD,gDAKC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/LICENSE b/node_modules/@noble/curves/LICENSE deleted file mode 100644 index 9297a046..00000000 --- a/node_modules/@noble/curves/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2022 Paul Miller (https://paulmillr.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the “Software”), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. \ No newline at end of file diff --git a/node_modules/@noble/curves/README.md b/node_modules/@noble/curves/README.md deleted file mode 100644 index a5d14f46..00000000 --- a/node_modules/@noble/curves/README.md +++ /dev/null @@ -1,971 +0,0 @@ -# noble-curves - -Audited & minimal JS implementation of elliptic curve cryptography. - -- 🔒 [**Audited**](#security) by an independent security firm -- 🔻 Tree-shaking-friendly: use only what's necessary, other code won't be included -- 🏎 Ultra-fast, hand-optimized for caveats of JS engines -- 🔍 Unique tests ensure correctness: property-based, cross-library and Wycheproof vectors, fuzzing -- ➰ Short Weierstrass, Edwards, Montgomery curves -- ✍️ ECDSA, EdDSA, Schnorr, BLS signature schemes, ECDH key agreement -- 🔖 SUF-CMA and SBS (non-repudiation) for ed25519, ed448 and others -- #️⃣ Hash-to-curve - for encoding or hashing an arbitrary string to an elliptic curve point -- 🧜‍♂️ Poseidon ZK-friendly hash - -Check out [Upgrading](#upgrading) if you've previously used single-feature noble -packages. See [Resources](#resources) for articles and real-world software that uses curves. - -### This library belongs to _noble_ crypto - -> **noble-crypto** — high-security, easily auditable set of contained cryptographic libraries and tools. - -- No dependencies, protection against supply chain attacks -- Auditable TypeScript / JS code -- Supported in all major browsers and stable node.js versions -- All releases are signed with PGP keys -- Check out [homepage](https://paulmillr.com/noble/) & all libraries: - [curves](https://github.com/paulmillr/noble-curves) - (4kb versions [secp256k1](https://github.com/paulmillr/noble-secp256k1), - [ed25519](https://github.com/paulmillr/noble-ed25519)), - [hashes](https://github.com/paulmillr/noble-hashes) - -## Usage - -> npm install @noble/curves - -We support all major platforms and runtimes. -For [Deno](https://deno.land), ensure to use [npm specifier](https://deno.land/manual@v1.28.0/node/npm_specifiers). -For React Native, you may need a [polyfill for crypto.getRandomValues](https://github.com/LinusU/react-native-get-random-values). -If you don't like NPM, a standalone [noble-curves.js](https://github.com/paulmillr/noble-curves/releases) is also available. - -The library is tree-shaking-friendly and does not expose root entry point as -`@noble/curves`. Instead, you need to import specific primitives. -This is done to ensure small size of your apps. - -The package consists of two parts: - -* [Implementations](#implementations), utilizing one dependency [noble-hashes](https://github.com/paulmillr/noble-hashes), - providing ready-to-use: - - NIST curves secp256r1 / p256, secp384r1 / p384, secp521r1 / p521 - - SECG curve secp256k1 - - ed25519 / curve25519 / x25519 / ristretto255, edwards448 / curve448 / x448 - - pairing-friendly curves bls12-381, bn254 - - [pasta](https://electriccoin.co/blog/the-pasta-curves-for-halo-2-and-beyond/) curves -2. [Abstract](#abstract-api), zero-dependency elliptic curve algorithms - -### Implementations - -#### Generic example for all curves, secp256k1 - -```ts -// Each curve has similar methods -import { secp256k1 } from '@noble/curves/secp256k1'; // ESM and Common.js -// import { secp256k1 } from 'npm:@noble/curves@1.2.0/secp256k1'; // Deno -const priv = secp256k1.utils.randomPrivateKey(); -const pub = secp256k1.getPublicKey(priv); -const msg = new Uint8Array(32).fill(1); -const sig = secp256k1.sign(msg, priv); -const isValid = secp256k1.verify(sig, msg, pub) === true; - -// hex strings are also supported besides Uint8Arrays: -const privHex = '46c930bc7bb4db7f55da20798697421b98c4175a52c630294d75a84b9c126236'; -const pub2 = secp256k1.getPublicKey(privHex); -``` - -#### All imports - -```typescript -import { secp256k1, schnorr } from '@noble/curves/secp256k1'; -import { ed25519, ed25519ph, ed25519ctx, x25519, RistrettoPoint } from '@noble/curves/ed25519'; -import { ed448, ed448ph, ed448ctx, x448 } from '@noble/curves/ed448'; -import { p256 } from '@noble/curves/p256'; -import { p384 } from '@noble/curves/p384'; -import { p521 } from '@noble/curves/p521'; -import { pallas, vesta } from '@noble/curves/pasta'; -import { bls12_381 } from '@noble/curves/bls12-381'; -import { bn254 } from '@noble/curves/bn254'; -import { jubjub } from '@noble/curves/jubjub'; -``` - -#### ECDSA public key recovery & ECDH - -```ts -// extraEntropy https://moderncrypto.org/mail-archive/curves/2017/000925.html -const sigImprovedSecurity = secp256k1.sign(msg, priv, { extraEntropy: true }); -sig.recoverPublicKey(msg) === pub; // public key recovery -const someonesPub = secp256k1.getPublicKey(secp256k1.utils.randomPrivateKey()); -const shared = secp256k1.getSharedSecret(priv, someonesPub); // ECDH -``` - -#### Schnorr signatures over secp256k1 (BIP340) - -```ts -import { schnorr } from '@noble/curves/secp256k1'; -const priv = schnorr.utils.randomPrivateKey(); -const pub = schnorr.getPublicKey(priv); -const msg = new TextEncoder().encode('hello'); -const sig = schnorr.sign(msg, priv); -const isValid = schnorr.verify(sig, msg, pub); -``` - -#### ed25519, X25519, ristretto255 - -```ts -import { ed25519 } from '@noble/curves/ed25519'; -const priv = ed25519.utils.randomPrivateKey(); -const pub = ed25519.getPublicKey(priv); -const msg = new TextEncoder().encode('hello'); -const sig = ed25519.sign(msg, priv); -ed25519.verify(sig, msg, pub); // Default mode: follows ZIP215 -ed25519.verify(sig, msg, pub, { zip215: false }); // RFC8032 / FIPS 186-5 -``` - -Default `verify` behavior follows [ZIP215](https://zips.z.cash/zip-0215) and -[can be used in consensus-critical applications](https://hdevalence.ca/blog/2020-10-04-its-25519am). -It has SUF-CMA (strong unforgeability under chosen message attacks). -`zip215: false` option switches verification criteria to strict -[RFC8032](https://www.rfc-editor.org/rfc/rfc8032) / [FIPS 186-5](https://csrc.nist.gov/publications/detail/fips/186/5/final) -and additionally provides non-repudiation with SBS [(Strongly Binding Signatures)](https://eprint.iacr.org/2020/1244). - -X25519 follows [RFC7748](https://www.rfc-editor.org/rfc/rfc7748). -ristretto255 follows [irtf draft](https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-ristretto255-decaf448). - -```ts -// Variants from RFC8032: with context, prehashed -import { ed25519ctx, ed25519ph } from '@noble/curves/ed25519'; - -// ECDH using curve25519 aka x25519 -import { x25519 } from '@noble/curves/ed25519'; -const priv = 'a546e36bf0527c9d3b16154b82465edd62144c0ac1fc5a18506a2244ba449ac4'; -const pub = 'e6db6867583030db3594c1a424b15f7c726624ec26b3353b10a903a6d0ab1c4c'; -x25519.getSharedSecret(priv, pub) === x25519.scalarMult(priv, pub); // aliases -x25519.getPublicKey(priv) === x25519.scalarMultBase(priv); -x25519.getPublicKey(x25519.utils.randomPrivateKey()); - -// ed25519 => x25519 conversion -import { edwardsToMontgomeryPub, edwardsToMontgomeryPriv } from '@noble/curves/ed25519'; -edwardsToMontgomeryPub(ed25519.getPublicKey(ed25519.utils.randomPrivateKey())); -edwardsToMontgomeryPriv(ed25519.utils.randomPrivateKey()); - -// hash-to-curve, ristretto255 -import { hashToCurve, encodeToCurve, RistrettoPoint } from '@noble/curves/ed25519'; -const rp = RistrettoPoint.fromHex( - '6a493210f7499cd17fecb510ae0cea23a110e8d5b901f8acadd3095c73a3b919' -); -RistrettoPoint.hashToCurve('Ristretto is traditionally a short shot of espresso coffee'); -// also has add(), equals(), multiply(), toRawBytes() methods -``` - -#### ed448, X448 - -```ts -import { ed448 } from '@noble/curves/ed448'; -const priv = ed448.utils.randomPrivateKey(); -const pub = ed448.getPublicKey(priv); -const msg = new TextEncoder().encode('whatsup'); -const sig = ed448.sign(msg, priv); -ed448.verify(sig, msg, pub); - -import { ed448ph, ed448ctx, x448, hashToCurve, encodeToCurve } from '@noble/curves/ed448'; -x448.getSharedSecret(priv, pub) === x448.scalarMult(priv, pub); // aliases -x448.getPublicKey(priv) === x448.scalarMultBase(priv); -``` - -Same RFC7748 / RFC8032 are followed. - -#### bls12-381 - -See [abstract/bls](#abstractbls-barreto-lynn-scott-curves). - -#### Accessing a curve's variables - -```ts -import { secp256k1 } from '@noble/curves/secp256k1'; -// Every curve has `CURVE` object that contains its parameters, field, and others -console.log(secp256k1.CURVE.p); // field modulus -console.log(secp256k1.CURVE.n); // curve order -console.log(secp256k1.CURVE.a, secp256k1.CURVE.b); // equation params -console.log(secp256k1.CURVE.Gx, secp256k1.CURVE.Gy); // base point coordinates -``` - -## Abstract API - -Abstract API allows to define custom curves. All arithmetics is done with JS -bigints over finite fields, which is defined from `modular` sub-module. For -scalar multiplication, we use -[precomputed tables with w-ary non-adjacent form (wNAF)](https://paulmillr.com/posts/noble-secp256k1-fast-ecc/). -Precomputes are enabled for weierstrass and edwards BASE points of a curve. You -could precompute any other point (e.g. for ECDH) using `utils.precompute()` -method: check out examples. - -There are following zero-dependency algorithms: - -- [abstract/weierstrass: Short Weierstrass curve](#abstractweierstrass-short-weierstrass-curve) -- [abstract/edwards: Twisted Edwards curve](#abstractedwards-twisted-edwards-curve) -- [abstract/montgomery: Montgomery curve](#abstractmontgomery-montgomery-curve) -- [abstract/bls: Barreto-Lynn-Scott curves](#abstractbls-barreto-lynn-scott-curves) -- [abstract/hash-to-curve: Hashing strings to curve points](#abstracthash-to-curve-hashing-strings-to-curve-points) -- [abstract/poseidon: Poseidon hash](#abstractposeidon-poseidon-hash) -- [abstract/modular: Modular arithmetics utilities](#abstractmodular-modular-arithmetics-utilities) -- [abstract/utils: General utilities](#abstractutils-general-utilities) - -### abstract/weierstrass: Short Weierstrass curve - -```ts -import { weierstrass } from '@noble/curves/abstract/weierstrass'; -import { Field } from '@noble/curves/abstract/modular'; // finite field for mod arithmetics -import { sha256 } from '@noble/hashes/sha256'; // 3rd-party sha256() of type utils.CHash -import { hmac } from '@noble/hashes/hmac'; // 3rd-party hmac() that will accept sha256() -import { concatBytes, randomBytes } from '@noble/hashes/utils'; // 3rd-party utilities -const secq256k1 = weierstrass({ - // secq256k1: cycle of secp256k1 with Fp/N flipped. - // https://personaelabs.org/posts/spartan-ecdsa - // https://zcash.github.io/halo2/background/curves.html#cycles-of-curves - a: 0n, - b: 7n, - Fp: Field(2n ** 256n - 432420386565659656852420866394968145599n), - n: 2n ** 256n - 2n ** 32n - 2n ** 9n - 2n ** 8n - 2n ** 7n - 2n ** 6n - 2n ** 4n - 1n, - Gx: 55066263022277343669578718895168534326250603453777594175500187360389116729240n, - Gy: 32670510020758816978083085130507043184471273380659243275938904335757337482424n, - hash: sha256, - hmac: (key: Uint8Array, ...msgs: Uint8Array[]) => hmac(sha256, key, concatBytes(...msgs)), - randomBytes, -}); - -// Replace weierstrass with weierstrassPoints if you don't need ECDSA, hash, hmac, randomBytes -``` - -Short Weierstrass curve's formula is `y² = x³ + ax + b`. `weierstrass` -expects arguments `a`, `b`, field `Fp`, curve order `n`, cofactor `h` -and coordinates `Gx`, `Gy` of generator point. - -**`k` generation** is done deterministically, following -[RFC6979](https://www.rfc-editor.org/rfc/rfc6979). For this you will need -`hmac` & `hash`, which in our implementations is provided by noble-hashes. If -you're using different hashing library, make sure to wrap it in the following interface: - -```ts -type CHash = { - (message: Uint8Array): Uint8Array; - blockLen: number; - outputLen: number; - create(): any; -}; -``` - -**Weierstrass points:** - -1. Exported as `ProjectivePoint` -2. Represented in projective (homogeneous) coordinates: (x, y, z) ∋ (x=x/z, y=y/z) -3. Use complete exception-free formulas for addition and doubling -4. Can be decoded/encoded from/to Uint8Array / hex strings using - `ProjectivePoint.fromHex` and `ProjectivePoint#toRawBytes()` -5. Have `assertValidity()` which checks for being on-curve -6. Have `toAffine()` and `x` / `y` getters which convert to 2d xy affine coordinates - -```ts -// `weierstrassPoints()` returns `CURVE` and `ProjectivePoint` -// `weierstrass()` returns `CurveFn` -type SignOpts = { lowS?: boolean; prehash?: boolean; extraEntropy: boolean | Uint8Array }; -type CurveFn = { - CURVE: ReturnType; - getPublicKey: (privateKey: PrivKey, isCompressed?: boolean) => Uint8Array; - getSharedSecret: (privateA: PrivKey, publicB: Hex, isCompressed?: boolean) => Uint8Array; - sign: (msgHash: Hex, privKey: PrivKey, opts?: SignOpts) => SignatureType; - verify: ( - signature: Hex | SignatureType, - msgHash: Hex, - publicKey: Hex, - opts?: { lowS?: boolean; prehash?: boolean } - ) => boolean; - ProjectivePoint: ProjectivePointConstructor; - Signature: SignatureConstructor; - utils: { - normPrivateKeyToScalar: (key: PrivKey) => bigint; - isValidPrivateKey(key: PrivKey): boolean; - randomPrivateKey: () => Uint8Array; - precompute: (windowSize?: number, point?: ProjPointType) => ProjPointType; - }; -}; - -// T is usually bigint, but can be something else like complex numbers in BLS curves -interface ProjPointType extends Group> { - readonly px: T; - readonly py: T; - readonly pz: T; - get x(): bigint; - get y(): bigint; - multiply(scalar: bigint): ProjPointType; - multiplyUnsafe(scalar: bigint): ProjPointType; - multiplyAndAddUnsafe(Q: ProjPointType, a: bigint, b: bigint): ProjPointType | undefined; - toAffine(iz?: T): AffinePoint; - isTorsionFree(): boolean; - clearCofactor(): ProjPointType; - assertValidity(): void; - hasEvenY(): boolean; - toRawBytes(isCompressed?: boolean): Uint8Array; - toHex(isCompressed?: boolean): string; -} -// Static methods for 3d XYZ points -interface ProjConstructor extends GroupConstructor> { - new (x: T, y: T, z: T): ProjPointType; - fromAffine(p: AffinePoint): ProjPointType; - fromHex(hex: Hex): ProjPointType; - fromPrivateKey(privateKey: PrivKey): ProjPointType; -} -``` - -**ECDSA signatures** are represented by `Signature` instances and can be -described by the interface: - -```ts -interface SignatureType { - readonly r: bigint; - readonly s: bigint; - readonly recovery?: number; - assertValidity(): void; - addRecoveryBit(recovery: number): SignatureType; - hasHighS(): boolean; - normalizeS(): SignatureType; - recoverPublicKey(msgHash: Hex): ProjPointType; - toCompactRawBytes(): Uint8Array; - toCompactHex(): string; - // DER-encoded - toDERRawBytes(): Uint8Array; - toDERHex(): string; -} -type SignatureConstructor = { - new (r: bigint, s: bigint): SignatureType; - fromCompact(hex: Hex): SignatureType; - fromDER(hex: Hex): SignatureType; -}; -``` - -More examples: - -```typescript -// All curves expose same generic interface. -const priv = secq256k1.utils.randomPrivateKey(); -secq256k1.getPublicKey(priv); // Convert private key to public. -const sig = secq256k1.sign(msg, priv); // Sign msg with private key. -secq256k1.verify(sig, msg, priv); // Verify if sig is correct. - -const Point = secq256k1.ProjectivePoint; -const point = Point.BASE; // Elliptic curve Point class and BASE point static var. -point.add(point).equals(point.double()); // add(), equals(), double() methods -point.subtract(point).equals(Point.ZERO); // subtract() method, ZERO static var -point.negate(); // Flips point over x/y coordinate. -point.multiply(31415n); // Multiplication of Point by scalar. - -point.assertValidity(); // Checks for being on-curve -point.toAffine(); // Converts to 2d affine xy coordinates - -secq256k1.CURVE.n; -secq256k1.CURVE.p; -secq256k1.CURVE.Fp.mod(); -secq256k1.CURVE.hash(); - -// precomputes -const fast = secq256k1.utils.precompute(8, Point.fromHex(someonesPubKey)); -fast.multiply(privKey); // much faster ECDH now -``` - -### abstract/edwards: Twisted Edwards curve - -```ts -import { twistedEdwards } from '@noble/curves/abstract/edwards'; -import { Field } from '@noble/curves/abstract/modular'; -import { sha512 } from '@noble/hashes/sha512'; -import { randomBytes } from '@noble/hashes/utils'; - -const Fp = Field(2n ** 255n - 19n); -const ed25519 = twistedEdwards({ - a: Fp.create(-1n), - d: Fp.div(-121665n, 121666n), // -121665n/121666n mod p - Fp: Fp, - n: 2n ** 252n + 27742317777372353535851937790883648493n, - h: 8n, - Gx: 15112221349535400772501151409588531511454012693041857206046113283949847762202n, - Gy: 46316835694926478169428394003475163141307993866256225615783033603165251855960n, - hash: sha512, - randomBytes, - adjustScalarBytes(bytes) { - // optional; but mandatory in ed25519 - bytes[0] &= 248; - bytes[31] &= 127; - bytes[31] |= 64; - return bytes; - }, -} as const); -``` - -Twisted Edwards curve's formula is `ax² + y² = 1 + dx²y²`. You must specify `a`, `d`, field `Fp`, order `n`, cofactor `h` -and coordinates `Gx`, `Gy` of generator point. - -For EdDSA signatures, `hash` param required. `adjustScalarBytes` which instructs how to change private scalars could be specified. - -**Edwards points:** - -1. Exported as `ExtendedPoint` -2. Represented in extended coordinates: (x, y, z, t) ∋ (x=x/z, y=y/z) -3. Use complete exception-free formulas for addition and doubling -4. Can be decoded/encoded from/to Uint8Array / hex strings using `ExtendedPoint.fromHex` and `ExtendedPoint#toRawBytes()` -5. Have `assertValidity()` which checks for being on-curve -6. Have `toAffine()` and `x` / `y` getters which convert to 2d xy affine coordinates -7. Have `isTorsionFree()`, `clearCofactor()` and `isSmallOrder()` utilities to handle torsions - -```ts -// `twistedEdwards()` returns `CurveFn` of following type: -type CurveFn = { - CURVE: ReturnType; - getPublicKey: (privateKey: Hex) => Uint8Array; - sign: (message: Hex, privateKey: Hex, context?: Hex) => Uint8Array; - verify: (sig: SigType, message: Hex, publicKey: Hex, context?: Hex) => boolean; - ExtendedPoint: ExtPointConstructor; - utils: { - randomPrivateKey: () => Uint8Array; - getExtendedPublicKey: (key: PrivKey) => { - head: Uint8Array; - prefix: Uint8Array; - scalar: bigint; - point: PointType; - pointBytes: Uint8Array; - }; - }; -}; - -interface ExtPointType extends Group { - readonly ex: bigint; - readonly ey: bigint; - readonly ez: bigint; - readonly et: bigint; - get x(): bigint; - get y(): bigint; - assertValidity(): void; - multiply(scalar: bigint): ExtPointType; - multiplyUnsafe(scalar: bigint): ExtPointType; - isSmallOrder(): boolean; - isTorsionFree(): boolean; - clearCofactor(): ExtPointType; - toAffine(iz?: bigint): AffinePoint; - toRawBytes(isCompressed?: boolean): Uint8Array; - toHex(isCompressed?: boolean): string; -} -// Static methods of Extended Point with coordinates in X, Y, Z, T -interface ExtPointConstructor extends GroupConstructor { - new (x: bigint, y: bigint, z: bigint, t: bigint): ExtPointType; - fromAffine(p: AffinePoint): ExtPointType; - fromHex(hex: Hex): ExtPointType; - fromPrivateKey(privateKey: Hex): ExtPointType; -} -``` - -### abstract/montgomery: Montgomery curve - -```typescript -import { montgomery } from '@noble/curves/abstract/montgomery'; -import { Field } from '@noble/curves/abstract/modular'; - -const x25519 = montgomery({ - a: 486662n, - Gu: 9n, - Fp: Field(2n ** 255n - 19n), - montgomeryBits: 255, - nByteLength: 32, - // Optional param - adjustScalarBytes(bytes) { - bytes[0] &= 248; - bytes[31] &= 127; - bytes[31] |= 64; - return bytes; - }, -}); -``` - -The module contains methods for x-only ECDH on Curve25519 / Curve448 from RFC7748. -Proper Elliptic Curve Points are not implemented yet. - -You must specify curve params `Fp`, `a`, `Gu` coordinate of u, `montgomeryBits` and `nByteLength`. - -### abstract/bls: Barreto-Lynn-Scott curves - -The module abstracts BLS (Barreto-Lynn-Scott) pairing-friendly elliptic curve construction. -They allow to construct [zk-SNARKs](https://z.cash/technology/zksnarks/) and -use aggregated, batch-verifiable -[threshold signatures](https://medium.com/snigirev.stepan/bls-signatures-better-than-schnorr-5a7fe30ea716), -using Boneh-Lynn-Shacham signature scheme. - -Main methods and properties are: - -- `getPublicKey(privateKey)` -- `sign(message, privateKey)` -- `verify(signature, message, publicKey)` -- `aggregatePublicKeys(publicKeys)` -- `aggregateSignatures(signatures)` -- `G1` and `G2` curves containing `CURVE` and `ProjectivePoint` -- `Signature` property with `fromHex`, `toHex` methods -- `fields` containing `Fp`, `Fp2`, `Fp6`, `Fp12`, `Fr` - -Right now we only implement BLS12-381 (compatible with ETH and others), -but in theory defining BLS12-377, BLS24 should be straightforward. An example: - -```ts -import { bls12_381 as bls } from '@noble/curves/bls12-381'; -const privateKey = '67d53f170b908cabb9eb326c3c337762d59289a8fec79f7bc9254b584b73265c'; -const message = '64726e3da8'; -const publicKey = bls.getPublicKey(privateKey); -const signature = bls.sign(message, privateKey); -const isValid = bls.verify(signature, message, publicKey); -console.log({ publicKey, signature, isValid }); - -// Sign 1 msg with 3 keys -const privateKeys = [ - '18f020b98eb798752a50ed0563b079c125b0db5dd0b1060d1c1b47d4a193e1e4', - 'ed69a8c50cf8c9836be3b67c7eeff416612d45ba39a5c099d48fa668bf558c9c', - '16ae669f3be7a2121e17d0c68c05a8f3d6bef21ec0f2315f1d7aec12484e4cf5', -]; -const messages = ['d2', '0d98', '05caf3']; -const publicKeys = privateKeys.map(bls.getPublicKey); -const signatures2 = privateKeys.map((p) => bls.sign(message, p)); -const aggPubKey2 = bls.aggregatePublicKeys(publicKeys); -const aggSignature2 = bls.aggregateSignatures(signatures2); -const isValid2 = bls.verify(aggSignature2, message, aggPubKey2); -console.log({ signatures2, aggSignature2, isValid2 }); - -// Sign 3 msgs with 3 keys -const signatures3 = privateKeys.map((p, i) => bls.sign(messages[i], p)); -const aggSignature3 = bls.aggregateSignatures(signatures3); -const isValid3 = bls.verifyBatch(aggSignature3, messages, publicKeys); -console.log({ publicKeys, signatures3, aggSignature3, isValid3 }); - -// bls.pairing(PointG1, PointG2) // pairings -// bls.G1.ProjectivePoint.BASE, bls.G2.ProjectivePoint.BASE -// bls.fields.Fp, bls.fields.Fp2, bls.fields.Fp12, bls.fields.Fr - -// hash-to-curve examples can be seen below -``` - -Full types: - -```ts -getPublicKey: (privateKey: PrivKey) => Uint8Array; -sign: { - (message: Hex, privateKey: PrivKey): Uint8Array; - (message: ProjPointType, privateKey: PrivKey): ProjPointType; -}; -verify: ( - signature: Hex | ProjPointType, - message: Hex | ProjPointType, - publicKey: Hex | ProjPointType -) => boolean; -verifyBatch: ( - signature: Hex | ProjPointType, - messages: (Hex | ProjPointType)[], - publicKeys: (Hex | ProjPointType)[] -) => boolean; -aggregatePublicKeys: { - (publicKeys: Hex[]): Uint8Array; - (publicKeys: ProjPointType[]): ProjPointType; -}; -aggregateSignatures: { - (signatures: Hex[]): Uint8Array; - (signatures: ProjPointType[]): ProjPointType; -}; -millerLoop: (ell: [Fp2, Fp2, Fp2][], g1: [Fp, Fp]) => Fp12; -pairing: (P: ProjPointType, Q: ProjPointType, withFinalExponent?: boolean) => Fp12; -G1: CurvePointsRes & ReturnType>; -G2: CurvePointsRes & ReturnType>; -Signature: SignatureCoder; -params: { - x: bigint; - r: bigint; - G1b: bigint; - G2b: Fp2; -}; -fields: { - Fp: IField; - Fp2: IField; - Fp6: IField; - Fp12: IField; - Fr: IField; -}; -utils: { - randomPrivateKey: () => Uint8Array; - calcPairingPrecomputes: (p: AffinePoint) => [Fp2, Fp2, Fp2][]; -}; -``` - -### abstract/hash-to-curve: Hashing strings to curve points - -The module allows to hash arbitrary strings to elliptic curve points. Implements [hash-to-curve v16](https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-hash-to-curve-16). - -Every curve has exported `hashToCurve` and `encodeToCurve` methods. You should always prefer `hashToCurve` for security: - -```ts -import { hashToCurve, encodeToCurve } from '@noble/curves/secp256k1'; -import { randomBytes } from '@noble/hashes/utils'; -hashToCurve('0102abcd'); -console.log(hashToCurve(randomBytes())); -console.log(encodeToCurve(randomBytes())); - -import { bls12_381 } from '@noble/curves/bls12-381'; -bls12_381.G1.hashToCurve(randomBytes(), { DST: 'another' }); -bls12_381.G2.hashToCurve(randomBytes(), { DST: 'custom' }); -``` - -If you need low-level methods from spec: - -`expand_message_xmd` [(spec)](https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-hash-to-curve-11#section-5.4.1) produces a uniformly random byte string using a cryptographic hash function H that outputs b bits. - -Hash must conform to `CHash` interface (see [weierstrass section](#abstractweierstrass-short-weierstrass-curve)). - -```ts -function expand_message_xmd( - msg: Uint8Array, - DST: Uint8Array, - lenInBytes: number, - H: CHash -): Uint8Array; -function expand_message_xof( - msg: Uint8Array, - DST: Uint8Array, - lenInBytes: number, - k: number, - H: CHash -): Uint8Array; -``` - -`hash_to_field(msg, count, options)` -[(spec)](https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-hash-to-curve-11#section-5.3) -hashes arbitrary-length byte strings to a list of one or more elements of a finite field F. - -```ts -/** - * * `DST` is a domain separation tag, defined in section 2.2.5 - * * `p` characteristic of F, where F is a finite field of characteristic p and order q = p^m - * * `m` is extension degree (1 for prime fields) - * * `k` is the target security target in bits (e.g. 128), from section 5.1 - * * `expand` is `xmd` (SHA2, SHA3, BLAKE) or `xof` (SHAKE, BLAKE-XOF) - * * `hash` conforming to `utils.CHash` interface, with `outputLen` / `blockLen` props - */ -type UnicodeOrBytes = string | Uint8Array; -type Opts = { - DST: UnicodeOrBytes; - p: bigint; - m: number; - k: number; - expand?: 'xmd' | 'xof'; - hash: CHash; -}; - -/** - * Hashes arbitrary-length byte strings to a list of one or more elements of a finite field F - * https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-hash-to-curve-11#section-5.3 - * @param msg a byte string containing the message to hash - * @param count the number of elements of F to output - * @param options `{DST: string, p: bigint, m: number, k: number, expand: 'xmd' | 'xof', hash: H}`, see above - * @returns [u_0, ..., u_(count - 1)], a list of field elements. - */ -function hash_to_field(msg: Uint8Array, count: number, options: Opts): bigint[][]; -``` - -### abstract/poseidon: Poseidon hash - -Implements [Poseidon](https://www.poseidon-hash.info) ZK-friendly hash. - -There are many poseidon variants with different constants. -We don't provide them: you should construct them manually. -Check out [micro-starknet](https://github.com/paulmillr/micro-starknet) package for a proper example. - -```ts -import { poseidon } from '@noble/curves/abstract/poseidon'; - -type PoseidonOpts = { - Fp: Field; - t: number; - roundsFull: number; - roundsPartial: number; - sboxPower?: number; - reversePartialPowIdx?: boolean; - mds: bigint[][]; - roundConstants: bigint[][]; -}; -const instance = poseidon(opts: PoseidonOpts); -``` - -### abstract/modular: Modular arithmetics utilities - -```ts -import * as mod from '@noble/curves/abstract/modular'; -const fp = mod.Field(2n ** 255n - 19n); // Finite field over 2^255-19 -fp.mul(591n, 932n); // multiplication -fp.pow(481n, 11024858120n); // exponentiation -fp.div(5n, 17n); // division: 5/17 mod 2^255-19 == 5 * invert(17) -fp.sqrt(21n); // square root - -// Generic non-FP utils are also available -mod.mod(21n, 10n); // 21 mod 10 == 1n; fixed version of 21 % 10 -mod.invert(17n, 10n); // invert(17) mod 10; modular multiplicative inverse -mod.invertBatch([1n, 2n, 4n], 21n); // => [1n, 11n, 16n] in one inversion -``` - -#### Creating private keys from hashes - -Suppose you have `sha256(something)` (e.g. from HMAC) and you want to make a private key from it. -Even though p256 or secp256k1 may have 32-byte private keys, -and sha256 output is also 32-byte, you can't just use it and reduce it modulo `CURVE.n`. - -Doing so will make the result key [biased](https://research.kudelskisecurity.com/2020/07/28/the-definitive-guide-to-modulo-bias-and-how-to-avoid-it/). - -To avoid the bias, we implement FIPS 186 B.4.1, which allows to take arbitrary -byte array and produce valid scalars / private keys with bias being neglible. - -Use [hash-to-curve](#abstracthash-to-curve-hashing-strings-to-curve-points) if you need -hashing to **public keys**; the function in the module instead operates on **private keys**. - -```ts -import { p256 } from '@noble/curves/p256'; -import { sha256 } from '@noble/hashes/sha256'; -import { hkdf } from '@noble/hashes/hkdf'; -const someKey = new Uint8Array(32).fill(2); // Needs to actually be random, not .fill(2) -const derived = hkdf(sha256, someKey, undefined, 'application', 40); // 40 bytes -const validPrivateKey = mod.hashToPrivateScalar(derived, p256.CURVE.n); -``` - -### abstract/utils: General utilities - -```ts -import * as utils from '@noble/curves/abstract/utils'; - -utils.bytesToHex(Uint8Array.from([0xde, 0xad, 0xbe, 0xef])); -utils.hexToBytes('deadbeef'); -utils.numberToHexUnpadded(123n); -utils.hexToNumber(); - -utils.bytesToNumberBE(Uint8Array.from([0xde, 0xad, 0xbe, 0xef])); -utils.bytesToNumberLE(Uint8Array.from([0xde, 0xad, 0xbe, 0xef])); -utils.numberToBytesBE(123n, 32); -utils.numberToBytesLE(123n, 64); - -utils.concatBytes(Uint8Array.from([0xde, 0xad]), Uint8Array.from([0xbe, 0xef])); -utils.nLength(255n); -utils.equalBytes(Uint8Array.from([0xde]), Uint8Array.from([0xde])); -``` - -## Security - -1. The library has been audited in Feb 2023 by an independent security firm [Trail of Bits](https://www.trailofbits.com): -[PDF](https://github.com/trailofbits/publications/blob/master/reviews/2023-01-ryanshea-noblecurveslibrary-securityreview.pdf). -The audit has been funded by [Ryan Shea](https://www.shea.io). Audit scope was abstract modules `curve`, `hash-to-curve`, `modular`, `poseidon`, `utils`, `weierstrass`, and top-level modules `_shortw_utils` and `secp256k1`. See [changes since audit](https://github.com/paulmillr/noble-curves/compare/0.7.3..main). -2. The library has been fuzzed by [Guido Vranken's cryptofuzz](https://github.com/guidovranken/cryptofuzz). You can run the fuzzer by yourself to check it. -3. [Timing attack](https://en.wikipedia.org/wiki/Timing_attack) considerations: _JIT-compiler_ and _Garbage Collector_ make "constant time" extremely hard to achieve in a scripting language. Which means _any other JS library can't have constant-timeness_. Even statically typed Rust, a language without GC, [makes it harder to achieve constant-time](https://www.chosenplaintext.ca/open-source/rust-timing-shield/security) for some cases. If your goal is absolute security, don't use any JS lib — including bindings to native ones. Use low-level libraries & languages. Nonetheless we're targetting algorithmic constant time. - -We consider infrastructure attacks like rogue NPM modules very important; that's why it's crucial to minimize the amount of 3rd-party dependencies & native bindings. If your app uses 500 dependencies, any dep could get hacked and you'll be downloading malware with every `npm install`. Our goal is to minimize this attack vector. As for devDependencies used by the library: - -- `@scure` base, bip32, bip39 (used in tests), micro-bmark (benchmark), micro-should (testing) are developed by us - and follow the same practices such as: minimal library size, auditability, signed releases -- prettier (linter), fast-check (property-based testing), - typescript versions are locked and rarely updated. Every update is checked with `npm-diff`. - The packages are big, which makes it hard to audit their source code thoroughly and fully. -- They are only used if you clone the git repo and want to add some feature to it. End-users won't use them. - -As for key generation, we're deferring to built-in -[crypto.getRandomValues](https://developer.mozilla.org/en-US/docs/Web/API/Crypto/getRandomValues) -which is considered cryptographically secure (CSPRNG). - -## Speed - -Benchmark results on Apple M2 with node v20: - -``` -secp256k1 -init x 68 ops/sec @ 14ms/op -getPublicKey x 6,750 ops/sec @ 148μs/op -sign x 5,206 ops/sec @ 192μs/op -verify x 880 ops/sec @ 1ms/op -getSharedSecret x 536 ops/sec @ 1ms/op -recoverPublicKey x 852 ops/sec @ 1ms/op -schnorr.sign x 685 ops/sec @ 1ms/op -schnorr.verify x 908 ops/sec @ 1ms/op - -p256 -init x 38 ops/sec @ 26ms/op -getPublicKey x 6,530 ops/sec @ 153μs/op -sign x 5,074 ops/sec @ 197μs/op -verify x 626 ops/sec @ 1ms/op - -p384 -init x 17 ops/sec @ 57ms/op -getPublicKey x 2,883 ops/sec @ 346μs/op -sign x 2,358 ops/sec @ 424μs/op -verify x 245 ops/sec @ 4ms/op - -p521 -init x 9 ops/sec @ 109ms/op -getPublicKey x 1,516 ops/sec @ 659μs/op -sign x 1,271 ops/sec @ 786μs/op -verify x 123 ops/sec @ 8ms/op - -ed25519 -init x 54 ops/sec @ 18ms/op -getPublicKey x 10,269 ops/sec @ 97μs/op -sign x 5,110 ops/sec @ 195μs/op -verify x 1,049 ops/sec @ 952μs/op - -ed448 -init x 19 ops/sec @ 51ms/op -getPublicKey x 3,775 ops/sec @ 264μs/op -sign x 1,771 ops/sec @ 564μs/op -verify x 351 ops/sec @ 2ms/op - -ecdh -├─x25519 x 1,466 ops/sec @ 682μs/op -├─secp256k1 x 539 ops/sec @ 1ms/op -├─p256 x 511 ops/sec @ 1ms/op -├─p384 x 199 ops/sec @ 5ms/op -├─p521 x 103 ops/sec @ 9ms/op -└─x448 x 548 ops/sec @ 1ms/op - -bls12-381 -init x 36 ops/sec @ 27ms/op -getPublicKey 1-bit x 973 ops/sec @ 1ms/op -getPublicKey x 970 ops/sec @ 1ms/op -sign x 55 ops/sec @ 17ms/op -verify x 39 ops/sec @ 25ms/op -pairing x 106 ops/sec @ 9ms/op -aggregatePublicKeys/8 x 129 ops/sec @ 7ms/op -aggregatePublicKeys/32 x 34 ops/sec @ 28ms/op -aggregatePublicKeys/128 x 8 ops/sec @ 112ms/op -aggregatePublicKeys/512 x 2 ops/sec @ 446ms/op -aggregatePublicKeys/2048 x 0 ops/sec @ 1778ms/op -aggregateSignatures/8 x 50 ops/sec @ 19ms/op -aggregateSignatures/32 x 13 ops/sec @ 74ms/op -aggregateSignatures/128 x 3 ops/sec @ 296ms/op -aggregateSignatures/512 x 0 ops/sec @ 1180ms/op -aggregateSignatures/2048 x 0 ops/sec @ 4715ms/op - -hash-to-curve -hash_to_field x 91,600 ops/sec @ 10μs/op -secp256k1 x 2,373 ops/sec @ 421μs/op -p256 x 4,310 ops/sec @ 231μs/op -p384 x 1,664 ops/sec @ 600μs/op -p521 x 807 ops/sec @ 1ms/op -ed25519 x 3,088 ops/sec @ 323μs/op -ed448 x 1,247 ops/sec @ 801μs/op -``` - -## Contributing & testing - -1. Clone the repository -2. `npm install` to install build dependencies like TypeScript -3. `npm run build` to compile TypeScript code -4. `npm run test` will execute all main tests - -## Upgrading - -Previously, the library was split into single-feature packages -noble-secp256k1, noble-ed25519 and noble-bls12-381. - -Curves continue their original work. The single-feature packages changed their -direction towards providing minimal 4kb implementations of cryptography, -which means they have less features. - -Upgrading from @noble/secp256k1 2.0 or @noble/ed25519 2.0: no changes, libraries are compatible. - -Upgrading from [@noble/secp256k1](https://github.com/paulmillr/noble-secp256k1) 1.7: - -- `getPublicKey` - - now produce 33-byte compressed signatures by default - - to use old behavior, which produced 65-byte uncompressed keys, set - argument `isCompressed` to `false`: `getPublicKey(priv, false)` -- `sign` - - is now sync; use `signAsync` for async version - - now returns `Signature` instance with `{ r, s, recovery }` properties - - `canonical` option was renamed to `lowS` - - `recovered` option has been removed because recovery bit is always returned now - - `der` option has been removed. There are 2 options: - 1. Use compact encoding: `fromCompact`, `toCompactRawBytes`, `toCompactHex`. - Compact encoding is simply a concatenation of 32-byte r and 32-byte s. - 2. If you must use DER encoding, switch to noble-curves (see above). -- `verify` - - `strict` option was renamed to `lowS` -- `getSharedSecret` - - now produce 33-byte compressed signatures by default - - to use old behavior, which produced 65-byte uncompressed keys, set - argument `isCompressed` to `false`: `getSharedSecret(a, b, false)` -- `recoverPublicKey(msg, sig, rec)` was changed to `sig.recoverPublicKey(msg)` -- `number` type for private keys have been removed: use `bigint` instead -- `Point` (2d xy) has been changed to `ProjectivePoint` (3d xyz) -- `utils` were split into `utils` (same api as in noble-curves) and - `etc` (`hmacSha256Sync` and others) - -Upgrading from [@noble/ed25519](https://github.com/paulmillr/noble-ed25519) 1.7: - -- Methods are now sync by default -- `bigint` is no longer allowed in `getPublicKey`, `sign`, `verify`. Reason: ed25519 is LE, can lead to bugs -- `Point` (2d xy) has been changed to `ExtendedPoint` (xyzt) -- `Signature` was removed: just use raw bytes or hex now -- `utils` were split into `utils` (same api as in noble-curves) and - `etc` (`sha512Sync` and others) -- `getSharedSecret` was moved to `x25519` module -- `toX25519` has been moved to `edwardsToMontgomeryPub` and `edwardsToMontgomeryPriv` methods - -Upgrading from [@noble/bls12-381](https://github.com/paulmillr/noble-bls12-381): - -- Methods and classes were renamed: - - PointG1 -> G1.Point, PointG2 -> G2.Point - - PointG2.fromSignature -> Signature.decode, PointG2.toSignature -> Signature.encode -- Fp2 ORDER was corrected - -## Resources - -Useful documentation and articles about the library or its primitives: - -- [Learning fast elliptic-curve cryptography](https://paulmillr.com/posts/noble-secp256k1-fast-ecc/) -- [Taming the many EdDSAs](https://csrc.nist.gov/csrc/media/Presentations/2023/crclub-2023-03-08/images-media/20230308-crypto-club-slides--taming-the-many-EdDSAs.pdf) - that describes concepts of Strong UnForgeability under Chosen Message Attacks and Strongly Binding Signatures -- Pairings and BLS - - [BLS signatures for busy people](https://gist.github.com/paulmillr/18b802ad219b1aee34d773d08ec26ca2) - - [BLS12-381 for the rest of us](https://hackmd.io/@benjaminion/bls12-381) - - [Key concepts of pairings](https://medium.com/@alonmuroch_65570/bls-signatures-part-2-key-concepts-of-pairings-27a8a9533d0c) - - Pairing over bls12-381: - [part 1](https://research.nccgroup.com/2020/07/06/pairing-over-bls12-381-part-1-fields/), - [part 2](https://research.nccgroup.com/2020/07/13/pairing-over-bls12-381-part-2-curves/), - [part 3](https://research.nccgroup.com/2020/08/13/pairing-over-bls12-381-part-3-pairing/) - - [Estimating the bit security of pairing-friendly curves](https://research.nccgroup.com/2022/02/03/estimating-the-bit-security-of-pairing-friendly-curves/) - -Online demos: - -- [Elliptic Curve Calculator](https://paulmillr.com/noble): add / multiply points, sign messages -- [BLS threshold signatures](https://genthresh.com) - -Projects using noble-curves: - -- [scure-bip32](https://github.com/paulmillr/scure-bip32) and separate [bip32](https://github.com/bitcoinjs/bip32) HDkey libraries -- Ethereum libraries: - - [ethereum-cryptography](https://github.com/ethereum/js-ethereum-cryptography) - - [@ethereumjs](https://github.com/ethereumjs/ethereumjs-monorepo) - - [micro-eth-signer](https://github.com/paulmillr/micro-eth-signer) - - [ethers](https://github.com/ethers-io/ethers.js) (old noble-secp256k1 for now) - - [viem.sh](https://viem.sh) - - [metamask's eth-sig-util](https://github.com/MetaMask/eth-sig-util) - - [gridplus lattice sdk](https://github.com/GridPlus/lattice-eth2-utils) -- Bitcoin libraries: [scure-btc-signer](https://github.com/paulmillr/scure-btc-signer) -- Solana libraries: [micro-sol-signer](https://github.com/paulmillr/micro-sol-signer), [solana-web3.js](https://github.com/solana-labs/solana-web3.js) -- [polkadot.js](https://github.com/polkadot-js/common), [micro-starknet](https://github.com/paulmillr/micro-starknet) -- [protonmail](https://github.com/ProtonMail/WebClients) (old noble-ed25519 for now) -- [did-jwt](https://github.com/decentralized-identity/did-jwt), [hpke-js](https://github.com/dajiaji/hpke-js), [nostr-tools](https://github.com/nbd-wtf/nostr-tools) -- [ed25519-keygen](https://github.com/paulmillr/ed25519-keygen) SSH, PGP, TOR key generation -- [secp256k1 compatibility layer](https://github.com/ethereum/js-ethereum-cryptography/blob/2.0.0/src/secp256k1-compat.ts) -for users who want to switch from secp256k1-node or tiny-secp256k1. Allows to see which methods map to corresponding noble code. -- [BLS BBS signatures](https://github.com/Wind4Greg/BBS-Draft-Checks) following [draft-irtf-cfrg-bbs-signatures-latest](https://identity.foundation/bbs-signature/draft-irtf-cfrg-bbs-signatures.html) -- [KZG trusted setup ceremony](https://github.com/dsrvlabs/czg-keremony) - -## License - -The MIT License (MIT) - -Copyright (c) 2022 Paul Miller [(https://paulmillr.com)](https://paulmillr.com) - -See LICENSE file. diff --git a/node_modules/@noble/curves/_shortw_utils.d.ts b/node_modules/@noble/curves/_shortw_utils.d.ts deleted file mode 100644 index 3eb43a81..00000000 --- a/node_modules/@noble/curves/_shortw_utils.d.ts +++ /dev/null @@ -1,62 +0,0 @@ -import { randomBytes } from '@noble/hashes/utils'; -import { CurveType } from './abstract/weierstrass.js'; -import { CHash } from './abstract/utils.js'; -export declare function getHash(hash: CHash): { - hash: CHash; - hmac: (key: Uint8Array, ...msgs: Uint8Array[]) => Uint8Array; - randomBytes: typeof randomBytes; -}; -type CurveDef = Readonly>; -export declare function createCurve(curveDef: CurveDef, defHash: CHash): Readonly<{ - create: (hash: CHash) => import("./abstract/weierstrass.js").CurveFn; - CURVE: Readonly<{ - readonly nBitLength: number; - readonly nByteLength: number; - readonly Fp: import("./abstract/modular.js").IField; - readonly n: bigint; - readonly h: bigint; - readonly hEff?: bigint | undefined; - readonly Gx: bigint; - readonly Gy: bigint; - readonly allowInfinityPoint?: boolean | undefined; - readonly a: bigint; - readonly b: bigint; - readonly allowedPrivateKeyLengths?: readonly number[] | undefined; - readonly wrapPrivateKey?: boolean | undefined; - readonly endo?: { - beta: bigint; - splitScalar: (k: bigint) => { - k1neg: boolean; - k1: bigint; - k2neg: boolean; - k2: bigint; - }; - } | undefined; - readonly isTorsionFree?: ((c: import("./abstract/weierstrass.js").ProjConstructor, point: import("./abstract/weierstrass.js").ProjPointType) => boolean) | undefined; - readonly clearCofactor?: ((c: import("./abstract/weierstrass.js").ProjConstructor, point: import("./abstract/weierstrass.js").ProjPointType) => import("./abstract/weierstrass.js").ProjPointType) | undefined; - readonly hash: CHash; - readonly hmac: (key: Uint8Array, ...messages: Uint8Array[]) => Uint8Array; - readonly randomBytes: (bytesLength?: number | undefined) => Uint8Array; - lowS: boolean; - readonly bits2int?: ((bytes: Uint8Array) => bigint) | undefined; - readonly bits2int_modN?: ((bytes: Uint8Array) => bigint) | undefined; - readonly p: bigint; - }>; - getPublicKey: (privateKey: import("./abstract/utils.js").PrivKey, isCompressed?: boolean | undefined) => Uint8Array; - getSharedSecret: (privateA: import("./abstract/utils.js").PrivKey, publicB: import("./abstract/utils.js").Hex, isCompressed?: boolean | undefined) => Uint8Array; - sign: (msgHash: import("./abstract/utils.js").Hex, privKey: import("./abstract/utils.js").PrivKey, opts?: import("./abstract/weierstrass.js").SignOpts | undefined) => import("./abstract/weierstrass.js").RecoveredSignatureType; - verify: (signature: import("./abstract/utils.js").Hex | { - r: bigint; - s: bigint; - }, msgHash: import("./abstract/utils.js").Hex, publicKey: import("./abstract/utils.js").Hex, opts?: import("./abstract/weierstrass.js").VerOpts | undefined) => boolean; - ProjectivePoint: import("./abstract/weierstrass.js").ProjConstructor; - Signature: import("./abstract/weierstrass.js").SignatureConstructor; - utils: { - normPrivateKeyToScalar: (key: import("./abstract/utils.js").PrivKey) => bigint; - isValidPrivateKey(privateKey: import("./abstract/utils.js").PrivKey): boolean; - randomPrivateKey: () => Uint8Array; - precompute: (windowSize?: number | undefined, point?: import("./abstract/weierstrass.js").ProjPointType | undefined) => import("./abstract/weierstrass.js").ProjPointType; - }; -}>; -export {}; -//# sourceMappingURL=_shortw_utils.d.ts.map \ No newline at end of file diff --git a/node_modules/@noble/curves/_shortw_utils.d.ts.map b/node_modules/@noble/curves/_shortw_utils.d.ts.map deleted file mode 100644 index 974f8daf..00000000 --- a/node_modules/@noble/curves/_shortw_utils.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"_shortw_utils.d.ts","sourceRoot":"","sources":["src/_shortw_utils.ts"],"names":[],"mappings":"AAEA,OAAO,EAAe,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAe,SAAS,EAAE,MAAM,2BAA2B,CAAC;AACnE,OAAO,EAAE,KAAK,EAAE,MAAM,qBAAqB,CAAC;AAG5C,wBAAgB,OAAO,CAAC,IAAI,EAAE,KAAK;;gBAGnB,UAAU,WAAW,UAAU,EAAE;;EAGhD;AAED,KAAK,QAAQ,GAAG,QAAQ,CAAC,IAAI,CAAC,SAAS,EAAE,MAAM,GAAG,MAAM,GAAG,aAAa,CAAC,CAAC,CAAC;AAC3E,wBAAgB,WAAW,CAAC,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,KAAK;mBACtC,KAAK;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAE5B"} \ No newline at end of file diff --git a/node_modules/@noble/curves/_shortw_utils.js b/node_modules/@noble/curves/_shortw_utils.js deleted file mode 100644 index 555de44e..00000000 --- a/node_modules/@noble/curves/_shortw_utils.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createCurve = exports.getHash = void 0; -/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */ -const hmac_1 = require("@noble/hashes/hmac"); -const utils_1 = require("@noble/hashes/utils"); -const weierstrass_js_1 = require("./abstract/weierstrass.js"); -// connects noble-curves to noble-hashes -function getHash(hash) { - return { - hash, - hmac: (key, ...msgs) => (0, hmac_1.hmac)(hash, key, (0, utils_1.concatBytes)(...msgs)), - randomBytes: utils_1.randomBytes, - }; -} -exports.getHash = getHash; -function createCurve(curveDef, defHash) { - const create = (hash) => (0, weierstrass_js_1.weierstrass)({ ...curveDef, ...getHash(hash) }); - return Object.freeze({ ...create(defHash), create }); -} -exports.createCurve = createCurve; -//# sourceMappingURL=_shortw_utils.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/_shortw_utils.js.map b/node_modules/@noble/curves/_shortw_utils.js.map deleted file mode 100644 index 318dfda2..00000000 --- a/node_modules/@noble/curves/_shortw_utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"_shortw_utils.js","sourceRoot":"","sources":["src/_shortw_utils.ts"],"names":[],"mappings":";;;AAAA,sEAAsE;AACtE,6CAA0C;AAC1C,+CAA+D;AAC/D,8DAAmE;AAGnE,wCAAwC;AACxC,SAAgB,OAAO,CAAC,IAAW;IACjC,OAAO;QACL,IAAI;QACJ,IAAI,EAAE,CAAC,GAAe,EAAE,GAAG,IAAkB,EAAE,EAAE,CAAC,IAAA,WAAI,EAAC,IAAI,EAAE,GAAG,EAAE,IAAA,mBAAW,EAAC,GAAG,IAAI,CAAC,CAAC;QACvF,WAAW,EAAX,mBAAW;KACZ,CAAC;AACJ,CAAC;AAND,0BAMC;AAGD,SAAgB,WAAW,CAAC,QAAkB,EAAE,OAAc;IAC5D,MAAM,MAAM,GAAG,CAAC,IAAW,EAAE,EAAE,CAAC,IAAA,4BAAW,EAAC,EAAE,GAAG,QAAQ,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAC/E,OAAO,MAAM,CAAC,MAAM,CAAC,EAAE,GAAG,MAAM,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC;AACvD,CAAC;AAHD,kCAGC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/abstract/bls.d.ts b/node_modules/@noble/curves/abstract/bls.d.ts deleted file mode 100644 index f6f14ac2..00000000 --- a/node_modules/@noble/curves/abstract/bls.d.ts +++ /dev/null @@ -1,103 +0,0 @@ -/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */ -/** - * BLS (Barreto-Lynn-Scott) family of pairing-friendly curves. - * Implements BLS (Boneh-Lynn-Shacham) signatures. - * Consists of two curves: G1 and G2: - * - G1 is a subgroup of (x, y) E(Fq) over y² = x³ + 4. - * - G2 is a subgroup of ((x₁, x₂+i), (y₁, y₂+i)) E(Fq²) over y² = x³ + 4(1 + i) where i is √-1 - * - Gt, created by bilinear (ate) pairing e(G1, G2), consists of p-th roots of unity in - * Fq^k where k is embedding degree. Only degree 12 is currently supported, 24 is not. - * Pairing is used to aggregate and verify signatures. - * We are using Fp for private keys (shorter) and Fp₂ for signatures (longer). - * Some projects may prefer to swap this relation, it is not supported for now. - */ -import { AffinePoint } from './curve.js'; -import { IField } from './modular.js'; -import { Hex, PrivKey, CHash } from './utils.js'; -import * as htf from './hash-to-curve.js'; -import { CurvePointsType, ProjPointType as ProjPointType, CurvePointsRes } from './weierstrass.js'; -type Fp = bigint; -export type SignatureCoder = { - fromHex(hex: Hex): ProjPointType; - toRawBytes(point: ProjPointType): Uint8Array; - toHex(point: ProjPointType): string; -}; -export type CurveType = { - G1: Omit, 'n'> & { - mapToCurve: htf.MapToCurve; - htfDefaults: htf.Opts; - }; - G2: Omit, 'n'> & { - Signature: SignatureCoder; - mapToCurve: htf.MapToCurve; - htfDefaults: htf.Opts; - }; - fields: { - Fp: IField; - Fr: IField; - Fp2: IField & { - reim: (num: Fp2) => { - re: bigint; - im: bigint; - }; - multiplyByB: (num: Fp2) => Fp2; - frobeniusMap(num: Fp2, power: number): Fp2; - }; - Fp6: IField; - Fp12: IField & { - frobeniusMap(num: Fp12, power: number): Fp12; - multiplyBy014(num: Fp12, o0: Fp2, o1: Fp2, o4: Fp2): Fp12; - conjugate(num: Fp12): Fp12; - finalExponentiate(num: Fp12): Fp12; - }; - }; - params: { - x: bigint; - r: bigint; - }; - htfDefaults: htf.Opts; - hash: CHash; - randomBytes: (bytesLength?: number) => Uint8Array; -}; -export type CurveFn = { - getPublicKey: (privateKey: PrivKey) => Uint8Array; - sign: { - (message: Hex, privateKey: PrivKey): Uint8Array; - (message: ProjPointType, privateKey: PrivKey): ProjPointType; - }; - verify: (signature: Hex | ProjPointType, message: Hex | ProjPointType, publicKey: Hex | ProjPointType) => boolean; - verifyBatch: (signature: Hex | ProjPointType, messages: (Hex | ProjPointType)[], publicKeys: (Hex | ProjPointType)[]) => boolean; - aggregatePublicKeys: { - (publicKeys: Hex[]): Uint8Array; - (publicKeys: ProjPointType[]): ProjPointType; - }; - aggregateSignatures: { - (signatures: Hex[]): Uint8Array; - (signatures: ProjPointType[]): ProjPointType; - }; - millerLoop: (ell: [Fp2, Fp2, Fp2][], g1: [Fp, Fp]) => Fp12; - pairing: (P: ProjPointType, Q: ProjPointType, withFinalExponent?: boolean) => Fp12; - G1: CurvePointsRes & ReturnType>; - G2: CurvePointsRes & ReturnType>; - Signature: SignatureCoder; - params: { - x: bigint; - r: bigint; - G1b: bigint; - G2b: Fp2; - }; - fields: { - Fp: IField; - Fp2: IField; - Fp6: IField; - Fp12: IField; - Fr: IField; - }; - utils: { - randomPrivateKey: () => Uint8Array; - calcPairingPrecomputes: (p: AffinePoint) => [Fp2, Fp2, Fp2][]; - }; -}; -export declare function bls(CURVE: CurveType): CurveFn; -export {}; -//# sourceMappingURL=bls.d.ts.map \ No newline at end of file diff --git a/node_modules/@noble/curves/abstract/bls.d.ts.map b/node_modules/@noble/curves/abstract/bls.d.ts.map deleted file mode 100644 index 75b6d262..00000000 --- a/node_modules/@noble/curves/abstract/bls.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"bls.d.ts","sourceRoot":"","sources":["../src/abstract/bls.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE;;;;;;;;;;;GAWG;AACH,OAAO,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACzC,OAAO,EAAE,MAAM,EAAuB,MAAM,cAAc,CAAC;AAC3D,OAAO,EAAE,GAAG,EAAE,OAAO,EAAE,KAAK,EAA+B,MAAM,YAAY,CAAC;AAC9E,OAAO,KAAK,GAAG,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EACL,eAAe,EACf,aAAa,IAAI,aAAa,EAC9B,cAAc,EAEf,MAAM,kBAAkB,CAAC;AAE1B,KAAK,EAAE,GAAG,MAAM,CAAC;AAKjB,MAAM,MAAM,cAAc,CAAC,GAAG,IAAI;IAChC,OAAO,CAAC,GAAG,EAAE,GAAG,GAAG,aAAa,CAAC,GAAG,CAAC,CAAC;IACtC,UAAU,CAAC,KAAK,EAAE,aAAa,CAAC,GAAG,CAAC,GAAG,UAAU,CAAC;IAClD,KAAK,CAAC,KAAK,EAAE,aAAa,CAAC,GAAG,CAAC,GAAG,MAAM,CAAC;CAC1C,CAAC;AAEF,MAAM,MAAM,SAAS,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,IAAI;IAC1C,EAAE,EAAE,IAAI,CAAC,eAAe,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,GAAG;QACnC,UAAU,EAAE,GAAG,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC;QAC/B,WAAW,EAAE,GAAG,CAAC,IAAI,CAAC;KACvB,CAAC;IACF,EAAE,EAAE,I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AG,EAAE,IAAI,EAChC,KAAK,EAAE,SAAS,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,GACnC,OAAO,CAAC,EAAE,EAAE,GAAG,EAAE,GAAG,EAAE,IAAI,CAAC,CAqR7B"} \ No newline at end of file diff --git a/node_modules/@noble/curves/abstract/bls.js b/node_modules/@noble/curves/abstract/bls.js deleted file mode 100644 index 1c0e9561..00000000 --- a/node_modules/@noble/curves/abstract/bls.js +++ /dev/null @@ -1,239 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.bls = void 0; -const modular_js_1 = require("./modular.js"); -const utils_js_1 = require("./utils.js"); -const htf = require("./hash-to-curve.js"); -const weierstrass_js_1 = require("./weierstrass.js"); -// prettier-ignore -const _2n = BigInt(2), _3n = BigInt(3); -function bls(CURVE) { - // Fields are specific for curve, so for now we'll need to pass them with opts - const { Fp, Fr, Fp2, Fp6, Fp12 } = CURVE.fields; - const BLS_X_LEN = (0, utils_js_1.bitLen)(CURVE.params.x); - const groupLen = 32; // TODO: calculate; hardcoded for now - // Pre-compute coefficients for sparse multiplication - // Point addition and point double calculations is reused for coefficients - function calcPairingPrecomputes(p) { - const { x, y } = p; - // prettier-ignore - const Qx = x, Qy = y, Qz = Fp2.ONE; - // prettier-ignore - let Rx = Qx, Ry = Qy, Rz = Qz; - let ell_coeff = []; - for (let i = BLS_X_LEN - 2; i >= 0; i--) { - // Double - let t0 = Fp2.sqr(Ry); // Ry² - let t1 = Fp2.sqr(Rz); // Rz² - let t2 = Fp2.multiplyByB(Fp2.mul(t1, _3n)); // 3 * T1 * B - let t3 = Fp2.mul(t2, _3n); // 3 * T2 - let t4 = Fp2.sub(Fp2.sub(Fp2.sqr(Fp2.add(Ry, Rz)), t1), t0); // (Ry + Rz)² - T1 - T0 - ell_coeff.push([ - Fp2.sub(t2, t0), - Fp2.mul(Fp2.sqr(Rx), _3n), - Fp2.neg(t4), // -T4 - ]); - Rx = Fp2.div(Fp2.mul(Fp2.mul(Fp2.sub(t0, t3), Rx), Ry), _2n); // ((T0 - T3) * Rx * Ry) / 2 - Ry = Fp2.sub(Fp2.sqr(Fp2.div(Fp2.add(t0, t3), _2n)), Fp2.mul(Fp2.sqr(t2), _3n)); // ((T0 + T3) / 2)² - 3 * T2² - Rz = Fp2.mul(t0, t4); // T0 * T4 - if ((0, utils_js_1.bitGet)(CURVE.params.x, i)) { - // Addition - let t0 = Fp2.sub(Ry, Fp2.mul(Qy, Rz)); // Ry - Qy * Rz - let t1 = Fp2.sub(Rx, Fp2.mul(Qx, Rz)); // Rx - Qx * Rz - ell_coeff.push([ - Fp2.sub(Fp2.mul(t0, Qx), Fp2.mul(t1, Qy)), - Fp2.neg(t0), - t1, // T1 - ]); - let t2 = Fp2.sqr(t1); // T1² - let t3 = Fp2.mul(t2, t1); // T2 * T1 - let t4 = Fp2.mul(t2, Rx); // T2 * Rx - let t5 = Fp2.add(Fp2.sub(t3, Fp2.mul(t4, _2n)), Fp2.mul(Fp2.sqr(t0), Rz)); // T3 - 2 * T4 + T0² * Rz - Rx = Fp2.mul(t1, t5); // T1 * T5 - Ry = Fp2.sub(Fp2.mul(Fp2.sub(t4, t5), t0), Fp2.mul(t3, Ry)); // (T4 - T5) * T0 - T3 * Ry - Rz = Fp2.mul(Rz, t3); // Rz * T3 - } - } - return ell_coeff; - } - function millerLoop(ell, g1) { - const { x } = CURVE.params; - const Px = g1[0]; - const Py = g1[1]; - let f12 = Fp12.ONE; - for (let j = 0, i = BLS_X_LEN - 2; i >= 0; i--, j++) { - const E = ell[j]; - f12 = Fp12.multiplyBy014(f12, E[0], Fp2.mul(E[1], Px), Fp2.mul(E[2], Py)); - if ((0, utils_js_1.bitGet)(x, i)) { - j += 1; - const F = ell[j]; - f12 = Fp12.multiplyBy014(f12, F[0], Fp2.mul(F[1], Px), Fp2.mul(F[2], Py)); - } - if (i !== 0) - f12 = Fp12.sqr(f12); - } - return Fp12.conjugate(f12); - } - const utils = { - randomPrivateKey: () => { - return Fr.toBytes((0, modular_js_1.hashToPrivateScalar)(CURVE.randomBytes(groupLen + 8), CURVE.params.r)); - }, - calcPairingPrecomputes, - }; - // Point on G1 curve: (x, y) - const G1_ = (0, weierstrass_js_1.weierstrassPoints)({ n: Fr.ORDER, ...CURVE.G1 }); - const G1 = Object.assign(G1_, htf.createHasher(G1_.ProjectivePoint, CURVE.G1.mapToCurve, { - ...CURVE.htfDefaults, - ...CURVE.G1.htfDefaults, - })); - function pairingPrecomputes(point) { - const p = point; - if (p._PPRECOMPUTES) - return p._PPRECOMPUTES; - p._PPRECOMPUTES = calcPairingPrecomputes(point.toAffine()); - return p._PPRECOMPUTES; - } - // TODO: export - // function clearPairingPrecomputes(point: G2) { - // const p = point as G2 & withPairingPrecomputes; - // p._PPRECOMPUTES = undefined; - // } - // Point on G2 curve (complex numbers): (x₁, x₂+i), (y₁, y₂+i) - const G2_ = (0, weierstrass_js_1.weierstrassPoints)({ n: Fr.ORDER, ...CURVE.G2 }); - const G2 = Object.assign(G2_, htf.createHasher(G2_.ProjectivePoint, CURVE.G2.mapToCurve, { - ...CURVE.htfDefaults, - ...CURVE.G2.htfDefaults, - })); - const { Signature } = CURVE.G2; - // Calculates bilinear pairing - function pairing(Q, P, withFinalExponent = true) { - if (Q.equals(G1.ProjectivePoint.ZERO) || P.equals(G2.ProjectivePoint.ZERO)) - throw new Error('pairing is not available for ZERO point'); - Q.assertValidity(); - P.assertValidity(); - // Performance: 9ms for millerLoop and ~14ms for exp. - const Qa = Q.toAffine(); - const looped = millerLoop(pairingPrecomputes(P), [Qa.x, Qa.y]); - return withFinalExponent ? Fp12.finalExponentiate(looped) : looped; - } - function normP1(point) { - return point instanceof G1.ProjectivePoint ? point : G1.ProjectivePoint.fromHex(point); - } - function normP2(point) { - return point instanceof G2.ProjectivePoint ? point : Signature.fromHex(point); - } - function normP2Hash(point, htfOpts) { - return point instanceof G2.ProjectivePoint - ? point - : G2.hashToCurve((0, utils_js_1.ensureBytes)('point', point), htfOpts); - } - // Multiplies generator by private key. - // P = pk x G - function getPublicKey(privateKey) { - return G1.ProjectivePoint.fromPrivateKey(privateKey).toRawBytes(true); - } - function sign(message, privateKey, htfOpts) { - const msgPoint = normP2Hash(message, htfOpts); - msgPoint.assertValidity(); - const sigPoint = msgPoint.multiply(G1.normPrivateKeyToScalar(privateKey)); - if (message instanceof G2.ProjectivePoint) - return sigPoint; - return Signature.toRawBytes(sigPoint); - } - // Checks if pairing of public key & hash is equal to pairing of generator & signature. - // e(P, H(m)) == e(G, S) - function verify(signature, message, publicKey, htfOpts) { - const P = normP1(publicKey); - const Hm = normP2Hash(message, htfOpts); - const G = G1.ProjectivePoint.BASE; - const S = normP2(signature); - // Instead of doing 2 exponentiations, we use property of billinear maps - // and do one exp after multiplying 2 points. - const ePHm = pairing(P.negate(), Hm, false); - const eGS = pairing(G, S, false); - const exp = Fp12.finalExponentiate(Fp12.mul(eGS, ePHm)); - return Fp12.eql(exp, Fp12.ONE); - } - function aggregatePublicKeys(publicKeys) { - if (!publicKeys.length) - throw new Error('Expected non-empty array'); - const agg = publicKeys.map(normP1).reduce((sum, p) => sum.add(p), G1.ProjectivePoint.ZERO); - const aggAffine = agg; //.toAffine(); - if (publicKeys[0] instanceof G1.ProjectivePoint) { - aggAffine.assertValidity(); - return aggAffine; - } - // toRawBytes ensures point validity - return aggAffine.toRawBytes(true); - } - function aggregateSignatures(signatures) { - if (!signatures.length) - throw new Error('Expected non-empty array'); - const agg = signatures.map(normP2).reduce((sum, s) => sum.add(s), G2.ProjectivePoint.ZERO); - const aggAffine = agg; //.toAffine(); - if (signatures[0] instanceof G2.ProjectivePoint) { - aggAffine.assertValidity(); - return aggAffine; - } - return Signature.toRawBytes(aggAffine); - } - // https://ethresear.ch/t/fast-verification-of-multiple-bls-signatures/5407 - // e(G, S) = e(G, SUM(n)(Si)) = MUL(n)(e(G, Si)) - function verifyBatch(signature, messages, publicKeys, htfOpts) { - // @ts-ignore - // console.log('verifyBatch', bytesToHex(signature as any), messages, publicKeys.map(bytesToHex)); - if (!messages.length) - throw new Error('Expected non-empty messages array'); - if (publicKeys.length !== messages.length) - throw new Error('Pubkey count should equal msg count'); - const sig = normP2(signature); - const nMessages = messages.map((i) => normP2Hash(i, htfOpts)); - const nPublicKeys = publicKeys.map(normP1); - try { - const paired = []; - for (const message of new Set(nMessages)) { - const groupPublicKey = nMessages.reduce((groupPublicKey, subMessage, i) => subMessage === message ? groupPublicKey.add(nPublicKeys[i]) : groupPublicKey, G1.ProjectivePoint.ZERO); - // const msg = message instanceof PointG2 ? message : await PointG2.hashToCurve(message); - // Possible to batch pairing for same msg with different groupPublicKey here - paired.push(pairing(groupPublicKey, message, false)); - } - paired.push(pairing(G1.ProjectivePoint.BASE.negate(), sig, false)); - const product = paired.reduce((a, b) => Fp12.mul(a, b), Fp12.ONE); - const exp = Fp12.finalExponentiate(product); - return Fp12.eql(exp, Fp12.ONE); - } - catch { - return false; - } - } - G1.ProjectivePoint.BASE._setWindowSize(4); - return { - getPublicKey, - sign, - verify, - verifyBatch, - aggregatePublicKeys, - aggregateSignatures, - millerLoop, - pairing, - G1, - G2, - Signature, - fields: { - Fr, - Fp, - Fp2, - Fp6, - Fp12, - }, - params: { - x: CURVE.params.x, - r: CURVE.params.r, - G1b: CURVE.G1.b, - G2b: CURVE.G2.b, - }, - utils, - }; -} -exports.bls = bls; -//# sourceMappingURL=bls.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/abstract/bls.js.map b/node_modules/@noble/curves/abstract/bls.js.map deleted file mode 100644 index 1ce9b316..00000000 --- a/node_modules/@noble/curves/abstract/bls.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"bls.js","sourceRoot":"","sources":["../src/abstract/bls.ts"],"names":[],"mappings":";;;AAcA,6CAA2D;AAC3D,yCAA8E;AAC9E,0CAA0C;AAC1C,qDAK0B;AAI1B,kBAAkB;AAClB,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,EAAE,GAAG,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curves/abstract/curve.d.ts b/node_modules/@noble/curves/abstract/curve.d.ts deleted file mode 100644 index 9caf29cc..00000000 --- a/node_modules/@noble/curves/abstract/curve.d.ts +++ /dev/null @@ -1,70 +0,0 @@ -/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */ -import { IField } from './modular.js'; -export type AffinePoint = { - x: T; - y: T; -} & { - z?: never; - t?: never; -}; -export interface Group> { - double(): T; - negate(): T; - add(other: T): T; - subtract(other: T): T; - equals(other: T): boolean; - multiply(scalar: bigint): T; -} -export type GroupConstructor = { - BASE: T; - ZERO: T; -}; -export type Mapper = (i: T[]) => T[]; -export declare function wNAF>(c: GroupConstructor, bits: number): { - constTimeNegate: (condition: boolean, item: T) => T; - unsafeLadder(elm: T, n: bigint): T; - /** - * Creates a wNAF precomputation window. Used for caching. - * Default window size is set by `utils.precompute()` and is equal to 8. - * Number of precomputed points depends on the curve size: - * 2^(𝑊−1) * (Math.ceil(𝑛 / 𝑊) + 1), where: - * - 𝑊 is the window size - * - 𝑛 is the bitlength of the curve order. - * For a 256-bit curve and window size 8, the number of precomputed points is 128 * 33 = 4224. - * @returns precomputed point tables flattened to a single array - */ - precomputeWindow(elm: T, W: number): Group[]; - /** - * Implements ec multiplication using precomputed tables and w-ary non-adjacent form. - * @param W window size - * @param precomputes precomputed tables - * @param n scalar (we don't check here, but should be less than curve order) - * @returns real and fake (for const-time) points - */ - wNAF(W: number, precomputes: T[], n: bigint): { - p: T; - f: T; - }; - wNAFCached(P: T, precomputesMap: Map, n: bigint, transform: Mapper): { - p: T; - f: T; - }; -}; -export type BasicCurve = { - Fp: IField; - n: bigint; - nBitLength?: number; - nByteLength?: number; - h: bigint; - hEff?: bigint; - Gx: T; - Gy: T; - allowInfinityPoint?: boolean; -}; -export declare function validateBasic(curve: BasicCurve & T): Readonly<{ - readonly nBitLength: number; - readonly nByteLength: number; -} & BasicCurve & T & { - p: bigint; -}>; -//# sourceMappingURL=curve.d.ts.map \ No newline at end of file diff --git a/node_modules/@noble/curves/abstract/curve.d.ts.map b/node_modules/@noble/curves/abstract/curve.d.ts.map deleted file mode 100644 index fc52e87b..00000000 --- a/node_modules/@noble/curves/abstract/curve.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"curve.d.ts","sourceRoot":"","sources":["../src/abstract/curve.ts"],"names":[],"mappings":"AAAA,sEAAsE;AAEtE,OAAO,EAAE,MAAM,EAA0B,MAAM,cAAc,CAAC;AAK9D,MAAM,MAAM,WAAW,CAAC,CAAC,IAAI;IAC3B,CAAC,EAAE,CAAC,CAAC;IACL,CAAC,EAAE,CAAC,CAAC;CACN,GAAG;IAAE,CAAC,CAAC,EAAE,KAAK,CAAC;IAAC,CAAC,CAAC,EAAE,KAAK,CAAA;CAAE,CAAC;AAE7B,MAAM,WAAW,KAAK,CAAC,CAAC,SAAS,KAAK,CAAC,CAAC,CAAC;IACvC,MAAM,IAAI,CAAC,CAAC;IACZ,MAAM,IAAI,CAAC,CAAC;IACZ,GAAG,CAAC,KAAK,EAAE,CAAC,GAAG,CAAC,CAAC;IACjB,QAAQ,CAAC,KAAK,EAAE,CAAC,GAAG,CAAC,CAAC;IACtB,MAAM,CAAC,KAAK,EAAE,CAAC,GAAG,OAAO,CAAC;IAC1B,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,CAAC,CAAC;CAC7B;AAED,MAAM,MAAM,gBAAgB,CAAC,CAAC,IAAI;IAChC,IAAI,EAAE,CAAC,CAAC;IACR,IAAI,EAAE,CAAC,CAAC;CACT,CAAC;AACF,MAAM,MAAM,MAAM,CAAC,CAAC,IAAI,CAAC,CAAC,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC;AAaxC,wBAAgB,IAAI,CAAC,CAAC,SAAS,KAAK,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,gBAAgB,CAAC,CAAC,CAAC,EAAE,IAAI,EAAE,MAAM;iCACvC,OAAO,QAAQ,CAAC,KAAG,CAAC;sBAYpC,CAAC,KAAK,MAAM;IAW9B;;;;;;;;;OASG;0BACmB,CAAC,KAAK,MAAM,GAAG,MAAM,CAAC,CAAC,EAAE;IAkB/C;;;;;;OAMG;YACK,MAAM,eAAe,CAAC,EAAE,KAAK,MAAM;WAAQ,CAAC;WAAK,CAAC;;kBAsD5C,CAAC,kBAAkB,IAAI,CAAC,EAAE,CAAC,EAAE,CAAC,KAAK,MAAM,aAAa,OAAO,CAAC,CAAC,GAAG;QAAE,CAAC,EAAE,CAAC,CAAC;QAAC,CAAC,EAAE,CAAC,CAAA;KAAE;EAcjG;AAID,MAAM,MAAM,UAAU,CAAC,CAAC,IAAI;IAC1B,EAAE,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;IACd,CAAC,EAAE,MAAM,CAAC;IACV,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,CAAC,EAAE,MAAM,CAAC;IACV,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,EAAE,EAAE,CAAC,CAAC;IACN,EAAE,EAAE,CAAC,CAAC;IACN,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B,CAAC;AAEF,wBAAgB,aAAa,CAAC,EAAE,EAAE,CAAC,EAAE,KAAK,EAAE,UAAU,CAAC,EAAE,CAAC,GAAG,CAAC;;;;;GAqB7D"} \ No newline at end of file diff --git a/node_modules/@noble/curves/abstract/curve.js b/node_modules/@noble/curves/abstract/curve.js deleted file mode 100644 index 5a005bcd..00000000 --- a/node_modules/@noble/curves/abstract/curve.js +++ /dev/null @@ -1,161 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.validateBasic = exports.wNAF = void 0; -/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */ -// Abelian group utilities -const modular_js_1 = require("./modular.js"); -const utils_js_1 = require("./utils.js"); -const _0n = BigInt(0); -const _1n = BigInt(1); -// Elliptic curve multiplication of Point by scalar. Fragile. -// Scalars should always be less than curve order: this should be checked inside of a curve itself. -// Creates precomputation tables for fast multiplication: -// - private scalar is split by fixed size windows of W bits -// - every window point is collected from window's table & added to accumulator -// - since windows are different, same point inside tables won't be accessed more than once per calc -// - each multiplication is 'Math.ceil(CURVE_ORDER / 𝑊) + 1' point additions (fixed for any scalar) -// - +1 window is neccessary for wNAF -// - wNAF reduces table size: 2x less memory + 2x faster generation, but 10% slower multiplication -// TODO: Research returning 2d JS array of windows, instead of a single window. This would allow -// windows to be in different memory locations -function wNAF(c, bits) { - const constTimeNegate = (condition, item) => { - const neg = item.negate(); - return condition ? neg : item; - }; - const opts = (W) => { - const windows = Math.ceil(bits / W) + 1; // +1, because - const windowSize = 2 ** (W - 1); // -1 because we skip zero - return { windows, windowSize }; - }; - return { - constTimeNegate, - // non-const time multiplication ladder - unsafeLadder(elm, n) { - let p = c.ZERO; - let d = elm; - while (n > _0n) { - if (n & _1n) - p = p.add(d); - d = d.double(); - n >>= _1n; - } - return p; - }, - /** - * Creates a wNAF precomputation window. Used for caching. - * Default window size is set by `utils.precompute()` and is equal to 8. - * Number of precomputed points depends on the curve size: - * 2^(𝑊−1) * (Math.ceil(𝑛 / 𝑊) + 1), where: - * - 𝑊 is the window size - * - 𝑛 is the bitlength of the curve order. - * For a 256-bit curve and window size 8, the number of precomputed points is 128 * 33 = 4224. - * @returns precomputed point tables flattened to a single array - */ - precomputeWindow(elm, W) { - const { windows, windowSize } = opts(W); - const points = []; - let p = elm; - let base = p; - for (let window = 0; window < windows; window++) { - base = p; - points.push(base); - // =1, because we skip zero - for (let i = 1; i < windowSize; i++) { - base = base.add(p); - points.push(base); - } - p = base.double(); - } - return points; - }, - /** - * Implements ec multiplication using precomputed tables and w-ary non-adjacent form. - * @param W window size - * @param precomputes precomputed tables - * @param n scalar (we don't check here, but should be less than curve order) - * @returns real and fake (for const-time) points - */ - wNAF(W, precomputes, n) { - // TODO: maybe check that scalar is less than group order? wNAF behavious is undefined otherwise - // But need to carefully remove other checks before wNAF. ORDER == bits here - const { windows, windowSize } = opts(W); - let p = c.ZERO; - let f = c.BASE; - const mask = BigInt(2 ** W - 1); // Create mask with W ones: 0b1111 for W=4 etc. - const maxNumber = 2 ** W; - const shiftBy = BigInt(W); - for (let window = 0; window < windows; window++) { - const offset = window * windowSize; - // Extract W bits. - let wbits = Number(n & mask); - // Shift number by W bits. - n >>= shiftBy; - // If the bits are bigger than max size, we'll split those. - // +224 => 256 - 32 - if (wbits > windowSize) { - wbits -= maxNumber; - n += _1n; - } - // This code was first written with assumption that 'f' and 'p' will never be infinity point: - // since each addition is multiplied by 2 ** W, it cannot cancel each other. However, - // there is negate now: it is possible that negated element from low value - // would be the same as high element, which will create carry into next window. - // It's not obvious how this can fail, but still worth investigating later. - // Check if we're onto Zero point. - // Add random point inside current window to f. - const offset1 = offset; - const offset2 = offset + Math.abs(wbits) - 1; // -1 because we skip zero - const cond1 = window % 2 !== 0; - const cond2 = wbits < 0; - if (wbits === 0) { - // The most important part for const-time getPublicKey - f = f.add(constTimeNegate(cond1, precomputes[offset1])); - } - else { - p = p.add(constTimeNegate(cond2, precomputes[offset2])); - } - } - // JIT-compiler should not eliminate f here, since it will later be used in normalizeZ() - // Even if the variable is still unused, there are some checks which will - // throw an exception, so compiler needs to prove they won't happen, which is hard. - // At this point there is a way to F be infinity-point even if p is not, - // which makes it less const-time: around 1 bigint multiply. - return { p, f }; - }, - wNAFCached(P, precomputesMap, n, transform) { - // @ts-ignore - const W = P._WINDOW_SIZE || 1; - // Calculate precomputes on a first run, reuse them after - let comp = precomputesMap.get(P); - if (!comp) { - comp = this.precomputeWindow(P, W); - if (W !== 1) { - precomputesMap.set(P, transform(comp)); - } - } - return this.wNAF(W, comp, n); - }, - }; -} -exports.wNAF = wNAF; -function validateBasic(curve) { - (0, modular_js_1.validateField)(curve.Fp); - (0, utils_js_1.validateObject)(curve, { - n: 'bigint', - h: 'bigint', - Gx: 'field', - Gy: 'field', - }, { - nBitLength: 'isSafeInteger', - nByteLength: 'isSafeInteger', - }); - // Set defaults - return Object.freeze({ - ...(0, modular_js_1.nLength)(curve.n, curve.nBitLength), - ...curve, - ...{ p: curve.Fp.ORDER }, - }); -} -exports.validateBasic = validateBasic; -//# sourceMappingURL=curve.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/abstract/curve.js.map b/node_modules/@noble/curves/abstract/curve.js.map deleted file mode 100644 index dd6ca4b3..00000000 --- a/node_modules/@noble/curves/abstract/curve.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"curve.js","sourceRoot":"","sources":["../src/abstract/curve.ts"],"names":[],"mappings":";;;AAAA,sEAAsE;AACtE,0BAA0B;AAC1B,6CAA8D;AAC9D,yCAA4C;AAC5C,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;AACtB,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;AAsBtB,6DAA6D;AAC7D,mGAAmG;AACnG,yDAAyD;AACzD,4DAA4D;AAC5D,+EAA+E;AAC/E,oGAAoG;AACpG,oGAAoG;AACpG,qCAAqC;AACrC,kGAAkG;AAClG,gGAAgG;AAChG,8CAA8C;AAC9C,SAAgB,IAAI,CAAqB,CAAsB,EAAE,IAAY;IAC3E,MAAM,eAAe,GAAG,CAAC,SAAkB,EAAE,IAAO,EAAK,EAAE;QACzD,MAAM,GAAG,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;QAC1B,OAAO,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC;IAChC,CAAC,CAAC;IACF,MAAM,IAAI,GAAG,CAAC,CAAS,EAAE,EAAE;QACzB,MAAM,OAAO,GAAG,IAAI,CAAC,IAAI,CAAC,IAAI,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,cAAc;QACvD,MAAM,UAAU,GAAG,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,0BAA0B;QAC3D,OAAO,EAAE,OAAO,EAAE,UAAU,EAAE,CAA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OAAO,MAAM,CAAC,MAAM,CAAC;QACnB,GAAG,IAAA,oBAAO,EAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC;QACrC,GAAG,KAAK;QACR,GAAG,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE;KAChB,CAAC,CAAC;AACd,CAAC;AArBD,sCAqBC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/abstract/edwards.d.ts b/node_modules/@noble/curves/abstract/edwards.d.ts deleted file mode 100644 index 9c43c661..00000000 --- a/node_modules/@noble/curves/abstract/edwards.d.ts +++ /dev/null @@ -1,89 +0,0 @@ -import * as ut from './utils.js'; -import { FHash, Hex } from './utils.js'; -import { Group, GroupConstructor, BasicCurve, AffinePoint } from './curve.js'; -export type CurveType = BasicCurve & { - a: bigint; - d: bigint; - hash: FHash; - randomBytes: (bytesLength?: number) => Uint8Array; - adjustScalarBytes?: (bytes: Uint8Array) => Uint8Array; - domain?: (data: Uint8Array, ctx: Uint8Array, phflag: boolean) => Uint8Array; - uvRatio?: (u: bigint, v: bigint) => { - isValid: boolean; - value: bigint; - }; - prehash?: FHash; - mapToCurve?: (scalar: bigint[]) => AffinePoint; -}; -declare function validateOpts(curve: CurveType): Readonly<{ - readonly nBitLength: number; - readonly nByteLength: number; - readonly Fp: import("./modular.js").IField; - readonly n: bigint; - readonly h: bigint; - readonly hEff?: bigint | undefined; - readonly Gx: bigint; - readonly Gy: bigint; - readonly allowInfinityPoint?: boolean | undefined; - readonly a: bigint; - readonly d: bigint; - readonly hash: ut.FHash; - readonly randomBytes: (bytesLength?: number | undefined) => Uint8Array; - readonly adjustScalarBytes?: ((bytes: Uint8Array) => Uint8Array) | undefined; - readonly domain?: ((data: Uint8Array, ctx: Uint8Array, phflag: boolean) => Uint8Array) | undefined; - readonly uvRatio?: ((u: bigint, v: bigint) => { - isValid: boolean; - value: bigint; - }) | undefined; - readonly prehash?: ut.FHash | undefined; - readonly mapToCurve?: ((scalar: bigint[]) => AffinePoint) | undefined; - readonly p: bigint; -}>; -export interface ExtPointType extends Group { - readonly ex: bigint; - readonly ey: bigint; - readonly ez: bigint; - readonly et: bigint; - get x(): bigint; - get y(): bigint; - assertValidity(): void; - multiply(scalar: bigint): ExtPointType; - multiplyUnsafe(scalar: bigint): ExtPointType; - isSmallOrder(): boolean; - isTorsionFree(): boolean; - clearCofactor(): ExtPointType; - toAffine(iz?: bigint): AffinePoint; - toRawBytes(isCompressed?: boolean): Uint8Array; - toHex(isCompressed?: boolean): string; -} -export interface ExtPointConstructor extends GroupConstructor { - new (x: bigint, y: bigint, z: bigint, t: bigint): ExtPointType; - fromAffine(p: AffinePoint): ExtPointType; - fromHex(hex: Hex): ExtPointType; - fromPrivateKey(privateKey: Hex): ExtPointType; -} -export type CurveFn = { - CURVE: ReturnType; - getPublicKey: (privateKey: Hex) => Uint8Array; - sign: (message: Hex, privateKey: Hex, options?: { - context?: Hex; - }) => Uint8Array; - verify: (sig: Hex, message: Hex, publicKey: Hex, options?: { - context?: Hex; - zip215: boolean; - }) => boolean; - ExtendedPoint: ExtPointConstructor; - utils: { - randomPrivateKey: () => Uint8Array; - getExtendedPublicKey: (key: Hex) => { - head: Uint8Array; - prefix: Uint8Array; - scalar: bigint; - point: ExtPointType; - pointBytes: Uint8Array; - }; - }; -}; -export declare function twistedEdwards(curveDef: CurveType): CurveFn; -export {}; -//# sourceMappingURL=edwards.d.ts.map \ No newline at end of file diff --git a/node_modules/@noble/curves/abstract/edwards.d.ts.map b/node_modules/@noble/curves/abstract/edwards.d.ts.map deleted file mode 100644 index a32123f7..00000000 --- a/node_modules/@noble/curves/abstract/edwards.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"edwards.d.ts","sourceRoot":"","sources":["../src/abstract/edwards.ts"],"names":[],"mappings":"AAGA,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAe,KAAK,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAC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aAAa,EAAE,mBAAmB,CAAC;IACnC,KAAK,EAAE;QACL,gBAAgB,EAAE,MAAM,UAAU,CAAC;QACnC,oBAAoB,EAAE,CAAC,GAAG,EAAE,GAAG,KAAK;YAClC,IAAI,EAAE,UAAU,CAAC;YACjB,MAAM,EAAE,UAAU,CAAC;YACnB,MAAM,EAAE,MAAM,CAAC;YACf,KAAK,EAAE,YAAY,CAAC;YACpB,UAAU,EAAE,UAAU,CAAC;SACxB,CAAC;KACH,CAAC;CACH,CAAC;AAGF,wBAAgB,cAAc,CAAC,QAAQ,EAAE,SAAS,GAAG,OAAO,CA8Z3D"} \ No newline at end of file diff --git a/node_modules/@noble/curves/abstract/edwards.js b/node_modules/@noble/curves/abstract/edwards.js deleted file mode 100644 index 6dd4151a..00000000 --- a/node_modules/@noble/curves/abstract/edwards.js +++ /dev/null @@ -1,429 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.twistedEdwards = void 0; -/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */ -// Twisted Edwards curve. The formula is: ax² + y² = 1 + dx²y² -const modular_js_1 = require("./modular.js"); -const ut = require("./utils.js"); -const utils_js_1 = require("./utils.js"); -const curve_js_1 = require("./curve.js"); -// Be friendly to bad ECMAScript parsers by not using bigint literals -// prettier-ignore -const _0n = BigInt(0), _1n = BigInt(1), _2n = BigInt(2), _8n = BigInt(8); -// verification rule is either zip215 or rfc8032 / nist186-5. Consult fromHex: -const VERIFY_DEFAULT = { zip215: true }; -function validateOpts(curve) { - const opts = (0, curve_js_1.validateBasic)(curve); - ut.validateObject(curve, { - hash: 'function', - a: 'bigint', - d: 'bigint', - randomBytes: 'function', - }, { - adjustScalarBytes: 'function', - domain: 'function', - uvRatio: 'function', - mapToCurve: 'function', - }); - // Set defaults - return Object.freeze({ ...opts }); -} -// It is not generic twisted curve for now, but ed25519/ed448 generic implementation -function twistedEdwards(curveDef) { - const CURVE = validateOpts(curveDef); - const { Fp, n: CURVE_ORDER, prehash: prehash, hash: cHash, randomBytes, nByteLength, h: cofactor, } = CURVE; - const MASK = _2n << (BigInt(nByteLength * 8) - _1n); - const modP = Fp.create; // Function overrides - // sqrt(u/v) - const uvRatio = CURVE.uvRatio || - ((u, v) => { - try { - return { isValid: true, value: Fp.sqrt(u * Fp.inv(v)) }; - } - catch (e) { - return { isValid: false, value: _0n }; - } - }); - const adjustScalarBytes = CURVE.adjustScalarBytes || ((bytes) => bytes); // NOOP - const domain = CURVE.domain || - ((data, ctx, phflag) => { - if (ctx.length || phflag) - throw new Error('Contexts/pre-hash are not supported'); - return data; - }); // NOOP - const inBig = (n) => typeof n === 'bigint' && _0n < n; // n in [1..] - const inRange = (n, max) => inBig(n) && inBig(max) && n < max; // n in [1..max-1] - const in0MaskRange = (n) => n === _0n || inRange(n, MASK); // n in [0..MASK-1] - function assertInRange(n, max) { - // n in [1..max-1] - if (inRange(n, max)) - return n; - throw new Error(`Expected valid scalar < ${max}, got ${typeof n} ${n}`); - } - function assertGE0(n) { - // n in [0..CURVE_ORDER-1] - return n === _0n ? n : assertInRange(n, CURVE_ORDER); // GE = prime subgroup, not full group - } - const pointPrecomputes = new Map(); - function isPoint(other) { - if (!(other instanceof Point)) - throw new Error('ExtendedPoint expected'); - } - // Extended Point works in extended coordinates: (x, y, z, t) ∋ (x=x/z, y=y/z, t=xy). - // https://en.wikipedia.org/wiki/Twisted_Edwards_curve#Extended_coordinates - class Point { - constructor(ex, ey, ez, et) { - this.ex = ex; - this.ey = ey; - this.ez = ez; - this.et = et; - if (!in0MaskRange(ex)) - throw new Error('x required'); - if (!in0MaskRange(ey)) - throw new Error('y required'); - if (!in0MaskRange(ez)) - throw new Error('z required'); - if (!in0MaskRange(et)) - throw new Error('t required'); - } - get x() { - return this.toAffine().x; - } - get y() { - return this.toAffine().y; - } - static fromAffine(p) { - if (p instanceof Point) - throw new Error('extended point not allowed'); - const { x, y } = p || {}; - if (!in0MaskRange(x) || !in0MaskRange(y)) - throw new Error('invalid affine point'); - return new Point(x, y, _1n, modP(x * y)); - } - static normalizeZ(points) { - const toInv = Fp.invertBatch(points.map((p) => p.ez)); - return points.map((p, i) => p.toAffine(toInv[i])).map(Point.fromAffine); - } - // "Private method", don't use it directly - _setWindowSize(windowSize) { - this._WINDOW_SIZE = windowSize; - pointPrecomputes.delete(this); - } - // Not required for fromHex(), which always creates valid points. - // Could be useful for fromAffine(). - assertValidity() { - const { a, d } = CURVE; - if (this.is0()) - throw new Error('bad point: ZERO'); // TODO: optimize, with vars below? - // Equation in affine coordinates: ax² + y² = 1 + dx²y² - // Equation in projective coordinates (X/Z, Y/Z, Z): (aX² + Y²)Z² = Z⁴ + dX²Y² - const { ex: X, ey: Y, ez: Z, et: T } = this; - const X2 = modP(X * X); // X² - const Y2 = modP(Y * Y); // Y² - const Z2 = modP(Z * Z); // Z² - const Z4 = modP(Z2 * Z2); // Z⁴ - const aX2 = modP(X2 * a); // aX² - const left = modP(Z2 * modP(aX2 + Y2)); // (aX² + Y²)Z² - const right = modP(Z4 + modP(d * modP(X2 * Y2))); // Z⁴ + dX²Y² - if (left !== right) - throw new Error('bad point: equation left != right (1)'); - // In Extended coordinates we also have T, which is x*y=T/Z: check X*Y == Z*T - const XY = modP(X * Y); - const ZT = modP(Z * T); - if (XY !== ZT) - throw new Error('bad point: equation left != right (2)'); - } - // Compare one point to another. - equals(other) { - isPoint(other); - const { ex: X1, ey: Y1, ez: Z1 } = this; - const { ex: X2, ey: Y2, ez: Z2 } = other; - const X1Z2 = modP(X1 * Z2); - const X2Z1 = modP(X2 * Z1); - const Y1Z2 = modP(Y1 * Z2); - const Y2Z1 = modP(Y2 * Z1); - return X1Z2 === X2Z1 && Y1Z2 === Y2Z1; - } - is0() { - return this.equals(Point.ZERO); - } - negate() { - // Flips point sign to a negative one (-x, y in affine coords) - return new Point(modP(-this.ex), this.ey, this.ez, modP(-this.et)); - } - // Fast algo for doubling Extended Point. - // https://hyperelliptic.org/EFD/g1p/auto-twisted-extended.html#doubling-dbl-2008-hwcd - // Cost: 4M + 4S + 1*a + 6add + 1*2. - double() { - const { a } = CURVE; - const { ex: X1, ey: Y1, ez: Z1 } = this; - const A = modP(X1 * X1); // A = X12 - const B = modP(Y1 * Y1); // B = Y12 - const C = modP(_2n * modP(Z1 * Z1)); // C = 2*Z12 - const D = modP(a * A); // D = a*A - const x1y1 = X1 + Y1; - const E = modP(modP(x1y1 * x1y1) - A - B); // E = (X1+Y1)2-A-B - const G = D + B; // G = D+B - const F = G - C; // F = G-C - const H = D - B; // H = D-B - const X3 = modP(E * F); // X3 = E*F - const Y3 = modP(G * H); // Y3 = G*H - const T3 = modP(E * H); // T3 = E*H - const Z3 = modP(F * G); // Z3 = F*G - return new Point(X3, Y3, Z3, T3); - } - // Fast algo for adding 2 Extended Points. - // https://hyperelliptic.org/EFD/g1p/auto-twisted-extended.html#addition-add-2008-hwcd - // Cost: 9M + 1*a + 1*d + 7add. - add(other) { - isPoint(other); - const { a, d } = CURVE; - const { ex: X1, ey: Y1, ez: Z1, et: T1 } = this; - const { ex: X2, ey: Y2, ez: Z2, et: T2 } = other; - // Faster algo for adding 2 Extended Points when curve's a=-1. - // http://hyperelliptic.org/EFD/g1p/auto-twisted-extended-1.html#addition-add-2008-hwcd-4 - // Cost: 8M + 8add + 2*2. - // Note: It does not check whether the `other` point is valid. - if (a === BigInt(-1)) { - const A = modP((Y1 - X1) * (Y2 + X2)); - const B = modP((Y1 + X1) * (Y2 - X2)); - const F = modP(B - A); - if (F === _0n) - return this.double(); // Same point. Tests say it doesn't affect timing - const C = modP(Z1 * _2n * T2); - const D = modP(T1 * _2n * Z2); - const E = D + C; - const G = B + A; - const H = D - C; - const X3 = modP(E * F); - const Y3 = modP(G * H); - const T3 = modP(E * H); - const Z3 = modP(F * G); - return new Point(X3, Y3, Z3, T3); - } - const A = modP(X1 * X2); // A = X1*X2 - const B = modP(Y1 * Y2); // B = Y1*Y2 - const C = modP(T1 * d * T2); // C = T1*d*T2 - const D = modP(Z1 * Z2); // D = Z1*Z2 - const E = modP((X1 + Y1) * (X2 + Y2) - A - B); // E = (X1+Y1)*(X2+Y2)-A-B - const F = D - C; // F = D-C - const G = D + C; // G = D+C - const H = modP(B - a * A); // H = B-a*A - const X3 = modP(E * F); // X3 = E*F - const Y3 = modP(G * H); // Y3 = G*H - const T3 = modP(E * H); // T3 = E*H - const Z3 = modP(F * G); // Z3 = F*G - return new Point(X3, Y3, Z3, T3); - } - subtract(other) { - return this.add(other.negate()); - } - wNAF(n) { - return wnaf.wNAFCached(this, pointPrecomputes, n, Point.normalizeZ); - } - // Constant-time multiplication. - multiply(scalar) { - const { p, f } = this.wNAF(assertInRange(scalar, CURVE_ORDER)); - return Point.normalizeZ([p, f])[0]; - } - // Non-constant-time multiplication. Uses double-and-add algorithm. - // It's faster, but should only be used when you don't care about - // an exposed private key e.g. sig verification. - // Does NOT allow scalars higher than CURVE.n. - multiplyUnsafe(scalar) { - let n = assertGE0(scalar); // 0 <= scalar < CURVE.n - if (n === _0n) - return I; - if (this.equals(I) || n === _1n) - return this; - if (this.equals(G)) - return this.wNAF(n).p; - return wnaf.unsafeLadder(this, n); - } - // Checks if point is of small order. - // If you add something to small order point, you will have "dirty" - // point with torsion component. - // Multiplies point by cofactor and checks if the result is 0. - isSmallOrder() { - return this.multiplyUnsafe(cofactor).is0(); - } - // Multiplies point by curve order and checks if the result is 0. - // Returns `false` is the point is dirty. - isTorsionFree() { - return wnaf.unsafeLadder(this, CURVE_ORDER).is0(); - } - // Converts Extended point to default (x, y) coordinates. - // Can accept precomputed Z^-1 - for example, from invertBatch. - toAffine(iz) { - const { ex: x, ey: y, ez: z } = this; - const is0 = this.is0(); - if (iz == null) - iz = is0 ? _8n : Fp.inv(z); // 8 was chosen arbitrarily - const ax = modP(x * iz); - const ay = modP(y * iz); - const zz = modP(z * iz); - if (is0) - return { x: _0n, y: _1n }; - if (zz !== _1n) - throw new Error('invZ was invalid'); - return { x: ax, y: ay }; - } - clearCofactor() { - const { h: cofactor } = CURVE; - if (cofactor === _1n) - return this; - return this.multiplyUnsafe(cofactor); - } - // Converts hash string or Uint8Array to Point. - // Uses algo from RFC8032 5.1.3. - static fromHex(hex, zip215 = false) { - const { d, a } = CURVE; - const len = Fp.BYTES; - hex = (0, utils_js_1.ensureBytes)('pointHex', hex, len); // copy hex to a new array - const normed = hex.slice(); // copy again, we'll manipulate it - const lastByte = hex[len - 1]; // select last byte - normed[len - 1] = lastByte & ~0x80; // clear last bit - const y = ut.bytesToNumberLE(normed); - if (y === _0n) { - // y=0 is allowed - } - else { - // RFC8032 prohibits >= p, but ZIP215 doesn't - if (zip215) - assertInRange(y, MASK); // zip215=true [1..P-1] (2^255-19-1 for ed25519) - else - assertInRange(y, Fp.ORDER); // zip215=false [1..MASK-1] (2^256-1 for ed25519) - } - // Ed25519: x² = (y²-1)/(dy²+1) mod p. Ed448: x² = (y²-1)/(dy²-1) mod p. Generic case: - // ax²+y²=1+dx²y² => y²-1=dx²y²-ax² => y²-1=x²(dy²-a) => x²=(y²-1)/(dy²-a) - const y2 = modP(y * y); // denominator is always non-0 mod p. - const u = modP(y2 - _1n); // u = y² - 1 - const v = modP(d * y2 - a); // v = d y² + 1. - let { isValid, value: x } = uvRatio(u, v); // √(u/v) - if (!isValid) - throw new Error('Point.fromHex: invalid y coordinate'); - const isXOdd = (x & _1n) === _1n; // There are 2 square roots. Use x_0 bit to select proper - const isLastByteOdd = (lastByte & 0x80) !== 0; // x_0, last bit - if (!zip215 && x === _0n && isLastByteOdd) - // if x=0 and x_0 = 1, fail - throw new Error('Point.fromHex: x=0 and x_0=1'); - if (isLastByteOdd !== isXOdd) - x = modP(-x); // if x_0 != x mod 2, set x = p-x - return Point.fromAffine({ x, y }); - } - static fromPrivateKey(privKey) { - return getExtendedPublicKey(privKey).point; - } - toRawBytes() { - const { x, y } = this.toAffine(); - const bytes = ut.numberToBytesLE(y, Fp.BYTES); // each y has 2 x values (x, -y) - bytes[bytes.length - 1] |= x & _1n ? 0x80 : 0; // when compressing, it's enough to store y - return bytes; // and use the last byte to encode sign of x - } - toHex() { - return ut.bytesToHex(this.toRawBytes()); // Same as toRawBytes, but returns string. - } - } - Point.BASE = new Point(CURVE.Gx, CURVE.Gy, _1n, modP(CURVE.Gx * CURVE.Gy)); - Point.ZERO = new Point(_0n, _1n, _1n, _0n); // 0, 1, 1, 0 - const { BASE: G, ZERO: I } = Point; - const wnaf = (0, curve_js_1.wNAF)(Point, nByteLength * 8); - function modN(a) { - return (0, modular_js_1.mod)(a, CURVE_ORDER); - } - // Little-endian SHA512 with modulo n - function modN_LE(hash) { - return modN(ut.bytesToNumberLE(hash)); - } - /** Convenience method that creates public key and other stuff. RFC8032 5.1.5 */ - function getExtendedPublicKey(key) { - const len = nByteLength; - key = (0, utils_js_1.ensureBytes)('private key', key, len); - // Hash private key with curve's hash function to produce uniformingly random input - // Check byte lengths: ensure(64, h(ensure(32, key))) - const hashed = (0, utils_js_1.ensureBytes)('hashed private key', cHash(key), 2 * len); - const head = adjustScalarBytes(hashed.slice(0, len)); // clear first half bits, produce FE - const prefix = hashed.slice(len, 2 * len); // second half is called key prefix (5.1.6) - const scalar = modN_LE(head); // The actual private scalar - const point = G.multiply(scalar); // Point on Edwards curve aka public key - const pointBytes = point.toRawBytes(); // Uint8Array representation - return { head, prefix, scalar, point, pointBytes }; - } - // Calculates EdDSA pub key. RFC8032 5.1.5. Privkey is hashed. Use first half with 3 bits cleared - function getPublicKey(privKey) { - return getExtendedPublicKey(privKey).pointBytes; - } - // int('LE', SHA512(dom2(F, C) || msgs)) mod N - function hashDomainToScalar(context = new Uint8Array(), ...msgs) { - const msg = ut.concatBytes(...msgs); - return modN_LE(cHash(domain(msg, (0, utils_js_1.ensureBytes)('context', context), !!prehash))); - } - /** Signs message with privateKey. RFC8032 5.1.6 */ - function sign(msg, privKey, options = {}) { - msg = (0, utils_js_1.ensureBytes)('message', msg); - if (prehash) - msg = prehash(msg); // for ed25519ph etc. - const { prefix, scalar, pointBytes } = getExtendedPublicKey(privKey); - const r = hashDomainToScalar(options.context, prefix, msg); // r = dom2(F, C) || prefix || PH(M) - const R = G.multiply(r).toRawBytes(); // R = rG - const k = hashDomainToScalar(options.context, R, pointBytes, msg); // R || A || PH(M) - const s = modN(r + k * scalar); // S = (r + k * s) mod L - assertGE0(s); // 0 <= s < l - const res = ut.concatBytes(R, ut.numberToBytesLE(s, Fp.BYTES)); - return (0, utils_js_1.ensureBytes)('result', res, nByteLength * 2); // 64-byte signature - } - const verifyOpts = VERIFY_DEFAULT; - function verify(sig, msg, publicKey, options = verifyOpts) { - const { context, zip215 } = options; - const len = Fp.BYTES; // Verifies EdDSA signature against message and public key. RFC8032 5.1.7. - sig = (0, utils_js_1.ensureBytes)('signature', sig, 2 * len); // An extended group equation is checked. - msg = (0, utils_js_1.ensureBytes)('message', msg); - if (prehash) - msg = prehash(msg); // for ed25519ph, etc - const s = ut.bytesToNumberLE(sig.slice(len, 2 * len)); - // zip215: true is good for consensus-critical apps and allows points < 2^256 - // zip215: false follows RFC8032 / NIST186-5 and restricts points to CURVE.p - let A, R, SB; - try { - A = Point.fromHex(publicKey, zip215); - R = Point.fromHex(sig.slice(0, len), zip215); - SB = G.multiplyUnsafe(s); // 0 <= s < l is done inside - } - catch (error) { - return false; - } - if (!zip215 && A.isSmallOrder()) - return false; - const k = hashDomainToScalar(context, R.toRawBytes(), A.toRawBytes(), msg); - const RkA = R.add(A.multiplyUnsafe(k)); - // [8][S]B = [8]R + [8][k]A' - return RkA.subtract(SB).clearCofactor().equals(Point.ZERO); - } - G._setWindowSize(8); // Enable precomputes. Slows down first publicKey computation by 20ms. - const utils = { - getExtendedPublicKey, - // ed25519 private keys are uniform 32b. No need to check for modulo bias, like in secp256k1. - randomPrivateKey: () => randomBytes(Fp.BYTES), - /** - * We're doing scalar multiplication (used in getPublicKey etc) with precomputed BASE_POINT - * values. This slows down first getPublicKey() by milliseconds (see Speed section), - * but allows to speed-up subsequent getPublicKey() calls up to 20x. - * @param windowSize 2, 4, 8, 16 - */ - precompute(windowSize = 8, point = Point.BASE) { - point._setWindowSize(windowSize); - point.multiply(BigInt(3)); - return point; - }, - }; - return { - CURVE, - getPublicKey, - sign, - verify, - ExtendedPoint: Point, - utils, - }; -} -exports.twistedEdwards = twistedEdwards; -//# sourceMappingURL=edwards.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/abstract/edwards.js.map b/node_modules/@noble/curves/abstract/edwards.js.map deleted file mode 100644 index 73ac6d5a..00000000 --- a/node_modules/@noble/curves/abstract/edwards.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"edwards.js","sourceRoot":"","sources":["../src/abstract/edwards.ts"],"names":[],"mappings":";;;AAAA,sEAAsE;AACtE,8DAA8D;AAC9D,6CAAmC;AACnC,iCAAiC;AACjC,yCAAqD;AACrD,yCAAmG;AAEnG,qEAAqE;AACrE,kBAAkB;AAClB,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,EAAE,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,EAAE,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,EAAE,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;AAezE,8EAA8E;AAC9E,MAAM,cAAc,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;AAExC,SAAS,YAAY,CAAC,KAAgB;IACpC,MAAM,IAAI,GAAG,IAAA,wBAAa,EAAC,KAAK,CAAC,CAAC;IAClC,EAAE,CAAC,cAAc,CACf,KAAK,EACL;QACE,IAAI,EAAE,UAAU;QAChB,CAAC,EAAE,QAAQ;QACX,CAAC,EAAE,QAAQ;QACX,WAAW,EAAE,UAAU;KACxB,EACD;QACE,iBAAiB,EAAE,UAAU;QAC7B,MAAM,EAAE,UAAU;QAClB,OAAO,EAAE,UAAU;QACnB,UAAU,EAAE,UAAU;KACvB,CACF,CAAC;IACF,eAAe;IACf,OAAO,MAAM,CAAC,MAAM,CAAC,EAAE,GAAG,IAAI,EAAW,CAAC,CAAC;AAC7C,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AAU,CAAC,UAAU,GAAG,CAAC,EAAE,KAAK,GAAG,KAAK,CAAC,IAAI;YAC3C,KAAK,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;YACjC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;YAC1B,OAAO,KAAK,CAAC;QACf,CAAC;KACF,CAAC;IAEF,OAAO;QACL,KAAK;QACL,YAAY;QACZ,IAAI;QACJ,MAAM;QACN,aAAa,EAAE,KAAK;QACpB,KAAK;KACN,CAAC;AACJ,CAAC;AA9ZD,wCA8ZC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/abstract/hash-to-curve.d.ts b/node_modules/@noble/curves/abstract/hash-to-curve.d.ts deleted file mode 100644 index 7f099503..00000000 --- a/node_modules/@noble/curves/abstract/hash-to-curve.d.ts +++ /dev/null @@ -1,57 +0,0 @@ -/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */ -import type { Group, GroupConstructor, AffinePoint } from './curve.js'; -import { IField } from './modular.js'; -import { CHash } from './utils.js'; -/** - * * `DST` is a domain separation tag, defined in section 2.2.5 - * * `p` characteristic of F, where F is a finite field of characteristic p and order q = p^m - * * `m` is extension degree (1 for prime fields) - * * `k` is the target security target in bits (e.g. 128), from section 5.1 - * * `expand` is `xmd` (SHA2, SHA3, BLAKE) or `xof` (SHAKE, BLAKE-XOF) - * * `hash` conforming to `utils.CHash` interface, with `outputLen` / `blockLen` props - */ -type UnicodeOrBytes = string | Uint8Array; -export type Opts = { - DST: UnicodeOrBytes; - p: bigint; - m: number; - k: number; - expand: 'xmd' | 'xof'; - hash: CHash; -}; -export declare function expand_message_xmd(msg: Uint8Array, DST: Uint8Array, lenInBytes: number, H: CHash): Uint8Array; -export declare function expand_message_xof(msg: Uint8Array, DST: Uint8Array, lenInBytes: number, k: number, H: CHash): Uint8Array; -/** - * Hashes arbitrary-length byte strings to a list of one or more elements of a finite field F - * https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-hash-to-curve-11#section-5.3 - * @param msg a byte string containing the message to hash - * @param count the number of elements of F to output - * @param options `{DST: string, p: bigint, m: number, k: number, expand: 'xmd' | 'xof', hash: H}`, see above - * @returns [u_0, ..., u_(count - 1)], a list of field elements. - */ -export declare function hash_to_field(msg: Uint8Array, count: number, options: Opts): bigint[][]; -export declare function isogenyMap>(field: F, map: [T[], T[], T[], T[]]): (x: T, y: T) => { - x: T; - y: T; -}; -export interface H2CPoint extends Group> { - add(rhs: H2CPoint): H2CPoint; - toAffine(iz?: bigint): AffinePoint; - clearCofactor(): H2CPoint; - assertValidity(): void; -} -export interface H2CPointConstructor extends GroupConstructor> { - fromAffine(ap: AffinePoint): H2CPoint; -} -export type MapToCurve = (scalar: bigint[]) => AffinePoint; -export type htfBasicOpts = { - DST: UnicodeOrBytes; -}; -export declare function createHasher(Point: H2CPointConstructor, mapToCurve: MapToCurve, def: Opts & { - encodeDST?: UnicodeOrBytes; -}): { - hashToCurve(msg: Uint8Array, options?: htfBasicOpts): H2CPoint; - encodeToCurve(msg: Uint8Array, options?: htfBasicOpts): H2CPoint; -}; -export {}; -//# sourceMappingURL=hash-to-curve.d.ts.map \ No newline at end of file diff --git a/node_modules/@noble/curves/abstract/hash-to-curve.d.ts.map b/node_modules/@noble/curves/abstract/hash-to-curve.d.ts.map deleted file mode 100644 index e89ad844..00000000 --- a/node_modules/@noble/curves/abstract/hash-to-curve.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"hash-to-curve.d.ts","sourceRoot":"","sources":["../src/abstract/hash-to-curve.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,OAAO,KAAK,EAAE,KAAK,EAAE,gBAAgB,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AACvE,OAAO,EAAO,MAAM,EAAE,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAmB,KAAK,EAA4C,MAAM,YAAY,CAAC;AAE9F;;;;;;;GAOG;AACH,KAAK,cAAc,GAAG,MAAM,G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B,cAAc,IAAI,IAAI,CAAC;CACxB;AAED,MAAM,WAAW,mBAAmB,CAAC,CAAC,CAAE,SAAQ,gBAAgB,CAAC,QAAQ,CAAC,CAAC,CAAC,CAAC;IAC3E,UAAU,CAAC,EAAE,EAAE,WAAW,CAAC,CAAC,CAAC,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;CAC7C;AAED,MAAM,MAAM,UAAU,CAAC,CAAC,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,KAAK,WAAW,CAAC,CAAC,CAAC,CAAC;AAIjE,MAAM,MAAM,YAAY,GAAG;IAAE,GAAG,EAAE,cAAc,CAAA;CAAE,CAAC;AAEnD,wBAAgB,YAAY,CAAC,CAAC,EAC5B,KAAK,EAAE,mBAAmB,CAAC,CAAC,CAAC,EAC7B,UAAU,EAAE,UAAU,CAAC,CAAC,CAAC,EACzB,GAAG,EAAE,IAAI,GAAG;IAAE,SAAS,CAAC,EAAE,cAAc,CAAA;CAAE;qBAMvB,UAAU,YAAY,YAAY;uBAUhC,UAAU,YAAY,YAAY;EAOxD"} \ No newline at end of file diff --git a/node_modules/@noble/curves/abstract/hash-to-curve.js b/node_modules/@noble/curves/abstract/hash-to-curve.js deleted file mode 100644 index 418a80c4..00000000 --- a/node_modules/@noble/curves/abstract/hash-to-curve.js +++ /dev/null @@ -1,175 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createHasher = exports.isogenyMap = exports.hash_to_field = exports.expand_message_xof = exports.expand_message_xmd = void 0; -const modular_js_1 = require("./modular.js"); -const utils_js_1 = require("./utils.js"); -function validateDST(dst) { - if (dst instanceof Uint8Array) - return dst; - if (typeof dst === 'string') - return (0, utils_js_1.utf8ToBytes)(dst); - throw new Error('DST must be Uint8Array or string'); -} -// Octet Stream to Integer. "spec" implementation of os2ip is 2.5x slower vs bytesToNumberBE. -const os2ip = utils_js_1.bytesToNumberBE; -// Integer to Octet Stream (numberToBytesBE) -function i2osp(value, length) { - if (value < 0 || value >= 1 << (8 * length)) { - throw new Error(`bad I2OSP call: value=${value} length=${length}`); - } - const res = Array.from({ length }).fill(0); - for (let i = length - 1; i >= 0; i--) { - res[i] = value & 0xff; - value >>>= 8; - } - return new Uint8Array(res); -} -function strxor(a, b) { - const arr = new Uint8Array(a.length); - for (let i = 0; i < a.length; i++) { - arr[i] = a[i] ^ b[i]; - } - return arr; -} -function isBytes(item) { - if (!(item instanceof Uint8Array)) - throw new Error('Uint8Array expected'); -} -function isNum(item) { - if (!Number.isSafeInteger(item)) - throw new Error('number expected'); -} -// Produces a uniformly random byte string using a cryptographic hash function H that outputs b bits -// https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-hash-to-curve-11#section-5.4.1 -function expand_message_xmd(msg, DST, lenInBytes, H) { - isBytes(msg); - isBytes(DST); - isNum(lenInBytes); - // https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-hash-to-curve-16#section-5.3.3 - if (DST.length > 255) - DST = H((0, utils_js_1.concatBytes)((0, utils_js_1.utf8ToBytes)('H2C-OVERSIZE-DST-'), DST)); - const { outputLen: b_in_bytes, blockLen: r_in_bytes } = H; - const ell = Math.ceil(lenInBytes / b_in_bytes); - if (ell > 255) - throw new Error('Invalid xmd length'); - const DST_prime = (0, utils_js_1.concatBytes)(DST, i2osp(DST.length, 1)); - const Z_pad = i2osp(0, r_in_bytes); - const l_i_b_str = i2osp(lenInBytes, 2); // len_in_bytes_str - const b = new Array(ell); - const b_0 = H((0, utils_js_1.concatBytes)(Z_pad, msg, l_i_b_str, i2osp(0, 1), DST_prime)); - b[0] = H((0, utils_js_1.concatBytes)(b_0, i2osp(1, 1), DST_prime)); - for (let i = 1; i <= ell; i++) { - const args = [strxor(b_0, b[i - 1]), i2osp(i + 1, 1), DST_prime]; - b[i] = H((0, utils_js_1.concatBytes)(...args)); - } - const pseudo_random_bytes = (0, utils_js_1.concatBytes)(...b); - return pseudo_random_bytes.slice(0, lenInBytes); -} -exports.expand_message_xmd = expand_message_xmd; -function expand_message_xof(msg, DST, lenInBytes, k, H) { - isBytes(msg); - isBytes(DST); - isNum(lenInBytes); - // https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-hash-to-curve-16#section-5.3.3 - // DST = H('H2C-OVERSIZE-DST-' || a_very_long_DST, Math.ceil((lenInBytes * k) / 8)); - if (DST.length > 255) { - const dkLen = Math.ceil((2 * k) / 8); - DST = H.create({ dkLen }).update((0, utils_js_1.utf8ToBytes)('H2C-OVERSIZE-DST-')).update(DST).digest(); - } - if (lenInBytes > 65535 || DST.length > 255) - throw new Error('expand_message_xof: invalid lenInBytes'); - return (H.create({ dkLen: lenInBytes }) - .update(msg) - .update(i2osp(lenInBytes, 2)) - // 2. DST_prime = DST || I2OSP(len(DST), 1) - .update(DST) - .update(i2osp(DST.length, 1)) - .digest()); -} -exports.expand_message_xof = expand_message_xof; -/** - * Hashes arbitrary-length byte strings to a list of one or more elements of a finite field F - * https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-hash-to-curve-11#section-5.3 - * @param msg a byte string containing the message to hash - * @param count the number of elements of F to output - * @param options `{DST: string, p: bigint, m: number, k: number, expand: 'xmd' | 'xof', hash: H}`, see above - * @returns [u_0, ..., u_(count - 1)], a list of field elements. - */ -function hash_to_field(msg, count, options) { - (0, utils_js_1.validateObject)(options, { - DST: 'string', - p: 'bigint', - m: 'isSafeInteger', - k: 'isSafeInteger', - hash: 'hash', - }); - const { p, k, m, hash, expand, DST: _DST } = options; - isBytes(msg); - isNum(count); - const DST = validateDST(_DST); - const log2p = p.toString(2).length; - const L = Math.ceil((log2p + k) / 8); // section 5.1 of ietf draft link above - const len_in_bytes = count * m * L; - let prb; // pseudo_random_bytes - if (expand === 'xmd') { - prb = expand_message_xmd(msg, DST, len_in_bytes, hash); - } - else if (expand === 'xof') { - prb = expand_message_xof(msg, DST, len_in_bytes, k, hash); - } - else if (expand === '_internal_pass') { - // for internal tests only - prb = msg; - } - else { - throw new Error('expand must be "xmd" or "xof"'); - } - const u = new Array(count); - for (let i = 0; i < count; i++) { - const e = new Array(m); - for (let j = 0; j < m; j++) { - const elm_offset = L * (j + i * m); - const tv = prb.subarray(elm_offset, elm_offset + L); - e[j] = (0, modular_js_1.mod)(os2ip(tv), p); - } - u[i] = e; - } - return u; -} -exports.hash_to_field = hash_to_field; -function isogenyMap(field, map) { - // Make same order as in spec - const COEFF = map.map((i) => Array.from(i).reverse()); - return (x, y) => { - const [xNum, xDen, yNum, yDen] = COEFF.map((val) => val.reduce((acc, i) => field.add(field.mul(acc, x), i))); - x = field.div(xNum, xDen); // xNum / xDen - y = field.mul(y, field.div(yNum, yDen)); // y * (yNum / yDev) - return { x, y }; - }; -} -exports.isogenyMap = isogenyMap; -function createHasher(Point, mapToCurve, def) { - if (typeof mapToCurve !== 'function') - throw new Error('mapToCurve() must be defined'); - return { - // Encodes byte string to elliptic curve - // https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-hash-to-curve-16#section-3 - hashToCurve(msg, options) { - const u = hash_to_field(msg, 2, { ...def, DST: def.DST, ...options }); - const u0 = Point.fromAffine(mapToCurve(u[0])); - const u1 = Point.fromAffine(mapToCurve(u[1])); - const P = u0.add(u1).clearCofactor(); - P.assertValidity(); - return P; - }, - // https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-hash-to-curve-16#section-3 - encodeToCurve(msg, options) { - const u = hash_to_field(msg, 1, { ...def, DST: def.encodeDST, ...options }); - const P = Point.fromAffine(mapToCurve(u[0])).clearCofactor(); - P.assertValidity(); - return P; - }, - }; -} -exports.createHasher = createHasher; -//# sourceMappingURL=hash-to-curve.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/abstract/hash-to-curve.js.map b/node_modules/@noble/curves/abstract/hash-to-curve.js.map deleted file mode 100644 index c2fa8bd2..00000000 --- a/node_modules/@noble/curves/abstract/hash-to-curve.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"hash-to-curve.js","sourceRoot":"","sources":["../src/abstract/hash-to-curve.ts"],"names":[],"mapp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G,EAAE,GAAG,EAAE,GAAG,CAAC,GAAG,EAAE,GAAG,OAAO,EAAU,CAAC,CAAC;YAC9E,MAAM,EAAE,GAAG,KAAK,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YAC9C,MAAM,EAAE,GAAG,KAAK,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;YAC9C,MAAM,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,CAAC,aAAa,EAAE,CAAC;YACrC,CAAC,CAAC,cAAc,EAAE,CAAC;YACnB,OAAO,CAAC,CAAC;QACX,CAAC;QAED,mFAAmF;QACnF,aAAa,CAAC,GAAe,EAAE,OAAsB;YACnD,MAAM,CAAC,GAAG,aAAa,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,GAAG,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,SAAS,EAAE,GAAG,OAAO,EAAU,CAAC,CAAC;YACpF,MAAM,CAAC,GAAG,KAAK,CAAC,UAAU,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,aAAa,EAAE,CAAC;YAC7D,CAAC,CAAC,cAAc,EAAE,CAAC;YACnB,OAAO,CAAC,CAAC;QACX,CAAC;KACF,CAAC;AACJ,CAAC;AA1BD,oCA0BC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/abstract/modular.d.ts b/node_modules/@noble/curves/abstract/modular.d.ts deleted file mode 100644 index 3acaa1ef..00000000 --- a/node_modules/@noble/curves/abstract/modular.d.ts +++ /dev/null @@ -1,83 +0,0 @@ -export declare function mod(a: bigint, b: bigint): bigint; -/** - * Efficiently raise num to power and do modular division. - * Unsafe in some contexts: uses ladder, so can expose bigint bits. - * @example - * pow(2n, 6n, 11n) // 64n % 11n == 9n - */ -export declare function pow(num: bigint, power: bigint, modulo: bigint): bigint; -export declare function pow2(x: bigint, power: bigint, modulo: bigint): bigint; -export declare function invert(number: bigint, modulo: bigint): bigint; -export declare function tonelliShanks(P: bigint): (Fp: IField, n: T) => T; -export declare function FpSqrt(P: bigint): (Fp: IField, n: T) => T; -export declare const isNegativeLE: (num: bigint, modulo: bigint) => boolean; -export interface IField { - ORDER: bigint; - BYTES: number; - BITS: number; - MASK: bigint; - ZERO: T; - ONE: T; - create: (num: T) => T; - isValid: (num: T) => boolean; - is0: (num: T) => boolean; - neg(num: T): T; - inv(num: T): T; - sqrt(num: T): T; - sqr(num: T): T; - eql(lhs: T, rhs: T): boolean; - add(lhs: T, rhs: T): T; - sub(lhs: T, rhs: T): T; - mul(lhs: T, rhs: T | bigint): T; - pow(lhs: T, power: bigint): T; - div(lhs: T, rhs: T | bigint): T; - addN(lhs: T, rhs: T): T; - subN(lhs: T, rhs: T): T; - mulN(lhs: T, rhs: T | bigint): T; - sqrN(num: T): T; - isOdd?(num: T): boolean; - pow(lhs: T, power: bigint): T; - invertBatch: (lst: T[]) => T[]; - toBytes(num: T): Uint8Array; - fromBytes(bytes: Uint8Array): T; - cmov(a: T, b: T, c: boolean): T; -} -export declare function validateField(field: IField): IField; -export declare function FpPow(f: IField, num: T, power: bigint): T; -export declare function FpInvertBatch(f: IField, nums: T[]): T[]; -export declare function FpDiv(f: IField, lhs: T, rhs: T | bigint): T; -export declare function FpIsSquare(f: IField): (x: T) => boolean; -export declare function nLength(n: bigint, nBitLength?: number): { - nBitLength: number; - nByteLength: number; -}; -type FpField = IField & Required, 'isOdd'>>; -/** - * Initializes a galois field over prime. Non-primes are not supported for now. - * Do not init in loop: slow. Very fragile: always run a benchmark on change. - * Major performance gains: - * a) non-normalized operations like mulN instead of mul - * b) `Object.freeze` - * c) Same object shape: never add or remove keys - * @param ORDER prime positive bigint - * @param bitLen how many bits the field consumes - * @param isLE (def: false) if encoding / decoding should be in little-endian - * @param redef optional faster redefinitions of sqrt and other methods - */ -export declare function Field(ORDER: bigint, bitLen?: number, isLE?: boolean, redef?: Partial>): Readonly; -export declare function FpSqrtOdd(Fp: IField, elm: T): T; -export declare function FpSqrtEven(Fp: IField, elm: T): T; -/** - * FIPS 186 B.4.1-compliant "constant-time" private key generation utility. - * Can take (n+8) or more bytes of uniform input e.g. from CSPRNG or KDF - * and convert them into private scalar, with the modulo bias being negligible. - * Needs at least 40 bytes of input for 32-byte private key. - * https://research.kudelskisecurity.com/2020/07/28/the-definitive-guide-to-modulo-bias-and-how-to-avoid-it/ - * @param hash hash output from SHA3 or a similar function - * @param groupOrder size of subgroup - (e.g. curveFn.CURVE.n) - * @param isLE interpret hash bytes as LE num - * @returns valid private scalar - */ -export declare function hashToPrivateScalar(hash: string | Uint8Array, groupOrder: bigint, isLE?: boolean): bigint; -export {}; -//# sourceMappingURL=modular.d.ts.map \ No newline at end of file diff --git a/node_modules/@noble/curves/abstract/modular.d.ts.map b/node_modules/@noble/curves/abstract/modular.d.ts.map deleted file mode 100644 index 49b9d759..00000000 --- a/node_modules/@noble/curves/abstract/modular.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"modular.d.ts","sourceRoot":"","sources":["../src/abstract/modular.ts"],"names":[],"mappings":"AAmBA,wBAAgB,GAAG,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,GAAG,MAAM,CAGhD;AACD;;;;;GAKG;AAEH,wBAAgB,GAAG,CAAC,GAAG,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAUtE;AAGD,wBAAgB,IAAI,CAAC,CAAC,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAOrE;AAGD,wBAAgB,MAAM,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAsB7D;AAKD,wBAAgB,aAAa,CAAC,CAAC,EAAE,MAAM,iCAsDtC;AAED,wBAAgB,MAAM,CAAC,CAAC,EAAE,MAAM,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AE,MAAM,CAAC,CAAC,CAAC,OAE7B,CAAC,KAAG,OAAO,CAIvB;AAGD,wBAAgB,OAAO,CAAC,CAAC,EAAE,MAAM,EAAE,UAAU,CAAC,EAAE,MAAM;;;EAKrD;AAED,KAAK,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,GAAG,QAAQ,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,EAAE,OAAO,CAAC,CAAC,CAAC;AACxE;;;;;;;;;;;GAWG;AACH,wBAAgB,KAAK,CACnB,KAAK,EAAE,MAAM,EACb,MAAM,CAAC,EAAE,MAAM,EACf,IAAI,UAAQ,EACZ,KAAK,GAAE,OAAO,CAAC,MAAM,CAAC,MAAM,CAAC,CAAM,GAClC,QAAQ,CAAC,OAAO,CAAC,CAkDnB;AAED,wBAAgB,SAAS,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,KAIjD;AAED,wBAAgB,UAAU,CAAC,CAAC,EAAE,EAAE,EAAE,MAAM,CAAC,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,KAIlD;AAED;;;;;;;;;;GAUG;AACH,wBAAgB,mBAAmB,CACjC,IAAI,EAAE,MAAM,GAAG,UAAU,EACzB,UAAU,EAAE,MAAM,EAClB,IAAI,UAAQ,GACX,MAAM,CAQR"} \ No newline at end of file diff --git a/node_modules/@noble/curves/abstract/modular.js b/node_modules/@noble/curves/abstract/modular.js deleted file mode 100644 index 2f338e57..00000000 --- a/node_modules/@noble/curves/abstract/modular.js +++ /dev/null @@ -1,381 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.hashToPrivateScalar = exports.FpSqrtEven = exports.FpSqrtOdd = exports.Field = exports.nLength = exports.FpIsSquare = exports.FpDiv = exports.FpInvertBatch = exports.FpPow = exports.validateField = exports.isNegativeLE = exports.FpSqrt = exports.tonelliShanks = exports.invert = exports.pow2 = exports.pow = exports.mod = void 0; -/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */ -// Utilities for modular arithmetics and finite fields -const utils_js_1 = require("./utils.js"); -// prettier-ignore -const _0n = BigInt(0), _1n = BigInt(1), _2n = BigInt(2), _3n = BigInt(3); -// prettier-ignore -const _4n = BigInt(4), _5n = BigInt(5), _8n = BigInt(8); -// prettier-ignore -const _9n = BigInt(9), _16n = BigInt(16); -// Calculates a modulo b -function mod(a, b) { - const result = a % b; - return result >= _0n ? result : b + result; -} -exports.mod = mod; -/** - * Efficiently raise num to power and do modular division. - * Unsafe in some contexts: uses ladder, so can expose bigint bits. - * @example - * pow(2n, 6n, 11n) // 64n % 11n == 9n - */ -// TODO: use field version && remove -function pow(num, power, modulo) { - if (modulo <= _0n || power < _0n) - throw new Error('Expected power/modulo > 0'); - if (modulo === _1n) - return _0n; - let res = _1n; - while (power > _0n) { - if (power & _1n) - res = (res * num) % modulo; - num = (num * num) % modulo; - power >>= _1n; - } - return res; -} -exports.pow = pow; -// Does x ^ (2 ^ power) mod p. pow2(30, 4) == 30 ^ (2 ^ 4) -function pow2(x, power, modulo) { - let res = x; - while (power-- > _0n) { - res *= res; - res %= modulo; - } - return res; -} -exports.pow2 = pow2; -// Inverses number over modulo -function invert(number, modulo) { - if (number === _0n || modulo <= _0n) { - throw new Error(`invert: expected positive integers, got n=${number} mod=${modulo}`); - } - // Euclidean GCD https://brilliant.org/wiki/extended-euclidean-algorithm/ - // Fermat's little theorem "CT-like" version inv(n) = n^(m-2) mod m is 30x slower. - let a = mod(number, modulo); - let b = modulo; - // prettier-ignore - let x = _0n, y = _1n, u = _1n, v = _0n; - while (a !== _0n) { - // JIT applies optimization if those two lines follow each other - const q = b / a; - const r = b % a; - const m = x - u * q; - const n = y - v * q; - // prettier-ignore - b = a, a = r, x = u, y = v, u = m, v = n; - } - const gcd = b; - if (gcd !== _1n) - throw new Error('invert: does not exist'); - return mod(x, modulo); -} -exports.invert = invert; -// Tonelli-Shanks algorithm -// Paper 1: https://eprint.iacr.org/2012/685.pdf (page 12) -// Paper 2: Square Roots from 1; 24, 51, 10 to Dan Shanks -function tonelliShanks(P) { - // Legendre constant: used to calculate Legendre symbol (a | p), - // which denotes the value of a^((p-1)/2) (mod p). - // (a | p) ≡ 1 if a is a square (mod p) - // (a | p) ≡ -1 if a is not a square (mod p) - // (a | p) ≡ 0 if a ≡ 0 (mod p) - const legendreC = (P - _1n) / _2n; - let Q, S, Z; - // Step 1: By factoring out powers of 2 from p - 1, - // find q and s such that p - 1 = q*(2^s) with q odd - for (Q = P - _1n, S = 0; Q % _2n === _0n; Q /= _2n, S++) - ; - // Step 2: Select a non-square z such that (z | p) ≡ -1 and set c ≡ zq - for (Z = _2n; Z < P && pow(Z, legendreC, P) !== P - _1n; Z++) - ; - // Fast-path - if (S === 1) { - const p1div4 = (P + _1n) / _4n; - return function tonelliFast(Fp, n) { - const root = Fp.pow(n, p1div4); - if (!Fp.eql(Fp.sqr(root), n)) - throw new Error('Cannot find square root'); - return root; - }; - } - // Slow-path - const Q1div2 = (Q + _1n) / _2n; - return function tonelliSlow(Fp, n) { - // Step 0: Check that n is indeed a square: (n | p) should not be ≡ -1 - if (Fp.pow(n, legendreC) === Fp.neg(Fp.ONE)) - throw new Error('Cannot find square root'); - let r = S; - // TODO: will fail at Fp2/etc - let g = Fp.pow(Fp.mul(Fp.ONE, Z), Q); // will update both x and b - let x = Fp.pow(n, Q1div2); // first guess at the square root - let b = Fp.pow(n, Q); // first guess at the fudge factor - while (!Fp.eql(b, Fp.ONE)) { - if (Fp.eql(b, Fp.ZERO)) - return Fp.ZERO; // https://en.wikipedia.org/wiki/Tonelli%E2%80%93Shanks_algorithm (4. If t = 0, return r = 0) - // Find m such b^(2^m)==1 - let m = 1; - for (let t2 = Fp.sqr(b); m < r; m++) { - if (Fp.eql(t2, Fp.ONE)) - break; - t2 = Fp.sqr(t2); // t2 *= t2 - } - // NOTE: r-m-1 can be bigger than 32, need to convert to bigint before shift, otherwise there will be overflow - const ge = Fp.pow(g, _1n << BigInt(r - m - 1)); // ge = 2^(r-m-1) - g = Fp.sqr(ge); // g = ge * ge - x = Fp.mul(x, ge); // x *= ge - b = Fp.mul(b, g); // b *= g - r = m; - } - return x; - }; -} -exports.tonelliShanks = tonelliShanks; -function FpSqrt(P) { - // NOTE: different algorithms can give different roots, it is up to user to decide which one they want. - // For example there is FpSqrtOdd/FpSqrtEven to choice root based on oddness (used for hash-to-curve). - // P ≡ 3 (mod 4) - // √n = n^((P+1)/4) - if (P % _4n === _3n) { - // Not all roots possible! - // const ORDER = - // 0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffaaabn; - // const NUM = 72057594037927816n; - const p1div4 = (P + _1n) / _4n; - return function sqrt3mod4(Fp, n) { - const root = Fp.pow(n, p1div4); - // Throw if root**2 != n - if (!Fp.eql(Fp.sqr(root), n)) - throw new Error('Cannot find square root'); - return root; - }; - } - // Atkin algorithm for q ≡ 5 (mod 8), https://eprint.iacr.org/2012/685.pdf (page 10) - if (P % _8n === _5n) { - const c1 = (P - _5n) / _8n; - return function sqrt5mod8(Fp, n) { - const n2 = Fp.mul(n, _2n); - const v = Fp.pow(n2, c1); - const nv = Fp.mul(n, v); - const i = Fp.mul(Fp.mul(nv, _2n), v); - const root = Fp.mul(nv, Fp.sub(i, Fp.ONE)); - if (!Fp.eql(Fp.sqr(root), n)) - throw new Error('Cannot find square root'); - return root; - }; - } - // P ≡ 9 (mod 16) - if (P % _16n === _9n) { - // NOTE: tonelli is too slow for bls-Fp2 calculations even on start - // Means we cannot use sqrt for constants at all! - // - // const c1 = Fp.sqrt(Fp.negate(Fp.ONE)); // 1. c1 = sqrt(-1) in F, i.e., (c1^2) == -1 in F - // const c2 = Fp.sqrt(c1); // 2. c2 = sqrt(c1) in F, i.e., (c2^2) == c1 in F - // const c3 = Fp.sqrt(Fp.negate(c1)); // 3. c3 = sqrt(-c1) in F, i.e., (c3^2) == -c1 in F - // const c4 = (P + _7n) / _16n; // 4. c4 = (q + 7) / 16 # Integer arithmetic - // sqrt = (x) => { - // let tv1 = Fp.pow(x, c4); // 1. tv1 = x^c4 - // let tv2 = Fp.mul(c1, tv1); // 2. tv2 = c1 * tv1 - // const tv3 = Fp.mul(c2, tv1); // 3. tv3 = c2 * tv1 - // let tv4 = Fp.mul(c3, tv1); // 4. tv4 = c3 * tv1 - // const e1 = Fp.equals(Fp.square(tv2), x); // 5. e1 = (tv2^2) == x - // const e2 = Fp.equals(Fp.square(tv3), x); // 6. e2 = (tv3^2) == x - // tv1 = Fp.cmov(tv1, tv2, e1); // 7. tv1 = CMOV(tv1, tv2, e1) # Select tv2 if (tv2^2) == x - // tv2 = Fp.cmov(tv4, tv3, e2); // 8. tv2 = CMOV(tv4, tv3, e2) # Select tv3 if (tv3^2) == x - // const e3 = Fp.equals(Fp.square(tv2), x); // 9. e3 = (tv2^2) == x - // return Fp.cmov(tv1, tv2, e3); // 10. z = CMOV(tv1, tv2, e3) # Select the sqrt from tv1 and tv2 - // } - } - // Other cases: Tonelli-Shanks algorithm - return tonelliShanks(P); -} -exports.FpSqrt = FpSqrt; -// Little-endian check for first LE bit (last BE bit); -const isNegativeLE = (num, modulo) => (mod(num, modulo) & _1n) === _1n; -exports.isNegativeLE = isNegativeLE; -// prettier-ignore -const FIELD_FIELDS = [ - 'create', 'isValid', 'is0', 'neg', 'inv', 'sqrt', 'sqr', - 'eql', 'add', 'sub', 'mul', 'pow', 'div', - 'addN', 'subN', 'mulN', 'sqrN' -]; -function validateField(field) { - const initial = { - ORDER: 'bigint', - MASK: 'bigint', - BYTES: 'isSafeInteger', - BITS: 'isSafeInteger', - }; - const opts = FIELD_FIELDS.reduce((map, val) => { - map[val] = 'function'; - return map; - }, initial); - return (0, utils_js_1.validateObject)(field, opts); -} -exports.validateField = validateField; -// Generic field functions -function FpPow(f, num, power) { - // Should have same speed as pow for bigints - // TODO: benchmark! - if (power < _0n) - throw new Error('Expected power > 0'); - if (power === _0n) - return f.ONE; - if (power === _1n) - return num; - let p = f.ONE; - let d = num; - while (power > _0n) { - if (power & _1n) - p = f.mul(p, d); - d = f.sqr(d); - power >>= _1n; - } - return p; -} -exports.FpPow = FpPow; -// 0 is non-invertible: non-batched version will throw on 0 -function FpInvertBatch(f, nums) { - const tmp = new Array(nums.length); - // Walk from first to last, multiply them by each other MOD p - const lastMultiplied = nums.reduce((acc, num, i) => { - if (f.is0(num)) - return acc; - tmp[i] = acc; - return f.mul(acc, num); - }, f.ONE); - // Invert last element - const inverted = f.inv(lastMultiplied); - // Walk from last to first, multiply them by inverted each other MOD p - nums.reduceRight((acc, num, i) => { - if (f.is0(num)) - return acc; - tmp[i] = f.mul(acc, tmp[i]); - return f.mul(acc, num); - }, inverted); - return tmp; -} -exports.FpInvertBatch = FpInvertBatch; -function FpDiv(f, lhs, rhs) { - return f.mul(lhs, typeof rhs === 'bigint' ? invert(rhs, f.ORDER) : f.inv(rhs)); -} -exports.FpDiv = FpDiv; -// This function returns True whenever the value x is a square in the field F. -function FpIsSquare(f) { - const legendreConst = (f.ORDER - _1n) / _2n; // Integer arithmetic - return (x) => { - const p = f.pow(x, legendreConst); - return f.eql(p, f.ZERO) || f.eql(p, f.ONE); - }; -} -exports.FpIsSquare = FpIsSquare; -// CURVE.n lengths -function nLength(n, nBitLength) { - // Bit size, byte size of CURVE.n - const _nBitLength = nBitLength !== undefined ? nBitLength : n.toString(2).length; - const nByteLength = Math.ceil(_nBitLength / 8); - return { nBitLength: _nBitLength, nByteLength }; -} -exports.nLength = nLength; -/** - * Initializes a galois field over prime. Non-primes are not supported for now. - * Do not init in loop: slow. Very fragile: always run a benchmark on change. - * Major performance gains: - * a) non-normalized operations like mulN instead of mul - * b) `Object.freeze` - * c) Same object shape: never add or remove keys - * @param ORDER prime positive bigint - * @param bitLen how many bits the field consumes - * @param isLE (def: false) if encoding / decoding should be in little-endian - * @param redef optional faster redefinitions of sqrt and other methods - */ -function Field(ORDER, bitLen, isLE = false, redef = {}) { - if (ORDER <= _0n) - throw new Error(`Expected Fp ORDER > 0, got ${ORDER}`); - const { nBitLength: BITS, nByteLength: BYTES } = nLength(ORDER, bitLen); - if (BYTES > 2048) - throw new Error('Field lengths over 2048 bytes are not supported'); - const sqrtP = FpSqrt(ORDER); - const f = Object.freeze({ - ORDER, - BITS, - BYTES, - MASK: (0, utils_js_1.bitMask)(BITS), - ZERO: _0n, - ONE: _1n, - create: (num) => mod(num, ORDER), - isValid: (num) => { - if (typeof num !== 'bigint') - throw new Error(`Invalid field element: expected bigint, got ${typeof num}`); - return _0n <= num && num < ORDER; // 0 is valid element, but it's not invertible - }, - is0: (num) => num === _0n, - isOdd: (num) => (num & _1n) === _1n, - neg: (num) => mod(-num, ORDER), - eql: (lhs, rhs) => lhs === rhs, - sqr: (num) => mod(num * num, ORDER), - add: (lhs, rhs) => mod(lhs + rhs, ORDER), - sub: (lhs, rhs) => mod(lhs - rhs, ORDER), - mul: (lhs, rhs) => mod(lhs * rhs, ORDER), - pow: (num, power) => FpPow(f, num, power), - div: (lhs, rhs) => mod(lhs * invert(rhs, ORDER), ORDER), - // Same as above, but doesn't normalize - sqrN: (num) => num * num, - addN: (lhs, rhs) => lhs + rhs, - subN: (lhs, rhs) => lhs - rhs, - mulN: (lhs, rhs) => lhs * rhs, - inv: (num) => invert(num, ORDER), - sqrt: redef.sqrt || ((n) => sqrtP(f, n)), - invertBatch: (lst) => FpInvertBatch(f, lst), - // TODO: do we really need constant cmov? - // We don't have const-time bigints anyway, so probably will be not very useful - cmov: (a, b, c) => (c ? b : a), - toBytes: (num) => (isLE ? (0, utils_js_1.numberToBytesLE)(num, BYTES) : (0, utils_js_1.numberToBytesBE)(num, BYTES)), - fromBytes: (bytes) => { - if (bytes.length !== BYTES) - throw new Error(`Fp.fromBytes: expected ${BYTES}, got ${bytes.length}`); - return isLE ? (0, utils_js_1.bytesToNumberLE)(bytes) : (0, utils_js_1.bytesToNumberBE)(bytes); - }, - }); - return Object.freeze(f); -} -exports.Field = Field; -function FpSqrtOdd(Fp, elm) { - if (!Fp.isOdd) - throw new Error(`Field doesn't have isOdd`); - const root = Fp.sqrt(elm); - return Fp.isOdd(root) ? root : Fp.neg(root); -} -exports.FpSqrtOdd = FpSqrtOdd; -function FpSqrtEven(Fp, elm) { - if (!Fp.isOdd) - throw new Error(`Field doesn't have isOdd`); - const root = Fp.sqrt(elm); - return Fp.isOdd(root) ? Fp.neg(root) : root; -} -exports.FpSqrtEven = FpSqrtEven; -/** - * FIPS 186 B.4.1-compliant "constant-time" private key generation utility. - * Can take (n+8) or more bytes of uniform input e.g. from CSPRNG or KDF - * and convert them into private scalar, with the modulo bias being negligible. - * Needs at least 40 bytes of input for 32-byte private key. - * https://research.kudelskisecurity.com/2020/07/28/the-definitive-guide-to-modulo-bias-and-how-to-avoid-it/ - * @param hash hash output from SHA3 or a similar function - * @param groupOrder size of subgroup - (e.g. curveFn.CURVE.n) - * @param isLE interpret hash bytes as LE num - * @returns valid private scalar - */ -function hashToPrivateScalar(hash, groupOrder, isLE = false) { - hash = (0, utils_js_1.ensureBytes)('privateHash', hash); - const hashLen = hash.length; - const minLen = nLength(groupOrder).nByteLength + 8; - if (minLen < 24 || hashLen < minLen || hashLen > 1024) - throw new Error(`hashToPrivateScalar: expected ${minLen}-1024 bytes of input, got ${hashLen}`); - const num = isLE ? (0, utils_js_1.bytesToNumberLE)(hash) : (0, utils_js_1.bytesToNumberBE)(hash); - return mod(num, groupOrder - _1n) + _1n; -} -exports.hashToPrivateScalar = hashToPrivateScalar; -//# sourceMappingURL=modular.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/abstract/modular.js.map b/node_modules/@noble/curves/abstract/modular.js.map deleted file mode 100644 index 9938a175..00000000 --- a/node_modules/@noble/curves/abstract/modular.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"modular.js","sourceRoot":"","sources":["../src/abstract/modular.ts"],"names":[],"mappings":";;;AAAA,sEAAsE;AACtE,sDAAsD;AACtD,yCAQoB;AACpB,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IAAI,GAAG,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;IAC1B,OAAO,EAAE,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AAC9C,CAAC;AAJD,gCAIC;AAED;;;;;;;;;;GAUG;AACH,SAAgB,mBAAmB,CACjC,IAAyB,EACzB,UAAkB,EAClB,IAAI,GAAG,KAAK;IAEZ,IAAI,GAAG,IAAA,sBAAW,EAAC,aAAa,EAAE,IAAI,CAAC,CAAC;IACxC,MAAM,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC;IAC5B,MAAM,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC,WAAW,GAAG,CAAC,CAAC;IACnD,IAAI,MAAM,GAAG,EAAE,IAAI,OAAO,GAAG,MAAM,IAAI,OAAO,GAAG,IAAI;QACnD,MAAM,IAAI,KAAK,CAAC,iCAAiC,MAAM,6BAA6B,OAAO,EAAE,CAAC,CAAC;IACjG,MAAM,GAAG,GAAG,IAAI,CAAC,CAAC,CAAC,IAAA,0BAAe,EAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAA,0BAAe,EAAC,IAAI,CAAC,CAAC;IACjE,OAAO,GAAG,CAAC,GAAG,EAAE,UAAU,GAAG,GAAG,CAAC,GAAG,GAAG,CAAC;AAC1C,CAAC;AAZD,kDAYC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/abstract/montgomery.d.ts b/node_modules/@noble/curves/abstract/montgomery.d.ts deleted file mode 100644 index 69e2bc45..00000000 --- a/node_modules/@noble/curves/abstract/montgomery.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -type Hex = string | Uint8Array; -export type CurveType = { - P: bigint; - nByteLength: number; - adjustScalarBytes?: (bytes: Uint8Array) => Uint8Array; - domain?: (data: Uint8Array, ctx: Uint8Array, phflag: boolean) => Uint8Array; - a: bigint; - montgomeryBits: number; - powPminus2?: (x: bigint) => bigint; - xyToU?: (x: bigint, y: bigint) => bigint; - Gu: bigint; - randomBytes?: (bytesLength?: number) => Uint8Array; -}; -export type CurveFn = { - scalarMult: (scalar: Hex, u: Hex) => Uint8Array; - scalarMultBase: (scalar: Hex) => Uint8Array; - getSharedSecret: (privateKeyA: Hex, publicKeyB: Hex) => Uint8Array; - getPublicKey: (privateKey: Hex) => Uint8Array; - utils: { - randomPrivateKey: () => Uint8Array; - }; - GuBytes: Uint8Array; -}; -export declare function montgomery(curveDef: CurveType): CurveFn; -export {}; -//# sourceMappingURL=montgomery.d.ts.map \ No newline at end of file diff --git a/node_modules/@noble/curves/abstract/montgomery.d.ts.map b/node_modules/@noble/curves/abstract/montgomery.d.ts.map deleted file mode 100644 index a0d1c0b9..00000000 --- a/node_modules/@noble/curves/abstract/montgomery.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"montgomery.d.ts","sourceRoot":"","sources":["../src/abstract/montgomery.ts"],"names":[],"mappings":"AAMA,KAAK,GAAG,GAAG,MAAM,GAAG,UAAU,CAAC;AAE/B,MAAM,MAAM,SAAS,GAAG;IACtB,CAAC,EAAE,MAAM,CAAC;IACV,WAAW,EAAE,MAAM,CAAC;IACpB,iBAAiB,CAAC,EAAE,CAAC,KAAK,EAAE,UAAU,KAAK,UAAU,CAAC;IACtD,MAAM,CAAC,EAAE,CAAC,IAAI,EAAE,UAAU,EAAE,GAAG,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,KAAK,UAAU,CAAC;IAC5E,CAAC,EAAE,MAAM,CAAC;IACV,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,KAAK,MAAM,CAAC;IACnC,KAAK,CAAC,EAAE,CAAC,CAAC,EAAE,MAAM,EAAE,CAAC,EAAE,MAAM,KAAK,MAAM,CAAC;IACzC,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,CAAC,EAAE,CAAC,WAAW,CAAC,EAAE,MAAM,KAAK,UAAU,CAAC;CACpD,CAAC;AACF,MAAM,MAAM,OAAO,GAAG;IACpB,UAAU,EAAE,CAAC,MAAM,EAAE,GAAG,EAAE,CAAC,EAAE,GAAG,KAAK,UAAU,CAAC;IAChD,cAAc,EAAE,CAAC,MAAM,EAAE,GAAG,KAAK,UAAU,CAAC;IAC5C,eAAe,EAAE,CAAC,WAAW,EAAE,GAAG,EAAE,UAAU,EAAE,GAAG,KAAK,UAAU,CAAC;IACnE,YAAY,EAAE,CAAC,UAAU,EAAE,GAAG,KAAK,UAAU,CAAC;IAC9C,KAAK,EAAE;QAAE,gBAAgB,EAAE,MAAM,UAAU,CAAA;KAAE,CAAC;IAC9C,OAAO,EAAE,UAAU,CAAC;CACrB,CAAC;AAuBF,wBAAgB,UAAU,CAAC,QAAQ,EAAE,SAAS,GAAG,OAAO,CA0IvD"} \ No newline at end of file diff --git a/node_modules/@noble/curves/abstract/montgomery.js b/node_modules/@noble/curves/abstract/montgomery.js deleted file mode 100644 index b43e43b5..00000000 --- a/node_modules/@noble/curves/abstract/montgomery.js +++ /dev/null @@ -1,161 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.montgomery = void 0; -/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */ -const modular_js_1 = require("./modular.js"); -const utils_js_1 = require("./utils.js"); -const _0n = BigInt(0); -const _1n = BigInt(1); -function validateOpts(curve) { - (0, utils_js_1.validateObject)(curve, { - a: 'bigint', - }, { - montgomeryBits: 'isSafeInteger', - nByteLength: 'isSafeInteger', - adjustScalarBytes: 'function', - domain: 'function', - powPminus2: 'function', - Gu: 'bigint', - }); - // Set defaults - return Object.freeze({ ...curve }); -} -// NOTE: not really montgomery curve, just bunch of very specific methods for X25519/X448 (RFC 7748, https://www.rfc-editor.org/rfc/rfc7748) -// Uses only one coordinate instead of two -function montgomery(curveDef) { - const CURVE = validateOpts(curveDef); - const { P } = CURVE; - const modP = (n) => (0, modular_js_1.mod)(n, P); - const montgomeryBits = CURVE.montgomeryBits; - const montgomeryBytes = Math.ceil(montgomeryBits / 8); - const fieldLen = CURVE.nByteLength; - const adjustScalarBytes = CURVE.adjustScalarBytes || ((bytes) => bytes); - const powPminus2 = CURVE.powPminus2 || ((x) => (0, modular_js_1.pow)(x, P - BigInt(2), P)); - // cswap from RFC7748. But it is not from RFC7748! - /* - cswap(swap, x_2, x_3): - dummy = mask(swap) AND (x_2 XOR x_3) - x_2 = x_2 XOR dummy - x_3 = x_3 XOR dummy - Return (x_2, x_3) - Where mask(swap) is the all-1 or all-0 word of the same length as x_2 - and x_3, computed, e.g., as mask(swap) = 0 - swap. - */ - function cswap(swap, x_2, x_3) { - const dummy = modP(swap * (x_2 - x_3)); - x_2 = modP(x_2 - dummy); - x_3 = modP(x_3 + dummy); - return [x_2, x_3]; - } - // Accepts 0 as well - function assertFieldElement(n) { - if (typeof n === 'bigint' && _0n <= n && n < P) - return n; - throw new Error('Expected valid scalar 0 < scalar < CURVE.P'); - } - // x25519 from 4 - // The constant a24 is (486662 - 2) / 4 = 121665 for curve25519/X25519 - const a24 = (CURVE.a - BigInt(2)) / BigInt(4); - /** - * - * @param pointU u coordinate (x) on Montgomery Curve 25519 - * @param scalar by which the point would be multiplied - * @returns new Point on Montgomery curve - */ - function montgomeryLadder(pointU, scalar) { - const u = assertFieldElement(pointU); - // Section 5: Implementations MUST accept non-canonical values and process them as - // if they had been reduced modulo the field prime. - const k = assertFieldElement(scalar); - const x_1 = u; - let x_2 = _1n; - let z_2 = _0n; - let x_3 = u; - let z_3 = _1n; - let swap = _0n; - let sw; - for (let t = BigInt(montgomeryBits - 1); t >= _0n; t--) { - const k_t = (k >> t) & _1n; - swap ^= k_t; - sw = cswap(swap, x_2, x_3); - x_2 = sw[0]; - x_3 = sw[1]; - sw = cswap(swap, z_2, z_3); - z_2 = sw[0]; - z_3 = sw[1]; - swap = k_t; - const A = x_2 + z_2; - const AA = modP(A * A); - const B = x_2 - z_2; - const BB = modP(B * B); - const E = AA - BB; - const C = x_3 + z_3; - const D = x_3 - z_3; - const DA = modP(D * A); - const CB = modP(C * B); - const dacb = DA + CB; - const da_cb = DA - CB; - x_3 = modP(dacb * dacb); - z_3 = modP(x_1 * modP(da_cb * da_cb)); - x_2 = modP(AA * BB); - z_2 = modP(E * (AA + modP(a24 * E))); - } - // (x_2, x_3) = cswap(swap, x_2, x_3) - sw = cswap(swap, x_2, x_3); - x_2 = sw[0]; - x_3 = sw[1]; - // (z_2, z_3) = cswap(swap, z_2, z_3) - sw = cswap(swap, z_2, z_3); - z_2 = sw[0]; - z_3 = sw[1]; - // z_2^(p - 2) - const z2 = powPminus2(z_2); - // Return x_2 * (z_2^(p - 2)) - return modP(x_2 * z2); - } - function encodeUCoordinate(u) { - return (0, utils_js_1.numberToBytesLE)(modP(u), montgomeryBytes); - } - function decodeUCoordinate(uEnc) { - // Section 5: When receiving such an array, implementations of X25519 - // MUST mask the most significant bit in the final byte. - // This is very ugly way, but it works because fieldLen-1 is outside of bounds for X448, so this becomes NOOP - // fieldLen - scalaryBytes = 1 for X448 and = 0 for X25519 - const u = (0, utils_js_1.ensureBytes)('u coordinate', uEnc, montgomeryBytes); - // u[fieldLen-1] crashes QuickJS (TypeError: out-of-bound numeric index) - if (fieldLen === montgomeryBytes) - u[fieldLen - 1] &= 127; // 0b0111_1111 - return (0, utils_js_1.bytesToNumberLE)(u); - } - function decodeScalar(n) { - const bytes = (0, utils_js_1.ensureBytes)('scalar', n); - if (bytes.length !== montgomeryBytes && bytes.length !== fieldLen) - throw new Error(`Expected ${montgomeryBytes} or ${fieldLen} bytes, got ${bytes.length}`); - return (0, utils_js_1.bytesToNumberLE)(adjustScalarBytes(bytes)); - } - function scalarMult(scalar, u) { - const pointU = decodeUCoordinate(u); - const _scalar = decodeScalar(scalar); - const pu = montgomeryLadder(pointU, _scalar); - // The result was not contributory - // https://cr.yp.to/ecdh.html#validate - if (pu === _0n) - throw new Error('Invalid private or public key received'); - return encodeUCoordinate(pu); - } - // Computes public key from private. By doing scalar multiplication of base point. - const GuBytes = encodeUCoordinate(CURVE.Gu); - function scalarMultBase(scalar) { - return scalarMult(scalar, GuBytes); - } - return { - scalarMult, - scalarMultBase, - getSharedSecret: (privateKey, publicKey) => scalarMult(privateKey, publicKey), - getPublicKey: (privateKey) => scalarMultBase(privateKey), - utils: { randomPrivateKey: () => CURVE.randomBytes(CURVE.nByteLength) }, - GuBytes: GuBytes, - }; -} -exports.montgomery = montgomery; -//# sourceMappingURL=montgomery.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/abstract/montgomery.js.map b/node_modules/@noble/curves/abstract/montgomery.js.map deleted file mode 100644 index 1aa0c9eb..00000000 --- a/node_modules/@noble/curves/abstract/montgomery.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"montgomery.js","sourceRoot":"","sources":["../src/abstract/montgomery.ts"],"names":[],"mappings":";;;AAAA,sEAAsE;AACtE,6CAAwC;AACxC,yCAA2F;AAE3F,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;AACtB,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;AAwBtB,SAAS,YAAY,CAAC,KAAgB;IACpC,IAAA,yBAAc,EACZ,KAAK,EACL;QACE,CAAC,EAAE,QAAQ;KACZ,EACD;QACE,cAAc,EAAE,eAAe;QAC/B,WAAW,EAAE,eAAe;QAC5B,iBAAiB,EAAE,UAAU;QAC7B,MAAM,EAAE,UAAU;QAClB,UAAU,EAAE,UAAU;QACtB,EAAE,EAAE,QAAQ;KACb,CACF,CAAC;IACF,eAAe;IACf,OAAO,MAAM,CAAC,MAAM,CAAC,EAAE,GAAG,KAAK,EAAW,CAAC,CAAC;AAC9C,CAAC;AAED,4IAA4I;AAC5I,0CAA0C;AAC1C,SAAgB,UAAU,CAAC,QAAmB;IAC5C,MAAM,KAAK,GAAG,YAAY,CAAC,QAAQ,CAAC,CAAC;IACrC,MAAM,EAAE,CAAC,E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AAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;QAC1E,OAAO,iBAAiB,CAAC,EAAE,CAAC,CAAC;IAC/B,CAAC;IACD,kFAAkF;IAClF,MAAM,OAAO,GAAG,iBAAiB,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAC5C,SAAS,cAAc,CAAC,MAAW;QACjC,OAAO,UAAU,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC,CAAC;IAED,OAAO;QACL,UAAU;QACV,cAAc;QACd,eAAe,EAAE,CAAC,UAAe,EAAE,SAAc,EAAE,EAAE,CAAC,UAAU,CAAC,UAAU,EAAE,SAAS,CAAC;QACvF,YAAY,EAAE,CAAC,UAAe,EAAc,EAAE,CAAC,cAAc,CAAC,UAAU,CAAC;QACzE,KAAK,EAAE,EAAE,gBAAgB,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,WAAY,CAAC,KAAK,CAAC,WAAW,CAAC,EAAE;QACxE,OAAO,EAAE,OAAO;KACjB,CAAC;AACJ,CAAC;AA1ID,gCA0IC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/abstract/poseidon.d.ts b/node_modules/@noble/curves/abstract/poseidon.d.ts deleted file mode 100644 index 2f9ab819..00000000 --- a/node_modules/@noble/curves/abstract/poseidon.d.ts +++ /dev/null @@ -1,30 +0,0 @@ -/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */ -import { IField } from './modular.js'; -export type PoseidonOpts = { - Fp: IField; - t: number; - roundsFull: number; - roundsPartial: number; - sboxPower?: number; - reversePartialPowIdx?: boolean; - mds: bigint[][]; - roundConstants: bigint[][]; -}; -export declare function validateOpts(opts: PoseidonOpts): Readonly<{ - rounds: number; - sboxFn: (n: bigint) => bigint; - roundConstants: bigint[][]; - mds: bigint[][]; - Fp: IField; - t: number; - roundsFull: number; - roundsPartial: number; - sboxPower?: number | undefined; - reversePartialPowIdx?: boolean | undefined; -}>; -export declare function splitConstants(rc: bigint[], t: number): bigint[][]; -export declare function poseidon(opts: PoseidonOpts): { - (values: bigint[]): bigint[]; - roundConstants: bigint[][]; -}; -//# sourceMappingURL=poseidon.d.ts.map \ No newline at end of file diff --git a/node_modules/@noble/curves/abstract/poseidon.d.ts.map b/node_modules/@noble/curves/abstract/poseidon.d.ts.map deleted file mode 100644 index 7107b83f..00000000 --- a/node_modules/@noble/curves/abstract/poseidon.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"poseidon.d.ts","sourceRoot":"","sources":["../src/abstract/poseidon.ts"],"names":[],"mappings":"AAAA,sEAAsE;AAEtE,OAAO,EAAE,MAAM,EAAwB,MAAM,cAAc,CAAC;AAG5D,MAAM,MAAM,YAAY,GAAG;IACzB,EAAE,EAAE,MAAM,CAAC,MAAM,CAAC,CAAC;IACnB,CAAC,EAAE,MAAM,CAAC;IACV,UAAU,EAAE,MAAM,CAAC;IACnB,aAAa,EAAE,MAAM,CAAC;IACtB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,oBAAoB,CAAC,EAAE,OAAO,CAAC;IAC/B,GAAG,EAAE,MAAM,EAAE,EAAE,CAAC;IAChB,cAAc,EAAE,MAAM,EAAE,EAAE,CAAC;CAC5B,CAAC;AAEF,wBAAgB,YAAY,CAAC,IAAI,EAAE,YAAY;;gBAgB5B,MAAM;;;;;;;;;GAgCxB;AAED,wBAAgB,cAAc,CAAC,EAAE,EAAE,MAAM,EAAE,EAAE,CAAC,EAAE,MAAM,cAarD;AAED,wBAAgB,QAAQ,CAAC,IAAI,EAAE,YAAY;aAeU,MAAM,EAAE;;EAsB5D"} \ No newline at end of file diff --git a/node_modules/@noble/curves/abstract/poseidon.js b/node_modules/@noble/curves/abstract/poseidon.js deleted file mode 100644 index fc66916f..00000000 --- a/node_modules/@noble/curves/abstract/poseidon.js +++ /dev/null @@ -1,116 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.poseidon = exports.splitConstants = exports.validateOpts = void 0; -/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */ -// Poseidon Hash: https://eprint.iacr.org/2019/458.pdf, https://www.poseidon-hash.info -const modular_js_1 = require("./modular.js"); -function validateOpts(opts) { - const { Fp } = opts; - (0, modular_js_1.validateField)(Fp); - for (const i of ['t', 'roundsFull', 'roundsPartial']) { - if (typeof opts[i] !== 'number' || !Number.isSafeInteger(opts[i])) - throw new Error(`Poseidon: invalid param ${i}=${opts[i]} (${typeof opts[i]})`); - } - if (opts.reversePartialPowIdx !== undefined && typeof opts.reversePartialPowIdx !== 'boolean') - throw new Error(`Poseidon: invalid param reversePartialPowIdx=${opts.reversePartialPowIdx}`); - // Default is 5, but by some reasons stark uses 3 - let sboxPower = opts.sboxPower; - if (sboxPower === undefined) - sboxPower = 5; - if (typeof sboxPower !== 'number' || !Number.isSafeInteger(sboxPower)) - throw new Error(`Poseidon wrong sboxPower=${sboxPower}`); - const _sboxPower = BigInt(sboxPower); - let sboxFn = (n) => (0, modular_js_1.FpPow)(Fp, n, _sboxPower); - // Unwrapped sbox power for common cases (195->142μs) - if (sboxPower === 3) - sboxFn = (n) => Fp.mul(Fp.sqrN(n), n); - else if (sboxPower === 5) - sboxFn = (n) => Fp.mul(Fp.sqrN(Fp.sqrN(n)), n); - if (opts.roundsFull % 2 !== 0) - throw new Error(`Poseidon roundsFull is not even: ${opts.roundsFull}`); - const rounds = opts.roundsFull + opts.roundsPartial; - if (!Array.isArray(opts.roundConstants) || opts.roundConstants.length !== rounds) - throw new Error('Poseidon: wrong round constants'); - const roundConstants = opts.roundConstants.map((rc) => { - if (!Array.isArray(rc) || rc.length !== opts.t) - throw new Error(`Poseidon wrong round constants: ${rc}`); - return rc.map((i) => { - if (typeof i !== 'bigint' || !Fp.isValid(i)) - throw new Error(`Poseidon wrong round constant=${i}`); - return Fp.create(i); - }); - }); - // MDS is TxT matrix - if (!Array.isArray(opts.mds) || opts.mds.length !== opts.t) - throw new Error('Poseidon: wrong MDS matrix'); - const mds = opts.mds.map((mdsRow) => { - if (!Array.isArray(mdsRow) || mdsRow.length !== opts.t) - throw new Error(`Poseidon MDS matrix row: ${mdsRow}`); - return mdsRow.map((i) => { - if (typeof i !== 'bigint') - throw new Error(`Poseidon MDS matrix value=${i}`); - return Fp.create(i); - }); - }); - return Object.freeze({ ...opts, rounds, sboxFn, roundConstants, mds }); -} -exports.validateOpts = validateOpts; -function splitConstants(rc, t) { - if (typeof t !== 'number') - throw new Error('poseidonSplitConstants: wrong t'); - if (!Array.isArray(rc) || rc.length % t) - throw new Error('poseidonSplitConstants: wrong rc'); - const res = []; - let tmp = []; - for (let i = 0; i < rc.length; i++) { - tmp.push(rc[i]); - if (tmp.length === t) { - res.push(tmp); - tmp = []; - } - } - return res; -} -exports.splitConstants = splitConstants; -function poseidon(opts) { - const { t, Fp, rounds, sboxFn, reversePartialPowIdx } = validateOpts(opts); - const halfRoundsFull = Math.floor(opts.roundsFull / 2); - const partialIdx = reversePartialPowIdx ? t - 1 : 0; - const poseidonRound = (values, isFull, idx) => { - values = values.map((i, j) => Fp.add(i, opts.roundConstants[idx][j])); - if (isFull) - values = values.map((i) => sboxFn(i)); - else - values[partialIdx] = sboxFn(values[partialIdx]); - // Matrix multiplication - values = opts.mds.map((i) => i.reduce((acc, i, j) => Fp.add(acc, Fp.mulN(i, values[j])), Fp.ZERO)); - return values; - }; - const poseidonHash = function poseidonHash(values) { - if (!Array.isArray(values) || values.length !== t) - throw new Error(`Poseidon: wrong values (expected array of bigints with length ${t})`); - values = values.map((i) => { - if (typeof i !== 'bigint') - throw new Error(`Poseidon: wrong value=${i} (${typeof i})`); - return Fp.create(i); - }); - let round = 0; - // Apply r_f/2 full rounds. - for (let i = 0; i < halfRoundsFull; i++) - values = poseidonRound(values, true, round++); - // Apply r_p partial rounds. - for (let i = 0; i < opts.roundsPartial; i++) - values = poseidonRound(values, false, round++); - // Apply r_f/2 full rounds. - for (let i = 0; i < halfRoundsFull; i++) - values = poseidonRound(values, true, round++); - if (round !== rounds) - throw new Error(`Poseidon: wrong number of rounds: last round=${round}, total=${rounds}`); - return values; - }; - // For verification in tests - poseidonHash.roundConstants = opts.roundConstants; - return poseidonHash; -} -exports.poseidon = poseidon; -//# sourceMappingURL=poseidon.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/abstract/poseidon.js.map b/node_modules/@noble/curves/abstract/poseidon.js.map deleted file mode 100644 index 422866db..00000000 --- a/node_modules/@noble/curves/abstract/poseidon.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"poseidon.js","sourceRoot":"","sources":["../src/abstract/poseidon.ts"],"names":[],"mappings":";;;AAAA,sEAAsE;AACtE,sFAAsF;AACtF,6CAA4D;AAc5D,SAAgB,YAAY,CAAC,IAAkB;IAC7C,MAAM,EAAE,EAAE,EAAE,GAAG,IAAI,CAAC;IACpB,IAAA,0BAAa,EAAC,EAAE,CAAC,CAAC;IAClB,KAAK,MAAM,CAAC,IAAI,CAAC,GAAG,EAAE,YAAY,EAAE,eAAe,CAAU,EAAE;QAC7D,IAAI,OAAO,IAAI,CAAC,CAAC,CAAC,KAAK,QAAQ,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;YAC/D,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,KAAK,OAAO,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;KAClF;IACD,IAAI,IAAI,CAAC,oBAAoB,KAAK,SAAS,IAAI,OAAO,IAAI,CAAC,oBAAoB,KAAK,SAAS;QAC3F,MAAM,IAAI,KAAK,CAAC,gDAAgD,IAAI,CAAC,oBAAoB,EAAE,CAAC,CAAC;IAC/F,iDAAiD;IACjD,IAAI,SAAS,GAAG,IAAI,CAAC,SAAS,CAAC;IAC/B,IAAI,SAAS,KAAK,SAAS;QAAE,SAAS,GAAG,CAAC,CAAC;IAC3C,IAAI,OAAO,SAAS,KAAK,QAAQ,IAAI,CAAC,MAAM,CAAC,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AAE,KAAK,EAAE,CAAC,CAAC;QACvF,4BAA4B;QAC5B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,aAAa,EAAE,CAAC,EAAE;YAAE,MAAM,GAAG,aAAa,CAAC,MAAM,EAAE,KAAK,EAAE,KAAK,EAAE,CAAC,CAAC;QAC5F,2BAA2B;QAC3B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,cAAc,EAAE,CAAC,EAAE;YAAE,MAAM,GAAG,aAAa,CAAC,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;QAEvF,IAAI,KAAK,KAAK,MAAM;YAClB,MAAM,IAAI,KAAK,CAAC,gDAAgD,KAAK,WAAW,MAAM,EAAE,CAAC,CAAC;QAC5F,OAAO,MAAM,CAAC;IAChB,CAAC,CAAC;IACF,4BAA4B;IAC5B,YAAY,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC;IAClD,OAAO,YAAY,CAAC;AACtB,CAAC;AArCD,4BAqCC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/abstract/utils.d.ts b/node_modules/@noble/curves/abstract/utils.d.ts deleted file mode 100644 index 2842612e..00000000 --- a/node_modules/@noble/curves/abstract/utils.d.ts +++ /dev/null @@ -1,91 +0,0 @@ -export type Hex = Uint8Array | string; -export type PrivKey = Hex | bigint; -export type CHash = { - (message: Uint8Array | string): Uint8Array; - blockLen: number; - outputLen: number; - create(opts?: { - dkLen?: number; - }): any; -}; -export type FHash = (message: Uint8Array | string) => Uint8Array; -/** - * @example bytesToHex(Uint8Array.from([0xca, 0xfe, 0x01, 0x23])) // 'cafe0123' - */ -export declare function bytesToHex(bytes: Uint8Array): string; -export declare function numberToHexUnpadded(num: number | bigint): string; -export declare function hexToNumber(hex: string): bigint; -/** - * @example hexToBytes('cafe0123') // Uint8Array.from([0xca, 0xfe, 0x01, 0x23]) - */ -export declare function hexToBytes(hex: string): Uint8Array; -export declare function bytesToNumberBE(bytes: Uint8Array): bigint; -export declare function bytesToNumberLE(bytes: Uint8Array): bigint; -export declare function numberToBytesBE(n: number | bigint, len: number): Uint8Array; -export declare function numberToBytesLE(n: number | bigint, len: number): Uint8Array; -export declare function numberToVarBytesBE(n: number | bigint): Uint8Array; -/** - * Takes hex string or Uint8Array, converts to Uint8Array. - * Validates output length. - * Will throw error for other types. - * @param title descriptive title for an error e.g. 'private key' - * @param hex hex string or Uint8Array - * @param expectedLength optional, will compare to result array's length - * @returns - */ -export declare function ensureBytes(title: string, hex: Hex, expectedLength?: number): Uint8Array; -/** - * Copies several Uint8Arrays into one. - */ -export declare function concatBytes(...arrays: Uint8Array[]): Uint8Array; -export declare function equalBytes(b1: Uint8Array, b2: Uint8Array): boolean; -/** - * @example utf8ToBytes('abc') // new Uint8Array([97, 98, 99]) - */ -export declare function utf8ToBytes(str: string): Uint8Array; -/** - * Calculates amount of bits in a bigint. - * Same as `n.toString(2).length` - */ -export declare function bitLen(n: bigint): number; -/** - * Gets single bit at position. - * NOTE: first bit position is 0 (same as arrays) - * Same as `!!+Array.from(n.toString(2)).reverse()[pos]` - */ -export declare function bitGet(n: bigint, pos: number): bigint; -/** - * Sets single bit at position. - */ -export declare const bitSet: (n: bigint, pos: number, value: boolean) => bigint; -/** - * Calculate mask for N bits. Not using ** operator with bigints because of old engines. - * Same as BigInt(`0b${Array(i).fill('1').join('')}`) - */ -export declare const bitMask: (n: number) => bigint; -type Pred = (v: Uint8Array) => T | undefined; -/** - * Minimal HMAC-DRBG from NIST 800-90 for RFC6979 sigs. - * @returns function that will call DRBG until 2nd arg returns something meaningful - * @example - * const drbg = createHmacDRBG(32, 32, hmac); - * drbg(seed, bytesToKey); // bytesToKey must return Key or undefined - */ -export declare function createHmacDrbg(hashLen: number, qByteLen: number, hmacFn: (key: Uint8Array, ...messages: Uint8Array[]) => Uint8Array): (seed: Uint8Array, predicate: Pred) => T; -declare const validatorFns: { - readonly bigint: (val: any) => boolean; - readonly function: (val: any) => boolean; - readonly boolean: (val: any) => boolean; - readonly string: (val: any) => boolean; - readonly isSafeInteger: (val: any) => boolean; - readonly array: (val: any) => boolean; - readonly field: (val: any, object: any) => any; - readonly hash: (val: any) => boolean; -}; -type Validator = keyof typeof validatorFns; -type ValMap> = { - [K in keyof T]?: Validator; -}; -export declare function validateObject>(object: T, validators: ValMap, optValidators?: ValMap): T; -export {}; -//# sourceMappingURL=utils.d.ts.map \ No newline at end of file diff --git a/node_modules/@noble/curves/abstract/utils.d.ts.map b/node_modules/@noble/curves/abstract/utils.d.ts.map deleted file mode 100644 index 706d6513..00000000 --- a/node_modules/@noble/curves/abstract/utils.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"utils.d.ts","sourceRoot":"","sources":["../src/abstract/utils.ts"],"names":[],"mappings":"AASA,MAAM,MAAM,GAAG,GAAG,UAAU,GAAG,MAAM,CAAC;AACtC,MAAM,MAAM,OAAO,GAAG,GAAG,GAAG,MAAM,CAAC;AACnC,MAAM,MAAM,KAAK,GAAG;IAClB,CAAC,OAAO,EAAE,UAAU,GAAG,MAAM,GAAG,UAAU,CAAC;IAC3C,QAAQ,EAAE,MAAM,CAAC;IACjB,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,IAAI,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAA;KAAE,GAAG,GAAG,CAAC;CACxC,CAAC;AACF,MAAM,MAAM,KAAK,GAAG,CAAC,OAAO,EAAE,UAAU,GAAG,MAAM,KAAK,UAAU,CAAC;AAGjE;;GAEG;AACH,wBAAgB,UAAU,CAAC,KAAK,EAAE,UAAU,GAAG,MAAM,CAQpD;AAED,wBAAgB,mBAAmB,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,GAAG,MAAM,CAGhE;AAED,wBAAgB,WAAW,CAAC,GAAG,EAAE,MAAM,GAAG,MAAM,CAI/C;AAED;;GAEG;AACH,wBAAgB,UAAU,CAAC,GAAG,EAAE,MAAM,GAAG,U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,OAAO,EAAE,MAAM,EACf,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,CAAC,GAAG,EAAE,UAAU,EAAE,GAAG,QAAQ,EAAE,UAAU,EAAE,KAAK,UAAU,GACjE,CAAC,IAAI,EAAE,UAAU,EAAE,SAAS,EAAE,IAAI,CAAC,CAAC,CAAC,KAAK,CAAC,CA4C7C;AAID,QAAA,MAAM,YAAY;2BACF,GAAG;6BACD,GAAG;4BACJ,GAAG;2BACJ,GAAG;kCACI,GAAG;0BACX,GAAG;0BACH,GAAG,UAAU,GAAG;yBACjB,GAAG;CACP,CAAC;AACX,KAAK,SAAS,GAAG,MAAM,OAAO,YAAY,CAAC;AAC3C,KAAK,MAAM,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,IAAI;KAAG,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE,SAAS;CAAE,CAAC;AAG5E,wBAAgB,cAAc,CAAC,CAAC,SAAS,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,EAC1D,MAAM,EAAE,CAAC,EACT,UAAU,EAAE,MAAM,CAAC,CAAC,CAAC,EACrB,aAAa,GAAE,MAAM,CAAC,CAAC,CAAM,KAkB9B"} \ No newline at end of file diff --git a/node_modules/@noble/curves/abstract/utils.js b/node_modules/@noble/curves/abstract/utils.js deleted file mode 100644 index 60774c4b..00000000 --- a/node_modules/@noble/curves/abstract/utils.js +++ /dev/null @@ -1,287 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.validateObject = exports.createHmacDrbg = exports.bitMask = exports.bitSet = exports.bitGet = exports.bitLen = exports.utf8ToBytes = exports.equalBytes = exports.concatBytes = exports.ensureBytes = exports.numberToVarBytesBE = exports.numberToBytesLE = exports.numberToBytesBE = exports.bytesToNumberLE = exports.bytesToNumberBE = exports.hexToBytes = exports.hexToNumber = exports.numberToHexUnpadded = exports.bytesToHex = void 0; -/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */ -// 100 lines of code in the file are duplicated from noble-hashes (utils). -// This is OK: `abstract` directory does not use noble-hashes. -// User may opt-in into using different hashing library. This way, noble-hashes -// won't be included into their bundle. -const _0n = BigInt(0); -const _1n = BigInt(1); -const _2n = BigInt(2); -const u8a = (a) => a instanceof Uint8Array; -const hexes = Array.from({ length: 256 }, (v, i) => i.toString(16).padStart(2, '0')); -/** - * @example bytesToHex(Uint8Array.from([0xca, 0xfe, 0x01, 0x23])) // 'cafe0123' - */ -function bytesToHex(bytes) { - if (!u8a(bytes)) - throw new Error('Uint8Array expected'); - // pre-caching improves the speed 6x - let hex = ''; - for (let i = 0; i < bytes.length; i++) { - hex += hexes[bytes[i]]; - } - return hex; -} -exports.bytesToHex = bytesToHex; -function numberToHexUnpadded(num) { - const hex = num.toString(16); - return hex.length & 1 ? `0${hex}` : hex; -} -exports.numberToHexUnpadded = numberToHexUnpadded; -function hexToNumber(hex) { - if (typeof hex !== 'string') - throw new Error('hex string expected, got ' + typeof hex); - // Big Endian - return BigInt(hex === '' ? '0' : `0x${hex}`); -} -exports.hexToNumber = hexToNumber; -/** - * @example hexToBytes('cafe0123') // Uint8Array.from([0xca, 0xfe, 0x01, 0x23]) - */ -function hexToBytes(hex) { - if (typeof hex !== 'string') - throw new Error('hex string expected, got ' + typeof hex); - const len = hex.length; - if (len % 2) - throw new Error('padded hex string expected, got unpadded hex of length ' + len); - const array = new Uint8Array(len / 2); - for (let i = 0; i < array.length; i++) { - const j = i * 2; - const hexByte = hex.slice(j, j + 2); - const byte = Number.parseInt(hexByte, 16); - if (Number.isNaN(byte) || byte < 0) - throw new Error('Invalid byte sequence'); - array[i] = byte; - } - return array; -} -exports.hexToBytes = hexToBytes; -// BE: Big Endian, LE: Little Endian -function bytesToNumberBE(bytes) { - return hexToNumber(bytesToHex(bytes)); -} -exports.bytesToNumberBE = bytesToNumberBE; -function bytesToNumberLE(bytes) { - if (!u8a(bytes)) - throw new Error('Uint8Array expected'); - return hexToNumber(bytesToHex(Uint8Array.from(bytes).reverse())); -} -exports.bytesToNumberLE = bytesToNumberLE; -function numberToBytesBE(n, len) { - return hexToBytes(n.toString(16).padStart(len * 2, '0')); -} -exports.numberToBytesBE = numberToBytesBE; -function numberToBytesLE(n, len) { - return numberToBytesBE(n, len).reverse(); -} -exports.numberToBytesLE = numberToBytesLE; -// Unpadded, rarely used -function numberToVarBytesBE(n) { - return hexToBytes(numberToHexUnpadded(n)); -} -exports.numberToVarBytesBE = numberToVarBytesBE; -/** - * Takes hex string or Uint8Array, converts to Uint8Array. - * Validates output length. - * Will throw error for other types. - * @param title descriptive title for an error e.g. 'private key' - * @param hex hex string or Uint8Array - * @param expectedLength optional, will compare to result array's length - * @returns - */ -function ensureBytes(title, hex, expectedLength) { - let res; - if (typeof hex === 'string') { - try { - res = hexToBytes(hex); - } - catch (e) { - throw new Error(`${title} must be valid hex string, got "${hex}". Cause: ${e}`); - } - } - else if (u8a(hex)) { - // Uint8Array.from() instead of hash.slice() because node.js Buffer - // is instance of Uint8Array, and its slice() creates **mutable** copy - res = Uint8Array.from(hex); - } - else { - throw new Error(`${title} must be hex string or Uint8Array`); - } - const len = res.length; - if (typeof expectedLength === 'number' && len !== expectedLength) - throw new Error(`${title} expected ${expectedLength} bytes, got ${len}`); - return res; -} -exports.ensureBytes = ensureBytes; -/** - * Copies several Uint8Arrays into one. - */ -function concatBytes(...arrays) { - const r = new Uint8Array(arrays.reduce((sum, a) => sum + a.length, 0)); - let pad = 0; // walk through each item, ensure they have proper type - arrays.forEach((a) => { - if (!u8a(a)) - throw new Error('Uint8Array expected'); - r.set(a, pad); - pad += a.length; - }); - return r; -} -exports.concatBytes = concatBytes; -function equalBytes(b1, b2) { - // We don't care about timing attacks here - if (b1.length !== b2.length) - return false; - for (let i = 0; i < b1.length; i++) - if (b1[i] !== b2[i]) - return false; - return true; -} -exports.equalBytes = equalBytes; -/** - * @example utf8ToBytes('abc') // new Uint8Array([97, 98, 99]) - */ -function utf8ToBytes(str) { - if (typeof str !== 'string') - throw new Error(`utf8ToBytes expected string, got ${typeof str}`); - return new Uint8Array(new TextEncoder().encode(str)); // https://bugzil.la/1681809 -} -exports.utf8ToBytes = utf8ToBytes; -// Bit operations -/** - * Calculates amount of bits in a bigint. - * Same as `n.toString(2).length` - */ -function bitLen(n) { - let len; - for (len = 0; n > _0n; n >>= _1n, len += 1) - ; - return len; -} -exports.bitLen = bitLen; -/** - * Gets single bit at position. - * NOTE: first bit position is 0 (same as arrays) - * Same as `!!+Array.from(n.toString(2)).reverse()[pos]` - */ -function bitGet(n, pos) { - return (n >> BigInt(pos)) & _1n; -} -exports.bitGet = bitGet; -/** - * Sets single bit at position. - */ -const bitSet = (n, pos, value) => { - return n | ((value ? _1n : _0n) << BigInt(pos)); -}; -exports.bitSet = bitSet; -/** - * Calculate mask for N bits. Not using ** operator with bigints because of old engines. - * Same as BigInt(`0b${Array(i).fill('1').join('')}`) - */ -const bitMask = (n) => (_2n << BigInt(n - 1)) - _1n; -exports.bitMask = bitMask; -// DRBG -const u8n = (data) => new Uint8Array(data); // creates Uint8Array -const u8fr = (arr) => Uint8Array.from(arr); // another shortcut -/** - * Minimal HMAC-DRBG from NIST 800-90 for RFC6979 sigs. - * @returns function that will call DRBG until 2nd arg returns something meaningful - * @example - * const drbg = createHmacDRBG(32, 32, hmac); - * drbg(seed, bytesToKey); // bytesToKey must return Key or undefined - */ -function createHmacDrbg(hashLen, qByteLen, hmacFn) { - if (typeof hashLen !== 'number' || hashLen < 2) - throw new Error('hashLen must be a number'); - if (typeof qByteLen !== 'number' || qByteLen < 2) - throw new Error('qByteLen must be a number'); - if (typeof hmacFn !== 'function') - throw new Error('hmacFn must be a function'); - // Step B, Step C: set hashLen to 8*ceil(hlen/8) - let v = u8n(hashLen); // Minimal non-full-spec HMAC-DRBG from NIST 800-90 for RFC6979 sigs. - let k = u8n(hashLen); // Steps B and C of RFC6979 3.2: set hashLen, in our case always same - let i = 0; // Iterations counter, will throw when over 1000 - const reset = () => { - v.fill(1); - k.fill(0); - i = 0; - }; - const h = (...b) => hmacFn(k, v, ...b); // hmac(k)(v, ...values) - const reseed = (seed = u8n()) => { - // HMAC-DRBG reseed() function. Steps D-G - k = h(u8fr([0x00]), seed); // k = hmac(k || v || 0x00 || seed) - v = h(); // v = hmac(k || v) - if (seed.length === 0) - return; - k = h(u8fr([0x01]), seed); // k = hmac(k || v || 0x01 || seed) - v = h(); // v = hmac(k || v) - }; - const gen = () => { - // HMAC-DRBG generate() function - if (i++ >= 1000) - throw new Error('drbg: tried 1000 values'); - let len = 0; - const out = []; - while (len < qByteLen) { - v = h(); - const sl = v.slice(); - out.push(sl); - len += v.length; - } - return concatBytes(...out); - }; - const genUntil = (seed, pred) => { - reset(); - reseed(seed); // Steps D-G - let res = undefined; // Step H: grind until k is in [1..n-1] - while (!(res = pred(gen()))) - reseed(); - reset(); - return res; - }; - return genUntil; -} -exports.createHmacDrbg = createHmacDrbg; -// Validating curves and fields -const validatorFns = { - bigint: (val) => typeof val === 'bigint', - function: (val) => typeof val === 'function', - boolean: (val) => typeof val === 'boolean', - string: (val) => typeof val === 'string', - isSafeInteger: (val) => Number.isSafeInteger(val), - array: (val) => Array.isArray(val), - field: (val, object) => object.Fp.isValid(val), - hash: (val) => typeof val === 'function' && Number.isSafeInteger(val.outputLen), -}; -// type Record = { [P in K]: T; } -function validateObject(object, validators, optValidators = {}) { - const checkField = (fieldName, type, isOptional) => { - const checkVal = validatorFns[type]; - if (typeof checkVal !== 'function') - throw new Error(`Invalid validator "${type}", expected function`); - const val = object[fieldName]; - if (isOptional && val === undefined) - return; - if (!checkVal(val, object)) { - throw new Error(`Invalid param ${String(fieldName)}=${val} (${typeof val}), expected ${type}`); - } - }; - for (const [fieldName, type] of Object.entries(validators)) - checkField(fieldName, type, false); - for (const [fieldName, type] of Object.entries(optValidators)) - checkField(fieldName, type, true); - return object; -} -exports.validateObject = validateObject; -// validate type tests -// const o: { a: number; b: number; c: number } = { a: 1, b: 5, c: 6 }; -// const z0 = validateObject(o, { a: 'isSafeInteger' }, { c: 'bigint' }); // Ok! -// // Should fail type-check -// const z1 = validateObject(o, { a: 'tmp' }, { c: 'zz' }); -// const z2 = validateObject(o, { a: 'isSafeInteger' }, { c: 'zz' }); -// const z3 = validateObject(o, { test: 'boolean', z: 'bug' }); -// const z4 = validateObject(o, { a: 'boolean', z: 'bug' }); -//# sourceMappingURL=utils.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/abstract/utils.js.map b/node_modules/@noble/curves/abstract/utils.js.map deleted file mode 100644 index c60d8a83..00000000 --- a/node_modules/@noble/curves/abstract/utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/abstract/utils.ts"],"names":[],"mappings":";;;AAAA,sEAAsE;AACtE,0EAA0E;AAC1E,8DAA8D;AAC9D,+EAA+E;AAC/E,uCAAuC;AACvC,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;AACtB,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;AACtB,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;AACtB,MAAM,GAAG,GAAG,CAAC,CAAM,EAAmB,EAAE,CAAC,CAAC,YAAY,UAAU,CAAC;AAWjE,MAAM,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC;AACrF;;GAEG;AACH,SAAgB,UAAU,CAAC,KAAiB;IAC1C,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,qBAAqB,CAAC,CAAC;IACxD,oCAAoC;IACpC,IAAI,GAAG,GAAG,EAAE,CAAC;IACb,KAAK,IAAI,CAAC,GAAG,CAAC,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ExE,SAAgB,cAAc,CAC5B,MAAS,EACT,UAAqB,EACrB,gBAA2B,EAAE;IAE7B,MAAM,UAAU,GAAG,CAAC,SAAkB,EAAE,IAAe,EAAE,UAAmB,EAAE,EAAE;QAC9E,MAAM,QAAQ,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;QACpC,IAAI,OAAO,QAAQ,KAAK,UAAU;YAChC,MAAM,IAAI,KAAK,CAAC,sBAAsB,IAAI,sBAAsB,CAAC,CAAC;QAEpE,MAAM,GAAG,GAAG,MAAM,CAAC,SAAgC,CAAC,CAAC;QACrD,IAAI,UAAU,IAAI,GAAG,KAAK,SAAS;YAAE,OAAO;QAC5C,IAAI,CAAC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC,EAAE;YAC1B,MAAM,IAAI,KAAK,CACb,iBAAiB,MAAM,CAAC,SAAS,CAAC,IAAI,GAAG,KAAK,OAAO,GAAG,eAAe,IAAI,EAAE,CAC9E,CAAC;SACH;IACH,CAAC,CAAC;IACF,KAAK,MAAM,CAAC,SAAS,EAAE,IAAI,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC;QAAE,UAAU,CAAC,SAAS,EAAE,IAAK,EAAE,KAAK,CAAC,CAAC;IAChG,KAAK,MAAM,CAAC,SAAS,EAAE,IAAI,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,aAAa,CAAC;QAAE,UAAU,CAAC,SAAS,EAAE,IAAK,EAAE,IAAI,CAAC,CAAC;IAClG,OAAO,MAAM,CAAC;AAChB,CAAC;AArBD,wCAqBC;AACD,sBAAsB;AACtB,uEAAuE;AACvE,gFAAgF;AAChF,4BAA4B;AAC5B,2DAA2D;AAC3D,qEAAqE;AACrE,+DAA+D;AAC/D,4DAA4D"} \ No newline at end of file diff --git a/node_modules/@noble/curves/abstract/weierstrass.d.ts b/node_modules/@noble/curves/abstract/weierstrass.d.ts deleted file mode 100644 index 53449c53..00000000 --- a/node_modules/@noble/curves/abstract/weierstrass.d.ts +++ /dev/null @@ -1,240 +0,0 @@ -/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */ -import * as mod from './modular.js'; -import * as ut from './utils.js'; -import { CHash, Hex, PrivKey } from './utils.js'; -import { Group, GroupConstructor, BasicCurve, AffinePoint } from './curve.js'; -export type { AffinePoint }; -type HmacFnSync = (key: Uint8Array, ...messages: Uint8Array[]) => Uint8Array; -type EndomorphismOpts = { - beta: bigint; - splitScalar: (k: bigint) => { - k1neg: boolean; - k1: bigint; - k2neg: boolean; - k2: bigint; - }; -}; -export type BasicWCurve = BasicCurve & { - a: T; - b: T; - allowedPrivateKeyLengths?: readonly number[]; - wrapPrivateKey?: boolean; - endo?: EndomorphismOpts; - isTorsionFree?: (c: ProjConstructor, point: ProjPointType) => boolean; - clearCofactor?: (c: ProjConstructor, point: ProjPointType) => ProjPointType; -}; -type Entropy = Hex | true; -export type SignOpts = { - lowS?: boolean; - extraEntropy?: Entropy; - prehash?: boolean; -}; -export type VerOpts = { - lowS?: boolean; - prehash?: boolean; -}; -/** - * ### Design rationale for types - * - * * Interaction between classes from different curves should fail: - * `k256.Point.BASE.add(p256.Point.BASE)` - * * For this purpose we want to use `instanceof` operator, which is fast and works during runtime - * * Different calls of `curve()` would return different classes - - * `curve(params) !== curve(params)`: if somebody decided to monkey-patch their curve, - * it won't affect others - * - * TypeScript can't infer types for classes created inside a function. Classes is one instance of nominative types in TypeScript and interfaces only check for shape, so it's hard to create unique type for every function call. - * - * We can use generic types via some param, like curve opts, but that would: - * 1. Enable interaction between `curve(params)` and `curve(params)` (curves of same params) - * which is hard to debug. - * 2. Params can be generic and we can't enforce them to be constant value: - * if somebody creates curve from non-constant params, - * it would be allowed to interact with other curves with non-constant params - * - * TODO: https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-7.html#unique-symbol - */ -export interface ProjPointType extends Group> { - readonly px: T; - readonly py: T; - readonly pz: T; - get x(): T; - get y(): T; - multiply(scalar: bigint): ProjPointType; - toAffine(iz?: T): AffinePoint; - isTorsionFree(): boolean; - clearCofactor(): ProjPointType; - assertValidity(): void; - hasEvenY(): boolean; - toRawBytes(isCompressed?: boolean): Uint8Array; - toHex(isCompressed?: boolean): string; - multiplyUnsafe(scalar: bigint): ProjPointType; - multiplyAndAddUnsafe(Q: ProjPointType, a: bigint, b: bigint): ProjPointType | undefined; - _setWindowSize(windowSize: number): void; -} -export interface ProjConstructor extends GroupConstructor> { - new (x: T, y: T, z: T): ProjPointType; - fromAffine(p: AffinePoint): ProjPointType; - fromHex(hex: Hex): ProjPointType; - fromPrivateKey(privateKey: PrivKey): ProjPointType; - normalizeZ(points: ProjPointType[]): ProjPointType[]; -} -export type CurvePointsType = BasicWCurve & { - fromBytes?: (bytes: Uint8Array) => AffinePoint; - toBytes?: (c: ProjConstructor, point: ProjPointType, isCompressed: boolean) => Uint8Array; -}; -export type CurvePointsRes = { - ProjectivePoint: ProjConstructor; - normPrivateKeyToScalar: (key: PrivKey) => bigint; - weierstrassEquation: (x: T) => T; - isWithinCurveOrder: (num: bigint) => boolean; -}; -export declare const DER: { - Err: { - new (m?: string): { - name: string; - message: string; - stack?: string | undefined; - }; - }; - _parseInt(data: Uint8Array): { - d: bigint; - l: Uint8Array; - }; - toSig(hex: string | Uint8Array): { - r: bigint; - s: bigint; - }; - hexFromSig(sig: { - r: bigint; - s: bigint; - }): string; -}; -export declare function weierstrassPoints(opts: CurvePointsType): { - CURVE: Readonly<{ - readonly nBitLength: number; - readonly nByteLength: number; - readonly Fp: mod.IField; - readonly n: bigint; - readonly h: bigint; - readonly hEff?: bigint | undefined; - readonly Gx: T; - readonly Gy: T; - readonly allowInfinityPoint?: boolean | undefined; - readonly a: T; - readonly b: T; - readonly allowedPrivateKeyLengths?: readonly number[] | undefined; - readonly wrapPrivateKey?: boolean | undefined; - readonly endo?: EndomorphismOpts | undefined; - readonly isTorsionFree?: ((c: ProjConstructor, point: ProjPointType) => boolean) | undefined; - readonly clearCofactor?: ((c: ProjConstructor, point: ProjPointType) => ProjPointType) | undefined; - readonly fromBytes?: ((bytes: Uint8Array) => AffinePoint) | undefined; - readonly toBytes?: ((c: ProjConstructor, point: ProjPointType, isCompressed: boolean) => Uint8Array) | undefined; - readonly p: bigint; - }>; - ProjectivePoint: ProjConstructor; - normPrivateKeyToScalar: (key: PrivKey) => bigint; - weierstrassEquation: (x: T) => T; - isWithinCurveOrder: (num: bigint) => boolean; -}; -export interface SignatureType { - readonly r: bigint; - readonly s: bigint; - readonly recovery?: number; - assertValidity(): void; - addRecoveryBit(recovery: number): RecoveredSignatureType; - hasHighS(): boolean; - normalizeS(): SignatureType; - recoverPublicKey(msgHash: Hex): ProjPointType; - toCompactRawBytes(): Uint8Array; - toCompactHex(): string; - toDERRawBytes(isCompressed?: boolean): Uint8Array; - toDERHex(isCompressed?: boolean): string; -} -export type RecoveredSignatureType = SignatureType & { - readonly recovery: number; -}; -export type SignatureConstructor = { - new (r: bigint, s: bigint): SignatureType; - fromCompact(hex: Hex): SignatureType; - fromDER(hex: Hex): SignatureType; -}; -type SignatureLike = { - r: bigint; - s: bigint; -}; -export type PubKey = Hex | ProjPointType; -export type CurveType = BasicWCurve & { - hash: CHash; - hmac: HmacFnSync; - randomBytes: (bytesLength?: number) => Uint8Array; - lowS?: boolean; - bits2int?: (bytes: Uint8Array) => bigint; - bits2int_modN?: (bytes: Uint8Array) => bigint; -}; -declare function validateOpts(curve: CurveType): Readonly<{ - readonly nBitLength: number; - readonly nByteLength: number; - readonly Fp: mod.IField; - readonly n: bigint; - readonly h: bigint; - readonly hEff?: bigint | undefined; - readonly Gx: bigint; - readonly Gy: bigint; - readonly allowInfinityPoint?: boolean | undefined; - readonly a: bigint; - readonly b: bigint; - readonly allowedPrivateKeyLengths?: readonly number[] | undefined; - readonly wrapPrivateKey?: boolean | undefined; - readonly endo?: EndomorphismOpts | undefined; - readonly isTorsionFree?: ((c: ProjConstructor, point: ProjPointType) => boolean) | undefined; - readonly clearCofactor?: ((c: ProjConstructor, point: ProjPointType) => ProjPointType) | undefined; - readonly hash: ut.CHash; - readonly hmac: HmacFnSync; - readonly randomBytes: (bytesLength?: number | undefined) => Uint8Array; - lowS: boolean; - readonly bits2int?: ((bytes: Uint8Array) => bigint) | undefined; - readonly bits2int_modN?: ((bytes: Uint8Array) => bigint) | undefined; - readonly p: bigint; -}>; -export type CurveFn = { - CURVE: ReturnType; - getPublicKey: (privateKey: PrivKey, isCompressed?: boolean) => Uint8Array; - getSharedSecret: (privateA: PrivKey, publicB: Hex, isCompressed?: boolean) => Uint8Array; - sign: (msgHash: Hex, privKey: PrivKey, opts?: SignOpts) => RecoveredSignatureType; - verify: (signature: Hex | SignatureLike, msgHash: Hex, publicKey: Hex, opts?: VerOpts) => boolean; - ProjectivePoint: ProjConstructor; - Signature: SignatureConstructor; - utils: { - normPrivateKeyToScalar: (key: PrivKey) => bigint; - isValidPrivateKey(privateKey: PrivKey): boolean; - randomPrivateKey: () => Uint8Array; - precompute: (windowSize?: number, point?: ProjPointType) => ProjPointType; - }; -}; -export declare function weierstrass(curveDef: CurveType): CurveFn; -/** - * Implementation of the Shallue and van de Woestijne method for any weierstrass curve. - * TODO: check if there is a way to merge this with uvRatio in Edwards; move to modular. - * b = True and y = sqrt(u / v) if (u / v) is square in F, and - * b = False and y = sqrt(Z * (u / v)) otherwise. - * @param Fp - * @param Z - * @returns - */ -export declare function SWUFpSqrtRatio(Fp: mod.IField, Z: T): (u: T, v: T) => { - isValid: boolean; - value: T; -}; -/** - * From draft-irtf-cfrg-hash-to-curve-16 - */ -export declare function mapToCurveSimpleSWU(Fp: mod.IField, opts: { - A: T; - B: T; - Z: T; -}): (u: T) => { - x: T; - y: T; -}; -//# sourceMappingURL=weierstrass.d.ts.map \ No newline at end of file diff --git a/node_modules/@noble/curves/abstract/weierstrass.d.ts.map b/node_modules/@noble/curves/abstract/weierstrass.d.ts.map deleted file mode 100644 index ef268906..00000000 --- a/node_modules/@noble/curves/abstract/weierstrass.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{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sBAAsB,CAAC;IAClF,MAAM,EAAE,CAAC,SAAS,EAAE,GAAG,GAAG,aAAa,EAAE,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE,OAAO,KAAK,OAAO,CAAC;IAClG,eAAe,EAAE,eAAe,CAAC,MAAM,CAAC,CAAC;IACzC,SAAS,EAAE,oBAAoB,CAAC;IAChC,KAAK,EAAE;QACL,sBAAsB,EAAE,CAAC,GAAG,EAAE,OAAO,KAAK,MAAM,CAAC;QACjD,iBAAiB,CAAC,UAAU,EAAE,OAAO,GAAG,OAAO,CAAC;QAChD,gBAAgB,EAAE,MAAM,UAAU,CAAC;QACnC,UAAU,EAAE,CAAC,UAAU,CAAC,EAAE,MAAM,EAAE,KAAK,CAAC,EAAE,aAAa,CAAC,MAAM,CAAC,KAAK,aAAa,CAAC,MAAM,CAAC,CAAC;KAC3F,CAAC;CACH,CAAC;AAEF,wBAAgB,WAAW,CAAC,QAAQ,EAAE,SAAS,GAAG,OAAO,CAsZxD;AAED;;;;;;;;GAQG;AACH,wBAAgB,cAAc,CAAC,CAAC,EAAE,EAAE,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,OAgBnC,CAAC,KAAK,CAAC,KAAG;IAAE,OAAO,EAAE,OAAO,CAAC;IAAC,KAAK,EAAE,CAAC,CAAA;CAAE,CAmD7D;AACD;;GAEG;AACH,wBAAgB,mBAAmB,CAAC,CAAC,EACnC,EAAE,EAAE,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,EACjB,IAAI,EAAE;IACJ,CAAC,EAAE,CAAC,CAAC;IACL,CAAC,EAAE,CAAC,CAAC;IACL,CAAC,EAAE,CAAC,CAAC;CACN,OASU,CAAC;OAAQ,CAAC;OAAK,CAAC;EA8B5B"} \ No newline at end of file diff --git a/node_modules/@noble/curves/abstract/weierstrass.js b/node_modules/@noble/curves/abstract/weierstrass.js deleted file mode 100644 index b24bfbfd..00000000 --- a/node_modules/@noble/curves/abstract/weierstrass.js +++ /dev/null @@ -1,1061 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.mapToCurveSimpleSWU = exports.SWUFpSqrtRatio = exports.weierstrass = exports.weierstrassPoints = exports.DER = void 0; -/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */ -// Short Weierstrass curve. The formula is: y² = x³ + ax + b -const mod = require("./modular.js"); -const ut = require("./utils.js"); -const utils_js_1 = require("./utils.js"); -const curve_js_1 = require("./curve.js"); -function validatePointOpts(curve) { - const opts = (0, curve_js_1.validateBasic)(curve); - ut.validateObject(opts, { - a: 'field', - b: 'field', - }, { - allowedPrivateKeyLengths: 'array', - wrapPrivateKey: 'boolean', - isTorsionFree: 'function', - clearCofactor: 'function', - allowInfinityPoint: 'boolean', - fromBytes: 'function', - toBytes: 'function', - }); - const { endo, Fp, a } = opts; - if (endo) { - if (!Fp.eql(a, Fp.ZERO)) { - throw new Error('Endomorphism can only be defined for Koblitz curves that have a=0'); - } - if (typeof endo !== 'object' || - typeof endo.beta !== 'bigint' || - typeof endo.splitScalar !== 'function') { - throw new Error('Expected endomorphism with beta: bigint and splitScalar: function'); - } - } - return Object.freeze({ ...opts }); -} -// ASN.1 DER encoding utilities -const { bytesToNumberBE: b2n, hexToBytes: h2b } = ut; -exports.DER = { - // asn.1 DER encoding utils - Err: class DERErr extends Error { - constructor(m = '') { - super(m); - } - }, - _parseInt(data) { - const { Err: E } = exports.DER; - if (data.length < 2 || data[0] !== 0x02) - throw new E('Invalid signature integer tag'); - const len = data[1]; - const res = data.subarray(2, len + 2); - if (!len || res.length !== len) - throw new E('Invalid signature integer: wrong length'); - // https://crypto.stackexchange.com/a/57734 Leftmost bit of first byte is 'negative' flag, - // since we always use positive integers here. It must always be empty: - // - add zero byte if exists - // - if next byte doesn't have a flag, leading zero is not allowed (minimal encoding) - if (res[0] & 0b10000000) - throw new E('Invalid signature integer: negative'); - if (res[0] === 0x00 && !(res[1] & 0b10000000)) - throw new E('Invalid signature integer: unnecessary leading zero'); - return { d: b2n(res), l: data.subarray(len + 2) }; // d is data, l is left - }, - toSig(hex) { - // parse DER signature - const { Err: E } = exports.DER; - const data = typeof hex === 'string' ? h2b(hex) : hex; - if (!(data instanceof Uint8Array)) - throw new Error('ui8a expected'); - let l = data.length; - if (l < 2 || data[0] != 0x30) - throw new E('Invalid signature tag'); - if (data[1] !== l - 2) - throw new E('Invalid signature: incorrect length'); - const { d: r, l: sBytes } = exports.DER._parseInt(data.subarray(2)); - const { d: s, l: rBytesLeft } = exports.DER._parseInt(sBytes); - if (rBytesLeft.length) - throw new E('Invalid signature: left bytes after parsing'); - return { r, s }; - }, - hexFromSig(sig) { - // Add leading zero if first byte has negative bit enabled. More details in '_parseInt' - const slice = (s) => (Number.parseInt(s[0], 16) & 0b1000 ? '00' + s : s); - const h = (num) => { - const hex = num.toString(16); - return hex.length & 1 ? `0${hex}` : hex; - }; - const s = slice(h(sig.s)); - const r = slice(h(sig.r)); - const shl = s.length / 2; - const rhl = r.length / 2; - const sl = h(shl); - const rl = h(rhl); - return `30${h(rhl + shl + 4)}02${rl}${r}02${sl}${s}`; - }, -}; -// Be friendly to bad ECMAScript parsers by not using bigint literals -// prettier-ignore -const _0n = BigInt(0), _1n = BigInt(1), _2n = BigInt(2), _3n = BigInt(3), _4n = BigInt(4); -function weierstrassPoints(opts) { - const CURVE = validatePointOpts(opts); - const { Fp } = CURVE; // All curves has same field / group length as for now, but they can differ - const toBytes = CURVE.toBytes || - ((c, point, isCompressed) => { - const a = point.toAffine(); - return ut.concatBytes(Uint8Array.from([0x04]), Fp.toBytes(a.x), Fp.toBytes(a.y)); - }); - const fromBytes = CURVE.fromBytes || - ((bytes) => { - // const head = bytes[0]; - const tail = bytes.subarray(1); - // if (head !== 0x04) throw new Error('Only non-compressed encoding is supported'); - const x = Fp.fromBytes(tail.subarray(0, Fp.BYTES)); - const y = Fp.fromBytes(tail.subarray(Fp.BYTES, 2 * Fp.BYTES)); - return { x, y }; - }); - /** - * y² = x³ + ax + b: Short weierstrass curve formula - * @returns y² - */ - function weierstrassEquation(x) { - const { a, b } = CURVE; - const x2 = Fp.sqr(x); // x * x - const x3 = Fp.mul(x2, x); // x2 * x - return Fp.add(Fp.add(x3, Fp.mul(x, a)), b); // x3 + a * x + b - } - // Validate whether the passed curve params are valid. - // We check if curve equation works for generator point. - // `assertValidity()` won't work: `isTorsionFree()` is not available at this point in bls12-381. - // ProjectivePoint class has not been initialized yet. - if (!Fp.eql(Fp.sqr(CURVE.Gy), weierstrassEquation(CURVE.Gx))) - throw new Error('bad generator point: equation left != right'); - // Valid group elements reside in range 1..n-1 - function isWithinCurveOrder(num) { - return typeof num === 'bigint' && _0n < num && num < CURVE.n; - } - function assertGE(num) { - if (!isWithinCurveOrder(num)) - throw new Error('Expected valid bigint: 0 < bigint < curve.n'); - } - // Validates if priv key is valid and converts it to bigint. - // Supports options allowedPrivateKeyLengths and wrapPrivateKey. - function normPrivateKeyToScalar(key) { - const { allowedPrivateKeyLengths: lengths, nByteLength, wrapPrivateKey, n } = CURVE; - if (lengths && typeof key !== 'bigint') { - if (key instanceof Uint8Array) - key = ut.bytesToHex(key); - // Normalize to hex string, pad. E.g. P521 would norm 130-132 char hex to 132-char bytes - if (typeof key !== 'string' || !lengths.includes(key.length)) - throw new Error('Invalid key'); - key = key.padStart(nByteLength * 2, '0'); - } - let num; - try { - num = - typeof key === 'bigint' - ? key - : ut.bytesToNumberBE((0, utils_js_1.ensureBytes)('private key', key, nByteLength)); - } - catch (error) { - throw new Error(`private key must be ${nByteLength} bytes, hex or bigint, not ${typeof key}`); - } - if (wrapPrivateKey) - num = mod.mod(num, n); // disabled by default, enabled for BLS - assertGE(num); // num in range [1..N-1] - return num; - } - const pointPrecomputes = new Map(); - function assertPrjPoint(other) { - if (!(other instanceof Point)) - throw new Error('ProjectivePoint expected'); - } - /** - * Projective Point works in 3d / projective (homogeneous) coordinates: (x, y, z) ∋ (x=x/z, y=y/z) - * Default Point works in 2d / affine coordinates: (x, y) - * We're doing calculations in projective, because its operations don't require costly inversion. - */ - class Point { - constructor(px, py, pz) { - this.px = px; - this.py = py; - this.pz = pz; - if (px == null || !Fp.isValid(px)) - throw new Error('x required'); - if (py == null || !Fp.isValid(py)) - throw new Error('y required'); - if (pz == null || !Fp.isValid(pz)) - throw new Error('z required'); - } - // Does not validate if the point is on-curve. - // Use fromHex instead, or call assertValidity() later. - static fromAffine(p) { - const { x, y } = p || {}; - if (!p || !Fp.isValid(x) || !Fp.isValid(y)) - throw new Error('invalid affine point'); - if (p instanceof Point) - throw new Error('projective point not allowed'); - const is0 = (i) => Fp.eql(i, Fp.ZERO); - // fromAffine(x:0, y:0) would produce (x:0, y:0, z:1), but we need (x:0, y:1, z:0) - if (is0(x) && is0(y)) - return Point.ZERO; - return new Point(x, y, Fp.ONE); - } - get x() { - return this.toAffine().x; - } - get y() { - return this.toAffine().y; - } - /** - * Takes a bunch of Projective Points but executes only one - * inversion on all of them. Inversion is very slow operation, - * so this improves performance massively. - * Optimization: converts a list of projective points to a list of identical points with Z=1. - */ - static normalizeZ(points) { - const toInv = Fp.invertBatch(points.map((p) => p.pz)); - return points.map((p, i) => p.toAffine(toInv[i])).map(Point.fromAffine); - } - /** - * Converts hash string or Uint8Array to Point. - * @param hex short/long ECDSA hex - */ - static fromHex(hex) { - const P = Point.fromAffine(fromBytes((0, utils_js_1.ensureBytes)('pointHex', hex))); - P.assertValidity(); - return P; - } - // Multiplies generator point by privateKey. - static fromPrivateKey(privateKey) { - return Point.BASE.multiply(normPrivateKeyToScalar(privateKey)); - } - // "Private method", don't use it directly - _setWindowSize(windowSize) { - this._WINDOW_SIZE = windowSize; - pointPrecomputes.delete(this); - } - // A point on curve is valid if it conforms to equation. - assertValidity() { - // Zero is valid point too! - if (this.is0()) { - if (CURVE.allowInfinityPoint) - return; - throw new Error('bad point: ZERO'); - } - // Some 3rd-party test vectors require different wording between here & `fromCompressedHex` - const { x, y } = this.toAffine(); - // Check if x, y are valid field elements - if (!Fp.isValid(x) || !Fp.isValid(y)) - throw new Error('bad point: x or y not FE'); - const left = Fp.sqr(y); // y² - const right = weierstrassEquation(x); // x³ + ax + b - if (!Fp.eql(left, right)) - throw new Error('bad point: equation left != right'); - if (!this.isTorsionFree()) - throw new Error('bad point: not in prime-order subgroup'); - } - hasEvenY() { - const { y } = this.toAffine(); - if (Fp.isOdd) - return !Fp.isOdd(y); - throw new Error("Field doesn't support isOdd"); - } - /** - * Compare one point to another. - */ - equals(other) { - assertPrjPoint(other); - const { px: X1, py: Y1, pz: Z1 } = this; - const { px: X2, py: Y2, pz: Z2 } = other; - const U1 = Fp.eql(Fp.mul(X1, Z2), Fp.mul(X2, Z1)); - const U2 = Fp.eql(Fp.mul(Y1, Z2), Fp.mul(Y2, Z1)); - return U1 && U2; - } - /** - * Flips point to one corresponding to (x, -y) in Affine coordinates. - */ - negate() { - return new Point(this.px, Fp.neg(this.py), this.pz); - } - // Renes-Costello-Batina exception-free doubling formula. - // There is 30% faster Jacobian formula, but it is not complete. - // https://eprint.iacr.org/2015/1060, algorithm 3 - // Cost: 8M + 3S + 3*a + 2*b3 + 15add. - double() { - const { a, b } = CURVE; - const b3 = Fp.mul(b, _3n); - const { px: X1, py: Y1, pz: Z1 } = this; - let X3 = Fp.ZERO, Y3 = Fp.ZERO, Z3 = Fp.ZERO; // prettier-ignore - let t0 = Fp.mul(X1, X1); // step 1 - let t1 = Fp.mul(Y1, Y1); - let t2 = Fp.mul(Z1, Z1); - let t3 = Fp.mul(X1, Y1); - t3 = Fp.add(t3, t3); // step 5 - Z3 = Fp.mul(X1, Z1); - Z3 = Fp.add(Z3, Z3); - X3 = Fp.mul(a, Z3); - Y3 = Fp.mul(b3, t2); - Y3 = Fp.add(X3, Y3); // step 10 - X3 = Fp.sub(t1, Y3); - Y3 = Fp.add(t1, Y3); - Y3 = Fp.mul(X3, Y3); - X3 = Fp.mul(t3, X3); - Z3 = Fp.mul(b3, Z3); // step 15 - t2 = Fp.mul(a, t2); - t3 = Fp.sub(t0, t2); - t3 = Fp.mul(a, t3); - t3 = Fp.add(t3, Z3); - Z3 = Fp.add(t0, t0); // step 20 - t0 = Fp.add(Z3, t0); - t0 = Fp.add(t0, t2); - t0 = Fp.mul(t0, t3); - Y3 = Fp.add(Y3, t0); - t2 = Fp.mul(Y1, Z1); // step 25 - t2 = Fp.add(t2, t2); - t0 = Fp.mul(t2, t3); - X3 = Fp.sub(X3, t0); - Z3 = Fp.mul(t2, t1); - Z3 = Fp.add(Z3, Z3); // step 30 - Z3 = Fp.add(Z3, Z3); - return new Point(X3, Y3, Z3); - } - // Renes-Costello-Batina exception-free addition formula. - // There is 30% faster Jacobian formula, but it is not complete. - // https://eprint.iacr.org/2015/1060, algorithm 1 - // Cost: 12M + 0S + 3*a + 3*b3 + 23add. - add(other) { - assertPrjPoint(other); - const { px: X1, py: Y1, pz: Z1 } = this; - const { px: X2, py: Y2, pz: Z2 } = other; - let X3 = Fp.ZERO, Y3 = Fp.ZERO, Z3 = Fp.ZERO; // prettier-ignore - const a = CURVE.a; - const b3 = Fp.mul(CURVE.b, _3n); - let t0 = Fp.mul(X1, X2); // step 1 - let t1 = Fp.mul(Y1, Y2); - let t2 = Fp.mul(Z1, Z2); - let t3 = Fp.add(X1, Y1); - let t4 = Fp.add(X2, Y2); // step 5 - t3 = Fp.mul(t3, t4); - t4 = Fp.add(t0, t1); - t3 = Fp.sub(t3, t4); - t4 = Fp.add(X1, Z1); - let t5 = Fp.add(X2, Z2); // step 10 - t4 = Fp.mul(t4, t5); - t5 = Fp.add(t0, t2); - t4 = Fp.sub(t4, t5); - t5 = Fp.add(Y1, Z1); - X3 = Fp.add(Y2, Z2); // step 15 - t5 = Fp.mul(t5, X3); - X3 = Fp.add(t1, t2); - t5 = Fp.sub(t5, X3); - Z3 = Fp.mul(a, t4); - X3 = Fp.mul(b3, t2); // step 20 - Z3 = Fp.add(X3, Z3); - X3 = Fp.sub(t1, Z3); - Z3 = Fp.add(t1, Z3); - Y3 = Fp.mul(X3, Z3); - t1 = Fp.add(t0, t0); // step 25 - t1 = Fp.add(t1, t0); - t2 = Fp.mul(a, t2); - t4 = Fp.mul(b3, t4); - t1 = Fp.add(t1, t2); - t2 = Fp.sub(t0, t2); // step 30 - t2 = Fp.mul(a, t2); - t4 = Fp.add(t4, t2); - t0 = Fp.mul(t1, t4); - Y3 = Fp.add(Y3, t0); - t0 = Fp.mul(t5, t4); // step 35 - X3 = Fp.mul(t3, X3); - X3 = Fp.sub(X3, t0); - t0 = Fp.mul(t3, t1); - Z3 = Fp.mul(t5, Z3); - Z3 = Fp.add(Z3, t0); // step 40 - return new Point(X3, Y3, Z3); - } - subtract(other) { - return this.add(other.negate()); - } - is0() { - return this.equals(Point.ZERO); - } - wNAF(n) { - return wnaf.wNAFCached(this, pointPrecomputes, n, (comp) => { - const toInv = Fp.invertBatch(comp.map((p) => p.pz)); - return comp.map((p, i) => p.toAffine(toInv[i])).map(Point.fromAffine); - }); - } - /** - * Non-constant-time multiplication. Uses double-and-add algorithm. - * It's faster, but should only be used when you don't care about - * an exposed private key e.g. sig verification, which works over *public* keys. - */ - multiplyUnsafe(n) { - const I = Point.ZERO; - if (n === _0n) - return I; - assertGE(n); // Will throw on 0 - if (n === _1n) - return this; - const { endo } = CURVE; - if (!endo) - return wnaf.unsafeLadder(this, n); - // Apply endomorphism - let { k1neg, k1, k2neg, k2 } = endo.splitScalar(n); - let k1p = I; - let k2p = I; - let d = this; - while (k1 > _0n || k2 > _0n) { - if (k1 & _1n) - k1p = k1p.add(d); - if (k2 & _1n) - k2p = k2p.add(d); - d = d.double(); - k1 >>= _1n; - k2 >>= _1n; - } - if (k1neg) - k1p = k1p.negate(); - if (k2neg) - k2p = k2p.negate(); - k2p = new Point(Fp.mul(k2p.px, endo.beta), k2p.py, k2p.pz); - return k1p.add(k2p); - } - /** - * Constant time multiplication. - * Uses wNAF method. Windowed method may be 10% faster, - * but takes 2x longer to generate and consumes 2x memory. - * Uses precomputes when available. - * Uses endomorphism for Koblitz curves. - * @param scalar by which the point would be multiplied - * @returns New point - */ - multiply(scalar) { - assertGE(scalar); - let n = scalar; - let point, fake; // Fake point is used to const-time mult - const { endo } = CURVE; - if (endo) { - const { k1neg, k1, k2neg, k2 } = endo.splitScalar(n); - let { p: k1p, f: f1p } = this.wNAF(k1); - let { p: k2p, f: f2p } = this.wNAF(k2); - k1p = wnaf.constTimeNegate(k1neg, k1p); - k2p = wnaf.constTimeNegate(k2neg, k2p); - k2p = new Point(Fp.mul(k2p.px, endo.beta), k2p.py, k2p.pz); - point = k1p.add(k2p); - fake = f1p.add(f2p); - } - else { - const { p, f } = this.wNAF(n); - point = p; - fake = f; - } - // Normalize `z` for both points, but return only real one - return Point.normalizeZ([point, fake])[0]; - } - /** - * Efficiently calculate `aP + bQ`. Unsafe, can expose private key, if used incorrectly. - * Not using Strauss-Shamir trick: precomputation tables are faster. - * The trick could be useful if both P and Q are not G (not in our case). - * @returns non-zero affine point - */ - multiplyAndAddUnsafe(Q, a, b) { - const G = Point.BASE; // No Strauss-Shamir trick: we have 10% faster G precomputes - const mul = (P, a // Select faster multiply() method - ) => (a === _0n || a === _1n || !P.equals(G) ? P.multiplyUnsafe(a) : P.multiply(a)); - const sum = mul(this, a).add(mul(Q, b)); - return sum.is0() ? undefined : sum; - } - // Converts Projective point to affine (x, y) coordinates. - // Can accept precomputed Z^-1 - for example, from invertBatch. - // (x, y, z) ∋ (x=x/z, y=y/z) - toAffine(iz) { - const { px: x, py: y, pz: z } = this; - const is0 = this.is0(); - // If invZ was 0, we return zero point. However we still want to execute - // all operations, so we replace invZ with a random number, 1. - if (iz == null) - iz = is0 ? Fp.ONE : Fp.inv(z); - const ax = Fp.mul(x, iz); - const ay = Fp.mul(y, iz); - const zz = Fp.mul(z, iz); - if (is0) - return { x: Fp.ZERO, y: Fp.ZERO }; - if (!Fp.eql(zz, Fp.ONE)) - throw new Error('invZ was invalid'); - return { x: ax, y: ay }; - } - isTorsionFree() { - const { h: cofactor, isTorsionFree } = CURVE; - if (cofactor === _1n) - return true; // No subgroups, always torsion-free - if (isTorsionFree) - return isTorsionFree(Point, this); - throw new Error('isTorsionFree() has not been declared for the elliptic curve'); - } - clearCofactor() { - const { h: cofactor, clearCofactor } = CURVE; - if (cofactor === _1n) - return this; // Fast-path - if (clearCofactor) - return clearCofactor(Point, this); - return this.multiplyUnsafe(CURVE.h); - } - toRawBytes(isCompressed = true) { - this.assertValidity(); - return toBytes(Point, this, isCompressed); - } - toHex(isCompressed = true) { - return ut.bytesToHex(this.toRawBytes(isCompressed)); - } - } - Point.BASE = new Point(CURVE.Gx, CURVE.Gy, Fp.ONE); - Point.ZERO = new Point(Fp.ZERO, Fp.ONE, Fp.ZERO); - const _bits = CURVE.nBitLength; - const wnaf = (0, curve_js_1.wNAF)(Point, CURVE.endo ? Math.ceil(_bits / 2) : _bits); - // Validate if generator point is on curve - return { - CURVE, - ProjectivePoint: Point, - normPrivateKeyToScalar, - weierstrassEquation, - isWithinCurveOrder, - }; -} -exports.weierstrassPoints = weierstrassPoints; -function validateOpts(curve) { - const opts = (0, curve_js_1.validateBasic)(curve); - ut.validateObject(opts, { - hash: 'hash', - hmac: 'function', - randomBytes: 'function', - }, { - bits2int: 'function', - bits2int_modN: 'function', - lowS: 'boolean', - }); - return Object.freeze({ lowS: true, ...opts }); -} -function weierstrass(curveDef) { - const CURVE = validateOpts(curveDef); - const { Fp, n: CURVE_ORDER } = CURVE; - const compressedLen = Fp.BYTES + 1; // e.g. 33 for 32 - const uncompressedLen = 2 * Fp.BYTES + 1; // e.g. 65 for 32 - function isValidFieldElement(num) { - return _0n < num && num < Fp.ORDER; // 0 is banned since it's not invertible FE - } - function modN(a) { - return mod.mod(a, CURVE_ORDER); - } - function invN(a) { - return mod.invert(a, CURVE_ORDER); - } - const { ProjectivePoint: Point, normPrivateKeyToScalar, weierstrassEquation, isWithinCurveOrder, } = weierstrassPoints({ - ...CURVE, - toBytes(c, point, isCompressed) { - const a = point.toAffine(); - const x = Fp.toBytes(a.x); - const cat = ut.concatBytes; - if (isCompressed) { - return cat(Uint8Array.from([point.hasEvenY() ? 0x02 : 0x03]), x); - } - else { - return cat(Uint8Array.from([0x04]), x, Fp.toBytes(a.y)); - } - }, - fromBytes(bytes) { - const len = bytes.length; - const head = bytes[0]; - const tail = bytes.subarray(1); - // this.assertValidity() is done inside of fromHex - if (len === compressedLen && (head === 0x02 || head === 0x03)) { - const x = ut.bytesToNumberBE(tail); - if (!isValidFieldElement(x)) - throw new Error('Point is not on curve'); - const y2 = weierstrassEquation(x); // y² = x³ + ax + b - let y = Fp.sqrt(y2); // y = y² ^ (p+1)/4 - const isYOdd = (y & _1n) === _1n; - // ECDSA - const isHeadOdd = (head & 1) === 1; - if (isHeadOdd !== isYOdd) - y = Fp.neg(y); - return { x, y }; - } - else if (len === uncompressedLen && head === 0x04) { - const x = Fp.fromBytes(tail.subarray(0, Fp.BYTES)); - const y = Fp.fromBytes(tail.subarray(Fp.BYTES, 2 * Fp.BYTES)); - return { x, y }; - } - else { - throw new Error(`Point of length ${len} was invalid. Expected ${compressedLen} compressed bytes or ${uncompressedLen} uncompressed bytes`); - } - }, - }); - const numToNByteStr = (num) => ut.bytesToHex(ut.numberToBytesBE(num, CURVE.nByteLength)); - function isBiggerThanHalfOrder(number) { - const HALF = CURVE_ORDER >> _1n; - return number > HALF; - } - function normalizeS(s) { - return isBiggerThanHalfOrder(s) ? modN(-s) : s; - } - // slice bytes num - const slcNum = (b, from, to) => ut.bytesToNumberBE(b.slice(from, to)); - /** - * ECDSA signature with its (r, s) properties. Supports DER & compact representations. - */ - class Signature { - constructor(r, s, recovery) { - this.r = r; - this.s = s; - this.recovery = recovery; - this.assertValidity(); - } - // pair (bytes of r, bytes of s) - static fromCompact(hex) { - const l = CURVE.nByteLength; - hex = (0, utils_js_1.ensureBytes)('compactSignature', hex, l * 2); - return new Signature(slcNum(hex, 0, l), slcNum(hex, l, 2 * l)); - } - // DER encoded ECDSA signature - // https://bitcoin.stackexchange.com/questions/57644/what-are-the-parts-of-a-bitcoin-transaction-input-script - static fromDER(hex) { - const { r, s } = exports.DER.toSig((0, utils_js_1.ensureBytes)('DER', hex)); - return new Signature(r, s); - } - assertValidity() { - // can use assertGE here - if (!isWithinCurveOrder(this.r)) - throw new Error('r must be 0 < r < CURVE.n'); - if (!isWithinCurveOrder(this.s)) - throw new Error('s must be 0 < s < CURVE.n'); - } - addRecoveryBit(recovery) { - return new Signature(this.r, this.s, recovery); - } - recoverPublicKey(msgHash) { - const { r, s, recovery: rec } = this; - const h = bits2int_modN((0, utils_js_1.ensureBytes)('msgHash', msgHash)); // Truncate hash - if (rec == null || ![0, 1, 2, 3].includes(rec)) - throw new Error('recovery id invalid'); - const radj = rec === 2 || rec === 3 ? r + CURVE.n : r; - if (radj >= Fp.ORDER) - throw new Error('recovery id 2 or 3 invalid'); - const prefix = (rec & 1) === 0 ? '02' : '03'; - const R = Point.fromHex(prefix + numToNByteStr(radj)); - const ir = invN(radj); // r^-1 - const u1 = modN(-h * ir); // -hr^-1 - const u2 = modN(s * ir); // sr^-1 - const Q = Point.BASE.multiplyAndAddUnsafe(R, u1, u2); // (sr^-1)R-(hr^-1)G = -(hr^-1)G + (sr^-1) - if (!Q) - throw new Error('point at infinify'); // unsafe is fine: no priv data leaked - Q.assertValidity(); - return Q; - } - // Signatures should be low-s, to prevent malleability. - hasHighS() { - return isBiggerThanHalfOrder(this.s); - } - normalizeS() { - return this.hasHighS() ? new Signature(this.r, modN(-this.s), this.recovery) : this; - } - // DER-encoded - toDERRawBytes() { - return ut.hexToBytes(this.toDERHex()); - } - toDERHex() { - return exports.DER.hexFromSig({ r: this.r, s: this.s }); - } - // padded bytes of r, then padded bytes of s - toCompactRawBytes() { - return ut.hexToBytes(this.toCompactHex()); - } - toCompactHex() { - return numToNByteStr(this.r) + numToNByteStr(this.s); - } - } - const utils = { - isValidPrivateKey(privateKey) { - try { - normPrivateKeyToScalar(privateKey); - return true; - } - catch (error) { - return false; - } - }, - normPrivateKeyToScalar: normPrivateKeyToScalar, - /** - * Produces cryptographically secure private key from random of size (nBitLength+64) - * as per FIPS 186 B.4.1 with modulo bias being neglible. - */ - randomPrivateKey: () => { - const rand = CURVE.randomBytes(Fp.BYTES + 8); - const num = mod.hashToPrivateScalar(rand, CURVE_ORDER); - return ut.numberToBytesBE(num, CURVE.nByteLength); - }, - /** - * Creates precompute table for an arbitrary EC point. Makes point "cached". - * Allows to massively speed-up `point.multiply(scalar)`. - * @returns cached point - * @example - * const fast = utils.precompute(8, ProjectivePoint.fromHex(someonesPubKey)); - * fast.multiply(privKey); // much faster ECDH now - */ - precompute(windowSize = 8, point = Point.BASE) { - point._setWindowSize(windowSize); - point.multiply(BigInt(3)); // 3 is arbitrary, just need any number here - return point; - }, - }; - /** - * Computes public key for a private key. Checks for validity of the private key. - * @param privateKey private key - * @param isCompressed whether to return compact (default), or full key - * @returns Public key, full when isCompressed=false; short when isCompressed=true - */ - function getPublicKey(privateKey, isCompressed = true) { - return Point.fromPrivateKey(privateKey).toRawBytes(isCompressed); - } - /** - * Quick and dirty check for item being public key. Does not validate hex, or being on-curve. - */ - function isProbPub(item) { - const arr = item instanceof Uint8Array; - const str = typeof item === 'string'; - const len = (arr || str) && item.length; - if (arr) - return len === compressedLen || len === uncompressedLen; - if (str) - return len === 2 * compressedLen || len === 2 * uncompressedLen; - if (item instanceof Point) - return true; - return false; - } - /** - * ECDH (Elliptic Curve Diffie Hellman). - * Computes shared public key from private key and public key. - * Checks: 1) private key validity 2) shared key is on-curve. - * Does NOT hash the result. - * @param privateA private key - * @param publicB different public key - * @param isCompressed whether to return compact (default), or full key - * @returns shared public key - */ - function getSharedSecret(privateA, publicB, isCompressed = true) { - if (isProbPub(privateA)) - throw new Error('first arg must be private key'); - if (!isProbPub(publicB)) - throw new Error('second arg must be public key'); - const b = Point.fromHex(publicB); // check for being on-curve - return b.multiply(normPrivateKeyToScalar(privateA)).toRawBytes(isCompressed); - } - // RFC6979: ensure ECDSA msg is X bytes and < N. RFC suggests optional truncating via bits2octets. - // FIPS 186-4 4.6 suggests the leftmost min(nBitLen, outLen) bits, which matches bits2int. - // bits2int can produce res>N, we can do mod(res, N) since the bitLen is the same. - // int2octets can't be used; pads small msgs with 0: unacceptatble for trunc as per RFC vectors - const bits2int = CURVE.bits2int || - function (bytes) { - // For curves with nBitLength % 8 !== 0: bits2octets(bits2octets(m)) !== bits2octets(m) - // for some cases, since bytes.length * 8 is not actual bitLength. - const num = ut.bytesToNumberBE(bytes); // check for == u8 done here - const delta = bytes.length * 8 - CURVE.nBitLength; // truncate to nBitLength leftmost bits - return delta > 0 ? num >> BigInt(delta) : num; - }; - const bits2int_modN = CURVE.bits2int_modN || - function (bytes) { - return modN(bits2int(bytes)); // can't use bytesToNumberBE here - }; - // NOTE: pads output with zero as per spec - const ORDER_MASK = ut.bitMask(CURVE.nBitLength); - /** - * Converts to bytes. Checks if num in `[0..ORDER_MASK-1]` e.g.: `[0..2^256-1]`. - */ - function int2octets(num) { - if (typeof num !== 'bigint') - throw new Error('bigint expected'); - if (!(_0n <= num && num < ORDER_MASK)) - throw new Error(`bigint expected < 2^${CURVE.nBitLength}`); - // works with order, can have different size than numToField! - return ut.numberToBytesBE(num, CURVE.nByteLength); - } - // Steps A, D of RFC6979 3.2 - // Creates RFC6979 seed; converts msg/privKey to numbers. - // Used only in sign, not in verify. - // NOTE: we cannot assume here that msgHash has same amount of bytes as curve order, this will be wrong at least for P521. - // Also it can be bigger for P224 + SHA256 - function prepSig(msgHash, privateKey, opts = defaultSigOpts) { - if (['recovered', 'canonical'].some((k) => k in opts)) - throw new Error('sign() legacy options not supported'); - const { hash, randomBytes } = CURVE; - let { lowS, prehash, extraEntropy: ent } = opts; // generates low-s sigs by default - if (lowS == null) - lowS = true; // RFC6979 3.2: we skip step A, because we already provide hash - msgHash = (0, utils_js_1.ensureBytes)('msgHash', msgHash); - if (prehash) - msgHash = (0, utils_js_1.ensureBytes)('prehashed msgHash', hash(msgHash)); - // We can't later call bits2octets, since nested bits2int is broken for curves - // with nBitLength % 8 !== 0. Because of that, we unwrap it here as int2octets call. - // const bits2octets = (bits) => int2octets(bits2int_modN(bits)) - const h1int = bits2int_modN(msgHash); - const d = normPrivateKeyToScalar(privateKey); // validate private key, convert to bigint - const seedArgs = [int2octets(d), int2octets(h1int)]; - // extraEntropy. RFC6979 3.6: additional k' (optional). - if (ent != null) { - // K = HMAC_K(V || 0x00 || int2octets(x) || bits2octets(h1) || k') - const e = ent === true ? randomBytes(Fp.BYTES) : ent; // generate random bytes OR pass as-is - seedArgs.push((0, utils_js_1.ensureBytes)('extraEntropy', e, Fp.BYTES)); // check for being of size BYTES - } - const seed = ut.concatBytes(...seedArgs); // Step D of RFC6979 3.2 - const m = h1int; // NOTE: no need to call bits2int second time here, it is inside truncateHash! - // Converts signature params into point w r/s, checks result for validity. - function k2sig(kBytes) { - // RFC 6979 Section 3.2, step 3: k = bits2int(T) - const k = bits2int(kBytes); // Cannot use fields methods, since it is group element - if (!isWithinCurveOrder(k)) - return; // Important: all mod() calls here must be done over N - const ik = invN(k); // k^-1 mod n - const q = Point.BASE.multiply(k).toAffine(); // q = Gk - const r = modN(q.x); // r = q.x mod n - if (r === _0n) - return; - // Can use scalar blinding b^-1(bm + bdr) where b ∈ [1,q−1] according to - // https://tches.iacr.org/index.php/TCHES/article/view/7337/6509. We've decided against it: - // a) dependency on CSPRNG b) 15% slowdown c) doesn't really help since bigints are not CT - const s = modN(ik * modN(m + r * d)); // Not using blinding here - if (s === _0n) - return; - let recovery = (q.x === r ? 0 : 2) | Number(q.y & _1n); // recovery bit (2 or 3, when q.x > n) - let normS = s; - if (lowS && isBiggerThanHalfOrder(s)) { - normS = normalizeS(s); // if lowS was passed, ensure s is always - recovery ^= 1; // // in the bottom half of N - } - return new Signature(r, normS, recovery); // use normS, not s - } - return { seed, k2sig }; - } - const defaultSigOpts = { lowS: CURVE.lowS, prehash: false }; - const defaultVerOpts = { lowS: CURVE.lowS, prehash: false }; - /** - * Signs message hash with a private key. - * ``` - * sign(m, d, k) where - * (x, y) = G × k - * r = x mod n - * s = (m + dr)/k mod n - * ``` - * @param msgHash NOT message. msg needs to be hashed to `msgHash`, or use `prehash`. - * @param privKey private key - * @param opts lowS for non-malleable sigs. extraEntropy for mixing randomness into k. prehash will hash first arg. - * @returns signature with recovery param - */ - function sign(msgHash, privKey, opts = defaultSigOpts) { - const { seed, k2sig } = prepSig(msgHash, privKey, opts); // Steps A, D of RFC6979 3.2. - const C = CURVE; - const drbg = ut.createHmacDrbg(C.hash.outputLen, C.nByteLength, C.hmac); - return drbg(seed, k2sig); // Steps B, C, D, E, F, G - } - // Enable precomputes. Slows down first publicKey computation by 20ms. - Point.BASE._setWindowSize(8); - // utils.precompute(8, ProjectivePoint.BASE) - /** - * Verifies a signature against message hash and public key. - * Rejects lowS signatures by default: to override, - * specify option `{lowS: false}`. Implements section 4.1.4 from https://www.secg.org/sec1-v2.pdf: - * - * ``` - * verify(r, s, h, P) where - * U1 = hs^-1 mod n - * U2 = rs^-1 mod n - * R = U1⋅G - U2⋅P - * mod(R.x, n) == r - * ``` - */ - function verify(signature, msgHash, publicKey, opts = defaultVerOpts) { - const sg = signature; - msgHash = (0, utils_js_1.ensureBytes)('msgHash', msgHash); - publicKey = (0, utils_js_1.ensureBytes)('publicKey', publicKey); - if ('strict' in opts) - throw new Error('options.strict was renamed to lowS'); - const { lowS, prehash } = opts; - let _sig = undefined; - let P; - try { - if (typeof sg === 'string' || sg instanceof Uint8Array) { - // Signature can be represented in 2 ways: compact (2*nByteLength) & DER (variable-length). - // Since DER can also be 2*nByteLength bytes, we check for it first. - try { - _sig = Signature.fromDER(sg); - } - catch (derError) { - if (!(derError instanceof exports.DER.Err)) - throw derError; - _sig = Signature.fromCompact(sg); - } - } - else if (typeof sg === 'object' && typeof sg.r === 'bigint' && typeof sg.s === 'bigint') { - const { r, s } = sg; - _sig = new Signature(r, s); - } - else { - throw new Error('PARSE'); - } - P = Point.fromHex(publicKey); - } - catch (error) { - if (error.message === 'PARSE') - throw new Error(`signature must be Signature instance, Uint8Array or hex string`); - return false; - } - if (lowS && _sig.hasHighS()) - return false; - if (prehash) - msgHash = CURVE.hash(msgHash); - const { r, s } = _sig; - const h = bits2int_modN(msgHash); // Cannot use fields methods, since it is group element - const is = invN(s); // s^-1 - const u1 = modN(h * is); // u1 = hs^-1 mod n - const u2 = modN(r * is); // u2 = rs^-1 mod n - const R = Point.BASE.multiplyAndAddUnsafe(P, u1, u2)?.toAffine(); // R = u1⋅G + u2⋅P - if (!R) - return false; - const v = modN(R.x); - return v === r; - } - return { - CURVE, - getPublicKey, - getSharedSecret, - sign, - verify, - ProjectivePoint: Point, - Signature, - utils, - }; -} -exports.weierstrass = weierstrass; -/** - * Implementation of the Shallue and van de Woestijne method for any weierstrass curve. - * TODO: check if there is a way to merge this with uvRatio in Edwards; move to modular. - * b = True and y = sqrt(u / v) if (u / v) is square in F, and - * b = False and y = sqrt(Z * (u / v)) otherwise. - * @param Fp - * @param Z - * @returns - */ -function SWUFpSqrtRatio(Fp, Z) { - // Generic implementation - const q = Fp.ORDER; - let l = _0n; - for (let o = q - _1n; o % _2n === _0n; o /= _2n) - l += _1n; - const c1 = l; // 1. c1, the largest integer such that 2^c1 divides q - 1. - // We need 2n ** c1 and 2n ** (c1-1). We can't use **; but we can use <<. - // 2n ** c1 == 2n << (c1-1) - const _2n_pow_c1_1 = _2n << (c1 - _1n - _1n); - const _2n_pow_c1 = _2n_pow_c1_1 * _2n; - const c2 = (q - _1n) / _2n_pow_c1; // 2. c2 = (q - 1) / (2^c1) # Integer arithmetic - const c3 = (c2 - _1n) / _2n; // 3. c3 = (c2 - 1) / 2 # Integer arithmetic - const c4 = _2n_pow_c1 - _1n; // 4. c4 = 2^c1 - 1 # Integer arithmetic - const c5 = _2n_pow_c1_1; // 5. c5 = 2^(c1 - 1) # Integer arithmetic - const c6 = Fp.pow(Z, c2); // 6. c6 = Z^c2 - const c7 = Fp.pow(Z, (c2 + _1n) / _2n); // 7. c7 = Z^((c2 + 1) / 2) - let sqrtRatio = (u, v) => { - let tv1 = c6; // 1. tv1 = c6 - let tv2 = Fp.pow(v, c4); // 2. tv2 = v^c4 - let tv3 = Fp.sqr(tv2); // 3. tv3 = tv2^2 - tv3 = Fp.mul(tv3, v); // 4. tv3 = tv3 * v - let tv5 = Fp.mul(u, tv3); // 5. tv5 = u * tv3 - tv5 = Fp.pow(tv5, c3); // 6. tv5 = tv5^c3 - tv5 = Fp.mul(tv5, tv2); // 7. tv5 = tv5 * tv2 - tv2 = Fp.mul(tv5, v); // 8. tv2 = tv5 * v - tv3 = Fp.mul(tv5, u); // 9. tv3 = tv5 * u - let tv4 = Fp.mul(tv3, tv2); // 10. tv4 = tv3 * tv2 - tv5 = Fp.pow(tv4, c5); // 11. tv5 = tv4^c5 - let isQR = Fp.eql(tv5, Fp.ONE); // 12. isQR = tv5 == 1 - tv2 = Fp.mul(tv3, c7); // 13. tv2 = tv3 * c7 - tv5 = Fp.mul(tv4, tv1); // 14. tv5 = tv4 * tv1 - tv3 = Fp.cmov(tv2, tv3, isQR); // 15. tv3 = CMOV(tv2, tv3, isQR) - tv4 = Fp.cmov(tv5, tv4, isQR); // 16. tv4 = CMOV(tv5, tv4, isQR) - // 17. for i in (c1, c1 - 1, ..., 2): - for (let i = c1; i > _1n; i--) { - let tv5 = i - _2n; // 18. tv5 = i - 2 - tv5 = _2n << (tv5 - _1n); // 19. tv5 = 2^tv5 - let tvv5 = Fp.pow(tv4, tv5); // 20. tv5 = tv4^tv5 - const e1 = Fp.eql(tvv5, Fp.ONE); // 21. e1 = tv5 == 1 - tv2 = Fp.mul(tv3, tv1); // 22. tv2 = tv3 * tv1 - tv1 = Fp.mul(tv1, tv1); // 23. tv1 = tv1 * tv1 - tvv5 = Fp.mul(tv4, tv1); // 24. tv5 = tv4 * tv1 - tv3 = Fp.cmov(tv2, tv3, e1); // 25. tv3 = CMOV(tv2, tv3, e1) - tv4 = Fp.cmov(tvv5, tv4, e1); // 26. tv4 = CMOV(tv5, tv4, e1) - } - return { isValid: isQR, value: tv3 }; - }; - if (Fp.ORDER % _4n === _3n) { - // sqrt_ratio_3mod4(u, v) - const c1 = (Fp.ORDER - _3n) / _4n; // 1. c1 = (q - 3) / 4 # Integer arithmetic - const c2 = Fp.sqrt(Fp.neg(Z)); // 2. c2 = sqrt(-Z) - sqrtRatio = (u, v) => { - let tv1 = Fp.sqr(v); // 1. tv1 = v^2 - const tv2 = Fp.mul(u, v); // 2. tv2 = u * v - tv1 = Fp.mul(tv1, tv2); // 3. tv1 = tv1 * tv2 - let y1 = Fp.pow(tv1, c1); // 4. y1 = tv1^c1 - y1 = Fp.mul(y1, tv2); // 5. y1 = y1 * tv2 - const y2 = Fp.mul(y1, c2); // 6. y2 = y1 * c2 - const tv3 = Fp.mul(Fp.sqr(y1), v); // 7. tv3 = y1^2; 8. tv3 = tv3 * v - const isQR = Fp.eql(tv3, u); // 9. isQR = tv3 == u - let y = Fp.cmov(y2, y1, isQR); // 10. y = CMOV(y2, y1, isQR) - return { isValid: isQR, value: y }; // 11. return (isQR, y) isQR ? y : y*c2 - }; - } - // No curves uses that - // if (Fp.ORDER % _8n === _5n) // sqrt_ratio_5mod8 - return sqrtRatio; -} -exports.SWUFpSqrtRatio = SWUFpSqrtRatio; -/** - * From draft-irtf-cfrg-hash-to-curve-16 - */ -function mapToCurveSimpleSWU(Fp, opts) { - mod.validateField(Fp); - if (!Fp.isValid(opts.A) || !Fp.isValid(opts.B) || !Fp.isValid(opts.Z)) - throw new Error('mapToCurveSimpleSWU: invalid opts'); - const sqrtRatio = SWUFpSqrtRatio(Fp, opts.Z); - if (!Fp.isOdd) - throw new Error('Fp.isOdd is not implemented!'); - // Input: u, an element of F. - // Output: (x, y), a point on E. - return (u) => { - // prettier-ignore - let tv1, tv2, tv3, tv4, tv5, tv6, x, y; - tv1 = Fp.sqr(u); // 1. tv1 = u^2 - tv1 = Fp.mul(tv1, opts.Z); // 2. tv1 = Z * tv1 - tv2 = Fp.sqr(tv1); // 3. tv2 = tv1^2 - tv2 = Fp.add(tv2, tv1); // 4. tv2 = tv2 + tv1 - tv3 = Fp.add(tv2, Fp.ONE); // 5. tv3 = tv2 + 1 - tv3 = Fp.mul(tv3, opts.B); // 6. tv3 = B * tv3 - tv4 = Fp.cmov(opts.Z, Fp.neg(tv2), !Fp.eql(tv2, Fp.ZERO)); // 7. tv4 = CMOV(Z, -tv2, tv2 != 0) - tv4 = Fp.mul(tv4, opts.A); // 8. tv4 = A * tv4 - tv2 = Fp.sqr(tv3); // 9. tv2 = tv3^2 - tv6 = Fp.sqr(tv4); // 10. tv6 = tv4^2 - tv5 = Fp.mul(tv6, opts.A); // 11. tv5 = A * tv6 - tv2 = Fp.add(tv2, tv5); // 12. tv2 = tv2 + tv5 - tv2 = Fp.mul(tv2, tv3); // 13. tv2 = tv2 * tv3 - tv6 = Fp.mul(tv6, tv4); // 14. tv6 = tv6 * tv4 - tv5 = Fp.mul(tv6, opts.B); // 15. tv5 = B * tv6 - tv2 = Fp.add(tv2, tv5); // 16. tv2 = tv2 + tv5 - x = Fp.mul(tv1, tv3); // 17. x = tv1 * tv3 - const { isValid, value } = sqrtRatio(tv2, tv6); // 18. (is_gx1_square, y1) = sqrt_ratio(tv2, tv6) - y = Fp.mul(tv1, u); // 19. y = tv1 * u -> Z * u^3 * y1 - y = Fp.mul(y, value); // 20. y = y * y1 - x = Fp.cmov(x, tv3, isValid); // 21. x = CMOV(x, tv3, is_gx1_square) - y = Fp.cmov(y, value, isValid); // 22. y = CMOV(y, y1, is_gx1_square) - const e1 = Fp.isOdd(u) === Fp.isOdd(y); // 23. e1 = sgn0(u) == sgn0(y) - y = Fp.cmov(Fp.neg(y), y, e1); // 24. y = CMOV(-y, y, e1) - x = Fp.div(x, tv4); // 25. x = x / tv4 - return { x, y }; - }; -} -exports.mapToCurveSimpleSWU = mapToCurveSimpleSWU; -//# sourceMappingURL=weierstrass.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/abstract/weierstrass.js.map b/node_modules/@noble/curves/abstract/weierstrass.js.map deleted file mode 100644 index 56663a3e..00000000 --- a/node_modules/@noble/curves/abstract/weierstrass.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"weierstrass.js","sourceRoot":"","sources":["../src/abstract/weierstrass.ts"],"names":[],"mappings":";;;AAAA,sEAAsE;AACtE,4DAA4D;AAC5D,oCAAoC;AACpC,iCAAiC;AACjC,yCAA8D;AAC9D,yCAAmG;AAqFnG,SAAS,iBAAiB,CAAI,KAAyB;IACrD,MAAM,IAAI,GAAG,IAAA,wBAAa,EAAC,KAAK,CAAC,CAAC;IAClC,EAAE,CAAC,cAAc,CACf,IAAI,EACJ;QACE,CAAC,EAAE,OAAO;QACV,CAAC,EAAE,OAAO;KACX,EACD;QACE,wBAAwB,EAAE,OAAO;QACjC,cAAc,EAAE,SAAS;QACzB,aAAa,EAAE,UAAU;QACzB,aAAa,EAAE,UAAU;QACzB,kBAAkB,EAAE,SAAS;QAC7B,SAAS,EAAE,UAAU;QACrB,OAAO,EAAE,UAAU;KACpB,CACF,CAAC;IACF,MAAM,EAAE,IAAI,EAAE,EAAE,EAAE,CAAC,EAAE,GAAG,IAAI,CAAC;IAC7B,IAAI,IAAI,EAAE;QACR,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,EAAE;YACvB,MAAM,IAAI,KAAK,CAAC,mEAAmE,CAAC,CAAC;SACtF;QACD,IACE,OAAO,IAAI,KAAK,QAAQ;YACxB,OAAO,IAAI,CAAC,IAAI,KAAK,QAAQ;YAC7B,OAAO,IAAI,CAAC,WAAW,KAAK,UAAU,EACtC;YACA,MAAM,IAAI,KAAK,CAAC,mEAAmE,CAAC,CAAC;SACtF;KACF;IACD,OAAO,MAAM,CAAC,MAAM,CAAC,EAAE,GAAG,IAAI,EAAW,CAAC,CAAC;AAC7C,CAAC;AASD,+BAA+B;AAC/B,MAAM,EAAE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AO,CAAC,CAAC,CAAC,uCAAuC;QACvE,MAAM,EAAE,GAAG,EAAE,CAAC,KAAM,CAAC,CAAC,CAAC,KAAK,EAAE,CAAC,KAAM,CAAC,CAAC,CAAC,CAAC,CAAC,+BAA+B;QACzE,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,4BAA4B;QAC3D,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,oBAAoB;QACxC,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC;IAClB,CAAC,CAAC;AACJ,CAAC;AA7CD,kDA6CC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/bls12-381.d.ts b/node_modules/@noble/curves/bls12-381.d.ts deleted file mode 100644 index 0e711140..00000000 --- a/node_modules/@noble/curves/bls12-381.d.ts +++ /dev/null @@ -1,68 +0,0 @@ -/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */ -import { CurveFn } from './abstract/bls.js'; -import * as mod from './abstract/modular.js'; -declare const Fp: Readonly & Required, "isOdd">>>; -type Fp = bigint; -type BigintTuple = [bigint, bigint]; -type Fp2 = { - c0: bigint; - c1: bigint; -}; -type Fp2Utils = { - fromBigTuple: (tuple: BigintTuple | bigint[]) => Fp2; - reim: (num: Fp2) => { - re: bigint; - im: bigint; - }; - mulByNonresidue: (num: Fp2) => Fp2; - multiplyByB: (num: Fp2) => Fp2; - frobeniusMap(num: Fp2, power: number): Fp2; -}; -declare const Fp2: mod.IField & Fp2Utils; -type BigintSix = [bigint, bigint, bigint, bigint, bigint, bigint]; -type Fp6 = { - c0: Fp2; - c1: Fp2; - c2: Fp2; -}; -type Fp6Utils = { - fromBigSix: (tuple: BigintSix) => Fp6; - mulByNonresidue: (num: Fp6) => Fp6; - frobeniusMap(num: Fp6, power: number): Fp6; - multiplyBy1(num: Fp6, b1: Fp2): Fp6; - multiplyBy01(num: Fp6, b0: Fp2, b1: Fp2): Fp6; - multiplyByFp2(lhs: Fp6, rhs: Fp2): Fp6; -}; -declare const Fp6: mod.IField & Fp6Utils; -type Fp12 = { - c0: Fp6; - c1: Fp6; -}; -type BigintTwelve = [ - bigint, - bigint, - bigint, - bigint, - bigint, - bigint, - bigint, - bigint, - bigint, - bigint, - bigint, - bigint -]; -type Fp12Utils = { - fromBigTwelve: (t: BigintTwelve) => Fp12; - frobeniusMap(num: Fp12, power: number): Fp12; - multiplyBy014(num: Fp12, o0: Fp2, o1: Fp2, o4: Fp2): Fp12; - multiplyByFp2(lhs: Fp12, rhs: Fp2): Fp12; - conjugate(num: Fp12): Fp12; - finalExponentiate(num: Fp12): Fp12; - _cyclotomicSquare(num: Fp12): Fp12; - _cyclotomicExp(num: Fp12, n: bigint): Fp12; -}; -declare const Fp12: mod.IField & Fp12Utils; -export declare const bls12_381: CurveFn; -export {}; -//# sourceMappingURL=bls12-381.d.ts.map \ No newline at end of file diff --git a/node_modules/@noble/curves/bls12-381.d.ts.map b/node_modules/@noble/curves/bls12-381.d.ts.map deleted file mode 100644 index b724df15..00000000 --- a/node_modules/@noble/curves/bls12-381.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"bls12-381.d.ts","sourceRoot":"","sources":["src/bls12-381.ts"],"names":[],"mappings":"AAAA,sEAAsE;AA+BtE,OAAO,EAAO,OAAO,EAAE,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,GAAG,MAAM,uBAAuB,CAAC;AAiC7C,QAAA,MAAM,EAAE,4EAAoB,CAAC;AAC7B,KAAK,EAAE,GAAG,MAAM,CAAC;AAMjB,KAAK,WAAW,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAAC;AACpC,KAAK,GAAG,GAAG;IAAE,EAAE,EAAE,MAAM,CAAC;IAAC,EAAE,EAAE,MAAM,CAAA;CAAE,CAAC;AA0BtC,KAAK,QAAQ,GAAG;IAC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/@noble/curves/bls12-381.js deleted file mode 100644 index c825e0e9..00000000 --- a/node_modules/@noble/curves/bls12-381.js +++ /dev/null @@ -1,1176 +0,0 @@ -"use strict"; -/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.bls12_381 = void 0; -// bls12-381 pairing-friendly Barreto-Lynn-Scott elliptic curve construction allows to: -// - Construct zk-SNARKs at the 128-bit security -// - Use threshold signatures, which allows a user to sign lots of messages with one signature and -// verify them swiftly in a batch, using Boneh-Lynn-Shacham signature scheme. -// -// The library uses G1 for public keys and G2 for signatures. Support for G1 signatures is planned. -// Compatible with Algorand, Chia, Dfinity, Ethereum, FIL, Zcash. Matches specs -// [pairing-curves-11](https://tools.ietf.org/html/draft-irtf-cfrg-pairing-friendly-curves-11), -// [bls-sigs-04](https://tools.ietf.org/html/draft-irtf-cfrg-bls-signature-04), -// [hash-to-curve-12](https://tools.ietf.org/html/draft-irtf-cfrg-hash-to-curve-12). -// -// ### Summary -// 1. BLS Relies on Bilinear Pairing (expensive) -// 2. Private Keys: 32 bytes -// 3. Public Keys: 48 bytes: 381 bit affine x coordinate, encoded into 48 big-endian bytes. -// 4. Signatures: 96 bytes: two 381 bit integers (affine x coordinate), encoded into two 48 big-endian byte arrays. -// - The signature is a point on the G2 subgroup, which is defined over a finite field -// with elements twice as big as the G1 curve (G2 is over Fp2 rather than Fp. Fp2 is analogous to the complex numbers). -// 5. The 12 stands for the Embedding degree. -// -// ### Formulas -// - `P = pk x G` - public keys -// - `S = pk x H(m)` - signing -// - `e(P, H(m)) == e(G, S)` - verification using pairings -// - `e(G, S) = e(G, SUM(n)(Si)) = MUL(n)(e(G, Si))` - signature aggregation -// Filecoin uses little endian byte arrays for private keys - -// so ensure to reverse byte order if you'll use it with FIL. -const sha256_1 = require("@noble/hashes/sha256"); -const utils_1 = require("@noble/hashes/utils"); -const bls_js_1 = require("./abstract/bls.js"); -const mod = require("./abstract/modular.js"); -const utils_js_1 = require("./abstract/utils.js"); -// Types -const weierstrass_js_1 = require("./abstract/weierstrass.js"); -const hash_to_curve_js_1 = require("./abstract/hash-to-curve.js"); -// Be friendly to bad ECMAScript parsers by not using bigint literals -// prettier-ignore -const _0n = BigInt(0), _1n = BigInt(1), _2n = BigInt(2), _3n = BigInt(3), _4n = BigInt(4); -// prettier-ignore -const _8n = BigInt(8), _16n = BigInt(16); -// CURVE FIELDS -// Finite field over p. -const Fp_raw = BigInt('0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffaaab'); -const Fp = mod.Field(Fp_raw); -// Finite field over r. -// This particular field is not used anywhere in bls12-381, but it is still useful. -const Fr = mod.Field(BigInt('0x73eda753299d7d483339d80809a1d80553bda402fffe5bfeffffffff00000001')); -const Fp2Add = ({ c0, c1 }, { c0: r0, c1: r1 }) => ({ - c0: Fp.add(c0, r0), - c1: Fp.add(c1, r1), -}); -const Fp2Subtract = ({ c0, c1 }, { c0: r0, c1: r1 }) => ({ - c0: Fp.sub(c0, r0), - c1: Fp.sub(c1, r1), -}); -const Fp2Multiply = ({ c0, c1 }, rhs) => { - if (typeof rhs === 'bigint') - return { c0: Fp.mul(c0, rhs), c1: Fp.mul(c1, rhs) }; - // (a+bi)(c+di) = (ac−bd) + (ad+bc)i - const { c0: r0, c1: r1 } = rhs; - let t1 = Fp.mul(c0, r0); // c0 * o0 - let t2 = Fp.mul(c1, r1); // c1 * o1 - // (T1 - T2) + ((c0 + c1) * (r0 + r1) - (T1 + T2))*i - const o0 = Fp.sub(t1, t2); - const o1 = Fp.sub(Fp.mul(Fp.add(c0, c1), Fp.add(r0, r1)), Fp.add(t1, t2)); - return { c0: o0, c1: o1 }; -}; -const Fp2Square = ({ c0, c1 }) => { - const a = Fp.add(c0, c1); - const b = Fp.sub(c0, c1); - const c = Fp.add(c0, c0); - return { c0: Fp.mul(a, b), c1: Fp.mul(c, c1) }; -}; -// G2 is the order-q subgroup of E2(Fp²) : y² = x³+4(1+√−1), -// where Fp2 is Fp[√−1]/(x2+1). #E2(Fp2 ) = h2q, where -// G² - 1 -// h2q -// NOTE: ORDER was wrong! -const FP2_ORDER = Fp_raw * Fp_raw; -const Fp2 = { - ORDER: FP2_ORDER, - BITS: (0, utils_js_1.bitLen)(FP2_ORDER), - BYTES: Math.ceil((0, utils_js_1.bitLen)(FP2_ORDER) / 8), - MASK: (0, utils_js_1.bitMask)((0, utils_js_1.bitLen)(FP2_ORDER)), - ZERO: { c0: Fp.ZERO, c1: Fp.ZERO }, - ONE: { c0: Fp.ONE, c1: Fp.ZERO }, - create: (num) => num, - isValid: ({ c0, c1 }) => typeof c0 === 'bigint' && typeof c1 === 'bigint', - is0: ({ c0, c1 }) => Fp.is0(c0) && Fp.is0(c1), - eql: ({ c0, c1 }, { c0: r0, c1: r1 }) => Fp.eql(c0, r0) && Fp.eql(c1, r1), - neg: ({ c0, c1 }) => ({ c0: Fp.neg(c0), c1: Fp.neg(c1) }), - pow: (num, power) => mod.FpPow(Fp2, num, power), - invertBatch: (nums) => mod.FpInvertBatch(Fp2, nums), - // Normalized - add: Fp2Add, - sub: Fp2Subtract, - mul: Fp2Multiply, - sqr: Fp2Square, - // NonNormalized stuff - addN: Fp2Add, - subN: Fp2Subtract, - mulN: Fp2Multiply, - sqrN: Fp2Square, - // Why inversion for bigint inside Fp instead of Fp2? it is even used in that context? - div: (lhs, rhs) => Fp2.mul(lhs, typeof rhs === 'bigint' ? Fp.inv(Fp.create(rhs)) : Fp2.inv(rhs)), - inv: ({ c0: a, c1: b }) => { - // We wish to find the multiplicative inverse of a nonzero - // element a + bu in Fp2. We leverage an identity - // - // (a + bu)(a - bu) = a² + b² - // - // which holds because u² = -1. This can be rewritten as - // - // (a + bu)(a - bu)/(a² + b²) = 1 - // - // because a² + b² = 0 has no nonzero solutions for (a, b). - // This gives that (a - bu)/(a² + b²) is the inverse - // of (a + bu). Importantly, this can be computing using - // only a single inversion in Fp. - const factor = Fp.inv(Fp.create(a * a + b * b)); - return { c0: Fp.mul(factor, Fp.create(a)), c1: Fp.mul(factor, Fp.create(-b)) }; - }, - sqrt: (num) => { - if (Fp2.eql(num, Fp2.ZERO)) - return Fp2.ZERO; // Algo doesn't handles this case - // TODO: Optimize this line. It's extremely slow. - // Speeding this up would boost aggregateSignatures. - // https://eprint.iacr.org/2012/685.pdf applicable? - // https://github.com/zkcrypto/bls12_381/blob/080eaa74ec0e394377caa1ba302c8c121df08b07/src/fp2.rs#L250 - // https://github.com/supranational/blst/blob/aae0c7d70b799ac269ff5edf29d8191dbd357876/src/exp2.c#L1 - // Inspired by https://github.com/dalek-cryptography/curve25519-dalek/blob/17698df9d4c834204f83a3574143abacb4fc81a5/src/field.rs#L99 - const candidateSqrt = Fp2.pow(num, (Fp2.ORDER + _8n) / _16n); - const check = Fp2.div(Fp2.sqr(candidateSqrt), num); // candidateSqrt.square().div(this); - const R = FP2_ROOTS_OF_UNITY; - const divisor = [R[0], R[2], R[4], R[6]].find((r) => Fp2.eql(r, check)); - if (!divisor) - throw new Error('No root'); - const index = R.indexOf(divisor); - const root = R[index / 2]; - if (!root) - throw new Error('Invalid root'); - const x1 = Fp2.div(candidateSqrt, root); - const x2 = Fp2.neg(x1); - const { re: re1, im: im1 } = Fp2.reim(x1); - const { re: re2, im: im2 } = Fp2.reim(x2); - if (im1 > im2 || (im1 === im2 && re1 > re2)) - return x1; - return x2; - }, - // Same as sgn0_fp2 in draft-irtf-cfrg-hash-to-curve-16 - isOdd: (x) => { - const { re: x0, im: x1 } = Fp2.reim(x); - const sign_0 = x0 % _2n; - const zero_0 = x0 === _0n; - const sign_1 = x1 % _2n; - return BigInt(sign_0 || (zero_0 && sign_1)) == _1n; - }, - // Bytes util - fromBytes(b) { - if (b.length !== Fp2.BYTES) - throw new Error(`fromBytes wrong length=${b.length}`); - return { c0: Fp.fromBytes(b.subarray(0, Fp.BYTES)), c1: Fp.fromBytes(b.subarray(Fp.BYTES)) }; - }, - toBytes: ({ c0, c1 }) => (0, utils_js_1.concatBytes)(Fp.toBytes(c0), Fp.toBytes(c1)), - cmov: ({ c0, c1 }, { c0: r0, c1: r1 }, c) => ({ - c0: Fp.cmov(c0, r0, c), - c1: Fp.cmov(c1, r1, c), - }), - // Specific utils - // toString() { - // return `Fp2(${this.c0} + ${this.c1}×i)`; - // } - reim: ({ c0, c1 }) => ({ re: c0, im: c1 }), - // multiply by u + 1 - mulByNonresidue: ({ c0, c1 }) => ({ c0: Fp.sub(c0, c1), c1: Fp.add(c0, c1) }), - multiplyByB: ({ c0, c1 }) => { - let t0 = Fp.mul(c0, _4n); // 4 * c0 - let t1 = Fp.mul(c1, _4n); // 4 * c1 - // (T0-T1) + (T0+T1)*i - return { c0: Fp.sub(t0, t1), c1: Fp.add(t0, t1) }; - }, - fromBigTuple: (tuple) => { - if (tuple.length !== 2) - throw new Error('Invalid tuple'); - const fps = tuple.map((n) => Fp.create(n)); - return { c0: fps[0], c1: fps[1] }; - }, - frobeniusMap: ({ c0, c1 }, power) => ({ - c0, - c1: Fp.mul(c1, FP2_FROBENIUS_COEFFICIENTS[power % 2]), - }), -}; -// Finite extension field over irreducible polynominal. -// Fp(u) / (u² - β) where β = -1 -const FP2_FROBENIUS_COEFFICIENTS = [ - BigInt('0x1'), - BigInt('0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffaaaa'), -].map((item) => Fp.create(item)); -// For Fp2 roots of unity. -const rv1 = BigInt('0x6af0e0437ff400b6831e36d6bd17ffe48395dabc2d3435e77f76e17009241c5ee67992f72ec05f4c81084fbede3cc09'); -// const ev1 = -// BigInt('0x699be3b8c6870965e5bf892ad5d2cc7b0e85a117402dfd83b7f4a947e02d978498255a2aaec0ac627b5afbdf1bf1c90'); -// const ev2 = -// BigInt('0x8157cd83046453f5dd0972b6e3949e4288020b5b8a9cc99ca07e27089a2ce2436d965026adad3ef7baba37f2183e9b5'); -// const ev3 = -// BigInt('0xab1c2ffdd6c253ca155231eb3e71ba044fd562f6f72bc5bad5ec46a0b7a3b0247cf08ce6c6317f40edbc653a72dee17'); -// const ev4 = -// BigInt('0xaa404866706722864480885d68ad0ccac1967c7544b447873cc37e0181271e006df72162a3d3e0287bf597fbf7f8fc1'); -// Eighth roots of unity, used for computing square roots in Fp2. -// To verify or re-calculate: -// Array(8).fill(new Fp2([1n, 1n])).map((fp2, k) => fp2.pow(Fp2.ORDER * BigInt(k) / 8n)) -const FP2_ROOTS_OF_UNITY = [ - [_1n, _0n], - [rv1, -rv1], - [_0n, _1n], - [rv1, rv1], - [-_1n, _0n], - [-rv1, rv1], - [_0n, -_1n], - [-rv1, -rv1], -].map((pair) => Fp2.fromBigTuple(pair)); -const Fp6Add = ({ c0, c1, c2 }, { c0: r0, c1: r1, c2: r2 }) => ({ - c0: Fp2.add(c0, r0), - c1: Fp2.add(c1, r1), - c2: Fp2.add(c2, r2), -}); -const Fp6Subtract = ({ c0, c1, c2 }, { c0: r0, c1: r1, c2: r2 }) => ({ - c0: Fp2.sub(c0, r0), - c1: Fp2.sub(c1, r1), - c2: Fp2.sub(c2, r2), -}); -const Fp6Multiply = ({ c0, c1, c2 }, rhs) => { - if (typeof rhs === 'bigint') { - return { - c0: Fp2.mul(c0, rhs), - c1: Fp2.mul(c1, rhs), - c2: Fp2.mul(c2, rhs), - }; - } - const { c0: r0, c1: r1, c2: r2 } = rhs; - const t0 = Fp2.mul(c0, r0); // c0 * o0 - const t1 = Fp2.mul(c1, r1); // c1 * o1 - const t2 = Fp2.mul(c2, r2); // c2 * o2 - return { - // t0 + (c1 + c2) * (r1 * r2) - (T1 + T2) * (u + 1) - c0: Fp2.add(t0, Fp2.mulByNonresidue(Fp2.sub(Fp2.mul(Fp2.add(c1, c2), Fp2.add(r1, r2)), Fp2.add(t1, t2)))), - // (c0 + c1) * (r0 + r1) - (T0 + T1) + T2 * (u + 1) - c1: Fp2.add(Fp2.sub(Fp2.mul(Fp2.add(c0, c1), Fp2.add(r0, r1)), Fp2.add(t0, t1)), Fp2.mulByNonresidue(t2)), - // T1 + (c0 + c2) * (r0 + r2) - T0 + T2 - c2: Fp2.sub(Fp2.add(t1, Fp2.mul(Fp2.add(c0, c2), Fp2.add(r0, r2))), Fp2.add(t0, t2)), - }; -}; -const Fp6Square = ({ c0, c1, c2 }) => { - let t0 = Fp2.sqr(c0); // c0² - let t1 = Fp2.mul(Fp2.mul(c0, c1), _2n); // 2 * c0 * c1 - let t3 = Fp2.mul(Fp2.mul(c1, c2), _2n); // 2 * c1 * c2 - let t4 = Fp2.sqr(c2); // c2² - return { - c0: Fp2.add(Fp2.mulByNonresidue(t3), t0), - c1: Fp2.add(Fp2.mulByNonresidue(t4), t1), - // T1 + (c0 - c1 + c2)² + T3 - T0 - T4 - c2: Fp2.sub(Fp2.sub(Fp2.add(Fp2.add(t1, Fp2.sqr(Fp2.add(Fp2.sub(c0, c1), c2))), t3), t0), t4), - }; -}; -const Fp6 = { - ORDER: Fp2.ORDER, - BITS: 3 * Fp2.BITS, - BYTES: 3 * Fp2.BYTES, - MASK: (0, utils_js_1.bitMask)(3 * Fp2.BITS), - ZERO: { c0: Fp2.ZERO, c1: Fp2.ZERO, c2: Fp2.ZERO }, - ONE: { c0: Fp2.ONE, c1: Fp2.ZERO, c2: Fp2.ZERO }, - create: (num) => num, - isValid: ({ c0, c1, c2 }) => Fp2.isValid(c0) && Fp2.isValid(c1) && Fp2.isValid(c2), - is0: ({ c0, c1, c2 }) => Fp2.is0(c0) && Fp2.is0(c1) && Fp2.is0(c2), - neg: ({ c0, c1, c2 }) => ({ c0: Fp2.neg(c0), c1: Fp2.neg(c1), c2: Fp2.neg(c2) }), - eql: ({ c0, c1, c2 }, { c0: r0, c1: r1, c2: r2 }) => Fp2.eql(c0, r0) && Fp2.eql(c1, r1) && Fp2.eql(c2, r2), - sqrt: () => { - throw new Error('Not implemented'); - }, - // Do we need division by bigint at all? Should be done via order: - div: (lhs, rhs) => Fp6.mul(lhs, typeof rhs === 'bigint' ? Fp.inv(Fp.create(rhs)) : Fp6.inv(rhs)), - pow: (num, power) => mod.FpPow(Fp6, num, power), - invertBatch: (nums) => mod.FpInvertBatch(Fp6, nums), - // Normalized - add: Fp6Add, - sub: Fp6Subtract, - mul: Fp6Multiply, - sqr: Fp6Square, - // NonNormalized stuff - addN: Fp6Add, - subN: Fp6Subtract, - mulN: Fp6Multiply, - sqrN: Fp6Square, - inv: ({ c0, c1, c2 }) => { - let t0 = Fp2.sub(Fp2.sqr(c0), Fp2.mulByNonresidue(Fp2.mul(c2, c1))); // c0² - c2 * c1 * (u + 1) - let t1 = Fp2.sub(Fp2.mulByNonresidue(Fp2.sqr(c2)), Fp2.mul(c0, c1)); // c2² * (u + 1) - c0 * c1 - let t2 = Fp2.sub(Fp2.sqr(c1), Fp2.mul(c0, c2)); // c1² - c0 * c2 - // 1/(((c2 * T1 + c1 * T2) * v) + c0 * T0) - let t4 = Fp2.inv(Fp2.add(Fp2.mulByNonresidue(Fp2.add(Fp2.mul(c2, t1), Fp2.mul(c1, t2))), Fp2.mul(c0, t0))); - return { c0: Fp2.mul(t4, t0), c1: Fp2.mul(t4, t1), c2: Fp2.mul(t4, t2) }; - }, - // Bytes utils - fromBytes: (b) => { - if (b.length !== Fp6.BYTES) - throw new Error(`fromBytes wrong length=${b.length}`); - return { - c0: Fp2.fromBytes(b.subarray(0, Fp2.BYTES)), - c1: Fp2.fromBytes(b.subarray(Fp2.BYTES, 2 * Fp2.BYTES)), - c2: Fp2.fromBytes(b.subarray(2 * Fp2.BYTES)), - }; - }, - toBytes: ({ c0, c1, c2 }) => (0, utils_js_1.concatBytes)(Fp2.toBytes(c0), Fp2.toBytes(c1), Fp2.toBytes(c2)), - cmov: ({ c0, c1, c2 }, { c0: r0, c1: r1, c2: r2 }, c) => ({ - c0: Fp2.cmov(c0, r0, c), - c1: Fp2.cmov(c1, r1, c), - c2: Fp2.cmov(c2, r2, c), - }), - // Utils - // fromTriple(triple: [Fp2, Fp2, Fp2]) { - // return new Fp6(...triple); - // } - // toString() { - // return `Fp6(${this.c0} + ${this.c1} * v, ${this.c2} * v^2)`; - // } - fromBigSix: (t) => { - if (!Array.isArray(t) || t.length !== 6) - throw new Error('Invalid Fp6 usage'); - return { - c0: Fp2.fromBigTuple(t.slice(0, 2)), - c1: Fp2.fromBigTuple(t.slice(2, 4)), - c2: Fp2.fromBigTuple(t.slice(4, 6)), - }; - }, - frobeniusMap: ({ c0, c1, c2 }, power) => ({ - c0: Fp2.frobeniusMap(c0, power), - c1: Fp2.mul(Fp2.frobeniusMap(c1, power), FP6_FROBENIUS_COEFFICIENTS_1[power % 6]), - c2: Fp2.mul(Fp2.frobeniusMap(c2, power), FP6_FROBENIUS_COEFFICIENTS_2[power % 6]), - }), - mulByNonresidue: ({ c0, c1, c2 }) => ({ c0: Fp2.mulByNonresidue(c2), c1: c0, c2: c1 }), - // Sparse multiplication - multiplyBy1: ({ c0, c1, c2 }, b1) => ({ - c0: Fp2.mulByNonresidue(Fp2.mul(c2, b1)), - c1: Fp2.mul(c0, b1), - c2: Fp2.mul(c1, b1), - }), - // Sparse multiplication - multiplyBy01({ c0, c1, c2 }, b0, b1) { - let t0 = Fp2.mul(c0, b0); // c0 * b0 - let t1 = Fp2.mul(c1, b1); // c1 * b1 - return { - // ((c1 + c2) * b1 - T1) * (u + 1) + T0 - c0: Fp2.add(Fp2.mulByNonresidue(Fp2.sub(Fp2.mul(Fp2.add(c1, c2), b1), t1)), t0), - // (b0 + b1) * (c0 + c1) - T0 - T1 - c1: Fp2.sub(Fp2.sub(Fp2.mul(Fp2.add(b0, b1), Fp2.add(c0, c1)), t0), t1), - // (c0 + c2) * b0 - T0 + T1 - c2: Fp2.add(Fp2.sub(Fp2.mul(Fp2.add(c0, c2), b0), t0), t1), - }; - }, - multiplyByFp2: ({ c0, c1, c2 }, rhs) => ({ - c0: Fp2.mul(c0, rhs), - c1: Fp2.mul(c1, rhs), - c2: Fp2.mul(c2, rhs), - }), -}; -const FP6_FROBENIUS_COEFFICIENTS_1 = [ - [BigInt('0x1'), BigInt('0x0')], - [ - BigInt('0x0'), - BigInt('0x1a0111ea397fe699ec02408663d4de85aa0d857d89759ad4897d29650fb85f9b409427eb4f49fffd8bfd00000000aaac'), - ], - [ - BigInt('0x00000000000000005f19672fdf76ce51ba69c6076a0f77eaddb3a93be6f89688de17d813620a00022e01fffffffefffe'), - BigInt('0x0'), - ], - [BigInt('0x0'), BigInt('0x1')], - [ - BigInt('0x1a0111ea397fe699ec02408663d4de85aa0d857d89759ad4897d29650fb85f9b409427eb4f49fffd8bfd00000000aaac'), - BigInt('0x0'), - ], - [ - BigInt('0x0'), - BigInt('0x00000000000000005f19672fdf76ce51ba69c6076a0f77eaddb3a93be6f89688de17d813620a00022e01fffffffefffe'), - ], -].map((pair) => Fp2.fromBigTuple(pair)); -const FP6_FROBENIUS_COEFFICIENTS_2 = [ - [BigInt('0x1'), BigInt('0x0')], - [ - BigInt('0x1a0111ea397fe699ec02408663d4de85aa0d857d89759ad4897d29650fb85f9b409427eb4f49fffd8bfd00000000aaad'), - BigInt('0x0'), - ], - [ - BigInt('0x1a0111ea397fe699ec02408663d4de85aa0d857d89759ad4897d29650fb85f9b409427eb4f49fffd8bfd00000000aaac'), - BigInt('0x0'), - ], - [ - BigInt('0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffaaaa'), - BigInt('0x0'), - ], - [ - BigInt('0x00000000000000005f19672fdf76ce51ba69c6076a0f77eaddb3a93be6f89688de17d813620a00022e01fffffffefffe'), - BigInt('0x0'), - ], - [ - BigInt('0x00000000000000005f19672fdf76ce51ba69c6076a0f77eaddb3a93be6f89688de17d813620a00022e01fffffffeffff'), - BigInt('0x0'), - ], -].map((pair) => Fp2.fromBigTuple(pair)); -// The BLS parameter x for BLS12-381 -const BLS_X = BigInt('0xd201000000010000'); -const BLS_X_LEN = (0, utils_js_1.bitLen)(BLS_X); -const Fp12Add = ({ c0, c1 }, { c0: r0, c1: r1 }) => ({ - c0: Fp6.add(c0, r0), - c1: Fp6.add(c1, r1), -}); -const Fp12Subtract = ({ c0, c1 }, { c0: r0, c1: r1 }) => ({ - c0: Fp6.sub(c0, r0), - c1: Fp6.sub(c1, r1), -}); -const Fp12Multiply = ({ c0, c1 }, rhs) => { - if (typeof rhs === 'bigint') - return { c0: Fp6.mul(c0, rhs), c1: Fp6.mul(c1, rhs) }; - let { c0: r0, c1: r1 } = rhs; - let t1 = Fp6.mul(c0, r0); // c0 * r0 - let t2 = Fp6.mul(c1, r1); // c1 * r1 - return { - c0: Fp6.add(t1, Fp6.mulByNonresidue(t2)), - // (c0 + c1) * (r0 + r1) - (T1 + T2) - c1: Fp6.sub(Fp6.mul(Fp6.add(c0, c1), Fp6.add(r0, r1)), Fp6.add(t1, t2)), - }; -}; -const Fp12Square = ({ c0, c1 }) => { - let ab = Fp6.mul(c0, c1); // c0 * c1 - return { - // (c1 * v + c0) * (c0 + c1) - AB - AB * v - c0: Fp6.sub(Fp6.sub(Fp6.mul(Fp6.add(Fp6.mulByNonresidue(c1), c0), Fp6.add(c0, c1)), ab), Fp6.mulByNonresidue(ab)), - c1: Fp6.add(ab, ab), - }; // AB + AB -}; -function Fp4Square(a, b) { - const a2 = Fp2.sqr(a); - const b2 = Fp2.sqr(b); - return { - first: Fp2.add(Fp2.mulByNonresidue(b2), a2), - second: Fp2.sub(Fp2.sub(Fp2.sqr(Fp2.add(a, b)), a2), b2), // (a + b)² - a² - b² - }; -} -const Fp12 = { - ORDER: Fp2.ORDER, - BITS: 2 * Fp2.BITS, - BYTES: 2 * Fp2.BYTES, - MASK: (0, utils_js_1.bitMask)(2 * Fp2.BITS), - ZERO: { c0: Fp6.ZERO, c1: Fp6.ZERO }, - ONE: { c0: Fp6.ONE, c1: Fp6.ZERO }, - create: (num) => num, - isValid: ({ c0, c1 }) => Fp6.isValid(c0) && Fp6.isValid(c1), - is0: ({ c0, c1 }) => Fp6.is0(c0) && Fp6.is0(c1), - neg: ({ c0, c1 }) => ({ c0: Fp6.neg(c0), c1: Fp6.neg(c1) }), - eql: ({ c0, c1 }, { c0: r0, c1: r1 }) => Fp6.eql(c0, r0) && Fp6.eql(c1, r1), - sqrt: () => { - throw new Error('Not implemented'); - }, - inv: ({ c0, c1 }) => { - let t = Fp6.inv(Fp6.sub(Fp6.sqr(c0), Fp6.mulByNonresidue(Fp6.sqr(c1)))); // 1 / (c0² - c1² * v) - return { c0: Fp6.mul(c0, t), c1: Fp6.neg(Fp6.mul(c1, t)) }; // ((C0 * T) * T) + (-C1 * T) * w - }, - div: (lhs, rhs) => Fp12.mul(lhs, typeof rhs === 'bigint' ? Fp.inv(Fp.create(rhs)) : Fp12.inv(rhs)), - pow: (num, power) => mod.FpPow(Fp12, num, power), - invertBatch: (nums) => mod.FpInvertBatch(Fp12, nums), - // Normalized - add: Fp12Add, - sub: Fp12Subtract, - mul: Fp12Multiply, - sqr: Fp12Square, - // NonNormalized stuff - addN: Fp12Add, - subN: Fp12Subtract, - mulN: Fp12Multiply, - sqrN: Fp12Square, - // Bytes utils - fromBytes: (b) => { - if (b.length !== Fp12.BYTES) - throw new Error(`fromBytes wrong length=${b.length}`); - return { - c0: Fp6.fromBytes(b.subarray(0, Fp6.BYTES)), - c1: Fp6.fromBytes(b.subarray(Fp6.BYTES)), - }; - }, - toBytes: ({ c0, c1 }) => (0, utils_js_1.concatBytes)(Fp6.toBytes(c0), Fp6.toBytes(c1)), - cmov: ({ c0, c1 }, { c0: r0, c1: r1 }, c) => ({ - c0: Fp6.cmov(c0, r0, c), - c1: Fp6.cmov(c1, r1, c), - }), - // Utils - // toString() { - // return `Fp12(${this.c0} + ${this.c1} * w)`; - // }, - // fromTuple(c: [Fp6, Fp6]) { - // return new Fp12(...c); - // } - fromBigTwelve: (t) => ({ - c0: Fp6.fromBigSix(t.slice(0, 6)), - c1: Fp6.fromBigSix(t.slice(6, 12)), - }), - // Raises to q**i -th power - frobeniusMap(lhs, power) { - const r0 = Fp6.frobeniusMap(lhs.c0, power); - const { c0, c1, c2 } = Fp6.frobeniusMap(lhs.c1, power); - const coeff = FP12_FROBENIUS_COEFFICIENTS[power % 12]; - return { - c0: r0, - c1: Fp6.create({ - c0: Fp2.mul(c0, coeff), - c1: Fp2.mul(c1, coeff), - c2: Fp2.mul(c2, coeff), - }), - }; - }, - // Sparse multiplication - multiplyBy014: ({ c0, c1 }, o0, o1, o4) => { - let t0 = Fp6.multiplyBy01(c0, o0, o1); - let t1 = Fp6.multiplyBy1(c1, o4); - return { - c0: Fp6.add(Fp6.mulByNonresidue(t1), t0), - // (c1 + c0) * [o0, o1+o4] - T0 - T1 - c1: Fp6.sub(Fp6.sub(Fp6.multiplyBy01(Fp6.add(c1, c0), o0, Fp2.add(o1, o4)), t0), t1), - }; - }, - multiplyByFp2: ({ c0, c1 }, rhs) => ({ - c0: Fp6.multiplyByFp2(c0, rhs), - c1: Fp6.multiplyByFp2(c1, rhs), - }), - conjugate: ({ c0, c1 }) => ({ c0, c1: Fp6.neg(c1) }), - // A cyclotomic group is a subgroup of Fp^n defined by - // GΦₙ(p) = {α ∈ Fpⁿ : α^Φₙ(p) = 1} - // The result of any pairing is in a cyclotomic subgroup - // https://eprint.iacr.org/2009/565.pdf - _cyclotomicSquare: ({ c0, c1 }) => { - const { c0: c0c0, c1: c0c1, c2: c0c2 } = c0; - const { c0: c1c0, c1: c1c1, c2: c1c2 } = c1; - const { first: t3, second: t4 } = Fp4Square(c0c0, c1c1); - const { first: t5, second: t6 } = Fp4Square(c1c0, c0c2); - const { first: t7, second: t8 } = Fp4Square(c0c1, c1c2); - let t9 = Fp2.mulByNonresidue(t8); // T8 * (u + 1) - return { - c0: Fp6.create({ - c0: Fp2.add(Fp2.mul(Fp2.sub(t3, c0c0), _2n), t3), - c1: Fp2.add(Fp2.mul(Fp2.sub(t5, c0c1), _2n), t5), - c2: Fp2.add(Fp2.mul(Fp2.sub(t7, c0c2), _2n), t7), - }), - c1: Fp6.create({ - c0: Fp2.add(Fp2.mul(Fp2.add(t9, c1c0), _2n), t9), - c1: Fp2.add(Fp2.mul(Fp2.add(t4, c1c1), _2n), t4), - c2: Fp2.add(Fp2.mul(Fp2.add(t6, c1c2), _2n), t6), - }), - }; // 2 * (T6 + c1c2) + T6 - }, - _cyclotomicExp(num, n) { - let z = Fp12.ONE; - for (let i = BLS_X_LEN - 1; i >= 0; i--) { - z = Fp12._cyclotomicSquare(z); - if ((0, utils_js_1.bitGet)(n, i)) - z = Fp12.mul(z, num); - } - return z; - }, - // https://eprint.iacr.org/2010/354.pdf - // https://eprint.iacr.org/2009/565.pdf - finalExponentiate: (num) => { - const x = BLS_X; - // this^(q⁶) / this - const t0 = Fp12.div(Fp12.frobeniusMap(num, 6), num); - // t0^(q²) * t0 - const t1 = Fp12.mul(Fp12.frobeniusMap(t0, 2), t0); - const t2 = Fp12.conjugate(Fp12._cyclotomicExp(t1, x)); - const t3 = Fp12.mul(Fp12.conjugate(Fp12._cyclotomicSquare(t1)), t2); - const t4 = Fp12.conjugate(Fp12._cyclotomicExp(t3, x)); - const t5 = Fp12.conjugate(Fp12._cyclotomicExp(t4, x)); - const t6 = Fp12.mul(Fp12.conjugate(Fp12._cyclotomicExp(t5, x)), Fp12._cyclotomicSquare(t2)); - const t7 = Fp12.conjugate(Fp12._cyclotomicExp(t6, x)); - const t2_t5_pow_q2 = Fp12.frobeniusMap(Fp12.mul(t2, t5), 2); - const t4_t1_pow_q3 = Fp12.frobeniusMap(Fp12.mul(t4, t1), 3); - const t6_t1c_pow_q1 = Fp12.frobeniusMap(Fp12.mul(t6, Fp12.conjugate(t1)), 1); - const t7_t3c_t1 = Fp12.mul(Fp12.mul(t7, Fp12.conjugate(t3)), t1); - // (t2 * t5)^(q²) * (t4 * t1)^(q³) * (t6 * t1.conj)^(q^1) * t7 * t3.conj * t1 - return Fp12.mul(Fp12.mul(Fp12.mul(t2_t5_pow_q2, t4_t1_pow_q3), t6_t1c_pow_q1), t7_t3c_t1); - }, -}; -const FP12_FROBENIUS_COEFFICIENTS = [ - [BigInt('0x1'), BigInt('0x0')], - [ - BigInt('0x1904d3bf02bb0667c231beb4202c0d1f0fd603fd3cbd5f4f7b2443d784bab9c4f67ea53d63e7813d8d0775ed92235fb8'), - BigInt('0x00fc3e2b36c4e03288e9e902231f9fb854a14787b6c7b36fec0c8ec971f63c5f282d5ac14d6c7ec22cf78a126ddc4af3'), - ], - [ - BigInt('0x00000000000000005f19672fdf76ce51ba69c6076a0f77eaddb3a93be6f89688de17d813620a00022e01fffffffeffff'), - BigInt('0x0'), - ], - [ - BigInt('0x135203e60180a68ee2e9c448d77a2cd91c3dedd930b1cf60ef396489f61eb45e304466cf3e67fa0af1ee7b04121bdea2'), - BigInt('0x06af0e0437ff400b6831e36d6bd17ffe48395dabc2d3435e77f76e17009241c5ee67992f72ec05f4c81084fbede3cc09'), - ], - [ - BigInt('0x00000000000000005f19672fdf76ce51ba69c6076a0f77eaddb3a93be6f89688de17d813620a00022e01fffffffefffe'), - BigInt('0x0'), - ], - [ - BigInt('0x144e4211384586c16bd3ad4afa99cc9170df3560e77982d0db45f3536814f0bd5871c1908bd478cd1ee605167ff82995'), - BigInt('0x05b2cfd9013a5fd8df47fa6b48b1e045f39816240c0b8fee8beadf4d8e9c0566c63a3e6e257f87329b18fae980078116'), - ], - [ - BigInt('0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffaaaa'), - BigInt('0x0'), - ], - [ - BigInt('0x00fc3e2b36c4e03288e9e902231f9fb854a14787b6c7b36fec0c8ec971f63c5f282d5ac14d6c7ec22cf78a126ddc4af3'), - BigInt('0x1904d3bf02bb0667c231beb4202c0d1f0fd603fd3cbd5f4f7b2443d784bab9c4f67ea53d63e7813d8d0775ed92235fb8'), - ], - [ - BigInt('0x1a0111ea397fe699ec02408663d4de85aa0d857d89759ad4897d29650fb85f9b409427eb4f49fffd8bfd00000000aaac'), - BigInt('0x0'), - ], - [ - BigInt('0x06af0e0437ff400b6831e36d6bd17ffe48395dabc2d3435e77f76e17009241c5ee67992f72ec05f4c81084fbede3cc09'), - BigInt('0x135203e60180a68ee2e9c448d77a2cd91c3dedd930b1cf60ef396489f61eb45e304466cf3e67fa0af1ee7b04121bdea2'), - ], - [ - BigInt('0x1a0111ea397fe699ec02408663d4de85aa0d857d89759ad4897d29650fb85f9b409427eb4f49fffd8bfd00000000aaad'), - BigInt('0x0'), - ], - [ - BigInt('0x05b2cfd9013a5fd8df47fa6b48b1e045f39816240c0b8fee8beadf4d8e9c0566c63a3e6e257f87329b18fae980078116'), - BigInt('0x144e4211384586c16bd3ad4afa99cc9170df3560e77982d0db45f3536814f0bd5871c1908bd478cd1ee605167ff82995'), - ], -].map((n) => Fp2.fromBigTuple(n)); -// END OF CURVE FIELDS -// HashToCurve -// 3-isogeny map from E' to E -// https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-hash-to-curve-11#appendix-E.3 -const isogenyMapG2 = (0, hash_to_curve_js_1.isogenyMap)(Fp2, [ - // xNum - [ - [ - '0x5c759507e8e333ebb5b7a9a47d7ed8532c52d39fd3a042a88b58423c50ae15d5c2638e343d9c71c6238aaaaaaaa97d6', - '0x5c759507e8e333ebb5b7a9a47d7ed8532c52d39fd3a042a88b58423c50ae15d5c2638e343d9c71c6238aaaaaaaa97d6', - ], - [ - '0x0', - '0x11560bf17baa99bc32126fced787c88f984f87adf7ae0c7f9a208c6b4f20a4181472aaa9cb8d555526a9ffffffffc71a', - ], - [ - '0x11560bf17baa99bc32126fced787c88f984f87adf7ae0c7f9a208c6b4f20a4181472aaa9cb8d555526a9ffffffffc71e', - '0x8ab05f8bdd54cde190937e76bc3e447cc27c3d6fbd7063fcd104635a790520c0a395554e5c6aaaa9354ffffffffe38d', - ], - [ - '0x171d6541fa38ccfaed6dea691f5fb614cb14b4e7f4e810aa22d6108f142b85757098e38d0f671c7188e2aaaaaaaa5ed1', - '0x0', - ], - ], - // xDen - [ - [ - '0x0', - '0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffaa63', - ], - [ - '0xc', - '0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffaa9f', - ], - ['0x1', '0x0'], // LAST 1 - ], - // yNum - [ - [ - '0x1530477c7ab4113b59a4c18b076d11930f7da5d4a07f649bf54439d87d27e500fc8c25ebf8c92f6812cfc71c71c6d706', - '0x1530477c7ab4113b59a4c18b076d11930f7da5d4a07f649bf54439d87d27e500fc8c25ebf8c92f6812cfc71c71c6d706', - ], - [ - '0x0', - '0x5c759507e8e333ebb5b7a9a47d7ed8532c52d39fd3a042a88b58423c50ae15d5c2638e343d9c71c6238aaaaaaaa97be', - ], - [ - '0x11560bf17baa99bc32126fced787c88f984f87adf7ae0c7f9a208c6b4f20a4181472aaa9cb8d555526a9ffffffffc71c', - '0x8ab05f8bdd54cde190937e76bc3e447cc27c3d6fbd7063fcd104635a790520c0a395554e5c6aaaa9354ffffffffe38f', - ], - [ - '0x124c9ad43b6cf79bfbf7043de3811ad0761b0f37a1e26286b0e977c69aa274524e79097a56dc4bd9e1b371c71c718b10', - '0x0', - ], - ], - // yDen - [ - [ - '0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffa8fb', - '0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffa8fb', - ], - [ - '0x0', - '0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffa9d3', - ], - [ - '0x12', - '0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffaa99', - ], - ['0x1', '0x0'], // LAST 1 - ], -].map((i) => i.map((pair) => Fp2.fromBigTuple(pair.map(BigInt))))); -// 11-isogeny map from E' to E -const isogenyMapG1 = (0, hash_to_curve_js_1.isogenyMap)(Fp, [ - // xNum - [ - '0x11a05f2b1e833340b809101dd99815856b303e88a2d7005ff2627b56cdb4e2c85610c2d5f2e62d6eaeac1662734649b7', - '0x17294ed3e943ab2f0588bab22147a81c7c17e75b2f6a8417f565e33c70d1e86b4838f2a6f318c356e834eef1b3cb83bb', - '0xd54005db97678ec1d1048c5d10a9a1bce032473295983e56878e501ec68e25c958c3e3d2a09729fe0179f9dac9edcb0', - '0x1778e7166fcc6db74e0609d307e55412d7f5e4656a8dbf25f1b33289f1b330835336e25ce3107193c5b388641d9b6861', - '0xe99726a3199f4436642b4b3e4118e5499db995a1257fb3f086eeb65982fac18985a286f301e77c451154ce9ac8895d9', - '0x1630c3250d7313ff01d1201bf7a74ab5db3cb17dd952799b9ed3ab9097e68f90a0870d2dcae73d19cd13c1c66f652983', - '0xd6ed6553fe44d296a3726c38ae652bfb11586264f0f8ce19008e218f9c86b2a8da25128c1052ecaddd7f225a139ed84', - '0x17b81e7701abdbe2e8743884d1117e53356de5ab275b4db1a682c62ef0f2753339b7c8f8c8f475af9ccb5618e3f0c88e', - '0x80d3cf1f9a78fc47b90b33563be990dc43b756ce79f5574a2c596c928c5d1de4fa295f296b74e956d71986a8497e317', - '0x169b1f8e1bcfa7c42e0c37515d138f22dd2ecb803a0c5c99676314baf4bb1b7fa3190b2edc0327797f241067be390c9e', - '0x10321da079ce07e272d8ec09d2565b0dfa7dccdde6787f96d50af36003b14866f69b771f8c285decca67df3f1605fb7b', - '0x6e08c248e260e70bd1e962381edee3d31d79d7e22c837bc23c0bf1bc24c6b68c24b1b80b64d391fa9c8ba2e8ba2d229', - ], - // xDen - [ - '0x8ca8d548cff19ae18b2e62f4bd3fa6f01d5ef4ba35b48ba9c9588617fc8ac62b558d681be343df8993cf9fa40d21b1c', - '0x12561a5deb559c4348b4711298e536367041e8ca0cf0800c0126c2588c48bf5713daa8846cb026e9e5c8276ec82b3bff', - '0xb2962fe57a3225e8137e629bff2991f6f89416f5a718cd1fca64e00b11aceacd6a3d0967c94fedcfcc239ba5cb83e19', - '0x3425581a58ae2fec83aafef7c40eb545b08243f16b1655154cca8abc28d6fd04976d5243eecf5c4130de8938dc62cd8', - '0x13a8e162022914a80a6f1d5f43e7a07dffdfc759a12062bb8d6b44e833b306da9bd29ba81f35781d539d395b3532a21e', - '0xe7355f8e4e667b955390f7f0506c6e9395735e9ce9cad4d0a43bcef24b8982f7400d24bc4228f11c02df9a29f6304a5', - '0x772caacf16936190f3e0c63e0596721570f5799af53a1894e2e073062aede9cea73b3538f0de06cec2574496ee84a3a', - '0x14a7ac2a9d64a8b230b3f5b074cf01996e7f63c21bca68a81996e1cdf9822c580fa5b9489d11e2d311f7d99bbdcc5a5e', - '0xa10ecf6ada54f825e920b3dafc7a3cce07f8d1d7161366b74100da67f39883503826692abba43704776ec3a79a1d641', - '0x95fc13ab9e92ad4476d6e3eb3a56680f682b4ee96f7d03776df533978f31c1593174e4b4b7865002d6384d168ecdd0a', - '0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001', // LAST 1 - ], - // yNum - [ - '0x90d97c81ba24ee0259d1f094980dcfa11ad138e48a869522b52af6c956543d3cd0c7aee9b3ba3c2be9845719707bb33', - '0x134996a104ee5811d51036d776fb46831223e96c254f383d0f906343eb67ad34d6c56711962fa8bfe097e75a2e41c696', - '0xcc786baa966e66f4a384c86a3b49942552e2d658a31ce2c344be4b91400da7d26d521628b00523b8dfe240c72de1f6', - '0x1f86376e8981c217898751ad8746757d42aa7b90eeb791c09e4a3ec03251cf9de405aba9ec61deca6355c77b0e5f4cb', - '0x8cc03fdefe0ff135caf4fe2a21529c4195536fbe3ce50b879833fd221351adc2ee7f8dc099040a841b6daecf2e8fedb', - '0x16603fca40634b6a2211e11db8f0a6a074a7d0d4afadb7bd76505c3d3ad5544e203f6326c95a807299b23ab13633a5f0', - '0x4ab0b9bcfac1bbcb2c977d027796b3ce75bb8ca2be184cb5231413c4d634f3747a87ac2460f415ec961f8855fe9d6f2', - '0x987c8d5333ab86fde9926bd2ca6c674170a05bfe3bdd81ffd038da6c26c842642f64550fedfe935a15e4ca31870fb29', - '0x9fc4018bd96684be88c9e221e4da1bb8f3abd16679dc26c1e8b6e6a1f20cabe69d65201c78607a360370e577bdba587', - '0xe1bba7a1186bdb5223abde7ada14a23c42a0ca7915af6fe06985e7ed1e4d43b9b3f7055dd4eba6f2bafaaebca731c30', - '0x19713e47937cd1be0dfd0b8f1d43fb93cd2fcbcb6caf493fd1183e416389e61031bf3a5cce3fbafce813711ad011c132', - '0x18b46a908f36f6deb918c143fed2edcc523559b8aaf0c2462e6bfe7f911f643249d9cdf41b44d606ce07c8a4d0074d8e', - '0xb182cac101b9399d155096004f53f447aa7b12a3426b08ec02710e807b4633f06c851c1919211f20d4c04f00b971ef8', - '0x245a394ad1eca9b72fc00ae7be315dc757b3b080d4c158013e6632d3c40659cc6cf90ad1c232a6442d9d3f5db980133', - '0x5c129645e44cf1102a159f748c4a3fc5e673d81d7e86568d9ab0f5d396a7ce46ba1049b6579afb7866b1e715475224b', - '0x15e6be4e990f03ce4ea50b3b42df2eb5cb181d8f84965a3957add4fa95af01b2b665027efec01c7704b456be69c8b604', - ], - // yDen - [ - '0x16112c4c3a9c98b252181140fad0eae9601a6de578980be6eec3232b5be72e7a07f3688ef60c206d01479253b03663c1', - '0x1962d75c2381201e1a0cbd6c43c348b885c84ff731c4d59ca4a10356f453e01f78a4260763529e3532f6102c2e49a03d', - '0x58df3306640da276faaae7d6e8eb15778c4855551ae7f310c35a5dd279cd2eca6757cd636f96f891e2538b53dbf67f2', - '0x16b7d288798e5395f20d23bf89edb4d1d115c5dbddbcd30e123da489e726af41727364f2c28297ada8d26d98445f5416', - '0xbe0e079545f43e4b00cc912f8228ddcc6d19c9f0f69bbb0542eda0fc9dec916a20b15dc0fd2ededda39142311a5001d', - '0x8d9e5297186db2d9fb266eaac783182b70152c65550d881c5ecd87b6f0f5a6449f38db9dfa9cce202c6477faaf9b7ac', - '0x166007c08a99db2fc3ba8734ace9824b5eecfdfa8d0cf8ef5dd365bc400a0051d5fa9c01a58b1fb93d1a1399126a775c', - '0x16a3ef08be3ea7ea03bcddfabba6ff6ee5a4375efa1f4fd7feb34fd206357132b920f5b00801dee460ee415a15812ed9', - '0x1866c8ed336c61231a1be54fd1d74cc4f9fb0ce4c6af5920abc5750c4bf39b4852cfe2f7bb9248836b233d9d55535d4a', - '0x167a55cda70a6e1cea820597d94a84903216f763e13d87bb5308592e7ea7d4fbc7385ea3d529b35e346ef48bb8913f55', - '0x4d2f259eea405bd48f010a01ad2911d9c6dd039bb61a6290e591b36e636a5c871a5c29f4f83060400f8b49cba8f6aa8', - '0xaccbb67481d033ff5852c1e48c50c477f94ff8aefce42d28c0f9a88cea7913516f968986f7ebbea9684b529e2561092', - '0xad6b9514c767fe3c3613144b45f1496543346d98adf02267d5ceef9a00d9b8693000763e3b90ac11e99b138573345cc', - '0x2660400eb2e4f3b628bdd0d53cd76f2bf565b94e72927c1cb748df27942480e420517bd8714cc80d1fadc1326ed06f7', - '0xe0fa1d816ddc03e6b24255e0d7819c171c40f65e273b853324efcd6356caa205ca2f570f13497804415473a1d634b8f', - '0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001', // LAST 1 - ], -].map((i) => i.map((j) => BigInt(j)))); -// SWU Map - Fp2 to G2': y² = x³ + 240i * x + 1012 + 1012i -const G2_SWU = (0, weierstrass_js_1.mapToCurveSimpleSWU)(Fp2, { - A: Fp2.create({ c0: Fp.create(_0n), c1: Fp.create(BigInt(240)) }), - B: Fp2.create({ c0: Fp.create(BigInt(1012)), c1: Fp.create(BigInt(1012)) }), - Z: Fp2.create({ c0: Fp.create(BigInt(-2)), c1: Fp.create(BigInt(-1)) }), // Z: -(2 + I) -}); -// Optimized SWU Map - Fp to G1 -const G1_SWU = (0, weierstrass_js_1.mapToCurveSimpleSWU)(Fp, { - A: Fp.create(BigInt('0x144698a3b8e9433d693a02c96d4982b0ea985383ee66a8d8e8981aefd881ac98936f8da0e0f97f5cf428082d584c1d')), - B: Fp.create(BigInt('0x12e2908d11688030018b12e8753eee3b2016c1f0f24f4070a0b9c14fcef35ef55a23215a316ceaa5d1cc48e98e172be0')), - Z: Fp.create(BigInt(11)), -}); -// Endomorphisms (for fast cofactor clearing) -// Ψ(P) endomorphism -const ut_root = Fp6.create({ c0: Fp2.ZERO, c1: Fp2.ONE, c2: Fp2.ZERO }); -const wsq = Fp12.create({ c0: ut_root, c1: Fp6.ZERO }); -const wcu = Fp12.create({ c0: Fp6.ZERO, c1: ut_root }); -const [wsq_inv, wcu_inv] = Fp12.invertBatch([wsq, wcu]); -function psi(x, y) { - // Untwist Fp2->Fp12 && frobenius(1) && twist back - const x2 = Fp12.mul(Fp12.frobeniusMap(Fp12.multiplyByFp2(wsq_inv, x), 1), wsq).c0.c0; - const y2 = Fp12.mul(Fp12.frobeniusMap(Fp12.multiplyByFp2(wcu_inv, y), 1), wcu).c0.c0; - return [x2, y2]; -} -// Ψ endomorphism -function G2psi(c, P) { - const affine = P.toAffine(); - const p = psi(affine.x, affine.y); - return new c(p[0], p[1], Fp2.ONE); -} -// Ψ²(P) endomorphism -// 1 / F2(2)^((p-1)/3) in GF(p²) -const PSI2_C1 = BigInt('0x1a0111ea397fe699ec02408663d4de85aa0d857d89759ad4897d29650fb85f9b409427eb4f49fffd8bfd00000000aaac'); -function psi2(x, y) { - return [Fp2.mul(x, PSI2_C1), Fp2.neg(y)]; -} -function G2psi2(c, P) { - const affine = P.toAffine(); - const p = psi2(affine.x, affine.y); - return new c(p[0], p[1], Fp2.ONE); -} -// Default hash_to_field options are for hash to G2. -// -// Parameter definitions are in section 5.3 of the spec unless otherwise noted. -// Parameter values come from section 8.8.2 of the spec. -// https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-hash-to-curve-11#section-8.8.2 -// -// Base field F is GF(p^m) -// p = 0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffaaab -// m = 2 (or 1 for G1 see section 8.8.1) -// k = 128 -const htfDefaults = Object.freeze({ - // DST: a domain separation tag - // defined in section 2.2.5 - // Use utils.getDSTLabel(), utils.setDSTLabel(value) - DST: 'BLS_SIG_BLS12381G2_XMD:SHA-256_SSWU_RO_NUL_', - encodeDST: 'BLS_SIG_BLS12381G2_XMD:SHA-256_SSWU_RO_NUL_', - // p: the characteristic of F - // where F is a finite field of characteristic p and order q = p^m - p: Fp.ORDER, - // m: the extension degree of F, m >= 1 - // where F is a finite field of characteristic p and order q = p^m - m: 2, - // k: the target security level for the suite in bits - // defined in section 5.1 - k: 128, - // option to use a message that has already been processed by - // expand_message_xmd - expand: 'xmd', - // Hash functions for: expand_message_xmd is appropriate for use with a - // wide range of hash functions, including SHA-2, SHA-3, BLAKE2, and others. - // BBS+ uses blake2: https://github.com/hyperledger/aries-framework-go/issues/2247 - hash: sha256_1.sha256, -}); -// Encoding utils -// Point on G1 curve: (x, y) -const C_BIT_POS = Fp.BITS; // C_bit, compression bit for serialization flag -const I_BIT_POS = Fp.BITS + 1; // I_bit, point-at-infinity bit for serialization flag -const S_BIT_POS = Fp.BITS + 2; // S_bit, sign bit for serialization flag -// Compressed point of infinity -const COMPRESSED_ZERO = Fp.toBytes((0, utils_js_1.bitSet)((0, utils_js_1.bitSet)(_0n, I_BIT_POS, true), S_BIT_POS, true)); // set compressed & point-at-infinity bits -function signatureG2ToRawBytes(point) { - // NOTE: by some reasons it was missed in bls12-381, looks like bug - point.assertValidity(); - const len = Fp.BYTES; - if (point.equals(exports.bls12_381.G2.ProjectivePoint.ZERO)) - return (0, utils_js_1.concatBytes)(COMPRESSED_ZERO, (0, utils_js_1.numberToBytesBE)(_0n, len)); - const { x, y } = point.toAffine(); - const { re: x0, im: x1 } = Fp2.reim(x); - const { re: y0, im: y1 } = Fp2.reim(y); - const tmp = y1 > _0n ? y1 * _2n : y0 * _2n; - const aflag1 = Boolean((tmp / Fp.ORDER) & _1n); - const z1 = (0, utils_js_1.bitSet)((0, utils_js_1.bitSet)(x1, 381, aflag1), S_BIT_POS, true); - const z2 = x0; - return (0, utils_js_1.concatBytes)((0, utils_js_1.numberToBytesBE)(z1, len), (0, utils_js_1.numberToBytesBE)(z2, len)); -} -// To verify curve parameters, see pairing-friendly-curves spec: -// https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-pairing-friendly-curves-09 -// Basic math is done over finite fields over p. -// More complicated math is done over polynominal extension fields. -// To simplify calculations in Fp12, we construct extension tower: -// Fp₁₂ = Fp₆² => Fp₂³ -// Fp(u) / (u² - β) where β = -1 -// Fp₂(v) / (v³ - ξ) where ξ = u + 1 -// Fp₆(w) / (w² - γ) where γ = v -// Here goes constants && point encoding format -exports.bls12_381 = (0, bls_js_1.bls)({ - // Fields - fields: { - Fp, - Fp2, - Fp6, - Fp12, - Fr, - }, - // G1 is the order-q subgroup of E1(Fp) : y² = x³ + 4, #E1(Fp) = h1q, where - // characteristic; z + (z⁴ - z² + 1)(z - 1)²/3 - G1: { - Fp, - // cofactor; (z - 1)²/3 - h: BigInt('0x396c8c005555e1568c00aaab0000aaab'), - // generator's coordinates - // x = 3685416753713387016781088315183077757961620795782546409894578378688607592378376318836054947676345821548104185464507 - // y = 1339506544944476473020471379941921221584933875938349620426543736416511423956333506472724655353366534992391756441569 - Gx: BigInt('0x17f1d3a73197d7942695638c4fa9ac0fc3688c4f9774b905a14e3a3f171bac586c55e83ff97a1aeffb3af00adb22c6bb'), - Gy: BigInt('0x08b3f481e3aaa0f1a09e30ed741d8ae4fcf5e095d5d00af600db18cb2c04b3edd03cc744a2888ae40caa232946c5e7e1'), - a: Fp.ZERO, - b: _4n, - htfDefaults: { ...htfDefaults, m: 1 }, - wrapPrivateKey: true, - allowInfinityPoint: true, - // Checks is the point resides in prime-order subgroup. - // point.isTorsionFree() should return true for valid points - // It returns false for shitty points. - // https://eprint.iacr.org/2021/1130.pdf - isTorsionFree: (c, point) => { - // φ endomorphism - const cubicRootOfUnityModP = BigInt('0x5f19672fdf76ce51ba69c6076a0f77eaddb3a93be6f89688de17d813620a00022e01fffffffefffe'); - const phi = new c(Fp.mul(point.px, cubicRootOfUnityModP), point.py, point.pz); - // todo: unroll - const xP = point.multiplyUnsafe(exports.bls12_381.params.x).negate(); // [x]P - const u2P = xP.multiplyUnsafe(exports.bls12_381.params.x); // [u2]P - return u2P.equals(phi); - // https://eprint.iacr.org/2019/814.pdf - // (z² − 1)/3 - // const c1 = BigInt('0x396c8c005555e1560000000055555555'); - // const P = this; - // const S = P.sigma(); - // const Q = S.double(); - // const S2 = S.sigma(); - // // [(z² − 1)/3](2σ(P) − P − σ²(P)) − σ²(P) = O - // const left = Q.subtract(P).subtract(S2).multiplyUnsafe(c1); - // const C = left.subtract(S2); - // return C.isZero(); - }, - // Clear cofactor of G1 - // https://eprint.iacr.org/2019/403 - clearCofactor: (c, point) => { - // return this.multiplyUnsafe(CURVE.h); - return point.multiplyUnsafe(exports.bls12_381.params.x).add(point); // x*P + P - }, - mapToCurve: (scalars) => { - const { x, y } = G1_SWU(Fp.create(scalars[0])); - return isogenyMapG1(x, y); - }, - fromBytes: (bytes) => { - bytes = bytes.slice(); - if (bytes.length === 48) { - // TODO: Fp.bytes - const P = Fp.ORDER; - const compressedValue = (0, utils_js_1.bytesToNumberBE)(bytes); - const bflag = (0, utils_js_1.bitGet)(compressedValue, I_BIT_POS); - // Zero - if (bflag === _1n) - return { x: _0n, y: _0n }; - const x = Fp.create(compressedValue & Fp.MASK); - const right = Fp.add(Fp.pow(x, _3n), Fp.create(exports.bls12_381.params.G1b)); // y² = x³ + b - let y = Fp.sqrt(right); - if (!y) - throw new Error('Invalid compressed G1 point'); - const aflag = (0, utils_js_1.bitGet)(compressedValue, C_BIT_POS); - if ((y * _2n) / P !== aflag) - y = Fp.neg(y); - return { x: Fp.create(x), y: Fp.create(y) }; - } - else if (bytes.length === 96) { - // Check if the infinity flag is set - if ((bytes[0] & (1 << 6)) !== 0) - return exports.bls12_381.G1.ProjectivePoint.ZERO.toAffine(); - const x = (0, utils_js_1.bytesToNumberBE)(bytes.subarray(0, Fp.BYTES)); - const y = (0, utils_js_1.bytesToNumberBE)(bytes.subarray(Fp.BYTES)); - return { x: Fp.create(x), y: Fp.create(y) }; - } - else { - throw new Error('Invalid point G1, expected 48/96 bytes'); - } - }, - toBytes: (c, point, isCompressed) => { - const isZero = point.equals(c.ZERO); - const { x, y } = point.toAffine(); - if (isCompressed) { - if (isZero) - return COMPRESSED_ZERO.slice(); - const P = Fp.ORDER; - let num; - num = (0, utils_js_1.bitSet)(x, C_BIT_POS, Boolean((y * _2n) / P)); // set aflag - num = (0, utils_js_1.bitSet)(num, S_BIT_POS, true); - return (0, utils_js_1.numberToBytesBE)(num, Fp.BYTES); - } - else { - if (isZero) { - // 2x PUBLIC_KEY_LENGTH - const x = (0, utils_js_1.concatBytes)(new Uint8Array([0x40]), new Uint8Array(2 * Fp.BYTES - 1)); - return x; - } - else { - return (0, utils_js_1.concatBytes)((0, utils_js_1.numberToBytesBE)(x, Fp.BYTES), (0, utils_js_1.numberToBytesBE)(y, Fp.BYTES)); - } - } - }, - }, - // G2 is the order-q subgroup of E2(Fp²) : y² = x³+4(1+√−1), - // where Fp2 is Fp[√−1]/(x2+1). #E2(Fp2 ) = h2q, where - // G² - 1 - // h2q - G2: { - Fp: Fp2, - // cofactor - h: BigInt('0x5d543a95414e7f1091d50792876a202cd91de4547085abaa68a205b2e5a7ddfa628f1cb4d9e82ef21537e293a6691ae1616ec6e786f0c70cf1c38e31c7238e5'), - Gx: Fp2.fromBigTuple([ - BigInt('0x024aa2b2f08f0a91260805272dc51051c6e47ad4fa403b02b4510b647ae3d1770bac0326a805bbefd48056c8c121bdb8'), - BigInt('0x13e02b6052719f607dacd3a088274f65596bd0d09920b61ab5da61bbdc7f5049334cf11213945d57e5ac7d055d042b7e'), - ]), - // y = - // 927553665492332455747201965776037880757740193453592970025027978793976877002675564980949289727957565575433344219582, - // 1985150602287291935568054521177171638300868978215655730859378665066344726373823718423869104263333984641494340347905 - Gy: Fp2.fromBigTuple([ - BigInt('0x0ce5d527727d6e118cc9cdc6da2e351aadfd9baa8cbdd3a76d429a695160d12c923ac9cc3baca289e193548608b82801'), - BigInt('0x0606c4a02ea734cc32acd2b02bc28b99cb3e287e85a763af267492ab572e99ab3f370d275cec1da1aaa9075ff05f79be'), - ]), - a: Fp2.ZERO, - b: Fp2.fromBigTuple([_4n, _4n]), - hEff: BigInt('0xbc69f08f2ee75b3584c6a0ea91b352888e2a8e9145ad7689986ff031508ffe1329c2f178731db956d82bf015d1212b02ec0ec69d7477c1ae954cbc06689f6a359894c0adebbf6b4e8020005aaa95551'), - htfDefaults: { ...htfDefaults }, - wrapPrivateKey: true, - allowInfinityPoint: true, - mapToCurve: (scalars) => { - const { x, y } = G2_SWU(Fp2.fromBigTuple(scalars)); - return isogenyMapG2(x, y); - }, - // Checks is the point resides in prime-order subgroup. - // point.isTorsionFree() should return true for valid points - // It returns false for shitty points. - // https://eprint.iacr.org/2021/1130.pdf - isTorsionFree: (c, P) => { - return P.multiplyUnsafe(exports.bls12_381.params.x).negate().equals(G2psi(c, P)); // ψ(P) == [u](P) - // Older version: https://eprint.iacr.org/2019/814.pdf - // Ψ²(P) => Ψ³(P) => [z]Ψ³(P) where z = -x => [z]Ψ³(P) - Ψ²(P) + P == O - // return P.psi2().psi().mulNegX().subtract(psi2).add(P).isZero(); - }, - // Maps the point into the prime-order subgroup G2. - // clear_cofactor_bls12381_g2 from cfrg-hash-to-curve-11 - // https://eprint.iacr.org/2017/419.pdf - // prettier-ignore - clearCofactor: (c, P) => { - const x = exports.bls12_381.params.x; - let t1 = P.multiplyUnsafe(x).negate(); // [-x]P - let t2 = G2psi(c, P); // Ψ(P) - let t3 = P.double(); // 2P - t3 = G2psi2(c, t3); // Ψ²(2P) - t3 = t3.subtract(t2); // Ψ²(2P) - Ψ(P) - t2 = t1.add(t2); // [-x]P + Ψ(P) - t2 = t2.multiplyUnsafe(x).negate(); // [x²]P - [x]Ψ(P) - t3 = t3.add(t2); // Ψ²(2P) - Ψ(P) + [x²]P - [x]Ψ(P) - t3 = t3.subtract(t1); // Ψ²(2P) - Ψ(P) + [x²]P - [x]Ψ(P) + [x]P - const Q = t3.subtract(P); // Ψ²(2P) - Ψ(P) + [x²]P - [x]Ψ(P) + [x]P - 1P - return Q; // [x²-x-1]P + [x-1]Ψ(P) + Ψ²(2P) - }, - fromBytes: (bytes) => { - bytes = bytes.slice(); - const m_byte = bytes[0] & 0xe0; - if (m_byte === 0x20 || m_byte === 0x60 || m_byte === 0xe0) { - throw new Error('Invalid encoding flag: ' + m_byte); - } - const bitC = m_byte & 0x80; // compression bit - const bitI = m_byte & 0x40; // point at infinity bit - const bitS = m_byte & 0x20; // sign bit - const L = Fp.BYTES; - const slc = (b, from, to) => (0, utils_js_1.bytesToNumberBE)(b.slice(from, to)); - if (bytes.length === 96 && bitC) { - const b = exports.bls12_381.params.G2b; - const P = Fp.ORDER; - bytes[0] = bytes[0] & 0x1f; // clear flags - if (bitI) { - // check that all bytes are 0 - if (bytes.reduce((p, c) => (p !== 0 ? c + 1 : c), 0) > 0) { - throw new Error('Invalid compressed G2 point'); - } - return { x: Fp2.ZERO, y: Fp2.ZERO }; - } - const x_1 = slc(bytes, 0, L); - const x_0 = slc(bytes, L, 2 * L); - const x = Fp2.create({ c0: Fp.create(x_0), c1: Fp.create(x_1) }); - const right = Fp2.add(Fp2.pow(x, _3n), b); // y² = x³ + 4 * (u+1) = x³ + b - let y = Fp2.sqrt(right); - const Y_bit = y.c1 === _0n ? (y.c0 * _2n) / P : (y.c1 * _2n) / P ? _1n : _0n; - y = bitS > 0 && Y_bit > 0 ? y : Fp2.neg(y); - return { x, y }; - } - else if (bytes.length === 192 && !bitC) { - // Check if the infinity flag is set - if ((bytes[0] & (1 << 6)) !== 0) { - return { x: Fp2.ZERO, y: Fp2.ZERO }; - } - const x1 = slc(bytes, 0, L); - const x0 = slc(bytes, L, 2 * L); - const y1 = slc(bytes, 2 * L, 3 * L); - const y0 = slc(bytes, 3 * L, 4 * L); - return { x: Fp2.fromBigTuple([x0, x1]), y: Fp2.fromBigTuple([y0, y1]) }; - } - else { - throw new Error('Invalid point G2, expected 96/192 bytes'); - } - }, - toBytes: (c, point, isCompressed) => { - const { BYTES: len, ORDER: P } = Fp; - const isZero = point.equals(c.ZERO); - const { x, y } = point.toAffine(); - if (isCompressed) { - if (isZero) - return (0, utils_js_1.concatBytes)(COMPRESSED_ZERO, (0, utils_js_1.numberToBytesBE)(_0n, len)); - const flag = Boolean(y.c1 === _0n ? (y.c0 * _2n) / P : (y.c1 * _2n) / P); - // set compressed & sign bits (looks like different offsets than for G1/Fp?) - let x_1 = (0, utils_js_1.bitSet)(x.c1, C_BIT_POS, flag); - x_1 = (0, utils_js_1.bitSet)(x_1, S_BIT_POS, true); - return (0, utils_js_1.concatBytes)((0, utils_js_1.numberToBytesBE)(x_1, len), (0, utils_js_1.numberToBytesBE)(x.c0, len)); - } - else { - if (isZero) - return (0, utils_js_1.concatBytes)(new Uint8Array([0x40]), new Uint8Array(4 * len - 1)); // bytes[0] |= 1 << 6; - const { re: x0, im: x1 } = Fp2.reim(x); - const { re: y0, im: y1 } = Fp2.reim(y); - return (0, utils_js_1.concatBytes)((0, utils_js_1.numberToBytesBE)(x1, len), (0, utils_js_1.numberToBytesBE)(x0, len), (0, utils_js_1.numberToBytesBE)(y1, len), (0, utils_js_1.numberToBytesBE)(y0, len)); - } - }, - Signature: { - // TODO: Optimize, it's very slow because of sqrt. - fromHex(hex) { - hex = (0, utils_js_1.ensureBytes)('signatureHex', hex); - const P = Fp.ORDER; - const half = hex.length / 2; - if (half !== 48 && half !== 96) - throw new Error('Invalid compressed signature length, must be 96 or 192'); - const z1 = (0, utils_js_1.bytesToNumberBE)(hex.slice(0, half)); - const z2 = (0, utils_js_1.bytesToNumberBE)(hex.slice(half)); - // Indicates the infinity point - const bflag1 = (0, utils_js_1.bitGet)(z1, I_BIT_POS); - if (bflag1 === _1n) - return exports.bls12_381.G2.ProjectivePoint.ZERO; - const x1 = Fp.create(z1 & Fp.MASK); - const x2 = Fp.create(z2); - const x = Fp2.create({ c0: x2, c1: x1 }); - const y2 = Fp2.add(Fp2.pow(x, _3n), exports.bls12_381.params.G2b); // y² = x³ + 4 - // The slow part - let y = Fp2.sqrt(y2); - if (!y) - throw new Error('Failed to find a square root'); - // Choose the y whose leftmost bit of the imaginary part is equal to the a_flag1 - // If y1 happens to be zero, then use the bit of y0 - const { re: y0, im: y1 } = Fp2.reim(y); - const aflag1 = (0, utils_js_1.bitGet)(z1, 381); - const isGreater = y1 > _0n && (y1 * _2n) / P !== aflag1; - const isZero = y1 === _0n && (y0 * _2n) / P !== aflag1; - if (isGreater || isZero) - y = Fp2.neg(y); - const point = exports.bls12_381.G2.ProjectivePoint.fromAffine({ x, y }); - point.assertValidity(); - return point; - }, - toRawBytes(point) { - return signatureG2ToRawBytes(point); - }, - toHex(point) { - return (0, utils_js_1.bytesToHex)(signatureG2ToRawBytes(point)); - }, - }, - }, - params: { - x: BLS_X, - r: Fr.ORDER, // order; z⁴ − z² + 1; CURVE.n from other curves - }, - htfDefaults, - hash: sha256_1.sha256, - randomBytes: utils_1.randomBytes, -}); -//# sourceMappingURL=bls12-381.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/bls12-381.js.map b/node_modules/@noble/curves/bls12-381.js.map deleted file mode 100644 index 55ecfb5b..00000000 --- a/node_modules/@noble/curves/bls12-381.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"bls12-381.js","sourceRoot":"","sources":["src/bls12-381.ts"],"names":[],"mappings":";AAAA,sEAAsE;;;AAEtE,uFAAuF;AACvF,gDAAgD;AAChD,kGAAkG;AAClG,+EAA+E;AAC/E,EAAE;AACF,mGAAmG;AACnG,+EAA+E;AAC/E,+FAA+F;AAC/F,+EAA+E;AAC/E,oFAAoF;AACpF,EAAE;AACF,cAAc;AACd,gDAAgD;AAChD,4BAA4B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,CAAC,GAAG,CAAC,KAAK,MAAM,CAAC;gBACxD,MAAM,MAAM,GAAG,EAAE,KAAK,GAAG,IAAI,CAAC,EAAE,GAAG,GAAG,CAAC,GAAG,CAAC,KAAK,MAAM,CAAC;gBACvD,IAAI,SAAS,IAAI,MAAM;oBAAE,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;gBACxC,MAAM,KAAK,GAAG,iBAAS,CAAC,EAAE,CAAC,eAAe,CAAC,UAAU,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;gBAChE,KAAK,CAAC,cAAc,EAAE,CAAC;gBACvB,OAAO,KAAK,CAAC;YACf,CAAC;YACD,UAAU,CAAC,KAAyB;gBAClC,OAAO,qBAAqB,CAAC,KAAK,CAAC,CAAC;YACtC,CAAC;YACD,KAAK,CAAC,KAAyB;gBAC7B,OAAO,IAAA,qBAAU,EAAC,qBAAqB,CAAC,KAAK,CAAC,CAAC,CAAC;YAClD,CAAC;SACF;KACF;IACD,MAAM,EAAE;QACN,CAAC,EAAE,KAAK;QACR,CAAC,EAAE,EAAE,CAAC,KAAK,EAAE,gDAAgD;KAC9D;IACD,WAAW;IACX,IAAI,EAAE,eAAM;IACZ,WAAW,EAAX,mBAAW;CACZ,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/bn254.d.ts b/node_modules/@noble/curves/bn254.d.ts deleted file mode 100644 index fd7064ad..00000000 --- a/node_modules/@noble/curves/bn254.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * bn254 pairing-friendly curve. - * Previously known as alt_bn_128, when it had 128-bit security. - * Recent research shown it's weaker, the naming has been adjusted to its prime bit count. - * https://github.com/zcash/zcash/issues/2502 - */ -export declare const bn254: import("./abstract/weierstrass.js").CurveFn; -//# sourceMappingURL=bn254.d.ts.map \ No newline at end of file diff --git a/node_modules/@noble/curves/bn254.d.ts.map b/node_modules/@noble/curves/bn254.d.ts.map deleted file mode 100644 index 572db18a..00000000 --- a/node_modules/@noble/curves/bn254.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"bn254.d.ts","sourceRoot":"","sources":["src/bn254.ts"],"names":[],"mappings":"AAKA;;;;;GAKG;AACH,eAAO,MAAM,KAAK,6CAShB,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/bn254.js b/node_modules/@noble/curves/bn254.js deleted file mode 100644 index 8b1c4b74..00000000 --- a/node_modules/@noble/curves/bn254.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.bn254 = void 0; -/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */ -const sha256_1 = require("@noble/hashes/sha256"); -const weierstrass_js_1 = require("./abstract/weierstrass.js"); -const _shortw_utils_js_1 = require("./_shortw_utils.js"); -const modular_js_1 = require("./abstract/modular.js"); -/** - * bn254 pairing-friendly curve. - * Previously known as alt_bn_128, when it had 128-bit security. - * Recent research shown it's weaker, the naming has been adjusted to its prime bit count. - * https://github.com/zcash/zcash/issues/2502 - */ -exports.bn254 = (0, weierstrass_js_1.weierstrass)({ - a: BigInt(0), - b: BigInt(3), - Fp: (0, modular_js_1.Field)(BigInt('0x30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd47')), - n: BigInt('0x30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f0000001'), - Gx: BigInt(1), - Gy: BigInt(2), - h: BigInt(1), - ...(0, _shortw_utils_js_1.getHash)(sha256_1.sha256), -}); -//# sourceMappingURL=bn254.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/bn254.js.map b/node_modules/@noble/curves/bn254.js.map deleted file mode 100644 index a54fb586..00000000 --- a/node_modules/@noble/curves/bn254.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"bn254.js","sourceRoot":"","sources":["src/bn254.ts"],"names":[],"mappings":";;;AAAA,sEAAsE;AACtE,iDAA8C;AAC9C,8DAAwD;AACxD,yDAA6C;AAC7C,sDAA8C;AAC9C;;;;;GAKG;AACU,QAAA,KAAK,GAAG,IAAA,4BAAW,EAAC;IAC/B,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;IACZ,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;IACZ,EAAE,EAAE,IAAA,kBAAK,EAAC,MAAM,CAAC,oEAAoE,CAAC,CAAC;IACvF,CAAC,EAAE,MAAM,CAAC,oEAAoE,CAAC;IAC/E,EAAE,EAAE,MAAM,CAAC,CAAC,CAAC;IACb,EAAE,EAAE,MAAM,CAAC,CAAC,CAAC;IACb,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;IACZ,GAAG,IAAA,0BAAO,EAAC,eAAM,CAAC;CACnB,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/ed25519.d.ts b/node_modules/@noble/curves/ed25519.d.ts deleted file mode 100644 index b996bf4f..00000000 --- a/node_modules/@noble/curves/ed25519.d.ts +++ /dev/null @@ -1,75 +0,0 @@ -import { ExtPointType } from './abstract/edwards.js'; -import { Hex } from './abstract/utils.js'; -import { htfBasicOpts } from './abstract/hash-to-curve.js'; -import { AffinePoint } from './abstract/curve.js'; -export declare const ED25519_TORSION_SUBGROUP: string[]; -export declare const ed25519: import("./abstract/edwards.js").CurveFn; -export declare const ed25519ctx: import("./abstract/edwards.js").CurveFn; -export declare const ed25519ph: import("./abstract/edwards.js").CurveFn; -export declare const x25519: import("./abstract/montgomery.js").CurveFn; -/** - * Converts ed25519 public key to x25519 public key. Uses formula: - * * `(u, v) = ((1+y)/(1-y), sqrt(-486664)*u/x)` - * * `(x, y) = (sqrt(-486664)*u/v, (u-1)/(u+1))` - * @example - * const someonesPub = ed25519.getPublicKey(ed25519.utils.randomPrivateKey()); - * const aPriv = x25519.utils.randomPrivateKey(); - * x25519.getSharedSecret(aPriv, edwardsToMontgomeryPub(someonesPub)) - */ -export declare function edwardsToMontgomeryPub(edwardsPub: Hex): Uint8Array; -export declare const edwardsToMontgomery: typeof edwardsToMontgomeryPub; -/** - * Converts ed25519 secret key to x25519 secret key. - * @example - * const someonesPub = x25519.getPublicKey(x25519.utils.randomPrivateKey()); - * const aPriv = ed25519.utils.randomPrivateKey(); - * x25519.getSharedSecret(edwardsToMontgomeryPriv(aPriv), someonesPub) - */ -export declare function edwardsToMontgomeryPriv(edwardsPriv: Uint8Array): Uint8Array; -export declare const hashToCurve: (msg: Uint8Array, options?: htfBasicOpts | undefined) => import("./abstract/hash-to-curve.js").H2CPoint; -export declare const encodeToCurve: (msg: Uint8Array, options?: htfBasicOpts | undefined) => import("./abstract/hash-to-curve.js").H2CPoint; -type ExtendedPoint = ExtPointType; -/** - * Each ed25519/ExtendedPoint has 8 different equivalent points. This can be - * a source of bugs for protocols like ring signatures. Ristretto was created to solve this. - * Ristretto point operates in X:Y:Z:T extended coordinates like ExtendedPoint, - * but it should work in its own namespace: do not combine those two. - * https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-ristretto255-decaf448 - */ -declare class RistPoint { - private readonly ep; - static BASE: RistPoint; - static ZERO: RistPoint; - constructor(ep: ExtendedPoint); - static fromAffine(ap: AffinePoint): RistPoint; - /** - * Takes uniform output of 64-byte hash function like sha512 and converts it to `RistrettoPoint`. - * The hash-to-group operation applies Elligator twice and adds the results. - * **Note:** this is one-way map, there is no conversion from point to hash. - * https://ristretto.group/formulas/elligator.html - * @param hex 64-byte output of a hash function - */ - static hashToCurve(hex: Hex): RistPoint; - /** - * Converts ristretto-encoded string to ristretto point. - * https://ristretto.group/formulas/decoding.html - * @param hex Ristretto-encoded 32 bytes. Not every 32-byte string is valid ristretto encoding - */ - static fromHex(hex: Hex): RistPoint; - /** - * Encodes ristretto point to Uint8Array. - * https://ristretto.group/formulas/encoding.html - */ - toRawBytes(): Uint8Array; - toHex(): string; - toString(): string; - equals(other: RistPoint): boolean; - add(other: RistPoint): RistPoint; - subtract(other: RistPoint): RistPoint; - multiply(scalar: bigint): RistPoint; - multiplyUnsafe(scalar: bigint): RistPoint; -} -export declare const RistrettoPoint: typeof RistPoint; -export declare const hash_to_ristretto255: (msg: Uint8Array, options: htfBasicOpts) => RistPoint; -export {}; -//# sourceMappingURL=ed25519.d.ts.map \ No newline at end of file diff --git a/node_modules/@noble/curves/ed25519.d.ts.map b/node_modules/@noble/curves/ed25519.d.ts.map deleted file mode 100644 index 13be7bcb..00000000 --- a/node_modules/@noble/curves/ed25519.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ed25519.d.ts","sourceRoot":"","sources":["src/ed25519.ts"],"names":[],"mappings":"AAGA,OAAO,EAAE,YAAY,EAAkB,MAAM,uBAAuB,CAAC;AAGrE,OAAO,EAKL,GAAG,EAEJ,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAgB,YAAY,EAAsB,MAAM,6BAA6B,CAAC;AAC7F,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAwElD,eAAO,MAAM,wBAAwB,UASpC,CAAC;AA6BF,eAAO,MAAM,OAAO,yCAAkC,CAAC;AAYvD,eAAO,MAAM,UAAU,yCAAiE,CAAC;AACzF,eAAO,MAAM,SAAS,yCAIpB,CAAC;AAEH,eAAO,MAAM,MAAM,4CAeZ,CAAC;AAER;;;;;;;;GAQG;AACH,wBAAgB,sBAAsB,CAAC,UAAU,EAAE,GAAG,GAAG,UAAU,CAIlE;AACD,eAAO,MAAM,mBAAmB,+BAAyB,CAAC;AAE1D;;;;;;GAMG;AACH,wBAAgB,uBAAuB,CAAC,WAAW,EAAE,UAAU,GAAG,UAAU,CAG3E;AA0FD,eAAO,MAAM,WAAW,iHAA4C,CAAC;AACrE,eAAO,MAAM,aAAa,iHAA8C,CAAC;AA+BzE,KAAK,aAAa,GAAG,YAAY,CAAC;AA0BlC;;;;;;GAMG;AACH,cAAM,SAAS;IAKD,OAAO,CAAC,QAAQ,CAAC,EAAE;IAJ/B,MAAM,CAAC,IAAI,EAAE,SAAS,CAAC;IACvB,MAAM,CAAC,IAAI,EAAE,SAAS,CAAC;gBAGM,EAAE,EAAE,aAAa;IAE9C,MAAM,CAAC,UAAU,CAAC,EAAE,EAAE,WAAW,CAAC,MAAM,CAAC;IAIzC;;;;;;OAMG;IACH,MAAM,CAAC,WAAW,CAAC,GAAG,EAAE,GAAG,GAAG,SAAS;IASvC;;;;OAIG;IACH,MAAM,CAAC,OAAO,CAAC,GAAG,EAAE,GAAG,GAAG,SAAS;IA2BnC;;;OAGG;IACH,UAAU,IAAI,UAAU;IA4BxB,KAAK,IAAI,MAAM;IAIf,QAAQ,IAAI,MAAM;IAKlB,MAAM,CAAC,KAAK,EAAE,SAAS,GAAG,OAAO;IAWjC,GAAG,CAAC,KAAK,EAAE,SAAS,GAAG,SAAS;IAKhC,QAAQ,CAAC,KAAK,EAAE,SAAS,GAAG,SAAS;IAKrC,QAAQ,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS;IAInC,cAAc,CAAC,MAAM,EAAE,MAAM,GAAG,SAAS;CAG1C;AACD,eAAO,MAAM,cAAc,kBAIvB,CAAC;AAIL,eAAO,MAAM,oBAAoB,QAAS,UAAU,WAAW,YAAY,cAM1E,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/ed25519.js b/node_modules/@noble/curves/ed25519.js deleted file mode 100644 index c750251a..00000000 --- a/node_modules/@noble/curves/ed25519.js +++ /dev/null @@ -1,436 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.hash_to_ristretto255 = exports.RistrettoPoint = exports.encodeToCurve = exports.hashToCurve = exports.edwardsToMontgomeryPriv = exports.edwardsToMontgomery = exports.edwardsToMontgomeryPub = exports.x25519 = exports.ed25519ph = exports.ed25519ctx = exports.ed25519 = exports.ED25519_TORSION_SUBGROUP = void 0; -/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */ -const sha512_1 = require("@noble/hashes/sha512"); -const utils_1 = require("@noble/hashes/utils"); -const edwards_js_1 = require("./abstract/edwards.js"); -const montgomery_js_1 = require("./abstract/montgomery.js"); -const modular_js_1 = require("./abstract/modular.js"); -const utils_js_1 = require("./abstract/utils.js"); -const hash_to_curve_js_1 = require("./abstract/hash-to-curve.js"); -/** - * ed25519 Twisted Edwards curve with following addons: - * - X25519 ECDH - * - Ristretto cofactor elimination - * - Elligator hash-to-group / point indistinguishability - */ -const ED25519_P = BigInt('57896044618658097711785492504343953926634992332820282019728792003956564819949'); -// √(-1) aka √(a) aka 2^((p-1)/4) -const ED25519_SQRT_M1 = BigInt('19681161376707505956807079304988542015446066515923890162744021073123829784752'); -// prettier-ignore -const _0n = BigInt(0), _1n = BigInt(1), _2n = BigInt(2), _5n = BigInt(5); -// prettier-ignore -const _10n = BigInt(10), _20n = BigInt(20), _40n = BigInt(40), _80n = BigInt(80); -function ed25519_pow_2_252_3(x) { - const P = ED25519_P; - const x2 = (x * x) % P; - const b2 = (x2 * x) % P; // x^3, 11 - const b4 = ((0, modular_js_1.pow2)(b2, _2n, P) * b2) % P; // x^15, 1111 - const b5 = ((0, modular_js_1.pow2)(b4, _1n, P) * x) % P; // x^31 - const b10 = ((0, modular_js_1.pow2)(b5, _5n, P) * b5) % P; - const b20 = ((0, modular_js_1.pow2)(b10, _10n, P) * b10) % P; - const b40 = ((0, modular_js_1.pow2)(b20, _20n, P) * b20) % P; - const b80 = ((0, modular_js_1.pow2)(b40, _40n, P) * b40) % P; - const b160 = ((0, modular_js_1.pow2)(b80, _80n, P) * b80) % P; - const b240 = ((0, modular_js_1.pow2)(b160, _80n, P) * b80) % P; - const b250 = ((0, modular_js_1.pow2)(b240, _10n, P) * b10) % P; - const pow_p_5_8 = ((0, modular_js_1.pow2)(b250, _2n, P) * x) % P; - // ^ To pow to (p+3)/8, multiply it by x. - return { pow_p_5_8, b2 }; -} -function adjustScalarBytes(bytes) { - // Section 5: For X25519, in order to decode 32 random bytes as an integer scalar, - // set the three least significant bits of the first byte - bytes[0] &= 248; // 0b1111_1000 - // and the most significant bit of the last to zero, - bytes[31] &= 127; // 0b0111_1111 - // set the second most significant bit of the last byte to 1 - bytes[31] |= 64; // 0b0100_0000 - return bytes; -} -// sqrt(u/v) -function uvRatio(u, v) { - const P = ED25519_P; - const v3 = (0, modular_js_1.mod)(v * v * v, P); // v³ - const v7 = (0, modular_js_1.mod)(v3 * v3 * v, P); // v⁷ - // (p+3)/8 and (p-5)/8 - const pow = ed25519_pow_2_252_3(u * v7).pow_p_5_8; - let x = (0, modular_js_1.mod)(u * v3 * pow, P); // (uv³)(uv⁷)^(p-5)/8 - const vx2 = (0, modular_js_1.mod)(v * x * x, P); // vx² - const root1 = x; // First root candidate - const root2 = (0, modular_js_1.mod)(x * ED25519_SQRT_M1, P); // Second root candidate - const useRoot1 = vx2 === u; // If vx² = u (mod p), x is a square root - const useRoot2 = vx2 === (0, modular_js_1.mod)(-u, P); // If vx² = -u, set x <-- x * 2^((p-1)/4) - const noRoot = vx2 === (0, modular_js_1.mod)(-u * ED25519_SQRT_M1, P); // There is no valid root, vx² = -u√(-1) - if (useRoot1) - x = root1; - if (useRoot2 || noRoot) - x = root2; // We return root2 anyway, for const-time - if ((0, modular_js_1.isNegativeLE)(x, P)) - x = (0, modular_js_1.mod)(-x, P); - return { isValid: useRoot1 || useRoot2, value: x }; -} -// Just in case -exports.ED25519_TORSION_SUBGROUP = [ - '0100000000000000000000000000000000000000000000000000000000000000', - 'c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac037a', - '0000000000000000000000000000000000000000000000000000000000000080', - '26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc05', - 'ecffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7f', - '26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc85', - '0000000000000000000000000000000000000000000000000000000000000000', - 'c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac03fa', -]; -const Fp = (0, modular_js_1.Field)(ED25519_P, undefined, true); -const ed25519Defaults = { - // Param: a - a: BigInt(-1), - // d is equal to -121665/121666 over finite field. - // Negative number is P - number, and division is invert(number, P) - d: BigInt('37095705934669439343138083508754565189542113879843219016388785533085940283555'), - // Finite field 𝔽p over which we'll do calculations; 2n**255n - 19n - Fp, - // Subgroup order: how many points curve has - // 2n**252n + 27742317777372353535851937790883648493n; - n: BigInt('7237005577332262213973186563042994240857116359379907606001950938285454250989'), - // Cofactor - h: BigInt(8), - // Base point (x, y) aka generator point - Gx: BigInt('15112221349535400772501151409588531511454012693041857206046113283949847762202'), - Gy: BigInt('46316835694926478169428394003475163141307993866256225615783033603165251855960'), - hash: sha512_1.sha512, - randomBytes: utils_1.randomBytes, - adjustScalarBytes, - // dom2 - // Ratio of u to v. Allows us to combine inversion and square root. Uses algo from RFC8032 5.1.3. - // Constant-time, u/√v - uvRatio, -}; -exports.ed25519 = (0, edwards_js_1.twistedEdwards)(ed25519Defaults); -function ed25519_domain(data, ctx, phflag) { - if (ctx.length > 255) - throw new Error('Context is too big'); - return (0, utils_1.concatBytes)((0, utils_1.utf8ToBytes)('SigEd25519 no Ed25519 collisions'), new Uint8Array([phflag ? 1 : 0, ctx.length]), ctx, data); -} -exports.ed25519ctx = (0, edwards_js_1.twistedEdwards)({ ...ed25519Defaults, domain: ed25519_domain }); -exports.ed25519ph = (0, edwards_js_1.twistedEdwards)({ - ...ed25519Defaults, - domain: ed25519_domain, - prehash: sha512_1.sha512, -}); -exports.x25519 = (() => (0, montgomery_js_1.montgomery)({ - P: ED25519_P, - a: BigInt(486662), - montgomeryBits: 255, - nByteLength: 32, - Gu: BigInt(9), - powPminus2: (x) => { - const P = ED25519_P; - // x^(p-2) aka x^(2^255-21) - const { pow_p_5_8, b2 } = ed25519_pow_2_252_3(x); - return (0, modular_js_1.mod)((0, modular_js_1.pow2)(pow_p_5_8, BigInt(3), P) * b2, P); - }, - adjustScalarBytes, - randomBytes: utils_1.randomBytes, -}))(); -/** - * Converts ed25519 public key to x25519 public key. Uses formula: - * * `(u, v) = ((1+y)/(1-y), sqrt(-486664)*u/x)` - * * `(x, y) = (sqrt(-486664)*u/v, (u-1)/(u+1))` - * @example - * const someonesPub = ed25519.getPublicKey(ed25519.utils.randomPrivateKey()); - * const aPriv = x25519.utils.randomPrivateKey(); - * x25519.getSharedSecret(aPriv, edwardsToMontgomeryPub(someonesPub)) - */ -function edwardsToMontgomeryPub(edwardsPub) { - const { y } = exports.ed25519.ExtendedPoint.fromHex(edwardsPub); - const _1n = BigInt(1); - return Fp.toBytes(Fp.create((_1n + y) * Fp.inv(_1n - y))); -} -exports.edwardsToMontgomeryPub = edwardsToMontgomeryPub; -exports.edwardsToMontgomery = edwardsToMontgomeryPub; // deprecated -/** - * Converts ed25519 secret key to x25519 secret key. - * @example - * const someonesPub = x25519.getPublicKey(x25519.utils.randomPrivateKey()); - * const aPriv = ed25519.utils.randomPrivateKey(); - * x25519.getSharedSecret(edwardsToMontgomeryPriv(aPriv), someonesPub) - */ -function edwardsToMontgomeryPriv(edwardsPriv) { - const hashed = ed25519Defaults.hash(edwardsPriv.subarray(0, 32)); - return ed25519Defaults.adjustScalarBytes(hashed).subarray(0, 32); -} -exports.edwardsToMontgomeryPriv = edwardsToMontgomeryPriv; -// Hash To Curve Elligator2 Map (NOTE: different from ristretto255 elligator) -// NOTE: very important part is usage of FpSqrtEven for ELL2_C1_EDWARDS, since -// SageMath returns different root first and everything falls apart -const ELL2_C1 = (Fp.ORDER + BigInt(3)) / BigInt(8); // 1. c1 = (q + 3) / 8 # Integer arithmetic -const ELL2_C2 = Fp.pow(_2n, ELL2_C1); // 2. c2 = 2^c1 -const ELL2_C3 = Fp.sqrt(Fp.neg(Fp.ONE)); // 3. c3 = sqrt(-1) -const ELL2_C4 = (Fp.ORDER - BigInt(5)) / BigInt(8); // 4. c4 = (q - 5) / 8 # Integer arithmetic -const ELL2_J = BigInt(486662); -// prettier-ignore -function map_to_curve_elligator2_curve25519(u) { - let tv1 = Fp.sqr(u); // 1. tv1 = u^2 - tv1 = Fp.mul(tv1, _2n); // 2. tv1 = 2 * tv1 - let xd = Fp.add(tv1, Fp.ONE); // 3. xd = tv1 + 1 # Nonzero: -1 is square (mod p), tv1 is not - let x1n = Fp.neg(ELL2_J); // 4. x1n = -J # x1 = x1n / xd = -J / (1 + 2 * u^2) - let tv2 = Fp.sqr(xd); // 5. tv2 = xd^2 - let gxd = Fp.mul(tv2, xd); // 6. gxd = tv2 * xd # gxd = xd^3 - let gx1 = Fp.mul(tv1, ELL2_J); // 7. gx1 = J * tv1 # x1n + J * xd - gx1 = Fp.mul(gx1, x1n); // 8. gx1 = gx1 * x1n # x1n^2 + J * x1n * xd - gx1 = Fp.add(gx1, tv2); // 9. gx1 = gx1 + tv2 # x1n^2 + J * x1n * xd + xd^2 - gx1 = Fp.mul(gx1, x1n); // 10. gx1 = gx1 * x1n # x1n^3 + J * x1n^2 * xd + x1n * xd^2 - let tv3 = Fp.sqr(gxd); // 11. tv3 = gxd^2 - tv2 = Fp.sqr(tv3); // 12. tv2 = tv3^2 # gxd^4 - tv3 = Fp.mul(tv3, gxd); // 13. tv3 = tv3 * gxd # gxd^3 - tv3 = Fp.mul(tv3, gx1); // 14. tv3 = tv3 * gx1 # gx1 * gxd^3 - tv2 = Fp.mul(tv2, tv3); // 15. tv2 = tv2 * tv3 # gx1 * gxd^7 - let y11 = Fp.pow(tv2, ELL2_C4); // 16. y11 = tv2^c4 # (gx1 * gxd^7)^((p - 5) / 8) - y11 = Fp.mul(y11, tv3); // 17. y11 = y11 * tv3 # gx1*gxd^3*(gx1*gxd^7)^((p-5)/8) - let y12 = Fp.mul(y11, ELL2_C3); // 18. y12 = y11 * c3 - tv2 = Fp.sqr(y11); // 19. tv2 = y11^2 - tv2 = Fp.mul(tv2, gxd); // 20. tv2 = tv2 * gxd - let e1 = Fp.eql(tv2, gx1); // 21. e1 = tv2 == gx1 - let y1 = Fp.cmov(y12, y11, e1); // 22. y1 = CMOV(y12, y11, e1) # If g(x1) is square, this is its sqrt - let x2n = Fp.mul(x1n, tv1); // 23. x2n = x1n * tv1 # x2 = x2n / xd = 2 * u^2 * x1n / xd - let y21 = Fp.mul(y11, u); // 24. y21 = y11 * u - y21 = Fp.mul(y21, ELL2_C2); // 25. y21 = y21 * c2 - let y22 = Fp.mul(y21, ELL2_C3); // 26. y22 = y21 * c3 - let gx2 = Fp.mul(gx1, tv1); // 27. gx2 = gx1 * tv1 # g(x2) = gx2 / gxd = 2 * u^2 * g(x1) - tv2 = Fp.sqr(y21); // 28. tv2 = y21^2 - tv2 = Fp.mul(tv2, gxd); // 29. tv2 = tv2 * gxd - let e2 = Fp.eql(tv2, gx2); // 30. e2 = tv2 == gx2 - let y2 = Fp.cmov(y22, y21, e2); // 31. y2 = CMOV(y22, y21, e2) # If g(x2) is square, this is its sqrt - tv2 = Fp.sqr(y1); // 32. tv2 = y1^2 - tv2 = Fp.mul(tv2, gxd); // 33. tv2 = tv2 * gxd - let e3 = Fp.eql(tv2, gx1); // 34. e3 = tv2 == gx1 - let xn = Fp.cmov(x2n, x1n, e3); // 35. xn = CMOV(x2n, x1n, e3) # If e3, x = x1, else x = x2 - let y = Fp.cmov(y2, y1, e3); // 36. y = CMOV(y2, y1, e3) # If e3, y = y1, else y = y2 - let e4 = Fp.isOdd(y); // 37. e4 = sgn0(y) == 1 # Fix sign of y - y = Fp.cmov(y, Fp.neg(y), e3 !== e4); // 38. y = CMOV(y, -y, e3 XOR e4) - return { xMn: xn, xMd: xd, yMn: y, yMd: _1n }; // 39. return (xn, xd, y, 1) -} -const ELL2_C1_EDWARDS = (0, modular_js_1.FpSqrtEven)(Fp, Fp.neg(BigInt(486664))); // sgn0(c1) MUST equal 0 -function map_to_curve_elligator2_edwards25519(u) { - const { xMn, xMd, yMn, yMd } = map_to_curve_elligator2_curve25519(u); // 1. (xMn, xMd, yMn, yMd) = - // map_to_curve_elligator2_curve25519(u) - let xn = Fp.mul(xMn, yMd); // 2. xn = xMn * yMd - xn = Fp.mul(xn, ELL2_C1_EDWARDS); // 3. xn = xn * c1 - let xd = Fp.mul(xMd, yMn); // 4. xd = xMd * yMn # xn / xd = c1 * xM / yM - let yn = Fp.sub(xMn, xMd); // 5. yn = xMn - xMd - let yd = Fp.add(xMn, xMd); // 6. yd = xMn + xMd # (n / d - 1) / (n / d + 1) = (n - d) / (n + d) - let tv1 = Fp.mul(xd, yd); // 7. tv1 = xd * yd - let e = Fp.eql(tv1, Fp.ZERO); // 8. e = tv1 == 0 - xn = Fp.cmov(xn, Fp.ZERO, e); // 9. xn = CMOV(xn, 0, e) - xd = Fp.cmov(xd, Fp.ONE, e); // 10. xd = CMOV(xd, 1, e) - yn = Fp.cmov(yn, Fp.ONE, e); // 11. yn = CMOV(yn, 1, e) - yd = Fp.cmov(yd, Fp.ONE, e); // 12. yd = CMOV(yd, 1, e) - const inv = Fp.invertBatch([xd, yd]); // batch division - return { x: Fp.mul(xn, inv[0]), y: Fp.mul(yn, inv[1]) }; // 13. return (xn, xd, yn, yd) -} -const htf = /* @__PURE__ */ (() => (0, hash_to_curve_js_1.createHasher)(exports.ed25519.ExtendedPoint, (scalars) => map_to_curve_elligator2_edwards25519(scalars[0]), { - DST: 'edwards25519_XMD:SHA-512_ELL2_RO_', - encodeDST: 'edwards25519_XMD:SHA-512_ELL2_NU_', - p: Fp.ORDER, - m: 1, - k: 128, - expand: 'xmd', - hash: sha512_1.sha512, -}))(); -exports.hashToCurve = (() => htf.hashToCurve)(); -exports.encodeToCurve = (() => htf.encodeToCurve)(); -function assertRstPoint(other) { - if (!(other instanceof RistPoint)) - throw new Error('RistrettoPoint expected'); -} -// √(-1) aka √(a) aka 2^((p-1)/4) -const SQRT_M1 = ED25519_SQRT_M1; -// √(ad - 1) -const SQRT_AD_MINUS_ONE = BigInt('25063068953384623474111414158702152701244531502492656460079210482610430750235'); -// 1 / √(a-d) -const INVSQRT_A_MINUS_D = BigInt('54469307008909316920995813868745141605393597292927456921205312896311721017578'); -// 1-d² -const ONE_MINUS_D_SQ = BigInt('1159843021668779879193775521855586647937357759715417654439879720876111806838'); -// (d-1)² -const D_MINUS_ONE_SQ = BigInt('40440834346308536858101042469323190826248399146238708352240133220865137265952'); -// Calculates 1/√(number) -const invertSqrt = (number) => uvRatio(_1n, number); -const MAX_255B = BigInt('0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff'); -const bytes255ToNumberLE = (bytes) => exports.ed25519.CURVE.Fp.create((0, utils_js_1.bytesToNumberLE)(bytes) & MAX_255B); -// Computes Elligator map for Ristretto -// https://ristretto.group/formulas/elligator.html -function calcElligatorRistrettoMap(r0) { - const { d } = exports.ed25519.CURVE; - const P = exports.ed25519.CURVE.Fp.ORDER; - const mod = exports.ed25519.CURVE.Fp.create; - const r = mod(SQRT_M1 * r0 * r0); // 1 - const Ns = mod((r + _1n) * ONE_MINUS_D_SQ); // 2 - let c = BigInt(-1); // 3 - const D = mod((c - d * r) * mod(r + d)); // 4 - let { isValid: Ns_D_is_sq, value: s } = uvRatio(Ns, D); // 5 - let s_ = mod(s * r0); // 6 - if (!(0, modular_js_1.isNegativeLE)(s_, P)) - s_ = mod(-s_); - if (!Ns_D_is_sq) - s = s_; // 7 - if (!Ns_D_is_sq) - c = r; // 8 - const Nt = mod(c * (r - _1n) * D_MINUS_ONE_SQ - D); // 9 - const s2 = s * s; - const W0 = mod((s + s) * D); // 10 - const W1 = mod(Nt * SQRT_AD_MINUS_ONE); // 11 - const W2 = mod(_1n - s2); // 12 - const W3 = mod(_1n + s2); // 13 - return new exports.ed25519.ExtendedPoint(mod(W0 * W3), mod(W2 * W1), mod(W1 * W3), mod(W0 * W2)); -} -/** - * Each ed25519/ExtendedPoint has 8 different equivalent points. This can be - * a source of bugs for protocols like ring signatures. Ristretto was created to solve this. - * Ristretto point operates in X:Y:Z:T extended coordinates like ExtendedPoint, - * but it should work in its own namespace: do not combine those two. - * https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-ristretto255-decaf448 - */ -class RistPoint { - // Private property to discourage combining ExtendedPoint + RistrettoPoint - // Always use Ristretto encoding/decoding instead. - constructor(ep) { - this.ep = ep; - } - static fromAffine(ap) { - return new RistPoint(exports.ed25519.ExtendedPoint.fromAffine(ap)); - } - /** - * Takes uniform output of 64-byte hash function like sha512 and converts it to `RistrettoPoint`. - * The hash-to-group operation applies Elligator twice and adds the results. - * **Note:** this is one-way map, there is no conversion from point to hash. - * https://ristretto.group/formulas/elligator.html - * @param hex 64-byte output of a hash function - */ - static hashToCurve(hex) { - hex = (0, utils_js_1.ensureBytes)('ristrettoHash', hex, 64); - const r1 = bytes255ToNumberLE(hex.slice(0, 32)); - const R1 = calcElligatorRistrettoMap(r1); - const r2 = bytes255ToNumberLE(hex.slice(32, 64)); - const R2 = calcElligatorRistrettoMap(r2); - return new RistPoint(R1.add(R2)); - } - /** - * Converts ristretto-encoded string to ristretto point. - * https://ristretto.group/formulas/decoding.html - * @param hex Ristretto-encoded 32 bytes. Not every 32-byte string is valid ristretto encoding - */ - static fromHex(hex) { - hex = (0, utils_js_1.ensureBytes)('ristrettoHex', hex, 32); - const { a, d } = exports.ed25519.CURVE; - const P = exports.ed25519.CURVE.Fp.ORDER; - const mod = exports.ed25519.CURVE.Fp.create; - const emsg = 'RistrettoPoint.fromHex: the hex is not valid encoding of RistrettoPoint'; - const s = bytes255ToNumberLE(hex); - // 1. Check that s_bytes is the canonical encoding of a field element, or else abort. - // 3. Check that s is non-negative, or else abort - if (!(0, utils_js_1.equalBytes)((0, utils_js_1.numberToBytesLE)(s, 32), hex) || (0, modular_js_1.isNegativeLE)(s, P)) - throw new Error(emsg); - const s2 = mod(s * s); - const u1 = mod(_1n + a * s2); // 4 (a is -1) - const u2 = mod(_1n - a * s2); // 5 - const u1_2 = mod(u1 * u1); - const u2_2 = mod(u2 * u2); - const v = mod(a * d * u1_2 - u2_2); // 6 - const { isValid, value: I } = invertSqrt(mod(v * u2_2)); // 7 - const Dx = mod(I * u2); // 8 - const Dy = mod(I * Dx * v); // 9 - let x = mod((s + s) * Dx); // 10 - if ((0, modular_js_1.isNegativeLE)(x, P)) - x = mod(-x); // 10 - const y = mod(u1 * Dy); // 11 - const t = mod(x * y); // 12 - if (!isValid || (0, modular_js_1.isNegativeLE)(t, P) || y === _0n) - throw new Error(emsg); - return new RistPoint(new exports.ed25519.ExtendedPoint(x, y, _1n, t)); - } - /** - * Encodes ristretto point to Uint8Array. - * https://ristretto.group/formulas/encoding.html - */ - toRawBytes() { - let { ex: x, ey: y, ez: z, et: t } = this.ep; - const P = exports.ed25519.CURVE.Fp.ORDER; - const mod = exports.ed25519.CURVE.Fp.create; - const u1 = mod(mod(z + y) * mod(z - y)); // 1 - const u2 = mod(x * y); // 2 - // Square root always exists - const u2sq = mod(u2 * u2); - const { value: invsqrt } = invertSqrt(mod(u1 * u2sq)); // 3 - const D1 = mod(invsqrt * u1); // 4 - const D2 = mod(invsqrt * u2); // 5 - const zInv = mod(D1 * D2 * t); // 6 - let D; // 7 - if ((0, modular_js_1.isNegativeLE)(t * zInv, P)) { - let _x = mod(y * SQRT_M1); - let _y = mod(x * SQRT_M1); - x = _x; - y = _y; - D = mod(D1 * INVSQRT_A_MINUS_D); - } - else { - D = D2; // 8 - } - if ((0, modular_js_1.isNegativeLE)(x * zInv, P)) - y = mod(-y); // 9 - let s = mod((z - y) * D); // 10 (check footer's note, no sqrt(-a)) - if ((0, modular_js_1.isNegativeLE)(s, P)) - s = mod(-s); - return (0, utils_js_1.numberToBytesLE)(s, 32); // 11 - } - toHex() { - return (0, utils_js_1.bytesToHex)(this.toRawBytes()); - } - toString() { - return this.toHex(); - } - // Compare one point to another. - equals(other) { - assertRstPoint(other); - const { ex: X1, ey: Y1 } = this.ep; - const { ex: X2, ey: Y2 } = other.ep; - const mod = exports.ed25519.CURVE.Fp.create; - // (x1 * y2 == y1 * x2) | (y1 * y2 == x1 * x2) - const one = mod(X1 * Y2) === mod(Y1 * X2); - const two = mod(Y1 * Y2) === mod(X1 * X2); - return one || two; - } - add(other) { - assertRstPoint(other); - return new RistPoint(this.ep.add(other.ep)); - } - subtract(other) { - assertRstPoint(other); - return new RistPoint(this.ep.subtract(other.ep)); - } - multiply(scalar) { - return new RistPoint(this.ep.multiply(scalar)); - } - multiplyUnsafe(scalar) { - return new RistPoint(this.ep.multiplyUnsafe(scalar)); - } -} -exports.RistrettoPoint = (() => { - if (!RistPoint.BASE) - RistPoint.BASE = new RistPoint(exports.ed25519.ExtendedPoint.BASE); - if (!RistPoint.ZERO) - RistPoint.ZERO = new RistPoint(exports.ed25519.ExtendedPoint.ZERO); - return RistPoint; -})(); -// https://datatracker.ietf.org/doc/draft-irtf-cfrg-hash-to-curve/14/ -// Appendix B. Hashing to ristretto255 -const hash_to_ristretto255 = (msg, options) => { - const d = options.DST; - const DST = typeof d === 'string' ? (0, utils_1.utf8ToBytes)(d) : d; - const uniform_bytes = (0, hash_to_curve_js_1.expand_message_xmd)(msg, DST, 64, sha512_1.sha512); - const P = RistPoint.hashToCurve(uniform_bytes); - return P; -}; -exports.hash_to_ristretto255 = hash_to_ristretto255; -//# sourceMappingURL=ed25519.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/ed25519.js.map b/node_modules/@noble/curves/ed25519.js.map deleted file mode 100644 index fb5b5232..00000000 --- a/node_modules/@noble/curves/ed25519.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ed25519.js","sourceRoot":"","sources":["src/ed25519.ts"],"names":[],"mappings":";;;AAAA,sEAAsE;AACtE,iDAA8C;AAC9C,+CAA4E;AAC5E,sDAAqE;AACrE,4DAAsD;AACtD,sDAAmF;AACnF,kDAO6B;AAC7B,kEAA6F;AAG7F;;;;;GAKG;AAEH,MAAM,SAAS,GAAG,MAAM,CACtB,+EAA+E,CAChF,CAAC;AACF,iCAAiC;AACjC,MAAM,eAAe,GAAG,MAAM,CAC5B,+EAA+E,CAChF,CAAC;AAEF,kBAAkB;AAClB,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,EAAE,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,EAAE,GAAG,GA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CAAC,GAAG,CAAC;IACtB,MAAM,GAAG,GAAG,OAAO,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC,IAAA,mBAAW,EAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACvD,MAAM,aAAa,GAAG,IAAA,qCAAkB,EAAC,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,eAAM,CAAC,CAAC;IAC/D,MAAM,CAAC,GAAG,SAAS,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC;IAC/C,OAAO,CAAC,CAAC;AACX,CAAC,CAAC;AANW,QAAA,oBAAoB,wBAM/B"} \ No newline at end of file diff --git a/node_modules/@noble/curves/ed448.d.ts b/node_modules/@noble/curves/ed448.d.ts deleted file mode 100644 index c6e8068e..00000000 --- a/node_modules/@noble/curves/ed448.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -export declare const ed448: import("./abstract/edwards.js").CurveFn; -export declare const ed448ph: import("./abstract/edwards.js").CurveFn; -export declare const x448: import("./abstract/montgomery.js").CurveFn; -/** - * Converts edwards448 public key to x448 public key. Uses formula: - * * `(u, v) = ((y-1)/(y+1), sqrt(156324)*u/x)` - * * `(x, y) = (sqrt(156324)*u/v, (1+u)/(1-u))` - * @example - * const aPub = ed448.getPublicKey(utils.randomPrivateKey()); - * x448.getSharedSecret(edwardsToMontgomery(aPub), edwardsToMontgomery(someonesPub)) - */ -export declare function edwardsToMontgomeryPub(edwardsPub: string | Uint8Array): Uint8Array; -export declare const edwardsToMontgomery: typeof edwardsToMontgomeryPub; -export declare const hashToCurve: (msg: Uint8Array, options?: import("./abstract/hash-to-curve.js").htfBasicOpts | undefined) => import("./abstract/hash-to-curve.js").H2CPoint; -export declare const encodeToCurve: (msg: Uint8Array, options?: import("./abstract/hash-to-curve.js").htfBasicOpts | undefined) => import("./abstract/hash-to-curve.js").H2CPoint; -//# sourceMappingURL=ed448.d.ts.map \ No newline at end of file diff --git a/node_modules/@noble/curves/ed448.d.ts.map b/node_modules/@noble/curves/ed448.d.ts.map deleted file mode 100644 index 93b9d92a..00000000 --- a/node_modules/@noble/curves/ed448.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ed448.d.ts","sourceRoot":"","sources":["src/ed448.ts"],"names":[],"mappings":"AAwHA,eAAO,MAAM,KAAK,yCAA4B,CAAC;AAE/C,eAAO,MAAM,OAAO,yCAAyD,CAAC;AAE9E,eAAO,MAAM,IAAI,4CAeV,CAAC;AAER;;;;;;;GAOG;AACH,wBAAgB,sBAAsB,CAAC,UAAU,EAAE,MAAM,GAAG,UAAU,GAAG,UAAU,CAIlF;AACD,eAAO,MAAM,mBAAmB,+BAAyB,CAAC;AA2F1D,eAAO,MAAM,WAAW,uJAA4C,CAAC;AACrE,eAAO,MAAM,aAAa,uJAA8C,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/ed448.js b/node_modules/@noble/curves/ed448.js deleted file mode 100644 index 5d08fc37..00000000 --- a/node_modules/@noble/curves/ed448.js +++ /dev/null @@ -1,219 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.encodeToCurve = exports.hashToCurve = exports.edwardsToMontgomery = exports.edwardsToMontgomeryPub = exports.x448 = exports.ed448ph = exports.ed448 = void 0; -/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */ -const sha3_1 = require("@noble/hashes/sha3"); -const utils_1 = require("@noble/hashes/utils"); -const edwards_js_1 = require("./abstract/edwards.js"); -const modular_js_1 = require("./abstract/modular.js"); -const montgomery_js_1 = require("./abstract/montgomery.js"); -const hash_to_curve_js_1 = require("./abstract/hash-to-curve.js"); -/** - * Edwards448 (not Ed448-Goldilocks) curve with following addons: - * * X448 ECDH - * Conforms to RFC 8032 https://www.rfc-editor.org/rfc/rfc8032.html#section-5.2 - */ -const shake256_114 = (0, utils_1.wrapConstructor)(() => sha3_1.shake256.create({ dkLen: 114 })); -const shake256_64 = (0, utils_1.wrapConstructor)(() => sha3_1.shake256.create({ dkLen: 64 })); -const ed448P = BigInt('726838724295606890549323807888004534353641360687318060281490199180612328166730772686396383698676545930088884461843637361053498018365439'); -// powPminus3div4 calculates z = x^k mod p, where k = (p-3)/4. -// Used for efficient square root calculation. -// ((P-3)/4).toString(2) would produce bits [223x 1, 0, 222x 1] -function ed448_pow_Pminus3div4(x) { - const P = ed448P; - // prettier-ignore - const _1n = BigInt(1), _2n = BigInt(2), _3n = BigInt(3), _11n = BigInt(11); - // prettier-ignore - const _22n = BigInt(22), _44n = BigInt(44), _88n = BigInt(88), _223n = BigInt(223); - const b2 = (x * x * x) % P; - const b3 = (b2 * b2 * x) % P; - const b6 = ((0, modular_js_1.pow2)(b3, _3n, P) * b3) % P; - const b9 = ((0, modular_js_1.pow2)(b6, _3n, P) * b3) % P; - const b11 = ((0, modular_js_1.pow2)(b9, _2n, P) * b2) % P; - const b22 = ((0, modular_js_1.pow2)(b11, _11n, P) * b11) % P; - const b44 = ((0, modular_js_1.pow2)(b22, _22n, P) * b22) % P; - const b88 = ((0, modular_js_1.pow2)(b44, _44n, P) * b44) % P; - const b176 = ((0, modular_js_1.pow2)(b88, _88n, P) * b88) % P; - const b220 = ((0, modular_js_1.pow2)(b176, _44n, P) * b44) % P; - const b222 = ((0, modular_js_1.pow2)(b220, _2n, P) * b2) % P; - const b223 = ((0, modular_js_1.pow2)(b222, _1n, P) * x) % P; - return ((0, modular_js_1.pow2)(b223, _223n, P) * b222) % P; -} -function adjustScalarBytes(bytes) { - // Section 5: Likewise, for X448, set the two least significant bits of the first byte to 0, and the most - // significant bit of the last byte to 1. - bytes[0] &= 252; // 0b11111100 - // and the most significant bit of the last byte to 1. - bytes[55] |= 128; // 0b10000000 - // NOTE: is is NOOP for 56 bytes scalars (X25519/X448) - bytes[56] = 0; // Byte outside of group (456 buts vs 448 bits) - return bytes; -} -const Fp = (0, modular_js_1.Field)(ed448P, 456, true); -const _4n = BigInt(4); -const ED448_DEF = { - // Param: a - a: BigInt(1), - // -39081. Negative number is P - number - d: BigInt('726838724295606890549323807888004534353641360687318060281490199180612328166730772686396383698676545930088884461843637361053498018326358'), - // Finite field 𝔽p over which we'll do calculations; 2n**448n - 2n**224n - 1n - Fp, - // Subgroup order: how many points curve has; - // 2n**446n - 13818066809895115352007386748515426880336692474882178609894547503885n - n: BigInt('181709681073901722637330951972001133588410340171829515070372549795146003961539585716195755291692375963310293709091662304773755859649779'), - nBitLength: 456, - // Cofactor - h: BigInt(4), - // Base point (x, y) aka generator point - Gx: BigInt('224580040295924300187604334099896036246789641632564134246125461686950415467406032909029192869357953282578032075146446173674602635247710'), - Gy: BigInt('298819210078481492676017930443930673437544040154080242095928241372331506189835876003536878655418784733982303233503462500531545062832660'), - // SHAKE256(dom4(phflag,context)||x, 114) - hash: shake256_114, - randomBytes: utils_1.randomBytes, - adjustScalarBytes, - // dom4 - domain: (data, ctx, phflag) => { - if (ctx.length > 255) - throw new Error(`Context is too big: ${ctx.length}`); - return (0, utils_1.concatBytes)((0, utils_1.utf8ToBytes)('SigEd448'), new Uint8Array([phflag ? 1 : 0, ctx.length]), ctx, data); - }, - // Constant-time ratio of u to v. Allows to combine inversion and square root u/√v. - // Uses algo from RFC8032 5.1.3. - uvRatio: (u, v) => { - const P = ed448P; - // https://datatracker.ietf.org/doc/html/rfc8032#section-5.2.3 - // To compute the square root of (u/v), the first step is to compute the - // candidate root x = (u/v)^((p+1)/4). This can be done using the - // following trick, to use a single modular powering for both the - // inversion of v and the square root: - // x = (u/v)^((p+1)/4) = u³v(u⁵v³)^((p-3)/4) (mod p) - const u2v = (0, modular_js_1.mod)(u * u * v, P); // u²v - const u3v = (0, modular_js_1.mod)(u2v * u, P); // u³v - const u5v3 = (0, modular_js_1.mod)(u3v * u2v * v, P); // u⁵v³ - const root = ed448_pow_Pminus3div4(u5v3); - const x = (0, modular_js_1.mod)(u3v * root, P); - // Verify that root is exists - const x2 = (0, modular_js_1.mod)(x * x, P); // x² - // If vx² = u, the recovered x-coordinate is x. Otherwise, no - // square root exists, and the decoding fails. - return { isValid: (0, modular_js_1.mod)(x2 * v, P) === u, value: x }; - }, -}; -exports.ed448 = (0, edwards_js_1.twistedEdwards)(ED448_DEF); -// NOTE: there is no ed448ctx, since ed448 supports ctx by default -exports.ed448ph = (0, edwards_js_1.twistedEdwards)({ ...ED448_DEF, prehash: shake256_64 }); -exports.x448 = (() => (0, montgomery_js_1.montgomery)({ - a: BigInt(156326), - montgomeryBits: 448, - nByteLength: 57, - P: ed448P, - Gu: BigInt(5), - powPminus2: (x) => { - const P = ed448P; - const Pminus3div4 = ed448_pow_Pminus3div4(x); - const Pminus3 = (0, modular_js_1.pow2)(Pminus3div4, BigInt(2), P); - return (0, modular_js_1.mod)(Pminus3 * x, P); // Pminus3 * x = Pminus2 - }, - adjustScalarBytes, - randomBytes: utils_1.randomBytes, -}))(); -/** - * Converts edwards448 public key to x448 public key. Uses formula: - * * `(u, v) = ((y-1)/(y+1), sqrt(156324)*u/x)` - * * `(x, y) = (sqrt(156324)*u/v, (1+u)/(1-u))` - * @example - * const aPub = ed448.getPublicKey(utils.randomPrivateKey()); - * x448.getSharedSecret(edwardsToMontgomery(aPub), edwardsToMontgomery(someonesPub)) - */ -function edwardsToMontgomeryPub(edwardsPub) { - const { y } = exports.ed448.ExtendedPoint.fromHex(edwardsPub); - const _1n = BigInt(1); - return Fp.toBytes(Fp.create((y - _1n) * Fp.inv(y + _1n))); -} -exports.edwardsToMontgomeryPub = edwardsToMontgomeryPub; -exports.edwardsToMontgomery = edwardsToMontgomeryPub; // deprecated -// Hash To Curve Elligator2 Map -const ELL2_C1 = (Fp.ORDER - BigInt(3)) / BigInt(4); // 1. c1 = (q - 3) / 4 # Integer arithmetic -const ELL2_J = BigInt(156326); -function map_to_curve_elligator2_curve448(u) { - let tv1 = Fp.sqr(u); // 1. tv1 = u^2 - let e1 = Fp.eql(tv1, Fp.ONE); // 2. e1 = tv1 == 1 - tv1 = Fp.cmov(tv1, Fp.ZERO, e1); // 3. tv1 = CMOV(tv1, 0, e1) # If Z * u^2 == -1, set tv1 = 0 - let xd = Fp.sub(Fp.ONE, tv1); // 4. xd = 1 - tv1 - let x1n = Fp.neg(ELL2_J); // 5. x1n = -J - let tv2 = Fp.sqr(xd); // 6. tv2 = xd^2 - let gxd = Fp.mul(tv2, xd); // 7. gxd = tv2 * xd # gxd = xd^3 - let gx1 = Fp.mul(tv1, Fp.neg(ELL2_J)); // 8. gx1 = -J * tv1 # x1n + J * xd - gx1 = Fp.mul(gx1, x1n); // 9. gx1 = gx1 * x1n # x1n^2 + J * x1n * xd - gx1 = Fp.add(gx1, tv2); // 10. gx1 = gx1 + tv2 # x1n^2 + J * x1n * xd + xd^2 - gx1 = Fp.mul(gx1, x1n); // 11. gx1 = gx1 * x1n # x1n^3 + J * x1n^2 * xd + x1n * xd^2 - let tv3 = Fp.sqr(gxd); // 12. tv3 = gxd^2 - tv2 = Fp.mul(gx1, gxd); // 13. tv2 = gx1 * gxd # gx1 * gxd - tv3 = Fp.mul(tv3, tv2); // 14. tv3 = tv3 * tv2 # gx1 * gxd^3 - let y1 = Fp.pow(tv3, ELL2_C1); // 15. y1 = tv3^c1 # (gx1 * gxd^3)^((p - 3) / 4) - y1 = Fp.mul(y1, tv2); // 16. y1 = y1 * tv2 # gx1 * gxd * (gx1 * gxd^3)^((p - 3) / 4) - let x2n = Fp.mul(x1n, Fp.neg(tv1)); // 17. x2n = -tv1 * x1n # x2 = x2n / xd = -1 * u^2 * x1n / xd - let y2 = Fp.mul(y1, u); // 18. y2 = y1 * u - y2 = Fp.cmov(y2, Fp.ZERO, e1); // 19. y2 = CMOV(y2, 0, e1) - tv2 = Fp.sqr(y1); // 20. tv2 = y1^2 - tv2 = Fp.mul(tv2, gxd); // 21. tv2 = tv2 * gxd - let e2 = Fp.eql(tv2, gx1); // 22. e2 = tv2 == gx1 - let xn = Fp.cmov(x2n, x1n, e2); // 23. xn = CMOV(x2n, x1n, e2) # If e2, x = x1, else x = x2 - let y = Fp.cmov(y2, y1, e2); // 24. y = CMOV(y2, y1, e2) # If e2, y = y1, else y = y2 - let e3 = Fp.isOdd(y); // 25. e3 = sgn0(y) == 1 # Fix sign of y - y = Fp.cmov(y, Fp.neg(y), e2 !== e3); // 26. y = CMOV(y, -y, e2 XOR e3) - return { xn, xd, yn: y, yd: Fp.ONE }; // 27. return (xn, xd, y, 1) -} -function map_to_curve_elligator2_edwards448(u) { - let { xn, xd, yn, yd } = map_to_curve_elligator2_curve448(u); // 1. (xn, xd, yn, yd) = map_to_curve_elligator2_curve448(u) - let xn2 = Fp.sqr(xn); // 2. xn2 = xn^2 - let xd2 = Fp.sqr(xd); // 3. xd2 = xd^2 - let xd4 = Fp.sqr(xd2); // 4. xd4 = xd2^2 - let yn2 = Fp.sqr(yn); // 5. yn2 = yn^2 - let yd2 = Fp.sqr(yd); // 6. yd2 = yd^2 - let xEn = Fp.sub(xn2, xd2); // 7. xEn = xn2 - xd2 - let tv2 = Fp.sub(xEn, xd2); // 8. tv2 = xEn - xd2 - xEn = Fp.mul(xEn, xd2); // 9. xEn = xEn * xd2 - xEn = Fp.mul(xEn, yd); // 10. xEn = xEn * yd - xEn = Fp.mul(xEn, yn); // 11. xEn = xEn * yn - xEn = Fp.mul(xEn, _4n); // 12. xEn = xEn * 4 - tv2 = Fp.mul(tv2, xn2); // 13. tv2 = tv2 * xn2 - tv2 = Fp.mul(tv2, yd2); // 14. tv2 = tv2 * yd2 - let tv3 = Fp.mul(yn2, _4n); // 15. tv3 = 4 * yn2 - let tv1 = Fp.add(tv3, yd2); // 16. tv1 = tv3 + yd2 - tv1 = Fp.mul(tv1, xd4); // 17. tv1 = tv1 * xd4 - let xEd = Fp.add(tv1, tv2); // 18. xEd = tv1 + tv2 - tv2 = Fp.mul(tv2, xn); // 19. tv2 = tv2 * xn - let tv4 = Fp.mul(xn, xd4); // 20. tv4 = xn * xd4 - let yEn = Fp.sub(tv3, yd2); // 21. yEn = tv3 - yd2 - yEn = Fp.mul(yEn, tv4); // 22. yEn = yEn * tv4 - yEn = Fp.sub(yEn, tv2); // 23. yEn = yEn - tv2 - tv1 = Fp.add(xn2, xd2); // 24. tv1 = xn2 + xd2 - tv1 = Fp.mul(tv1, xd2); // 25. tv1 = tv1 * xd2 - tv1 = Fp.mul(tv1, xd); // 26. tv1 = tv1 * xd - tv1 = Fp.mul(tv1, yn2); // 27. tv1 = tv1 * yn2 - tv1 = Fp.mul(tv1, BigInt(-2)); // 28. tv1 = -2 * tv1 - let yEd = Fp.add(tv2, tv1); // 29. yEd = tv2 + tv1 - tv4 = Fp.mul(tv4, yd2); // 30. tv4 = tv4 * yd2 - yEd = Fp.add(yEd, tv4); // 31. yEd = yEd + tv4 - tv1 = Fp.mul(xEd, yEd); // 32. tv1 = xEd * yEd - let e = Fp.eql(tv1, Fp.ZERO); // 33. e = tv1 == 0 - xEn = Fp.cmov(xEn, Fp.ZERO, e); // 34. xEn = CMOV(xEn, 0, e) - xEd = Fp.cmov(xEd, Fp.ONE, e); // 35. xEd = CMOV(xEd, 1, e) - yEn = Fp.cmov(yEn, Fp.ONE, e); // 36. yEn = CMOV(yEn, 1, e) - yEd = Fp.cmov(yEd, Fp.ONE, e); // 37. yEd = CMOV(yEd, 1, e) - const inv = Fp.invertBatch([xEd, yEd]); // batch division - return { x: Fp.mul(xEn, inv[0]), y: Fp.mul(yEn, inv[1]) }; // 38. return (xEn, xEd, yEn, yEd) -} -const htf = /* @__PURE__ */ (() => (0, hash_to_curve_js_1.createHasher)(exports.ed448.ExtendedPoint, (scalars) => map_to_curve_elligator2_edwards448(scalars[0]), { - DST: 'edwards448_XOF:SHAKE256_ELL2_RO_', - encodeDST: 'edwards448_XOF:SHAKE256_ELL2_NU_', - p: Fp.ORDER, - m: 1, - k: 224, - expand: 'xof', - hash: sha3_1.shake256, -}))(); -exports.hashToCurve = (() => htf.hashToCurve)(); -exports.encodeToCurve = (() => htf.encodeToCurve)(); -//# sourceMappingURL=ed448.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/ed448.js.map b/node_modules/@noble/curves/ed448.js.map deleted file mode 100644 index b3956e28..00000000 --- a/node_modules/@noble/curves/ed448.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ed448.js","sourceRoot":"","sources":["src/ed448.ts"],"names":[],"mappings":";;;AAAA,sEAAsE;AACtE,6CAA8C;AAC9C,+CAA6F;AAC7F,sDAAuD;AACvD,sDAAyD;AACzD,4DAAsD;AACtD,kEAA2D;AAE3D;;;;GAIG;AAEH,MAAM,YAAY,GAAG,IAAA,uBAAe,EAAC,GAAG,EAAE,CAAC,eAAQ,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC;AAC5E,MAAM,WAAW,GAAG,IAAA,uBAAe,EAAC,GAAG,EAAE,CAAC,eAAQ,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC;AAC1E,MAAM,MAAM,GAAG,MAAM,CACnB,yIAAyI,CAC1I,CAAC;AAEF,8DAA8D;AAC9D,8CAA8C;AAC9C,+DAA+D;AAC/D,SAAS,qBAAqB,CAAC,CAAS;IACtC,MAAM,CAAC,GAAG,MAAM,CAAC;IACjB,kBAAkB;IAClB,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,EAAE,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,EAAE,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC,EAAE,CAAC,CAAC;IAC3E,kBAAkB;IAClB,MAAM,IAAI,GAAG,MAAM,CAAC,EAAE,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC,EAAE,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC,EAAE,CAAC,EAAE,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;IACnF,MAAM,EAAE,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC;IAC3B,MAAM,EAAE,GAAG,CAAC,EAA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AG,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC,4BAA4B;IAC3D,GAAG,GAAG,EAAE,CAAC,IAAI,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,CAAC,CAAC,4BAA4B;IAE3D,MAAM,GAAG,GAAG,EAAE,CAAC,WAAW,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,iBAAiB;IACzD,OAAO,EAAE,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,GAAG,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,kCAAkC;AAC/F,CAAC;AAED,MAAM,GAAG,GAAG,eAAe,CAAC,CAAC,GAAG,EAAE,CAChC,IAAA,+BAAY,EACV,aAAK,CAAC,aAAa,EACnB,CAAC,OAAiB,EAAE,EAAE,CAAC,kCAAkC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EACrE;IACE,GAAG,EAAE,kCAAkC;IACvC,SAAS,EAAE,kCAAkC;IAC7C,CAAC,EAAE,EAAE,CAAC,KAAK;IACX,CAAC,EAAE,CAAC;IACJ,CAAC,EAAE,GAAG;IACN,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,eAAQ;CACf,CACF,CAAC,EAAE,CAAC;AACM,QAAA,WAAW,GAAmB,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,CAAC;AACxD,QAAA,aAAa,GAAmB,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,aAAa,CAAC,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/esm/_shortw_utils.js b/node_modules/@noble/curves/esm/_shortw_utils.js deleted file mode 100644 index cc93e458..00000000 --- a/node_modules/@noble/curves/esm/_shortw_utils.js +++ /dev/null @@ -1,17 +0,0 @@ -/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */ -import { hmac } from '@noble/hashes/hmac'; -import { concatBytes, randomBytes } from '@noble/hashes/utils'; -import { weierstrass } from './abstract/weierstrass.js'; -// connects noble-curves to noble-hashes -export function getHash(hash) { - return { - hash, - hmac: (key, ...msgs) => hmac(hash, key, concatBytes(...msgs)), - randomBytes, - }; -} -export function createCurve(curveDef, defHash) { - const create = (hash) => weierstrass({ ...curveDef, ...getHash(hash) }); - return Object.freeze({ ...create(defHash), create }); -} -//# sourceMappingURL=_shortw_utils.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/esm/_shortw_utils.js.map b/node_modules/@noble/curves/esm/_shortw_utils.js.map deleted file mode 100644 index 656ee45f..00000000 --- a/node_modules/@noble/curves/esm/_shortw_utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"_shortw_utils.js","sourceRoot":"","sources":["../src/_shortw_utils.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAC/D,OAAO,EAAE,WAAW,EAAa,MAAM,2BAA2B,CAAC;AAGnE,wCAAwC;AACxC,MAAM,UAAU,OAAO,CAAC,IAAW;IACjC,OAAO;QACL,IAAI;QACJ,IAAI,EAAE,CAAC,GAAe,EAAE,GAAG,IAAkB,EAAE,EAAE,CAAC,IAAI,CAAC,IAAI,EAAE,GAAG,EAAE,WAAW,CAAC,GAAG,IAAI,CAAC,CAAC;QACvF,WAAW;KACZ,CAAC;AACJ,CAAC;AAGD,MAAM,UAAU,WAAW,CAAC,QAAkB,EAAE,OAAc;IAC5D,MAAM,MAAM,GAAG,CAAC,IAAW,EAAE,EAAE,CAAC,WAAW,CAAC,EAAE,GAAG,QAAQ,EAAE,GAAG,OAAO,CAAC,IAAI,CAAC,EAAE,CAAC,CAAC;IAC/E,OAAO,MAAM,CAAC,MAAM,CAAC,EAAE,GAAG,MAAM,CAAC,OAAO,CAAC,EAAE,MAAM,EAAE,CAAC,CAAC;AACvD,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/esm/abstract/bls.js b/node_modules/@noble/curves/esm/abstract/bls.js deleted file mode 100644 index cbb3721e..00000000 --- a/node_modules/@noble/curves/esm/abstract/bls.js +++ /dev/null @@ -1,235 +0,0 @@ -import { hashToPrivateScalar } from './modular.js'; -import { bitLen, bitGet, ensureBytes } from './utils.js'; -import * as htf from './hash-to-curve.js'; -import { weierstrassPoints, } from './weierstrass.js'; -// prettier-ignore -const _2n = BigInt(2), _3n = BigInt(3); -export function bls(CURVE) { - // Fields are specific for curve, so for now we'll need to pass them with opts - const { Fp, Fr, Fp2, Fp6, Fp12 } = CURVE.fields; - const BLS_X_LEN = bitLen(CURVE.params.x); - const groupLen = 32; // TODO: calculate; hardcoded for now - // Pre-compute coefficients for sparse multiplication - // Point addition and point double calculations is reused for coefficients - function calcPairingPrecomputes(p) { - const { x, y } = p; - // prettier-ignore - const Qx = x, Qy = y, Qz = Fp2.ONE; - // prettier-ignore - let Rx = Qx, Ry = Qy, Rz = Qz; - let ell_coeff = []; - for (let i = BLS_X_LEN - 2; i >= 0; i--) { - // Double - let t0 = Fp2.sqr(Ry); // Ry² - let t1 = Fp2.sqr(Rz); // Rz² - let t2 = Fp2.multiplyByB(Fp2.mul(t1, _3n)); // 3 * T1 * B - let t3 = Fp2.mul(t2, _3n); // 3 * T2 - let t4 = Fp2.sub(Fp2.sub(Fp2.sqr(Fp2.add(Ry, Rz)), t1), t0); // (Ry + Rz)² - T1 - T0 - ell_coeff.push([ - Fp2.sub(t2, t0), - Fp2.mul(Fp2.sqr(Rx), _3n), - Fp2.neg(t4), // -T4 - ]); - Rx = Fp2.div(Fp2.mul(Fp2.mul(Fp2.sub(t0, t3), Rx), Ry), _2n); // ((T0 - T3) * Rx * Ry) / 2 - Ry = Fp2.sub(Fp2.sqr(Fp2.div(Fp2.add(t0, t3), _2n)), Fp2.mul(Fp2.sqr(t2), _3n)); // ((T0 + T3) / 2)² - 3 * T2² - Rz = Fp2.mul(t0, t4); // T0 * T4 - if (bitGet(CURVE.params.x, i)) { - // Addition - let t0 = Fp2.sub(Ry, Fp2.mul(Qy, Rz)); // Ry - Qy * Rz - let t1 = Fp2.sub(Rx, Fp2.mul(Qx, Rz)); // Rx - Qx * Rz - ell_coeff.push([ - Fp2.sub(Fp2.mul(t0, Qx), Fp2.mul(t1, Qy)), - Fp2.neg(t0), - t1, // T1 - ]); - let t2 = Fp2.sqr(t1); // T1² - let t3 = Fp2.mul(t2, t1); // T2 * T1 - let t4 = Fp2.mul(t2, Rx); // T2 * Rx - let t5 = Fp2.add(Fp2.sub(t3, Fp2.mul(t4, _2n)), Fp2.mul(Fp2.sqr(t0), Rz)); // T3 - 2 * T4 + T0² * Rz - Rx = Fp2.mul(t1, t5); // T1 * T5 - Ry = Fp2.sub(Fp2.mul(Fp2.sub(t4, t5), t0), Fp2.mul(t3, Ry)); // (T4 - T5) * T0 - T3 * Ry - Rz = Fp2.mul(Rz, t3); // Rz * T3 - } - } - return ell_coeff; - } - function millerLoop(ell, g1) { - const { x } = CURVE.params; - const Px = g1[0]; - const Py = g1[1]; - let f12 = Fp12.ONE; - for (let j = 0, i = BLS_X_LEN - 2; i >= 0; i--, j++) { - const E = ell[j]; - f12 = Fp12.multiplyBy014(f12, E[0], Fp2.mul(E[1], Px), Fp2.mul(E[2], Py)); - if (bitGet(x, i)) { - j += 1; - const F = ell[j]; - f12 = Fp12.multiplyBy014(f12, F[0], Fp2.mul(F[1], Px), Fp2.mul(F[2], Py)); - } - if (i !== 0) - f12 = Fp12.sqr(f12); - } - return Fp12.conjugate(f12); - } - const utils = { - randomPrivateKey: () => { - return Fr.toBytes(hashToPrivateScalar(CURVE.randomBytes(groupLen + 8), CURVE.params.r)); - }, - calcPairingPrecomputes, - }; - // Point on G1 curve: (x, y) - const G1_ = weierstrassPoints({ n: Fr.ORDER, ...CURVE.G1 }); - const G1 = Object.assign(G1_, htf.createHasher(G1_.ProjectivePoint, CURVE.G1.mapToCurve, { - ...CURVE.htfDefaults, - ...CURVE.G1.htfDefaults, - })); - function pairingPrecomputes(point) { - const p = point; - if (p._PPRECOMPUTES) - return p._PPRECOMPUTES; - p._PPRECOMPUTES = calcPairingPrecomputes(point.toAffine()); - return p._PPRECOMPUTES; - } - // TODO: export - // function clearPairingPrecomputes(point: G2) { - // const p = point as G2 & withPairingPrecomputes; - // p._PPRECOMPUTES = undefined; - // } - // Point on G2 curve (complex numbers): (x₁, x₂+i), (y₁, y₂+i) - const G2_ = weierstrassPoints({ n: Fr.ORDER, ...CURVE.G2 }); - const G2 = Object.assign(G2_, htf.createHasher(G2_.ProjectivePoint, CURVE.G2.mapToCurve, { - ...CURVE.htfDefaults, - ...CURVE.G2.htfDefaults, - })); - const { Signature } = CURVE.G2; - // Calculates bilinear pairing - function pairing(Q, P, withFinalExponent = true) { - if (Q.equals(G1.ProjectivePoint.ZERO) || P.equals(G2.ProjectivePoint.ZERO)) - throw new Error('pairing is not available for ZERO point'); - Q.assertValidity(); - P.assertValidity(); - // Performance: 9ms for millerLoop and ~14ms for exp. - const Qa = Q.toAffine(); - const looped = millerLoop(pairingPrecomputes(P), [Qa.x, Qa.y]); - return withFinalExponent ? Fp12.finalExponentiate(looped) : looped; - } - function normP1(point) { - return point instanceof G1.ProjectivePoint ? point : G1.ProjectivePoint.fromHex(point); - } - function normP2(point) { - return point instanceof G2.ProjectivePoint ? point : Signature.fromHex(point); - } - function normP2Hash(point, htfOpts) { - return point instanceof G2.ProjectivePoint - ? point - : G2.hashToCurve(ensureBytes('point', point), htfOpts); - } - // Multiplies generator by private key. - // P = pk x G - function getPublicKey(privateKey) { - return G1.ProjectivePoint.fromPrivateKey(privateKey).toRawBytes(true); - } - function sign(message, privateKey, htfOpts) { - const msgPoint = normP2Hash(message, htfOpts); - msgPoint.assertValidity(); - const sigPoint = msgPoint.multiply(G1.normPrivateKeyToScalar(privateKey)); - if (message instanceof G2.ProjectivePoint) - return sigPoint; - return Signature.toRawBytes(sigPoint); - } - // Checks if pairing of public key & hash is equal to pairing of generator & signature. - // e(P, H(m)) == e(G, S) - function verify(signature, message, publicKey, htfOpts) { - const P = normP1(publicKey); - const Hm = normP2Hash(message, htfOpts); - const G = G1.ProjectivePoint.BASE; - const S = normP2(signature); - // Instead of doing 2 exponentiations, we use property of billinear maps - // and do one exp after multiplying 2 points. - const ePHm = pairing(P.negate(), Hm, false); - const eGS = pairing(G, S, false); - const exp = Fp12.finalExponentiate(Fp12.mul(eGS, ePHm)); - return Fp12.eql(exp, Fp12.ONE); - } - function aggregatePublicKeys(publicKeys) { - if (!publicKeys.length) - throw new Error('Expected non-empty array'); - const agg = publicKeys.map(normP1).reduce((sum, p) => sum.add(p), G1.ProjectivePoint.ZERO); - const aggAffine = agg; //.toAffine(); - if (publicKeys[0] instanceof G1.ProjectivePoint) { - aggAffine.assertValidity(); - return aggAffine; - } - // toRawBytes ensures point validity - return aggAffine.toRawBytes(true); - } - function aggregateSignatures(signatures) { - if (!signatures.length) - throw new Error('Expected non-empty array'); - const agg = signatures.map(normP2).reduce((sum, s) => sum.add(s), G2.ProjectivePoint.ZERO); - const aggAffine = agg; //.toAffine(); - if (signatures[0] instanceof G2.ProjectivePoint) { - aggAffine.assertValidity(); - return aggAffine; - } - return Signature.toRawBytes(aggAffine); - } - // https://ethresear.ch/t/fast-verification-of-multiple-bls-signatures/5407 - // e(G, S) = e(G, SUM(n)(Si)) = MUL(n)(e(G, Si)) - function verifyBatch(signature, messages, publicKeys, htfOpts) { - // @ts-ignore - // console.log('verifyBatch', bytesToHex(signature as any), messages, publicKeys.map(bytesToHex)); - if (!messages.length) - throw new Error('Expected non-empty messages array'); - if (publicKeys.length !== messages.length) - throw new Error('Pubkey count should equal msg count'); - const sig = normP2(signature); - const nMessages = messages.map((i) => normP2Hash(i, htfOpts)); - const nPublicKeys = publicKeys.map(normP1); - try { - const paired = []; - for (const message of new Set(nMessages)) { - const groupPublicKey = nMessages.reduce((groupPublicKey, subMessage, i) => subMessage === message ? groupPublicKey.add(nPublicKeys[i]) : groupPublicKey, G1.ProjectivePoint.ZERO); - // const msg = message instanceof PointG2 ? message : await PointG2.hashToCurve(message); - // Possible to batch pairing for same msg with different groupPublicKey here - paired.push(pairing(groupPublicKey, message, false)); - } - paired.push(pairing(G1.ProjectivePoint.BASE.negate(), sig, false)); - const product = paired.reduce((a, b) => Fp12.mul(a, b), Fp12.ONE); - const exp = Fp12.finalExponentiate(product); - return Fp12.eql(exp, Fp12.ONE); - } - catch { - return false; - } - } - G1.ProjectivePoint.BASE._setWindowSize(4); - return { - getPublicKey, - sign, - verify, - verifyBatch, - aggregatePublicKeys, - aggregateSignatures, - millerLoop, - pairing, - G1, - G2, - Signature, - fields: { - Fr, - Fp, - Fp2, - Fp6, - Fp12, - }, - params: { - x: CURVE.params.x, - r: CURVE.params.r, - G1b: CURVE.G1.b, - G2b: CURVE.G2.b, - }, - utils, - }; -} -//# sourceMappingURL=bls.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/esm/abstract/bls.js.map b/node_modules/@noble/curves/esm/abstract/bls.js.map deleted file mode 100644 index 84a65d7f..00000000 --- a/node_modules/@noble/curves/esm/abstract/bls.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"bls.js","sourceRoot":"","sources":["../../src/abstract/bls.ts"],"names":[],"mappings":"AAcA,OAAO,EAAU,mBAAmB,EAAE,MAAM,cAAc,CAAC;AAC3D,OAAO,EAAuB,MAAM,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,YAAY,CAAC;AAC9E,OAAO,KAAK,GAAG,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAIL,iBAAiB,GAClB,MAAM,kBAAkB,CAAC;AAI1B,kBAAkB;AAClB,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,EAAE,GAAG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;gBAC5E,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,cAAc,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC,CAAC;aACtD;YACD,MAAM,CAAC,IAAI,CAAC,OAAO,CAAC,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,MAAM,EAAE,EAAE,GAAG,EAAE,KAAK,CAAC,CAAC,CAAC;YACnE,MAAM,OAAO,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;YAClE,MAAM,GAAG,GAAG,IAAI,CAAC,iBAAiB,CAAC,OAAO,CAAC,CAAC;YAC5C,OAAO,IAAI,CAAC,GAAG,CAAC,GAAG,EAAE,IAAI,CAAC,GAAG,CAAC,CAAC;SAChC;QAAC,MAAM;YACN,OAAO,KAAK,CAAC;SACd;IACH,CAAC;IAED,EAAE,CAAC,eAAe,CAAC,IAAI,CAAC,cAAc,CAAC,CAAC,CAAC,CAAC;IAE1C,OAAO;QACL,YAAY;QACZ,IAAI;QACJ,MAAM;QACN,WAAW;QACX,mBAAmB;QACnB,mBAAmB;QACnB,UAAU;QACV,OAAO;QACP,EAAE;QACF,EAAE;QACF,SAAS;QACT,MAAM,EAAE;YACN,EAAE;YACF,EAAE;YACF,GAAG;YACH,GAAG;YACH,IAAI;SACL;QACD,MAAM,EAAE;YACN,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;YACjB,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;YACjB,GAAG,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC;YACf,GAAG,EAAE,KAAK,CAAC,EAAE,CAAC,CAAC;SAChB;QACD,KAAK;KACN,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/esm/abstract/curve.js b/node_modules/@noble/curves/esm/abstract/curve.js deleted file mode 100644 index 3454763e..00000000 --- a/node_modules/@noble/curves/esm/abstract/curve.js +++ /dev/null @@ -1,156 +0,0 @@ -/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */ -// Abelian group utilities -import { validateField, nLength } from './modular.js'; -import { validateObject } from './utils.js'; -const _0n = BigInt(0); -const _1n = BigInt(1); -// Elliptic curve multiplication of Point by scalar. Fragile. -// Scalars should always be less than curve order: this should be checked inside of a curve itself. -// Creates precomputation tables for fast multiplication: -// - private scalar is split by fixed size windows of W bits -// - every window point is collected from window's table & added to accumulator -// - since windows are different, same point inside tables won't be accessed more than once per calc -// - each multiplication is 'Math.ceil(CURVE_ORDER / 𝑊) + 1' point additions (fixed for any scalar) -// - +1 window is neccessary for wNAF -// - wNAF reduces table size: 2x less memory + 2x faster generation, but 10% slower multiplication -// TODO: Research returning 2d JS array of windows, instead of a single window. This would allow -// windows to be in different memory locations -export function wNAF(c, bits) { - const constTimeNegate = (condition, item) => { - const neg = item.negate(); - return condition ? neg : item; - }; - const opts = (W) => { - const windows = Math.ceil(bits / W) + 1; // +1, because - const windowSize = 2 ** (W - 1); // -1 because we skip zero - return { windows, windowSize }; - }; - return { - constTimeNegate, - // non-const time multiplication ladder - unsafeLadder(elm, n) { - let p = c.ZERO; - let d = elm; - while (n > _0n) { - if (n & _1n) - p = p.add(d); - d = d.double(); - n >>= _1n; - } - return p; - }, - /** - * Creates a wNAF precomputation window. Used for caching. - * Default window size is set by `utils.precompute()` and is equal to 8. - * Number of precomputed points depends on the curve size: - * 2^(𝑊−1) * (Math.ceil(𝑛 / 𝑊) + 1), where: - * - 𝑊 is the window size - * - 𝑛 is the bitlength of the curve order. - * For a 256-bit curve and window size 8, the number of precomputed points is 128 * 33 = 4224. - * @returns precomputed point tables flattened to a single array - */ - precomputeWindow(elm, W) { - const { windows, windowSize } = opts(W); - const points = []; - let p = elm; - let base = p; - for (let window = 0; window < windows; window++) { - base = p; - points.push(base); - // =1, because we skip zero - for (let i = 1; i < windowSize; i++) { - base = base.add(p); - points.push(base); - } - p = base.double(); - } - return points; - }, - /** - * Implements ec multiplication using precomputed tables and w-ary non-adjacent form. - * @param W window size - * @param precomputes precomputed tables - * @param n scalar (we don't check here, but should be less than curve order) - * @returns real and fake (for const-time) points - */ - wNAF(W, precomputes, n) { - // TODO: maybe check that scalar is less than group order? wNAF behavious is undefined otherwise - // But need to carefully remove other checks before wNAF. ORDER == bits here - const { windows, windowSize } = opts(W); - let p = c.ZERO; - let f = c.BASE; - const mask = BigInt(2 ** W - 1); // Create mask with W ones: 0b1111 for W=4 etc. - const maxNumber = 2 ** W; - const shiftBy = BigInt(W); - for (let window = 0; window < windows; window++) { - const offset = window * windowSize; - // Extract W bits. - let wbits = Number(n & mask); - // Shift number by W bits. - n >>= shiftBy; - // If the bits are bigger than max size, we'll split those. - // +224 => 256 - 32 - if (wbits > windowSize) { - wbits -= maxNumber; - n += _1n; - } - // This code was first written with assumption that 'f' and 'p' will never be infinity point: - // since each addition is multiplied by 2 ** W, it cannot cancel each other. However, - // there is negate now: it is possible that negated element from low value - // would be the same as high element, which will create carry into next window. - // It's not obvious how this can fail, but still worth investigating later. - // Check if we're onto Zero point. - // Add random point inside current window to f. - const offset1 = offset; - const offset2 = offset + Math.abs(wbits) - 1; // -1 because we skip zero - const cond1 = window % 2 !== 0; - const cond2 = wbits < 0; - if (wbits === 0) { - // The most important part for const-time getPublicKey - f = f.add(constTimeNegate(cond1, precomputes[offset1])); - } - else { - p = p.add(constTimeNegate(cond2, precomputes[offset2])); - } - } - // JIT-compiler should not eliminate f here, since it will later be used in normalizeZ() - // Even if the variable is still unused, there are some checks which will - // throw an exception, so compiler needs to prove they won't happen, which is hard. - // At this point there is a way to F be infinity-point even if p is not, - // which makes it less const-time: around 1 bigint multiply. - return { p, f }; - }, - wNAFCached(P, precomputesMap, n, transform) { - // @ts-ignore - const W = P._WINDOW_SIZE || 1; - // Calculate precomputes on a first run, reuse them after - let comp = precomputesMap.get(P); - if (!comp) { - comp = this.precomputeWindow(P, W); - if (W !== 1) { - precomputesMap.set(P, transform(comp)); - } - } - return this.wNAF(W, comp, n); - }, - }; -} -export function validateBasic(curve) { - validateField(curve.Fp); - validateObject(curve, { - n: 'bigint', - h: 'bigint', - Gx: 'field', - Gy: 'field', - }, { - nBitLength: 'isSafeInteger', - nByteLength: 'isSafeInteger', - }); - // Set defaults - return Object.freeze({ - ...nLength(curve.n, curve.nBitLength), - ...curve, - ...{ p: curve.Fp.ORDER }, - }); -} -//# sourceMappingURL=curve.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/esm/abstract/curve.js.map b/node_modules/@noble/curves/esm/abstract/curve.js.map deleted file mode 100644 index f0fbc7d3..00000000 --- a/node_modules/@noble/curves/esm/abstract/curve.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"curve.js","sourceRoot":"","sources":["../../src/abstract/curve.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,0BAA0B;AAC1B,OAAO,EAAU,aAAa,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAC5C,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;AACtB,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;AAsBtB,6DAA6D;AAC7D,mGAAmG;AACnG,yDAAyD;AACzD,4DAA4D;AAC5D,+EAA+E;AAC/E,oGAAoG;AACpG,oGAAoG;AACpG,qCAAqC;AACrC,kGAAkG;AAClG,gGAAgG;AAChG,8CAA8C;AAC9C,MAAM,UAAU,IAAI,CAAqB,CAAsB,EAAE,IAAY;IAC3E,MAAM,eAAe,GAAG,CAAC,SAAkB,EAAE,IAAO,EAAK,EAAE;QACzD,MAAM,GAAG,GAAG,IAAI,CAAC,MAAM,EAAE,CAAC;QAC1B,OAAO,SAAS,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC;IAChC,CAAC,CAAC;IAC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Aa,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IACxB,cAAc,CACZ,KAAK,EACL;QACE,CAAC,EAAE,QAAQ;QACX,CAAC,EAAE,QAAQ;QACX,EAAE,EAAE,OAAO;QACX,EAAE,EAAE,OAAO;KACZ,EACD;QACE,UAAU,EAAE,eAAe;QAC3B,WAAW,EAAE,eAAe;KAC7B,CACF,CAAC;IACF,eAAe;IACf,OAAO,MAAM,CAAC,MAAM,CAAC;QACnB,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC,EAAE,KAAK,CAAC,UAAU,CAAC;QACrC,GAAG,KAAK;QACR,GAAG,EAAE,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,KAAK,EAAE;KAChB,CAAC,CAAC;AACd,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/esm/abstract/edwards.js b/node_modules/@noble/curves/esm/abstract/edwards.js deleted file mode 100644 index de5123ae..00000000 --- a/node_modules/@noble/curves/esm/abstract/edwards.js +++ /dev/null @@ -1,425 +0,0 @@ -/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */ -// Twisted Edwards curve. The formula is: ax² + y² = 1 + dx²y² -import { mod } from './modular.js'; -import * as ut from './utils.js'; -import { ensureBytes } from './utils.js'; -import { wNAF, validateBasic } from './curve.js'; -// Be friendly to bad ECMAScript parsers by not using bigint literals -// prettier-ignore -const _0n = BigInt(0), _1n = BigInt(1), _2n = BigInt(2), _8n = BigInt(8); -// verification rule is either zip215 or rfc8032 / nist186-5. Consult fromHex: -const VERIFY_DEFAULT = { zip215: true }; -function validateOpts(curve) { - const opts = validateBasic(curve); - ut.validateObject(curve, { - hash: 'function', - a: 'bigint', - d: 'bigint', - randomBytes: 'function', - }, { - adjustScalarBytes: 'function', - domain: 'function', - uvRatio: 'function', - mapToCurve: 'function', - }); - // Set defaults - return Object.freeze({ ...opts }); -} -// It is not generic twisted curve for now, but ed25519/ed448 generic implementation -export function twistedEdwards(curveDef) { - const CURVE = validateOpts(curveDef); - const { Fp, n: CURVE_ORDER, prehash: prehash, hash: cHash, randomBytes, nByteLength, h: cofactor, } = CURVE; - const MASK = _2n << (BigInt(nByteLength * 8) - _1n); - const modP = Fp.create; // Function overrides - // sqrt(u/v) - const uvRatio = CURVE.uvRatio || - ((u, v) => { - try { - return { isValid: true, value: Fp.sqrt(u * Fp.inv(v)) }; - } - catch (e) { - return { isValid: false, value: _0n }; - } - }); - const adjustScalarBytes = CURVE.adjustScalarBytes || ((bytes) => bytes); // NOOP - const domain = CURVE.domain || - ((data, ctx, phflag) => { - if (ctx.length || phflag) - throw new Error('Contexts/pre-hash are not supported'); - return data; - }); // NOOP - const inBig = (n) => typeof n === 'bigint' && _0n < n; // n in [1..] - const inRange = (n, max) => inBig(n) && inBig(max) && n < max; // n in [1..max-1] - const in0MaskRange = (n) => n === _0n || inRange(n, MASK); // n in [0..MASK-1] - function assertInRange(n, max) { - // n in [1..max-1] - if (inRange(n, max)) - return n; - throw new Error(`Expected valid scalar < ${max}, got ${typeof n} ${n}`); - } - function assertGE0(n) { - // n in [0..CURVE_ORDER-1] - return n === _0n ? n : assertInRange(n, CURVE_ORDER); // GE = prime subgroup, not full group - } - const pointPrecomputes = new Map(); - function isPoint(other) { - if (!(other instanceof Point)) - throw new Error('ExtendedPoint expected'); - } - // Extended Point works in extended coordinates: (x, y, z, t) ∋ (x=x/z, y=y/z, t=xy). - // https://en.wikipedia.org/wiki/Twisted_Edwards_curve#Extended_coordinates - class Point { - constructor(ex, ey, ez, et) { - this.ex = ex; - this.ey = ey; - this.ez = ez; - this.et = et; - if (!in0MaskRange(ex)) - throw new Error('x required'); - if (!in0MaskRange(ey)) - throw new Error('y required'); - if (!in0MaskRange(ez)) - throw new Error('z required'); - if (!in0MaskRange(et)) - throw new Error('t required'); - } - get x() { - return this.toAffine().x; - } - get y() { - return this.toAffine().y; - } - static fromAffine(p) { - if (p instanceof Point) - throw new Error('extended point not allowed'); - const { x, y } = p || {}; - if (!in0MaskRange(x) || !in0MaskRange(y)) - throw new Error('invalid affine point'); - return new Point(x, y, _1n, modP(x * y)); - } - static normalizeZ(points) { - const toInv = Fp.invertBatch(points.map((p) => p.ez)); - return points.map((p, i) => p.toAffine(toInv[i])).map(Point.fromAffine); - } - // "Private method", don't use it directly - _setWindowSize(windowSize) { - this._WINDOW_SIZE = windowSize; - pointPrecomputes.delete(this); - } - // Not required for fromHex(), which always creates valid points. - // Could be useful for fromAffine(). - assertValidity() { - const { a, d } = CURVE; - if (this.is0()) - throw new Error('bad point: ZERO'); // TODO: optimize, with vars below? - // Equation in affine coordinates: ax² + y² = 1 + dx²y² - // Equation in projective coordinates (X/Z, Y/Z, Z): (aX² + Y²)Z² = Z⁴ + dX²Y² - const { ex: X, ey: Y, ez: Z, et: T } = this; - const X2 = modP(X * X); // X² - const Y2 = modP(Y * Y); // Y² - const Z2 = modP(Z * Z); // Z² - const Z4 = modP(Z2 * Z2); // Z⁴ - const aX2 = modP(X2 * a); // aX² - const left = modP(Z2 * modP(aX2 + Y2)); // (aX² + Y²)Z² - const right = modP(Z4 + modP(d * modP(X2 * Y2))); // Z⁴ + dX²Y² - if (left !== right) - throw new Error('bad point: equation left != right (1)'); - // In Extended coordinates we also have T, which is x*y=T/Z: check X*Y == Z*T - const XY = modP(X * Y); - const ZT = modP(Z * T); - if (XY !== ZT) - throw new Error('bad point: equation left != right (2)'); - } - // Compare one point to another. - equals(other) { - isPoint(other); - const { ex: X1, ey: Y1, ez: Z1 } = this; - const { ex: X2, ey: Y2, ez: Z2 } = other; - const X1Z2 = modP(X1 * Z2); - const X2Z1 = modP(X2 * Z1); - const Y1Z2 = modP(Y1 * Z2); - const Y2Z1 = modP(Y2 * Z1); - return X1Z2 === X2Z1 && Y1Z2 === Y2Z1; - } - is0() { - return this.equals(Point.ZERO); - } - negate() { - // Flips point sign to a negative one (-x, y in affine coords) - return new Point(modP(-this.ex), this.ey, this.ez, modP(-this.et)); - } - // Fast algo for doubling Extended Point. - // https://hyperelliptic.org/EFD/g1p/auto-twisted-extended.html#doubling-dbl-2008-hwcd - // Cost: 4M + 4S + 1*a + 6add + 1*2. - double() { - const { a } = CURVE; - const { ex: X1, ey: Y1, ez: Z1 } = this; - const A = modP(X1 * X1); // A = X12 - const B = modP(Y1 * Y1); // B = Y12 - const C = modP(_2n * modP(Z1 * Z1)); // C = 2*Z12 - const D = modP(a * A); // D = a*A - const x1y1 = X1 + Y1; - const E = modP(modP(x1y1 * x1y1) - A - B); // E = (X1+Y1)2-A-B - const G = D + B; // G = D+B - const F = G - C; // F = G-C - const H = D - B; // H = D-B - const X3 = modP(E * F); // X3 = E*F - const Y3 = modP(G * H); // Y3 = G*H - const T3 = modP(E * H); // T3 = E*H - const Z3 = modP(F * G); // Z3 = F*G - return new Point(X3, Y3, Z3, T3); - } - // Fast algo for adding 2 Extended Points. - // https://hyperelliptic.org/EFD/g1p/auto-twisted-extended.html#addition-add-2008-hwcd - // Cost: 9M + 1*a + 1*d + 7add. - add(other) { - isPoint(other); - const { a, d } = CURVE; - const { ex: X1, ey: Y1, ez: Z1, et: T1 } = this; - const { ex: X2, ey: Y2, ez: Z2, et: T2 } = other; - // Faster algo for adding 2 Extended Points when curve's a=-1. - // http://hyperelliptic.org/EFD/g1p/auto-twisted-extended-1.html#addition-add-2008-hwcd-4 - // Cost: 8M + 8add + 2*2. - // Note: It does not check whether the `other` point is valid. - if (a === BigInt(-1)) { - const A = modP((Y1 - X1) * (Y2 + X2)); - const B = modP((Y1 + X1) * (Y2 - X2)); - const F = modP(B - A); - if (F === _0n) - return this.double(); // Same point. Tests say it doesn't affect timing - const C = modP(Z1 * _2n * T2); - const D = modP(T1 * _2n * Z2); - const E = D + C; - const G = B + A; - const H = D - C; - const X3 = modP(E * F); - const Y3 = modP(G * H); - const T3 = modP(E * H); - const Z3 = modP(F * G); - return new Point(X3, Y3, Z3, T3); - } - const A = modP(X1 * X2); // A = X1*X2 - const B = modP(Y1 * Y2); // B = Y1*Y2 - const C = modP(T1 * d * T2); // C = T1*d*T2 - const D = modP(Z1 * Z2); // D = Z1*Z2 - const E = modP((X1 + Y1) * (X2 + Y2) - A - B); // E = (X1+Y1)*(X2+Y2)-A-B - const F = D - C; // F = D-C - const G = D + C; // G = D+C - const H = modP(B - a * A); // H = B-a*A - const X3 = modP(E * F); // X3 = E*F - const Y3 = modP(G * H); // Y3 = G*H - const T3 = modP(E * H); // T3 = E*H - const Z3 = modP(F * G); // Z3 = F*G - return new Point(X3, Y3, Z3, T3); - } - subtract(other) { - return this.add(other.negate()); - } - wNAF(n) { - return wnaf.wNAFCached(this, pointPrecomputes, n, Point.normalizeZ); - } - // Constant-time multiplication. - multiply(scalar) { - const { p, f } = this.wNAF(assertInRange(scalar, CURVE_ORDER)); - return Point.normalizeZ([p, f])[0]; - } - // Non-constant-time multiplication. Uses double-and-add algorithm. - // It's faster, but should only be used when you don't care about - // an exposed private key e.g. sig verification. - // Does NOT allow scalars higher than CURVE.n. - multiplyUnsafe(scalar) { - let n = assertGE0(scalar); // 0 <= scalar < CURVE.n - if (n === _0n) - return I; - if (this.equals(I) || n === _1n) - return this; - if (this.equals(G)) - return this.wNAF(n).p; - return wnaf.unsafeLadder(this, n); - } - // Checks if point is of small order. - // If you add something to small order point, you will have "dirty" - // point with torsion component. - // Multiplies point by cofactor and checks if the result is 0. - isSmallOrder() { - return this.multiplyUnsafe(cofactor).is0(); - } - // Multiplies point by curve order and checks if the result is 0. - // Returns `false` is the point is dirty. - isTorsionFree() { - return wnaf.unsafeLadder(this, CURVE_ORDER).is0(); - } - // Converts Extended point to default (x, y) coordinates. - // Can accept precomputed Z^-1 - for example, from invertBatch. - toAffine(iz) { - const { ex: x, ey: y, ez: z } = this; - const is0 = this.is0(); - if (iz == null) - iz = is0 ? _8n : Fp.inv(z); // 8 was chosen arbitrarily - const ax = modP(x * iz); - const ay = modP(y * iz); - const zz = modP(z * iz); - if (is0) - return { x: _0n, y: _1n }; - if (zz !== _1n) - throw new Error('invZ was invalid'); - return { x: ax, y: ay }; - } - clearCofactor() { - const { h: cofactor } = CURVE; - if (cofactor === _1n) - return this; - return this.multiplyUnsafe(cofactor); - } - // Converts hash string or Uint8Array to Point. - // Uses algo from RFC8032 5.1.3. - static fromHex(hex, zip215 = false) { - const { d, a } = CURVE; - const len = Fp.BYTES; - hex = ensureBytes('pointHex', hex, len); // copy hex to a new array - const normed = hex.slice(); // copy again, we'll manipulate it - const lastByte = hex[len - 1]; // select last byte - normed[len - 1] = lastByte & ~0x80; // clear last bit - const y = ut.bytesToNumberLE(normed); - if (y === _0n) { - // y=0 is allowed - } - else { - // RFC8032 prohibits >= p, but ZIP215 doesn't - if (zip215) - assertInRange(y, MASK); // zip215=true [1..P-1] (2^255-19-1 for ed25519) - else - assertInRange(y, Fp.ORDER); // zip215=false [1..MASK-1] (2^256-1 for ed25519) - } - // Ed25519: x² = (y²-1)/(dy²+1) mod p. Ed448: x² = (y²-1)/(dy²-1) mod p. Generic case: - // ax²+y²=1+dx²y² => y²-1=dx²y²-ax² => y²-1=x²(dy²-a) => x²=(y²-1)/(dy²-a) - const y2 = modP(y * y); // denominator is always non-0 mod p. - const u = modP(y2 - _1n); // u = y² - 1 - const v = modP(d * y2 - a); // v = d y² + 1. - let { isValid, value: x } = uvRatio(u, v); // √(u/v) - if (!isValid) - throw new Error('Point.fromHex: invalid y coordinate'); - const isXOdd = (x & _1n) === _1n; // There are 2 square roots. Use x_0 bit to select proper - const isLastByteOdd = (lastByte & 0x80) !== 0; // x_0, last bit - if (!zip215 && x === _0n && isLastByteOdd) - // if x=0 and x_0 = 1, fail - throw new Error('Point.fromHex: x=0 and x_0=1'); - if (isLastByteOdd !== isXOdd) - x = modP(-x); // if x_0 != x mod 2, set x = p-x - return Point.fromAffine({ x, y }); - } - static fromPrivateKey(privKey) { - return getExtendedPublicKey(privKey).point; - } - toRawBytes() { - const { x, y } = this.toAffine(); - const bytes = ut.numberToBytesLE(y, Fp.BYTES); // each y has 2 x values (x, -y) - bytes[bytes.length - 1] |= x & _1n ? 0x80 : 0; // when compressing, it's enough to store y - return bytes; // and use the last byte to encode sign of x - } - toHex() { - return ut.bytesToHex(this.toRawBytes()); // Same as toRawBytes, but returns string. - } - } - Point.BASE = new Point(CURVE.Gx, CURVE.Gy, _1n, modP(CURVE.Gx * CURVE.Gy)); - Point.ZERO = new Point(_0n, _1n, _1n, _0n); // 0, 1, 1, 0 - const { BASE: G, ZERO: I } = Point; - const wnaf = wNAF(Point, nByteLength * 8); - function modN(a) { - return mod(a, CURVE_ORDER); - } - // Little-endian SHA512 with modulo n - function modN_LE(hash) { - return modN(ut.bytesToNumberLE(hash)); - } - /** Convenience method that creates public key and other stuff. RFC8032 5.1.5 */ - function getExtendedPublicKey(key) { - const len = nByteLength; - key = ensureBytes('private key', key, len); - // Hash private key with curve's hash function to produce uniformingly random input - // Check byte lengths: ensure(64, h(ensure(32, key))) - const hashed = ensureBytes('hashed private key', cHash(key), 2 * len); - const head = adjustScalarBytes(hashed.slice(0, len)); // clear first half bits, produce FE - const prefix = hashed.slice(len, 2 * len); // second half is called key prefix (5.1.6) - const scalar = modN_LE(head); // The actual private scalar - const point = G.multiply(scalar); // Point on Edwards curve aka public key - const pointBytes = point.toRawBytes(); // Uint8Array representation - return { head, prefix, scalar, point, pointBytes }; - } - // Calculates EdDSA pub key. RFC8032 5.1.5. Privkey is hashed. Use first half with 3 bits cleared - function getPublicKey(privKey) { - return getExtendedPublicKey(privKey).pointBytes; - } - // int('LE', SHA512(dom2(F, C) || msgs)) mod N - function hashDomainToScalar(context = new Uint8Array(), ...msgs) { - const msg = ut.concatBytes(...msgs); - return modN_LE(cHash(domain(msg, ensureBytes('context', context), !!prehash))); - } - /** Signs message with privateKey. RFC8032 5.1.6 */ - function sign(msg, privKey, options = {}) { - msg = ensureBytes('message', msg); - if (prehash) - msg = prehash(msg); // for ed25519ph etc. - const { prefix, scalar, pointBytes } = getExtendedPublicKey(privKey); - const r = hashDomainToScalar(options.context, prefix, msg); // r = dom2(F, C) || prefix || PH(M) - const R = G.multiply(r).toRawBytes(); // R = rG - const k = hashDomainToScalar(options.context, R, pointBytes, msg); // R || A || PH(M) - const s = modN(r + k * scalar); // S = (r + k * s) mod L - assertGE0(s); // 0 <= s < l - const res = ut.concatBytes(R, ut.numberToBytesLE(s, Fp.BYTES)); - return ensureBytes('result', res, nByteLength * 2); // 64-byte signature - } - const verifyOpts = VERIFY_DEFAULT; - function verify(sig, msg, publicKey, options = verifyOpts) { - const { context, zip215 } = options; - const len = Fp.BYTES; // Verifies EdDSA signature against message and public key. RFC8032 5.1.7. - sig = ensureBytes('signature', sig, 2 * len); // An extended group equation is checked. - msg = ensureBytes('message', msg); - if (prehash) - msg = prehash(msg); // for ed25519ph, etc - const s = ut.bytesToNumberLE(sig.slice(len, 2 * len)); - // zip215: true is good for consensus-critical apps and allows points < 2^256 - // zip215: false follows RFC8032 / NIST186-5 and restricts points to CURVE.p - let A, R, SB; - try { - A = Point.fromHex(publicKey, zip215); - R = Point.fromHex(sig.slice(0, len), zip215); - SB = G.multiplyUnsafe(s); // 0 <= s < l is done inside - } - catch (error) { - return false; - } - if (!zip215 && A.isSmallOrder()) - return false; - const k = hashDomainToScalar(context, R.toRawBytes(), A.toRawBytes(), msg); - const RkA = R.add(A.multiplyUnsafe(k)); - // [8][S]B = [8]R + [8][k]A' - return RkA.subtract(SB).clearCofactor().equals(Point.ZERO); - } - G._setWindowSize(8); // Enable precomputes. Slows down first publicKey computation by 20ms. - const utils = { - getExtendedPublicKey, - // ed25519 private keys are uniform 32b. No need to check for modulo bias, like in secp256k1. - randomPrivateKey: () => randomBytes(Fp.BYTES), - /** - * We're doing scalar multiplication (used in getPublicKey etc) with precomputed BASE_POINT - * values. This slows down first getPublicKey() by milliseconds (see Speed section), - * but allows to speed-up subsequent getPublicKey() calls up to 20x. - * @param windowSize 2, 4, 8, 16 - */ - precompute(windowSize = 8, point = Point.BASE) { - point._setWindowSize(windowSize); - point.multiply(BigInt(3)); - return point; - }, - }; - return { - CURVE, - getPublicKey, - sign, - verify, - ExtendedPoint: Point, - utils, - }; -} -//# sourceMappingURL=edwards.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/esm/abstract/edwards.js.map b/node_modules/@noble/curves/esm/abstract/edwards.js.map deleted file mode 100644 index dda68a80..00000000 --- a/node_modules/@noble/curves/esm/abstract/edwards.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"edwards.js","sourceRoot":"","sources":["../../src/abstract/edwards.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,8DAA8D;AAC9D,OAAO,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACnC,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAE,WAAW,EAAc,MAAM,YAAY,CAAC;AACrD,OAAO,EAA2B,IAAI,EAAc,aAAa,EAAe,MAAM,YAAY,CAAC;AAEnG,qEAAqE;AACrE,kBAAkB;AAClB,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,EAAE,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,EAAE,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,EAAE,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;AAezE,8EAA8E;AAC9E,MAAM,cAAc,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC;AAExC,SAAS,YAAY,CAAC,KAAgB;IACpC,MAAM,IAAI,GAAG,aAAa,CAAC,KAAK,CAAC,CAAC;IAClC,EAAE,CAAC,cAAc,CACf,KAAK,EACL;QACE,IAAI,EAAE,UAAU;QAChB,CAAC,EAAE,QAAQ;QACX,CAAC,EAAE,QAAQ;QACX,WAAW,EAAE,UAAU;KACxB,EACD;QACE,iBAAiB,EAAE,UAAU;QAC7B,MAAM,EAAE,UAAU;QAClB,OAAO,EAAE,UAAU;QACnB,UAAU,EAAE,UAAU;KACvB,CACF,CAAC;IACF,eAAe;IACf,OAAO,MAAM,CAAC,MAAM,CAAC,EAAE,GAAG,IAAI,EAAW,CAAC,CAAC;A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AAI;YAC3C,KAAK,CAAC,cAAc,CAAC,UAAU,CAAC,CAAC;YACjC,KAAK,CAAC,QAAQ,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC;YAC1B,OAAO,KAAK,CAAC;QACf,CAAC;KACF,CAAC;IAEF,OAAO;QACL,KAAK;QACL,YAAY;QACZ,IAAI;QACJ,MAAM;QACN,aAAa,EAAE,KAAK;QACpB,KAAK;KACN,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/esm/abstract/hash-to-curve.js b/node_modules/@noble/curves/esm/abstract/hash-to-curve.js deleted file mode 100644 index a6419f97..00000000 --- a/node_modules/@noble/curves/esm/abstract/hash-to-curve.js +++ /dev/null @@ -1,167 +0,0 @@ -import { mod } from './modular.js'; -import { bytesToNumberBE, concatBytes, utf8ToBytes, validateObject } from './utils.js'; -function validateDST(dst) { - if (dst instanceof Uint8Array) - return dst; - if (typeof dst === 'string') - return utf8ToBytes(dst); - throw new Error('DST must be Uint8Array or string'); -} -// Octet Stream to Integer. "spec" implementation of os2ip is 2.5x slower vs bytesToNumberBE. -const os2ip = bytesToNumberBE; -// Integer to Octet Stream (numberToBytesBE) -function i2osp(value, length) { - if (value < 0 || value >= 1 << (8 * length)) { - throw new Error(`bad I2OSP call: value=${value} length=${length}`); - } - const res = Array.from({ length }).fill(0); - for (let i = length - 1; i >= 0; i--) { - res[i] = value & 0xff; - value >>>= 8; - } - return new Uint8Array(res); -} -function strxor(a, b) { - const arr = new Uint8Array(a.length); - for (let i = 0; i < a.length; i++) { - arr[i] = a[i] ^ b[i]; - } - return arr; -} -function isBytes(item) { - if (!(item instanceof Uint8Array)) - throw new Error('Uint8Array expected'); -} -function isNum(item) { - if (!Number.isSafeInteger(item)) - throw new Error('number expected'); -} -// Produces a uniformly random byte string using a cryptographic hash function H that outputs b bits -// https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-hash-to-curve-11#section-5.4.1 -export function expand_message_xmd(msg, DST, lenInBytes, H) { - isBytes(msg); - isBytes(DST); - isNum(lenInBytes); - // https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-hash-to-curve-16#section-5.3.3 - if (DST.length > 255) - DST = H(concatBytes(utf8ToBytes('H2C-OVERSIZE-DST-'), DST)); - const { outputLen: b_in_bytes, blockLen: r_in_bytes } = H; - const ell = Math.ceil(lenInBytes / b_in_bytes); - if (ell > 255) - throw new Error('Invalid xmd length'); - const DST_prime = concatBytes(DST, i2osp(DST.length, 1)); - const Z_pad = i2osp(0, r_in_bytes); - const l_i_b_str = i2osp(lenInBytes, 2); // len_in_bytes_str - const b = new Array(ell); - const b_0 = H(concatBytes(Z_pad, msg, l_i_b_str, i2osp(0, 1), DST_prime)); - b[0] = H(concatBytes(b_0, i2osp(1, 1), DST_prime)); - for (let i = 1; i <= ell; i++) { - const args = [strxor(b_0, b[i - 1]), i2osp(i + 1, 1), DST_prime]; - b[i] = H(concatBytes(...args)); - } - const pseudo_random_bytes = concatBytes(...b); - return pseudo_random_bytes.slice(0, lenInBytes); -} -export function expand_message_xof(msg, DST, lenInBytes, k, H) { - isBytes(msg); - isBytes(DST); - isNum(lenInBytes); - // https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-hash-to-curve-16#section-5.3.3 - // DST = H('H2C-OVERSIZE-DST-' || a_very_long_DST, Math.ceil((lenInBytes * k) / 8)); - if (DST.length > 255) { - const dkLen = Math.ceil((2 * k) / 8); - DST = H.create({ dkLen }).update(utf8ToBytes('H2C-OVERSIZE-DST-')).update(DST).digest(); - } - if (lenInBytes > 65535 || DST.length > 255) - throw new Error('expand_message_xof: invalid lenInBytes'); - return (H.create({ dkLen: lenInBytes }) - .update(msg) - .update(i2osp(lenInBytes, 2)) - // 2. DST_prime = DST || I2OSP(len(DST), 1) - .update(DST) - .update(i2osp(DST.length, 1)) - .digest()); -} -/** - * Hashes arbitrary-length byte strings to a list of one or more elements of a finite field F - * https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-hash-to-curve-11#section-5.3 - * @param msg a byte string containing the message to hash - * @param count the number of elements of F to output - * @param options `{DST: string, p: bigint, m: number, k: number, expand: 'xmd' | 'xof', hash: H}`, see above - * @returns [u_0, ..., u_(count - 1)], a list of field elements. - */ -export function hash_to_field(msg, count, options) { - validateObject(options, { - DST: 'string', - p: 'bigint', - m: 'isSafeInteger', - k: 'isSafeInteger', - hash: 'hash', - }); - const { p, k, m, hash, expand, DST: _DST } = options; - isBytes(msg); - isNum(count); - const DST = validateDST(_DST); - const log2p = p.toString(2).length; - const L = Math.ceil((log2p + k) / 8); // section 5.1 of ietf draft link above - const len_in_bytes = count * m * L; - let prb; // pseudo_random_bytes - if (expand === 'xmd') { - prb = expand_message_xmd(msg, DST, len_in_bytes, hash); - } - else if (expand === 'xof') { - prb = expand_message_xof(msg, DST, len_in_bytes, k, hash); - } - else if (expand === '_internal_pass') { - // for internal tests only - prb = msg; - } - else { - throw new Error('expand must be "xmd" or "xof"'); - } - const u = new Array(count); - for (let i = 0; i < count; i++) { - const e = new Array(m); - for (let j = 0; j < m; j++) { - const elm_offset = L * (j + i * m); - const tv = prb.subarray(elm_offset, elm_offset + L); - e[j] = mod(os2ip(tv), p); - } - u[i] = e; - } - return u; -} -export function isogenyMap(field, map) { - // Make same order as in spec - const COEFF = map.map((i) => Array.from(i).reverse()); - return (x, y) => { - const [xNum, xDen, yNum, yDen] = COEFF.map((val) => val.reduce((acc, i) => field.add(field.mul(acc, x), i))); - x = field.div(xNum, xDen); // xNum / xDen - y = field.mul(y, field.div(yNum, yDen)); // y * (yNum / yDev) - return { x, y }; - }; -} -export function createHasher(Point, mapToCurve, def) { - if (typeof mapToCurve !== 'function') - throw new Error('mapToCurve() must be defined'); - return { - // Encodes byte string to elliptic curve - // https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-hash-to-curve-16#section-3 - hashToCurve(msg, options) { - const u = hash_to_field(msg, 2, { ...def, DST: def.DST, ...options }); - const u0 = Point.fromAffine(mapToCurve(u[0])); - const u1 = Point.fromAffine(mapToCurve(u[1])); - const P = u0.add(u1).clearCofactor(); - P.assertValidity(); - return P; - }, - // https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-hash-to-curve-16#section-3 - encodeToCurve(msg, options) { - const u = hash_to_field(msg, 1, { ...def, DST: def.encodeDST, ...options }); - const P = Point.fromAffine(mapToCurve(u[0])).clearCofactor(); - P.assertValidity(); - return P; - }, - }; -} -//# sourceMappingURL=hash-to-curve.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/esm/abstract/hash-to-curve.js.map b/node_modules/@noble/curves/esm/abstract/hash-to-curve.js.map deleted file mode 100644 index 02c9e79c..00000000 --- a/node_modules/@noble/curves/esm/abstract/hash-to-curve.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"hash-to-curve.js","sourceRoot":"","sources":["../../src/abstract/hash-to-curve.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,GAAG,EAAU,MAAM,cAAc,CAAC;AAC3C,OAAO,EAAE,eAAe,EAAS,WAAW,EAAE,WAAW,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAoB9F,SAAS,WAAW,CAAC,GAAmB;IACtC,IAAI,GAAG,YAAY,UAAU;QAAE,OAAO,GAAG,CAAC;IAC1C,IAAI,OAAO,GAAG,KAAK,QAAQ;QAAE,OAAO,WAAW,CAAC,GAAG,CAAC,CAAC;IACrD,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;AACtD,CAAC;AAED,6FAA6F;AAC7F,MAAM,KAAK,GAAG,eAAe,CAAC;AAE9B,4CAA4C;AAC5C,SAAS,KAAK,CAAC,KAAa,EAAE,MAAc;IAC1C,IAAI,KAAK,GAAG,CAAC,IAAI,KAAK,IAAI,CAAC,IAAI,CAAC,CAAC,GAAG,MAAM,CAAC,EAAE;QAC3C,MAAM,IAAI,KAAK,CAAC,yBAAyB,KAAK,WAAW,MAAM,EAAE,CAAC,CAAC;KACpE;IACD,MAAM,GAAG,GAAG,KAAK,CAAC,IAAI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CAAC,CAAC,CAAC,CAAC,CAAC,aAAa,EAAE,CAAC;YAC7D,CAAC,CAAC,cAAc,EAAE,CAAC;YACnB,OAAO,CAAC,CAAC;QACX,CAAC;KACF,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/esm/abstract/modular.js b/node_modules/@noble/curves/esm/abstract/modular.js deleted file mode 100644 index e26772af..00000000 --- a/node_modules/@noble/curves/esm/abstract/modular.js +++ /dev/null @@ -1,361 +0,0 @@ -/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */ -// Utilities for modular arithmetics and finite fields -import { bitMask, numberToBytesBE, numberToBytesLE, bytesToNumberBE, bytesToNumberLE, ensureBytes, validateObject, } from './utils.js'; -// prettier-ignore -const _0n = BigInt(0), _1n = BigInt(1), _2n = BigInt(2), _3n = BigInt(3); -// prettier-ignore -const _4n = BigInt(4), _5n = BigInt(5), _8n = BigInt(8); -// prettier-ignore -const _9n = BigInt(9), _16n = BigInt(16); -// Calculates a modulo b -export function mod(a, b) { - const result = a % b; - return result >= _0n ? result : b + result; -} -/** - * Efficiently raise num to power and do modular division. - * Unsafe in some contexts: uses ladder, so can expose bigint bits. - * @example - * pow(2n, 6n, 11n) // 64n % 11n == 9n - */ -// TODO: use field version && remove -export function pow(num, power, modulo) { - if (modulo <= _0n || power < _0n) - throw new Error('Expected power/modulo > 0'); - if (modulo === _1n) - return _0n; - let res = _1n; - while (power > _0n) { - if (power & _1n) - res = (res * num) % modulo; - num = (num * num) % modulo; - power >>= _1n; - } - return res; -} -// Does x ^ (2 ^ power) mod p. pow2(30, 4) == 30 ^ (2 ^ 4) -export function pow2(x, power, modulo) { - let res = x; - while (power-- > _0n) { - res *= res; - res %= modulo; - } - return res; -} -// Inverses number over modulo -export function invert(number, modulo) { - if (number === _0n || modulo <= _0n) { - throw new Error(`invert: expected positive integers, got n=${number} mod=${modulo}`); - } - // Euclidean GCD https://brilliant.org/wiki/extended-euclidean-algorithm/ - // Fermat's little theorem "CT-like" version inv(n) = n^(m-2) mod m is 30x slower. - let a = mod(number, modulo); - let b = modulo; - // prettier-ignore - let x = _0n, y = _1n, u = _1n, v = _0n; - while (a !== _0n) { - // JIT applies optimization if those two lines follow each other - const q = b / a; - const r = b % a; - const m = x - u * q; - const n = y - v * q; - // prettier-ignore - b = a, a = r, x = u, y = v, u = m, v = n; - } - const gcd = b; - if (gcd !== _1n) - throw new Error('invert: does not exist'); - return mod(x, modulo); -} -// Tonelli-Shanks algorithm -// Paper 1: https://eprint.iacr.org/2012/685.pdf (page 12) -// Paper 2: Square Roots from 1; 24, 51, 10 to Dan Shanks -export function tonelliShanks(P) { - // Legendre constant: used to calculate Legendre symbol (a | p), - // which denotes the value of a^((p-1)/2) (mod p). - // (a | p) ≡ 1 if a is a square (mod p) - // (a | p) ≡ -1 if a is not a square (mod p) - // (a | p) ≡ 0 if a ≡ 0 (mod p) - const legendreC = (P - _1n) / _2n; - let Q, S, Z; - // Step 1: By factoring out powers of 2 from p - 1, - // find q and s such that p - 1 = q*(2^s) with q odd - for (Q = P - _1n, S = 0; Q % _2n === _0n; Q /= _2n, S++) - ; - // Step 2: Select a non-square z such that (z | p) ≡ -1 and set c ≡ zq - for (Z = _2n; Z < P && pow(Z, legendreC, P) !== P - _1n; Z++) - ; - // Fast-path - if (S === 1) { - const p1div4 = (P + _1n) / _4n; - return function tonelliFast(Fp, n) { - const root = Fp.pow(n, p1div4); - if (!Fp.eql(Fp.sqr(root), n)) - throw new Error('Cannot find square root'); - return root; - }; - } - // Slow-path - const Q1div2 = (Q + _1n) / _2n; - return function tonelliSlow(Fp, n) { - // Step 0: Check that n is indeed a square: (n | p) should not be ≡ -1 - if (Fp.pow(n, legendreC) === Fp.neg(Fp.ONE)) - throw new Error('Cannot find square root'); - let r = S; - // TODO: will fail at Fp2/etc - let g = Fp.pow(Fp.mul(Fp.ONE, Z), Q); // will update both x and b - let x = Fp.pow(n, Q1div2); // first guess at the square root - let b = Fp.pow(n, Q); // first guess at the fudge factor - while (!Fp.eql(b, Fp.ONE)) { - if (Fp.eql(b, Fp.ZERO)) - return Fp.ZERO; // https://en.wikipedia.org/wiki/Tonelli%E2%80%93Shanks_algorithm (4. If t = 0, return r = 0) - // Find m such b^(2^m)==1 - let m = 1; - for (let t2 = Fp.sqr(b); m < r; m++) { - if (Fp.eql(t2, Fp.ONE)) - break; - t2 = Fp.sqr(t2); // t2 *= t2 - } - // NOTE: r-m-1 can be bigger than 32, need to convert to bigint before shift, otherwise there will be overflow - const ge = Fp.pow(g, _1n << BigInt(r - m - 1)); // ge = 2^(r-m-1) - g = Fp.sqr(ge); // g = ge * ge - x = Fp.mul(x, ge); // x *= ge - b = Fp.mul(b, g); // b *= g - r = m; - } - return x; - }; -} -export function FpSqrt(P) { - // NOTE: different algorithms can give different roots, it is up to user to decide which one they want. - // For example there is FpSqrtOdd/FpSqrtEven to choice root based on oddness (used for hash-to-curve). - // P ≡ 3 (mod 4) - // √n = n^((P+1)/4) - if (P % _4n === _3n) { - // Not all roots possible! - // const ORDER = - // 0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffaaabn; - // const NUM = 72057594037927816n; - const p1div4 = (P + _1n) / _4n; - return function sqrt3mod4(Fp, n) { - const root = Fp.pow(n, p1div4); - // Throw if root**2 != n - if (!Fp.eql(Fp.sqr(root), n)) - throw new Error('Cannot find square root'); - return root; - }; - } - // Atkin algorithm for q ≡ 5 (mod 8), https://eprint.iacr.org/2012/685.pdf (page 10) - if (P % _8n === _5n) { - const c1 = (P - _5n) / _8n; - return function sqrt5mod8(Fp, n) { - const n2 = Fp.mul(n, _2n); - const v = Fp.pow(n2, c1); - const nv = Fp.mul(n, v); - const i = Fp.mul(Fp.mul(nv, _2n), v); - const root = Fp.mul(nv, Fp.sub(i, Fp.ONE)); - if (!Fp.eql(Fp.sqr(root), n)) - throw new Error('Cannot find square root'); - return root; - }; - } - // P ≡ 9 (mod 16) - if (P % _16n === _9n) { - // NOTE: tonelli is too slow for bls-Fp2 calculations even on start - // Means we cannot use sqrt for constants at all! - // - // const c1 = Fp.sqrt(Fp.negate(Fp.ONE)); // 1. c1 = sqrt(-1) in F, i.e., (c1^2) == -1 in F - // const c2 = Fp.sqrt(c1); // 2. c2 = sqrt(c1) in F, i.e., (c2^2) == c1 in F - // const c3 = Fp.sqrt(Fp.negate(c1)); // 3. c3 = sqrt(-c1) in F, i.e., (c3^2) == -c1 in F - // const c4 = (P + _7n) / _16n; // 4. c4 = (q + 7) / 16 # Integer arithmetic - // sqrt = (x) => { - // let tv1 = Fp.pow(x, c4); // 1. tv1 = x^c4 - // let tv2 = Fp.mul(c1, tv1); // 2. tv2 = c1 * tv1 - // const tv3 = Fp.mul(c2, tv1); // 3. tv3 = c2 * tv1 - // let tv4 = Fp.mul(c3, tv1); // 4. tv4 = c3 * tv1 - // const e1 = Fp.equals(Fp.square(tv2), x); // 5. e1 = (tv2^2) == x - // const e2 = Fp.equals(Fp.square(tv3), x); // 6. e2 = (tv3^2) == x - // tv1 = Fp.cmov(tv1, tv2, e1); // 7. tv1 = CMOV(tv1, tv2, e1) # Select tv2 if (tv2^2) == x - // tv2 = Fp.cmov(tv4, tv3, e2); // 8. tv2 = CMOV(tv4, tv3, e2) # Select tv3 if (tv3^2) == x - // const e3 = Fp.equals(Fp.square(tv2), x); // 9. e3 = (tv2^2) == x - // return Fp.cmov(tv1, tv2, e3); // 10. z = CMOV(tv1, tv2, e3) # Select the sqrt from tv1 and tv2 - // } - } - // Other cases: Tonelli-Shanks algorithm - return tonelliShanks(P); -} -// Little-endian check for first LE bit (last BE bit); -export const isNegativeLE = (num, modulo) => (mod(num, modulo) & _1n) === _1n; -// prettier-ignore -const FIELD_FIELDS = [ - 'create', 'isValid', 'is0', 'neg', 'inv', 'sqrt', 'sqr', - 'eql', 'add', 'sub', 'mul', 'pow', 'div', - 'addN', 'subN', 'mulN', 'sqrN' -]; -export function validateField(field) { - const initial = { - ORDER: 'bigint', - MASK: 'bigint', - BYTES: 'isSafeInteger', - BITS: 'isSafeInteger', - }; - const opts = FIELD_FIELDS.reduce((map, val) => { - map[val] = 'function'; - return map; - }, initial); - return validateObject(field, opts); -} -// Generic field functions -export function FpPow(f, num, power) { - // Should have same speed as pow for bigints - // TODO: benchmark! - if (power < _0n) - throw new Error('Expected power > 0'); - if (power === _0n) - return f.ONE; - if (power === _1n) - return num; - let p = f.ONE; - let d = num; - while (power > _0n) { - if (power & _1n) - p = f.mul(p, d); - d = f.sqr(d); - power >>= _1n; - } - return p; -} -// 0 is non-invertible: non-batched version will throw on 0 -export function FpInvertBatch(f, nums) { - const tmp = new Array(nums.length); - // Walk from first to last, multiply them by each other MOD p - const lastMultiplied = nums.reduce((acc, num, i) => { - if (f.is0(num)) - return acc; - tmp[i] = acc; - return f.mul(acc, num); - }, f.ONE); - // Invert last element - const inverted = f.inv(lastMultiplied); - // Walk from last to first, multiply them by inverted each other MOD p - nums.reduceRight((acc, num, i) => { - if (f.is0(num)) - return acc; - tmp[i] = f.mul(acc, tmp[i]); - return f.mul(acc, num); - }, inverted); - return tmp; -} -export function FpDiv(f, lhs, rhs) { - return f.mul(lhs, typeof rhs === 'bigint' ? invert(rhs, f.ORDER) : f.inv(rhs)); -} -// This function returns True whenever the value x is a square in the field F. -export function FpIsSquare(f) { - const legendreConst = (f.ORDER - _1n) / _2n; // Integer arithmetic - return (x) => { - const p = f.pow(x, legendreConst); - return f.eql(p, f.ZERO) || f.eql(p, f.ONE); - }; -} -// CURVE.n lengths -export function nLength(n, nBitLength) { - // Bit size, byte size of CURVE.n - const _nBitLength = nBitLength !== undefined ? nBitLength : n.toString(2).length; - const nByteLength = Math.ceil(_nBitLength / 8); - return { nBitLength: _nBitLength, nByteLength }; -} -/** - * Initializes a galois field over prime. Non-primes are not supported for now. - * Do not init in loop: slow. Very fragile: always run a benchmark on change. - * Major performance gains: - * a) non-normalized operations like mulN instead of mul - * b) `Object.freeze` - * c) Same object shape: never add or remove keys - * @param ORDER prime positive bigint - * @param bitLen how many bits the field consumes - * @param isLE (def: false) if encoding / decoding should be in little-endian - * @param redef optional faster redefinitions of sqrt and other methods - */ -export function Field(ORDER, bitLen, isLE = false, redef = {}) { - if (ORDER <= _0n) - throw new Error(`Expected Fp ORDER > 0, got ${ORDER}`); - const { nBitLength: BITS, nByteLength: BYTES } = nLength(ORDER, bitLen); - if (BYTES > 2048) - throw new Error('Field lengths over 2048 bytes are not supported'); - const sqrtP = FpSqrt(ORDER); - const f = Object.freeze({ - ORDER, - BITS, - BYTES, - MASK: bitMask(BITS), - ZERO: _0n, - ONE: _1n, - create: (num) => mod(num, ORDER), - isValid: (num) => { - if (typeof num !== 'bigint') - throw new Error(`Invalid field element: expected bigint, got ${typeof num}`); - return _0n <= num && num < ORDER; // 0 is valid element, but it's not invertible - }, - is0: (num) => num === _0n, - isOdd: (num) => (num & _1n) === _1n, - neg: (num) => mod(-num, ORDER), - eql: (lhs, rhs) => lhs === rhs, - sqr: (num) => mod(num * num, ORDER), - add: (lhs, rhs) => mod(lhs + rhs, ORDER), - sub: (lhs, rhs) => mod(lhs - rhs, ORDER), - mul: (lhs, rhs) => mod(lhs * rhs, ORDER), - pow: (num, power) => FpPow(f, num, power), - div: (lhs, rhs) => mod(lhs * invert(rhs, ORDER), ORDER), - // Same as above, but doesn't normalize - sqrN: (num) => num * num, - addN: (lhs, rhs) => lhs + rhs, - subN: (lhs, rhs) => lhs - rhs, - mulN: (lhs, rhs) => lhs * rhs, - inv: (num) => invert(num, ORDER), - sqrt: redef.sqrt || ((n) => sqrtP(f, n)), - invertBatch: (lst) => FpInvertBatch(f, lst), - // TODO: do we really need constant cmov? - // We don't have const-time bigints anyway, so probably will be not very useful - cmov: (a, b, c) => (c ? b : a), - toBytes: (num) => (isLE ? numberToBytesLE(num, BYTES) : numberToBytesBE(num, BYTES)), - fromBytes: (bytes) => { - if (bytes.length !== BYTES) - throw new Error(`Fp.fromBytes: expected ${BYTES}, got ${bytes.length}`); - return isLE ? bytesToNumberLE(bytes) : bytesToNumberBE(bytes); - }, - }); - return Object.freeze(f); -} -export function FpSqrtOdd(Fp, elm) { - if (!Fp.isOdd) - throw new Error(`Field doesn't have isOdd`); - const root = Fp.sqrt(elm); - return Fp.isOdd(root) ? root : Fp.neg(root); -} -export function FpSqrtEven(Fp, elm) { - if (!Fp.isOdd) - throw new Error(`Field doesn't have isOdd`); - const root = Fp.sqrt(elm); - return Fp.isOdd(root) ? Fp.neg(root) : root; -} -/** - * FIPS 186 B.4.1-compliant "constant-time" private key generation utility. - * Can take (n+8) or more bytes of uniform input e.g. from CSPRNG or KDF - * and convert them into private scalar, with the modulo bias being negligible. - * Needs at least 40 bytes of input for 32-byte private key. - * https://research.kudelskisecurity.com/2020/07/28/the-definitive-guide-to-modulo-bias-and-how-to-avoid-it/ - * @param hash hash output from SHA3 or a similar function - * @param groupOrder size of subgroup - (e.g. curveFn.CURVE.n) - * @param isLE interpret hash bytes as LE num - * @returns valid private scalar - */ -export function hashToPrivateScalar(hash, groupOrder, isLE = false) { - hash = ensureBytes('privateHash', hash); - const hashLen = hash.length; - const minLen = nLength(groupOrder).nByteLength + 8; - if (minLen < 24 || hashLen < minLen || hashLen > 1024) - throw new Error(`hashToPrivateScalar: expected ${minLen}-1024 bytes of input, got ${hashLen}`); - const num = isLE ? bytesToNumberLE(hash) : bytesToNumberBE(hash); - return mod(num, groupOrder - _1n) + _1n; -} -//# sourceMappingURL=modular.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/esm/abstract/modular.js.map b/node_modules/@noble/curves/esm/abstract/modular.js.map deleted file mode 100644 index 607c1f28..00000000 --- a/node_modules/@noble/curves/esm/abstract/modular.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"modular.js","sourceRoot":"","sources":["../../src/abstract/modular.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,sDAAsD;AACtD,OAAO,EACL,OAAO,EACP,eAAe,EACf,eAAe,EACf,eAAe,EACf,eAAe,EACf,WAAW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AC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;AAC9C,CAAC;AAED;;;;;;;;;;GAUG;AACH,MAAM,UAAU,mBAAmB,CACjC,IAAyB,EACzB,UAAkB,EAClB,IAAI,GAAG,KAAK;IAEZ,IAAI,GAAG,WAAW,CAAC,aAAa,EAAE,IAAI,CAAC,CAAC;IACxC,MAAM,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC;IAC5B,MAAM,MAAM,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC,WAAW,GAAG,CAAC,CAAC;IACnD,IAAI,MAAM,GAAG,EAAE,IAAI,OAAO,GAAG,MAAM,IAAI,OAAO,GAAG,IAAI;QACnD,MAAM,IAAI,KAAK,CAAC,iCAAiC,MAAM,6BAA6B,OAAO,EAAE,CAAC,CAAC;IACjG,MAAM,GAAG,GAAG,IAAI,CAAC,CAAC,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,IAAI,CAAC,CAAC;IACjE,OAAO,GAAG,CAAC,GAAG,EAAE,UAAU,GAAG,GAAG,CAAC,GAAG,GAAG,CAAC;AAC1C,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/esm/abstract/montgomery.js b/node_modules/@noble/curves/esm/abstract/montgomery.js deleted file mode 100644 index 19a8b6eb..00000000 --- a/node_modules/@noble/curves/esm/abstract/montgomery.js +++ /dev/null @@ -1,157 +0,0 @@ -/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */ -import { mod, pow } from './modular.js'; -import { bytesToNumberLE, ensureBytes, numberToBytesLE, validateObject } from './utils.js'; -const _0n = BigInt(0); -const _1n = BigInt(1); -function validateOpts(curve) { - validateObject(curve, { - a: 'bigint', - }, { - montgomeryBits: 'isSafeInteger', - nByteLength: 'isSafeInteger', - adjustScalarBytes: 'function', - domain: 'function', - powPminus2: 'function', - Gu: 'bigint', - }); - // Set defaults - return Object.freeze({ ...curve }); -} -// NOTE: not really montgomery curve, just bunch of very specific methods for X25519/X448 (RFC 7748, https://www.rfc-editor.org/rfc/rfc7748) -// Uses only one coordinate instead of two -export function montgomery(curveDef) { - const CURVE = validateOpts(curveDef); - const { P } = CURVE; - const modP = (n) => mod(n, P); - const montgomeryBits = CURVE.montgomeryBits; - const montgomeryBytes = Math.ceil(montgomeryBits / 8); - const fieldLen = CURVE.nByteLength; - const adjustScalarBytes = CURVE.adjustScalarBytes || ((bytes) => bytes); - const powPminus2 = CURVE.powPminus2 || ((x) => pow(x, P - BigInt(2), P)); - // cswap from RFC7748. But it is not from RFC7748! - /* - cswap(swap, x_2, x_3): - dummy = mask(swap) AND (x_2 XOR x_3) - x_2 = x_2 XOR dummy - x_3 = x_3 XOR dummy - Return (x_2, x_3) - Where mask(swap) is the all-1 or all-0 word of the same length as x_2 - and x_3, computed, e.g., as mask(swap) = 0 - swap. - */ - function cswap(swap, x_2, x_3) { - const dummy = modP(swap * (x_2 - x_3)); - x_2 = modP(x_2 - dummy); - x_3 = modP(x_3 + dummy); - return [x_2, x_3]; - } - // Accepts 0 as well - function assertFieldElement(n) { - if (typeof n === 'bigint' && _0n <= n && n < P) - return n; - throw new Error('Expected valid scalar 0 < scalar < CURVE.P'); - } - // x25519 from 4 - // The constant a24 is (486662 - 2) / 4 = 121665 for curve25519/X25519 - const a24 = (CURVE.a - BigInt(2)) / BigInt(4); - /** - * - * @param pointU u coordinate (x) on Montgomery Curve 25519 - * @param scalar by which the point would be multiplied - * @returns new Point on Montgomery curve - */ - function montgomeryLadder(pointU, scalar) { - const u = assertFieldElement(pointU); - // Section 5: Implementations MUST accept non-canonical values and process them as - // if they had been reduced modulo the field prime. - const k = assertFieldElement(scalar); - const x_1 = u; - let x_2 = _1n; - let z_2 = _0n; - let x_3 = u; - let z_3 = _1n; - let swap = _0n; - let sw; - for (let t = BigInt(montgomeryBits - 1); t >= _0n; t--) { - const k_t = (k >> t) & _1n; - swap ^= k_t; - sw = cswap(swap, x_2, x_3); - x_2 = sw[0]; - x_3 = sw[1]; - sw = cswap(swap, z_2, z_3); - z_2 = sw[0]; - z_3 = sw[1]; - swap = k_t; - const A = x_2 + z_2; - const AA = modP(A * A); - const B = x_2 - z_2; - const BB = modP(B * B); - const E = AA - BB; - const C = x_3 + z_3; - const D = x_3 - z_3; - const DA = modP(D * A); - const CB = modP(C * B); - const dacb = DA + CB; - const da_cb = DA - CB; - x_3 = modP(dacb * dacb); - z_3 = modP(x_1 * modP(da_cb * da_cb)); - x_2 = modP(AA * BB); - z_2 = modP(E * (AA + modP(a24 * E))); - } - // (x_2, x_3) = cswap(swap, x_2, x_3) - sw = cswap(swap, x_2, x_3); - x_2 = sw[0]; - x_3 = sw[1]; - // (z_2, z_3) = cswap(swap, z_2, z_3) - sw = cswap(swap, z_2, z_3); - z_2 = sw[0]; - z_3 = sw[1]; - // z_2^(p - 2) - const z2 = powPminus2(z_2); - // Return x_2 * (z_2^(p - 2)) - return modP(x_2 * z2); - } - function encodeUCoordinate(u) { - return numberToBytesLE(modP(u), montgomeryBytes); - } - function decodeUCoordinate(uEnc) { - // Section 5: When receiving such an array, implementations of X25519 - // MUST mask the most significant bit in the final byte. - // This is very ugly way, but it works because fieldLen-1 is outside of bounds for X448, so this becomes NOOP - // fieldLen - scalaryBytes = 1 for X448 and = 0 for X25519 - const u = ensureBytes('u coordinate', uEnc, montgomeryBytes); - // u[fieldLen-1] crashes QuickJS (TypeError: out-of-bound numeric index) - if (fieldLen === montgomeryBytes) - u[fieldLen - 1] &= 127; // 0b0111_1111 - return bytesToNumberLE(u); - } - function decodeScalar(n) { - const bytes = ensureBytes('scalar', n); - if (bytes.length !== montgomeryBytes && bytes.length !== fieldLen) - throw new Error(`Expected ${montgomeryBytes} or ${fieldLen} bytes, got ${bytes.length}`); - return bytesToNumberLE(adjustScalarBytes(bytes)); - } - function scalarMult(scalar, u) { - const pointU = decodeUCoordinate(u); - const _scalar = decodeScalar(scalar); - const pu = montgomeryLadder(pointU, _scalar); - // The result was not contributory - // https://cr.yp.to/ecdh.html#validate - if (pu === _0n) - throw new Error('Invalid private or public key received'); - return encodeUCoordinate(pu); - } - // Computes public key from private. By doing scalar multiplication of base point. - const GuBytes = encodeUCoordinate(CURVE.Gu); - function scalarMultBase(scalar) { - return scalarMult(scalar, GuBytes); - } - return { - scalarMult, - scalarMultBase, - getSharedSecret: (privateKey, publicKey) => scalarMult(privateKey, publicKey), - getPublicKey: (privateKey) => scalarMultBase(privateKey), - utils: { randomPrivateKey: () => CURVE.randomBytes(CURVE.nByteLength) }, - GuBytes: GuBytes, - }; -} -//# sourceMappingURL=montgomery.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/esm/abstract/montgomery.js.map b/node_modules/@noble/curves/esm/abstract/montgomery.js.map deleted file mode 100644 index 6bc1a061..00000000 --- a/node_modules/@noble/curves/esm/abstract/montgomery.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"montgomery.js","sourceRoot":"","sources":["../../src/abstract/montgomery.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,OAAO,EAAE,GAAG,EAAE,GAAG,EAAE,MAAM,cAAc,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,eAAe,EAAE,cAAc,EAAE,MAAM,YAAY,CAAC;AAE3F,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;AACtB,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;AAwBtB,SAAS,YAAY,CAAC,KAAgB;IACpC,cAAc,CACZ,KAAK,EACL;QACE,CAAC,EAAE,QAAQ;KACZ,EACD;QACE,cAAc,EAAE,eAAe;QAC/B,WAAW,EAAE,eAAe;QAC5B,iBAAiB,EAAE,UAAU;QAC7B,MAAM,EAAE,UAAU;QAClB,UAAU,EAAE,UAAU;QACtB,EAAE,EAAE,QAAQ;KACb,CACF,CAAC;IACF,eAAe;IACf,OAAO,MAAM,CAAC,MAAM,CAAC,EAAE,GAAG,KAAK,EAAW,CAAC,CAAC;AAC9C,CAA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AC,MAAM,EAAE,OAAO,CAAC,CAAC;QAC7C,kCAAkC;QAClC,sCAAsC;QACtC,IAAI,EAAE,KAAK,GAAG;YAAE,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;QAC1E,OAAO,iBAAiB,CAAC,EAAE,CAAC,CAAC;IAC/B,CAAC;IACD,kFAAkF;IAClF,MAAM,OAAO,GAAG,iBAAiB,CAAC,KAAK,CAAC,EAAE,CAAC,CAAC;IAC5C,SAAS,cAAc,CAAC,MAAW;QACjC,OAAO,UAAU,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;IACrC,CAAC;IAED,OAAO;QACL,UAAU;QACV,cAAc;QACd,eAAe,EAAE,CAAC,UAAe,EAAE,SAAc,EAAE,EAAE,CAAC,UAAU,CAAC,UAAU,EAAE,SAAS,CAAC;QACvF,YAAY,EAAE,CAAC,UAAe,EAAc,EAAE,CAAC,cAAc,CAAC,UAAU,CAAC;QACzE,KAAK,EAAE,EAAE,gBAAgB,EAAE,GAAG,EAAE,CAAC,KAAK,CAAC,WAAY,CAAC,KAAK,CAAC,WAAW,CAAC,EAAE;QACxE,OAAO,EAAE,OAAO;KACjB,CAAC;AACJ,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/esm/abstract/poseidon.js b/node_modules/@noble/curves/esm/abstract/poseidon.js deleted file mode 100644 index 7ea744bc..00000000 --- a/node_modules/@noble/curves/esm/abstract/poseidon.js +++ /dev/null @@ -1,110 +0,0 @@ -/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */ -// Poseidon Hash: https://eprint.iacr.org/2019/458.pdf, https://www.poseidon-hash.info -import { FpPow, validateField } from './modular.js'; -export function validateOpts(opts) { - const { Fp } = opts; - validateField(Fp); - for (const i of ['t', 'roundsFull', 'roundsPartial']) { - if (typeof opts[i] !== 'number' || !Number.isSafeInteger(opts[i])) - throw new Error(`Poseidon: invalid param ${i}=${opts[i]} (${typeof opts[i]})`); - } - if (opts.reversePartialPowIdx !== undefined && typeof opts.reversePartialPowIdx !== 'boolean') - throw new Error(`Poseidon: invalid param reversePartialPowIdx=${opts.reversePartialPowIdx}`); - // Default is 5, but by some reasons stark uses 3 - let sboxPower = opts.sboxPower; - if (sboxPower === undefined) - sboxPower = 5; - if (typeof sboxPower !== 'number' || !Number.isSafeInteger(sboxPower)) - throw new Error(`Poseidon wrong sboxPower=${sboxPower}`); - const _sboxPower = BigInt(sboxPower); - let sboxFn = (n) => FpPow(Fp, n, _sboxPower); - // Unwrapped sbox power for common cases (195->142μs) - if (sboxPower === 3) - sboxFn = (n) => Fp.mul(Fp.sqrN(n), n); - else if (sboxPower === 5) - sboxFn = (n) => Fp.mul(Fp.sqrN(Fp.sqrN(n)), n); - if (opts.roundsFull % 2 !== 0) - throw new Error(`Poseidon roundsFull is not even: ${opts.roundsFull}`); - const rounds = opts.roundsFull + opts.roundsPartial; - if (!Array.isArray(opts.roundConstants) || opts.roundConstants.length !== rounds) - throw new Error('Poseidon: wrong round constants'); - const roundConstants = opts.roundConstants.map((rc) => { - if (!Array.isArray(rc) || rc.length !== opts.t) - throw new Error(`Poseidon wrong round constants: ${rc}`); - return rc.map((i) => { - if (typeof i !== 'bigint' || !Fp.isValid(i)) - throw new Error(`Poseidon wrong round constant=${i}`); - return Fp.create(i); - }); - }); - // MDS is TxT matrix - if (!Array.isArray(opts.mds) || opts.mds.length !== opts.t) - throw new Error('Poseidon: wrong MDS matrix'); - const mds = opts.mds.map((mdsRow) => { - if (!Array.isArray(mdsRow) || mdsRow.length !== opts.t) - throw new Error(`Poseidon MDS matrix row: ${mdsRow}`); - return mdsRow.map((i) => { - if (typeof i !== 'bigint') - throw new Error(`Poseidon MDS matrix value=${i}`); - return Fp.create(i); - }); - }); - return Object.freeze({ ...opts, rounds, sboxFn, roundConstants, mds }); -} -export function splitConstants(rc, t) { - if (typeof t !== 'number') - throw new Error('poseidonSplitConstants: wrong t'); - if (!Array.isArray(rc) || rc.length % t) - throw new Error('poseidonSplitConstants: wrong rc'); - const res = []; - let tmp = []; - for (let i = 0; i < rc.length; i++) { - tmp.push(rc[i]); - if (tmp.length === t) { - res.push(tmp); - tmp = []; - } - } - return res; -} -export function poseidon(opts) { - const { t, Fp, rounds, sboxFn, reversePartialPowIdx } = validateOpts(opts); - const halfRoundsFull = Math.floor(opts.roundsFull / 2); - const partialIdx = reversePartialPowIdx ? t - 1 : 0; - const poseidonRound = (values, isFull, idx) => { - values = values.map((i, j) => Fp.add(i, opts.roundConstants[idx][j])); - if (isFull) - values = values.map((i) => sboxFn(i)); - else - values[partialIdx] = sboxFn(values[partialIdx]); - // Matrix multiplication - values = opts.mds.map((i) => i.reduce((acc, i, j) => Fp.add(acc, Fp.mulN(i, values[j])), Fp.ZERO)); - return values; - }; - const poseidonHash = function poseidonHash(values) { - if (!Array.isArray(values) || values.length !== t) - throw new Error(`Poseidon: wrong values (expected array of bigints with length ${t})`); - values = values.map((i) => { - if (typeof i !== 'bigint') - throw new Error(`Poseidon: wrong value=${i} (${typeof i})`); - return Fp.create(i); - }); - let round = 0; - // Apply r_f/2 full rounds. - for (let i = 0; i < halfRoundsFull; i++) - values = poseidonRound(values, true, round++); - // Apply r_p partial rounds. - for (let i = 0; i < opts.roundsPartial; i++) - values = poseidonRound(values, false, round++); - // Apply r_f/2 full rounds. - for (let i = 0; i < halfRoundsFull; i++) - values = poseidonRound(values, true, round++); - if (round !== rounds) - throw new Error(`Poseidon: wrong number of rounds: last round=${round}, total=${rounds}`); - return values; - }; - // For verification in tests - poseidonHash.roundConstants = opts.roundConstants; - return poseidonHash; -} -//# sourceMappingURL=poseidon.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/esm/abstract/poseidon.js.map b/node_modules/@noble/curves/esm/abstract/poseidon.js.map deleted file mode 100644 index 8863ad28..00000000 --- a/node_modules/@noble/curves/esm/abstract/poseidon.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"poseidon.js","sourceRoot":"","sources":["../../src/abstract/poseidon.ts"],"names":[],"m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IAAI,EAAE,KAAK,EAAE,CAAC,CAAC;QAEvF,IAAI,KAAK,KAAK,MAAM;YAClB,MAAM,IAAI,KAAK,CAAC,gDAAgD,KAAK,WAAW,MAAM,EAAE,CAAC,CAAC;QAC5F,OAAO,MAAM,CAAC;IAChB,CAAC,CAAC;IACF,4BAA4B;IAC5B,YAAY,CAAC,cAAc,GAAG,IAAI,CAAC,cAAc,CAAC;IAClD,OAAO,YAAY,CAAC;AACtB,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/esm/abstract/utils.js b/node_modules/@noble/curves/esm/abstract/utils.js deleted file mode 100644 index 7839e259..00000000 --- a/node_modules/@noble/curves/esm/abstract/utils.js +++ /dev/null @@ -1,265 +0,0 @@ -/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */ -// 100 lines of code in the file are duplicated from noble-hashes (utils). -// This is OK: `abstract` directory does not use noble-hashes. -// User may opt-in into using different hashing library. This way, noble-hashes -// won't be included into their bundle. -const _0n = BigInt(0); -const _1n = BigInt(1); -const _2n = BigInt(2); -const u8a = (a) => a instanceof Uint8Array; -const hexes = Array.from({ length: 256 }, (v, i) => i.toString(16).padStart(2, '0')); -/** - * @example bytesToHex(Uint8Array.from([0xca, 0xfe, 0x01, 0x23])) // 'cafe0123' - */ -export function bytesToHex(bytes) { - if (!u8a(bytes)) - throw new Error('Uint8Array expected'); - // pre-caching improves the speed 6x - let hex = ''; - for (let i = 0; i < bytes.length; i++) { - hex += hexes[bytes[i]]; - } - return hex; -} -export function numberToHexUnpadded(num) { - const hex = num.toString(16); - return hex.length & 1 ? `0${hex}` : hex; -} -export function hexToNumber(hex) { - if (typeof hex !== 'string') - throw new Error('hex string expected, got ' + typeof hex); - // Big Endian - return BigInt(hex === '' ? '0' : `0x${hex}`); -} -/** - * @example hexToBytes('cafe0123') // Uint8Array.from([0xca, 0xfe, 0x01, 0x23]) - */ -export function hexToBytes(hex) { - if (typeof hex !== 'string') - throw new Error('hex string expected, got ' + typeof hex); - const len = hex.length; - if (len % 2) - throw new Error('padded hex string expected, got unpadded hex of length ' + len); - const array = new Uint8Array(len / 2); - for (let i = 0; i < array.length; i++) { - const j = i * 2; - const hexByte = hex.slice(j, j + 2); - const byte = Number.parseInt(hexByte, 16); - if (Number.isNaN(byte) || byte < 0) - throw new Error('Invalid byte sequence'); - array[i] = byte; - } - return array; -} -// BE: Big Endian, LE: Little Endian -export function bytesToNumberBE(bytes) { - return hexToNumber(bytesToHex(bytes)); -} -export function bytesToNumberLE(bytes) { - if (!u8a(bytes)) - throw new Error('Uint8Array expected'); - return hexToNumber(bytesToHex(Uint8Array.from(bytes).reverse())); -} -export function numberToBytesBE(n, len) { - return hexToBytes(n.toString(16).padStart(len * 2, '0')); -} -export function numberToBytesLE(n, len) { - return numberToBytesBE(n, len).reverse(); -} -// Unpadded, rarely used -export function numberToVarBytesBE(n) { - return hexToBytes(numberToHexUnpadded(n)); -} -/** - * Takes hex string or Uint8Array, converts to Uint8Array. - * Validates output length. - * Will throw error for other types. - * @param title descriptive title for an error e.g. 'private key' - * @param hex hex string or Uint8Array - * @param expectedLength optional, will compare to result array's length - * @returns - */ -export function ensureBytes(title, hex, expectedLength) { - let res; - if (typeof hex === 'string') { - try { - res = hexToBytes(hex); - } - catch (e) { - throw new Error(`${title} must be valid hex string, got "${hex}". Cause: ${e}`); - } - } - else if (u8a(hex)) { - // Uint8Array.from() instead of hash.slice() because node.js Buffer - // is instance of Uint8Array, and its slice() creates **mutable** copy - res = Uint8Array.from(hex); - } - else { - throw new Error(`${title} must be hex string or Uint8Array`); - } - const len = res.length; - if (typeof expectedLength === 'number' && len !== expectedLength) - throw new Error(`${title} expected ${expectedLength} bytes, got ${len}`); - return res; -} -/** - * Copies several Uint8Arrays into one. - */ -export function concatBytes(...arrays) { - const r = new Uint8Array(arrays.reduce((sum, a) => sum + a.length, 0)); - let pad = 0; // walk through each item, ensure they have proper type - arrays.forEach((a) => { - if (!u8a(a)) - throw new Error('Uint8Array expected'); - r.set(a, pad); - pad += a.length; - }); - return r; -} -export function equalBytes(b1, b2) { - // We don't care about timing attacks here - if (b1.length !== b2.length) - return false; - for (let i = 0; i < b1.length; i++) - if (b1[i] !== b2[i]) - return false; - return true; -} -/** - * @example utf8ToBytes('abc') // new Uint8Array([97, 98, 99]) - */ -export function utf8ToBytes(str) { - if (typeof str !== 'string') - throw new Error(`utf8ToBytes expected string, got ${typeof str}`); - return new Uint8Array(new TextEncoder().encode(str)); // https://bugzil.la/1681809 -} -// Bit operations -/** - * Calculates amount of bits in a bigint. - * Same as `n.toString(2).length` - */ -export function bitLen(n) { - let len; - for (len = 0; n > _0n; n >>= _1n, len += 1) - ; - return len; -} -/** - * Gets single bit at position. - * NOTE: first bit position is 0 (same as arrays) - * Same as `!!+Array.from(n.toString(2)).reverse()[pos]` - */ -export function bitGet(n, pos) { - return (n >> BigInt(pos)) & _1n; -} -/** - * Sets single bit at position. - */ -export const bitSet = (n, pos, value) => { - return n | ((value ? _1n : _0n) << BigInt(pos)); -}; -/** - * Calculate mask for N bits. Not using ** operator with bigints because of old engines. - * Same as BigInt(`0b${Array(i).fill('1').join('')}`) - */ -export const bitMask = (n) => (_2n << BigInt(n - 1)) - _1n; -// DRBG -const u8n = (data) => new Uint8Array(data); // creates Uint8Array -const u8fr = (arr) => Uint8Array.from(arr); // another shortcut -/** - * Minimal HMAC-DRBG from NIST 800-90 for RFC6979 sigs. - * @returns function that will call DRBG until 2nd arg returns something meaningful - * @example - * const drbg = createHmacDRBG(32, 32, hmac); - * drbg(seed, bytesToKey); // bytesToKey must return Key or undefined - */ -export function createHmacDrbg(hashLen, qByteLen, hmacFn) { - if (typeof hashLen !== 'number' || hashLen < 2) - throw new Error('hashLen must be a number'); - if (typeof qByteLen !== 'number' || qByteLen < 2) - throw new Error('qByteLen must be a number'); - if (typeof hmacFn !== 'function') - throw new Error('hmacFn must be a function'); - // Step B, Step C: set hashLen to 8*ceil(hlen/8) - let v = u8n(hashLen); // Minimal non-full-spec HMAC-DRBG from NIST 800-90 for RFC6979 sigs. - let k = u8n(hashLen); // Steps B and C of RFC6979 3.2: set hashLen, in our case always same - let i = 0; // Iterations counter, will throw when over 1000 - const reset = () => { - v.fill(1); - k.fill(0); - i = 0; - }; - const h = (...b) => hmacFn(k, v, ...b); // hmac(k)(v, ...values) - const reseed = (seed = u8n()) => { - // HMAC-DRBG reseed() function. Steps D-G - k = h(u8fr([0x00]), seed); // k = hmac(k || v || 0x00 || seed) - v = h(); // v = hmac(k || v) - if (seed.length === 0) - return; - k = h(u8fr([0x01]), seed); // k = hmac(k || v || 0x01 || seed) - v = h(); // v = hmac(k || v) - }; - const gen = () => { - // HMAC-DRBG generate() function - if (i++ >= 1000) - throw new Error('drbg: tried 1000 values'); - let len = 0; - const out = []; - while (len < qByteLen) { - v = h(); - const sl = v.slice(); - out.push(sl); - len += v.length; - } - return concatBytes(...out); - }; - const genUntil = (seed, pred) => { - reset(); - reseed(seed); // Steps D-G - let res = undefined; // Step H: grind until k is in [1..n-1] - while (!(res = pred(gen()))) - reseed(); - reset(); - return res; - }; - return genUntil; -} -// Validating curves and fields -const validatorFns = { - bigint: (val) => typeof val === 'bigint', - function: (val) => typeof val === 'function', - boolean: (val) => typeof val === 'boolean', - string: (val) => typeof val === 'string', - isSafeInteger: (val) => Number.isSafeInteger(val), - array: (val) => Array.isArray(val), - field: (val, object) => object.Fp.isValid(val), - hash: (val) => typeof val === 'function' && Number.isSafeInteger(val.outputLen), -}; -// type Record = { [P in K]: T; } -export function validateObject(object, validators, optValidators = {}) { - const checkField = (fieldName, type, isOptional) => { - const checkVal = validatorFns[type]; - if (typeof checkVal !== 'function') - throw new Error(`Invalid validator "${type}", expected function`); - const val = object[fieldName]; - if (isOptional && val === undefined) - return; - if (!checkVal(val, object)) { - throw new Error(`Invalid param ${String(fieldName)}=${val} (${typeof val}), expected ${type}`); - } - }; - for (const [fieldName, type] of Object.entries(validators)) - checkField(fieldName, type, false); - for (const [fieldName, type] of Object.entries(optValidators)) - checkField(fieldName, type, true); - return object; -} -// validate type tests -// const o: { a: number; b: number; c: number } = { a: 1, b: 5, c: 6 }; -// const z0 = validateObject(o, { a: 'isSafeInteger' }, { c: 'bigint' }); // Ok! -// // Should fail type-check -// const z1 = validateObject(o, { a: 'tmp' }, { c: 'zz' }); -// const z2 = validateObject(o, { a: 'isSafeInteger' }, { c: 'zz' }); -// const z3 = validateObject(o, { test: 'boolean', z: 'bug' }); -// const z4 = validateObject(o, { a: 'boolean', z: 'bug' }); -//# sourceMappingURL=utils.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/esm/abstract/utils.js.map b/node_modules/@noble/curves/esm/abstract/utils.js.map deleted file mode 100644 index 289afb8e..00000000 --- a/node_modules/@noble/curves/esm/abstract/utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"utils.js","sourceRoot":"","sources":["../../src/abstract/utils.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,0EAA0E;AAC1E,8DAA8D;AAC9D,+EAA+E;AAC/E,uCAAuC;AACvC,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;AACtB,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;AACtB,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;AACtB,MAAM,GAAG,GAAG,CAAC,CAAM,EAAmB,EAAE,CAAC,CAAC,YAAY,UAAU,CAAC;AAWjE,MAAM,KAAK,GAAG,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,GAAG,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC;AACrF;;GAEG;AACH,MAAM,UAAU,UAAU,CAAC,KAAiB;IAC1C,IAAI,CAAC,GAAG,CAAC,KAAK,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,qBAAqB,CAAC,C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AM,UAAU,GAAG,CAAC,SAAkB,EAAE,IAAe,EAAE,UAAmB,EAAE,EAAE;QAC9E,MAAM,QAAQ,GAAG,YAAY,CAAC,IAAI,CAAC,CAAC;QACpC,IAAI,OAAO,QAAQ,KAAK,UAAU;YAChC,MAAM,IAAI,KAAK,CAAC,sBAAsB,IAAI,sBAAsB,CAAC,CAAC;QAEpE,MAAM,GAAG,GAAG,MAAM,CAAC,SAAgC,CAAC,CAAC;QACrD,IAAI,UAAU,IAAI,GAAG,KAAK,SAAS;YAAE,OAAO;QAC5C,IAAI,CAAC,QAAQ,CAAC,GAAG,EAAE,MAAM,CAAC,EAAE;YAC1B,MAAM,IAAI,KAAK,CACb,iBAAiB,MAAM,CAAC,SAAS,CAAC,IAAI,GAAG,KAAK,OAAO,GAAG,eAAe,IAAI,EAAE,CAC9E,CAAC;SACH;IACH,CAAC,CAAC;IACF,KAAK,MAAM,CAAC,SAAS,EAAE,IAAI,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,UAAU,CAAC;QAAE,UAAU,CAAC,SAAS,EAAE,IAAK,EAAE,KAAK,CAAC,CAAC;IAChG,KAAK,MAAM,CAAC,SAAS,EAAE,IAAI,CAAC,IAAI,MAAM,CAAC,OAAO,CAAC,aAAa,CAAC;QAAE,UAAU,CAAC,SAAS,EAAE,IAAK,EAAE,IAAI,CAAC,CAAC;IAClG,OAAO,MAAM,CAAC;AAChB,CAAC;AACD,sBAAsB;AACtB,uEAAuE;AACvE,gFAAgF;AAChF,4BAA4B;AAC5B,2DAA2D;AAC3D,qEAAqE;AACrE,+DAA+D;AAC/D,4DAA4D"} \ No newline at end of file diff --git a/node_modules/@noble/curves/esm/abstract/weierstrass.js b/node_modules/@noble/curves/esm/abstract/weierstrass.js deleted file mode 100644 index 3d79ba0e..00000000 --- a/node_modules/@noble/curves/esm/abstract/weierstrass.js +++ /dev/null @@ -1,1054 +0,0 @@ -/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */ -// Short Weierstrass curve. The formula is: y² = x³ + ax + b -import * as mod from './modular.js'; -import * as ut from './utils.js'; -import { ensureBytes } from './utils.js'; -import { wNAF, validateBasic } from './curve.js'; -function validatePointOpts(curve) { - const opts = validateBasic(curve); - ut.validateObject(opts, { - a: 'field', - b: 'field', - }, { - allowedPrivateKeyLengths: 'array', - wrapPrivateKey: 'boolean', - isTorsionFree: 'function', - clearCofactor: 'function', - allowInfinityPoint: 'boolean', - fromBytes: 'function', - toBytes: 'function', - }); - const { endo, Fp, a } = opts; - if (endo) { - if (!Fp.eql(a, Fp.ZERO)) { - throw new Error('Endomorphism can only be defined for Koblitz curves that have a=0'); - } - if (typeof endo !== 'object' || - typeof endo.beta !== 'bigint' || - typeof endo.splitScalar !== 'function') { - throw new Error('Expected endomorphism with beta: bigint and splitScalar: function'); - } - } - return Object.freeze({ ...opts }); -} -// ASN.1 DER encoding utilities -const { bytesToNumberBE: b2n, hexToBytes: h2b } = ut; -export const DER = { - // asn.1 DER encoding utils - Err: class DERErr extends Error { - constructor(m = '') { - super(m); - } - }, - _parseInt(data) { - const { Err: E } = DER; - if (data.length < 2 || data[0] !== 0x02) - throw new E('Invalid signature integer tag'); - const len = data[1]; - const res = data.subarray(2, len + 2); - if (!len || res.length !== len) - throw new E('Invalid signature integer: wrong length'); - // https://crypto.stackexchange.com/a/57734 Leftmost bit of first byte is 'negative' flag, - // since we always use positive integers here. It must always be empty: - // - add zero byte if exists - // - if next byte doesn't have a flag, leading zero is not allowed (minimal encoding) - if (res[0] & 0b10000000) - throw new E('Invalid signature integer: negative'); - if (res[0] === 0x00 && !(res[1] & 0b10000000)) - throw new E('Invalid signature integer: unnecessary leading zero'); - return { d: b2n(res), l: data.subarray(len + 2) }; // d is data, l is left - }, - toSig(hex) { - // parse DER signature - const { Err: E } = DER; - const data = typeof hex === 'string' ? h2b(hex) : hex; - if (!(data instanceof Uint8Array)) - throw new Error('ui8a expected'); - let l = data.length; - if (l < 2 || data[0] != 0x30) - throw new E('Invalid signature tag'); - if (data[1] !== l - 2) - throw new E('Invalid signature: incorrect length'); - const { d: r, l: sBytes } = DER._parseInt(data.subarray(2)); - const { d: s, l: rBytesLeft } = DER._parseInt(sBytes); - if (rBytesLeft.length) - throw new E('Invalid signature: left bytes after parsing'); - return { r, s }; - }, - hexFromSig(sig) { - // Add leading zero if first byte has negative bit enabled. More details in '_parseInt' - const slice = (s) => (Number.parseInt(s[0], 16) & 0b1000 ? '00' + s : s); - const h = (num) => { - const hex = num.toString(16); - return hex.length & 1 ? `0${hex}` : hex; - }; - const s = slice(h(sig.s)); - const r = slice(h(sig.r)); - const shl = s.length / 2; - const rhl = r.length / 2; - const sl = h(shl); - const rl = h(rhl); - return `30${h(rhl + shl + 4)}02${rl}${r}02${sl}${s}`; - }, -}; -// Be friendly to bad ECMAScript parsers by not using bigint literals -// prettier-ignore -const _0n = BigInt(0), _1n = BigInt(1), _2n = BigInt(2), _3n = BigInt(3), _4n = BigInt(4); -export function weierstrassPoints(opts) { - const CURVE = validatePointOpts(opts); - const { Fp } = CURVE; // All curves has same field / group length as for now, but they can differ - const toBytes = CURVE.toBytes || - ((c, point, isCompressed) => { - const a = point.toAffine(); - return ut.concatBytes(Uint8Array.from([0x04]), Fp.toBytes(a.x), Fp.toBytes(a.y)); - }); - const fromBytes = CURVE.fromBytes || - ((bytes) => { - // const head = bytes[0]; - const tail = bytes.subarray(1); - // if (head !== 0x04) throw new Error('Only non-compressed encoding is supported'); - const x = Fp.fromBytes(tail.subarray(0, Fp.BYTES)); - const y = Fp.fromBytes(tail.subarray(Fp.BYTES, 2 * Fp.BYTES)); - return { x, y }; - }); - /** - * y² = x³ + ax + b: Short weierstrass curve formula - * @returns y² - */ - function weierstrassEquation(x) { - const { a, b } = CURVE; - const x2 = Fp.sqr(x); // x * x - const x3 = Fp.mul(x2, x); // x2 * x - return Fp.add(Fp.add(x3, Fp.mul(x, a)), b); // x3 + a * x + b - } - // Validate whether the passed curve params are valid. - // We check if curve equation works for generator point. - // `assertValidity()` won't work: `isTorsionFree()` is not available at this point in bls12-381. - // ProjectivePoint class has not been initialized yet. - if (!Fp.eql(Fp.sqr(CURVE.Gy), weierstrassEquation(CURVE.Gx))) - throw new Error('bad generator point: equation left != right'); - // Valid group elements reside in range 1..n-1 - function isWithinCurveOrder(num) { - return typeof num === 'bigint' && _0n < num && num < CURVE.n; - } - function assertGE(num) { - if (!isWithinCurveOrder(num)) - throw new Error('Expected valid bigint: 0 < bigint < curve.n'); - } - // Validates if priv key is valid and converts it to bigint. - // Supports options allowedPrivateKeyLengths and wrapPrivateKey. - function normPrivateKeyToScalar(key) { - const { allowedPrivateKeyLengths: lengths, nByteLength, wrapPrivateKey, n } = CURVE; - if (lengths && typeof key !== 'bigint') { - if (key instanceof Uint8Array) - key = ut.bytesToHex(key); - // Normalize to hex string, pad. E.g. P521 would norm 130-132 char hex to 132-char bytes - if (typeof key !== 'string' || !lengths.includes(key.length)) - throw new Error('Invalid key'); - key = key.padStart(nByteLength * 2, '0'); - } - let num; - try { - num = - typeof key === 'bigint' - ? key - : ut.bytesToNumberBE(ensureBytes('private key', key, nByteLength)); - } - catch (error) { - throw new Error(`private key must be ${nByteLength} bytes, hex or bigint, not ${typeof key}`); - } - if (wrapPrivateKey) - num = mod.mod(num, n); // disabled by default, enabled for BLS - assertGE(num); // num in range [1..N-1] - return num; - } - const pointPrecomputes = new Map(); - function assertPrjPoint(other) { - if (!(other instanceof Point)) - throw new Error('ProjectivePoint expected'); - } - /** - * Projective Point works in 3d / projective (homogeneous) coordinates: (x, y, z) ∋ (x=x/z, y=y/z) - * Default Point works in 2d / affine coordinates: (x, y) - * We're doing calculations in projective, because its operations don't require costly inversion. - */ - class Point { - constructor(px, py, pz) { - this.px = px; - this.py = py; - this.pz = pz; - if (px == null || !Fp.isValid(px)) - throw new Error('x required'); - if (py == null || !Fp.isValid(py)) - throw new Error('y required'); - if (pz == null || !Fp.isValid(pz)) - throw new Error('z required'); - } - // Does not validate if the point is on-curve. - // Use fromHex instead, or call assertValidity() later. - static fromAffine(p) { - const { x, y } = p || {}; - if (!p || !Fp.isValid(x) || !Fp.isValid(y)) - throw new Error('invalid affine point'); - if (p instanceof Point) - throw new Error('projective point not allowed'); - const is0 = (i) => Fp.eql(i, Fp.ZERO); - // fromAffine(x:0, y:0) would produce (x:0, y:0, z:1), but we need (x:0, y:1, z:0) - if (is0(x) && is0(y)) - return Point.ZERO; - return new Point(x, y, Fp.ONE); - } - get x() { - return this.toAffine().x; - } - get y() { - return this.toAffine().y; - } - /** - * Takes a bunch of Projective Points but executes only one - * inversion on all of them. Inversion is very slow operation, - * so this improves performance massively. - * Optimization: converts a list of projective points to a list of identical points with Z=1. - */ - static normalizeZ(points) { - const toInv = Fp.invertBatch(points.map((p) => p.pz)); - return points.map((p, i) => p.toAffine(toInv[i])).map(Point.fromAffine); - } - /** - * Converts hash string or Uint8Array to Point. - * @param hex short/long ECDSA hex - */ - static fromHex(hex) { - const P = Point.fromAffine(fromBytes(ensureBytes('pointHex', hex))); - P.assertValidity(); - return P; - } - // Multiplies generator point by privateKey. - static fromPrivateKey(privateKey) { - return Point.BASE.multiply(normPrivateKeyToScalar(privateKey)); - } - // "Private method", don't use it directly - _setWindowSize(windowSize) { - this._WINDOW_SIZE = windowSize; - pointPrecomputes.delete(this); - } - // A point on curve is valid if it conforms to equation. - assertValidity() { - // Zero is valid point too! - if (this.is0()) { - if (CURVE.allowInfinityPoint) - return; - throw new Error('bad point: ZERO'); - } - // Some 3rd-party test vectors require different wording between here & `fromCompressedHex` - const { x, y } = this.toAffine(); - // Check if x, y are valid field elements - if (!Fp.isValid(x) || !Fp.isValid(y)) - throw new Error('bad point: x or y not FE'); - const left = Fp.sqr(y); // y² - const right = weierstrassEquation(x); // x³ + ax + b - if (!Fp.eql(left, right)) - throw new Error('bad point: equation left != right'); - if (!this.isTorsionFree()) - throw new Error('bad point: not in prime-order subgroup'); - } - hasEvenY() { - const { y } = this.toAffine(); - if (Fp.isOdd) - return !Fp.isOdd(y); - throw new Error("Field doesn't support isOdd"); - } - /** - * Compare one point to another. - */ - equals(other) { - assertPrjPoint(other); - const { px: X1, py: Y1, pz: Z1 } = this; - const { px: X2, py: Y2, pz: Z2 } = other; - const U1 = Fp.eql(Fp.mul(X1, Z2), Fp.mul(X2, Z1)); - const U2 = Fp.eql(Fp.mul(Y1, Z2), Fp.mul(Y2, Z1)); - return U1 && U2; - } - /** - * Flips point to one corresponding to (x, -y) in Affine coordinates. - */ - negate() { - return new Point(this.px, Fp.neg(this.py), this.pz); - } - // Renes-Costello-Batina exception-free doubling formula. - // There is 30% faster Jacobian formula, but it is not complete. - // https://eprint.iacr.org/2015/1060, algorithm 3 - // Cost: 8M + 3S + 3*a + 2*b3 + 15add. - double() { - const { a, b } = CURVE; - const b3 = Fp.mul(b, _3n); - const { px: X1, py: Y1, pz: Z1 } = this; - let X3 = Fp.ZERO, Y3 = Fp.ZERO, Z3 = Fp.ZERO; // prettier-ignore - let t0 = Fp.mul(X1, X1); // step 1 - let t1 = Fp.mul(Y1, Y1); - let t2 = Fp.mul(Z1, Z1); - let t3 = Fp.mul(X1, Y1); - t3 = Fp.add(t3, t3); // step 5 - Z3 = Fp.mul(X1, Z1); - Z3 = Fp.add(Z3, Z3); - X3 = Fp.mul(a, Z3); - Y3 = Fp.mul(b3, t2); - Y3 = Fp.add(X3, Y3); // step 10 - X3 = Fp.sub(t1, Y3); - Y3 = Fp.add(t1, Y3); - Y3 = Fp.mul(X3, Y3); - X3 = Fp.mul(t3, X3); - Z3 = Fp.mul(b3, Z3); // step 15 - t2 = Fp.mul(a, t2); - t3 = Fp.sub(t0, t2); - t3 = Fp.mul(a, t3); - t3 = Fp.add(t3, Z3); - Z3 = Fp.add(t0, t0); // step 20 - t0 = Fp.add(Z3, t0); - t0 = Fp.add(t0, t2); - t0 = Fp.mul(t0, t3); - Y3 = Fp.add(Y3, t0); - t2 = Fp.mul(Y1, Z1); // step 25 - t2 = Fp.add(t2, t2); - t0 = Fp.mul(t2, t3); - X3 = Fp.sub(X3, t0); - Z3 = Fp.mul(t2, t1); - Z3 = Fp.add(Z3, Z3); // step 30 - Z3 = Fp.add(Z3, Z3); - return new Point(X3, Y3, Z3); - } - // Renes-Costello-Batina exception-free addition formula. - // There is 30% faster Jacobian formula, but it is not complete. - // https://eprint.iacr.org/2015/1060, algorithm 1 - // Cost: 12M + 0S + 3*a + 3*b3 + 23add. - add(other) { - assertPrjPoint(other); - const { px: X1, py: Y1, pz: Z1 } = this; - const { px: X2, py: Y2, pz: Z2 } = other; - let X3 = Fp.ZERO, Y3 = Fp.ZERO, Z3 = Fp.ZERO; // prettier-ignore - const a = CURVE.a; - const b3 = Fp.mul(CURVE.b, _3n); - let t0 = Fp.mul(X1, X2); // step 1 - let t1 = Fp.mul(Y1, Y2); - let t2 = Fp.mul(Z1, Z2); - let t3 = Fp.add(X1, Y1); - let t4 = Fp.add(X2, Y2); // step 5 - t3 = Fp.mul(t3, t4); - t4 = Fp.add(t0, t1); - t3 = Fp.sub(t3, t4); - t4 = Fp.add(X1, Z1); - let t5 = Fp.add(X2, Z2); // step 10 - t4 = Fp.mul(t4, t5); - t5 = Fp.add(t0, t2); - t4 = Fp.sub(t4, t5); - t5 = Fp.add(Y1, Z1); - X3 = Fp.add(Y2, Z2); // step 15 - t5 = Fp.mul(t5, X3); - X3 = Fp.add(t1, t2); - t5 = Fp.sub(t5, X3); - Z3 = Fp.mul(a, t4); - X3 = Fp.mul(b3, t2); // step 20 - Z3 = Fp.add(X3, Z3); - X3 = Fp.sub(t1, Z3); - Z3 = Fp.add(t1, Z3); - Y3 = Fp.mul(X3, Z3); - t1 = Fp.add(t0, t0); // step 25 - t1 = Fp.add(t1, t0); - t2 = Fp.mul(a, t2); - t4 = Fp.mul(b3, t4); - t1 = Fp.add(t1, t2); - t2 = Fp.sub(t0, t2); // step 30 - t2 = Fp.mul(a, t2); - t4 = Fp.add(t4, t2); - t0 = Fp.mul(t1, t4); - Y3 = Fp.add(Y3, t0); - t0 = Fp.mul(t5, t4); // step 35 - X3 = Fp.mul(t3, X3); - X3 = Fp.sub(X3, t0); - t0 = Fp.mul(t3, t1); - Z3 = Fp.mul(t5, Z3); - Z3 = Fp.add(Z3, t0); // step 40 - return new Point(X3, Y3, Z3); - } - subtract(other) { - return this.add(other.negate()); - } - is0() { - return this.equals(Point.ZERO); - } - wNAF(n) { - return wnaf.wNAFCached(this, pointPrecomputes, n, (comp) => { - const toInv = Fp.invertBatch(comp.map((p) => p.pz)); - return comp.map((p, i) => p.toAffine(toInv[i])).map(Point.fromAffine); - }); - } - /** - * Non-constant-time multiplication. Uses double-and-add algorithm. - * It's faster, but should only be used when you don't care about - * an exposed private key e.g. sig verification, which works over *public* keys. - */ - multiplyUnsafe(n) { - const I = Point.ZERO; - if (n === _0n) - return I; - assertGE(n); // Will throw on 0 - if (n === _1n) - return this; - const { endo } = CURVE; - if (!endo) - return wnaf.unsafeLadder(this, n); - // Apply endomorphism - let { k1neg, k1, k2neg, k2 } = endo.splitScalar(n); - let k1p = I; - let k2p = I; - let d = this; - while (k1 > _0n || k2 > _0n) { - if (k1 & _1n) - k1p = k1p.add(d); - if (k2 & _1n) - k2p = k2p.add(d); - d = d.double(); - k1 >>= _1n; - k2 >>= _1n; - } - if (k1neg) - k1p = k1p.negate(); - if (k2neg) - k2p = k2p.negate(); - k2p = new Point(Fp.mul(k2p.px, endo.beta), k2p.py, k2p.pz); - return k1p.add(k2p); - } - /** - * Constant time multiplication. - * Uses wNAF method. Windowed method may be 10% faster, - * but takes 2x longer to generate and consumes 2x memory. - * Uses precomputes when available. - * Uses endomorphism for Koblitz curves. - * @param scalar by which the point would be multiplied - * @returns New point - */ - multiply(scalar) { - assertGE(scalar); - let n = scalar; - let point, fake; // Fake point is used to const-time mult - const { endo } = CURVE; - if (endo) { - const { k1neg, k1, k2neg, k2 } = endo.splitScalar(n); - let { p: k1p, f: f1p } = this.wNAF(k1); - let { p: k2p, f: f2p } = this.wNAF(k2); - k1p = wnaf.constTimeNegate(k1neg, k1p); - k2p = wnaf.constTimeNegate(k2neg, k2p); - k2p = new Point(Fp.mul(k2p.px, endo.beta), k2p.py, k2p.pz); - point = k1p.add(k2p); - fake = f1p.add(f2p); - } - else { - const { p, f } = this.wNAF(n); - point = p; - fake = f; - } - // Normalize `z` for both points, but return only real one - return Point.normalizeZ([point, fake])[0]; - } - /** - * Efficiently calculate `aP + bQ`. Unsafe, can expose private key, if used incorrectly. - * Not using Strauss-Shamir trick: precomputation tables are faster. - * The trick could be useful if both P and Q are not G (not in our case). - * @returns non-zero affine point - */ - multiplyAndAddUnsafe(Q, a, b) { - const G = Point.BASE; // No Strauss-Shamir trick: we have 10% faster G precomputes - const mul = (P, a // Select faster multiply() method - ) => (a === _0n || a === _1n || !P.equals(G) ? P.multiplyUnsafe(a) : P.multiply(a)); - const sum = mul(this, a).add(mul(Q, b)); - return sum.is0() ? undefined : sum; - } - // Converts Projective point to affine (x, y) coordinates. - // Can accept precomputed Z^-1 - for example, from invertBatch. - // (x, y, z) ∋ (x=x/z, y=y/z) - toAffine(iz) { - const { px: x, py: y, pz: z } = this; - const is0 = this.is0(); - // If invZ was 0, we return zero point. However we still want to execute - // all operations, so we replace invZ with a random number, 1. - if (iz == null) - iz = is0 ? Fp.ONE : Fp.inv(z); - const ax = Fp.mul(x, iz); - const ay = Fp.mul(y, iz); - const zz = Fp.mul(z, iz); - if (is0) - return { x: Fp.ZERO, y: Fp.ZERO }; - if (!Fp.eql(zz, Fp.ONE)) - throw new Error('invZ was invalid'); - return { x: ax, y: ay }; - } - isTorsionFree() { - const { h: cofactor, isTorsionFree } = CURVE; - if (cofactor === _1n) - return true; // No subgroups, always torsion-free - if (isTorsionFree) - return isTorsionFree(Point, this); - throw new Error('isTorsionFree() has not been declared for the elliptic curve'); - } - clearCofactor() { - const { h: cofactor, clearCofactor } = CURVE; - if (cofactor === _1n) - return this; // Fast-path - if (clearCofactor) - return clearCofactor(Point, this); - return this.multiplyUnsafe(CURVE.h); - } - toRawBytes(isCompressed = true) { - this.assertValidity(); - return toBytes(Point, this, isCompressed); - } - toHex(isCompressed = true) { - return ut.bytesToHex(this.toRawBytes(isCompressed)); - } - } - Point.BASE = new Point(CURVE.Gx, CURVE.Gy, Fp.ONE); - Point.ZERO = new Point(Fp.ZERO, Fp.ONE, Fp.ZERO); - const _bits = CURVE.nBitLength; - const wnaf = wNAF(Point, CURVE.endo ? Math.ceil(_bits / 2) : _bits); - // Validate if generator point is on curve - return { - CURVE, - ProjectivePoint: Point, - normPrivateKeyToScalar, - weierstrassEquation, - isWithinCurveOrder, - }; -} -function validateOpts(curve) { - const opts = validateBasic(curve); - ut.validateObject(opts, { - hash: 'hash', - hmac: 'function', - randomBytes: 'function', - }, { - bits2int: 'function', - bits2int_modN: 'function', - lowS: 'boolean', - }); - return Object.freeze({ lowS: true, ...opts }); -} -export function weierstrass(curveDef) { - const CURVE = validateOpts(curveDef); - const { Fp, n: CURVE_ORDER } = CURVE; - const compressedLen = Fp.BYTES + 1; // e.g. 33 for 32 - const uncompressedLen = 2 * Fp.BYTES + 1; // e.g. 65 for 32 - function isValidFieldElement(num) { - return _0n < num && num < Fp.ORDER; // 0 is banned since it's not invertible FE - } - function modN(a) { - return mod.mod(a, CURVE_ORDER); - } - function invN(a) { - return mod.invert(a, CURVE_ORDER); - } - const { ProjectivePoint: Point, normPrivateKeyToScalar, weierstrassEquation, isWithinCurveOrder, } = weierstrassPoints({ - ...CURVE, - toBytes(c, point, isCompressed) { - const a = point.toAffine(); - const x = Fp.toBytes(a.x); - const cat = ut.concatBytes; - if (isCompressed) { - return cat(Uint8Array.from([point.hasEvenY() ? 0x02 : 0x03]), x); - } - else { - return cat(Uint8Array.from([0x04]), x, Fp.toBytes(a.y)); - } - }, - fromBytes(bytes) { - const len = bytes.length; - const head = bytes[0]; - const tail = bytes.subarray(1); - // this.assertValidity() is done inside of fromHex - if (len === compressedLen && (head === 0x02 || head === 0x03)) { - const x = ut.bytesToNumberBE(tail); - if (!isValidFieldElement(x)) - throw new Error('Point is not on curve'); - const y2 = weierstrassEquation(x); // y² = x³ + ax + b - let y = Fp.sqrt(y2); // y = y² ^ (p+1)/4 - const isYOdd = (y & _1n) === _1n; - // ECDSA - const isHeadOdd = (head & 1) === 1; - if (isHeadOdd !== isYOdd) - y = Fp.neg(y); - return { x, y }; - } - else if (len === uncompressedLen && head === 0x04) { - const x = Fp.fromBytes(tail.subarray(0, Fp.BYTES)); - const y = Fp.fromBytes(tail.subarray(Fp.BYTES, 2 * Fp.BYTES)); - return { x, y }; - } - else { - throw new Error(`Point of length ${len} was invalid. Expected ${compressedLen} compressed bytes or ${uncompressedLen} uncompressed bytes`); - } - }, - }); - const numToNByteStr = (num) => ut.bytesToHex(ut.numberToBytesBE(num, CURVE.nByteLength)); - function isBiggerThanHalfOrder(number) { - const HALF = CURVE_ORDER >> _1n; - return number > HALF; - } - function normalizeS(s) { - return isBiggerThanHalfOrder(s) ? modN(-s) : s; - } - // slice bytes num - const slcNum = (b, from, to) => ut.bytesToNumberBE(b.slice(from, to)); - /** - * ECDSA signature with its (r, s) properties. Supports DER & compact representations. - */ - class Signature { - constructor(r, s, recovery) { - this.r = r; - this.s = s; - this.recovery = recovery; - this.assertValidity(); - } - // pair (bytes of r, bytes of s) - static fromCompact(hex) { - const l = CURVE.nByteLength; - hex = ensureBytes('compactSignature', hex, l * 2); - return new Signature(slcNum(hex, 0, l), slcNum(hex, l, 2 * l)); - } - // DER encoded ECDSA signature - // https://bitcoin.stackexchange.com/questions/57644/what-are-the-parts-of-a-bitcoin-transaction-input-script - static fromDER(hex) { - const { r, s } = DER.toSig(ensureBytes('DER', hex)); - return new Signature(r, s); - } - assertValidity() { - // can use assertGE here - if (!isWithinCurveOrder(this.r)) - throw new Error('r must be 0 < r < CURVE.n'); - if (!isWithinCurveOrder(this.s)) - throw new Error('s must be 0 < s < CURVE.n'); - } - addRecoveryBit(recovery) { - return new Signature(this.r, this.s, recovery); - } - recoverPublicKey(msgHash) { - const { r, s, recovery: rec } = this; - const h = bits2int_modN(ensureBytes('msgHash', msgHash)); // Truncate hash - if (rec == null || ![0, 1, 2, 3].includes(rec)) - throw new Error('recovery id invalid'); - const radj = rec === 2 || rec === 3 ? r + CURVE.n : r; - if (radj >= Fp.ORDER) - throw new Error('recovery id 2 or 3 invalid'); - const prefix = (rec & 1) === 0 ? '02' : '03'; - const R = Point.fromHex(prefix + numToNByteStr(radj)); - const ir = invN(radj); // r^-1 - const u1 = modN(-h * ir); // -hr^-1 - const u2 = modN(s * ir); // sr^-1 - const Q = Point.BASE.multiplyAndAddUnsafe(R, u1, u2); // (sr^-1)R-(hr^-1)G = -(hr^-1)G + (sr^-1) - if (!Q) - throw new Error('point at infinify'); // unsafe is fine: no priv data leaked - Q.assertValidity(); - return Q; - } - // Signatures should be low-s, to prevent malleability. - hasHighS() { - return isBiggerThanHalfOrder(this.s); - } - normalizeS() { - return this.hasHighS() ? new Signature(this.r, modN(-this.s), this.recovery) : this; - } - // DER-encoded - toDERRawBytes() { - return ut.hexToBytes(this.toDERHex()); - } - toDERHex() { - return DER.hexFromSig({ r: this.r, s: this.s }); - } - // padded bytes of r, then padded bytes of s - toCompactRawBytes() { - return ut.hexToBytes(this.toCompactHex()); - } - toCompactHex() { - return numToNByteStr(this.r) + numToNByteStr(this.s); - } - } - const utils = { - isValidPrivateKey(privateKey) { - try { - normPrivateKeyToScalar(privateKey); - return true; - } - catch (error) { - return false; - } - }, - normPrivateKeyToScalar: normPrivateKeyToScalar, - /** - * Produces cryptographically secure private key from random of size (nBitLength+64) - * as per FIPS 186 B.4.1 with modulo bias being neglible. - */ - randomPrivateKey: () => { - const rand = CURVE.randomBytes(Fp.BYTES + 8); - const num = mod.hashToPrivateScalar(rand, CURVE_ORDER); - return ut.numberToBytesBE(num, CURVE.nByteLength); - }, - /** - * Creates precompute table for an arbitrary EC point. Makes point "cached". - * Allows to massively speed-up `point.multiply(scalar)`. - * @returns cached point - * @example - * const fast = utils.precompute(8, ProjectivePoint.fromHex(someonesPubKey)); - * fast.multiply(privKey); // much faster ECDH now - */ - precompute(windowSize = 8, point = Point.BASE) { - point._setWindowSize(windowSize); - point.multiply(BigInt(3)); // 3 is arbitrary, just need any number here - return point; - }, - }; - /** - * Computes public key for a private key. Checks for validity of the private key. - * @param privateKey private key - * @param isCompressed whether to return compact (default), or full key - * @returns Public key, full when isCompressed=false; short when isCompressed=true - */ - function getPublicKey(privateKey, isCompressed = true) { - return Point.fromPrivateKey(privateKey).toRawBytes(isCompressed); - } - /** - * Quick and dirty check for item being public key. Does not validate hex, or being on-curve. - */ - function isProbPub(item) { - const arr = item instanceof Uint8Array; - const str = typeof item === 'string'; - const len = (arr || str) && item.length; - if (arr) - return len === compressedLen || len === uncompressedLen; - if (str) - return len === 2 * compressedLen || len === 2 * uncompressedLen; - if (item instanceof Point) - return true; - return false; - } - /** - * ECDH (Elliptic Curve Diffie Hellman). - * Computes shared public key from private key and public key. - * Checks: 1) private key validity 2) shared key is on-curve. - * Does NOT hash the result. - * @param privateA private key - * @param publicB different public key - * @param isCompressed whether to return compact (default), or full key - * @returns shared public key - */ - function getSharedSecret(privateA, publicB, isCompressed = true) { - if (isProbPub(privateA)) - throw new Error('first arg must be private key'); - if (!isProbPub(publicB)) - throw new Error('second arg must be public key'); - const b = Point.fromHex(publicB); // check for being on-curve - return b.multiply(normPrivateKeyToScalar(privateA)).toRawBytes(isCompressed); - } - // RFC6979: ensure ECDSA msg is X bytes and < N. RFC suggests optional truncating via bits2octets. - // FIPS 186-4 4.6 suggests the leftmost min(nBitLen, outLen) bits, which matches bits2int. - // bits2int can produce res>N, we can do mod(res, N) since the bitLen is the same. - // int2octets can't be used; pads small msgs with 0: unacceptatble for trunc as per RFC vectors - const bits2int = CURVE.bits2int || - function (bytes) { - // For curves with nBitLength % 8 !== 0: bits2octets(bits2octets(m)) !== bits2octets(m) - // for some cases, since bytes.length * 8 is not actual bitLength. - const num = ut.bytesToNumberBE(bytes); // check for == u8 done here - const delta = bytes.length * 8 - CURVE.nBitLength; // truncate to nBitLength leftmost bits - return delta > 0 ? num >> BigInt(delta) : num; - }; - const bits2int_modN = CURVE.bits2int_modN || - function (bytes) { - return modN(bits2int(bytes)); // can't use bytesToNumberBE here - }; - // NOTE: pads output with zero as per spec - const ORDER_MASK = ut.bitMask(CURVE.nBitLength); - /** - * Converts to bytes. Checks if num in `[0..ORDER_MASK-1]` e.g.: `[0..2^256-1]`. - */ - function int2octets(num) { - if (typeof num !== 'bigint') - throw new Error('bigint expected'); - if (!(_0n <= num && num < ORDER_MASK)) - throw new Error(`bigint expected < 2^${CURVE.nBitLength}`); - // works with order, can have different size than numToField! - return ut.numberToBytesBE(num, CURVE.nByteLength); - } - // Steps A, D of RFC6979 3.2 - // Creates RFC6979 seed; converts msg/privKey to numbers. - // Used only in sign, not in verify. - // NOTE: we cannot assume here that msgHash has same amount of bytes as curve order, this will be wrong at least for P521. - // Also it can be bigger for P224 + SHA256 - function prepSig(msgHash, privateKey, opts = defaultSigOpts) { - if (['recovered', 'canonical'].some((k) => k in opts)) - throw new Error('sign() legacy options not supported'); - const { hash, randomBytes } = CURVE; - let { lowS, prehash, extraEntropy: ent } = opts; // generates low-s sigs by default - if (lowS == null) - lowS = true; // RFC6979 3.2: we skip step A, because we already provide hash - msgHash = ensureBytes('msgHash', msgHash); - if (prehash) - msgHash = ensureBytes('prehashed msgHash', hash(msgHash)); - // We can't later call bits2octets, since nested bits2int is broken for curves - // with nBitLength % 8 !== 0. Because of that, we unwrap it here as int2octets call. - // const bits2octets = (bits) => int2octets(bits2int_modN(bits)) - const h1int = bits2int_modN(msgHash); - const d = normPrivateKeyToScalar(privateKey); // validate private key, convert to bigint - const seedArgs = [int2octets(d), int2octets(h1int)]; - // extraEntropy. RFC6979 3.6: additional k' (optional). - if (ent != null) { - // K = HMAC_K(V || 0x00 || int2octets(x) || bits2octets(h1) || k') - const e = ent === true ? randomBytes(Fp.BYTES) : ent; // generate random bytes OR pass as-is - seedArgs.push(ensureBytes('extraEntropy', e, Fp.BYTES)); // check for being of size BYTES - } - const seed = ut.concatBytes(...seedArgs); // Step D of RFC6979 3.2 - const m = h1int; // NOTE: no need to call bits2int second time here, it is inside truncateHash! - // Converts signature params into point w r/s, checks result for validity. - function k2sig(kBytes) { - // RFC 6979 Section 3.2, step 3: k = bits2int(T) - const k = bits2int(kBytes); // Cannot use fields methods, since it is group element - if (!isWithinCurveOrder(k)) - return; // Important: all mod() calls here must be done over N - const ik = invN(k); // k^-1 mod n - const q = Point.BASE.multiply(k).toAffine(); // q = Gk - const r = modN(q.x); // r = q.x mod n - if (r === _0n) - return; - // Can use scalar blinding b^-1(bm + bdr) where b ∈ [1,q−1] according to - // https://tches.iacr.org/index.php/TCHES/article/view/7337/6509. We've decided against it: - // a) dependency on CSPRNG b) 15% slowdown c) doesn't really help since bigints are not CT - const s = modN(ik * modN(m + r * d)); // Not using blinding here - if (s === _0n) - return; - let recovery = (q.x === r ? 0 : 2) | Number(q.y & _1n); // recovery bit (2 or 3, when q.x > n) - let normS = s; - if (lowS && isBiggerThanHalfOrder(s)) { - normS = normalizeS(s); // if lowS was passed, ensure s is always - recovery ^= 1; // // in the bottom half of N - } - return new Signature(r, normS, recovery); // use normS, not s - } - return { seed, k2sig }; - } - const defaultSigOpts = { lowS: CURVE.lowS, prehash: false }; - const defaultVerOpts = { lowS: CURVE.lowS, prehash: false }; - /** - * Signs message hash with a private key. - * ``` - * sign(m, d, k) where - * (x, y) = G × k - * r = x mod n - * s = (m + dr)/k mod n - * ``` - * @param msgHash NOT message. msg needs to be hashed to `msgHash`, or use `prehash`. - * @param privKey private key - * @param opts lowS for non-malleable sigs. extraEntropy for mixing randomness into k. prehash will hash first arg. - * @returns signature with recovery param - */ - function sign(msgHash, privKey, opts = defaultSigOpts) { - const { seed, k2sig } = prepSig(msgHash, privKey, opts); // Steps A, D of RFC6979 3.2. - const C = CURVE; - const drbg = ut.createHmacDrbg(C.hash.outputLen, C.nByteLength, C.hmac); - return drbg(seed, k2sig); // Steps B, C, D, E, F, G - } - // Enable precomputes. Slows down first publicKey computation by 20ms. - Point.BASE._setWindowSize(8); - // utils.precompute(8, ProjectivePoint.BASE) - /** - * Verifies a signature against message hash and public key. - * Rejects lowS signatures by default: to override, - * specify option `{lowS: false}`. Implements section 4.1.4 from https://www.secg.org/sec1-v2.pdf: - * - * ``` - * verify(r, s, h, P) where - * U1 = hs^-1 mod n - * U2 = rs^-1 mod n - * R = U1⋅G - U2⋅P - * mod(R.x, n) == r - * ``` - */ - function verify(signature, msgHash, publicKey, opts = defaultVerOpts) { - const sg = signature; - msgHash = ensureBytes('msgHash', msgHash); - publicKey = ensureBytes('publicKey', publicKey); - if ('strict' in opts) - throw new Error('options.strict was renamed to lowS'); - const { lowS, prehash } = opts; - let _sig = undefined; - let P; - try { - if (typeof sg === 'string' || sg instanceof Uint8Array) { - // Signature can be represented in 2 ways: compact (2*nByteLength) & DER (variable-length). - // Since DER can also be 2*nByteLength bytes, we check for it first. - try { - _sig = Signature.fromDER(sg); - } - catch (derError) { - if (!(derError instanceof DER.Err)) - throw derError; - _sig = Signature.fromCompact(sg); - } - } - else if (typeof sg === 'object' && typeof sg.r === 'bigint' && typeof sg.s === 'bigint') { - const { r, s } = sg; - _sig = new Signature(r, s); - } - else { - throw new Error('PARSE'); - } - P = Point.fromHex(publicKey); - } - catch (error) { - if (error.message === 'PARSE') - throw new Error(`signature must be Signature instance, Uint8Array or hex string`); - return false; - } - if (lowS && _sig.hasHighS()) - return false; - if (prehash) - msgHash = CURVE.hash(msgHash); - const { r, s } = _sig; - const h = bits2int_modN(msgHash); // Cannot use fields methods, since it is group element - const is = invN(s); // s^-1 - const u1 = modN(h * is); // u1 = hs^-1 mod n - const u2 = modN(r * is); // u2 = rs^-1 mod n - const R = Point.BASE.multiplyAndAddUnsafe(P, u1, u2)?.toAffine(); // R = u1⋅G + u2⋅P - if (!R) - return false; - const v = modN(R.x); - return v === r; - } - return { - CURVE, - getPublicKey, - getSharedSecret, - sign, - verify, - ProjectivePoint: Point, - Signature, - utils, - }; -} -/** - * Implementation of the Shallue and van de Woestijne method for any weierstrass curve. - * TODO: check if there is a way to merge this with uvRatio in Edwards; move to modular. - * b = True and y = sqrt(u / v) if (u / v) is square in F, and - * b = False and y = sqrt(Z * (u / v)) otherwise. - * @param Fp - * @param Z - * @returns - */ -export function SWUFpSqrtRatio(Fp, Z) { - // Generic implementation - const q = Fp.ORDER; - let l = _0n; - for (let o = q - _1n; o % _2n === _0n; o /= _2n) - l += _1n; - const c1 = l; // 1. c1, the largest integer such that 2^c1 divides q - 1. - // We need 2n ** c1 and 2n ** (c1-1). We can't use **; but we can use <<. - // 2n ** c1 == 2n << (c1-1) - const _2n_pow_c1_1 = _2n << (c1 - _1n - _1n); - const _2n_pow_c1 = _2n_pow_c1_1 * _2n; - const c2 = (q - _1n) / _2n_pow_c1; // 2. c2 = (q - 1) / (2^c1) # Integer arithmetic - const c3 = (c2 - _1n) / _2n; // 3. c3 = (c2 - 1) / 2 # Integer arithmetic - const c4 = _2n_pow_c1 - _1n; // 4. c4 = 2^c1 - 1 # Integer arithmetic - const c5 = _2n_pow_c1_1; // 5. c5 = 2^(c1 - 1) # Integer arithmetic - const c6 = Fp.pow(Z, c2); // 6. c6 = Z^c2 - const c7 = Fp.pow(Z, (c2 + _1n) / _2n); // 7. c7 = Z^((c2 + 1) / 2) - let sqrtRatio = (u, v) => { - let tv1 = c6; // 1. tv1 = c6 - let tv2 = Fp.pow(v, c4); // 2. tv2 = v^c4 - let tv3 = Fp.sqr(tv2); // 3. tv3 = tv2^2 - tv3 = Fp.mul(tv3, v); // 4. tv3 = tv3 * v - let tv5 = Fp.mul(u, tv3); // 5. tv5 = u * tv3 - tv5 = Fp.pow(tv5, c3); // 6. tv5 = tv5^c3 - tv5 = Fp.mul(tv5, tv2); // 7. tv5 = tv5 * tv2 - tv2 = Fp.mul(tv5, v); // 8. tv2 = tv5 * v - tv3 = Fp.mul(tv5, u); // 9. tv3 = tv5 * u - let tv4 = Fp.mul(tv3, tv2); // 10. tv4 = tv3 * tv2 - tv5 = Fp.pow(tv4, c5); // 11. tv5 = tv4^c5 - let isQR = Fp.eql(tv5, Fp.ONE); // 12. isQR = tv5 == 1 - tv2 = Fp.mul(tv3, c7); // 13. tv2 = tv3 * c7 - tv5 = Fp.mul(tv4, tv1); // 14. tv5 = tv4 * tv1 - tv3 = Fp.cmov(tv2, tv3, isQR); // 15. tv3 = CMOV(tv2, tv3, isQR) - tv4 = Fp.cmov(tv5, tv4, isQR); // 16. tv4 = CMOV(tv5, tv4, isQR) - // 17. for i in (c1, c1 - 1, ..., 2): - for (let i = c1; i > _1n; i--) { - let tv5 = i - _2n; // 18. tv5 = i - 2 - tv5 = _2n << (tv5 - _1n); // 19. tv5 = 2^tv5 - let tvv5 = Fp.pow(tv4, tv5); // 20. tv5 = tv4^tv5 - const e1 = Fp.eql(tvv5, Fp.ONE); // 21. e1 = tv5 == 1 - tv2 = Fp.mul(tv3, tv1); // 22. tv2 = tv3 * tv1 - tv1 = Fp.mul(tv1, tv1); // 23. tv1 = tv1 * tv1 - tvv5 = Fp.mul(tv4, tv1); // 24. tv5 = tv4 * tv1 - tv3 = Fp.cmov(tv2, tv3, e1); // 25. tv3 = CMOV(tv2, tv3, e1) - tv4 = Fp.cmov(tvv5, tv4, e1); // 26. tv4 = CMOV(tv5, tv4, e1) - } - return { isValid: isQR, value: tv3 }; - }; - if (Fp.ORDER % _4n === _3n) { - // sqrt_ratio_3mod4(u, v) - const c1 = (Fp.ORDER - _3n) / _4n; // 1. c1 = (q - 3) / 4 # Integer arithmetic - const c2 = Fp.sqrt(Fp.neg(Z)); // 2. c2 = sqrt(-Z) - sqrtRatio = (u, v) => { - let tv1 = Fp.sqr(v); // 1. tv1 = v^2 - const tv2 = Fp.mul(u, v); // 2. tv2 = u * v - tv1 = Fp.mul(tv1, tv2); // 3. tv1 = tv1 * tv2 - let y1 = Fp.pow(tv1, c1); // 4. y1 = tv1^c1 - y1 = Fp.mul(y1, tv2); // 5. y1 = y1 * tv2 - const y2 = Fp.mul(y1, c2); // 6. y2 = y1 * c2 - const tv3 = Fp.mul(Fp.sqr(y1), v); // 7. tv3 = y1^2; 8. tv3 = tv3 * v - const isQR = Fp.eql(tv3, u); // 9. isQR = tv3 == u - let y = Fp.cmov(y2, y1, isQR); // 10. y = CMOV(y2, y1, isQR) - return { isValid: isQR, value: y }; // 11. return (isQR, y) isQR ? y : y*c2 - }; - } - // No curves uses that - // if (Fp.ORDER % _8n === _5n) // sqrt_ratio_5mod8 - return sqrtRatio; -} -/** - * From draft-irtf-cfrg-hash-to-curve-16 - */ -export function mapToCurveSimpleSWU(Fp, opts) { - mod.validateField(Fp); - if (!Fp.isValid(opts.A) || !Fp.isValid(opts.B) || !Fp.isValid(opts.Z)) - throw new Error('mapToCurveSimpleSWU: invalid opts'); - const sqrtRatio = SWUFpSqrtRatio(Fp, opts.Z); - if (!Fp.isOdd) - throw new Error('Fp.isOdd is not implemented!'); - // Input: u, an element of F. - // Output: (x, y), a point on E. - return (u) => { - // prettier-ignore - let tv1, tv2, tv3, tv4, tv5, tv6, x, y; - tv1 = Fp.sqr(u); // 1. tv1 = u^2 - tv1 = Fp.mul(tv1, opts.Z); // 2. tv1 = Z * tv1 - tv2 = Fp.sqr(tv1); // 3. tv2 = tv1^2 - tv2 = Fp.add(tv2, tv1); // 4. tv2 = tv2 + tv1 - tv3 = Fp.add(tv2, Fp.ONE); // 5. tv3 = tv2 + 1 - tv3 = Fp.mul(tv3, opts.B); // 6. tv3 = B * tv3 - tv4 = Fp.cmov(opts.Z, Fp.neg(tv2), !Fp.eql(tv2, Fp.ZERO)); // 7. tv4 = CMOV(Z, -tv2, tv2 != 0) - tv4 = Fp.mul(tv4, opts.A); // 8. tv4 = A * tv4 - tv2 = Fp.sqr(tv3); // 9. tv2 = tv3^2 - tv6 = Fp.sqr(tv4); // 10. tv6 = tv4^2 - tv5 = Fp.mul(tv6, opts.A); // 11. tv5 = A * tv6 - tv2 = Fp.add(tv2, tv5); // 12. tv2 = tv2 + tv5 - tv2 = Fp.mul(tv2, tv3); // 13. tv2 = tv2 * tv3 - tv6 = Fp.mul(tv6, tv4); // 14. tv6 = tv6 * tv4 - tv5 = Fp.mul(tv6, opts.B); // 15. tv5 = B * tv6 - tv2 = Fp.add(tv2, tv5); // 16. tv2 = tv2 + tv5 - x = Fp.mul(tv1, tv3); // 17. x = tv1 * tv3 - const { isValid, value } = sqrtRatio(tv2, tv6); // 18. (is_gx1_square, y1) = sqrt_ratio(tv2, tv6) - y = Fp.mul(tv1, u); // 19. y = tv1 * u -> Z * u^3 * y1 - y = Fp.mul(y, value); // 20. y = y * y1 - x = Fp.cmov(x, tv3, isValid); // 21. x = CMOV(x, tv3, is_gx1_square) - y = Fp.cmov(y, value, isValid); // 22. y = CMOV(y, y1, is_gx1_square) - const e1 = Fp.isOdd(u) === Fp.isOdd(y); // 23. e1 = sgn0(u) == sgn0(y) - y = Fp.cmov(Fp.neg(y), y, e1); // 24. y = CMOV(-y, y, e1) - x = Fp.div(x, tv4); // 25. x = x / tv4 - return { x, y }; - }; -} -//# sourceMappingURL=weierstrass.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/esm/abstract/weierstrass.js.map b/node_modules/@noble/curves/esm/abstract/weierstrass.js.map deleted file mode 100644 index 7d2bc4b7..00000000 --- a/node_modules/@noble/curves/esm/abstract/weierstrass.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"weierstrass.js","sourceRoot":"","sources":["../../src/abstract/weierstrass.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,4DAA4D;AAC5D,OAAO,KAAK,GAAG,MAAM,cAAc,CAAC;AACpC,OAAO,KAAK,EAAE,MAAM,YAAY,CAAC;AACjC,OAAO,EAAuB,WAAW,EAAE,MAAM,YAAY,CAAC;AAC9D,OAAO,EAA2B,IAAI,EAAc,aAAa,EAAe,MAAM,YAAY,CAAC;AAqFnG,SAAS,iBAAiB,CAAI,KAAyB;IACrD,MAAM,IAAI,GAAG,aAAa,CAAC,KAAK,CAAC,CA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noble/curves/esm/bls12-381.js deleted file mode 100644 index 41730442..00000000 --- a/node_modules/@noble/curves/esm/bls12-381.js +++ /dev/null @@ -1,1173 +0,0 @@ -/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */ -// bls12-381 pairing-friendly Barreto-Lynn-Scott elliptic curve construction allows to: -// - Construct zk-SNARKs at the 128-bit security -// - Use threshold signatures, which allows a user to sign lots of messages with one signature and -// verify them swiftly in a batch, using Boneh-Lynn-Shacham signature scheme. -// -// The library uses G1 for public keys and G2 for signatures. Support for G1 signatures is planned. -// Compatible with Algorand, Chia, Dfinity, Ethereum, FIL, Zcash. Matches specs -// [pairing-curves-11](https://tools.ietf.org/html/draft-irtf-cfrg-pairing-friendly-curves-11), -// [bls-sigs-04](https://tools.ietf.org/html/draft-irtf-cfrg-bls-signature-04), -// [hash-to-curve-12](https://tools.ietf.org/html/draft-irtf-cfrg-hash-to-curve-12). -// -// ### Summary -// 1. BLS Relies on Bilinear Pairing (expensive) -// 2. Private Keys: 32 bytes -// 3. Public Keys: 48 bytes: 381 bit affine x coordinate, encoded into 48 big-endian bytes. -// 4. Signatures: 96 bytes: two 381 bit integers (affine x coordinate), encoded into two 48 big-endian byte arrays. -// - The signature is a point on the G2 subgroup, which is defined over a finite field -// with elements twice as big as the G1 curve (G2 is over Fp2 rather than Fp. Fp2 is analogous to the complex numbers). -// 5. The 12 stands for the Embedding degree. -// -// ### Formulas -// - `P = pk x G` - public keys -// - `S = pk x H(m)` - signing -// - `e(P, H(m)) == e(G, S)` - verification using pairings -// - `e(G, S) = e(G, SUM(n)(Si)) = MUL(n)(e(G, Si))` - signature aggregation -// Filecoin uses little endian byte arrays for private keys - -// so ensure to reverse byte order if you'll use it with FIL. -import { sha256 } from '@noble/hashes/sha256'; -import { randomBytes } from '@noble/hashes/utils'; -import { bls } from './abstract/bls.js'; -import * as mod from './abstract/modular.js'; -import { concatBytes as concatB, ensureBytes, numberToBytesBE, bytesToNumberBE, bitLen, bitSet, bitGet, bitMask, bytesToHex, } from './abstract/utils.js'; -// Types -import { mapToCurveSimpleSWU, } from './abstract/weierstrass.js'; -import { isogenyMap } from './abstract/hash-to-curve.js'; -// Be friendly to bad ECMAScript parsers by not using bigint literals -// prettier-ignore -const _0n = BigInt(0), _1n = BigInt(1), _2n = BigInt(2), _3n = BigInt(3), _4n = BigInt(4); -// prettier-ignore -const _8n = BigInt(8), _16n = BigInt(16); -// CURVE FIELDS -// Finite field over p. -const Fp_raw = BigInt('0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffaaab'); -const Fp = mod.Field(Fp_raw); -// Finite field over r. -// This particular field is not used anywhere in bls12-381, but it is still useful. -const Fr = mod.Field(BigInt('0x73eda753299d7d483339d80809a1d80553bda402fffe5bfeffffffff00000001')); -const Fp2Add = ({ c0, c1 }, { c0: r0, c1: r1 }) => ({ - c0: Fp.add(c0, r0), - c1: Fp.add(c1, r1), -}); -const Fp2Subtract = ({ c0, c1 }, { c0: r0, c1: r1 }) => ({ - c0: Fp.sub(c0, r0), - c1: Fp.sub(c1, r1), -}); -const Fp2Multiply = ({ c0, c1 }, rhs) => { - if (typeof rhs === 'bigint') - return { c0: Fp.mul(c0, rhs), c1: Fp.mul(c1, rhs) }; - // (a+bi)(c+di) = (ac−bd) + (ad+bc)i - const { c0: r0, c1: r1 } = rhs; - let t1 = Fp.mul(c0, r0); // c0 * o0 - let t2 = Fp.mul(c1, r1); // c1 * o1 - // (T1 - T2) + ((c0 + c1) * (r0 + r1) - (T1 + T2))*i - const o0 = Fp.sub(t1, t2); - const o1 = Fp.sub(Fp.mul(Fp.add(c0, c1), Fp.add(r0, r1)), Fp.add(t1, t2)); - return { c0: o0, c1: o1 }; -}; -const Fp2Square = ({ c0, c1 }) => { - const a = Fp.add(c0, c1); - const b = Fp.sub(c0, c1); - const c = Fp.add(c0, c0); - return { c0: Fp.mul(a, b), c1: Fp.mul(c, c1) }; -}; -// G2 is the order-q subgroup of E2(Fp²) : y² = x³+4(1+√−1), -// where Fp2 is Fp[√−1]/(x2+1). #E2(Fp2 ) = h2q, where -// G² - 1 -// h2q -// NOTE: ORDER was wrong! -const FP2_ORDER = Fp_raw * Fp_raw; -const Fp2 = { - ORDER: FP2_ORDER, - BITS: bitLen(FP2_ORDER), - BYTES: Math.ceil(bitLen(FP2_ORDER) / 8), - MASK: bitMask(bitLen(FP2_ORDER)), - ZERO: { c0: Fp.ZERO, c1: Fp.ZERO }, - ONE: { c0: Fp.ONE, c1: Fp.ZERO }, - create: (num) => num, - isValid: ({ c0, c1 }) => typeof c0 === 'bigint' && typeof c1 === 'bigint', - is0: ({ c0, c1 }) => Fp.is0(c0) && Fp.is0(c1), - eql: ({ c0, c1 }, { c0: r0, c1: r1 }) => Fp.eql(c0, r0) && Fp.eql(c1, r1), - neg: ({ c0, c1 }) => ({ c0: Fp.neg(c0), c1: Fp.neg(c1) }), - pow: (num, power) => mod.FpPow(Fp2, num, power), - invertBatch: (nums) => mod.FpInvertBatch(Fp2, nums), - // Normalized - add: Fp2Add, - sub: Fp2Subtract, - mul: Fp2Multiply, - sqr: Fp2Square, - // NonNormalized stuff - addN: Fp2Add, - subN: Fp2Subtract, - mulN: Fp2Multiply, - sqrN: Fp2Square, - // Why inversion for bigint inside Fp instead of Fp2? it is even used in that context? - div: (lhs, rhs) => Fp2.mul(lhs, typeof rhs === 'bigint' ? Fp.inv(Fp.create(rhs)) : Fp2.inv(rhs)), - inv: ({ c0: a, c1: b }) => { - // We wish to find the multiplicative inverse of a nonzero - // element a + bu in Fp2. We leverage an identity - // - // (a + bu)(a - bu) = a² + b² - // - // which holds because u² = -1. This can be rewritten as - // - // (a + bu)(a - bu)/(a² + b²) = 1 - // - // because a² + b² = 0 has no nonzero solutions for (a, b). - // This gives that (a - bu)/(a² + b²) is the inverse - // of (a + bu). Importantly, this can be computing using - // only a single inversion in Fp. - const factor = Fp.inv(Fp.create(a * a + b * b)); - return { c0: Fp.mul(factor, Fp.create(a)), c1: Fp.mul(factor, Fp.create(-b)) }; - }, - sqrt: (num) => { - if (Fp2.eql(num, Fp2.ZERO)) - return Fp2.ZERO; // Algo doesn't handles this case - // TODO: Optimize this line. It's extremely slow. - // Speeding this up would boost aggregateSignatures. - // https://eprint.iacr.org/2012/685.pdf applicable? - // https://github.com/zkcrypto/bls12_381/blob/080eaa74ec0e394377caa1ba302c8c121df08b07/src/fp2.rs#L250 - // https://github.com/supranational/blst/blob/aae0c7d70b799ac269ff5edf29d8191dbd357876/src/exp2.c#L1 - // Inspired by https://github.com/dalek-cryptography/curve25519-dalek/blob/17698df9d4c834204f83a3574143abacb4fc81a5/src/field.rs#L99 - const candidateSqrt = Fp2.pow(num, (Fp2.ORDER + _8n) / _16n); - const check = Fp2.div(Fp2.sqr(candidateSqrt), num); // candidateSqrt.square().div(this); - const R = FP2_ROOTS_OF_UNITY; - const divisor = [R[0], R[2], R[4], R[6]].find((r) => Fp2.eql(r, check)); - if (!divisor) - throw new Error('No root'); - const index = R.indexOf(divisor); - const root = R[index / 2]; - if (!root) - throw new Error('Invalid root'); - const x1 = Fp2.div(candidateSqrt, root); - const x2 = Fp2.neg(x1); - const { re: re1, im: im1 } = Fp2.reim(x1); - const { re: re2, im: im2 } = Fp2.reim(x2); - if (im1 > im2 || (im1 === im2 && re1 > re2)) - return x1; - return x2; - }, - // Same as sgn0_fp2 in draft-irtf-cfrg-hash-to-curve-16 - isOdd: (x) => { - const { re: x0, im: x1 } = Fp2.reim(x); - const sign_0 = x0 % _2n; - const zero_0 = x0 === _0n; - const sign_1 = x1 % _2n; - return BigInt(sign_0 || (zero_0 && sign_1)) == _1n; - }, - // Bytes util - fromBytes(b) { - if (b.length !== Fp2.BYTES) - throw new Error(`fromBytes wrong length=${b.length}`); - return { c0: Fp.fromBytes(b.subarray(0, Fp.BYTES)), c1: Fp.fromBytes(b.subarray(Fp.BYTES)) }; - }, - toBytes: ({ c0, c1 }) => concatB(Fp.toBytes(c0), Fp.toBytes(c1)), - cmov: ({ c0, c1 }, { c0: r0, c1: r1 }, c) => ({ - c0: Fp.cmov(c0, r0, c), - c1: Fp.cmov(c1, r1, c), - }), - // Specific utils - // toString() { - // return `Fp2(${this.c0} + ${this.c1}×i)`; - // } - reim: ({ c0, c1 }) => ({ re: c0, im: c1 }), - // multiply by u + 1 - mulByNonresidue: ({ c0, c1 }) => ({ c0: Fp.sub(c0, c1), c1: Fp.add(c0, c1) }), - multiplyByB: ({ c0, c1 }) => { - let t0 = Fp.mul(c0, _4n); // 4 * c0 - let t1 = Fp.mul(c1, _4n); // 4 * c1 - // (T0-T1) + (T0+T1)*i - return { c0: Fp.sub(t0, t1), c1: Fp.add(t0, t1) }; - }, - fromBigTuple: (tuple) => { - if (tuple.length !== 2) - throw new Error('Invalid tuple'); - const fps = tuple.map((n) => Fp.create(n)); - return { c0: fps[0], c1: fps[1] }; - }, - frobeniusMap: ({ c0, c1 }, power) => ({ - c0, - c1: Fp.mul(c1, FP2_FROBENIUS_COEFFICIENTS[power % 2]), - }), -}; -// Finite extension field over irreducible polynominal. -// Fp(u) / (u² - β) where β = -1 -const FP2_FROBENIUS_COEFFICIENTS = [ - BigInt('0x1'), - BigInt('0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffaaaa'), -].map((item) => Fp.create(item)); -// For Fp2 roots of unity. -const rv1 = BigInt('0x6af0e0437ff400b6831e36d6bd17ffe48395dabc2d3435e77f76e17009241c5ee67992f72ec05f4c81084fbede3cc09'); -// const ev1 = -// BigInt('0x699be3b8c6870965e5bf892ad5d2cc7b0e85a117402dfd83b7f4a947e02d978498255a2aaec0ac627b5afbdf1bf1c90'); -// const ev2 = -// BigInt('0x8157cd83046453f5dd0972b6e3949e4288020b5b8a9cc99ca07e27089a2ce2436d965026adad3ef7baba37f2183e9b5'); -// const ev3 = -// BigInt('0xab1c2ffdd6c253ca155231eb3e71ba044fd562f6f72bc5bad5ec46a0b7a3b0247cf08ce6c6317f40edbc653a72dee17'); -// const ev4 = -// BigInt('0xaa404866706722864480885d68ad0ccac1967c7544b447873cc37e0181271e006df72162a3d3e0287bf597fbf7f8fc1'); -// Eighth roots of unity, used for computing square roots in Fp2. -// To verify or re-calculate: -// Array(8).fill(new Fp2([1n, 1n])).map((fp2, k) => fp2.pow(Fp2.ORDER * BigInt(k) / 8n)) -const FP2_ROOTS_OF_UNITY = [ - [_1n, _0n], - [rv1, -rv1], - [_0n, _1n], - [rv1, rv1], - [-_1n, _0n], - [-rv1, rv1], - [_0n, -_1n], - [-rv1, -rv1], -].map((pair) => Fp2.fromBigTuple(pair)); -const Fp6Add = ({ c0, c1, c2 }, { c0: r0, c1: r1, c2: r2 }) => ({ - c0: Fp2.add(c0, r0), - c1: Fp2.add(c1, r1), - c2: Fp2.add(c2, r2), -}); -const Fp6Subtract = ({ c0, c1, c2 }, { c0: r0, c1: r1, c2: r2 }) => ({ - c0: Fp2.sub(c0, r0), - c1: Fp2.sub(c1, r1), - c2: Fp2.sub(c2, r2), -}); -const Fp6Multiply = ({ c0, c1, c2 }, rhs) => { - if (typeof rhs === 'bigint') { - return { - c0: Fp2.mul(c0, rhs), - c1: Fp2.mul(c1, rhs), - c2: Fp2.mul(c2, rhs), - }; - } - const { c0: r0, c1: r1, c2: r2 } = rhs; - const t0 = Fp2.mul(c0, r0); // c0 * o0 - const t1 = Fp2.mul(c1, r1); // c1 * o1 - const t2 = Fp2.mul(c2, r2); // c2 * o2 - return { - // t0 + (c1 + c2) * (r1 * r2) - (T1 + T2) * (u + 1) - c0: Fp2.add(t0, Fp2.mulByNonresidue(Fp2.sub(Fp2.mul(Fp2.add(c1, c2), Fp2.add(r1, r2)), Fp2.add(t1, t2)))), - // (c0 + c1) * (r0 + r1) - (T0 + T1) + T2 * (u + 1) - c1: Fp2.add(Fp2.sub(Fp2.mul(Fp2.add(c0, c1), Fp2.add(r0, r1)), Fp2.add(t0, t1)), Fp2.mulByNonresidue(t2)), - // T1 + (c0 + c2) * (r0 + r2) - T0 + T2 - c2: Fp2.sub(Fp2.add(t1, Fp2.mul(Fp2.add(c0, c2), Fp2.add(r0, r2))), Fp2.add(t0, t2)), - }; -}; -const Fp6Square = ({ c0, c1, c2 }) => { - let t0 = Fp2.sqr(c0); // c0² - let t1 = Fp2.mul(Fp2.mul(c0, c1), _2n); // 2 * c0 * c1 - let t3 = Fp2.mul(Fp2.mul(c1, c2), _2n); // 2 * c1 * c2 - let t4 = Fp2.sqr(c2); // c2² - return { - c0: Fp2.add(Fp2.mulByNonresidue(t3), t0), - c1: Fp2.add(Fp2.mulByNonresidue(t4), t1), - // T1 + (c0 - c1 + c2)² + T3 - T0 - T4 - c2: Fp2.sub(Fp2.sub(Fp2.add(Fp2.add(t1, Fp2.sqr(Fp2.add(Fp2.sub(c0, c1), c2))), t3), t0), t4), - }; -}; -const Fp6 = { - ORDER: Fp2.ORDER, - BITS: 3 * Fp2.BITS, - BYTES: 3 * Fp2.BYTES, - MASK: bitMask(3 * Fp2.BITS), - ZERO: { c0: Fp2.ZERO, c1: Fp2.ZERO, c2: Fp2.ZERO }, - ONE: { c0: Fp2.ONE, c1: Fp2.ZERO, c2: Fp2.ZERO }, - create: (num) => num, - isValid: ({ c0, c1, c2 }) => Fp2.isValid(c0) && Fp2.isValid(c1) && Fp2.isValid(c2), - is0: ({ c0, c1, c2 }) => Fp2.is0(c0) && Fp2.is0(c1) && Fp2.is0(c2), - neg: ({ c0, c1, c2 }) => ({ c0: Fp2.neg(c0), c1: Fp2.neg(c1), c2: Fp2.neg(c2) }), - eql: ({ c0, c1, c2 }, { c0: r0, c1: r1, c2: r2 }) => Fp2.eql(c0, r0) && Fp2.eql(c1, r1) && Fp2.eql(c2, r2), - sqrt: () => { - throw new Error('Not implemented'); - }, - // Do we need division by bigint at all? Should be done via order: - div: (lhs, rhs) => Fp6.mul(lhs, typeof rhs === 'bigint' ? Fp.inv(Fp.create(rhs)) : Fp6.inv(rhs)), - pow: (num, power) => mod.FpPow(Fp6, num, power), - invertBatch: (nums) => mod.FpInvertBatch(Fp6, nums), - // Normalized - add: Fp6Add, - sub: Fp6Subtract, - mul: Fp6Multiply, - sqr: Fp6Square, - // NonNormalized stuff - addN: Fp6Add, - subN: Fp6Subtract, - mulN: Fp6Multiply, - sqrN: Fp6Square, - inv: ({ c0, c1, c2 }) => { - let t0 = Fp2.sub(Fp2.sqr(c0), Fp2.mulByNonresidue(Fp2.mul(c2, c1))); // c0² - c2 * c1 * (u + 1) - let t1 = Fp2.sub(Fp2.mulByNonresidue(Fp2.sqr(c2)), Fp2.mul(c0, c1)); // c2² * (u + 1) - c0 * c1 - let t2 = Fp2.sub(Fp2.sqr(c1), Fp2.mul(c0, c2)); // c1² - c0 * c2 - // 1/(((c2 * T1 + c1 * T2) * v) + c0 * T0) - let t4 = Fp2.inv(Fp2.add(Fp2.mulByNonresidue(Fp2.add(Fp2.mul(c2, t1), Fp2.mul(c1, t2))), Fp2.mul(c0, t0))); - return { c0: Fp2.mul(t4, t0), c1: Fp2.mul(t4, t1), c2: Fp2.mul(t4, t2) }; - }, - // Bytes utils - fromBytes: (b) => { - if (b.length !== Fp6.BYTES) - throw new Error(`fromBytes wrong length=${b.length}`); - return { - c0: Fp2.fromBytes(b.subarray(0, Fp2.BYTES)), - c1: Fp2.fromBytes(b.subarray(Fp2.BYTES, 2 * Fp2.BYTES)), - c2: Fp2.fromBytes(b.subarray(2 * Fp2.BYTES)), - }; - }, - toBytes: ({ c0, c1, c2 }) => concatB(Fp2.toBytes(c0), Fp2.toBytes(c1), Fp2.toBytes(c2)), - cmov: ({ c0, c1, c2 }, { c0: r0, c1: r1, c2: r2 }, c) => ({ - c0: Fp2.cmov(c0, r0, c), - c1: Fp2.cmov(c1, r1, c), - c2: Fp2.cmov(c2, r2, c), - }), - // Utils - // fromTriple(triple: [Fp2, Fp2, Fp2]) { - // return new Fp6(...triple); - // } - // toString() { - // return `Fp6(${this.c0} + ${this.c1} * v, ${this.c2} * v^2)`; - // } - fromBigSix: (t) => { - if (!Array.isArray(t) || t.length !== 6) - throw new Error('Invalid Fp6 usage'); - return { - c0: Fp2.fromBigTuple(t.slice(0, 2)), - c1: Fp2.fromBigTuple(t.slice(2, 4)), - c2: Fp2.fromBigTuple(t.slice(4, 6)), - }; - }, - frobeniusMap: ({ c0, c1, c2 }, power) => ({ - c0: Fp2.frobeniusMap(c0, power), - c1: Fp2.mul(Fp2.frobeniusMap(c1, power), FP6_FROBENIUS_COEFFICIENTS_1[power % 6]), - c2: Fp2.mul(Fp2.frobeniusMap(c2, power), FP6_FROBENIUS_COEFFICIENTS_2[power % 6]), - }), - mulByNonresidue: ({ c0, c1, c2 }) => ({ c0: Fp2.mulByNonresidue(c2), c1: c0, c2: c1 }), - // Sparse multiplication - multiplyBy1: ({ c0, c1, c2 }, b1) => ({ - c0: Fp2.mulByNonresidue(Fp2.mul(c2, b1)), - c1: Fp2.mul(c0, b1), - c2: Fp2.mul(c1, b1), - }), - // Sparse multiplication - multiplyBy01({ c0, c1, c2 }, b0, b1) { - let t0 = Fp2.mul(c0, b0); // c0 * b0 - let t1 = Fp2.mul(c1, b1); // c1 * b1 - return { - // ((c1 + c2) * b1 - T1) * (u + 1) + T0 - c0: Fp2.add(Fp2.mulByNonresidue(Fp2.sub(Fp2.mul(Fp2.add(c1, c2), b1), t1)), t0), - // (b0 + b1) * (c0 + c1) - T0 - T1 - c1: Fp2.sub(Fp2.sub(Fp2.mul(Fp2.add(b0, b1), Fp2.add(c0, c1)), t0), t1), - // (c0 + c2) * b0 - T0 + T1 - c2: Fp2.add(Fp2.sub(Fp2.mul(Fp2.add(c0, c2), b0), t0), t1), - }; - }, - multiplyByFp2: ({ c0, c1, c2 }, rhs) => ({ - c0: Fp2.mul(c0, rhs), - c1: Fp2.mul(c1, rhs), - c2: Fp2.mul(c2, rhs), - }), -}; -const FP6_FROBENIUS_COEFFICIENTS_1 = [ - [BigInt('0x1'), BigInt('0x0')], - [ - BigInt('0x0'), - BigInt('0x1a0111ea397fe699ec02408663d4de85aa0d857d89759ad4897d29650fb85f9b409427eb4f49fffd8bfd00000000aaac'), - ], - [ - BigInt('0x00000000000000005f19672fdf76ce51ba69c6076a0f77eaddb3a93be6f89688de17d813620a00022e01fffffffefffe'), - BigInt('0x0'), - ], - [BigInt('0x0'), BigInt('0x1')], - [ - BigInt('0x1a0111ea397fe699ec02408663d4de85aa0d857d89759ad4897d29650fb85f9b409427eb4f49fffd8bfd00000000aaac'), - BigInt('0x0'), - ], - [ - BigInt('0x0'), - BigInt('0x00000000000000005f19672fdf76ce51ba69c6076a0f77eaddb3a93be6f89688de17d813620a00022e01fffffffefffe'), - ], -].map((pair) => Fp2.fromBigTuple(pair)); -const FP6_FROBENIUS_COEFFICIENTS_2 = [ - [BigInt('0x1'), BigInt('0x0')], - [ - BigInt('0x1a0111ea397fe699ec02408663d4de85aa0d857d89759ad4897d29650fb85f9b409427eb4f49fffd8bfd00000000aaad'), - BigInt('0x0'), - ], - [ - BigInt('0x1a0111ea397fe699ec02408663d4de85aa0d857d89759ad4897d29650fb85f9b409427eb4f49fffd8bfd00000000aaac'), - BigInt('0x0'), - ], - [ - BigInt('0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffaaaa'), - BigInt('0x0'), - ], - [ - BigInt('0x00000000000000005f19672fdf76ce51ba69c6076a0f77eaddb3a93be6f89688de17d813620a00022e01fffffffefffe'), - BigInt('0x0'), - ], - [ - BigInt('0x00000000000000005f19672fdf76ce51ba69c6076a0f77eaddb3a93be6f89688de17d813620a00022e01fffffffeffff'), - BigInt('0x0'), - ], -].map((pair) => Fp2.fromBigTuple(pair)); -// The BLS parameter x for BLS12-381 -const BLS_X = BigInt('0xd201000000010000'); -const BLS_X_LEN = bitLen(BLS_X); -const Fp12Add = ({ c0, c1 }, { c0: r0, c1: r1 }) => ({ - c0: Fp6.add(c0, r0), - c1: Fp6.add(c1, r1), -}); -const Fp12Subtract = ({ c0, c1 }, { c0: r0, c1: r1 }) => ({ - c0: Fp6.sub(c0, r0), - c1: Fp6.sub(c1, r1), -}); -const Fp12Multiply = ({ c0, c1 }, rhs) => { - if (typeof rhs === 'bigint') - return { c0: Fp6.mul(c0, rhs), c1: Fp6.mul(c1, rhs) }; - let { c0: r0, c1: r1 } = rhs; - let t1 = Fp6.mul(c0, r0); // c0 * r0 - let t2 = Fp6.mul(c1, r1); // c1 * r1 - return { - c0: Fp6.add(t1, Fp6.mulByNonresidue(t2)), - // (c0 + c1) * (r0 + r1) - (T1 + T2) - c1: Fp6.sub(Fp6.mul(Fp6.add(c0, c1), Fp6.add(r0, r1)), Fp6.add(t1, t2)), - }; -}; -const Fp12Square = ({ c0, c1 }) => { - let ab = Fp6.mul(c0, c1); // c0 * c1 - return { - // (c1 * v + c0) * (c0 + c1) - AB - AB * v - c0: Fp6.sub(Fp6.sub(Fp6.mul(Fp6.add(Fp6.mulByNonresidue(c1), c0), Fp6.add(c0, c1)), ab), Fp6.mulByNonresidue(ab)), - c1: Fp6.add(ab, ab), - }; // AB + AB -}; -function Fp4Square(a, b) { - const a2 = Fp2.sqr(a); - const b2 = Fp2.sqr(b); - return { - first: Fp2.add(Fp2.mulByNonresidue(b2), a2), - second: Fp2.sub(Fp2.sub(Fp2.sqr(Fp2.add(a, b)), a2), b2), // (a + b)² - a² - b² - }; -} -const Fp12 = { - ORDER: Fp2.ORDER, - BITS: 2 * Fp2.BITS, - BYTES: 2 * Fp2.BYTES, - MASK: bitMask(2 * Fp2.BITS), - ZERO: { c0: Fp6.ZERO, c1: Fp6.ZERO }, - ONE: { c0: Fp6.ONE, c1: Fp6.ZERO }, - create: (num) => num, - isValid: ({ c0, c1 }) => Fp6.isValid(c0) && Fp6.isValid(c1), - is0: ({ c0, c1 }) => Fp6.is0(c0) && Fp6.is0(c1), - neg: ({ c0, c1 }) => ({ c0: Fp6.neg(c0), c1: Fp6.neg(c1) }), - eql: ({ c0, c1 }, { c0: r0, c1: r1 }) => Fp6.eql(c0, r0) && Fp6.eql(c1, r1), - sqrt: () => { - throw new Error('Not implemented'); - }, - inv: ({ c0, c1 }) => { - let t = Fp6.inv(Fp6.sub(Fp6.sqr(c0), Fp6.mulByNonresidue(Fp6.sqr(c1)))); // 1 / (c0² - c1² * v) - return { c0: Fp6.mul(c0, t), c1: Fp6.neg(Fp6.mul(c1, t)) }; // ((C0 * T) * T) + (-C1 * T) * w - }, - div: (lhs, rhs) => Fp12.mul(lhs, typeof rhs === 'bigint' ? Fp.inv(Fp.create(rhs)) : Fp12.inv(rhs)), - pow: (num, power) => mod.FpPow(Fp12, num, power), - invertBatch: (nums) => mod.FpInvertBatch(Fp12, nums), - // Normalized - add: Fp12Add, - sub: Fp12Subtract, - mul: Fp12Multiply, - sqr: Fp12Square, - // NonNormalized stuff - addN: Fp12Add, - subN: Fp12Subtract, - mulN: Fp12Multiply, - sqrN: Fp12Square, - // Bytes utils - fromBytes: (b) => { - if (b.length !== Fp12.BYTES) - throw new Error(`fromBytes wrong length=${b.length}`); - return { - c0: Fp6.fromBytes(b.subarray(0, Fp6.BYTES)), - c1: Fp6.fromBytes(b.subarray(Fp6.BYTES)), - }; - }, - toBytes: ({ c0, c1 }) => concatB(Fp6.toBytes(c0), Fp6.toBytes(c1)), - cmov: ({ c0, c1 }, { c0: r0, c1: r1 }, c) => ({ - c0: Fp6.cmov(c0, r0, c), - c1: Fp6.cmov(c1, r1, c), - }), - // Utils - // toString() { - // return `Fp12(${this.c0} + ${this.c1} * w)`; - // }, - // fromTuple(c: [Fp6, Fp6]) { - // return new Fp12(...c); - // } - fromBigTwelve: (t) => ({ - c0: Fp6.fromBigSix(t.slice(0, 6)), - c1: Fp6.fromBigSix(t.slice(6, 12)), - }), - // Raises to q**i -th power - frobeniusMap(lhs, power) { - const r0 = Fp6.frobeniusMap(lhs.c0, power); - const { c0, c1, c2 } = Fp6.frobeniusMap(lhs.c1, power); - const coeff = FP12_FROBENIUS_COEFFICIENTS[power % 12]; - return { - c0: r0, - c1: Fp6.create({ - c0: Fp2.mul(c0, coeff), - c1: Fp2.mul(c1, coeff), - c2: Fp2.mul(c2, coeff), - }), - }; - }, - // Sparse multiplication - multiplyBy014: ({ c0, c1 }, o0, o1, o4) => { - let t0 = Fp6.multiplyBy01(c0, o0, o1); - let t1 = Fp6.multiplyBy1(c1, o4); - return { - c0: Fp6.add(Fp6.mulByNonresidue(t1), t0), - // (c1 + c0) * [o0, o1+o4] - T0 - T1 - c1: Fp6.sub(Fp6.sub(Fp6.multiplyBy01(Fp6.add(c1, c0), o0, Fp2.add(o1, o4)), t0), t1), - }; - }, - multiplyByFp2: ({ c0, c1 }, rhs) => ({ - c0: Fp6.multiplyByFp2(c0, rhs), - c1: Fp6.multiplyByFp2(c1, rhs), - }), - conjugate: ({ c0, c1 }) => ({ c0, c1: Fp6.neg(c1) }), - // A cyclotomic group is a subgroup of Fp^n defined by - // GΦₙ(p) = {α ∈ Fpⁿ : α^Φₙ(p) = 1} - // The result of any pairing is in a cyclotomic subgroup - // https://eprint.iacr.org/2009/565.pdf - _cyclotomicSquare: ({ c0, c1 }) => { - const { c0: c0c0, c1: c0c1, c2: c0c2 } = c0; - const { c0: c1c0, c1: c1c1, c2: c1c2 } = c1; - const { first: t3, second: t4 } = Fp4Square(c0c0, c1c1); - const { first: t5, second: t6 } = Fp4Square(c1c0, c0c2); - const { first: t7, second: t8 } = Fp4Square(c0c1, c1c2); - let t9 = Fp2.mulByNonresidue(t8); // T8 * (u + 1) - return { - c0: Fp6.create({ - c0: Fp2.add(Fp2.mul(Fp2.sub(t3, c0c0), _2n), t3), - c1: Fp2.add(Fp2.mul(Fp2.sub(t5, c0c1), _2n), t5), - c2: Fp2.add(Fp2.mul(Fp2.sub(t7, c0c2), _2n), t7), - }), - c1: Fp6.create({ - c0: Fp2.add(Fp2.mul(Fp2.add(t9, c1c0), _2n), t9), - c1: Fp2.add(Fp2.mul(Fp2.add(t4, c1c1), _2n), t4), - c2: Fp2.add(Fp2.mul(Fp2.add(t6, c1c2), _2n), t6), - }), - }; // 2 * (T6 + c1c2) + T6 - }, - _cyclotomicExp(num, n) { - let z = Fp12.ONE; - for (let i = BLS_X_LEN - 1; i >= 0; i--) { - z = Fp12._cyclotomicSquare(z); - if (bitGet(n, i)) - z = Fp12.mul(z, num); - } - return z; - }, - // https://eprint.iacr.org/2010/354.pdf - // https://eprint.iacr.org/2009/565.pdf - finalExponentiate: (num) => { - const x = BLS_X; - // this^(q⁶) / this - const t0 = Fp12.div(Fp12.frobeniusMap(num, 6), num); - // t0^(q²) * t0 - const t1 = Fp12.mul(Fp12.frobeniusMap(t0, 2), t0); - const t2 = Fp12.conjugate(Fp12._cyclotomicExp(t1, x)); - const t3 = Fp12.mul(Fp12.conjugate(Fp12._cyclotomicSquare(t1)), t2); - const t4 = Fp12.conjugate(Fp12._cyclotomicExp(t3, x)); - const t5 = Fp12.conjugate(Fp12._cyclotomicExp(t4, x)); - const t6 = Fp12.mul(Fp12.conjugate(Fp12._cyclotomicExp(t5, x)), Fp12._cyclotomicSquare(t2)); - const t7 = Fp12.conjugate(Fp12._cyclotomicExp(t6, x)); - const t2_t5_pow_q2 = Fp12.frobeniusMap(Fp12.mul(t2, t5), 2); - const t4_t1_pow_q3 = Fp12.frobeniusMap(Fp12.mul(t4, t1), 3); - const t6_t1c_pow_q1 = Fp12.frobeniusMap(Fp12.mul(t6, Fp12.conjugate(t1)), 1); - const t7_t3c_t1 = Fp12.mul(Fp12.mul(t7, Fp12.conjugate(t3)), t1); - // (t2 * t5)^(q²) * (t4 * t1)^(q³) * (t6 * t1.conj)^(q^1) * t7 * t3.conj * t1 - return Fp12.mul(Fp12.mul(Fp12.mul(t2_t5_pow_q2, t4_t1_pow_q3), t6_t1c_pow_q1), t7_t3c_t1); - }, -}; -const FP12_FROBENIUS_COEFFICIENTS = [ - [BigInt('0x1'), BigInt('0x0')], - [ - BigInt('0x1904d3bf02bb0667c231beb4202c0d1f0fd603fd3cbd5f4f7b2443d784bab9c4f67ea53d63e7813d8d0775ed92235fb8'), - BigInt('0x00fc3e2b36c4e03288e9e902231f9fb854a14787b6c7b36fec0c8ec971f63c5f282d5ac14d6c7ec22cf78a126ddc4af3'), - ], - [ - BigInt('0x00000000000000005f19672fdf76ce51ba69c6076a0f77eaddb3a93be6f89688de17d813620a00022e01fffffffeffff'), - BigInt('0x0'), - ], - [ - BigInt('0x135203e60180a68ee2e9c448d77a2cd91c3dedd930b1cf60ef396489f61eb45e304466cf3e67fa0af1ee7b04121bdea2'), - BigInt('0x06af0e0437ff400b6831e36d6bd17ffe48395dabc2d3435e77f76e17009241c5ee67992f72ec05f4c81084fbede3cc09'), - ], - [ - BigInt('0x00000000000000005f19672fdf76ce51ba69c6076a0f77eaddb3a93be6f89688de17d813620a00022e01fffffffefffe'), - BigInt('0x0'), - ], - [ - BigInt('0x144e4211384586c16bd3ad4afa99cc9170df3560e77982d0db45f3536814f0bd5871c1908bd478cd1ee605167ff82995'), - BigInt('0x05b2cfd9013a5fd8df47fa6b48b1e045f39816240c0b8fee8beadf4d8e9c0566c63a3e6e257f87329b18fae980078116'), - ], - [ - BigInt('0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffaaaa'), - BigInt('0x0'), - ], - [ - BigInt('0x00fc3e2b36c4e03288e9e902231f9fb854a14787b6c7b36fec0c8ec971f63c5f282d5ac14d6c7ec22cf78a126ddc4af3'), - BigInt('0x1904d3bf02bb0667c231beb4202c0d1f0fd603fd3cbd5f4f7b2443d784bab9c4f67ea53d63e7813d8d0775ed92235fb8'), - ], - [ - BigInt('0x1a0111ea397fe699ec02408663d4de85aa0d857d89759ad4897d29650fb85f9b409427eb4f49fffd8bfd00000000aaac'), - BigInt('0x0'), - ], - [ - BigInt('0x06af0e0437ff400b6831e36d6bd17ffe48395dabc2d3435e77f76e17009241c5ee67992f72ec05f4c81084fbede3cc09'), - BigInt('0x135203e60180a68ee2e9c448d77a2cd91c3dedd930b1cf60ef396489f61eb45e304466cf3e67fa0af1ee7b04121bdea2'), - ], - [ - BigInt('0x1a0111ea397fe699ec02408663d4de85aa0d857d89759ad4897d29650fb85f9b409427eb4f49fffd8bfd00000000aaad'), - BigInt('0x0'), - ], - [ - BigInt('0x05b2cfd9013a5fd8df47fa6b48b1e045f39816240c0b8fee8beadf4d8e9c0566c63a3e6e257f87329b18fae980078116'), - BigInt('0x144e4211384586c16bd3ad4afa99cc9170df3560e77982d0db45f3536814f0bd5871c1908bd478cd1ee605167ff82995'), - ], -].map((n) => Fp2.fromBigTuple(n)); -// END OF CURVE FIELDS -// HashToCurve -// 3-isogeny map from E' to E -// https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-hash-to-curve-11#appendix-E.3 -const isogenyMapG2 = isogenyMap(Fp2, [ - // xNum - [ - [ - '0x5c759507e8e333ebb5b7a9a47d7ed8532c52d39fd3a042a88b58423c50ae15d5c2638e343d9c71c6238aaaaaaaa97d6', - '0x5c759507e8e333ebb5b7a9a47d7ed8532c52d39fd3a042a88b58423c50ae15d5c2638e343d9c71c6238aaaaaaaa97d6', - ], - [ - '0x0', - '0x11560bf17baa99bc32126fced787c88f984f87adf7ae0c7f9a208c6b4f20a4181472aaa9cb8d555526a9ffffffffc71a', - ], - [ - '0x11560bf17baa99bc32126fced787c88f984f87adf7ae0c7f9a208c6b4f20a4181472aaa9cb8d555526a9ffffffffc71e', - '0x8ab05f8bdd54cde190937e76bc3e447cc27c3d6fbd7063fcd104635a790520c0a395554e5c6aaaa9354ffffffffe38d', - ], - [ - '0x171d6541fa38ccfaed6dea691f5fb614cb14b4e7f4e810aa22d6108f142b85757098e38d0f671c7188e2aaaaaaaa5ed1', - '0x0', - ], - ], - // xDen - [ - [ - '0x0', - '0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffaa63', - ], - [ - '0xc', - '0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffaa9f', - ], - ['0x1', '0x0'], // LAST 1 - ], - // yNum - [ - [ - '0x1530477c7ab4113b59a4c18b076d11930f7da5d4a07f649bf54439d87d27e500fc8c25ebf8c92f6812cfc71c71c6d706', - '0x1530477c7ab4113b59a4c18b076d11930f7da5d4a07f649bf54439d87d27e500fc8c25ebf8c92f6812cfc71c71c6d706', - ], - [ - '0x0', - '0x5c759507e8e333ebb5b7a9a47d7ed8532c52d39fd3a042a88b58423c50ae15d5c2638e343d9c71c6238aaaaaaaa97be', - ], - [ - '0x11560bf17baa99bc32126fced787c88f984f87adf7ae0c7f9a208c6b4f20a4181472aaa9cb8d555526a9ffffffffc71c', - '0x8ab05f8bdd54cde190937e76bc3e447cc27c3d6fbd7063fcd104635a790520c0a395554e5c6aaaa9354ffffffffe38f', - ], - [ - '0x124c9ad43b6cf79bfbf7043de3811ad0761b0f37a1e26286b0e977c69aa274524e79097a56dc4bd9e1b371c71c718b10', - '0x0', - ], - ], - // yDen - [ - [ - '0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffa8fb', - '0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffa8fb', - ], - [ - '0x0', - '0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffa9d3', - ], - [ - '0x12', - '0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffaa99', - ], - ['0x1', '0x0'], // LAST 1 - ], -].map((i) => i.map((pair) => Fp2.fromBigTuple(pair.map(BigInt))))); -// 11-isogeny map from E' to E -const isogenyMapG1 = isogenyMap(Fp, [ - // xNum - [ - '0x11a05f2b1e833340b809101dd99815856b303e88a2d7005ff2627b56cdb4e2c85610c2d5f2e62d6eaeac1662734649b7', - '0x17294ed3e943ab2f0588bab22147a81c7c17e75b2f6a8417f565e33c70d1e86b4838f2a6f318c356e834eef1b3cb83bb', - '0xd54005db97678ec1d1048c5d10a9a1bce032473295983e56878e501ec68e25c958c3e3d2a09729fe0179f9dac9edcb0', - '0x1778e7166fcc6db74e0609d307e55412d7f5e4656a8dbf25f1b33289f1b330835336e25ce3107193c5b388641d9b6861', - '0xe99726a3199f4436642b4b3e4118e5499db995a1257fb3f086eeb65982fac18985a286f301e77c451154ce9ac8895d9', - '0x1630c3250d7313ff01d1201bf7a74ab5db3cb17dd952799b9ed3ab9097e68f90a0870d2dcae73d19cd13c1c66f652983', - '0xd6ed6553fe44d296a3726c38ae652bfb11586264f0f8ce19008e218f9c86b2a8da25128c1052ecaddd7f225a139ed84', - '0x17b81e7701abdbe2e8743884d1117e53356de5ab275b4db1a682c62ef0f2753339b7c8f8c8f475af9ccb5618e3f0c88e', - '0x80d3cf1f9a78fc47b90b33563be990dc43b756ce79f5574a2c596c928c5d1de4fa295f296b74e956d71986a8497e317', - '0x169b1f8e1bcfa7c42e0c37515d138f22dd2ecb803a0c5c99676314baf4bb1b7fa3190b2edc0327797f241067be390c9e', - '0x10321da079ce07e272d8ec09d2565b0dfa7dccdde6787f96d50af36003b14866f69b771f8c285decca67df3f1605fb7b', - '0x6e08c248e260e70bd1e962381edee3d31d79d7e22c837bc23c0bf1bc24c6b68c24b1b80b64d391fa9c8ba2e8ba2d229', - ], - // xDen - [ - '0x8ca8d548cff19ae18b2e62f4bd3fa6f01d5ef4ba35b48ba9c9588617fc8ac62b558d681be343df8993cf9fa40d21b1c', - '0x12561a5deb559c4348b4711298e536367041e8ca0cf0800c0126c2588c48bf5713daa8846cb026e9e5c8276ec82b3bff', - '0xb2962fe57a3225e8137e629bff2991f6f89416f5a718cd1fca64e00b11aceacd6a3d0967c94fedcfcc239ba5cb83e19', - '0x3425581a58ae2fec83aafef7c40eb545b08243f16b1655154cca8abc28d6fd04976d5243eecf5c4130de8938dc62cd8', - '0x13a8e162022914a80a6f1d5f43e7a07dffdfc759a12062bb8d6b44e833b306da9bd29ba81f35781d539d395b3532a21e', - '0xe7355f8e4e667b955390f7f0506c6e9395735e9ce9cad4d0a43bcef24b8982f7400d24bc4228f11c02df9a29f6304a5', - '0x772caacf16936190f3e0c63e0596721570f5799af53a1894e2e073062aede9cea73b3538f0de06cec2574496ee84a3a', - '0x14a7ac2a9d64a8b230b3f5b074cf01996e7f63c21bca68a81996e1cdf9822c580fa5b9489d11e2d311f7d99bbdcc5a5e', - '0xa10ecf6ada54f825e920b3dafc7a3cce07f8d1d7161366b74100da67f39883503826692abba43704776ec3a79a1d641', - '0x95fc13ab9e92ad4476d6e3eb3a56680f682b4ee96f7d03776df533978f31c1593174e4b4b7865002d6384d168ecdd0a', - '0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001', // LAST 1 - ], - // yNum - [ - '0x90d97c81ba24ee0259d1f094980dcfa11ad138e48a869522b52af6c956543d3cd0c7aee9b3ba3c2be9845719707bb33', - '0x134996a104ee5811d51036d776fb46831223e96c254f383d0f906343eb67ad34d6c56711962fa8bfe097e75a2e41c696', - '0xcc786baa966e66f4a384c86a3b49942552e2d658a31ce2c344be4b91400da7d26d521628b00523b8dfe240c72de1f6', - '0x1f86376e8981c217898751ad8746757d42aa7b90eeb791c09e4a3ec03251cf9de405aba9ec61deca6355c77b0e5f4cb', - '0x8cc03fdefe0ff135caf4fe2a21529c4195536fbe3ce50b879833fd221351adc2ee7f8dc099040a841b6daecf2e8fedb', - '0x16603fca40634b6a2211e11db8f0a6a074a7d0d4afadb7bd76505c3d3ad5544e203f6326c95a807299b23ab13633a5f0', - '0x4ab0b9bcfac1bbcb2c977d027796b3ce75bb8ca2be184cb5231413c4d634f3747a87ac2460f415ec961f8855fe9d6f2', - '0x987c8d5333ab86fde9926bd2ca6c674170a05bfe3bdd81ffd038da6c26c842642f64550fedfe935a15e4ca31870fb29', - '0x9fc4018bd96684be88c9e221e4da1bb8f3abd16679dc26c1e8b6e6a1f20cabe69d65201c78607a360370e577bdba587', - '0xe1bba7a1186bdb5223abde7ada14a23c42a0ca7915af6fe06985e7ed1e4d43b9b3f7055dd4eba6f2bafaaebca731c30', - '0x19713e47937cd1be0dfd0b8f1d43fb93cd2fcbcb6caf493fd1183e416389e61031bf3a5cce3fbafce813711ad011c132', - '0x18b46a908f36f6deb918c143fed2edcc523559b8aaf0c2462e6bfe7f911f643249d9cdf41b44d606ce07c8a4d0074d8e', - '0xb182cac101b9399d155096004f53f447aa7b12a3426b08ec02710e807b4633f06c851c1919211f20d4c04f00b971ef8', - '0x245a394ad1eca9b72fc00ae7be315dc757b3b080d4c158013e6632d3c40659cc6cf90ad1c232a6442d9d3f5db980133', - '0x5c129645e44cf1102a159f748c4a3fc5e673d81d7e86568d9ab0f5d396a7ce46ba1049b6579afb7866b1e715475224b', - '0x15e6be4e990f03ce4ea50b3b42df2eb5cb181d8f84965a3957add4fa95af01b2b665027efec01c7704b456be69c8b604', - ], - // yDen - [ - '0x16112c4c3a9c98b252181140fad0eae9601a6de578980be6eec3232b5be72e7a07f3688ef60c206d01479253b03663c1', - '0x1962d75c2381201e1a0cbd6c43c348b885c84ff731c4d59ca4a10356f453e01f78a4260763529e3532f6102c2e49a03d', - '0x58df3306640da276faaae7d6e8eb15778c4855551ae7f310c35a5dd279cd2eca6757cd636f96f891e2538b53dbf67f2', - '0x16b7d288798e5395f20d23bf89edb4d1d115c5dbddbcd30e123da489e726af41727364f2c28297ada8d26d98445f5416', - '0xbe0e079545f43e4b00cc912f8228ddcc6d19c9f0f69bbb0542eda0fc9dec916a20b15dc0fd2ededda39142311a5001d', - '0x8d9e5297186db2d9fb266eaac783182b70152c65550d881c5ecd87b6f0f5a6449f38db9dfa9cce202c6477faaf9b7ac', - '0x166007c08a99db2fc3ba8734ace9824b5eecfdfa8d0cf8ef5dd365bc400a0051d5fa9c01a58b1fb93d1a1399126a775c', - '0x16a3ef08be3ea7ea03bcddfabba6ff6ee5a4375efa1f4fd7feb34fd206357132b920f5b00801dee460ee415a15812ed9', - '0x1866c8ed336c61231a1be54fd1d74cc4f9fb0ce4c6af5920abc5750c4bf39b4852cfe2f7bb9248836b233d9d55535d4a', - '0x167a55cda70a6e1cea820597d94a84903216f763e13d87bb5308592e7ea7d4fbc7385ea3d529b35e346ef48bb8913f55', - '0x4d2f259eea405bd48f010a01ad2911d9c6dd039bb61a6290e591b36e636a5c871a5c29f4f83060400f8b49cba8f6aa8', - '0xaccbb67481d033ff5852c1e48c50c477f94ff8aefce42d28c0f9a88cea7913516f968986f7ebbea9684b529e2561092', - '0xad6b9514c767fe3c3613144b45f1496543346d98adf02267d5ceef9a00d9b8693000763e3b90ac11e99b138573345cc', - '0x2660400eb2e4f3b628bdd0d53cd76f2bf565b94e72927c1cb748df27942480e420517bd8714cc80d1fadc1326ed06f7', - '0xe0fa1d816ddc03e6b24255e0d7819c171c40f65e273b853324efcd6356caa205ca2f570f13497804415473a1d634b8f', - '0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001', // LAST 1 - ], -].map((i) => i.map((j) => BigInt(j)))); -// SWU Map - Fp2 to G2': y² = x³ + 240i * x + 1012 + 1012i -const G2_SWU = mapToCurveSimpleSWU(Fp2, { - A: Fp2.create({ c0: Fp.create(_0n), c1: Fp.create(BigInt(240)) }), - B: Fp2.create({ c0: Fp.create(BigInt(1012)), c1: Fp.create(BigInt(1012)) }), - Z: Fp2.create({ c0: Fp.create(BigInt(-2)), c1: Fp.create(BigInt(-1)) }), // Z: -(2 + I) -}); -// Optimized SWU Map - Fp to G1 -const G1_SWU = mapToCurveSimpleSWU(Fp, { - A: Fp.create(BigInt('0x144698a3b8e9433d693a02c96d4982b0ea985383ee66a8d8e8981aefd881ac98936f8da0e0f97f5cf428082d584c1d')), - B: Fp.create(BigInt('0x12e2908d11688030018b12e8753eee3b2016c1f0f24f4070a0b9c14fcef35ef55a23215a316ceaa5d1cc48e98e172be0')), - Z: Fp.create(BigInt(11)), -}); -// Endomorphisms (for fast cofactor clearing) -// Ψ(P) endomorphism -const ut_root = Fp6.create({ c0: Fp2.ZERO, c1: Fp2.ONE, c2: Fp2.ZERO }); -const wsq = Fp12.create({ c0: ut_root, c1: Fp6.ZERO }); -const wcu = Fp12.create({ c0: Fp6.ZERO, c1: ut_root }); -const [wsq_inv, wcu_inv] = Fp12.invertBatch([wsq, wcu]); -function psi(x, y) { - // Untwist Fp2->Fp12 && frobenius(1) && twist back - const x2 = Fp12.mul(Fp12.frobeniusMap(Fp12.multiplyByFp2(wsq_inv, x), 1), wsq).c0.c0; - const y2 = Fp12.mul(Fp12.frobeniusMap(Fp12.multiplyByFp2(wcu_inv, y), 1), wcu).c0.c0; - return [x2, y2]; -} -// Ψ endomorphism -function G2psi(c, P) { - const affine = P.toAffine(); - const p = psi(affine.x, affine.y); - return new c(p[0], p[1], Fp2.ONE); -} -// Ψ²(P) endomorphism -// 1 / F2(2)^((p-1)/3) in GF(p²) -const PSI2_C1 = BigInt('0x1a0111ea397fe699ec02408663d4de85aa0d857d89759ad4897d29650fb85f9b409427eb4f49fffd8bfd00000000aaac'); -function psi2(x, y) { - return [Fp2.mul(x, PSI2_C1), Fp2.neg(y)]; -} -function G2psi2(c, P) { - const affine = P.toAffine(); - const p = psi2(affine.x, affine.y); - return new c(p[0], p[1], Fp2.ONE); -} -// Default hash_to_field options are for hash to G2. -// -// Parameter definitions are in section 5.3 of the spec unless otherwise noted. -// Parameter values come from section 8.8.2 of the spec. -// https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-hash-to-curve-11#section-8.8.2 -// -// Base field F is GF(p^m) -// p = 0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffaaab -// m = 2 (or 1 for G1 see section 8.8.1) -// k = 128 -const htfDefaults = Object.freeze({ - // DST: a domain separation tag - // defined in section 2.2.5 - // Use utils.getDSTLabel(), utils.setDSTLabel(value) - DST: 'BLS_SIG_BLS12381G2_XMD:SHA-256_SSWU_RO_NUL_', - encodeDST: 'BLS_SIG_BLS12381G2_XMD:SHA-256_SSWU_RO_NUL_', - // p: the characteristic of F - // where F is a finite field of characteristic p and order q = p^m - p: Fp.ORDER, - // m: the extension degree of F, m >= 1 - // where F is a finite field of characteristic p and order q = p^m - m: 2, - // k: the target security level for the suite in bits - // defined in section 5.1 - k: 128, - // option to use a message that has already been processed by - // expand_message_xmd - expand: 'xmd', - // Hash functions for: expand_message_xmd is appropriate for use with a - // wide range of hash functions, including SHA-2, SHA-3, BLAKE2, and others. - // BBS+ uses blake2: https://github.com/hyperledger/aries-framework-go/issues/2247 - hash: sha256, -}); -// Encoding utils -// Point on G1 curve: (x, y) -const C_BIT_POS = Fp.BITS; // C_bit, compression bit for serialization flag -const I_BIT_POS = Fp.BITS + 1; // I_bit, point-at-infinity bit for serialization flag -const S_BIT_POS = Fp.BITS + 2; // S_bit, sign bit for serialization flag -// Compressed point of infinity -const COMPRESSED_ZERO = Fp.toBytes(bitSet(bitSet(_0n, I_BIT_POS, true), S_BIT_POS, true)); // set compressed & point-at-infinity bits -function signatureG2ToRawBytes(point) { - // NOTE: by some reasons it was missed in bls12-381, looks like bug - point.assertValidity(); - const len = Fp.BYTES; - if (point.equals(bls12_381.G2.ProjectivePoint.ZERO)) - return concatB(COMPRESSED_ZERO, numberToBytesBE(_0n, len)); - const { x, y } = point.toAffine(); - const { re: x0, im: x1 } = Fp2.reim(x); - const { re: y0, im: y1 } = Fp2.reim(y); - const tmp = y1 > _0n ? y1 * _2n : y0 * _2n; - const aflag1 = Boolean((tmp / Fp.ORDER) & _1n); - const z1 = bitSet(bitSet(x1, 381, aflag1), S_BIT_POS, true); - const z2 = x0; - return concatB(numberToBytesBE(z1, len), numberToBytesBE(z2, len)); -} -// To verify curve parameters, see pairing-friendly-curves spec: -// https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-pairing-friendly-curves-09 -// Basic math is done over finite fields over p. -// More complicated math is done over polynominal extension fields. -// To simplify calculations in Fp12, we construct extension tower: -// Fp₁₂ = Fp₆² => Fp₂³ -// Fp(u) / (u² - β) where β = -1 -// Fp₂(v) / (v³ - ξ) where ξ = u + 1 -// Fp₆(w) / (w² - γ) where γ = v -// Here goes constants && point encoding format -export const bls12_381 = bls({ - // Fields - fields: { - Fp, - Fp2, - Fp6, - Fp12, - Fr, - }, - // G1 is the order-q subgroup of E1(Fp) : y² = x³ + 4, #E1(Fp) = h1q, where - // characteristic; z + (z⁴ - z² + 1)(z - 1)²/3 - G1: { - Fp, - // cofactor; (z - 1)²/3 - h: BigInt('0x396c8c005555e1568c00aaab0000aaab'), - // generator's coordinates - // x = 3685416753713387016781088315183077757961620795782546409894578378688607592378376318836054947676345821548104185464507 - // y = 1339506544944476473020471379941921221584933875938349620426543736416511423956333506472724655353366534992391756441569 - Gx: BigInt('0x17f1d3a73197d7942695638c4fa9ac0fc3688c4f9774b905a14e3a3f171bac586c55e83ff97a1aeffb3af00adb22c6bb'), - Gy: BigInt('0x08b3f481e3aaa0f1a09e30ed741d8ae4fcf5e095d5d00af600db18cb2c04b3edd03cc744a2888ae40caa232946c5e7e1'), - a: Fp.ZERO, - b: _4n, - htfDefaults: { ...htfDefaults, m: 1 }, - wrapPrivateKey: true, - allowInfinityPoint: true, - // Checks is the point resides in prime-order subgroup. - // point.isTorsionFree() should return true for valid points - // It returns false for shitty points. - // https://eprint.iacr.org/2021/1130.pdf - isTorsionFree: (c, point) => { - // φ endomorphism - const cubicRootOfUnityModP = BigInt('0x5f19672fdf76ce51ba69c6076a0f77eaddb3a93be6f89688de17d813620a00022e01fffffffefffe'); - const phi = new c(Fp.mul(point.px, cubicRootOfUnityModP), point.py, point.pz); - // todo: unroll - const xP = point.multiplyUnsafe(bls12_381.params.x).negate(); // [x]P - const u2P = xP.multiplyUnsafe(bls12_381.params.x); // [u2]P - return u2P.equals(phi); - // https://eprint.iacr.org/2019/814.pdf - // (z² − 1)/3 - // const c1 = BigInt('0x396c8c005555e1560000000055555555'); - // const P = this; - // const S = P.sigma(); - // const Q = S.double(); - // const S2 = S.sigma(); - // // [(z² − 1)/3](2σ(P) − P − σ²(P)) − σ²(P) = O - // const left = Q.subtract(P).subtract(S2).multiplyUnsafe(c1); - // const C = left.subtract(S2); - // return C.isZero(); - }, - // Clear cofactor of G1 - // https://eprint.iacr.org/2019/403 - clearCofactor: (c, point) => { - // return this.multiplyUnsafe(CURVE.h); - return point.multiplyUnsafe(bls12_381.params.x).add(point); // x*P + P - }, - mapToCurve: (scalars) => { - const { x, y } = G1_SWU(Fp.create(scalars[0])); - return isogenyMapG1(x, y); - }, - fromBytes: (bytes) => { - bytes = bytes.slice(); - if (bytes.length === 48) { - // TODO: Fp.bytes - const P = Fp.ORDER; - const compressedValue = bytesToNumberBE(bytes); - const bflag = bitGet(compressedValue, I_BIT_POS); - // Zero - if (bflag === _1n) - return { x: _0n, y: _0n }; - const x = Fp.create(compressedValue & Fp.MASK); - const right = Fp.add(Fp.pow(x, _3n), Fp.create(bls12_381.params.G1b)); // y² = x³ + b - let y = Fp.sqrt(right); - if (!y) - throw new Error('Invalid compressed G1 point'); - const aflag = bitGet(compressedValue, C_BIT_POS); - if ((y * _2n) / P !== aflag) - y = Fp.neg(y); - return { x: Fp.create(x), y: Fp.create(y) }; - } - else if (bytes.length === 96) { - // Check if the infinity flag is set - if ((bytes[0] & (1 << 6)) !== 0) - return bls12_381.G1.ProjectivePoint.ZERO.toAffine(); - const x = bytesToNumberBE(bytes.subarray(0, Fp.BYTES)); - const y = bytesToNumberBE(bytes.subarray(Fp.BYTES)); - return { x: Fp.create(x), y: Fp.create(y) }; - } - else { - throw new Error('Invalid point G1, expected 48/96 bytes'); - } - }, - toBytes: (c, point, isCompressed) => { - const isZero = point.equals(c.ZERO); - const { x, y } = point.toAffine(); - if (isCompressed) { - if (isZero) - return COMPRESSED_ZERO.slice(); - const P = Fp.ORDER; - let num; - num = bitSet(x, C_BIT_POS, Boolean((y * _2n) / P)); // set aflag - num = bitSet(num, S_BIT_POS, true); - return numberToBytesBE(num, Fp.BYTES); - } - else { - if (isZero) { - // 2x PUBLIC_KEY_LENGTH - const x = concatB(new Uint8Array([0x40]), new Uint8Array(2 * Fp.BYTES - 1)); - return x; - } - else { - return concatB(numberToBytesBE(x, Fp.BYTES), numberToBytesBE(y, Fp.BYTES)); - } - } - }, - }, - // G2 is the order-q subgroup of E2(Fp²) : y² = x³+4(1+√−1), - // where Fp2 is Fp[√−1]/(x2+1). #E2(Fp2 ) = h2q, where - // G² - 1 - // h2q - G2: { - Fp: Fp2, - // cofactor - h: BigInt('0x5d543a95414e7f1091d50792876a202cd91de4547085abaa68a205b2e5a7ddfa628f1cb4d9e82ef21537e293a6691ae1616ec6e786f0c70cf1c38e31c7238e5'), - Gx: Fp2.fromBigTuple([ - BigInt('0x024aa2b2f08f0a91260805272dc51051c6e47ad4fa403b02b4510b647ae3d1770bac0326a805bbefd48056c8c121bdb8'), - BigInt('0x13e02b6052719f607dacd3a088274f65596bd0d09920b61ab5da61bbdc7f5049334cf11213945d57e5ac7d055d042b7e'), - ]), - // y = - // 927553665492332455747201965776037880757740193453592970025027978793976877002675564980949289727957565575433344219582, - // 1985150602287291935568054521177171638300868978215655730859378665066344726373823718423869104263333984641494340347905 - Gy: Fp2.fromBigTuple([ - BigInt('0x0ce5d527727d6e118cc9cdc6da2e351aadfd9baa8cbdd3a76d429a695160d12c923ac9cc3baca289e193548608b82801'), - BigInt('0x0606c4a02ea734cc32acd2b02bc28b99cb3e287e85a763af267492ab572e99ab3f370d275cec1da1aaa9075ff05f79be'), - ]), - a: Fp2.ZERO, - b: Fp2.fromBigTuple([_4n, _4n]), - hEff: BigInt('0xbc69f08f2ee75b3584c6a0ea91b352888e2a8e9145ad7689986ff031508ffe1329c2f178731db956d82bf015d1212b02ec0ec69d7477c1ae954cbc06689f6a359894c0adebbf6b4e8020005aaa95551'), - htfDefaults: { ...htfDefaults }, - wrapPrivateKey: true, - allowInfinityPoint: true, - mapToCurve: (scalars) => { - const { x, y } = G2_SWU(Fp2.fromBigTuple(scalars)); - return isogenyMapG2(x, y); - }, - // Checks is the point resides in prime-order subgroup. - // point.isTorsionFree() should return true for valid points - // It returns false for shitty points. - // https://eprint.iacr.org/2021/1130.pdf - isTorsionFree: (c, P) => { - return P.multiplyUnsafe(bls12_381.params.x).negate().equals(G2psi(c, P)); // ψ(P) == [u](P) - // Older version: https://eprint.iacr.org/2019/814.pdf - // Ψ²(P) => Ψ³(P) => [z]Ψ³(P) where z = -x => [z]Ψ³(P) - Ψ²(P) + P == O - // return P.psi2().psi().mulNegX().subtract(psi2).add(P).isZero(); - }, - // Maps the point into the prime-order subgroup G2. - // clear_cofactor_bls12381_g2 from cfrg-hash-to-curve-11 - // https://eprint.iacr.org/2017/419.pdf - // prettier-ignore - clearCofactor: (c, P) => { - const x = bls12_381.params.x; - let t1 = P.multiplyUnsafe(x).negate(); // [-x]P - let t2 = G2psi(c, P); // Ψ(P) - let t3 = P.double(); // 2P - t3 = G2psi2(c, t3); // Ψ²(2P) - t3 = t3.subtract(t2); // Ψ²(2P) - Ψ(P) - t2 = t1.add(t2); // [-x]P + Ψ(P) - t2 = t2.multiplyUnsafe(x).negate(); // [x²]P - [x]Ψ(P) - t3 = t3.add(t2); // Ψ²(2P) - Ψ(P) + [x²]P - [x]Ψ(P) - t3 = t3.subtract(t1); // Ψ²(2P) - Ψ(P) + [x²]P - [x]Ψ(P) + [x]P - const Q = t3.subtract(P); // Ψ²(2P) - Ψ(P) + [x²]P - [x]Ψ(P) + [x]P - 1P - return Q; // [x²-x-1]P + [x-1]Ψ(P) + Ψ²(2P) - }, - fromBytes: (bytes) => { - bytes = bytes.slice(); - const m_byte = bytes[0] & 0xe0; - if (m_byte === 0x20 || m_byte === 0x60 || m_byte === 0xe0) { - throw new Error('Invalid encoding flag: ' + m_byte); - } - const bitC = m_byte & 0x80; // compression bit - const bitI = m_byte & 0x40; // point at infinity bit - const bitS = m_byte & 0x20; // sign bit - const L = Fp.BYTES; - const slc = (b, from, to) => bytesToNumberBE(b.slice(from, to)); - if (bytes.length === 96 && bitC) { - const b = bls12_381.params.G2b; - const P = Fp.ORDER; - bytes[0] = bytes[0] & 0x1f; // clear flags - if (bitI) { - // check that all bytes are 0 - if (bytes.reduce((p, c) => (p !== 0 ? c + 1 : c), 0) > 0) { - throw new Error('Invalid compressed G2 point'); - } - return { x: Fp2.ZERO, y: Fp2.ZERO }; - } - const x_1 = slc(bytes, 0, L); - const x_0 = slc(bytes, L, 2 * L); - const x = Fp2.create({ c0: Fp.create(x_0), c1: Fp.create(x_1) }); - const right = Fp2.add(Fp2.pow(x, _3n), b); // y² = x³ + 4 * (u+1) = x³ + b - let y = Fp2.sqrt(right); - const Y_bit = y.c1 === _0n ? (y.c0 * _2n) / P : (y.c1 * _2n) / P ? _1n : _0n; - y = bitS > 0 && Y_bit > 0 ? y : Fp2.neg(y); - return { x, y }; - } - else if (bytes.length === 192 && !bitC) { - // Check if the infinity flag is set - if ((bytes[0] & (1 << 6)) !== 0) { - return { x: Fp2.ZERO, y: Fp2.ZERO }; - } - const x1 = slc(bytes, 0, L); - const x0 = slc(bytes, L, 2 * L); - const y1 = slc(bytes, 2 * L, 3 * L); - const y0 = slc(bytes, 3 * L, 4 * L); - return { x: Fp2.fromBigTuple([x0, x1]), y: Fp2.fromBigTuple([y0, y1]) }; - } - else { - throw new Error('Invalid point G2, expected 96/192 bytes'); - } - }, - toBytes: (c, point, isCompressed) => { - const { BYTES: len, ORDER: P } = Fp; - const isZero = point.equals(c.ZERO); - const { x, y } = point.toAffine(); - if (isCompressed) { - if (isZero) - return concatB(COMPRESSED_ZERO, numberToBytesBE(_0n, len)); - const flag = Boolean(y.c1 === _0n ? (y.c0 * _2n) / P : (y.c1 * _2n) / P); - // set compressed & sign bits (looks like different offsets than for G1/Fp?) - let x_1 = bitSet(x.c1, C_BIT_POS, flag); - x_1 = bitSet(x_1, S_BIT_POS, true); - return concatB(numberToBytesBE(x_1, len), numberToBytesBE(x.c0, len)); - } - else { - if (isZero) - return concatB(new Uint8Array([0x40]), new Uint8Array(4 * len - 1)); // bytes[0] |= 1 << 6; - const { re: x0, im: x1 } = Fp2.reim(x); - const { re: y0, im: y1 } = Fp2.reim(y); - return concatB(numberToBytesBE(x1, len), numberToBytesBE(x0, len), numberToBytesBE(y1, len), numberToBytesBE(y0, len)); - } - }, - Signature: { - // TODO: Optimize, it's very slow because of sqrt. - fromHex(hex) { - hex = ensureBytes('signatureHex', hex); - const P = Fp.ORDER; - const half = hex.length / 2; - if (half !== 48 && half !== 96) - throw new Error('Invalid compressed signature length, must be 96 or 192'); - const z1 = bytesToNumberBE(hex.slice(0, half)); - const z2 = bytesToNumberBE(hex.slice(half)); - // Indicates the infinity point - const bflag1 = bitGet(z1, I_BIT_POS); - if (bflag1 === _1n) - return bls12_381.G2.ProjectivePoint.ZERO; - const x1 = Fp.create(z1 & Fp.MASK); - const x2 = Fp.create(z2); - const x = Fp2.create({ c0: x2, c1: x1 }); - const y2 = Fp2.add(Fp2.pow(x, _3n), bls12_381.params.G2b); // y² = x³ + 4 - // The slow part - let y = Fp2.sqrt(y2); - if (!y) - throw new Error('Failed to find a square root'); - // Choose the y whose leftmost bit of the imaginary part is equal to the a_flag1 - // If y1 happens to be zero, then use the bit of y0 - const { re: y0, im: y1 } = Fp2.reim(y); - const aflag1 = bitGet(z1, 381); - const isGreater = y1 > _0n && (y1 * _2n) / P !== aflag1; - const isZero = y1 === _0n && (y0 * _2n) / P !== aflag1; - if (isGreater || isZero) - y = Fp2.neg(y); - const point = bls12_381.G2.ProjectivePoint.fromAffine({ x, y }); - point.assertValidity(); - return point; - }, - toRawBytes(point) { - return signatureG2ToRawBytes(point); - }, - toHex(point) { - return bytesToHex(signatureG2ToRawBytes(point)); - }, - }, - }, - params: { - x: BLS_X, - r: Fr.ORDER, // order; z⁴ − z² + 1; CURVE.n from other curves - }, - htfDefaults, - hash: sha256, - randomBytes, -}); -//# sourceMappingURL=bls12-381.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/esm/bls12-381.js.map b/node_modules/@noble/curves/esm/bls12-381.js.map deleted file mode 100644 index 09f0c124..00000000 --- a/node_modules/@noble/curves/esm/bls12-381.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"bls12-381.js","sourceRoot":"","sources":["../src/bls12-381.ts"],"names":[],"mappings":"AAAA,sEAAsE;AAEtE,uFAAuF;AACvF,gDAAgD;AAChD,kGAAkG;AAClG,+EAA+E;AAC/E,EAAE;AACF,mGAAmG;AACnG,+EAA+E;AAC/E,+FAA+F;AAC/F,+EAA+E;AAC/E,oFAAoF;AACpF,EAAE;AACF,cAAc;AACd,gDAAgD;AAChD,4BAA4B;AAC5B,2FAA2F;AAC3F,mHAAmH;AACnH,0FAA0F;AAC1F,2HAA2H;AAC3H,6CAA6C;AAC7C,EAAE;AACF,eAAe;AACf,+BAA+B;AAC/B,8BAA8B;AAC9B,0DAA0D;AAC1D,4EAA4E;AAC5E,6DAA6D;AAC7D,6DAA6D;AAC7D,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,GAAG,EAAW,MAAM,mBAAmB,CAAC;AACjD,OAAO,KAAK,GAAG,MAAM,uBAAuB,CAAC;AAC7C,OAAO,EACL,WAAW,IAAI,OAAO,EACtB,WAAW,EACX,eAAe,EACf,eAAe,EACf,MAAM,EACN,MAAM,EACN,MAAM,EAEN,OAAO,EACP,UAAU,GACX,MAAM,qBAAqB,CAAC;AAC7B,QAAQ;AACR,OAAO,EAGL,mBAAmB,GAEpB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AAEzD,qEAAqE;AACrE,kBAAkB;AAClB,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,EAAE,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,EAAE,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,EAAE,GAAG,GAAG,MAAM,CA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AAM,IAAI,KAAK,CAAC,8BAA8B,CAAC,CAAC;gBAExD,gFAAgF;gBAChF,mDAAmD;gBACnD,MAAM,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,GAAG,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;gBACvC,MAAM,MAAM,GAAG,MAAM,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC;gBAC/B,MAAM,SAAS,GAAG,EAAE,GAAG,GAAG,IAAI,CAAC,EAAE,GAAG,GAAG,CAAC,GAAG,CAAC,KAAK,MAAM,CAAC;gBACxD,MAAM,MAAM,GAAG,EAAE,KAAK,GAAG,IAAI,CAAC,EAAE,GAAG,GAAG,CAAC,GAAG,CAAC,KAAK,MAAM,CAAC;gBACvD,IAAI,SAAS,IAAI,MAAM;oBAAE,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;gBACxC,MAAM,KAAK,GAAG,SAAS,CAAC,EAAE,CAAC,eAAe,CAAC,UAAU,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;gBAChE,KAAK,CAAC,cAAc,EAAE,CAAC;gBACvB,OAAO,KAAK,CAAC;YACf,CAAC;YACD,UAAU,CAAC,KAAyB;gBAClC,OAAO,qBAAqB,CAAC,KAAK,CAAC,CAAC;YACtC,CAAC;YACD,KAAK,CAAC,KAAyB;gBAC7B,OAAO,UAAU,CAAC,qBAAqB,CAAC,KAAK,CAAC,CAAC,CAAC;YAClD,CAAC;SACF;KACF;IACD,MAAM,EAAE;QACN,CAAC,EAAE,KAAK;QACR,CAAC,EAAE,EAAE,CAAC,KAAK,EAAE,gDAAgD;KAC9D;IACD,WAAW;IACX,IAAI,EAAE,MAAM;IACZ,WAAW;CACZ,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/esm/bn254.js b/node_modules/@noble/curves/esm/bn254.js deleted file mode 100644 index 6b4f7c67..00000000 --- a/node_modules/@noble/curves/esm/bn254.js +++ /dev/null @@ -1,22 +0,0 @@ -/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */ -import { sha256 } from '@noble/hashes/sha256'; -import { weierstrass } from './abstract/weierstrass.js'; -import { getHash } from './_shortw_utils.js'; -import { Field } from './abstract/modular.js'; -/** - * bn254 pairing-friendly curve. - * Previously known as alt_bn_128, when it had 128-bit security. - * Recent research shown it's weaker, the naming has been adjusted to its prime bit count. - * https://github.com/zcash/zcash/issues/2502 - */ -export const bn254 = weierstrass({ - a: BigInt(0), - b: BigInt(3), - Fp: Field(BigInt('0x30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd47')), - n: BigInt('0x30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f0000001'), - Gx: BigInt(1), - Gy: BigInt(2), - h: BigInt(1), - ...getHash(sha256), -}); -//# sourceMappingURL=bn254.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/esm/bn254.js.map b/node_modules/@noble/curves/esm/bn254.js.map deleted file mode 100644 index e0ec0235..00000000 --- a/node_modules/@noble/curves/esm/bn254.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"bn254.js","sourceRoot":"","sources":["../src/bn254.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAC9C;;;;;GAKG;AACH,MAAM,CAAC,MAAM,KAAK,GAAG,WAAW,CAAC;IAC/B,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;IACZ,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;IACZ,EAAE,EAAE,KAAK,CAAC,MAAM,CAAC,oEAAoE,CAAC,CAAC;IACvF,CAAC,EAAE,MAAM,CAAC,oEAAoE,CAAC;IAC/E,EAAE,EAAE,MAAM,CAAC,CAAC,CAAC;IACb,EAAE,EAAE,MAAM,CAAC,CAAC,CAAC;IACb,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;IACZ,GAAG,OAAO,CAAC,MAAM,CAAC;CACnB,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/esm/ed25519.js b/node_modules/@noble/curves/esm/ed25519.js deleted file mode 100644 index 01ee630d..00000000 --- a/node_modules/@noble/curves/esm/ed25519.js +++ /dev/null @@ -1,430 +0,0 @@ -/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */ -import { sha512 } from '@noble/hashes/sha512'; -import { concatBytes, randomBytes, utf8ToBytes } from '@noble/hashes/utils'; -import { twistedEdwards } from './abstract/edwards.js'; -import { montgomery } from './abstract/montgomery.js'; -import { Field, FpSqrtEven, isNegativeLE, mod, pow2 } from './abstract/modular.js'; -import { bytesToHex, bytesToNumberLE, ensureBytes, equalBytes, numberToBytesLE, } from './abstract/utils.js'; -import { createHasher, expand_message_xmd } from './abstract/hash-to-curve.js'; -/** - * ed25519 Twisted Edwards curve with following addons: - * - X25519 ECDH - * - Ristretto cofactor elimination - * - Elligator hash-to-group / point indistinguishability - */ -const ED25519_P = BigInt('57896044618658097711785492504343953926634992332820282019728792003956564819949'); -// √(-1) aka √(a) aka 2^((p-1)/4) -const ED25519_SQRT_M1 = BigInt('19681161376707505956807079304988542015446066515923890162744021073123829784752'); -// prettier-ignore -const _0n = BigInt(0), _1n = BigInt(1), _2n = BigInt(2), _5n = BigInt(5); -// prettier-ignore -const _10n = BigInt(10), _20n = BigInt(20), _40n = BigInt(40), _80n = BigInt(80); -function ed25519_pow_2_252_3(x) { - const P = ED25519_P; - const x2 = (x * x) % P; - const b2 = (x2 * x) % P; // x^3, 11 - const b4 = (pow2(b2, _2n, P) * b2) % P; // x^15, 1111 - const b5 = (pow2(b4, _1n, P) * x) % P; // x^31 - const b10 = (pow2(b5, _5n, P) * b5) % P; - const b20 = (pow2(b10, _10n, P) * b10) % P; - const b40 = (pow2(b20, _20n, P) * b20) % P; - const b80 = (pow2(b40, _40n, P) * b40) % P; - const b160 = (pow2(b80, _80n, P) * b80) % P; - const b240 = (pow2(b160, _80n, P) * b80) % P; - const b250 = (pow2(b240, _10n, P) * b10) % P; - const pow_p_5_8 = (pow2(b250, _2n, P) * x) % P; - // ^ To pow to (p+3)/8, multiply it by x. - return { pow_p_5_8, b2 }; -} -function adjustScalarBytes(bytes) { - // Section 5: For X25519, in order to decode 32 random bytes as an integer scalar, - // set the three least significant bits of the first byte - bytes[0] &= 248; // 0b1111_1000 - // and the most significant bit of the last to zero, - bytes[31] &= 127; // 0b0111_1111 - // set the second most significant bit of the last byte to 1 - bytes[31] |= 64; // 0b0100_0000 - return bytes; -} -// sqrt(u/v) -function uvRatio(u, v) { - const P = ED25519_P; - const v3 = mod(v * v * v, P); // v³ - const v7 = mod(v3 * v3 * v, P); // v⁷ - // (p+3)/8 and (p-5)/8 - const pow = ed25519_pow_2_252_3(u * v7).pow_p_5_8; - let x = mod(u * v3 * pow, P); // (uv³)(uv⁷)^(p-5)/8 - const vx2 = mod(v * x * x, P); // vx² - const root1 = x; // First root candidate - const root2 = mod(x * ED25519_SQRT_M1, P); // Second root candidate - const useRoot1 = vx2 === u; // If vx² = u (mod p), x is a square root - const useRoot2 = vx2 === mod(-u, P); // If vx² = -u, set x <-- x * 2^((p-1)/4) - const noRoot = vx2 === mod(-u * ED25519_SQRT_M1, P); // There is no valid root, vx² = -u√(-1) - if (useRoot1) - x = root1; - if (useRoot2 || noRoot) - x = root2; // We return root2 anyway, for const-time - if (isNegativeLE(x, P)) - x = mod(-x, P); - return { isValid: useRoot1 || useRoot2, value: x }; -} -// Just in case -export const ED25519_TORSION_SUBGROUP = [ - '0100000000000000000000000000000000000000000000000000000000000000', - 'c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac037a', - '0000000000000000000000000000000000000000000000000000000000000080', - '26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc05', - 'ecffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7f', - '26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc85', - '0000000000000000000000000000000000000000000000000000000000000000', - 'c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac03fa', -]; -const Fp = Field(ED25519_P, undefined, true); -const ed25519Defaults = { - // Param: a - a: BigInt(-1), - // d is equal to -121665/121666 over finite field. - // Negative number is P - number, and division is invert(number, P) - d: BigInt('37095705934669439343138083508754565189542113879843219016388785533085940283555'), - // Finite field 𝔽p over which we'll do calculations; 2n**255n - 19n - Fp, - // Subgroup order: how many points curve has - // 2n**252n + 27742317777372353535851937790883648493n; - n: BigInt('7237005577332262213973186563042994240857116359379907606001950938285454250989'), - // Cofactor - h: BigInt(8), - // Base point (x, y) aka generator point - Gx: BigInt('15112221349535400772501151409588531511454012693041857206046113283949847762202'), - Gy: BigInt('46316835694926478169428394003475163141307993866256225615783033603165251855960'), - hash: sha512, - randomBytes, - adjustScalarBytes, - // dom2 - // Ratio of u to v. Allows us to combine inversion and square root. Uses algo from RFC8032 5.1.3. - // Constant-time, u/√v - uvRatio, -}; -export const ed25519 = twistedEdwards(ed25519Defaults); -function ed25519_domain(data, ctx, phflag) { - if (ctx.length > 255) - throw new Error('Context is too big'); - return concatBytes(utf8ToBytes('SigEd25519 no Ed25519 collisions'), new Uint8Array([phflag ? 1 : 0, ctx.length]), ctx, data); -} -export const ed25519ctx = twistedEdwards({ ...ed25519Defaults, domain: ed25519_domain }); -export const ed25519ph = twistedEdwards({ - ...ed25519Defaults, - domain: ed25519_domain, - prehash: sha512, -}); -export const x25519 = /* @__PURE__ */ (() => montgomery({ - P: ED25519_P, - a: BigInt(486662), - montgomeryBits: 255, - nByteLength: 32, - Gu: BigInt(9), - powPminus2: (x) => { - const P = ED25519_P; - // x^(p-2) aka x^(2^255-21) - const { pow_p_5_8, b2 } = ed25519_pow_2_252_3(x); - return mod(pow2(pow_p_5_8, BigInt(3), P) * b2, P); - }, - adjustScalarBytes, - randomBytes, -}))(); -/** - * Converts ed25519 public key to x25519 public key. Uses formula: - * * `(u, v) = ((1+y)/(1-y), sqrt(-486664)*u/x)` - * * `(x, y) = (sqrt(-486664)*u/v, (u-1)/(u+1))` - * @example - * const someonesPub = ed25519.getPublicKey(ed25519.utils.randomPrivateKey()); - * const aPriv = x25519.utils.randomPrivateKey(); - * x25519.getSharedSecret(aPriv, edwardsToMontgomeryPub(someonesPub)) - */ -export function edwardsToMontgomeryPub(edwardsPub) { - const { y } = ed25519.ExtendedPoint.fromHex(edwardsPub); - const _1n = BigInt(1); - return Fp.toBytes(Fp.create((_1n + y) * Fp.inv(_1n - y))); -} -export const edwardsToMontgomery = edwardsToMontgomeryPub; // deprecated -/** - * Converts ed25519 secret key to x25519 secret key. - * @example - * const someonesPub = x25519.getPublicKey(x25519.utils.randomPrivateKey()); - * const aPriv = ed25519.utils.randomPrivateKey(); - * x25519.getSharedSecret(edwardsToMontgomeryPriv(aPriv), someonesPub) - */ -export function edwardsToMontgomeryPriv(edwardsPriv) { - const hashed = ed25519Defaults.hash(edwardsPriv.subarray(0, 32)); - return ed25519Defaults.adjustScalarBytes(hashed).subarray(0, 32); -} -// Hash To Curve Elligator2 Map (NOTE: different from ristretto255 elligator) -// NOTE: very important part is usage of FpSqrtEven for ELL2_C1_EDWARDS, since -// SageMath returns different root first and everything falls apart -const ELL2_C1 = (Fp.ORDER + BigInt(3)) / BigInt(8); // 1. c1 = (q + 3) / 8 # Integer arithmetic -const ELL2_C2 = Fp.pow(_2n, ELL2_C1); // 2. c2 = 2^c1 -const ELL2_C3 = Fp.sqrt(Fp.neg(Fp.ONE)); // 3. c3 = sqrt(-1) -const ELL2_C4 = (Fp.ORDER - BigInt(5)) / BigInt(8); // 4. c4 = (q - 5) / 8 # Integer arithmetic -const ELL2_J = BigInt(486662); -// prettier-ignore -function map_to_curve_elligator2_curve25519(u) { - let tv1 = Fp.sqr(u); // 1. tv1 = u^2 - tv1 = Fp.mul(tv1, _2n); // 2. tv1 = 2 * tv1 - let xd = Fp.add(tv1, Fp.ONE); // 3. xd = tv1 + 1 # Nonzero: -1 is square (mod p), tv1 is not - let x1n = Fp.neg(ELL2_J); // 4. x1n = -J # x1 = x1n / xd = -J / (1 + 2 * u^2) - let tv2 = Fp.sqr(xd); // 5. tv2 = xd^2 - let gxd = Fp.mul(tv2, xd); // 6. gxd = tv2 * xd # gxd = xd^3 - let gx1 = Fp.mul(tv1, ELL2_J); // 7. gx1 = J * tv1 # x1n + J * xd - gx1 = Fp.mul(gx1, x1n); // 8. gx1 = gx1 * x1n # x1n^2 + J * x1n * xd - gx1 = Fp.add(gx1, tv2); // 9. gx1 = gx1 + tv2 # x1n^2 + J * x1n * xd + xd^2 - gx1 = Fp.mul(gx1, x1n); // 10. gx1 = gx1 * x1n # x1n^3 + J * x1n^2 * xd + x1n * xd^2 - let tv3 = Fp.sqr(gxd); // 11. tv3 = gxd^2 - tv2 = Fp.sqr(tv3); // 12. tv2 = tv3^2 # gxd^4 - tv3 = Fp.mul(tv3, gxd); // 13. tv3 = tv3 * gxd # gxd^3 - tv3 = Fp.mul(tv3, gx1); // 14. tv3 = tv3 * gx1 # gx1 * gxd^3 - tv2 = Fp.mul(tv2, tv3); // 15. tv2 = tv2 * tv3 # gx1 * gxd^7 - let y11 = Fp.pow(tv2, ELL2_C4); // 16. y11 = tv2^c4 # (gx1 * gxd^7)^((p - 5) / 8) - y11 = Fp.mul(y11, tv3); // 17. y11 = y11 * tv3 # gx1*gxd^3*(gx1*gxd^7)^((p-5)/8) - let y12 = Fp.mul(y11, ELL2_C3); // 18. y12 = y11 * c3 - tv2 = Fp.sqr(y11); // 19. tv2 = y11^2 - tv2 = Fp.mul(tv2, gxd); // 20. tv2 = tv2 * gxd - let e1 = Fp.eql(tv2, gx1); // 21. e1 = tv2 == gx1 - let y1 = Fp.cmov(y12, y11, e1); // 22. y1 = CMOV(y12, y11, e1) # If g(x1) is square, this is its sqrt - let x2n = Fp.mul(x1n, tv1); // 23. x2n = x1n * tv1 # x2 = x2n / xd = 2 * u^2 * x1n / xd - let y21 = Fp.mul(y11, u); // 24. y21 = y11 * u - y21 = Fp.mul(y21, ELL2_C2); // 25. y21 = y21 * c2 - let y22 = Fp.mul(y21, ELL2_C3); // 26. y22 = y21 * c3 - let gx2 = Fp.mul(gx1, tv1); // 27. gx2 = gx1 * tv1 # g(x2) = gx2 / gxd = 2 * u^2 * g(x1) - tv2 = Fp.sqr(y21); // 28. tv2 = y21^2 - tv2 = Fp.mul(tv2, gxd); // 29. tv2 = tv2 * gxd - let e2 = Fp.eql(tv2, gx2); // 30. e2 = tv2 == gx2 - let y2 = Fp.cmov(y22, y21, e2); // 31. y2 = CMOV(y22, y21, e2) # If g(x2) is square, this is its sqrt - tv2 = Fp.sqr(y1); // 32. tv2 = y1^2 - tv2 = Fp.mul(tv2, gxd); // 33. tv2 = tv2 * gxd - let e3 = Fp.eql(tv2, gx1); // 34. e3 = tv2 == gx1 - let xn = Fp.cmov(x2n, x1n, e3); // 35. xn = CMOV(x2n, x1n, e3) # If e3, x = x1, else x = x2 - let y = Fp.cmov(y2, y1, e3); // 36. y = CMOV(y2, y1, e3) # If e3, y = y1, else y = y2 - let e4 = Fp.isOdd(y); // 37. e4 = sgn0(y) == 1 # Fix sign of y - y = Fp.cmov(y, Fp.neg(y), e3 !== e4); // 38. y = CMOV(y, -y, e3 XOR e4) - return { xMn: xn, xMd: xd, yMn: y, yMd: _1n }; // 39. return (xn, xd, y, 1) -} -const ELL2_C1_EDWARDS = FpSqrtEven(Fp, Fp.neg(BigInt(486664))); // sgn0(c1) MUST equal 0 -function map_to_curve_elligator2_edwards25519(u) { - const { xMn, xMd, yMn, yMd } = map_to_curve_elligator2_curve25519(u); // 1. (xMn, xMd, yMn, yMd) = - // map_to_curve_elligator2_curve25519(u) - let xn = Fp.mul(xMn, yMd); // 2. xn = xMn * yMd - xn = Fp.mul(xn, ELL2_C1_EDWARDS); // 3. xn = xn * c1 - let xd = Fp.mul(xMd, yMn); // 4. xd = xMd * yMn # xn / xd = c1 * xM / yM - let yn = Fp.sub(xMn, xMd); // 5. yn = xMn - xMd - let yd = Fp.add(xMn, xMd); // 6. yd = xMn + xMd # (n / d - 1) / (n / d + 1) = (n - d) / (n + d) - let tv1 = Fp.mul(xd, yd); // 7. tv1 = xd * yd - let e = Fp.eql(tv1, Fp.ZERO); // 8. e = tv1 == 0 - xn = Fp.cmov(xn, Fp.ZERO, e); // 9. xn = CMOV(xn, 0, e) - xd = Fp.cmov(xd, Fp.ONE, e); // 10. xd = CMOV(xd, 1, e) - yn = Fp.cmov(yn, Fp.ONE, e); // 11. yn = CMOV(yn, 1, e) - yd = Fp.cmov(yd, Fp.ONE, e); // 12. yd = CMOV(yd, 1, e) - const inv = Fp.invertBatch([xd, yd]); // batch division - return { x: Fp.mul(xn, inv[0]), y: Fp.mul(yn, inv[1]) }; // 13. return (xn, xd, yn, yd) -} -const htf = /* @__PURE__ */ (() => createHasher(ed25519.ExtendedPoint, (scalars) => map_to_curve_elligator2_edwards25519(scalars[0]), { - DST: 'edwards25519_XMD:SHA-512_ELL2_RO_', - encodeDST: 'edwards25519_XMD:SHA-512_ELL2_NU_', - p: Fp.ORDER, - m: 1, - k: 128, - expand: 'xmd', - hash: sha512, -}))(); -export const hashToCurve = /* @__PURE__ */ (() => htf.hashToCurve)(); -export const encodeToCurve = /* @__PURE__ */ (() => htf.encodeToCurve)(); -function assertRstPoint(other) { - if (!(other instanceof RistPoint)) - throw new Error('RistrettoPoint expected'); -} -// √(-1) aka √(a) aka 2^((p-1)/4) -const SQRT_M1 = ED25519_SQRT_M1; -// √(ad - 1) -const SQRT_AD_MINUS_ONE = BigInt('25063068953384623474111414158702152701244531502492656460079210482610430750235'); -// 1 / √(a-d) -const INVSQRT_A_MINUS_D = BigInt('54469307008909316920995813868745141605393597292927456921205312896311721017578'); -// 1-d² -const ONE_MINUS_D_SQ = BigInt('1159843021668779879193775521855586647937357759715417654439879720876111806838'); -// (d-1)² -const D_MINUS_ONE_SQ = BigInt('40440834346308536858101042469323190826248399146238708352240133220865137265952'); -// Calculates 1/√(number) -const invertSqrt = (number) => uvRatio(_1n, number); -const MAX_255B = BigInt('0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff'); -const bytes255ToNumberLE = (bytes) => ed25519.CURVE.Fp.create(bytesToNumberLE(bytes) & MAX_255B); -// Computes Elligator map for Ristretto -// https://ristretto.group/formulas/elligator.html -function calcElligatorRistrettoMap(r0) { - const { d } = ed25519.CURVE; - const P = ed25519.CURVE.Fp.ORDER; - const mod = ed25519.CURVE.Fp.create; - const r = mod(SQRT_M1 * r0 * r0); // 1 - const Ns = mod((r + _1n) * ONE_MINUS_D_SQ); // 2 - let c = BigInt(-1); // 3 - const D = mod((c - d * r) * mod(r + d)); // 4 - let { isValid: Ns_D_is_sq, value: s } = uvRatio(Ns, D); // 5 - let s_ = mod(s * r0); // 6 - if (!isNegativeLE(s_, P)) - s_ = mod(-s_); - if (!Ns_D_is_sq) - s = s_; // 7 - if (!Ns_D_is_sq) - c = r; // 8 - const Nt = mod(c * (r - _1n) * D_MINUS_ONE_SQ - D); // 9 - const s2 = s * s; - const W0 = mod((s + s) * D); // 10 - const W1 = mod(Nt * SQRT_AD_MINUS_ONE); // 11 - const W2 = mod(_1n - s2); // 12 - const W3 = mod(_1n + s2); // 13 - return new ed25519.ExtendedPoint(mod(W0 * W3), mod(W2 * W1), mod(W1 * W3), mod(W0 * W2)); -} -/** - * Each ed25519/ExtendedPoint has 8 different equivalent points. This can be - * a source of bugs for protocols like ring signatures. Ristretto was created to solve this. - * Ristretto point operates in X:Y:Z:T extended coordinates like ExtendedPoint, - * but it should work in its own namespace: do not combine those two. - * https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-ristretto255-decaf448 - */ -class RistPoint { - // Private property to discourage combining ExtendedPoint + RistrettoPoint - // Always use Ristretto encoding/decoding instead. - constructor(ep) { - this.ep = ep; - } - static fromAffine(ap) { - return new RistPoint(ed25519.ExtendedPoint.fromAffine(ap)); - } - /** - * Takes uniform output of 64-byte hash function like sha512 and converts it to `RistrettoPoint`. - * The hash-to-group operation applies Elligator twice and adds the results. - * **Note:** this is one-way map, there is no conversion from point to hash. - * https://ristretto.group/formulas/elligator.html - * @param hex 64-byte output of a hash function - */ - static hashToCurve(hex) { - hex = ensureBytes('ristrettoHash', hex, 64); - const r1 = bytes255ToNumberLE(hex.slice(0, 32)); - const R1 = calcElligatorRistrettoMap(r1); - const r2 = bytes255ToNumberLE(hex.slice(32, 64)); - const R2 = calcElligatorRistrettoMap(r2); - return new RistPoint(R1.add(R2)); - } - /** - * Converts ristretto-encoded string to ristretto point. - * https://ristretto.group/formulas/decoding.html - * @param hex Ristretto-encoded 32 bytes. Not every 32-byte string is valid ristretto encoding - */ - static fromHex(hex) { - hex = ensureBytes('ristrettoHex', hex, 32); - const { a, d } = ed25519.CURVE; - const P = ed25519.CURVE.Fp.ORDER; - const mod = ed25519.CURVE.Fp.create; - const emsg = 'RistrettoPoint.fromHex: the hex is not valid encoding of RistrettoPoint'; - const s = bytes255ToNumberLE(hex); - // 1. Check that s_bytes is the canonical encoding of a field element, or else abort. - // 3. Check that s is non-negative, or else abort - if (!equalBytes(numberToBytesLE(s, 32), hex) || isNegativeLE(s, P)) - throw new Error(emsg); - const s2 = mod(s * s); - const u1 = mod(_1n + a * s2); // 4 (a is -1) - const u2 = mod(_1n - a * s2); // 5 - const u1_2 = mod(u1 * u1); - const u2_2 = mod(u2 * u2); - const v = mod(a * d * u1_2 - u2_2); // 6 - const { isValid, value: I } = invertSqrt(mod(v * u2_2)); // 7 - const Dx = mod(I * u2); // 8 - const Dy = mod(I * Dx * v); // 9 - let x = mod((s + s) * Dx); // 10 - if (isNegativeLE(x, P)) - x = mod(-x); // 10 - const y = mod(u1 * Dy); // 11 - const t = mod(x * y); // 12 - if (!isValid || isNegativeLE(t, P) || y === _0n) - throw new Error(emsg); - return new RistPoint(new ed25519.ExtendedPoint(x, y, _1n, t)); - } - /** - * Encodes ristretto point to Uint8Array. - * https://ristretto.group/formulas/encoding.html - */ - toRawBytes() { - let { ex: x, ey: y, ez: z, et: t } = this.ep; - const P = ed25519.CURVE.Fp.ORDER; - const mod = ed25519.CURVE.Fp.create; - const u1 = mod(mod(z + y) * mod(z - y)); // 1 - const u2 = mod(x * y); // 2 - // Square root always exists - const u2sq = mod(u2 * u2); - const { value: invsqrt } = invertSqrt(mod(u1 * u2sq)); // 3 - const D1 = mod(invsqrt * u1); // 4 - const D2 = mod(invsqrt * u2); // 5 - const zInv = mod(D1 * D2 * t); // 6 - let D; // 7 - if (isNegativeLE(t * zInv, P)) { - let _x = mod(y * SQRT_M1); - let _y = mod(x * SQRT_M1); - x = _x; - y = _y; - D = mod(D1 * INVSQRT_A_MINUS_D); - } - else { - D = D2; // 8 - } - if (isNegativeLE(x * zInv, P)) - y = mod(-y); // 9 - let s = mod((z - y) * D); // 10 (check footer's note, no sqrt(-a)) - if (isNegativeLE(s, P)) - s = mod(-s); - return numberToBytesLE(s, 32); // 11 - } - toHex() { - return bytesToHex(this.toRawBytes()); - } - toString() { - return this.toHex(); - } - // Compare one point to another. - equals(other) { - assertRstPoint(other); - const { ex: X1, ey: Y1 } = this.ep; - const { ex: X2, ey: Y2 } = other.ep; - const mod = ed25519.CURVE.Fp.create; - // (x1 * y2 == y1 * x2) | (y1 * y2 == x1 * x2) - const one = mod(X1 * Y2) === mod(Y1 * X2); - const two = mod(Y1 * Y2) === mod(X1 * X2); - return one || two; - } - add(other) { - assertRstPoint(other); - return new RistPoint(this.ep.add(other.ep)); - } - subtract(other) { - assertRstPoint(other); - return new RistPoint(this.ep.subtract(other.ep)); - } - multiply(scalar) { - return new RistPoint(this.ep.multiply(scalar)); - } - multiplyUnsafe(scalar) { - return new RistPoint(this.ep.multiplyUnsafe(scalar)); - } -} -export const RistrettoPoint = /* @__PURE__ */ (() => { - if (!RistPoint.BASE) - RistPoint.BASE = new RistPoint(ed25519.ExtendedPoint.BASE); - if (!RistPoint.ZERO) - RistPoint.ZERO = new RistPoint(ed25519.ExtendedPoint.ZERO); - return RistPoint; -})(); -// https://datatracker.ietf.org/doc/draft-irtf-cfrg-hash-to-curve/14/ -// Appendix B. Hashing to ristretto255 -export const hash_to_ristretto255 = (msg, options) => { - const d = options.DST; - const DST = typeof d === 'string' ? utf8ToBytes(d) : d; - const uniform_bytes = expand_message_xmd(msg, DST, 64, sha512); - const P = RistPoint.hashToCurve(uniform_bytes); - return P; -}; -//# sourceMappingURL=ed25519.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/esm/ed25519.js.map b/node_modules/@noble/curves/esm/ed25519.js.map deleted file mode 100644 index 5a84c434..00000000 --- a/node_modules/@noble/curves/esm/ed25519.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ed25519.js","sourceRoot":"","sources":["../src/ed25519.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAC5E,OAAO,EAAgB,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACrE,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,KAAK,EAAE,UAAU,EAAE,YAAY,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AACnF,OAAO,EACL,UAAU,EACV,eAAe,EACf,WAAW,EACX,UAAU,EAEV,eAAe,GAChB,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EAAE,YAAY,EAAgB,kBAAkB,EAAE,MAAM,6BAA6B,CAAC;AAG7F;;;;;GAKG;AAEH,MAAM,SAAS,GAAG,MAAM,CACtB,+EAA+E,CAChF,CAAC;AACF,iCAAiC;AACjC,MAAM,eAA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AG,OAAO,CAAC,KAAK,QAAQ,CAAC,CAAC,CAAC,WAAW,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACvD,MAAM,aAAa,GAAG,kBAAkB,CAAC,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,MAAM,CAAC,CAAC;IAC/D,MAAM,CAAC,GAAG,SAAS,CAAC,WAAW,CAAC,aAAa,CAAC,CAAC;IAC/C,OAAO,CAAC,CAAC;AACX,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/esm/ed448.js b/node_modules/@noble/curves/esm/ed448.js deleted file mode 100644 index 76b46336..00000000 --- a/node_modules/@noble/curves/esm/ed448.js +++ /dev/null @@ -1,215 +0,0 @@ -/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */ -import { shake256 } from '@noble/hashes/sha3'; -import { concatBytes, randomBytes, utf8ToBytes, wrapConstructor } from '@noble/hashes/utils'; -import { twistedEdwards } from './abstract/edwards.js'; -import { mod, pow2, Field } from './abstract/modular.js'; -import { montgomery } from './abstract/montgomery.js'; -import { createHasher } from './abstract/hash-to-curve.js'; -/** - * Edwards448 (not Ed448-Goldilocks) curve with following addons: - * * X448 ECDH - * Conforms to RFC 8032 https://www.rfc-editor.org/rfc/rfc8032.html#section-5.2 - */ -const shake256_114 = wrapConstructor(() => shake256.create({ dkLen: 114 })); -const shake256_64 = wrapConstructor(() => shake256.create({ dkLen: 64 })); -const ed448P = BigInt('726838724295606890549323807888004534353641360687318060281490199180612328166730772686396383698676545930088884461843637361053498018365439'); -// powPminus3div4 calculates z = x^k mod p, where k = (p-3)/4. -// Used for efficient square root calculation. -// ((P-3)/4).toString(2) would produce bits [223x 1, 0, 222x 1] -function ed448_pow_Pminus3div4(x) { - const P = ed448P; - // prettier-ignore - const _1n = BigInt(1), _2n = BigInt(2), _3n = BigInt(3), _11n = BigInt(11); - // prettier-ignore - const _22n = BigInt(22), _44n = BigInt(44), _88n = BigInt(88), _223n = BigInt(223); - const b2 = (x * x * x) % P; - const b3 = (b2 * b2 * x) % P; - const b6 = (pow2(b3, _3n, P) * b3) % P; - const b9 = (pow2(b6, _3n, P) * b3) % P; - const b11 = (pow2(b9, _2n, P) * b2) % P; - const b22 = (pow2(b11, _11n, P) * b11) % P; - const b44 = (pow2(b22, _22n, P) * b22) % P; - const b88 = (pow2(b44, _44n, P) * b44) % P; - const b176 = (pow2(b88, _88n, P) * b88) % P; - const b220 = (pow2(b176, _44n, P) * b44) % P; - const b222 = (pow2(b220, _2n, P) * b2) % P; - const b223 = (pow2(b222, _1n, P) * x) % P; - return (pow2(b223, _223n, P) * b222) % P; -} -function adjustScalarBytes(bytes) { - // Section 5: Likewise, for X448, set the two least significant bits of the first byte to 0, and the most - // significant bit of the last byte to 1. - bytes[0] &= 252; // 0b11111100 - // and the most significant bit of the last byte to 1. - bytes[55] |= 128; // 0b10000000 - // NOTE: is is NOOP for 56 bytes scalars (X25519/X448) - bytes[56] = 0; // Byte outside of group (456 buts vs 448 bits) - return bytes; -} -const Fp = Field(ed448P, 456, true); -const _4n = BigInt(4); -const ED448_DEF = { - // Param: a - a: BigInt(1), - // -39081. Negative number is P - number - d: BigInt('726838724295606890549323807888004534353641360687318060281490199180612328166730772686396383698676545930088884461843637361053498018326358'), - // Finite field 𝔽p over which we'll do calculations; 2n**448n - 2n**224n - 1n - Fp, - // Subgroup order: how many points curve has; - // 2n**446n - 13818066809895115352007386748515426880336692474882178609894547503885n - n: BigInt('181709681073901722637330951972001133588410340171829515070372549795146003961539585716195755291692375963310293709091662304773755859649779'), - nBitLength: 456, - // Cofactor - h: BigInt(4), - // Base point (x, y) aka generator point - Gx: BigInt('224580040295924300187604334099896036246789641632564134246125461686950415467406032909029192869357953282578032075146446173674602635247710'), - Gy: BigInt('298819210078481492676017930443930673437544040154080242095928241372331506189835876003536878655418784733982303233503462500531545062832660'), - // SHAKE256(dom4(phflag,context)||x, 114) - hash: shake256_114, - randomBytes, - adjustScalarBytes, - // dom4 - domain: (data, ctx, phflag) => { - if (ctx.length > 255) - throw new Error(`Context is too big: ${ctx.length}`); - return concatBytes(utf8ToBytes('SigEd448'), new Uint8Array([phflag ? 1 : 0, ctx.length]), ctx, data); - }, - // Constant-time ratio of u to v. Allows to combine inversion and square root u/√v. - // Uses algo from RFC8032 5.1.3. - uvRatio: (u, v) => { - const P = ed448P; - // https://datatracker.ietf.org/doc/html/rfc8032#section-5.2.3 - // To compute the square root of (u/v), the first step is to compute the - // candidate root x = (u/v)^((p+1)/4). This can be done using the - // following trick, to use a single modular powering for both the - // inversion of v and the square root: - // x = (u/v)^((p+1)/4) = u³v(u⁵v³)^((p-3)/4) (mod p) - const u2v = mod(u * u * v, P); // u²v - const u3v = mod(u2v * u, P); // u³v - const u5v3 = mod(u3v * u2v * v, P); // u⁵v³ - const root = ed448_pow_Pminus3div4(u5v3); - const x = mod(u3v * root, P); - // Verify that root is exists - const x2 = mod(x * x, P); // x² - // If vx² = u, the recovered x-coordinate is x. Otherwise, no - // square root exists, and the decoding fails. - return { isValid: mod(x2 * v, P) === u, value: x }; - }, -}; -export const ed448 = twistedEdwards(ED448_DEF); -// NOTE: there is no ed448ctx, since ed448 supports ctx by default -export const ed448ph = twistedEdwards({ ...ED448_DEF, prehash: shake256_64 }); -export const x448 = /* @__PURE__ */ (() => montgomery({ - a: BigInt(156326), - montgomeryBits: 448, - nByteLength: 57, - P: ed448P, - Gu: BigInt(5), - powPminus2: (x) => { - const P = ed448P; - const Pminus3div4 = ed448_pow_Pminus3div4(x); - const Pminus3 = pow2(Pminus3div4, BigInt(2), P); - return mod(Pminus3 * x, P); // Pminus3 * x = Pminus2 - }, - adjustScalarBytes, - randomBytes, -}))(); -/** - * Converts edwards448 public key to x448 public key. Uses formula: - * * `(u, v) = ((y-1)/(y+1), sqrt(156324)*u/x)` - * * `(x, y) = (sqrt(156324)*u/v, (1+u)/(1-u))` - * @example - * const aPub = ed448.getPublicKey(utils.randomPrivateKey()); - * x448.getSharedSecret(edwardsToMontgomery(aPub), edwardsToMontgomery(someonesPub)) - */ -export function edwardsToMontgomeryPub(edwardsPub) { - const { y } = ed448.ExtendedPoint.fromHex(edwardsPub); - const _1n = BigInt(1); - return Fp.toBytes(Fp.create((y - _1n) * Fp.inv(y + _1n))); -} -export const edwardsToMontgomery = edwardsToMontgomeryPub; // deprecated -// Hash To Curve Elligator2 Map -const ELL2_C1 = (Fp.ORDER - BigInt(3)) / BigInt(4); // 1. c1 = (q - 3) / 4 # Integer arithmetic -const ELL2_J = BigInt(156326); -function map_to_curve_elligator2_curve448(u) { - let tv1 = Fp.sqr(u); // 1. tv1 = u^2 - let e1 = Fp.eql(tv1, Fp.ONE); // 2. e1 = tv1 == 1 - tv1 = Fp.cmov(tv1, Fp.ZERO, e1); // 3. tv1 = CMOV(tv1, 0, e1) # If Z * u^2 == -1, set tv1 = 0 - let xd = Fp.sub(Fp.ONE, tv1); // 4. xd = 1 - tv1 - let x1n = Fp.neg(ELL2_J); // 5. x1n = -J - let tv2 = Fp.sqr(xd); // 6. tv2 = xd^2 - let gxd = Fp.mul(tv2, xd); // 7. gxd = tv2 * xd # gxd = xd^3 - let gx1 = Fp.mul(tv1, Fp.neg(ELL2_J)); // 8. gx1 = -J * tv1 # x1n + J * xd - gx1 = Fp.mul(gx1, x1n); // 9. gx1 = gx1 * x1n # x1n^2 + J * x1n * xd - gx1 = Fp.add(gx1, tv2); // 10. gx1 = gx1 + tv2 # x1n^2 + J * x1n * xd + xd^2 - gx1 = Fp.mul(gx1, x1n); // 11. gx1 = gx1 * x1n # x1n^3 + J * x1n^2 * xd + x1n * xd^2 - let tv3 = Fp.sqr(gxd); // 12. tv3 = gxd^2 - tv2 = Fp.mul(gx1, gxd); // 13. tv2 = gx1 * gxd # gx1 * gxd - tv3 = Fp.mul(tv3, tv2); // 14. tv3 = tv3 * tv2 # gx1 * gxd^3 - let y1 = Fp.pow(tv3, ELL2_C1); // 15. y1 = tv3^c1 # (gx1 * gxd^3)^((p - 3) / 4) - y1 = Fp.mul(y1, tv2); // 16. y1 = y1 * tv2 # gx1 * gxd * (gx1 * gxd^3)^((p - 3) / 4) - let x2n = Fp.mul(x1n, Fp.neg(tv1)); // 17. x2n = -tv1 * x1n # x2 = x2n / xd = -1 * u^2 * x1n / xd - let y2 = Fp.mul(y1, u); // 18. y2 = y1 * u - y2 = Fp.cmov(y2, Fp.ZERO, e1); // 19. y2 = CMOV(y2, 0, e1) - tv2 = Fp.sqr(y1); // 20. tv2 = y1^2 - tv2 = Fp.mul(tv2, gxd); // 21. tv2 = tv2 * gxd - let e2 = Fp.eql(tv2, gx1); // 22. e2 = tv2 == gx1 - let xn = Fp.cmov(x2n, x1n, e2); // 23. xn = CMOV(x2n, x1n, e2) # If e2, x = x1, else x = x2 - let y = Fp.cmov(y2, y1, e2); // 24. y = CMOV(y2, y1, e2) # If e2, y = y1, else y = y2 - let e3 = Fp.isOdd(y); // 25. e3 = sgn0(y) == 1 # Fix sign of y - y = Fp.cmov(y, Fp.neg(y), e2 !== e3); // 26. y = CMOV(y, -y, e2 XOR e3) - return { xn, xd, yn: y, yd: Fp.ONE }; // 27. return (xn, xd, y, 1) -} -function map_to_curve_elligator2_edwards448(u) { - let { xn, xd, yn, yd } = map_to_curve_elligator2_curve448(u); // 1. (xn, xd, yn, yd) = map_to_curve_elligator2_curve448(u) - let xn2 = Fp.sqr(xn); // 2. xn2 = xn^2 - let xd2 = Fp.sqr(xd); // 3. xd2 = xd^2 - let xd4 = Fp.sqr(xd2); // 4. xd4 = xd2^2 - let yn2 = Fp.sqr(yn); // 5. yn2 = yn^2 - let yd2 = Fp.sqr(yd); // 6. yd2 = yd^2 - let xEn = Fp.sub(xn2, xd2); // 7. xEn = xn2 - xd2 - let tv2 = Fp.sub(xEn, xd2); // 8. tv2 = xEn - xd2 - xEn = Fp.mul(xEn, xd2); // 9. xEn = xEn * xd2 - xEn = Fp.mul(xEn, yd); // 10. xEn = xEn * yd - xEn = Fp.mul(xEn, yn); // 11. xEn = xEn * yn - xEn = Fp.mul(xEn, _4n); // 12. xEn = xEn * 4 - tv2 = Fp.mul(tv2, xn2); // 13. tv2 = tv2 * xn2 - tv2 = Fp.mul(tv2, yd2); // 14. tv2 = tv2 * yd2 - let tv3 = Fp.mul(yn2, _4n); // 15. tv3 = 4 * yn2 - let tv1 = Fp.add(tv3, yd2); // 16. tv1 = tv3 + yd2 - tv1 = Fp.mul(tv1, xd4); // 17. tv1 = tv1 * xd4 - let xEd = Fp.add(tv1, tv2); // 18. xEd = tv1 + tv2 - tv2 = Fp.mul(tv2, xn); // 19. tv2 = tv2 * xn - let tv4 = Fp.mul(xn, xd4); // 20. tv4 = xn * xd4 - let yEn = Fp.sub(tv3, yd2); // 21. yEn = tv3 - yd2 - yEn = Fp.mul(yEn, tv4); // 22. yEn = yEn * tv4 - yEn = Fp.sub(yEn, tv2); // 23. yEn = yEn - tv2 - tv1 = Fp.add(xn2, xd2); // 24. tv1 = xn2 + xd2 - tv1 = Fp.mul(tv1, xd2); // 25. tv1 = tv1 * xd2 - tv1 = Fp.mul(tv1, xd); // 26. tv1 = tv1 * xd - tv1 = Fp.mul(tv1, yn2); // 27. tv1 = tv1 * yn2 - tv1 = Fp.mul(tv1, BigInt(-2)); // 28. tv1 = -2 * tv1 - let yEd = Fp.add(tv2, tv1); // 29. yEd = tv2 + tv1 - tv4 = Fp.mul(tv4, yd2); // 30. tv4 = tv4 * yd2 - yEd = Fp.add(yEd, tv4); // 31. yEd = yEd + tv4 - tv1 = Fp.mul(xEd, yEd); // 32. tv1 = xEd * yEd - let e = Fp.eql(tv1, Fp.ZERO); // 33. e = tv1 == 0 - xEn = Fp.cmov(xEn, Fp.ZERO, e); // 34. xEn = CMOV(xEn, 0, e) - xEd = Fp.cmov(xEd, Fp.ONE, e); // 35. xEd = CMOV(xEd, 1, e) - yEn = Fp.cmov(yEn, Fp.ONE, e); // 36. yEn = CMOV(yEn, 1, e) - yEd = Fp.cmov(yEd, Fp.ONE, e); // 37. yEd = CMOV(yEd, 1, e) - const inv = Fp.invertBatch([xEd, yEd]); // batch division - return { x: Fp.mul(xEn, inv[0]), y: Fp.mul(yEn, inv[1]) }; // 38. return (xEn, xEd, yEn, yEd) -} -const htf = /* @__PURE__ */ (() => createHasher(ed448.ExtendedPoint, (scalars) => map_to_curve_elligator2_edwards448(scalars[0]), { - DST: 'edwards448_XOF:SHAKE256_ELL2_RO_', - encodeDST: 'edwards448_XOF:SHAKE256_ELL2_NU_', - p: Fp.ORDER, - m: 1, - k: 224, - expand: 'xof', - hash: shake256, -}))(); -export const hashToCurve = /* @__PURE__ */ (() => htf.hashToCurve)(); -export const encodeToCurve = /* @__PURE__ */ (() => htf.encodeToCurve)(); -//# sourceMappingURL=ed448.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/esm/ed448.js.map b/node_modules/@noble/curves/esm/ed448.js.map deleted file mode 100644 index e8774075..00000000 --- a/node_modules/@noble/curves/esm/ed448.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ed448.js","sourceRoot":"","sources":["../src/ed448.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,OAAO,EAAE,QAAQ,EAAE,MAAM,oBAAoB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAC7F,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,GAAG,EAAE,IAAI,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,UAAU,EAAE,MAAM,0BAA0B,CAAC;AACtD,OAAO,EAAE,YAAY,EAAE,MAAM,6BAA6B,CAAC;AAE3D;;;;GAIG;AAEH,MAAM,YAAY,GAAG,eAAe,CAAC,GAAG,EAAE,CAAC,QAAQ,CAAC,MAAM,CAAC,EAAE,KAAK,EAAE,GAAG,EAAE,CAAC,CAAC,CAAC;AAC5E,MAAM,WAAW,GAAG,eAAe,CAAC,GAAG,EAAE,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nB,CAAC,OAAiB,EAAE,EAAE,CAAC,kCAAkC,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EACrE;IACE,GAAG,EAAE,kCAAkC;IACvC,SAAS,EAAE,kCAAkC;IAC7C,CAAC,EAAE,EAAE,CAAC,KAAK;IACX,CAAC,EAAE,CAAC;IACJ,CAAC,EAAE,GAAG;IACN,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,QAAQ;CACf,CACF,CAAC,EAAE,CAAC;AACP,MAAM,CAAC,MAAM,WAAW,GAAG,eAAe,CAAC,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,CAAC;AACrE,MAAM,CAAC,MAAM,aAAa,GAAG,eAAe,CAAC,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,aAAa,CAAC,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/esm/index.js b/node_modules/@noble/curves/esm/index.js deleted file mode 100644 index ac4f2231..00000000 --- a/node_modules/@noble/curves/esm/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -throw new Error('Incorrect usage. Import submodules instead'); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/esm/index.js.map b/node_modules/@noble/curves/esm/index.js.map deleted file mode 100644 index b5117dcd..00000000 --- a/node_modules/@noble/curves/esm/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,MAAM,IAAI,KAAK,CAAC,4CAA4C,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/esm/jubjub.js b/node_modules/@noble/curves/esm/jubjub.js deleted file mode 100644 index 2b1f575d..00000000 --- a/node_modules/@noble/curves/esm/jubjub.js +++ /dev/null @@ -1,54 +0,0 @@ -/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */ -import { sha512 } from '@noble/hashes/sha512'; -import { concatBytes, randomBytes, utf8ToBytes } from '@noble/hashes/utils'; -import { twistedEdwards } from './abstract/edwards.js'; -import { blake2s } from '@noble/hashes/blake2s'; -import { Field } from './abstract/modular.js'; -/** - * jubjub Twisted Edwards curve. - * https://neuromancer.sk/std/other/JubJub - * jubjub does not use EdDSA, so `hash`/sha512 params are passed because interface expects them. - */ -export const jubjub = twistedEdwards({ - // Params: a, d - a: BigInt('0x73eda753299d7d483339d80809a1d80553bda402fffe5bfeffffffff00000000'), - d: BigInt('0x2a9318e74bfa2b48f5fd9207e6bd7fd4292d7f6d37579d2601065fd6d6343eb1'), - // Finite field 𝔽p over which we'll do calculations - // Same value as bls12-381 Fr (not Fp) - Fp: Field(BigInt('0x73eda753299d7d483339d80809a1d80553bda402fffe5bfeffffffff00000001')), - // Subgroup order: how many points curve has - n: BigInt('0xe7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72cb7'), - // Cofactor - h: BigInt(8), - // Base point (x, y) aka generator point - Gx: BigInt('0x11dafe5d23e1218086a365b99fbf3d3be72f6afd7d1f72623e6b071492d1122b'), - Gy: BigInt('0x1d523cf1ddab1a1793132e78c866c0c33e26ba5cc220fed7cc3f870e59d292aa'), - hash: sha512, - randomBytes, -}); -const GH_FIRST_BLOCK = utf8ToBytes('096b36a5804bfacef1691e173c366a47ff5ba84a44f26ddd7e8d9f79d5b42df0'); -// Returns point at JubJub curve which is prime order and not zero -export function groupHash(tag, personalization) { - const h = blake2s.create({ personalization, dkLen: 32 }); - h.update(GH_FIRST_BLOCK); - h.update(tag); - // NOTE: returns ExtendedPoint, in case it will be multiplied later - let p = jubjub.ExtendedPoint.fromHex(h.digest()); - // NOTE: cannot replace with isSmallOrder, returns Point*8 - p = p.multiply(jubjub.CURVE.h); - if (p.equals(jubjub.ExtendedPoint.ZERO)) - throw new Error('Point has small order'); - return p; -} -export function findGroupHash(m, personalization) { - const tag = concatBytes(m, new Uint8Array([0])); - for (let i = 0; i < 256; i++) { - tag[tag.length - 1] = i; - try { - return groupHash(tag, personalization); - } - catch (e) { } - } - throw new Error('findGroupHash tag overflow'); -} -//# sourceMappingURL=jubjub.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/esm/jubjub.js.map b/node_modules/@noble/curves/esm/jubjub.js.map deleted file mode 100644 index 41ad6bb7..00000000 --- a/node_modules/@noble/curves/esm/jubjub.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"jubjub.js","sourceRoot":"","sources":["../src/jubjub.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,WAAW,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAC5E,OAAO,EAAE,cAAc,EAAE,MAAM,uBAAuB,CAAC;AACvD,OAAO,EAAE,OAAO,EAAE,MAAM,uBAAuB,CAAC;AAChD,OAAO,EAAE,KAAK,EAAE,MAAM,uBAAuB,CAAC;AAE9C;;;;GAIG;AAEH,MAAM,CAAC,MAAM,MAAM,GAAG,cAAc,CAAC;IACnC,eAAe;IACf,CAAC,EAAE,MAAM,CAAC,oEAAoE,CAAC;IAC/E,CAAC,EAAE,MAAM,CAAC,oEAAoE,CAAC;IAC/E,oDAAoD;IACpD,sCAAsC;IACtC,EAAE,EAAE,KAAK,CAAC,MAAM,CAAC,oEAAoE,CAAC,CAAC;IACvF,4CAA4C;IAC5C,CAAC,EAAE,MAAM,CAAC,mEAAmE,CAAC;IAC9E,WAAW;IACX,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;IACZ,wCAAwC;IACxC,EAAE,EAAE,MAAM,CAAC,oEAAoE,CAAC;IAChF,EAAE,EAAE,MAAM,CAAC,oEAAoE,CAAC;IAChF,IAAI,EAAE,MAAM;IACZ,WAAW;CACH,CAAC,CAAC;AAEZ,MAAM,cAAc,GAAG,WAAW,CAChC,kEAAkE,CACnE,CAAC;AAEF,kEAAkE;AAClE,MAAM,UAAU,SAAS,CAAC,GAAe,EAAE,eAA2B;IACpE,MAAM,CAAC,GAAG,OAAO,CAAC,MAAM,CAAC,EAAE,eAAe,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;IACzD,CAAC,CAAC,MAAM,CAAC,cAAc,CAAC,CAAC;IACzB,CAAC,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;IACd,mEAAmE;IACnE,IAAI,CAAC,GAAG,MAAM,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;IACjD,0DAA0D;IAC1D,CAAC,GAAG,CAAC,CAAC,QAAQ,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAC/B,IAAI,CAAC,CAAC,MAAM,CAAC,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,uBAAuB,CAAC,CAAC;IAClF,OAAO,CAAC,CAAC;AACX,CAAC;AAED,MAAM,UAAU,aAAa,CAAC,CAAa,EAAE,eAA2B;IACtE,MAAM,GAAG,GAAG,WAAW,CAAC,CAAC,EAAE,IAAI,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAChD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,EAAE,EAAE;QAC5B,GAAG,CAAC,GAAG,CAAC,MAAM,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC;QACxB,IAAI;YACF,OAAO,SAAS,CAAC,GAAG,EAAE,eAAe,CAAC,CAAC;SACxC;QAAC,OAAO,CAAC,EAAE,GAAE;KACf;IACD,MAAM,IAAI,KAAK,CAAC,4BAA4B,CAAC,CAAC;AAChD,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/esm/p256.js b/node_modules/@noble/curves/esm/p256.js deleted file mode 100644 index 5e2e89e1..00000000 --- a/node_modules/@noble/curves/esm/p256.js +++ /dev/null @@ -1,42 +0,0 @@ -/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */ -import { createCurve } from './_shortw_utils.js'; -import { sha256 } from '@noble/hashes/sha256'; -import { Field } from './abstract/modular.js'; -import { mapToCurveSimpleSWU } from './abstract/weierstrass.js'; -import { createHasher } from './abstract/hash-to-curve.js'; -// NIST secp256r1 aka p256 -// https://www.secg.org/sec2-v2.pdf, https://neuromancer.sk/std/nist/P-256 -const Fp = Field(BigInt('0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff')); -const CURVE_A = Fp.create(BigInt('-3')); -const CURVE_B = BigInt('0x5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b'); -// prettier-ignore -export const p256 = createCurve({ - a: CURVE_A, - b: CURVE_B, - Fp, - // Curve order, total count of valid points in the field - n: BigInt('0xffffffff00000000ffffffffffffffffbce6faada7179e84f3b9cac2fc632551'), - // Base (generator) point (x, y) - Gx: BigInt('0x6b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296'), - Gy: BigInt('0x4fe342e2fe1a7f9b8ee7eb4a7c0f9e162bce33576b315ececbb6406837bf51f5'), - h: BigInt(1), - lowS: false, -}, sha256); -export const secp256r1 = p256; -const mapSWU = /* @__PURE__ */ (() => mapToCurveSimpleSWU(Fp, { - A: CURVE_A, - B: CURVE_B, - Z: Fp.create(BigInt('-10')), -}))(); -const htf = /* @__PURE__ */ (() => createHasher(secp256r1.ProjectivePoint, (scalars) => mapSWU(scalars[0]), { - DST: 'P256_XMD:SHA-256_SSWU_RO_', - encodeDST: 'P256_XMD:SHA-256_SSWU_NU_', - p: Fp.ORDER, - m: 1, - k: 128, - expand: 'xmd', - hash: sha256, -}))(); -export const hashToCurve = /* @__PURE__ */ (() => htf.hashToCurve)(); -export const encodeToCurve = /* @__PURE__ */ (() => htf.encodeToCurve)(); -//# sourceMappingURL=p256.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/esm/p256.js.map b/node_modules/@noble/curves/esm/p256.js.map deleted file mode 100644 index 1efec390..00000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MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;CAC5B,CAAC,CAAC,EAAE,CAAC;AAER,MAAM,GAAG,GAAG,eAAe,CAAC,CAAC,GAAG,EAAE,CAChC,YAAY,CAAC,SAAS,CAAC,eAAe,EAAE,CAAC,OAAiB,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE;IACjF,GAAG,EAAE,2BAA2B;IAChC,SAAS,EAAE,2BAA2B;IACtC,CAAC,EAAE,EAAE,CAAC,KAAK;IACX,CAAC,EAAE,CAAC;IACJ,CAAC,EAAE,GAAG;IACN,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,MAAM;CACb,CAAC,CAAC,EAAE,CAAC;AACR,MAAM,CAAC,MAAM,WAAW,GAAG,eAAe,CAAC,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,CAAC;AACrE,MAAM,CAAC,MAAM,aAAa,GAAG,eAAe,CAAC,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,aAAa,CAAC,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/esm/p384.js b/node_modules/@noble/curves/esm/p384.js deleted file mode 100644 index 21d9308b..00000000 --- a/node_modules/@noble/curves/esm/p384.js +++ /dev/null @@ -1,46 +0,0 @@ -/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */ -import { createCurve } from './_shortw_utils.js'; -import { sha384 } from '@noble/hashes/sha512'; -import { Field } from './abstract/modular.js'; -import { mapToCurveSimpleSWU } from './abstract/weierstrass.js'; -import { createHasher } from './abstract/hash-to-curve.js'; -// NIST secp384r1 aka p384 -// https://www.secg.org/sec2-v2.pdf, https://neuromancer.sk/std/nist/P-384 -// Field over which we'll do calculations. -// prettier-ignore -const P = BigInt('0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffeffffffff0000000000000000ffffffff'); -const Fp = Field(P); -const CURVE_A = Fp.create(BigInt('-3')); -// prettier-ignore -const CURVE_B = BigInt('0xb3312fa7e23ee7e4988e056be3f82d19181d9c6efe8141120314088f5013875ac656398d8a2ed19d2a85c8edd3ec2aef'); -// prettier-ignore -export const p384 = createCurve({ - a: CURVE_A, - b: CURVE_B, - Fp, - // Curve order, total count of valid points in the field. - n: BigInt('0xffffffffffffffffffffffffffffffffffffffffffffffffc7634d81f4372ddf581a0db248b0a77aecec196accc52973'), - // Base (generator) point (x, y) - Gx: BigInt('0xaa87ca22be8b05378eb1c71ef320ad746e1d3b628ba79b9859f741e082542a385502f25dbf55296c3a545e3872760ab7'), - Gy: BigInt('0x3617de4a96262c6f5d9e98bf9292dc29f8f41dbd289a147ce9da3113b5f0b8c00a60b1ce1d7e819d7a431d7c90ea0e5f'), - h: BigInt(1), - lowS: false, -}, sha384); -export const secp384r1 = p384; -const mapSWU = /* @__PURE__ */ (() => mapToCurveSimpleSWU(Fp, { - A: CURVE_A, - B: CURVE_B, - Z: Fp.create(BigInt('-12')), -}))(); -const htf = /* @__PURE__ */ (() => createHasher(secp384r1.ProjectivePoint, (scalars) => mapSWU(scalars[0]), { - DST: 'P384_XMD:SHA-384_SSWU_RO_', - encodeDST: 'P384_XMD:SHA-384_SSWU_NU_', - p: Fp.ORDER, - m: 1, - k: 192, - expand: 'xmd', - hash: sha384, -}))(); -export const hashToCurve = /* @__PURE__ */ (() => htf.hashToCurve)(); -export const encodeToCurve = /* @__PURE__ */ (() => htf.encodeToCurve)(); -//# sourceMappingURL=p384.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/esm/p384.js.map b/node_modules/@noble/curves/esm/p384.js.map deleted file mode 100644 index bf8b8eda..00000000 --- a/node_modules/@noble/curves/esm/p384.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"p384.js","sourceRoot":"","sources":["../src/p384.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AACjD,OAAO,EAAE,MAAM,EAAE,M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Y,CAAC,SAAS,CAAC,eAAe,EAAE,CAAC,OAAiB,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE;IACjF,GAAG,EAAE,2BAA2B;IAChC,SAAS,EAAE,2BAA2B;IACtC,CAAC,EAAE,EAAE,CAAC,KAAK;IACX,CAAC,EAAE,CAAC;IACJ,CAAC,EAAE,GAAG;IACN,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,MAAM;CACb,CAAC,CAAC,EAAE,CAAC;AACR,MAAM,CAAC,MAAM,WAAW,GAAG,eAAe,CAAC,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,CAAC;AACrE,MAAM,CAAC,MAAM,aAAa,GAAG,eAAe,CAAC,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,aAAa,CAAC,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/esm/p521.js b/node_modules/@noble/curves/esm/p521.js deleted file mode 100644 index 0131155b..00000000 --- a/node_modules/@noble/curves/esm/p521.js +++ /dev/null @@ -1,53 +0,0 @@ -/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */ -import { createCurve } from './_shortw_utils.js'; -import { sha512 } from '@noble/hashes/sha512'; -import { Field } from './abstract/modular.js'; -import { mapToCurveSimpleSWU } from './abstract/weierstrass.js'; -import { createHasher } from './abstract/hash-to-curve.js'; -// NIST secp521r1 aka p521 -// Note that it's 521, which differs from 512 of its hash function. -// https://www.secg.org/sec2-v2.pdf, https://neuromancer.sk/std/nist/P-521 -// Field over which we'll do calculations. -// prettier-ignore -const P = BigInt('0x1ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff'); -const Fp = Field(P); -const CURVE = { - a: Fp.create(BigInt('-3')), - b: BigInt('0x0051953eb9618e1c9a1f929a21a0b68540eea2da725b99b315f3b8b489918ef109e156193951ec7e937b1652c0bd3bb1bf073573df883d2c34f1ef451fd46b503f00'), - Fp, - n: BigInt('0x01fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa51868783bf2f966b7fcc0148f709a5d03bb5c9b8899c47aebb6fb71e91386409'), - Gx: BigInt('0x00c6858e06b70404e9cd9e3ecb662395b4429c648139053fb521f828af606b4d3dbaa14b5e77efe75928fe1dc127a2ffa8de3348b3c1856a429bf97e7e31c2e5bd66'), - Gy: BigInt('0x011839296a789a3bc0045c8a5fb42c7d1bd998f54449579b446817afbd17273e662c97ee72995ef42640c550b9013fad0761353c7086a272c24088be94769fd16650'), - h: BigInt(1), -}; -// prettier-ignore -export const p521 = createCurve({ - a: CURVE.a, - b: CURVE.b, - Fp, - // Curve order, total count of valid points in the field - n: CURVE.n, - Gx: CURVE.Gx, - Gy: CURVE.Gy, - h: CURVE.h, - lowS: false, - allowedPrivateKeyLengths: [130, 131, 132] // P521 keys are variable-length. Normalize to 132b -}, sha512); -export const secp521r1 = p521; -const mapSWU = /* @__PURE__ */ (() => mapToCurveSimpleSWU(Fp, { - A: CURVE.a, - B: CURVE.b, - Z: Fp.create(BigInt('-4')), -}))(); -const htf = /* @__PURE__ */ (() => createHasher(secp521r1.ProjectivePoint, (scalars) => mapSWU(scalars[0]), { - DST: 'P521_XMD:SHA-512_SSWU_RO_', - encodeDST: 'P521_XMD:SHA-512_SSWU_NU_', - p: Fp.ORDER, - m: 1, - k: 256, - expand: 'xmd', - hash: sha512, -}))(); -export const hashToCurve = /* @__PURE__ */ (() => htf.hashToCurve)(); -export const encodeToCurve = /* @__PURE__ */ (() => htf.encodeToCurve)(); -//# sourceMappingURL=p521.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/esm/p521.js.map b/node_modules/@noble/curves/esm/p521.js.map deleted file mode 100644 index cd24eb59..00000000 --- a/node_modules/@noble/curves/esm/p521.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"p521.js","sourceRoot":"","sources":["../src/p521.ts"],"names":[],"mappings":"AAAA,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C,MAAM,SAAS,GAAG,IAAI,CAAC;AAE9B,MAAM,MAAM,GAAG,eAAe,CAAC,CAAC,GAAG,EAAE,CACnC,mBAAmB,CAAC,EAAE,EAAE;IACtB,CAAC,EAAE,KAAK,CAAC,CAAC;IACV,CAAC,EAAE,KAAK,CAAC,CAAC;IACV,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;CAC3B,CAAC,CAAC,EAAE,CAAC;AAER,MAAM,GAAG,GAAG,eAAe,CAAC,CAAC,GAAG,EAAE,CAChC,YAAY,CAAC,SAAS,CAAC,eAAe,EAAE,CAAC,OAAiB,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE;IACjF,GAAG,EAAE,2BAA2B;IAChC,SAAS,EAAE,2BAA2B;IACtC,CAAC,EAAE,EAAE,CAAC,KAAK;IACX,CAAC,EAAE,CAAC;IACJ,CAAC,EAAE,GAAG;IACN,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,MAAM;CACb,CAAC,CAAC,EAAE,CAAC;AACR,MAAM,CAAC,MAAM,WAAW,GAAG,eAAe,CAAC,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,CAAC;AACrE,MAAM,CAAC,MAAM,aAAa,GAAG,eAAe,CAAC,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,aAAa,CAAC,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/esm/package.json b/node_modules/@noble/curves/esm/package.json deleted file mode 100644 index 267769c6..00000000 --- a/node_modules/@noble/curves/esm/package.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "type": "module", - "browser": { - "crypto": false, - "./crypto": "./esm/crypto.js" - } -} diff --git a/node_modules/@noble/curves/esm/pasta.js b/node_modules/@noble/curves/esm/pasta.js deleted file mode 100644 index fa5ca528..00000000 --- a/node_modules/@noble/curves/esm/pasta.js +++ /dev/null @@ -1,30 +0,0 @@ -/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */ -import { sha256 } from '@noble/hashes/sha256'; -import { weierstrass } from './abstract/weierstrass.js'; -import { getHash } from './_shortw_utils.js'; -import * as mod from './abstract/modular.js'; -export const p = BigInt('0x40000000000000000000000000000000224698fc094cf91b992d30ed00000001'); -export const q = BigInt('0x40000000000000000000000000000000224698fc0994a8dd8c46eb2100000001'); -// https://neuromancer.sk/std/other/Pallas -export const pallas = weierstrass({ - a: BigInt(0), - b: BigInt(5), - Fp: mod.Field(p), - n: q, - Gx: mod.mod(BigInt(-1), p), - Gy: BigInt(2), - h: BigInt(1), - ...getHash(sha256), -}); -// https://neuromancer.sk/std/other/Vesta -export const vesta = weierstrass({ - a: BigInt(0), - b: BigInt(5), - Fp: mod.Field(q), - n: p, - Gx: mod.mod(BigInt(-1), q), - Gy: BigInt(2), - h: BigInt(1), - ...getHash(sha256), -}); -//# sourceMappingURL=pasta.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/esm/pasta.js.map b/node_modules/@noble/curves/esm/pasta.js.map deleted file mode 100644 index 4942dd2e..00000000 --- a/node_modules/@noble/curves/esm/pasta.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"pasta.js","sourceRoot":"","sources":["../src/pasta.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,2BAA2B,CAAC;AACxD,OAAO,EAAE,OAAO,EAAE,MAAM,oBAAoB,CAAC;AAC7C,OAAO,KAAK,GAAG,MAAM,uBAAuB,CAAC;AAE7C,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,oEAAoE,CAAC,CAAC;AAC9F,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,oEAAoE,CAAC,CAAC;AAE9F,0CAA0C;AAC1C,MAAM,CAAC,MAAM,MAAM,GAAG,WAAW,CAAC;IAChC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;IACZ,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;IACZ,EAAE,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC;IAChB,CAAC,EAAE,CAAC;IACJ,EAAE,EAAE,GAAG,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IAC1B,EAAE,EAAE,MAAM,CAAC,CAAC,CAAC;IACb,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;IACZ,GAAG,OAAO,CAAC,MAAM,CAAC;CACnB,CAAC,CAAC;AACH,yCAAyC;AACzC,MAAM,CAAC,MAAM,KAAK,GAAG,WAAW,CAAC;IAC/B,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;IACZ,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;IACZ,EAAE,EAAE,GAAG,CAAC,KAAK,CAAC,CAAC,CAAC;IAChB,CAAC,EAAE,CAAC;IACJ,EAAE,EAAE,GAAG,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC;IAC1B,EAAE,EAAE,MAAM,CAAC,CAAC,CAAC;IACb,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;IACZ,GAAG,OAAO,CAAC,MAAM,CAAC;CACnB,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/esm/secp256k1.js b/node_modules/@noble/curves/esm/secp256k1.js deleted file mode 100644 index eb36ebc7..00000000 --- a/node_modules/@noble/curves/esm/secp256k1.js +++ /dev/null @@ -1,254 +0,0 @@ -/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */ -import { sha256 } from '@noble/hashes/sha256'; -import { randomBytes } from '@noble/hashes/utils'; -import { Field, mod, pow2 } from './abstract/modular.js'; -import { mapToCurveSimpleSWU } from './abstract/weierstrass.js'; -import { bytesToNumberBE, concatBytes, ensureBytes, numberToBytesBE } from './abstract/utils.js'; -import { createHasher, isogenyMap } from './abstract/hash-to-curve.js'; -import { createCurve } from './_shortw_utils.js'; -const secp256k1P = BigInt('0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f'); -const secp256k1N = BigInt('0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141'); -const _1n = BigInt(1); -const _2n = BigInt(2); -const divNearest = (a, b) => (a + b / _2n) / b; -/** - * √n = n^((p+1)/4) for fields p = 3 mod 4. We unwrap the loop and multiply bit-by-bit. - * (P+1n/4n).toString(2) would produce bits [223x 1, 0, 22x 1, 4x 0, 11, 00] - */ -function sqrtMod(y) { - const P = secp256k1P; - // prettier-ignore - const _3n = BigInt(3), _6n = BigInt(6), _11n = BigInt(11), _22n = BigInt(22); - // prettier-ignore - const _23n = BigInt(23), _44n = BigInt(44), _88n = BigInt(88); - const b2 = (y * y * y) % P; // x^3, 11 - const b3 = (b2 * b2 * y) % P; // x^7 - const b6 = (pow2(b3, _3n, P) * b3) % P; - const b9 = (pow2(b6, _3n, P) * b3) % P; - const b11 = (pow2(b9, _2n, P) * b2) % P; - const b22 = (pow2(b11, _11n, P) * b11) % P; - const b44 = (pow2(b22, _22n, P) * b22) % P; - const b88 = (pow2(b44, _44n, P) * b44) % P; - const b176 = (pow2(b88, _88n, P) * b88) % P; - const b220 = (pow2(b176, _44n, P) * b44) % P; - const b223 = (pow2(b220, _3n, P) * b3) % P; - const t1 = (pow2(b223, _23n, P) * b22) % P; - const t2 = (pow2(t1, _6n, P) * b2) % P; - const root = pow2(t2, _2n, P); - if (!Fp.eql(Fp.sqr(root), y)) - throw new Error('Cannot find square root'); - return root; -} -const Fp = Field(secp256k1P, undefined, undefined, { sqrt: sqrtMod }); -export const secp256k1 = createCurve({ - a: BigInt(0), - b: BigInt(7), - Fp, - n: secp256k1N, - // Base point (x, y) aka generator point - Gx: BigInt('55066263022277343669578718895168534326250603453777594175500187360389116729240'), - Gy: BigInt('32670510020758816978083085130507043184471273380659243275938904335757337482424'), - h: BigInt(1), - lowS: true, - /** - * secp256k1 belongs to Koblitz curves: it has efficiently computable endomorphism. - * Endomorphism uses 2x less RAM, speeds up precomputation by 2x and ECDH / key recovery by 20%. - * For precomputed wNAF it trades off 1/2 init time & 1/3 ram for 20% perf hit. - * Explanation: https://gist.github.com/paulmillr/eb670806793e84df628a7c434a873066 - */ - endo: { - beta: BigInt('0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee'), - splitScalar: (k) => { - const n = secp256k1N; - const a1 = BigInt('0x3086d221a7d46bcde86c90e49284eb15'); - const b1 = -_1n * BigInt('0xe4437ed6010e88286f547fa90abfe4c3'); - const a2 = BigInt('0x114ca50f7a8e2f3f657c1108d9d44cfd8'); - const b2 = a1; - const POW_2_128 = BigInt('0x100000000000000000000000000000000'); // (2n**128n).toString(16) - const c1 = divNearest(b2 * k, n); - const c2 = divNearest(-b1 * k, n); - let k1 = mod(k - c1 * a1 - c2 * a2, n); - let k2 = mod(-c1 * b1 - c2 * b2, n); - const k1neg = k1 > POW_2_128; - const k2neg = k2 > POW_2_128; - if (k1neg) - k1 = n - k1; - if (k2neg) - k2 = n - k2; - if (k1 > POW_2_128 || k2 > POW_2_128) { - throw new Error('splitScalar: Endomorphism failed, k=' + k); - } - return { k1neg, k1, k2neg, k2 }; - }, - }, -}, sha256); -// Schnorr signatures are superior to ECDSA from above. Below is Schnorr-specific BIP0340 code. -// https://github.com/bitcoin/bips/blob/master/bip-0340.mediawiki -const _0n = BigInt(0); -const fe = (x) => typeof x === 'bigint' && _0n < x && x < secp256k1P; -const ge = (x) => typeof x === 'bigint' && _0n < x && x < secp256k1N; -/** An object mapping tags to their tagged hash prefix of [SHA256(tag) | SHA256(tag)] */ -const TAGGED_HASH_PREFIXES = {}; -function taggedHash(tag, ...messages) { - let tagP = TAGGED_HASH_PREFIXES[tag]; - if (tagP === undefined) { - const tagH = sha256(Uint8Array.from(tag, (c) => c.charCodeAt(0))); - tagP = concatBytes(tagH, tagH); - TAGGED_HASH_PREFIXES[tag] = tagP; - } - return sha256(concatBytes(tagP, ...messages)); -} -// ECDSA compact points are 33-byte. Schnorr is 32: we strip first byte 0x02 or 0x03 -const pointToBytes = (point) => point.toRawBytes(true).slice(1); -const numTo32b = (n) => numberToBytesBE(n, 32); -const modP = (x) => mod(x, secp256k1P); -const modN = (x) => mod(x, secp256k1N); -const Point = secp256k1.ProjectivePoint; -const GmulAdd = (Q, a, b) => Point.BASE.multiplyAndAddUnsafe(Q, a, b); -// Calculate point, scalar and bytes -function schnorrGetExtPubKey(priv) { - let d_ = secp256k1.utils.normPrivateKeyToScalar(priv); // same method executed in fromPrivateKey - let p = Point.fromPrivateKey(d_); // P = d'⋅G; 0 < d' < n check is done inside - const scalar = p.hasEvenY() ? d_ : modN(-d_); - return { scalar: scalar, bytes: pointToBytes(p) }; -} -/** - * lift_x from BIP340. Convert 32-byte x coordinate to elliptic curve point. - * @returns valid point checked for being on-curve - */ -function lift_x(x) { - if (!fe(x)) - throw new Error('bad x: need 0 < x < p'); // Fail if x ≥ p. - const xx = modP(x * x); - const c = modP(xx * x + BigInt(7)); // Let c = x³ + 7 mod p. - let y = sqrtMod(c); // Let y = c^(p+1)/4 mod p. - if (y % _2n !== _0n) - y = modP(-y); // Return the unique point P such that x(P) = x and - const p = new Point(x, y, _1n); // y(P) = y if y mod 2 = 0 or y(P) = p-y otherwise. - p.assertValidity(); - return p; -} -/** - * Create tagged hash, convert it to bigint, reduce modulo-n. - */ -function challenge(...args) { - return modN(bytesToNumberBE(taggedHash('BIP0340/challenge', ...args))); -} -/** - * Schnorr public key is just `x` coordinate of Point as per BIP340. - */ -function schnorrGetPublicKey(privateKey) { - return schnorrGetExtPubKey(privateKey).bytes; // d'=int(sk). Fail if d'=0 or d'≥n. Ret bytes(d'⋅G) -} -/** - * Creates Schnorr signature as per BIP340. Verifies itself before returning anything. - * auxRand is optional and is not the sole source of k generation: bad CSPRNG won't be dangerous. - */ -function schnorrSign(message, privateKey, auxRand = randomBytes(32)) { - const m = ensureBytes('message', message); - const { bytes: px, scalar: d } = schnorrGetExtPubKey(privateKey); // checks for isWithinCurveOrder - const a = ensureBytes('auxRand', auxRand, 32); // Auxiliary random data a: a 32-byte array - const t = numTo32b(d ^ bytesToNumberBE(taggedHash('BIP0340/aux', a))); // Let t be the byte-wise xor of bytes(d) and hash/aux(a) - const rand = taggedHash('BIP0340/nonce', t, px, m); // Let rand = hash/nonce(t || bytes(P) || m) - const k_ = modN(bytesToNumberBE(rand)); // Let k' = int(rand) mod n - if (k_ === _0n) - throw new Error('sign failed: k is zero'); // Fail if k' = 0. - const { bytes: rx, scalar: k } = schnorrGetExtPubKey(k_); // Let R = k'⋅G. - const e = challenge(rx, px, m); // Let e = int(hash/challenge(bytes(R) || bytes(P) || m)) mod n. - const sig = new Uint8Array(64); // Let sig = bytes(R) || bytes((k + ed) mod n). - sig.set(rx, 0); - sig.set(numTo32b(modN(k + e * d)), 32); - // If Verify(bytes(P), m, sig) (see below) returns failure, abort - if (!schnorrVerify(sig, m, px)) - throw new Error('sign: Invalid signature produced'); - return sig; -} -/** - * Verifies Schnorr signature. - * Will swallow errors & return false except for initial type validation of arguments. - */ -function schnorrVerify(signature, message, publicKey) { - const sig = ensureBytes('signature', signature, 64); - const m = ensureBytes('message', message); - const pub = ensureBytes('publicKey', publicKey, 32); - try { - const P = lift_x(bytesToNumberBE(pub)); // P = lift_x(int(pk)); fail if that fails - const r = bytesToNumberBE(sig.subarray(0, 32)); // Let r = int(sig[0:32]); fail if r ≥ p. - if (!fe(r)) - return false; - const s = bytesToNumberBE(sig.subarray(32, 64)); // Let s = int(sig[32:64]); fail if s ≥ n. - if (!ge(s)) - return false; - const e = challenge(numTo32b(r), pointToBytes(P), m); // int(challenge(bytes(r)||bytes(P)||m))%n - const R = GmulAdd(P, s, modN(-e)); // R = s⋅G - e⋅P - if (!R || !R.hasEvenY() || R.toAffine().x !== r) - return false; // -eP == (n-e)P - return true; // Fail if is_infinite(R) / not has_even_y(R) / x(R) ≠ r. - } - catch (error) { - return false; - } -} -export const schnorr = /* @__PURE__ */ (() => ({ - getPublicKey: schnorrGetPublicKey, - sign: schnorrSign, - verify: schnorrVerify, - utils: { - randomPrivateKey: secp256k1.utils.randomPrivateKey, - lift_x, - pointToBytes, - numberToBytesBE, - bytesToNumberBE, - taggedHash, - mod, - }, -}))(); -const isoMap = /* @__PURE__ */ (() => isogenyMap(Fp, [ - // xNum - [ - '0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7', - '0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581', - '0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262', - '0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c', - ], - // xDen - [ - '0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b', - '0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14', - '0x0000000000000000000000000000000000000000000000000000000000000001', // LAST 1 - ], - // yNum - [ - '0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c', - '0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3', - '0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931', - '0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84', - ], - // yDen - [ - '0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b', - '0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573', - '0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f', - '0x0000000000000000000000000000000000000000000000000000000000000001', // LAST 1 - ], -].map((i) => i.map((j) => BigInt(j)))))(); -const mapSWU = /* @__PURE__ */ (() => mapToCurveSimpleSWU(Fp, { - A: BigInt('0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533'), - B: BigInt('1771'), - Z: Fp.create(BigInt('-11')), -}))(); -const htf = /* @__PURE__ */ (() => createHasher(secp256k1.ProjectivePoint, (scalars) => { - const { x, y } = mapSWU(Fp.create(scalars[0])); - return isoMap(x, y); -}, { - DST: 'secp256k1_XMD:SHA-256_SSWU_RO_', - encodeDST: 'secp256k1_XMD:SHA-256_SSWU_NU_', - p: Fp.ORDER, - m: 1, - k: 128, - expand: 'xmd', - hash: sha256, -}))(); -export const hashToCurve = /* @__PURE__ */ (() => htf.hashToCurve)(); -export const encodeToCurve = /* @__PURE__ */ (() => htf.encodeToCurve)(); -//# sourceMappingURL=secp256k1.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/esm/secp256k1.js.map b/node_modules/@noble/curves/esm/secp256k1.js.map deleted file mode 100644 index 692678a2..00000000 --- a/node_modules/@noble/curves/esm/secp256k1.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"secp256k1.js","sourceRoot":"","sources":["../src/secp256k1.ts"],"names":[],"mappings":"AAAA,sEAAsE;AACtE,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AAClD,OAAO,EAAE,KAAK,EAAE,GAAG,EAAE,IAAI,EAAE,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAA8B,mBAAmB,EAAE,MAAM,2BAA2B,CAAC;AAE5F,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,WAAW,EAAE,eAAe,EAAE,MAAM,qBAAqB,CAAC;AACjG,OAAO,EAAE,YAAY,EAAE,UAAU,EAAE,MAAM,6BAA6B,CAAC;AACvE,OAAO,EAAE,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAEjD,MAAM,UAAU,GAAG,MAAM,CAAC,oEAAoE,CAAC,CAAC;AAChG,MAAM,UAAU,GAAG,MAAM,CAAC,oEAAoE,CAAC,CAAC;AAChG,MAAM,GAA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AAE,CAAC,EAAE,CAAC,EAAE,GAAG,MAAM,CAAC,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IAC/C,OAAO,MAAM,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC;AACtB,CAAC,EACD;IACE,GAAG,EAAE,gCAAgC;IACrC,SAAS,EAAE,gCAAgC;IAC3C,CAAC,EAAE,EAAE,CAAC,KAAK;IACX,CAAC,EAAE,CAAC;IACJ,CAAC,EAAE,GAAG;IACN,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,MAAM;CACb,CACF,CAAC,EAAE,CAAC;AACP,MAAM,CAAC,MAAM,WAAW,GAAG,eAAe,CAAC,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,CAAC;AACrE,MAAM,CAAC,MAAM,aAAa,GAAG,eAAe,CAAC,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,aAAa,CAAC,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/index.d.ts b/node_modules/@noble/curves/index.d.ts deleted file mode 100644 index f36479a7..00000000 --- a/node_modules/@noble/curves/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@noble/curves/index.d.ts.map b/node_modules/@noble/curves/index.d.ts.map deleted file mode 100644 index 4e8c5816..00000000 --- a/node_modules/@noble/curves/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":""} \ No newline at end of file diff --git a/node_modules/@noble/curves/index.js b/node_modules/@noble/curves/index.js deleted file mode 100644 index ac4f2231..00000000 --- a/node_modules/@noble/curves/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -throw new Error('Incorrect usage. Import submodules instead'); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/index.js.map b/node_modules/@noble/curves/index.js.map deleted file mode 100644 index 292b53a2..00000000 --- a/node_modules/@noble/curves/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":";AAAA,MAAM,IAAI,KAAK,CAAC,4CAA4C,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/jubjub.d.ts b/node_modules/@noble/curves/jubjub.d.ts deleted file mode 100644 index 7d2c398a..00000000 --- a/node_modules/@noble/curves/jubjub.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -/** - * jubjub Twisted Edwards curve. - * https://neuromancer.sk/std/other/JubJub - * jubjub does not use EdDSA, so `hash`/sha512 params are passed because interface expects them. - */ -export declare const jubjub: import("./abstract/edwards.js").CurveFn; -export declare function groupHash(tag: Uint8Array, personalization: Uint8Array): import("./abstract/edwards.js").ExtPointType; -export declare function findGroupHash(m: Uint8Array, personalization: Uint8Array): import("./abstract/edwards.js").ExtPointType; -//# sourceMappingURL=jubjub.d.ts.map \ No newline at end of file diff --git a/node_modules/@noble/curves/jubjub.d.ts.map b/node_modules/@noble/curves/jubjub.d.ts.map deleted file mode 100644 index e79099df..00000000 --- a/node_modules/@noble/curves/jubjub.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"jubjub.d.ts","sourceRoot":"","sources":["src/jubjub.ts"],"names":[],"mappings":"AAOA;;;;GAIG;AAEH,eAAO,MAAM,MAAM,yCAgBR,CAAC;AAOZ,wBAAgB,SAAS,CAAC,GAAG,EAAE,UAAU,EAAE,eAAe,EAAE,UAAU,gDAUrE;AAED,wBAAgB,aAAa,CAAC,CAAC,EAAE,UAAU,EAAE,eAAe,EAAE,UAAU,gDASvE"} \ No newline at end of file diff --git a/node_modules/@noble/curves/jubjub.js b/node_modules/@noble/curves/jubjub.js deleted file mode 100644 index 60c83296..00000000 --- a/node_modules/@noble/curves/jubjub.js +++ /dev/null @@ -1,59 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.findGroupHash = exports.groupHash = exports.jubjub = void 0; -/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */ -const sha512_1 = require("@noble/hashes/sha512"); -const utils_1 = require("@noble/hashes/utils"); -const edwards_js_1 = require("./abstract/edwards.js"); -const blake2s_1 = require("@noble/hashes/blake2s"); -const modular_js_1 = require("./abstract/modular.js"); -/** - * jubjub Twisted Edwards curve. - * https://neuromancer.sk/std/other/JubJub - * jubjub does not use EdDSA, so `hash`/sha512 params are passed because interface expects them. - */ -exports.jubjub = (0, edwards_js_1.twistedEdwards)({ - // Params: a, d - a: BigInt('0x73eda753299d7d483339d80809a1d80553bda402fffe5bfeffffffff00000000'), - d: BigInt('0x2a9318e74bfa2b48f5fd9207e6bd7fd4292d7f6d37579d2601065fd6d6343eb1'), - // Finite field 𝔽p over which we'll do calculations - // Same value as bls12-381 Fr (not Fp) - Fp: (0, modular_js_1.Field)(BigInt('0x73eda753299d7d483339d80809a1d80553bda402fffe5bfeffffffff00000001')), - // Subgroup order: how many points curve has - n: BigInt('0xe7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72cb7'), - // Cofactor - h: BigInt(8), - // Base point (x, y) aka generator point - Gx: BigInt('0x11dafe5d23e1218086a365b99fbf3d3be72f6afd7d1f72623e6b071492d1122b'), - Gy: BigInt('0x1d523cf1ddab1a1793132e78c866c0c33e26ba5cc220fed7cc3f870e59d292aa'), - hash: sha512_1.sha512, - randomBytes: utils_1.randomBytes, -}); -const GH_FIRST_BLOCK = (0, utils_1.utf8ToBytes)('096b36a5804bfacef1691e173c366a47ff5ba84a44f26ddd7e8d9f79d5b42df0'); -// Returns point at JubJub curve which is prime order and not zero -function groupHash(tag, personalization) { - const h = blake2s_1.blake2s.create({ personalization, dkLen: 32 }); - h.update(GH_FIRST_BLOCK); - h.update(tag); - // NOTE: returns ExtendedPoint, in case it will be multiplied later - let p = exports.jubjub.ExtendedPoint.fromHex(h.digest()); - // NOTE: cannot replace with isSmallOrder, returns Point*8 - p = p.multiply(exports.jubjub.CURVE.h); - if (p.equals(exports.jubjub.ExtendedPoint.ZERO)) - throw new Error('Point has small order'); - return p; -} -exports.groupHash = groupHash; -function findGroupHash(m, personalization) { - const tag = (0, utils_1.concatBytes)(m, new Uint8Array([0])); - for (let i = 0; i < 256; i++) { - tag[tag.length - 1] = i; - try { - return groupHash(tag, personalization); - } - catch (e) { } - } - throw new Error('findGroupHash tag overflow'); -} -exports.findGroupHash = findGroupHash; -//# sourceMappingURL=jubjub.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/jubjub.js.map b/node_modules/@noble/curves/jubjub.js.map deleted file mode 100644 index 08b1694f..00000000 --- a/node_modules/@noble/curves/jubjub.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"jubjub.js","sourceRoot":"","sources":["src/jubjub.ts"],"names":[],"mappings":";;;AAAA,sEAAsE;AACtE,iDAA8C;AAC9C,+CAA4E;AAC5E,sDAAuD;AACvD,mDAAgD;AAChD,sDAA8C;AAE9C;;;;GAIG;AAEU,QAAA,MAAM,GAAG,IAAA,2BAAc,EAAC;IACnC,eAAe;IACf,CAAC,EAAE,MAAM,CAAC,oEAAoE,CAAC;IAC/E,CAAC,EAAE,MAAM,CAAC,oEAAoE,CAAC;IAC/E,oDAAoD;IACpD,sCAAsC;IACtC,EAAE,EAAE,IAAA,kBAAK,EAAC,MAAM,CAAC,oEAAoE,CAAC,CAAC;IACvF,4CAA4C;IAC5C,CAAC,EAAE,MAAM,CAAC,mEAAmE,CAAC;IAC9E,WAAW;IACX,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;IACZ,wCAAwC;IACxC,EAAE,EAAE,MAAM,CAAC,oEAAoE,CAAC;IAChF,EAAE,EAAE,MAAM,CAAC,oEAAoE,CAAC;IAChF,IAAI,EAAE,eAAM;IACZ,WAAW,EAAX,mBAAW;CACH,CAAC,CAAC;AAEZ,MAAM,cAAc,GAAG,IAAA,mBAA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_modules/@noble/hashes/LICENSE deleted file mode 100644 index 9297a046..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2022 Paul Miller (https://paulmillr.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the “Software”), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/README.md b/node_modules/@noble/curves/node_modules/@noble/hashes/README.md deleted file mode 100644 index 83f6dd8c..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/README.md +++ /dev/null @@ -1,536 +0,0 @@ -# noble-hashes - -Audited & minimal JS implementation of SHA2, SHA3, RIPEMD, BLAKE2/3, HMAC, HKDF, PBKDF2 & Scrypt. - -- 🔒 [**Audited**](#security) by an independent security firm -- 🔻 Tree-shaking-friendly: use only what's necessary, other code won't be included -- 🏎 Ultra-fast, hand-optimized for caveats of JS engines -- 🔍 Unique tests ensure correctness: chained tests, sliding window tests, DoS tests, fuzzing -- 🔁 No unrolled loops: makes it easier to verify and reduces source code size up to 5x -- 🐢 Scrypt supports `N: 2**22`, while other implementations are limited to `2**20` -- 🦘 SHA3 supports Keccak, TupleHash, KangarooTwelve and MarsupilamiFourteen -- 🪶 Just 3.4k lines / 17KB gzipped. SHA256-only is 240 lines / 3KB gzipped - -The library's initial development was funded by [Ethereum Foundation](https://ethereum.org/). - -### This library belongs to _noble_ crypto - -> **noble-crypto** — high-security, easily auditable set of contained cryptographic libraries and tools. - -- No dependencies, protection against supply chain attacks -- Auditable TypeScript / JS code -- Supported in all major browsers and stable node.js versions -- All releases are signed with PGP keys -- Check out [homepage](https://paulmillr.com/noble/) & all libraries: - [curves](https://github.com/paulmillr/noble-curves) - (4kb versions [secp256k1](https://github.com/paulmillr/noble-secp256k1), - [ed25519](https://github.com/paulmillr/noble-ed25519)), - [hashes](https://github.com/paulmillr/noble-hashes) - -## Usage - -> npm install @noble/hashes - -We support all major platforms and runtimes. -For [Deno](https://deno.land), ensure to use [npm specifier](https://deno.land/manual@v1.28.0/node/npm_specifiers). -For React Native, you may need a [polyfill for getRandomValues](https://github.com/LinusU/react-native-get-random-values). -If you don't like NPM, a standalone [noble-hashes.js](https://github.com/paulmillr/noble-hashes/releases) is also available. - -The library is tree-shaking-friendly and does not expose root entry point as -`@noble/hashes`. Instead, you need to import specific primitives. -This is done to ensure small size of your apps. - -```js -import { sha256 } from '@noble/hashes/sha256'; // ECMAScript modules (ESM) and Common.js -// import { sha256 } from 'npm:@noble/hashes@1.3.0/sha256'; // Deno -console.log(sha256(new Uint8Array([1, 2, 3]))); // Uint8Array(32) [3, 144, 88, 198, 242...] -// you could also pass strings that will be UTF8-encoded to Uint8Array -console.log(sha256('abc')); // == sha256(new TextEncoder().encode('abc')) - -// sha384 is here, because it uses same internals as sha512 -import { sha512, sha512_256, sha384 } from '@noble/hashes/sha512'; -// prettier-ignore -import { - sha3_224, sha3_256, sha3_384, sha3_512, - keccak_224, keccak_256, keccak_384, keccak_512, - shake128, shake256 -} from '@noble/hashes/sha3'; -// prettier-ignore -import { - cshake128, cshake256, kmac128, kmac256, - k12, m14, - tuplehash256, parallelhash256, keccakprg -} from '@noble/hashes/sha3-addons'; -import { ripemd160 } from '@noble/hashes/ripemd160'; -import { blake3 } from '@noble/hashes/blake3'; -import { blake2b } from '@noble/hashes/blake2b'; -import { blake2s } from '@noble/hashes/blake2s'; -import { hmac } from '@noble/hashes/hmac'; -import { hkdf } from '@noble/hashes/hkdf'; -import { pbkdf2, pbkdf2Async } from '@noble/hashes/pbkdf2'; -import { scrypt, scryptAsync } from '@noble/hashes/scrypt'; - -import { sha1 } from '@noble/hashes/sha1'; // legacy - -// small utility method that converts bytes to hex -import { bytesToHex as toHex } from '@noble/hashes/utils'; -console.log(toHex(sha256('abc'))); // ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad -``` - -## API - -All hash functions: - -- can be called directly, with `Uint8Array`. -- return `Uint8Array` -- can receive `string`, which is automatically converted to `Uint8Array` - via utf8 encoding **(not hex)** -- support hashing 4GB of data per update on 64-bit systems (unlimited with streaming) - -```ts -function hash(message: Uint8Array | string): Uint8Array; -hash(new Uint8Array([1, 3])); -hash('string') == hash(new TextEncoder().encode('string')); -``` - -All hash functions can be constructed via `hash.create()` method: - -- the result is `Hash` subclass instance, which has `update()` and `digest()` methods -- `digest()` finalizes the hash and makes it no longer usable - -```ts -hash - .create() - .update(new Uint8Array([1, 3])) - .digest(); -``` - -_Some_ hash functions can also receive `options` object, which can be either passed as a: - -- second argument to hash function: `blake3('abc', { key: 'd', dkLen: 32 })` -- first argument to class initializer: `blake3.create({ context: 'e', dkLen: 32 })` - -## Modules - -- [SHA2 (sha256, sha384, sha512, sha512_256)](#sha2-sha256-sha384-sha512-sha512_256) -- [SHA3 (FIPS, SHAKE, Keccak)](#sha3-fips-shake-keccak) -- [SHA3 Addons (cSHAKE, KMAC, KangarooTwelve, MarsupilamiFourteen)](#sha3-addons-cshake-kmac-tuplehash-parallelhash-kangarootwelve-marsupilamifourteen) -- [RIPEMD-160](#ripemd-160) -- [BLAKE2b, BLAKE2s](#blake2b-blake2s) -- [BLAKE3](#blake3) -- [SHA1 (legacy)](#sha1-legacy) -- [HMAC](#hmac) -- [HKDF](#hkdf) -- [PBKDF2](#pbkdf2) -- [Scrypt](#scrypt) -- [ESKDF](#eskdf) -- [utils](#utils) - -##### SHA2 (sha256, sha384, sha512, sha512_256) - -```typescript -import { sha256 } from '@noble/hashes/sha256'; -const h1a = sha256('abc'); -const h1b = sha256 - .create() - .update(Uint8Array.from([1, 2, 3])) - .digest(); -``` - -```typescript -import { sha512 } from '@noble/hashes/sha512'; -const h2a = sha512('abc'); -const h2b = sha512 - .create() - .update(Uint8Array.from([1, 2, 3])) - .digest(); - -// SHA512/256 variant -import { sha512_256 } from '@noble/hashes/sha512'; -const h3a = sha512_256('abc'); -const h3b = sha512_256 - .create() - .update(Uint8Array.from([1, 2, 3])) - .digest(); - -// SHA384 -import { sha384 } from '@noble/hashes/sha512'; -const h4a = sha384('abc'); -const h4b = sha384 - .create() - .update(Uint8Array.from([1, 2, 3])) - .digest(); -``` - -See [RFC 4634](https://datatracker.ietf.org/doc/html/rfc4634) and -[the paper on SHA512/256](https://eprint.iacr.org/2010/548.pdf). - -##### SHA3 (FIPS, SHAKE, Keccak) - -```typescript -import { - sha3_224, - sha3_256, - sha3_384, - sha3_512, - keccak_224, - keccak_256, - keccak_384, - keccak_512, - shake128, - shake256, -} from '@noble/hashes/sha3'; -const h5a = sha3_256('abc'); -const h5b = sha3_256 - .create() - .update(Uint8Array.from([1, 2, 3])) - .digest(); -const h6a = keccak_256('abc'); -const h7a = shake128('abc', { dkLen: 512 }); -const h7b = shake256('abc', { dkLen: 512 }); -``` - -See [FIPS PUB 202](https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.202.pdf), -[Website](https://keccak.team/keccak.html). - -Check out [the differences between SHA-3 and Keccak](https://crypto.stackexchange.com/questions/15727/what-are-the-key-differences-between-the-draft-sha-3-standard-and-the-keccak-sub) - -##### SHA3 Addons (cSHAKE, KMAC, TupleHash, ParallelHash, KangarooTwelve, MarsupilamiFourteen) - -```typescript -import { - cshake128, - cshake256, - kmac128, - kmac256, - k12, - m14, - tuplehash128, - tuplehash256, - parallelhash128, - parallelhash256, - keccakprg, -} from '@noble/hashes/sha3-addons'; -const h7c = cshake128('abc', { personalization: 'def' }); -const h7d = cshake256('abc', { personalization: 'def' }); -const h7e = kmac128('key', 'message'); -const h7f = kmac256('key', 'message'); -const h7h = k12('abc'); -const h7g = m14('abc'); -const h7i = tuplehash128(['ab', 'c']); // tuplehash(['ab', 'c']) !== tuplehash(['a', 'bc']) !== tuplehash(['abc']) -// Same as k12/blake3, but without reduced number of rounds. Doesn't speedup anything due lack of SIMD and threading, -// added for compatibility. -const h7j = parallelhash128('abc', { blockLen: 8 }); -// pseudo-random generator, first argument is capacity. XKCP recommends 254 bits capacity for 128-bit security strength. -// * with a capacity of 254 bits. -const p = keccakprg(254); -p.feed('test'); -const rand1b = p.fetch(1); -``` - -- Full [NIST SP 800-185](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-185.pdf): - cSHAKE, KMAC, TupleHash, ParallelHash + XOF variants -- 🦘 K12 ([KangarooTwelve Paper](https://keccak.team/files/KangarooTwelve.pdf), - [RFC Draft](https://www.ietf.org/archive/id/draft-irtf-cfrg-kangarootwelve-06.txt)) - and M14 aka MarsupilamiFourteen are basically parallel versions of Keccak with - reduced number of rounds (same as Blake3 and ParallelHash). -- [KeccakPRG](https://keccak.team/files/CSF-0.1.pdf): Pseudo-random generator based on Keccak - -##### RIPEMD-160 - -```typescript -import { ripemd160 } from '@noble/hashes/ripemd160'; -// function ripemd160(data: Uint8Array): Uint8Array; -const hash8 = ripemd160('abc'); -const hash9 = ripemd160() - .create() - .update(Uint8Array.from([1, 2, 3])) - .digest(); -``` - -See [RFC 2286](https://datatracker.ietf.org/doc/html/rfc2286), -[Website](https://homes.esat.kuleuven.be/~bosselae/ripemd160.html) - -##### BLAKE2b, BLAKE2s - -```typescript -import { blake2b } from '@noble/hashes/blake2b'; -import { blake2s } from '@noble/hashes/blake2s'; -const h10a = blake2s('abc'); -const b2params = { key: new Uint8Array([1]), personalization: t, salt: t, dkLen: 32 }; -const h10b = blake2s('abc', b2params); -const h10c = blake2s - .create(b2params) - .update(Uint8Array.from([1, 2, 3])) - .digest(); -``` - -See [RFC 7693](https://datatracker.ietf.org/doc/html/rfc7693), [Website](https://www.blake2.net). - -##### BLAKE3 - -```typescript -import { blake3 } from '@noble/hashes/blake3'; -// All params are optional -const h11 = blake3('abc', { dkLen: 256, key: 'def', context: 'fji' }); -``` - -##### SHA1 (legacy) - -SHA1 was cryptographically broken, however, it was not broken for cases like HMAC. - -See [RFC4226 B.2](https://datatracker.ietf.org/doc/html/rfc4226#appendix-B.2). - -Don't use it for a new protocol. - -```typescript -import { sha1 } from '@noble/hashes/sha1'; -const h12 = sha1('def'); -``` - -##### HMAC - -```typescript -import { hmac } from '@noble/hashes/hmac'; -import { sha256 } from '@noble/hashes/sha256'; -const mac1 = hmac(sha256, 'key', 'message'); -const mac2 = hmac.create(sha256, Uint8Array.from([1, 2, 3])).update(Uint8Array.from([4, 5, 6])).digest(); -``` - -Matches [RFC 2104](https://datatracker.ietf.org/doc/html/rfc2104). - -##### HKDF - -```typescript -import { hkdf } from '@noble/hashes/hkdf'; -import { sha256 } from '@noble/hashes/sha256'; -import { randomBytes } from '@noble/hashes/utils'; -const inputKey = randomBytes(32); -const salt = randomBytes(32); -const info = 'abc'; -const dkLen = 32; -const hk1 = hkdf(sha256, inputKey, salt, info, dkLen); - -// == same as -import * as hkdf from '@noble/hashes/hkdf'; -import { sha256 } from '@noble/hashes/sha256'; -const prk = hkdf.extract(sha256, inputKey, salt); -const hk2 = hkdf.expand(sha256, prk, info, dkLen); -``` - -Matches [RFC 5869](https://datatracker.ietf.org/doc/html/rfc5869). - -##### PBKDF2 - -```typescript -import { pbkdf2, pbkdf2Async } from '@noble/hashes/pbkdf2'; -import { sha256 } from '@noble/hashes/sha256'; -const pbkey1 = pbkdf2(sha256, 'password', 'salt', { c: 32, dkLen: 32 }); -const pbkey2 = await pbkdf2Async(sha256, 'password', 'salt', { c: 32, dkLen: 32 }); -const pbkey3 = await pbkdf2Async(sha256, Uint8Array.from([1, 2, 3]), Uint8Array.from([4, 5, 6]), { - c: 32, - dkLen: 32, -}); -``` - -Matches [RFC 2898](https://datatracker.ietf.org/doc/html/rfc2898). - -##### Scrypt - -```typescript -import { scrypt, scryptAsync } from '@noble/hashes/scrypt'; -const scr1 = scrypt('password', 'salt', { N: 2 ** 16, r: 8, p: 1, dkLen: 32 }); -const scr2 = await scryptAsync('password', 'salt', { N: 2 ** 16, r: 8, p: 1, dkLen: 32 }); -const scr3 = await scryptAsync(Uint8Array.from([1, 2, 3]), Uint8Array.from([4, 5, 6]), { - N: 2 ** 22, - r: 8, - p: 1, - dkLen: 32, - onProgress(percentage) { - console.log('progress', percentage); - }, - maxmem: 2 ** 32 + 128 * 8 * 1, // N * r * p * 128 + (128*r*p) -}); -``` - -Conforms to [RFC 7914](https://datatracker.ietf.org/doc/html/rfc7914), -[Website](https://www.tarsnap.com/scrypt.html) - -- `N, r, p` are work factors. To understand them, see [the blog post](https://blog.filippo.io/the-scrypt-parameters/). -- `dkLen` is the length of output bytes -- It is common to use N from `2**10` to `2**22` and `{r: 8, p: 1, dkLen: 32}` -- `onProgress` can be used with async version of the function to report progress to a user. - -Memory usage of scrypt is calculated with the formula `N * r * p * 128 + (128 * r * p)`, -which means `{N: 2 ** 22, r: 8, p: 1}` will use 4GB + 1KB of memory. To prevent -DoS, we limit scrypt to `1GB + 1KB` of RAM used, which corresponds to -`{N: 2 ** 20, r: 8, p: 1}`. If you want to use higher values, increase -`maxmem` using the formula above. - -_Note:_ noble supports `2**22` (4GB RAM) which is the highest amount amongst JS -libs. Many other implementations don't support it. We cannot support `2**23`, -because there is a limitation in JS engines that makes allocating -arrays bigger than 4GB impossible, but we're looking into other possible solutions. - -##### Argon2 - -Experimental Argon2 RFC 9106 implementation. It may be removed at any time. - -```ts -import { argon2d, argon2i, argon2id } from '@noble/hashes/argon2'; -const result = argon2id('password', 'salt', { t: 2, m: 65536, p: 1 }); -``` - -##### ESKDF - -A tiny stretched KDF for various applications like AES key-gen. Takes >= 2 seconds to execute. - -Takes following params: - -- `username` - username, email, or identifier, min: 8 characters, should have enough entropy -- `password` - min: 8 characters, should have enough entropy - -Produces ESKDF instance that has `deriveChildKey(protocol, accountId[, options])` function. - -- `protocol` - 3-15 character protocol name -- `accountId` - numeric identifier of account -- `options` - `keyLength: 32` with specified key length (default is 32), - or `modulus: 2n ** 221n - 17n` with specified modulus. It will fetch modulus + 64 bits of - data, execute modular division. The result will have negligible bias as per FIPS 186 B.4.1. - Can be used to generate, for example, elliptic curve keys. - -Takes username and password, then takes protocol name and account id. - -```typescript -import { eskdf } from '@noble/hashes/eskdf'; -const kdf = await eskdf('example@university', 'beginning-new-example'); -console.log(kdf.fingerprint); -const key1 = kdf.deriveChildKey('aes', 0); -const key2 = kdf.deriveChildKey('aes', 0, { keyLength: 16 }); -const ecc1 = kdf.deriveChildKey('ecc', 0, { modulus: 2n ** 252n - 27742317777372353535851937790883648493n }) -kdf.expire(); -``` - -##### utils - -```typescript -import { bytesToHex as toHex, randomBytes } from '@noble/hashes/utils'; -console.log(toHex(randomBytes(32))); -``` - -- `bytesToHex` will convert `Uint8Array` to a hex string -- `randomBytes(bytes)` will produce cryptographically secure random `Uint8Array` of length `bytes` - -## Security - -Noble is production-ready. - -1. The library has been audited in Jan 2022 by an independent security firm - cure53: [PDF](https://cure53.de/pentest-report_hashing-libs.pdf). - No vulnerabilities have been found. The audit has been funded by - [Ethereum Foundation](https://ethereum.org/en/) with help of [Nomic Labs](https://nomiclabs.io). - Modules `blake3`, `sha3-addons`, `sha1` and `argon2` have not been audited. - See [changes since audit](https://github.com/paulmillr/noble-hashes/compare/1.0.0..main). -2. The library has been fuzzed by [Guido Vranken's cryptofuzz](https://github.com/guidovranken/cryptofuzz). - You can run the fuzzer by yourself to check it. -3. [Timing attack](https://en.wikipedia.org/wiki/Timing_attack) considerations: - _JIT-compiler_ and _Garbage Collector_ make "constant time" extremely hard to - achieve in a scripting language. Which means _any other JS library can't have constant-timeness_. - Even statically typed Rust, a language without GC, - [makes it harder to achieve constant-time](https://www.chosenplaintext.ca/open-source/rust-timing-shield/security) - for some cases. If your goal is absolute security, don't use any JS lib — including - bindings to native ones. Use low-level libraries & languages. Nonetheless we're - targetting algorithmic constant time. -4. Memory dump considerations: the library shares state buffers between hash - function calls. The buffers are zeroed-out after each call. However, if an attacker - can read application memory, you are doomed in any case: - - At some point, input will be a string and strings are immutable in JS: - there is no way to overwrite them with zeros. For example: deriving - key from `scrypt(password, salt)` where password and salt are strings - - Input from a file will stay in file buffers - - Input / output will be re-used multiple times in application which means - it could stay in memory - - `await anything()` will always write all internal variables (including numbers) - to memory. With async functions / Promises there are no guarantees when the code - chunk would be executed. Which means attacker can have plenty of time to read data from memory - - There is no way to guarantee anything about zeroing sensitive data without - complex tests-suite which will dump process memory and verify that there is - no sensitive data left. For JS it means testing all browsers (incl. mobile), - which is complex. And of course it will be useless without using the same - test-suite in the actual application that consumes the library - -We consider infrastructure attacks like rogue NPM modules very important; that's -why it's crucial to minimize the amount of 3rd-party dependencies & native bindings. -If your app uses 500 dependencies, any dep could get hacked and you'll be downloading -malware with every `npm install`. Our goal is to minimize this attack vector. - -## Speed - -Benchmarks measured on Apple M1 with macOS 12. -Note that PBKDF2 and Scrypt are tested with extremely high work factor. -To run benchmarks, execute `npm run bench:install` and then `npm run bench` - -``` -SHA256 32B x 1,219,512 ops/sec @ 820ns/op ± 2.58% (min: 625ns, max: 4ms) -SHA384 32B x 512,032 ops/sec @ 1μs/op -SHA512 32B x 509,943 ops/sec @ 1μs/op -SHA3-256, keccak256, shake256 32B x 199,600 ops/sec @ 5μs/op -Kangaroo12 32B x 336,360 ops/sec @ 2μs/op -Marsupilami14 32B x 298,418 ops/sec @ 3μs/op -BLAKE2b 32B x 379,794 ops/sec @ 2μs/op -BLAKE2s 32B x 515,995 ops/sec @ 1μs/op ± 1.07% (min: 1μs, max: 4ms) -BLAKE3 32B x 588,235 ops/sec @ 1μs/op ± 1.36% (min: 1μs, max: 5ms) -RIPEMD160 32B x 1,140,250 ops/sec @ 877ns/op ± 3.12% (min: 708ns, max: 6ms) -HMAC-SHA256 32B x 377,358 ops/sec @ 2μs/op - -HKDF-SHA256 32B x 108,377 ops/sec @ 9μs/op -PBKDF2-HMAC-SHA256 262144 x 3 ops/sec @ 326ms/op -PBKDF2-HMAC-SHA512 262144 x 1 ops/sec @ 970ms/op -Scrypt r: 8, p: 1, n: 262144 x 1 ops/sec @ 616ms/op -``` - -Compare to native node.js implementation that uses C bindings instead of pure-js code: - -``` -SHA256 32B node x 1,302,083 ops/sec @ 768ns/op ± 10.54% (min: 416ns, max: 7ms) -SHA384 32B node x 975,609 ops/sec @ 1μs/op ± 11.32% (min: 625ns, max: 8ms) -SHA512 32B node x 983,284 ops/sec @ 1μs/op ± 11.24% (min: 625ns, max: 8ms) -SHA3-256 32B node x 910,746 ops/sec @ 1μs/op ± 12.19% (min: 666ns, max: 10ms) -keccak, k12, m14 are not implemented -BLAKE2b 32B node x 967,117 ops/sec @ 1μs/op ± 11.26% (min: 625ns, max: 9ms) -BLAKE2s 32B node x 1,055,966 ops/sec @ 947ns/op ± 11.07% (min: 583ns, max: 7ms) -BLAKE3 is not implemented -RIPEMD160 32B node x 1,002,004 ops/sec @ 998ns/op ± 10.66% (min: 625ns, max: 7ms) -HMAC-SHA256 32B node x 919,963 ops/sec @ 1μs/op ± 6.13% (min: 833ns, max: 5ms) -HKDF-SHA256 32 node x 369,276 ops/sec @ 2μs/op ± 13.59% (min: 1μs, max: 9ms) -PBKDF2-HMAC-SHA256 262144 node x 25 ops/sec @ 39ms/op -PBKDF2-HMAC-SHA512 262144 node x 7 ops/sec @ 132ms/op -Scrypt r: 8, p: 1, n: 262144 node x 1 ops/sec @ 523ms/op -``` - -It is possible to [make this library 4x+ faster](./benchmark/README.md) by -_doing code generation of full loop unrolls_. We've decided against it. Reasons: - -- the library must be auditable, with minimum amount of code, and zero dependencies -- most method invocations with the lib are going to be something like hashing 32b to 64kb of data -- hashing big inputs is 10x faster with low-level languages, which means you should probably pick 'em instead - -The current performance is good enough when compared to other projects; SHA256 takes only 900 nanoseconds to run. - -## Contributing & testing - -1. Clone the repository -2. `npm install` to install build dependencies like TypeScript -3. `npm run build` to compile TypeScript code -4. `npm run test` will execute all main tests. See [our approach to testing](./test/README.md) -5. `npm run test:dos` will test against DoS; by measuring function complexity. **Takes ~20 minutes** -6. `npm run test:big` will execute hashing on 4GB inputs, - scrypt with 1024 different `N, r, p` combinations, etc. **Takes several hours**. Using 8-32+ core CPU helps. - -## License - -The MIT License (MIT) - -Copyright (c) 2022 Paul Miller [(https://paulmillr.com)](https://paulmillr.com) - -See LICENSE file. diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/_assert.d.ts b/node_modules/@noble/curves/node_modules/@noble/hashes/_assert.d.ts deleted file mode 100644 index b71d8e4d..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/_assert.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -export declare function number(n: number): void; -export declare function bool(b: boolean): void; -export declare function bytes(b: Uint8Array | undefined, ...lengths: number[]): void; -type Hash = { - (data: Uint8Array): Uint8Array; - blockLen: number; - outputLen: number; - create: any; -}; -export declare function hash(hash: Hash): void; -export declare function exists(instance: any, checkFinished?: boolean): void; -export declare function output(out: any, instance: any): void; -declare const assert: { - number: typeof number; - bool: typeof bool; - bytes: typeof bytes; - hash: typeof hash; - exists: typeof exists; - output: typeof output; -}; -export default assert; diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/_assert.js b/node_modules/@noble/curves/node_modules/@noble/hashes/_assert.js deleted file mode 100644 index acf3491e..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/_assert.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.output = exports.exists = exports.hash = exports.bytes = exports.bool = exports.number = void 0; -function number(n) { - if (!Number.isSafeInteger(n) || n < 0) - throw new Error(`Wrong positive integer: ${n}`); -} -exports.number = number; -function bool(b) { - if (typeof b !== 'boolean') - throw new Error(`Expected boolean, not ${b}`); -} -exports.bool = bool; -function bytes(b, ...lengths) { - if (!(b instanceof Uint8Array)) - throw new Error('Expected Uint8Array'); - if (lengths.length > 0 && !lengths.includes(b.length)) - throw new Error(`Expected Uint8Array of length ${lengths}, not of length=${b.length}`); -} -exports.bytes = bytes; -function hash(hash) { - if (typeof hash !== 'function' || typeof hash.create !== 'function') - throw new Error('Hash should be wrapped by utils.wrapConstructor'); - number(hash.outputLen); - number(hash.blockLen); -} -exports.hash = hash; -function exists(instance, checkFinished = true) { - if (instance.destroyed) - throw new Error('Hash instance has been destroyed'); - if (checkFinished && instance.finished) - throw new Error('Hash#digest() has already been called'); -} -exports.exists = exists; -function output(out, instance) { - bytes(out); - const min = instance.outputLen; - if (out.length < min) { - throw new Error(`digestInto() expects output buffer of length at least ${min}`); - } -} -exports.output = output; -const assert = { - number, - bool, - bytes, - hash, - exists, - output, -}; -exports.default = assert; -//# sourceMappingURL=_assert.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/_assert.js.map b/node_modules/@noble/curves/node_modules/@noble/hashes/_assert.js.map deleted file mode 100644 index 94ac2c1a..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/_assert.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"_assert.js","sourceRoot":"","sources":["src/_assert.ts"],"names":[],"mappings":";;;AAAA,SAAgB,MAAM,CAAC,CAAS;IAC9B,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,EAAE,CAAC,CAAC;AACzF,CAAC;AAFD,wBAEC;AAED,SAA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E;QACpB,MAAM,IAAI,KAAK,CAAC,yDAAyD,GAAG,EAAE,CAAC,CAAC;KACjF;AACH,CAAC;AAND,wBAMC;AAED,MAAM,MAAM,GAAG;IACb,MAAM;IACN,IAAI;IACJ,KAAK;IACL,IAAI;IACJ,MAAM;IACN,MAAM;CACP,CAAC;AAEF,kBAAe,MAAM,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/_blake2.d.ts b/node_modules/@noble/curves/node_modules/@noble/hashes/_blake2.d.ts deleted file mode 100644 index 352b978a..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/_blake2.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { Hash, Input } from './utils.js'; -export declare const SIGMA: Uint8Array; -export type BlakeOpts = { - dkLen?: number; - key?: Input; - salt?: Input; - personalization?: Input; -}; -export declare abstract class BLAKE2> extends Hash { - readonly blockLen: number; - outputLen: number; - protected abstract compress(msg: Uint32Array, offset: number, isLast: boolean): void; - protected abstract get(): number[]; - protected abstract set(...args: number[]): void; - abstract destroy(): void; - protected buffer: Uint8Array; - protected buffer32: Uint32Array; - protected length: number; - protected pos: number; - protected finished: boolean; - protected destroyed: boolean; - constructor(blockLen: number, outputLen: number, opts: BlakeOpts | undefined, keyLen: number, saltLen: number, persLen: number); - update(data: Input): this; - digestInto(out: Uint8Array): void; - digest(): Uint8Array; - _cloneInto(to?: T): T; -} diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/_blake2.js b/node_modules/@noble/curves/node_modules/@noble/hashes/_blake2.js deleted file mode 100644 index bf5dd936..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/_blake2.js +++ /dev/null @@ -1,111 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.BLAKE2 = exports.SIGMA = void 0; -const _assert_js_1 = require("./_assert.js"); -const utils_js_1 = require("./utils.js"); -// For BLAKE2b, the two extra permutations for rounds 10 and 11 are SIGMA[10..11] = SIGMA[0..1]. -// prettier-ignore -exports.SIGMA = new Uint8Array([ - 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, - 14, 10, 4, 8, 9, 15, 13, 6, 1, 12, 0, 2, 11, 7, 5, 3, - 11, 8, 12, 0, 5, 2, 15, 13, 10, 14, 3, 6, 7, 1, 9, 4, - 7, 9, 3, 1, 13, 12, 11, 14, 2, 6, 5, 10, 4, 0, 15, 8, - 9, 0, 5, 7, 2, 4, 10, 15, 14, 1, 11, 12, 6, 8, 3, 13, - 2, 12, 6, 10, 0, 11, 8, 3, 4, 13, 7, 5, 15, 14, 1, 9, - 12, 5, 1, 15, 14, 13, 4, 10, 0, 7, 6, 3, 9, 2, 8, 11, - 13, 11, 7, 14, 12, 1, 3, 9, 5, 0, 15, 4, 8, 6, 2, 10, - 6, 15, 14, 9, 11, 3, 0, 8, 12, 2, 13, 7, 1, 4, 10, 5, - 10, 2, 8, 4, 7, 6, 1, 5, 15, 11, 9, 14, 3, 12, 13, 0, - 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, - 14, 10, 4, 8, 9, 15, 13, 6, 1, 12, 0, 2, 11, 7, 5, 3, -]); -class BLAKE2 extends utils_js_1.Hash { - constructor(blockLen, outputLen, opts = {}, keyLen, saltLen, persLen) { - super(); - this.blockLen = blockLen; - this.outputLen = outputLen; - this.length = 0; - this.pos = 0; - this.finished = false; - this.destroyed = false; - _assert_js_1.default.number(blockLen); - _assert_js_1.default.number(outputLen); - _assert_js_1.default.number(keyLen); - if (outputLen < 0 || outputLen > keyLen) - throw new Error('outputLen bigger than keyLen'); - if (opts.key !== undefined && (opts.key.length < 1 || opts.key.length > keyLen)) - throw new Error(`key must be up 1..${keyLen} byte long or undefined`); - if (opts.salt !== undefined && opts.salt.length !== saltLen) - throw new Error(`salt must be ${saltLen} byte long or undefined`); - if (opts.personalization !== undefined && opts.personalization.length !== persLen) - throw new Error(`personalization must be ${persLen} byte long or undefined`); - this.buffer32 = (0, utils_js_1.u32)((this.buffer = new Uint8Array(blockLen))); - } - update(data) { - _assert_js_1.default.exists(this); - // Main difference with other hashes: there is flag for last block, - // so we cannot process current block before we know that there - // is the next one. This significantly complicates logic and reduces ability - // to do zero-copy processing - const { blockLen, buffer, buffer32 } = this; - data = (0, utils_js_1.toBytes)(data); - const len = data.length; - const offset = data.byteOffset; - const buf = data.buffer; - for (let pos = 0; pos < len;) { - // If buffer is full and we still have input (don't process last block, same as blake2s) - if (this.pos === blockLen) { - this.compress(buffer32, 0, false); - this.pos = 0; - } - const take = Math.min(blockLen - this.pos, len - pos); - const dataOffset = offset + pos; - // full block && aligned to 4 bytes && not last in input - if (take === blockLen && !(dataOffset % 4) && pos + take < len) { - const data32 = new Uint32Array(buf, dataOffset, Math.floor((len - pos) / 4)); - for (let pos32 = 0; pos + blockLen < len; pos32 += buffer32.length, pos += blockLen) { - this.length += blockLen; - this.compress(data32, pos32, false); - } - continue; - } - buffer.set(data.subarray(pos, pos + take), this.pos); - this.pos += take; - this.length += take; - pos += take; - } - return this; - } - digestInto(out) { - _assert_js_1.default.exists(this); - _assert_js_1.default.output(out, this); - const { pos, buffer32 } = this; - this.finished = true; - // Padding - this.buffer.subarray(pos).fill(0); - this.compress(buffer32, 0, true); - const out32 = (0, utils_js_1.u32)(out); - this.get().forEach((v, i) => (out32[i] = v)); - } - digest() { - const { buffer, outputLen } = this; - this.digestInto(buffer); - const res = buffer.slice(0, outputLen); - this.destroy(); - return res; - } - _cloneInto(to) { - const { buffer, length, finished, destroyed, outputLen, pos } = this; - to || (to = new this.constructor({ dkLen: outputLen })); - to.set(...this.get()); - to.length = length; - to.finished = finished; - to.destroyed = destroyed; - to.outputLen = outputLen; - to.buffer.set(buffer); - to.pos = pos; - return to; - } -} -exports.BLAKE2 = BLAKE2; -//# sourceMappingURL=_blake2.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/_blake2.js.map b/node_modules/@noble/curves/node_modules/@noble/hashes/_blake2.js.map deleted file mode 100644 index 88ca9c0a..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/_blake2.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"_blake2.js","sourceRoot":"","sources":["src/_blake2.ts"],"names":[],"mappings":";;;AAAA,6CAAkC;AAClC,yCAAuD;AACvD,gGAAgG;AAChG,kBAAkB;AACL,QAAA,KAAK,GAAG,IAAI,UAAU,CAAC;IAClC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;IACpD,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC;IACpD,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC;IACpD,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC;IACpD,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,E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,CAAC;IAC/C,CAAC;IACD,MAAM;QACJ,MAAM,EAAE,MAAM,EAAE,SAAS,EAAE,GAAG,IAAI,CAAC;QACnC,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;QACxB,MAAM,GAAG,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC;QACvC,IAAI,CAAC,OAAO,EAAE,CAAC;QACf,OAAO,GAAG,CAAC;IACb,CAAC;IACD,UAAU,CAAC,EAAM;QACf,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;QACrE,EAAE,KAAF,EAAE,GAAK,IAAK,IAAI,CAAC,WAAmB,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,CAAM,EAAC;QAChE,EAAE,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;QACtB,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC;QACnB,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACvB,EAAE,CAAC,SAAS,GAAG,SAAS,CAAC;QACzB,EAAE,CAAC,SAAS,GAAG,SAAS,CAAC;QACzB,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QACtB,EAAE,CAAC,GAAG,GAAG,GAAG,CAAC;QACb,OAAO,EAAE,CAAC;IACZ,CAAC;CACF;AAlGD,wBAkGC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/_sha2.d.ts b/node_modules/@noble/curves/node_modules/@noble/hashes/_sha2.d.ts deleted file mode 100644 index 883788fd..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/_sha2.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { Hash, Input } from './utils.js'; -export declare abstract class SHA2> extends Hash { - readonly blockLen: number; - outputLen: number; - readonly padOffset: number; - readonly isLE: boolean; - protected abstract process(buf: DataView, offset: number): void; - protected abstract get(): number[]; - protected abstract set(...args: number[]): void; - abstract destroy(): void; - protected abstract roundClean(): void; - protected buffer: Uint8Array; - protected view: DataView; - protected finished: boolean; - protected length: number; - protected pos: number; - protected destroyed: boolean; - constructor(blockLen: number, outputLen: number, padOffset: number, isLE: boolean); - update(data: Input): this; - digestInto(out: Uint8Array): void; - digest(): Uint8Array; - _cloneInto(to?: T): T; -} diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/_sha2.js b/node_modules/@noble/curves/node_modules/@noble/hashes/_sha2.js deleted file mode 100644 index 398d446a..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/_sha2.js +++ /dev/null @@ -1,118 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SHA2 = void 0; -const _assert_js_1 = require("./_assert.js"); -const utils_js_1 = require("./utils.js"); -// Polyfill for Safari 14 -function setBigUint64(view, byteOffset, value, isLE) { - if (typeof view.setBigUint64 === 'function') - return view.setBigUint64(byteOffset, value, isLE); - const _32n = BigInt(32); - const _u32_max = BigInt(0xffffffff); - const wh = Number((value >> _32n) & _u32_max); - const wl = Number(value & _u32_max); - const h = isLE ? 4 : 0; - const l = isLE ? 0 : 4; - view.setUint32(byteOffset + h, wh, isLE); - view.setUint32(byteOffset + l, wl, isLE); -} -// Base SHA2 class (RFC 6234) -class SHA2 extends utils_js_1.Hash { - constructor(blockLen, outputLen, padOffset, isLE) { - super(); - this.blockLen = blockLen; - this.outputLen = outputLen; - this.padOffset = padOffset; - this.isLE = isLE; - this.finished = false; - this.length = 0; - this.pos = 0; - this.destroyed = false; - this.buffer = new Uint8Array(blockLen); - this.view = (0, utils_js_1.createView)(this.buffer); - } - update(data) { - _assert_js_1.default.exists(this); - const { view, buffer, blockLen } = this; - data = (0, utils_js_1.toBytes)(data); - const len = data.length; - for (let pos = 0; pos < len;) { - const take = Math.min(blockLen - this.pos, len - pos); - // Fast path: we have at least one block in input, cast it to view and process - if (take === blockLen) { - const dataView = (0, utils_js_1.createView)(data); - for (; blockLen <= len - pos; pos += blockLen) - this.process(dataView, pos); - continue; - } - buffer.set(data.subarray(pos, pos + take), this.pos); - this.pos += take; - pos += take; - if (this.pos === blockLen) { - this.process(view, 0); - this.pos = 0; - } - } - this.length += data.length; - this.roundClean(); - return this; - } - digestInto(out) { - _assert_js_1.default.exists(this); - _assert_js_1.default.output(out, this); - this.finished = true; - // Padding - // We can avoid allocation of buffer for padding completely if it - // was previously not allocated here. But it won't change performance. - const { buffer, view, blockLen, isLE } = this; - let { pos } = this; - // append the bit '1' to the message - buffer[pos++] = 0b10000000; - this.buffer.subarray(pos).fill(0); - // we have less than padOffset left in buffer, so we cannot put length in current block, need process it and pad again - if (this.padOffset > blockLen - pos) { - this.process(view, 0); - pos = 0; - } - // Pad until full block byte with zeros - for (let i = pos; i < blockLen; i++) - buffer[i] = 0; - // Note: sha512 requires length to be 128bit integer, but length in JS will overflow before that - // You need to write around 2 exabytes (u64_max / 8 / (1024**6)) for this to happen. - // So we just write lowest 64 bits of that value. - setBigUint64(view, blockLen - 8, BigInt(this.length * 8), isLE); - this.process(view, 0); - const oview = (0, utils_js_1.createView)(out); - const len = this.outputLen; - // NOTE: we do division by 4 later, which should be fused in single op with modulo by JIT - if (len % 4) - throw new Error('_sha2: outputLen should be aligned to 32bit'); - const outLen = len / 4; - const state = this.get(); - if (outLen > state.length) - throw new Error('_sha2: outputLen bigger than state'); - for (let i = 0; i < outLen; i++) - oview.setUint32(4 * i, state[i], isLE); - } - digest() { - const { buffer, outputLen } = this; - this.digestInto(buffer); - const res = buffer.slice(0, outputLen); - this.destroy(); - return res; - } - _cloneInto(to) { - to || (to = new this.constructor()); - to.set(...this.get()); - const { blockLen, buffer, length, finished, destroyed, pos } = this; - to.length = length; - to.pos = pos; - to.finished = finished; - to.destroyed = destroyed; - if (length % blockLen) - to.buffer.set(buffer); - return to; - } -} -exports.SHA2 = SHA2; -//# sourceMappingURL=_sha2.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/_sha2.js.map b/node_modules/@noble/curves/node_modules/@noble/hashes/_sha2.js.map deleted file mode 100644 index cae147e3..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/_sha2.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"_sha2.js","sourceRoot":"","sources":["src/_sha2.ts"],"names":[],"mappings":";;;AAAA,6CAAkC;AAClC,yCAA8D;AAE9D,yBAAyB;AACzB,SAAS,YAAY,CAAC,IAAc,EAAE,UAAkB,EAAE,KAAa,EAAE,IAAa;IACpF,IAAI,OAAO,IAAI,CAAC,YAAY,KAAK,UAAU;QAAE,OAAO,IAAI,CAAC,YAAY,CAAC,UAAU,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC;IAC/F,MAAM,IAAI,GAAG,MAAM,CAAC,EAAE,CAAC,CAAC;IACxB,MAAM,QAAQ,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC;IACpC,MAAM,EAAE,GAAG,MAAM,CAAC,CAAC,KAAK,IAAI,IAAI,CAAC,GAAG,QAAQ,CAAC,CAAC;IAC9C,MAAM,EAAE,GAAG,MAAM,CAAC,KAAK,GAAG,QAAQ,CAAC,CAAC;IACpC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACvB,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACvB,IAAI,CAAC,SAAS,CAAC,UAAU,GAAG,CAAC,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;IACzC,IAAI,CAAC,SAAS,CAAC,UAAU,GAAG,CAAC,EAAE,EAAE,EAAE,IAAI,CAAC,CAAC;AAC3C,CAAC;AAED,6BAA6B;AAC7B,MAAsB,IAAwB,SAAQ,eAAO;IAc3D,YACW,QAAgB,EAClB,SAAiB,EACf,SAAiB,EACjB,IAAa;QAEtB,KAAK,EA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AE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;QACpE,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC;QACnB,EAAE,CAAC,GAAG,GAAG,GAAG,CAAC;QACb,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACvB,EAAE,CAAC,SAAS,GAAG,SAAS,CAAC;QACzB,IAAI,MAAM,GAAG,QAAQ;YAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QAC7C,OAAO,EAAE,CAAC;IACZ,CAAC;CACF;AApGD,oBAoGC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/_u64.d.ts b/node_modules/@noble/curves/node_modules/@noble/hashes/_u64.d.ts deleted file mode 100644 index 9ac94f88..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/_u64.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -export declare function fromBig(n: bigint, le?: boolean): { - h: number; - l: number; -}; -export declare function split(lst: bigint[], le?: boolean): Uint32Array[]; -export declare const toBig: (h: number, l: number) => bigint; -export declare function add(Ah: number, Al: number, Bh: number, Bl: number): { - h: number; - l: number; -}; -declare const u64: { - fromBig: typeof fromBig; - split: typeof split; - toBig: (h: number, l: number) => bigint; - shrSH: (h: number, l: number, s: number) => number; - shrSL: (h: number, l: number, s: number) => number; - rotrSH: (h: number, l: number, s: number) => number; - rotrSL: (h: number, l: number, s: number) => number; - rotrBH: (h: number, l: number, s: number) => number; - rotrBL: (h: number, l: number, s: number) => number; - rotr32H: (h: number, l: number) => number; - rotr32L: (h: number, l: number) => number; - rotlSH: (h: number, l: number, s: number) => number; - rotlSL: (h: number, l: number, s: number) => number; - rotlBH: (h: number, l: number, s: number) => number; - rotlBL: (h: number, l: number, s: number) => number; - add: typeof add; - add3L: (Al: number, Bl: number, Cl: number) => number; - add3H: (low: number, Ah: number, Bh: number, Ch: number) => number; - add4L: (Al: number, Bl: number, Cl: number, Dl: number) => number; - add4H: (low: number, Ah: number, Bh: number, Ch: number, Dh: number) => number; - add5H: (low: number, Ah: number, Bh: number, Ch: number, Dh: number, Eh: number) => number; - add5L: (Al: number, Bl: number, Cl: number, Dl: number, El: number) => number; -}; -export default u64; diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/_u64.js b/node_modules/@noble/curves/node_modules/@noble/hashes/_u64.js deleted file mode 100644 index 2e1936de..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/_u64.js +++ /dev/null @@ -1,68 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.add = exports.toBig = exports.split = exports.fromBig = void 0; -const U32_MASK64 = BigInt(2 ** 32 - 1); -const _32n = BigInt(32); -// We are not using BigUint64Array, because they are extremely slow as per 2022 -function fromBig(n, le = false) { - if (le) - return { h: Number(n & U32_MASK64), l: Number((n >> _32n) & U32_MASK64) }; - return { h: Number((n >> _32n) & U32_MASK64) | 0, l: Number(n & U32_MASK64) | 0 }; -} -exports.fromBig = fromBig; -function split(lst, le = false) { - let Ah = new Uint32Array(lst.length); - let Al = new Uint32Array(lst.length); - for (let i = 0; i < lst.length; i++) { - const { h, l } = fromBig(lst[i], le); - [Ah[i], Al[i]] = [h, l]; - } - return [Ah, Al]; -} -exports.split = split; -const toBig = (h, l) => (BigInt(h >>> 0) << _32n) | BigInt(l >>> 0); -exports.toBig = toBig; -// for Shift in [0, 32) -const shrSH = (h, l, s) => h >>> s; -const shrSL = (h, l, s) => (h << (32 - s)) | (l >>> s); -// Right rotate for Shift in [1, 32) -const rotrSH = (h, l, s) => (h >>> s) | (l << (32 - s)); -const rotrSL = (h, l, s) => (h << (32 - s)) | (l >>> s); -// Right rotate for Shift in (32, 64), NOTE: 32 is special case. -const rotrBH = (h, l, s) => (h << (64 - s)) | (l >>> (s - 32)); -const rotrBL = (h, l, s) => (h >>> (s - 32)) | (l << (64 - s)); -// Right rotate for shift===32 (just swaps l&h) -const rotr32H = (h, l) => l; -const rotr32L = (h, l) => h; -// Left rotate for Shift in [1, 32) -const rotlSH = (h, l, s) => (h << s) | (l >>> (32 - s)); -const rotlSL = (h, l, s) => (l << s) | (h >>> (32 - s)); -// Left rotate for Shift in (32, 64), NOTE: 32 is special case. -const rotlBH = (h, l, s) => (l << (s - 32)) | (h >>> (64 - s)); -const rotlBL = (h, l, s) => (h << (s - 32)) | (l >>> (64 - s)); -// JS uses 32-bit signed integers for bitwise operations which means we cannot -// simple take carry out of low bit sum by shift, we need to use division. -// Removing "export" has 5% perf penalty -_- -function add(Ah, Al, Bh, Bl) { - const l = (Al >>> 0) + (Bl >>> 0); - return { h: (Ah + Bh + ((l / 2 ** 32) | 0)) | 0, l: l | 0 }; -} -exports.add = add; -// Addition with more than 2 elements -const add3L = (Al, Bl, Cl) => (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0); -const add3H = (low, Ah, Bh, Ch) => (Ah + Bh + Ch + ((low / 2 ** 32) | 0)) | 0; -const add4L = (Al, Bl, Cl, Dl) => (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0) + (Dl >>> 0); -const add4H = (low, Ah, Bh, Ch, Dh) => (Ah + Bh + Ch + Dh + ((low / 2 ** 32) | 0)) | 0; -const add5L = (Al, Bl, Cl, Dl, El) => (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0) + (Dl >>> 0) + (El >>> 0); -const add5H = (low, Ah, Bh, Ch, Dh, Eh) => (Ah + Bh + Ch + Dh + Eh + ((low / 2 ** 32) | 0)) | 0; -// prettier-ignore -const u64 = { - fromBig, split, toBig: exports.toBig, - shrSH, shrSL, - rotrSH, rotrSL, rotrBH, rotrBL, - rotr32H, rotr32L, - rotlSH, rotlSL, rotlBH, rotlBL, - add, add3L, add3H, add4L, add4H, add5H, add5L, -}; -exports.default = u64; -//# sourceMappingURL=_u64.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/_u64.js.map b/node_modules/@noble/curves/node_modules/@noble/hashes/_u64.js.map deleted file mode 100644 index aa363e0b..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/_u64.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"_u64.js","sourceRoot":"","sources":["src/_u64.ts"],"names":[],"mappings":";;;AAAA,MAAM,UAAU,GAAG,MAAM,CAAC,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC;AACvC,MAAM,IAAI,GAAG,MAAM,CAAC,EAAE,CAAC,CAAC;AAExB,+EAA+E;AAC/E,SAAgB,OAAO,CAAC,CAAS,EAAE,EAAE,GAAG,KAAK;IAC3C,IAAI,EAAE;QAAE,OAAO,EAAE,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,UAAU,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,GAAG,UAAU,CAAC,EAAE,CAAC;IAClF,OAAO,EAAE,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,GAAG,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;AACpF,CAAC;AAHD,0BAGC;AAED,SAAgB,KAAK,CAAC,GAAa,EAAE,EAAE,GAAG,KAAK;IAC7C,IAAI,EAAE,GAAG,IAAI,WAAW,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACrC,IAAI,EAAE,GAAG,IAAI,WAAW,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACrC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACnC,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACrC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAA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AC;AAClD,MAAM,KAAK,GAAG,CAAC,EAAU,EAAE,EAAU,EAAE,EAAU,EAAE,EAAU,EAAE,EAAU,EAAE,EAAE,CAC3E,CAAC,EAAE,KAAK,CAAC,CAAC,GAAG,CAAC,EAAE,KAAK,CAAC,CAAC,GAAG,CAAC,EAAE,KAAK,CAAC,CAAC,GAAG,CAAC,EAAE,KAAK,CAAC,CAAC,GAAG,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC;AACjE,MAAM,KAAK,GAAG,CAAC,GAAW,EAAE,EAAU,EAAE,EAAU,EAAE,EAAU,EAAE,EAAU,EAAE,EAAU,EAAE,EAAE,CACxF,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;AAEvD,kBAAkB;AAClB,MAAM,GAAG,GAAG;IACV,OAAO,EAAE,KAAK,EAAE,KAAK,EAAL,aAAK;IACrB,KAAK,EAAE,KAAK;IACZ,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;IAC9B,OAAO,EAAE,OAAO;IAChB,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;IAC9B,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK;CAC9C,CAAC;AACF,kBAAe,GAAG,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/argon2.d.ts b/node_modules/@noble/curves/node_modules/@noble/hashes/argon2.d.ts deleted file mode 100644 index 15b64865..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/argon2.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { Input } from './utils.js'; -export type ArgonOpts = { - t: number; - m: number; - p: number; - version?: number; - key?: Input; - personalization?: Input; - dkLen?: number; - asyncTick?: number; - maxmem?: number; - onProgress?: (progress: number) => void; -}; -export declare const argon2d: (password: Input, salt: Input, opts: ArgonOpts) => Uint8Array; -export declare const argon2i: (password: Input, salt: Input, opts: ArgonOpts) => Uint8Array; -export declare const argon2id: (password: Input, salt: Input, opts: ArgonOpts) => Uint8Array; diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/argon2.js b/node_modules/@noble/curves/node_modules/@noble/hashes/argon2.js deleted file mode 100644 index cf480c90..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/argon2.js +++ /dev/null @@ -1,310 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.argon2id = exports.argon2i = exports.argon2d = void 0; -const _assert_js_1 = require("./_assert.js"); -const utils_js_1 = require("./utils.js"); -const blake2b_js_1 = require("./blake2b.js"); -const _u64_js_1 = require("./_u64.js"); -// Experimental Argon2 RFC 9106 implementation. It may be removed at any time. -var Types; -(function (Types) { - Types[Types["Argond2d"] = 0] = "Argond2d"; - Types[Types["Argon2i"] = 1] = "Argon2i"; - Types[Types["Argon2id"] = 2] = "Argon2id"; -})(Types || (Types = {})); -const ARGON2_SYNC_POINTS = 4; -const toBytesOptional = (buf) => (buf !== undefined ? (0, utils_js_1.toBytes)(buf) : new Uint8Array([])); -function mul(a, b) { - const aL = a & 0xffff; - const aH = a >>> 16; - const bL = b & 0xffff; - const bH = b >>> 16; - const ll = Math.imul(aL, bL); - const hl = Math.imul(aH, bL); - const lh = Math.imul(aL, bH); - const hh = Math.imul(aH, bH); - const BUF = ((ll >>> 16) + (hl & 0xffff) + lh) | 0; - const h = ((hl >>> 16) + (BUF >>> 16) + hh) | 0; - return { h, l: (BUF << 16) | (ll & 0xffff) }; -} -function relPos(areaSize, relativePos) { - // areaSize - 1 - ((areaSize * ((relativePos ** 2) >>> 32)) >>> 32) - return areaSize - 1 - mul(areaSize, mul(relativePos, relativePos).h).h; -} -function mul2(a, b) { - // 2 * a * b (via shifts) - const { h, l } = mul(a, b); - return { h: ((h << 1) | (l >>> 31)) & 4294967295, l: (l << 1) & 4294967295 }; -} -function blamka(Ah, Al, Bh, Bl) { - const { h: Ch, l: Cl } = mul2(Al, Bl); - // A + B + (2 * A * B) - const Rll = _u64_js_1.default.add3L(Al, Bl, Cl); - return { h: _u64_js_1.default.add3H(Rll, Ah, Bh, Ch), l: Rll | 0 }; -} -// Temporary block buffer -const BUF = new Uint32Array(256); -function G(a, b, c, d) { - let Al = BUF[2 * a], Ah = BUF[2 * a + 1]; // prettier-ignore - let Bl = BUF[2 * b], Bh = BUF[2 * b + 1]; // prettier-ignore - let Cl = BUF[2 * c], Ch = BUF[2 * c + 1]; // prettier-ignore - let Dl = BUF[2 * d], Dh = BUF[2 * d + 1]; // prettier-ignore - ({ h: Ah, l: Al } = blamka(Ah, Al, Bh, Bl)); - ({ Dh, Dl } = { Dh: Dh ^ Ah, Dl: Dl ^ Al }); - ({ Dh, Dl } = { Dh: _u64_js_1.default.rotr32H(Dh, Dl), Dl: _u64_js_1.default.rotr32L(Dh, Dl) }); - ({ h: Ch, l: Cl } = blamka(Ch, Cl, Dh, Dl)); - ({ Bh, Bl } = { Bh: Bh ^ Ch, Bl: Bl ^ Cl }); - ({ Bh, Bl } = { Bh: _u64_js_1.default.rotrSH(Bh, Bl, 24), Bl: _u64_js_1.default.rotrSL(Bh, Bl, 24) }); - ({ h: Ah, l: Al } = blamka(Ah, Al, Bh, Bl)); - ({ Dh, Dl } = { Dh: Dh ^ Ah, Dl: Dl ^ Al }); - ({ Dh, Dl } = { Dh: _u64_js_1.default.rotrSH(Dh, Dl, 16), Dl: _u64_js_1.default.rotrSL(Dh, Dl, 16) }); - ({ h: Ch, l: Cl } = blamka(Ch, Cl, Dh, Dl)); - ({ Bh, Bl } = { Bh: Bh ^ Ch, Bl: Bl ^ Cl }); - ({ Bh, Bl } = { Bh: _u64_js_1.default.rotrBH(Bh, Bl, 63), Bl: _u64_js_1.default.rotrBL(Bh, Bl, 63) }); - (BUF[2 * a] = Al), (BUF[2 * a + 1] = Ah); - (BUF[2 * b] = Bl), (BUF[2 * b + 1] = Bh); - (BUF[2 * c] = Cl), (BUF[2 * c + 1] = Ch); - (BUF[2 * d] = Dl), (BUF[2 * d + 1] = Dh); -} -// prettier-ignore -function P(v00, v01, v02, v03, v04, v05, v06, v07, v08, v09, v10, v11, v12, v13, v14, v15) { - G(v00, v04, v08, v12); - G(v01, v05, v09, v13); - G(v02, v06, v10, v14); - G(v03, v07, v11, v15); - G(v00, v05, v10, v15); - G(v01, v06, v11, v12); - G(v02, v07, v08, v13); - G(v03, v04, v09, v14); -} -function block(x, xPos, yPos, outPos, needXor) { - for (let i = 0; i < 256; i++) - BUF[i] = x[xPos + i] ^ x[yPos + i]; - // columns - for (let i = 0; i < 128; i += 16) { - // prettier-ignore - P(i, i + 1, i + 2, i + 3, i + 4, i + 5, i + 6, i + 7, i + 8, i + 9, i + 10, i + 11, i + 12, i + 13, i + 14, i + 15); - } - // rows - for (let i = 0; i < 16; i += 2) { - // prettier-ignore - P(i, i + 1, i + 16, i + 17, i + 32, i + 33, i + 48, i + 49, i + 64, i + 65, i + 80, i + 81, i + 96, i + 97, i + 112, i + 113); - } - if (needXor) - for (let i = 0; i < 256; i++) - x[outPos + i] ^= BUF[i] ^ x[xPos + i] ^ x[yPos + i]; - else - for (let i = 0; i < 256; i++) - x[outPos + i] = BUF[i] ^ x[xPos + i] ^ x[yPos + i]; -} -// Variable-Length Hash Function H' -function Hp(A, dkLen) { - const A8 = (0, utils_js_1.u8)(A); - const T = new Uint32Array(1); - const T8 = (0, utils_js_1.u8)(T); - T[0] = dkLen; - // Fast path - if (dkLen <= 64) - return blake2b_js_1.blake2b.create({ dkLen }).update(T8).update(A8).digest(); - const out = new Uint8Array(dkLen); - let V = blake2b_js_1.blake2b.create({}).update(T8).update(A8).digest(); - let pos = 0; - // First block - out.set(V.subarray(0, 32)); - pos += 32; - // Rest blocks - for (; dkLen - pos > 64; pos += 32) - out.set((V = (0, blake2b_js_1.blake2b)(V)).subarray(0, 32), pos); - // Last block - out.set((0, blake2b_js_1.blake2b)(V, { dkLen: dkLen - pos }), pos); - return (0, utils_js_1.u32)(out); -} -function indexAlpha(r, s, laneLen, segmentLen, index, randL, sameLane = false) { - let area; - if (0 == r) { - if (0 == s) - area = index - 1; - else if (sameLane) - area = s * segmentLen + index - 1; - else - area = s * segmentLen + (index == 0 ? -1 : 0); - } - else if (sameLane) - area = laneLen - segmentLen + index - 1; - else - area = laneLen - segmentLen + (index == 0 ? -1 : 0); - const startPos = r !== 0 && s !== ARGON2_SYNC_POINTS - 1 ? (s + 1) * segmentLen : 0; - const rel = relPos(area, randL); - // NOTE: check about overflows here - // absPos = (startPos + relPos) % laneLength; - return (startPos + rel) % laneLen; -} -function argon2Init(type, password, salt, opts) { - password = (0, utils_js_1.toBytes)(password); - salt = (0, utils_js_1.toBytes)(salt); - let { p, dkLen, m, t, version, key, personalization, maxmem, onProgress } = { - ...opts, - version: opts.version || 0x13, - dkLen: opts.dkLen || 32, - maxmem: 2 ** 32, - }; - // Validation - _assert_js_1.default.number(p); - _assert_js_1.default.number(dkLen); - _assert_js_1.default.number(m); - _assert_js_1.default.number(t); - _assert_js_1.default.number(version); - if (dkLen < 4 || dkLen >= 2 ** 32) - throw new Error('Argon2: dkLen should be at least 4 bytes'); - if (dkLen < 1 || p >= 2 ** 32) - throw new Error('Argon2: p (paralllelism) should be at least 1'); - if (dkLen < 1 || p >= 2 ** 32) - throw new Error('Argon2: t (iterations) should be at least 1'); - if (m < 8 * p) - throw new Error(`Argon2: memory should be at least 8*p bytes`); - if (version !== 16 && version !== 19) - throw new Error(`Argon2: unknown version=${version}`); - password = (0, utils_js_1.toBytes)(password); - if (password.length < 0 || password.length >= 2 ** 32) - throw new Error('Argon2: password should be less than 4 GB'); - salt = (0, utils_js_1.toBytes)(salt); - if (salt.length < 8) - throw new Error('Argon2: salt should be at least 8 bytes'); - key = toBytesOptional(key); - personalization = toBytesOptional(personalization); - if (onProgress !== undefined && typeof onProgress !== 'function') - throw new Error('progressCb should be function'); - // Params - const lanes = p; - // m' = 4 * p * floor (m / 4p) - const mP = 4 * p * Math.floor(m / (ARGON2_SYNC_POINTS * p)); - //q = m' / p columns - const laneLen = Math.floor(mP / p); - const segmentLen = Math.floor(laneLen / ARGON2_SYNC_POINTS); - // H0 - const h = blake2b_js_1.blake2b.create({}); - const BUF = new Uint32Array(1); - const BUF8 = (0, utils_js_1.u8)(BUF); - for (const i of [p, dkLen, m, t, version, type]) { - if (i < 0 || i >= 2 ** 32) - throw new Error(`Argon2: wrong parameter=${i}, expected uint32`); - BUF[0] = i; - h.update(BUF8); - } - for (let i of [password, salt, key, personalization]) { - BUF[0] = i.length; - h.update(BUF8).update(i); - } - const H0 = new Uint32Array(18); - const H0_8 = (0, utils_js_1.u8)(H0); - h.digestInto(H0_8); - // 256 u32 = 1024 (BLOCK_SIZE) - const memUsed = mP * 256; - if (memUsed < 0 || memUsed >= 2 ** 32 || memUsed > maxmem) { - throw new Error(`Argon2: wrong params (memUsed=${memUsed} maxmem=${maxmem}), should be less than 2**32`); - } - const B = new Uint32Array(memUsed); - // Fill first blocks - for (let l = 0; l < p; l++) { - const i = 256 * laneLen * l; - // B[i][0] = H'^(1024)(H_0 || LE32(0) || LE32(i)) - H0[17] = l; - H0[16] = 0; - B.set(Hp(H0, 1024), i); - // B[i][1] = H'^(1024)(H_0 || LE32(1) || LE32(i)) - H0[16] = 1; - B.set(Hp(H0, 1024), i + 256); - } - let perBlock = () => { }; - if (onProgress) { - const totalBlock = t * ARGON2_SYNC_POINTS * p * segmentLen; - // Invoke callback if progress changes from 10.01 to 10.02 - // Allows to draw smooth progress bar on up to 8K screen - const callbackPer = Math.max(Math.floor(totalBlock / 10000), 1); - let blockCnt = 0; - perBlock = () => { - blockCnt++; - if (onProgress && (!(blockCnt % callbackPer) || blockCnt === totalBlock)) - onProgress(blockCnt / totalBlock); - }; - } - return { type, mP, p, t, version, B, laneLen, lanes, segmentLen, dkLen, perBlock }; -} -function argon2Output(B, p, laneLen, dkLen) { - const B_final = new Uint32Array(256); - for (let l = 0; l < p; l++) - for (let j = 0; j < 256; j++) - B_final[j] ^= B[256 * (laneLen * l + laneLen - 1) + j]; - return (0, utils_js_1.u8)(Hp(B_final, dkLen)); -} -function processBlock(B, address, l, r, s, index, laneLen, segmentLen, lanes, offset, prev, dataIndependent, needXor) { - if (offset % laneLen) - prev = offset - 1; - let randL, randH; - if (dataIndependent) { - if (index % 128 === 0) { - address[256 + 12]++; - block(address, 256, 2 * 256, 0, false); - block(address, 0, 2 * 256, 0, false); - } - randL = address[2 * (index % 128)]; - randH = address[2 * (index % 128) + 1]; - } - else { - const T = 256 * prev; - randL = B[T]; - randH = B[T + 1]; - } - // address block - const refLane = r === 0 && s === 0 ? l : randH % lanes; - const refPos = indexAlpha(r, s, laneLen, segmentLen, index, randL, refLane == l); - const refBlock = laneLen * refLane + refPos; - // B[i][j] = G(B[i][j-1], B[l][z]) - block(B, 256 * prev, 256 * refBlock, offset * 256, needXor); -} -function argon2(type, password, salt, opts) { - const { mP, p, t, version, B, laneLen, lanes, segmentLen, dkLen, perBlock } = argon2Init(type, password, salt, opts); - // Pre-loop setup - // [address, input, zero_block] format so we can pass single U32 to block function - const address = new Uint32Array(3 * 256); - address[256 + 6] = mP; - address[256 + 8] = t; - address[256 + 10] = type; - for (let r = 0; r < t; r++) { - const needXor = r !== 0 && version === 0x13; - address[256 + 0] = r; - for (let s = 0; s < ARGON2_SYNC_POINTS; s++) { - address[256 + 4] = s; - const dataIndependent = type == Types.Argon2i || (type == Types.Argon2id && r === 0 && s < 2); - for (let l = 0; l < p; l++) { - address[256 + 2] = l; - address[256 + 12] = 0; - let startPos = 0; - if (r === 0 && s === 0) { - startPos = 2; - if (dataIndependent) { - address[256 + 12]++; - block(address, 256, 2 * 256, 0, false); - block(address, 0, 2 * 256, 0, false); - } - } - // current block postion - let offset = l * laneLen + s * segmentLen + startPos; - // previous block position - let prev = offset % laneLen ? offset - 1 : offset + laneLen - 1; - for (let index = startPos; index < segmentLen; index++, offset++, prev++) { - perBlock(); - processBlock(B, address, l, r, s, index, laneLen, segmentLen, lanes, offset, prev, dataIndependent, needXor); - } - } - } - } - return argon2Output(B, p, laneLen, dkLen); -} -const argon2d = (password, salt, opts) => argon2(Types.Argond2d, password, salt, opts); -exports.argon2d = argon2d; -const argon2i = (password, salt, opts) => argon2(Types.Argon2i, password, salt, opts); -exports.argon2i = argon2i; -const argon2id = (password, salt, opts) => argon2(Types.Argon2id, password, salt, opts); -exports.argon2id = argon2id; -//# sourceMappingURL=argon2.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/argon2.js.map b/node_modules/@noble/curves/node_modules/@noble/hashes/argon2.js.map deleted file mode 100644 index ca36172b..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/argon2.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"argon2.js","sourceRoot":"","sources":["src/argon2.ts"],"names":[],"mappings":";;;AAAA,6CAAkC;AAClC,yCAAqD;AACrD,6CAAuC;AACvC,uCAA4B;AAE5B,8EAA8E;AAC9E,IAAK,KAIJ;AAJD,WAAK,KAAK;IACR,yCAAY,CAAA;IACZ,uCAAW,CAAA;IACX,yCAAY,CAAA;AACd,CAAC,EAJI,KAAK,KAAL,KAAK,QAIT;AAED,MAAM,kBAAkB,GAAG,CAAC,CAAC;AAE7B,MAAM,eAAe,GAAG,CAAC,GAAW,EAAE,EAAE,CAAC,CAAC,GAAG,KAAK,SAAS,CAAC,CAAC,CAAC,IAAA,kBAAO,EAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,UAAU,CAAC,EAAE,CAAC,CAAC,CAAC;AAEjG,SAAS,GAAG,CAAC,CAAS,EAAE,CAAS;IAC/B,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC;IACtB,MAAM,EAAE,GAAG,CAAC,KAAK,EAAE,CAAC;IACpB,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC;IACtB,MAAM,E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line at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/blake2b.d.ts b/node_modules/@noble/curves/node_modules/@noble/hashes/blake2b.d.ts deleted file mode 100644 index 7a78c6b8..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/blake2b.d.ts +++ /dev/null @@ -1,53 +0,0 @@ -import { BLAKE2, BlakeOpts } from './_blake2.js'; -declare class BLAKE2b extends BLAKE2 { - private v0l; - private v0h; - private v1l; - private v1h; - private v2l; - private v2h; - private v3l; - private v3h; - private v4l; - private v4h; - private v5l; - private v5h; - private v6l; - private v6h; - private v7l; - private v7h; - constructor(opts?: BlakeOpts); - protected get(): [ - number, - number, - number, - number, - number, - number, - number, - number, - number, - number, - number, - number, - number, - number, - number, - number - ]; - protected set(v0l: number, v0h: number, v1l: number, v1h: number, v2l: number, v2h: number, v3l: number, v3h: number, v4l: number, v4h: number, v5l: number, v5h: number, v6l: number, v6h: number, v7l: number, v7h: number): void; - protected compress(msg: Uint32Array, offset: number, isLast: boolean): void; - destroy(): void; -} -/** - * BLAKE2b - optimized for 64-bit platforms. JS doesn't have uint64, so it's slower than BLAKE2s. - * @param msg - message that would be hashed - * @param opts - dkLen, key, salt, personalization - */ -export declare const blake2b: { - (msg: import("./utils.js").Input, opts?: BlakeOpts | undefined): Uint8Array; - outputLen: number; - blockLen: number; - create(opts: BlakeOpts): import("./utils.js").Hash; -}; -export {}; diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/blake2b.js b/node_modules/@noble/curves/node_modules/@noble/hashes/blake2b.js deleted file mode 100644 index a25abda5..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/blake2b.js +++ /dev/null @@ -1,192 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.blake2b = void 0; -const _blake2_js_1 = require("./_blake2.js"); -const _u64_js_1 = require("./_u64.js"); -const utils_js_1 = require("./utils.js"); -// Same as SHA-512 but LE -// prettier-ignore -const IV = new Uint32Array([ - 0xf3bcc908, 0x6a09e667, 0x84caa73b, 0xbb67ae85, 0xfe94f82b, 0x3c6ef372, 0x5f1d36f1, 0xa54ff53a, - 0xade682d1, 0x510e527f, 0x2b3e6c1f, 0x9b05688c, 0xfb41bd6b, 0x1f83d9ab, 0x137e2179, 0x5be0cd19 -]); -// Temporary buffer -const BUF = new Uint32Array(32); -// Mixing function G splitted in two halfs -function G1(a, b, c, d, msg, x) { - // NOTE: V is LE here - const Xl = msg[x], Xh = msg[x + 1]; // prettier-ignore - let Al = BUF[2 * a], Ah = BUF[2 * a + 1]; // prettier-ignore - let Bl = BUF[2 * b], Bh = BUF[2 * b + 1]; // prettier-ignore - let Cl = BUF[2 * c], Ch = BUF[2 * c + 1]; // prettier-ignore - let Dl = BUF[2 * d], Dh = BUF[2 * d + 1]; // prettier-ignore - // v[a] = (v[a] + v[b] + x) | 0; - let ll = _u64_js_1.default.add3L(Al, Bl, Xl); - Ah = _u64_js_1.default.add3H(ll, Ah, Bh, Xh); - Al = ll | 0; - // v[d] = rotr(v[d] ^ v[a], 32) - ({ Dh, Dl } = { Dh: Dh ^ Ah, Dl: Dl ^ Al }); - ({ Dh, Dl } = { Dh: _u64_js_1.default.rotr32H(Dh, Dl), Dl: _u64_js_1.default.rotr32L(Dh, Dl) }); - // v[c] = (v[c] + v[d]) | 0; - ({ h: Ch, l: Cl } = _u64_js_1.default.add(Ch, Cl, Dh, Dl)); - // v[b] = rotr(v[b] ^ v[c], 24) - ({ Bh, Bl } = { Bh: Bh ^ Ch, Bl: Bl ^ Cl }); - ({ Bh, Bl } = { Bh: _u64_js_1.default.rotrSH(Bh, Bl, 24), Bl: _u64_js_1.default.rotrSL(Bh, Bl, 24) }); - (BUF[2 * a] = Al), (BUF[2 * a + 1] = Ah); - (BUF[2 * b] = Bl), (BUF[2 * b + 1] = Bh); - (BUF[2 * c] = Cl), (BUF[2 * c + 1] = Ch); - (BUF[2 * d] = Dl), (BUF[2 * d + 1] = Dh); -} -function G2(a, b, c, d, msg, x) { - // NOTE: V is LE here - const Xl = msg[x], Xh = msg[x + 1]; // prettier-ignore - let Al = BUF[2 * a], Ah = BUF[2 * a + 1]; // prettier-ignore - let Bl = BUF[2 * b], Bh = BUF[2 * b + 1]; // prettier-ignore - let Cl = BUF[2 * c], Ch = BUF[2 * c + 1]; // prettier-ignore - let Dl = BUF[2 * d], Dh = BUF[2 * d + 1]; // prettier-ignore - // v[a] = (v[a] + v[b] + x) | 0; - let ll = _u64_js_1.default.add3L(Al, Bl, Xl); - Ah = _u64_js_1.default.add3H(ll, Ah, Bh, Xh); - Al = ll | 0; - // v[d] = rotr(v[d] ^ v[a], 16) - ({ Dh, Dl } = { Dh: Dh ^ Ah, Dl: Dl ^ Al }); - ({ Dh, Dl } = { Dh: _u64_js_1.default.rotrSH(Dh, Dl, 16), Dl: _u64_js_1.default.rotrSL(Dh, Dl, 16) }); - // v[c] = (v[c] + v[d]) | 0; - ({ h: Ch, l: Cl } = _u64_js_1.default.add(Ch, Cl, Dh, Dl)); - // v[b] = rotr(v[b] ^ v[c], 63) - ({ Bh, Bl } = { Bh: Bh ^ Ch, Bl: Bl ^ Cl }); - ({ Bh, Bl } = { Bh: _u64_js_1.default.rotrBH(Bh, Bl, 63), Bl: _u64_js_1.default.rotrBL(Bh, Bl, 63) }); - (BUF[2 * a] = Al), (BUF[2 * a + 1] = Ah); - (BUF[2 * b] = Bl), (BUF[2 * b + 1] = Bh); - (BUF[2 * c] = Cl), (BUF[2 * c + 1] = Ch); - (BUF[2 * d] = Dl), (BUF[2 * d + 1] = Dh); -} -class BLAKE2b extends _blake2_js_1.BLAKE2 { - constructor(opts = {}) { - super(128, opts.dkLen === undefined ? 64 : opts.dkLen, opts, 64, 16, 16); - // Same as SHA-512, but LE - this.v0l = IV[0] | 0; - this.v0h = IV[1] | 0; - this.v1l = IV[2] | 0; - this.v1h = IV[3] | 0; - this.v2l = IV[4] | 0; - this.v2h = IV[5] | 0; - this.v3l = IV[6] | 0; - this.v3h = IV[7] | 0; - this.v4l = IV[8] | 0; - this.v4h = IV[9] | 0; - this.v5l = IV[10] | 0; - this.v5h = IV[11] | 0; - this.v6l = IV[12] | 0; - this.v6h = IV[13] | 0; - this.v7l = IV[14] | 0; - this.v7h = IV[15] | 0; - const keyLength = opts.key ? opts.key.length : 0; - this.v0l ^= this.outputLen | (keyLength << 8) | (0x01 << 16) | (0x01 << 24); - if (opts.salt) { - const salt = (0, utils_js_1.u32)((0, utils_js_1.toBytes)(opts.salt)); - this.v4l ^= salt[0]; - this.v4h ^= salt[1]; - this.v5l ^= salt[2]; - this.v5h ^= salt[3]; - } - if (opts.personalization) { - const pers = (0, utils_js_1.u32)((0, utils_js_1.toBytes)(opts.personalization)); - this.v6l ^= pers[0]; - this.v6h ^= pers[1]; - this.v7l ^= pers[2]; - this.v7h ^= pers[3]; - } - if (opts.key) { - // Pad to blockLen and update - const tmp = new Uint8Array(this.blockLen); - tmp.set((0, utils_js_1.toBytes)(opts.key)); - this.update(tmp); - } - } - // prettier-ignore - get() { - let { v0l, v0h, v1l, v1h, v2l, v2h, v3l, v3h, v4l, v4h, v5l, v5h, v6l, v6h, v7l, v7h } = this; - return [v0l, v0h, v1l, v1h, v2l, v2h, v3l, v3h, v4l, v4h, v5l, v5h, v6l, v6h, v7l, v7h]; - } - // prettier-ignore - set(v0l, v0h, v1l, v1h, v2l, v2h, v3l, v3h, v4l, v4h, v5l, v5h, v6l, v6h, v7l, v7h) { - this.v0l = v0l | 0; - this.v0h = v0h | 0; - this.v1l = v1l | 0; - this.v1h = v1h | 0; - this.v2l = v2l | 0; - this.v2h = v2h | 0; - this.v3l = v3l | 0; - this.v3h = v3h | 0; - this.v4l = v4l | 0; - this.v4h = v4h | 0; - this.v5l = v5l | 0; - this.v5h = v5h | 0; - this.v6l = v6l | 0; - this.v6h = v6h | 0; - this.v7l = v7l | 0; - this.v7h = v7h | 0; - } - compress(msg, offset, isLast) { - this.get().forEach((v, i) => (BUF[i] = v)); // First half from state. - BUF.set(IV, 16); // Second half from IV. - let { h, l } = _u64_js_1.default.fromBig(BigInt(this.length)); - BUF[24] = IV[8] ^ l; // Low word of the offset. - BUF[25] = IV[9] ^ h; // High word. - // Invert all bits for last block - if (isLast) { - BUF[28] = ~BUF[28]; - BUF[29] = ~BUF[29]; - } - let j = 0; - const s = _blake2_js_1.SIGMA; - for (let i = 0; i < 12; i++) { - G1(0, 4, 8, 12, msg, offset + 2 * s[j++]); - G2(0, 4, 8, 12, msg, offset + 2 * s[j++]); - G1(1, 5, 9, 13, msg, offset + 2 * s[j++]); - G2(1, 5, 9, 13, msg, offset + 2 * s[j++]); - G1(2, 6, 10, 14, msg, offset + 2 * s[j++]); - G2(2, 6, 10, 14, msg, offset + 2 * s[j++]); - G1(3, 7, 11, 15, msg, offset + 2 * s[j++]); - G2(3, 7, 11, 15, msg, offset + 2 * s[j++]); - G1(0, 5, 10, 15, msg, offset + 2 * s[j++]); - G2(0, 5, 10, 15, msg, offset + 2 * s[j++]); - G1(1, 6, 11, 12, msg, offset + 2 * s[j++]); - G2(1, 6, 11, 12, msg, offset + 2 * s[j++]); - G1(2, 7, 8, 13, msg, offset + 2 * s[j++]); - G2(2, 7, 8, 13, msg, offset + 2 * s[j++]); - G1(3, 4, 9, 14, msg, offset + 2 * s[j++]); - G2(3, 4, 9, 14, msg, offset + 2 * s[j++]); - } - this.v0l ^= BUF[0] ^ BUF[16]; - this.v0h ^= BUF[1] ^ BUF[17]; - this.v1l ^= BUF[2] ^ BUF[18]; - this.v1h ^= BUF[3] ^ BUF[19]; - this.v2l ^= BUF[4] ^ BUF[20]; - this.v2h ^= BUF[5] ^ BUF[21]; - this.v3l ^= BUF[6] ^ BUF[22]; - this.v3h ^= BUF[7] ^ BUF[23]; - this.v4l ^= BUF[8] ^ BUF[24]; - this.v4h ^= BUF[9] ^ BUF[25]; - this.v5l ^= BUF[10] ^ BUF[26]; - this.v5h ^= BUF[11] ^ BUF[27]; - this.v6l ^= BUF[12] ^ BUF[28]; - this.v6h ^= BUF[13] ^ BUF[29]; - this.v7l ^= BUF[14] ^ BUF[30]; - this.v7h ^= BUF[15] ^ BUF[31]; - BUF.fill(0); - } - destroy() { - this.destroyed = true; - this.buffer32.fill(0); - this.set(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); - } -} -/** - * BLAKE2b - optimized for 64-bit platforms. JS doesn't have uint64, so it's slower than BLAKE2s. - * @param msg - message that would be hashed - * @param opts - dkLen, key, salt, personalization - */ -exports.blake2b = (0, utils_js_1.wrapConstructorWithOpts)((opts) => new BLAKE2b(opts)); -//# sourceMappingURL=blake2b.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/blake2b.js.map b/node_modules/@noble/curves/node_modules/@noble/hashes/blake2b.js.map deleted file mode 100644 index 6cb986b9..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/blake2b.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"blake2b.js","sourceRoot":"","sources":["src/blake2b.ts"],"names":[],"mappings":";;;AAAA,6CAAwD;AACxD,uCAA4B;AAC5B,yCAAmE;AAEnE,yBAAyB;AACzB,kBAAkB;AAClB,MAAM,EAAE,GAAG,IAAI,WAAW,CAAC;IACzB,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU;IAC9F,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU;CAC/F,CAAC,CAAC;AACH,mBAAmB;AACnB,MAAM,GAAG,GAAG,IAAI,WAAW,CAAC,EAAE,CAAC,CAAC;AAEhC,0CAA0C;AAC1C,SAAS,EAAE,CAAC,CAAS,EAAE,CAAS,EAAE,CAAS,EAAE,CAAS,EAAE,GAAgB,EAAE,CAAS;IACjF,qBAAqB;IACrB,MAAM,EAAE,GAAG,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,GAAG,G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,IAAI,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,EAAE,CAAC,CAAC;QAC9B,IAAI,CAAC,GAAG,IAAI,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,EAAE,CAAC,CAAC;QAC9B,IAAI,CAAC,GAAG,IAAI,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,EAAE,CAAC,CAAC;QAC9B,IAAI,CAAC,GAAG,IAAI,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,EAAE,CAAC,CAAC;QAC9B,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACd,CAAC;IACD,OAAO;QACL,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;QACtB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACtB,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAC3D,CAAC;CACF;AAED;;;;GAIG;AACU,QAAA,OAAO,GAAG,IAAA,kCAAuB,EAAqB,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/blake2s.d.ts b/node_modules/@noble/curves/node_modules/@noble/hashes/blake2s.d.ts deleted file mode 100644 index d9dd59b0..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/blake2s.d.ts +++ /dev/null @@ -1,47 +0,0 @@ -import { BLAKE2, BlakeOpts } from './_blake2.js'; -export declare const IV: Uint32Array; -export declare function compress(s: Uint8Array, offset: number, msg: Uint32Array, rounds: number, v0: number, v1: number, v2: number, v3: number, v4: number, v5: number, v6: number, v7: number, v8: number, v9: number, v10: number, v11: number, v12: number, v13: number, v14: number, v15: number): { - v0: number; - v1: number; - v2: number; - v3: number; - v4: number; - v5: number; - v6: number; - v7: number; - v8: number; - v9: number; - v10: number; - v11: number; - v12: number; - v13: number; - v14: number; - v15: number; -}; -declare class BLAKE2s extends BLAKE2 { - private v0; - private v1; - private v2; - private v3; - private v4; - private v5; - private v6; - private v7; - constructor(opts?: BlakeOpts); - protected get(): [number, number, number, number, number, number, number, number]; - protected set(v0: number, v1: number, v2: number, v3: number, v4: number, v5: number, v6: number, v7: number): void; - protected compress(msg: Uint32Array, offset: number, isLast: boolean): void; - destroy(): void; -} -/** - * BLAKE2s - optimized for 32-bit platforms. JS doesn't have uint64, so it's faster than BLAKE2b. - * @param msg - message that would be hashed - * @param opts - dkLen, key, salt, personalization - */ -export declare const blake2s: { - (msg: import("./utils.js").Input, opts?: BlakeOpts | undefined): Uint8Array; - outputLen: number; - blockLen: number; - create(opts: BlakeOpts): import("./utils.js").Hash; -}; -export {}; diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/blake2s.js b/node_modules/@noble/curves/node_modules/@noble/hashes/blake2s.js deleted file mode 100644 index 30bf033f..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/blake2s.js +++ /dev/null @@ -1,124 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.blake2s = exports.compress = exports.IV = void 0; -const _blake2_js_1 = require("./_blake2.js"); -const _u64_js_1 = require("./_u64.js"); -const utils_js_1 = require("./utils.js"); -// Initial state: -// first 32 bits of the fractional parts of the square roots of the first 8 primes 2..19) -// same as SHA-256 -// prettier-ignore -exports.IV = new Uint32Array([ - 0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19 -]); -// Mixing function G splitted in two halfs -function G1(a, b, c, d, x) { - a = (a + b + x) | 0; - d = (0, utils_js_1.rotr)(d ^ a, 16); - c = (c + d) | 0; - b = (0, utils_js_1.rotr)(b ^ c, 12); - return { a, b, c, d }; -} -function G2(a, b, c, d, x) { - a = (a + b + x) | 0; - d = (0, utils_js_1.rotr)(d ^ a, 8); - c = (c + d) | 0; - b = (0, utils_js_1.rotr)(b ^ c, 7); - return { a, b, c, d }; -} -// prettier-ignore -function compress(s, offset, msg, rounds, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15) { - let j = 0; - for (let i = 0; i < rounds; i++) { - ({ a: v0, b: v4, c: v8, d: v12 } = G1(v0, v4, v8, v12, msg[offset + s[j++]])); - ({ a: v0, b: v4, c: v8, d: v12 } = G2(v0, v4, v8, v12, msg[offset + s[j++]])); - ({ a: v1, b: v5, c: v9, d: v13 } = G1(v1, v5, v9, v13, msg[offset + s[j++]])); - ({ a: v1, b: v5, c: v9, d: v13 } = G2(v1, v5, v9, v13, msg[offset + s[j++]])); - ({ a: v2, b: v6, c: v10, d: v14 } = G1(v2, v6, v10, v14, msg[offset + s[j++]])); - ({ a: v2, b: v6, c: v10, d: v14 } = G2(v2, v6, v10, v14, msg[offset + s[j++]])); - ({ a: v3, b: v7, c: v11, d: v15 } = G1(v3, v7, v11, v15, msg[offset + s[j++]])); - ({ a: v3, b: v7, c: v11, d: v15 } = G2(v3, v7, v11, v15, msg[offset + s[j++]])); - ({ a: v0, b: v5, c: v10, d: v15 } = G1(v0, v5, v10, v15, msg[offset + s[j++]])); - ({ a: v0, b: v5, c: v10, d: v15 } = G2(v0, v5, v10, v15, msg[offset + s[j++]])); - ({ a: v1, b: v6, c: v11, d: v12 } = G1(v1, v6, v11, v12, msg[offset + s[j++]])); - ({ a: v1, b: v6, c: v11, d: v12 } = G2(v1, v6, v11, v12, msg[offset + s[j++]])); - ({ a: v2, b: v7, c: v8, d: v13 } = G1(v2, v7, v8, v13, msg[offset + s[j++]])); - ({ a: v2, b: v7, c: v8, d: v13 } = G2(v2, v7, v8, v13, msg[offset + s[j++]])); - ({ a: v3, b: v4, c: v9, d: v14 } = G1(v3, v4, v9, v14, msg[offset + s[j++]])); - ({ a: v3, b: v4, c: v9, d: v14 } = G2(v3, v4, v9, v14, msg[offset + s[j++]])); - } - return { v0, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15 }; -} -exports.compress = compress; -class BLAKE2s extends _blake2_js_1.BLAKE2 { - constructor(opts = {}) { - super(64, opts.dkLen === undefined ? 32 : opts.dkLen, opts, 32, 8, 8); - // Internal state, same as SHA-256 - this.v0 = exports.IV[0] | 0; - this.v1 = exports.IV[1] | 0; - this.v2 = exports.IV[2] | 0; - this.v3 = exports.IV[3] | 0; - this.v4 = exports.IV[4] | 0; - this.v5 = exports.IV[5] | 0; - this.v6 = exports.IV[6] | 0; - this.v7 = exports.IV[7] | 0; - const keyLength = opts.key ? opts.key.length : 0; - this.v0 ^= this.outputLen | (keyLength << 8) | (0x01 << 16) | (0x01 << 24); - if (opts.salt) { - const salt = (0, utils_js_1.u32)((0, utils_js_1.toBytes)(opts.salt)); - this.v4 ^= salt[0]; - this.v5 ^= salt[1]; - } - if (opts.personalization) { - const pers = (0, utils_js_1.u32)((0, utils_js_1.toBytes)(opts.personalization)); - this.v6 ^= pers[0]; - this.v7 ^= pers[1]; - } - if (opts.key) { - // Pad to blockLen and update - const tmp = new Uint8Array(this.blockLen); - tmp.set((0, utils_js_1.toBytes)(opts.key)); - this.update(tmp); - } - } - get() { - const { v0, v1, v2, v3, v4, v5, v6, v7 } = this; - return [v0, v1, v2, v3, v4, v5, v6, v7]; - } - // prettier-ignore - set(v0, v1, v2, v3, v4, v5, v6, v7) { - this.v0 = v0 | 0; - this.v1 = v1 | 0; - this.v2 = v2 | 0; - this.v3 = v3 | 0; - this.v4 = v4 | 0; - this.v5 = v5 | 0; - this.v6 = v6 | 0; - this.v7 = v7 | 0; - } - compress(msg, offset, isLast) { - const { h, l } = _u64_js_1.default.fromBig(BigInt(this.length)); - // prettier-ignore - const { v0, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15 } = compress(_blake2_js_1.SIGMA, offset, msg, 10, this.v0, this.v1, this.v2, this.v3, this.v4, this.v5, this.v6, this.v7, exports.IV[0], exports.IV[1], exports.IV[2], exports.IV[3], l ^ exports.IV[4], h ^ exports.IV[5], isLast ? ~exports.IV[6] : exports.IV[6], exports.IV[7]); - this.v0 ^= v0 ^ v8; - this.v1 ^= v1 ^ v9; - this.v2 ^= v2 ^ v10; - this.v3 ^= v3 ^ v11; - this.v4 ^= v4 ^ v12; - this.v5 ^= v5 ^ v13; - this.v6 ^= v6 ^ v14; - this.v7 ^= v7 ^ v15; - } - destroy() { - this.destroyed = true; - this.buffer32.fill(0); - this.set(0, 0, 0, 0, 0, 0, 0, 0); - } -} -/** - * BLAKE2s - optimized for 32-bit platforms. JS doesn't have uint64, so it's faster than BLAKE2b. - * @param msg - message that would be hashed - * @param opts - dkLen, key, salt, personalization - */ -exports.blake2s = (0, utils_js_1.wrapConstructorWithOpts)((opts) => new BLAKE2s(opts)); -//# sourceMappingURL=blake2s.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/blake2s.js.map b/node_modules/@noble/curves/node_modules/@noble/hashes/blake2s.js.map deleted file mode 100644 index ce187f22..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/blake2s.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"blake2s.js","sourceRoot":"","sources":["src/blake2s.ts"],"names":[],"mappings":";;;AAAA,6CAAwD;AACxD,uCAA4B;AAC5B,yCAAyE;AAEzE,iBAAiB;AACjB,yFAAyF;AACzF,kBAAkB;AAClB,kBAAkB;AACL,QAAA,EAAE,GAAG,IAAI,WAAW,CAAC;IAChC,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU;CAC/F,CAAC,CAAC;AAEH,0CAA0C;AAC1C,SAAS,E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;QACtB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACtB,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IACnC,CAAC;CACF;AAED;;;;GAIG;AACU,QAAA,OAAO,GAAG,IAAA,kCAAuB,EAAqB,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/blake3.d.ts b/node_modules/@noble/curves/node_modules/@noble/hashes/blake3.d.ts deleted file mode 100644 index 13894cf6..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/blake3.d.ts +++ /dev/null @@ -1,46 +0,0 @@ -import { BLAKE2 } from './_blake2.js'; -import { Input, HashXOF } from './utils.js'; -export type Blake3Opts = { - dkLen?: number; - key?: Input; - context?: Input; -}; -declare class BLAKE3 extends BLAKE2 implements HashXOF { - private IV; - private flags; - private state; - private chunkPos; - private chunksDone; - private stack; - private posOut; - private bufferOut32; - private bufferOut; - private chunkOut; - private enableXOF; - constructor(opts?: Blake3Opts, flags?: number); - protected get(): never[]; - protected set(): void; - private b2Compress; - protected compress(buf: Uint32Array, bufPos?: number, isLast?: boolean): void; - _cloneInto(to?: BLAKE3): BLAKE3; - destroy(): void; - private b2CompressOut; - protected finish(): void; - private writeInto; - xofInto(out: Uint8Array): Uint8Array; - xof(bytes: number): Uint8Array; - digestInto(out: Uint8Array): Uint8Array; - digest(): Uint8Array; -} -/** - * BLAKE3 hash function. - * @param msg - message that would be hashed - * @param opts - dkLen, key, context - */ -export declare const blake3: { - (msg: Input, opts?: Blake3Opts | undefined): Uint8Array; - outputLen: number; - blockLen: number; - create(opts: Blake3Opts): HashXOF; -}; -export {}; diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/blake3.js b/node_modules/@noble/curves/node_modules/@noble/hashes/blake3.js deleted file mode 100644 index 52689eb5..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/blake3.js +++ /dev/null @@ -1,240 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.blake3 = void 0; -const _assert_js_1 = require("./_assert.js"); -const _u64_js_1 = require("./_u64.js"); -const _blake2_js_1 = require("./_blake2.js"); -const blake2s_js_1 = require("./blake2s.js"); -const utils_js_1 = require("./utils.js"); -// Flag bitset -var Flags; -(function (Flags) { - Flags[Flags["CHUNK_START"] = 1] = "CHUNK_START"; - Flags[Flags["CHUNK_END"] = 2] = "CHUNK_END"; - Flags[Flags["PARENT"] = 4] = "PARENT"; - Flags[Flags["ROOT"] = 8] = "ROOT"; - Flags[Flags["KEYED_HASH"] = 16] = "KEYED_HASH"; - Flags[Flags["DERIVE_KEY_CONTEXT"] = 32] = "DERIVE_KEY_CONTEXT"; - Flags[Flags["DERIVE_KEY_MATERIAL"] = 64] = "DERIVE_KEY_MATERIAL"; -})(Flags || (Flags = {})); -const SIGMA = (() => { - const Id = Array.from({ length: 16 }, (_, i) => i); - const permute = (arr) => [2, 6, 3, 10, 7, 0, 4, 13, 1, 11, 12, 5, 9, 14, 15, 8].map((i) => arr[i]); - const res = []; - for (let i = 0, v = Id; i < 7; i++, v = permute(v)) - res.push(...v); - return Uint8Array.from(res); -})(); -// Why is this so slow? It should be 6x faster than blake2b. -// - There is only 30% reduction in number of rounds from blake2s -// - This function uses tree mode to achive parallelisation via SIMD and threading, -// however in JS we don't have threads and SIMD, so we get only overhead from tree structure -// - It is possible to speed it up via Web Workers, hovewer it will make code singnificantly more -// complicated, which we are trying to avoid, since this library is intended to be used -// for cryptographic purposes. Also, parallelization happens only on chunk level (1024 bytes), -// which won't really benefit small inputs. -class BLAKE3 extends _blake2_js_1.BLAKE2 { - constructor(opts = {}, flags = 0) { - super(64, opts.dkLen === undefined ? 32 : opts.dkLen, {}, Number.MAX_SAFE_INTEGER, 0, 0); - this.flags = 0 | 0; - this.chunkPos = 0; // Position of current block in chunk - this.chunksDone = 0; // How many chunks we already have - this.stack = []; - // Output - this.posOut = 0; - this.bufferOut32 = new Uint32Array(16); - this.chunkOut = 0; // index of output chunk - this.enableXOF = true; - this.outputLen = opts.dkLen === undefined ? 32 : opts.dkLen; - _assert_js_1.default.number(this.outputLen); - if (opts.key !== undefined && opts.context !== undefined) - throw new Error('Blake3: only key or context can be specified at same time'); - else if (opts.key !== undefined) { - const key = (0, utils_js_1.toBytes)(opts.key).slice(); - if (key.length !== 32) - throw new Error('Blake3: key should be 32 byte'); - this.IV = (0, utils_js_1.u32)(key); - this.flags = flags | Flags.KEYED_HASH; - } - else if (opts.context !== undefined) { - const context_key = new BLAKE3({ dkLen: 32 }, Flags.DERIVE_KEY_CONTEXT) - .update(opts.context) - .digest(); - this.IV = (0, utils_js_1.u32)(context_key); - this.flags = flags | Flags.DERIVE_KEY_MATERIAL; - } - else { - this.IV = blake2s_js_1.IV.slice(); - this.flags = flags; - } - this.state = this.IV.slice(); - this.bufferOut = (0, utils_js_1.u8)(this.bufferOut32); - } - // Unused - get() { - return []; - } - set() { } - b2Compress(counter, flags, buf, bufPos = 0) { - const { state: s, pos } = this; - const { h, l } = _u64_js_1.default.fromBig(BigInt(counter), true); - // prettier-ignore - const { v0, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15 } = (0, blake2s_js_1.compress)(SIGMA, bufPos, buf, 7, s[0], s[1], s[2], s[3], s[4], s[5], s[6], s[7], blake2s_js_1.IV[0], blake2s_js_1.IV[1], blake2s_js_1.IV[2], blake2s_js_1.IV[3], h, l, pos, flags); - s[0] = v0 ^ v8; - s[1] = v1 ^ v9; - s[2] = v2 ^ v10; - s[3] = v3 ^ v11; - s[4] = v4 ^ v12; - s[5] = v5 ^ v13; - s[6] = v6 ^ v14; - s[7] = v7 ^ v15; - } - compress(buf, bufPos = 0, isLast = false) { - // Compress last block - let flags = this.flags; - if (!this.chunkPos) - flags |= Flags.CHUNK_START; - if (this.chunkPos === 15 || isLast) - flags |= Flags.CHUNK_END; - if (!isLast) - this.pos = this.blockLen; - this.b2Compress(this.chunksDone, flags, buf, bufPos); - this.chunkPos += 1; - // If current block is last in chunk (16 blocks), then compress chunks - if (this.chunkPos === 16 || isLast) { - let chunk = this.state; - this.state = this.IV.slice(); - // If not the last one, compress only when there are trailing zeros in chunk counter - // chunks used as binary tree where current stack is path. Zero means current leaf is finished and can be compressed. - // 1 (001) - leaf not finished (just push current chunk to stack) - // 2 (010) - leaf finished at depth=1 (merge with last elm on stack and push back) - // 3 (011) - last leaf not finished - // 4 (100) - leafs finished at depth=1 and depth=2 - for (let last, chunks = this.chunksDone + 1; isLast || !(chunks & 1); chunks >>= 1) { - if (!(last = this.stack.pop())) - break; - this.buffer32.set(last, 0); - this.buffer32.set(chunk, 8); - this.pos = this.blockLen; - this.b2Compress(0, this.flags | Flags.PARENT, this.buffer32, 0); - chunk = this.state; - this.state = this.IV.slice(); - } - this.chunksDone++; - this.chunkPos = 0; - this.stack.push(chunk); - } - this.pos = 0; - } - _cloneInto(to) { - to = super._cloneInto(to); - const { IV, flags, state, chunkPos, posOut, chunkOut, stack, chunksDone } = this; - to.state.set(state.slice()); - to.stack = stack.map((i) => Uint32Array.from(i)); - to.IV.set(IV); - to.flags = flags; - to.chunkPos = chunkPos; - to.chunksDone = chunksDone; - to.posOut = posOut; - to.chunkOut = chunkOut; - to.enableXOF = this.enableXOF; - to.bufferOut32.set(this.bufferOut32); - return to; - } - destroy() { - this.destroyed = true; - this.state.fill(0); - this.buffer32.fill(0); - this.IV.fill(0); - this.bufferOut32.fill(0); - for (let i of this.stack) - i.fill(0); - } - // Same as b2Compress, but doesn't modify state and returns 16 u32 array (instead of 8) - b2CompressOut() { - const { state: s, pos, flags, buffer32, bufferOut32: out32 } = this; - const { h, l } = _u64_js_1.default.fromBig(BigInt(this.chunkOut++)); - // prettier-ignore - const { v0, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15 } = (0, blake2s_js_1.compress)(SIGMA, 0, buffer32, 7, s[0], s[1], s[2], s[3], s[4], s[5], s[6], s[7], blake2s_js_1.IV[0], blake2s_js_1.IV[1], blake2s_js_1.IV[2], blake2s_js_1.IV[3], l, h, pos, flags); - out32[0] = v0 ^ v8; - out32[1] = v1 ^ v9; - out32[2] = v2 ^ v10; - out32[3] = v3 ^ v11; - out32[4] = v4 ^ v12; - out32[5] = v5 ^ v13; - out32[6] = v6 ^ v14; - out32[7] = v7 ^ v15; - out32[8] = s[0] ^ v8; - out32[9] = s[1] ^ v9; - out32[10] = s[2] ^ v10; - out32[11] = s[3] ^ v11; - out32[12] = s[4] ^ v12; - out32[13] = s[5] ^ v13; - out32[14] = s[6] ^ v14; - out32[15] = s[7] ^ v15; - this.posOut = 0; - } - finish() { - if (this.finished) - return; - this.finished = true; - // Padding - this.buffer.fill(0, this.pos); - // Process last chunk - let flags = this.flags | Flags.ROOT; - if (this.stack.length) { - flags |= Flags.PARENT; - this.compress(this.buffer32, 0, true); - this.chunksDone = 0; - this.pos = this.blockLen; - } - else { - flags |= (!this.chunkPos ? Flags.CHUNK_START : 0) | Flags.CHUNK_END; - } - this.flags = flags; - this.b2CompressOut(); - } - writeInto(out) { - _assert_js_1.default.exists(this, false); - _assert_js_1.default.bytes(out); - this.finish(); - const { blockLen, bufferOut } = this; - for (let pos = 0, len = out.length; pos < len;) { - if (this.posOut >= blockLen) - this.b2CompressOut(); - const take = Math.min(blockLen - this.posOut, len - pos); - out.set(bufferOut.subarray(this.posOut, this.posOut + take), pos); - this.posOut += take; - pos += take; - } - return out; - } - xofInto(out) { - if (!this.enableXOF) - throw new Error('XOF is not possible after digest call'); - return this.writeInto(out); - } - xof(bytes) { - _assert_js_1.default.number(bytes); - return this.xofInto(new Uint8Array(bytes)); - } - digestInto(out) { - _assert_js_1.default.output(out, this); - if (this.finished) - throw new Error('digest() was already called'); - this.enableXOF = false; - this.writeInto(out); - this.destroy(); - return out; - } - digest() { - return this.digestInto(new Uint8Array(this.outputLen)); - } -} -/** - * BLAKE3 hash function. - * @param msg - message that would be hashed - * @param opts - dkLen, key, context - */ -exports.blake3 = (0, utils_js_1.wrapXOFConstructorWithOpts)((opts) => new BLAKE3(opts)); -//# sourceMappingURL=blake3.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/blake3.js.map b/node_modules/@noble/curves/node_modules/@noble/hashes/blake3.js.map deleted file mode 100644 index c7f09acc..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/blake3.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"blake3.js","sourceRoot":"","sources":["src/blake3.ts"],"names":[],"mappings":";;;AAAA,6CAAkC;AAClC,uCAA4B;AAC5B,6CAAsC;AACtC,6CAA4C;AAC5C,yCAA0F;AAE1F,cAAc;AACd,IAAK,KAQJ;AARD,WAAK,KAAK;IACR,+CAAoB,CAAA;IACpB,2CAAkB,CAAA;IAClB,qCAAe,CAAA;IACf,iCAAa,CAAA;IACb,8CAAmB,CAAA;IACnB,8DAA2B,CAAA;IAC3B,gEAA4B,CAAA;AAC9B,CAAC,EARI,KAAK,KAAL,KAAK,QAQT;AAED,MAAM,KAAK,GAAe,CAAC,GAAG,EAAE;IAC9B,MAAM,EAAE,GAAG,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC;IACnD,MAAM,OAAO,GAAG,CAAC,GAAa,EAAE,EAAE,CAChC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CA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E,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;QAClE,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;QACvB,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;QACpB,IAAI,CAAC,OAAO,EAAE,CAAC;QACf,OAAO,GAAG,CAAC;IACb,CAAC;IACD,MAAM;QACJ,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC;IACzD,CAAC;CACF;AAED;;;;GAIG;AACU,QAAA,MAAM,GAAG,IAAA,qCAA0B,EAAqB,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/crypto.d.ts b/node_modules/@noble/curves/node_modules/@noble/hashes/crypto.d.ts deleted file mode 100644 index cebbcd1c..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/crypto.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const crypto: any; diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/crypto.js b/node_modules/@noble/curves/node_modules/@noble/hashes/crypto.js deleted file mode 100644 index 8226391f..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/crypto.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.crypto = void 0; -exports.crypto = typeof globalThis === 'object' && 'crypto' in globalThis ? globalThis.crypto : undefined; -//# sourceMappingURL=crypto.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/crypto.js.map b/node_modules/@noble/curves/node_modules/@noble/hashes/crypto.js.map deleted file mode 100644 index 9f794e2a..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/crypto.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"crypto.js","sourceRoot":"","sources":["src/crypto.ts"],"names":[],"mappings":";;;AAGa,QAAA,MAAM,GACjB,OAAO,UAAU,KAAK,QAAQ,IAAI,QAAQ,IAAI,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/cryptoNode.d.ts b/node_modules/@noble/curves/node_modules/@noble/hashes/cryptoNode.d.ts deleted file mode 100644 index cebbcd1c..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/cryptoNode.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const crypto: any; diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/cryptoNode.js b/node_modules/@noble/curves/node_modules/@noble/hashes/cryptoNode.js deleted file mode 100644 index a88676d1..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/cryptoNode.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.crypto = void 0; -// We use WebCrypto aka globalThis.crypto, which exists in browsers and node.js 16+. -// See utils.ts for details. -// The file will throw on node.js 14 and earlier. -// @ts-ignore -const nc = require("node:crypto"); -exports.crypto = nc && typeof nc === 'object' && 'webcrypto' in nc ? nc.webcrypto : undefined; -//# sourceMappingURL=cryptoNode.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/cryptoNode.js.map b/node_modules/@noble/curves/node_modules/@noble/hashes/cryptoNode.js.map deleted file mode 100644 index 9287d276..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/cryptoNode.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"cryptoNode.js","sourceRoot":"","sources":["src/cryptoNode.ts"],"names":[],"mappings":";;;AAAA,oFAAoF;AACpF,4BAA4B;AAC5B,iDAAiD;AACjD,aAAa;AACb,kCAAkC;AACrB,QAAA,MAAM,GACjB,EAAE,IAAI,OAAO,EAAE,KAAK,QAAQ,IAAI,WAAW,IAAI,EAAE,CAAC,CAAC,CAAE,EAAE,CAAC,SAAiB,CAAC,CAAC,CAAC,SAAS,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/eskdf.d.ts b/node_modules/@noble/curves/node_modules/@noble/hashes/eskdf.d.ts deleted file mode 100644 index f0fc54d2..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/eskdf.d.ts +++ /dev/null @@ -1,46 +0,0 @@ -export declare function scrypt(password: string, salt: string): Uint8Array; -export declare function pbkdf2(password: string, salt: string): Uint8Array; -/** - * Derives main seed. Takes a lot of time. Prefer `eskdf` method instead. - */ -export declare function deriveMainSeed(username: string, password: string): Uint8Array; -type AccountID = number | string; -type OptsLength = { - keyLength: number; -}; -type OptsMod = { - modulus: bigint; -}; -type KeyOpts = undefined | OptsLength | OptsMod; -type ESKDF = Promise Uint8Array; - /** - * Deletes the main seed from eskdf instance - */ - expire: () => void; - /** - * Account fingerprint - */ - fingerprint: string; -}>>; -/** - * ESKDF - * @param username - username, email, or identifier, min: 8 characters, should have enough entropy - * @param password - password, min: 8 characters, should have enough entropy - * @example - * const kdf = await eskdf('example-university', 'beginning-new-example'); - * const key = kdf.deriveChildKey('aes', 0); - * console.log(kdf.fingerprint); - * kdf.expire(); - */ -export declare function eskdf(username: string, password: string): ESKDF; -export {}; diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/eskdf.js b/node_modules/@noble/curves/node_modules/@noble/hashes/eskdf.js deleted file mode 100644 index bc622b6a..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/eskdf.js +++ /dev/null @@ -1,162 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.eskdf = exports.deriveMainSeed = exports.pbkdf2 = exports.scrypt = void 0; -const _assert_js_1 = require("./_assert.js"); -const hkdf_js_1 = require("./hkdf.js"); -const sha256_js_1 = require("./sha256.js"); -const pbkdf2_js_1 = require("./pbkdf2.js"); -const scrypt_js_1 = require("./scrypt.js"); -const utils_js_1 = require("./utils.js"); -// A tiny KDF for various applications like AES key-gen. -// Uses HKDF in a non-standard way, so it's not "KDF-secure", only "PRF-secure". -// Which is good enough: assume sha2-256 retained preimage resistance. -const SCRYPT_FACTOR = 2 ** 19; -const PBKDF2_FACTOR = 2 ** 17; -// Scrypt KDF -function scrypt(password, salt) { - return (0, scrypt_js_1.scrypt)(password, salt, { N: SCRYPT_FACTOR, r: 8, p: 1, dkLen: 32 }); -} -exports.scrypt = scrypt; -// PBKDF2-HMAC-SHA256 -function pbkdf2(password, salt) { - return (0, pbkdf2_js_1.pbkdf2)(sha256_js_1.sha256, password, salt, { c: PBKDF2_FACTOR, dkLen: 32 }); -} -exports.pbkdf2 = pbkdf2; -// Combines two 32-byte byte arrays -function xor32(a, b) { - (0, _assert_js_1.bytes)(a, 32); - (0, _assert_js_1.bytes)(b, 32); - const arr = new Uint8Array(32); - for (let i = 0; i < 32; i++) { - arr[i] = a[i] ^ b[i]; - } - return arr; -} -function strHasLength(str, min, max) { - return typeof str === 'string' && str.length >= min && str.length <= max; -} -/** - * Derives main seed. Takes a lot of time. Prefer `eskdf` method instead. - */ -function deriveMainSeed(username, password) { - if (!strHasLength(username, 8, 255)) - throw new Error('invalid username'); - if (!strHasLength(password, 8, 255)) - throw new Error('invalid password'); - const scr = scrypt(password + '\u{1}', username + '\u{1}'); - const pbk = pbkdf2(password + '\u{2}', username + '\u{2}'); - const res = xor32(scr, pbk); - scr.fill(0); - pbk.fill(0); - return res; -} -exports.deriveMainSeed = deriveMainSeed; -/** - * Converts protocol & accountId pair to HKDF salt & info params. - */ -function getSaltInfo(protocol, accountId = 0) { - // Note that length here also repeats two lines below - // We do an additional length check here to reduce the scope of DoS attacks - if (!(strHasLength(protocol, 3, 15) && /^[a-z0-9]{3,15}$/.test(protocol))) { - throw new Error('invalid protocol'); - } - // Allow string account ids for some protocols - const allowsStr = /^password\d{0,3}|ssh|tor|file$/.test(protocol); - let salt; // Extract salt. Default is undefined. - if (typeof accountId === 'string') { - if (!allowsStr) - throw new Error('accountId must be a number'); - if (!strHasLength(accountId, 1, 255)) - throw new Error('accountId must be valid string'); - salt = (0, utils_js_1.toBytes)(accountId); - } - else if (Number.isSafeInteger(accountId)) { - if (accountId < 0 || accountId > 2 ** 32 - 1) - throw new Error('invalid accountId'); - // Convert to Big Endian Uint32 - salt = new Uint8Array(4); - (0, utils_js_1.createView)(salt).setUint32(0, accountId, false); - } - else { - throw new Error(`accountId must be a number${allowsStr ? ' or string' : ''}`); - } - const info = (0, utils_js_1.toBytes)(protocol); - return { salt, info }; -} -function countBytes(num) { - if (typeof num !== 'bigint' || num <= BigInt(128)) - throw new Error('invalid number'); - return Math.ceil(num.toString(2).length / 8); -} -/** - * Parses keyLength and modulus options to extract length of result key. - * If modulus is used, adds 64 bits to it as per FIPS 186 B.4.1 to combat modulo bias. - */ -function getKeyLength(options) { - if (!options || typeof options !== 'object') - return 32; - const hasLen = 'keyLength' in options; - const hasMod = 'modulus' in options; - if (hasLen && hasMod) - throw new Error('cannot combine keyLength and modulus options'); - if (!hasLen && !hasMod) - throw new Error('must have either keyLength or modulus option'); - // FIPS 186 B.4.1 requires at least 64 more bits - const l = hasMod ? countBytes(options.modulus) + 8 : options.keyLength; - if (!(typeof l === 'number' && l >= 16 && l <= 8192)) - throw new Error('invalid keyLength'); - return l; -} -/** - * Converts key to bigint and divides it by modulus. Big Endian. - * Implements FIPS 186 B.4.1, which removes 0 and modulo bias from output. - */ -function modReduceKey(key, modulus) { - const _1 = BigInt(1); - const num = BigInt('0x' + (0, utils_js_1.bytesToHex)(key)); // check for ui8a, then bytesToNumber() - const res = (num % (modulus - _1)) + _1; // Remove 0 from output - if (res < _1) - throw new Error('expected positive number'); // Guard against bad values - const len = key.length - 8; // FIPS requires 64 more bits = 8 bytes - const hex = res.toString(16).padStart(len * 2, '0'); // numberToHex() - const bytes = (0, utils_js_1.hexToBytes)(hex); - if (bytes.length !== len) - throw new Error('invalid length of result key'); - return bytes; -} -/** - * ESKDF - * @param username - username, email, or identifier, min: 8 characters, should have enough entropy - * @param password - password, min: 8 characters, should have enough entropy - * @example - * const kdf = await eskdf('example-university', 'beginning-new-example'); - * const key = kdf.deriveChildKey('aes', 0); - * console.log(kdf.fingerprint); - * kdf.expire(); - */ -async function eskdf(username, password) { - // We are using closure + object instead of class because - // we want to make `seed` non-accessible for any external function. - let seed = deriveMainSeed(username, password); - function deriveCK(protocol, accountId = 0, options) { - (0, _assert_js_1.bytes)(seed, 32); - const { salt, info } = getSaltInfo(protocol, accountId); // validate protocol & accountId - const keyLength = getKeyLength(options); // validate options - const key = (0, hkdf_js_1.hkdf)(sha256_js_1.sha256, seed, salt, info, keyLength); - // Modulus has already been validated - return options && 'modulus' in options ? modReduceKey(key, options.modulus) : key; - } - function expire() { - if (seed) - seed.fill(1); - seed = undefined; - } - // prettier-ignore - const fingerprint = Array.from(deriveCK('fingerprint', 0)) - .slice(0, 6) - .map((char) => char.toString(16).padStart(2, '0').toUpperCase()) - .join(':'); - return Object.freeze({ deriveChildKey: deriveCK, expire, fingerprint }); -} -exports.eskdf = eskdf; -//# sourceMappingURL=eskdf.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/eskdf.js.map b/node_modules/@noble/curves/node_modules/@noble/hashes/eskdf.js.map deleted file mode 100644 index 70c49e9f..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/eskdf.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"eskdf.js","sourceRoot":"","sources":["src/eskdf.ts"],"names":[],"mappings":";;;AAAA,6CAAoD;AACpD,uCAAiC;AACjC,2CAAqC;AACrC,2CAAgD;AAChD,2CAAgD;AAChD,yCAAyE;AAEzE,wDAAwD;AACxD,gFAAgF;AAChF,sEAAsE;AAEtE,MAAM,aAAa,GAAG,CAAC,IAAI,EAAE,CAAC;AAC9B,MAAM,aAAa,GAAG,CAAC,IAAI,EAAE,CAAC;AAE9B,aAAa;AACb,SAAgB,MAAM,CAAC,QAAg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AQ,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC,CAAC;AAC1E,CAAC;AAvBD,sBAuBC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/_assert.js b/node_modules/@noble/curves/node_modules/@noble/hashes/esm/_assert.js deleted file mode 100644 index 73a5c372..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/_assert.js +++ /dev/null @@ -1,43 +0,0 @@ -export function number(n) { - if (!Number.isSafeInteger(n) || n < 0) - throw new Error(`Wrong positive integer: ${n}`); -} -export function bool(b) { - if (typeof b !== 'boolean') - throw new Error(`Expected boolean, not ${b}`); -} -export function bytes(b, ...lengths) { - if (!(b instanceof Uint8Array)) - throw new Error('Expected Uint8Array'); - if (lengths.length > 0 && !lengths.includes(b.length)) - throw new Error(`Expected Uint8Array of length ${lengths}, not of length=${b.length}`); -} -export function hash(hash) { - if (typeof hash !== 'function' || typeof hash.create !== 'function') - throw new Error('Hash should be wrapped by utils.wrapConstructor'); - number(hash.outputLen); - number(hash.blockLen); -} -export function exists(instance, checkFinished = true) { - if (instance.destroyed) - throw new Error('Hash instance has been destroyed'); - if (checkFinished && instance.finished) - throw new Error('Hash#digest() has already been called'); -} -export function output(out, instance) { - bytes(out); - const min = instance.outputLen; - if (out.length < min) { - throw new Error(`digestInto() expects output buffer of length at least ${min}`); - } -} -const assert = { - number, - bool, - bytes, - hash, - exists, - output, -}; -export default assert; -//# sourceMappingURL=_assert.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/_assert.js.map b/node_modules/@noble/curves/node_modules/@noble/hashes/esm/_assert.js.map deleted file mode 100644 index b36620ab..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/_assert.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"_assert.js","sourceRoot":"","sources":["../src/_assert.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,MAAM,CAAC,CAAS;IAC9B,IAAI,CAAC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AC,GAAG,CAAC,CAAC;IACX,MAAM,GAAG,GAAG,QAAQ,CAAC,SAAS,CAAC;IAC/B,IAAI,GAAG,CAAC,MAAM,GAAG,GAAG,EAAE;QACpB,MAAM,IAAI,KAAK,CAAC,yDAAyD,GAAG,EAAE,CAAC,CAAC;KACjF;AACH,CAAC;AAED,MAAM,MAAM,GAAG;IACb,MAAM;IACN,IAAI;IACJ,KAAK;IACL,IAAI;IACJ,MAAM;IACN,MAAM;CACP,CAAC;AAEF,eAAe,MAAM,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/_blake2.js b/node_modules/@noble/curves/node_modules/@noble/hashes/esm/_blake2.js deleted file mode 100644 index 42b621f2..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/_blake2.js +++ /dev/null @@ -1,107 +0,0 @@ -import assert from './_assert.js'; -import { Hash, toBytes, u32 } from './utils.js'; -// For BLAKE2b, the two extra permutations for rounds 10 and 11 are SIGMA[10..11] = SIGMA[0..1]. -// prettier-ignore -export const SIGMA = new Uint8Array([ - 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, - 14, 10, 4, 8, 9, 15, 13, 6, 1, 12, 0, 2, 11, 7, 5, 3, - 11, 8, 12, 0, 5, 2, 15, 13, 10, 14, 3, 6, 7, 1, 9, 4, - 7, 9, 3, 1, 13, 12, 11, 14, 2, 6, 5, 10, 4, 0, 15, 8, - 9, 0, 5, 7, 2, 4, 10, 15, 14, 1, 11, 12, 6, 8, 3, 13, - 2, 12, 6, 10, 0, 11, 8, 3, 4, 13, 7, 5, 15, 14, 1, 9, - 12, 5, 1, 15, 14, 13, 4, 10, 0, 7, 6, 3, 9, 2, 8, 11, - 13, 11, 7, 14, 12, 1, 3, 9, 5, 0, 15, 4, 8, 6, 2, 10, - 6, 15, 14, 9, 11, 3, 0, 8, 12, 2, 13, 7, 1, 4, 10, 5, - 10, 2, 8, 4, 7, 6, 1, 5, 15, 11, 9, 14, 3, 12, 13, 0, - 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, - 14, 10, 4, 8, 9, 15, 13, 6, 1, 12, 0, 2, 11, 7, 5, 3, -]); -export class BLAKE2 extends Hash { - constructor(blockLen, outputLen, opts = {}, keyLen, saltLen, persLen) { - super(); - this.blockLen = blockLen; - this.outputLen = outputLen; - this.length = 0; - this.pos = 0; - this.finished = false; - this.destroyed = false; - assert.number(blockLen); - assert.number(outputLen); - assert.number(keyLen); - if (outputLen < 0 || outputLen > keyLen) - throw new Error('outputLen bigger than keyLen'); - if (opts.key !== undefined && (opts.key.length < 1 || opts.key.length > keyLen)) - throw new Error(`key must be up 1..${keyLen} byte long or undefined`); - if (opts.salt !== undefined && opts.salt.length !== saltLen) - throw new Error(`salt must be ${saltLen} byte long or undefined`); - if (opts.personalization !== undefined && opts.personalization.length !== persLen) - throw new Error(`personalization must be ${persLen} byte long or undefined`); - this.buffer32 = u32((this.buffer = new Uint8Array(blockLen))); - } - update(data) { - assert.exists(this); - // Main difference with other hashes: there is flag for last block, - // so we cannot process current block before we know that there - // is the next one. This significantly complicates logic and reduces ability - // to do zero-copy processing - const { blockLen, buffer, buffer32 } = this; - data = toBytes(data); - const len = data.length; - const offset = data.byteOffset; - const buf = data.buffer; - for (let pos = 0; pos < len;) { - // If buffer is full and we still have input (don't process last block, same as blake2s) - if (this.pos === blockLen) { - this.compress(buffer32, 0, false); - this.pos = 0; - } - const take = Math.min(blockLen - this.pos, len - pos); - const dataOffset = offset + pos; - // full block && aligned to 4 bytes && not last in input - if (take === blockLen && !(dataOffset % 4) && pos + take < len) { - const data32 = new Uint32Array(buf, dataOffset, Math.floor((len - pos) / 4)); - for (let pos32 = 0; pos + blockLen < len; pos32 += buffer32.length, pos += blockLen) { - this.length += blockLen; - this.compress(data32, pos32, false); - } - continue; - } - buffer.set(data.subarray(pos, pos + take), this.pos); - this.pos += take; - this.length += take; - pos += take; - } - return this; - } - digestInto(out) { - assert.exists(this); - assert.output(out, this); - const { pos, buffer32 } = this; - this.finished = true; - // Padding - this.buffer.subarray(pos).fill(0); - this.compress(buffer32, 0, true); - const out32 = u32(out); - this.get().forEach((v, i) => (out32[i] = v)); - } - digest() { - const { buffer, outputLen } = this; - this.digestInto(buffer); - const res = buffer.slice(0, outputLen); - this.destroy(); - return res; - } - _cloneInto(to) { - const { buffer, length, finished, destroyed, outputLen, pos } = this; - to || (to = new this.constructor({ dkLen: outputLen })); - to.set(...this.get()); - to.length = length; - to.finished = finished; - to.destroyed = destroyed; - to.outputLen = outputLen; - to.buffer.set(buffer); - to.pos = pos; - return to; - } -} -//# sourceMappingURL=_blake2.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/_blake2.js.map b/node_modules/@noble/curves/node_modules/@noble/hashes/esm/_blake2.js.map deleted file mode 100644 index 5fafed2e..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/_blake2.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"_blake2.js","sourceRoot":"","sources":["../src/_blake2.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,IAAI,EAAS,OAAO,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACvD,gGAAgG;AAChG,kBAAkB;AAClB,MAAM,CAAC,MAAM,KAAK,GAAG,IAAI,UAAU,CAAC;IAClC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE;IACpD,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAA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,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACvB,EAAE,CAAC,SAAS,GAAG,SAAS,CAAC;QACzB,EAAE,CAAC,SAAS,GAAG,SAAS,CAAC;QACzB,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QACtB,EAAE,CAAC,GAAG,GAAG,GAAG,CAAC;QACb,OAAO,EAAE,CAAC;IACZ,CAAC;CACF"} \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/_sha2.js b/node_modules/@noble/curves/node_modules/@noble/hashes/esm/_sha2.js deleted file mode 100644 index 4d1bf275..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/_sha2.js +++ /dev/null @@ -1,114 +0,0 @@ -import assert from './_assert.js'; -import { Hash, createView, toBytes } from './utils.js'; -// Polyfill for Safari 14 -function setBigUint64(view, byteOffset, value, isLE) { - if (typeof view.setBigUint64 === 'function') - return view.setBigUint64(byteOffset, value, isLE); - const _32n = BigInt(32); - const _u32_max = BigInt(0xffffffff); - const wh = Number((value >> _32n) & _u32_max); - const wl = Number(value & _u32_max); - const h = isLE ? 4 : 0; - const l = isLE ? 0 : 4; - view.setUint32(byteOffset + h, wh, isLE); - view.setUint32(byteOffset + l, wl, isLE); -} -// Base SHA2 class (RFC 6234) -export class SHA2 extends Hash { - constructor(blockLen, outputLen, padOffset, isLE) { - super(); - this.blockLen = blockLen; - this.outputLen = outputLen; - this.padOffset = padOffset; - this.isLE = isLE; - this.finished = false; - this.length = 0; - this.pos = 0; - this.destroyed = false; - this.buffer = new Uint8Array(blockLen); - this.view = createView(this.buffer); - } - update(data) { - assert.exists(this); - const { view, buffer, blockLen } = this; - data = toBytes(data); - const len = data.length; - for (let pos = 0; pos < len;) { - const take = Math.min(blockLen - this.pos, len - pos); - // Fast path: we have at least one block in input, cast it to view and process - if (take === blockLen) { - const dataView = createView(data); - for (; blockLen <= len - pos; pos += blockLen) - this.process(dataView, pos); - continue; - } - buffer.set(data.subarray(pos, pos + take), this.pos); - this.pos += take; - pos += take; - if (this.pos === blockLen) { - this.process(view, 0); - this.pos = 0; - } - } - this.length += data.length; - this.roundClean(); - return this; - } - digestInto(out) { - assert.exists(this); - assert.output(out, this); - this.finished = true; - // Padding - // We can avoid allocation of buffer for padding completely if it - // was previously not allocated here. But it won't change performance. - const { buffer, view, blockLen, isLE } = this; - let { pos } = this; - // append the bit '1' to the message - buffer[pos++] = 0b10000000; - this.buffer.subarray(pos).fill(0); - // we have less than padOffset left in buffer, so we cannot put length in current block, need process it and pad again - if (this.padOffset > blockLen - pos) { - this.process(view, 0); - pos = 0; - } - // Pad until full block byte with zeros - for (let i = pos; i < blockLen; i++) - buffer[i] = 0; - // Note: sha512 requires length to be 128bit integer, but length in JS will overflow before that - // You need to write around 2 exabytes (u64_max / 8 / (1024**6)) for this to happen. - // So we just write lowest 64 bits of that value. - setBigUint64(view, blockLen - 8, BigInt(this.length * 8), isLE); - this.process(view, 0); - const oview = createView(out); - const len = this.outputLen; - // NOTE: we do division by 4 later, which should be fused in single op with modulo by JIT - if (len % 4) - throw new Error('_sha2: outputLen should be aligned to 32bit'); - const outLen = len / 4; - const state = this.get(); - if (outLen > state.length) - throw new Error('_sha2: outputLen bigger than state'); - for (let i = 0; i < outLen; i++) - oview.setUint32(4 * i, state[i], isLE); - } - digest() { - const { buffer, outputLen } = this; - this.digestInto(buffer); - const res = buffer.slice(0, outputLen); - this.destroy(); - return res; - } - _cloneInto(to) { - to || (to = new this.constructor()); - to.set(...this.get()); - const { blockLen, buffer, length, finished, destroyed, pos } = this; - to.length = length; - to.pos = pos; - to.finished = finished; - to.destroyed = destroyed; - if (length % blockLen) - to.buffer.set(buffer); - return to; - } -} -//# sourceMappingURL=_sha2.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/_sha2.js.map b/node_modules/@noble/curves/node_modules/@noble/hashes/esm/_sha2.js.map deleted file mode 100644 index c9a4b7e5..00000000 --- a/node_mod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AG,EAAE,GAAG,IAAI,CAAC;QACpE,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC;QACnB,EAAE,CAAC,GAAG,GAAG,GAAG,CAAC;QACb,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACvB,EAAE,CAAC,SAAS,GAAG,SAAS,CAAC;QACzB,IAAI,MAAM,GAAG,QAAQ;YAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QAC7C,OAAO,EAAE,CAAC;IACZ,CAAC;CACF"} \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/_u64.js b/node_modules/@noble/curves/node_modules/@noble/hashes/esm/_u64.js deleted file mode 100644 index 40c88acd..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/_u64.js +++ /dev/null @@ -1,61 +0,0 @@ -const U32_MASK64 = BigInt(2 ** 32 - 1); -const _32n = BigInt(32); -// We are not using BigUint64Array, because they are extremely slow as per 2022 -export function fromBig(n, le = false) { - if (le) - return { h: Number(n & U32_MASK64), l: Number((n >> _32n) & U32_MASK64) }; - return { h: Number((n >> _32n) & U32_MASK64) | 0, l: Number(n & U32_MASK64) | 0 }; -} -export function split(lst, le = false) { - let Ah = new Uint32Array(lst.length); - let Al = new Uint32Array(lst.length); - for (let i = 0; i < lst.length; i++) { - const { h, l } = fromBig(lst[i], le); - [Ah[i], Al[i]] = [h, l]; - } - return [Ah, Al]; -} -export const toBig = (h, l) => (BigInt(h >>> 0) << _32n) | BigInt(l >>> 0); -// for Shift in [0, 32) -const shrSH = (h, l, s) => h >>> s; -const shrSL = (h, l, s) => (h << (32 - s)) | (l >>> s); -// Right rotate for Shift in [1, 32) -const rotrSH = (h, l, s) => (h >>> s) | (l << (32 - s)); -const rotrSL = (h, l, s) => (h << (32 - s)) | (l >>> s); -// Right rotate for Shift in (32, 64), NOTE: 32 is special case. -const rotrBH = (h, l, s) => (h << (64 - s)) | (l >>> (s - 32)); -const rotrBL = (h, l, s) => (h >>> (s - 32)) | (l << (64 - s)); -// Right rotate for shift===32 (just swaps l&h) -const rotr32H = (h, l) => l; -const rotr32L = (h, l) => h; -// Left rotate for Shift in [1, 32) -const rotlSH = (h, l, s) => (h << s) | (l >>> (32 - s)); -const rotlSL = (h, l, s) => (l << s) | (h >>> (32 - s)); -// Left rotate for Shift in (32, 64), NOTE: 32 is special case. -const rotlBH = (h, l, s) => (l << (s - 32)) | (h >>> (64 - s)); -const rotlBL = (h, l, s) => (h << (s - 32)) | (l >>> (64 - s)); -// JS uses 32-bit signed integers for bitwise operations which means we cannot -// simple take carry out of low bit sum by shift, we need to use division. -// Removing "export" has 5% perf penalty -_- -export function add(Ah, Al, Bh, Bl) { - const l = (Al >>> 0) + (Bl >>> 0); - return { h: (Ah + Bh + ((l / 2 ** 32) | 0)) | 0, l: l | 0 }; -} -// Addition with more than 2 elements -const add3L = (Al, Bl, Cl) => (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0); -const add3H = (low, Ah, Bh, Ch) => (Ah + Bh + Ch + ((low / 2 ** 32) | 0)) | 0; -const add4L = (Al, Bl, Cl, Dl) => (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0) + (Dl >>> 0); -const add4H = (low, Ah, Bh, Ch, Dh) => (Ah + Bh + Ch + Dh + ((low / 2 ** 32) | 0)) | 0; -const add5L = (Al, Bl, Cl, Dl, El) => (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0) + (Dl >>> 0) + (El >>> 0); -const add5H = (low, Ah, Bh, Ch, Dh, Eh) => (Ah + Bh + Ch + Dh + Eh + ((low / 2 ** 32) | 0)) | 0; -// prettier-ignore -const u64 = { - fromBig, split, toBig, - shrSH, shrSL, - rotrSH, rotrSL, rotrBH, rotrBL, - rotr32H, rotr32L, - rotlSH, rotlSL, rotlBH, rotlBL, - add, add3L, add3H, add4L, add4H, add5H, add5L, -}; -export default u64; -//# sourceMappingURL=_u64.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/_u64.js.map b/node_modules/@noble/curves/node_modules/@noble/hashes/esm/_u64.js.map deleted file mode 100644 index 8baa59c3..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/_u64.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"_u64.js","sourceRoot":"","sources":["../src/_u64.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,GAAG,MAAM,CAAC,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC;AACvC,MAAM,IAAI,GAAG,MAAM,CAAC,EAAE,CAAC,CAAC;AAExB,+EAA+E;AAC/E,MAAM,UAAU,OAAO,CAAC,CAAS,EAAE,EAAE,GAAG,KAAK;IAC3C,IAAI,EAAE;QAAE,OAAO,EAAE,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,UAAU,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,GAAG,UAAU,CAAC,EAAE,CAAC;IAClF,OAAO,EAAE,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,GAAG,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;AACpF,CAAC;AAED,MAAM,UAAU,KAAK,CAAC,GAAa,EAAE,EAAE,GAAG,KAAK;IAC7C,IAAI,EAAE,GAAG,IAAI,WAAW,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACrC,IAAI,EAAE,GAAG,IAAI,WAAW,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACrC,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE;QACnC,MAAM,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QACrC,CAAC,EAA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AC;AAClD,MAAM,KAAK,GAAG,CAAC,EAAU,EAAE,EAAU,EAAE,EAAU,EAAE,EAAU,EAAE,EAAU,EAAE,EAAE,CAC3E,CAAC,EAAE,KAAK,CAAC,CAAC,GAAG,CAAC,EAAE,KAAK,CAAC,CAAC,GAAG,CAAC,EAAE,KAAK,CAAC,CAAC,GAAG,CAAC,EAAE,KAAK,CAAC,CAAC,GAAG,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC;AACjE,MAAM,KAAK,GAAG,CAAC,GAAW,EAAE,EAAU,EAAE,EAAU,EAAE,EAAU,EAAE,EAAU,EAAE,EAAU,EAAE,EAAE,CACxF,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;AAEvD,kBAAkB;AAClB,MAAM,GAAG,GAAG;IACV,OAAO,EAAE,KAAK,EAAE,KAAK;IACrB,KAAK,EAAE,KAAK;IACZ,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;IAC9B,OAAO,EAAE,OAAO;IAChB,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;IAC9B,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK;CAC9C,CAAC;AACF,eAAe,GAAG,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/argon2.js b/node_modules/@noble/curves/node_modules/@noble/hashes/esm/argon2.js deleted file mode 100644 index 73f83859..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/argon2.js +++ /dev/null @@ -1,304 +0,0 @@ -import assert from './_assert.js'; -import { toBytes, u8, u32 } from './utils.js'; -import { blake2b } from './blake2b.js'; -import u64 from './_u64.js'; -// Experimental Argon2 RFC 9106 implementation. It may be removed at any time. -var Types; -(function (Types) { - Types[Types["Argond2d"] = 0] = "Argond2d"; - Types[Types["Argon2i"] = 1] = "Argon2i"; - Types[Types["Argon2id"] = 2] = "Argon2id"; -})(Types || (Types = {})); -const ARGON2_SYNC_POINTS = 4; -const toBytesOptional = (buf) => (buf !== undefined ? toBytes(buf) : new Uint8Array([])); -function mul(a, b) { - const aL = a & 0xffff; - const aH = a >>> 16; - const bL = b & 0xffff; - const bH = b >>> 16; - const ll = Math.imul(aL, bL); - const hl = Math.imul(aH, bL); - const lh = Math.imul(aL, bH); - const hh = Math.imul(aH, bH); - const BUF = ((ll >>> 16) + (hl & 0xffff) + lh) | 0; - const h = ((hl >>> 16) + (BUF >>> 16) + hh) | 0; - return { h, l: (BUF << 16) | (ll & 0xffff) }; -} -function relPos(areaSize, relativePos) { - // areaSize - 1 - ((areaSize * ((relativePos ** 2) >>> 32)) >>> 32) - return areaSize - 1 - mul(areaSize, mul(relativePos, relativePos).h).h; -} -function mul2(a, b) { - // 2 * a * b (via shifts) - const { h, l } = mul(a, b); - return { h: ((h << 1) | (l >>> 31)) & 4294967295, l: (l << 1) & 4294967295 }; -} -function blamka(Ah, Al, Bh, Bl) { - const { h: Ch, l: Cl } = mul2(Al, Bl); - // A + B + (2 * A * B) - const Rll = u64.add3L(Al, Bl, Cl); - return { h: u64.add3H(Rll, Ah, Bh, Ch), l: Rll | 0 }; -} -// Temporary block buffer -const BUF = new Uint32Array(256); -function G(a, b, c, d) { - let Al = BUF[2 * a], Ah = BUF[2 * a + 1]; // prettier-ignore - let Bl = BUF[2 * b], Bh = BUF[2 * b + 1]; // prettier-ignore - let Cl = BUF[2 * c], Ch = BUF[2 * c + 1]; // prettier-ignore - let Dl = BUF[2 * d], Dh = BUF[2 * d + 1]; // prettier-ignore - ({ h: Ah, l: Al } = blamka(Ah, Al, Bh, Bl)); - ({ Dh, Dl } = { Dh: Dh ^ Ah, Dl: Dl ^ Al }); - ({ Dh, Dl } = { Dh: u64.rotr32H(Dh, Dl), Dl: u64.rotr32L(Dh, Dl) }); - ({ h: Ch, l: Cl } = blamka(Ch, Cl, Dh, Dl)); - ({ Bh, Bl } = { Bh: Bh ^ Ch, Bl: Bl ^ Cl }); - ({ Bh, Bl } = { Bh: u64.rotrSH(Bh, Bl, 24), Bl: u64.rotrSL(Bh, Bl, 24) }); - ({ h: Ah, l: Al } = blamka(Ah, Al, Bh, Bl)); - ({ Dh, Dl } = { Dh: Dh ^ Ah, Dl: Dl ^ Al }); - ({ Dh, Dl } = { Dh: u64.rotrSH(Dh, Dl, 16), Dl: u64.rotrSL(Dh, Dl, 16) }); - ({ h: Ch, l: Cl } = blamka(Ch, Cl, Dh, Dl)); - ({ Bh, Bl } = { Bh: Bh ^ Ch, Bl: Bl ^ Cl }); - ({ Bh, Bl } = { Bh: u64.rotrBH(Bh, Bl, 63), Bl: u64.rotrBL(Bh, Bl, 63) }); - (BUF[2 * a] = Al), (BUF[2 * a + 1] = Ah); - (BUF[2 * b] = Bl), (BUF[2 * b + 1] = Bh); - (BUF[2 * c] = Cl), (BUF[2 * c + 1] = Ch); - (BUF[2 * d] = Dl), (BUF[2 * d + 1] = Dh); -} -// prettier-ignore -function P(v00, v01, v02, v03, v04, v05, v06, v07, v08, v09, v10, v11, v12, v13, v14, v15) { - G(v00, v04, v08, v12); - G(v01, v05, v09, v13); - G(v02, v06, v10, v14); - G(v03, v07, v11, v15); - G(v00, v05, v10, v15); - G(v01, v06, v11, v12); - G(v02, v07, v08, v13); - G(v03, v04, v09, v14); -} -function block(x, xPos, yPos, outPos, needXor) { - for (let i = 0; i < 256; i++) - BUF[i] = x[xPos + i] ^ x[yPos + i]; - // columns - for (let i = 0; i < 128; i += 16) { - // prettier-ignore - P(i, i + 1, i + 2, i + 3, i + 4, i + 5, i + 6, i + 7, i + 8, i + 9, i + 10, i + 11, i + 12, i + 13, i + 14, i + 15); - } - // rows - for (let i = 0; i < 16; i += 2) { - // prettier-ignore - P(i, i + 1, i + 16, i + 17, i + 32, i + 33, i + 48, i + 49, i + 64, i + 65, i + 80, i + 81, i + 96, i + 97, i + 112, i + 113); - } - if (needXor) - for (let i = 0; i < 256; i++) - x[outPos + i] ^= BUF[i] ^ x[xPos + i] ^ x[yPos + i]; - else - for (let i = 0; i < 256; i++) - x[outPos + i] = BUF[i] ^ x[xPos + i] ^ x[yPos + i]; -} -// Variable-Length Hash Function H' -function Hp(A, dkLen) { - const A8 = u8(A); - const T = new Uint32Array(1); - const T8 = u8(T); - T[0] = dkLen; - // Fast path - if (dkLen <= 64) - return blake2b.create({ dkLen }).update(T8).update(A8).digest(); - const out = new Uint8Array(dkLen); - let V = blake2b.create({}).update(T8).update(A8).digest(); - let pos = 0; - // First block - out.set(V.subarray(0, 32)); - pos += 32; - // Rest blocks - for (; dkLen - pos > 64; pos += 32) - out.set((V = blake2b(V)).subarray(0, 32), pos); - // Last block - out.set(blake2b(V, { dkLen: dkLen - pos }), pos); - return u32(out); -} -function indexAlpha(r, s, laneLen, segmentLen, index, randL, sameLane = false) { - let area; - if (0 == r) { - if (0 == s) - area = index - 1; - else if (sameLane) - area = s * segmentLen + index - 1; - else - area = s * segmentLen + (index == 0 ? -1 : 0); - } - else if (sameLane) - area = laneLen - segmentLen + index - 1; - else - area = laneLen - segmentLen + (index == 0 ? -1 : 0); - const startPos = r !== 0 && s !== ARGON2_SYNC_POINTS - 1 ? (s + 1) * segmentLen : 0; - const rel = relPos(area, randL); - // NOTE: check about overflows here - // absPos = (startPos + relPos) % laneLength; - return (startPos + rel) % laneLen; -} -function argon2Init(type, password, salt, opts) { - password = toBytes(password); - salt = toBytes(salt); - let { p, dkLen, m, t, version, key, personalization, maxmem, onProgress } = { - ...opts, - version: opts.version || 0x13, - dkLen: opts.dkLen || 32, - maxmem: 2 ** 32, - }; - // Validation - assert.number(p); - assert.number(dkLen); - assert.number(m); - assert.number(t); - assert.number(version); - if (dkLen < 4 || dkLen >= 2 ** 32) - throw new Error('Argon2: dkLen should be at least 4 bytes'); - if (dkLen < 1 || p >= 2 ** 32) - throw new Error('Argon2: p (paralllelism) should be at least 1'); - if (dkLen < 1 || p >= 2 ** 32) - throw new Error('Argon2: t (iterations) should be at least 1'); - if (m < 8 * p) - throw new Error(`Argon2: memory should be at least 8*p bytes`); - if (version !== 16 && version !== 19) - throw new Error(`Argon2: unknown version=${version}`); - password = toBytes(password); - if (password.length < 0 || password.length >= 2 ** 32) - throw new Error('Argon2: password should be less than 4 GB'); - salt = toBytes(salt); - if (salt.length < 8) - throw new Error('Argon2: salt should be at least 8 bytes'); - key = toBytesOptional(key); - personalization = toBytesOptional(personalization); - if (onProgress !== undefined && typeof onProgress !== 'function') - throw new Error('progressCb should be function'); - // Params - const lanes = p; - // m' = 4 * p * floor (m / 4p) - const mP = 4 * p * Math.floor(m / (ARGON2_SYNC_POINTS * p)); - //q = m' / p columns - const laneLen = Math.floor(mP / p); - const segmentLen = Math.floor(laneLen / ARGON2_SYNC_POINTS); - // H0 - const h = blake2b.create({}); - const BUF = new Uint32Array(1); - const BUF8 = u8(BUF); - for (const i of [p, dkLen, m, t, version, type]) { - if (i < 0 || i >= 2 ** 32) - throw new Error(`Argon2: wrong parameter=${i}, expected uint32`); - BUF[0] = i; - h.update(BUF8); - } - for (let i of [password, salt, key, personalization]) { - BUF[0] = i.length; - h.update(BUF8).update(i); - } - const H0 = new Uint32Array(18); - const H0_8 = u8(H0); - h.digestInto(H0_8); - // 256 u32 = 1024 (BLOCK_SIZE) - const memUsed = mP * 256; - if (memUsed < 0 || memUsed >= 2 ** 32 || memUsed > maxmem) { - throw new Error(`Argon2: wrong params (memUsed=${memUsed} maxmem=${maxmem}), should be less than 2**32`); - } - const B = new Uint32Array(memUsed); - // Fill first blocks - for (let l = 0; l < p; l++) { - const i = 256 * laneLen * l; - // B[i][0] = H'^(1024)(H_0 || LE32(0) || LE32(i)) - H0[17] = l; - H0[16] = 0; - B.set(Hp(H0, 1024), i); - // B[i][1] = H'^(1024)(H_0 || LE32(1) || LE32(i)) - H0[16] = 1; - B.set(Hp(H0, 1024), i + 256); - } - let perBlock = () => { }; - if (onProgress) { - const totalBlock = t * ARGON2_SYNC_POINTS * p * segmentLen; - // Invoke callback if progress changes from 10.01 to 10.02 - // Allows to draw smooth progress bar on up to 8K screen - const callbackPer = Math.max(Math.floor(totalBlock / 10000), 1); - let blockCnt = 0; - perBlock = () => { - blockCnt++; - if (onProgress && (!(blockCnt % callbackPer) || blockCnt === totalBlock)) - onProgress(blockCnt / totalBlock); - }; - } - return { type, mP, p, t, version, B, laneLen, lanes, segmentLen, dkLen, perBlock }; -} -function argon2Output(B, p, laneLen, dkLen) { - const B_final = new Uint32Array(256); - for (let l = 0; l < p; l++) - for (let j = 0; j < 256; j++) - B_final[j] ^= B[256 * (laneLen * l + laneLen - 1) + j]; - return u8(Hp(B_final, dkLen)); -} -function processBlock(B, address, l, r, s, index, laneLen, segmentLen, lanes, offset, prev, dataIndependent, needXor) { - if (offset % laneLen) - prev = offset - 1; - let randL, randH; - if (dataIndependent) { - if (index % 128 === 0) { - address[256 + 12]++; - block(address, 256, 2 * 256, 0, false); - block(address, 0, 2 * 256, 0, false); - } - randL = address[2 * (index % 128)]; - randH = address[2 * (index % 128) + 1]; - } - else { - const T = 256 * prev; - randL = B[T]; - randH = B[T + 1]; - } - // address block - const refLane = r === 0 && s === 0 ? l : randH % lanes; - const refPos = indexAlpha(r, s, laneLen, segmentLen, index, randL, refLane == l); - const refBlock = laneLen * refLane + refPos; - // B[i][j] = G(B[i][j-1], B[l][z]) - block(B, 256 * prev, 256 * refBlock, offset * 256, needXor); -} -function argon2(type, password, salt, opts) { - const { mP, p, t, version, B, laneLen, lanes, segmentLen, dkLen, perBlock } = argon2Init(type, password, salt, opts); - // Pre-loop setup - // [address, input, zero_block] format so we can pass single U32 to block function - const address = new Uint32Array(3 * 256); - address[256 + 6] = mP; - address[256 + 8] = t; - address[256 + 10] = type; - for (let r = 0; r < t; r++) { - const needXor = r !== 0 && version === 0x13; - address[256 + 0] = r; - for (let s = 0; s < ARGON2_SYNC_POINTS; s++) { - address[256 + 4] = s; - const dataIndependent = type == Types.Argon2i || (type == Types.Argon2id && r === 0 && s < 2); - for (let l = 0; l < p; l++) { - address[256 + 2] = l; - address[256 + 12] = 0; - let startPos = 0; - if (r === 0 && s === 0) { - startPos = 2; - if (dataIndependent) { - address[256 + 12]++; - block(address, 256, 2 * 256, 0, false); - block(address, 0, 2 * 256, 0, false); - } - } - // current block postion - let offset = l * laneLen + s * segmentLen + startPos; - // previous block position - let prev = offset % laneLen ? offset - 1 : offset + laneLen - 1; - for (let index = startPos; index < segmentLen; index++, offset++, prev++) { - perBlock(); - processBlock(B, address, l, r, s, index, laneLen, segmentLen, lanes, offset, prev, dataIndependent, needXor); - } - } - } - } - return argon2Output(B, p, laneLen, dkLen); -} -export const argon2d = (password, salt, opts) => argon2(Types.Argond2d, password, salt, opts); -export const argon2i = (password, salt, opts) => argon2(Types.Argon2i, password, salt, opts); -export const argon2id = (password, salt, opts) => argon2(Types.Argon2id, password, salt, opts); -//# sourceMappingURL=argon2.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/argon2.js.map b/node_modules/@noble/curves/node_modules/@noble/hashes/esm/argon2.js.map deleted file mode 100644 index 2a46f5ac..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/argon2.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"argon2.js","sourceRoot":"","sources":["../src/argon2.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,EAAS,OAAO,EAAE,EAAE,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AACrD,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAC;AACvC,OAAO,GAAG,MAAM,WAAW,CAAC;AAE5B,8EAA8E;AAC9E,IAAK,KAIJ;AAJD,WAAK,KAAK;IACR,yCAAY,CAAA;IACZ,uCAAW,CAAA;IACX,yCAAY,CAAA;AACd,CAAC,EAJI,KAAK,KAAL,KAAK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AAE,IAAe,EAAE,EAAE,CACvE,MAAM,CAAC,KAAK,CAAC,OAAO,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AAC9C,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,QAAe,EAAE,IAAW,EAAE,IAAe,EAAE,EAAE,CACxE,MAAM,CAAC,KAAK,CAAC,QAAQ,EAAE,QAAQ,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/blake2b.js b/node_modules/@noble/curves/node_modules/@noble/hashes/esm/blake2b.js deleted file mode 100644 index a52871c1..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/blake2b.js +++ /dev/null @@ -1,189 +0,0 @@ -import { BLAKE2, SIGMA } from './_blake2.js'; -import u64 from './_u64.js'; -import { toBytes, u32, wrapConstructorWithOpts } from './utils.js'; -// Same as SHA-512 but LE -// prettier-ignore -const IV = new Uint32Array([ - 0xf3bcc908, 0x6a09e667, 0x84caa73b, 0xbb67ae85, 0xfe94f82b, 0x3c6ef372, 0x5f1d36f1, 0xa54ff53a, - 0xade682d1, 0x510e527f, 0x2b3e6c1f, 0x9b05688c, 0xfb41bd6b, 0x1f83d9ab, 0x137e2179, 0x5be0cd19 -]); -// Temporary buffer -const BUF = new Uint32Array(32); -// Mixing function G splitted in two halfs -function G1(a, b, c, d, msg, x) { - // NOTE: V is LE here - const Xl = msg[x], Xh = msg[x + 1]; // prettier-ignore - let Al = BUF[2 * a], Ah = BUF[2 * a + 1]; // prettier-ignore - let Bl = BUF[2 * b], Bh = BUF[2 * b + 1]; // prettier-ignore - let Cl = BUF[2 * c], Ch = BUF[2 * c + 1]; // prettier-ignore - let Dl = BUF[2 * d], Dh = BUF[2 * d + 1]; // prettier-ignore - // v[a] = (v[a] + v[b] + x) | 0; - let ll = u64.add3L(Al, Bl, Xl); - Ah = u64.add3H(ll, Ah, Bh, Xh); - Al = ll | 0; - // v[d] = rotr(v[d] ^ v[a], 32) - ({ Dh, Dl } = { Dh: Dh ^ Ah, Dl: Dl ^ Al }); - ({ Dh, Dl } = { Dh: u64.rotr32H(Dh, Dl), Dl: u64.rotr32L(Dh, Dl) }); - // v[c] = (v[c] + v[d]) | 0; - ({ h: Ch, l: Cl } = u64.add(Ch, Cl, Dh, Dl)); - // v[b] = rotr(v[b] ^ v[c], 24) - ({ Bh, Bl } = { Bh: Bh ^ Ch, Bl: Bl ^ Cl }); - ({ Bh, Bl } = { Bh: u64.rotrSH(Bh, Bl, 24), Bl: u64.rotrSL(Bh, Bl, 24) }); - (BUF[2 * a] = Al), (BUF[2 * a + 1] = Ah); - (BUF[2 * b] = Bl), (BUF[2 * b + 1] = Bh); - (BUF[2 * c] = Cl), (BUF[2 * c + 1] = Ch); - (BUF[2 * d] = Dl), (BUF[2 * d + 1] = Dh); -} -function G2(a, b, c, d, msg, x) { - // NOTE: V is LE here - const Xl = msg[x], Xh = msg[x + 1]; // prettier-ignore - let Al = BUF[2 * a], Ah = BUF[2 * a + 1]; // prettier-ignore - let Bl = BUF[2 * b], Bh = BUF[2 * b + 1]; // prettier-ignore - let Cl = BUF[2 * c], Ch = BUF[2 * c + 1]; // prettier-ignore - let Dl = BUF[2 * d], Dh = BUF[2 * d + 1]; // prettier-ignore - // v[a] = (v[a] + v[b] + x) | 0; - let ll = u64.add3L(Al, Bl, Xl); - Ah = u64.add3H(ll, Ah, Bh, Xh); - Al = ll | 0; - // v[d] = rotr(v[d] ^ v[a], 16) - ({ Dh, Dl } = { Dh: Dh ^ Ah, Dl: Dl ^ Al }); - ({ Dh, Dl } = { Dh: u64.rotrSH(Dh, Dl, 16), Dl: u64.rotrSL(Dh, Dl, 16) }); - // v[c] = (v[c] + v[d]) | 0; - ({ h: Ch, l: Cl } = u64.add(Ch, Cl, Dh, Dl)); - // v[b] = rotr(v[b] ^ v[c], 63) - ({ Bh, Bl } = { Bh: Bh ^ Ch, Bl: Bl ^ Cl }); - ({ Bh, Bl } = { Bh: u64.rotrBH(Bh, Bl, 63), Bl: u64.rotrBL(Bh, Bl, 63) }); - (BUF[2 * a] = Al), (BUF[2 * a + 1] = Ah); - (BUF[2 * b] = Bl), (BUF[2 * b + 1] = Bh); - (BUF[2 * c] = Cl), (BUF[2 * c + 1] = Ch); - (BUF[2 * d] = Dl), (BUF[2 * d + 1] = Dh); -} -class BLAKE2b extends BLAKE2 { - constructor(opts = {}) { - super(128, opts.dkLen === undefined ? 64 : opts.dkLen, opts, 64, 16, 16); - // Same as SHA-512, but LE - this.v0l = IV[0] | 0; - this.v0h = IV[1] | 0; - this.v1l = IV[2] | 0; - this.v1h = IV[3] | 0; - this.v2l = IV[4] | 0; - this.v2h = IV[5] | 0; - this.v3l = IV[6] | 0; - this.v3h = IV[7] | 0; - this.v4l = IV[8] | 0; - this.v4h = IV[9] | 0; - this.v5l = IV[10] | 0; - this.v5h = IV[11] | 0; - this.v6l = IV[12] | 0; - this.v6h = IV[13] | 0; - this.v7l = IV[14] | 0; - this.v7h = IV[15] | 0; - const keyLength = opts.key ? opts.key.length : 0; - this.v0l ^= this.outputLen | (keyLength << 8) | (0x01 << 16) | (0x01 << 24); - if (opts.salt) { - const salt = u32(toBytes(opts.salt)); - this.v4l ^= salt[0]; - this.v4h ^= salt[1]; - this.v5l ^= salt[2]; - this.v5h ^= salt[3]; - } - if (opts.personalization) { - const pers = u32(toBytes(opts.personalization)); - this.v6l ^= pers[0]; - this.v6h ^= pers[1]; - this.v7l ^= pers[2]; - this.v7h ^= pers[3]; - } - if (opts.key) { - // Pad to blockLen and update - const tmp = new Uint8Array(this.blockLen); - tmp.set(toBytes(opts.key)); - this.update(tmp); - } - } - // prettier-ignore - get() { - let { v0l, v0h, v1l, v1h, v2l, v2h, v3l, v3h, v4l, v4h, v5l, v5h, v6l, v6h, v7l, v7h } = this; - return [v0l, v0h, v1l, v1h, v2l, v2h, v3l, v3h, v4l, v4h, v5l, v5h, v6l, v6h, v7l, v7h]; - } - // prettier-ignore - set(v0l, v0h, v1l, v1h, v2l, v2h, v3l, v3h, v4l, v4h, v5l, v5h, v6l, v6h, v7l, v7h) { - this.v0l = v0l | 0; - this.v0h = v0h | 0; - this.v1l = v1l | 0; - this.v1h = v1h | 0; - this.v2l = v2l | 0; - this.v2h = v2h | 0; - this.v3l = v3l | 0; - this.v3h = v3h | 0; - this.v4l = v4l | 0; - this.v4h = v4h | 0; - this.v5l = v5l | 0; - this.v5h = v5h | 0; - this.v6l = v6l | 0; - this.v6h = v6h | 0; - this.v7l = v7l | 0; - this.v7h = v7h | 0; - } - compress(msg, offset, isLast) { - this.get().forEach((v, i) => (BUF[i] = v)); // First half from state. - BUF.set(IV, 16); // Second half from IV. - let { h, l } = u64.fromBig(BigInt(this.length)); - BUF[24] = IV[8] ^ l; // Low word of the offset. - BUF[25] = IV[9] ^ h; // High word. - // Invert all bits for last block - if (isLast) { - BUF[28] = ~BUF[28]; - BUF[29] = ~BUF[29]; - } - let j = 0; - const s = SIGMA; - for (let i = 0; i < 12; i++) { - G1(0, 4, 8, 12, msg, offset + 2 * s[j++]); - G2(0, 4, 8, 12, msg, offset + 2 * s[j++]); - G1(1, 5, 9, 13, msg, offset + 2 * s[j++]); - G2(1, 5, 9, 13, msg, offset + 2 * s[j++]); - G1(2, 6, 10, 14, msg, offset + 2 * s[j++]); - G2(2, 6, 10, 14, msg, offset + 2 * s[j++]); - G1(3, 7, 11, 15, msg, offset + 2 * s[j++]); - G2(3, 7, 11, 15, msg, offset + 2 * s[j++]); - G1(0, 5, 10, 15, msg, offset + 2 * s[j++]); - G2(0, 5, 10, 15, msg, offset + 2 * s[j++]); - G1(1, 6, 11, 12, msg, offset + 2 * s[j++]); - G2(1, 6, 11, 12, msg, offset + 2 * s[j++]); - G1(2, 7, 8, 13, msg, offset + 2 * s[j++]); - G2(2, 7, 8, 13, msg, offset + 2 * s[j++]); - G1(3, 4, 9, 14, msg, offset + 2 * s[j++]); - G2(3, 4, 9, 14, msg, offset + 2 * s[j++]); - } - this.v0l ^= BUF[0] ^ BUF[16]; - this.v0h ^= BUF[1] ^ BUF[17]; - this.v1l ^= BUF[2] ^ BUF[18]; - this.v1h ^= BUF[3] ^ BUF[19]; - this.v2l ^= BUF[4] ^ BUF[20]; - this.v2h ^= BUF[5] ^ BUF[21]; - this.v3l ^= BUF[6] ^ BUF[22]; - this.v3h ^= BUF[7] ^ BUF[23]; - this.v4l ^= BUF[8] ^ BUF[24]; - this.v4h ^= BUF[9] ^ BUF[25]; - this.v5l ^= BUF[10] ^ BUF[26]; - this.v5h ^= BUF[11] ^ BUF[27]; - this.v6l ^= BUF[12] ^ BUF[28]; - this.v6h ^= BUF[13] ^ BUF[29]; - this.v7l ^= BUF[14] ^ BUF[30]; - this.v7h ^= BUF[15] ^ BUF[31]; - BUF.fill(0); - } - destroy() { - this.destroyed = true; - this.buffer32.fill(0); - this.set(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); - } -} -/** - * BLAKE2b - optimized for 64-bit platforms. JS doesn't have uint64, so it's slower than BLAKE2s. - * @param msg - message that would be hashed - * @param opts - dkLen, key, salt, personalization - */ -export const blake2b = wrapConstructorWithOpts((opts) => new BLAKE2b(opts)); -//# sourceMappingURL=blake2b.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/blake2b.js.map b/node_modules/@noble/curves/node_modules/@noble/hashes/esm/blake2b.js.map deleted file mode 100644 index 5b5e5fa2..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/blake2b.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"blake2b.js","sourceRoot":"","sources":["../src/blake2b.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAa,KAAK,EAAE,MAAM,cAAc,CAAC;AACxD,OAAO,GAAG,MAAM,WAAW,CAAC;AAC5B,OAAO,EAAE,OAAO,EAAE,GAAG,EAAE,uBAAuB,EAAE,MAAM,YAAY,CAAC;AAEnE,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AC3D,CAAC;CACF;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,uBAAuB,CAAqB,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/blake2s.js b/node_modules/@noble/curves/node_modules/@noble/hashes/esm/blake2s.js deleted file mode 100644 index ca92ef7e..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/blake2s.js +++ /dev/null @@ -1,120 +0,0 @@ -import { BLAKE2, SIGMA } from './_blake2.js'; -import u64 from './_u64.js'; -import { rotr, toBytes, wrapConstructorWithOpts, u32 } from './utils.js'; -// Initial state: -// first 32 bits of the fractional parts of the square roots of the first 8 primes 2..19) -// same as SHA-256 -// prettier-ignore -export const IV = new Uint32Array([ - 0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19 -]); -// Mixing function G splitted in two halfs -function G1(a, b, c, d, x) { - a = (a + b + x) | 0; - d = rotr(d ^ a, 16); - c = (c + d) | 0; - b = rotr(b ^ c, 12); - return { a, b, c, d }; -} -function G2(a, b, c, d, x) { - a = (a + b + x) | 0; - d = rotr(d ^ a, 8); - c = (c + d) | 0; - b = rotr(b ^ c, 7); - return { a, b, c, d }; -} -// prettier-ignore -export function compress(s, offset, msg, rounds, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15) { - let j = 0; - for (let i = 0; i < rounds; i++) { - ({ a: v0, b: v4, c: v8, d: v12 } = G1(v0, v4, v8, v12, msg[offset + s[j++]])); - ({ a: v0, b: v4, c: v8, d: v12 } = G2(v0, v4, v8, v12, msg[offset + s[j++]])); - ({ a: v1, b: v5, c: v9, d: v13 } = G1(v1, v5, v9, v13, msg[offset + s[j++]])); - ({ a: v1, b: v5, c: v9, d: v13 } = G2(v1, v5, v9, v13, msg[offset + s[j++]])); - ({ a: v2, b: v6, c: v10, d: v14 } = G1(v2, v6, v10, v14, msg[offset + s[j++]])); - ({ a: v2, b: v6, c: v10, d: v14 } = G2(v2, v6, v10, v14, msg[offset + s[j++]])); - ({ a: v3, b: v7, c: v11, d: v15 } = G1(v3, v7, v11, v15, msg[offset + s[j++]])); - ({ a: v3, b: v7, c: v11, d: v15 } = G2(v3, v7, v11, v15, msg[offset + s[j++]])); - ({ a: v0, b: v5, c: v10, d: v15 } = G1(v0, v5, v10, v15, msg[offset + s[j++]])); - ({ a: v0, b: v5, c: v10, d: v15 } = G2(v0, v5, v10, v15, msg[offset + s[j++]])); - ({ a: v1, b: v6, c: v11, d: v12 } = G1(v1, v6, v11, v12, msg[offset + s[j++]])); - ({ a: v1, b: v6, c: v11, d: v12 } = G2(v1, v6, v11, v12, msg[offset + s[j++]])); - ({ a: v2, b: v7, c: v8, d: v13 } = G1(v2, v7, v8, v13, msg[offset + s[j++]])); - ({ a: v2, b: v7, c: v8, d: v13 } = G2(v2, v7, v8, v13, msg[offset + s[j++]])); - ({ a: v3, b: v4, c: v9, d: v14 } = G1(v3, v4, v9, v14, msg[offset + s[j++]])); - ({ a: v3, b: v4, c: v9, d: v14 } = G2(v3, v4, v9, v14, msg[offset + s[j++]])); - } - return { v0, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15 }; -} -class BLAKE2s extends BLAKE2 { - constructor(opts = {}) { - super(64, opts.dkLen === undefined ? 32 : opts.dkLen, opts, 32, 8, 8); - // Internal state, same as SHA-256 - this.v0 = IV[0] | 0; - this.v1 = IV[1] | 0; - this.v2 = IV[2] | 0; - this.v3 = IV[3] | 0; - this.v4 = IV[4] | 0; - this.v5 = IV[5] | 0; - this.v6 = IV[6] | 0; - this.v7 = IV[7] | 0; - const keyLength = opts.key ? opts.key.length : 0; - this.v0 ^= this.outputLen | (keyLength << 8) | (0x01 << 16) | (0x01 << 24); - if (opts.salt) { - const salt = u32(toBytes(opts.salt)); - this.v4 ^= salt[0]; - this.v5 ^= salt[1]; - } - if (opts.personalization) { - const pers = u32(toBytes(opts.personalization)); - this.v6 ^= pers[0]; - this.v7 ^= pers[1]; - } - if (opts.key) { - // Pad to blockLen and update - const tmp = new Uint8Array(this.blockLen); - tmp.set(toBytes(opts.key)); - this.update(tmp); - } - } - get() { - const { v0, v1, v2, v3, v4, v5, v6, v7 } = this; - return [v0, v1, v2, v3, v4, v5, v6, v7]; - } - // prettier-ignore - set(v0, v1, v2, v3, v4, v5, v6, v7) { - this.v0 = v0 | 0; - this.v1 = v1 | 0; - this.v2 = v2 | 0; - this.v3 = v3 | 0; - this.v4 = v4 | 0; - this.v5 = v5 | 0; - this.v6 = v6 | 0; - this.v7 = v7 | 0; - } - compress(msg, offset, isLast) { - const { h, l } = u64.fromBig(BigInt(this.length)); - // prettier-ignore - const { v0, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15 } = compress(SIGMA, offset, msg, 10, this.v0, this.v1, this.v2, this.v3, this.v4, this.v5, this.v6, this.v7, IV[0], IV[1], IV[2], IV[3], l ^ IV[4], h ^ IV[5], isLast ? ~IV[6] : IV[6], IV[7]); - this.v0 ^= v0 ^ v8; - this.v1 ^= v1 ^ v9; - this.v2 ^= v2 ^ v10; - this.v3 ^= v3 ^ v11; - this.v4 ^= v4 ^ v12; - this.v5 ^= v5 ^ v13; - this.v6 ^= v6 ^ v14; - this.v7 ^= v7 ^ v15; - } - destroy() { - this.destroyed = true; - this.buffer32.fill(0); - this.set(0, 0, 0, 0, 0, 0, 0, 0); - } -} -/** - * BLAKE2s - optimized for 32-bit platforms. JS doesn't have uint64, so it's faster than BLAKE2b. - * @param msg - message that would be hashed - * @param opts - dkLen, key, salt, personalization - */ -export const blake2s = wrapConstructorWithOpts((opts) => new BLAKE2s(opts)); -//# sourceMappingURL=blake2s.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/blake2s.js.map b/node_modules/@noble/curves/node_modules/@noble/hashes/esm/blake2s.js.map deleted file mode 100644 index 47e74b14..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/blake2s.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"blake2s.js","sourceRoot":"","sources":["../src/blake2s.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAa,KAAK,EAAE,MAAM,cAAc,CAAC;AACxD,OAAO,GAAG,MAAM,WAAW,CAAC;AAC5B,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,uBAAuB,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEzE,iBAAiB;AACjB,yFAAyF;AACzF,kBAAkB;AAClB,kBAAkB;AAClB,MAAM,CAAC,MAAM,EAAE,GAAG,IAAI,WAAW,CAAC;IAChC,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU;CAC/F,CAAC,CAAC;AAEH,0CAA0C;AAC1C,SAAS,EAAE,CAAC,CAAS,EAAE,CAAS,EAAE,CAAS,EAAE,CAAS,EAAE,CAAS;IAC/D,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC;IACpB,CAAC,GAAG,IAAI,CAAC,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC;IACpB,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC;IAChB,CAAC,GAAG,IAAI,CAAC,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC;IACpB,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC;AACxB,CAAC;AAED,SAAS,EAAE,CAAC,CAAS,EAAE,CAAS,EAAE,CAAS,EAAE,CAAS,EAAE,CAAS;IAC/D,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,G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,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CACjF,CAAC;QACJ,IAAI,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC;QACnB,IAAI,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC;QACnB,IAAI,CAAC,EAAE,IAAI,EAAE,GAAG,GAAG,CAAC;QACpB,IAAI,CAAC,EAAE,IAAI,EAAE,GAAG,GAAG,CAAC;QACpB,IAAI,CAAC,EAAE,IAAI,EAAE,GAAG,GAAG,CAAC;QACpB,IAAI,CAAC,EAAE,IAAI,EAAE,GAAG,GAAG,CAAC;QACpB,IAAI,CAAC,EAAE,IAAI,EAAE,GAAG,GAAG,CAAC;QACpB,IAAI,CAAC,EAAE,IAAI,EAAE,GAAG,GAAG,CAAC;IACtB,CAAC;IACD,OAAO;QACL,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;QACtB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACtB,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IACnC,CAAC;CACF;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,uBAAuB,CAAqB,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/blake3.js b/node_modules/@noble/curves/node_modules/@noble/hashes/esm/blake3.js deleted file mode 100644 index 0e59be80..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/blake3.js +++ /dev/null @@ -1,237 +0,0 @@ -import assert from './_assert.js'; -import u64 from './_u64.js'; -import { BLAKE2 } from './_blake2.js'; -import { compress, IV } from './blake2s.js'; -import { u8, u32, toBytes, wrapXOFConstructorWithOpts } from './utils.js'; -// Flag bitset -var Flags; -(function (Flags) { - Flags[Flags["CHUNK_START"] = 1] = "CHUNK_START"; - Flags[Flags["CHUNK_END"] = 2] = "CHUNK_END"; - Flags[Flags["PARENT"] = 4] = "PARENT"; - Flags[Flags["ROOT"] = 8] = "ROOT"; - Flags[Flags["KEYED_HASH"] = 16] = "KEYED_HASH"; - Flags[Flags["DERIVE_KEY_CONTEXT"] = 32] = "DERIVE_KEY_CONTEXT"; - Flags[Flags["DERIVE_KEY_MATERIAL"] = 64] = "DERIVE_KEY_MATERIAL"; -})(Flags || (Flags = {})); -const SIGMA = (() => { - const Id = Array.from({ length: 16 }, (_, i) => i); - const permute = (arr) => [2, 6, 3, 10, 7, 0, 4, 13, 1, 11, 12, 5, 9, 14, 15, 8].map((i) => arr[i]); - const res = []; - for (let i = 0, v = Id; i < 7; i++, v = permute(v)) - res.push(...v); - return Uint8Array.from(res); -})(); -// Why is this so slow? It should be 6x faster than blake2b. -// - There is only 30% reduction in number of rounds from blake2s -// - This function uses tree mode to achive parallelisation via SIMD and threading, -// however in JS we don't have threads and SIMD, so we get only overhead from tree structure -// - It is possible to speed it up via Web Workers, hovewer it will make code singnificantly more -// complicated, which we are trying to avoid, since this library is intended to be used -// for cryptographic purposes. Also, parallelization happens only on chunk level (1024 bytes), -// which won't really benefit small inputs. -class BLAKE3 extends BLAKE2 { - constructor(opts = {}, flags = 0) { - super(64, opts.dkLen === undefined ? 32 : opts.dkLen, {}, Number.MAX_SAFE_INTEGER, 0, 0); - this.flags = 0 | 0; - this.chunkPos = 0; // Position of current block in chunk - this.chunksDone = 0; // How many chunks we already have - this.stack = []; - // Output - this.posOut = 0; - this.bufferOut32 = new Uint32Array(16); - this.chunkOut = 0; // index of output chunk - this.enableXOF = true; - this.outputLen = opts.dkLen === undefined ? 32 : opts.dkLen; - assert.number(this.outputLen); - if (opts.key !== undefined && opts.context !== undefined) - throw new Error('Blake3: only key or context can be specified at same time'); - else if (opts.key !== undefined) { - const key = toBytes(opts.key).slice(); - if (key.length !== 32) - throw new Error('Blake3: key should be 32 byte'); - this.IV = u32(key); - this.flags = flags | Flags.KEYED_HASH; - } - else if (opts.context !== undefined) { - const context_key = new BLAKE3({ dkLen: 32 }, Flags.DERIVE_KEY_CONTEXT) - .update(opts.context) - .digest(); - this.IV = u32(context_key); - this.flags = flags | Flags.DERIVE_KEY_MATERIAL; - } - else { - this.IV = IV.slice(); - this.flags = flags; - } - this.state = this.IV.slice(); - this.bufferOut = u8(this.bufferOut32); - } - // Unused - get() { - return []; - } - set() { } - b2Compress(counter, flags, buf, bufPos = 0) { - const { state: s, pos } = this; - const { h, l } = u64.fromBig(BigInt(counter), true); - // prettier-ignore - const { v0, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15 } = compress(SIGMA, bufPos, buf, 7, s[0], s[1], s[2], s[3], s[4], s[5], s[6], s[7], IV[0], IV[1], IV[2], IV[3], h, l, pos, flags); - s[0] = v0 ^ v8; - s[1] = v1 ^ v9; - s[2] = v2 ^ v10; - s[3] = v3 ^ v11; - s[4] = v4 ^ v12; - s[5] = v5 ^ v13; - s[6] = v6 ^ v14; - s[7] = v7 ^ v15; - } - compress(buf, bufPos = 0, isLast = false) { - // Compress last block - let flags = this.flags; - if (!this.chunkPos) - flags |= Flags.CHUNK_START; - if (this.chunkPos === 15 || isLast) - flags |= Flags.CHUNK_END; - if (!isLast) - this.pos = this.blockLen; - this.b2Compress(this.chunksDone, flags, buf, bufPos); - this.chunkPos += 1; - // If current block is last in chunk (16 blocks), then compress chunks - if (this.chunkPos === 16 || isLast) { - let chunk = this.state; - this.state = this.IV.slice(); - // If not the last one, compress only when there are trailing zeros in chunk counter - // chunks used as binary tree where current stack is path. Zero means current leaf is finished and can be compressed. - // 1 (001) - leaf not finished (just push current chunk to stack) - // 2 (010) - leaf finished at depth=1 (merge with last elm on stack and push back) - // 3 (011) - last leaf not finished - // 4 (100) - leafs finished at depth=1 and depth=2 - for (let last, chunks = this.chunksDone + 1; isLast || !(chunks & 1); chunks >>= 1) { - if (!(last = this.stack.pop())) - break; - this.buffer32.set(last, 0); - this.buffer32.set(chunk, 8); - this.pos = this.blockLen; - this.b2Compress(0, this.flags | Flags.PARENT, this.buffer32, 0); - chunk = this.state; - this.state = this.IV.slice(); - } - this.chunksDone++; - this.chunkPos = 0; - this.stack.push(chunk); - } - this.pos = 0; - } - _cloneInto(to) { - to = super._cloneInto(to); - const { IV, flags, state, chunkPos, posOut, chunkOut, stack, chunksDone } = this; - to.state.set(state.slice()); - to.stack = stack.map((i) => Uint32Array.from(i)); - to.IV.set(IV); - to.flags = flags; - to.chunkPos = chunkPos; - to.chunksDone = chunksDone; - to.posOut = posOut; - to.chunkOut = chunkOut; - to.enableXOF = this.enableXOF; - to.bufferOut32.set(this.bufferOut32); - return to; - } - destroy() { - this.destroyed = true; - this.state.fill(0); - this.buffer32.fill(0); - this.IV.fill(0); - this.bufferOut32.fill(0); - for (let i of this.stack) - i.fill(0); - } - // Same as b2Compress, but doesn't modify state and returns 16 u32 array (instead of 8) - b2CompressOut() { - const { state: s, pos, flags, buffer32, bufferOut32: out32 } = this; - const { h, l } = u64.fromBig(BigInt(this.chunkOut++)); - // prettier-ignore - const { v0, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15 } = compress(SIGMA, 0, buffer32, 7, s[0], s[1], s[2], s[3], s[4], s[5], s[6], s[7], IV[0], IV[1], IV[2], IV[3], l, h, pos, flags); - out32[0] = v0 ^ v8; - out32[1] = v1 ^ v9; - out32[2] = v2 ^ v10; - out32[3] = v3 ^ v11; - out32[4] = v4 ^ v12; - out32[5] = v5 ^ v13; - out32[6] = v6 ^ v14; - out32[7] = v7 ^ v15; - out32[8] = s[0] ^ v8; - out32[9] = s[1] ^ v9; - out32[10] = s[2] ^ v10; - out32[11] = s[3] ^ v11; - out32[12] = s[4] ^ v12; - out32[13] = s[5] ^ v13; - out32[14] = s[6] ^ v14; - out32[15] = s[7] ^ v15; - this.posOut = 0; - } - finish() { - if (this.finished) - return; - this.finished = true; - // Padding - this.buffer.fill(0, this.pos); - // Process last chunk - let flags = this.flags | Flags.ROOT; - if (this.stack.length) { - flags |= Flags.PARENT; - this.compress(this.buffer32, 0, true); - this.chunksDone = 0; - this.pos = this.blockLen; - } - else { - flags |= (!this.chunkPos ? Flags.CHUNK_START : 0) | Flags.CHUNK_END; - } - this.flags = flags; - this.b2CompressOut(); - } - writeInto(out) { - assert.exists(this, false); - assert.bytes(out); - this.finish(); - const { blockLen, bufferOut } = this; - for (let pos = 0, len = out.length; pos < len;) { - if (this.posOut >= blockLen) - this.b2CompressOut(); - const take = Math.min(blockLen - this.posOut, len - pos); - out.set(bufferOut.subarray(this.posOut, this.posOut + take), pos); - this.posOut += take; - pos += take; - } - return out; - } - xofInto(out) { - if (!this.enableXOF) - throw new Error('XOF is not possible after digest call'); - return this.writeInto(out); - } - xof(bytes) { - assert.number(bytes); - return this.xofInto(new Uint8Array(bytes)); - } - digestInto(out) { - assert.output(out, this); - if (this.finished) - throw new Error('digest() was already called'); - this.enableXOF = false; - this.writeInto(out); - this.destroy(); - return out; - } - digest() { - return this.digestInto(new Uint8Array(this.outputLen)); - } -} -/** - * BLAKE3 hash function. - * @param msg - message that would be hashed - * @param opts - dkLen, key, context - */ -export const blake3 = wrapXOFConstructorWithOpts((opts) => new BLAKE3(opts)); -//# sourceMappingURL=blake3.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/blake3.js.map b/node_modules/@noble/curves/node_modules/@noble/hashes/esm/blake3.js.map deleted file mode 100644 index f08f0fb9..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/blake3.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"blake3.js","sourceRoot":"","sources":["../src/blake3.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,GAAG,MAAM,WAAW,CAAC;A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AAS,CAAC,CAAC,CAAC;IACzD,CAAC;CACF;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,0BAA0B,CAAqB,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/crypto.js b/node_modules/@noble/curves/node_modules/@noble/hashes/esm/crypto.js deleted file mode 100644 index 8d499a08..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/crypto.js +++ /dev/null @@ -1,2 +0,0 @@ -export const crypto = typeof globalThis === 'object' && 'crypto' in globalThis ? globalThis.crypto : undefined; -//# sourceMappingURL=crypto.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/crypto.js.map b/node_modules/@noble/curves/node_modules/@noble/hashes/esm/crypto.js.map deleted file mode 100644 index 4b4fd3da..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/crypto.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"crypto.js","sourceRoot":"","sources":["../src/crypto.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,MAAM,GACjB,OAAO,UAAU,KAAK,QAAQ,IAAI,QAAQ,IAAI,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/cryptoNode.js b/node_modules/@noble/curves/node_modules/@noble/hashes/esm/cryptoNode.js deleted file mode 100644 index 241f1da4..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/cryptoNode.js +++ /dev/null @@ -1,7 +0,0 @@ -// We use WebCrypto aka globalThis.crypto, which exists in browsers and node.js 16+. -// See utils.ts for details. -// The file will throw on node.js 14 and earlier. -// @ts-ignore -import * as nc from 'node:crypto'; -export const crypto = nc && typeof nc === 'object' && 'webcrypto' in nc ? nc.webcrypto : undefined; -//# sourceMappingURL=cryptoNode.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/cryptoNode.js.map b/node_modules/@noble/curves/node_modules/@noble/hashes/esm/cryptoNode.js.map deleted file mode 100644 index f7ab75e0..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/cryptoNode.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"cryptoNode.js","sourceRoot":"","sources":["../src/cryptoNode.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,4BAA4B;AAC5B,iDAAiD;AACjD,aAAa;AACb,OAAO,KAAK,EAAE,MAAM,aAAa,CAAC;AAClC,MAAM,CAAC,MAAM,MAAM,GACjB,EAAE,IAAI,OAAO,EAAE,KAAK,QAAQ,IAAI,WAAW,IAAI,EAAE,CAAC,CAAC,CAAE,EAAE,CAAC,SAAiB,CAAC,CAAC,CAAC,SAAS,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/eskdf.js b/node_modules/@noble/curves/node_modules/@noble/hashes/esm/eskdf.js deleted file mode 100644 index 13253eba..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/eskdf.js +++ /dev/null @@ -1,155 +0,0 @@ -import { bytes as assertBytes } from './_assert.js'; -import { hkdf } from './hkdf.js'; -import { sha256 } from './sha256.js'; -import { pbkdf2 as _pbkdf2 } from './pbkdf2.js'; -import { scrypt as _scrypt } from './scrypt.js'; -import { bytesToHex, createView, hexToBytes, toBytes } from './utils.js'; -// A tiny KDF for various applications like AES key-gen. -// Uses HKDF in a non-standard way, so it's not "KDF-secure", only "PRF-secure". -// Which is good enough: assume sha2-256 retained preimage resistance. -const SCRYPT_FACTOR = 2 ** 19; -const PBKDF2_FACTOR = 2 ** 17; -// Scrypt KDF -export function scrypt(password, salt) { - return _scrypt(password, salt, { N: SCRYPT_FACTOR, r: 8, p: 1, dkLen: 32 }); -} -// PBKDF2-HMAC-SHA256 -export function pbkdf2(password, salt) { - return _pbkdf2(sha256, password, salt, { c: PBKDF2_FACTOR, dkLen: 32 }); -} -// Combines two 32-byte byte arrays -function xor32(a, b) { - assertBytes(a, 32); - assertBytes(b, 32); - const arr = new Uint8Array(32); - for (let i = 0; i < 32; i++) { - arr[i] = a[i] ^ b[i]; - } - return arr; -} -function strHasLength(str, min, max) { - return typeof str === 'string' && str.length >= min && str.length <= max; -} -/** - * Derives main seed. Takes a lot of time. Prefer `eskdf` method instead. - */ -export function deriveMainSeed(username, password) { - if (!strHasLength(username, 8, 255)) - throw new Error('invalid username'); - if (!strHasLength(password, 8, 255)) - throw new Error('invalid password'); - const scr = scrypt(password + '\u{1}', username + '\u{1}'); - const pbk = pbkdf2(password + '\u{2}', username + '\u{2}'); - const res = xor32(scr, pbk); - scr.fill(0); - pbk.fill(0); - return res; -} -/** - * Converts protocol & accountId pair to HKDF salt & info params. - */ -function getSaltInfo(protocol, accountId = 0) { - // Note that length here also repeats two lines below - // We do an additional length check here to reduce the scope of DoS attacks - if (!(strHasLength(protocol, 3, 15) && /^[a-z0-9]{3,15}$/.test(protocol))) { - throw new Error('invalid protocol'); - } - // Allow string account ids for some protocols - const allowsStr = /^password\d{0,3}|ssh|tor|file$/.test(protocol); - let salt; // Extract salt. Default is undefined. - if (typeof accountId === 'string') { - if (!allowsStr) - throw new Error('accountId must be a number'); - if (!strHasLength(accountId, 1, 255)) - throw new Error('accountId must be valid string'); - salt = toBytes(accountId); - } - else if (Number.isSafeInteger(accountId)) { - if (accountId < 0 || accountId > 2 ** 32 - 1) - throw new Error('invalid accountId'); - // Convert to Big Endian Uint32 - salt = new Uint8Array(4); - createView(salt).setUint32(0, accountId, false); - } - else { - throw new Error(`accountId must be a number${allowsStr ? ' or string' : ''}`); - } - const info = toBytes(protocol); - return { salt, info }; -} -function countBytes(num) { - if (typeof num !== 'bigint' || num <= BigInt(128)) - throw new Error('invalid number'); - return Math.ceil(num.toString(2).length / 8); -} -/** - * Parses keyLength and modulus options to extract length of result key. - * If modulus is used, adds 64 bits to it as per FIPS 186 B.4.1 to combat modulo bias. - */ -function getKeyLength(options) { - if (!options || typeof options !== 'object') - return 32; - const hasLen = 'keyLength' in options; - const hasMod = 'modulus' in options; - if (hasLen && hasMod) - throw new Error('cannot combine keyLength and modulus options'); - if (!hasLen && !hasMod) - throw new Error('must have either keyLength or modulus option'); - // FIPS 186 B.4.1 requires at least 64 more bits - const l = hasMod ? countBytes(options.modulus) + 8 : options.keyLength; - if (!(typeof l === 'number' && l >= 16 && l <= 8192)) - throw new Error('invalid keyLength'); - return l; -} -/** - * Converts key to bigint and divides it by modulus. Big Endian. - * Implements FIPS 186 B.4.1, which removes 0 and modulo bias from output. - */ -function modReduceKey(key, modulus) { - const _1 = BigInt(1); - const num = BigInt('0x' + bytesToHex(key)); // check for ui8a, then bytesToNumber() - const res = (num % (modulus - _1)) + _1; // Remove 0 from output - if (res < _1) - throw new Error('expected positive number'); // Guard against bad values - const len = key.length - 8; // FIPS requires 64 more bits = 8 bytes - const hex = res.toString(16).padStart(len * 2, '0'); // numberToHex() - const bytes = hexToBytes(hex); - if (bytes.length !== len) - throw new Error('invalid length of result key'); - return bytes; -} -/** - * ESKDF - * @param username - username, email, or identifier, min: 8 characters, should have enough entropy - * @param password - password, min: 8 characters, should have enough entropy - * @example - * const kdf = await eskdf('example-university', 'beginning-new-example'); - * const key = kdf.deriveChildKey('aes', 0); - * console.log(kdf.fingerprint); - * kdf.expire(); - */ -export async function eskdf(username, password) { - // We are using closure + object instead of class because - // we want to make `seed` non-accessible for any external function. - let seed = deriveMainSeed(username, password); - function deriveCK(protocol, accountId = 0, options) { - assertBytes(seed, 32); - const { salt, info } = getSaltInfo(protocol, accountId); // validate protocol & accountId - const keyLength = getKeyLength(options); // validate options - const key = hkdf(sha256, seed, salt, info, keyLength); - // Modulus has already been validated - return options && 'modulus' in options ? modReduceKey(key, options.modulus) : key; - } - function expire() { - if (seed) - seed.fill(1); - seed = undefined; - } - // prettier-ignore - const fingerprint = Array.from(deriveCK('fingerprint', 0)) - .slice(0, 6) - .map((char) => char.toString(16).padStart(2, '0').toUpperCase()) - .join(':'); - return Object.freeze({ deriveChildKey: deriveCK, expire, fingerprint }); -} -//# sourceMappingURL=eskdf.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/eskdf.js.map b/node_modules/@noble/curves/node_modules/@noble/hashes/esm/eskdf.js.map deleted file mode 100644 index f53eebeb..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/eskdf.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"eskdf.js","sourceRoot":"","sources":["../src/eskdf.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,WAAW,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,MAAM,IAAI,OAAO,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,MAAM,IAAI,OAAO,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAEzE,wDAAwD;AACxD,gFAAgF;AAChF,sEAAsE;AAEtE,MAAM,aAAa,GAAG,CAAC,IAAI,EAAE,CAAC;AAC9B,MAAM,aAAa,GAAG,CAAC,IAAI,EAAE,CAAC;AAE9B,aAAa;AACb,MAAM,UAAU,MAAM,CAAC,QAAgB,EAAE,IAAY;IACnD,OAAO,OAAO,CAAC,QAAQ,EAAE,IAAI,EAAE,EAAE,CAAC,EAAE,aAAa,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9E,CAAC;AAED,qBAAqB;AACrB,MAAM,UAAU,MAAM,CA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,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC,CAAC,gCAAgC;QACzF,MAAM,SAAS,GAAG,YAAY,CAAC,OAAO,CAAC,CAAC,CAAC,mBAAmB;QAC5D,MAAM,GAAG,GAAG,IAAI,CAAC,MAAM,EAAE,IAAK,EAAE,IAAI,EAAE,IAAI,EAAE,SAAS,CAAC,CAAC;QACvD,qCAAqC;QACrC,OAAO,OAAO,IAAI,SAAS,IAAI,OAAO,CAAC,CAAC,CAAC,YAAY,CAAC,GAAG,EAAE,OAAO,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC;IACpF,CAAC;IACD,SAAS,MAAM;QACb,IAAI,IAAI;YAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACvB,IAAI,GAAG,SAAS,CAAC;IACnB,CAAC;IACD,kBAAkB;IAClB,MAAM,WAAW,GAAG,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC;SACvD,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC;SACX,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,WAAW,EAAE,CAAC;SAC/D,IAAI,CAAC,GAAG,CAAC,CAAC;IACb,OAAO,MAAM,CAAC,MAAM,CAAC,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC,CAAC;AAC1E,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/hkdf.js b/node_modules/@noble/curves/node_modules/@noble/hashes/esm/hkdf.js deleted file mode 100644 index d3a46e4e..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/hkdf.js +++ /dev/null @@ -1,72 +0,0 @@ -import assert from './_assert.js'; -import { toBytes } from './utils.js'; -import { hmac } from './hmac.js'; -// HKDF (RFC 5869) -// https://soatok.blog/2021/11/17/understanding-hkdf/ -/** - * HKDF-Extract(IKM, salt) -> PRK - * Arguments position differs from spec (IKM is first one, since it is not optional) - * @param hash - * @param ikm - * @param salt - * @returns - */ -export function extract(hash, ikm, salt) { - assert.hash(hash); - // NOTE: some libraries treat zero-length array as 'not provided'; - // we don't, since we have undefined as 'not provided' - // https://github.com/RustCrypto/KDFs/issues/15 - if (salt === undefined) - salt = new Uint8Array(hash.outputLen); // if not provided, it is set to a string of HashLen zeros - return hmac(hash, toBytes(salt), toBytes(ikm)); -} -// HKDF-Expand(PRK, info, L) -> OKM -const HKDF_COUNTER = new Uint8Array([0]); -const EMPTY_BUFFER = new Uint8Array(); -/** - * HKDF-expand from the spec. - * @param prk - a pseudorandom key of at least HashLen octets (usually, the output from the extract step) - * @param info - optional context and application specific information (can be a zero-length string) - * @param length - length of output keying material in octets - */ -export function expand(hash, prk, info, length = 32) { - assert.hash(hash); - assert.number(length); - if (length > 255 * hash.outputLen) - throw new Error('Length should be <= 255*HashLen'); - const blocks = Math.ceil(length / hash.outputLen); - if (info === undefined) - info = EMPTY_BUFFER; - // first L(ength) octets of T - const okm = new Uint8Array(blocks * hash.outputLen); - // Re-use HMAC instance between blocks - const HMAC = hmac.create(hash, prk); - const HMACTmp = HMAC._cloneInto(); - const T = new Uint8Array(HMAC.outputLen); - for (let counter = 0; counter < blocks; counter++) { - HKDF_COUNTER[0] = counter + 1; - // T(0) = empty string (zero length) - // T(N) = HMAC-Hash(PRK, T(N-1) | info | N) - HMACTmp.update(counter === 0 ? EMPTY_BUFFER : T) - .update(info) - .update(HKDF_COUNTER) - .digestInto(T); - okm.set(T, hash.outputLen * counter); - HMAC._cloneInto(HMACTmp); - } - HMAC.destroy(); - HMACTmp.destroy(); - T.fill(0); - HKDF_COUNTER.fill(0); - return okm.slice(0, length); -} -/** - * HKDF (RFC 5869): extract + expand in one step. - * @param hash - hash function that would be used (e.g. sha256) - * @param ikm - input keying material, the initial key - * @param salt - optional salt value (a non-secret random value) - * @param info - optional context and application specific information - * @param length - length of output keying material in octets - */ -export const hkdf = (hash, ikm, salt, info, length) => expand(hash, extract(hash, ikm, salt), info, length); -//# sourceMappingURL=hkdf.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/hkdf.js.map b/node_modules/@noble/curves/node_modules/@noble/hashes/esm/hkdf.js.map deleted file mode 100644 index 6e800290..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/hkdf.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"hkdf.js","sourceRoot":"","sources":["../src/hkdf.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,EAAgB,OAAO,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,kBAAkB;AAClB,qDAAqD;AAErD;;;;;;;GAOG;AACH,MAAM,UAAU,OAAO,CAAC,IAAW,EAAE,GAAU,EAAE,IAAY;IAC3D,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAClB,kEAAkE;IAClE,sDAAsD;IACtD,+CAA+C;IAC/C,IAAI,IAAI,KAAK,SAAS;QAAE,IAAI,GAAG,IAAI,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,0DAA0D;IACzH,OAAO,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,EAAE,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC;AACjD,CAAC;AAED,mCAAmC;AACnC,MAAM,YAAY,GAAG,IAAI,UAAU,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AACzC,MAAM,YAAY,GAAG,IAAI,UAAU,EAAE,CAAC;AAEtC;;;;;GAKG;AACH,MAAM,UAAU,MAAM,CAAC,IAAW,EAAE,GAAU,EAAE,IAAY,EAAE,SAAiB,EAAE;IAC/E,MAAM,CAAC,IAAI,CAAC,IA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AC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACV,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACrB,OAAO,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;AAC9B,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,CAClB,IAAW,EACX,GAAU,EACV,IAAuB,EACvB,IAAuB,EACvB,MAAc,EACd,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/hmac.js b/node_modules/@noble/curves/node_modules/@noble/hashes/esm/hmac.js deleted file mode 100644 index 36ae4f46..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/hmac.js +++ /dev/null @@ -1,77 +0,0 @@ -import assert from './_assert.js'; -import { Hash, toBytes } from './utils.js'; -// HMAC (RFC 2104) -export class HMAC extends Hash { - constructor(hash, _key) { - super(); - this.finished = false; - this.destroyed = false; - assert.hash(hash); - const key = toBytes(_key); - this.iHash = hash.create(); - if (typeof this.iHash.update !== 'function') - throw new Error('Expected instance of class which extends utils.Hash'); - this.blockLen = this.iHash.blockLen; - this.outputLen = this.iHash.outputLen; - const blockLen = this.blockLen; - const pad = new Uint8Array(blockLen); - // blockLen can be bigger than outputLen - pad.set(key.length > blockLen ? hash.create().update(key).digest() : key); - for (let i = 0; i < pad.length; i++) - pad[i] ^= 0x36; - this.iHash.update(pad); - // By doing update (processing of first block) of outer hash here we can re-use it between multiple calls via clone - this.oHash = hash.create(); - // Undo internal XOR && apply outer XOR - for (let i = 0; i < pad.length; i++) - pad[i] ^= 0x36 ^ 0x5c; - this.oHash.update(pad); - pad.fill(0); - } - update(buf) { - assert.exists(this); - this.iHash.update(buf); - return this; - } - digestInto(out) { - assert.exists(this); - assert.bytes(out, this.outputLen); - this.finished = true; - this.iHash.digestInto(out); - this.oHash.update(out); - this.oHash.digestInto(out); - this.destroy(); - } - digest() { - const out = new Uint8Array(this.oHash.outputLen); - this.digestInto(out); - return out; - } - _cloneInto(to) { - // Create new instance without calling constructor since key already in state and we don't know it. - to || (to = Object.create(Object.getPrototypeOf(this), {})); - const { oHash, iHash, finished, destroyed, blockLen, outputLen } = this; - to = to; - to.finished = finished; - to.destroyed = destroyed; - to.blockLen = blockLen; - to.outputLen = outputLen; - to.oHash = oHash._cloneInto(to.oHash); - to.iHash = iHash._cloneInto(to.iHash); - return to; - } - destroy() { - this.destroyed = true; - this.oHash.destroy(); - this.iHash.destroy(); - } -} -/** - * HMAC: RFC2104 message authentication code. - * @param hash - function that would be used e.g. sha256 - * @param key - message key - * @param message - message data - */ -export const hmac = (hash, key, message) => new HMAC(hash, key).update(message).digest(); -hmac.create = (hash, key) => new HMAC(hash, key); -//# sourceMappingURL=hmac.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/hmac.js.map b/node_modules/@noble/curves/node_modules/@noble/hashes/esm/hmac.js.map deleted file mode 100644 index e580ae40..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/hmac.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"hmac.js","sourceRoot":"","sources":["../src/hmac.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,IAAI,EAAgB,OAAO,EAAE,MAAM,YAAY,CAAC;AACzD,kBAAkB;AAClB,MAAM,OAAO,IAAwB,SAAQ,IAAa;IAQxD,YAAY,IAAW,EAAE,IAAW;QAClC,KAAK,EAAE,CAAC;QAJF,aAAQ,GAAG,KAAK,CAAC;QACjB,cAAS,GAAG,KAAK,CAAC;QAIxB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAClB,MAAM,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC,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AC,EAAE,CAAC,KAAK,CAAC,CAAC;QACtC,EAAE,CAAC,KAAK,GAAG,KAAK,CAAC,UAAU,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC;QACtC,OAAO,EAAE,CAAC;IACZ,CAAC;IACD,OAAO;QACL,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;QACtB,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;QACrB,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;IACvB,CAAC;CACF;AAED;;;;;GAKG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,IAAW,EAAE,GAAU,EAAE,OAAc,EAAc,EAAE,CAC1E,IAAI,IAAI,CAAM,IAAI,EAAE,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,CAAC;AACpD,IAAI,CAAC,MAAM,GAAG,CAAC,IAAW,EAAE,GAAU,EAAE,EAAE,CAAC,IAAI,IAAI,CAAM,IAAI,EAAE,GAAG,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/index.js b/node_modules/@noble/curves/node_modules/@noble/hashes/esm/index.js deleted file mode 100644 index 2299d7f9..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -throw new Error('noble-hashes have no entry-point: consult README for usage'); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/index.js.map b/node_modules/@noble/curves/node_modules/@noble/hashes/esm/index.js.map deleted file mode 100644 index 90172aa2..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,MAAM,IAAI,KAAK,CAAC,4DAA4D,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/package.json b/node_modules/@noble/curves/node_modules/@noble/hashes/esm/package.json deleted file mode 100644 index cf1903ab..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/package.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "type": "module", - "browser": { - "node:crypto": false - }, - "node": { - "./crypto": "./esm/cryptoNode.js" - } -} diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/pbkdf2.js b/node_modules/@noble/curves/node_modules/@noble/hashes/esm/pbkdf2.js deleted file mode 100644 index fe684365..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/pbkdf2.js +++ /dev/null @@ -1,86 +0,0 @@ -import assert from './_assert.js'; -import { hmac } from './hmac.js'; -import { createView, toBytes, checkOpts, asyncLoop } from './utils.js'; -// Common prologue and epilogue for sync/async functions -function pbkdf2Init(hash, _password, _salt, _opts) { - assert.hash(hash); - const opts = checkOpts({ dkLen: 32, asyncTick: 10 }, _opts); - const { c, dkLen, asyncTick } = opts; - assert.number(c); - assert.number(dkLen); - assert.number(asyncTick); - if (c < 1) - throw new Error('PBKDF2: iterations (c) should be >= 1'); - const password = toBytes(_password); - const salt = toBytes(_salt); - // DK = PBKDF2(PRF, Password, Salt, c, dkLen); - const DK = new Uint8Array(dkLen); - // U1 = PRF(Password, Salt + INT_32_BE(i)) - const PRF = hmac.create(hash, password); - const PRFSalt = PRF._cloneInto().update(salt); - return { c, dkLen, asyncTick, DK, PRF, PRFSalt }; -} -function pbkdf2Output(PRF, PRFSalt, DK, prfW, u) { - PRF.destroy(); - PRFSalt.destroy(); - if (prfW) - prfW.destroy(); - u.fill(0); - return DK; -} -/** - * PBKDF2-HMAC: RFC 2898 key derivation function - * @param hash - hash function that would be used e.g. sha256 - * @param password - password from which a derived key is generated - * @param salt - cryptographic salt - * @param opts - {c, dkLen} where c is work factor and dkLen is output message size - */ -export function pbkdf2(hash, password, salt, opts) { - const { c, dkLen, DK, PRF, PRFSalt } = pbkdf2Init(hash, password, salt, opts); - let prfW; // Working copy - const arr = new Uint8Array(4); - const view = createView(arr); - const u = new Uint8Array(PRF.outputLen); - // DK = T1 + T2 + ⋯ + Tdklen/hlen - for (let ti = 1, pos = 0; pos < dkLen; ti++, pos += PRF.outputLen) { - // Ti = F(Password, Salt, c, i) - const Ti = DK.subarray(pos, pos + PRF.outputLen); - view.setInt32(0, ti, false); - // F(Password, Salt, c, i) = U1 ^ U2 ^ ⋯ ^ Uc - // U1 = PRF(Password, Salt + INT_32_BE(i)) - (prfW = PRFSalt._cloneInto(prfW)).update(arr).digestInto(u); - Ti.set(u.subarray(0, Ti.length)); - for (let ui = 1; ui < c; ui++) { - // Uc = PRF(Password, Uc−1) - PRF._cloneInto(prfW).update(u).digestInto(u); - for (let i = 0; i < Ti.length; i++) - Ti[i] ^= u[i]; - } - } - return pbkdf2Output(PRF, PRFSalt, DK, prfW, u); -} -export async function pbkdf2Async(hash, password, salt, opts) { - const { c, dkLen, asyncTick, DK, PRF, PRFSalt } = pbkdf2Init(hash, password, salt, opts); - let prfW; // Working copy - const arr = new Uint8Array(4); - const view = createView(arr); - const u = new Uint8Array(PRF.outputLen); - // DK = T1 + T2 + ⋯ + Tdklen/hlen - for (let ti = 1, pos = 0; pos < dkLen; ti++, pos += PRF.outputLen) { - // Ti = F(Password, Salt, c, i) - const Ti = DK.subarray(pos, pos + PRF.outputLen); - view.setInt32(0, ti, false); - // F(Password, Salt, c, i) = U1 ^ U2 ^ ⋯ ^ Uc - // U1 = PRF(Password, Salt + INT_32_BE(i)) - (prfW = PRFSalt._cloneInto(prfW)).update(arr).digestInto(u); - Ti.set(u.subarray(0, Ti.length)); - await asyncLoop(c - 1, asyncTick, (i) => { - // Uc = PRF(Password, Uc−1) - PRF._cloneInto(prfW).update(u).digestInto(u); - for (let i = 0; i < Ti.length; i++) - Ti[i] ^= u[i]; - }); - } - return pbkdf2Output(PRF, PRFSalt, DK, prfW, u); -} -//# sourceMappingURL=pbkdf2.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/pbkdf2.js.map b/node_modules/@noble/curves/node_modules/@noble/hashes/esm/pbkdf2.js.map deleted file mode 100644 index 1710c5cc..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/pbkdf2.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"pbkdf2.js","sourceRoot":"","sources":["../src/pbkdf2.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAsB,UAAU,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAQ3F,wDAAwD;AACxD,SAAS,UAAU,CAAC,IAAW,EAAE,SAAgB,EAAE,KAAY,EAAE,KAAgB;IAC/E,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAClB,MAAM,IAAI,GAAG,SAAS,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;IAC5D,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,IAAI,CAAC;IACrC,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IACjB,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACrB,MAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IACzB,IAAI,CAAC,GAAG,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAC;IACpE,MAAM,QAAQ,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;IACpC,MAAM,IAAI,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;IAC5B,8CAA8C;IAC9C,MAAM,EAAE,GAAG,IAAI,UAAU,CAAC,KAAK,CAAC,CAAC;IACjC,0CAA0C;IAC1C,MAAM,GAAG,GAAG,IAAI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line at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/ripemd160.js b/node_modules/@noble/curves/node_modules/@noble/hashes/esm/ripemd160.js deleted file mode 100644 index fcf1f5ea..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/ripemd160.js +++ /dev/null @@ -1,100 +0,0 @@ -import { SHA2 } from './_sha2.js'; -import { wrapConstructor } from './utils.js'; -// https://homes.esat.kuleuven.be/~bosselae/ripemd160.html -// https://homes.esat.kuleuven.be/~bosselae/ripemd160/pdf/AB-9601/AB-9601.pdf -const Rho = new Uint8Array([7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8]); -const Id = Uint8Array.from({ length: 16 }, (_, i) => i); -const Pi = Id.map((i) => (9 * i + 5) % 16); -let idxL = [Id]; -let idxR = [Pi]; -for (let i = 0; i < 4; i++) - for (let j of [idxL, idxR]) - j.push(j[i].map((k) => Rho[k])); -const shifts = [ - [11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8], - [12, 13, 11, 15, 6, 9, 9, 7, 12, 15, 11, 13, 7, 8, 7, 7], - [13, 15, 14, 11, 7, 7, 6, 8, 13, 14, 13, 12, 5, 5, 6, 9], - [14, 11, 12, 14, 8, 6, 5, 5, 15, 12, 15, 14, 9, 9, 8, 6], - [15, 12, 13, 13, 9, 5, 8, 6, 14, 11, 12, 11, 8, 6, 5, 5], -].map((i) => new Uint8Array(i)); -const shiftsL = idxL.map((idx, i) => idx.map((j) => shifts[i][j])); -const shiftsR = idxR.map((idx, i) => idx.map((j) => shifts[i][j])); -const Kl = new Uint32Array([0x00000000, 0x5a827999, 0x6ed9eba1, 0x8f1bbcdc, 0xa953fd4e]); -const Kr = new Uint32Array([0x50a28be6, 0x5c4dd124, 0x6d703ef3, 0x7a6d76e9, 0x00000000]); -// The rotate left (circular left shift) operation for uint32 -const rotl = (word, shift) => (word << shift) | (word >>> (32 - shift)); -// It's called f() in spec. -function f(group, x, y, z) { - if (group === 0) - return x ^ y ^ z; - else if (group === 1) - return (x & y) | (~x & z); - else if (group === 2) - return (x | ~y) ^ z; - else if (group === 3) - return (x & z) | (y & ~z); - else - return x ^ (y | ~z); -} -// Temporary buffer, not used to store anything between runs -const BUF = new Uint32Array(16); -export class RIPEMD160 extends SHA2 { - constructor() { - super(64, 20, 8, true); - this.h0 = 0x67452301 | 0; - this.h1 = 0xefcdab89 | 0; - this.h2 = 0x98badcfe | 0; - this.h3 = 0x10325476 | 0; - this.h4 = 0xc3d2e1f0 | 0; - } - get() { - const { h0, h1, h2, h3, h4 } = this; - return [h0, h1, h2, h3, h4]; - } - set(h0, h1, h2, h3, h4) { - this.h0 = h0 | 0; - this.h1 = h1 | 0; - this.h2 = h2 | 0; - this.h3 = h3 | 0; - this.h4 = h4 | 0; - } - process(view, offset) { - for (let i = 0; i < 16; i++, offset += 4) - BUF[i] = view.getUint32(offset, true); - // prettier-ignore - let al = this.h0 | 0, ar = al, bl = this.h1 | 0, br = bl, cl = this.h2 | 0, cr = cl, dl = this.h3 | 0, dr = dl, el = this.h4 | 0, er = el; - // Instead of iterating 0 to 80, we split it into 5 groups - // And use the groups in constants, functions, etc. Much simpler - for (let group = 0; group < 5; group++) { - const rGroup = 4 - group; - const hbl = Kl[group], hbr = Kr[group]; // prettier-ignore - const rl = idxL[group], rr = idxR[group]; // prettier-ignore - const sl = shiftsL[group], sr = shiftsR[group]; // prettier-ignore - for (let i = 0; i < 16; i++) { - const tl = (rotl(al + f(group, bl, cl, dl) + BUF[rl[i]] + hbl, sl[i]) + el) | 0; - al = el, el = dl, dl = rotl(cl, 10) | 0, cl = bl, bl = tl; // prettier-ignore - } - // 2 loops are 10% faster - for (let i = 0; i < 16; i++) { - const tr = (rotl(ar + f(rGroup, br, cr, dr) + BUF[rr[i]] + hbr, sr[i]) + er) | 0; - ar = er, er = dr, dr = rotl(cr, 10) | 0, cr = br, br = tr; // prettier-ignore - } - } - // Add the compressed chunk to the current hash value - this.set((this.h1 + cl + dr) | 0, (this.h2 + dl + er) | 0, (this.h3 + el + ar) | 0, (this.h4 + al + br) | 0, (this.h0 + bl + cr) | 0); - } - roundClean() { - BUF.fill(0); - } - destroy() { - this.destroyed = true; - this.buffer.fill(0); - this.set(0, 0, 0, 0, 0); - } -} -/** - * RIPEMD-160 - a hash function from 1990s. - * @param message - msg that would be hashed - */ -export const ripemd160 = wrapConstructor(() => new RIPEMD160()); -//# sourceMappingURL=ripemd160.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/ripemd160.js.map b/node_modules/@noble/curves/node_modules/@noble/hashes/esm/ripemd160.js.map deleted file mode 100644 index bb6ab0f6..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/ripemd160.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ripemd160.js","sourceRoot":"","sources":["../src/ripemd160.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAClC,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAE7C,0DAA0D;AAC1D,6EAA6E;AAC7E,MAAM,GAAG,GAAG,IAAI,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC;AACnF,MAAM,EAAE,GAAG,UAAU,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC;AACxD,MAAM,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE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EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,EACvB,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,EACvB,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,EACvB,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,EACvB,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,CACxB,CAAC;IACJ,CAAC;IACS,UAAU;QAClB,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACd,CAAC;IACD,OAAO;QACL,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;QACtB,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACpB,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAC1B,CAAC;CACF;AAED;;;GAGG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,eAAe,CAAC,GAAG,EAAE,CAAC,IAAI,SAAS,EAAE,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/scrypt.js b/node_modules/@noble/curves/node_modules/@noble/hashes/esm/scrypt.js deleted file mode 100644 index 204d41a0..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/scrypt.js +++ /dev/null @@ -1,218 +0,0 @@ -import assert from './_assert.js'; -import { sha256 } from './sha256.js'; -import { pbkdf2 } from './pbkdf2.js'; -import { asyncLoop, checkOpts, u32 } from './utils.js'; -// RFC 7914 Scrypt KDF -// Left rotate for uint32 -const rotl = (a, b) => (a << b) | (a >>> (32 - b)); -// The main Scrypt loop: uses Salsa extensively. -// Six versions of the function were tried, this is the fastest one. -// prettier-ignore -function XorAndSalsa(prev, pi, input, ii, out, oi) { - // Based on https://cr.yp.to/salsa20.html - // Xor blocks - let y00 = prev[pi++] ^ input[ii++], y01 = prev[pi++] ^ input[ii++]; - let y02 = prev[pi++] ^ input[ii++], y03 = prev[pi++] ^ input[ii++]; - let y04 = prev[pi++] ^ input[ii++], y05 = prev[pi++] ^ input[ii++]; - let y06 = prev[pi++] ^ input[ii++], y07 = prev[pi++] ^ input[ii++]; - let y08 = prev[pi++] ^ input[ii++], y09 = prev[pi++] ^ input[ii++]; - let y10 = prev[pi++] ^ input[ii++], y11 = prev[pi++] ^ input[ii++]; - let y12 = prev[pi++] ^ input[ii++], y13 = prev[pi++] ^ input[ii++]; - let y14 = prev[pi++] ^ input[ii++], y15 = prev[pi++] ^ input[ii++]; - // Save state to temporary variables (salsa) - let x00 = y00, x01 = y01, x02 = y02, x03 = y03, x04 = y04, x05 = y05, x06 = y06, x07 = y07, x08 = y08, x09 = y09, x10 = y10, x11 = y11, x12 = y12, x13 = y13, x14 = y14, x15 = y15; - // Main loop (salsa) - for (let i = 0; i < 8; i += 2) { - x04 ^= rotl(x00 + x12 | 0, 7); - x08 ^= rotl(x04 + x00 | 0, 9); - x12 ^= rotl(x08 + x04 | 0, 13); - x00 ^= rotl(x12 + x08 | 0, 18); - x09 ^= rotl(x05 + x01 | 0, 7); - x13 ^= rotl(x09 + x05 | 0, 9); - x01 ^= rotl(x13 + x09 | 0, 13); - x05 ^= rotl(x01 + x13 | 0, 18); - x14 ^= rotl(x10 + x06 | 0, 7); - x02 ^= rotl(x14 + x10 | 0, 9); - x06 ^= rotl(x02 + x14 | 0, 13); - x10 ^= rotl(x06 + x02 | 0, 18); - x03 ^= rotl(x15 + x11 | 0, 7); - x07 ^= rotl(x03 + x15 | 0, 9); - x11 ^= rotl(x07 + x03 | 0, 13); - x15 ^= rotl(x11 + x07 | 0, 18); - x01 ^= rotl(x00 + x03 | 0, 7); - x02 ^= rotl(x01 + x00 | 0, 9); - x03 ^= rotl(x02 + x01 | 0, 13); - x00 ^= rotl(x03 + x02 | 0, 18); - x06 ^= rotl(x05 + x04 | 0, 7); - x07 ^= rotl(x06 + x05 | 0, 9); - x04 ^= rotl(x07 + x06 | 0, 13); - x05 ^= rotl(x04 + x07 | 0, 18); - x11 ^= rotl(x10 + x09 | 0, 7); - x08 ^= rotl(x11 + x10 | 0, 9); - x09 ^= rotl(x08 + x11 | 0, 13); - x10 ^= rotl(x09 + x08 | 0, 18); - x12 ^= rotl(x15 + x14 | 0, 7); - x13 ^= rotl(x12 + x15 | 0, 9); - x14 ^= rotl(x13 + x12 | 0, 13); - x15 ^= rotl(x14 + x13 | 0, 18); - } - // Write output (salsa) - out[oi++] = (y00 + x00) | 0; - out[oi++] = (y01 + x01) | 0; - out[oi++] = (y02 + x02) | 0; - out[oi++] = (y03 + x03) | 0; - out[oi++] = (y04 + x04) | 0; - out[oi++] = (y05 + x05) | 0; - out[oi++] = (y06 + x06) | 0; - out[oi++] = (y07 + x07) | 0; - out[oi++] = (y08 + x08) | 0; - out[oi++] = (y09 + x09) | 0; - out[oi++] = (y10 + x10) | 0; - out[oi++] = (y11 + x11) | 0; - out[oi++] = (y12 + x12) | 0; - out[oi++] = (y13 + x13) | 0; - out[oi++] = (y14 + x14) | 0; - out[oi++] = (y15 + x15) | 0; -} -function BlockMix(input, ii, out, oi, r) { - // The block B is r 128-byte chunks (which is equivalent of 2r 64-byte chunks) - let head = oi + 0; - let tail = oi + 16 * r; - for (let i = 0; i < 16; i++) - out[tail + i] = input[ii + (2 * r - 1) * 16 + i]; // X ← B[2r−1] - for (let i = 0; i < r; i++, head += 16, ii += 16) { - // We write odd & even Yi at same time. Even: 0bXXXXX0 Odd: 0bXXXXX1 - XorAndSalsa(out, tail, input, ii, out, head); // head[i] = Salsa(blockIn[2*i] ^ tail[i-1]) - if (i > 0) - tail += 16; // First iteration overwrites tmp value in tail - XorAndSalsa(out, head, input, (ii += 16), out, tail); // tail[i] = Salsa(blockIn[2*i+1] ^ head[i]) - } -} -// Common prologue and epilogue for sync/async functions -function scryptInit(password, salt, _opts) { - // Maxmem - 1GB+1KB by default - const opts = checkOpts({ - dkLen: 32, - asyncTick: 10, - maxmem: 1024 ** 3 + 1024, - }, _opts); - const { N, r, p, dkLen, asyncTick, maxmem, onProgress } = opts; - assert.number(N); - assert.number(r); - assert.number(p); - assert.number(dkLen); - assert.number(asyncTick); - assert.number(maxmem); - if (onProgress !== undefined && typeof onProgress !== 'function') - throw new Error('progressCb should be function'); - const blockSize = 128 * r; - const blockSize32 = blockSize / 4; - if (N <= 1 || (N & (N - 1)) !== 0 || N >= 2 ** (blockSize / 8) || N > 2 ** 32) { - // NOTE: we limit N to be less than 2**32 because of 32 bit variant of Integrify function - // There is no JS engines that allows alocate more than 4GB per single Uint8Array for now, but can change in future. - throw new Error('Scrypt: N must be larger than 1, a power of 2, less than 2^(128 * r / 8) and less than 2^32'); - } - if (p < 0 || p > ((2 ** 32 - 1) * 32) / blockSize) { - throw new Error('Scrypt: p must be a positive integer less than or equal to ((2^32 - 1) * 32) / (128 * r)'); - } - if (dkLen < 0 || dkLen > (2 ** 32 - 1) * 32) { - throw new Error('Scrypt: dkLen should be positive integer less than or equal to (2^32 - 1) * 32'); - } - const memUsed = blockSize * (N + p); - if (memUsed > maxmem) { - throw new Error(`Scrypt: parameters too large, ${memUsed} (128 * r * (N + p)) > ${maxmem} (maxmem)`); - } - // [B0...Bp−1] ← PBKDF2HMAC-SHA256(Passphrase, Salt, 1, blockSize*ParallelizationFactor) - // Since it has only one iteration there is no reason to use async variant - const B = pbkdf2(sha256, password, salt, { c: 1, dkLen: blockSize * p }); - const B32 = u32(B); - // Re-used between parallel iterations. Array(iterations) of B - const V = u32(new Uint8Array(blockSize * N)); - const tmp = u32(new Uint8Array(blockSize)); - let blockMixCb = () => { }; - if (onProgress) { - const totalBlockMix = 2 * N * p; - // Invoke callback if progress changes from 10.01 to 10.02 - // Allows to draw smooth progress bar on up to 8K screen - const callbackPer = Math.max(Math.floor(totalBlockMix / 10000), 1); - let blockMixCnt = 0; - blockMixCb = () => { - blockMixCnt++; - if (onProgress && (!(blockMixCnt % callbackPer) || blockMixCnt === totalBlockMix)) - onProgress(blockMixCnt / totalBlockMix); - }; - } - return { N, r, p, dkLen, blockSize32, V, B32, B, tmp, blockMixCb, asyncTick }; -} -function scryptOutput(password, dkLen, B, V, tmp) { - const res = pbkdf2(sha256, password, B, { c: 1, dkLen }); - B.fill(0); - V.fill(0); - tmp.fill(0); - return res; -} -/** - * Scrypt KDF from RFC 7914. - * @param password - pass - * @param salt - salt - * @param opts - parameters - * - `N` is cpu/mem work factor (power of 2 e.g. 2**18) - * - `r` is block size (8 is common), fine-tunes sequential memory read size and performance - * - `p` is parallelization factor (1 is common) - * - `dkLen` is output key length in bytes e.g. 32. - * - `asyncTick` - (default: 10) max time in ms for which async function can block execution - * - `maxmem` - (default: `1024 ** 3 + 1024` aka 1GB+1KB). A limit that the app could use for scrypt - * - `onProgress` - callback function that would be executed for progress report - * @returns Derived key - */ -export function scrypt(password, salt, opts) { - const { N, r, p, dkLen, blockSize32, V, B32, B, tmp, blockMixCb } = scryptInit(password, salt, opts); - for (let pi = 0; pi < p; pi++) { - const Pi = blockSize32 * pi; - for (let i = 0; i < blockSize32; i++) - V[i] = B32[Pi + i]; // V[0] = B[i] - for (let i = 0, pos = 0; i < N - 1; i++) { - BlockMix(V, pos, V, (pos += blockSize32), r); // V[i] = BlockMix(V[i-1]); - blockMixCb(); - } - BlockMix(V, (N - 1) * blockSize32, B32, Pi, r); // Process last element - blockMixCb(); - for (let i = 0; i < N; i++) { - // First u32 of the last 64-byte block (u32 is LE) - const j = B32[Pi + blockSize32 - 16] % N; // j = Integrify(X) % iterations - for (let k = 0; k < blockSize32; k++) - tmp[k] = B32[Pi + k] ^ V[j * blockSize32 + k]; // tmp = B ^ V[j] - BlockMix(tmp, 0, B32, Pi, r); // B = BlockMix(B ^ V[j]) - blockMixCb(); - } - } - return scryptOutput(password, dkLen, B, V, tmp); -} -/** - * Scrypt KDF from RFC 7914. - */ -export async function scryptAsync(password, salt, opts) { - const { N, r, p, dkLen, blockSize32, V, B32, B, tmp, blockMixCb, asyncTick } = scryptInit(password, salt, opts); - for (let pi = 0; pi < p; pi++) { - const Pi = blockSize32 * pi; - for (let i = 0; i < blockSize32; i++) - V[i] = B32[Pi + i]; // V[0] = B[i] - let pos = 0; - await asyncLoop(N - 1, asyncTick, (i) => { - BlockMix(V, pos, V, (pos += blockSize32), r); // V[i] = BlockMix(V[i-1]); - blockMixCb(); - }); - BlockMix(V, (N - 1) * blockSize32, B32, Pi, r); // Process last element - blockMixCb(); - await asyncLoop(N, asyncTick, (i) => { - // First u32 of the last 64-byte block (u32 is LE) - const j = B32[Pi + blockSize32 - 16] % N; // j = Integrify(X) % iterations - for (let k = 0; k < blockSize32; k++) - tmp[k] = B32[Pi + k] ^ V[j * blockSize32 + k]; // tmp = B ^ V[j] - BlockMix(tmp, 0, B32, Pi, r); // B = BlockMix(B ^ V[j]) - blockMixCb(); - }); - } - return scryptOutput(password, dkLen, B, V, tmp); -} -//# sourceMappingURL=scrypt.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/scrypt.js.map b/node_modules/@noble/curves/node_modules/@noble/hashes/esm/scrypt.js.map deleted file mode 100644 index d944f4c0..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/scrypt.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"scrypt.js","sourceRoot":"","sources":["../src/scrypt.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,SAAS,EAAE,SAAS,EAAS,GAAG,EAAE,MAAM,YAAY,CAAC;AAE9D,sBAAsB;AAEtB,yBAAyB;AACzB,MAAM,IAAI,GAAG,CAAC,CAAS,EAAE,CAAS,EAAE,EAAE,CAAC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AAE,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,WAAW,GAAG,CAAC,CAAC,CAAC,CAAC,iBAAiB;YACtG,QAAQ,CAAC,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,yBAAyB;YACvD,UAAU,EAAE,CAAC;QACf,CAAC,CAAC,CAAC;KACJ;IACD,OAAO,YAAY,CAAC,QAAQ,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC;AAClD,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/sha1.js b/node_modules/@noble/curves/node_modules/@noble/hashes/esm/sha1.js deleted file mode 100644 index f0691b05..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/sha1.js +++ /dev/null @@ -1,85 +0,0 @@ -import { SHA2 } from './_sha2.js'; -import { wrapConstructor } from './utils.js'; -// SHA1 was cryptographically broken. -// It is still widely used in legacy apps. Don't use it for a new protocol. -// RFC 3174 -const rotl = (word, shift) => (word << shift) | ((word >>> (32 - shift)) >>> 0); -// Choice: a ? b : c -const Chi = (a, b, c) => (a & b) ^ (~a & c); -// Majority function, true if any two inpust is true -const Maj = (a, b, c) => (a & b) ^ (a & c) ^ (b & c); -// Initial state -const IV = new Uint32Array([0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0]); -// Temporary buffer, not used to store anything between runs -// Named this way because it matches specification. -const SHA1_W = new Uint32Array(80); -class SHA1 extends SHA2 { - constructor() { - super(64, 20, 8, false); - this.A = IV[0] | 0; - this.B = IV[1] | 0; - this.C = IV[2] | 0; - this.D = IV[3] | 0; - this.E = IV[4] | 0; - } - get() { - const { A, B, C, D, E } = this; - return [A, B, C, D, E]; - } - set(A, B, C, D, E) { - this.A = A | 0; - this.B = B | 0; - this.C = C | 0; - this.D = D | 0; - this.E = E | 0; - } - process(view, offset) { - for (let i = 0; i < 16; i++, offset += 4) - SHA1_W[i] = view.getUint32(offset, false); - for (let i = 16; i < 80; i++) - SHA1_W[i] = rotl(SHA1_W[i - 3] ^ SHA1_W[i - 8] ^ SHA1_W[i - 14] ^ SHA1_W[i - 16], 1); - // Compression function main loop, 80 rounds - let { A, B, C, D, E } = this; - for (let i = 0; i < 80; i++) { - let F, K; - if (i < 20) { - F = Chi(B, C, D); - K = 0x5a827999; - } - else if (i < 40) { - F = B ^ C ^ D; - K = 0x6ed9eba1; - } - else if (i < 60) { - F = Maj(B, C, D); - K = 0x8f1bbcdc; - } - else { - F = B ^ C ^ D; - K = 0xca62c1d6; - } - const T = (rotl(A, 5) + F + E + K + SHA1_W[i]) | 0; - E = D; - D = C; - C = rotl(B, 30); - B = A; - A = T; - } - // Add the compressed chunk to the current hash value - A = (A + this.A) | 0; - B = (B + this.B) | 0; - C = (C + this.C) | 0; - D = (D + this.D) | 0; - E = (E + this.E) | 0; - this.set(A, B, C, D, E); - } - roundClean() { - SHA1_W.fill(0); - } - destroy() { - this.set(0, 0, 0, 0, 0); - this.buffer.fill(0); - } -} -export const sha1 = wrapConstructor(() => new SHA1()); -//# sourceMappingURL=sha1.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/sha1.js.map b/node_modules/@noble/curves/node_modules/@noble/hashes/esm/sha1.js.map deleted file mode 100644 index dbf3cd36..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/sha1.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sha1.js","sourceRoot":"","sources":["../src/sha1.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAClC,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAE7C,qCAAqC;AACrC,2EAA2E;AAE3E,WAAW;AACX,MAAM,IAAI,GAAG,CAAC,IAAY,EAAE,KAAa,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,GAAG,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;QACrB,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAC1B,CAAC;IACS,UAAU;QAClB,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACjB,CAAC;IACD,OAAO;QACL,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;QACxB,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACtB,CAAC;CACF;AAED,MAAM,CAAC,MAAM,IAAI,GAAG,eAAe,CAAC,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/sha256.js b/node_modules/@noble/curves/node_modules/@noble/hashes/esm/sha256.js deleted file mode 100644 index 841917ee..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/sha256.js +++ /dev/null @@ -1,124 +0,0 @@ -import { SHA2 } from './_sha2.js'; -import { rotr, wrapConstructor } from './utils.js'; -// Choice: a ? b : c -const Chi = (a, b, c) => (a & b) ^ (~a & c); -// Majority function, true if any two inpust is true -const Maj = (a, b, c) => (a & b) ^ (a & c) ^ (b & c); -// Round constants: -// first 32 bits of the fractional parts of the cube roots of the first 64 primes 2..311) -// prettier-ignore -const SHA256_K = new Uint32Array([ - 0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5, 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5, - 0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3, 0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174, - 0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc, 0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da, - 0x983e5152, 0xa831c66d, 0xb00327c8, 0xbf597fc7, 0xc6e00bf3, 0xd5a79147, 0x06ca6351, 0x14292967, - 0x27b70a85, 0x2e1b2138, 0x4d2c6dfc, 0x53380d13, 0x650a7354, 0x766a0abb, 0x81c2c92e, 0x92722c85, - 0xa2bfe8a1, 0xa81a664b, 0xc24b8b70, 0xc76c51a3, 0xd192e819, 0xd6990624, 0xf40e3585, 0x106aa070, - 0x19a4c116, 0x1e376c08, 0x2748774c, 0x34b0bcb5, 0x391c0cb3, 0x4ed8aa4a, 0x5b9cca4f, 0x682e6ff3, - 0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208, 0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2 -]); -// Initial state (first 32 bits of the fractional parts of the square roots of the first 8 primes 2..19): -// prettier-ignore -const IV = new Uint32Array([ - 0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19 -]); -// Temporary buffer, not used to store anything between runs -// Named this way because it matches specification. -const SHA256_W = new Uint32Array(64); -class SHA256 extends SHA2 { - constructor() { - super(64, 32, 8, false); - // We cannot use array here since array allows indexing by variable - // which means optimizer/compiler cannot use registers. - this.A = IV[0] | 0; - this.B = IV[1] | 0; - this.C = IV[2] | 0; - this.D = IV[3] | 0; - this.E = IV[4] | 0; - this.F = IV[5] | 0; - this.G = IV[6] | 0; - this.H = IV[7] | 0; - } - get() { - const { A, B, C, D, E, F, G, H } = this; - return [A, B, C, D, E, F, G, H]; - } - // prettier-ignore - set(A, B, C, D, E, F, G, H) { - this.A = A | 0; - this.B = B | 0; - this.C = C | 0; - this.D = D | 0; - this.E = E | 0; - this.F = F | 0; - this.G = G | 0; - this.H = H | 0; - } - process(view, offset) { - // Extend the first 16 words into the remaining 48 words w[16..63] of the message schedule array - for (let i = 0; i < 16; i++, offset += 4) - SHA256_W[i] = view.getUint32(offset, false); - for (let i = 16; i < 64; i++) { - const W15 = SHA256_W[i - 15]; - const W2 = SHA256_W[i - 2]; - const s0 = rotr(W15, 7) ^ rotr(W15, 18) ^ (W15 >>> 3); - const s1 = rotr(W2, 17) ^ rotr(W2, 19) ^ (W2 >>> 10); - SHA256_W[i] = (s1 + SHA256_W[i - 7] + s0 + SHA256_W[i - 16]) | 0; - } - // Compression function main loop, 64 rounds - let { A, B, C, D, E, F, G, H } = this; - for (let i = 0; i < 64; i++) { - const sigma1 = rotr(E, 6) ^ rotr(E, 11) ^ rotr(E, 25); - const T1 = (H + sigma1 + Chi(E, F, G) + SHA256_K[i] + SHA256_W[i]) | 0; - const sigma0 = rotr(A, 2) ^ rotr(A, 13) ^ rotr(A, 22); - const T2 = (sigma0 + Maj(A, B, C)) | 0; - H = G; - G = F; - F = E; - E = (D + T1) | 0; - D = C; - C = B; - B = A; - A = (T1 + T2) | 0; - } - // Add the compressed chunk to the current hash value - A = (A + this.A) | 0; - B = (B + this.B) | 0; - C = (C + this.C) | 0; - D = (D + this.D) | 0; - E = (E + this.E) | 0; - F = (F + this.F) | 0; - G = (G + this.G) | 0; - H = (H + this.H) | 0; - this.set(A, B, C, D, E, F, G, H); - } - roundClean() { - SHA256_W.fill(0); - } - destroy() { - this.set(0, 0, 0, 0, 0, 0, 0, 0); - this.buffer.fill(0); - } -} -// Constants from https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf -class SHA224 extends SHA256 { - constructor() { - super(); - this.A = 0xc1059ed8 | 0; - this.B = 0x367cd507 | 0; - this.C = 0x3070dd17 | 0; - this.D = 0xf70e5939 | 0; - this.E = 0xffc00b31 | 0; - this.F = 0x68581511 | 0; - this.G = 0x64f98fa7 | 0; - this.H = 0xbefa4fa4 | 0; - this.outputLen = 28; - } -} -/** - * SHA2-256 hash function - * @param message - data that would be hashed - */ -export const sha256 = wrapConstructor(() => new SHA256()); -export const sha224 = wrapConstructor(() => new SHA224()); -//# sourceMappingURL=sha256.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/sha256.js.map b/node_modules/@noble/curves/node_modules/@noble/hashes/esm/sha256.js.map deleted file mode 100644 index a9867975..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/sha256.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sha256.js","sourceRoot":"","sources":["../src/sha256.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAEnD,oBAAoB;AACpB,MAAM,GAAG,GAAG,CAAC,CAAS,EAAE,CAAS,EAAE,CAAS,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;AACpE,oDAAoD;AACpD,MAAM,GAAG,GAAG,CAAC,CAAS,EAAE,CAAS,EAAE,CAAS,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;AAE7E,mBAAmB;AACnB,yFAAyF;AACzF,kBAAkB;AAClB,MAAM,QAAQ,GAAG,IAAI,WAAW,CAAC;IAC/B,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU;IAC9F,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU;IAC9F,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU;IAC9F,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU;IAC9F,UAAU,EAAE,UAAU,EAAE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,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IACnC,CAAC;IACS,UAAU;QAClB,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACnB,CAAC;IACD,OAAO;QACL,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;QACjC,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACtB,CAAC;CACF;AACD,4EAA4E;AAC5E,MAAM,MAAO,SAAQ,MAAM;IASzB;QACE,KAAK,EAAE,CAAC;QATV,MAAC,GAAG,UAAU,GAAG,CAAC,CAAC;QACnB,MAAC,GAAG,UAAU,GAAG,CAAC,CAAC;QACnB,MAAC,GAAG,UAAU,GAAG,CAAC,CAAC;QACnB,MAAC,GAAG,UAAU,GAAG,CAAC,CAAC;QACnB,MAAC,GAAG,UAAU,GAAG,CAAC,CAAC;QACnB,MAAC,GAAG,UAAU,GAAG,CAAC,CAAC;QACnB,MAAC,GAAG,UAAU,GAAG,CAAC,CAAC;QACnB,MAAC,GAAG,UAAU,GAAG,CAAC,CAAC;QAGjB,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC;IACtB,CAAC;CACF;AAED;;;GAGG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,eAAe,CAAC,GAAG,EAAE,CAAC,IAAI,MAAM,EAAE,CAAC,CAAC;AAC1D,MAAM,CAAC,MAAM,MAAM,GAAG,eAAe,CAAC,GAAG,EAAE,CAAC,IAAI,MAAM,EAAE,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/sha3-addons.js b/node_modules/@noble/curves/node_modules/@noble/hashes/esm/sha3-addons.js deleted file mode 100644 index cb1a2a81..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/sha3-addons.js +++ /dev/null @@ -1,347 +0,0 @@ -import { number as assertNumber } from './_assert.js'; -import { toBytes, wrapConstructorWithOpts, u32 } from './utils.js'; -import { Keccak } from './sha3.js'; -// cSHAKE && KMAC (NIST SP800-185) -function leftEncode(n) { - const res = [n & 0xff]; - n >>= 8; - for (; n > 0; n >>= 8) - res.unshift(n & 0xff); - res.unshift(res.length); - return new Uint8Array(res); -} -function rightEncode(n) { - const res = [n & 0xff]; - n >>= 8; - for (; n > 0; n >>= 8) - res.unshift(n & 0xff); - res.push(res.length); - return new Uint8Array(res); -} -function chooseLen(opts, outputLen) { - return opts.dkLen === undefined ? outputLen : opts.dkLen; -} -const toBytesOptional = (buf) => (buf !== undefined ? toBytes(buf) : new Uint8Array([])); -// NOTE: second modulo is necessary since we don't need to add padding if current element takes whole block -const getPadding = (len, block) => new Uint8Array((block - (len % block)) % block); -// Personalization -function cshakePers(hash, opts = {}) { - if (!opts || (!opts.personalization && !opts.NISTfn)) - return hash; - // Encode and pad inplace to avoid unneccesary memory copies/slices (so we don't need to zero them later) - // bytepad(encode_string(N) || encode_string(S), 168) - const blockLenBytes = leftEncode(hash.blockLen); - const fn = toBytesOptional(opts.NISTfn); - const fnLen = leftEncode(8 * fn.length); // length in bits - const pers = toBytesOptional(opts.personalization); - const persLen = leftEncode(8 * pers.length); // length in bits - if (!fn.length && !pers.length) - return hash; - hash.suffix = 0x04; - hash.update(blockLenBytes).update(fnLen).update(fn).update(persLen).update(pers); - let totalLen = blockLenBytes.length + fnLen.length + fn.length + persLen.length + pers.length; - hash.update(getPadding(totalLen, hash.blockLen)); - return hash; -} -const gencShake = (suffix, blockLen, outputLen) => wrapConstructorWithOpts((opts = {}) => cshakePers(new Keccak(blockLen, suffix, chooseLen(opts, outputLen), true), opts)); -export const cshake128 = /* @__PURE__ */ (() => gencShake(0x1f, 168, 128 / 8))(); -export const cshake256 = /* @__PURE__ */ (() => gencShake(0x1f, 136, 256 / 8))(); -class KMAC extends Keccak { - constructor(blockLen, outputLen, enableXOF, key, opts = {}) { - super(blockLen, 0x1f, outputLen, enableXOF); - cshakePers(this, { NISTfn: 'KMAC', personalization: opts.personalization }); - key = toBytes(key); - // 1. newX = bytepad(encode_string(K), 168) || X || right_encode(L). - const blockLenBytes = leftEncode(this.blockLen); - const keyLen = leftEncode(8 * key.length); - this.update(blockLenBytes).update(keyLen).update(key); - const totalLen = blockLenBytes.length + keyLen.length + key.length; - this.update(getPadding(totalLen, this.blockLen)); - } - finish() { - if (!this.finished) - this.update(rightEncode(this.enableXOF ? 0 : this.outputLen * 8)); // outputLen in bits - super.finish(); - } - _cloneInto(to) { - // Create new instance without calling constructor since key already in state and we don't know it. - // Force "to" to be instance of KMAC instead of Sha3. - if (!to) { - to = Object.create(Object.getPrototypeOf(this), {}); - to.state = this.state.slice(); - to.blockLen = this.blockLen; - to.state32 = u32(to.state); - } - return super._cloneInto(to); - } - clone() { - return this._cloneInto(); - } -} -function genKmac(blockLen, outputLen, xof = false) { - const kmac = (key, message, opts) => kmac.create(key, opts).update(message).digest(); - kmac.create = (key, opts = {}) => new KMAC(blockLen, chooseLen(opts, outputLen), xof, key, opts); - return kmac; -} -export const kmac128 = /* @__PURE__ */ (() => genKmac(168, 128 / 8))(); -export const kmac256 = /* @__PURE__ */ (() => genKmac(136, 256 / 8))(); -export const kmac128xof = /* @__PURE__ */ (() => genKmac(168, 128 / 8, true))(); -export const kmac256xof = /* @__PURE__ */ (() => genKmac(136, 256 / 8, true))(); -// TupleHash -// Usage: tuple(['ab', 'cd']) != tuple(['a', 'bcd']) -class TupleHash extends Keccak { - constructor(blockLen, outputLen, enableXOF, opts = {}) { - super(blockLen, 0x1f, outputLen, enableXOF); - cshakePers(this, { NISTfn: 'TupleHash', personalization: opts.personalization }); - // Change update after cshake processed - this.update = (data) => { - data = toBytes(data); - super.update(leftEncode(data.length * 8)); - super.update(data); - return this; - }; - } - finish() { - if (!this.finished) - super.update(rightEncode(this.enableXOF ? 0 : this.outputLen * 8)); // outputLen in bits - super.finish(); - } - _cloneInto(to) { - to || (to = new TupleHash(this.blockLen, this.outputLen, this.enableXOF)); - return super._cloneInto(to); - } - clone() { - return this._cloneInto(); - } -} -function genTuple(blockLen, outputLen, xof = false) { - const tuple = (messages, opts) => { - const h = tuple.create(opts); - for (const msg of messages) - h.update(msg); - return h.digest(); - }; - tuple.create = (opts = {}) => new TupleHash(blockLen, chooseLen(opts, outputLen), xof, opts); - return tuple; -} -export const tuplehash128 = /* @__PURE__ */ (() => genTuple(168, 128 / 8))(); -export const tuplehash256 = /* @__PURE__ */ (() => genTuple(136, 256 / 8))(); -export const tuplehash128xof = /* @__PURE__ */ (() => genTuple(168, 128 / 8, true))(); -export const tuplehash256xof = /* @__PURE__ */ (() => genTuple(136, 256 / 8, true))(); -class ParallelHash extends Keccak { - constructor(blockLen, outputLen, leafCons, enableXOF, opts = {}) { - super(blockLen, 0x1f, outputLen, enableXOF); - this.leafCons = leafCons; - this.chunkPos = 0; // Position of current block in chunk - this.chunksDone = 0; // How many chunks we already have - cshakePers(this, { NISTfn: 'ParallelHash', personalization: opts.personalization }); - let { blockLen: B } = opts; - B || (B = 8); - assertNumber(B); - this.chunkLen = B; - super.update(leftEncode(B)); - // Change update after cshake processed - this.update = (data) => { - data = toBytes(data); - const { chunkLen, leafCons } = this; - for (let pos = 0, len = data.length; pos < len;) { - if (this.chunkPos == chunkLen || !this.leafHash) { - if (this.leafHash) { - super.update(this.leafHash.digest()); - this.chunksDone++; - } - this.leafHash = leafCons(); - this.chunkPos = 0; - } - const take = Math.min(chunkLen - this.chunkPos, len - pos); - this.leafHash.update(data.subarray(pos, pos + take)); - this.chunkPos += take; - pos += take; - } - return this; - }; - } - finish() { - if (this.finished) - return; - if (this.leafHash) { - super.update(this.leafHash.digest()); - this.chunksDone++; - } - super.update(rightEncode(this.chunksDone)); - super.update(rightEncode(this.enableXOF ? 0 : this.outputLen * 8)); // outputLen in bits - super.finish(); - } - _cloneInto(to) { - to || (to = new ParallelHash(this.blockLen, this.outputLen, this.leafCons, this.enableXOF)); - if (this.leafHash) - to.leafHash = this.leafHash._cloneInto(to.leafHash); - to.chunkPos = this.chunkPos; - to.chunkLen = this.chunkLen; - to.chunksDone = this.chunksDone; - return super._cloneInto(to); - } - destroy() { - super.destroy.call(this); - if (this.leafHash) - this.leafHash.destroy(); - } - clone() { - return this._cloneInto(); - } -} -function genPrl(blockLen, outputLen, leaf, xof = false) { - const parallel = (message, opts) => parallel.create(opts).update(message).digest(); - parallel.create = (opts = {}) => new ParallelHash(blockLen, chooseLen(opts, outputLen), () => leaf.create({ dkLen: 2 * outputLen }), xof, opts); - return parallel; -} -export const parallelhash128 = /* @__PURE__ */ (() => genPrl(168, 128 / 8, cshake128))(); -export const parallelhash256 = /* @__PURE__ */ (() => genPrl(136, 256 / 8, cshake256))(); -export const parallelhash128xof = /* @__PURE__ */ (() => genPrl(168, 128 / 8, cshake128, true))(); -export const parallelhash256xof = /* @__PURE__ */ (() => genPrl(136, 256 / 8, cshake256, true))(); -// Kangaroo -// Same as NIST rightEncode, but returns [0] for zero string -function rightEncodeK12(n) { - const res = []; - for (; n > 0; n >>= 8) - res.unshift(n & 0xff); - res.push(res.length); - return new Uint8Array(res); -} -const EMPTY = new Uint8Array([]); -class KangarooTwelve extends Keccak { - constructor(blockLen, leafLen, outputLen, rounds, opts) { - super(blockLen, 0x07, outputLen, true, rounds); - this.leafLen = leafLen; - this.chunkLen = 8192; - this.chunkPos = 0; // Position of current block in chunk - this.chunksDone = 0; // How many chunks we already have - const { personalization } = opts; - this.personalization = toBytesOptional(personalization); - } - update(data) { - data = toBytes(data); - const { chunkLen, blockLen, leafLen, rounds } = this; - for (let pos = 0, len = data.length; pos < len;) { - if (this.chunkPos == chunkLen) { - if (this.leafHash) - super.update(this.leafHash.digest()); - else { - this.suffix = 0x06; // Its safe to change suffix here since its used only in digest() - super.update(new Uint8Array([3, 0, 0, 0, 0, 0, 0, 0])); - } - this.leafHash = new Keccak(blockLen, 0x0b, leafLen, false, rounds); - this.chunksDone++; - this.chunkPos = 0; - } - const take = Math.min(chunkLen - this.chunkPos, len - pos); - const chunk = data.subarray(pos, pos + take); - if (this.leafHash) - this.leafHash.update(chunk); - else - super.update(chunk); - this.chunkPos += take; - pos += take; - } - return this; - } - finish() { - if (this.finished) - return; - const { personalization } = this; - this.update(personalization).update(rightEncodeK12(personalization.length)); - // Leaf hash - if (this.leafHash) { - super.update(this.leafHash.digest()); - super.update(rightEncodeK12(this.chunksDone)); - super.update(new Uint8Array([0xff, 0xff])); - } - super.finish.call(this); - } - destroy() { - super.destroy.call(this); - if (this.leafHash) - this.leafHash.destroy(); - // We cannot zero personalization buffer since it is user provided and we don't want to mutate user input - this.personalization = EMPTY; - } - _cloneInto(to) { - const { blockLen, leafLen, leafHash, outputLen, rounds } = this; - to || (to = new KangarooTwelve(blockLen, leafLen, outputLen, rounds, {})); - super._cloneInto(to); - if (leafHash) - to.leafHash = leafHash._cloneInto(to.leafHash); - to.personalization.set(this.personalization); - to.leafLen = this.leafLen; - to.chunkPos = this.chunkPos; - to.chunksDone = this.chunksDone; - return to; - } - clone() { - return this._cloneInto(); - } -} -// Default to 32 bytes, so it can be used without opts -export const k12 = /* @__PURE__ */ (() => wrapConstructorWithOpts((opts = {}) => new KangarooTwelve(168, 32, chooseLen(opts, 32), 12, opts)))(); -// MarsupilamiFourteen -export const m14 = /* @__PURE__ */ (() => wrapConstructorWithOpts((opts = {}) => new KangarooTwelve(136, 64, chooseLen(opts, 64), 14, opts)))(); -// https://keccak.team/files/CSF-0.1.pdf -// + https://github.com/XKCP/XKCP/tree/master/lib/high/Keccak/PRG -class KeccakPRG extends Keccak { - constructor(capacity) { - assertNumber(capacity); - // Rho should be full bytes - if (capacity < 0 || capacity > 1600 - 10 || (1600 - capacity - 2) % 8) - throw new Error('KeccakPRG: Invalid capacity'); - // blockLen = rho in bytes - super((1600 - capacity - 2) / 8, 0, 0, true); - this.rate = 1600 - capacity; - this.posOut = Math.floor((this.rate + 7) / 8); - } - keccak() { - // Duplex padding - this.state[this.pos] ^= 0x01; - this.state[this.blockLen] ^= 0x02; // Rho is full bytes - super.keccak(); - this.pos = 0; - this.posOut = 0; - } - update(data) { - super.update(data); - this.posOut = this.blockLen; - return this; - } - feed(data) { - return this.update(data); - } - finish() { } - digestInto(out) { - throw new Error('KeccakPRG: digest is not allowed, please use .fetch instead.'); - } - fetch(bytes) { - return this.xof(bytes); - } - // Ensure irreversibility (even if state leaked previous outputs cannot be computed) - forget() { - if (this.rate < 1600 / 2 + 1) - throw new Error('KeccakPRG: rate too low to use forget'); - this.keccak(); - for (let i = 0; i < this.blockLen; i++) - this.state[i] = 0; - this.pos = this.blockLen; - this.keccak(); - this.posOut = this.blockLen; - } - _cloneInto(to) { - const { rate } = this; - to || (to = new KeccakPRG(1600 - rate)); - super._cloneInto(to); - to.rate = rate; - return to; - } - clone() { - return this._cloneInto(); - } -} -export const keccakprg = (capacity = 254) => new KeccakPRG(capacity); -//# sourceMappingURL=sha3-addons.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/sha3-addons.js.map b/node_modules/@noble/curves/node_modules/@noble/hashes/esm/sha3-addons.js.map deleted file mode 100644 index 3393dec4..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/sha3-addons.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sha3-addons.js","sourceRoot":"","sources":["../src/sha3-addons.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,EAAS,OAAO,EAAE,uBAAuB,EAAE,GAAG,EAAiB,MAAM,YAAY,CAAC;AACzF,OAAO,EAAE,MAAM,EAAa,MAAM,WAAW,CAAC;AAC9C,kCAAkC;AAClC,SAAS,UAAU,CAAC,CAAS;IAC3B,MAAM,GAAG,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;IACvB,CAAC,KAAK,CAAC,CAAC;IACR,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,KAAK,CA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AAG,GAAG,EAAE,EAAE,CAAC,IAAI,SAAS,CAAC,QAAQ,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/sha3.js b/node_modules/@noble/curves/node_modules/@noble/hashes/esm/sha3.js deleted file mode 100644 index 710eca49..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/sha3.js +++ /dev/null @@ -1,206 +0,0 @@ -import assert from './_assert.js'; -import u64 from './_u64.js'; -import { Hash, u32, toBytes, wrapConstructor, wrapXOFConstructorWithOpts, } from './utils.js'; -// Various per round constants calculations -const [SHA3_PI, SHA3_ROTL, _SHA3_IOTA] = [[], [], []]; -const _0n = BigInt(0); -const _1n = BigInt(1); -const _2n = BigInt(2); -const _7n = BigInt(7); -const _256n = BigInt(256); -const _0x71n = BigInt(0x71); -for (let round = 0, R = _1n, x = 1, y = 0; round < 24; round++) { - // Pi - [x, y] = [y, (2 * x + 3 * y) % 5]; - SHA3_PI.push(2 * (5 * y + x)); - // Rotational - SHA3_ROTL.push((((round + 1) * (round + 2)) / 2) % 64); - // Iota - let t = _0n; - for (let j = 0; j < 7; j++) { - R = ((R << _1n) ^ ((R >> _7n) * _0x71n)) % _256n; - if (R & _2n) - t ^= _1n << ((_1n << BigInt(j)) - _1n); - } - _SHA3_IOTA.push(t); -} -const [SHA3_IOTA_H, SHA3_IOTA_L] = u64.split(_SHA3_IOTA, true); -// Left rotation (without 0, 32, 64) -const rotlH = (h, l, s) => s > 32 ? u64.rotlBH(h, l, s) : u64.rotlSH(h, l, s); -const rotlL = (h, l, s) => s > 32 ? u64.rotlBL(h, l, s) : u64.rotlSL(h, l, s); -// Same as keccakf1600, but allows to skip some rounds -export function keccakP(s, rounds = 24) { - const B = new Uint32Array(5 * 2); - // NOTE: all indices are x2 since we store state as u32 instead of u64 (bigints to slow in js) - for (let round = 24 - rounds; round < 24; round++) { - // Theta θ - for (let x = 0; x < 10; x++) - B[x] = s[x] ^ s[x + 10] ^ s[x + 20] ^ s[x + 30] ^ s[x + 40]; - for (let x = 0; x < 10; x += 2) { - const idx1 = (x + 8) % 10; - const idx0 = (x + 2) % 10; - const B0 = B[idx0]; - const B1 = B[idx0 + 1]; - const Th = rotlH(B0, B1, 1) ^ B[idx1]; - const Tl = rotlL(B0, B1, 1) ^ B[idx1 + 1]; - for (let y = 0; y < 50; y += 10) { - s[x + y] ^= Th; - s[x + y + 1] ^= Tl; - } - } - // Rho (ρ) and Pi (π) - let curH = s[2]; - let curL = s[3]; - for (let t = 0; t < 24; t++) { - const shift = SHA3_ROTL[t]; - const Th = rotlH(curH, curL, shift); - const Tl = rotlL(curH, curL, shift); - const PI = SHA3_PI[t]; - curH = s[PI]; - curL = s[PI + 1]; - s[PI] = Th; - s[PI + 1] = Tl; - } - // Chi (χ) - for (let y = 0; y < 50; y += 10) { - for (let x = 0; x < 10; x++) - B[x] = s[y + x]; - for (let x = 0; x < 10; x++) - s[y + x] ^= ~B[(x + 2) % 10] & B[(x + 4) % 10]; - } - // Iota (ι) - s[0] ^= SHA3_IOTA_H[round]; - s[1] ^= SHA3_IOTA_L[round]; - } - B.fill(0); -} -export class Keccak extends Hash { - // NOTE: we accept arguments in bytes instead of bits here. - constructor(blockLen, suffix, outputLen, enableXOF = false, rounds = 24) { - super(); - this.blockLen = blockLen; - this.suffix = suffix; - this.outputLen = outputLen; - this.enableXOF = enableXOF; - this.rounds = rounds; - this.pos = 0; - this.posOut = 0; - this.finished = false; - this.destroyed = false; - // Can be passed from user as dkLen - assert.number(outputLen); - // 1600 = 5x5 matrix of 64bit. 1600 bits === 200 bytes - if (0 >= this.blockLen || this.blockLen >= 200) - throw new Error('Sha3 supports only keccak-f1600 function'); - this.state = new Uint8Array(200); - this.state32 = u32(this.state); - } - keccak() { - keccakP(this.state32, this.rounds); - this.posOut = 0; - this.pos = 0; - } - update(data) { - assert.exists(this); - const { blockLen, state } = this; - data = toBytes(data); - const len = data.length; - for (let pos = 0; pos < len;) { - const take = Math.min(blockLen - this.pos, len - pos); - for (let i = 0; i < take; i++) - state[this.pos++] ^= data[pos++]; - if (this.pos === blockLen) - this.keccak(); - } - return this; - } - finish() { - if (this.finished) - return; - this.finished = true; - const { state, suffix, pos, blockLen } = this; - // Do the padding - state[pos] ^= suffix; - if ((suffix & 0x80) !== 0 && pos === blockLen - 1) - this.keccak(); - state[blockLen - 1] ^= 0x80; - this.keccak(); - } - writeInto(out) { - assert.exists(this, false); - assert.bytes(out); - this.finish(); - const bufferOut = this.state; - const { blockLen } = this; - for (let pos = 0, len = out.length; pos < len;) { - if (this.posOut >= blockLen) - this.keccak(); - const take = Math.min(blockLen - this.posOut, len - pos); - out.set(bufferOut.subarray(this.posOut, this.posOut + take), pos); - this.posOut += take; - pos += take; - } - return out; - } - xofInto(out) { - // Sha3/Keccak usage with XOF is probably mistake, only SHAKE instances can do XOF - if (!this.enableXOF) - throw new Error('XOF is not possible for this instance'); - return this.writeInto(out); - } - xof(bytes) { - assert.number(bytes); - return this.xofInto(new Uint8Array(bytes)); - } - digestInto(out) { - assert.output(out, this); - if (this.finished) - throw new Error('digest() was already called'); - this.writeInto(out); - this.destroy(); - return out; - } - digest() { - return this.digestInto(new Uint8Array(this.outputLen)); - } - destroy() { - this.destroyed = true; - this.state.fill(0); - } - _cloneInto(to) { - const { blockLen, suffix, outputLen, rounds, enableXOF } = this; - to || (to = new Keccak(blockLen, suffix, outputLen, enableXOF, rounds)); - to.state32.set(this.state32); - to.pos = this.pos; - to.posOut = this.posOut; - to.finished = this.finished; - to.rounds = rounds; - // Suffix can change in cSHAKE - to.suffix = suffix; - to.outputLen = outputLen; - to.enableXOF = enableXOF; - to.destroyed = this.destroyed; - return to; - } -} -const gen = (suffix, blockLen, outputLen) => wrapConstructor(() => new Keccak(blockLen, suffix, outputLen)); -export const sha3_224 = gen(0x06, 144, 224 / 8); -/** - * SHA3-256 hash function - * @param message - that would be hashed - */ -export const sha3_256 = gen(0x06, 136, 256 / 8); -export const sha3_384 = gen(0x06, 104, 384 / 8); -export const sha3_512 = gen(0x06, 72, 512 / 8); -export const keccak_224 = gen(0x01, 144, 224 / 8); -/** - * keccak-256 hash function. Different from SHA3-256. - * @param message - that would be hashed - */ -export const keccak_256 = gen(0x01, 136, 256 / 8); -export const keccak_384 = gen(0x01, 104, 384 / 8); -export const keccak_512 = gen(0x01, 72, 512 / 8); -const genShake = (suffix, blockLen, outputLen) => wrapXOFConstructorWithOpts((opts = {}) => new Keccak(blockLen, suffix, opts.dkLen === undefined ? outputLen : opts.dkLen, true)); -export const shake128 = genShake(0x1f, 168, 128 / 8); -export const shake256 = genShake(0x1f, 136, 256 / 8); -//# sourceMappingURL=sha3.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/sha3.js.map b/node_modules/@noble/curves/node_modules/@noble/hashes/esm/sha3.js.map deleted file mode 100644 index e64e81e5..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/sha3.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sha3.js","sourceRoot":"","sources":["../src/sha3.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,cAAc,CAAC;AAClC,OAAO,GAAG,MAAM,WAAW,CAAC;AAC5B,OAAO,EACL,IAAI,EACJ,GAAG,EAEH,OAAO,EACP,eAAe,EACf,0BAA0B,GAE3B,MAAM,YAAY,CAAC;AAEpB,2CAA2C;AAC3C,MAAM,CAAC,OAAO,EAAE,SAAS,EAAE,UAAU,CAAC,GAAmC,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;AACtF,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;AACtB,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;AACtB,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;AACtB,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;AACtB,MAAM,KAAK,GAAG,MAAM,CAAC,GAAG,C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EAAE,GAAG,GAAG,CAAC,CAAC,CAAC;AAClD;;;GAGG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,GAAG,CAAC,CAAC,CAAC;AAClD,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,GAAG,CAAC,CAAC,CAAC;AAClD,MAAM,CAAC,MAAM,UAAU,GAAG,GAAG,CAAC,IAAI,EAAE,EAAE,EAAE,GAAG,GAAG,CAAC,CAAC,CAAC;AAIjD,MAAM,QAAQ,GAAG,CAAC,MAAc,EAAE,QAAgB,EAAE,SAAiB,EAAE,EAAE,CACvE,0BAA0B,CACxB,CAAC,OAAkB,EAAE,EAAE,EAAE,CACvB,IAAI,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,CACxF,CAAC;AAEJ,MAAM,CAAC,MAAM,QAAQ,GAAG,QAAQ,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,GAAG,CAAC,CAAC,CAAC;AACrD,MAAM,CAAC,MAAM,QAAQ,GAAG,QAAQ,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,GAAG,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/sha512.js b/node_modules/@noble/curves/node_modules/@noble/hashes/esm/sha512.js deleted file mode 100644 index aaec7e49..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/sha512.js +++ /dev/null @@ -1,231 +0,0 @@ -import { SHA2 } from './_sha2.js'; -import u64 from './_u64.js'; -import { wrapConstructor } from './utils.js'; -// Round contants (first 32 bits of the fractional parts of the cube roots of the first 80 primes 2..409): -// prettier-ignore -const [SHA512_Kh, SHA512_Kl] = u64.split([ - '0x428a2f98d728ae22', '0x7137449123ef65cd', '0xb5c0fbcfec4d3b2f', '0xe9b5dba58189dbbc', - '0x3956c25bf348b538', '0x59f111f1b605d019', '0x923f82a4af194f9b', '0xab1c5ed5da6d8118', - '0xd807aa98a3030242', '0x12835b0145706fbe', '0x243185be4ee4b28c', '0x550c7dc3d5ffb4e2', - '0x72be5d74f27b896f', '0x80deb1fe3b1696b1', '0x9bdc06a725c71235', '0xc19bf174cf692694', - '0xe49b69c19ef14ad2', '0xefbe4786384f25e3', '0x0fc19dc68b8cd5b5', '0x240ca1cc77ac9c65', - '0x2de92c6f592b0275', '0x4a7484aa6ea6e483', '0x5cb0a9dcbd41fbd4', '0x76f988da831153b5', - '0x983e5152ee66dfab', '0xa831c66d2db43210', '0xb00327c898fb213f', '0xbf597fc7beef0ee4', - '0xc6e00bf33da88fc2', '0xd5a79147930aa725', '0x06ca6351e003826f', '0x142929670a0e6e70', - '0x27b70a8546d22ffc', '0x2e1b21385c26c926', '0x4d2c6dfc5ac42aed', '0x53380d139d95b3df', - '0x650a73548baf63de', '0x766a0abb3c77b2a8', '0x81c2c92e47edaee6', '0x92722c851482353b', - '0xa2bfe8a14cf10364', '0xa81a664bbc423001', '0xc24b8b70d0f89791', '0xc76c51a30654be30', - '0xd192e819d6ef5218', '0xd69906245565a910', '0xf40e35855771202a', '0x106aa07032bbd1b8', - '0x19a4c116b8d2d0c8', '0x1e376c085141ab53', '0x2748774cdf8eeb99', '0x34b0bcb5e19b48a8', - '0x391c0cb3c5c95a63', '0x4ed8aa4ae3418acb', '0x5b9cca4f7763e373', '0x682e6ff3d6b2b8a3', - '0x748f82ee5defb2fc', '0x78a5636f43172f60', '0x84c87814a1f0ab72', '0x8cc702081a6439ec', - '0x90befffa23631e28', '0xa4506cebde82bde9', '0xbef9a3f7b2c67915', '0xc67178f2e372532b', - '0xca273eceea26619c', '0xd186b8c721c0c207', '0xeada7dd6cde0eb1e', '0xf57d4f7fee6ed178', - '0x06f067aa72176fba', '0x0a637dc5a2c898a6', '0x113f9804bef90dae', '0x1b710b35131c471b', - '0x28db77f523047d84', '0x32caab7b40c72493', '0x3c9ebe0a15c9bebc', '0x431d67c49c100d4c', - '0x4cc5d4becb3e42b6', '0x597f299cfc657e2a', '0x5fcb6fab3ad6faec', '0x6c44198c4a475817' -].map(n => BigInt(n))); -// Temporary buffer, not used to store anything between runs -const SHA512_W_H = new Uint32Array(80); -const SHA512_W_L = new Uint32Array(80); -export class SHA512 extends SHA2 { - constructor() { - super(128, 64, 16, false); - // We cannot use array here since array allows indexing by variable which means optimizer/compiler cannot use registers. - // Also looks cleaner and easier to verify with spec. - // Initial state (first 32 bits of the fractional parts of the square roots of the first 8 primes 2..19): - // h -- high 32 bits, l -- low 32 bits - this.Ah = 0x6a09e667 | 0; - this.Al = 0xf3bcc908 | 0; - this.Bh = 0xbb67ae85 | 0; - this.Bl = 0x84caa73b | 0; - this.Ch = 0x3c6ef372 | 0; - this.Cl = 0xfe94f82b | 0; - this.Dh = 0xa54ff53a | 0; - this.Dl = 0x5f1d36f1 | 0; - this.Eh = 0x510e527f | 0; - this.El = 0xade682d1 | 0; - this.Fh = 0x9b05688c | 0; - this.Fl = 0x2b3e6c1f | 0; - this.Gh = 0x1f83d9ab | 0; - this.Gl = 0xfb41bd6b | 0; - this.Hh = 0x5be0cd19 | 0; - this.Hl = 0x137e2179 | 0; - } - // prettier-ignore - get() { - const { Ah, Al, Bh, Bl, Ch, Cl, Dh, Dl, Eh, El, Fh, Fl, Gh, Gl, Hh, Hl } = this; - return [Ah, Al, Bh, Bl, Ch, Cl, Dh, Dl, Eh, El, Fh, Fl, Gh, Gl, Hh, Hl]; - } - // prettier-ignore - set(Ah, Al, Bh, Bl, Ch, Cl, Dh, Dl, Eh, El, Fh, Fl, Gh, Gl, Hh, Hl) { - this.Ah = Ah | 0; - this.Al = Al | 0; - this.Bh = Bh | 0; - this.Bl = Bl | 0; - this.Ch = Ch | 0; - this.Cl = Cl | 0; - this.Dh = Dh | 0; - this.Dl = Dl | 0; - this.Eh = Eh | 0; - this.El = El | 0; - this.Fh = Fh | 0; - this.Fl = Fl | 0; - this.Gh = Gh | 0; - this.Gl = Gl | 0; - this.Hh = Hh | 0; - this.Hl = Hl | 0; - } - process(view, offset) { - // Extend the first 16 words into the remaining 64 words w[16..79] of the message schedule array - for (let i = 0; i < 16; i++, offset += 4) { - SHA512_W_H[i] = view.getUint32(offset); - SHA512_W_L[i] = view.getUint32((offset += 4)); - } - for (let i = 16; i < 80; i++) { - // s0 := (w[i-15] rightrotate 1) xor (w[i-15] rightrotate 8) xor (w[i-15] rightshift 7) - const W15h = SHA512_W_H[i - 15] | 0; - const W15l = SHA512_W_L[i - 15] | 0; - const s0h = u64.rotrSH(W15h, W15l, 1) ^ u64.rotrSH(W15h, W15l, 8) ^ u64.shrSH(W15h, W15l, 7); - const s0l = u64.rotrSL(W15h, W15l, 1) ^ u64.rotrSL(W15h, W15l, 8) ^ u64.shrSL(W15h, W15l, 7); - // s1 := (w[i-2] rightrotate 19) xor (w[i-2] rightrotate 61) xor (w[i-2] rightshift 6) - const W2h = SHA512_W_H[i - 2] | 0; - const W2l = SHA512_W_L[i - 2] | 0; - const s1h = u64.rotrSH(W2h, W2l, 19) ^ u64.rotrBH(W2h, W2l, 61) ^ u64.shrSH(W2h, W2l, 6); - const s1l = u64.rotrSL(W2h, W2l, 19) ^ u64.rotrBL(W2h, W2l, 61) ^ u64.shrSL(W2h, W2l, 6); - // SHA256_W[i] = s0 + s1 + SHA256_W[i - 7] + SHA256_W[i - 16]; - const SUMl = u64.add4L(s0l, s1l, SHA512_W_L[i - 7], SHA512_W_L[i - 16]); - const SUMh = u64.add4H(SUMl, s0h, s1h, SHA512_W_H[i - 7], SHA512_W_H[i - 16]); - SHA512_W_H[i] = SUMh | 0; - SHA512_W_L[i] = SUMl | 0; - } - let { Ah, Al, Bh, Bl, Ch, Cl, Dh, Dl, Eh, El, Fh, Fl, Gh, Gl, Hh, Hl } = this; - // Compression function main loop, 80 rounds - for (let i = 0; i < 80; i++) { - // S1 := (e rightrotate 14) xor (e rightrotate 18) xor (e rightrotate 41) - const sigma1h = u64.rotrSH(Eh, El, 14) ^ u64.rotrSH(Eh, El, 18) ^ u64.rotrBH(Eh, El, 41); - const sigma1l = u64.rotrSL(Eh, El, 14) ^ u64.rotrSL(Eh, El, 18) ^ u64.rotrBL(Eh, El, 41); - //const T1 = (H + sigma1 + Chi(E, F, G) + SHA256_K[i] + SHA256_W[i]) | 0; - const CHIh = (Eh & Fh) ^ (~Eh & Gh); - const CHIl = (El & Fl) ^ (~El & Gl); - // T1 = H + sigma1 + Chi(E, F, G) + SHA512_K[i] + SHA512_W[i] - // prettier-ignore - const T1ll = u64.add5L(Hl, sigma1l, CHIl, SHA512_Kl[i], SHA512_W_L[i]); - const T1h = u64.add5H(T1ll, Hh, sigma1h, CHIh, SHA512_Kh[i], SHA512_W_H[i]); - const T1l = T1ll | 0; - // S0 := (a rightrotate 28) xor (a rightrotate 34) xor (a rightrotate 39) - const sigma0h = u64.rotrSH(Ah, Al, 28) ^ u64.rotrBH(Ah, Al, 34) ^ u64.rotrBH(Ah, Al, 39); - const sigma0l = u64.rotrSL(Ah, Al, 28) ^ u64.rotrBL(Ah, Al, 34) ^ u64.rotrBL(Ah, Al, 39); - const MAJh = (Ah & Bh) ^ (Ah & Ch) ^ (Bh & Ch); - const MAJl = (Al & Bl) ^ (Al & Cl) ^ (Bl & Cl); - Hh = Gh | 0; - Hl = Gl | 0; - Gh = Fh | 0; - Gl = Fl | 0; - Fh = Eh | 0; - Fl = El | 0; - ({ h: Eh, l: El } = u64.add(Dh | 0, Dl | 0, T1h | 0, T1l | 0)); - Dh = Ch | 0; - Dl = Cl | 0; - Ch = Bh | 0; - Cl = Bl | 0; - Bh = Ah | 0; - Bl = Al | 0; - const All = u64.add3L(T1l, sigma0l, MAJl); - Ah = u64.add3H(All, T1h, sigma0h, MAJh); - Al = All | 0; - } - // Add the compressed chunk to the current hash value - ({ h: Ah, l: Al } = u64.add(this.Ah | 0, this.Al | 0, Ah | 0, Al | 0)); - ({ h: Bh, l: Bl } = u64.add(this.Bh | 0, this.Bl | 0, Bh | 0, Bl | 0)); - ({ h: Ch, l: Cl } = u64.add(this.Ch | 0, this.Cl | 0, Ch | 0, Cl | 0)); - ({ h: Dh, l: Dl } = u64.add(this.Dh | 0, this.Dl | 0, Dh | 0, Dl | 0)); - ({ h: Eh, l: El } = u64.add(this.Eh | 0, this.El | 0, Eh | 0, El | 0)); - ({ h: Fh, l: Fl } = u64.add(this.Fh | 0, this.Fl | 0, Fh | 0, Fl | 0)); - ({ h: Gh, l: Gl } = u64.add(this.Gh | 0, this.Gl | 0, Gh | 0, Gl | 0)); - ({ h: Hh, l: Hl } = u64.add(this.Hh | 0, this.Hl | 0, Hh | 0, Hl | 0)); - this.set(Ah, Al, Bh, Bl, Ch, Cl, Dh, Dl, Eh, El, Fh, Fl, Gh, Gl, Hh, Hl); - } - roundClean() { - SHA512_W_H.fill(0); - SHA512_W_L.fill(0); - } - destroy() { - this.buffer.fill(0); - this.set(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); - } -} -class SHA512_224 extends SHA512 { - constructor() { - super(); - // h -- high 32 bits, l -- low 32 bits - this.Ah = 0x8c3d37c8 | 0; - this.Al = 0x19544da2 | 0; - this.Bh = 0x73e19966 | 0; - this.Bl = 0x89dcd4d6 | 0; - this.Ch = 0x1dfab7ae | 0; - this.Cl = 0x32ff9c82 | 0; - this.Dh = 0x679dd514 | 0; - this.Dl = 0x582f9fcf | 0; - this.Eh = 0x0f6d2b69 | 0; - this.El = 0x7bd44da8 | 0; - this.Fh = 0x77e36f73 | 0; - this.Fl = 0x04c48942 | 0; - this.Gh = 0x3f9d85a8 | 0; - this.Gl = 0x6a1d36c8 | 0; - this.Hh = 0x1112e6ad | 0; - this.Hl = 0x91d692a1 | 0; - this.outputLen = 28; - } -} -class SHA512_256 extends SHA512 { - constructor() { - super(); - // h -- high 32 bits, l -- low 32 bits - this.Ah = 0x22312194 | 0; - this.Al = 0xfc2bf72c | 0; - this.Bh = 0x9f555fa3 | 0; - this.Bl = 0xc84c64c2 | 0; - this.Ch = 0x2393b86b | 0; - this.Cl = 0x6f53b151 | 0; - this.Dh = 0x96387719 | 0; - this.Dl = 0x5940eabd | 0; - this.Eh = 0x96283ee2 | 0; - this.El = 0xa88effe3 | 0; - this.Fh = 0xbe5e1e25 | 0; - this.Fl = 0x53863992 | 0; - this.Gh = 0x2b0199fc | 0; - this.Gl = 0x2c85b8aa | 0; - this.Hh = 0x0eb72ddc | 0; - this.Hl = 0x81c52ca2 | 0; - this.outputLen = 32; - } -} -class SHA384 extends SHA512 { - constructor() { - super(); - // h -- high 32 bits, l -- low 32 bits - this.Ah = 0xcbbb9d5d | 0; - this.Al = 0xc1059ed8 | 0; - this.Bh = 0x629a292a | 0; - this.Bl = 0x367cd507 | 0; - this.Ch = 0x9159015a | 0; - this.Cl = 0x3070dd17 | 0; - this.Dh = 0x152fecd8 | 0; - this.Dl = 0xf70e5939 | 0; - this.Eh = 0x67332667 | 0; - this.El = 0xffc00b31 | 0; - this.Fh = 0x8eb44a87 | 0; - this.Fl = 0x68581511 | 0; - this.Gh = 0xdb0c2e0d | 0; - this.Gl = 0x64f98fa7 | 0; - this.Hh = 0x47b5481d | 0; - this.Hl = 0xbefa4fa4 | 0; - this.outputLen = 48; - } -} -export const sha512 = wrapConstructor(() => new SHA512()); -export const sha512_224 = wrapConstructor(() => new SHA512_224()); -export const sha512_256 = wrapConstructor(() => new SHA512_256()); -export const sha384 = wrapConstructor(() => new SHA384()); -//# sourceMappingURL=sha512.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/sha512.js.map b/node_modules/@noble/curves/node_modules/@noble/hashes/esm/sha512.js.map deleted file mode 100644 index e06ea233..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/sha512.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sha512.js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AE,GAAG,UAAU,GAAG,CAAC,CAAC;QACpB,OAAE,GAAG,UAAU,GAAG,CAAC,CAAC;QACpB,OAAE,GAAG,UAAU,GAAG,CAAC,CAAC;QACpB,OAAE,GAAG,UAAU,GAAG,CAAC,CAAC;QACpB,OAAE,GAAG,UAAU,GAAG,CAAC,CAAC;QACpB,OAAE,GAAG,UAAU,GAAG,CAAC,CAAC;QACpB,OAAE,GAAG,UAAU,GAAG,CAAC,CAAC;QACpB,OAAE,GAAG,UAAU,GAAG,CAAC,CAAC;QACpB,OAAE,GAAG,UAAU,GAAG,CAAC,CAAC;QACpB,OAAE,GAAG,UAAU,GAAG,CAAC,CAAC;QACpB,OAAE,GAAG,UAAU,GAAG,CAAC,CAAC;QACpB,OAAE,GAAG,UAAU,GAAG,CAAC,CAAC;QACpB,OAAE,GAAG,UAAU,GAAG,CAAC,CAAC;QACpB,OAAE,GAAG,UAAU,GAAG,CAAC,CAAC;QACpB,OAAE,GAAG,UAAU,GAAG,CAAC,CAAC;QACpB,OAAE,GAAG,UAAU,GAAG,CAAC,CAAC;QAIlB,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC;IACtB,CAAC;CACF;AAED,MAAM,CAAC,MAAM,MAAM,GAAG,eAAe,CAAC,GAAG,EAAE,CAAC,IAAI,MAAM,EAAE,CAAC,CAAC;AAC1D,MAAM,CAAC,MAAM,UAAU,GAAG,eAAe,CAAC,GAAG,EAAE,CAAC,IAAI,UAAU,EAAE,CAAC,CAAC;AAClE,MAAM,CAAC,MAAM,UAAU,GAAG,eAAe,CAAC,GAAG,EAAE,CAAC,IAAI,UAAU,EAAE,CAAC,CAAC;AAClE,MAAM,CAAC,MAAM,MAAM,GAAG,eAAe,CAAC,GAAG,EAAE,CAAC,IAAI,MAAM,EAAE,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/utils.js b/node_modules/@noble/curves/node_modules/@noble/hashes/esm/utils.js deleted file mode 100644 index 59e86f53..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/utils.js +++ /dev/null @@ -1,155 +0,0 @@ -/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */ -// We use WebCrypto aka globalThis.crypto, which exists in browsers and node.js 16+. -// node.js versions earlier than v19 don't declare it in global scope. -// For node.js, package.json#exports field mapping rewrites import -// from `crypto` to `cryptoNode`, which imports native module. -// Makes the utils un-importable in browsers without a bundler. -// Once node.js 18 is deprecated, we can just drop the import. -import { crypto } from '@noble/hashes/crypto'; -const u8a = (a) => a instanceof Uint8Array; -// Cast array to different type -export const u8 = (arr) => new Uint8Array(arr.buffer, arr.byteOffset, arr.byteLength); -export const u32 = (arr) => new Uint32Array(arr.buffer, arr.byteOffset, Math.floor(arr.byteLength / 4)); -// Cast array to view -export const createView = (arr) => new DataView(arr.buffer, arr.byteOffset, arr.byteLength); -// The rotate right (circular right shift) operation for uint32 -export const rotr = (word, shift) => (word << (32 - shift)) | (word >>> shift); -// big-endian hardware is rare. Just in case someone still decides to run hashes: -// early-throw an error because we don't support BE yet. -export const isLE = new Uint8Array(new Uint32Array([0x11223344]).buffer)[0] === 0x44; -if (!isLE) - throw new Error('Non little-endian hardware is not supported'); -const hexes = Array.from({ length: 256 }, (v, i) => i.toString(16).padStart(2, '0')); -/** - * @example bytesToHex(Uint8Array.from([0xca, 0xfe, 0x01, 0x23])) // 'cafe0123' - */ -export function bytesToHex(bytes) { - if (!u8a(bytes)) - throw new Error('Uint8Array expected'); - // pre-caching improves the speed 6x - let hex = ''; - for (let i = 0; i < bytes.length; i++) { - hex += hexes[bytes[i]]; - } - return hex; -} -/** - * @example hexToBytes('cafe0123') // Uint8Array.from([0xca, 0xfe, 0x01, 0x23]) - */ -export function hexToBytes(hex) { - if (typeof hex !== 'string') - throw new Error('hex string expected, got ' + typeof hex); - const len = hex.length; - if (len % 2) - throw new Error('padded hex string expected, got unpadded hex of length ' + len); - const array = new Uint8Array(len / 2); - for (let i = 0; i < array.length; i++) { - const j = i * 2; - const hexByte = hex.slice(j, j + 2); - const byte = Number.parseInt(hexByte, 16); - if (Number.isNaN(byte) || byte < 0) - throw new Error('Invalid byte sequence'); - array[i] = byte; - } - return array; -} -// There is no setImmediate in browser and setTimeout is slow. -// call of async fn will return Promise, which will be fullfiled only on -// next scheduler queue processing step and this is exactly what we need. -export const nextTick = async () => { }; -// Returns control to thread each 'tick' ms to avoid blocking -export async function asyncLoop(iters, tick, cb) { - let ts = Date.now(); - for (let i = 0; i < iters; i++) { - cb(i); - // Date.now() is not monotonic, so in case if clock goes backwards we return return control too - const diff = Date.now() - ts; - if (diff >= 0 && diff < tick) - continue; - await nextTick(); - ts += diff; - } -} -/** - * @example utf8ToBytes('abc') // new Uint8Array([97, 98, 99]) - */ -export function utf8ToBytes(str) { - if (typeof str !== 'string') - throw new Error(`utf8ToBytes expected string, got ${typeof str}`); - return new Uint8Array(new TextEncoder().encode(str)); // https://bugzil.la/1681809 -} -/** - * Normalizes (non-hex) string or Uint8Array to Uint8Array. - * Warning: when Uint8Array is passed, it would NOT get copied. - * Keep in mind for future mutable operations. - */ -export function toBytes(data) { - if (typeof data === 'string') - data = utf8ToBytes(data); - if (!u8a(data)) - throw new Error(`expected Uint8Array, got ${typeof data}`); - return data; -} -/** - * Copies several Uint8Arrays into one. - */ -export function concatBytes(...arrays) { - const r = new Uint8Array(arrays.reduce((sum, a) => sum + a.length, 0)); - let pad = 0; // walk through each item, ensure they have proper type - arrays.forEach((a) => { - if (!u8a(a)) - throw new Error('Uint8Array expected'); - r.set(a, pad); - pad += a.length; - }); - return r; -} -// For runtime check if class implements interface -export class Hash { - // Safe version that clones internal state - clone() { - return this._cloneInto(); - } -} -// Check if object doens't have custom constructor (like Uint8Array/Array) -const isPlainObject = (obj) => Object.prototype.toString.call(obj) === '[object Object]' && obj.constructor === Object; -export function checkOpts(defaults, opts) { - if (opts !== undefined && (typeof opts !== 'object' || !isPlainObject(opts))) - throw new Error('Options should be object or undefined'); - const merged = Object.assign(defaults, opts); - return merged; -} -export function wrapConstructor(hashCons) { - const hashC = (msg) => hashCons().update(toBytes(msg)).digest(); - const tmp = hashCons(); - hashC.outputLen = tmp.outputLen; - hashC.blockLen = tmp.blockLen; - hashC.create = () => hashCons(); - return hashC; -} -export function wrapConstructorWithOpts(hashCons) { - const hashC = (msg, opts) => hashCons(opts).update(toBytes(msg)).digest(); - const tmp = hashCons({}); - hashC.outputLen = tmp.outputLen; - hashC.blockLen = tmp.blockLen; - hashC.create = (opts) => hashCons(opts); - return hashC; -} -export function wrapXOFConstructorWithOpts(hashCons) { - const hashC = (msg, opts) => hashCons(opts).update(toBytes(msg)).digest(); - const tmp = hashCons({}); - hashC.outputLen = tmp.outputLen; - hashC.blockLen = tmp.blockLen; - hashC.create = (opts) => hashCons(opts); - return hashC; -} -/** - * Secure PRNG. Uses `crypto.getRandomValues`, which defers to OS. - */ -export function randomBytes(bytesLength = 32) { - if (crypto && typeof crypto.getRandomValues === 'function') { - return crypto.getRandomValues(new Uint8Array(bytesLength)); - } - throw new Error('crypto.getRandomValues must be defined'); -} -//# sourceMappingURL=utils.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/utils.js.map b/node_modules/@noble/curves/node_modules/@noble/hashes/esm/utils.js.map deleted file mode 100644 index 82e39542..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/esm/utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,sEAAsE;AAEtE,oFAAoF;AACpF,sEAAsE;AACtE,kEAAkE;AAClE,8DAA8D;AAC9D,+DAA+D;AAC/D,8DAA8D;AAC9D,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAM9C,MAAM,GAAG,GAAG,CAAC,CAAM,EAAmB,EAAE,CAAC,CAAC,YAAY,UAAU,CAAC;AACjE,+BAA+B;AAC/B,MAAM,CAAC,MAAM,EAAE,G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AAC;IAC9B,KAAK,CAAC,MAAM,GAAG,CAAC,IAAO,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC3C,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,WAAW,CAAC,WAAW,GAAG,EAAE;IAC1C,IAAI,MAAM,IAAI,OAAO,MAAM,CAAC,eAAe,KAAK,UAAU,EAAE;QAC1D,OAAO,MAAM,CAAC,eAAe,CAAC,IAAI,UAAU,CAAC,WAAW,CAAC,CAAC,CAAC;KAC5D;IACD,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;AAC5D,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/hkdf.d.ts b/node_modules/@noble/curves/node_modules/@noble/hashes/hkdf.d.ts deleted file mode 100644 index e1d683bc..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/hkdf.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { CHash, Input } from './utils.js'; -/** - * HKDF-Extract(IKM, salt) -> PRK - * Arguments position differs from spec (IKM is first one, since it is not optional) - * @param hash - * @param ikm - * @param salt - * @returns - */ -export declare function extract(hash: CHash, ikm: Input, salt?: Input): Uint8Array; -/** - * HKDF-expand from the spec. - * @param prk - a pseudorandom key of at least HashLen octets (usually, the output from the extract step) - * @param info - optional context and application specific information (can be a zero-length string) - * @param length - length of output keying material in octets - */ -export declare function expand(hash: CHash, prk: Input, info?: Input, length?: number): Uint8Array; -/** - * HKDF (RFC 5869): extract + expand in one step. - * @param hash - hash function that would be used (e.g. sha256) - * @param ikm - input keying material, the initial key - * @param salt - optional salt value (a non-secret random value) - * @param info - optional context and application specific information - * @param length - length of output keying material in octets - */ -export declare const hkdf: (hash: CHash, ikm: Input, salt: Input | undefined, info: Input | undefined, length: number) => Uint8Array; diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/hkdf.js b/node_modules/@noble/curves/node_modules/@noble/hashes/hkdf.js deleted file mode 100644 index 66dc8ba1..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/hkdf.js +++ /dev/null @@ -1,78 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.hkdf = exports.expand = exports.extract = void 0; -const _assert_js_1 = require("./_assert.js"); -const utils_js_1 = require("./utils.js"); -const hmac_js_1 = require("./hmac.js"); -// HKDF (RFC 5869) -// https://soatok.blog/2021/11/17/understanding-hkdf/ -/** - * HKDF-Extract(IKM, salt) -> PRK - * Arguments position differs from spec (IKM is first one, since it is not optional) - * @param hash - * @param ikm - * @param salt - * @returns - */ -function extract(hash, ikm, salt) { - _assert_js_1.default.hash(hash); - // NOTE: some libraries treat zero-length array as 'not provided'; - // we don't, since we have undefined as 'not provided' - // https://github.com/RustCrypto/KDFs/issues/15 - if (salt === undefined) - salt = new Uint8Array(hash.outputLen); // if not provided, it is set to a string of HashLen zeros - return (0, hmac_js_1.hmac)(hash, (0, utils_js_1.toBytes)(salt), (0, utils_js_1.toBytes)(ikm)); -} -exports.extract = extract; -// HKDF-Expand(PRK, info, L) -> OKM -const HKDF_COUNTER = new Uint8Array([0]); -const EMPTY_BUFFER = new Uint8Array(); -/** - * HKDF-expand from the spec. - * @param prk - a pseudorandom key of at least HashLen octets (usually, the output from the extract step) - * @param info - optional context and application specific information (can be a zero-length string) - * @param length - length of output keying material in octets - */ -function expand(hash, prk, info, length = 32) { - _assert_js_1.default.hash(hash); - _assert_js_1.default.number(length); - if (length > 255 * hash.outputLen) - throw new Error('Length should be <= 255*HashLen'); - const blocks = Math.ceil(length / hash.outputLen); - if (info === undefined) - info = EMPTY_BUFFER; - // first L(ength) octets of T - const okm = new Uint8Array(blocks * hash.outputLen); - // Re-use HMAC instance between blocks - const HMAC = hmac_js_1.hmac.create(hash, prk); - const HMACTmp = HMAC._cloneInto(); - const T = new Uint8Array(HMAC.outputLen); - for (let counter = 0; counter < blocks; counter++) { - HKDF_COUNTER[0] = counter + 1; - // T(0) = empty string (zero length) - // T(N) = HMAC-Hash(PRK, T(N-1) | info | N) - HMACTmp.update(counter === 0 ? EMPTY_BUFFER : T) - .update(info) - .update(HKDF_COUNTER) - .digestInto(T); - okm.set(T, hash.outputLen * counter); - HMAC._cloneInto(HMACTmp); - } - HMAC.destroy(); - HMACTmp.destroy(); - T.fill(0); - HKDF_COUNTER.fill(0); - return okm.slice(0, length); -} -exports.expand = expand; -/** - * HKDF (RFC 5869): extract + expand in one step. - * @param hash - hash function that would be used (e.g. sha256) - * @param ikm - input keying material, the initial key - * @param salt - optional salt value (a non-secret random value) - * @param info - optional context and application specific information - * @param length - length of output keying material in octets - */ -const hkdf = (hash, ikm, salt, info, length) => expand(hash, extract(hash, ikm, salt), info, length); -exports.hkdf = hkdf; -//# sourceMappingURL=hkdf.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/hkdf.js.map b/node_modules/@noble/curves/node_modules/@noble/hashes/hkdf.js.map deleted file mode 100644 index 998a82f8..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/hkdf.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"hkdf.js","sourceRoot":"","sources":["src/hkdf.ts"],"names":[],"mappings":";;;AAAA,6CAAkC;AAClC,yCAAmD;AACnD,uCAAiC;AAEjC,kBAAkB;AAClB,qDAAqD;AAErD;;;;;;;GAOG;AACH,SAAgB,OAAO,CAAC,IAAW,EAAE,GAAU,EAAE,IAAY;IAC3D,oBAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAClB,kEAAkE;IAClE,sDAAsD;IACtD,+CAA+C;IAC/C,IAAI,IAAI,KAAK,SAAS;QAAE,IAAI,GAAG,IAAI,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,0DAA0D;IACzH,OAAO,IAAA,cAAI,EAAC,IAAI,EAAE,IAAA,kBAAO,EAAC,IAAI,CAAC,EAAE,IAAA,kBAAO,EAAC,GAAG,CAAC,CAAC,CA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CAAC;aACZ,MAAM,CAAC,YAAY,CAAC;aACpB,UAAU,CAAC,CAAC,CAAC,CAAC;QACjB,GAAG,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,CAAC;QACrC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;KAC1B;IACD,IAAI,CAAC,OAAO,EAAE,CAAC;IACf,OAAO,CAAC,OAAO,EAAE,CAAC;IAClB,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACV,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACrB,OAAO,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;AAC9B,CAAC;AA5BD,wBA4BC;AAED;;;;;;;GAOG;AACI,MAAM,IAAI,GAAG,CAClB,IAAW,EACX,GAAU,EACV,IAAuB,EACvB,IAAuB,EACvB,MAAc,EACd,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;AAN7C,QAAA,IAAI,QAMyC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/hmac.d.ts b/node_modules/@noble/curves/node_modules/@noble/hashes/hmac.d.ts deleted file mode 100644 index 63db656c..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/hmac.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { Hash, CHash, Input } from './utils.js'; -export declare class HMAC> extends Hash> { - oHash: T; - iHash: T; - blockLen: number; - outputLen: number; - private finished; - private destroyed; - constructor(hash: CHash, _key: Input); - update(buf: Input): this; - digestInto(out: Uint8Array): void; - digest(): Uint8Array; - _cloneInto(to?: HMAC): HMAC; - destroy(): void; -} -/** - * HMAC: RFC2104 message authentication code. - * @param hash - function that would be used e.g. sha256 - * @param key - message key - * @param message - message data - */ -export declare const hmac: { - (hash: CHash, key: Input, message: Input): Uint8Array; - create(hash: CHash, key: Input): HMAC; -}; diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/hmac.js b/node_modules/@noble/curves/node_modules/@noble/hashes/hmac.js deleted file mode 100644 index 4b2998e3..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/hmac.js +++ /dev/null @@ -1,82 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.hmac = exports.HMAC = void 0; -const _assert_js_1 = require("./_assert.js"); -const utils_js_1 = require("./utils.js"); -// HMAC (RFC 2104) -class HMAC extends utils_js_1.Hash { - constructor(hash, _key) { - super(); - this.finished = false; - this.destroyed = false; - _assert_js_1.default.hash(hash); - const key = (0, utils_js_1.toBytes)(_key); - this.iHash = hash.create(); - if (typeof this.iHash.update !== 'function') - throw new Error('Expected instance of class which extends utils.Hash'); - this.blockLen = this.iHash.blockLen; - this.outputLen = this.iHash.outputLen; - const blockLen = this.blockLen; - const pad = new Uint8Array(blockLen); - // blockLen can be bigger than outputLen - pad.set(key.length > blockLen ? hash.create().update(key).digest() : key); - for (let i = 0; i < pad.length; i++) - pad[i] ^= 0x36; - this.iHash.update(pad); - // By doing update (processing of first block) of outer hash here we can re-use it between multiple calls via clone - this.oHash = hash.create(); - // Undo internal XOR && apply outer XOR - for (let i = 0; i < pad.length; i++) - pad[i] ^= 0x36 ^ 0x5c; - this.oHash.update(pad); - pad.fill(0); - } - update(buf) { - _assert_js_1.default.exists(this); - this.iHash.update(buf); - return this; - } - digestInto(out) { - _assert_js_1.default.exists(this); - _assert_js_1.default.bytes(out, this.outputLen); - this.finished = true; - this.iHash.digestInto(out); - this.oHash.update(out); - this.oHash.digestInto(out); - this.destroy(); - } - digest() { - const out = new Uint8Array(this.oHash.outputLen); - this.digestInto(out); - return out; - } - _cloneInto(to) { - // Create new instance without calling constructor since key already in state and we don't know it. - to || (to = Object.create(Object.getPrototypeOf(this), {})); - const { oHash, iHash, finished, destroyed, blockLen, outputLen } = this; - to = to; - to.finished = finished; - to.destroyed = destroyed; - to.blockLen = blockLen; - to.outputLen = outputLen; - to.oHash = oHash._cloneInto(to.oHash); - to.iHash = iHash._cloneInto(to.iHash); - return to; - } - destroy() { - this.destroyed = true; - this.oHash.destroy(); - this.iHash.destroy(); - } -} -exports.HMAC = HMAC; -/** - * HMAC: RFC2104 message authentication code. - * @param hash - function that would be used e.g. sha256 - * @param key - message key - * @param message - message data - */ -const hmac = (hash, key, message) => new HMAC(hash, key).update(message).digest(); -exports.hmac = hmac; -exports.hmac.create = (hash, key) => new HMAC(hash, key); -//# sourceMappingURL=hmac.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/hmac.js.map b/node_modules/@noble/curves/node_modules/@noble/hashes/hmac.js.map deleted file mode 100644 index a417288f..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/hmac.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"hmac.js","sourceRoot":"","sources":["src/hmac.ts"],"names":[],"mappings":";;;AAAA,6CAAkC;AAClC,yCAAyD;AACzD,kBAAkB;AAClB,MAAa,IAAwB,SAAQ,eAAa;IAQxD,YAAY,IAAW,EAAE,IAAW;QAClC,KAAK,EAAE,CAAC;QAJF,aAAQ,GAAG,KAAK,CAAC;QACjB,cAAS,GAAG,KAAK,CAAC;QAIxB,oBAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;QAClB,MAAM,GAAG,GAAG,IAAA,kBAAO,EAAC,IAAI,CAAC,CAAC;QAC1B,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,MAAM,EAAO,CAAC;QAChC,IAAI,OAAO,IAAI,CAAC,KAAK,CAAC,MAAM,KAAK,UAAU;YACzC,MAAM,IAAI,KAAK,CAAC,qDAAqD,CAAC,CAAC;QACzE,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,KAAK,CAAC,QAAQ,CAAC;QACpC,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC,KAAK,CAAC,SAA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;IACvB,CAAC;CACF;AAnED,oBAmEC;AAED;;;;;GAKG;AACI,MAAM,IAAI,GAAG,CAAC,IAAW,EAAE,GAAU,EAAE,OAAc,EAAc,EAAE,CAC1E,IAAI,IAAI,CAAM,IAAI,EAAE,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,CAAC;AADvC,QAAA,IAAI,QACmC;AACpD,YAAI,CAAC,MAAM,GAAG,CAAC,IAAW,EAAE,GAAU,EAAE,EAAE,CAAC,IAAI,IAAI,CAAM,IAAI,EAAE,GAAG,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/index.d.ts b/node_modules/@noble/curves/node_modules/@noble/hashes/index.d.ts deleted file mode 100644 index e69de29b..00000000 diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/index.js b/node_modules/@noble/curves/node_modules/@noble/hashes/index.js deleted file mode 100644 index 2299d7f9..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -throw new Error('noble-hashes have no entry-point: consult README for usage'); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/index.js.map b/node_modules/@noble/curves/node_modules/@noble/hashes/index.js.map deleted file mode 100644 index b71bae62..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":";AAAA,MAAM,IAAI,KAAK,CAAC,4DAA4D,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/package.json b/node_modules/@noble/curves/node_modules/@noble/hashes/package.json deleted file mode 100644 index b8fd0f04..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/package.json +++ /dev/null @@ -1,173 +0,0 @@ -{ - "name": "@noble/hashes", - "version": "1.3.1", - "description": "Audited & minimal 0-dependency JS implementation of SHA2, SHA3, RIPEMD, BLAKE2/3, HMAC, HKDF, PBKDF2, Scrypt", - "files": [ - "/*.js", - "/*.d.ts", - "/*.js.map", - "esm", - "src/*.ts" - ], - "scripts": { - "bench": "node benchmark/index.js noble", - "bench:all": "node benchmark/index.js", - "bench:install": "cd benchmark && npm install && cd ../../", - "build": "npm run build:clean; tsc && tsc -p tsconfig.esm.json", - "build:release": "cd build; npm i; npm run build", - "build:clean": "rm *.{js,d.ts,js.map} esm/*.{js,js.map} 2> /dev/null", - "lint": "prettier --check 'src/**/*.{js,ts}' 'test/**/*.{js,ts}'", - "format": "prettier --write 'src/**/*.{js,ts}' 'test/**/*.{js,ts}'", - "test": "node test/index.js", - "test:dos": "node test/slow-dos.test.js", - "test:big": "node test/slow-big.test.js" - }, - "author": "Paul Miller (https://paulmillr.com)", - "homepage": "https://paulmillr.com/noble/", - "repository": { - "type": "git", - "url": "https://github.com/paulmillr/noble-hashes.git" - }, - "license": "MIT", - "browser": { - "node:crypto": false, - "./crypto": "./crypto.js" - }, - "devDependencies": { - "micro-bmark": "0.3.1", - "micro-should": "0.4.0", - "prettier": "2.8.4", - "typescript": "5.0.2" - }, - "engines": { - "node": ">= 16" - }, - "exports": { - ".": { - "types": "./index.d.ts", - "import": "./esm/index.js", - "default": "./index.js" - }, - "./crypto": { - "types": "./crypto.d.ts", - "node": { - "import": "./esm/cryptoNode.js", - "default": "./cryptoNode.js" - }, - "import": "./esm/crypto.js", - "default": "./crypto.js" - }, - "./_assert": { - "types": "./_assert.d.ts", - "import": "./esm/_assert.js", - "default": "./_assert.js" - }, - "./_sha2": { - "types": "./_sha2.d.ts", - "import": "./esm/_sha2.js", - "default": "./_sha2.js" - }, - "./argon2": { - "types": "./argon2.d.ts", - "import": "./esm/argon2.js", - "default": "./argon2.js" - }, - "./blake2b": { - "types": "./blake2b.d.ts", - "import": "./esm/blake2b.js", - "default": "./blake2b.js" - }, - "./blake2s": { - "types": "./blake2s.d.ts", - "import": "./esm/blake2s.js", - "default": "./blake2s.js" - }, - "./blake3": { - "types": "./blake3.d.ts", - "import": "./esm/blake3.js", - "default": "./blake3.js" - }, - "./eskdf": { - "types": "./eskdf.d.ts", - "import": "./esm/eskdf.js", - "default": "./eskdf.js" - }, - "./hkdf": { - "types": "./hkdf.d.ts", - "import": "./esm/hkdf.js", - "default": "./hkdf.js" - }, - "./hmac": { - "types": "./hmac.d.ts", - "import": "./esm/hmac.js", - "default": "./hmac.js" - }, - "./pbkdf2": { - "types": "./pbkdf2.d.ts", - "import": "./esm/pbkdf2.js", - "default": "./pbkdf2.js" - }, - "./ripemd160": { - "types": "./ripemd160.d.ts", - "import": "./esm/ripemd160.js", - "default": "./ripemd160.js" - }, - "./scrypt": { - "types": "./scrypt.d.ts", - "import": "./esm/scrypt.js", - "default": "./scrypt.js" - }, - "./sha1": { - "types": "./sha1.d.ts", - "import": "./esm/sha1.js", - "default": "./sha1.js" - }, - "./sha3-addons": { - "types": "./sha3-addons.d.ts", - "import": "./esm/sha3-addons.js", - "default": "./sha3-addons.js" - }, - "./sha3": { - "types": "./sha3.d.ts", - "import": "./esm/sha3.js", - "default": "./sha3.js" - }, - "./sha256": { - "types": "./sha256.d.ts", - "import": "./esm/sha256.js", - "default": "./sha256.js" - }, - "./sha512": { - "types": "./sha512.d.ts", - "import": "./esm/sha512.js", - "default": "./sha512.js" - }, - "./utils": { - "types": "./utils.d.ts", - "import": "./esm/utils.js", - "default": "./utils.js" - } - }, - "keywords": [ - "sha", - "sha2", - "sha3", - "sha256", - "sha512", - "keccak", - "kangarootwelve", - "ripemd160", - "blake2", - "blake3", - "hmac", - "hkdf", - "pbkdf2", - "scrypt", - "kdf", - "hash", - "cryptography", - "security", - "noble" - ], - "funding": "https://paulmillr.com/funding/" -} diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/pbkdf2.d.ts b/node_modules/@noble/curves/node_modules/@noble/hashes/pbkdf2.d.ts deleted file mode 100644 index 42f691ce..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/pbkdf2.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { CHash, Input } from './utils.js'; -export type Pbkdf2Opt = { - c: number; - dkLen?: number; - asyncTick?: number; -}; -/** - * PBKDF2-HMAC: RFC 2898 key derivation function - * @param hash - hash function that would be used e.g. sha256 - * @param password - password from which a derived key is generated - * @param salt - cryptographic salt - * @param opts - {c, dkLen} where c is work factor and dkLen is output message size - */ -export declare function pbkdf2(hash: CHash, password: Input, salt: Input, opts: Pbkdf2Opt): Uint8Array; -export declare function pbkdf2Async(hash: CHash, password: Input, salt: Input, opts: Pbkdf2Opt): Promise; diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/pbkdf2.js b/node_modules/@noble/curves/node_modules/@noble/hashes/pbkdf2.js deleted file mode 100644 index fc20a337..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/pbkdf2.js +++ /dev/null @@ -1,91 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pbkdf2Async = exports.pbkdf2 = void 0; -const _assert_js_1 = require("./_assert.js"); -const hmac_js_1 = require("./hmac.js"); -const utils_js_1 = require("./utils.js"); -// Common prologue and epilogue for sync/async functions -function pbkdf2Init(hash, _password, _salt, _opts) { - _assert_js_1.default.hash(hash); - const opts = (0, utils_js_1.checkOpts)({ dkLen: 32, asyncTick: 10 }, _opts); - const { c, dkLen, asyncTick } = opts; - _assert_js_1.default.number(c); - _assert_js_1.default.number(dkLen); - _assert_js_1.default.number(asyncTick); - if (c < 1) - throw new Error('PBKDF2: iterations (c) should be >= 1'); - const password = (0, utils_js_1.toBytes)(_password); - const salt = (0, utils_js_1.toBytes)(_salt); - // DK = PBKDF2(PRF, Password, Salt, c, dkLen); - const DK = new Uint8Array(dkLen); - // U1 = PRF(Password, Salt + INT_32_BE(i)) - const PRF = hmac_js_1.hmac.create(hash, password); - const PRFSalt = PRF._cloneInto().update(salt); - return { c, dkLen, asyncTick, DK, PRF, PRFSalt }; -} -function pbkdf2Output(PRF, PRFSalt, DK, prfW, u) { - PRF.destroy(); - PRFSalt.destroy(); - if (prfW) - prfW.destroy(); - u.fill(0); - return DK; -} -/** - * PBKDF2-HMAC: RFC 2898 key derivation function - * @param hash - hash function that would be used e.g. sha256 - * @param password - password from which a derived key is generated - * @param salt - cryptographic salt - * @param opts - {c, dkLen} where c is work factor and dkLen is output message size - */ -function pbkdf2(hash, password, salt, opts) { - const { c, dkLen, DK, PRF, PRFSalt } = pbkdf2Init(hash, password, salt, opts); - let prfW; // Working copy - const arr = new Uint8Array(4); - const view = (0, utils_js_1.createView)(arr); - const u = new Uint8Array(PRF.outputLen); - // DK = T1 + T2 + ⋯ + Tdklen/hlen - for (let ti = 1, pos = 0; pos < dkLen; ti++, pos += PRF.outputLen) { - // Ti = F(Password, Salt, c, i) - const Ti = DK.subarray(pos, pos + PRF.outputLen); - view.setInt32(0, ti, false); - // F(Password, Salt, c, i) = U1 ^ U2 ^ ⋯ ^ Uc - // U1 = PRF(Password, Salt + INT_32_BE(i)) - (prfW = PRFSalt._cloneInto(prfW)).update(arr).digestInto(u); - Ti.set(u.subarray(0, Ti.length)); - for (let ui = 1; ui < c; ui++) { - // Uc = PRF(Password, Uc−1) - PRF._cloneInto(prfW).update(u).digestInto(u); - for (let i = 0; i < Ti.length; i++) - Ti[i] ^= u[i]; - } - } - return pbkdf2Output(PRF, PRFSalt, DK, prfW, u); -} -exports.pbkdf2 = pbkdf2; -async function pbkdf2Async(hash, password, salt, opts) { - const { c, dkLen, asyncTick, DK, PRF, PRFSalt } = pbkdf2Init(hash, password, salt, opts); - let prfW; // Working copy - const arr = new Uint8Array(4); - const view = (0, utils_js_1.createView)(arr); - const u = new Uint8Array(PRF.outputLen); - // DK = T1 + T2 + ⋯ + Tdklen/hlen - for (let ti = 1, pos = 0; pos < dkLen; ti++, pos += PRF.outputLen) { - // Ti = F(Password, Salt, c, i) - const Ti = DK.subarray(pos, pos + PRF.outputLen); - view.setInt32(0, ti, false); - // F(Password, Salt, c, i) = U1 ^ U2 ^ ⋯ ^ Uc - // U1 = PRF(Password, Salt + INT_32_BE(i)) - (prfW = PRFSalt._cloneInto(prfW)).update(arr).digestInto(u); - Ti.set(u.subarray(0, Ti.length)); - await (0, utils_js_1.asyncLoop)(c - 1, asyncTick, (i) => { - // Uc = PRF(Password, Uc−1) - PRF._cloneInto(prfW).update(u).digestInto(u); - for (let i = 0; i < Ti.length; i++) - Ti[i] ^= u[i]; - }); - } - return pbkdf2Output(PRF, PRFSalt, DK, prfW, u); -} -exports.pbkdf2Async = pbkdf2Async; -//# sourceMappingURL=pbkdf2.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/pbkdf2.js.map b/node_modules/@noble/curves/node_modules/@noble/hashes/pbkdf2.js.map deleted file mode 100644 index 6af49d80..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/pbkdf2.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"pbkdf2.js","sourceRoot":"","sources":["src/pbkdf2.ts"],"names":[],"mappings":";;;AAAA,6CAAkC;AAClC,uCAAiC;AACjC,yCAA2F;AAQ3F,wDAAwD;AACxD,SAAS,UAAU,CAAC,IAAW,EAAE,SAAgB,EAAE,KAAY,EAAE,KAAgB;IAC/E,oBAAM,CAAC,IAAI,CAAC,IAAI,CAAC,CAAC;IAClB,MAAM,IAAI,GAAG,IAAA,oBAAS,EAAC,EAAE,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;IAC5D,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,IAAI,CAAC;IACrC,oBAAM,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;IACjB,oBAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;IACrB,oBAAM,CAAC,MAAM,CAAC,SAAS,CAAC,CAAC;IACzB,IAAI,CAAC,GAAG,CAAC;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AC,CAAC,CAAC,CAAC;YAC7C,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC,MAAM,EAAE,CAAC,EAAE;gBAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;QACpD,CAAC,CAAC,CAAC;KACJ;IACD,OAAO,YAAY,CAAC,GAAG,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;AACjD,CAAC;AAtBD,kCAsBC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/ripemd160.d.ts b/node_modules/@noble/curves/node_modules/@noble/hashes/ripemd160.d.ts deleted file mode 100644 index 92e662f9..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/ripemd160.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { SHA2 } from './_sha2.js'; -export declare class RIPEMD160 extends SHA2 { - private h0; - private h1; - private h2; - private h3; - private h4; - constructor(); - protected get(): [number, number, number, number, number]; - protected set(h0: number, h1: number, h2: number, h3: number, h4: number): void; - protected process(view: DataView, offset: number): void; - protected roundClean(): void; - destroy(): void; -} -/** - * RIPEMD-160 - a hash function from 1990s. - * @param message - msg that would be hashed - */ -export declare const ripemd160: { - (msg: import("./utils.js").Input): Uint8Array; - outputLen: number; - blockLen: number; - create(): import("./utils.js").Hash; -}; diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/ripemd160.js b/node_modules/@noble/curves/node_modules/@noble/hashes/ripemd160.js deleted file mode 100644 index 2f702bae..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/ripemd160.js +++ /dev/null @@ -1,104 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ripemd160 = exports.RIPEMD160 = void 0; -const _sha2_js_1 = require("./_sha2.js"); -const utils_js_1 = require("./utils.js"); -// https://homes.esat.kuleuven.be/~bosselae/ripemd160.html -// https://homes.esat.kuleuven.be/~bosselae/ripemd160/pdf/AB-9601/AB-9601.pdf -const Rho = new Uint8Array([7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8]); -const Id = Uint8Array.from({ length: 16 }, (_, i) => i); -const Pi = Id.map((i) => (9 * i + 5) % 16); -let idxL = [Id]; -let idxR = [Pi]; -for (let i = 0; i < 4; i++) - for (let j of [idxL, idxR]) - j.push(j[i].map((k) => Rho[k])); -const shifts = [ - [11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8], - [12, 13, 11, 15, 6, 9, 9, 7, 12, 15, 11, 13, 7, 8, 7, 7], - [13, 15, 14, 11, 7, 7, 6, 8, 13, 14, 13, 12, 5, 5, 6, 9], - [14, 11, 12, 14, 8, 6, 5, 5, 15, 12, 15, 14, 9, 9, 8, 6], - [15, 12, 13, 13, 9, 5, 8, 6, 14, 11, 12, 11, 8, 6, 5, 5], -].map((i) => new Uint8Array(i)); -const shiftsL = idxL.map((idx, i) => idx.map((j) => shifts[i][j])); -const shiftsR = idxR.map((idx, i) => idx.map((j) => shifts[i][j])); -const Kl = new Uint32Array([0x00000000, 0x5a827999, 0x6ed9eba1, 0x8f1bbcdc, 0xa953fd4e]); -const Kr = new Uint32Array([0x50a28be6, 0x5c4dd124, 0x6d703ef3, 0x7a6d76e9, 0x00000000]); -// The rotate left (circular left shift) operation for uint32 -const rotl = (word, shift) => (word << shift) | (word >>> (32 - shift)); -// It's called f() in spec. -function f(group, x, y, z) { - if (group === 0) - return x ^ y ^ z; - else if (group === 1) - return (x & y) | (~x & z); - else if (group === 2) - return (x | ~y) ^ z; - else if (group === 3) - return (x & z) | (y & ~z); - else - return x ^ (y | ~z); -} -// Temporary buffer, not used to store anything between runs -const BUF = new Uint32Array(16); -class RIPEMD160 extends _sha2_js_1.SHA2 { - constructor() { - super(64, 20, 8, true); - this.h0 = 0x67452301 | 0; - this.h1 = 0xefcdab89 | 0; - this.h2 = 0x98badcfe | 0; - this.h3 = 0x10325476 | 0; - this.h4 = 0xc3d2e1f0 | 0; - } - get() { - const { h0, h1, h2, h3, h4 } = this; - return [h0, h1, h2, h3, h4]; - } - set(h0, h1, h2, h3, h4) { - this.h0 = h0 | 0; - this.h1 = h1 | 0; - this.h2 = h2 | 0; - this.h3 = h3 | 0; - this.h4 = h4 | 0; - } - process(view, offset) { - for (let i = 0; i < 16; i++, offset += 4) - BUF[i] = view.getUint32(offset, true); - // prettier-ignore - let al = this.h0 | 0, ar = al, bl = this.h1 | 0, br = bl, cl = this.h2 | 0, cr = cl, dl = this.h3 | 0, dr = dl, el = this.h4 | 0, er = el; - // Instead of iterating 0 to 80, we split it into 5 groups - // And use the groups in constants, functions, etc. Much simpler - for (let group = 0; group < 5; group++) { - const rGroup = 4 - group; - const hbl = Kl[group], hbr = Kr[group]; // prettier-ignore - const rl = idxL[group], rr = idxR[group]; // prettier-ignore - const sl = shiftsL[group], sr = shiftsR[group]; // prettier-ignore - for (let i = 0; i < 16; i++) { - const tl = (rotl(al + f(group, bl, cl, dl) + BUF[rl[i]] + hbl, sl[i]) + el) | 0; - al = el, el = dl, dl = rotl(cl, 10) | 0, cl = bl, bl = tl; // prettier-ignore - } - // 2 loops are 10% faster - for (let i = 0; i < 16; i++) { - const tr = (rotl(ar + f(rGroup, br, cr, dr) + BUF[rr[i]] + hbr, sr[i]) + er) | 0; - ar = er, er = dr, dr = rotl(cr, 10) | 0, cr = br, br = tr; // prettier-ignore - } - } - // Add the compressed chunk to the current hash value - this.set((this.h1 + cl + dr) | 0, (this.h2 + dl + er) | 0, (this.h3 + el + ar) | 0, (this.h4 + al + br) | 0, (this.h0 + bl + cr) | 0); - } - roundClean() { - BUF.fill(0); - } - destroy() { - this.destroyed = true; - this.buffer.fill(0); - this.set(0, 0, 0, 0, 0); - } -} -exports.RIPEMD160 = RIPEMD160; -/** - * RIPEMD-160 - a hash function from 1990s. - * @param message - msg that would be hashed - */ -exports.ripemd160 = (0, utils_js_1.wrapConstructor)(() => new RIPEMD160()); -//# sourceMappingURL=ripemd160.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/ripemd160.js.map b/node_modules/@noble/curves/node_modules/@noble/hashes/ripemd160.js.map deleted file mode 100644 index 90c597d1..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/ripemd160.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ripemd160.js","sourceRoot":"","sources":["src/ripemd160.ts"],"names":[],"mappings":";;;AAAA,yCAAkC;AAClC,yCAA6C;AAE7C,0DAA0D;AAC1D,6EAA6E;AAC7E,MAAM,GAAG,GAAG,IAAI,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC;AACnF,MAAM,EAAE,GAAG,UAAU,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC;AACxD,MAAM,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC;AAC3C,IAAI,IAAI,GAAG,CAAC,EAAE,CAAC,CAAC;AAChB,IAAI,IAAI,GAAG,CAAC,EAAE,CAAC,CAAC;AAChB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE;IAAE,KAAK,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC;QAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAA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IACJ,CAAC;IACS,UAAU;QAClB,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACd,CAAC;IACD,OAAO;QACL,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;QACtB,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACpB,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAC1B,CAAC;CACF;AAhED,8BAgEC;AAED;;;GAGG;AACU,QAAA,SAAS,GAAG,IAAA,0BAAe,EAAC,GAAG,EAAE,CAAC,IAAI,SAAS,EAAE,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/scrypt.d.ts b/node_modules/@noble/curves/node_modules/@noble/hashes/scrypt.d.ts deleted file mode 100644 index 82485b3d..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/scrypt.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { Input } from './utils.js'; -export type ScryptOpts = { - N: number; - r: number; - p: number; - dkLen?: number; - asyncTick?: number; - maxmem?: number; - onProgress?: (progress: number) => void; -}; -/** - * Scrypt KDF from RFC 7914. - * @param password - pass - * @param salt - salt - * @param opts - parameters - * - `N` is cpu/mem work factor (power of 2 e.g. 2**18) - * - `r` is block size (8 is common), fine-tunes sequential memory read size and performance - * - `p` is parallelization factor (1 is common) - * - `dkLen` is output key length in bytes e.g. 32. - * - `asyncTick` - (default: 10) max time in ms for which async function can block execution - * - `maxmem` - (default: `1024 ** 3 + 1024` aka 1GB+1KB). A limit that the app could use for scrypt - * - `onProgress` - callback function that would be executed for progress report - * @returns Derived key - */ -export declare function scrypt(password: Input, salt: Input, opts: ScryptOpts): Uint8Array; -/** - * Scrypt KDF from RFC 7914. - */ -export declare function scryptAsync(password: Input, salt: Input, opts: ScryptOpts): Promise; diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/scrypt.js b/node_modules/@noble/curves/node_modules/@noble/hashes/scrypt.js deleted file mode 100644 index b28c8d88..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/scrypt.js +++ /dev/null @@ -1,223 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.scryptAsync = exports.scrypt = void 0; -const _assert_js_1 = require("./_assert.js"); -const sha256_js_1 = require("./sha256.js"); -const pbkdf2_js_1 = require("./pbkdf2.js"); -const utils_js_1 = require("./utils.js"); -// RFC 7914 Scrypt KDF -// Left rotate for uint32 -const rotl = (a, b) => (a << b) | (a >>> (32 - b)); -// The main Scrypt loop: uses Salsa extensively. -// Six versions of the function were tried, this is the fastest one. -// prettier-ignore -function XorAndSalsa(prev, pi, input, ii, out, oi) { - // Based on https://cr.yp.to/salsa20.html - // Xor blocks - let y00 = prev[pi++] ^ input[ii++], y01 = prev[pi++] ^ input[ii++]; - let y02 = prev[pi++] ^ input[ii++], y03 = prev[pi++] ^ input[ii++]; - let y04 = prev[pi++] ^ input[ii++], y05 = prev[pi++] ^ input[ii++]; - let y06 = prev[pi++] ^ input[ii++], y07 = prev[pi++] ^ input[ii++]; - let y08 = prev[pi++] ^ input[ii++], y09 = prev[pi++] ^ input[ii++]; - let y10 = prev[pi++] ^ input[ii++], y11 = prev[pi++] ^ input[ii++]; - let y12 = prev[pi++] ^ input[ii++], y13 = prev[pi++] ^ input[ii++]; - let y14 = prev[pi++] ^ input[ii++], y15 = prev[pi++] ^ input[ii++]; - // Save state to temporary variables (salsa) - let x00 = y00, x01 = y01, x02 = y02, x03 = y03, x04 = y04, x05 = y05, x06 = y06, x07 = y07, x08 = y08, x09 = y09, x10 = y10, x11 = y11, x12 = y12, x13 = y13, x14 = y14, x15 = y15; - // Main loop (salsa) - for (let i = 0; i < 8; i += 2) { - x04 ^= rotl(x00 + x12 | 0, 7); - x08 ^= rotl(x04 + x00 | 0, 9); - x12 ^= rotl(x08 + x04 | 0, 13); - x00 ^= rotl(x12 + x08 | 0, 18); - x09 ^= rotl(x05 + x01 | 0, 7); - x13 ^= rotl(x09 + x05 | 0, 9); - x01 ^= rotl(x13 + x09 | 0, 13); - x05 ^= rotl(x01 + x13 | 0, 18); - x14 ^= rotl(x10 + x06 | 0, 7); - x02 ^= rotl(x14 + x10 | 0, 9); - x06 ^= rotl(x02 + x14 | 0, 13); - x10 ^= rotl(x06 + x02 | 0, 18); - x03 ^= rotl(x15 + x11 | 0, 7); - x07 ^= rotl(x03 + x15 | 0, 9); - x11 ^= rotl(x07 + x03 | 0, 13); - x15 ^= rotl(x11 + x07 | 0, 18); - x01 ^= rotl(x00 + x03 | 0, 7); - x02 ^= rotl(x01 + x00 | 0, 9); - x03 ^= rotl(x02 + x01 | 0, 13); - x00 ^= rotl(x03 + x02 | 0, 18); - x06 ^= rotl(x05 + x04 | 0, 7); - x07 ^= rotl(x06 + x05 | 0, 9); - x04 ^= rotl(x07 + x06 | 0, 13); - x05 ^= rotl(x04 + x07 | 0, 18); - x11 ^= rotl(x10 + x09 | 0, 7); - x08 ^= rotl(x11 + x10 | 0, 9); - x09 ^= rotl(x08 + x11 | 0, 13); - x10 ^= rotl(x09 + x08 | 0, 18); - x12 ^= rotl(x15 + x14 | 0, 7); - x13 ^= rotl(x12 + x15 | 0, 9); - x14 ^= rotl(x13 + x12 | 0, 13); - x15 ^= rotl(x14 + x13 | 0, 18); - } - // Write output (salsa) - out[oi++] = (y00 + x00) | 0; - out[oi++] = (y01 + x01) | 0; - out[oi++] = (y02 + x02) | 0; - out[oi++] = (y03 + x03) | 0; - out[oi++] = (y04 + x04) | 0; - out[oi++] = (y05 + x05) | 0; - out[oi++] = (y06 + x06) | 0; - out[oi++] = (y07 + x07) | 0; - out[oi++] = (y08 + x08) | 0; - out[oi++] = (y09 + x09) | 0; - out[oi++] = (y10 + x10) | 0; - out[oi++] = (y11 + x11) | 0; - out[oi++] = (y12 + x12) | 0; - out[oi++] = (y13 + x13) | 0; - out[oi++] = (y14 + x14) | 0; - out[oi++] = (y15 + x15) | 0; -} -function BlockMix(input, ii, out, oi, r) { - // The block B is r 128-byte chunks (which is equivalent of 2r 64-byte chunks) - let head = oi + 0; - let tail = oi + 16 * r; - for (let i = 0; i < 16; i++) - out[tail + i] = input[ii + (2 * r - 1) * 16 + i]; // X ← B[2r−1] - for (let i = 0; i < r; i++, head += 16, ii += 16) { - // We write odd & even Yi at same time. Even: 0bXXXXX0 Odd: 0bXXXXX1 - XorAndSalsa(out, tail, input, ii, out, head); // head[i] = Salsa(blockIn[2*i] ^ tail[i-1]) - if (i > 0) - tail += 16; // First iteration overwrites tmp value in tail - XorAndSalsa(out, head, input, (ii += 16), out, tail); // tail[i] = Salsa(blockIn[2*i+1] ^ head[i]) - } -} -// Common prologue and epilogue for sync/async functions -function scryptInit(password, salt, _opts) { - // Maxmem - 1GB+1KB by default - const opts = (0, utils_js_1.checkOpts)({ - dkLen: 32, - asyncTick: 10, - maxmem: 1024 ** 3 + 1024, - }, _opts); - const { N, r, p, dkLen, asyncTick, maxmem, onProgress } = opts; - _assert_js_1.default.number(N); - _assert_js_1.default.number(r); - _assert_js_1.default.number(p); - _assert_js_1.default.number(dkLen); - _assert_js_1.default.number(asyncTick); - _assert_js_1.default.number(maxmem); - if (onProgress !== undefined && typeof onProgress !== 'function') - throw new Error('progressCb should be function'); - const blockSize = 128 * r; - const blockSize32 = blockSize / 4; - if (N <= 1 || (N & (N - 1)) !== 0 || N >= 2 ** (blockSize / 8) || N > 2 ** 32) { - // NOTE: we limit N to be less than 2**32 because of 32 bit variant of Integrify function - // There is no JS engines that allows alocate more than 4GB per single Uint8Array for now, but can change in future. - throw new Error('Scrypt: N must be larger than 1, a power of 2, less than 2^(128 * r / 8) and less than 2^32'); - } - if (p < 0 || p > ((2 ** 32 - 1) * 32) / blockSize) { - throw new Error('Scrypt: p must be a positive integer less than or equal to ((2^32 - 1) * 32) / (128 * r)'); - } - if (dkLen < 0 || dkLen > (2 ** 32 - 1) * 32) { - throw new Error('Scrypt: dkLen should be positive integer less than or equal to (2^32 - 1) * 32'); - } - const memUsed = blockSize * (N + p); - if (memUsed > maxmem) { - throw new Error(`Scrypt: parameters too large, ${memUsed} (128 * r * (N + p)) > ${maxmem} (maxmem)`); - } - // [B0...Bp−1] ← PBKDF2HMAC-SHA256(Passphrase, Salt, 1, blockSize*ParallelizationFactor) - // Since it has only one iteration there is no reason to use async variant - const B = (0, pbkdf2_js_1.pbkdf2)(sha256_js_1.sha256, password, salt, { c: 1, dkLen: blockSize * p }); - const B32 = (0, utils_js_1.u32)(B); - // Re-used between parallel iterations. Array(iterations) of B - const V = (0, utils_js_1.u32)(new Uint8Array(blockSize * N)); - const tmp = (0, utils_js_1.u32)(new Uint8Array(blockSize)); - let blockMixCb = () => { }; - if (onProgress) { - const totalBlockMix = 2 * N * p; - // Invoke callback if progress changes from 10.01 to 10.02 - // Allows to draw smooth progress bar on up to 8K screen - const callbackPer = Math.max(Math.floor(totalBlockMix / 10000), 1); - let blockMixCnt = 0; - blockMixCb = () => { - blockMixCnt++; - if (onProgress && (!(blockMixCnt % callbackPer) || blockMixCnt === totalBlockMix)) - onProgress(blockMixCnt / totalBlockMix); - }; - } - return { N, r, p, dkLen, blockSize32, V, B32, B, tmp, blockMixCb, asyncTick }; -} -function scryptOutput(password, dkLen, B, V, tmp) { - const res = (0, pbkdf2_js_1.pbkdf2)(sha256_js_1.sha256, password, B, { c: 1, dkLen }); - B.fill(0); - V.fill(0); - tmp.fill(0); - return res; -} -/** - * Scrypt KDF from RFC 7914. - * @param password - pass - * @param salt - salt - * @param opts - parameters - * - `N` is cpu/mem work factor (power of 2 e.g. 2**18) - * - `r` is block size (8 is common), fine-tunes sequential memory read size and performance - * - `p` is parallelization factor (1 is common) - * - `dkLen` is output key length in bytes e.g. 32. - * - `asyncTick` - (default: 10) max time in ms for which async function can block execution - * - `maxmem` - (default: `1024 ** 3 + 1024` aka 1GB+1KB). A limit that the app could use for scrypt - * - `onProgress` - callback function that would be executed for progress report - * @returns Derived key - */ -function scrypt(password, salt, opts) { - const { N, r, p, dkLen, blockSize32, V, B32, B, tmp, blockMixCb } = scryptInit(password, salt, opts); - for (let pi = 0; pi < p; pi++) { - const Pi = blockSize32 * pi; - for (let i = 0; i < blockSize32; i++) - V[i] = B32[Pi + i]; // V[0] = B[i] - for (let i = 0, pos = 0; i < N - 1; i++) { - BlockMix(V, pos, V, (pos += blockSize32), r); // V[i] = BlockMix(V[i-1]); - blockMixCb(); - } - BlockMix(V, (N - 1) * blockSize32, B32, Pi, r); // Process last element - blockMixCb(); - for (let i = 0; i < N; i++) { - // First u32 of the last 64-byte block (u32 is LE) - const j = B32[Pi + blockSize32 - 16] % N; // j = Integrify(X) % iterations - for (let k = 0; k < blockSize32; k++) - tmp[k] = B32[Pi + k] ^ V[j * blockSize32 + k]; // tmp = B ^ V[j] - BlockMix(tmp, 0, B32, Pi, r); // B = BlockMix(B ^ V[j]) - blockMixCb(); - } - } - return scryptOutput(password, dkLen, B, V, tmp); -} -exports.scrypt = scrypt; -/** - * Scrypt KDF from RFC 7914. - */ -async function scryptAsync(password, salt, opts) { - const { N, r, p, dkLen, blockSize32, V, B32, B, tmp, blockMixCb, asyncTick } = scryptInit(password, salt, opts); - for (let pi = 0; pi < p; pi++) { - const Pi = blockSize32 * pi; - for (let i = 0; i < blockSize32; i++) - V[i] = B32[Pi + i]; // V[0] = B[i] - let pos = 0; - await (0, utils_js_1.asyncLoop)(N - 1, asyncTick, (i) => { - BlockMix(V, pos, V, (pos += blockSize32), r); // V[i] = BlockMix(V[i-1]); - blockMixCb(); - }); - BlockMix(V, (N - 1) * blockSize32, B32, Pi, r); // Process last element - blockMixCb(); - await (0, utils_js_1.asyncLoop)(N, asyncTick, (i) => { - // First u32 of the last 64-byte block (u32 is LE) - const j = B32[Pi + blockSize32 - 16] % N; // j = Integrify(X) % iterations - for (let k = 0; k < blockSize32; k++) - tmp[k] = B32[Pi + k] ^ V[j * blockSize32 + k]; // tmp = B ^ V[j] - BlockMix(tmp, 0, B32, Pi, r); // B = BlockMix(B ^ V[j]) - blockMixCb(); - }); - } - return scryptOutput(password, dkLen, B, V, tmp); -} -exports.scryptAsync = scryptAsync; -//# sourceMappingURL=scrypt.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/scrypt.js.map b/node_modules/@noble/curves/node_modules/@noble/hashes/scrypt.js.map deleted file mode 100644 index 5be0b8c4..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/scrypt.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"scrypt.js","sourceRoot":"","sources":["src/scrypt.ts"],"names":[],"mappings":";;;AAAA,6CAAkC;AAClC,2CAAqC;AACrC,2CAAqC;AACrC,yCAA8D;AAE9D,sBAAsB;AAEtB,yBAAyB;AACzB,MAAM,IAAI,GAAG,CAAC,CAAS,EAAE,CAAS,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;AAEnE,gDAAgD;AAChD,oEAAoE;AACpE,kBAAkB;AAClB,SAAS,WAAW,CAClB,IAAiB,EACjB,EAAU,EACV,KAAkB,EAClB,EAAU,EACV,GAAgB,EAChB,EAAU;IAEV,yCAAyC;IACzC,aAAa;IACb,IAAI,GAAG,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC,GAAG,KAAK,CAAC,EAAE,EAAE,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC,GAAG,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC;IACnE,IAAI,GAAG,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC,GAAG,KAAK,CAAC,EAAE,EAAE,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC,GAAG,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC;IACnE,IAAI,GAAG,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC,GAAG,KAAK,CAAC,EAAE,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,CAAC,CAAC,EAAE,GAAG,EAAE,CAAC,EAAE,CAAC,GAAG,IAAI,WAAW,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,2BAA2B;YACzE,UAAU,EAAE,CAAC;QACf,CAAC,CAAC,CAAC;QACH,QAAQ,CAAC,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,WAAW,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,uBAAuB;QACvE,UAAU,EAAE,CAAC;QACb,MAAM,IAAA,oBAAS,EAAC,CAAC,EAAE,SAAS,EAAE,CAAC,CAAC,EAAE,EAAE;YAClC,kDAAkD;YAClD,MAAM,CAAC,GAAG,GAAG,CAAC,EAAE,GAAG,WAAW,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,gCAAgC;YAC1E,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,WAAW,EAAE,CAAC,EAAE;gBAAE,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,WAAW,GAAG,CAAC,CAAC,CAAC,CAAC,iBAAiB;YACtG,QAAQ,CAAC,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,yBAAyB;YACvD,UAAU,EAAE,CAAC;QACf,CAAC,CAAC,CAAC;KACJ;IACD,OAAO,YAAY,CAAC,QAAQ,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC;AAClD,CAAC;AAzBD,kCAyBC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/sha1.d.ts b/node_modules/@noble/curves/node_modules/@noble/hashes/sha1.d.ts deleted file mode 100644 index d9cb132e..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/sha1.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { SHA2 } from './_sha2.js'; -declare class SHA1 extends SHA2 { - private A; - private B; - private C; - private D; - private E; - constructor(); - protected get(): [number, number, number, number, number]; - protected set(A: number, B: number, C: number, D: number, E: number): void; - protected process(view: DataView, offset: number): void; - protected roundClean(): void; - destroy(): void; -} -export declare const sha1: { - (msg: import("./utils.js").Input): Uint8Array; - outputLen: number; - blockLen: number; - create(): import("./utils.js").Hash; -}; -export {}; diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/sha1.js b/node_modules/@noble/curves/node_modules/@noble/hashes/sha1.js deleted file mode 100644 index 8eff8bbb..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/sha1.js +++ /dev/null @@ -1,88 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.sha1 = void 0; -const _sha2_js_1 = require("./_sha2.js"); -const utils_js_1 = require("./utils.js"); -// SHA1 was cryptographically broken. -// It is still widely used in legacy apps. Don't use it for a new protocol. -// RFC 3174 -const rotl = (word, shift) => (word << shift) | ((word >>> (32 - shift)) >>> 0); -// Choice: a ? b : c -const Chi = (a, b, c) => (a & b) ^ (~a & c); -// Majority function, true if any two inpust is true -const Maj = (a, b, c) => (a & b) ^ (a & c) ^ (b & c); -// Initial state -const IV = new Uint32Array([0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0]); -// Temporary buffer, not used to store anything between runs -// Named this way because it matches specification. -const SHA1_W = new Uint32Array(80); -class SHA1 extends _sha2_js_1.SHA2 { - constructor() { - super(64, 20, 8, false); - this.A = IV[0] | 0; - this.B = IV[1] | 0; - this.C = IV[2] | 0; - this.D = IV[3] | 0; - this.E = IV[4] | 0; - } - get() { - const { A, B, C, D, E } = this; - return [A, B, C, D, E]; - } - set(A, B, C, D, E) { - this.A = A | 0; - this.B = B | 0; - this.C = C | 0; - this.D = D | 0; - this.E = E | 0; - } - process(view, offset) { - for (let i = 0; i < 16; i++, offset += 4) - SHA1_W[i] = view.getUint32(offset, false); - for (let i = 16; i < 80; i++) - SHA1_W[i] = rotl(SHA1_W[i - 3] ^ SHA1_W[i - 8] ^ SHA1_W[i - 14] ^ SHA1_W[i - 16], 1); - // Compression function main loop, 80 rounds - let { A, B, C, D, E } = this; - for (let i = 0; i < 80; i++) { - let F, K; - if (i < 20) { - F = Chi(B, C, D); - K = 0x5a827999; - } - else if (i < 40) { - F = B ^ C ^ D; - K = 0x6ed9eba1; - } - else if (i < 60) { - F = Maj(B, C, D); - K = 0x8f1bbcdc; - } - else { - F = B ^ C ^ D; - K = 0xca62c1d6; - } - const T = (rotl(A, 5) + F + E + K + SHA1_W[i]) | 0; - E = D; - D = C; - C = rotl(B, 30); - B = A; - A = T; - } - // Add the compressed chunk to the current hash value - A = (A + this.A) | 0; - B = (B + this.B) | 0; - C = (C + this.C) | 0; - D = (D + this.D) | 0; - E = (E + this.E) | 0; - this.set(A, B, C, D, E); - } - roundClean() { - SHA1_W.fill(0); - } - destroy() { - this.set(0, 0, 0, 0, 0); - this.buffer.fill(0); - } -} -exports.sha1 = (0, utils_js_1.wrapConstructor)(() => new SHA1()); -//# sourceMappingURL=sha1.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/sha1.js.map b/node_modules/@noble/curves/node_modules/@noble/hashes/sha1.js.map deleted file mode 100644 index c099ccb0..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/sha1.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sha1.js","sourceRoot":"","sources":["src/sha1.ts"],"names":[],"mappings":";;;AAAA,yCAAkC;AAClC,yCAA6C;AAE7C,qCAAqC;AACrC,2EAA2E;AAE3E,WAAW;AACX,MAAM,IAAI,GAAG,CAAC,IAAY,EAAE,KAAa,EAAE,EAAE,CAAC,CAAC,IAAI,IAAI,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,KAAK,CAAC,EAAE,GAAG,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;AAChG,oBAAoB;AACpB,MAAM,GAA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;QAClB,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACjB,CAAC;IACD,OAAO;QACL,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;QACxB,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACtB,CAAC;CACF;AAEY,QAAA,IAAI,GAAG,IAAA,0BAAe,EAAC,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/sha256.d.ts b/node_modules/@noble/curves/node_modules/@noble/hashes/sha256.d.ts deleted file mode 100644 index 3e1491d2..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/sha256.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { SHA2 } from './_sha2.js'; -declare class SHA256 extends SHA2 { - A: number; - B: number; - C: number; - D: number; - E: number; - F: number; - G: number; - H: number; - constructor(); - protected get(): [number, number, number, number, number, number, number, number]; - protected set(A: number, B: number, C: number, D: number, E: number, F: number, G: number, H: number): void; - protected process(view: DataView, offset: number): void; - protected roundClean(): void; - destroy(): void; -} -/** - * SHA2-256 hash function - * @param message - data that would be hashed - */ -export declare const sha256: { - (msg: import("./utils.js").Input): Uint8Array; - outputLen: number; - blockLen: number; - create(): import("./utils.js").Hash; -}; -export declare const sha224: { - (msg: import("./utils.js").Input): Uint8Array; - outputLen: number; - blockLen: number; - create(): import("./utils.js").Hash; -}; -export {}; diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/sha256.js b/node_modules/@noble/curves/node_modules/@noble/hashes/sha256.js deleted file mode 100644 index 7f897a4b..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/sha256.js +++ /dev/null @@ -1,127 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.sha224 = exports.sha256 = void 0; -const _sha2_js_1 = require("./_sha2.js"); -const utils_js_1 = require("./utils.js"); -// Choice: a ? b : c -const Chi = (a, b, c) => (a & b) ^ (~a & c); -// Majority function, true if any two inpust is true -const Maj = (a, b, c) => (a & b) ^ (a & c) ^ (b & c); -// Round constants: -// first 32 bits of the fractional parts of the cube roots of the first 64 primes 2..311) -// prettier-ignore -const SHA256_K = new Uint32Array([ - 0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5, 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5, - 0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3, 0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174, - 0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc, 0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da, - 0x983e5152, 0xa831c66d, 0xb00327c8, 0xbf597fc7, 0xc6e00bf3, 0xd5a79147, 0x06ca6351, 0x14292967, - 0x27b70a85, 0x2e1b2138, 0x4d2c6dfc, 0x53380d13, 0x650a7354, 0x766a0abb, 0x81c2c92e, 0x92722c85, - 0xa2bfe8a1, 0xa81a664b, 0xc24b8b70, 0xc76c51a3, 0xd192e819, 0xd6990624, 0xf40e3585, 0x106aa070, - 0x19a4c116, 0x1e376c08, 0x2748774c, 0x34b0bcb5, 0x391c0cb3, 0x4ed8aa4a, 0x5b9cca4f, 0x682e6ff3, - 0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208, 0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2 -]); -// Initial state (first 32 bits of the fractional parts of the square roots of the first 8 primes 2..19): -// prettier-ignore -const IV = new Uint32Array([ - 0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19 -]); -// Temporary buffer, not used to store anything between runs -// Named this way because it matches specification. -const SHA256_W = new Uint32Array(64); -class SHA256 extends _sha2_js_1.SHA2 { - constructor() { - super(64, 32, 8, false); - // We cannot use array here since array allows indexing by variable - // which means optimizer/compiler cannot use registers. - this.A = IV[0] | 0; - this.B = IV[1] | 0; - this.C = IV[2] | 0; - this.D = IV[3] | 0; - this.E = IV[4] | 0; - this.F = IV[5] | 0; - this.G = IV[6] | 0; - this.H = IV[7] | 0; - } - get() { - const { A, B, C, D, E, F, G, H } = this; - return [A, B, C, D, E, F, G, H]; - } - // prettier-ignore - set(A, B, C, D, E, F, G, H) { - this.A = A | 0; - this.B = B | 0; - this.C = C | 0; - this.D = D | 0; - this.E = E | 0; - this.F = F | 0; - this.G = G | 0; - this.H = H | 0; - } - process(view, offset) { - // Extend the first 16 words into the remaining 48 words w[16..63] of the message schedule array - for (let i = 0; i < 16; i++, offset += 4) - SHA256_W[i] = view.getUint32(offset, false); - for (let i = 16; i < 64; i++) { - const W15 = SHA256_W[i - 15]; - const W2 = SHA256_W[i - 2]; - const s0 = (0, utils_js_1.rotr)(W15, 7) ^ (0, utils_js_1.rotr)(W15, 18) ^ (W15 >>> 3); - const s1 = (0, utils_js_1.rotr)(W2, 17) ^ (0, utils_js_1.rotr)(W2, 19) ^ (W2 >>> 10); - SHA256_W[i] = (s1 + SHA256_W[i - 7] + s0 + SHA256_W[i - 16]) | 0; - } - // Compression function main loop, 64 rounds - let { A, B, C, D, E, F, G, H } = this; - for (let i = 0; i < 64; i++) { - const sigma1 = (0, utils_js_1.rotr)(E, 6) ^ (0, utils_js_1.rotr)(E, 11) ^ (0, utils_js_1.rotr)(E, 25); - const T1 = (H + sigma1 + Chi(E, F, G) + SHA256_K[i] + SHA256_W[i]) | 0; - const sigma0 = (0, utils_js_1.rotr)(A, 2) ^ (0, utils_js_1.rotr)(A, 13) ^ (0, utils_js_1.rotr)(A, 22); - const T2 = (sigma0 + Maj(A, B, C)) | 0; - H = G; - G = F; - F = E; - E = (D + T1) | 0; - D = C; - C = B; - B = A; - A = (T1 + T2) | 0; - } - // Add the compressed chunk to the current hash value - A = (A + this.A) | 0; - B = (B + this.B) | 0; - C = (C + this.C) | 0; - D = (D + this.D) | 0; - E = (E + this.E) | 0; - F = (F + this.F) | 0; - G = (G + this.G) | 0; - H = (H + this.H) | 0; - this.set(A, B, C, D, E, F, G, H); - } - roundClean() { - SHA256_W.fill(0); - } - destroy() { - this.set(0, 0, 0, 0, 0, 0, 0, 0); - this.buffer.fill(0); - } -} -// Constants from https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf -class SHA224 extends SHA256 { - constructor() { - super(); - this.A = 0xc1059ed8 | 0; - this.B = 0x367cd507 | 0; - this.C = 0x3070dd17 | 0; - this.D = 0xf70e5939 | 0; - this.E = 0xffc00b31 | 0; - this.F = 0x68581511 | 0; - this.G = 0x64f98fa7 | 0; - this.H = 0xbefa4fa4 | 0; - this.outputLen = 28; - } -} -/** - * SHA2-256 hash function - * @param message - data that would be hashed - */ -exports.sha256 = (0, utils_js_1.wrapConstructor)(() => new SHA256()); -exports.sha224 = (0, utils_js_1.wrapConstructor)(() => new SHA224()); -//# sourceMappingURL=sha256.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/sha256.js.map b/node_modules/@noble/curves/node_modules/@noble/hashes/sha256.js.map deleted file mode 100644 index 28623a95..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/sha256.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sha256.js","sourceRoot":"","sources":["src/sha256.ts"],"names":[],"mappings":";;;AAAA,yCAAkC;AAClC,yCAAmD;AAEnD,oBAAoB;AACpB,MAAM,GAAG,GAAG,CAAC,CAAS,EAAE,CAAS,EAAE,CAAS,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;AACpE,oDAAoD;AACpD,MAAM,GAAG,GAAG,CAAC,CAAS,EAAE,CAAS,EAAE,CAAS,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,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B,MAAC,GAAG,UAAU,GAAG,CAAC,CAAC;QACnB,MAAC,GAAG,UAAU,GAAG,CAAC,CAAC;QACnB,MAAC,GAAG,UAAU,GAAG,CAAC,CAAC;QACnB,MAAC,GAAG,UAAU,GAAG,CAAC,CAAC;QAGjB,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC;IACtB,CAAC;CACF;AAED;;;GAGG;AACU,QAAA,MAAM,GAAG,IAAA,0BAAe,EAAC,GAAG,EAAE,CAAC,IAAI,MAAM,EAAE,CAAC,CAAC;AAC7C,QAAA,MAAM,GAAG,IAAA,0BAAe,EAAC,GAAG,EAAE,CAAC,IAAI,MAAM,EAAE,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/sha3-addons.d.ts b/node_modules/@noble/curves/node_modules/@noble/hashes/sha3-addons.d.ts deleted file mode 100644 index f6ae900d..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/sha3-addons.d.ts +++ /dev/null @@ -1,138 +0,0 @@ -import { Input, Hash, HashXOF } from './utils.js'; -import { Keccak, ShakeOpts } from './sha3.js'; -export type cShakeOpts = ShakeOpts & { - personalization?: Input; - NISTfn?: Input; -}; -export declare const cshake128: { - (msg: Input, opts?: cShakeOpts | undefined): Uint8Array; - outputLen: number; - blockLen: number; - create(opts: cShakeOpts): Hash; -}; -export declare const cshake256: { - (msg: Input, opts?: cShakeOpts | undefined): Uint8Array; - outputLen: number; - blockLen: number; - create(opts: cShakeOpts): Hash; -}; -declare class KMAC extends Keccak implements HashXOF { - constructor(blockLen: number, outputLen: number, enableXOF: boolean, key: Input, opts?: cShakeOpts); - protected finish(): void; - _cloneInto(to?: KMAC): KMAC; - clone(): KMAC; -} -export declare const kmac128: { - (key: Input, message: Input, opts?: cShakeOpts): Uint8Array; - create(key: Input, opts?: cShakeOpts): KMAC; -}; -export declare const kmac256: { - (key: Input, message: Input, opts?: cShakeOpts): Uint8Array; - create(key: Input, opts?: cShakeOpts): KMAC; -}; -export declare const kmac128xof: { - (key: Input, message: Input, opts?: cShakeOpts): Uint8Array; - create(key: Input, opts?: cShakeOpts): KMAC; -}; -export declare const kmac256xof: { - (key: Input, message: Input, opts?: cShakeOpts): Uint8Array; - create(key: Input, opts?: cShakeOpts): KMAC; -}; -declare class TupleHash extends Keccak implements HashXOF { - constructor(blockLen: number, outputLen: number, enableXOF: boolean, opts?: cShakeOpts); - protected finish(): void; - _cloneInto(to?: TupleHash): TupleHash; - clone(): TupleHash; -} -export declare const tuplehash128: { - (messages: Input[], opts?: cShakeOpts): Uint8Array; - create(opts?: cShakeOpts): TupleHash; -}; -export declare const tuplehash256: { - (messages: Input[], opts?: cShakeOpts): Uint8Array; - create(opts?: cShakeOpts): TupleHash; -}; -export declare const tuplehash128xof: { - (messages: Input[], opts?: cShakeOpts): Uint8Array; - create(opts?: cShakeOpts): TupleHash; -}; -export declare const tuplehash256xof: { - (messages: Input[], opts?: cShakeOpts): Uint8Array; - create(opts?: cShakeOpts): TupleHash; -}; -type ParallelOpts = cShakeOpts & { - blockLen?: number; -}; -declare class ParallelHash extends Keccak implements HashXOF { - protected leafCons: () => Hash; - private leafHash?; - private chunkPos; - private chunksDone; - private chunkLen; - constructor(blockLen: number, outputLen: number, leafCons: () => Hash, enableXOF: boolean, opts?: ParallelOpts); - protected finish(): void; - _cloneInto(to?: ParallelHash): ParallelHash; - destroy(): void; - clone(): ParallelHash; -} -export declare const parallelhash128: { - (message: Input, opts?: ParallelOpts): Uint8Array; - create(opts?: ParallelOpts): ParallelHash; -}; -export declare const parallelhash256: { - (message: Input, opts?: ParallelOpts): Uint8Array; - create(opts?: ParallelOpts): ParallelHash; -}; -export declare const parallelhash128xof: { - (message: Input, opts?: ParallelOpts): Uint8Array; - create(opts?: ParallelOpts): ParallelHash; -}; -export declare const parallelhash256xof: { - (message: Input, opts?: ParallelOpts): Uint8Array; - create(opts?: ParallelOpts): ParallelHash; -}; -export type KangarooOpts = { - dkLen?: number; - personalization?: Input; -}; -declare class KangarooTwelve extends Keccak implements HashXOF { - protected leafLen: number; - readonly chunkLen = 8192; - private leafHash?; - private personalization; - private chunkPos; - private chunksDone; - constructor(blockLen: number, leafLen: number, outputLen: number, rounds: number, opts: KangarooOpts); - update(data: Input): this; - protected finish(): void; - destroy(): void; - _cloneInto(to?: KangarooTwelve): KangarooTwelve; - clone(): KangarooTwelve; -} -export declare const k12: { - (msg: Input, opts?: KangarooOpts | undefined): Uint8Array; - outputLen: number; - blockLen: number; - create(opts: KangarooOpts): Hash; -}; -export declare const m14: { - (msg: Input, opts?: KangarooOpts | undefined): Uint8Array; - outputLen: number; - blockLen: number; - create(opts: KangarooOpts): Hash; -}; -declare class KeccakPRG extends Keccak { - protected rate: number; - constructor(capacity: number); - keccak(): void; - update(data: Input): this; - feed(data: Input): this; - protected finish(): void; - digestInto(out: Uint8Array): Uint8Array; - fetch(bytes: number): Uint8Array; - forget(): void; - _cloneInto(to?: KeccakPRG): KeccakPRG; - clone(): KeccakPRG; -} -export declare const keccakprg: (capacity?: number) => KeccakPRG; -export {}; diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/sha3-addons.js b/node_modules/@noble/curves/node_modules/@noble/hashes/sha3-addons.js deleted file mode 100644 index 1ac012d0..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/sha3-addons.js +++ /dev/null @@ -1,351 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.keccakprg = exports.m14 = exports.k12 = exports.parallelhash256xof = exports.parallelhash128xof = exports.parallelhash256 = exports.parallelhash128 = exports.tuplehash256xof = exports.tuplehash128xof = exports.tuplehash256 = exports.tuplehash128 = exports.kmac256xof = exports.kmac128xof = exports.kmac256 = exports.kmac128 = exports.cshake256 = exports.cshake128 = void 0; -const _assert_js_1 = require("./_assert.js"); -const utils_js_1 = require("./utils.js"); -const sha3_js_1 = require("./sha3.js"); -// cSHAKE && KMAC (NIST SP800-185) -function leftEncode(n) { - const res = [n & 0xff]; - n >>= 8; - for (; n > 0; n >>= 8) - res.unshift(n & 0xff); - res.unshift(res.length); - return new Uint8Array(res); -} -function rightEncode(n) { - const res = [n & 0xff]; - n >>= 8; - for (; n > 0; n >>= 8) - res.unshift(n & 0xff); - res.push(res.length); - return new Uint8Array(res); -} -function chooseLen(opts, outputLen) { - return opts.dkLen === undefined ? outputLen : opts.dkLen; -} -const toBytesOptional = (buf) => (buf !== undefined ? (0, utils_js_1.toBytes)(buf) : new Uint8Array([])); -// NOTE: second modulo is necessary since we don't need to add padding if current element takes whole block -const getPadding = (len, block) => new Uint8Array((block - (len % block)) % block); -// Personalization -function cshakePers(hash, opts = {}) { - if (!opts || (!opts.personalization && !opts.NISTfn)) - return hash; - // Encode and pad inplace to avoid unneccesary memory copies/slices (so we don't need to zero them later) - // bytepad(encode_string(N) || encode_string(S), 168) - const blockLenBytes = leftEncode(hash.blockLen); - const fn = toBytesOptional(opts.NISTfn); - const fnLen = leftEncode(8 * fn.length); // length in bits - const pers = toBytesOptional(opts.personalization); - const persLen = leftEncode(8 * pers.length); // length in bits - if (!fn.length && !pers.length) - return hash; - hash.suffix = 0x04; - hash.update(blockLenBytes).update(fnLen).update(fn).update(persLen).update(pers); - let totalLen = blockLenBytes.length + fnLen.length + fn.length + persLen.length + pers.length; - hash.update(getPadding(totalLen, hash.blockLen)); - return hash; -} -const gencShake = (suffix, blockLen, outputLen) => (0, utils_js_1.wrapConstructorWithOpts)((opts = {}) => cshakePers(new sha3_js_1.Keccak(blockLen, suffix, chooseLen(opts, outputLen), true), opts)); -exports.cshake128 = (() => gencShake(0x1f, 168, 128 / 8))(); -exports.cshake256 = (() => gencShake(0x1f, 136, 256 / 8))(); -class KMAC extends sha3_js_1.Keccak { - constructor(blockLen, outputLen, enableXOF, key, opts = {}) { - super(blockLen, 0x1f, outputLen, enableXOF); - cshakePers(this, { NISTfn: 'KMAC', personalization: opts.personalization }); - key = (0, utils_js_1.toBytes)(key); - // 1. newX = bytepad(encode_string(K), 168) || X || right_encode(L). - const blockLenBytes = leftEncode(this.blockLen); - const keyLen = leftEncode(8 * key.length); - this.update(blockLenBytes).update(keyLen).update(key); - const totalLen = blockLenBytes.length + keyLen.length + key.length; - this.update(getPadding(totalLen, this.blockLen)); - } - finish() { - if (!this.finished) - this.update(rightEncode(this.enableXOF ? 0 : this.outputLen * 8)); // outputLen in bits - super.finish(); - } - _cloneInto(to) { - // Create new instance without calling constructor since key already in state and we don't know it. - // Force "to" to be instance of KMAC instead of Sha3. - if (!to) { - to = Object.create(Object.getPrototypeOf(this), {}); - to.state = this.state.slice(); - to.blockLen = this.blockLen; - to.state32 = (0, utils_js_1.u32)(to.state); - } - return super._cloneInto(to); - } - clone() { - return this._cloneInto(); - } -} -function genKmac(blockLen, outputLen, xof = false) { - const kmac = (key, message, opts) => kmac.create(key, opts).update(message).digest(); - kmac.create = (key, opts = {}) => new KMAC(blockLen, chooseLen(opts, outputLen), xof, key, opts); - return kmac; -} -exports.kmac128 = (() => genKmac(168, 128 / 8))(); -exports.kmac256 = (() => genKmac(136, 256 / 8))(); -exports.kmac128xof = (() => genKmac(168, 128 / 8, true))(); -exports.kmac256xof = (() => genKmac(136, 256 / 8, true))(); -// TupleHash -// Usage: tuple(['ab', 'cd']) != tuple(['a', 'bcd']) -class TupleHash extends sha3_js_1.Keccak { - constructor(blockLen, outputLen, enableXOF, opts = {}) { - super(blockLen, 0x1f, outputLen, enableXOF); - cshakePers(this, { NISTfn: 'TupleHash', personalization: opts.personalization }); - // Change update after cshake processed - this.update = (data) => { - data = (0, utils_js_1.toBytes)(data); - super.update(leftEncode(data.length * 8)); - super.update(data); - return this; - }; - } - finish() { - if (!this.finished) - super.update(rightEncode(this.enableXOF ? 0 : this.outputLen * 8)); // outputLen in bits - super.finish(); - } - _cloneInto(to) { - to || (to = new TupleHash(this.blockLen, this.outputLen, this.enableXOF)); - return super._cloneInto(to); - } - clone() { - return this._cloneInto(); - } -} -function genTuple(blockLen, outputLen, xof = false) { - const tuple = (messages, opts) => { - const h = tuple.create(opts); - for (const msg of messages) - h.update(msg); - return h.digest(); - }; - tuple.create = (opts = {}) => new TupleHash(blockLen, chooseLen(opts, outputLen), xof, opts); - return tuple; -} -exports.tuplehash128 = (() => genTuple(168, 128 / 8))(); -exports.tuplehash256 = (() => genTuple(136, 256 / 8))(); -exports.tuplehash128xof = (() => genTuple(168, 128 / 8, true))(); -exports.tuplehash256xof = (() => genTuple(136, 256 / 8, true))(); -class ParallelHash extends sha3_js_1.Keccak { - constructor(blockLen, outputLen, leafCons, enableXOF, opts = {}) { - super(blockLen, 0x1f, outputLen, enableXOF); - this.leafCons = leafCons; - this.chunkPos = 0; // Position of current block in chunk - this.chunksDone = 0; // How many chunks we already have - cshakePers(this, { NISTfn: 'ParallelHash', personalization: opts.personalization }); - let { blockLen: B } = opts; - B || (B = 8); - (0, _assert_js_1.number)(B); - this.chunkLen = B; - super.update(leftEncode(B)); - // Change update after cshake processed - this.update = (data) => { - data = (0, utils_js_1.toBytes)(data); - const { chunkLen, leafCons } = this; - for (let pos = 0, len = data.length; pos < len;) { - if (this.chunkPos == chunkLen || !this.leafHash) { - if (this.leafHash) { - super.update(this.leafHash.digest()); - this.chunksDone++; - } - this.leafHash = leafCons(); - this.chunkPos = 0; - } - const take = Math.min(chunkLen - this.chunkPos, len - pos); - this.leafHash.update(data.subarray(pos, pos + take)); - this.chunkPos += take; - pos += take; - } - return this; - }; - } - finish() { - if (this.finished) - return; - if (this.leafHash) { - super.update(this.leafHash.digest()); - this.chunksDone++; - } - super.update(rightEncode(this.chunksDone)); - super.update(rightEncode(this.enableXOF ? 0 : this.outputLen * 8)); // outputLen in bits - super.finish(); - } - _cloneInto(to) { - to || (to = new ParallelHash(this.blockLen, this.outputLen, this.leafCons, this.enableXOF)); - if (this.leafHash) - to.leafHash = this.leafHash._cloneInto(to.leafHash); - to.chunkPos = this.chunkPos; - to.chunkLen = this.chunkLen; - to.chunksDone = this.chunksDone; - return super._cloneInto(to); - } - destroy() { - super.destroy.call(this); - if (this.leafHash) - this.leafHash.destroy(); - } - clone() { - return this._cloneInto(); - } -} -function genPrl(blockLen, outputLen, leaf, xof = false) { - const parallel = (message, opts) => parallel.create(opts).update(message).digest(); - parallel.create = (opts = {}) => new ParallelHash(blockLen, chooseLen(opts, outputLen), () => leaf.create({ dkLen: 2 * outputLen }), xof, opts); - return parallel; -} -exports.parallelhash128 = (() => genPrl(168, 128 / 8, exports.cshake128))(); -exports.parallelhash256 = (() => genPrl(136, 256 / 8, exports.cshake256))(); -exports.parallelhash128xof = (() => genPrl(168, 128 / 8, exports.cshake128, true))(); -exports.parallelhash256xof = (() => genPrl(136, 256 / 8, exports.cshake256, true))(); -// Kangaroo -// Same as NIST rightEncode, but returns [0] for zero string -function rightEncodeK12(n) { - const res = []; - for (; n > 0; n >>= 8) - res.unshift(n & 0xff); - res.push(res.length); - return new Uint8Array(res); -} -const EMPTY = new Uint8Array([]); -class KangarooTwelve extends sha3_js_1.Keccak { - constructor(blockLen, leafLen, outputLen, rounds, opts) { - super(blockLen, 0x07, outputLen, true, rounds); - this.leafLen = leafLen; - this.chunkLen = 8192; - this.chunkPos = 0; // Position of current block in chunk - this.chunksDone = 0; // How many chunks we already have - const { personalization } = opts; - this.personalization = toBytesOptional(personalization); - } - update(data) { - data = (0, utils_js_1.toBytes)(data); - const { chunkLen, blockLen, leafLen, rounds } = this; - for (let pos = 0, len = data.length; pos < len;) { - if (this.chunkPos == chunkLen) { - if (this.leafHash) - super.update(this.leafHash.digest()); - else { - this.suffix = 0x06; // Its safe to change suffix here since its used only in digest() - super.update(new Uint8Array([3, 0, 0, 0, 0, 0, 0, 0])); - } - this.leafHash = new sha3_js_1.Keccak(blockLen, 0x0b, leafLen, false, rounds); - this.chunksDone++; - this.chunkPos = 0; - } - const take = Math.min(chunkLen - this.chunkPos, len - pos); - const chunk = data.subarray(pos, pos + take); - if (this.leafHash) - this.leafHash.update(chunk); - else - super.update(chunk); - this.chunkPos += take; - pos += take; - } - return this; - } - finish() { - if (this.finished) - return; - const { personalization } = this; - this.update(personalization).update(rightEncodeK12(personalization.length)); - // Leaf hash - if (this.leafHash) { - super.update(this.leafHash.digest()); - super.update(rightEncodeK12(this.chunksDone)); - super.update(new Uint8Array([0xff, 0xff])); - } - super.finish.call(this); - } - destroy() { - super.destroy.call(this); - if (this.leafHash) - this.leafHash.destroy(); - // We cannot zero personalization buffer since it is user provided and we don't want to mutate user input - this.personalization = EMPTY; - } - _cloneInto(to) { - const { blockLen, leafLen, leafHash, outputLen, rounds } = this; - to || (to = new KangarooTwelve(blockLen, leafLen, outputLen, rounds, {})); - super._cloneInto(to); - if (leafHash) - to.leafHash = leafHash._cloneInto(to.leafHash); - to.personalization.set(this.personalization); - to.leafLen = this.leafLen; - to.chunkPos = this.chunkPos; - to.chunksDone = this.chunksDone; - return to; - } - clone() { - return this._cloneInto(); - } -} -// Default to 32 bytes, so it can be used without opts -exports.k12 = (() => (0, utils_js_1.wrapConstructorWithOpts)((opts = {}) => new KangarooTwelve(168, 32, chooseLen(opts, 32), 12, opts)))(); -// MarsupilamiFourteen -exports.m14 = (() => (0, utils_js_1.wrapConstructorWithOpts)((opts = {}) => new KangarooTwelve(136, 64, chooseLen(opts, 64), 14, opts)))(); -// https://keccak.team/files/CSF-0.1.pdf -// + https://github.com/XKCP/XKCP/tree/master/lib/high/Keccak/PRG -class KeccakPRG extends sha3_js_1.Keccak { - constructor(capacity) { - (0, _assert_js_1.number)(capacity); - // Rho should be full bytes - if (capacity < 0 || capacity > 1600 - 10 || (1600 - capacity - 2) % 8) - throw new Error('KeccakPRG: Invalid capacity'); - // blockLen = rho in bytes - super((1600 - capacity - 2) / 8, 0, 0, true); - this.rate = 1600 - capacity; - this.posOut = Math.floor((this.rate + 7) / 8); - } - keccak() { - // Duplex padding - this.state[this.pos] ^= 0x01; - this.state[this.blockLen] ^= 0x02; // Rho is full bytes - super.keccak(); - this.pos = 0; - this.posOut = 0; - } - update(data) { - super.update(data); - this.posOut = this.blockLen; - return this; - } - feed(data) { - return this.update(data); - } - finish() { } - digestInto(out) { - throw new Error('KeccakPRG: digest is not allowed, please use .fetch instead.'); - } - fetch(bytes) { - return this.xof(bytes); - } - // Ensure irreversibility (even if state leaked previous outputs cannot be computed) - forget() { - if (this.rate < 1600 / 2 + 1) - throw new Error('KeccakPRG: rate too low to use forget'); - this.keccak(); - for (let i = 0; i < this.blockLen; i++) - this.state[i] = 0; - this.pos = this.blockLen; - this.keccak(); - this.posOut = this.blockLen; - } - _cloneInto(to) { - const { rate } = this; - to || (to = new KeccakPRG(1600 - rate)); - super._cloneInto(to); - to.rate = rate; - return to; - } - clone() { - return this._cloneInto(); - } -} -const keccakprg = (capacity = 254) => new KeccakPRG(capacity); -exports.keccakprg = keccakprg; -//# sourceMappingURL=sha3-addons.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/sha3-addons.js.map b/node_modules/@noble/curves/node_modules/@noble/hashes/sha3-addons.js.map deleted file mode 100644 index 406aeaa2..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/sha3-addons.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sha3-addons.js","sourceRoot":"","sources":["src/sha3-addons.ts"],"names":[],"mappings":";;;AAAA,6CAAsD;AACtD,yCAAyF;AACzF,uCAA8C;AAC9C,kCAAkC;AAClC,SAAS,UAAU,CAAC,CAAS;IAC3B,MAAM,GAAG,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;IACvB,CAAC,KAAK,CAAC,CAAC;IACR,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,KAAK,CAAC;QAAE,GAAG,CAAC,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;IAC7C,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACxB,OAAO,IAAI,UAAU,CAAC,GAAG,CAAC,CAAC;AAC7B,CAAC;AAED,SAAS,WAAW,CAAC,CAAS;IAC5B,MAAM,GAAG,GAAG,CAAC,CAA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C;QACd,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC,EAAE;YAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;QAC1D,IAAI,CAAC,GAAG,GAAG,IAAI,CAAC,QAAQ,CAAC;QACzB,IAAI,CAAC,MAAM,EAAE,CAAC;QACd,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,QAAQ,CAAC;IAC9B,CAAC;IACD,UAAU,CAAC,EAAc;QACvB,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC;QACtB,EAAE,KAAF,EAAE,GAAK,IAAI,SAAS,CAAC,IAAI,GAAG,IAAI,CAAC,EAAC;QAClC,KAAK,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC;QACrB,EAAE,CAAC,IAAI,GAAG,IAAI,CAAC;QACf,OAAO,EAAE,CAAC;IACZ,CAAC;IACD,KAAK;QACH,OAAO,IAAI,CAAC,UAAU,EAAE,CAAC;IAC3B,CAAC;CACF;AAEM,MAAM,SAAS,GAAG,CAAC,QAAQ,GAAG,GAAG,EAAE,EAAE,CAAC,IAAI,SAAS,CAAC,QAAQ,CAAC,CAAC;AAAxD,QAAA,SAAS,aAA+C"} \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/sha3.d.ts b/node_modules/@noble/curves/node_modules/@noble/hashes/sha3.d.ts deleted file mode 100644 index 2107cf64..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/sha3.d.ts +++ /dev/null @@ -1,97 +0,0 @@ -import { Hash, Input, HashXOF } from './utils.js'; -export declare function keccakP(s: Uint32Array, rounds?: number): void; -export declare class Keccak extends Hash implements HashXOF { - blockLen: number; - suffix: number; - outputLen: number; - protected enableXOF: boolean; - protected rounds: number; - protected state: Uint8Array; - protected pos: number; - protected posOut: number; - protected finished: boolean; - protected state32: Uint32Array; - protected destroyed: boolean; - constructor(blockLen: number, suffix: number, outputLen: number, enableXOF?: boolean, rounds?: number); - protected keccak(): void; - update(data: Input): this; - protected finish(): void; - protected writeInto(out: Uint8Array): Uint8Array; - xofInto(out: Uint8Array): Uint8Array; - xof(bytes: number): Uint8Array; - digestInto(out: Uint8Array): Uint8Array; - digest(): Uint8Array; - destroy(): void; - _cloneInto(to?: Keccak): Keccak; -} -export declare const sha3_224: { - (msg: Input): Uint8Array; - outputLen: number; - blockLen: number; - create(): Hash; -}; -/** - * SHA3-256 hash function - * @param message - that would be hashed - */ -export declare const sha3_256: { - (msg: Input): Uint8Array; - outputLen: number; - blockLen: number; - create(): Hash; -}; -export declare const sha3_384: { - (msg: Input): Uint8Array; - outputLen: number; - blockLen: number; - create(): Hash; -}; -export declare const sha3_512: { - (msg: Input): Uint8Array; - outputLen: number; - blockLen: number; - create(): Hash; -}; -export declare const keccak_224: { - (msg: Input): Uint8Array; - outputLen: number; - blockLen: number; - create(): Hash; -}; -/** - * keccak-256 hash function. Different from SHA3-256. - * @param message - that would be hashed - */ -export declare const keccak_256: { - (msg: Input): Uint8Array; - outputLen: number; - blockLen: number; - create(): Hash; -}; -export declare const keccak_384: { - (msg: Input): Uint8Array; - outputLen: number; - blockLen: number; - create(): Hash; -}; -export declare const keccak_512: { - (msg: Input): Uint8Array; - outputLen: number; - blockLen: number; - create(): Hash; -}; -export type ShakeOpts = { - dkLen?: number; -}; -export declare const shake128: { - (msg: Input, opts?: ShakeOpts | undefined): Uint8Array; - outputLen: number; - blockLen: number; - create(opts: ShakeOpts): HashXOF>; -}; -export declare const shake256: { - (msg: Input, opts?: ShakeOpts | undefined): Uint8Array; - outputLen: number; - blockLen: number; - create(opts: ShakeOpts): HashXOF>; -}; diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/sha3.js b/node_modules/@noble/curves/node_modules/@noble/hashes/sha3.js deleted file mode 100644 index 7c2779f1..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/sha3.js +++ /dev/null @@ -1,211 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.shake256 = exports.shake128 = exports.keccak_512 = exports.keccak_384 = exports.keccak_256 = exports.keccak_224 = exports.sha3_512 = exports.sha3_384 = exports.sha3_256 = exports.sha3_224 = exports.Keccak = exports.keccakP = void 0; -const _assert_js_1 = require("./_assert.js"); -const _u64_js_1 = require("./_u64.js"); -const utils_js_1 = require("./utils.js"); -// Various per round constants calculations -const [SHA3_PI, SHA3_ROTL, _SHA3_IOTA] = [[], [], []]; -const _0n = BigInt(0); -const _1n = BigInt(1); -const _2n = BigInt(2); -const _7n = BigInt(7); -const _256n = BigInt(256); -const _0x71n = BigInt(0x71); -for (let round = 0, R = _1n, x = 1, y = 0; round < 24; round++) { - // Pi - [x, y] = [y, (2 * x + 3 * y) % 5]; - SHA3_PI.push(2 * (5 * y + x)); - // Rotational - SHA3_ROTL.push((((round + 1) * (round + 2)) / 2) % 64); - // Iota - let t = _0n; - for (let j = 0; j < 7; j++) { - R = ((R << _1n) ^ ((R >> _7n) * _0x71n)) % _256n; - if (R & _2n) - t ^= _1n << ((_1n << BigInt(j)) - _1n); - } - _SHA3_IOTA.push(t); -} -const [SHA3_IOTA_H, SHA3_IOTA_L] = _u64_js_1.default.split(_SHA3_IOTA, true); -// Left rotation (without 0, 32, 64) -const rotlH = (h, l, s) => s > 32 ? _u64_js_1.default.rotlBH(h, l, s) : _u64_js_1.default.rotlSH(h, l, s); -const rotlL = (h, l, s) => s > 32 ? _u64_js_1.default.rotlBL(h, l, s) : _u64_js_1.default.rotlSL(h, l, s); -// Same as keccakf1600, but allows to skip some rounds -function keccakP(s, rounds = 24) { - const B = new Uint32Array(5 * 2); - // NOTE: all indices are x2 since we store state as u32 instead of u64 (bigints to slow in js) - for (let round = 24 - rounds; round < 24; round++) { - // Theta θ - for (let x = 0; x < 10; x++) - B[x] = s[x] ^ s[x + 10] ^ s[x + 20] ^ s[x + 30] ^ s[x + 40]; - for (let x = 0; x < 10; x += 2) { - const idx1 = (x + 8) % 10; - const idx0 = (x + 2) % 10; - const B0 = B[idx0]; - const B1 = B[idx0 + 1]; - const Th = rotlH(B0, B1, 1) ^ B[idx1]; - const Tl = rotlL(B0, B1, 1) ^ B[idx1 + 1]; - for (let y = 0; y < 50; y += 10) { - s[x + y] ^= Th; - s[x + y + 1] ^= Tl; - } - } - // Rho (ρ) and Pi (π) - let curH = s[2]; - let curL = s[3]; - for (let t = 0; t < 24; t++) { - const shift = SHA3_ROTL[t]; - const Th = rotlH(curH, curL, shift); - const Tl = rotlL(curH, curL, shift); - const PI = SHA3_PI[t]; - curH = s[PI]; - curL = s[PI + 1]; - s[PI] = Th; - s[PI + 1] = Tl; - } - // Chi (χ) - for (let y = 0; y < 50; y += 10) { - for (let x = 0; x < 10; x++) - B[x] = s[y + x]; - for (let x = 0; x < 10; x++) - s[y + x] ^= ~B[(x + 2) % 10] & B[(x + 4) % 10]; - } - // Iota (ι) - s[0] ^= SHA3_IOTA_H[round]; - s[1] ^= SHA3_IOTA_L[round]; - } - B.fill(0); -} -exports.keccakP = keccakP; -class Keccak extends utils_js_1.Hash { - // NOTE: we accept arguments in bytes instead of bits here. - constructor(blockLen, suffix, outputLen, enableXOF = false, rounds = 24) { - super(); - this.blockLen = blockLen; - this.suffix = suffix; - this.outputLen = outputLen; - this.enableXOF = enableXOF; - this.rounds = rounds; - this.pos = 0; - this.posOut = 0; - this.finished = false; - this.destroyed = false; - // Can be passed from user as dkLen - _assert_js_1.default.number(outputLen); - // 1600 = 5x5 matrix of 64bit. 1600 bits === 200 bytes - if (0 >= this.blockLen || this.blockLen >= 200) - throw new Error('Sha3 supports only keccak-f1600 function'); - this.state = new Uint8Array(200); - this.state32 = (0, utils_js_1.u32)(this.state); - } - keccak() { - keccakP(this.state32, this.rounds); - this.posOut = 0; - this.pos = 0; - } - update(data) { - _assert_js_1.default.exists(this); - const { blockLen, state } = this; - data = (0, utils_js_1.toBytes)(data); - const len = data.length; - for (let pos = 0; pos < len;) { - const take = Math.min(blockLen - this.pos, len - pos); - for (let i = 0; i < take; i++) - state[this.pos++] ^= data[pos++]; - if (this.pos === blockLen) - this.keccak(); - } - return this; - } - finish() { - if (this.finished) - return; - this.finished = true; - const { state, suffix, pos, blockLen } = this; - // Do the padding - state[pos] ^= suffix; - if ((suffix & 0x80) !== 0 && pos === blockLen - 1) - this.keccak(); - state[blockLen - 1] ^= 0x80; - this.keccak(); - } - writeInto(out) { - _assert_js_1.default.exists(this, false); - _assert_js_1.default.bytes(out); - this.finish(); - const bufferOut = this.state; - const { blockLen } = this; - for (let pos = 0, len = out.length; pos < len;) { - if (this.posOut >= blockLen) - this.keccak(); - const take = Math.min(blockLen - this.posOut, len - pos); - out.set(bufferOut.subarray(this.posOut, this.posOut + take), pos); - this.posOut += take; - pos += take; - } - return out; - } - xofInto(out) { - // Sha3/Keccak usage with XOF is probably mistake, only SHAKE instances can do XOF - if (!this.enableXOF) - throw new Error('XOF is not possible for this instance'); - return this.writeInto(out); - } - xof(bytes) { - _assert_js_1.default.number(bytes); - return this.xofInto(new Uint8Array(bytes)); - } - digestInto(out) { - _assert_js_1.default.output(out, this); - if (this.finished) - throw new Error('digest() was already called'); - this.writeInto(out); - this.destroy(); - return out; - } - digest() { - return this.digestInto(new Uint8Array(this.outputLen)); - } - destroy() { - this.destroyed = true; - this.state.fill(0); - } - _cloneInto(to) { - const { blockLen, suffix, outputLen, rounds, enableXOF } = this; - to || (to = new Keccak(blockLen, suffix, outputLen, enableXOF, rounds)); - to.state32.set(this.state32); - to.pos = this.pos; - to.posOut = this.posOut; - to.finished = this.finished; - to.rounds = rounds; - // Suffix can change in cSHAKE - to.suffix = suffix; - to.outputLen = outputLen; - to.enableXOF = enableXOF; - to.destroyed = this.destroyed; - return to; - } -} -exports.Keccak = Keccak; -const gen = (suffix, blockLen, outputLen) => (0, utils_js_1.wrapConstructor)(() => new Keccak(blockLen, suffix, outputLen)); -exports.sha3_224 = gen(0x06, 144, 224 / 8); -/** - * SHA3-256 hash function - * @param message - that would be hashed - */ -exports.sha3_256 = gen(0x06, 136, 256 / 8); -exports.sha3_384 = gen(0x06, 104, 384 / 8); -exports.sha3_512 = gen(0x06, 72, 512 / 8); -exports.keccak_224 = gen(0x01, 144, 224 / 8); -/** - * keccak-256 hash function. Different from SHA3-256. - * @param message - that would be hashed - */ -exports.keccak_256 = gen(0x01, 136, 256 / 8); -exports.keccak_384 = gen(0x01, 104, 384 / 8); -exports.keccak_512 = gen(0x01, 72, 512 / 8); -const genShake = (suffix, blockLen, outputLen) => (0, utils_js_1.wrapXOFConstructorWithOpts)((opts = {}) => new Keccak(blockLen, suffix, opts.dkLen === undefined ? outputLen : opts.dkLen, true)); -exports.shake128 = genShake(0x1f, 168, 128 / 8); -exports.shake256 = genShake(0x1f, 136, 256 / 8); -//# sourceMappingURL=sha3.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/sha3.js.map b/node_modules/@noble/curves/node_modules/@noble/hashes/sha3.js.map deleted file mode 100644 index 829c6581..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/sha3.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sha3.js","sourceRoot":"","sources":["src/sha3.ts"],"names":[],"mappings":";;;AAAA,6CAAkC;AAClC,uCAA4B;AAC5B,yCAQoB;AAEpB,2CAA2C;AAC3C,MAAM,CAAC,OAAO,EAAE,SAAS,EAAE,UAAU,CAAC,GAAmC,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;AACtF,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;AACtB,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;AACtB,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;AACtB,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;AACtB,MAAM,KAAK,GAAG,MAAM,CAAC,GAAG,CAAC,CAAC;AAC1B,MAAM,MAAM,GAAG,MAAM,CAAC,I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AAA,UAAU,GAAG,GAAG,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,GAAG,CAAC,CAAC,CAAC;AACrC,QAAA,UAAU,GAAG,GAAG,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,GAAG,CAAC,CAAC,CAAC;AACrC,QAAA,UAAU,GAAG,GAAG,CAAC,IAAI,EAAE,EAAE,EAAE,GAAG,GAAG,CAAC,CAAC,CAAC;AAIjD,MAAM,QAAQ,GAAG,CAAC,MAAc,EAAE,QAAgB,EAAE,SAAiB,EAAE,EAAE,CACvE,IAAA,qCAA0B,EACxB,CAAC,OAAkB,EAAE,EAAE,EAAE,CACvB,IAAI,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,CACxF,CAAC;AAES,QAAA,QAAQ,GAAG,QAAQ,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,GAAG,CAAC,CAAC,CAAC;AACxC,QAAA,QAAQ,GAAG,QAAQ,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,GAAG,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/sha512.d.ts b/node_modules/@noble/curves/node_modules/@noble/hashes/sha512.d.ts deleted file mode 100644 index b8ba9b08..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/sha512.d.ts +++ /dev/null @@ -1,66 +0,0 @@ -import { SHA2 } from './_sha2.js'; -export declare class SHA512 extends SHA2 { - Ah: number; - Al: number; - Bh: number; - Bl: number; - Ch: number; - Cl: number; - Dh: number; - Dl: number; - Eh: number; - El: number; - Fh: number; - Fl: number; - Gh: number; - Gl: number; - Hh: number; - Hl: number; - constructor(); - protected get(): [ - number, - number, - number, - number, - number, - number, - number, - number, - number, - number, - number, - number, - number, - number, - number, - number - ]; - protected set(Ah: number, Al: number, Bh: number, Bl: number, Ch: number, Cl: number, Dh: number, Dl: number, Eh: number, El: number, Fh: number, Fl: number, Gh: number, Gl: number, Hh: number, Hl: number): void; - protected process(view: DataView, offset: number): void; - protected roundClean(): void; - destroy(): void; -} -export declare const sha512: { - (msg: import("./utils.js").Input): Uint8Array; - outputLen: number; - blockLen: number; - create(): import("./utils.js").Hash; -}; -export declare const sha512_224: { - (msg: import("./utils.js").Input): Uint8Array; - outputLen: number; - blockLen: number; - create(): import("./utils.js").Hash; -}; -export declare const sha512_256: { - (msg: import("./utils.js").Input): Uint8Array; - outputLen: number; - blockLen: number; - create(): import("./utils.js").Hash; -}; -export declare const sha384: { - (msg: import("./utils.js").Input): Uint8Array; - outputLen: number; - blockLen: number; - create(): import("./utils.js").Hash; -}; diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/sha512.js b/node_modules/@noble/curves/node_modules/@noble/hashes/sha512.js deleted file mode 100644 index 951a314f..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/sha512.js +++ /dev/null @@ -1,235 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.sha384 = exports.sha512_256 = exports.sha512_224 = exports.sha512 = exports.SHA512 = void 0; -const _sha2_js_1 = require("./_sha2.js"); -const _u64_js_1 = require("./_u64.js"); -const utils_js_1 = require("./utils.js"); -// Round contants (first 32 bits of the fractional parts of the cube roots of the first 80 primes 2..409): -// prettier-ignore -const [SHA512_Kh, SHA512_Kl] = _u64_js_1.default.split([ - '0x428a2f98d728ae22', '0x7137449123ef65cd', '0xb5c0fbcfec4d3b2f', '0xe9b5dba58189dbbc', - '0x3956c25bf348b538', '0x59f111f1b605d019', '0x923f82a4af194f9b', '0xab1c5ed5da6d8118', - '0xd807aa98a3030242', '0x12835b0145706fbe', '0x243185be4ee4b28c', '0x550c7dc3d5ffb4e2', - '0x72be5d74f27b896f', '0x80deb1fe3b1696b1', '0x9bdc06a725c71235', '0xc19bf174cf692694', - '0xe49b69c19ef14ad2', '0xefbe4786384f25e3', '0x0fc19dc68b8cd5b5', '0x240ca1cc77ac9c65', - '0x2de92c6f592b0275', '0x4a7484aa6ea6e483', '0x5cb0a9dcbd41fbd4', '0x76f988da831153b5', - '0x983e5152ee66dfab', '0xa831c66d2db43210', '0xb00327c898fb213f', '0xbf597fc7beef0ee4', - '0xc6e00bf33da88fc2', '0xd5a79147930aa725', '0x06ca6351e003826f', '0x142929670a0e6e70', - '0x27b70a8546d22ffc', '0x2e1b21385c26c926', '0x4d2c6dfc5ac42aed', '0x53380d139d95b3df', - '0x650a73548baf63de', '0x766a0abb3c77b2a8', '0x81c2c92e47edaee6', '0x92722c851482353b', - '0xa2bfe8a14cf10364', '0xa81a664bbc423001', '0xc24b8b70d0f89791', '0xc76c51a30654be30', - '0xd192e819d6ef5218', '0xd69906245565a910', '0xf40e35855771202a', '0x106aa07032bbd1b8', - '0x19a4c116b8d2d0c8', '0x1e376c085141ab53', '0x2748774cdf8eeb99', '0x34b0bcb5e19b48a8', - '0x391c0cb3c5c95a63', '0x4ed8aa4ae3418acb', '0x5b9cca4f7763e373', '0x682e6ff3d6b2b8a3', - '0x748f82ee5defb2fc', '0x78a5636f43172f60', '0x84c87814a1f0ab72', '0x8cc702081a6439ec', - '0x90befffa23631e28', '0xa4506cebde82bde9', '0xbef9a3f7b2c67915', '0xc67178f2e372532b', - '0xca273eceea26619c', '0xd186b8c721c0c207', '0xeada7dd6cde0eb1e', '0xf57d4f7fee6ed178', - '0x06f067aa72176fba', '0x0a637dc5a2c898a6', '0x113f9804bef90dae', '0x1b710b35131c471b', - '0x28db77f523047d84', '0x32caab7b40c72493', '0x3c9ebe0a15c9bebc', '0x431d67c49c100d4c', - '0x4cc5d4becb3e42b6', '0x597f299cfc657e2a', '0x5fcb6fab3ad6faec', '0x6c44198c4a475817' -].map(n => BigInt(n))); -// Temporary buffer, not used to store anything between runs -const SHA512_W_H = new Uint32Array(80); -const SHA512_W_L = new Uint32Array(80); -class SHA512 extends _sha2_js_1.SHA2 { - constructor() { - super(128, 64, 16, false); - // We cannot use array here since array allows indexing by variable which means optimizer/compiler cannot use registers. - // Also looks cleaner and easier to verify with spec. - // Initial state (first 32 bits of the fractional parts of the square roots of the first 8 primes 2..19): - // h -- high 32 bits, l -- low 32 bits - this.Ah = 0x6a09e667 | 0; - this.Al = 0xf3bcc908 | 0; - this.Bh = 0xbb67ae85 | 0; - this.Bl = 0x84caa73b | 0; - this.Ch = 0x3c6ef372 | 0; - this.Cl = 0xfe94f82b | 0; - this.Dh = 0xa54ff53a | 0; - this.Dl = 0x5f1d36f1 | 0; - this.Eh = 0x510e527f | 0; - this.El = 0xade682d1 | 0; - this.Fh = 0x9b05688c | 0; - this.Fl = 0x2b3e6c1f | 0; - this.Gh = 0x1f83d9ab | 0; - this.Gl = 0xfb41bd6b | 0; - this.Hh = 0x5be0cd19 | 0; - this.Hl = 0x137e2179 | 0; - } - // prettier-ignore - get() { - const { Ah, Al, Bh, Bl, Ch, Cl, Dh, Dl, Eh, El, Fh, Fl, Gh, Gl, Hh, Hl } = this; - return [Ah, Al, Bh, Bl, Ch, Cl, Dh, Dl, Eh, El, Fh, Fl, Gh, Gl, Hh, Hl]; - } - // prettier-ignore - set(Ah, Al, Bh, Bl, Ch, Cl, Dh, Dl, Eh, El, Fh, Fl, Gh, Gl, Hh, Hl) { - this.Ah = Ah | 0; - this.Al = Al | 0; - this.Bh = Bh | 0; - this.Bl = Bl | 0; - this.Ch = Ch | 0; - this.Cl = Cl | 0; - this.Dh = Dh | 0; - this.Dl = Dl | 0; - this.Eh = Eh | 0; - this.El = El | 0; - this.Fh = Fh | 0; - this.Fl = Fl | 0; - this.Gh = Gh | 0; - this.Gl = Gl | 0; - this.Hh = Hh | 0; - this.Hl = Hl | 0; - } - process(view, offset) { - // Extend the first 16 words into the remaining 64 words w[16..79] of the message schedule array - for (let i = 0; i < 16; i++, offset += 4) { - SHA512_W_H[i] = view.getUint32(offset); - SHA512_W_L[i] = view.getUint32((offset += 4)); - } - for (let i = 16; i < 80; i++) { - // s0 := (w[i-15] rightrotate 1) xor (w[i-15] rightrotate 8) xor (w[i-15] rightshift 7) - const W15h = SHA512_W_H[i - 15] | 0; - const W15l = SHA512_W_L[i - 15] | 0; - const s0h = _u64_js_1.default.rotrSH(W15h, W15l, 1) ^ _u64_js_1.default.rotrSH(W15h, W15l, 8) ^ _u64_js_1.default.shrSH(W15h, W15l, 7); - const s0l = _u64_js_1.default.rotrSL(W15h, W15l, 1) ^ _u64_js_1.default.rotrSL(W15h, W15l, 8) ^ _u64_js_1.default.shrSL(W15h, W15l, 7); - // s1 := (w[i-2] rightrotate 19) xor (w[i-2] rightrotate 61) xor (w[i-2] rightshift 6) - const W2h = SHA512_W_H[i - 2] | 0; - const W2l = SHA512_W_L[i - 2] | 0; - const s1h = _u64_js_1.default.rotrSH(W2h, W2l, 19) ^ _u64_js_1.default.rotrBH(W2h, W2l, 61) ^ _u64_js_1.default.shrSH(W2h, W2l, 6); - const s1l = _u64_js_1.default.rotrSL(W2h, W2l, 19) ^ _u64_js_1.default.rotrBL(W2h, W2l, 61) ^ _u64_js_1.default.shrSL(W2h, W2l, 6); - // SHA256_W[i] = s0 + s1 + SHA256_W[i - 7] + SHA256_W[i - 16]; - const SUMl = _u64_js_1.default.add4L(s0l, s1l, SHA512_W_L[i - 7], SHA512_W_L[i - 16]); - const SUMh = _u64_js_1.default.add4H(SUMl, s0h, s1h, SHA512_W_H[i - 7], SHA512_W_H[i - 16]); - SHA512_W_H[i] = SUMh | 0; - SHA512_W_L[i] = SUMl | 0; - } - let { Ah, Al, Bh, Bl, Ch, Cl, Dh, Dl, Eh, El, Fh, Fl, Gh, Gl, Hh, Hl } = this; - // Compression function main loop, 80 rounds - for (let i = 0; i < 80; i++) { - // S1 := (e rightrotate 14) xor (e rightrotate 18) xor (e rightrotate 41) - const sigma1h = _u64_js_1.default.rotrSH(Eh, El, 14) ^ _u64_js_1.default.rotrSH(Eh, El, 18) ^ _u64_js_1.default.rotrBH(Eh, El, 41); - const sigma1l = _u64_js_1.default.rotrSL(Eh, El, 14) ^ _u64_js_1.default.rotrSL(Eh, El, 18) ^ _u64_js_1.default.rotrBL(Eh, El, 41); - //const T1 = (H + sigma1 + Chi(E, F, G) + SHA256_K[i] + SHA256_W[i]) | 0; - const CHIh = (Eh & Fh) ^ (~Eh & Gh); - const CHIl = (El & Fl) ^ (~El & Gl); - // T1 = H + sigma1 + Chi(E, F, G) + SHA512_K[i] + SHA512_W[i] - // prettier-ignore - const T1ll = _u64_js_1.default.add5L(Hl, sigma1l, CHIl, SHA512_Kl[i], SHA512_W_L[i]); - const T1h = _u64_js_1.default.add5H(T1ll, Hh, sigma1h, CHIh, SHA512_Kh[i], SHA512_W_H[i]); - const T1l = T1ll | 0; - // S0 := (a rightrotate 28) xor (a rightrotate 34) xor (a rightrotate 39) - const sigma0h = _u64_js_1.default.rotrSH(Ah, Al, 28) ^ _u64_js_1.default.rotrBH(Ah, Al, 34) ^ _u64_js_1.default.rotrBH(Ah, Al, 39); - const sigma0l = _u64_js_1.default.rotrSL(Ah, Al, 28) ^ _u64_js_1.default.rotrBL(Ah, Al, 34) ^ _u64_js_1.default.rotrBL(Ah, Al, 39); - const MAJh = (Ah & Bh) ^ (Ah & Ch) ^ (Bh & Ch); - const MAJl = (Al & Bl) ^ (Al & Cl) ^ (Bl & Cl); - Hh = Gh | 0; - Hl = Gl | 0; - Gh = Fh | 0; - Gl = Fl | 0; - Fh = Eh | 0; - Fl = El | 0; - ({ h: Eh, l: El } = _u64_js_1.default.add(Dh | 0, Dl | 0, T1h | 0, T1l | 0)); - Dh = Ch | 0; - Dl = Cl | 0; - Ch = Bh | 0; - Cl = Bl | 0; - Bh = Ah | 0; - Bl = Al | 0; - const All = _u64_js_1.default.add3L(T1l, sigma0l, MAJl); - Ah = _u64_js_1.default.add3H(All, T1h, sigma0h, MAJh); - Al = All | 0; - } - // Add the compressed chunk to the current hash value - ({ h: Ah, l: Al } = _u64_js_1.default.add(this.Ah | 0, this.Al | 0, Ah | 0, Al | 0)); - ({ h: Bh, l: Bl } = _u64_js_1.default.add(this.Bh | 0, this.Bl | 0, Bh | 0, Bl | 0)); - ({ h: Ch, l: Cl } = _u64_js_1.default.add(this.Ch | 0, this.Cl | 0, Ch | 0, Cl | 0)); - ({ h: Dh, l: Dl } = _u64_js_1.default.add(this.Dh | 0, this.Dl | 0, Dh | 0, Dl | 0)); - ({ h: Eh, l: El } = _u64_js_1.default.add(this.Eh | 0, this.El | 0, Eh | 0, El | 0)); - ({ h: Fh, l: Fl } = _u64_js_1.default.add(this.Fh | 0, this.Fl | 0, Fh | 0, Fl | 0)); - ({ h: Gh, l: Gl } = _u64_js_1.default.add(this.Gh | 0, this.Gl | 0, Gh | 0, Gl | 0)); - ({ h: Hh, l: Hl } = _u64_js_1.default.add(this.Hh | 0, this.Hl | 0, Hh | 0, Hl | 0)); - this.set(Ah, Al, Bh, Bl, Ch, Cl, Dh, Dl, Eh, El, Fh, Fl, Gh, Gl, Hh, Hl); - } - roundClean() { - SHA512_W_H.fill(0); - SHA512_W_L.fill(0); - } - destroy() { - this.buffer.fill(0); - this.set(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); - } -} -exports.SHA512 = SHA512; -class SHA512_224 extends SHA512 { - constructor() { - super(); - // h -- high 32 bits, l -- low 32 bits - this.Ah = 0x8c3d37c8 | 0; - this.Al = 0x19544da2 | 0; - this.Bh = 0x73e19966 | 0; - this.Bl = 0x89dcd4d6 | 0; - this.Ch = 0x1dfab7ae | 0; - this.Cl = 0x32ff9c82 | 0; - this.Dh = 0x679dd514 | 0; - this.Dl = 0x582f9fcf | 0; - this.Eh = 0x0f6d2b69 | 0; - this.El = 0x7bd44da8 | 0; - this.Fh = 0x77e36f73 | 0; - this.Fl = 0x04c48942 | 0; - this.Gh = 0x3f9d85a8 | 0; - this.Gl = 0x6a1d36c8 | 0; - this.Hh = 0x1112e6ad | 0; - this.Hl = 0x91d692a1 | 0; - this.outputLen = 28; - } -} -class SHA512_256 extends SHA512 { - constructor() { - super(); - // h -- high 32 bits, l -- low 32 bits - this.Ah = 0x22312194 | 0; - this.Al = 0xfc2bf72c | 0; - this.Bh = 0x9f555fa3 | 0; - this.Bl = 0xc84c64c2 | 0; - this.Ch = 0x2393b86b | 0; - this.Cl = 0x6f53b151 | 0; - this.Dh = 0x96387719 | 0; - this.Dl = 0x5940eabd | 0; - this.Eh = 0x96283ee2 | 0; - this.El = 0xa88effe3 | 0; - this.Fh = 0xbe5e1e25 | 0; - this.Fl = 0x53863992 | 0; - this.Gh = 0x2b0199fc | 0; - this.Gl = 0x2c85b8aa | 0; - this.Hh = 0x0eb72ddc | 0; - this.Hl = 0x81c52ca2 | 0; - this.outputLen = 32; - } -} -class SHA384 extends SHA512 { - constructor() { - super(); - // h -- high 32 bits, l -- low 32 bits - this.Ah = 0xcbbb9d5d | 0; - this.Al = 0xc1059ed8 | 0; - this.Bh = 0x629a292a | 0; - this.Bl = 0x367cd507 | 0; - this.Ch = 0x9159015a | 0; - this.Cl = 0x3070dd17 | 0; - this.Dh = 0x152fecd8 | 0; - this.Dl = 0xf70e5939 | 0; - this.Eh = 0x67332667 | 0; - this.El = 0xffc00b31 | 0; - this.Fh = 0x8eb44a87 | 0; - this.Fl = 0x68581511 | 0; - this.Gh = 0xdb0c2e0d | 0; - this.Gl = 0x64f98fa7 | 0; - this.Hh = 0x47b5481d | 0; - this.Hl = 0xbefa4fa4 | 0; - this.outputLen = 48; - } -} -exports.sha512 = (0, utils_js_1.wrapConstructor)(() => new SHA512()); -exports.sha512_224 = (0, utils_js_1.wrapConstructor)(() => new SHA512_224()); -exports.sha512_256 = (0, utils_js_1.wrapConstructor)(() => new SHA512_256()); -exports.sha384 = (0, utils_js_1.wrapConstructor)(() => new SHA384()); -//# sourceMappingURL=sha512.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/sha512.js.map b/node_modules/@noble/curves/node_modules/@noble/hashes/sha512.js.map deleted file mode 100644 index 5f5cee4f..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/sha512.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sha512.js","sourceRoot":"","sources":["src/sha512.ts"],"names":[],"mappings":";;;AAAA,yCAAkC;AAClC,uCAA4B;AAC5B,yCAA6C;AAE7C,0GAA0G;AAC1G,kBAAkB;AAClB,MAAM,CAAC,SAAS,EAAE,SAAS,CAAC,GAAG,iBAAG,CAAC,KAAK,CAAC;IACvC,oBAAoB,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,oBAAoB;IACtF,oBAAoB,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,oBAAoB;IACtF,oBAAoB,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,oBAAoB;IACtF,oBAAoB,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,oBAAoB;IACtF,oBAAoB,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,oBAAoB;IACtF,oBAAoB,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,oBAAoB;IACtF,oBAAoB,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,oBAAoB;IACtF,oBAAoB,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,oBAAoB;IACtF,oBAAoB,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,oBAAoB;IACtF,oBAAoB,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,oBAAoB;IACtF,oBAAoB,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,oBAAoB;IACtF,oBAAoB,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,oBAAoB;IACtF,oBAAoB,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,oBAAoB;IACtF,oBAAoB,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,oBAAoB;IACtF,oBAAoB,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,oBAAoB;IACtF,oBAAoB,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,oBAAoB;I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b/node_modules/@noble/curves/node_modules/@noble/hashes/src/_assert.ts deleted file mode 100644 index 492c9254..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/src/_assert.ts +++ /dev/null @@ -1,49 +0,0 @@ -export function number(n: number) { - if (!Number.isSafeInteger(n) || n < 0) throw new Error(`Wrong positive integer: ${n}`); -} - -export function bool(b: boolean) { - if (typeof b !== 'boolean') throw new Error(`Expected boolean, not ${b}`); -} - -export function bytes(b: Uint8Array | undefined, ...lengths: number[]) { - if (!(b instanceof Uint8Array)) throw new Error('Expected Uint8Array'); - if (lengths.length > 0 && !lengths.includes(b.length)) - throw new Error(`Expected Uint8Array of length ${lengths}, not of length=${b.length}`); -} - -type Hash = { - (data: Uint8Array): Uint8Array; - blockLen: number; - outputLen: number; - create: any; -}; -export function hash(hash: Hash) { - if (typeof hash !== 'function' || typeof hash.create !== 'function') - throw new Error('Hash should be wrapped by utils.wrapConstructor'); - number(hash.outputLen); - number(hash.blockLen); -} - -export function exists(instance: any, checkFinished = true) { - if (instance.destroyed) throw new Error('Hash instance has been destroyed'); - if (checkFinished && instance.finished) throw new Error('Hash#digest() has already been called'); -} -export function output(out: any, instance: any) { - bytes(out); - const min = instance.outputLen; - if (out.length < min) { - throw new Error(`digestInto() expects output buffer of length at least ${min}`); - } -} - -const assert = { - number, - bool, - bytes, - hash, - exists, - output, -}; - -export default assert; diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/src/_blake2.ts b/node_modules/@noble/curves/node_modules/@noble/hashes/src/_blake2.ts deleted file mode 100644 index 7adabeb7..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/src/_blake2.ts +++ /dev/null @@ -1,125 +0,0 @@ -import assert from './_assert.js'; -import { Hash, Input, toBytes, u32 } from './utils.js'; -// For BLAKE2b, the two extra permutations for rounds 10 and 11 are SIGMA[10..11] = SIGMA[0..1]. -// prettier-ignore -export const SIGMA = new Uint8Array([ - 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, - 14, 10, 4, 8, 9, 15, 13, 6, 1, 12, 0, 2, 11, 7, 5, 3, - 11, 8, 12, 0, 5, 2, 15, 13, 10, 14, 3, 6, 7, 1, 9, 4, - 7, 9, 3, 1, 13, 12, 11, 14, 2, 6, 5, 10, 4, 0, 15, 8, - 9, 0, 5, 7, 2, 4, 10, 15, 14, 1, 11, 12, 6, 8, 3, 13, - 2, 12, 6, 10, 0, 11, 8, 3, 4, 13, 7, 5, 15, 14, 1, 9, - 12, 5, 1, 15, 14, 13, 4, 10, 0, 7, 6, 3, 9, 2, 8, 11, - 13, 11, 7, 14, 12, 1, 3, 9, 5, 0, 15, 4, 8, 6, 2, 10, - 6, 15, 14, 9, 11, 3, 0, 8, 12, 2, 13, 7, 1, 4, 10, 5, - 10, 2, 8, 4, 7, 6, 1, 5, 15, 11, 9, 14, 3, 12, 13, 0, - 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, - 14, 10, 4, 8, 9, 15, 13, 6, 1, 12, 0, 2, 11, 7, 5, 3, -]); - -export type BlakeOpts = { - dkLen?: number; - key?: Input; - salt?: Input; - personalization?: Input; -}; - -export abstract class BLAKE2> extends Hash { - protected abstract compress(msg: Uint32Array, offset: number, isLast: boolean): void; - protected abstract get(): number[]; - protected abstract set(...args: number[]): void; - abstract destroy(): void; - protected buffer: Uint8Array; - protected buffer32: Uint32Array; - protected length: number = 0; - protected pos: number = 0; - protected finished = false; - protected destroyed = false; - - constructor( - readonly blockLen: number, - public outputLen: number, - opts: BlakeOpts = {}, - keyLen: number, - saltLen: number, - persLen: number - ) { - super(); - assert.number(blockLen); - assert.number(outputLen); - assert.number(keyLen); - if (outputLen < 0 || outputLen > keyLen) throw new Error('outputLen bigger than keyLen'); - if (opts.key !== undefined && (opts.key.length < 1 || opts.key.length > keyLen)) - throw new Error(`key must be up 1..${keyLen} byte long or undefined`); - if (opts.salt !== undefined && opts.salt.length !== saltLen) - throw new Error(`salt must be ${saltLen} byte long or undefined`); - if (opts.personalization !== undefined && opts.personalization.length !== persLen) - throw new Error(`personalization must be ${persLen} byte long or undefined`); - this.buffer32 = u32((this.buffer = new Uint8Array(blockLen))); - } - update(data: Input) { - assert.exists(this); - // Main difference with other hashes: there is flag for last block, - // so we cannot process current block before we know that there - // is the next one. This significantly complicates logic and reduces ability - // to do zero-copy processing - const { blockLen, buffer, buffer32 } = this; - data = toBytes(data); - const len = data.length; - const offset = data.byteOffset; - const buf = data.buffer; - for (let pos = 0; pos < len; ) { - // If buffer is full and we still have input (don't process last block, same as blake2s) - if (this.pos === blockLen) { - this.compress(buffer32, 0, false); - this.pos = 0; - } - const take = Math.min(blockLen - this.pos, len - pos); - const dataOffset = offset + pos; - // full block && aligned to 4 bytes && not last in input - if (take === blockLen && !(dataOffset % 4) && pos + take < len) { - const data32 = new Uint32Array(buf, dataOffset, Math.floor((len - pos) / 4)); - for (let pos32 = 0; pos + blockLen < len; pos32 += buffer32.length, pos += blockLen) { - this.length += blockLen; - this.compress(data32, pos32, false); - } - continue; - } - buffer.set(data.subarray(pos, pos + take), this.pos); - this.pos += take; - this.length += take; - pos += take; - } - return this; - } - digestInto(out: Uint8Array) { - assert.exists(this); - assert.output(out, this); - const { pos, buffer32 } = this; - this.finished = true; - // Padding - this.buffer.subarray(pos).fill(0); - this.compress(buffer32, 0, true); - const out32 = u32(out); - this.get().forEach((v, i) => (out32[i] = v)); - } - digest() { - const { buffer, outputLen } = this; - this.digestInto(buffer); - const res = buffer.slice(0, outputLen); - this.destroy(); - return res; - } - _cloneInto(to?: T): T { - const { buffer, length, finished, destroyed, outputLen, pos } = this; - to ||= new (this.constructor as any)({ dkLen: outputLen }) as T; - to.set(...this.get()); - to.length = length; - to.finished = finished; - to.destroyed = destroyed; - to.outputLen = outputLen; - to.buffer.set(buffer); - to.pos = pos; - return to; - } -} diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/src/_sha2.ts b/node_modules/@noble/curves/node_modules/@noble/hashes/src/_sha2.ts deleted file mode 100644 index 15f8f63c..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/src/_sha2.ts +++ /dev/null @@ -1,118 +0,0 @@ -import assert from './_assert.js'; -import { Hash, createView, Input, toBytes } from './utils.js'; - -// Polyfill for Safari 14 -function setBigUint64(view: DataView, byteOffset: number, value: bigint, isLE: boolean): void { - if (typeof view.setBigUint64 === 'function') return view.setBigUint64(byteOffset, value, isLE); - const _32n = BigInt(32); - const _u32_max = BigInt(0xffffffff); - const wh = Number((value >> _32n) & _u32_max); - const wl = Number(value & _u32_max); - const h = isLE ? 4 : 0; - const l = isLE ? 0 : 4; - view.setUint32(byteOffset + h, wh, isLE); - view.setUint32(byteOffset + l, wl, isLE); -} - -// Base SHA2 class (RFC 6234) -export abstract class SHA2> extends Hash { - protected abstract process(buf: DataView, offset: number): void; - protected abstract get(): number[]; - protected abstract set(...args: number[]): void; - abstract destroy(): void; - protected abstract roundClean(): void; - // For partial updates less than block size - protected buffer: Uint8Array; - protected view: DataView; - protected finished = false; - protected length = 0; - protected pos = 0; - protected destroyed = false; - - constructor( - readonly blockLen: number, - public outputLen: number, - readonly padOffset: number, - readonly isLE: boolean - ) { - super(); - this.buffer = new Uint8Array(blockLen); - this.view = createView(this.buffer); - } - update(data: Input): this { - assert.exists(this); - const { view, buffer, blockLen } = this; - data = toBytes(data); - const len = data.length; - for (let pos = 0; pos < len; ) { - const take = Math.min(blockLen - this.pos, len - pos); - // Fast path: we have at least one block in input, cast it to view and process - if (take === blockLen) { - const dataView = createView(data); - for (; blockLen <= len - pos; pos += blockLen) this.process(dataView, pos); - continue; - } - buffer.set(data.subarray(pos, pos + take), this.pos); - this.pos += take; - pos += take; - if (this.pos === blockLen) { - this.process(view, 0); - this.pos = 0; - } - } - this.length += data.length; - this.roundClean(); - return this; - } - digestInto(out: Uint8Array) { - assert.exists(this); - assert.output(out, this); - this.finished = true; - // Padding - // We can avoid allocation of buffer for padding completely if it - // was previously not allocated here. But it won't change performance. - const { buffer, view, blockLen, isLE } = this; - let { pos } = this; - // append the bit '1' to the message - buffer[pos++] = 0b10000000; - this.buffer.subarray(pos).fill(0); - // we have less than padOffset left in buffer, so we cannot put length in current block, need process it and pad again - if (this.padOffset > blockLen - pos) { - this.process(view, 0); - pos = 0; - } - // Pad until full block byte with zeros - for (let i = pos; i < blockLen; i++) buffer[i] = 0; - // Note: sha512 requires length to be 128bit integer, but length in JS will overflow before that - // You need to write around 2 exabytes (u64_max / 8 / (1024**6)) for this to happen. - // So we just write lowest 64 bits of that value. - setBigUint64(view, blockLen - 8, BigInt(this.length * 8), isLE); - this.process(view, 0); - const oview = createView(out); - const len = this.outputLen; - // NOTE: we do division by 4 later, which should be fused in single op with modulo by JIT - if (len % 4) throw new Error('_sha2: outputLen should be aligned to 32bit'); - const outLen = len / 4; - const state = this.get(); - if (outLen > state.length) throw new Error('_sha2: outputLen bigger than state'); - for (let i = 0; i < outLen; i++) oview.setUint32(4 * i, state[i], isLE); - } - digest() { - const { buffer, outputLen } = this; - this.digestInto(buffer); - const res = buffer.slice(0, outputLen); - this.destroy(); - return res; - } - _cloneInto(to?: T): T { - to ||= new (this.constructor as any)() as T; - to.set(...this.get()); - const { blockLen, buffer, length, finished, destroyed, pos } = this; - to.length = length; - to.pos = pos; - to.finished = finished; - to.destroyed = destroyed; - if (length % blockLen) to.buffer.set(buffer); - return to; - } -} diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/src/_u64.ts b/node_modules/@noble/curves/node_modules/@noble/hashes/src/_u64.ts deleted file mode 100644 index 368de54b..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/src/_u64.ts +++ /dev/null @@ -1,69 +0,0 @@ -const U32_MASK64 = BigInt(2 ** 32 - 1); -const _32n = BigInt(32); - -// We are not using BigUint64Array, because they are extremely slow as per 2022 -export function fromBig(n: bigint, le = false) { - if (le) return { h: Number(n & U32_MASK64), l: Number((n >> _32n) & U32_MASK64) }; - return { h: Number((n >> _32n) & U32_MASK64) | 0, l: Number(n & U32_MASK64) | 0 }; -} - -export function split(lst: bigint[], le = false) { - let Ah = new Uint32Array(lst.length); - let Al = new Uint32Array(lst.length); - for (let i = 0; i < lst.length; i++) { - const { h, l } = fromBig(lst[i], le); - [Ah[i], Al[i]] = [h, l]; - } - return [Ah, Al]; -} - -export const toBig = (h: number, l: number) => (BigInt(h >>> 0) << _32n) | BigInt(l >>> 0); -// for Shift in [0, 32) -const shrSH = (h: number, l: number, s: number) => h >>> s; -const shrSL = (h: number, l: number, s: number) => (h << (32 - s)) | (l >>> s); -// Right rotate for Shift in [1, 32) -const rotrSH = (h: number, l: number, s: number) => (h >>> s) | (l << (32 - s)); -const rotrSL = (h: number, l: number, s: number) => (h << (32 - s)) | (l >>> s); -// Right rotate for Shift in (32, 64), NOTE: 32 is special case. -const rotrBH = (h: number, l: number, s: number) => (h << (64 - s)) | (l >>> (s - 32)); -const rotrBL = (h: number, l: number, s: number) => (h >>> (s - 32)) | (l << (64 - s)); -// Right rotate for shift===32 (just swaps l&h) -const rotr32H = (h: number, l: number) => l; -const rotr32L = (h: number, l: number) => h; -// Left rotate for Shift in [1, 32) -const rotlSH = (h: number, l: number, s: number) => (h << s) | (l >>> (32 - s)); -const rotlSL = (h: number, l: number, s: number) => (l << s) | (h >>> (32 - s)); -// Left rotate for Shift in (32, 64), NOTE: 32 is special case. -const rotlBH = (h: number, l: number, s: number) => (l << (s - 32)) | (h >>> (64 - s)); -const rotlBL = (h: number, l: number, s: number) => (h << (s - 32)) | (l >>> (64 - s)); - -// JS uses 32-bit signed integers for bitwise operations which means we cannot -// simple take carry out of low bit sum by shift, we need to use division. -// Removing "export" has 5% perf penalty -_- -export function add(Ah: number, Al: number, Bh: number, Bl: number) { - const l = (Al >>> 0) + (Bl >>> 0); - return { h: (Ah + Bh + ((l / 2 ** 32) | 0)) | 0, l: l | 0 }; -} -// Addition with more than 2 elements -const add3L = (Al: number, Bl: number, Cl: number) => (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0); -const add3H = (low: number, Ah: number, Bh: number, Ch: number) => - (Ah + Bh + Ch + ((low / 2 ** 32) | 0)) | 0; -const add4L = (Al: number, Bl: number, Cl: number, Dl: number) => - (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0) + (Dl >>> 0); -const add4H = (low: number, Ah: number, Bh: number, Ch: number, Dh: number) => - (Ah + Bh + Ch + Dh + ((low / 2 ** 32) | 0)) | 0; -const add5L = (Al: number, Bl: number, Cl: number, Dl: number, El: number) => - (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0) + (Dl >>> 0) + (El >>> 0); -const add5H = (low: number, Ah: number, Bh: number, Ch: number, Dh: number, Eh: number) => - (Ah + Bh + Ch + Dh + Eh + ((low / 2 ** 32) | 0)) | 0; - -// prettier-ignore -const u64 = { - fromBig, split, toBig, - shrSH, shrSL, - rotrSH, rotrSL, rotrBH, rotrBL, - rotr32H, rotr32L, - rotlSH, rotlSL, rotlBH, rotlBL, - add, add3L, add3H, add4L, add4H, add5H, add5L, -}; -export default u64; diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/src/argon2.ts b/node_modules/@noble/curves/node_modules/@noble/hashes/src/argon2.ts deleted file mode 100644 index 27852bbe..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/src/argon2.ts +++ /dev/null @@ -1,374 +0,0 @@ -import assert from './_assert.js'; -import { Input, toBytes, u8, u32 } from './utils.js'; -import { blake2b } from './blake2b.js'; -import u64 from './_u64.js'; - -// Experimental Argon2 RFC 9106 implementation. It may be removed at any time. -enum Types { - Argond2d = 0, - Argon2i = 1, - Argon2id = 2, -} - -const ARGON2_SYNC_POINTS = 4; - -const toBytesOptional = (buf?: Input) => (buf !== undefined ? toBytes(buf) : new Uint8Array([])); - -function mul(a: number, b: number) { - const aL = a & 0xffff; - const aH = a >>> 16; - const bL = b & 0xffff; - const bH = b >>> 16; - const ll = Math.imul(aL, bL); - const hl = Math.imul(aH, bL); - const lh = Math.imul(aL, bH); - const hh = Math.imul(aH, bH); - const BUF = ((ll >>> 16) + (hl & 0xffff) + lh) | 0; - const h = ((hl >>> 16) + (BUF >>> 16) + hh) | 0; - return { h, l: (BUF << 16) | (ll & 0xffff) }; -} - -function relPos(areaSize: number, relativePos: number) { - // areaSize - 1 - ((areaSize * ((relativePos ** 2) >>> 32)) >>> 32) - return areaSize - 1 - mul(areaSize, mul(relativePos, relativePos).h).h; -} - -function mul2(a: number, b: number) { - // 2 * a * b (via shifts) - const { h, l } = mul(a, b); - return { h: ((h << 1) | (l >>> 31)) & 0xffff_ffff, l: (l << 1) & 0xffff_ffff }; -} - -function blamka(Ah: number, Al: number, Bh: number, Bl: number) { - const { h: Ch, l: Cl } = mul2(Al, Bl); - // A + B + (2 * A * B) - const Rll = u64.add3L(Al, Bl, Cl); - return { h: u64.add3H(Rll, Ah, Bh, Ch), l: Rll | 0 }; -} - -// Temporary block buffer -const BUF = new Uint32Array(256); - -function G(a: number, b: number, c: number, d: number) { - let Al = BUF[2*a], Ah = BUF[2*a + 1]; // prettier-ignore - let Bl = BUF[2*b], Bh = BUF[2*b + 1]; // prettier-ignore - let Cl = BUF[2*c], Ch = BUF[2*c + 1]; // prettier-ignore - let Dl = BUF[2*d], Dh = BUF[2*d + 1]; // prettier-ignore - - ({ h: Ah, l: Al } = blamka(Ah, Al, Bh, Bl)); - ({ Dh, Dl } = { Dh: Dh ^ Ah, Dl: Dl ^ Al }); - ({ Dh, Dl } = { Dh: u64.rotr32H(Dh, Dl), Dl: u64.rotr32L(Dh, Dl) }); - - ({ h: Ch, l: Cl } = blamka(Ch, Cl, Dh, Dl)); - ({ Bh, Bl } = { Bh: Bh ^ Ch, Bl: Bl ^ Cl }); - ({ Bh, Bl } = { Bh: u64.rotrSH(Bh, Bl, 24), Bl: u64.rotrSL(Bh, Bl, 24) }); - - ({ h: Ah, l: Al } = blamka(Ah, Al, Bh, Bl)); - ({ Dh, Dl } = { Dh: Dh ^ Ah, Dl: Dl ^ Al }); - ({ Dh, Dl } = { Dh: u64.rotrSH(Dh, Dl, 16), Dl: u64.rotrSL(Dh, Dl, 16) }); - - ({ h: Ch, l: Cl } = blamka(Ch, Cl, Dh, Dl)); - ({ Bh, Bl } = { Bh: Bh ^ Ch, Bl: Bl ^ Cl }); - ({ Bh, Bl } = { Bh: u64.rotrBH(Bh, Bl, 63), Bl: u64.rotrBL(Bh, Bl, 63) }); - - (BUF[2 * a] = Al), (BUF[2 * a + 1] = Ah); - (BUF[2 * b] = Bl), (BUF[2 * b + 1] = Bh); - (BUF[2 * c] = Cl), (BUF[2 * c + 1] = Ch); - (BUF[2 * d] = Dl), (BUF[2 * d + 1] = Dh); -} - -// prettier-ignore -function P( - v00: number, v01: number, v02: number, v03: number, v04: number, v05: number, v06: number, v07: number, - v08: number, v09: number, v10: number, v11: number, v12: number, v13: number, v14: number, v15: number, -) { - G(v00, v04, v08, v12); - G(v01, v05, v09, v13); - G(v02, v06, v10, v14); - G(v03, v07, v11, v15); - G(v00, v05, v10, v15); - G(v01, v06, v11, v12); - G(v02, v07, v08, v13); - G(v03, v04, v09, v14); -} - -function block(x: Uint32Array, xPos: number, yPos: number, outPos: number, needXor: boolean) { - for (let i = 0; i < 256; i++) BUF[i] = x[xPos + i] ^ x[yPos + i]; - - // columns - for (let i = 0; i < 128; i += 16) { - // prettier-ignore - P( - i, i + 1, i + 2, i + 3, i + 4, i + 5, i + 6, i + 7, - i + 8, i + 9, i + 10, i + 11, i + 12, i + 13, i + 14, i + 15 - ); - } - // rows - for (let i = 0; i < 16; i += 2) { - // prettier-ignore - P( - i, i + 1, i + 16, i + 17, i + 32, i + 33, i + 48, i + 49, - i + 64, i + 65, i + 80, i + 81, i + 96, i + 97, i + 112, i + 113 - ); - } - - if (needXor) for (let i = 0; i < 256; i++) x[outPos + i] ^= BUF[i] ^ x[xPos + i] ^ x[yPos + i]; - else for (let i = 0; i < 256; i++) x[outPos + i] = BUF[i] ^ x[xPos + i] ^ x[yPos + i]; -} - -// Variable-Length Hash Function H' -function Hp(A: Uint32Array, dkLen: number) { - const A8 = u8(A); - const T = new Uint32Array(1); - const T8 = u8(T); - T[0] = dkLen; - // Fast path - if (dkLen <= 64) return blake2b.create({ dkLen }).update(T8).update(A8).digest(); - const out = new Uint8Array(dkLen); - let V = blake2b.create({}).update(T8).update(A8).digest(); - let pos = 0; - // First block - out.set(V.subarray(0, 32)); - pos += 32; - // Rest blocks - for (; dkLen - pos > 64; pos += 32) out.set((V = blake2b(V)).subarray(0, 32), pos); - // Last block - out.set(blake2b(V, { dkLen: dkLen - pos }), pos); - return u32(out); -} - -function indexAlpha( - r: number, - s: number, - laneLen: number, - segmentLen: number, - index: number, - randL: number, - sameLane: boolean = false -) { - let area; - if (0 == r) { - if (0 == s) area = index - 1; - else if (sameLane) area = s * segmentLen + index - 1; - else area = s * segmentLen + (index == 0 ? -1 : 0); - } else if (sameLane) area = laneLen - segmentLen + index - 1; - else area = laneLen - segmentLen + (index == 0 ? -1 : 0); - const startPos = r !== 0 && s !== ARGON2_SYNC_POINTS - 1 ? (s + 1) * segmentLen : 0; - const rel = relPos(area, randL); - // NOTE: check about overflows here - // absPos = (startPos + relPos) % laneLength; - return (startPos + rel) % laneLen; -} - -// RFC 9106 -export type ArgonOpts = { - t: number; // Time cost, iterations count - m: number; // Memory cost (in KB) - p: number; // Parallelization parameter - version?: number; // Default: 0x13 (19) - key?: Input; // Optional key - personalization?: Input; // Optional arbitrary extra data - dkLen?: number; // Desired number of returned bytes - asyncTick?: number; // Maximum time in ms for which async function can block execution - maxmem?: number; - onProgress?: (progress: number) => void; -}; - -function argon2Init(type: Types, password: Input, salt: Input, opts: ArgonOpts) { - password = toBytes(password); - salt = toBytes(salt); - let { p, dkLen, m, t, version, key, personalization, maxmem, onProgress } = { - ...opts, - version: opts.version || 0x13, - dkLen: opts.dkLen || 32, - maxmem: 2 ** 32, - }; - // Validation - assert.number(p); - assert.number(dkLen); - assert.number(m); - assert.number(t); - assert.number(version); - if (dkLen < 4 || dkLen >= 2 ** 32) throw new Error('Argon2: dkLen should be at least 4 bytes'); - if (dkLen < 1 || p >= 2 ** 32) throw new Error('Argon2: p (paralllelism) should be at least 1'); - if (dkLen < 1 || p >= 2 ** 32) throw new Error('Argon2: t (iterations) should be at least 1'); - if (m < 8 * p) throw new Error(`Argon2: memory should be at least 8*p bytes`); - if (version !== 16 && version !== 19) throw new Error(`Argon2: unknown version=${version}`); - password = toBytes(password); - if (password.length < 0 || password.length >= 2 ** 32) - throw new Error('Argon2: password should be less than 4 GB'); - salt = toBytes(salt); - if (salt.length < 8) throw new Error('Argon2: salt should be at least 8 bytes'); - key = toBytesOptional(key); - personalization = toBytesOptional(personalization); - if (onProgress !== undefined && typeof onProgress !== 'function') - throw new Error('progressCb should be function'); - // Params - const lanes = p; - // m' = 4 * p * floor (m / 4p) - const mP = 4 * p * Math.floor(m / (ARGON2_SYNC_POINTS * p)); - //q = m' / p columns - const laneLen = Math.floor(mP / p); - const segmentLen = Math.floor(laneLen / ARGON2_SYNC_POINTS); - // H0 - const h = blake2b.create({}); - const BUF = new Uint32Array(1); - const BUF8 = u8(BUF); - for (const i of [p, dkLen, m, t, version, type]) { - if (i < 0 || i >= 2 ** 32) throw new Error(`Argon2: wrong parameter=${i}, expected uint32`); - BUF[0] = i; - h.update(BUF8); - } - for (let i of [password, salt, key, personalization]) { - BUF[0] = i.length; - h.update(BUF8).update(i); - } - const H0 = new Uint32Array(18); - const H0_8 = u8(H0); - h.digestInto(H0_8); - - // 256 u32 = 1024 (BLOCK_SIZE) - const memUsed = mP * 256; - if (memUsed < 0 || memUsed >= 2 ** 32 || memUsed > maxmem) { - throw new Error( - `Argon2: wrong params (memUsed=${memUsed} maxmem=${maxmem}), should be less than 2**32` - ); - } - const B = new Uint32Array(memUsed); - // Fill first blocks - for (let l = 0; l < p; l++) { - const i = 256 * laneLen * l; - // B[i][0] = H'^(1024)(H_0 || LE32(0) || LE32(i)) - H0[17] = l; - H0[16] = 0; - B.set(Hp(H0, 1024), i); - // B[i][1] = H'^(1024)(H_0 || LE32(1) || LE32(i)) - H0[16] = 1; - B.set(Hp(H0, 1024), i + 256); - } - let perBlock = () => {}; - if (onProgress) { - const totalBlock = t * ARGON2_SYNC_POINTS * p * segmentLen; - // Invoke callback if progress changes from 10.01 to 10.02 - // Allows to draw smooth progress bar on up to 8K screen - const callbackPer = Math.max(Math.floor(totalBlock / 10000), 1); - let blockCnt = 0; - perBlock = () => { - blockCnt++; - if (onProgress && (!(blockCnt % callbackPer) || blockCnt === totalBlock)) - onProgress(blockCnt / totalBlock); - }; - } - return { type, mP, p, t, version, B, laneLen, lanes, segmentLen, dkLen, perBlock }; -} - -function argon2Output(B: Uint32Array, p: number, laneLen: number, dkLen: number) { - const B_final = new Uint32Array(256); - for (let l = 0; l < p; l++) - for (let j = 0; j < 256; j++) B_final[j] ^= B[256 * (laneLen * l + laneLen - 1) + j]; - return u8(Hp(B_final, dkLen)); -} - -function processBlock( - B: Uint32Array, - address: Uint32Array, - l: number, - r: number, - s: number, - index: number, - laneLen: number, - segmentLen: number, - lanes: number, - offset: number, - prev: number, - dataIndependent: boolean, - needXor: boolean -) { - if (offset % laneLen) prev = offset - 1; - let randL, randH; - if (dataIndependent) { - if (index % 128 === 0) { - address[256 + 12]++; - block(address, 256, 2 * 256, 0, false); - block(address, 0, 2 * 256, 0, false); - } - randL = address[2 * (index % 128)]; - randH = address[2 * (index % 128) + 1]; - } else { - const T = 256 * prev; - randL = B[T]; - randH = B[T + 1]; - } - // address block - const refLane = r === 0 && s === 0 ? l : randH % lanes; - const refPos = indexAlpha(r, s, laneLen, segmentLen, index, randL, refLane == l); - const refBlock = laneLen * refLane + refPos; - // B[i][j] = G(B[i][j-1], B[l][z]) - block(B, 256 * prev, 256 * refBlock, offset * 256, needXor); -} - -function argon2(type: Types, password: Input, salt: Input, opts: ArgonOpts) { - const { mP, p, t, version, B, laneLen, lanes, segmentLen, dkLen, perBlock } = argon2Init( - type, - password, - salt, - opts - ); - // Pre-loop setup - // [address, input, zero_block] format so we can pass single U32 to block function - const address = new Uint32Array(3 * 256); - address[256 + 6] = mP; - address[256 + 8] = t; - address[256 + 10] = type; - for (let r = 0; r < t; r++) { - const needXor = r !== 0 && version === 0x13; - address[256 + 0] = r; - for (let s = 0; s < ARGON2_SYNC_POINTS; s++) { - address[256 + 4] = s; - const dataIndependent = type == Types.Argon2i || (type == Types.Argon2id && r === 0 && s < 2); - for (let l = 0; l < p; l++) { - address[256 + 2] = l; - address[256 + 12] = 0; - let startPos = 0; - if (r === 0 && s === 0) { - startPos = 2; - if (dataIndependent) { - address[256 + 12]++; - block(address, 256, 2 * 256, 0, false); - block(address, 0, 2 * 256, 0, false); - } - } - // current block postion - let offset = l * laneLen + s * segmentLen + startPos; - // previous block position - let prev = offset % laneLen ? offset - 1 : offset + laneLen - 1; - for (let index = startPos; index < segmentLen; index++, offset++, prev++) { - perBlock(); - processBlock( - B, - address, - l, - r, - s, - index, - laneLen, - segmentLen, - lanes, - offset, - prev, - dataIndependent, - needXor - ); - } - } - } - } - return argon2Output(B, p, laneLen, dkLen); -} - -export const argon2d = (password: Input, salt: Input, opts: ArgonOpts) => - argon2(Types.Argond2d, password, salt, opts); -export const argon2i = (password: Input, salt: Input, opts: ArgonOpts) => - argon2(Types.Argon2i, password, salt, opts); -export const argon2id = (password: Input, salt: Input, opts: ArgonOpts) => - argon2(Types.Argon2id, password, salt, opts); diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/src/blake2b.ts b/node_modules/@noble/curves/node_modules/@noble/hashes/src/blake2b.ts deleted file mode 100644 index e2c6e980..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/src/blake2b.ts +++ /dev/null @@ -1,203 +0,0 @@ -import { BLAKE2, BlakeOpts, SIGMA } from './_blake2.js'; -import u64 from './_u64.js'; -import { toBytes, u32, wrapConstructorWithOpts } from './utils.js'; - -// Same as SHA-512 but LE -// prettier-ignore -const IV = new Uint32Array([ - 0xf3bcc908, 0x6a09e667, 0x84caa73b, 0xbb67ae85, 0xfe94f82b, 0x3c6ef372, 0x5f1d36f1, 0xa54ff53a, - 0xade682d1, 0x510e527f, 0x2b3e6c1f, 0x9b05688c, 0xfb41bd6b, 0x1f83d9ab, 0x137e2179, 0x5be0cd19 -]); -// Temporary buffer -const BUF = new Uint32Array(32); - -// Mixing function G splitted in two halfs -function G1(a: number, b: number, c: number, d: number, msg: Uint32Array, x: number) { - // NOTE: V is LE here - const Xl = msg[x], Xh = msg[x + 1]; // prettier-ignore - let Al = BUF[2 * a], Ah = BUF[2 * a + 1]; // prettier-ignore - let Bl = BUF[2 * b], Bh = BUF[2 * b + 1]; // prettier-ignore - let Cl = BUF[2 * c], Ch = BUF[2 * c + 1]; // prettier-ignore - let Dl = BUF[2 * d], Dh = BUF[2 * d + 1]; // prettier-ignore - // v[a] = (v[a] + v[b] + x) | 0; - let ll = u64.add3L(Al, Bl, Xl); - Ah = u64.add3H(ll, Ah, Bh, Xh); - Al = ll | 0; - // v[d] = rotr(v[d] ^ v[a], 32) - ({ Dh, Dl } = { Dh: Dh ^ Ah, Dl: Dl ^ Al }); - ({ Dh, Dl } = { Dh: u64.rotr32H(Dh, Dl), Dl: u64.rotr32L(Dh, Dl) }); - // v[c] = (v[c] + v[d]) | 0; - ({ h: Ch, l: Cl } = u64.add(Ch, Cl, Dh, Dl)); - // v[b] = rotr(v[b] ^ v[c], 24) - ({ Bh, Bl } = { Bh: Bh ^ Ch, Bl: Bl ^ Cl }); - ({ Bh, Bl } = { Bh: u64.rotrSH(Bh, Bl, 24), Bl: u64.rotrSL(Bh, Bl, 24) }); - (BUF[2 * a] = Al), (BUF[2 * a + 1] = Ah); - (BUF[2 * b] = Bl), (BUF[2 * b + 1] = Bh); - (BUF[2 * c] = Cl), (BUF[2 * c + 1] = Ch); - (BUF[2 * d] = Dl), (BUF[2 * d + 1] = Dh); -} - -function G2(a: number, b: number, c: number, d: number, msg: Uint32Array, x: number) { - // NOTE: V is LE here - const Xl = msg[x], Xh = msg[x + 1]; // prettier-ignore - let Al = BUF[2 * a], Ah = BUF[2 * a + 1]; // prettier-ignore - let Bl = BUF[2 * b], Bh = BUF[2 * b + 1]; // prettier-ignore - let Cl = BUF[2 * c], Ch = BUF[2 * c + 1]; // prettier-ignore - let Dl = BUF[2 * d], Dh = BUF[2 * d + 1]; // prettier-ignore - // v[a] = (v[a] + v[b] + x) | 0; - let ll = u64.add3L(Al, Bl, Xl); - Ah = u64.add3H(ll, Ah, Bh, Xh); - Al = ll | 0; - // v[d] = rotr(v[d] ^ v[a], 16) - ({ Dh, Dl } = { Dh: Dh ^ Ah, Dl: Dl ^ Al }); - ({ Dh, Dl } = { Dh: u64.rotrSH(Dh, Dl, 16), Dl: u64.rotrSL(Dh, Dl, 16) }); - // v[c] = (v[c] + v[d]) | 0; - ({ h: Ch, l: Cl } = u64.add(Ch, Cl, Dh, Dl)); - // v[b] = rotr(v[b] ^ v[c], 63) - ({ Bh, Bl } = { Bh: Bh ^ Ch, Bl: Bl ^ Cl }); - ({ Bh, Bl } = { Bh: u64.rotrBH(Bh, Bl, 63), Bl: u64.rotrBL(Bh, Bl, 63) }); - (BUF[2 * a] = Al), (BUF[2 * a + 1] = Ah); - (BUF[2 * b] = Bl), (BUF[2 * b + 1] = Bh); - (BUF[2 * c] = Cl), (BUF[2 * c + 1] = Ch); - (BUF[2 * d] = Dl), (BUF[2 * d + 1] = Dh); -} - -class BLAKE2b extends BLAKE2 { - // Same as SHA-512, but LE - private v0l = IV[0] | 0; - private v0h = IV[1] | 0; - private v1l = IV[2] | 0; - private v1h = IV[3] | 0; - private v2l = IV[4] | 0; - private v2h = IV[5] | 0; - private v3l = IV[6] | 0; - private v3h = IV[7] | 0; - private v4l = IV[8] | 0; - private v4h = IV[9] | 0; - private v5l = IV[10] | 0; - private v5h = IV[11] | 0; - private v6l = IV[12] | 0; - private v6h = IV[13] | 0; - private v7l = IV[14] | 0; - private v7h = IV[15] | 0; - - constructor(opts: BlakeOpts = {}) { - super(128, opts.dkLen === undefined ? 64 : opts.dkLen, opts, 64, 16, 16); - const keyLength = opts.key ? opts.key.length : 0; - this.v0l ^= this.outputLen | (keyLength << 8) | (0x01 << 16) | (0x01 << 24); - if (opts.salt) { - const salt = u32(toBytes(opts.salt)); - this.v4l ^= salt[0]; - this.v4h ^= salt[1]; - this.v5l ^= salt[2]; - this.v5h ^= salt[3]; - } - if (opts.personalization) { - const pers = u32(toBytes(opts.personalization)); - this.v6l ^= pers[0]; - this.v6h ^= pers[1]; - this.v7l ^= pers[2]; - this.v7h ^= pers[3]; - } - if (opts.key) { - // Pad to blockLen and update - const tmp = new Uint8Array(this.blockLen); - tmp.set(toBytes(opts.key)); - this.update(tmp); - } - } - // prettier-ignore - protected get(): [ - number, number, number, number, number, number, number, number, - number, number, number, number, number, number, number, number - ] { - let {v0l, v0h, v1l, v1h, v2l, v2h, v3l, v3h, v4l, v4h, v5l, v5h, v6l, v6h, v7l, v7h} = this; - return [v0l, v0h, v1l, v1h, v2l, v2h, v3l, v3h, v4l, v4h, v5l, v5h, v6l, v6h, v7l, v7h]; - } - // prettier-ignore - protected set( - v0l: number, v0h: number, v1l: number, v1h: number, - v2l: number, v2h: number, v3l: number, v3h: number, - v4l: number, v4h: number, v5l: number, v5h: number, - v6l: number, v6h: number, v7l: number, v7h: number - ) { - this.v0l = v0l | 0; - this.v0h = v0h | 0; - this.v1l = v1l | 0; - this.v1h = v1h | 0; - this.v2l = v2l | 0; - this.v2h = v2h | 0; - this.v3l = v3l | 0; - this.v3h = v3h | 0; - this.v4l = v4l | 0; - this.v4h = v4h | 0; - this.v5l = v5l | 0; - this.v5h = v5h | 0; - this.v6l = v6l | 0; - this.v6h = v6h | 0; - this.v7l = v7l | 0; - this.v7h = v7h | 0; - } - protected compress(msg: Uint32Array, offset: number, isLast: boolean) { - this.get().forEach((v, i) => (BUF[i] = v)); // First half from state. - BUF.set(IV, 16); // Second half from IV. - let { h, l } = u64.fromBig(BigInt(this.length)); - BUF[24] = IV[8] ^ l; // Low word of the offset. - BUF[25] = IV[9] ^ h; // High word. - // Invert all bits for last block - if (isLast) { - BUF[28] = ~BUF[28]; - BUF[29] = ~BUF[29]; - } - let j = 0; - const s = SIGMA; - for (let i = 0; i < 12; i++) { - G1(0, 4, 8, 12, msg, offset + 2 * s[j++]); - G2(0, 4, 8, 12, msg, offset + 2 * s[j++]); - G1(1, 5, 9, 13, msg, offset + 2 * s[j++]); - G2(1, 5, 9, 13, msg, offset + 2 * s[j++]); - G1(2, 6, 10, 14, msg, offset + 2 * s[j++]); - G2(2, 6, 10, 14, msg, offset + 2 * s[j++]); - G1(3, 7, 11, 15, msg, offset + 2 * s[j++]); - G2(3, 7, 11, 15, msg, offset + 2 * s[j++]); - - G1(0, 5, 10, 15, msg, offset + 2 * s[j++]); - G2(0, 5, 10, 15, msg, offset + 2 * s[j++]); - G1(1, 6, 11, 12, msg, offset + 2 * s[j++]); - G2(1, 6, 11, 12, msg, offset + 2 * s[j++]); - G1(2, 7, 8, 13, msg, offset + 2 * s[j++]); - G2(2, 7, 8, 13, msg, offset + 2 * s[j++]); - G1(3, 4, 9, 14, msg, offset + 2 * s[j++]); - G2(3, 4, 9, 14, msg, offset + 2 * s[j++]); - } - this.v0l ^= BUF[0] ^ BUF[16]; - this.v0h ^= BUF[1] ^ BUF[17]; - this.v1l ^= BUF[2] ^ BUF[18]; - this.v1h ^= BUF[3] ^ BUF[19]; - this.v2l ^= BUF[4] ^ BUF[20]; - this.v2h ^= BUF[5] ^ BUF[21]; - this.v3l ^= BUF[6] ^ BUF[22]; - this.v3h ^= BUF[7] ^ BUF[23]; - this.v4l ^= BUF[8] ^ BUF[24]; - this.v4h ^= BUF[9] ^ BUF[25]; - this.v5l ^= BUF[10] ^ BUF[26]; - this.v5h ^= BUF[11] ^ BUF[27]; - this.v6l ^= BUF[12] ^ BUF[28]; - this.v6h ^= BUF[13] ^ BUF[29]; - this.v7l ^= BUF[14] ^ BUF[30]; - this.v7h ^= BUF[15] ^ BUF[31]; - BUF.fill(0); - } - destroy() { - this.destroyed = true; - this.buffer32.fill(0); - this.set(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); - } -} - -/** - * BLAKE2b - optimized for 64-bit platforms. JS doesn't have uint64, so it's slower than BLAKE2s. - * @param msg - message that would be hashed - * @param opts - dkLen, key, salt, personalization - */ -export const blake2b = wrapConstructorWithOpts((opts) => new BLAKE2b(opts)); diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/src/blake2s.ts b/node_modules/@noble/curves/node_modules/@noble/hashes/src/blake2s.ts deleted file mode 100644 index f5824d40..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/src/blake2s.ts +++ /dev/null @@ -1,136 +0,0 @@ -import { BLAKE2, BlakeOpts, SIGMA } from './_blake2.js'; -import u64 from './_u64.js'; -import { rotr, toBytes, wrapConstructorWithOpts, u32 } from './utils.js'; - -// Initial state: -// first 32 bits of the fractional parts of the square roots of the first 8 primes 2..19) -// same as SHA-256 -// prettier-ignore -export const IV = new Uint32Array([ - 0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19 -]); - -// Mixing function G splitted in two halfs -function G1(a: number, b: number, c: number, d: number, x: number) { - a = (a + b + x) | 0; - d = rotr(d ^ a, 16); - c = (c + d) | 0; - b = rotr(b ^ c, 12); - return { a, b, c, d }; -} - -function G2(a: number, b: number, c: number, d: number, x: number) { - a = (a + b + x) | 0; - d = rotr(d ^ a, 8); - c = (c + d) | 0; - b = rotr(b ^ c, 7); - return { a, b, c, d }; -} -// prettier-ignore -export function compress(s: Uint8Array, offset: number, msg: Uint32Array, rounds: number, - v0: number, v1: number, v2: number, v3: number, v4: number, v5: number, v6: number, v7: number, - v8: number, v9: number, v10: number, v11: number, v12: number, v13: number, v14: number, v15: number, -) { - let j = 0; - for (let i = 0; i < rounds; i++) { - ({ a: v0, b: v4, c: v8, d: v12 } = G1(v0, v4, v8, v12, msg[offset + s[j++]])); - ({ a: v0, b: v4, c: v8, d: v12 } = G2(v0, v4, v8, v12, msg[offset + s[j++]])); - ({ a: v1, b: v5, c: v9, d: v13 } = G1(v1, v5, v9, v13, msg[offset + s[j++]])); - ({ a: v1, b: v5, c: v9, d: v13 } = G2(v1, v5, v9, v13, msg[offset + s[j++]])); - ({ a: v2, b: v6, c: v10, d: v14 } = G1(v2, v6, v10, v14, msg[offset + s[j++]])); - ({ a: v2, b: v6, c: v10, d: v14 } = G2(v2, v6, v10, v14, msg[offset + s[j++]])); - ({ a: v3, b: v7, c: v11, d: v15 } = G1(v3, v7, v11, v15, msg[offset + s[j++]])); - ({ a: v3, b: v7, c: v11, d: v15 } = G2(v3, v7, v11, v15, msg[offset + s[j++]])); - - ({ a: v0, b: v5, c: v10, d: v15 } = G1(v0, v5, v10, v15, msg[offset + s[j++]])); - ({ a: v0, b: v5, c: v10, d: v15 } = G2(v0, v5, v10, v15, msg[offset + s[j++]])); - ({ a: v1, b: v6, c: v11, d: v12 } = G1(v1, v6, v11, v12, msg[offset + s[j++]])); - ({ a: v1, b: v6, c: v11, d: v12 } = G2(v1, v6, v11, v12, msg[offset + s[j++]])); - ({ a: v2, b: v7, c: v8, d: v13 } = G1(v2, v7, v8, v13, msg[offset + s[j++]])); - ({ a: v2, b: v7, c: v8, d: v13 } = G2(v2, v7, v8, v13, msg[offset + s[j++]])); - ({ a: v3, b: v4, c: v9, d: v14 } = G1(v3, v4, v9, v14, msg[offset + s[j++]])); - ({ a: v3, b: v4, c: v9, d: v14 } = G2(v3, v4, v9, v14, msg[offset + s[j++]])); - } - return { v0, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15 }; -} - -class BLAKE2s extends BLAKE2 { - // Internal state, same as SHA-256 - private v0 = IV[0] | 0; - private v1 = IV[1] | 0; - private v2 = IV[2] | 0; - private v3 = IV[3] | 0; - private v4 = IV[4] | 0; - private v5 = IV[5] | 0; - private v6 = IV[6] | 0; - private v7 = IV[7] | 0; - - constructor(opts: BlakeOpts = {}) { - super(64, opts.dkLen === undefined ? 32 : opts.dkLen, opts, 32, 8, 8); - const keyLength = opts.key ? opts.key.length : 0; - this.v0 ^= this.outputLen | (keyLength << 8) | (0x01 << 16) | (0x01 << 24); - if (opts.salt) { - const salt = u32(toBytes(opts.salt)); - this.v4 ^= salt[0]; - this.v5 ^= salt[1]; - } - if (opts.personalization) { - const pers = u32(toBytes(opts.personalization)); - this.v6 ^= pers[0]; - this.v7 ^= pers[1]; - } - if (opts.key) { - // Pad to blockLen and update - const tmp = new Uint8Array(this.blockLen); - tmp.set(toBytes(opts.key)); - this.update(tmp); - } - } - protected get(): [number, number, number, number, number, number, number, number] { - const { v0, v1, v2, v3, v4, v5, v6, v7 } = this; - return [v0, v1, v2, v3, v4, v5, v6, v7]; - } - // prettier-ignore - protected set( - v0: number, v1: number, v2: number, v3: number, v4: number, v5: number, v6: number, v7: number - ) { - this.v0 = v0 | 0; - this.v1 = v1 | 0; - this.v2 = v2 | 0; - this.v3 = v3 | 0; - this.v4 = v4 | 0; - this.v5 = v5 | 0; - this.v6 = v6 | 0; - this.v7 = v7 | 0; - } - protected compress(msg: Uint32Array, offset: number, isLast: boolean) { - const { h, l } = u64.fromBig(BigInt(this.length)); - // prettier-ignore - const { v0, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15 } = - compress( - SIGMA, offset, msg, 10, - this.v0, this.v1, this.v2, this.v3, this.v4, this.v5, this.v6, this.v7, - IV[0], IV[1], IV[2], IV[3], l ^ IV[4], h ^ IV[5], isLast ? ~IV[6] : IV[6], IV[7] - ); - this.v0 ^= v0 ^ v8; - this.v1 ^= v1 ^ v9; - this.v2 ^= v2 ^ v10; - this.v3 ^= v3 ^ v11; - this.v4 ^= v4 ^ v12; - this.v5 ^= v5 ^ v13; - this.v6 ^= v6 ^ v14; - this.v7 ^= v7 ^ v15; - } - destroy() { - this.destroyed = true; - this.buffer32.fill(0); - this.set(0, 0, 0, 0, 0, 0, 0, 0); - } -} - -/** - * BLAKE2s - optimized for 32-bit platforms. JS doesn't have uint64, so it's faster than BLAKE2b. - * @param msg - message that would be hashed - * @param opts - dkLen, key, salt, personalization - */ -export const blake2s = wrapConstructorWithOpts((opts) => new BLAKE2s(opts)); diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/src/blake3.ts b/node_modules/@noble/curves/node_modules/@noble/hashes/src/blake3.ts deleted file mode 100644 index 873d0dab..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/src/blake3.ts +++ /dev/null @@ -1,246 +0,0 @@ -import assert from './_assert.js'; -import u64 from './_u64.js'; -import { BLAKE2 } from './_blake2.js'; -import { compress, IV } from './blake2s.js'; -import { Input, u8, u32, toBytes, HashXOF, wrapXOFConstructorWithOpts } from './utils.js'; - -// Flag bitset -enum Flags { - CHUNK_START = 1 << 0, - CHUNK_END = 1 << 1, - PARENT = 1 << 2, - ROOT = 1 << 3, - KEYED_HASH = 1 << 4, - DERIVE_KEY_CONTEXT = 1 << 5, - DERIVE_KEY_MATERIAL = 1 << 6, -} - -const SIGMA: Uint8Array = (() => { - const Id = Array.from({ length: 16 }, (_, i) => i); - const permute = (arr: number[]) => - [2, 6, 3, 10, 7, 0, 4, 13, 1, 11, 12, 5, 9, 14, 15, 8].map((i) => arr[i]); - const res: number[] = []; - for (let i = 0, v = Id; i < 7; i++, v = permute(v)) res.push(...v); - return Uint8Array.from(res); -})(); - -// - key: is 256-bit key -// - context: string should be hardcoded, globally unique, and application - specific. -// A good default format for the context string is "[application] [commit timestamp] [purpose]" -// - Only one of 'key' (keyed mode) or 'context' (derive key mode) can be used at same time -export type Blake3Opts = { dkLen?: number; key?: Input; context?: Input }; - -// Why is this so slow? It should be 6x faster than blake2b. -// - There is only 30% reduction in number of rounds from blake2s -// - This function uses tree mode to achive parallelisation via SIMD and threading, -// however in JS we don't have threads and SIMD, so we get only overhead from tree structure -// - It is possible to speed it up via Web Workers, hovewer it will make code singnificantly more -// complicated, which we are trying to avoid, since this library is intended to be used -// for cryptographic purposes. Also, parallelization happens only on chunk level (1024 bytes), -// which won't really benefit small inputs. -class BLAKE3 extends BLAKE2 implements HashXOF { - private IV: Uint32Array; - private flags = 0 | 0; - private state: Uint32Array; - private chunkPos = 0; // Position of current block in chunk - private chunksDone = 0; // How many chunks we already have - private stack: Uint32Array[] = []; - // Output - private posOut = 0; - private bufferOut32 = new Uint32Array(16); - private bufferOut: Uint8Array; - private chunkOut = 0; // index of output chunk - private enableXOF = true; - - constructor(opts: Blake3Opts = {}, flags = 0) { - super(64, opts.dkLen === undefined ? 32 : opts.dkLen, {}, Number.MAX_SAFE_INTEGER, 0, 0); - this.outputLen = opts.dkLen === undefined ? 32 : opts.dkLen; - assert.number(this.outputLen); - if (opts.key !== undefined && opts.context !== undefined) - throw new Error('Blake3: only key or context can be specified at same time'); - else if (opts.key !== undefined) { - const key = toBytes(opts.key).slice(); - if (key.length !== 32) throw new Error('Blake3: key should be 32 byte'); - this.IV = u32(key); - this.flags = flags | Flags.KEYED_HASH; - } else if (opts.context !== undefined) { - const context_key = new BLAKE3({ dkLen: 32 }, Flags.DERIVE_KEY_CONTEXT) - .update(opts.context) - .digest(); - this.IV = u32(context_key); - this.flags = flags | Flags.DERIVE_KEY_MATERIAL; - } else { - this.IV = IV.slice(); - this.flags = flags; - } - this.state = this.IV.slice(); - this.bufferOut = u8(this.bufferOut32); - } - // Unused - protected get() { - return []; - } - protected set() {} - private b2Compress(counter: number, flags: number, buf: Uint32Array, bufPos: number = 0) { - const { state: s, pos } = this; - const { h, l } = u64.fromBig(BigInt(counter), true); - // prettier-ignore - const { v0, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15 } = - compress( - SIGMA, bufPos, buf, 7, - s[0], s[1], s[2], s[3], s[4], s[5], s[6], s[7], - IV[0], IV[1], IV[2], IV[3], h, l, pos, flags - ); - s[0] = v0 ^ v8; - s[1] = v1 ^ v9; - s[2] = v2 ^ v10; - s[3] = v3 ^ v11; - s[4] = v4 ^ v12; - s[5] = v5 ^ v13; - s[6] = v6 ^ v14; - s[7] = v7 ^ v15; - } - protected compress(buf: Uint32Array, bufPos: number = 0, isLast: boolean = false) { - // Compress last block - let flags = this.flags; - if (!this.chunkPos) flags |= Flags.CHUNK_START; - if (this.chunkPos === 15 || isLast) flags |= Flags.CHUNK_END; - if (!isLast) this.pos = this.blockLen; - this.b2Compress(this.chunksDone, flags, buf, bufPos); - this.chunkPos += 1; - // If current block is last in chunk (16 blocks), then compress chunks - if (this.chunkPos === 16 || isLast) { - let chunk = this.state; - this.state = this.IV.slice(); - // If not the last one, compress only when there are trailing zeros in chunk counter - // chunks used as binary tree where current stack is path. Zero means current leaf is finished and can be compressed. - // 1 (001) - leaf not finished (just push current chunk to stack) - // 2 (010) - leaf finished at depth=1 (merge with last elm on stack and push back) - // 3 (011) - last leaf not finished - // 4 (100) - leafs finished at depth=1 and depth=2 - for (let last, chunks = this.chunksDone + 1; isLast || !(chunks & 1); chunks >>= 1) { - if (!(last = this.stack.pop())) break; - this.buffer32.set(last, 0); - this.buffer32.set(chunk, 8); - this.pos = this.blockLen; - this.b2Compress(0, this.flags | Flags.PARENT, this.buffer32, 0); - chunk = this.state; - this.state = this.IV.slice(); - } - this.chunksDone++; - this.chunkPos = 0; - this.stack.push(chunk); - } - this.pos = 0; - } - _cloneInto(to?: BLAKE3): BLAKE3 { - to = super._cloneInto(to) as BLAKE3; - const { IV, flags, state, chunkPos, posOut, chunkOut, stack, chunksDone } = this; - to.state.set(state.slice()); - to.stack = stack.map((i) => Uint32Array.from(i)); - to.IV.set(IV); - to.flags = flags; - to.chunkPos = chunkPos; - to.chunksDone = chunksDone; - to.posOut = posOut; - to.chunkOut = chunkOut; - to.enableXOF = this.enableXOF; - to.bufferOut32.set(this.bufferOut32); - return to; - } - destroy() { - this.destroyed = true; - this.state.fill(0); - this.buffer32.fill(0); - this.IV.fill(0); - this.bufferOut32.fill(0); - for (let i of this.stack) i.fill(0); - } - // Same as b2Compress, but doesn't modify state and returns 16 u32 array (instead of 8) - private b2CompressOut() { - const { state: s, pos, flags, buffer32, bufferOut32: out32 } = this; - const { h, l } = u64.fromBig(BigInt(this.chunkOut++)); - // prettier-ignore - const { v0, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15 } = - compress( - SIGMA, 0, buffer32, 7, - s[0], s[1], s[2], s[3], s[4], s[5], s[6], s[7], - IV[0], IV[1], IV[2], IV[3], l, h, pos, flags - ); - out32[0] = v0 ^ v8; - out32[1] = v1 ^ v9; - out32[2] = v2 ^ v10; - out32[3] = v3 ^ v11; - out32[4] = v4 ^ v12; - out32[5] = v5 ^ v13; - out32[6] = v6 ^ v14; - out32[7] = v7 ^ v15; - out32[8] = s[0] ^ v8; - out32[9] = s[1] ^ v9; - out32[10] = s[2] ^ v10; - out32[11] = s[3] ^ v11; - out32[12] = s[4] ^ v12; - out32[13] = s[5] ^ v13; - out32[14] = s[6] ^ v14; - out32[15] = s[7] ^ v15; - this.posOut = 0; - } - protected finish() { - if (this.finished) return; - this.finished = true; - // Padding - this.buffer.fill(0, this.pos); - // Process last chunk - let flags = this.flags | Flags.ROOT; - if (this.stack.length) { - flags |= Flags.PARENT; - this.compress(this.buffer32, 0, true); - this.chunksDone = 0; - this.pos = this.blockLen; - } else { - flags |= (!this.chunkPos ? Flags.CHUNK_START : 0) | Flags.CHUNK_END; - } - this.flags = flags; - this.b2CompressOut(); - } - private writeInto(out: Uint8Array) { - assert.exists(this, false); - assert.bytes(out); - this.finish(); - const { blockLen, bufferOut } = this; - for (let pos = 0, len = out.length; pos < len; ) { - if (this.posOut >= blockLen) this.b2CompressOut(); - const take = Math.min(blockLen - this.posOut, len - pos); - out.set(bufferOut.subarray(this.posOut, this.posOut + take), pos); - this.posOut += take; - pos += take; - } - return out; - } - xofInto(out: Uint8Array): Uint8Array { - if (!this.enableXOF) throw new Error('XOF is not possible after digest call'); - return this.writeInto(out); - } - xof(bytes: number): Uint8Array { - assert.number(bytes); - return this.xofInto(new Uint8Array(bytes)); - } - digestInto(out: Uint8Array) { - assert.output(out, this); - if (this.finished) throw new Error('digest() was already called'); - this.enableXOF = false; - this.writeInto(out); - this.destroy(); - return out; - } - digest() { - return this.digestInto(new Uint8Array(this.outputLen)); - } -} - -/** - * BLAKE3 hash function. - * @param msg - message that would be hashed - * @param opts - dkLen, key, context - */ -export const blake3 = wrapXOFConstructorWithOpts((opts) => new BLAKE3(opts)); diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/src/crypto.ts b/node_modules/@noble/curves/node_modules/@noble/hashes/src/crypto.ts deleted file mode 100644 index eaea6bef..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/src/crypto.ts +++ /dev/null @@ -1,5 +0,0 @@ -// We use WebCrypto aka globalThis.crypto, which exists in browsers and node.js 16+. -// See utils.ts for details. -declare const globalThis: Record | undefined; -export const crypto = - typeof globalThis === 'object' && 'crypto' in globalThis ? globalThis.crypto : undefined; diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/src/cryptoNode.ts b/node_modules/@noble/curves/node_modules/@noble/hashes/src/cryptoNode.ts deleted file mode 100644 index 6fdba9ec..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/src/cryptoNode.ts +++ /dev/null @@ -1,7 +0,0 @@ -// We use WebCrypto aka globalThis.crypto, which exists in browsers and node.js 16+. -// See utils.ts for details. -// The file will throw on node.js 14 and earlier. -// @ts-ignore -import * as nc from 'node:crypto'; -export const crypto = - nc && typeof nc === 'object' && 'webcrypto' in nc ? (nc.webcrypto as any) : undefined; diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/src/eskdf.ts b/node_modules/@noble/curves/node_modules/@noble/hashes/src/eskdf.ts deleted file mode 100644 index b4c224b1..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/src/eskdf.ts +++ /dev/null @@ -1,183 +0,0 @@ -import { bytes as assertBytes } from './_assert.js'; -import { hkdf } from './hkdf.js'; -import { sha256 } from './sha256.js'; -import { pbkdf2 as _pbkdf2 } from './pbkdf2.js'; -import { scrypt as _scrypt } from './scrypt.js'; -import { bytesToHex, createView, hexToBytes, toBytes } from './utils.js'; - -// A tiny KDF for various applications like AES key-gen. -// Uses HKDF in a non-standard way, so it's not "KDF-secure", only "PRF-secure". -// Which is good enough: assume sha2-256 retained preimage resistance. - -const SCRYPT_FACTOR = 2 ** 19; -const PBKDF2_FACTOR = 2 ** 17; - -// Scrypt KDF -export function scrypt(password: string, salt: string): Uint8Array { - return _scrypt(password, salt, { N: SCRYPT_FACTOR, r: 8, p: 1, dkLen: 32 }); -} - -// PBKDF2-HMAC-SHA256 -export function pbkdf2(password: string, salt: string): Uint8Array { - return _pbkdf2(sha256, password, salt, { c: PBKDF2_FACTOR, dkLen: 32 }); -} - -// Combines two 32-byte byte arrays -function xor32(a: Uint8Array, b: Uint8Array): Uint8Array { - assertBytes(a, 32); - assertBytes(b, 32); - const arr = new Uint8Array(32); - for (let i = 0; i < 32; i++) { - arr[i] = a[i] ^ b[i]; - } - return arr; -} - -function strHasLength(str: string, min: number, max: number): boolean { - return typeof str === 'string' && str.length >= min && str.length <= max; -} - -/** - * Derives main seed. Takes a lot of time. Prefer `eskdf` method instead. - */ -export function deriveMainSeed(username: string, password: string): Uint8Array { - if (!strHasLength(username, 8, 255)) throw new Error('invalid username'); - if (!strHasLength(password, 8, 255)) throw new Error('invalid password'); - const scr = scrypt(password + '\u{1}', username + '\u{1}'); - const pbk = pbkdf2(password + '\u{2}', username + '\u{2}'); - const res = xor32(scr, pbk); - scr.fill(0); - pbk.fill(0); - return res; -} - -type AccountID = number | string; - -/** - * Converts protocol & accountId pair to HKDF salt & info params. - */ -function getSaltInfo(protocol: string, accountId: AccountID = 0) { - // Note that length here also repeats two lines below - // We do an additional length check here to reduce the scope of DoS attacks - if (!(strHasLength(protocol, 3, 15) && /^[a-z0-9]{3,15}$/.test(protocol))) { - throw new Error('invalid protocol'); - } - - // Allow string account ids for some protocols - const allowsStr = /^password\d{0,3}|ssh|tor|file$/.test(protocol); - let salt: Uint8Array; // Extract salt. Default is undefined. - if (typeof accountId === 'string') { - if (!allowsStr) throw new Error('accountId must be a number'); - if (!strHasLength(accountId, 1, 255)) throw new Error('accountId must be valid string'); - salt = toBytes(accountId); - } else if (Number.isSafeInteger(accountId)) { - if (accountId < 0 || accountId > 2 ** 32 - 1) throw new Error('invalid accountId'); - // Convert to Big Endian Uint32 - salt = new Uint8Array(4); - createView(salt).setUint32(0, accountId, false); - } else { - throw new Error(`accountId must be a number${allowsStr ? ' or string' : ''}`); - } - const info = toBytes(protocol); - return { salt, info }; -} - -type OptsLength = { keyLength: number }; -type OptsMod = { modulus: bigint }; -type KeyOpts = undefined | OptsLength | OptsMod; - -function countBytes(num: bigint): number { - if (typeof num !== 'bigint' || num <= BigInt(128)) throw new Error('invalid number'); - return Math.ceil(num.toString(2).length / 8); -} - -/** - * Parses keyLength and modulus options to extract length of result key. - * If modulus is used, adds 64 bits to it as per FIPS 186 B.4.1 to combat modulo bias. - */ -function getKeyLength(options: KeyOpts): number { - if (!options || typeof options !== 'object') return 32; - const hasLen = 'keyLength' in options; - const hasMod = 'modulus' in options; - if (hasLen && hasMod) throw new Error('cannot combine keyLength and modulus options'); - if (!hasLen && !hasMod) throw new Error('must have either keyLength or modulus option'); - // FIPS 186 B.4.1 requires at least 64 more bits - const l = hasMod ? countBytes(options.modulus) + 8 : options.keyLength; - if (!(typeof l === 'number' && l >= 16 && l <= 8192)) throw new Error('invalid keyLength'); - return l; -} - -/** - * Converts key to bigint and divides it by modulus. Big Endian. - * Implements FIPS 186 B.4.1, which removes 0 and modulo bias from output. - */ -function modReduceKey(key: Uint8Array, modulus: bigint): Uint8Array { - const _1 = BigInt(1); - const num = BigInt('0x' + bytesToHex(key)); // check for ui8a, then bytesToNumber() - const res = (num % (modulus - _1)) + _1; // Remove 0 from output - if (res < _1) throw new Error('expected positive number'); // Guard against bad values - const len = key.length - 8; // FIPS requires 64 more bits = 8 bytes - const hex = res.toString(16).padStart(len * 2, '0'); // numberToHex() - const bytes = hexToBytes(hex); - if (bytes.length !== len) throw new Error('invalid length of result key'); - return bytes; -} - -// We are not using classes because constructor cannot be async -type ESKDF = Promise< - Readonly<{ - /** - * Derives a child key. Child key will not be associated with any - * other child key because of properties of underlying KDF. - * - * @param protocol - 3-15 character protocol name - * @param accountId - numeric identifier of account - * @param options - `keyLength: 64` or `modulus: 41920438n` - * @example deriveChildKey('aes', 0) - */ - deriveChildKey: (protocol: string, accountId: AccountID, options?: KeyOpts) => Uint8Array; - /** - * Deletes the main seed from eskdf instance - */ - expire: () => void; - /** - * Account fingerprint - */ - fingerprint: string; - }> ->; - -/** - * ESKDF - * @param username - username, email, or identifier, min: 8 characters, should have enough entropy - * @param password - password, min: 8 characters, should have enough entropy - * @example - * const kdf = await eskdf('example-university', 'beginning-new-example'); - * const key = kdf.deriveChildKey('aes', 0); - * console.log(kdf.fingerprint); - * kdf.expire(); - */ -export async function eskdf(username: string, password: string): ESKDF { - // We are using closure + object instead of class because - // we want to make `seed` non-accessible for any external function. - let seed: Uint8Array | undefined = deriveMainSeed(username, password); - - function deriveCK(protocol: string, accountId: AccountID = 0, options?: KeyOpts): Uint8Array { - assertBytes(seed, 32); - const { salt, info } = getSaltInfo(protocol, accountId); // validate protocol & accountId - const keyLength = getKeyLength(options); // validate options - const key = hkdf(sha256, seed!, salt, info, keyLength); - // Modulus has already been validated - return options && 'modulus' in options ? modReduceKey(key, options.modulus) : key; - } - function expire() { - if (seed) seed.fill(1); - seed = undefined; - } - // prettier-ignore - const fingerprint = Array.from(deriveCK('fingerprint', 0)) - .slice(0, 6) - .map((char) => char.toString(16).padStart(2, '0').toUpperCase()) - .join(':'); - return Object.freeze({ deriveChildKey: deriveCK, expire, fingerprint }); -} diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/src/hkdf.ts b/node_modules/@noble/curves/node_modules/@noble/hashes/src/hkdf.ts deleted file mode 100644 index 26058983..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/src/hkdf.ts +++ /dev/null @@ -1,79 +0,0 @@ -import assert from './_assert.js'; -import { CHash, Input, toBytes } from './utils.js'; -import { hmac } from './hmac.js'; - -// HKDF (RFC 5869) -// https://soatok.blog/2021/11/17/understanding-hkdf/ - -/** - * HKDF-Extract(IKM, salt) -> PRK - * Arguments position differs from spec (IKM is first one, since it is not optional) - * @param hash - * @param ikm - * @param salt - * @returns - */ -export function extract(hash: CHash, ikm: Input, salt?: Input) { - assert.hash(hash); - // NOTE: some libraries treat zero-length array as 'not provided'; - // we don't, since we have undefined as 'not provided' - // https://github.com/RustCrypto/KDFs/issues/15 - if (salt === undefined) salt = new Uint8Array(hash.outputLen); // if not provided, it is set to a string of HashLen zeros - return hmac(hash, toBytes(salt), toBytes(ikm)); -} - -// HKDF-Expand(PRK, info, L) -> OKM -const HKDF_COUNTER = new Uint8Array([0]); -const EMPTY_BUFFER = new Uint8Array(); - -/** - * HKDF-expand from the spec. - * @param prk - a pseudorandom key of at least HashLen octets (usually, the output from the extract step) - * @param info - optional context and application specific information (can be a zero-length string) - * @param length - length of output keying material in octets - */ -export function expand(hash: CHash, prk: Input, info?: Input, length: number = 32) { - assert.hash(hash); - assert.number(length); - if (length > 255 * hash.outputLen) throw new Error('Length should be <= 255*HashLen'); - const blocks = Math.ceil(length / hash.outputLen); - if (info === undefined) info = EMPTY_BUFFER; - // first L(ength) octets of T - const okm = new Uint8Array(blocks * hash.outputLen); - // Re-use HMAC instance between blocks - const HMAC = hmac.create(hash, prk); - const HMACTmp = HMAC._cloneInto(); - const T = new Uint8Array(HMAC.outputLen); - for (let counter = 0; counter < blocks; counter++) { - HKDF_COUNTER[0] = counter + 1; - // T(0) = empty string (zero length) - // T(N) = HMAC-Hash(PRK, T(N-1) | info | N) - HMACTmp.update(counter === 0 ? EMPTY_BUFFER : T) - .update(info) - .update(HKDF_COUNTER) - .digestInto(T); - okm.set(T, hash.outputLen * counter); - HMAC._cloneInto(HMACTmp); - } - HMAC.destroy(); - HMACTmp.destroy(); - T.fill(0); - HKDF_COUNTER.fill(0); - return okm.slice(0, length); -} - -/** - * HKDF (RFC 5869): extract + expand in one step. - * @param hash - hash function that would be used (e.g. sha256) - * @param ikm - input keying material, the initial key - * @param salt - optional salt value (a non-secret random value) - * @param info - optional context and application specific information - * @param length - length of output keying material in octets - */ -export const hkdf = ( - hash: CHash, - ikm: Input, - salt: Input | undefined, - info: Input | undefined, - length: number -) => expand(hash, extract(hash, ikm, salt), info, length); diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/src/hmac.ts b/node_modules/@noble/curves/node_modules/@noble/hashes/src/hmac.ts deleted file mode 100644 index 1efd2b7e..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/src/hmac.ts +++ /dev/null @@ -1,81 +0,0 @@ -import assert from './_assert.js'; -import { Hash, CHash, Input, toBytes } from './utils.js'; -// HMAC (RFC 2104) -export class HMAC> extends Hash> { - oHash: T; - iHash: T; - blockLen: number; - outputLen: number; - private finished = false; - private destroyed = false; - - constructor(hash: CHash, _key: Input) { - super(); - assert.hash(hash); - const key = toBytes(_key); - this.iHash = hash.create() as T; - if (typeof this.iHash.update !== 'function') - throw new Error('Expected instance of class which extends utils.Hash'); - this.blockLen = this.iHash.blockLen; - this.outputLen = this.iHash.outputLen; - const blockLen = this.blockLen; - const pad = new Uint8Array(blockLen); - // blockLen can be bigger than outputLen - pad.set(key.length > blockLen ? hash.create().update(key).digest() : key); - for (let i = 0; i < pad.length; i++) pad[i] ^= 0x36; - this.iHash.update(pad); - // By doing update (processing of first block) of outer hash here we can re-use it between multiple calls via clone - this.oHash = hash.create() as T; - // Undo internal XOR && apply outer XOR - for (let i = 0; i < pad.length; i++) pad[i] ^= 0x36 ^ 0x5c; - this.oHash.update(pad); - pad.fill(0); - } - update(buf: Input) { - assert.exists(this); - this.iHash.update(buf); - return this; - } - digestInto(out: Uint8Array) { - assert.exists(this); - assert.bytes(out, this.outputLen); - this.finished = true; - this.iHash.digestInto(out); - this.oHash.update(out); - this.oHash.digestInto(out); - this.destroy(); - } - digest() { - const out = new Uint8Array(this.oHash.outputLen); - this.digestInto(out); - return out; - } - _cloneInto(to?: HMAC): HMAC { - // Create new instance without calling constructor since key already in state and we don't know it. - to ||= Object.create(Object.getPrototypeOf(this), {}); - const { oHash, iHash, finished, destroyed, blockLen, outputLen } = this; - to = to as this; - to.finished = finished; - to.destroyed = destroyed; - to.blockLen = blockLen; - to.outputLen = outputLen; - to.oHash = oHash._cloneInto(to.oHash); - to.iHash = iHash._cloneInto(to.iHash); - return to; - } - destroy() { - this.destroyed = true; - this.oHash.destroy(); - this.iHash.destroy(); - } -} - -/** - * HMAC: RFC2104 message authentication code. - * @param hash - function that would be used e.g. sha256 - * @param key - message key - * @param message - message data - */ -export const hmac = (hash: CHash, key: Input, message: Input): Uint8Array => - new HMAC(hash, key).update(message).digest(); -hmac.create = (hash: CHash, key: Input) => new HMAC(hash, key); diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/src/index.ts b/node_modules/@noble/curves/node_modules/@noble/hashes/src/index.ts deleted file mode 100644 index 1505776d..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/src/index.ts +++ /dev/null @@ -1 +0,0 @@ -throw new Error('noble-hashes have no entry-point: consult README for usage'); diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/src/pbkdf2.ts b/node_modules/@noble/curves/node_modules/@noble/hashes/src/pbkdf2.ts deleted file mode 100644 index 2a464760..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/src/pbkdf2.ts +++ /dev/null @@ -1,97 +0,0 @@ -import assert from './_assert.js'; -import { hmac } from './hmac.js'; -import { Hash, CHash, Input, createView, toBytes, checkOpts, asyncLoop } from './utils.js'; - -// PBKDF (RFC 2898) -export type Pbkdf2Opt = { - c: number; // Iterations - dkLen?: number; // Desired key length in bytes (Intended output length in octets of the derived key - asyncTick?: number; // Maximum time in ms for which async function can block execution -}; -// Common prologue and epilogue for sync/async functions -function pbkdf2Init(hash: CHash, _password: Input, _salt: Input, _opts: Pbkdf2Opt) { - assert.hash(hash); - const opts = checkOpts({ dkLen: 32, asyncTick: 10 }, _opts); - const { c, dkLen, asyncTick } = opts; - assert.number(c); - assert.number(dkLen); - assert.number(asyncTick); - if (c < 1) throw new Error('PBKDF2: iterations (c) should be >= 1'); - const password = toBytes(_password); - const salt = toBytes(_salt); - // DK = PBKDF2(PRF, Password, Salt, c, dkLen); - const DK = new Uint8Array(dkLen); - // U1 = PRF(Password, Salt + INT_32_BE(i)) - const PRF = hmac.create(hash, password); - const PRFSalt = PRF._cloneInto().update(salt); - return { c, dkLen, asyncTick, DK, PRF, PRFSalt }; -} - -function pbkdf2Output>( - PRF: Hash, - PRFSalt: Hash, - DK: Uint8Array, - prfW: Hash, - u: Uint8Array -) { - PRF.destroy(); - PRFSalt.destroy(); - if (prfW) prfW.destroy(); - u.fill(0); - return DK; -} - -/** - * PBKDF2-HMAC: RFC 2898 key derivation function - * @param hash - hash function that would be used e.g. sha256 - * @param password - password from which a derived key is generated - * @param salt - cryptographic salt - * @param opts - {c, dkLen} where c is work factor and dkLen is output message size - */ -export function pbkdf2(hash: CHash, password: Input, salt: Input, opts: Pbkdf2Opt) { - const { c, dkLen, DK, PRF, PRFSalt } = pbkdf2Init(hash, password, salt, opts); - let prfW: any; // Working copy - const arr = new Uint8Array(4); - const view = createView(arr); - const u = new Uint8Array(PRF.outputLen); - // DK = T1 + T2 + ⋯ + Tdklen/hlen - for (let ti = 1, pos = 0; pos < dkLen; ti++, pos += PRF.outputLen) { - // Ti = F(Password, Salt, c, i) - const Ti = DK.subarray(pos, pos + PRF.outputLen); - view.setInt32(0, ti, false); - // F(Password, Salt, c, i) = U1 ^ U2 ^ ⋯ ^ Uc - // U1 = PRF(Password, Salt + INT_32_BE(i)) - (prfW = PRFSalt._cloneInto(prfW)).update(arr).digestInto(u); - Ti.set(u.subarray(0, Ti.length)); - for (let ui = 1; ui < c; ui++) { - // Uc = PRF(Password, Uc−1) - PRF._cloneInto(prfW).update(u).digestInto(u); - for (let i = 0; i < Ti.length; i++) Ti[i] ^= u[i]; - } - } - return pbkdf2Output(PRF, PRFSalt, DK, prfW, u); -} - -export async function pbkdf2Async(hash: CHash, password: Input, salt: Input, opts: Pbkdf2Opt) { - const { c, dkLen, asyncTick, DK, PRF, PRFSalt } = pbkdf2Init(hash, password, salt, opts); - let prfW: any; // Working copy - const arr = new Uint8Array(4); - const view = createView(arr); - const u = new Uint8Array(PRF.outputLen); - // DK = T1 + T2 + ⋯ + Tdklen/hlen - for (let ti = 1, pos = 0; pos < dkLen; ti++, pos += PRF.outputLen) { - // Ti = F(Password, Salt, c, i) - const Ti = DK.subarray(pos, pos + PRF.outputLen); - view.setInt32(0, ti, false); - // F(Password, Salt, c, i) = U1 ^ U2 ^ ⋯ ^ Uc - // U1 = PRF(Password, Salt + INT_32_BE(i)) - (prfW = PRFSalt._cloneInto(prfW)).update(arr).digestInto(u); - Ti.set(u.subarray(0, Ti.length)); - await asyncLoop(c - 1, asyncTick, (i) => { - // Uc = PRF(Password, Uc−1) - PRF._cloneInto(prfW).update(u).digestInto(u); - for (let i = 0; i < Ti.length; i++) Ti[i] ^= u[i]; - }); - } - return pbkdf2Output(PRF, PRFSalt, DK, prfW, u); -} diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/src/ripemd160.ts b/node_modules/@noble/curves/node_modules/@noble/hashes/src/ripemd160.ts deleted file mode 100644 index dff071aa..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/src/ripemd160.ts +++ /dev/null @@ -1,108 +0,0 @@ -import { SHA2 } from './_sha2.js'; -import { wrapConstructor } from './utils.js'; - -// https://homes.esat.kuleuven.be/~bosselae/ripemd160.html -// https://homes.esat.kuleuven.be/~bosselae/ripemd160/pdf/AB-9601/AB-9601.pdf -const Rho = new Uint8Array([7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8]); -const Id = Uint8Array.from({ length: 16 }, (_, i) => i); -const Pi = Id.map((i) => (9 * i + 5) % 16); -let idxL = [Id]; -let idxR = [Pi]; -for (let i = 0; i < 4; i++) for (let j of [idxL, idxR]) j.push(j[i].map((k) => Rho[k])); - -const shifts = [ - [11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8], - [12, 13, 11, 15, 6, 9, 9, 7, 12, 15, 11, 13, 7, 8, 7, 7], - [13, 15, 14, 11, 7, 7, 6, 8, 13, 14, 13, 12, 5, 5, 6, 9], - [14, 11, 12, 14, 8, 6, 5, 5, 15, 12, 15, 14, 9, 9, 8, 6], - [15, 12, 13, 13, 9, 5, 8, 6, 14, 11, 12, 11, 8, 6, 5, 5], -].map((i) => new Uint8Array(i)); - -const shiftsL = idxL.map((idx, i) => idx.map((j) => shifts[i][j])); -const shiftsR = idxR.map((idx, i) => idx.map((j) => shifts[i][j])); - -const Kl = new Uint32Array([0x00000000, 0x5a827999, 0x6ed9eba1, 0x8f1bbcdc, 0xa953fd4e]); -const Kr = new Uint32Array([0x50a28be6, 0x5c4dd124, 0x6d703ef3, 0x7a6d76e9, 0x00000000]); -// The rotate left (circular left shift) operation for uint32 -const rotl = (word: number, shift: number) => (word << shift) | (word >>> (32 - shift)); -// It's called f() in spec. -function f(group: number, x: number, y: number, z: number): number { - if (group === 0) return x ^ y ^ z; - else if (group === 1) return (x & y) | (~x & z); - else if (group === 2) return (x | ~y) ^ z; - else if (group === 3) return (x & z) | (y & ~z); - else return x ^ (y | ~z); -} -// Temporary buffer, not used to store anything between runs -const BUF = new Uint32Array(16); -export class RIPEMD160 extends SHA2 { - private h0 = 0x67452301 | 0; - private h1 = 0xefcdab89 | 0; - private h2 = 0x98badcfe | 0; - private h3 = 0x10325476 | 0; - private h4 = 0xc3d2e1f0 | 0; - - constructor() { - super(64, 20, 8, true); - } - protected get(): [number, number, number, number, number] { - const { h0, h1, h2, h3, h4 } = this; - return [h0, h1, h2, h3, h4]; - } - protected set(h0: number, h1: number, h2: number, h3: number, h4: number) { - this.h0 = h0 | 0; - this.h1 = h1 | 0; - this.h2 = h2 | 0; - this.h3 = h3 | 0; - this.h4 = h4 | 0; - } - protected process(view: DataView, offset: number): void { - for (let i = 0; i < 16; i++, offset += 4) BUF[i] = view.getUint32(offset, true); - // prettier-ignore - let al = this.h0 | 0, ar = al, - bl = this.h1 | 0, br = bl, - cl = this.h2 | 0, cr = cl, - dl = this.h3 | 0, dr = dl, - el = this.h4 | 0, er = el; - - // Instead of iterating 0 to 80, we split it into 5 groups - // And use the groups in constants, functions, etc. Much simpler - for (let group = 0; group < 5; group++) { - const rGroup = 4 - group; - const hbl = Kl[group], hbr = Kr[group]; // prettier-ignore - const rl = idxL[group], rr = idxR[group]; // prettier-ignore - const sl = shiftsL[group], sr = shiftsR[group]; // prettier-ignore - for (let i = 0; i < 16; i++) { - const tl = (rotl(al + f(group, bl, cl, dl) + BUF[rl[i]] + hbl, sl[i]) + el) | 0; - al = el, el = dl, dl = rotl(cl, 10) | 0, cl = bl, bl = tl; // prettier-ignore - } - // 2 loops are 10% faster - for (let i = 0; i < 16; i++) { - const tr = (rotl(ar + f(rGroup, br, cr, dr) + BUF[rr[i]] + hbr, sr[i]) + er) | 0; - ar = er, er = dr, dr = rotl(cr, 10) | 0, cr = br, br = tr; // prettier-ignore - } - } - // Add the compressed chunk to the current hash value - this.set( - (this.h1 + cl + dr) | 0, - (this.h2 + dl + er) | 0, - (this.h3 + el + ar) | 0, - (this.h4 + al + br) | 0, - (this.h0 + bl + cr) | 0 - ); - } - protected roundClean() { - BUF.fill(0); - } - destroy() { - this.destroyed = true; - this.buffer.fill(0); - this.set(0, 0, 0, 0, 0); - } -} - -/** - * RIPEMD-160 - a hash function from 1990s. - * @param message - msg that would be hashed - */ -export const ripemd160 = wrapConstructor(() => new RIPEMD160()); diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/src/scrypt.ts b/node_modules/@noble/curves/node_modules/@noble/hashes/src/scrypt.ts deleted file mode 100644 index f11b2b57..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/src/scrypt.ts +++ /dev/null @@ -1,240 +0,0 @@ -import assert from './_assert.js'; -import { sha256 } from './sha256.js'; -import { pbkdf2 } from './pbkdf2.js'; -import { asyncLoop, checkOpts, Input, u32 } from './utils.js'; - -// RFC 7914 Scrypt KDF - -// Left rotate for uint32 -const rotl = (a: number, b: number) => (a << b) | (a >>> (32 - b)); - -// The main Scrypt loop: uses Salsa extensively. -// Six versions of the function were tried, this is the fastest one. -// prettier-ignore -function XorAndSalsa( - prev: Uint32Array, - pi: number, - input: Uint32Array, - ii: number, - out: Uint32Array, - oi: number -) { - // Based on https://cr.yp.to/salsa20.html - // Xor blocks - let y00 = prev[pi++] ^ input[ii++], y01 = prev[pi++] ^ input[ii++]; - let y02 = prev[pi++] ^ input[ii++], y03 = prev[pi++] ^ input[ii++]; - let y04 = prev[pi++] ^ input[ii++], y05 = prev[pi++] ^ input[ii++]; - let y06 = prev[pi++] ^ input[ii++], y07 = prev[pi++] ^ input[ii++]; - let y08 = prev[pi++] ^ input[ii++], y09 = prev[pi++] ^ input[ii++]; - let y10 = prev[pi++] ^ input[ii++], y11 = prev[pi++] ^ input[ii++]; - let y12 = prev[pi++] ^ input[ii++], y13 = prev[pi++] ^ input[ii++]; - let y14 = prev[pi++] ^ input[ii++], y15 = prev[pi++] ^ input[ii++]; - // Save state to temporary variables (salsa) - let x00 = y00, x01 = y01, x02 = y02, x03 = y03, - x04 = y04, x05 = y05, x06 = y06, x07 = y07, - x08 = y08, x09 = y09, x10 = y10, x11 = y11, - x12 = y12, x13 = y13, x14 = y14, x15 = y15; - // Main loop (salsa) - for (let i = 0; i < 8; i += 2) { - x04 ^= rotl(x00 + x12 | 0, 7); x08 ^= rotl(x04 + x00 | 0, 9); - x12 ^= rotl(x08 + x04 | 0, 13); x00 ^= rotl(x12 + x08 | 0, 18); - x09 ^= rotl(x05 + x01 | 0, 7); x13 ^= rotl(x09 + x05 | 0, 9); - x01 ^= rotl(x13 + x09 | 0, 13); x05 ^= rotl(x01 + x13 | 0, 18); - x14 ^= rotl(x10 + x06 | 0, 7); x02 ^= rotl(x14 + x10 | 0, 9); - x06 ^= rotl(x02 + x14 | 0, 13); x10 ^= rotl(x06 + x02 | 0, 18); - x03 ^= rotl(x15 + x11 | 0, 7); x07 ^= rotl(x03 + x15 | 0, 9); - x11 ^= rotl(x07 + x03 | 0, 13); x15 ^= rotl(x11 + x07 | 0, 18); - x01 ^= rotl(x00 + x03 | 0, 7); x02 ^= rotl(x01 + x00 | 0, 9); - x03 ^= rotl(x02 + x01 | 0, 13); x00 ^= rotl(x03 + x02 | 0, 18); - x06 ^= rotl(x05 + x04 | 0, 7); x07 ^= rotl(x06 + x05 | 0, 9); - x04 ^= rotl(x07 + x06 | 0, 13); x05 ^= rotl(x04 + x07 | 0, 18); - x11 ^= rotl(x10 + x09 | 0, 7); x08 ^= rotl(x11 + x10 | 0, 9); - x09 ^= rotl(x08 + x11 | 0, 13); x10 ^= rotl(x09 + x08 | 0, 18); - x12 ^= rotl(x15 + x14 | 0, 7); x13 ^= rotl(x12 + x15 | 0, 9); - x14 ^= rotl(x13 + x12 | 0, 13); x15 ^= rotl(x14 + x13 | 0, 18); - } - // Write output (salsa) - out[oi++] = (y00 + x00) | 0; out[oi++] = (y01 + x01) | 0; - out[oi++] = (y02 + x02) | 0; out[oi++] = (y03 + x03) | 0; - out[oi++] = (y04 + x04) | 0; out[oi++] = (y05 + x05) | 0; - out[oi++] = (y06 + x06) | 0; out[oi++] = (y07 + x07) | 0; - out[oi++] = (y08 + x08) | 0; out[oi++] = (y09 + x09) | 0; - out[oi++] = (y10 + x10) | 0; out[oi++] = (y11 + x11) | 0; - out[oi++] = (y12 + x12) | 0; out[oi++] = (y13 + x13) | 0; - out[oi++] = (y14 + x14) | 0; out[oi++] = (y15 + x15) | 0; -} - -function BlockMix(input: Uint32Array, ii: number, out: Uint32Array, oi: number, r: number) { - // The block B is r 128-byte chunks (which is equivalent of 2r 64-byte chunks) - let head = oi + 0; - let tail = oi + 16 * r; - for (let i = 0; i < 16; i++) out[tail + i] = input[ii + (2 * r - 1) * 16 + i]; // X ← B[2r−1] - for (let i = 0; i < r; i++, head += 16, ii += 16) { - // We write odd & even Yi at same time. Even: 0bXXXXX0 Odd: 0bXXXXX1 - XorAndSalsa(out, tail, input, ii, out, head); // head[i] = Salsa(blockIn[2*i] ^ tail[i-1]) - if (i > 0) tail += 16; // First iteration overwrites tmp value in tail - XorAndSalsa(out, head, input, (ii += 16), out, tail); // tail[i] = Salsa(blockIn[2*i+1] ^ head[i]) - } -} - -export type ScryptOpts = { - N: number; // cost factor - r: number; // block size - p: number; // parallelization - dkLen?: number; // key length - asyncTick?: number; // block execution max time - maxmem?: number; - onProgress?: (progress: number) => void; -}; - -// Common prologue and epilogue for sync/async functions -function scryptInit(password: Input, salt: Input, _opts?: ScryptOpts) { - // Maxmem - 1GB+1KB by default - const opts = checkOpts( - { - dkLen: 32, - asyncTick: 10, - maxmem: 1024 ** 3 + 1024, - }, - _opts - ); - const { N, r, p, dkLen, asyncTick, maxmem, onProgress } = opts; - assert.number(N); - assert.number(r); - assert.number(p); - assert.number(dkLen); - assert.number(asyncTick); - assert.number(maxmem); - if (onProgress !== undefined && typeof onProgress !== 'function') - throw new Error('progressCb should be function'); - const blockSize = 128 * r; - const blockSize32 = blockSize / 4; - if (N <= 1 || (N & (N - 1)) !== 0 || N >= 2 ** (blockSize / 8) || N > 2 ** 32) { - // NOTE: we limit N to be less than 2**32 because of 32 bit variant of Integrify function - // There is no JS engines that allows alocate more than 4GB per single Uint8Array for now, but can change in future. - throw new Error( - 'Scrypt: N must be larger than 1, a power of 2, less than 2^(128 * r / 8) and less than 2^32' - ); - } - if (p < 0 || p > ((2 ** 32 - 1) * 32) / blockSize) { - throw new Error( - 'Scrypt: p must be a positive integer less than or equal to ((2^32 - 1) * 32) / (128 * r)' - ); - } - if (dkLen < 0 || dkLen > (2 ** 32 - 1) * 32) { - throw new Error( - 'Scrypt: dkLen should be positive integer less than or equal to (2^32 - 1) * 32' - ); - } - const memUsed = blockSize * (N + p); - if (memUsed > maxmem) { - throw new Error( - `Scrypt: parameters too large, ${memUsed} (128 * r * (N + p)) > ${maxmem} (maxmem)` - ); - } - // [B0...Bp−1] ← PBKDF2HMAC-SHA256(Passphrase, Salt, 1, blockSize*ParallelizationFactor) - // Since it has only one iteration there is no reason to use async variant - const B = pbkdf2(sha256, password, salt, { c: 1, dkLen: blockSize * p }); - const B32 = u32(B); - // Re-used between parallel iterations. Array(iterations) of B - const V = u32(new Uint8Array(blockSize * N)); - const tmp = u32(new Uint8Array(blockSize)); - let blockMixCb = () => {}; - if (onProgress) { - const totalBlockMix = 2 * N * p; - // Invoke callback if progress changes from 10.01 to 10.02 - // Allows to draw smooth progress bar on up to 8K screen - const callbackPer = Math.max(Math.floor(totalBlockMix / 10000), 1); - let blockMixCnt = 0; - blockMixCb = () => { - blockMixCnt++; - if (onProgress && (!(blockMixCnt % callbackPer) || blockMixCnt === totalBlockMix)) - onProgress(blockMixCnt / totalBlockMix); - }; - } - return { N, r, p, dkLen, blockSize32, V, B32, B, tmp, blockMixCb, asyncTick }; -} - -function scryptOutput( - password: Input, - dkLen: number, - B: Uint8Array, - V: Uint32Array, - tmp: Uint32Array -) { - const res = pbkdf2(sha256, password, B, { c: 1, dkLen }); - B.fill(0); - V.fill(0); - tmp.fill(0); - return res; -} - -/** - * Scrypt KDF from RFC 7914. - * @param password - pass - * @param salt - salt - * @param opts - parameters - * - `N` is cpu/mem work factor (power of 2 e.g. 2**18) - * - `r` is block size (8 is common), fine-tunes sequential memory read size and performance - * - `p` is parallelization factor (1 is common) - * - `dkLen` is output key length in bytes e.g. 32. - * - `asyncTick` - (default: 10) max time in ms for which async function can block execution - * - `maxmem` - (default: `1024 ** 3 + 1024` aka 1GB+1KB). A limit that the app could use for scrypt - * - `onProgress` - callback function that would be executed for progress report - * @returns Derived key - */ -export function scrypt(password: Input, salt: Input, opts: ScryptOpts) { - const { N, r, p, dkLen, blockSize32, V, B32, B, tmp, blockMixCb } = scryptInit( - password, - salt, - opts - ); - for (let pi = 0; pi < p; pi++) { - const Pi = blockSize32 * pi; - for (let i = 0; i < blockSize32; i++) V[i] = B32[Pi + i]; // V[0] = B[i] - for (let i = 0, pos = 0; i < N - 1; i++) { - BlockMix(V, pos, V, (pos += blockSize32), r); // V[i] = BlockMix(V[i-1]); - blockMixCb(); - } - BlockMix(V, (N - 1) * blockSize32, B32, Pi, r); // Process last element - blockMixCb(); - for (let i = 0; i < N; i++) { - // First u32 of the last 64-byte block (u32 is LE) - const j = B32[Pi + blockSize32 - 16] % N; // j = Integrify(X) % iterations - for (let k = 0; k < blockSize32; k++) tmp[k] = B32[Pi + k] ^ V[j * blockSize32 + k]; // tmp = B ^ V[j] - BlockMix(tmp, 0, B32, Pi, r); // B = BlockMix(B ^ V[j]) - blockMixCb(); - } - } - return scryptOutput(password, dkLen, B, V, tmp); -} - -/** - * Scrypt KDF from RFC 7914. - */ -export async function scryptAsync(password: Input, salt: Input, opts: ScryptOpts) { - const { N, r, p, dkLen, blockSize32, V, B32, B, tmp, blockMixCb, asyncTick } = scryptInit( - password, - salt, - opts - ); - for (let pi = 0; pi < p; pi++) { - const Pi = blockSize32 * pi; - for (let i = 0; i < blockSize32; i++) V[i] = B32[Pi + i]; // V[0] = B[i] - let pos = 0; - await asyncLoop(N - 1, asyncTick, (i) => { - BlockMix(V, pos, V, (pos += blockSize32), r); // V[i] = BlockMix(V[i-1]); - blockMixCb(); - }); - BlockMix(V, (N - 1) * blockSize32, B32, Pi, r); // Process last element - blockMixCb(); - await asyncLoop(N, asyncTick, (i) => { - // First u32 of the last 64-byte block (u32 is LE) - const j = B32[Pi + blockSize32 - 16] % N; // j = Integrify(X) % iterations - for (let k = 0; k < blockSize32; k++) tmp[k] = B32[Pi + k] ^ V[j * blockSize32 + k]; // tmp = B ^ V[j] - BlockMix(tmp, 0, B32, Pi, r); // B = BlockMix(B ^ V[j]) - blockMixCb(); - }); - } - return scryptOutput(password, dkLen, B, V, tmp); -} diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/src/sha1.ts b/node_modules/@noble/curves/node_modules/@noble/hashes/src/sha1.ts deleted file mode 100644 index 80b36869..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/src/sha1.ts +++ /dev/null @@ -1,86 +0,0 @@ -import { SHA2 } from './_sha2.js'; -import { wrapConstructor } from './utils.js'; - -// SHA1 was cryptographically broken. -// It is still widely used in legacy apps. Don't use it for a new protocol. - -// RFC 3174 -const rotl = (word: number, shift: number) => (word << shift) | ((word >>> (32 - shift)) >>> 0); -// Choice: a ? b : c -const Chi = (a: number, b: number, c: number) => (a & b) ^ (~a & c); -// Majority function, true if any two inpust is true -const Maj = (a: number, b: number, c: number) => (a & b) ^ (a & c) ^ (b & c); - -// Initial state -const IV = new Uint32Array([0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0]); - -// Temporary buffer, not used to store anything between runs -// Named this way because it matches specification. -const SHA1_W = new Uint32Array(80); -class SHA1 extends SHA2 { - private A = IV[0] | 0; - private B = IV[1] | 0; - private C = IV[2] | 0; - private D = IV[3] | 0; - private E = IV[4] | 0; - - constructor() { - super(64, 20, 8, false); - } - protected get(): [number, number, number, number, number] { - const { A, B, C, D, E } = this; - return [A, B, C, D, E]; - } - protected set(A: number, B: number, C: number, D: number, E: number) { - this.A = A | 0; - this.B = B | 0; - this.C = C | 0; - this.D = D | 0; - this.E = E | 0; - } - protected process(view: DataView, offset: number): void { - for (let i = 0; i < 16; i++, offset += 4) SHA1_W[i] = view.getUint32(offset, false); - for (let i = 16; i < 80; i++) - SHA1_W[i] = rotl(SHA1_W[i - 3] ^ SHA1_W[i - 8] ^ SHA1_W[i - 14] ^ SHA1_W[i - 16], 1); - // Compression function main loop, 80 rounds - let { A, B, C, D, E } = this; - for (let i = 0; i < 80; i++) { - let F, K; - if (i < 20) { - F = Chi(B, C, D); - K = 0x5a827999; - } else if (i < 40) { - F = B ^ C ^ D; - K = 0x6ed9eba1; - } else if (i < 60) { - F = Maj(B, C, D); - K = 0x8f1bbcdc; - } else { - F = B ^ C ^ D; - K = 0xca62c1d6; - } - const T = (rotl(A, 5) + F + E + K + SHA1_W[i]) | 0; - E = D; - D = C; - C = rotl(B, 30); - B = A; - A = T; - } - // Add the compressed chunk to the current hash value - A = (A + this.A) | 0; - B = (B + this.B) | 0; - C = (C + this.C) | 0; - D = (D + this.D) | 0; - E = (E + this.E) | 0; - this.set(A, B, C, D, E); - } - protected roundClean() { - SHA1_W.fill(0); - } - destroy() { - this.set(0, 0, 0, 0, 0); - this.buffer.fill(0); - } -} - -export const sha1 = wrapConstructor(() => new SHA1()); diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/src/sha256.ts b/node_modules/@noble/curves/node_modules/@noble/hashes/src/sha256.ts deleted file mode 100644 index 76fdd11d..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/src/sha256.ts +++ /dev/null @@ -1,130 +0,0 @@ -import { SHA2 } from './_sha2.js'; -import { rotr, wrapConstructor } from './utils.js'; - -// Choice: a ? b : c -const Chi = (a: number, b: number, c: number) => (a & b) ^ (~a & c); -// Majority function, true if any two inpust is true -const Maj = (a: number, b: number, c: number) => (a & b) ^ (a & c) ^ (b & c); - -// Round constants: -// first 32 bits of the fractional parts of the cube roots of the first 64 primes 2..311) -// prettier-ignore -const SHA256_K = new Uint32Array([ - 0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5, 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5, - 0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3, 0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174, - 0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc, 0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da, - 0x983e5152, 0xa831c66d, 0xb00327c8, 0xbf597fc7, 0xc6e00bf3, 0xd5a79147, 0x06ca6351, 0x14292967, - 0x27b70a85, 0x2e1b2138, 0x4d2c6dfc, 0x53380d13, 0x650a7354, 0x766a0abb, 0x81c2c92e, 0x92722c85, - 0xa2bfe8a1, 0xa81a664b, 0xc24b8b70, 0xc76c51a3, 0xd192e819, 0xd6990624, 0xf40e3585, 0x106aa070, - 0x19a4c116, 0x1e376c08, 0x2748774c, 0x34b0bcb5, 0x391c0cb3, 0x4ed8aa4a, 0x5b9cca4f, 0x682e6ff3, - 0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208, 0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2 -]); - -// Initial state (first 32 bits of the fractional parts of the square roots of the first 8 primes 2..19): -// prettier-ignore -const IV = new Uint32Array([ - 0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19 -]); - -// Temporary buffer, not used to store anything between runs -// Named this way because it matches specification. -const SHA256_W = new Uint32Array(64); -class SHA256 extends SHA2 { - // We cannot use array here since array allows indexing by variable - // which means optimizer/compiler cannot use registers. - A = IV[0] | 0; - B = IV[1] | 0; - C = IV[2] | 0; - D = IV[3] | 0; - E = IV[4] | 0; - F = IV[5] | 0; - G = IV[6] | 0; - H = IV[7] | 0; - - constructor() { - super(64, 32, 8, false); - } - protected get(): [number, number, number, number, number, number, number, number] { - const { A, B, C, D, E, F, G, H } = this; - return [A, B, C, D, E, F, G, H]; - } - // prettier-ignore - protected set( - A: number, B: number, C: number, D: number, E: number, F: number, G: number, H: number - ) { - this.A = A | 0; - this.B = B | 0; - this.C = C | 0; - this.D = D | 0; - this.E = E | 0; - this.F = F | 0; - this.G = G | 0; - this.H = H | 0; - } - protected process(view: DataView, offset: number): void { - // Extend the first 16 words into the remaining 48 words w[16..63] of the message schedule array - for (let i = 0; i < 16; i++, offset += 4) SHA256_W[i] = view.getUint32(offset, false); - for (let i = 16; i < 64; i++) { - const W15 = SHA256_W[i - 15]; - const W2 = SHA256_W[i - 2]; - const s0 = rotr(W15, 7) ^ rotr(W15, 18) ^ (W15 >>> 3); - const s1 = rotr(W2, 17) ^ rotr(W2, 19) ^ (W2 >>> 10); - SHA256_W[i] = (s1 + SHA256_W[i - 7] + s0 + SHA256_W[i - 16]) | 0; - } - // Compression function main loop, 64 rounds - let { A, B, C, D, E, F, G, H } = this; - for (let i = 0; i < 64; i++) { - const sigma1 = rotr(E, 6) ^ rotr(E, 11) ^ rotr(E, 25); - const T1 = (H + sigma1 + Chi(E, F, G) + SHA256_K[i] + SHA256_W[i]) | 0; - const sigma0 = rotr(A, 2) ^ rotr(A, 13) ^ rotr(A, 22); - const T2 = (sigma0 + Maj(A, B, C)) | 0; - H = G; - G = F; - F = E; - E = (D + T1) | 0; - D = C; - C = B; - B = A; - A = (T1 + T2) | 0; - } - // Add the compressed chunk to the current hash value - A = (A + this.A) | 0; - B = (B + this.B) | 0; - C = (C + this.C) | 0; - D = (D + this.D) | 0; - E = (E + this.E) | 0; - F = (F + this.F) | 0; - G = (G + this.G) | 0; - H = (H + this.H) | 0; - this.set(A, B, C, D, E, F, G, H); - } - protected roundClean() { - SHA256_W.fill(0); - } - destroy() { - this.set(0, 0, 0, 0, 0, 0, 0, 0); - this.buffer.fill(0); - } -} -// Constants from https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf -class SHA224 extends SHA256 { - A = 0xc1059ed8 | 0; - B = 0x367cd507 | 0; - C = 0x3070dd17 | 0; - D = 0xf70e5939 | 0; - E = 0xffc00b31 | 0; - F = 0x68581511 | 0; - G = 0x64f98fa7 | 0; - H = 0xbefa4fa4 | 0; - constructor() { - super(); - this.outputLen = 28; - } -} - -/** - * SHA2-256 hash function - * @param message - data that would be hashed - */ -export const sha256 = wrapConstructor(() => new SHA256()); -export const sha224 = wrapConstructor(() => new SHA224()); diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/src/sha3-addons.ts b/node_modules/@noble/curves/node_modules/@noble/hashes/src/sha3-addons.ts deleted file mode 100644 index 10152508..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/src/sha3-addons.ts +++ /dev/null @@ -1,398 +0,0 @@ -import { number as assertNumber } from './_assert.js'; -import { Input, toBytes, wrapConstructorWithOpts, u32, Hash, HashXOF } from './utils.js'; -import { Keccak, ShakeOpts } from './sha3.js'; -// cSHAKE && KMAC (NIST SP800-185) -function leftEncode(n: number): Uint8Array { - const res = [n & 0xff]; - n >>= 8; - for (; n > 0; n >>= 8) res.unshift(n & 0xff); - res.unshift(res.length); - return new Uint8Array(res); -} - -function rightEncode(n: number): Uint8Array { - const res = [n & 0xff]; - n >>= 8; - for (; n > 0; n >>= 8) res.unshift(n & 0xff); - res.push(res.length); - return new Uint8Array(res); -} - -function chooseLen(opts: ShakeOpts, outputLen: number): number { - return opts.dkLen === undefined ? outputLen : opts.dkLen; -} - -const toBytesOptional = (buf?: Input) => (buf !== undefined ? toBytes(buf) : new Uint8Array([])); -// NOTE: second modulo is necessary since we don't need to add padding if current element takes whole block -const getPadding = (len: number, block: number) => new Uint8Array((block - (len % block)) % block); -export type cShakeOpts = ShakeOpts & { personalization?: Input; NISTfn?: Input }; - -// Personalization -function cshakePers(hash: Keccak, opts: cShakeOpts = {}): Keccak { - if (!opts || (!opts.personalization && !opts.NISTfn)) return hash; - // Encode and pad inplace to avoid unneccesary memory copies/slices (so we don't need to zero them later) - // bytepad(encode_string(N) || encode_string(S), 168) - const blockLenBytes = leftEncode(hash.blockLen); - const fn = toBytesOptional(opts.NISTfn); - const fnLen = leftEncode(8 * fn.length); // length in bits - const pers = toBytesOptional(opts.personalization); - const persLen = leftEncode(8 * pers.length); // length in bits - if (!fn.length && !pers.length) return hash; - hash.suffix = 0x04; - hash.update(blockLenBytes).update(fnLen).update(fn).update(persLen).update(pers); - let totalLen = blockLenBytes.length + fnLen.length + fn.length + persLen.length + pers.length; - hash.update(getPadding(totalLen, hash.blockLen)); - return hash; -} - -const gencShake = (suffix: number, blockLen: number, outputLen: number) => - wrapConstructorWithOpts((opts: cShakeOpts = {}) => - cshakePers(new Keccak(blockLen, suffix, chooseLen(opts, outputLen), true), opts) - ); - -export const cshake128 = /* @__PURE__ */ (() => gencShake(0x1f, 168, 128 / 8))(); -export const cshake256 = /* @__PURE__ */ (() => gencShake(0x1f, 136, 256 / 8))(); - -class KMAC extends Keccak implements HashXOF { - constructor( - blockLen: number, - outputLen: number, - enableXOF: boolean, - key: Input, - opts: cShakeOpts = {} - ) { - super(blockLen, 0x1f, outputLen, enableXOF); - cshakePers(this, { NISTfn: 'KMAC', personalization: opts.personalization }); - key = toBytes(key); - // 1. newX = bytepad(encode_string(K), 168) || X || right_encode(L). - const blockLenBytes = leftEncode(this.blockLen); - const keyLen = leftEncode(8 * key.length); - this.update(blockLenBytes).update(keyLen).update(key); - const totalLen = blockLenBytes.length + keyLen.length + key.length; - this.update(getPadding(totalLen, this.blockLen)); - } - protected finish() { - if (!this.finished) this.update(rightEncode(this.enableXOF ? 0 : this.outputLen * 8)); // outputLen in bits - super.finish(); - } - _cloneInto(to?: KMAC): KMAC { - // Create new instance without calling constructor since key already in state and we don't know it. - // Force "to" to be instance of KMAC instead of Sha3. - if (!to) { - to = Object.create(Object.getPrototypeOf(this), {}) as KMAC; - to.state = this.state.slice(); - to.blockLen = this.blockLen; - to.state32 = u32(to.state); - } - return super._cloneInto(to) as KMAC; - } - clone(): KMAC { - return this._cloneInto(); - } -} - -function genKmac(blockLen: number, outputLen: number, xof = false) { - const kmac = (key: Input, message: Input, opts?: cShakeOpts): Uint8Array => - kmac.create(key, opts).update(message).digest(); - kmac.create = (key: Input, opts: cShakeOpts = {}) => - new KMAC(blockLen, chooseLen(opts, outputLen), xof, key, opts); - return kmac; -} - -export const kmac128 = /* @__PURE__ */ (() => genKmac(168, 128 / 8))(); -export const kmac256 = /* @__PURE__ */ (() => genKmac(136, 256 / 8))(); -export const kmac128xof = /* @__PURE__ */ (() => genKmac(168, 128 / 8, true))(); -export const kmac256xof = /* @__PURE__ */ (() => genKmac(136, 256 / 8, true))(); - -// TupleHash -// Usage: tuple(['ab', 'cd']) != tuple(['a', 'bcd']) -class TupleHash extends Keccak implements HashXOF { - constructor(blockLen: number, outputLen: number, enableXOF: boolean, opts: cShakeOpts = {}) { - super(blockLen, 0x1f, outputLen, enableXOF); - cshakePers(this, { NISTfn: 'TupleHash', personalization: opts.personalization }); - // Change update after cshake processed - this.update = (data: Input) => { - data = toBytes(data); - super.update(leftEncode(data.length * 8)); - super.update(data); - return this; - }; - } - protected finish() { - if (!this.finished) super.update(rightEncode(this.enableXOF ? 0 : this.outputLen * 8)); // outputLen in bits - super.finish(); - } - _cloneInto(to?: TupleHash): TupleHash { - to ||= new TupleHash(this.blockLen, this.outputLen, this.enableXOF); - return super._cloneInto(to) as TupleHash; - } - clone(): TupleHash { - return this._cloneInto(); - } -} - -function genTuple(blockLen: number, outputLen: number, xof = false) { - const tuple = (messages: Input[], opts?: cShakeOpts): Uint8Array => { - const h = tuple.create(opts); - for (const msg of messages) h.update(msg); - return h.digest(); - }; - tuple.create = (opts: cShakeOpts = {}) => - new TupleHash(blockLen, chooseLen(opts, outputLen), xof, opts); - return tuple; -} - -export const tuplehash128 = /* @__PURE__ */ (() => genTuple(168, 128 / 8))(); -export const tuplehash256 = /* @__PURE__ */ (() => genTuple(136, 256 / 8))(); -export const tuplehash128xof = /* @__PURE__ */ (() => genTuple(168, 128 / 8, true))(); -export const tuplehash256xof = /* @__PURE__ */ (() => genTuple(136, 256 / 8, true))(); - -// ParallelHash (same as K12/M14, but without speedup for inputs less 8kb, reduced number of rounds and more simple) -type ParallelOpts = cShakeOpts & { blockLen?: number }; - -class ParallelHash extends Keccak implements HashXOF { - private leafHash?: Hash; - private chunkPos = 0; // Position of current block in chunk - private chunksDone = 0; // How many chunks we already have - private chunkLen: number; - constructor( - blockLen: number, - outputLen: number, - protected leafCons: () => Hash, - enableXOF: boolean, - opts: ParallelOpts = {} - ) { - super(blockLen, 0x1f, outputLen, enableXOF); - cshakePers(this, { NISTfn: 'ParallelHash', personalization: opts.personalization }); - let { blockLen: B } = opts; - B ||= 8; - assertNumber(B); - this.chunkLen = B; - super.update(leftEncode(B)); - // Change update after cshake processed - this.update = (data: Input) => { - data = toBytes(data); - const { chunkLen, leafCons } = this; - for (let pos = 0, len = data.length; pos < len; ) { - if (this.chunkPos == chunkLen || !this.leafHash) { - if (this.leafHash) { - super.update(this.leafHash.digest()); - this.chunksDone++; - } - this.leafHash = leafCons(); - this.chunkPos = 0; - } - const take = Math.min(chunkLen - this.chunkPos, len - pos); - this.leafHash.update(data.subarray(pos, pos + take)); - this.chunkPos += take; - pos += take; - } - return this; - }; - } - protected finish() { - if (this.finished) return; - if (this.leafHash) { - super.update(this.leafHash.digest()); - this.chunksDone++; - } - super.update(rightEncode(this.chunksDone)); - super.update(rightEncode(this.enableXOF ? 0 : this.outputLen * 8)); // outputLen in bits - super.finish(); - } - _cloneInto(to?: ParallelHash): ParallelHash { - to ||= new ParallelHash(this.blockLen, this.outputLen, this.leafCons, this.enableXOF); - if (this.leafHash) to.leafHash = this.leafHash._cloneInto(to.leafHash as Keccak); - to.chunkPos = this.chunkPos; - to.chunkLen = this.chunkLen; - to.chunksDone = this.chunksDone; - return super._cloneInto(to) as ParallelHash; - } - destroy() { - super.destroy.call(this); - if (this.leafHash) this.leafHash.destroy(); - } - clone(): ParallelHash { - return this._cloneInto(); - } -} - -function genPrl( - blockLen: number, - outputLen: number, - leaf: ReturnType, - xof = false -) { - const parallel = (message: Input, opts?: ParallelOpts): Uint8Array => - parallel.create(opts).update(message).digest(); - parallel.create = (opts: ParallelOpts = {}) => - new ParallelHash( - blockLen, - chooseLen(opts, outputLen), - () => leaf.create({ dkLen: 2 * outputLen }), - xof, - opts - ); - return parallel; -} - -export const parallelhash128 = /* @__PURE__ */ (() => genPrl(168, 128 / 8, cshake128))(); -export const parallelhash256 = /* @__PURE__ */ (() => genPrl(136, 256 / 8, cshake256))(); -export const parallelhash128xof = /* @__PURE__ */ (() => genPrl(168, 128 / 8, cshake128, true))(); -export const parallelhash256xof = /* @__PURE__ */ (() => genPrl(136, 256 / 8, cshake256, true))(); - -// Kangaroo -// Same as NIST rightEncode, but returns [0] for zero string -function rightEncodeK12(n: number): Uint8Array { - const res = []; - for (; n > 0; n >>= 8) res.unshift(n & 0xff); - res.push(res.length); - return new Uint8Array(res); -} - -export type KangarooOpts = { dkLen?: number; personalization?: Input }; -const EMPTY = new Uint8Array([]); - -class KangarooTwelve extends Keccak implements HashXOF { - readonly chunkLen = 8192; - private leafHash?: Keccak; - private personalization: Uint8Array; - private chunkPos = 0; // Position of current block in chunk - private chunksDone = 0; // How many chunks we already have - constructor( - blockLen: number, - protected leafLen: number, - outputLen: number, - rounds: number, - opts: KangarooOpts - ) { - super(blockLen, 0x07, outputLen, true, rounds); - const { personalization } = opts; - this.personalization = toBytesOptional(personalization); - } - update(data: Input) { - data = toBytes(data); - const { chunkLen, blockLen, leafLen, rounds } = this; - for (let pos = 0, len = data.length; pos < len; ) { - if (this.chunkPos == chunkLen) { - if (this.leafHash) super.update(this.leafHash.digest()); - else { - this.suffix = 0x06; // Its safe to change suffix here since its used only in digest() - super.update(new Uint8Array([3, 0, 0, 0, 0, 0, 0, 0])); - } - this.leafHash = new Keccak(blockLen, 0x0b, leafLen, false, rounds); - this.chunksDone++; - this.chunkPos = 0; - } - const take = Math.min(chunkLen - this.chunkPos, len - pos); - const chunk = data.subarray(pos, pos + take); - if (this.leafHash) this.leafHash.update(chunk); - else super.update(chunk); - this.chunkPos += take; - pos += take; - } - return this; - } - protected finish() { - if (this.finished) return; - const { personalization } = this; - this.update(personalization).update(rightEncodeK12(personalization.length)); - // Leaf hash - if (this.leafHash) { - super.update(this.leafHash.digest()); - super.update(rightEncodeK12(this.chunksDone)); - super.update(new Uint8Array([0xff, 0xff])); - } - super.finish.call(this); - } - destroy() { - super.destroy.call(this); - if (this.leafHash) this.leafHash.destroy(); - // We cannot zero personalization buffer since it is user provided and we don't want to mutate user input - this.personalization = EMPTY; - } - _cloneInto(to?: KangarooTwelve): KangarooTwelve { - const { blockLen, leafLen, leafHash, outputLen, rounds } = this; - to ||= new KangarooTwelve(blockLen, leafLen, outputLen, rounds, {}); - super._cloneInto(to); - if (leafHash) to.leafHash = leafHash._cloneInto(to.leafHash); - to.personalization.set(this.personalization); - to.leafLen = this.leafLen; - to.chunkPos = this.chunkPos; - to.chunksDone = this.chunksDone; - return to; - } - clone(): KangarooTwelve { - return this._cloneInto(); - } -} -// Default to 32 bytes, so it can be used without opts -export const k12 = /* @__PURE__ */ (() => - wrapConstructorWithOpts( - (opts: KangarooOpts = {}) => new KangarooTwelve(168, 32, chooseLen(opts, 32), 12, opts) - ))(); -// MarsupilamiFourteen -export const m14 = /* @__PURE__ */ (() => - wrapConstructorWithOpts( - (opts: KangarooOpts = {}) => new KangarooTwelve(136, 64, chooseLen(opts, 64), 14, opts) - ))(); - -// https://keccak.team/files/CSF-0.1.pdf -// + https://github.com/XKCP/XKCP/tree/master/lib/high/Keccak/PRG -class KeccakPRG extends Keccak { - protected rate: number; - constructor(capacity: number) { - assertNumber(capacity); - // Rho should be full bytes - if (capacity < 0 || capacity > 1600 - 10 || (1600 - capacity - 2) % 8) - throw new Error('KeccakPRG: Invalid capacity'); - // blockLen = rho in bytes - super((1600 - capacity - 2) / 8, 0, 0, true); - this.rate = 1600 - capacity; - this.posOut = Math.floor((this.rate + 7) / 8); - } - keccak() { - // Duplex padding - this.state[this.pos] ^= 0x01; - this.state[this.blockLen] ^= 0x02; // Rho is full bytes - super.keccak(); - this.pos = 0; - this.posOut = 0; - } - update(data: Input) { - super.update(data); - this.posOut = this.blockLen; - return this; - } - feed(data: Input) { - return this.update(data); - } - protected finish() {} - digestInto(out: Uint8Array): Uint8Array { - throw new Error('KeccakPRG: digest is not allowed, please use .fetch instead.'); - } - fetch(bytes: number): Uint8Array { - return this.xof(bytes); - } - // Ensure irreversibility (even if state leaked previous outputs cannot be computed) - forget() { - if (this.rate < 1600 / 2 + 1) throw new Error('KeccakPRG: rate too low to use forget'); - this.keccak(); - for (let i = 0; i < this.blockLen; i++) this.state[i] = 0; - this.pos = this.blockLen; - this.keccak(); - this.posOut = this.blockLen; - } - _cloneInto(to?: KeccakPRG): KeccakPRG { - const { rate } = this; - to ||= new KeccakPRG(1600 - rate); - super._cloneInto(to); - to.rate = rate; - return to; - } - clone(): KeccakPRG { - return this._cloneInto(); - } -} - -export const keccakprg = (capacity = 254) => new KeccakPRG(capacity); diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/src/sha3.ts b/node_modules/@noble/curves/node_modules/@noble/hashes/src/sha3.ts deleted file mode 100644 index 6f1b9377..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/src/sha3.ts +++ /dev/null @@ -1,222 +0,0 @@ -import assert from './_assert.js'; -import u64 from './_u64.js'; -import { - Hash, - u32, - Input, - toBytes, - wrapConstructor, - wrapXOFConstructorWithOpts, - HashXOF, -} from './utils.js'; - -// Various per round constants calculations -const [SHA3_PI, SHA3_ROTL, _SHA3_IOTA]: [number[], number[], bigint[]] = [[], [], []]; -const _0n = BigInt(0); -const _1n = BigInt(1); -const _2n = BigInt(2); -const _7n = BigInt(7); -const _256n = BigInt(256); -const _0x71n = BigInt(0x71); -for (let round = 0, R = _1n, x = 1, y = 0; round < 24; round++) { - // Pi - [x, y] = [y, (2 * x + 3 * y) % 5]; - SHA3_PI.push(2 * (5 * y + x)); - // Rotational - SHA3_ROTL.push((((round + 1) * (round + 2)) / 2) % 64); - // Iota - let t = _0n; - for (let j = 0; j < 7; j++) { - R = ((R << _1n) ^ ((R >> _7n) * _0x71n)) % _256n; - if (R & _2n) t ^= _1n << ((_1n << BigInt(j)) - _1n); - } - _SHA3_IOTA.push(t); -} -const [SHA3_IOTA_H, SHA3_IOTA_L] = u64.split(_SHA3_IOTA, true); - -// Left rotation (without 0, 32, 64) -const rotlH = (h: number, l: number, s: number) => - s > 32 ? u64.rotlBH(h, l, s) : u64.rotlSH(h, l, s); -const rotlL = (h: number, l: number, s: number) => - s > 32 ? u64.rotlBL(h, l, s) : u64.rotlSL(h, l, s); - -// Same as keccakf1600, but allows to skip some rounds -export function keccakP(s: Uint32Array, rounds: number = 24) { - const B = new Uint32Array(5 * 2); - // NOTE: all indices are x2 since we store state as u32 instead of u64 (bigints to slow in js) - for (let round = 24 - rounds; round < 24; round++) { - // Theta θ - for (let x = 0; x < 10; x++) B[x] = s[x] ^ s[x + 10] ^ s[x + 20] ^ s[x + 30] ^ s[x + 40]; - for (let x = 0; x < 10; x += 2) { - const idx1 = (x + 8) % 10; - const idx0 = (x + 2) % 10; - const B0 = B[idx0]; - const B1 = B[idx0 + 1]; - const Th = rotlH(B0, B1, 1) ^ B[idx1]; - const Tl = rotlL(B0, B1, 1) ^ B[idx1 + 1]; - for (let y = 0; y < 50; y += 10) { - s[x + y] ^= Th; - s[x + y + 1] ^= Tl; - } - } - // Rho (ρ) and Pi (π) - let curH = s[2]; - let curL = s[3]; - for (let t = 0; t < 24; t++) { - const shift = SHA3_ROTL[t]; - const Th = rotlH(curH, curL, shift); - const Tl = rotlL(curH, curL, shift); - const PI = SHA3_PI[t]; - curH = s[PI]; - curL = s[PI + 1]; - s[PI] = Th; - s[PI + 1] = Tl; - } - // Chi (χ) - for (let y = 0; y < 50; y += 10) { - for (let x = 0; x < 10; x++) B[x] = s[y + x]; - for (let x = 0; x < 10; x++) s[y + x] ^= ~B[(x + 2) % 10] & B[(x + 4) % 10]; - } - // Iota (ι) - s[0] ^= SHA3_IOTA_H[round]; - s[1] ^= SHA3_IOTA_L[round]; - } - B.fill(0); -} - -export class Keccak extends Hash implements HashXOF { - protected state: Uint8Array; - protected pos = 0; - protected posOut = 0; - protected finished = false; - protected state32: Uint32Array; - protected destroyed = false; - // NOTE: we accept arguments in bytes instead of bits here. - constructor( - public blockLen: number, - public suffix: number, - public outputLen: number, - protected enableXOF = false, - protected rounds: number = 24 - ) { - super(); - // Can be passed from user as dkLen - assert.number(outputLen); - // 1600 = 5x5 matrix of 64bit. 1600 bits === 200 bytes - if (0 >= this.blockLen || this.blockLen >= 200) - throw new Error('Sha3 supports only keccak-f1600 function'); - this.state = new Uint8Array(200); - this.state32 = u32(this.state); - } - protected keccak() { - keccakP(this.state32, this.rounds); - this.posOut = 0; - this.pos = 0; - } - update(data: Input) { - assert.exists(this); - const { blockLen, state } = this; - data = toBytes(data); - const len = data.length; - for (let pos = 0; pos < len; ) { - const take = Math.min(blockLen - this.pos, len - pos); - for (let i = 0; i < take; i++) state[this.pos++] ^= data[pos++]; - if (this.pos === blockLen) this.keccak(); - } - return this; - } - protected finish() { - if (this.finished) return; - this.finished = true; - const { state, suffix, pos, blockLen } = this; - // Do the padding - state[pos] ^= suffix; - if ((suffix & 0x80) !== 0 && pos === blockLen - 1) this.keccak(); - state[blockLen - 1] ^= 0x80; - this.keccak(); - } - protected writeInto(out: Uint8Array): Uint8Array { - assert.exists(this, false); - assert.bytes(out); - this.finish(); - const bufferOut = this.state; - const { blockLen } = this; - for (let pos = 0, len = out.length; pos < len; ) { - if (this.posOut >= blockLen) this.keccak(); - const take = Math.min(blockLen - this.posOut, len - pos); - out.set(bufferOut.subarray(this.posOut, this.posOut + take), pos); - this.posOut += take; - pos += take; - } - return out; - } - xofInto(out: Uint8Array): Uint8Array { - // Sha3/Keccak usage with XOF is probably mistake, only SHAKE instances can do XOF - if (!this.enableXOF) throw new Error('XOF is not possible for this instance'); - return this.writeInto(out); - } - xof(bytes: number): Uint8Array { - assert.number(bytes); - return this.xofInto(new Uint8Array(bytes)); - } - digestInto(out: Uint8Array) { - assert.output(out, this); - if (this.finished) throw new Error('digest() was already called'); - this.writeInto(out); - this.destroy(); - return out; - } - digest() { - return this.digestInto(new Uint8Array(this.outputLen)); - } - destroy() { - this.destroyed = true; - this.state.fill(0); - } - _cloneInto(to?: Keccak): Keccak { - const { blockLen, suffix, outputLen, rounds, enableXOF } = this; - to ||= new Keccak(blockLen, suffix, outputLen, enableXOF, rounds); - to.state32.set(this.state32); - to.pos = this.pos; - to.posOut = this.posOut; - to.finished = this.finished; - to.rounds = rounds; - // Suffix can change in cSHAKE - to.suffix = suffix; - to.outputLen = outputLen; - to.enableXOF = enableXOF; - to.destroyed = this.destroyed; - return to; - } -} - -const gen = (suffix: number, blockLen: number, outputLen: number) => - wrapConstructor(() => new Keccak(blockLen, suffix, outputLen)); - -export const sha3_224 = gen(0x06, 144, 224 / 8); -/** - * SHA3-256 hash function - * @param message - that would be hashed - */ -export const sha3_256 = gen(0x06, 136, 256 / 8); -export const sha3_384 = gen(0x06, 104, 384 / 8); -export const sha3_512 = gen(0x06, 72, 512 / 8); -export const keccak_224 = gen(0x01, 144, 224 / 8); -/** - * keccak-256 hash function. Different from SHA3-256. - * @param message - that would be hashed - */ -export const keccak_256 = gen(0x01, 136, 256 / 8); -export const keccak_384 = gen(0x01, 104, 384 / 8); -export const keccak_512 = gen(0x01, 72, 512 / 8); - -export type ShakeOpts = { dkLen?: number }; - -const genShake = (suffix: number, blockLen: number, outputLen: number) => - wrapXOFConstructorWithOpts, ShakeOpts>( - (opts: ShakeOpts = {}) => - new Keccak(blockLen, suffix, opts.dkLen === undefined ? outputLen : opts.dkLen, true) - ); - -export const shake128 = genShake(0x1f, 168, 128 / 8); -export const shake256 = genShake(0x1f, 136, 256 / 8); diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/src/sha512.ts b/node_modules/@noble/curves/node_modules/@noble/hashes/src/sha512.ts deleted file mode 100644 index fd6484ec..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/src/sha512.ts +++ /dev/null @@ -1,247 +0,0 @@ -import { SHA2 } from './_sha2.js'; -import u64 from './_u64.js'; -import { wrapConstructor } from './utils.js'; - -// Round contants (first 32 bits of the fractional parts of the cube roots of the first 80 primes 2..409): -// prettier-ignore -const [SHA512_Kh, SHA512_Kl] = u64.split([ - '0x428a2f98d728ae22', '0x7137449123ef65cd', '0xb5c0fbcfec4d3b2f', '0xe9b5dba58189dbbc', - '0x3956c25bf348b538', '0x59f111f1b605d019', '0x923f82a4af194f9b', '0xab1c5ed5da6d8118', - '0xd807aa98a3030242', '0x12835b0145706fbe', '0x243185be4ee4b28c', '0x550c7dc3d5ffb4e2', - '0x72be5d74f27b896f', '0x80deb1fe3b1696b1', '0x9bdc06a725c71235', '0xc19bf174cf692694', - '0xe49b69c19ef14ad2', '0xefbe4786384f25e3', '0x0fc19dc68b8cd5b5', '0x240ca1cc77ac9c65', - '0x2de92c6f592b0275', '0x4a7484aa6ea6e483', '0x5cb0a9dcbd41fbd4', '0x76f988da831153b5', - '0x983e5152ee66dfab', '0xa831c66d2db43210', '0xb00327c898fb213f', '0xbf597fc7beef0ee4', - '0xc6e00bf33da88fc2', '0xd5a79147930aa725', '0x06ca6351e003826f', '0x142929670a0e6e70', - '0x27b70a8546d22ffc', '0x2e1b21385c26c926', '0x4d2c6dfc5ac42aed', '0x53380d139d95b3df', - '0x650a73548baf63de', '0x766a0abb3c77b2a8', '0x81c2c92e47edaee6', '0x92722c851482353b', - '0xa2bfe8a14cf10364', '0xa81a664bbc423001', '0xc24b8b70d0f89791', '0xc76c51a30654be30', - '0xd192e819d6ef5218', '0xd69906245565a910', '0xf40e35855771202a', '0x106aa07032bbd1b8', - '0x19a4c116b8d2d0c8', '0x1e376c085141ab53', '0x2748774cdf8eeb99', '0x34b0bcb5e19b48a8', - '0x391c0cb3c5c95a63', '0x4ed8aa4ae3418acb', '0x5b9cca4f7763e373', '0x682e6ff3d6b2b8a3', - '0x748f82ee5defb2fc', '0x78a5636f43172f60', '0x84c87814a1f0ab72', '0x8cc702081a6439ec', - '0x90befffa23631e28', '0xa4506cebde82bde9', '0xbef9a3f7b2c67915', '0xc67178f2e372532b', - '0xca273eceea26619c', '0xd186b8c721c0c207', '0xeada7dd6cde0eb1e', '0xf57d4f7fee6ed178', - '0x06f067aa72176fba', '0x0a637dc5a2c898a6', '0x113f9804bef90dae', '0x1b710b35131c471b', - '0x28db77f523047d84', '0x32caab7b40c72493', '0x3c9ebe0a15c9bebc', '0x431d67c49c100d4c', - '0x4cc5d4becb3e42b6', '0x597f299cfc657e2a', '0x5fcb6fab3ad6faec', '0x6c44198c4a475817' -].map(n => BigInt(n))); - -// Temporary buffer, not used to store anything between runs -const SHA512_W_H = new Uint32Array(80); -const SHA512_W_L = new Uint32Array(80); - -export class SHA512 extends SHA2 { - // We cannot use array here since array allows indexing by variable which means optimizer/compiler cannot use registers. - // Also looks cleaner and easier to verify with spec. - // Initial state (first 32 bits of the fractional parts of the square roots of the first 8 primes 2..19): - // h -- high 32 bits, l -- low 32 bits - Ah = 0x6a09e667 | 0; - Al = 0xf3bcc908 | 0; - Bh = 0xbb67ae85 | 0; - Bl = 0x84caa73b | 0; - Ch = 0x3c6ef372 | 0; - Cl = 0xfe94f82b | 0; - Dh = 0xa54ff53a | 0; - Dl = 0x5f1d36f1 | 0; - Eh = 0x510e527f | 0; - El = 0xade682d1 | 0; - Fh = 0x9b05688c | 0; - Fl = 0x2b3e6c1f | 0; - Gh = 0x1f83d9ab | 0; - Gl = 0xfb41bd6b | 0; - Hh = 0x5be0cd19 | 0; - Hl = 0x137e2179 | 0; - - constructor() { - super(128, 64, 16, false); - } - // prettier-ignore - protected get(): [ - number, number, number, number, number, number, number, number, - number, number, number, number, number, number, number, number - ] { - const { Ah, Al, Bh, Bl, Ch, Cl, Dh, Dl, Eh, El, Fh, Fl, Gh, Gl, Hh, Hl } = this; - return [Ah, Al, Bh, Bl, Ch, Cl, Dh, Dl, Eh, El, Fh, Fl, Gh, Gl, Hh, Hl]; - } - // prettier-ignore - protected set( - Ah: number, Al: number, Bh: number, Bl: number, Ch: number, Cl: number, Dh: number, Dl: number, - Eh: number, El: number, Fh: number, Fl: number, Gh: number, Gl: number, Hh: number, Hl: number - ) { - this.Ah = Ah | 0; - this.Al = Al | 0; - this.Bh = Bh | 0; - this.Bl = Bl | 0; - this.Ch = Ch | 0; - this.Cl = Cl | 0; - this.Dh = Dh | 0; - this.Dl = Dl | 0; - this.Eh = Eh | 0; - this.El = El | 0; - this.Fh = Fh | 0; - this.Fl = Fl | 0; - this.Gh = Gh | 0; - this.Gl = Gl | 0; - this.Hh = Hh | 0; - this.Hl = Hl | 0; - } - protected process(view: DataView, offset: number) { - // Extend the first 16 words into the remaining 64 words w[16..79] of the message schedule array - for (let i = 0; i < 16; i++, offset += 4) { - SHA512_W_H[i] = view.getUint32(offset); - SHA512_W_L[i] = view.getUint32((offset += 4)); - } - for (let i = 16; i < 80; i++) { - // s0 := (w[i-15] rightrotate 1) xor (w[i-15] rightrotate 8) xor (w[i-15] rightshift 7) - const W15h = SHA512_W_H[i - 15] | 0; - const W15l = SHA512_W_L[i - 15] | 0; - const s0h = u64.rotrSH(W15h, W15l, 1) ^ u64.rotrSH(W15h, W15l, 8) ^ u64.shrSH(W15h, W15l, 7); - const s0l = u64.rotrSL(W15h, W15l, 1) ^ u64.rotrSL(W15h, W15l, 8) ^ u64.shrSL(W15h, W15l, 7); - // s1 := (w[i-2] rightrotate 19) xor (w[i-2] rightrotate 61) xor (w[i-2] rightshift 6) - const W2h = SHA512_W_H[i - 2] | 0; - const W2l = SHA512_W_L[i - 2] | 0; - const s1h = u64.rotrSH(W2h, W2l, 19) ^ u64.rotrBH(W2h, W2l, 61) ^ u64.shrSH(W2h, W2l, 6); - const s1l = u64.rotrSL(W2h, W2l, 19) ^ u64.rotrBL(W2h, W2l, 61) ^ u64.shrSL(W2h, W2l, 6); - // SHA256_W[i] = s0 + s1 + SHA256_W[i - 7] + SHA256_W[i - 16]; - const SUMl = u64.add4L(s0l, s1l, SHA512_W_L[i - 7], SHA512_W_L[i - 16]); - const SUMh = u64.add4H(SUMl, s0h, s1h, SHA512_W_H[i - 7], SHA512_W_H[i - 16]); - SHA512_W_H[i] = SUMh | 0; - SHA512_W_L[i] = SUMl | 0; - } - let { Ah, Al, Bh, Bl, Ch, Cl, Dh, Dl, Eh, El, Fh, Fl, Gh, Gl, Hh, Hl } = this; - // Compression function main loop, 80 rounds - for (let i = 0; i < 80; i++) { - // S1 := (e rightrotate 14) xor (e rightrotate 18) xor (e rightrotate 41) - const sigma1h = u64.rotrSH(Eh, El, 14) ^ u64.rotrSH(Eh, El, 18) ^ u64.rotrBH(Eh, El, 41); - const sigma1l = u64.rotrSL(Eh, El, 14) ^ u64.rotrSL(Eh, El, 18) ^ u64.rotrBL(Eh, El, 41); - //const T1 = (H + sigma1 + Chi(E, F, G) + SHA256_K[i] + SHA256_W[i]) | 0; - const CHIh = (Eh & Fh) ^ (~Eh & Gh); - const CHIl = (El & Fl) ^ (~El & Gl); - // T1 = H + sigma1 + Chi(E, F, G) + SHA512_K[i] + SHA512_W[i] - // prettier-ignore - const T1ll = u64.add5L(Hl, sigma1l, CHIl, SHA512_Kl[i], SHA512_W_L[i]); - const T1h = u64.add5H(T1ll, Hh, sigma1h, CHIh, SHA512_Kh[i], SHA512_W_H[i]); - const T1l = T1ll | 0; - // S0 := (a rightrotate 28) xor (a rightrotate 34) xor (a rightrotate 39) - const sigma0h = u64.rotrSH(Ah, Al, 28) ^ u64.rotrBH(Ah, Al, 34) ^ u64.rotrBH(Ah, Al, 39); - const sigma0l = u64.rotrSL(Ah, Al, 28) ^ u64.rotrBL(Ah, Al, 34) ^ u64.rotrBL(Ah, Al, 39); - const MAJh = (Ah & Bh) ^ (Ah & Ch) ^ (Bh & Ch); - const MAJl = (Al & Bl) ^ (Al & Cl) ^ (Bl & Cl); - Hh = Gh | 0; - Hl = Gl | 0; - Gh = Fh | 0; - Gl = Fl | 0; - Fh = Eh | 0; - Fl = El | 0; - ({ h: Eh, l: El } = u64.add(Dh | 0, Dl | 0, T1h | 0, T1l | 0)); - Dh = Ch | 0; - Dl = Cl | 0; - Ch = Bh | 0; - Cl = Bl | 0; - Bh = Ah | 0; - Bl = Al | 0; - const All = u64.add3L(T1l, sigma0l, MAJl); - Ah = u64.add3H(All, T1h, sigma0h, MAJh); - Al = All | 0; - } - // Add the compressed chunk to the current hash value - ({ h: Ah, l: Al } = u64.add(this.Ah | 0, this.Al | 0, Ah | 0, Al | 0)); - ({ h: Bh, l: Bl } = u64.add(this.Bh | 0, this.Bl | 0, Bh | 0, Bl | 0)); - ({ h: Ch, l: Cl } = u64.add(this.Ch | 0, this.Cl | 0, Ch | 0, Cl | 0)); - ({ h: Dh, l: Dl } = u64.add(this.Dh | 0, this.Dl | 0, Dh | 0, Dl | 0)); - ({ h: Eh, l: El } = u64.add(this.Eh | 0, this.El | 0, Eh | 0, El | 0)); - ({ h: Fh, l: Fl } = u64.add(this.Fh | 0, this.Fl | 0, Fh | 0, Fl | 0)); - ({ h: Gh, l: Gl } = u64.add(this.Gh | 0, this.Gl | 0, Gh | 0, Gl | 0)); - ({ h: Hh, l: Hl } = u64.add(this.Hh | 0, this.Hl | 0, Hh | 0, Hl | 0)); - this.set(Ah, Al, Bh, Bl, Ch, Cl, Dh, Dl, Eh, El, Fh, Fl, Gh, Gl, Hh, Hl); - } - protected roundClean() { - SHA512_W_H.fill(0); - SHA512_W_L.fill(0); - } - destroy() { - this.buffer.fill(0); - this.set(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); - } -} - -class SHA512_224 extends SHA512 { - // h -- high 32 bits, l -- low 32 bits - Ah = 0x8c3d37c8 | 0; - Al = 0x19544da2 | 0; - Bh = 0x73e19966 | 0; - Bl = 0x89dcd4d6 | 0; - Ch = 0x1dfab7ae | 0; - Cl = 0x32ff9c82 | 0; - Dh = 0x679dd514 | 0; - Dl = 0x582f9fcf | 0; - Eh = 0x0f6d2b69 | 0; - El = 0x7bd44da8 | 0; - Fh = 0x77e36f73 | 0; - Fl = 0x04c48942 | 0; - Gh = 0x3f9d85a8 | 0; - Gl = 0x6a1d36c8 | 0; - Hh = 0x1112e6ad | 0; - Hl = 0x91d692a1 | 0; - - constructor() { - super(); - this.outputLen = 28; - } -} - -class SHA512_256 extends SHA512 { - // h -- high 32 bits, l -- low 32 bits - Ah = 0x22312194 | 0; - Al = 0xfc2bf72c | 0; - Bh = 0x9f555fa3 | 0; - Bl = 0xc84c64c2 | 0; - Ch = 0x2393b86b | 0; - Cl = 0x6f53b151 | 0; - Dh = 0x96387719 | 0; - Dl = 0x5940eabd | 0; - Eh = 0x96283ee2 | 0; - El = 0xa88effe3 | 0; - Fh = 0xbe5e1e25 | 0; - Fl = 0x53863992 | 0; - Gh = 0x2b0199fc | 0; - Gl = 0x2c85b8aa | 0; - Hh = 0x0eb72ddc | 0; - Hl = 0x81c52ca2 | 0; - - constructor() { - super(); - this.outputLen = 32; - } -} - -class SHA384 extends SHA512 { - // h -- high 32 bits, l -- low 32 bits - Ah = 0xcbbb9d5d | 0; - Al = 0xc1059ed8 | 0; - Bh = 0x629a292a | 0; - Bl = 0x367cd507 | 0; - Ch = 0x9159015a | 0; - Cl = 0x3070dd17 | 0; - Dh = 0x152fecd8 | 0; - Dl = 0xf70e5939 | 0; - Eh = 0x67332667 | 0; - El = 0xffc00b31 | 0; - Fh = 0x8eb44a87 | 0; - Fl = 0x68581511 | 0; - Gh = 0xdb0c2e0d | 0; - Gl = 0x64f98fa7 | 0; - Hh = 0x47b5481d | 0; - Hl = 0xbefa4fa4 | 0; - - constructor() { - super(); - this.outputLen = 48; - } -} - -export const sha512 = wrapConstructor(() => new SHA512()); -export const sha512_224 = wrapConstructor(() => new SHA512_224()); -export const sha512_256 = wrapConstructor(() => new SHA512_256()); -export const sha384 = wrapConstructor(() => new SHA384()); diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/src/utils.ts b/node_modules/@noble/curves/node_modules/@noble/hashes/src/utils.ts deleted file mode 100644 index ce0d84d5..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/src/utils.ts +++ /dev/null @@ -1,216 +0,0 @@ -/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */ - -// We use WebCrypto aka globalThis.crypto, which exists in browsers and node.js 16+. -// node.js versions earlier than v19 don't declare it in global scope. -// For node.js, package.json#exports field mapping rewrites import -// from `crypto` to `cryptoNode`, which imports native module. -// Makes the utils un-importable in browsers without a bundler. -// Once node.js 18 is deprecated, we can just drop the import. -import { crypto } from '@noble/hashes/crypto'; - -// prettier-ignore -export type TypedArray = Int8Array | Uint8ClampedArray | Uint8Array | - Uint16Array | Int16Array | Uint32Array | Int32Array; - -const u8a = (a: any): a is Uint8Array => a instanceof Uint8Array; -// Cast array to different type -export const u8 = (arr: TypedArray) => new Uint8Array(arr.buffer, arr.byteOffset, arr.byteLength); -export const u32 = (arr: TypedArray) => - new Uint32Array(arr.buffer, arr.byteOffset, Math.floor(arr.byteLength / 4)); - -// Cast array to view -export const createView = (arr: TypedArray) => - new DataView(arr.buffer, arr.byteOffset, arr.byteLength); - -// The rotate right (circular right shift) operation for uint32 -export const rotr = (word: number, shift: number) => (word << (32 - shift)) | (word >>> shift); - -// big-endian hardware is rare. Just in case someone still decides to run hashes: -// early-throw an error because we don't support BE yet. -export const isLE = new Uint8Array(new Uint32Array([0x11223344]).buffer)[0] === 0x44; -if (!isLE) throw new Error('Non little-endian hardware is not supported'); - -const hexes = Array.from({ length: 256 }, (v, i) => i.toString(16).padStart(2, '0')); -/** - * @example bytesToHex(Uint8Array.from([0xca, 0xfe, 0x01, 0x23])) // 'cafe0123' - */ -export function bytesToHex(bytes: Uint8Array): string { - if (!u8a(bytes)) throw new Error('Uint8Array expected'); - // pre-caching improves the speed 6x - let hex = ''; - for (let i = 0; i < bytes.length; i++) { - hex += hexes[bytes[i]]; - } - return hex; -} - -/** - * @example hexToBytes('cafe0123') // Uint8Array.from([0xca, 0xfe, 0x01, 0x23]) - */ -export function hexToBytes(hex: string): Uint8Array { - if (typeof hex !== 'string') throw new Error('hex string expected, got ' + typeof hex); - const len = hex.length; - if (len % 2) throw new Error('padded hex string expected, got unpadded hex of length ' + len); - const array = new Uint8Array(len / 2); - for (let i = 0; i < array.length; i++) { - const j = i * 2; - const hexByte = hex.slice(j, j + 2); - const byte = Number.parseInt(hexByte, 16); - if (Number.isNaN(byte) || byte < 0) throw new Error('Invalid byte sequence'); - array[i] = byte; - } - return array; -} - -// There is no setImmediate in browser and setTimeout is slow. -// call of async fn will return Promise, which will be fullfiled only on -// next scheduler queue processing step and this is exactly what we need. -export const nextTick = async () => {}; - -// Returns control to thread each 'tick' ms to avoid blocking -export async function asyncLoop(iters: number, tick: number, cb: (i: number) => void) { - let ts = Date.now(); - for (let i = 0; i < iters; i++) { - cb(i); - // Date.now() is not monotonic, so in case if clock goes backwards we return return control too - const diff = Date.now() - ts; - if (diff >= 0 && diff < tick) continue; - await nextTick(); - ts += diff; - } -} - -// Global symbols in both browsers and Node.js since v11 -// See https://github.com/microsoft/TypeScript/issues/31535 -declare const TextEncoder: any; - -/** - * @example utf8ToBytes('abc') // new Uint8Array([97, 98, 99]) - */ -export function utf8ToBytes(str: string): Uint8Array { - if (typeof str !== 'string') throw new Error(`utf8ToBytes expected string, got ${typeof str}`); - return new Uint8Array(new TextEncoder().encode(str)); // https://bugzil.la/1681809 -} - -export type Input = Uint8Array | string; -/** - * Normalizes (non-hex) string or Uint8Array to Uint8Array. - * Warning: when Uint8Array is passed, it would NOT get copied. - * Keep in mind for future mutable operations. - */ -export function toBytes(data: Input): Uint8Array { - if (typeof data === 'string') data = utf8ToBytes(data); - if (!u8a(data)) throw new Error(`expected Uint8Array, got ${typeof data}`); - return data; -} - -/** - * Copies several Uint8Arrays into one. - */ -export function concatBytes(...arrays: Uint8Array[]): Uint8Array { - const r = new Uint8Array(arrays.reduce((sum, a) => sum + a.length, 0)); - let pad = 0; // walk through each item, ensure they have proper type - arrays.forEach((a) => { - if (!u8a(a)) throw new Error('Uint8Array expected'); - r.set(a, pad); - pad += a.length; - }); - return r; -} - -// For runtime check if class implements interface -export abstract class Hash> { - abstract blockLen: number; // Bytes per block - abstract outputLen: number; // Bytes in output - abstract update(buf: Input): this; - // Writes digest into buf - abstract digestInto(buf: Uint8Array): void; - abstract digest(): Uint8Array; - /** - * Resets internal state. Makes Hash instance unusable. - * Reset is impossible for keyed hashes if key is consumed into state. If digest is not consumed - * by user, they will need to manually call `destroy()` when zeroing is necessary. - */ - abstract destroy(): void; - /** - * Clones hash instance. Unsafe: doesn't check whether `to` is valid. Can be used as `clone()` - * when no options are passed. - * Reasons to use `_cloneInto` instead of clone: 1) performance 2) reuse instance => all internal - * buffers are overwritten => causes buffer overwrite which is used for digest in some cases. - * There are no guarantees for clean-up because it's impossible in JS. - */ - abstract _cloneInto(to?: T): T; - // Safe version that clones internal state - clone(): T { - return this._cloneInto(); - } -} - -/** - * XOF: streaming API to read digest in chunks. - * Same as 'squeeze' in keccak/k12 and 'seek' in blake3, but more generic name. - * When hash used in XOF mode it is up to user to call '.destroy' afterwards, since we cannot - * destroy state, next call can require more bytes. - */ -export type HashXOF> = Hash & { - xof(bytes: number): Uint8Array; // Read 'bytes' bytes from digest stream - xofInto(buf: Uint8Array): Uint8Array; // read buf.length bytes from digest stream into buf -}; - -// Check if object doens't have custom constructor (like Uint8Array/Array) -const isPlainObject = (obj: any) => - Object.prototype.toString.call(obj) === '[object Object]' && obj.constructor === Object; - -type EmptyObj = {}; -export function checkOpts( - defaults: T1, - opts?: T2 -): T1 & T2 { - if (opts !== undefined && (typeof opts !== 'object' || !isPlainObject(opts))) - throw new Error('Options should be object or undefined'); - const merged = Object.assign(defaults, opts); - return merged as T1 & T2; -} - -export type CHash = ReturnType; - -export function wrapConstructor>(hashCons: () => Hash) { - const hashC = (msg: Input): Uint8Array => hashCons().update(toBytes(msg)).digest(); - const tmp = hashCons(); - hashC.outputLen = tmp.outputLen; - hashC.blockLen = tmp.blockLen; - hashC.create = () => hashCons(); - return hashC; -} - -export function wrapConstructorWithOpts, T extends Object>( - hashCons: (opts?: T) => Hash -) { - const hashC = (msg: Input, opts?: T): Uint8Array => hashCons(opts).update(toBytes(msg)).digest(); - const tmp = hashCons({} as T); - hashC.outputLen = tmp.outputLen; - hashC.blockLen = tmp.blockLen; - hashC.create = (opts: T) => hashCons(opts); - return hashC; -} - -export function wrapXOFConstructorWithOpts, T extends Object>( - hashCons: (opts?: T) => HashXOF -) { - const hashC = (msg: Input, opts?: T): Uint8Array => hashCons(opts).update(toBytes(msg)).digest(); - const tmp = hashCons({} as T); - hashC.outputLen = tmp.outputLen; - hashC.blockLen = tmp.blockLen; - hashC.create = (opts: T) => hashCons(opts); - return hashC; -} - -/** - * Secure PRNG. Uses `crypto.getRandomValues`, which defers to OS. - */ -export function randomBytes(bytesLength = 32): Uint8Array { - if (crypto && typeof crypto.getRandomValues === 'function') { - return crypto.getRandomValues(new Uint8Array(bytesLength)); - } - throw new Error('crypto.getRandomValues must be defined'); -} diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/utils.d.ts b/node_modules/@noble/curves/node_modules/@noble/hashes/utils.d.ts deleted file mode 100644 index a0017e4b..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/utils.d.ts +++ /dev/null @@ -1,90 +0,0 @@ -/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */ -export type TypedArray = Int8Array | Uint8ClampedArray | Uint8Array | Uint16Array | Int16Array | Uint32Array | Int32Array; -export declare const u8: (arr: TypedArray) => Uint8Array; -export declare const u32: (arr: TypedArray) => Uint32Array; -export declare const createView: (arr: TypedArray) => DataView; -export declare const rotr: (word: number, shift: number) => number; -export declare const isLE: boolean; -/** - * @example bytesToHex(Uint8Array.from([0xca, 0xfe, 0x01, 0x23])) // 'cafe0123' - */ -export declare function bytesToHex(bytes: Uint8Array): string; -/** - * @example hexToBytes('cafe0123') // Uint8Array.from([0xca, 0xfe, 0x01, 0x23]) - */ -export declare function hexToBytes(hex: string): Uint8Array; -export declare const nextTick: () => Promise; -export declare function asyncLoop(iters: number, tick: number, cb: (i: number) => void): Promise; -/** - * @example utf8ToBytes('abc') // new Uint8Array([97, 98, 99]) - */ -export declare function utf8ToBytes(str: string): Uint8Array; -export type Input = Uint8Array | string; -/** - * Normalizes (non-hex) string or Uint8Array to Uint8Array. - * Warning: when Uint8Array is passed, it would NOT get copied. - * Keep in mind for future mutable operations. - */ -export declare function toBytes(data: Input): Uint8Array; -/** - * Copies several Uint8Arrays into one. - */ -export declare function concatBytes(...arrays: Uint8Array[]): Uint8Array; -export declare abstract class Hash> { - abstract blockLen: number; - abstract outputLen: number; - abstract update(buf: Input): this; - abstract digestInto(buf: Uint8Array): void; - abstract digest(): Uint8Array; - /** - * Resets internal state. Makes Hash instance unusable. - * Reset is impossible for keyed hashes if key is consumed into state. If digest is not consumed - * by user, they will need to manually call `destroy()` when zeroing is necessary. - */ - abstract destroy(): void; - /** - * Clones hash instance. Unsafe: doesn't check whether `to` is valid. Can be used as `clone()` - * when no options are passed. - * Reasons to use `_cloneInto` instead of clone: 1) performance 2) reuse instance => all internal - * buffers are overwritten => causes buffer overwrite which is used for digest in some cases. - * There are no guarantees for clean-up because it's impossible in JS. - */ - abstract _cloneInto(to?: T): T; - clone(): T; -} -/** - * XOF: streaming API to read digest in chunks. - * Same as 'squeeze' in keccak/k12 and 'seek' in blake3, but more generic name. - * When hash used in XOF mode it is up to user to call '.destroy' afterwards, since we cannot - * destroy state, next call can require more bytes. - */ -export type HashXOF> = Hash & { - xof(bytes: number): Uint8Array; - xofInto(buf: Uint8Array): Uint8Array; -}; -type EmptyObj = {}; -export declare function checkOpts(defaults: T1, opts?: T2): T1 & T2; -export type CHash = ReturnType; -export declare function wrapConstructor>(hashCons: () => Hash): { - (msg: Input): Uint8Array; - outputLen: number; - blockLen: number; - create(): Hash; -}; -export declare function wrapConstructorWithOpts, T extends Object>(hashCons: (opts?: T) => Hash): { - (msg: Input, opts?: T): Uint8Array; - outputLen: number; - blockLen: number; - create(opts: T): Hash; -}; -export declare function wrapXOFConstructorWithOpts, T extends Object>(hashCons: (opts?: T) => HashXOF): { - (msg: Input, opts?: T): Uint8Array; - outputLen: number; - blockLen: number; - create(opts: T): HashXOF; -}; -/** - * Secure PRNG. Uses `crypto.getRandomValues`, which defers to OS. - */ -export declare function randomBytes(bytesLength?: number): Uint8Array; -export {}; diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/utils.js b/node_modules/@noble/curves/node_modules/@noble/hashes/utils.js deleted file mode 100644 index ffd37be9..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/utils.js +++ /dev/null @@ -1,175 +0,0 @@ -"use strict"; -/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.randomBytes = exports.wrapXOFConstructorWithOpts = exports.wrapConstructorWithOpts = exports.wrapConstructor = exports.checkOpts = exports.Hash = exports.concatBytes = exports.toBytes = exports.utf8ToBytes = exports.asyncLoop = exports.nextTick = exports.hexToBytes = exports.bytesToHex = exports.isLE = exports.rotr = exports.createView = exports.u32 = exports.u8 = void 0; -// We use WebCrypto aka globalThis.crypto, which exists in browsers and node.js 16+. -// node.js versions earlier than v19 don't declare it in global scope. -// For node.js, package.json#exports field mapping rewrites import -// from `crypto` to `cryptoNode`, which imports native module. -// Makes the utils un-importable in browsers without a bundler. -// Once node.js 18 is deprecated, we can just drop the import. -const crypto_1 = require("@noble/hashes/crypto"); -const u8a = (a) => a instanceof Uint8Array; -// Cast array to different type -const u8 = (arr) => new Uint8Array(arr.buffer, arr.byteOffset, arr.byteLength); -exports.u8 = u8; -const u32 = (arr) => new Uint32Array(arr.buffer, arr.byteOffset, Math.floor(arr.byteLength / 4)); -exports.u32 = u32; -// Cast array to view -const createView = (arr) => new DataView(arr.buffer, arr.byteOffset, arr.byteLength); -exports.createView = createView; -// The rotate right (circular right shift) operation for uint32 -const rotr = (word, shift) => (word << (32 - shift)) | (word >>> shift); -exports.rotr = rotr; -// big-endian hardware is rare. Just in case someone still decides to run hashes: -// early-throw an error because we don't support BE yet. -exports.isLE = new Uint8Array(new Uint32Array([0x11223344]).buffer)[0] === 0x44; -if (!exports.isLE) - throw new Error('Non little-endian hardware is not supported'); -const hexes = Array.from({ length: 256 }, (v, i) => i.toString(16).padStart(2, '0')); -/** - * @example bytesToHex(Uint8Array.from([0xca, 0xfe, 0x01, 0x23])) // 'cafe0123' - */ -function bytesToHex(bytes) { - if (!u8a(bytes)) - throw new Error('Uint8Array expected'); - // pre-caching improves the speed 6x - let hex = ''; - for (let i = 0; i < bytes.length; i++) { - hex += hexes[bytes[i]]; - } - return hex; -} -exports.bytesToHex = bytesToHex; -/** - * @example hexToBytes('cafe0123') // Uint8Array.from([0xca, 0xfe, 0x01, 0x23]) - */ -function hexToBytes(hex) { - if (typeof hex !== 'string') - throw new Error('hex string expected, got ' + typeof hex); - const len = hex.length; - if (len % 2) - throw new Error('padded hex string expected, got unpadded hex of length ' + len); - const array = new Uint8Array(len / 2); - for (let i = 0; i < array.length; i++) { - const j = i * 2; - const hexByte = hex.slice(j, j + 2); - const byte = Number.parseInt(hexByte, 16); - if (Number.isNaN(byte) || byte < 0) - throw new Error('Invalid byte sequence'); - array[i] = byte; - } - return array; -} -exports.hexToBytes = hexToBytes; -// There is no setImmediate in browser and setTimeout is slow. -// call of async fn will return Promise, which will be fullfiled only on -// next scheduler queue processing step and this is exactly what we need. -const nextTick = async () => { }; -exports.nextTick = nextTick; -// Returns control to thread each 'tick' ms to avoid blocking -async function asyncLoop(iters, tick, cb) { - let ts = Date.now(); - for (let i = 0; i < iters; i++) { - cb(i); - // Date.now() is not monotonic, so in case if clock goes backwards we return return control too - const diff = Date.now() - ts; - if (diff >= 0 && diff < tick) - continue; - await (0, exports.nextTick)(); - ts += diff; - } -} -exports.asyncLoop = asyncLoop; -/** - * @example utf8ToBytes('abc') // new Uint8Array([97, 98, 99]) - */ -function utf8ToBytes(str) { - if (typeof str !== 'string') - throw new Error(`utf8ToBytes expected string, got ${typeof str}`); - return new Uint8Array(new TextEncoder().encode(str)); // https://bugzil.la/1681809 -} -exports.utf8ToBytes = utf8ToBytes; -/** - * Normalizes (non-hex) string or Uint8Array to Uint8Array. - * Warning: when Uint8Array is passed, it would NOT get copied. - * Keep in mind for future mutable operations. - */ -function toBytes(data) { - if (typeof data === 'string') - data = utf8ToBytes(data); - if (!u8a(data)) - throw new Error(`expected Uint8Array, got ${typeof data}`); - return data; -} -exports.toBytes = toBytes; -/** - * Copies several Uint8Arrays into one. - */ -function concatBytes(...arrays) { - const r = new Uint8Array(arrays.reduce((sum, a) => sum + a.length, 0)); - let pad = 0; // walk through each item, ensure they have proper type - arrays.forEach((a) => { - if (!u8a(a)) - throw new Error('Uint8Array expected'); - r.set(a, pad); - pad += a.length; - }); - return r; -} -exports.concatBytes = concatBytes; -// For runtime check if class implements interface -class Hash { - // Safe version that clones internal state - clone() { - return this._cloneInto(); - } -} -exports.Hash = Hash; -// Check if object doens't have custom constructor (like Uint8Array/Array) -const isPlainObject = (obj) => Object.prototype.toString.call(obj) === '[object Object]' && obj.constructor === Object; -function checkOpts(defaults, opts) { - if (opts !== undefined && (typeof opts !== 'object' || !isPlainObject(opts))) - throw new Error('Options should be object or undefined'); - const merged = Object.assign(defaults, opts); - return merged; -} -exports.checkOpts = checkOpts; -function wrapConstructor(hashCons) { - const hashC = (msg) => hashCons().update(toBytes(msg)).digest(); - const tmp = hashCons(); - hashC.outputLen = tmp.outputLen; - hashC.blockLen = tmp.blockLen; - hashC.create = () => hashCons(); - return hashC; -} -exports.wrapConstructor = wrapConstructor; -function wrapConstructorWithOpts(hashCons) { - const hashC = (msg, opts) => hashCons(opts).update(toBytes(msg)).digest(); - const tmp = hashCons({}); - hashC.outputLen = tmp.outputLen; - hashC.blockLen = tmp.blockLen; - hashC.create = (opts) => hashCons(opts); - return hashC; -} -exports.wrapConstructorWithOpts = wrapConstructorWithOpts; -function wrapXOFConstructorWithOpts(hashCons) { - const hashC = (msg, opts) => hashCons(opts).update(toBytes(msg)).digest(); - const tmp = hashCons({}); - hashC.outputLen = tmp.outputLen; - hashC.blockLen = tmp.blockLen; - hashC.create = (opts) => hashCons(opts); - return hashC; -} -exports.wrapXOFConstructorWithOpts = wrapXOFConstructorWithOpts; -/** - * Secure PRNG. Uses `crypto.getRandomValues`, which defers to OS. - */ -function randomBytes(bytesLength = 32) { - if (crypto_1.crypto && typeof crypto_1.crypto.getRandomValues === 'function') { - return crypto_1.crypto.getRandomValues(new Uint8Array(bytesLength)); - } - throw new Error('crypto.getRandomValues must be defined'); -} -exports.randomBytes = randomBytes; -//# sourceMappingURL=utils.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/node_modules/@noble/hashes/utils.js.map b/node_modules/@noble/curves/node_modules/@noble/hashes/utils.js.map deleted file mode 100644 index b789568a..00000000 --- a/node_modules/@noble/curves/node_modules/@noble/hashes/utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"utils.js","sourceRoot":"","sources":["src/utils.ts"],"names":[],"mappings":";AAAA,sEAAsE;;;AAEtE,oFAAoF;AACpF,sEAAsE;AACtE,kEAAkE;AAClE,8DAA8D;AAC9D,+DAA+D;AAC/D,8DAA8D;AAC9D,iDAA8C;AAM9C,MAAM,GAAG,GAAG,CAAC,CAAM,EAAmB,EAAE,CAAC,CAAC,YAAY,UAAU,CAAC;AACjE,+BAA+B;AACxB,MAAM,EAAE,GAAG,CAAC,GAAe,EAAE,EAAE,CAAC,IAAI,UAAU,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,UAAU,EAAE,GAAG,CAAC,UAAU,CAAC,CAAC;AAArF,QAAA,EAAE,MAAmF;AAC3F,MAAM,GAAG,GAAG,CAAC,GAAe,EAAE,EAAE,CACrC,IAAI,WAAW,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,UAAU,EAAE,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,UAAU,GAAG,CAAC,CAAC,CAAC,CAAC;AADjE,QAAA,GAAG,OAC8D;AAE9E,qBAAqB;AACd,MAAM,UAAU,GAAG,CAAC,GAAe,EAAE,EAAE,CAC5C,IAAI,QAAQ,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,UAAU,EAAE,GAAG,CAAC,UAAU,CAAC,CAAC;AAD9C,QAAA,UAAU,cACoC;AAE3D,+DAA+D;AACxD,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_modules/@noble/curves/p256.d.ts b/node_modules/@noble/curves/p256.d.ts deleted file mode 100644 index cf8c0d6e..00000000 --- a/node_modules/@noble/curves/p256.d.ts +++ /dev/null @@ -1,105 +0,0 @@ -export declare const p256: Readonly<{ - create: (hash: import("./abstract/utils.js").CHash) => import("./abstract/weierstrass.js").CurveFn; - CURVE: Readonly<{ - readonly nBitLength: number; - readonly nByteLength: number; - readonly Fp: import("./abstract/modular.js").IField; - readonly n: bigint; - readonly h: bigint; - readonly hEff?: bigint | undefined; - readonly Gx: bigint; - readonly Gy: bigint; - readonly allowInfinityPoint?: boolean | undefined; - readonly a: bigint; - readonly b: bigint; - readonly allowedPrivateKeyLengths?: readonly number[] | undefined; - readonly wrapPrivateKey?: boolean | undefined; - readonly endo?: { - beta: bigint; - splitScalar: (k: bigint) => { - k1neg: boolean; - k1: bigint; - k2neg: boolean; - k2: bigint; - }; - } | undefined; - readonly isTorsionFree?: ((c: import("./abstract/weierstrass.js").ProjConstructor, point: import("./abstract/weierstrass.js").ProjPointType) => boolean) | undefined; - readonly clearCofactor?: ((c: import("./abstract/weierstrass.js").ProjConstructor, point: import("./abstract/weierstrass.js").ProjPointType) => import("./abstract/weierstrass.js").ProjPointType) | undefined; - readonly hash: import("./abstract/utils.js").CHash; - readonly hmac: (key: Uint8Array, ...messages: Uint8Array[]) => Uint8Array; - readonly randomBytes: (bytesLength?: number | undefined) => Uint8Array; - lowS: boolean; - readonly bits2int?: ((bytes: Uint8Array) => bigint) | undefined; - readonly bits2int_modN?: ((bytes: Uint8Array) => bigint) | undefined; - readonly p: bigint; - }>; - getPublicKey: (privateKey: import("./abstract/utils.js").PrivKey, isCompressed?: boolean | undefined) => Uint8Array; - getSharedSecret: (privateA: import("./abstract/utils.js").PrivKey, publicB: import("./abstract/utils.js").Hex, isCompressed?: boolean | undefined) => Uint8Array; - sign: (msgHash: import("./abstract/utils.js").Hex, privKey: import("./abstract/utils.js").PrivKey, opts?: import("./abstract/weierstrass.js").SignOpts | undefined) => import("./abstract/weierstrass.js").RecoveredSignatureType; - verify: (signature: import("./abstract/utils.js").Hex | { - r: bigint; - s: bigint; - }, msgHash: import("./abstract/utils.js").Hex, publicKey: import("./abstract/utils.js").Hex, opts?: import("./abstract/weierstrass.js").VerOpts | undefined) => boolean; - ProjectivePoint: import("./abstract/weierstrass.js").ProjConstructor; - Signature: import("./abstract/weierstrass.js").SignatureConstructor; - utils: { - normPrivateKeyToScalar: (key: import("./abstract/utils.js").PrivKey) => bigint; - isValidPrivateKey(privateKey: import("./abstract/utils.js").PrivKey): boolean; - randomPrivateKey: () => Uint8Array; - precompute: (windowSize?: number | undefined, point?: import("./abstract/weierstrass.js").ProjPointType | undefined) => import("./abstract/weierstrass.js").ProjPointType; - }; -}>; -export declare const secp256r1: Readonly<{ - create: (hash: import("./abstract/utils.js").CHash) => import("./abstract/weierstrass.js").CurveFn; - CURVE: Readonly<{ - readonly nBitLength: number; - readonly nByteLength: number; - readonly Fp: import("./abstract/modular.js").IField; - readonly n: bigint; - readonly h: bigint; - readonly hEff?: bigint | undefined; - readonly Gx: bigint; - readonly Gy: bigint; - readonly allowInfinityPoint?: boolean | undefined; - readonly a: bigint; - readonly b: bigint; - readonly allowedPrivateKeyLengths?: readonly number[] | undefined; - readonly wrapPrivateKey?: boolean | undefined; - readonly endo?: { - beta: bigint; - splitScalar: (k: bigint) => { - k1neg: boolean; - k1: bigint; - k2neg: boolean; - k2: bigint; - }; - } | undefined; - readonly isTorsionFree?: ((c: import("./abstract/weierstrass.js").ProjConstructor, point: import("./abstract/weierstrass.js").ProjPointType) => boolean) | undefined; - readonly clearCofactor?: ((c: import("./abstract/weierstrass.js").ProjConstructor, point: import("./abstract/weierstrass.js").ProjPointType) => import("./abstract/weierstrass.js").ProjPointType) | undefined; - readonly hash: import("./abstract/utils.js").CHash; - readonly hmac: (key: Uint8Array, ...messages: Uint8Array[]) => Uint8Array; - readonly randomBytes: (bytesLength?: number | undefined) => Uint8Array; - lowS: boolean; - readonly bits2int?: ((bytes: Uint8Array) => bigint) | undefined; - readonly bits2int_modN?: ((bytes: Uint8Array) => bigint) | undefined; - readonly p: bigint; - }>; - getPublicKey: (privateKey: import("./abstract/utils.js").PrivKey, isCompressed?: boolean | undefined) => Uint8Array; - getSharedSecret: (privateA: import("./abstract/utils.js").PrivKey, publicB: import("./abstract/utils.js").Hex, isCompressed?: boolean | undefined) => Uint8Array; - sign: (msgHash: import("./abstract/utils.js").Hex, privKey: import("./abstract/utils.js").PrivKey, opts?: import("./abstract/weierstrass.js").SignOpts | undefined) => import("./abstract/weierstrass.js").RecoveredSignatureType; - verify: (signature: import("./abstract/utils.js").Hex | { - r: bigint; - s: bigint; - }, msgHash: import("./abstract/utils.js").Hex, publicKey: import("./abstract/utils.js").Hex, opts?: import("./abstract/weierstrass.js").VerOpts | undefined) => boolean; - ProjectivePoint: import("./abstract/weierstrass.js").ProjConstructor; - Signature: import("./abstract/weierstrass.js").SignatureConstructor; - utils: { - normPrivateKeyToScalar: (key: import("./abstract/utils.js").PrivKey) => bigint; - isValidPrivateKey(privateKey: import("./abstract/utils.js").PrivKey): boolean; - randomPrivateKey: () => Uint8Array; - precompute: (windowSize?: number | undefined, point?: import("./abstract/weierstrass.js").ProjPointType | undefined) => import("./abstract/weierstrass.js").ProjPointType; - }; -}>; -export declare const hashToCurve: (msg: Uint8Array, options?: import("./abstract/hash-to-curve.js").htfBasicOpts | undefined) => import("./abstract/hash-to-curve.js").H2CPoint; -export declare const encodeToCurve: (msg: Uint8Array, options?: import("./abstract/hash-to-curve.js").htfBasicOpts | undefined) => import("./abstract/hash-to-curve.js").H2CPoint; -//# sourceMappingURL=p256.d.ts.map \ No newline at end of file diff --git a/node_modules/@noble/curves/p256.d.ts.map b/node_modules/@noble/curves/p256.d.ts.map deleted file mode 100644 index d16f8128..00000000 --- a/node_modules/@noble/curves/p256.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"p256.d.ts","sourceRoot":"","sources":["src/p256.ts"],"names":[],"mappings":"AAeA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWE,CAAC;AACpB,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAO,CAAC;AAmB9B,eAAO,MAAM,WAAW,uJAA4C,CAAC;AACrE,eAAO,MAAM,aAAa,uJAA8C,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/p256.js b/node_modules/@noble/curves/p256.js deleted file mode 100644 index 1e7e8094..00000000 --- a/node_modules/@noble/curves/p256.js +++ /dev/null @@ -1,45 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.encodeToCurve = exports.hashToCurve = exports.secp256r1 = exports.p256 = void 0; -/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */ -const _shortw_utils_js_1 = require("./_shortw_utils.js"); -const sha256_1 = require("@noble/hashes/sha256"); -const modular_js_1 = require("./abstract/modular.js"); -const weierstrass_js_1 = require("./abstract/weierstrass.js"); -const hash_to_curve_js_1 = require("./abstract/hash-to-curve.js"); -// NIST secp256r1 aka p256 -// https://www.secg.org/sec2-v2.pdf, https://neuromancer.sk/std/nist/P-256 -const Fp = (0, modular_js_1.Field)(BigInt('0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff')); -const CURVE_A = Fp.create(BigInt('-3')); -const CURVE_B = BigInt('0x5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b'); -// prettier-ignore -exports.p256 = (0, _shortw_utils_js_1.createCurve)({ - a: CURVE_A, - b: CURVE_B, - Fp, - // Curve order, total count of valid points in the field - n: BigInt('0xffffffff00000000ffffffffffffffffbce6faada7179e84f3b9cac2fc632551'), - // Base (generator) point (x, y) - Gx: BigInt('0x6b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296'), - Gy: BigInt('0x4fe342e2fe1a7f9b8ee7eb4a7c0f9e162bce33576b315ececbb6406837bf51f5'), - h: BigInt(1), - lowS: false, -}, sha256_1.sha256); -exports.secp256r1 = exports.p256; -const mapSWU = /* @__PURE__ */ (() => (0, weierstrass_js_1.mapToCurveSimpleSWU)(Fp, { - A: CURVE_A, - B: CURVE_B, - Z: Fp.create(BigInt('-10')), -}))(); -const htf = /* @__PURE__ */ (() => (0, hash_to_curve_js_1.createHasher)(exports.secp256r1.ProjectivePoint, (scalars) => mapSWU(scalars[0]), { - DST: 'P256_XMD:SHA-256_SSWU_RO_', - encodeDST: 'P256_XMD:SHA-256_SSWU_NU_', - p: Fp.ORDER, - m: 1, - k: 128, - expand: 'xmd', - hash: sha256_1.sha256, -}))(); -exports.hashToCurve = (() => htf.hashToCurve)(); -exports.encodeToCurve = (() => htf.encodeToCurve)(); -//# sourceMappingURL=p256.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/p256.js.map b/node_modules/@noble/curves/p256.js.map deleted file mode 100644 index 0459df9c..00000000 --- a/node_modules/@noble/curves/p256.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"p256.js","sourceRoot":"","sources":["src/p256.ts"],"names":[],"mappings":";;;AAAA,sEAAsE;AACtE,yDAAiD;AACjD,iDAA8C;AAC9C,sDAA8C;AAC9C,8DAAgE;AAChE,kEAA2D;AAE3D,0BAA0B;AAC1B,0EAA0E;AAE1E,MAAM,EAAE,GAAG,IAAA,kBAAK,EAAC,MAAM,CAAC,oEAAoE,CAAC,CAAC,CAAC;AAC/F,MAAM,OAAO,GAAG,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;AACxC,MAAM,OAAO,GAAG,MAAM,CAAC,oEAAoE,CAAC,CAAC;AAE7F,kBAAkB;AACL,QAAA,IAAI,GAAG,IAAA,8BAAW,EAAC;IAC9B,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,EAAE;IACF,wDAAwD;IACxD,CAAC,EAAE,MAAM,CAAC,oEAAoE,CAAC;IAC/E,gCAAgC;IAChC,EAAE,EAAE,MAAM,CAAC,oEAAoE,CAAC;IAChF,EAAE,EAAE,MAAM,CAAC,oEAAoE,CAAC;IAChF,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;IACZ,IAAI,EAAE,KAAK;CACH,EAAE,eAAM,CAAC,CAAC;AACP,QAAA,SAAS,GAAG,YAAI,CAAC;AAE9B,MAAM,MAAM,GAAG,eAAe,CAAC,CAAC,GAAG,EAAE,CACnC,IAAA,oCAAmB,EAAC,EAAE,EAAE;IACtB,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,OAAO;IACV,CAAC,EAAE,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;CAC5B,CAAC,CAAC,EAAE,CAAC;AAER,MAAM,GAAG,GAAG,eAAe,CAAC,CAAC,GAAG,EAAE,CAChC,IAAA,+BAAY,EAAC,iBAAS,CAAC,eAAe,EAAE,CAAC,OAAiB,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE;IACjF,GAAG,EAAE,2BAA2B;IAChC,SAAS,EAAE,2BAA2B;IACtC,CAAC,EAAE,EAAE,CAAC,KAAK;IACX,CAAC,EAAE,CAAC;IACJ,CAAC,EAAE,GAAG;IACN,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,eAAM;CACb,CAAC,CAAC,EAAE,CAAC;AACK,QAAA,WAAW,GAAmB,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,CAAC;AACxD,QAAA,aAAa,GAAmB,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,aAAa,CAAC,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/p384.d.ts b/node_modules/@noble/curves/p384.d.ts deleted file mode 100644 index 0be42541..00000000 --- a/node_modules/@noble/curves/p384.d.ts +++ /dev/null @@ -1,105 +0,0 @@ -export declare const p384: Readonly<{ - create: (hash: import("./abstract/utils.js").CHash) => import("./abstract/weierstrass.js").CurveFn; - CURVE: Readonly<{ - readonly nBitLength: number; - readonly nByteLength: number; - readonly Fp: import("./abstract/modular.js").IField; - readonly n: bigint; - readonly h: bigint; - readonly hEff?: bigint | undefined; - readonly Gx: bigint; - readonly Gy: bigint; - readonly allowInfinityPoint?: boolean | undefined; - readonly a: bigint; - readonly b: bigint; - readonly allowedPrivateKeyLengths?: readonly number[] | undefined; - readonly wrapPrivateKey?: boolean | undefined; - readonly endo?: { - beta: bigint; - splitScalar: (k: bigint) => { - k1neg: boolean; - k1: bigint; - k2neg: boolean; - k2: bigint; - }; - } | undefined; - readonly isTorsionFree?: ((c: import("./abstract/weierstrass.js").ProjConstructor, point: import("./abstract/weierstrass.js").ProjPointType) => boolean) | undefined; - readonly clearCofactor?: ((c: import("./abstract/weierstrass.js").ProjConstructor, point: import("./abstract/weierstrass.js").ProjPointType) => import("./abstract/weierstrass.js").ProjPointType) | undefined; - readonly hash: import("./abstract/utils.js").CHash; - readonly hmac: (key: Uint8Array, ...messages: Uint8Array[]) => Uint8Array; - readonly randomBytes: (bytesLength?: number | undefined) => Uint8Array; - lowS: boolean; - readonly bits2int?: ((bytes: Uint8Array) => bigint) | undefined; - readonly bits2int_modN?: ((bytes: Uint8Array) => bigint) | undefined; - readonly p: bigint; - }>; - getPublicKey: (privateKey: import("./abstract/utils.js").PrivKey, isCompressed?: boolean | undefined) => Uint8Array; - getSharedSecret: (privateA: import("./abstract/utils.js").PrivKey, publicB: import("./abstract/utils.js").Hex, isCompressed?: boolean | undefined) => Uint8Array; - sign: (msgHash: import("./abstract/utils.js").Hex, privKey: import("./abstract/utils.js").PrivKey, opts?: import("./abstract/weierstrass.js").SignOpts | undefined) => import("./abstract/weierstrass.js").RecoveredSignatureType; - verify: (signature: import("./abstract/utils.js").Hex | { - r: bigint; - s: bigint; - }, msgHash: import("./abstract/utils.js").Hex, publicKey: import("./abstract/utils.js").Hex, opts?: import("./abstract/weierstrass.js").VerOpts | undefined) => boolean; - ProjectivePoint: import("./abstract/weierstrass.js").ProjConstructor; - Signature: import("./abstract/weierstrass.js").SignatureConstructor; - utils: { - normPrivateKeyToScalar: (key: import("./abstract/utils.js").PrivKey) => bigint; - isValidPrivateKey(privateKey: import("./abstract/utils.js").PrivKey): boolean; - randomPrivateKey: () => Uint8Array; - precompute: (windowSize?: number | undefined, point?: import("./abstract/weierstrass.js").ProjPointType | undefined) => import("./abstract/weierstrass.js").ProjPointType; - }; -}>; -export declare const secp384r1: Readonly<{ - create: (hash: import("./abstract/utils.js").CHash) => import("./abstract/weierstrass.js").CurveFn; - CURVE: Readonly<{ - readonly nBitLength: number; - readonly nByteLength: number; - readonly Fp: import("./abstract/modular.js").IField; - readonly n: bigint; - readonly h: bigint; - readonly hEff?: bigint | undefined; - readonly Gx: bigint; - readonly Gy: bigint; - readonly allowInfinityPoint?: boolean | undefined; - readonly a: bigint; - readonly b: bigint; - readonly allowedPrivateKeyLengths?: readonly number[] | undefined; - readonly wrapPrivateKey?: boolean | undefined; - readonly endo?: { - beta: bigint; - splitScalar: (k: bigint) => { - k1neg: boolean; - k1: bigint; - k2neg: boolean; - k2: bigint; - }; - } | undefined; - readonly isTorsionFree?: ((c: import("./abstract/weierstrass.js").ProjConstructor, point: import("./abstract/weierstrass.js").ProjPointType) => boolean) | undefined; - readonly clearCofactor?: ((c: import("./abstract/weierstrass.js").ProjConstructor, point: import("./abstract/weierstrass.js").ProjPointType) => import("./abstract/weierstrass.js").ProjPointType) | undefined; - readonly hash: import("./abstract/utils.js").CHash; - readonly hmac: (key: Uint8Array, ...messages: Uint8Array[]) => Uint8Array; - readonly randomBytes: (bytesLength?: number | undefined) => Uint8Array; - lowS: boolean; - readonly bits2int?: ((bytes: Uint8Array) => bigint) | undefined; - readonly bits2int_modN?: ((bytes: Uint8Array) => bigint) | undefined; - readonly p: bigint; - }>; - getPublicKey: (privateKey: import("./abstract/utils.js").PrivKey, isCompressed?: boolean | undefined) => Uint8Array; - getSharedSecret: (privateA: import("./abstract/utils.js").PrivKey, publicB: import("./abstract/utils.js").Hex, isCompressed?: boolean | undefined) => Uint8Array; - sign: (msgHash: import("./abstract/utils.js").Hex, privKey: import("./abstract/utils.js").PrivKey, opts?: import("./abstract/weierstrass.js").SignOpts | undefined) => import("./abstract/weierstrass.js").RecoveredSignatureType; - verify: (signature: import("./abstract/utils.js").Hex | { - r: bigint; - s: bigint; - }, msgHash: import("./abstract/utils.js").Hex, publicKey: import("./abstract/utils.js").Hex, opts?: import("./abstract/weierstrass.js").VerOpts | undefined) => boolean; - ProjectivePoint: import("./abstract/weierstrass.js").ProjConstructor; - Signature: import("./abstract/weierstrass.js").SignatureConstructor; - utils: { - normPrivateKeyToScalar: (key: import("./abstract/utils.js").PrivKey) => bigint; - isValidPrivateKey(privateKey: import("./abstract/utils.js").PrivKey): boolean; - randomPrivateKey: () => Uint8Array; - precompute: (windowSize?: number | undefined, point?: import("./abstract/weierstrass.js").ProjPointType | undefined) => import("./abstract/weierstrass.js").ProjPointType; - }; -}>; -export declare const hashToCurve: (msg: Uint8Array, options?: import("./abstract/hash-to-curve.js").htfBasicOpts | undefined) => import("./abstract/hash-to-curve.js").H2CPoint; -export declare const encodeToCurve: (msg: Uint8Array, options?: import("./abstract/hash-to-curve.js").htfBasicOpts | undefined) => import("./abstract/hash-to-curve.js").H2CPoint; -//# sourceMappingURL=p384.d.ts.map \ No newline at end of file diff --git a/node_modules/@noble/curves/p384.d.ts.map b/node_modules/@noble/curves/p384.d.ts.map deleted file mode 100644 index 547746d3..00000000 --- a/node_modules/@noble/curves/p384.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"p384.d.ts","sourceRoot":"","sources":["src/p384.ts"],"names":[],"mappings":"AAmBA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWE,CAAC;AACpB,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAO,CAAC;AAmB9B,eAAO,MAAM,WAAW,uJAA4C,CAAC;AACrE,eAAO,MAAM,aAAa,uJAA8C,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/p384.js b/node_modules/@noble/curves/p384.js deleted file mode 100644 index d3a472bd..00000000 --- a/node_modules/@noble/curves/p384.js +++ /dev/null @@ -1,49 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.encodeToCurve = exports.hashToCurve = exports.secp384r1 = exports.p384 = void 0; -/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */ -const _shortw_utils_js_1 = require("./_shortw_utils.js"); -const sha512_1 = require("@noble/hashes/sha512"); -const modular_js_1 = require("./abstract/modular.js"); -const weierstrass_js_1 = require("./abstract/weierstrass.js"); -const hash_to_curve_js_1 = require("./abstract/hash-to-curve.js"); -// NIST secp384r1 aka p384 -// https://www.secg.org/sec2-v2.pdf, https://neuromancer.sk/std/nist/P-384 -// Field over which we'll do calculations. -// prettier-ignore -const P = BigInt('0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffeffffffff0000000000000000ffffffff'); -const Fp = (0, modular_js_1.Field)(P); -const CURVE_A = Fp.create(BigInt('-3')); -// prettier-ignore -const CURVE_B = BigInt('0xb3312fa7e23ee7e4988e056be3f82d19181d9c6efe8141120314088f5013875ac656398d8a2ed19d2a85c8edd3ec2aef'); -// prettier-ignore -exports.p384 = (0, _shortw_utils_js_1.createCurve)({ - a: CURVE_A, - b: CURVE_B, - Fp, - // Curve order, total count of valid points in the field. - n: BigInt('0xffffffffffffffffffffffffffffffffffffffffffffffffc7634d81f4372ddf581a0db248b0a77aecec196accc52973'), - // Base (generator) point (x, y) - Gx: BigInt('0xaa87ca22be8b05378eb1c71ef320ad746e1d3b628ba79b9859f741e082542a385502f25dbf55296c3a545e3872760ab7'), - Gy: BigInt('0x3617de4a96262c6f5d9e98bf9292dc29f8f41dbd289a147ce9da3113b5f0b8c00a60b1ce1d7e819d7a431d7c90ea0e5f'), - h: BigInt(1), - lowS: false, -}, sha512_1.sha384); -exports.secp384r1 = exports.p384; -const mapSWU = /* @__PURE__ */ (() => (0, weierstrass_js_1.mapToCurveSimpleSWU)(Fp, { - A: CURVE_A, - B: CURVE_B, - Z: Fp.create(BigInt('-12')), -}))(); -const htf = /* @__PURE__ */ (() => (0, hash_to_curve_js_1.createHasher)(exports.secp384r1.ProjectivePoint, (scalars) => mapSWU(scalars[0]), { - DST: 'P384_XMD:SHA-384_SSWU_RO_', - encodeDST: 'P384_XMD:SHA-384_SSWU_NU_', - p: Fp.ORDER, - m: 1, - k: 192, - expand: 'xmd', - hash: sha512_1.sha384, -}))(); -exports.hashToCurve = (() => htf.hashToCurve)(); -exports.encodeToCurve = (() => htf.encodeToCurve)(); -//# sourceMappingURL=p384.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/p384.js.map b/node_modules/@noble/curves/p384.js.map deleted file mode 100644 index 6816f0d2..00000000 --- a/node_modules/@noble/curves/p384.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"p384.js","sourceRoot":"","sources":["src/p384.ts"],"names":[],"mappings":";;;AAAA,sEAAsE;AACtE,yDAAiD;AACjD,iDAA8C;AAC9C,sDAA8C;AAC9C,8DAAgE;AAChE,kEAA2D;AAE3D,0BAA0B;AAC1B,0EAA0E;AAE1E,0CAA0C;AAC1C,kBAAkB;AAClB,MAAM,CAAC,GAAG,MAAM,CAAC,oGAAoG,CAAC,CAAC;AACvH,MAAM,EAAE,GAAG,IAAA,kBAAK,EAAC,CAAC,CAAC,CAAC;AACpB,MAAM,OAAO,GAAG,EAAE,CAAC,MAAM,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC;AACxC,kBAAkB;AAClB,MAAM,OAAO,GAAG,MAAM,CAAC,oGAAoG,CAAC,CAAC;AAE7H,kBAAkB;AACL,QAAA,IAAI,GAAG,IAAA,8BAAW,EAA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mode 100644 index 47cca466..00000000 --- a/node_modules/@noble/curves/p521.d.ts +++ /dev/null @@ -1,105 +0,0 @@ -export declare const p521: Readonly<{ - create: (hash: import("./abstract/utils.js").CHash) => import("./abstract/weierstrass.js").CurveFn; - CURVE: Readonly<{ - readonly nBitLength: number; - readonly nByteLength: number; - readonly Fp: import("./abstract/modular.js").IField; - readonly n: bigint; - readonly h: bigint; - readonly hEff?: bigint | undefined; - readonly Gx: bigint; - readonly Gy: bigint; - readonly allowInfinityPoint?: boolean | undefined; - readonly a: bigint; - readonly b: bigint; - readonly allowedPrivateKeyLengths?: readonly number[] | undefined; - readonly wrapPrivateKey?: boolean | undefined; - readonly endo?: { - beta: bigint; - splitScalar: (k: bigint) => { - k1neg: boolean; - k1: bigint; - k2neg: boolean; - k2: bigint; - }; - } | undefined; - readonly isTorsionFree?: ((c: import("./abstract/weierstrass.js").ProjConstructor, point: import("./abstract/weierstrass.js").ProjPointType) => boolean) | undefined; - readonly clearCofactor?: ((c: import("./abstract/weierstrass.js").ProjConstructor, point: import("./abstract/weierstrass.js").ProjPointType) => import("./abstract/weierstrass.js").ProjPointType) | undefined; - readonly hash: import("./abstract/utils.js").CHash; - readonly hmac: (key: Uint8Array, ...messages: Uint8Array[]) => Uint8Array; - readonly randomBytes: (bytesLength?: number | undefined) => Uint8Array; - lowS: boolean; - readonly bits2int?: ((bytes: Uint8Array) => bigint) | undefined; - readonly bits2int_modN?: ((bytes: Uint8Array) => bigint) | undefined; - readonly p: bigint; - }>; - getPublicKey: (privateKey: import("./abstract/utils.js").PrivKey, isCompressed?: boolean | undefined) => Uint8Array; - getSharedSecret: (privateA: import("./abstract/utils.js").PrivKey, publicB: import("./abstract/utils.js").Hex, isCompressed?: boolean | undefined) => Uint8Array; - sign: (msgHash: import("./abstract/utils.js").Hex, privKey: import("./abstract/utils.js").PrivKey, opts?: import("./abstract/weierstrass.js").SignOpts | undefined) => import("./abstract/weierstrass.js").RecoveredSignatureType; - verify: (signature: import("./abstract/utils.js").Hex | { - r: bigint; - s: bigint; - }, msgHash: import("./abstract/utils.js").Hex, publicKey: import("./abstract/utils.js").Hex, opts?: import("./abstract/weierstrass.js").VerOpts | undefined) => boolean; - ProjectivePoint: import("./abstract/weierstrass.js").ProjConstructor; - Signature: import("./abstract/weierstrass.js").SignatureConstructor; - utils: { - normPrivateKeyToScalar: (key: import("./abstract/utils.js").PrivKey) => bigint; - isValidPrivateKey(privateKey: import("./abstract/utils.js").PrivKey): boolean; - randomPrivateKey: () => Uint8Array; - precompute: (windowSize?: number | undefined, point?: import("./abstract/weierstrass.js").ProjPointType | undefined) => import("./abstract/weierstrass.js").ProjPointType; - }; -}>; -export declare const secp521r1: Readonly<{ - create: (hash: import("./abstract/utils.js").CHash) => import("./abstract/weierstrass.js").CurveFn; - CURVE: Readonly<{ - readonly nBitLength: number; - readonly nByteLength: number; - readonly Fp: import("./abstract/modular.js").IField; - readonly n: bigint; - readonly h: bigint; - readonly hEff?: bigint | undefined; - readonly Gx: bigint; - readonly Gy: bigint; - readonly allowInfinityPoint?: boolean | undefined; - readonly a: bigint; - readonly b: bigint; - readonly allowedPrivateKeyLengths?: readonly number[] | undefined; - readonly wrapPrivateKey?: boolean | undefined; - readonly endo?: { - beta: bigint; - splitScalar: (k: bigint) => { - k1neg: boolean; - k1: bigint; - k2neg: boolean; - k2: bigint; - }; - } | undefined; - readonly isTorsionFree?: ((c: import("./abstract/weierstrass.js").ProjConstructor, point: import("./abstract/weierstrass.js").ProjPointType) => boolean) | undefined; - readonly clearCofactor?: ((c: import("./abstract/weierstrass.js").ProjConstructor, point: import("./abstract/weierstrass.js").ProjPointType) => import("./abstract/weierstrass.js").ProjPointType) | undefined; - readonly hash: import("./abstract/utils.js").CHash; - readonly hmac: (key: Uint8Array, ...messages: Uint8Array[]) => Uint8Array; - readonly randomBytes: (bytesLength?: number | undefined) => Uint8Array; - lowS: boolean; - readonly bits2int?: ((bytes: Uint8Array) => bigint) | undefined; - readonly bits2int_modN?: ((bytes: Uint8Array) => bigint) | undefined; - readonly p: bigint; - }>; - getPublicKey: (privateKey: import("./abstract/utils.js").PrivKey, isCompressed?: boolean | undefined) => Uint8Array; - getSharedSecret: (privateA: import("./abstract/utils.js").PrivKey, publicB: import("./abstract/utils.js").Hex, isCompressed?: boolean | undefined) => Uint8Array; - sign: (msgHash: import("./abstract/utils.js").Hex, privKey: import("./abstract/utils.js").PrivKey, opts?: import("./abstract/weierstrass.js").SignOpts | undefined) => import("./abstract/weierstrass.js").RecoveredSignatureType; - verify: (signature: import("./abstract/utils.js").Hex | { - r: bigint; - s: bigint; - }, msgHash: import("./abstract/utils.js").Hex, publicKey: import("./abstract/utils.js").Hex, opts?: import("./abstract/weierstrass.js").VerOpts | undefined) => boolean; - ProjectivePoint: import("./abstract/weierstrass.js").ProjConstructor; - Signature: import("./abstract/weierstrass.js").SignatureConstructor; - utils: { - normPrivateKeyToScalar: (key: import("./abstract/utils.js").PrivKey) => bigint; - isValidPrivateKey(privateKey: import("./abstract/utils.js").PrivKey): boolean; - randomPrivateKey: () => Uint8Array; - precompute: (windowSize?: number | undefined, point?: import("./abstract/weierstrass.js").ProjPointType | undefined) => import("./abstract/weierstrass.js").ProjPointType; - }; -}>; -export declare const hashToCurve: (msg: Uint8Array, options?: import("./abstract/hash-to-curve.js").htfBasicOpts | undefined) => import("./abstract/hash-to-curve.js").H2CPoint; -export declare const encodeToCurve: (msg: Uint8Array, options?: import("./abstract/hash-to-curve.js").htfBasicOpts | undefined) => import("./abstract/hash-to-curve.js").H2CPoint; -//# sourceMappingURL=p521.d.ts.map \ No newline at end of file diff --git a/node_modules/@noble/curves/p521.d.ts.map b/node_modules/@noble/curves/p521.d.ts.map deleted file mode 100644 index 1c3cdaa2..00000000 --- a/node_modules/@noble/curves/p521.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"p521.d.ts","sourceRoot":"","sources":["src/p521.ts"],"names":[],"mappings":"AAmCA,eAAO,MAAM,IAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAWE,CAAC;AACpB,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAAO,CAAC;AAmB9B,eAAO,MAAM,WAAW,uJAA4C,CAAC;AACrE,eAAO,MAAM,aAAa,uJAA8C,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/p521.js b/node_modules/@noble/curves/p521.js deleted file mode 100644 index c1c0e22a..00000000 --- a/node_modules/@noble/curves/p521.js +++ /dev/null @@ -1,56 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.encodeToCurve = exports.hashToCurve = exports.secp521r1 = exports.p521 = void 0; -/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */ -const _shortw_utils_js_1 = require("./_shortw_utils.js"); -const sha512_1 = require("@noble/hashes/sha512"); -const modular_js_1 = require("./abstract/modular.js"); -const weierstrass_js_1 = require("./abstract/weierstrass.js"); -const hash_to_curve_js_1 = require("./abstract/hash-to-curve.js"); -// NIST secp521r1 aka p521 -// Note that it's 521, which differs from 512 of its hash function. -// https://www.secg.org/sec2-v2.pdf, https://neuromancer.sk/std/nist/P-521 -// Field over which we'll do calculations. -// prettier-ignore -const P = BigInt('0x1ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff'); -const Fp = (0, modular_js_1.Field)(P); -const CURVE = { - a: Fp.create(BigInt('-3')), - b: BigInt('0x0051953eb9618e1c9a1f929a21a0b68540eea2da725b99b315f3b8b489918ef109e156193951ec7e937b1652c0bd3bb1bf073573df883d2c34f1ef451fd46b503f00'), - Fp, - n: BigInt('0x01fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa51868783bf2f966b7fcc0148f709a5d03bb5c9b8899c47aebb6fb71e91386409'), - Gx: BigInt('0x00c6858e06b70404e9cd9e3ecb662395b4429c648139053fb521f828af606b4d3dbaa14b5e77efe75928fe1dc127a2ffa8de3348b3c1856a429bf97e7e31c2e5bd66'), - Gy: BigInt('0x011839296a789a3bc0045c8a5fb42c7d1bd998f54449579b446817afbd17273e662c97ee72995ef42640c550b9013fad0761353c7086a272c24088be94769fd16650'), - h: BigInt(1), -}; -// prettier-ignore -exports.p521 = (0, _shortw_utils_js_1.createCurve)({ - a: CURVE.a, - b: CURVE.b, - Fp, - // Curve order, total count of valid points in the field - n: CURVE.n, - Gx: CURVE.Gx, - Gy: CURVE.Gy, - h: CURVE.h, - lowS: false, - allowedPrivateKeyLengths: [130, 131, 132] // P521 keys are variable-length. Normalize to 132b -}, sha512_1.sha512); -exports.secp521r1 = exports.p521; -const mapSWU = /* @__PURE__ */ (() => (0, weierstrass_js_1.mapToCurveSimpleSWU)(Fp, { - A: CURVE.a, - B: CURVE.b, - Z: Fp.create(BigInt('-4')), -}))(); -const htf = /* @__PURE__ */ (() => (0, hash_to_curve_js_1.createHasher)(exports.secp521r1.ProjectivePoint, (scalars) => mapSWU(scalars[0]), { - DST: 'P521_XMD:SHA-512_SSWU_RO_', - encodeDST: 'P521_XMD:SHA-512_SSWU_NU_', - p: Fp.ORDER, - m: 1, - k: 256, - expand: 'xmd', - hash: sha512_1.sha512, -}))(); -exports.hashToCurve = (() => htf.hashToCurve)(); -exports.encodeToCurve = (() => htf.encodeToCurve)(); -//# sourceMappingURL=p521.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/p521.js.map b/node_modules/@noble/curves/p521.js.map deleted file mode 100644 index f79e5f0f..00000000 --- a/node_modules/@noble/curves/p521.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"p521.js","sourceRoot":"","sources":["src/p521.ts"],"names":[],"mappings":";;;AAAA,sEAAsE;AACtE,yDAAiD;AACjD,iDAA8C;AAC9C,sDAA8C;AAC9C,8DAAgE;AAChE,kEAA2D;AAE3D,0BAA0B;AAC1B,mEAAmE;AACnE,0EAA0E;AAE1E,0CAA0C;A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GAAG,EAAE,CAChC,IAAA,+BAAY,EAAC,iBAAS,CAAC,eAAe,EAAE,CAAC,OAAiB,EAAE,EAAE,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,EAAE;IACjF,GAAG,EAAE,2BAA2B;IAChC,SAAS,EAAE,2BAA2B;IACtC,CAAC,EAAE,EAAE,CAAC,KAAK;IACX,CAAC,EAAE,CAAC;IACJ,CAAC,EAAE,GAAG;IACN,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,eAAM;CACb,CAAC,CAAC,EAAE,CAAC;AACK,QAAA,WAAW,GAAmB,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,CAAC;AACxD,QAAA,aAAa,GAAmB,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,aAAa,CAAC,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/package.json b/node_modules/@noble/curves/package.json deleted file mode 100644 index 8d59a95e..00000000 --- a/node_modules/@noble/curves/package.json +++ /dev/null @@ -1,180 +0,0 @@ -{ - "name": "@noble/curves", - "version": "1.1.0", - "description": "Audited & minimal JS implementation of elliptic curve cryptography", - "files": [ - "abstract", - "esm", - "src", - "*.js", - "*.js.map", - "*.d.ts", - "*.d.ts.map" - ], - "scripts": { - "bench": "cd benchmark; node secp256k1.js; node curves.js; node ecdh.js; node hash-to-curve.js; node modular.js; node bls.js", - "build": "tsc && tsc -p tsconfig.esm.json", - "build:release": "rollup -c rollup.config.js", - "build:clean": "rm *.{js,d.ts,d.ts.map,js.map} esm/*.{js,d.ts,d.ts.map,js.map} 2> /dev/null", - "lint": "prettier --check 'src/**/*.{js,ts}' 'test/*.js'", - "format": "prettier --write 'src/**/*.{js,ts}' 'test/*.js'", - "test": "node test/index.test.js" - }, - "author": "Paul Miller (https://paulmillr.com)", - "homepage": "https://paulmillr.com/noble/", - "repository": { - "type": "git", - "url": "https://github.com/paulmillr/noble-curves.git" - }, - "license": "MIT", - "dependencies": { - "@noble/hashes": "1.3.1" - }, - "devDependencies": { - "fast-check": "3.0.0", - "micro-bmark": "0.3.1", - "micro-should": "0.4.0", - "prettier": "2.8.4", - "typescript": "5.0.2" - }, - "main": "index.js", - "exports": { - ".": { - "types": "./index.d.ts", - "import": "./esm/index.js", - "default": "./index.js" - }, - "./abstract/edwards": { - "types": "./abstract/edwards.d.ts", - "import": "./esm/abstract/edwards.js", - "default": "./abstract/edwards.js" - }, - "./abstract/modular": { - "types": "./abstract/modular.d.ts", - "import": "./esm/abstract/modular.js", - "default": "./abstract/modular.js" - }, - "./abstract/montgomery": { - "types": "./abstract/montgomery.d.ts", - "import": "./esm/abstract/montgomery.js", - "default": "./abstract/montgomery.js" - }, - "./abstract/weierstrass": { - "types": "./abstract/weierstrass.d.ts", - "import": "./esm/abstract/weierstrass.js", - "default": "./abstract/weierstrass.js" - }, - "./abstract/bls": { - "types": "./abstract/bls.d.ts", - "import": "./esm/abstract/bls.js", - "default": "./abstract/bls.js" - }, - "./abstract/hash-to-curve": { - "types": "./abstract/hash-to-curve.d.ts", - "import": "./esm/abstract/hash-to-curve.js", - "default": "./abstract/hash-to-curve.js" - }, - "./abstract/curve": { - "types": "./abstract/curve.d.ts", - "import": "./esm/abstract/curve.js", - "default": "./abstract/curve.js" - }, - "./abstract/utils": { - "types": "./abstract/utils.d.ts", - "import": "./esm/abstract/utils.js", - "default": "./abstract/utils.js" - }, - "./abstract/poseidon": { - "types": "./abstract/poseidon.d.ts", - "import": "./esm/abstract/poseidon.js", - "default": "./abstract/poseidon.js" - }, - "./_shortw_utils": { - "types": "./_shortw_utils.d.ts", - "import": "./esm/_shortw_utils.js", - "default": "./_shortw_utils.js" - }, - "./bls12-381": { - "types": "./bls12-381.d.ts", - "import": "./esm/bls12-381.js", - "default": "./bls12-381.js" - }, - "./bn254": { - "types": "./bn254.d.ts", - "import": "./esm/bn254.js", - "default": "./bn254.js" - }, - "./ed25519": { - "types": "./ed25519.d.ts", - "import": "./esm/ed25519.js", - "default": "./ed25519.js" - }, - "./ed448": { - "types": "./ed448.d.ts", - "import": "./esm/ed448.js", - "default": "./ed448.js" - }, - "./index": { - "types": "./index.d.ts", - "import": "./esm/index.js", - "default": "./index.js" - }, - "./jubjub": { - "types": "./jubjub.d.ts", - "import": "./esm/jubjub.js", - "default": "./jubjub.js" - }, - "./p256": { - "types": "./p256.d.ts", - "import": "./esm/p256.js", - "default": "./p256.js" - }, - "./p384": { - "types": "./p384.d.ts", - "import": "./esm/p384.js", - "default": "./p384.js" - }, - "./p521": { - "types": "./p521.d.ts", - "import": "./esm/p521.js", - "default": "./p521.js" - }, - "./pasta": { - "types": "./pasta.d.ts", - "import": "./esm/pasta.js", - "default": "./pasta.js" - }, - "./secp256k1": { - "types": "./secp256k1.d.ts", - "import": "./esm/secp256k1.js", - "default": "./secp256k1.js" - } - }, - "keywords": [ - "elliptic", - "curve", - "cryptography", - "weierstrass", - "montgomery", - "edwards", - "p256", - "p384", - "p521", - "secp256r1", - "secp256k1", - "ed25519", - "ed448", - "x25519", - "ed25519", - "bls12-381", - "bn254", - "pasta", - "bls", - "noble", - "ecc", - "ecdsa", - "eddsa", - "schnorr" - ], - "funding": "https://paulmillr.com/funding/" -} \ No newline at end of file diff --git a/node_modules/@noble/curves/pasta.d.ts b/node_modules/@noble/curves/pasta.d.ts deleted file mode 100644 index 9e1f4ed4..00000000 --- a/node_modules/@noble/curves/pasta.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export declare const p: bigint; -export declare const q: bigint; -export declare const pallas: import("./abstract/weierstrass.js").CurveFn; -export declare const vesta: import("./abstract/weierstrass.js").CurveFn; -//# sourceMappingURL=pasta.d.ts.map \ No newline at end of file diff --git a/node_modules/@noble/curves/pasta.d.ts.map b/node_modules/@noble/curves/pasta.d.ts.map deleted file mode 100644 index d4e6dd52..00000000 --- a/node_modules/@noble/curves/pasta.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"pasta.d.ts","sourceRoot":"","sources":["src/pasta.ts"],"names":[],"mappings":"AAMA,eAAO,MAAM,CAAC,QAA+E,CAAC;AAC9F,eAAO,MAAM,CAAC,QAA+E,CAAC;AAG9F,eAAO,MAAM,MAAM,6CASjB,CAAC;AAEH,eAAO,MAAM,KAAK,6CAShB,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/pasta.js b/node_modules/@noble/curves/pasta.js deleted file mode 100644 index c3bee21d..00000000 --- a/node_modules/@noble/curves/pasta.js +++ /dev/null @@ -1,33 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.vesta = exports.pallas = exports.q = exports.p = void 0; -/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */ -const sha256_1 = require("@noble/hashes/sha256"); -const weierstrass_js_1 = require("./abstract/weierstrass.js"); -const _shortw_utils_js_1 = require("./_shortw_utils.js"); -const mod = require("./abstract/modular.js"); -exports.p = BigInt('0x40000000000000000000000000000000224698fc094cf91b992d30ed00000001'); -exports.q = BigInt('0x40000000000000000000000000000000224698fc0994a8dd8c46eb2100000001'); -// https://neuromancer.sk/std/other/Pallas -exports.pallas = (0, weierstrass_js_1.weierstrass)({ - a: BigInt(0), - b: BigInt(5), - Fp: mod.Field(exports.p), - n: exports.q, - Gx: mod.mod(BigInt(-1), exports.p), - Gy: BigInt(2), - h: BigInt(1), - ...(0, _shortw_utils_js_1.getHash)(sha256_1.sha256), -}); -// https://neuromancer.sk/std/other/Vesta -exports.vesta = (0, weierstrass_js_1.weierstrass)({ - a: BigInt(0), - b: BigInt(5), - Fp: mod.Field(exports.q), - n: exports.p, - Gx: mod.mod(BigInt(-1), exports.q), - Gy: BigInt(2), - h: BigInt(1), - ...(0, _shortw_utils_js_1.getHash)(sha256_1.sha256), -}); -//# sourceMappingURL=pasta.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/pasta.js.map b/node_modules/@noble/curves/pasta.js.map deleted file mode 100644 index 5ea530cc..00000000 --- a/node_modules/@noble/curves/pasta.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"pasta.js","sourceRoot":"","sources":["src/pasta.ts"],"names":[],"mappings":";;;AAAA,sEAAsE;AACtE,iDAA8C;AAC9C,8DAAwD;AACxD,yDAA6C;AAC7C,6CAA6C;AAEhC,QAAA,CAAC,GAAG,MAAM,CAAC,oEAAoE,CAAC,CAAC;AACjF,QAAA,CAAC,GAAG,MAAM,CAAC,oEAAoE,CAAC,CAAC;AAE9F,0CAA0C;AAC7B,QAAA,MAAM,GAAG,IAAA,4BAAW,EAAC;IAChC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;IACZ,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;IACZ,EAAE,EAAE,GAAG,CAAC,KAAK,CAAC,SAAC,CAAC;IAChB,CAAC,EAAE,SAAC;IACJ,EAAE,EAAE,GAAG,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,SAAC,CAAC;IAC1B,EAAE,EAAE,MAAM,CAAC,CAAC,CAAC;IACb,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;IACZ,GAAG,IAAA,0BAAO,EAAC,eAAM,CAAC;CACnB,CAAC,CAAC;AACH,yCAAyC;AAC5B,QAAA,KAAK,GAAG,IAAA,4BAAW,EAAC;IAC/B,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;IACZ,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;IACZ,EAAE,EAAE,GAAG,CAAC,KAAK,CAAC,SAAC,CAAC;IAChB,CAAC,EAAE,SAAC;IACJ,EAAE,EAAE,GAAG,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,SAAC,CAAC;IAC1B,EAAE,EAAE,MAAM,CAAC,CAAC,CAAC;IACb,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC;IACZ,GAAG,IAAA,0BAAO,EAAC,eAAM,CAAC;CACnB,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/secp256k1.d.ts b/node_modules/@noble/curves/secp256k1.d.ts deleted file mode 100644 index b94df777..00000000 --- a/node_modules/@noble/curves/secp256k1.d.ts +++ /dev/null @@ -1,93 +0,0 @@ -import { mod } from './abstract/modular.js'; -import { ProjPointType as PointType } from './abstract/weierstrass.js'; -import type { Hex, PrivKey } from './abstract/utils.js'; -import { bytesToNumberBE, numberToBytesBE } from './abstract/utils.js'; -export declare const secp256k1: Readonly<{ - create: (hash: import("./abstract/utils.js").CHash) => import("./abstract/weierstrass.js").CurveFn; - CURVE: Readonly<{ - readonly nBitLength: number; - readonly nByteLength: number; - readonly Fp: import("./abstract/modular.js").IField; - readonly n: bigint; - readonly h: bigint; - readonly hEff?: bigint | undefined; - readonly Gx: bigint; - readonly Gy: bigint; - readonly allowInfinityPoint?: boolean | undefined; - readonly a: bigint; - readonly b: bigint; - readonly allowedPrivateKeyLengths?: readonly number[] | undefined; - readonly wrapPrivateKey?: boolean | undefined; - readonly endo?: { - beta: bigint; - splitScalar: (k: bigint) => { - k1neg: boolean; - k1: bigint; - k2neg: boolean; - k2: bigint; - }; - } | undefined; - readonly isTorsionFree?: ((c: import("./abstract/weierstrass.js").ProjConstructor, point: PointType) => boolean) | undefined; - readonly clearCofactor?: ((c: import("./abstract/weierstrass.js").ProjConstructor, point: PointType) => PointType) | undefined; - readonly hash: import("./abstract/utils.js").CHash; - readonly hmac: (key: Uint8Array, ...messages: Uint8Array[]) => Uint8Array; - readonly randomBytes: (bytesLength?: number | undefined) => Uint8Array; - lowS: boolean; - readonly bits2int?: ((bytes: Uint8Array) => bigint) | undefined; - readonly bits2int_modN?: ((bytes: Uint8Array) => bigint) | undefined; - readonly p: bigint; - }>; - getPublicKey: (privateKey: PrivKey, isCompressed?: boolean | undefined) => Uint8Array; - getSharedSecret: (privateA: PrivKey, publicB: Hex, isCompressed?: boolean | undefined) => Uint8Array; - sign: (msgHash: Hex, privKey: PrivKey, opts?: import("./abstract/weierstrass.js").SignOpts | undefined) => import("./abstract/weierstrass.js").RecoveredSignatureType; - verify: (signature: Hex | { - r: bigint; - s: bigint; - }, msgHash: Hex, publicKey: Hex, opts?: import("./abstract/weierstrass.js").VerOpts | undefined) => boolean; - ProjectivePoint: import("./abstract/weierstrass.js").ProjConstructor; - Signature: import("./abstract/weierstrass.js").SignatureConstructor; - utils: { - normPrivateKeyToScalar: (key: PrivKey) => bigint; - isValidPrivateKey(privateKey: PrivKey): boolean; - randomPrivateKey: () => Uint8Array; - precompute: (windowSize?: number | undefined, point?: PointType | undefined) => PointType; - }; -}>; -declare function taggedHash(tag: string, ...messages: Uint8Array[]): Uint8Array; -/** - * lift_x from BIP340. Convert 32-byte x coordinate to elliptic curve point. - * @returns valid point checked for being on-curve - */ -declare function lift_x(x: bigint): PointType; -/** - * Schnorr public key is just `x` coordinate of Point as per BIP340. - */ -declare function schnorrGetPublicKey(privateKey: Hex): Uint8Array; -/** - * Creates Schnorr signature as per BIP340. Verifies itself before returning anything. - * auxRand is optional and is not the sole source of k generation: bad CSPRNG won't be dangerous. - */ -declare function schnorrSign(message: Hex, privateKey: PrivKey, auxRand?: Hex): Uint8Array; -/** - * Verifies Schnorr signature. - * Will swallow errors & return false except for initial type validation of arguments. - */ -declare function schnorrVerify(signature: Hex, message: Hex, publicKey: Hex): boolean; -export declare const schnorr: { - getPublicKey: typeof schnorrGetPublicKey; - sign: typeof schnorrSign; - verify: typeof schnorrVerify; - utils: { - randomPrivateKey: () => Uint8Array; - lift_x: typeof lift_x; - pointToBytes: (point: PointType) => Uint8Array; - numberToBytesBE: typeof numberToBytesBE; - bytesToNumberBE: typeof bytesToNumberBE; - taggedHash: typeof taggedHash; - mod: typeof mod; - }; -}; -export declare const hashToCurve: (msg: Uint8Array, options?: import("./abstract/hash-to-curve.js").htfBasicOpts | undefined) => import("./abstract/hash-to-curve.js").H2CPoint; -export declare const encodeToCurve: (msg: Uint8Array, options?: import("./abstract/hash-to-curve.js").htfBasicOpts | undefined) => import("./abstract/hash-to-curve.js").H2CPoint; -export {}; -//# sourceMappingURL=secp256k1.d.ts.map \ No newline at end of file diff --git a/node_modules/@noble/curves/secp256k1.d.ts.map b/node_modules/@noble/curves/secp256k1.d.ts.map deleted file mode 100644 index c6ddafc7..00000000 --- a/node_modules/@noble/curves/secp256k1.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"secp256k1.d.ts","sourceRoot":"","sources":["src/secp256k1.ts"],"names":[],"mappings":"AAGA,OAAO,EAAS,GAAG,EAAQ,MAAM,uBAAuB,CAAC;AACzD,OAAO,EAAE,aAAa,IAAI,SAAS,EAAuB,MAAM,2BAA2B,CAAC;AAC5F,OAAO,KAAK,EAAE,GAAG,EAAE,OAAO,EAAE,MAAM,qBAAqB,CAAC;AACxD,OAAO,EAAE,eAAe,EAA4B,eAAe,EAAE,MAAM,qBAAqB,CAAC;AAwCjG,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA2CrB,CAAC;AASF,iBAAS,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,GAAG,QAAQ,EAAE,UAAU,EAAE,GAAG,UAAU,CAQtE;AAkBD;;;GAGG;AACH,iBAAS,MAAM,CAAC,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC,MAAM,CAAC,CAS5C;AAQD;;GAEG;AACH,iBAAS,mBAAmB,CAAC,UAAU,EAAE,GAAG,GAAG,UAAU,CAExD;AAED;;;GAGG;AACH,iBAAS,WAAW,CAClB,OAAO,EAAE,GAAG,EACZ,UAAU,EAAE,OAAO,EACnB,OAAO,GAAE,GAAqB,GAC7B,UAAU,CAgBZ;AAED;;;GAGG;AACH,iBAAS,aAAa,CAAC,SAAS,EAAE,GAAG,EAAE,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,GAAG,OAAO,CAiB5E;AAED,eAAO,MAAM,OAAO;;;;;;;8BA5FS,UAAU,MAAM,CAAC;;;;;;CAyGzC,CAAC;AA0DN,eAAO,MAAM,WAAW,uJAA4C,CAAC;AACrE,eAAO,MAAM,aAAa,uJAA8C,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/secp256k1.js b/node_modules/@noble/curves/secp256k1.js deleted file mode 100644 index 463edccb..00000000 --- a/node_modules/@noble/curves/secp256k1.js +++ /dev/null @@ -1,257 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.encodeToCurve = exports.hashToCurve = exports.schnorr = exports.secp256k1 = void 0; -/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */ -const sha256_1 = require("@noble/hashes/sha256"); -const utils_1 = require("@noble/hashes/utils"); -const modular_js_1 = require("./abstract/modular.js"); -const weierstrass_js_1 = require("./abstract/weierstrass.js"); -const utils_js_1 = require("./abstract/utils.js"); -const hash_to_curve_js_1 = require("./abstract/hash-to-curve.js"); -const _shortw_utils_js_1 = require("./_shortw_utils.js"); -const secp256k1P = BigInt('0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f'); -const secp256k1N = BigInt('0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141'); -const _1n = BigInt(1); -const _2n = BigInt(2); -const divNearest = (a, b) => (a + b / _2n) / b; -/** - * √n = n^((p+1)/4) for fields p = 3 mod 4. We unwrap the loop and multiply bit-by-bit. - * (P+1n/4n).toString(2) would produce bits [223x 1, 0, 22x 1, 4x 0, 11, 00] - */ -function sqrtMod(y) { - const P = secp256k1P; - // prettier-ignore - const _3n = BigInt(3), _6n = BigInt(6), _11n = BigInt(11), _22n = BigInt(22); - // prettier-ignore - const _23n = BigInt(23), _44n = BigInt(44), _88n = BigInt(88); - const b2 = (y * y * y) % P; // x^3, 11 - const b3 = (b2 * b2 * y) % P; // x^7 - const b6 = ((0, modular_js_1.pow2)(b3, _3n, P) * b3) % P; - const b9 = ((0, modular_js_1.pow2)(b6, _3n, P) * b3) % P; - const b11 = ((0, modular_js_1.pow2)(b9, _2n, P) * b2) % P; - const b22 = ((0, modular_js_1.pow2)(b11, _11n, P) * b11) % P; - const b44 = ((0, modular_js_1.pow2)(b22, _22n, P) * b22) % P; - const b88 = ((0, modular_js_1.pow2)(b44, _44n, P) * b44) % P; - const b176 = ((0, modular_js_1.pow2)(b88, _88n, P) * b88) % P; - const b220 = ((0, modular_js_1.pow2)(b176, _44n, P) * b44) % P; - const b223 = ((0, modular_js_1.pow2)(b220, _3n, P) * b3) % P; - const t1 = ((0, modular_js_1.pow2)(b223, _23n, P) * b22) % P; - const t2 = ((0, modular_js_1.pow2)(t1, _6n, P) * b2) % P; - const root = (0, modular_js_1.pow2)(t2, _2n, P); - if (!Fp.eql(Fp.sqr(root), y)) - throw new Error('Cannot find square root'); - return root; -} -const Fp = (0, modular_js_1.Field)(secp256k1P, undefined, undefined, { sqrt: sqrtMod }); -exports.secp256k1 = (0, _shortw_utils_js_1.createCurve)({ - a: BigInt(0), - b: BigInt(7), - Fp, - n: secp256k1N, - // Base point (x, y) aka generator point - Gx: BigInt('55066263022277343669578718895168534326250603453777594175500187360389116729240'), - Gy: BigInt('32670510020758816978083085130507043184471273380659243275938904335757337482424'), - h: BigInt(1), - lowS: true, - /** - * secp256k1 belongs to Koblitz curves: it has efficiently computable endomorphism. - * Endomorphism uses 2x less RAM, speeds up precomputation by 2x and ECDH / key recovery by 20%. - * For precomputed wNAF it trades off 1/2 init time & 1/3 ram for 20% perf hit. - * Explanation: https://gist.github.com/paulmillr/eb670806793e84df628a7c434a873066 - */ - endo: { - beta: BigInt('0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee'), - splitScalar: (k) => { - const n = secp256k1N; - const a1 = BigInt('0x3086d221a7d46bcde86c90e49284eb15'); - const b1 = -_1n * BigInt('0xe4437ed6010e88286f547fa90abfe4c3'); - const a2 = BigInt('0x114ca50f7a8e2f3f657c1108d9d44cfd8'); - const b2 = a1; - const POW_2_128 = BigInt('0x100000000000000000000000000000000'); // (2n**128n).toString(16) - const c1 = divNearest(b2 * k, n); - const c2 = divNearest(-b1 * k, n); - let k1 = (0, modular_js_1.mod)(k - c1 * a1 - c2 * a2, n); - let k2 = (0, modular_js_1.mod)(-c1 * b1 - c2 * b2, n); - const k1neg = k1 > POW_2_128; - const k2neg = k2 > POW_2_128; - if (k1neg) - k1 = n - k1; - if (k2neg) - k2 = n - k2; - if (k1 > POW_2_128 || k2 > POW_2_128) { - throw new Error('splitScalar: Endomorphism failed, k=' + k); - } - return { k1neg, k1, k2neg, k2 }; - }, - }, -}, sha256_1.sha256); -// Schnorr signatures are superior to ECDSA from above. Below is Schnorr-specific BIP0340 code. -// https://github.com/bitcoin/bips/blob/master/bip-0340.mediawiki -const _0n = BigInt(0); -const fe = (x) => typeof x === 'bigint' && _0n < x && x < secp256k1P; -const ge = (x) => typeof x === 'bigint' && _0n < x && x < secp256k1N; -/** An object mapping tags to their tagged hash prefix of [SHA256(tag) | SHA256(tag)] */ -const TAGGED_HASH_PREFIXES = {}; -function taggedHash(tag, ...messages) { - let tagP = TAGGED_HASH_PREFIXES[tag]; - if (tagP === undefined) { - const tagH = (0, sha256_1.sha256)(Uint8Array.from(tag, (c) => c.charCodeAt(0))); - tagP = (0, utils_js_1.concatBytes)(tagH, tagH); - TAGGED_HASH_PREFIXES[tag] = tagP; - } - return (0, sha256_1.sha256)((0, utils_js_1.concatBytes)(tagP, ...messages)); -} -// ECDSA compact points are 33-byte. Schnorr is 32: we strip first byte 0x02 or 0x03 -const pointToBytes = (point) => point.toRawBytes(true).slice(1); -const numTo32b = (n) => (0, utils_js_1.numberToBytesBE)(n, 32); -const modP = (x) => (0, modular_js_1.mod)(x, secp256k1P); -const modN = (x) => (0, modular_js_1.mod)(x, secp256k1N); -const Point = exports.secp256k1.ProjectivePoint; -const GmulAdd = (Q, a, b) => Point.BASE.multiplyAndAddUnsafe(Q, a, b); -// Calculate point, scalar and bytes -function schnorrGetExtPubKey(priv) { - let d_ = exports.secp256k1.utils.normPrivateKeyToScalar(priv); // same method executed in fromPrivateKey - let p = Point.fromPrivateKey(d_); // P = d'⋅G; 0 < d' < n check is done inside - const scalar = p.hasEvenY() ? d_ : modN(-d_); - return { scalar: scalar, bytes: pointToBytes(p) }; -} -/** - * lift_x from BIP340. Convert 32-byte x coordinate to elliptic curve point. - * @returns valid point checked for being on-curve - */ -function lift_x(x) { - if (!fe(x)) - throw new Error('bad x: need 0 < x < p'); // Fail if x ≥ p. - const xx = modP(x * x); - const c = modP(xx * x + BigInt(7)); // Let c = x³ + 7 mod p. - let y = sqrtMod(c); // Let y = c^(p+1)/4 mod p. - if (y % _2n !== _0n) - y = modP(-y); // Return the unique point P such that x(P) = x and - const p = new Point(x, y, _1n); // y(P) = y if y mod 2 = 0 or y(P) = p-y otherwise. - p.assertValidity(); - return p; -} -/** - * Create tagged hash, convert it to bigint, reduce modulo-n. - */ -function challenge(...args) { - return modN((0, utils_js_1.bytesToNumberBE)(taggedHash('BIP0340/challenge', ...args))); -} -/** - * Schnorr public key is just `x` coordinate of Point as per BIP340. - */ -function schnorrGetPublicKey(privateKey) { - return schnorrGetExtPubKey(privateKey).bytes; // d'=int(sk). Fail if d'=0 or d'≥n. Ret bytes(d'⋅G) -} -/** - * Creates Schnorr signature as per BIP340. Verifies itself before returning anything. - * auxRand is optional and is not the sole source of k generation: bad CSPRNG won't be dangerous. - */ -function schnorrSign(message, privateKey, auxRand = (0, utils_1.randomBytes)(32)) { - const m = (0, utils_js_1.ensureBytes)('message', message); - const { bytes: px, scalar: d } = schnorrGetExtPubKey(privateKey); // checks for isWithinCurveOrder - const a = (0, utils_js_1.ensureBytes)('auxRand', auxRand, 32); // Auxiliary random data a: a 32-byte array - const t = numTo32b(d ^ (0, utils_js_1.bytesToNumberBE)(taggedHash('BIP0340/aux', a))); // Let t be the byte-wise xor of bytes(d) and hash/aux(a) - const rand = taggedHash('BIP0340/nonce', t, px, m); // Let rand = hash/nonce(t || bytes(P) || m) - const k_ = modN((0, utils_js_1.bytesToNumberBE)(rand)); // Let k' = int(rand) mod n - if (k_ === _0n) - throw new Error('sign failed: k is zero'); // Fail if k' = 0. - const { bytes: rx, scalar: k } = schnorrGetExtPubKey(k_); // Let R = k'⋅G. - const e = challenge(rx, px, m); // Let e = int(hash/challenge(bytes(R) || bytes(P) || m)) mod n. - const sig = new Uint8Array(64); // Let sig = bytes(R) || bytes((k + ed) mod n). - sig.set(rx, 0); - sig.set(numTo32b(modN(k + e * d)), 32); - // If Verify(bytes(P), m, sig) (see below) returns failure, abort - if (!schnorrVerify(sig, m, px)) - throw new Error('sign: Invalid signature produced'); - return sig; -} -/** - * Verifies Schnorr signature. - * Will swallow errors & return false except for initial type validation of arguments. - */ -function schnorrVerify(signature, message, publicKey) { - const sig = (0, utils_js_1.ensureBytes)('signature', signature, 64); - const m = (0, utils_js_1.ensureBytes)('message', message); - const pub = (0, utils_js_1.ensureBytes)('publicKey', publicKey, 32); - try { - const P = lift_x((0, utils_js_1.bytesToNumberBE)(pub)); // P = lift_x(int(pk)); fail if that fails - const r = (0, utils_js_1.bytesToNumberBE)(sig.subarray(0, 32)); // Let r = int(sig[0:32]); fail if r ≥ p. - if (!fe(r)) - return false; - const s = (0, utils_js_1.bytesToNumberBE)(sig.subarray(32, 64)); // Let s = int(sig[32:64]); fail if s ≥ n. - if (!ge(s)) - return false; - const e = challenge(numTo32b(r), pointToBytes(P), m); // int(challenge(bytes(r)||bytes(P)||m))%n - const R = GmulAdd(P, s, modN(-e)); // R = s⋅G - e⋅P - if (!R || !R.hasEvenY() || R.toAffine().x !== r) - return false; // -eP == (n-e)P - return true; // Fail if is_infinite(R) / not has_even_y(R) / x(R) ≠ r. - } - catch (error) { - return false; - } -} -exports.schnorr = (() => ({ - getPublicKey: schnorrGetPublicKey, - sign: schnorrSign, - verify: schnorrVerify, - utils: { - randomPrivateKey: exports.secp256k1.utils.randomPrivateKey, - lift_x, - pointToBytes, - numberToBytesBE: utils_js_1.numberToBytesBE, - bytesToNumberBE: utils_js_1.bytesToNumberBE, - taggedHash, - mod: modular_js_1.mod, - }, -}))(); -const isoMap = /* @__PURE__ */ (() => (0, hash_to_curve_js_1.isogenyMap)(Fp, [ - // xNum - [ - '0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7', - '0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581', - '0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262', - '0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c', - ], - // xDen - [ - '0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b', - '0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14', - '0x0000000000000000000000000000000000000000000000000000000000000001', // LAST 1 - ], - // yNum - [ - '0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c', - '0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3', - '0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931', - '0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84', - ], - // yDen - [ - '0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b', - '0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573', - '0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f', - '0x0000000000000000000000000000000000000000000000000000000000000001', // LAST 1 - ], -].map((i) => i.map((j) => BigInt(j)))))(); -const mapSWU = /* @__PURE__ */ (() => (0, weierstrass_js_1.mapToCurveSimpleSWU)(Fp, { - A: BigInt('0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533'), - B: BigInt('1771'), - Z: Fp.create(BigInt('-11')), -}))(); -const htf = /* @__PURE__ */ (() => (0, hash_to_curve_js_1.createHasher)(exports.secp256k1.ProjectivePoint, (scalars) => { - const { x, y } = mapSWU(Fp.create(scalars[0])); - return isoMap(x, y); -}, { - DST: 'secp256k1_XMD:SHA-256_SSWU_RO_', - encodeDST: 'secp256k1_XMD:SHA-256_SSWU_NU_', - p: Fp.ORDER, - m: 1, - k: 128, - expand: 'xmd', - hash: sha256_1.sha256, -}))(); -exports.hashToCurve = (() => htf.hashToCurve)(); -exports.encodeToCurve = (() => htf.encodeToCurve)(); -//# sourceMappingURL=secp256k1.js.map \ No newline at end of file diff --git a/node_modules/@noble/curves/secp256k1.js.map b/node_modules/@noble/curves/secp256k1.js.map deleted file mode 100644 index 4d76de26..00000000 --- a/node_modules/@noble/curves/secp256k1.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"secp256k1.js","sourceRoot":"","sources":["src/secp256k1.ts"],"names":[],"mappings":";;;AAAA,sEAAsE;AACtE,iDAA8C;AAC9C,+CAAkD;AAClD,sDAAyD;AACzD,8DAA4F;AAE5F,kDAAiG;AACjG,kEAAuE;AACvE,yDAAiD;AAEjD,MAAM,UAAU,GAAG,MAAM,CAAC,oEAAoE,CAAC,CAAC;AAChG,MAAM,UAAU,GAAG,MAAM,CAAC,oEAAoE,CAAC,CAAC;AAChG,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;AACtB,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,CAAC;AACtB,MAAM,UAAU,GAAG,CAAC,CAAS,EAAE,CAAS,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,GAAG,CAAC,GAAG,CAAC,CAAC;AAE/D;;;GAGG;AACH,SAAS,OAAO,CAAC,CAAS;IACxB,MAAM,CAAC,GAAG,UAAU,CAAC;IACrB,kBAAkB;IAClB,MAAM,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,EAAE,GAAG,GAAG,MAAM,CAAC,CAAC,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC,EAAE,CAAC,EAAE,IAAI,GAAG,MAAM,CAAC,EAAE,CAAC,CAAC;IAC7E,kBAAkB;IA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AAgC;IAC3C,CAAC,EAAE,EAAE,CAAC,KAAK;IACX,CAAC,EAAE,CAAC;IACJ,CAAC,EAAE,GAAG;IACN,MAAM,EAAE,KAAK;IACb,IAAI,EAAE,eAAM;CACb,CACF,CAAC,EAAE,CAAC;AACM,QAAA,WAAW,GAAmB,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,WAAW,CAAC,EAAE,CAAC;AACxD,QAAA,aAAa,GAAmB,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,aAAa,CAAC,EAAE,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/curves/src/_shortw_utils.ts b/node_modules/@noble/curves/src/_shortw_utils.ts deleted file mode 100644 index 3ae5ca43..00000000 --- a/node_modules/@noble/curves/src/_shortw_utils.ts +++ /dev/null @@ -1,20 +0,0 @@ -/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */ -import { hmac } from '@noble/hashes/hmac'; -import { concatBytes, randomBytes } from '@noble/hashes/utils'; -import { weierstrass, CurveType } from './abstract/weierstrass.js'; -import { CHash } from './abstract/utils.js'; - -// connects noble-curves to noble-hashes -export function getHash(hash: CHash) { - return { - hash, - hmac: (key: Uint8Array, ...msgs: Uint8Array[]) => hmac(hash, key, concatBytes(...msgs)), - randomBytes, - }; -} -// Same API as @noble/hashes, with ability to create curve with custom hash -type CurveDef = Readonly>; -export function createCurve(curveDef: CurveDef, defHash: CHash) { - const create = (hash: CHash) => weierstrass({ ...curveDef, ...getHash(hash) }); - return Object.freeze({ ...create(defHash), create }); -} diff --git a/node_modules/@noble/curves/src/abstract/bls.ts b/node_modules/@noble/curves/src/abstract/bls.ts deleted file mode 100644 index 7e965b28..00000000 --- a/node_modules/@noble/curves/src/abstract/bls.ts +++ /dev/null @@ -1,398 +0,0 @@ -/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */ -/** - * BLS (Barreto-Lynn-Scott) family of pairing-friendly curves. - * Implements BLS (Boneh-Lynn-Shacham) signatures. - * Consists of two curves: G1 and G2: - * - G1 is a subgroup of (x, y) E(Fq) over y² = x³ + 4. - * - G2 is a subgroup of ((x₁, x₂+i), (y₁, y₂+i)) E(Fq²) over y² = x³ + 4(1 + i) where i is √-1 - * - Gt, created by bilinear (ate) pairing e(G1, G2), consists of p-th roots of unity in - * Fq^k where k is embedding degree. Only degree 12 is currently supported, 24 is not. - * Pairing is used to aggregate and verify signatures. - * We are using Fp for private keys (shorter) and Fp₂ for signatures (longer). - * Some projects may prefer to swap this relation, it is not supported for now. - */ -import { AffinePoint } from './curve.js'; -import { IField, hashToPrivateScalar } from './modular.js'; -import { Hex, PrivKey, CHash, bitLen, bitGet, ensureBytes } from './utils.js'; -import * as htf from './hash-to-curve.js'; -import { - CurvePointsType, - ProjPointType as ProjPointType, - CurvePointsRes, - weierstrassPoints, -} from './weierstrass.js'; - -type Fp = bigint; // Can be different field? - -// prettier-ignore -const _2n = BigInt(2), _3n = BigInt(3); - -export type SignatureCoder = { - fromHex(hex: Hex): ProjPointType; - toRawBytes(point: ProjPointType): Uint8Array; - toHex(point: ProjPointType): string; -}; - -export type CurveType = { - G1: Omit, 'n'> & { - mapToCurve: htf.MapToCurve; - htfDefaults: htf.Opts; - }; - G2: Omit, 'n'> & { - Signature: SignatureCoder; - mapToCurve: htf.MapToCurve; - htfDefaults: htf.Opts; - }; - fields: { - Fp: IField; - Fr: IField; - Fp2: IField & { - reim: (num: Fp2) => { re: bigint; im: bigint }; - multiplyByB: (num: Fp2) => Fp2; - frobeniusMap(num: Fp2, power: number): Fp2; - }; - Fp6: IField; - Fp12: IField & { - frobeniusMap(num: Fp12, power: number): Fp12; - multiplyBy014(num: Fp12, o0: Fp2, o1: Fp2, o4: Fp2): Fp12; - conjugate(num: Fp12): Fp12; - finalExponentiate(num: Fp12): Fp12; - }; - }; - params: { - x: bigint; - r: bigint; - }; - htfDefaults: htf.Opts; - hash: CHash; // Because we need outputLen for DRBG - randomBytes: (bytesLength?: number) => Uint8Array; -}; - -export type CurveFn = { - getPublicKey: (privateKey: PrivKey) => Uint8Array; - sign: { - (message: Hex, privateKey: PrivKey): Uint8Array; - (message: ProjPointType, privateKey: PrivKey): ProjPointType; - }; - verify: ( - signature: Hex | ProjPointType, - message: Hex | ProjPointType, - publicKey: Hex | ProjPointType - ) => boolean; - verifyBatch: ( - signature: Hex | ProjPointType, - messages: (Hex | ProjPointType)[], - publicKeys: (Hex | ProjPointType)[] - ) => boolean; - aggregatePublicKeys: { - (publicKeys: Hex[]): Uint8Array; - (publicKeys: ProjPointType[]): ProjPointType; - }; - aggregateSignatures: { - (signatures: Hex[]): Uint8Array; - (signatures: ProjPointType[]): ProjPointType; - }; - millerLoop: (ell: [Fp2, Fp2, Fp2][], g1: [Fp, Fp]) => Fp12; - pairing: (P: ProjPointType, Q: ProjPointType, withFinalExponent?: boolean) => Fp12; - G1: CurvePointsRes & ReturnType>; - G2: CurvePointsRes & ReturnType>; - Signature: SignatureCoder; - params: { - x: bigint; - r: bigint; - G1b: bigint; - G2b: Fp2; - }; - fields: { - Fp: IField; - Fp2: IField; - Fp6: IField; - Fp12: IField; - Fr: IField; - }; - utils: { - randomPrivateKey: () => Uint8Array; - calcPairingPrecomputes: (p: AffinePoint) => [Fp2, Fp2, Fp2][]; - }; -}; - -export function bls( - CURVE: CurveType -): CurveFn { - // Fields are specific for curve, so for now we'll need to pass them with opts - const { Fp, Fr, Fp2, Fp6, Fp12 } = CURVE.fields; - const BLS_X_LEN = bitLen(CURVE.params.x); - const groupLen = 32; // TODO: calculate; hardcoded for now - - // Pre-compute coefficients for sparse multiplication - // Point addition and point double calculations is reused for coefficients - function calcPairingPrecomputes(p: AffinePoint) { - const { x, y } = p; - // prettier-ignore - const Qx = x, Qy = y, Qz = Fp2.ONE; - // prettier-ignore - let Rx = Qx, Ry = Qy, Rz = Qz; - let ell_coeff: [Fp2, Fp2, Fp2][] = []; - for (let i = BLS_X_LEN - 2; i >= 0; i--) { - // Double - let t0 = Fp2.sqr(Ry); // Ry² - let t1 = Fp2.sqr(Rz); // Rz² - let t2 = Fp2.multiplyByB(Fp2.mul(t1, _3n)); // 3 * T1 * B - let t3 = Fp2.mul(t2, _3n); // 3 * T2 - let t4 = Fp2.sub(Fp2.sub(Fp2.sqr(Fp2.add(Ry, Rz)), t1), t0); // (Ry + Rz)² - T1 - T0 - ell_coeff.push([ - Fp2.sub(t2, t0), // T2 - T0 - Fp2.mul(Fp2.sqr(Rx), _3n), // 3 * Rx² - Fp2.neg(t4), // -T4 - ]); - Rx = Fp2.div(Fp2.mul(Fp2.mul(Fp2.sub(t0, t3), Rx), Ry), _2n); // ((T0 - T3) * Rx * Ry) / 2 - Ry = Fp2.sub(Fp2.sqr(Fp2.div(Fp2.add(t0, t3), _2n)), Fp2.mul(Fp2.sqr(t2), _3n)); // ((T0 + T3) / 2)² - 3 * T2² - Rz = Fp2.mul(t0, t4); // T0 * T4 - if (bitGet(CURVE.params.x, i)) { - // Addition - let t0 = Fp2.sub(Ry, Fp2.mul(Qy, Rz)); // Ry - Qy * Rz - let t1 = Fp2.sub(Rx, Fp2.mul(Qx, Rz)); // Rx - Qx * Rz - ell_coeff.push([ - Fp2.sub(Fp2.mul(t0, Qx), Fp2.mul(t1, Qy)), // T0 * Qx - T1 * Qy - Fp2.neg(t0), // -T0 - t1, // T1 - ]); - let t2 = Fp2.sqr(t1); // T1² - let t3 = Fp2.mul(t2, t1); // T2 * T1 - let t4 = Fp2.mul(t2, Rx); // T2 * Rx - let t5 = Fp2.add(Fp2.sub(t3, Fp2.mul(t4, _2n)), Fp2.mul(Fp2.sqr(t0), Rz)); // T3 - 2 * T4 + T0² * Rz - Rx = Fp2.mul(t1, t5); // T1 * T5 - Ry = Fp2.sub(Fp2.mul(Fp2.sub(t4, t5), t0), Fp2.mul(t3, Ry)); // (T4 - T5) * T0 - T3 * Ry - Rz = Fp2.mul(Rz, t3); // Rz * T3 - } - } - return ell_coeff; - } - - function millerLoop(ell: [Fp2, Fp2, Fp2][], g1: [Fp, Fp]): Fp12 { - const { x } = CURVE.params; - const Px = g1[0]; - const Py = g1[1]; - let f12 = Fp12.ONE; - for (let j = 0, i = BLS_X_LEN - 2; i >= 0; i--, j++) { - const E = ell[j]; - f12 = Fp12.multiplyBy014(f12, E[0], Fp2.mul(E[1], Px), Fp2.mul(E[2], Py)); - if (bitGet(x, i)) { - j += 1; - const F = ell[j]; - f12 = Fp12.multiplyBy014(f12, F[0], Fp2.mul(F[1], Px), Fp2.mul(F[2], Py)); - } - if (i !== 0) f12 = Fp12.sqr(f12); - } - return Fp12.conjugate(f12); - } - - const utils = { - randomPrivateKey: (): Uint8Array => { - return Fr.toBytes(hashToPrivateScalar(CURVE.randomBytes(groupLen + 8), CURVE.params.r)); - }, - calcPairingPrecomputes, - }; - - // Point on G1 curve: (x, y) - const G1_ = weierstrassPoints({ n: Fr.ORDER, ...CURVE.G1 }); - const G1 = Object.assign( - G1_, - htf.createHasher(G1_.ProjectivePoint, CURVE.G1.mapToCurve, { - ...CURVE.htfDefaults, - ...CURVE.G1.htfDefaults, - }) - ); - - // Sparse multiplication against precomputed coefficients - // TODO: replace with weakmap? - type withPairingPrecomputes = { _PPRECOMPUTES: [Fp2, Fp2, Fp2][] | undefined }; - function pairingPrecomputes(point: G2): [Fp2, Fp2, Fp2][] { - const p = point as G2 & withPairingPrecomputes; - if (p._PPRECOMPUTES) return p._PPRECOMPUTES; - p._PPRECOMPUTES = calcPairingPrecomputes(point.toAffine()); - return p._PPRECOMPUTES; - } - - // TODO: export - // function clearPairingPrecomputes(point: G2) { - // const p = point as G2 & withPairingPrecomputes; - // p._PPRECOMPUTES = undefined; - // } - - // Point on G2 curve (complex numbers): (x₁, x₂+i), (y₁, y₂+i) - const G2_ = weierstrassPoints({ n: Fr.ORDER, ...CURVE.G2 }); - const G2 = Object.assign( - G2_, - htf.createHasher(G2_.ProjectivePoint as htf.H2CPointConstructor, CURVE.G2.mapToCurve, { - ...CURVE.htfDefaults, - ...CURVE.G2.htfDefaults, - }) - ); - - const { Signature } = CURVE.G2; - - // Calculates bilinear pairing - function pairing(Q: G1, P: G2, withFinalExponent: boolean = true): Fp12 { - if (Q.equals(G1.ProjectivePoint.ZERO) || P.equals(G2.ProjectivePoint.ZERO)) - throw new Error('pairing is not available for ZERO point'); - Q.assertValidity(); - P.assertValidity(); - // Performance: 9ms for millerLoop and ~14ms for exp. - const Qa = Q.toAffine(); - const looped = millerLoop(pairingPrecomputes(P), [Qa.x, Qa.y]); - return withFinalExponent ? Fp12.finalExponentiate(looped) : looped; - } - type G1 = typeof G1.ProjectivePoint.BASE; - type G2 = typeof G2.ProjectivePoint.BASE; - - type G1Hex = Hex | G1; - type G2Hex = Hex | G2; - function normP1(point: G1Hex): G1 { - return point instanceof G1.ProjectivePoint ? (point as G1) : G1.ProjectivePoint.fromHex(point); - } - function normP2(point: G2Hex): G2 { - return point instanceof G2.ProjectivePoint ? point : Signature.fromHex(point); - } - function normP2Hash(point: G2Hex, htfOpts?: htf.htfBasicOpts): G2 { - return point instanceof G2.ProjectivePoint - ? point - : (G2.hashToCurve(ensureBytes('point', point), htfOpts) as G2); - } - - // Multiplies generator by private key. - // P = pk x G - function getPublicKey(privateKey: PrivKey): Uint8Array { - return G1.ProjectivePoint.fromPrivateKey(privateKey).toRawBytes(true); - } - - // Executes `hashToCurve` on the message and then multiplies the result by private key. - // S = pk x H(m) - function sign(message: Hex, privateKey: PrivKey, htfOpts?: htf.htfBasicOpts): Uint8Array; - function sign(message: G2, privateKey: PrivKey, htfOpts?: htf.htfBasicOpts): G2; - function sign(message: G2Hex, privateKey: PrivKey, htfOpts?: htf.htfBasicOpts): Uint8Array | G2 { - const msgPoint = normP2Hash(message, htfOpts); - msgPoint.assertValidity(); - const sigPoint = msgPoint.multiply(G1.normPrivateKeyToScalar(privateKey)); - if (message instanceof G2.ProjectivePoint) return sigPoint; - return Signature.toRawBytes(sigPoint); - } - - // Checks if pairing of public key & hash is equal to pairing of generator & signature. - // e(P, H(m)) == e(G, S) - function verify( - signature: G2Hex, - message: G2Hex, - publicKey: G1Hex, - htfOpts?: htf.htfBasicOpts - ): boolean { - const P = normP1(publicKey); - const Hm = normP2Hash(message, htfOpts); - const G = G1.ProjectivePoint.BASE; - const S = normP2(signature); - // Instead of doing 2 exponentiations, we use property of billinear maps - // and do one exp after multiplying 2 points. - const ePHm = pairing(P.negate(), Hm, false); - const eGS = pairing(G, S, false); - const exp = Fp12.finalExponentiate(Fp12.mul(eGS, ePHm)); - return Fp12.eql(exp, Fp12.ONE); - } - - // Adds a bunch of public key points together. - // pk1 + pk2 + pk3 = pkA - function aggregatePublicKeys(publicKeys: Hex[]): Uint8Array; - function aggregatePublicKeys(publicKeys: G1[]): G1; - function aggregatePublicKeys(publicKeys: G1Hex[]): Uint8Array | G1 { - if (!publicKeys.length) throw new Error('Expected non-empty array'); - const agg = publicKeys.map(normP1).reduce((sum, p) => sum.add(p), G1.ProjectivePoint.ZERO); - const aggAffine = agg; //.toAffine(); - if (publicKeys[0] instanceof G1.ProjectivePoint) { - aggAffine.assertValidity(); - return aggAffine; - } - // toRawBytes ensures point validity - return aggAffine.toRawBytes(true); - } - - // Adds a bunch of signature points together. - function aggregateSignatures(signatures: Hex[]): Uint8Array; - function aggregateSignatures(signatures: G2[]): G2; - function aggregateSignatures(signatures: G2Hex[]): Uint8Array | G2 { - if (!signatures.length) throw new Error('Expected non-empty array'); - const agg = signatures.map(normP2).reduce((sum, s) => sum.add(s), G2.ProjectivePoint.ZERO); - const aggAffine = agg; //.toAffine(); - if (signatures[0] instanceof G2.ProjectivePoint) { - aggAffine.assertValidity(); - return aggAffine; - } - return Signature.toRawBytes(aggAffine); - } - - // https://ethresear.ch/t/fast-verification-of-multiple-bls-signatures/5407 - // e(G, S) = e(G, SUM(n)(Si)) = MUL(n)(e(G, Si)) - function verifyBatch( - signature: G2Hex, - messages: G2Hex[], - publicKeys: G1Hex[], - htfOpts?: htf.htfBasicOpts - ): boolean { - // @ts-ignore - // console.log('verifyBatch', bytesToHex(signature as any), messages, publicKeys.map(bytesToHex)); - - if (!messages.length) throw new Error('Expected non-empty messages array'); - if (publicKeys.length !== messages.length) - throw new Error('Pubkey count should equal msg count'); - const sig = normP2(signature); - const nMessages = messages.map((i) => normP2Hash(i, htfOpts)); - const nPublicKeys = publicKeys.map(normP1); - try { - const paired = []; - for (const message of new Set(nMessages)) { - const groupPublicKey = nMessages.reduce( - (groupPublicKey, subMessage, i) => - subMessage === message ? groupPublicKey.add(nPublicKeys[i]) : groupPublicKey, - G1.ProjectivePoint.ZERO - ); - // const msg = message instanceof PointG2 ? message : await PointG2.hashToCurve(message); - // Possible to batch pairing for same msg with different groupPublicKey here - paired.push(pairing(groupPublicKey, message, false)); - } - paired.push(pairing(G1.ProjectivePoint.BASE.negate(), sig, false)); - const product = paired.reduce((a, b) => Fp12.mul(a, b), Fp12.ONE); - const exp = Fp12.finalExponentiate(product); - return Fp12.eql(exp, Fp12.ONE); - } catch { - return false; - } - } - - G1.ProjectivePoint.BASE._setWindowSize(4); - - return { - getPublicKey, - sign, - verify, - verifyBatch, - aggregatePublicKeys, - aggregateSignatures, - millerLoop, - pairing, - G1, - G2, - Signature, - fields: { - Fr, - Fp, - Fp2, - Fp6, - Fp12, - }, - params: { - x: CURVE.params.x, - r: CURVE.params.r, - G1b: CURVE.G1.b, - G2b: CURVE.G2.b, - }, - utils, - }; -} diff --git a/node_modules/@noble/curves/src/abstract/curve.ts b/node_modules/@noble/curves/src/abstract/curve.ts deleted file mode 100644 index 2876377b..00000000 --- a/node_modules/@noble/curves/src/abstract/curve.ts +++ /dev/null @@ -1,203 +0,0 @@ -/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */ -// Abelian group utilities -import { IField, validateField, nLength } from './modular.js'; -import { validateObject } from './utils.js'; -const _0n = BigInt(0); -const _1n = BigInt(1); - -export type AffinePoint = { - x: T; - y: T; -} & { z?: never; t?: never }; - -export interface Group> { - double(): T; - negate(): T; - add(other: T): T; - subtract(other: T): T; - equals(other: T): boolean; - multiply(scalar: bigint): T; -} - -export type GroupConstructor = { - BASE: T; - ZERO: T; -}; -export type Mapper = (i: T[]) => T[]; - -// Elliptic curve multiplication of Point by scalar. Fragile. -// Scalars should always be less than curve order: this should be checked inside of a curve itself. -// Creates precomputation tables for fast multiplication: -// - private scalar is split by fixed size windows of W bits -// - every window point is collected from window's table & added to accumulator -// - since windows are different, same point inside tables won't be accessed more than once per calc -// - each multiplication is 'Math.ceil(CURVE_ORDER / 𝑊) + 1' point additions (fixed for any scalar) -// - +1 window is neccessary for wNAF -// - wNAF reduces table size: 2x less memory + 2x faster generation, but 10% slower multiplication -// TODO: Research returning 2d JS array of windows, instead of a single window. This would allow -// windows to be in different memory locations -export function wNAF>(c: GroupConstructor, bits: number) { - const constTimeNegate = (condition: boolean, item: T): T => { - const neg = item.negate(); - return condition ? neg : item; - }; - const opts = (W: number) => { - const windows = Math.ceil(bits / W) + 1; // +1, because - const windowSize = 2 ** (W - 1); // -1 because we skip zero - return { windows, windowSize }; - }; - return { - constTimeNegate, - // non-const time multiplication ladder - unsafeLadder(elm: T, n: bigint) { - let p = c.ZERO; - let d: T = elm; - while (n > _0n) { - if (n & _1n) p = p.add(d); - d = d.double(); - n >>= _1n; - } - return p; - }, - - /** - * Creates a wNAF precomputation window. Used for caching. - * Default window size is set by `utils.precompute()` and is equal to 8. - * Number of precomputed points depends on the curve size: - * 2^(𝑊−1) * (Math.ceil(𝑛 / 𝑊) + 1), where: - * - 𝑊 is the window size - * - 𝑛 is the bitlength of the curve order. - * For a 256-bit curve and window size 8, the number of precomputed points is 128 * 33 = 4224. - * @returns precomputed point tables flattened to a single array - */ - precomputeWindow(elm: T, W: number): Group[] { - const { windows, windowSize } = opts(W); - const points: T[] = []; - let p: T = elm; - let base = p; - for (let window = 0; window < windows; window++) { - base = p; - points.push(base); - // =1, because we skip zero - for (let i = 1; i < windowSize; i++) { - base = base.add(p); - points.push(base); - } - p = base.double(); - } - return points; - }, - - /** - * Implements ec multiplication using precomputed tables and w-ary non-adjacent form. - * @param W window size - * @param precomputes precomputed tables - * @param n scalar (we don't check here, but should be less than curve order) - * @returns real and fake (for const-time) points - */ - wNAF(W: number, precomputes: T[], n: bigint): { p: T; f: T } { - // TODO: maybe check that scalar is less than group order? wNAF behavious is undefined otherwise - // But need to carefully remove other checks before wNAF. ORDER == bits here - const { windows, windowSize } = opts(W); - - let p = c.ZERO; - let f = c.BASE; - - const mask = BigInt(2 ** W - 1); // Create mask with W ones: 0b1111 for W=4 etc. - const maxNumber = 2 ** W; - const shiftBy = BigInt(W); - - for (let window = 0; window < windows; window++) { - const offset = window * windowSize; - // Extract W bits. - let wbits = Number(n & mask); - - // Shift number by W bits. - n >>= shiftBy; - - // If the bits are bigger than max size, we'll split those. - // +224 => 256 - 32 - if (wbits > windowSize) { - wbits -= maxNumber; - n += _1n; - } - - // This code was first written with assumption that 'f' and 'p' will never be infinity point: - // since each addition is multiplied by 2 ** W, it cannot cancel each other. However, - // there is negate now: it is possible that negated element from low value - // would be the same as high element, which will create carry into next window. - // It's not obvious how this can fail, but still worth investigating later. - - // Check if we're onto Zero point. - // Add random point inside current window to f. - const offset1 = offset; - const offset2 = offset + Math.abs(wbits) - 1; // -1 because we skip zero - const cond1 = window % 2 !== 0; - const cond2 = wbits < 0; - if (wbits === 0) { - // The most important part for const-time getPublicKey - f = f.add(constTimeNegate(cond1, precomputes[offset1])); - } else { - p = p.add(constTimeNegate(cond2, precomputes[offset2])); - } - } - // JIT-compiler should not eliminate f here, since it will later be used in normalizeZ() - // Even if the variable is still unused, there are some checks which will - // throw an exception, so compiler needs to prove they won't happen, which is hard. - // At this point there is a way to F be infinity-point even if p is not, - // which makes it less const-time: around 1 bigint multiply. - return { p, f }; - }, - - wNAFCached(P: T, precomputesMap: Map, n: bigint, transform: Mapper): { p: T; f: T } { - // @ts-ignore - const W: number = P._WINDOW_SIZE || 1; - // Calculate precomputes on a first run, reuse them after - let comp = precomputesMap.get(P); - if (!comp) { - comp = this.precomputeWindow(P, W) as T[]; - if (W !== 1) { - precomputesMap.set(P, transform(comp)); - } - } - return this.wNAF(W, comp, n); - }, - }; -} - -// Generic BasicCurve interface: works even for polynomial fields (BLS): P, n, h would be ok. -// Though generator can be different (Fp2 / Fp6 for BLS). -export type BasicCurve = { - Fp: IField; // Field over which we'll do calculations (Fp) - n: bigint; // Curve order, total count of valid points in the field - nBitLength?: number; // bit length of curve order - nByteLength?: number; // byte length of curve order - h: bigint; // cofactor. we can assign default=1, but users will just ignore it w/o validation - hEff?: bigint; // Number to multiply to clear cofactor - Gx: T; // base point X coordinate - Gy: T; // base point Y coordinate - allowInfinityPoint?: boolean; // bls12-381 requires it. ZERO point is valid, but invalid pubkey -}; - -export function validateBasic(curve: BasicCurve & T) { - validateField(curve.Fp); - validateObject( - curve, - { - n: 'bigint', - h: 'bigint', - Gx: 'field', - Gy: 'field', - }, - { - nBitLength: 'isSafeInteger', - nByteLength: 'isSafeInteger', - } - ); - // Set defaults - return Object.freeze({ - ...nLength(curve.n, curve.nBitLength), - ...curve, - ...{ p: curve.Fp.ORDER }, - } as const); -} diff --git a/node_modules/@noble/curves/src/abstract/edwards.ts b/node_modules/@noble/curves/src/abstract/edwards.ts deleted file mode 100644 index 9124f66a..00000000 --- a/node_modules/@noble/curves/src/abstract/edwards.ts +++ /dev/null @@ -1,513 +0,0 @@ -/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */ -// Twisted Edwards curve. The formula is: ax² + y² = 1 + dx²y² -import { mod } from './modular.js'; -import * as ut from './utils.js'; -import { ensureBytes, FHash, Hex } from './utils.js'; -import { Group, GroupConstructor, wNAF, BasicCurve, validateBasic, AffinePoint } from './curve.js'; - -// Be friendly to bad ECMAScript parsers by not using bigint literals -// prettier-ignore -const _0n = BigInt(0), _1n = BigInt(1), _2n = BigInt(2), _8n = BigInt(8); - -// Edwards curves must declare params a & d. -export type CurveType = BasicCurve & { - a: bigint; // curve param a - d: bigint; // curve param d - hash: FHash; // Hashing - randomBytes: (bytesLength?: number) => Uint8Array; // CSPRNG - adjustScalarBytes?: (bytes: Uint8Array) => Uint8Array; // clears bits to get valid field elemtn - domain?: (data: Uint8Array, ctx: Uint8Array, phflag: boolean) => Uint8Array; // Used for hashing - uvRatio?: (u: bigint, v: bigint) => { isValid: boolean; value: bigint }; // Ratio √(u/v) - prehash?: FHash; // RFC 8032 pre-hashing of messages to sign() / verify() - mapToCurve?: (scalar: bigint[]) => AffinePoint; // for hash-to-curve standard -}; - -// verification rule is either zip215 or rfc8032 / nist186-5. Consult fromHex: -const VERIFY_DEFAULT = { zip215: true }; - -function validateOpts(curve: CurveType) { - const opts = validateBasic(curve); - ut.validateObject( - curve, - { - hash: 'function', - a: 'bigint', - d: 'bigint', - randomBytes: 'function', - }, - { - adjustScalarBytes: 'function', - domain: 'function', - uvRatio: 'function', - mapToCurve: 'function', - } - ); - // Set defaults - return Object.freeze({ ...opts } as const); -} - -// Instance of Extended Point with coordinates in X, Y, Z, T -export interface ExtPointType extends Group { - readonly ex: bigint; - readonly ey: bigint; - readonly ez: bigint; - readonly et: bigint; - get x(): bigint; - get y(): bigint; - assertValidity(): void; - multiply(scalar: bigint): ExtPointType; - multiplyUnsafe(scalar: bigint): ExtPointType; - isSmallOrder(): boolean; - isTorsionFree(): boolean; - clearCofactor(): ExtPointType; - toAffine(iz?: bigint): AffinePoint; - toRawBytes(isCompressed?: boolean): Uint8Array; - toHex(isCompressed?: boolean): string; -} -// Static methods of Extended Point with coordinates in X, Y, Z, T -export interface ExtPointConstructor extends GroupConstructor { - new (x: bigint, y: bigint, z: bigint, t: bigint): ExtPointType; - fromAffine(p: AffinePoint): ExtPointType; - fromHex(hex: Hex): ExtPointType; - fromPrivateKey(privateKey: Hex): ExtPointType; -} - -export type CurveFn = { - CURVE: ReturnType; - getPublicKey: (privateKey: Hex) => Uint8Array; - sign: (message: Hex, privateKey: Hex, options?: { context?: Hex }) => Uint8Array; - verify: ( - sig: Hex, - message: Hex, - publicKey: Hex, - options?: { context?: Hex; zip215: boolean } - ) => boolean; - ExtendedPoint: ExtPointConstructor; - utils: { - randomPrivateKey: () => Uint8Array; - getExtendedPublicKey: (key: Hex) => { - head: Uint8Array; - prefix: Uint8Array; - scalar: bigint; - point: ExtPointType; - pointBytes: Uint8Array; - }; - }; -}; - -// It is not generic twisted curve for now, but ed25519/ed448 generic implementation -export function twistedEdwards(curveDef: CurveType): CurveFn { - const CURVE = validateOpts(curveDef) as ReturnType; - const { - Fp, - n: CURVE_ORDER, - prehash: prehash, - hash: cHash, - randomBytes, - nByteLength, - h: cofactor, - } = CURVE; - const MASK = _2n << (BigInt(nByteLength * 8) - _1n); - const modP = Fp.create; // Function overrides - - // sqrt(u/v) - const uvRatio = - CURVE.uvRatio || - ((u: bigint, v: bigint) => { - try { - return { isValid: true, value: Fp.sqrt(u * Fp.inv(v)) }; - } catch (e) { - return { isValid: false, value: _0n }; - } - }); - const adjustScalarBytes = CURVE.adjustScalarBytes || ((bytes: Uint8Array) => bytes); // NOOP - const domain = - CURVE.domain || - ((data: Uint8Array, ctx: Uint8Array, phflag: boolean) => { - if (ctx.length || phflag) throw new Error('Contexts/pre-hash are not supported'); - return data; - }); // NOOP - const inBig = (n: bigint) => typeof n === 'bigint' && _0n < n; // n in [1..] - const inRange = (n: bigint, max: bigint) => inBig(n) && inBig(max) && n < max; // n in [1..max-1] - const in0MaskRange = (n: bigint) => n === _0n || inRange(n, MASK); // n in [0..MASK-1] - function assertInRange(n: bigint, max: bigint) { - // n in [1..max-1] - if (inRange(n, max)) return n; - throw new Error(`Expected valid scalar < ${max}, got ${typeof n} ${n}`); - } - function assertGE0(n: bigint) { - // n in [0..CURVE_ORDER-1] - return n === _0n ? n : assertInRange(n, CURVE_ORDER); // GE = prime subgroup, not full group - } - const pointPrecomputes = new Map(); - function isPoint(other: unknown) { - if (!(other instanceof Point)) throw new Error('ExtendedPoint expected'); - } - // Extended Point works in extended coordinates: (x, y, z, t) ∋ (x=x/z, y=y/z, t=xy). - // https://en.wikipedia.org/wiki/Twisted_Edwards_curve#Extended_coordinates - class Point implements ExtPointType { - static readonly BASE = new Point(CURVE.Gx, CURVE.Gy, _1n, modP(CURVE.Gx * CURVE.Gy)); - static readonly ZERO = new Point(_0n, _1n, _1n, _0n); // 0, 1, 1, 0 - - constructor( - readonly ex: bigint, - readonly ey: bigint, - readonly ez: bigint, - readonly et: bigint - ) { - if (!in0MaskRange(ex)) throw new Error('x required'); - if (!in0MaskRange(ey)) throw new Error('y required'); - if (!in0MaskRange(ez)) throw new Error('z required'); - if (!in0MaskRange(et)) throw new Error('t required'); - } - - get x(): bigint { - return this.toAffine().x; - } - get y(): bigint { - return this.toAffine().y; - } - - static fromAffine(p: AffinePoint): Point { - if (p instanceof Point) throw new Error('extended point not allowed'); - const { x, y } = p || {}; - if (!in0MaskRange(x) || !in0MaskRange(y)) throw new Error('invalid affine point'); - return new Point(x, y, _1n, modP(x * y)); - } - static normalizeZ(points: Point[]): Point[] { - const toInv = Fp.invertBatch(points.map((p) => p.ez)); - return points.map((p, i) => p.toAffine(toInv[i])).map(Point.fromAffine); - } - - // We calculate precomputes for elliptic curve point multiplication - // using windowed method. This specifies window size and - // stores precomputed values. Usually only base point would be precomputed. - _WINDOW_SIZE?: number; - - // "Private method", don't use it directly - _setWindowSize(windowSize: number) { - this._WINDOW_SIZE = windowSize; - pointPrecomputes.delete(this); - } - // Not required for fromHex(), which always creates valid points. - // Could be useful for fromAffine(). - assertValidity(): void { - const { a, d } = CURVE; - if (this.is0()) throw new Error('bad point: ZERO'); // TODO: optimize, with vars below? - // Equation in affine coordinates: ax² + y² = 1 + dx²y² - // Equation in projective coordinates (X/Z, Y/Z, Z): (aX² + Y²)Z² = Z⁴ + dX²Y² - const { ex: X, ey: Y, ez: Z, et: T } = this; - const X2 = modP(X * X); // X² - const Y2 = modP(Y * Y); // Y² - const Z2 = modP(Z * Z); // Z² - const Z4 = modP(Z2 * Z2); // Z⁴ - const aX2 = modP(X2 * a); // aX² - const left = modP(Z2 * modP(aX2 + Y2)); // (aX² + Y²)Z² - const right = modP(Z4 + modP(d * modP(X2 * Y2))); // Z⁴ + dX²Y² - if (left !== right) throw new Error('bad point: equation left != right (1)'); - // In Extended coordinates we also have T, which is x*y=T/Z: check X*Y == Z*T - const XY = modP(X * Y); - const ZT = modP(Z * T); - if (XY !== ZT) throw new Error('bad point: equation left != right (2)'); - } - - // Compare one point to another. - equals(other: Point): boolean { - isPoint(other); - const { ex: X1, ey: Y1, ez: Z1 } = this; - const { ex: X2, ey: Y2, ez: Z2 } = other; - const X1Z2 = modP(X1 * Z2); - const X2Z1 = modP(X2 * Z1); - const Y1Z2 = modP(Y1 * Z2); - const Y2Z1 = modP(Y2 * Z1); - return X1Z2 === X2Z1 && Y1Z2 === Y2Z1; - } - - protected is0(): boolean { - return this.equals(Point.ZERO); - } - - negate(): Point { - // Flips point sign to a negative one (-x, y in affine coords) - return new Point(modP(-this.ex), this.ey, this.ez, modP(-this.et)); - } - - // Fast algo for doubling Extended Point. - // https://hyperelliptic.org/EFD/g1p/auto-twisted-extended.html#doubling-dbl-2008-hwcd - // Cost: 4M + 4S + 1*a + 6add + 1*2. - double(): Point { - const { a } = CURVE; - const { ex: X1, ey: Y1, ez: Z1 } = this; - const A = modP(X1 * X1); // A = X12 - const B = modP(Y1 * Y1); // B = Y12 - const C = modP(_2n * modP(Z1 * Z1)); // C = 2*Z12 - const D = modP(a * A); // D = a*A - const x1y1 = X1 + Y1; - const E = modP(modP(x1y1 * x1y1) - A - B); // E = (X1+Y1)2-A-B - const G = D + B; // G = D+B - const F = G - C; // F = G-C - const H = D - B; // H = D-B - const X3 = modP(E * F); // X3 = E*F - const Y3 = modP(G * H); // Y3 = G*H - const T3 = modP(E * H); // T3 = E*H - const Z3 = modP(F * G); // Z3 = F*G - return new Point(X3, Y3, Z3, T3); - } - - // Fast algo for adding 2 Extended Points. - // https://hyperelliptic.org/EFD/g1p/auto-twisted-extended.html#addition-add-2008-hwcd - // Cost: 9M + 1*a + 1*d + 7add. - add(other: Point) { - isPoint(other); - const { a, d } = CURVE; - const { ex: X1, ey: Y1, ez: Z1, et: T1 } = this; - const { ex: X2, ey: Y2, ez: Z2, et: T2 } = other; - // Faster algo for adding 2 Extended Points when curve's a=-1. - // http://hyperelliptic.org/EFD/g1p/auto-twisted-extended-1.html#addition-add-2008-hwcd-4 - // Cost: 8M + 8add + 2*2. - // Note: It does not check whether the `other` point is valid. - if (a === BigInt(-1)) { - const A = modP((Y1 - X1) * (Y2 + X2)); - const B = modP((Y1 + X1) * (Y2 - X2)); - const F = modP(B - A); - if (F === _0n) return this.double(); // Same point. Tests say it doesn't affect timing - const C = modP(Z1 * _2n * T2); - const D = modP(T1 * _2n * Z2); - const E = D + C; - const G = B + A; - const H = D - C; - const X3 = modP(E * F); - const Y3 = modP(G * H); - const T3 = modP(E * H); - const Z3 = modP(F * G); - return new Point(X3, Y3, Z3, T3); - } - const A = modP(X1 * X2); // A = X1*X2 - const B = modP(Y1 * Y2); // B = Y1*Y2 - const C = modP(T1 * d * T2); // C = T1*d*T2 - const D = modP(Z1 * Z2); // D = Z1*Z2 - const E = modP((X1 + Y1) * (X2 + Y2) - A - B); // E = (X1+Y1)*(X2+Y2)-A-B - const F = D - C; // F = D-C - const G = D + C; // G = D+C - const H = modP(B - a * A); // H = B-a*A - const X3 = modP(E * F); // X3 = E*F - const Y3 = modP(G * H); // Y3 = G*H - const T3 = modP(E * H); // T3 = E*H - const Z3 = modP(F * G); // Z3 = F*G - - return new Point(X3, Y3, Z3, T3); - } - - subtract(other: Point): Point { - return this.add(other.negate()); - } - - private wNAF(n: bigint): { p: Point; f: Point } { - return wnaf.wNAFCached(this, pointPrecomputes, n, Point.normalizeZ); - } - - // Constant-time multiplication. - multiply(scalar: bigint): Point { - const { p, f } = this.wNAF(assertInRange(scalar, CURVE_ORDER)); - return Point.normalizeZ([p, f])[0]; - } - - // Non-constant-time multiplication. Uses double-and-add algorithm. - // It's faster, but should only be used when you don't care about - // an exposed private key e.g. sig verification. - // Does NOT allow scalars higher than CURVE.n. - multiplyUnsafe(scalar: bigint): Point { - let n = assertGE0(scalar); // 0 <= scalar < CURVE.n - if (n === _0n) return I; - if (this.equals(I) || n === _1n) return this; - if (this.equals(G)) return this.wNAF(n).p; - return wnaf.unsafeLadder(this, n); - } - - // Checks if point is of small order. - // If you add something to small order point, you will have "dirty" - // point with torsion component. - // Multiplies point by cofactor and checks if the result is 0. - isSmallOrder(): boolean { - return this.multiplyUnsafe(cofactor).is0(); - } - - // Multiplies point by curve order and checks if the result is 0. - // Returns `false` is the point is dirty. - isTorsionFree(): boolean { - return wnaf.unsafeLadder(this, CURVE_ORDER).is0(); - } - - // Converts Extended point to default (x, y) coordinates. - // Can accept precomputed Z^-1 - for example, from invertBatch. - toAffine(iz?: bigint): AffinePoint { - const { ex: x, ey: y, ez: z } = this; - const is0 = this.is0(); - if (iz == null) iz = is0 ? _8n : (Fp.inv(z) as bigint); // 8 was chosen arbitrarily - const ax = modP(x * iz); - const ay = modP(y * iz); - const zz = modP(z * iz); - if (is0) return { x: _0n, y: _1n }; - if (zz !== _1n) throw new Error('invZ was invalid'); - return { x: ax, y: ay }; - } - - clearCofactor(): Point { - const { h: cofactor } = CURVE; - if (cofactor === _1n) return this; - return this.multiplyUnsafe(cofactor); - } - - // Converts hash string or Uint8Array to Point. - // Uses algo from RFC8032 5.1.3. - static fromHex(hex: Hex, zip215 = false): Point { - const { d, a } = CURVE; - const len = Fp.BYTES; - hex = ensureBytes('pointHex', hex, len); // copy hex to a new array - const normed = hex.slice(); // copy again, we'll manipulate it - const lastByte = hex[len - 1]; // select last byte - normed[len - 1] = lastByte & ~0x80; // clear last bit - const y = ut.bytesToNumberLE(normed); - if (y === _0n) { - // y=0 is allowed - } else { - // RFC8032 prohibits >= p, but ZIP215 doesn't - if (zip215) assertInRange(y, MASK); // zip215=true [1..P-1] (2^255-19-1 for ed25519) - else assertInRange(y, Fp.ORDER); // zip215=false [1..MASK-1] (2^256-1 for ed25519) - } - - // Ed25519: x² = (y²-1)/(dy²+1) mod p. Ed448: x² = (y²-1)/(dy²-1) mod p. Generic case: - // ax²+y²=1+dx²y² => y²-1=dx²y²-ax² => y²-1=x²(dy²-a) => x²=(y²-1)/(dy²-a) - const y2 = modP(y * y); // denominator is always non-0 mod p. - const u = modP(y2 - _1n); // u = y² - 1 - const v = modP(d * y2 - a); // v = d y² + 1. - let { isValid, value: x } = uvRatio(u, v); // √(u/v) - if (!isValid) throw new Error('Point.fromHex: invalid y coordinate'); - const isXOdd = (x & _1n) === _1n; // There are 2 square roots. Use x_0 bit to select proper - const isLastByteOdd = (lastByte & 0x80) !== 0; // x_0, last bit - if (!zip215 && x === _0n && isLastByteOdd) - // if x=0 and x_0 = 1, fail - throw new Error('Point.fromHex: x=0 and x_0=1'); - if (isLastByteOdd !== isXOdd) x = modP(-x); // if x_0 != x mod 2, set x = p-x - return Point.fromAffine({ x, y }); - } - static fromPrivateKey(privKey: Hex) { - return getExtendedPublicKey(privKey).point; - } - toRawBytes(): Uint8Array { - const { x, y } = this.toAffine(); - const bytes = ut.numberToBytesLE(y, Fp.BYTES); // each y has 2 x values (x, -y) - bytes[bytes.length - 1] |= x & _1n ? 0x80 : 0; // when compressing, it's enough to store y - return bytes; // and use the last byte to encode sign of x - } - toHex(): string { - return ut.bytesToHex(this.toRawBytes()); // Same as toRawBytes, but returns string. - } - } - const { BASE: G, ZERO: I } = Point; - const wnaf = wNAF(Point, nByteLength * 8); - - function modN(a: bigint) { - return mod(a, CURVE_ORDER); - } - // Little-endian SHA512 with modulo n - function modN_LE(hash: Uint8Array): bigint { - return modN(ut.bytesToNumberLE(hash)); - } - - /** Convenience method that creates public key and other stuff. RFC8032 5.1.5 */ - function getExtendedPublicKey(key: Hex) { - const len = nByteLength; - key = ensureBytes('private key', key, len); - // Hash private key with curve's hash function to produce uniformingly random input - // Check byte lengths: ensure(64, h(ensure(32, key))) - const hashed = ensureBytes('hashed private key', cHash(key), 2 * len); - const head = adjustScalarBytes(hashed.slice(0, len)); // clear first half bits, produce FE - const prefix = hashed.slice(len, 2 * len); // second half is called key prefix (5.1.6) - const scalar = modN_LE(head); // The actual private scalar - const point = G.multiply(scalar); // Point on Edwards curve aka public key - const pointBytes = point.toRawBytes(); // Uint8Array representation - return { head, prefix, scalar, point, pointBytes }; - } - - // Calculates EdDSA pub key. RFC8032 5.1.5. Privkey is hashed. Use first half with 3 bits cleared - function getPublicKey(privKey: Hex): Uint8Array { - return getExtendedPublicKey(privKey).pointBytes; - } - - // int('LE', SHA512(dom2(F, C) || msgs)) mod N - function hashDomainToScalar(context: Hex = new Uint8Array(), ...msgs: Uint8Array[]) { - const msg = ut.concatBytes(...msgs); - return modN_LE(cHash(domain(msg, ensureBytes('context', context), !!prehash))); - } - - /** Signs message with privateKey. RFC8032 5.1.6 */ - function sign(msg: Hex, privKey: Hex, options: { context?: Hex } = {}): Uint8Array { - msg = ensureBytes('message', msg); - if (prehash) msg = prehash(msg); // for ed25519ph etc. - const { prefix, scalar, pointBytes } = getExtendedPublicKey(privKey); - const r = hashDomainToScalar(options.context, prefix, msg); // r = dom2(F, C) || prefix || PH(M) - const R = G.multiply(r).toRawBytes(); // R = rG - const k = hashDomainToScalar(options.context, R, pointBytes, msg); // R || A || PH(M) - const s = modN(r + k * scalar); // S = (r + k * s) mod L - assertGE0(s); // 0 <= s < l - const res = ut.concatBytes(R, ut.numberToBytesLE(s, Fp.BYTES)); - return ensureBytes('result', res, nByteLength * 2); // 64-byte signature - } - - const verifyOpts: { context?: Hex; zip215?: boolean } = VERIFY_DEFAULT; - function verify(sig: Hex, msg: Hex, publicKey: Hex, options = verifyOpts): boolean { - const { context, zip215 } = options; - const len = Fp.BYTES; // Verifies EdDSA signature against message and public key. RFC8032 5.1.7. - sig = ensureBytes('signature', sig, 2 * len); // An extended group equation is checked. - msg = ensureBytes('message', msg); - if (prehash) msg = prehash(msg); // for ed25519ph, etc - - const s = ut.bytesToNumberLE(sig.slice(len, 2 * len)); - // zip215: true is good for consensus-critical apps and allows points < 2^256 - // zip215: false follows RFC8032 / NIST186-5 and restricts points to CURVE.p - let A, R, SB; - try { - A = Point.fromHex(publicKey, zip215); - R = Point.fromHex(sig.slice(0, len), zip215); - SB = G.multiplyUnsafe(s); // 0 <= s < l is done inside - } catch (error) { - return false; - } - if (!zip215 && A.isSmallOrder()) return false; - - const k = hashDomainToScalar(context, R.toRawBytes(), A.toRawBytes(), msg); - const RkA = R.add(A.multiplyUnsafe(k)); - // [8][S]B = [8]R + [8][k]A' - return RkA.subtract(SB).clearCofactor().equals(Point.ZERO); - } - - G._setWindowSize(8); // Enable precomputes. Slows down first publicKey computation by 20ms. - - const utils = { - getExtendedPublicKey, - // ed25519 private keys are uniform 32b. No need to check for modulo bias, like in secp256k1. - randomPrivateKey: (): Uint8Array => randomBytes(Fp.BYTES), - - /** - * We're doing scalar multiplication (used in getPublicKey etc) with precomputed BASE_POINT - * values. This slows down first getPublicKey() by milliseconds (see Speed section), - * but allows to speed-up subsequent getPublicKey() calls up to 20x. - * @param windowSize 2, 4, 8, 16 - */ - precompute(windowSize = 8, point = Point.BASE): typeof Point.BASE { - point._setWindowSize(windowSize); - point.multiply(BigInt(3)); - return point; - }, - }; - - return { - CURVE, - getPublicKey, - sign, - verify, - ExtendedPoint: Point, - utils, - }; -} diff --git a/node_modules/@noble/curves/src/abstract/hash-to-curve.ts b/node_modules/@noble/curves/src/abstract/hash-to-curve.ts deleted file mode 100644 index 38d31d4c..00000000 --- a/node_modules/@noble/curves/src/abstract/hash-to-curve.ts +++ /dev/null @@ -1,223 +0,0 @@ -/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */ -import type { Group, GroupConstructor, AffinePoint } from './curve.js'; -import { mod, IField } from './modular.js'; -import { bytesToNumberBE, CHash, concatBytes, utf8ToBytes, validateObject } from './utils.js'; - -/** - * * `DST` is a domain separation tag, defined in section 2.2.5 - * * `p` characteristic of F, where F is a finite field of characteristic p and order q = p^m - * * `m` is extension degree (1 for prime fields) - * * `k` is the target security target in bits (e.g. 128), from section 5.1 - * * `expand` is `xmd` (SHA2, SHA3, BLAKE) or `xof` (SHAKE, BLAKE-XOF) - * * `hash` conforming to `utils.CHash` interface, with `outputLen` / `blockLen` props - */ -type UnicodeOrBytes = string | Uint8Array; -export type Opts = { - DST: UnicodeOrBytes; - p: bigint; - m: number; - k: number; - expand: 'xmd' | 'xof'; - hash: CHash; -}; - -function validateDST(dst: UnicodeOrBytes): Uint8Array { - if (dst instanceof Uint8Array) return dst; - if (typeof dst === 'string') return utf8ToBytes(dst); - throw new Error('DST must be Uint8Array or string'); -} - -// Octet Stream to Integer. "spec" implementation of os2ip is 2.5x slower vs bytesToNumberBE. -const os2ip = bytesToNumberBE; - -// Integer to Octet Stream (numberToBytesBE) -function i2osp(value: number, length: number): Uint8Array { - if (value < 0 || value >= 1 << (8 * length)) { - throw new Error(`bad I2OSP call: value=${value} length=${length}`); - } - const res = Array.from({ length }).fill(0) as number[]; - for (let i = length - 1; i >= 0; i--) { - res[i] = value & 0xff; - value >>>= 8; - } - return new Uint8Array(res); -} - -function strxor(a: Uint8Array, b: Uint8Array): Uint8Array { - const arr = new Uint8Array(a.length); - for (let i = 0; i < a.length; i++) { - arr[i] = a[i] ^ b[i]; - } - return arr; -} - -function isBytes(item: unknown): void { - if (!(item instanceof Uint8Array)) throw new Error('Uint8Array expected'); -} -function isNum(item: unknown): void { - if (!Number.isSafeInteger(item)) throw new Error('number expected'); -} - -// Produces a uniformly random byte string using a cryptographic hash function H that outputs b bits -// https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-hash-to-curve-11#section-5.4.1 -export function expand_message_xmd( - msg: Uint8Array, - DST: Uint8Array, - lenInBytes: number, - H: CHash -): Uint8Array { - isBytes(msg); - isBytes(DST); - isNum(lenInBytes); - // https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-hash-to-curve-16#section-5.3.3 - if (DST.length > 255) DST = H(concatBytes(utf8ToBytes('H2C-OVERSIZE-DST-'), DST)); - const { outputLen: b_in_bytes, blockLen: r_in_bytes } = H; - const ell = Math.ceil(lenInBytes / b_in_bytes); - if (ell > 255) throw new Error('Invalid xmd length'); - const DST_prime = concatBytes(DST, i2osp(DST.length, 1)); - const Z_pad = i2osp(0, r_in_bytes); - const l_i_b_str = i2osp(lenInBytes, 2); // len_in_bytes_str - const b = new Array(ell); - const b_0 = H(concatBytes(Z_pad, msg, l_i_b_str, i2osp(0, 1), DST_prime)); - b[0] = H(concatBytes(b_0, i2osp(1, 1), DST_prime)); - for (let i = 1; i <= ell; i++) { - const args = [strxor(b_0, b[i - 1]), i2osp(i + 1, 1), DST_prime]; - b[i] = H(concatBytes(...args)); - } - const pseudo_random_bytes = concatBytes(...b); - return pseudo_random_bytes.slice(0, lenInBytes); -} - -export function expand_message_xof( - msg: Uint8Array, - DST: Uint8Array, - lenInBytes: number, - k: number, - H: CHash -): Uint8Array { - isBytes(msg); - isBytes(DST); - isNum(lenInBytes); - // https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-hash-to-curve-16#section-5.3.3 - // DST = H('H2C-OVERSIZE-DST-' || a_very_long_DST, Math.ceil((lenInBytes * k) / 8)); - if (DST.length > 255) { - const dkLen = Math.ceil((2 * k) / 8); - DST = H.create({ dkLen }).update(utf8ToBytes('H2C-OVERSIZE-DST-')).update(DST).digest(); - } - if (lenInBytes > 65535 || DST.length > 255) - throw new Error('expand_message_xof: invalid lenInBytes'); - return ( - H.create({ dkLen: lenInBytes }) - .update(msg) - .update(i2osp(lenInBytes, 2)) - // 2. DST_prime = DST || I2OSP(len(DST), 1) - .update(DST) - .update(i2osp(DST.length, 1)) - .digest() - ); -} - -/** - * Hashes arbitrary-length byte strings to a list of one or more elements of a finite field F - * https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-hash-to-curve-11#section-5.3 - * @param msg a byte string containing the message to hash - * @param count the number of elements of F to output - * @param options `{DST: string, p: bigint, m: number, k: number, expand: 'xmd' | 'xof', hash: H}`, see above - * @returns [u_0, ..., u_(count - 1)], a list of field elements. - */ -export function hash_to_field(msg: Uint8Array, count: number, options: Opts): bigint[][] { - validateObject(options, { - DST: 'string', - p: 'bigint', - m: 'isSafeInteger', - k: 'isSafeInteger', - hash: 'hash', - }); - const { p, k, m, hash, expand, DST: _DST } = options; - isBytes(msg); - isNum(count); - const DST = validateDST(_DST); - const log2p = p.toString(2).length; - const L = Math.ceil((log2p + k) / 8); // section 5.1 of ietf draft link above - const len_in_bytes = count * m * L; - let prb; // pseudo_random_bytes - if (expand === 'xmd') { - prb = expand_message_xmd(msg, DST, len_in_bytes, hash); - } else if (expand === 'xof') { - prb = expand_message_xof(msg, DST, len_in_bytes, k, hash); - } else if (expand === '_internal_pass') { - // for internal tests only - prb = msg; - } else { - throw new Error('expand must be "xmd" or "xof"'); - } - const u = new Array(count); - for (let i = 0; i < count; i++) { - const e = new Array(m); - for (let j = 0; j < m; j++) { - const elm_offset = L * (j + i * m); - const tv = prb.subarray(elm_offset, elm_offset + L); - e[j] = mod(os2ip(tv), p); - } - u[i] = e; - } - return u; -} - -export function isogenyMap>(field: F, map: [T[], T[], T[], T[]]) { - // Make same order as in spec - const COEFF = map.map((i) => Array.from(i).reverse()); - return (x: T, y: T) => { - const [xNum, xDen, yNum, yDen] = COEFF.map((val) => - val.reduce((acc, i) => field.add(field.mul(acc, x), i)) - ); - x = field.div(xNum, xDen); // xNum / xDen - y = field.mul(y, field.div(yNum, yDen)); // y * (yNum / yDev) - return { x, y }; - }; -} - -export interface H2CPoint extends Group> { - add(rhs: H2CPoint): H2CPoint; - toAffine(iz?: bigint): AffinePoint; - clearCofactor(): H2CPoint; - assertValidity(): void; -} - -export interface H2CPointConstructor extends GroupConstructor> { - fromAffine(ap: AffinePoint): H2CPoint; -} - -export type MapToCurve = (scalar: bigint[]) => AffinePoint; - -// Separated from initialization opts, so users won't accidentally change per-curve parameters -// (changing DST is ok!) -export type htfBasicOpts = { DST: UnicodeOrBytes }; - -export function createHasher( - Point: H2CPointConstructor, - mapToCurve: MapToCurve, - def: Opts & { encodeDST?: UnicodeOrBytes } -) { - if (typeof mapToCurve !== 'function') throw new Error('mapToCurve() must be defined'); - return { - // Encodes byte string to elliptic curve - // https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-hash-to-curve-16#section-3 - hashToCurve(msg: Uint8Array, options?: htfBasicOpts) { - const u = hash_to_field(msg, 2, { ...def, DST: def.DST, ...options } as Opts); - const u0 = Point.fromAffine(mapToCurve(u[0])); - const u1 = Point.fromAffine(mapToCurve(u[1])); - const P = u0.add(u1).clearCofactor(); - P.assertValidity(); - return P; - }, - - // https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-hash-to-curve-16#section-3 - encodeToCurve(msg: Uint8Array, options?: htfBasicOpts) { - const u = hash_to_field(msg, 1, { ...def, DST: def.encodeDST, ...options } as Opts); - const P = Point.fromAffine(mapToCurve(u[0])).clearCofactor(); - P.assertValidity(); - return P; - }, - }; -} diff --git a/node_modules/@noble/curves/src/abstract/modular.ts b/node_modules/@noble/curves/src/abstract/modular.ts deleted file mode 100644 index bb1061bc..00000000 --- a/node_modules/@noble/curves/src/abstract/modular.ts +++ /dev/null @@ -1,425 +0,0 @@ -/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */ -// Utilities for modular arithmetics and finite fields -import { - bitMask, - numberToBytesBE, - numberToBytesLE, - bytesToNumberBE, - bytesToNumberLE, - ensureBytes, - validateObject, -} from './utils.js'; -// prettier-ignore -const _0n = BigInt(0), _1n = BigInt(1), _2n = BigInt(2), _3n = BigInt(3); -// prettier-ignore -const _4n = BigInt(4), _5n = BigInt(5), _8n = BigInt(8); -// prettier-ignore -const _9n = BigInt(9), _16n = BigInt(16); - -// Calculates a modulo b -export function mod(a: bigint, b: bigint): bigint { - const result = a % b; - return result >= _0n ? result : b + result; -} -/** - * Efficiently raise num to power and do modular division. - * Unsafe in some contexts: uses ladder, so can expose bigint bits. - * @example - * pow(2n, 6n, 11n) // 64n % 11n == 9n - */ -// TODO: use field version && remove -export function pow(num: bigint, power: bigint, modulo: bigint): bigint { - if (modulo <= _0n || power < _0n) throw new Error('Expected power/modulo > 0'); - if (modulo === _1n) return _0n; - let res = _1n; - while (power > _0n) { - if (power & _1n) res = (res * num) % modulo; - num = (num * num) % modulo; - power >>= _1n; - } - return res; -} - -// Does x ^ (2 ^ power) mod p. pow2(30, 4) == 30 ^ (2 ^ 4) -export function pow2(x: bigint, power: bigint, modulo: bigint): bigint { - let res = x; - while (power-- > _0n) { - res *= res; - res %= modulo; - } - return res; -} - -// Inverses number over modulo -export function invert(number: bigint, modulo: bigint): bigint { - if (number === _0n || modulo <= _0n) { - throw new Error(`invert: expected positive integers, got n=${number} mod=${modulo}`); - } - // Euclidean GCD https://brilliant.org/wiki/extended-euclidean-algorithm/ - // Fermat's little theorem "CT-like" version inv(n) = n^(m-2) mod m is 30x slower. - let a = mod(number, modulo); - let b = modulo; - // prettier-ignore - let x = _0n, y = _1n, u = _1n, v = _0n; - while (a !== _0n) { - // JIT applies optimization if those two lines follow each other - const q = b / a; - const r = b % a; - const m = x - u * q; - const n = y - v * q; - // prettier-ignore - b = a, a = r, x = u, y = v, u = m, v = n; - } - const gcd = b; - if (gcd !== _1n) throw new Error('invert: does not exist'); - return mod(x, modulo); -} - -// Tonelli-Shanks algorithm -// Paper 1: https://eprint.iacr.org/2012/685.pdf (page 12) -// Paper 2: Square Roots from 1; 24, 51, 10 to Dan Shanks -export function tonelliShanks(P: bigint) { - // Legendre constant: used to calculate Legendre symbol (a | p), - // which denotes the value of a^((p-1)/2) (mod p). - // (a | p) ≡ 1 if a is a square (mod p) - // (a | p) ≡ -1 if a is not a square (mod p) - // (a | p) ≡ 0 if a ≡ 0 (mod p) - const legendreC = (P - _1n) / _2n; - - let Q: bigint, S: number, Z: bigint; - // Step 1: By factoring out powers of 2 from p - 1, - // find q and s such that p - 1 = q*(2^s) with q odd - for (Q = P - _1n, S = 0; Q % _2n === _0n; Q /= _2n, S++); - - // Step 2: Select a non-square z such that (z | p) ≡ -1 and set c ≡ zq - for (Z = _2n; Z < P && pow(Z, legendreC, P) !== P - _1n; Z++); - - // Fast-path - if (S === 1) { - const p1div4 = (P + _1n) / _4n; - return function tonelliFast(Fp: IField, n: T) { - const root = Fp.pow(n, p1div4); - if (!Fp.eql(Fp.sqr(root), n)) throw new Error('Cannot find square root'); - return root; - }; - } - - // Slow-path - const Q1div2 = (Q + _1n) / _2n; - return function tonelliSlow(Fp: IField, n: T): T { - // Step 0: Check that n is indeed a square: (n | p) should not be ≡ -1 - if (Fp.pow(n, legendreC) === Fp.neg(Fp.ONE)) throw new Error('Cannot find square root'); - let r = S; - // TODO: will fail at Fp2/etc - let g = Fp.pow(Fp.mul(Fp.ONE, Z), Q); // will update both x and b - let x = Fp.pow(n, Q1div2); // first guess at the square root - let b = Fp.pow(n, Q); // first guess at the fudge factor - - while (!Fp.eql(b, Fp.ONE)) { - if (Fp.eql(b, Fp.ZERO)) return Fp.ZERO; // https://en.wikipedia.org/wiki/Tonelli%E2%80%93Shanks_algorithm (4. If t = 0, return r = 0) - // Find m such b^(2^m)==1 - let m = 1; - for (let t2 = Fp.sqr(b); m < r; m++) { - if (Fp.eql(t2, Fp.ONE)) break; - t2 = Fp.sqr(t2); // t2 *= t2 - } - // NOTE: r-m-1 can be bigger than 32, need to convert to bigint before shift, otherwise there will be overflow - const ge = Fp.pow(g, _1n << BigInt(r - m - 1)); // ge = 2^(r-m-1) - g = Fp.sqr(ge); // g = ge * ge - x = Fp.mul(x, ge); // x *= ge - b = Fp.mul(b, g); // b *= g - r = m; - } - return x; - }; -} - -export function FpSqrt(P: bigint) { - // NOTE: different algorithms can give different roots, it is up to user to decide which one they want. - // For example there is FpSqrtOdd/FpSqrtEven to choice root based on oddness (used for hash-to-curve). - - // P ≡ 3 (mod 4) - // √n = n^((P+1)/4) - if (P % _4n === _3n) { - // Not all roots possible! - // const ORDER = - // 0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffaaabn; - // const NUM = 72057594037927816n; - const p1div4 = (P + _1n) / _4n; - return function sqrt3mod4(Fp: IField, n: T) { - const root = Fp.pow(n, p1div4); - // Throw if root**2 != n - if (!Fp.eql(Fp.sqr(root), n)) throw new Error('Cannot find square root'); - return root; - }; - } - - // Atkin algorithm for q ≡ 5 (mod 8), https://eprint.iacr.org/2012/685.pdf (page 10) - if (P % _8n === _5n) { - const c1 = (P - _5n) / _8n; - return function sqrt5mod8(Fp: IField, n: T) { - const n2 = Fp.mul(n, _2n); - const v = Fp.pow(n2, c1); - const nv = Fp.mul(n, v); - const i = Fp.mul(Fp.mul(nv, _2n), v); - const root = Fp.mul(nv, Fp.sub(i, Fp.ONE)); - if (!Fp.eql(Fp.sqr(root), n)) throw new Error('Cannot find square root'); - return root; - }; - } - - // P ≡ 9 (mod 16) - if (P % _16n === _9n) { - // NOTE: tonelli is too slow for bls-Fp2 calculations even on start - // Means we cannot use sqrt for constants at all! - // - // const c1 = Fp.sqrt(Fp.negate(Fp.ONE)); // 1. c1 = sqrt(-1) in F, i.e., (c1^2) == -1 in F - // const c2 = Fp.sqrt(c1); // 2. c2 = sqrt(c1) in F, i.e., (c2^2) == c1 in F - // const c3 = Fp.sqrt(Fp.negate(c1)); // 3. c3 = sqrt(-c1) in F, i.e., (c3^2) == -c1 in F - // const c4 = (P + _7n) / _16n; // 4. c4 = (q + 7) / 16 # Integer arithmetic - // sqrt = (x) => { - // let tv1 = Fp.pow(x, c4); // 1. tv1 = x^c4 - // let tv2 = Fp.mul(c1, tv1); // 2. tv2 = c1 * tv1 - // const tv3 = Fp.mul(c2, tv1); // 3. tv3 = c2 * tv1 - // let tv4 = Fp.mul(c3, tv1); // 4. tv4 = c3 * tv1 - // const e1 = Fp.equals(Fp.square(tv2), x); // 5. e1 = (tv2^2) == x - // const e2 = Fp.equals(Fp.square(tv3), x); // 6. e2 = (tv3^2) == x - // tv1 = Fp.cmov(tv1, tv2, e1); // 7. tv1 = CMOV(tv1, tv2, e1) # Select tv2 if (tv2^2) == x - // tv2 = Fp.cmov(tv4, tv3, e2); // 8. tv2 = CMOV(tv4, tv3, e2) # Select tv3 if (tv3^2) == x - // const e3 = Fp.equals(Fp.square(tv2), x); // 9. e3 = (tv2^2) == x - // return Fp.cmov(tv1, tv2, e3); // 10. z = CMOV(tv1, tv2, e3) # Select the sqrt from tv1 and tv2 - // } - } - - // Other cases: Tonelli-Shanks algorithm - return tonelliShanks(P); -} - -// Little-endian check for first LE bit (last BE bit); -export const isNegativeLE = (num: bigint, modulo: bigint) => (mod(num, modulo) & _1n) === _1n; - -// Field is not always over prime, Fp2 for example has ORDER(q)=p^m -export interface IField { - ORDER: bigint; - BYTES: number; - BITS: number; - MASK: bigint; - ZERO: T; - ONE: T; - // 1-arg - create: (num: T) => T; - isValid: (num: T) => boolean; - is0: (num: T) => boolean; - neg(num: T): T; - inv(num: T): T; - sqrt(num: T): T; - sqr(num: T): T; - // 2-args - eql(lhs: T, rhs: T): boolean; - add(lhs: T, rhs: T): T; - sub(lhs: T, rhs: T): T; - mul(lhs: T, rhs: T | bigint): T; - pow(lhs: T, power: bigint): T; - div(lhs: T, rhs: T | bigint): T; - // N for NonNormalized (for now) - addN(lhs: T, rhs: T): T; - subN(lhs: T, rhs: T): T; - mulN(lhs: T, rhs: T | bigint): T; - sqrN(num: T): T; - - // Optional - // Should be same as sgn0 function in https://datatracker.ietf.org/doc/draft-irtf-cfrg-hash-to-curve/ - // NOTE: sgn0 is 'negative in LE', which is same as odd. And negative in LE is kinda strange definition anyway. - isOdd?(num: T): boolean; // Odd instead of even since we have it for Fp2 - // legendre?(num: T): T; - pow(lhs: T, power: bigint): T; - invertBatch: (lst: T[]) => T[]; - toBytes(num: T): Uint8Array; - fromBytes(bytes: Uint8Array): T; - // If c is False, CMOV returns a, otherwise it returns b. - cmov(a: T, b: T, c: boolean): T; -} -// prettier-ignore -const FIELD_FIELDS = [ - 'create', 'isValid', 'is0', 'neg', 'inv', 'sqrt', 'sqr', - 'eql', 'add', 'sub', 'mul', 'pow', 'div', - 'addN', 'subN', 'mulN', 'sqrN' -] as const; -export function validateField(field: IField) { - const initial = { - ORDER: 'bigint', - MASK: 'bigint', - BYTES: 'isSafeInteger', - BITS: 'isSafeInteger', - } as Record; - const opts = FIELD_FIELDS.reduce((map, val: string) => { - map[val] = 'function'; - return map; - }, initial); - return validateObject(field, opts); -} - -// Generic field functions -export function FpPow(f: IField, num: T, power: bigint): T { - // Should have same speed as pow for bigints - // TODO: benchmark! - if (power < _0n) throw new Error('Expected power > 0'); - if (power === _0n) return f.ONE; - if (power === _1n) return num; - let p = f.ONE; - let d = num; - while (power > _0n) { - if (power & _1n) p = f.mul(p, d); - d = f.sqr(d); - power >>= _1n; - } - return p; -} - -// 0 is non-invertible: non-batched version will throw on 0 -export function FpInvertBatch(f: IField, nums: T[]): T[] { - const tmp = new Array(nums.length); - // Walk from first to last, multiply them by each other MOD p - const lastMultiplied = nums.reduce((acc, num, i) => { - if (f.is0(num)) return acc; - tmp[i] = acc; - return f.mul(acc, num); - }, f.ONE); - // Invert last element - const inverted = f.inv(lastMultiplied); - // Walk from last to first, multiply them by inverted each other MOD p - nums.reduceRight((acc, num, i) => { - if (f.is0(num)) return acc; - tmp[i] = f.mul(acc, tmp[i]); - return f.mul(acc, num); - }, inverted); - return tmp; -} - -export function FpDiv(f: IField, lhs: T, rhs: T | bigint): T { - return f.mul(lhs, typeof rhs === 'bigint' ? invert(rhs, f.ORDER) : f.inv(rhs)); -} - -// This function returns True whenever the value x is a square in the field F. -export function FpIsSquare(f: IField) { - const legendreConst = (f.ORDER - _1n) / _2n; // Integer arithmetic - return (x: T): boolean => { - const p = f.pow(x, legendreConst); - return f.eql(p, f.ZERO) || f.eql(p, f.ONE); - }; -} - -// CURVE.n lengths -export function nLength(n: bigint, nBitLength?: number) { - // Bit size, byte size of CURVE.n - const _nBitLength = nBitLength !== undefined ? nBitLength : n.toString(2).length; - const nByteLength = Math.ceil(_nBitLength / 8); - return { nBitLength: _nBitLength, nByteLength }; -} - -type FpField = IField & Required, 'isOdd'>>; -/** - * Initializes a galois field over prime. Non-primes are not supported for now. - * Do not init in loop: slow. Very fragile: always run a benchmark on change. - * Major performance gains: - * a) non-normalized operations like mulN instead of mul - * b) `Object.freeze` - * c) Same object shape: never add or remove keys - * @param ORDER prime positive bigint - * @param bitLen how many bits the field consumes - * @param isLE (def: false) if encoding / decoding should be in little-endian - * @param redef optional faster redefinitions of sqrt and other methods - */ -export function Field( - ORDER: bigint, - bitLen?: number, - isLE = false, - redef: Partial> = {} -): Readonly { - if (ORDER <= _0n) throw new Error(`Expected Fp ORDER > 0, got ${ORDER}`); - const { nBitLength: BITS, nByteLength: BYTES } = nLength(ORDER, bitLen); - if (BYTES > 2048) throw new Error('Field lengths over 2048 bytes are not supported'); - const sqrtP = FpSqrt(ORDER); - const f: Readonly = Object.freeze({ - ORDER, - BITS, - BYTES, - MASK: bitMask(BITS), - ZERO: _0n, - ONE: _1n, - create: (num) => mod(num, ORDER), - isValid: (num) => { - if (typeof num !== 'bigint') - throw new Error(`Invalid field element: expected bigint, got ${typeof num}`); - return _0n <= num && num < ORDER; // 0 is valid element, but it's not invertible - }, - is0: (num) => num === _0n, - isOdd: (num) => (num & _1n) === _1n, - neg: (num) => mod(-num, ORDER), - eql: (lhs, rhs) => lhs === rhs, - - sqr: (num) => mod(num * num, ORDER), - add: (lhs, rhs) => mod(lhs + rhs, ORDER), - sub: (lhs, rhs) => mod(lhs - rhs, ORDER), - mul: (lhs, rhs) => mod(lhs * rhs, ORDER), - pow: (num, power) => FpPow(f, num, power), - div: (lhs, rhs) => mod(lhs * invert(rhs, ORDER), ORDER), - - // Same as above, but doesn't normalize - sqrN: (num) => num * num, - addN: (lhs, rhs) => lhs + rhs, - subN: (lhs, rhs) => lhs - rhs, - mulN: (lhs, rhs) => lhs * rhs, - - inv: (num) => invert(num, ORDER), - sqrt: redef.sqrt || ((n) => sqrtP(f, n)), - invertBatch: (lst) => FpInvertBatch(f, lst), - // TODO: do we really need constant cmov? - // We don't have const-time bigints anyway, so probably will be not very useful - cmov: (a, b, c) => (c ? b : a), - toBytes: (num) => (isLE ? numberToBytesLE(num, BYTES) : numberToBytesBE(num, BYTES)), - fromBytes: (bytes) => { - if (bytes.length !== BYTES) - throw new Error(`Fp.fromBytes: expected ${BYTES}, got ${bytes.length}`); - return isLE ? bytesToNumberLE(bytes) : bytesToNumberBE(bytes); - }, - } as FpField); - return Object.freeze(f); -} - -export function FpSqrtOdd(Fp: IField, elm: T) { - if (!Fp.isOdd) throw new Error(`Field doesn't have isOdd`); - const root = Fp.sqrt(elm); - return Fp.isOdd(root) ? root : Fp.neg(root); -} - -export function FpSqrtEven(Fp: IField, elm: T) { - if (!Fp.isOdd) throw new Error(`Field doesn't have isOdd`); - const root = Fp.sqrt(elm); - return Fp.isOdd(root) ? Fp.neg(root) : root; -} - -/** - * FIPS 186 B.4.1-compliant "constant-time" private key generation utility. - * Can take (n+8) or more bytes of uniform input e.g. from CSPRNG or KDF - * and convert them into private scalar, with the modulo bias being negligible. - * Needs at least 40 bytes of input for 32-byte private key. - * https://research.kudelskisecurity.com/2020/07/28/the-definitive-guide-to-modulo-bias-and-how-to-avoid-it/ - * @param hash hash output from SHA3 or a similar function - * @param groupOrder size of subgroup - (e.g. curveFn.CURVE.n) - * @param isLE interpret hash bytes as LE num - * @returns valid private scalar - */ -export function hashToPrivateScalar( - hash: string | Uint8Array, - groupOrder: bigint, - isLE = false -): bigint { - hash = ensureBytes('privateHash', hash); - const hashLen = hash.length; - const minLen = nLength(groupOrder).nByteLength + 8; - if (minLen < 24 || hashLen < minLen || hashLen > 1024) - throw new Error(`hashToPrivateScalar: expected ${minLen}-1024 bytes of input, got ${hashLen}`); - const num = isLE ? bytesToNumberLE(hash) : bytesToNumberBE(hash); - return mod(num, groupOrder - _1n) + _1n; -} diff --git a/node_modules/@noble/curves/src/abstract/montgomery.ts b/node_modules/@noble/curves/src/abstract/montgomery.ts deleted file mode 100644 index 64d1b531..00000000 --- a/node_modules/@noble/curves/src/abstract/montgomery.ts +++ /dev/null @@ -1,189 +0,0 @@ -/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */ -import { mod, pow } from './modular.js'; -import { bytesToNumberLE, ensureBytes, numberToBytesLE, validateObject } from './utils.js'; - -const _0n = BigInt(0); -const _1n = BigInt(1); -type Hex = string | Uint8Array; - -export type CurveType = { - P: bigint; // finite field prime - nByteLength: number; - adjustScalarBytes?: (bytes: Uint8Array) => Uint8Array; - domain?: (data: Uint8Array, ctx: Uint8Array, phflag: boolean) => Uint8Array; - a: bigint; - montgomeryBits: number; - powPminus2?: (x: bigint) => bigint; - xyToU?: (x: bigint, y: bigint) => bigint; - Gu: bigint; - randomBytes?: (bytesLength?: number) => Uint8Array; -}; -export type CurveFn = { - scalarMult: (scalar: Hex, u: Hex) => Uint8Array; - scalarMultBase: (scalar: Hex) => Uint8Array; - getSharedSecret: (privateKeyA: Hex, publicKeyB: Hex) => Uint8Array; - getPublicKey: (privateKey: Hex) => Uint8Array; - utils: { randomPrivateKey: () => Uint8Array }; - GuBytes: Uint8Array; -}; - -function validateOpts(curve: CurveType) { - validateObject( - curve, - { - a: 'bigint', - }, - { - montgomeryBits: 'isSafeInteger', - nByteLength: 'isSafeInteger', - adjustScalarBytes: 'function', - domain: 'function', - powPminus2: 'function', - Gu: 'bigint', - } - ); - // Set defaults - return Object.freeze({ ...curve } as const); -} - -// NOTE: not really montgomery curve, just bunch of very specific methods for X25519/X448 (RFC 7748, https://www.rfc-editor.org/rfc/rfc7748) -// Uses only one coordinate instead of two -export function montgomery(curveDef: CurveType): CurveFn { - const CURVE = validateOpts(curveDef); - const { P } = CURVE; - const modP = (n: bigint) => mod(n, P); - const montgomeryBits = CURVE.montgomeryBits; - const montgomeryBytes = Math.ceil(montgomeryBits / 8); - const fieldLen = CURVE.nByteLength; - const adjustScalarBytes = CURVE.adjustScalarBytes || ((bytes: Uint8Array) => bytes); - const powPminus2 = CURVE.powPminus2 || ((x: bigint) => pow(x, P - BigInt(2), P)); - - // cswap from RFC7748. But it is not from RFC7748! - /* - cswap(swap, x_2, x_3): - dummy = mask(swap) AND (x_2 XOR x_3) - x_2 = x_2 XOR dummy - x_3 = x_3 XOR dummy - Return (x_2, x_3) - Where mask(swap) is the all-1 or all-0 word of the same length as x_2 - and x_3, computed, e.g., as mask(swap) = 0 - swap. - */ - function cswap(swap: bigint, x_2: bigint, x_3: bigint): [bigint, bigint] { - const dummy = modP(swap * (x_2 - x_3)); - x_2 = modP(x_2 - dummy); - x_3 = modP(x_3 + dummy); - return [x_2, x_3]; - } - - // Accepts 0 as well - function assertFieldElement(n: bigint): bigint { - if (typeof n === 'bigint' && _0n <= n && n < P) return n; - throw new Error('Expected valid scalar 0 < scalar < CURVE.P'); - } - - // x25519 from 4 - // The constant a24 is (486662 - 2) / 4 = 121665 for curve25519/X25519 - const a24 = (CURVE.a - BigInt(2)) / BigInt(4); - /** - * - * @param pointU u coordinate (x) on Montgomery Curve 25519 - * @param scalar by which the point would be multiplied - * @returns new Point on Montgomery curve - */ - function montgomeryLadder(pointU: bigint, scalar: bigint): bigint { - const u = assertFieldElement(pointU); - // Section 5: Implementations MUST accept non-canonical values and process them as - // if they had been reduced modulo the field prime. - const k = assertFieldElement(scalar); - const x_1 = u; - let x_2 = _1n; - let z_2 = _0n; - let x_3 = u; - let z_3 = _1n; - let swap = _0n; - let sw: [bigint, bigint]; - for (let t = BigInt(montgomeryBits - 1); t >= _0n; t--) { - const k_t = (k >> t) & _1n; - swap ^= k_t; - sw = cswap(swap, x_2, x_3); - x_2 = sw[0]; - x_3 = sw[1]; - sw = cswap(swap, z_2, z_3); - z_2 = sw[0]; - z_3 = sw[1]; - swap = k_t; - - const A = x_2 + z_2; - const AA = modP(A * A); - const B = x_2 - z_2; - const BB = modP(B * B); - const E = AA - BB; - const C = x_3 + z_3; - const D = x_3 - z_3; - const DA = modP(D * A); - const CB = modP(C * B); - const dacb = DA + CB; - const da_cb = DA - CB; - x_3 = modP(dacb * dacb); - z_3 = modP(x_1 * modP(da_cb * da_cb)); - x_2 = modP(AA * BB); - z_2 = modP(E * (AA + modP(a24 * E))); - } - // (x_2, x_3) = cswap(swap, x_2, x_3) - sw = cswap(swap, x_2, x_3); - x_2 = sw[0]; - x_3 = sw[1]; - // (z_2, z_3) = cswap(swap, z_2, z_3) - sw = cswap(swap, z_2, z_3); - z_2 = sw[0]; - z_3 = sw[1]; - // z_2^(p - 2) - const z2 = powPminus2(z_2); - // Return x_2 * (z_2^(p - 2)) - return modP(x_2 * z2); - } - - function encodeUCoordinate(u: bigint): Uint8Array { - return numberToBytesLE(modP(u), montgomeryBytes); - } - - function decodeUCoordinate(uEnc: Hex): bigint { - // Section 5: When receiving such an array, implementations of X25519 - // MUST mask the most significant bit in the final byte. - // This is very ugly way, but it works because fieldLen-1 is outside of bounds for X448, so this becomes NOOP - // fieldLen - scalaryBytes = 1 for X448 and = 0 for X25519 - const u = ensureBytes('u coordinate', uEnc, montgomeryBytes); - // u[fieldLen-1] crashes QuickJS (TypeError: out-of-bound numeric index) - if (fieldLen === montgomeryBytes) u[fieldLen - 1] &= 127; // 0b0111_1111 - return bytesToNumberLE(u); - } - function decodeScalar(n: Hex): bigint { - const bytes = ensureBytes('scalar', n); - if (bytes.length !== montgomeryBytes && bytes.length !== fieldLen) - throw new Error(`Expected ${montgomeryBytes} or ${fieldLen} bytes, got ${bytes.length}`); - return bytesToNumberLE(adjustScalarBytes(bytes)); - } - function scalarMult(scalar: Hex, u: Hex): Uint8Array { - const pointU = decodeUCoordinate(u); - const _scalar = decodeScalar(scalar); - const pu = montgomeryLadder(pointU, _scalar); - // The result was not contributory - // https://cr.yp.to/ecdh.html#validate - if (pu === _0n) throw new Error('Invalid private or public key received'); - return encodeUCoordinate(pu); - } - // Computes public key from private. By doing scalar multiplication of base point. - const GuBytes = encodeUCoordinate(CURVE.Gu); - function scalarMultBase(scalar: Hex): Uint8Array { - return scalarMult(scalar, GuBytes); - } - - return { - scalarMult, - scalarMultBase, - getSharedSecret: (privateKey: Hex, publicKey: Hex) => scalarMult(privateKey, publicKey), - getPublicKey: (privateKey: Hex): Uint8Array => scalarMultBase(privateKey), - utils: { randomPrivateKey: () => CURVE.randomBytes!(CURVE.nByteLength) }, - GuBytes: GuBytes, - }; -} diff --git a/node_modules/@noble/curves/src/abstract/poseidon.ts b/node_modules/@noble/curves/src/abstract/poseidon.ts deleted file mode 100644 index 38ab17d7..00000000 --- a/node_modules/@noble/curves/src/abstract/poseidon.ts +++ /dev/null @@ -1,119 +0,0 @@ -/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */ -// Poseidon Hash: https://eprint.iacr.org/2019/458.pdf, https://www.poseidon-hash.info -import { IField, FpPow, validateField } from './modular.js'; -// We don't provide any constants, since different implementations use different constants. -// For reference constants see './test/poseidon.test.js'. -export type PoseidonOpts = { - Fp: IField; - t: number; - roundsFull: number; - roundsPartial: number; - sboxPower?: number; - reversePartialPowIdx?: boolean; // Hack for stark - mds: bigint[][]; - roundConstants: bigint[][]; -}; - -export function validateOpts(opts: PoseidonOpts) { - const { Fp } = opts; - validateField(Fp); - for (const i of ['t', 'roundsFull', 'roundsPartial'] as const) { - if (typeof opts[i] !== 'number' || !Number.isSafeInteger(opts[i])) - throw new Error(`Poseidon: invalid param ${i}=${opts[i]} (${typeof opts[i]})`); - } - if (opts.reversePartialPowIdx !== undefined && typeof opts.reversePartialPowIdx !== 'boolean') - throw new Error(`Poseidon: invalid param reversePartialPowIdx=${opts.reversePartialPowIdx}`); - // Default is 5, but by some reasons stark uses 3 - let sboxPower = opts.sboxPower; - if (sboxPower === undefined) sboxPower = 5; - if (typeof sboxPower !== 'number' || !Number.isSafeInteger(sboxPower)) - throw new Error(`Poseidon wrong sboxPower=${sboxPower}`); - - const _sboxPower = BigInt(sboxPower); - let sboxFn = (n: bigint) => FpPow(Fp, n, _sboxPower); - // Unwrapped sbox power for common cases (195->142μs) - if (sboxPower === 3) sboxFn = (n: bigint) => Fp.mul(Fp.sqrN(n), n); - else if (sboxPower === 5) sboxFn = (n: bigint) => Fp.mul(Fp.sqrN(Fp.sqrN(n)), n); - - if (opts.roundsFull % 2 !== 0) - throw new Error(`Poseidon roundsFull is not even: ${opts.roundsFull}`); - const rounds = opts.roundsFull + opts.roundsPartial; - - if (!Array.isArray(opts.roundConstants) || opts.roundConstants.length !== rounds) - throw new Error('Poseidon: wrong round constants'); - const roundConstants = opts.roundConstants.map((rc) => { - if (!Array.isArray(rc) || rc.length !== opts.t) - throw new Error(`Poseidon wrong round constants: ${rc}`); - return rc.map((i) => { - if (typeof i !== 'bigint' || !Fp.isValid(i)) - throw new Error(`Poseidon wrong round constant=${i}`); - return Fp.create(i); - }); - }); - // MDS is TxT matrix - if (!Array.isArray(opts.mds) || opts.mds.length !== opts.t) - throw new Error('Poseidon: wrong MDS matrix'); - const mds = opts.mds.map((mdsRow) => { - if (!Array.isArray(mdsRow) || mdsRow.length !== opts.t) - throw new Error(`Poseidon MDS matrix row: ${mdsRow}`); - return mdsRow.map((i) => { - if (typeof i !== 'bigint') throw new Error(`Poseidon MDS matrix value=${i}`); - return Fp.create(i); - }); - }); - return Object.freeze({ ...opts, rounds, sboxFn, roundConstants, mds }); -} - -export function splitConstants(rc: bigint[], t: number) { - if (typeof t !== 'number') throw new Error('poseidonSplitConstants: wrong t'); - if (!Array.isArray(rc) || rc.length % t) throw new Error('poseidonSplitConstants: wrong rc'); - const res = []; - let tmp = []; - for (let i = 0; i < rc.length; i++) { - tmp.push(rc[i]); - if (tmp.length === t) { - res.push(tmp); - tmp = []; - } - } - return res; -} - -export function poseidon(opts: PoseidonOpts) { - const { t, Fp, rounds, sboxFn, reversePartialPowIdx } = validateOpts(opts); - const halfRoundsFull = Math.floor(opts.roundsFull / 2); - const partialIdx = reversePartialPowIdx ? t - 1 : 0; - const poseidonRound = (values: bigint[], isFull: boolean, idx: number) => { - values = values.map((i, j) => Fp.add(i, opts.roundConstants[idx][j])); - - if (isFull) values = values.map((i) => sboxFn(i)); - else values[partialIdx] = sboxFn(values[partialIdx]); - // Matrix multiplication - values = opts.mds.map((i) => - i.reduce((acc, i, j) => Fp.add(acc, Fp.mulN(i, values[j])), Fp.ZERO) - ); - return values; - }; - const poseidonHash = function poseidonHash(values: bigint[]) { - if (!Array.isArray(values) || values.length !== t) - throw new Error(`Poseidon: wrong values (expected array of bigints with length ${t})`); - values = values.map((i) => { - if (typeof i !== 'bigint') throw new Error(`Poseidon: wrong value=${i} (${typeof i})`); - return Fp.create(i); - }); - let round = 0; - // Apply r_f/2 full rounds. - for (let i = 0; i < halfRoundsFull; i++) values = poseidonRound(values, true, round++); - // Apply r_p partial rounds. - for (let i = 0; i < opts.roundsPartial; i++) values = poseidonRound(values, false, round++); - // Apply r_f/2 full rounds. - for (let i = 0; i < halfRoundsFull; i++) values = poseidonRound(values, true, round++); - - if (round !== rounds) - throw new Error(`Poseidon: wrong number of rounds: last round=${round}, total=${rounds}`); - return values; - }; - // For verification in tests - poseidonHash.roundConstants = opts.roundConstants; - return poseidonHash; -} diff --git a/node_modules/@noble/curves/src/abstract/utils.ts b/node_modules/@noble/curves/src/abstract/utils.ts deleted file mode 100644 index 00fc18f3..00000000 --- a/node_modules/@noble/curves/src/abstract/utils.ts +++ /dev/null @@ -1,287 +0,0 @@ -/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */ -// 100 lines of code in the file are duplicated from noble-hashes (utils). -// This is OK: `abstract` directory does not use noble-hashes. -// User may opt-in into using different hashing library. This way, noble-hashes -// won't be included into their bundle. -const _0n = BigInt(0); -const _1n = BigInt(1); -const _2n = BigInt(2); -const u8a = (a: any): a is Uint8Array => a instanceof Uint8Array; -export type Hex = Uint8Array | string; // hex strings are accepted for simplicity -export type PrivKey = Hex | bigint; // bigints are accepted to ease learning curve -export type CHash = { - (message: Uint8Array | string): Uint8Array; - blockLen: number; - outputLen: number; - create(opts?: { dkLen?: number }): any; // For shake -}; -export type FHash = (message: Uint8Array | string) => Uint8Array; - -const hexes = Array.from({ length: 256 }, (v, i) => i.toString(16).padStart(2, '0')); -/** - * @example bytesToHex(Uint8Array.from([0xca, 0xfe, 0x01, 0x23])) // 'cafe0123' - */ -export function bytesToHex(bytes: Uint8Array): string { - if (!u8a(bytes)) throw new Error('Uint8Array expected'); - // pre-caching improves the speed 6x - let hex = ''; - for (let i = 0; i < bytes.length; i++) { - hex += hexes[bytes[i]]; - } - return hex; -} - -export function numberToHexUnpadded(num: number | bigint): string { - const hex = num.toString(16); - return hex.length & 1 ? `0${hex}` : hex; -} - -export function hexToNumber(hex: string): bigint { - if (typeof hex !== 'string') throw new Error('hex string expected, got ' + typeof hex); - // Big Endian - return BigInt(hex === '' ? '0' : `0x${hex}`); -} - -/** - * @example hexToBytes('cafe0123') // Uint8Array.from([0xca, 0xfe, 0x01, 0x23]) - */ -export function hexToBytes(hex: string): Uint8Array { - if (typeof hex !== 'string') throw new Error('hex string expected, got ' + typeof hex); - const len = hex.length; - if (len % 2) throw new Error('padded hex string expected, got unpadded hex of length ' + len); - const array = new Uint8Array(len / 2); - for (let i = 0; i < array.length; i++) { - const j = i * 2; - const hexByte = hex.slice(j, j + 2); - const byte = Number.parseInt(hexByte, 16); - if (Number.isNaN(byte) || byte < 0) throw new Error('Invalid byte sequence'); - array[i] = byte; - } - return array; -} - -// BE: Big Endian, LE: Little Endian -export function bytesToNumberBE(bytes: Uint8Array): bigint { - return hexToNumber(bytesToHex(bytes)); -} -export function bytesToNumberLE(bytes: Uint8Array): bigint { - if (!u8a(bytes)) throw new Error('Uint8Array expected'); - return hexToNumber(bytesToHex(Uint8Array.from(bytes).reverse())); -} - -export function numberToBytesBE(n: number | bigint, len: number): Uint8Array { - return hexToBytes(n.toString(16).padStart(len * 2, '0')); -} -export function numberToBytesLE(n: number | bigint, len: number): Uint8Array { - return numberToBytesBE(n, len).reverse(); -} -// Unpadded, rarely used -export function numberToVarBytesBE(n: number | bigint): Uint8Array { - return hexToBytes(numberToHexUnpadded(n)); -} - -/** - * Takes hex string or Uint8Array, converts to Uint8Array. - * Validates output length. - * Will throw error for other types. - * @param title descriptive title for an error e.g. 'private key' - * @param hex hex string or Uint8Array - * @param expectedLength optional, will compare to result array's length - * @returns - */ -export function ensureBytes(title: string, hex: Hex, expectedLength?: number): Uint8Array { - let res: Uint8Array; - if (typeof hex === 'string') { - try { - res = hexToBytes(hex); - } catch (e) { - throw new Error(`${title} must be valid hex string, got "${hex}". Cause: ${e}`); - } - } else if (u8a(hex)) { - // Uint8Array.from() instead of hash.slice() because node.js Buffer - // is instance of Uint8Array, and its slice() creates **mutable** copy - res = Uint8Array.from(hex); - } else { - throw new Error(`${title} must be hex string or Uint8Array`); - } - const len = res.length; - if (typeof expectedLength === 'number' && len !== expectedLength) - throw new Error(`${title} expected ${expectedLength} bytes, got ${len}`); - return res; -} - -/** - * Copies several Uint8Arrays into one. - */ -export function concatBytes(...arrays: Uint8Array[]): Uint8Array { - const r = new Uint8Array(arrays.reduce((sum, a) => sum + a.length, 0)); - let pad = 0; // walk through each item, ensure they have proper type - arrays.forEach((a) => { - if (!u8a(a)) throw new Error('Uint8Array expected'); - r.set(a, pad); - pad += a.length; - }); - return r; -} - -export function equalBytes(b1: Uint8Array, b2: Uint8Array) { - // We don't care about timing attacks here - if (b1.length !== b2.length) return false; - for (let i = 0; i < b1.length; i++) if (b1[i] !== b2[i]) return false; - return true; -} - -// Global symbols in both browsers and Node.js since v11 -// See https://github.com/microsoft/TypeScript/issues/31535 -declare const TextEncoder: any; - -/** - * @example utf8ToBytes('abc') // new Uint8Array([97, 98, 99]) - */ -export function utf8ToBytes(str: string): Uint8Array { - if (typeof str !== 'string') throw new Error(`utf8ToBytes expected string, got ${typeof str}`); - return new Uint8Array(new TextEncoder().encode(str)); // https://bugzil.la/1681809 -} - -// Bit operations - -/** - * Calculates amount of bits in a bigint. - * Same as `n.toString(2).length` - */ -export function bitLen(n: bigint) { - let len; - for (len = 0; n > _0n; n >>= _1n, len += 1); - return len; -} - -/** - * Gets single bit at position. - * NOTE: first bit position is 0 (same as arrays) - * Same as `!!+Array.from(n.toString(2)).reverse()[pos]` - */ -export function bitGet(n: bigint, pos: number) { - return (n >> BigInt(pos)) & _1n; -} - -/** - * Sets single bit at position. - */ -export const bitSet = (n: bigint, pos: number, value: boolean) => { - return n | ((value ? _1n : _0n) << BigInt(pos)); -}; - -/** - * Calculate mask for N bits. Not using ** operator with bigints because of old engines. - * Same as BigInt(`0b${Array(i).fill('1').join('')}`) - */ -export const bitMask = (n: number) => (_2n << BigInt(n - 1)) - _1n; - -// DRBG - -const u8n = (data?: any) => new Uint8Array(data); // creates Uint8Array -const u8fr = (arr: any) => Uint8Array.from(arr); // another shortcut -type Pred = (v: Uint8Array) => T | undefined; -/** - * Minimal HMAC-DRBG from NIST 800-90 for RFC6979 sigs. - * @returns function that will call DRBG until 2nd arg returns something meaningful - * @example - * const drbg = createHmacDRBG(32, 32, hmac); - * drbg(seed, bytesToKey); // bytesToKey must return Key or undefined - */ -export function createHmacDrbg( - hashLen: number, - qByteLen: number, - hmacFn: (key: Uint8Array, ...messages: Uint8Array[]) => Uint8Array -): (seed: Uint8Array, predicate: Pred) => T { - if (typeof hashLen !== 'number' || hashLen < 2) throw new Error('hashLen must be a number'); - if (typeof qByteLen !== 'number' || qByteLen < 2) throw new Error('qByteLen must be a number'); - if (typeof hmacFn !== 'function') throw new Error('hmacFn must be a function'); - // Step B, Step C: set hashLen to 8*ceil(hlen/8) - let v = u8n(hashLen); // Minimal non-full-spec HMAC-DRBG from NIST 800-90 for RFC6979 sigs. - let k = u8n(hashLen); // Steps B and C of RFC6979 3.2: set hashLen, in our case always same - let i = 0; // Iterations counter, will throw when over 1000 - const reset = () => { - v.fill(1); - k.fill(0); - i = 0; - }; - const h = (...b: Uint8Array[]) => hmacFn(k, v, ...b); // hmac(k)(v, ...values) - const reseed = (seed = u8n()) => { - // HMAC-DRBG reseed() function. Steps D-G - k = h(u8fr([0x00]), seed); // k = hmac(k || v || 0x00 || seed) - v = h(); // v = hmac(k || v) - if (seed.length === 0) return; - k = h(u8fr([0x01]), seed); // k = hmac(k || v || 0x01 || seed) - v = h(); // v = hmac(k || v) - }; - const gen = () => { - // HMAC-DRBG generate() function - if (i++ >= 1000) throw new Error('drbg: tried 1000 values'); - let len = 0; - const out: Uint8Array[] = []; - while (len < qByteLen) { - v = h(); - const sl = v.slice(); - out.push(sl); - len += v.length; - } - return concatBytes(...out); - }; - const genUntil = (seed: Uint8Array, pred: Pred): T => { - reset(); - reseed(seed); // Steps D-G - let res: T | undefined = undefined; // Step H: grind until k is in [1..n-1] - while (!(res = pred(gen()))) reseed(); - reset(); - return res; - }; - return genUntil; -} - -// Validating curves and fields - -const validatorFns = { - bigint: (val: any) => typeof val === 'bigint', - function: (val: any) => typeof val === 'function', - boolean: (val: any) => typeof val === 'boolean', - string: (val: any) => typeof val === 'string', - isSafeInteger: (val: any) => Number.isSafeInteger(val), - array: (val: any) => Array.isArray(val), - field: (val: any, object: any) => (object as any).Fp.isValid(val), - hash: (val: any) => typeof val === 'function' && Number.isSafeInteger(val.outputLen), -} as const; -type Validator = keyof typeof validatorFns; -type ValMap> = { [K in keyof T]?: Validator }; -// type Record = { [P in K]: T; } - -export function validateObject>( - object: T, - validators: ValMap, - optValidators: ValMap = {} -) { - const checkField = (fieldName: keyof T, type: Validator, isOptional: boolean) => { - const checkVal = validatorFns[type]; - if (typeof checkVal !== 'function') - throw new Error(`Invalid validator "${type}", expected function`); - - const val = object[fieldName as keyof typeof object]; - if (isOptional && val === undefined) return; - if (!checkVal(val, object)) { - throw new Error( - `Invalid param ${String(fieldName)}=${val} (${typeof val}), expected ${type}` - ); - } - }; - for (const [fieldName, type] of Object.entries(validators)) checkField(fieldName, type!, false); - for (const [fieldName, type] of Object.entries(optValidators)) checkField(fieldName, type!, true); - return object; -} -// validate type tests -// const o: { a: number; b: number; c: number } = { a: 1, b: 5, c: 6 }; -// const z0 = validateObject(o, { a: 'isSafeInteger' }, { c: 'bigint' }); // Ok! -// // Should fail type-check -// const z1 = validateObject(o, { a: 'tmp' }, { c: 'zz' }); -// const z2 = validateObject(o, { a: 'isSafeInteger' }, { c: 'zz' }); -// const z3 = validateObject(o, { test: 'boolean', z: 'bug' }); -// const z4 = validateObject(o, { a: 'boolean', z: 'bug' }); diff --git a/node_modules/@noble/curves/src/abstract/weierstrass.ts b/node_modules/@noble/curves/src/abstract/weierstrass.ts deleted file mode 100644 index 5981ca4e..00000000 --- a/node_modules/@noble/curves/src/abstract/weierstrass.ts +++ /dev/null @@ -1,1220 +0,0 @@ -/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */ -// Short Weierstrass curve. The formula is: y² = x³ + ax + b -import * as mod from './modular.js'; -import * as ut from './utils.js'; -import { CHash, Hex, PrivKey, ensureBytes } from './utils.js'; -import { Group, GroupConstructor, wNAF, BasicCurve, validateBasic, AffinePoint } from './curve.js'; - -export type { AffinePoint }; -type HmacFnSync = (key: Uint8Array, ...messages: Uint8Array[]) => Uint8Array; -type EndomorphismOpts = { - beta: bigint; - splitScalar: (k: bigint) => { k1neg: boolean; k1: bigint; k2neg: boolean; k2: bigint }; -}; -export type BasicWCurve = BasicCurve & { - // Params: a, b - a: T; - b: T; - - // Optional params - allowedPrivateKeyLengths?: readonly number[]; // for P521 - wrapPrivateKey?: boolean; // bls12-381 requires mod(n) instead of rejecting keys >= n - endo?: EndomorphismOpts; // Endomorphism options for Koblitz curves - // When a cofactor != 1, there can be an effective methods to: - // 1. Determine whether a point is torsion-free - isTorsionFree?: (c: ProjConstructor, point: ProjPointType) => boolean; - // 2. Clear torsion component - clearCofactor?: (c: ProjConstructor, point: ProjPointType) => ProjPointType; -}; - -type Entropy = Hex | true; -export type SignOpts = { lowS?: boolean; extraEntropy?: Entropy; prehash?: boolean }; -export type VerOpts = { lowS?: boolean; prehash?: boolean }; - -/** - * ### Design rationale for types - * - * * Interaction between classes from different curves should fail: - * `k256.Point.BASE.add(p256.Point.BASE)` - * * For this purpose we want to use `instanceof` operator, which is fast and works during runtime - * * Different calls of `curve()` would return different classes - - * `curve(params) !== curve(params)`: if somebody decided to monkey-patch their curve, - * it won't affect others - * - * TypeScript can't infer types for classes created inside a function. Classes is one instance of nominative types in TypeScript and interfaces only check for shape, so it's hard to create unique type for every function call. - * - * We can use generic types via some param, like curve opts, but that would: - * 1. Enable interaction between `curve(params)` and `curve(params)` (curves of same params) - * which is hard to debug. - * 2. Params can be generic and we can't enforce them to be constant value: - * if somebody creates curve from non-constant params, - * it would be allowed to interact with other curves with non-constant params - * - * TODO: https://www.typescriptlang.org/docs/handbook/release-notes/typescript-2-7.html#unique-symbol - */ - -// Instance for 3d XYZ points -export interface ProjPointType extends Group> { - readonly px: T; - readonly py: T; - readonly pz: T; - get x(): T; - get y(): T; - multiply(scalar: bigint): ProjPointType; - toAffine(iz?: T): AffinePoint; - isTorsionFree(): boolean; - clearCofactor(): ProjPointType; - assertValidity(): void; - hasEvenY(): boolean; - toRawBytes(isCompressed?: boolean): Uint8Array; - toHex(isCompressed?: boolean): string; - - multiplyUnsafe(scalar: bigint): ProjPointType; - multiplyAndAddUnsafe(Q: ProjPointType, a: bigint, b: bigint): ProjPointType | undefined; - _setWindowSize(windowSize: number): void; -} -// Static methods for 3d XYZ points -export interface ProjConstructor extends GroupConstructor> { - new (x: T, y: T, z: T): ProjPointType; - fromAffine(p: AffinePoint): ProjPointType; - fromHex(hex: Hex): ProjPointType; - fromPrivateKey(privateKey: PrivKey): ProjPointType; - normalizeZ(points: ProjPointType[]): ProjPointType[]; -} - -export type CurvePointsType = BasicWCurve & { - // Bytes - fromBytes?: (bytes: Uint8Array) => AffinePoint; - toBytes?: (c: ProjConstructor, point: ProjPointType, isCompressed: boolean) => Uint8Array; -}; - -function validatePointOpts(curve: CurvePointsType) { - const opts = validateBasic(curve); - ut.validateObject( - opts, - { - a: 'field', - b: 'field', - }, - { - allowedPrivateKeyLengths: 'array', - wrapPrivateKey: 'boolean', - isTorsionFree: 'function', - clearCofactor: 'function', - allowInfinityPoint: 'boolean', - fromBytes: 'function', - toBytes: 'function', - } - ); - const { endo, Fp, a } = opts; - if (endo) { - if (!Fp.eql(a, Fp.ZERO)) { - throw new Error('Endomorphism can only be defined for Koblitz curves that have a=0'); - } - if ( - typeof endo !== 'object' || - typeof endo.beta !== 'bigint' || - typeof endo.splitScalar !== 'function' - ) { - throw new Error('Expected endomorphism with beta: bigint and splitScalar: function'); - } - } - return Object.freeze({ ...opts } as const); -} - -export type CurvePointsRes = { - ProjectivePoint: ProjConstructor; - normPrivateKeyToScalar: (key: PrivKey) => bigint; - weierstrassEquation: (x: T) => T; - isWithinCurveOrder: (num: bigint) => boolean; -}; - -// ASN.1 DER encoding utilities -const { bytesToNumberBE: b2n, hexToBytes: h2b } = ut; -export const DER = { - // asn.1 DER encoding utils - Err: class DERErr extends Error { - constructor(m = '') { - super(m); - } - }, - _parseInt(data: Uint8Array): { d: bigint; l: Uint8Array } { - const { Err: E } = DER; - if (data.length < 2 || data[0] !== 0x02) throw new E('Invalid signature integer tag'); - const len = data[1]; - const res = data.subarray(2, len + 2); - if (!len || res.length !== len) throw new E('Invalid signature integer: wrong length'); - // https://crypto.stackexchange.com/a/57734 Leftmost bit of first byte is 'negative' flag, - // since we always use positive integers here. It must always be empty: - // - add zero byte if exists - // - if next byte doesn't have a flag, leading zero is not allowed (minimal encoding) - if (res[0] & 0b10000000) throw new E('Invalid signature integer: negative'); - if (res[0] === 0x00 && !(res[1] & 0b10000000)) - throw new E('Invalid signature integer: unnecessary leading zero'); - return { d: b2n(res), l: data.subarray(len + 2) }; // d is data, l is left - }, - toSig(hex: string | Uint8Array): { r: bigint; s: bigint } { - // parse DER signature - const { Err: E } = DER; - const data = typeof hex === 'string' ? h2b(hex) : hex; - if (!(data instanceof Uint8Array)) throw new Error('ui8a expected'); - let l = data.length; - if (l < 2 || data[0] != 0x30) throw new E('Invalid signature tag'); - if (data[1] !== l - 2) throw new E('Invalid signature: incorrect length'); - const { d: r, l: sBytes } = DER._parseInt(data.subarray(2)); - const { d: s, l: rBytesLeft } = DER._parseInt(sBytes); - if (rBytesLeft.length) throw new E('Invalid signature: left bytes after parsing'); - return { r, s }; - }, - hexFromSig(sig: { r: bigint; s: bigint }): string { - // Add leading zero if first byte has negative bit enabled. More details in '_parseInt' - const slice = (s: string): string => (Number.parseInt(s[0], 16) & 0b1000 ? '00' + s : s); - const h = (num: number | bigint) => { - const hex = num.toString(16); - return hex.length & 1 ? `0${hex}` : hex; - }; - const s = slice(h(sig.s)); - const r = slice(h(sig.r)); - const shl = s.length / 2; - const rhl = r.length / 2; - const sl = h(shl); - const rl = h(rhl); - return `30${h(rhl + shl + 4)}02${rl}${r}02${sl}${s}`; - }, -}; - -// Be friendly to bad ECMAScript parsers by not using bigint literals -// prettier-ignore -const _0n = BigInt(0), _1n = BigInt(1), _2n = BigInt(2), _3n = BigInt(3), _4n = BigInt(4); - -export function weierstrassPoints(opts: CurvePointsType) { - const CURVE = validatePointOpts(opts); - const { Fp } = CURVE; // All curves has same field / group length as for now, but they can differ - - const toBytes = - CURVE.toBytes || - ((c: ProjConstructor, point: ProjPointType, isCompressed: boolean) => { - const a = point.toAffine(); - return ut.concatBytes(Uint8Array.from([0x04]), Fp.toBytes(a.x), Fp.toBytes(a.y)); - }); - const fromBytes = - CURVE.fromBytes || - ((bytes: Uint8Array) => { - // const head = bytes[0]; - const tail = bytes.subarray(1); - // if (head !== 0x04) throw new Error('Only non-compressed encoding is supported'); - const x = Fp.fromBytes(tail.subarray(0, Fp.BYTES)); - const y = Fp.fromBytes(tail.subarray(Fp.BYTES, 2 * Fp.BYTES)); - return { x, y }; - }); - - /** - * y² = x³ + ax + b: Short weierstrass curve formula - * @returns y² - */ - function weierstrassEquation(x: T): T { - const { a, b } = CURVE; - const x2 = Fp.sqr(x); // x * x - const x3 = Fp.mul(x2, x); // x2 * x - return Fp.add(Fp.add(x3, Fp.mul(x, a)), b); // x3 + a * x + b - } - // Validate whether the passed curve params are valid. - // We check if curve equation works for generator point. - // `assertValidity()` won't work: `isTorsionFree()` is not available at this point in bls12-381. - // ProjectivePoint class has not been initialized yet. - if (!Fp.eql(Fp.sqr(CURVE.Gy), weierstrassEquation(CURVE.Gx))) - throw new Error('bad generator point: equation left != right'); - - // Valid group elements reside in range 1..n-1 - function isWithinCurveOrder(num: bigint): boolean { - return typeof num === 'bigint' && _0n < num && num < CURVE.n; - } - function assertGE(num: bigint) { - if (!isWithinCurveOrder(num)) throw new Error('Expected valid bigint: 0 < bigint < curve.n'); - } - // Validates if priv key is valid and converts it to bigint. - // Supports options allowedPrivateKeyLengths and wrapPrivateKey. - function normPrivateKeyToScalar(key: PrivKey): bigint { - const { allowedPrivateKeyLengths: lengths, nByteLength, wrapPrivateKey, n } = CURVE; - if (lengths && typeof key !== 'bigint') { - if (key instanceof Uint8Array) key = ut.bytesToHex(key); - // Normalize to hex string, pad. E.g. P521 would norm 130-132 char hex to 132-char bytes - if (typeof key !== 'string' || !lengths.includes(key.length)) throw new Error('Invalid key'); - key = key.padStart(nByteLength * 2, '0'); - } - let num: bigint; - try { - num = - typeof key === 'bigint' - ? key - : ut.bytesToNumberBE(ensureBytes('private key', key, nByteLength)); - } catch (error) { - throw new Error(`private key must be ${nByteLength} bytes, hex or bigint, not ${typeof key}`); - } - if (wrapPrivateKey) num = mod.mod(num, n); // disabled by default, enabled for BLS - assertGE(num); // num in range [1..N-1] - return num; - } - - const pointPrecomputes = new Map(); - function assertPrjPoint(other: unknown) { - if (!(other instanceof Point)) throw new Error('ProjectivePoint expected'); - } - /** - * Projective Point works in 3d / projective (homogeneous) coordinates: (x, y, z) ∋ (x=x/z, y=y/z) - * Default Point works in 2d / affine coordinates: (x, y) - * We're doing calculations in projective, because its operations don't require costly inversion. - */ - class Point implements ProjPointType { - static readonly BASE = new Point(CURVE.Gx, CURVE.Gy, Fp.ONE); - static readonly ZERO = new Point(Fp.ZERO, Fp.ONE, Fp.ZERO); - - constructor(readonly px: T, readonly py: T, readonly pz: T) { - if (px == null || !Fp.isValid(px)) throw new Error('x required'); - if (py == null || !Fp.isValid(py)) throw new Error('y required'); - if (pz == null || !Fp.isValid(pz)) throw new Error('z required'); - } - - // Does not validate if the point is on-curve. - // Use fromHex instead, or call assertValidity() later. - static fromAffine(p: AffinePoint): Point { - const { x, y } = p || {}; - if (!p || !Fp.isValid(x) || !Fp.isValid(y)) throw new Error('invalid affine point'); - if (p instanceof Point) throw new Error('projective point not allowed'); - const is0 = (i: T) => Fp.eql(i, Fp.ZERO); - // fromAffine(x:0, y:0) would produce (x:0, y:0, z:1), but we need (x:0, y:1, z:0) - if (is0(x) && is0(y)) return Point.ZERO; - return new Point(x, y, Fp.ONE); - } - - get x(): T { - return this.toAffine().x; - } - get y(): T { - return this.toAffine().y; - } - - /** - * Takes a bunch of Projective Points but executes only one - * inversion on all of them. Inversion is very slow operation, - * so this improves performance massively. - * Optimization: converts a list of projective points to a list of identical points with Z=1. - */ - static normalizeZ(points: Point[]): Point[] { - const toInv = Fp.invertBatch(points.map((p) => p.pz)); - return points.map((p, i) => p.toAffine(toInv[i])).map(Point.fromAffine); - } - - /** - * Converts hash string or Uint8Array to Point. - * @param hex short/long ECDSA hex - */ - static fromHex(hex: Hex): Point { - const P = Point.fromAffine(fromBytes(ensureBytes('pointHex', hex))); - P.assertValidity(); - return P; - } - - // Multiplies generator point by privateKey. - static fromPrivateKey(privateKey: PrivKey) { - return Point.BASE.multiply(normPrivateKeyToScalar(privateKey)); - } - - // We calculate precomputes for elliptic curve point multiplication - // using windowed method. This specifies window size and - // stores precomputed values. Usually only base point would be precomputed. - _WINDOW_SIZE?: number; - - // "Private method", don't use it directly - _setWindowSize(windowSize: number) { - this._WINDOW_SIZE = windowSize; - pointPrecomputes.delete(this); - } - - // A point on curve is valid if it conforms to equation. - assertValidity(): void { - // Zero is valid point too! - if (this.is0()) { - if (CURVE.allowInfinityPoint) return; - throw new Error('bad point: ZERO'); - } - // Some 3rd-party test vectors require different wording between here & `fromCompressedHex` - const { x, y } = this.toAffine(); - // Check if x, y are valid field elements - if (!Fp.isValid(x) || !Fp.isValid(y)) throw new Error('bad point: x or y not FE'); - const left = Fp.sqr(y); // y² - const right = weierstrassEquation(x); // x³ + ax + b - if (!Fp.eql(left, right)) throw new Error('bad point: equation left != right'); - if (!this.isTorsionFree()) throw new Error('bad point: not in prime-order subgroup'); - } - hasEvenY(): boolean { - const { y } = this.toAffine(); - if (Fp.isOdd) return !Fp.isOdd(y); - throw new Error("Field doesn't support isOdd"); - } - - /** - * Compare one point to another. - */ - equals(other: Point): boolean { - assertPrjPoint(other); - const { px: X1, py: Y1, pz: Z1 } = this; - const { px: X2, py: Y2, pz: Z2 } = other; - const U1 = Fp.eql(Fp.mul(X1, Z2), Fp.mul(X2, Z1)); - const U2 = Fp.eql(Fp.mul(Y1, Z2), Fp.mul(Y2, Z1)); - return U1 && U2; - } - - /** - * Flips point to one corresponding to (x, -y) in Affine coordinates. - */ - negate(): Point { - return new Point(this.px, Fp.neg(this.py), this.pz); - } - - // Renes-Costello-Batina exception-free doubling formula. - // There is 30% faster Jacobian formula, but it is not complete. - // https://eprint.iacr.org/2015/1060, algorithm 3 - // Cost: 8M + 3S + 3*a + 2*b3 + 15add. - double() { - const { a, b } = CURVE; - const b3 = Fp.mul(b, _3n); - const { px: X1, py: Y1, pz: Z1 } = this; - let X3 = Fp.ZERO, Y3 = Fp.ZERO, Z3 = Fp.ZERO; // prettier-ignore - let t0 = Fp.mul(X1, X1); // step 1 - let t1 = Fp.mul(Y1, Y1); - let t2 = Fp.mul(Z1, Z1); - let t3 = Fp.mul(X1, Y1); - t3 = Fp.add(t3, t3); // step 5 - Z3 = Fp.mul(X1, Z1); - Z3 = Fp.add(Z3, Z3); - X3 = Fp.mul(a, Z3); - Y3 = Fp.mul(b3, t2); - Y3 = Fp.add(X3, Y3); // step 10 - X3 = Fp.sub(t1, Y3); - Y3 = Fp.add(t1, Y3); - Y3 = Fp.mul(X3, Y3); - X3 = Fp.mul(t3, X3); - Z3 = Fp.mul(b3, Z3); // step 15 - t2 = Fp.mul(a, t2); - t3 = Fp.sub(t0, t2); - t3 = Fp.mul(a, t3); - t3 = Fp.add(t3, Z3); - Z3 = Fp.add(t0, t0); // step 20 - t0 = Fp.add(Z3, t0); - t0 = Fp.add(t0, t2); - t0 = Fp.mul(t0, t3); - Y3 = Fp.add(Y3, t0); - t2 = Fp.mul(Y1, Z1); // step 25 - t2 = Fp.add(t2, t2); - t0 = Fp.mul(t2, t3); - X3 = Fp.sub(X3, t0); - Z3 = Fp.mul(t2, t1); - Z3 = Fp.add(Z3, Z3); // step 30 - Z3 = Fp.add(Z3, Z3); - return new Point(X3, Y3, Z3); - } - - // Renes-Costello-Batina exception-free addition formula. - // There is 30% faster Jacobian formula, but it is not complete. - // https://eprint.iacr.org/2015/1060, algorithm 1 - // Cost: 12M + 0S + 3*a + 3*b3 + 23add. - add(other: Point): Point { - assertPrjPoint(other); - const { px: X1, py: Y1, pz: Z1 } = this; - const { px: X2, py: Y2, pz: Z2 } = other; - let X3 = Fp.ZERO, Y3 = Fp.ZERO, Z3 = Fp.ZERO; // prettier-ignore - const a = CURVE.a; - const b3 = Fp.mul(CURVE.b, _3n); - let t0 = Fp.mul(X1, X2); // step 1 - let t1 = Fp.mul(Y1, Y2); - let t2 = Fp.mul(Z1, Z2); - let t3 = Fp.add(X1, Y1); - let t4 = Fp.add(X2, Y2); // step 5 - t3 = Fp.mul(t3, t4); - t4 = Fp.add(t0, t1); - t3 = Fp.sub(t3, t4); - t4 = Fp.add(X1, Z1); - let t5 = Fp.add(X2, Z2); // step 10 - t4 = Fp.mul(t4, t5); - t5 = Fp.add(t0, t2); - t4 = Fp.sub(t4, t5); - t5 = Fp.add(Y1, Z1); - X3 = Fp.add(Y2, Z2); // step 15 - t5 = Fp.mul(t5, X3); - X3 = Fp.add(t1, t2); - t5 = Fp.sub(t5, X3); - Z3 = Fp.mul(a, t4); - X3 = Fp.mul(b3, t2); // step 20 - Z3 = Fp.add(X3, Z3); - X3 = Fp.sub(t1, Z3); - Z3 = Fp.add(t1, Z3); - Y3 = Fp.mul(X3, Z3); - t1 = Fp.add(t0, t0); // step 25 - t1 = Fp.add(t1, t0); - t2 = Fp.mul(a, t2); - t4 = Fp.mul(b3, t4); - t1 = Fp.add(t1, t2); - t2 = Fp.sub(t0, t2); // step 30 - t2 = Fp.mul(a, t2); - t4 = Fp.add(t4, t2); - t0 = Fp.mul(t1, t4); - Y3 = Fp.add(Y3, t0); - t0 = Fp.mul(t5, t4); // step 35 - X3 = Fp.mul(t3, X3); - X3 = Fp.sub(X3, t0); - t0 = Fp.mul(t3, t1); - Z3 = Fp.mul(t5, Z3); - Z3 = Fp.add(Z3, t0); // step 40 - return new Point(X3, Y3, Z3); - } - - subtract(other: Point) { - return this.add(other.negate()); - } - - private is0() { - return this.equals(Point.ZERO); - } - private wNAF(n: bigint): { p: Point; f: Point } { - return wnaf.wNAFCached(this, pointPrecomputes, n, (comp: Point[]) => { - const toInv = Fp.invertBatch(comp.map((p) => p.pz)); - return comp.map((p, i) => p.toAffine(toInv[i])).map(Point.fromAffine); - }); - } - - /** - * Non-constant-time multiplication. Uses double-and-add algorithm. - * It's faster, but should only be used when you don't care about - * an exposed private key e.g. sig verification, which works over *public* keys. - */ - multiplyUnsafe(n: bigint): Point { - const I = Point.ZERO; - if (n === _0n) return I; - assertGE(n); // Will throw on 0 - if (n === _1n) return this; - const { endo } = CURVE; - if (!endo) return wnaf.unsafeLadder(this, n); - - // Apply endomorphism - let { k1neg, k1, k2neg, k2 } = endo.splitScalar(n); - let k1p = I; - let k2p = I; - let d: Point = this; - while (k1 > _0n || k2 > _0n) { - if (k1 & _1n) k1p = k1p.add(d); - if (k2 & _1n) k2p = k2p.add(d); - d = d.double(); - k1 >>= _1n; - k2 >>= _1n; - } - if (k1neg) k1p = k1p.negate(); - if (k2neg) k2p = k2p.negate(); - k2p = new Point(Fp.mul(k2p.px, endo.beta), k2p.py, k2p.pz); - return k1p.add(k2p); - } - - /** - * Constant time multiplication. - * Uses wNAF method. Windowed method may be 10% faster, - * but takes 2x longer to generate and consumes 2x memory. - * Uses precomputes when available. - * Uses endomorphism for Koblitz curves. - * @param scalar by which the point would be multiplied - * @returns New point - */ - multiply(scalar: bigint): Point { - assertGE(scalar); - let n = scalar; - let point: Point, fake: Point; // Fake point is used to const-time mult - const { endo } = CURVE; - if (endo) { - const { k1neg, k1, k2neg, k2 } = endo.splitScalar(n); - let { p: k1p, f: f1p } = this.wNAF(k1); - let { p: k2p, f: f2p } = this.wNAF(k2); - k1p = wnaf.constTimeNegate(k1neg, k1p); - k2p = wnaf.constTimeNegate(k2neg, k2p); - k2p = new Point(Fp.mul(k2p.px, endo.beta), k2p.py, k2p.pz); - point = k1p.add(k2p); - fake = f1p.add(f2p); - } else { - const { p, f } = this.wNAF(n); - point = p; - fake = f; - } - // Normalize `z` for both points, but return only real one - return Point.normalizeZ([point, fake])[0]; - } - - /** - * Efficiently calculate `aP + bQ`. Unsafe, can expose private key, if used incorrectly. - * Not using Strauss-Shamir trick: precomputation tables are faster. - * The trick could be useful if both P and Q are not G (not in our case). - * @returns non-zero affine point - */ - multiplyAndAddUnsafe(Q: Point, a: bigint, b: bigint): Point | undefined { - const G = Point.BASE; // No Strauss-Shamir trick: we have 10% faster G precomputes - const mul = ( - P: Point, - a: bigint // Select faster multiply() method - ) => (a === _0n || a === _1n || !P.equals(G) ? P.multiplyUnsafe(a) : P.multiply(a)); - const sum = mul(this, a).add(mul(Q, b)); - return sum.is0() ? undefined : sum; - } - - // Converts Projective point to affine (x, y) coordinates. - // Can accept precomputed Z^-1 - for example, from invertBatch. - // (x, y, z) ∋ (x=x/z, y=y/z) - toAffine(iz?: T): AffinePoint { - const { px: x, py: y, pz: z } = this; - const is0 = this.is0(); - // If invZ was 0, we return zero point. However we still want to execute - // all operations, so we replace invZ with a random number, 1. - if (iz == null) iz = is0 ? Fp.ONE : Fp.inv(z); - const ax = Fp.mul(x, iz); - const ay = Fp.mul(y, iz); - const zz = Fp.mul(z, iz); - if (is0) return { x: Fp.ZERO, y: Fp.ZERO }; - if (!Fp.eql(zz, Fp.ONE)) throw new Error('invZ was invalid'); - return { x: ax, y: ay }; - } - isTorsionFree(): boolean { - const { h: cofactor, isTorsionFree } = CURVE; - if (cofactor === _1n) return true; // No subgroups, always torsion-free - if (isTorsionFree) return isTorsionFree(Point, this); - throw new Error('isTorsionFree() has not been declared for the elliptic curve'); - } - clearCofactor(): Point { - const { h: cofactor, clearCofactor } = CURVE; - if (cofactor === _1n) return this; // Fast-path - if (clearCofactor) return clearCofactor(Point, this) as Point; - return this.multiplyUnsafe(CURVE.h); - } - - toRawBytes(isCompressed = true): Uint8Array { - this.assertValidity(); - return toBytes(Point, this, isCompressed); - } - - toHex(isCompressed = true): string { - return ut.bytesToHex(this.toRawBytes(isCompressed)); - } - } - const _bits = CURVE.nBitLength; - const wnaf = wNAF(Point, CURVE.endo ? Math.ceil(_bits / 2) : _bits); - // Validate if generator point is on curve - return { - CURVE, - ProjectivePoint: Point as ProjConstructor, - normPrivateKeyToScalar, - weierstrassEquation, - isWithinCurveOrder, - }; -} - -// Instance -export interface SignatureType { - readonly r: bigint; - readonly s: bigint; - readonly recovery?: number; - assertValidity(): void; - addRecoveryBit(recovery: number): RecoveredSignatureType; - hasHighS(): boolean; - normalizeS(): SignatureType; - recoverPublicKey(msgHash: Hex): ProjPointType; - toCompactRawBytes(): Uint8Array; - toCompactHex(): string; - // DER-encoded - toDERRawBytes(isCompressed?: boolean): Uint8Array; - toDERHex(isCompressed?: boolean): string; -} -export type RecoveredSignatureType = SignatureType & { - readonly recovery: number; -}; -// Static methods -export type SignatureConstructor = { - new (r: bigint, s: bigint): SignatureType; - fromCompact(hex: Hex): SignatureType; - fromDER(hex: Hex): SignatureType; -}; -type SignatureLike = { r: bigint; s: bigint }; - -export type PubKey = Hex | ProjPointType; - -export type CurveType = BasicWCurve & { - hash: CHash; // CHash not FHash because we need outputLen for DRBG - hmac: HmacFnSync; - randomBytes: (bytesLength?: number) => Uint8Array; - lowS?: boolean; - bits2int?: (bytes: Uint8Array) => bigint; - bits2int_modN?: (bytes: Uint8Array) => bigint; -}; - -function validateOpts(curve: CurveType) { - const opts = validateBasic(curve); - ut.validateObject( - opts, - { - hash: 'hash', - hmac: 'function', - randomBytes: 'function', - }, - { - bits2int: 'function', - bits2int_modN: 'function', - lowS: 'boolean', - } - ); - return Object.freeze({ lowS: true, ...opts } as const); -} - -export type CurveFn = { - CURVE: ReturnType; - getPublicKey: (privateKey: PrivKey, isCompressed?: boolean) => Uint8Array; - getSharedSecret: (privateA: PrivKey, publicB: Hex, isCompressed?: boolean) => Uint8Array; - sign: (msgHash: Hex, privKey: PrivKey, opts?: SignOpts) => RecoveredSignatureType; - verify: (signature: Hex | SignatureLike, msgHash: Hex, publicKey: Hex, opts?: VerOpts) => boolean; - ProjectivePoint: ProjConstructor; - Signature: SignatureConstructor; - utils: { - normPrivateKeyToScalar: (key: PrivKey) => bigint; - isValidPrivateKey(privateKey: PrivKey): boolean; - randomPrivateKey: () => Uint8Array; - precompute: (windowSize?: number, point?: ProjPointType) => ProjPointType; - }; -}; - -export function weierstrass(curveDef: CurveType): CurveFn { - const CURVE = validateOpts(curveDef) as ReturnType; - const { Fp, n: CURVE_ORDER } = CURVE; - const compressedLen = Fp.BYTES + 1; // e.g. 33 for 32 - const uncompressedLen = 2 * Fp.BYTES + 1; // e.g. 65 for 32 - - function isValidFieldElement(num: bigint): boolean { - return _0n < num && num < Fp.ORDER; // 0 is banned since it's not invertible FE - } - function modN(a: bigint) { - return mod.mod(a, CURVE_ORDER); - } - function invN(a: bigint) { - return mod.invert(a, CURVE_ORDER); - } - - const { - ProjectivePoint: Point, - normPrivateKeyToScalar, - weierstrassEquation, - isWithinCurveOrder, - } = weierstrassPoints({ - ...CURVE, - toBytes(c, point, isCompressed: boolean): Uint8Array { - const a = point.toAffine(); - const x = Fp.toBytes(a.x); - const cat = ut.concatBytes; - if (isCompressed) { - return cat(Uint8Array.from([point.hasEvenY() ? 0x02 : 0x03]), x); - } else { - return cat(Uint8Array.from([0x04]), x, Fp.toBytes(a.y)); - } - }, - fromBytes(bytes: Uint8Array) { - const len = bytes.length; - const head = bytes[0]; - const tail = bytes.subarray(1); - // this.assertValidity() is done inside of fromHex - if (len === compressedLen && (head === 0x02 || head === 0x03)) { - const x = ut.bytesToNumberBE(tail); - if (!isValidFieldElement(x)) throw new Error('Point is not on curve'); - const y2 = weierstrassEquation(x); // y² = x³ + ax + b - let y = Fp.sqrt(y2); // y = y² ^ (p+1)/4 - const isYOdd = (y & _1n) === _1n; - // ECDSA - const isHeadOdd = (head & 1) === 1; - if (isHeadOdd !== isYOdd) y = Fp.neg(y); - return { x, y }; - } else if (len === uncompressedLen && head === 0x04) { - const x = Fp.fromBytes(tail.subarray(0, Fp.BYTES)); - const y = Fp.fromBytes(tail.subarray(Fp.BYTES, 2 * Fp.BYTES)); - return { x, y }; - } else { - throw new Error( - `Point of length ${len} was invalid. Expected ${compressedLen} compressed bytes or ${uncompressedLen} uncompressed bytes` - ); - } - }, - }); - const numToNByteStr = (num: bigint): string => - ut.bytesToHex(ut.numberToBytesBE(num, CURVE.nByteLength)); - - function isBiggerThanHalfOrder(number: bigint) { - const HALF = CURVE_ORDER >> _1n; - return number > HALF; - } - - function normalizeS(s: bigint) { - return isBiggerThanHalfOrder(s) ? modN(-s) : s; - } - // slice bytes num - const slcNum = (b: Uint8Array, from: number, to: number) => ut.bytesToNumberBE(b.slice(from, to)); - - /** - * ECDSA signature with its (r, s) properties. Supports DER & compact representations. - */ - class Signature implements SignatureType { - constructor(readonly r: bigint, readonly s: bigint, readonly recovery?: number) { - this.assertValidity(); - } - - // pair (bytes of r, bytes of s) - static fromCompact(hex: Hex) { - const l = CURVE.nByteLength; - hex = ensureBytes('compactSignature', hex, l * 2); - return new Signature(slcNum(hex, 0, l), slcNum(hex, l, 2 * l)); - } - - // DER encoded ECDSA signature - // https://bitcoin.stackexchange.com/questions/57644/what-are-the-parts-of-a-bitcoin-transaction-input-script - static fromDER(hex: Hex) { - const { r, s } = DER.toSig(ensureBytes('DER', hex)); - return new Signature(r, s); - } - - assertValidity(): void { - // can use assertGE here - if (!isWithinCurveOrder(this.r)) throw new Error('r must be 0 < r < CURVE.n'); - if (!isWithinCurveOrder(this.s)) throw new Error('s must be 0 < s < CURVE.n'); - } - - addRecoveryBit(recovery: number): RecoveredSignature { - return new Signature(this.r, this.s, recovery) as RecoveredSignature; - } - - recoverPublicKey(msgHash: Hex): typeof Point.BASE { - const { r, s, recovery: rec } = this; - const h = bits2int_modN(ensureBytes('msgHash', msgHash)); // Truncate hash - if (rec == null || ![0, 1, 2, 3].includes(rec)) throw new Error('recovery id invalid'); - const radj = rec === 2 || rec === 3 ? r + CURVE.n : r; - if (radj >= Fp.ORDER) throw new Error('recovery id 2 or 3 invalid'); - const prefix = (rec & 1) === 0 ? '02' : '03'; - const R = Point.fromHex(prefix + numToNByteStr(radj)); - const ir = invN(radj); // r^-1 - const u1 = modN(-h * ir); // -hr^-1 - const u2 = modN(s * ir); // sr^-1 - const Q = Point.BASE.multiplyAndAddUnsafe(R, u1, u2); // (sr^-1)R-(hr^-1)G = -(hr^-1)G + (sr^-1) - if (!Q) throw new Error('point at infinify'); // unsafe is fine: no priv data leaked - Q.assertValidity(); - return Q; - } - - // Signatures should be low-s, to prevent malleability. - hasHighS(): boolean { - return isBiggerThanHalfOrder(this.s); - } - - normalizeS() { - return this.hasHighS() ? new Signature(this.r, modN(-this.s), this.recovery) : this; - } - - // DER-encoded - toDERRawBytes() { - return ut.hexToBytes(this.toDERHex()); - } - toDERHex() { - return DER.hexFromSig({ r: this.r, s: this.s }); - } - - // padded bytes of r, then padded bytes of s - toCompactRawBytes() { - return ut.hexToBytes(this.toCompactHex()); - } - toCompactHex() { - return numToNByteStr(this.r) + numToNByteStr(this.s); - } - } - type RecoveredSignature = Signature & { recovery: number }; - - const utils = { - isValidPrivateKey(privateKey: PrivKey) { - try { - normPrivateKeyToScalar(privateKey); - return true; - } catch (error) { - return false; - } - }, - normPrivateKeyToScalar: normPrivateKeyToScalar, - - /** - * Produces cryptographically secure private key from random of size (nBitLength+64) - * as per FIPS 186 B.4.1 with modulo bias being neglible. - */ - randomPrivateKey: (): Uint8Array => { - const rand = CURVE.randomBytes(Fp.BYTES + 8); - const num = mod.hashToPrivateScalar(rand, CURVE_ORDER); - return ut.numberToBytesBE(num, CURVE.nByteLength); - }, - - /** - * Creates precompute table for an arbitrary EC point. Makes point "cached". - * Allows to massively speed-up `point.multiply(scalar)`. - * @returns cached point - * @example - * const fast = utils.precompute(8, ProjectivePoint.fromHex(someonesPubKey)); - * fast.multiply(privKey); // much faster ECDH now - */ - precompute(windowSize = 8, point = Point.BASE): typeof Point.BASE { - point._setWindowSize(windowSize); - point.multiply(BigInt(3)); // 3 is arbitrary, just need any number here - return point; - }, - }; - - /** - * Computes public key for a private key. Checks for validity of the private key. - * @param privateKey private key - * @param isCompressed whether to return compact (default), or full key - * @returns Public key, full when isCompressed=false; short when isCompressed=true - */ - function getPublicKey(privateKey: PrivKey, isCompressed = true): Uint8Array { - return Point.fromPrivateKey(privateKey).toRawBytes(isCompressed); - } - - /** - * Quick and dirty check for item being public key. Does not validate hex, or being on-curve. - */ - function isProbPub(item: PrivKey | PubKey): boolean { - const arr = item instanceof Uint8Array; - const str = typeof item === 'string'; - const len = (arr || str) && (item as Hex).length; - if (arr) return len === compressedLen || len === uncompressedLen; - if (str) return len === 2 * compressedLen || len === 2 * uncompressedLen; - if (item instanceof Point) return true; - return false; - } - - /** - * ECDH (Elliptic Curve Diffie Hellman). - * Computes shared public key from private key and public key. - * Checks: 1) private key validity 2) shared key is on-curve. - * Does NOT hash the result. - * @param privateA private key - * @param publicB different public key - * @param isCompressed whether to return compact (default), or full key - * @returns shared public key - */ - function getSharedSecret(privateA: PrivKey, publicB: Hex, isCompressed = true): Uint8Array { - if (isProbPub(privateA)) throw new Error('first arg must be private key'); - if (!isProbPub(publicB)) throw new Error('second arg must be public key'); - const b = Point.fromHex(publicB); // check for being on-curve - return b.multiply(normPrivateKeyToScalar(privateA)).toRawBytes(isCompressed); - } - - // RFC6979: ensure ECDSA msg is X bytes and < N. RFC suggests optional truncating via bits2octets. - // FIPS 186-4 4.6 suggests the leftmost min(nBitLen, outLen) bits, which matches bits2int. - // bits2int can produce res>N, we can do mod(res, N) since the bitLen is the same. - // int2octets can't be used; pads small msgs with 0: unacceptatble for trunc as per RFC vectors - const bits2int = - CURVE.bits2int || - function (bytes: Uint8Array): bigint { - // For curves with nBitLength % 8 !== 0: bits2octets(bits2octets(m)) !== bits2octets(m) - // for some cases, since bytes.length * 8 is not actual bitLength. - const num = ut.bytesToNumberBE(bytes); // check for == u8 done here - const delta = bytes.length * 8 - CURVE.nBitLength; // truncate to nBitLength leftmost bits - return delta > 0 ? num >> BigInt(delta) : num; - }; - const bits2int_modN = - CURVE.bits2int_modN || - function (bytes: Uint8Array): bigint { - return modN(bits2int(bytes)); // can't use bytesToNumberBE here - }; - // NOTE: pads output with zero as per spec - const ORDER_MASK = ut.bitMask(CURVE.nBitLength); - /** - * Converts to bytes. Checks if num in `[0..ORDER_MASK-1]` e.g.: `[0..2^256-1]`. - */ - function int2octets(num: bigint): Uint8Array { - if (typeof num !== 'bigint') throw new Error('bigint expected'); - if (!(_0n <= num && num < ORDER_MASK)) - throw new Error(`bigint expected < 2^${CURVE.nBitLength}`); - // works with order, can have different size than numToField! - return ut.numberToBytesBE(num, CURVE.nByteLength); - } - - // Steps A, D of RFC6979 3.2 - // Creates RFC6979 seed; converts msg/privKey to numbers. - // Used only in sign, not in verify. - // NOTE: we cannot assume here that msgHash has same amount of bytes as curve order, this will be wrong at least for P521. - // Also it can be bigger for P224 + SHA256 - function prepSig(msgHash: Hex, privateKey: PrivKey, opts = defaultSigOpts) { - if (['recovered', 'canonical'].some((k) => k in opts)) - throw new Error('sign() legacy options not supported'); - const { hash, randomBytes } = CURVE; - let { lowS, prehash, extraEntropy: ent } = opts; // generates low-s sigs by default - if (lowS == null) lowS = true; // RFC6979 3.2: we skip step A, because we already provide hash - msgHash = ensureBytes('msgHash', msgHash); - if (prehash) msgHash = ensureBytes('prehashed msgHash', hash(msgHash)); - - // We can't later call bits2octets, since nested bits2int is broken for curves - // with nBitLength % 8 !== 0. Because of that, we unwrap it here as int2octets call. - // const bits2octets = (bits) => int2octets(bits2int_modN(bits)) - const h1int = bits2int_modN(msgHash); - const d = normPrivateKeyToScalar(privateKey); // validate private key, convert to bigint - const seedArgs = [int2octets(d), int2octets(h1int)]; - // extraEntropy. RFC6979 3.6: additional k' (optional). - if (ent != null) { - // K = HMAC_K(V || 0x00 || int2octets(x) || bits2octets(h1) || k') - const e = ent === true ? randomBytes(Fp.BYTES) : ent; // generate random bytes OR pass as-is - seedArgs.push(ensureBytes('extraEntropy', e, Fp.BYTES)); // check for being of size BYTES - } - const seed = ut.concatBytes(...seedArgs); // Step D of RFC6979 3.2 - const m = h1int; // NOTE: no need to call bits2int second time here, it is inside truncateHash! - // Converts signature params into point w r/s, checks result for validity. - function k2sig(kBytes: Uint8Array): RecoveredSignature | undefined { - // RFC 6979 Section 3.2, step 3: k = bits2int(T) - const k = bits2int(kBytes); // Cannot use fields methods, since it is group element - if (!isWithinCurveOrder(k)) return; // Important: all mod() calls here must be done over N - const ik = invN(k); // k^-1 mod n - const q = Point.BASE.multiply(k).toAffine(); // q = Gk - const r = modN(q.x); // r = q.x mod n - if (r === _0n) return; - // Can use scalar blinding b^-1(bm + bdr) where b ∈ [1,q−1] according to - // https://tches.iacr.org/index.php/TCHES/article/view/7337/6509. We've decided against it: - // a) dependency on CSPRNG b) 15% slowdown c) doesn't really help since bigints are not CT - const s = modN(ik * modN(m + r * d)); // Not using blinding here - if (s === _0n) return; - let recovery = (q.x === r ? 0 : 2) | Number(q.y & _1n); // recovery bit (2 or 3, when q.x > n) - let normS = s; - if (lowS && isBiggerThanHalfOrder(s)) { - normS = normalizeS(s); // if lowS was passed, ensure s is always - recovery ^= 1; // // in the bottom half of N - } - return new Signature(r, normS, recovery) as RecoveredSignature; // use normS, not s - } - return { seed, k2sig }; - } - const defaultSigOpts: SignOpts = { lowS: CURVE.lowS, prehash: false }; - const defaultVerOpts: VerOpts = { lowS: CURVE.lowS, prehash: false }; - - /** - * Signs message hash with a private key. - * ``` - * sign(m, d, k) where - * (x, y) = G × k - * r = x mod n - * s = (m + dr)/k mod n - * ``` - * @param msgHash NOT message. msg needs to be hashed to `msgHash`, or use `prehash`. - * @param privKey private key - * @param opts lowS for non-malleable sigs. extraEntropy for mixing randomness into k. prehash will hash first arg. - * @returns signature with recovery param - */ - function sign(msgHash: Hex, privKey: PrivKey, opts = defaultSigOpts): RecoveredSignature { - const { seed, k2sig } = prepSig(msgHash, privKey, opts); // Steps A, D of RFC6979 3.2. - const C = CURVE; - const drbg = ut.createHmacDrbg(C.hash.outputLen, C.nByteLength, C.hmac); - return drbg(seed, k2sig); // Steps B, C, D, E, F, G - } - - // Enable precomputes. Slows down first publicKey computation by 20ms. - Point.BASE._setWindowSize(8); - // utils.precompute(8, ProjectivePoint.BASE) - - /** - * Verifies a signature against message hash and public key. - * Rejects lowS signatures by default: to override, - * specify option `{lowS: false}`. Implements section 4.1.4 from https://www.secg.org/sec1-v2.pdf: - * - * ``` - * verify(r, s, h, P) where - * U1 = hs^-1 mod n - * U2 = rs^-1 mod n - * R = U1⋅G - U2⋅P - * mod(R.x, n) == r - * ``` - */ - function verify( - signature: Hex | SignatureLike, - msgHash: Hex, - publicKey: Hex, - opts = defaultVerOpts - ): boolean { - const sg = signature; - msgHash = ensureBytes('msgHash', msgHash); - publicKey = ensureBytes('publicKey', publicKey); - if ('strict' in opts) throw new Error('options.strict was renamed to lowS'); - const { lowS, prehash } = opts; - - let _sig: Signature | undefined = undefined; - let P: ProjPointType; - try { - if (typeof sg === 'string' || sg instanceof Uint8Array) { - // Signature can be represented in 2 ways: compact (2*nByteLength) & DER (variable-length). - // Since DER can also be 2*nByteLength bytes, we check for it first. - try { - _sig = Signature.fromDER(sg); - } catch (derError) { - if (!(derError instanceof DER.Err)) throw derError; - _sig = Signature.fromCompact(sg); - } - } else if (typeof sg === 'object' && typeof sg.r === 'bigint' && typeof sg.s === 'bigint') { - const { r, s } = sg; - _sig = new Signature(r, s); - } else { - throw new Error('PARSE'); - } - P = Point.fromHex(publicKey); - } catch (error) { - if ((error as Error).message === 'PARSE') - throw new Error(`signature must be Signature instance, Uint8Array or hex string`); - return false; - } - if (lowS && _sig.hasHighS()) return false; - if (prehash) msgHash = CURVE.hash(msgHash); - const { r, s } = _sig; - const h = bits2int_modN(msgHash); // Cannot use fields methods, since it is group element - const is = invN(s); // s^-1 - const u1 = modN(h * is); // u1 = hs^-1 mod n - const u2 = modN(r * is); // u2 = rs^-1 mod n - const R = Point.BASE.multiplyAndAddUnsafe(P, u1, u2)?.toAffine(); // R = u1⋅G + u2⋅P - if (!R) return false; - const v = modN(R.x); - return v === r; - } - return { - CURVE, - getPublicKey, - getSharedSecret, - sign, - verify, - ProjectivePoint: Point, - Signature, - utils, - }; -} - -/** - * Implementation of the Shallue and van de Woestijne method for any weierstrass curve. - * TODO: check if there is a way to merge this with uvRatio in Edwards; move to modular. - * b = True and y = sqrt(u / v) if (u / v) is square in F, and - * b = False and y = sqrt(Z * (u / v)) otherwise. - * @param Fp - * @param Z - * @returns - */ -export function SWUFpSqrtRatio(Fp: mod.IField, Z: T) { - // Generic implementation - const q = Fp.ORDER; - let l = _0n; - for (let o = q - _1n; o % _2n === _0n; o /= _2n) l += _1n; - const c1 = l; // 1. c1, the largest integer such that 2^c1 divides q - 1. - // We need 2n ** c1 and 2n ** (c1-1). We can't use **; but we can use <<. - // 2n ** c1 == 2n << (c1-1) - const _2n_pow_c1_1 = _2n << (c1 - _1n - _1n); - const _2n_pow_c1 = _2n_pow_c1_1 * _2n; - const c2 = (q - _1n) / _2n_pow_c1; // 2. c2 = (q - 1) / (2^c1) # Integer arithmetic - const c3 = (c2 - _1n) / _2n; // 3. c3 = (c2 - 1) / 2 # Integer arithmetic - const c4 = _2n_pow_c1 - _1n; // 4. c4 = 2^c1 - 1 # Integer arithmetic - const c5 = _2n_pow_c1_1; // 5. c5 = 2^(c1 - 1) # Integer arithmetic - const c6 = Fp.pow(Z, c2); // 6. c6 = Z^c2 - const c7 = Fp.pow(Z, (c2 + _1n) / _2n); // 7. c7 = Z^((c2 + 1) / 2) - let sqrtRatio = (u: T, v: T): { isValid: boolean; value: T } => { - let tv1 = c6; // 1. tv1 = c6 - let tv2 = Fp.pow(v, c4); // 2. tv2 = v^c4 - let tv3 = Fp.sqr(tv2); // 3. tv3 = tv2^2 - tv3 = Fp.mul(tv3, v); // 4. tv3 = tv3 * v - let tv5 = Fp.mul(u, tv3); // 5. tv5 = u * tv3 - tv5 = Fp.pow(tv5, c3); // 6. tv5 = tv5^c3 - tv5 = Fp.mul(tv5, tv2); // 7. tv5 = tv5 * tv2 - tv2 = Fp.mul(tv5, v); // 8. tv2 = tv5 * v - tv3 = Fp.mul(tv5, u); // 9. tv3 = tv5 * u - let tv4 = Fp.mul(tv3, tv2); // 10. tv4 = tv3 * tv2 - tv5 = Fp.pow(tv4, c5); // 11. tv5 = tv4^c5 - let isQR = Fp.eql(tv5, Fp.ONE); // 12. isQR = tv5 == 1 - tv2 = Fp.mul(tv3, c7); // 13. tv2 = tv3 * c7 - tv5 = Fp.mul(tv4, tv1); // 14. tv5 = tv4 * tv1 - tv3 = Fp.cmov(tv2, tv3, isQR); // 15. tv3 = CMOV(tv2, tv3, isQR) - tv4 = Fp.cmov(tv5, tv4, isQR); // 16. tv4 = CMOV(tv5, tv4, isQR) - // 17. for i in (c1, c1 - 1, ..., 2): - for (let i = c1; i > _1n; i--) { - let tv5 = i - _2n; // 18. tv5 = i - 2 - tv5 = _2n << (tv5 - _1n); // 19. tv5 = 2^tv5 - let tvv5 = Fp.pow(tv4, tv5); // 20. tv5 = tv4^tv5 - const e1 = Fp.eql(tvv5, Fp.ONE); // 21. e1 = tv5 == 1 - tv2 = Fp.mul(tv3, tv1); // 22. tv2 = tv3 * tv1 - tv1 = Fp.mul(tv1, tv1); // 23. tv1 = tv1 * tv1 - tvv5 = Fp.mul(tv4, tv1); // 24. tv5 = tv4 * tv1 - tv3 = Fp.cmov(tv2, tv3, e1); // 25. tv3 = CMOV(tv2, tv3, e1) - tv4 = Fp.cmov(tvv5, tv4, e1); // 26. tv4 = CMOV(tv5, tv4, e1) - } - return { isValid: isQR, value: tv3 }; - }; - if (Fp.ORDER % _4n === _3n) { - // sqrt_ratio_3mod4(u, v) - const c1 = (Fp.ORDER - _3n) / _4n; // 1. c1 = (q - 3) / 4 # Integer arithmetic - const c2 = Fp.sqrt(Fp.neg(Z)); // 2. c2 = sqrt(-Z) - sqrtRatio = (u: T, v: T) => { - let tv1 = Fp.sqr(v); // 1. tv1 = v^2 - const tv2 = Fp.mul(u, v); // 2. tv2 = u * v - tv1 = Fp.mul(tv1, tv2); // 3. tv1 = tv1 * tv2 - let y1 = Fp.pow(tv1, c1); // 4. y1 = tv1^c1 - y1 = Fp.mul(y1, tv2); // 5. y1 = y1 * tv2 - const y2 = Fp.mul(y1, c2); // 6. y2 = y1 * c2 - const tv3 = Fp.mul(Fp.sqr(y1), v); // 7. tv3 = y1^2; 8. tv3 = tv3 * v - const isQR = Fp.eql(tv3, u); // 9. isQR = tv3 == u - let y = Fp.cmov(y2, y1, isQR); // 10. y = CMOV(y2, y1, isQR) - return { isValid: isQR, value: y }; // 11. return (isQR, y) isQR ? y : y*c2 - }; - } - // No curves uses that - // if (Fp.ORDER % _8n === _5n) // sqrt_ratio_5mod8 - return sqrtRatio; -} -/** - * From draft-irtf-cfrg-hash-to-curve-16 - */ -export function mapToCurveSimpleSWU( - Fp: mod.IField, - opts: { - A: T; - B: T; - Z: T; - } -) { - mod.validateField(Fp); - if (!Fp.isValid(opts.A) || !Fp.isValid(opts.B) || !Fp.isValid(opts.Z)) - throw new Error('mapToCurveSimpleSWU: invalid opts'); - const sqrtRatio = SWUFpSqrtRatio(Fp, opts.Z); - if (!Fp.isOdd) throw new Error('Fp.isOdd is not implemented!'); - // Input: u, an element of F. - // Output: (x, y), a point on E. - return (u: T): { x: T; y: T } => { - // prettier-ignore - let tv1, tv2, tv3, tv4, tv5, tv6, x, y; - tv1 = Fp.sqr(u); // 1. tv1 = u^2 - tv1 = Fp.mul(tv1, opts.Z); // 2. tv1 = Z * tv1 - tv2 = Fp.sqr(tv1); // 3. tv2 = tv1^2 - tv2 = Fp.add(tv2, tv1); // 4. tv2 = tv2 + tv1 - tv3 = Fp.add(tv2, Fp.ONE); // 5. tv3 = tv2 + 1 - tv3 = Fp.mul(tv3, opts.B); // 6. tv3 = B * tv3 - tv4 = Fp.cmov(opts.Z, Fp.neg(tv2), !Fp.eql(tv2, Fp.ZERO)); // 7. tv4 = CMOV(Z, -tv2, tv2 != 0) - tv4 = Fp.mul(tv4, opts.A); // 8. tv4 = A * tv4 - tv2 = Fp.sqr(tv3); // 9. tv2 = tv3^2 - tv6 = Fp.sqr(tv4); // 10. tv6 = tv4^2 - tv5 = Fp.mul(tv6, opts.A); // 11. tv5 = A * tv6 - tv2 = Fp.add(tv2, tv5); // 12. tv2 = tv2 + tv5 - tv2 = Fp.mul(tv2, tv3); // 13. tv2 = tv2 * tv3 - tv6 = Fp.mul(tv6, tv4); // 14. tv6 = tv6 * tv4 - tv5 = Fp.mul(tv6, opts.B); // 15. tv5 = B * tv6 - tv2 = Fp.add(tv2, tv5); // 16. tv2 = tv2 + tv5 - x = Fp.mul(tv1, tv3); // 17. x = tv1 * tv3 - const { isValid, value } = sqrtRatio(tv2, tv6); // 18. (is_gx1_square, y1) = sqrt_ratio(tv2, tv6) - y = Fp.mul(tv1, u); // 19. y = tv1 * u -> Z * u^3 * y1 - y = Fp.mul(y, value); // 20. y = y * y1 - x = Fp.cmov(x, tv3, isValid); // 21. x = CMOV(x, tv3, is_gx1_square) - y = Fp.cmov(y, value, isValid); // 22. y = CMOV(y, y1, is_gx1_square) - const e1 = Fp.isOdd!(u) === Fp.isOdd!(y); // 23. e1 = sgn0(u) == sgn0(y) - y = Fp.cmov(Fp.neg(y), y, e1); // 24. y = CMOV(-y, y, e1) - x = Fp.div(x, tv4); // 25. x = x / tv4 - return { x, y }; - }; -} diff --git a/node_modules/@noble/curves/src/bls12-381.ts b/node_modules/@noble/curves/src/bls12-381.ts deleted file mode 100644 index 5f6fdc28..00000000 --- a/node_modules/@noble/curves/src/bls12-381.ts +++ /dev/null @@ -1,1351 +0,0 @@ -/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */ - -// bls12-381 pairing-friendly Barreto-Lynn-Scott elliptic curve construction allows to: -// - Construct zk-SNARKs at the 128-bit security -// - Use threshold signatures, which allows a user to sign lots of messages with one signature and -// verify them swiftly in a batch, using Boneh-Lynn-Shacham signature scheme. -// -// The library uses G1 for public keys and G2 for signatures. Support for G1 signatures is planned. -// Compatible with Algorand, Chia, Dfinity, Ethereum, FIL, Zcash. Matches specs -// [pairing-curves-11](https://tools.ietf.org/html/draft-irtf-cfrg-pairing-friendly-curves-11), -// [bls-sigs-04](https://tools.ietf.org/html/draft-irtf-cfrg-bls-signature-04), -// [hash-to-curve-12](https://tools.ietf.org/html/draft-irtf-cfrg-hash-to-curve-12). -// -// ### Summary -// 1. BLS Relies on Bilinear Pairing (expensive) -// 2. Private Keys: 32 bytes -// 3. Public Keys: 48 bytes: 381 bit affine x coordinate, encoded into 48 big-endian bytes. -// 4. Signatures: 96 bytes: two 381 bit integers (affine x coordinate), encoded into two 48 big-endian byte arrays. -// - The signature is a point on the G2 subgroup, which is defined over a finite field -// with elements twice as big as the G1 curve (G2 is over Fp2 rather than Fp. Fp2 is analogous to the complex numbers). -// 5. The 12 stands for the Embedding degree. -// -// ### Formulas -// - `P = pk x G` - public keys -// - `S = pk x H(m)` - signing -// - `e(P, H(m)) == e(G, S)` - verification using pairings -// - `e(G, S) = e(G, SUM(n)(Si)) = MUL(n)(e(G, Si))` - signature aggregation -// Filecoin uses little endian byte arrays for private keys - -// so ensure to reverse byte order if you'll use it with FIL. -import { sha256 } from '@noble/hashes/sha256'; -import { randomBytes } from '@noble/hashes/utils'; -import { bls, CurveFn } from './abstract/bls.js'; -import * as mod from './abstract/modular.js'; -import { - concatBytes as concatB, - ensureBytes, - numberToBytesBE, - bytesToNumberBE, - bitLen, - bitSet, - bitGet, - Hex, - bitMask, - bytesToHex, -} from './abstract/utils.js'; -// Types -import { - ProjPointType, - ProjConstructor, - mapToCurveSimpleSWU, - AffinePoint, -} from './abstract/weierstrass.js'; -import { isogenyMap } from './abstract/hash-to-curve.js'; - -// Be friendly to bad ECMAScript parsers by not using bigint literals -// prettier-ignore -const _0n = BigInt(0), _1n = BigInt(1), _2n = BigInt(2), _3n = BigInt(3), _4n = BigInt(4); -// prettier-ignore -const _8n = BigInt(8), _16n = BigInt(16); - -// CURVE FIELDS -// Finite field over p. -const Fp_raw = BigInt( - '0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffaaab' -); -const Fp = mod.Field(Fp_raw); -type Fp = bigint; -// Finite field over r. -// This particular field is not used anywhere in bls12-381, but it is still useful. -const Fr = mod.Field(BigInt('0x73eda753299d7d483339d80809a1d80553bda402fffe5bfeffffffff00000001')); - -// Fp₂ over complex plane -type BigintTuple = [bigint, bigint]; -type Fp2 = { c0: bigint; c1: bigint }; -const Fp2Add = ({ c0, c1 }: Fp2, { c0: r0, c1: r1 }: Fp2) => ({ - c0: Fp.add(c0, r0), - c1: Fp.add(c1, r1), -}); -const Fp2Subtract = ({ c0, c1 }: Fp2, { c0: r0, c1: r1 }: Fp2) => ({ - c0: Fp.sub(c0, r0), - c1: Fp.sub(c1, r1), -}); -const Fp2Multiply = ({ c0, c1 }: Fp2, rhs: Fp2) => { - if (typeof rhs === 'bigint') return { c0: Fp.mul(c0, rhs), c1: Fp.mul(c1, rhs) }; - // (a+bi)(c+di) = (ac−bd) + (ad+bc)i - const { c0: r0, c1: r1 } = rhs; - let t1 = Fp.mul(c0, r0); // c0 * o0 - let t2 = Fp.mul(c1, r1); // c1 * o1 - // (T1 - T2) + ((c0 + c1) * (r0 + r1) - (T1 + T2))*i - const o0 = Fp.sub(t1, t2); - const o1 = Fp.sub(Fp.mul(Fp.add(c0, c1), Fp.add(r0, r1)), Fp.add(t1, t2)); - return { c0: o0, c1: o1 }; -}; -const Fp2Square = ({ c0, c1 }: Fp2) => { - const a = Fp.add(c0, c1); - const b = Fp.sub(c0, c1); - const c = Fp.add(c0, c0); - return { c0: Fp.mul(a, b), c1: Fp.mul(c, c1) }; -}; -type Fp2Utils = { - fromBigTuple: (tuple: BigintTuple | bigint[]) => Fp2; - reim: (num: Fp2) => { re: bigint; im: bigint }; - mulByNonresidue: (num: Fp2) => Fp2; - multiplyByB: (num: Fp2) => Fp2; - frobeniusMap(num: Fp2, power: number): Fp2; -}; -// G2 is the order-q subgroup of E2(Fp²) : y² = x³+4(1+√−1), -// where Fp2 is Fp[√−1]/(x2+1). #E2(Fp2 ) = h2q, where -// G² - 1 -// h2q -// NOTE: ORDER was wrong! -const FP2_ORDER = Fp_raw * Fp_raw; - -const Fp2: mod.IField & Fp2Utils = { - ORDER: FP2_ORDER, - BITS: bitLen(FP2_ORDER), - BYTES: Math.ceil(bitLen(FP2_ORDER) / 8), - MASK: bitMask(bitLen(FP2_ORDER)), - ZERO: { c0: Fp.ZERO, c1: Fp.ZERO }, - ONE: { c0: Fp.ONE, c1: Fp.ZERO }, - create: (num) => num, - isValid: ({ c0, c1 }) => typeof c0 === 'bigint' && typeof c1 === 'bigint', - is0: ({ c0, c1 }) => Fp.is0(c0) && Fp.is0(c1), - eql: ({ c0, c1 }: Fp2, { c0: r0, c1: r1 }: Fp2) => Fp.eql(c0, r0) && Fp.eql(c1, r1), - neg: ({ c0, c1 }) => ({ c0: Fp.neg(c0), c1: Fp.neg(c1) }), - pow: (num, power) => mod.FpPow(Fp2, num, power), - invertBatch: (nums) => mod.FpInvertBatch(Fp2, nums), - // Normalized - add: Fp2Add, - sub: Fp2Subtract, - mul: Fp2Multiply, - sqr: Fp2Square, - // NonNormalized stuff - addN: Fp2Add, - subN: Fp2Subtract, - mulN: Fp2Multiply, - sqrN: Fp2Square, - // Why inversion for bigint inside Fp instead of Fp2? it is even used in that context? - div: (lhs, rhs) => Fp2.mul(lhs, typeof rhs === 'bigint' ? Fp.inv(Fp.create(rhs)) : Fp2.inv(rhs)), - inv: ({ c0: a, c1: b }) => { - // We wish to find the multiplicative inverse of a nonzero - // element a + bu in Fp2. We leverage an identity - // - // (a + bu)(a - bu) = a² + b² - // - // which holds because u² = -1. This can be rewritten as - // - // (a + bu)(a - bu)/(a² + b²) = 1 - // - // because a² + b² = 0 has no nonzero solutions for (a, b). - // This gives that (a - bu)/(a² + b²) is the inverse - // of (a + bu). Importantly, this can be computing using - // only a single inversion in Fp. - const factor = Fp.inv(Fp.create(a * a + b * b)); - return { c0: Fp.mul(factor, Fp.create(a)), c1: Fp.mul(factor, Fp.create(-b)) }; - }, - sqrt: (num) => { - if (Fp2.eql(num, Fp2.ZERO)) return Fp2.ZERO; // Algo doesn't handles this case - // TODO: Optimize this line. It's extremely slow. - // Speeding this up would boost aggregateSignatures. - // https://eprint.iacr.org/2012/685.pdf applicable? - // https://github.com/zkcrypto/bls12_381/blob/080eaa74ec0e394377caa1ba302c8c121df08b07/src/fp2.rs#L250 - // https://github.com/supranational/blst/blob/aae0c7d70b799ac269ff5edf29d8191dbd357876/src/exp2.c#L1 - // Inspired by https://github.com/dalek-cryptography/curve25519-dalek/blob/17698df9d4c834204f83a3574143abacb4fc81a5/src/field.rs#L99 - const candidateSqrt = Fp2.pow(num, (Fp2.ORDER + _8n) / _16n); - const check = Fp2.div(Fp2.sqr(candidateSqrt), num); // candidateSqrt.square().div(this); - const R = FP2_ROOTS_OF_UNITY; - const divisor = [R[0], R[2], R[4], R[6]].find((r) => Fp2.eql(r, check)); - if (!divisor) throw new Error('No root'); - const index = R.indexOf(divisor); - const root = R[index / 2]; - if (!root) throw new Error('Invalid root'); - const x1 = Fp2.div(candidateSqrt, root); - const x2 = Fp2.neg(x1); - const { re: re1, im: im1 } = Fp2.reim(x1); - const { re: re2, im: im2 } = Fp2.reim(x2); - if (im1 > im2 || (im1 === im2 && re1 > re2)) return x1; - return x2; - }, - // Same as sgn0_fp2 in draft-irtf-cfrg-hash-to-curve-16 - isOdd: (x: Fp2) => { - const { re: x0, im: x1 } = Fp2.reim(x); - const sign_0 = x0 % _2n; - const zero_0 = x0 === _0n; - const sign_1 = x1 % _2n; - return BigInt(sign_0 || (zero_0 && sign_1)) == _1n; - }, - // Bytes util - fromBytes(b: Uint8Array): Fp2 { - if (b.length !== Fp2.BYTES) throw new Error(`fromBytes wrong length=${b.length}`); - return { c0: Fp.fromBytes(b.subarray(0, Fp.BYTES)), c1: Fp.fromBytes(b.subarray(Fp.BYTES)) }; - }, - toBytes: ({ c0, c1 }) => concatB(Fp.toBytes(c0), Fp.toBytes(c1)), - cmov: ({ c0, c1 }, { c0: r0, c1: r1 }, c) => ({ - c0: Fp.cmov(c0, r0, c), - c1: Fp.cmov(c1, r1, c), - }), - // Specific utils - // toString() { - // return `Fp2(${this.c0} + ${this.c1}×i)`; - // } - reim: ({ c0, c1 }) => ({ re: c0, im: c1 }), - // multiply by u + 1 - mulByNonresidue: ({ c0, c1 }) => ({ c0: Fp.sub(c0, c1), c1: Fp.add(c0, c1) }), - multiplyByB: ({ c0, c1 }) => { - let t0 = Fp.mul(c0, _4n); // 4 * c0 - let t1 = Fp.mul(c1, _4n); // 4 * c1 - // (T0-T1) + (T0+T1)*i - return { c0: Fp.sub(t0, t1), c1: Fp.add(t0, t1) }; - }, - fromBigTuple: (tuple: BigintTuple | bigint[]) => { - if (tuple.length !== 2) throw new Error('Invalid tuple'); - const fps = tuple.map((n) => Fp.create(n)) as [Fp, Fp]; - return { c0: fps[0], c1: fps[1] }; - }, - frobeniusMap: ({ c0, c1 }, power: number): Fp2 => ({ - c0, - c1: Fp.mul(c1, FP2_FROBENIUS_COEFFICIENTS[power % 2]), - }), -}; -// Finite extension field over irreducible polynominal. -// Fp(u) / (u² - β) where β = -1 -const FP2_FROBENIUS_COEFFICIENTS = [ - BigInt('0x1'), - BigInt( - '0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffaaaa' - ), -].map((item) => Fp.create(item)); - -// For Fp2 roots of unity. -const rv1 = BigInt( - '0x6af0e0437ff400b6831e36d6bd17ffe48395dabc2d3435e77f76e17009241c5ee67992f72ec05f4c81084fbede3cc09' -); -// const ev1 = -// BigInt('0x699be3b8c6870965e5bf892ad5d2cc7b0e85a117402dfd83b7f4a947e02d978498255a2aaec0ac627b5afbdf1bf1c90'); -// const ev2 = -// BigInt('0x8157cd83046453f5dd0972b6e3949e4288020b5b8a9cc99ca07e27089a2ce2436d965026adad3ef7baba37f2183e9b5'); -// const ev3 = -// BigInt('0xab1c2ffdd6c253ca155231eb3e71ba044fd562f6f72bc5bad5ec46a0b7a3b0247cf08ce6c6317f40edbc653a72dee17'); -// const ev4 = -// BigInt('0xaa404866706722864480885d68ad0ccac1967c7544b447873cc37e0181271e006df72162a3d3e0287bf597fbf7f8fc1'); - -// Eighth roots of unity, used for computing square roots in Fp2. -// To verify or re-calculate: -// Array(8).fill(new Fp2([1n, 1n])).map((fp2, k) => fp2.pow(Fp2.ORDER * BigInt(k) / 8n)) -const FP2_ROOTS_OF_UNITY = [ - [_1n, _0n], - [rv1, -rv1], - [_0n, _1n], - [rv1, rv1], - [-_1n, _0n], - [-rv1, rv1], - [_0n, -_1n], - [-rv1, -rv1], -].map((pair) => Fp2.fromBigTuple(pair)); -// eta values, used for computing sqrt(g(X1(t))) -// const FP2_ETAs = [ -// [ev1, ev2], -// [-ev2, ev1], -// [ev3, ev4], -// [-ev4, ev3], -// ].map((pair) => Fp2.fromBigTuple(pair)); - -// Finite extension field over irreducible polynominal. -// Fp2(v) / (v³ - ξ) where ξ = u + 1 -type BigintSix = [bigint, bigint, bigint, bigint, bigint, bigint]; -type Fp6 = { c0: Fp2; c1: Fp2; c2: Fp2 }; -const Fp6Add = ({ c0, c1, c2 }: Fp6, { c0: r0, c1: r1, c2: r2 }: Fp6) => ({ - c0: Fp2.add(c0, r0), - c1: Fp2.add(c1, r1), - c2: Fp2.add(c2, r2), -}); -const Fp6Subtract = ({ c0, c1, c2 }: Fp6, { c0: r0, c1: r1, c2: r2 }: Fp6) => ({ - c0: Fp2.sub(c0, r0), - c1: Fp2.sub(c1, r1), - c2: Fp2.sub(c2, r2), -}); -const Fp6Multiply = ({ c0, c1, c2 }: Fp6, rhs: Fp6 | bigint) => { - if (typeof rhs === 'bigint') { - return { - c0: Fp2.mul(c0, rhs), - c1: Fp2.mul(c1, rhs), - c2: Fp2.mul(c2, rhs), - }; - } - const { c0: r0, c1: r1, c2: r2 } = rhs; - const t0 = Fp2.mul(c0, r0); // c0 * o0 - const t1 = Fp2.mul(c1, r1); // c1 * o1 - const t2 = Fp2.mul(c2, r2); // c2 * o2 - return { - // t0 + (c1 + c2) * (r1 * r2) - (T1 + T2) * (u + 1) - c0: Fp2.add( - t0, - Fp2.mulByNonresidue(Fp2.sub(Fp2.mul(Fp2.add(c1, c2), Fp2.add(r1, r2)), Fp2.add(t1, t2))) - ), - // (c0 + c1) * (r0 + r1) - (T0 + T1) + T2 * (u + 1) - c1: Fp2.add( - Fp2.sub(Fp2.mul(Fp2.add(c0, c1), Fp2.add(r0, r1)), Fp2.add(t0, t1)), - Fp2.mulByNonresidue(t2) - ), - // T1 + (c0 + c2) * (r0 + r2) - T0 + T2 - c2: Fp2.sub(Fp2.add(t1, Fp2.mul(Fp2.add(c0, c2), Fp2.add(r0, r2))), Fp2.add(t0, t2)), - }; -}; -const Fp6Square = ({ c0, c1, c2 }: Fp6) => { - let t0 = Fp2.sqr(c0); // c0² - let t1 = Fp2.mul(Fp2.mul(c0, c1), _2n); // 2 * c0 * c1 - let t3 = Fp2.mul(Fp2.mul(c1, c2), _2n); // 2 * c1 * c2 - let t4 = Fp2.sqr(c2); // c2² - return { - c0: Fp2.add(Fp2.mulByNonresidue(t3), t0), // T3 * (u + 1) + T0 - c1: Fp2.add(Fp2.mulByNonresidue(t4), t1), // T4 * (u + 1) + T1 - // T1 + (c0 - c1 + c2)² + T3 - T0 - T4 - c2: Fp2.sub(Fp2.sub(Fp2.add(Fp2.add(t1, Fp2.sqr(Fp2.add(Fp2.sub(c0, c1), c2))), t3), t0), t4), - }; -}; -type Fp6Utils = { - fromBigSix: (tuple: BigintSix) => Fp6; - mulByNonresidue: (num: Fp6) => Fp6; - frobeniusMap(num: Fp6, power: number): Fp6; - multiplyBy1(num: Fp6, b1: Fp2): Fp6; - multiplyBy01(num: Fp6, b0: Fp2, b1: Fp2): Fp6; - multiplyByFp2(lhs: Fp6, rhs: Fp2): Fp6; -}; - -const Fp6: mod.IField & Fp6Utils = { - ORDER: Fp2.ORDER, // TODO: unused, but need to verify - BITS: 3 * Fp2.BITS, - BYTES: 3 * Fp2.BYTES, - MASK: bitMask(3 * Fp2.BITS), - ZERO: { c0: Fp2.ZERO, c1: Fp2.ZERO, c2: Fp2.ZERO }, - ONE: { c0: Fp2.ONE, c1: Fp2.ZERO, c2: Fp2.ZERO }, - create: (num) => num, - isValid: ({ c0, c1, c2 }) => Fp2.isValid(c0) && Fp2.isValid(c1) && Fp2.isValid(c2), - is0: ({ c0, c1, c2 }) => Fp2.is0(c0) && Fp2.is0(c1) && Fp2.is0(c2), - neg: ({ c0, c1, c2 }) => ({ c0: Fp2.neg(c0), c1: Fp2.neg(c1), c2: Fp2.neg(c2) }), - eql: ({ c0, c1, c2 }, { c0: r0, c1: r1, c2: r2 }) => - Fp2.eql(c0, r0) && Fp2.eql(c1, r1) && Fp2.eql(c2, r2), - sqrt: () => { - throw new Error('Not implemented'); - }, - // Do we need division by bigint at all? Should be done via order: - div: (lhs, rhs) => Fp6.mul(lhs, typeof rhs === 'bigint' ? Fp.inv(Fp.create(rhs)) : Fp6.inv(rhs)), - pow: (num, power) => mod.FpPow(Fp6, num, power), - invertBatch: (nums) => mod.FpInvertBatch(Fp6, nums), - // Normalized - add: Fp6Add, - sub: Fp6Subtract, - mul: Fp6Multiply, - sqr: Fp6Square, - // NonNormalized stuff - addN: Fp6Add, - subN: Fp6Subtract, - mulN: Fp6Multiply, - sqrN: Fp6Square, - - inv: ({ c0, c1, c2 }) => { - let t0 = Fp2.sub(Fp2.sqr(c0), Fp2.mulByNonresidue(Fp2.mul(c2, c1))); // c0² - c2 * c1 * (u + 1) - let t1 = Fp2.sub(Fp2.mulByNonresidue(Fp2.sqr(c2)), Fp2.mul(c0, c1)); // c2² * (u + 1) - c0 * c1 - let t2 = Fp2.sub(Fp2.sqr(c1), Fp2.mul(c0, c2)); // c1² - c0 * c2 - // 1/(((c2 * T1 + c1 * T2) * v) + c0 * T0) - let t4 = Fp2.inv( - Fp2.add(Fp2.mulByNonresidue(Fp2.add(Fp2.mul(c2, t1), Fp2.mul(c1, t2))), Fp2.mul(c0, t0)) - ); - return { c0: Fp2.mul(t4, t0), c1: Fp2.mul(t4, t1), c2: Fp2.mul(t4, t2) }; - }, - // Bytes utils - fromBytes: (b: Uint8Array): Fp6 => { - if (b.length !== Fp6.BYTES) throw new Error(`fromBytes wrong length=${b.length}`); - return { - c0: Fp2.fromBytes(b.subarray(0, Fp2.BYTES)), - c1: Fp2.fromBytes(b.subarray(Fp2.BYTES, 2 * Fp2.BYTES)), - c2: Fp2.fromBytes(b.subarray(2 * Fp2.BYTES)), - }; - }, - toBytes: ({ c0, c1, c2 }): Uint8Array => - concatB(Fp2.toBytes(c0), Fp2.toBytes(c1), Fp2.toBytes(c2)), - cmov: ({ c0, c1, c2 }: Fp6, { c0: r0, c1: r1, c2: r2 }: Fp6, c) => ({ - c0: Fp2.cmov(c0, r0, c), - c1: Fp2.cmov(c1, r1, c), - c2: Fp2.cmov(c2, r2, c), - }), - // Utils - // fromTriple(triple: [Fp2, Fp2, Fp2]) { - // return new Fp6(...triple); - // } - // toString() { - // return `Fp6(${this.c0} + ${this.c1} * v, ${this.c2} * v^2)`; - // } - fromBigSix: (t: BigintSix): Fp6 => { - if (!Array.isArray(t) || t.length !== 6) throw new Error('Invalid Fp6 usage'); - return { - c0: Fp2.fromBigTuple(t.slice(0, 2)), - c1: Fp2.fromBigTuple(t.slice(2, 4)), - c2: Fp2.fromBigTuple(t.slice(4, 6)), - }; - }, - frobeniusMap: ({ c0, c1, c2 }, power: number) => ({ - c0: Fp2.frobeniusMap(c0, power), - c1: Fp2.mul(Fp2.frobeniusMap(c1, power), FP6_FROBENIUS_COEFFICIENTS_1[power % 6]), - c2: Fp2.mul(Fp2.frobeniusMap(c2, power), FP6_FROBENIUS_COEFFICIENTS_2[power % 6]), - }), - mulByNonresidue: ({ c0, c1, c2 }) => ({ c0: Fp2.mulByNonresidue(c2), c1: c0, c2: c1 }), - - // Sparse multiplication - multiplyBy1: ({ c0, c1, c2 }, b1: Fp2): Fp6 => ({ - c0: Fp2.mulByNonresidue(Fp2.mul(c2, b1)), - c1: Fp2.mul(c0, b1), - c2: Fp2.mul(c1, b1), - }), - // Sparse multiplication - multiplyBy01({ c0, c1, c2 }, b0: Fp2, b1: Fp2): Fp6 { - let t0 = Fp2.mul(c0, b0); // c0 * b0 - let t1 = Fp2.mul(c1, b1); // c1 * b1 - return { - // ((c1 + c2) * b1 - T1) * (u + 1) + T0 - c0: Fp2.add(Fp2.mulByNonresidue(Fp2.sub(Fp2.mul(Fp2.add(c1, c2), b1), t1)), t0), - // (b0 + b1) * (c0 + c1) - T0 - T1 - c1: Fp2.sub(Fp2.sub(Fp2.mul(Fp2.add(b0, b1), Fp2.add(c0, c1)), t0), t1), - // (c0 + c2) * b0 - T0 + T1 - c2: Fp2.add(Fp2.sub(Fp2.mul(Fp2.add(c0, c2), b0), t0), t1), - }; - }, - - multiplyByFp2: ({ c0, c1, c2 }, rhs: Fp2): Fp6 => ({ - c0: Fp2.mul(c0, rhs), - c1: Fp2.mul(c1, rhs), - c2: Fp2.mul(c2, rhs), - }), -}; - -const FP6_FROBENIUS_COEFFICIENTS_1 = [ - [BigInt('0x1'), BigInt('0x0')], - [ - BigInt('0x0'), - BigInt( - '0x1a0111ea397fe699ec02408663d4de85aa0d857d89759ad4897d29650fb85f9b409427eb4f49fffd8bfd00000000aaac' - ), - ], - [ - BigInt( - '0x00000000000000005f19672fdf76ce51ba69c6076a0f77eaddb3a93be6f89688de17d813620a00022e01fffffffefffe' - ), - BigInt('0x0'), - ], - [BigInt('0x0'), BigInt('0x1')], - [ - BigInt( - '0x1a0111ea397fe699ec02408663d4de85aa0d857d89759ad4897d29650fb85f9b409427eb4f49fffd8bfd00000000aaac' - ), - BigInt('0x0'), - ], - [ - BigInt('0x0'), - BigInt( - '0x00000000000000005f19672fdf76ce51ba69c6076a0f77eaddb3a93be6f89688de17d813620a00022e01fffffffefffe' - ), - ], -].map((pair) => Fp2.fromBigTuple(pair)); -const FP6_FROBENIUS_COEFFICIENTS_2 = [ - [BigInt('0x1'), BigInt('0x0')], - [ - BigInt( - '0x1a0111ea397fe699ec02408663d4de85aa0d857d89759ad4897d29650fb85f9b409427eb4f49fffd8bfd00000000aaad' - ), - BigInt('0x0'), - ], - [ - BigInt( - '0x1a0111ea397fe699ec02408663d4de85aa0d857d89759ad4897d29650fb85f9b409427eb4f49fffd8bfd00000000aaac' - ), - BigInt('0x0'), - ], - [ - BigInt( - '0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffaaaa' - ), - BigInt('0x0'), - ], - [ - BigInt( - '0x00000000000000005f19672fdf76ce51ba69c6076a0f77eaddb3a93be6f89688de17d813620a00022e01fffffffefffe' - ), - BigInt('0x0'), - ], - [ - BigInt( - '0x00000000000000005f19672fdf76ce51ba69c6076a0f77eaddb3a93be6f89688de17d813620a00022e01fffffffeffff' - ), - BigInt('0x0'), - ], -].map((pair) => Fp2.fromBigTuple(pair)); - -// Finite extension field over irreducible polynominal. -// Fp₁₂ = Fp₆² => Fp₂³ -// Fp₆(w) / (w² - γ) where γ = v -type Fp12 = { c0: Fp6; c1: Fp6 }; -// The BLS parameter x for BLS12-381 -const BLS_X = BigInt('0xd201000000010000'); -const BLS_X_LEN = bitLen(BLS_X); - -// prettier-ignore -type BigintTwelve = [ - bigint, bigint, bigint, bigint, bigint, bigint, - bigint, bigint, bigint, bigint, bigint, bigint - ]; -const Fp12Add = ({ c0, c1 }: Fp12, { c0: r0, c1: r1 }: Fp12) => ({ - c0: Fp6.add(c0, r0), - c1: Fp6.add(c1, r1), -}); -const Fp12Subtract = ({ c0, c1 }: Fp12, { c0: r0, c1: r1 }: Fp12) => ({ - c0: Fp6.sub(c0, r0), - c1: Fp6.sub(c1, r1), -}); -const Fp12Multiply = ({ c0, c1 }: Fp12, rhs: Fp12 | bigint) => { - if (typeof rhs === 'bigint') return { c0: Fp6.mul(c0, rhs), c1: Fp6.mul(c1, rhs) }; - let { c0: r0, c1: r1 } = rhs; - let t1 = Fp6.mul(c0, r0); // c0 * r0 - let t2 = Fp6.mul(c1, r1); // c1 * r1 - return { - c0: Fp6.add(t1, Fp6.mulByNonresidue(t2)), // T1 + T2 * v - // (c0 + c1) * (r0 + r1) - (T1 + T2) - c1: Fp6.sub(Fp6.mul(Fp6.add(c0, c1), Fp6.add(r0, r1)), Fp6.add(t1, t2)), - }; -}; -const Fp12Square = ({ c0, c1 }: Fp12) => { - let ab = Fp6.mul(c0, c1); // c0 * c1 - return { - // (c1 * v + c0) * (c0 + c1) - AB - AB * v - c0: Fp6.sub( - Fp6.sub(Fp6.mul(Fp6.add(Fp6.mulByNonresidue(c1), c0), Fp6.add(c0, c1)), ab), - Fp6.mulByNonresidue(ab) - ), - c1: Fp6.add(ab, ab), - }; // AB + AB -}; -function Fp4Square(a: Fp2, b: Fp2): { first: Fp2; second: Fp2 } { - const a2 = Fp2.sqr(a); - const b2 = Fp2.sqr(b); - return { - first: Fp2.add(Fp2.mulByNonresidue(b2), a2), // b² * Nonresidue + a² - second: Fp2.sub(Fp2.sub(Fp2.sqr(Fp2.add(a, b)), a2), b2), // (a + b)² - a² - b² - }; -} -type Fp12Utils = { - fromBigTwelve: (t: BigintTwelve) => Fp12; - frobeniusMap(num: Fp12, power: number): Fp12; - multiplyBy014(num: Fp12, o0: Fp2, o1: Fp2, o4: Fp2): Fp12; - multiplyByFp2(lhs: Fp12, rhs: Fp2): Fp12; - conjugate(num: Fp12): Fp12; - finalExponentiate(num: Fp12): Fp12; - _cyclotomicSquare(num: Fp12): Fp12; - _cyclotomicExp(num: Fp12, n: bigint): Fp12; -}; - -const Fp12: mod.IField & Fp12Utils = { - ORDER: Fp2.ORDER, // TODO: unused, but need to verify - BITS: 2 * Fp2.BITS, - BYTES: 2 * Fp2.BYTES, - MASK: bitMask(2 * Fp2.BITS), - ZERO: { c0: Fp6.ZERO, c1: Fp6.ZERO }, - ONE: { c0: Fp6.ONE, c1: Fp6.ZERO }, - create: (num) => num, - isValid: ({ c0, c1 }) => Fp6.isValid(c0) && Fp6.isValid(c1), - is0: ({ c0, c1 }) => Fp6.is0(c0) && Fp6.is0(c1), - neg: ({ c0, c1 }) => ({ c0: Fp6.neg(c0), c1: Fp6.neg(c1) }), - eql: ({ c0, c1 }, { c0: r0, c1: r1 }) => Fp6.eql(c0, r0) && Fp6.eql(c1, r1), - sqrt: () => { - throw new Error('Not implemented'); - }, - inv: ({ c0, c1 }) => { - let t = Fp6.inv(Fp6.sub(Fp6.sqr(c0), Fp6.mulByNonresidue(Fp6.sqr(c1)))); // 1 / (c0² - c1² * v) - return { c0: Fp6.mul(c0, t), c1: Fp6.neg(Fp6.mul(c1, t)) }; // ((C0 * T) * T) + (-C1 * T) * w - }, - div: (lhs, rhs) => - Fp12.mul(lhs, typeof rhs === 'bigint' ? Fp.inv(Fp.create(rhs)) : Fp12.inv(rhs)), - pow: (num, power) => mod.FpPow(Fp12, num, power), - invertBatch: (nums) => mod.FpInvertBatch(Fp12, nums), - // Normalized - add: Fp12Add, - sub: Fp12Subtract, - mul: Fp12Multiply, - sqr: Fp12Square, - // NonNormalized stuff - addN: Fp12Add, - subN: Fp12Subtract, - mulN: Fp12Multiply, - sqrN: Fp12Square, - - // Bytes utils - fromBytes: (b: Uint8Array): Fp12 => { - if (b.length !== Fp12.BYTES) throw new Error(`fromBytes wrong length=${b.length}`); - return { - c0: Fp6.fromBytes(b.subarray(0, Fp6.BYTES)), - c1: Fp6.fromBytes(b.subarray(Fp6.BYTES)), - }; - }, - toBytes: ({ c0, c1 }): Uint8Array => concatB(Fp6.toBytes(c0), Fp6.toBytes(c1)), - cmov: ({ c0, c1 }, { c0: r0, c1: r1 }, c) => ({ - c0: Fp6.cmov(c0, r0, c), - c1: Fp6.cmov(c1, r1, c), - }), - // Utils - // toString() { - // return `Fp12(${this.c0} + ${this.c1} * w)`; - // }, - // fromTuple(c: [Fp6, Fp6]) { - // return new Fp12(...c); - // } - fromBigTwelve: (t: BigintTwelve): Fp12 => ({ - c0: Fp6.fromBigSix(t.slice(0, 6) as BigintSix), - c1: Fp6.fromBigSix(t.slice(6, 12) as BigintSix), - }), - // Raises to q**i -th power - frobeniusMap(lhs, power: number) { - const r0 = Fp6.frobeniusMap(lhs.c0, power); - const { c0, c1, c2 } = Fp6.frobeniusMap(lhs.c1, power); - const coeff = FP12_FROBENIUS_COEFFICIENTS[power % 12]; - return { - c0: r0, - c1: Fp6.create({ - c0: Fp2.mul(c0, coeff), - c1: Fp2.mul(c1, coeff), - c2: Fp2.mul(c2, coeff), - }), - }; - }, - // Sparse multiplication - multiplyBy014: ({ c0, c1 }, o0: Fp2, o1: Fp2, o4: Fp2) => { - let t0 = Fp6.multiplyBy01(c0, o0, o1); - let t1 = Fp6.multiplyBy1(c1, o4); - return { - c0: Fp6.add(Fp6.mulByNonresidue(t1), t0), // T1 * v + T0 - // (c1 + c0) * [o0, o1+o4] - T0 - T1 - c1: Fp6.sub(Fp6.sub(Fp6.multiplyBy01(Fp6.add(c1, c0), o0, Fp2.add(o1, o4)), t0), t1), - }; - }, - multiplyByFp2: ({ c0, c1 }, rhs: Fp2): Fp12 => ({ - c0: Fp6.multiplyByFp2(c0, rhs), - c1: Fp6.multiplyByFp2(c1, rhs), - }), - conjugate: ({ c0, c1 }): Fp12 => ({ c0, c1: Fp6.neg(c1) }), - - // A cyclotomic group is a subgroup of Fp^n defined by - // GΦₙ(p) = {α ∈ Fpⁿ : α^Φₙ(p) = 1} - // The result of any pairing is in a cyclotomic subgroup - // https://eprint.iacr.org/2009/565.pdf - _cyclotomicSquare: ({ c0, c1 }): Fp12 => { - const { c0: c0c0, c1: c0c1, c2: c0c2 } = c0; - const { c0: c1c0, c1: c1c1, c2: c1c2 } = c1; - const { first: t3, second: t4 } = Fp4Square(c0c0, c1c1); - const { first: t5, second: t6 } = Fp4Square(c1c0, c0c2); - const { first: t7, second: t8 } = Fp4Square(c0c1, c1c2); - let t9 = Fp2.mulByNonresidue(t8); // T8 * (u + 1) - return { - c0: Fp6.create({ - c0: Fp2.add(Fp2.mul(Fp2.sub(t3, c0c0), _2n), t3), // 2 * (T3 - c0c0) + T3 - c1: Fp2.add(Fp2.mul(Fp2.sub(t5, c0c1), _2n), t5), // 2 * (T5 - c0c1) + T5 - c2: Fp2.add(Fp2.mul(Fp2.sub(t7, c0c2), _2n), t7), - }), // 2 * (T7 - c0c2) + T7 - c1: Fp6.create({ - c0: Fp2.add(Fp2.mul(Fp2.add(t9, c1c0), _2n), t9), // 2 * (T9 + c1c0) + T9 - c1: Fp2.add(Fp2.mul(Fp2.add(t4, c1c1), _2n), t4), // 2 * (T4 + c1c1) + T4 - c2: Fp2.add(Fp2.mul(Fp2.add(t6, c1c2), _2n), t6), - }), - }; // 2 * (T6 + c1c2) + T6 - }, - _cyclotomicExp(num, n) { - let z = Fp12.ONE; - for (let i = BLS_X_LEN - 1; i >= 0; i--) { - z = Fp12._cyclotomicSquare(z); - if (bitGet(n, i)) z = Fp12.mul(z, num); - } - return z; - }, - // https://eprint.iacr.org/2010/354.pdf - // https://eprint.iacr.org/2009/565.pdf - finalExponentiate: (num) => { - const x = BLS_X; - // this^(q⁶) / this - const t0 = Fp12.div(Fp12.frobeniusMap(num, 6), num); - // t0^(q²) * t0 - const t1 = Fp12.mul(Fp12.frobeniusMap(t0, 2), t0); - const t2 = Fp12.conjugate(Fp12._cyclotomicExp(t1, x)); - const t3 = Fp12.mul(Fp12.conjugate(Fp12._cyclotomicSquare(t1)), t2); - const t4 = Fp12.conjugate(Fp12._cyclotomicExp(t3, x)); - const t5 = Fp12.conjugate(Fp12._cyclotomicExp(t4, x)); - const t6 = Fp12.mul(Fp12.conjugate(Fp12._cyclotomicExp(t5, x)), Fp12._cyclotomicSquare(t2)); - const t7 = Fp12.conjugate(Fp12._cyclotomicExp(t6, x)); - const t2_t5_pow_q2 = Fp12.frobeniusMap(Fp12.mul(t2, t5), 2); - const t4_t1_pow_q3 = Fp12.frobeniusMap(Fp12.mul(t4, t1), 3); - const t6_t1c_pow_q1 = Fp12.frobeniusMap(Fp12.mul(t6, Fp12.conjugate(t1)), 1); - const t7_t3c_t1 = Fp12.mul(Fp12.mul(t7, Fp12.conjugate(t3)), t1); - // (t2 * t5)^(q²) * (t4 * t1)^(q³) * (t6 * t1.conj)^(q^1) * t7 * t3.conj * t1 - return Fp12.mul(Fp12.mul(Fp12.mul(t2_t5_pow_q2, t4_t1_pow_q3), t6_t1c_pow_q1), t7_t3c_t1); - }, -}; -const FP12_FROBENIUS_COEFFICIENTS = [ - [BigInt('0x1'), BigInt('0x0')], - [ - BigInt( - '0x1904d3bf02bb0667c231beb4202c0d1f0fd603fd3cbd5f4f7b2443d784bab9c4f67ea53d63e7813d8d0775ed92235fb8' - ), - BigInt( - '0x00fc3e2b36c4e03288e9e902231f9fb854a14787b6c7b36fec0c8ec971f63c5f282d5ac14d6c7ec22cf78a126ddc4af3' - ), - ], - [ - BigInt( - '0x00000000000000005f19672fdf76ce51ba69c6076a0f77eaddb3a93be6f89688de17d813620a00022e01fffffffeffff' - ), - BigInt('0x0'), - ], - [ - BigInt( - '0x135203e60180a68ee2e9c448d77a2cd91c3dedd930b1cf60ef396489f61eb45e304466cf3e67fa0af1ee7b04121bdea2' - ), - BigInt( - '0x06af0e0437ff400b6831e36d6bd17ffe48395dabc2d3435e77f76e17009241c5ee67992f72ec05f4c81084fbede3cc09' - ), - ], - [ - BigInt( - '0x00000000000000005f19672fdf76ce51ba69c6076a0f77eaddb3a93be6f89688de17d813620a00022e01fffffffefffe' - ), - BigInt('0x0'), - ], - [ - BigInt( - '0x144e4211384586c16bd3ad4afa99cc9170df3560e77982d0db45f3536814f0bd5871c1908bd478cd1ee605167ff82995' - ), - BigInt( - '0x05b2cfd9013a5fd8df47fa6b48b1e045f39816240c0b8fee8beadf4d8e9c0566c63a3e6e257f87329b18fae980078116' - ), - ], - [ - BigInt( - '0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffaaaa' - ), - BigInt('0x0'), - ], - [ - BigInt( - '0x00fc3e2b36c4e03288e9e902231f9fb854a14787b6c7b36fec0c8ec971f63c5f282d5ac14d6c7ec22cf78a126ddc4af3' - ), - BigInt( - '0x1904d3bf02bb0667c231beb4202c0d1f0fd603fd3cbd5f4f7b2443d784bab9c4f67ea53d63e7813d8d0775ed92235fb8' - ), - ], - [ - BigInt( - '0x1a0111ea397fe699ec02408663d4de85aa0d857d89759ad4897d29650fb85f9b409427eb4f49fffd8bfd00000000aaac' - ), - BigInt('0x0'), - ], - [ - BigInt( - '0x06af0e0437ff400b6831e36d6bd17ffe48395dabc2d3435e77f76e17009241c5ee67992f72ec05f4c81084fbede3cc09' - ), - BigInt( - '0x135203e60180a68ee2e9c448d77a2cd91c3dedd930b1cf60ef396489f61eb45e304466cf3e67fa0af1ee7b04121bdea2' - ), - ], - [ - BigInt( - '0x1a0111ea397fe699ec02408663d4de85aa0d857d89759ad4897d29650fb85f9b409427eb4f49fffd8bfd00000000aaad' - ), - BigInt('0x0'), - ], - [ - BigInt( - '0x05b2cfd9013a5fd8df47fa6b48b1e045f39816240c0b8fee8beadf4d8e9c0566c63a3e6e257f87329b18fae980078116' - ), - BigInt( - '0x144e4211384586c16bd3ad4afa99cc9170df3560e77982d0db45f3536814f0bd5871c1908bd478cd1ee605167ff82995' - ), - ], -].map((n) => Fp2.fromBigTuple(n)); -// END OF CURVE FIELDS - -// HashToCurve - -// 3-isogeny map from E' to E -// https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-hash-to-curve-11#appendix-E.3 -const isogenyMapG2 = isogenyMap( - Fp2, - [ - // xNum - [ - [ - '0x5c759507e8e333ebb5b7a9a47d7ed8532c52d39fd3a042a88b58423c50ae15d5c2638e343d9c71c6238aaaaaaaa97d6', - '0x5c759507e8e333ebb5b7a9a47d7ed8532c52d39fd3a042a88b58423c50ae15d5c2638e343d9c71c6238aaaaaaaa97d6', - ], - [ - '0x0', - '0x11560bf17baa99bc32126fced787c88f984f87adf7ae0c7f9a208c6b4f20a4181472aaa9cb8d555526a9ffffffffc71a', - ], - [ - '0x11560bf17baa99bc32126fced787c88f984f87adf7ae0c7f9a208c6b4f20a4181472aaa9cb8d555526a9ffffffffc71e', - '0x8ab05f8bdd54cde190937e76bc3e447cc27c3d6fbd7063fcd104635a790520c0a395554e5c6aaaa9354ffffffffe38d', - ], - [ - '0x171d6541fa38ccfaed6dea691f5fb614cb14b4e7f4e810aa22d6108f142b85757098e38d0f671c7188e2aaaaaaaa5ed1', - '0x0', - ], - ], - // xDen - [ - [ - '0x0', - '0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffaa63', - ], - [ - '0xc', - '0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffaa9f', - ], - ['0x1', '0x0'], // LAST 1 - ], - // yNum - [ - [ - '0x1530477c7ab4113b59a4c18b076d11930f7da5d4a07f649bf54439d87d27e500fc8c25ebf8c92f6812cfc71c71c6d706', - '0x1530477c7ab4113b59a4c18b076d11930f7da5d4a07f649bf54439d87d27e500fc8c25ebf8c92f6812cfc71c71c6d706', - ], - [ - '0x0', - '0x5c759507e8e333ebb5b7a9a47d7ed8532c52d39fd3a042a88b58423c50ae15d5c2638e343d9c71c6238aaaaaaaa97be', - ], - [ - '0x11560bf17baa99bc32126fced787c88f984f87adf7ae0c7f9a208c6b4f20a4181472aaa9cb8d555526a9ffffffffc71c', - '0x8ab05f8bdd54cde190937e76bc3e447cc27c3d6fbd7063fcd104635a790520c0a395554e5c6aaaa9354ffffffffe38f', - ], - [ - '0x124c9ad43b6cf79bfbf7043de3811ad0761b0f37a1e26286b0e977c69aa274524e79097a56dc4bd9e1b371c71c718b10', - '0x0', - ], - ], - // yDen - [ - [ - '0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffa8fb', - '0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffa8fb', - ], - [ - '0x0', - '0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffa9d3', - ], - [ - '0x12', - '0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffaa99', - ], - ['0x1', '0x0'], // LAST 1 - ], - ].map((i) => i.map((pair) => Fp2.fromBigTuple(pair.map(BigInt)))) as [Fp2[], Fp2[], Fp2[], Fp2[]] -); -// 11-isogeny map from E' to E -const isogenyMapG1 = isogenyMap( - Fp, - [ - // xNum - [ - '0x11a05f2b1e833340b809101dd99815856b303e88a2d7005ff2627b56cdb4e2c85610c2d5f2e62d6eaeac1662734649b7', - '0x17294ed3e943ab2f0588bab22147a81c7c17e75b2f6a8417f565e33c70d1e86b4838f2a6f318c356e834eef1b3cb83bb', - '0xd54005db97678ec1d1048c5d10a9a1bce032473295983e56878e501ec68e25c958c3e3d2a09729fe0179f9dac9edcb0', - '0x1778e7166fcc6db74e0609d307e55412d7f5e4656a8dbf25f1b33289f1b330835336e25ce3107193c5b388641d9b6861', - '0xe99726a3199f4436642b4b3e4118e5499db995a1257fb3f086eeb65982fac18985a286f301e77c451154ce9ac8895d9', - '0x1630c3250d7313ff01d1201bf7a74ab5db3cb17dd952799b9ed3ab9097e68f90a0870d2dcae73d19cd13c1c66f652983', - '0xd6ed6553fe44d296a3726c38ae652bfb11586264f0f8ce19008e218f9c86b2a8da25128c1052ecaddd7f225a139ed84', - '0x17b81e7701abdbe2e8743884d1117e53356de5ab275b4db1a682c62ef0f2753339b7c8f8c8f475af9ccb5618e3f0c88e', - '0x80d3cf1f9a78fc47b90b33563be990dc43b756ce79f5574a2c596c928c5d1de4fa295f296b74e956d71986a8497e317', - '0x169b1f8e1bcfa7c42e0c37515d138f22dd2ecb803a0c5c99676314baf4bb1b7fa3190b2edc0327797f241067be390c9e', - '0x10321da079ce07e272d8ec09d2565b0dfa7dccdde6787f96d50af36003b14866f69b771f8c285decca67df3f1605fb7b', - '0x6e08c248e260e70bd1e962381edee3d31d79d7e22c837bc23c0bf1bc24c6b68c24b1b80b64d391fa9c8ba2e8ba2d229', - ], - // xDen - [ - '0x8ca8d548cff19ae18b2e62f4bd3fa6f01d5ef4ba35b48ba9c9588617fc8ac62b558d681be343df8993cf9fa40d21b1c', - '0x12561a5deb559c4348b4711298e536367041e8ca0cf0800c0126c2588c48bf5713daa8846cb026e9e5c8276ec82b3bff', - '0xb2962fe57a3225e8137e629bff2991f6f89416f5a718cd1fca64e00b11aceacd6a3d0967c94fedcfcc239ba5cb83e19', - '0x3425581a58ae2fec83aafef7c40eb545b08243f16b1655154cca8abc28d6fd04976d5243eecf5c4130de8938dc62cd8', - '0x13a8e162022914a80a6f1d5f43e7a07dffdfc759a12062bb8d6b44e833b306da9bd29ba81f35781d539d395b3532a21e', - '0xe7355f8e4e667b955390f7f0506c6e9395735e9ce9cad4d0a43bcef24b8982f7400d24bc4228f11c02df9a29f6304a5', - '0x772caacf16936190f3e0c63e0596721570f5799af53a1894e2e073062aede9cea73b3538f0de06cec2574496ee84a3a', - '0x14a7ac2a9d64a8b230b3f5b074cf01996e7f63c21bca68a81996e1cdf9822c580fa5b9489d11e2d311f7d99bbdcc5a5e', - '0xa10ecf6ada54f825e920b3dafc7a3cce07f8d1d7161366b74100da67f39883503826692abba43704776ec3a79a1d641', - '0x95fc13ab9e92ad4476d6e3eb3a56680f682b4ee96f7d03776df533978f31c1593174e4b4b7865002d6384d168ecdd0a', - '0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001', // LAST 1 - ], - // yNum - [ - '0x90d97c81ba24ee0259d1f094980dcfa11ad138e48a869522b52af6c956543d3cd0c7aee9b3ba3c2be9845719707bb33', - '0x134996a104ee5811d51036d776fb46831223e96c254f383d0f906343eb67ad34d6c56711962fa8bfe097e75a2e41c696', - '0xcc786baa966e66f4a384c86a3b49942552e2d658a31ce2c344be4b91400da7d26d521628b00523b8dfe240c72de1f6', - '0x1f86376e8981c217898751ad8746757d42aa7b90eeb791c09e4a3ec03251cf9de405aba9ec61deca6355c77b0e5f4cb', - '0x8cc03fdefe0ff135caf4fe2a21529c4195536fbe3ce50b879833fd221351adc2ee7f8dc099040a841b6daecf2e8fedb', - '0x16603fca40634b6a2211e11db8f0a6a074a7d0d4afadb7bd76505c3d3ad5544e203f6326c95a807299b23ab13633a5f0', - '0x4ab0b9bcfac1bbcb2c977d027796b3ce75bb8ca2be184cb5231413c4d634f3747a87ac2460f415ec961f8855fe9d6f2', - '0x987c8d5333ab86fde9926bd2ca6c674170a05bfe3bdd81ffd038da6c26c842642f64550fedfe935a15e4ca31870fb29', - '0x9fc4018bd96684be88c9e221e4da1bb8f3abd16679dc26c1e8b6e6a1f20cabe69d65201c78607a360370e577bdba587', - '0xe1bba7a1186bdb5223abde7ada14a23c42a0ca7915af6fe06985e7ed1e4d43b9b3f7055dd4eba6f2bafaaebca731c30', - '0x19713e47937cd1be0dfd0b8f1d43fb93cd2fcbcb6caf493fd1183e416389e61031bf3a5cce3fbafce813711ad011c132', - '0x18b46a908f36f6deb918c143fed2edcc523559b8aaf0c2462e6bfe7f911f643249d9cdf41b44d606ce07c8a4d0074d8e', - '0xb182cac101b9399d155096004f53f447aa7b12a3426b08ec02710e807b4633f06c851c1919211f20d4c04f00b971ef8', - '0x245a394ad1eca9b72fc00ae7be315dc757b3b080d4c158013e6632d3c40659cc6cf90ad1c232a6442d9d3f5db980133', - '0x5c129645e44cf1102a159f748c4a3fc5e673d81d7e86568d9ab0f5d396a7ce46ba1049b6579afb7866b1e715475224b', - '0x15e6be4e990f03ce4ea50b3b42df2eb5cb181d8f84965a3957add4fa95af01b2b665027efec01c7704b456be69c8b604', - ], - // yDen - [ - '0x16112c4c3a9c98b252181140fad0eae9601a6de578980be6eec3232b5be72e7a07f3688ef60c206d01479253b03663c1', - '0x1962d75c2381201e1a0cbd6c43c348b885c84ff731c4d59ca4a10356f453e01f78a4260763529e3532f6102c2e49a03d', - '0x58df3306640da276faaae7d6e8eb15778c4855551ae7f310c35a5dd279cd2eca6757cd636f96f891e2538b53dbf67f2', - '0x16b7d288798e5395f20d23bf89edb4d1d115c5dbddbcd30e123da489e726af41727364f2c28297ada8d26d98445f5416', - '0xbe0e079545f43e4b00cc912f8228ddcc6d19c9f0f69bbb0542eda0fc9dec916a20b15dc0fd2ededda39142311a5001d', - '0x8d9e5297186db2d9fb266eaac783182b70152c65550d881c5ecd87b6f0f5a6449f38db9dfa9cce202c6477faaf9b7ac', - '0x166007c08a99db2fc3ba8734ace9824b5eecfdfa8d0cf8ef5dd365bc400a0051d5fa9c01a58b1fb93d1a1399126a775c', - '0x16a3ef08be3ea7ea03bcddfabba6ff6ee5a4375efa1f4fd7feb34fd206357132b920f5b00801dee460ee415a15812ed9', - '0x1866c8ed336c61231a1be54fd1d74cc4f9fb0ce4c6af5920abc5750c4bf39b4852cfe2f7bb9248836b233d9d55535d4a', - '0x167a55cda70a6e1cea820597d94a84903216f763e13d87bb5308592e7ea7d4fbc7385ea3d529b35e346ef48bb8913f55', - '0x4d2f259eea405bd48f010a01ad2911d9c6dd039bb61a6290e591b36e636a5c871a5c29f4f83060400f8b49cba8f6aa8', - '0xaccbb67481d033ff5852c1e48c50c477f94ff8aefce42d28c0f9a88cea7913516f968986f7ebbea9684b529e2561092', - '0xad6b9514c767fe3c3613144b45f1496543346d98adf02267d5ceef9a00d9b8693000763e3b90ac11e99b138573345cc', - '0x2660400eb2e4f3b628bdd0d53cd76f2bf565b94e72927c1cb748df27942480e420517bd8714cc80d1fadc1326ed06f7', - '0xe0fa1d816ddc03e6b24255e0d7819c171c40f65e273b853324efcd6356caa205ca2f570f13497804415473a1d634b8f', - '0x000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000001', // LAST 1 - ], - ].map((i) => i.map((j) => BigInt(j))) as [Fp[], Fp[], Fp[], Fp[]] -); - -// SWU Map - Fp2 to G2': y² = x³ + 240i * x + 1012 + 1012i -const G2_SWU = mapToCurveSimpleSWU(Fp2, { - A: Fp2.create({ c0: Fp.create(_0n), c1: Fp.create(BigInt(240)) }), // A' = 240 * I - B: Fp2.create({ c0: Fp.create(BigInt(1012)), c1: Fp.create(BigInt(1012)) }), // B' = 1012 * (1 + I) - Z: Fp2.create({ c0: Fp.create(BigInt(-2)), c1: Fp.create(BigInt(-1)) }), // Z: -(2 + I) -}); -// Optimized SWU Map - Fp to G1 -const G1_SWU = mapToCurveSimpleSWU(Fp, { - A: Fp.create( - BigInt( - '0x144698a3b8e9433d693a02c96d4982b0ea985383ee66a8d8e8981aefd881ac98936f8da0e0f97f5cf428082d584c1d' - ) - ), - B: Fp.create( - BigInt( - '0x12e2908d11688030018b12e8753eee3b2016c1f0f24f4070a0b9c14fcef35ef55a23215a316ceaa5d1cc48e98e172be0' - ) - ), - Z: Fp.create(BigInt(11)), -}); - -// Endomorphisms (for fast cofactor clearing) -// Ψ(P) endomorphism -const ut_root = Fp6.create({ c0: Fp2.ZERO, c1: Fp2.ONE, c2: Fp2.ZERO }); -const wsq = Fp12.create({ c0: ut_root, c1: Fp6.ZERO }); -const wcu = Fp12.create({ c0: Fp6.ZERO, c1: ut_root }); -const [wsq_inv, wcu_inv] = Fp12.invertBatch([wsq, wcu]); -function psi(x: Fp2, y: Fp2): [Fp2, Fp2] { - // Untwist Fp2->Fp12 && frobenius(1) && twist back - const x2 = Fp12.mul(Fp12.frobeniusMap(Fp12.multiplyByFp2(wsq_inv, x), 1), wsq).c0.c0; - const y2 = Fp12.mul(Fp12.frobeniusMap(Fp12.multiplyByFp2(wcu_inv, y), 1), wcu).c0.c0; - return [x2, y2]; -} -// Ψ endomorphism -function G2psi(c: ProjConstructor, P: ProjPointType) { - const affine = P.toAffine(); - const p = psi(affine.x, affine.y); - return new c(p[0], p[1], Fp2.ONE); -} -// Ψ²(P) endomorphism -// 1 / F2(2)^((p-1)/3) in GF(p²) -const PSI2_C1 = BigInt( - '0x1a0111ea397fe699ec02408663d4de85aa0d857d89759ad4897d29650fb85f9b409427eb4f49fffd8bfd00000000aaac' -); - -function psi2(x: Fp2, y: Fp2): [Fp2, Fp2] { - return [Fp2.mul(x, PSI2_C1), Fp2.neg(y)]; -} -function G2psi2(c: ProjConstructor, P: ProjPointType) { - const affine = P.toAffine(); - const p = psi2(affine.x, affine.y); - return new c(p[0], p[1], Fp2.ONE); -} - -// Default hash_to_field options are for hash to G2. -// -// Parameter definitions are in section 5.3 of the spec unless otherwise noted. -// Parameter values come from section 8.8.2 of the spec. -// https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-hash-to-curve-11#section-8.8.2 -// -// Base field F is GF(p^m) -// p = 0x1a0111ea397fe69a4b1ba7b6434bacd764774b84f38512bf6730d2a0f6b0f6241eabfffeb153ffffb9feffffffffaaab -// m = 2 (or 1 for G1 see section 8.8.1) -// k = 128 -const htfDefaults = Object.freeze({ - // DST: a domain separation tag - // defined in section 2.2.5 - // Use utils.getDSTLabel(), utils.setDSTLabel(value) - DST: 'BLS_SIG_BLS12381G2_XMD:SHA-256_SSWU_RO_NUL_', - encodeDST: 'BLS_SIG_BLS12381G2_XMD:SHA-256_SSWU_RO_NUL_', - // p: the characteristic of F - // where F is a finite field of characteristic p and order q = p^m - p: Fp.ORDER, - // m: the extension degree of F, m >= 1 - // where F is a finite field of characteristic p and order q = p^m - m: 2, - // k: the target security level for the suite in bits - // defined in section 5.1 - k: 128, - // option to use a message that has already been processed by - // expand_message_xmd - expand: 'xmd', - // Hash functions for: expand_message_xmd is appropriate for use with a - // wide range of hash functions, including SHA-2, SHA-3, BLAKE2, and others. - // BBS+ uses blake2: https://github.com/hyperledger/aries-framework-go/issues/2247 - hash: sha256, -} as const); - -// Encoding utils -// Point on G1 curve: (x, y) -const C_BIT_POS = Fp.BITS; // C_bit, compression bit for serialization flag -const I_BIT_POS = Fp.BITS + 1; // I_bit, point-at-infinity bit for serialization flag -const S_BIT_POS = Fp.BITS + 2; // S_bit, sign bit for serialization flag -// Compressed point of infinity -const COMPRESSED_ZERO = Fp.toBytes(bitSet(bitSet(_0n, I_BIT_POS, true), S_BIT_POS, true)); // set compressed & point-at-infinity bits - -function signatureG2ToRawBytes(point: ProjPointType) { - // NOTE: by some reasons it was missed in bls12-381, looks like bug - point.assertValidity(); - const len = Fp.BYTES; - if (point.equals(bls12_381.G2.ProjectivePoint.ZERO)) - return concatB(COMPRESSED_ZERO, numberToBytesBE(_0n, len)); - const { x, y } = point.toAffine(); - const { re: x0, im: x1 } = Fp2.reim(x); - const { re: y0, im: y1 } = Fp2.reim(y); - const tmp = y1 > _0n ? y1 * _2n : y0 * _2n; - const aflag1 = Boolean((tmp / Fp.ORDER) & _1n); - const z1 = bitSet(bitSet(x1, 381, aflag1), S_BIT_POS, true); - const z2 = x0; - return concatB(numberToBytesBE(z1, len), numberToBytesBE(z2, len)); -} - -// To verify curve parameters, see pairing-friendly-curves spec: -// https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-pairing-friendly-curves-09 -// Basic math is done over finite fields over p. -// More complicated math is done over polynominal extension fields. -// To simplify calculations in Fp12, we construct extension tower: -// Fp₁₂ = Fp₆² => Fp₂³ -// Fp(u) / (u² - β) where β = -1 -// Fp₂(v) / (v³ - ξ) where ξ = u + 1 -// Fp₆(w) / (w² - γ) where γ = v -// Here goes constants && point encoding format -export const bls12_381: CurveFn = bls({ - // Fields - fields: { - Fp, - Fp2, - Fp6, - Fp12, - Fr, - }, - // G1 is the order-q subgroup of E1(Fp) : y² = x³ + 4, #E1(Fp) = h1q, where - // characteristic; z + (z⁴ - z² + 1)(z - 1)²/3 - G1: { - Fp, - // cofactor; (z - 1)²/3 - h: BigInt('0x396c8c005555e1568c00aaab0000aaab'), - // generator's coordinates - // x = 3685416753713387016781088315183077757961620795782546409894578378688607592378376318836054947676345821548104185464507 - // y = 1339506544944476473020471379941921221584933875938349620426543736416511423956333506472724655353366534992391756441569 - Gx: BigInt( - '0x17f1d3a73197d7942695638c4fa9ac0fc3688c4f9774b905a14e3a3f171bac586c55e83ff97a1aeffb3af00adb22c6bb' - ), - Gy: BigInt( - '0x08b3f481e3aaa0f1a09e30ed741d8ae4fcf5e095d5d00af600db18cb2c04b3edd03cc744a2888ae40caa232946c5e7e1' - ), - a: Fp.ZERO, - b: _4n, - htfDefaults: { ...htfDefaults, m: 1 }, - wrapPrivateKey: true, - allowInfinityPoint: true, - // Checks is the point resides in prime-order subgroup. - // point.isTorsionFree() should return true for valid points - // It returns false for shitty points. - // https://eprint.iacr.org/2021/1130.pdf - isTorsionFree: (c, point): boolean => { - // φ endomorphism - const cubicRootOfUnityModP = BigInt( - '0x5f19672fdf76ce51ba69c6076a0f77eaddb3a93be6f89688de17d813620a00022e01fffffffefffe' - ); - const phi = new c(Fp.mul(point.px, cubicRootOfUnityModP), point.py, point.pz); - - // todo: unroll - const xP = point.multiplyUnsafe(bls12_381.params.x).negate(); // [x]P - const u2P = xP.multiplyUnsafe(bls12_381.params.x); // [u2]P - return u2P.equals(phi); - - // https://eprint.iacr.org/2019/814.pdf - // (z² − 1)/3 - // const c1 = BigInt('0x396c8c005555e1560000000055555555'); - // const P = this; - // const S = P.sigma(); - // const Q = S.double(); - // const S2 = S.sigma(); - // // [(z² − 1)/3](2σ(P) − P − σ²(P)) − σ²(P) = O - // const left = Q.subtract(P).subtract(S2).multiplyUnsafe(c1); - // const C = left.subtract(S2); - // return C.isZero(); - }, - // Clear cofactor of G1 - // https://eprint.iacr.org/2019/403 - clearCofactor: (c, point) => { - // return this.multiplyUnsafe(CURVE.h); - return point.multiplyUnsafe(bls12_381.params.x).add(point); // x*P + P - }, - mapToCurve: (scalars: bigint[]) => { - const { x, y } = G1_SWU(Fp.create(scalars[0])); - return isogenyMapG1(x, y); - }, - fromBytes: (bytes: Uint8Array): AffinePoint => { - bytes = bytes.slice(); - if (bytes.length === 48) { - // TODO: Fp.bytes - const P = Fp.ORDER; - const compressedValue = bytesToNumberBE(bytes); - const bflag = bitGet(compressedValue, I_BIT_POS); - // Zero - if (bflag === _1n) return { x: _0n, y: _0n }; - const x = Fp.create(compressedValue & Fp.MASK); - const right = Fp.add(Fp.pow(x, _3n), Fp.create(bls12_381.params.G1b)); // y² = x³ + b - let y = Fp.sqrt(right); - if (!y) throw new Error('Invalid compressed G1 point'); - const aflag = bitGet(compressedValue, C_BIT_POS); - if ((y * _2n) / P !== aflag) y = Fp.neg(y); - return { x: Fp.create(x), y: Fp.create(y) }; - } else if (bytes.length === 96) { - // Check if the infinity flag is set - if ((bytes[0] & (1 << 6)) !== 0) return bls12_381.G1.ProjectivePoint.ZERO.toAffine(); - const x = bytesToNumberBE(bytes.subarray(0, Fp.BYTES)); - const y = bytesToNumberBE(bytes.subarray(Fp.BYTES)); - return { x: Fp.create(x), y: Fp.create(y) }; - } else { - throw new Error('Invalid point G1, expected 48/96 bytes'); - } - }, - toBytes: (c, point, isCompressed) => { - const isZero = point.equals(c.ZERO); - const { x, y } = point.toAffine(); - if (isCompressed) { - if (isZero) return COMPRESSED_ZERO.slice(); - const P = Fp.ORDER; - let num; - num = bitSet(x, C_BIT_POS, Boolean((y * _2n) / P)); // set aflag - num = bitSet(num, S_BIT_POS, true); - return numberToBytesBE(num, Fp.BYTES); - } else { - if (isZero) { - // 2x PUBLIC_KEY_LENGTH - const x = concatB(new Uint8Array([0x40]), new Uint8Array(2 * Fp.BYTES - 1)); - return x; - } else { - return concatB(numberToBytesBE(x, Fp.BYTES), numberToBytesBE(y, Fp.BYTES)); - } - } - }, - }, - // G2 is the order-q subgroup of E2(Fp²) : y² = x³+4(1+√−1), - // where Fp2 is Fp[√−1]/(x2+1). #E2(Fp2 ) = h2q, where - // G² - 1 - // h2q - G2: { - Fp: Fp2, - // cofactor - h: BigInt( - '0x5d543a95414e7f1091d50792876a202cd91de4547085abaa68a205b2e5a7ddfa628f1cb4d9e82ef21537e293a6691ae1616ec6e786f0c70cf1c38e31c7238e5' - ), - Gx: Fp2.fromBigTuple([ - BigInt( - '0x024aa2b2f08f0a91260805272dc51051c6e47ad4fa403b02b4510b647ae3d1770bac0326a805bbefd48056c8c121bdb8' - ), - BigInt( - '0x13e02b6052719f607dacd3a088274f65596bd0d09920b61ab5da61bbdc7f5049334cf11213945d57e5ac7d055d042b7e' - ), - ]), - // y = - // 927553665492332455747201965776037880757740193453592970025027978793976877002675564980949289727957565575433344219582, - // 1985150602287291935568054521177171638300868978215655730859378665066344726373823718423869104263333984641494340347905 - Gy: Fp2.fromBigTuple([ - BigInt( - '0x0ce5d527727d6e118cc9cdc6da2e351aadfd9baa8cbdd3a76d429a695160d12c923ac9cc3baca289e193548608b82801' - ), - BigInt( - '0x0606c4a02ea734cc32acd2b02bc28b99cb3e287e85a763af267492ab572e99ab3f370d275cec1da1aaa9075ff05f79be' - ), - ]), - a: Fp2.ZERO, - b: Fp2.fromBigTuple([_4n, _4n]), - hEff: BigInt( - '0xbc69f08f2ee75b3584c6a0ea91b352888e2a8e9145ad7689986ff031508ffe1329c2f178731db956d82bf015d1212b02ec0ec69d7477c1ae954cbc06689f6a359894c0adebbf6b4e8020005aaa95551' - ), - htfDefaults: { ...htfDefaults }, - wrapPrivateKey: true, - allowInfinityPoint: true, - mapToCurve: (scalars: bigint[]) => { - const { x, y } = G2_SWU(Fp2.fromBigTuple(scalars)); - return isogenyMapG2(x, y); - }, - // Checks is the point resides in prime-order subgroup. - // point.isTorsionFree() should return true for valid points - // It returns false for shitty points. - // https://eprint.iacr.org/2021/1130.pdf - isTorsionFree: (c, P): boolean => { - return P.multiplyUnsafe(bls12_381.params.x).negate().equals(G2psi(c, P)); // ψ(P) == [u](P) - // Older version: https://eprint.iacr.org/2019/814.pdf - // Ψ²(P) => Ψ³(P) => [z]Ψ³(P) where z = -x => [z]Ψ³(P) - Ψ²(P) + P == O - // return P.psi2().psi().mulNegX().subtract(psi2).add(P).isZero(); - }, - // Maps the point into the prime-order subgroup G2. - // clear_cofactor_bls12381_g2 from cfrg-hash-to-curve-11 - // https://eprint.iacr.org/2017/419.pdf - // prettier-ignore - clearCofactor: (c, P) => { - const x = bls12_381.params.x; - let t1 = P.multiplyUnsafe(x).negate(); // [-x]P - let t2 = G2psi(c, P); // Ψ(P) - let t3 = P.double(); // 2P - t3 = G2psi2(c, t3); // Ψ²(2P) - t3 = t3.subtract(t2); // Ψ²(2P) - Ψ(P) - t2 = t1.add(t2); // [-x]P + Ψ(P) - t2 = t2.multiplyUnsafe(x).negate(); // [x²]P - [x]Ψ(P) - t3 = t3.add(t2); // Ψ²(2P) - Ψ(P) + [x²]P - [x]Ψ(P) - t3 = t3.subtract(t1); // Ψ²(2P) - Ψ(P) + [x²]P - [x]Ψ(P) + [x]P - const Q = t3.subtract(P); // Ψ²(2P) - Ψ(P) + [x²]P - [x]Ψ(P) + [x]P - 1P - return Q; // [x²-x-1]P + [x-1]Ψ(P) + Ψ²(2P) - }, - fromBytes: (bytes: Uint8Array): AffinePoint => { - bytes = bytes.slice(); - const m_byte = bytes[0] & 0xe0; - if (m_byte === 0x20 || m_byte === 0x60 || m_byte === 0xe0) { - throw new Error('Invalid encoding flag: ' + m_byte); - } - const bitC = m_byte & 0x80; // compression bit - const bitI = m_byte & 0x40; // point at infinity bit - const bitS = m_byte & 0x20; // sign bit - const L = Fp.BYTES; - const slc = (b: Uint8Array, from: number, to?: number) => bytesToNumberBE(b.slice(from, to)); - if (bytes.length === 96 && bitC) { - const b = bls12_381.params.G2b; - const P = Fp.ORDER; - - bytes[0] = bytes[0] & 0x1f; // clear flags - if (bitI) { - // check that all bytes are 0 - if (bytes.reduce((p, c) => (p !== 0 ? c + 1 : c), 0) > 0) { - throw new Error('Invalid compressed G2 point'); - } - return { x: Fp2.ZERO, y: Fp2.ZERO }; - } - const x_1 = slc(bytes, 0, L); - const x_0 = slc(bytes, L, 2 * L); - const x = Fp2.create({ c0: Fp.create(x_0), c1: Fp.create(x_1) }); - const right = Fp2.add(Fp2.pow(x, _3n), b); // y² = x³ + 4 * (u+1) = x³ + b - let y = Fp2.sqrt(right); - const Y_bit = y.c1 === _0n ? (y.c0 * _2n) / P : (y.c1 * _2n) / P ? _1n : _0n; - y = bitS > 0 && Y_bit > 0 ? y : Fp2.neg(y); - return { x, y }; - } else if (bytes.length === 192 && !bitC) { - // Check if the infinity flag is set - if ((bytes[0] & (1 << 6)) !== 0) { - return { x: Fp2.ZERO, y: Fp2.ZERO }; - } - const x1 = slc(bytes, 0, L); - const x0 = slc(bytes, L, 2 * L); - const y1 = slc(bytes, 2 * L, 3 * L); - const y0 = slc(bytes, 3 * L, 4 * L); - return { x: Fp2.fromBigTuple([x0, x1]), y: Fp2.fromBigTuple([y0, y1]) }; - } else { - throw new Error('Invalid point G2, expected 96/192 bytes'); - } - }, - toBytes: (c, point, isCompressed) => { - const { BYTES: len, ORDER: P } = Fp; - const isZero = point.equals(c.ZERO); - const { x, y } = point.toAffine(); - if (isCompressed) { - if (isZero) return concatB(COMPRESSED_ZERO, numberToBytesBE(_0n, len)); - const flag = Boolean(y.c1 === _0n ? (y.c0 * _2n) / P : (y.c1 * _2n) / P); - // set compressed & sign bits (looks like different offsets than for G1/Fp?) - let x_1 = bitSet(x.c1, C_BIT_POS, flag); - x_1 = bitSet(x_1, S_BIT_POS, true); - return concatB(numberToBytesBE(x_1, len), numberToBytesBE(x.c0, len)); - } else { - if (isZero) return concatB(new Uint8Array([0x40]), new Uint8Array(4 * len - 1)); // bytes[0] |= 1 << 6; - const { re: x0, im: x1 } = Fp2.reim(x); - const { re: y0, im: y1 } = Fp2.reim(y); - return concatB( - numberToBytesBE(x1, len), - numberToBytesBE(x0, len), - numberToBytesBE(y1, len), - numberToBytesBE(y0, len) - ); - } - }, - Signature: { - // TODO: Optimize, it's very slow because of sqrt. - fromHex(hex: Hex): ProjPointType { - hex = ensureBytes('signatureHex', hex); - const P = Fp.ORDER; - const half = hex.length / 2; - if (half !== 48 && half !== 96) - throw new Error('Invalid compressed signature length, must be 96 or 192'); - const z1 = bytesToNumberBE(hex.slice(0, half)); - const z2 = bytesToNumberBE(hex.slice(half)); - // Indicates the infinity point - const bflag1 = bitGet(z1, I_BIT_POS); - if (bflag1 === _1n) return bls12_381.G2.ProjectivePoint.ZERO; - - const x1 = Fp.create(z1 & Fp.MASK); - const x2 = Fp.create(z2); - const x = Fp2.create({ c0: x2, c1: x1 }); - const y2 = Fp2.add(Fp2.pow(x, _3n), bls12_381.params.G2b); // y² = x³ + 4 - // The slow part - let y = Fp2.sqrt(y2); - if (!y) throw new Error('Failed to find a square root'); - - // Choose the y whose leftmost bit of the imaginary part is equal to the a_flag1 - // If y1 happens to be zero, then use the bit of y0 - const { re: y0, im: y1 } = Fp2.reim(y); - const aflag1 = bitGet(z1, 381); - const isGreater = y1 > _0n && (y1 * _2n) / P !== aflag1; - const isZero = y1 === _0n && (y0 * _2n) / P !== aflag1; - if (isGreater || isZero) y = Fp2.neg(y); - const point = bls12_381.G2.ProjectivePoint.fromAffine({ x, y }); - point.assertValidity(); - return point; - }, - toRawBytes(point: ProjPointType) { - return signatureG2ToRawBytes(point); - }, - toHex(point: ProjPointType) { - return bytesToHex(signatureG2ToRawBytes(point)); - }, - }, - }, - params: { - x: BLS_X, // The BLS parameter x for BLS12-381 - r: Fr.ORDER, // order; z⁴ − z² + 1; CURVE.n from other curves - }, - htfDefaults, - hash: sha256, - randomBytes, -}); diff --git a/node_modules/@noble/curves/src/bn254.ts b/node_modules/@noble/curves/src/bn254.ts deleted file mode 100644 index 64ccfe0c..00000000 --- a/node_modules/@noble/curves/src/bn254.ts +++ /dev/null @@ -1,21 +0,0 @@ -/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */ -import { sha256 } from '@noble/hashes/sha256'; -import { weierstrass } from './abstract/weierstrass.js'; -import { getHash } from './_shortw_utils.js'; -import { Field } from './abstract/modular.js'; -/** - * bn254 pairing-friendly curve. - * Previously known as alt_bn_128, when it had 128-bit security. - * Recent research shown it's weaker, the naming has been adjusted to its prime bit count. - * https://github.com/zcash/zcash/issues/2502 - */ -export const bn254 = weierstrass({ - a: BigInt(0), - b: BigInt(3), - Fp: Field(BigInt('0x30644e72e131a029b85045b68181585d97816a916871ca8d3c208c16d87cfd47')), - n: BigInt('0x30644e72e131a029b85045b68181585d2833e84879b9709143e1f593f0000001'), - Gx: BigInt(1), - Gy: BigInt(2), - h: BigInt(1), - ...getHash(sha256), -}); diff --git a/node_modules/@noble/curves/src/ed25519.ts b/node_modules/@noble/curves/src/ed25519.ts deleted file mode 100644 index da610dc7..00000000 --- a/node_modules/@noble/curves/src/ed25519.ts +++ /dev/null @@ -1,486 +0,0 @@ -/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */ -import { sha512 } from '@noble/hashes/sha512'; -import { concatBytes, randomBytes, utf8ToBytes } from '@noble/hashes/utils'; -import { ExtPointType, twistedEdwards } from './abstract/edwards.js'; -import { montgomery } from './abstract/montgomery.js'; -import { Field, FpSqrtEven, isNegativeLE, mod, pow2 } from './abstract/modular.js'; -import { - bytesToHex, - bytesToNumberLE, - ensureBytes, - equalBytes, - Hex, - numberToBytesLE, -} from './abstract/utils.js'; -import { createHasher, htfBasicOpts, expand_message_xmd } from './abstract/hash-to-curve.js'; -import { AffinePoint } from './abstract/curve.js'; - -/** - * ed25519 Twisted Edwards curve with following addons: - * - X25519 ECDH - * - Ristretto cofactor elimination - * - Elligator hash-to-group / point indistinguishability - */ - -const ED25519_P = BigInt( - '57896044618658097711785492504343953926634992332820282019728792003956564819949' -); -// √(-1) aka √(a) aka 2^((p-1)/4) -const ED25519_SQRT_M1 = BigInt( - '19681161376707505956807079304988542015446066515923890162744021073123829784752' -); - -// prettier-ignore -const _0n = BigInt(0), _1n = BigInt(1), _2n = BigInt(2), _5n = BigInt(5); -// prettier-ignore -const _10n = BigInt(10), _20n = BigInt(20), _40n = BigInt(40), _80n = BigInt(80); - -function ed25519_pow_2_252_3(x: bigint) { - const P = ED25519_P; - const x2 = (x * x) % P; - const b2 = (x2 * x) % P; // x^3, 11 - const b4 = (pow2(b2, _2n, P) * b2) % P; // x^15, 1111 - const b5 = (pow2(b4, _1n, P) * x) % P; // x^31 - const b10 = (pow2(b5, _5n, P) * b5) % P; - const b20 = (pow2(b10, _10n, P) * b10) % P; - const b40 = (pow2(b20, _20n, P) * b20) % P; - const b80 = (pow2(b40, _40n, P) * b40) % P; - const b160 = (pow2(b80, _80n, P) * b80) % P; - const b240 = (pow2(b160, _80n, P) * b80) % P; - const b250 = (pow2(b240, _10n, P) * b10) % P; - const pow_p_5_8 = (pow2(b250, _2n, P) * x) % P; - // ^ To pow to (p+3)/8, multiply it by x. - return { pow_p_5_8, b2 }; -} - -function adjustScalarBytes(bytes: Uint8Array): Uint8Array { - // Section 5: For X25519, in order to decode 32 random bytes as an integer scalar, - // set the three least significant bits of the first byte - bytes[0] &= 248; // 0b1111_1000 - // and the most significant bit of the last to zero, - bytes[31] &= 127; // 0b0111_1111 - // set the second most significant bit of the last byte to 1 - bytes[31] |= 64; // 0b0100_0000 - return bytes; -} - -// sqrt(u/v) -function uvRatio(u: bigint, v: bigint): { isValid: boolean; value: bigint } { - const P = ED25519_P; - const v3 = mod(v * v * v, P); // v³ - const v7 = mod(v3 * v3 * v, P); // v⁷ - // (p+3)/8 and (p-5)/8 - const pow = ed25519_pow_2_252_3(u * v7).pow_p_5_8; - let x = mod(u * v3 * pow, P); // (uv³)(uv⁷)^(p-5)/8 - const vx2 = mod(v * x * x, P); // vx² - const root1 = x; // First root candidate - const root2 = mod(x * ED25519_SQRT_M1, P); // Second root candidate - const useRoot1 = vx2 === u; // If vx² = u (mod p), x is a square root - const useRoot2 = vx2 === mod(-u, P); // If vx² = -u, set x <-- x * 2^((p-1)/4) - const noRoot = vx2 === mod(-u * ED25519_SQRT_M1, P); // There is no valid root, vx² = -u√(-1) - if (useRoot1) x = root1; - if (useRoot2 || noRoot) x = root2; // We return root2 anyway, for const-time - if (isNegativeLE(x, P)) x = mod(-x, P); - return { isValid: useRoot1 || useRoot2, value: x }; -} - -// Just in case -export const ED25519_TORSION_SUBGROUP = [ - '0100000000000000000000000000000000000000000000000000000000000000', - 'c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac037a', - '0000000000000000000000000000000000000000000000000000000000000080', - '26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc05', - 'ecffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff7f', - '26e8958fc2b227b045c3f489f2ef98f0d5dfac05d3c63339b13802886d53fc85', - '0000000000000000000000000000000000000000000000000000000000000000', - 'c7176a703d4dd84fba3c0b760d10670f2a2053fa2c39ccc64ec7fd7792ac03fa', -]; - -const Fp = Field(ED25519_P, undefined, true); - -const ed25519Defaults = { - // Param: a - a: BigInt(-1), // Fp.create(-1) is proper; our way still works and is faster - // d is equal to -121665/121666 over finite field. - // Negative number is P - number, and division is invert(number, P) - d: BigInt('37095705934669439343138083508754565189542113879843219016388785533085940283555'), - // Finite field 𝔽p over which we'll do calculations; 2n**255n - 19n - Fp, - // Subgroup order: how many points curve has - // 2n**252n + 27742317777372353535851937790883648493n; - n: BigInt('7237005577332262213973186563042994240857116359379907606001950938285454250989'), - // Cofactor - h: BigInt(8), - // Base point (x, y) aka generator point - Gx: BigInt('15112221349535400772501151409588531511454012693041857206046113283949847762202'), - Gy: BigInt('46316835694926478169428394003475163141307993866256225615783033603165251855960'), - hash: sha512, - randomBytes, - adjustScalarBytes, - // dom2 - // Ratio of u to v. Allows us to combine inversion and square root. Uses algo from RFC8032 5.1.3. - // Constant-time, u/√v - uvRatio, -} as const; - -export const ed25519 = twistedEdwards(ed25519Defaults); - -function ed25519_domain(data: Uint8Array, ctx: Uint8Array, phflag: boolean) { - if (ctx.length > 255) throw new Error('Context is too big'); - return concatBytes( - utf8ToBytes('SigEd25519 no Ed25519 collisions'), - new Uint8Array([phflag ? 1 : 0, ctx.length]), - ctx, - data - ); -} - -export const ed25519ctx = twistedEdwards({ ...ed25519Defaults, domain: ed25519_domain }); -export const ed25519ph = twistedEdwards({ - ...ed25519Defaults, - domain: ed25519_domain, - prehash: sha512, -}); - -export const x25519 = /* @__PURE__ */ (() => - montgomery({ - P: ED25519_P, - a: BigInt(486662), - montgomeryBits: 255, // n is 253 bits - nByteLength: 32, - Gu: BigInt(9), - powPminus2: (x: bigint): bigint => { - const P = ED25519_P; - // x^(p-2) aka x^(2^255-21) - const { pow_p_5_8, b2 } = ed25519_pow_2_252_3(x); - return mod(pow2(pow_p_5_8, BigInt(3), P) * b2, P); - }, - adjustScalarBytes, - randomBytes, - }))(); - -/** - * Converts ed25519 public key to x25519 public key. Uses formula: - * * `(u, v) = ((1+y)/(1-y), sqrt(-486664)*u/x)` - * * `(x, y) = (sqrt(-486664)*u/v, (u-1)/(u+1))` - * @example - * const someonesPub = ed25519.getPublicKey(ed25519.utils.randomPrivateKey()); - * const aPriv = x25519.utils.randomPrivateKey(); - * x25519.getSharedSecret(aPriv, edwardsToMontgomeryPub(someonesPub)) - */ -export function edwardsToMontgomeryPub(edwardsPub: Hex): Uint8Array { - const { y } = ed25519.ExtendedPoint.fromHex(edwardsPub); - const _1n = BigInt(1); - return Fp.toBytes(Fp.create((_1n + y) * Fp.inv(_1n - y))); -} -export const edwardsToMontgomery = edwardsToMontgomeryPub; // deprecated - -/** - * Converts ed25519 secret key to x25519 secret key. - * @example - * const someonesPub = x25519.getPublicKey(x25519.utils.randomPrivateKey()); - * const aPriv = ed25519.utils.randomPrivateKey(); - * x25519.getSharedSecret(edwardsToMontgomeryPriv(aPriv), someonesPub) - */ -export function edwardsToMontgomeryPriv(edwardsPriv: Uint8Array): Uint8Array { - const hashed = ed25519Defaults.hash(edwardsPriv.subarray(0, 32)); - return ed25519Defaults.adjustScalarBytes(hashed).subarray(0, 32); -} - -// Hash To Curve Elligator2 Map (NOTE: different from ristretto255 elligator) -// NOTE: very important part is usage of FpSqrtEven for ELL2_C1_EDWARDS, since -// SageMath returns different root first and everything falls apart - -const ELL2_C1 = (Fp.ORDER + BigInt(3)) / BigInt(8); // 1. c1 = (q + 3) / 8 # Integer arithmetic - -const ELL2_C2 = Fp.pow(_2n, ELL2_C1); // 2. c2 = 2^c1 -const ELL2_C3 = Fp.sqrt(Fp.neg(Fp.ONE)); // 3. c3 = sqrt(-1) -const ELL2_C4 = (Fp.ORDER - BigInt(5)) / BigInt(8); // 4. c4 = (q - 5) / 8 # Integer arithmetic -const ELL2_J = BigInt(486662); - -// prettier-ignore -function map_to_curve_elligator2_curve25519(u: bigint) { - let tv1 = Fp.sqr(u); // 1. tv1 = u^2 - tv1 = Fp.mul(tv1, _2n); // 2. tv1 = 2 * tv1 - let xd = Fp.add(tv1, Fp.ONE); // 3. xd = tv1 + 1 # Nonzero: -1 is square (mod p), tv1 is not - let x1n = Fp.neg(ELL2_J); // 4. x1n = -J # x1 = x1n / xd = -J / (1 + 2 * u^2) - let tv2 = Fp.sqr(xd); // 5. tv2 = xd^2 - let gxd = Fp.mul(tv2, xd); // 6. gxd = tv2 * xd # gxd = xd^3 - let gx1 = Fp.mul(tv1, ELL2_J); // 7. gx1 = J * tv1 # x1n + J * xd - gx1 = Fp.mul(gx1, x1n); // 8. gx1 = gx1 * x1n # x1n^2 + J * x1n * xd - gx1 = Fp.add(gx1, tv2); // 9. gx1 = gx1 + tv2 # x1n^2 + J * x1n * xd + xd^2 - gx1 = Fp.mul(gx1, x1n); // 10. gx1 = gx1 * x1n # x1n^3 + J * x1n^2 * xd + x1n * xd^2 - let tv3 = Fp.sqr(gxd); // 11. tv3 = gxd^2 - tv2 = Fp.sqr(tv3); // 12. tv2 = tv3^2 # gxd^4 - tv3 = Fp.mul(tv3, gxd); // 13. tv3 = tv3 * gxd # gxd^3 - tv3 = Fp.mul(tv3, gx1); // 14. tv3 = tv3 * gx1 # gx1 * gxd^3 - tv2 = Fp.mul(tv2, tv3); // 15. tv2 = tv2 * tv3 # gx1 * gxd^7 - let y11 = Fp.pow(tv2, ELL2_C4); // 16. y11 = tv2^c4 # (gx1 * gxd^7)^((p - 5) / 8) - y11 = Fp.mul(y11, tv3); // 17. y11 = y11 * tv3 # gx1*gxd^3*(gx1*gxd^7)^((p-5)/8) - let y12 = Fp.mul(y11, ELL2_C3); // 18. y12 = y11 * c3 - tv2 = Fp.sqr(y11); // 19. tv2 = y11^2 - tv2 = Fp.mul(tv2, gxd); // 20. tv2 = tv2 * gxd - let e1 = Fp.eql(tv2, gx1); // 21. e1 = tv2 == gx1 - let y1 = Fp.cmov(y12, y11, e1); // 22. y1 = CMOV(y12, y11, e1) # If g(x1) is square, this is its sqrt - let x2n = Fp.mul(x1n, tv1); // 23. x2n = x1n * tv1 # x2 = x2n / xd = 2 * u^2 * x1n / xd - let y21 = Fp.mul(y11, u); // 24. y21 = y11 * u - y21 = Fp.mul(y21, ELL2_C2); // 25. y21 = y21 * c2 - let y22 = Fp.mul(y21, ELL2_C3); // 26. y22 = y21 * c3 - let gx2 = Fp.mul(gx1, tv1); // 27. gx2 = gx1 * tv1 # g(x2) = gx2 / gxd = 2 * u^2 * g(x1) - tv2 = Fp.sqr(y21); // 28. tv2 = y21^2 - tv2 = Fp.mul(tv2, gxd); // 29. tv2 = tv2 * gxd - let e2 = Fp.eql(tv2, gx2); // 30. e2 = tv2 == gx2 - let y2 = Fp.cmov(y22, y21, e2); // 31. y2 = CMOV(y22, y21, e2) # If g(x2) is square, this is its sqrt - tv2 = Fp.sqr(y1); // 32. tv2 = y1^2 - tv2 = Fp.mul(tv2, gxd); // 33. tv2 = tv2 * gxd - let e3 = Fp.eql(tv2, gx1); // 34. e3 = tv2 == gx1 - let xn = Fp.cmov(x2n, x1n, e3); // 35. xn = CMOV(x2n, x1n, e3) # If e3, x = x1, else x = x2 - let y = Fp.cmov(y2, y1, e3); // 36. y = CMOV(y2, y1, e3) # If e3, y = y1, else y = y2 - let e4 = Fp.isOdd(y); // 37. e4 = sgn0(y) == 1 # Fix sign of y - y = Fp.cmov(y, Fp.neg(y), e3 !== e4); // 38. y = CMOV(y, -y, e3 XOR e4) - return { xMn: xn, xMd: xd, yMn: y, yMd: _1n }; // 39. return (xn, xd, y, 1) -} - -const ELL2_C1_EDWARDS = FpSqrtEven(Fp, Fp.neg(BigInt(486664))); // sgn0(c1) MUST equal 0 -function map_to_curve_elligator2_edwards25519(u: bigint) { - const { xMn, xMd, yMn, yMd } = map_to_curve_elligator2_curve25519(u); // 1. (xMn, xMd, yMn, yMd) = - // map_to_curve_elligator2_curve25519(u) - let xn = Fp.mul(xMn, yMd); // 2. xn = xMn * yMd - xn = Fp.mul(xn, ELL2_C1_EDWARDS); // 3. xn = xn * c1 - let xd = Fp.mul(xMd, yMn); // 4. xd = xMd * yMn # xn / xd = c1 * xM / yM - let yn = Fp.sub(xMn, xMd); // 5. yn = xMn - xMd - let yd = Fp.add(xMn, xMd); // 6. yd = xMn + xMd # (n / d - 1) / (n / d + 1) = (n - d) / (n + d) - let tv1 = Fp.mul(xd, yd); // 7. tv1 = xd * yd - let e = Fp.eql(tv1, Fp.ZERO); // 8. e = tv1 == 0 - xn = Fp.cmov(xn, Fp.ZERO, e); // 9. xn = CMOV(xn, 0, e) - xd = Fp.cmov(xd, Fp.ONE, e); // 10. xd = CMOV(xd, 1, e) - yn = Fp.cmov(yn, Fp.ONE, e); // 11. yn = CMOV(yn, 1, e) - yd = Fp.cmov(yd, Fp.ONE, e); // 12. yd = CMOV(yd, 1, e) - - const inv = Fp.invertBatch([xd, yd]); // batch division - return { x: Fp.mul(xn, inv[0]), y: Fp.mul(yn, inv[1]) }; // 13. return (xn, xd, yn, yd) -} - -const htf = /* @__PURE__ */ (() => - createHasher( - ed25519.ExtendedPoint, - (scalars: bigint[]) => map_to_curve_elligator2_edwards25519(scalars[0]), - { - DST: 'edwards25519_XMD:SHA-512_ELL2_RO_', - encodeDST: 'edwards25519_XMD:SHA-512_ELL2_NU_', - p: Fp.ORDER, - m: 1, - k: 128, - expand: 'xmd', - hash: sha512, - } - ))(); -export const hashToCurve = /* @__PURE__ */ (() => htf.hashToCurve)(); -export const encodeToCurve = /* @__PURE__ */ (() => htf.encodeToCurve)(); - -function assertRstPoint(other: unknown) { - if (!(other instanceof RistPoint)) throw new Error('RistrettoPoint expected'); -} - -// √(-1) aka √(a) aka 2^((p-1)/4) -const SQRT_M1 = ED25519_SQRT_M1; -// √(ad - 1) -const SQRT_AD_MINUS_ONE = BigInt( - '25063068953384623474111414158702152701244531502492656460079210482610430750235' -); -// 1 / √(a-d) -const INVSQRT_A_MINUS_D = BigInt( - '54469307008909316920995813868745141605393597292927456921205312896311721017578' -); -// 1-d² -const ONE_MINUS_D_SQ = BigInt( - '1159843021668779879193775521855586647937357759715417654439879720876111806838' -); -// (d-1)² -const D_MINUS_ONE_SQ = BigInt( - '40440834346308536858101042469323190826248399146238708352240133220865137265952' -); -// Calculates 1/√(number) -const invertSqrt = (number: bigint) => uvRatio(_1n, number); - -const MAX_255B = BigInt('0x7fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff'); -const bytes255ToNumberLE = (bytes: Uint8Array) => - ed25519.CURVE.Fp.create(bytesToNumberLE(bytes) & MAX_255B); - -type ExtendedPoint = ExtPointType; - -// Computes Elligator map for Ristretto -// https://ristretto.group/formulas/elligator.html -function calcElligatorRistrettoMap(r0: bigint): ExtendedPoint { - const { d } = ed25519.CURVE; - const P = ed25519.CURVE.Fp.ORDER; - const mod = ed25519.CURVE.Fp.create; - const r = mod(SQRT_M1 * r0 * r0); // 1 - const Ns = mod((r + _1n) * ONE_MINUS_D_SQ); // 2 - let c = BigInt(-1); // 3 - const D = mod((c - d * r) * mod(r + d)); // 4 - let { isValid: Ns_D_is_sq, value: s } = uvRatio(Ns, D); // 5 - let s_ = mod(s * r0); // 6 - if (!isNegativeLE(s_, P)) s_ = mod(-s_); - if (!Ns_D_is_sq) s = s_; // 7 - if (!Ns_D_is_sq) c = r; // 8 - const Nt = mod(c * (r - _1n) * D_MINUS_ONE_SQ - D); // 9 - const s2 = s * s; - const W0 = mod((s + s) * D); // 10 - const W1 = mod(Nt * SQRT_AD_MINUS_ONE); // 11 - const W2 = mod(_1n - s2); // 12 - const W3 = mod(_1n + s2); // 13 - return new ed25519.ExtendedPoint(mod(W0 * W3), mod(W2 * W1), mod(W1 * W3), mod(W0 * W2)); -} - -/** - * Each ed25519/ExtendedPoint has 8 different equivalent points. This can be - * a source of bugs for protocols like ring signatures. Ristretto was created to solve this. - * Ristretto point operates in X:Y:Z:T extended coordinates like ExtendedPoint, - * but it should work in its own namespace: do not combine those two. - * https://datatracker.ietf.org/doc/html/draft-irtf-cfrg-ristretto255-decaf448 - */ -class RistPoint { - static BASE: RistPoint; - static ZERO: RistPoint; - // Private property to discourage combining ExtendedPoint + RistrettoPoint - // Always use Ristretto encoding/decoding instead. - constructor(private readonly ep: ExtendedPoint) {} - - static fromAffine(ap: AffinePoint) { - return new RistPoint(ed25519.ExtendedPoint.fromAffine(ap)); - } - - /** - * Takes uniform output of 64-byte hash function like sha512 and converts it to `RistrettoPoint`. - * The hash-to-group operation applies Elligator twice and adds the results. - * **Note:** this is one-way map, there is no conversion from point to hash. - * https://ristretto.group/formulas/elligator.html - * @param hex 64-byte output of a hash function - */ - static hashToCurve(hex: Hex): RistPoint { - hex = ensureBytes('ristrettoHash', hex, 64); - const r1 = bytes255ToNumberLE(hex.slice(0, 32)); - const R1 = calcElligatorRistrettoMap(r1); - const r2 = bytes255ToNumberLE(hex.slice(32, 64)); - const R2 = calcElligatorRistrettoMap(r2); - return new RistPoint(R1.add(R2)); - } - - /** - * Converts ristretto-encoded string to ristretto point. - * https://ristretto.group/formulas/decoding.html - * @param hex Ristretto-encoded 32 bytes. Not every 32-byte string is valid ristretto encoding - */ - static fromHex(hex: Hex): RistPoint { - hex = ensureBytes('ristrettoHex', hex, 32); - const { a, d } = ed25519.CURVE; - const P = ed25519.CURVE.Fp.ORDER; - const mod = ed25519.CURVE.Fp.create; - const emsg = 'RistrettoPoint.fromHex: the hex is not valid encoding of RistrettoPoint'; - const s = bytes255ToNumberLE(hex); - // 1. Check that s_bytes is the canonical encoding of a field element, or else abort. - // 3. Check that s is non-negative, or else abort - if (!equalBytes(numberToBytesLE(s, 32), hex) || isNegativeLE(s, P)) throw new Error(emsg); - const s2 = mod(s * s); - const u1 = mod(_1n + a * s2); // 4 (a is -1) - const u2 = mod(_1n - a * s2); // 5 - const u1_2 = mod(u1 * u1); - const u2_2 = mod(u2 * u2); - const v = mod(a * d * u1_2 - u2_2); // 6 - const { isValid, value: I } = invertSqrt(mod(v * u2_2)); // 7 - const Dx = mod(I * u2); // 8 - const Dy = mod(I * Dx * v); // 9 - let x = mod((s + s) * Dx); // 10 - if (isNegativeLE(x, P)) x = mod(-x); // 10 - const y = mod(u1 * Dy); // 11 - const t = mod(x * y); // 12 - if (!isValid || isNegativeLE(t, P) || y === _0n) throw new Error(emsg); - return new RistPoint(new ed25519.ExtendedPoint(x, y, _1n, t)); - } - - /** - * Encodes ristretto point to Uint8Array. - * https://ristretto.group/formulas/encoding.html - */ - toRawBytes(): Uint8Array { - let { ex: x, ey: y, ez: z, et: t } = this.ep; - const P = ed25519.CURVE.Fp.ORDER; - const mod = ed25519.CURVE.Fp.create; - const u1 = mod(mod(z + y) * mod(z - y)); // 1 - const u2 = mod(x * y); // 2 - // Square root always exists - const u2sq = mod(u2 * u2); - const { value: invsqrt } = invertSqrt(mod(u1 * u2sq)); // 3 - const D1 = mod(invsqrt * u1); // 4 - const D2 = mod(invsqrt * u2); // 5 - const zInv = mod(D1 * D2 * t); // 6 - let D: bigint; // 7 - if (isNegativeLE(t * zInv, P)) { - let _x = mod(y * SQRT_M1); - let _y = mod(x * SQRT_M1); - x = _x; - y = _y; - D = mod(D1 * INVSQRT_A_MINUS_D); - } else { - D = D2; // 8 - } - if (isNegativeLE(x * zInv, P)) y = mod(-y); // 9 - let s = mod((z - y) * D); // 10 (check footer's note, no sqrt(-a)) - if (isNegativeLE(s, P)) s = mod(-s); - return numberToBytesLE(s, 32); // 11 - } - - toHex(): string { - return bytesToHex(this.toRawBytes()); - } - - toString(): string { - return this.toHex(); - } - - // Compare one point to another. - equals(other: RistPoint): boolean { - assertRstPoint(other); - const { ex: X1, ey: Y1 } = this.ep; - const { ex: X2, ey: Y2 } = other.ep; - const mod = ed25519.CURVE.Fp.create; - // (x1 * y2 == y1 * x2) | (y1 * y2 == x1 * x2) - const one = mod(X1 * Y2) === mod(Y1 * X2); - const two = mod(Y1 * Y2) === mod(X1 * X2); - return one || two; - } - - add(other: RistPoint): RistPoint { - assertRstPoint(other); - return new RistPoint(this.ep.add(other.ep)); - } - - subtract(other: RistPoint): RistPoint { - assertRstPoint(other); - return new RistPoint(this.ep.subtract(other.ep)); - } - - multiply(scalar: bigint): RistPoint { - return new RistPoint(this.ep.multiply(scalar)); - } - - multiplyUnsafe(scalar: bigint): RistPoint { - return new RistPoint(this.ep.multiplyUnsafe(scalar)); - } -} -export const RistrettoPoint = /* @__PURE__ */ (() => { - if (!RistPoint.BASE) RistPoint.BASE = new RistPoint(ed25519.ExtendedPoint.BASE); - if (!RistPoint.ZERO) RistPoint.ZERO = new RistPoint(ed25519.ExtendedPoint.ZERO); - return RistPoint; -})(); - -// https://datatracker.ietf.org/doc/draft-irtf-cfrg-hash-to-curve/14/ -// Appendix B. Hashing to ristretto255 -export const hash_to_ristretto255 = (msg: Uint8Array, options: htfBasicOpts) => { - const d = options.DST; - const DST = typeof d === 'string' ? utf8ToBytes(d) : d; - const uniform_bytes = expand_message_xmd(msg, DST, 64, sha512); - const P = RistPoint.hashToCurve(uniform_bytes); - return P; -}; diff --git a/node_modules/@noble/curves/src/ed448.ts b/node_modules/@noble/curves/src/ed448.ts deleted file mode 100644 index b0cf63e9..00000000 --- a/node_modules/@noble/curves/src/ed448.ts +++ /dev/null @@ -1,247 +0,0 @@ -/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */ -import { shake256 } from '@noble/hashes/sha3'; -import { concatBytes, randomBytes, utf8ToBytes, wrapConstructor } from '@noble/hashes/utils'; -import { twistedEdwards } from './abstract/edwards.js'; -import { mod, pow2, Field } from './abstract/modular.js'; -import { montgomery } from './abstract/montgomery.js'; -import { createHasher } from './abstract/hash-to-curve.js'; - -/** - * Edwards448 (not Ed448-Goldilocks) curve with following addons: - * * X448 ECDH - * Conforms to RFC 8032 https://www.rfc-editor.org/rfc/rfc8032.html#section-5.2 - */ - -const shake256_114 = wrapConstructor(() => shake256.create({ dkLen: 114 })); -const shake256_64 = wrapConstructor(() => shake256.create({ dkLen: 64 })); -const ed448P = BigInt( - '726838724295606890549323807888004534353641360687318060281490199180612328166730772686396383698676545930088884461843637361053498018365439' -); - -// powPminus3div4 calculates z = x^k mod p, where k = (p-3)/4. -// Used for efficient square root calculation. -// ((P-3)/4).toString(2) would produce bits [223x 1, 0, 222x 1] -function ed448_pow_Pminus3div4(x: bigint): bigint { - const P = ed448P; - // prettier-ignore - const _1n = BigInt(1), _2n = BigInt(2), _3n = BigInt(3), _11n = BigInt(11); - // prettier-ignore - const _22n = BigInt(22), _44n = BigInt(44), _88n = BigInt(88), _223n = BigInt(223); - const b2 = (x * x * x) % P; - const b3 = (b2 * b2 * x) % P; - const b6 = (pow2(b3, _3n, P) * b3) % P; - const b9 = (pow2(b6, _3n, P) * b3) % P; - const b11 = (pow2(b9, _2n, P) * b2) % P; - const b22 = (pow2(b11, _11n, P) * b11) % P; - const b44 = (pow2(b22, _22n, P) * b22) % P; - const b88 = (pow2(b44, _44n, P) * b44) % P; - const b176 = (pow2(b88, _88n, P) * b88) % P; - const b220 = (pow2(b176, _44n, P) * b44) % P; - const b222 = (pow2(b220, _2n, P) * b2) % P; - const b223 = (pow2(b222, _1n, P) * x) % P; - return (pow2(b223, _223n, P) * b222) % P; -} - -function adjustScalarBytes(bytes: Uint8Array): Uint8Array { - // Section 5: Likewise, for X448, set the two least significant bits of the first byte to 0, and the most - // significant bit of the last byte to 1. - bytes[0] &= 252; // 0b11111100 - // and the most significant bit of the last byte to 1. - bytes[55] |= 128; // 0b10000000 - // NOTE: is is NOOP for 56 bytes scalars (X25519/X448) - bytes[56] = 0; // Byte outside of group (456 buts vs 448 bits) - return bytes; -} - -const Fp = Field(ed448P, 456, true); -const _4n = BigInt(4); - -const ED448_DEF = { - // Param: a - a: BigInt(1), - // -39081. Negative number is P - number - d: BigInt( - '726838724295606890549323807888004534353641360687318060281490199180612328166730772686396383698676545930088884461843637361053498018326358' - ), - // Finite field 𝔽p over which we'll do calculations; 2n**448n - 2n**224n - 1n - Fp, - // Subgroup order: how many points curve has; - // 2n**446n - 13818066809895115352007386748515426880336692474882178609894547503885n - n: BigInt( - '181709681073901722637330951972001133588410340171829515070372549795146003961539585716195755291692375963310293709091662304773755859649779' - ), - nBitLength: 456, - // Cofactor - h: BigInt(4), - // Base point (x, y) aka generator point - Gx: BigInt( - '224580040295924300187604334099896036246789641632564134246125461686950415467406032909029192869357953282578032075146446173674602635247710' - ), - Gy: BigInt( - '298819210078481492676017930443930673437544040154080242095928241372331506189835876003536878655418784733982303233503462500531545062832660' - ), - // SHAKE256(dom4(phflag,context)||x, 114) - hash: shake256_114, - randomBytes, - adjustScalarBytes, - // dom4 - domain: (data: Uint8Array, ctx: Uint8Array, phflag: boolean) => { - if (ctx.length > 255) throw new Error(`Context is too big: ${ctx.length}`); - return concatBytes( - utf8ToBytes('SigEd448'), - new Uint8Array([phflag ? 1 : 0, ctx.length]), - ctx, - data - ); - }, - - // Constant-time ratio of u to v. Allows to combine inversion and square root u/√v. - // Uses algo from RFC8032 5.1.3. - uvRatio: (u: bigint, v: bigint): { isValid: boolean; value: bigint } => { - const P = ed448P; - // https://datatracker.ietf.org/doc/html/rfc8032#section-5.2.3 - // To compute the square root of (u/v), the first step is to compute the - // candidate root x = (u/v)^((p+1)/4). This can be done using the - // following trick, to use a single modular powering for both the - // inversion of v and the square root: - // x = (u/v)^((p+1)/4) = u³v(u⁵v³)^((p-3)/4) (mod p) - const u2v = mod(u * u * v, P); // u²v - const u3v = mod(u2v * u, P); // u³v - const u5v3 = mod(u3v * u2v * v, P); // u⁵v³ - const root = ed448_pow_Pminus3div4(u5v3); - const x = mod(u3v * root, P); - // Verify that root is exists - const x2 = mod(x * x, P); // x² - // If vx² = u, the recovered x-coordinate is x. Otherwise, no - // square root exists, and the decoding fails. - return { isValid: mod(x2 * v, P) === u, value: x }; - }, -} as const; - -export const ed448 = twistedEdwards(ED448_DEF); -// NOTE: there is no ed448ctx, since ed448 supports ctx by default -export const ed448ph = twistedEdwards({ ...ED448_DEF, prehash: shake256_64 }); - -export const x448 = /* @__PURE__ */ (() => - montgomery({ - a: BigInt(156326), - montgomeryBits: 448, - nByteLength: 57, - P: ed448P, - Gu: BigInt(5), - powPminus2: (x: bigint): bigint => { - const P = ed448P; - const Pminus3div4 = ed448_pow_Pminus3div4(x); - const Pminus3 = pow2(Pminus3div4, BigInt(2), P); - return mod(Pminus3 * x, P); // Pminus3 * x = Pminus2 - }, - adjustScalarBytes, - randomBytes, - }))(); - -/** - * Converts edwards448 public key to x448 public key. Uses formula: - * * `(u, v) = ((y-1)/(y+1), sqrt(156324)*u/x)` - * * `(x, y) = (sqrt(156324)*u/v, (1+u)/(1-u))` - * @example - * const aPub = ed448.getPublicKey(utils.randomPrivateKey()); - * x448.getSharedSecret(edwardsToMontgomery(aPub), edwardsToMontgomery(someonesPub)) - */ -export function edwardsToMontgomeryPub(edwardsPub: string | Uint8Array): Uint8Array { - const { y } = ed448.ExtendedPoint.fromHex(edwardsPub); - const _1n = BigInt(1); - return Fp.toBytes(Fp.create((y - _1n) * Fp.inv(y + _1n))); -} -export const edwardsToMontgomery = edwardsToMontgomeryPub; // deprecated - -// Hash To Curve Elligator2 Map -const ELL2_C1 = (Fp.ORDER - BigInt(3)) / BigInt(4); // 1. c1 = (q - 3) / 4 # Integer arithmetic -const ELL2_J = BigInt(156326); -function map_to_curve_elligator2_curve448(u: bigint) { - let tv1 = Fp.sqr(u); // 1. tv1 = u^2 - let e1 = Fp.eql(tv1, Fp.ONE); // 2. e1 = tv1 == 1 - tv1 = Fp.cmov(tv1, Fp.ZERO, e1); // 3. tv1 = CMOV(tv1, 0, e1) # If Z * u^2 == -1, set tv1 = 0 - let xd = Fp.sub(Fp.ONE, tv1); // 4. xd = 1 - tv1 - let x1n = Fp.neg(ELL2_J); // 5. x1n = -J - let tv2 = Fp.sqr(xd); // 6. tv2 = xd^2 - let gxd = Fp.mul(tv2, xd); // 7. gxd = tv2 * xd # gxd = xd^3 - let gx1 = Fp.mul(tv1, Fp.neg(ELL2_J)); // 8. gx1 = -J * tv1 # x1n + J * xd - gx1 = Fp.mul(gx1, x1n); // 9. gx1 = gx1 * x1n # x1n^2 + J * x1n * xd - gx1 = Fp.add(gx1, tv2); // 10. gx1 = gx1 + tv2 # x1n^2 + J * x1n * xd + xd^2 - gx1 = Fp.mul(gx1, x1n); // 11. gx1 = gx1 * x1n # x1n^3 + J * x1n^2 * xd + x1n * xd^2 - let tv3 = Fp.sqr(gxd); // 12. tv3 = gxd^2 - tv2 = Fp.mul(gx1, gxd); // 13. tv2 = gx1 * gxd # gx1 * gxd - tv3 = Fp.mul(tv3, tv2); // 14. tv3 = tv3 * tv2 # gx1 * gxd^3 - let y1 = Fp.pow(tv3, ELL2_C1); // 15. y1 = tv3^c1 # (gx1 * gxd^3)^((p - 3) / 4) - y1 = Fp.mul(y1, tv2); // 16. y1 = y1 * tv2 # gx1 * gxd * (gx1 * gxd^3)^((p - 3) / 4) - let x2n = Fp.mul(x1n, Fp.neg(tv1)); // 17. x2n = -tv1 * x1n # x2 = x2n / xd = -1 * u^2 * x1n / xd - let y2 = Fp.mul(y1, u); // 18. y2 = y1 * u - y2 = Fp.cmov(y2, Fp.ZERO, e1); // 19. y2 = CMOV(y2, 0, e1) - tv2 = Fp.sqr(y1); // 20. tv2 = y1^2 - tv2 = Fp.mul(tv2, gxd); // 21. tv2 = tv2 * gxd - let e2 = Fp.eql(tv2, gx1); // 22. e2 = tv2 == gx1 - let xn = Fp.cmov(x2n, x1n, e2); // 23. xn = CMOV(x2n, x1n, e2) # If e2, x = x1, else x = x2 - let y = Fp.cmov(y2, y1, e2); // 24. y = CMOV(y2, y1, e2) # If e2, y = y1, else y = y2 - let e3 = Fp.isOdd(y); // 25. e3 = sgn0(y) == 1 # Fix sign of y - y = Fp.cmov(y, Fp.neg(y), e2 !== e3); // 26. y = CMOV(y, -y, e2 XOR e3) - return { xn, xd, yn: y, yd: Fp.ONE }; // 27. return (xn, xd, y, 1) -} -function map_to_curve_elligator2_edwards448(u: bigint) { - let { xn, xd, yn, yd } = map_to_curve_elligator2_curve448(u); // 1. (xn, xd, yn, yd) = map_to_curve_elligator2_curve448(u) - let xn2 = Fp.sqr(xn); // 2. xn2 = xn^2 - let xd2 = Fp.sqr(xd); // 3. xd2 = xd^2 - let xd4 = Fp.sqr(xd2); // 4. xd4 = xd2^2 - let yn2 = Fp.sqr(yn); // 5. yn2 = yn^2 - let yd2 = Fp.sqr(yd); // 6. yd2 = yd^2 - let xEn = Fp.sub(xn2, xd2); // 7. xEn = xn2 - xd2 - let tv2 = Fp.sub(xEn, xd2); // 8. tv2 = xEn - xd2 - xEn = Fp.mul(xEn, xd2); // 9. xEn = xEn * xd2 - xEn = Fp.mul(xEn, yd); // 10. xEn = xEn * yd - xEn = Fp.mul(xEn, yn); // 11. xEn = xEn * yn - xEn = Fp.mul(xEn, _4n); // 12. xEn = xEn * 4 - tv2 = Fp.mul(tv2, xn2); // 13. tv2 = tv2 * xn2 - tv2 = Fp.mul(tv2, yd2); // 14. tv2 = tv2 * yd2 - let tv3 = Fp.mul(yn2, _4n); // 15. tv3 = 4 * yn2 - let tv1 = Fp.add(tv3, yd2); // 16. tv1 = tv3 + yd2 - tv1 = Fp.mul(tv1, xd4); // 17. tv1 = tv1 * xd4 - let xEd = Fp.add(tv1, tv2); // 18. xEd = tv1 + tv2 - tv2 = Fp.mul(tv2, xn); // 19. tv2 = tv2 * xn - let tv4 = Fp.mul(xn, xd4); // 20. tv4 = xn * xd4 - let yEn = Fp.sub(tv3, yd2); // 21. yEn = tv3 - yd2 - yEn = Fp.mul(yEn, tv4); // 22. yEn = yEn * tv4 - yEn = Fp.sub(yEn, tv2); // 23. yEn = yEn - tv2 - tv1 = Fp.add(xn2, xd2); // 24. tv1 = xn2 + xd2 - tv1 = Fp.mul(tv1, xd2); // 25. tv1 = tv1 * xd2 - tv1 = Fp.mul(tv1, xd); // 26. tv1 = tv1 * xd - tv1 = Fp.mul(tv1, yn2); // 27. tv1 = tv1 * yn2 - tv1 = Fp.mul(tv1, BigInt(-2)); // 28. tv1 = -2 * tv1 - let yEd = Fp.add(tv2, tv1); // 29. yEd = tv2 + tv1 - tv4 = Fp.mul(tv4, yd2); // 30. tv4 = tv4 * yd2 - yEd = Fp.add(yEd, tv4); // 31. yEd = yEd + tv4 - tv1 = Fp.mul(xEd, yEd); // 32. tv1 = xEd * yEd - let e = Fp.eql(tv1, Fp.ZERO); // 33. e = tv1 == 0 - xEn = Fp.cmov(xEn, Fp.ZERO, e); // 34. xEn = CMOV(xEn, 0, e) - xEd = Fp.cmov(xEd, Fp.ONE, e); // 35. xEd = CMOV(xEd, 1, e) - yEn = Fp.cmov(yEn, Fp.ONE, e); // 36. yEn = CMOV(yEn, 1, e) - yEd = Fp.cmov(yEd, Fp.ONE, e); // 37. yEd = CMOV(yEd, 1, e) - - const inv = Fp.invertBatch([xEd, yEd]); // batch division - return { x: Fp.mul(xEn, inv[0]), y: Fp.mul(yEn, inv[1]) }; // 38. return (xEn, xEd, yEn, yEd) -} - -const htf = /* @__PURE__ */ (() => - createHasher( - ed448.ExtendedPoint, - (scalars: bigint[]) => map_to_curve_elligator2_edwards448(scalars[0]), - { - DST: 'edwards448_XOF:SHAKE256_ELL2_RO_', - encodeDST: 'edwards448_XOF:SHAKE256_ELL2_NU_', - p: Fp.ORDER, - m: 1, - k: 224, - expand: 'xof', - hash: shake256, - } - ))(); -export const hashToCurve = /* @__PURE__ */ (() => htf.hashToCurve)(); -export const encodeToCurve = /* @__PURE__ */ (() => htf.encodeToCurve)(); diff --git a/node_modules/@noble/curves/src/index.ts b/node_modules/@noble/curves/src/index.ts deleted file mode 100644 index 0ffab527..00000000 --- a/node_modules/@noble/curves/src/index.ts +++ /dev/null @@ -1 +0,0 @@ -throw new Error('Incorrect usage. Import submodules instead'); diff --git a/node_modules/@noble/curves/src/jubjub.ts b/node_modules/@noble/curves/src/jubjub.ts deleted file mode 100644 index 203cfa11..00000000 --- a/node_modules/@noble/curves/src/jubjub.ts +++ /dev/null @@ -1,58 +0,0 @@ -/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */ -import { sha512 } from '@noble/hashes/sha512'; -import { concatBytes, randomBytes, utf8ToBytes } from '@noble/hashes/utils'; -import { twistedEdwards } from './abstract/edwards.js'; -import { blake2s } from '@noble/hashes/blake2s'; -import { Field } from './abstract/modular.js'; - -/** - * jubjub Twisted Edwards curve. - * https://neuromancer.sk/std/other/JubJub - * jubjub does not use EdDSA, so `hash`/sha512 params are passed because interface expects them. - */ - -export const jubjub = twistedEdwards({ - // Params: a, d - a: BigInt('0x73eda753299d7d483339d80809a1d80553bda402fffe5bfeffffffff00000000'), - d: BigInt('0x2a9318e74bfa2b48f5fd9207e6bd7fd4292d7f6d37579d2601065fd6d6343eb1'), - // Finite field 𝔽p over which we'll do calculations - // Same value as bls12-381 Fr (not Fp) - Fp: Field(BigInt('0x73eda753299d7d483339d80809a1d80553bda402fffe5bfeffffffff00000001')), - // Subgroup order: how many points curve has - n: BigInt('0xe7db4ea6533afa906673b0101343b00a6682093ccc81082d0970e5ed6f72cb7'), - // Cofactor - h: BigInt(8), - // Base point (x, y) aka generator point - Gx: BigInt('0x11dafe5d23e1218086a365b99fbf3d3be72f6afd7d1f72623e6b071492d1122b'), - Gy: BigInt('0x1d523cf1ddab1a1793132e78c866c0c33e26ba5cc220fed7cc3f870e59d292aa'), - hash: sha512, - randomBytes, -} as const); - -const GH_FIRST_BLOCK = utf8ToBytes( - '096b36a5804bfacef1691e173c366a47ff5ba84a44f26ddd7e8d9f79d5b42df0' -); - -// Returns point at JubJub curve which is prime order and not zero -export function groupHash(tag: Uint8Array, personalization: Uint8Array) { - const h = blake2s.create({ personalization, dkLen: 32 }); - h.update(GH_FIRST_BLOCK); - h.update(tag); - // NOTE: returns ExtendedPoint, in case it will be multiplied later - let p = jubjub.ExtendedPoint.fromHex(h.digest()); - // NOTE: cannot replace with isSmallOrder, returns Point*8 - p = p.multiply(jubjub.CURVE.h); - if (p.equals(jubjub.ExtendedPoint.ZERO)) throw new Error('Point has small order'); - return p; -} - -export function findGroupHash(m: Uint8Array, personalization: Uint8Array) { - const tag = concatBytes(m, new Uint8Array([0])); - for (let i = 0; i < 256; i++) { - tag[tag.length - 1] = i; - try { - return groupHash(tag, personalization); - } catch (e) {} - } - throw new Error('findGroupHash tag overflow'); -} diff --git a/node_modules/@noble/curves/src/p256.ts b/node_modules/@noble/curves/src/p256.ts deleted file mode 100644 index 164c4706..00000000 --- a/node_modules/@noble/curves/src/p256.ts +++ /dev/null @@ -1,48 +0,0 @@ -/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */ -import { createCurve } from './_shortw_utils.js'; -import { sha256 } from '@noble/hashes/sha256'; -import { Field } from './abstract/modular.js'; -import { mapToCurveSimpleSWU } from './abstract/weierstrass.js'; -import { createHasher } from './abstract/hash-to-curve.js'; - -// NIST secp256r1 aka p256 -// https://www.secg.org/sec2-v2.pdf, https://neuromancer.sk/std/nist/P-256 - -const Fp = Field(BigInt('0xffffffff00000001000000000000000000000000ffffffffffffffffffffffff')); -const CURVE_A = Fp.create(BigInt('-3')); -const CURVE_B = BigInt('0x5ac635d8aa3a93e7b3ebbd55769886bc651d06b0cc53b0f63bce3c3e27d2604b'); - -// prettier-ignore -export const p256 = createCurve({ - a: CURVE_A, // Equation params: a, b - b: CURVE_B, - Fp, // Field: 2n**224n * (2n**32n-1n) + 2n**192n + 2n**96n-1n - // Curve order, total count of valid points in the field - n: BigInt('0xffffffff00000000ffffffffffffffffbce6faada7179e84f3b9cac2fc632551'), - // Base (generator) point (x, y) - Gx: BigInt('0x6b17d1f2e12c4247f8bce6e563a440f277037d812deb33a0f4a13945d898c296'), - Gy: BigInt('0x4fe342e2fe1a7f9b8ee7eb4a7c0f9e162bce33576b315ececbb6406837bf51f5'), - h: BigInt(1), - lowS: false, -} as const, sha256); -export const secp256r1 = p256; - -const mapSWU = /* @__PURE__ */ (() => - mapToCurveSimpleSWU(Fp, { - A: CURVE_A, - B: CURVE_B, - Z: Fp.create(BigInt('-10')), - }))(); - -const htf = /* @__PURE__ */ (() => - createHasher(secp256r1.ProjectivePoint, (scalars: bigint[]) => mapSWU(scalars[0]), { - DST: 'P256_XMD:SHA-256_SSWU_RO_', - encodeDST: 'P256_XMD:SHA-256_SSWU_NU_', - p: Fp.ORDER, - m: 1, - k: 128, - expand: 'xmd', - hash: sha256, - }))(); -export const hashToCurve = /* @__PURE__ */ (() => htf.hashToCurve)(); -export const encodeToCurve = /* @__PURE__ */ (() => htf.encodeToCurve)(); diff --git a/node_modules/@noble/curves/src/p384.ts b/node_modules/@noble/curves/src/p384.ts deleted file mode 100644 index 436de9bc..00000000 --- a/node_modules/@noble/curves/src/p384.ts +++ /dev/null @@ -1,52 +0,0 @@ -/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */ -import { createCurve } from './_shortw_utils.js'; -import { sha384 } from '@noble/hashes/sha512'; -import { Field } from './abstract/modular.js'; -import { mapToCurveSimpleSWU } from './abstract/weierstrass.js'; -import { createHasher } from './abstract/hash-to-curve.js'; - -// NIST secp384r1 aka p384 -// https://www.secg.org/sec2-v2.pdf, https://neuromancer.sk/std/nist/P-384 - -// Field over which we'll do calculations. -// prettier-ignore -const P = BigInt('0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffeffffffff0000000000000000ffffffff'); -const Fp = Field(P); -const CURVE_A = Fp.create(BigInt('-3')); -// prettier-ignore -const CURVE_B = BigInt('0xb3312fa7e23ee7e4988e056be3f82d19181d9c6efe8141120314088f5013875ac656398d8a2ed19d2a85c8edd3ec2aef'); - -// prettier-ignore -export const p384 = createCurve({ - a: CURVE_A, // Equation params: a, b - b: CURVE_B, - Fp, // Field: 2n**384n - 2n**128n - 2n**96n + 2n**32n - 1n - // Curve order, total count of valid points in the field. - n: BigInt('0xffffffffffffffffffffffffffffffffffffffffffffffffc7634d81f4372ddf581a0db248b0a77aecec196accc52973'), - // Base (generator) point (x, y) - Gx: BigInt('0xaa87ca22be8b05378eb1c71ef320ad746e1d3b628ba79b9859f741e082542a385502f25dbf55296c3a545e3872760ab7'), - Gy: BigInt('0x3617de4a96262c6f5d9e98bf9292dc29f8f41dbd289a147ce9da3113b5f0b8c00a60b1ce1d7e819d7a431d7c90ea0e5f'), - h: BigInt(1), - lowS: false, -} as const, sha384); -export const secp384r1 = p384; - -const mapSWU = /* @__PURE__ */ (() => - mapToCurveSimpleSWU(Fp, { - A: CURVE_A, - B: CURVE_B, - Z: Fp.create(BigInt('-12')), - }))(); - -const htf = /* @__PURE__ */ (() => - createHasher(secp384r1.ProjectivePoint, (scalars: bigint[]) => mapSWU(scalars[0]), { - DST: 'P384_XMD:SHA-384_SSWU_RO_', - encodeDST: 'P384_XMD:SHA-384_SSWU_NU_', - p: Fp.ORDER, - m: 1, - k: 192, - expand: 'xmd', - hash: sha384, - }))(); -export const hashToCurve = /* @__PURE__ */ (() => htf.hashToCurve)(); -export const encodeToCurve = /* @__PURE__ */ (() => htf.encodeToCurve)(); diff --git a/node_modules/@noble/curves/src/p521.ts b/node_modules/@noble/curves/src/p521.ts deleted file mode 100644 index cc9fbbcb..00000000 --- a/node_modules/@noble/curves/src/p521.ts +++ /dev/null @@ -1,68 +0,0 @@ -/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */ -import { createCurve } from './_shortw_utils.js'; -import { sha512 } from '@noble/hashes/sha512'; -import { Field } from './abstract/modular.js'; -import { mapToCurveSimpleSWU } from './abstract/weierstrass.js'; -import { createHasher } from './abstract/hash-to-curve.js'; - -// NIST secp521r1 aka p521 -// Note that it's 521, which differs from 512 of its hash function. -// https://www.secg.org/sec2-v2.pdf, https://neuromancer.sk/std/nist/P-521 - -// Field over which we'll do calculations. -// prettier-ignore -const P = BigInt('0x1ffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffff'); -const Fp = Field(P); - -const CURVE = { - a: Fp.create(BigInt('-3')), - b: BigInt( - '0x0051953eb9618e1c9a1f929a21a0b68540eea2da725b99b315f3b8b489918ef109e156193951ec7e937b1652c0bd3bb1bf073573df883d2c34f1ef451fd46b503f00' - ), - Fp, - n: BigInt( - '0x01fffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffffa51868783bf2f966b7fcc0148f709a5d03bb5c9b8899c47aebb6fb71e91386409' - ), - Gx: BigInt( - '0x00c6858e06b70404e9cd9e3ecb662395b4429c648139053fb521f828af606b4d3dbaa14b5e77efe75928fe1dc127a2ffa8de3348b3c1856a429bf97e7e31c2e5bd66' - ), - Gy: BigInt( - '0x011839296a789a3bc0045c8a5fb42c7d1bd998f54449579b446817afbd17273e662c97ee72995ef42640c550b9013fad0761353c7086a272c24088be94769fd16650' - ), - h: BigInt(1), -}; - -// prettier-ignore -export const p521 = createCurve({ - a: CURVE.a, // Equation params: a, b - b: CURVE.b, - Fp, // Field: 2n**521n - 1n - // Curve order, total count of valid points in the field - n: CURVE.n, - Gx: CURVE.Gx, // Base point (x, y) aka generator point - Gy: CURVE.Gy, - h: CURVE.h, - lowS: false, - allowedPrivateKeyLengths: [130, 131, 132] // P521 keys are variable-length. Normalize to 132b -} as const, sha512); -export const secp521r1 = p521; - -const mapSWU = /* @__PURE__ */ (() => - mapToCurveSimpleSWU(Fp, { - A: CURVE.a, - B: CURVE.b, - Z: Fp.create(BigInt('-4')), - }))(); - -const htf = /* @__PURE__ */ (() => - createHasher(secp521r1.ProjectivePoint, (scalars: bigint[]) => mapSWU(scalars[0]), { - DST: 'P521_XMD:SHA-512_SSWU_RO_', - encodeDST: 'P521_XMD:SHA-512_SSWU_NU_', - p: Fp.ORDER, - m: 1, - k: 256, - expand: 'xmd', - hash: sha512, - }))(); -export const hashToCurve = /* @__PURE__ */ (() => htf.hashToCurve)(); -export const encodeToCurve = /* @__PURE__ */ (() => htf.encodeToCurve)(); diff --git a/node_modules/@noble/curves/src/pasta.ts b/node_modules/@noble/curves/src/pasta.ts deleted file mode 100644 index faed89e9..00000000 --- a/node_modules/@noble/curves/src/pasta.ts +++ /dev/null @@ -1,31 +0,0 @@ -/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */ -import { sha256 } from '@noble/hashes/sha256'; -import { weierstrass } from './abstract/weierstrass.js'; -import { getHash } from './_shortw_utils.js'; -import * as mod from './abstract/modular.js'; - -export const p = BigInt('0x40000000000000000000000000000000224698fc094cf91b992d30ed00000001'); -export const q = BigInt('0x40000000000000000000000000000000224698fc0994a8dd8c46eb2100000001'); - -// https://neuromancer.sk/std/other/Pallas -export const pallas = weierstrass({ - a: BigInt(0), - b: BigInt(5), - Fp: mod.Field(p), - n: q, - Gx: mod.mod(BigInt(-1), p), - Gy: BigInt(2), - h: BigInt(1), - ...getHash(sha256), -}); -// https://neuromancer.sk/std/other/Vesta -export const vesta = weierstrass({ - a: BigInt(0), - b: BigInt(5), - Fp: mod.Field(q), - n: p, - Gx: mod.mod(BigInt(-1), q), - Gy: BigInt(2), - h: BigInt(1), - ...getHash(sha256), -}); diff --git a/node_modules/@noble/curves/src/secp256k1.ts b/node_modules/@noble/curves/src/secp256k1.ts deleted file mode 100644 index 7119222d..00000000 --- a/node_modules/@noble/curves/src/secp256k1.ts +++ /dev/null @@ -1,274 +0,0 @@ -/*! noble-curves - MIT License (c) 2022 Paul Miller (paulmillr.com) */ -import { sha256 } from '@noble/hashes/sha256'; -import { randomBytes } from '@noble/hashes/utils'; -import { Field, mod, pow2 } from './abstract/modular.js'; -import { ProjPointType as PointType, mapToCurveSimpleSWU } from './abstract/weierstrass.js'; -import type { Hex, PrivKey } from './abstract/utils.js'; -import { bytesToNumberBE, concatBytes, ensureBytes, numberToBytesBE } from './abstract/utils.js'; -import { createHasher, isogenyMap } from './abstract/hash-to-curve.js'; -import { createCurve } from './_shortw_utils.js'; - -const secp256k1P = BigInt('0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffffc2f'); -const secp256k1N = BigInt('0xfffffffffffffffffffffffffffffffebaaedce6af48a03bbfd25e8cd0364141'); -const _1n = BigInt(1); -const _2n = BigInt(2); -const divNearest = (a: bigint, b: bigint) => (a + b / _2n) / b; - -/** - * √n = n^((p+1)/4) for fields p = 3 mod 4. We unwrap the loop and multiply bit-by-bit. - * (P+1n/4n).toString(2) would produce bits [223x 1, 0, 22x 1, 4x 0, 11, 00] - */ -function sqrtMod(y: bigint): bigint { - const P = secp256k1P; - // prettier-ignore - const _3n = BigInt(3), _6n = BigInt(6), _11n = BigInt(11), _22n = BigInt(22); - // prettier-ignore - const _23n = BigInt(23), _44n = BigInt(44), _88n = BigInt(88); - const b2 = (y * y * y) % P; // x^3, 11 - const b3 = (b2 * b2 * y) % P; // x^7 - const b6 = (pow2(b3, _3n, P) * b3) % P; - const b9 = (pow2(b6, _3n, P) * b3) % P; - const b11 = (pow2(b9, _2n, P) * b2) % P; - const b22 = (pow2(b11, _11n, P) * b11) % P; - const b44 = (pow2(b22, _22n, P) * b22) % P; - const b88 = (pow2(b44, _44n, P) * b44) % P; - const b176 = (pow2(b88, _88n, P) * b88) % P; - const b220 = (pow2(b176, _44n, P) * b44) % P; - const b223 = (pow2(b220, _3n, P) * b3) % P; - const t1 = (pow2(b223, _23n, P) * b22) % P; - const t2 = (pow2(t1, _6n, P) * b2) % P; - const root = pow2(t2, _2n, P); - if (!Fp.eql(Fp.sqr(root), y)) throw new Error('Cannot find square root'); - return root; -} - -const Fp = Field(secp256k1P, undefined, undefined, { sqrt: sqrtMod }); - -export const secp256k1 = createCurve( - { - a: BigInt(0), // equation params: a, b - b: BigInt(7), // Seem to be rigid: bitcointalk.org/index.php?topic=289795.msg3183975#msg3183975 - Fp, // Field's prime: 2n**256n - 2n**32n - 2n**9n - 2n**8n - 2n**7n - 2n**6n - 2n**4n - 1n - n: secp256k1N, // Curve order, total count of valid points in the field - // Base point (x, y) aka generator point - Gx: BigInt('55066263022277343669578718895168534326250603453777594175500187360389116729240'), - Gy: BigInt('32670510020758816978083085130507043184471273380659243275938904335757337482424'), - h: BigInt(1), // Cofactor - lowS: true, // Allow only low-S signatures by default in sign() and verify() - /** - * secp256k1 belongs to Koblitz curves: it has efficiently computable endomorphism. - * Endomorphism uses 2x less RAM, speeds up precomputation by 2x and ECDH / key recovery by 20%. - * For precomputed wNAF it trades off 1/2 init time & 1/3 ram for 20% perf hit. - * Explanation: https://gist.github.com/paulmillr/eb670806793e84df628a7c434a873066 - */ - endo: { - beta: BigInt('0x7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee'), - splitScalar: (k: bigint) => { - const n = secp256k1N; - const a1 = BigInt('0x3086d221a7d46bcde86c90e49284eb15'); - const b1 = -_1n * BigInt('0xe4437ed6010e88286f547fa90abfe4c3'); - const a2 = BigInt('0x114ca50f7a8e2f3f657c1108d9d44cfd8'); - const b2 = a1; - const POW_2_128 = BigInt('0x100000000000000000000000000000000'); // (2n**128n).toString(16) - - const c1 = divNearest(b2 * k, n); - const c2 = divNearest(-b1 * k, n); - let k1 = mod(k - c1 * a1 - c2 * a2, n); - let k2 = mod(-c1 * b1 - c2 * b2, n); - const k1neg = k1 > POW_2_128; - const k2neg = k2 > POW_2_128; - if (k1neg) k1 = n - k1; - if (k2neg) k2 = n - k2; - if (k1 > POW_2_128 || k2 > POW_2_128) { - throw new Error('splitScalar: Endomorphism failed, k=' + k); - } - return { k1neg, k1, k2neg, k2 }; - }, - }, - }, - sha256 -); - -// Schnorr signatures are superior to ECDSA from above. Below is Schnorr-specific BIP0340 code. -// https://github.com/bitcoin/bips/blob/master/bip-0340.mediawiki -const _0n = BigInt(0); -const fe = (x: bigint) => typeof x === 'bigint' && _0n < x && x < secp256k1P; -const ge = (x: bigint) => typeof x === 'bigint' && _0n < x && x < secp256k1N; -/** An object mapping tags to their tagged hash prefix of [SHA256(tag) | SHA256(tag)] */ -const TAGGED_HASH_PREFIXES: { [tag: string]: Uint8Array } = {}; -function taggedHash(tag: string, ...messages: Uint8Array[]): Uint8Array { - let tagP = TAGGED_HASH_PREFIXES[tag]; - if (tagP === undefined) { - const tagH = sha256(Uint8Array.from(tag, (c) => c.charCodeAt(0))); - tagP = concatBytes(tagH, tagH); - TAGGED_HASH_PREFIXES[tag] = tagP; - } - return sha256(concatBytes(tagP, ...messages)); -} - -// ECDSA compact points are 33-byte. Schnorr is 32: we strip first byte 0x02 or 0x03 -const pointToBytes = (point: PointType) => point.toRawBytes(true).slice(1); -const numTo32b = (n: bigint) => numberToBytesBE(n, 32); -const modP = (x: bigint) => mod(x, secp256k1P); -const modN = (x: bigint) => mod(x, secp256k1N); -const Point = secp256k1.ProjectivePoint; -const GmulAdd = (Q: PointType, a: bigint, b: bigint) => - Point.BASE.multiplyAndAddUnsafe(Q, a, b); - -// Calculate point, scalar and bytes -function schnorrGetExtPubKey(priv: PrivKey) { - let d_ = secp256k1.utils.normPrivateKeyToScalar(priv); // same method executed in fromPrivateKey - let p = Point.fromPrivateKey(d_); // P = d'⋅G; 0 < d' < n check is done inside - const scalar = p.hasEvenY() ? d_ : modN(-d_); - return { scalar: scalar, bytes: pointToBytes(p) }; -} -/** - * lift_x from BIP340. Convert 32-byte x coordinate to elliptic curve point. - * @returns valid point checked for being on-curve - */ -function lift_x(x: bigint): PointType { - if (!fe(x)) throw new Error('bad x: need 0 < x < p'); // Fail if x ≥ p. - const xx = modP(x * x); - const c = modP(xx * x + BigInt(7)); // Let c = x³ + 7 mod p. - let y = sqrtMod(c); // Let y = c^(p+1)/4 mod p. - if (y % _2n !== _0n) y = modP(-y); // Return the unique point P such that x(P) = x and - const p = new Point(x, y, _1n); // y(P) = y if y mod 2 = 0 or y(P) = p-y otherwise. - p.assertValidity(); - return p; -} -/** - * Create tagged hash, convert it to bigint, reduce modulo-n. - */ -function challenge(...args: Uint8Array[]): bigint { - return modN(bytesToNumberBE(taggedHash('BIP0340/challenge', ...args))); -} - -/** - * Schnorr public key is just `x` coordinate of Point as per BIP340. - */ -function schnorrGetPublicKey(privateKey: Hex): Uint8Array { - return schnorrGetExtPubKey(privateKey).bytes; // d'=int(sk). Fail if d'=0 or d'≥n. Ret bytes(d'⋅G) -} - -/** - * Creates Schnorr signature as per BIP340. Verifies itself before returning anything. - * auxRand is optional and is not the sole source of k generation: bad CSPRNG won't be dangerous. - */ -function schnorrSign( - message: Hex, - privateKey: PrivKey, - auxRand: Hex = randomBytes(32) -): Uint8Array { - const m = ensureBytes('message', message); - const { bytes: px, scalar: d } = schnorrGetExtPubKey(privateKey); // checks for isWithinCurveOrder - const a = ensureBytes('auxRand', auxRand, 32); // Auxiliary random data a: a 32-byte array - const t = numTo32b(d ^ bytesToNumberBE(taggedHash('BIP0340/aux', a))); // Let t be the byte-wise xor of bytes(d) and hash/aux(a) - const rand = taggedHash('BIP0340/nonce', t, px, m); // Let rand = hash/nonce(t || bytes(P) || m) - const k_ = modN(bytesToNumberBE(rand)); // Let k' = int(rand) mod n - if (k_ === _0n) throw new Error('sign failed: k is zero'); // Fail if k' = 0. - const { bytes: rx, scalar: k } = schnorrGetExtPubKey(k_); // Let R = k'⋅G. - const e = challenge(rx, px, m); // Let e = int(hash/challenge(bytes(R) || bytes(P) || m)) mod n. - const sig = new Uint8Array(64); // Let sig = bytes(R) || bytes((k + ed) mod n). - sig.set(rx, 0); - sig.set(numTo32b(modN(k + e * d)), 32); - // If Verify(bytes(P), m, sig) (see below) returns failure, abort - if (!schnorrVerify(sig, m, px)) throw new Error('sign: Invalid signature produced'); - return sig; -} - -/** - * Verifies Schnorr signature. - * Will swallow errors & return false except for initial type validation of arguments. - */ -function schnorrVerify(signature: Hex, message: Hex, publicKey: Hex): boolean { - const sig = ensureBytes('signature', signature, 64); - const m = ensureBytes('message', message); - const pub = ensureBytes('publicKey', publicKey, 32); - try { - const P = lift_x(bytesToNumberBE(pub)); // P = lift_x(int(pk)); fail if that fails - const r = bytesToNumberBE(sig.subarray(0, 32)); // Let r = int(sig[0:32]); fail if r ≥ p. - if (!fe(r)) return false; - const s = bytesToNumberBE(sig.subarray(32, 64)); // Let s = int(sig[32:64]); fail if s ≥ n. - if (!ge(s)) return false; - const e = challenge(numTo32b(r), pointToBytes(P), m); // int(challenge(bytes(r)||bytes(P)||m))%n - const R = GmulAdd(P, s, modN(-e)); // R = s⋅G - e⋅P - if (!R || !R.hasEvenY() || R.toAffine().x !== r) return false; // -eP == (n-e)P - return true; // Fail if is_infinite(R) / not has_even_y(R) / x(R) ≠ r. - } catch (error) { - return false; - } -} - -export const schnorr = /* @__PURE__ */ (() => ({ - getPublicKey: schnorrGetPublicKey, - sign: schnorrSign, - verify: schnorrVerify, - utils: { - randomPrivateKey: secp256k1.utils.randomPrivateKey, - lift_x, - pointToBytes, - numberToBytesBE, - bytesToNumberBE, - taggedHash, - mod, - }, -}))(); - -const isoMap = /* @__PURE__ */ (() => - isogenyMap( - Fp, - [ - // xNum - [ - '0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa8c7', - '0x7d3d4c80bc321d5b9f315cea7fd44c5d595d2fc0bf63b92dfff1044f17c6581', - '0x534c328d23f234e6e2a413deca25caece4506144037c40314ecbd0b53d9dd262', - '0x8e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38e38daaaaa88c', - ], - // xDen - [ - '0xd35771193d94918a9ca34ccbb7b640dd86cd409542f8487d9fe6b745781eb49b', - '0xedadc6f64383dc1df7c4b2d51b54225406d36b641f5e41bbc52a56612a8c6d14', - '0x0000000000000000000000000000000000000000000000000000000000000001', // LAST 1 - ], - // yNum - [ - '0x4bda12f684bda12f684bda12f684bda12f684bda12f684bda12f684b8e38e23c', - '0xc75e0c32d5cb7c0fa9d0a54b12a0a6d5647ab046d686da6fdffc90fc201d71a3', - '0x29a6194691f91a73715209ef6512e576722830a201be2018a765e85a9ecee931', - '0x2f684bda12f684bda12f684bda12f684bda12f684bda12f684bda12f38e38d84', - ], - // yDen - [ - '0xfffffffffffffffffffffffffffffffffffffffffffffffffffffffefffff93b', - '0x7a06534bb8bdb49fd5e9e6632722c2989467c1bfc8e8d978dfb425d2685c2573', - '0x6484aa716545ca2cf3a70c3fa8fe337e0a3d21162f0d6299a7bf8192bfd2a76f', - '0x0000000000000000000000000000000000000000000000000000000000000001', // LAST 1 - ], - ].map((i) => i.map((j) => BigInt(j))) as [bigint[], bigint[], bigint[], bigint[]] - ))(); -const mapSWU = /* @__PURE__ */ (() => - mapToCurveSimpleSWU(Fp, { - A: BigInt('0x3f8731abdd661adca08a5558f0f5d272e953d363cb6f0e5d405447c01a444533'), - B: BigInt('1771'), - Z: Fp.create(BigInt('-11')), - }))(); -const htf = /* @__PURE__ */ (() => - createHasher( - secp256k1.ProjectivePoint, - (scalars: bigint[]) => { - const { x, y } = mapSWU(Fp.create(scalars[0])); - return isoMap(x, y); - }, - { - DST: 'secp256k1_XMD:SHA-256_SSWU_RO_', - encodeDST: 'secp256k1_XMD:SHA-256_SSWU_NU_', - p: Fp.ORDER, - m: 1, - k: 128, - expand: 'xmd', - hash: sha256, - } - ))(); -export const hashToCurve = /* @__PURE__ */ (() => htf.hashToCurve)(); -export const encodeToCurve = /* @__PURE__ */ (() => htf.encodeToCurve)(); diff --git a/node_modules/@noble/hashes/LICENSE b/node_modules/@noble/hashes/LICENSE deleted file mode 100644 index 9297a046..00000000 --- a/node_modules/@noble/hashes/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2022 Paul Miller (https://paulmillr.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the “Software”), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. \ No newline at end of file diff --git a/node_modules/@noble/hashes/README.md b/node_modules/@noble/hashes/README.md deleted file mode 100644 index 6f71600a..00000000 --- a/node_modules/@noble/hashes/README.md +++ /dev/null @@ -1,534 +0,0 @@ -# noble-hashes - -Audited & minimal JS implementation of SHA2, SHA3, RIPEMD, BLAKE2/3, HMAC, HKDF, PBKDF2 & Scrypt. - -- 🔒 [**Audited**](#security) by an independent security firm -- 🔻 Tree-shaking-friendly: use only what's necessary, other code won't be included -- 🏎 Ultra-fast, hand-optimized for caveats of JS engines -- 🔍 Unique tests ensure correctness: chained tests, sliding window tests, DoS tests, fuzzing -- 🔁 No unrolled loops: makes it easier to verify and reduces source code size up to 5x -- 🐢 Scrypt supports `N: 2**22`, while other implementations are limited to `2**20` -- 🦘 SHA3 supports Keccak, TupleHash, KangarooTwelve and MarsupilamiFourteen -- 🪶 Just 3.4k lines / 17KB gzipped. SHA256-only is 240 lines / 3KB gzipped - -The library's initial development was funded by [Ethereum Foundation](https://ethereum.org/). - -### This library belongs to _noble_ crypto - -> **noble-crypto** — high-security, easily auditable set of contained cryptographic libraries and tools. - -- No dependencies, protection against supply chain attacks -- Auditable TypeScript / JS code -- Supported on all major platforms -- Releases are signed with PGP keys and built transparently with NPM provenance -- Check out [homepage](https://paulmillr.com/noble/) & all libraries: - [ciphers](https://github.com/paulmillr/noble-ciphers), - [curves](https://github.com/paulmillr/noble-curves), - [hashes](https://github.com/paulmillr/noble-hashes), - 4kb [secp256k1](https://github.com/paulmillr/noble-secp256k1) / - [ed25519](https://github.com/paulmillr/noble-ed25519) - -## Usage - -> npm install @noble/hashes - -We support all major platforms and runtimes. -For [Deno](https://deno.land), ensure to use [npm specifier](https://deno.land/manual@v1.28.0/node/npm_specifiers). -For React Native, you may need a [polyfill for getRandomValues](https://github.com/LinusU/react-native-get-random-values). -If you don't like NPM, a standalone [noble-hashes.js](https://github.com/paulmillr/noble-hashes/releases) is also available. - -```js -// import * from '@noble/hashes'; // Error: use sub-imports, to ensure small app size -import { sha256 } from '@noble/hashes/sha256'; // ECMAScript modules (ESM) and Common.js -// import { sha256 } from 'npm:@noble/hashes@1.3.0/sha256'; // Deno -console.log(sha256(new Uint8Array([1, 2, 3]))); // Uint8Array(32) [3, 144, 88, 198, 242...] -// you could also pass strings that will be UTF8-encoded to Uint8Array -console.log(sha256('abc')); // == sha256(new TextEncoder().encode('abc')) - -// sha384 is here, because it uses same internals as sha512 -import { sha512, sha512_256, sha384 } from '@noble/hashes/sha512'; -// prettier-ignore -import { - sha3_224, sha3_256, sha3_384, sha3_512, - keccak_224, keccak_256, keccak_384, keccak_512, - shake128, shake256 -} from '@noble/hashes/sha3'; -// prettier-ignore -import { - cshake128, cshake256, kmac128, kmac256, - k12, m14, - tuplehash256, parallelhash256, keccakprg -} from '@noble/hashes/sha3-addons'; -import { ripemd160 } from '@noble/hashes/ripemd160'; -import { blake3 } from '@noble/hashes/blake3'; -import { blake2b } from '@noble/hashes/blake2b'; -import { blake2s } from '@noble/hashes/blake2s'; -import { hmac } from '@noble/hashes/hmac'; -import { hkdf } from '@noble/hashes/hkdf'; -import { pbkdf2, pbkdf2Async } from '@noble/hashes/pbkdf2'; -import { scrypt, scryptAsync } from '@noble/hashes/scrypt'; - -import { sha1 } from '@noble/hashes/sha1'; // legacy - -// small utility method that converts bytes to hex -import { bytesToHex as toHex } from '@noble/hashes/utils'; -console.log(toHex(sha256('abc'))); // ba7816bf8f01cfea414140de5dae2223b00361a396177a9cb410ff61f20015ad -``` - -## API - -All hash functions: - -- can be called directly, with `Uint8Array`. -- return `Uint8Array` -- can receive `string`, which is automatically converted to `Uint8Array` - via utf8 encoding **(not hex)** -- support hashing 4GB of data per update on 64-bit systems (unlimited with streaming) - -```ts -function hash(message: Uint8Array | string): Uint8Array; -hash(new Uint8Array([1, 3])); -hash('string') == hash(new TextEncoder().encode('string')); -``` - -All hash functions can be constructed via `hash.create()` method: - -- the result is `Hash` subclass instance, which has `update()` and `digest()` methods -- `digest()` finalizes the hash and makes it no longer usable - -```ts -hash - .create() - .update(new Uint8Array([1, 3])) - .digest(); -``` - -_Some_ hash functions can also receive `options` object, which can be either passed as a: - -- second argument to hash function: `blake3('abc', { key: 'd', dkLen: 32 })` -- first argument to class initializer: `blake3.create({ context: 'e', dkLen: 32 })` - -## Modules - -- [SHA2 (sha256, sha384, sha512, sha512_256)](#sha2-sha256-sha384-sha512-sha512_256) -- [SHA3 (FIPS, SHAKE, Keccak)](#sha3-fips-shake-keccak) -- [SHA3 Addons (cSHAKE, KMAC, KangarooTwelve, MarsupilamiFourteen)](#sha3-addons-cshake-kmac-tuplehash-parallelhash-kangarootwelve-marsupilamifourteen) -- [RIPEMD-160](#ripemd-160) -- [BLAKE2b, BLAKE2s](#blake2b-blake2s) -- [BLAKE3](#blake3) -- [SHA1 (legacy)](#sha1-legacy) -- [HMAC](#hmac) -- [HKDF](#hkdf) -- [PBKDF2](#pbkdf2) -- [Scrypt](#scrypt) -- [ESKDF](#eskdf) -- [utils](#utils) - -##### SHA2 (sha256, sha384, sha512, sha512_256) - -```typescript -import { sha256 } from '@noble/hashes/sha256'; -const h1a = sha256('abc'); -const h1b = sha256 - .create() - .update(Uint8Array.from([1, 2, 3])) - .digest(); -``` - -```typescript -import { sha512 } from '@noble/hashes/sha512'; -const h2a = sha512('abc'); -const h2b = sha512 - .create() - .update(Uint8Array.from([1, 2, 3])) - .digest(); - -// SHA512/256 variant -import { sha512_256 } from '@noble/hashes/sha512'; -const h3a = sha512_256('abc'); -const h3b = sha512_256 - .create() - .update(Uint8Array.from([1, 2, 3])) - .digest(); - -// SHA384 -import { sha384 } from '@noble/hashes/sha512'; -const h4a = sha384('abc'); -const h4b = sha384 - .create() - .update(Uint8Array.from([1, 2, 3])) - .digest(); -``` - -See [RFC 4634](https://datatracker.ietf.org/doc/html/rfc4634) and -[the paper on SHA512/256](https://eprint.iacr.org/2010/548.pdf). - -##### SHA3 (FIPS, SHAKE, Keccak) - -```typescript -import { - sha3_224, - sha3_256, - sha3_384, - sha3_512, - keccak_224, - keccak_256, - keccak_384, - keccak_512, - shake128, - shake256, -} from '@noble/hashes/sha3'; -const h5a = sha3_256('abc'); -const h5b = sha3_256 - .create() - .update(Uint8Array.from([1, 2, 3])) - .digest(); -const h6a = keccak_256('abc'); -const h7a = shake128('abc', { dkLen: 512 }); -const h7b = shake256('abc', { dkLen: 512 }); -``` - -See [FIPS PUB 202](https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.202.pdf), -[Website](https://keccak.team/keccak.html). - -Check out [the differences between SHA-3 and Keccak](https://crypto.stackexchange.com/questions/15727/what-are-the-key-differences-between-the-draft-sha-3-standard-and-the-keccak-sub) - -##### SHA3 Addons (cSHAKE, KMAC, TupleHash, ParallelHash, KangarooTwelve, MarsupilamiFourteen) - -```typescript -import { - cshake128, - cshake256, - kmac128, - kmac256, - k12, - m14, - tuplehash128, - tuplehash256, - parallelhash128, - parallelhash256, - keccakprg, -} from '@noble/hashes/sha3-addons'; -const h7c = cshake128('abc', { personalization: 'def' }); -const h7d = cshake256('abc', { personalization: 'def' }); -const h7e = kmac128('key', 'message'); -const h7f = kmac256('key', 'message'); -const h7h = k12('abc'); -const h7g = m14('abc'); -const h7i = tuplehash128(['ab', 'c']); // tuplehash(['ab', 'c']) !== tuplehash(['a', 'bc']) !== tuplehash(['abc']) -// Same as k12/blake3, but without reduced number of rounds. Doesn't speedup anything due lack of SIMD and threading, -// added for compatibility. -const h7j = parallelhash128('abc', { blockLen: 8 }); -// pseudo-random generator, first argument is capacity. XKCP recommends 254 bits capacity for 128-bit security strength. -// * with a capacity of 254 bits. -const p = keccakprg(254); -p.feed('test'); -const rand1b = p.fetch(1); -``` - -- Full [NIST SP 800-185](https://nvlpubs.nist.gov/nistpubs/SpecialPublications/NIST.SP.800-185.pdf): - cSHAKE, KMAC, TupleHash, ParallelHash + XOF variants -- 🦘 K12 ([KangarooTwelve Paper](https://keccak.team/files/KangarooTwelve.pdf), - [RFC Draft](https://www.ietf.org/archive/id/draft-irtf-cfrg-kangarootwelve-06.txt)) - and M14 aka MarsupilamiFourteen are basically parallel versions of Keccak with - reduced number of rounds (same as Blake3 and ParallelHash). -- [KeccakPRG](https://keccak.team/files/CSF-0.1.pdf): Pseudo-random generator based on Keccak - -##### RIPEMD-160 - -```typescript -import { ripemd160 } from '@noble/hashes/ripemd160'; -// function ripemd160(data: Uint8Array): Uint8Array; -const hash8 = ripemd160('abc'); -const hash9 = ripemd160() - .create() - .update(Uint8Array.from([1, 2, 3])) - .digest(); -``` - -See [RFC 2286](https://datatracker.ietf.org/doc/html/rfc2286), -[Website](https://homes.esat.kuleuven.be/~bosselae/ripemd160.html) - -##### BLAKE2b, BLAKE2s - -```typescript -import { blake2b } from '@noble/hashes/blake2b'; -import { blake2s } from '@noble/hashes/blake2s'; -const h10a = blake2s('abc'); -const b2params = { key: new Uint8Array([1]), personalization: t, salt: t, dkLen: 32 }; -const h10b = blake2s('abc', b2params); -const h10c = blake2s - .create(b2params) - .update(Uint8Array.from([1, 2, 3])) - .digest(); -``` - -See [RFC 7693](https://datatracker.ietf.org/doc/html/rfc7693), [Website](https://www.blake2.net). - -##### BLAKE3 - -```typescript -import { blake3 } from '@noble/hashes/blake3'; -// All params are optional -const h11 = blake3('abc', { dkLen: 256, key: 'def', context: 'fji' }); -``` - -##### SHA1 (legacy) - -SHA1 was cryptographically broken, however, it was not broken for cases like HMAC. - -See [RFC4226 B.2](https://datatracker.ietf.org/doc/html/rfc4226#appendix-B.2). - -Don't use it for a new protocol. - -```typescript -import { sha1 } from '@noble/hashes/sha1'; -const h12 = sha1('def'); -``` - -##### HMAC - -```typescript -import { hmac } from '@noble/hashes/hmac'; -import { sha256 } from '@noble/hashes/sha256'; -const mac1 = hmac(sha256, 'key', 'message'); -const mac2 = hmac.create(sha256, Uint8Array.from([1, 2, 3])).update(Uint8Array.from([4, 5, 6])).digest(); -``` - -Matches [RFC 2104](https://datatracker.ietf.org/doc/html/rfc2104). - -##### HKDF - -```typescript -import { hkdf } from '@noble/hashes/hkdf'; -import { sha256 } from '@noble/hashes/sha256'; -import { randomBytes } from '@noble/hashes/utils'; -const inputKey = randomBytes(32); -const salt = randomBytes(32); -const info = 'abc'; -const dkLen = 32; -const hk1 = hkdf(sha256, inputKey, salt, info, dkLen); - -// == same as -import * as hkdf from '@noble/hashes/hkdf'; -import { sha256 } from '@noble/hashes/sha256'; -const prk = hkdf.extract(sha256, inputKey, salt); -const hk2 = hkdf.expand(sha256, prk, info, dkLen); -``` - -Matches [RFC 5869](https://datatracker.ietf.org/doc/html/rfc5869). - -##### PBKDF2 - -```typescript -import { pbkdf2, pbkdf2Async } from '@noble/hashes/pbkdf2'; -import { sha256 } from '@noble/hashes/sha256'; -const pbkey1 = pbkdf2(sha256, 'password', 'salt', { c: 32, dkLen: 32 }); -const pbkey2 = await pbkdf2Async(sha256, 'password', 'salt', { c: 32, dkLen: 32 }); -const pbkey3 = await pbkdf2Async(sha256, Uint8Array.from([1, 2, 3]), Uint8Array.from([4, 5, 6]), { - c: 32, - dkLen: 32, -}); -``` - -Matches [RFC 2898](https://datatracker.ietf.org/doc/html/rfc2898). - -##### Scrypt - -```typescript -import { scrypt, scryptAsync } from '@noble/hashes/scrypt'; -const scr1 = scrypt('password', 'salt', { N: 2 ** 16, r: 8, p: 1, dkLen: 32 }); -const scr2 = await scryptAsync('password', 'salt', { N: 2 ** 16, r: 8, p: 1, dkLen: 32 }); -const scr3 = await scryptAsync(Uint8Array.from([1, 2, 3]), Uint8Array.from([4, 5, 6]), { - N: 2 ** 22, - r: 8, - p: 1, - dkLen: 32, - onProgress(percentage) { - console.log('progress', percentage); - }, - maxmem: 2 ** 32 + 128 * 8 * 1, // N * r * p * 128 + (128*r*p) -}); -``` - -Conforms to [RFC 7914](https://datatracker.ietf.org/doc/html/rfc7914), -[Website](https://www.tarsnap.com/scrypt.html) - -- `N, r, p` are work factors. To understand them, see [the blog post](https://blog.filippo.io/the-scrypt-parameters/). -- `dkLen` is the length of output bytes -- It is common to use N from `2**10` to `2**22` and `{r: 8, p: 1, dkLen: 32}` -- `onProgress` can be used with async version of the function to report progress to a user. - -Memory usage of scrypt is calculated with the formula `N * r * p * 128 + (128 * r * p)`, -which means `{N: 2 ** 22, r: 8, p: 1}` will use 4GB + 1KB of memory. To prevent -DoS, we limit scrypt to `1GB + 1KB` of RAM used, which corresponds to -`{N: 2 ** 20, r: 8, p: 1}`. If you want to use higher values, increase -`maxmem` using the formula above. - -_Note:_ noble supports `2**22` (4GB RAM) which is the highest amount amongst JS -libs. Many other implementations don't support it. We cannot support `2**23`, -because there is a limitation in JS engines that makes allocating -arrays bigger than 4GB impossible, but we're looking into other possible solutions. - -##### Argon2 - -Experimental Argon2 RFC 9106 implementation. It may be removed at any time. - -```ts -import { argon2d, argon2i, argon2id } from '@noble/hashes/argon2'; -const result = argon2id('password', 'salt', { t: 2, m: 65536, p: 1 }); -``` - -##### ESKDF - -A tiny stretched KDF for various applications like AES key-gen. Takes >= 2 seconds to execute. - -Takes following params: - -- `username` - username, email, or identifier, min: 8 characters, should have enough entropy -- `password` - min: 8 characters, should have enough entropy - -Produces ESKDF instance that has `deriveChildKey(protocol, accountId[, options])` function. - -- `protocol` - 3-15 character protocol name -- `accountId` - numeric identifier of account -- `options` - `keyLength: 32` with specified key length (default is 32), - or `modulus: 2n ** 221n - 17n` with specified modulus. It will fetch modulus + 64 bits of - data, execute modular division. The result will have negligible bias as per FIPS 186 B.4.1. - Can be used to generate, for example, elliptic curve keys. - -Takes username and password, then takes protocol name and account id. - -```typescript -import { eskdf } from '@noble/hashes/eskdf'; -const kdf = await eskdf('example@university', 'beginning-new-example'); -console.log(kdf.fingerprint); -const key1 = kdf.deriveChildKey('aes', 0); -const key2 = kdf.deriveChildKey('aes', 0, { keyLength: 16 }); -const ecc1 = kdf.deriveChildKey('ecc', 0, { modulus: 2n ** 252n - 27742317777372353535851937790883648493n }) -kdf.expire(); -``` - -##### utils - -```typescript -import { bytesToHex as toHex, randomBytes } from '@noble/hashes/utils'; -console.log(toHex(randomBytes(32))); -``` - -- `bytesToHex` will convert `Uint8Array` to a hex string -- `randomBytes(bytes)` will produce cryptographically secure random `Uint8Array` of length `bytes` - -## Security - -Noble is production-ready. - -1. The library has been audited in Jan 2022 by an independent security firm - cure53: [PDF](https://cure53.de/pentest-report_hashing-libs.pdf). - No vulnerabilities have been found. The audit has been funded by - [Ethereum Foundation](https://ethereum.org/en/) with help of [Nomic Labs](https://nomiclabs.io). - Modules `blake3`, `sha3-addons`, `sha1` and `argon2` have not been audited. - See [changes since audit](https://github.com/paulmillr/noble-hashes/compare/1.0.0..main). -2. The library has been fuzzed by [Guido Vranken's cryptofuzz](https://github.com/guidovranken/cryptofuzz). - You can run the fuzzer by yourself to check it. -3. [Timing attack](https://en.wikipedia.org/wiki/Timing_attack) considerations: - _JIT-compiler_ and _Garbage Collector_ make "constant time" extremely hard to - achieve in a scripting language. Which means _any other JS library can't have constant-timeness_. - Even statically typed Rust, a language without GC, - [makes it harder to achieve constant-time](https://www.chosenplaintext.ca/open-source/rust-timing-shield/security) - for some cases. If your goal is absolute security, don't use any JS lib — including - bindings to native ones. Use low-level libraries & languages. Nonetheless we're - targetting algorithmic constant time. -4. Memory dump considerations: the library shares state buffers between hash - function calls. The buffers are zeroed-out after each call. However, if an attacker - can read application memory, you are doomed in any case: - - At some point, input will be a string and strings are immutable in JS: - there is no way to overwrite them with zeros. For example: deriving - key from `scrypt(password, salt)` where password and salt are strings - - Input from a file will stay in file buffers - - Input / output will be re-used multiple times in application which means - it could stay in memory - - `await anything()` will always write all internal variables (including numbers) - to memory. With async functions / Promises there are no guarantees when the code - chunk would be executed. Which means attacker can have plenty of time to read data from memory - - There is no way to guarantee anything about zeroing sensitive data without - complex tests-suite which will dump process memory and verify that there is - no sensitive data left. For JS it means testing all browsers (incl. mobile), - which is complex. And of course it will be useless without using the same - test-suite in the actual application that consumes the library - -We consider infrastructure attacks like rogue NPM modules very important; that's -why it's crucial to minimize the amount of 3rd-party dependencies & native bindings. -If your app uses 500 dependencies, any dep could get hacked and you'll be downloading -malware with every `npm install`. Our goal is to minimize this attack vector. - -## Speed - -Benchmarks measured on Apple M1 with macOS 12. -Note that PBKDF2 and Scrypt are tested with extremely high work factor. -To run benchmarks, execute `npm run bench:install` and then `npm run bench` - -``` -SHA256 32B x 1,219,512 ops/sec @ 820ns/op ± 2.58% (min: 625ns, max: 4ms) -SHA384 32B x 512,032 ops/sec @ 1μs/op -SHA512 32B x 509,943 ops/sec @ 1μs/op -SHA3-256, keccak256, shake256 32B x 199,600 ops/sec @ 5μs/op -Kangaroo12 32B x 336,360 ops/sec @ 2μs/op -Marsupilami14 32B x 298,418 ops/sec @ 3μs/op -BLAKE2b 32B x 379,794 ops/sec @ 2μs/op -BLAKE2s 32B x 515,995 ops/sec @ 1μs/op ± 1.07% (min: 1μs, max: 4ms) -BLAKE3 32B x 588,235 ops/sec @ 1μs/op ± 1.36% (min: 1μs, max: 5ms) -RIPEMD160 32B x 1,140,250 ops/sec @ 877ns/op ± 3.12% (min: 708ns, max: 6ms) -HMAC-SHA256 32B x 377,358 ops/sec @ 2μs/op - -HKDF-SHA256 32B x 108,377 ops/sec @ 9μs/op -PBKDF2-HMAC-SHA256 262144 x 3 ops/sec @ 326ms/op -PBKDF2-HMAC-SHA512 262144 x 1 ops/sec @ 970ms/op -Scrypt r: 8, p: 1, n: 262144 x 1 ops/sec @ 616ms/op -``` - -Compare to native node.js implementation that uses C bindings instead of pure-js code: - -``` -SHA256 32B node x 1,302,083 ops/sec @ 768ns/op ± 10.54% (min: 416ns, max: 7ms) -SHA384 32B node x 975,609 ops/sec @ 1μs/op ± 11.32% (min: 625ns, max: 8ms) -SHA512 32B node x 983,284 ops/sec @ 1μs/op ± 11.24% (min: 625ns, max: 8ms) -SHA3-256 32B node x 910,746 ops/sec @ 1μs/op ± 12.19% (min: 666ns, max: 10ms) -keccak, k12, m14 are not implemented -BLAKE2b 32B node x 967,117 ops/sec @ 1μs/op ± 11.26% (min: 625ns, max: 9ms) -BLAKE2s 32B node x 1,055,966 ops/sec @ 947ns/op ± 11.07% (min: 583ns, max: 7ms) -BLAKE3 is not implemented -RIPEMD160 32B node x 1,002,004 ops/sec @ 998ns/op ± 10.66% (min: 625ns, max: 7ms) -HMAC-SHA256 32B node x 919,963 ops/sec @ 1μs/op ± 6.13% (min: 833ns, max: 5ms) -HKDF-SHA256 32 node x 369,276 ops/sec @ 2μs/op ± 13.59% (min: 1μs, max: 9ms) -PBKDF2-HMAC-SHA256 262144 node x 25 ops/sec @ 39ms/op -PBKDF2-HMAC-SHA512 262144 node x 7 ops/sec @ 132ms/op -Scrypt r: 8, p: 1, n: 262144 node x 1 ops/sec @ 523ms/op -``` - -It is possible to [make this library 4x+ faster](./benchmark/README.md) by -_doing code generation of full loop unrolls_. We've decided against it. Reasons: - -- the library must be auditable, with minimum amount of code, and zero dependencies -- most method invocations with the lib are going to be something like hashing 32b to 64kb of data -- hashing big inputs is 10x faster with low-level languages, which means you should probably pick 'em instead - -The current performance is good enough when compared to other projects; SHA256 takes only 900 nanoseconds to run. - -## Contributing & testing - -1. Clone the repository -2. `npm install` to install build dependencies like TypeScript -3. `npm run build` to compile TypeScript code -4. `npm run test` will execute all main tests. See [our approach to testing](./test/README.md) -5. `npm run test:dos` will test against DoS; by measuring function complexity. **Takes ~20 minutes** -6. `npm run test:big` will execute hashing on 4GB inputs, - scrypt with 1024 different `N, r, p` combinations, etc. **Takes several hours**. Using 8-32+ core CPU helps. - -## License - -The MIT License (MIT) - -Copyright (c) 2022 Paul Miller [(https://paulmillr.com)](https://paulmillr.com) - -See LICENSE file. diff --git a/node_modules/@noble/hashes/_assert.d.ts b/node_modules/@noble/hashes/_assert.d.ts deleted file mode 100644 index 32a720bb..00000000 --- a/node_modules/@noble/hashes/_assert.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -declare function number(n: number): void; -declare function bool(b: boolean): void; -declare function bytes(b: Uint8Array | undefined, ...lengths: number[]): void; -type Hash = { - (data: Uint8Array): Uint8Array; - blockLen: number; - outputLen: number; - create: any; -}; -declare function hash(hash: Hash): void; -declare function exists(instance: any, checkFinished?: boolean): void; -declare function output(out: any, instance: any): void; -export { number, bool, bytes, hash, exists, output }; -declare const assert: { - number: typeof number; - bool: typeof bool; - bytes: typeof bytes; - hash: typeof hash; - exists: typeof exists; - output: typeof output; -}; -export default assert; diff --git a/node_modules/@noble/hashes/_assert.js b/node_modules/@noble/hashes/_assert.js deleted file mode 100644 index 920cdd99..00000000 --- a/node_modules/@noble/hashes/_assert.js +++ /dev/null @@ -1,45 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.output = exports.exists = exports.hash = exports.bytes = exports.bool = exports.number = void 0; -function number(n) { - if (!Number.isSafeInteger(n) || n < 0) - throw new Error(`Wrong positive integer: ${n}`); -} -exports.number = number; -function bool(b) { - if (typeof b !== 'boolean') - throw new Error(`Expected boolean, not ${b}`); -} -exports.bool = bool; -function bytes(b, ...lengths) { - if (!(b instanceof Uint8Array)) - throw new Error('Expected Uint8Array'); - if (lengths.length > 0 && !lengths.includes(b.length)) - throw new Error(`Expected Uint8Array of length ${lengths}, not of length=${b.length}`); -} -exports.bytes = bytes; -function hash(hash) { - if (typeof hash !== 'function' || typeof hash.create !== 'function') - throw new Error('Hash should be wrapped by utils.wrapConstructor'); - number(hash.outputLen); - number(hash.blockLen); -} -exports.hash = hash; -function exists(instance, checkFinished = true) { - if (instance.destroyed) - throw new Error('Hash instance has been destroyed'); - if (checkFinished && instance.finished) - throw new Error('Hash#digest() has already been called'); -} -exports.exists = exists; -function output(out, instance) { - bytes(out); - const min = instance.outputLen; - if (out.length < min) { - throw new Error(`digestInto() expects output buffer of length at least ${min}`); - } -} -exports.output = output; -const assert = { number, bool, bytes, hash, exists, output }; -exports.default = assert; -//# sourceMappingURL=_assert.js.map \ No newline at end of file diff --git a/node_modules/@noble/hashes/_assert.js.map b/node_modules/@noble/hashes/_assert.js.map deleted file mode 100644 index f3cc5159..00000000 --- a/node_modules/@noble/hashes/_assert.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"_assert.js","sourceRoot":"","sources":["src/_assert.ts"],"names":[],"mappings":";;;AAAA,SAAS,MAAM,CAAC,CAAS;IACvB,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,EAAE,CAAC,CAAC;AACzF,CAAC;AAqCQ,wBAAM;AAnCf,SAAS,IAAI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AAE;QACpB,MAAM,IAAI,KAAK,CAAC,yDAAyD,GAAG,EAAE,CAAC,CAAC;KACjF;AACH,CAAC;AAE2C,wBAAM;AAElD,MAAM,MAAM,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;AAC7D,kBAAe,MAAM,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/hashes/_blake2.d.ts b/node_modules/@noble/hashes/_blake2.d.ts deleted file mode 100644 index 352b978a..00000000 --- a/node_modules/@noble/hashes/_blake2.d.ts +++ /dev/null @@ -1,27 +0,0 @@ -import { Hash, Input } from './utils.js'; -export declare const SIGMA: Uint8Array; -export type BlakeOpts = { - dkLen?: number; - key?: Input; - salt?: Input; - personalization?: Input; -}; -export declare abstract class BLAKE2> extends Hash { - readonly blockLen: number; - outputLen: number; - protected abstract compress(msg: Uint32Array, offset: number, isLast: boolean): void; - protected abstract get(): number[]; - protected abstract set(...args: number[]): void; - abstract destroy(): void; - protected buffer: Uint8Array; - protected buffer32: Uint32Array; - protected length: number; - protected pos: number; - protected finished: boolean; - protected destroyed: boolean; - constructor(blockLen: number, outputLen: number, opts: BlakeOpts | undefined, keyLen: number, saltLen: number, persLen: number); - update(data: Input): this; - digestInto(out: Uint8Array): void; - digest(): Uint8Array; - _cloneInto(to?: T): T; -} diff --git a/node_modules/@noble/hashes/_blake2.js b/node_modules/@noble/hashes/_blake2.js deleted file mode 100644 index 9a5a45d8..00000000 --- a/node_modules/@noble/hashes/_blake2.js +++ /dev/null @@ -1,112 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.BLAKE2 = exports.SIGMA = void 0; -const _assert_js_1 = require("./_assert.js"); -const utils_js_1 = require("./utils.js"); -// Blake is based on ChaCha permutation. -// For BLAKE2b, the two extra permutations for rounds 10 and 11 are SIGMA[10..11] = SIGMA[0..1]. -// prettier-ignore -exports.SIGMA = new Uint8Array([ - 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, - 14, 10, 4, 8, 9, 15, 13, 6, 1, 12, 0, 2, 11, 7, 5, 3, - 11, 8, 12, 0, 5, 2, 15, 13, 10, 14, 3, 6, 7, 1, 9, 4, - 7, 9, 3, 1, 13, 12, 11, 14, 2, 6, 5, 10, 4, 0, 15, 8, - 9, 0, 5, 7, 2, 4, 10, 15, 14, 1, 11, 12, 6, 8, 3, 13, - 2, 12, 6, 10, 0, 11, 8, 3, 4, 13, 7, 5, 15, 14, 1, 9, - 12, 5, 1, 15, 14, 13, 4, 10, 0, 7, 6, 3, 9, 2, 8, 11, - 13, 11, 7, 14, 12, 1, 3, 9, 5, 0, 15, 4, 8, 6, 2, 10, - 6, 15, 14, 9, 11, 3, 0, 8, 12, 2, 13, 7, 1, 4, 10, 5, - 10, 2, 8, 4, 7, 6, 1, 5, 15, 11, 9, 14, 3, 12, 13, 0, - 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, - 14, 10, 4, 8, 9, 15, 13, 6, 1, 12, 0, 2, 11, 7, 5, 3, -]); -class BLAKE2 extends utils_js_1.Hash { - constructor(blockLen, outputLen, opts = {}, keyLen, saltLen, persLen) { - super(); - this.blockLen = blockLen; - this.outputLen = outputLen; - this.length = 0; - this.pos = 0; - this.finished = false; - this.destroyed = false; - (0, _assert_js_1.number)(blockLen); - (0, _assert_js_1.number)(outputLen); - (0, _assert_js_1.number)(keyLen); - if (outputLen < 0 || outputLen > keyLen) - throw new Error('outputLen bigger than keyLen'); - if (opts.key !== undefined && (opts.key.length < 1 || opts.key.length > keyLen)) - throw new Error(`key must be up 1..${keyLen} byte long or undefined`); - if (opts.salt !== undefined && opts.salt.length !== saltLen) - throw new Error(`salt must be ${saltLen} byte long or undefined`); - if (opts.personalization !== undefined && opts.personalization.length !== persLen) - throw new Error(`personalization must be ${persLen} byte long or undefined`); - this.buffer32 = (0, utils_js_1.u32)((this.buffer = new Uint8Array(blockLen))); - } - update(data) { - (0, _assert_js_1.exists)(this); - // Main difference with other hashes: there is flag for last block, - // so we cannot process current block before we know that there - // is the next one. This significantly complicates logic and reduces ability - // to do zero-copy processing - const { blockLen, buffer, buffer32 } = this; - data = (0, utils_js_1.toBytes)(data); - const len = data.length; - const offset = data.byteOffset; - const buf = data.buffer; - for (let pos = 0; pos < len;) { - // If buffer is full and we still have input (don't process last block, same as blake2s) - if (this.pos === blockLen) { - this.compress(buffer32, 0, false); - this.pos = 0; - } - const take = Math.min(blockLen - this.pos, len - pos); - const dataOffset = offset + pos; - // full block && aligned to 4 bytes && not last in input - if (take === blockLen && !(dataOffset % 4) && pos + take < len) { - const data32 = new Uint32Array(buf, dataOffset, Math.floor((len - pos) / 4)); - for (let pos32 = 0; pos + blockLen < len; pos32 += buffer32.length, pos += blockLen) { - this.length += blockLen; - this.compress(data32, pos32, false); - } - continue; - } - buffer.set(data.subarray(pos, pos + take), this.pos); - this.pos += take; - this.length += take; - pos += take; - } - return this; - } - digestInto(out) { - (0, _assert_js_1.exists)(this); - (0, _assert_js_1.output)(out, this); - const { pos, buffer32 } = this; - this.finished = true; - // Padding - this.buffer.subarray(pos).fill(0); - this.compress(buffer32, 0, true); - const out32 = (0, utils_js_1.u32)(out); - this.get().forEach((v, i) => (out32[i] = v)); - } - digest() { - const { buffer, outputLen } = this; - this.digestInto(buffer); - const res = buffer.slice(0, outputLen); - this.destroy(); - return res; - } - _cloneInto(to) { - const { buffer, length, finished, destroyed, outputLen, pos } = this; - to || (to = new this.constructor({ dkLen: outputLen })); - to.set(...this.get()); - to.length = length; - to.finished = finished; - to.destroyed = destroyed; - to.outputLen = outputLen; - to.buffer.set(buffer); - to.pos = pos; - return to; - } -} -exports.BLAKE2 = BLAKE2; -//# sourceMappingURL=_blake2.js.map \ No newline at end of file diff --git a/node_modules/@noble/hashes/_blake2.js.map b/node_modules/@noble/hashes/_blake2.js.map deleted file mode 100644 index 85cf0b6d..00000000 --- a/node_modules/@noble/hashes/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,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC;QACxB,MAAM,GAAG,GAAG,MAAM,CAAC,KAAK,CAAC,CAAC,EAAE,SAAS,CAAC,CAAC;QACvC,IAAI,CAAC,OAAO,EAAE,CAAC;QACf,OAAO,GAAG,CAAC;IACb,CAAC;IACD,UAAU,CAAC,EAAM;QACf,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;QACrE,EAAE,KAAF,EAAE,GAAK,IAAK,IAAI,CAAC,WAAmB,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,CAAM,EAAC;QAChE,EAAE,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;QACtB,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC;QACnB,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACvB,EAAE,CAAC,SAAS,GAAG,SAAS,CAAC;QACzB,EAAE,CAAC,SAAS,GAAG,SAAS,CAAC;QACzB,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QACtB,EAAE,CAAC,GAAG,GAAG,GAAG,CAAC;QACb,OAAO,EAAE,CAAC;IACZ,CAAC;CACF;AAlGD,wBAkGC"} \ No newline at end of file diff --git a/node_modules/@noble/hashes/_sha2.d.ts b/node_modules/@noble/hashes/_sha2.d.ts deleted file mode 100644 index 883788fd..00000000 --- a/node_modules/@noble/hashes/_sha2.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { Hash, Input } from './utils.js'; -export declare abstract class SHA2> extends Hash { - readonly blockLen: number; - outputLen: number; - readonly padOffset: number; - readonly isLE: boolean; - protected abstract process(buf: DataView, offset: number): void; - protected abstract get(): number[]; - protected abstract set(...args: number[]): void; - abstract destroy(): void; - protected abstract roundClean(): void; - protected buffer: Uint8Array; - protected view: DataView; - protected finished: boolean; - protected length: number; - protected pos: number; - protected destroyed: boolean; - constructor(blockLen: number, outputLen: number, padOffset: number, isLE: boolean); - update(data: Input): this; - digestInto(out: Uint8Array): void; - digest(): Uint8Array; - _cloneInto(to?: T): T; -} diff --git a/node_modules/@noble/hashes/_sha2.js b/node_modules/@noble/hashes/_sha2.js deleted file mode 100644 index 7a45349e..00000000 --- a/node_modules/@noble/hashes/_sha2.js +++ /dev/null @@ -1,118 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SHA2 = void 0; -const _assert_js_1 = require("./_assert.js"); -const utils_js_1 = require("./utils.js"); -// Polyfill for Safari 14 -function setBigUint64(view, byteOffset, value, isLE) { - if (typeof view.setBigUint64 === 'function') - return view.setBigUint64(byteOffset, value, isLE); - const _32n = BigInt(32); - const _u32_max = BigInt(0xffffffff); - const wh = Number((value >> _32n) & _u32_max); - const wl = Number(value & _u32_max); - const h = isLE ? 4 : 0; - const l = isLE ? 0 : 4; - view.setUint32(byteOffset + h, wh, isLE); - view.setUint32(byteOffset + l, wl, isLE); -} -// Base SHA2 class (RFC 6234) -class SHA2 extends utils_js_1.Hash { - constructor(blockLen, outputLen, padOffset, isLE) { - super(); - this.blockLen = blockLen; - this.outputLen = outputLen; - this.padOffset = padOffset; - this.isLE = isLE; - this.finished = false; - this.length = 0; - this.pos = 0; - this.destroyed = false; - this.buffer = new Uint8Array(blockLen); - this.view = (0, utils_js_1.createView)(this.buffer); - } - update(data) { - (0, _assert_js_1.exists)(this); - const { view, buffer, blockLen } = this; - data = (0, utils_js_1.toBytes)(data); - const len = data.length; - for (let pos = 0; pos < len;) { - const take = Math.min(blockLen - this.pos, len - pos); - // Fast path: we have at least one block in input, cast it to view and process - if (take === blockLen) { - const dataView = (0, utils_js_1.createView)(data); - for (; blockLen <= len - pos; pos += blockLen) - this.process(dataView, pos); - continue; - } - buffer.set(data.subarray(pos, pos + take), this.pos); - this.pos += take; - pos += take; - if (this.pos === blockLen) { - this.process(view, 0); - this.pos = 0; - } - } - this.length += data.length; - this.roundClean(); - return this; - } - digestInto(out) { - (0, _assert_js_1.exists)(this); - (0, _assert_js_1.output)(out, this); - this.finished = true; - // Padding - // We can avoid allocation of buffer for padding completely if it - // was previously not allocated here. But it won't change performance. - const { buffer, view, blockLen, isLE } = this; - let { pos } = this; - // append the bit '1' to the message - buffer[pos++] = 0b10000000; - this.buffer.subarray(pos).fill(0); - // we have less than padOffset left in buffer, so we cannot put length in current block, need process it and pad again - if (this.padOffset > blockLen - pos) { - this.process(view, 0); - pos = 0; - } - // Pad until full block byte with zeros - for (let i = pos; i < blockLen; i++) - buffer[i] = 0; - // Note: sha512 requires length to be 128bit integer, but length in JS will overflow before that - // You need to write around 2 exabytes (u64_max / 8 / (1024**6)) for this to happen. - // So we just write lowest 64 bits of that value. - setBigUint64(view, blockLen - 8, BigInt(this.length * 8), isLE); - this.process(view, 0); - const oview = (0, utils_js_1.createView)(out); - const len = this.outputLen; - // NOTE: we do division by 4 later, which should be fused in single op with modulo by JIT - if (len % 4) - throw new Error('_sha2: outputLen should be aligned to 32bit'); - const outLen = len / 4; - const state = this.get(); - if (outLen > state.length) - throw new Error('_sha2: outputLen bigger than state'); - for (let i = 0; i < outLen; i++) - oview.setUint32(4 * i, state[i], isLE); - } - digest() { - const { buffer, outputLen } = this; - this.digestInto(buffer); - const res = buffer.slice(0, outputLen); - this.destroy(); - return res; - } - _cloneInto(to) { - to || (to = new this.constructor()); - to.set(...this.get()); - const { blockLen, buffer, length, finished, destroyed, pos } = this; - to.length = length; - to.pos = pos; - to.finished = finished; - to.destroyed = destroyed; - if (length % blockLen) - to.buffer.set(buffer); - return to; - } -} -exports.SHA2 = SHA2; -//# sourceMappingURL=_sha2.js.map \ No newline at end of file diff --git a/node_modules/@noble/hashes/_sha2.js.map b/node_modules/@noble/hashes/_sha2.js.map deleted file mode 100644 index 9c9c8eb3..00000000 --- a/node_modules/@noble/hashes/_sha2.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"_sha2.js","sourceRoot":"","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AC,SAAS,GAAG,SAAS,CAAC;QACzB,IAAI,MAAM,GAAG,QAAQ;YAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QAC7C,OAAO,EAAE,CAAC;IACZ,CAAC;CACF;AApGD,oBAoGC"} \ No newline at end of file diff --git a/node_modules/@noble/hashes/_u64.d.ts b/node_modules/@noble/hashes/_u64.d.ts deleted file mode 100644 index 59fd1c28..00000000 --- a/node_modules/@noble/hashes/_u64.d.ts +++ /dev/null @@ -1,54 +0,0 @@ -declare function fromBig(n: bigint, le?: boolean): { - h: number; - l: number; -}; -declare function split(lst: bigint[], le?: boolean): Uint32Array[]; -declare const toBig: (h: number, l: number) => bigint; -declare const shrSH: (h: number, _l: number, s: number) => number; -declare const shrSL: (h: number, l: number, s: number) => number; -declare const rotrSH: (h: number, l: number, s: number) => number; -declare const rotrSL: (h: number, l: number, s: number) => number; -declare const rotrBH: (h: number, l: number, s: number) => number; -declare const rotrBL: (h: number, l: number, s: number) => number; -declare const rotr32H: (_h: number, l: number) => number; -declare const rotr32L: (h: number, _l: number) => number; -declare const rotlSH: (h: number, l: number, s: number) => number; -declare const rotlSL: (h: number, l: number, s: number) => number; -declare const rotlBH: (h: number, l: number, s: number) => number; -declare const rotlBL: (h: number, l: number, s: number) => number; -declare function add(Ah: number, Al: number, Bh: number, Bl: number): { - h: number; - l: number; -}; -declare const add3L: (Al: number, Bl: number, Cl: number) => number; -declare const add3H: (low: number, Ah: number, Bh: number, Ch: number) => number; -declare const add4L: (Al: number, Bl: number, Cl: number, Dl: number) => number; -declare const add4H: (low: number, Ah: number, Bh: number, Ch: number, Dh: number) => number; -declare const add5L: (Al: number, Bl: number, Cl: number, Dl: number, El: number) => number; -declare const add5H: (low: number, Ah: number, Bh: number, Ch: number, Dh: number, Eh: number) => number; -export { fromBig, split, toBig, shrSH, shrSL, rotrSH, rotrSL, rotrBH, rotrBL, rotr32H, rotr32L, rotlSH, rotlSL, rotlBH, rotlBL, add, add3L, add3H, add4L, add4H, add5H, add5L, }; -declare const u64: { - fromBig: typeof fromBig; - split: typeof split; - toBig: (h: number, l: number) => bigint; - shrSH: (h: number, _l: number, s: number) => number; - shrSL: (h: number, l: number, s: number) => number; - rotrSH: (h: number, l: number, s: number) => number; - rotrSL: (h: number, l: number, s: number) => number; - rotrBH: (h: number, l: number, s: number) => number; - rotrBL: (h: number, l: number, s: number) => number; - rotr32H: (_h: number, l: number) => number; - rotr32L: (h: number, _l: number) => number; - rotlSH: (h: number, l: number, s: number) => number; - rotlSL: (h: number, l: number, s: number) => number; - rotlBH: (h: number, l: number, s: number) => number; - rotlBL: (h: number, l: number, s: number) => number; - add: typeof add; - add3L: (Al: number, Bl: number, Cl: number) => number; - add3H: (low: number, Ah: number, Bh: number, Ch: number) => number; - add4L: (Al: number, Bl: number, Cl: number, Dl: number) => number; - add4H: (low: number, Ah: number, Bh: number, Ch: number, Dh: number) => number; - add5H: (low: number, Ah: number, Bh: number, Ch: number, Dh: number, Eh: number) => number; - add5L: (Al: number, Bl: number, Cl: number, Dl: number, El: number) => number; -}; -export default u64; diff --git a/node_modules/@noble/hashes/_u64.js b/node_modules/@noble/hashes/_u64.js deleted file mode 100644 index c5080f0e..00000000 --- a/node_modules/@noble/hashes/_u64.js +++ /dev/null @@ -1,85 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.add5L = exports.add5H = exports.add4H = exports.add4L = exports.add3H = exports.add3L = exports.add = exports.rotlBL = exports.rotlBH = exports.rotlSL = exports.rotlSH = exports.rotr32L = exports.rotr32H = exports.rotrBL = exports.rotrBH = exports.rotrSL = exports.rotrSH = exports.shrSL = exports.shrSH = exports.toBig = exports.split = exports.fromBig = void 0; -const U32_MASK64 = /* @__PURE__ */ BigInt(2 ** 32 - 1); -const _32n = /* @__PURE__ */ BigInt(32); -// We are not using BigUint64Array, because they are extremely slow as per 2022 -function fromBig(n, le = false) { - if (le) - return { h: Number(n & U32_MASK64), l: Number((n >> _32n) & U32_MASK64) }; - return { h: Number((n >> _32n) & U32_MASK64) | 0, l: Number(n & U32_MASK64) | 0 }; -} -exports.fromBig = fromBig; -function split(lst, le = false) { - let Ah = new Uint32Array(lst.length); - let Al = new Uint32Array(lst.length); - for (let i = 0; i < lst.length; i++) { - const { h, l } = fromBig(lst[i], le); - [Ah[i], Al[i]] = [h, l]; - } - return [Ah, Al]; -} -exports.split = split; -const toBig = (h, l) => (BigInt(h >>> 0) << _32n) | BigInt(l >>> 0); -exports.toBig = toBig; -// for Shift in [0, 32) -const shrSH = (h, _l, s) => h >>> s; -exports.shrSH = shrSH; -const shrSL = (h, l, s) => (h << (32 - s)) | (l >>> s); -exports.shrSL = shrSL; -// Right rotate for Shift in [1, 32) -const rotrSH = (h, l, s) => (h >>> s) | (l << (32 - s)); -exports.rotrSH = rotrSH; -const rotrSL = (h, l, s) => (h << (32 - s)) | (l >>> s); -exports.rotrSL = rotrSL; -// Right rotate for Shift in (32, 64), NOTE: 32 is special case. -const rotrBH = (h, l, s) => (h << (64 - s)) | (l >>> (s - 32)); -exports.rotrBH = rotrBH; -const rotrBL = (h, l, s) => (h >>> (s - 32)) | (l << (64 - s)); -exports.rotrBL = rotrBL; -// Right rotate for shift===32 (just swaps l&h) -const rotr32H = (_h, l) => l; -exports.rotr32H = rotr32H; -const rotr32L = (h, _l) => h; -exports.rotr32L = rotr32L; -// Left rotate for Shift in [1, 32) -const rotlSH = (h, l, s) => (h << s) | (l >>> (32 - s)); -exports.rotlSH = rotlSH; -const rotlSL = (h, l, s) => (l << s) | (h >>> (32 - s)); -exports.rotlSL = rotlSL; -// Left rotate for Shift in (32, 64), NOTE: 32 is special case. -const rotlBH = (h, l, s) => (l << (s - 32)) | (h >>> (64 - s)); -exports.rotlBH = rotlBH; -const rotlBL = (h, l, s) => (h << (s - 32)) | (l >>> (64 - s)); -exports.rotlBL = rotlBL; -// JS uses 32-bit signed integers for bitwise operations which means we cannot -// simple take carry out of low bit sum by shift, we need to use division. -function add(Ah, Al, Bh, Bl) { - const l = (Al >>> 0) + (Bl >>> 0); - return { h: (Ah + Bh + ((l / 2 ** 32) | 0)) | 0, l: l | 0 }; -} -exports.add = add; -// Addition with more than 2 elements -const add3L = (Al, Bl, Cl) => (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0); -exports.add3L = add3L; -const add3H = (low, Ah, Bh, Ch) => (Ah + Bh + Ch + ((low / 2 ** 32) | 0)) | 0; -exports.add3H = add3H; -const add4L = (Al, Bl, Cl, Dl) => (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0) + (Dl >>> 0); -exports.add4L = add4L; -const add4H = (low, Ah, Bh, Ch, Dh) => (Ah + Bh + Ch + Dh + ((low / 2 ** 32) | 0)) | 0; -exports.add4H = add4H; -const add5L = (Al, Bl, Cl, Dl, El) => (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0) + (Dl >>> 0) + (El >>> 0); -exports.add5L = add5L; -const add5H = (low, Ah, Bh, Ch, Dh, Eh) => (Ah + Bh + Ch + Dh + Eh + ((low / 2 ** 32) | 0)) | 0; -exports.add5H = add5H; -// prettier-ignore -const u64 = { - fromBig, split, toBig, - shrSH, shrSL, - rotrSH, rotrSL, rotrBH, rotrBL, - rotr32H, rotr32L, - rotlSH, rotlSL, rotlBH, rotlBL, - add, add3L, add3H, add4L, add4H, add5H, add5L, -}; -exports.default = u64; -//# sourceMappingURL=_u64.js.map \ No newline at end of file diff --git a/node_modules/@noble/hashes/_u64.js.map b/node_modules/@noble/hashes/_u64.js.map deleted file mode 100644 index 6116a39a..00000000 --- a/node_modules/@noble/hashes/_u64.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"_u64.js","sourceRoot":"","sources":["src/_u64.ts"],"names":[],"mappings":";;;AAAA,MAAM,UAAU,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC;AACvD,MAAM,IAAI,GAAG,eAAe,CAAC,MAAM,CAAC,EAAE,CAAC,C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E,EAAU,EAAE,EAAE,CAC3E,CAAC,EAAE,KAAK,CAAC,CAAC,GAAG,CAAC,EAAE,KAAK,CAAC,CAAC,GAAG,CAAC,EAAE,KAAK,CAAC,CAAC,GAAG,CAAC,EAAE,KAAK,CAAC,CAAC,GAAG,CAAC,EAAE,KAAK,CAAC,CAAC,CAAC;AAWvB,sBAAK;AAV/C,MAAM,KAAK,GAAG,CAAC,GAAW,EAAE,EAAU,EAAE,EAAU,EAAE,EAAU,EAAE,EAAU,EAAE,EAAU,EAAE,EAAE,CACxF,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,EAAE,GAAG,CAAC,CAAC,GAAG,GAAG,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;AASpB,sBAAK;AAExC,kBAAkB;AAClB,MAAM,GAAG,GAAG;IACV,OAAO,EAAE,KAAK,EAAE,KAAK;IACrB,KAAK,EAAE,KAAK;IACZ,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;IAC9B,OAAO,EAAE,OAAO;IAChB,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;IAC9B,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK;CAC9C,CAAC;AACF,kBAAe,GAAG,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/hashes/argon2.d.ts b/node_modules/@noble/hashes/argon2.d.ts deleted file mode 100644 index 15b64865..00000000 --- a/node_modules/@noble/hashes/argon2.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { Input } from './utils.js'; -export type ArgonOpts = { - t: number; - m: number; - p: number; - version?: number; - key?: Input; - personalization?: Input; - dkLen?: number; - asyncTick?: number; - maxmem?: number; - onProgress?: (progress: number) => void; -}; -export declare const argon2d: (password: Input, salt: Input, opts: ArgonOpts) => Uint8Array; -export declare const argon2i: (password: Input, salt: Input, opts: ArgonOpts) => Uint8Array; -export declare const argon2id: (password: Input, salt: Input, opts: ArgonOpts) => Uint8Array; diff --git a/node_modules/@noble/hashes/argon2.js b/node_modules/@noble/hashes/argon2.js deleted file mode 100644 index 2754f8c6..00000000 --- a/node_modules/@noble/hashes/argon2.js +++ /dev/null @@ -1,303 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.argon2id = exports.argon2i = exports.argon2d = void 0; -const _assert_js_1 = require("./_assert.js"); -const utils_js_1 = require("./utils.js"); -const blake2b_js_1 = require("./blake2b.js"); -const _u64_js_1 = require("./_u64.js"); -const ARGON2_SYNC_POINTS = 4; -const toBytesOptional = (buf) => (buf !== undefined ? (0, utils_js_1.toBytes)(buf) : new Uint8Array([])); -function mul(a, b) { - const aL = a & 0xffff; - const aH = a >>> 16; - const bL = b & 0xffff; - const bH = b >>> 16; - const ll = Math.imul(aL, bL); - const hl = Math.imul(aH, bL); - const lh = Math.imul(aL, bH); - const hh = Math.imul(aH, bH); - const BUF = ((ll >>> 16) + (hl & 0xffff) + lh) | 0; - const h = ((hl >>> 16) + (BUF >>> 16) + hh) | 0; - return { h, l: (BUF << 16) | (ll & 0xffff) }; -} -function relPos(areaSize, relativePos) { - // areaSize - 1 - ((areaSize * ((relativePos ** 2) >>> 32)) >>> 32) - return areaSize - 1 - mul(areaSize, mul(relativePos, relativePos).h).h; -} -function mul2(a, b) { - // 2 * a * b (via shifts) - const { h, l } = mul(a, b); - return { h: ((h << 1) | (l >>> 31)) & 4294967295, l: (l << 1) & 4294967295 }; -} -function blamka(Ah, Al, Bh, Bl) { - const { h: Ch, l: Cl } = mul2(Al, Bl); - // A + B + (2 * A * B) - const Rll = (0, _u64_js_1.add3L)(Al, Bl, Cl); - return { h: (0, _u64_js_1.add3H)(Rll, Ah, Bh, Ch), l: Rll | 0 }; -} -// Temporary block buffer -const BUF = new Uint32Array(256); -function G(a, b, c, d) { - let Al = BUF[2 * a], Ah = BUF[2 * a + 1]; // prettier-ignore - let Bl = BUF[2 * b], Bh = BUF[2 * b + 1]; // prettier-ignore - let Cl = BUF[2 * c], Ch = BUF[2 * c + 1]; // prettier-ignore - let Dl = BUF[2 * d], Dh = BUF[2 * d + 1]; // prettier-ignore - ({ h: Ah, l: Al } = blamka(Ah, Al, Bh, Bl)); - ({ Dh, Dl } = { Dh: Dh ^ Ah, Dl: Dl ^ Al }); - ({ Dh, Dl } = { Dh: (0, _u64_js_1.rotr32H)(Dh, Dl), Dl: (0, _u64_js_1.rotr32L)(Dh, Dl) }); - ({ h: Ch, l: Cl } = blamka(Ch, Cl, Dh, Dl)); - ({ Bh, Bl } = { Bh: Bh ^ Ch, Bl: Bl ^ Cl }); - ({ Bh, Bl } = { Bh: (0, _u64_js_1.rotrSH)(Bh, Bl, 24), Bl: (0, _u64_js_1.rotrSL)(Bh, Bl, 24) }); - ({ h: Ah, l: Al } = blamka(Ah, Al, Bh, Bl)); - ({ Dh, Dl } = { Dh: Dh ^ Ah, Dl: Dl ^ Al }); - ({ Dh, Dl } = { Dh: (0, _u64_js_1.rotrSH)(Dh, Dl, 16), Dl: (0, _u64_js_1.rotrSL)(Dh, Dl, 16) }); - ({ h: Ch, l: Cl } = blamka(Ch, Cl, Dh, Dl)); - ({ Bh, Bl } = { Bh: Bh ^ Ch, Bl: Bl ^ Cl }); - ({ Bh, Bl } = { Bh: (0, _u64_js_1.rotrBH)(Bh, Bl, 63), Bl: (0, _u64_js_1.rotrBL)(Bh, Bl, 63) }); - (BUF[2 * a] = Al), (BUF[2 * a + 1] = Ah); - (BUF[2 * b] = Bl), (BUF[2 * b + 1] = Bh); - (BUF[2 * c] = Cl), (BUF[2 * c + 1] = Ch); - (BUF[2 * d] = Dl), (BUF[2 * d + 1] = Dh); -} -// prettier-ignore -function P(v00, v01, v02, v03, v04, v05, v06, v07, v08, v09, v10, v11, v12, v13, v14, v15) { - G(v00, v04, v08, v12); - G(v01, v05, v09, v13); - G(v02, v06, v10, v14); - G(v03, v07, v11, v15); - G(v00, v05, v10, v15); - G(v01, v06, v11, v12); - G(v02, v07, v08, v13); - G(v03, v04, v09, v14); -} -function block(x, xPos, yPos, outPos, needXor) { - for (let i = 0; i < 256; i++) - BUF[i] = x[xPos + i] ^ x[yPos + i]; - // columns - for (let i = 0; i < 128; i += 16) { - // prettier-ignore - P(i, i + 1, i + 2, i + 3, i + 4, i + 5, i + 6, i + 7, i + 8, i + 9, i + 10, i + 11, i + 12, i + 13, i + 14, i + 15); - } - // rows - for (let i = 0; i < 16; i += 2) { - // prettier-ignore - P(i, i + 1, i + 16, i + 17, i + 32, i + 33, i + 48, i + 49, i + 64, i + 65, i + 80, i + 81, i + 96, i + 97, i + 112, i + 113); - } - if (needXor) - for (let i = 0; i < 256; i++) - x[outPos + i] ^= BUF[i] ^ x[xPos + i] ^ x[yPos + i]; - else - for (let i = 0; i < 256; i++) - x[outPos + i] = BUF[i] ^ x[xPos + i] ^ x[yPos + i]; -} -// Variable-Length Hash Function H' -function Hp(A, dkLen) { - const A8 = (0, utils_js_1.u8)(A); - const T = new Uint32Array(1); - const T8 = (0, utils_js_1.u8)(T); - T[0] = dkLen; - // Fast path - if (dkLen <= 64) - return blake2b_js_1.blake2b.create({ dkLen }).update(T8).update(A8).digest(); - const out = new Uint8Array(dkLen); - let V = blake2b_js_1.blake2b.create({}).update(T8).update(A8).digest(); - let pos = 0; - // First block - out.set(V.subarray(0, 32)); - pos += 32; - // Rest blocks - for (; dkLen - pos > 64; pos += 32) - out.set((V = (0, blake2b_js_1.blake2b)(V)).subarray(0, 32), pos); - // Last block - out.set((0, blake2b_js_1.blake2b)(V, { dkLen: dkLen - pos }), pos); - return (0, utils_js_1.u32)(out); -} -function indexAlpha(r, s, laneLen, segmentLen, index, randL, sameLane = false) { - let area; - if (0 == r) { - if (0 == s) - area = index - 1; - else if (sameLane) - area = s * segmentLen + index - 1; - else - area = s * segmentLen + (index == 0 ? -1 : 0); - } - else if (sameLane) - area = laneLen - segmentLen + index - 1; - else - area = laneLen - segmentLen + (index == 0 ? -1 : 0); - const startPos = r !== 0 && s !== ARGON2_SYNC_POINTS - 1 ? (s + 1) * segmentLen : 0; - const rel = relPos(area, randL); - // NOTE: check about overflows here - // absPos = (startPos + relPos) % laneLength; - return (startPos + rel) % laneLen; -} -function argon2Init(type, password, salt, opts) { - password = (0, utils_js_1.toBytes)(password); - salt = (0, utils_js_1.toBytes)(salt); - let { p, dkLen, m, t, version, key, personalization, maxmem, onProgress } = { - ...opts, - version: opts.version || 0x13, - dkLen: opts.dkLen || 32, - maxmem: 2 ** 32, - }; - // Validation - (0, _assert_js_1.number)(p); - (0, _assert_js_1.number)(dkLen); - (0, _assert_js_1.number)(m); - (0, _assert_js_1.number)(t); - (0, _assert_js_1.number)(version); - if (dkLen < 4 || dkLen >= 2 ** 32) - throw new Error('Argon2: dkLen should be at least 4 bytes'); - if (p < 1 || p >= 2 ** 32) - throw new Error('Argon2: p (parallelism) should be at least 1'); - if (t < 1 || t >= 2 ** 32) - throw new Error('Argon2: t (iterations) should be at least 1'); - if (m < 8 * p) - throw new Error(`Argon2: memory should be at least 8*p bytes`); - if (version !== 16 && version !== 19) - throw new Error(`Argon2: unknown version=${version}`); - password = (0, utils_js_1.toBytes)(password); - if (password.length < 0 || password.length >= 2 ** 32) - throw new Error('Argon2: password should be less than 4 GB'); - salt = (0, utils_js_1.toBytes)(salt); - if (salt.length < 8) - throw new Error('Argon2: salt should be at least 8 bytes'); - key = toBytesOptional(key); - personalization = toBytesOptional(personalization); - if (onProgress !== undefined && typeof onProgress !== 'function') - throw new Error('progressCb should be function'); - // Params - const lanes = p; - // m' = 4 * p * floor (m / 4p) - const mP = 4 * p * Math.floor(m / (ARGON2_SYNC_POINTS * p)); - //q = m' / p columns - const laneLen = Math.floor(mP / p); - const segmentLen = Math.floor(laneLen / ARGON2_SYNC_POINTS); - // H0 - const h = blake2b_js_1.blake2b.create({}); - const BUF = new Uint32Array(1); - const BUF8 = (0, utils_js_1.u8)(BUF); - for (const i of [p, dkLen, m, t, version, type]) { - if (i < 0 || i >= 2 ** 32) - throw new Error(`Argon2: wrong parameter=${i}, expected uint32`); - BUF[0] = i; - h.update(BUF8); - } - for (let i of [password, salt, key, personalization]) { - BUF[0] = i.length; - h.update(BUF8).update(i); - } - const H0 = new Uint32Array(18); - const H0_8 = (0, utils_js_1.u8)(H0); - h.digestInto(H0_8); - // 256 u32 = 1024 (BLOCK_SIZE) - const memUsed = mP * 256; - if (memUsed < 0 || memUsed >= 2 ** 32 || memUsed > maxmem) { - throw new Error(`Argon2: wrong params (memUsed=${memUsed} maxmem=${maxmem}), should be less than 2**32`); - } - const B = new Uint32Array(memUsed); - // Fill first blocks - for (let l = 0; l < p; l++) { - const i = 256 * laneLen * l; - // B[i][0] = H'^(1024)(H_0 || LE32(0) || LE32(i)) - H0[17] = l; - H0[16] = 0; - B.set(Hp(H0, 1024), i); - // B[i][1] = H'^(1024)(H_0 || LE32(1) || LE32(i)) - H0[16] = 1; - B.set(Hp(H0, 1024), i + 256); - } - let perBlock = () => { }; - if (onProgress) { - const totalBlock = t * ARGON2_SYNC_POINTS * p * segmentLen; - // Invoke callback if progress changes from 10.01 to 10.02 - // Allows to draw smooth progress bar on up to 8K screen - const callbackPer = Math.max(Math.floor(totalBlock / 10000), 1); - let blockCnt = 0; - perBlock = () => { - blockCnt++; - if (onProgress && (!(blockCnt % callbackPer) || blockCnt === totalBlock)) - onProgress(blockCnt / totalBlock); - }; - } - return { type, mP, p, t, version, B, laneLen, lanes, segmentLen, dkLen, perBlock }; -} -function argon2Output(B, p, laneLen, dkLen) { - const B_final = new Uint32Array(256); - for (let l = 0; l < p; l++) - for (let j = 0; j < 256; j++) - B_final[j] ^= B[256 * (laneLen * l + laneLen - 1) + j]; - return (0, utils_js_1.u8)(Hp(B_final, dkLen)); -} -function processBlock(B, address, l, r, s, index, laneLen, segmentLen, lanes, offset, prev, dataIndependent, needXor) { - if (offset % laneLen) - prev = offset - 1; - let randL, randH; - if (dataIndependent) { - if (index % 128 === 0) { - address[256 + 12]++; - block(address, 256, 2 * 256, 0, false); - block(address, 0, 2 * 256, 0, false); - } - randL = address[2 * (index % 128)]; - randH = address[2 * (index % 128) + 1]; - } - else { - const T = 256 * prev; - randL = B[T]; - randH = B[T + 1]; - } - // address block - const refLane = r === 0 && s === 0 ? l : randH % lanes; - const refPos = indexAlpha(r, s, laneLen, segmentLen, index, randL, refLane == l); - const refBlock = laneLen * refLane + refPos; - // B[i][j] = G(B[i][j-1], B[l][z]) - block(B, 256 * prev, 256 * refBlock, offset * 256, needXor); -} -function argon2(type, password, salt, opts) { - const { mP, p, t, version, B, laneLen, lanes, segmentLen, dkLen, perBlock } = argon2Init(type, password, salt, opts); - // Pre-loop setup - // [address, input, zero_block] format so we can pass single U32 to block function - const address = new Uint32Array(3 * 256); - address[256 + 6] = mP; - address[256 + 8] = t; - address[256 + 10] = type; - for (let r = 0; r < t; r++) { - const needXor = r !== 0 && version === 0x13; - address[256 + 0] = r; - for (let s = 0; s < ARGON2_SYNC_POINTS; s++) { - address[256 + 4] = s; - const dataIndependent = type == 1 /* Types.Argon2i */ || (type == 2 /* Types.Argon2id */ && r === 0 && s < 2); - for (let l = 0; l < p; l++) { - address[256 + 2] = l; - address[256 + 12] = 0; - let startPos = 0; - if (r === 0 && s === 0) { - startPos = 2; - if (dataIndependent) { - address[256 + 12]++; - block(address, 256, 2 * 256, 0, false); - block(address, 0, 2 * 256, 0, false); - } - } - // current block postion - let offset = l * laneLen + s * segmentLen + startPos; - // previous block position - let prev = offset % laneLen ? offset - 1 : offset + laneLen - 1; - for (let index = startPos; index < segmentLen; index++, offset++, prev++) { - perBlock(); - processBlock(B, address, l, r, s, index, laneLen, segmentLen, lanes, offset, prev, dataIndependent, needXor); - } - } - } - } - return argon2Output(B, p, laneLen, dkLen); -} -const argon2d = (password, salt, opts) => argon2(0 /* Types.Argond2d */, password, salt, opts); -exports.argon2d = argon2d; -const argon2i = (password, salt, opts) => argon2(1 /* Types.Argon2i */, password, salt, opts); -exports.argon2i = argon2i; -const argon2id = (password, salt, opts) => argon2(2 /* Types.Argon2id */, password, salt, opts); -exports.argon2id = argon2id; -//# sourceMappingURL=argon2.js.map \ No newline at end of file diff --git a/node_modules/@noble/hashes/argon2.js.map b/node_modules/@noble/hashes/argon2.js.map deleted file mode 100644 index a88b2520..00000000 --- a/node_modules/@noble/hashes/argon2.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"argon2.js","sourceRoot":"","sources":["src/argon2.ts"],"names":[],"mappings":";;;AAAA,6CAAsD;AACtD,yCAAqD;AACrD,6CAAuC;AACvC,uCAA2F;AAS3F,MAAM,kBAAkB,GAAG,CAAC,CAAC;AAE7B,MAAM,eAAe,GAAG,CAAC,GAAW,EAAE,EAAE,CAAC,CAAC,GAAG,KAAK,SAAS,CAAC,CAAC,CAAC,IAAA,kBAAO,EAAC,GAAG,CAAC,CAAC,CAAC,CAAC,IAAI,UAAU,CAAC,EAAE,CAAC,CAAC,CAAC;AAEjG,SAAS,GAAG,CAAC,CAAS,EAAE,CAAS;IAC/B,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC;IACtB,MAAM,EAAE,GAAG,CAAC,KAAK,EAAE,CAAC;IACpB,MAAM,EAAE,GAAG,CAAC,GAAG,MAAM,CAAC;IACtB,MAAM,EAAE,GAAG,CAAC,KAAK,EAAE,CAAC;IACpB,MAAM,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;IAC7B,MAAM,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;IAC7B,MAAM,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;IAC7B,MAAM,EAAE,GAAG,IAAI,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;IAC7B,MAAM,GAAG,GAAG,CAAC,CAAC,EAAE,KAAK,EAAE,CAAC,GAAG,CAAC,EAAE,GAAG,MAAM,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ACF;SACF;KACF;IACD,OAAO,YAAY,CAAC,CAAC,EAAE,CAAC,EAAE,OAAO,EAAE,KAAK,CAAC,CAAC;AAC5C,CAAC;AAEM,MAAM,OAAO,GAAG,CAAC,QAAe,EAAE,IAAW,EAAE,IAAe,EAAE,EAAE,CACvE,MAAM,yBAAiB,QAAQ,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AADlC,QAAA,OAAO,WAC2B;AACxC,MAAM,OAAO,GAAG,CAAC,QAAe,EAAE,IAAW,EAAE,IAAe,EAAE,EAAE,CACvE,MAAM,wBAAgB,QAAQ,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AADjC,QAAA,OAAO,WAC0B;AACvC,MAAM,QAAQ,GAAG,CAAC,QAAe,EAAE,IAAW,EAAE,IAAe,EAAE,EAAE,CACxE,MAAM,yBAAiB,QAAQ,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AADlC,QAAA,QAAQ,YAC0B"} \ No newline at end of file diff --git a/node_modules/@noble/hashes/blake2b.d.ts b/node_modules/@noble/hashes/blake2b.d.ts deleted file mode 100644 index 7a78c6b8..00000000 --- a/node_modules/@noble/hashes/blake2b.d.ts +++ /dev/null @@ -1,53 +0,0 @@ -import { BLAKE2, BlakeOpts } from './_blake2.js'; -declare class BLAKE2b extends BLAKE2 { - private v0l; - private v0h; - private v1l; - private v1h; - private v2l; - private v2h; - private v3l; - private v3h; - private v4l; - private v4h; - private v5l; - private v5h; - private v6l; - private v6h; - private v7l; - private v7h; - constructor(opts?: BlakeOpts); - protected get(): [ - number, - number, - number, - number, - number, - number, - number, - number, - number, - number, - number, - number, - number, - number, - number, - number - ]; - protected set(v0l: number, v0h: number, v1l: number, v1h: number, v2l: number, v2h: number, v3l: number, v3h: number, v4l: number, v4h: number, v5l: number, v5h: number, v6l: number, v6h: number, v7l: number, v7h: number): void; - protected compress(msg: Uint32Array, offset: number, isLast: boolean): void; - destroy(): void; -} -/** - * BLAKE2b - optimized for 64-bit platforms. JS doesn't have uint64, so it's slower than BLAKE2s. - * @param msg - message that would be hashed - * @param opts - dkLen, key, salt, personalization - */ -export declare const blake2b: { - (msg: import("./utils.js").Input, opts?: BlakeOpts | undefined): Uint8Array; - outputLen: number; - blockLen: number; - create(opts: BlakeOpts): import("./utils.js").Hash; -}; -export {}; diff --git a/node_modules/@noble/hashes/blake2b.js b/node_modules/@noble/hashes/blake2b.js deleted file mode 100644 index 9d41df59..00000000 --- a/node_modules/@noble/hashes/blake2b.js +++ /dev/null @@ -1,192 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.blake2b = void 0; -const _blake2_js_1 = require("./_blake2.js"); -const _u64_js_1 = require("./_u64.js"); -const utils_js_1 = require("./utils.js"); -// Same as SHA-512 but LE -// prettier-ignore -const IV = /* @__PURE__ */ new Uint32Array([ - 0xf3bcc908, 0x6a09e667, 0x84caa73b, 0xbb67ae85, 0xfe94f82b, 0x3c6ef372, 0x5f1d36f1, 0xa54ff53a, - 0xade682d1, 0x510e527f, 0x2b3e6c1f, 0x9b05688c, 0xfb41bd6b, 0x1f83d9ab, 0x137e2179, 0x5be0cd19 -]); -// Temporary buffer -const BUF = /* @__PURE__ */ new Uint32Array(32); -// Mixing function G splitted in two halfs -function G1(a, b, c, d, msg, x) { - // NOTE: V is LE here - const Xl = msg[x], Xh = msg[x + 1]; // prettier-ignore - let Al = BUF[2 * a], Ah = BUF[2 * a + 1]; // prettier-ignore - let Bl = BUF[2 * b], Bh = BUF[2 * b + 1]; // prettier-ignore - let Cl = BUF[2 * c], Ch = BUF[2 * c + 1]; // prettier-ignore - let Dl = BUF[2 * d], Dh = BUF[2 * d + 1]; // prettier-ignore - // v[a] = (v[a] + v[b] + x) | 0; - let ll = _u64_js_1.default.add3L(Al, Bl, Xl); - Ah = _u64_js_1.default.add3H(ll, Ah, Bh, Xh); - Al = ll | 0; - // v[d] = rotr(v[d] ^ v[a], 32) - ({ Dh, Dl } = { Dh: Dh ^ Ah, Dl: Dl ^ Al }); - ({ Dh, Dl } = { Dh: _u64_js_1.default.rotr32H(Dh, Dl), Dl: _u64_js_1.default.rotr32L(Dh, Dl) }); - // v[c] = (v[c] + v[d]) | 0; - ({ h: Ch, l: Cl } = _u64_js_1.default.add(Ch, Cl, Dh, Dl)); - // v[b] = rotr(v[b] ^ v[c], 24) - ({ Bh, Bl } = { Bh: Bh ^ Ch, Bl: Bl ^ Cl }); - ({ Bh, Bl } = { Bh: _u64_js_1.default.rotrSH(Bh, Bl, 24), Bl: _u64_js_1.default.rotrSL(Bh, Bl, 24) }); - (BUF[2 * a] = Al), (BUF[2 * a + 1] = Ah); - (BUF[2 * b] = Bl), (BUF[2 * b + 1] = Bh); - (BUF[2 * c] = Cl), (BUF[2 * c + 1] = Ch); - (BUF[2 * d] = Dl), (BUF[2 * d + 1] = Dh); -} -function G2(a, b, c, d, msg, x) { - // NOTE: V is LE here - const Xl = msg[x], Xh = msg[x + 1]; // prettier-ignore - let Al = BUF[2 * a], Ah = BUF[2 * a + 1]; // prettier-ignore - let Bl = BUF[2 * b], Bh = BUF[2 * b + 1]; // prettier-ignore - let Cl = BUF[2 * c], Ch = BUF[2 * c + 1]; // prettier-ignore - let Dl = BUF[2 * d], Dh = BUF[2 * d + 1]; // prettier-ignore - // v[a] = (v[a] + v[b] + x) | 0; - let ll = _u64_js_1.default.add3L(Al, Bl, Xl); - Ah = _u64_js_1.default.add3H(ll, Ah, Bh, Xh); - Al = ll | 0; - // v[d] = rotr(v[d] ^ v[a], 16) - ({ Dh, Dl } = { Dh: Dh ^ Ah, Dl: Dl ^ Al }); - ({ Dh, Dl } = { Dh: _u64_js_1.default.rotrSH(Dh, Dl, 16), Dl: _u64_js_1.default.rotrSL(Dh, Dl, 16) }); - // v[c] = (v[c] + v[d]) | 0; - ({ h: Ch, l: Cl } = _u64_js_1.default.add(Ch, Cl, Dh, Dl)); - // v[b] = rotr(v[b] ^ v[c], 63) - ({ Bh, Bl } = { Bh: Bh ^ Ch, Bl: Bl ^ Cl }); - ({ Bh, Bl } = { Bh: _u64_js_1.default.rotrBH(Bh, Bl, 63), Bl: _u64_js_1.default.rotrBL(Bh, Bl, 63) }); - (BUF[2 * a] = Al), (BUF[2 * a + 1] = Ah); - (BUF[2 * b] = Bl), (BUF[2 * b + 1] = Bh); - (BUF[2 * c] = Cl), (BUF[2 * c + 1] = Ch); - (BUF[2 * d] = Dl), (BUF[2 * d + 1] = Dh); -} -class BLAKE2b extends _blake2_js_1.BLAKE2 { - constructor(opts = {}) { - super(128, opts.dkLen === undefined ? 64 : opts.dkLen, opts, 64, 16, 16); - // Same as SHA-512, but LE - this.v0l = IV[0] | 0; - this.v0h = IV[1] | 0; - this.v1l = IV[2] | 0; - this.v1h = IV[3] | 0; - this.v2l = IV[4] | 0; - this.v2h = IV[5] | 0; - this.v3l = IV[6] | 0; - this.v3h = IV[7] | 0; - this.v4l = IV[8] | 0; - this.v4h = IV[9] | 0; - this.v5l = IV[10] | 0; - this.v5h = IV[11] | 0; - this.v6l = IV[12] | 0; - this.v6h = IV[13] | 0; - this.v7l = IV[14] | 0; - this.v7h = IV[15] | 0; - const keyLength = opts.key ? opts.key.length : 0; - this.v0l ^= this.outputLen | (keyLength << 8) | (0x01 << 16) | (0x01 << 24); - if (opts.salt) { - const salt = (0, utils_js_1.u32)((0, utils_js_1.toBytes)(opts.salt)); - this.v4l ^= salt[0]; - this.v4h ^= salt[1]; - this.v5l ^= salt[2]; - this.v5h ^= salt[3]; - } - if (opts.personalization) { - const pers = (0, utils_js_1.u32)((0, utils_js_1.toBytes)(opts.personalization)); - this.v6l ^= pers[0]; - this.v6h ^= pers[1]; - this.v7l ^= pers[2]; - this.v7h ^= pers[3]; - } - if (opts.key) { - // Pad to blockLen and update - const tmp = new Uint8Array(this.blockLen); - tmp.set((0, utils_js_1.toBytes)(opts.key)); - this.update(tmp); - } - } - // prettier-ignore - get() { - let { v0l, v0h, v1l, v1h, v2l, v2h, v3l, v3h, v4l, v4h, v5l, v5h, v6l, v6h, v7l, v7h } = this; - return [v0l, v0h, v1l, v1h, v2l, v2h, v3l, v3h, v4l, v4h, v5l, v5h, v6l, v6h, v7l, v7h]; - } - // prettier-ignore - set(v0l, v0h, v1l, v1h, v2l, v2h, v3l, v3h, v4l, v4h, v5l, v5h, v6l, v6h, v7l, v7h) { - this.v0l = v0l | 0; - this.v0h = v0h | 0; - this.v1l = v1l | 0; - this.v1h = v1h | 0; - this.v2l = v2l | 0; - this.v2h = v2h | 0; - this.v3l = v3l | 0; - this.v3h = v3h | 0; - this.v4l = v4l | 0; - this.v4h = v4h | 0; - this.v5l = v5l | 0; - this.v5h = v5h | 0; - this.v6l = v6l | 0; - this.v6h = v6h | 0; - this.v7l = v7l | 0; - this.v7h = v7h | 0; - } - compress(msg, offset, isLast) { - this.get().forEach((v, i) => (BUF[i] = v)); // First half from state. - BUF.set(IV, 16); // Second half from IV. - let { h, l } = _u64_js_1.default.fromBig(BigInt(this.length)); - BUF[24] = IV[8] ^ l; // Low word of the offset. - BUF[25] = IV[9] ^ h; // High word. - // Invert all bits for last block - if (isLast) { - BUF[28] = ~BUF[28]; - BUF[29] = ~BUF[29]; - } - let j = 0; - const s = _blake2_js_1.SIGMA; - for (let i = 0; i < 12; i++) { - G1(0, 4, 8, 12, msg, offset + 2 * s[j++]); - G2(0, 4, 8, 12, msg, offset + 2 * s[j++]); - G1(1, 5, 9, 13, msg, offset + 2 * s[j++]); - G2(1, 5, 9, 13, msg, offset + 2 * s[j++]); - G1(2, 6, 10, 14, msg, offset + 2 * s[j++]); - G2(2, 6, 10, 14, msg, offset + 2 * s[j++]); - G1(3, 7, 11, 15, msg, offset + 2 * s[j++]); - G2(3, 7, 11, 15, msg, offset + 2 * s[j++]); - G1(0, 5, 10, 15, msg, offset + 2 * s[j++]); - G2(0, 5, 10, 15, msg, offset + 2 * s[j++]); - G1(1, 6, 11, 12, msg, offset + 2 * s[j++]); - G2(1, 6, 11, 12, msg, offset + 2 * s[j++]); - G1(2, 7, 8, 13, msg, offset + 2 * s[j++]); - G2(2, 7, 8, 13, msg, offset + 2 * s[j++]); - G1(3, 4, 9, 14, msg, offset + 2 * s[j++]); - G2(3, 4, 9, 14, msg, offset + 2 * s[j++]); - } - this.v0l ^= BUF[0] ^ BUF[16]; - this.v0h ^= BUF[1] ^ BUF[17]; - this.v1l ^= BUF[2] ^ BUF[18]; - this.v1h ^= BUF[3] ^ BUF[19]; - this.v2l ^= BUF[4] ^ BUF[20]; - this.v2h ^= BUF[5] ^ BUF[21]; - this.v3l ^= BUF[6] ^ BUF[22]; - this.v3h ^= BUF[7] ^ BUF[23]; - this.v4l ^= BUF[8] ^ BUF[24]; - this.v4h ^= BUF[9] ^ BUF[25]; - this.v5l ^= BUF[10] ^ BUF[26]; - this.v5h ^= BUF[11] ^ BUF[27]; - this.v6l ^= BUF[12] ^ BUF[28]; - this.v6h ^= BUF[13] ^ BUF[29]; - this.v7l ^= BUF[14] ^ BUF[30]; - this.v7h ^= BUF[15] ^ BUF[31]; - BUF.fill(0); - } - destroy() { - this.destroyed = true; - this.buffer32.fill(0); - this.set(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); - } -} -/** - * BLAKE2b - optimized for 64-bit platforms. JS doesn't have uint64, so it's slower than BLAKE2s. - * @param msg - message that would be hashed - * @param opts - dkLen, key, salt, personalization - */ -exports.blake2b = (0, utils_js_1.wrapConstructorWithOpts)((opts) => new BLAKE2b(opts)); -//# sourceMappingURL=blake2b.js.map \ No newline at end of file diff --git a/node_modules/@noble/hashes/blake2b.js.map b/node_modules/@noble/hashes/blake2b.js.map deleted file mode 100644 index 4e936fb4..00000000 --- a/node_modules/@noble/hashes/blake2b.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"blake2b.js","sourceRoot":"","sources":["src/blake2b.ts"],"names":[],"mappings":";;;AAAA,6CAAwD;AACxD,uCAA4B;AAC5B,yCAAmE;AAEnE,yBAAyB;AACzB,kBAAkB;AAClB,MAAM,EAAE,GAAG,e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AAC,EAAE,CAAC,CAAC,CAAC;IAC3D,CAAC;CACF;AAED;;;;GAIG;AACU,QAAA,OAAO,GAAmB,IAAA,kCAAuB,EAC5D,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC,CAC5B,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/hashes/blake2s.d.ts b/node_modules/@noble/hashes/blake2s.d.ts deleted file mode 100644 index d9dd59b0..00000000 --- a/node_modules/@noble/hashes/blake2s.d.ts +++ /dev/null @@ -1,47 +0,0 @@ -import { BLAKE2, BlakeOpts } from './_blake2.js'; -export declare const IV: Uint32Array; -export declare function compress(s: Uint8Array, offset: number, msg: Uint32Array, rounds: number, v0: number, v1: number, v2: number, v3: number, v4: number, v5: number, v6: number, v7: number, v8: number, v9: number, v10: number, v11: number, v12: number, v13: number, v14: number, v15: number): { - v0: number; - v1: number; - v2: number; - v3: number; - v4: number; - v5: number; - v6: number; - v7: number; - v8: number; - v9: number; - v10: number; - v11: number; - v12: number; - v13: number; - v14: number; - v15: number; -}; -declare class BLAKE2s extends BLAKE2 { - private v0; - private v1; - private v2; - private v3; - private v4; - private v5; - private v6; - private v7; - constructor(opts?: BlakeOpts); - protected get(): [number, number, number, number, number, number, number, number]; - protected set(v0: number, v1: number, v2: number, v3: number, v4: number, v5: number, v6: number, v7: number): void; - protected compress(msg: Uint32Array, offset: number, isLast: boolean): void; - destroy(): void; -} -/** - * BLAKE2s - optimized for 32-bit platforms. JS doesn't have uint64, so it's faster than BLAKE2b. - * @param msg - message that would be hashed - * @param opts - dkLen, key, salt, personalization - */ -export declare const blake2s: { - (msg: import("./utils.js").Input, opts?: BlakeOpts | undefined): Uint8Array; - outputLen: number; - blockLen: number; - create(opts: BlakeOpts): import("./utils.js").Hash; -}; -export {}; diff --git a/node_modules/@noble/hashes/blake2s.js b/node_modules/@noble/hashes/blake2s.js deleted file mode 100644 index ace75136..00000000 --- a/node_modules/@noble/hashes/blake2s.js +++ /dev/null @@ -1,122 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.blake2s = exports.compress = exports.IV = void 0; -const _blake2_js_1 = require("./_blake2.js"); -const _u64_js_1 = require("./_u64.js"); -const utils_js_1 = require("./utils.js"); -// Initial state: -// first 32 bits of the fractional parts of the square roots of the first 8 primes 2..19) -// same as SHA-256 -// prettier-ignore -exports.IV = new Uint32Array([0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19]); -// Mixing function G splitted in two halfs -function G1(a, b, c, d, x) { - a = (a + b + x) | 0; - d = (0, utils_js_1.rotr)(d ^ a, 16); - c = (c + d) | 0; - b = (0, utils_js_1.rotr)(b ^ c, 12); - return { a, b, c, d }; -} -function G2(a, b, c, d, x) { - a = (a + b + x) | 0; - d = (0, utils_js_1.rotr)(d ^ a, 8); - c = (c + d) | 0; - b = (0, utils_js_1.rotr)(b ^ c, 7); - return { a, b, c, d }; -} -// prettier-ignore -function compress(s, offset, msg, rounds, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15) { - let j = 0; - for (let i = 0; i < rounds; i++) { - ({ a: v0, b: v4, c: v8, d: v12 } = G1(v0, v4, v8, v12, msg[offset + s[j++]])); - ({ a: v0, b: v4, c: v8, d: v12 } = G2(v0, v4, v8, v12, msg[offset + s[j++]])); - ({ a: v1, b: v5, c: v9, d: v13 } = G1(v1, v5, v9, v13, msg[offset + s[j++]])); - ({ a: v1, b: v5, c: v9, d: v13 } = G2(v1, v5, v9, v13, msg[offset + s[j++]])); - ({ a: v2, b: v6, c: v10, d: v14 } = G1(v2, v6, v10, v14, msg[offset + s[j++]])); - ({ a: v2, b: v6, c: v10, d: v14 } = G2(v2, v6, v10, v14, msg[offset + s[j++]])); - ({ a: v3, b: v7, c: v11, d: v15 } = G1(v3, v7, v11, v15, msg[offset + s[j++]])); - ({ a: v3, b: v7, c: v11, d: v15 } = G2(v3, v7, v11, v15, msg[offset + s[j++]])); - ({ a: v0, b: v5, c: v10, d: v15 } = G1(v0, v5, v10, v15, msg[offset + s[j++]])); - ({ a: v0, b: v5, c: v10, d: v15 } = G2(v0, v5, v10, v15, msg[offset + s[j++]])); - ({ a: v1, b: v6, c: v11, d: v12 } = G1(v1, v6, v11, v12, msg[offset + s[j++]])); - ({ a: v1, b: v6, c: v11, d: v12 } = G2(v1, v6, v11, v12, msg[offset + s[j++]])); - ({ a: v2, b: v7, c: v8, d: v13 } = G1(v2, v7, v8, v13, msg[offset + s[j++]])); - ({ a: v2, b: v7, c: v8, d: v13 } = G2(v2, v7, v8, v13, msg[offset + s[j++]])); - ({ a: v3, b: v4, c: v9, d: v14 } = G1(v3, v4, v9, v14, msg[offset + s[j++]])); - ({ a: v3, b: v4, c: v9, d: v14 } = G2(v3, v4, v9, v14, msg[offset + s[j++]])); - } - return { v0, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15 }; -} -exports.compress = compress; -class BLAKE2s extends _blake2_js_1.BLAKE2 { - constructor(opts = {}) { - super(64, opts.dkLen === undefined ? 32 : opts.dkLen, opts, 32, 8, 8); - // Internal state, same as SHA-256 - this.v0 = exports.IV[0] | 0; - this.v1 = exports.IV[1] | 0; - this.v2 = exports.IV[2] | 0; - this.v3 = exports.IV[3] | 0; - this.v4 = exports.IV[4] | 0; - this.v5 = exports.IV[5] | 0; - this.v6 = exports.IV[6] | 0; - this.v7 = exports.IV[7] | 0; - const keyLength = opts.key ? opts.key.length : 0; - this.v0 ^= this.outputLen | (keyLength << 8) | (0x01 << 16) | (0x01 << 24); - if (opts.salt) { - const salt = (0, utils_js_1.u32)((0, utils_js_1.toBytes)(opts.salt)); - this.v4 ^= salt[0]; - this.v5 ^= salt[1]; - } - if (opts.personalization) { - const pers = (0, utils_js_1.u32)((0, utils_js_1.toBytes)(opts.personalization)); - this.v6 ^= pers[0]; - this.v7 ^= pers[1]; - } - if (opts.key) { - // Pad to blockLen and update - const tmp = new Uint8Array(this.blockLen); - tmp.set((0, utils_js_1.toBytes)(opts.key)); - this.update(tmp); - } - } - get() { - const { v0, v1, v2, v3, v4, v5, v6, v7 } = this; - return [v0, v1, v2, v3, v4, v5, v6, v7]; - } - // prettier-ignore - set(v0, v1, v2, v3, v4, v5, v6, v7) { - this.v0 = v0 | 0; - this.v1 = v1 | 0; - this.v2 = v2 | 0; - this.v3 = v3 | 0; - this.v4 = v4 | 0; - this.v5 = v5 | 0; - this.v6 = v6 | 0; - this.v7 = v7 | 0; - } - compress(msg, offset, isLast) { - const { h, l } = (0, _u64_js_1.fromBig)(BigInt(this.length)); - // prettier-ignore - const { v0, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15 } = compress(_blake2_js_1.SIGMA, offset, msg, 10, this.v0, this.v1, this.v2, this.v3, this.v4, this.v5, this.v6, this.v7, exports.IV[0], exports.IV[1], exports.IV[2], exports.IV[3], l ^ exports.IV[4], h ^ exports.IV[5], isLast ? ~exports.IV[6] : exports.IV[6], exports.IV[7]); - this.v0 ^= v0 ^ v8; - this.v1 ^= v1 ^ v9; - this.v2 ^= v2 ^ v10; - this.v3 ^= v3 ^ v11; - this.v4 ^= v4 ^ v12; - this.v5 ^= v5 ^ v13; - this.v6 ^= v6 ^ v14; - this.v7 ^= v7 ^ v15; - } - destroy() { - this.destroyed = true; - this.buffer32.fill(0); - this.set(0, 0, 0, 0, 0, 0, 0, 0); - } -} -/** - * BLAKE2s - optimized for 32-bit platforms. JS doesn't have uint64, so it's faster than BLAKE2b. - * @param msg - message that would be hashed - * @param opts - dkLen, key, salt, personalization - */ -exports.blake2s = (0, utils_js_1.wrapConstructorWithOpts)((opts) => new BLAKE2s(opts)); -//# sourceMappingURL=blake2s.js.map \ No newline at end of file diff --git a/node_modules/@noble/hashes/blake2s.js.map b/node_modules/@noble/hashes/blake2s.js.map deleted file mode 100644 index ac692b3d..00000000 --- a/node_modules/@noble/hashes/blake2s.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IAAI,CAAC,EAAE,IAAI,EAAE,GAAG,GAAG,CAAC;QACpB,IAAI,CAAC,EAAE,IAAI,EAAE,GAAG,GAAG,CAAC;QACpB,IAAI,CAAC,EAAE,IAAI,EAAE,GAAG,GAAG,CAAC;QACpB,IAAI,CAAC,EAAE,IAAI,EAAE,GAAG,GAAG,CAAC;QACpB,IAAI,CAAC,EAAE,IAAI,EAAE,GAAG,GAAG,CAAC;QACpB,IAAI,CAAC,EAAE,IAAI,EAAE,GAAG,GAAG,CAAC;IACtB,CAAC;IACD,OAAO;QACL,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;QACtB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACtB,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IACnC,CAAC;CACF;AAED;;;;GAIG;AACU,QAAA,OAAO,GAAmB,IAAA,kCAAuB,EAC5D,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC,CAC5B,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/hashes/blake3.d.ts b/node_modules/@noble/hashes/blake3.d.ts deleted file mode 100644 index 13894cf6..00000000 --- a/node_modules/@noble/hashes/blake3.d.ts +++ /dev/null @@ -1,46 +0,0 @@ -import { BLAKE2 } from './_blake2.js'; -import { Input, HashXOF } from './utils.js'; -export type Blake3Opts = { - dkLen?: number; - key?: Input; - context?: Input; -}; -declare class BLAKE3 extends BLAKE2 implements HashXOF { - private IV; - private flags; - private state; - private chunkPos; - private chunksDone; - private stack; - private posOut; - private bufferOut32; - private bufferOut; - private chunkOut; - private enableXOF; - constructor(opts?: Blake3Opts, flags?: number); - protected get(): never[]; - protected set(): void; - private b2Compress; - protected compress(buf: Uint32Array, bufPos?: number, isLast?: boolean): void; - _cloneInto(to?: BLAKE3): BLAKE3; - destroy(): void; - private b2CompressOut; - protected finish(): void; - private writeInto; - xofInto(out: Uint8Array): Uint8Array; - xof(bytes: number): Uint8Array; - digestInto(out: Uint8Array): Uint8Array; - digest(): Uint8Array; -} -/** - * BLAKE3 hash function. - * @param msg - message that would be hashed - * @param opts - dkLen, key, context - */ -export declare const blake3: { - (msg: Input, opts?: Blake3Opts | undefined): Uint8Array; - outputLen: number; - blockLen: number; - create(opts: Blake3Opts): HashXOF; -}; -export {}; diff --git a/node_modules/@noble/hashes/blake3.js b/node_modules/@noble/hashes/blake3.js deleted file mode 100644 index 3c339f54..00000000 --- a/node_modules/@noble/hashes/blake3.js +++ /dev/null @@ -1,229 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.blake3 = void 0; -const _assert_js_1 = require("./_assert.js"); -const _u64_js_1 = require("./_u64.js"); -const _blake2_js_1 = require("./_blake2.js"); -const blake2s_js_1 = require("./blake2s.js"); -const utils_js_1 = require("./utils.js"); -const SIGMA = /* @__PURE__ */ (() => { - const Id = Array.from({ length: 16 }, (_, i) => i); - const permute = (arr) => [2, 6, 3, 10, 7, 0, 4, 13, 1, 11, 12, 5, 9, 14, 15, 8].map((i) => arr[i]); - const res = []; - for (let i = 0, v = Id; i < 7; i++, v = permute(v)) - res.push(...v); - return Uint8Array.from(res); -})(); -// Why is this so slow? It should be 6x faster than blake2b. -// - There is only 30% reduction in number of rounds from blake2s -// - This function uses tree mode to achive parallelisation via SIMD and threading, -// however in JS we don't have threads and SIMD, so we get only overhead from tree structure -// - It is possible to speed it up via Web Workers, hovewer it will make code singnificantly more -// complicated, which we are trying to avoid, since this library is intended to be used -// for cryptographic purposes. Also, parallelization happens only on chunk level (1024 bytes), -// which won't really benefit small inputs. -class BLAKE3 extends _blake2_js_1.BLAKE2 { - constructor(opts = {}, flags = 0) { - super(64, opts.dkLen === undefined ? 32 : opts.dkLen, {}, Number.MAX_SAFE_INTEGER, 0, 0); - this.flags = 0 | 0; - this.chunkPos = 0; // Position of current block in chunk - this.chunksDone = 0; // How many chunks we already have - this.stack = []; - // Output - this.posOut = 0; - this.bufferOut32 = new Uint32Array(16); - this.chunkOut = 0; // index of output chunk - this.enableXOF = true; - this.outputLen = opts.dkLen === undefined ? 32 : opts.dkLen; - (0, _assert_js_1.number)(this.outputLen); - if (opts.key !== undefined && opts.context !== undefined) - throw new Error('Blake3: only key or context can be specified at same time'); - else if (opts.key !== undefined) { - const key = (0, utils_js_1.toBytes)(opts.key).slice(); - if (key.length !== 32) - throw new Error('Blake3: key should be 32 byte'); - this.IV = (0, utils_js_1.u32)(key); - this.flags = flags | 16 /* Flags.KEYED_HASH */; - } - else if (opts.context !== undefined) { - const context_key = new BLAKE3({ dkLen: 32 }, 32 /* Flags.DERIVE_KEY_CONTEXT */) - .update(opts.context) - .digest(); - this.IV = (0, utils_js_1.u32)(context_key); - this.flags = flags | 64 /* Flags.DERIVE_KEY_MATERIAL */; - } - else { - this.IV = blake2s_js_1.IV.slice(); - this.flags = flags; - } - this.state = this.IV.slice(); - this.bufferOut = (0, utils_js_1.u8)(this.bufferOut32); - } - // Unused - get() { - return []; - } - set() { } - b2Compress(counter, flags, buf, bufPos = 0) { - const { state: s, pos } = this; - const { h, l } = (0, _u64_js_1.fromBig)(BigInt(counter), true); - // prettier-ignore - const { v0, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15 } = (0, blake2s_js_1.compress)(SIGMA, bufPos, buf, 7, s[0], s[1], s[2], s[3], s[4], s[5], s[6], s[7], blake2s_js_1.IV[0], blake2s_js_1.IV[1], blake2s_js_1.IV[2], blake2s_js_1.IV[3], h, l, pos, flags); - s[0] = v0 ^ v8; - s[1] = v1 ^ v9; - s[2] = v2 ^ v10; - s[3] = v3 ^ v11; - s[4] = v4 ^ v12; - s[5] = v5 ^ v13; - s[6] = v6 ^ v14; - s[7] = v7 ^ v15; - } - compress(buf, bufPos = 0, isLast = false) { - // Compress last block - let flags = this.flags; - if (!this.chunkPos) - flags |= 1 /* Flags.CHUNK_START */; - if (this.chunkPos === 15 || isLast) - flags |= 2 /* Flags.CHUNK_END */; - if (!isLast) - this.pos = this.blockLen; - this.b2Compress(this.chunksDone, flags, buf, bufPos); - this.chunkPos += 1; - // If current block is last in chunk (16 blocks), then compress chunks - if (this.chunkPos === 16 || isLast) { - let chunk = this.state; - this.state = this.IV.slice(); - // If not the last one, compress only when there are trailing zeros in chunk counter - // chunks used as binary tree where current stack is path. Zero means current leaf is finished and can be compressed. - // 1 (001) - leaf not finished (just push current chunk to stack) - // 2 (010) - leaf finished at depth=1 (merge with last elm on stack and push back) - // 3 (011) - last leaf not finished - // 4 (100) - leafs finished at depth=1 and depth=2 - for (let last, chunks = this.chunksDone + 1; isLast || !(chunks & 1); chunks >>= 1) { - if (!(last = this.stack.pop())) - break; - this.buffer32.set(last, 0); - this.buffer32.set(chunk, 8); - this.pos = this.blockLen; - this.b2Compress(0, this.flags | 4 /* Flags.PARENT */, this.buffer32, 0); - chunk = this.state; - this.state = this.IV.slice(); - } - this.chunksDone++; - this.chunkPos = 0; - this.stack.push(chunk); - } - this.pos = 0; - } - _cloneInto(to) { - to = super._cloneInto(to); - const { IV, flags, state, chunkPos, posOut, chunkOut, stack, chunksDone } = this; - to.state.set(state.slice()); - to.stack = stack.map((i) => Uint32Array.from(i)); - to.IV.set(IV); - to.flags = flags; - to.chunkPos = chunkPos; - to.chunksDone = chunksDone; - to.posOut = posOut; - to.chunkOut = chunkOut; - to.enableXOF = this.enableXOF; - to.bufferOut32.set(this.bufferOut32); - return to; - } - destroy() { - this.destroyed = true; - this.state.fill(0); - this.buffer32.fill(0); - this.IV.fill(0); - this.bufferOut32.fill(0); - for (let i of this.stack) - i.fill(0); - } - // Same as b2Compress, but doesn't modify state and returns 16 u32 array (instead of 8) - b2CompressOut() { - const { state: s, pos, flags, buffer32, bufferOut32: out32 } = this; - const { h, l } = (0, _u64_js_1.fromBig)(BigInt(this.chunkOut++)); - // prettier-ignore - const { v0, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15 } = (0, blake2s_js_1.compress)(SIGMA, 0, buffer32, 7, s[0], s[1], s[2], s[3], s[4], s[5], s[6], s[7], blake2s_js_1.IV[0], blake2s_js_1.IV[1], blake2s_js_1.IV[2], blake2s_js_1.IV[3], l, h, pos, flags); - out32[0] = v0 ^ v8; - out32[1] = v1 ^ v9; - out32[2] = v2 ^ v10; - out32[3] = v3 ^ v11; - out32[4] = v4 ^ v12; - out32[5] = v5 ^ v13; - out32[6] = v6 ^ v14; - out32[7] = v7 ^ v15; - out32[8] = s[0] ^ v8; - out32[9] = s[1] ^ v9; - out32[10] = s[2] ^ v10; - out32[11] = s[3] ^ v11; - out32[12] = s[4] ^ v12; - out32[13] = s[5] ^ v13; - out32[14] = s[6] ^ v14; - out32[15] = s[7] ^ v15; - this.posOut = 0; - } - finish() { - if (this.finished) - return; - this.finished = true; - // Padding - this.buffer.fill(0, this.pos); - // Process last chunk - let flags = this.flags | 8 /* Flags.ROOT */; - if (this.stack.length) { - flags |= 4 /* Flags.PARENT */; - this.compress(this.buffer32, 0, true); - this.chunksDone = 0; - this.pos = this.blockLen; - } - else { - flags |= (!this.chunkPos ? 1 /* Flags.CHUNK_START */ : 0) | 2 /* Flags.CHUNK_END */; - } - this.flags = flags; - this.b2CompressOut(); - } - writeInto(out) { - (0, _assert_js_1.exists)(this, false); - (0, _assert_js_1.bytes)(out); - this.finish(); - const { blockLen, bufferOut } = this; - for (let pos = 0, len = out.length; pos < len;) { - if (this.posOut >= blockLen) - this.b2CompressOut(); - const take = Math.min(blockLen - this.posOut, len - pos); - out.set(bufferOut.subarray(this.posOut, this.posOut + take), pos); - this.posOut += take; - pos += take; - } - return out; - } - xofInto(out) { - if (!this.enableXOF) - throw new Error('XOF is not possible after digest call'); - return this.writeInto(out); - } - xof(bytes) { - (0, _assert_js_1.number)(bytes); - return this.xofInto(new Uint8Array(bytes)); - } - digestInto(out) { - (0, _assert_js_1.output)(out, this); - if (this.finished) - throw new Error('digest() was already called'); - this.enableXOF = false; - this.writeInto(out); - this.destroy(); - return out; - } - digest() { - return this.digestInto(new Uint8Array(this.outputLen)); - } -} -/** - * BLAKE3 hash function. - * @param msg - message that would be hashed - * @param opts - dkLen, key, context - */ -exports.blake3 = (0, utils_js_1.wrapXOFConstructorWithOpts)((opts) => new BLAKE3(opts)); -//# sourceMappingURL=blake3.js.map \ No newline at end of file diff --git a/node_modules/@noble/hashes/blake3.js.map b/node_modules/@noble/hashes/blake3.js.map deleted file mode 100644 index 7ed8fd69..00000000 --- a/node_modules/@noble/hashes/blake3.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"blake3.js","sourceRoot":"","sources":["src/blake3.ts"],"names":[],"mappings":";;;AAAA,6CAA6D;AAC7D,uCAAoC;AACpC,6CAAsC;AACtC,6CAA4C;AAC5C,yCAA0F;AAe1F,MAAM,KAAK,GAAe,eAAe,CAAC,CAAC,GAAG,EAAE;IAC9C,MAAM,EAAE,GAAG,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC;IACnD,MAAM,OAAO,GAAG,CAAC,GAAa,EAAE,EAAE,CAChC,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC;IAC5E,MAAM,GAAG,GAAa,EAAE,CAAC;IACzB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,EAAE,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EAAE,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ACF;AAED;;;;GAIG;AACU,QAAA,MAAM,GAAmB,IAAA,qCAA0B,EAC9D,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,CAC3B,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/hashes/crypto.d.ts b/node_modules/@noble/hashes/crypto.d.ts deleted file mode 100644 index cebbcd1c..00000000 --- a/node_modules/@noble/hashes/crypto.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const crypto: any; diff --git a/node_modules/@noble/hashes/crypto.js b/node_modules/@noble/hashes/crypto.js deleted file mode 100644 index 8226391f..00000000 --- a/node_modules/@noble/hashes/crypto.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.crypto = void 0; -exports.crypto = typeof globalThis === 'object' && 'crypto' in globalThis ? globalThis.crypto : undefined; -//# sourceMappingURL=crypto.js.map \ No newline at end of file diff --git a/node_modules/@noble/hashes/crypto.js.map b/node_modules/@noble/hashes/crypto.js.map deleted file mode 100644 index 9f794e2a..00000000 --- a/node_modules/@noble/hashes/crypto.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"crypto.js","sourceRoot":"","sources":["src/crypto.ts"],"names":[],"mappings":";;;AAGa,QAAA,MAAM,GACjB,OAAO,UAAU,KAAK,QAAQ,IAAI,QAAQ,IAAI,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/hashes/cryptoNode.d.ts b/node_modules/@noble/hashes/cryptoNode.d.ts deleted file mode 100644 index cebbcd1c..00000000 --- a/node_modules/@noble/hashes/cryptoNode.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const crypto: any; diff --git a/node_modules/@noble/hashes/cryptoNode.js b/node_modules/@noble/hashes/cryptoNode.js deleted file mode 100644 index a88676d1..00000000 --- a/node_modules/@noble/hashes/cryptoNode.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.crypto = void 0; -// We use WebCrypto aka globalThis.crypto, which exists in browsers and node.js 16+. -// See utils.ts for details. -// The file will throw on node.js 14 and earlier. -// @ts-ignore -const nc = require("node:crypto"); -exports.crypto = nc && typeof nc === 'object' && 'webcrypto' in nc ? nc.webcrypto : undefined; -//# sourceMappingURL=cryptoNode.js.map \ No newline at end of file diff --git a/node_modules/@noble/hashes/cryptoNode.js.map b/node_modules/@noble/hashes/cryptoNode.js.map deleted file mode 100644 index 9287d276..00000000 --- a/node_modules/@noble/hashes/cryptoNode.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"cryptoNode.js","sourceRoot":"","sources":["src/cryptoNode.ts"],"names":[],"mappings":";;;AAAA,oFAAoF;AACpF,4BAA4B;AAC5B,iDAAiD;AACjD,aAAa;AACb,kCAAkC;AACrB,QAAA,MAAM,GACjB,EAAE,IAAI,OAAO,EAAE,KAAK,QAAQ,IAAI,WAAW,IAAI,EAAE,CAAC,CAAC,CAAE,EAAE,CAAC,SAAiB,CAAC,CAAC,CAAC,SAAS,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/hashes/eskdf.d.ts b/node_modules/@noble/hashes/eskdf.d.ts deleted file mode 100644 index f0fc54d2..00000000 --- a/node_modules/@noble/hashes/eskdf.d.ts +++ /dev/null @@ -1,46 +0,0 @@ -export declare function scrypt(password: string, salt: string): Uint8Array; -export declare function pbkdf2(password: string, salt: string): Uint8Array; -/** - * Derives main seed. Takes a lot of time. Prefer `eskdf` method instead. - */ -export declare function deriveMainSeed(username: string, password: string): Uint8Array; -type AccountID = number | string; -type OptsLength = { - keyLength: number; -}; -type OptsMod = { - modulus: bigint; -}; -type KeyOpts = undefined | OptsLength | OptsMod; -type ESKDF = Promise Uint8Array; - /** - * Deletes the main seed from eskdf instance - */ - expire: () => void; - /** - * Account fingerprint - */ - fingerprint: string; -}>>; -/** - * ESKDF - * @param username - username, email, or identifier, min: 8 characters, should have enough entropy - * @param password - password, min: 8 characters, should have enough entropy - * @example - * const kdf = await eskdf('example-university', 'beginning-new-example'); - * const key = kdf.deriveChildKey('aes', 0); - * console.log(kdf.fingerprint); - * kdf.expire(); - */ -export declare function eskdf(username: string, password: string): ESKDF; -export {}; diff --git a/node_modules/@noble/hashes/eskdf.js b/node_modules/@noble/hashes/eskdf.js deleted file mode 100644 index bc622b6a..00000000 --- a/node_modules/@noble/hashes/eskdf.js +++ /dev/null @@ -1,162 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.eskdf = exports.deriveMainSeed = exports.pbkdf2 = exports.scrypt = void 0; -const _assert_js_1 = require("./_assert.js"); -const hkdf_js_1 = require("./hkdf.js"); -const sha256_js_1 = require("./sha256.js"); -const pbkdf2_js_1 = require("./pbkdf2.js"); -const scrypt_js_1 = require("./scrypt.js"); -const utils_js_1 = require("./utils.js"); -// A tiny KDF for various applications like AES key-gen. -// Uses HKDF in a non-standard way, so it's not "KDF-secure", only "PRF-secure". -// Which is good enough: assume sha2-256 retained preimage resistance. -const SCRYPT_FACTOR = 2 ** 19; -const PBKDF2_FACTOR = 2 ** 17; -// Scrypt KDF -function scrypt(password, salt) { - return (0, scrypt_js_1.scrypt)(password, salt, { N: SCRYPT_FACTOR, r: 8, p: 1, dkLen: 32 }); -} -exports.scrypt = scrypt; -// PBKDF2-HMAC-SHA256 -function pbkdf2(password, salt) { - return (0, pbkdf2_js_1.pbkdf2)(sha256_js_1.sha256, password, salt, { c: PBKDF2_FACTOR, dkLen: 32 }); -} -exports.pbkdf2 = pbkdf2; -// Combines two 32-byte byte arrays -function xor32(a, b) { - (0, _assert_js_1.bytes)(a, 32); - (0, _assert_js_1.bytes)(b, 32); - const arr = new Uint8Array(32); - for (let i = 0; i < 32; i++) { - arr[i] = a[i] ^ b[i]; - } - return arr; -} -function strHasLength(str, min, max) { - return typeof str === 'string' && str.length >= min && str.length <= max; -} -/** - * Derives main seed. Takes a lot of time. Prefer `eskdf` method instead. - */ -function deriveMainSeed(username, password) { - if (!strHasLength(username, 8, 255)) - throw new Error('invalid username'); - if (!strHasLength(password, 8, 255)) - throw new Error('invalid password'); - const scr = scrypt(password + '\u{1}', username + '\u{1}'); - const pbk = pbkdf2(password + '\u{2}', username + '\u{2}'); - const res = xor32(scr, pbk); - scr.fill(0); - pbk.fill(0); - return res; -} -exports.deriveMainSeed = deriveMainSeed; -/** - * Converts protocol & accountId pair to HKDF salt & info params. - */ -function getSaltInfo(protocol, accountId = 0) { - // Note that length here also repeats two lines below - // We do an additional length check here to reduce the scope of DoS attacks - if (!(strHasLength(protocol, 3, 15) && /^[a-z0-9]{3,15}$/.test(protocol))) { - throw new Error('invalid protocol'); - } - // Allow string account ids for some protocols - const allowsStr = /^password\d{0,3}|ssh|tor|file$/.test(protocol); - let salt; // Extract salt. Default is undefined. - if (typeof accountId === 'string') { - if (!allowsStr) - throw new Error('accountId must be a number'); - if (!strHasLength(accountId, 1, 255)) - throw new Error('accountId must be valid string'); - salt = (0, utils_js_1.toBytes)(accountId); - } - else if (Number.isSafeInteger(accountId)) { - if (accountId < 0 || accountId > 2 ** 32 - 1) - throw new Error('invalid accountId'); - // Convert to Big Endian Uint32 - salt = new Uint8Array(4); - (0, utils_js_1.createView)(salt).setUint32(0, accountId, false); - } - else { - throw new Error(`accountId must be a number${allowsStr ? ' or string' : ''}`); - } - const info = (0, utils_js_1.toBytes)(protocol); - return { salt, info }; -} -function countBytes(num) { - if (typeof num !== 'bigint' || num <= BigInt(128)) - throw new Error('invalid number'); - return Math.ceil(num.toString(2).length / 8); -} -/** - * Parses keyLength and modulus options to extract length of result key. - * If modulus is used, adds 64 bits to it as per FIPS 186 B.4.1 to combat modulo bias. - */ -function getKeyLength(options) { - if (!options || typeof options !== 'object') - return 32; - const hasLen = 'keyLength' in options; - const hasMod = 'modulus' in options; - if (hasLen && hasMod) - throw new Error('cannot combine keyLength and modulus options'); - if (!hasLen && !hasMod) - throw new Error('must have either keyLength or modulus option'); - // FIPS 186 B.4.1 requires at least 64 more bits - const l = hasMod ? countBytes(options.modulus) + 8 : options.keyLength; - if (!(typeof l === 'number' && l >= 16 && l <= 8192)) - throw new Error('invalid keyLength'); - return l; -} -/** - * Converts key to bigint and divides it by modulus. Big Endian. - * Implements FIPS 186 B.4.1, which removes 0 and modulo bias from output. - */ -function modReduceKey(key, modulus) { - const _1 = BigInt(1); - const num = BigInt('0x' + (0, utils_js_1.bytesToHex)(key)); // check for ui8a, then bytesToNumber() - const res = (num % (modulus - _1)) + _1; // Remove 0 from output - if (res < _1) - throw new Error('expected positive number'); // Guard against bad values - const len = key.length - 8; // FIPS requires 64 more bits = 8 bytes - const hex = res.toString(16).padStart(len * 2, '0'); // numberToHex() - const bytes = (0, utils_js_1.hexToBytes)(hex); - if (bytes.length !== len) - throw new Error('invalid length of result key'); - return bytes; -} -/** - * ESKDF - * @param username - username, email, or identifier, min: 8 characters, should have enough entropy - * @param password - password, min: 8 characters, should have enough entropy - * @example - * const kdf = await eskdf('example-university', 'beginning-new-example'); - * const key = kdf.deriveChildKey('aes', 0); - * console.log(kdf.fingerprint); - * kdf.expire(); - */ -async function eskdf(username, password) { - // We are using closure + object instead of class because - // we want to make `seed` non-accessible for any external function. - let seed = deriveMainSeed(username, password); - function deriveCK(protocol, accountId = 0, options) { - (0, _assert_js_1.bytes)(seed, 32); - const { salt, info } = getSaltInfo(protocol, accountId); // validate protocol & accountId - const keyLength = getKeyLength(options); // validate options - const key = (0, hkdf_js_1.hkdf)(sha256_js_1.sha256, seed, salt, info, keyLength); - // Modulus has already been validated - return options && 'modulus' in options ? modReduceKey(key, options.modulus) : key; - } - function expire() { - if (seed) - seed.fill(1); - seed = undefined; - } - // prettier-ignore - const fingerprint = Array.from(deriveCK('fingerprint', 0)) - .slice(0, 6) - .map((char) => char.toString(16).padStart(2, '0').toUpperCase()) - .join(':'); - return Object.freeze({ deriveChildKey: deriveCK, expire, fingerprint }); -} -exports.eskdf = eskdf; -//# sourceMappingURL=eskdf.js.map \ No newline at end of file diff --git a/node_modules/@noble/hashes/eskdf.js.map b/node_modules/@noble/hashes/eskdf.js.map deleted file mode 100644 index 70c49e9f..00000000 --- a/node_modules/@noble/hashes/eskdf.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"eskdf.js","sourceRoot":"","sources":["src/eskdf.ts"],"names":[],"mappings":";;;AAAA,6CAAoD;AACpD,uCAAiC;AACjC,2CAAqC;AACrC,2CAAgD;AAChD,2CAAgD;AAChD,yCAAyE;AAEzE,wDAAwD;AACxD,gFAAgF;AAChF,sEAAsE;AAEtE,MAAM,aAAa,GAAG,CAAC,IAAI,EAAE,CAAC;AAC9B,MAAM,aAAa,GAAG,CAAC,IAAI,EAAE,CAAC;AAE9B,aAAa;AACb,SAAgB,MAAM,CAAC,QAAgB,EAAE,IAAY;IACnD,OAAO,IAAA,kBAAO,EAAC,QAAQ,EAAE,IAAI,EAAE,EAAE,CAAC,EAAE,aAAa,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;AAC9E,CAAC;AAFD,wBAEC;AAED,qBAAqB;AACrB,SAAgB,MAAM,CAAC,QAAgB,EAAE,IAAY;IACnD,OAAO,IAAA,kBAAO,EAAC,kBAAM,EAAE,QAAQ,EAAE,IAAI,EAAE,EAAE,CAAC,EAAE,aAAa,EAAE,KAAK,EAAE,EAAE,EAAE,CAAC,CAAC;AAC1E,CAAC;AAFD,wBAEC;AAED,mCAAmC;AACnC,SAAS,KAAK,CAAC,CAAa,EAAE,CAAa;IACzC,IAAA,kBAAW,EAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IACnB,IAAA,kBAAW,EAAC,CAAC,EAAE,EAAE,CAAC,CAAC;IACnB,MAAM,GAAG,GAAG,IAAI,UAAU,CAAC,EAAE,CAAC,CAAC;IAC/B,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,G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F,CAAC;IACD,SAAS,MAAM;QACb,IAAI,IAAI;YAAE,IAAI,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACvB,IAAI,GAAG,SAAS,CAAC;IACnB,CAAC;IACD,kBAAkB;IAClB,MAAM,WAAW,GAAG,KAAK,CAAC,IAAI,CAAC,QAAQ,CAAC,aAAa,EAAE,CAAC,CAAC,CAAC;SACvD,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC;SACX,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,EAAE,GAAG,CAAC,CAAC,WAAW,EAAE,CAAC;SAC/D,IAAI,CAAC,GAAG,CAAC,CAAC;IACb,OAAO,MAAM,CAAC,MAAM,CAAC,EAAE,cAAc,EAAE,QAAQ,EAAE,MAAM,EAAE,WAAW,EAAE,CAAC,CAAC;AAC1E,CAAC;AAvBD,sBAuBC"} \ No newline at end of file diff --git a/node_modules/@noble/hashes/esm/_assert.js b/node_modules/@noble/hashes/esm/_assert.js deleted file mode 100644 index 4259cea0..00000000 --- a/node_modules/@noble/hashes/esm/_assert.js +++ /dev/null @@ -1,37 +0,0 @@ -function number(n) { - if (!Number.isSafeInteger(n) || n < 0) - throw new Error(`Wrong positive integer: ${n}`); -} -function bool(b) { - if (typeof b !== 'boolean') - throw new Error(`Expected boolean, not ${b}`); -} -function bytes(b, ...lengths) { - if (!(b instanceof Uint8Array)) - throw new Error('Expected Uint8Array'); - if (lengths.length > 0 && !lengths.includes(b.length)) - throw new Error(`Expected Uint8Array of length ${lengths}, not of length=${b.length}`); -} -function hash(hash) { - if (typeof hash !== 'function' || typeof hash.create !== 'function') - throw new Error('Hash should be wrapped by utils.wrapConstructor'); - number(hash.outputLen); - number(hash.blockLen); -} -function exists(instance, checkFinished = true) { - if (instance.destroyed) - throw new Error('Hash instance has been destroyed'); - if (checkFinished && instance.finished) - throw new Error('Hash#digest() has already been called'); -} -function output(out, instance) { - bytes(out); - const min = instance.outputLen; - if (out.length < min) { - throw new Error(`digestInto() expects output buffer of length at least ${min}`); - } -} -export { number, bool, bytes, hash, exists, output }; -const assert = { number, bool, bytes, hash, exists, output }; -export default assert; -//# sourceMappingURL=_assert.js.map \ No newline at end of file diff --git a/node_modules/@noble/hashes/esm/_assert.js.map b/node_modules/@noble/hashes/esm/_assert.js.map deleted file mode 100644 index d8f294f7..00000000 --- a/node_modules/@noble/hashes/esm/_assert.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"_assert.js","sourceRoot":"","sources":["../src/_assert.ts"],"names":[],"mappings":"AAAA,SAAS,MAAM,CAAC,CAAS;IACvB,IAAI,CAAC,MAAM,CAAC,aAAa,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,2BAA2B,CAAC,EAAE,CAAC,CAAC;AACzF,CAAC;AAED,SAAS,IAAI,CAAC,CAAU;IACtB,IAAI,OAAO,CAAC,KAAK,SAAS;QAAE,MAAM,IAAI,KAAK,CAAC,yBAAyB,CAAC,EAAE,CAAC,CAAC;AAC5E,CAAC;AAED,SAAS,KAAK,CAAC,CAAyB,EAAE,GAAG,OAAiB;IAC5D,IAAI,CAAC,CAAC,CAAC,YAAY,UAAU,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,qBAAqB,CAAC,CAAC;IACvE,IAAI,OAAO,CAAC,MAAM,GAAG,CAAC,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,CAAC;QACnD,MAAM,IAAI,KAAK,CAAC,iCAAiC,OAAO,mBAAmB,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC;AAC3F,CAAC;AAQD,SAAS,IAAI,CAAC,IAAU;IACtB,IAAI,OAAO,IAAI,KAAK,UAAU,IAAI,OAAO,IAAI,CAAC,MAAM,KAAK,UAAU;QACjE,MAAM,IAAI,KAAK,CAAC,iDAAiD,CAAC,CAAC;IACrE,MAAM,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC;IACvB,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;AACxB,CAAC;AAED,SAAS,MAAM,CAAC,QAAa,EAAE,aAAa,GAAG,IAAI;IACjD,IAAI,QAAQ,CAAC,SAAS;QAAE,MAAM,IAAI,KAAK,CAAC,kCAAkC,CAAC,CAAC;IAC5E,IAAI,aAAa,IAAI,QAAQ,CAAC,QAAQ;QAAE,MAAM,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAC;AACnG,CAAC;AACD,SAAS,MAAM,CAAC,GAAQ,EAAE,QAAa;IACrC,KAAK,CAAC,GAAG,CAAC,CAAC;IACX,MAAM,GAAG,GAAG,QAAQ,CAAC,SAAS,CAAC;IAC/B,IAAI,GAAG,CAAC,MAAM,GAAG,GAAG,EAAE;QACpB,MAAM,IAAI,KAAK,CAAC,yDAAyD,GAAG,EAAE,CAAC,CAAC;KACjF;AACH,CAAC;AAED,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;AAErD,MAAM,MAAM,GAAG,EAAE,MAAM,EAAE,IAAI,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC;AAC7D,eAAe,MAAM,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/hashes/esm/_blake2.js b/node_modules/@noble/hashes/esm/_blake2.js deleted file mode 100644 index 948e01b9..00000000 --- a/node_modules/@noble/hashes/esm/_blake2.js +++ /dev/null @@ -1,108 +0,0 @@ -import { number, exists, output } from './_assert.js'; -import { Hash, toBytes, u32 } from './utils.js'; -// Blake is based on ChaCha permutation. -// For BLAKE2b, the two extra permutations for rounds 10 and 11 are SIGMA[10..11] = SIGMA[0..1]. -// prettier-ignore -export const SIGMA = /* @__PURE__ */ new Uint8Array([ - 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, - 14, 10, 4, 8, 9, 15, 13, 6, 1, 12, 0, 2, 11, 7, 5, 3, - 11, 8, 12, 0, 5, 2, 15, 13, 10, 14, 3, 6, 7, 1, 9, 4, - 7, 9, 3, 1, 13, 12, 11, 14, 2, 6, 5, 10, 4, 0, 15, 8, - 9, 0, 5, 7, 2, 4, 10, 15, 14, 1, 11, 12, 6, 8, 3, 13, - 2, 12, 6, 10, 0, 11, 8, 3, 4, 13, 7, 5, 15, 14, 1, 9, - 12, 5, 1, 15, 14, 13, 4, 10, 0, 7, 6, 3, 9, 2, 8, 11, - 13, 11, 7, 14, 12, 1, 3, 9, 5, 0, 15, 4, 8, 6, 2, 10, - 6, 15, 14, 9, 11, 3, 0, 8, 12, 2, 13, 7, 1, 4, 10, 5, - 10, 2, 8, 4, 7, 6, 1, 5, 15, 11, 9, 14, 3, 12, 13, 0, - 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, - 14, 10, 4, 8, 9, 15, 13, 6, 1, 12, 0, 2, 11, 7, 5, 3, -]); -export class BLAKE2 extends Hash { - constructor(blockLen, outputLen, opts = {}, keyLen, saltLen, persLen) { - super(); - this.blockLen = blockLen; - this.outputLen = outputLen; - this.length = 0; - this.pos = 0; - this.finished = false; - this.destroyed = false; - number(blockLen); - number(outputLen); - number(keyLen); - if (outputLen < 0 || outputLen > keyLen) - throw new Error('outputLen bigger than keyLen'); - if (opts.key !== undefined && (opts.key.length < 1 || opts.key.length > keyLen)) - throw new Error(`key must be up 1..${keyLen} byte long or undefined`); - if (opts.salt !== undefined && opts.salt.length !== saltLen) - throw new Error(`salt must be ${saltLen} byte long or undefined`); - if (opts.personalization !== undefined && opts.personalization.length !== persLen) - throw new Error(`personalization must be ${persLen} byte long or undefined`); - this.buffer32 = u32((this.buffer = new Uint8Array(blockLen))); - } - update(data) { - exists(this); - // Main difference with other hashes: there is flag for last block, - // so we cannot process current block before we know that there - // is the next one. This significantly complicates logic and reduces ability - // to do zero-copy processing - const { blockLen, buffer, buffer32 } = this; - data = toBytes(data); - const len = data.length; - const offset = data.byteOffset; - const buf = data.buffer; - for (let pos = 0; pos < len;) { - // If buffer is full and we still have input (don't process last block, same as blake2s) - if (this.pos === blockLen) { - this.compress(buffer32, 0, false); - this.pos = 0; - } - const take = Math.min(blockLen - this.pos, len - pos); - const dataOffset = offset + pos; - // full block && aligned to 4 bytes && not last in input - if (take === blockLen && !(dataOffset % 4) && pos + take < len) { - const data32 = new Uint32Array(buf, dataOffset, Math.floor((len - pos) / 4)); - for (let pos32 = 0; pos + blockLen < len; pos32 += buffer32.length, pos += blockLen) { - this.length += blockLen; - this.compress(data32, pos32, false); - } - continue; - } - buffer.set(data.subarray(pos, pos + take), this.pos); - this.pos += take; - this.length += take; - pos += take; - } - return this; - } - digestInto(out) { - exists(this); - output(out, this); - const { pos, buffer32 } = this; - this.finished = true; - // Padding - this.buffer.subarray(pos).fill(0); - this.compress(buffer32, 0, true); - const out32 = u32(out); - this.get().forEach((v, i) => (out32[i] = v)); - } - digest() { - const { buffer, outputLen } = this; - this.digestInto(buffer); - const res = buffer.slice(0, outputLen); - this.destroy(); - return res; - } - _cloneInto(to) { - const { buffer, length, finished, destroyed, outputLen, pos } = this; - to || (to = new this.constructor({ dkLen: outputLen })); - to.set(...this.get()); - to.length = length; - to.finished = finished; - to.destroyed = destroyed; - to.outputLen = outputLen; - to.buffer.set(buffer); - to.pos = pos; - return to; - } -} -//# sourceMappingURL=_blake2.js.map \ No newline at end of file diff --git a/node_modules/@noble/hashes/esm/_blake2.js.map b/node_modules/@noble/hashes/esm/_blake2.js.map deleted file mode 100644 index 4222d074..00000000 --- a/node_modules/@noble/hashes/esm/_blake2.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"_blake2.js","sourceRoot":"","sources":["../src/_blake2.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,EAAE,I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AAC;QACvC,IAAI,CAAC,OAAO,EAAE,CAAC;QACf,OAAO,GAAG,CAAC;IACb,CAAC;IACD,UAAU,CAAC,EAAM;QACf,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,SAAS,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;QACrE,EAAE,KAAF,EAAE,GAAK,IAAK,IAAI,CAAC,WAAmB,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,CAAM,EAAC;QAChE,EAAE,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;QACtB,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC;QACnB,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACvB,EAAE,CAAC,SAAS,GAAG,SAAS,CAAC;QACzB,EAAE,CAAC,SAAS,GAAG,SAAS,CAAC;QACzB,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QACtB,EAAE,CAAC,GAAG,GAAG,GAAG,CAAC;QACb,OAAO,EAAE,CAAC;IACZ,CAAC;CACF"} \ No newline at end of file diff --git a/node_modules/@noble/hashes/esm/_sha2.js b/node_modules/@noble/hashes/esm/_sha2.js deleted file mode 100644 index cd26ea45..00000000 --- a/node_modules/@noble/hashes/esm/_sha2.js +++ /dev/null @@ -1,114 +0,0 @@ -import { exists, output } from './_assert.js'; -import { Hash, createView, toBytes } from './utils.js'; -// Polyfill for Safari 14 -function setBigUint64(view, byteOffset, value, isLE) { - if (typeof view.setBigUint64 === 'function') - return view.setBigUint64(byteOffset, value, isLE); - const _32n = BigInt(32); - const _u32_max = BigInt(0xffffffff); - const wh = Number((value >> _32n) & _u32_max); - const wl = Number(value & _u32_max); - const h = isLE ? 4 : 0; - const l = isLE ? 0 : 4; - view.setUint32(byteOffset + h, wh, isLE); - view.setUint32(byteOffset + l, wl, isLE); -} -// Base SHA2 class (RFC 6234) -export class SHA2 extends Hash { - constructor(blockLen, outputLen, padOffset, isLE) { - super(); - this.blockLen = blockLen; - this.outputLen = outputLen; - this.padOffset = padOffset; - this.isLE = isLE; - this.finished = false; - this.length = 0; - this.pos = 0; - this.destroyed = false; - this.buffer = new Uint8Array(blockLen); - this.view = createView(this.buffer); - } - update(data) { - exists(this); - const { view, buffer, blockLen } = this; - data = toBytes(data); - const len = data.length; - for (let pos = 0; pos < len;) { - const take = Math.min(blockLen - this.pos, len - pos); - // Fast path: we have at least one block in input, cast it to view and process - if (take === blockLen) { - const dataView = createView(data); - for (; blockLen <= len - pos; pos += blockLen) - this.process(dataView, pos); - continue; - } - buffer.set(data.subarray(pos, pos + take), this.pos); - this.pos += take; - pos += take; - if (this.pos === blockLen) { - this.process(view, 0); - this.pos = 0; - } - } - this.length += data.length; - this.roundClean(); - return this; - } - digestInto(out) { - exists(this); - output(out, this); - this.finished = true; - // Padding - // We can avoid allocation of buffer for padding completely if it - // was previously not allocated here. But it won't change performance. - const { buffer, view, blockLen, isLE } = this; - let { pos } = this; - // append the bit '1' to the message - buffer[pos++] = 0b10000000; - this.buffer.subarray(pos).fill(0); - // we have less than padOffset left in buffer, so we cannot put length in current block, need process it and pad again - if (this.padOffset > blockLen - pos) { - this.process(view, 0); - pos = 0; - } - // Pad until full block byte with zeros - for (let i = pos; i < blockLen; i++) - buffer[i] = 0; - // Note: sha512 requires length to be 128bit integer, but length in JS will overflow before that - // You need to write around 2 exabytes (u64_max / 8 / (1024**6)) for this to happen. - // So we just write lowest 64 bits of that value. - setBigUint64(view, blockLen - 8, BigInt(this.length * 8), isLE); - this.process(view, 0); - const oview = createView(out); - const len = this.outputLen; - // NOTE: we do division by 4 later, which should be fused in single op with modulo by JIT - if (len % 4) - throw new Error('_sha2: outputLen should be aligned to 32bit'); - const outLen = len / 4; - const state = this.get(); - if (outLen > state.length) - throw new Error('_sha2: outputLen bigger than state'); - for (let i = 0; i < outLen; i++) - oview.setUint32(4 * i, state[i], isLE); - } - digest() { - const { buffer, outputLen } = this; - this.digestInto(buffer); - const res = buffer.slice(0, outputLen); - this.destroy(); - return res; - } - _cloneInto(to) { - to || (to = new this.constructor()); - to.set(...this.get()); - const { blockLen, buffer, length, finished, destroyed, pos } = this; - to.length = length; - to.pos = pos; - to.finished = finished; - to.destroyed = destroyed; - if (length % blockLen) - to.buffer.set(buffer); - return to; - } -} -//# sourceMappingURL=_sha2.js.map \ No newline at end of file diff --git a/node_modules/@noble/hashes/esm/_sha2.js.map b/node_modules/@noble/hashes/esm/_sha2.js.map deleted file mode 100644 index 1675e441..00000000 --- a/node_modules/@noble/hashes/esm/_sha2.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"_sha2.js","sourceRoot":"","sources":["../src/_sha2.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAE,IAAI,EAAE,UAAU,EAAS,OAAO,EAAE,MAAM,YAAY,CAAC;AAE9D,yBAAyB;AACzB,SAAS,YAAY,CAAC,IAAc,EAAE,UAAkB,EAAE,KAAa,EAAE,IAAa;IACpF,IAAI,OAAO,IAAI,CAAC,YAAY,KAAK,UAAU;QAAE,OAAO,IAAI,CAAC,YAAY,CAAC,UAAU,EAAE,KAAK,EAAE,IAAI,CAAC,CAAC;IAC/F,MAAM,IAAI,GAAG,MAAM,CAAC,EAAE,CAAC,CAAC;IACxB,MAAM,QAAQ,GAAG,MAAM,CAAC,UAAU,CAAC,CAAC;IACpC,MAAM,EAAE,GAAG,MAAM,CAAC,CAAC,KAAK,IAAI,IAAI,CAAC,GAAG,QAAQ,CAAC,CAAC;IAC9C,MAAM,EAAE,GAAG,MAAM,CAAC,KAAK,GAAG,QAAQ,CAAC,CAAC;IACpC,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;IACvB,MAAM,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,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C;QACvC,IAAI,CAAC,OAAO,EAAE,CAAC;QACf,OAAO,GAAG,CAAC;IACb,CAAC;IACD,UAAU,CAAC,EAAM;QACf,EAAE,KAAF,EAAE,GAAK,IAAK,IAAI,CAAC,WAAmB,EAAO,EAAC;QAC5C,EAAE,CAAC,GAAG,CAAC,GAAG,IAAI,CAAC,GAAG,EAAE,CAAC,CAAC;QACtB,MAAM,EAAE,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,GAAG,EAAE,GAAG,IAAI,CAAC;QACpE,EAAE,CAAC,MAAM,GAAG,MAAM,CAAC;QACnB,EAAE,CAAC,GAAG,GAAG,GAAG,CAAC;QACb,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACvB,EAAE,CAAC,SAAS,GAAG,SAAS,CAAC;QACzB,IAAI,MAAM,GAAG,QAAQ;YAAE,EAAE,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;QAC7C,OAAO,EAAE,CAAC;IACZ,CAAC;CACF"} \ No newline at end of file diff --git a/node_modules/@noble/hashes/esm/_u64.js b/node_modules/@noble/hashes/esm/_u64.js deleted file mode 100644 index 66cce47e..00000000 --- a/node_modules/@noble/hashes/esm/_u64.js +++ /dev/null @@ -1,62 +0,0 @@ -const U32_MASK64 = /* @__PURE__ */ BigInt(2 ** 32 - 1); -const _32n = /* @__PURE__ */ BigInt(32); -// We are not using BigUint64Array, because they are extremely slow as per 2022 -function fromBig(n, le = false) { - if (le) - return { h: Number(n & U32_MASK64), l: Number((n >> _32n) & U32_MASK64) }; - return { h: Number((n >> _32n) & U32_MASK64) | 0, l: Number(n & U32_MASK64) | 0 }; -} -function split(lst, le = false) { - let Ah = new Uint32Array(lst.length); - let Al = new Uint32Array(lst.length); - for (let i = 0; i < lst.length; i++) { - const { h, l } = fromBig(lst[i], le); - [Ah[i], Al[i]] = [h, l]; - } - return [Ah, Al]; -} -const toBig = (h, l) => (BigInt(h >>> 0) << _32n) | BigInt(l >>> 0); -// for Shift in [0, 32) -const shrSH = (h, _l, s) => h >>> s; -const shrSL = (h, l, s) => (h << (32 - s)) | (l >>> s); -// Right rotate for Shift in [1, 32) -const rotrSH = (h, l, s) => (h >>> s) | (l << (32 - s)); -const rotrSL = (h, l, s) => (h << (32 - s)) | (l >>> s); -// Right rotate for Shift in (32, 64), NOTE: 32 is special case. -const rotrBH = (h, l, s) => (h << (64 - s)) | (l >>> (s - 32)); -const rotrBL = (h, l, s) => (h >>> (s - 32)) | (l << (64 - s)); -// Right rotate for shift===32 (just swaps l&h) -const rotr32H = (_h, l) => l; -const rotr32L = (h, _l) => h; -// Left rotate for Shift in [1, 32) -const rotlSH = (h, l, s) => (h << s) | (l >>> (32 - s)); -const rotlSL = (h, l, s) => (l << s) | (h >>> (32 - s)); -// Left rotate for Shift in (32, 64), NOTE: 32 is special case. -const rotlBH = (h, l, s) => (l << (s - 32)) | (h >>> (64 - s)); -const rotlBL = (h, l, s) => (h << (s - 32)) | (l >>> (64 - s)); -// JS uses 32-bit signed integers for bitwise operations which means we cannot -// simple take carry out of low bit sum by shift, we need to use division. -function add(Ah, Al, Bh, Bl) { - const l = (Al >>> 0) + (Bl >>> 0); - return { h: (Ah + Bh + ((l / 2 ** 32) | 0)) | 0, l: l | 0 }; -} -// Addition with more than 2 elements -const add3L = (Al, Bl, Cl) => (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0); -const add3H = (low, Ah, Bh, Ch) => (Ah + Bh + Ch + ((low / 2 ** 32) | 0)) | 0; -const add4L = (Al, Bl, Cl, Dl) => (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0) + (Dl >>> 0); -const add4H = (low, Ah, Bh, Ch, Dh) => (Ah + Bh + Ch + Dh + ((low / 2 ** 32) | 0)) | 0; -const add5L = (Al, Bl, Cl, Dl, El) => (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0) + (Dl >>> 0) + (El >>> 0); -const add5H = (low, Ah, Bh, Ch, Dh, Eh) => (Ah + Bh + Ch + Dh + Eh + ((low / 2 ** 32) | 0)) | 0; -// prettier-ignore -export { fromBig, split, toBig, shrSH, shrSL, rotrSH, rotrSL, rotrBH, rotrBL, rotr32H, rotr32L, rotlSH, rotlSL, rotlBH, rotlBL, add, add3L, add3H, add4L, add4H, add5H, add5L, }; -// prettier-ignore -const u64 = { - fromBig, split, toBig, - shrSH, shrSL, - rotrSH, rotrSL, rotrBH, rotrBL, - rotr32H, rotr32L, - rotlSH, rotlSL, rotlBH, rotlBL, - add, add3L, add3H, add4L, add4H, add5H, add5L, -}; -export default u64; -//# sourceMappingURL=_u64.js.map \ No newline at end of file diff --git a/node_modules/@noble/hashes/esm/_u64.js.map b/node_modules/@noble/hashes/esm/_u64.js.map deleted file mode 100644 index b2339ed7..00000000 --- a/node_modules/@noble/hashes/esm/_u64.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"_u64.js","sourceRoot":"","sources":["../src/_u64.ts"],"names":[],"mappings":"AAAA,MAAM,UAAU,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC;AACvD,MAAM,IAAI,GAAG,eAAe,CAAC,MAAM,CAAC,EAAE,CAAC,CAAC;AAExC,+EAA+E;AAC/E,SAAS,OAAO,CAAC,CAAS,EAAE,EAAE,GAAG,KAAK;IACpC,IAAI,EAAE;QAAE,OAAO,EAAE,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,UAAU,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,GAAG,UAAU,CAAC,EAAE,CAAC;IAClF,OAAO,EAAE,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC,GAAG,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,MAAM,CAAC,CAAC,GAAG,UAAU,CAAC,GAAG,CAAC,EAAE,CAAC;AACpF,CAAC;AAED,SAAS,KAAK,CAAC,GAAa,EA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ClB,MAAM,GAAG,GAAG;IACV,OAAO,EAAE,KAAK,EAAE,KAAK;IACrB,KAAK,EAAE,KAAK;IACZ,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;IAC9B,OAAO,EAAE,OAAO;IAChB,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM;IAC9B,GAAG,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK,EAAE,KAAK;CAC9C,CAAC;AACF,eAAe,GAAG,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/hashes/esm/argon2.js b/node_modules/@noble/hashes/esm/argon2.js deleted file mode 100644 index 1e5a6b08..00000000 --- a/node_modules/@noble/hashes/esm/argon2.js +++ /dev/null @@ -1,297 +0,0 @@ -import { number as assertNumber } from './_assert.js'; -import { toBytes, u8, u32 } from './utils.js'; -import { blake2b } from './blake2b.js'; -import { add3H, add3L, rotr32H, rotr32L, rotrBH, rotrBL, rotrSH, rotrSL } from './_u64.js'; -const ARGON2_SYNC_POINTS = 4; -const toBytesOptional = (buf) => (buf !== undefined ? toBytes(buf) : new Uint8Array([])); -function mul(a, b) { - const aL = a & 0xffff; - const aH = a >>> 16; - const bL = b & 0xffff; - const bH = b >>> 16; - const ll = Math.imul(aL, bL); - const hl = Math.imul(aH, bL); - const lh = Math.imul(aL, bH); - const hh = Math.imul(aH, bH); - const BUF = ((ll >>> 16) + (hl & 0xffff) + lh) | 0; - const h = ((hl >>> 16) + (BUF >>> 16) + hh) | 0; - return { h, l: (BUF << 16) | (ll & 0xffff) }; -} -function relPos(areaSize, relativePos) { - // areaSize - 1 - ((areaSize * ((relativePos ** 2) >>> 32)) >>> 32) - return areaSize - 1 - mul(areaSize, mul(relativePos, relativePos).h).h; -} -function mul2(a, b) { - // 2 * a * b (via shifts) - const { h, l } = mul(a, b); - return { h: ((h << 1) | (l >>> 31)) & 4294967295, l: (l << 1) & 4294967295 }; -} -function blamka(Ah, Al, Bh, Bl) { - const { h: Ch, l: Cl } = mul2(Al, Bl); - // A + B + (2 * A * B) - const Rll = add3L(Al, Bl, Cl); - return { h: add3H(Rll, Ah, Bh, Ch), l: Rll | 0 }; -} -// Temporary block buffer -const BUF = new Uint32Array(256); -function G(a, b, c, d) { - let Al = BUF[2 * a], Ah = BUF[2 * a + 1]; // prettier-ignore - let Bl = BUF[2 * b], Bh = BUF[2 * b + 1]; // prettier-ignore - let Cl = BUF[2 * c], Ch = BUF[2 * c + 1]; // prettier-ignore - let Dl = BUF[2 * d], Dh = BUF[2 * d + 1]; // prettier-ignore - ({ h: Ah, l: Al } = blamka(Ah, Al, Bh, Bl)); - ({ Dh, Dl } = { Dh: Dh ^ Ah, Dl: Dl ^ Al }); - ({ Dh, Dl } = { Dh: rotr32H(Dh, Dl), Dl: rotr32L(Dh, Dl) }); - ({ h: Ch, l: Cl } = blamka(Ch, Cl, Dh, Dl)); - ({ Bh, Bl } = { Bh: Bh ^ Ch, Bl: Bl ^ Cl }); - ({ Bh, Bl } = { Bh: rotrSH(Bh, Bl, 24), Bl: rotrSL(Bh, Bl, 24) }); - ({ h: Ah, l: Al } = blamka(Ah, Al, Bh, Bl)); - ({ Dh, Dl } = { Dh: Dh ^ Ah, Dl: Dl ^ Al }); - ({ Dh, Dl } = { Dh: rotrSH(Dh, Dl, 16), Dl: rotrSL(Dh, Dl, 16) }); - ({ h: Ch, l: Cl } = blamka(Ch, Cl, Dh, Dl)); - ({ Bh, Bl } = { Bh: Bh ^ Ch, Bl: Bl ^ Cl }); - ({ Bh, Bl } = { Bh: rotrBH(Bh, Bl, 63), Bl: rotrBL(Bh, Bl, 63) }); - (BUF[2 * a] = Al), (BUF[2 * a + 1] = Ah); - (BUF[2 * b] = Bl), (BUF[2 * b + 1] = Bh); - (BUF[2 * c] = Cl), (BUF[2 * c + 1] = Ch); - (BUF[2 * d] = Dl), (BUF[2 * d + 1] = Dh); -} -// prettier-ignore -function P(v00, v01, v02, v03, v04, v05, v06, v07, v08, v09, v10, v11, v12, v13, v14, v15) { - G(v00, v04, v08, v12); - G(v01, v05, v09, v13); - G(v02, v06, v10, v14); - G(v03, v07, v11, v15); - G(v00, v05, v10, v15); - G(v01, v06, v11, v12); - G(v02, v07, v08, v13); - G(v03, v04, v09, v14); -} -function block(x, xPos, yPos, outPos, needXor) { - for (let i = 0; i < 256; i++) - BUF[i] = x[xPos + i] ^ x[yPos + i]; - // columns - for (let i = 0; i < 128; i += 16) { - // prettier-ignore - P(i, i + 1, i + 2, i + 3, i + 4, i + 5, i + 6, i + 7, i + 8, i + 9, i + 10, i + 11, i + 12, i + 13, i + 14, i + 15); - } - // rows - for (let i = 0; i < 16; i += 2) { - // prettier-ignore - P(i, i + 1, i + 16, i + 17, i + 32, i + 33, i + 48, i + 49, i + 64, i + 65, i + 80, i + 81, i + 96, i + 97, i + 112, i + 113); - } - if (needXor) - for (let i = 0; i < 256; i++) - x[outPos + i] ^= BUF[i] ^ x[xPos + i] ^ x[yPos + i]; - else - for (let i = 0; i < 256; i++) - x[outPos + i] = BUF[i] ^ x[xPos + i] ^ x[yPos + i]; -} -// Variable-Length Hash Function H' -function Hp(A, dkLen) { - const A8 = u8(A); - const T = new Uint32Array(1); - const T8 = u8(T); - T[0] = dkLen; - // Fast path - if (dkLen <= 64) - return blake2b.create({ dkLen }).update(T8).update(A8).digest(); - const out = new Uint8Array(dkLen); - let V = blake2b.create({}).update(T8).update(A8).digest(); - let pos = 0; - // First block - out.set(V.subarray(0, 32)); - pos += 32; - // Rest blocks - for (; dkLen - pos > 64; pos += 32) - out.set((V = blake2b(V)).subarray(0, 32), pos); - // Last block - out.set(blake2b(V, { dkLen: dkLen - pos }), pos); - return u32(out); -} -function indexAlpha(r, s, laneLen, segmentLen, index, randL, sameLane = false) { - let area; - if (0 == r) { - if (0 == s) - area = index - 1; - else if (sameLane) - area = s * segmentLen + index - 1; - else - area = s * segmentLen + (index == 0 ? -1 : 0); - } - else if (sameLane) - area = laneLen - segmentLen + index - 1; - else - area = laneLen - segmentLen + (index == 0 ? -1 : 0); - const startPos = r !== 0 && s !== ARGON2_SYNC_POINTS - 1 ? (s + 1) * segmentLen : 0; - const rel = relPos(area, randL); - // NOTE: check about overflows here - // absPos = (startPos + relPos) % laneLength; - return (startPos + rel) % laneLen; -} -function argon2Init(type, password, salt, opts) { - password = toBytes(password); - salt = toBytes(salt); - let { p, dkLen, m, t, version, key, personalization, maxmem, onProgress } = { - ...opts, - version: opts.version || 0x13, - dkLen: opts.dkLen || 32, - maxmem: 2 ** 32, - }; - // Validation - assertNumber(p); - assertNumber(dkLen); - assertNumber(m); - assertNumber(t); - assertNumber(version); - if (dkLen < 4 || dkLen >= 2 ** 32) - throw new Error('Argon2: dkLen should be at least 4 bytes'); - if (p < 1 || p >= 2 ** 32) - throw new Error('Argon2: p (parallelism) should be at least 1'); - if (t < 1 || t >= 2 ** 32) - throw new Error('Argon2: t (iterations) should be at least 1'); - if (m < 8 * p) - throw new Error(`Argon2: memory should be at least 8*p bytes`); - if (version !== 16 && version !== 19) - throw new Error(`Argon2: unknown version=${version}`); - password = toBytes(password); - if (password.length < 0 || password.length >= 2 ** 32) - throw new Error('Argon2: password should be less than 4 GB'); - salt = toBytes(salt); - if (salt.length < 8) - throw new Error('Argon2: salt should be at least 8 bytes'); - key = toBytesOptional(key); - personalization = toBytesOptional(personalization); - if (onProgress !== undefined && typeof onProgress !== 'function') - throw new Error('progressCb should be function'); - // Params - const lanes = p; - // m' = 4 * p * floor (m / 4p) - const mP = 4 * p * Math.floor(m / (ARGON2_SYNC_POINTS * p)); - //q = m' / p columns - const laneLen = Math.floor(mP / p); - const segmentLen = Math.floor(laneLen / ARGON2_SYNC_POINTS); - // H0 - const h = blake2b.create({}); - const BUF = new Uint32Array(1); - const BUF8 = u8(BUF); - for (const i of [p, dkLen, m, t, version, type]) { - if (i < 0 || i >= 2 ** 32) - throw new Error(`Argon2: wrong parameter=${i}, expected uint32`); - BUF[0] = i; - h.update(BUF8); - } - for (let i of [password, salt, key, personalization]) { - BUF[0] = i.length; - h.update(BUF8).update(i); - } - const H0 = new Uint32Array(18); - const H0_8 = u8(H0); - h.digestInto(H0_8); - // 256 u32 = 1024 (BLOCK_SIZE) - const memUsed = mP * 256; - if (memUsed < 0 || memUsed >= 2 ** 32 || memUsed > maxmem) { - throw new Error(`Argon2: wrong params (memUsed=${memUsed} maxmem=${maxmem}), should be less than 2**32`); - } - const B = new Uint32Array(memUsed); - // Fill first blocks - for (let l = 0; l < p; l++) { - const i = 256 * laneLen * l; - // B[i][0] = H'^(1024)(H_0 || LE32(0) || LE32(i)) - H0[17] = l; - H0[16] = 0; - B.set(Hp(H0, 1024), i); - // B[i][1] = H'^(1024)(H_0 || LE32(1) || LE32(i)) - H0[16] = 1; - B.set(Hp(H0, 1024), i + 256); - } - let perBlock = () => { }; - if (onProgress) { - const totalBlock = t * ARGON2_SYNC_POINTS * p * segmentLen; - // Invoke callback if progress changes from 10.01 to 10.02 - // Allows to draw smooth progress bar on up to 8K screen - const callbackPer = Math.max(Math.floor(totalBlock / 10000), 1); - let blockCnt = 0; - perBlock = () => { - blockCnt++; - if (onProgress && (!(blockCnt % callbackPer) || blockCnt === totalBlock)) - onProgress(blockCnt / totalBlock); - }; - } - return { type, mP, p, t, version, B, laneLen, lanes, segmentLen, dkLen, perBlock }; -} -function argon2Output(B, p, laneLen, dkLen) { - const B_final = new Uint32Array(256); - for (let l = 0; l < p; l++) - for (let j = 0; j < 256; j++) - B_final[j] ^= B[256 * (laneLen * l + laneLen - 1) + j]; - return u8(Hp(B_final, dkLen)); -} -function processBlock(B, address, l, r, s, index, laneLen, segmentLen, lanes, offset, prev, dataIndependent, needXor) { - if (offset % laneLen) - prev = offset - 1; - let randL, randH; - if (dataIndependent) { - if (index % 128 === 0) { - address[256 + 12]++; - block(address, 256, 2 * 256, 0, false); - block(address, 0, 2 * 256, 0, false); - } - randL = address[2 * (index % 128)]; - randH = address[2 * (index % 128) + 1]; - } - else { - const T = 256 * prev; - randL = B[T]; - randH = B[T + 1]; - } - // address block - const refLane = r === 0 && s === 0 ? l : randH % lanes; - const refPos = indexAlpha(r, s, laneLen, segmentLen, index, randL, refLane == l); - const refBlock = laneLen * refLane + refPos; - // B[i][j] = G(B[i][j-1], B[l][z]) - block(B, 256 * prev, 256 * refBlock, offset * 256, needXor); -} -function argon2(type, password, salt, opts) { - const { mP, p, t, version, B, laneLen, lanes, segmentLen, dkLen, perBlock } = argon2Init(type, password, salt, opts); - // Pre-loop setup - // [address, input, zero_block] format so we can pass single U32 to block function - const address = new Uint32Array(3 * 256); - address[256 + 6] = mP; - address[256 + 8] = t; - address[256 + 10] = type; - for (let r = 0; r < t; r++) { - const needXor = r !== 0 && version === 0x13; - address[256 + 0] = r; - for (let s = 0; s < ARGON2_SYNC_POINTS; s++) { - address[256 + 4] = s; - const dataIndependent = type == 1 /* Types.Argon2i */ || (type == 2 /* Types.Argon2id */ && r === 0 && s < 2); - for (let l = 0; l < p; l++) { - address[256 + 2] = l; - address[256 + 12] = 0; - let startPos = 0; - if (r === 0 && s === 0) { - startPos = 2; - if (dataIndependent) { - address[256 + 12]++; - block(address, 256, 2 * 256, 0, false); - block(address, 0, 2 * 256, 0, false); - } - } - // current block postion - let offset = l * laneLen + s * segmentLen + startPos; - // previous block position - let prev = offset % laneLen ? offset - 1 : offset + laneLen - 1; - for (let index = startPos; index < segmentLen; index++, offset++, prev++) { - perBlock(); - processBlock(B, address, l, r, s, index, laneLen, segmentLen, lanes, offset, prev, dataIndependent, needXor); - } - } - } - } - return argon2Output(B, p, laneLen, dkLen); -} -export const argon2d = (password, salt, opts) => argon2(0 /* Types.Argond2d */, password, salt, opts); -export const argon2i = (password, salt, opts) => argon2(1 /* Types.Argon2i */, password, salt, opts); -export const argon2id = (password, salt, opts) => argon2(2 /* Types.Argon2id */, password, salt, opts); -//# sourceMappingURL=argon2.js.map \ No newline at end of file diff --git a/node_modules/@noble/hashes/esm/argon2.js.map b/node_modules/@noble/hashes/esm/argon2.js.map deleted file mode 100644 index 267eb62f..00000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C,MAAM,OAAO,GAAG,CAAC,QAAe,EAAE,IAAW,EAAE,IAAe,EAAE,EAAE,CACvE,MAAM,yBAAiB,QAAQ,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AAC/C,MAAM,CAAC,MAAM,OAAO,GAAG,CAAC,QAAe,EAAE,IAAW,EAAE,IAAe,EAAE,EAAE,CACvE,MAAM,wBAAgB,QAAQ,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC;AAC9C,MAAM,CAAC,MAAM,QAAQ,GAAG,CAAC,QAAe,EAAE,IAAW,EAAE,IAAe,EAAE,EAAE,CACxE,MAAM,yBAAiB,QAAQ,EAAE,IAAI,EAAE,IAAI,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/hashes/esm/blake2b.js b/node_modules/@noble/hashes/esm/blake2b.js deleted file mode 100644 index 29cecc5a..00000000 --- a/node_modules/@noble/hashes/esm/blake2b.js +++ /dev/null @@ -1,189 +0,0 @@ -import { BLAKE2, SIGMA } from './_blake2.js'; -import u64 from './_u64.js'; -import { toBytes, u32, wrapConstructorWithOpts } from './utils.js'; -// Same as SHA-512 but LE -// prettier-ignore -const IV = /* @__PURE__ */ new Uint32Array([ - 0xf3bcc908, 0x6a09e667, 0x84caa73b, 0xbb67ae85, 0xfe94f82b, 0x3c6ef372, 0x5f1d36f1, 0xa54ff53a, - 0xade682d1, 0x510e527f, 0x2b3e6c1f, 0x9b05688c, 0xfb41bd6b, 0x1f83d9ab, 0x137e2179, 0x5be0cd19 -]); -// Temporary buffer -const BUF = /* @__PURE__ */ new Uint32Array(32); -// Mixing function G splitted in two halfs -function G1(a, b, c, d, msg, x) { - // NOTE: V is LE here - const Xl = msg[x], Xh = msg[x + 1]; // prettier-ignore - let Al = BUF[2 * a], Ah = BUF[2 * a + 1]; // prettier-ignore - let Bl = BUF[2 * b], Bh = BUF[2 * b + 1]; // prettier-ignore - let Cl = BUF[2 * c], Ch = BUF[2 * c + 1]; // prettier-ignore - let Dl = BUF[2 * d], Dh = BUF[2 * d + 1]; // prettier-ignore - // v[a] = (v[a] + v[b] + x) | 0; - let ll = u64.add3L(Al, Bl, Xl); - Ah = u64.add3H(ll, Ah, Bh, Xh); - Al = ll | 0; - // v[d] = rotr(v[d] ^ v[a], 32) - ({ Dh, Dl } = { Dh: Dh ^ Ah, Dl: Dl ^ Al }); - ({ Dh, Dl } = { Dh: u64.rotr32H(Dh, Dl), Dl: u64.rotr32L(Dh, Dl) }); - // v[c] = (v[c] + v[d]) | 0; - ({ h: Ch, l: Cl } = u64.add(Ch, Cl, Dh, Dl)); - // v[b] = rotr(v[b] ^ v[c], 24) - ({ Bh, Bl } = { Bh: Bh ^ Ch, Bl: Bl ^ Cl }); - ({ Bh, Bl } = { Bh: u64.rotrSH(Bh, Bl, 24), Bl: u64.rotrSL(Bh, Bl, 24) }); - (BUF[2 * a] = Al), (BUF[2 * a + 1] = Ah); - (BUF[2 * b] = Bl), (BUF[2 * b + 1] = Bh); - (BUF[2 * c] = Cl), (BUF[2 * c + 1] = Ch); - (BUF[2 * d] = Dl), (BUF[2 * d + 1] = Dh); -} -function G2(a, b, c, d, msg, x) { - // NOTE: V is LE here - const Xl = msg[x], Xh = msg[x + 1]; // prettier-ignore - let Al = BUF[2 * a], Ah = BUF[2 * a + 1]; // prettier-ignore - let Bl = BUF[2 * b], Bh = BUF[2 * b + 1]; // prettier-ignore - let Cl = BUF[2 * c], Ch = BUF[2 * c + 1]; // prettier-ignore - let Dl = BUF[2 * d], Dh = BUF[2 * d + 1]; // prettier-ignore - // v[a] = (v[a] + v[b] + x) | 0; - let ll = u64.add3L(Al, Bl, Xl); - Ah = u64.add3H(ll, Ah, Bh, Xh); - Al = ll | 0; - // v[d] = rotr(v[d] ^ v[a], 16) - ({ Dh, Dl } = { Dh: Dh ^ Ah, Dl: Dl ^ Al }); - ({ Dh, Dl } = { Dh: u64.rotrSH(Dh, Dl, 16), Dl: u64.rotrSL(Dh, Dl, 16) }); - // v[c] = (v[c] + v[d]) | 0; - ({ h: Ch, l: Cl } = u64.add(Ch, Cl, Dh, Dl)); - // v[b] = rotr(v[b] ^ v[c], 63) - ({ Bh, Bl } = { Bh: Bh ^ Ch, Bl: Bl ^ Cl }); - ({ Bh, Bl } = { Bh: u64.rotrBH(Bh, Bl, 63), Bl: u64.rotrBL(Bh, Bl, 63) }); - (BUF[2 * a] = Al), (BUF[2 * a + 1] = Ah); - (BUF[2 * b] = Bl), (BUF[2 * b + 1] = Bh); - (BUF[2 * c] = Cl), (BUF[2 * c + 1] = Ch); - (BUF[2 * d] = Dl), (BUF[2 * d + 1] = Dh); -} -class BLAKE2b extends BLAKE2 { - constructor(opts = {}) { - super(128, opts.dkLen === undefined ? 64 : opts.dkLen, opts, 64, 16, 16); - // Same as SHA-512, but LE - this.v0l = IV[0] | 0; - this.v0h = IV[1] | 0; - this.v1l = IV[2] | 0; - this.v1h = IV[3] | 0; - this.v2l = IV[4] | 0; - this.v2h = IV[5] | 0; - this.v3l = IV[6] | 0; - this.v3h = IV[7] | 0; - this.v4l = IV[8] | 0; - this.v4h = IV[9] | 0; - this.v5l = IV[10] | 0; - this.v5h = IV[11] | 0; - this.v6l = IV[12] | 0; - this.v6h = IV[13] | 0; - this.v7l = IV[14] | 0; - this.v7h = IV[15] | 0; - const keyLength = opts.key ? opts.key.length : 0; - this.v0l ^= this.outputLen | (keyLength << 8) | (0x01 << 16) | (0x01 << 24); - if (opts.salt) { - const salt = u32(toBytes(opts.salt)); - this.v4l ^= salt[0]; - this.v4h ^= salt[1]; - this.v5l ^= salt[2]; - this.v5h ^= salt[3]; - } - if (opts.personalization) { - const pers = u32(toBytes(opts.personalization)); - this.v6l ^= pers[0]; - this.v6h ^= pers[1]; - this.v7l ^= pers[2]; - this.v7h ^= pers[3]; - } - if (opts.key) { - // Pad to blockLen and update - const tmp = new Uint8Array(this.blockLen); - tmp.set(toBytes(opts.key)); - this.update(tmp); - } - } - // prettier-ignore - get() { - let { v0l, v0h, v1l, v1h, v2l, v2h, v3l, v3h, v4l, v4h, v5l, v5h, v6l, v6h, v7l, v7h } = this; - return [v0l, v0h, v1l, v1h, v2l, v2h, v3l, v3h, v4l, v4h, v5l, v5h, v6l, v6h, v7l, v7h]; - } - // prettier-ignore - set(v0l, v0h, v1l, v1h, v2l, v2h, v3l, v3h, v4l, v4h, v5l, v5h, v6l, v6h, v7l, v7h) { - this.v0l = v0l | 0; - this.v0h = v0h | 0; - this.v1l = v1l | 0; - this.v1h = v1h | 0; - this.v2l = v2l | 0; - this.v2h = v2h | 0; - this.v3l = v3l | 0; - this.v3h = v3h | 0; - this.v4l = v4l | 0; - this.v4h = v4h | 0; - this.v5l = v5l | 0; - this.v5h = v5h | 0; - this.v6l = v6l | 0; - this.v6h = v6h | 0; - this.v7l = v7l | 0; - this.v7h = v7h | 0; - } - compress(msg, offset, isLast) { - this.get().forEach((v, i) => (BUF[i] = v)); // First half from state. - BUF.set(IV, 16); // Second half from IV. - let { h, l } = u64.fromBig(BigInt(this.length)); - BUF[24] = IV[8] ^ l; // Low word of the offset. - BUF[25] = IV[9] ^ h; // High word. - // Invert all bits for last block - if (isLast) { - BUF[28] = ~BUF[28]; - BUF[29] = ~BUF[29]; - } - let j = 0; - const s = SIGMA; - for (let i = 0; i < 12; i++) { - G1(0, 4, 8, 12, msg, offset + 2 * s[j++]); - G2(0, 4, 8, 12, msg, offset + 2 * s[j++]); - G1(1, 5, 9, 13, msg, offset + 2 * s[j++]); - G2(1, 5, 9, 13, msg, offset + 2 * s[j++]); - G1(2, 6, 10, 14, msg, offset + 2 * s[j++]); - G2(2, 6, 10, 14, msg, offset + 2 * s[j++]); - G1(3, 7, 11, 15, msg, offset + 2 * s[j++]); - G2(3, 7, 11, 15, msg, offset + 2 * s[j++]); - G1(0, 5, 10, 15, msg, offset + 2 * s[j++]); - G2(0, 5, 10, 15, msg, offset + 2 * s[j++]); - G1(1, 6, 11, 12, msg, offset + 2 * s[j++]); - G2(1, 6, 11, 12, msg, offset + 2 * s[j++]); - G1(2, 7, 8, 13, msg, offset + 2 * s[j++]); - G2(2, 7, 8, 13, msg, offset + 2 * s[j++]); - G1(3, 4, 9, 14, msg, offset + 2 * s[j++]); - G2(3, 4, 9, 14, msg, offset + 2 * s[j++]); - } - this.v0l ^= BUF[0] ^ BUF[16]; - this.v0h ^= BUF[1] ^ BUF[17]; - this.v1l ^= BUF[2] ^ BUF[18]; - this.v1h ^= BUF[3] ^ BUF[19]; - this.v2l ^= BUF[4] ^ BUF[20]; - this.v2h ^= BUF[5] ^ BUF[21]; - this.v3l ^= BUF[6] ^ BUF[22]; - this.v3h ^= BUF[7] ^ BUF[23]; - this.v4l ^= BUF[8] ^ BUF[24]; - this.v4h ^= BUF[9] ^ BUF[25]; - this.v5l ^= BUF[10] ^ BUF[26]; - this.v5h ^= BUF[11] ^ BUF[27]; - this.v6l ^= BUF[12] ^ BUF[28]; - this.v6h ^= BUF[13] ^ BUF[29]; - this.v7l ^= BUF[14] ^ BUF[30]; - this.v7h ^= BUF[15] ^ BUF[31]; - BUF.fill(0); - } - destroy() { - this.destroyed = true; - this.buffer32.fill(0); - this.set(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); - } -} -/** - * BLAKE2b - optimized for 64-bit platforms. JS doesn't have uint64, so it's slower than BLAKE2s. - * @param msg - message that would be hashed - * @param opts - dkLen, key, salt, personalization - */ -export const blake2b = /* @__PURE__ */ wrapConstructorWithOpts((opts) => new BLAKE2b(opts)); -//# sourceMappingURL=blake2b.js.map \ No newline at end of file diff --git a/node_modules/@noble/hashes/esm/blake2b.js.map b/node_modules/@noble/hashes/esm/blake2b.js.map deleted file mode 100644 index a4487867..00000000 --- a/node_modules/@noble/hashes/esm/blake2b.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"blake2b.js","sourceRoot":"","sources":["../src/blake2b.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAa,KAAK,EAAE,MAAM,cAAc,CAAC;AACxD,OAAO,GAAG,M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C,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAC3D,CAAC;CACF;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,eAAe,CAAC,uBAAuB,CAC5D,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC,CAC5B,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/hashes/esm/blake2s.js b/node_modules/@noble/hashes/esm/blake2s.js deleted file mode 100644 index 5c649914..00000000 --- a/node_modules/@noble/hashes/esm/blake2s.js +++ /dev/null @@ -1,118 +0,0 @@ -import { BLAKE2, SIGMA } from './_blake2.js'; -import { fromBig } from './_u64.js'; -import { rotr, toBytes, wrapConstructorWithOpts, u32 } from './utils.js'; -// Initial state: -// first 32 bits of the fractional parts of the square roots of the first 8 primes 2..19) -// same as SHA-256 -// prettier-ignore -export const IV = /* @__PURE__ */ new Uint32Array([0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19]); -// Mixing function G splitted in two halfs -function G1(a, b, c, d, x) { - a = (a + b + x) | 0; - d = rotr(d ^ a, 16); - c = (c + d) | 0; - b = rotr(b ^ c, 12); - return { a, b, c, d }; -} -function G2(a, b, c, d, x) { - a = (a + b + x) | 0; - d = rotr(d ^ a, 8); - c = (c + d) | 0; - b = rotr(b ^ c, 7); - return { a, b, c, d }; -} -// prettier-ignore -export function compress(s, offset, msg, rounds, v0, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15) { - let j = 0; - for (let i = 0; i < rounds; i++) { - ({ a: v0, b: v4, c: v8, d: v12 } = G1(v0, v4, v8, v12, msg[offset + s[j++]])); - ({ a: v0, b: v4, c: v8, d: v12 } = G2(v0, v4, v8, v12, msg[offset + s[j++]])); - ({ a: v1, b: v5, c: v9, d: v13 } = G1(v1, v5, v9, v13, msg[offset + s[j++]])); - ({ a: v1, b: v5, c: v9, d: v13 } = G2(v1, v5, v9, v13, msg[offset + s[j++]])); - ({ a: v2, b: v6, c: v10, d: v14 } = G1(v2, v6, v10, v14, msg[offset + s[j++]])); - ({ a: v2, b: v6, c: v10, d: v14 } = G2(v2, v6, v10, v14, msg[offset + s[j++]])); - ({ a: v3, b: v7, c: v11, d: v15 } = G1(v3, v7, v11, v15, msg[offset + s[j++]])); - ({ a: v3, b: v7, c: v11, d: v15 } = G2(v3, v7, v11, v15, msg[offset + s[j++]])); - ({ a: v0, b: v5, c: v10, d: v15 } = G1(v0, v5, v10, v15, msg[offset + s[j++]])); - ({ a: v0, b: v5, c: v10, d: v15 } = G2(v0, v5, v10, v15, msg[offset + s[j++]])); - ({ a: v1, b: v6, c: v11, d: v12 } = G1(v1, v6, v11, v12, msg[offset + s[j++]])); - ({ a: v1, b: v6, c: v11, d: v12 } = G2(v1, v6, v11, v12, msg[offset + s[j++]])); - ({ a: v2, b: v7, c: v8, d: v13 } = G1(v2, v7, v8, v13, msg[offset + s[j++]])); - ({ a: v2, b: v7, c: v8, d: v13 } = G2(v2, v7, v8, v13, msg[offset + s[j++]])); - ({ a: v3, b: v4, c: v9, d: v14 } = G1(v3, v4, v9, v14, msg[offset + s[j++]])); - ({ a: v3, b: v4, c: v9, d: v14 } = G2(v3, v4, v9, v14, msg[offset + s[j++]])); - } - return { v0, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15 }; -} -class BLAKE2s extends BLAKE2 { - constructor(opts = {}) { - super(64, opts.dkLen === undefined ? 32 : opts.dkLen, opts, 32, 8, 8); - // Internal state, same as SHA-256 - this.v0 = IV[0] | 0; - this.v1 = IV[1] | 0; - this.v2 = IV[2] | 0; - this.v3 = IV[3] | 0; - this.v4 = IV[4] | 0; - this.v5 = IV[5] | 0; - this.v6 = IV[6] | 0; - this.v7 = IV[7] | 0; - const keyLength = opts.key ? opts.key.length : 0; - this.v0 ^= this.outputLen | (keyLength << 8) | (0x01 << 16) | (0x01 << 24); - if (opts.salt) { - const salt = u32(toBytes(opts.salt)); - this.v4 ^= salt[0]; - this.v5 ^= salt[1]; - } - if (opts.personalization) { - const pers = u32(toBytes(opts.personalization)); - this.v6 ^= pers[0]; - this.v7 ^= pers[1]; - } - if (opts.key) { - // Pad to blockLen and update - const tmp = new Uint8Array(this.blockLen); - tmp.set(toBytes(opts.key)); - this.update(tmp); - } - } - get() { - const { v0, v1, v2, v3, v4, v5, v6, v7 } = this; - return [v0, v1, v2, v3, v4, v5, v6, v7]; - } - // prettier-ignore - set(v0, v1, v2, v3, v4, v5, v6, v7) { - this.v0 = v0 | 0; - this.v1 = v1 | 0; - this.v2 = v2 | 0; - this.v3 = v3 | 0; - this.v4 = v4 | 0; - this.v5 = v5 | 0; - this.v6 = v6 | 0; - this.v7 = v7 | 0; - } - compress(msg, offset, isLast) { - const { h, l } = fromBig(BigInt(this.length)); - // prettier-ignore - const { v0, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15 } = compress(SIGMA, offset, msg, 10, this.v0, this.v1, this.v2, this.v3, this.v4, this.v5, this.v6, this.v7, IV[0], IV[1], IV[2], IV[3], l ^ IV[4], h ^ IV[5], isLast ? ~IV[6] : IV[6], IV[7]); - this.v0 ^= v0 ^ v8; - this.v1 ^= v1 ^ v9; - this.v2 ^= v2 ^ v10; - this.v3 ^= v3 ^ v11; - this.v4 ^= v4 ^ v12; - this.v5 ^= v5 ^ v13; - this.v6 ^= v6 ^ v14; - this.v7 ^= v7 ^ v15; - } - destroy() { - this.destroyed = true; - this.buffer32.fill(0); - this.set(0, 0, 0, 0, 0, 0, 0, 0); - } -} -/** - * BLAKE2s - optimized for 32-bit platforms. JS doesn't have uint64, so it's faster than BLAKE2b. - * @param msg - message that would be hashed - * @param opts - dkLen, key, salt, personalization - */ -export const blake2s = /* @__PURE__ */ wrapConstructorWithOpts((opts) => new BLAKE2s(opts)); -//# sourceMappingURL=blake2s.js.map \ No newline at end of file diff --git a/node_modules/@noble/hashes/esm/blake2s.js.map b/node_modules/@noble/hashes/esm/blake2s.js.map deleted file mode 100644 index 44cce786..00000000 --- a/node_modules/@noble/hashes/esm/blake2s.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"blake2s.js","sourceRoot":"","sources":["../src/blake2s.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAa,KAAK,EAAE,MAAM,cAAc,CAAC;AACxD,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,uBAAuB,EAAE,GAAG,EAAE,MAAM,YAAY,CAAC;AAEzE,iBAAiB;AACjB,yFAAyF;AACzF,kBAAkB;AAClB,kBAAkB;AAClB,MAAM,CAAC,MAAM,EAAE,GAAG,eAAe,CAAA,IAAI,WAAW,CAAC,CAAC,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,CAAC,CAAC,CAAC;AAEnJ,0CAA0C;AAC1C,SAAS,EAAE,CAAC,CAAS,EAAE,CAAS,EAAE,CAAS,EAAE,CAAS,EAAE,CAAS;IAC/D,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC;IACpB,CAAC,GAAG,IAAI,CAAC,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC;IACpB,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC;IAChB,CAAC,GAAG,IAAI,CAAC,CAAC,GAAG,CAAC,EAAE,EAAE,CAAC,CAAC;IACpB,OAAO,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC;AACxB,CAAC;AAED,SAAS,EAAE,CAAC,CAAS,EAAE,CAAS,EAAE,C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AE,CAAC,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CACjF,CAAC;QACJ,IAAI,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC;QACnB,IAAI,CAAC,EAAE,IAAI,EAAE,GAAG,EAAE,CAAC;QACnB,IAAI,CAAC,EAAE,IAAI,EAAE,GAAG,GAAG,CAAC;QACpB,IAAI,CAAC,EAAE,IAAI,EAAE,GAAG,GAAG,CAAC;QACpB,IAAI,CAAC,EAAE,IAAI,EAAE,GAAG,GAAG,CAAC;QACpB,IAAI,CAAC,EAAE,IAAI,EAAE,GAAG,GAAG,CAAC;QACpB,IAAI,CAAC,EAAE,IAAI,EAAE,GAAG,GAAG,CAAC;QACpB,IAAI,CAAC,EAAE,IAAI,EAAE,GAAG,GAAG,CAAC;IACtB,CAAC;IACD,OAAO;QACL,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;QACtB,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACtB,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IACnC,CAAC;CACF;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,OAAO,GAAG,eAAe,CAAC,uBAAuB,CAC5D,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,OAAO,CAAC,IAAI,CAAC,CAC5B,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/hashes/esm/blake3.js b/node_modules/@noble/hashes/esm/blake3.js deleted file mode 100644 index af92963d..00000000 --- a/node_modules/@noble/hashes/esm/blake3.js +++ /dev/null @@ -1,226 +0,0 @@ -import { bytes, exists, number, output } from './_assert.js'; -import { fromBig } from './_u64.js'; -import { BLAKE2 } from './_blake2.js'; -import { compress, IV } from './blake2s.js'; -import { u8, u32, toBytes, wrapXOFConstructorWithOpts } from './utils.js'; -const SIGMA = /* @__PURE__ */ (() => { - const Id = Array.from({ length: 16 }, (_, i) => i); - const permute = (arr) => [2, 6, 3, 10, 7, 0, 4, 13, 1, 11, 12, 5, 9, 14, 15, 8].map((i) => arr[i]); - const res = []; - for (let i = 0, v = Id; i < 7; i++, v = permute(v)) - res.push(...v); - return Uint8Array.from(res); -})(); -// Why is this so slow? It should be 6x faster than blake2b. -// - There is only 30% reduction in number of rounds from blake2s -// - This function uses tree mode to achive parallelisation via SIMD and threading, -// however in JS we don't have threads and SIMD, so we get only overhead from tree structure -// - It is possible to speed it up via Web Workers, hovewer it will make code singnificantly more -// complicated, which we are trying to avoid, since this library is intended to be used -// for cryptographic purposes. Also, parallelization happens only on chunk level (1024 bytes), -// which won't really benefit small inputs. -class BLAKE3 extends BLAKE2 { - constructor(opts = {}, flags = 0) { - super(64, opts.dkLen === undefined ? 32 : opts.dkLen, {}, Number.MAX_SAFE_INTEGER, 0, 0); - this.flags = 0 | 0; - this.chunkPos = 0; // Position of current block in chunk - this.chunksDone = 0; // How many chunks we already have - this.stack = []; - // Output - this.posOut = 0; - this.bufferOut32 = new Uint32Array(16); - this.chunkOut = 0; // index of output chunk - this.enableXOF = true; - this.outputLen = opts.dkLen === undefined ? 32 : opts.dkLen; - number(this.outputLen); - if (opts.key !== undefined && opts.context !== undefined) - throw new Error('Blake3: only key or context can be specified at same time'); - else if (opts.key !== undefined) { - const key = toBytes(opts.key).slice(); - if (key.length !== 32) - throw new Error('Blake3: key should be 32 byte'); - this.IV = u32(key); - this.flags = flags | 16 /* Flags.KEYED_HASH */; - } - else if (opts.context !== undefined) { - const context_key = new BLAKE3({ dkLen: 32 }, 32 /* Flags.DERIVE_KEY_CONTEXT */) - .update(opts.context) - .digest(); - this.IV = u32(context_key); - this.flags = flags | 64 /* Flags.DERIVE_KEY_MATERIAL */; - } - else { - this.IV = IV.slice(); - this.flags = flags; - } - this.state = this.IV.slice(); - this.bufferOut = u8(this.bufferOut32); - } - // Unused - get() { - return []; - } - set() { } - b2Compress(counter, flags, buf, bufPos = 0) { - const { state: s, pos } = this; - const { h, l } = fromBig(BigInt(counter), true); - // prettier-ignore - const { v0, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15 } = compress(SIGMA, bufPos, buf, 7, s[0], s[1], s[2], s[3], s[4], s[5], s[6], s[7], IV[0], IV[1], IV[2], IV[3], h, l, pos, flags); - s[0] = v0 ^ v8; - s[1] = v1 ^ v9; - s[2] = v2 ^ v10; - s[3] = v3 ^ v11; - s[4] = v4 ^ v12; - s[5] = v5 ^ v13; - s[6] = v6 ^ v14; - s[7] = v7 ^ v15; - } - compress(buf, bufPos = 0, isLast = false) { - // Compress last block - let flags = this.flags; - if (!this.chunkPos) - flags |= 1 /* Flags.CHUNK_START */; - if (this.chunkPos === 15 || isLast) - flags |= 2 /* Flags.CHUNK_END */; - if (!isLast) - this.pos = this.blockLen; - this.b2Compress(this.chunksDone, flags, buf, bufPos); - this.chunkPos += 1; - // If current block is last in chunk (16 blocks), then compress chunks - if (this.chunkPos === 16 || isLast) { - let chunk = this.state; - this.state = this.IV.slice(); - // If not the last one, compress only when there are trailing zeros in chunk counter - // chunks used as binary tree where current stack is path. Zero means current leaf is finished and can be compressed. - // 1 (001) - leaf not finished (just push current chunk to stack) - // 2 (010) - leaf finished at depth=1 (merge with last elm on stack and push back) - // 3 (011) - last leaf not finished - // 4 (100) - leafs finished at depth=1 and depth=2 - for (let last, chunks = this.chunksDone + 1; isLast || !(chunks & 1); chunks >>= 1) { - if (!(last = this.stack.pop())) - break; - this.buffer32.set(last, 0); - this.buffer32.set(chunk, 8); - this.pos = this.blockLen; - this.b2Compress(0, this.flags | 4 /* Flags.PARENT */, this.buffer32, 0); - chunk = this.state; - this.state = this.IV.slice(); - } - this.chunksDone++; - this.chunkPos = 0; - this.stack.push(chunk); - } - this.pos = 0; - } - _cloneInto(to) { - to = super._cloneInto(to); - const { IV, flags, state, chunkPos, posOut, chunkOut, stack, chunksDone } = this; - to.state.set(state.slice()); - to.stack = stack.map((i) => Uint32Array.from(i)); - to.IV.set(IV); - to.flags = flags; - to.chunkPos = chunkPos; - to.chunksDone = chunksDone; - to.posOut = posOut; - to.chunkOut = chunkOut; - to.enableXOF = this.enableXOF; - to.bufferOut32.set(this.bufferOut32); - return to; - } - destroy() { - this.destroyed = true; - this.state.fill(0); - this.buffer32.fill(0); - this.IV.fill(0); - this.bufferOut32.fill(0); - for (let i of this.stack) - i.fill(0); - } - // Same as b2Compress, but doesn't modify state and returns 16 u32 array (instead of 8) - b2CompressOut() { - const { state: s, pos, flags, buffer32, bufferOut32: out32 } = this; - const { h, l } = fromBig(BigInt(this.chunkOut++)); - // prettier-ignore - const { v0, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15 } = compress(SIGMA, 0, buffer32, 7, s[0], s[1], s[2], s[3], s[4], s[5], s[6], s[7], IV[0], IV[1], IV[2], IV[3], l, h, pos, flags); - out32[0] = v0 ^ v8; - out32[1] = v1 ^ v9; - out32[2] = v2 ^ v10; - out32[3] = v3 ^ v11; - out32[4] = v4 ^ v12; - out32[5] = v5 ^ v13; - out32[6] = v6 ^ v14; - out32[7] = v7 ^ v15; - out32[8] = s[0] ^ v8; - out32[9] = s[1] ^ v9; - out32[10] = s[2] ^ v10; - out32[11] = s[3] ^ v11; - out32[12] = s[4] ^ v12; - out32[13] = s[5] ^ v13; - out32[14] = s[6] ^ v14; - out32[15] = s[7] ^ v15; - this.posOut = 0; - } - finish() { - if (this.finished) - return; - this.finished = true; - // Padding - this.buffer.fill(0, this.pos); - // Process last chunk - let flags = this.flags | 8 /* Flags.ROOT */; - if (this.stack.length) { - flags |= 4 /* Flags.PARENT */; - this.compress(this.buffer32, 0, true); - this.chunksDone = 0; - this.pos = this.blockLen; - } - else { - flags |= (!this.chunkPos ? 1 /* Flags.CHUNK_START */ : 0) | 2 /* Flags.CHUNK_END */; - } - this.flags = flags; - this.b2CompressOut(); - } - writeInto(out) { - exists(this, false); - bytes(out); - this.finish(); - const { blockLen, bufferOut } = this; - for (let pos = 0, len = out.length; pos < len;) { - if (this.posOut >= blockLen) - this.b2CompressOut(); - const take = Math.min(blockLen - this.posOut, len - pos); - out.set(bufferOut.subarray(this.posOut, this.posOut + take), pos); - this.posOut += take; - pos += take; - } - return out; - } - xofInto(out) { - if (!this.enableXOF) - throw new Error('XOF is not possible after digest call'); - return this.writeInto(out); - } - xof(bytes) { - number(bytes); - return this.xofInto(new Uint8Array(bytes)); - } - digestInto(out) { - output(out, this); - if (this.finished) - throw new Error('digest() was already called'); - this.enableXOF = false; - this.writeInto(out); - this.destroy(); - return out; - } - digest() { - return this.digestInto(new Uint8Array(this.outputLen)); - } -} -/** - * BLAKE3 hash function. - * @param msg - message that would be hashed - * @param opts - dkLen, key, context - */ -export const blake3 = /* @__PURE__ */ wrapXOFConstructorWithOpts((opts) => new BLAKE3(opts)); -//# sourceMappingURL=blake3.js.map \ No newline at end of file diff --git a/node_modules/@noble/hashes/esm/blake3.js.map b/node_modules/@noble/hashes/esm/blake3.js.map deleted file mode 100644 index 50f489b8..00000000 --- a/node_modules/@noble/hashes/esm/blake3.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"blake3.js","sourceRoot":"","sources":["../src/blake3.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AACtC,OAAO,EAAE,QAAQ,EAAE,EAAE,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAS,EAAE,EAAE,GAAG,EAAE,OAAO,EAAW,0BAA0B,EAAE,MAAM,YAAY,CAAC;AAe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IAC7B,CAAC;IACD,GAAG,CAAC,KAAa;QACf,MAAM,CAAC,KAAK,CAAC,CAAC;QACd,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,UAAU,CAAC,KAAK,CAAC,CAAC,CAAC;IAC7C,CAAC;IACD,UAAU,CAAC,GAAe;QACxB,MAAM,CAAC,GAAG,EAAE,IAAI,CAAC,CAAC;QAClB,IAAI,IAAI,CAAC,QAAQ;YAAE,MAAM,IAAI,KAAK,CAAC,6BAA6B,CAAC,CAAC;QAClE,IAAI,CAAC,SAAS,GAAG,KAAK,CAAC;QACvB,IAAI,CAAC,SAAS,CAAC,GAAG,CAAC,CAAC;QACpB,IAAI,CAAC,OAAO,EAAE,CAAC;QACf,OAAO,GAAG,CAAC;IACb,CAAC;IACD,MAAM;QACJ,OAAO,IAAI,CAAC,UAAU,CAAC,IAAI,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC;IACzD,CAAC;CACF;AAED;;;;GAIG;AACH,MAAM,CAAC,MAAM,MAAM,GAAG,eAAe,CAAC,0BAA0B,CAC9D,CAAC,IAAI,EAAE,EAAE,CAAC,IAAI,MAAM,CAAC,IAAI,CAAC,CAC3B,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/hashes/esm/crypto.js b/node_modules/@noble/hashes/esm/crypto.js deleted file mode 100644 index 8d499a08..00000000 --- a/node_modules/@noble/hashes/esm/crypto.js +++ /dev/null @@ -1,2 +0,0 @@ -export const crypto = typeof globalThis === 'object' && 'crypto' in globalThis ? globalThis.crypto : undefined; -//# sourceMappingURL=crypto.js.map \ No newline at end of file diff --git a/node_modules/@noble/hashes/esm/crypto.js.map b/node_modules/@noble/hashes/esm/crypto.js.map deleted file mode 100644 index 4b4fd3da..00000000 --- a/node_modules/@noble/hashes/esm/crypto.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"crypto.js","sourceRoot":"","sources":["../src/crypto.ts"],"names":[],"mappings":"AAGA,MAAM,CAAC,MAAM,MAAM,GACjB,OAAO,UAAU,KAAK,QAAQ,IAAI,QAAQ,IAAI,UAAU,CAAC,CAAC,CAAC,UAAU,CAAC,MAAM,CAAC,CAAC,CAAC,SAAS,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/hashes/esm/cryptoNode.js b/node_modules/@noble/hashes/esm/cryptoNode.js deleted file mode 100644 index 241f1da4..00000000 --- a/node_modules/@noble/hashes/esm/cryptoNode.js +++ /dev/null @@ -1,7 +0,0 @@ -// We use WebCrypto aka globalThis.crypto, which exists in browsers and node.js 16+. -// See utils.ts for details. -// The file will throw on node.js 14 and earlier. -// @ts-ignore -import * as nc from 'node:crypto'; -export const crypto = nc && typeof nc === 'object' && 'webcrypto' in nc ? nc.webcrypto : undefined; -//# sourceMappingURL=cryptoNode.js.map \ No newline at end of file diff --git a/node_modules/@noble/hashes/esm/cryptoNode.js.map b/node_modules/@noble/hashes/esm/cryptoNode.js.map deleted file mode 100644 index f7ab75e0..00000000 --- a/node_modules/@noble/hashes/esm/cryptoNode.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"cryptoNode.js","sourceRoot":"","sources":["../src/cryptoNode.ts"],"names":[],"mappings":"AAAA,oFAAoF;AACpF,4BAA4B;AAC5B,iDAAiD;AACjD,aAAa;AACb,OAAO,KAAK,EAAE,MAAM,aAAa,CAAC;AAClC,MAAM,CAAC,MAAM,MAAM,GACjB,EAAE,IAAI,OAAO,EAAE,KAAK,QAAQ,IAAI,WAAW,IAAI,EAAE,CAAC,CAAC,CAAE,EAAE,CAAC,SAAiB,CAAC,CAAC,CAAC,SAAS,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/hashes/esm/eskdf.js b/node_modules/@noble/hashes/esm/eskdf.js deleted file mode 100644 index 13253eba..00000000 --- a/node_modules/@noble/hashes/esm/eskdf.js +++ /dev/null @@ -1,155 +0,0 @@ -import { bytes as assertBytes } from './_assert.js'; -import { hkdf } from './hkdf.js'; -import { sha256 } from './sha256.js'; -import { pbkdf2 as _pbkdf2 } from './pbkdf2.js'; -import { scrypt as _scrypt } from './scrypt.js'; -import { bytesToHex, createView, hexToBytes, toBytes } from './utils.js'; -// A tiny KDF for various applications like AES key-gen. -// Uses HKDF in a non-standard way, so it's not "KDF-secure", only "PRF-secure". -// Which is good enough: assume sha2-256 retained preimage resistance. -const SCRYPT_FACTOR = 2 ** 19; -const PBKDF2_FACTOR = 2 ** 17; -// Scrypt KDF -export function scrypt(password, salt) { - return _scrypt(password, salt, { N: SCRYPT_FACTOR, r: 8, p: 1, dkLen: 32 }); -} -// PBKDF2-HMAC-SHA256 -export function pbkdf2(password, salt) { - return _pbkdf2(sha256, password, salt, { c: PBKDF2_FACTOR, dkLen: 32 }); -} -// Combines two 32-byte byte arrays -function xor32(a, b) { - assertBytes(a, 32); - assertBytes(b, 32); - const arr = new Uint8Array(32); - for (let i = 0; i < 32; i++) { - arr[i] = a[i] ^ b[i]; - } - return arr; -} -function strHasLength(str, min, max) { - return typeof str === 'string' && str.length >= min && str.length <= max; -} -/** - * Derives main seed. Takes a lot of time. Prefer `eskdf` method instead. - */ -export function deriveMainSeed(username, password) { - if (!strHasLength(username, 8, 255)) - throw new Error('invalid username'); - if (!strHasLength(password, 8, 255)) - throw new Error('invalid password'); - const scr = scrypt(password + '\u{1}', username + '\u{1}'); - const pbk = pbkdf2(password + '\u{2}', username + '\u{2}'); - const res = xor32(scr, pbk); - scr.fill(0); - pbk.fill(0); - return res; -} -/** - * Converts protocol & accountId pair to HKDF salt & info params. - */ -function getSaltInfo(protocol, accountId = 0) { - // Note that length here also repeats two lines below - // We do an additional length check here to reduce the scope of DoS attacks - if (!(strHasLength(protocol, 3, 15) && /^[a-z0-9]{3,15}$/.test(protocol))) { - throw new Error('invalid protocol'); - } - // Allow string account ids for some protocols - const allowsStr = /^password\d{0,3}|ssh|tor|file$/.test(protocol); - let salt; // Extract salt. Default is undefined. - if (typeof accountId === 'string') { - if (!allowsStr) - throw new Error('accountId must be a number'); - if (!strHasLength(accountId, 1, 255)) - throw new Error('accountId must be valid string'); - salt = toBytes(accountId); - } - else if (Number.isSafeInteger(accountId)) { - if (accountId < 0 || accountId > 2 ** 32 - 1) - throw new Error('invalid accountId'); - // Convert to Big Endian Uint32 - salt = new Uint8Array(4); - createView(salt).setUint32(0, accountId, false); - } - else { - throw new Error(`accountId must be a number${allowsStr ? ' or string' : ''}`); - } - const info = toBytes(protocol); - return { salt, info }; -} -function countBytes(num) { - if (typeof num !== 'bigint' || num <= BigInt(128)) - throw new Error('invalid number'); - return Math.ceil(num.toString(2).length / 8); -} -/** - * Parses keyLength and modulus options to extract length of result key. - * If modulus is used, adds 64 bits to it as per FIPS 186 B.4.1 to combat modulo bias. - */ -function getKeyLength(options) { - if (!options || typeof options !== 'object') - return 32; - const hasLen = 'keyLength' in options; - const hasMod = 'modulus' in options; - if (hasLen && hasMod) - throw new Error('cannot combine keyLength and modulus options'); - if (!hasLen && !hasMod) - throw new Error('must have either keyLength or modulus option'); - // FIPS 186 B.4.1 requires at least 64 more bits - const l = hasMod ? countBytes(options.modulus) + 8 : options.keyLength; - if (!(typeof l === 'number' && l >= 16 && l <= 8192)) - throw new Error('invalid keyLength'); - return l; -} -/** - * Converts key to bigint and divides it by modulus. Big Endian. - * Implements FIPS 186 B.4.1, which removes 0 and modulo bias from output. - */ -function modReduceKey(key, modulus) { - const _1 = BigInt(1); - const num = BigInt('0x' + bytesToHex(key)); // check for ui8a, then bytesToNumber() - const res = (num % (modulus - _1)) + _1; // Remove 0 from output - if (res < _1) - throw new Error('expected positive number'); // Guard against bad values - const len = key.length - 8; // FIPS requires 64 more bits = 8 bytes - const hex = res.toString(16).padStart(len * 2, '0'); // numberToHex() - const bytes = hexToBytes(hex); - if (bytes.length !== len) - throw new Error('invalid length of result key'); - return bytes; -} -/** - * ESKDF - * @param username - username, email, or identifier, min: 8 characters, should have enough entropy - * @param password - password, min: 8 characters, should have enough entropy - * @example - * const kdf = await eskdf('example-university', 'beginning-new-example'); - * const key = kdf.deriveChildKey('aes', 0); - * console.log(kdf.fingerprint); - * kdf.expire(); - */ -export async function eskdf(username, password) { - // We are using closure + object instead of class because - // we want to make `seed` non-accessible for any external function. - let seed = deriveMainSeed(username, password); - function deriveCK(protocol, accountId = 0, options) { - assertBytes(seed, 32); - const { salt, info } = getSaltInfo(protocol, accountId); // validate protocol & accountId - const keyLength = getKeyLength(options); // validate options - const key = hkdf(sha256, seed, salt, info, keyLength); - // Modulus has already been validated - return options && 'modulus' in options ? modReduceKey(key, options.modulus) : key; - } - function expire() { - if (seed) - seed.fill(1); - seed = undefined; - } - // prettier-ignore - const fingerprint = Array.from(deriveCK('fingerprint', 0)) - .slice(0, 6) - .map((char) => char.toString(16).padStart(2, '0').toUpperCase()) - .join(':'); - return Object.freeze({ deriveChildKey: deriveCK, expire, fingerprint }); -} -//# sourceMappingURL=eskdf.js.map \ No newline at end of file diff --git a/node_modules/@noble/hashes/esm/eskdf.js.map b/node_modules/@noble/hashes/esm/eskdf.js.map deleted file mode 100644 index f53eebeb..00000000 --- a/node_modules/@noble/hashes/esm/eskdf.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"eskdf.js","sourceRoot":"","sources":["../src/eskdf.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,IAAI,WAAW,EAAE,MAAM,cAAc,CAAC;AACpD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,MAAM,IAAI,OAAO,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,MAAM,IAAI,OAAO,EAAE,MAAM,aAAa,CAAC;AAChD,OAAO,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,OAAO,EAAE,MAAM,YAAY,CAAC;AAEzE,wDAAwD;AACxD,gFAAgF;AAChF,sEAAsE;AAEtE,MAAM,aAAa,GAAG,CAAC,IAAI,EAAE,CAAC;AAC9B,MAAM,aAAa,GA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,WAAW,EAAE,CAAC,CAAC;AAC1E,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/hashes/esm/hkdf.js b/node_modules/@noble/hashes/esm/hkdf.js deleted file mode 100644 index 8fbdac86..00000000 --- a/node_modules/@noble/hashes/esm/hkdf.js +++ /dev/null @@ -1,72 +0,0 @@ -import { hash as assertHash, number as assertNumber } from './_assert.js'; -import { toBytes } from './utils.js'; -import { hmac } from './hmac.js'; -// HKDF (RFC 5869) -// https://soatok.blog/2021/11/17/understanding-hkdf/ -/** - * HKDF-Extract(IKM, salt) -> PRK - * Arguments position differs from spec (IKM is first one, since it is not optional) - * @param hash - * @param ikm - * @param salt - * @returns - */ -export function extract(hash, ikm, salt) { - assertHash(hash); - // NOTE: some libraries treat zero-length array as 'not provided'; - // we don't, since we have undefined as 'not provided' - // https://github.com/RustCrypto/KDFs/issues/15 - if (salt === undefined) - salt = new Uint8Array(hash.outputLen); // if not provided, it is set to a string of HashLen zeros - return hmac(hash, toBytes(salt), toBytes(ikm)); -} -// HKDF-Expand(PRK, info, L) -> OKM -const HKDF_COUNTER = /* @__PURE__ */ new Uint8Array([0]); -const EMPTY_BUFFER = /* @__PURE__ */ new Uint8Array(); -/** - * HKDF-expand from the spec. - * @param prk - a pseudorandom key of at least HashLen octets (usually, the output from the extract step) - * @param info - optional context and application specific information (can be a zero-length string) - * @param length - length of output keying material in octets - */ -export function expand(hash, prk, info, length = 32) { - assertHash(hash); - assertNumber(length); - if (length > 255 * hash.outputLen) - throw new Error('Length should be <= 255*HashLen'); - const blocks = Math.ceil(length / hash.outputLen); - if (info === undefined) - info = EMPTY_BUFFER; - // first L(ength) octets of T - const okm = new Uint8Array(blocks * hash.outputLen); - // Re-use HMAC instance between blocks - const HMAC = hmac.create(hash, prk); - const HMACTmp = HMAC._cloneInto(); - const T = new Uint8Array(HMAC.outputLen); - for (let counter = 0; counter < blocks; counter++) { - HKDF_COUNTER[0] = counter + 1; - // T(0) = empty string (zero length) - // T(N) = HMAC-Hash(PRK, T(N-1) | info | N) - HMACTmp.update(counter === 0 ? EMPTY_BUFFER : T) - .update(info) - .update(HKDF_COUNTER) - .digestInto(T); - okm.set(T, hash.outputLen * counter); - HMAC._cloneInto(HMACTmp); - } - HMAC.destroy(); - HMACTmp.destroy(); - T.fill(0); - HKDF_COUNTER.fill(0); - return okm.slice(0, length); -} -/** - * HKDF (RFC 5869): extract + expand in one step. - * @param hash - hash function that would be used (e.g. sha256) - * @param ikm - input keying material, the initial key - * @param salt - optional salt value (a non-secret random value) - * @param info - optional context and application specific information - * @param length - length of output keying material in octets - */ -export const hkdf = (hash, ikm, salt, info, length) => expand(hash, extract(hash, ikm, salt), info, length); -//# sourceMappingURL=hkdf.js.map \ No newline at end of file diff --git a/node_modules/@noble/hashes/esm/hkdf.js.map b/node_modules/@noble/hashes/esm/hkdf.js.map deleted file mode 100644 index 868bdb5b..00000000 --- a/node_modules/@noble/hashes/esm/hkdf.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"hkdf.js","sourceRoot":"","sources":["../src/hkdf.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,IAAI,UAAU,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,cAAc,CAAC;AAC1E,OAAO,EAAgB,OAAO,EAAE,MAAM,YAAY,CAAC;AACnD,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AAEjC,kBAAkB;AAClB,qDAAqD;AAErD;;;;;;;GAOG;AACH,MAAM,UAAU,OAAO,CAAC,IAAW,EAAE,GAAU,EAAE,IAAY;IAC3D,UAAU,CAAC,IAAI,CAAC,CAAC;IACjB,kEAAkE;IAClE,sDAAsD;IACtD,+CAA+C;IAC/C,IAAI,IAAI,KAAK,SAAS;QAAE,IAAI,GAAG,IAAI,UAAU,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,0DAA0D;IACzH,OAAO,IAAI,CAAC,IAAI,EAAE,OAAO,CAAC,IAAI,CAAC,EAAE,OAAO,CAA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CAAC,IAAI,CAAC;aACZ,MAAM,CAAC,YAAY,CAAC;aACpB,UAAU,CAAC,CAAC,CAAC,CAAC;QACjB,GAAG,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,CAAC;QACrC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;KAC1B;IACD,IAAI,CAAC,OAAO,EAAE,CAAC;IACf,OAAO,CAAC,OAAO,EAAE,CAAC;IAClB,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACV,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACrB,OAAO,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;AAC9B,CAAC;AAED;;;;;;;GAOG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,CAClB,IAAW,EACX,GAAU,EACV,IAAuB,EACvB,IAAuB,EACvB,MAAc,EACd,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/hashes/esm/hmac.js b/node_modules/@noble/hashes/esm/hmac.js deleted file mode 100644 index 520f7769..00000000 --- a/node_modules/@noble/hashes/esm/hmac.js +++ /dev/null @@ -1,77 +0,0 @@ -import { hash as assertHash, bytes as assertBytes, exists as assertExists } from './_assert.js'; -import { Hash, toBytes } from './utils.js'; -// HMAC (RFC 2104) -export class HMAC extends Hash { - constructor(hash, _key) { - super(); - this.finished = false; - this.destroyed = false; - assertHash(hash); - const key = toBytes(_key); - this.iHash = hash.create(); - if (typeof this.iHash.update !== 'function') - throw new Error('Expected instance of class which extends utils.Hash'); - this.blockLen = this.iHash.blockLen; - this.outputLen = this.iHash.outputLen; - const blockLen = this.blockLen; - const pad = new Uint8Array(blockLen); - // blockLen can be bigger than outputLen - pad.set(key.length > blockLen ? hash.create().update(key).digest() : key); - for (let i = 0; i < pad.length; i++) - pad[i] ^= 0x36; - this.iHash.update(pad); - // By doing update (processing of first block) of outer hash here we can re-use it between multiple calls via clone - this.oHash = hash.create(); - // Undo internal XOR && apply outer XOR - for (let i = 0; i < pad.length; i++) - pad[i] ^= 0x36 ^ 0x5c; - this.oHash.update(pad); - pad.fill(0); - } - update(buf) { - assertExists(this); - this.iHash.update(buf); - return this; - } - digestInto(out) { - assertExists(this); - assertBytes(out, this.outputLen); - this.finished = true; - this.iHash.digestInto(out); - this.oHash.update(out); - this.oHash.digestInto(out); - this.destroy(); - } - digest() { - const out = new Uint8Array(this.oHash.outputLen); - this.digestInto(out); - return out; - } - _cloneInto(to) { - // Create new instance without calling constructor since key already in state and we don't know it. - to || (to = Object.create(Object.getPrototypeOf(this), {})); - const { oHash, iHash, finished, destroyed, blockLen, outputLen } = this; - to = to; - to.finished = finished; - to.destroyed = destroyed; - to.blockLen = blockLen; - to.outputLen = outputLen; - to.oHash = oHash._cloneInto(to.oHash); - to.iHash = iHash._cloneInto(to.iHash); - return to; - } - destroy() { - this.destroyed = true; - this.oHash.destroy(); - this.iHash.destroy(); - } -} -/** - * HMAC: RFC2104 message authentication code. - * @param hash - function that would be used e.g. sha256 - * @param key - message key - * @param message - message data - */ -export const hmac = (hash, key, message) => new HMAC(hash, key).update(message).digest(); -hmac.create = (hash, key) => new HMAC(hash, key); -//# sourceMappingURL=hmac.js.map \ No newline at end of file diff --git a/node_modules/@noble/hashes/esm/hmac.js.map b/node_modules/@noble/hashes/esm/hmac.js.map deleted file mode 100644 index e04539dc..00000000 --- a/node_modules/@noble/hashes/esm/hmac.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"hmac.js","sourceRoot":"","sources":["../src/hmac.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,IAAI,UAAU,EAAE,KAAK,IAAI,WAAW,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,cAAc,CAAC;AAChG,OAAO,EAAE,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I,CAAC;QACxE,EAAE,GAAG,EAAU,CAAC;QAChB,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACvB,EAAE,CAAC,SAAS,GAAG,SAAS,CAAC;QACzB,EAAE,CAAC,QAAQ,GAAG,QAAQ,CAAC;QACvB,EAAE,CAAC,SAAS,GAAG,SAAS,CAAC;QACzB,EAAE,CAAC,KAAK,GAAG,KAAK,CAAC,UAAU,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC;QACtC,EAAE,CAAC,KAAK,GAAG,KAAK,CAAC,UAAU,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC;QACtC,OAAO,EAAE,CAAC;IACZ,CAAC;IACD,OAAO;QACL,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;QACtB,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;QACrB,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;IACvB,CAAC;CACF;AAED;;;;;GAKG;AACH,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,IAAW,EAAE,GAAU,EAAE,OAAc,EAAc,EAAE,CAC1E,IAAI,IAAI,CAAM,IAAI,EAAE,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,CAAC;AACpD,IAAI,CAAC,MAAM,GAAG,CAAC,IAAW,EAAE,GAAU,EAAE,EAAE,CAAC,IAAI,IAAI,CAAM,IAAI,EAAE,GAAG,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/hashes/esm/index.js b/node_modules/@noble/hashes/esm/index.js deleted file mode 100644 index 2299d7f9..00000000 --- a/node_modules/@noble/hashes/esm/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -throw new Error('noble-hashes have no entry-point: consult README for usage'); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@noble/hashes/esm/index.js.map b/node_modules/@noble/hashes/esm/index.js.map deleted file mode 100644 index 90172aa2..00000000 --- a/node_modules/@noble/hashes/esm/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";AAAA,MAAM,IAAI,KAAK,CAAC,4DAA4D,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/hashes/esm/package.json b/node_modules/@noble/hashes/esm/package.json deleted file mode 100644 index f42e46b1..00000000 --- a/node_modules/@noble/hashes/esm/package.json +++ /dev/null @@ -1,10 +0,0 @@ -{ - "type": "module", - "sideEffects": false, - "browser": { - "node:crypto": false - }, - "node": { - "./crypto": "./esm/cryptoNode.js" - } -} diff --git a/node_modules/@noble/hashes/esm/pbkdf2.js b/node_modules/@noble/hashes/esm/pbkdf2.js deleted file mode 100644 index 3f0c11f8..00000000 --- a/node_modules/@noble/hashes/esm/pbkdf2.js +++ /dev/null @@ -1,86 +0,0 @@ -import { hash as assertHash, number as assertNumber } from './_assert.js'; -import { hmac } from './hmac.js'; -import { createView, toBytes, checkOpts, asyncLoop } from './utils.js'; -// Common prologue and epilogue for sync/async functions -function pbkdf2Init(hash, _password, _salt, _opts) { - assertHash(hash); - const opts = checkOpts({ dkLen: 32, asyncTick: 10 }, _opts); - const { c, dkLen, asyncTick } = opts; - assertNumber(c); - assertNumber(dkLen); - assertNumber(asyncTick); - if (c < 1) - throw new Error('PBKDF2: iterations (c) should be >= 1'); - const password = toBytes(_password); - const salt = toBytes(_salt); - // DK = PBKDF2(PRF, Password, Salt, c, dkLen); - const DK = new Uint8Array(dkLen); - // U1 = PRF(Password, Salt + INT_32_BE(i)) - const PRF = hmac.create(hash, password); - const PRFSalt = PRF._cloneInto().update(salt); - return { c, dkLen, asyncTick, DK, PRF, PRFSalt }; -} -function pbkdf2Output(PRF, PRFSalt, DK, prfW, u) { - PRF.destroy(); - PRFSalt.destroy(); - if (prfW) - prfW.destroy(); - u.fill(0); - return DK; -} -/** - * PBKDF2-HMAC: RFC 2898 key derivation function - * @param hash - hash function that would be used e.g. sha256 - * @param password - password from which a derived key is generated - * @param salt - cryptographic salt - * @param opts - {c, dkLen} where c is work factor and dkLen is output message size - */ -export function pbkdf2(hash, password, salt, opts) { - const { c, dkLen, DK, PRF, PRFSalt } = pbkdf2Init(hash, password, salt, opts); - let prfW; // Working copy - const arr = new Uint8Array(4); - const view = createView(arr); - const u = new Uint8Array(PRF.outputLen); - // DK = T1 + T2 + ⋯ + Tdklen/hlen - for (let ti = 1, pos = 0; pos < dkLen; ti++, pos += PRF.outputLen) { - // Ti = F(Password, Salt, c, i) - const Ti = DK.subarray(pos, pos + PRF.outputLen); - view.setInt32(0, ti, false); - // F(Password, Salt, c, i) = U1 ^ U2 ^ ⋯ ^ Uc - // U1 = PRF(Password, Salt + INT_32_BE(i)) - (prfW = PRFSalt._cloneInto(prfW)).update(arr).digestInto(u); - Ti.set(u.subarray(0, Ti.length)); - for (let ui = 1; ui < c; ui++) { - // Uc = PRF(Password, Uc−1) - PRF._cloneInto(prfW).update(u).digestInto(u); - for (let i = 0; i < Ti.length; i++) - Ti[i] ^= u[i]; - } - } - return pbkdf2Output(PRF, PRFSalt, DK, prfW, u); -} -export async function pbkdf2Async(hash, password, salt, opts) { - const { c, dkLen, asyncTick, DK, PRF, PRFSalt } = pbkdf2Init(hash, password, salt, opts); - let prfW; // Working copy - const arr = new Uint8Array(4); - const view = createView(arr); - const u = new Uint8Array(PRF.outputLen); - // DK = T1 + T2 + ⋯ + Tdklen/hlen - for (let ti = 1, pos = 0; pos < dkLen; ti++, pos += PRF.outputLen) { - // Ti = F(Password, Salt, c, i) - const Ti = DK.subarray(pos, pos + PRF.outputLen); - view.setInt32(0, ti, false); - // F(Password, Salt, c, i) = U1 ^ U2 ^ ⋯ ^ Uc - // U1 = PRF(Password, Salt + INT_32_BE(i)) - (prfW = PRFSalt._cloneInto(prfW)).update(arr).digestInto(u); - Ti.set(u.subarray(0, Ti.length)); - await asyncLoop(c - 1, asyncTick, () => { - // Uc = PRF(Password, Uc−1) - PRF._cloneInto(prfW).update(u).digestInto(u); - for (let i = 0; i < Ti.length; i++) - Ti[i] ^= u[i]; - }); - } - return pbkdf2Output(PRF, PRFSalt, DK, prfW, u); -} -//# sourceMappingURL=pbkdf2.js.map \ No newline at end of file diff --git a/node_modules/@noble/hashes/esm/pbkdf2.js.map b/node_modules/@noble/hashes/esm/pbkdf2.js.map deleted file mode 100644 index b4049346..00000000 --- a/node_modules/@noble/hashes/esm/pbkdf2.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"pbkdf2.js","sourceRoot":"","sources":["../src/pbkdf2.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,IAAI,UAAU,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,cAAc,CAAC;AAC1E,OAAO,EAAE,IAAI,EAAE,MAAM,WAAW,CAAC;AACjC,OAAO,EAAsB,UAAU,EAAE,OAAO,EAAE,SAAS,EAAE,SAAS,EAAE,MAAM,YAAY,CAAC;AAQ3F,wDAAwD;AACxD,SAAS,UAAU,CAAC,IAAW,EAAE,SAAgB,EAAE,KAAY,EAAE,KAAgB;IAC/E,UAAU,CAAC,IAAI,CAAC,CAAC;IACjB,MAAM,IAAI,GAAG,SAAS,CAAC,EAAE,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;IAC5D,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,IAAI,CAAC;IACrC,YAAY,CAAC,CAAC,CAAC,CAAC;IAChB,YAAY,CAAC,KAAK,CAAC,CAAC;IACpB,YAAY,CAAC,SAAS,CAAC,CAAC;IACxB,IAAI,CAAC,GAAG,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAC;IACpE,MAAM,QAAQ,GAAG,OAAO,CAAC,SAAS,CAAC,CAAC;IACpC,MAAM,IAAI,GAAG,OAAO,CAAC,KAAK,CAAC,CAAC;IAC5B,8CAA8C;IAC9C,MAAM,EAAE,GAAG,IA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EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;AACjD,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/hashes/esm/ripemd160.js b/node_modules/@noble/hashes/esm/ripemd160.js deleted file mode 100644 index 1e239583..00000000 --- a/node_modules/@noble/hashes/esm/ripemd160.js +++ /dev/null @@ -1,104 +0,0 @@ -import { SHA2 } from './_sha2.js'; -import { wrapConstructor } from './utils.js'; -// https://homes.esat.kuleuven.be/~bosselae/ripemd160.html -// https://homes.esat.kuleuven.be/~bosselae/ripemd160/pdf/AB-9601/AB-9601.pdf -const Rho = /* @__PURE__ */ new Uint8Array([7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8]); -const Id = /* @__PURE__ */ Uint8Array.from({ length: 16 }, (_, i) => i); -const Pi = /* @__PURE__ */ Id.map((i) => (9 * i + 5) % 16); -let idxL = [Id]; -let idxR = [Pi]; -for (let i = 0; i < 4; i++) - for (let j of [idxL, idxR]) - j.push(j[i].map((k) => Rho[k])); -const shifts = /* @__PURE__ */ [ - [11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8], - [12, 13, 11, 15, 6, 9, 9, 7, 12, 15, 11, 13, 7, 8, 7, 7], - [13, 15, 14, 11, 7, 7, 6, 8, 13, 14, 13, 12, 5, 5, 6, 9], - [14, 11, 12, 14, 8, 6, 5, 5, 15, 12, 15, 14, 9, 9, 8, 6], - [15, 12, 13, 13, 9, 5, 8, 6, 14, 11, 12, 11, 8, 6, 5, 5], -].map((i) => new Uint8Array(i)); -const shiftsL = /* @__PURE__ */ idxL.map((idx, i) => idx.map((j) => shifts[i][j])); -const shiftsR = /* @__PURE__ */ idxR.map((idx, i) => idx.map((j) => shifts[i][j])); -const Kl = /* @__PURE__ */ new Uint32Array([ - 0x00000000, 0x5a827999, 0x6ed9eba1, 0x8f1bbcdc, 0xa953fd4e, -]); -const Kr = /* @__PURE__ */ new Uint32Array([ - 0x50a28be6, 0x5c4dd124, 0x6d703ef3, 0x7a6d76e9, 0x00000000, -]); -// The rotate left (circular left shift) operation for uint32 -const rotl = (word, shift) => (word << shift) | (word >>> (32 - shift)); -// It's called f() in spec. -function f(group, x, y, z) { - if (group === 0) - return x ^ y ^ z; - else if (group === 1) - return (x & y) | (~x & z); - else if (group === 2) - return (x | ~y) ^ z; - else if (group === 3) - return (x & z) | (y & ~z); - else - return x ^ (y | ~z); -} -// Temporary buffer, not used to store anything between runs -const BUF = /* @__PURE__ */ new Uint32Array(16); -export class RIPEMD160 extends SHA2 { - constructor() { - super(64, 20, 8, true); - this.h0 = 0x67452301 | 0; - this.h1 = 0xefcdab89 | 0; - this.h2 = 0x98badcfe | 0; - this.h3 = 0x10325476 | 0; - this.h4 = 0xc3d2e1f0 | 0; - } - get() { - const { h0, h1, h2, h3, h4 } = this; - return [h0, h1, h2, h3, h4]; - } - set(h0, h1, h2, h3, h4) { - this.h0 = h0 | 0; - this.h1 = h1 | 0; - this.h2 = h2 | 0; - this.h3 = h3 | 0; - this.h4 = h4 | 0; - } - process(view, offset) { - for (let i = 0; i < 16; i++, offset += 4) - BUF[i] = view.getUint32(offset, true); - // prettier-ignore - let al = this.h0 | 0, ar = al, bl = this.h1 | 0, br = bl, cl = this.h2 | 0, cr = cl, dl = this.h3 | 0, dr = dl, el = this.h4 | 0, er = el; - // Instead of iterating 0 to 80, we split it into 5 groups - // And use the groups in constants, functions, etc. Much simpler - for (let group = 0; group < 5; group++) { - const rGroup = 4 - group; - const hbl = Kl[group], hbr = Kr[group]; // prettier-ignore - const rl = idxL[group], rr = idxR[group]; // prettier-ignore - const sl = shiftsL[group], sr = shiftsR[group]; // prettier-ignore - for (let i = 0; i < 16; i++) { - const tl = (rotl(al + f(group, bl, cl, dl) + BUF[rl[i]] + hbl, sl[i]) + el) | 0; - al = el, el = dl, dl = rotl(cl, 10) | 0, cl = bl, bl = tl; // prettier-ignore - } - // 2 loops are 10% faster - for (let i = 0; i < 16; i++) { - const tr = (rotl(ar + f(rGroup, br, cr, dr) + BUF[rr[i]] + hbr, sr[i]) + er) | 0; - ar = er, er = dr, dr = rotl(cr, 10) | 0, cr = br, br = tr; // prettier-ignore - } - } - // Add the compressed chunk to the current hash value - this.set((this.h1 + cl + dr) | 0, (this.h2 + dl + er) | 0, (this.h3 + el + ar) | 0, (this.h4 + al + br) | 0, (this.h0 + bl + cr) | 0); - } - roundClean() { - BUF.fill(0); - } - destroy() { - this.destroyed = true; - this.buffer.fill(0); - this.set(0, 0, 0, 0, 0); - } -} -/** - * RIPEMD-160 - a hash function from 1990s. - * @param message - msg that would be hashed - */ -export const ripemd160 = /* @__PURE__ */ wrapConstructor(() => new RIPEMD160()); -//# sourceMappingURL=ripemd160.js.map \ No newline at end of file diff --git a/node_modules/@noble/hashes/esm/ripemd160.js.map b/node_modules/@noble/hashes/esm/ripemd160.js.map deleted file mode 100644 index 7964756e..00000000 --- a/node_modules/@noble/hashes/esm/ripemd160.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ripemd160.js","sourceRoot":"","sources":["../src/ripemd160.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAClC,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAE7C,0DAA0D;AAC1D,6EAA6E;AAC7E,MAAM,GAAG,GAAG,eAAe,CAAC,IAAI,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC;AACnG,MAAM,EAAE,GAAG,eAAe,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CA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EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,IAAI,CAAC,EAAE,EAAE,EAAE,CAAC,GAAG,CAAC,EAAE,EAAE,GAAG,EAAE,EAAE,EAAE,GAAG,EAAE,CAAC,CAAC,kBAAkB;aAC9E;SACF;QACD,qDAAqD;QACrD,IAAI,CAAC,GAAG,CACN,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,EACvB,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,EACvB,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,EACvB,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,EACvB,CAAC,IAAI,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,CAAC,GAAG,CAAC,CACxB,CAAC;IACJ,CAAC;IACS,UAAU;QAClB,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACd,CAAC;IACD,OAAO;QACL,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;QACtB,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACpB,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAC1B,CAAC;CACF;AAED;;;GAGG;AACH,MAAM,CAAC,MAAM,SAAS,GAAG,eAAe,CAAC,eAAe,CAAC,GAAG,EAAE,CAAC,IAAI,SAAS,EAAE,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/hashes/esm/scrypt.js b/node_modules/@noble/hashes/esm/scrypt.js deleted file mode 100644 index 37012f56..00000000 --- a/node_modules/@noble/hashes/esm/scrypt.js +++ /dev/null @@ -1,218 +0,0 @@ -import { number as assertNumber } from './_assert.js'; -import { sha256 } from './sha256.js'; -import { pbkdf2 } from './pbkdf2.js'; -import { asyncLoop, checkOpts, u32 } from './utils.js'; -// RFC 7914 Scrypt KDF -// Left rotate for uint32 -const rotl = (a, b) => (a << b) | (a >>> (32 - b)); -// The main Scrypt loop: uses Salsa extensively. -// Six versions of the function were tried, this is the fastest one. -// prettier-ignore -function XorAndSalsa(prev, pi, input, ii, out, oi) { - // Based on https://cr.yp.to/salsa20.html - // Xor blocks - let y00 = prev[pi++] ^ input[ii++], y01 = prev[pi++] ^ input[ii++]; - let y02 = prev[pi++] ^ input[ii++], y03 = prev[pi++] ^ input[ii++]; - let y04 = prev[pi++] ^ input[ii++], y05 = prev[pi++] ^ input[ii++]; - let y06 = prev[pi++] ^ input[ii++], y07 = prev[pi++] ^ input[ii++]; - let y08 = prev[pi++] ^ input[ii++], y09 = prev[pi++] ^ input[ii++]; - let y10 = prev[pi++] ^ input[ii++], y11 = prev[pi++] ^ input[ii++]; - let y12 = prev[pi++] ^ input[ii++], y13 = prev[pi++] ^ input[ii++]; - let y14 = prev[pi++] ^ input[ii++], y15 = prev[pi++] ^ input[ii++]; - // Save state to temporary variables (salsa) - let x00 = y00, x01 = y01, x02 = y02, x03 = y03, x04 = y04, x05 = y05, x06 = y06, x07 = y07, x08 = y08, x09 = y09, x10 = y10, x11 = y11, x12 = y12, x13 = y13, x14 = y14, x15 = y15; - // Main loop (salsa) - for (let i = 0; i < 8; i += 2) { - x04 ^= rotl(x00 + x12 | 0, 7); - x08 ^= rotl(x04 + x00 | 0, 9); - x12 ^= rotl(x08 + x04 | 0, 13); - x00 ^= rotl(x12 + x08 | 0, 18); - x09 ^= rotl(x05 + x01 | 0, 7); - x13 ^= rotl(x09 + x05 | 0, 9); - x01 ^= rotl(x13 + x09 | 0, 13); - x05 ^= rotl(x01 + x13 | 0, 18); - x14 ^= rotl(x10 + x06 | 0, 7); - x02 ^= rotl(x14 + x10 | 0, 9); - x06 ^= rotl(x02 + x14 | 0, 13); - x10 ^= rotl(x06 + x02 | 0, 18); - x03 ^= rotl(x15 + x11 | 0, 7); - x07 ^= rotl(x03 + x15 | 0, 9); - x11 ^= rotl(x07 + x03 | 0, 13); - x15 ^= rotl(x11 + x07 | 0, 18); - x01 ^= rotl(x00 + x03 | 0, 7); - x02 ^= rotl(x01 + x00 | 0, 9); - x03 ^= rotl(x02 + x01 | 0, 13); - x00 ^= rotl(x03 + x02 | 0, 18); - x06 ^= rotl(x05 + x04 | 0, 7); - x07 ^= rotl(x06 + x05 | 0, 9); - x04 ^= rotl(x07 + x06 | 0, 13); - x05 ^= rotl(x04 + x07 | 0, 18); - x11 ^= rotl(x10 + x09 | 0, 7); - x08 ^= rotl(x11 + x10 | 0, 9); - x09 ^= rotl(x08 + x11 | 0, 13); - x10 ^= rotl(x09 + x08 | 0, 18); - x12 ^= rotl(x15 + x14 | 0, 7); - x13 ^= rotl(x12 + x15 | 0, 9); - x14 ^= rotl(x13 + x12 | 0, 13); - x15 ^= rotl(x14 + x13 | 0, 18); - } - // Write output (salsa) - out[oi++] = (y00 + x00) | 0; - out[oi++] = (y01 + x01) | 0; - out[oi++] = (y02 + x02) | 0; - out[oi++] = (y03 + x03) | 0; - out[oi++] = (y04 + x04) | 0; - out[oi++] = (y05 + x05) | 0; - out[oi++] = (y06 + x06) | 0; - out[oi++] = (y07 + x07) | 0; - out[oi++] = (y08 + x08) | 0; - out[oi++] = (y09 + x09) | 0; - out[oi++] = (y10 + x10) | 0; - out[oi++] = (y11 + x11) | 0; - out[oi++] = (y12 + x12) | 0; - out[oi++] = (y13 + x13) | 0; - out[oi++] = (y14 + x14) | 0; - out[oi++] = (y15 + x15) | 0; -} -function BlockMix(input, ii, out, oi, r) { - // The block B is r 128-byte chunks (which is equivalent of 2r 64-byte chunks) - let head = oi + 0; - let tail = oi + 16 * r; - for (let i = 0; i < 16; i++) - out[tail + i] = input[ii + (2 * r - 1) * 16 + i]; // X ← B[2r−1] - for (let i = 0; i < r; i++, head += 16, ii += 16) { - // We write odd & even Yi at same time. Even: 0bXXXXX0 Odd: 0bXXXXX1 - XorAndSalsa(out, tail, input, ii, out, head); // head[i] = Salsa(blockIn[2*i] ^ tail[i-1]) - if (i > 0) - tail += 16; // First iteration overwrites tmp value in tail - XorAndSalsa(out, head, input, (ii += 16), out, tail); // tail[i] = Salsa(blockIn[2*i+1] ^ head[i]) - } -} -// Common prologue and epilogue for sync/async functions -function scryptInit(password, salt, _opts) { - // Maxmem - 1GB+1KB by default - const opts = checkOpts({ - dkLen: 32, - asyncTick: 10, - maxmem: 1024 ** 3 + 1024, - }, _opts); - const { N, r, p, dkLen, asyncTick, maxmem, onProgress } = opts; - assertNumber(N); - assertNumber(r); - assertNumber(p); - assertNumber(dkLen); - assertNumber(asyncTick); - assertNumber(maxmem); - if (onProgress !== undefined && typeof onProgress !== 'function') - throw new Error('progressCb should be function'); - const blockSize = 128 * r; - const blockSize32 = blockSize / 4; - if (N <= 1 || (N & (N - 1)) !== 0 || N >= 2 ** (blockSize / 8) || N > 2 ** 32) { - // NOTE: we limit N to be less than 2**32 because of 32 bit variant of Integrify function - // There is no JS engines that allows alocate more than 4GB per single Uint8Array for now, but can change in future. - throw new Error('Scrypt: N must be larger than 1, a power of 2, less than 2^(128 * r / 8) and less than 2^32'); - } - if (p < 0 || p > ((2 ** 32 - 1) * 32) / blockSize) { - throw new Error('Scrypt: p must be a positive integer less than or equal to ((2^32 - 1) * 32) / (128 * r)'); - } - if (dkLen < 0 || dkLen > (2 ** 32 - 1) * 32) { - throw new Error('Scrypt: dkLen should be positive integer less than or equal to (2^32 - 1) * 32'); - } - const memUsed = blockSize * (N + p); - if (memUsed > maxmem) { - throw new Error(`Scrypt: parameters too large, ${memUsed} (128 * r * (N + p)) > ${maxmem} (maxmem)`); - } - // [B0...Bp−1] ← PBKDF2HMAC-SHA256(Passphrase, Salt, 1, blockSize*ParallelizationFactor) - // Since it has only one iteration there is no reason to use async variant - const B = pbkdf2(sha256, password, salt, { c: 1, dkLen: blockSize * p }); - const B32 = u32(B); - // Re-used between parallel iterations. Array(iterations) of B - const V = u32(new Uint8Array(blockSize * N)); - const tmp = u32(new Uint8Array(blockSize)); - let blockMixCb = () => { }; - if (onProgress) { - const totalBlockMix = 2 * N * p; - // Invoke callback if progress changes from 10.01 to 10.02 - // Allows to draw smooth progress bar on up to 8K screen - const callbackPer = Math.max(Math.floor(totalBlockMix / 10000), 1); - let blockMixCnt = 0; - blockMixCb = () => { - blockMixCnt++; - if (onProgress && (!(blockMixCnt % callbackPer) || blockMixCnt === totalBlockMix)) - onProgress(blockMixCnt / totalBlockMix); - }; - } - return { N, r, p, dkLen, blockSize32, V, B32, B, tmp, blockMixCb, asyncTick }; -} -function scryptOutput(password, dkLen, B, V, tmp) { - const res = pbkdf2(sha256, password, B, { c: 1, dkLen }); - B.fill(0); - V.fill(0); - tmp.fill(0); - return res; -} -/** - * Scrypt KDF from RFC 7914. - * @param password - pass - * @param salt - salt - * @param opts - parameters - * - `N` is cpu/mem work factor (power of 2 e.g. 2**18) - * - `r` is block size (8 is common), fine-tunes sequential memory read size and performance - * - `p` is parallelization factor (1 is common) - * - `dkLen` is output key length in bytes e.g. 32. - * - `asyncTick` - (default: 10) max time in ms for which async function can block execution - * - `maxmem` - (default: `1024 ** 3 + 1024` aka 1GB+1KB). A limit that the app could use for scrypt - * - `onProgress` - callback function that would be executed for progress report - * @returns Derived key - */ -export function scrypt(password, salt, opts) { - const { N, r, p, dkLen, blockSize32, V, B32, B, tmp, blockMixCb } = scryptInit(password, salt, opts); - for (let pi = 0; pi < p; pi++) { - const Pi = blockSize32 * pi; - for (let i = 0; i < blockSize32; i++) - V[i] = B32[Pi + i]; // V[0] = B[i] - for (let i = 0, pos = 0; i < N - 1; i++) { - BlockMix(V, pos, V, (pos += blockSize32), r); // V[i] = BlockMix(V[i-1]); - blockMixCb(); - } - BlockMix(V, (N - 1) * blockSize32, B32, Pi, r); // Process last element - blockMixCb(); - for (let i = 0; i < N; i++) { - // First u32 of the last 64-byte block (u32 is LE) - const j = B32[Pi + blockSize32 - 16] % N; // j = Integrify(X) % iterations - for (let k = 0; k < blockSize32; k++) - tmp[k] = B32[Pi + k] ^ V[j * blockSize32 + k]; // tmp = B ^ V[j] - BlockMix(tmp, 0, B32, Pi, r); // B = BlockMix(B ^ V[j]) - blockMixCb(); - } - } - return scryptOutput(password, dkLen, B, V, tmp); -} -/** - * Scrypt KDF from RFC 7914. - */ -export async function scryptAsync(password, salt, opts) { - const { N, r, p, dkLen, blockSize32, V, B32, B, tmp, blockMixCb, asyncTick } = scryptInit(password, salt, opts); - for (let pi = 0; pi < p; pi++) { - const Pi = blockSize32 * pi; - for (let i = 0; i < blockSize32; i++) - V[i] = B32[Pi + i]; // V[0] = B[i] - let pos = 0; - await asyncLoop(N - 1, asyncTick, () => { - BlockMix(V, pos, V, (pos += blockSize32), r); // V[i] = BlockMix(V[i-1]); - blockMixCb(); - }); - BlockMix(V, (N - 1) * blockSize32, B32, Pi, r); // Process last element - blockMixCb(); - await asyncLoop(N, asyncTick, () => { - // First u32 of the last 64-byte block (u32 is LE) - const j = B32[Pi + blockSize32 - 16] % N; // j = Integrify(X) % iterations - for (let k = 0; k < blockSize32; k++) - tmp[k] = B32[Pi + k] ^ V[j * blockSize32 + k]; // tmp = B ^ V[j] - BlockMix(tmp, 0, B32, Pi, r); // B = BlockMix(B ^ V[j]) - blockMixCb(); - }); - } - return scryptOutput(password, dkLen, B, V, tmp); -} -//# sourceMappingURL=scrypt.js.map \ No newline at end of file diff --git a/node_modules/@noble/hashes/esm/scrypt.js.map b/node_modules/@noble/hashes/esm/scrypt.js.map deleted file mode 100644 index 0fa6c1f1..00000000 --- a/node_modules/@noble/hashes/esm/scrypt.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"scrypt.js","sourceRoot":"","sources":["../src/scrypt.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AACrC,OAAO,EAAE,MAAM,EAAE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,gCAAgC;YAC1E,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,WAAW,EAAE,CAAC,EAAE;gBAAE,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,WAAW,GAAG,CAAC,CAAC,CAAC,CAAC,iBAAiB;YACtG,QAAQ,CAAC,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,yBAAyB;YACvD,UAAU,EAAE,CAAC;QACf,CAAC,CAAC,CAAC;KACJ;IACD,OAAO,YAAY,CAAC,QAAQ,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC;AAClD,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/hashes/esm/sha1.js b/node_modules/@noble/hashes/esm/sha1.js deleted file mode 100644 index 563bff57..00000000 --- a/node_modules/@noble/hashes/esm/sha1.js +++ /dev/null @@ -1,87 +0,0 @@ -import { SHA2 } from './_sha2.js'; -import { wrapConstructor } from './utils.js'; -// SHA1 was cryptographically broken. -// It is still widely used in legacy apps. Don't use it for a new protocol. -// RFC 3174 -const rotl = (word, shift) => (word << shift) | ((word >>> (32 - shift)) >>> 0); -// Choice: a ? b : c -const Chi = (a, b, c) => (a & b) ^ (~a & c); -// Majority function, true if any two inpust is true -const Maj = (a, b, c) => (a & b) ^ (a & c) ^ (b & c); -// Initial state -const IV = /* @__PURE__ */ new Uint32Array([ - 0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0, -]); -// Temporary buffer, not used to store anything between runs -// Named this way because it matches specification. -const SHA1_W = /* @__PURE__ */ new Uint32Array(80); -class SHA1 extends SHA2 { - constructor() { - super(64, 20, 8, false); - this.A = IV[0] | 0; - this.B = IV[1] | 0; - this.C = IV[2] | 0; - this.D = IV[3] | 0; - this.E = IV[4] | 0; - } - get() { - const { A, B, C, D, E } = this; - return [A, B, C, D, E]; - } - set(A, B, C, D, E) { - this.A = A | 0; - this.B = B | 0; - this.C = C | 0; - this.D = D | 0; - this.E = E | 0; - } - process(view, offset) { - for (let i = 0; i < 16; i++, offset += 4) - SHA1_W[i] = view.getUint32(offset, false); - for (let i = 16; i < 80; i++) - SHA1_W[i] = rotl(SHA1_W[i - 3] ^ SHA1_W[i - 8] ^ SHA1_W[i - 14] ^ SHA1_W[i - 16], 1); - // Compression function main loop, 80 rounds - let { A, B, C, D, E } = this; - for (let i = 0; i < 80; i++) { - let F, K; - if (i < 20) { - F = Chi(B, C, D); - K = 0x5a827999; - } - else if (i < 40) { - F = B ^ C ^ D; - K = 0x6ed9eba1; - } - else if (i < 60) { - F = Maj(B, C, D); - K = 0x8f1bbcdc; - } - else { - F = B ^ C ^ D; - K = 0xca62c1d6; - } - const T = (rotl(A, 5) + F + E + K + SHA1_W[i]) | 0; - E = D; - D = C; - C = rotl(B, 30); - B = A; - A = T; - } - // Add the compressed chunk to the current hash value - A = (A + this.A) | 0; - B = (B + this.B) | 0; - C = (C + this.C) | 0; - D = (D + this.D) | 0; - E = (E + this.E) | 0; - this.set(A, B, C, D, E); - } - roundClean() { - SHA1_W.fill(0); - } - destroy() { - this.set(0, 0, 0, 0, 0); - this.buffer.fill(0); - } -} -export const sha1 = /* @__PURE__ */ wrapConstructor(() => new SHA1()); -//# sourceMappingURL=sha1.js.map \ No newline at end of file diff --git a/node_modules/@noble/hashes/esm/sha1.js.map b/node_modules/@noble/hashes/esm/sha1.js.map deleted file mode 100644 index 55249dec..00000000 --- a/node_modules/@noble/hashes/esm/sha1.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sha1.js","sourceRoot":"","sources":["../src/sha1.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAClC,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAE7C,qCAAqC;AACrC,2EAA2E;AAE3E,WAAW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,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;QACrB,CAAC,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC;QACrB,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAC1B,CAAC;IACS,UAAU;QAClB,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACjB,CAAC;IACD,OAAO;QACL,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;QACxB,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACtB,CAAC;CACF;AAED,MAAM,CAAC,MAAM,IAAI,GAAG,eAAe,CAAC,eAAe,CAAC,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/hashes/esm/sha256.js b/node_modules/@noble/hashes/esm/sha256.js deleted file mode 100644 index e92203c8..00000000 --- a/node_modules/@noble/hashes/esm/sha256.js +++ /dev/null @@ -1,126 +0,0 @@ -import { SHA2 } from './_sha2.js'; -import { rotr, wrapConstructor } from './utils.js'; -// SHA2-256 need to try 2^128 hashes to execute birthday attack. -// BTC network is doing 2^67 hashes/sec as per early 2023. -// Choice: a ? b : c -const Chi = (a, b, c) => (a & b) ^ (~a & c); -// Majority function, true if any two inpust is true -const Maj = (a, b, c) => (a & b) ^ (a & c) ^ (b & c); -// Round constants: -// first 32 bits of the fractional parts of the cube roots of the first 64 primes 2..311) -// prettier-ignore -const SHA256_K = /* @__PURE__ */ new Uint32Array([ - 0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5, 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5, - 0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3, 0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174, - 0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc, 0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da, - 0x983e5152, 0xa831c66d, 0xb00327c8, 0xbf597fc7, 0xc6e00bf3, 0xd5a79147, 0x06ca6351, 0x14292967, - 0x27b70a85, 0x2e1b2138, 0x4d2c6dfc, 0x53380d13, 0x650a7354, 0x766a0abb, 0x81c2c92e, 0x92722c85, - 0xa2bfe8a1, 0xa81a664b, 0xc24b8b70, 0xc76c51a3, 0xd192e819, 0xd6990624, 0xf40e3585, 0x106aa070, - 0x19a4c116, 0x1e376c08, 0x2748774c, 0x34b0bcb5, 0x391c0cb3, 0x4ed8aa4a, 0x5b9cca4f, 0x682e6ff3, - 0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208, 0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2 -]); -// Initial state (first 32 bits of the fractional parts of the square roots of the first 8 primes 2..19): -// prettier-ignore -const IV = /* @__PURE__ */ new Uint32Array([ - 0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19 -]); -// Temporary buffer, not used to store anything between runs -// Named this way because it matches specification. -const SHA256_W = /* @__PURE__ */ new Uint32Array(64); -class SHA256 extends SHA2 { - constructor() { - super(64, 32, 8, false); - // We cannot use array here since array allows indexing by variable - // which means optimizer/compiler cannot use registers. - this.A = IV[0] | 0; - this.B = IV[1] | 0; - this.C = IV[2] | 0; - this.D = IV[3] | 0; - this.E = IV[4] | 0; - this.F = IV[5] | 0; - this.G = IV[6] | 0; - this.H = IV[7] | 0; - } - get() { - const { A, B, C, D, E, F, G, H } = this; - return [A, B, C, D, E, F, G, H]; - } - // prettier-ignore - set(A, B, C, D, E, F, G, H) { - this.A = A | 0; - this.B = B | 0; - this.C = C | 0; - this.D = D | 0; - this.E = E | 0; - this.F = F | 0; - this.G = G | 0; - this.H = H | 0; - } - process(view, offset) { - // Extend the first 16 words into the remaining 48 words w[16..63] of the message schedule array - for (let i = 0; i < 16; i++, offset += 4) - SHA256_W[i] = view.getUint32(offset, false); - for (let i = 16; i < 64; i++) { - const W15 = SHA256_W[i - 15]; - const W2 = SHA256_W[i - 2]; - const s0 = rotr(W15, 7) ^ rotr(W15, 18) ^ (W15 >>> 3); - const s1 = rotr(W2, 17) ^ rotr(W2, 19) ^ (W2 >>> 10); - SHA256_W[i] = (s1 + SHA256_W[i - 7] + s0 + SHA256_W[i - 16]) | 0; - } - // Compression function main loop, 64 rounds - let { A, B, C, D, E, F, G, H } = this; - for (let i = 0; i < 64; i++) { - const sigma1 = rotr(E, 6) ^ rotr(E, 11) ^ rotr(E, 25); - const T1 = (H + sigma1 + Chi(E, F, G) + SHA256_K[i] + SHA256_W[i]) | 0; - const sigma0 = rotr(A, 2) ^ rotr(A, 13) ^ rotr(A, 22); - const T2 = (sigma0 + Maj(A, B, C)) | 0; - H = G; - G = F; - F = E; - E = (D + T1) | 0; - D = C; - C = B; - B = A; - A = (T1 + T2) | 0; - } - // Add the compressed chunk to the current hash value - A = (A + this.A) | 0; - B = (B + this.B) | 0; - C = (C + this.C) | 0; - D = (D + this.D) | 0; - E = (E + this.E) | 0; - F = (F + this.F) | 0; - G = (G + this.G) | 0; - H = (H + this.H) | 0; - this.set(A, B, C, D, E, F, G, H); - } - roundClean() { - SHA256_W.fill(0); - } - destroy() { - this.set(0, 0, 0, 0, 0, 0, 0, 0); - this.buffer.fill(0); - } -} -// Constants from https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf -class SHA224 extends SHA256 { - constructor() { - super(); - this.A = 0xc1059ed8 | 0; - this.B = 0x367cd507 | 0; - this.C = 0x3070dd17 | 0; - this.D = 0xf70e5939 | 0; - this.E = 0xffc00b31 | 0; - this.F = 0x68581511 | 0; - this.G = 0x64f98fa7 | 0; - this.H = 0xbefa4fa4 | 0; - this.outputLen = 28; - } -} -/** - * SHA2-256 hash function - * @param message - data that would be hashed - */ -export const sha256 = /* @__PURE__ */ wrapConstructor(() => new SHA256()); -export const sha224 = /* @__PURE__ */ wrapConstructor(() => new SHA224()); -//# sourceMappingURL=sha256.js.map \ No newline at end of file diff --git a/node_modules/@noble/hashes/esm/sha256.js.map b/node_modules/@noble/hashes/esm/sha256.js.map deleted file mode 100644 index 0236fa86..00000000 --- a/node_modules/@noble/hashes/esm/sha256.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sha256.js","sourceRoot":"","sources":["../src/sha256.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAClC,OAAO,EAAE,IAAI,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAEnD,gEAAgE;AAChE,0DAA0D;AAE1D,oBAAoB;AACpB,MAAM,GAAG,GAAG,CAAC,CAAS,EAAE,CAAS,EAAE,CAAS,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;AACpE,oDAAoD;AACpD,MAAM,GAAG,GAAG,CAAC,CAAS,EAAE,CAAS,EAAE,CAAS,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;AAE7E,mBAAmB;AACnB,yFAAyF;AACzF,kBAAkB;AAClB,MAAM,QAAQ,GAAG,eAAe,CAAA,IAAI,WAAW,CAAC;IAC9C,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU;IAC9F,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU;IAC9F,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,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C,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/hashes/esm/sha3-addons.js b/node_modules/@noble/hashes/esm/sha3-addons.js deleted file mode 100644 index 449b3a38..00000000 --- a/node_modules/@noble/hashes/esm/sha3-addons.js +++ /dev/null @@ -1,347 +0,0 @@ -import { number as assertNumber } from './_assert.js'; -import { toBytes, wrapConstructorWithOpts, u32 } from './utils.js'; -import { Keccak } from './sha3.js'; -// cSHAKE && KMAC (NIST SP800-185) -function leftEncode(n) { - const res = [n & 0xff]; - n >>= 8; - for (; n > 0; n >>= 8) - res.unshift(n & 0xff); - res.unshift(res.length); - return new Uint8Array(res); -} -function rightEncode(n) { - const res = [n & 0xff]; - n >>= 8; - for (; n > 0; n >>= 8) - res.unshift(n & 0xff); - res.push(res.length); - return new Uint8Array(res); -} -function chooseLen(opts, outputLen) { - return opts.dkLen === undefined ? outputLen : opts.dkLen; -} -const toBytesOptional = (buf) => (buf !== undefined ? toBytes(buf) : new Uint8Array([])); -// NOTE: second modulo is necessary since we don't need to add padding if current element takes whole block -const getPadding = (len, block) => new Uint8Array((block - (len % block)) % block); -// Personalization -function cshakePers(hash, opts = {}) { - if (!opts || (!opts.personalization && !opts.NISTfn)) - return hash; - // Encode and pad inplace to avoid unneccesary memory copies/slices (so we don't need to zero them later) - // bytepad(encode_string(N) || encode_string(S), 168) - const blockLenBytes = leftEncode(hash.blockLen); - const fn = toBytesOptional(opts.NISTfn); - const fnLen = leftEncode(8 * fn.length); // length in bits - const pers = toBytesOptional(opts.personalization); - const persLen = leftEncode(8 * pers.length); // length in bits - if (!fn.length && !pers.length) - return hash; - hash.suffix = 0x04; - hash.update(blockLenBytes).update(fnLen).update(fn).update(persLen).update(pers); - let totalLen = blockLenBytes.length + fnLen.length + fn.length + persLen.length + pers.length; - hash.update(getPadding(totalLen, hash.blockLen)); - return hash; -} -const gencShake = (suffix, blockLen, outputLen) => wrapConstructorWithOpts((opts = {}) => cshakePers(new Keccak(blockLen, suffix, chooseLen(opts, outputLen), true), opts)); -export const cshake128 = /* @__PURE__ */ (() => gencShake(0x1f, 168, 128 / 8))(); -export const cshake256 = /* @__PURE__ */ (() => gencShake(0x1f, 136, 256 / 8))(); -class KMAC extends Keccak { - constructor(blockLen, outputLen, enableXOF, key, opts = {}) { - super(blockLen, 0x1f, outputLen, enableXOF); - cshakePers(this, { NISTfn: 'KMAC', personalization: opts.personalization }); - key = toBytes(key); - // 1. newX = bytepad(encode_string(K), 168) || X || right_encode(L). - const blockLenBytes = leftEncode(this.blockLen); - const keyLen = leftEncode(8 * key.length); - this.update(blockLenBytes).update(keyLen).update(key); - const totalLen = blockLenBytes.length + keyLen.length + key.length; - this.update(getPadding(totalLen, this.blockLen)); - } - finish() { - if (!this.finished) - this.update(rightEncode(this.enableXOF ? 0 : this.outputLen * 8)); // outputLen in bits - super.finish(); - } - _cloneInto(to) { - // Create new instance without calling constructor since key already in state and we don't know it. - // Force "to" to be instance of KMAC instead of Sha3. - if (!to) { - to = Object.create(Object.getPrototypeOf(this), {}); - to.state = this.state.slice(); - to.blockLen = this.blockLen; - to.state32 = u32(to.state); - } - return super._cloneInto(to); - } - clone() { - return this._cloneInto(); - } -} -function genKmac(blockLen, outputLen, xof = false) { - const kmac = (key, message, opts) => kmac.create(key, opts).update(message).digest(); - kmac.create = (key, opts = {}) => new KMAC(blockLen, chooseLen(opts, outputLen), xof, key, opts); - return kmac; -} -export const kmac128 = /* @__PURE__ */ (() => genKmac(168, 128 / 8))(); -export const kmac256 = /* @__PURE__ */ (() => genKmac(136, 256 / 8))(); -export const kmac128xof = /* @__PURE__ */ (() => genKmac(168, 128 / 8, true))(); -export const kmac256xof = /* @__PURE__ */ (() => genKmac(136, 256 / 8, true))(); -// TupleHash -// Usage: tuple(['ab', 'cd']) != tuple(['a', 'bcd']) -class TupleHash extends Keccak { - constructor(blockLen, outputLen, enableXOF, opts = {}) { - super(blockLen, 0x1f, outputLen, enableXOF); - cshakePers(this, { NISTfn: 'TupleHash', personalization: opts.personalization }); - // Change update after cshake processed - this.update = (data) => { - data = toBytes(data); - super.update(leftEncode(data.length * 8)); - super.update(data); - return this; - }; - } - finish() { - if (!this.finished) - super.update(rightEncode(this.enableXOF ? 0 : this.outputLen * 8)); // outputLen in bits - super.finish(); - } - _cloneInto(to) { - to || (to = new TupleHash(this.blockLen, this.outputLen, this.enableXOF)); - return super._cloneInto(to); - } - clone() { - return this._cloneInto(); - } -} -function genTuple(blockLen, outputLen, xof = false) { - const tuple = (messages, opts) => { - const h = tuple.create(opts); - for (const msg of messages) - h.update(msg); - return h.digest(); - }; - tuple.create = (opts = {}) => new TupleHash(blockLen, chooseLen(opts, outputLen), xof, opts); - return tuple; -} -export const tuplehash128 = /* @__PURE__ */ (() => genTuple(168, 128 / 8))(); -export const tuplehash256 = /* @__PURE__ */ (() => genTuple(136, 256 / 8))(); -export const tuplehash128xof = /* @__PURE__ */ (() => genTuple(168, 128 / 8, true))(); -export const tuplehash256xof = /* @__PURE__ */ (() => genTuple(136, 256 / 8, true))(); -class ParallelHash extends Keccak { - constructor(blockLen, outputLen, leafCons, enableXOF, opts = {}) { - super(blockLen, 0x1f, outputLen, enableXOF); - this.leafCons = leafCons; - this.chunkPos = 0; // Position of current block in chunk - this.chunksDone = 0; // How many chunks we already have - cshakePers(this, { NISTfn: 'ParallelHash', personalization: opts.personalization }); - let { blockLen: B } = opts; - B || (B = 8); - assertNumber(B); - this.chunkLen = B; - super.update(leftEncode(B)); - // Change update after cshake processed - this.update = (data) => { - data = toBytes(data); - const { chunkLen, leafCons } = this; - for (let pos = 0, len = data.length; pos < len;) { - if (this.chunkPos == chunkLen || !this.leafHash) { - if (this.leafHash) { - super.update(this.leafHash.digest()); - this.chunksDone++; - } - this.leafHash = leafCons(); - this.chunkPos = 0; - } - const take = Math.min(chunkLen - this.chunkPos, len - pos); - this.leafHash.update(data.subarray(pos, pos + take)); - this.chunkPos += take; - pos += take; - } - return this; - }; - } - finish() { - if (this.finished) - return; - if (this.leafHash) { - super.update(this.leafHash.digest()); - this.chunksDone++; - } - super.update(rightEncode(this.chunksDone)); - super.update(rightEncode(this.enableXOF ? 0 : this.outputLen * 8)); // outputLen in bits - super.finish(); - } - _cloneInto(to) { - to || (to = new ParallelHash(this.blockLen, this.outputLen, this.leafCons, this.enableXOF)); - if (this.leafHash) - to.leafHash = this.leafHash._cloneInto(to.leafHash); - to.chunkPos = this.chunkPos; - to.chunkLen = this.chunkLen; - to.chunksDone = this.chunksDone; - return super._cloneInto(to); - } - destroy() { - super.destroy.call(this); - if (this.leafHash) - this.leafHash.destroy(); - } - clone() { - return this._cloneInto(); - } -} -function genPrl(blockLen, outputLen, leaf, xof = false) { - const parallel = (message, opts) => parallel.create(opts).update(message).digest(); - parallel.create = (opts = {}) => new ParallelHash(blockLen, chooseLen(opts, outputLen), () => leaf.create({ dkLen: 2 * outputLen }), xof, opts); - return parallel; -} -export const parallelhash128 = /* @__PURE__ */ (() => genPrl(168, 128 / 8, cshake128))(); -export const parallelhash256 = /* @__PURE__ */ (() => genPrl(136, 256 / 8, cshake256))(); -export const parallelhash128xof = /* @__PURE__ */ (() => genPrl(168, 128 / 8, cshake128, true))(); -export const parallelhash256xof = /* @__PURE__ */ (() => genPrl(136, 256 / 8, cshake256, true))(); -// Kangaroo -// Same as NIST rightEncode, but returns [0] for zero string -function rightEncodeK12(n) { - const res = []; - for (; n > 0; n >>= 8) - res.unshift(n & 0xff); - res.push(res.length); - return new Uint8Array(res); -} -const EMPTY = new Uint8Array([]); -class KangarooTwelve extends Keccak { - constructor(blockLen, leafLen, outputLen, rounds, opts) { - super(blockLen, 0x07, outputLen, true, rounds); - this.leafLen = leafLen; - this.chunkLen = 8192; - this.chunkPos = 0; // Position of current block in chunk - this.chunksDone = 0; // How many chunks we already have - const { personalization } = opts; - this.personalization = toBytesOptional(personalization); - } - update(data) { - data = toBytes(data); - const { chunkLen, blockLen, leafLen, rounds } = this; - for (let pos = 0, len = data.length; pos < len;) { - if (this.chunkPos == chunkLen) { - if (this.leafHash) - super.update(this.leafHash.digest()); - else { - this.suffix = 0x06; // Its safe to change suffix here since its used only in digest() - super.update(new Uint8Array([3, 0, 0, 0, 0, 0, 0, 0])); - } - this.leafHash = new Keccak(blockLen, 0x0b, leafLen, false, rounds); - this.chunksDone++; - this.chunkPos = 0; - } - const take = Math.min(chunkLen - this.chunkPos, len - pos); - const chunk = data.subarray(pos, pos + take); - if (this.leafHash) - this.leafHash.update(chunk); - else - super.update(chunk); - this.chunkPos += take; - pos += take; - } - return this; - } - finish() { - if (this.finished) - return; - const { personalization } = this; - this.update(personalization).update(rightEncodeK12(personalization.length)); - // Leaf hash - if (this.leafHash) { - super.update(this.leafHash.digest()); - super.update(rightEncodeK12(this.chunksDone)); - super.update(new Uint8Array([0xff, 0xff])); - } - super.finish.call(this); - } - destroy() { - super.destroy.call(this); - if (this.leafHash) - this.leafHash.destroy(); - // We cannot zero personalization buffer since it is user provided and we don't want to mutate user input - this.personalization = EMPTY; - } - _cloneInto(to) { - const { blockLen, leafLen, leafHash, outputLen, rounds } = this; - to || (to = new KangarooTwelve(blockLen, leafLen, outputLen, rounds, {})); - super._cloneInto(to); - if (leafHash) - to.leafHash = leafHash._cloneInto(to.leafHash); - to.personalization.set(this.personalization); - to.leafLen = this.leafLen; - to.chunkPos = this.chunkPos; - to.chunksDone = this.chunksDone; - return to; - } - clone() { - return this._cloneInto(); - } -} -// Default to 32 bytes, so it can be used without opts -export const k12 = /* @__PURE__ */ (() => wrapConstructorWithOpts((opts = {}) => new KangarooTwelve(168, 32, chooseLen(opts, 32), 12, opts)))(); -// MarsupilamiFourteen -export const m14 = /* @__PURE__ */ (() => wrapConstructorWithOpts((opts = {}) => new KangarooTwelve(136, 64, chooseLen(opts, 64), 14, opts)))(); -// https://keccak.team/files/CSF-0.1.pdf -// + https://github.com/XKCP/XKCP/tree/master/lib/high/Keccak/PRG -class KeccakPRG extends Keccak { - constructor(capacity) { - assertNumber(capacity); - // Rho should be full bytes - if (capacity < 0 || capacity > 1600 - 10 || (1600 - capacity - 2) % 8) - throw new Error('KeccakPRG: Invalid capacity'); - // blockLen = rho in bytes - super((1600 - capacity - 2) / 8, 0, 0, true); - this.rate = 1600 - capacity; - this.posOut = Math.floor((this.rate + 7) / 8); - } - keccak() { - // Duplex padding - this.state[this.pos] ^= 0x01; - this.state[this.blockLen] ^= 0x02; // Rho is full bytes - super.keccak(); - this.pos = 0; - this.posOut = 0; - } - update(data) { - super.update(data); - this.posOut = this.blockLen; - return this; - } - feed(data) { - return this.update(data); - } - finish() { } - digestInto(_out) { - throw new Error('KeccakPRG: digest is not allowed, please use .fetch instead.'); - } - fetch(bytes) { - return this.xof(bytes); - } - // Ensure irreversibility (even if state leaked previous outputs cannot be computed) - forget() { - if (this.rate < 1600 / 2 + 1) - throw new Error('KeccakPRG: rate too low to use forget'); - this.keccak(); - for (let i = 0; i < this.blockLen; i++) - this.state[i] = 0; - this.pos = this.blockLen; - this.keccak(); - this.posOut = this.blockLen; - } - _cloneInto(to) { - const { rate } = this; - to || (to = new KeccakPRG(1600 - rate)); - super._cloneInto(to); - to.rate = rate; - return to; - } - clone() { - return this._cloneInto(); - } -} -export const keccakprg = (capacity = 254) => new KeccakPRG(capacity); -//# sourceMappingURL=sha3-addons.js.map \ No newline at end of file diff --git a/node_modules/@noble/hashes/esm/sha3-addons.js.map b/node_modules/@noble/hashes/esm/sha3-addons.js.map deleted file mode 100644 index 7600a9a9..00000000 --- a/node_modules/@noble/hashes/esm/sha3-addons.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sha3-addons.js","sourceRoot":"","sources":["../src/sha3-addons.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,IAAI,YAAY,EAAE,MAAM,cAAc,CAAC;AACtD,OAAO,EAAS,OAAO,EAAE,uBAAuB,EAAE,GAAG,EAAiB,MAAM,YAAY,CAAC;AACzF,OAAO,EAAE,MAAM,EAAa,MAAM,WAAW,CAAC;AAC9C,kCAAkC;AAClC,SAAS,UAAU,CAAC,CAAS;IA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E,CAAC;IACZ,CAAC;IACD,KAAK;QACH,OAAO,IAAI,CAAC,UAAU,EAAE,CAAC;IAC3B,CAAC;CACF;AAED,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,QAAQ,GAAG,GAAG,EAAE,EAAE,CAAC,IAAI,SAAS,CAAC,QAAQ,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/hashes/esm/sha3.js b/node_modules/@noble/hashes/esm/sha3.js deleted file mode 100644 index 0879d36f..00000000 --- a/node_modules/@noble/hashes/esm/sha3.js +++ /dev/null @@ -1,208 +0,0 @@ -import { bytes, exists, number, output } from './_assert.js'; -import { rotlBH, rotlBL, rotlSH, rotlSL, split } from './_u64.js'; -import { Hash, u32, toBytes, wrapConstructor, wrapXOFConstructorWithOpts, } from './utils.js'; -// SHA3 (keccak) is based on a new design: basically, the internal state is bigger than output size. -// It's called a sponge function. -// Various per round constants calculations -const [SHA3_PI, SHA3_ROTL, _SHA3_IOTA] = [[], [], []]; -const _0n = /* @__PURE__ */ BigInt(0); -const _1n = /* @__PURE__ */ BigInt(1); -const _2n = /* @__PURE__ */ BigInt(2); -const _7n = /* @__PURE__ */ BigInt(7); -const _256n = /* @__PURE__ */ BigInt(256); -const _0x71n = /* @__PURE__ */ BigInt(0x71); -for (let round = 0, R = _1n, x = 1, y = 0; round < 24; round++) { - // Pi - [x, y] = [y, (2 * x + 3 * y) % 5]; - SHA3_PI.push(2 * (5 * y + x)); - // Rotational - SHA3_ROTL.push((((round + 1) * (round + 2)) / 2) % 64); - // Iota - let t = _0n; - for (let j = 0; j < 7; j++) { - R = ((R << _1n) ^ ((R >> _7n) * _0x71n)) % _256n; - if (R & _2n) - t ^= _1n << ((_1n << /* @__PURE__ */ BigInt(j)) - _1n); - } - _SHA3_IOTA.push(t); -} -const [SHA3_IOTA_H, SHA3_IOTA_L] = /* @__PURE__ */ split(_SHA3_IOTA, true); -// Left rotation (without 0, 32, 64) -const rotlH = (h, l, s) => (s > 32 ? rotlBH(h, l, s) : rotlSH(h, l, s)); -const rotlL = (h, l, s) => (s > 32 ? rotlBL(h, l, s) : rotlSL(h, l, s)); -// Same as keccakf1600, but allows to skip some rounds -export function keccakP(s, rounds = 24) { - const B = new Uint32Array(5 * 2); - // NOTE: all indices are x2 since we store state as u32 instead of u64 (bigints to slow in js) - for (let round = 24 - rounds; round < 24; round++) { - // Theta θ - for (let x = 0; x < 10; x++) - B[x] = s[x] ^ s[x + 10] ^ s[x + 20] ^ s[x + 30] ^ s[x + 40]; - for (let x = 0; x < 10; x += 2) { - const idx1 = (x + 8) % 10; - const idx0 = (x + 2) % 10; - const B0 = B[idx0]; - const B1 = B[idx0 + 1]; - const Th = rotlH(B0, B1, 1) ^ B[idx1]; - const Tl = rotlL(B0, B1, 1) ^ B[idx1 + 1]; - for (let y = 0; y < 50; y += 10) { - s[x + y] ^= Th; - s[x + y + 1] ^= Tl; - } - } - // Rho (ρ) and Pi (π) - let curH = s[2]; - let curL = s[3]; - for (let t = 0; t < 24; t++) { - const shift = SHA3_ROTL[t]; - const Th = rotlH(curH, curL, shift); - const Tl = rotlL(curH, curL, shift); - const PI = SHA3_PI[t]; - curH = s[PI]; - curL = s[PI + 1]; - s[PI] = Th; - s[PI + 1] = Tl; - } - // Chi (χ) - for (let y = 0; y < 50; y += 10) { - for (let x = 0; x < 10; x++) - B[x] = s[y + x]; - for (let x = 0; x < 10; x++) - s[y + x] ^= ~B[(x + 2) % 10] & B[(x + 4) % 10]; - } - // Iota (ι) - s[0] ^= SHA3_IOTA_H[round]; - s[1] ^= SHA3_IOTA_L[round]; - } - B.fill(0); -} -export class Keccak extends Hash { - // NOTE: we accept arguments in bytes instead of bits here. - constructor(blockLen, suffix, outputLen, enableXOF = false, rounds = 24) { - super(); - this.blockLen = blockLen; - this.suffix = suffix; - this.outputLen = outputLen; - this.enableXOF = enableXOF; - this.rounds = rounds; - this.pos = 0; - this.posOut = 0; - this.finished = false; - this.destroyed = false; - // Can be passed from user as dkLen - number(outputLen); - // 1600 = 5x5 matrix of 64bit. 1600 bits === 200 bytes - if (0 >= this.blockLen || this.blockLen >= 200) - throw new Error('Sha3 supports only keccak-f1600 function'); - this.state = new Uint8Array(200); - this.state32 = u32(this.state); - } - keccak() { - keccakP(this.state32, this.rounds); - this.posOut = 0; - this.pos = 0; - } - update(data) { - exists(this); - const { blockLen, state } = this; - data = toBytes(data); - const len = data.length; - for (let pos = 0; pos < len;) { - const take = Math.min(blockLen - this.pos, len - pos); - for (let i = 0; i < take; i++) - state[this.pos++] ^= data[pos++]; - if (this.pos === blockLen) - this.keccak(); - } - return this; - } - finish() { - if (this.finished) - return; - this.finished = true; - const { state, suffix, pos, blockLen } = this; - // Do the padding - state[pos] ^= suffix; - if ((suffix & 0x80) !== 0 && pos === blockLen - 1) - this.keccak(); - state[blockLen - 1] ^= 0x80; - this.keccak(); - } - writeInto(out) { - exists(this, false); - bytes(out); - this.finish(); - const bufferOut = this.state; - const { blockLen } = this; - for (let pos = 0, len = out.length; pos < len;) { - if (this.posOut >= blockLen) - this.keccak(); - const take = Math.min(blockLen - this.posOut, len - pos); - out.set(bufferOut.subarray(this.posOut, this.posOut + take), pos); - this.posOut += take; - pos += take; - } - return out; - } - xofInto(out) { - // Sha3/Keccak usage with XOF is probably mistake, only SHAKE instances can do XOF - if (!this.enableXOF) - throw new Error('XOF is not possible for this instance'); - return this.writeInto(out); - } - xof(bytes) { - number(bytes); - return this.xofInto(new Uint8Array(bytes)); - } - digestInto(out) { - output(out, this); - if (this.finished) - throw new Error('digest() was already called'); - this.writeInto(out); - this.destroy(); - return out; - } - digest() { - return this.digestInto(new Uint8Array(this.outputLen)); - } - destroy() { - this.destroyed = true; - this.state.fill(0); - } - _cloneInto(to) { - const { blockLen, suffix, outputLen, rounds, enableXOF } = this; - to || (to = new Keccak(blockLen, suffix, outputLen, enableXOF, rounds)); - to.state32.set(this.state32); - to.pos = this.pos; - to.posOut = this.posOut; - to.finished = this.finished; - to.rounds = rounds; - // Suffix can change in cSHAKE - to.suffix = suffix; - to.outputLen = outputLen; - to.enableXOF = enableXOF; - to.destroyed = this.destroyed; - return to; - } -} -const gen = (suffix, blockLen, outputLen) => wrapConstructor(() => new Keccak(blockLen, suffix, outputLen)); -export const sha3_224 = /* @__PURE__ */ gen(0x06, 144, 224 / 8); -/** - * SHA3-256 hash function - * @param message - that would be hashed - */ -export const sha3_256 = /* @__PURE__ */ gen(0x06, 136, 256 / 8); -export const sha3_384 = /* @__PURE__ */ gen(0x06, 104, 384 / 8); -export const sha3_512 = /* @__PURE__ */ gen(0x06, 72, 512 / 8); -export const keccak_224 = /* @__PURE__ */ gen(0x01, 144, 224 / 8); -/** - * keccak-256 hash function. Different from SHA3-256. - * @param message - that would be hashed - */ -export const keccak_256 = /* @__PURE__ */ gen(0x01, 136, 256 / 8); -export const keccak_384 = /* @__PURE__ */ gen(0x01, 104, 384 / 8); -export const keccak_512 = /* @__PURE__ */ gen(0x01, 72, 512 / 8); -const genShake = (suffix, blockLen, outputLen) => wrapXOFConstructorWithOpts((opts = {}) => new Keccak(blockLen, suffix, opts.dkLen === undefined ? outputLen : opts.dkLen, true)); -export const shake128 = /* @__PURE__ */ genShake(0x1f, 168, 128 / 8); -export const shake256 = /* @__PURE__ */ genShake(0x1f, 136, 256 / 8); -//# sourceMappingURL=sha3.js.map \ No newline at end of file diff --git a/node_modules/@noble/hashes/esm/sha3.js.map b/node_modules/@noble/hashes/esm/sha3.js.map deleted file mode 100644 index 32d5b164..00000000 --- a/node_modules/@noble/hashes/esm/sha3.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sha3.js","sourceRoot":"","sources":["../src/sha3.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,KAAK,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,cAAc,CAAC;AAC7D,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,KAAK,EAAE,MAAM,WAAW,CAAC;AAClE,OAAO,EACL,IAAI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,MAAM,CAAC,MAAM,QAAQ,GAAG,eAAe,CAAC,QAAQ,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,GAAG,CAAC,CAAC,CAAC;AACrE,MAAM,CAAC,MAAM,QAAQ,GAAG,eAAe,CAAC,QAAQ,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,GAAG,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/hashes/esm/sha512.js b/node_modules/@noble/hashes/esm/sha512.js deleted file mode 100644 index f938b6d0..00000000 --- a/node_modules/@noble/hashes/esm/sha512.js +++ /dev/null @@ -1,231 +0,0 @@ -import { SHA2 } from './_sha2.js'; -import u64 from './_u64.js'; -import { wrapConstructor } from './utils.js'; -// Round contants (first 32 bits of the fractional parts of the cube roots of the first 80 primes 2..409): -// prettier-ignore -const [SHA512_Kh, SHA512_Kl] = /* @__PURE__ */ (() => u64.split([ - '0x428a2f98d728ae22', '0x7137449123ef65cd', '0xb5c0fbcfec4d3b2f', '0xe9b5dba58189dbbc', - '0x3956c25bf348b538', '0x59f111f1b605d019', '0x923f82a4af194f9b', '0xab1c5ed5da6d8118', - '0xd807aa98a3030242', '0x12835b0145706fbe', '0x243185be4ee4b28c', '0x550c7dc3d5ffb4e2', - '0x72be5d74f27b896f', '0x80deb1fe3b1696b1', '0x9bdc06a725c71235', '0xc19bf174cf692694', - '0xe49b69c19ef14ad2', '0xefbe4786384f25e3', '0x0fc19dc68b8cd5b5', '0x240ca1cc77ac9c65', - '0x2de92c6f592b0275', '0x4a7484aa6ea6e483', '0x5cb0a9dcbd41fbd4', '0x76f988da831153b5', - '0x983e5152ee66dfab', '0xa831c66d2db43210', '0xb00327c898fb213f', '0xbf597fc7beef0ee4', - '0xc6e00bf33da88fc2', '0xd5a79147930aa725', '0x06ca6351e003826f', '0x142929670a0e6e70', - '0x27b70a8546d22ffc', '0x2e1b21385c26c926', '0x4d2c6dfc5ac42aed', '0x53380d139d95b3df', - '0x650a73548baf63de', '0x766a0abb3c77b2a8', '0x81c2c92e47edaee6', '0x92722c851482353b', - '0xa2bfe8a14cf10364', '0xa81a664bbc423001', '0xc24b8b70d0f89791', '0xc76c51a30654be30', - '0xd192e819d6ef5218', '0xd69906245565a910', '0xf40e35855771202a', '0x106aa07032bbd1b8', - '0x19a4c116b8d2d0c8', '0x1e376c085141ab53', '0x2748774cdf8eeb99', '0x34b0bcb5e19b48a8', - '0x391c0cb3c5c95a63', '0x4ed8aa4ae3418acb', '0x5b9cca4f7763e373', '0x682e6ff3d6b2b8a3', - '0x748f82ee5defb2fc', '0x78a5636f43172f60', '0x84c87814a1f0ab72', '0x8cc702081a6439ec', - '0x90befffa23631e28', '0xa4506cebde82bde9', '0xbef9a3f7b2c67915', '0xc67178f2e372532b', - '0xca273eceea26619c', '0xd186b8c721c0c207', '0xeada7dd6cde0eb1e', '0xf57d4f7fee6ed178', - '0x06f067aa72176fba', '0x0a637dc5a2c898a6', '0x113f9804bef90dae', '0x1b710b35131c471b', - '0x28db77f523047d84', '0x32caab7b40c72493', '0x3c9ebe0a15c9bebc', '0x431d67c49c100d4c', - '0x4cc5d4becb3e42b6', '0x597f299cfc657e2a', '0x5fcb6fab3ad6faec', '0x6c44198c4a475817' -].map(n => BigInt(n))))(); -// Temporary buffer, not used to store anything between runs -const SHA512_W_H = /* @__PURE__ */ new Uint32Array(80); -const SHA512_W_L = /* @__PURE__ */ new Uint32Array(80); -export class SHA512 extends SHA2 { - constructor() { - super(128, 64, 16, false); - // We cannot use array here since array allows indexing by variable which means optimizer/compiler cannot use registers. - // Also looks cleaner and easier to verify with spec. - // Initial state (first 32 bits of the fractional parts of the square roots of the first 8 primes 2..19): - // h -- high 32 bits, l -- low 32 bits - this.Ah = 0x6a09e667 | 0; - this.Al = 0xf3bcc908 | 0; - this.Bh = 0xbb67ae85 | 0; - this.Bl = 0x84caa73b | 0; - this.Ch = 0x3c6ef372 | 0; - this.Cl = 0xfe94f82b | 0; - this.Dh = 0xa54ff53a | 0; - this.Dl = 0x5f1d36f1 | 0; - this.Eh = 0x510e527f | 0; - this.El = 0xade682d1 | 0; - this.Fh = 0x9b05688c | 0; - this.Fl = 0x2b3e6c1f | 0; - this.Gh = 0x1f83d9ab | 0; - this.Gl = 0xfb41bd6b | 0; - this.Hh = 0x5be0cd19 | 0; - this.Hl = 0x137e2179 | 0; - } - // prettier-ignore - get() { - const { Ah, Al, Bh, Bl, Ch, Cl, Dh, Dl, Eh, El, Fh, Fl, Gh, Gl, Hh, Hl } = this; - return [Ah, Al, Bh, Bl, Ch, Cl, Dh, Dl, Eh, El, Fh, Fl, Gh, Gl, Hh, Hl]; - } - // prettier-ignore - set(Ah, Al, Bh, Bl, Ch, Cl, Dh, Dl, Eh, El, Fh, Fl, Gh, Gl, Hh, Hl) { - this.Ah = Ah | 0; - this.Al = Al | 0; - this.Bh = Bh | 0; - this.Bl = Bl | 0; - this.Ch = Ch | 0; - this.Cl = Cl | 0; - this.Dh = Dh | 0; - this.Dl = Dl | 0; - this.Eh = Eh | 0; - this.El = El | 0; - this.Fh = Fh | 0; - this.Fl = Fl | 0; - this.Gh = Gh | 0; - this.Gl = Gl | 0; - this.Hh = Hh | 0; - this.Hl = Hl | 0; - } - process(view, offset) { - // Extend the first 16 words into the remaining 64 words w[16..79] of the message schedule array - for (let i = 0; i < 16; i++, offset += 4) { - SHA512_W_H[i] = view.getUint32(offset); - SHA512_W_L[i] = view.getUint32((offset += 4)); - } - for (let i = 16; i < 80; i++) { - // s0 := (w[i-15] rightrotate 1) xor (w[i-15] rightrotate 8) xor (w[i-15] rightshift 7) - const W15h = SHA512_W_H[i - 15] | 0; - const W15l = SHA512_W_L[i - 15] | 0; - const s0h = u64.rotrSH(W15h, W15l, 1) ^ u64.rotrSH(W15h, W15l, 8) ^ u64.shrSH(W15h, W15l, 7); - const s0l = u64.rotrSL(W15h, W15l, 1) ^ u64.rotrSL(W15h, W15l, 8) ^ u64.shrSL(W15h, W15l, 7); - // s1 := (w[i-2] rightrotate 19) xor (w[i-2] rightrotate 61) xor (w[i-2] rightshift 6) - const W2h = SHA512_W_H[i - 2] | 0; - const W2l = SHA512_W_L[i - 2] | 0; - const s1h = u64.rotrSH(W2h, W2l, 19) ^ u64.rotrBH(W2h, W2l, 61) ^ u64.shrSH(W2h, W2l, 6); - const s1l = u64.rotrSL(W2h, W2l, 19) ^ u64.rotrBL(W2h, W2l, 61) ^ u64.shrSL(W2h, W2l, 6); - // SHA256_W[i] = s0 + s1 + SHA256_W[i - 7] + SHA256_W[i - 16]; - const SUMl = u64.add4L(s0l, s1l, SHA512_W_L[i - 7], SHA512_W_L[i - 16]); - const SUMh = u64.add4H(SUMl, s0h, s1h, SHA512_W_H[i - 7], SHA512_W_H[i - 16]); - SHA512_W_H[i] = SUMh | 0; - SHA512_W_L[i] = SUMl | 0; - } - let { Ah, Al, Bh, Bl, Ch, Cl, Dh, Dl, Eh, El, Fh, Fl, Gh, Gl, Hh, Hl } = this; - // Compression function main loop, 80 rounds - for (let i = 0; i < 80; i++) { - // S1 := (e rightrotate 14) xor (e rightrotate 18) xor (e rightrotate 41) - const sigma1h = u64.rotrSH(Eh, El, 14) ^ u64.rotrSH(Eh, El, 18) ^ u64.rotrBH(Eh, El, 41); - const sigma1l = u64.rotrSL(Eh, El, 14) ^ u64.rotrSL(Eh, El, 18) ^ u64.rotrBL(Eh, El, 41); - //const T1 = (H + sigma1 + Chi(E, F, G) + SHA256_K[i] + SHA256_W[i]) | 0; - const CHIh = (Eh & Fh) ^ (~Eh & Gh); - const CHIl = (El & Fl) ^ (~El & Gl); - // T1 = H + sigma1 + Chi(E, F, G) + SHA512_K[i] + SHA512_W[i] - // prettier-ignore - const T1ll = u64.add5L(Hl, sigma1l, CHIl, SHA512_Kl[i], SHA512_W_L[i]); - const T1h = u64.add5H(T1ll, Hh, sigma1h, CHIh, SHA512_Kh[i], SHA512_W_H[i]); - const T1l = T1ll | 0; - // S0 := (a rightrotate 28) xor (a rightrotate 34) xor (a rightrotate 39) - const sigma0h = u64.rotrSH(Ah, Al, 28) ^ u64.rotrBH(Ah, Al, 34) ^ u64.rotrBH(Ah, Al, 39); - const sigma0l = u64.rotrSL(Ah, Al, 28) ^ u64.rotrBL(Ah, Al, 34) ^ u64.rotrBL(Ah, Al, 39); - const MAJh = (Ah & Bh) ^ (Ah & Ch) ^ (Bh & Ch); - const MAJl = (Al & Bl) ^ (Al & Cl) ^ (Bl & Cl); - Hh = Gh | 0; - Hl = Gl | 0; - Gh = Fh | 0; - Gl = Fl | 0; - Fh = Eh | 0; - Fl = El | 0; - ({ h: Eh, l: El } = u64.add(Dh | 0, Dl | 0, T1h | 0, T1l | 0)); - Dh = Ch | 0; - Dl = Cl | 0; - Ch = Bh | 0; - Cl = Bl | 0; - Bh = Ah | 0; - Bl = Al | 0; - const All = u64.add3L(T1l, sigma0l, MAJl); - Ah = u64.add3H(All, T1h, sigma0h, MAJh); - Al = All | 0; - } - // Add the compressed chunk to the current hash value - ({ h: Ah, l: Al } = u64.add(this.Ah | 0, this.Al | 0, Ah | 0, Al | 0)); - ({ h: Bh, l: Bl } = u64.add(this.Bh | 0, this.Bl | 0, Bh | 0, Bl | 0)); - ({ h: Ch, l: Cl } = u64.add(this.Ch | 0, this.Cl | 0, Ch | 0, Cl | 0)); - ({ h: Dh, l: Dl } = u64.add(this.Dh | 0, this.Dl | 0, Dh | 0, Dl | 0)); - ({ h: Eh, l: El } = u64.add(this.Eh | 0, this.El | 0, Eh | 0, El | 0)); - ({ h: Fh, l: Fl } = u64.add(this.Fh | 0, this.Fl | 0, Fh | 0, Fl | 0)); - ({ h: Gh, l: Gl } = u64.add(this.Gh | 0, this.Gl | 0, Gh | 0, Gl | 0)); - ({ h: Hh, l: Hl } = u64.add(this.Hh | 0, this.Hl | 0, Hh | 0, Hl | 0)); - this.set(Ah, Al, Bh, Bl, Ch, Cl, Dh, Dl, Eh, El, Fh, Fl, Gh, Gl, Hh, Hl); - } - roundClean() { - SHA512_W_H.fill(0); - SHA512_W_L.fill(0); - } - destroy() { - this.buffer.fill(0); - this.set(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); - } -} -class SHA512_224 extends SHA512 { - constructor() { - super(); - // h -- high 32 bits, l -- low 32 bits - this.Ah = 0x8c3d37c8 | 0; - this.Al = 0x19544da2 | 0; - this.Bh = 0x73e19966 | 0; - this.Bl = 0x89dcd4d6 | 0; - this.Ch = 0x1dfab7ae | 0; - this.Cl = 0x32ff9c82 | 0; - this.Dh = 0x679dd514 | 0; - this.Dl = 0x582f9fcf | 0; - this.Eh = 0x0f6d2b69 | 0; - this.El = 0x7bd44da8 | 0; - this.Fh = 0x77e36f73 | 0; - this.Fl = 0x04c48942 | 0; - this.Gh = 0x3f9d85a8 | 0; - this.Gl = 0x6a1d36c8 | 0; - this.Hh = 0x1112e6ad | 0; - this.Hl = 0x91d692a1 | 0; - this.outputLen = 28; - } -} -class SHA512_256 extends SHA512 { - constructor() { - super(); - // h -- high 32 bits, l -- low 32 bits - this.Ah = 0x22312194 | 0; - this.Al = 0xfc2bf72c | 0; - this.Bh = 0x9f555fa3 | 0; - this.Bl = 0xc84c64c2 | 0; - this.Ch = 0x2393b86b | 0; - this.Cl = 0x6f53b151 | 0; - this.Dh = 0x96387719 | 0; - this.Dl = 0x5940eabd | 0; - this.Eh = 0x96283ee2 | 0; - this.El = 0xa88effe3 | 0; - this.Fh = 0xbe5e1e25 | 0; - this.Fl = 0x53863992 | 0; - this.Gh = 0x2b0199fc | 0; - this.Gl = 0x2c85b8aa | 0; - this.Hh = 0x0eb72ddc | 0; - this.Hl = 0x81c52ca2 | 0; - this.outputLen = 32; - } -} -class SHA384 extends SHA512 { - constructor() { - super(); - // h -- high 32 bits, l -- low 32 bits - this.Ah = 0xcbbb9d5d | 0; - this.Al = 0xc1059ed8 | 0; - this.Bh = 0x629a292a | 0; - this.Bl = 0x367cd507 | 0; - this.Ch = 0x9159015a | 0; - this.Cl = 0x3070dd17 | 0; - this.Dh = 0x152fecd8 | 0; - this.Dl = 0xf70e5939 | 0; - this.Eh = 0x67332667 | 0; - this.El = 0xffc00b31 | 0; - this.Fh = 0x8eb44a87 | 0; - this.Fl = 0x68581511 | 0; - this.Gh = 0xdb0c2e0d | 0; - this.Gl = 0x64f98fa7 | 0; - this.Hh = 0x47b5481d | 0; - this.Hl = 0xbefa4fa4 | 0; - this.outputLen = 48; - } -} -export const sha512 = /* @__PURE__ */ wrapConstructor(() => new SHA512()); -export const sha512_224 = /* @__PURE__ */ wrapConstructor(() => new SHA512_224()); -export const sha512_256 = /* @__PURE__ */ wrapConstructor(() => new SHA512_256()); -export const sha384 = /* @__PURE__ */ wrapConstructor(() => new SHA384()); -//# sourceMappingURL=sha512.js.map \ No newline at end of file diff --git a/node_modules/@noble/hashes/esm/sha512.js.map b/node_modules/@noble/hashes/esm/sha512.js.map deleted file mode 100644 index 4c9e3e68..00000000 --- a/node_modules/@noble/hashes/esm/sha512.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sha512.js","sourceRoot":"","sources":["../src/sha512.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,IAAI,EAAE,MAAM,YAAY,CAAC;AAClC,OAAO,GAAG,MAAM,WAAW,CAAC;AAC5B,OAAO,EAAE,eAAe,EAAE,MAAM,YAAY,CAAC;AAE7C,0GAA0G;AAC1G,kBAAkB;AAClB,MAAM,CAAC,SAAS,EAAE,SAAS,CAAC,GAAG,eAAe,CAAC,CAAC,GAAG,EAAE,CAAC,GAAG,CAAC,KAAK,CAAC;IAC9D,oBAAoB,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,oBAAoB;IACtF,oBAAoB,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,oBAAoB;IACtF,oBAAoB,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,oBAAoB;IACtF,oBAAoB,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,oBAAoB;IACtF,oBAAoB,EAAE,oBAAoB,EAAE,oBAAoB,EAAE,oBAAoB;IACtF,oBAAoB,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E,GAAG,UAAU,GAAG,CAAC,CAAC;QACpB,OAAE,GAAG,UAAU,GAAG,CAAC,CAAC;QACpB,OAAE,GAAG,UAAU,GAAG,CAAC,CAAC;QAIlB,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC;IACtB,CAAC;CACF;AAED,MAAM,CAAC,MAAM,MAAM,GAAG,eAAe,CAAC,eAAe,CAAC,GAAG,EAAE,CAAC,IAAI,MAAM,EAAE,CAAC,CAAC;AAC1E,MAAM,CAAC,MAAM,UAAU,GAAG,eAAe,CAAC,eAAe,CAAC,GAAG,EAAE,CAAC,IAAI,UAAU,EAAE,CAAC,CAAC;AAClF,MAAM,CAAC,MAAM,UAAU,GAAG,eAAe,CAAC,eAAe,CAAC,GAAG,EAAE,CAAC,IAAI,UAAU,EAAE,CAAC,CAAC;AAClF,MAAM,CAAC,MAAM,MAAM,GAAG,eAAe,CAAC,eAAe,CAAC,GAAG,EAAE,CAAC,IAAI,MAAM,EAAE,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/hashes/esm/utils.js b/node_modules/@noble/hashes/esm/utils.js deleted file mode 100644 index 80c09498..00000000 --- a/node_modules/@noble/hashes/esm/utils.js +++ /dev/null @@ -1,154 +0,0 @@ -/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */ -// We use WebCrypto aka globalThis.crypto, which exists in browsers and node.js 16+. -// node.js versions earlier than v19 don't declare it in global scope. -// For node.js, package.json#exports field mapping rewrites import -// from `crypto` to `cryptoNode`, which imports native module. -// Makes the utils un-importable in browsers without a bundler. -// Once node.js 18 is deprecated, we can just drop the import. -import { crypto } from '@noble/hashes/crypto'; -const u8a = (a) => a instanceof Uint8Array; -// Cast array to different type -export const u8 = (arr) => new Uint8Array(arr.buffer, arr.byteOffset, arr.byteLength); -export const u32 = (arr) => new Uint32Array(arr.buffer, arr.byteOffset, Math.floor(arr.byteLength / 4)); -// Cast array to view -export const createView = (arr) => new DataView(arr.buffer, arr.byteOffset, arr.byteLength); -// The rotate right (circular right shift) operation for uint32 -export const rotr = (word, shift) => (word << (32 - shift)) | (word >>> shift); -// big-endian hardware is rare. Just in case someone still decides to run hashes: -// early-throw an error because we don't support BE yet. -export const isLE = new Uint8Array(new Uint32Array([0x11223344]).buffer)[0] === 0x44; -if (!isLE) - throw new Error('Non little-endian hardware is not supported'); -const hexes = /* @__PURE__ */ Array.from({ length: 256 }, (_, i) => i.toString(16).padStart(2, '0')); -/** - * @example bytesToHex(Uint8Array.from([0xca, 0xfe, 0x01, 0x23])) // 'cafe0123' - */ -export function bytesToHex(bytes) { - if (!u8a(bytes)) - throw new Error('Uint8Array expected'); - // pre-caching improves the speed 6x - let hex = ''; - for (let i = 0; i < bytes.length; i++) { - hex += hexes[bytes[i]]; - } - return hex; -} -/** - * @example hexToBytes('cafe0123') // Uint8Array.from([0xca, 0xfe, 0x01, 0x23]) - */ -export function hexToBytes(hex) { - if (typeof hex !== 'string') - throw new Error('hex string expected, got ' + typeof hex); - const len = hex.length; - if (len % 2) - throw new Error('padded hex string expected, got unpadded hex of length ' + len); - const array = new Uint8Array(len / 2); - for (let i = 0; i < array.length; i++) { - const j = i * 2; - const hexByte = hex.slice(j, j + 2); - const byte = Number.parseInt(hexByte, 16); - if (Number.isNaN(byte) || byte < 0) - throw new Error('Invalid byte sequence'); - array[i] = byte; - } - return array; -} -// There is no setImmediate in browser and setTimeout is slow. -// call of async fn will return Promise, which will be fullfiled only on -// next scheduler queue processing step and this is exactly what we need. -export const nextTick = async () => { }; -// Returns control to thread each 'tick' ms to avoid blocking -export async function asyncLoop(iters, tick, cb) { - let ts = Date.now(); - for (let i = 0; i < iters; i++) { - cb(i); - // Date.now() is not monotonic, so in case if clock goes backwards we return return control too - const diff = Date.now() - ts; - if (diff >= 0 && diff < tick) - continue; - await nextTick(); - ts += diff; - } -} -/** - * @example utf8ToBytes('abc') // new Uint8Array([97, 98, 99]) - */ -export function utf8ToBytes(str) { - if (typeof str !== 'string') - throw new Error(`utf8ToBytes expected string, got ${typeof str}`); - return new Uint8Array(new TextEncoder().encode(str)); // https://bugzil.la/1681809 -} -/** - * Normalizes (non-hex) string or Uint8Array to Uint8Array. - * Warning: when Uint8Array is passed, it would NOT get copied. - * Keep in mind for future mutable operations. - */ -export function toBytes(data) { - if (typeof data === 'string') - data = utf8ToBytes(data); - if (!u8a(data)) - throw new Error(`expected Uint8Array, got ${typeof data}`); - return data; -} -/** - * Copies several Uint8Arrays into one. - */ -export function concatBytes(...arrays) { - const r = new Uint8Array(arrays.reduce((sum, a) => sum + a.length, 0)); - let pad = 0; // walk through each item, ensure they have proper type - arrays.forEach((a) => { - if (!u8a(a)) - throw new Error('Uint8Array expected'); - r.set(a, pad); - pad += a.length; - }); - return r; -} -// For runtime check if class implements interface -export class Hash { - // Safe version that clones internal state - clone() { - return this._cloneInto(); - } -} -const toStr = {}.toString; -export function checkOpts(defaults, opts) { - if (opts !== undefined && toStr.call(opts) !== '[object Object]') - throw new Error('Options should be object or undefined'); - const merged = Object.assign(defaults, opts); - return merged; -} -export function wrapConstructor(hashCons) { - const hashC = (msg) => hashCons().update(toBytes(msg)).digest(); - const tmp = hashCons(); - hashC.outputLen = tmp.outputLen; - hashC.blockLen = tmp.blockLen; - hashC.create = () => hashCons(); - return hashC; -} -export function wrapConstructorWithOpts(hashCons) { - const hashC = (msg, opts) => hashCons(opts).update(toBytes(msg)).digest(); - const tmp = hashCons({}); - hashC.outputLen = tmp.outputLen; - hashC.blockLen = tmp.blockLen; - hashC.create = (opts) => hashCons(opts); - return hashC; -} -export function wrapXOFConstructorWithOpts(hashCons) { - const hashC = (msg, opts) => hashCons(opts).update(toBytes(msg)).digest(); - const tmp = hashCons({}); - hashC.outputLen = tmp.outputLen; - hashC.blockLen = tmp.blockLen; - hashC.create = (opts) => hashCons(opts); - return hashC; -} -/** - * Secure PRNG. Uses `crypto.getRandomValues`, which defers to OS. - */ -export function randomBytes(bytesLength = 32) { - if (crypto && typeof crypto.getRandomValues === 'function') { - return crypto.getRandomValues(new Uint8Array(bytesLength)); - } - throw new Error('crypto.getRandomValues must be defined'); -} -//# sourceMappingURL=utils.js.map \ No newline at end of file diff --git a/node_modules/@noble/hashes/esm/utils.js.map b/node_modules/@noble/hashes/esm/utils.js.map deleted file mode 100644 index 19d87a90..00000000 --- a/node_modules/@noble/hashes/esm/utils.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"utils.js","sourceRoot":"","sources":["../src/utils.ts"],"names":[],"mappings":"AAAA,sEAAsE;AAEtE,oFAAoF;AACpF,sEAAsE;AACtE,kEAAkE;AAClE,8DAA8D;AAC9D,+DAA+D;AAC/D,8DAA8D;AAC9D,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAM9C,MAAM,GAAG,GAAG,CAAC,CAAM,EAAmB,EAAE,CAAC,CAAC,YAAY,UAAU,CAAC;AACjE,+BAA+B;AAC/B,MAAM,CAAC,MAAM,EAAE,GAAG,CAAC,GAAe,EAAE,EAAE,CAAC,IAAI,UAAU,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,UAAU,EAAE,GAAG,CAAC,UAAU,CAAC,CAAC;AAClG,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC,GAAe,EAAE,EAAE,CACrC,IAAI,WAAW,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,UAAU,EAAE,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,UAAU,GAAG,CAAC,CAAC,CAAC,CAAC;AAE9E,qBAAqB;AACrB,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,GAAe,EAAE,EAAE,CAC5C,IAAI,QAAQ,CAAC,GAAG,CAAC,MAAM,EAAE,GAAG,CAAC,UAAU,EAAE,GAAG,CAAC,UAAU,CAAC,CAAC;AAE3D,+DAA+D;AAC/D,MAAM,CAAC,MAAM,IAAI,GAAG,CAAC,IAAY,EAAE,KAAa,EAAE,EAAE,CAAC,CAAC,IAAI,IAAI,CAAC,EAAE,GAAG,KAAK,CAAC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C,IAAI,CAAC,CAAC;IAC3C,OAAO,KAAK,CAAC;AACf,CAAC;AAED,MAAM,UAAU,0BAA0B,CACxC,QAAkC;IAElC,MAAM,KAAK,GAAG,CAAC,GAAU,EAAE,IAAQ,EAAc,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACjG,MAAM,GAAG,GAAG,QAAQ,CAAC,EAAO,CAAC,CAAC;IAC9B,KAAK,CAAC,SAAS,GAAG,GAAG,CAAC,SAAS,CAAC;IAChC,KAAK,CAAC,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC;IAC9B,KAAK,CAAC,MAAM,GAAG,CAAC,IAAO,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC3C,OAAO,KAAK,CAAC;AACf,CAAC;AAED;;GAEG;AACH,MAAM,UAAU,WAAW,CAAC,WAAW,GAAG,EAAE;IAC1C,IAAI,MAAM,IAAI,OAAO,MAAM,CAAC,eAAe,KAAK,UAAU,EAAE;QAC1D,OAAO,MAAM,CAAC,eAAe,CAAC,IAAI,UAAU,CAAC,WAAW,CAAC,CAAC,CAAC;KAC5D;IACD,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;AAC5D,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/hashes/hkdf.d.ts b/node_modules/@noble/hashes/hkdf.d.ts deleted file mode 100644 index e1d683bc..00000000 --- a/node_modules/@noble/hashes/hkdf.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { CHash, Input } from './utils.js'; -/** - * HKDF-Extract(IKM, salt) -> PRK - * Arguments position differs from spec (IKM is first one, since it is not optional) - * @param hash - * @param ikm - * @param salt - * @returns - */ -export declare function extract(hash: CHash, ikm: Input, salt?: Input): Uint8Array; -/** - * HKDF-expand from the spec. - * @param prk - a pseudorandom key of at least HashLen octets (usually, the output from the extract step) - * @param info - optional context and application specific information (can be a zero-length string) - * @param length - length of output keying material in octets - */ -export declare function expand(hash: CHash, prk: Input, info?: Input, length?: number): Uint8Array; -/** - * HKDF (RFC 5869): extract + expand in one step. - * @param hash - hash function that would be used (e.g. sha256) - * @param ikm - input keying material, the initial key - * @param salt - optional salt value (a non-secret random value) - * @param info - optional context and application specific information - * @param length - length of output keying material in octets - */ -export declare const hkdf: (hash: CHash, ikm: Input, salt: Input | undefined, info: Input | undefined, length: number) => Uint8Array; diff --git a/node_modules/@noble/hashes/hkdf.js b/node_modules/@noble/hashes/hkdf.js deleted file mode 100644 index 021b68ec..00000000 --- a/node_modules/@noble/hashes/hkdf.js +++ /dev/null @@ -1,78 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.hkdf = exports.expand = exports.extract = void 0; -const _assert_js_1 = require("./_assert.js"); -const utils_js_1 = require("./utils.js"); -const hmac_js_1 = require("./hmac.js"); -// HKDF (RFC 5869) -// https://soatok.blog/2021/11/17/understanding-hkdf/ -/** - * HKDF-Extract(IKM, salt) -> PRK - * Arguments position differs from spec (IKM is first one, since it is not optional) - * @param hash - * @param ikm - * @param salt - * @returns - */ -function extract(hash, ikm, salt) { - (0, _assert_js_1.hash)(hash); - // NOTE: some libraries treat zero-length array as 'not provided'; - // we don't, since we have undefined as 'not provided' - // https://github.com/RustCrypto/KDFs/issues/15 - if (salt === undefined) - salt = new Uint8Array(hash.outputLen); // if not provided, it is set to a string of HashLen zeros - return (0, hmac_js_1.hmac)(hash, (0, utils_js_1.toBytes)(salt), (0, utils_js_1.toBytes)(ikm)); -} -exports.extract = extract; -// HKDF-Expand(PRK, info, L) -> OKM -const HKDF_COUNTER = /* @__PURE__ */ new Uint8Array([0]); -const EMPTY_BUFFER = /* @__PURE__ */ new Uint8Array(); -/** - * HKDF-expand from the spec. - * @param prk - a pseudorandom key of at least HashLen octets (usually, the output from the extract step) - * @param info - optional context and application specific information (can be a zero-length string) - * @param length - length of output keying material in octets - */ -function expand(hash, prk, info, length = 32) { - (0, _assert_js_1.hash)(hash); - (0, _assert_js_1.number)(length); - if (length > 255 * hash.outputLen) - throw new Error('Length should be <= 255*HashLen'); - const blocks = Math.ceil(length / hash.outputLen); - if (info === undefined) - info = EMPTY_BUFFER; - // first L(ength) octets of T - const okm = new Uint8Array(blocks * hash.outputLen); - // Re-use HMAC instance between blocks - const HMAC = hmac_js_1.hmac.create(hash, prk); - const HMACTmp = HMAC._cloneInto(); - const T = new Uint8Array(HMAC.outputLen); - for (let counter = 0; counter < blocks; counter++) { - HKDF_COUNTER[0] = counter + 1; - // T(0) = empty string (zero length) - // T(N) = HMAC-Hash(PRK, T(N-1) | info | N) - HMACTmp.update(counter === 0 ? EMPTY_BUFFER : T) - .update(info) - .update(HKDF_COUNTER) - .digestInto(T); - okm.set(T, hash.outputLen * counter); - HMAC._cloneInto(HMACTmp); - } - HMAC.destroy(); - HMACTmp.destroy(); - T.fill(0); - HKDF_COUNTER.fill(0); - return okm.slice(0, length); -} -exports.expand = expand; -/** - * HKDF (RFC 5869): extract + expand in one step. - * @param hash - hash function that would be used (e.g. sha256) - * @param ikm - input keying material, the initial key - * @param salt - optional salt value (a non-secret random value) - * @param info - optional context and application specific information - * @param length - length of output keying material in octets - */ -const hkdf = (hash, ikm, salt, info, length) => expand(hash, extract(hash, ikm, salt), info, length); -exports.hkdf = hkdf; -//# sourceMappingURL=hkdf.js.map \ No newline at end of file diff --git a/node_modules/@noble/hashes/hkdf.js.map b/node_modules/@noble/hashes/hkdf.js.map deleted file mode 100644 index 7790e7ca..00000000 --- a/node_modules/@noble/hashes/hkdf.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"hkdf.js","sourceRoot":"","sources":["src/hkdf.ts"],"names":[],"mappings":";;;AAAA,6CAA0E;AAC1E,yCAAmD;AACnD,uCAAiC;AAEjC,kBAAkB;AAClB,qDAAqD;AAErD;;;;;;;GAOG;AACH,SAAgB,OAAO,CAAC,IAAW,EAAE,GAAU,EAAE,IAAY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AAI,CAAC,SAAS,CAAC,CAAC;IACzC,KAAK,IAAI,OAAO,GAAG,CAAC,EAAE,OAAO,GAAG,MAAM,EAAE,OAAO,EAAE,EAAE;QACjD,YAAY,CAAC,CAAC,CAAC,GAAG,OAAO,GAAG,CAAC,CAAC;QAC9B,oCAAoC;QACpC,2CAA2C;QAC3C,OAAO,CAAC,MAAM,CAAC,OAAO,KAAK,CAAC,CAAC,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,CAAC,CAAC;aAC7C,MAAM,CAAC,IAAI,CAAC;aACZ,MAAM,CAAC,YAAY,CAAC;aACpB,UAAU,CAAC,CAAC,CAAC,CAAC;QACjB,GAAG,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,SAAS,GAAG,OAAO,CAAC,CAAC;QACrC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;KAC1B;IACD,IAAI,CAAC,OAAO,EAAE,CAAC;IACf,OAAO,CAAC,OAAO,EAAE,CAAC;IAClB,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACV,YAAY,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACrB,OAAO,GAAG,CAAC,KAAK,CAAC,CAAC,EAAE,MAAM,CAAC,CAAC;AAC9B,CAAC;AA5BD,wBA4BC;AAED;;;;;;;GAOG;AACI,MAAM,IAAI,GAAG,CAClB,IAAW,EACX,GAAU,EACV,IAAuB,EACvB,IAAuB,EACvB,MAAc,EACd,EAAE,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,IAAI,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE,IAAI,EAAE,MAAM,CAAC,CAAC;AAN7C,QAAA,IAAI,QAMyC"} \ No newline at end of file diff --git a/node_modules/@noble/hashes/hmac.d.ts b/node_modules/@noble/hashes/hmac.d.ts deleted file mode 100644 index 63db656c..00000000 --- a/node_modules/@noble/hashes/hmac.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { Hash, CHash, Input } from './utils.js'; -export declare class HMAC> extends Hash> { - oHash: T; - iHash: T; - blockLen: number; - outputLen: number; - private finished; - private destroyed; - constructor(hash: CHash, _key: Input); - update(buf: Input): this; - digestInto(out: Uint8Array): void; - digest(): Uint8Array; - _cloneInto(to?: HMAC): HMAC; - destroy(): void; -} -/** - * HMAC: RFC2104 message authentication code. - * @param hash - function that would be used e.g. sha256 - * @param key - message key - * @param message - message data - */ -export declare const hmac: { - (hash: CHash, key: Input, message: Input): Uint8Array; - create(hash: CHash, key: Input): HMAC; -}; diff --git a/node_modules/@noble/hashes/hmac.js b/node_modules/@noble/hashes/hmac.js deleted file mode 100644 index 0fc2d02e..00000000 --- a/node_modules/@noble/hashes/hmac.js +++ /dev/null @@ -1,82 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.hmac = exports.HMAC = void 0; -const _assert_js_1 = require("./_assert.js"); -const utils_js_1 = require("./utils.js"); -// HMAC (RFC 2104) -class HMAC extends utils_js_1.Hash { - constructor(hash, _key) { - super(); - this.finished = false; - this.destroyed = false; - (0, _assert_js_1.hash)(hash); - const key = (0, utils_js_1.toBytes)(_key); - this.iHash = hash.create(); - if (typeof this.iHash.update !== 'function') - throw new Error('Expected instance of class which extends utils.Hash'); - this.blockLen = this.iHash.blockLen; - this.outputLen = this.iHash.outputLen; - const blockLen = this.blockLen; - const pad = new Uint8Array(blockLen); - // blockLen can be bigger than outputLen - pad.set(key.length > blockLen ? hash.create().update(key).digest() : key); - for (let i = 0; i < pad.length; i++) - pad[i] ^= 0x36; - this.iHash.update(pad); - // By doing update (processing of first block) of outer hash here we can re-use it between multiple calls via clone - this.oHash = hash.create(); - // Undo internal XOR && apply outer XOR - for (let i = 0; i < pad.length; i++) - pad[i] ^= 0x36 ^ 0x5c; - this.oHash.update(pad); - pad.fill(0); - } - update(buf) { - (0, _assert_js_1.exists)(this); - this.iHash.update(buf); - return this; - } - digestInto(out) { - (0, _assert_js_1.exists)(this); - (0, _assert_js_1.bytes)(out, this.outputLen); - this.finished = true; - this.iHash.digestInto(out); - this.oHash.update(out); - this.oHash.digestInto(out); - this.destroy(); - } - digest() { - const out = new Uint8Array(this.oHash.outputLen); - this.digestInto(out); - return out; - } - _cloneInto(to) { - // Create new instance without calling constructor since key already in state and we don't know it. - to || (to = Object.create(Object.getPrototypeOf(this), {})); - const { oHash, iHash, finished, destroyed, blockLen, outputLen } = this; - to = to; - to.finished = finished; - to.destroyed = destroyed; - to.blockLen = blockLen; - to.outputLen = outputLen; - to.oHash = oHash._cloneInto(to.oHash); - to.iHash = iHash._cloneInto(to.iHash); - return to; - } - destroy() { - this.destroyed = true; - this.oHash.destroy(); - this.iHash.destroy(); - } -} -exports.HMAC = HMAC; -/** - * HMAC: RFC2104 message authentication code. - * @param hash - function that would be used e.g. sha256 - * @param key - message key - * @param message - message data - */ -const hmac = (hash, key, message) => new HMAC(hash, key).update(message).digest(); -exports.hmac = hmac; -exports.hmac.create = (hash, key) => new HMAC(hash, key); -//# sourceMappingURL=hmac.js.map \ No newline at end of file diff --git a/node_modules/@noble/hashes/hmac.js.map b/node_modules/@noble/hashes/hmac.js.map deleted file mode 100644 index 798c5fa1..00000000 --- a/node_modules/@noble/hashes/hmac.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"hmac.js","sourceRoot":"","sources":["src/hmac.ts"],"names":[],"mappings":";;;AAAA,6CAAgG;AAChG,yCAAyD;AACzD,kBAAkB;AAClB,MAAa,IAAwB,SAAQ,eAAa;IAQxD,YAAY,IAAW,EAAE,IAAW;QAClC,KAAK,EAAE,CAAC;QAJF,aAAQ,GAAG,KAAK,CAAC;QACjB,cAAS,GAAG,KAAK,CAAC;QAIxB,IAAA,iBAAU,EAAC,IAAI,CAAC,CAAC;QACjB,MAAM,GAAG,GAAG,IAAA,kBAAO,EAAC,IAAI,CAAC,CAAC;QAC1B,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,MAAM,EAAO,CAAC;QAChC,IAAI,OAAO,IAAI,CA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AC,CAAC;QACtC,OAAO,EAAE,CAAC;IACZ,CAAC;IACD,OAAO;QACL,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;QACtB,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;QACrB,IAAI,CAAC,KAAK,CAAC,OAAO,EAAE,CAAC;IACvB,CAAC;CACF;AAnED,oBAmEC;AAED;;;;;GAKG;AACI,MAAM,IAAI,GAAG,CAAC,IAAW,EAAE,GAAU,EAAE,OAAc,EAAc,EAAE,CAC1E,IAAI,IAAI,CAAM,IAAI,EAAE,GAAG,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,CAAC;AADvC,QAAA,IAAI,QACmC;AACpD,YAAI,CAAC,MAAM,GAAG,CAAC,IAAW,EAAE,GAAU,EAAE,EAAE,CAAC,IAAI,IAAI,CAAM,IAAI,EAAE,GAAG,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/hashes/index.d.ts b/node_modules/@noble/hashes/index.d.ts deleted file mode 100644 index e69de29b..00000000 diff --git a/node_modules/@noble/hashes/index.js b/node_modules/@noble/hashes/index.js deleted file mode 100644 index 2299d7f9..00000000 --- a/node_modules/@noble/hashes/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; -throw new Error('noble-hashes have no entry-point: consult README for usage'); -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@noble/hashes/index.js.map b/node_modules/@noble/hashes/index.js.map deleted file mode 100644 index b71bae62..00000000 --- a/node_modules/@noble/hashes/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["src/index.ts"],"names":[],"mappings":";AAAA,MAAM,IAAI,KAAK,CAAC,4DAA4D,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/hashes/package.json b/node_modules/@noble/hashes/package.json deleted file mode 100644 index 9a668d3d..00000000 --- a/node_modules/@noble/hashes/package.json +++ /dev/null @@ -1,174 +0,0 @@ -{ - "name": "@noble/hashes", - "version": "1.3.2", - "description": "Audited & minimal 0-dependency JS implementation of SHA2, SHA3, RIPEMD, BLAKE2/3, HMAC, HKDF, PBKDF2, Scrypt", - "files": [ - "/*.js", - "/*.d.ts", - "/*.js.map", - "esm", - "src/*.ts" - ], - "scripts": { - "bench": "node benchmark/index.js noble", - "bench:all": "node benchmark/index.js", - "bench:install": "cd benchmark && npm install && cd ../../", - "build": "npm run build:clean; tsc && tsc -p tsconfig.esm.json", - "build:release": "cd build; npm i; npm run build", - "build:clean": "rm *.{js,d.ts,js.map} esm/*.{js,js.map} 2> /dev/null", - "lint": "prettier --check 'src/**/*.{js,ts}' 'test/**/*.{js,ts}'", - "format": "prettier --write 'src/**/*.{js,ts}' 'test/**/*.{js,ts}'", - "test": "node test/index.js", - "test:dos": "node test/slow-dos.test.js", - "test:big": "node test/slow-big.test.js" - }, - "author": "Paul Miller (https://paulmillr.com)", - "homepage": "https://paulmillr.com/noble/", - "repository": { - "type": "git", - "url": "https://github.com/paulmillr/noble-hashes.git" - }, - "license": "MIT", - "sideEffects": false, - "browser": { - "node:crypto": false, - "./crypto": "./crypto.js" - }, - "devDependencies": { - "micro-bmark": "0.3.1", - "micro-should": "0.4.0", - "prettier": "2.8.4", - "typescript": "5.0.2" - }, - "engines": { - "node": ">= 16" - }, - "exports": { - ".": { - "types": "./index.d.ts", - "import": "./esm/index.js", - "default": "./index.js" - }, - "./crypto": { - "types": "./crypto.d.ts", - "node": { - "import": "./esm/cryptoNode.js", - "default": "./cryptoNode.js" - }, - "import": "./esm/crypto.js", - "default": "./crypto.js" - }, - "./_assert": { - "types": "./_assert.d.ts", - "import": "./esm/_assert.js", - "default": "./_assert.js" - }, - "./_sha2": { - "types": "./_sha2.d.ts", - "import": "./esm/_sha2.js", - "default": "./_sha2.js" - }, - "./argon2": { - "types": "./argon2.d.ts", - "import": "./esm/argon2.js", - "default": "./argon2.js" - }, - "./blake2b": { - "types": "./blake2b.d.ts", - "import": "./esm/blake2b.js", - "default": "./blake2b.js" - }, - "./blake2s": { - "types": "./blake2s.d.ts", - "import": "./esm/blake2s.js", - "default": "./blake2s.js" - }, - "./blake3": { - "types": "./blake3.d.ts", - "import": "./esm/blake3.js", - "default": "./blake3.js" - }, - "./eskdf": { - "types": "./eskdf.d.ts", - "import": "./esm/eskdf.js", - "default": "./eskdf.js" - }, - "./hkdf": { - "types": "./hkdf.d.ts", - "import": "./esm/hkdf.js", - "default": "./hkdf.js" - }, - "./hmac": { - "types": "./hmac.d.ts", - "import": "./esm/hmac.js", - "default": "./hmac.js" - }, - "./pbkdf2": { - "types": "./pbkdf2.d.ts", - "import": "./esm/pbkdf2.js", - "default": "./pbkdf2.js" - }, - "./ripemd160": { - "types": "./ripemd160.d.ts", - "import": "./esm/ripemd160.js", - "default": "./ripemd160.js" - }, - "./scrypt": { - "types": "./scrypt.d.ts", - "import": "./esm/scrypt.js", - "default": "./scrypt.js" - }, - "./sha1": { - "types": "./sha1.d.ts", - "import": "./esm/sha1.js", - "default": "./sha1.js" - }, - "./sha3-addons": { - "types": "./sha3-addons.d.ts", - "import": "./esm/sha3-addons.js", - "default": "./sha3-addons.js" - }, - "./sha3": { - "types": "./sha3.d.ts", - "import": "./esm/sha3.js", - "default": "./sha3.js" - }, - "./sha256": { - "types": "./sha256.d.ts", - "import": "./esm/sha256.js", - "default": "./sha256.js" - }, - "./sha512": { - "types": "./sha512.d.ts", - "import": "./esm/sha512.js", - "default": "./sha512.js" - }, - "./utils": { - "types": "./utils.d.ts", - "import": "./esm/utils.js", - "default": "./utils.js" - } - }, - "keywords": [ - "sha", - "sha2", - "sha3", - "sha256", - "sha512", - "keccak", - "kangarootwelve", - "ripemd160", - "blake2", - "blake3", - "hmac", - "hkdf", - "pbkdf2", - "scrypt", - "kdf", - "hash", - "cryptography", - "security", - "noble" - ], - "funding": "https://paulmillr.com/funding/" -} diff --git a/node_modules/@noble/hashes/pbkdf2.d.ts b/node_modules/@noble/hashes/pbkdf2.d.ts deleted file mode 100644 index 42f691ce..00000000 --- a/node_modules/@noble/hashes/pbkdf2.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { CHash, Input } from './utils.js'; -export type Pbkdf2Opt = { - c: number; - dkLen?: number; - asyncTick?: number; -}; -/** - * PBKDF2-HMAC: RFC 2898 key derivation function - * @param hash - hash function that would be used e.g. sha256 - * @param password - password from which a derived key is generated - * @param salt - cryptographic salt - * @param opts - {c, dkLen} where c is work factor and dkLen is output message size - */ -export declare function pbkdf2(hash: CHash, password: Input, salt: Input, opts: Pbkdf2Opt): Uint8Array; -export declare function pbkdf2Async(hash: CHash, password: Input, salt: Input, opts: Pbkdf2Opt): Promise; diff --git a/node_modules/@noble/hashes/pbkdf2.js b/node_modules/@noble/hashes/pbkdf2.js deleted file mode 100644 index a6671788..00000000 --- a/node_modules/@noble/hashes/pbkdf2.js +++ /dev/null @@ -1,91 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.pbkdf2Async = exports.pbkdf2 = void 0; -const _assert_js_1 = require("./_assert.js"); -const hmac_js_1 = require("./hmac.js"); -const utils_js_1 = require("./utils.js"); -// Common prologue and epilogue for sync/async functions -function pbkdf2Init(hash, _password, _salt, _opts) { - (0, _assert_js_1.hash)(hash); - const opts = (0, utils_js_1.checkOpts)({ dkLen: 32, asyncTick: 10 }, _opts); - const { c, dkLen, asyncTick } = opts; - (0, _assert_js_1.number)(c); - (0, _assert_js_1.number)(dkLen); - (0, _assert_js_1.number)(asyncTick); - if (c < 1) - throw new Error('PBKDF2: iterations (c) should be >= 1'); - const password = (0, utils_js_1.toBytes)(_password); - const salt = (0, utils_js_1.toBytes)(_salt); - // DK = PBKDF2(PRF, Password, Salt, c, dkLen); - const DK = new Uint8Array(dkLen); - // U1 = PRF(Password, Salt + INT_32_BE(i)) - const PRF = hmac_js_1.hmac.create(hash, password); - const PRFSalt = PRF._cloneInto().update(salt); - return { c, dkLen, asyncTick, DK, PRF, PRFSalt }; -} -function pbkdf2Output(PRF, PRFSalt, DK, prfW, u) { - PRF.destroy(); - PRFSalt.destroy(); - if (prfW) - prfW.destroy(); - u.fill(0); - return DK; -} -/** - * PBKDF2-HMAC: RFC 2898 key derivation function - * @param hash - hash function that would be used e.g. sha256 - * @param password - password from which a derived key is generated - * @param salt - cryptographic salt - * @param opts - {c, dkLen} where c is work factor and dkLen is output message size - */ -function pbkdf2(hash, password, salt, opts) { - const { c, dkLen, DK, PRF, PRFSalt } = pbkdf2Init(hash, password, salt, opts); - let prfW; // Working copy - const arr = new Uint8Array(4); - const view = (0, utils_js_1.createView)(arr); - const u = new Uint8Array(PRF.outputLen); - // DK = T1 + T2 + ⋯ + Tdklen/hlen - for (let ti = 1, pos = 0; pos < dkLen; ti++, pos += PRF.outputLen) { - // Ti = F(Password, Salt, c, i) - const Ti = DK.subarray(pos, pos + PRF.outputLen); - view.setInt32(0, ti, false); - // F(Password, Salt, c, i) = U1 ^ U2 ^ ⋯ ^ Uc - // U1 = PRF(Password, Salt + INT_32_BE(i)) - (prfW = PRFSalt._cloneInto(prfW)).update(arr).digestInto(u); - Ti.set(u.subarray(0, Ti.length)); - for (let ui = 1; ui < c; ui++) { - // Uc = PRF(Password, Uc−1) - PRF._cloneInto(prfW).update(u).digestInto(u); - for (let i = 0; i < Ti.length; i++) - Ti[i] ^= u[i]; - } - } - return pbkdf2Output(PRF, PRFSalt, DK, prfW, u); -} -exports.pbkdf2 = pbkdf2; -async function pbkdf2Async(hash, password, salt, opts) { - const { c, dkLen, asyncTick, DK, PRF, PRFSalt } = pbkdf2Init(hash, password, salt, opts); - let prfW; // Working copy - const arr = new Uint8Array(4); - const view = (0, utils_js_1.createView)(arr); - const u = new Uint8Array(PRF.outputLen); - // DK = T1 + T2 + ⋯ + Tdklen/hlen - for (let ti = 1, pos = 0; pos < dkLen; ti++, pos += PRF.outputLen) { - // Ti = F(Password, Salt, c, i) - const Ti = DK.subarray(pos, pos + PRF.outputLen); - view.setInt32(0, ti, false); - // F(Password, Salt, c, i) = U1 ^ U2 ^ ⋯ ^ Uc - // U1 = PRF(Password, Salt + INT_32_BE(i)) - (prfW = PRFSalt._cloneInto(prfW)).update(arr).digestInto(u); - Ti.set(u.subarray(0, Ti.length)); - await (0, utils_js_1.asyncLoop)(c - 1, asyncTick, () => { - // Uc = PRF(Password, Uc−1) - PRF._cloneInto(prfW).update(u).digestInto(u); - for (let i = 0; i < Ti.length; i++) - Ti[i] ^= u[i]; - }); - } - return pbkdf2Output(PRF, PRFSalt, DK, prfW, u); -} -exports.pbkdf2Async = pbkdf2Async; -//# sourceMappingURL=pbkdf2.js.map \ No newline at end of file diff --git a/node_modules/@noble/hashes/pbkdf2.js.map b/node_modules/@noble/hashes/pbkdf2.js.map deleted file mode 100644 index a8f30b0f..00000000 --- a/node_modules/@noble/hashes/pbkdf2.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"pbkdf2.js","sourceRoot":"","sources":["src/pbkdf2.ts"],"names":[],"mappings":";;;AAAA,6CAA0E;AAC1E,uCAAiC;AACjC,yCAA2F;AAQ3F,wDAAwD;AACxD,SAAS,UAAU,CAAC,IAAW,EAAE,SAAgB,EAAE,KAAY,EAAE,KAAgB;IAC/E,IAAA,iBAAU,EAAC,IAAI,CAAC,CAAC;IACjB,MAAM,IAAI,GAAG,IAAA,oBAAS,EAAC,EAAE,KAAK,EAAE,EAAE,EAAE,SAAS,EAAE,EAAE,EAAE,EAAE,KAAK,CAAC,CAAC;IAC5D,MAAM,EAAE,CAAC,EAAE,KAAK,EAAE,SAAS,EAAE,GAAG,IAAI,CAAC;IACrC,IAAA,mBAAY,EAAC,CAAC,CAAC,CAAC;IAChB,IAAA,mBAAY,EAAC,KAAK,CAAC,CAAC;IACpB,IAAA,mBAAY,EAAC,SAAS,CAAC,CAAC;IACxB,IAAI,CAAC,GAAG,CAAC;QAAE,MAAM,IAAI,KAAK,CAAC,uCAAuC,CAAC,CAAC;IACpE,MAAM,QAAQ,GAAG,IAAA,kBAAO,EAAC,SAAS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;gBAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC;QACpD,CAAC,CAAC,CAAC;KACJ;IACD,OAAO,YAAY,CAAC,GAAG,EAAE,OAAO,EAAE,EAAE,EAAE,IAAI,EAAE,CAAC,CAAC,CAAC;AACjD,CAAC;AAtBD,kCAsBC"} \ No newline at end of file diff --git a/node_modules/@noble/hashes/ripemd160.d.ts b/node_modules/@noble/hashes/ripemd160.d.ts deleted file mode 100644 index 92e662f9..00000000 --- a/node_modules/@noble/hashes/ripemd160.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -import { SHA2 } from './_sha2.js'; -export declare class RIPEMD160 extends SHA2 { - private h0; - private h1; - private h2; - private h3; - private h4; - constructor(); - protected get(): [number, number, number, number, number]; - protected set(h0: number, h1: number, h2: number, h3: number, h4: number): void; - protected process(view: DataView, offset: number): void; - protected roundClean(): void; - destroy(): void; -} -/** - * RIPEMD-160 - a hash function from 1990s. - * @param message - msg that would be hashed - */ -export declare const ripemd160: { - (msg: import("./utils.js").Input): Uint8Array; - outputLen: number; - blockLen: number; - create(): import("./utils.js").Hash; -}; diff --git a/node_modules/@noble/hashes/ripemd160.js b/node_modules/@noble/hashes/ripemd160.js deleted file mode 100644 index 7d6e057b..00000000 --- a/node_modules/@noble/hashes/ripemd160.js +++ /dev/null @@ -1,108 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ripemd160 = exports.RIPEMD160 = void 0; -const _sha2_js_1 = require("./_sha2.js"); -const utils_js_1 = require("./utils.js"); -// https://homes.esat.kuleuven.be/~bosselae/ripemd160.html -// https://homes.esat.kuleuven.be/~bosselae/ripemd160/pdf/AB-9601/AB-9601.pdf -const Rho = /* @__PURE__ */ new Uint8Array([7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8]); -const Id = /* @__PURE__ */ Uint8Array.from({ length: 16 }, (_, i) => i); -const Pi = /* @__PURE__ */ Id.map((i) => (9 * i + 5) % 16); -let idxL = [Id]; -let idxR = [Pi]; -for (let i = 0; i < 4; i++) - for (let j of [idxL, idxR]) - j.push(j[i].map((k) => Rho[k])); -const shifts = /* @__PURE__ */ [ - [11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8], - [12, 13, 11, 15, 6, 9, 9, 7, 12, 15, 11, 13, 7, 8, 7, 7], - [13, 15, 14, 11, 7, 7, 6, 8, 13, 14, 13, 12, 5, 5, 6, 9], - [14, 11, 12, 14, 8, 6, 5, 5, 15, 12, 15, 14, 9, 9, 8, 6], - [15, 12, 13, 13, 9, 5, 8, 6, 14, 11, 12, 11, 8, 6, 5, 5], -].map((i) => new Uint8Array(i)); -const shiftsL = /* @__PURE__ */ idxL.map((idx, i) => idx.map((j) => shifts[i][j])); -const shiftsR = /* @__PURE__ */ idxR.map((idx, i) => idx.map((j) => shifts[i][j])); -const Kl = /* @__PURE__ */ new Uint32Array([ - 0x00000000, 0x5a827999, 0x6ed9eba1, 0x8f1bbcdc, 0xa953fd4e, -]); -const Kr = /* @__PURE__ */ new Uint32Array([ - 0x50a28be6, 0x5c4dd124, 0x6d703ef3, 0x7a6d76e9, 0x00000000, -]); -// The rotate left (circular left shift) operation for uint32 -const rotl = (word, shift) => (word << shift) | (word >>> (32 - shift)); -// It's called f() in spec. -function f(group, x, y, z) { - if (group === 0) - return x ^ y ^ z; - else if (group === 1) - return (x & y) | (~x & z); - else if (group === 2) - return (x | ~y) ^ z; - else if (group === 3) - return (x & z) | (y & ~z); - else - return x ^ (y | ~z); -} -// Temporary buffer, not used to store anything between runs -const BUF = /* @__PURE__ */ new Uint32Array(16); -class RIPEMD160 extends _sha2_js_1.SHA2 { - constructor() { - super(64, 20, 8, true); - this.h0 = 0x67452301 | 0; - this.h1 = 0xefcdab89 | 0; - this.h2 = 0x98badcfe | 0; - this.h3 = 0x10325476 | 0; - this.h4 = 0xc3d2e1f0 | 0; - } - get() { - const { h0, h1, h2, h3, h4 } = this; - return [h0, h1, h2, h3, h4]; - } - set(h0, h1, h2, h3, h4) { - this.h0 = h0 | 0; - this.h1 = h1 | 0; - this.h2 = h2 | 0; - this.h3 = h3 | 0; - this.h4 = h4 | 0; - } - process(view, offset) { - for (let i = 0; i < 16; i++, offset += 4) - BUF[i] = view.getUint32(offset, true); - // prettier-ignore - let al = this.h0 | 0, ar = al, bl = this.h1 | 0, br = bl, cl = this.h2 | 0, cr = cl, dl = this.h3 | 0, dr = dl, el = this.h4 | 0, er = el; - // Instead of iterating 0 to 80, we split it into 5 groups - // And use the groups in constants, functions, etc. Much simpler - for (let group = 0; group < 5; group++) { - const rGroup = 4 - group; - const hbl = Kl[group], hbr = Kr[group]; // prettier-ignore - const rl = idxL[group], rr = idxR[group]; // prettier-ignore - const sl = shiftsL[group], sr = shiftsR[group]; // prettier-ignore - for (let i = 0; i < 16; i++) { - const tl = (rotl(al + f(group, bl, cl, dl) + BUF[rl[i]] + hbl, sl[i]) + el) | 0; - al = el, el = dl, dl = rotl(cl, 10) | 0, cl = bl, bl = tl; // prettier-ignore - } - // 2 loops are 10% faster - for (let i = 0; i < 16; i++) { - const tr = (rotl(ar + f(rGroup, br, cr, dr) + BUF[rr[i]] + hbr, sr[i]) + er) | 0; - ar = er, er = dr, dr = rotl(cr, 10) | 0, cr = br, br = tr; // prettier-ignore - } - } - // Add the compressed chunk to the current hash value - this.set((this.h1 + cl + dr) | 0, (this.h2 + dl + er) | 0, (this.h3 + el + ar) | 0, (this.h4 + al + br) | 0, (this.h0 + bl + cr) | 0); - } - roundClean() { - BUF.fill(0); - } - destroy() { - this.destroyed = true; - this.buffer.fill(0); - this.set(0, 0, 0, 0, 0); - } -} -exports.RIPEMD160 = RIPEMD160; -/** - * RIPEMD-160 - a hash function from 1990s. - * @param message - msg that would be hashed - */ -exports.ripemd160 = (0, utils_js_1.wrapConstructor)(() => new RIPEMD160()); -//# sourceMappingURL=ripemd160.js.map \ No newline at end of file diff --git a/node_modules/@noble/hashes/ripemd160.js.map b/node_modules/@noble/hashes/ripemd160.js.map deleted file mode 100644 index 396a5170..00000000 --- a/node_modules/@noble/hashes/ripemd160.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"ripemd160.js","sourceRoot":"","sources":["src/ripemd160.ts"],"names":[],"mappings":";;;AAAA,yCAAkC;AAClC,yCAA6C;AAE7C,0DAA0D;AAC1D,6EAA6E;AAC7E,MAAM,GAAG,GAAG,eAAe,CAAC,IAAI,UAAU,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,EAAE,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC;AACnG,MAAM,EAAE,GAAG,eAAe,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC;AACxE,MAAM,EAAE,GAAG,eAAe,CAAC,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC,GAAG,EAAE,CAAC,CAAC;AAC3D,IAAI,IAAI,GAAG,CAAC,EAAE,CAAC,CAAC;AAChB,IAAI,IAAI,GAAG,CAAC,EAAE,CAAC,CAAC;AAChB,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE;IAAE,KAAK,IAAI,CAAC,IAAI,CAAC,IAAI,EAAE,IAAI,CAAC;QAAE,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;AAExF,MAAM,MAAM,GAAG,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J,CAAC;IACS,UAAU;QAClB,GAAG,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;IACd,CAAC;IACD,OAAO;QACL,IAAI,CAAC,SAAS,GAAG,IAAI,CAAC;QACtB,IAAI,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;QACpB,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC,CAAC;IAC1B,CAAC;CACF;AAhED,8BAgEC;AAED;;;GAGG;AACU,QAAA,SAAS,GAAmB,IAAA,0BAAe,EAAC,GAAG,EAAE,CAAC,IAAI,SAAS,EAAE,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/hashes/scrypt.d.ts b/node_modules/@noble/hashes/scrypt.d.ts deleted file mode 100644 index 82485b3d..00000000 --- a/node_modules/@noble/hashes/scrypt.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { Input } from './utils.js'; -export type ScryptOpts = { - N: number; - r: number; - p: number; - dkLen?: number; - asyncTick?: number; - maxmem?: number; - onProgress?: (progress: number) => void; -}; -/** - * Scrypt KDF from RFC 7914. - * @param password - pass - * @param salt - salt - * @param opts - parameters - * - `N` is cpu/mem work factor (power of 2 e.g. 2**18) - * - `r` is block size (8 is common), fine-tunes sequential memory read size and performance - * - `p` is parallelization factor (1 is common) - * - `dkLen` is output key length in bytes e.g. 32. - * - `asyncTick` - (default: 10) max time in ms for which async function can block execution - * - `maxmem` - (default: `1024 ** 3 + 1024` aka 1GB+1KB). A limit that the app could use for scrypt - * - `onProgress` - callback function that would be executed for progress report - * @returns Derived key - */ -export declare function scrypt(password: Input, salt: Input, opts: ScryptOpts): Uint8Array; -/** - * Scrypt KDF from RFC 7914. - */ -export declare function scryptAsync(password: Input, salt: Input, opts: ScryptOpts): Promise; diff --git a/node_modules/@noble/hashes/scrypt.js b/node_modules/@noble/hashes/scrypt.js deleted file mode 100644 index 2f118db2..00000000 --- a/node_modules/@noble/hashes/scrypt.js +++ /dev/null @@ -1,223 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.scryptAsync = exports.scrypt = void 0; -const _assert_js_1 = require("./_assert.js"); -const sha256_js_1 = require("./sha256.js"); -const pbkdf2_js_1 = require("./pbkdf2.js"); -const utils_js_1 = require("./utils.js"); -// RFC 7914 Scrypt KDF -// Left rotate for uint32 -const rotl = (a, b) => (a << b) | (a >>> (32 - b)); -// The main Scrypt loop: uses Salsa extensively. -// Six versions of the function were tried, this is the fastest one. -// prettier-ignore -function XorAndSalsa(prev, pi, input, ii, out, oi) { - // Based on https://cr.yp.to/salsa20.html - // Xor blocks - let y00 = prev[pi++] ^ input[ii++], y01 = prev[pi++] ^ input[ii++]; - let y02 = prev[pi++] ^ input[ii++], y03 = prev[pi++] ^ input[ii++]; - let y04 = prev[pi++] ^ input[ii++], y05 = prev[pi++] ^ input[ii++]; - let y06 = prev[pi++] ^ input[ii++], y07 = prev[pi++] ^ input[ii++]; - let y08 = prev[pi++] ^ input[ii++], y09 = prev[pi++] ^ input[ii++]; - let y10 = prev[pi++] ^ input[ii++], y11 = prev[pi++] ^ input[ii++]; - let y12 = prev[pi++] ^ input[ii++], y13 = prev[pi++] ^ input[ii++]; - let y14 = prev[pi++] ^ input[ii++], y15 = prev[pi++] ^ input[ii++]; - // Save state to temporary variables (salsa) - let x00 = y00, x01 = y01, x02 = y02, x03 = y03, x04 = y04, x05 = y05, x06 = y06, x07 = y07, x08 = y08, x09 = y09, x10 = y10, x11 = y11, x12 = y12, x13 = y13, x14 = y14, x15 = y15; - // Main loop (salsa) - for (let i = 0; i < 8; i += 2) { - x04 ^= rotl(x00 + x12 | 0, 7); - x08 ^= rotl(x04 + x00 | 0, 9); - x12 ^= rotl(x08 + x04 | 0, 13); - x00 ^= rotl(x12 + x08 | 0, 18); - x09 ^= rotl(x05 + x01 | 0, 7); - x13 ^= rotl(x09 + x05 | 0, 9); - x01 ^= rotl(x13 + x09 | 0, 13); - x05 ^= rotl(x01 + x13 | 0, 18); - x14 ^= rotl(x10 + x06 | 0, 7); - x02 ^= rotl(x14 + x10 | 0, 9); - x06 ^= rotl(x02 + x14 | 0, 13); - x10 ^= rotl(x06 + x02 | 0, 18); - x03 ^= rotl(x15 + x11 | 0, 7); - x07 ^= rotl(x03 + x15 | 0, 9); - x11 ^= rotl(x07 + x03 | 0, 13); - x15 ^= rotl(x11 + x07 | 0, 18); - x01 ^= rotl(x00 + x03 | 0, 7); - x02 ^= rotl(x01 + x00 | 0, 9); - x03 ^= rotl(x02 + x01 | 0, 13); - x00 ^= rotl(x03 + x02 | 0, 18); - x06 ^= rotl(x05 + x04 | 0, 7); - x07 ^= rotl(x06 + x05 | 0, 9); - x04 ^= rotl(x07 + x06 | 0, 13); - x05 ^= rotl(x04 + x07 | 0, 18); - x11 ^= rotl(x10 + x09 | 0, 7); - x08 ^= rotl(x11 + x10 | 0, 9); - x09 ^= rotl(x08 + x11 | 0, 13); - x10 ^= rotl(x09 + x08 | 0, 18); - x12 ^= rotl(x15 + x14 | 0, 7); - x13 ^= rotl(x12 + x15 | 0, 9); - x14 ^= rotl(x13 + x12 | 0, 13); - x15 ^= rotl(x14 + x13 | 0, 18); - } - // Write output (salsa) - out[oi++] = (y00 + x00) | 0; - out[oi++] = (y01 + x01) | 0; - out[oi++] = (y02 + x02) | 0; - out[oi++] = (y03 + x03) | 0; - out[oi++] = (y04 + x04) | 0; - out[oi++] = (y05 + x05) | 0; - out[oi++] = (y06 + x06) | 0; - out[oi++] = (y07 + x07) | 0; - out[oi++] = (y08 + x08) | 0; - out[oi++] = (y09 + x09) | 0; - out[oi++] = (y10 + x10) | 0; - out[oi++] = (y11 + x11) | 0; - out[oi++] = (y12 + x12) | 0; - out[oi++] = (y13 + x13) | 0; - out[oi++] = (y14 + x14) | 0; - out[oi++] = (y15 + x15) | 0; -} -function BlockMix(input, ii, out, oi, r) { - // The block B is r 128-byte chunks (which is equivalent of 2r 64-byte chunks) - let head = oi + 0; - let tail = oi + 16 * r; - for (let i = 0; i < 16; i++) - out[tail + i] = input[ii + (2 * r - 1) * 16 + i]; // X ← B[2r−1] - for (let i = 0; i < r; i++, head += 16, ii += 16) { - // We write odd & even Yi at same time. Even: 0bXXXXX0 Odd: 0bXXXXX1 - XorAndSalsa(out, tail, input, ii, out, head); // head[i] = Salsa(blockIn[2*i] ^ tail[i-1]) - if (i > 0) - tail += 16; // First iteration overwrites tmp value in tail - XorAndSalsa(out, head, input, (ii += 16), out, tail); // tail[i] = Salsa(blockIn[2*i+1] ^ head[i]) - } -} -// Common prologue and epilogue for sync/async functions -function scryptInit(password, salt, _opts) { - // Maxmem - 1GB+1KB by default - const opts = (0, utils_js_1.checkOpts)({ - dkLen: 32, - asyncTick: 10, - maxmem: 1024 ** 3 + 1024, - }, _opts); - const { N, r, p, dkLen, asyncTick, maxmem, onProgress } = opts; - (0, _assert_js_1.number)(N); - (0, _assert_js_1.number)(r); - (0, _assert_js_1.number)(p); - (0, _assert_js_1.number)(dkLen); - (0, _assert_js_1.number)(asyncTick); - (0, _assert_js_1.number)(maxmem); - if (onProgress !== undefined && typeof onProgress !== 'function') - throw new Error('progressCb should be function'); - const blockSize = 128 * r; - const blockSize32 = blockSize / 4; - if (N <= 1 || (N & (N - 1)) !== 0 || N >= 2 ** (blockSize / 8) || N > 2 ** 32) { - // NOTE: we limit N to be less than 2**32 because of 32 bit variant of Integrify function - // There is no JS engines that allows alocate more than 4GB per single Uint8Array for now, but can change in future. - throw new Error('Scrypt: N must be larger than 1, a power of 2, less than 2^(128 * r / 8) and less than 2^32'); - } - if (p < 0 || p > ((2 ** 32 - 1) * 32) / blockSize) { - throw new Error('Scrypt: p must be a positive integer less than or equal to ((2^32 - 1) * 32) / (128 * r)'); - } - if (dkLen < 0 || dkLen > (2 ** 32 - 1) * 32) { - throw new Error('Scrypt: dkLen should be positive integer less than or equal to (2^32 - 1) * 32'); - } - const memUsed = blockSize * (N + p); - if (memUsed > maxmem) { - throw new Error(`Scrypt: parameters too large, ${memUsed} (128 * r * (N + p)) > ${maxmem} (maxmem)`); - } - // [B0...Bp−1] ← PBKDF2HMAC-SHA256(Passphrase, Salt, 1, blockSize*ParallelizationFactor) - // Since it has only one iteration there is no reason to use async variant - const B = (0, pbkdf2_js_1.pbkdf2)(sha256_js_1.sha256, password, salt, { c: 1, dkLen: blockSize * p }); - const B32 = (0, utils_js_1.u32)(B); - // Re-used between parallel iterations. Array(iterations) of B - const V = (0, utils_js_1.u32)(new Uint8Array(blockSize * N)); - const tmp = (0, utils_js_1.u32)(new Uint8Array(blockSize)); - let blockMixCb = () => { }; - if (onProgress) { - const totalBlockMix = 2 * N * p; - // Invoke callback if progress changes from 10.01 to 10.02 - // Allows to draw smooth progress bar on up to 8K screen - const callbackPer = Math.max(Math.floor(totalBlockMix / 10000), 1); - let blockMixCnt = 0; - blockMixCb = () => { - blockMixCnt++; - if (onProgress && (!(blockMixCnt % callbackPer) || blockMixCnt === totalBlockMix)) - onProgress(blockMixCnt / totalBlockMix); - }; - } - return { N, r, p, dkLen, blockSize32, V, B32, B, tmp, blockMixCb, asyncTick }; -} -function scryptOutput(password, dkLen, B, V, tmp) { - const res = (0, pbkdf2_js_1.pbkdf2)(sha256_js_1.sha256, password, B, { c: 1, dkLen }); - B.fill(0); - V.fill(0); - tmp.fill(0); - return res; -} -/** - * Scrypt KDF from RFC 7914. - * @param password - pass - * @param salt - salt - * @param opts - parameters - * - `N` is cpu/mem work factor (power of 2 e.g. 2**18) - * - `r` is block size (8 is common), fine-tunes sequential memory read size and performance - * - `p` is parallelization factor (1 is common) - * - `dkLen` is output key length in bytes e.g. 32. - * - `asyncTick` - (default: 10) max time in ms for which async function can block execution - * - `maxmem` - (default: `1024 ** 3 + 1024` aka 1GB+1KB). A limit that the app could use for scrypt - * - `onProgress` - callback function that would be executed for progress report - * @returns Derived key - */ -function scrypt(password, salt, opts) { - const { N, r, p, dkLen, blockSize32, V, B32, B, tmp, blockMixCb } = scryptInit(password, salt, opts); - for (let pi = 0; pi < p; pi++) { - const Pi = blockSize32 * pi; - for (let i = 0; i < blockSize32; i++) - V[i] = B32[Pi + i]; // V[0] = B[i] - for (let i = 0, pos = 0; i < N - 1; i++) { - BlockMix(V, pos, V, (pos += blockSize32), r); // V[i] = BlockMix(V[i-1]); - blockMixCb(); - } - BlockMix(V, (N - 1) * blockSize32, B32, Pi, r); // Process last element - blockMixCb(); - for (let i = 0; i < N; i++) { - // First u32 of the last 64-byte block (u32 is LE) - const j = B32[Pi + blockSize32 - 16] % N; // j = Integrify(X) % iterations - for (let k = 0; k < blockSize32; k++) - tmp[k] = B32[Pi + k] ^ V[j * blockSize32 + k]; // tmp = B ^ V[j] - BlockMix(tmp, 0, B32, Pi, r); // B = BlockMix(B ^ V[j]) - blockMixCb(); - } - } - return scryptOutput(password, dkLen, B, V, tmp); -} -exports.scrypt = scrypt; -/** - * Scrypt KDF from RFC 7914. - */ -async function scryptAsync(password, salt, opts) { - const { N, r, p, dkLen, blockSize32, V, B32, B, tmp, blockMixCb, asyncTick } = scryptInit(password, salt, opts); - for (let pi = 0; pi < p; pi++) { - const Pi = blockSize32 * pi; - for (let i = 0; i < blockSize32; i++) - V[i] = B32[Pi + i]; // V[0] = B[i] - let pos = 0; - await (0, utils_js_1.asyncLoop)(N - 1, asyncTick, () => { - BlockMix(V, pos, V, (pos += blockSize32), r); // V[i] = BlockMix(V[i-1]); - blockMixCb(); - }); - BlockMix(V, (N - 1) * blockSize32, B32, Pi, r); // Process last element - blockMixCb(); - await (0, utils_js_1.asyncLoop)(N, asyncTick, () => { - // First u32 of the last 64-byte block (u32 is LE) - const j = B32[Pi + blockSize32 - 16] % N; // j = Integrify(X) % iterations - for (let k = 0; k < blockSize32; k++) - tmp[k] = B32[Pi + k] ^ V[j * blockSize32 + k]; // tmp = B ^ V[j] - BlockMix(tmp, 0, B32, Pi, r); // B = BlockMix(B ^ V[j]) - blockMixCb(); - }); - } - return scryptOutput(password, dkLen, B, V, tmp); -} -exports.scryptAsync = scryptAsync; -//# sourceMappingURL=scrypt.js.map \ No newline at end of file diff --git a/node_modules/@noble/hashes/scrypt.js.map b/node_modules/@noble/hashes/scrypt.js.map deleted file mode 100644 index 873dc15e..00000000 --- a/node_modules/@noble/hashes/scrypt.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"scrypt.js","sourceRoot":"","sources":["src/scrypt.ts"],"names":[],"mappings":";;;AAAA,6CAAsD;AACtD,2CAAqC;AACrC,2CAAqC;AACrC,yCAA8D;AAE9D,sBAAsB;AAEtB,yBAAyB;AACzB,MAAM,IAAI,GAAG,CAAC,CAAS,EAAE,CAAS,EAAE,EAAE,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,EAAE,GAAG,CAAC,CAAC,CAAC,CAAC;AAEnE,gDAAgD;AAChD,oEAAoE;AACpE,kBAAkB;AAClB,SAAS,WAAW,CAClB,IAAiB,EACjB,EAAU,EACV,KAAkB,EAClB,EAAU,EACV,GAAgB,EAChB,EAAU;IAEV,yCAAyC;IACzC,aAAa;IACb,IAAI,GAAG,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC,GAAG,KAAK,CAAC,EAAE,EAAE,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC,GAAG,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC;IACnE,IAAI,GAAG,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC,GAAG,KAAK,CAAC,EAAE,EAAE,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC,GAAG,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC;IACnE,IAAI,GAAG,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC,GAAG,KAAK,CAAC,EAAE,EAAE,CAAC,EAAE,GAAG,GAAG,IAAI,CAAC,EAAE,EAAE,CAAC,GAAG,KAAK,CAAC,EAAE,EAAE,CAAC,CAAC;IACnE,IAAI,GAAG,GAA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AAC,CAAC,EAAE,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,WAAW,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,uBAAuB;QACvE,UAAU,EAAE,CAAC;QACb,MAAM,IAAA,oBAAS,EAAC,CAAC,EAAE,SAAS,EAAE,GAAG,EAAE;YACjC,kDAAkD;YAClD,MAAM,CAAC,GAAG,GAAG,CAAC,EAAE,GAAG,WAAW,GAAG,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,gCAAgC;YAC1E,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,WAAW,EAAE,CAAC,EAAE;gBAAE,GAAG,CAAC,CAAC,CAAC,GAAG,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,WAAW,GAAG,CAAC,CAAC,CAAC,CAAC,iBAAiB;YACtG,QAAQ,CAAC,GAAG,EAAE,CAAC,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,CAAC,CAAC,CAAC,yBAAyB;YACvD,UAAU,EAAE,CAAC;QACf,CAAC,CAAC,CAAC;KACJ;IACD,OAAO,YAAY,CAAC,QAAQ,EAAE,KAAK,EAAE,CAAC,EAAE,CAAC,EAAE,GAAG,CAAC,CAAC;AAClD,CAAC;AAzBD,kCAyBC"} \ No newline at end of file diff --git a/node_modules/@noble/hashes/sha1.d.ts b/node_modules/@noble/hashes/sha1.d.ts deleted file mode 100644 index d9cb132e..00000000 --- a/node_modules/@noble/hashes/sha1.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { SHA2 } from './_sha2.js'; -declare class SHA1 extends SHA2 { - private A; - private B; - private C; - private D; - private E; - constructor(); - protected get(): [number, number, number, number, number]; - protected set(A: number, B: number, C: number, D: number, E: number): void; - protected process(view: DataView, offset: number): void; - protected roundClean(): void; - destroy(): void; -} -export declare const sha1: { - (msg: import("./utils.js").Input): Uint8Array; - outputLen: number; - blockLen: number; - create(): import("./utils.js").Hash; -}; -export {}; diff --git a/node_modules/@noble/hashes/sha1.js b/node_modules/@noble/hashes/sha1.js deleted file mode 100644 index 10c69531..00000000 --- a/node_modules/@noble/hashes/sha1.js +++ /dev/null @@ -1,90 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.sha1 = void 0; -const _sha2_js_1 = require("./_sha2.js"); -const utils_js_1 = require("./utils.js"); -// SHA1 was cryptographically broken. -// It is still widely used in legacy apps. Don't use it for a new protocol. -// RFC 3174 -const rotl = (word, shift) => (word << shift) | ((word >>> (32 - shift)) >>> 0); -// Choice: a ? b : c -const Chi = (a, b, c) => (a & b) ^ (~a & c); -// Majority function, true if any two inpust is true -const Maj = (a, b, c) => (a & b) ^ (a & c) ^ (b & c); -// Initial state -const IV = /* @__PURE__ */ new Uint32Array([ - 0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0, -]); -// Temporary buffer, not used to store anything between runs -// Named this way because it matches specification. -const SHA1_W = /* @__PURE__ */ new Uint32Array(80); -class SHA1 extends _sha2_js_1.SHA2 { - constructor() { - super(64, 20, 8, false); - this.A = IV[0] | 0; - this.B = IV[1] | 0; - this.C = IV[2] | 0; - this.D = IV[3] | 0; - this.E = IV[4] | 0; - } - get() { - const { A, B, C, D, E } = this; - return [A, B, C, D, E]; - } - set(A, B, C, D, E) { - this.A = A | 0; - this.B = B | 0; - this.C = C | 0; - this.D = D | 0; - this.E = E | 0; - } - process(view, offset) { - for (let i = 0; i < 16; i++, offset += 4) - SHA1_W[i] = view.getUint32(offset, false); - for (let i = 16; i < 80; i++) - SHA1_W[i] = rotl(SHA1_W[i - 3] ^ SHA1_W[i - 8] ^ SHA1_W[i - 14] ^ SHA1_W[i - 16], 1); - // Compression function main loop, 80 rounds - let { A, B, C, D, E } = this; - for (let i = 0; i < 80; i++) { - let F, K; - if (i < 20) { - F = Chi(B, C, D); - K = 0x5a827999; - } - else if (i < 40) { - F = B ^ C ^ D; - K = 0x6ed9eba1; - } - else if (i < 60) { - F = Maj(B, C, D); - K = 0x8f1bbcdc; - } - else { - F = B ^ C ^ D; - K = 0xca62c1d6; - } - const T = (rotl(A, 5) + F + E + K + SHA1_W[i]) | 0; - E = D; - D = C; - C = rotl(B, 30); - B = A; - A = T; - } - // Add the compressed chunk to the current hash value - A = (A + this.A) | 0; - B = (B + this.B) | 0; - C = (C + this.C) | 0; - D = (D + this.D) | 0; - E = (E + this.E) | 0; - this.set(A, B, C, D, E); - } - roundClean() { - SHA1_W.fill(0); - } - destroy() { - this.set(0, 0, 0, 0, 0); - this.buffer.fill(0); - } -} -exports.sha1 = (0, utils_js_1.wrapConstructor)(() => new SHA1()); -//# sourceMappingURL=sha1.js.map \ No newline at end of file diff --git a/node_modules/@noble/hashes/sha1.js.map b/node_modules/@noble/hashes/sha1.js.map deleted file mode 100644 index 4b0ccbdf..00000000 --- a/node_modules/@noble/hashes/sha1.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sha1.js","sourceRoot":"","sources":["src/sha1.ts"],"names":[],"mappings":";;;AAAA,yCAAkC;AAClC,yCAA6C;AAE7C,qCAAqC;AACrC,2EAA2E;AAE3E,WAAW;AACX,MAAM,IAAI,GAAG,CAAC,IAAY,EAAE,KAAa,EAAE,EAAE,CAAC,CAAC,IAAI,IAAI,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,KAAK,CAAC,EAAE,GAAG,KAAK,CAAC,CAAC,KAAK,CAAC,CAAC,CAAC;AAChG,oBAAoB;AACpB,MAAM,GAAG,GAAG,CAAC,CAAS,EAAE,CAAS,EAAE,CAAS,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;AACpE,oDAAoD;AACpD,MAAM,GAAG,GAAG,CAAC,CAAS,EAAE,CAAS,EAAE,CAAS,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,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AAI,GAAmB,IAAA,0BAAe,EAAC,GAAG,EAAE,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/hashes/sha256.d.ts b/node_modules/@noble/hashes/sha256.d.ts deleted file mode 100644 index 3e1491d2..00000000 --- a/node_modules/@noble/hashes/sha256.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { SHA2 } from './_sha2.js'; -declare class SHA256 extends SHA2 { - A: number; - B: number; - C: number; - D: number; - E: number; - F: number; - G: number; - H: number; - constructor(); - protected get(): [number, number, number, number, number, number, number, number]; - protected set(A: number, B: number, C: number, D: number, E: number, F: number, G: number, H: number): void; - protected process(view: DataView, offset: number): void; - protected roundClean(): void; - destroy(): void; -} -/** - * SHA2-256 hash function - * @param message - data that would be hashed - */ -export declare const sha256: { - (msg: import("./utils.js").Input): Uint8Array; - outputLen: number; - blockLen: number; - create(): import("./utils.js").Hash; -}; -export declare const sha224: { - (msg: import("./utils.js").Input): Uint8Array; - outputLen: number; - blockLen: number; - create(): import("./utils.js").Hash; -}; -export {}; diff --git a/node_modules/@noble/hashes/sha256.js b/node_modules/@noble/hashes/sha256.js deleted file mode 100644 index 24fe5743..00000000 --- a/node_modules/@noble/hashes/sha256.js +++ /dev/null @@ -1,129 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.sha224 = exports.sha256 = void 0; -const _sha2_js_1 = require("./_sha2.js"); -const utils_js_1 = require("./utils.js"); -// SHA2-256 need to try 2^128 hashes to execute birthday attack. -// BTC network is doing 2^67 hashes/sec as per early 2023. -// Choice: a ? b : c -const Chi = (a, b, c) => (a & b) ^ (~a & c); -// Majority function, true if any two inpust is true -const Maj = (a, b, c) => (a & b) ^ (a & c) ^ (b & c); -// Round constants: -// first 32 bits of the fractional parts of the cube roots of the first 64 primes 2..311) -// prettier-ignore -const SHA256_K = /* @__PURE__ */ new Uint32Array([ - 0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5, 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5, - 0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3, 0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174, - 0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc, 0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da, - 0x983e5152, 0xa831c66d, 0xb00327c8, 0xbf597fc7, 0xc6e00bf3, 0xd5a79147, 0x06ca6351, 0x14292967, - 0x27b70a85, 0x2e1b2138, 0x4d2c6dfc, 0x53380d13, 0x650a7354, 0x766a0abb, 0x81c2c92e, 0x92722c85, - 0xa2bfe8a1, 0xa81a664b, 0xc24b8b70, 0xc76c51a3, 0xd192e819, 0xd6990624, 0xf40e3585, 0x106aa070, - 0x19a4c116, 0x1e376c08, 0x2748774c, 0x34b0bcb5, 0x391c0cb3, 0x4ed8aa4a, 0x5b9cca4f, 0x682e6ff3, - 0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208, 0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2 -]); -// Initial state (first 32 bits of the fractional parts of the square roots of the first 8 primes 2..19): -// prettier-ignore -const IV = /* @__PURE__ */ new Uint32Array([ - 0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19 -]); -// Temporary buffer, not used to store anything between runs -// Named this way because it matches specification. -const SHA256_W = /* @__PURE__ */ new Uint32Array(64); -class SHA256 extends _sha2_js_1.SHA2 { - constructor() { - super(64, 32, 8, false); - // We cannot use array here since array allows indexing by variable - // which means optimizer/compiler cannot use registers. - this.A = IV[0] | 0; - this.B = IV[1] | 0; - this.C = IV[2] | 0; - this.D = IV[3] | 0; - this.E = IV[4] | 0; - this.F = IV[5] | 0; - this.G = IV[6] | 0; - this.H = IV[7] | 0; - } - get() { - const { A, B, C, D, E, F, G, H } = this; - return [A, B, C, D, E, F, G, H]; - } - // prettier-ignore - set(A, B, C, D, E, F, G, H) { - this.A = A | 0; - this.B = B | 0; - this.C = C | 0; - this.D = D | 0; - this.E = E | 0; - this.F = F | 0; - this.G = G | 0; - this.H = H | 0; - } - process(view, offset) { - // Extend the first 16 words into the remaining 48 words w[16..63] of the message schedule array - for (let i = 0; i < 16; i++, offset += 4) - SHA256_W[i] = view.getUint32(offset, false); - for (let i = 16; i < 64; i++) { - const W15 = SHA256_W[i - 15]; - const W2 = SHA256_W[i - 2]; - const s0 = (0, utils_js_1.rotr)(W15, 7) ^ (0, utils_js_1.rotr)(W15, 18) ^ (W15 >>> 3); - const s1 = (0, utils_js_1.rotr)(W2, 17) ^ (0, utils_js_1.rotr)(W2, 19) ^ (W2 >>> 10); - SHA256_W[i] = (s1 + SHA256_W[i - 7] + s0 + SHA256_W[i - 16]) | 0; - } - // Compression function main loop, 64 rounds - let { A, B, C, D, E, F, G, H } = this; - for (let i = 0; i < 64; i++) { - const sigma1 = (0, utils_js_1.rotr)(E, 6) ^ (0, utils_js_1.rotr)(E, 11) ^ (0, utils_js_1.rotr)(E, 25); - const T1 = (H + sigma1 + Chi(E, F, G) + SHA256_K[i] + SHA256_W[i]) | 0; - const sigma0 = (0, utils_js_1.rotr)(A, 2) ^ (0, utils_js_1.rotr)(A, 13) ^ (0, utils_js_1.rotr)(A, 22); - const T2 = (sigma0 + Maj(A, B, C)) | 0; - H = G; - G = F; - F = E; - E = (D + T1) | 0; - D = C; - C = B; - B = A; - A = (T1 + T2) | 0; - } - // Add the compressed chunk to the current hash value - A = (A + this.A) | 0; - B = (B + this.B) | 0; - C = (C + this.C) | 0; - D = (D + this.D) | 0; - E = (E + this.E) | 0; - F = (F + this.F) | 0; - G = (G + this.G) | 0; - H = (H + this.H) | 0; - this.set(A, B, C, D, E, F, G, H); - } - roundClean() { - SHA256_W.fill(0); - } - destroy() { - this.set(0, 0, 0, 0, 0, 0, 0, 0); - this.buffer.fill(0); - } -} -// Constants from https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf -class SHA224 extends SHA256 { - constructor() { - super(); - this.A = 0xc1059ed8 | 0; - this.B = 0x367cd507 | 0; - this.C = 0x3070dd17 | 0; - this.D = 0xf70e5939 | 0; - this.E = 0xffc00b31 | 0; - this.F = 0x68581511 | 0; - this.G = 0x64f98fa7 | 0; - this.H = 0xbefa4fa4 | 0; - this.outputLen = 28; - } -} -/** - * SHA2-256 hash function - * @param message - data that would be hashed - */ -exports.sha256 = (0, utils_js_1.wrapConstructor)(() => new SHA256()); -exports.sha224 = (0, utils_js_1.wrapConstructor)(() => new SHA224()); -//# sourceMappingURL=sha256.js.map \ No newline at end of file diff --git a/node_modules/@noble/hashes/sha256.js.map b/node_modules/@noble/hashes/sha256.js.map deleted file mode 100644 index a2fd853f..00000000 --- a/node_modules/@noble/hashes/sha256.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sha256.js","sourceRoot":"","sources":["src/sha256.ts"],"names":[],"mappings":";;;AAAA,yCAAkC;AAClC,yCAAmD;AAEnD,gEAAgE;AAChE,0DAA0D;AAE1D,oBAAoB;AACpB,MAAM,GAAG,GAAG,CAAC,CAAS,EAAE,CAAS,EAAE,CAAS,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;AACpE,oDAAoD;AACpD,MAAM,GAAG,GAAG,CAAC,CAAS,EAAE,CAAS,EAAE,CAAS,EAAE,EAAE,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;AAE7E,mBAAmB;AACnB,yFAAyF;AACzF,kBAAkB;AAClB,MAAM,QAAQ,GAAG,eAAe,CAAA,IAAI,WAAW,CAAC;IAC9C,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAAU,EAAE,UAA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,CAAC;CACF;AAED;;;GAGG;AACU,QAAA,MAAM,GAAmB,IAAA,0BAAe,EAAC,GAAG,EAAE,CAAC,IAAI,MAAM,EAAE,CAAC,CAAC;AAC7D,QAAA,MAAM,GAAmB,IAAA,0BAAe,EAAC,GAAG,EAAE,CAAC,IAAI,MAAM,EAAE,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/hashes/sha3-addons.d.ts b/node_modules/@noble/hashes/sha3-addons.d.ts deleted file mode 100644 index cf7c3a0d..00000000 --- a/node_modules/@noble/hashes/sha3-addons.d.ts +++ /dev/null @@ -1,138 +0,0 @@ -import { Input, Hash, HashXOF } from './utils.js'; -import { Keccak, ShakeOpts } from './sha3.js'; -export type cShakeOpts = ShakeOpts & { - personalization?: Input; - NISTfn?: Input; -}; -export declare const cshake128: { - (msg: Input, opts?: cShakeOpts | undefined): Uint8Array; - outputLen: number; - blockLen: number; - create(opts: cShakeOpts): Hash; -}; -export declare const cshake256: { - (msg: Input, opts?: cShakeOpts | undefined): Uint8Array; - outputLen: number; - blockLen: number; - create(opts: cShakeOpts): Hash; -}; -declare class KMAC extends Keccak implements HashXOF { - constructor(blockLen: number, outputLen: number, enableXOF: boolean, key: Input, opts?: cShakeOpts); - protected finish(): void; - _cloneInto(to?: KMAC): KMAC; - clone(): KMAC; -} -export declare const kmac128: { - (key: Input, message: Input, opts?: cShakeOpts): Uint8Array; - create(key: Input, opts?: cShakeOpts): KMAC; -}; -export declare const kmac256: { - (key: Input, message: Input, opts?: cShakeOpts): Uint8Array; - create(key: Input, opts?: cShakeOpts): KMAC; -}; -export declare const kmac128xof: { - (key: Input, message: Input, opts?: cShakeOpts): Uint8Array; - create(key: Input, opts?: cShakeOpts): KMAC; -}; -export declare const kmac256xof: { - (key: Input, message: Input, opts?: cShakeOpts): Uint8Array; - create(key: Input, opts?: cShakeOpts): KMAC; -}; -declare class TupleHash extends Keccak implements HashXOF { - constructor(blockLen: number, outputLen: number, enableXOF: boolean, opts?: cShakeOpts); - protected finish(): void; - _cloneInto(to?: TupleHash): TupleHash; - clone(): TupleHash; -} -export declare const tuplehash128: { - (messages: Input[], opts?: cShakeOpts): Uint8Array; - create(opts?: cShakeOpts): TupleHash; -}; -export declare const tuplehash256: { - (messages: Input[], opts?: cShakeOpts): Uint8Array; - create(opts?: cShakeOpts): TupleHash; -}; -export declare const tuplehash128xof: { - (messages: Input[], opts?: cShakeOpts): Uint8Array; - create(opts?: cShakeOpts): TupleHash; -}; -export declare const tuplehash256xof: { - (messages: Input[], opts?: cShakeOpts): Uint8Array; - create(opts?: cShakeOpts): TupleHash; -}; -type ParallelOpts = cShakeOpts & { - blockLen?: number; -}; -declare class ParallelHash extends Keccak implements HashXOF { - protected leafCons: () => Hash; - private leafHash?; - private chunkPos; - private chunksDone; - private chunkLen; - constructor(blockLen: number, outputLen: number, leafCons: () => Hash, enableXOF: boolean, opts?: ParallelOpts); - protected finish(): void; - _cloneInto(to?: ParallelHash): ParallelHash; - destroy(): void; - clone(): ParallelHash; -} -export declare const parallelhash128: { - (message: Input, opts?: ParallelOpts): Uint8Array; - create(opts?: ParallelOpts): ParallelHash; -}; -export declare const parallelhash256: { - (message: Input, opts?: ParallelOpts): Uint8Array; - create(opts?: ParallelOpts): ParallelHash; -}; -export declare const parallelhash128xof: { - (message: Input, opts?: ParallelOpts): Uint8Array; - create(opts?: ParallelOpts): ParallelHash; -}; -export declare const parallelhash256xof: { - (message: Input, opts?: ParallelOpts): Uint8Array; - create(opts?: ParallelOpts): ParallelHash; -}; -export type KangarooOpts = { - dkLen?: number; - personalization?: Input; -}; -declare class KangarooTwelve extends Keccak implements HashXOF { - protected leafLen: number; - readonly chunkLen = 8192; - private leafHash?; - private personalization; - private chunkPos; - private chunksDone; - constructor(blockLen: number, leafLen: number, outputLen: number, rounds: number, opts: KangarooOpts); - update(data: Input): this; - protected finish(): void; - destroy(): void; - _cloneInto(to?: KangarooTwelve): KangarooTwelve; - clone(): KangarooTwelve; -} -export declare const k12: { - (msg: Input, opts?: KangarooOpts | undefined): Uint8Array; - outputLen: number; - blockLen: number; - create(opts: KangarooOpts): Hash; -}; -export declare const m14: { - (msg: Input, opts?: KangarooOpts | undefined): Uint8Array; - outputLen: number; - blockLen: number; - create(opts: KangarooOpts): Hash; -}; -declare class KeccakPRG extends Keccak { - protected rate: number; - constructor(capacity: number); - keccak(): void; - update(data: Input): this; - feed(data: Input): this; - protected finish(): void; - digestInto(_out: Uint8Array): Uint8Array; - fetch(bytes: number): Uint8Array; - forget(): void; - _cloneInto(to?: KeccakPRG): KeccakPRG; - clone(): KeccakPRG; -} -export declare const keccakprg: (capacity?: number) => KeccakPRG; -export {}; diff --git a/node_modules/@noble/hashes/sha3-addons.js b/node_modules/@noble/hashes/sha3-addons.js deleted file mode 100644 index e5317b15..00000000 --- a/node_modules/@noble/hashes/sha3-addons.js +++ /dev/null @@ -1,351 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.keccakprg = exports.m14 = exports.k12 = exports.parallelhash256xof = exports.parallelhash128xof = exports.parallelhash256 = exports.parallelhash128 = exports.tuplehash256xof = exports.tuplehash128xof = exports.tuplehash256 = exports.tuplehash128 = exports.kmac256xof = exports.kmac128xof = exports.kmac256 = exports.kmac128 = exports.cshake256 = exports.cshake128 = void 0; -const _assert_js_1 = require("./_assert.js"); -const utils_js_1 = require("./utils.js"); -const sha3_js_1 = require("./sha3.js"); -// cSHAKE && KMAC (NIST SP800-185) -function leftEncode(n) { - const res = [n & 0xff]; - n >>= 8; - for (; n > 0; n >>= 8) - res.unshift(n & 0xff); - res.unshift(res.length); - return new Uint8Array(res); -} -function rightEncode(n) { - const res = [n & 0xff]; - n >>= 8; - for (; n > 0; n >>= 8) - res.unshift(n & 0xff); - res.push(res.length); - return new Uint8Array(res); -} -function chooseLen(opts, outputLen) { - return opts.dkLen === undefined ? outputLen : opts.dkLen; -} -const toBytesOptional = (buf) => (buf !== undefined ? (0, utils_js_1.toBytes)(buf) : new Uint8Array([])); -// NOTE: second modulo is necessary since we don't need to add padding if current element takes whole block -const getPadding = (len, block) => new Uint8Array((block - (len % block)) % block); -// Personalization -function cshakePers(hash, opts = {}) { - if (!opts || (!opts.personalization && !opts.NISTfn)) - return hash; - // Encode and pad inplace to avoid unneccesary memory copies/slices (so we don't need to zero them later) - // bytepad(encode_string(N) || encode_string(S), 168) - const blockLenBytes = leftEncode(hash.blockLen); - const fn = toBytesOptional(opts.NISTfn); - const fnLen = leftEncode(8 * fn.length); // length in bits - const pers = toBytesOptional(opts.personalization); - const persLen = leftEncode(8 * pers.length); // length in bits - if (!fn.length && !pers.length) - return hash; - hash.suffix = 0x04; - hash.update(blockLenBytes).update(fnLen).update(fn).update(persLen).update(pers); - let totalLen = blockLenBytes.length + fnLen.length + fn.length + persLen.length + pers.length; - hash.update(getPadding(totalLen, hash.blockLen)); - return hash; -} -const gencShake = (suffix, blockLen, outputLen) => (0, utils_js_1.wrapConstructorWithOpts)((opts = {}) => cshakePers(new sha3_js_1.Keccak(blockLen, suffix, chooseLen(opts, outputLen), true), opts)); -exports.cshake128 = (() => gencShake(0x1f, 168, 128 / 8))(); -exports.cshake256 = (() => gencShake(0x1f, 136, 256 / 8))(); -class KMAC extends sha3_js_1.Keccak { - constructor(blockLen, outputLen, enableXOF, key, opts = {}) { - super(blockLen, 0x1f, outputLen, enableXOF); - cshakePers(this, { NISTfn: 'KMAC', personalization: opts.personalization }); - key = (0, utils_js_1.toBytes)(key); - // 1. newX = bytepad(encode_string(K), 168) || X || right_encode(L). - const blockLenBytes = leftEncode(this.blockLen); - const keyLen = leftEncode(8 * key.length); - this.update(blockLenBytes).update(keyLen).update(key); - const totalLen = blockLenBytes.length + keyLen.length + key.length; - this.update(getPadding(totalLen, this.blockLen)); - } - finish() { - if (!this.finished) - this.update(rightEncode(this.enableXOF ? 0 : this.outputLen * 8)); // outputLen in bits - super.finish(); - } - _cloneInto(to) { - // Create new instance without calling constructor since key already in state and we don't know it. - // Force "to" to be instance of KMAC instead of Sha3. - if (!to) { - to = Object.create(Object.getPrototypeOf(this), {}); - to.state = this.state.slice(); - to.blockLen = this.blockLen; - to.state32 = (0, utils_js_1.u32)(to.state); - } - return super._cloneInto(to); - } - clone() { - return this._cloneInto(); - } -} -function genKmac(blockLen, outputLen, xof = false) { - const kmac = (key, message, opts) => kmac.create(key, opts).update(message).digest(); - kmac.create = (key, opts = {}) => new KMAC(blockLen, chooseLen(opts, outputLen), xof, key, opts); - return kmac; -} -exports.kmac128 = (() => genKmac(168, 128 / 8))(); -exports.kmac256 = (() => genKmac(136, 256 / 8))(); -exports.kmac128xof = (() => genKmac(168, 128 / 8, true))(); -exports.kmac256xof = (() => genKmac(136, 256 / 8, true))(); -// TupleHash -// Usage: tuple(['ab', 'cd']) != tuple(['a', 'bcd']) -class TupleHash extends sha3_js_1.Keccak { - constructor(blockLen, outputLen, enableXOF, opts = {}) { - super(blockLen, 0x1f, outputLen, enableXOF); - cshakePers(this, { NISTfn: 'TupleHash', personalization: opts.personalization }); - // Change update after cshake processed - this.update = (data) => { - data = (0, utils_js_1.toBytes)(data); - super.update(leftEncode(data.length * 8)); - super.update(data); - return this; - }; - } - finish() { - if (!this.finished) - super.update(rightEncode(this.enableXOF ? 0 : this.outputLen * 8)); // outputLen in bits - super.finish(); - } - _cloneInto(to) { - to || (to = new TupleHash(this.blockLen, this.outputLen, this.enableXOF)); - return super._cloneInto(to); - } - clone() { - return this._cloneInto(); - } -} -function genTuple(blockLen, outputLen, xof = false) { - const tuple = (messages, opts) => { - const h = tuple.create(opts); - for (const msg of messages) - h.update(msg); - return h.digest(); - }; - tuple.create = (opts = {}) => new TupleHash(blockLen, chooseLen(opts, outputLen), xof, opts); - return tuple; -} -exports.tuplehash128 = (() => genTuple(168, 128 / 8))(); -exports.tuplehash256 = (() => genTuple(136, 256 / 8))(); -exports.tuplehash128xof = (() => genTuple(168, 128 / 8, true))(); -exports.tuplehash256xof = (() => genTuple(136, 256 / 8, true))(); -class ParallelHash extends sha3_js_1.Keccak { - constructor(blockLen, outputLen, leafCons, enableXOF, opts = {}) { - super(blockLen, 0x1f, outputLen, enableXOF); - this.leafCons = leafCons; - this.chunkPos = 0; // Position of current block in chunk - this.chunksDone = 0; // How many chunks we already have - cshakePers(this, { NISTfn: 'ParallelHash', personalization: opts.personalization }); - let { blockLen: B } = opts; - B || (B = 8); - (0, _assert_js_1.number)(B); - this.chunkLen = B; - super.update(leftEncode(B)); - // Change update after cshake processed - this.update = (data) => { - data = (0, utils_js_1.toBytes)(data); - const { chunkLen, leafCons } = this; - for (let pos = 0, len = data.length; pos < len;) { - if (this.chunkPos == chunkLen || !this.leafHash) { - if (this.leafHash) { - super.update(this.leafHash.digest()); - this.chunksDone++; - } - this.leafHash = leafCons(); - this.chunkPos = 0; - } - const take = Math.min(chunkLen - this.chunkPos, len - pos); - this.leafHash.update(data.subarray(pos, pos + take)); - this.chunkPos += take; - pos += take; - } - return this; - }; - } - finish() { - if (this.finished) - return; - if (this.leafHash) { - super.update(this.leafHash.digest()); - this.chunksDone++; - } - super.update(rightEncode(this.chunksDone)); - super.update(rightEncode(this.enableXOF ? 0 : this.outputLen * 8)); // outputLen in bits - super.finish(); - } - _cloneInto(to) { - to || (to = new ParallelHash(this.blockLen, this.outputLen, this.leafCons, this.enableXOF)); - if (this.leafHash) - to.leafHash = this.leafHash._cloneInto(to.leafHash); - to.chunkPos = this.chunkPos; - to.chunkLen = this.chunkLen; - to.chunksDone = this.chunksDone; - return super._cloneInto(to); - } - destroy() { - super.destroy.call(this); - if (this.leafHash) - this.leafHash.destroy(); - } - clone() { - return this._cloneInto(); - } -} -function genPrl(blockLen, outputLen, leaf, xof = false) { - const parallel = (message, opts) => parallel.create(opts).update(message).digest(); - parallel.create = (opts = {}) => new ParallelHash(blockLen, chooseLen(opts, outputLen), () => leaf.create({ dkLen: 2 * outputLen }), xof, opts); - return parallel; -} -exports.parallelhash128 = (() => genPrl(168, 128 / 8, exports.cshake128))(); -exports.parallelhash256 = (() => genPrl(136, 256 / 8, exports.cshake256))(); -exports.parallelhash128xof = (() => genPrl(168, 128 / 8, exports.cshake128, true))(); -exports.parallelhash256xof = (() => genPrl(136, 256 / 8, exports.cshake256, true))(); -// Kangaroo -// Same as NIST rightEncode, but returns [0] for zero string -function rightEncodeK12(n) { - const res = []; - for (; n > 0; n >>= 8) - res.unshift(n & 0xff); - res.push(res.length); - return new Uint8Array(res); -} -const EMPTY = new Uint8Array([]); -class KangarooTwelve extends sha3_js_1.Keccak { - constructor(blockLen, leafLen, outputLen, rounds, opts) { - super(blockLen, 0x07, outputLen, true, rounds); - this.leafLen = leafLen; - this.chunkLen = 8192; - this.chunkPos = 0; // Position of current block in chunk - this.chunksDone = 0; // How many chunks we already have - const { personalization } = opts; - this.personalization = toBytesOptional(personalization); - } - update(data) { - data = (0, utils_js_1.toBytes)(data); - const { chunkLen, blockLen, leafLen, rounds } = this; - for (let pos = 0, len = data.length; pos < len;) { - if (this.chunkPos == chunkLen) { - if (this.leafHash) - super.update(this.leafHash.digest()); - else { - this.suffix = 0x06; // Its safe to change suffix here since its used only in digest() - super.update(new Uint8Array([3, 0, 0, 0, 0, 0, 0, 0])); - } - this.leafHash = new sha3_js_1.Keccak(blockLen, 0x0b, leafLen, false, rounds); - this.chunksDone++; - this.chunkPos = 0; - } - const take = Math.min(chunkLen - this.chunkPos, len - pos); - const chunk = data.subarray(pos, pos + take); - if (this.leafHash) - this.leafHash.update(chunk); - else - super.update(chunk); - this.chunkPos += take; - pos += take; - } - return this; - } - finish() { - if (this.finished) - return; - const { personalization } = this; - this.update(personalization).update(rightEncodeK12(personalization.length)); - // Leaf hash - if (this.leafHash) { - super.update(this.leafHash.digest()); - super.update(rightEncodeK12(this.chunksDone)); - super.update(new Uint8Array([0xff, 0xff])); - } - super.finish.call(this); - } - destroy() { - super.destroy.call(this); - if (this.leafHash) - this.leafHash.destroy(); - // We cannot zero personalization buffer since it is user provided and we don't want to mutate user input - this.personalization = EMPTY; - } - _cloneInto(to) { - const { blockLen, leafLen, leafHash, outputLen, rounds } = this; - to || (to = new KangarooTwelve(blockLen, leafLen, outputLen, rounds, {})); - super._cloneInto(to); - if (leafHash) - to.leafHash = leafHash._cloneInto(to.leafHash); - to.personalization.set(this.personalization); - to.leafLen = this.leafLen; - to.chunkPos = this.chunkPos; - to.chunksDone = this.chunksDone; - return to; - } - clone() { - return this._cloneInto(); - } -} -// Default to 32 bytes, so it can be used without opts -exports.k12 = (() => (0, utils_js_1.wrapConstructorWithOpts)((opts = {}) => new KangarooTwelve(168, 32, chooseLen(opts, 32), 12, opts)))(); -// MarsupilamiFourteen -exports.m14 = (() => (0, utils_js_1.wrapConstructorWithOpts)((opts = {}) => new KangarooTwelve(136, 64, chooseLen(opts, 64), 14, opts)))(); -// https://keccak.team/files/CSF-0.1.pdf -// + https://github.com/XKCP/XKCP/tree/master/lib/high/Keccak/PRG -class KeccakPRG extends sha3_js_1.Keccak { - constructor(capacity) { - (0, _assert_js_1.number)(capacity); - // Rho should be full bytes - if (capacity < 0 || capacity > 1600 - 10 || (1600 - capacity - 2) % 8) - throw new Error('KeccakPRG: Invalid capacity'); - // blockLen = rho in bytes - super((1600 - capacity - 2) / 8, 0, 0, true); - this.rate = 1600 - capacity; - this.posOut = Math.floor((this.rate + 7) / 8); - } - keccak() { - // Duplex padding - this.state[this.pos] ^= 0x01; - this.state[this.blockLen] ^= 0x02; // Rho is full bytes - super.keccak(); - this.pos = 0; - this.posOut = 0; - } - update(data) { - super.update(data); - this.posOut = this.blockLen; - return this; - } - feed(data) { - return this.update(data); - } - finish() { } - digestInto(_out) { - throw new Error('KeccakPRG: digest is not allowed, please use .fetch instead.'); - } - fetch(bytes) { - return this.xof(bytes); - } - // Ensure irreversibility (even if state leaked previous outputs cannot be computed) - forget() { - if (this.rate < 1600 / 2 + 1) - throw new Error('KeccakPRG: rate too low to use forget'); - this.keccak(); - for (let i = 0; i < this.blockLen; i++) - this.state[i] = 0; - this.pos = this.blockLen; - this.keccak(); - this.posOut = this.blockLen; - } - _cloneInto(to) { - const { rate } = this; - to || (to = new KeccakPRG(1600 - rate)); - super._cloneInto(to); - to.rate = rate; - return to; - } - clone() { - return this._cloneInto(); - } -} -const keccakprg = (capacity = 254) => new KeccakPRG(capacity); -exports.keccakprg = keccakprg; -//# sourceMappingURL=sha3-addons.js.map \ No newline at end of file diff --git a/node_modules/@noble/hashes/sha3-addons.js.map b/node_modules/@noble/hashes/sha3-addons.js.map deleted file mode 100644 index 7232b4f0..00000000 --- a/node_modules/@noble/hashes/sha3-addons.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sha3-addons.js","sourceRoot":"","sources":["src/sha3-addons.ts"],"names":[],"mappings":";;;AAAA,6CAAsD;AACtD,yCAAyF;AACzF,uCAA8C;AAC9C,kCAAkC;AAClC,SAAS,UAAU,CAAC,CAAS;IAC3B,MAAM,GAAG,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;IACvB,CAAC,KAAK,CAAC,CAAC;IACR,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,KAAK,CAAC;QAAE,GAAG,CAAC,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;IAC7C,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACxB,OAAO,IAAI,UAAU,CAAC,GAAG,CAAC,CAAC;AAC7B,CAAC;AAED,SAAS,WAAW,CAAC,CAAS;IAC5B,MAAM,GAAG,GAAG,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;IACvB,CAAC,KAAK,CAAC,CAAC;IACR,OAAO,CAAC,GAAG,CAAC,EAAE,CAAC,KAAK,CAAC;QAAE,GAAG,CAAC,OAAO,CAAC,CAAC,GAAG,IAAI,CAAC,CAAC;IAC7C,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,MAAM,CAAC,CAAC;IACrB,OAAO,IAAI,UAAU,CAAC,GAAG,CAAC,CAAC;AAC7B,CAAC;AAED,SAAS,SAAS,CAAC,IAAe,EAAE,SAAiB;IACn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ACvB,MAAM,EAAE,IAAI,EAAE,GAAG,IAAI,CAAC;QACtB,EAAE,KAAF,EAAE,GAAK,IAAI,SAAS,CAAC,IAAI,GAAG,IAAI,CAAC,EAAC;QAClC,KAAK,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC;QACrB,EAAE,CAAC,IAAI,GAAG,IAAI,CAAC;QACf,OAAO,EAAE,CAAC;IACZ,CAAC;IACD,KAAK;QACH,OAAO,IAAI,CAAC,UAAU,EAAE,CAAC;IAC3B,CAAC;CACF;AAEM,MAAM,SAAS,GAAG,CAAC,QAAQ,GAAG,GAAG,EAAE,EAAE,CAAC,IAAI,SAAS,CAAC,QAAQ,CAAC,CAAC;AAAxD,QAAA,SAAS,aAA+C"} \ No newline at end of file diff --git a/node_modules/@noble/hashes/sha3.d.ts b/node_modules/@noble/hashes/sha3.d.ts deleted file mode 100644 index 2107cf64..00000000 --- a/node_modules/@noble/hashes/sha3.d.ts +++ /dev/null @@ -1,97 +0,0 @@ -import { Hash, Input, HashXOF } from './utils.js'; -export declare function keccakP(s: Uint32Array, rounds?: number): void; -export declare class Keccak extends Hash implements HashXOF { - blockLen: number; - suffix: number; - outputLen: number; - protected enableXOF: boolean; - protected rounds: number; - protected state: Uint8Array; - protected pos: number; - protected posOut: number; - protected finished: boolean; - protected state32: Uint32Array; - protected destroyed: boolean; - constructor(blockLen: number, suffix: number, outputLen: number, enableXOF?: boolean, rounds?: number); - protected keccak(): void; - update(data: Input): this; - protected finish(): void; - protected writeInto(out: Uint8Array): Uint8Array; - xofInto(out: Uint8Array): Uint8Array; - xof(bytes: number): Uint8Array; - digestInto(out: Uint8Array): Uint8Array; - digest(): Uint8Array; - destroy(): void; - _cloneInto(to?: Keccak): Keccak; -} -export declare const sha3_224: { - (msg: Input): Uint8Array; - outputLen: number; - blockLen: number; - create(): Hash; -}; -/** - * SHA3-256 hash function - * @param message - that would be hashed - */ -export declare const sha3_256: { - (msg: Input): Uint8Array; - outputLen: number; - blockLen: number; - create(): Hash; -}; -export declare const sha3_384: { - (msg: Input): Uint8Array; - outputLen: number; - blockLen: number; - create(): Hash; -}; -export declare const sha3_512: { - (msg: Input): Uint8Array; - outputLen: number; - blockLen: number; - create(): Hash; -}; -export declare const keccak_224: { - (msg: Input): Uint8Array; - outputLen: number; - blockLen: number; - create(): Hash; -}; -/** - * keccak-256 hash function. Different from SHA3-256. - * @param message - that would be hashed - */ -export declare const keccak_256: { - (msg: Input): Uint8Array; - outputLen: number; - blockLen: number; - create(): Hash; -}; -export declare const keccak_384: { - (msg: Input): Uint8Array; - outputLen: number; - blockLen: number; - create(): Hash; -}; -export declare const keccak_512: { - (msg: Input): Uint8Array; - outputLen: number; - blockLen: number; - create(): Hash; -}; -export type ShakeOpts = { - dkLen?: number; -}; -export declare const shake128: { - (msg: Input, opts?: ShakeOpts | undefined): Uint8Array; - outputLen: number; - blockLen: number; - create(opts: ShakeOpts): HashXOF>; -}; -export declare const shake256: { - (msg: Input, opts?: ShakeOpts | undefined): Uint8Array; - outputLen: number; - blockLen: number; - create(opts: ShakeOpts): HashXOF>; -}; diff --git a/node_modules/@noble/hashes/sha3.js b/node_modules/@noble/hashes/sha3.js deleted file mode 100644 index e1b75307..00000000 --- a/node_modules/@noble/hashes/sha3.js +++ /dev/null @@ -1,213 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.shake256 = exports.shake128 = exports.keccak_512 = exports.keccak_384 = exports.keccak_256 = exports.keccak_224 = exports.sha3_512 = exports.sha3_384 = exports.sha3_256 = exports.sha3_224 = exports.Keccak = exports.keccakP = void 0; -const _assert_js_1 = require("./_assert.js"); -const _u64_js_1 = require("./_u64.js"); -const utils_js_1 = require("./utils.js"); -// SHA3 (keccak) is based on a new design: basically, the internal state is bigger than output size. -// It's called a sponge function. -// Various per round constants calculations -const [SHA3_PI, SHA3_ROTL, _SHA3_IOTA] = [[], [], []]; -const _0n = /* @__PURE__ */ BigInt(0); -const _1n = /* @__PURE__ */ BigInt(1); -const _2n = /* @__PURE__ */ BigInt(2); -const _7n = /* @__PURE__ */ BigInt(7); -const _256n = /* @__PURE__ */ BigInt(256); -const _0x71n = /* @__PURE__ */ BigInt(0x71); -for (let round = 0, R = _1n, x = 1, y = 0; round < 24; round++) { - // Pi - [x, y] = [y, (2 * x + 3 * y) % 5]; - SHA3_PI.push(2 * (5 * y + x)); - // Rotational - SHA3_ROTL.push((((round + 1) * (round + 2)) / 2) % 64); - // Iota - let t = _0n; - for (let j = 0; j < 7; j++) { - R = ((R << _1n) ^ ((R >> _7n) * _0x71n)) % _256n; - if (R & _2n) - t ^= _1n << ((_1n << /* @__PURE__ */ BigInt(j)) - _1n); - } - _SHA3_IOTA.push(t); -} -const [SHA3_IOTA_H, SHA3_IOTA_L] = /* @__PURE__ */ (0, _u64_js_1.split)(_SHA3_IOTA, true); -// Left rotation (without 0, 32, 64) -const rotlH = (h, l, s) => (s > 32 ? (0, _u64_js_1.rotlBH)(h, l, s) : (0, _u64_js_1.rotlSH)(h, l, s)); -const rotlL = (h, l, s) => (s > 32 ? (0, _u64_js_1.rotlBL)(h, l, s) : (0, _u64_js_1.rotlSL)(h, l, s)); -// Same as keccakf1600, but allows to skip some rounds -function keccakP(s, rounds = 24) { - const B = new Uint32Array(5 * 2); - // NOTE: all indices are x2 since we store state as u32 instead of u64 (bigints to slow in js) - for (let round = 24 - rounds; round < 24; round++) { - // Theta θ - for (let x = 0; x < 10; x++) - B[x] = s[x] ^ s[x + 10] ^ s[x + 20] ^ s[x + 30] ^ s[x + 40]; - for (let x = 0; x < 10; x += 2) { - const idx1 = (x + 8) % 10; - const idx0 = (x + 2) % 10; - const B0 = B[idx0]; - const B1 = B[idx0 + 1]; - const Th = rotlH(B0, B1, 1) ^ B[idx1]; - const Tl = rotlL(B0, B1, 1) ^ B[idx1 + 1]; - for (let y = 0; y < 50; y += 10) { - s[x + y] ^= Th; - s[x + y + 1] ^= Tl; - } - } - // Rho (ρ) and Pi (π) - let curH = s[2]; - let curL = s[3]; - for (let t = 0; t < 24; t++) { - const shift = SHA3_ROTL[t]; - const Th = rotlH(curH, curL, shift); - const Tl = rotlL(curH, curL, shift); - const PI = SHA3_PI[t]; - curH = s[PI]; - curL = s[PI + 1]; - s[PI] = Th; - s[PI + 1] = Tl; - } - // Chi (χ) - for (let y = 0; y < 50; y += 10) { - for (let x = 0; x < 10; x++) - B[x] = s[y + x]; - for (let x = 0; x < 10; x++) - s[y + x] ^= ~B[(x + 2) % 10] & B[(x + 4) % 10]; - } - // Iota (ι) - s[0] ^= SHA3_IOTA_H[round]; - s[1] ^= SHA3_IOTA_L[round]; - } - B.fill(0); -} -exports.keccakP = keccakP; -class Keccak extends utils_js_1.Hash { - // NOTE: we accept arguments in bytes instead of bits here. - constructor(blockLen, suffix, outputLen, enableXOF = false, rounds = 24) { - super(); - this.blockLen = blockLen; - this.suffix = suffix; - this.outputLen = outputLen; - this.enableXOF = enableXOF; - this.rounds = rounds; - this.pos = 0; - this.posOut = 0; - this.finished = false; - this.destroyed = false; - // Can be passed from user as dkLen - (0, _assert_js_1.number)(outputLen); - // 1600 = 5x5 matrix of 64bit. 1600 bits === 200 bytes - if (0 >= this.blockLen || this.blockLen >= 200) - throw new Error('Sha3 supports only keccak-f1600 function'); - this.state = new Uint8Array(200); - this.state32 = (0, utils_js_1.u32)(this.state); - } - keccak() { - keccakP(this.state32, this.rounds); - this.posOut = 0; - this.pos = 0; - } - update(data) { - (0, _assert_js_1.exists)(this); - const { blockLen, state } = this; - data = (0, utils_js_1.toBytes)(data); - const len = data.length; - for (let pos = 0; pos < len;) { - const take = Math.min(blockLen - this.pos, len - pos); - for (let i = 0; i < take; i++) - state[this.pos++] ^= data[pos++]; - if (this.pos === blockLen) - this.keccak(); - } - return this; - } - finish() { - if (this.finished) - return; - this.finished = true; - const { state, suffix, pos, blockLen } = this; - // Do the padding - state[pos] ^= suffix; - if ((suffix & 0x80) !== 0 && pos === blockLen - 1) - this.keccak(); - state[blockLen - 1] ^= 0x80; - this.keccak(); - } - writeInto(out) { - (0, _assert_js_1.exists)(this, false); - (0, _assert_js_1.bytes)(out); - this.finish(); - const bufferOut = this.state; - const { blockLen } = this; - for (let pos = 0, len = out.length; pos < len;) { - if (this.posOut >= blockLen) - this.keccak(); - const take = Math.min(blockLen - this.posOut, len - pos); - out.set(bufferOut.subarray(this.posOut, this.posOut + take), pos); - this.posOut += take; - pos += take; - } - return out; - } - xofInto(out) { - // Sha3/Keccak usage with XOF is probably mistake, only SHAKE instances can do XOF - if (!this.enableXOF) - throw new Error('XOF is not possible for this instance'); - return this.writeInto(out); - } - xof(bytes) { - (0, _assert_js_1.number)(bytes); - return this.xofInto(new Uint8Array(bytes)); - } - digestInto(out) { - (0, _assert_js_1.output)(out, this); - if (this.finished) - throw new Error('digest() was already called'); - this.writeInto(out); - this.destroy(); - return out; - } - digest() { - return this.digestInto(new Uint8Array(this.outputLen)); - } - destroy() { - this.destroyed = true; - this.state.fill(0); - } - _cloneInto(to) { - const { blockLen, suffix, outputLen, rounds, enableXOF } = this; - to || (to = new Keccak(blockLen, suffix, outputLen, enableXOF, rounds)); - to.state32.set(this.state32); - to.pos = this.pos; - to.posOut = this.posOut; - to.finished = this.finished; - to.rounds = rounds; - // Suffix can change in cSHAKE - to.suffix = suffix; - to.outputLen = outputLen; - to.enableXOF = enableXOF; - to.destroyed = this.destroyed; - return to; - } -} -exports.Keccak = Keccak; -const gen = (suffix, blockLen, outputLen) => (0, utils_js_1.wrapConstructor)(() => new Keccak(blockLen, suffix, outputLen)); -exports.sha3_224 = gen(0x06, 144, 224 / 8); -/** - * SHA3-256 hash function - * @param message - that would be hashed - */ -exports.sha3_256 = gen(0x06, 136, 256 / 8); -exports.sha3_384 = gen(0x06, 104, 384 / 8); -exports.sha3_512 = gen(0x06, 72, 512 / 8); -exports.keccak_224 = gen(0x01, 144, 224 / 8); -/** - * keccak-256 hash function. Different from SHA3-256. - * @param message - that would be hashed - */ -exports.keccak_256 = gen(0x01, 136, 256 / 8); -exports.keccak_384 = gen(0x01, 104, 384 / 8); -exports.keccak_512 = gen(0x01, 72, 512 / 8); -const genShake = (suffix, blockLen, outputLen) => (0, utils_js_1.wrapXOFConstructorWithOpts)((opts = {}) => new Keccak(blockLen, suffix, opts.dkLen === undefined ? outputLen : opts.dkLen, true)); -exports.shake128 = genShake(0x1f, 168, 128 / 8); -exports.shake256 = genShake(0x1f, 136, 256 / 8); -//# sourceMappingURL=sha3.js.map \ No newline at end of file diff --git a/node_modules/@noble/hashes/sha3.js.map b/node_modules/@noble/hashes/sha3.js.map deleted file mode 100644 index fd689501..00000000 --- a/node_modules/@noble/hashes/sha3.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sha3.js","sourceRoot":"","sources":["src/sha3.ts"],"names":[],"mappings":";;;AAAA,6CAA6D;AAC7D,uCAAkE;AAClE,yCAQoB;AAEpB,oGAAoG;AACpG,iCAAiC;AAEjC,2CAA2C;AAC3C,MAAM,CAAC,OAAO,EAAE,SAAS,EAAE,UAAU,CAAC,GAAmC,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,CAAC,CAAC;AACtF,MAAM,GAAG,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AACtC,MAAM,GAAG,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AACtC,MAAM,GAAG,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AACtC,MAAM,GAAG,GAAG,eAAe,CAAC,MAAM,CAAC,CAAC,CAAC,CAAC;AACtC,MAAM,KAAK,GAAG,eAAe,CAAC,MAAM,CAAC,GAAG,CAAC,CAAC;AAC1C,MAAM,MAAM,GAAG,eAAe,CAAC,MAAM,CAAC,IAAI,CAAC,CAAC;AAC5C,KAAK,IAAI,KAAK,GAAG,CAAC,EAAE,CAAC,GAAG,GAAG,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,KAAK,GAAG,EAAE,EAAE,KAAK,EAAE,EAAE;IA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GAAmB,GAAG,CAAC,IAAI,EAAE,EAAE,EAAE,GAAG,GAAG,CAAC,CAAC,CAAC;AAIjE,MAAM,QAAQ,GAAG,CAAC,MAAc,EAAE,QAAgB,EAAE,SAAiB,EAAE,EAAE,CACvE,IAAA,qCAA0B,EACxB,CAAC,OAAkB,EAAE,EAAE,EAAE,CACvB,IAAI,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,IAAI,CAAC,KAAK,KAAK,SAAS,CAAC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,KAAK,EAAE,IAAI,CAAC,CACxF,CAAC;AAES,QAAA,QAAQ,GAAmB,QAAQ,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,GAAG,CAAC,CAAC,CAAC;AACxD,QAAA,QAAQ,GAAmB,QAAQ,CAAC,IAAI,EAAE,GAAG,EAAE,GAAG,GAAG,CAAC,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/hashes/sha512.d.ts b/node_modules/@noble/hashes/sha512.d.ts deleted file mode 100644 index b8ba9b08..00000000 --- a/node_modules/@noble/hashes/sha512.d.ts +++ /dev/null @@ -1,66 +0,0 @@ -import { SHA2 } from './_sha2.js'; -export declare class SHA512 extends SHA2 { - Ah: number; - Al: number; - Bh: number; - Bl: number; - Ch: number; - Cl: number; - Dh: number; - Dl: number; - Eh: number; - El: number; - Fh: number; - Fl: number; - Gh: number; - Gl: number; - Hh: number; - Hl: number; - constructor(); - protected get(): [ - number, - number, - number, - number, - number, - number, - number, - number, - number, - number, - number, - number, - number, - number, - number, - number - ]; - protected set(Ah: number, Al: number, Bh: number, Bl: number, Ch: number, Cl: number, Dh: number, Dl: number, Eh: number, El: number, Fh: number, Fl: number, Gh: number, Gl: number, Hh: number, Hl: number): void; - protected process(view: DataView, offset: number): void; - protected roundClean(): void; - destroy(): void; -} -export declare const sha512: { - (msg: import("./utils.js").Input): Uint8Array; - outputLen: number; - blockLen: number; - create(): import("./utils.js").Hash; -}; -export declare const sha512_224: { - (msg: import("./utils.js").Input): Uint8Array; - outputLen: number; - blockLen: number; - create(): import("./utils.js").Hash; -}; -export declare const sha512_256: { - (msg: import("./utils.js").Input): Uint8Array; - outputLen: number; - blockLen: number; - create(): import("./utils.js").Hash; -}; -export declare const sha384: { - (msg: import("./utils.js").Input): Uint8Array; - outputLen: number; - blockLen: number; - create(): import("./utils.js").Hash; -}; diff --git a/node_modules/@noble/hashes/sha512.js b/node_modules/@noble/hashes/sha512.js deleted file mode 100644 index 1d3482a9..00000000 --- a/node_modules/@noble/hashes/sha512.js +++ /dev/null @@ -1,235 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.sha384 = exports.sha512_256 = exports.sha512_224 = exports.sha512 = exports.SHA512 = void 0; -const _sha2_js_1 = require("./_sha2.js"); -const _u64_js_1 = require("./_u64.js"); -const utils_js_1 = require("./utils.js"); -// Round contants (first 32 bits of the fractional parts of the cube roots of the first 80 primes 2..409): -// prettier-ignore -const [SHA512_Kh, SHA512_Kl] = /* @__PURE__ */ (() => _u64_js_1.default.split([ - '0x428a2f98d728ae22', '0x7137449123ef65cd', '0xb5c0fbcfec4d3b2f', '0xe9b5dba58189dbbc', - '0x3956c25bf348b538', '0x59f111f1b605d019', '0x923f82a4af194f9b', '0xab1c5ed5da6d8118', - '0xd807aa98a3030242', '0x12835b0145706fbe', '0x243185be4ee4b28c', '0x550c7dc3d5ffb4e2', - '0x72be5d74f27b896f', '0x80deb1fe3b1696b1', '0x9bdc06a725c71235', '0xc19bf174cf692694', - '0xe49b69c19ef14ad2', '0xefbe4786384f25e3', '0x0fc19dc68b8cd5b5', '0x240ca1cc77ac9c65', - '0x2de92c6f592b0275', '0x4a7484aa6ea6e483', '0x5cb0a9dcbd41fbd4', '0x76f988da831153b5', - '0x983e5152ee66dfab', '0xa831c66d2db43210', '0xb00327c898fb213f', '0xbf597fc7beef0ee4', - '0xc6e00bf33da88fc2', '0xd5a79147930aa725', '0x06ca6351e003826f', '0x142929670a0e6e70', - '0x27b70a8546d22ffc', '0x2e1b21385c26c926', '0x4d2c6dfc5ac42aed', '0x53380d139d95b3df', - '0x650a73548baf63de', '0x766a0abb3c77b2a8', '0x81c2c92e47edaee6', '0x92722c851482353b', - '0xa2bfe8a14cf10364', '0xa81a664bbc423001', '0xc24b8b70d0f89791', '0xc76c51a30654be30', - '0xd192e819d6ef5218', '0xd69906245565a910', '0xf40e35855771202a', '0x106aa07032bbd1b8', - '0x19a4c116b8d2d0c8', '0x1e376c085141ab53', '0x2748774cdf8eeb99', '0x34b0bcb5e19b48a8', - '0x391c0cb3c5c95a63', '0x4ed8aa4ae3418acb', '0x5b9cca4f7763e373', '0x682e6ff3d6b2b8a3', - '0x748f82ee5defb2fc', '0x78a5636f43172f60', '0x84c87814a1f0ab72', '0x8cc702081a6439ec', - '0x90befffa23631e28', '0xa4506cebde82bde9', '0xbef9a3f7b2c67915', '0xc67178f2e372532b', - '0xca273eceea26619c', '0xd186b8c721c0c207', '0xeada7dd6cde0eb1e', '0xf57d4f7fee6ed178', - '0x06f067aa72176fba', '0x0a637dc5a2c898a6', '0x113f9804bef90dae', '0x1b710b35131c471b', - '0x28db77f523047d84', '0x32caab7b40c72493', '0x3c9ebe0a15c9bebc', '0x431d67c49c100d4c', - '0x4cc5d4becb3e42b6', '0x597f299cfc657e2a', '0x5fcb6fab3ad6faec', '0x6c44198c4a475817' -].map(n => BigInt(n))))(); -// Temporary buffer, not used to store anything between runs -const SHA512_W_H = /* @__PURE__ */ new Uint32Array(80); -const SHA512_W_L = /* @__PURE__ */ new Uint32Array(80); -class SHA512 extends _sha2_js_1.SHA2 { - constructor() { - super(128, 64, 16, false); - // We cannot use array here since array allows indexing by variable which means optimizer/compiler cannot use registers. - // Also looks cleaner and easier to verify with spec. - // Initial state (first 32 bits of the fractional parts of the square roots of the first 8 primes 2..19): - // h -- high 32 bits, l -- low 32 bits - this.Ah = 0x6a09e667 | 0; - this.Al = 0xf3bcc908 | 0; - this.Bh = 0xbb67ae85 | 0; - this.Bl = 0x84caa73b | 0; - this.Ch = 0x3c6ef372 | 0; - this.Cl = 0xfe94f82b | 0; - this.Dh = 0xa54ff53a | 0; - this.Dl = 0x5f1d36f1 | 0; - this.Eh = 0x510e527f | 0; - this.El = 0xade682d1 | 0; - this.Fh = 0x9b05688c | 0; - this.Fl = 0x2b3e6c1f | 0; - this.Gh = 0x1f83d9ab | 0; - this.Gl = 0xfb41bd6b | 0; - this.Hh = 0x5be0cd19 | 0; - this.Hl = 0x137e2179 | 0; - } - // prettier-ignore - get() { - const { Ah, Al, Bh, Bl, Ch, Cl, Dh, Dl, Eh, El, Fh, Fl, Gh, Gl, Hh, Hl } = this; - return [Ah, Al, Bh, Bl, Ch, Cl, Dh, Dl, Eh, El, Fh, Fl, Gh, Gl, Hh, Hl]; - } - // prettier-ignore - set(Ah, Al, Bh, Bl, Ch, Cl, Dh, Dl, Eh, El, Fh, Fl, Gh, Gl, Hh, Hl) { - this.Ah = Ah | 0; - this.Al = Al | 0; - this.Bh = Bh | 0; - this.Bl = Bl | 0; - this.Ch = Ch | 0; - this.Cl = Cl | 0; - this.Dh = Dh | 0; - this.Dl = Dl | 0; - this.Eh = Eh | 0; - this.El = El | 0; - this.Fh = Fh | 0; - this.Fl = Fl | 0; - this.Gh = Gh | 0; - this.Gl = Gl | 0; - this.Hh = Hh | 0; - this.Hl = Hl | 0; - } - process(view, offset) { - // Extend the first 16 words into the remaining 64 words w[16..79] of the message schedule array - for (let i = 0; i < 16; i++, offset += 4) { - SHA512_W_H[i] = view.getUint32(offset); - SHA512_W_L[i] = view.getUint32((offset += 4)); - } - for (let i = 16; i < 80; i++) { - // s0 := (w[i-15] rightrotate 1) xor (w[i-15] rightrotate 8) xor (w[i-15] rightshift 7) - const W15h = SHA512_W_H[i - 15] | 0; - const W15l = SHA512_W_L[i - 15] | 0; - const s0h = _u64_js_1.default.rotrSH(W15h, W15l, 1) ^ _u64_js_1.default.rotrSH(W15h, W15l, 8) ^ _u64_js_1.default.shrSH(W15h, W15l, 7); - const s0l = _u64_js_1.default.rotrSL(W15h, W15l, 1) ^ _u64_js_1.default.rotrSL(W15h, W15l, 8) ^ _u64_js_1.default.shrSL(W15h, W15l, 7); - // s1 := (w[i-2] rightrotate 19) xor (w[i-2] rightrotate 61) xor (w[i-2] rightshift 6) - const W2h = SHA512_W_H[i - 2] | 0; - const W2l = SHA512_W_L[i - 2] | 0; - const s1h = _u64_js_1.default.rotrSH(W2h, W2l, 19) ^ _u64_js_1.default.rotrBH(W2h, W2l, 61) ^ _u64_js_1.default.shrSH(W2h, W2l, 6); - const s1l = _u64_js_1.default.rotrSL(W2h, W2l, 19) ^ _u64_js_1.default.rotrBL(W2h, W2l, 61) ^ _u64_js_1.default.shrSL(W2h, W2l, 6); - // SHA256_W[i] = s0 + s1 + SHA256_W[i - 7] + SHA256_W[i - 16]; - const SUMl = _u64_js_1.default.add4L(s0l, s1l, SHA512_W_L[i - 7], SHA512_W_L[i - 16]); - const SUMh = _u64_js_1.default.add4H(SUMl, s0h, s1h, SHA512_W_H[i - 7], SHA512_W_H[i - 16]); - SHA512_W_H[i] = SUMh | 0; - SHA512_W_L[i] = SUMl | 0; - } - let { Ah, Al, Bh, Bl, Ch, Cl, Dh, Dl, Eh, El, Fh, Fl, Gh, Gl, Hh, Hl } = this; - // Compression function main loop, 80 rounds - for (let i = 0; i < 80; i++) { - // S1 := (e rightrotate 14) xor (e rightrotate 18) xor (e rightrotate 41) - const sigma1h = _u64_js_1.default.rotrSH(Eh, El, 14) ^ _u64_js_1.default.rotrSH(Eh, El, 18) ^ _u64_js_1.default.rotrBH(Eh, El, 41); - const sigma1l = _u64_js_1.default.rotrSL(Eh, El, 14) ^ _u64_js_1.default.rotrSL(Eh, El, 18) ^ _u64_js_1.default.rotrBL(Eh, El, 41); - //const T1 = (H + sigma1 + Chi(E, F, G) + SHA256_K[i] + SHA256_W[i]) | 0; - const CHIh = (Eh & Fh) ^ (~Eh & Gh); - const CHIl = (El & Fl) ^ (~El & Gl); - // T1 = H + sigma1 + Chi(E, F, G) + SHA512_K[i] + SHA512_W[i] - // prettier-ignore - const T1ll = _u64_js_1.default.add5L(Hl, sigma1l, CHIl, SHA512_Kl[i], SHA512_W_L[i]); - const T1h = _u64_js_1.default.add5H(T1ll, Hh, sigma1h, CHIh, SHA512_Kh[i], SHA512_W_H[i]); - const T1l = T1ll | 0; - // S0 := (a rightrotate 28) xor (a rightrotate 34) xor (a rightrotate 39) - const sigma0h = _u64_js_1.default.rotrSH(Ah, Al, 28) ^ _u64_js_1.default.rotrBH(Ah, Al, 34) ^ _u64_js_1.default.rotrBH(Ah, Al, 39); - const sigma0l = _u64_js_1.default.rotrSL(Ah, Al, 28) ^ _u64_js_1.default.rotrBL(Ah, Al, 34) ^ _u64_js_1.default.rotrBL(Ah, Al, 39); - const MAJh = (Ah & Bh) ^ (Ah & Ch) ^ (Bh & Ch); - const MAJl = (Al & Bl) ^ (Al & Cl) ^ (Bl & Cl); - Hh = Gh | 0; - Hl = Gl | 0; - Gh = Fh | 0; - Gl = Fl | 0; - Fh = Eh | 0; - Fl = El | 0; - ({ h: Eh, l: El } = _u64_js_1.default.add(Dh | 0, Dl | 0, T1h | 0, T1l | 0)); - Dh = Ch | 0; - Dl = Cl | 0; - Ch = Bh | 0; - Cl = Bl | 0; - Bh = Ah | 0; - Bl = Al | 0; - const All = _u64_js_1.default.add3L(T1l, sigma0l, MAJl); - Ah = _u64_js_1.default.add3H(All, T1h, sigma0h, MAJh); - Al = All | 0; - } - // Add the compressed chunk to the current hash value - ({ h: Ah, l: Al } = _u64_js_1.default.add(this.Ah | 0, this.Al | 0, Ah | 0, Al | 0)); - ({ h: Bh, l: Bl } = _u64_js_1.default.add(this.Bh | 0, this.Bl | 0, Bh | 0, Bl | 0)); - ({ h: Ch, l: Cl } = _u64_js_1.default.add(this.Ch | 0, this.Cl | 0, Ch | 0, Cl | 0)); - ({ h: Dh, l: Dl } = _u64_js_1.default.add(this.Dh | 0, this.Dl | 0, Dh | 0, Dl | 0)); - ({ h: Eh, l: El } = _u64_js_1.default.add(this.Eh | 0, this.El | 0, Eh | 0, El | 0)); - ({ h: Fh, l: Fl } = _u64_js_1.default.add(this.Fh | 0, this.Fl | 0, Fh | 0, Fl | 0)); - ({ h: Gh, l: Gl } = _u64_js_1.default.add(this.Gh | 0, this.Gl | 0, Gh | 0, Gl | 0)); - ({ h: Hh, l: Hl } = _u64_js_1.default.add(this.Hh | 0, this.Hl | 0, Hh | 0, Hl | 0)); - this.set(Ah, Al, Bh, Bl, Ch, Cl, Dh, Dl, Eh, El, Fh, Fl, Gh, Gl, Hh, Hl); - } - roundClean() { - SHA512_W_H.fill(0); - SHA512_W_L.fill(0); - } - destroy() { - this.buffer.fill(0); - this.set(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); - } -} -exports.SHA512 = SHA512; -class SHA512_224 extends SHA512 { - constructor() { - super(); - // h -- high 32 bits, l -- low 32 bits - this.Ah = 0x8c3d37c8 | 0; - this.Al = 0x19544da2 | 0; - this.Bh = 0x73e19966 | 0; - this.Bl = 0x89dcd4d6 | 0; - this.Ch = 0x1dfab7ae | 0; - this.Cl = 0x32ff9c82 | 0; - this.Dh = 0x679dd514 | 0; - this.Dl = 0x582f9fcf | 0; - this.Eh = 0x0f6d2b69 | 0; - this.El = 0x7bd44da8 | 0; - this.Fh = 0x77e36f73 | 0; - this.Fl = 0x04c48942 | 0; - this.Gh = 0x3f9d85a8 | 0; - this.Gl = 0x6a1d36c8 | 0; - this.Hh = 0x1112e6ad | 0; - this.Hl = 0x91d692a1 | 0; - this.outputLen = 28; - } -} -class SHA512_256 extends SHA512 { - constructor() { - super(); - // h -- high 32 bits, l -- low 32 bits - this.Ah = 0x22312194 | 0; - this.Al = 0xfc2bf72c | 0; - this.Bh = 0x9f555fa3 | 0; - this.Bl = 0xc84c64c2 | 0; - this.Ch = 0x2393b86b | 0; - this.Cl = 0x6f53b151 | 0; - this.Dh = 0x96387719 | 0; - this.Dl = 0x5940eabd | 0; - this.Eh = 0x96283ee2 | 0; - this.El = 0xa88effe3 | 0; - this.Fh = 0xbe5e1e25 | 0; - this.Fl = 0x53863992 | 0; - this.Gh = 0x2b0199fc | 0; - this.Gl = 0x2c85b8aa | 0; - this.Hh = 0x0eb72ddc | 0; - this.Hl = 0x81c52ca2 | 0; - this.outputLen = 32; - } -} -class SHA384 extends SHA512 { - constructor() { - super(); - // h -- high 32 bits, l -- low 32 bits - this.Ah = 0xcbbb9d5d | 0; - this.Al = 0xc1059ed8 | 0; - this.Bh = 0x629a292a | 0; - this.Bl = 0x367cd507 | 0; - this.Ch = 0x9159015a | 0; - this.Cl = 0x3070dd17 | 0; - this.Dh = 0x152fecd8 | 0; - this.Dl = 0xf70e5939 | 0; - this.Eh = 0x67332667 | 0; - this.El = 0xffc00b31 | 0; - this.Fh = 0x8eb44a87 | 0; - this.Fl = 0x68581511 | 0; - this.Gh = 0xdb0c2e0d | 0; - this.Gl = 0x64f98fa7 | 0; - this.Hh = 0x47b5481d | 0; - this.Hl = 0xbefa4fa4 | 0; - this.outputLen = 48; - } -} -exports.sha512 = (0, utils_js_1.wrapConstructor)(() => new SHA512()); -exports.sha512_224 = (0, utils_js_1.wrapConstructor)(() => new SHA512_224()); -exports.sha512_256 = (0, utils_js_1.wrapConstructor)(() => new SHA512_256()); -exports.sha384 = (0, utils_js_1.wrapConstructor)(() => new SHA384()); -//# sourceMappingURL=sha512.js.map \ No newline at end of file diff --git a/node_modules/@noble/hashes/sha512.js.map b/node_modules/@noble/hashes/sha512.js.map deleted file mode 100644 index 700a8e78..00000000 --- a/node_modules/@noble/hashes/sha512.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"sha512.js","sourceRoot":"","sources":["src/sha512.ts"],"names":[],"mappings":";;;AAAA,yCAAkC;AAClC,uCAA4B;AAC5B,yCAA6C;AAE7C,0GAA0G;AAC1G,kBAAkB;AAClB,MAAM,CAAC,SAAS,EAAE,SAAS,CA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ACpB,OAAE,GAAG,UAAU,GAAG,CAAC,CAAC;QACpB,OAAE,GAAG,UAAU,GAAG,CAAC,CAAC;QACpB,OAAE,GAAG,UAAU,GAAG,CAAC,CAAC;QACpB,OAAE,GAAG,UAAU,GAAG,CAAC,CAAC;QACpB,OAAE,GAAG,UAAU,GAAG,CAAC,CAAC;QACpB,OAAE,GAAG,UAAU,GAAG,CAAC,CAAC;QACpB,OAAE,GAAG,UAAU,GAAG,CAAC,CAAC;QACpB,OAAE,GAAG,UAAU,GAAG,CAAC,CAAC;QACpB,OAAE,GAAG,UAAU,GAAG,CAAC,CAAC;QACpB,OAAE,GAAG,UAAU,GAAG,CAAC,CAAC;QACpB,OAAE,GAAG,UAAU,GAAG,CAAC,CAAC;QACpB,OAAE,GAAG,UAAU,GAAG,CAAC,CAAC;QACpB,OAAE,GAAG,UAAU,GAAG,CAAC,CAAC;QAIlB,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC;IACtB,CAAC;CACF;AAEY,QAAA,MAAM,GAAmB,IAAA,0BAAe,EAAC,GAAG,EAAE,CAAC,IAAI,MAAM,EAAE,CAAC,CAAC;AAC7D,QAAA,UAAU,GAAmB,IAAA,0BAAe,EAAC,GAAG,EAAE,CAAC,IAAI,UAAU,EAAE,CAAC,CAAC;AACrE,QAAA,UAAU,GAAmB,IAAA,0BAAe,EAAC,GAAG,EAAE,CAAC,IAAI,UAAU,EAAE,CAAC,CAAC;AACrE,QAAA,MAAM,GAAmB,IAAA,0BAAe,EAAC,GAAG,EAAE,CAAC,IAAI,MAAM,EAAE,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@noble/hashes/src/_assert.ts b/node_modules/@noble/hashes/src/_assert.ts deleted file mode 100644 index 11d28ea6..00000000 --- a/node_modules/@noble/hashes/src/_assert.ts +++ /dev/null @@ -1,43 +0,0 @@ -function number(n: number) { - if (!Number.isSafeInteger(n) || n < 0) throw new Error(`Wrong positive integer: ${n}`); -} - -function bool(b: boolean) { - if (typeof b !== 'boolean') throw new Error(`Expected boolean, not ${b}`); -} - -function bytes(b: Uint8Array | undefined, ...lengths: number[]) { - if (!(b instanceof Uint8Array)) throw new Error('Expected Uint8Array'); - if (lengths.length > 0 && !lengths.includes(b.length)) - throw new Error(`Expected Uint8Array of length ${lengths}, not of length=${b.length}`); -} - -type Hash = { - (data: Uint8Array): Uint8Array; - blockLen: number; - outputLen: number; - create: any; -}; -function hash(hash: Hash) { - if (typeof hash !== 'function' || typeof hash.create !== 'function') - throw new Error('Hash should be wrapped by utils.wrapConstructor'); - number(hash.outputLen); - number(hash.blockLen); -} - -function exists(instance: any, checkFinished = true) { - if (instance.destroyed) throw new Error('Hash instance has been destroyed'); - if (checkFinished && instance.finished) throw new Error('Hash#digest() has already been called'); -} -function output(out: any, instance: any) { - bytes(out); - const min = instance.outputLen; - if (out.length < min) { - throw new Error(`digestInto() expects output buffer of length at least ${min}`); - } -} - -export { number, bool, bytes, hash, exists, output }; - -const assert = { number, bool, bytes, hash, exists, output }; -export default assert; diff --git a/node_modules/@noble/hashes/src/_blake2.ts b/node_modules/@noble/hashes/src/_blake2.ts deleted file mode 100644 index 6aa4a742..00000000 --- a/node_modules/@noble/hashes/src/_blake2.ts +++ /dev/null @@ -1,128 +0,0 @@ -import { number, exists, output } from './_assert.js'; -import { Hash, Input, toBytes, u32 } from './utils.js'; - -// Blake is based on ChaCha permutation. - -// For BLAKE2b, the two extra permutations for rounds 10 and 11 are SIGMA[10..11] = SIGMA[0..1]. -// prettier-ignore -export const SIGMA = /* @__PURE__ */ new Uint8Array([ - 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, - 14, 10, 4, 8, 9, 15, 13, 6, 1, 12, 0, 2, 11, 7, 5, 3, - 11, 8, 12, 0, 5, 2, 15, 13, 10, 14, 3, 6, 7, 1, 9, 4, - 7, 9, 3, 1, 13, 12, 11, 14, 2, 6, 5, 10, 4, 0, 15, 8, - 9, 0, 5, 7, 2, 4, 10, 15, 14, 1, 11, 12, 6, 8, 3, 13, - 2, 12, 6, 10, 0, 11, 8, 3, 4, 13, 7, 5, 15, 14, 1, 9, - 12, 5, 1, 15, 14, 13, 4, 10, 0, 7, 6, 3, 9, 2, 8, 11, - 13, 11, 7, 14, 12, 1, 3, 9, 5, 0, 15, 4, 8, 6, 2, 10, - 6, 15, 14, 9, 11, 3, 0, 8, 12, 2, 13, 7, 1, 4, 10, 5, - 10, 2, 8, 4, 7, 6, 1, 5, 15, 11, 9, 14, 3, 12, 13, 0, - 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, - 14, 10, 4, 8, 9, 15, 13, 6, 1, 12, 0, 2, 11, 7, 5, 3, -]); - -export type BlakeOpts = { - dkLen?: number; - key?: Input; - salt?: Input; - personalization?: Input; -}; - -export abstract class BLAKE2> extends Hash { - protected abstract compress(msg: Uint32Array, offset: number, isLast: boolean): void; - protected abstract get(): number[]; - protected abstract set(...args: number[]): void; - abstract destroy(): void; - protected buffer: Uint8Array; - protected buffer32: Uint32Array; - protected length: number = 0; - protected pos: number = 0; - protected finished = false; - protected destroyed = false; - - constructor( - readonly blockLen: number, - public outputLen: number, - opts: BlakeOpts = {}, - keyLen: number, - saltLen: number, - persLen: number - ) { - super(); - number(blockLen); - number(outputLen); - number(keyLen); - if (outputLen < 0 || outputLen > keyLen) throw new Error('outputLen bigger than keyLen'); - if (opts.key !== undefined && (opts.key.length < 1 || opts.key.length > keyLen)) - throw new Error(`key must be up 1..${keyLen} byte long or undefined`); - if (opts.salt !== undefined && opts.salt.length !== saltLen) - throw new Error(`salt must be ${saltLen} byte long or undefined`); - if (opts.personalization !== undefined && opts.personalization.length !== persLen) - throw new Error(`personalization must be ${persLen} byte long or undefined`); - this.buffer32 = u32((this.buffer = new Uint8Array(blockLen))); - } - update(data: Input) { - exists(this); - // Main difference with other hashes: there is flag for last block, - // so we cannot process current block before we know that there - // is the next one. This significantly complicates logic and reduces ability - // to do zero-copy processing - const { blockLen, buffer, buffer32 } = this; - data = toBytes(data); - const len = data.length; - const offset = data.byteOffset; - const buf = data.buffer; - for (let pos = 0; pos < len; ) { - // If buffer is full and we still have input (don't process last block, same as blake2s) - if (this.pos === blockLen) { - this.compress(buffer32, 0, false); - this.pos = 0; - } - const take = Math.min(blockLen - this.pos, len - pos); - const dataOffset = offset + pos; - // full block && aligned to 4 bytes && not last in input - if (take === blockLen && !(dataOffset % 4) && pos + take < len) { - const data32 = new Uint32Array(buf, dataOffset, Math.floor((len - pos) / 4)); - for (let pos32 = 0; pos + blockLen < len; pos32 += buffer32.length, pos += blockLen) { - this.length += blockLen; - this.compress(data32, pos32, false); - } - continue; - } - buffer.set(data.subarray(pos, pos + take), this.pos); - this.pos += take; - this.length += take; - pos += take; - } - return this; - } - digestInto(out: Uint8Array) { - exists(this); - output(out, this); - const { pos, buffer32 } = this; - this.finished = true; - // Padding - this.buffer.subarray(pos).fill(0); - this.compress(buffer32, 0, true); - const out32 = u32(out); - this.get().forEach((v, i) => (out32[i] = v)); - } - digest() { - const { buffer, outputLen } = this; - this.digestInto(buffer); - const res = buffer.slice(0, outputLen); - this.destroy(); - return res; - } - _cloneInto(to?: T): T { - const { buffer, length, finished, destroyed, outputLen, pos } = this; - to ||= new (this.constructor as any)({ dkLen: outputLen }) as T; - to.set(...this.get()); - to.length = length; - to.finished = finished; - to.destroyed = destroyed; - to.outputLen = outputLen; - to.buffer.set(buffer); - to.pos = pos; - return to; - } -} diff --git a/node_modules/@noble/hashes/src/_sha2.ts b/node_modules/@noble/hashes/src/_sha2.ts deleted file mode 100644 index bd991036..00000000 --- a/node_modules/@noble/hashes/src/_sha2.ts +++ /dev/null @@ -1,118 +0,0 @@ -import { exists, output } from './_assert.js'; -import { Hash, createView, Input, toBytes } from './utils.js'; - -// Polyfill for Safari 14 -function setBigUint64(view: DataView, byteOffset: number, value: bigint, isLE: boolean): void { - if (typeof view.setBigUint64 === 'function') return view.setBigUint64(byteOffset, value, isLE); - const _32n = BigInt(32); - const _u32_max = BigInt(0xffffffff); - const wh = Number((value >> _32n) & _u32_max); - const wl = Number(value & _u32_max); - const h = isLE ? 4 : 0; - const l = isLE ? 0 : 4; - view.setUint32(byteOffset + h, wh, isLE); - view.setUint32(byteOffset + l, wl, isLE); -} - -// Base SHA2 class (RFC 6234) -export abstract class SHA2> extends Hash { - protected abstract process(buf: DataView, offset: number): void; - protected abstract get(): number[]; - protected abstract set(...args: number[]): void; - abstract destroy(): void; - protected abstract roundClean(): void; - // For partial updates less than block size - protected buffer: Uint8Array; - protected view: DataView; - protected finished = false; - protected length = 0; - protected pos = 0; - protected destroyed = false; - - constructor( - readonly blockLen: number, - public outputLen: number, - readonly padOffset: number, - readonly isLE: boolean - ) { - super(); - this.buffer = new Uint8Array(blockLen); - this.view = createView(this.buffer); - } - update(data: Input): this { - exists(this); - const { view, buffer, blockLen } = this; - data = toBytes(data); - const len = data.length; - for (let pos = 0; pos < len; ) { - const take = Math.min(blockLen - this.pos, len - pos); - // Fast path: we have at least one block in input, cast it to view and process - if (take === blockLen) { - const dataView = createView(data); - for (; blockLen <= len - pos; pos += blockLen) this.process(dataView, pos); - continue; - } - buffer.set(data.subarray(pos, pos + take), this.pos); - this.pos += take; - pos += take; - if (this.pos === blockLen) { - this.process(view, 0); - this.pos = 0; - } - } - this.length += data.length; - this.roundClean(); - return this; - } - digestInto(out: Uint8Array) { - exists(this); - output(out, this); - this.finished = true; - // Padding - // We can avoid allocation of buffer for padding completely if it - // was previously not allocated here. But it won't change performance. - const { buffer, view, blockLen, isLE } = this; - let { pos } = this; - // append the bit '1' to the message - buffer[pos++] = 0b10000000; - this.buffer.subarray(pos).fill(0); - // we have less than padOffset left in buffer, so we cannot put length in current block, need process it and pad again - if (this.padOffset > blockLen - pos) { - this.process(view, 0); - pos = 0; - } - // Pad until full block byte with zeros - for (let i = pos; i < blockLen; i++) buffer[i] = 0; - // Note: sha512 requires length to be 128bit integer, but length in JS will overflow before that - // You need to write around 2 exabytes (u64_max / 8 / (1024**6)) for this to happen. - // So we just write lowest 64 bits of that value. - setBigUint64(view, blockLen - 8, BigInt(this.length * 8), isLE); - this.process(view, 0); - const oview = createView(out); - const len = this.outputLen; - // NOTE: we do division by 4 later, which should be fused in single op with modulo by JIT - if (len % 4) throw new Error('_sha2: outputLen should be aligned to 32bit'); - const outLen = len / 4; - const state = this.get(); - if (outLen > state.length) throw new Error('_sha2: outputLen bigger than state'); - for (let i = 0; i < outLen; i++) oview.setUint32(4 * i, state[i], isLE); - } - digest() { - const { buffer, outputLen } = this; - this.digestInto(buffer); - const res = buffer.slice(0, outputLen); - this.destroy(); - return res; - } - _cloneInto(to?: T): T { - to ||= new (this.constructor as any)() as T; - to.set(...this.get()); - const { blockLen, buffer, length, finished, destroyed, pos } = this; - to.length = length; - to.pos = pos; - to.finished = finished; - to.destroyed = destroyed; - if (length % blockLen) to.buffer.set(buffer); - return to; - } -} diff --git a/node_modules/@noble/hashes/src/_u64.ts b/node_modules/@noble/hashes/src/_u64.ts deleted file mode 100644 index efc55b45..00000000 --- a/node_modules/@noble/hashes/src/_u64.ts +++ /dev/null @@ -1,77 +0,0 @@ -const U32_MASK64 = /* @__PURE__ */ BigInt(2 ** 32 - 1); -const _32n = /* @__PURE__ */ BigInt(32); - -// We are not using BigUint64Array, because they are extremely slow as per 2022 -function fromBig(n: bigint, le = false) { - if (le) return { h: Number(n & U32_MASK64), l: Number((n >> _32n) & U32_MASK64) }; - return { h: Number((n >> _32n) & U32_MASK64) | 0, l: Number(n & U32_MASK64) | 0 }; -} - -function split(lst: bigint[], le = false) { - let Ah = new Uint32Array(lst.length); - let Al = new Uint32Array(lst.length); - for (let i = 0; i < lst.length; i++) { - const { h, l } = fromBig(lst[i], le); - [Ah[i], Al[i]] = [h, l]; - } - return [Ah, Al]; -} - -const toBig = (h: number, l: number) => (BigInt(h >>> 0) << _32n) | BigInt(l >>> 0); -// for Shift in [0, 32) -const shrSH = (h: number, _l: number, s: number) => h >>> s; -const shrSL = (h: number, l: number, s: number) => (h << (32 - s)) | (l >>> s); -// Right rotate for Shift in [1, 32) -const rotrSH = (h: number, l: number, s: number) => (h >>> s) | (l << (32 - s)); -const rotrSL = (h: number, l: number, s: number) => (h << (32 - s)) | (l >>> s); -// Right rotate for Shift in (32, 64), NOTE: 32 is special case. -const rotrBH = (h: number, l: number, s: number) => (h << (64 - s)) | (l >>> (s - 32)); -const rotrBL = (h: number, l: number, s: number) => (h >>> (s - 32)) | (l << (64 - s)); -// Right rotate for shift===32 (just swaps l&h) -const rotr32H = (_h: number, l: number) => l; -const rotr32L = (h: number, _l: number) => h; -// Left rotate for Shift in [1, 32) -const rotlSH = (h: number, l: number, s: number) => (h << s) | (l >>> (32 - s)); -const rotlSL = (h: number, l: number, s: number) => (l << s) | (h >>> (32 - s)); -// Left rotate for Shift in (32, 64), NOTE: 32 is special case. -const rotlBH = (h: number, l: number, s: number) => (l << (s - 32)) | (h >>> (64 - s)); -const rotlBL = (h: number, l: number, s: number) => (h << (s - 32)) | (l >>> (64 - s)); - -// JS uses 32-bit signed integers for bitwise operations which means we cannot -// simple take carry out of low bit sum by shift, we need to use division. -function add(Ah: number, Al: number, Bh: number, Bl: number) { - const l = (Al >>> 0) + (Bl >>> 0); - return { h: (Ah + Bh + ((l / 2 ** 32) | 0)) | 0, l: l | 0 }; -} -// Addition with more than 2 elements -const add3L = (Al: number, Bl: number, Cl: number) => (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0); -const add3H = (low: number, Ah: number, Bh: number, Ch: number) => - (Ah + Bh + Ch + ((low / 2 ** 32) | 0)) | 0; -const add4L = (Al: number, Bl: number, Cl: number, Dl: number) => - (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0) + (Dl >>> 0); -const add4H = (low: number, Ah: number, Bh: number, Ch: number, Dh: number) => - (Ah + Bh + Ch + Dh + ((low / 2 ** 32) | 0)) | 0; -const add5L = (Al: number, Bl: number, Cl: number, Dl: number, El: number) => - (Al >>> 0) + (Bl >>> 0) + (Cl >>> 0) + (Dl >>> 0) + (El >>> 0); -const add5H = (low: number, Ah: number, Bh: number, Ch: number, Dh: number, Eh: number) => - (Ah + Bh + Ch + Dh + Eh + ((low / 2 ** 32) | 0)) | 0; - -// prettier-ignore -export { - fromBig, split, toBig, - shrSH, shrSL, - rotrSH, rotrSL, rotrBH, rotrBL, - rotr32H, rotr32L, - rotlSH, rotlSL, rotlBH, rotlBL, - add, add3L, add3H, add4L, add4H, add5H, add5L, -}; -// prettier-ignore -const u64 = { - fromBig, split, toBig, - shrSH, shrSL, - rotrSH, rotrSL, rotrBH, rotrBL, - rotr32H, rotr32L, - rotlSH, rotlSL, rotlBH, rotlBL, - add, add3L, add3H, add4L, add4H, add5H, add5L, -}; -export default u64; diff --git a/node_modules/@noble/hashes/src/argon2.ts b/node_modules/@noble/hashes/src/argon2.ts deleted file mode 100644 index d727b0f8..00000000 --- a/node_modules/@noble/hashes/src/argon2.ts +++ /dev/null @@ -1,374 +0,0 @@ -import { number as assertNumber } from './_assert.js'; -import { Input, toBytes, u8, u32 } from './utils.js'; -import { blake2b } from './blake2b.js'; -import { add3H, add3L, rotr32H, rotr32L, rotrBH, rotrBL, rotrSH, rotrSL } from './_u64.js'; - -// Experimental Argon2 RFC 9106 implementation. It may be removed at any time. -const enum Types { - Argond2d = 0, - Argon2i = 1, - Argon2id = 2, -} - -const ARGON2_SYNC_POINTS = 4; - -const toBytesOptional = (buf?: Input) => (buf !== undefined ? toBytes(buf) : new Uint8Array([])); - -function mul(a: number, b: number) { - const aL = a & 0xffff; - const aH = a >>> 16; - const bL = b & 0xffff; - const bH = b >>> 16; - const ll = Math.imul(aL, bL); - const hl = Math.imul(aH, bL); - const lh = Math.imul(aL, bH); - const hh = Math.imul(aH, bH); - const BUF = ((ll >>> 16) + (hl & 0xffff) + lh) | 0; - const h = ((hl >>> 16) + (BUF >>> 16) + hh) | 0; - return { h, l: (BUF << 16) | (ll & 0xffff) }; -} - -function relPos(areaSize: number, relativePos: number) { - // areaSize - 1 - ((areaSize * ((relativePos ** 2) >>> 32)) >>> 32) - return areaSize - 1 - mul(areaSize, mul(relativePos, relativePos).h).h; -} - -function mul2(a: number, b: number) { - // 2 * a * b (via shifts) - const { h, l } = mul(a, b); - return { h: ((h << 1) | (l >>> 31)) & 0xffff_ffff, l: (l << 1) & 0xffff_ffff }; -} - -function blamka(Ah: number, Al: number, Bh: number, Bl: number) { - const { h: Ch, l: Cl } = mul2(Al, Bl); - // A + B + (2 * A * B) - const Rll = add3L(Al, Bl, Cl); - return { h: add3H(Rll, Ah, Bh, Ch), l: Rll | 0 }; -} - -// Temporary block buffer -const BUF = new Uint32Array(256); - -function G(a: number, b: number, c: number, d: number) { - let Al = BUF[2*a], Ah = BUF[2*a + 1]; // prettier-ignore - let Bl = BUF[2*b], Bh = BUF[2*b + 1]; // prettier-ignore - let Cl = BUF[2*c], Ch = BUF[2*c + 1]; // prettier-ignore - let Dl = BUF[2*d], Dh = BUF[2*d + 1]; // prettier-ignore - - ({ h: Ah, l: Al } = blamka(Ah, Al, Bh, Bl)); - ({ Dh, Dl } = { Dh: Dh ^ Ah, Dl: Dl ^ Al }); - ({ Dh, Dl } = { Dh: rotr32H(Dh, Dl), Dl: rotr32L(Dh, Dl) }); - - ({ h: Ch, l: Cl } = blamka(Ch, Cl, Dh, Dl)); - ({ Bh, Bl } = { Bh: Bh ^ Ch, Bl: Bl ^ Cl }); - ({ Bh, Bl } = { Bh: rotrSH(Bh, Bl, 24), Bl: rotrSL(Bh, Bl, 24) }); - - ({ h: Ah, l: Al } = blamka(Ah, Al, Bh, Bl)); - ({ Dh, Dl } = { Dh: Dh ^ Ah, Dl: Dl ^ Al }); - ({ Dh, Dl } = { Dh: rotrSH(Dh, Dl, 16), Dl: rotrSL(Dh, Dl, 16) }); - - ({ h: Ch, l: Cl } = blamka(Ch, Cl, Dh, Dl)); - ({ Bh, Bl } = { Bh: Bh ^ Ch, Bl: Bl ^ Cl }); - ({ Bh, Bl } = { Bh: rotrBH(Bh, Bl, 63), Bl: rotrBL(Bh, Bl, 63) }); - - (BUF[2 * a] = Al), (BUF[2 * a + 1] = Ah); - (BUF[2 * b] = Bl), (BUF[2 * b + 1] = Bh); - (BUF[2 * c] = Cl), (BUF[2 * c + 1] = Ch); - (BUF[2 * d] = Dl), (BUF[2 * d + 1] = Dh); -} - -// prettier-ignore -function P( - v00: number, v01: number, v02: number, v03: number, v04: number, v05: number, v06: number, v07: number, - v08: number, v09: number, v10: number, v11: number, v12: number, v13: number, v14: number, v15: number, -) { - G(v00, v04, v08, v12); - G(v01, v05, v09, v13); - G(v02, v06, v10, v14); - G(v03, v07, v11, v15); - G(v00, v05, v10, v15); - G(v01, v06, v11, v12); - G(v02, v07, v08, v13); - G(v03, v04, v09, v14); -} - -function block(x: Uint32Array, xPos: number, yPos: number, outPos: number, needXor: boolean) { - for (let i = 0; i < 256; i++) BUF[i] = x[xPos + i] ^ x[yPos + i]; - - // columns - for (let i = 0; i < 128; i += 16) { - // prettier-ignore - P( - i, i + 1, i + 2, i + 3, i + 4, i + 5, i + 6, i + 7, - i + 8, i + 9, i + 10, i + 11, i + 12, i + 13, i + 14, i + 15 - ); - } - // rows - for (let i = 0; i < 16; i += 2) { - // prettier-ignore - P( - i, i + 1, i + 16, i + 17, i + 32, i + 33, i + 48, i + 49, - i + 64, i + 65, i + 80, i + 81, i + 96, i + 97, i + 112, i + 113 - ); - } - - if (needXor) for (let i = 0; i < 256; i++) x[outPos + i] ^= BUF[i] ^ x[xPos + i] ^ x[yPos + i]; - else for (let i = 0; i < 256; i++) x[outPos + i] = BUF[i] ^ x[xPos + i] ^ x[yPos + i]; -} - -// Variable-Length Hash Function H' -function Hp(A: Uint32Array, dkLen: number) { - const A8 = u8(A); - const T = new Uint32Array(1); - const T8 = u8(T); - T[0] = dkLen; - // Fast path - if (dkLen <= 64) return blake2b.create({ dkLen }).update(T8).update(A8).digest(); - const out = new Uint8Array(dkLen); - let V = blake2b.create({}).update(T8).update(A8).digest(); - let pos = 0; - // First block - out.set(V.subarray(0, 32)); - pos += 32; - // Rest blocks - for (; dkLen - pos > 64; pos += 32) out.set((V = blake2b(V)).subarray(0, 32), pos); - // Last block - out.set(blake2b(V, { dkLen: dkLen - pos }), pos); - return u32(out); -} - -function indexAlpha( - r: number, - s: number, - laneLen: number, - segmentLen: number, - index: number, - randL: number, - sameLane: boolean = false -) { - let area; - if (0 == r) { - if (0 == s) area = index - 1; - else if (sameLane) area = s * segmentLen + index - 1; - else area = s * segmentLen + (index == 0 ? -1 : 0); - } else if (sameLane) area = laneLen - segmentLen + index - 1; - else area = laneLen - segmentLen + (index == 0 ? -1 : 0); - const startPos = r !== 0 && s !== ARGON2_SYNC_POINTS - 1 ? (s + 1) * segmentLen : 0; - const rel = relPos(area, randL); - // NOTE: check about overflows here - // absPos = (startPos + relPos) % laneLength; - return (startPos + rel) % laneLen; -} - -// RFC 9106 -export type ArgonOpts = { - t: number; // Time cost, iterations count - m: number; // Memory cost (in KB) - p: number; // Parallelization parameter - version?: number; // Default: 0x13 (19) - key?: Input; // Optional key - personalization?: Input; // Optional arbitrary extra data - dkLen?: number; // Desired number of returned bytes - asyncTick?: number; // Maximum time in ms for which async function can block execution - maxmem?: number; - onProgress?: (progress: number) => void; -}; - -function argon2Init(type: Types, password: Input, salt: Input, opts: ArgonOpts) { - password = toBytes(password); - salt = toBytes(salt); - let { p, dkLen, m, t, version, key, personalization, maxmem, onProgress } = { - ...opts, - version: opts.version || 0x13, - dkLen: opts.dkLen || 32, - maxmem: 2 ** 32, - }; - // Validation - assertNumber(p); - assertNumber(dkLen); - assertNumber(m); - assertNumber(t); - assertNumber(version); - if (dkLen < 4 || dkLen >= 2 ** 32) throw new Error('Argon2: dkLen should be at least 4 bytes'); - if (p < 1 || p >= 2 ** 32) throw new Error('Argon2: p (parallelism) should be at least 1'); - if (t < 1 || t >= 2 ** 32) throw new Error('Argon2: t (iterations) should be at least 1'); - if (m < 8 * p) throw new Error(`Argon2: memory should be at least 8*p bytes`); - if (version !== 16 && version !== 19) throw new Error(`Argon2: unknown version=${version}`); - password = toBytes(password); - if (password.length < 0 || password.length >= 2 ** 32) - throw new Error('Argon2: password should be less than 4 GB'); - salt = toBytes(salt); - if (salt.length < 8) throw new Error('Argon2: salt should be at least 8 bytes'); - key = toBytesOptional(key); - personalization = toBytesOptional(personalization); - if (onProgress !== undefined && typeof onProgress !== 'function') - throw new Error('progressCb should be function'); - // Params - const lanes = p; - // m' = 4 * p * floor (m / 4p) - const mP = 4 * p * Math.floor(m / (ARGON2_SYNC_POINTS * p)); - //q = m' / p columns - const laneLen = Math.floor(mP / p); - const segmentLen = Math.floor(laneLen / ARGON2_SYNC_POINTS); - // H0 - const h = blake2b.create({}); - const BUF = new Uint32Array(1); - const BUF8 = u8(BUF); - for (const i of [p, dkLen, m, t, version, type]) { - if (i < 0 || i >= 2 ** 32) throw new Error(`Argon2: wrong parameter=${i}, expected uint32`); - BUF[0] = i; - h.update(BUF8); - } - for (let i of [password, salt, key, personalization]) { - BUF[0] = i.length; - h.update(BUF8).update(i); - } - const H0 = new Uint32Array(18); - const H0_8 = u8(H0); - h.digestInto(H0_8); - - // 256 u32 = 1024 (BLOCK_SIZE) - const memUsed = mP * 256; - if (memUsed < 0 || memUsed >= 2 ** 32 || memUsed > maxmem) { - throw new Error( - `Argon2: wrong params (memUsed=${memUsed} maxmem=${maxmem}), should be less than 2**32` - ); - } - const B = new Uint32Array(memUsed); - // Fill first blocks - for (let l = 0; l < p; l++) { - const i = 256 * laneLen * l; - // B[i][0] = H'^(1024)(H_0 || LE32(0) || LE32(i)) - H0[17] = l; - H0[16] = 0; - B.set(Hp(H0, 1024), i); - // B[i][1] = H'^(1024)(H_0 || LE32(1) || LE32(i)) - H0[16] = 1; - B.set(Hp(H0, 1024), i + 256); - } - let perBlock = () => {}; - if (onProgress) { - const totalBlock = t * ARGON2_SYNC_POINTS * p * segmentLen; - // Invoke callback if progress changes from 10.01 to 10.02 - // Allows to draw smooth progress bar on up to 8K screen - const callbackPer = Math.max(Math.floor(totalBlock / 10000), 1); - let blockCnt = 0; - perBlock = () => { - blockCnt++; - if (onProgress && (!(blockCnt % callbackPer) || blockCnt === totalBlock)) - onProgress(blockCnt / totalBlock); - }; - } - return { type, mP, p, t, version, B, laneLen, lanes, segmentLen, dkLen, perBlock }; -} - -function argon2Output(B: Uint32Array, p: number, laneLen: number, dkLen: number) { - const B_final = new Uint32Array(256); - for (let l = 0; l < p; l++) - for (let j = 0; j < 256; j++) B_final[j] ^= B[256 * (laneLen * l + laneLen - 1) + j]; - return u8(Hp(B_final, dkLen)); -} - -function processBlock( - B: Uint32Array, - address: Uint32Array, - l: number, - r: number, - s: number, - index: number, - laneLen: number, - segmentLen: number, - lanes: number, - offset: number, - prev: number, - dataIndependent: boolean, - needXor: boolean -) { - if (offset % laneLen) prev = offset - 1; - let randL, randH; - if (dataIndependent) { - if (index % 128 === 0) { - address[256 + 12]++; - block(address, 256, 2 * 256, 0, false); - block(address, 0, 2 * 256, 0, false); - } - randL = address[2 * (index % 128)]; - randH = address[2 * (index % 128) + 1]; - } else { - const T = 256 * prev; - randL = B[T]; - randH = B[T + 1]; - } - // address block - const refLane = r === 0 && s === 0 ? l : randH % lanes; - const refPos = indexAlpha(r, s, laneLen, segmentLen, index, randL, refLane == l); - const refBlock = laneLen * refLane + refPos; - // B[i][j] = G(B[i][j-1], B[l][z]) - block(B, 256 * prev, 256 * refBlock, offset * 256, needXor); -} - -function argon2(type: Types, password: Input, salt: Input, opts: ArgonOpts) { - const { mP, p, t, version, B, laneLen, lanes, segmentLen, dkLen, perBlock } = argon2Init( - type, - password, - salt, - opts - ); - // Pre-loop setup - // [address, input, zero_block] format so we can pass single U32 to block function - const address = new Uint32Array(3 * 256); - address[256 + 6] = mP; - address[256 + 8] = t; - address[256 + 10] = type; - for (let r = 0; r < t; r++) { - const needXor = r !== 0 && version === 0x13; - address[256 + 0] = r; - for (let s = 0; s < ARGON2_SYNC_POINTS; s++) { - address[256 + 4] = s; - const dataIndependent = type == Types.Argon2i || (type == Types.Argon2id && r === 0 && s < 2); - for (let l = 0; l < p; l++) { - address[256 + 2] = l; - address[256 + 12] = 0; - let startPos = 0; - if (r === 0 && s === 0) { - startPos = 2; - if (dataIndependent) { - address[256 + 12]++; - block(address, 256, 2 * 256, 0, false); - block(address, 0, 2 * 256, 0, false); - } - } - // current block postion - let offset = l * laneLen + s * segmentLen + startPos; - // previous block position - let prev = offset % laneLen ? offset - 1 : offset + laneLen - 1; - for (let index = startPos; index < segmentLen; index++, offset++, prev++) { - perBlock(); - processBlock( - B, - address, - l, - r, - s, - index, - laneLen, - segmentLen, - lanes, - offset, - prev, - dataIndependent, - needXor - ); - } - } - } - } - return argon2Output(B, p, laneLen, dkLen); -} - -export const argon2d = (password: Input, salt: Input, opts: ArgonOpts) => - argon2(Types.Argond2d, password, salt, opts); -export const argon2i = (password: Input, salt: Input, opts: ArgonOpts) => - argon2(Types.Argon2i, password, salt, opts); -export const argon2id = (password: Input, salt: Input, opts: ArgonOpts) => - argon2(Types.Argon2id, password, salt, opts); diff --git a/node_modules/@noble/hashes/src/blake2b.ts b/node_modules/@noble/hashes/src/blake2b.ts deleted file mode 100644 index 57847424..00000000 --- a/node_modules/@noble/hashes/src/blake2b.ts +++ /dev/null @@ -1,205 +0,0 @@ -import { BLAKE2, BlakeOpts, SIGMA } from './_blake2.js'; -import u64 from './_u64.js'; -import { toBytes, u32, wrapConstructorWithOpts } from './utils.js'; - -// Same as SHA-512 but LE -// prettier-ignore -const IV = /* @__PURE__ */ new Uint32Array([ - 0xf3bcc908, 0x6a09e667, 0x84caa73b, 0xbb67ae85, 0xfe94f82b, 0x3c6ef372, 0x5f1d36f1, 0xa54ff53a, - 0xade682d1, 0x510e527f, 0x2b3e6c1f, 0x9b05688c, 0xfb41bd6b, 0x1f83d9ab, 0x137e2179, 0x5be0cd19 -]); -// Temporary buffer -const BUF = /* @__PURE__ */ new Uint32Array(32); - -// Mixing function G splitted in two halfs -function G1(a: number, b: number, c: number, d: number, msg: Uint32Array, x: number) { - // NOTE: V is LE here - const Xl = msg[x], Xh = msg[x + 1]; // prettier-ignore - let Al = BUF[2 * a], Ah = BUF[2 * a + 1]; // prettier-ignore - let Bl = BUF[2 * b], Bh = BUF[2 * b + 1]; // prettier-ignore - let Cl = BUF[2 * c], Ch = BUF[2 * c + 1]; // prettier-ignore - let Dl = BUF[2 * d], Dh = BUF[2 * d + 1]; // prettier-ignore - // v[a] = (v[a] + v[b] + x) | 0; - let ll = u64.add3L(Al, Bl, Xl); - Ah = u64.add3H(ll, Ah, Bh, Xh); - Al = ll | 0; - // v[d] = rotr(v[d] ^ v[a], 32) - ({ Dh, Dl } = { Dh: Dh ^ Ah, Dl: Dl ^ Al }); - ({ Dh, Dl } = { Dh: u64.rotr32H(Dh, Dl), Dl: u64.rotr32L(Dh, Dl) }); - // v[c] = (v[c] + v[d]) | 0; - ({ h: Ch, l: Cl } = u64.add(Ch, Cl, Dh, Dl)); - // v[b] = rotr(v[b] ^ v[c], 24) - ({ Bh, Bl } = { Bh: Bh ^ Ch, Bl: Bl ^ Cl }); - ({ Bh, Bl } = { Bh: u64.rotrSH(Bh, Bl, 24), Bl: u64.rotrSL(Bh, Bl, 24) }); - (BUF[2 * a] = Al), (BUF[2 * a + 1] = Ah); - (BUF[2 * b] = Bl), (BUF[2 * b + 1] = Bh); - (BUF[2 * c] = Cl), (BUF[2 * c + 1] = Ch); - (BUF[2 * d] = Dl), (BUF[2 * d + 1] = Dh); -} - -function G2(a: number, b: number, c: number, d: number, msg: Uint32Array, x: number) { - // NOTE: V is LE here - const Xl = msg[x], Xh = msg[x + 1]; // prettier-ignore - let Al = BUF[2 * a], Ah = BUF[2 * a + 1]; // prettier-ignore - let Bl = BUF[2 * b], Bh = BUF[2 * b + 1]; // prettier-ignore - let Cl = BUF[2 * c], Ch = BUF[2 * c + 1]; // prettier-ignore - let Dl = BUF[2 * d], Dh = BUF[2 * d + 1]; // prettier-ignore - // v[a] = (v[a] + v[b] + x) | 0; - let ll = u64.add3L(Al, Bl, Xl); - Ah = u64.add3H(ll, Ah, Bh, Xh); - Al = ll | 0; - // v[d] = rotr(v[d] ^ v[a], 16) - ({ Dh, Dl } = { Dh: Dh ^ Ah, Dl: Dl ^ Al }); - ({ Dh, Dl } = { Dh: u64.rotrSH(Dh, Dl, 16), Dl: u64.rotrSL(Dh, Dl, 16) }); - // v[c] = (v[c] + v[d]) | 0; - ({ h: Ch, l: Cl } = u64.add(Ch, Cl, Dh, Dl)); - // v[b] = rotr(v[b] ^ v[c], 63) - ({ Bh, Bl } = { Bh: Bh ^ Ch, Bl: Bl ^ Cl }); - ({ Bh, Bl } = { Bh: u64.rotrBH(Bh, Bl, 63), Bl: u64.rotrBL(Bh, Bl, 63) }); - (BUF[2 * a] = Al), (BUF[2 * a + 1] = Ah); - (BUF[2 * b] = Bl), (BUF[2 * b + 1] = Bh); - (BUF[2 * c] = Cl), (BUF[2 * c + 1] = Ch); - (BUF[2 * d] = Dl), (BUF[2 * d + 1] = Dh); -} - -class BLAKE2b extends BLAKE2 { - // Same as SHA-512, but LE - private v0l = IV[0] | 0; - private v0h = IV[1] | 0; - private v1l = IV[2] | 0; - private v1h = IV[3] | 0; - private v2l = IV[4] | 0; - private v2h = IV[5] | 0; - private v3l = IV[6] | 0; - private v3h = IV[7] | 0; - private v4l = IV[8] | 0; - private v4h = IV[9] | 0; - private v5l = IV[10] | 0; - private v5h = IV[11] | 0; - private v6l = IV[12] | 0; - private v6h = IV[13] | 0; - private v7l = IV[14] | 0; - private v7h = IV[15] | 0; - - constructor(opts: BlakeOpts = {}) { - super(128, opts.dkLen === undefined ? 64 : opts.dkLen, opts, 64, 16, 16); - const keyLength = opts.key ? opts.key.length : 0; - this.v0l ^= this.outputLen | (keyLength << 8) | (0x01 << 16) | (0x01 << 24); - if (opts.salt) { - const salt = u32(toBytes(opts.salt)); - this.v4l ^= salt[0]; - this.v4h ^= salt[1]; - this.v5l ^= salt[2]; - this.v5h ^= salt[3]; - } - if (opts.personalization) { - const pers = u32(toBytes(opts.personalization)); - this.v6l ^= pers[0]; - this.v6h ^= pers[1]; - this.v7l ^= pers[2]; - this.v7h ^= pers[3]; - } - if (opts.key) { - // Pad to blockLen and update - const tmp = new Uint8Array(this.blockLen); - tmp.set(toBytes(opts.key)); - this.update(tmp); - } - } - // prettier-ignore - protected get(): [ - number, number, number, number, number, number, number, number, - number, number, number, number, number, number, number, number - ] { - let {v0l, v0h, v1l, v1h, v2l, v2h, v3l, v3h, v4l, v4h, v5l, v5h, v6l, v6h, v7l, v7h} = this; - return [v0l, v0h, v1l, v1h, v2l, v2h, v3l, v3h, v4l, v4h, v5l, v5h, v6l, v6h, v7l, v7h]; - } - // prettier-ignore - protected set( - v0l: number, v0h: number, v1l: number, v1h: number, - v2l: number, v2h: number, v3l: number, v3h: number, - v4l: number, v4h: number, v5l: number, v5h: number, - v6l: number, v6h: number, v7l: number, v7h: number - ) { - this.v0l = v0l | 0; - this.v0h = v0h | 0; - this.v1l = v1l | 0; - this.v1h = v1h | 0; - this.v2l = v2l | 0; - this.v2h = v2h | 0; - this.v3l = v3l | 0; - this.v3h = v3h | 0; - this.v4l = v4l | 0; - this.v4h = v4h | 0; - this.v5l = v5l | 0; - this.v5h = v5h | 0; - this.v6l = v6l | 0; - this.v6h = v6h | 0; - this.v7l = v7l | 0; - this.v7h = v7h | 0; - } - protected compress(msg: Uint32Array, offset: number, isLast: boolean) { - this.get().forEach((v, i) => (BUF[i] = v)); // First half from state. - BUF.set(IV, 16); // Second half from IV. - let { h, l } = u64.fromBig(BigInt(this.length)); - BUF[24] = IV[8] ^ l; // Low word of the offset. - BUF[25] = IV[9] ^ h; // High word. - // Invert all bits for last block - if (isLast) { - BUF[28] = ~BUF[28]; - BUF[29] = ~BUF[29]; - } - let j = 0; - const s = SIGMA; - for (let i = 0; i < 12; i++) { - G1(0, 4, 8, 12, msg, offset + 2 * s[j++]); - G2(0, 4, 8, 12, msg, offset + 2 * s[j++]); - G1(1, 5, 9, 13, msg, offset + 2 * s[j++]); - G2(1, 5, 9, 13, msg, offset + 2 * s[j++]); - G1(2, 6, 10, 14, msg, offset + 2 * s[j++]); - G2(2, 6, 10, 14, msg, offset + 2 * s[j++]); - G1(3, 7, 11, 15, msg, offset + 2 * s[j++]); - G2(3, 7, 11, 15, msg, offset + 2 * s[j++]); - - G1(0, 5, 10, 15, msg, offset + 2 * s[j++]); - G2(0, 5, 10, 15, msg, offset + 2 * s[j++]); - G1(1, 6, 11, 12, msg, offset + 2 * s[j++]); - G2(1, 6, 11, 12, msg, offset + 2 * s[j++]); - G1(2, 7, 8, 13, msg, offset + 2 * s[j++]); - G2(2, 7, 8, 13, msg, offset + 2 * s[j++]); - G1(3, 4, 9, 14, msg, offset + 2 * s[j++]); - G2(3, 4, 9, 14, msg, offset + 2 * s[j++]); - } - this.v0l ^= BUF[0] ^ BUF[16]; - this.v0h ^= BUF[1] ^ BUF[17]; - this.v1l ^= BUF[2] ^ BUF[18]; - this.v1h ^= BUF[3] ^ BUF[19]; - this.v2l ^= BUF[4] ^ BUF[20]; - this.v2h ^= BUF[5] ^ BUF[21]; - this.v3l ^= BUF[6] ^ BUF[22]; - this.v3h ^= BUF[7] ^ BUF[23]; - this.v4l ^= BUF[8] ^ BUF[24]; - this.v4h ^= BUF[9] ^ BUF[25]; - this.v5l ^= BUF[10] ^ BUF[26]; - this.v5h ^= BUF[11] ^ BUF[27]; - this.v6l ^= BUF[12] ^ BUF[28]; - this.v6h ^= BUF[13] ^ BUF[29]; - this.v7l ^= BUF[14] ^ BUF[30]; - this.v7h ^= BUF[15] ^ BUF[31]; - BUF.fill(0); - } - destroy() { - this.destroyed = true; - this.buffer32.fill(0); - this.set(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); - } -} - -/** - * BLAKE2b - optimized for 64-bit platforms. JS doesn't have uint64, so it's slower than BLAKE2s. - * @param msg - message that would be hashed - * @param opts - dkLen, key, salt, personalization - */ -export const blake2b = /* @__PURE__ */ wrapConstructorWithOpts( - (opts) => new BLAKE2b(opts) -); diff --git a/node_modules/@noble/hashes/src/blake2s.ts b/node_modules/@noble/hashes/src/blake2s.ts deleted file mode 100644 index a6098861..00000000 --- a/node_modules/@noble/hashes/src/blake2s.ts +++ /dev/null @@ -1,136 +0,0 @@ -import { BLAKE2, BlakeOpts, SIGMA } from './_blake2.js'; -import { fromBig } from './_u64.js'; -import { rotr, toBytes, wrapConstructorWithOpts, u32 } from './utils.js'; - -// Initial state: -// first 32 bits of the fractional parts of the square roots of the first 8 primes 2..19) -// same as SHA-256 -// prettier-ignore -export const IV = /* @__PURE__ */new Uint32Array([0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19]); - -// Mixing function G splitted in two halfs -function G1(a: number, b: number, c: number, d: number, x: number) { - a = (a + b + x) | 0; - d = rotr(d ^ a, 16); - c = (c + d) | 0; - b = rotr(b ^ c, 12); - return { a, b, c, d }; -} - -function G2(a: number, b: number, c: number, d: number, x: number) { - a = (a + b + x) | 0; - d = rotr(d ^ a, 8); - c = (c + d) | 0; - b = rotr(b ^ c, 7); - return { a, b, c, d }; -} -// prettier-ignore -export function compress(s: Uint8Array, offset: number, msg: Uint32Array, rounds: number, - v0: number, v1: number, v2: number, v3: number, v4: number, v5: number, v6: number, v7: number, - v8: number, v9: number, v10: number, v11: number, v12: number, v13: number, v14: number, v15: number, -) { - let j = 0; - for (let i = 0; i < rounds; i++) { - ({ a: v0, b: v4, c: v8, d: v12 } = G1(v0, v4, v8, v12, msg[offset + s[j++]])); - ({ a: v0, b: v4, c: v8, d: v12 } = G2(v0, v4, v8, v12, msg[offset + s[j++]])); - ({ a: v1, b: v5, c: v9, d: v13 } = G1(v1, v5, v9, v13, msg[offset + s[j++]])); - ({ a: v1, b: v5, c: v9, d: v13 } = G2(v1, v5, v9, v13, msg[offset + s[j++]])); - ({ a: v2, b: v6, c: v10, d: v14 } = G1(v2, v6, v10, v14, msg[offset + s[j++]])); - ({ a: v2, b: v6, c: v10, d: v14 } = G2(v2, v6, v10, v14, msg[offset + s[j++]])); - ({ a: v3, b: v7, c: v11, d: v15 } = G1(v3, v7, v11, v15, msg[offset + s[j++]])); - ({ a: v3, b: v7, c: v11, d: v15 } = G2(v3, v7, v11, v15, msg[offset + s[j++]])); - - ({ a: v0, b: v5, c: v10, d: v15 } = G1(v0, v5, v10, v15, msg[offset + s[j++]])); - ({ a: v0, b: v5, c: v10, d: v15 } = G2(v0, v5, v10, v15, msg[offset + s[j++]])); - ({ a: v1, b: v6, c: v11, d: v12 } = G1(v1, v6, v11, v12, msg[offset + s[j++]])); - ({ a: v1, b: v6, c: v11, d: v12 } = G2(v1, v6, v11, v12, msg[offset + s[j++]])); - ({ a: v2, b: v7, c: v8, d: v13 } = G1(v2, v7, v8, v13, msg[offset + s[j++]])); - ({ a: v2, b: v7, c: v8, d: v13 } = G2(v2, v7, v8, v13, msg[offset + s[j++]])); - ({ a: v3, b: v4, c: v9, d: v14 } = G1(v3, v4, v9, v14, msg[offset + s[j++]])); - ({ a: v3, b: v4, c: v9, d: v14 } = G2(v3, v4, v9, v14, msg[offset + s[j++]])); - } - return { v0, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15 }; -} - -class BLAKE2s extends BLAKE2 { - // Internal state, same as SHA-256 - private v0 = IV[0] | 0; - private v1 = IV[1] | 0; - private v2 = IV[2] | 0; - private v3 = IV[3] | 0; - private v4 = IV[4] | 0; - private v5 = IV[5] | 0; - private v6 = IV[6] | 0; - private v7 = IV[7] | 0; - - constructor(opts: BlakeOpts = {}) { - super(64, opts.dkLen === undefined ? 32 : opts.dkLen, opts, 32, 8, 8); - const keyLength = opts.key ? opts.key.length : 0; - this.v0 ^= this.outputLen | (keyLength << 8) | (0x01 << 16) | (0x01 << 24); - if (opts.salt) { - const salt = u32(toBytes(opts.salt)); - this.v4 ^= salt[0]; - this.v5 ^= salt[1]; - } - if (opts.personalization) { - const pers = u32(toBytes(opts.personalization)); - this.v6 ^= pers[0]; - this.v7 ^= pers[1]; - } - if (opts.key) { - // Pad to blockLen and update - const tmp = new Uint8Array(this.blockLen); - tmp.set(toBytes(opts.key)); - this.update(tmp); - } - } - protected get(): [number, number, number, number, number, number, number, number] { - const { v0, v1, v2, v3, v4, v5, v6, v7 } = this; - return [v0, v1, v2, v3, v4, v5, v6, v7]; - } - // prettier-ignore - protected set( - v0: number, v1: number, v2: number, v3: number, v4: number, v5: number, v6: number, v7: number - ) { - this.v0 = v0 | 0; - this.v1 = v1 | 0; - this.v2 = v2 | 0; - this.v3 = v3 | 0; - this.v4 = v4 | 0; - this.v5 = v5 | 0; - this.v6 = v6 | 0; - this.v7 = v7 | 0; - } - protected compress(msg: Uint32Array, offset: number, isLast: boolean) { - const { h, l } = fromBig(BigInt(this.length)); - // prettier-ignore - const { v0, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15 } = - compress( - SIGMA, offset, msg, 10, - this.v0, this.v1, this.v2, this.v3, this.v4, this.v5, this.v6, this.v7, - IV[0], IV[1], IV[2], IV[3], l ^ IV[4], h ^ IV[5], isLast ? ~IV[6] : IV[6], IV[7] - ); - this.v0 ^= v0 ^ v8; - this.v1 ^= v1 ^ v9; - this.v2 ^= v2 ^ v10; - this.v3 ^= v3 ^ v11; - this.v4 ^= v4 ^ v12; - this.v5 ^= v5 ^ v13; - this.v6 ^= v6 ^ v14; - this.v7 ^= v7 ^ v15; - } - destroy() { - this.destroyed = true; - this.buffer32.fill(0); - this.set(0, 0, 0, 0, 0, 0, 0, 0); - } -} - -/** - * BLAKE2s - optimized for 32-bit platforms. JS doesn't have uint64, so it's faster than BLAKE2b. - * @param msg - message that would be hashed - * @param opts - dkLen, key, salt, personalization - */ -export const blake2s = /* @__PURE__ */ wrapConstructorWithOpts( - (opts) => new BLAKE2s(opts) -); diff --git a/node_modules/@noble/hashes/src/blake3.ts b/node_modules/@noble/hashes/src/blake3.ts deleted file mode 100644 index 01d7d544..00000000 --- a/node_modules/@noble/hashes/src/blake3.ts +++ /dev/null @@ -1,250 +0,0 @@ -import { bytes, exists, number, output } from './_assert.js'; -import { fromBig } from './_u64.js'; -import { BLAKE2 } from './_blake2.js'; -import { compress, IV } from './blake2s.js'; -import { Input, u8, u32, toBytes, HashXOF, wrapXOFConstructorWithOpts } from './utils.js'; - -// Blake3 is single-option Blake2 with reduced security (round count). - -// Flag bitset -const enum Flags { - CHUNK_START = 1 << 0, - CHUNK_END = 1 << 1, - PARENT = 1 << 2, - ROOT = 1 << 3, - KEYED_HASH = 1 << 4, - DERIVE_KEY_CONTEXT = 1 << 5, - DERIVE_KEY_MATERIAL = 1 << 6, -} - -const SIGMA: Uint8Array = /* @__PURE__ */ (() => { - const Id = Array.from({ length: 16 }, (_, i) => i); - const permute = (arr: number[]) => - [2, 6, 3, 10, 7, 0, 4, 13, 1, 11, 12, 5, 9, 14, 15, 8].map((i) => arr[i]); - const res: number[] = []; - for (let i = 0, v = Id; i < 7; i++, v = permute(v)) res.push(...v); - return Uint8Array.from(res); -})(); - -// - key: is 256-bit key -// - context: string should be hardcoded, globally unique, and application - specific. -// A good default format for the context string is "[application] [commit timestamp] [purpose]" -// - Only one of 'key' (keyed mode) or 'context' (derive key mode) can be used at same time -export type Blake3Opts = { dkLen?: number; key?: Input; context?: Input }; - -// Why is this so slow? It should be 6x faster than blake2b. -// - There is only 30% reduction in number of rounds from blake2s -// - This function uses tree mode to achive parallelisation via SIMD and threading, -// however in JS we don't have threads and SIMD, so we get only overhead from tree structure -// - It is possible to speed it up via Web Workers, hovewer it will make code singnificantly more -// complicated, which we are trying to avoid, since this library is intended to be used -// for cryptographic purposes. Also, parallelization happens only on chunk level (1024 bytes), -// which won't really benefit small inputs. -class BLAKE3 extends BLAKE2 implements HashXOF { - private IV: Uint32Array; - private flags = 0 | 0; - private state: Uint32Array; - private chunkPos = 0; // Position of current block in chunk - private chunksDone = 0; // How many chunks we already have - private stack: Uint32Array[] = []; - // Output - private posOut = 0; - private bufferOut32 = new Uint32Array(16); - private bufferOut: Uint8Array; - private chunkOut = 0; // index of output chunk - private enableXOF = true; - - constructor(opts: Blake3Opts = {}, flags = 0) { - super(64, opts.dkLen === undefined ? 32 : opts.dkLen, {}, Number.MAX_SAFE_INTEGER, 0, 0); - this.outputLen = opts.dkLen === undefined ? 32 : opts.dkLen; - number(this.outputLen); - if (opts.key !== undefined && opts.context !== undefined) - throw new Error('Blake3: only key or context can be specified at same time'); - else if (opts.key !== undefined) { - const key = toBytes(opts.key).slice(); - if (key.length !== 32) throw new Error('Blake3: key should be 32 byte'); - this.IV = u32(key); - this.flags = flags | Flags.KEYED_HASH; - } else if (opts.context !== undefined) { - const context_key = new BLAKE3({ dkLen: 32 }, Flags.DERIVE_KEY_CONTEXT) - .update(opts.context) - .digest(); - this.IV = u32(context_key); - this.flags = flags | Flags.DERIVE_KEY_MATERIAL; - } else { - this.IV = IV.slice(); - this.flags = flags; - } - this.state = this.IV.slice(); - this.bufferOut = u8(this.bufferOut32); - } - // Unused - protected get() { - return []; - } - protected set() {} - private b2Compress(counter: number, flags: number, buf: Uint32Array, bufPos: number = 0) { - const { state: s, pos } = this; - const { h, l } = fromBig(BigInt(counter), true); - // prettier-ignore - const { v0, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15 } = - compress( - SIGMA, bufPos, buf, 7, - s[0], s[1], s[2], s[3], s[4], s[5], s[6], s[7], - IV[0], IV[1], IV[2], IV[3], h, l, pos, flags - ); - s[0] = v0 ^ v8; - s[1] = v1 ^ v9; - s[2] = v2 ^ v10; - s[3] = v3 ^ v11; - s[4] = v4 ^ v12; - s[5] = v5 ^ v13; - s[6] = v6 ^ v14; - s[7] = v7 ^ v15; - } - protected compress(buf: Uint32Array, bufPos: number = 0, isLast: boolean = false) { - // Compress last block - let flags = this.flags; - if (!this.chunkPos) flags |= Flags.CHUNK_START; - if (this.chunkPos === 15 || isLast) flags |= Flags.CHUNK_END; - if (!isLast) this.pos = this.blockLen; - this.b2Compress(this.chunksDone, flags, buf, bufPos); - this.chunkPos += 1; - // If current block is last in chunk (16 blocks), then compress chunks - if (this.chunkPos === 16 || isLast) { - let chunk = this.state; - this.state = this.IV.slice(); - // If not the last one, compress only when there are trailing zeros in chunk counter - // chunks used as binary tree where current stack is path. Zero means current leaf is finished and can be compressed. - // 1 (001) - leaf not finished (just push current chunk to stack) - // 2 (010) - leaf finished at depth=1 (merge with last elm on stack and push back) - // 3 (011) - last leaf not finished - // 4 (100) - leafs finished at depth=1 and depth=2 - for (let last, chunks = this.chunksDone + 1; isLast || !(chunks & 1); chunks >>= 1) { - if (!(last = this.stack.pop())) break; - this.buffer32.set(last, 0); - this.buffer32.set(chunk, 8); - this.pos = this.blockLen; - this.b2Compress(0, this.flags | Flags.PARENT, this.buffer32, 0); - chunk = this.state; - this.state = this.IV.slice(); - } - this.chunksDone++; - this.chunkPos = 0; - this.stack.push(chunk); - } - this.pos = 0; - } - _cloneInto(to?: BLAKE3): BLAKE3 { - to = super._cloneInto(to) as BLAKE3; - const { IV, flags, state, chunkPos, posOut, chunkOut, stack, chunksDone } = this; - to.state.set(state.slice()); - to.stack = stack.map((i) => Uint32Array.from(i)); - to.IV.set(IV); - to.flags = flags; - to.chunkPos = chunkPos; - to.chunksDone = chunksDone; - to.posOut = posOut; - to.chunkOut = chunkOut; - to.enableXOF = this.enableXOF; - to.bufferOut32.set(this.bufferOut32); - return to; - } - destroy() { - this.destroyed = true; - this.state.fill(0); - this.buffer32.fill(0); - this.IV.fill(0); - this.bufferOut32.fill(0); - for (let i of this.stack) i.fill(0); - } - // Same as b2Compress, but doesn't modify state and returns 16 u32 array (instead of 8) - private b2CompressOut() { - const { state: s, pos, flags, buffer32, bufferOut32: out32 } = this; - const { h, l } = fromBig(BigInt(this.chunkOut++)); - // prettier-ignore - const { v0, v1, v2, v3, v4, v5, v6, v7, v8, v9, v10, v11, v12, v13, v14, v15 } = - compress( - SIGMA, 0, buffer32, 7, - s[0], s[1], s[2], s[3], s[4], s[5], s[6], s[7], - IV[0], IV[1], IV[2], IV[3], l, h, pos, flags - ); - out32[0] = v0 ^ v8; - out32[1] = v1 ^ v9; - out32[2] = v2 ^ v10; - out32[3] = v3 ^ v11; - out32[4] = v4 ^ v12; - out32[5] = v5 ^ v13; - out32[6] = v6 ^ v14; - out32[7] = v7 ^ v15; - out32[8] = s[0] ^ v8; - out32[9] = s[1] ^ v9; - out32[10] = s[2] ^ v10; - out32[11] = s[3] ^ v11; - out32[12] = s[4] ^ v12; - out32[13] = s[5] ^ v13; - out32[14] = s[6] ^ v14; - out32[15] = s[7] ^ v15; - this.posOut = 0; - } - protected finish() { - if (this.finished) return; - this.finished = true; - // Padding - this.buffer.fill(0, this.pos); - // Process last chunk - let flags = this.flags | Flags.ROOT; - if (this.stack.length) { - flags |= Flags.PARENT; - this.compress(this.buffer32, 0, true); - this.chunksDone = 0; - this.pos = this.blockLen; - } else { - flags |= (!this.chunkPos ? Flags.CHUNK_START : 0) | Flags.CHUNK_END; - } - this.flags = flags; - this.b2CompressOut(); - } - private writeInto(out: Uint8Array) { - exists(this, false); - bytes(out); - this.finish(); - const { blockLen, bufferOut } = this; - for (let pos = 0, len = out.length; pos < len; ) { - if (this.posOut >= blockLen) this.b2CompressOut(); - const take = Math.min(blockLen - this.posOut, len - pos); - out.set(bufferOut.subarray(this.posOut, this.posOut + take), pos); - this.posOut += take; - pos += take; - } - return out; - } - xofInto(out: Uint8Array): Uint8Array { - if (!this.enableXOF) throw new Error('XOF is not possible after digest call'); - return this.writeInto(out); - } - xof(bytes: number): Uint8Array { - number(bytes); - return this.xofInto(new Uint8Array(bytes)); - } - digestInto(out: Uint8Array) { - output(out, this); - if (this.finished) throw new Error('digest() was already called'); - this.enableXOF = false; - this.writeInto(out); - this.destroy(); - return out; - } - digest() { - return this.digestInto(new Uint8Array(this.outputLen)); - } -} - -/** - * BLAKE3 hash function. - * @param msg - message that would be hashed - * @param opts - dkLen, key, context - */ -export const blake3 = /* @__PURE__ */ wrapXOFConstructorWithOpts( - (opts) => new BLAKE3(opts) -); diff --git a/node_modules/@noble/hashes/src/crypto.ts b/node_modules/@noble/hashes/src/crypto.ts deleted file mode 100644 index eaea6bef..00000000 --- a/node_modules/@noble/hashes/src/crypto.ts +++ /dev/null @@ -1,5 +0,0 @@ -// We use WebCrypto aka globalThis.crypto, which exists in browsers and node.js 16+. -// See utils.ts for details. -declare const globalThis: Record | undefined; -export const crypto = - typeof globalThis === 'object' && 'crypto' in globalThis ? globalThis.crypto : undefined; diff --git a/node_modules/@noble/hashes/src/cryptoNode.ts b/node_modules/@noble/hashes/src/cryptoNode.ts deleted file mode 100644 index 6fdba9ec..00000000 --- a/node_modules/@noble/hashes/src/cryptoNode.ts +++ /dev/null @@ -1,7 +0,0 @@ -// We use WebCrypto aka globalThis.crypto, which exists in browsers and node.js 16+. -// See utils.ts for details. -// The file will throw on node.js 14 and earlier. -// @ts-ignore -import * as nc from 'node:crypto'; -export const crypto = - nc && typeof nc === 'object' && 'webcrypto' in nc ? (nc.webcrypto as any) : undefined; diff --git a/node_modules/@noble/hashes/src/eskdf.ts b/node_modules/@noble/hashes/src/eskdf.ts deleted file mode 100644 index b4c224b1..00000000 --- a/node_modules/@noble/hashes/src/eskdf.ts +++ /dev/null @@ -1,183 +0,0 @@ -import { bytes as assertBytes } from './_assert.js'; -import { hkdf } from './hkdf.js'; -import { sha256 } from './sha256.js'; -import { pbkdf2 as _pbkdf2 } from './pbkdf2.js'; -import { scrypt as _scrypt } from './scrypt.js'; -import { bytesToHex, createView, hexToBytes, toBytes } from './utils.js'; - -// A tiny KDF for various applications like AES key-gen. -// Uses HKDF in a non-standard way, so it's not "KDF-secure", only "PRF-secure". -// Which is good enough: assume sha2-256 retained preimage resistance. - -const SCRYPT_FACTOR = 2 ** 19; -const PBKDF2_FACTOR = 2 ** 17; - -// Scrypt KDF -export function scrypt(password: string, salt: string): Uint8Array { - return _scrypt(password, salt, { N: SCRYPT_FACTOR, r: 8, p: 1, dkLen: 32 }); -} - -// PBKDF2-HMAC-SHA256 -export function pbkdf2(password: string, salt: string): Uint8Array { - return _pbkdf2(sha256, password, salt, { c: PBKDF2_FACTOR, dkLen: 32 }); -} - -// Combines two 32-byte byte arrays -function xor32(a: Uint8Array, b: Uint8Array): Uint8Array { - assertBytes(a, 32); - assertBytes(b, 32); - const arr = new Uint8Array(32); - for (let i = 0; i < 32; i++) { - arr[i] = a[i] ^ b[i]; - } - return arr; -} - -function strHasLength(str: string, min: number, max: number): boolean { - return typeof str === 'string' && str.length >= min && str.length <= max; -} - -/** - * Derives main seed. Takes a lot of time. Prefer `eskdf` method instead. - */ -export function deriveMainSeed(username: string, password: string): Uint8Array { - if (!strHasLength(username, 8, 255)) throw new Error('invalid username'); - if (!strHasLength(password, 8, 255)) throw new Error('invalid password'); - const scr = scrypt(password + '\u{1}', username + '\u{1}'); - const pbk = pbkdf2(password + '\u{2}', username + '\u{2}'); - const res = xor32(scr, pbk); - scr.fill(0); - pbk.fill(0); - return res; -} - -type AccountID = number | string; - -/** - * Converts protocol & accountId pair to HKDF salt & info params. - */ -function getSaltInfo(protocol: string, accountId: AccountID = 0) { - // Note that length here also repeats two lines below - // We do an additional length check here to reduce the scope of DoS attacks - if (!(strHasLength(protocol, 3, 15) && /^[a-z0-9]{3,15}$/.test(protocol))) { - throw new Error('invalid protocol'); - } - - // Allow string account ids for some protocols - const allowsStr = /^password\d{0,3}|ssh|tor|file$/.test(protocol); - let salt: Uint8Array; // Extract salt. Default is undefined. - if (typeof accountId === 'string') { - if (!allowsStr) throw new Error('accountId must be a number'); - if (!strHasLength(accountId, 1, 255)) throw new Error('accountId must be valid string'); - salt = toBytes(accountId); - } else if (Number.isSafeInteger(accountId)) { - if (accountId < 0 || accountId > 2 ** 32 - 1) throw new Error('invalid accountId'); - // Convert to Big Endian Uint32 - salt = new Uint8Array(4); - createView(salt).setUint32(0, accountId, false); - } else { - throw new Error(`accountId must be a number${allowsStr ? ' or string' : ''}`); - } - const info = toBytes(protocol); - return { salt, info }; -} - -type OptsLength = { keyLength: number }; -type OptsMod = { modulus: bigint }; -type KeyOpts = undefined | OptsLength | OptsMod; - -function countBytes(num: bigint): number { - if (typeof num !== 'bigint' || num <= BigInt(128)) throw new Error('invalid number'); - return Math.ceil(num.toString(2).length / 8); -} - -/** - * Parses keyLength and modulus options to extract length of result key. - * If modulus is used, adds 64 bits to it as per FIPS 186 B.4.1 to combat modulo bias. - */ -function getKeyLength(options: KeyOpts): number { - if (!options || typeof options !== 'object') return 32; - const hasLen = 'keyLength' in options; - const hasMod = 'modulus' in options; - if (hasLen && hasMod) throw new Error('cannot combine keyLength and modulus options'); - if (!hasLen && !hasMod) throw new Error('must have either keyLength or modulus option'); - // FIPS 186 B.4.1 requires at least 64 more bits - const l = hasMod ? countBytes(options.modulus) + 8 : options.keyLength; - if (!(typeof l === 'number' && l >= 16 && l <= 8192)) throw new Error('invalid keyLength'); - return l; -} - -/** - * Converts key to bigint and divides it by modulus. Big Endian. - * Implements FIPS 186 B.4.1, which removes 0 and modulo bias from output. - */ -function modReduceKey(key: Uint8Array, modulus: bigint): Uint8Array { - const _1 = BigInt(1); - const num = BigInt('0x' + bytesToHex(key)); // check for ui8a, then bytesToNumber() - const res = (num % (modulus - _1)) + _1; // Remove 0 from output - if (res < _1) throw new Error('expected positive number'); // Guard against bad values - const len = key.length - 8; // FIPS requires 64 more bits = 8 bytes - const hex = res.toString(16).padStart(len * 2, '0'); // numberToHex() - const bytes = hexToBytes(hex); - if (bytes.length !== len) throw new Error('invalid length of result key'); - return bytes; -} - -// We are not using classes because constructor cannot be async -type ESKDF = Promise< - Readonly<{ - /** - * Derives a child key. Child key will not be associated with any - * other child key because of properties of underlying KDF. - * - * @param protocol - 3-15 character protocol name - * @param accountId - numeric identifier of account - * @param options - `keyLength: 64` or `modulus: 41920438n` - * @example deriveChildKey('aes', 0) - */ - deriveChildKey: (protocol: string, accountId: AccountID, options?: KeyOpts) => Uint8Array; - /** - * Deletes the main seed from eskdf instance - */ - expire: () => void; - /** - * Account fingerprint - */ - fingerprint: string; - }> ->; - -/** - * ESKDF - * @param username - username, email, or identifier, min: 8 characters, should have enough entropy - * @param password - password, min: 8 characters, should have enough entropy - * @example - * const kdf = await eskdf('example-university', 'beginning-new-example'); - * const key = kdf.deriveChildKey('aes', 0); - * console.log(kdf.fingerprint); - * kdf.expire(); - */ -export async function eskdf(username: string, password: string): ESKDF { - // We are using closure + object instead of class because - // we want to make `seed` non-accessible for any external function. - let seed: Uint8Array | undefined = deriveMainSeed(username, password); - - function deriveCK(protocol: string, accountId: AccountID = 0, options?: KeyOpts): Uint8Array { - assertBytes(seed, 32); - const { salt, info } = getSaltInfo(protocol, accountId); // validate protocol & accountId - const keyLength = getKeyLength(options); // validate options - const key = hkdf(sha256, seed!, salt, info, keyLength); - // Modulus has already been validated - return options && 'modulus' in options ? modReduceKey(key, options.modulus) : key; - } - function expire() { - if (seed) seed.fill(1); - seed = undefined; - } - // prettier-ignore - const fingerprint = Array.from(deriveCK('fingerprint', 0)) - .slice(0, 6) - .map((char) => char.toString(16).padStart(2, '0').toUpperCase()) - .join(':'); - return Object.freeze({ deriveChildKey: deriveCK, expire, fingerprint }); -} diff --git a/node_modules/@noble/hashes/src/hkdf.ts b/node_modules/@noble/hashes/src/hkdf.ts deleted file mode 100644 index 6d880d1a..00000000 --- a/node_modules/@noble/hashes/src/hkdf.ts +++ /dev/null @@ -1,79 +0,0 @@ -import { hash as assertHash, number as assertNumber } from './_assert.js'; -import { CHash, Input, toBytes } from './utils.js'; -import { hmac } from './hmac.js'; - -// HKDF (RFC 5869) -// https://soatok.blog/2021/11/17/understanding-hkdf/ - -/** - * HKDF-Extract(IKM, salt) -> PRK - * Arguments position differs from spec (IKM is first one, since it is not optional) - * @param hash - * @param ikm - * @param salt - * @returns - */ -export function extract(hash: CHash, ikm: Input, salt?: Input) { - assertHash(hash); - // NOTE: some libraries treat zero-length array as 'not provided'; - // we don't, since we have undefined as 'not provided' - // https://github.com/RustCrypto/KDFs/issues/15 - if (salt === undefined) salt = new Uint8Array(hash.outputLen); // if not provided, it is set to a string of HashLen zeros - return hmac(hash, toBytes(salt), toBytes(ikm)); -} - -// HKDF-Expand(PRK, info, L) -> OKM -const HKDF_COUNTER = /* @__PURE__ */ new Uint8Array([0]); -const EMPTY_BUFFER = /* @__PURE__ */ new Uint8Array(); - -/** - * HKDF-expand from the spec. - * @param prk - a pseudorandom key of at least HashLen octets (usually, the output from the extract step) - * @param info - optional context and application specific information (can be a zero-length string) - * @param length - length of output keying material in octets - */ -export function expand(hash: CHash, prk: Input, info?: Input, length: number = 32) { - assertHash(hash); - assertNumber(length); - if (length > 255 * hash.outputLen) throw new Error('Length should be <= 255*HashLen'); - const blocks = Math.ceil(length / hash.outputLen); - if (info === undefined) info = EMPTY_BUFFER; - // first L(ength) octets of T - const okm = new Uint8Array(blocks * hash.outputLen); - // Re-use HMAC instance between blocks - const HMAC = hmac.create(hash, prk); - const HMACTmp = HMAC._cloneInto(); - const T = new Uint8Array(HMAC.outputLen); - for (let counter = 0; counter < blocks; counter++) { - HKDF_COUNTER[0] = counter + 1; - // T(0) = empty string (zero length) - // T(N) = HMAC-Hash(PRK, T(N-1) | info | N) - HMACTmp.update(counter === 0 ? EMPTY_BUFFER : T) - .update(info) - .update(HKDF_COUNTER) - .digestInto(T); - okm.set(T, hash.outputLen * counter); - HMAC._cloneInto(HMACTmp); - } - HMAC.destroy(); - HMACTmp.destroy(); - T.fill(0); - HKDF_COUNTER.fill(0); - return okm.slice(0, length); -} - -/** - * HKDF (RFC 5869): extract + expand in one step. - * @param hash - hash function that would be used (e.g. sha256) - * @param ikm - input keying material, the initial key - * @param salt - optional salt value (a non-secret random value) - * @param info - optional context and application specific information - * @param length - length of output keying material in octets - */ -export const hkdf = ( - hash: CHash, - ikm: Input, - salt: Input | undefined, - info: Input | undefined, - length: number -) => expand(hash, extract(hash, ikm, salt), info, length); diff --git a/node_modules/@noble/hashes/src/hmac.ts b/node_modules/@noble/hashes/src/hmac.ts deleted file mode 100644 index bebf4b38..00000000 --- a/node_modules/@noble/hashes/src/hmac.ts +++ /dev/null @@ -1,81 +0,0 @@ -import { hash as assertHash, bytes as assertBytes, exists as assertExists } from './_assert.js'; -import { Hash, CHash, Input, toBytes } from './utils.js'; -// HMAC (RFC 2104) -export class HMAC> extends Hash> { - oHash: T; - iHash: T; - blockLen: number; - outputLen: number; - private finished = false; - private destroyed = false; - - constructor(hash: CHash, _key: Input) { - super(); - assertHash(hash); - const key = toBytes(_key); - this.iHash = hash.create() as T; - if (typeof this.iHash.update !== 'function') - throw new Error('Expected instance of class which extends utils.Hash'); - this.blockLen = this.iHash.blockLen; - this.outputLen = this.iHash.outputLen; - const blockLen = this.blockLen; - const pad = new Uint8Array(blockLen); - // blockLen can be bigger than outputLen - pad.set(key.length > blockLen ? hash.create().update(key).digest() : key); - for (let i = 0; i < pad.length; i++) pad[i] ^= 0x36; - this.iHash.update(pad); - // By doing update (processing of first block) of outer hash here we can re-use it between multiple calls via clone - this.oHash = hash.create() as T; - // Undo internal XOR && apply outer XOR - for (let i = 0; i < pad.length; i++) pad[i] ^= 0x36 ^ 0x5c; - this.oHash.update(pad); - pad.fill(0); - } - update(buf: Input) { - assertExists(this); - this.iHash.update(buf); - return this; - } - digestInto(out: Uint8Array) { - assertExists(this); - assertBytes(out, this.outputLen); - this.finished = true; - this.iHash.digestInto(out); - this.oHash.update(out); - this.oHash.digestInto(out); - this.destroy(); - } - digest() { - const out = new Uint8Array(this.oHash.outputLen); - this.digestInto(out); - return out; - } - _cloneInto(to?: HMAC): HMAC { - // Create new instance without calling constructor since key already in state and we don't know it. - to ||= Object.create(Object.getPrototypeOf(this), {}); - const { oHash, iHash, finished, destroyed, blockLen, outputLen } = this; - to = to as this; - to.finished = finished; - to.destroyed = destroyed; - to.blockLen = blockLen; - to.outputLen = outputLen; - to.oHash = oHash._cloneInto(to.oHash); - to.iHash = iHash._cloneInto(to.iHash); - return to; - } - destroy() { - this.destroyed = true; - this.oHash.destroy(); - this.iHash.destroy(); - } -} - -/** - * HMAC: RFC2104 message authentication code. - * @param hash - function that would be used e.g. sha256 - * @param key - message key - * @param message - message data - */ -export const hmac = (hash: CHash, key: Input, message: Input): Uint8Array => - new HMAC(hash, key).update(message).digest(); -hmac.create = (hash: CHash, key: Input) => new HMAC(hash, key); diff --git a/node_modules/@noble/hashes/src/index.ts b/node_modules/@noble/hashes/src/index.ts deleted file mode 100644 index 1505776d..00000000 --- a/node_modules/@noble/hashes/src/index.ts +++ /dev/null @@ -1 +0,0 @@ -throw new Error('noble-hashes have no entry-point: consult README for usage'); diff --git a/node_modules/@noble/hashes/src/pbkdf2.ts b/node_modules/@noble/hashes/src/pbkdf2.ts deleted file mode 100644 index b5f7e6aa..00000000 --- a/node_modules/@noble/hashes/src/pbkdf2.ts +++ /dev/null @@ -1,97 +0,0 @@ -import { hash as assertHash, number as assertNumber } from './_assert.js'; -import { hmac } from './hmac.js'; -import { Hash, CHash, Input, createView, toBytes, checkOpts, asyncLoop } from './utils.js'; - -// PBKDF (RFC 2898) -export type Pbkdf2Opt = { - c: number; // Iterations - dkLen?: number; // Desired key length in bytes (Intended output length in octets of the derived key - asyncTick?: number; // Maximum time in ms for which async function can block execution -}; -// Common prologue and epilogue for sync/async functions -function pbkdf2Init(hash: CHash, _password: Input, _salt: Input, _opts: Pbkdf2Opt) { - assertHash(hash); - const opts = checkOpts({ dkLen: 32, asyncTick: 10 }, _opts); - const { c, dkLen, asyncTick } = opts; - assertNumber(c); - assertNumber(dkLen); - assertNumber(asyncTick); - if (c < 1) throw new Error('PBKDF2: iterations (c) should be >= 1'); - const password = toBytes(_password); - const salt = toBytes(_salt); - // DK = PBKDF2(PRF, Password, Salt, c, dkLen); - const DK = new Uint8Array(dkLen); - // U1 = PRF(Password, Salt + INT_32_BE(i)) - const PRF = hmac.create(hash, password); - const PRFSalt = PRF._cloneInto().update(salt); - return { c, dkLen, asyncTick, DK, PRF, PRFSalt }; -} - -function pbkdf2Output>( - PRF: Hash, - PRFSalt: Hash, - DK: Uint8Array, - prfW: Hash, - u: Uint8Array -) { - PRF.destroy(); - PRFSalt.destroy(); - if (prfW) prfW.destroy(); - u.fill(0); - return DK; -} - -/** - * PBKDF2-HMAC: RFC 2898 key derivation function - * @param hash - hash function that would be used e.g. sha256 - * @param password - password from which a derived key is generated - * @param salt - cryptographic salt - * @param opts - {c, dkLen} where c is work factor and dkLen is output message size - */ -export function pbkdf2(hash: CHash, password: Input, salt: Input, opts: Pbkdf2Opt) { - const { c, dkLen, DK, PRF, PRFSalt } = pbkdf2Init(hash, password, salt, opts); - let prfW: any; // Working copy - const arr = new Uint8Array(4); - const view = createView(arr); - const u = new Uint8Array(PRF.outputLen); - // DK = T1 + T2 + ⋯ + Tdklen/hlen - for (let ti = 1, pos = 0; pos < dkLen; ti++, pos += PRF.outputLen) { - // Ti = F(Password, Salt, c, i) - const Ti = DK.subarray(pos, pos + PRF.outputLen); - view.setInt32(0, ti, false); - // F(Password, Salt, c, i) = U1 ^ U2 ^ ⋯ ^ Uc - // U1 = PRF(Password, Salt + INT_32_BE(i)) - (prfW = PRFSalt._cloneInto(prfW)).update(arr).digestInto(u); - Ti.set(u.subarray(0, Ti.length)); - for (let ui = 1; ui < c; ui++) { - // Uc = PRF(Password, Uc−1) - PRF._cloneInto(prfW).update(u).digestInto(u); - for (let i = 0; i < Ti.length; i++) Ti[i] ^= u[i]; - } - } - return pbkdf2Output(PRF, PRFSalt, DK, prfW, u); -} - -export async function pbkdf2Async(hash: CHash, password: Input, salt: Input, opts: Pbkdf2Opt) { - const { c, dkLen, asyncTick, DK, PRF, PRFSalt } = pbkdf2Init(hash, password, salt, opts); - let prfW: any; // Working copy - const arr = new Uint8Array(4); - const view = createView(arr); - const u = new Uint8Array(PRF.outputLen); - // DK = T1 + T2 + ⋯ + Tdklen/hlen - for (let ti = 1, pos = 0; pos < dkLen; ti++, pos += PRF.outputLen) { - // Ti = F(Password, Salt, c, i) - const Ti = DK.subarray(pos, pos + PRF.outputLen); - view.setInt32(0, ti, false); - // F(Password, Salt, c, i) = U1 ^ U2 ^ ⋯ ^ Uc - // U1 = PRF(Password, Salt + INT_32_BE(i)) - (prfW = PRFSalt._cloneInto(prfW)).update(arr).digestInto(u); - Ti.set(u.subarray(0, Ti.length)); - await asyncLoop(c - 1, asyncTick, () => { - // Uc = PRF(Password, Uc−1) - PRF._cloneInto(prfW).update(u).digestInto(u); - for (let i = 0; i < Ti.length; i++) Ti[i] ^= u[i]; - }); - } - return pbkdf2Output(PRF, PRFSalt, DK, prfW, u); -} diff --git a/node_modules/@noble/hashes/src/ripemd160.ts b/node_modules/@noble/hashes/src/ripemd160.ts deleted file mode 100644 index 5f323807..00000000 --- a/node_modules/@noble/hashes/src/ripemd160.ts +++ /dev/null @@ -1,110 +0,0 @@ -import { SHA2 } from './_sha2.js'; -import { wrapConstructor } from './utils.js'; - -// https://homes.esat.kuleuven.be/~bosselae/ripemd160.html -// https://homes.esat.kuleuven.be/~bosselae/ripemd160/pdf/AB-9601/AB-9601.pdf -const Rho = /* @__PURE__ */ new Uint8Array([7, 4, 13, 1, 10, 6, 15, 3, 12, 0, 9, 5, 2, 14, 11, 8]); -const Id = /* @__PURE__ */ Uint8Array.from({ length: 16 }, (_, i) => i); -const Pi = /* @__PURE__ */ Id.map((i) => (9 * i + 5) % 16); -let idxL = [Id]; -let idxR = [Pi]; -for (let i = 0; i < 4; i++) for (let j of [idxL, idxR]) j.push(j[i].map((k) => Rho[k])); - -const shifts = /* @__PURE__ */ [ - [11, 14, 15, 12, 5, 8, 7, 9, 11, 13, 14, 15, 6, 7, 9, 8], - [12, 13, 11, 15, 6, 9, 9, 7, 12, 15, 11, 13, 7, 8, 7, 7], - [13, 15, 14, 11, 7, 7, 6, 8, 13, 14, 13, 12, 5, 5, 6, 9], - [14, 11, 12, 14, 8, 6, 5, 5, 15, 12, 15, 14, 9, 9, 8, 6], - [15, 12, 13, 13, 9, 5, 8, 6, 14, 11, 12, 11, 8, 6, 5, 5], -].map((i) => new Uint8Array(i)); -const shiftsL = /* @__PURE__ */ idxL.map((idx, i) => idx.map((j) => shifts[i][j])); -const shiftsR = /* @__PURE__ */ idxR.map((idx, i) => idx.map((j) => shifts[i][j])); -const Kl = /* @__PURE__ */ new Uint32Array([ - 0x00000000, 0x5a827999, 0x6ed9eba1, 0x8f1bbcdc, 0xa953fd4e, -]); -const Kr = /* @__PURE__ */ new Uint32Array([ - 0x50a28be6, 0x5c4dd124, 0x6d703ef3, 0x7a6d76e9, 0x00000000, -]); -// The rotate left (circular left shift) operation for uint32 -const rotl = (word: number, shift: number) => (word << shift) | (word >>> (32 - shift)); -// It's called f() in spec. -function f(group: number, x: number, y: number, z: number): number { - if (group === 0) return x ^ y ^ z; - else if (group === 1) return (x & y) | (~x & z); - else if (group === 2) return (x | ~y) ^ z; - else if (group === 3) return (x & z) | (y & ~z); - else return x ^ (y | ~z); -} -// Temporary buffer, not used to store anything between runs -const BUF = /* @__PURE__ */ new Uint32Array(16); -export class RIPEMD160 extends SHA2 { - private h0 = 0x67452301 | 0; - private h1 = 0xefcdab89 | 0; - private h2 = 0x98badcfe | 0; - private h3 = 0x10325476 | 0; - private h4 = 0xc3d2e1f0 | 0; - - constructor() { - super(64, 20, 8, true); - } - protected get(): [number, number, number, number, number] { - const { h0, h1, h2, h3, h4 } = this; - return [h0, h1, h2, h3, h4]; - } - protected set(h0: number, h1: number, h2: number, h3: number, h4: number) { - this.h0 = h0 | 0; - this.h1 = h1 | 0; - this.h2 = h2 | 0; - this.h3 = h3 | 0; - this.h4 = h4 | 0; - } - protected process(view: DataView, offset: number): void { - for (let i = 0; i < 16; i++, offset += 4) BUF[i] = view.getUint32(offset, true); - // prettier-ignore - let al = this.h0 | 0, ar = al, - bl = this.h1 | 0, br = bl, - cl = this.h2 | 0, cr = cl, - dl = this.h3 | 0, dr = dl, - el = this.h4 | 0, er = el; - - // Instead of iterating 0 to 80, we split it into 5 groups - // And use the groups in constants, functions, etc. Much simpler - for (let group = 0; group < 5; group++) { - const rGroup = 4 - group; - const hbl = Kl[group], hbr = Kr[group]; // prettier-ignore - const rl = idxL[group], rr = idxR[group]; // prettier-ignore - const sl = shiftsL[group], sr = shiftsR[group]; // prettier-ignore - for (let i = 0; i < 16; i++) { - const tl = (rotl(al + f(group, bl, cl, dl) + BUF[rl[i]] + hbl, sl[i]) + el) | 0; - al = el, el = dl, dl = rotl(cl, 10) | 0, cl = bl, bl = tl; // prettier-ignore - } - // 2 loops are 10% faster - for (let i = 0; i < 16; i++) { - const tr = (rotl(ar + f(rGroup, br, cr, dr) + BUF[rr[i]] + hbr, sr[i]) + er) | 0; - ar = er, er = dr, dr = rotl(cr, 10) | 0, cr = br, br = tr; // prettier-ignore - } - } - // Add the compressed chunk to the current hash value - this.set( - (this.h1 + cl + dr) | 0, - (this.h2 + dl + er) | 0, - (this.h3 + el + ar) | 0, - (this.h4 + al + br) | 0, - (this.h0 + bl + cr) | 0 - ); - } - protected roundClean() { - BUF.fill(0); - } - destroy() { - this.destroyed = true; - this.buffer.fill(0); - this.set(0, 0, 0, 0, 0); - } -} - -/** - * RIPEMD-160 - a hash function from 1990s. - * @param message - msg that would be hashed - */ -export const ripemd160 = /* @__PURE__ */ wrapConstructor(() => new RIPEMD160()); diff --git a/node_modules/@noble/hashes/src/scrypt.ts b/node_modules/@noble/hashes/src/scrypt.ts deleted file mode 100644 index 85b68d8b..00000000 --- a/node_modules/@noble/hashes/src/scrypt.ts +++ /dev/null @@ -1,240 +0,0 @@ -import { number as assertNumber } from './_assert.js'; -import { sha256 } from './sha256.js'; -import { pbkdf2 } from './pbkdf2.js'; -import { asyncLoop, checkOpts, Input, u32 } from './utils.js'; - -// RFC 7914 Scrypt KDF - -// Left rotate for uint32 -const rotl = (a: number, b: number) => (a << b) | (a >>> (32 - b)); - -// The main Scrypt loop: uses Salsa extensively. -// Six versions of the function were tried, this is the fastest one. -// prettier-ignore -function XorAndSalsa( - prev: Uint32Array, - pi: number, - input: Uint32Array, - ii: number, - out: Uint32Array, - oi: number -) { - // Based on https://cr.yp.to/salsa20.html - // Xor blocks - let y00 = prev[pi++] ^ input[ii++], y01 = prev[pi++] ^ input[ii++]; - let y02 = prev[pi++] ^ input[ii++], y03 = prev[pi++] ^ input[ii++]; - let y04 = prev[pi++] ^ input[ii++], y05 = prev[pi++] ^ input[ii++]; - let y06 = prev[pi++] ^ input[ii++], y07 = prev[pi++] ^ input[ii++]; - let y08 = prev[pi++] ^ input[ii++], y09 = prev[pi++] ^ input[ii++]; - let y10 = prev[pi++] ^ input[ii++], y11 = prev[pi++] ^ input[ii++]; - let y12 = prev[pi++] ^ input[ii++], y13 = prev[pi++] ^ input[ii++]; - let y14 = prev[pi++] ^ input[ii++], y15 = prev[pi++] ^ input[ii++]; - // Save state to temporary variables (salsa) - let x00 = y00, x01 = y01, x02 = y02, x03 = y03, - x04 = y04, x05 = y05, x06 = y06, x07 = y07, - x08 = y08, x09 = y09, x10 = y10, x11 = y11, - x12 = y12, x13 = y13, x14 = y14, x15 = y15; - // Main loop (salsa) - for (let i = 0; i < 8; i += 2) { - x04 ^= rotl(x00 + x12 | 0, 7); x08 ^= rotl(x04 + x00 | 0, 9); - x12 ^= rotl(x08 + x04 | 0, 13); x00 ^= rotl(x12 + x08 | 0, 18); - x09 ^= rotl(x05 + x01 | 0, 7); x13 ^= rotl(x09 + x05 | 0, 9); - x01 ^= rotl(x13 + x09 | 0, 13); x05 ^= rotl(x01 + x13 | 0, 18); - x14 ^= rotl(x10 + x06 | 0, 7); x02 ^= rotl(x14 + x10 | 0, 9); - x06 ^= rotl(x02 + x14 | 0, 13); x10 ^= rotl(x06 + x02 | 0, 18); - x03 ^= rotl(x15 + x11 | 0, 7); x07 ^= rotl(x03 + x15 | 0, 9); - x11 ^= rotl(x07 + x03 | 0, 13); x15 ^= rotl(x11 + x07 | 0, 18); - x01 ^= rotl(x00 + x03 | 0, 7); x02 ^= rotl(x01 + x00 | 0, 9); - x03 ^= rotl(x02 + x01 | 0, 13); x00 ^= rotl(x03 + x02 | 0, 18); - x06 ^= rotl(x05 + x04 | 0, 7); x07 ^= rotl(x06 + x05 | 0, 9); - x04 ^= rotl(x07 + x06 | 0, 13); x05 ^= rotl(x04 + x07 | 0, 18); - x11 ^= rotl(x10 + x09 | 0, 7); x08 ^= rotl(x11 + x10 | 0, 9); - x09 ^= rotl(x08 + x11 | 0, 13); x10 ^= rotl(x09 + x08 | 0, 18); - x12 ^= rotl(x15 + x14 | 0, 7); x13 ^= rotl(x12 + x15 | 0, 9); - x14 ^= rotl(x13 + x12 | 0, 13); x15 ^= rotl(x14 + x13 | 0, 18); - } - // Write output (salsa) - out[oi++] = (y00 + x00) | 0; out[oi++] = (y01 + x01) | 0; - out[oi++] = (y02 + x02) | 0; out[oi++] = (y03 + x03) | 0; - out[oi++] = (y04 + x04) | 0; out[oi++] = (y05 + x05) | 0; - out[oi++] = (y06 + x06) | 0; out[oi++] = (y07 + x07) | 0; - out[oi++] = (y08 + x08) | 0; out[oi++] = (y09 + x09) | 0; - out[oi++] = (y10 + x10) | 0; out[oi++] = (y11 + x11) | 0; - out[oi++] = (y12 + x12) | 0; out[oi++] = (y13 + x13) | 0; - out[oi++] = (y14 + x14) | 0; out[oi++] = (y15 + x15) | 0; -} - -function BlockMix(input: Uint32Array, ii: number, out: Uint32Array, oi: number, r: number) { - // The block B is r 128-byte chunks (which is equivalent of 2r 64-byte chunks) - let head = oi + 0; - let tail = oi + 16 * r; - for (let i = 0; i < 16; i++) out[tail + i] = input[ii + (2 * r - 1) * 16 + i]; // X ← B[2r−1] - for (let i = 0; i < r; i++, head += 16, ii += 16) { - // We write odd & even Yi at same time. Even: 0bXXXXX0 Odd: 0bXXXXX1 - XorAndSalsa(out, tail, input, ii, out, head); // head[i] = Salsa(blockIn[2*i] ^ tail[i-1]) - if (i > 0) tail += 16; // First iteration overwrites tmp value in tail - XorAndSalsa(out, head, input, (ii += 16), out, tail); // tail[i] = Salsa(blockIn[2*i+1] ^ head[i]) - } -} - -export type ScryptOpts = { - N: number; // cost factor - r: number; // block size - p: number; // parallelization - dkLen?: number; // key length - asyncTick?: number; // block execution max time - maxmem?: number; - onProgress?: (progress: number) => void; -}; - -// Common prologue and epilogue for sync/async functions -function scryptInit(password: Input, salt: Input, _opts?: ScryptOpts) { - // Maxmem - 1GB+1KB by default - const opts = checkOpts( - { - dkLen: 32, - asyncTick: 10, - maxmem: 1024 ** 3 + 1024, - }, - _opts - ); - const { N, r, p, dkLen, asyncTick, maxmem, onProgress } = opts; - assertNumber(N); - assertNumber(r); - assertNumber(p); - assertNumber(dkLen); - assertNumber(asyncTick); - assertNumber(maxmem); - if (onProgress !== undefined && typeof onProgress !== 'function') - throw new Error('progressCb should be function'); - const blockSize = 128 * r; - const blockSize32 = blockSize / 4; - if (N <= 1 || (N & (N - 1)) !== 0 || N >= 2 ** (blockSize / 8) || N > 2 ** 32) { - // NOTE: we limit N to be less than 2**32 because of 32 bit variant of Integrify function - // There is no JS engines that allows alocate more than 4GB per single Uint8Array for now, but can change in future. - throw new Error( - 'Scrypt: N must be larger than 1, a power of 2, less than 2^(128 * r / 8) and less than 2^32' - ); - } - if (p < 0 || p > ((2 ** 32 - 1) * 32) / blockSize) { - throw new Error( - 'Scrypt: p must be a positive integer less than or equal to ((2^32 - 1) * 32) / (128 * r)' - ); - } - if (dkLen < 0 || dkLen > (2 ** 32 - 1) * 32) { - throw new Error( - 'Scrypt: dkLen should be positive integer less than or equal to (2^32 - 1) * 32' - ); - } - const memUsed = blockSize * (N + p); - if (memUsed > maxmem) { - throw new Error( - `Scrypt: parameters too large, ${memUsed} (128 * r * (N + p)) > ${maxmem} (maxmem)` - ); - } - // [B0...Bp−1] ← PBKDF2HMAC-SHA256(Passphrase, Salt, 1, blockSize*ParallelizationFactor) - // Since it has only one iteration there is no reason to use async variant - const B = pbkdf2(sha256, password, salt, { c: 1, dkLen: blockSize * p }); - const B32 = u32(B); - // Re-used between parallel iterations. Array(iterations) of B - const V = u32(new Uint8Array(blockSize * N)); - const tmp = u32(new Uint8Array(blockSize)); - let blockMixCb = () => {}; - if (onProgress) { - const totalBlockMix = 2 * N * p; - // Invoke callback if progress changes from 10.01 to 10.02 - // Allows to draw smooth progress bar on up to 8K screen - const callbackPer = Math.max(Math.floor(totalBlockMix / 10000), 1); - let blockMixCnt = 0; - blockMixCb = () => { - blockMixCnt++; - if (onProgress && (!(blockMixCnt % callbackPer) || blockMixCnt === totalBlockMix)) - onProgress(blockMixCnt / totalBlockMix); - }; - } - return { N, r, p, dkLen, blockSize32, V, B32, B, tmp, blockMixCb, asyncTick }; -} - -function scryptOutput( - password: Input, - dkLen: number, - B: Uint8Array, - V: Uint32Array, - tmp: Uint32Array -) { - const res = pbkdf2(sha256, password, B, { c: 1, dkLen }); - B.fill(0); - V.fill(0); - tmp.fill(0); - return res; -} - -/** - * Scrypt KDF from RFC 7914. - * @param password - pass - * @param salt - salt - * @param opts - parameters - * - `N` is cpu/mem work factor (power of 2 e.g. 2**18) - * - `r` is block size (8 is common), fine-tunes sequential memory read size and performance - * - `p` is parallelization factor (1 is common) - * - `dkLen` is output key length in bytes e.g. 32. - * - `asyncTick` - (default: 10) max time in ms for which async function can block execution - * - `maxmem` - (default: `1024 ** 3 + 1024` aka 1GB+1KB). A limit that the app could use for scrypt - * - `onProgress` - callback function that would be executed for progress report - * @returns Derived key - */ -export function scrypt(password: Input, salt: Input, opts: ScryptOpts) { - const { N, r, p, dkLen, blockSize32, V, B32, B, tmp, blockMixCb } = scryptInit( - password, - salt, - opts - ); - for (let pi = 0; pi < p; pi++) { - const Pi = blockSize32 * pi; - for (let i = 0; i < blockSize32; i++) V[i] = B32[Pi + i]; // V[0] = B[i] - for (let i = 0, pos = 0; i < N - 1; i++) { - BlockMix(V, pos, V, (pos += blockSize32), r); // V[i] = BlockMix(V[i-1]); - blockMixCb(); - } - BlockMix(V, (N - 1) * blockSize32, B32, Pi, r); // Process last element - blockMixCb(); - for (let i = 0; i < N; i++) { - // First u32 of the last 64-byte block (u32 is LE) - const j = B32[Pi + blockSize32 - 16] % N; // j = Integrify(X) % iterations - for (let k = 0; k < blockSize32; k++) tmp[k] = B32[Pi + k] ^ V[j * blockSize32 + k]; // tmp = B ^ V[j] - BlockMix(tmp, 0, B32, Pi, r); // B = BlockMix(B ^ V[j]) - blockMixCb(); - } - } - return scryptOutput(password, dkLen, B, V, tmp); -} - -/** - * Scrypt KDF from RFC 7914. - */ -export async function scryptAsync(password: Input, salt: Input, opts: ScryptOpts) { - const { N, r, p, dkLen, blockSize32, V, B32, B, tmp, blockMixCb, asyncTick } = scryptInit( - password, - salt, - opts - ); - for (let pi = 0; pi < p; pi++) { - const Pi = blockSize32 * pi; - for (let i = 0; i < blockSize32; i++) V[i] = B32[Pi + i]; // V[0] = B[i] - let pos = 0; - await asyncLoop(N - 1, asyncTick, () => { - BlockMix(V, pos, V, (pos += blockSize32), r); // V[i] = BlockMix(V[i-1]); - blockMixCb(); - }); - BlockMix(V, (N - 1) * blockSize32, B32, Pi, r); // Process last element - blockMixCb(); - await asyncLoop(N, asyncTick, () => { - // First u32 of the last 64-byte block (u32 is LE) - const j = B32[Pi + blockSize32 - 16] % N; // j = Integrify(X) % iterations - for (let k = 0; k < blockSize32; k++) tmp[k] = B32[Pi + k] ^ V[j * blockSize32 + k]; // tmp = B ^ V[j] - BlockMix(tmp, 0, B32, Pi, r); // B = BlockMix(B ^ V[j]) - blockMixCb(); - }); - } - return scryptOutput(password, dkLen, B, V, tmp); -} diff --git a/node_modules/@noble/hashes/src/sha1.ts b/node_modules/@noble/hashes/src/sha1.ts deleted file mode 100644 index 1fec2249..00000000 --- a/node_modules/@noble/hashes/src/sha1.ts +++ /dev/null @@ -1,88 +0,0 @@ -import { SHA2 } from './_sha2.js'; -import { wrapConstructor } from './utils.js'; - -// SHA1 was cryptographically broken. -// It is still widely used in legacy apps. Don't use it for a new protocol. - -// RFC 3174 -const rotl = (word: number, shift: number) => (word << shift) | ((word >>> (32 - shift)) >>> 0); -// Choice: a ? b : c -const Chi = (a: number, b: number, c: number) => (a & b) ^ (~a & c); -// Majority function, true if any two inpust is true -const Maj = (a: number, b: number, c: number) => (a & b) ^ (a & c) ^ (b & c); - -// Initial state -const IV = /* @__PURE__ */ new Uint32Array([ - 0x67452301, 0xefcdab89, 0x98badcfe, 0x10325476, 0xc3d2e1f0, -]); - -// Temporary buffer, not used to store anything between runs -// Named this way because it matches specification. -const SHA1_W = /* @__PURE__ */ new Uint32Array(80); -class SHA1 extends SHA2 { - private A = IV[0] | 0; - private B = IV[1] | 0; - private C = IV[2] | 0; - private D = IV[3] | 0; - private E = IV[4] | 0; - - constructor() { - super(64, 20, 8, false); - } - protected get(): [number, number, number, number, number] { - const { A, B, C, D, E } = this; - return [A, B, C, D, E]; - } - protected set(A: number, B: number, C: number, D: number, E: number) { - this.A = A | 0; - this.B = B | 0; - this.C = C | 0; - this.D = D | 0; - this.E = E | 0; - } - protected process(view: DataView, offset: number): void { - for (let i = 0; i < 16; i++, offset += 4) SHA1_W[i] = view.getUint32(offset, false); - for (let i = 16; i < 80; i++) - SHA1_W[i] = rotl(SHA1_W[i - 3] ^ SHA1_W[i - 8] ^ SHA1_W[i - 14] ^ SHA1_W[i - 16], 1); - // Compression function main loop, 80 rounds - let { A, B, C, D, E } = this; - for (let i = 0; i < 80; i++) { - let F, K; - if (i < 20) { - F = Chi(B, C, D); - K = 0x5a827999; - } else if (i < 40) { - F = B ^ C ^ D; - K = 0x6ed9eba1; - } else if (i < 60) { - F = Maj(B, C, D); - K = 0x8f1bbcdc; - } else { - F = B ^ C ^ D; - K = 0xca62c1d6; - } - const T = (rotl(A, 5) + F + E + K + SHA1_W[i]) | 0; - E = D; - D = C; - C = rotl(B, 30); - B = A; - A = T; - } - // Add the compressed chunk to the current hash value - A = (A + this.A) | 0; - B = (B + this.B) | 0; - C = (C + this.C) | 0; - D = (D + this.D) | 0; - E = (E + this.E) | 0; - this.set(A, B, C, D, E); - } - protected roundClean() { - SHA1_W.fill(0); - } - destroy() { - this.set(0, 0, 0, 0, 0); - this.buffer.fill(0); - } -} - -export const sha1 = /* @__PURE__ */ wrapConstructor(() => new SHA1()); diff --git a/node_modules/@noble/hashes/src/sha256.ts b/node_modules/@noble/hashes/src/sha256.ts deleted file mode 100644 index 6f88b9a2..00000000 --- a/node_modules/@noble/hashes/src/sha256.ts +++ /dev/null @@ -1,133 +0,0 @@ -import { SHA2 } from './_sha2.js'; -import { rotr, wrapConstructor } from './utils.js'; - -// SHA2-256 need to try 2^128 hashes to execute birthday attack. -// BTC network is doing 2^67 hashes/sec as per early 2023. - -// Choice: a ? b : c -const Chi = (a: number, b: number, c: number) => (a & b) ^ (~a & c); -// Majority function, true if any two inpust is true -const Maj = (a: number, b: number, c: number) => (a & b) ^ (a & c) ^ (b & c); - -// Round constants: -// first 32 bits of the fractional parts of the cube roots of the first 64 primes 2..311) -// prettier-ignore -const SHA256_K = /* @__PURE__ */new Uint32Array([ - 0x428a2f98, 0x71374491, 0xb5c0fbcf, 0xe9b5dba5, 0x3956c25b, 0x59f111f1, 0x923f82a4, 0xab1c5ed5, - 0xd807aa98, 0x12835b01, 0x243185be, 0x550c7dc3, 0x72be5d74, 0x80deb1fe, 0x9bdc06a7, 0xc19bf174, - 0xe49b69c1, 0xefbe4786, 0x0fc19dc6, 0x240ca1cc, 0x2de92c6f, 0x4a7484aa, 0x5cb0a9dc, 0x76f988da, - 0x983e5152, 0xa831c66d, 0xb00327c8, 0xbf597fc7, 0xc6e00bf3, 0xd5a79147, 0x06ca6351, 0x14292967, - 0x27b70a85, 0x2e1b2138, 0x4d2c6dfc, 0x53380d13, 0x650a7354, 0x766a0abb, 0x81c2c92e, 0x92722c85, - 0xa2bfe8a1, 0xa81a664b, 0xc24b8b70, 0xc76c51a3, 0xd192e819, 0xd6990624, 0xf40e3585, 0x106aa070, - 0x19a4c116, 0x1e376c08, 0x2748774c, 0x34b0bcb5, 0x391c0cb3, 0x4ed8aa4a, 0x5b9cca4f, 0x682e6ff3, - 0x748f82ee, 0x78a5636f, 0x84c87814, 0x8cc70208, 0x90befffa, 0xa4506ceb, 0xbef9a3f7, 0xc67178f2 -]); - -// Initial state (first 32 bits of the fractional parts of the square roots of the first 8 primes 2..19): -// prettier-ignore -const IV = /* @__PURE__ */new Uint32Array([ - 0x6a09e667, 0xbb67ae85, 0x3c6ef372, 0xa54ff53a, 0x510e527f, 0x9b05688c, 0x1f83d9ab, 0x5be0cd19 -]); - -// Temporary buffer, not used to store anything between runs -// Named this way because it matches specification. -const SHA256_W = /* @__PURE__ */ new Uint32Array(64); -class SHA256 extends SHA2 { - // We cannot use array here since array allows indexing by variable - // which means optimizer/compiler cannot use registers. - A = IV[0] | 0; - B = IV[1] | 0; - C = IV[2] | 0; - D = IV[3] | 0; - E = IV[4] | 0; - F = IV[5] | 0; - G = IV[6] | 0; - H = IV[7] | 0; - - constructor() { - super(64, 32, 8, false); - } - protected get(): [number, number, number, number, number, number, number, number] { - const { A, B, C, D, E, F, G, H } = this; - return [A, B, C, D, E, F, G, H]; - } - // prettier-ignore - protected set( - A: number, B: number, C: number, D: number, E: number, F: number, G: number, H: number - ) { - this.A = A | 0; - this.B = B | 0; - this.C = C | 0; - this.D = D | 0; - this.E = E | 0; - this.F = F | 0; - this.G = G | 0; - this.H = H | 0; - } - protected process(view: DataView, offset: number): void { - // Extend the first 16 words into the remaining 48 words w[16..63] of the message schedule array - for (let i = 0; i < 16; i++, offset += 4) SHA256_W[i] = view.getUint32(offset, false); - for (let i = 16; i < 64; i++) { - const W15 = SHA256_W[i - 15]; - const W2 = SHA256_W[i - 2]; - const s0 = rotr(W15, 7) ^ rotr(W15, 18) ^ (W15 >>> 3); - const s1 = rotr(W2, 17) ^ rotr(W2, 19) ^ (W2 >>> 10); - SHA256_W[i] = (s1 + SHA256_W[i - 7] + s0 + SHA256_W[i - 16]) | 0; - } - // Compression function main loop, 64 rounds - let { A, B, C, D, E, F, G, H } = this; - for (let i = 0; i < 64; i++) { - const sigma1 = rotr(E, 6) ^ rotr(E, 11) ^ rotr(E, 25); - const T1 = (H + sigma1 + Chi(E, F, G) + SHA256_K[i] + SHA256_W[i]) | 0; - const sigma0 = rotr(A, 2) ^ rotr(A, 13) ^ rotr(A, 22); - const T2 = (sigma0 + Maj(A, B, C)) | 0; - H = G; - G = F; - F = E; - E = (D + T1) | 0; - D = C; - C = B; - B = A; - A = (T1 + T2) | 0; - } - // Add the compressed chunk to the current hash value - A = (A + this.A) | 0; - B = (B + this.B) | 0; - C = (C + this.C) | 0; - D = (D + this.D) | 0; - E = (E + this.E) | 0; - F = (F + this.F) | 0; - G = (G + this.G) | 0; - H = (H + this.H) | 0; - this.set(A, B, C, D, E, F, G, H); - } - protected roundClean() { - SHA256_W.fill(0); - } - destroy() { - this.set(0, 0, 0, 0, 0, 0, 0, 0); - this.buffer.fill(0); - } -} -// Constants from https://nvlpubs.nist.gov/nistpubs/FIPS/NIST.FIPS.180-4.pdf -class SHA224 extends SHA256 { - A = 0xc1059ed8 | 0; - B = 0x367cd507 | 0; - C = 0x3070dd17 | 0; - D = 0xf70e5939 | 0; - E = 0xffc00b31 | 0; - F = 0x68581511 | 0; - G = 0x64f98fa7 | 0; - H = 0xbefa4fa4 | 0; - constructor() { - super(); - this.outputLen = 28; - } -} - -/** - * SHA2-256 hash function - * @param message - data that would be hashed - */ -export const sha256 = /* @__PURE__ */ wrapConstructor(() => new SHA256()); -export const sha224 = /* @__PURE__ */ wrapConstructor(() => new SHA224()); diff --git a/node_modules/@noble/hashes/src/sha3-addons.ts b/node_modules/@noble/hashes/src/sha3-addons.ts deleted file mode 100644 index 1d5fbf9a..00000000 --- a/node_modules/@noble/hashes/src/sha3-addons.ts +++ /dev/null @@ -1,398 +0,0 @@ -import { number as assertNumber } from './_assert.js'; -import { Input, toBytes, wrapConstructorWithOpts, u32, Hash, HashXOF } from './utils.js'; -import { Keccak, ShakeOpts } from './sha3.js'; -// cSHAKE && KMAC (NIST SP800-185) -function leftEncode(n: number): Uint8Array { - const res = [n & 0xff]; - n >>= 8; - for (; n > 0; n >>= 8) res.unshift(n & 0xff); - res.unshift(res.length); - return new Uint8Array(res); -} - -function rightEncode(n: number): Uint8Array { - const res = [n & 0xff]; - n >>= 8; - for (; n > 0; n >>= 8) res.unshift(n & 0xff); - res.push(res.length); - return new Uint8Array(res); -} - -function chooseLen(opts: ShakeOpts, outputLen: number): number { - return opts.dkLen === undefined ? outputLen : opts.dkLen; -} - -const toBytesOptional = (buf?: Input) => (buf !== undefined ? toBytes(buf) : new Uint8Array([])); -// NOTE: second modulo is necessary since we don't need to add padding if current element takes whole block -const getPadding = (len: number, block: number) => new Uint8Array((block - (len % block)) % block); -export type cShakeOpts = ShakeOpts & { personalization?: Input; NISTfn?: Input }; - -// Personalization -function cshakePers(hash: Keccak, opts: cShakeOpts = {}): Keccak { - if (!opts || (!opts.personalization && !opts.NISTfn)) return hash; - // Encode and pad inplace to avoid unneccesary memory copies/slices (so we don't need to zero them later) - // bytepad(encode_string(N) || encode_string(S), 168) - const blockLenBytes = leftEncode(hash.blockLen); - const fn = toBytesOptional(opts.NISTfn); - const fnLen = leftEncode(8 * fn.length); // length in bits - const pers = toBytesOptional(opts.personalization); - const persLen = leftEncode(8 * pers.length); // length in bits - if (!fn.length && !pers.length) return hash; - hash.suffix = 0x04; - hash.update(blockLenBytes).update(fnLen).update(fn).update(persLen).update(pers); - let totalLen = blockLenBytes.length + fnLen.length + fn.length + persLen.length + pers.length; - hash.update(getPadding(totalLen, hash.blockLen)); - return hash; -} - -const gencShake = (suffix: number, blockLen: number, outputLen: number) => - wrapConstructorWithOpts((opts: cShakeOpts = {}) => - cshakePers(new Keccak(blockLen, suffix, chooseLen(opts, outputLen), true), opts) - ); - -export const cshake128 = /* @__PURE__ */ (() => gencShake(0x1f, 168, 128 / 8))(); -export const cshake256 = /* @__PURE__ */ (() => gencShake(0x1f, 136, 256 / 8))(); - -class KMAC extends Keccak implements HashXOF { - constructor( - blockLen: number, - outputLen: number, - enableXOF: boolean, - key: Input, - opts: cShakeOpts = {} - ) { - super(blockLen, 0x1f, outputLen, enableXOF); - cshakePers(this, { NISTfn: 'KMAC', personalization: opts.personalization }); - key = toBytes(key); - // 1. newX = bytepad(encode_string(K), 168) || X || right_encode(L). - const blockLenBytes = leftEncode(this.blockLen); - const keyLen = leftEncode(8 * key.length); - this.update(blockLenBytes).update(keyLen).update(key); - const totalLen = blockLenBytes.length + keyLen.length + key.length; - this.update(getPadding(totalLen, this.blockLen)); - } - protected finish() { - if (!this.finished) this.update(rightEncode(this.enableXOF ? 0 : this.outputLen * 8)); // outputLen in bits - super.finish(); - } - _cloneInto(to?: KMAC): KMAC { - // Create new instance without calling constructor since key already in state and we don't know it. - // Force "to" to be instance of KMAC instead of Sha3. - if (!to) { - to = Object.create(Object.getPrototypeOf(this), {}) as KMAC; - to.state = this.state.slice(); - to.blockLen = this.blockLen; - to.state32 = u32(to.state); - } - return super._cloneInto(to) as KMAC; - } - clone(): KMAC { - return this._cloneInto(); - } -} - -function genKmac(blockLen: number, outputLen: number, xof = false) { - const kmac = (key: Input, message: Input, opts?: cShakeOpts): Uint8Array => - kmac.create(key, opts).update(message).digest(); - kmac.create = (key: Input, opts: cShakeOpts = {}) => - new KMAC(blockLen, chooseLen(opts, outputLen), xof, key, opts); - return kmac; -} - -export const kmac128 = /* @__PURE__ */ (() => genKmac(168, 128 / 8))(); -export const kmac256 = /* @__PURE__ */ (() => genKmac(136, 256 / 8))(); -export const kmac128xof = /* @__PURE__ */ (() => genKmac(168, 128 / 8, true))(); -export const kmac256xof = /* @__PURE__ */ (() => genKmac(136, 256 / 8, true))(); - -// TupleHash -// Usage: tuple(['ab', 'cd']) != tuple(['a', 'bcd']) -class TupleHash extends Keccak implements HashXOF { - constructor(blockLen: number, outputLen: number, enableXOF: boolean, opts: cShakeOpts = {}) { - super(blockLen, 0x1f, outputLen, enableXOF); - cshakePers(this, { NISTfn: 'TupleHash', personalization: opts.personalization }); - // Change update after cshake processed - this.update = (data: Input) => { - data = toBytes(data); - super.update(leftEncode(data.length * 8)); - super.update(data); - return this; - }; - } - protected finish() { - if (!this.finished) super.update(rightEncode(this.enableXOF ? 0 : this.outputLen * 8)); // outputLen in bits - super.finish(); - } - _cloneInto(to?: TupleHash): TupleHash { - to ||= new TupleHash(this.blockLen, this.outputLen, this.enableXOF); - return super._cloneInto(to) as TupleHash; - } - clone(): TupleHash { - return this._cloneInto(); - } -} - -function genTuple(blockLen: number, outputLen: number, xof = false) { - const tuple = (messages: Input[], opts?: cShakeOpts): Uint8Array => { - const h = tuple.create(opts); - for (const msg of messages) h.update(msg); - return h.digest(); - }; - tuple.create = (opts: cShakeOpts = {}) => - new TupleHash(blockLen, chooseLen(opts, outputLen), xof, opts); - return tuple; -} - -export const tuplehash128 = /* @__PURE__ */ (() => genTuple(168, 128 / 8))(); -export const tuplehash256 = /* @__PURE__ */ (() => genTuple(136, 256 / 8))(); -export const tuplehash128xof = /* @__PURE__ */ (() => genTuple(168, 128 / 8, true))(); -export const tuplehash256xof = /* @__PURE__ */ (() => genTuple(136, 256 / 8, true))(); - -// ParallelHash (same as K12/M14, but without speedup for inputs less 8kb, reduced number of rounds and more simple) -type ParallelOpts = cShakeOpts & { blockLen?: number }; - -class ParallelHash extends Keccak implements HashXOF { - private leafHash?: Hash; - private chunkPos = 0; // Position of current block in chunk - private chunksDone = 0; // How many chunks we already have - private chunkLen: number; - constructor( - blockLen: number, - outputLen: number, - protected leafCons: () => Hash, - enableXOF: boolean, - opts: ParallelOpts = {} - ) { - super(blockLen, 0x1f, outputLen, enableXOF); - cshakePers(this, { NISTfn: 'ParallelHash', personalization: opts.personalization }); - let { blockLen: B } = opts; - B ||= 8; - assertNumber(B); - this.chunkLen = B; - super.update(leftEncode(B)); - // Change update after cshake processed - this.update = (data: Input) => { - data = toBytes(data); - const { chunkLen, leafCons } = this; - for (let pos = 0, len = data.length; pos < len; ) { - if (this.chunkPos == chunkLen || !this.leafHash) { - if (this.leafHash) { - super.update(this.leafHash.digest()); - this.chunksDone++; - } - this.leafHash = leafCons(); - this.chunkPos = 0; - } - const take = Math.min(chunkLen - this.chunkPos, len - pos); - this.leafHash.update(data.subarray(pos, pos + take)); - this.chunkPos += take; - pos += take; - } - return this; - }; - } - protected finish() { - if (this.finished) return; - if (this.leafHash) { - super.update(this.leafHash.digest()); - this.chunksDone++; - } - super.update(rightEncode(this.chunksDone)); - super.update(rightEncode(this.enableXOF ? 0 : this.outputLen * 8)); // outputLen in bits - super.finish(); - } - _cloneInto(to?: ParallelHash): ParallelHash { - to ||= new ParallelHash(this.blockLen, this.outputLen, this.leafCons, this.enableXOF); - if (this.leafHash) to.leafHash = this.leafHash._cloneInto(to.leafHash as Keccak); - to.chunkPos = this.chunkPos; - to.chunkLen = this.chunkLen; - to.chunksDone = this.chunksDone; - return super._cloneInto(to) as ParallelHash; - } - destroy() { - super.destroy.call(this); - if (this.leafHash) this.leafHash.destroy(); - } - clone(): ParallelHash { - return this._cloneInto(); - } -} - -function genPrl( - blockLen: number, - outputLen: number, - leaf: ReturnType, - xof = false -) { - const parallel = (message: Input, opts?: ParallelOpts): Uint8Array => - parallel.create(opts).update(message).digest(); - parallel.create = (opts: ParallelOpts = {}) => - new ParallelHash( - blockLen, - chooseLen(opts, outputLen), - () => leaf.create({ dkLen: 2 * outputLen }), - xof, - opts - ); - return parallel; -} - -export const parallelhash128 = /* @__PURE__ */ (() => genPrl(168, 128 / 8, cshake128))(); -export const parallelhash256 = /* @__PURE__ */ (() => genPrl(136, 256 / 8, cshake256))(); -export const parallelhash128xof = /* @__PURE__ */ (() => genPrl(168, 128 / 8, cshake128, true))(); -export const parallelhash256xof = /* @__PURE__ */ (() => genPrl(136, 256 / 8, cshake256, true))(); - -// Kangaroo -// Same as NIST rightEncode, but returns [0] for zero string -function rightEncodeK12(n: number): Uint8Array { - const res = []; - for (; n > 0; n >>= 8) res.unshift(n & 0xff); - res.push(res.length); - return new Uint8Array(res); -} - -export type KangarooOpts = { dkLen?: number; personalization?: Input }; -const EMPTY = new Uint8Array([]); - -class KangarooTwelve extends Keccak implements HashXOF { - readonly chunkLen = 8192; - private leafHash?: Keccak; - private personalization: Uint8Array; - private chunkPos = 0; // Position of current block in chunk - private chunksDone = 0; // How many chunks we already have - constructor( - blockLen: number, - protected leafLen: number, - outputLen: number, - rounds: number, - opts: KangarooOpts - ) { - super(blockLen, 0x07, outputLen, true, rounds); - const { personalization } = opts; - this.personalization = toBytesOptional(personalization); - } - update(data: Input) { - data = toBytes(data); - const { chunkLen, blockLen, leafLen, rounds } = this; - for (let pos = 0, len = data.length; pos < len; ) { - if (this.chunkPos == chunkLen) { - if (this.leafHash) super.update(this.leafHash.digest()); - else { - this.suffix = 0x06; // Its safe to change suffix here since its used only in digest() - super.update(new Uint8Array([3, 0, 0, 0, 0, 0, 0, 0])); - } - this.leafHash = new Keccak(blockLen, 0x0b, leafLen, false, rounds); - this.chunksDone++; - this.chunkPos = 0; - } - const take = Math.min(chunkLen - this.chunkPos, len - pos); - const chunk = data.subarray(pos, pos + take); - if (this.leafHash) this.leafHash.update(chunk); - else super.update(chunk); - this.chunkPos += take; - pos += take; - } - return this; - } - protected finish() { - if (this.finished) return; - const { personalization } = this; - this.update(personalization).update(rightEncodeK12(personalization.length)); - // Leaf hash - if (this.leafHash) { - super.update(this.leafHash.digest()); - super.update(rightEncodeK12(this.chunksDone)); - super.update(new Uint8Array([0xff, 0xff])); - } - super.finish.call(this); - } - destroy() { - super.destroy.call(this); - if (this.leafHash) this.leafHash.destroy(); - // We cannot zero personalization buffer since it is user provided and we don't want to mutate user input - this.personalization = EMPTY; - } - _cloneInto(to?: KangarooTwelve): KangarooTwelve { - const { blockLen, leafLen, leafHash, outputLen, rounds } = this; - to ||= new KangarooTwelve(blockLen, leafLen, outputLen, rounds, {}); - super._cloneInto(to); - if (leafHash) to.leafHash = leafHash._cloneInto(to.leafHash); - to.personalization.set(this.personalization); - to.leafLen = this.leafLen; - to.chunkPos = this.chunkPos; - to.chunksDone = this.chunksDone; - return to; - } - clone(): KangarooTwelve { - return this._cloneInto(); - } -} -// Default to 32 bytes, so it can be used without opts -export const k12 = /* @__PURE__ */ (() => - wrapConstructorWithOpts( - (opts: KangarooOpts = {}) => new KangarooTwelve(168, 32, chooseLen(opts, 32), 12, opts) - ))(); -// MarsupilamiFourteen -export const m14 = /* @__PURE__ */ (() => - wrapConstructorWithOpts( - (opts: KangarooOpts = {}) => new KangarooTwelve(136, 64, chooseLen(opts, 64), 14, opts) - ))(); - -// https://keccak.team/files/CSF-0.1.pdf -// + https://github.com/XKCP/XKCP/tree/master/lib/high/Keccak/PRG -class KeccakPRG extends Keccak { - protected rate: number; - constructor(capacity: number) { - assertNumber(capacity); - // Rho should be full bytes - if (capacity < 0 || capacity > 1600 - 10 || (1600 - capacity - 2) % 8) - throw new Error('KeccakPRG: Invalid capacity'); - // blockLen = rho in bytes - super((1600 - capacity - 2) / 8, 0, 0, true); - this.rate = 1600 - capacity; - this.posOut = Math.floor((this.rate + 7) / 8); - } - keccak() { - // Duplex padding - this.state[this.pos] ^= 0x01; - this.state[this.blockLen] ^= 0x02; // Rho is full bytes - super.keccak(); - this.pos = 0; - this.posOut = 0; - } - update(data: Input) { - super.update(data); - this.posOut = this.blockLen; - return this; - } - feed(data: Input) { - return this.update(data); - } - protected finish() {} - digestInto(_out: Uint8Array): Uint8Array { - throw new Error('KeccakPRG: digest is not allowed, please use .fetch instead.'); - } - fetch(bytes: number): Uint8Array { - return this.xof(bytes); - } - // Ensure irreversibility (even if state leaked previous outputs cannot be computed) - forget() { - if (this.rate < 1600 / 2 + 1) throw new Error('KeccakPRG: rate too low to use forget'); - this.keccak(); - for (let i = 0; i < this.blockLen; i++) this.state[i] = 0; - this.pos = this.blockLen; - this.keccak(); - this.posOut = this.blockLen; - } - _cloneInto(to?: KeccakPRG): KeccakPRG { - const { rate } = this; - to ||= new KeccakPRG(1600 - rate); - super._cloneInto(to); - to.rate = rate; - return to; - } - clone(): KeccakPRG { - return this._cloneInto(); - } -} - -export const keccakprg = (capacity = 254) => new KeccakPRG(capacity); diff --git a/node_modules/@noble/hashes/src/sha3.ts b/node_modules/@noble/hashes/src/sha3.ts deleted file mode 100644 index c730b069..00000000 --- a/node_modules/@noble/hashes/src/sha3.ts +++ /dev/null @@ -1,223 +0,0 @@ -import { bytes, exists, number, output } from './_assert.js'; -import { rotlBH, rotlBL, rotlSH, rotlSL, split } from './_u64.js'; -import { - Hash, - u32, - Input, - toBytes, - wrapConstructor, - wrapXOFConstructorWithOpts, - HashXOF, -} from './utils.js'; - -// SHA3 (keccak) is based on a new design: basically, the internal state is bigger than output size. -// It's called a sponge function. - -// Various per round constants calculations -const [SHA3_PI, SHA3_ROTL, _SHA3_IOTA]: [number[], number[], bigint[]] = [[], [], []]; -const _0n = /* @__PURE__ */ BigInt(0); -const _1n = /* @__PURE__ */ BigInt(1); -const _2n = /* @__PURE__ */ BigInt(2); -const _7n = /* @__PURE__ */ BigInt(7); -const _256n = /* @__PURE__ */ BigInt(256); -const _0x71n = /* @__PURE__ */ BigInt(0x71); -for (let round = 0, R = _1n, x = 1, y = 0; round < 24; round++) { - // Pi - [x, y] = [y, (2 * x + 3 * y) % 5]; - SHA3_PI.push(2 * (5 * y + x)); - // Rotational - SHA3_ROTL.push((((round + 1) * (round + 2)) / 2) % 64); - // Iota - let t = _0n; - for (let j = 0; j < 7; j++) { - R = ((R << _1n) ^ ((R >> _7n) * _0x71n)) % _256n; - if (R & _2n) t ^= _1n << ((_1n << /* @__PURE__ */ BigInt(j)) - _1n); - } - _SHA3_IOTA.push(t); -} -const [SHA3_IOTA_H, SHA3_IOTA_L] = /* @__PURE__ */ split(_SHA3_IOTA, true); - -// Left rotation (without 0, 32, 64) -const rotlH = (h: number, l: number, s: number) => (s > 32 ? rotlBH(h, l, s) : rotlSH(h, l, s)); -const rotlL = (h: number, l: number, s: number) => (s > 32 ? rotlBL(h, l, s) : rotlSL(h, l, s)); - -// Same as keccakf1600, but allows to skip some rounds -export function keccakP(s: Uint32Array, rounds: number = 24) { - const B = new Uint32Array(5 * 2); - // NOTE: all indices are x2 since we store state as u32 instead of u64 (bigints to slow in js) - for (let round = 24 - rounds; round < 24; round++) { - // Theta θ - for (let x = 0; x < 10; x++) B[x] = s[x] ^ s[x + 10] ^ s[x + 20] ^ s[x + 30] ^ s[x + 40]; - for (let x = 0; x < 10; x += 2) { - const idx1 = (x + 8) % 10; - const idx0 = (x + 2) % 10; - const B0 = B[idx0]; - const B1 = B[idx0 + 1]; - const Th = rotlH(B0, B1, 1) ^ B[idx1]; - const Tl = rotlL(B0, B1, 1) ^ B[idx1 + 1]; - for (let y = 0; y < 50; y += 10) { - s[x + y] ^= Th; - s[x + y + 1] ^= Tl; - } - } - // Rho (ρ) and Pi (π) - let curH = s[2]; - let curL = s[3]; - for (let t = 0; t < 24; t++) { - const shift = SHA3_ROTL[t]; - const Th = rotlH(curH, curL, shift); - const Tl = rotlL(curH, curL, shift); - const PI = SHA3_PI[t]; - curH = s[PI]; - curL = s[PI + 1]; - s[PI] = Th; - s[PI + 1] = Tl; - } - // Chi (χ) - for (let y = 0; y < 50; y += 10) { - for (let x = 0; x < 10; x++) B[x] = s[y + x]; - for (let x = 0; x < 10; x++) s[y + x] ^= ~B[(x + 2) % 10] & B[(x + 4) % 10]; - } - // Iota (ι) - s[0] ^= SHA3_IOTA_H[round]; - s[1] ^= SHA3_IOTA_L[round]; - } - B.fill(0); -} - -export class Keccak extends Hash implements HashXOF { - protected state: Uint8Array; - protected pos = 0; - protected posOut = 0; - protected finished = false; - protected state32: Uint32Array; - protected destroyed = false; - // NOTE: we accept arguments in bytes instead of bits here. - constructor( - public blockLen: number, - public suffix: number, - public outputLen: number, - protected enableXOF = false, - protected rounds: number = 24 - ) { - super(); - // Can be passed from user as dkLen - number(outputLen); - // 1600 = 5x5 matrix of 64bit. 1600 bits === 200 bytes - if (0 >= this.blockLen || this.blockLen >= 200) - throw new Error('Sha3 supports only keccak-f1600 function'); - this.state = new Uint8Array(200); - this.state32 = u32(this.state); - } - protected keccak() { - keccakP(this.state32, this.rounds); - this.posOut = 0; - this.pos = 0; - } - update(data: Input) { - exists(this); - const { blockLen, state } = this; - data = toBytes(data); - const len = data.length; - for (let pos = 0; pos < len; ) { - const take = Math.min(blockLen - this.pos, len - pos); - for (let i = 0; i < take; i++) state[this.pos++] ^= data[pos++]; - if (this.pos === blockLen) this.keccak(); - } - return this; - } - protected finish() { - if (this.finished) return; - this.finished = true; - const { state, suffix, pos, blockLen } = this; - // Do the padding - state[pos] ^= suffix; - if ((suffix & 0x80) !== 0 && pos === blockLen - 1) this.keccak(); - state[blockLen - 1] ^= 0x80; - this.keccak(); - } - protected writeInto(out: Uint8Array): Uint8Array { - exists(this, false); - bytes(out); - this.finish(); - const bufferOut = this.state; - const { blockLen } = this; - for (let pos = 0, len = out.length; pos < len; ) { - if (this.posOut >= blockLen) this.keccak(); - const take = Math.min(blockLen - this.posOut, len - pos); - out.set(bufferOut.subarray(this.posOut, this.posOut + take), pos); - this.posOut += take; - pos += take; - } - return out; - } - xofInto(out: Uint8Array): Uint8Array { - // Sha3/Keccak usage with XOF is probably mistake, only SHAKE instances can do XOF - if (!this.enableXOF) throw new Error('XOF is not possible for this instance'); - return this.writeInto(out); - } - xof(bytes: number): Uint8Array { - number(bytes); - return this.xofInto(new Uint8Array(bytes)); - } - digestInto(out: Uint8Array) { - output(out, this); - if (this.finished) throw new Error('digest() was already called'); - this.writeInto(out); - this.destroy(); - return out; - } - digest() { - return this.digestInto(new Uint8Array(this.outputLen)); - } - destroy() { - this.destroyed = true; - this.state.fill(0); - } - _cloneInto(to?: Keccak): Keccak { - const { blockLen, suffix, outputLen, rounds, enableXOF } = this; - to ||= new Keccak(blockLen, suffix, outputLen, enableXOF, rounds); - to.state32.set(this.state32); - to.pos = this.pos; - to.posOut = this.posOut; - to.finished = this.finished; - to.rounds = rounds; - // Suffix can change in cSHAKE - to.suffix = suffix; - to.outputLen = outputLen; - to.enableXOF = enableXOF; - to.destroyed = this.destroyed; - return to; - } -} - -const gen = (suffix: number, blockLen: number, outputLen: number) => - wrapConstructor(() => new Keccak(blockLen, suffix, outputLen)); - -export const sha3_224 = /* @__PURE__ */ gen(0x06, 144, 224 / 8); -/** - * SHA3-256 hash function - * @param message - that would be hashed - */ -export const sha3_256 = /* @__PURE__ */ gen(0x06, 136, 256 / 8); -export const sha3_384 = /* @__PURE__ */ gen(0x06, 104, 384 / 8); -export const sha3_512 = /* @__PURE__ */ gen(0x06, 72, 512 / 8); -export const keccak_224 = /* @__PURE__ */ gen(0x01, 144, 224 / 8); -/** - * keccak-256 hash function. Different from SHA3-256. - * @param message - that would be hashed - */ -export const keccak_256 = /* @__PURE__ */ gen(0x01, 136, 256 / 8); -export const keccak_384 = /* @__PURE__ */ gen(0x01, 104, 384 / 8); -export const keccak_512 = /* @__PURE__ */ gen(0x01, 72, 512 / 8); - -export type ShakeOpts = { dkLen?: number }; - -const genShake = (suffix: number, blockLen: number, outputLen: number) => - wrapXOFConstructorWithOpts, ShakeOpts>( - (opts: ShakeOpts = {}) => - new Keccak(blockLen, suffix, opts.dkLen === undefined ? outputLen : opts.dkLen, true) - ); - -export const shake128 = /* @__PURE__ */ genShake(0x1f, 168, 128 / 8); -export const shake256 = /* @__PURE__ */ genShake(0x1f, 136, 256 / 8); diff --git a/node_modules/@noble/hashes/src/sha512.ts b/node_modules/@noble/hashes/src/sha512.ts deleted file mode 100644 index 27b7ac5e..00000000 --- a/node_modules/@noble/hashes/src/sha512.ts +++ /dev/null @@ -1,246 +0,0 @@ -import { SHA2 } from './_sha2.js'; -import u64 from './_u64.js'; -import { wrapConstructor } from './utils.js'; - -// Round contants (first 32 bits of the fractional parts of the cube roots of the first 80 primes 2..409): -// prettier-ignore -const [SHA512_Kh, SHA512_Kl] = /* @__PURE__ */ (() => u64.split([ - '0x428a2f98d728ae22', '0x7137449123ef65cd', '0xb5c0fbcfec4d3b2f', '0xe9b5dba58189dbbc', - '0x3956c25bf348b538', '0x59f111f1b605d019', '0x923f82a4af194f9b', '0xab1c5ed5da6d8118', - '0xd807aa98a3030242', '0x12835b0145706fbe', '0x243185be4ee4b28c', '0x550c7dc3d5ffb4e2', - '0x72be5d74f27b896f', '0x80deb1fe3b1696b1', '0x9bdc06a725c71235', '0xc19bf174cf692694', - '0xe49b69c19ef14ad2', '0xefbe4786384f25e3', '0x0fc19dc68b8cd5b5', '0x240ca1cc77ac9c65', - '0x2de92c6f592b0275', '0x4a7484aa6ea6e483', '0x5cb0a9dcbd41fbd4', '0x76f988da831153b5', - '0x983e5152ee66dfab', '0xa831c66d2db43210', '0xb00327c898fb213f', '0xbf597fc7beef0ee4', - '0xc6e00bf33da88fc2', '0xd5a79147930aa725', '0x06ca6351e003826f', '0x142929670a0e6e70', - '0x27b70a8546d22ffc', '0x2e1b21385c26c926', '0x4d2c6dfc5ac42aed', '0x53380d139d95b3df', - '0x650a73548baf63de', '0x766a0abb3c77b2a8', '0x81c2c92e47edaee6', '0x92722c851482353b', - '0xa2bfe8a14cf10364', '0xa81a664bbc423001', '0xc24b8b70d0f89791', '0xc76c51a30654be30', - '0xd192e819d6ef5218', '0xd69906245565a910', '0xf40e35855771202a', '0x106aa07032bbd1b8', - '0x19a4c116b8d2d0c8', '0x1e376c085141ab53', '0x2748774cdf8eeb99', '0x34b0bcb5e19b48a8', - '0x391c0cb3c5c95a63', '0x4ed8aa4ae3418acb', '0x5b9cca4f7763e373', '0x682e6ff3d6b2b8a3', - '0x748f82ee5defb2fc', '0x78a5636f43172f60', '0x84c87814a1f0ab72', '0x8cc702081a6439ec', - '0x90befffa23631e28', '0xa4506cebde82bde9', '0xbef9a3f7b2c67915', '0xc67178f2e372532b', - '0xca273eceea26619c', '0xd186b8c721c0c207', '0xeada7dd6cde0eb1e', '0xf57d4f7fee6ed178', - '0x06f067aa72176fba', '0x0a637dc5a2c898a6', '0x113f9804bef90dae', '0x1b710b35131c471b', - '0x28db77f523047d84', '0x32caab7b40c72493', '0x3c9ebe0a15c9bebc', '0x431d67c49c100d4c', - '0x4cc5d4becb3e42b6', '0x597f299cfc657e2a', '0x5fcb6fab3ad6faec', '0x6c44198c4a475817' -].map(n => BigInt(n))))(); - -// Temporary buffer, not used to store anything between runs -const SHA512_W_H = /* @__PURE__ */ new Uint32Array(80); -const SHA512_W_L = /* @__PURE__ */ new Uint32Array(80); -export class SHA512 extends SHA2 { - // We cannot use array here since array allows indexing by variable which means optimizer/compiler cannot use registers. - // Also looks cleaner and easier to verify with spec. - // Initial state (first 32 bits of the fractional parts of the square roots of the first 8 primes 2..19): - // h -- high 32 bits, l -- low 32 bits - Ah = 0x6a09e667 | 0; - Al = 0xf3bcc908 | 0; - Bh = 0xbb67ae85 | 0; - Bl = 0x84caa73b | 0; - Ch = 0x3c6ef372 | 0; - Cl = 0xfe94f82b | 0; - Dh = 0xa54ff53a | 0; - Dl = 0x5f1d36f1 | 0; - Eh = 0x510e527f | 0; - El = 0xade682d1 | 0; - Fh = 0x9b05688c | 0; - Fl = 0x2b3e6c1f | 0; - Gh = 0x1f83d9ab | 0; - Gl = 0xfb41bd6b | 0; - Hh = 0x5be0cd19 | 0; - Hl = 0x137e2179 | 0; - - constructor() { - super(128, 64, 16, false); - } - // prettier-ignore - protected get(): [ - number, number, number, number, number, number, number, number, - number, number, number, number, number, number, number, number - ] { - const { Ah, Al, Bh, Bl, Ch, Cl, Dh, Dl, Eh, El, Fh, Fl, Gh, Gl, Hh, Hl } = this; - return [Ah, Al, Bh, Bl, Ch, Cl, Dh, Dl, Eh, El, Fh, Fl, Gh, Gl, Hh, Hl]; - } - // prettier-ignore - protected set( - Ah: number, Al: number, Bh: number, Bl: number, Ch: number, Cl: number, Dh: number, Dl: number, - Eh: number, El: number, Fh: number, Fl: number, Gh: number, Gl: number, Hh: number, Hl: number - ) { - this.Ah = Ah | 0; - this.Al = Al | 0; - this.Bh = Bh | 0; - this.Bl = Bl | 0; - this.Ch = Ch | 0; - this.Cl = Cl | 0; - this.Dh = Dh | 0; - this.Dl = Dl | 0; - this.Eh = Eh | 0; - this.El = El | 0; - this.Fh = Fh | 0; - this.Fl = Fl | 0; - this.Gh = Gh | 0; - this.Gl = Gl | 0; - this.Hh = Hh | 0; - this.Hl = Hl | 0; - } - protected process(view: DataView, offset: number) { - // Extend the first 16 words into the remaining 64 words w[16..79] of the message schedule array - for (let i = 0; i < 16; i++, offset += 4) { - SHA512_W_H[i] = view.getUint32(offset); - SHA512_W_L[i] = view.getUint32((offset += 4)); - } - for (let i = 16; i < 80; i++) { - // s0 := (w[i-15] rightrotate 1) xor (w[i-15] rightrotate 8) xor (w[i-15] rightshift 7) - const W15h = SHA512_W_H[i - 15] | 0; - const W15l = SHA512_W_L[i - 15] | 0; - const s0h = u64.rotrSH(W15h, W15l, 1) ^ u64.rotrSH(W15h, W15l, 8) ^ u64.shrSH(W15h, W15l, 7); - const s0l = u64.rotrSL(W15h, W15l, 1) ^ u64.rotrSL(W15h, W15l, 8) ^ u64.shrSL(W15h, W15l, 7); - // s1 := (w[i-2] rightrotate 19) xor (w[i-2] rightrotate 61) xor (w[i-2] rightshift 6) - const W2h = SHA512_W_H[i - 2] | 0; - const W2l = SHA512_W_L[i - 2] | 0; - const s1h = u64.rotrSH(W2h, W2l, 19) ^ u64.rotrBH(W2h, W2l, 61) ^ u64.shrSH(W2h, W2l, 6); - const s1l = u64.rotrSL(W2h, W2l, 19) ^ u64.rotrBL(W2h, W2l, 61) ^ u64.shrSL(W2h, W2l, 6); - // SHA256_W[i] = s0 + s1 + SHA256_W[i - 7] + SHA256_W[i - 16]; - const SUMl = u64.add4L(s0l, s1l, SHA512_W_L[i - 7], SHA512_W_L[i - 16]); - const SUMh = u64.add4H(SUMl, s0h, s1h, SHA512_W_H[i - 7], SHA512_W_H[i - 16]); - SHA512_W_H[i] = SUMh | 0; - SHA512_W_L[i] = SUMl | 0; - } - let { Ah, Al, Bh, Bl, Ch, Cl, Dh, Dl, Eh, El, Fh, Fl, Gh, Gl, Hh, Hl } = this; - // Compression function main loop, 80 rounds - for (let i = 0; i < 80; i++) { - // S1 := (e rightrotate 14) xor (e rightrotate 18) xor (e rightrotate 41) - const sigma1h = u64.rotrSH(Eh, El, 14) ^ u64.rotrSH(Eh, El, 18) ^ u64.rotrBH(Eh, El, 41); - const sigma1l = u64.rotrSL(Eh, El, 14) ^ u64.rotrSL(Eh, El, 18) ^ u64.rotrBL(Eh, El, 41); - //const T1 = (H + sigma1 + Chi(E, F, G) + SHA256_K[i] + SHA256_W[i]) | 0; - const CHIh = (Eh & Fh) ^ (~Eh & Gh); - const CHIl = (El & Fl) ^ (~El & Gl); - // T1 = H + sigma1 + Chi(E, F, G) + SHA512_K[i] + SHA512_W[i] - // prettier-ignore - const T1ll = u64.add5L(Hl, sigma1l, CHIl, SHA512_Kl[i], SHA512_W_L[i]); - const T1h = u64.add5H(T1ll, Hh, sigma1h, CHIh, SHA512_Kh[i], SHA512_W_H[i]); - const T1l = T1ll | 0; - // S0 := (a rightrotate 28) xor (a rightrotate 34) xor (a rightrotate 39) - const sigma0h = u64.rotrSH(Ah, Al, 28) ^ u64.rotrBH(Ah, Al, 34) ^ u64.rotrBH(Ah, Al, 39); - const sigma0l = u64.rotrSL(Ah, Al, 28) ^ u64.rotrBL(Ah, Al, 34) ^ u64.rotrBL(Ah, Al, 39); - const MAJh = (Ah & Bh) ^ (Ah & Ch) ^ (Bh & Ch); - const MAJl = (Al & Bl) ^ (Al & Cl) ^ (Bl & Cl); - Hh = Gh | 0; - Hl = Gl | 0; - Gh = Fh | 0; - Gl = Fl | 0; - Fh = Eh | 0; - Fl = El | 0; - ({ h: Eh, l: El } = u64.add(Dh | 0, Dl | 0, T1h | 0, T1l | 0)); - Dh = Ch | 0; - Dl = Cl | 0; - Ch = Bh | 0; - Cl = Bl | 0; - Bh = Ah | 0; - Bl = Al | 0; - const All = u64.add3L(T1l, sigma0l, MAJl); - Ah = u64.add3H(All, T1h, sigma0h, MAJh); - Al = All | 0; - } - // Add the compressed chunk to the current hash value - ({ h: Ah, l: Al } = u64.add(this.Ah | 0, this.Al | 0, Ah | 0, Al | 0)); - ({ h: Bh, l: Bl } = u64.add(this.Bh | 0, this.Bl | 0, Bh | 0, Bl | 0)); - ({ h: Ch, l: Cl } = u64.add(this.Ch | 0, this.Cl | 0, Ch | 0, Cl | 0)); - ({ h: Dh, l: Dl } = u64.add(this.Dh | 0, this.Dl | 0, Dh | 0, Dl | 0)); - ({ h: Eh, l: El } = u64.add(this.Eh | 0, this.El | 0, Eh | 0, El | 0)); - ({ h: Fh, l: Fl } = u64.add(this.Fh | 0, this.Fl | 0, Fh | 0, Fl | 0)); - ({ h: Gh, l: Gl } = u64.add(this.Gh | 0, this.Gl | 0, Gh | 0, Gl | 0)); - ({ h: Hh, l: Hl } = u64.add(this.Hh | 0, this.Hl | 0, Hh | 0, Hl | 0)); - this.set(Ah, Al, Bh, Bl, Ch, Cl, Dh, Dl, Eh, El, Fh, Fl, Gh, Gl, Hh, Hl); - } - protected roundClean() { - SHA512_W_H.fill(0); - SHA512_W_L.fill(0); - } - destroy() { - this.buffer.fill(0); - this.set(0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0); - } -} - -class SHA512_224 extends SHA512 { - // h -- high 32 bits, l -- low 32 bits - Ah = 0x8c3d37c8 | 0; - Al = 0x19544da2 | 0; - Bh = 0x73e19966 | 0; - Bl = 0x89dcd4d6 | 0; - Ch = 0x1dfab7ae | 0; - Cl = 0x32ff9c82 | 0; - Dh = 0x679dd514 | 0; - Dl = 0x582f9fcf | 0; - Eh = 0x0f6d2b69 | 0; - El = 0x7bd44da8 | 0; - Fh = 0x77e36f73 | 0; - Fl = 0x04c48942 | 0; - Gh = 0x3f9d85a8 | 0; - Gl = 0x6a1d36c8 | 0; - Hh = 0x1112e6ad | 0; - Hl = 0x91d692a1 | 0; - - constructor() { - super(); - this.outputLen = 28; - } -} - -class SHA512_256 extends SHA512 { - // h -- high 32 bits, l -- low 32 bits - Ah = 0x22312194 | 0; - Al = 0xfc2bf72c | 0; - Bh = 0x9f555fa3 | 0; - Bl = 0xc84c64c2 | 0; - Ch = 0x2393b86b | 0; - Cl = 0x6f53b151 | 0; - Dh = 0x96387719 | 0; - Dl = 0x5940eabd | 0; - Eh = 0x96283ee2 | 0; - El = 0xa88effe3 | 0; - Fh = 0xbe5e1e25 | 0; - Fl = 0x53863992 | 0; - Gh = 0x2b0199fc | 0; - Gl = 0x2c85b8aa | 0; - Hh = 0x0eb72ddc | 0; - Hl = 0x81c52ca2 | 0; - - constructor() { - super(); - this.outputLen = 32; - } -} - -class SHA384 extends SHA512 { - // h -- high 32 bits, l -- low 32 bits - Ah = 0xcbbb9d5d | 0; - Al = 0xc1059ed8 | 0; - Bh = 0x629a292a | 0; - Bl = 0x367cd507 | 0; - Ch = 0x9159015a | 0; - Cl = 0x3070dd17 | 0; - Dh = 0x152fecd8 | 0; - Dl = 0xf70e5939 | 0; - Eh = 0x67332667 | 0; - El = 0xffc00b31 | 0; - Fh = 0x8eb44a87 | 0; - Fl = 0x68581511 | 0; - Gh = 0xdb0c2e0d | 0; - Gl = 0x64f98fa7 | 0; - Hh = 0x47b5481d | 0; - Hl = 0xbefa4fa4 | 0; - - constructor() { - super(); - this.outputLen = 48; - } -} - -export const sha512 = /* @__PURE__ */ wrapConstructor(() => new SHA512()); -export const sha512_224 = /* @__PURE__ */ wrapConstructor(() => new SHA512_224()); -export const sha512_256 = /* @__PURE__ */ wrapConstructor(() => new SHA512_256()); -export const sha384 = /* @__PURE__ */ wrapConstructor(() => new SHA384()); diff --git a/node_modules/@noble/hashes/src/utils.ts b/node_modules/@noble/hashes/src/utils.ts deleted file mode 100644 index 81e52560..00000000 --- a/node_modules/@noble/hashes/src/utils.ts +++ /dev/null @@ -1,215 +0,0 @@ -/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */ - -// We use WebCrypto aka globalThis.crypto, which exists in browsers and node.js 16+. -// node.js versions earlier than v19 don't declare it in global scope. -// For node.js, package.json#exports field mapping rewrites import -// from `crypto` to `cryptoNode`, which imports native module. -// Makes the utils un-importable in browsers without a bundler. -// Once node.js 18 is deprecated, we can just drop the import. -import { crypto } from '@noble/hashes/crypto'; - -// prettier-ignore -export type TypedArray = Int8Array | Uint8ClampedArray | Uint8Array | - Uint16Array | Int16Array | Uint32Array | Int32Array; - -const u8a = (a: any): a is Uint8Array => a instanceof Uint8Array; -// Cast array to different type -export const u8 = (arr: TypedArray) => new Uint8Array(arr.buffer, arr.byteOffset, arr.byteLength); -export const u32 = (arr: TypedArray) => - new Uint32Array(arr.buffer, arr.byteOffset, Math.floor(arr.byteLength / 4)); - -// Cast array to view -export const createView = (arr: TypedArray) => - new DataView(arr.buffer, arr.byteOffset, arr.byteLength); - -// The rotate right (circular right shift) operation for uint32 -export const rotr = (word: number, shift: number) => (word << (32 - shift)) | (word >>> shift); - -// big-endian hardware is rare. Just in case someone still decides to run hashes: -// early-throw an error because we don't support BE yet. -export const isLE = new Uint8Array(new Uint32Array([0x11223344]).buffer)[0] === 0x44; -if (!isLE) throw new Error('Non little-endian hardware is not supported'); - -const hexes = /* @__PURE__ */ Array.from({ length: 256 }, (_, i) => - i.toString(16).padStart(2, '0') -); -/** - * @example bytesToHex(Uint8Array.from([0xca, 0xfe, 0x01, 0x23])) // 'cafe0123' - */ -export function bytesToHex(bytes: Uint8Array): string { - if (!u8a(bytes)) throw new Error('Uint8Array expected'); - // pre-caching improves the speed 6x - let hex = ''; - for (let i = 0; i < bytes.length; i++) { - hex += hexes[bytes[i]]; - } - return hex; -} - -/** - * @example hexToBytes('cafe0123') // Uint8Array.from([0xca, 0xfe, 0x01, 0x23]) - */ -export function hexToBytes(hex: string): Uint8Array { - if (typeof hex !== 'string') throw new Error('hex string expected, got ' + typeof hex); - const len = hex.length; - if (len % 2) throw new Error('padded hex string expected, got unpadded hex of length ' + len); - const array = new Uint8Array(len / 2); - for (let i = 0; i < array.length; i++) { - const j = i * 2; - const hexByte = hex.slice(j, j + 2); - const byte = Number.parseInt(hexByte, 16); - if (Number.isNaN(byte) || byte < 0) throw new Error('Invalid byte sequence'); - array[i] = byte; - } - return array; -} - -// There is no setImmediate in browser and setTimeout is slow. -// call of async fn will return Promise, which will be fullfiled only on -// next scheduler queue processing step and this is exactly what we need. -export const nextTick = async () => {}; - -// Returns control to thread each 'tick' ms to avoid blocking -export async function asyncLoop(iters: number, tick: number, cb: (i: number) => void) { - let ts = Date.now(); - for (let i = 0; i < iters; i++) { - cb(i); - // Date.now() is not monotonic, so in case if clock goes backwards we return return control too - const diff = Date.now() - ts; - if (diff >= 0 && diff < tick) continue; - await nextTick(); - ts += diff; - } -} - -// Global symbols in both browsers and Node.js since v11 -// See https://github.com/microsoft/TypeScript/issues/31535 -declare const TextEncoder: any; - -/** - * @example utf8ToBytes('abc') // new Uint8Array([97, 98, 99]) - */ -export function utf8ToBytes(str: string): Uint8Array { - if (typeof str !== 'string') throw new Error(`utf8ToBytes expected string, got ${typeof str}`); - return new Uint8Array(new TextEncoder().encode(str)); // https://bugzil.la/1681809 -} - -export type Input = Uint8Array | string; -/** - * Normalizes (non-hex) string or Uint8Array to Uint8Array. - * Warning: when Uint8Array is passed, it would NOT get copied. - * Keep in mind for future mutable operations. - */ -export function toBytes(data: Input): Uint8Array { - if (typeof data === 'string') data = utf8ToBytes(data); - if (!u8a(data)) throw new Error(`expected Uint8Array, got ${typeof data}`); - return data; -} - -/** - * Copies several Uint8Arrays into one. - */ -export function concatBytes(...arrays: Uint8Array[]): Uint8Array { - const r = new Uint8Array(arrays.reduce((sum, a) => sum + a.length, 0)); - let pad = 0; // walk through each item, ensure they have proper type - arrays.forEach((a) => { - if (!u8a(a)) throw new Error('Uint8Array expected'); - r.set(a, pad); - pad += a.length; - }); - return r; -} - -// For runtime check if class implements interface -export abstract class Hash> { - abstract blockLen: number; // Bytes per block - abstract outputLen: number; // Bytes in output - abstract update(buf: Input): this; - // Writes digest into buf - abstract digestInto(buf: Uint8Array): void; - abstract digest(): Uint8Array; - /** - * Resets internal state. Makes Hash instance unusable. - * Reset is impossible for keyed hashes if key is consumed into state. If digest is not consumed - * by user, they will need to manually call `destroy()` when zeroing is necessary. - */ - abstract destroy(): void; - /** - * Clones hash instance. Unsafe: doesn't check whether `to` is valid. Can be used as `clone()` - * when no options are passed. - * Reasons to use `_cloneInto` instead of clone: 1) performance 2) reuse instance => all internal - * buffers are overwritten => causes buffer overwrite which is used for digest in some cases. - * There are no guarantees for clean-up because it's impossible in JS. - */ - abstract _cloneInto(to?: T): T; - // Safe version that clones internal state - clone(): T { - return this._cloneInto(); - } -} - -/** - * XOF: streaming API to read digest in chunks. - * Same as 'squeeze' in keccak/k12 and 'seek' in blake3, but more generic name. - * When hash used in XOF mode it is up to user to call '.destroy' afterwards, since we cannot - * destroy state, next call can require more bytes. - */ -export type HashXOF> = Hash & { - xof(bytes: number): Uint8Array; // Read 'bytes' bytes from digest stream - xofInto(buf: Uint8Array): Uint8Array; // read buf.length bytes from digest stream into buf -}; - -const toStr = {}.toString; -type EmptyObj = {}; -export function checkOpts( - defaults: T1, - opts?: T2 -): T1 & T2 { - if (opts !== undefined && toStr.call(opts) !== '[object Object]') - throw new Error('Options should be object or undefined'); - const merged = Object.assign(defaults, opts); - return merged as T1 & T2; -} - -export type CHash = ReturnType; - -export function wrapConstructor>(hashCons: () => Hash) { - const hashC = (msg: Input): Uint8Array => hashCons().update(toBytes(msg)).digest(); - const tmp = hashCons(); - hashC.outputLen = tmp.outputLen; - hashC.blockLen = tmp.blockLen; - hashC.create = () => hashCons(); - return hashC; -} - -export function wrapConstructorWithOpts, T extends Object>( - hashCons: (opts?: T) => Hash -) { - const hashC = (msg: Input, opts?: T): Uint8Array => hashCons(opts).update(toBytes(msg)).digest(); - const tmp = hashCons({} as T); - hashC.outputLen = tmp.outputLen; - hashC.blockLen = tmp.blockLen; - hashC.create = (opts: T) => hashCons(opts); - return hashC; -} - -export function wrapXOFConstructorWithOpts, T extends Object>( - hashCons: (opts?: T) => HashXOF -) { - const hashC = (msg: Input, opts?: T): Uint8Array => hashCons(opts).update(toBytes(msg)).digest(); - const tmp = hashCons({} as T); - hashC.outputLen = tmp.outputLen; - hashC.blockLen = tmp.blockLen; - hashC.create = (opts: T) => hashCons(opts); - return hashC; -} - -/** - * Secure PRNG. Uses `crypto.getRandomValues`, which defers to OS. - */ -export function randomBytes(bytesLength = 32): Uint8Array { - if (crypto && typeof crypto.getRandomValues === 'function') { - return crypto.getRandomValues(new Uint8Array(bytesLength)); - } - throw new Error('crypto.getRandomValues must be defined'); -} diff --git a/node_modules/@noble/hashes/utils.d.ts b/node_modules/@noble/hashes/utils.d.ts deleted file mode 100644 index a0017e4b..00000000 --- a/node_modules/@noble/hashes/utils.d.ts +++ /dev/null @@ -1,90 +0,0 @@ -/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */ -export type TypedArray = Int8Array | Uint8ClampedArray | Uint8Array | Uint16Array | Int16Array | Uint32Array | Int32Array; -export declare const u8: (arr: TypedArray) => Uint8Array; -export declare const u32: (arr: TypedArray) => Uint32Array; -export declare const createView: (arr: TypedArray) => DataView; -export declare const rotr: (word: number, shift: number) => number; -export declare const isLE: boolean; -/** - * @example bytesToHex(Uint8Array.from([0xca, 0xfe, 0x01, 0x23])) // 'cafe0123' - */ -export declare function bytesToHex(bytes: Uint8Array): string; -/** - * @example hexToBytes('cafe0123') // Uint8Array.from([0xca, 0xfe, 0x01, 0x23]) - */ -export declare function hexToBytes(hex: string): Uint8Array; -export declare const nextTick: () => Promise; -export declare function asyncLoop(iters: number, tick: number, cb: (i: number) => void): Promise; -/** - * @example utf8ToBytes('abc') // new Uint8Array([97, 98, 99]) - */ -export declare function utf8ToBytes(str: string): Uint8Array; -export type Input = Uint8Array | string; -/** - * Normalizes (non-hex) string or Uint8Array to Uint8Array. - * Warning: when Uint8Array is passed, it would NOT get copied. - * Keep in mind for future mutable operations. - */ -export declare function toBytes(data: Input): Uint8Array; -/** - * Copies several Uint8Arrays into one. - */ -export declare function concatBytes(...arrays: Uint8Array[]): Uint8Array; -export declare abstract class Hash> { - abstract blockLen: number; - abstract outputLen: number; - abstract update(buf: Input): this; - abstract digestInto(buf: Uint8Array): void; - abstract digest(): Uint8Array; - /** - * Resets internal state. Makes Hash instance unusable. - * Reset is impossible for keyed hashes if key is consumed into state. If digest is not consumed - * by user, they will need to manually call `destroy()` when zeroing is necessary. - */ - abstract destroy(): void; - /** - * Clones hash instance. Unsafe: doesn't check whether `to` is valid. Can be used as `clone()` - * when no options are passed. - * Reasons to use `_cloneInto` instead of clone: 1) performance 2) reuse instance => all internal - * buffers are overwritten => causes buffer overwrite which is used for digest in some cases. - * There are no guarantees for clean-up because it's impossible in JS. - */ - abstract _cloneInto(to?: T): T; - clone(): T; -} -/** - * XOF: streaming API to read digest in chunks. - * Same as 'squeeze' in keccak/k12 and 'seek' in blake3, but more generic name. - * When hash used in XOF mode it is up to user to call '.destroy' afterwards, since we cannot - * destroy state, next call can require more bytes. - */ -export type HashXOF> = Hash & { - xof(bytes: number): Uint8Array; - xofInto(buf: Uint8Array): Uint8Array; -}; -type EmptyObj = {}; -export declare function checkOpts(defaults: T1, opts?: T2): T1 & T2; -export type CHash = ReturnType; -export declare function wrapConstructor>(hashCons: () => Hash): { - (msg: Input): Uint8Array; - outputLen: number; - blockLen: number; - create(): Hash; -}; -export declare function wrapConstructorWithOpts, T extends Object>(hashCons: (opts?: T) => Hash): { - (msg: Input, opts?: T): Uint8Array; - outputLen: number; - blockLen: number; - create(opts: T): Hash; -}; -export declare function wrapXOFConstructorWithOpts, T extends Object>(hashCons: (opts?: T) => HashXOF): { - (msg: Input, opts?: T): Uint8Array; - outputLen: number; - blockLen: number; - create(opts: T): HashXOF; -}; -/** - * Secure PRNG. Uses `crypto.getRandomValues`, which defers to OS. - */ -export declare function randomBytes(bytesLength?: number): Uint8Array; -export {}; diff --git a/node_modules/@noble/hashes/utils.js b/node_modules/@noble/hashes/utils.js deleted file mode 100644 index 2ffcbbee..00000000 --- a/node_modules/@noble/hashes/utils.js +++ /dev/null @@ -1,174 +0,0 @@ -"use strict"; -/*! noble-hashes - MIT License (c) 2022 Paul Miller (paulmillr.com) */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.randomBytes = exports.wrapXOFConstructorWithOpts = exports.wrapConstructorWithOpts = exports.wrapConstructor = exports.checkOpts = exports.Hash = exports.concatBytes = exports.toBytes = exports.utf8ToBytes = exports.asyncLoop = exports.nextTick = exports.hexToBytes = exports.bytesToHex = exports.isLE = exports.rotr = exports.createView = exports.u32 = exports.u8 = void 0; -// We use WebCrypto aka globalThis.crypto, which exists in browsers and node.js 16+. -// node.js versions earlier than v19 don't declare it in global scope. -// For node.js, package.json#exports field mapping rewrites import -// from `crypto` to `cryptoNode`, which imports native module. -// Makes the utils un-importable in browsers without a bundler. -// Once node.js 18 is deprecated, we can just drop the import. -const crypto_1 = require("@noble/hashes/crypto"); -const u8a = (a) => a instanceof Uint8Array; -// Cast array to different type -const u8 = (arr) => new Uint8Array(arr.buffer, arr.byteOffset, arr.byteLength); -exports.u8 = u8; -const u32 = (arr) => new Uint32Array(arr.buffer, arr.byteOffset, Math.floor(arr.byteLength / 4)); -exports.u32 = u32; -// Cast array to view -const createView = (arr) => new DataView(arr.buffer, arr.byteOffset, arr.byteLength); -exports.createView = createView; -// The rotate right (circular right shift) operation for uint32 -const rotr = (word, shift) => (word << (32 - shift)) | (word >>> shift); -exports.rotr = rotr; -// big-endian hardware is rare. Just in case someone still decides to run hashes: -// early-throw an error because we don't support BE yet. -exports.isLE = new Uint8Array(new Uint32Array([0x11223344]).buffer)[0] === 0x44; -if (!exports.isLE) - throw new Error('Non little-endian hardware is not supported'); -const hexes = /* @__PURE__ */ Array.from({ length: 256 }, (_, i) => i.toString(16).padStart(2, '0')); -/** - * @example bytesToHex(Uint8Array.from([0xca, 0xfe, 0x01, 0x23])) // 'cafe0123' - */ -function bytesToHex(bytes) { - if (!u8a(bytes)) - throw new Error('Uint8Array expected'); - // pre-caching improves the speed 6x - let hex = ''; - for (let i = 0; i < bytes.length; i++) { - hex += hexes[bytes[i]]; - } - return hex; -} -exports.bytesToHex = bytesToHex; -/** - * @example hexToBytes('cafe0123') // Uint8Array.from([0xca, 0xfe, 0x01, 0x23]) - */ -function hexToBytes(hex) { - if (typeof hex !== 'string') - throw new Error('hex string expected, got ' + typeof hex); - const len = hex.length; - if (len % 2) - throw new Error('padded hex string expected, got unpadded hex of length ' + len); - const array = new Uint8Array(len / 2); - for (let i = 0; i < array.length; i++) { - const j = i * 2; - const hexByte = hex.slice(j, j + 2); - const byte = Number.parseInt(hexByte, 16); - if (Number.isNaN(byte) || byte < 0) - throw new Error('Invalid byte sequence'); - array[i] = byte; - } - return array; -} -exports.hexToBytes = hexToBytes; -// There is no setImmediate in browser and setTimeout is slow. -// call of async fn will return Promise, which will be fullfiled only on -// next scheduler queue processing step and this is exactly what we need. -const nextTick = async () => { }; -exports.nextTick = nextTick; -// Returns control to thread each 'tick' ms to avoid blocking -async function asyncLoop(iters, tick, cb) { - let ts = Date.now(); - for (let i = 0; i < iters; i++) { - cb(i); - // Date.now() is not monotonic, so in case if clock goes backwards we return return control too - const diff = Date.now() - ts; - if (diff >= 0 && diff < tick) - continue; - await (0, exports.nextTick)(); - ts += diff; - } -} -exports.asyncLoop = asyncLoop; -/** - * @example utf8ToBytes('abc') // new Uint8Array([97, 98, 99]) - */ -function utf8ToBytes(str) { - if (typeof str !== 'string') - throw new Error(`utf8ToBytes expected string, got ${typeof str}`); - return new Uint8Array(new TextEncoder().encode(str)); // https://bugzil.la/1681809 -} -exports.utf8ToBytes = utf8ToBytes; -/** - * Normalizes (non-hex) string or Uint8Array to Uint8Array. - * Warning: when Uint8Array is passed, it would NOT get copied. - * Keep in mind for future mutable operations. - */ -function toBytes(data) { - if (typeof data === 'string') - data = utf8ToBytes(data); - if (!u8a(data)) - throw new Error(`expected Uint8Array, got ${typeof data}`); - return data; -} -exports.toBytes = toBytes; -/** - * Copies several Uint8Arrays into one. - */ -function concatBytes(...arrays) { - const r = new Uint8Array(arrays.reduce((sum, a) => sum + a.length, 0)); - let pad = 0; // walk through each item, ensure they have proper type - arrays.forEach((a) => { - if (!u8a(a)) - throw new Error('Uint8Array expected'); - r.set(a, pad); - pad += a.length; - }); - return r; -} -exports.concatBytes = concatBytes; -// For runtime check if class implements interface -class Hash { - // Safe version that clones internal state - clone() { - return this._cloneInto(); - } -} -exports.Hash = Hash; -const toStr = {}.toString; -function checkOpts(defaults, opts) { - if (opts !== undefined && toStr.call(opts) !== '[object Object]') - throw new Error('Options should be object or undefined'); - const merged = Object.assign(defaults, opts); - return merged; -} -exports.checkOpts = checkOpts; -function wrapConstructor(hashCons) { - const hashC = (msg) => hashCons().update(toBytes(msg)).digest(); - const tmp = hashCons(); - hashC.outputLen = tmp.outputLen; - hashC.blockLen = tmp.blockLen; - hashC.create = () => hashCons(); - return hashC; -} -exports.wrapConstructor = wrapConstructor; -function wrapConstructorWithOpts(hashCons) { - const hashC = (msg, opts) => hashCons(opts).update(toBytes(msg)).digest(); - const tmp = hashCons({}); - hashC.outputLen = tmp.outputLen; - hashC.blockLen = tmp.blockLen; - hashC.create = (opts) => hashCons(opts); - return hashC; -} -exports.wrapConstructorWithOpts = wrapConstructorWithOpts; -function wrapXOFConstructorWithOpts(hashCons) { - const hashC = (msg, opts) => hashCons(opts).update(toBytes(msg)).digest(); - const tmp = hashCons({}); - hashC.outputLen = tmp.outputLen; - hashC.blockLen = tmp.blockLen; - hashC.create = (opts) => hashCons(opts); - return hashC; -} -exports.wrapXOFConstructorWithOpts = wrapXOFConstructorWithOpts; -/** - * Secure PRNG. Uses `crypto.getRandomValues`, which defers to OS. - */ -function randomBytes(bytesLength = 32) { - if (crypto_1.crypto && typeof crypto_1.crypto.getRandomValues === 'function') { - return crypto_1.crypto.getRandomValues(new Uint8Array(bytesLength)); - } - throw new Error('crypto.getRandomValues must be defined'); -} -exports.randomBytes = randomBytes; -//# sourceMappingURL=utils.js.map \ No newline at end of file diff --git a/node_modules/@noble/hashes/utils.js.map b/node_modules/@noble/hashes/utils.js.map deleted file mode 100644 index 4fc2171d..00000000 --- a/node_modules/@noble/hashes/utils.js.map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AK,GAAG,CAAC,GAAU,EAAE,IAAQ,EAAc,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC,MAAM,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACjG,MAAM,GAAG,GAAG,QAAQ,CAAC,EAAO,CAAC,CAAC;IAC9B,KAAK,CAAC,SAAS,GAAG,GAAG,CAAC,SAAS,CAAC;IAChC,KAAK,CAAC,QAAQ,GAAG,GAAG,CAAC,QAAQ,CAAC;IAC9B,KAAK,CAAC,MAAM,GAAG,CAAC,IAAO,EAAE,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,CAAC;IAC3C,OAAO,KAAK,CAAC;AACf,CAAC;AATD,gEASC;AAED;;GAEG;AACH,SAAgB,WAAW,CAAC,WAAW,GAAG,EAAE;IAC1C,IAAI,eAAM,IAAI,OAAO,eAAM,CAAC,eAAe,KAAK,UAAU,EAAE;QAC1D,OAAO,eAAM,CAAC,eAAe,CAAC,IAAI,UAAU,CAAC,WAAW,CAAC,CAAC,CAAC;KAC5D;IACD,MAAM,IAAI,KAAK,CAAC,wCAAwC,CAAC,CAAC;AAC5D,CAAC;AALD,kCAKC"} \ No newline at end of file diff --git a/node_modules/@noble/secp256k1/LICENSE b/node_modules/@noble/secp256k1/LICENSE deleted file mode 100644 index a5e0151f..00000000 --- a/node_modules/@noble/secp256k1/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2019 Paul Miller (https://paulmillr.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the “Software”), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. \ No newline at end of file diff --git a/node_modules/@noble/secp256k1/README.md b/node_modules/@noble/secp256k1/README.md deleted file mode 100644 index 4a01c296..00000000 --- a/node_modules/@noble/secp256k1/README.md +++ /dev/null @@ -1,322 +0,0 @@ -# noble-secp256k1 - -[Fastest](#speed) 4KB JS implementation of [secp256k1](https://www.secg.org/sec2-v2.pdf) -elliptic curve. Auditable, high-security, 0-dependency ECDH & ECDSA signatures compliant with RFC6979. - -The library is a tiny single-feature version of -[noble-curves](https://github.com/paulmillr/noble-curves), with some features -removed. Check out curves as a drop-in replacement with -Schnorr signatures, DER encoding and support for different hash functions. - -Take a look at: [Upgrading](#upgrading) section for v1 to v2 transition instructions, -[the online demo](https://paulmillr.com/noble/) and blog post -[Learning fast elliptic-curve cryptography in JS](https://paulmillr.com/posts/noble-secp256k1-fast-ecc/). - -### This library belongs to _noble_ crypto - -> **noble-crypto** — high-security, easily auditable set of contained cryptographic libraries and tools. - -- No dependencies, protection against supply chain attacks -- Auditable TypeScript / JS code -- Supported in all major browsers and stable node.js versions -- All releases are signed with PGP keys -- Check out [homepage](https://paulmillr.com/noble/) & all libraries: - [curves](https://github.com/paulmillr/noble-curves) - (4kb versions [secp256k1](https://github.com/paulmillr/noble-secp256k1), - [ed25519](https://github.com/paulmillr/noble-ed25519)), - [hashes](https://github.com/paulmillr/noble-hashes) - -## Usage - -Browser, deno, node.js and unpkg are supported: - -> npm install @noble/secp256k1 - -```js -import * as secp from '@noble/secp256k1'; // ESM-only. Use bundler for common.js -// import * as secp from "https://deno.land/x/secp256k1/mod.ts"; // Deno -// import * as secp from "https://unpkg.com/@noble/secp256k1"; // Unpkg -(async () => { - // keys, messages & other inputs can be Uint8Arrays or hex strings - // Uint8Array.from([0xde, 0xad, 0xbe, 0xef]) === 'deadbeef' - const privKey = secp.utils.randomPrivateKey(); // Secure random private key - // sha256 of 'hello world' - const msgHash = 'b94d27b9934d3e08a52e52d7da7dabfac484efe37a5380ee9088f7ace2efcde9'; - const pubKey = secp.getPublicKey(privKey); // Make pubkey from the private key - const signature = await secp.signAsync(msgHash, privKey); // sign - const isValid = secp.verify(signature, msgHash, pubKey); // verify - - const pubKey2 = getPublicKey(secp.utils.randomPrivateKey()); // Key of user 2 - secp.getSharedSecret(privKey, alicesPubkey); // Elliptic curve diffie-hellman - signature.recoverPublicKey(msgHash); // Public key recovery -})(); -``` - -Advanced examples: - -```ts -// 1. Use the shim to enable synchronous methods. -// Only async methods are available by default to keep library dependency-free. -import { hmac } from '@noble/hashes/hmac'; -import { sha256 } from '@noble/hashes/sha256'; -secp.etc.hmacSha256Sync = (k, ...m) => hmac(sha256, k, secp.etc.concatBytes(...m)) -const signature2 = secp.sign(msgHash, privKey); // Can be used now - -// 2. Use the shim only for node.js <= 18 BEFORE importing noble-secp256k1. -// The library depends on global variable crypto to work. It is available in -// all browsers and many environments, but node.js <= 18 don't have it. -import { webcrypto } from 'node:crypto'; -// @ts-ignore -if (!globalThis.crypto) globalThis.crypto = webcrypto; - -// Other stuff -// Malleable signatures, incompatible with BTC/ETH, but compatible with openssl -// `lowS: true` prohibits signatures which have (sig.s >= CURVE.n/2n) because of -// malleability -const signatureMalleable = secp.sign(msgHash, privKey, { lowS: false }); - -// Signatures with improved security: adds additional entropy `k` for -// deterministic signature, follows section 3.6 of RFC6979. When `true`, it -// would be filled with 32b from CSPRNG. **Strongly recommended** to pass `true` -// to improve security: -// - No disadvantage: if an entropy generator is broken, sigs would be the same -// as they are without the option -// - It would help a lot in case there is an error somewhere in `k` gen. -// Exposing `k` could leak private keys -// - Sigs with extra entropy would have different `r` / `s`, which means they -// would still be valid, but may break some test vectors if you're -// cross-testing against other libs -const signatureImproved = secp.sign(msgHash, privKey, { extraEntropy: true }); -``` - -## API - -There are 3 main methods: `getPublicKey(privateKey)`, -`sign(messageHash, privateKey)` and -`verify(signature, messageHash, publicKey)`. - -```typescript -type Hex = Uint8Array | string; - -// Generates public key from 32-byte private key. -// isCompressed=true by default, meaning 33-byte output. Set to false for 65b. -function getPublicKey(privateKey: Hex, isCompressed?: boolean): Uint8Array; -// Use: -// - `ProjectivePoint.fromPrivateKey(privateKey)` for Point instance -// - `ProjectivePoint.fromHex(publicKey)` to convert hex / bytes into Point. - -// Generates low-s deterministic-k RFC6979 ECDSA signature. -// Use with `extraEntropy: true` to improve security. -function sign( - messageHash: Hex, // message hash (not message) which would be signed - privateKey: Hex, // private key which will sign the hash - opts?: { lowS: boolean, extraEntropy: boolean | Hex } // optional params -): Signature; -function signAsync( - messageHash: Hex, - privateKey: Hex, - opts?: { lowS: boolean; extraEntropy: boolean | Hex } -): Promise; - -// Verifies ECDSA signature. -// lowS option Ensures a signature.s is in the lower-half of CURVE.n. -// Used in BTC, ETH. -// `{ lowS: false }` should only be used if you need OpenSSL-compatible signatures -function verify( - signature: Hex | Signature, // returned by the `sign` function - messageHash: Hex, // message hash (not message) that must be verified - publicKey: Hex, // public (not private) key - opts?: { lowS: boolean } // optional params; { lowS: true } by default -): boolean; - -// Computes ECDH (Elliptic Curve Diffie-Hellman) shared secret between -// key A and different key B. -function getSharedSecret( - privateKeyA: Uint8Array | string, // Alices's private key - publicKeyB: Uint8Array | string, // Bob's public key - isCompressed = true // optional arg. (default) true=33b key, false=65b. -): Uint8Array; -// Use `ProjectivePoint.fromHex(publicKeyB).multiply(privateKeyA)` for Point instance - -// Recover public key from Signature instance with `recovery` bit set -signature.recoverPublicKey( - msgHash: Uint8Array | string -): Uint8Array | undefined; -``` - -A bunch of useful **utilities** are also exposed: - -```typescript -type Bytes = Uint8Array; -export declare const etc: { - hexToBytes: (hex: string) => Bytes; - bytesToHex: (b: Bytes) => string; - concatBytes: (...arrs: Bytes[]) => Uint8Array; - bytesToNumberBE: (b: Bytes) => bigint; - numberToBytesBE: (num: bigint) => Bytes; - mod: (a: bigint, b?: bigint) => bigint; - invert: (num: bigint, md?: bigint) => bigint; - hmacSha256Async: (key: Bytes, ...msgs: Bytes[]) => Promise; - hmacSha256Sync: HmacFnSync; - hashToPrivateKey: (hash: Hex) => Bytes; - randomBytes: (len: number) => Bytes; -}; -export declare const utils: { - normPrivateKeyToScalar: (p: PrivKey) => bigint; - randomPrivateKey: () => Bytes; - isValidPrivateKey: (key: Hex) => boolean; - precompute(p: Point, windowSize?: number): Point; -}; -class ProjectivePoint { - readonly px: bigint; - readonly py: bigint; - readonly pz: bigint; - constructor(px: bigint, py: bigint, pz: bigint); - static readonly BASE: Point; - static readonly ZERO: Point; - static fromHex(hex: Hex): Point; - static fromPrivateKey(n: PrivKey): Point; - get x(): bigint; - get y(): bigint; - equals(other: Point): boolean; - add(other: Point): Point; - multiply(n: bigint): Point; - negate(): Point; - toAffine(): AffinePoint; - assertValidity(): Point; - toHex(isCompressed?: boolean): string; - toRawBytes(isCompressed?: boolean): Uint8Array; -} -class Signature { - readonly r: bigint; - readonly s: bigint; - readonly recovery?: number | undefined; - constructor(r: bigint, s: bigint, recovery?: number | undefined); - ok(): Signature; - static fromCompact(hex: Hex): Signature; - hasHighS(): boolean; - recoverPublicKey(msgh: Hex): Point; - toCompactRawBytes(): Uint8Array; - toCompactHex(): string; -} -CURVE // curve prime; order; equation params, generator coordinates -``` - -## Security - -The module is production-ready. -It is cross-tested against [noble-curves](https://github.com/paulmillr/noble-curves), -and has similar security. - -1. The current version is rewrite of v1, which has been audited by cure53: -[PDF](https://cure53.de/pentest-report_noble-lib.pdf) (funded by [Umbra.cash](https://umbra.cash) & community). -2. It's being fuzzed by [Guido Vranken's cryptofuzz](https://github.com/guidovranken/cryptofuzz): -run the fuzzer by yourself to check. - -Our EC multiplication is hardened to be algorithmically constant time. -We're using built-in JS `BigInt`, which is potentially vulnerable to -[timing attacks](https://en.wikipedia.org/wiki/Timing_attack) as -[per MDN](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/BigInt#cryptography). -But, _JIT-compiler_ and _Garbage Collector_ make "constant time" extremely hard -to achieve in a scripting language. Which means _any other JS library doesn't -use constant-time bigints_. Including bn.js or anything else. -Even statically typed Rust, a language without GC, -[makes it harder to achieve constant-time](https://www.chosenplaintext.ca/open-source/rust-timing-shield/security) -for some cases. If your goal is absolute security, don't use any JS lib — -including bindings to native ones. Use low-level libraries & languages. - -We consider infrastructure attacks like rogue NPM modules very important; -that's why it's crucial to minimize the amount of 3rd-party dependencies & native -bindings. If your app uses 500 dependencies, any dep could get hacked and you'll -be downloading malware with every `npm install`. Our goal is to minimize this attack vector. - -## Speed - -Use [noble-curves](https://github.com/paulmillr/noble-curves) if you need even higher performance. - -Benchmarks measured with Apple M2 on MacOS 13 with node.js 19. - - getPublicKey(utils.randomPrivateKey()) x 5,540 ops/sec @ 180μs/op - sign x 3,301 ops/sec @ 302μs/op - verify x 517 ops/sec @ 1ms/op - getSharedSecret x 433 ops/sec @ 2ms/op - recoverPublicKey x 526 ops/sec @ 1ms/op - Point.fromHex (decompression) x 8,415 ops/sec @ 118μs/op - -Compare to other libraries on M1 (`openssl` uses native bindings, not JS): - - elliptic#getPublicKey x 1,940 ops/sec - sjcl#getPublicKey x 211 ops/sec - - elliptic#sign x 1,808 ops/sec - sjcl#sign x 199 ops/sec - openssl#sign x 4,243 ops/sec - ecdsa#sign x 116 ops/sec - bip-schnorr#sign x 60 ops/sec - - elliptic#verify x 812 ops/sec - sjcl#verify x 166 ops/sec - openssl#verify x 4,452 ops/sec - ecdsa#verify x 80 ops/sec - bip-schnorr#verify x 56 ops/sec - - elliptic#ecdh x 971 ops/sec - -## Contributing - -1. Clone the repository. -2. `npm install` to install build dependencies like TypeScript -3. `npm run build` to compile TypeScript code -4. `npm test` to run jest on `test/index.ts` - -Special thanks to [Roman Koblov](https://github.com/romankoblov), who have -helped to improve scalar multiplication speed. - -## Upgrading - -noble-secp256k1 v2 features improved security and smaller attack surface. -The goal of v2 is to provide minimum possible JS library which is safe and fast. - -That means the library was reduced 4x, to just over 400 lines. In order to -achieve the goal, **some features were moved** to -[noble-curves](https://github.com/paulmillr/noble-curves), which is -even safer and faster drop-in replacement library with same API. -Switch to curves if you intend to keep using these features: - -- DER encoding: toDERHex, toDERRawBytes, signing / verification of DER sigs -- Schnorr signatures -- Using `utils.precompute()` for non-base point -- Support for environments which don't support bigint literals -- Common.js support -- Support for node.js 18 and older without [shim](#usage) - -Other changes for upgrading from @noble/secp256k1 1.7 to 2.0: - -- `getPublicKey` - - now produce 33-byte compressed signatures by default - - to use old behavior, which produced 65-byte uncompressed keys, set - argument `isCompressed` to `false`: `getPublicKey(priv, false)` -- `sign` - - is now sync; use `signAsync` for async version - - now returns `Signature` instance with `{ r, s, recovery }` properties - - `canonical` option was renamed to `lowS` - - `recovered` option has been removed because recovery bit is always returned now - - `der` option has been removed. There are 2 options: - 1. Use compact encoding: `fromCompact`, `toCompactRawBytes`, `toCompactHex`. - Compact encoding is simply a concatenation of 32-byte r and 32-byte s. - 2. If you must use DER encoding, switch to noble-curves (see above). -- `verify` - - `strict` option was renamed to `lowS` -- `getSharedSecret` - - now produce 33-byte compressed signatures by default - - to use old behavior, which produced 65-byte uncompressed keys, set - argument `isCompressed` to `false`: `getSharedSecret(a, b, false)` -- `recoverPublicKey(msg, sig, rec)` was changed to `sig.recoverPublicKey(msg)` -- `number` type for private keys have been removed: use `bigint` instead -- `Point` (2d xy) has been changed to `ProjectivePoint` (3d xyz) -- `utils` were split into `utils` (same api as in noble-curves) and - `etc` (`hmacSha256Sync` and others) - -## License - -MIT (c) Paul Miller [(https://paulmillr.com)](https://paulmillr.com), see LICENSE file. diff --git a/node_modules/@noble/secp256k1/index.d.ts b/node_modules/@noble/secp256k1/index.d.ts deleted file mode 100644 index d5ce6892..00000000 --- a/node_modules/@noble/secp256k1/index.d.ts +++ /dev/null @@ -1,94 +0,0 @@ -declare const CURVE: { - p: bigint; - n: bigint; - a: bigint; - b: bigint; - Gx: bigint; - Gy: bigint; -}; -type Bytes = Uint8Array; -type Hex = Bytes | string; -type PrivKey = Hex | bigint; -interface AffinePoint { - x: bigint; - y: bigint; -} -declare class Point { - readonly px: bigint; - readonly py: bigint; - readonly pz: bigint; - constructor(px: bigint, py: bigint, pz: bigint); - static readonly BASE: Point; - static readonly ZERO: Point; - static fromAffine(p: AffinePoint): Point; - static fromHex(hex: Hex): Point; - static fromPrivateKey(k: PrivKey): Point; - get x(): bigint; - get y(): bigint; - equals(other: Point): boolean; - negate(): Point; - double(): Point; - add(other: Point): Point; - mul(n: bigint, safe?: boolean): Point; - mulAddQUns(R: Point, u1: bigint, u2: bigint): Point; - toAffine(): AffinePoint; - assertValidity(): Point; - multiply(n: bigint): Point; - aff(): AffinePoint; - ok(): Point; - toHex(isCompressed?: boolean): string; - toRawBytes(isCompressed?: boolean): Uint8Array; -} -declare function getPublicKey(privKey: PrivKey, isCompressed?: boolean): Uint8Array; -declare class Signature { - readonly r: bigint; - readonly s: bigint; - readonly recovery?: number | undefined; - constructor(r: bigint, s: bigint, recovery?: number | undefined); - static fromCompact(hex: Hex): Signature; - assertValidity(): this; - addRecoveryBit(rec: number): Signature; - hasHighS(): boolean; - recoverPublicKey(msgh: Hex): Point; - toCompactRawBytes(): Uint8Array; - toCompactHex(): string; -} -type HmacFnSync = undefined | ((key: Bytes, ...msgs: Bytes[]) => Bytes); -declare function signAsync(msgh: Hex, priv: Hex, opts?: { - lowS?: boolean | undefined; - extraEntropy?: boolean | Hex | undefined; -}): Promise; -declare function sign(msgh: Hex, priv: Hex, opts?: { - lowS?: boolean | undefined; - extraEntropy?: boolean | Hex | undefined; -}): Signature; -type SigLike = { - r: bigint; - s: bigint; -}; -declare function verify(sig: Hex | SigLike, msgh: Hex, pub: Hex, opts?: { - lowS?: boolean | undefined; -}): boolean; -declare function getSharedSecret(privA: Hex, pubB: Hex, isCompressed?: boolean): Bytes; -declare function hashToPrivateKey(hash: Hex): Bytes; -declare const etc: { - hexToBytes: (hex: string) => Bytes; - bytesToHex: (b: Bytes) => string; - concatBytes: (...arrs: Bytes[]) => Uint8Array; - bytesToNumberBE: (b: Bytes) => bigint; - numberToBytesBE: (num: bigint) => Bytes; - mod: (a: bigint, b?: bigint) => bigint; - invert: (num: bigint, md?: bigint) => bigint; - hmacSha256Async: (key: Bytes, ...msgs: Bytes[]) => Promise; - hmacSha256Sync: HmacFnSync; - hashToPrivateKey: typeof hashToPrivateKey; - randomBytes: (len: number) => Bytes; -}; -declare const utils: { - normPrivateKeyToScalar: (p: PrivKey) => bigint; - isValidPrivateKey: (key: Hex) => boolean; - randomPrivateKey: () => Bytes; - precompute(w?: number, p?: Point): Point; -}; -export { getPublicKey, sign, signAsync, verify, CURVE, // Remove the export to easily use in REPL -getSharedSecret, etc, utils, Point as ProjectivePoint, Signature }; diff --git a/node_modules/@noble/secp256k1/index.js b/node_modules/@noble/secp256k1/index.js deleted file mode 100644 index 60b44649..00000000 --- a/node_modules/@noble/secp256k1/index.js +++ /dev/null @@ -1,510 +0,0 @@ -/*! noble-secp256k1 - MIT License (c) 2019 Paul Miller (paulmillr.com) */ -const B256 = 2n ** 256n; // secp256k1 is short weierstrass curve -const P = B256 - 0x1000003d1n; // curve's field prime -const N = B256 - 0x14551231950b75fc4402da1732fc9bebfn; // curve (group) order -const Gx = 0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798n; // base point x -const Gy = 0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8n; // base point y -const CURVE = { p: P, n: N, a: 0n, b: 7n, Gx, Gy }; // exported variables incl. a, b -const fLen = 32; // field / group byte length -const crv = (x) => mod(mod(x * x) * x + CURVE.b); // x³ + ax + b weierstrass formula; no a -const err = (m = '') => { throw new Error(m); }; // error helper, messes-up stack trace -const big = (n) => typeof n === 'bigint'; // is big integer -const str = (s) => typeof s === 'string'; // is string -const fe = (n) => big(n) && 0n < n && n < P; // is field element (invertible) -const ge = (n) => big(n) && 0n < n && n < N; // is group element -const au8 = (a, l) => // is Uint8Array (of specific length) - !(a instanceof Uint8Array) || (typeof l === 'number' && l > 0 && a.length !== l) ? - err('Uint8Array expected') : a; -const u8n = (data) => new Uint8Array(data); // creates Uint8Array -const toU8 = (a, len) => au8(str(a) ? h2b(a) : u8n(a), len); // norm(hex/u8a) to u8a -const mod = (a, b = P) => { let r = a % b; return r >= 0n ? r : b + r; }; // mod division -const isPoint = (p) => (p instanceof Point ? p : err('Point expected')); // is 3d point -let Gpows = undefined; // precomputes for base point G -class Point { - constructor(px, py, pz) { - this.px = px; - this.py = py; - this.pz = pz; - } //3d=less inversions - static fromAffine(p) { return new Point(p.x, p.y, 1n); } - static fromHex(hex) { - hex = toU8(hex); // convert hex string to Uint8Array - let p = undefined; - const head = hex[0], tail = hex.subarray(1); // first byte is prefix, rest is data - const x = slcNum(tail, 0, fLen), len = hex.length; // next 32 bytes are x coordinate - if (len === 33 && [0x02, 0x03].includes(head)) { // compressed points: 33b, start - if (!fe(x)) - err('Point hex invalid: x not FE'); // with byte 0x02 or 0x03. Check if 0 0n; d = d.double(), n >>= 1n) { // double-and-add ladder - if (n & 1n) - p = p.add(d); // if bit is present, add to point - else if (safe) - f = f.add(d); // if not, add to fake for timing safety - } - return p; - } - mulAddQUns(R, u1, u2) { - return this.mul(u1, false).add(R.mul(u2, false)).ok(); // Unsafe: do NOT use for stuff related - } // to private keys. Doesn't use Shamir trick - toAffine() { - const { px: x, py: y, pz: z } = this; // (x, y, z) ∋ (x=x/z, y=y/z) - if (this.equals(I)) - return { x: 0n, y: 0n }; // fast-path for zero point - if (z === 1n) - return { x, y }; // if z is 1, pass affine coordinates as-is - const iz = inv(z); // z^-1: invert z - if (mod(z * iz) !== 1n) - err('invalid inverse'); // (z * z^-1) must be 1, otherwise bad math - return { x: mod(x * iz), y: mod(y * iz) }; // x = x*z^-1; y = y*z^-1 - } - assertValidity() { - const { x, y } = this.aff(); // convert to 2d xy affine point. - if (!fe(x) || !fe(y)) - err('Point invalid: x or y'); // x and y must be in range 0 < n < P - return mod(y * y) === crv(x) ? // y² = x³ + ax + b, must be equal - this : err('Point invalid: not on curve'); - } - multiply(n) { return this.mul(n); } // Aliases to compress code - aff() { return this.toAffine(); } - ok() { return this.assertValidity(); } - toHex(isCompressed = true) { - const { x, y } = this.aff(); // convert to 2d xy affine point - const head = isCompressed ? ((y & 1n) === 0n ? '02' : '03') : '04'; // 0x02, 0x03, 0x04 prefix - return head + n2h(x) + (isCompressed ? '' : n2h(y)); // prefix||x and ||y - } - toRawBytes(isCompressed = true) { - return h2b(this.toHex(isCompressed)); // re-use toHex(), convert hex to bytes - } -} -Point.BASE = new Point(Gx, Gy, 1n); // Generator / base point -Point.ZERO = new Point(0n, 1n, 0n); // Identity / zero point -const { BASE: G, ZERO: I } = Point; // Generator, identity points -const padh = (n, pad) => n.toString(16).padStart(pad, '0'); -const b2h = (b) => Array.from(b).map(e => padh(e, 2)).join(''); // bytes to hex -const h2b = (hex) => { - const l = hex.length; // error if not string, - if (!str(hex) || l % 2) - err('hex invalid 1'); // or has odd length like 3, 5. - const arr = u8n(l / 2); // create result array - for (let i = 0; i < arr.length; i++) { - const j = i * 2; - const h = hex.slice(j, j + 2); // hexByte. slice is faster than substr - const b = Number.parseInt(h, 16); // byte, created from string part - if (Number.isNaN(b) || b < 0) - err('hex invalid 2'); // byte must be valid 0 <= byte < 256 - arr[i] = b; - } - return arr; -}; -const b2n = (b) => BigInt('0x' + (b2h(b) || '0')); // bytes to number -const slcNum = (b, from, to) => b2n(b.slice(from, to)); // slice bytes num -const n2b = (num) => { - return big(num) && num >= 0n && num < B256 ? h2b(padh(num, 2 * fLen)) : err('bigint expected'); -}; -const n2h = (num) => b2h(n2b(num)); // number to 32b hex -const concatB = (...arrs) => { - const r = u8n(arrs.reduce((sum, a) => sum + au8(a).length, 0)); // create u8a of summed length - let pad = 0; // walk through each array, - arrs.forEach(a => { r.set(a, pad); pad += a.length; }); // ensure they have proper type - return r; -}; -const inv = (num, md = P) => { - if (num === 0n || md <= 0n) - err('no inverse n=' + num + ' mod=' + md); // no neg exponent for now - let a = mod(num, md), b = md, x = 0n, y = 1n, u = 1n, v = 0n; - while (a !== 0n) { // uses euclidean gcd algorithm - const q = b / a, r = b % a; // not constant-time - const m = x - u * q, n = y - v * q; - b = a, a = r, x = u, y = v, u = m, v = n; - } - return b === 1n ? mod(x, md) : err('no inverse'); // b is gcd at this point -}; -const sqrt = (n) => { - let r = 1n; // So, a special, fast case. Paper: "Square Roots from 1;24,51,10 to Dan Shanks". - for (let num = n, e = (P + 1n) / 4n; e > 0n; e >>= 1n) { // powMod: modular exponentiation. - if (e & 1n) - r = (r * num) % P; // Uses exponentiation by squaring. - num = (num * num) % P; // Not constant-time. - } - return mod(r * r) === n ? r : err('sqrt invalid'); // check if result is valid -}; -const toPriv = (p) => { - if (!big(p)) - p = b2n(toU8(p, fLen)); // convert to bigint when bytes - return ge(p) ? p : err('private key out of range'); // check if bigint is in range -}; -const moreThanHalfN = (n) => n > (N >> 1n); // if a number is bigger than CURVE.n/2 -function getPublicKey(privKey, isCompressed = true) { - return Point.fromPrivateKey(privKey).toRawBytes(isCompressed); // 33b or 65b output -} -class Signature { - constructor(r, s, recovery) { - this.r = r; - this.s = s; - this.recovery = recovery; - this.assertValidity(); // recovery bit is optional when - } // constructed outside. - static fromCompact(hex) { - hex = toU8(hex, 64); // compact repr is (32b r)||(32b s) - return new Signature(slcNum(hex, 0, fLen), slcNum(hex, fLen, 2 * fLen)); - } - assertValidity() { return ge(this.r) && ge(this.s) ? this : err(); } // 0 < r or s < CURVE.n - addRecoveryBit(rec) { return new Signature(this.r, this.s, rec); } - hasHighS() { return moreThanHalfN(this.s); } - recoverPublicKey(msgh) { - const { r, s, recovery: rec } = this; // secg.org/sec1-v2.pdf 4.1.6 - if (![0, 1, 2, 3].includes(rec)) - err('recovery id invalid'); // check recovery id - const h = bits2int_modN(toU8(msgh, 32)); // Truncate hash - const radj = rec === 2 || rec === 3 ? r + N : r; // If rec was 2 or 3, q.x is bigger than n - if (radj >= P) - err('q.x invalid'); // ensure q.x is still a field element - const head = (rec & 1) === 0 ? '02' : '03'; // head is 0x02 or 0x03 - const R = Point.fromHex(head + n2h(radj)); // concat head + hex repr of r - const ir = inv(radj, N); // r^-1 - const u1 = mod(-h * ir, N); // -hr^-1 - const u2 = mod(s * ir, N); // sr^-1 - return G.mulAddQUns(R, u1, u2); // (sr^-1)R-(hr^-1)G = -(hr^-1)G + (sr^-1) - } - toCompactRawBytes() { return h2b(this.toCompactHex()); } // Uint8Array 64b compact repr - toCompactHex() { return n2h(this.r) + n2h(this.s); } // hex 64b compact repr -} -const bits2int = (bytes) => { - const delta = bytes.length * 8 - 256; // RFC suggests optional truncating via bits2octets - const num = b2n(bytes); // FIPS 186-4 4.6 suggests the leftmost min(nBitLen, outLen) bits, which - return delta > 0 ? num >> BigInt(delta) : num; // matches bits2int. bits2int can produce res>N. -}; -const bits2int_modN = (bytes) => { - return mod(bits2int(bytes), N); // with 0: BAD for trunc as per RFC vectors -}; -const i2o = (num) => n2b(num); // int to octets -const cr = () => // We support: 1) browsers 2) node.js 19+ 3) deno, other envs with crypto - typeof globalThis === 'object' && 'crypto' in globalThis ? globalThis.crypto : undefined; -let _hmacSync; // Can be redefined by use in utils; built-ins don't provide it -const optS = { lowS: true }; // opts for sign() -const optV = { lowS: true }; // standard opts for verify() -function prepSig(msgh, priv, opts = optS) { - if (['der', 'recovered', 'canonical'].some(k => k in opts)) // Ban legacy options - err('sign() legacy options not supported'); - let { lowS } = opts; // generates low-s sigs by default - if (lowS == null) - lowS = true; // RFC6979 3.2: we skip step A - const h1i = bits2int_modN(toU8(msgh)); // msg bigint - const h1o = i2o(h1i); // msg octets - const d = toPriv(priv); // validate private key, convert to bigint - const seed = [i2o(d), h1o]; // Step D of RFC6979 3.2 - let ent = opts.extraEntropy; // RFC6979 3.6: additional k' (optional) - if (ent) { // K = HMAC_K(V || 0x00 || int2octets(x) || bits2octets(h1) || k') - if (ent === true) - ent = etc.randomBytes(fLen); // if true, use CSPRNG to generate data - const e = toU8(ent); // convert Hex|Bytes to Bytes - if (e.length !== fLen) - err(); // Expected 32 bytes of extra data - seed.push(e); - } - const m = h1i; // convert msg to bigint - const k2sig = (kBytes) => { - const k = bits2int(kBytes); // RFC6979 method. - if (!ge(k)) - return; // Check 0 < k < CURVE.n - const ik = inv(k, N); // k^-1 mod n, NOT mod P - const q = G.mul(k).aff(); // q = Gk - const r = mod(q.x, N); // r = q.x mod n - if (r === 0n) - return; // r=0 invalid - const s = mod(ik * mod(m + mod(d * r, N), N), N); // s = k^-1(m + rd) mod n - if (s === 0n) - return; // s=0 invalid - let normS = s; // normalized S - let rec = (q.x === r ? 0 : 2) | Number(q.y & 1n); // recovery bit - if (lowS && moreThanHalfN(s)) { // if lowS was passed, ensure s is always - normS = mod(-s, N); // in the bottom half of CURVE.n - rec ^= 1; - } - return new Signature(r, normS, rec); // use normS, not s - }; - return { seed: concatB(...seed), k2sig }; -} -function hmacDrbg(asynchronous) { - let v = u8n(fLen); // Minimal non-full-spec HMAC-DRBG from NIST 800-90 for RFC6979 sigs. - let k = u8n(fLen); // Steps B, C of RFC6979 3.2: set hashLen, in our case always same - let i = 0; // Iterations counter, will throw when over 1000 - const reset = () => { v.fill(1); k.fill(0); i = 0; }; - const _e = 'drbg: tried 1000 values'; - if (asynchronous) { // asynchronous=true - const h = (...b) => etc.hmacSha256Async(k, v, ...b); // hmac(k)(v, ...values) - const reseed = async (seed = u8n()) => { - k = await h(u8n([0x00]), seed); // k = hmac(K || V || 0x00 || seed) - v = await h(); // v = hmac(K || V) - if (seed.length === 0) - return; - k = await h(u8n([0x01]), seed); // k = hmac(K || V || 0x01 || seed) - v = await h(); // v = hmac(K || V) - }; - const gen = async () => { - if (i++ >= 1000) - err(_e); - v = await h(); // v = hmac(K || V) - return v; - }; - return async (seed, pred) => { - reset(); // the returned fn, don't, it's: 1. slower (JIT). 2. unsafe (async race conditions) - await reseed(seed); // Steps D-G - let res = undefined; // Step H: grind until k is in [1..n-1] - while (!(res = pred(await gen()))) - await reseed(); // test predicate until it returns ok - reset(); - return res; - }; - } - else { - const h = (...b) => { - const f = _hmacSync; - if (!f) - err('etc.hmacSha256Sync not set'); - return f(k, v, ...b); // hmac(k)(v, ...values) - }; - const reseed = (seed = u8n()) => { - k = h(u8n([0x00]), seed); // k = hmac(k || v || 0x00 || seed) - v = h(); // v = hmac(k || v) - if (seed.length === 0) - return; - k = h(u8n([0x01]), seed); // k = hmac(k || v || 0x01 || seed) - v = h(); // v = hmac(k || v) - }; - const gen = () => { - if (i++ >= 1000) - err(_e); - v = h(); // v = hmac(k || v) - return v; - }; - return (seed, pred) => { - reset(); - reseed(seed); // Steps D-G - let res = undefined; // Step H: grind until k is in [1..n-1] - while (!(res = pred(gen()))) - reseed(); // test predicate until it returns ok - reset(); - return res; - }; - } -} -// ECDSA signature generation. via secg.org/sec1-v2.pdf 4.1.2 + RFC6979 deterministic k -async function signAsync(msgh, priv, opts = optS) { - const { seed, k2sig } = prepSig(msgh, priv, opts); // Extract arguments for hmac-drbg - return hmacDrbg(true)(seed, k2sig); // Re-run hmac-drbg until k2sig returns ok -} -function sign(msgh, priv, opts = optS) { - const { seed, k2sig } = prepSig(msgh, priv, opts); // Extract arguments for hmac-drbg - return hmacDrbg(false)(seed, k2sig); // Re-run hmac-drbg until k2sig returns ok -} -function verify(sig, msgh, pub, opts = optV) { - let { lowS } = opts; // ECDSA signature verification - if (lowS == null) - lowS = true; // Default lowS=true - if ('strict' in opts) - err('verify() legacy options not supported'); // legacy param - let sig_, h, P; // secg.org/sec1-v2.pdf 4.1.4 - const rs = sig && typeof sig === 'object' && 'r' in sig; // Previous ver supported DER sigs. We - if (!rs && (toU8(sig).length !== 2 * fLen)) // throw error when DER is suspected now. - err('signature must be 64 bytes'); - try { - sig_ = rs ? new Signature(sig.r, sig.s).assertValidity() : Signature.fromCompact(sig); - h = bits2int_modN(toU8(msgh, fLen)); // Truncate hash - P = pub instanceof Point ? pub.ok() : Point.fromHex(pub); // Validate public key - } - catch (e) { - return false; - } // Check sig for validity in both cases - if (!sig_) - return false; - const { r, s } = sig_; - if (lowS && moreThanHalfN(s)) - return false; // lowS bans sig.s >= CURVE.n/2 - let R; - try { - const is = inv(s, N); // s^-1 - const u1 = mod(h * is, N); // u1 = hs^-1 mod n - const u2 = mod(r * is, N); // u2 = rs^-1 mod n - R = G.mulAddQUns(P, u1, u2).aff(); // R = u1⋅G + u2⋅P - } - catch (error) { - return false; - } - if (!R) - return false; // stop if R is identity / zero point - const v = mod(R.x, N); // <== The weird ECDSA part. R.x must be in N's field, not P's - return v === r; // mod(R.x, n) == r -} -function getSharedSecret(privA, pubB, isCompressed = true) { - return Point.fromHex(pubB).mul(toPriv(privA)).toRawBytes(isCompressed); // ECDH -} -function hashToPrivateKey(hash) { - hash = toU8(hash); // produces private keys with modulo bias - const minLen = fLen + 8; // being neglible. - if (hash.length < minLen || hash.length > 1024) - err('expected proper params'); - const num = mod(b2n(hash), N - 1n) + 1n; // takes at least n+8 bytes - return n2b(num); -} -const etc = { - hexToBytes: h2b, bytesToHex: b2h, - concatBytes: concatB, bytesToNumberBE: b2n, numberToBytesBE: n2b, - mod, invert: inv, - hmacSha256Async: async (key, ...msgs) => { - const crypto = cr(); // HMAC-SHA256 async. No sync built-in! - if (!crypto) - return err('etc.hmacSha256Async not set'); // Uses webcrypto: native cryptography. - const s = crypto.subtle; - const k = await s.importKey('raw', key, { name: 'HMAC', hash: { name: 'SHA-256' } }, false, ['sign']); - return u8n(await s.sign('HMAC', k, concatB(...msgs))); - }, - hmacSha256Sync: _hmacSync, - hashToPrivateKey, - randomBytes: (len) => { - const crypto = cr(); // Can be shimmed in node.js <= 18 to prevent error: - // import { webcrypto } from 'node:crypto'; - // if (!globalThis.crypto) globalThis.crypto = webcrypto; - if (!crypto) - err('crypto.getRandomValues must be defined'); - return crypto.getRandomValues(u8n(len)); - }, -}; -const utils = { - normPrivateKeyToScalar: toPriv, - isValidPrivateKey: (key) => { try { - return !!toPriv(key); - } - catch (e) { - return false; - } }, - randomPrivateKey: () => hashToPrivateKey(etc.randomBytes(fLen + 8)), - precompute(w = 8, p = G) { p.multiply(3n); return p; }, // no-op -}; -Object.defineProperties(etc, { hmacSha256Sync: { - configurable: false, get() { return _hmacSync; }, set(f) { if (!_hmacSync) - _hmacSync = f; }, - } }); -const W = 8; // Precomputes-related code. W = window size -const precompute = () => { - const points = []; // 10x sign(), 2x verify(). To achieve this, - const windows = 256 / W + 1; // app needs to spend 40ms+ to calculate - let p = G, b = p; // a lot of points related to base point G. - for (let w = 0; w < windows; w++) { // Points are stored in array and used - b = p; // any time Gx multiplication is done. - points.push(b); // They consume 16-32 MiB of RAM. - for (let i = 1; i < 2 ** (W - 1); i++) { - b = b.add(p); - points.push(b); - } - p = b.double(); // Precomputes don't speed-up getSharedKey, - } // which multiplies user point by scalar, - return points; // when precomputes are using base point -}; -const wNAF = (n) => { - // Compared to other point mult methods, - const comp = Gpows || (Gpows = precompute()); // stores 2x less points using subtraction - const neg = (cnd, p) => { let n = p.negate(); return cnd ? n : p; }; // negate - let p = I, f = G; // f must be G, or could become I in the end - const windows = 1 + 256 / W; // W=8 17 windows - const wsize = 2 ** (W - 1); // W=8 128 window size - const mask = BigInt(2 ** W - 1); // W=8 will create mask 0b11111111 - const maxNum = 2 ** W; // W=8 256 - const shiftBy = BigInt(W); // W=8 8 - for (let w = 0; w < windows; w++) { - const off = w * wsize; - let wbits = Number(n & mask); // extract W bits. - n >>= shiftBy; // shift number by W bits. - if (wbits > wsize) { - wbits -= maxNum; - n += 1n; - } // split if bits > max: +224 => 256-32 - const off1 = off, off2 = off + Math.abs(wbits) - 1; // offsets, evaluate both - const cnd1 = w % 2 !== 0, cnd2 = wbits < 0; // conditions, evaluate both - if (wbits === 0) { - f = f.add(neg(cnd1, comp[off1])); // bits are 0: add garbage to fake point - } - else { // ^ can't add off2, off2 = I - p = p.add(neg(cnd2, comp[off2])); // bits are 1: add to result point - } - } - return { p, f }; // return both real and fake points for JIT -}; // !! you can disable precomputes by commenting-out call of the wNAF() inside Point#mul() -export { getPublicKey, sign, signAsync, verify, CURVE, // Remove the export to easily use in REPL -getSharedSecret, etc, utils, Point as ProjectivePoint, Signature }; // envs like browser console diff --git a/node_modules/@noble/secp256k1/index.ts b/node_modules/@noble/secp256k1/index.ts deleted file mode 100644 index 3f8288bf..00000000 --- a/node_modules/@noble/secp256k1/index.ts +++ /dev/null @@ -1,431 +0,0 @@ -/*! noble-secp256k1 - MIT License (c) 2019 Paul Miller (paulmillr.com) */ -const B256 = 2n ** 256n; // secp256k1 is short weierstrass curve -const P = B256 - 0x1000003d1n; // curve's field prime -const N = B256 - 0x14551231950b75fc4402da1732fc9bebfn; // curve (group) order -const Gx = 0x79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798n; // base point x -const Gy = 0x483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8n; // base point y -const CURVE = {p: P, n: N, a: 0n, b: 7n, Gx, Gy};// exported variables incl. a, b -const fLen = 32; // field / group byte length -type Bytes = Uint8Array; type Hex = Bytes | string; type PrivKey = Hex | bigint; -const crv = (x: bigint) => mod(mod(x * x) * x + CURVE.b); // x³ + ax + b weierstrass formula; no a -const err = (m = ''): never => { throw new Error(m); }; // error helper, messes-up stack trace -const big = (n: unknown): n is bigint => typeof n === 'bigint'; // is big integer -const str = (s: unknown): s is string => typeof s === 'string'; // is string -const fe = (n: bigint) => big(n) && 0n < n && n < P; // is field element (invertible) -const ge = (n: bigint) => big(n) && 0n < n && n < N; // is group element -const au8 = (a: unknown, l?: number): Bytes => // is Uint8Array (of specific length) - !(a instanceof Uint8Array) || (typeof l === 'number' && l > 0 && a.length !== l) ? - err('Uint8Array expected') : a; -const u8n = (data?: any) => new Uint8Array(data); // creates Uint8Array -const toU8 = (a: Hex, len?: number) => au8(str(a) ? h2b(a) : u8n(a), len); // norm(hex/u8a) to u8a -const mod = (a: bigint, b = P) => { let r = a % b; return r >= 0n ? r : b + r; }; // mod division -const isPoint = (p: unknown) => (p instanceof Point ? p : err('Point expected')); // is 3d point -let Gpows: Point[] | undefined = undefined; // precomputes for base point G -interface AffinePoint { x: bigint, y: bigint } // Point in 2d xy affine coordinates -class Point { // Point in 3d xyz projective coordinates - constructor(readonly px: bigint, readonly py: bigint, readonly pz: bigint) {} //3d=less inversions - static readonly BASE = new Point(Gx, Gy, 1n); // Generator / base point - static readonly ZERO = new Point(0n, 1n, 0n); // Identity / zero point - static fromAffine(p: AffinePoint) { return new Point(p.x, p.y, 1n); } - static fromHex(hex: Hex): Point { // Convert Uint8Array or hex string to Point - hex = toU8(hex); // convert hex string to Uint8Array - let p: Point | undefined = undefined; - const head = hex[0], tail = hex.subarray(1); // first byte is prefix, rest is data - const x = slcNum(tail, 0, fLen), len = hex.length; // next 32 bytes are x coordinate - if (len === 33 && [0x02, 0x03].includes(head)) { // compressed points: 33b, start - if (!fe(x)) err('Point hex invalid: x not FE'); // with byte 0x02 or 0x03. Check if 0 0n; d = d.double(), n >>= 1n) { // double-and-add ladder - if (n & 1n) p = p.add(d); // if bit is present, add to point - else if (safe) f = f.add(d); // if not, add to fake for timing safety - } - return p; - } - mulAddQUns(R: Point, u1: bigint, u2: bigint) { // Double scalar mult. Q = u1⋅G + u2⋅R. - return this.mul(u1, false).add(R.mul(u2, false)).ok(); // Unsafe: do NOT use for stuff related - } // to private keys. Doesn't use Shamir trick - toAffine(): AffinePoint { // Convert point to 2d xy affine point. - const { px: x, py: y, pz: z } = this; // (x, y, z) ∋ (x=x/z, y=y/z) - if (this.equals(I)) return { x: 0n, y: 0n }; // fast-path for zero point - if (z === 1n) return { x, y }; // if z is 1, pass affine coordinates as-is - const iz = inv(z); // z^-1: invert z - if (mod(z * iz) !== 1n) err('invalid inverse'); // (z * z^-1) must be 1, otherwise bad math - return { x: mod(x * iz), y: mod(y * iz) }; // x = x*z^-1; y = y*z^-1 - } - assertValidity(): Point { // Checks if the point is valid and on-curve - const { x, y } = this.aff(); // convert to 2d xy affine point. - if (!fe(x) || !fe(y)) err('Point invalid: x or y'); // x and y must be in range 0 < n < P - return mod(y * y) === crv(x) ? // y² = x³ + ax + b, must be equal - this : err('Point invalid: not on curve'); - } - multiply(n: bigint) { return this.mul(n); } // Aliases to compress code - aff() { return this.toAffine(); } - ok() { return this.assertValidity(); } - toHex(isCompressed = true) { // Encode point to hex string. - const { x, y } = this.aff(); // convert to 2d xy affine point - const head = isCompressed ? ((y & 1n) === 0n ? '02' : '03') : '04'; // 0x02, 0x03, 0x04 prefix - return head + n2h(x) + (isCompressed ? '' : n2h(y));// prefix||x and ||y - } - toRawBytes(isCompressed = true) { // Encode point to Uint8Array. - return h2b(this.toHex(isCompressed)); // re-use toHex(), convert hex to bytes - } -} -const { BASE: G, ZERO: I } = Point; // Generator, identity points -const padh = (n: number | bigint, pad: number) => n.toString(16).padStart(pad, '0'); -const b2h = (b: Bytes): string => Array.from(b).map(e => padh(e, 2)).join(''); // bytes to hex -const h2b = (hex: string): Bytes => { // hex to bytes - const l = hex.length; // error if not string, - if (!str(hex) || l % 2) err('hex invalid 1'); // or has odd length like 3, 5. - const arr = u8n(l / 2); // create result array - for (let i = 0; i < arr.length; i++) { - const j = i * 2; - const h = hex.slice(j, j + 2); // hexByte. slice is faster than substr - const b = Number.parseInt(h, 16); // byte, created from string part - if (Number.isNaN(b) || b < 0) err('hex invalid 2'); // byte must be valid 0 <= byte < 256 - arr[i] = b; - } - return arr; -}; -const b2n = (b: Bytes): bigint => BigInt('0x' + (b2h(b) || '0')); // bytes to number -const slcNum = (b: Bytes, from: number, to: number) => b2n(b.slice(from, to)); // slice bytes num -const n2b = (num: bigint): Bytes => { // number to 32bytes. mustbe 0 <= num < B256 - return big(num) && num >= 0n && num < B256 ? h2b(padh(num, 2 * fLen)) : err('bigint expected'); -}; -const n2h = (num: bigint): string => b2h(n2b(num)); // number to 32b hex -const concatB = (...arrs: Bytes[]) => { // concatenate Uint8Array-s - const r = u8n(arrs.reduce((sum, a) => sum + au8(a).length, 0)); // create u8a of summed length - let pad = 0; // walk through each array, - arrs.forEach(a => {r.set(a, pad); pad += a.length}); // ensure they have proper type - return r; -}; -const inv = (num: bigint, md = P): bigint => { // modular inversion - if (num === 0n || md <= 0n) err('no inverse n=' + num + ' mod=' + md); // no neg exponent for now - let a = mod(num, md), b = md, x = 0n, y = 1n, u = 1n, v = 0n; - while (a !== 0n) { // uses euclidean gcd algorithm - const q = b / a, r = b % a; // not constant-time - const m = x - u * q, n = y - v * q; - b = a, a = r, x = u, y = v, u = m, v = n; - } - return b === 1n ? mod(x, md) : err('no inverse'); // b is gcd at this point -}; -const sqrt = (n: bigint) => { // √n = n^((p+1)/4) for fields p = 3 mod 4 - let r = 1n; // So, a special, fast case. Paper: "Square Roots from 1;24,51,10 to Dan Shanks". - for (let num = n, e = (P + 1n) / 4n; e > 0n; e >>= 1n) { // powMod: modular exponentiation. - if (e & 1n) r = (r * num) % P; // Uses exponentiation by squaring. - num = (num * num) % P; // Not constant-time. - } - return mod(r * r) === n ? r : err('sqrt invalid'); // check if result is valid -}; -const toPriv = (p: PrivKey): bigint => { // normalize private key to bigint - if (!big(p)) p = b2n(toU8(p, fLen)); // convert to bigint when bytes - return ge(p) ? p : err('private key out of range'); // check if bigint is in range -}; -const moreThanHalfN = (n: bigint): boolean => n > (N >> 1n) // if a number is bigger than CURVE.n/2 -function getPublicKey(privKey: PrivKey, isCompressed = true) { // Make public key from priv - return Point.fromPrivateKey(privKey).toRawBytes(isCompressed); // 33b or 65b output -} -class Signature { // ECDSA Signature class - constructor(readonly r: bigint, readonly s: bigint, readonly recovery?: number) { - this.assertValidity(); // recovery bit is optional when - } // constructed outside. - static fromCompact(hex: Hex) { // create signature from 64b compact repr - hex = toU8(hex, 64); // compact repr is (32b r)||(32b s) - return new Signature(slcNum(hex, 0, fLen), slcNum(hex, fLen, 2 * fLen)); - } - assertValidity() { return ge(this.r) && ge(this.s) ? this : err(); } // 0 < r or s < CURVE.n - addRecoveryBit(rec: number) { return new Signature(this.r, this.s, rec); } - hasHighS() { return moreThanHalfN(this.s); } - recoverPublicKey(msgh: Hex): Point { // ECDSA public key recovery - const { r, s, recovery: rec } = this; // secg.org/sec1-v2.pdf 4.1.6 - if (![0, 1, 2, 3].includes(rec!)) err('recovery id invalid'); // check recovery id - const h = bits2int_modN(toU8(msgh, 32)); // Truncate hash - const radj = rec === 2 || rec === 3 ? r + N : r; // If rec was 2 or 3, q.x is bigger than n - if (radj >= P) err('q.x invalid'); // ensure q.x is still a field element - const head = (rec! & 1) === 0 ? '02' : '03'; // head is 0x02 or 0x03 - const R = Point.fromHex(head + n2h(radj)); // concat head + hex repr of r - const ir = inv(radj, N); // r^-1 - const u1 = mod(-h * ir, N); // -hr^-1 - const u2 = mod(s * ir, N); // sr^-1 - return G.mulAddQUns(R, u1, u2); // (sr^-1)R-(hr^-1)G = -(hr^-1)G + (sr^-1) - } - toCompactRawBytes() { return h2b(this.toCompactHex()); } // Uint8Array 64b compact repr - toCompactHex() { return n2h(this.r) + n2h(this.s); } // hex 64b compact repr -} -const bits2int = (bytes: Uint8Array): bigint => { // RFC6979: ensure ECDSA msg is X bytes. - const delta = bytes.length * 8 - 256; // RFC suggests optional truncating via bits2octets - const num = b2n(bytes); // FIPS 186-4 4.6 suggests the leftmost min(nBitLen, outLen) bits, which - return delta > 0 ? num >> BigInt(delta) : num; // matches bits2int. bits2int can produce res>N. -}; -const bits2int_modN = (bytes: Uint8Array): bigint => { // int2octets can't be used; pads small msgs - return mod(bits2int(bytes), N); // with 0: BAD for trunc as per RFC vectors -}; -const i2o = (num: bigint): Bytes => n2b(num); // int to octets -declare const globalThis: Record | undefined; // Typescript symbol present in browsers -const cr = () => // We support: 1) browsers 2) node.js 19+ 3) deno, other envs with crypto - typeof globalThis === 'object' && 'crypto' in globalThis ? globalThis.crypto : undefined; -type HmacFnSync = undefined | ((key: Bytes, ...msgs: Bytes[]) => Bytes); -let _hmacSync: HmacFnSync; // Can be redefined by use in utils; built-ins don't provide it -const optS: { lowS?: boolean; extraEntropy?: boolean | Hex; } = { lowS: true }; // opts for sign() -const optV: { lowS?: boolean } = { lowS: true }; // standard opts for verify() -type BC = { seed: Bytes, k2sig : (kb: Bytes) => Signature | undefined }; // Bytes+predicate checker -function prepSig(msgh: Hex, priv: Hex, opts = optS): BC { // prepare for RFC6979 sig generation - if (['der', 'recovered', 'canonical'].some(k => k in opts)) // Ban legacy options - err('sign() legacy options not supported'); - let { lowS } = opts; // generates low-s sigs by default - if (lowS == null) lowS = true; // RFC6979 3.2: we skip step A - const h1i = bits2int_modN(toU8(msgh)); // msg bigint - const h1o = i2o(h1i); // msg octets - const d = toPriv(priv); // validate private key, convert to bigint - const seed = [i2o(d), h1o]; // Step D of RFC6979 3.2 - let ent = opts.extraEntropy; // RFC6979 3.6: additional k' (optional) - if (ent) { // K = HMAC_K(V || 0x00 || int2octets(x) || bits2octets(h1) || k') - if (ent === true) ent = etc.randomBytes(fLen); // if true, use CSPRNG to generate data - const e = toU8(ent); // convert Hex|Bytes to Bytes - if (e.length !== fLen) err(); // Expected 32 bytes of extra data - seed.push(e); - } - const m = h1i; // convert msg to bigint - const k2sig = (kBytes: Bytes): Signature | undefined => { // Transform k into Signature. - const k = bits2int(kBytes); // RFC6979 method. - if (!ge(k)) return; // Check 0 < k < CURVE.n - const ik = inv(k, N); // k^-1 mod n, NOT mod P - const q = G.mul(k).aff(); // q = Gk - const r = mod(q.x, N); // r = q.x mod n - if (r === 0n) return; // r=0 invalid - const s = mod(ik * mod(m + mod(d * r, N), N), N); // s = k^-1(m + rd) mod n - if (s === 0n) return; // s=0 invalid - let normS = s; // normalized S - let rec = (q.x === r ? 0 : 2) | Number(q.y & 1n); // recovery bit - if (lowS && moreThanHalfN(s)) { // if lowS was passed, ensure s is always - normS = mod(-s, N); // in the bottom half of CURVE.n - rec ^= 1; - } - return new Signature(r, normS, rec); // use normS, not s - }; - return { seed: concatB(...seed), k2sig } -} -type Pred = (v: Uint8Array) => T | undefined; -function hmacDrbg(asynchronous: true): (seed: Bytes, predicate: Pred) => Promise; -function hmacDrbg(asynchronous: false): (seed: Bytes, predicate: Pred) => T; -function hmacDrbg(asynchronous: boolean) { // HMAC-DRBG async - let v = u8n(fLen); // Minimal non-full-spec HMAC-DRBG from NIST 800-90 for RFC6979 sigs. - let k = u8n(fLen); // Steps B, C of RFC6979 3.2: set hashLen, in our case always same - let i = 0; // Iterations counter, will throw when over 1000 - const reset = () => { v.fill(1); k.fill(0); i = 0; }; - const _e = 'drbg: tried 1000 values'; - if (asynchronous) { // asynchronous=true - const h = (...b: Bytes[]) => etc.hmacSha256Async(k, v, ...b); // hmac(k)(v, ...values) - const reseed = async (seed = u8n()) => { // HMAC-DRBG reseed() function. Steps D-G - k = await h(u8n([0x00]), seed); // k = hmac(K || V || 0x00 || seed) - v = await h(); // v = hmac(K || V) - if (seed.length === 0) return; - k = await h(u8n([0x01]), seed); // k = hmac(K || V || 0x01 || seed) - v = await h(); // v = hmac(K || V) - }; - const gen = async () => { // HMAC-DRBG generate() function - if (i++ >= 1000) err(_e); - v = await h(); // v = hmac(K || V) - return v; - }; - return async (seed: Bytes, pred: Pred): Promise => { // Even though it feels safe to reuse - reset(); // the returned fn, don't, it's: 1. slower (JIT). 2. unsafe (async race conditions) - await reseed(seed); // Steps D-G - let res: T | undefined = undefined; // Step H: grind until k is in [1..n-1] - while (!(res = pred(await gen()))) await reseed();// test predicate until it returns ok - reset(); - return res!; - }; - } else { - const h = (...b: Bytes[]) => { // asynchronous=false; same, but synchronous - const f = _hmacSync; - if (!f) err('etc.hmacSha256Sync not set'); - return f!(k, v, ...b); // hmac(k)(v, ...values) - }; - const reseed = (seed = u8n()) => { // HMAC-DRBG reseed() function. Steps D-G - k = h(u8n([0x00]), seed); // k = hmac(k || v || 0x00 || seed) - v = h(); // v = hmac(k || v) - if (seed.length === 0) return; - k = h(u8n([0x01]), seed); // k = hmac(k || v || 0x01 || seed) - v = h(); // v = hmac(k || v) - }; - const gen = () => { // HMAC-DRBG generate() function - if (i++ >= 1000) err(_e); - v = h(); // v = hmac(k || v) - return v; - }; - return (seed: Bytes, pred: Pred): T => { - reset(); - reseed(seed); // Steps D-G - let res: T | undefined = undefined; // Step H: grind until k is in [1..n-1] - while (!(res = pred(gen()))) reseed(); // test predicate until it returns ok - reset(); - return res!; - }; - } -} -// ECDSA signature generation. via secg.org/sec1-v2.pdf 4.1.2 + RFC6979 deterministic k -async function signAsync(msgh: Hex, priv: Hex, opts = optS): Promise { - const { seed, k2sig } = prepSig(msgh, priv, opts); // Extract arguments for hmac-drbg - return hmacDrbg(true)(seed, k2sig); // Re-run hmac-drbg until k2sig returns ok -} -function sign(msgh: Hex, priv: Hex, opts = optS): Signature { - const { seed, k2sig } = prepSig(msgh, priv, opts); // Extract arguments for hmac-drbg - return hmacDrbg(false)(seed, k2sig); // Re-run hmac-drbg until k2sig returns ok -} -type SigLike = { r: bigint, s: bigint }; -function verify(sig: Hex | SigLike, msgh: Hex, pub: Hex, opts = optV): boolean { - let { lowS } = opts; // ECDSA signature verification - if (lowS == null) lowS = true; // Default lowS=true - if ('strict' in opts) err('verify() legacy options not supported'); // legacy param - let sig_: Signature, h: bigint, P: Point; // secg.org/sec1-v2.pdf 4.1.4 - const rs = sig && typeof sig === 'object' && 'r' in sig; // Previous ver supported DER sigs. We - if (!rs && (toU8(sig).length !== 2 * fLen)) // throw error when DER is suspected now. - err('signature must be 64 bytes'); - try { - sig_ = rs ? new Signature(sig.r, sig.s).assertValidity() : Signature.fromCompact(sig); - h = bits2int_modN(toU8(msgh, fLen)); // Truncate hash - P = pub instanceof Point ? pub.ok() : Point.fromHex(pub); // Validate public key - } catch (e) { return false; } // Check sig for validity in both cases - if (!sig_) return false; - const { r, s } = sig_; - if (lowS && moreThanHalfN(s)) return false; // lowS bans sig.s >= CURVE.n/2 - let R: AffinePoint; - try { - const is = inv(s, N); // s^-1 - const u1 = mod(h * is, N); // u1 = hs^-1 mod n - const u2 = mod(r * is, N); // u2 = rs^-1 mod n - R = G.mulAddQUns(P, u1, u2).aff(); // R = u1⋅G + u2⋅P - } catch (error) { return false; } - if (!R) return false; // stop if R is identity / zero point - const v = mod(R.x, N); // <== The weird ECDSA part. R.x must be in N's field, not P's - return v === r; // mod(R.x, n) == r -} -function getSharedSecret(privA: Hex, pubB: Hex, isCompressed = true): Bytes { - return Point.fromHex(pubB).mul(toPriv(privA)).toRawBytes(isCompressed); // ECDH -} -function hashToPrivateKey(hash: Hex): Bytes { // FIPS 186 B.4.1 compliant key generation - hash = toU8(hash); // produces private keys with modulo bias - const minLen = fLen + 8; // being neglible. - if (hash.length < minLen || hash.length > 1024) err('expected proper params'); - const num = mod(b2n(hash), N - 1n) + 1n; // takes at least n+8 bytes - return n2b(num); -} -const etc = { // Not placed in utils because they - hexToBytes: h2b, bytesToHex: b2h, // share API with noble-curves. - concatBytes: concatB, bytesToNumberBE: b2n, numberToBytesBE: n2b, - mod, invert: inv, // math utilities - hmacSha256Async: async (key: Bytes, ...msgs: Bytes[]): Promise => { - const crypto = cr(); // HMAC-SHA256 async. No sync built-in! - if (!crypto) return err('etc.hmacSha256Async not set'); // Uses webcrypto: native cryptography. - const s = crypto.subtle; - const k = await s.importKey('raw', key, {name:'HMAC',hash:{name:'SHA-256'}}, false, ['sign']); - return u8n(await s.sign('HMAC', k, concatB(...msgs))); - }, - hmacSha256Sync: _hmacSync, // For TypeScript. Actual logic is below - hashToPrivateKey, - randomBytes: (len: number): Bytes => { // CSPRNG (random number generator) - const crypto = cr(); // Can be shimmed in node.js <= 18 to prevent error: - // import { webcrypto } from 'node:crypto'; - // if (!globalThis.crypto) globalThis.crypto = webcrypto; - if (!crypto) err('crypto.getRandomValues must be defined'); - return crypto.getRandomValues(u8n(len)); - }, -} -const utils = { // utilities - normPrivateKeyToScalar: toPriv, - isValidPrivateKey: (key: Hex) => { try { return !!toPriv(key); } catch (e) { return false; } }, - randomPrivateKey: (): Bytes => hashToPrivateKey(etc.randomBytes(fLen + 8)), // FIPS 186 B.4.1. - precompute(w=8, p: Point = G) { p.multiply(3n); return p; }, // no-op -}; -Object.defineProperties(etc, { hmacSha256Sync: { // Allow setting it once, ignore then - configurable: false, get() { return _hmacSync; }, set(f) { if (!_hmacSync) _hmacSync = f; }, -} }); -const W = 8; // Precomputes-related code. W = window size -const precompute = () => { // They give 12x faster getPublicKey(), - const points: Point[] = []; // 10x sign(), 2x verify(). To achieve this, - const windows = 256 / W + 1; // app needs to spend 40ms+ to calculate - let p = G, b = p; // a lot of points related to base point G. - for (let w = 0; w < windows; w++) { // Points are stored in array and used - b = p; // any time Gx multiplication is done. - points.push(b); // They consume 16-32 MiB of RAM. - for (let i = 1; i < 2 ** (W - 1); i++) { b = b.add(p); points.push(b); } - p = b.double(); // Precomputes don't speed-up getSharedKey, - } // which multiplies user point by scalar, - return points; // when precomputes are using base point -} -const wNAF = (n: bigint): { p: Point; f: Point } => { // w-ary non-adjacent form (wNAF) method. - // Compared to other point mult methods, - const comp = Gpows || (Gpows = precompute()); // stores 2x less points using subtraction - const neg = (cnd: boolean, p: Point) => { let n = p.negate(); return cnd ? n : p; } // negate - let p = I, f = G; // f must be G, or could become I in the end - const windows = 1 + 256 / W; // W=8 17 windows - const wsize = 2 ** (W - 1); // W=8 128 window size - const mask = BigInt(2 ** W - 1); // W=8 will create mask 0b11111111 - const maxNum = 2 ** W; // W=8 256 - const shiftBy = BigInt(W); // W=8 8 - for (let w = 0; w < windows; w++) { - const off = w * wsize; - let wbits = Number(n & mask); // extract W bits. - n >>= shiftBy; // shift number by W bits. - if (wbits > wsize) { wbits -= maxNum; n += 1n; } // split if bits > max: +224 => 256-32 - const off1 = off, off2 = off + Math.abs(wbits) - 1; // offsets, evaluate both - const cnd1 = w % 2 !== 0, cnd2 = wbits < 0; // conditions, evaluate both - if (wbits === 0) { - f = f.add(neg(cnd1, comp[off1])); // bits are 0: add garbage to fake point - } else { // ^ can't add off2, off2 = I - p = p.add(neg(cnd2, comp[off2])); // bits are 1: add to result point - } - } - return { p, f } // return both real and fake points for JIT -}; // !! you can disable precomputes by commenting-out call of the wNAF() inside Point#mul() -export { getPublicKey, sign, signAsync, verify, CURVE, // Remove the export to easily use in REPL - getSharedSecret, etc, utils, Point as ProjectivePoint, Signature } // envs like browser console diff --git a/node_modules/@noble/secp256k1/package.json b/node_modules/@noble/secp256k1/package.json deleted file mode 100644 index 56584ecd..00000000 --- a/node_modules/@noble/secp256k1/package.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "name": "@noble/secp256k1", - "version": "2.0.0", - "description": "Fastest 4KB JS implementation of secp256k1 elliptic curve. Auditable, high-security, 0-dependency ECDH & ECDSA signatures compliant with RFC6979", - "files": [ - "index.js", - "index.d.ts", - "index.ts" - ], - "type": "module", - "main": "index.js", - "module": "index.js", - "types": "index.d.ts", - "scripts": { - "build": "tsc", - "build:release": "rollup -c rollup.config.js", - "test": "node test/secp256k1.test.mjs", - "bench": "node test/benchmark.js", - "min": "cd test/build; npm install; npm run terser", - "loc": "echo \"`npm run --silent min | wc -c` symbols `wc -l < index.ts` LOC, `npm run --silent min | gzip -c8 | wc -c`B gzipped\"" - }, - "author": "Paul Miller (https://paulmillr.com)", - "homepage": "https://paulmillr.com/noble/", - "repository": { - "type": "git", - "url": "https://github.com/paulmillr/noble-secp256k1.git" - }, - "license": "MIT", - "devDependencies": { - "@noble/hashes": "1.3.0", - "fast-check": "3.0.0", - "micro-bmark": "0.3.0", - "micro-should": "0.4.0", - "typescript": "5.0.2" - }, - "keywords": [ - "secp256k1", - "rfc6979", - "signature", - "ecdsa", - "noble", - "cryptography", - "elliptic curve", - "ecc", - "curve", - "schnorr", - "bitcoin", - "ethereum" - ], - "exports": { - ".": { - "types": "./index.d.ts", - "default": "./index.js" - } - }, - "funding": [ - { - "type": "individual", - "url": "https://paulmillr.com/funding/" - } - ] -} diff --git a/node_modules/@nostr-dev-kit/ndk/LICENSE b/node_modules/@nostr-dev-kit/ndk/LICENSE deleted file mode 100644 index 2a6ea523..00000000 --- a/node_modules/@nostr-dev-kit/ndk/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2023 Pablo Fernandez - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/node_modules/@nostr-dev-kit/ndk/README.md b/node_modules/@nostr-dev-kit/ndk/README.md deleted file mode 100644 index 3950c741..00000000 --- a/node_modules/@nostr-dev-kit/ndk/README.md +++ /dev/null @@ -1,344 +0,0 @@ -# NDK - -drawing - -NDK is a [nostr](<[url](https://github.com/nostr-protocol/nostr)>) development kit that makes the experience of building Nostr-related applications, whether they are relays, clients, or anything in between, better, more reliable and overall nicer to work with than existing solutions. - -## NDK Objectives - -1. The core goal of NDK is to improve the decentralization of Nostr via intelligent conventions and data discovery features without depending on any one central point of coordination (such as large relays or centralized search providers). -2. NDK team aims to have new to nostr devs get set up, and reading a NIP-01 event within 10 minutes. -3. NDK's objective is to serve prospective, and current nostr devs as clients. If you have friction with the NDK developer experience, please open issues, and ask for help from the NDK team! Devs are encouraged to search through existing, and/or create new github issues when experiencing friction with NDK. - -## Installation - -```sh -npm add @nostr-dev-kit/ndk -``` - -## Debugging - -NDK uses the `debug` package to assist in understanding what's happening behind the hood. If you are building a package -that runs on the server define the `DEBUG` envionment variable like - -``` -export DEBUG='ndk:*' -``` - -or in the browser enable it by writing in the DevTools console - -``` -localStorage.debug = 'ndk:*' -``` - -## Support - -### NDK NIP-28 group chat - -- note15m6rdfvlmd0z836hk83sg7r59xtv23qnmamhsslq5uc6744fdm4qfkeat3 - - [Coracle](https://app.coracle.social/chat/note15m6rdfvlmd0z836hk83sg7r59xtv23qnmamhsslq5uc6744fdm4qfkeat3) - - [Nostrchat](https://www.nostrchat.io/channel/a6f436a59fdb5e23c757b1e30478742996c54413df777843e0a731af56a96eea) -- [WIP documentation](https://github.com/nostr-dev-kit/ndk/blob/master/docs/modules.md) - -## Features - -- [x] NIP-01 -- [x] Caching adapters - - Server-side - - [x] [Redis](https://github.com/nostr-dev-kit/ndk-cache-redis) - - [ ] In-memory - - Client-side - - [ ] LocalStorage - - [x] IndexD ([Dexie](https://github.com/nostr-dev-kit/ndk-cache-dexie)) -- [~] NIP-04: Encryption support -- [x] NIP-18: Repost -- [ ] ~~NIP-26~~ Won't add / NIP-26 is dead -- [ ] NIP-41: Relay authentication -- [x] NIP-57: Zaps - - [x] LUD06 - - [x] LUD16 -- [ ] NIP-65: Contacts' Relay list -- [x] NIP-89: Application Handlers -- [x] NIP-90: Data Vending Machines -- Subscription Management - - [x] Auto-grouping queries - - [x] Auto-closing subscriptions -- Signing Adapters - - [x] Private key - - [x] NIP-07 - - [!] ~~NIP-26~~ Won't add / NIP-26 is dead - - [x] NIP-46 - - [x] Permission tokens -- Relay discovery - - [ ] Outbox-model (NIP-65) - - [ ] Implicit relays discovery following pubkey usage - - [ ] Implicit relays discovery following `t` tag usage - - [ ] Explicit relays blacklist -- [ ] nostr-tools/SimplePool drop-in replacement interface - -## Real-world uses of NDK - -See [REFERENCES.md](./REFERENCES.md) for a list of projects using NDK to see how others are using it. - -## Instantiate an NDK instance - -You can pass an object with several options to a newly created instance of NDK. - -- `explicitRelayUrls` – an array of relay URLs. -- `signer` - an instance of a [signer](#signers). -- `cacheAdapter` - an instance of a [Cache Adapter](#caching) -- `debug` - Debug instance to use for logging. Defaults to `debug("ndk")`. - -```ts -// Import the package -import NDK from "@nostr-dev-kit/ndk"; - -// Create a new NDK instance with explicit relays -const ndk = new NDK({ - explicitRelayUrls: ["wss://a.relay", "wss://another.relay"], -}); -``` - -If the signer implements the `getRelays()` method, NDK will use the relays returned by that method as the explicit relays. - -```ts -// Import the package -import NDK, { NDKNip07Signer } from "@nostr-dev-kit/ndk"; - -// Create a new NDK instance with just a signer (provided the signer implements the getRelays() method) -const nip07signer = new NDKNip07Signer(); -const ndk = new NDK({ signer: nip07signer }); -``` - -Note: In normal client use, it's best practice to instantiate NDK as a singleton class. [See more below](#architecture-decisions--suggestions). - -## Connecting - -After you've instatiated NDK, you need to tell it to connect before you'll be able to interact with any relays. - -```ts -// Import the package -import NDK from "@nostr-dev-kit/ndk"; - -/ Create a new NDK instance with explicit relays -const ndk = new NDK({ - explicitRelayUrls: ["wss://a.relay", "wss://another.relay"], -}); -/ Now connect to specified relays -await ndk.connect(); -``` - -## Signers - -NDK uses signers _optionally_ passed in to sign events. Note that it is possible to use NDK without signing events (e.g. [to get someone's profile](https://github.com/nostr-dev-kit/ndk-cli/blob/master/src/commands/profile.ts)). - -Signing adapters can be passed in when NDK is instantiated or later during runtime. - -### Using a NIP-07 browser extension (e.g. Alby, nos2x) - -Instatiate NDK with a NIP-07 signer - -```ts -// Import the package, NIP-07 signer and NDK event -import NDK, { NDKEvent, NDKNip07Signer } from "@nostr-dev-kit/ndk"; - -const nip07signer = new NDKNip07Signer(); -const ndk = new NDK({ signer: nip07signer }); -``` - -NDK can now ask for permission, via their NIP-07 extension, to... - -**Read the user's public key** - -```ts -nip07signer.user().then(async (user) => { - if (!!user.npub) { - console.log("Permission granted to read their public key:", user.npub); - } -}); -``` - -**Sign & publish events** - -```ts -const ndkEvent = new NDKEvent(ndk); -ndkEvent.kind = 1; -ndkEvent.content = "Hello, world!"; -ndkEvent.publish(); // This will trigger the extension to ask the user to confirm signing. -``` - - - -## Caching - -NDK provides database-agnostic caching functionality out-of-the-box to improve the performance of your application and reduce load on relays. - -NDK will eventually allow you to use multiple caches simultaneously and allow for selective storage of data in the cache store that makes the most sense for your application. - -### Where to look is more important that long-term storage - -The most important data to cache is _where_ a user or note might be found. UX suffers profoundly when this type of data cannot be found. By design, the Nostr protocol leaves breadcrumbs of where a user or note might be found and NDK does it's best to store this data automatically and use it when you query for events. - -### Instantiating and using a cache adapter - -```ts -const redisAdapter = new RedisAdapter(redisUrl); -const ndk = new NDK({ cacheAdapter: redisAdapter }); -``` - -## Groupable queries - -Clients often need to load data (e.g. profile data) from individual components at once (e.g. initial page render). This typically causes multiple subscriptions to be submitted fetching the same information and causing poor performance or getting rate-limited/maxed out by relays. - -NDK implements a convenient subscription model, _buffered queries_, where a named subscription will be created after a customizable amount of time, so that multiple components can append queries. - -```ts -// Component 1 -ndk.subscribe({ kinds: [0], authors: ["pubkey-1"] }); - -// Component 2 -ndk.subscribe({ kinds: [0], authors: ["pubkey-2"] }); -``` - -In this example, NDK will wait 100ms (default `groupableDelay`) before creating a subscription with the filter: - -```ts -{kinds: [0], authors: ['pubkey-1', 'pubkey-2'] } -``` - -## Intelligent relay selection - -When a client submits a request through NDK, NDK will calculate which relays are most likely able to satisfy this request. - -Queries submitted by the client might be broken into different queries if NDK computes different relays. - -For example, say npub-A follows npub-B and npub-C. If the NDK client uses: - -```ts -const ndk = new NDK({ explicitRelayUrls: ["wss://nos.lol"] }); -const npubA = ndk.getUser("npub-A"); -const feedEvents = await npubA.feed(); -``` - -This would result in the following request: - -```json -{ "kinds": [1], "authors": ["npub-B", "npub-C"] } -``` - -But if NDK has observed that `npub-B` tends to write to `wss://userb.xyz` and -`npub-C` tends to write to `wss://userc.io`, NDK will instead send the following queries. - -```json -// to npub-A's explicit relay wss://nos.lol *if* npub-B and npub-C have been seen on that relay -{ "kinds": [1], "authors": [ "npub-B", "npub-C" ] } - -// to wss://userb.xyz -{ "kinds": [1], "authors": [ "npub-B" ] } - -// to wss://userc.io -{ "kinds": [1], "authors": [ "npub-C" ] } -``` - -## Auto-closing subscriptions - -Often, clients need to fetch data but don't need to maintain an open connection to the relay. This is true of profile metadata requests especially. -_NDK defaults to having the `closeOnEose` flag set to `false`; if you want your subscription to close after `EOSE`, you should set it to `true`._ - -- The `closeOnEose` flag will make the connection close immediately after EOSE is seen. - -```ts -ndk.subscribe({ kinds: [0], authors: ["..."] }, { closeOnEose: false }); -``` - -## Convenience methods - -NDK implements several conveience methods for common queries. - -### Instantiate a user by npub or hex pubkey - -This is a handy method for instantiating a new `NDKUser` and associating the current NDK instance with that user for future calls. - -```ts -const pablo = ndk.getUser({ - npub: "npub1l2vyh47mk2p0qlsku7hg0vn29faehy9hy34ygaclpn66ukqp3afqutajft", -}); - -const jeff = ndk.getUser({ - hexpubkey: "1739d937dc8c0c7370aa27585938c119e25c41f6c441a5d34c6d38503e3136ef", -}); -``` - -### Fetch a user's profile and publish updates - -You can easily fetch a user's profile data from `kind:0` events on relays. Calling `.fetchProfile()` will update the `profile` attribute on the user object instead of returning the profile directly. NDK then makes it trivial to update values and publish those updates back to relays. - -```ts -const pablo = ndk.getUser({ - npub: "npub1l2vyh47mk2p0qlsku7hg0vn29faehy9hy34ygaclpn66ukqp3afqutajft", -}); -await pablo.fetchProfile(); - -const pabloFullProfile = pablo.profile; - -pablo.profile.name = "Pablo"; -await pablo.publish(); // Triggers signing via signer -``` - -### Finding a single event or all events matching a filter - -You can fetch the first event or all events that match a given set of filters. - -```ts -// Create a filter -const filter: NDKFilter = { kinds: [1], authors: [hexpubkey1, hexpubkey2] }; - -// Will return only the first event -event = await ndk.fetchEvent(filter); - -// Will return all found events -events = await ndk.fetchEvents(filter); -``` - -### Creating & publishing events - -```ts -const ndk = new NDK({ explicitRelayUrls, signer }); -const event = new NDKEvent(ndk); -event.kind = 1; -event.content = "PV Nostr! 🤙🏼"; -await ndk.publish(event); -``` - -### Reacting to an event - -```ts -// Find the first event from @jack, and react/like it. -const event = await ndk.fetchEvent({ author: "jack@cashapp.com" })[0]; -await event.react("🤙"); -``` - -### Zap an event - -```ts -// Find the first event from @jack, and zap it. -const event = await ndk.fetchEvent({ author: "jack@cashapp.com" })[0]; -await event.zap(1337, "Zapping your post!"); // Returns a bolt11 payment request -``` - -## Architecture decisions & suggestions - -- Users of NDK should instantiate a single NDK instance. -- That instance tracks state with all relays connected, explicit and otherwise. -- All relays are tracked in a single pool that handles connection errors/reconnection logic. -- RelaySets are assembled ad-hoc as needed depending on the queries set, although some RelaySets might be long-lasting, like the `explicitRelayUrls` specified by the user. -- RelaySets are always a subset of the pool of all available relays. diff --git a/node_modules/@nostr-dev-kit/ndk/dist/index.d.ts b/node_modules/@nostr-dev-kit/ndk/dist/index.d.ts deleted file mode 100644 index 60bba120..00000000 --- a/node_modules/@nostr-dev-kit/ndk/dist/index.d.ts +++ /dev/null @@ -1,1640 +0,0 @@ -import { EventEmitter } from 'tseep'; -import debug$1 from 'debug'; -import { LRUCache } from 'typescript-lru-cache'; -import { Relay } from 'nostr-tools'; -import EventEmitter$1 from 'eventemitter3'; - -declare enum NDKKind { - Metadata = 0, - Text = 1, - RecommendRelay = 2, - Contacts = 3, - EncryptedDirectMessage = 4, - EventDeletion = 5, - Repost = 6, - Reaction = 7, - BadgeAward = 8, - GroupNote = 9, - GroupChat = 11, - GenericRepost = 16, - ChannelCreation = 40, - ChannelMetadata = 41, - ChannelMessage = 42, - ChannelHideMessage = 43, - ChannelMuteUser = 44, - Report = 1984, - Label = 1985, - DVMReqTextExtraction = 5000, - DVMReqTextSummarization = 5001, - DVMReqTextTranslation = 5002, - DVMReqTextGeneration = 5050, - DVMReqImageGeneration = 5100, - DVMReqDiscoveryNostrContent = 5300, - DVMReqDiscoveryNostrPeople = 5301, - DVMReqTimestamping = 5900, - DVMJobFeedback = 7000, - MuteList = 10000, - PinList = 10001, - RelayList = 10002, - BookmarkList = 10003, - CommunityList = 10004, - PublicChatList = 10005, - BlockRelayList = 10006, - SearchRelayList = 10007, - InterestList = 10015, - EmojiList = 10030, - FollowSet = 30000, - CategorizedPeopleList = 30000, - CategorizedBookmarkList = 30001, - RelaySet = 30002, - CategorizedRelayList = 30002, - BookmarkSet = 30003, - CurationSet = 30004, - InterestSet = 30015, - InterestsList = 30015, - EmojiSet = 30030, - HighlightSet = 39802, - CategorizedHighlightList = 39802, - ZapRequest = 9734, - Zap = 9735, - Highlight = 9802, - ClientAuth = 22242, - NostrConnect = 24133, - ProfileBadge = 30008, - BadgeDefinition = 30009, - MarketStall = 30017, - MarketProduct = 30018, - Article = 30023, - AppSpecificData = 30078, - Classified = 30402, - AppRecommendation = 31989, - AppHandler = 31990 -} -declare const NDKListKinds: NDKKind[]; - -type NDKPoolStats = { - total: number; - connected: number; - disconnected: number; - connecting: number; -}; -/** - * Handles connections to all relays. A single pool should be used per NDK instance. - * - * @emit connect - Emitted when all relays in the pool are connected, or when the specified timeout has elapsed, and some relays are connected. - * @emit notice - Emitted when a relay in the pool sends a notice. - * @emit flapping - Emitted when a relay in the pool is flapping. - * @emit relay:connect - Emitted when a relay in the pool connects. - * @emit relay:disconnect - Emitted when a relay in the pool disconnects. - */ -declare class NDKPool extends EventEmitter { - relays: Map; - blacklistRelayUrls: Set; - private debug; - private temporaryRelayTimers; - private flappingRelays; - private backoffTimes; - constructor(relayUrls: string[] | undefined, blacklistedRelayUrls: string[] | undefined, ndk: NDK, debug?: debug$1.Debugger); - /** - * Adds a relay to the pool, and sets a timer to remove it if it is not used within the specified time. - * @param relay - The relay to add to the pool. - * @param removeIfUnusedAfter - The time in milliseconds to wait before removing the relay from the pool after it is no longer used. - */ - useTemporaryRelay(relay: NDKRelay, removeIfUnusedAfter?: number): void; - /** - * Adds a relay to the pool. - * - * @param relay - The relay to add to the pool. - * @param connect - Whether or not to connect to the relay. - */ - addRelay(relay: NDKRelay, connect?: boolean): void; - /** - * Removes a relay from the pool. - * @param relayUrl - The URL of the relay to remove. - * @returns {boolean} True if the relay was removed, false if it was not found. - */ - removeRelay(relayUrl: string): boolean; - /** - * Fetches a relay from the pool, or creates a new one if it does not exist. - * - * New relays will be attempted to be connected. - */ - getRelay(url: NDKRelayUrl): NDKRelay; - private handleRelayConnect; - /** - * Attempts to establish a connection to each relay in the pool. - * - * @async - * @param {number} [timeoutMs] - Optional timeout in milliseconds for each connection attempt. - * @returns {Promise} A promise that resolves when all connection attempts have completed. - * @throws {Error} If any of the connection attempts result in an error or timeout. - */ - connect(timeoutMs?: number): Promise; - private checkOnFlappingRelays; - private handleFlapping; - size(): number; - /** - * Returns the status of each relay in the pool. - * @returns {NDKPoolStats} An object containing the number of relays in each status. - */ - stats(): NDKPoolStats; - connectedRelays(): NDKRelay[]; - /** - * Get a list of all relay urls in the pool. - */ - urls(): string[]; -} - -/** - * A relay set is a group of relays. This grouping can be short-living, for a single - * REQ or can be long-lasting, for example for the explicit relay list the user - * has specified. - * - * Requests to relays should be sent through this interface. - */ -declare class NDKRelaySet { - readonly relays: Set; - private debug; - private ndk; - constructor(relays: Set, ndk: NDK); - /** - * Adds a relay to this set. - */ - addRelay(relay: NDKRelay): void; - /** - * Creates a relay set from a list of relay URLs. - * - * If no connection to the relay is found in the pool it will temporarily - * connect to it. - * - * @param relayUrls - list of relay URLs to include in this set - * @param ndk - * @returns NDKRelaySet - */ - static fromRelayUrls(relayUrls: string[], ndk: NDK): NDKRelaySet; - /** - * Publish an event to all relays in this set. Returns the number of relays that have received the event. - * @param event - * @param timeoutMs - timeout in milliseconds for each publish operation and connection operation - * @returns A set where the event was successfully published to - */ - publish(event: NDKEvent, timeoutMs?: number): Promise>; - size(): number; -} - -type NDKFilter = { - ids?: string[]; - kinds?: K[]; - authors?: string[]; - since?: number; - until?: number; - limit?: number; - search?: string; - [key: `#${string}`]: string[]; -}; -declare enum NDKSubscriptionCacheUsage { - ONLY_CACHE = "ONLY_CACHE", - CACHE_FIRST = "CACHE_FIRST", - PARALLEL = "PARALLEL", - ONLY_RELAY = "ONLY_RELAY" -} -interface NDKSubscriptionOptions { - /** - * Whether to close the subscription when all relays have reached the end of the event stream. - * @default false - */ - closeOnEose?: boolean; - cacheUsage?: NDKSubscriptionCacheUsage; - /** - * Groupable subscriptions are created with a slight time - * delayed to allow similar filters to be grouped together. - */ - groupable?: boolean; - /** - * The delay to use when grouping subscriptions, specified in milliseconds. - * @default 100 - */ - groupableDelay?: number; - /** - * The subscription ID to use for the subscription. - */ - subId?: string; - /** - * Pool to use - */ - pool?: NDKPool; -} -/** - * Default subscription options. - */ -declare const defaultOpts: NDKSubscriptionOptions; -/** - * Represents a subscription to an NDK event stream. - * - * @event NDKSubscription#event - * Emitted when an event is received by the subscription. - * @param {NDKEvent} event - The event received by the subscription. - * @param {NDKRelay} relay - The relay that received the event. - * @param {NDKSubscription} subscription - The subscription that received the event. - * - * @event NDKSubscription#event:dup - * Emitted when a duplicate event is received by the subscription. - * @param {NDKEvent} event - The duplicate event received by the subscription. - * @param {NDKRelay} relay - The relay that received the event. - * @param {number} timeSinceFirstSeen - The time elapsed since the first time the event was seen. - * @param {NDKSubscription} subscription - The subscription that received the event. - * - * @event NDKSubscription#eose - Emitted when all relays have reached the end of the event stream. - * @param {NDKSubscription} subscription - The subscription that received EOSE. - * - * @event NDKSubscription#close - Emitted when the subscription is closed. - * @param {NDKSubscription} subscription - The subscription that was closed. - */ -declare class NDKSubscription extends EventEmitter { - readonly subId?: string; - readonly filters: NDKFilter[]; - readonly opts: NDKSubscriptionOptions; - readonly pool: NDKPool; - /** - * Tracks the filters as they are executed on each relay - */ - relayFilters?: Map; - relaySet?: NDKRelaySet; - ndk: NDK; - debug: debug.Debugger; - eoseDebug: debug.Debugger; - /** - * Events that have been seen by the subscription, with the time they were first seen. - */ - eventFirstSeen: Map; - /** - * Relays that have sent an EOSE. - */ - eosesSeen: Set; - /** - * Events that have been seen by the subscription per relay. - */ - eventsPerRelay: Map>; - /** - * The time the last event was received by the subscription. - * This is used to calculate when EOSE should be emitted. - */ - private lastEventReceivedAt; - internalId: string; - constructor(ndk: NDK, filters: NDKFilter | NDKFilter[], opts?: NDKSubscriptionOptions, relaySet?: NDKRelaySet, subId?: string); - /** - * Provides access to the first filter of the subscription for - * backwards compatibility. - */ - get filter(): NDKFilter; - isGroupable(): boolean; - private shouldQueryCache; - private shouldQueryRelays; - private shouldWaitForCache; - /** - * Start the subscription. This is the main method that should be called - * after creating a subscription. - */ - start(): Promise; - stop(): void; - /** - * @returns Whether the subscription has an authors filter. - */ - hasAuthorsFilter(): boolean; - private startWithCache; - /** - * Send REQ to relays - */ - private startWithRelays; - /** - * Called when an event is received from a relay or the cache - * @param event - * @param relay - * @param fromCache Whether the event was received from the cache - */ - eventReceived(event: NDKEvent, relay: NDKRelay | undefined, fromCache?: boolean): void; - private eoseTimeout; - eoseReceived(relay: NDKRelay): void; -} - -declare class NDKRelayList extends NDKEvent { - constructor(ndk?: NDK, rawEvent?: NostrEvent); - static from(ndkEvent: NDKEvent): NDKRelayList; - get readRelayUrls(): NDKRelayUrl[]; - set readRelayUrls(relays: NDKRelayUrl[]); - get writeRelayUrls(): NDKRelayUrl[]; - set writeRelayUrls(relays: NDKRelayUrl[]); - get bothRelayUrls(): NDKRelayUrl[]; - set bothRelayUrls(relays: NDKRelayUrl[]); - get relays(): NDKRelayUrl[]; -} - -/** - * NDKUserProfile represents a user's kind 0 profile metadata - */ -interface NDKUserProfile { - [key: string]: string | undefined; - name?: string; - displayName?: string; - image?: string; - banner?: string; - bio?: string; - nip05?: string; - lud06?: string; - lud16?: string; - about?: string; - zapService?: string; - website?: string; -} -declare function profileFromEvent(event: NDKEvent): NDKUserProfile; -declare function serializeProfile(profile: NDKUserProfile): string; - -/** - * Interface for NDK signers. - */ -interface NDKSigner { - /** - * Blocks until the signer is ready and returns the associated NDKUser. - * @returns A promise that resolves to the NDKUser instance. - */ - blockUntilReady(): Promise; - /** - * Getter for the user property. - * @returns A promise that resolves to the NDKUser instance. - */ - user(): Promise; - /** - * Signs the given Nostr event. - * @param event - The Nostr event to be signed. - * @returns A promise that resolves to the signature of the signed event. - */ - sign(event: NostrEvent): Promise; - /** - * Getter for the preferred relays. - * @returns A promise containing a simple map of preferred relays and their read/write policies. - */ - relays?(): Promise; - /** - * Encrypts the given Nostr event for the given recipient. - * @param value - The value to be encrypted. - * @param recipient - The recipient of the encrypted value. - */ - encrypt(recipient: NDKUser, value: string): Promise; - /** - * Decrypts the given value. - * @param value - */ - decrypt(sender: NDKUser, value: string): Promise; -} - -type Hexpubkey = string; -type Npub = string; -type ProfilePointer = { - pubkey: string; - relays?: string[]; -}; -type EventPointer = { - id: string; - relays?: string[]; - author?: string; - kind?: number; -}; -interface NDKUserParams { - npub?: Npub; - hexpubkey?: Hexpubkey; - pubkey?: Hexpubkey; - nip05?: string; - relayUrls?: string[]; -} -/** - * Represents a pubkey. - */ -declare class NDKUser { - ndk: NDK | undefined; - profile?: NDKUserProfile; - private _npub?; - private _pubkey?; - readonly relayUrls: string[]; - constructor(opts: NDKUserParams); - get npub(): string; - set npub(npub: Npub); - /** - * Get the user's hexpubkey - * @returns {Hexpubkey} The user's hexpubkey - * - * @deprecated Use `pubkey` instead - */ - get hexpubkey(): Hexpubkey; - /** - * Set the user's hexpubkey - * @param pubkey {Hexpubkey} The user's hexpubkey - * @deprecated Use `pubkey` instead - */ - set hexpubkey(pubkey: Hexpubkey); - /** - * Get the user's pubkey - * @returns {string} The user's pubkey - */ - get pubkey(): string; - /** - * Set the user's pubkey - * @param pubkey {string} The user's pubkey - */ - set pubkey(pubkey: string); - /** - * Instantiate an NDKUser from a NIP-05 string - * @param nip05Id {string} The user's NIP-05 - * @returns {NDKUser | undefined} An NDKUser if one is found for the given NIP-05, undefined otherwise. - */ - static fromNip05(nip05Id: string): Promise; - /** - * Fetch a user's profile - * @param opts {NDKSubscriptionOptions} A set of NDKSubscriptionOptions - * @returns User Profile - */ - fetchProfile(opts?: NDKSubscriptionOptions): Promise; - /** - * Returns a set of users that this user follows. - */ - follows: (opts?: NDKSubscriptionOptions | undefined, outbox?: boolean | undefined) => Promise>; - /** - * Pins a user or an event - */ - pin: (event: NDKEvent, pinEvent?: NDKEvent | undefined, publish?: boolean | undefined) => Promise; - /** - * Returns a set of relay list events for a user. - * @returns {Promise>} A set of NDKEvents returned for the given user. - */ - relayList(): Promise; - private relayListFromKind3; - /** @deprecated Use referenceTags instead. */ - /** - * Get the tag that can be used to reference this user in an event - * @returns {NDKTag} an NDKTag - */ - tagReference(): NDKTag; - /** - * Get the tags that can be used to reference this user in an event - * @returns {NDKTag[]} an array of NDKTag - */ - referenceTags(marker?: string): NDKTag[]; - /** - * Publishes the current profile. - */ - publish(): Promise; - /** - * Add a follow to this user's contact list - * - * @param newFollow {NDKUser} The user to follow - * @param currentFollowList {Set} The current follow list - * @returns {Promise} True if the follow was added, false if the follow already exists - */ - follow(newFollow: NDKUser, currentFollowList?: Set): Promise; - /** - * Validate a user's NIP-05 identifier (usually fetched from their kind:0 profile data) - * - * @param nip05Id The NIP-05 string to validate - * @returns {Promise} True if the NIP-05 is found and matches this user's pubkey, - * False if the NIP-05 is found but doesn't match this user's pubkey, - * null if the NIP-05 isn't found on the domain or we're unable to verify (because of network issues, etc.) - */ - validateNip05(nip05Id: string): Promise; - /** - * Zap a user - * - * @param amount The amount to zap in millisatoshis - * @param comment A comment to add to the zap request - * @param extraTags Extra tags to add to the zap request - * @param signer The signer to use (will default to the NDK instance's signer) - */ - zap(amount: number, comment?: string, extraTags?: NDKTag[], signer?: NDKSigner): Promise; -} - -declare class NDKRelayConnectivity { - private ndkRelay; - private _status; - relay: Relay; - private connectedAt?; - private _connectionStats; - private debug; - constructor(ndkRelay: NDKRelay); - connect(): Promise; - disconnect(): void; - get status(): NDKRelayStatus; - isAvailable(): boolean; - /** - * Evaluates the connection stats to determine if the relay is flapping. - */ - private isFlapping; - private handleNotice; - /** - * Called when the relay is unexpectedly disconnected. - */ - private handleReconnection; - /** - * Utility functions to update the connection stats. - */ - private updateConnectionStats; - /** - * Returns the connection stats. - */ - get connectionStats(): NDKRelayConnectionStats; -} - -type NDKRelayScore = number; - -type NDKRelayUrl = string; -declare enum NDKRelayStatus { - CONNECTING = 0, - CONNECTED = 1, - DISCONNECTING = 2, - DISCONNECTED = 3, - RECONNECTING = 4, - FLAPPING = 5 -} -interface NDKRelayConnectionStats { - /** - * The number of times a connection has been attempted. - */ - attempts: number; - /** - * The number of times a connection has been successfully established. - */ - success: number; - /** - * The durations of the last 100 connections in milliseconds. - */ - durations: number[]; - /** - * The time the current connection was established in milliseconds. - */ - connectedAt?: number; -} -/** - * The NDKRelay class represents a connection to a relay. - * - * @emits NDKRelay#connect - * @emits NDKRelay#disconnect - * @emits NDKRelay#notice - * @emits NDKRelay#event - * @emits NDKRelay#published when an event is published to the relay - * @emits NDKRelay#publish:failed when an event fails to publish to the relay - * @emits NDKRelay#eose - */ -declare class NDKRelay extends EventEmitter { - readonly url: NDKRelayUrl; - readonly scores: Map; - connectivity: NDKRelayConnectivity; - private subs; - private publisher; - complaining: boolean; - readonly debug: debug$1.Debugger; - constructor(url: NDKRelayUrl); - get status(): NDKRelayStatus; - get connectionStats(): NDKRelayConnectionStats; - /** - * Connects to the relay. - */ - connect(): Promise; - /** - * Disconnects from the relay. - */ - disconnect(): void; - /** - * Queues or executes the subscription of a specific set of filters - * within this relay. - * - * @param subscription NDKSubscription this filters belong to. - * @param filters Filters to execute - */ - subscribe(subscription: NDKSubscription, filters: NDKFilter[]): void; - /** - * Publishes an event to the relay with an optional timeout. - * - * If the relay is not connected, the event will be published when the relay connects, - * unless the timeout is reached before the relay connects. - * - * @param event The event to publish - * @param timeoutMs The timeout for the publish operation in milliseconds - * @returns A promise that resolves when the event has been published or rejects if the operation times out - */ - publish(event: NDKEvent, timeoutMs?: number): Promise; - /** - * Called when this relay has responded with an event but - * wasn't the fastest one. - * @param timeDiffInMs The time difference in ms between the fastest and this relay in milliseconds - */ - scoreSlowerEvent(timeDiffInMs: number): void; - /** @deprecated Use referenceTags instead. */ - tagReference(marker?: string): NDKTag; - referenceTags(): NDKTag[]; - activeSubscriptions(): Map; -} - -type OutboxItemType = "user" | "kind"; -/** - * Tracks outbox scoring of an item. An item can be any of: - * - * - A user - * - A tag - */ -declare class OutboxItem { - /** - * Type of item - */ - type: OutboxItemType; - /** - * The relay URLs that are of interest to this item - */ - relayUrlScores: Map; - readRelays: Set; - writeRelays: Set; - constructor(type: OutboxItemType); -} -/** - * The responsibility of this class is to track relay:outbox-item associations - * so that we can intelligently choose which relays to query for which items. - * - * A single instance of this class should be shared across all subscriptions within - * an NDK instance. - * - * TODO: The state of this tracker needs to be added to cache adapters so that we - * can rehydrae-it when a cache is present. - */ -declare class OutboxTracker extends EventEmitter { - data: LRUCache; - private ndk; - private debug; - constructor(ndk: NDK); - trackUsers(items: NDKUser[] | Hexpubkey[]): void; - /** - * - * @param key - * @param score - */ - track(item: NDKUser | Hexpubkey, type?: OutboxItemType): OutboxItem; -} - -interface NDKConstructorParams { - /** - * Relays we should explicitly connect to - */ - explicitRelayUrls?: string[]; - /** - * Relays we should never connect to - */ - blacklistRelayUrls?: string[]; - /** - * When this is set, we always write only to this relays. - */ - devWriteRelayUrls?: string[]; - /** - * Outbox relay URLs. - */ - outboxRelayUrls?: string[]; - /** - * Enable outbox model (defaults to false) - */ - enableOutboxModel?: boolean; - /** - * Auto-connect to main user's relays. The "main" user is determined - * by the presence of a signer. Upon connection to the explicit relays, - * the user's relays will be fetched and connected to if this is set to true. - * @default true - */ - autoConnectUserRelays?: boolean; - /** - * Automatically fetch user's mutelist - * @default true - */ - autoFetchUserMutelist?: boolean; - /** - * Signer to use for signing events by default - */ - signer?: NDKSigner; - /** - * Cache adapter to use for caching events - */ - cacheAdapter?: NDKCacheAdapter; - /** - * Debug instance to use - */ - debug?: debug$1.Debugger; - /** - * Muted pubkeys and eventIds - */ - mutedIds?: Map; - /** - * Client ID to add to events' tag - */ - client?: string; -} -interface GetUserParams extends NDKUserParams { - npub?: string; - /** - * @deprecated Use `pubkey` instead - */ - hexpubkey?: string; - pubkey?: string; -} -declare class NDK extends EventEmitter { - explicitRelayUrls?: NDKRelayUrl[]; - pool: NDKPool; - outboxPool?: NDKPool; - private _signer?; - private _activeUser?; - cacheAdapter?: NDKCacheAdapter; - debug: debug$1.Debugger; - devWriteRelaySet?: NDKRelaySet; - outboxTracker?: OutboxTracker; - mutedIds: Map; - readonly client?: string; - private autoConnectUserRelays; - private autoFetchUserMutelist; - constructor(opts?: NDKConstructorParams); - toJSON(): string; - get activeUser(): NDKUser | undefined; - /** - * Sets the active user for this NDK instance, typically this will be - * called when assigning a signer to the NDK instance. - * - * This function will automatically connect to the user's relays if - * `autoConnectUserRelays` is set to true. - * - * It will also fetch the user's mutelist if `autoFetchUserMutelist` is set to true. - */ - set activeUser(user: NDKUser | undefined); - get signer(): NDKSigner | undefined; - set signer(newSigner: NDKSigner | undefined); - /** - * Connect to relays with optional timeout. - * If the timeout is reached, the connection will be continued to be established in the background. - */ - connect(timeoutMs?: number): Promise; - /** - * Get a NDKUser object - * - * @param opts - * @returns - */ - getUser(opts: GetUserParams): NDKUser; - /** - * Create a new subscription. Subscriptions automatically start, you can make them automatically close when all relays send back an EOSE by setting `opts.closeOnEose` to `true`) - * - * @param filters - * @param opts - * @param relaySet explicit relay set to use - * @param autoStart automatically start the subscription - * @returns NDKSubscription - */ - subscribe(filters: NDKFilter | NDKFilter[], opts?: NDKSubscriptionOptions, relaySet?: NDKRelaySet, autoStart?: boolean): NDKSubscription; - /** - * Publish an event to a relay - * @param event event to publish - * @param relaySet explicit relay set to use - * @param timeoutMs timeout in milliseconds to wait for the event to be published - * @returns The relays the event was published to - * - * @deprecated Use `event.publish()` instead - */ - publish(event: NDKEvent, relaySet?: NDKRelaySet, timeoutMs?: number): Promise>; - /** - * Fetch a single event. - * - * @param idOrFilter event id in bech32 format or filter - * @param opts subscription options - * @param relaySet explicit relay set to use - */ - fetchEvent(idOrFilter: string | NDKFilter, opts?: NDKSubscriptionOptions, relaySet?: NDKRelaySet): Promise; - /** - * Fetch events - */ - fetchEvents(filters: NDKFilter | NDKFilter[], opts?: NDKSubscriptionOptions, relaySet?: NDKRelaySet): Promise>; - /** - * Ensures that a signer is available to sign an event. - */ - assertSigner(): void; -} - -type ContentTag = { - tags: NDKTag[]; - content: string; -}; - -type NDKEventId = string; -type NDKTag = string[]; -type NostrEvent = { - created_at: number; - content: string; - tags: NDKTag[]; - kind?: NDKKind | number; - pubkey: string; - id?: string; - sig?: string; -}; -/** - * NDKEvent is the basic building block of NDK; most things - * you do with NDK will revolve around writing or consuming NDKEvents. - */ -declare class NDKEvent extends EventEmitter { - ndk?: NDK; - created_at?: number; - content: string; - tags: NDKTag[]; - kind?: NDKKind | number; - id: string; - sig?: string; - pubkey: string; - private _author; - /** - * The relay that this event was first received from. - */ - relay: NDKRelay | undefined; - constructor(ndk?: NDK, event?: NostrEvent); - /** - * Returns the event as is. - */ - rawEvent(): NostrEvent; - set author(user: NDKUser); - /** - * Returns an NDKUser for the author of the event. - */ - get author(): NDKUser; - /** - * Tag a user with an optional marker. - * @param user The user to tag. - * @param marker The marker to use in the tag. - */ - tag(user: NDKUser, marker?: string): void; - /** - * Tag a user with an optional marker. - * @param event The event to tag. - * @param marker The marker to use in the tag. - * @example - * ```typescript - * reply.tag(opEvent, "reply"); - * // reply.tags => [["e", , , "reply"]] - * ``` - */ - tag(event: NDKEvent, marker?: string): void; - /** - * Return a NostrEvent object, trying to fill in missing fields - * when possible, adding tags when necessary. - * @param pubkey {string} The pubkey of the user who the event belongs to. - * @returns {Promise} A promise that resolves to a NostrEvent. - */ - toNostrEvent(pubkey?: string): Promise; - isReplaceable: () => boolean; - isEphemeral: () => boolean; - isParamReplaceable: () => boolean; - /** - * Encodes a bech32 id. - * - * @returns {string} - Encoded naddr, note or nevent. - */ - encode: () => `naddr1${string}` | `nevent1${string}` | `note1${string}`; - encrypt: (recipient?: NDKUser | undefined, signer?: NDKSigner | undefined) => Promise; - decrypt: (sender?: NDKUser | undefined, signer?: NDKSigner | undefined) => Promise; - /** - * Get all tags with the given name - * @param tagName {string} The name of the tag to search for - * @returns {NDKTag[]} An array of the matching tags - */ - getMatchingTags(tagName: string): NDKTag[]; - /** - * Get the first tag with the given name - * @param tagName Tag name to search for - * @returns The value of the first tag with the given name, or undefined if no such tag exists - */ - tagValue(tagName: string): string | undefined; - /** - * Remove all tags with the given name (e.g. "d", "a", "p") - * @param tagName Tag name to search for and remove - * @returns {void} - */ - removeTag(tagName: string): void; - /** - * Sign the event if a signer is present. - * - * It will generate tags. - * Repleacable events will have their created_at field set to the current time. - * @param signer {NDKSigner} The NDKSigner to use to sign the event - * @returns {Promise} A Promise that resolves to the signature of the signed event. - */ - sign(signer?: NDKSigner): Promise; - /** - * Attempt to sign and then publish an NDKEvent to a given relaySet. - * If no relaySet is provided, the relaySet will be calculated by NDK. - * @param relaySet {NDKRelaySet} The relaySet to publish the even to. - * @returns A promise that resolves to the relays the event was published to. - */ - publish(relaySet?: NDKRelaySet, timeoutMs?: number): Promise>; - /** - * Generates tags for users, notes, and other events tagged in content. - * Will also generate random "d" tag for parameterized replaceable events where needed. - * @returns {ContentTag} The tags and content of the event. - */ - protected generateTags(): Promise; - muted(): string | null; - /** - * Returns the "d" tag of a parameterized replaceable event or throws an error if the event isn't - * a parameterized replaceable event. - * @returns {string} the "d" tag of the event. - */ - replaceableDTag(): string; - /** - * Provides a deduplication key for the event. - * - * For kinds 0, 3, 10k-20k this will be the event : - * For kinds 30k-40k this will be the event :: - * For all other kinds this will be the event id - */ - deduplicationKey(): string; - /** - * Returns the id of the event or, if it's a parameterized event, the generated id of the event using "d" tag, pubkey, and kind. - * @returns {string} The id - */ - tagId(): string; - /** - * Returns the "reference" value ("::") for this replaceable event. - * @returns {string} The id - */ - tagAddress(): string; - /** - * Get the tag that can be used to reference this event from another event. - * - * Consider using referenceTags() instead (unless you have a good reason to use this) - * - * @example - * event = new NDKEvent(ndk, { kind: 30000, pubkey: 'pubkey', tags: [ ["d", "d-code"] ] }); - * event.tagReference(); // ["a", "30000:pubkey:d-code"] - * - * event = new NDKEvent(ndk, { kind: 1, pubkey: 'pubkey', id: "eventid" }); - * event.tagReference(); // ["e", "eventid"] - * @returns {NDKTag} The NDKTag object referencing this event - */ - tagReference(marker?: string): NDKTag; - /** - * Get the tags that can be used to reference this event from another event - * @param marker The marker to use in the tag - * @example - * event = new NDKEvent(ndk, { kind: 30000, pubkey: 'pubkey', tags: [ ["d", "d-code"] ] }); - * event.referenceTags(); // [["a", "30000:pubkey:d-code"], ["e", "parent-id"]] - * - * event = new NDKEvent(ndk, { kind: 1, pubkey: 'pubkey', id: "eventid" }); - * event.referenceTags(); // [["e", "parent-id"]] - * @returns {NDKTag} The NDKTag object referencing this event - */ - referenceTags(marker?: string, skipAuthorTag?: boolean): NDKTag[]; - /** - * Provides the filter that will return matching events for this event. - * - * @example - * event = new NDKEvent(ndk, { kind: 30000, pubkey: 'pubkey', tags: [ ["d", "d-code"] ] }); - * event.filter(); // { "#a": ["30000:pubkey:d-code"] } - * @example - * event = new NDKEvent(ndk, { kind: 1, pubkey: 'pubkey', id: "eventid" }); - * event.filter(); // { "#e": ["eventid"] } - * - * @returns The filter that will return matching events for this event - */ - filter(): NDKFilter; - /** - * Create a zap request for an existing event - * - * @param amount The amount to zap in millisatoshis - * @param comment A comment to add to the zap request - * @param extraTags Extra tags to add to the zap request - * @param recipient The zap recipient (optional for events) - * @param signer The signer to use (will default to the NDK instance's signer) - */ - zap(amount: number, comment?: string, extraTags?: NDKTag[], recipient?: NDKUser, signer?: NDKSigner): Promise; - /** - * Generates a deletion event of the current event - * - * @param reason The reason for the deletion - * @returns The deletion event - */ - delete(reason?: string): Promise; - /** - * NIP-18 reposting event. - * - * @param publish Whether to publish the reposted event automatically - * @param signer The signer to use for signing the reposted event - * @returns The reposted event - * - * @function - */ - repost: (publish?: boolean | undefined, signer?: NDKSigner | undefined) => Promise; - /** - * React to an existing event - * - * @param content The content of the reaction - */ - react(content: string): Promise; -} - -interface NDKCacheAdapter { - /** - * Whether this cache adapter is expected to be fast. - * If this is true, the cache will be queried before the relays. - * When this is false, the cache will be queried in addition to the relays. - */ - locking: boolean; - query(subscription: NDKSubscription): Promise; - setEvent(event: NDKEvent, filter: NDKFilter, relay?: NDKRelay): Promise; - /** - * Special purpose - */ - fetchProfile?(pubkey: Hexpubkey): Promise; - saveProfile?(pubkey: Hexpubkey, profile: NDKUserProfile): void; -} - -/** - * Represents a NIP-23 article. - */ -declare class NDKArticle extends NDKEvent { - constructor(ndk: NDK | undefined, rawEvent?: NostrEvent); - /** - * Creates a NDKArticle from an existing NDKEvent. - * - * @param event NDKEvent to create the NDKArticle from. - * @returns NDKArticle - */ - static from(event: NDKEvent): NDKArticle; - /** - * Getter for the article title. - * - * @returns {string | undefined} - The article title if available, otherwise undefined. - */ - get title(): string | undefined; - /** - * Setter for the article title. - * - * @param {string | undefined} title - The title to set for the article. - */ - set title(title: string | undefined); - /** - * Getter for the article image. - * - * @returns {string | undefined} - The article image if available, otherwise undefined. - */ - get image(): string | undefined; - /** - * Setter for the article image. - * - * @param {string | undefined} image - The image to set for the article. - */ - set image(image: string | undefined); - get summary(): string | undefined; - /** - * Getter for the article's publication timestamp. - * - * @returns {number | undefined} - The Unix timestamp of when the article was published or undefined. - */ - get published_at(): number | undefined; - /** - * Setter for the article's publication timestamp. - * - * @param {number | undefined} timestamp - The Unix timestamp to set for the article's publication date. - */ - set published_at(timestamp: number | undefined); - /** - * Generates content tags for the article. - * - * This method first checks and sets the publication date if not available, - * and then generates content tags based on the base NDKEvent class. - * - * @returns {ContentTag} - The generated content tags. - */ - protected generateTags(): Promise; - /** - * Getter for the article's URL. - * - * @returns {string | undefined} - The article's URL if available, otherwise undefined. - */ - get url(): string | undefined; - /** - * Setter for the article's URL. - * - * @param {string | undefined} url - The URL to set for the article. - */ - set url(url: string | undefined); -} - -/** - * Highlight as defined by NIP-84 (kind:9802). - */ -declare class NDKHighlight extends NDKEvent { - private _article; - constructor(ndk?: NDK, rawEvent?: NostrEvent); - static from(event: NDKEvent): NDKHighlight; - get url(): string | undefined; - /** - * Context tag. - */ - set context(context: string | undefined); - get context(): string | undefined; - /** - * Will return the article URL or NDKEvent if they have already been - * set (it won't attempt to load remote events) - */ - get article(): NDKEvent | string | undefined; - /** - * Article the highlight is coming from. - * - * @param article Article URL or NDKEvent. - */ - set article(article: NDKEvent | string); - getArticleTag(): NDKTag | undefined; - getArticle(): Promise; -} - -declare enum NDKDvmJobFeedbackStatus { - Processing = "processing", - Success = "success", - Scheduled = "scheduled", - PayReq = "payment_required" -} -declare class NDKDVMJobFeedback extends NDKEvent { - constructor(ndk?: NDK, event?: NostrEvent); - static from(event: NDKEvent): NDKDVMJobFeedback; - get status(): NDKDvmJobFeedbackStatus | string | undefined; - set status(status: NDKDvmJobFeedbackStatus | string | undefined); -} - -/** - * This event is published by Data Vending Machines when - * they have finished processing a job. - */ -declare class NDKDVMJobResult extends NDKEvent { - constructor(ndk?: NDK, event?: NostrEvent); - static from(event: NDKEvent): NDKDVMJobResult; - setAmount(msat: number, invoice?: string): void; - set result(result: string | undefined); - get result(): string | undefined; - set status(status: string | undefined); - get status(): string | undefined; - get jobRequestId(): string | undefined; - set jobRequest(event: NDKEvent | undefined); - get jobRequest(): NDKEvent | undefined; -} - -/** - * NIP-90: Data vending machine - * - * A generic Job request class for Data Vending Machines - */ -declare class NDKDVMRequest extends NDKEvent { - constructor(ndk: NDK | undefined, event?: NostrEvent); - static from(event: NDKEvent): NDKDVMRequest; - /** - * Create a new job feedback for this request - */ - createFeedback(status: NDKDvmJobFeedbackStatus | string): NDKDVMJobFeedback; - /** - * Create a new result event for this request - */ - createResult(data?: NostrEvent): NDKDVMJobResult; - set bid(msatAmount: number | undefined); - get bid(): number | undefined; - /** - * Adds a new input to the job - * @param args The arguments to the input - */ - addInput(...args: string[]): void; - /** - * Adds a new parameter to the job - */ - addParam(...args: string[]): void; - set output(output: string | string[] | undefined); - get output(): string[] | undefined; - get params(): string[][]; - getParam(name: string): string | undefined; -} - -/** - * NIP-90 - * - * This class creates DVM transcription job types - */ -declare class NDKTranscriptionDVM extends NDKDVMRequest { - constructor(ndk: NDK | undefined, event?: NostrEvent); - static from(event: NDKEvent): NDKTranscriptionDVM; - /** - * Returns the original source of the transcription - */ - get url(): string | undefined; - /** - * Getter for the title tag - */ - get title(): string | undefined; - /** - * Setter for the title tag - */ - set title(value: string | undefined); - /** - * Getter for the image tag - */ - get image(): string | undefined; - /** - * Setter for the image tag - */ - set image(value: string | undefined); -} - -type NDKDvmParam = [string, string, ...string[]]; - -type NDKListItem = NDKRelay | NDKUser | NDKEvent; -/** - * Represents any NIP-33 list kind. - * - * This class provides some helper methods to manage the list, particularly - * a CRUD interface to list items. - * - * List items can be encrypted or not. Encrypted items are JSON-encoded and - * self-signed by the user's key. - * - * @example Adding an event to the list. - * const event1 = new NDKEvent(...); - * const list = new NDKList(); - * list.addItem(event1); - * - * @example Adding an encrypted `p` tag to the list with a "person" mark. - * const secretFollow = new NDKUser(...); - * list.addItem(secretFollow, 'person', true); - * - * @emits NDKList#change - */ -declare class NDKList extends NDKEvent { - _encryptedTags: NDKTag[] | undefined; - /** - * Stores the number of bytes the content was before decryption - * to expire the cache when the content changes. - */ - private encryptedTagsLength; - constructor(ndk?: NDK, rawEvent?: NostrEvent); - /** - * Wrap a NDKEvent into a NDKList - */ - static from(ndkEvent: NDKEvent): NDKList; - /** - * Returns the title of the list. Falls back on fetching the name tag value. - */ - get title(): string | undefined; - /** - * Sets the title of the list. - */ - set title(title: string | undefined); - /** - * Returns the name of the list. - * @deprecated Please use "title" instead. - */ - get name(): string | undefined; - /** - * Sets the name of the list. - * @deprecated Please use "title" instead. This method will use the `title` tag instead. - */ - set name(name: string | undefined); - /** - * Returns the description of the list. - */ - get description(): string | undefined; - /** - * Sets the description of the list. - */ - set description(name: string | undefined); - private isEncryptedTagsCacheValid; - /** - * Returns the decrypted content of the list. - */ - encryptedTags(useCache?: boolean): Promise; - /** - * This method can be overriden to validate that a tag is valid for this list. - * - * (i.e. the NDKPersonList can validate that items are NDKUser instances) - */ - validateTag(tagValue: string): boolean | string; - /** - * Returns the unecrypted items in this list. - */ - get items(): NDKTag[]; - /** - * Adds a new item to the list. - * @param relay Relay to add - * @param mark Optional mark to add to the item - * @param encrypted Whether to encrypt the item - */ - addItem(item: NDKListItem | NDKTag, mark?: string | undefined, encrypted?: boolean): Promise; - /** - * Removes an item from the list. - * - * @param index The index of the item to remove. - * @param encrypted Whether to remove from the encrypted list or not. - */ - removeItem(index: number, encrypted: boolean): Promise; -} - -type classWithConvertFunction = { - from: (event: NDKEvent) => T; -}; -/** - * Handles NIP-18 reposts. - */ -declare class NDKRepost extends NDKEvent { - private _repostedEvents; - constructor(ndk?: NDK, rawEvent?: NostrEvent); - static from(event: NDKEvent): NDKRepost; - /** - * Returns all reposted events by the current event. - * - * @param klass Optional class to convert the events to. - * @returns - */ - repostedEvents(klass?: classWithConvertFunction, opts?: NDKSubscriptionOptions): Promise; - /** - * Returns the reposted event IDs. - */ - repostedEventIds(): string[]; -} - -/** - * This is a NIP-89 app handler wrapper. - * - * @summary NIP-89 App Handler - * @implements kind:31990 - */ -declare class NDKAppHandlerEvent extends NDKEvent { - private profile; - constructor(ndk?: NDK, rawEvent?: NostrEvent); - static from(ndkEvent: NDKEvent): NDKAppHandlerEvent; - /** - * Fetches app handler information - * If no app information is available on the kind:31990, - * we fetch the event's author's profile and return that instead. - */ - fetchProfile(): Promise; -} - -type Nip04QueueItem = { - type: "encrypt" | "decrypt"; - counterpartyHexpubkey: string; - value: string; - resolve: (value: string) => void; - reject: (reason?: Error) => void; -}; -type Nip07RelayMap = { - [key: string]: { - read: boolean; - write: boolean; - }; -}; -/** - * NDKNip07Signer implements the NDKSigner interface for signing Nostr events - * with a NIP-07 browser extension (e.g., getalby, nos2x). - */ -declare class NDKNip07Signer implements NDKSigner { - private _userPromise; - nip04Queue: Nip04QueueItem[]; - private nip04Processing; - private debug; - private waitTimeout; - /** - * @param waitTimeout - The timeout in milliseconds to wait for the NIP-07 to become available - */ - constructor(waitTimeout?: number); - blockUntilReady(): Promise; - /** - * Getter for the user property. - * @returns The NDKUser instance. - */ - user(): Promise; - /** - * Signs the given Nostr event. - * @param event - The Nostr event to be signed. - * @returns The signature of the signed event. - * @throws Error if the NIP-07 is not available on the window object. - */ - sign(event: NostrEvent): Promise; - relays(): Promise; - encrypt(recipient: NDKUser, value: string): Promise; - decrypt(sender: NDKUser, value: string): Promise; - private queueNip04; - private processNip04Queue; - private waitForExtension; -} -declare global { - interface Window { - nostr?: { - getPublicKey(): Promise; - signEvent(event: NostrEvent): Promise<{ - sig: string; - }>; - getRelays?: () => Promise; - nip04?: { - encrypt(recipientHexPubKey: string, value: string): Promise; - decrypt(senderHexPubKey: string, value: string): Promise; - }; - }; - } -} - -declare class NDKPrivateKeySigner implements NDKSigner { - private _user; - privateKey?: string; - constructor(privateKey?: string); - static generate(): NDKPrivateKeySigner; - blockUntilReady(): Promise; - user(): Promise; - sign(event: NostrEvent): Promise; - encrypt(recipient: NDKUser, value: string): Promise; - decrypt(sender: NDKUser, value: string): Promise; -} - -interface NDKRpcRequest { - id: string; - pubkey: string; - method: string; - params: string[]; - event: NDKEvent; -} -interface NDKRpcResponse { - id: string; - result: string; - error?: string; - event: NDKEvent; -} -declare class NDKNostrRpc extends EventEmitter { - private ndk; - private signer; - private debug; - constructor(ndk: NDK, signer: NDKSigner, debug: debug.Debugger); - /** - * Subscribe to a filter. This function will resolve once the subscription is ready. - */ - subscribe(filter: NDKFilter): Promise; - parseEvent(event: NDKEvent): Promise; - sendResponse(id: string, remotePubkey: string, result: string, kind?: number, error?: string): Promise; - /** - * Sends a request. - * @param remotePubkey - * @param method - * @param params - * @param kind - * @param id - */ - sendRequest(remotePubkey: string, method: string, params?: string[], kind?: number, cb?: (res: NDKRpcResponse) => void): Promise; -} - -type NIP46Method = "connect" | "sign_event" | "encrypt" | "decrypt"; -type Nip46PermitCallbackParams = { - /** - * ID of the request - */ - id: string; - pubkey: string; - method: NIP46Method; - params?: any; -}; -type Nip46PermitCallback = (params: Nip46PermitCallbackParams) => Promise; -type Nip46ApplyTokenCallback = (pubkey: string, token: string) => Promise; -interface IEventHandlingStrategy { - handle(backend: NDKNip46Backend, id: string, remotePubkey: string, params: string[]): Promise; -} -/** - * This class implements a NIP-46 backend, meaning that it will hold a private key - * of the npub that wants to be published as. - * - * This backend is meant to be used by an NDKNip46Signer, which is the class that - * should run client-side, where the user wants to sign events from. - */ -declare class NDKNip46Backend { - readonly ndk: NDK; - readonly signer: NDKPrivateKeySigner; - localUser?: NDKUser; - readonly debug: debug.Debugger; - rpc: NDKNostrRpc; - private permitCallback; - /** - * @param ndk The NDK instance to use - * @param privateKey The private key of the npub that wants to be published as - */ - constructor(ndk: NDK, privateKey: string, permitCallback: Nip46PermitCallback); - /** - * This method starts the backend, which will start listening for incoming - * requests. - */ - start(): Promise; - handlers: { - [method: string]: IEventHandlingStrategy; - }; - /** - * Enables the user to set a custom strategy for handling incoming events. - * @param method - The method to set the strategy for - * @param strategy - The strategy to set - */ - setStrategy(method: string, strategy: IEventHandlingStrategy): void; - /** - * Overload this method to apply tokens, which can - * wrap permission sets to be applied to a pubkey. - * @param pubkey public key to apply token to - * @param token token to apply - */ - applyToken(pubkey: string, token: string): Promise; - protected handleIncomingEvent(event: NDKEvent): Promise; - /** - * This method should be overriden by the user to allow or reject incoming - * connections. - */ - pubkeyAllowed(params: Nip46PermitCallbackParams): Promise; -} - -/** - * This NDKSigner implements NIP-46, which allows remote signing of events. - * This class is meant to be used client-side, paired with the NDKNip46Backend or a NIP-46 backend (like Nostr-Connect) - * - * @emits authUrl -- Emitted when the user should take an action in certain URL. - * When a client receives this event, it should direct the user - * to go to that URL to authorize the application. - */ -declare class NDKNip46Signer extends EventEmitter$1 implements NDKSigner { - private ndk; - remoteUser: NDKUser; - remotePubkey: string | undefined; - token: string | undefined; - localSigner: NDKSigner; - private nip05?; - private rpc; - private debug; - /** - * @param ndk - The NDK instance to use - * @param token - connection token, in the form "npub#otp" - * @param localSigner - The signer that will be used to request events to be signed - */ - constructor(ndk: NDK, token: string, localSigner?: NDKSigner); - /** - * @param ndk - The NDK instance to use - * @param remoteNpub - The npub that wants to be published as - * @param localSigner - The signer that will be used to request events to be signed - */ - constructor(ndk: NDK, remoteNpub: string, localSigner?: NDKSigner); - /** - * @param ndk - The NDK instance to use - * @param remoteNip05 - The nip05 that wants to be published as - * @param localSigner - The signer that will be used to request events to be signed - */ - constructor(ndk: NDK, remoteNip05: string, localSigner?: NDKSigner); - /** - * @param ndk - The NDK instance to use - * @param remotePubkey - The public key of the npub that wants to be published as - * @param localSigner - The signer that will be used to request events to be signed - */ - constructor(ndk: NDK, remotePubkey: string, localSigner?: NDKSigner); - /** - * Get the user that is being published as - */ - user(): Promise; - blockUntilReady(): Promise; - encrypt(recipient: NDKUser, value: string): Promise; - decrypt(sender: NDKUser, value: string): Promise; - sign(event: NostrEvent): Promise; -} - -type NDKFilterGroupingId = string; -/** - * Calculates the groupable ID for this filters. - * The groupable ID is a deterministic association of the filters - * used in a filters. When the combination of filters makes it - * possible to group them, the groupable ID is used to group them. - * - * The different filters in the array are differentiated so that - * filters can only be grouped with other filters that have the same signature - * - * @returns The groupable ID, or null if the filters are not groupable. - */ -declare function calculateGroupableId(filters: NDKFilter[]): NDKFilterGroupingId | null; -/** - * Go through all the passed filters, which should be - * relatively similar, and merge them. - */ -declare function mergeFilters(filters: NDKFilter[]): NDKFilter; - -interface NDKZapInvoice { - id?: NDKEventId; - zapper: string; - zappee: string; - zapped: string; - zappedEvent?: string; - amount: number; - comment?: string; -} -/** - * Parses a zap invoice from a kind 9735 event - * - * @param event The event to parse - * - * @returns NDKZapInvoice | null - */ -declare function zapInvoiceFromEvent(event: NDKEvent): NDKZapInvoice | null; - -export { EventPointer, Hexpubkey, IEventHandlingStrategy, NDKAppHandlerEvent, NDKArticle, NDKCacheAdapter, NDKConstructorParams, NDKDVMJobFeedback, NDKDVMJobResult, NDKDVMRequest, NDKDvmJobFeedbackStatus, NDKDvmParam, NDKEvent, NDKEventId, NDKFilter, NDKFilterGroupingId, NDKHighlight, NDKKind, NDKList, NDKListItem, NDKListKinds, NDKNip07Signer, NDKNip46Backend, NDKNip46Signer, NDKNostrRpc, NDKPrivateKeySigner, NDKRelay, NDKRelayConnectionStats, NDKRelayList, NDKRelaySet, NDKRelayStatus, NDKRelayUrl, NDKRepost, NDKRpcRequest, NDKRpcResponse, NDKSigner, NDKSubscription, NDKSubscriptionCacheUsage, NDKSubscriptionOptions, NDKTag, NDKTranscriptionDVM, NDKUser, NDKUserParams, NDKUserProfile, NDKZapInvoice, NIP46Method, Nip46ApplyTokenCallback, Nip46PermitCallback, Nip46PermitCallbackParams, NostrEvent, Npub, ProfilePointer, calculateGroupableId, NDK as default, defaultOpts, mergeFilters, profileFromEvent, serializeProfile, zapInvoiceFromEvent }; diff --git a/node_modules/@nostr-dev-kit/ndk/dist/index.js b/node_modules/@nostr-dev-kit/ndk/dist/index.js deleted file mode 100644 index 5f2c3130..00000000 --- a/node_modules/@nostr-dev-kit/ndk/dist/index.js +++ /dev/null @@ -1,4802 +0,0 @@ -"use strict"; -var __create = Object.create; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __getProtoOf = Object.getPrototypeOf; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __commonJS = (cb, mod) => function __require() { - return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; -}; -var __export = (target, all) => { - for (var name in all) - __defProp(target, name, { get: all[name], enumerable: true }); -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( - // If the importer is in node compatibility mode or this is not an ESM - // file that has been converted to a CommonJS file using a Babel- - // compatible transform (i.e. "__esModule" has not been set), then set - // "default" to the CommonJS "module.exports" for node compatibility. - isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, - mod -)); -var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod); - -// ../node_modules/eventemitter3/index.js -var require_eventemitter3 = __commonJS({ - "../node_modules/eventemitter3/index.js"(exports, module2) { - "use strict"; - var has = Object.prototype.hasOwnProperty; - var prefix = "~"; - function Events() { - } - if (Object.create) { - Events.prototype = /* @__PURE__ */ Object.create(null); - if (!new Events().__proto__) - prefix = false; - } - function EE(fn, context, once) { - this.fn = fn; - this.context = context; - this.once = once || false; - } - function addListener(emitter, event, fn, context, once) { - if (typeof fn !== "function") { - throw new TypeError("The listener must be a function"); - } - var listener = new EE(fn, context || emitter, once), evt = prefix ? prefix + event : event; - if (!emitter._events[evt]) - emitter._events[evt] = listener, emitter._eventsCount++; - else if (!emitter._events[evt].fn) - emitter._events[evt].push(listener); - else - emitter._events[evt] = [emitter._events[evt], listener]; - return emitter; - } - function clearEvent(emitter, evt) { - if (--emitter._eventsCount === 0) - emitter._events = new Events(); - else - delete emitter._events[evt]; - } - function EventEmitter11() { - this._events = new Events(); - this._eventsCount = 0; - } - EventEmitter11.prototype.eventNames = function eventNames() { - var names = [], events, name; - if (this._eventsCount === 0) - return names; - for (name in events = this._events) { - if (has.call(events, name)) - names.push(prefix ? name.slice(1) : name); - } - if (Object.getOwnPropertySymbols) { - return names.concat(Object.getOwnPropertySymbols(events)); - } - return names; - }; - EventEmitter11.prototype.listeners = function listeners(event) { - var evt = prefix ? prefix + event : event, handlers = this._events[evt]; - if (!handlers) - return []; - if (handlers.fn) - return [handlers.fn]; - for (var i = 0, l = handlers.length, ee = new Array(l); i < l; i++) { - ee[i] = handlers[i].fn; - } - return ee; - }; - EventEmitter11.prototype.listenerCount = function listenerCount(event) { - var evt = prefix ? prefix + event : event, listeners = this._events[evt]; - if (!listeners) - return 0; - if (listeners.fn) - return 1; - return listeners.length; - }; - EventEmitter11.prototype.emit = function emit(event, a1, a2, a3, a4, a5) { - var evt = prefix ? prefix + event : event; - if (!this._events[evt]) - return false; - var listeners = this._events[evt], len = arguments.length, args, i; - if (listeners.fn) { - if (listeners.once) - this.removeListener(event, listeners.fn, void 0, true); - switch (len) { - case 1: - return listeners.fn.call(listeners.context), true; - case 2: - return listeners.fn.call(listeners.context, a1), true; - case 3: - return listeners.fn.call(listeners.context, a1, a2), true; - case 4: - return listeners.fn.call(listeners.context, a1, a2, a3), true; - case 5: - return listeners.fn.call(listeners.context, a1, a2, a3, a4), true; - case 6: - return listeners.fn.call(listeners.context, a1, a2, a3, a4, a5), true; - } - for (i = 1, args = new Array(len - 1); i < len; i++) { - args[i - 1] = arguments[i]; - } - listeners.fn.apply(listeners.context, args); - } else { - var length = listeners.length, j; - for (i = 0; i < length; i++) { - if (listeners[i].once) - this.removeListener(event, listeners[i].fn, void 0, true); - switch (len) { - case 1: - listeners[i].fn.call(listeners[i].context); - break; - case 2: - listeners[i].fn.call(listeners[i].context, a1); - break; - case 3: - listeners[i].fn.call(listeners[i].context, a1, a2); - break; - case 4: - listeners[i].fn.call(listeners[i].context, a1, a2, a3); - break; - default: - if (!args) - for (j = 1, args = new Array(len - 1); j < len; j++) { - args[j - 1] = arguments[j]; - } - listeners[i].fn.apply(listeners[i].context, args); - } - } - } - return true; - }; - EventEmitter11.prototype.on = function on(event, fn, context) { - return addListener(this, event, fn, context, false); - }; - EventEmitter11.prototype.once = function once(event, fn, context) { - return addListener(this, event, fn, context, true); - }; - EventEmitter11.prototype.removeListener = function removeListener(event, fn, context, once) { - var evt = prefix ? prefix + event : event; - if (!this._events[evt]) - return this; - if (!fn) { - clearEvent(this, evt); - return this; - } - var listeners = this._events[evt]; - if (listeners.fn) { - if (listeners.fn === fn && (!once || listeners.once) && (!context || listeners.context === context)) { - clearEvent(this, evt); - } - } else { - for (var i = 0, events = [], length = listeners.length; i < length; i++) { - if (listeners[i].fn !== fn || once && !listeners[i].once || context && listeners[i].context !== context) { - events.push(listeners[i]); - } - } - if (events.length) - this._events[evt] = events.length === 1 ? events[0] : events; - else - clearEvent(this, evt); - } - return this; - }; - EventEmitter11.prototype.removeAllListeners = function removeAllListeners(event) { - var evt; - if (event) { - evt = prefix ? prefix + event : event; - if (this._events[evt]) - clearEvent(this, evt); - } else { - this._events = new Events(); - this._eventsCount = 0; - } - return this; - }; - EventEmitter11.prototype.off = EventEmitter11.prototype.removeListener; - EventEmitter11.prototype.addListener = EventEmitter11.prototype.on; - EventEmitter11.prefixed = prefix; - EventEmitter11.EventEmitter = EventEmitter11; - if ("undefined" !== typeof module2) { - module2.exports = EventEmitter11; - } - } -}); - -// src/index.ts -var src_exports = {}; -__export(src_exports, { - NDKAppHandlerEvent: () => NDKAppHandlerEvent, - NDKArticle: () => NDKArticle, - NDKDVMJobFeedback: () => NDKDVMJobFeedback, - NDKDVMJobResult: () => NDKDVMJobResult, - NDKDVMRequest: () => NDKDVMRequest, - NDKDvmJobFeedbackStatus: () => NDKDvmJobFeedbackStatus, - NDKEvent: () => NDKEvent, - NDKHighlight: () => NDKHighlight, - NDKKind: () => NDKKind, - NDKList: () => NDKList, - NDKListKinds: () => NDKListKinds, - NDKNip07Signer: () => NDKNip07Signer, - NDKNip46Backend: () => NDKNip46Backend, - NDKNip46Signer: () => NDKNip46Signer, - NDKNostrRpc: () => NDKNostrRpc, - NDKPrivateKeySigner: () => NDKPrivateKeySigner, - NDKRelay: () => NDKRelay, - NDKRelayList: () => NDKRelayList, - NDKRelaySet: () => NDKRelaySet, - NDKRelayStatus: () => NDKRelayStatus, - NDKRepost: () => NDKRepost, - NDKSubscription: () => NDKSubscription, - NDKSubscriptionCacheUsage: () => NDKSubscriptionCacheUsage, - NDKTranscriptionDVM: () => NDKTranscriptionDVM, - NDKUser: () => NDKUser, - calculateGroupableId: () => calculateGroupableId, - default: () => NDK, - defaultOpts: () => defaultOpts, - mergeFilters: () => mergeFilters, - profileFromEvent: () => profileFromEvent, - serializeProfile: () => serializeProfile, - zapInvoiceFromEvent: () => zapInvoiceFromEvent -}); -module.exports = __toCommonJS(src_exports); - -// src/user/index.ts -var import_nostr_tools8 = require("nostr-tools"); - -// src/events/index.ts -var import_tseep4 = require("tseep"); -var import_nostr_tools7 = require("nostr-tools"); - -// src/relay/index.ts -var import_debug = __toESM(require("debug")); -var import_tseep2 = require("tseep"); - -// src/relay/connectivity.ts -var import_nostr_tools = require("nostr-tools"); -var NDKRelayConnectivity = class { - ndkRelay; - _status; - relay; - connectedAt; - _connectionStats = { - attempts: 0, - success: 0, - durations: [] - }; - debug; - constructor(ndkRelay) { - this.ndkRelay = ndkRelay; - this._status = 3 /* DISCONNECTED */; - this.relay = (0, import_nostr_tools.relayInit)(this.ndkRelay.url); - this.debug = this.ndkRelay.debug.extend("connectivity"); - this.relay.on("notice", (notice) => this.handleNotice(notice)); - } - async connect() { - const connectHandler = () => { - this.updateConnectionStats.connected(); - this._status = 1 /* CONNECTED */; - this.ndkRelay.emit("connect"); - }; - const disconnectHandler = () => { - this.updateConnectionStats.disconnected(); - if (this._status === 1 /* CONNECTED */) { - this._status = 3 /* DISCONNECTED */; - this.handleReconnection(); - } - this.ndkRelay.emit("disconnect"); - }; - try { - this.updateConnectionStats.attempt(); - this._status = 0 /* CONNECTING */; - this.relay.off("connect", connectHandler); - this.relay.off("disconnect", disconnectHandler); - this.relay.on("connect", connectHandler); - this.relay.on("disconnect", disconnectHandler); - await this.relay.connect(); - } catch (e) { - this.debug("Failed to connect", e); - this._status = 3 /* DISCONNECTED */; - throw e; - } - } - disconnect() { - this._status = 2 /* DISCONNECTING */; - this.relay.close(); - } - get status() { - return this._status; - } - isAvailable() { - return this._status === 1 /* CONNECTED */; - } - /** - * Evaluates the connection stats to determine if the relay is flapping. - */ - isFlapping() { - const durations = this._connectionStats.durations; - if (durations.length % 3 !== 0) - return false; - const sum = durations.reduce((a, b) => a + b, 0); - const avg = sum / durations.length; - const variance = durations.map((x) => Math.pow(x - avg, 2)).reduce((a, b) => a + b, 0) / durations.length; - const stdDev = Math.sqrt(variance); - const isFlapping = stdDev < 1e3; - return isFlapping; - } - async handleNotice(notice) { - if (notice.includes("oo many") || notice.includes("aximum")) { - this.disconnect(); - setTimeout(() => this.connect(), 2e3); - this.debug(this.relay.url, "Relay complaining?", notice); - } - this.ndkRelay.emit("notice", this, notice); - } - /** - * Called when the relay is unexpectedly disconnected. - */ - handleReconnection(attempt = 0) { - if (this.isFlapping()) { - this.ndkRelay.emit("flapping", this, this._connectionStats); - this._status = 5 /* FLAPPING */; - return; - } - const reconnectDelay = this.connectedAt ? Math.max(0, 6e4 - (Date.now() - this.connectedAt)) : 0; - setTimeout(() => { - this._status = 4 /* RECONNECTING */; - this.connect().then(() => { - this.debug("Reconnected"); - }).catch((err) => { - this.debug("Reconnect failed", err); - if (attempt < 5) { - setTimeout(() => { - this.handleReconnection(attempt + 1); - }, 6e4); - } else { - this.debug("Reconnect failed after 5 attempts"); - } - }); - }, reconnectDelay); - } - /** - * Utility functions to update the connection stats. - */ - updateConnectionStats = { - connected: () => { - this._connectionStats.success++; - this._connectionStats.connectedAt = Date.now(); - }, - disconnected: () => { - if (this._connectionStats.connectedAt) { - this._connectionStats.durations.push( - Date.now() - this._connectionStats.connectedAt - ); - if (this._connectionStats.durations.length > 100) { - this._connectionStats.durations.shift(); - } - } - this._connectionStats.connectedAt = void 0; - }, - attempt: () => { - this._connectionStats.attempts++; - } - }; - /** - * Returns the connection stats. - */ - get connectionStats() { - return this._connectionStats; - } -}; - -// src/relay/publisher.ts -var NDKRelayPublisher = class { - ndkRelay; - constructor(ndkRelay) { - this.ndkRelay = ndkRelay; - } - /** - * Published an event to the relay; if the relay is not connected, it will - * wait for the relay to connect before publishing the event. - * - * If the relay does not connect within the timeout, the publish operation - * will fail. - * @param event The event to publish - * @param timeoutMs The timeout for the publish operation in milliseconds - * @returns A promise that resolves when the event has been published or rejects if the operation times out - */ - async publish(event, timeoutMs = 2500) { - const publishWhenConnected = () => { - return new Promise((resolve, reject) => { - try { - this.publishEvent(event, timeoutMs).then((result) => resolve(result)).catch((err) => reject(err)); - } catch (err) { - reject(err); - } - }); - }; - const timeoutPromise = new Promise((_, reject) => { - setTimeout(() => reject(new Error("Timeout")), timeoutMs); - }); - const onConnectHandler = () => { - publishWhenConnected().then((result) => connectResolve(result)).catch((err) => connectReject(err)); - }; - let connectResolve; - let connectReject; - if (this.ndkRelay.status === 1 /* CONNECTED */) { - return Promise.race([publishWhenConnected(), timeoutPromise]); - } else { - return Promise.race([ - new Promise((resolve, reject) => { - connectResolve = resolve; - connectReject = reject; - this.ndkRelay.once("connect", onConnectHandler); - }), - timeoutPromise - ]).finally(() => { - this.ndkRelay.removeListener("connect", onConnectHandler); - }); - } - } - async publishEvent(event, timeoutMs) { - const nostrEvent = await event.toNostrEvent(); - const publish = this.ndkRelay.connectivity.relay.publish(nostrEvent); - let publishTimeout; - const publishPromise = new Promise((resolve, reject) => { - publish.then(() => { - clearTimeout(publishTimeout); - this.ndkRelay.emit("published", event); - resolve(true); - }).catch((err) => { - clearTimeout(publishTimeout); - this.ndkRelay.debug("Publish failed", err, event.id); - this.ndkRelay.emit("publish:failed", event, err); - reject(err); - }); - }); - if (!timeoutMs || event.isEphemeral()) { - return publishPromise; - } - const timeoutPromise = new Promise((_, reject) => { - publishTimeout = setTimeout(() => { - this.ndkRelay.debug("Publish timed out", event.rawEvent()); - this.ndkRelay.emit("publish:failed", event, "Timeout"); - reject(new Error("Publish operation timed out")); - }, timeoutMs); - }); - return Promise.race([publishPromise, timeoutPromise]); - } -}; - -// src/relay/subscriptions.ts -var import_tseep = require("tseep"); -var import_nostr_tools3 = require("nostr-tools"); - -// src/subscription/grouping.ts -function calculateGroupableId(filters) { - const elements = []; - for (const filter of filters) { - const hasTimeConstraints = filter.since || filter.until; - if (hasTimeConstraints) - return null; - const keys = Object.keys(filter || {}).sort().join("-"); - elements.push(keys); - } - return elements.join("|"); -} -function mergeFilters(filters) { - const result = {}; - filters.forEach((filter) => { - Object.entries(filter).forEach(([key, value]) => { - if (Array.isArray(value)) { - if (result[key] === void 0) { - result[key] = [...value]; - } else { - result[key] = Array.from(/* @__PURE__ */ new Set([...result[key], ...value])); - } - } else { - result[key] = value; - } - }); - }); - return result; -} - -// src/subscription/utils.ts -var import_nostr_tools2 = require("nostr-tools"); -function queryFullyFilled(subscription) { - if (filterIncludesIds(subscription.filter)) { - if (resultHasAllRequestedIds(subscription)) { - return true; - } - } - return false; -} -function compareFilter(filter1, filter2) { - if (Object.keys(filter1).length !== Object.keys(filter2).length) - return false; - for (const [key, value] of Object.entries(filter1)) { - const valuesInFilter2 = filter2[key]; - if (!valuesInFilter2) - return false; - if (Array.isArray(value) && Array.isArray(valuesInFilter2)) { - const v = value; - for (const valueInFilter2 of valuesInFilter2) { - const val = valueInFilter2; - if (!v.includes(val)) { - return false; - } - } - } else { - if (valuesInFilter2 !== value) - return false; - } - } - return true; -} -function filterIncludesIds(filter) { - return !!filter["ids"]; -} -function resultHasAllRequestedIds(subscription) { - const ids = subscription.filter["ids"]; - return !!ids && ids.length === subscription.eventFirstSeen.size; -} -function generateSubId(subscriptions, filters) { - const subIds = subscriptions.map((sub) => sub.subId).filter(Boolean); - const subIdParts = []; - const filterNonKindKeys = /* @__PURE__ */ new Set(); - const filterKinds = /* @__PURE__ */ new Set(); - if (subIds.length > 0) { - subIdParts.push(Array.from(new Set(subIds)).join(",")); - } else { - for (const filter of filters) { - for (const key of Object.keys(filter)) { - if (key === "kinds") { - filter.kinds?.forEach((k) => filterKinds.add(k)); - } else { - filterNonKindKeys.add(key); - } - } - } - if (filterKinds.size > 0) { - subIdParts.push("kinds:" + Array.from(filterKinds).join(",")); - } - if (filterNonKindKeys.size > 0) { - subIdParts.push(Array.from(filterNonKindKeys).join(",")); - } - } - if (subIds.length !== 1) { - subIdParts.push(Math.floor(Math.random() * 999).toString()); - } - return subIdParts.join("-"); -} -function filterFromId(id) { - let decoded; - if (id.match(NIP33_A_REGEX)) { - const [kind, pubkey, identifier] = id.split(":"); - const filter = { - authors: [pubkey], - kinds: [parseInt(kind)] - }; - if (identifier) { - filter["#d"] = [identifier]; - } - return filter; - } - try { - decoded = import_nostr_tools2.nip19.decode(id); - switch (decoded.type) { - case "nevent": - return { ids: [decoded.data.id] }; - case "note": - return { ids: [decoded.data] }; - case "naddr": - return { - authors: [decoded.data.pubkey], - "#d": [decoded.data.identifier], - kinds: [decoded.data.kind] - }; - } - } catch (e) { - } - return { ids: [id] }; -} -function isNip33AValue(value) { - return value.match(NIP33_A_REGEX) !== null; -} -var NIP33_A_REGEX = /^(\d+):([0-9A-Fa-f]+)(?::(.*))?$/; -function relaysFromBech32(bech322) { - try { - const decoded = import_nostr_tools2.nip19.decode(bech322); - if (["naddr", "nevent"].includes(decoded?.type)) { - const data = decoded.data; - if (data?.relays) { - return data.relays.map((r) => new NDKRelay(r)); - } - } - } catch (e) { - } - return []; -} - -// src/relay/subscriptions.ts -var NDKGroupedSubscriptions = class extends import_tseep.EventEmitter { - subscriptions; - req; - debug; - constructor(subscriptions, debug4) { - super(); - this.subscriptions = subscriptions; - this.debug = debug4 || this.subscriptions[0].subscription.debug.extend("grouped"); - for (const subscription of subscriptions) { - this.handleSubscriptionClosure(subscription); - } - } - /** - * Adds a subscription to this group. - * @param subscription - */ - addSubscription(subscription) { - this.subscriptions.push(subscription); - this.handleSubscriptionClosure(subscription); - } - eventReceived(event) { - for (const subscription of this.subscriptions) { - subscription.eventReceived(event); - } - } - eoseReceived(relay) { - const subscriptionsToInform = Array.from(this.subscriptions); - subscriptionsToInform.forEach(async (subscription) => { - subscription.subscription.eoseReceived(relay); - }); - } - handleSubscriptionClosure(subscription) { - subscription.subscription.on("close", () => { - const index = this.subscriptions.findIndex( - (i) => i.subscription === subscription.subscription - ); - this.subscriptions.splice(index, 1); - if (this.subscriptions.length <= 0) { - this.emit("close"); - } - }); - } - /** - * Maps each subscription through a transformation function. - * @param fn - The transformation function. - * @returns A new array with each subscription transformed by fn. - */ - map(fn) { - return this.subscriptions.map(fn); - } - [Symbol.iterator]() { - let index = 0; - const subscriptions = this.subscriptions; - return { - next() { - if (index < subscriptions.length) { - return { value: subscriptions[index++], done: false }; - } else { - return { value: null, done: true }; - } - } - }; - } -}; -var NDKSubscriptionFilters = class { - subscription; - filters = []; - ndkRelay; - constructor(subscription, filters, ndkRelay) { - this.subscription = subscription; - this.filters = filters; - this.ndkRelay = ndkRelay; - } - eventReceived(event) { - if (!this.eventMatchesLocalFilter(event)) - return; - this.subscription.eventReceived(event, this.ndkRelay, false); - } - eventMatchesLocalFilter(event) { - const rawEvent = event.rawEvent(); - return this.filters.some((filter) => (0, import_nostr_tools3.matchFilter)(filter, rawEvent)); - } -}; -function findMatchingActiveSubscriptions(activeSubscriptions, filters) { - if (activeSubscriptions.length !== filters.length) - return false; - for (let i = 0; i < activeSubscriptions.length; i++) { - if (!compareFilter(activeSubscriptions[i], filters[i])) { - break; - } - return activeSubscriptions[i]; - } - return void 0; -} -var NDKRelaySubscriptions = class { - ndkRelay; - delayedItems = /* @__PURE__ */ new Map(); - delayedTimers = /* @__PURE__ */ new Map(); - /** - * Active subscriptions this relay is connected to - */ - activeSubscriptions = /* @__PURE__ */ new Map(); - activeSubscriptionsByGroupId = /* @__PURE__ */ new Map(); - debug; - groupingDebug; - conn; - constructor(ndkRelay) { - this.ndkRelay = ndkRelay; - this.conn = ndkRelay.connectivity; - this.debug = ndkRelay.debug.extend("subscriptions"); - this.groupingDebug = ndkRelay.debug.extend("grouping"); - } - /** - * Creates or queues a subscription to the relay. - */ - subscribe(subscription, filters) { - const groupableId = calculateGroupableId(filters); - const subscriptionFilters = new NDKSubscriptionFilters( - subscription, - filters, - this.ndkRelay - ); - if (!groupableId || !subscription.isGroupable()) { - this.groupingDebug("No groupable ID for filters", filters); - this.executeSubscriptions( - groupableId, - // hacky - new NDKGroupedSubscriptions([subscriptionFilters]), - filters - ); - return; - } - const activeSubscriptions = this.activeSubscriptionsByGroupId.get(groupableId); - if (activeSubscriptions) { - const matchingSubscription = findMatchingActiveSubscriptions( - activeSubscriptions.filters, - filters - ); - if (matchingSubscription) { - const activeSubscription = this.activeSubscriptions.get(activeSubscriptions.sub); - activeSubscription?.addSubscription( - new NDKSubscriptionFilters(subscription, filters, this.ndkRelay) - ); - return; - } - } - let delayedItem = this.delayedItems.get(groupableId); - if (!delayedItem) { - delayedItem = new NDKGroupedSubscriptions([subscriptionFilters]); - this.delayedItems.set(groupableId, delayedItem); - delayedItem.once("close", () => { - const delayedItem2 = this.delayedItems.get(groupableId); - if (!delayedItem2) - return; - this.delayedItems.delete(groupableId); - }); - } else { - delayedItem.addSubscription(subscriptionFilters); - } - const timeout = setTimeout(() => { - this.executeGroup(groupableId, subscription); - }, subscription.opts.groupableDelay); - if (this.delayedTimers.has(groupableId)) { - this.delayedTimers.get(groupableId).push(timeout); - } else { - this.delayedTimers.set(groupableId, [timeout]); - } - } - /** - * Executes a delayed subscription via its groupable ID. - * @param groupableId - */ - executeGroup(groupableId, triggeredBy) { - const delayedItem = this.delayedItems.get(groupableId); - this.delayedItems.delete(groupableId); - const timeouts = this.delayedTimers.get(groupableId); - this.delayedTimers.delete(groupableId); - if (timeouts) { - for (const timeout of timeouts) { - clearTimeout(timeout); - } - } - if (delayedItem) { - const filterCount = delayedItem.subscriptions[0].filters.length; - const mergedFilters = []; - for (let i = 0; i < filterCount; i++) { - const allFiltersAtIndex = delayedItem.map((di) => di.filters[i]); - mergedFilters.push(mergeFilters(allFiltersAtIndex)); - } - this.executeSubscriptions(groupableId, delayedItem, mergedFilters); - } - } - /** - * Executes one or more subscriptions. - * - * If the relay is not connected, subscriptions will be queued - * until the relay connects. - * - * @param groupableId - * @param subscriptionFilters - * @param mergedFilters - */ - executeSubscriptions(groupableId, groupedSubscriptions, mergedFilters) { - if (this.conn.isAvailable()) { - this.executeSubscriptionsConnected(groupableId, groupedSubscriptions, mergedFilters); - } else { - const connectedListener = () => { - this.debug("new relay coming online for active subscription", { - relay: this.ndkRelay.url, - mergeFilters - }); - this.executeSubscriptionsConnected( - groupableId, - groupedSubscriptions, - mergedFilters - ); - }; - this.ndkRelay.once("connect", connectedListener); - groupedSubscriptions.once("close", () => { - this.ndkRelay.removeListener("connect", connectedListener); - }); - } - } - /** - * Executes one or more subscriptions. - * - * When there are more than one subscription, results - * will be sent to the right subscription - * - * @param subscriptions - * @param filters The filters as they should be sent to the relay - */ - executeSubscriptionsConnected(groupableId, groupedSubscriptions, mergedFilters) { - const subscriptions = []; - for (const { subscription } of groupedSubscriptions) { - subscriptions.push(subscription); - } - const subId = generateSubId(subscriptions, mergedFilters); - groupedSubscriptions.req = mergedFilters; - const sub = this.conn.relay.sub(mergedFilters, { id: subId }); - this.activeSubscriptions.set(sub, groupedSubscriptions); - if (groupableId) { - this.activeSubscriptionsByGroupId.set(groupableId, { filters: mergedFilters, sub }); - } - sub.on("event", (event) => { - const e = new NDKEvent(void 0, event); - e.relay = this.ndkRelay; - const subFilters = this.activeSubscriptions.get(sub); - subFilters?.eventReceived(e); - }); - sub.on("eose", () => { - const subFilters = this.activeSubscriptions.get(sub); - subFilters?.eoseReceived(this.ndkRelay); - }); - groupedSubscriptions.once("close", () => { - sub.unsub(); - this.activeSubscriptions.delete(sub); - if (groupableId) { - this.activeSubscriptionsByGroupId.delete(groupableId); - } - }); - return sub; - } - executedFilters() { - const ret = /* @__PURE__ */ new Map(); - for (const [, groupedSubscriptions] of this.activeSubscriptions) { - ret.set( - groupedSubscriptions.req, - groupedSubscriptions.map((sub) => sub.subscription) - ); - } - return ret; - } -}; - -// src/relay/index.ts -var NDKRelayStatus = /* @__PURE__ */ ((NDKRelayStatus2) => { - NDKRelayStatus2[NDKRelayStatus2["CONNECTING"] = 0] = "CONNECTING"; - NDKRelayStatus2[NDKRelayStatus2["CONNECTED"] = 1] = "CONNECTED"; - NDKRelayStatus2[NDKRelayStatus2["DISCONNECTING"] = 2] = "DISCONNECTING"; - NDKRelayStatus2[NDKRelayStatus2["DISCONNECTED"] = 3] = "DISCONNECTED"; - NDKRelayStatus2[NDKRelayStatus2["RECONNECTING"] = 4] = "RECONNECTING"; - NDKRelayStatus2[NDKRelayStatus2["FLAPPING"] = 5] = "FLAPPING"; - return NDKRelayStatus2; -})(NDKRelayStatus || {}); -var NDKRelay = class extends import_tseep2.EventEmitter { - url; - scores; - connectivity; - subs; - publisher; - complaining = false; - debug; - constructor(url) { - super(); - this.url = url; - this.scores = /* @__PURE__ */ new Map(); - this.debug = (0, import_debug.default)(`ndk:relay:${url}`); - this.connectivity = new NDKRelayConnectivity(this); - this.subs = new NDKRelaySubscriptions(this); - this.publisher = new NDKRelayPublisher(this); - } - get status() { - return this.connectivity.status; - } - get connectionStats() { - return this.connectivity.connectionStats; - } - /** - * Connects to the relay. - */ - async connect() { - return this.connectivity.connect(); - } - /** - * Disconnects from the relay. - */ - disconnect() { - this.connectivity.disconnect(); - } - /** - * Queues or executes the subscription of a specific set of filters - * within this relay. - * - * @param subscription NDKSubscription this filters belong to. - * @param filters Filters to execute - */ - subscribe(subscription, filters) { - this.subs.subscribe(subscription, filters); - } - /** - * Publishes an event to the relay with an optional timeout. - * - * If the relay is not connected, the event will be published when the relay connects, - * unless the timeout is reached before the relay connects. - * - * @param event The event to publish - * @param timeoutMs The timeout for the publish operation in milliseconds - * @returns A promise that resolves when the event has been published or rejects if the operation times out - */ - async publish(event, timeoutMs = 2500) { - return this.publisher.publish(event, timeoutMs); - } - /** - * Called when this relay has responded with an event but - * wasn't the fastest one. - * @param timeDiffInMs The time difference in ms between the fastest and this relay in milliseconds - */ - // eslint-disable-next-line @typescript-eslint/no-unused-vars - scoreSlowerEvent(timeDiffInMs) { - } - /** @deprecated Use referenceTags instead. */ - tagReference(marker) { - const tag = ["r", this.url]; - if (marker) { - tag.push(marker); - } - return tag; - } - referenceTags() { - return [["r", this.url]]; - } - activeSubscriptions() { - return this.subs.executedFilters(); - } -}; - -// src/relay/sets/index.ts -var NDKRelaySet = class { - relays; - debug; - ndk; - constructor(relays, ndk) { - this.relays = relays; - this.ndk = ndk; - this.debug = ndk.debug.extend("relayset"); - } - /** - * Adds a relay to this set. - */ - addRelay(relay) { - this.relays.add(relay); - } - /** - * Creates a relay set from a list of relay URLs. - * - * If no connection to the relay is found in the pool it will temporarily - * connect to it. - * - * @param relayUrls - list of relay URLs to include in this set - * @param ndk - * @returns NDKRelaySet - */ - static fromRelayUrls(relayUrls, ndk) { - const relays = /* @__PURE__ */ new Set(); - for (const url of relayUrls) { - const relay = ndk.pool.relays.get(url); - if (relay) { - relays.add(relay); - } else { - const temporaryRelay = new NDKRelay(url); - ndk.pool.useTemporaryRelay(temporaryRelay); - relays.add(temporaryRelay); - } - } - return new NDKRelaySet(new Set(relays), ndk); - } - /** - * Publish an event to all relays in this set. Returns the number of relays that have received the event. - * @param event - * @param timeoutMs - timeout in milliseconds for each publish operation and connection operation - * @returns A set where the event was successfully published to - */ - async publish(event, timeoutMs) { - const publishedToRelays = /* @__PURE__ */ new Set(); - const isEphemeral2 = event.isEphemeral(); - const promises = Array.from(this.relays).map((relay) => { - return new Promise((resolve) => { - relay.publish(event, timeoutMs).then(() => { - publishedToRelays.add(relay); - resolve(); - }).catch((err) => { - if (!isEphemeral2) { - this.debug("error publishing to relay", { - relay: relay.url, - err - }); - } - resolve(); - }); - }); - }); - await Promise.all(promises); - if (publishedToRelays.size === 0) { - if (!isEphemeral2) { - throw new Error("No relay was able to receive the event"); - } - } - return publishedToRelays; - } - size() { - return this.relays.size; - } -}; - -// src/relay/sets/calculate.ts -function calculateRelaySetFromEvent(ndk, event) { - const relays = /* @__PURE__ */ new Set(); - ndk.pool?.relays.forEach((relay) => relays.add(relay)); - return new NDKRelaySet(relays, ndk); -} -function getWriteRelaysFor(ndk, author) { - if (!ndk.outboxTracker) - return void 0; - return ndk.outboxTracker.data.get(author)?.writeRelays; -} -function calculateRelaySetsFromFilter(ndk, filters) { - const result = /* @__PURE__ */ new Map(); - const authors = /* @__PURE__ */ new Set(); - filters.forEach((filter) => { - if (filter.authors) { - filter.authors.forEach((author) => authors.add(author)); - } - }); - if (authors.size > 0) { - const authorToRelaysMap = /* @__PURE__ */ new Map(); - for (const author of authors) { - const userWriteRelays = getWriteRelaysFor(ndk, author); - if (userWriteRelays && userWriteRelays.size > 0) { - ndk.debug(`Adding ${userWriteRelays.size} relays for ${author}`); - userWriteRelays.forEach((relay) => { - const authorsInRelay = authorToRelaysMap.get(relay) || []; - authorsInRelay.push(author); - authorToRelaysMap.set(relay, authorsInRelay); - }); - } else { - ndk.explicitRelayUrls?.forEach((relay) => { - const authorsInRelay = authorToRelaysMap.get(relay) || []; - authorsInRelay.push(author); - authorToRelaysMap.set(relay, authorsInRelay); - }); - } - } - for (const relayUrl of authorToRelaysMap.keys()) { - result.set(relayUrl, []); - } - for (const filter of filters) { - if (filter.authors) { - for (const [relayUrl, authors2] of authorToRelaysMap.entries()) { - result.set(relayUrl, [...result.get(relayUrl), { ...filter, authors: authors2 }]); - } - } else { - for (const relayUrl of authorToRelaysMap.keys()) { - result.set(relayUrl, [...result.get(relayUrl), filter]); - } - } - } - } else { - ndk.explicitRelayUrls?.forEach((relay) => { - result.set(relay, filters); - }); - } - return result; -} -function calculateRelaySetsFromFilters(ndk, filters) { - return calculateRelaySetsFromFilter(ndk, filters); -} - -// src/zap/index.ts -var import_base = require("@scure/base"); -var import_tseep3 = require("tseep"); -var import_nostr_tools4 = require("nostr-tools"); -var DEFAULT_RELAYS = [ - "wss://nos.lol", - "wss://relay.nostr.band", - "wss://relay.f7z.io", - "wss://relay.damus.io", - "wss://nostr.mom", - "wss://no.str.cr" -]; -var Zap = class extends import_tseep3.EventEmitter { - ndk; - zappedEvent; - zappedUser; - constructor(args) { - super(); - this.ndk = args.ndk; - this.zappedEvent = args.zappedEvent; - this.zappedUser = args.zappedUser || this.ndk.getUser({ hexpubkey: this.zappedEvent?.pubkey }); - } - async getZapEndpoint() { - let lud06; - let lud16; - let zapEndpoint; - let zapEndpointCallback; - if (this.zappedUser) { - if (!this.zappedUser.profile) { - await this.zappedUser.fetchProfile(); - } - lud06 = (this.zappedUser.profile || {}).lud06; - lud16 = (this.zappedUser.profile || {}).lud16; - } - if (lud16 && !lud16.startsWith("LNURL")) { - const [name, domain] = lud16.split("@"); - zapEndpoint = `https://${domain}/.well-known/lnurlp/${name}`; - } else if (lud06) { - const { words } = import_base.bech32.decode(lud06, 1e3); - const data = import_base.bech32.fromWords(words); - const utf8Decoder = new TextDecoder("utf-8"); - zapEndpoint = utf8Decoder.decode(data); - } - if (!zapEndpoint) { - throw new Error("No zap endpoint found"); - } - const response = await fetch(zapEndpoint); - const body = await response.json(); - if (body?.allowsNostr && (body?.nostrPubkey || body?.nostrPubKey)) { - zapEndpointCallback = body.callback; - } - return zapEndpointCallback; - } - /** - * Generates a kind:9734 zap request and returns the payment request - * @param amount amount to zap in millisatoshis - * @param comment optional comment to include in the zap request - * @param extraTags optional extra tags to include in the zap request - * @param relays optional relays to ask zapper to publish the zap to - * @returns the payment request - */ - async createZapRequest(amount, comment, extraTags, relays, signer) { - const zapEndpoint = await this.getZapEndpoint(); - if (!zapEndpoint) { - throw new Error("No zap endpoint found"); - } - if (!this.zappedEvent && !this.zappedUser) - throw new Error("No zapped event or user found"); - const zapRequest = import_nostr_tools4.nip57.makeZapRequest({ - profile: this.zappedUser.hexpubkey, - // set the event to null since nostr-tools doesn't support nip-33 zaps - event: null, - amount, - comment: comment || "", - relays: relays ?? this.relays() - }); - if (this.zappedEvent) { - const tags = this.zappedEvent.referenceTags(); - zapRequest.tags.push(...tags); - } - zapRequest.tags.push(["lnurl", zapEndpoint]); - const zapRequestEvent = new NDKEvent(this.ndk, zapRequest); - if (extraTags) { - zapRequestEvent.tags = zapRequestEvent.tags.concat(extraTags); - } - await zapRequestEvent.sign(signer); - const zapRequestNostrEvent = await zapRequestEvent.toNostrEvent(); - const response = await fetch( - `${zapEndpoint}?` + new URLSearchParams({ - amount: amount.toString(), - nostr: JSON.stringify(zapRequestNostrEvent) - }) - ); - const body = await response.json(); - return body.pr; - } - /** - * @returns the relays to use for the zap request - */ - relays() { - let r = []; - if (this.ndk?.pool?.relays) { - r = this.ndk.pool.urls(); - } - if (!r.length) { - r = DEFAULT_RELAYS; - } - return r; - } -}; - -// src/events/content-tagger.ts -var import_nostr_tools5 = require("nostr-tools"); -function mergeTags(tags1, tags2) { - const tagMap = /* @__PURE__ */ new Map(); - const generateKey = (tag) => tag.join(","); - const isContained = (smaller, larger) => { - return smaller.every((value, index) => value === larger[index]); - }; - const processTag = (tag) => { - for (let [key, existingTag] of tagMap) { - if (isContained(existingTag, tag) || isContained(tag, existingTag)) { - if (tag.length >= existingTag.length) { - tagMap.set(key, tag); - } - return; - } - } - tagMap.set(generateKey(tag), tag); - }; - tags1.concat(tags2).forEach(processTag); - return Array.from(tagMap.values()); -} -async function generateContentTags(content, tags = []) { - const tagRegex = /(@|nostr:)(npub|nprofile|note|nevent|naddr)[a-zA-Z0-9]+/g; - const hashtagRegex = /#(\w+)/g; - let promises = []; - const addTagIfNew = (t) => { - if (!tags.find((t2) => t2[0] === t[0] && t2[1] === t[1])) { - tags.push(t); - } - }; - content = content.replace(tagRegex, (tag) => { - try { - const entity = tag.split(/(@|nostr:)/)[2]; - const { type, data } = import_nostr_tools5.nip19.decode(entity); - let t; - switch (type) { - case "npub": - t = ["p", data]; - break; - case "nprofile": - t = ["p", data.pubkey]; - break; - case "note": - promises.push( - new Promise(async (resolve) => { - addTagIfNew([ - "e", - data, - await maybeGetEventRelayUrl(entity), - "mention" - ]); - resolve(); - }) - ); - break; - case "nevent": - promises.push( - new Promise(async (resolve) => { - let { id, relays, author } = data; - if (!relays || relays.length === 0) { - relays = [await maybeGetEventRelayUrl(entity)]; - } - addTagIfNew(["e", id, relays[0], "mention"]); - if (author) - addTagIfNew(["p", author]); - resolve(); - }) - ); - break; - case "naddr": - promises.push( - new Promise(async (resolve) => { - const id = [data.kind, data.pubkey, data.identifier].join(":"); - let relays = data.relays ?? []; - if (relays.length === 0) { - relays = [await maybeGetEventRelayUrl(entity)]; - } - addTagIfNew(["a", id, relays[0], "mention"]); - addTagIfNew(["p", data.pubkey]); - resolve(); - }) - ); - break; - default: - return tag; - } - if (t) - addTagIfNew(t); - return `nostr:${entity}`; - } catch (error) { - return tag; - } - }); - await Promise.all(promises); - content = content.replace(hashtagRegex, (tag, word) => { - const t = ["t", word]; - if (!tags.find((t2) => t2[0] === t[0] && t2[1] === t[1])) { - tags.push(t); - } - return tag; - }); - return { content, tags }; -} -async function maybeGetEventRelayUrl(nip19Id) { - return ""; -} - -// src/events/kind.ts -function isReplaceable() { - if (this.kind === void 0) - throw new Error("Kind not set"); - return this.kind >= 1e4 && this.kind < 2e4; -} -function isEphemeral() { - if (this.kind === void 0) - throw new Error("Kind not set"); - return this.kind >= 2e4 && this.kind < 3e4; -} -function isParamReplaceable() { - if (this.kind === void 0) - throw new Error("Kind not set"); - return this.kind >= 3e4 && this.kind < 4e4; -} - -// src/events/kinds/index.ts -var NDKKind = /* @__PURE__ */ ((NDKKind2) => { - NDKKind2[NDKKind2["Metadata"] = 0] = "Metadata"; - NDKKind2[NDKKind2["Text"] = 1] = "Text"; - NDKKind2[NDKKind2["RecommendRelay"] = 2] = "RecommendRelay"; - NDKKind2[NDKKind2["Contacts"] = 3] = "Contacts"; - NDKKind2[NDKKind2["EncryptedDirectMessage"] = 4] = "EncryptedDirectMessage"; - NDKKind2[NDKKind2["EventDeletion"] = 5] = "EventDeletion"; - NDKKind2[NDKKind2["Repost"] = 6] = "Repost"; - NDKKind2[NDKKind2["Reaction"] = 7] = "Reaction"; - NDKKind2[NDKKind2["BadgeAward"] = 8] = "BadgeAward"; - NDKKind2[NDKKind2["GroupNote"] = 9] = "GroupNote"; - NDKKind2[NDKKind2["GroupChat"] = 11] = "GroupChat"; - NDKKind2[NDKKind2["GenericRepost"] = 16] = "GenericRepost"; - NDKKind2[NDKKind2["ChannelCreation"] = 40] = "ChannelCreation"; - NDKKind2[NDKKind2["ChannelMetadata"] = 41] = "ChannelMetadata"; - NDKKind2[NDKKind2["ChannelMessage"] = 42] = "ChannelMessage"; - NDKKind2[NDKKind2["ChannelHideMessage"] = 43] = "ChannelHideMessage"; - NDKKind2[NDKKind2["ChannelMuteUser"] = 44] = "ChannelMuteUser"; - NDKKind2[NDKKind2["Report"] = 1984] = "Report"; - NDKKind2[NDKKind2["Label"] = 1985] = "Label"; - NDKKind2[NDKKind2["DVMReqTextExtraction"] = 5e3] = "DVMReqTextExtraction"; - NDKKind2[NDKKind2["DVMReqTextSummarization"] = 5001] = "DVMReqTextSummarization"; - NDKKind2[NDKKind2["DVMReqTextTranslation"] = 5002] = "DVMReqTextTranslation"; - NDKKind2[NDKKind2["DVMReqTextGeneration"] = 5050] = "DVMReqTextGeneration"; - NDKKind2[NDKKind2["DVMReqImageGeneration"] = 5100] = "DVMReqImageGeneration"; - NDKKind2[NDKKind2["DVMReqDiscoveryNostrContent"] = 5300] = "DVMReqDiscoveryNostrContent"; - NDKKind2[NDKKind2["DVMReqDiscoveryNostrPeople"] = 5301] = "DVMReqDiscoveryNostrPeople"; - NDKKind2[NDKKind2["DVMReqTimestamping"] = 5900] = "DVMReqTimestamping"; - NDKKind2[NDKKind2["DVMJobFeedback"] = 7e3] = "DVMJobFeedback"; - NDKKind2[NDKKind2["MuteList"] = 1e4] = "MuteList"; - NDKKind2[NDKKind2["PinList"] = 10001] = "PinList"; - NDKKind2[NDKKind2["RelayList"] = 10002] = "RelayList"; - NDKKind2[NDKKind2["BookmarkList"] = 10003] = "BookmarkList"; - NDKKind2[NDKKind2["CommunityList"] = 10004] = "CommunityList"; - NDKKind2[NDKKind2["PublicChatList"] = 10005] = "PublicChatList"; - NDKKind2[NDKKind2["BlockRelayList"] = 10006] = "BlockRelayList"; - NDKKind2[NDKKind2["SearchRelayList"] = 10007] = "SearchRelayList"; - NDKKind2[NDKKind2["InterestList"] = 10015] = "InterestList"; - NDKKind2[NDKKind2["EmojiList"] = 10030] = "EmojiList"; - NDKKind2[NDKKind2["FollowSet"] = 3e4] = "FollowSet"; - NDKKind2[NDKKind2["CategorizedPeopleList"] = 3e4 /* FollowSet */] = "CategorizedPeopleList"; - NDKKind2[NDKKind2["CategorizedBookmarkList"] = 30001] = "CategorizedBookmarkList"; - NDKKind2[NDKKind2["RelaySet"] = 30002] = "RelaySet"; - NDKKind2[NDKKind2["CategorizedRelayList"] = 30002 /* RelaySet */] = "CategorizedRelayList"; - NDKKind2[NDKKind2["BookmarkSet"] = 30003] = "BookmarkSet"; - NDKKind2[NDKKind2["CurationSet"] = 30004] = "CurationSet"; - NDKKind2[NDKKind2["InterestSet"] = 30015] = "InterestSet"; - NDKKind2[NDKKind2["InterestsList"] = 30015 /* InterestSet */] = "InterestsList"; - NDKKind2[NDKKind2["EmojiSet"] = 30030] = "EmojiSet"; - NDKKind2[NDKKind2["HighlightSet"] = 39802] = "HighlightSet"; - NDKKind2[NDKKind2["CategorizedHighlightList"] = 39802 /* HighlightSet */] = "CategorizedHighlightList"; - NDKKind2[NDKKind2["ZapRequest"] = 9734] = "ZapRequest"; - NDKKind2[NDKKind2["Zap"] = 9735] = "Zap"; - NDKKind2[NDKKind2["Highlight"] = 9802] = "Highlight"; - NDKKind2[NDKKind2["ClientAuth"] = 22242] = "ClientAuth"; - NDKKind2[NDKKind2["NostrConnect"] = 24133] = "NostrConnect"; - NDKKind2[NDKKind2["ProfileBadge"] = 30008] = "ProfileBadge"; - NDKKind2[NDKKind2["BadgeDefinition"] = 30009] = "BadgeDefinition"; - NDKKind2[NDKKind2["MarketStall"] = 30017] = "MarketStall"; - NDKKind2[NDKKind2["MarketProduct"] = 30018] = "MarketProduct"; - NDKKind2[NDKKind2["Article"] = 30023] = "Article"; - NDKKind2[NDKKind2["AppSpecificData"] = 30078] = "AppSpecificData"; - NDKKind2[NDKKind2["Classified"] = 30402] = "Classified"; - NDKKind2[NDKKind2["AppRecommendation"] = 31989] = "AppRecommendation"; - NDKKind2[NDKKind2["AppHandler"] = 31990] = "AppHandler"; - return NDKKind2; -})(NDKKind || {}); -var NDKListKinds = [ - 1e4 /* MuteList */, - 10001 /* PinList */, - 10002 /* RelayList */, - 10003 /* BookmarkList */, - 10004 /* CommunityList */, - 10005 /* PublicChatList */, - 10006 /* BlockRelayList */, - 10007 /* SearchRelayList */, - 10015 /* InterestList */, - 10030 /* EmojiList */, - 3e4 /* FollowSet */, - 30003 /* BookmarkSet */, - 30001 /* CategorizedBookmarkList */, - // Backwards compatibility - 30002 /* RelaySet */, - 30004 /* CurationSet */, - 30015 /* InterestSet */, - 30030 /* EmojiSet */, - 39802 /* HighlightSet */ -]; - -// src/events/nip04.ts -async function encrypt(recipient, signer) { - if (!this.ndk) - throw new Error("No NDK instance found!"); - if (!signer) { - await this.ndk.assertSigner(); - signer = this.ndk.signer; - } - if (!recipient) { - const pTags = this.getMatchingTags("p"); - if (pTags.length !== 1) { - throw new Error( - "No recipient could be determined and no explicit recipient was provided" - ); - } - recipient = this.ndk.getUser({ hexpubkey: pTags[0][1] }); - } - this.content = await signer?.encrypt(recipient, this.content); -} -async function decrypt(sender, signer) { - if (!this.ndk) - throw new Error("No NDK instance found!"); - if (!signer) { - await this.ndk.assertSigner(); - signer = this.ndk.signer; - } - if (!sender) { - sender = this.author; - } - this.content = await signer?.decrypt(sender, this.content); -} - -// src/events/nip19.ts -var import_nostr_tools6 = require("nostr-tools"); -function encode() { - if (this.isParamReplaceable()) { - return import_nostr_tools6.nip19.naddrEncode({ - kind: this.kind, - pubkey: this.pubkey, - identifier: this.replaceableDTag(), - relays: this.relay ? [this.relay.url] : [] - }); - } else if (this.relay) { - return import_nostr_tools6.nip19.neventEncode({ - id: this.tagId(), - relays: [this.relay.url], - author: this.pubkey - }); - } else { - return import_nostr_tools6.nip19.noteEncode(this.tagId()); - } -} - -// src/events/repost.ts -async function repost(publish = true, signer) { - if (!signer && publish) { - if (!this.ndk) - throw new Error("No NDK instance found"); - this.ndk.assertSigner(); - signer = this.ndk.signer; - } - const e = new NDKEvent(this.ndk, { - kind: getKind(this), - content: "" - }); - e.tag(this); - if (e.kind === 16 /* GenericRepost */) { - e.tags.push(["k", `${this.kind}`]); - } - if (signer) - await e.sign(signer); - if (publish) - await e.publish(); - return e; -} -function getKind(event) { - if (event.kind === 1) { - return 6 /* Repost */; - } - return 16 /* GenericRepost */; -} - -// src/events/index.ts -var NDKEvent = class extends import_tseep4.EventEmitter { - ndk; - created_at; - content = ""; - tags = []; - kind; - id = ""; - sig; - pubkey = ""; - _author = void 0; - /** - * The relay that this event was first received from. - */ - relay; - constructor(ndk, event) { - super(); - this.ndk = ndk; - this.created_at = event?.created_at; - this.content = event?.content || ""; - this.tags = event?.tags || []; - this.id = event?.id || ""; - this.sig = event?.sig; - this.pubkey = event?.pubkey || ""; - this.kind = event?.kind; - } - /** - * Returns the event as is. - */ - rawEvent() { - return { - created_at: this.created_at, - content: this.content, - tags: this.tags, - kind: this.kind, - pubkey: this.pubkey, - id: this.id, - sig: this.sig - }; - } - set author(user) { - this.pubkey = user.hexpubkey; - this._author = void 0; - } - /** - * Returns an NDKUser for the author of the event. - */ - get author() { - if (this._author) - return this._author; - if (!this.ndk) - throw new Error("No NDK instance found"); - const user = this.ndk.getUser({ hexpubkey: this.pubkey }); - this._author = user; - return user; - } - tag(userOrEvent, marker) { - const skipAuthorTag = userOrEvent?.pubkey === this.pubkey; - const tags = userOrEvent.referenceTags(marker, skipAuthorTag); - this.tags = mergeTags(this.tags, tags); - if (userOrEvent instanceof NDKEvent) { - for (const pTag of userOrEvent.getMatchingTags("p")) { - if (pTag[1] === this.pubkey) - continue; - if (this.tags.find((t) => t[0] === "p" && t[1] === pTag[1])) - continue; - this.tags.push(["p", pTag[1]]); - } - } - } - /** - * Return a NostrEvent object, trying to fill in missing fields - * when possible, adding tags when necessary. - * @param pubkey {string} The pubkey of the user who the event belongs to. - * @returns {Promise} A promise that resolves to a NostrEvent. - */ - async toNostrEvent(pubkey) { - if (!pubkey && this.pubkey === "") { - const user = await this.ndk?.signer?.user(); - this.pubkey = user?.hexpubkey || ""; - } - if (!this.created_at) - this.created_at = Math.floor(Date.now() / 1e3); - const nostrEvent = this.rawEvent(); - const { content, tags } = await this.generateTags(); - nostrEvent.content = content || ""; - nostrEvent.tags = tags; - try { - this.id = (0, import_nostr_tools7.getEventHash)(nostrEvent); - } catch (e) { - } - if (this.id) - nostrEvent.id = this.id; - if (this.sig) - nostrEvent.sig = this.sig; - return nostrEvent; - } - isReplaceable = isReplaceable.bind(this); - isEphemeral = isEphemeral.bind(this); - isParamReplaceable = isParamReplaceable.bind(this); - /** - * Encodes a bech32 id. - * - * @returns {string} - Encoded naddr, note or nevent. - */ - encode = encode.bind(this); - encrypt = encrypt.bind(this); - decrypt = decrypt.bind(this); - /** - * Get all tags with the given name - * @param tagName {string} The name of the tag to search for - * @returns {NDKTag[]} An array of the matching tags - */ - getMatchingTags(tagName) { - return this.tags.filter((tag) => tag[0] === tagName); - } - /** - * Get the first tag with the given name - * @param tagName Tag name to search for - * @returns The value of the first tag with the given name, or undefined if no such tag exists - */ - tagValue(tagName) { - const tags = this.getMatchingTags(tagName); - if (tags.length === 0) - return void 0; - return tags[0][1]; - } - /** - * Remove all tags with the given name (e.g. "d", "a", "p") - * @param tagName Tag name to search for and remove - * @returns {void} - */ - removeTag(tagName) { - this.tags = this.tags.filter((tag) => tag[0] !== tagName); - } - /** - * Sign the event if a signer is present. - * - * It will generate tags. - * Repleacable events will have their created_at field set to the current time. - * @param signer {NDKSigner} The NDKSigner to use to sign the event - * @returns {Promise} A Promise that resolves to the signature of the signed event. - */ - async sign(signer) { - if (!signer) { - this.ndk?.assertSigner(); - signer = this.ndk.signer; - } else { - this.author = await signer.user(); - } - await this.generateTags(); - if (this.isReplaceable()) { - this.created_at = Math.floor(Date.now() / 1e3); - } - const nostrEvent = await this.toNostrEvent(); - this.sig = await signer.sign(nostrEvent); - return this.sig; - } - /** - * Attempt to sign and then publish an NDKEvent to a given relaySet. - * If no relaySet is provided, the relaySet will be calculated by NDK. - * @param relaySet {NDKRelaySet} The relaySet to publish the even to. - * @returns A promise that resolves to the relays the event was published to. - */ - async publish(relaySet, timeoutMs) { - if (!this.sig) - await this.sign(); - if (!this.ndk) - throw new Error("NDKEvent must be associated with an NDK instance to publish"); - if (!relaySet) { - relaySet = this.ndk.devWriteRelaySet || calculateRelaySetFromEvent(this.ndk, this); - } - return relaySet.publish(this, timeoutMs); - } - /** - * Generates tags for users, notes, and other events tagged in content. - * Will also generate random "d" tag for parameterized replaceable events where needed. - * @returns {ContentTag} The tags and content of the event. - */ - async generateTags() { - let tags = []; - const g = await generateContentTags(this.content, this.tags); - const content = g.content; - tags = g.tags; - if (this.kind && this.isParamReplaceable()) { - const dTag = this.getMatchingTags("d")[0]; - if (!dTag) { - const str = [...Array(16)].map(() => Math.random().toString(36)[2]).join(""); - tags.push(["d", str]); - } - } - if (this.ndk?.client && !this.tagValue("client")) { - tags.push(["client", this.ndk.client]); - } - return { content: content || "", tags }; - } - muted() { - const authorMutedEntry = this.ndk?.mutedIds.get(this.pubkey); - if (authorMutedEntry && authorMutedEntry === "p") - return "author"; - const eventTagReference = this.tagReference(); - const eventMutedEntry = this.ndk?.mutedIds.get(eventTagReference[1]); - if (eventMutedEntry && eventMutedEntry === eventTagReference[0]) - return "event"; - return null; - } - /** - * Returns the "d" tag of a parameterized replaceable event or throws an error if the event isn't - * a parameterized replaceable event. - * @returns {string} the "d" tag of the event. - */ - replaceableDTag() { - if (this.kind && this.kind >= 3e4 && this.kind <= 4e4) { - const dTag = this.getMatchingTags("d")[0]; - const dTagId = dTag ? dTag[1] : ""; - return dTagId; - } - throw new Error("Event is not a parameterized replaceable event"); - } - /** - * Provides a deduplication key for the event. - * - * For kinds 0, 3, 10k-20k this will be the event : - * For kinds 30k-40k this will be the event :: - * For all other kinds this will be the event id - */ - deduplicationKey() { - if (this.kind === 0 || this.kind === 3 || this.kind && this.kind >= 1e4 && this.kind < 2e4) { - return `${this.kind}:${this.pubkey}`; - } else { - return this.tagId(); - } - } - /** - * Returns the id of the event or, if it's a parameterized event, the generated id of the event using "d" tag, pubkey, and kind. - * @returns {string} The id - */ - tagId() { - if (this.isParamReplaceable()) { - return this.tagAddress(); - } - return this.id; - } - /** - * Returns the "reference" value ("::") for this replaceable event. - * @returns {string} The id - */ - tagAddress() { - if (!this.isParamReplaceable()) { - throw new Error("This must only be called on replaceable events"); - } - const dTagId = this.replaceableDTag(); - return `${this.kind}:${this.pubkey}:${dTagId}`; - } - /** - * Get the tag that can be used to reference this event from another event. - * - * Consider using referenceTags() instead (unless you have a good reason to use this) - * - * @example - * event = new NDKEvent(ndk, { kind: 30000, pubkey: 'pubkey', tags: [ ["d", "d-code"] ] }); - * event.tagReference(); // ["a", "30000:pubkey:d-code"] - * - * event = new NDKEvent(ndk, { kind: 1, pubkey: 'pubkey', id: "eventid" }); - * event.tagReference(); // ["e", "eventid"] - * @returns {NDKTag} The NDKTag object referencing this event - */ - tagReference(marker) { - let tag; - if (this.isParamReplaceable()) { - tag = ["a", this.tagAddress()]; - } else { - tag = ["e", this.tagId()]; - } - if (this.relay) { - tag.push(this.relay.url); - } else { - tag.push(""); - } - if (marker) { - tag.push(marker); - } - return tag; - } - /** - * Get the tags that can be used to reference this event from another event - * @param marker The marker to use in the tag - * @example - * event = new NDKEvent(ndk, { kind: 30000, pubkey: 'pubkey', tags: [ ["d", "d-code"] ] }); - * event.referenceTags(); // [["a", "30000:pubkey:d-code"], ["e", "parent-id"]] - * - * event = new NDKEvent(ndk, { kind: 1, pubkey: 'pubkey', id: "eventid" }); - * event.referenceTags(); // [["e", "parent-id"]] - * @returns {NDKTag} The NDKTag object referencing this event - */ - referenceTags(marker, skipAuthorTag) { - let tags = []; - if (this.isParamReplaceable()) { - tags = [ - ["a", this.tagAddress()], - ["e", this.id] - ]; - } else { - tags = [["e", this.id]]; - } - if (this.relay?.url) { - tags = tags.map((tag) => { - tag.push(this.relay?.url); - return tag; - }); - } else if (marker) { - tags = tags.map((tag) => { - tag.push(""); - return tag; - }); - } - if (marker) { - tags.forEach((tag) => tag.push(marker)); - } - if (!skipAuthorTag) - tags.push(...this.author.referenceTags()); - return tags; - } - /** - * Provides the filter that will return matching events for this event. - * - * @example - * event = new NDKEvent(ndk, { kind: 30000, pubkey: 'pubkey', tags: [ ["d", "d-code"] ] }); - * event.filter(); // { "#a": ["30000:pubkey:d-code"] } - * @example - * event = new NDKEvent(ndk, { kind: 1, pubkey: 'pubkey', id: "eventid" }); - * event.filter(); // { "#e": ["eventid"] } - * - * @returns The filter that will return matching events for this event - */ - filter() { - if (this.isParamReplaceable()) { - return { "#a": [this.tagId()] }; - } else { - return { "#e": [this.tagId()] }; - } - } - /** - * Create a zap request for an existing event - * - * @param amount The amount to zap in millisatoshis - * @param comment A comment to add to the zap request - * @param extraTags Extra tags to add to the zap request - * @param recipient The zap recipient (optional for events) - * @param signer The signer to use (will default to the NDK instance's signer) - */ - async zap(amount, comment, extraTags, recipient, signer) { - if (!this.ndk) - throw new Error("No NDK instance found"); - if (!signer) { - this.ndk.assertSigner(); - } - const zap = new Zap({ - ndk: this.ndk, - zappedEvent: this, - zappedUser: recipient - }); - const relays = Array.from(this.ndk.pool.relays.keys()); - const paymentRequest = await zap.createZapRequest( - amount, - comment, - extraTags, - relays, - signer - ); - return paymentRequest; - } - /** - * Generates a deletion event of the current event - * - * @param reason The reason for the deletion - * @returns The deletion event - */ - async delete(reason) { - if (!this.ndk) - throw new Error("No NDK instance found"); - this.ndk.assertSigner(); - const e = new NDKEvent(this.ndk, { - kind: 5 /* EventDeletion */, - content: reason || "" - }); - e.tag(this); - await e.publish(); - return e; - } - /** - * NIP-18 reposting event. - * - * @param publish Whether to publish the reposted event automatically - * @param signer The signer to use for signing the reposted event - * @returns The reposted event - * - * @function - */ - repost = repost.bind(this); - /** - * React to an existing event - * - * @param content The content of the reaction - */ - async react(content) { - if (!this.ndk) - throw new Error("No NDK instance found"); - this.ndk.assertSigner(); - const e = new NDKEvent(this.ndk, { - kind: 7 /* Reaction */, - content - }); - e.tag(this); - await e.publish(); - return e; - } -}; - -// src/events/kinds/NDKRelayList.ts -var READ_MARKER = "read"; -var WRITE_MARKER = "write"; -var NDKRelayList = class extends NDKEvent { - constructor(ndk, rawEvent) { - super(ndk, rawEvent); - this.kind ??= 10002 /* RelayList */; - } - static from(ndkEvent) { - return new NDKRelayList(ndkEvent.ndk, ndkEvent.rawEvent()); - } - get readRelayUrls() { - return this.getMatchingTags("r").filter((tag) => !tag[2] || tag[2] && tag[2] === READ_MARKER).map((tag) => tag[1]); - } - set readRelayUrls(relays) { - for (const relay of relays) { - this.tags.push(["r", relay, READ_MARKER]); - } - } - get writeRelayUrls() { - return this.getMatchingTags("r").filter((tag) => !tag[2] || tag[2] && tag[2] === WRITE_MARKER).map((tag) => tag[1]); - } - set writeRelayUrls(relays) { - for (const relay of relays) { - this.tags.push(["r", relay, WRITE_MARKER]); - } - } - get bothRelayUrls() { - return this.getMatchingTags("r").filter((tag) => !tag[2]).map((tag) => tag[1]); - } - set bothRelayUrls(relays) { - for (const relay of relays) { - this.tags.push(["r", relay]); - } - } - get relays() { - return this.getMatchingTags("r").map((tag) => tag[1]); - } -}; - -// src/subscription/index.ts -var import_tseep5 = require("tseep"); -var NDKSubscriptionCacheUsage = /* @__PURE__ */ ((NDKSubscriptionCacheUsage2) => { - NDKSubscriptionCacheUsage2["ONLY_CACHE"] = "ONLY_CACHE"; - NDKSubscriptionCacheUsage2["CACHE_FIRST"] = "CACHE_FIRST"; - NDKSubscriptionCacheUsage2["PARALLEL"] = "PARALLEL"; - NDKSubscriptionCacheUsage2["ONLY_RELAY"] = "ONLY_RELAY"; - return NDKSubscriptionCacheUsage2; -})(NDKSubscriptionCacheUsage || {}); -var defaultOpts = { - closeOnEose: false, - cacheUsage: "CACHE_FIRST" /* CACHE_FIRST */, - groupable: true, - groupableDelay: 100 -}; -var NDKSubscription = class extends import_tseep5.EventEmitter { - subId; - filters; - opts; - pool; - /** - * Tracks the filters as they are executed on each relay - */ - relayFilters; - relaySet; - ndk; - debug; - eoseDebug; - /** - * Events that have been seen by the subscription, with the time they were first seen. - */ - eventFirstSeen = /* @__PURE__ */ new Map(); - /** - * Relays that have sent an EOSE. - */ - eosesSeen = /* @__PURE__ */ new Set(); - /** - * Events that have been seen by the subscription per relay. - */ - eventsPerRelay = /* @__PURE__ */ new Map(); - /** - * The time the last event was received by the subscription. - * This is used to calculate when EOSE should be emitted. - */ - lastEventReceivedAt; - internalId; - constructor(ndk, filters, opts, relaySet, subId) { - super(); - this.ndk = ndk; - this.pool = opts?.pool || ndk.pool; - this.opts = { ...defaultOpts, ...opts || {} }; - this.filters = filters instanceof Array ? filters : [filters]; - this.subId = subId || opts?.subId; - this.internalId = Math.random().toString(36).substring(7); - this.relaySet = relaySet; - this.debug = ndk.debug.extend(`subscription[${opts?.subId ?? this.internalId}]`); - 5; - this.eoseDebug = this.debug.extend("eose"); - if (!this.opts.closeOnEose) { - this.debug( - `Creating a permanent subscription`, - this.opts, - JSON.stringify(this.filters) - ); - } - if (this.opts.cacheUsage === "ONLY_CACHE" /* ONLY_CACHE */ && !this.opts.closeOnEose) { - throw new Error("Cannot use cache-only options with a persistent subscription"); - } - } - /** - * Provides access to the first filter of the subscription for - * backwards compatibility. - */ - get filter() { - return this.filters[0]; - } - isGroupable() { - return this.opts?.groupable || false; - } - shouldQueryCache() { - return this.opts?.cacheUsage !== "ONLY_RELAY" /* ONLY_RELAY */; - } - shouldQueryRelays() { - return this.opts?.cacheUsage !== "ONLY_CACHE" /* ONLY_CACHE */; - } - shouldWaitForCache() { - return ( - // Must want to close on EOSE; subscriptions - // that want to receive further updates must - // always hit the relay - this.opts.closeOnEose && // Cache adapter must claim to be fast - !!this.ndk.cacheAdapter?.locking && // If explicitly told to run in parallel, then - // we should not wait for the cache - this.opts.cacheUsage !== "PARALLEL" /* PARALLEL */ - ); - } - /** - * Start the subscription. This is the main method that should be called - * after creating a subscription. - */ - async start() { - let cachePromise; - if (this.shouldQueryCache()) { - cachePromise = this.startWithCache(); - if (this.shouldWaitForCache()) { - await cachePromise; - if (queryFullyFilled(this)) { - this.emit("eose", this); - return; - } - } - } - if (this.shouldQueryRelays()) { - this.startWithRelays(); - } else { - this.emit("eose", this); - } - return; - } - stop() { - this.emit("close", this); - } - /** - * @returns Whether the subscription has an authors filter. - */ - hasAuthorsFilter() { - return this.filters.some((f) => f.authors?.length); - } - async startWithCache() { - if (this.ndk.cacheAdapter?.query) { - const promise = this.ndk.cacheAdapter.query(this); - if (this.ndk.cacheAdapter.locking) { - await promise; - } - } - } - /** - * Send REQ to relays - */ - startWithRelays() { - if (!this.relaySet) { - this.relayFilters = calculateRelaySetsFromFilters(this.ndk, this.filters); - } else { - this.relayFilters = /* @__PURE__ */ new Map(); - for (const relay of this.relaySet.relays) { - this.relayFilters.set(relay.url, this.filters); - } - } - for (const [relayUrl, filters] of this.relayFilters) { - const relay = this.pool.getRelay(relayUrl); - relay.subscribe(this, filters); - } - } - // EVENT handling - /** - * Called when an event is received from a relay or the cache - * @param event - * @param relay - * @param fromCache Whether the event was received from the cache - */ - eventReceived(event, relay, fromCache = false) { - if (relay) - event.relay = relay; - if (!relay) - relay = event.relay; - if (!fromCache && relay) { - let events = this.eventsPerRelay.get(relay); - if (!events) { - events = /* @__PURE__ */ new Set(); - this.eventsPerRelay.set(relay, events); - } - events.add(event.id); - const eventAlreadySeen = this.eventFirstSeen.has(event.id); - if (eventAlreadySeen) { - const timeSinceFirstSeen = Date.now() - (this.eventFirstSeen.get(event.id) || 0); - relay.scoreSlowerEvent(timeSinceFirstSeen); - this.emit("event:dup", event, relay, timeSinceFirstSeen, this); - return; - } - if (this.ndk.cacheAdapter) { - this.ndk.cacheAdapter.setEvent(event, this.filters[0], relay); - } - this.eventFirstSeen.set(event.id, Date.now()); - } else { - this.eventFirstSeen.set(event.id, 0); - } - if (!event.ndk) - event.ndk = this.ndk; - this.emit("event", event, relay, this); - this.lastEventReceivedAt = Date.now(); - } - // EOSE handling - eoseTimeout; - eoseReceived(relay) { - this.eosesSeen.add(relay); - this.eoseDebug(`received from ${relay.url}`); - let lastEventSeen = this.lastEventReceivedAt ? Date.now() - this.lastEventReceivedAt : void 0; - const hasSeenAllEoses = this.eosesSeen.size === this.relayFilters?.size; - const queryFilled = queryFullyFilled(this); - if (queryFilled) { - this.emit("eose"); - this.eoseDebug(`Query fully filled`); - if (this.opts?.closeOnEose) { - this.stop(); - } else { - } - } else if (hasSeenAllEoses) { - this.emit("eose"); - this.eoseDebug(`All EOSEs seen`); - if (this.opts?.closeOnEose) { - this.stop(); - } else { - } - } else { - let timeToWaitForNextEose = 1e3; - const percentageOfRelaysThatHaveSentEose = this.eosesSeen.size / this.relayFilters.size; - if (this.eosesSeen.size >= 2 && percentageOfRelaysThatHaveSentEose >= 0.5) { - timeToWaitForNextEose = timeToWaitForNextEose * (1 - percentageOfRelaysThatHaveSentEose); - if (this.eoseTimeout) { - clearTimeout(this.eoseTimeout); - } - const sendEoseTimeout = () => { - lastEventSeen = this.lastEventReceivedAt ? Date.now() - this.lastEventReceivedAt : void 0; - if (lastEventSeen !== void 0 && lastEventSeen < 20) { - this.eoseTimeout = setTimeout(sendEoseTimeout, timeToWaitForNextEose); - } else { - this.emit("eose"); - if (this.opts?.closeOnEose) - this.stop(); - } - }; - this.eoseTimeout = setTimeout(sendEoseTimeout, timeToWaitForNextEose); - } - } - } -}; - -// src/user/follows.ts -async function follows(opts, outbox) { - if (!this.ndk) - throw new Error("NDK not set"); - const contactListEvent = Array.from( - await this.ndk.fetchEvents( - { - kinds: [3], - authors: [this.pubkey] - }, - opts || { groupable: false } - ) - )[0]; - if (contactListEvent) { - const pubkeys = /* @__PURE__ */ new Set(); - contactListEvent.tags.forEach((tag) => { - if (tag[0] === "p") { - try { - pubkeys.add(tag[1]); - if (outbox) { - this.ndk?.outboxTracker?.trackUsers([tag[1]]); - } - } catch (e) { - } - } - }); - return [...pubkeys].reduce((acc, pubkey) => { - const user = new NDKUser({ pubkey }); - user.ndk = this.ndk; - acc.add(user); - return acc; - }, /* @__PURE__ */ new Set()); - } - return /* @__PURE__ */ new Set(); -} - -// src/user/profile.ts -function profileFromEvent(event) { - const profile = {}; - const payload = JSON.parse(event.content); - Object.keys(payload).forEach((key) => { - switch (key) { - case "name": - profile.name = payload.name; - break; - case "display_name": - profile.displayName = payload.display_name; - break; - case "image": - case "picture": - profile.image = payload.image || payload.picture; - break; - case "banner": - profile.banner = payload.banner; - break; - case "bio": - profile.bio = payload.bio; - break; - case "nip05": - profile.nip05 = payload.nip05; - break; - case "lud06": - profile.lud06 = payload.lud06; - break; - case "lud16": - profile.lud16 = payload.lud16; - break; - case "about": - profile.about = payload.about; - break; - case "zapService": - profile.zapService = payload.zapService; - break; - case "website": - profile.website = payload.website; - break; - default: - profile[key] = payload[key]; - break; - } - }); - return profile; -} -function serializeProfile(profile) { - const payload = {}; - for (const [key, val] of Object.entries(profile)) { - switch (key) { - case "username": - case "name": - payload.name = val; - break; - case "displayName": - payload.display_name = val; - break; - case "image": - case "picture": - payload.picture = val; - break; - case "bio": - case "about": - payload.about = val; - break; - default: - payload[key] = val; - break; - } - } - return JSON.stringify(payload); -} - -// src/events/kinds/lists/index.ts -var NDKList = class extends NDKEvent { - _encryptedTags; - /** - * Stores the number of bytes the content was before decryption - * to expire the cache when the content changes. - */ - encryptedTagsLength; - constructor(ndk, rawEvent) { - super(ndk, rawEvent); - this.kind ??= 30001 /* CategorizedBookmarkList */; - } - /** - * Wrap a NDKEvent into a NDKList - */ - static from(ndkEvent) { - return new NDKList(ndkEvent.ndk, ndkEvent.rawEvent()); - } - /** - * Returns the title of the list. Falls back on fetching the name tag value. - */ - get title() { - const titleTag = this.tagValue("title") || this.tagValue("name"); - if (this.kind === 3 /* Contacts */ && !titleTag) { - return "Contacts"; - } else if (this.kind === 1e4 /* MuteList */ && !titleTag) { - return "Mute"; - } else if (this.kind === 10001 /* PinList */ && !titleTag) { - return "Pinned Notes"; - } else if (this.kind === 10002 /* RelayList */ && !titleTag) { - return "Relay Metadata"; - } else if (this.kind === 10003 /* BookmarkList */ && !titleTag) { - return "Bookmarks"; - } else if (this.kind === 10004 /* CommunityList */ && !titleTag) { - return "Communities"; - } else if (this.kind === 10005 /* PublicChatList */ && !titleTag) { - return "Public Chats"; - } else if (this.kind === 10006 /* BlockRelayList */ && !titleTag) { - return "Blocked Relays"; - } else if (this.kind === 10007 /* SearchRelayList */ && !titleTag) { - return "Search Relays"; - } else if (this.kind === 10015 /* InterestList */ && !titleTag) { - return "Interests"; - } else if (this.kind === 10030 /* EmojiList */ && !titleTag) { - return "Emojis"; - } else { - return titleTag ?? this.tagValue("d"); - } - } - /** - * Sets the title of the list. - */ - set title(title) { - this.removeTag("title"); - this.removeTag("name"); - if (title) { - this.tags.push(["title", title]); - } else { - throw new Error("Title cannot be empty"); - } - } - /** - * Returns the name of the list. - * @deprecated Please use "title" instead. - */ - get name() { - const nameTag = this.tagValue("name"); - if (this.kind === 3 /* Contacts */ && !nameTag) { - return "Contacts"; - } else if (this.kind === 1e4 /* MuteList */ && !nameTag) { - return "Mute"; - } else if (this.kind === 10001 /* PinList */ && !nameTag) { - return "Pinned Notes"; - } else if (this.kind === 10002 /* RelayList */ && !nameTag) { - return "Relay Metadata"; - } else if (this.kind === 10003 /* BookmarkList */ && !nameTag) { - return "Bookmarks"; - } else if (this.kind === 10004 /* CommunityList */ && !nameTag) { - return "Communities"; - } else if (this.kind === 10005 /* PublicChatList */ && !nameTag) { - return "Public Chats"; - } else if (this.kind === 10006 /* BlockRelayList */ && !nameTag) { - return "Blocked Relays"; - } else if (this.kind === 10007 /* SearchRelayList */ && !nameTag) { - return "Search Relays"; - } else if (this.kind === 10015 /* InterestList */ && !nameTag) { - return "Interests"; - } else if (this.kind === 10030 /* EmojiList */ && !nameTag) { - return "Emojis"; - } else { - return nameTag ?? this.tagValue("d"); - } - } - /** - * Sets the name of the list. - * @deprecated Please use "title" instead. This method will use the `title` tag instead. - */ - set name(name) { - this.removeTag("name"); - if (name) { - this.tags.push(["title", name]); - } else { - throw new Error("Name cannot be empty"); - } - } - /** - * Returns the description of the list. - */ - get description() { - return this.tagValue("description"); - } - /** - * Sets the description of the list. - */ - set description(name) { - if (name) { - this.tags.push(["description", name]); - } else { - this.removeTag("description"); - } - } - isEncryptedTagsCacheValid() { - return !!(this._encryptedTags && this.encryptedTagsLength === this.content.length); - } - /** - * Returns the decrypted content of the list. - */ - async encryptedTags(useCache = true) { - if (useCache && this.isEncryptedTagsCacheValid()) - return this._encryptedTags; - if (!this.ndk) - throw new Error("NDK instance not set"); - if (!this.ndk.signer) - throw new Error("NDK signer not set"); - const user = await this.ndk.signer.user(); - try { - if (this.content.length > 0) { - try { - const decryptedContent = await this.ndk.signer.decrypt(user, this.content); - const a = JSON.parse(decryptedContent); - if (a && a[0]) { - this.encryptedTagsLength = this.content.length; - return this._encryptedTags = a; - } - this.encryptedTagsLength = this.content.length; - return this._encryptedTags = []; - } catch (e) { - console.log(`error decrypting ${this.content}`); - } - } - } catch (e) { - } - return []; - } - /** - * This method can be overriden to validate that a tag is valid for this list. - * - * (i.e. the NDKPersonList can validate that items are NDKUser instances) - */ - validateTag(tagValue) { - return true; - } - /** - * Returns the unecrypted items in this list. - */ - get items() { - return this.tags.filter((t) => { - return ![ - "d", - "L", - "l", - "title", - "name", - "description", - "summary", - "image", - "thumb", - "alt", - "expiration", - "subject" - ].includes(t[0]); - }); - } - /** - * Adds a new item to the list. - * @param relay Relay to add - * @param mark Optional mark to add to the item - * @param encrypted Whether to encrypt the item - */ - async addItem(item, mark = void 0, encrypted = false) { - if (!this.ndk) - throw new Error("NDK instance not set"); - if (!this.ndk.signer) - throw new Error("NDK signer not set"); - let tags; - if (item instanceof NDKEvent) { - tags = item.referenceTags(); - } else if (item instanceof NDKUser) { - tags = item.referenceTags(); - } else if (item instanceof NDKRelay) { - tags = item.referenceTags(); - } else if (Array.isArray(item)) { - tags = [item]; - } else { - throw new Error("Invalid object type"); - } - if (mark) - tags[0].push(mark); - if (encrypted) { - const user = await this.ndk.signer.user(); - const currentList = await this.encryptedTags(); - currentList.push(...tags); - this._encryptedTags = currentList; - this.encryptedTagsLength = this.content.length; - this.content = JSON.stringify(currentList); - await this.encrypt(user); - } else { - this.tags.push(...tags); - } - this.created_at = Math.floor(Date.now() / 1e3); - this.emit("change"); - } - /** - * Removes an item from the list. - * - * @param index The index of the item to remove. - * @param encrypted Whether to remove from the encrypted list or not. - */ - async removeItem(index, encrypted) { - if (!this.ndk) - throw new Error("NDK instance not set"); - if (!this.ndk.signer) - throw new Error("NDK signer not set"); - if (encrypted) { - const user = await this.ndk.signer.user(); - const currentList = await this.encryptedTags(); - currentList.splice(index, 1); - this._encryptedTags = currentList; - this.encryptedTagsLength = this.content.length; - this.content = JSON.stringify(currentList); - await this.encrypt(user); - } else { - this.tags.splice(index, 1); - } - this.created_at = Math.floor(Date.now() / 1e3); - this.emit("change"); - return this; - } -}; -var lists_default = NDKList; - -// src/user/pin.ts -async function pin(event, pinEvent, publish) { - const kind = 10001 /* PinList */; - if (!this.ndk) - throw new Error("No NDK instance found"); - this.ndk.assertSigner(); - if (!pinEvent) { - const events = await this.ndk.fetchEvents( - { kinds: [kind], authors: [this.pubkey] }, - { cacheUsage: "ONLY_RELAY" /* ONLY_RELAY */ } - ); - if (events.size > 0) { - pinEvent = lists_default.from(Array.from(events)[0]); - } else { - pinEvent = new NDKEvent(this.ndk, { - kind - }); - } - } - pinEvent.tag(event); - if (publish) { - await pinEvent.publish(); - } - return pinEvent; -} - -// src/user/index.ts -var NDKUser = class { - ndk; - profile; - _npub; - _pubkey; - relayUrls = []; - constructor(opts) { - if (opts.npub) - this._npub = opts.npub; - if (opts.hexpubkey) - this._pubkey = opts.hexpubkey; - if (opts.pubkey) - this._pubkey = opts.pubkey; - if (opts.relayUrls) { - this.relayUrls = opts.relayUrls; - } - } - get npub() { - if (!this._npub) { - if (!this._pubkey) - throw new Error("hexpubkey not set"); - this._npub = import_nostr_tools8.nip19.npubEncode(this.pubkey); - } - return this._npub; - } - set npub(npub) { - this._npub = npub; - } - /** - * Get the user's hexpubkey - * @returns {Hexpubkey} The user's hexpubkey - * - * @deprecated Use `pubkey` instead - */ - get hexpubkey() { - return this.pubkey; - } - /** - * Set the user's hexpubkey - * @param pubkey {Hexpubkey} The user's hexpubkey - * @deprecated Use `pubkey` instead - */ - set hexpubkey(pubkey) { - this._pubkey = pubkey; - } - /** - * Get the user's pubkey - * @returns {string} The user's pubkey - */ - get pubkey() { - if (!this._pubkey) { - if (!this._npub) - throw new Error("npub not set"); - this._pubkey = import_nostr_tools8.nip19.decode(this.npub).data; - } - return this._pubkey; - } - /** - * Set the user's pubkey - * @param pubkey {string} The user's pubkey - */ - set pubkey(pubkey) { - this._pubkey = pubkey; - } - /** - * Instantiate an NDKUser from a NIP-05 string - * @param nip05Id {string} The user's NIP-05 - * @returns {NDKUser | undefined} An NDKUser if one is found for the given NIP-05, undefined otherwise. - */ - static async fromNip05(nip05Id) { - const profile = await import_nostr_tools8.nip05.queryProfile(nip05Id); - if (profile) { - return new NDKUser({ - pubkey: profile.pubkey, - relayUrls: profile.relays - }); - } - } - /** - * Fetch a user's profile - * @param opts {NDKSubscriptionOptions} A set of NDKSubscriptionOptions - * @returns User Profile - */ - async fetchProfile(opts) { - if (!this.ndk) - throw new Error("NDK not set"); - if (!this.profile) - this.profile = {}; - let setMetadataEvents = null; - if (this.ndk.cacheAdapter && this.ndk.cacheAdapter.fetchProfile && opts?.cacheUsage !== "ONLY_RELAY" /* ONLY_RELAY */) { - const profile = await this.ndk.cacheAdapter.fetchProfile(this.pubkey); - if (profile) { - this.profile = profile; - return profile; - } - } - if (!opts && // if no options have been set - this.ndk.cacheAdapter && // and we have a cache - this.ndk.cacheAdapter.locking) { - setMetadataEvents = await this.ndk.fetchEvents( - { - kinds: [0], - authors: [this.pubkey] - }, - { - cacheUsage: "ONLY_CACHE" /* ONLY_CACHE */, - closeOnEose: true, - groupable: false - } - ); - opts = { - cacheUsage: "ONLY_RELAY" /* ONLY_RELAY */, - closeOnEose: true, - groupable: true, - groupableDelay: 250 - }; - } - if (!setMetadataEvents || setMetadataEvents.size === 0) { - setMetadataEvents = await this.ndk.fetchEvents( - { - kinds: [0], - authors: [this.pubkey] - }, - opts - ); - } - const sortedSetMetadataEvents = Array.from(setMetadataEvents).sort( - (a, b) => a.created_at - b.created_at - ); - if (sortedSetMetadataEvents.length === 0) - return null; - this.profile = profileFromEvent(sortedSetMetadataEvents[0]); - if (this.profile && this.ndk.cacheAdapter && this.ndk.cacheAdapter.saveProfile) { - this.ndk.cacheAdapter.saveProfile(this.pubkey, this.profile); - } - return this.profile; - } - /** - * Returns a set of users that this user follows. - */ - follows = follows.bind(this); - /** - * Pins a user or an event - */ - pin = pin.bind(this); - /** - * Returns a set of relay list events for a user. - * @returns {Promise>} A set of NDKEvents returned for the given user. - */ - async relayList() { - if (!this.ndk) - throw new Error("NDK not set"); - const pool = this.ndk.outboxPool || this.ndk.pool; - const set = /* @__PURE__ */ new Set(); - for (const relay of pool.relays.values()) - set.add(relay); - const relaySet = new NDKRelaySet(set, this.ndk); - const event = await this.ndk.fetchEvent( - { - kinds: [10002], - authors: [this.pubkey] - }, - { - closeOnEose: true, - pool, - groupable: true, - subId: `relay-list-${this.pubkey.slice(0, 6)}` - }, - relaySet - ); - if (event) - return NDKRelayList.from(event); - return await this.relayListFromKind3(); - } - async relayListFromKind3() { - if (!this.ndk) - throw new Error("NDK not set"); - const followList = await this.ndk.fetchEvent({ - kinds: [3], - authors: [this.pubkey] - }); - if (followList) { - try { - const content = JSON.parse(followList.content); - const relayList = new NDKRelayList(this.ndk); - const readRelays = /* @__PURE__ */ new Set(); - const writeRelays = /* @__PURE__ */ new Set(); - for (const [key, config] of Object.entries(content)) { - if (!config) { - readRelays.add(key); - writeRelays.add(key); - } else { - const relayConfig = config; - if (relayConfig.write) - writeRelays.add(key); - if (relayConfig.read) - readRelays.add(key); - } - } - relayList.readRelayUrls = Array.from(readRelays); - relayList.writeRelayUrls = Array.from(writeRelays); - return relayList; - } catch (e) { - } - } - return void 0; - } - /** @deprecated Use referenceTags instead. */ - /** - * Get the tag that can be used to reference this user in an event - * @returns {NDKTag} an NDKTag - */ - tagReference() { - return ["p", this.pubkey]; - } - /** - * Get the tags that can be used to reference this user in an event - * @returns {NDKTag[]} an array of NDKTag - */ - referenceTags(marker) { - const tag = [["p", this.pubkey]]; - if (!marker) - return tag; - tag[0].push("", marker); - return tag; - } - /** - * Publishes the current profile. - */ - async publish() { - if (!this.ndk) - throw new Error("No NDK instance found"); - if (!this.profile) - throw new Error("No profile available"); - this.ndk.assertSigner(); - const event = new NDKEvent(this.ndk, { - kind: 0, - content: serializeProfile(this.profile) - }); - await event.publish(); - } - /** - * Add a follow to this user's contact list - * - * @param newFollow {NDKUser} The user to follow - * @param currentFollowList {Set} The current follow list - * @returns {Promise} True if the follow was added, false if the follow already exists - */ - async follow(newFollow, currentFollowList) { - if (!this.ndk) - throw new Error("No NDK instance found"); - this.ndk.assertSigner(); - if (!currentFollowList) { - currentFollowList = await this.follows(); - } - if (currentFollowList.has(newFollow)) { - return false; - } - currentFollowList.add(newFollow); - const event = new NDKEvent(this.ndk, { - kind: 3 /* Contacts */ - }); - for (const follow of currentFollowList) { - event.tag(follow); - } - await event.publish(); - return true; - } - /** - * Validate a user's NIP-05 identifier (usually fetched from their kind:0 profile data) - * - * @param nip05Id The NIP-05 string to validate - * @returns {Promise} True if the NIP-05 is found and matches this user's pubkey, - * False if the NIP-05 is found but doesn't match this user's pubkey, - * null if the NIP-05 isn't found on the domain or we're unable to verify (because of network issues, etc.) - */ - async validateNip05(nip05Id) { - if (!this.ndk) - throw new Error("No NDK instance found"); - const profilePointer = await import_nostr_tools8.nip05.queryProfile(nip05Id); - if (profilePointer === null) - return null; - return profilePointer.pubkey === this.pubkey; - } - /** - * Zap a user - * - * @param amount The amount to zap in millisatoshis - * @param comment A comment to add to the zap request - * @param extraTags Extra tags to add to the zap request - * @param signer The signer to use (will default to the NDK instance's signer) - */ - async zap(amount, comment, extraTags, signer) { - if (!this.ndk) - throw new Error("No NDK instance found"); - if (!signer) { - this.ndk.assertSigner(); - } - const zap = new Zap({ - ndk: this.ndk, - zappedUser: this - }); - const relays = Array.from(this.ndk.pool.relays.keys()); - const paymentRequest = await zap.createZapRequest( - amount, - comment, - extraTags, - relays, - signer - ); - return paymentRequest; - } -}; - -// src/events/kinds/article.ts -var NDKArticle = class extends NDKEvent { - constructor(ndk, rawEvent) { - super(ndk, rawEvent); - this.kind = 30023 /* Article */; - } - /** - * Creates a NDKArticle from an existing NDKEvent. - * - * @param event NDKEvent to create the NDKArticle from. - * @returns NDKArticle - */ - static from(event) { - return new NDKArticle(event.ndk, event.rawEvent()); - } - /** - * Getter for the article title. - * - * @returns {string | undefined} - The article title if available, otherwise undefined. - */ - get title() { - return this.tagValue("title"); - } - /** - * Setter for the article title. - * - * @param {string | undefined} title - The title to set for the article. - */ - set title(title) { - this.removeTag("title"); - if (title) - this.tags.push(["title", title]); - } - /** - * Getter for the article image. - * - * @returns {string | undefined} - The article image if available, otherwise undefined. - */ - get image() { - return this.tagValue("image"); - } - /** - * Setter for the article image. - * - * @param {string | undefined} image - The image to set for the article. - */ - set image(image) { - this.removeTag("image"); - if (image) - this.tags.push(["image", image]); - } - get summary() { - return this.tagValue("summary"); - } - /** - * Getter for the article's publication timestamp. - * - * @returns {number | undefined} - The Unix timestamp of when the article was published or undefined. - */ - get published_at() { - const tag = this.tagValue("published_at"); - if (tag) { - return parseInt(tag); - } - return void 0; - } - /** - * Setter for the article's publication timestamp. - * - * @param {number | undefined} timestamp - The Unix timestamp to set for the article's publication date. - */ - set published_at(timestamp) { - this.removeTag("published_at"); - if (timestamp !== void 0) { - this.tags.push(["published_at", timestamp.toString()]); - } - } - /** - * Generates content tags for the article. - * - * This method first checks and sets the publication date if not available, - * and then generates content tags based on the base NDKEvent class. - * - * @returns {ContentTag} - The generated content tags. - */ - async generateTags() { - super.generateTags(); - if (!this.published_at) { - this.published_at = this.created_at; - } - return super.generateTags(); - } - /** - * Getter for the article's URL. - * - * @returns {string | undefined} - The article's URL if available, otherwise undefined. - */ - get url() { - return this.tagValue("url"); - } - /** - * Setter for the article's URL. - * - * @param {string | undefined} url - The URL to set for the article. - */ - set url(url) { - if (url) { - this.tags.push(["url", url]); - } else { - this.removeTag("url"); - } - } -}; - -// src/events/kinds/highlight.ts -var import_nostr_tools9 = require("nostr-tools"); -var NDKHighlight = class extends NDKEvent { - _article; - constructor(ndk, rawEvent) { - super(ndk, rawEvent); - this.kind ??= 9802 /* Highlight */; - } - static from(event) { - return new NDKHighlight(event.ndk, event.rawEvent()); - } - get url() { - return this.tagValue("r"); - } - /** - * Context tag. - */ - set context(context) { - if (context === void 0) { - this.tags = this.tags.filter(([tag, value]) => tag !== "context"); - } else { - this.tags = this.tags.filter(([tag, value]) => tag !== "context"); - this.tags.push(["context", context]); - } - } - get context() { - return this.tags.find(([tag, value]) => tag === "context")?.[1] ?? void 0; - } - /** - * Will return the article URL or NDKEvent if they have already been - * set (it won't attempt to load remote events) - */ - get article() { - return this._article; - } - /** - * Article the highlight is coming from. - * - * @param article Article URL or NDKEvent. - */ - set article(article) { - this._article = article; - if (typeof article === "string") { - this.tags.push(["r", article]); - } else { - this.tag(article); - } - } - getArticleTag() { - return this.getMatchingTags("a")[0] || this.getMatchingTags("e")[0] || this.getMatchingTags("r")[0]; - } - async getArticle() { - if (this._article !== void 0) - return this._article; - let taggedBech32; - const articleTag = this.getArticleTag(); - if (!articleTag) - return void 0; - switch (articleTag[0]) { - case "a": - const [kind, pubkey, identifier] = articleTag[1].split(":"); - taggedBech32 = import_nostr_tools9.nip19.naddrEncode({ kind: parseInt(kind), pubkey, identifier }); - break; - case "e": - taggedBech32 = import_nostr_tools9.nip19.noteEncode(articleTag[1]); - break; - case "r": - this._article = articleTag[1]; - break; - } - if (taggedBech32) { - let a = await this.ndk?.fetchEvent(taggedBech32); - if (a) { - if (a.kind === 30023 /* Article */) { - a = NDKArticle.from(a); - } - this._article = a; - } - } - return this._article; - } -}; - -// src/events/kinds/dvm/NDKDVMJobFeedback.ts -var NDKDvmJobFeedbackStatus = /* @__PURE__ */ ((NDKDvmJobFeedbackStatus2) => { - NDKDvmJobFeedbackStatus2["Processing"] = "processing"; - NDKDvmJobFeedbackStatus2["Success"] = "success"; - NDKDvmJobFeedbackStatus2["Scheduled"] = "scheduled"; - NDKDvmJobFeedbackStatus2["PayReq"] = "payment_required"; - return NDKDvmJobFeedbackStatus2; -})(NDKDvmJobFeedbackStatus || {}); -var NDKDVMJobFeedback = class extends NDKEvent { - constructor(ndk, event) { - super(ndk, event); - this.kind ??= 7e3 /* DVMJobFeedback */; - } - static from(event) { - return new NDKDVMJobFeedback(event.ndk, event.rawEvent()); - } - get status() { - return this.tagValue("status"); - } - set status(status) { - this.removeTag("status"); - if (status !== void 0) { - this.tags.push(["status", status]); - } - } -}; - -// src/events/kinds/dvm/NDKDVMJobResult.ts -var NDKDVMJobResult = class extends NDKEvent { - constructor(ndk, event) { - super(ndk, event); - } - static from(event) { - return new NDKDVMJobResult(event.ndk, event.rawEvent()); - } - setAmount(msat, invoice) { - this.removeTag("amount"); - const tag = ["amount", msat.toString()]; - if (invoice) - tag.push(invoice); - this.tags.push(tag); - } - set result(result) { - if (result === void 0) { - this.content = ""; - } else { - this.content = result; - } - } - get result() { - if (this.content === "") { - return void 0; - } - return this.content; - } - set status(status) { - this.removeTag("status"); - if (status !== void 0) { - this.tags.push(["status", status]); - } - } - get status() { - return this.tagValue("status"); - } - get jobRequestId() { - for (const eTag of this.getMatchingTags("e")) { - if (eTag[2] === "job") - return eTag[1]; - } - if (this.jobRequest) - return this.jobRequest.id; - return this.tagValue("e"); - } - set jobRequest(event) { - this.removeTag("request"); - if (event) { - this.kind = event.kind + 1e3; - this.tags.push(["request", JSON.stringify(event.rawEvent())]); - this.tag(event); - } - } - get jobRequest() { - const tag = this.tagValue("request"); - if (tag === void 0) { - return void 0; - } - return new NDKEvent(this.ndk, JSON.parse(tag)); - } -}; - -// src/events/kinds/dvm/NDKDVMRequest.ts -var NDKDVMRequest = class extends NDKEvent { - constructor(ndk, event) { - super(ndk, event); - if (ndk) { - this.tags.push(["relays", ...ndk.pool.urls()]); - } - } - static from(event) { - return new NDKDVMRequest(event.ndk, event.rawEvent()); - } - /** - * Create a new job feedback for this request - */ - createFeedback(status) { - const feedback = new NDKDVMJobFeedback(this.ndk); - feedback.status = status; - feedback.tag(this, "job"); - return feedback; - } - /** - * Create a new result event for this request - */ - createResult(data) { - const event = new NDKDVMJobResult(this.ndk, data); - event.jobRequest = this; - return event; - } - set bid(msatAmount) { - if (msatAmount === void 0) { - this.removeTag("bid"); - } else { - this.tags.push(["bid", msatAmount.toString()]); - } - } - get bid() { - const v = this.tagValue("bid"); - if (v === void 0) - return void 0; - return parseInt(v); - } - /** - * Adds a new input to the job - * @param args The arguments to the input - */ - addInput(...args) { - this.tags.push(["i", ...args]); - } - /** - * Adds a new parameter to the job - */ - addParam(...args) { - this.tags.push(["param", ...args]); - } - set output(output) { - if (output === void 0) { - this.removeTag("output"); - } else { - if (typeof output === "string") - output = [output]; - this.tags.push(["output", ...output]); - } - } - get output() { - const outputTag = this.getMatchingTags("output")[0]; - return outputTag ? outputTag.slice(1) : void 0; - } - get params() { - const paramTags = this.getMatchingTags("param"); - return paramTags.map((t) => t.slice(1)); - } - getParam(name) { - const paramTag = this.getMatchingTags("param").find((t) => t[1] === name); - return paramTag ? paramTag[2] : void 0; - } -}; - -// src/events/kinds/dvm/NDKTranscriptionDVM.ts -var NDKTranscriptionDVM = class extends NDKDVMRequest { - constructor(ndk, event) { - super(ndk, event); - this.kind = 5e3 /* DVMReqTextExtraction */; - } - static from(event) { - return new NDKTranscriptionDVM(event.ndk, event.rawEvent()); - } - /** - * Returns the original source of the transcription - */ - get url() { - const inputTags = this.getMatchingTags("i"); - if (inputTags.length !== 1) { - return void 0; - } - return inputTags[0][1]; - } - /** - * Getter for the title tag - */ - get title() { - return this.tagValue("title"); - } - /** - * Setter for the title tag - */ - set title(value) { - this.removeTag("title"); - if (value) { - this.tags.push(["title", value]); - } - } - /** - * Getter for the image tag - */ - get image() { - return this.tagValue("image"); - } - /** - * Setter for the image tag - */ - set image(value) { - this.removeTag("image"); - if (value) { - this.tags.push(["image", value]); - } - } -}; - -// src/events/kinds/repost.ts -var NDKRepost = class extends NDKEvent { - _repostedEvents; - constructor(ndk, rawEvent) { - super(ndk, rawEvent); - } - static from(event) { - return new NDKRepost(event.ndk, event.rawEvent()); - } - /** - * Returns all reposted events by the current event. - * - * @param klass Optional class to convert the events to. - * @returns - */ - async repostedEvents(klass, opts) { - const items = []; - if (!this.ndk) - throw new Error("NDK instance not set"); - if (this._repostedEvents !== void 0) - return this._repostedEvents; - for (const eventId of this.repostedEventIds()) { - const filter = filterForId(eventId); - const event = await this.ndk.fetchEvent(filter, opts); - if (event) { - items.push(klass ? klass.from(event) : event); - } - } - return items; - } - /** - * Returns the reposted event IDs. - */ - repostedEventIds() { - return this.tags.filter((t) => t[0] === "e" || t[0] === "a").map((t) => t[1]); - } -}; -function filterForId(id) { - if (id.match(/:/)) { - const [kind, pubkey, identifier] = id.split(":"); - return { - kinds: [parseInt(kind)], - authors: [pubkey], - "#d": [identifier] - }; - } else { - return { ids: [id] }; - } -} - -// src/events/kinds/nip89/NDKAppHandler.ts -var NDKAppHandlerEvent = class extends NDKEvent { - profile; - constructor(ndk, rawEvent) { - super(ndk, rawEvent); - this.kind ??= 31990 /* AppHandler */; - } - static from(ndkEvent) { - return new NDKAppHandlerEvent(ndkEvent.ndk, ndkEvent.rawEvent()); - } - /** - * Fetches app handler information - * If no app information is available on the kind:31990, - * we fetch the event's author's profile and return that instead. - */ - async fetchProfile() { - if (this.profile === void 0 && this.content.length > 0) { - try { - const profile = JSON.parse(this.content); - if (profile && profile.name) { - return profile; - } else { - this.profile = null; - } - } catch (e) { - this.profile = null; - } - } - return new Promise((resolve, reject) => { - const author = this.author; - author.fetchProfile().then(() => { - resolve(author.profile); - }).catch(reject); - }); - } -}; - -// src/signers/nip07/index.ts -var import_debug2 = __toESM(require("debug")); -var NDKNip07Signer = class { - _userPromise; - nip04Queue = []; - nip04Processing = false; - debug; - waitTimeout; - /** - * @param waitTimeout - The timeout in milliseconds to wait for the NIP-07 to become available - */ - constructor(waitTimeout = 1e3) { - this.debug = (0, import_debug2.default)("ndk:nip07"); - this.waitTimeout = waitTimeout; - } - async blockUntilReady() { - await this.waitForExtension(); - const pubkey = await window.nostr.getPublicKey(); - if (!pubkey) { - throw new Error("User rejected access"); - } - return new NDKUser({ hexpubkey: pubkey }); - } - /** - * Getter for the user property. - * @returns The NDKUser instance. - */ - async user() { - if (!this._userPromise) { - this._userPromise = this.blockUntilReady(); - } - return this._userPromise; - } - /** - * Signs the given Nostr event. - * @param event - The Nostr event to be signed. - * @returns The signature of the signed event. - * @throws Error if the NIP-07 is not available on the window object. - */ - async sign(event) { - await this.waitForExtension(); - const signedEvent = await window.nostr.signEvent(event); - return signedEvent.sig; - } - async relays() { - await this.waitForExtension(); - const relays = await window.nostr.getRelays?.() || {}; - const activeRelays = []; - for (const url in Object.keys(relays)) { - if (relays[url].read && relays[url].write) { - activeRelays.push(url); - } - } - return activeRelays.map((url) => new NDKRelay(url)); - } - async encrypt(recipient, value) { - await this.waitForExtension(); - const recipientHexPubKey = recipient.hexpubkey; - return this.queueNip04("encrypt", recipientHexPubKey, value); - } - async decrypt(sender, value) { - await this.waitForExtension(); - const senderHexPubKey = sender.hexpubkey; - return this.queueNip04("decrypt", senderHexPubKey, value); - } - async queueNip04(type, counterpartyHexpubkey, value) { - return new Promise((resolve, reject) => { - this.nip04Queue.push({ - type, - counterpartyHexpubkey, - value, - resolve, - reject - }); - if (!this.nip04Processing) { - this.processNip04Queue(); - } - }); - } - async processNip04Queue(item, retries = 0) { - if (!item && this.nip04Queue.length === 0) { - this.nip04Processing = false; - return; - } - this.nip04Processing = true; - const { type, counterpartyHexpubkey, value, resolve, reject } = item || this.nip04Queue.shift(); - this.debug("Processing encryption queue item", { - type, - counterpartyHexpubkey, - value - }); - try { - let result; - if (type === "encrypt") { - result = await window.nostr.nip04.encrypt(counterpartyHexpubkey, value); - } else { - result = await window.nostr.nip04.decrypt(counterpartyHexpubkey, value); - } - resolve(result); - } catch (error) { - if (error.message && error.message.includes("call already executing")) { - if (retries < 5) { - this.debug("Retrying encryption queue item", { - type, - counterpartyHexpubkey, - value, - retries - }); - setTimeout(() => { - this.processNip04Queue(item, retries + 1); - }, 50 * retries); - return; - } - } - reject(error); - } - this.processNip04Queue(); - } - waitForExtension() { - return new Promise((resolve, reject) => { - if (window.nostr) { - resolve(); - return; - } - let timerId; - const intervalId = setInterval(() => { - if (window.nostr) { - clearTimeout(timerId); - clearInterval(intervalId); - resolve(); - } - }, 100); - timerId = setTimeout(() => { - clearInterval(intervalId); - reject(new Error("NIP-07 extension not available")); - }, this.waitTimeout); - }); - } -}; - -// src/signers/nip46/backend/index.ts -var import_nostr_tools11 = require("nostr-tools"); - -// src/signers/private-key/index.ts -var import_nostr_tools10 = require("nostr-tools"); -var NDKPrivateKeySigner = class { - _user; - privateKey; - constructor(privateKey) { - if (privateKey) { - this.privateKey = privateKey; - this._user = new NDKUser({ - hexpubkey: (0, import_nostr_tools10.getPublicKey)(this.privateKey) - }); - } - } - static generate() { - const privateKey = (0, import_nostr_tools10.generatePrivateKey)(); - return new NDKPrivateKeySigner(privateKey); - } - async blockUntilReady() { - if (!this._user) { - throw new Error("NDKUser not initialized"); - } - return this._user; - } - async user() { - await this.blockUntilReady(); - return this._user; - } - async sign(event) { - if (!this.privateKey) { - throw Error("Attempted to sign without a private key"); - } - return (0, import_nostr_tools10.getSignature)(event, this.privateKey); - } - async encrypt(recipient, value) { - if (!this.privateKey) { - throw Error("Attempted to encrypt without a private key"); - } - const recipientHexPubKey = recipient.hexpubkey; - return await import_nostr_tools10.nip04.encrypt(this.privateKey, recipientHexPubKey, value); - } - async decrypt(sender, value) { - if (!this.privateKey) { - throw Error("Attempted to decrypt without a private key"); - } - const senderHexPubKey = sender.hexpubkey; - return await import_nostr_tools10.nip04.decrypt(this.privateKey, senderHexPubKey, value); - } -}; - -// src/signers/nip46/rpc.ts -var import_tseep6 = require("tseep"); -var NDKNostrRpc = class extends import_tseep6.EventEmitter { - ndk; - signer; - debug; - constructor(ndk, signer, debug4) { - super(); - this.ndk = ndk; - this.signer = signer; - this.debug = debug4.extend("rpc"); - } - /** - * Subscribe to a filter. This function will resolve once the subscription is ready. - */ - subscribe(filter) { - const sub = this.ndk.subscribe(filter, { - closeOnEose: false, - groupable: false - }); - sub.on("event", async (event) => { - try { - const parsedEvent = await this.parseEvent(event); - if (parsedEvent.method) { - this.emit("request", parsedEvent); - } else { - this.emit(`response-${parsedEvent.id}`, parsedEvent); - } - } catch (e) { - this.debug("error parsing event", e, event); - } - }); - return new Promise((resolve, reject) => { - sub.on("eose", () => resolve(sub)); - }); - } - async parseEvent(event) { - const remoteUser = this.ndk.getUser({ hexpubkey: event.pubkey }); - remoteUser.ndk = this.ndk; - const decryptedContent = await this.signer.decrypt(remoteUser, event.content); - const parsedContent = JSON.parse(decryptedContent); - const { id, method, params, result, error } = parsedContent; - if (method) { - return { id, pubkey: event.pubkey, method, params, event }; - } else { - return { id, result, error, event }; - } - } - async sendResponse(id, remotePubkey, result, kind = 24133, error) { - const res = { id, result }; - if (error) { - res.error = error; - } - const localUser = await this.signer.user(); - const remoteUser = this.ndk.getUser({ hexpubkey: remotePubkey }); - const event = new NDKEvent(this.ndk, { - kind, - content: JSON.stringify(res), - tags: [["p", remotePubkey]], - pubkey: localUser.hexpubkey - }); - event.content = await this.signer.encrypt(remoteUser, event.content); - await event.sign(this.signer); - await event.publish(); - } - /** - * Sends a request. - * @param remotePubkey - * @param method - * @param params - * @param kind - * @param id - */ - async sendRequest(remotePubkey, method, params = [], kind = 24133, cb) { - const id = Math.random().toString(36).substring(7); - const localUser = await this.signer.user(); - const remoteUser = this.ndk.getUser({ hexpubkey: remotePubkey }); - const request = { id, method, params }; - const promise = new Promise((resolve) => { - const responseHandler = (response) => { - if (response.result === "auth_url") { - this.once(`response-${id}`, responseHandler); - this.emit("authUrl", response.error); - } else if (cb) { - cb(response); - } - }; - this.once(`response-${id}`, responseHandler); - }); - const event = new NDKEvent(this.ndk, { - kind, - content: JSON.stringify(request), - tags: [["p", remotePubkey]], - pubkey: localUser.hexpubkey - }); - event.content = await this.signer.encrypt(remoteUser, event.content); - await event.sign(this.signer); - this.debug(`sending ${method} request to`, remotePubkey); - await event.publish(); - return promise; - } -}; - -// src/signers/nip46/backend/connect.ts -var ConnectEventHandlingStrategy = class { - async handle(backend, id, remotePubkey, params) { - const [pubkey, token] = params; - const debug4 = backend.debug.extend("connect"); - debug4(`connection request from ${pubkey}`); - if (token && backend.applyToken) { - debug4(`applying token`); - await backend.applyToken(pubkey, token); - } - if (await backend.pubkeyAllowed({ id, pubkey, method: "connect", params: token })) { - debug4(`connection request from ${pubkey} allowed`); - return "ack"; - } else { - debug4(`connection request from ${pubkey} rejected`); - } - return void 0; - } -}; - -// src/signers/nip46/backend/get-public-key.ts -var GetPublicKeyHandlingStrategy = class { - async handle(backend, id, remotePubkey, params) { - return backend.localUser?.pubkey; - } -}; - -// src/signers/nip46/backend/nip04-decrypt.ts -var Nip04DecryptHandlingStrategy = class { - async handle(backend, id, remotePubkey, params) { - const [senderPubkey, payload] = params; - const senderUser = new NDKUser({ hexpubkey: senderPubkey }); - const decryptedPayload = await decrypt2(backend, id, remotePubkey, senderUser, payload); - return JSON.stringify([decryptedPayload]); - } -}; -async function decrypt2(backend, id, remotePubkey, senderUser, payload) { - if (!await backend.pubkeyAllowed({ - id, - pubkey: remotePubkey, - method: "decrypt", - params: payload - })) { - backend.debug(`decrypt request from ${remotePubkey} rejected`); - return void 0; - } - return await backend.signer.decrypt(senderUser, payload); -} - -// src/signers/nip46/backend/nip04-encrypt.ts -var Nip04EncryptHandlingStrategy = class { - async handle(backend, id, remotePubkey, params) { - const [recipientPubkey, payload] = params; - const recipientUser = new NDKUser({ hexpubkey: recipientPubkey }); - const encryptedPayload = await encrypt2(backend, id, remotePubkey, recipientUser, payload); - return encryptedPayload; - } -}; -async function encrypt2(backend, id, remotePubkey, recipientUser, payload) { - if (!await backend.pubkeyAllowed({ - id, - pubkey: remotePubkey, - method: "encrypt", - params: payload - })) { - backend.debug(`encrypt request from ${remotePubkey} rejected`); - return void 0; - } - return await backend.signer.encrypt(recipientUser, payload); -} - -// src/signers/nip46/backend/sign-event.ts -var SignEventHandlingStrategy = class { - async handle(backend, id, remotePubkey, params) { - const event = await signEvent(backend, id, remotePubkey, params); - if (!event) - return void 0; - return JSON.stringify(await event.toNostrEvent()); - } -}; -async function signEvent(backend, id, remotePubkey, params) { - const [eventString] = params; - backend.debug(`sign event request from ${remotePubkey}`); - const event = new NDKEvent(backend.ndk, JSON.parse(eventString)); - backend.debug("event to sign", event.rawEvent()); - if (!await backend.pubkeyAllowed({ - id, - pubkey: remotePubkey, - method: "sign_event", - params: event - })) { - backend.debug(`sign event request from ${remotePubkey} rejected`); - return void 0; - } - backend.debug(`sign event request from ${remotePubkey} allowed`); - await event.sign(backend.signer); - return event; -} - -// src/signers/nip46/backend/index.ts -var NDKNip46Backend = class { - ndk; - signer; - localUser; - debug; - rpc; - permitCallback; - /** - * @param ndk The NDK instance to use - * @param privateKey The private key of the npub that wants to be published as - */ - constructor(ndk, privateKey, permitCallback) { - this.ndk = ndk; - this.signer = new NDKPrivateKeySigner(privateKey); - this.debug = ndk.debug.extend("nip46:backend"); - this.rpc = new NDKNostrRpc(ndk, this.signer, this.debug); - this.permitCallback = permitCallback; - } - /** - * This method starts the backend, which will start listening for incoming - * requests. - */ - async start() { - this.localUser = await this.signer.user(); - const sub = this.ndk.subscribe( - { - kinds: [24133], - "#p": [this.localUser.hexpubkey] - }, - { closeOnEose: false } - ); - sub.on("event", (e) => this.handleIncomingEvent(e)); - } - handlers = { - connect: new ConnectEventHandlingStrategy(), - sign_event: new SignEventHandlingStrategy(), - nip04_encrypt: new Nip04EncryptHandlingStrategy(), - nip04_decrypt: new Nip04DecryptHandlingStrategy(), - get_public_key: new GetPublicKeyHandlingStrategy() - }; - /** - * Enables the user to set a custom strategy for handling incoming events. - * @param method - The method to set the strategy for - * @param strategy - The strategy to set - */ - setStrategy(method, strategy) { - this.handlers[method] = strategy; - } - /** - * Overload this method to apply tokens, which can - * wrap permission sets to be applied to a pubkey. - * @param pubkey public key to apply token to - * @param token token to apply - */ - async applyToken(pubkey, token) { - throw new Error("connection token not supported"); - } - async handleIncomingEvent(event) { - const { id, method, params } = await this.rpc.parseEvent(event); - const remotePubkey = event.pubkey; - let response; - this.debug("incoming event", { id, method, params }); - if (!(0, import_nostr_tools11.verifySignature)(event.rawEvent())) { - this.debug("invalid signature", event.rawEvent()); - return; - } - const strategy = this.handlers[method]; - if (strategy) { - try { - response = await strategy.handle(this, id, remotePubkey, params); - } catch (e) { - this.debug("error handling event", e, { id, method, params }); - this.rpc.sendResponse(id, remotePubkey, "error", void 0, e.message); - } - } else { - this.debug("unsupported method", { method, params }); - } - if (response) { - this.debug(`sending response to ${remotePubkey}`, response); - this.rpc.sendResponse(id, remotePubkey, response); - } else { - this.rpc.sendResponse(id, remotePubkey, "error", void 0, "Not authorized"); - } - } - /** - * This method should be overriden by the user to allow or reject incoming - * connections. - */ - async pubkeyAllowed(params) { - return this.permitCallback(params); - } -}; - -// ../node_modules/eventemitter3/index.mjs -var import_index6 = __toESM(require_eventemitter3(), 1); -var eventemitter3_default = import_index6.default; - -// src/signers/nip46/index.ts -var NDKNip46Signer = class extends eventemitter3_default { - ndk; - remoteUser; - remotePubkey; - token; - localSigner; - nip05; - rpc; - debug; - /** - * @param ndk - The NDK instance to use - * @param tokenOrRemoteUser - The public key, or a connection token, of the npub that wants to be published as - * @param localSigner - The signer that will be used to request events to be signed - */ - constructor(ndk, tokenOrRemoteUser, localSigner) { - super(); - let remotePubkey; - let token; - if (tokenOrRemoteUser.includes("#")) { - const parts = tokenOrRemoteUser.split("#"); - remotePubkey = new NDKUser({ npub: parts[0] }).pubkey; - token = parts[1]; - } else if (tokenOrRemoteUser.startsWith("npub")) { - remotePubkey = new NDKUser({ - npub: tokenOrRemoteUser - }).pubkey; - } else if (tokenOrRemoteUser.match(/\./)) { - this.nip05 = tokenOrRemoteUser; - } else { - remotePubkey = tokenOrRemoteUser; - } - this.ndk = ndk; - if (remotePubkey) - this.remotePubkey = remotePubkey; - this.token = token; - this.debug = ndk.debug.extend("nip46:signer"); - this.remoteUser = new NDKUser({ pubkey: remotePubkey }); - if (!localSigner) { - this.localSigner = NDKPrivateKeySigner.generate(); - } else { - this.localSigner = localSigner; - } - this.rpc = new NDKNostrRpc(ndk, this.localSigner, this.debug); - this.rpc.on("authUrl", (...props) => { - this.emit("authUrl", ...props); - }); - } - /** - * Get the user that is being published as - */ - async user() { - return this.remoteUser; - } - async blockUntilReady() { - const localUser = await this.localSigner.user(); - const remoteUser = this.ndk.getUser({ pubkey: this.remotePubkey }); - if (this.nip05 && !this.remotePubkey) { - const remoteUser2 = NDKUser.fromNip05(this.nip05).then((user) => { - if (user) { - this.remoteUser = user; - this.remotePubkey = user.pubkey; - } - }); - } - if (!this.remotePubkey) { - throw new Error("Remote pubkey not set"); - } - await this.rpc.subscribe({ - kinds: [24133], - "#p": [localUser.pubkey] - }); - return new Promise((resolve, reject) => { - setTimeout(() => { - const connectParams = [localUser.pubkey]; - if (this.token) { - connectParams.push(this.token); - } - this.rpc.sendRequest( - this.remotePubkey, - "connect", - connectParams, - 24133, - (response) => { - if (response.result === "ack") { - resolve(remoteUser); - } else { - reject(response.error); - } - } - ); - }, 100); - }); - } - async encrypt(recipient, value) { - this.debug("asking for encryption"); - const promise = new Promise((resolve, reject) => { - this.rpc.sendRequest( - this.remotePubkey, - "nip04_encrypt", - [recipient.pubkey, value], - 24133, - (response) => { - if (!response.error) { - resolve(response.result); - } else { - reject(response.error); - } - } - ); - }); - return promise; - } - async decrypt(sender, value) { - this.debug("asking for decryption"); - const promise = new Promise((resolve, reject) => { - this.rpc.sendRequest( - this.remotePubkey, - "nip04_decrypt", - [sender.pubkey, value], - 24133, - (response) => { - if (!response.error) { - const value2 = JSON.parse(response.result); - resolve(value2[0]); - } else { - reject(response.error); - } - } - ); - }); - return promise; - } - async sign(event) { - this.debug("asking for a signature"); - const promise = new Promise((resolve, reject) => { - this.rpc.sendRequest( - this.remotePubkey, - "sign_event", - [JSON.stringify(event)], - 24133, - (response) => { - this.debug("got a response", response); - if (!response.error) { - const json = JSON.parse(response.result); - resolve(json.sig); - } else { - reject(response.error); - } - } - ); - }); - return promise; - } -}; - -// src/ndk/index.ts -var import_debug3 = __toESM(require("debug")); -var import_tseep9 = require("tseep"); - -// src/events/dedup.ts -function dedup(event1, event2) { - if (event1.created_at > event2.created_at) { - return event1; - } - return event2; -} - -// src/outbox/tracker.ts -var import_tseep7 = require("tseep"); -var import_typescript_lru_cache = require("typescript-lru-cache"); -var OutboxItem = class { - /** - * Type of item - */ - type; - /** - * The relay URLs that are of interest to this item - */ - relayUrlScores; - readRelays; - writeRelays; - constructor(type) { - this.type = type; - this.relayUrlScores = /* @__PURE__ */ new Map(); - this.readRelays = /* @__PURE__ */ new Set(); - this.writeRelays = /* @__PURE__ */ new Set(); - } -}; -var OutboxTracker = class extends import_tseep7.EventEmitter { - data; - ndk; - debug; - constructor(ndk) { - super(); - this.ndk = ndk; - this.debug = ndk.debug.extend("outbox-tracker"); - this.data = new import_typescript_lru_cache.LRUCache({ - maxSize: 1e5, - entryExpirationTimeInMS: 5e3 - }); - } - trackUsers(items) { - for (const item of items) { - const itemKey = getKeyFromItem(item); - if (this.data.has(itemKey)) - continue; - const outboxItem = this.track(item, "user"); - const user = item instanceof NDKUser ? item : new NDKUser({ hexpubkey: item }); - user.ndk = this.ndk; - user.relayList().then((relayList) => { - if (relayList) { - outboxItem.readRelays = new Set(relayList.readRelayUrls); - outboxItem.writeRelays = new Set(relayList.writeRelayUrls); - for (const relayUrl of outboxItem.readRelays) { - if (this.ndk.pool.blacklistRelayUrls.has(relayUrl)) { - this.debug(`removing blacklisted relay ${relayUrl} from read relays`); - outboxItem.readRelays.delete(relayUrl); - } - } - for (const relayUrl of outboxItem.writeRelays) { - if (this.ndk.pool.blacklistRelayUrls.has(relayUrl)) { - this.debug(`removing blacklisted relay ${relayUrl} from write relays`); - outboxItem.writeRelays.delete(relayUrl); - } - } - this.data.set(itemKey, outboxItem); - this.debug( - `Adding ${outboxItem.readRelays.size} read relays and ${outboxItem.writeRelays.size} write relays for ${user.hexpubkey}` - ); - } - }); - } - } - /** - * - * @param key - * @param score - */ - track(item, type) { - const key = getKeyFromItem(item); - type ??= getTypeFromItem(item); - let outboxItem = this.data.get(key); - if (!outboxItem) - outboxItem = new OutboxItem(type); - this.data.set(key, outboxItem); - return outboxItem; - } -}; -function getKeyFromItem(item) { - if (item instanceof NDKUser) { - return item.hexpubkey; - } else { - return item; - } -} -function getTypeFromItem(item) { - if (item instanceof NDKUser) { - return "user"; - } else { - return "kind"; - } -} - -// src/relay/pool/index.ts -var import_tseep8 = require("tseep"); -var NDKPool = class extends import_tseep8.EventEmitter { - // TODO: This should probably be an LRU cache - relays = /* @__PURE__ */ new Map(); - blacklistRelayUrls; - debug; - temporaryRelayTimers = /* @__PURE__ */ new Map(); - flappingRelays = /* @__PURE__ */ new Set(); - // A map to store timeouts for each flapping relay. - backoffTimes = /* @__PURE__ */ new Map(); - constructor(relayUrls = [], blacklistedRelayUrls = [], ndk, debug4) { - super(); - this.debug = debug4 ?? ndk.debug.extend("pool"); - for (const relayUrl of relayUrls) { - const relay = new NDKRelay(relayUrl); - this.addRelay(relay, false); - } - this.blacklistRelayUrls = new Set(blacklistedRelayUrls); - } - /** - * Adds a relay to the pool, and sets a timer to remove it if it is not used within the specified time. - * @param relay - The relay to add to the pool. - * @param removeIfUnusedAfter - The time in milliseconds to wait before removing the relay from the pool after it is no longer used. - */ - useTemporaryRelay(relay, removeIfUnusedAfter = 6e5) { - const relayAlreadyInPool = this.relays.has(relay.url); - if (!relayAlreadyInPool) { - this.addRelay(relay); - } - const existingTimer = this.temporaryRelayTimers.get(relay.url); - if (existingTimer) { - clearTimeout(existingTimer); - } - if (!relayAlreadyInPool || existingTimer) { - const timer = setTimeout(() => { - this.removeRelay(relay.url); - }, removeIfUnusedAfter); - this.temporaryRelayTimers.set(relay.url, timer); - } - } - /** - * Adds a relay to the pool. - * - * @param relay - The relay to add to the pool. - * @param connect - Whether or not to connect to the relay. - */ - addRelay(relay, connect = true) { - const relayUrl = relay.url; - if (this.blacklistRelayUrls?.has(relayUrl)) { - this.debug(`Relay ${relayUrl} is blacklisted`); - return; - } - relay.on("notice", async (relay2, notice) => this.emit("notice", relay2, notice)); - relay.on("connect", () => this.handleRelayConnect(relayUrl)); - relay.on("disconnect", async () => this.emit("relay:disconnect", relay)); - relay.on("flapping", () => this.handleFlapping(relay)); - this.relays.set(relayUrl, relay); - if (connect) { - relay.connect().catch((e) => { - this.debug(`Failed to connect to relay ${relayUrl}`, e); - }); - } - } - /** - * Removes a relay from the pool. - * @param relayUrl - The URL of the relay to remove. - * @returns {boolean} True if the relay was removed, false if it was not found. - */ - removeRelay(relayUrl) { - const relay = this.relays.get(relayUrl); - if (relay) { - relay.disconnect(); - this.relays.delete(relayUrl); - this.emit("relay:disconnect", relay); - return true; - } - const existingTimer = this.temporaryRelayTimers.get(relayUrl); - if (existingTimer) { - clearTimeout(existingTimer); - this.temporaryRelayTimers.delete(relayUrl); - } - return false; - } - /** - * Fetches a relay from the pool, or creates a new one if it does not exist. - * - * New relays will be attempted to be connected. - */ - getRelay(url) { - let relay = this.relays.get(url); - if (!relay) { - relay = new NDKRelay(url); - this.addRelay(relay); - } - return relay; - } - handleRelayConnect(relayUrl) { - this.debug(`Relay ${relayUrl} connected`); - this.emit("relay:connect", this.relays.get(relayUrl)); - if (this.stats().connected === this.relays.size) { - this.emit("connect"); - } - } - /** - * Attempts to establish a connection to each relay in the pool. - * - * @async - * @param {number} [timeoutMs] - Optional timeout in milliseconds for each connection attempt. - * @returns {Promise} A promise that resolves when all connection attempts have completed. - * @throws {Error} If any of the connection attempts result in an error or timeout. - */ - async connect(timeoutMs) { - const promises = []; - this.debug( - `Connecting to ${this.relays.size} relays${timeoutMs ? `, timeout ${timeoutMs}...` : ""}` - ); - for (const relay of this.relays.values()) { - if (timeoutMs) { - const timeoutPromise = new Promise((_, reject) => { - setTimeout(() => reject(`Timed out after ${timeoutMs}ms`), timeoutMs); - }); - promises.push( - Promise.race([relay.connect(), timeoutPromise]).catch((e) => { - this.debug( - `Failed to connect to relay ${relay.url}: ${e ?? "No reason specified"}` - ); - }) - ); - } else { - promises.push(relay.connect()); - } - } - if (timeoutMs) { - setTimeout(() => { - const allConnected = this.stats().connected === this.relays.size; - const someConnected = this.stats().connected > 0; - if (!allConnected && someConnected) { - this.emit("connect"); - } - }, timeoutMs); - } - await Promise.all(promises); - } - checkOnFlappingRelays() { - const flappingRelaysCount = this.flappingRelays.size; - const totalRelays = this.relays.size; - if (flappingRelaysCount / totalRelays >= 0.8) { - for (const relayUrl of this.flappingRelays) { - this.backoffTimes.set(relayUrl, 0); - } - } - } - handleFlapping(relay) { - this.debug(`Relay ${relay.url} is flapping`); - let currentBackoff = this.backoffTimes.get(relay.url) || 5e3; - currentBackoff = currentBackoff * 2; - this.backoffTimes.set(relay.url, currentBackoff); - this.debug(`Backoff time for ${relay.url} is ${currentBackoff}ms`); - setTimeout(() => { - this.debug(`Attempting to reconnect to ${relay.url}`); - relay.connect(); - this.checkOnFlappingRelays(); - }, currentBackoff); - relay.disconnect(); - this.emit("flapping", relay); - } - size() { - return this.relays.size; - } - /** - * Returns the status of each relay in the pool. - * @returns {NDKPoolStats} An object containing the number of relays in each status. - */ - stats() { - const stats = { - total: 0, - connected: 0, - disconnected: 0, - connecting: 0 - }; - for (const relay of this.relays.values()) { - stats.total++; - if (relay.status === 1 /* CONNECTED */) { - stats.connected++; - } else if (relay.status === 3 /* DISCONNECTED */) { - stats.disconnected++; - } else if (relay.status === 0 /* CONNECTING */) { - stats.connecting++; - } - } - return stats; - } - connectedRelays() { - return Array.from(this.relays.values()).filter( - (relay) => relay.status === 1 /* CONNECTED */ - ); - } - /** - * Get a list of all relay urls in the pool. - */ - urls() { - return Array.from(this.relays.keys()); - } -}; - -// src/relay/sets/utils.ts -function correctRelaySet(relaySet, pool) { - const connectedRelays = pool.connectedRelays(); - const includesConnectedRelay = Array.from(relaySet.relays).some((relay) => { - return connectedRelays.map((r) => r.url).includes(relay.url); - }); - if (!includesConnectedRelay) { - for (const relay of connectedRelays) { - relaySet.addRelay(relay); - } - } - if (connectedRelays.length === 0) { - for (const relay of pool.relays.values()) { - relaySet.addRelay(relay); - } - } - return relaySet; -} - -// src/ndk/index.ts -var DEFAULT_OUTBOX_RELAYS = ["wss://purplepag.es", "wss://relay.snort.social"]; -var DEFAULT_BLACKLISTED_RELAYS = [ - "wss://brb.io" - // BRB -]; -var NDK = class extends import_tseep9.EventEmitter { - explicitRelayUrls; - pool; - outboxPool; - _signer; - _activeUser; - cacheAdapter; - debug; - devWriteRelaySet; - outboxTracker; - mutedIds; - client; - autoConnectUserRelays = true; - autoFetchUserMutelist = true; - constructor(opts = {}) { - super(); - this.debug = opts.debug || (0, import_debug3.default)("ndk"); - this.explicitRelayUrls = opts.explicitRelayUrls; - this.pool = new NDKPool(opts.explicitRelayUrls || [], opts.blacklistRelayUrls, this); - this.debug(`Starting with explicit relays: ${JSON.stringify(this.explicitRelayUrls)}`); - this.autoConnectUserRelays = opts.autoConnectUserRelays ?? true; - this.autoFetchUserMutelist = opts.autoFetchUserMutelist ?? true; - this.client = opts.client; - if (opts.enableOutboxModel) { - this.outboxPool = new NDKPool( - opts.outboxRelayUrls || DEFAULT_OUTBOX_RELAYS, - opts.blacklistRelayUrls || DEFAULT_BLACKLISTED_RELAYS, - this, - this.debug.extend("outbox-pool") - ); - this.outboxTracker = new OutboxTracker(this); - } - this.signer = opts.signer; - this.cacheAdapter = opts.cacheAdapter; - this.mutedIds = opts.mutedIds || /* @__PURE__ */ new Map(); - if (opts.devWriteRelayUrls) { - this.devWriteRelaySet = NDKRelaySet.fromRelayUrls(opts.devWriteRelayUrls, this); - } - } - toJSON() { - return { relayCount: this.pool.relays.size }.toString(); - } - get activeUser() { - return this._activeUser; - } - /** - * Sets the active user for this NDK instance, typically this will be - * called when assigning a signer to the NDK instance. - * - * This function will automatically connect to the user's relays if - * `autoConnectUserRelays` is set to true. - * - * It will also fetch the user's mutelist if `autoFetchUserMutelist` is set to true. - */ - set activeUser(user) { - const differentUser = this._activeUser !== user; - this._activeUser = user; - if (user && differentUser) { - const connectToUserRelays = async (user2) => { - const relayList = await user2.relayList(); - if (!relayList) { - this.debug("No relay list found for user", { npub: user2.npub }); - return; - } - this.debug("Connecting to user relays", { - npub: user2.npub, - relays: relayList.relays - }); - for (const url of relayList.relays) { - let relay = this.pool.relays.get(url); - if (!relay) { - relay = new NDKRelay(url); - this.pool.addRelay(relay); - } - } - }; - const fetchUserMuteList = async (user2) => { - const muteLists = await this.fetchEvents([ - { kinds: [1e4 /* MuteList */], authors: [user2.pubkey] }, - { - kinds: [3e4 /* FollowSet */], - authors: [user2.pubkey], - "#d": ["mute"], - limit: 1 - } - ]); - if (!muteLists) { - this.debug("No mute list found for user", { npub: user2.npub }); - return; - } - for (const muteList of muteLists) { - const list = lists_default.from(muteList); - for (const item of list.items) { - this.mutedIds.set(item[1], item[0]); - } - } - }; - const userFunctions = []; - if (this.autoConnectUserRelays) - userFunctions.push(connectToUserRelays); - if (this.autoFetchUserMutelist) - userFunctions.push(fetchUserMuteList); - const runUserFunctions = async (user2) => { - for (const fn of userFunctions) { - await fn(user2); - } - }; - const pool = this.outboxPool || this.pool; - if (pool.connectedRelays.length > 0) { - runUserFunctions(user); - } else { - this.debug("Waiting for connection to main relays"); - pool.once("relay:connect", (relay) => { - this.debug("New relay came online", relay); - runUserFunctions(user); - }); - } - } else if (!user) { - this.mutedIds = /* @__PURE__ */ new Map(); - } - } - get signer() { - return this._signer; - } - set signer(newSigner) { - this._signer = newSigner; - this.debug(`setting signer`, this.autoConnectUserRelays); - newSigner?.user().then((user) => { - user.ndk = this; - this.activeUser = user; - }); - } - /** - * Connect to relays with optional timeout. - * If the timeout is reached, the connection will be continued to be established in the background. - */ - async connect(timeoutMs) { - if (this._signer && this.autoConnectUserRelays) { - this.debug("Attempting to connect to user relays specified by signer"); - if (this._signer.relays) { - const relays = await this._signer.relays(); - relays.forEach((relay) => this.pool.addRelay(relay)); - } - } - const connections = [this.pool.connect(timeoutMs)]; - if (this.outboxPool) { - connections.push(this.outboxPool.connect(timeoutMs)); - } - this.debug("Connecting to relays", { timeoutMs }); - return Promise.allSettled(connections).then(() => { - }); - } - /** - * Get a NDKUser object - * - * @param opts - * @returns - */ - getUser(opts) { - const user = new NDKUser(opts); - user.ndk = this; - return user; - } - /** - * Create a new subscription. Subscriptions automatically start, you can make them automatically close when all relays send back an EOSE by setting `opts.closeOnEose` to `true`) - * - * @param filters - * @param opts - * @param relaySet explicit relay set to use - * @param autoStart automatically start the subscription - * @returns NDKSubscription - */ - subscribe(filters, opts, relaySet, autoStart = true) { - const subscription = new NDKSubscription(this, filters, opts, relaySet); - if (relaySet) { - for (const relay of relaySet.relays) { - this.pool.useTemporaryRelay(relay); - } - } - if (this.outboxPool && subscription.hasAuthorsFilter()) { - const authors = subscription.filters.filter((filter) => filter.authors && filter.authors?.length > 0).map((filter) => filter.authors).flat(); - this.outboxTracker?.trackUsers(authors); - } - if (autoStart) - subscription.start(); - return subscription; - } - /** - * Publish an event to a relay - * @param event event to publish - * @param relaySet explicit relay set to use - * @param timeoutMs timeout in milliseconds to wait for the event to be published - * @returns The relays the event was published to - * - * @deprecated Use `event.publish()` instead - */ - async publish(event, relaySet, timeoutMs) { - this.debug("Deprecated: Use `event.publish()` instead"); - return event.publish(relaySet, timeoutMs); - } - /** - * Fetch a single event. - * - * @param idOrFilter event id in bech32 format or filter - * @param opts subscription options - * @param relaySet explicit relay set to use - */ - async fetchEvent(idOrFilter, opts, relaySet) { - let filter; - if (!relaySet && typeof idOrFilter === "string") { - if (!isNip33AValue(idOrFilter)) { - const relays = relaysFromBech32(idOrFilter); - if (relays.length > 0) { - relaySet = new NDKRelaySet(new Set(relays), this); - relaySet = correctRelaySet(relaySet, this.pool); - } - } - } - if (typeof idOrFilter === "string") { - filter = filterFromId(idOrFilter); - } else { - filter = idOrFilter; - } - if (!filter) { - throw new Error(`Invalid filter: ${JSON.stringify(idOrFilter)}`); - } - return new Promise((resolve) => { - const s = this.subscribe( - filter, - { ...opts || {}, closeOnEose: true }, - relaySet, - false - ); - s.on("event", (event) => { - event.ndk = this; - resolve(event); - }); - s.on("eose", () => { - resolve(null); - }); - s.start(); - }); - } - /** - * Fetch events - */ - async fetchEvents(filters, opts, relaySet) { - return new Promise((resolve) => { - const events = /* @__PURE__ */ new Map(); - const relaySetSubscription = this.subscribe( - filters, - { ...opts || {}, closeOnEose: true }, - relaySet, - false - ); - const onEvent = (event) => { - const dedupKey = event.deduplicationKey(); - const existingEvent = events.get(dedupKey); - if (existingEvent) { - event = dedup(existingEvent, event); - } - event.ndk = this; - events.set(dedupKey, event); - }; - relaySetSubscription.on("event", onEvent); - relaySetSubscription.on("event:dup", onEvent); - relaySetSubscription.on("eose", () => { - resolve(new Set(events.values())); - }); - relaySetSubscription.start(); - }); - } - /** - * Ensures that a signer is available to sign an event. - */ - assertSigner() { - if (!this.signer) { - this.emit("signerRequired"); - throw new Error("Signer required"); - } - } -}; - -// src/zap/invoice.ts -var import_light_bolt11_decoder = require("light-bolt11-decoder"); -function zapInvoiceFromEvent(event) { - const description = event.getMatchingTags("description")[0]; - const bolt11 = event.getMatchingTags("bolt11")[0]; - let decodedInvoice; - let zapRequest; - if (!description || !bolt11 || !bolt11[1]) { - return null; - } - try { - let zapRequestPayload = description[1]; - if (zapRequestPayload.startsWith("%")) { - zapRequestPayload = decodeURIComponent(zapRequestPayload); - } - if (zapRequestPayload === "") { - return null; - } - zapRequest = JSON.parse(zapRequestPayload); - decodedInvoice = (0, import_light_bolt11_decoder.decode)(bolt11[1]); - } catch (e) { - return null; - } - const amountSection = decodedInvoice.sections.find((s) => s.name === "amount"); - if (!amountSection) { - return null; - } - const amount = parseInt(amountSection.value); - if (!amount) { - return null; - } - const content = zapRequest.content; - const sender = zapRequest.pubkey; - const recipientTag = event.getMatchingTags("p")[0]; - const recipient = recipientTag[1]; - let zappedEvent = event.getMatchingTags("e")[0]; - if (!zappedEvent) { - zappedEvent = event.getMatchingTags("a")[0]; - } - const zappedEventId = zappedEvent ? zappedEvent[1] : void 0; - const zapInvoice = { - id: event.id, - zapper: event.pubkey, - zappee: sender, - zapped: recipient, - zappedEvent: zappedEventId, - amount, - comment: content - }; - return zapInvoice; -} -// Annotate the CommonJS export names for ESM import in node: -0 && (module.exports = { - NDKAppHandlerEvent, - NDKArticle, - NDKDVMJobFeedback, - NDKDVMJobResult, - NDKDVMRequest, - NDKDvmJobFeedbackStatus, - NDKEvent, - NDKHighlight, - NDKKind, - NDKList, - NDKListKinds, - NDKNip07Signer, - NDKNip46Backend, - NDKNip46Signer, - NDKNostrRpc, - NDKPrivateKeySigner, - NDKRelay, - NDKRelayList, - NDKRelaySet, - NDKRelayStatus, - NDKRepost, - NDKSubscription, - NDKSubscriptionCacheUsage, - NDKTranscriptionDVM, - NDKUser, - calculateGroupableId, - defaultOpts, - mergeFilters, - profileFromEvent, - serializeProfile, - zapInvoiceFromEvent -}); diff --git a/node_modules/@nostr-dev-kit/ndk/dist/index.mjs b/node_modules/@nostr-dev-kit/ndk/dist/index.mjs deleted file mode 100644 index 69561c63..00000000 --- a/node_modules/@nostr-dev-kit/ndk/dist/index.mjs +++ /dev/null @@ -1,4758 +0,0 @@ -var __create = Object.create; -var __defProp = Object.defineProperty; -var __getOwnPropDesc = Object.getOwnPropertyDescriptor; -var __getOwnPropNames = Object.getOwnPropertyNames; -var __getProtoOf = Object.getPrototypeOf; -var __hasOwnProp = Object.prototype.hasOwnProperty; -var __commonJS = (cb, mod) => function __require() { - return mod || (0, cb[__getOwnPropNames(cb)[0]])((mod = { exports: {} }).exports, mod), mod.exports; -}; -var __copyProps = (to, from, except, desc) => { - if (from && typeof from === "object" || typeof from === "function") { - for (let key of __getOwnPropNames(from)) - if (!__hasOwnProp.call(to, key) && key !== except) - __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable }); - } - return to; -}; -var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps( - // If the importer is in node compatibility mode or this is not an ESM - // file that has been converted to a CommonJS file using a Babel- - // compatible transform (i.e. "__esModule" has not been set), then set - // "default" to the CommonJS "module.exports" for node compatibility. - isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, - mod -)); - -// ../node_modules/eventemitter3/index.js -var require_eventemitter3 = __commonJS({ - "../node_modules/eventemitter3/index.js"(exports, module) { - "use strict"; - var has = Object.prototype.hasOwnProperty; - var prefix = "~"; - function Events() { - } - if (Object.create) { - Events.prototype = /* @__PURE__ */ Object.create(null); - if (!new Events().__proto__) - prefix = false; - } - function EE(fn, context, once) { - this.fn = fn; - this.context = context; - this.once = once || false; - } - function addListener(emitter, event, fn, context, once) { - if (typeof fn !== "function") { - throw new TypeError("The listener must be a function"); - } - var listener = new EE(fn, context || emitter, once), evt = prefix ? prefix + event : event; - if (!emitter._events[evt]) - emitter._events[evt] = listener, emitter._eventsCount++; - else if (!emitter._events[evt].fn) - emitter._events[evt].push(listener); - else - emitter._events[evt] = [emitter._events[evt], listener]; - return emitter; - } - function clearEvent(emitter, evt) { - if (--emitter._eventsCount === 0) - emitter._events = new Events(); - else - delete emitter._events[evt]; - } - function EventEmitter11() { - this._events = new Events(); - this._eventsCount = 0; - } - EventEmitter11.prototype.eventNames = function eventNames() { - var names = [], events, name; - if (this._eventsCount === 0) - return names; - for (name in events = this._events) { - if (has.call(events, name)) - names.push(prefix ? name.slice(1) : name); - } - if (Object.getOwnPropertySymbols) { - return names.concat(Object.getOwnPropertySymbols(events)); - } - return names; - }; - EventEmitter11.prototype.listeners = function listeners(event) { - var evt = prefix ? prefix + event : event, handlers = this._events[evt]; - if (!handlers) - return []; - if (handlers.fn) - return [handlers.fn]; - for (var i = 0, l = handlers.length, ee = new Array(l); i < l; i++) { - ee[i] = handlers[i].fn; - } - return ee; - }; - EventEmitter11.prototype.listenerCount = function listenerCount(event) { - var evt = prefix ? prefix + event : event, listeners = this._events[evt]; - if (!listeners) - return 0; - if (listeners.fn) - return 1; - return listeners.length; - }; - EventEmitter11.prototype.emit = function emit(event, a1, a2, a3, a4, a5) { - var evt = prefix ? prefix + event : event; - if (!this._events[evt]) - return false; - var listeners = this._events[evt], len = arguments.length, args, i; - if (listeners.fn) { - if (listeners.once) - this.removeListener(event, listeners.fn, void 0, true); - switch (len) { - case 1: - return listeners.fn.call(listeners.context), true; - case 2: - return listeners.fn.call(listeners.context, a1), true; - case 3: - return listeners.fn.call(listeners.context, a1, a2), true; - case 4: - return listeners.fn.call(listeners.context, a1, a2, a3), true; - case 5: - return listeners.fn.call(listeners.context, a1, a2, a3, a4), true; - case 6: - return listeners.fn.call(listeners.context, a1, a2, a3, a4, a5), true; - } - for (i = 1, args = new Array(len - 1); i < len; i++) { - args[i - 1] = arguments[i]; - } - listeners.fn.apply(listeners.context, args); - } else { - var length = listeners.length, j; - for (i = 0; i < length; i++) { - if (listeners[i].once) - this.removeListener(event, listeners[i].fn, void 0, true); - switch (len) { - case 1: - listeners[i].fn.call(listeners[i].context); - break; - case 2: - listeners[i].fn.call(listeners[i].context, a1); - break; - case 3: - listeners[i].fn.call(listeners[i].context, a1, a2); - break; - case 4: - listeners[i].fn.call(listeners[i].context, a1, a2, a3); - break; - default: - if (!args) - for (j = 1, args = new Array(len - 1); j < len; j++) { - args[j - 1] = arguments[j]; - } - listeners[i].fn.apply(listeners[i].context, args); - } - } - } - return true; - }; - EventEmitter11.prototype.on = function on(event, fn, context) { - return addListener(this, event, fn, context, false); - }; - EventEmitter11.prototype.once = function once(event, fn, context) { - return addListener(this, event, fn, context, true); - }; - EventEmitter11.prototype.removeListener = function removeListener(event, fn, context, once) { - var evt = prefix ? prefix + event : event; - if (!this._events[evt]) - return this; - if (!fn) { - clearEvent(this, evt); - return this; - } - var listeners = this._events[evt]; - if (listeners.fn) { - if (listeners.fn === fn && (!once || listeners.once) && (!context || listeners.context === context)) { - clearEvent(this, evt); - } - } else { - for (var i = 0, events = [], length = listeners.length; i < length; i++) { - if (listeners[i].fn !== fn || once && !listeners[i].once || context && listeners[i].context !== context) { - events.push(listeners[i]); - } - } - if (events.length) - this._events[evt] = events.length === 1 ? events[0] : events; - else - clearEvent(this, evt); - } - return this; - }; - EventEmitter11.prototype.removeAllListeners = function removeAllListeners(event) { - var evt; - if (event) { - evt = prefix ? prefix + event : event; - if (this._events[evt]) - clearEvent(this, evt); - } else { - this._events = new Events(); - this._eventsCount = 0; - } - return this; - }; - EventEmitter11.prototype.off = EventEmitter11.prototype.removeListener; - EventEmitter11.prototype.addListener = EventEmitter11.prototype.on; - EventEmitter11.prefixed = prefix; - EventEmitter11.EventEmitter = EventEmitter11; - if ("undefined" !== typeof module) { - module.exports = EventEmitter11; - } - } -}); - -// src/user/index.ts -import { nip05, nip19 as nip194 } from "nostr-tools"; - -// src/events/index.ts -import { EventEmitter as EventEmitter4 } from "tseep"; -import { getEventHash } from "nostr-tools"; - -// src/relay/index.ts -import debug from "debug"; -import { EventEmitter as EventEmitter2 } from "tseep"; - -// src/relay/connectivity.ts -import { relayInit } from "nostr-tools"; -var NDKRelayConnectivity = class { - ndkRelay; - _status; - relay; - connectedAt; - _connectionStats = { - attempts: 0, - success: 0, - durations: [] - }; - debug; - constructor(ndkRelay) { - this.ndkRelay = ndkRelay; - this._status = 3 /* DISCONNECTED */; - this.relay = relayInit(this.ndkRelay.url); - this.debug = this.ndkRelay.debug.extend("connectivity"); - this.relay.on("notice", (notice) => this.handleNotice(notice)); - } - async connect() { - const connectHandler = () => { - this.updateConnectionStats.connected(); - this._status = 1 /* CONNECTED */; - this.ndkRelay.emit("connect"); - }; - const disconnectHandler = () => { - this.updateConnectionStats.disconnected(); - if (this._status === 1 /* CONNECTED */) { - this._status = 3 /* DISCONNECTED */; - this.handleReconnection(); - } - this.ndkRelay.emit("disconnect"); - }; - try { - this.updateConnectionStats.attempt(); - this._status = 0 /* CONNECTING */; - this.relay.off("connect", connectHandler); - this.relay.off("disconnect", disconnectHandler); - this.relay.on("connect", connectHandler); - this.relay.on("disconnect", disconnectHandler); - await this.relay.connect(); - } catch (e) { - this.debug("Failed to connect", e); - this._status = 3 /* DISCONNECTED */; - throw e; - } - } - disconnect() { - this._status = 2 /* DISCONNECTING */; - this.relay.close(); - } - get status() { - return this._status; - } - isAvailable() { - return this._status === 1 /* CONNECTED */; - } - /** - * Evaluates the connection stats to determine if the relay is flapping. - */ - isFlapping() { - const durations = this._connectionStats.durations; - if (durations.length % 3 !== 0) - return false; - const sum = durations.reduce((a, b) => a + b, 0); - const avg = sum / durations.length; - const variance = durations.map((x) => Math.pow(x - avg, 2)).reduce((a, b) => a + b, 0) / durations.length; - const stdDev = Math.sqrt(variance); - const isFlapping = stdDev < 1e3; - return isFlapping; - } - async handleNotice(notice) { - if (notice.includes("oo many") || notice.includes("aximum")) { - this.disconnect(); - setTimeout(() => this.connect(), 2e3); - this.debug(this.relay.url, "Relay complaining?", notice); - } - this.ndkRelay.emit("notice", this, notice); - } - /** - * Called when the relay is unexpectedly disconnected. - */ - handleReconnection(attempt = 0) { - if (this.isFlapping()) { - this.ndkRelay.emit("flapping", this, this._connectionStats); - this._status = 5 /* FLAPPING */; - return; - } - const reconnectDelay = this.connectedAt ? Math.max(0, 6e4 - (Date.now() - this.connectedAt)) : 0; - setTimeout(() => { - this._status = 4 /* RECONNECTING */; - this.connect().then(() => { - this.debug("Reconnected"); - }).catch((err) => { - this.debug("Reconnect failed", err); - if (attempt < 5) { - setTimeout(() => { - this.handleReconnection(attempt + 1); - }, 6e4); - } else { - this.debug("Reconnect failed after 5 attempts"); - } - }); - }, reconnectDelay); - } - /** - * Utility functions to update the connection stats. - */ - updateConnectionStats = { - connected: () => { - this._connectionStats.success++; - this._connectionStats.connectedAt = Date.now(); - }, - disconnected: () => { - if (this._connectionStats.connectedAt) { - this._connectionStats.durations.push( - Date.now() - this._connectionStats.connectedAt - ); - if (this._connectionStats.durations.length > 100) { - this._connectionStats.durations.shift(); - } - } - this._connectionStats.connectedAt = void 0; - }, - attempt: () => { - this._connectionStats.attempts++; - } - }; - /** - * Returns the connection stats. - */ - get connectionStats() { - return this._connectionStats; - } -}; - -// src/relay/publisher.ts -var NDKRelayPublisher = class { - ndkRelay; - constructor(ndkRelay) { - this.ndkRelay = ndkRelay; - } - /** - * Published an event to the relay; if the relay is not connected, it will - * wait for the relay to connect before publishing the event. - * - * If the relay does not connect within the timeout, the publish operation - * will fail. - * @param event The event to publish - * @param timeoutMs The timeout for the publish operation in milliseconds - * @returns A promise that resolves when the event has been published or rejects if the operation times out - */ - async publish(event, timeoutMs = 2500) { - const publishWhenConnected = () => { - return new Promise((resolve, reject) => { - try { - this.publishEvent(event, timeoutMs).then((result) => resolve(result)).catch((err) => reject(err)); - } catch (err) { - reject(err); - } - }); - }; - const timeoutPromise = new Promise((_, reject) => { - setTimeout(() => reject(new Error("Timeout")), timeoutMs); - }); - const onConnectHandler = () => { - publishWhenConnected().then((result) => connectResolve(result)).catch((err) => connectReject(err)); - }; - let connectResolve; - let connectReject; - if (this.ndkRelay.status === 1 /* CONNECTED */) { - return Promise.race([publishWhenConnected(), timeoutPromise]); - } else { - return Promise.race([ - new Promise((resolve, reject) => { - connectResolve = resolve; - connectReject = reject; - this.ndkRelay.once("connect", onConnectHandler); - }), - timeoutPromise - ]).finally(() => { - this.ndkRelay.removeListener("connect", onConnectHandler); - }); - } - } - async publishEvent(event, timeoutMs) { - const nostrEvent = await event.toNostrEvent(); - const publish = this.ndkRelay.connectivity.relay.publish(nostrEvent); - let publishTimeout; - const publishPromise = new Promise((resolve, reject) => { - publish.then(() => { - clearTimeout(publishTimeout); - this.ndkRelay.emit("published", event); - resolve(true); - }).catch((err) => { - clearTimeout(publishTimeout); - this.ndkRelay.debug("Publish failed", err, event.id); - this.ndkRelay.emit("publish:failed", event, err); - reject(err); - }); - }); - if (!timeoutMs || event.isEphemeral()) { - return publishPromise; - } - const timeoutPromise = new Promise((_, reject) => { - publishTimeout = setTimeout(() => { - this.ndkRelay.debug("Publish timed out", event.rawEvent()); - this.ndkRelay.emit("publish:failed", event, "Timeout"); - reject(new Error("Publish operation timed out")); - }, timeoutMs); - }); - return Promise.race([publishPromise, timeoutPromise]); - } -}; - -// src/relay/subscriptions.ts -import { EventEmitter } from "tseep"; -import { matchFilter } from "nostr-tools"; - -// src/subscription/grouping.ts -function calculateGroupableId(filters) { - const elements = []; - for (const filter of filters) { - const hasTimeConstraints = filter.since || filter.until; - if (hasTimeConstraints) - return null; - const keys = Object.keys(filter || {}).sort().join("-"); - elements.push(keys); - } - return elements.join("|"); -} -function mergeFilters(filters) { - const result = {}; - filters.forEach((filter) => { - Object.entries(filter).forEach(([key, value]) => { - if (Array.isArray(value)) { - if (result[key] === void 0) { - result[key] = [...value]; - } else { - result[key] = Array.from(/* @__PURE__ */ new Set([...result[key], ...value])); - } - } else { - result[key] = value; - } - }); - }); - return result; -} - -// src/subscription/utils.ts -import { nip19 } from "nostr-tools"; -function queryFullyFilled(subscription) { - if (filterIncludesIds(subscription.filter)) { - if (resultHasAllRequestedIds(subscription)) { - return true; - } - } - return false; -} -function compareFilter(filter1, filter2) { - if (Object.keys(filter1).length !== Object.keys(filter2).length) - return false; - for (const [key, value] of Object.entries(filter1)) { - const valuesInFilter2 = filter2[key]; - if (!valuesInFilter2) - return false; - if (Array.isArray(value) && Array.isArray(valuesInFilter2)) { - const v = value; - for (const valueInFilter2 of valuesInFilter2) { - const val = valueInFilter2; - if (!v.includes(val)) { - return false; - } - } - } else { - if (valuesInFilter2 !== value) - return false; - } - } - return true; -} -function filterIncludesIds(filter) { - return !!filter["ids"]; -} -function resultHasAllRequestedIds(subscription) { - const ids = subscription.filter["ids"]; - return !!ids && ids.length === subscription.eventFirstSeen.size; -} -function generateSubId(subscriptions, filters) { - const subIds = subscriptions.map((sub) => sub.subId).filter(Boolean); - const subIdParts = []; - const filterNonKindKeys = /* @__PURE__ */ new Set(); - const filterKinds = /* @__PURE__ */ new Set(); - if (subIds.length > 0) { - subIdParts.push(Array.from(new Set(subIds)).join(",")); - } else { - for (const filter of filters) { - for (const key of Object.keys(filter)) { - if (key === "kinds") { - filter.kinds?.forEach((k) => filterKinds.add(k)); - } else { - filterNonKindKeys.add(key); - } - } - } - if (filterKinds.size > 0) { - subIdParts.push("kinds:" + Array.from(filterKinds).join(",")); - } - if (filterNonKindKeys.size > 0) { - subIdParts.push(Array.from(filterNonKindKeys).join(",")); - } - } - if (subIds.length !== 1) { - subIdParts.push(Math.floor(Math.random() * 999).toString()); - } - return subIdParts.join("-"); -} -function filterFromId(id) { - let decoded; - if (id.match(NIP33_A_REGEX)) { - const [kind, pubkey, identifier] = id.split(":"); - const filter = { - authors: [pubkey], - kinds: [parseInt(kind)] - }; - if (identifier) { - filter["#d"] = [identifier]; - } - return filter; - } - try { - decoded = nip19.decode(id); - switch (decoded.type) { - case "nevent": - return { ids: [decoded.data.id] }; - case "note": - return { ids: [decoded.data] }; - case "naddr": - return { - authors: [decoded.data.pubkey], - "#d": [decoded.data.identifier], - kinds: [decoded.data.kind] - }; - } - } catch (e) { - } - return { ids: [id] }; -} -function isNip33AValue(value) { - return value.match(NIP33_A_REGEX) !== null; -} -var NIP33_A_REGEX = /^(\d+):([0-9A-Fa-f]+)(?::(.*))?$/; -function relaysFromBech32(bech322) { - try { - const decoded = nip19.decode(bech322); - if (["naddr", "nevent"].includes(decoded?.type)) { - const data = decoded.data; - if (data?.relays) { - return data.relays.map((r) => new NDKRelay(r)); - } - } - } catch (e) { - } - return []; -} - -// src/relay/subscriptions.ts -var NDKGroupedSubscriptions = class extends EventEmitter { - subscriptions; - req; - debug; - constructor(subscriptions, debug4) { - super(); - this.subscriptions = subscriptions; - this.debug = debug4 || this.subscriptions[0].subscription.debug.extend("grouped"); - for (const subscription of subscriptions) { - this.handleSubscriptionClosure(subscription); - } - } - /** - * Adds a subscription to this group. - * @param subscription - */ - addSubscription(subscription) { - this.subscriptions.push(subscription); - this.handleSubscriptionClosure(subscription); - } - eventReceived(event) { - for (const subscription of this.subscriptions) { - subscription.eventReceived(event); - } - } - eoseReceived(relay) { - const subscriptionsToInform = Array.from(this.subscriptions); - subscriptionsToInform.forEach(async (subscription) => { - subscription.subscription.eoseReceived(relay); - }); - } - handleSubscriptionClosure(subscription) { - subscription.subscription.on("close", () => { - const index = this.subscriptions.findIndex( - (i) => i.subscription === subscription.subscription - ); - this.subscriptions.splice(index, 1); - if (this.subscriptions.length <= 0) { - this.emit("close"); - } - }); - } - /** - * Maps each subscription through a transformation function. - * @param fn - The transformation function. - * @returns A new array with each subscription transformed by fn. - */ - map(fn) { - return this.subscriptions.map(fn); - } - [Symbol.iterator]() { - let index = 0; - const subscriptions = this.subscriptions; - return { - next() { - if (index < subscriptions.length) { - return { value: subscriptions[index++], done: false }; - } else { - return { value: null, done: true }; - } - } - }; - } -}; -var NDKSubscriptionFilters = class { - subscription; - filters = []; - ndkRelay; - constructor(subscription, filters, ndkRelay) { - this.subscription = subscription; - this.filters = filters; - this.ndkRelay = ndkRelay; - } - eventReceived(event) { - if (!this.eventMatchesLocalFilter(event)) - return; - this.subscription.eventReceived(event, this.ndkRelay, false); - } - eventMatchesLocalFilter(event) { - const rawEvent = event.rawEvent(); - return this.filters.some((filter) => matchFilter(filter, rawEvent)); - } -}; -function findMatchingActiveSubscriptions(activeSubscriptions, filters) { - if (activeSubscriptions.length !== filters.length) - return false; - for (let i = 0; i < activeSubscriptions.length; i++) { - if (!compareFilter(activeSubscriptions[i], filters[i])) { - break; - } - return activeSubscriptions[i]; - } - return void 0; -} -var NDKRelaySubscriptions = class { - ndkRelay; - delayedItems = /* @__PURE__ */ new Map(); - delayedTimers = /* @__PURE__ */ new Map(); - /** - * Active subscriptions this relay is connected to - */ - activeSubscriptions = /* @__PURE__ */ new Map(); - activeSubscriptionsByGroupId = /* @__PURE__ */ new Map(); - debug; - groupingDebug; - conn; - constructor(ndkRelay) { - this.ndkRelay = ndkRelay; - this.conn = ndkRelay.connectivity; - this.debug = ndkRelay.debug.extend("subscriptions"); - this.groupingDebug = ndkRelay.debug.extend("grouping"); - } - /** - * Creates or queues a subscription to the relay. - */ - subscribe(subscription, filters) { - const groupableId = calculateGroupableId(filters); - const subscriptionFilters = new NDKSubscriptionFilters( - subscription, - filters, - this.ndkRelay - ); - if (!groupableId || !subscription.isGroupable()) { - this.groupingDebug("No groupable ID for filters", filters); - this.executeSubscriptions( - groupableId, - // hacky - new NDKGroupedSubscriptions([subscriptionFilters]), - filters - ); - return; - } - const activeSubscriptions = this.activeSubscriptionsByGroupId.get(groupableId); - if (activeSubscriptions) { - const matchingSubscription = findMatchingActiveSubscriptions( - activeSubscriptions.filters, - filters - ); - if (matchingSubscription) { - const activeSubscription = this.activeSubscriptions.get(activeSubscriptions.sub); - activeSubscription?.addSubscription( - new NDKSubscriptionFilters(subscription, filters, this.ndkRelay) - ); - return; - } - } - let delayedItem = this.delayedItems.get(groupableId); - if (!delayedItem) { - delayedItem = new NDKGroupedSubscriptions([subscriptionFilters]); - this.delayedItems.set(groupableId, delayedItem); - delayedItem.once("close", () => { - const delayedItem2 = this.delayedItems.get(groupableId); - if (!delayedItem2) - return; - this.delayedItems.delete(groupableId); - }); - } else { - delayedItem.addSubscription(subscriptionFilters); - } - const timeout = setTimeout(() => { - this.executeGroup(groupableId, subscription); - }, subscription.opts.groupableDelay); - if (this.delayedTimers.has(groupableId)) { - this.delayedTimers.get(groupableId).push(timeout); - } else { - this.delayedTimers.set(groupableId, [timeout]); - } - } - /** - * Executes a delayed subscription via its groupable ID. - * @param groupableId - */ - executeGroup(groupableId, triggeredBy) { - const delayedItem = this.delayedItems.get(groupableId); - this.delayedItems.delete(groupableId); - const timeouts = this.delayedTimers.get(groupableId); - this.delayedTimers.delete(groupableId); - if (timeouts) { - for (const timeout of timeouts) { - clearTimeout(timeout); - } - } - if (delayedItem) { - const filterCount = delayedItem.subscriptions[0].filters.length; - const mergedFilters = []; - for (let i = 0; i < filterCount; i++) { - const allFiltersAtIndex = delayedItem.map((di) => di.filters[i]); - mergedFilters.push(mergeFilters(allFiltersAtIndex)); - } - this.executeSubscriptions(groupableId, delayedItem, mergedFilters); - } - } - /** - * Executes one or more subscriptions. - * - * If the relay is not connected, subscriptions will be queued - * until the relay connects. - * - * @param groupableId - * @param subscriptionFilters - * @param mergedFilters - */ - executeSubscriptions(groupableId, groupedSubscriptions, mergedFilters) { - if (this.conn.isAvailable()) { - this.executeSubscriptionsConnected(groupableId, groupedSubscriptions, mergedFilters); - } else { - const connectedListener = () => { - this.debug("new relay coming online for active subscription", { - relay: this.ndkRelay.url, - mergeFilters - }); - this.executeSubscriptionsConnected( - groupableId, - groupedSubscriptions, - mergedFilters - ); - }; - this.ndkRelay.once("connect", connectedListener); - groupedSubscriptions.once("close", () => { - this.ndkRelay.removeListener("connect", connectedListener); - }); - } - } - /** - * Executes one or more subscriptions. - * - * When there are more than one subscription, results - * will be sent to the right subscription - * - * @param subscriptions - * @param filters The filters as they should be sent to the relay - */ - executeSubscriptionsConnected(groupableId, groupedSubscriptions, mergedFilters) { - const subscriptions = []; - for (const { subscription } of groupedSubscriptions) { - subscriptions.push(subscription); - } - const subId = generateSubId(subscriptions, mergedFilters); - groupedSubscriptions.req = mergedFilters; - const sub = this.conn.relay.sub(mergedFilters, { id: subId }); - this.activeSubscriptions.set(sub, groupedSubscriptions); - if (groupableId) { - this.activeSubscriptionsByGroupId.set(groupableId, { filters: mergedFilters, sub }); - } - sub.on("event", (event) => { - const e = new NDKEvent(void 0, event); - e.relay = this.ndkRelay; - const subFilters = this.activeSubscriptions.get(sub); - subFilters?.eventReceived(e); - }); - sub.on("eose", () => { - const subFilters = this.activeSubscriptions.get(sub); - subFilters?.eoseReceived(this.ndkRelay); - }); - groupedSubscriptions.once("close", () => { - sub.unsub(); - this.activeSubscriptions.delete(sub); - if (groupableId) { - this.activeSubscriptionsByGroupId.delete(groupableId); - } - }); - return sub; - } - executedFilters() { - const ret = /* @__PURE__ */ new Map(); - for (const [, groupedSubscriptions] of this.activeSubscriptions) { - ret.set( - groupedSubscriptions.req, - groupedSubscriptions.map((sub) => sub.subscription) - ); - } - return ret; - } -}; - -// src/relay/index.ts -var NDKRelayStatus = /* @__PURE__ */ ((NDKRelayStatus2) => { - NDKRelayStatus2[NDKRelayStatus2["CONNECTING"] = 0] = "CONNECTING"; - NDKRelayStatus2[NDKRelayStatus2["CONNECTED"] = 1] = "CONNECTED"; - NDKRelayStatus2[NDKRelayStatus2["DISCONNECTING"] = 2] = "DISCONNECTING"; - NDKRelayStatus2[NDKRelayStatus2["DISCONNECTED"] = 3] = "DISCONNECTED"; - NDKRelayStatus2[NDKRelayStatus2["RECONNECTING"] = 4] = "RECONNECTING"; - NDKRelayStatus2[NDKRelayStatus2["FLAPPING"] = 5] = "FLAPPING"; - return NDKRelayStatus2; -})(NDKRelayStatus || {}); -var NDKRelay = class extends EventEmitter2 { - url; - scores; - connectivity; - subs; - publisher; - complaining = false; - debug; - constructor(url) { - super(); - this.url = url; - this.scores = /* @__PURE__ */ new Map(); - this.debug = debug(`ndk:relay:${url}`); - this.connectivity = new NDKRelayConnectivity(this); - this.subs = new NDKRelaySubscriptions(this); - this.publisher = new NDKRelayPublisher(this); - } - get status() { - return this.connectivity.status; - } - get connectionStats() { - return this.connectivity.connectionStats; - } - /** - * Connects to the relay. - */ - async connect() { - return this.connectivity.connect(); - } - /** - * Disconnects from the relay. - */ - disconnect() { - this.connectivity.disconnect(); - } - /** - * Queues or executes the subscription of a specific set of filters - * within this relay. - * - * @param subscription NDKSubscription this filters belong to. - * @param filters Filters to execute - */ - subscribe(subscription, filters) { - this.subs.subscribe(subscription, filters); - } - /** - * Publishes an event to the relay with an optional timeout. - * - * If the relay is not connected, the event will be published when the relay connects, - * unless the timeout is reached before the relay connects. - * - * @param event The event to publish - * @param timeoutMs The timeout for the publish operation in milliseconds - * @returns A promise that resolves when the event has been published or rejects if the operation times out - */ - async publish(event, timeoutMs = 2500) { - return this.publisher.publish(event, timeoutMs); - } - /** - * Called when this relay has responded with an event but - * wasn't the fastest one. - * @param timeDiffInMs The time difference in ms between the fastest and this relay in milliseconds - */ - // eslint-disable-next-line @typescript-eslint/no-unused-vars - scoreSlowerEvent(timeDiffInMs) { - } - /** @deprecated Use referenceTags instead. */ - tagReference(marker) { - const tag = ["r", this.url]; - if (marker) { - tag.push(marker); - } - return tag; - } - referenceTags() { - return [["r", this.url]]; - } - activeSubscriptions() { - return this.subs.executedFilters(); - } -}; - -// src/relay/sets/index.ts -var NDKRelaySet = class { - relays; - debug; - ndk; - constructor(relays, ndk) { - this.relays = relays; - this.ndk = ndk; - this.debug = ndk.debug.extend("relayset"); - } - /** - * Adds a relay to this set. - */ - addRelay(relay) { - this.relays.add(relay); - } - /** - * Creates a relay set from a list of relay URLs. - * - * If no connection to the relay is found in the pool it will temporarily - * connect to it. - * - * @param relayUrls - list of relay URLs to include in this set - * @param ndk - * @returns NDKRelaySet - */ - static fromRelayUrls(relayUrls, ndk) { - const relays = /* @__PURE__ */ new Set(); - for (const url of relayUrls) { - const relay = ndk.pool.relays.get(url); - if (relay) { - relays.add(relay); - } else { - const temporaryRelay = new NDKRelay(url); - ndk.pool.useTemporaryRelay(temporaryRelay); - relays.add(temporaryRelay); - } - } - return new NDKRelaySet(new Set(relays), ndk); - } - /** - * Publish an event to all relays in this set. Returns the number of relays that have received the event. - * @param event - * @param timeoutMs - timeout in milliseconds for each publish operation and connection operation - * @returns A set where the event was successfully published to - */ - async publish(event, timeoutMs) { - const publishedToRelays = /* @__PURE__ */ new Set(); - const isEphemeral2 = event.isEphemeral(); - const promises = Array.from(this.relays).map((relay) => { - return new Promise((resolve) => { - relay.publish(event, timeoutMs).then(() => { - publishedToRelays.add(relay); - resolve(); - }).catch((err) => { - if (!isEphemeral2) { - this.debug("error publishing to relay", { - relay: relay.url, - err - }); - } - resolve(); - }); - }); - }); - await Promise.all(promises); - if (publishedToRelays.size === 0) { - if (!isEphemeral2) { - throw new Error("No relay was able to receive the event"); - } - } - return publishedToRelays; - } - size() { - return this.relays.size; - } -}; - -// src/relay/sets/calculate.ts -function calculateRelaySetFromEvent(ndk, event) { - const relays = /* @__PURE__ */ new Set(); - ndk.pool?.relays.forEach((relay) => relays.add(relay)); - return new NDKRelaySet(relays, ndk); -} -function getWriteRelaysFor(ndk, author) { - if (!ndk.outboxTracker) - return void 0; - return ndk.outboxTracker.data.get(author)?.writeRelays; -} -function calculateRelaySetsFromFilter(ndk, filters) { - const result = /* @__PURE__ */ new Map(); - const authors = /* @__PURE__ */ new Set(); - filters.forEach((filter) => { - if (filter.authors) { - filter.authors.forEach((author) => authors.add(author)); - } - }); - if (authors.size > 0) { - const authorToRelaysMap = /* @__PURE__ */ new Map(); - for (const author of authors) { - const userWriteRelays = getWriteRelaysFor(ndk, author); - if (userWriteRelays && userWriteRelays.size > 0) { - ndk.debug(`Adding ${userWriteRelays.size} relays for ${author}`); - userWriteRelays.forEach((relay) => { - const authorsInRelay = authorToRelaysMap.get(relay) || []; - authorsInRelay.push(author); - authorToRelaysMap.set(relay, authorsInRelay); - }); - } else { - ndk.explicitRelayUrls?.forEach((relay) => { - const authorsInRelay = authorToRelaysMap.get(relay) || []; - authorsInRelay.push(author); - authorToRelaysMap.set(relay, authorsInRelay); - }); - } - } - for (const relayUrl of authorToRelaysMap.keys()) { - result.set(relayUrl, []); - } - for (const filter of filters) { - if (filter.authors) { - for (const [relayUrl, authors2] of authorToRelaysMap.entries()) { - result.set(relayUrl, [...result.get(relayUrl), { ...filter, authors: authors2 }]); - } - } else { - for (const relayUrl of authorToRelaysMap.keys()) { - result.set(relayUrl, [...result.get(relayUrl), filter]); - } - } - } - } else { - ndk.explicitRelayUrls?.forEach((relay) => { - result.set(relay, filters); - }); - } - return result; -} -function calculateRelaySetsFromFilters(ndk, filters) { - return calculateRelaySetsFromFilter(ndk, filters); -} - -// src/zap/index.ts -import { bech32 } from "@scure/base"; -import { EventEmitter as EventEmitter3 } from "tseep"; -import { nip57 } from "nostr-tools"; -var DEFAULT_RELAYS = [ - "wss://nos.lol", - "wss://relay.nostr.band", - "wss://relay.f7z.io", - "wss://relay.damus.io", - "wss://nostr.mom", - "wss://no.str.cr" -]; -var Zap = class extends EventEmitter3 { - ndk; - zappedEvent; - zappedUser; - constructor(args) { - super(); - this.ndk = args.ndk; - this.zappedEvent = args.zappedEvent; - this.zappedUser = args.zappedUser || this.ndk.getUser({ hexpubkey: this.zappedEvent?.pubkey }); - } - async getZapEndpoint() { - let lud06; - let lud16; - let zapEndpoint; - let zapEndpointCallback; - if (this.zappedUser) { - if (!this.zappedUser.profile) { - await this.zappedUser.fetchProfile(); - } - lud06 = (this.zappedUser.profile || {}).lud06; - lud16 = (this.zappedUser.profile || {}).lud16; - } - if (lud16 && !lud16.startsWith("LNURL")) { - const [name, domain] = lud16.split("@"); - zapEndpoint = `https://${domain}/.well-known/lnurlp/${name}`; - } else if (lud06) { - const { words } = bech32.decode(lud06, 1e3); - const data = bech32.fromWords(words); - const utf8Decoder = new TextDecoder("utf-8"); - zapEndpoint = utf8Decoder.decode(data); - } - if (!zapEndpoint) { - throw new Error("No zap endpoint found"); - } - const response = await fetch(zapEndpoint); - const body = await response.json(); - if (body?.allowsNostr && (body?.nostrPubkey || body?.nostrPubKey)) { - zapEndpointCallback = body.callback; - } - return zapEndpointCallback; - } - /** - * Generates a kind:9734 zap request and returns the payment request - * @param amount amount to zap in millisatoshis - * @param comment optional comment to include in the zap request - * @param extraTags optional extra tags to include in the zap request - * @param relays optional relays to ask zapper to publish the zap to - * @returns the payment request - */ - async createZapRequest(amount, comment, extraTags, relays, signer) { - const zapEndpoint = await this.getZapEndpoint(); - if (!zapEndpoint) { - throw new Error("No zap endpoint found"); - } - if (!this.zappedEvent && !this.zappedUser) - throw new Error("No zapped event or user found"); - const zapRequest = nip57.makeZapRequest({ - profile: this.zappedUser.hexpubkey, - // set the event to null since nostr-tools doesn't support nip-33 zaps - event: null, - amount, - comment: comment || "", - relays: relays ?? this.relays() - }); - if (this.zappedEvent) { - const tags = this.zappedEvent.referenceTags(); - zapRequest.tags.push(...tags); - } - zapRequest.tags.push(["lnurl", zapEndpoint]); - const zapRequestEvent = new NDKEvent(this.ndk, zapRequest); - if (extraTags) { - zapRequestEvent.tags = zapRequestEvent.tags.concat(extraTags); - } - await zapRequestEvent.sign(signer); - const zapRequestNostrEvent = await zapRequestEvent.toNostrEvent(); - const response = await fetch( - `${zapEndpoint}?` + new URLSearchParams({ - amount: amount.toString(), - nostr: JSON.stringify(zapRequestNostrEvent) - }) - ); - const body = await response.json(); - return body.pr; - } - /** - * @returns the relays to use for the zap request - */ - relays() { - let r = []; - if (this.ndk?.pool?.relays) { - r = this.ndk.pool.urls(); - } - if (!r.length) { - r = DEFAULT_RELAYS; - } - return r; - } -}; - -// src/events/content-tagger.ts -import { nip19 as nip192 } from "nostr-tools"; -function mergeTags(tags1, tags2) { - const tagMap = /* @__PURE__ */ new Map(); - const generateKey = (tag) => tag.join(","); - const isContained = (smaller, larger) => { - return smaller.every((value, index) => value === larger[index]); - }; - const processTag = (tag) => { - for (let [key, existingTag] of tagMap) { - if (isContained(existingTag, tag) || isContained(tag, existingTag)) { - if (tag.length >= existingTag.length) { - tagMap.set(key, tag); - } - return; - } - } - tagMap.set(generateKey(tag), tag); - }; - tags1.concat(tags2).forEach(processTag); - return Array.from(tagMap.values()); -} -async function generateContentTags(content, tags = []) { - const tagRegex = /(@|nostr:)(npub|nprofile|note|nevent|naddr)[a-zA-Z0-9]+/g; - const hashtagRegex = /#(\w+)/g; - let promises = []; - const addTagIfNew = (t) => { - if (!tags.find((t2) => t2[0] === t[0] && t2[1] === t[1])) { - tags.push(t); - } - }; - content = content.replace(tagRegex, (tag) => { - try { - const entity = tag.split(/(@|nostr:)/)[2]; - const { type, data } = nip192.decode(entity); - let t; - switch (type) { - case "npub": - t = ["p", data]; - break; - case "nprofile": - t = ["p", data.pubkey]; - break; - case "note": - promises.push( - new Promise(async (resolve) => { - addTagIfNew([ - "e", - data, - await maybeGetEventRelayUrl(entity), - "mention" - ]); - resolve(); - }) - ); - break; - case "nevent": - promises.push( - new Promise(async (resolve) => { - let { id, relays, author } = data; - if (!relays || relays.length === 0) { - relays = [await maybeGetEventRelayUrl(entity)]; - } - addTagIfNew(["e", id, relays[0], "mention"]); - if (author) - addTagIfNew(["p", author]); - resolve(); - }) - ); - break; - case "naddr": - promises.push( - new Promise(async (resolve) => { - const id = [data.kind, data.pubkey, data.identifier].join(":"); - let relays = data.relays ?? []; - if (relays.length === 0) { - relays = [await maybeGetEventRelayUrl(entity)]; - } - addTagIfNew(["a", id, relays[0], "mention"]); - addTagIfNew(["p", data.pubkey]); - resolve(); - }) - ); - break; - default: - return tag; - } - if (t) - addTagIfNew(t); - return `nostr:${entity}`; - } catch (error) { - return tag; - } - }); - await Promise.all(promises); - content = content.replace(hashtagRegex, (tag, word) => { - const t = ["t", word]; - if (!tags.find((t2) => t2[0] === t[0] && t2[1] === t[1])) { - tags.push(t); - } - return tag; - }); - return { content, tags }; -} -async function maybeGetEventRelayUrl(nip19Id) { - return ""; -} - -// src/events/kind.ts -function isReplaceable() { - if (this.kind === void 0) - throw new Error("Kind not set"); - return this.kind >= 1e4 && this.kind < 2e4; -} -function isEphemeral() { - if (this.kind === void 0) - throw new Error("Kind not set"); - return this.kind >= 2e4 && this.kind < 3e4; -} -function isParamReplaceable() { - if (this.kind === void 0) - throw new Error("Kind not set"); - return this.kind >= 3e4 && this.kind < 4e4; -} - -// src/events/kinds/index.ts -var NDKKind = /* @__PURE__ */ ((NDKKind2) => { - NDKKind2[NDKKind2["Metadata"] = 0] = "Metadata"; - NDKKind2[NDKKind2["Text"] = 1] = "Text"; - NDKKind2[NDKKind2["RecommendRelay"] = 2] = "RecommendRelay"; - NDKKind2[NDKKind2["Contacts"] = 3] = "Contacts"; - NDKKind2[NDKKind2["EncryptedDirectMessage"] = 4] = "EncryptedDirectMessage"; - NDKKind2[NDKKind2["EventDeletion"] = 5] = "EventDeletion"; - NDKKind2[NDKKind2["Repost"] = 6] = "Repost"; - NDKKind2[NDKKind2["Reaction"] = 7] = "Reaction"; - NDKKind2[NDKKind2["BadgeAward"] = 8] = "BadgeAward"; - NDKKind2[NDKKind2["GroupNote"] = 9] = "GroupNote"; - NDKKind2[NDKKind2["GroupChat"] = 11] = "GroupChat"; - NDKKind2[NDKKind2["GenericRepost"] = 16] = "GenericRepost"; - NDKKind2[NDKKind2["ChannelCreation"] = 40] = "ChannelCreation"; - NDKKind2[NDKKind2["ChannelMetadata"] = 41] = "ChannelMetadata"; - NDKKind2[NDKKind2["ChannelMessage"] = 42] = "ChannelMessage"; - NDKKind2[NDKKind2["ChannelHideMessage"] = 43] = "ChannelHideMessage"; - NDKKind2[NDKKind2["ChannelMuteUser"] = 44] = "ChannelMuteUser"; - NDKKind2[NDKKind2["Report"] = 1984] = "Report"; - NDKKind2[NDKKind2["Label"] = 1985] = "Label"; - NDKKind2[NDKKind2["DVMReqTextExtraction"] = 5e3] = "DVMReqTextExtraction"; - NDKKind2[NDKKind2["DVMReqTextSummarization"] = 5001] = "DVMReqTextSummarization"; - NDKKind2[NDKKind2["DVMReqTextTranslation"] = 5002] = "DVMReqTextTranslation"; - NDKKind2[NDKKind2["DVMReqTextGeneration"] = 5050] = "DVMReqTextGeneration"; - NDKKind2[NDKKind2["DVMReqImageGeneration"] = 5100] = "DVMReqImageGeneration"; - NDKKind2[NDKKind2["DVMReqDiscoveryNostrContent"] = 5300] = "DVMReqDiscoveryNostrContent"; - NDKKind2[NDKKind2["DVMReqDiscoveryNostrPeople"] = 5301] = "DVMReqDiscoveryNostrPeople"; - NDKKind2[NDKKind2["DVMReqTimestamping"] = 5900] = "DVMReqTimestamping"; - NDKKind2[NDKKind2["DVMJobFeedback"] = 7e3] = "DVMJobFeedback"; - NDKKind2[NDKKind2["MuteList"] = 1e4] = "MuteList"; - NDKKind2[NDKKind2["PinList"] = 10001] = "PinList"; - NDKKind2[NDKKind2["RelayList"] = 10002] = "RelayList"; - NDKKind2[NDKKind2["BookmarkList"] = 10003] = "BookmarkList"; - NDKKind2[NDKKind2["CommunityList"] = 10004] = "CommunityList"; - NDKKind2[NDKKind2["PublicChatList"] = 10005] = "PublicChatList"; - NDKKind2[NDKKind2["BlockRelayList"] = 10006] = "BlockRelayList"; - NDKKind2[NDKKind2["SearchRelayList"] = 10007] = "SearchRelayList"; - NDKKind2[NDKKind2["InterestList"] = 10015] = "InterestList"; - NDKKind2[NDKKind2["EmojiList"] = 10030] = "EmojiList"; - NDKKind2[NDKKind2["FollowSet"] = 3e4] = "FollowSet"; - NDKKind2[NDKKind2["CategorizedPeopleList"] = 3e4 /* FollowSet */] = "CategorizedPeopleList"; - NDKKind2[NDKKind2["CategorizedBookmarkList"] = 30001] = "CategorizedBookmarkList"; - NDKKind2[NDKKind2["RelaySet"] = 30002] = "RelaySet"; - NDKKind2[NDKKind2["CategorizedRelayList"] = 30002 /* RelaySet */] = "CategorizedRelayList"; - NDKKind2[NDKKind2["BookmarkSet"] = 30003] = "BookmarkSet"; - NDKKind2[NDKKind2["CurationSet"] = 30004] = "CurationSet"; - NDKKind2[NDKKind2["InterestSet"] = 30015] = "InterestSet"; - NDKKind2[NDKKind2["InterestsList"] = 30015 /* InterestSet */] = "InterestsList"; - NDKKind2[NDKKind2["EmojiSet"] = 30030] = "EmojiSet"; - NDKKind2[NDKKind2["HighlightSet"] = 39802] = "HighlightSet"; - NDKKind2[NDKKind2["CategorizedHighlightList"] = 39802 /* HighlightSet */] = "CategorizedHighlightList"; - NDKKind2[NDKKind2["ZapRequest"] = 9734] = "ZapRequest"; - NDKKind2[NDKKind2["Zap"] = 9735] = "Zap"; - NDKKind2[NDKKind2["Highlight"] = 9802] = "Highlight"; - NDKKind2[NDKKind2["ClientAuth"] = 22242] = "ClientAuth"; - NDKKind2[NDKKind2["NostrConnect"] = 24133] = "NostrConnect"; - NDKKind2[NDKKind2["ProfileBadge"] = 30008] = "ProfileBadge"; - NDKKind2[NDKKind2["BadgeDefinition"] = 30009] = "BadgeDefinition"; - NDKKind2[NDKKind2["MarketStall"] = 30017] = "MarketStall"; - NDKKind2[NDKKind2["MarketProduct"] = 30018] = "MarketProduct"; - NDKKind2[NDKKind2["Article"] = 30023] = "Article"; - NDKKind2[NDKKind2["AppSpecificData"] = 30078] = "AppSpecificData"; - NDKKind2[NDKKind2["Classified"] = 30402] = "Classified"; - NDKKind2[NDKKind2["AppRecommendation"] = 31989] = "AppRecommendation"; - NDKKind2[NDKKind2["AppHandler"] = 31990] = "AppHandler"; - return NDKKind2; -})(NDKKind || {}); -var NDKListKinds = [ - 1e4 /* MuteList */, - 10001 /* PinList */, - 10002 /* RelayList */, - 10003 /* BookmarkList */, - 10004 /* CommunityList */, - 10005 /* PublicChatList */, - 10006 /* BlockRelayList */, - 10007 /* SearchRelayList */, - 10015 /* InterestList */, - 10030 /* EmojiList */, - 3e4 /* FollowSet */, - 30003 /* BookmarkSet */, - 30001 /* CategorizedBookmarkList */, - // Backwards compatibility - 30002 /* RelaySet */, - 30004 /* CurationSet */, - 30015 /* InterestSet */, - 30030 /* EmojiSet */, - 39802 /* HighlightSet */ -]; - -// src/events/nip04.ts -async function encrypt(recipient, signer) { - if (!this.ndk) - throw new Error("No NDK instance found!"); - if (!signer) { - await this.ndk.assertSigner(); - signer = this.ndk.signer; - } - if (!recipient) { - const pTags = this.getMatchingTags("p"); - if (pTags.length !== 1) { - throw new Error( - "No recipient could be determined and no explicit recipient was provided" - ); - } - recipient = this.ndk.getUser({ hexpubkey: pTags[0][1] }); - } - this.content = await signer?.encrypt(recipient, this.content); -} -async function decrypt(sender, signer) { - if (!this.ndk) - throw new Error("No NDK instance found!"); - if (!signer) { - await this.ndk.assertSigner(); - signer = this.ndk.signer; - } - if (!sender) { - sender = this.author; - } - this.content = await signer?.decrypt(sender, this.content); -} - -// src/events/nip19.ts -import { nip19 as nip193 } from "nostr-tools"; -function encode() { - if (this.isParamReplaceable()) { - return nip193.naddrEncode({ - kind: this.kind, - pubkey: this.pubkey, - identifier: this.replaceableDTag(), - relays: this.relay ? [this.relay.url] : [] - }); - } else if (this.relay) { - return nip193.neventEncode({ - id: this.tagId(), - relays: [this.relay.url], - author: this.pubkey - }); - } else { - return nip193.noteEncode(this.tagId()); - } -} - -// src/events/repost.ts -async function repost(publish = true, signer) { - if (!signer && publish) { - if (!this.ndk) - throw new Error("No NDK instance found"); - this.ndk.assertSigner(); - signer = this.ndk.signer; - } - const e = new NDKEvent(this.ndk, { - kind: getKind(this), - content: "" - }); - e.tag(this); - if (e.kind === 16 /* GenericRepost */) { - e.tags.push(["k", `${this.kind}`]); - } - if (signer) - await e.sign(signer); - if (publish) - await e.publish(); - return e; -} -function getKind(event) { - if (event.kind === 1) { - return 6 /* Repost */; - } - return 16 /* GenericRepost */; -} - -// src/events/index.ts -var NDKEvent = class extends EventEmitter4 { - ndk; - created_at; - content = ""; - tags = []; - kind; - id = ""; - sig; - pubkey = ""; - _author = void 0; - /** - * The relay that this event was first received from. - */ - relay; - constructor(ndk, event) { - super(); - this.ndk = ndk; - this.created_at = event?.created_at; - this.content = event?.content || ""; - this.tags = event?.tags || []; - this.id = event?.id || ""; - this.sig = event?.sig; - this.pubkey = event?.pubkey || ""; - this.kind = event?.kind; - } - /** - * Returns the event as is. - */ - rawEvent() { - return { - created_at: this.created_at, - content: this.content, - tags: this.tags, - kind: this.kind, - pubkey: this.pubkey, - id: this.id, - sig: this.sig - }; - } - set author(user) { - this.pubkey = user.hexpubkey; - this._author = void 0; - } - /** - * Returns an NDKUser for the author of the event. - */ - get author() { - if (this._author) - return this._author; - if (!this.ndk) - throw new Error("No NDK instance found"); - const user = this.ndk.getUser({ hexpubkey: this.pubkey }); - this._author = user; - return user; - } - tag(userOrEvent, marker) { - const skipAuthorTag = userOrEvent?.pubkey === this.pubkey; - const tags = userOrEvent.referenceTags(marker, skipAuthorTag); - this.tags = mergeTags(this.tags, tags); - if (userOrEvent instanceof NDKEvent) { - for (const pTag of userOrEvent.getMatchingTags("p")) { - if (pTag[1] === this.pubkey) - continue; - if (this.tags.find((t) => t[0] === "p" && t[1] === pTag[1])) - continue; - this.tags.push(["p", pTag[1]]); - } - } - } - /** - * Return a NostrEvent object, trying to fill in missing fields - * when possible, adding tags when necessary. - * @param pubkey {string} The pubkey of the user who the event belongs to. - * @returns {Promise} A promise that resolves to a NostrEvent. - */ - async toNostrEvent(pubkey) { - if (!pubkey && this.pubkey === "") { - const user = await this.ndk?.signer?.user(); - this.pubkey = user?.hexpubkey || ""; - } - if (!this.created_at) - this.created_at = Math.floor(Date.now() / 1e3); - const nostrEvent = this.rawEvent(); - const { content, tags } = await this.generateTags(); - nostrEvent.content = content || ""; - nostrEvent.tags = tags; - try { - this.id = getEventHash(nostrEvent); - } catch (e) { - } - if (this.id) - nostrEvent.id = this.id; - if (this.sig) - nostrEvent.sig = this.sig; - return nostrEvent; - } - isReplaceable = isReplaceable.bind(this); - isEphemeral = isEphemeral.bind(this); - isParamReplaceable = isParamReplaceable.bind(this); - /** - * Encodes a bech32 id. - * - * @returns {string} - Encoded naddr, note or nevent. - */ - encode = encode.bind(this); - encrypt = encrypt.bind(this); - decrypt = decrypt.bind(this); - /** - * Get all tags with the given name - * @param tagName {string} The name of the tag to search for - * @returns {NDKTag[]} An array of the matching tags - */ - getMatchingTags(tagName) { - return this.tags.filter((tag) => tag[0] === tagName); - } - /** - * Get the first tag with the given name - * @param tagName Tag name to search for - * @returns The value of the first tag with the given name, or undefined if no such tag exists - */ - tagValue(tagName) { - const tags = this.getMatchingTags(tagName); - if (tags.length === 0) - return void 0; - return tags[0][1]; - } - /** - * Remove all tags with the given name (e.g. "d", "a", "p") - * @param tagName Tag name to search for and remove - * @returns {void} - */ - removeTag(tagName) { - this.tags = this.tags.filter((tag) => tag[0] !== tagName); - } - /** - * Sign the event if a signer is present. - * - * It will generate tags. - * Repleacable events will have their created_at field set to the current time. - * @param signer {NDKSigner} The NDKSigner to use to sign the event - * @returns {Promise} A Promise that resolves to the signature of the signed event. - */ - async sign(signer) { - if (!signer) { - this.ndk?.assertSigner(); - signer = this.ndk.signer; - } else { - this.author = await signer.user(); - } - await this.generateTags(); - if (this.isReplaceable()) { - this.created_at = Math.floor(Date.now() / 1e3); - } - const nostrEvent = await this.toNostrEvent(); - this.sig = await signer.sign(nostrEvent); - return this.sig; - } - /** - * Attempt to sign and then publish an NDKEvent to a given relaySet. - * If no relaySet is provided, the relaySet will be calculated by NDK. - * @param relaySet {NDKRelaySet} The relaySet to publish the even to. - * @returns A promise that resolves to the relays the event was published to. - */ - async publish(relaySet, timeoutMs) { - if (!this.sig) - await this.sign(); - if (!this.ndk) - throw new Error("NDKEvent must be associated with an NDK instance to publish"); - if (!relaySet) { - relaySet = this.ndk.devWriteRelaySet || calculateRelaySetFromEvent(this.ndk, this); - } - return relaySet.publish(this, timeoutMs); - } - /** - * Generates tags for users, notes, and other events tagged in content. - * Will also generate random "d" tag for parameterized replaceable events where needed. - * @returns {ContentTag} The tags and content of the event. - */ - async generateTags() { - let tags = []; - const g = await generateContentTags(this.content, this.tags); - const content = g.content; - tags = g.tags; - if (this.kind && this.isParamReplaceable()) { - const dTag = this.getMatchingTags("d")[0]; - if (!dTag) { - const str = [...Array(16)].map(() => Math.random().toString(36)[2]).join(""); - tags.push(["d", str]); - } - } - if (this.ndk?.client && !this.tagValue("client")) { - tags.push(["client", this.ndk.client]); - } - return { content: content || "", tags }; - } - muted() { - const authorMutedEntry = this.ndk?.mutedIds.get(this.pubkey); - if (authorMutedEntry && authorMutedEntry === "p") - return "author"; - const eventTagReference = this.tagReference(); - const eventMutedEntry = this.ndk?.mutedIds.get(eventTagReference[1]); - if (eventMutedEntry && eventMutedEntry === eventTagReference[0]) - return "event"; - return null; - } - /** - * Returns the "d" tag of a parameterized replaceable event or throws an error if the event isn't - * a parameterized replaceable event. - * @returns {string} the "d" tag of the event. - */ - replaceableDTag() { - if (this.kind && this.kind >= 3e4 && this.kind <= 4e4) { - const dTag = this.getMatchingTags("d")[0]; - const dTagId = dTag ? dTag[1] : ""; - return dTagId; - } - throw new Error("Event is not a parameterized replaceable event"); - } - /** - * Provides a deduplication key for the event. - * - * For kinds 0, 3, 10k-20k this will be the event : - * For kinds 30k-40k this will be the event :: - * For all other kinds this will be the event id - */ - deduplicationKey() { - if (this.kind === 0 || this.kind === 3 || this.kind && this.kind >= 1e4 && this.kind < 2e4) { - return `${this.kind}:${this.pubkey}`; - } else { - return this.tagId(); - } - } - /** - * Returns the id of the event or, if it's a parameterized event, the generated id of the event using "d" tag, pubkey, and kind. - * @returns {string} The id - */ - tagId() { - if (this.isParamReplaceable()) { - return this.tagAddress(); - } - return this.id; - } - /** - * Returns the "reference" value ("::") for this replaceable event. - * @returns {string} The id - */ - tagAddress() { - if (!this.isParamReplaceable()) { - throw new Error("This must only be called on replaceable events"); - } - const dTagId = this.replaceableDTag(); - return `${this.kind}:${this.pubkey}:${dTagId}`; - } - /** - * Get the tag that can be used to reference this event from another event. - * - * Consider using referenceTags() instead (unless you have a good reason to use this) - * - * @example - * event = new NDKEvent(ndk, { kind: 30000, pubkey: 'pubkey', tags: [ ["d", "d-code"] ] }); - * event.tagReference(); // ["a", "30000:pubkey:d-code"] - * - * event = new NDKEvent(ndk, { kind: 1, pubkey: 'pubkey', id: "eventid" }); - * event.tagReference(); // ["e", "eventid"] - * @returns {NDKTag} The NDKTag object referencing this event - */ - tagReference(marker) { - let tag; - if (this.isParamReplaceable()) { - tag = ["a", this.tagAddress()]; - } else { - tag = ["e", this.tagId()]; - } - if (this.relay) { - tag.push(this.relay.url); - } else { - tag.push(""); - } - if (marker) { - tag.push(marker); - } - return tag; - } - /** - * Get the tags that can be used to reference this event from another event - * @param marker The marker to use in the tag - * @example - * event = new NDKEvent(ndk, { kind: 30000, pubkey: 'pubkey', tags: [ ["d", "d-code"] ] }); - * event.referenceTags(); // [["a", "30000:pubkey:d-code"], ["e", "parent-id"]] - * - * event = new NDKEvent(ndk, { kind: 1, pubkey: 'pubkey', id: "eventid" }); - * event.referenceTags(); // [["e", "parent-id"]] - * @returns {NDKTag} The NDKTag object referencing this event - */ - referenceTags(marker, skipAuthorTag) { - let tags = []; - if (this.isParamReplaceable()) { - tags = [ - ["a", this.tagAddress()], - ["e", this.id] - ]; - } else { - tags = [["e", this.id]]; - } - if (this.relay?.url) { - tags = tags.map((tag) => { - tag.push(this.relay?.url); - return tag; - }); - } else if (marker) { - tags = tags.map((tag) => { - tag.push(""); - return tag; - }); - } - if (marker) { - tags.forEach((tag) => tag.push(marker)); - } - if (!skipAuthorTag) - tags.push(...this.author.referenceTags()); - return tags; - } - /** - * Provides the filter that will return matching events for this event. - * - * @example - * event = new NDKEvent(ndk, { kind: 30000, pubkey: 'pubkey', tags: [ ["d", "d-code"] ] }); - * event.filter(); // { "#a": ["30000:pubkey:d-code"] } - * @example - * event = new NDKEvent(ndk, { kind: 1, pubkey: 'pubkey', id: "eventid" }); - * event.filter(); // { "#e": ["eventid"] } - * - * @returns The filter that will return matching events for this event - */ - filter() { - if (this.isParamReplaceable()) { - return { "#a": [this.tagId()] }; - } else { - return { "#e": [this.tagId()] }; - } - } - /** - * Create a zap request for an existing event - * - * @param amount The amount to zap in millisatoshis - * @param comment A comment to add to the zap request - * @param extraTags Extra tags to add to the zap request - * @param recipient The zap recipient (optional for events) - * @param signer The signer to use (will default to the NDK instance's signer) - */ - async zap(amount, comment, extraTags, recipient, signer) { - if (!this.ndk) - throw new Error("No NDK instance found"); - if (!signer) { - this.ndk.assertSigner(); - } - const zap = new Zap({ - ndk: this.ndk, - zappedEvent: this, - zappedUser: recipient - }); - const relays = Array.from(this.ndk.pool.relays.keys()); - const paymentRequest = await zap.createZapRequest( - amount, - comment, - extraTags, - relays, - signer - ); - return paymentRequest; - } - /** - * Generates a deletion event of the current event - * - * @param reason The reason for the deletion - * @returns The deletion event - */ - async delete(reason) { - if (!this.ndk) - throw new Error("No NDK instance found"); - this.ndk.assertSigner(); - const e = new NDKEvent(this.ndk, { - kind: 5 /* EventDeletion */, - content: reason || "" - }); - e.tag(this); - await e.publish(); - return e; - } - /** - * NIP-18 reposting event. - * - * @param publish Whether to publish the reposted event automatically - * @param signer The signer to use for signing the reposted event - * @returns The reposted event - * - * @function - */ - repost = repost.bind(this); - /** - * React to an existing event - * - * @param content The content of the reaction - */ - async react(content) { - if (!this.ndk) - throw new Error("No NDK instance found"); - this.ndk.assertSigner(); - const e = new NDKEvent(this.ndk, { - kind: 7 /* Reaction */, - content - }); - e.tag(this); - await e.publish(); - return e; - } -}; - -// src/events/kinds/NDKRelayList.ts -var READ_MARKER = "read"; -var WRITE_MARKER = "write"; -var NDKRelayList = class extends NDKEvent { - constructor(ndk, rawEvent) { - super(ndk, rawEvent); - this.kind ??= 10002 /* RelayList */; - } - static from(ndkEvent) { - return new NDKRelayList(ndkEvent.ndk, ndkEvent.rawEvent()); - } - get readRelayUrls() { - return this.getMatchingTags("r").filter((tag) => !tag[2] || tag[2] && tag[2] === READ_MARKER).map((tag) => tag[1]); - } - set readRelayUrls(relays) { - for (const relay of relays) { - this.tags.push(["r", relay, READ_MARKER]); - } - } - get writeRelayUrls() { - return this.getMatchingTags("r").filter((tag) => !tag[2] || tag[2] && tag[2] === WRITE_MARKER).map((tag) => tag[1]); - } - set writeRelayUrls(relays) { - for (const relay of relays) { - this.tags.push(["r", relay, WRITE_MARKER]); - } - } - get bothRelayUrls() { - return this.getMatchingTags("r").filter((tag) => !tag[2]).map((tag) => tag[1]); - } - set bothRelayUrls(relays) { - for (const relay of relays) { - this.tags.push(["r", relay]); - } - } - get relays() { - return this.getMatchingTags("r").map((tag) => tag[1]); - } -}; - -// src/subscription/index.ts -import { EventEmitter as EventEmitter5 } from "tseep"; -var NDKSubscriptionCacheUsage = /* @__PURE__ */ ((NDKSubscriptionCacheUsage2) => { - NDKSubscriptionCacheUsage2["ONLY_CACHE"] = "ONLY_CACHE"; - NDKSubscriptionCacheUsage2["CACHE_FIRST"] = "CACHE_FIRST"; - NDKSubscriptionCacheUsage2["PARALLEL"] = "PARALLEL"; - NDKSubscriptionCacheUsage2["ONLY_RELAY"] = "ONLY_RELAY"; - return NDKSubscriptionCacheUsage2; -})(NDKSubscriptionCacheUsage || {}); -var defaultOpts = { - closeOnEose: false, - cacheUsage: "CACHE_FIRST" /* CACHE_FIRST */, - groupable: true, - groupableDelay: 100 -}; -var NDKSubscription = class extends EventEmitter5 { - subId; - filters; - opts; - pool; - /** - * Tracks the filters as they are executed on each relay - */ - relayFilters; - relaySet; - ndk; - debug; - eoseDebug; - /** - * Events that have been seen by the subscription, with the time they were first seen. - */ - eventFirstSeen = /* @__PURE__ */ new Map(); - /** - * Relays that have sent an EOSE. - */ - eosesSeen = /* @__PURE__ */ new Set(); - /** - * Events that have been seen by the subscription per relay. - */ - eventsPerRelay = /* @__PURE__ */ new Map(); - /** - * The time the last event was received by the subscription. - * This is used to calculate when EOSE should be emitted. - */ - lastEventReceivedAt; - internalId; - constructor(ndk, filters, opts, relaySet, subId) { - super(); - this.ndk = ndk; - this.pool = opts?.pool || ndk.pool; - this.opts = { ...defaultOpts, ...opts || {} }; - this.filters = filters instanceof Array ? filters : [filters]; - this.subId = subId || opts?.subId; - this.internalId = Math.random().toString(36).substring(7); - this.relaySet = relaySet; - this.debug = ndk.debug.extend(`subscription[${opts?.subId ?? this.internalId}]`); - 5; - this.eoseDebug = this.debug.extend("eose"); - if (!this.opts.closeOnEose) { - this.debug( - `Creating a permanent subscription`, - this.opts, - JSON.stringify(this.filters) - ); - } - if (this.opts.cacheUsage === "ONLY_CACHE" /* ONLY_CACHE */ && !this.opts.closeOnEose) { - throw new Error("Cannot use cache-only options with a persistent subscription"); - } - } - /** - * Provides access to the first filter of the subscription for - * backwards compatibility. - */ - get filter() { - return this.filters[0]; - } - isGroupable() { - return this.opts?.groupable || false; - } - shouldQueryCache() { - return this.opts?.cacheUsage !== "ONLY_RELAY" /* ONLY_RELAY */; - } - shouldQueryRelays() { - return this.opts?.cacheUsage !== "ONLY_CACHE" /* ONLY_CACHE */; - } - shouldWaitForCache() { - return ( - // Must want to close on EOSE; subscriptions - // that want to receive further updates must - // always hit the relay - this.opts.closeOnEose && // Cache adapter must claim to be fast - !!this.ndk.cacheAdapter?.locking && // If explicitly told to run in parallel, then - // we should not wait for the cache - this.opts.cacheUsage !== "PARALLEL" /* PARALLEL */ - ); - } - /** - * Start the subscription. This is the main method that should be called - * after creating a subscription. - */ - async start() { - let cachePromise; - if (this.shouldQueryCache()) { - cachePromise = this.startWithCache(); - if (this.shouldWaitForCache()) { - await cachePromise; - if (queryFullyFilled(this)) { - this.emit("eose", this); - return; - } - } - } - if (this.shouldQueryRelays()) { - this.startWithRelays(); - } else { - this.emit("eose", this); - } - return; - } - stop() { - this.emit("close", this); - } - /** - * @returns Whether the subscription has an authors filter. - */ - hasAuthorsFilter() { - return this.filters.some((f) => f.authors?.length); - } - async startWithCache() { - if (this.ndk.cacheAdapter?.query) { - const promise = this.ndk.cacheAdapter.query(this); - if (this.ndk.cacheAdapter.locking) { - await promise; - } - } - } - /** - * Send REQ to relays - */ - startWithRelays() { - if (!this.relaySet) { - this.relayFilters = calculateRelaySetsFromFilters(this.ndk, this.filters); - } else { - this.relayFilters = /* @__PURE__ */ new Map(); - for (const relay of this.relaySet.relays) { - this.relayFilters.set(relay.url, this.filters); - } - } - for (const [relayUrl, filters] of this.relayFilters) { - const relay = this.pool.getRelay(relayUrl); - relay.subscribe(this, filters); - } - } - // EVENT handling - /** - * Called when an event is received from a relay or the cache - * @param event - * @param relay - * @param fromCache Whether the event was received from the cache - */ - eventReceived(event, relay, fromCache = false) { - if (relay) - event.relay = relay; - if (!relay) - relay = event.relay; - if (!fromCache && relay) { - let events = this.eventsPerRelay.get(relay); - if (!events) { - events = /* @__PURE__ */ new Set(); - this.eventsPerRelay.set(relay, events); - } - events.add(event.id); - const eventAlreadySeen = this.eventFirstSeen.has(event.id); - if (eventAlreadySeen) { - const timeSinceFirstSeen = Date.now() - (this.eventFirstSeen.get(event.id) || 0); - relay.scoreSlowerEvent(timeSinceFirstSeen); - this.emit("event:dup", event, relay, timeSinceFirstSeen, this); - return; - } - if (this.ndk.cacheAdapter) { - this.ndk.cacheAdapter.setEvent(event, this.filters[0], relay); - } - this.eventFirstSeen.set(event.id, Date.now()); - } else { - this.eventFirstSeen.set(event.id, 0); - } - if (!event.ndk) - event.ndk = this.ndk; - this.emit("event", event, relay, this); - this.lastEventReceivedAt = Date.now(); - } - // EOSE handling - eoseTimeout; - eoseReceived(relay) { - this.eosesSeen.add(relay); - this.eoseDebug(`received from ${relay.url}`); - let lastEventSeen = this.lastEventReceivedAt ? Date.now() - this.lastEventReceivedAt : void 0; - const hasSeenAllEoses = this.eosesSeen.size === this.relayFilters?.size; - const queryFilled = queryFullyFilled(this); - if (queryFilled) { - this.emit("eose"); - this.eoseDebug(`Query fully filled`); - if (this.opts?.closeOnEose) { - this.stop(); - } else { - } - } else if (hasSeenAllEoses) { - this.emit("eose"); - this.eoseDebug(`All EOSEs seen`); - if (this.opts?.closeOnEose) { - this.stop(); - } else { - } - } else { - let timeToWaitForNextEose = 1e3; - const percentageOfRelaysThatHaveSentEose = this.eosesSeen.size / this.relayFilters.size; - if (this.eosesSeen.size >= 2 && percentageOfRelaysThatHaveSentEose >= 0.5) { - timeToWaitForNextEose = timeToWaitForNextEose * (1 - percentageOfRelaysThatHaveSentEose); - if (this.eoseTimeout) { - clearTimeout(this.eoseTimeout); - } - const sendEoseTimeout = () => { - lastEventSeen = this.lastEventReceivedAt ? Date.now() - this.lastEventReceivedAt : void 0; - if (lastEventSeen !== void 0 && lastEventSeen < 20) { - this.eoseTimeout = setTimeout(sendEoseTimeout, timeToWaitForNextEose); - } else { - this.emit("eose"); - if (this.opts?.closeOnEose) - this.stop(); - } - }; - this.eoseTimeout = setTimeout(sendEoseTimeout, timeToWaitForNextEose); - } - } - } -}; - -// src/user/follows.ts -async function follows(opts, outbox) { - if (!this.ndk) - throw new Error("NDK not set"); - const contactListEvent = Array.from( - await this.ndk.fetchEvents( - { - kinds: [3], - authors: [this.pubkey] - }, - opts || { groupable: false } - ) - )[0]; - if (contactListEvent) { - const pubkeys = /* @__PURE__ */ new Set(); - contactListEvent.tags.forEach((tag) => { - if (tag[0] === "p") { - try { - pubkeys.add(tag[1]); - if (outbox) { - this.ndk?.outboxTracker?.trackUsers([tag[1]]); - } - } catch (e) { - } - } - }); - return [...pubkeys].reduce((acc, pubkey) => { - const user = new NDKUser({ pubkey }); - user.ndk = this.ndk; - acc.add(user); - return acc; - }, /* @__PURE__ */ new Set()); - } - return /* @__PURE__ */ new Set(); -} - -// src/user/profile.ts -function profileFromEvent(event) { - const profile = {}; - const payload = JSON.parse(event.content); - Object.keys(payload).forEach((key) => { - switch (key) { - case "name": - profile.name = payload.name; - break; - case "display_name": - profile.displayName = payload.display_name; - break; - case "image": - case "picture": - profile.image = payload.image || payload.picture; - break; - case "banner": - profile.banner = payload.banner; - break; - case "bio": - profile.bio = payload.bio; - break; - case "nip05": - profile.nip05 = payload.nip05; - break; - case "lud06": - profile.lud06 = payload.lud06; - break; - case "lud16": - profile.lud16 = payload.lud16; - break; - case "about": - profile.about = payload.about; - break; - case "zapService": - profile.zapService = payload.zapService; - break; - case "website": - profile.website = payload.website; - break; - default: - profile[key] = payload[key]; - break; - } - }); - return profile; -} -function serializeProfile(profile) { - const payload = {}; - for (const [key, val] of Object.entries(profile)) { - switch (key) { - case "username": - case "name": - payload.name = val; - break; - case "displayName": - payload.display_name = val; - break; - case "image": - case "picture": - payload.picture = val; - break; - case "bio": - case "about": - payload.about = val; - break; - default: - payload[key] = val; - break; - } - } - return JSON.stringify(payload); -} - -// src/events/kinds/lists/index.ts -var NDKList = class extends NDKEvent { - _encryptedTags; - /** - * Stores the number of bytes the content was before decryption - * to expire the cache when the content changes. - */ - encryptedTagsLength; - constructor(ndk, rawEvent) { - super(ndk, rawEvent); - this.kind ??= 30001 /* CategorizedBookmarkList */; - } - /** - * Wrap a NDKEvent into a NDKList - */ - static from(ndkEvent) { - return new NDKList(ndkEvent.ndk, ndkEvent.rawEvent()); - } - /** - * Returns the title of the list. Falls back on fetching the name tag value. - */ - get title() { - const titleTag = this.tagValue("title") || this.tagValue("name"); - if (this.kind === 3 /* Contacts */ && !titleTag) { - return "Contacts"; - } else if (this.kind === 1e4 /* MuteList */ && !titleTag) { - return "Mute"; - } else if (this.kind === 10001 /* PinList */ && !titleTag) { - return "Pinned Notes"; - } else if (this.kind === 10002 /* RelayList */ && !titleTag) { - return "Relay Metadata"; - } else if (this.kind === 10003 /* BookmarkList */ && !titleTag) { - return "Bookmarks"; - } else if (this.kind === 10004 /* CommunityList */ && !titleTag) { - return "Communities"; - } else if (this.kind === 10005 /* PublicChatList */ && !titleTag) { - return "Public Chats"; - } else if (this.kind === 10006 /* BlockRelayList */ && !titleTag) { - return "Blocked Relays"; - } else if (this.kind === 10007 /* SearchRelayList */ && !titleTag) { - return "Search Relays"; - } else if (this.kind === 10015 /* InterestList */ && !titleTag) { - return "Interests"; - } else if (this.kind === 10030 /* EmojiList */ && !titleTag) { - return "Emojis"; - } else { - return titleTag ?? this.tagValue("d"); - } - } - /** - * Sets the title of the list. - */ - set title(title) { - this.removeTag("title"); - this.removeTag("name"); - if (title) { - this.tags.push(["title", title]); - } else { - throw new Error("Title cannot be empty"); - } - } - /** - * Returns the name of the list. - * @deprecated Please use "title" instead. - */ - get name() { - const nameTag = this.tagValue("name"); - if (this.kind === 3 /* Contacts */ && !nameTag) { - return "Contacts"; - } else if (this.kind === 1e4 /* MuteList */ && !nameTag) { - return "Mute"; - } else if (this.kind === 10001 /* PinList */ && !nameTag) { - return "Pinned Notes"; - } else if (this.kind === 10002 /* RelayList */ && !nameTag) { - return "Relay Metadata"; - } else if (this.kind === 10003 /* BookmarkList */ && !nameTag) { - return "Bookmarks"; - } else if (this.kind === 10004 /* CommunityList */ && !nameTag) { - return "Communities"; - } else if (this.kind === 10005 /* PublicChatList */ && !nameTag) { - return "Public Chats"; - } else if (this.kind === 10006 /* BlockRelayList */ && !nameTag) { - return "Blocked Relays"; - } else if (this.kind === 10007 /* SearchRelayList */ && !nameTag) { - return "Search Relays"; - } else if (this.kind === 10015 /* InterestList */ && !nameTag) { - return "Interests"; - } else if (this.kind === 10030 /* EmojiList */ && !nameTag) { - return "Emojis"; - } else { - return nameTag ?? this.tagValue("d"); - } - } - /** - * Sets the name of the list. - * @deprecated Please use "title" instead. This method will use the `title` tag instead. - */ - set name(name) { - this.removeTag("name"); - if (name) { - this.tags.push(["title", name]); - } else { - throw new Error("Name cannot be empty"); - } - } - /** - * Returns the description of the list. - */ - get description() { - return this.tagValue("description"); - } - /** - * Sets the description of the list. - */ - set description(name) { - if (name) { - this.tags.push(["description", name]); - } else { - this.removeTag("description"); - } - } - isEncryptedTagsCacheValid() { - return !!(this._encryptedTags && this.encryptedTagsLength === this.content.length); - } - /** - * Returns the decrypted content of the list. - */ - async encryptedTags(useCache = true) { - if (useCache && this.isEncryptedTagsCacheValid()) - return this._encryptedTags; - if (!this.ndk) - throw new Error("NDK instance not set"); - if (!this.ndk.signer) - throw new Error("NDK signer not set"); - const user = await this.ndk.signer.user(); - try { - if (this.content.length > 0) { - try { - const decryptedContent = await this.ndk.signer.decrypt(user, this.content); - const a = JSON.parse(decryptedContent); - if (a && a[0]) { - this.encryptedTagsLength = this.content.length; - return this._encryptedTags = a; - } - this.encryptedTagsLength = this.content.length; - return this._encryptedTags = []; - } catch (e) { - console.log(`error decrypting ${this.content}`); - } - } - } catch (e) { - } - return []; - } - /** - * This method can be overriden to validate that a tag is valid for this list. - * - * (i.e. the NDKPersonList can validate that items are NDKUser instances) - */ - validateTag(tagValue) { - return true; - } - /** - * Returns the unecrypted items in this list. - */ - get items() { - return this.tags.filter((t) => { - return ![ - "d", - "L", - "l", - "title", - "name", - "description", - "summary", - "image", - "thumb", - "alt", - "expiration", - "subject" - ].includes(t[0]); - }); - } - /** - * Adds a new item to the list. - * @param relay Relay to add - * @param mark Optional mark to add to the item - * @param encrypted Whether to encrypt the item - */ - async addItem(item, mark = void 0, encrypted = false) { - if (!this.ndk) - throw new Error("NDK instance not set"); - if (!this.ndk.signer) - throw new Error("NDK signer not set"); - let tags; - if (item instanceof NDKEvent) { - tags = item.referenceTags(); - } else if (item instanceof NDKUser) { - tags = item.referenceTags(); - } else if (item instanceof NDKRelay) { - tags = item.referenceTags(); - } else if (Array.isArray(item)) { - tags = [item]; - } else { - throw new Error("Invalid object type"); - } - if (mark) - tags[0].push(mark); - if (encrypted) { - const user = await this.ndk.signer.user(); - const currentList = await this.encryptedTags(); - currentList.push(...tags); - this._encryptedTags = currentList; - this.encryptedTagsLength = this.content.length; - this.content = JSON.stringify(currentList); - await this.encrypt(user); - } else { - this.tags.push(...tags); - } - this.created_at = Math.floor(Date.now() / 1e3); - this.emit("change"); - } - /** - * Removes an item from the list. - * - * @param index The index of the item to remove. - * @param encrypted Whether to remove from the encrypted list or not. - */ - async removeItem(index, encrypted) { - if (!this.ndk) - throw new Error("NDK instance not set"); - if (!this.ndk.signer) - throw new Error("NDK signer not set"); - if (encrypted) { - const user = await this.ndk.signer.user(); - const currentList = await this.encryptedTags(); - currentList.splice(index, 1); - this._encryptedTags = currentList; - this.encryptedTagsLength = this.content.length; - this.content = JSON.stringify(currentList); - await this.encrypt(user); - } else { - this.tags.splice(index, 1); - } - this.created_at = Math.floor(Date.now() / 1e3); - this.emit("change"); - return this; - } -}; -var lists_default = NDKList; - -// src/user/pin.ts -async function pin(event, pinEvent, publish) { - const kind = 10001 /* PinList */; - if (!this.ndk) - throw new Error("No NDK instance found"); - this.ndk.assertSigner(); - if (!pinEvent) { - const events = await this.ndk.fetchEvents( - { kinds: [kind], authors: [this.pubkey] }, - { cacheUsage: "ONLY_RELAY" /* ONLY_RELAY */ } - ); - if (events.size > 0) { - pinEvent = lists_default.from(Array.from(events)[0]); - } else { - pinEvent = new NDKEvent(this.ndk, { - kind - }); - } - } - pinEvent.tag(event); - if (publish) { - await pinEvent.publish(); - } - return pinEvent; -} - -// src/user/index.ts -var NDKUser = class { - ndk; - profile; - _npub; - _pubkey; - relayUrls = []; - constructor(opts) { - if (opts.npub) - this._npub = opts.npub; - if (opts.hexpubkey) - this._pubkey = opts.hexpubkey; - if (opts.pubkey) - this._pubkey = opts.pubkey; - if (opts.relayUrls) { - this.relayUrls = opts.relayUrls; - } - } - get npub() { - if (!this._npub) { - if (!this._pubkey) - throw new Error("hexpubkey not set"); - this._npub = nip194.npubEncode(this.pubkey); - } - return this._npub; - } - set npub(npub) { - this._npub = npub; - } - /** - * Get the user's hexpubkey - * @returns {Hexpubkey} The user's hexpubkey - * - * @deprecated Use `pubkey` instead - */ - get hexpubkey() { - return this.pubkey; - } - /** - * Set the user's hexpubkey - * @param pubkey {Hexpubkey} The user's hexpubkey - * @deprecated Use `pubkey` instead - */ - set hexpubkey(pubkey) { - this._pubkey = pubkey; - } - /** - * Get the user's pubkey - * @returns {string} The user's pubkey - */ - get pubkey() { - if (!this._pubkey) { - if (!this._npub) - throw new Error("npub not set"); - this._pubkey = nip194.decode(this.npub).data; - } - return this._pubkey; - } - /** - * Set the user's pubkey - * @param pubkey {string} The user's pubkey - */ - set pubkey(pubkey) { - this._pubkey = pubkey; - } - /** - * Instantiate an NDKUser from a NIP-05 string - * @param nip05Id {string} The user's NIP-05 - * @returns {NDKUser | undefined} An NDKUser if one is found for the given NIP-05, undefined otherwise. - */ - static async fromNip05(nip05Id) { - const profile = await nip05.queryProfile(nip05Id); - if (profile) { - return new NDKUser({ - pubkey: profile.pubkey, - relayUrls: profile.relays - }); - } - } - /** - * Fetch a user's profile - * @param opts {NDKSubscriptionOptions} A set of NDKSubscriptionOptions - * @returns User Profile - */ - async fetchProfile(opts) { - if (!this.ndk) - throw new Error("NDK not set"); - if (!this.profile) - this.profile = {}; - let setMetadataEvents = null; - if (this.ndk.cacheAdapter && this.ndk.cacheAdapter.fetchProfile && opts?.cacheUsage !== "ONLY_RELAY" /* ONLY_RELAY */) { - const profile = await this.ndk.cacheAdapter.fetchProfile(this.pubkey); - if (profile) { - this.profile = profile; - return profile; - } - } - if (!opts && // if no options have been set - this.ndk.cacheAdapter && // and we have a cache - this.ndk.cacheAdapter.locking) { - setMetadataEvents = await this.ndk.fetchEvents( - { - kinds: [0], - authors: [this.pubkey] - }, - { - cacheUsage: "ONLY_CACHE" /* ONLY_CACHE */, - closeOnEose: true, - groupable: false - } - ); - opts = { - cacheUsage: "ONLY_RELAY" /* ONLY_RELAY */, - closeOnEose: true, - groupable: true, - groupableDelay: 250 - }; - } - if (!setMetadataEvents || setMetadataEvents.size === 0) { - setMetadataEvents = await this.ndk.fetchEvents( - { - kinds: [0], - authors: [this.pubkey] - }, - opts - ); - } - const sortedSetMetadataEvents = Array.from(setMetadataEvents).sort( - (a, b) => a.created_at - b.created_at - ); - if (sortedSetMetadataEvents.length === 0) - return null; - this.profile = profileFromEvent(sortedSetMetadataEvents[0]); - if (this.profile && this.ndk.cacheAdapter && this.ndk.cacheAdapter.saveProfile) { - this.ndk.cacheAdapter.saveProfile(this.pubkey, this.profile); - } - return this.profile; - } - /** - * Returns a set of users that this user follows. - */ - follows = follows.bind(this); - /** - * Pins a user or an event - */ - pin = pin.bind(this); - /** - * Returns a set of relay list events for a user. - * @returns {Promise>} A set of NDKEvents returned for the given user. - */ - async relayList() { - if (!this.ndk) - throw new Error("NDK not set"); - const pool = this.ndk.outboxPool || this.ndk.pool; - const set = /* @__PURE__ */ new Set(); - for (const relay of pool.relays.values()) - set.add(relay); - const relaySet = new NDKRelaySet(set, this.ndk); - const event = await this.ndk.fetchEvent( - { - kinds: [10002], - authors: [this.pubkey] - }, - { - closeOnEose: true, - pool, - groupable: true, - subId: `relay-list-${this.pubkey.slice(0, 6)}` - }, - relaySet - ); - if (event) - return NDKRelayList.from(event); - return await this.relayListFromKind3(); - } - async relayListFromKind3() { - if (!this.ndk) - throw new Error("NDK not set"); - const followList = await this.ndk.fetchEvent({ - kinds: [3], - authors: [this.pubkey] - }); - if (followList) { - try { - const content = JSON.parse(followList.content); - const relayList = new NDKRelayList(this.ndk); - const readRelays = /* @__PURE__ */ new Set(); - const writeRelays = /* @__PURE__ */ new Set(); - for (const [key, config] of Object.entries(content)) { - if (!config) { - readRelays.add(key); - writeRelays.add(key); - } else { - const relayConfig = config; - if (relayConfig.write) - writeRelays.add(key); - if (relayConfig.read) - readRelays.add(key); - } - } - relayList.readRelayUrls = Array.from(readRelays); - relayList.writeRelayUrls = Array.from(writeRelays); - return relayList; - } catch (e) { - } - } - return void 0; - } - /** @deprecated Use referenceTags instead. */ - /** - * Get the tag that can be used to reference this user in an event - * @returns {NDKTag} an NDKTag - */ - tagReference() { - return ["p", this.pubkey]; - } - /** - * Get the tags that can be used to reference this user in an event - * @returns {NDKTag[]} an array of NDKTag - */ - referenceTags(marker) { - const tag = [["p", this.pubkey]]; - if (!marker) - return tag; - tag[0].push("", marker); - return tag; - } - /** - * Publishes the current profile. - */ - async publish() { - if (!this.ndk) - throw new Error("No NDK instance found"); - if (!this.profile) - throw new Error("No profile available"); - this.ndk.assertSigner(); - const event = new NDKEvent(this.ndk, { - kind: 0, - content: serializeProfile(this.profile) - }); - await event.publish(); - } - /** - * Add a follow to this user's contact list - * - * @param newFollow {NDKUser} The user to follow - * @param currentFollowList {Set} The current follow list - * @returns {Promise} True if the follow was added, false if the follow already exists - */ - async follow(newFollow, currentFollowList) { - if (!this.ndk) - throw new Error("No NDK instance found"); - this.ndk.assertSigner(); - if (!currentFollowList) { - currentFollowList = await this.follows(); - } - if (currentFollowList.has(newFollow)) { - return false; - } - currentFollowList.add(newFollow); - const event = new NDKEvent(this.ndk, { - kind: 3 /* Contacts */ - }); - for (const follow of currentFollowList) { - event.tag(follow); - } - await event.publish(); - return true; - } - /** - * Validate a user's NIP-05 identifier (usually fetched from their kind:0 profile data) - * - * @param nip05Id The NIP-05 string to validate - * @returns {Promise} True if the NIP-05 is found and matches this user's pubkey, - * False if the NIP-05 is found but doesn't match this user's pubkey, - * null if the NIP-05 isn't found on the domain or we're unable to verify (because of network issues, etc.) - */ - async validateNip05(nip05Id) { - if (!this.ndk) - throw new Error("No NDK instance found"); - const profilePointer = await nip05.queryProfile(nip05Id); - if (profilePointer === null) - return null; - return profilePointer.pubkey === this.pubkey; - } - /** - * Zap a user - * - * @param amount The amount to zap in millisatoshis - * @param comment A comment to add to the zap request - * @param extraTags Extra tags to add to the zap request - * @param signer The signer to use (will default to the NDK instance's signer) - */ - async zap(amount, comment, extraTags, signer) { - if (!this.ndk) - throw new Error("No NDK instance found"); - if (!signer) { - this.ndk.assertSigner(); - } - const zap = new Zap({ - ndk: this.ndk, - zappedUser: this - }); - const relays = Array.from(this.ndk.pool.relays.keys()); - const paymentRequest = await zap.createZapRequest( - amount, - comment, - extraTags, - relays, - signer - ); - return paymentRequest; - } -}; - -// src/events/kinds/article.ts -var NDKArticle = class extends NDKEvent { - constructor(ndk, rawEvent) { - super(ndk, rawEvent); - this.kind = 30023 /* Article */; - } - /** - * Creates a NDKArticle from an existing NDKEvent. - * - * @param event NDKEvent to create the NDKArticle from. - * @returns NDKArticle - */ - static from(event) { - return new NDKArticle(event.ndk, event.rawEvent()); - } - /** - * Getter for the article title. - * - * @returns {string | undefined} - The article title if available, otherwise undefined. - */ - get title() { - return this.tagValue("title"); - } - /** - * Setter for the article title. - * - * @param {string | undefined} title - The title to set for the article. - */ - set title(title) { - this.removeTag("title"); - if (title) - this.tags.push(["title", title]); - } - /** - * Getter for the article image. - * - * @returns {string | undefined} - The article image if available, otherwise undefined. - */ - get image() { - return this.tagValue("image"); - } - /** - * Setter for the article image. - * - * @param {string | undefined} image - The image to set for the article. - */ - set image(image) { - this.removeTag("image"); - if (image) - this.tags.push(["image", image]); - } - get summary() { - return this.tagValue("summary"); - } - /** - * Getter for the article's publication timestamp. - * - * @returns {number | undefined} - The Unix timestamp of when the article was published or undefined. - */ - get published_at() { - const tag = this.tagValue("published_at"); - if (tag) { - return parseInt(tag); - } - return void 0; - } - /** - * Setter for the article's publication timestamp. - * - * @param {number | undefined} timestamp - The Unix timestamp to set for the article's publication date. - */ - set published_at(timestamp) { - this.removeTag("published_at"); - if (timestamp !== void 0) { - this.tags.push(["published_at", timestamp.toString()]); - } - } - /** - * Generates content tags for the article. - * - * This method first checks and sets the publication date if not available, - * and then generates content tags based on the base NDKEvent class. - * - * @returns {ContentTag} - The generated content tags. - */ - async generateTags() { - super.generateTags(); - if (!this.published_at) { - this.published_at = this.created_at; - } - return super.generateTags(); - } - /** - * Getter for the article's URL. - * - * @returns {string | undefined} - The article's URL if available, otherwise undefined. - */ - get url() { - return this.tagValue("url"); - } - /** - * Setter for the article's URL. - * - * @param {string | undefined} url - The URL to set for the article. - */ - set url(url) { - if (url) { - this.tags.push(["url", url]); - } else { - this.removeTag("url"); - } - } -}; - -// src/events/kinds/highlight.ts -import { nip19 as nip195 } from "nostr-tools"; -var NDKHighlight = class extends NDKEvent { - _article; - constructor(ndk, rawEvent) { - super(ndk, rawEvent); - this.kind ??= 9802 /* Highlight */; - } - static from(event) { - return new NDKHighlight(event.ndk, event.rawEvent()); - } - get url() { - return this.tagValue("r"); - } - /** - * Context tag. - */ - set context(context) { - if (context === void 0) { - this.tags = this.tags.filter(([tag, value]) => tag !== "context"); - } else { - this.tags = this.tags.filter(([tag, value]) => tag !== "context"); - this.tags.push(["context", context]); - } - } - get context() { - return this.tags.find(([tag, value]) => tag === "context")?.[1] ?? void 0; - } - /** - * Will return the article URL or NDKEvent if they have already been - * set (it won't attempt to load remote events) - */ - get article() { - return this._article; - } - /** - * Article the highlight is coming from. - * - * @param article Article URL or NDKEvent. - */ - set article(article) { - this._article = article; - if (typeof article === "string") { - this.tags.push(["r", article]); - } else { - this.tag(article); - } - } - getArticleTag() { - return this.getMatchingTags("a")[0] || this.getMatchingTags("e")[0] || this.getMatchingTags("r")[0]; - } - async getArticle() { - if (this._article !== void 0) - return this._article; - let taggedBech32; - const articleTag = this.getArticleTag(); - if (!articleTag) - return void 0; - switch (articleTag[0]) { - case "a": - const [kind, pubkey, identifier] = articleTag[1].split(":"); - taggedBech32 = nip195.naddrEncode({ kind: parseInt(kind), pubkey, identifier }); - break; - case "e": - taggedBech32 = nip195.noteEncode(articleTag[1]); - break; - case "r": - this._article = articleTag[1]; - break; - } - if (taggedBech32) { - let a = await this.ndk?.fetchEvent(taggedBech32); - if (a) { - if (a.kind === 30023 /* Article */) { - a = NDKArticle.from(a); - } - this._article = a; - } - } - return this._article; - } -}; - -// src/events/kinds/dvm/NDKDVMJobFeedback.ts -var NDKDvmJobFeedbackStatus = /* @__PURE__ */ ((NDKDvmJobFeedbackStatus2) => { - NDKDvmJobFeedbackStatus2["Processing"] = "processing"; - NDKDvmJobFeedbackStatus2["Success"] = "success"; - NDKDvmJobFeedbackStatus2["Scheduled"] = "scheduled"; - NDKDvmJobFeedbackStatus2["PayReq"] = "payment_required"; - return NDKDvmJobFeedbackStatus2; -})(NDKDvmJobFeedbackStatus || {}); -var NDKDVMJobFeedback = class extends NDKEvent { - constructor(ndk, event) { - super(ndk, event); - this.kind ??= 7e3 /* DVMJobFeedback */; - } - static from(event) { - return new NDKDVMJobFeedback(event.ndk, event.rawEvent()); - } - get status() { - return this.tagValue("status"); - } - set status(status) { - this.removeTag("status"); - if (status !== void 0) { - this.tags.push(["status", status]); - } - } -}; - -// src/events/kinds/dvm/NDKDVMJobResult.ts -var NDKDVMJobResult = class extends NDKEvent { - constructor(ndk, event) { - super(ndk, event); - } - static from(event) { - return new NDKDVMJobResult(event.ndk, event.rawEvent()); - } - setAmount(msat, invoice) { - this.removeTag("amount"); - const tag = ["amount", msat.toString()]; - if (invoice) - tag.push(invoice); - this.tags.push(tag); - } - set result(result) { - if (result === void 0) { - this.content = ""; - } else { - this.content = result; - } - } - get result() { - if (this.content === "") { - return void 0; - } - return this.content; - } - set status(status) { - this.removeTag("status"); - if (status !== void 0) { - this.tags.push(["status", status]); - } - } - get status() { - return this.tagValue("status"); - } - get jobRequestId() { - for (const eTag of this.getMatchingTags("e")) { - if (eTag[2] === "job") - return eTag[1]; - } - if (this.jobRequest) - return this.jobRequest.id; - return this.tagValue("e"); - } - set jobRequest(event) { - this.removeTag("request"); - if (event) { - this.kind = event.kind + 1e3; - this.tags.push(["request", JSON.stringify(event.rawEvent())]); - this.tag(event); - } - } - get jobRequest() { - const tag = this.tagValue("request"); - if (tag === void 0) { - return void 0; - } - return new NDKEvent(this.ndk, JSON.parse(tag)); - } -}; - -// src/events/kinds/dvm/NDKDVMRequest.ts -var NDKDVMRequest = class extends NDKEvent { - constructor(ndk, event) { - super(ndk, event); - if (ndk) { - this.tags.push(["relays", ...ndk.pool.urls()]); - } - } - static from(event) { - return new NDKDVMRequest(event.ndk, event.rawEvent()); - } - /** - * Create a new job feedback for this request - */ - createFeedback(status) { - const feedback = new NDKDVMJobFeedback(this.ndk); - feedback.status = status; - feedback.tag(this, "job"); - return feedback; - } - /** - * Create a new result event for this request - */ - createResult(data) { - const event = new NDKDVMJobResult(this.ndk, data); - event.jobRequest = this; - return event; - } - set bid(msatAmount) { - if (msatAmount === void 0) { - this.removeTag("bid"); - } else { - this.tags.push(["bid", msatAmount.toString()]); - } - } - get bid() { - const v = this.tagValue("bid"); - if (v === void 0) - return void 0; - return parseInt(v); - } - /** - * Adds a new input to the job - * @param args The arguments to the input - */ - addInput(...args) { - this.tags.push(["i", ...args]); - } - /** - * Adds a new parameter to the job - */ - addParam(...args) { - this.tags.push(["param", ...args]); - } - set output(output) { - if (output === void 0) { - this.removeTag("output"); - } else { - if (typeof output === "string") - output = [output]; - this.tags.push(["output", ...output]); - } - } - get output() { - const outputTag = this.getMatchingTags("output")[0]; - return outputTag ? outputTag.slice(1) : void 0; - } - get params() { - const paramTags = this.getMatchingTags("param"); - return paramTags.map((t) => t.slice(1)); - } - getParam(name) { - const paramTag = this.getMatchingTags("param").find((t) => t[1] === name); - return paramTag ? paramTag[2] : void 0; - } -}; - -// src/events/kinds/dvm/NDKTranscriptionDVM.ts -var NDKTranscriptionDVM = class extends NDKDVMRequest { - constructor(ndk, event) { - super(ndk, event); - this.kind = 5e3 /* DVMReqTextExtraction */; - } - static from(event) { - return new NDKTranscriptionDVM(event.ndk, event.rawEvent()); - } - /** - * Returns the original source of the transcription - */ - get url() { - const inputTags = this.getMatchingTags("i"); - if (inputTags.length !== 1) { - return void 0; - } - return inputTags[0][1]; - } - /** - * Getter for the title tag - */ - get title() { - return this.tagValue("title"); - } - /** - * Setter for the title tag - */ - set title(value) { - this.removeTag("title"); - if (value) { - this.tags.push(["title", value]); - } - } - /** - * Getter for the image tag - */ - get image() { - return this.tagValue("image"); - } - /** - * Setter for the image tag - */ - set image(value) { - this.removeTag("image"); - if (value) { - this.tags.push(["image", value]); - } - } -}; - -// src/events/kinds/repost.ts -var NDKRepost = class extends NDKEvent { - _repostedEvents; - constructor(ndk, rawEvent) { - super(ndk, rawEvent); - } - static from(event) { - return new NDKRepost(event.ndk, event.rawEvent()); - } - /** - * Returns all reposted events by the current event. - * - * @param klass Optional class to convert the events to. - * @returns - */ - async repostedEvents(klass, opts) { - const items = []; - if (!this.ndk) - throw new Error("NDK instance not set"); - if (this._repostedEvents !== void 0) - return this._repostedEvents; - for (const eventId of this.repostedEventIds()) { - const filter = filterForId(eventId); - const event = await this.ndk.fetchEvent(filter, opts); - if (event) { - items.push(klass ? klass.from(event) : event); - } - } - return items; - } - /** - * Returns the reposted event IDs. - */ - repostedEventIds() { - return this.tags.filter((t) => t[0] === "e" || t[0] === "a").map((t) => t[1]); - } -}; -function filterForId(id) { - if (id.match(/:/)) { - const [kind, pubkey, identifier] = id.split(":"); - return { - kinds: [parseInt(kind)], - authors: [pubkey], - "#d": [identifier] - }; - } else { - return { ids: [id] }; - } -} - -// src/events/kinds/nip89/NDKAppHandler.ts -var NDKAppHandlerEvent = class extends NDKEvent { - profile; - constructor(ndk, rawEvent) { - super(ndk, rawEvent); - this.kind ??= 31990 /* AppHandler */; - } - static from(ndkEvent) { - return new NDKAppHandlerEvent(ndkEvent.ndk, ndkEvent.rawEvent()); - } - /** - * Fetches app handler information - * If no app information is available on the kind:31990, - * we fetch the event's author's profile and return that instead. - */ - async fetchProfile() { - if (this.profile === void 0 && this.content.length > 0) { - try { - const profile = JSON.parse(this.content); - if (profile && profile.name) { - return profile; - } else { - this.profile = null; - } - } catch (e) { - this.profile = null; - } - } - return new Promise((resolve, reject) => { - const author = this.author; - author.fetchProfile().then(() => { - resolve(author.profile); - }).catch(reject); - }); - } -}; - -// src/signers/nip07/index.ts -import debug2 from "debug"; -var NDKNip07Signer = class { - _userPromise; - nip04Queue = []; - nip04Processing = false; - debug; - waitTimeout; - /** - * @param waitTimeout - The timeout in milliseconds to wait for the NIP-07 to become available - */ - constructor(waitTimeout = 1e3) { - this.debug = debug2("ndk:nip07"); - this.waitTimeout = waitTimeout; - } - async blockUntilReady() { - await this.waitForExtension(); - const pubkey = await window.nostr.getPublicKey(); - if (!pubkey) { - throw new Error("User rejected access"); - } - return new NDKUser({ hexpubkey: pubkey }); - } - /** - * Getter for the user property. - * @returns The NDKUser instance. - */ - async user() { - if (!this._userPromise) { - this._userPromise = this.blockUntilReady(); - } - return this._userPromise; - } - /** - * Signs the given Nostr event. - * @param event - The Nostr event to be signed. - * @returns The signature of the signed event. - * @throws Error if the NIP-07 is not available on the window object. - */ - async sign(event) { - await this.waitForExtension(); - const signedEvent = await window.nostr.signEvent(event); - return signedEvent.sig; - } - async relays() { - await this.waitForExtension(); - const relays = await window.nostr.getRelays?.() || {}; - const activeRelays = []; - for (const url in Object.keys(relays)) { - if (relays[url].read && relays[url].write) { - activeRelays.push(url); - } - } - return activeRelays.map((url) => new NDKRelay(url)); - } - async encrypt(recipient, value) { - await this.waitForExtension(); - const recipientHexPubKey = recipient.hexpubkey; - return this.queueNip04("encrypt", recipientHexPubKey, value); - } - async decrypt(sender, value) { - await this.waitForExtension(); - const senderHexPubKey = sender.hexpubkey; - return this.queueNip04("decrypt", senderHexPubKey, value); - } - async queueNip04(type, counterpartyHexpubkey, value) { - return new Promise((resolve, reject) => { - this.nip04Queue.push({ - type, - counterpartyHexpubkey, - value, - resolve, - reject - }); - if (!this.nip04Processing) { - this.processNip04Queue(); - } - }); - } - async processNip04Queue(item, retries = 0) { - if (!item && this.nip04Queue.length === 0) { - this.nip04Processing = false; - return; - } - this.nip04Processing = true; - const { type, counterpartyHexpubkey, value, resolve, reject } = item || this.nip04Queue.shift(); - this.debug("Processing encryption queue item", { - type, - counterpartyHexpubkey, - value - }); - try { - let result; - if (type === "encrypt") { - result = await window.nostr.nip04.encrypt(counterpartyHexpubkey, value); - } else { - result = await window.nostr.nip04.decrypt(counterpartyHexpubkey, value); - } - resolve(result); - } catch (error) { - if (error.message && error.message.includes("call already executing")) { - if (retries < 5) { - this.debug("Retrying encryption queue item", { - type, - counterpartyHexpubkey, - value, - retries - }); - setTimeout(() => { - this.processNip04Queue(item, retries + 1); - }, 50 * retries); - return; - } - } - reject(error); - } - this.processNip04Queue(); - } - waitForExtension() { - return new Promise((resolve, reject) => { - if (window.nostr) { - resolve(); - return; - } - let timerId; - const intervalId = setInterval(() => { - if (window.nostr) { - clearTimeout(timerId); - clearInterval(intervalId); - resolve(); - } - }, 100); - timerId = setTimeout(() => { - clearInterval(intervalId); - reject(new Error("NIP-07 extension not available")); - }, this.waitTimeout); - }); - } -}; - -// src/signers/nip46/backend/index.ts -import { verifySignature } from "nostr-tools"; - -// src/signers/private-key/index.ts -import { generatePrivateKey, getPublicKey, getSignature, nip04 } from "nostr-tools"; -var NDKPrivateKeySigner = class { - _user; - privateKey; - constructor(privateKey) { - if (privateKey) { - this.privateKey = privateKey; - this._user = new NDKUser({ - hexpubkey: getPublicKey(this.privateKey) - }); - } - } - static generate() { - const privateKey = generatePrivateKey(); - return new NDKPrivateKeySigner(privateKey); - } - async blockUntilReady() { - if (!this._user) { - throw new Error("NDKUser not initialized"); - } - return this._user; - } - async user() { - await this.blockUntilReady(); - return this._user; - } - async sign(event) { - if (!this.privateKey) { - throw Error("Attempted to sign without a private key"); - } - return getSignature(event, this.privateKey); - } - async encrypt(recipient, value) { - if (!this.privateKey) { - throw Error("Attempted to encrypt without a private key"); - } - const recipientHexPubKey = recipient.hexpubkey; - return await nip04.encrypt(this.privateKey, recipientHexPubKey, value); - } - async decrypt(sender, value) { - if (!this.privateKey) { - throw Error("Attempted to decrypt without a private key"); - } - const senderHexPubKey = sender.hexpubkey; - return await nip04.decrypt(this.privateKey, senderHexPubKey, value); - } -}; - -// src/signers/nip46/rpc.ts -import { EventEmitter as EventEmitter6 } from "tseep"; -var NDKNostrRpc = class extends EventEmitter6 { - ndk; - signer; - debug; - constructor(ndk, signer, debug4) { - super(); - this.ndk = ndk; - this.signer = signer; - this.debug = debug4.extend("rpc"); - } - /** - * Subscribe to a filter. This function will resolve once the subscription is ready. - */ - subscribe(filter) { - const sub = this.ndk.subscribe(filter, { - closeOnEose: false, - groupable: false - }); - sub.on("event", async (event) => { - try { - const parsedEvent = await this.parseEvent(event); - if (parsedEvent.method) { - this.emit("request", parsedEvent); - } else { - this.emit(`response-${parsedEvent.id}`, parsedEvent); - } - } catch (e) { - this.debug("error parsing event", e, event); - } - }); - return new Promise((resolve, reject) => { - sub.on("eose", () => resolve(sub)); - }); - } - async parseEvent(event) { - const remoteUser = this.ndk.getUser({ hexpubkey: event.pubkey }); - remoteUser.ndk = this.ndk; - const decryptedContent = await this.signer.decrypt(remoteUser, event.content); - const parsedContent = JSON.parse(decryptedContent); - const { id, method, params, result, error } = parsedContent; - if (method) { - return { id, pubkey: event.pubkey, method, params, event }; - } else { - return { id, result, error, event }; - } - } - async sendResponse(id, remotePubkey, result, kind = 24133, error) { - const res = { id, result }; - if (error) { - res.error = error; - } - const localUser = await this.signer.user(); - const remoteUser = this.ndk.getUser({ hexpubkey: remotePubkey }); - const event = new NDKEvent(this.ndk, { - kind, - content: JSON.stringify(res), - tags: [["p", remotePubkey]], - pubkey: localUser.hexpubkey - }); - event.content = await this.signer.encrypt(remoteUser, event.content); - await event.sign(this.signer); - await event.publish(); - } - /** - * Sends a request. - * @param remotePubkey - * @param method - * @param params - * @param kind - * @param id - */ - async sendRequest(remotePubkey, method, params = [], kind = 24133, cb) { - const id = Math.random().toString(36).substring(7); - const localUser = await this.signer.user(); - const remoteUser = this.ndk.getUser({ hexpubkey: remotePubkey }); - const request = { id, method, params }; - const promise = new Promise((resolve) => { - const responseHandler = (response) => { - if (response.result === "auth_url") { - this.once(`response-${id}`, responseHandler); - this.emit("authUrl", response.error); - } else if (cb) { - cb(response); - } - }; - this.once(`response-${id}`, responseHandler); - }); - const event = new NDKEvent(this.ndk, { - kind, - content: JSON.stringify(request), - tags: [["p", remotePubkey]], - pubkey: localUser.hexpubkey - }); - event.content = await this.signer.encrypt(remoteUser, event.content); - await event.sign(this.signer); - this.debug(`sending ${method} request to`, remotePubkey); - await event.publish(); - return promise; - } -}; - -// src/signers/nip46/backend/connect.ts -var ConnectEventHandlingStrategy = class { - async handle(backend, id, remotePubkey, params) { - const [pubkey, token] = params; - const debug4 = backend.debug.extend("connect"); - debug4(`connection request from ${pubkey}`); - if (token && backend.applyToken) { - debug4(`applying token`); - await backend.applyToken(pubkey, token); - } - if (await backend.pubkeyAllowed({ id, pubkey, method: "connect", params: token })) { - debug4(`connection request from ${pubkey} allowed`); - return "ack"; - } else { - debug4(`connection request from ${pubkey} rejected`); - } - return void 0; - } -}; - -// src/signers/nip46/backend/get-public-key.ts -var GetPublicKeyHandlingStrategy = class { - async handle(backend, id, remotePubkey, params) { - return backend.localUser?.pubkey; - } -}; - -// src/signers/nip46/backend/nip04-decrypt.ts -var Nip04DecryptHandlingStrategy = class { - async handle(backend, id, remotePubkey, params) { - const [senderPubkey, payload] = params; - const senderUser = new NDKUser({ hexpubkey: senderPubkey }); - const decryptedPayload = await decrypt2(backend, id, remotePubkey, senderUser, payload); - return JSON.stringify([decryptedPayload]); - } -}; -async function decrypt2(backend, id, remotePubkey, senderUser, payload) { - if (!await backend.pubkeyAllowed({ - id, - pubkey: remotePubkey, - method: "decrypt", - params: payload - })) { - backend.debug(`decrypt request from ${remotePubkey} rejected`); - return void 0; - } - return await backend.signer.decrypt(senderUser, payload); -} - -// src/signers/nip46/backend/nip04-encrypt.ts -var Nip04EncryptHandlingStrategy = class { - async handle(backend, id, remotePubkey, params) { - const [recipientPubkey, payload] = params; - const recipientUser = new NDKUser({ hexpubkey: recipientPubkey }); - const encryptedPayload = await encrypt2(backend, id, remotePubkey, recipientUser, payload); - return encryptedPayload; - } -}; -async function encrypt2(backend, id, remotePubkey, recipientUser, payload) { - if (!await backend.pubkeyAllowed({ - id, - pubkey: remotePubkey, - method: "encrypt", - params: payload - })) { - backend.debug(`encrypt request from ${remotePubkey} rejected`); - return void 0; - } - return await backend.signer.encrypt(recipientUser, payload); -} - -// src/signers/nip46/backend/sign-event.ts -var SignEventHandlingStrategy = class { - async handle(backend, id, remotePubkey, params) { - const event = await signEvent(backend, id, remotePubkey, params); - if (!event) - return void 0; - return JSON.stringify(await event.toNostrEvent()); - } -}; -async function signEvent(backend, id, remotePubkey, params) { - const [eventString] = params; - backend.debug(`sign event request from ${remotePubkey}`); - const event = new NDKEvent(backend.ndk, JSON.parse(eventString)); - backend.debug("event to sign", event.rawEvent()); - if (!await backend.pubkeyAllowed({ - id, - pubkey: remotePubkey, - method: "sign_event", - params: event - })) { - backend.debug(`sign event request from ${remotePubkey} rejected`); - return void 0; - } - backend.debug(`sign event request from ${remotePubkey} allowed`); - await event.sign(backend.signer); - return event; -} - -// src/signers/nip46/backend/index.ts -var NDKNip46Backend = class { - ndk; - signer; - localUser; - debug; - rpc; - permitCallback; - /** - * @param ndk The NDK instance to use - * @param privateKey The private key of the npub that wants to be published as - */ - constructor(ndk, privateKey, permitCallback) { - this.ndk = ndk; - this.signer = new NDKPrivateKeySigner(privateKey); - this.debug = ndk.debug.extend("nip46:backend"); - this.rpc = new NDKNostrRpc(ndk, this.signer, this.debug); - this.permitCallback = permitCallback; - } - /** - * This method starts the backend, which will start listening for incoming - * requests. - */ - async start() { - this.localUser = await this.signer.user(); - const sub = this.ndk.subscribe( - { - kinds: [24133], - "#p": [this.localUser.hexpubkey] - }, - { closeOnEose: false } - ); - sub.on("event", (e) => this.handleIncomingEvent(e)); - } - handlers = { - connect: new ConnectEventHandlingStrategy(), - sign_event: new SignEventHandlingStrategy(), - nip04_encrypt: new Nip04EncryptHandlingStrategy(), - nip04_decrypt: new Nip04DecryptHandlingStrategy(), - get_public_key: new GetPublicKeyHandlingStrategy() - }; - /** - * Enables the user to set a custom strategy for handling incoming events. - * @param method - The method to set the strategy for - * @param strategy - The strategy to set - */ - setStrategy(method, strategy) { - this.handlers[method] = strategy; - } - /** - * Overload this method to apply tokens, which can - * wrap permission sets to be applied to a pubkey. - * @param pubkey public key to apply token to - * @param token token to apply - */ - async applyToken(pubkey, token) { - throw new Error("connection token not supported"); - } - async handleIncomingEvent(event) { - const { id, method, params } = await this.rpc.parseEvent(event); - const remotePubkey = event.pubkey; - let response; - this.debug("incoming event", { id, method, params }); - if (!verifySignature(event.rawEvent())) { - this.debug("invalid signature", event.rawEvent()); - return; - } - const strategy = this.handlers[method]; - if (strategy) { - try { - response = await strategy.handle(this, id, remotePubkey, params); - } catch (e) { - this.debug("error handling event", e, { id, method, params }); - this.rpc.sendResponse(id, remotePubkey, "error", void 0, e.message); - } - } else { - this.debug("unsupported method", { method, params }); - } - if (response) { - this.debug(`sending response to ${remotePubkey}`, response); - this.rpc.sendResponse(id, remotePubkey, response); - } else { - this.rpc.sendResponse(id, remotePubkey, "error", void 0, "Not authorized"); - } - } - /** - * This method should be overriden by the user to allow or reject incoming - * connections. - */ - async pubkeyAllowed(params) { - return this.permitCallback(params); - } -}; - -// ../node_modules/eventemitter3/index.mjs -var import_index6 = __toESM(require_eventemitter3(), 1); -var eventemitter3_default = import_index6.default; - -// src/signers/nip46/index.ts -var NDKNip46Signer = class extends eventemitter3_default { - ndk; - remoteUser; - remotePubkey; - token; - localSigner; - nip05; - rpc; - debug; - /** - * @param ndk - The NDK instance to use - * @param tokenOrRemoteUser - The public key, or a connection token, of the npub that wants to be published as - * @param localSigner - The signer that will be used to request events to be signed - */ - constructor(ndk, tokenOrRemoteUser, localSigner) { - super(); - let remotePubkey; - let token; - if (tokenOrRemoteUser.includes("#")) { - const parts = tokenOrRemoteUser.split("#"); - remotePubkey = new NDKUser({ npub: parts[0] }).pubkey; - token = parts[1]; - } else if (tokenOrRemoteUser.startsWith("npub")) { - remotePubkey = new NDKUser({ - npub: tokenOrRemoteUser - }).pubkey; - } else if (tokenOrRemoteUser.match(/\./)) { - this.nip05 = tokenOrRemoteUser; - } else { - remotePubkey = tokenOrRemoteUser; - } - this.ndk = ndk; - if (remotePubkey) - this.remotePubkey = remotePubkey; - this.token = token; - this.debug = ndk.debug.extend("nip46:signer"); - this.remoteUser = new NDKUser({ pubkey: remotePubkey }); - if (!localSigner) { - this.localSigner = NDKPrivateKeySigner.generate(); - } else { - this.localSigner = localSigner; - } - this.rpc = new NDKNostrRpc(ndk, this.localSigner, this.debug); - this.rpc.on("authUrl", (...props) => { - this.emit("authUrl", ...props); - }); - } - /** - * Get the user that is being published as - */ - async user() { - return this.remoteUser; - } - async blockUntilReady() { - const localUser = await this.localSigner.user(); - const remoteUser = this.ndk.getUser({ pubkey: this.remotePubkey }); - if (this.nip05 && !this.remotePubkey) { - const remoteUser2 = NDKUser.fromNip05(this.nip05).then((user) => { - if (user) { - this.remoteUser = user; - this.remotePubkey = user.pubkey; - } - }); - } - if (!this.remotePubkey) { - throw new Error("Remote pubkey not set"); - } - await this.rpc.subscribe({ - kinds: [24133], - "#p": [localUser.pubkey] - }); - return new Promise((resolve, reject) => { - setTimeout(() => { - const connectParams = [localUser.pubkey]; - if (this.token) { - connectParams.push(this.token); - } - this.rpc.sendRequest( - this.remotePubkey, - "connect", - connectParams, - 24133, - (response) => { - if (response.result === "ack") { - resolve(remoteUser); - } else { - reject(response.error); - } - } - ); - }, 100); - }); - } - async encrypt(recipient, value) { - this.debug("asking for encryption"); - const promise = new Promise((resolve, reject) => { - this.rpc.sendRequest( - this.remotePubkey, - "nip04_encrypt", - [recipient.pubkey, value], - 24133, - (response) => { - if (!response.error) { - resolve(response.result); - } else { - reject(response.error); - } - } - ); - }); - return promise; - } - async decrypt(sender, value) { - this.debug("asking for decryption"); - const promise = new Promise((resolve, reject) => { - this.rpc.sendRequest( - this.remotePubkey, - "nip04_decrypt", - [sender.pubkey, value], - 24133, - (response) => { - if (!response.error) { - const value2 = JSON.parse(response.result); - resolve(value2[0]); - } else { - reject(response.error); - } - } - ); - }); - return promise; - } - async sign(event) { - this.debug("asking for a signature"); - const promise = new Promise((resolve, reject) => { - this.rpc.sendRequest( - this.remotePubkey, - "sign_event", - [JSON.stringify(event)], - 24133, - (response) => { - this.debug("got a response", response); - if (!response.error) { - const json = JSON.parse(response.result); - resolve(json.sig); - } else { - reject(response.error); - } - } - ); - }); - return promise; - } -}; - -// src/ndk/index.ts -import debug3 from "debug"; -import { EventEmitter as EventEmitter10 } from "tseep"; - -// src/events/dedup.ts -function dedup(event1, event2) { - if (event1.created_at > event2.created_at) { - return event1; - } - return event2; -} - -// src/outbox/tracker.ts -import { EventEmitter as EventEmitter8 } from "tseep"; -import { LRUCache } from "typescript-lru-cache"; -var OutboxItem = class { - /** - * Type of item - */ - type; - /** - * The relay URLs that are of interest to this item - */ - relayUrlScores; - readRelays; - writeRelays; - constructor(type) { - this.type = type; - this.relayUrlScores = /* @__PURE__ */ new Map(); - this.readRelays = /* @__PURE__ */ new Set(); - this.writeRelays = /* @__PURE__ */ new Set(); - } -}; -var OutboxTracker = class extends EventEmitter8 { - data; - ndk; - debug; - constructor(ndk) { - super(); - this.ndk = ndk; - this.debug = ndk.debug.extend("outbox-tracker"); - this.data = new LRUCache({ - maxSize: 1e5, - entryExpirationTimeInMS: 5e3 - }); - } - trackUsers(items) { - for (const item of items) { - const itemKey = getKeyFromItem(item); - if (this.data.has(itemKey)) - continue; - const outboxItem = this.track(item, "user"); - const user = item instanceof NDKUser ? item : new NDKUser({ hexpubkey: item }); - user.ndk = this.ndk; - user.relayList().then((relayList) => { - if (relayList) { - outboxItem.readRelays = new Set(relayList.readRelayUrls); - outboxItem.writeRelays = new Set(relayList.writeRelayUrls); - for (const relayUrl of outboxItem.readRelays) { - if (this.ndk.pool.blacklistRelayUrls.has(relayUrl)) { - this.debug(`removing blacklisted relay ${relayUrl} from read relays`); - outboxItem.readRelays.delete(relayUrl); - } - } - for (const relayUrl of outboxItem.writeRelays) { - if (this.ndk.pool.blacklistRelayUrls.has(relayUrl)) { - this.debug(`removing blacklisted relay ${relayUrl} from write relays`); - outboxItem.writeRelays.delete(relayUrl); - } - } - this.data.set(itemKey, outboxItem); - this.debug( - `Adding ${outboxItem.readRelays.size} read relays and ${outboxItem.writeRelays.size} write relays for ${user.hexpubkey}` - ); - } - }); - } - } - /** - * - * @param key - * @param score - */ - track(item, type) { - const key = getKeyFromItem(item); - type ??= getTypeFromItem(item); - let outboxItem = this.data.get(key); - if (!outboxItem) - outboxItem = new OutboxItem(type); - this.data.set(key, outboxItem); - return outboxItem; - } -}; -function getKeyFromItem(item) { - if (item instanceof NDKUser) { - return item.hexpubkey; - } else { - return item; - } -} -function getTypeFromItem(item) { - if (item instanceof NDKUser) { - return "user"; - } else { - return "kind"; - } -} - -// src/relay/pool/index.ts -import { EventEmitter as EventEmitter9 } from "tseep"; -var NDKPool = class extends EventEmitter9 { - // TODO: This should probably be an LRU cache - relays = /* @__PURE__ */ new Map(); - blacklistRelayUrls; - debug; - temporaryRelayTimers = /* @__PURE__ */ new Map(); - flappingRelays = /* @__PURE__ */ new Set(); - // A map to store timeouts for each flapping relay. - backoffTimes = /* @__PURE__ */ new Map(); - constructor(relayUrls = [], blacklistedRelayUrls = [], ndk, debug4) { - super(); - this.debug = debug4 ?? ndk.debug.extend("pool"); - for (const relayUrl of relayUrls) { - const relay = new NDKRelay(relayUrl); - this.addRelay(relay, false); - } - this.blacklistRelayUrls = new Set(blacklistedRelayUrls); - } - /** - * Adds a relay to the pool, and sets a timer to remove it if it is not used within the specified time. - * @param relay - The relay to add to the pool. - * @param removeIfUnusedAfter - The time in milliseconds to wait before removing the relay from the pool after it is no longer used. - */ - useTemporaryRelay(relay, removeIfUnusedAfter = 6e5) { - const relayAlreadyInPool = this.relays.has(relay.url); - if (!relayAlreadyInPool) { - this.addRelay(relay); - } - const existingTimer = this.temporaryRelayTimers.get(relay.url); - if (existingTimer) { - clearTimeout(existingTimer); - } - if (!relayAlreadyInPool || existingTimer) { - const timer = setTimeout(() => { - this.removeRelay(relay.url); - }, removeIfUnusedAfter); - this.temporaryRelayTimers.set(relay.url, timer); - } - } - /** - * Adds a relay to the pool. - * - * @param relay - The relay to add to the pool. - * @param connect - Whether or not to connect to the relay. - */ - addRelay(relay, connect = true) { - const relayUrl = relay.url; - if (this.blacklistRelayUrls?.has(relayUrl)) { - this.debug(`Relay ${relayUrl} is blacklisted`); - return; - } - relay.on("notice", async (relay2, notice) => this.emit("notice", relay2, notice)); - relay.on("connect", () => this.handleRelayConnect(relayUrl)); - relay.on("disconnect", async () => this.emit("relay:disconnect", relay)); - relay.on("flapping", () => this.handleFlapping(relay)); - this.relays.set(relayUrl, relay); - if (connect) { - relay.connect().catch((e) => { - this.debug(`Failed to connect to relay ${relayUrl}`, e); - }); - } - } - /** - * Removes a relay from the pool. - * @param relayUrl - The URL of the relay to remove. - * @returns {boolean} True if the relay was removed, false if it was not found. - */ - removeRelay(relayUrl) { - const relay = this.relays.get(relayUrl); - if (relay) { - relay.disconnect(); - this.relays.delete(relayUrl); - this.emit("relay:disconnect", relay); - return true; - } - const existingTimer = this.temporaryRelayTimers.get(relayUrl); - if (existingTimer) { - clearTimeout(existingTimer); - this.temporaryRelayTimers.delete(relayUrl); - } - return false; - } - /** - * Fetches a relay from the pool, or creates a new one if it does not exist. - * - * New relays will be attempted to be connected. - */ - getRelay(url) { - let relay = this.relays.get(url); - if (!relay) { - relay = new NDKRelay(url); - this.addRelay(relay); - } - return relay; - } - handleRelayConnect(relayUrl) { - this.debug(`Relay ${relayUrl} connected`); - this.emit("relay:connect", this.relays.get(relayUrl)); - if (this.stats().connected === this.relays.size) { - this.emit("connect"); - } - } - /** - * Attempts to establish a connection to each relay in the pool. - * - * @async - * @param {number} [timeoutMs] - Optional timeout in milliseconds for each connection attempt. - * @returns {Promise} A promise that resolves when all connection attempts have completed. - * @throws {Error} If any of the connection attempts result in an error or timeout. - */ - async connect(timeoutMs) { - const promises = []; - this.debug( - `Connecting to ${this.relays.size} relays${timeoutMs ? `, timeout ${timeoutMs}...` : ""}` - ); - for (const relay of this.relays.values()) { - if (timeoutMs) { - const timeoutPromise = new Promise((_, reject) => { - setTimeout(() => reject(`Timed out after ${timeoutMs}ms`), timeoutMs); - }); - promises.push( - Promise.race([relay.connect(), timeoutPromise]).catch((e) => { - this.debug( - `Failed to connect to relay ${relay.url}: ${e ?? "No reason specified"}` - ); - }) - ); - } else { - promises.push(relay.connect()); - } - } - if (timeoutMs) { - setTimeout(() => { - const allConnected = this.stats().connected === this.relays.size; - const someConnected = this.stats().connected > 0; - if (!allConnected && someConnected) { - this.emit("connect"); - } - }, timeoutMs); - } - await Promise.all(promises); - } - checkOnFlappingRelays() { - const flappingRelaysCount = this.flappingRelays.size; - const totalRelays = this.relays.size; - if (flappingRelaysCount / totalRelays >= 0.8) { - for (const relayUrl of this.flappingRelays) { - this.backoffTimes.set(relayUrl, 0); - } - } - } - handleFlapping(relay) { - this.debug(`Relay ${relay.url} is flapping`); - let currentBackoff = this.backoffTimes.get(relay.url) || 5e3; - currentBackoff = currentBackoff * 2; - this.backoffTimes.set(relay.url, currentBackoff); - this.debug(`Backoff time for ${relay.url} is ${currentBackoff}ms`); - setTimeout(() => { - this.debug(`Attempting to reconnect to ${relay.url}`); - relay.connect(); - this.checkOnFlappingRelays(); - }, currentBackoff); - relay.disconnect(); - this.emit("flapping", relay); - } - size() { - return this.relays.size; - } - /** - * Returns the status of each relay in the pool. - * @returns {NDKPoolStats} An object containing the number of relays in each status. - */ - stats() { - const stats = { - total: 0, - connected: 0, - disconnected: 0, - connecting: 0 - }; - for (const relay of this.relays.values()) { - stats.total++; - if (relay.status === 1 /* CONNECTED */) { - stats.connected++; - } else if (relay.status === 3 /* DISCONNECTED */) { - stats.disconnected++; - } else if (relay.status === 0 /* CONNECTING */) { - stats.connecting++; - } - } - return stats; - } - connectedRelays() { - return Array.from(this.relays.values()).filter( - (relay) => relay.status === 1 /* CONNECTED */ - ); - } - /** - * Get a list of all relay urls in the pool. - */ - urls() { - return Array.from(this.relays.keys()); - } -}; - -// src/relay/sets/utils.ts -function correctRelaySet(relaySet, pool) { - const connectedRelays = pool.connectedRelays(); - const includesConnectedRelay = Array.from(relaySet.relays).some((relay) => { - return connectedRelays.map((r) => r.url).includes(relay.url); - }); - if (!includesConnectedRelay) { - for (const relay of connectedRelays) { - relaySet.addRelay(relay); - } - } - if (connectedRelays.length === 0) { - for (const relay of pool.relays.values()) { - relaySet.addRelay(relay); - } - } - return relaySet; -} - -// src/ndk/index.ts -var DEFAULT_OUTBOX_RELAYS = ["wss://purplepag.es", "wss://relay.snort.social"]; -var DEFAULT_BLACKLISTED_RELAYS = [ - "wss://brb.io" - // BRB -]; -var NDK = class extends EventEmitter10 { - explicitRelayUrls; - pool; - outboxPool; - _signer; - _activeUser; - cacheAdapter; - debug; - devWriteRelaySet; - outboxTracker; - mutedIds; - client; - autoConnectUserRelays = true; - autoFetchUserMutelist = true; - constructor(opts = {}) { - super(); - this.debug = opts.debug || debug3("ndk"); - this.explicitRelayUrls = opts.explicitRelayUrls; - this.pool = new NDKPool(opts.explicitRelayUrls || [], opts.blacklistRelayUrls, this); - this.debug(`Starting with explicit relays: ${JSON.stringify(this.explicitRelayUrls)}`); - this.autoConnectUserRelays = opts.autoConnectUserRelays ?? true; - this.autoFetchUserMutelist = opts.autoFetchUserMutelist ?? true; - this.client = opts.client; - if (opts.enableOutboxModel) { - this.outboxPool = new NDKPool( - opts.outboxRelayUrls || DEFAULT_OUTBOX_RELAYS, - opts.blacklistRelayUrls || DEFAULT_BLACKLISTED_RELAYS, - this, - this.debug.extend("outbox-pool") - ); - this.outboxTracker = new OutboxTracker(this); - } - this.signer = opts.signer; - this.cacheAdapter = opts.cacheAdapter; - this.mutedIds = opts.mutedIds || /* @__PURE__ */ new Map(); - if (opts.devWriteRelayUrls) { - this.devWriteRelaySet = NDKRelaySet.fromRelayUrls(opts.devWriteRelayUrls, this); - } - } - toJSON() { - return { relayCount: this.pool.relays.size }.toString(); - } - get activeUser() { - return this._activeUser; - } - /** - * Sets the active user for this NDK instance, typically this will be - * called when assigning a signer to the NDK instance. - * - * This function will automatically connect to the user's relays if - * `autoConnectUserRelays` is set to true. - * - * It will also fetch the user's mutelist if `autoFetchUserMutelist` is set to true. - */ - set activeUser(user) { - const differentUser = this._activeUser !== user; - this._activeUser = user; - if (user && differentUser) { - const connectToUserRelays = async (user2) => { - const relayList = await user2.relayList(); - if (!relayList) { - this.debug("No relay list found for user", { npub: user2.npub }); - return; - } - this.debug("Connecting to user relays", { - npub: user2.npub, - relays: relayList.relays - }); - for (const url of relayList.relays) { - let relay = this.pool.relays.get(url); - if (!relay) { - relay = new NDKRelay(url); - this.pool.addRelay(relay); - } - } - }; - const fetchUserMuteList = async (user2) => { - const muteLists = await this.fetchEvents([ - { kinds: [1e4 /* MuteList */], authors: [user2.pubkey] }, - { - kinds: [3e4 /* FollowSet */], - authors: [user2.pubkey], - "#d": ["mute"], - limit: 1 - } - ]); - if (!muteLists) { - this.debug("No mute list found for user", { npub: user2.npub }); - return; - } - for (const muteList of muteLists) { - const list = lists_default.from(muteList); - for (const item of list.items) { - this.mutedIds.set(item[1], item[0]); - } - } - }; - const userFunctions = []; - if (this.autoConnectUserRelays) - userFunctions.push(connectToUserRelays); - if (this.autoFetchUserMutelist) - userFunctions.push(fetchUserMuteList); - const runUserFunctions = async (user2) => { - for (const fn of userFunctions) { - await fn(user2); - } - }; - const pool = this.outboxPool || this.pool; - if (pool.connectedRelays.length > 0) { - runUserFunctions(user); - } else { - this.debug("Waiting for connection to main relays"); - pool.once("relay:connect", (relay) => { - this.debug("New relay came online", relay); - runUserFunctions(user); - }); - } - } else if (!user) { - this.mutedIds = /* @__PURE__ */ new Map(); - } - } - get signer() { - return this._signer; - } - set signer(newSigner) { - this._signer = newSigner; - this.debug(`setting signer`, this.autoConnectUserRelays); - newSigner?.user().then((user) => { - user.ndk = this; - this.activeUser = user; - }); - } - /** - * Connect to relays with optional timeout. - * If the timeout is reached, the connection will be continued to be established in the background. - */ - async connect(timeoutMs) { - if (this._signer && this.autoConnectUserRelays) { - this.debug("Attempting to connect to user relays specified by signer"); - if (this._signer.relays) { - const relays = await this._signer.relays(); - relays.forEach((relay) => this.pool.addRelay(relay)); - } - } - const connections = [this.pool.connect(timeoutMs)]; - if (this.outboxPool) { - connections.push(this.outboxPool.connect(timeoutMs)); - } - this.debug("Connecting to relays", { timeoutMs }); - return Promise.allSettled(connections).then(() => { - }); - } - /** - * Get a NDKUser object - * - * @param opts - * @returns - */ - getUser(opts) { - const user = new NDKUser(opts); - user.ndk = this; - return user; - } - /** - * Create a new subscription. Subscriptions automatically start, you can make them automatically close when all relays send back an EOSE by setting `opts.closeOnEose` to `true`) - * - * @param filters - * @param opts - * @param relaySet explicit relay set to use - * @param autoStart automatically start the subscription - * @returns NDKSubscription - */ - subscribe(filters, opts, relaySet, autoStart = true) { - const subscription = new NDKSubscription(this, filters, opts, relaySet); - if (relaySet) { - for (const relay of relaySet.relays) { - this.pool.useTemporaryRelay(relay); - } - } - if (this.outboxPool && subscription.hasAuthorsFilter()) { - const authors = subscription.filters.filter((filter) => filter.authors && filter.authors?.length > 0).map((filter) => filter.authors).flat(); - this.outboxTracker?.trackUsers(authors); - } - if (autoStart) - subscription.start(); - return subscription; - } - /** - * Publish an event to a relay - * @param event event to publish - * @param relaySet explicit relay set to use - * @param timeoutMs timeout in milliseconds to wait for the event to be published - * @returns The relays the event was published to - * - * @deprecated Use `event.publish()` instead - */ - async publish(event, relaySet, timeoutMs) { - this.debug("Deprecated: Use `event.publish()` instead"); - return event.publish(relaySet, timeoutMs); - } - /** - * Fetch a single event. - * - * @param idOrFilter event id in bech32 format or filter - * @param opts subscription options - * @param relaySet explicit relay set to use - */ - async fetchEvent(idOrFilter, opts, relaySet) { - let filter; - if (!relaySet && typeof idOrFilter === "string") { - if (!isNip33AValue(idOrFilter)) { - const relays = relaysFromBech32(idOrFilter); - if (relays.length > 0) { - relaySet = new NDKRelaySet(new Set(relays), this); - relaySet = correctRelaySet(relaySet, this.pool); - } - } - } - if (typeof idOrFilter === "string") { - filter = filterFromId(idOrFilter); - } else { - filter = idOrFilter; - } - if (!filter) { - throw new Error(`Invalid filter: ${JSON.stringify(idOrFilter)}`); - } - return new Promise((resolve) => { - const s = this.subscribe( - filter, - { ...opts || {}, closeOnEose: true }, - relaySet, - false - ); - s.on("event", (event) => { - event.ndk = this; - resolve(event); - }); - s.on("eose", () => { - resolve(null); - }); - s.start(); - }); - } - /** - * Fetch events - */ - async fetchEvents(filters, opts, relaySet) { - return new Promise((resolve) => { - const events = /* @__PURE__ */ new Map(); - const relaySetSubscription = this.subscribe( - filters, - { ...opts || {}, closeOnEose: true }, - relaySet, - false - ); - const onEvent = (event) => { - const dedupKey = event.deduplicationKey(); - const existingEvent = events.get(dedupKey); - if (existingEvent) { - event = dedup(existingEvent, event); - } - event.ndk = this; - events.set(dedupKey, event); - }; - relaySetSubscription.on("event", onEvent); - relaySetSubscription.on("event:dup", onEvent); - relaySetSubscription.on("eose", () => { - resolve(new Set(events.values())); - }); - relaySetSubscription.start(); - }); - } - /** - * Ensures that a signer is available to sign an event. - */ - assertSigner() { - if (!this.signer) { - this.emit("signerRequired"); - throw new Error("Signer required"); - } - } -}; - -// src/zap/invoice.ts -import { decode } from "light-bolt11-decoder"; -function zapInvoiceFromEvent(event) { - const description = event.getMatchingTags("description")[0]; - const bolt11 = event.getMatchingTags("bolt11")[0]; - let decodedInvoice; - let zapRequest; - if (!description || !bolt11 || !bolt11[1]) { - return null; - } - try { - let zapRequestPayload = description[1]; - if (zapRequestPayload.startsWith("%")) { - zapRequestPayload = decodeURIComponent(zapRequestPayload); - } - if (zapRequestPayload === "") { - return null; - } - zapRequest = JSON.parse(zapRequestPayload); - decodedInvoice = decode(bolt11[1]); - } catch (e) { - return null; - } - const amountSection = decodedInvoice.sections.find((s) => s.name === "amount"); - if (!amountSection) { - return null; - } - const amount = parseInt(amountSection.value); - if (!amount) { - return null; - } - const content = zapRequest.content; - const sender = zapRequest.pubkey; - const recipientTag = event.getMatchingTags("p")[0]; - const recipient = recipientTag[1]; - let zappedEvent = event.getMatchingTags("e")[0]; - if (!zappedEvent) { - zappedEvent = event.getMatchingTags("a")[0]; - } - const zappedEventId = zappedEvent ? zappedEvent[1] : void 0; - const zapInvoice = { - id: event.id, - zapper: event.pubkey, - zappee: sender, - zapped: recipient, - zappedEvent: zappedEventId, - amount, - comment: content - }; - return zapInvoice; -} -export { - NDKAppHandlerEvent, - NDKArticle, - NDKDVMJobFeedback, - NDKDVMJobResult, - NDKDVMRequest, - NDKDvmJobFeedbackStatus, - NDKEvent, - NDKHighlight, - NDKKind, - NDKList, - NDKListKinds, - NDKNip07Signer, - NDKNip46Backend, - NDKNip46Signer, - NDKNostrRpc, - NDKPrivateKeySigner, - NDKRelay, - NDKRelayList, - NDKRelaySet, - NDKRelayStatus, - NDKRepost, - NDKSubscription, - NDKSubscriptionCacheUsage, - NDKTranscriptionDVM, - NDKUser, - calculateGroupableId, - NDK as default, - defaultOpts, - mergeFilters, - profileFromEvent, - serializeProfile, - zapInvoiceFromEvent -}; diff --git a/node_modules/@nostr-dev-kit/ndk/package.json b/node_modules/@nostr-dev-kit/ndk/package.json deleted file mode 100644 index e20d9163..00000000 --- a/node_modules/@nostr-dev-kit/ndk/package.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "name": "@nostr-dev-kit/ndk", - "version": "2.1.1", - "description": "NDK - Nostr Development Kit", - "homepage": "https://ndk.fyi", - "documentation": "https://github.com/nostr-dev-kit/ndk/blob/master/docs/modules.md", - "repository": { - "type": "git", - "url": "https://github.com/nostr-dev-kit/ndk" - }, - "types": "./dist/index.d.ts", - "main": "./dist/index.js", - "module": "./dist/index.mjs", - "exports": { - "import": "./dist/index.mjs", - "require": "./dist/index.js", - "types": "./dist/index.d.ts" - }, - "files": [ - "dist", - "README.md" - ], - "keywords": [ - "nostr" - ], - "author": "pablof7z", - "license": "MIT", - "devDependencies": { - "@types/debug": "^4.1.7", - "@types/jest": "^29.5.5", - "@types/node": "^14.11.2", - "esbuild": "^0.17.15", - "esbuild-plugin-alias": "^0.2.1", - "esm-loader-typescript": "^1.0.4", - "gts": "^3.1.1", - "jest": "^29.5.0", - "ts-jest": "^29.1.0", - "ts-node": "^10.9.1", - "tsd": "^0.28.1", - "tsup": "^6.7.0", - "typedoc": "^0.25.1", - "typedoc-plugin-rename-defaults": "^0.6.6", - "@nostr-dev-kit/eslint-config-custom": "0.0.0", - "@nostr-dev-kit/tsconfig": "0.0.0" - }, - "dependencies": { - "@noble/hashes": "^1.3.1", - "@noble/secp256k1": "^2.0.0", - "@scure/base": "^1.1.1", - "debug": "^4.3.4", - "light-bolt11-decoder": "^3.0.0", - "node-fetch": "^3.3.1", - "nostr-tools": "^1.15.0", - "tseep": "^1.1.1", - "typescript-lru-cache": "^2.0.0", - "utf8-buffer": "^1.0.0", - "websocket-polyfill": "^0.0.3" - }, - "scripts": { - "dev": "pnpm build --watch", - "build": "tsup src/index.ts --format cjs,esm --dts", - "clean": "rm -rf dist docs", - "test": "jest", - "lint": "prettier --check . && eslint .", - "compile": "tsc", - "pretest": "pnpm build", - "posttest": "pnpm lint", - "format": "prettier --write ." - } -} \ No newline at end of file diff --git a/node_modules/@scure/base/LICENSE b/node_modules/@scure/base/LICENSE deleted file mode 100644 index 5b91e4cb..00000000 --- a/node_modules/@scure/base/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2022 Paul Miller (https://paulmillr.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the “Software”), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/node_modules/@scure/base/README.md b/node_modules/@scure/base/README.md deleted file mode 100644 index 653e9481..00000000 --- a/node_modules/@scure/base/README.md +++ /dev/null @@ -1,201 +0,0 @@ -# scure-base - -Audited & minimal implementation of bech32, base64, base58, base32 & base16. - -- 🔒 [Audited](#security) by an independent security firm -- 🔻 Tree-shaking-friendly: use only what's necessary, other code won't be included -- 📦 ESM and common.js -- ✍️ Written in [functional style](#design-rationale), easily composable -- 💼 Matches specs - - [BIP173](https://en.bitcoin.it/wiki/BIP_0173), [BIP350](https://en.bitcoin.it/wiki/BIP_0350) for bech32 / bech32m - - [RFC 4648](https://datatracker.ietf.org/doc/html/rfc4648) (aka RFC 3548) for Base16, Base32, Base32Hex, Base64, Base64Url - - [Base58](https://www.ietf.org/archive/id/draft-msporny-base58-03.txt), - [Base58check](https://en.bitcoin.it/wiki/Base58Check_encoding), - [Base32 Crockford](https://www.crockford.com/base32.html) - -Check out [Projects using scure-base](#projects-using-scure-base). - -### This library belongs to _scure_ - -> **scure** — secure, independently audited packages for every use case. - -- Minimal or zero dependencies -- Releases are signed with PGP keys and built transparently with NPM provenance -- Check out all libraries: - [base](https://github.com/paulmillr/scure-base), - [bip32](https://github.com/paulmillr/scure-bip32), - [bip39](https://github.com/paulmillr/scure-bip39), - [btc-signer](https://github.com/paulmillr/scure-btc-signer), - [starknet](https://github.com/paulmillr/scure-starknet) - -## Usage - -> npm install @scure/base - -We support all major platforms and runtimes. The library is hybrid ESM / Common.js package. - -```js -import { base16, base32, base64, base58 } from '@scure/base'; -// Flavors -import { - base58xmr, - base58xrp, - base32hex, - base32crockford, - base64url, - base64urlnopad, -} from '@scure/base'; - -const data = Uint8Array.from([1, 2, 3]); -base64.decode(base64.encode(data)); - -// Convert utf8 string to Uint8Array -const data2 = new TextEncoder().encode('hello'); -base58.encode(data2); - -// Everything has the same API except for bech32 and base58check -base32.encode(data); -base16.encode(data); -base32hex.encode(data); -``` - -base58check is a special case: you need to pass `sha256()` function: - -```js -import { base58check } from '@scure/base'; -base58check(sha256).encode(data); -``` - -Alternative API: - -```js -import { str, bytes } from '@scure/base'; -const encoded = str('base64', data); -const data = bytes('base64', encoded); -``` - -## Bech32, Bech32m and Bitcoin - -We provide low-level bech32 operations. -If you need high-level methods for BTC (addresses, and others), use -[scure-btc-signer](https://github.com/paulmillr/scure-btc-signer) instead. - -Bitcoin addresses use both 5-bit words and bytes representations. -They can't be parsed using `bech32.decodeToBytes`. Instead, do something this: - -```ts -const decoded = bech32.decode(address); -// NOTE: words in bitcoin addresses contain version as first element, -// with actual witnes program words in rest -// BIP-141: The value of the first push is called the "version byte". -// The following byte vector pushed is called the "witness program". -const [version, ...dataW] = decoded.words; -const program = bech32.fromWords(dataW); // actual witness program -``` - -Same applies to Lightning Invoice Protocol -[BOLT-11](https://github.com/lightning/bolts/blob/master/11-payment-encoding.md). -We have many tests in `./test/bip173.test.js` that serve as minimal examples of -Bitcoin address and Lightning Invoice Protocol parsers. -Keep in mind that you'll need to verify the examples before using them in your code. - -## Design rationale - -The code may feel unnecessarily complicated; but actually it's much easier to reason about. -Any encoding library consists of two functions: - -``` -encode(A) -> B -decode(B) -> A - where X = decode(encode(X)) - # encode(decode(X)) can be !== X! - # because decoding can normalize input - -e.g. -base58checksum = { - encode(): { - // checksum - // radix conversion - // alphabet - }, - decode(): { - // alphabet - // radix conversion - // checksum - } -} -``` - -But instead of creating two big functions for each specific case, -we create them from tiny composamble building blocks: - -``` -base58checksum = chain(checksum(), radix(), alphabet()) -``` - -Which is the same as chain/pipe/sequence function in Functional Programming, -but significantly more useful since it enforces same order of execution of encode/decode. -Basically you only define encode (in declarative way) and get correct decode for free. -So, instead of reasoning about two big functions you need only reason about primitives and encode chain. -The design revealed obvious bug in older version of the lib, -where xmr version of base58 had errors in decode's block processing. - -Besides base-encodings, we can reuse the same approach with any encode/decode function -(`bytes2number`, `bytes2u32`, etc). -For example, you can easily encode entropy to mnemonic (BIP-39): - -```ts -export function getCoder(wordlist: string[]) { - if (!Array.isArray(wordlist) || wordlist.length !== 2 ** 11 || typeof wordlist[0] !== 'string') { - throw new Error('Worlist: expected array of 2048 strings'); - } - return mbc.chain(mbu.checksum(1, checksum), mbu.radix2(11, true), mbu.alphabet(wordlist)); -} -``` - -## base58 is O(n^2) and radixes - -`Uint8Array` is represented as big-endian number: - -``` -[1, 2, 3, 4, 5] -> 1*(256**4) + 2*(256**3) 3*(256**2) + 4*(256**1) + 5*(256**0) -where 256 = 2**8 (8 bits per byte) -``` - -which is then converted to a number in another radix/base (16/32/58/64, etc). - -However, generic conversion between bases has [quadratic O(n^2) time complexity](https://cs.stackexchange.com/q/21799). - -Which means base58 has quadratic time complexity too. Use base58 only when you have small -constant sized input, because variable length sized input from user can cause DoS. - -On the other hand, if both bases are power of same number (like `2**8 <-> 2**64`), -there is linear algorithm. For now we have implementation for power-of-two bases only (radix2). - -## Security - -The library has been independently audited: - -- at version 1.0.0, in Jan 2022, by [cure53](https://cure53.de) - - PDFs: [online](https://cure53.de/pentest-report_hashing-libs.pdf), [offline](./audit/2022-01-05-cure53-audit-nbl2.pdf) - - [Changes since audit](https://github.com/paulmillr/scure-base/compare/1.0.0..main). - - The audit has been funded by [Ethereum Foundation](https://ethereum.org/en/) with help of [Nomic Labs](https://nomiclabs.io) - -The library was initially developed for [js-ethereum-cryptography](https://github.com/ethereum/js-ethereum-cryptography). -At commit [ae00e6d7](https://github.com/ethereum/js-ethereum-cryptography/commit/ae00e6d7d24fb3c76a1c7fe10039f6ecd120b77e), -it was extracted to a separate package called `micro-base`. -After the audit we've decided to use `@scure` NPM namespace for security. - -## Resources - -### Projects using scure-base - -- [prefixed-api-key](https://github.com/truestamp/prefixed-api-key): - A re-write of seamapi/prefixed-api-key that enhances the - cryptographic security properties and safety when verifying a key. The keys and verifiers - of these two libraries are not compatible. - [Motivating post on the issues with using JWT from fly.io](https://fly.io/blog/api-tokens-a-tedious-survey/) - -## License - -MIT (c) Paul Miller [(https://paulmillr.com)](https://paulmillr.com), see LICENSE file. diff --git a/node_modules/@scure/base/index.ts b/node_modules/@scure/base/index.ts deleted file mode 100644 index 3b2ddc12..00000000 --- a/node_modules/@scure/base/index.ts +++ /dev/null @@ -1,565 +0,0 @@ -/*! scure-base - MIT License (c) 2022 Paul Miller (paulmillr.com) */ - -// Utilities -/** - * @__NO_SIDE_EFFECTS__ - */ -export function assertNumber(n: number) { - if (!Number.isSafeInteger(n)) throw new Error(`Wrong integer: ${n}`); -} -export interface Coder { - encode(from: F): T; - decode(to: T): F; -} - -export interface BytesCoder extends Coder { - encode: (data: Uint8Array) => string; - decode: (str: string) => Uint8Array; -} - -// TODO: some recusive type inference so it would check correct order of input/output inside rest? -// like , , -type Chain = [Coder, ...Coder[]]; -// Extract info from Coder type -type Input = F extends Coder ? T : never; -type Output = F extends Coder ? T : never; -// Generic function for arrays -type First = T extends [infer U, ...any[]] ? U : never; -type Last = T extends [...any[], infer U] ? U : never; -type Tail = T extends [any, ...infer U] ? U : never; - -type AsChain> = { - // C[K] = Coder, Input> - [K in keyof C]: Coder, Input>; -}; - -/** - * @__NO_SIDE_EFFECTS__ - */ -function chain>(...args: T): Coder>, Output>> { - // Wrap call in closure so JIT can inline calls - const wrap = (a: any, b: any) => (c: any) => a(b(c)); - // Construct chain of args[-1].encode(args[-2].encode([...])) - const encode = Array.from(args) - .reverse() - .reduce((acc, i: any) => (acc ? wrap(acc, i.encode) : i.encode), undefined) as any; - // Construct chain of args[0].decode(args[1].decode(...)) - const decode = args.reduce( - (acc, i: any) => (acc ? wrap(acc, i.decode) : i.decode), - undefined - ) as any; - return { encode, decode }; -} - -type Alphabet = string[] | string; - -/** - * Encodes integer radix representation to array of strings using alphabet and back - * @__NO_SIDE_EFFECTS__ - */ -function alphabet(alphabet: Alphabet): Coder { - return { - encode: (digits: number[]) => { - if (!Array.isArray(digits) || (digits.length && typeof digits[0] !== 'number')) - throw new Error('alphabet.encode input should be an array of numbers'); - return digits.map((i) => { - assertNumber(i); - if (i < 0 || i >= alphabet.length) - throw new Error(`Digit index outside alphabet: ${i} (alphabet: ${alphabet.length})`); - return alphabet[i]!; - }); - }, - decode: (input: string[]) => { - if (!Array.isArray(input) || (input.length && typeof input[0] !== 'string')) - throw new Error('alphabet.decode input should be array of strings'); - return input.map((letter) => { - if (typeof letter !== 'string') - throw new Error(`alphabet.decode: not string element=${letter}`); - const index = alphabet.indexOf(letter); - if (index === -1) throw new Error(`Unknown letter: "${letter}". Allowed: ${alphabet}`); - return index; - }); - }, - }; -} - -/** - * @__NO_SIDE_EFFECTS__ - */ -function join(separator = ''): Coder { - if (typeof separator !== 'string') throw new Error('join separator should be string'); - return { - encode: (from) => { - if (!Array.isArray(from) || (from.length && typeof from[0] !== 'string')) - throw new Error('join.encode input should be array of strings'); - for (let i of from) - if (typeof i !== 'string') throw new Error(`join.encode: non-string input=${i}`); - return from.join(separator); - }, - decode: (to) => { - if (typeof to !== 'string') throw new Error('join.decode input should be string'); - return to.split(separator); - }, - }; -} - -/** - * Pad strings array so it has integer number of bits - * @__NO_SIDE_EFFECTS__ - */ -function padding(bits: number, chr = '='): Coder { - assertNumber(bits); - if (typeof chr !== 'string') throw new Error('padding chr should be string'); - return { - encode(data: string[]): string[] { - if (!Array.isArray(data) || (data.length && typeof data[0] !== 'string')) - throw new Error('padding.encode input should be array of strings'); - for (let i of data) - if (typeof i !== 'string') throw new Error(`padding.encode: non-string input=${i}`); - while ((data.length * bits) % 8) data.push(chr); - return data; - }, - decode(input: string[]): string[] { - if (!Array.isArray(input) || (input.length && typeof input[0] !== 'string')) - throw new Error('padding.encode input should be array of strings'); - for (let i of input) - if (typeof i !== 'string') throw new Error(`padding.decode: non-string input=${i}`); - let end = input.length; - if ((end * bits) % 8) - throw new Error('Invalid padding: string should have whole number of bytes'); - for (; end > 0 && input[end - 1] === chr; end--) { - if (!(((end - 1) * bits) % 8)) - throw new Error('Invalid padding: string has too much padding'); - } - return input.slice(0, end); - }, - }; -} - -/** - * @__NO_SIDE_EFFECTS__ - */ -function normalize(fn: (val: T) => T): Coder { - if (typeof fn !== 'function') throw new Error('normalize fn should be function'); - return { encode: (from: T) => from, decode: (to: T) => fn(to) }; -} - -/** - * Slow: O(n^2) time complexity - * @__NO_SIDE_EFFECTS__ - */ -function convertRadix(data: number[], from: number, to: number) { - // base 1 is impossible - if (from < 2) throw new Error(`convertRadix: wrong from=${from}, base cannot be less than 2`); - if (to < 2) throw new Error(`convertRadix: wrong to=${to}, base cannot be less than 2`); - if (!Array.isArray(data)) throw new Error('convertRadix: data should be array'); - if (!data.length) return []; - let pos = 0; - const res = []; - const digits = Array.from(data); - digits.forEach((d) => { - assertNumber(d); - if (d < 0 || d >= from) throw new Error(`Wrong integer: ${d}`); - }); - while (true) { - let carry = 0; - let done = true; - for (let i = pos; i < digits.length; i++) { - const digit = digits[i]!; - const digitBase = from * carry + digit; - if ( - !Number.isSafeInteger(digitBase) || - (from * carry) / from !== carry || - digitBase - digit !== from * carry - ) { - throw new Error('convertRadix: carry overflow'); - } - carry = digitBase % to; - const rounded = Math.floor(digitBase / to); - digits[i] = rounded; - if (!Number.isSafeInteger(rounded) || rounded * to + carry !== digitBase) - throw new Error('convertRadix: carry overflow'); - if (!done) continue; - else if (!rounded) pos = i; - else done = false; - } - res.push(carry); - if (done) break; - } - for (let i = 0; i < data.length - 1 && data[i] === 0; i++) res.push(0); - return res.reverse(); -} - -const gcd = /* @__NO_SIDE_EFFECTS__ */ (a: number, b: number): number => (!b ? a : gcd(b, a % b)); -const radix2carry = /*@__NO_SIDE_EFFECTS__ */ (from: number, to: number) => - from + (to - gcd(from, to)); -/** - * Implemented with numbers, because BigInt is 5x slower - * @__NO_SIDE_EFFECTS__ - */ -function convertRadix2(data: number[], from: number, to: number, padding: boolean): number[] { - if (!Array.isArray(data)) throw new Error('convertRadix2: data should be array'); - if (from <= 0 || from > 32) throw new Error(`convertRadix2: wrong from=${from}`); - if (to <= 0 || to > 32) throw new Error(`convertRadix2: wrong to=${to}`); - if (radix2carry(from, to) > 32) { - throw new Error( - `convertRadix2: carry overflow from=${from} to=${to} carryBits=${radix2carry(from, to)}` - ); - } - let carry = 0; - let pos = 0; // bitwise position in current element - const mask = 2 ** to - 1; - const res: number[] = []; - for (const n of data) { - assertNumber(n); - if (n >= 2 ** from) throw new Error(`convertRadix2: invalid data word=${n} from=${from}`); - carry = (carry << from) | n; - if (pos + from > 32) throw new Error(`convertRadix2: carry overflow pos=${pos} from=${from}`); - pos += from; - for (; pos >= to; pos -= to) res.push(((carry >> (pos - to)) & mask) >>> 0); - carry &= 2 ** pos - 1; // clean carry, otherwise it will cause overflow - } - carry = (carry << (to - pos)) & mask; - if (!padding && pos >= from) throw new Error('Excess padding'); - if (!padding && carry) throw new Error(`Non-zero padding: ${carry}`); - if (padding && pos > 0) res.push(carry >>> 0); - return res; -} - -/** - * @__NO_SIDE_EFFECTS__ - */ -function radix(num: number): Coder { - assertNumber(num); - return { - encode: (bytes: Uint8Array) => { - if (!(bytes instanceof Uint8Array)) - throw new Error('radix.encode input should be Uint8Array'); - return convertRadix(Array.from(bytes), 2 ** 8, num); - }, - decode: (digits: number[]) => { - if (!Array.isArray(digits) || (digits.length && typeof digits[0] !== 'number')) - throw new Error('radix.decode input should be array of strings'); - return Uint8Array.from(convertRadix(digits, num, 2 ** 8)); - }, - }; -} - -/** - * If both bases are power of same number (like `2**8 <-> 2**64`), - * there is a linear algorithm. For now we have implementation for power-of-two bases only. - * @__NO_SIDE_EFFECTS__ - */ -function radix2(bits: number, revPadding = false): Coder { - assertNumber(bits); - if (bits <= 0 || bits > 32) throw new Error('radix2: bits should be in (0..32]'); - if (radix2carry(8, bits) > 32 || radix2carry(bits, 8) > 32) - throw new Error('radix2: carry overflow'); - return { - encode: (bytes: Uint8Array) => { - if (!(bytes instanceof Uint8Array)) - throw new Error('radix2.encode input should be Uint8Array'); - return convertRadix2(Array.from(bytes), 8, bits, !revPadding); - }, - decode: (digits: number[]) => { - if (!Array.isArray(digits) || (digits.length && typeof digits[0] !== 'number')) - throw new Error('radix2.decode input should be array of strings'); - return Uint8Array.from(convertRadix2(digits, bits, 8, revPadding)); - }, - }; -} - -type ArgumentTypes = F extends (...args: infer A) => any ? A : never; -/** - * @__NO_SIDE_EFFECTS__ - */ -function unsafeWrapper any>(fn: T) { - if (typeof fn !== 'function') throw new Error('unsafeWrapper fn should be function'); - return function (...args: ArgumentTypes): ReturnType | void { - try { - return fn.apply(null, args); - } catch (e) {} - }; -} - -/** - * @__NO_SIDE_EFFECTS__ - */ -function checksum( - len: number, - fn: (data: Uint8Array) => Uint8Array -): Coder { - assertNumber(len); - if (typeof fn !== 'function') throw new Error('checksum fn should be function'); - return { - encode(data: Uint8Array) { - if (!(data instanceof Uint8Array)) - throw new Error('checksum.encode: input should be Uint8Array'); - const checksum = fn(data).slice(0, len); - const res = new Uint8Array(data.length + len); - res.set(data); - res.set(checksum, data.length); - return res; - }, - decode(data: Uint8Array) { - if (!(data instanceof Uint8Array)) - throw new Error('checksum.decode: input should be Uint8Array'); - const payload = data.slice(0, -len); - const newChecksum = fn(payload).slice(0, len); - const oldChecksum = data.slice(-len); - for (let i = 0; i < len; i++) - if (newChecksum[i] !== oldChecksum[i]) throw new Error('Invalid checksum'); - return payload; - }, - }; -} -export const utils = { alphabet, chain, checksum, radix, radix2, join, padding }; - -// RFC 4648 aka RFC 3548 -// --------------------- -export const base16: BytesCoder = /* @__PURE__ */ chain( - radix2(4), - alphabet('0123456789ABCDEF'), - join('') -); -export const base32: BytesCoder = /* @__PURE__ */ chain( - radix2(5), - alphabet('ABCDEFGHIJKLMNOPQRSTUVWXYZ234567'), - padding(5), - join('') -); -export const base32hex: BytesCoder = /* @__PURE__ */ chain( - radix2(5), - alphabet('0123456789ABCDEFGHIJKLMNOPQRSTUV'), - padding(5), - join('') -); -export const base32crockford: BytesCoder = /* @__PURE__ */ chain( - radix2(5), - alphabet('0123456789ABCDEFGHJKMNPQRSTVWXYZ'), - join(''), - normalize((s: string) => s.toUpperCase().replace(/O/g, '0').replace(/[IL]/g, '1')) -); -export const base64: BytesCoder = /* @__PURE__ */ chain( - radix2(6), - alphabet('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'), - padding(6), - join('') -); -export const base64url: BytesCoder = /* @__PURE__ */ chain( - radix2(6), - alphabet('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_'), - padding(6), - join('') -); -export const base64urlnopad: BytesCoder = /* @__PURE__ */ chain( - radix2(6), - alphabet('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_'), - join('') -); - -// base58 code -// ----------- -const genBase58 = (abc: string) => chain(radix(58), alphabet(abc), join('')); - -export const base58: BytesCoder = /* @__PURE__ */ genBase58( - '123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz' -); -export const base58flickr: BytesCoder = /* @__PURE__ */ genBase58( - '123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ' -); -export const base58xrp: BytesCoder = /* @__PURE__ */ genBase58( - 'rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz' -); - -// xmr ver is done in 8-byte blocks (which equals 11 chars in decoding). Last (non-full) block padded with '1' to size in XMR_BLOCK_LEN. -// Block encoding significantly reduces quadratic complexity of base58. - -// Data len (index) -> encoded block len -const XMR_BLOCK_LEN = [0, 2, 3, 5, 6, 7, 9, 10, 11]; -export const base58xmr: BytesCoder = { - encode(data: Uint8Array) { - let res = ''; - for (let i = 0; i < data.length; i += 8) { - const block = data.subarray(i, i + 8); - res += base58.encode(block).padStart(XMR_BLOCK_LEN[block.length]!, '1'); - } - return res; - }, - decode(str: string) { - let res: number[] = []; - for (let i = 0; i < str.length; i += 11) { - const slice = str.slice(i, i + 11); - const blockLen = XMR_BLOCK_LEN.indexOf(slice.length); - const block = base58.decode(slice); - for (let j = 0; j < block.length - blockLen; j++) { - if (block[j] !== 0) throw new Error('base58xmr: wrong padding'); - } - res = res.concat(Array.from(block.slice(block.length - blockLen))); - } - return Uint8Array.from(res); - }, -}; - -export const base58check = /* @__PURE__ */ (sha256: (data: Uint8Array) => Uint8Array): BytesCoder => - chain( - checksum(4, (data) => sha256(sha256(data))), - base58 - ); - -// Bech32 code -// ----------- -export interface Bech32Decoded { - prefix: Prefix; - words: number[]; -} -export interface Bech32DecodedWithArray { - prefix: Prefix; - words: number[]; - bytes: Uint8Array; -} - -const BECH_ALPHABET: Coder = /* @__PURE__ */ chain( - alphabet('qpzry9x8gf2tvdw0s3jn54khce6mua7l'), - join('') -); - -const POLYMOD_GENERATORS = [0x3b6a57b2, 0x26508e6d, 0x1ea119fa, 0x3d4233dd, 0x2a1462b3]; -/** - * @__NO_SIDE_EFFECTS__ - */ -function bech32Polymod(pre: number): number { - const b = pre >> 25; - let chk = (pre & 0x1ffffff) << 5; - for (let i = 0; i < POLYMOD_GENERATORS.length; i++) { - if (((b >> i) & 1) === 1) chk ^= POLYMOD_GENERATORS[i]!; - } - return chk; -} - -/** - * @__NO_SIDE_EFFECTS__ - */ -function bechChecksum(prefix: string, words: number[], encodingConst = 1): string { - const len = prefix.length; - let chk = 1; - for (let i = 0; i < len; i++) { - const c = prefix.charCodeAt(i); - if (c < 33 || c > 126) throw new Error(`Invalid prefix (${prefix})`); - chk = bech32Polymod(chk) ^ (c >> 5); - } - chk = bech32Polymod(chk); - for (let i = 0; i < len; i++) chk = bech32Polymod(chk) ^ (prefix.charCodeAt(i) & 0x1f); - for (let v of words) chk = bech32Polymod(chk) ^ v; - for (let i = 0; i < 6; i++) chk = bech32Polymod(chk); - chk ^= encodingConst; - return BECH_ALPHABET.encode(convertRadix2([chk % 2 ** 30], 30, 5, false)); -} - -/** - * @__NO_SIDE_EFFECTS__ - */ -function genBech32(encoding: 'bech32' | 'bech32m') { - const ENCODING_CONST = encoding === 'bech32' ? 1 : 0x2bc830a3; - const _words = radix2(5); - const fromWords = _words.decode; - const toWords = _words.encode; - const fromWordsUnsafe = unsafeWrapper(fromWords); - - function encode( - prefix: Prefix, - words: number[] | Uint8Array, - limit: number | false = 90 - ): `${Lowercase}1${string}` { - if (typeof prefix !== 'string') - throw new Error(`bech32.encode prefix should be string, not ${typeof prefix}`); - if (!Array.isArray(words) || (words.length && typeof words[0] !== 'number')) - throw new Error(`bech32.encode words should be array of numbers, not ${typeof words}`); - const actualLength = prefix.length + 7 + words.length; - if (limit !== false && actualLength > limit) - throw new TypeError(`Length ${actualLength} exceeds limit ${limit}`); - const lowered = prefix.toLowerCase(); - const sum = bechChecksum(lowered, words, ENCODING_CONST); - return `${lowered}1${BECH_ALPHABET.encode(words)}${sum}` as `${Lowercase}1${string}`; - } - - function decode( - str: `${Prefix}1${string}`, - limit?: number | false - ): Bech32Decoded; - function decode(str: string, limit?: number | false): Bech32Decoded; - function decode(str: string, limit: number | false = 90): Bech32Decoded { - if (typeof str !== 'string') - throw new Error(`bech32.decode input should be string, not ${typeof str}`); - if (str.length < 8 || (limit !== false && str.length > limit)) - throw new TypeError(`Wrong string length: ${str.length} (${str}). Expected (8..${limit})`); - // don't allow mixed case - const lowered = str.toLowerCase(); - if (str !== lowered && str !== str.toUpperCase()) - throw new Error(`String must be lowercase or uppercase`); - str = lowered; - const sepIndex = str.lastIndexOf('1'); - if (sepIndex === 0 || sepIndex === -1) - throw new Error(`Letter "1" must be present between prefix and data only`); - const prefix = str.slice(0, sepIndex); - const _words = str.slice(sepIndex + 1); - if (_words.length < 6) throw new Error('Data must be at least 6 characters long'); - const words = BECH_ALPHABET.decode(_words).slice(0, -6); - const sum = bechChecksum(prefix, words, ENCODING_CONST); - if (!_words.endsWith(sum)) throw new Error(`Invalid checksum in ${str}: expected "${sum}"`); - return { prefix, words }; - } - - const decodeUnsafe = unsafeWrapper(decode); - - function decodeToBytes(str: string): Bech32DecodedWithArray { - const { prefix, words } = decode(str, false); - return { prefix, words, bytes: fromWords(words) }; - } - - return { encode, decode, decodeToBytes, decodeUnsafe, fromWords, fromWordsUnsafe, toWords }; -} - -export const bech32 = /* @__PURE__ */ genBech32('bech32'); -export const bech32m = /* @__PURE__ */ genBech32('bech32m'); - -declare const TextEncoder: any; -declare const TextDecoder: any; - -export const utf8: BytesCoder = { - encode: (data) => new TextDecoder().decode(data), - decode: (str) => new TextEncoder().encode(str), -}; - -export const hex: BytesCoder = /* @__PURE__ */ chain( - radix2(4), - alphabet('0123456789abcdef'), - join(''), - normalize((s: string) => { - if (typeof s !== 'string' || s.length % 2) - throw new TypeError(`hex.decode: expected string, got ${typeof s} with length ${s.length}`); - return s.toLowerCase(); - }) -); - -// prettier-ignore -const CODERS = { - utf8, hex, base16, base32, base64, base64url, base58, base58xmr -}; -type CoderType = keyof typeof CODERS; -const coderTypeError = - 'Invalid encoding type. Available types: utf8, hex, base16, base32, base64, base64url, base58, base58xmr'; - -export const bytesToString = (type: CoderType, bytes: Uint8Array): string => { - if (typeof type !== 'string' || !CODERS.hasOwnProperty(type)) throw new TypeError(coderTypeError); - if (!(bytes instanceof Uint8Array)) throw new TypeError('bytesToString() expects Uint8Array'); - return CODERS[type].encode(bytes); -}; -export const str = bytesToString; // as in python, but for bytes only - -export const stringToBytes = (type: CoderType, str: string): Uint8Array => { - if (!CODERS.hasOwnProperty(type)) throw new TypeError(coderTypeError); - if (typeof str !== 'string') throw new TypeError('stringToBytes() expects string'); - return CODERS[type].decode(str); -}; -export const bytes = stringToBytes; diff --git a/node_modules/@scure/base/lib/esm/index.js b/node_modules/@scure/base/lib/esm/index.js deleted file mode 100644 index 315a3385..00000000 --- a/node_modules/@scure/base/lib/esm/index.js +++ /dev/null @@ -1,462 +0,0 @@ -/*! scure-base - MIT License (c) 2022 Paul Miller (paulmillr.com) */ -// Utilities -/** - * @__NO_SIDE_EFFECTS__ - */ -export function assertNumber(n) { - if (!Number.isSafeInteger(n)) - throw new Error(`Wrong integer: ${n}`); -} -/** - * @__NO_SIDE_EFFECTS__ - */ -function chain(...args) { - // Wrap call in closure so JIT can inline calls - const wrap = (a, b) => (c) => a(b(c)); - // Construct chain of args[-1].encode(args[-2].encode([...])) - const encode = Array.from(args) - .reverse() - .reduce((acc, i) => (acc ? wrap(acc, i.encode) : i.encode), undefined); - // Construct chain of args[0].decode(args[1].decode(...)) - const decode = args.reduce((acc, i) => (acc ? wrap(acc, i.decode) : i.decode), undefined); - return { encode, decode }; -} -/** - * Encodes integer radix representation to array of strings using alphabet and back - * @__NO_SIDE_EFFECTS__ - */ -function alphabet(alphabet) { - return { - encode: (digits) => { - if (!Array.isArray(digits) || (digits.length && typeof digits[0] !== 'number')) - throw new Error('alphabet.encode input should be an array of numbers'); - return digits.map((i) => { - assertNumber(i); - if (i < 0 || i >= alphabet.length) - throw new Error(`Digit index outside alphabet: ${i} (alphabet: ${alphabet.length})`); - return alphabet[i]; - }); - }, - decode: (input) => { - if (!Array.isArray(input) || (input.length && typeof input[0] !== 'string')) - throw new Error('alphabet.decode input should be array of strings'); - return input.map((letter) => { - if (typeof letter !== 'string') - throw new Error(`alphabet.decode: not string element=${letter}`); - const index = alphabet.indexOf(letter); - if (index === -1) - throw new Error(`Unknown letter: "${letter}". Allowed: ${alphabet}`); - return index; - }); - }, - }; -} -/** - * @__NO_SIDE_EFFECTS__ - */ -function join(separator = '') { - if (typeof separator !== 'string') - throw new Error('join separator should be string'); - return { - encode: (from) => { - if (!Array.isArray(from) || (from.length && typeof from[0] !== 'string')) - throw new Error('join.encode input should be array of strings'); - for (let i of from) - if (typeof i !== 'string') - throw new Error(`join.encode: non-string input=${i}`); - return from.join(separator); - }, - decode: (to) => { - if (typeof to !== 'string') - throw new Error('join.decode input should be string'); - return to.split(separator); - }, - }; -} -/** - * Pad strings array so it has integer number of bits - * @__NO_SIDE_EFFECTS__ - */ -function padding(bits, chr = '=') { - assertNumber(bits); - if (typeof chr !== 'string') - throw new Error('padding chr should be string'); - return { - encode(data) { - if (!Array.isArray(data) || (data.length && typeof data[0] !== 'string')) - throw new Error('padding.encode input should be array of strings'); - for (let i of data) - if (typeof i !== 'string') - throw new Error(`padding.encode: non-string input=${i}`); - while ((data.length * bits) % 8) - data.push(chr); - return data; - }, - decode(input) { - if (!Array.isArray(input) || (input.length && typeof input[0] !== 'string')) - throw new Error('padding.encode input should be array of strings'); - for (let i of input) - if (typeof i !== 'string') - throw new Error(`padding.decode: non-string input=${i}`); - let end = input.length; - if ((end * bits) % 8) - throw new Error('Invalid padding: string should have whole number of bytes'); - for (; end > 0 && input[end - 1] === chr; end--) { - if (!(((end - 1) * bits) % 8)) - throw new Error('Invalid padding: string has too much padding'); - } - return input.slice(0, end); - }, - }; -} -/** - * @__NO_SIDE_EFFECTS__ - */ -function normalize(fn) { - if (typeof fn !== 'function') - throw new Error('normalize fn should be function'); - return { encode: (from) => from, decode: (to) => fn(to) }; -} -/** - * Slow: O(n^2) time complexity - * @__NO_SIDE_EFFECTS__ - */ -function convertRadix(data, from, to) { - // base 1 is impossible - if (from < 2) - throw new Error(`convertRadix: wrong from=${from}, base cannot be less than 2`); - if (to < 2) - throw new Error(`convertRadix: wrong to=${to}, base cannot be less than 2`); - if (!Array.isArray(data)) - throw new Error('convertRadix: data should be array'); - if (!data.length) - return []; - let pos = 0; - const res = []; - const digits = Array.from(data); - digits.forEach((d) => { - assertNumber(d); - if (d < 0 || d >= from) - throw new Error(`Wrong integer: ${d}`); - }); - while (true) { - let carry = 0; - let done = true; - for (let i = pos; i < digits.length; i++) { - const digit = digits[i]; - const digitBase = from * carry + digit; - if (!Number.isSafeInteger(digitBase) || - (from * carry) / from !== carry || - digitBase - digit !== from * carry) { - throw new Error('convertRadix: carry overflow'); - } - carry = digitBase % to; - const rounded = Math.floor(digitBase / to); - digits[i] = rounded; - if (!Number.isSafeInteger(rounded) || rounded * to + carry !== digitBase) - throw new Error('convertRadix: carry overflow'); - if (!done) - continue; - else if (!rounded) - pos = i; - else - done = false; - } - res.push(carry); - if (done) - break; - } - for (let i = 0; i < data.length - 1 && data[i] === 0; i++) - res.push(0); - return res.reverse(); -} -const gcd = /* @__NO_SIDE_EFFECTS__ */ (a, b) => (!b ? a : gcd(b, a % b)); -const radix2carry = /*@__NO_SIDE_EFFECTS__ */ (from, to) => from + (to - gcd(from, to)); -/** - * Implemented with numbers, because BigInt is 5x slower - * @__NO_SIDE_EFFECTS__ - */ -function convertRadix2(data, from, to, padding) { - if (!Array.isArray(data)) - throw new Error('convertRadix2: data should be array'); - if (from <= 0 || from > 32) - throw new Error(`convertRadix2: wrong from=${from}`); - if (to <= 0 || to > 32) - throw new Error(`convertRadix2: wrong to=${to}`); - if (radix2carry(from, to) > 32) { - throw new Error(`convertRadix2: carry overflow from=${from} to=${to} carryBits=${radix2carry(from, to)}`); - } - let carry = 0; - let pos = 0; // bitwise position in current element - const mask = 2 ** to - 1; - const res = []; - for (const n of data) { - assertNumber(n); - if (n >= 2 ** from) - throw new Error(`convertRadix2: invalid data word=${n} from=${from}`); - carry = (carry << from) | n; - if (pos + from > 32) - throw new Error(`convertRadix2: carry overflow pos=${pos} from=${from}`); - pos += from; - for (; pos >= to; pos -= to) - res.push(((carry >> (pos - to)) & mask) >>> 0); - carry &= 2 ** pos - 1; // clean carry, otherwise it will cause overflow - } - carry = (carry << (to - pos)) & mask; - if (!padding && pos >= from) - throw new Error('Excess padding'); - if (!padding && carry) - throw new Error(`Non-zero padding: ${carry}`); - if (padding && pos > 0) - res.push(carry >>> 0); - return res; -} -/** - * @__NO_SIDE_EFFECTS__ - */ -function radix(num) { - assertNumber(num); - return { - encode: (bytes) => { - if (!(bytes instanceof Uint8Array)) - throw new Error('radix.encode input should be Uint8Array'); - return convertRadix(Array.from(bytes), 2 ** 8, num); - }, - decode: (digits) => { - if (!Array.isArray(digits) || (digits.length && typeof digits[0] !== 'number')) - throw new Error('radix.decode input should be array of strings'); - return Uint8Array.from(convertRadix(digits, num, 2 ** 8)); - }, - }; -} -/** - * If both bases are power of same number (like `2**8 <-> 2**64`), - * there is a linear algorithm. For now we have implementation for power-of-two bases only. - * @__NO_SIDE_EFFECTS__ - */ -function radix2(bits, revPadding = false) { - assertNumber(bits); - if (bits <= 0 || bits > 32) - throw new Error('radix2: bits should be in (0..32]'); - if (radix2carry(8, bits) > 32 || radix2carry(bits, 8) > 32) - throw new Error('radix2: carry overflow'); - return { - encode: (bytes) => { - if (!(bytes instanceof Uint8Array)) - throw new Error('radix2.encode input should be Uint8Array'); - return convertRadix2(Array.from(bytes), 8, bits, !revPadding); - }, - decode: (digits) => { - if (!Array.isArray(digits) || (digits.length && typeof digits[0] !== 'number')) - throw new Error('radix2.decode input should be array of strings'); - return Uint8Array.from(convertRadix2(digits, bits, 8, revPadding)); - }, - }; -} -/** - * @__NO_SIDE_EFFECTS__ - */ -function unsafeWrapper(fn) { - if (typeof fn !== 'function') - throw new Error('unsafeWrapper fn should be function'); - return function (...args) { - try { - return fn.apply(null, args); - } - catch (e) { } - }; -} -/** - * @__NO_SIDE_EFFECTS__ - */ -function checksum(len, fn) { - assertNumber(len); - if (typeof fn !== 'function') - throw new Error('checksum fn should be function'); - return { - encode(data) { - if (!(data instanceof Uint8Array)) - throw new Error('checksum.encode: input should be Uint8Array'); - const checksum = fn(data).slice(0, len); - const res = new Uint8Array(data.length + len); - res.set(data); - res.set(checksum, data.length); - return res; - }, - decode(data) { - if (!(data instanceof Uint8Array)) - throw new Error('checksum.decode: input should be Uint8Array'); - const payload = data.slice(0, -len); - const newChecksum = fn(payload).slice(0, len); - const oldChecksum = data.slice(-len); - for (let i = 0; i < len; i++) - if (newChecksum[i] !== oldChecksum[i]) - throw new Error('Invalid checksum'); - return payload; - }, - }; -} -export const utils = { alphabet, chain, checksum, radix, radix2, join, padding }; -// RFC 4648 aka RFC 3548 -// --------------------- -export const base16 = /* @__PURE__ */ chain(radix2(4), alphabet('0123456789ABCDEF'), join('')); -export const base32 = /* @__PURE__ */ chain(radix2(5), alphabet('ABCDEFGHIJKLMNOPQRSTUVWXYZ234567'), padding(5), join('')); -export const base32hex = /* @__PURE__ */ chain(radix2(5), alphabet('0123456789ABCDEFGHIJKLMNOPQRSTUV'), padding(5), join('')); -export const base32crockford = /* @__PURE__ */ chain(radix2(5), alphabet('0123456789ABCDEFGHJKMNPQRSTVWXYZ'), join(''), normalize((s) => s.toUpperCase().replace(/O/g, '0').replace(/[IL]/g, '1'))); -export const base64 = /* @__PURE__ */ chain(radix2(6), alphabet('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'), padding(6), join('')); -export const base64url = /* @__PURE__ */ chain(radix2(6), alphabet('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_'), padding(6), join('')); -export const base64urlnopad = /* @__PURE__ */ chain(radix2(6), alphabet('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_'), join('')); -// base58 code -// ----------- -const genBase58 = (abc) => chain(radix(58), alphabet(abc), join('')); -export const base58 = /* @__PURE__ */ genBase58('123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz'); -export const base58flickr = /* @__PURE__ */ genBase58('123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ'); -export const base58xrp = /* @__PURE__ */ genBase58('rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz'); -// xmr ver is done in 8-byte blocks (which equals 11 chars in decoding). Last (non-full) block padded with '1' to size in XMR_BLOCK_LEN. -// Block encoding significantly reduces quadratic complexity of base58. -// Data len (index) -> encoded block len -const XMR_BLOCK_LEN = [0, 2, 3, 5, 6, 7, 9, 10, 11]; -export const base58xmr = { - encode(data) { - let res = ''; - for (let i = 0; i < data.length; i += 8) { - const block = data.subarray(i, i + 8); - res += base58.encode(block).padStart(XMR_BLOCK_LEN[block.length], '1'); - } - return res; - }, - decode(str) { - let res = []; - for (let i = 0; i < str.length; i += 11) { - const slice = str.slice(i, i + 11); - const blockLen = XMR_BLOCK_LEN.indexOf(slice.length); - const block = base58.decode(slice); - for (let j = 0; j < block.length - blockLen; j++) { - if (block[j] !== 0) - throw new Error('base58xmr: wrong padding'); - } - res = res.concat(Array.from(block.slice(block.length - blockLen))); - } - return Uint8Array.from(res); - }, -}; -export const base58check = /* @__PURE__ */ (sha256) => chain(checksum(4, (data) => sha256(sha256(data))), base58); -const BECH_ALPHABET = /* @__PURE__ */ chain(alphabet('qpzry9x8gf2tvdw0s3jn54khce6mua7l'), join('')); -const POLYMOD_GENERATORS = [0x3b6a57b2, 0x26508e6d, 0x1ea119fa, 0x3d4233dd, 0x2a1462b3]; -/** - * @__NO_SIDE_EFFECTS__ - */ -function bech32Polymod(pre) { - const b = pre >> 25; - let chk = (pre & 0x1ffffff) << 5; - for (let i = 0; i < POLYMOD_GENERATORS.length; i++) { - if (((b >> i) & 1) === 1) - chk ^= POLYMOD_GENERATORS[i]; - } - return chk; -} -/** - * @__NO_SIDE_EFFECTS__ - */ -function bechChecksum(prefix, words, encodingConst = 1) { - const len = prefix.length; - let chk = 1; - for (let i = 0; i < len; i++) { - const c = prefix.charCodeAt(i); - if (c < 33 || c > 126) - throw new Error(`Invalid prefix (${prefix})`); - chk = bech32Polymod(chk) ^ (c >> 5); - } - chk = bech32Polymod(chk); - for (let i = 0; i < len; i++) - chk = bech32Polymod(chk) ^ (prefix.charCodeAt(i) & 0x1f); - for (let v of words) - chk = bech32Polymod(chk) ^ v; - for (let i = 0; i < 6; i++) - chk = bech32Polymod(chk); - chk ^= encodingConst; - return BECH_ALPHABET.encode(convertRadix2([chk % 2 ** 30], 30, 5, false)); -} -/** - * @__NO_SIDE_EFFECTS__ - */ -function genBech32(encoding) { - const ENCODING_CONST = encoding === 'bech32' ? 1 : 0x2bc830a3; - const _words = radix2(5); - const fromWords = _words.decode; - const toWords = _words.encode; - const fromWordsUnsafe = unsafeWrapper(fromWords); - function encode(prefix, words, limit = 90) { - if (typeof prefix !== 'string') - throw new Error(`bech32.encode prefix should be string, not ${typeof prefix}`); - if (!Array.isArray(words) || (words.length && typeof words[0] !== 'number')) - throw new Error(`bech32.encode words should be array of numbers, not ${typeof words}`); - const actualLength = prefix.length + 7 + words.length; - if (limit !== false && actualLength > limit) - throw new TypeError(`Length ${actualLength} exceeds limit ${limit}`); - const lowered = prefix.toLowerCase(); - const sum = bechChecksum(lowered, words, ENCODING_CONST); - return `${lowered}1${BECH_ALPHABET.encode(words)}${sum}`; - } - function decode(str, limit = 90) { - if (typeof str !== 'string') - throw new Error(`bech32.decode input should be string, not ${typeof str}`); - if (str.length < 8 || (limit !== false && str.length > limit)) - throw new TypeError(`Wrong string length: ${str.length} (${str}). Expected (8..${limit})`); - // don't allow mixed case - const lowered = str.toLowerCase(); - if (str !== lowered && str !== str.toUpperCase()) - throw new Error(`String must be lowercase or uppercase`); - str = lowered; - const sepIndex = str.lastIndexOf('1'); - if (sepIndex === 0 || sepIndex === -1) - throw new Error(`Letter "1" must be present between prefix and data only`); - const prefix = str.slice(0, sepIndex); - const _words = str.slice(sepIndex + 1); - if (_words.length < 6) - throw new Error('Data must be at least 6 characters long'); - const words = BECH_ALPHABET.decode(_words).slice(0, -6); - const sum = bechChecksum(prefix, words, ENCODING_CONST); - if (!_words.endsWith(sum)) - throw new Error(`Invalid checksum in ${str}: expected "${sum}"`); - return { prefix, words }; - } - const decodeUnsafe = unsafeWrapper(decode); - function decodeToBytes(str) { - const { prefix, words } = decode(str, false); - return { prefix, words, bytes: fromWords(words) }; - } - return { encode, decode, decodeToBytes, decodeUnsafe, fromWords, fromWordsUnsafe, toWords }; -} -export const bech32 = /* @__PURE__ */ genBech32('bech32'); -export const bech32m = /* @__PURE__ */ genBech32('bech32m'); -export const utf8 = { - encode: (data) => new TextDecoder().decode(data), - decode: (str) => new TextEncoder().encode(str), -}; -export const hex = /* @__PURE__ */ chain(radix2(4), alphabet('0123456789abcdef'), join(''), normalize((s) => { - if (typeof s !== 'string' || s.length % 2) - throw new TypeError(`hex.decode: expected string, got ${typeof s} with length ${s.length}`); - return s.toLowerCase(); -})); -// prettier-ignore -const CODERS = { - utf8, hex, base16, base32, base64, base64url, base58, base58xmr -}; -const coderTypeError = 'Invalid encoding type. Available types: utf8, hex, base16, base32, base64, base64url, base58, base58xmr'; -export const bytesToString = (type, bytes) => { - if (typeof type !== 'string' || !CODERS.hasOwnProperty(type)) - throw new TypeError(coderTypeError); - if (!(bytes instanceof Uint8Array)) - throw new TypeError('bytesToString() expects Uint8Array'); - return CODERS[type].encode(bytes); -}; -export const str = bytesToString; // as in python, but for bytes only -export const stringToBytes = (type, str) => { - if (!CODERS.hasOwnProperty(type)) - throw new TypeError(coderTypeError); - if (typeof str !== 'string') - throw new TypeError('stringToBytes() expects string'); - return CODERS[type].decode(str); -}; -export const bytes = stringToBytes; diff --git a/node_modules/@scure/base/lib/esm/package.json b/node_modules/@scure/base/lib/esm/package.json deleted file mode 100644 index 87696418..00000000 --- a/node_modules/@scure/base/lib/esm/package.json +++ /dev/null @@ -1 +0,0 @@ -{ "type": "module", "sideEffects": false } diff --git a/node_modules/@scure/base/lib/index.d.ts b/node_modules/@scure/base/lib/index.d.ts deleted file mode 100644 index 33082b6e..00000000 --- a/node_modules/@scure/base/lib/index.d.ts +++ /dev/null @@ -1,128 +0,0 @@ -/*! scure-base - MIT License (c) 2022 Paul Miller (paulmillr.com) */ -/** - * @__NO_SIDE_EFFECTS__ - */ -export declare function assertNumber(n: number): void; -export interface Coder { - encode(from: F): T; - decode(to: T): F; -} -export interface BytesCoder extends Coder { - encode: (data: Uint8Array) => string; - decode: (str: string) => Uint8Array; -} -type Chain = [Coder, ...Coder[]]; -type Input = F extends Coder ? T : never; -type Output = F extends Coder ? T : never; -type First = T extends [infer U, ...any[]] ? U : never; -type Last = T extends [...any[], infer U] ? U : never; -type Tail = T extends [any, ...infer U] ? U : never; -type AsChain> = { - [K in keyof C]: Coder, Input>; -}; -/** - * @__NO_SIDE_EFFECTS__ - */ -declare function chain>(...args: T): Coder>, Output>>; -type Alphabet = string[] | string; -/** - * Encodes integer radix representation to array of strings using alphabet and back - * @__NO_SIDE_EFFECTS__ - */ -declare function alphabet(alphabet: Alphabet): Coder; -/** - * @__NO_SIDE_EFFECTS__ - */ -declare function join(separator?: string): Coder; -/** - * Pad strings array so it has integer number of bits - * @__NO_SIDE_EFFECTS__ - */ -declare function padding(bits: number, chr?: string): Coder; -/** - * @__NO_SIDE_EFFECTS__ - */ -declare function radix(num: number): Coder; -/** - * If both bases are power of same number (like `2**8 <-> 2**64`), - * there is a linear algorithm. For now we have implementation for power-of-two bases only. - * @__NO_SIDE_EFFECTS__ - */ -declare function radix2(bits: number, revPadding?: boolean): Coder; -/** - * @__NO_SIDE_EFFECTS__ - */ -declare function checksum(len: number, fn: (data: Uint8Array) => Uint8Array): Coder; -export declare const utils: { - alphabet: typeof alphabet; - chain: typeof chain; - checksum: typeof checksum; - radix: typeof radix; - radix2: typeof radix2; - join: typeof join; - padding: typeof padding; -}; -export declare const base16: BytesCoder; -export declare const base32: BytesCoder; -export declare const base32hex: BytesCoder; -export declare const base32crockford: BytesCoder; -export declare const base64: BytesCoder; -export declare const base64url: BytesCoder; -export declare const base64urlnopad: BytesCoder; -export declare const base58: BytesCoder; -export declare const base58flickr: BytesCoder; -export declare const base58xrp: BytesCoder; -export declare const base58xmr: BytesCoder; -export declare const base58check: (sha256: (data: Uint8Array) => Uint8Array) => BytesCoder; -export interface Bech32Decoded { - prefix: Prefix; - words: number[]; -} -export interface Bech32DecodedWithArray { - prefix: Prefix; - words: number[]; - bytes: Uint8Array; -} -export declare const bech32: { - encode: (prefix: Prefix, words: number[] | Uint8Array, limit?: number | false) => `${Lowercase}1${string}`; - decode: { - (str: `${Prefix_1}1${string}`, limit?: number | false): Bech32Decoded; - (str: string, limit?: number | false): Bech32Decoded; - }; - decodeToBytes: (str: string) => Bech32DecodedWithArray; - decodeUnsafe: (str: string, limit?: number | false | undefined) => void | Bech32Decoded; - fromWords: (to: number[]) => Uint8Array; - fromWordsUnsafe: (to: number[]) => void | Uint8Array; - toWords: (from: Uint8Array) => number[]; -}; -export declare const bech32m: { - encode: (prefix: Prefix, words: number[] | Uint8Array, limit?: number | false) => `${Lowercase}1${string}`; - decode: { - (str: `${Prefix_1}1${string}`, limit?: number | false): Bech32Decoded; - (str: string, limit?: number | false): Bech32Decoded; - }; - decodeToBytes: (str: string) => Bech32DecodedWithArray; - decodeUnsafe: (str: string, limit?: number | false | undefined) => void | Bech32Decoded; - fromWords: (to: number[]) => Uint8Array; - fromWordsUnsafe: (to: number[]) => void | Uint8Array; - toWords: (from: Uint8Array) => number[]; -}; -export declare const utf8: BytesCoder; -export declare const hex: BytesCoder; -declare const CODERS: { - utf8: BytesCoder; - hex: BytesCoder; - base16: BytesCoder; - base32: BytesCoder; - base64: BytesCoder; - base64url: BytesCoder; - base58: BytesCoder; - base58xmr: BytesCoder; -}; -type CoderType = keyof typeof CODERS; -export declare const bytesToString: (type: CoderType, bytes: Uint8Array) => string; -export declare const str: (type: CoderType, bytes: Uint8Array) => string; -export declare const stringToBytes: (type: CoderType, str: string) => Uint8Array; -export declare const bytes: (type: CoderType, str: string) => Uint8Array; -export {}; -//# sourceMappingURL=index.d.ts.map \ No newline at end of file diff --git a/node_modules/@scure/base/lib/index.d.ts.map b/node_modules/@scure/base/lib/index.d.ts.map deleted file mode 100644 index dcd751d0..00000000 --- a/node_modules/@scure/base/lib/index.d.ts.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":"AAAA,oEAAoE;AAGpE;;GAEG;AACH,wBAAgB,YAAY,CAAC,CAAC,EAAE,MAAM,QAErC;AACD,MAAM,WAAW,KAAK,CAAC,CAAC,EAAE,CAAC;IACzB,MAAM,CAAC,IAAI,EAAE,CAAC,GAAG,CAAC,CAAC;IACnB,MAAM,CAAC,EAAE,EAAE,CAAC,GAAG,CAAC,CAAC;CAClB;AAED,MAAM,WAAW,UAAW,SAAQ,KAAK,CAAC,UAAU,EAAE,MAAM,CAAC;IAC3D,MAAM,EAAE,CAAC,IAAI,EAAE,UAAU,KAAK,MAAM,CAAC;IACrC,MAAM,EAAE,CAAC,GAAG,EAAE,MAAM,KAAK,UAAU,CAAC;CACrC;AAID,KAAK,KAAK,GAAG,CAAC,KAAK,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,GAAG,KAAK,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,CAAC,CAAC;AAErD,KAAK,KAAK,CAAC,CAAC,IAAI,CAAC,SAAS,KAAK,CAAC,MAAM,CAAC,EAAE,GAAG,CAAC,GAAG,CAAC,GAAG,KAAK,CAAC;AAC1D,KAAK,MAAM,CAAC,CAAC,IAAI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EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,EAAE,CAAC;CACjB;AACD,MAAM,WAAW,sBAAsB,CAAC,MAAM,SAAS,MAAM,GAAG,MAAM;IACpE,MAAM,EAAE,MAAM,CAAC;IACf,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,KAAK,EAAE,UAAU,CAAC;CACnB;AAuGD,eAAO,MAAM,MAAM;2DApDR,MAAM,EAAE,GAAG,UAAU,UACrB,MAAM,GAAG,KAAK;;wEAgBb,MAAM,GAAG,KAAK;cAEH,MAAM,UAAU,MAAM,GAAG,KAAK,GAAG,aAAa;;yBAyBvC,MAAM,KAAG,sBAAsB;;;;;CAQJ,CAAC;AAC1D,eAAO,MAAM,OAAO;2DArDT,MAAM,EAAE,GAAG,UAAU,UACrB,MAAM,GAAG,KAAK;;wEAgBb,MAAM,GAAG,KAAK;cAEH,MAAM,UAAU,MAAM,GAAG,KAAK,GAAG,aAAa;;yBAyBvC,MAAM,KAAG,sBAAsB;;;;;CASF,CAAC;AAK5D,eAAO,MAAM,IAAI,EAAE,UAGlB,CAAC;AAEF,eAAO,MAAM,GAAG,EAAE,UASjB,CAAC;AAGF,QAAA,MAAM,MAAM;;;;;;;;;CAEX,CAAC;AACF,KAAK,SAAS,GAAG,MAAM,OAAO,MAAM,CAAC;AAIrC,eAAO,MAAM,aAAa,SAAU,SAAS,SAAS,UAAU,KAAG,MAIlE,CAAC;AACF,eAAO,MAAM,GAAG,SALoB,SAAS,SAAS,UAAU,KAAG,MAKnC,CAAC;AAEjC,eAAO,MAAM,aAAa,SAAU,SAAS,OAAO,MAAM,KAAG,UAI5D,CAAC;AACF,eAAO,MAAM,KAAK,SALkB,SAAS,OAAO,MAAM,KAAG,UAK3B,CAAC"} \ No newline at end of file diff --git a/node_modules/@scure/base/lib/index.js b/node_modules/@scure/base/lib/index.js deleted file mode 100644 index a52c4eae..00000000 --- a/node_modules/@scure/base/lib/index.js +++ /dev/null @@ -1,469 +0,0 @@ -"use strict"; -/*! scure-base - MIT License (c) 2022 Paul Miller (paulmillr.com) */ -Object.defineProperty(exports, "__esModule", { value: true }); -exports.bytes = exports.stringToBytes = exports.str = exports.bytesToString = exports.hex = exports.utf8 = exports.bech32m = exports.bech32 = exports.base58check = exports.base58xmr = exports.base58xrp = exports.base58flickr = exports.base58 = exports.base64urlnopad = exports.base64url = exports.base64 = exports.base32crockford = exports.base32hex = exports.base32 = exports.base16 = exports.utils = exports.assertNumber = void 0; -// Utilities -/** - * @__NO_SIDE_EFFECTS__ - */ -function assertNumber(n) { - if (!Number.isSafeInteger(n)) - throw new Error(`Wrong integer: ${n}`); -} -exports.assertNumber = assertNumber; -/** - * @__NO_SIDE_EFFECTS__ - */ -function chain(...args) { - // Wrap call in closure so JIT can inline calls - const wrap = (a, b) => (c) => a(b(c)); - // Construct chain of args[-1].encode(args[-2].encode([...])) - const encode = Array.from(args) - .reverse() - .reduce((acc, i) => (acc ? wrap(acc, i.encode) : i.encode), undefined); - // Construct chain of args[0].decode(args[1].decode(...)) - const decode = args.reduce((acc, i) => (acc ? wrap(acc, i.decode) : i.decode), undefined); - return { encode, decode }; -} -/** - * Encodes integer radix representation to array of strings using alphabet and back - * @__NO_SIDE_EFFECTS__ - */ -function alphabet(alphabet) { - return { - encode: (digits) => { - if (!Array.isArray(digits) || (digits.length && typeof digits[0] !== 'number')) - throw new Error('alphabet.encode input should be an array of numbers'); - return digits.map((i) => { - assertNumber(i); - if (i < 0 || i >= alphabet.length) - throw new Error(`Digit index outside alphabet: ${i} (alphabet: ${alphabet.length})`); - return alphabet[i]; - }); - }, - decode: (input) => { - if (!Array.isArray(input) || (input.length && typeof input[0] !== 'string')) - throw new Error('alphabet.decode input should be array of strings'); - return input.map((letter) => { - if (typeof letter !== 'string') - throw new Error(`alphabet.decode: not string element=${letter}`); - const index = alphabet.indexOf(letter); - if (index === -1) - throw new Error(`Unknown letter: "${letter}". Allowed: ${alphabet}`); - return index; - }); - }, - }; -} -/** - * @__NO_SIDE_EFFECTS__ - */ -function join(separator = '') { - if (typeof separator !== 'string') - throw new Error('join separator should be string'); - return { - encode: (from) => { - if (!Array.isArray(from) || (from.length && typeof from[0] !== 'string')) - throw new Error('join.encode input should be array of strings'); - for (let i of from) - if (typeof i !== 'string') - throw new Error(`join.encode: non-string input=${i}`); - return from.join(separator); - }, - decode: (to) => { - if (typeof to !== 'string') - throw new Error('join.decode input should be string'); - return to.split(separator); - }, - }; -} -/** - * Pad strings array so it has integer number of bits - * @__NO_SIDE_EFFECTS__ - */ -function padding(bits, chr = '=') { - assertNumber(bits); - if (typeof chr !== 'string') - throw new Error('padding chr should be string'); - return { - encode(data) { - if (!Array.isArray(data) || (data.length && typeof data[0] !== 'string')) - throw new Error('padding.encode input should be array of strings'); - for (let i of data) - if (typeof i !== 'string') - throw new Error(`padding.encode: non-string input=${i}`); - while ((data.length * bits) % 8) - data.push(chr); - return data; - }, - decode(input) { - if (!Array.isArray(input) || (input.length && typeof input[0] !== 'string')) - throw new Error('padding.encode input should be array of strings'); - for (let i of input) - if (typeof i !== 'string') - throw new Error(`padding.decode: non-string input=${i}`); - let end = input.length; - if ((end * bits) % 8) - throw new Error('Invalid padding: string should have whole number of bytes'); - for (; end > 0 && input[end - 1] === chr; end--) { - if (!(((end - 1) * bits) % 8)) - throw new Error('Invalid padding: string has too much padding'); - } - return input.slice(0, end); - }, - }; -} -/** - * @__NO_SIDE_EFFECTS__ - */ -function normalize(fn) { - if (typeof fn !== 'function') - throw new Error('normalize fn should be function'); - return { encode: (from) => from, decode: (to) => fn(to) }; -} -/** - * Slow: O(n^2) time complexity - * @__NO_SIDE_EFFECTS__ - */ -function convertRadix(data, from, to) { - // base 1 is impossible - if (from < 2) - throw new Error(`convertRadix: wrong from=${from}, base cannot be less than 2`); - if (to < 2) - throw new Error(`convertRadix: wrong to=${to}, base cannot be less than 2`); - if (!Array.isArray(data)) - throw new Error('convertRadix: data should be array'); - if (!data.length) - return []; - let pos = 0; - const res = []; - const digits = Array.from(data); - digits.forEach((d) => { - assertNumber(d); - if (d < 0 || d >= from) - throw new Error(`Wrong integer: ${d}`); - }); - while (true) { - let carry = 0; - let done = true; - for (let i = pos; i < digits.length; i++) { - const digit = digits[i]; - const digitBase = from * carry + digit; - if (!Number.isSafeInteger(digitBase) || - (from * carry) / from !== carry || - digitBase - digit !== from * carry) { - throw new Error('convertRadix: carry overflow'); - } - carry = digitBase % to; - const rounded = Math.floor(digitBase / to); - digits[i] = rounded; - if (!Number.isSafeInteger(rounded) || rounded * to + carry !== digitBase) - throw new Error('convertRadix: carry overflow'); - if (!done) - continue; - else if (!rounded) - pos = i; - else - done = false; - } - res.push(carry); - if (done) - break; - } - for (let i = 0; i < data.length - 1 && data[i] === 0; i++) - res.push(0); - return res.reverse(); -} -const gcd = /* @__NO_SIDE_EFFECTS__ */ (a, b) => (!b ? a : gcd(b, a % b)); -const radix2carry = /*@__NO_SIDE_EFFECTS__ */ (from, to) => from + (to - gcd(from, to)); -/** - * Implemented with numbers, because BigInt is 5x slower - * @__NO_SIDE_EFFECTS__ - */ -function convertRadix2(data, from, to, padding) { - if (!Array.isArray(data)) - throw new Error('convertRadix2: data should be array'); - if (from <= 0 || from > 32) - throw new Error(`convertRadix2: wrong from=${from}`); - if (to <= 0 || to > 32) - throw new Error(`convertRadix2: wrong to=${to}`); - if (radix2carry(from, to) > 32) { - throw new Error(`convertRadix2: carry overflow from=${from} to=${to} carryBits=${radix2carry(from, to)}`); - } - let carry = 0; - let pos = 0; // bitwise position in current element - const mask = 2 ** to - 1; - const res = []; - for (const n of data) { - assertNumber(n); - if (n >= 2 ** from) - throw new Error(`convertRadix2: invalid data word=${n} from=${from}`); - carry = (carry << from) | n; - if (pos + from > 32) - throw new Error(`convertRadix2: carry overflow pos=${pos} from=${from}`); - pos += from; - for (; pos >= to; pos -= to) - res.push(((carry >> (pos - to)) & mask) >>> 0); - carry &= 2 ** pos - 1; // clean carry, otherwise it will cause overflow - } - carry = (carry << (to - pos)) & mask; - if (!padding && pos >= from) - throw new Error('Excess padding'); - if (!padding && carry) - throw new Error(`Non-zero padding: ${carry}`); - if (padding && pos > 0) - res.push(carry >>> 0); - return res; -} -/** - * @__NO_SIDE_EFFECTS__ - */ -function radix(num) { - assertNumber(num); - return { - encode: (bytes) => { - if (!(bytes instanceof Uint8Array)) - throw new Error('radix.encode input should be Uint8Array'); - return convertRadix(Array.from(bytes), 2 ** 8, num); - }, - decode: (digits) => { - if (!Array.isArray(digits) || (digits.length && typeof digits[0] !== 'number')) - throw new Error('radix.decode input should be array of strings'); - return Uint8Array.from(convertRadix(digits, num, 2 ** 8)); - }, - }; -} -/** - * If both bases are power of same number (like `2**8 <-> 2**64`), - * there is a linear algorithm. For now we have implementation for power-of-two bases only. - * @__NO_SIDE_EFFECTS__ - */ -function radix2(bits, revPadding = false) { - assertNumber(bits); - if (bits <= 0 || bits > 32) - throw new Error('radix2: bits should be in (0..32]'); - if (radix2carry(8, bits) > 32 || radix2carry(bits, 8) > 32) - throw new Error('radix2: carry overflow'); - return { - encode: (bytes) => { - if (!(bytes instanceof Uint8Array)) - throw new Error('radix2.encode input should be Uint8Array'); - return convertRadix2(Array.from(bytes), 8, bits, !revPadding); - }, - decode: (digits) => { - if (!Array.isArray(digits) || (digits.length && typeof digits[0] !== 'number')) - throw new Error('radix2.decode input should be array of strings'); - return Uint8Array.from(convertRadix2(digits, bits, 8, revPadding)); - }, - }; -} -/** - * @__NO_SIDE_EFFECTS__ - */ -function unsafeWrapper(fn) { - if (typeof fn !== 'function') - throw new Error('unsafeWrapper fn should be function'); - return function (...args) { - try { - return fn.apply(null, args); - } - catch (e) { } - }; -} -/** - * @__NO_SIDE_EFFECTS__ - */ -function checksum(len, fn) { - assertNumber(len); - if (typeof fn !== 'function') - throw new Error('checksum fn should be function'); - return { - encode(data) { - if (!(data instanceof Uint8Array)) - throw new Error('checksum.encode: input should be Uint8Array'); - const checksum = fn(data).slice(0, len); - const res = new Uint8Array(data.length + len); - res.set(data); - res.set(checksum, data.length); - return res; - }, - decode(data) { - if (!(data instanceof Uint8Array)) - throw new Error('checksum.decode: input should be Uint8Array'); - const payload = data.slice(0, -len); - const newChecksum = fn(payload).slice(0, len); - const oldChecksum = data.slice(-len); - for (let i = 0; i < len; i++) - if (newChecksum[i] !== oldChecksum[i]) - throw new Error('Invalid checksum'); - return payload; - }, - }; -} -exports.utils = { alphabet, chain, checksum, radix, radix2, join, padding }; -// RFC 4648 aka RFC 3548 -// --------------------- -exports.base16 = chain(radix2(4), alphabet('0123456789ABCDEF'), join('')); -exports.base32 = chain(radix2(5), alphabet('ABCDEFGHIJKLMNOPQRSTUVWXYZ234567'), padding(5), join('')); -exports.base32hex = chain(radix2(5), alphabet('0123456789ABCDEFGHIJKLMNOPQRSTUV'), padding(5), join('')); -exports.base32crockford = chain(radix2(5), alphabet('0123456789ABCDEFGHJKMNPQRSTVWXYZ'), join(''), normalize((s) => s.toUpperCase().replace(/O/g, '0').replace(/[IL]/g, '1'))); -exports.base64 = chain(radix2(6), alphabet('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'), padding(6), join('')); -exports.base64url = chain(radix2(6), alphabet('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_'), padding(6), join('')); -exports.base64urlnopad = chain(radix2(6), alphabet('ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_'), join('')); -// base58 code -// ----------- -const genBase58 = (abc) => chain(radix(58), alphabet(abc), join('')); -exports.base58 = genBase58('123456789ABCDEFGHJKLMNPQRSTUVWXYZabcdefghijkmnopqrstuvwxyz'); -exports.base58flickr = genBase58('123456789abcdefghijkmnopqrstuvwxyzABCDEFGHJKLMNPQRSTUVWXYZ'); -exports.base58xrp = genBase58('rpshnaf39wBUDNEGHJKLM4PQRST7VWXYZ2bcdeCg65jkm8oFqi1tuvAxyz'); -// xmr ver is done in 8-byte blocks (which equals 11 chars in decoding). Last (non-full) block padded with '1' to size in XMR_BLOCK_LEN. -// Block encoding significantly reduces quadratic complexity of base58. -// Data len (index) -> encoded block len -const XMR_BLOCK_LEN = [0, 2, 3, 5, 6, 7, 9, 10, 11]; -exports.base58xmr = { - encode(data) { - let res = ''; - for (let i = 0; i < data.length; i += 8) { - const block = data.subarray(i, i + 8); - res += exports.base58.encode(block).padStart(XMR_BLOCK_LEN[block.length], '1'); - } - return res; - }, - decode(str) { - let res = []; - for (let i = 0; i < str.length; i += 11) { - const slice = str.slice(i, i + 11); - const blockLen = XMR_BLOCK_LEN.indexOf(slice.length); - const block = exports.base58.decode(slice); - for (let j = 0; j < block.length - blockLen; j++) { - if (block[j] !== 0) - throw new Error('base58xmr: wrong padding'); - } - res = res.concat(Array.from(block.slice(block.length - blockLen))); - } - return Uint8Array.from(res); - }, -}; -const base58check = (sha256) => chain(checksum(4, (data) => sha256(sha256(data))), exports.base58); -exports.base58check = base58check; -const BECH_ALPHABET = /* @__PURE__ */ chain(alphabet('qpzry9x8gf2tvdw0s3jn54khce6mua7l'), join('')); -const POLYMOD_GENERATORS = [0x3b6a57b2, 0x26508e6d, 0x1ea119fa, 0x3d4233dd, 0x2a1462b3]; -/** - * @__NO_SIDE_EFFECTS__ - */ -function bech32Polymod(pre) { - const b = pre >> 25; - let chk = (pre & 0x1ffffff) << 5; - for (let i = 0; i < POLYMOD_GENERATORS.length; i++) { - if (((b >> i) & 1) === 1) - chk ^= POLYMOD_GENERATORS[i]; - } - return chk; -} -/** - * @__NO_SIDE_EFFECTS__ - */ -function bechChecksum(prefix, words, encodingConst = 1) { - const len = prefix.length; - let chk = 1; - for (let i = 0; i < len; i++) { - const c = prefix.charCodeAt(i); - if (c < 33 || c > 126) - throw new Error(`Invalid prefix (${prefix})`); - chk = bech32Polymod(chk) ^ (c >> 5); - } - chk = bech32Polymod(chk); - for (let i = 0; i < len; i++) - chk = bech32Polymod(chk) ^ (prefix.charCodeAt(i) & 0x1f); - for (let v of words) - chk = bech32Polymod(chk) ^ v; - for (let i = 0; i < 6; i++) - chk = bech32Polymod(chk); - chk ^= encodingConst; - return BECH_ALPHABET.encode(convertRadix2([chk % 2 ** 30], 30, 5, false)); -} -/** - * @__NO_SIDE_EFFECTS__ - */ -function genBech32(encoding) { - const ENCODING_CONST = encoding === 'bech32' ? 1 : 0x2bc830a3; - const _words = radix2(5); - const fromWords = _words.decode; - const toWords = _words.encode; - const fromWordsUnsafe = unsafeWrapper(fromWords); - function encode(prefix, words, limit = 90) { - if (typeof prefix !== 'string') - throw new Error(`bech32.encode prefix should be string, not ${typeof prefix}`); - if (!Array.isArray(words) || (words.length && typeof words[0] !== 'number')) - throw new Error(`bech32.encode words should be array of numbers, not ${typeof words}`); - const actualLength = prefix.length + 7 + words.length; - if (limit !== false && actualLength > limit) - throw new TypeError(`Length ${actualLength} exceeds limit ${limit}`); - const lowered = prefix.toLowerCase(); - const sum = bechChecksum(lowered, words, ENCODING_CONST); - return `${lowered}1${BECH_ALPHABET.encode(words)}${sum}`; - } - function decode(str, limit = 90) { - if (typeof str !== 'string') - throw new Error(`bech32.decode input should be string, not ${typeof str}`); - if (str.length < 8 || (limit !== false && str.length > limit)) - throw new TypeError(`Wrong string length: ${str.length} (${str}). Expected (8..${limit})`); - // don't allow mixed case - const lowered = str.toLowerCase(); - if (str !== lowered && str !== str.toUpperCase()) - throw new Error(`String must be lowercase or uppercase`); - str = lowered; - const sepIndex = str.lastIndexOf('1'); - if (sepIndex === 0 || sepIndex === -1) - throw new Error(`Letter "1" must be present between prefix and data only`); - const prefix = str.slice(0, sepIndex); - const _words = str.slice(sepIndex + 1); - if (_words.length < 6) - throw new Error('Data must be at least 6 characters long'); - const words = BECH_ALPHABET.decode(_words).slice(0, -6); - const sum = bechChecksum(prefix, words, ENCODING_CONST); - if (!_words.endsWith(sum)) - throw new Error(`Invalid checksum in ${str}: expected "${sum}"`); - return { prefix, words }; - } - const decodeUnsafe = unsafeWrapper(decode); - function decodeToBytes(str) { - const { prefix, words } = decode(str, false); - return { prefix, words, bytes: fromWords(words) }; - } - return { encode, decode, decodeToBytes, decodeUnsafe, fromWords, fromWordsUnsafe, toWords }; -} -exports.bech32 = genBech32('bech32'); -exports.bech32m = genBech32('bech32m'); -exports.utf8 = { - encode: (data) => new TextDecoder().decode(data), - decode: (str) => new TextEncoder().encode(str), -}; -exports.hex = chain(radix2(4), alphabet('0123456789abcdef'), join(''), normalize((s) => { - if (typeof s !== 'string' || s.length % 2) - throw new TypeError(`hex.decode: expected string, got ${typeof s} with length ${s.length}`); - return s.toLowerCase(); -})); -// prettier-ignore -const CODERS = { - utf8: exports.utf8, hex: exports.hex, base16: exports.base16, base32: exports.base32, base64: exports.base64, base64url: exports.base64url, base58: exports.base58, base58xmr: exports.base58xmr -}; -const coderTypeError = 'Invalid encoding type. Available types: utf8, hex, base16, base32, base64, base64url, base58, base58xmr'; -const bytesToString = (type, bytes) => { - if (typeof type !== 'string' || !CODERS.hasOwnProperty(type)) - throw new TypeError(coderTypeError); - if (!(bytes instanceof Uint8Array)) - throw new TypeError('bytesToString() expects Uint8Array'); - return CODERS[type].encode(bytes); -}; -exports.bytesToString = bytesToString; -exports.str = exports.bytesToString; // as in python, but for bytes only -const stringToBytes = (type, str) => { - if (!CODERS.hasOwnProperty(type)) - throw new TypeError(coderTypeError); - if (typeof str !== 'string') - throw new TypeError('stringToBytes() expects string'); - return CODERS[type].decode(str); -}; -exports.stringToBytes = stringToBytes; -exports.bytes = exports.stringToBytes; diff --git a/node_modules/@scure/base/package.json b/node_modules/@scure/base/package.json deleted file mode 100644 index 33d31f3e..00000000 --- a/node_modules/@scure/base/package.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "name": "@scure/base", - "version": "1.1.3", - "description": "Secure, audited & 0-dep implementation of base64, bech32, base58, base32 & base16", - "files": [ - "lib/index.js", - "lib/esm/index.js", - "lib/esm/package.json", - "lib/index.d.ts", - "lib/index.d.ts.map", - "index.ts" - ], - "main": "lib/index.js", - "module": "lib/esm/index.js", - "types": "lib/index.d.ts", - "exports": { - ".": { - "types": "./lib/index.d.ts", - "import": "./lib/esm/index.js", - "default": "./lib/index.js" - } - }, - "scripts": { - "bench": "node test/benchmark/index.js", - "build": "tsc && tsc -p tsconfig.esm.json", - "lint": "prettier --check index.ts", - "format": "prettier --write index.ts", - "test": "node test/index.js", - "test:deno": "deno test test/deno.ts" - }, - "sideEffects": false, - "author": "Paul Miller (https://paulmillr.com)", - "license": "MIT", - "homepage": "https://paulmillr.com/noble/#scure", - "repository": { - "type": "git", - "url": "git+https://github.com/paulmillr/scure-base.git" - }, - "devDependencies": { - "micro-should": "0.4.0", - "prettier": "2.8.4", - "typescript": "5.0.2" - }, - "keywords": [ - "bech32", - "bech32m", - "base64", - "base58", - "base32", - "base16", - "rfc4648", - "rfc3548", - "crockford", - "encode", - "encoder", - "base-x", - "base" - ], - "funding": "https://paulmillr.com/funding/" -} diff --git a/node_modules/@scure/bip32/LICENSE b/node_modules/@scure/bip32/LICENSE deleted file mode 100644 index 68222b80..00000000 --- a/node_modules/@scure/bip32/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2022 Patricio Palladino, Paul Miller (paulmillr.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the “Software”), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/node_modules/@scure/bip32/README.md b/node_modules/@scure/bip32/README.md deleted file mode 100644 index ea5bfbb4..00000000 --- a/node_modules/@scure/bip32/README.md +++ /dev/null @@ -1,107 +0,0 @@ -# scure-bip32 - -Secure, [audited](#security) & minimal implementation of BIP32 hierarchical deterministic (HD) wallets over secp256k1. - -Compared to popular `hdkey` package, scure-bip32: - -- Supports ESM and common.js -- Is 418KB all-bundled instead of 5.9MB -- Uses 3 dependencies instead of 24 -- Had an external security [audit](#security) by Cure53 - -Check out [scure-bip39](https://github.com/paulmillr/scure-bip39) if you need mnemonic phrases. See [ed25519-keygen](https://github.com/paulmillr/ed25519-keygen) if you need SLIP-0010/BIP32 ed25519 hdkey implementation. - -### This library belongs to *scure* - -> **scure** — secure, independently audited packages for every use case. - -- Audited by a third-party -- Releases are signed with PGP keys and built transparently with NPM provenance -- Check out all libraries: - [base](https://github.com/paulmillr/scure-base), - [bip32](https://github.com/paulmillr/scure-bip32), - [bip39](https://github.com/paulmillr/scure-bip39), - [btc-signer](https://github.com/paulmillr/scure-btc-signer) - -## Usage - -> npm install @scure/bip32 - -This module exports a single class `HDKey`, which should be used like this: - -```ts -const { HDKey } = require("@scure/bip32"); -const hdkey1 = HDKey.fromMasterSeed(seed); -const hdkey2 = HDKey.fromExtendedKey(base58key); -const hdkey3 = HDKey.fromJSON({ xpriv: string }); - -// props -[hdkey1.depth, hdkey1.index, hdkey1.chainCode]; -console.log(hdkey2.privateKey, hdkey2.publicKey); -console.log(hdkey3.derive("m/0/2147483647'/1")); -const sig = hdkey3.sign(hash); -hdkey3.verify(hash, sig); -``` - -Note: `chainCode` property is essentially a private part -of a secret "master" key, it should be guarded from unauthorized access. - -The full API is: - -```ts -class HDKey { - public static HARDENED_OFFSET: number; - public static fromMasterSeed(seed: Uint8Array, versions: Versions): HDKey; - public static fromExtendedKey(base58key: string, versions: Versions): HDKey; - public static fromJSON(json: { xpriv: string }): HDKey; - - readonly versions: Versions; - readonly depth: number = 0; - readonly index: number = 0; - readonly chainCode: Uint8Array | null = null; - readonly parentFingerprint: number = 0; - - get fingerprint(): number; - get identifier(): Uint8Array | undefined; - get pubKeyHash(): Uint8Array | undefined; - get privateKey(): Uint8Array | null; - get publicKey(): Uint8Array | null; - get privateExtendedKey(): string; - get publicExtendedKey(): string; - - derive(path: string): HDKey; - deriveChild(index: number): HDKey; - sign(hash: Uint8Array): Uint8Array; - verify(hash: Uint8Array, signature: Uint8Array): boolean; - wipePrivateData(): this; -} - -interface Versions { - private: number; - public: number; -} -``` - -The `hdkey` submodule provides a library for keys derivation according to -[BIP32](https://github.com/bitcoin/bips/blob/master/bip-0032.mediawiki). - -It has almost the exact same API than the version `1.x` of -[`hdkey` from cryptocoinjs](https://github.com/cryptocoinjs/hdkey), -but it's backed by this package's primitives, and has built-in TypeScript types. -Its only difference is that it has to be be used with a named import. -The implementation is [loosely based on hdkey, which has MIT License](#LICENSE). - -## Security - -The library has been audited by Cure53 on Jan 5, 2022. Check out the audit [PDF](./audit/2022-01-05-cure53-audit-nbl2.pdf) & [URL](https://cure53.de/pentest-report_hashing-libs.pdf). See [changes since audit](https://github.com/paulmillr/scure-bip32/compare/1.0.1..main). - -1. The library was initially developed for [js-ethereum-cryptography](https://github.com/ethereum/js-ethereum-cryptography) -2. At commit [ae00e6d7](https://github.com/ethereum/js-ethereum-cryptography/commit/ae00e6d7d24fb3c76a1c7fe10039f6ecd120b77e), it - was extracted to a separate package called `micro-bip32` -3. After the audit we've decided to use NPM namespace for security. Since `@micro` namespace was taken, we've renamed the package to `@scure/bip32` - -## License - -[MIT License](./LICENSE) - -Copyright (c) 2022 Patricio Palladino, Paul Miller (paulmillr.com) diff --git a/node_modules/@scure/bip32/index.ts b/node_modules/@scure/bip32/index.ts deleted file mode 100644 index d0496ef9..00000000 --- a/node_modules/@scure/bip32/index.ts +++ /dev/null @@ -1,307 +0,0 @@ -/*! scure-bip32 - MIT License (c) 2022 Patricio Palladino, Paul Miller (paulmillr.com) */ -import { hmac } from '@noble/hashes/hmac'; -import { ripemd160 } from '@noble/hashes/ripemd160'; -import { sha256 } from '@noble/hashes/sha256'; -import { sha512 } from '@noble/hashes/sha512'; -import { bytes as assertBytes } from '@noble/hashes/_assert'; -import { bytesToHex, concatBytes, createView, hexToBytes, utf8ToBytes } from '@noble/hashes/utils'; -import { secp256k1 as secp } from '@noble/curves/secp256k1'; -import { mod } from '@noble/curves/abstract/modular'; -import { base58check as base58checker } from '@scure/base'; - -const Point = secp.ProjectivePoint; -const base58check = base58checker(sha256); - -function bytesToNumber(bytes: Uint8Array): bigint { - return BigInt(`0x${bytesToHex(bytes)}`); -} - -function numberToBytes(num: bigint): Uint8Array { - return hexToBytes(num.toString(16).padStart(64, '0')); -} - -const MASTER_SECRET = utf8ToBytes('Bitcoin seed'); -// Bitcoin hardcoded by default -const BITCOIN_VERSIONS: Versions = { private: 0x0488ade4, public: 0x0488b21e }; -export const HARDENED_OFFSET: number = 0x80000000; - -export interface Versions { - private: number; - public: number; -} - -const hash160 = (data: Uint8Array) => ripemd160(sha256(data)); -const fromU32 = (data: Uint8Array) => createView(data).getUint32(0, false); -const toU32 = (n: number) => { - if (!Number.isSafeInteger(n) || n < 0 || n > 2 ** 32 - 1) { - throw new Error(`Invalid number=${n}. Should be from 0 to 2 ** 32 - 1`); - } - const buf = new Uint8Array(4); - createView(buf).setUint32(0, n, false); - return buf; -}; - -interface HDKeyOpt { - versions: Versions; - depth?: number; - index?: number; - parentFingerprint?: number; - chainCode: Uint8Array; - publicKey?: Uint8Array; - privateKey?: Uint8Array | bigint; -} - -export class HDKey { - get fingerprint(): number { - if (!this.pubHash) { - throw new Error('No publicKey set!'); - } - return fromU32(this.pubHash); - } - get identifier(): Uint8Array | undefined { - return this.pubHash; - } - get pubKeyHash(): Uint8Array | undefined { - return this.pubHash; - } - get privateKey(): Uint8Array | null { - return this.privKeyBytes || null; - } - get publicKey(): Uint8Array | null { - return this.pubKey || null; - } - get privateExtendedKey(): string { - const priv = this.privateKey; - if (!priv) { - throw new Error('No private key'); - } - return base58check.encode( - this.serialize(this.versions.private, concatBytes(new Uint8Array([0]), priv)) - ); - } - get publicExtendedKey(): string { - if (!this.pubKey) { - throw new Error('No public key'); - } - return base58check.encode(this.serialize(this.versions.public, this.pubKey)); - } - - public static fromMasterSeed(seed: Uint8Array, versions: Versions = BITCOIN_VERSIONS): HDKey { - assertBytes(seed); - if (8 * seed.length < 128 || 8 * seed.length > 512) { - throw new Error( - `HDKey: wrong seed length=${seed.length}. Should be between 128 and 512 bits; 256 bits is advised)` - ); - } - const I = hmac(sha512, MASTER_SECRET, seed); - return new HDKey({ - versions, - chainCode: I.slice(32), - privateKey: I.slice(0, 32), - }); - } - - public static fromExtendedKey(base58key: string, versions: Versions = BITCOIN_VERSIONS): HDKey { - // => version(4) || depth(1) || fingerprint(4) || index(4) || chain(32) || key(33) - const keyBuffer: Uint8Array = base58check.decode(base58key); - const keyView = createView(keyBuffer); - const version = keyView.getUint32(0, false); - const opt = { - versions, - depth: keyBuffer[4], - parentFingerprint: keyView.getUint32(5, false), - index: keyView.getUint32(9, false), - chainCode: keyBuffer.slice(13, 45), - }; - const key = keyBuffer.slice(45); - const isPriv = key[0] === 0; - if (version !== versions[isPriv ? 'private' : 'public']) { - throw new Error('Version mismatch'); - } - if (isPriv) { - return new HDKey({ ...opt, privateKey: key.slice(1) }); - } else { - return new HDKey({ ...opt, publicKey: key }); - } - } - - public static fromJSON(json: { xpriv: string }): HDKey { - return HDKey.fromExtendedKey(json.xpriv); - } - public readonly versions: Versions; - public readonly depth: number = 0; - public readonly index: number = 0; - public readonly chainCode: Uint8Array | null = null; - public readonly parentFingerprint: number = 0; - private privKey?: bigint; - private privKeyBytes?: Uint8Array; - private pubKey?: Uint8Array; - private pubHash: Uint8Array | undefined; - - constructor(opt: HDKeyOpt) { - if (!opt || typeof opt !== 'object') { - throw new Error('HDKey.constructor must not be called directly'); - } - this.versions = opt.versions || BITCOIN_VERSIONS; - this.depth = opt.depth || 0; - this.chainCode = opt.chainCode; - this.index = opt.index || 0; - this.parentFingerprint = opt.parentFingerprint || 0; - if (!this.depth) { - if (this.parentFingerprint || this.index) { - throw new Error('HDKey: zero depth with non-zero index/parent fingerprint'); - } - } - if (opt.publicKey && opt.privateKey) { - throw new Error('HDKey: publicKey and privateKey at same time.'); - } - if (opt.privateKey) { - if (!secp.utils.isValidPrivateKey(opt.privateKey)) { - throw new Error('Invalid private key'); - } - this.privKey = - typeof opt.privateKey === 'bigint' ? opt.privateKey : bytesToNumber(opt.privateKey); - this.privKeyBytes = numberToBytes(this.privKey); - this.pubKey = secp.getPublicKey(opt.privateKey, true); - } else if (opt.publicKey) { - this.pubKey = Point.fromHex(opt.publicKey).toRawBytes(true); // force compressed point - } else { - throw new Error('HDKey: no public or private key provided'); - } - this.pubHash = hash160(this.pubKey); - } - - public derive(path: string): HDKey { - if (!/^[mM]'?/.test(path)) { - throw new Error('Path must start with "m" or "M"'); - } - if (/^[mM]'?$/.test(path)) { - return this; - } - const parts = path.replace(/^[mM]'?\//, '').split('/'); - // tslint:disable-next-line - let child: HDKey = this; - for (const c of parts) { - const m = /^(\d+)('?)$/.exec(c); - if (!m || m.length !== 3) { - throw new Error(`Invalid child index: ${c}`); - } - let idx = +m[1]; - if (!Number.isSafeInteger(idx) || idx >= HARDENED_OFFSET) { - throw new Error('Invalid index'); - } - // hardened key - if (m[2] === "'") { - idx += HARDENED_OFFSET; - } - child = child.deriveChild(idx); - } - return child; - } - - public deriveChild(index: number): HDKey { - if (!this.pubKey || !this.chainCode) { - throw new Error('No publicKey or chainCode set'); - } - let data = toU32(index); - if (index >= HARDENED_OFFSET) { - // Hardened - const priv = this.privateKey; - if (!priv) { - throw new Error('Could not derive hardened child key'); - } - // Hardened child: 0x00 || ser256(kpar) || ser32(index) - data = concatBytes(new Uint8Array([0]), priv, data); - } else { - // Normal child: serP(point(kpar)) || ser32(index) - data = concatBytes(this.pubKey, data); - } - const I = hmac(sha512, this.chainCode, data); - const childTweak = bytesToNumber(I.slice(0, 32)); - const chainCode = I.slice(32); - if (!secp.utils.isValidPrivateKey(childTweak)) { - throw new Error('Tweak bigger than curve order'); - } - const opt: HDKeyOpt = { - versions: this.versions, - chainCode, - depth: this.depth + 1, - parentFingerprint: this.fingerprint, - index, - }; - try { - // Private parent key -> private child key - if (this.privateKey) { - const added = mod(this.privKey! + childTweak, secp.CURVE.n); - if (!secp.utils.isValidPrivateKey(added)) { - throw new Error('The tweak was out of range or the resulted private key is invalid'); - } - opt.privateKey = added; - } else { - const added = Point.fromHex(this.pubKey).add(Point.fromPrivateKey(childTweak)); - // Cryptographically impossible: hmac-sha512 preimage would need to be found - if (added.equals(Point.ZERO)) { - throw new Error('The tweak was equal to negative P, which made the result key invalid'); - } - opt.publicKey = added.toRawBytes(true); - } - return new HDKey(opt); - } catch (err) { - return this.deriveChild(index + 1); - } - } - - public sign(hash: Uint8Array): Uint8Array { - if (!this.privateKey) { - throw new Error('No privateKey set!'); - } - assertBytes(hash, 32); - return secp.sign(hash, this.privKey!).toCompactRawBytes(); - } - - public verify(hash: Uint8Array, signature: Uint8Array): boolean { - assertBytes(hash, 32); - assertBytes(signature, 64); - if (!this.publicKey) { - throw new Error('No publicKey set!'); - } - let sig; - try { - sig = secp.Signature.fromCompact(signature); - } catch (error) { - return false; - } - return secp.verify(sig, hash, this.publicKey); - } - - public wipePrivateData(): this { - this.privKey = undefined; - if (this.privKeyBytes) { - this.privKeyBytes.fill(0); - this.privKeyBytes = undefined; - } - return this; - } - public toJSON(): { xpriv: string; xpub: string } { - return { - xpriv: this.privateExtendedKey, - xpub: this.publicExtendedKey, - }; - } - - private serialize(version: number, key: Uint8Array) { - if (!this.chainCode) { - throw new Error('No chainCode set'); - } - assertBytes(key, 33); - // version(4) || depth(1) || fingerprint(4) || index(4) || chain(32) || key(33) - return concatBytes( - toU32(version), - new Uint8Array([this.depth]), - toU32(this.parentFingerprint), - toU32(this.index), - this.chainCode, - key - ); - } -} diff --git a/node_modules/@scure/bip32/lib/esm/index.js b/node_modules/@scure/bip32/lib/esm/index.js deleted file mode 100644 index a5e768bb..00000000 --- a/node_modules/@scure/bip32/lib/esm/index.js +++ /dev/null @@ -1,257 +0,0 @@ -import { hmac } from '@noble/hashes/hmac'; -import { ripemd160 } from '@noble/hashes/ripemd160'; -import { sha256 } from '@noble/hashes/sha256'; -import { sha512 } from '@noble/hashes/sha512'; -import { bytes as assertBytes } from '@noble/hashes/_assert'; -import { bytesToHex, concatBytes, createView, hexToBytes, utf8ToBytes } from '@noble/hashes/utils'; -import { secp256k1 as secp } from '@noble/curves/secp256k1'; -import { mod } from '@noble/curves/abstract/modular'; -import { base58check as base58checker } from '@scure/base'; -const Point = secp.ProjectivePoint; -const base58check = base58checker(sha256); -function bytesToNumber(bytes) { - return BigInt(`0x${bytesToHex(bytes)}`); -} -function numberToBytes(num) { - return hexToBytes(num.toString(16).padStart(64, '0')); -} -const MASTER_SECRET = utf8ToBytes('Bitcoin seed'); -const BITCOIN_VERSIONS = { private: 0x0488ade4, public: 0x0488b21e }; -export const HARDENED_OFFSET = 0x80000000; -const hash160 = (data) => ripemd160(sha256(data)); -const fromU32 = (data) => createView(data).getUint32(0, false); -const toU32 = (n) => { - if (!Number.isSafeInteger(n) || n < 0 || n > 2 ** 32 - 1) { - throw new Error(`Invalid number=${n}. Should be from 0 to 2 ** 32 - 1`); - } - const buf = new Uint8Array(4); - createView(buf).setUint32(0, n, false); - return buf; -}; -export class HDKey { - get fingerprint() { - if (!this.pubHash) { - throw new Error('No publicKey set!'); - } - return fromU32(this.pubHash); - } - get identifier() { - return this.pubHash; - } - get pubKeyHash() { - return this.pubHash; - } - get privateKey() { - return this.privKeyBytes || null; - } - get publicKey() { - return this.pubKey || null; - } - get privateExtendedKey() { - const priv = this.privateKey; - if (!priv) { - throw new Error('No private key'); - } - return base58check.encode(this.serialize(this.versions.private, concatBytes(new Uint8Array([0]), priv))); - } - get publicExtendedKey() { - if (!this.pubKey) { - throw new Error('No public key'); - } - return base58check.encode(this.serialize(this.versions.public, this.pubKey)); - } - static fromMasterSeed(seed, versions = BITCOIN_VERSIONS) { - assertBytes(seed); - if (8 * seed.length < 128 || 8 * seed.length > 512) { - throw new Error(`HDKey: wrong seed length=${seed.length}. Should be between 128 and 512 bits; 256 bits is advised)`); - } - const I = hmac(sha512, MASTER_SECRET, seed); - return new HDKey({ - versions, - chainCode: I.slice(32), - privateKey: I.slice(0, 32), - }); - } - static fromExtendedKey(base58key, versions = BITCOIN_VERSIONS) { - const keyBuffer = base58check.decode(base58key); - const keyView = createView(keyBuffer); - const version = keyView.getUint32(0, false); - const opt = { - versions, - depth: keyBuffer[4], - parentFingerprint: keyView.getUint32(5, false), - index: keyView.getUint32(9, false), - chainCode: keyBuffer.slice(13, 45), - }; - const key = keyBuffer.slice(45); - const isPriv = key[0] === 0; - if (version !== versions[isPriv ? 'private' : 'public']) { - throw new Error('Version mismatch'); - } - if (isPriv) { - return new HDKey({ ...opt, privateKey: key.slice(1) }); - } - else { - return new HDKey({ ...opt, publicKey: key }); - } - } - static fromJSON(json) { - return HDKey.fromExtendedKey(json.xpriv); - } - constructor(opt) { - this.depth = 0; - this.index = 0; - this.chainCode = null; - this.parentFingerprint = 0; - if (!opt || typeof opt !== 'object') { - throw new Error('HDKey.constructor must not be called directly'); - } - this.versions = opt.versions || BITCOIN_VERSIONS; - this.depth = opt.depth || 0; - this.chainCode = opt.chainCode; - this.index = opt.index || 0; - this.parentFingerprint = opt.parentFingerprint || 0; - if (!this.depth) { - if (this.parentFingerprint || this.index) { - throw new Error('HDKey: zero depth with non-zero index/parent fingerprint'); - } - } - if (opt.publicKey && opt.privateKey) { - throw new Error('HDKey: publicKey and privateKey at same time.'); - } - if (opt.privateKey) { - if (!secp.utils.isValidPrivateKey(opt.privateKey)) { - throw new Error('Invalid private key'); - } - this.privKey = - typeof opt.privateKey === 'bigint' ? opt.privateKey : bytesToNumber(opt.privateKey); - this.privKeyBytes = numberToBytes(this.privKey); - this.pubKey = secp.getPublicKey(opt.privateKey, true); - } - else if (opt.publicKey) { - this.pubKey = Point.fromHex(opt.publicKey).toRawBytes(true); - } - else { - throw new Error('HDKey: no public or private key provided'); - } - this.pubHash = hash160(this.pubKey); - } - derive(path) { - if (!/^[mM]'?/.test(path)) { - throw new Error('Path must start with "m" or "M"'); - } - if (/^[mM]'?$/.test(path)) { - return this; - } - const parts = path.replace(/^[mM]'?\//, '').split('/'); - let child = this; - for (const c of parts) { - const m = /^(\d+)('?)$/.exec(c); - if (!m || m.length !== 3) { - throw new Error(`Invalid child index: ${c}`); - } - let idx = +m[1]; - if (!Number.isSafeInteger(idx) || idx >= HARDENED_OFFSET) { - throw new Error('Invalid index'); - } - if (m[2] === "'") { - idx += HARDENED_OFFSET; - } - child = child.deriveChild(idx); - } - return child; - } - deriveChild(index) { - if (!this.pubKey || !this.chainCode) { - throw new Error('No publicKey or chainCode set'); - } - let data = toU32(index); - if (index >= HARDENED_OFFSET) { - const priv = this.privateKey; - if (!priv) { - throw new Error('Could not derive hardened child key'); - } - data = concatBytes(new Uint8Array([0]), priv, data); - } - else { - data = concatBytes(this.pubKey, data); - } - const I = hmac(sha512, this.chainCode, data); - const childTweak = bytesToNumber(I.slice(0, 32)); - const chainCode = I.slice(32); - if (!secp.utils.isValidPrivateKey(childTweak)) { - throw new Error('Tweak bigger than curve order'); - } - const opt = { - versions: this.versions, - chainCode, - depth: this.depth + 1, - parentFingerprint: this.fingerprint, - index, - }; - try { - if (this.privateKey) { - const added = mod(this.privKey + childTweak, secp.CURVE.n); - if (!secp.utils.isValidPrivateKey(added)) { - throw new Error('The tweak was out of range or the resulted private key is invalid'); - } - opt.privateKey = added; - } - else { - const added = Point.fromHex(this.pubKey).add(Point.fromPrivateKey(childTweak)); - if (added.equals(Point.ZERO)) { - throw new Error('The tweak was equal to negative P, which made the result key invalid'); - } - opt.publicKey = added.toRawBytes(true); - } - return new HDKey(opt); - } - catch (err) { - return this.deriveChild(index + 1); - } - } - sign(hash) { - if (!this.privateKey) { - throw new Error('No privateKey set!'); - } - assertBytes(hash, 32); - return secp.sign(hash, this.privKey).toCompactRawBytes(); - } - verify(hash, signature) { - assertBytes(hash, 32); - assertBytes(signature, 64); - if (!this.publicKey) { - throw new Error('No publicKey set!'); - } - let sig; - try { - sig = secp.Signature.fromCompact(signature); - } - catch (error) { - return false; - } - return secp.verify(sig, hash, this.publicKey); - } - wipePrivateData() { - this.privKey = undefined; - if (this.privKeyBytes) { - this.privKeyBytes.fill(0); - this.privKeyBytes = undefined; - } - return this; - } - toJSON() { - return { - xpriv: this.privateExtendedKey, - xpub: this.publicExtendedKey, - }; - } - serialize(version, key) { - if (!this.chainCode) { - throw new Error('No chainCode set'); - } - assertBytes(key, 33); - return concatBytes(toU32(version), new Uint8Array([this.depth]), toU32(this.parentFingerprint), toU32(this.index), this.chainCode, key); - } -} -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@scure/bip32/lib/esm/index.js.map b/node_modules/@scure/bip32/lib/esm/index.js.map deleted file mode 100644 index a764a140..00000000 --- a/node_modules/@scure/bip32/lib/esm/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../../index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAE,MAAM,oBAAoB,CAAC;AAC1C,OAAO,EAAE,SAAS,EAAE,MAAM,yBAAyB,CAAC;AACpD,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,MAAM,EAAE,MAAM,sBAAsB,CAAC;AAC9C,OAAO,EAAE,KAAK,IAAI,WAAW,EAAE,MAAM,uBAAuB,CAAC;AAC7D,OAAO,EAAE,UAAU,EAAE,WAAW,EAAE,UAAU,EAAE,UAAU,EAAE,WAAW,EAAE,MAAM,qBAAqB,CAAC;AACnG,OAAO,EAAE,SAAS,IAAI,IAAI,EAAE,M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Y,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;YAC1B,IAAI,CAAC,YAAY,GAAG,SAAS,CAAC;SAC/B;QACD,OAAO,IAAI,CAAC;IACd,CAAC;IACM,MAAM;QACX,OAAO;YACL,KAAK,EAAE,IAAI,CAAC,kBAAkB;YAC9B,IAAI,EAAE,IAAI,CAAC,iBAAiB;SAC7B,CAAC;IACJ,CAAC;IAEO,SAAS,CAAC,OAAe,EAAE,GAAe;QAChD,IAAI,CAAC,IAAI,CAAC,SAAS,EAAE;YACnB,MAAM,IAAI,KAAK,CAAC,kBAAkB,CAAC,CAAC;SACrC;QACD,WAAW,CAAC,GAAG,EAAE,EAAE,CAAC,CAAC;QAErB,OAAO,WAAW,CAChB,KAAK,CAAC,OAAO,CAAC,EACd,IAAI,UAAU,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,EAC5B,KAAK,CAAC,IAAI,CAAC,iBAAiB,CAAC,EAC7B,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,EACjB,IAAI,CAAC,SAAS,EACd,GAAG,CACJ,CAAC;IACJ,CAAC;CACF"} \ No newline at end of file diff --git a/node_modules/@scure/bip32/lib/esm/package.json b/node_modules/@scure/bip32/lib/esm/package.json deleted file mode 100644 index e8309c43..00000000 --- a/node_modules/@scure/bip32/lib/esm/package.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "type": "module", - "browser": { - "crypto": false - } -} \ No newline at end of file diff --git a/node_modules/@scure/bip32/lib/index.d.ts b/node_modules/@scure/bip32/lib/index.d.ts deleted file mode 100644 index 753367b5..00000000 --- a/node_modules/@scure/bip32/lib/index.d.ts +++ /dev/null @@ -1,49 +0,0 @@ -export declare const HARDENED_OFFSET: number; -export interface Versions { - private: number; - public: number; -} -interface HDKeyOpt { - versions: Versions; - depth?: number; - index?: number; - parentFingerprint?: number; - chainCode: Uint8Array; - publicKey?: Uint8Array; - privateKey?: Uint8Array | bigint; -} -export declare class HDKey { - get fingerprint(): number; - get identifier(): Uint8Array | undefined; - get pubKeyHash(): Uint8Array | undefined; - get privateKey(): Uint8Array | null; - get publicKey(): Uint8Array | null; - get privateExtendedKey(): string; - get publicExtendedKey(): string; - static fromMasterSeed(seed: Uint8Array, versions?: Versions): HDKey; - static fromExtendedKey(base58key: string, versions?: Versions): HDKey; - static fromJSON(json: { - xpriv: string; - }): HDKey; - readonly versions: Versions; - readonly depth: number; - readonly index: number; - readonly chainCode: Uint8Array | null; - readonly parentFingerprint: number; - private privKey?; - private privKeyBytes?; - private pubKey?; - private pubHash; - constructor(opt: HDKeyOpt); - derive(path: string): HDKey; - deriveChild(index: number): HDKey; - sign(hash: Uint8Array): Uint8Array; - verify(hash: Uint8Array, signature: Uint8Array): boolean; - wipePrivateData(): this; - toJSON(): { - xpriv: string; - xpub: string; - }; - private serialize; -} -export {}; diff --git a/node_modules/@scure/bip32/lib/index.js b/node_modules/@scure/bip32/lib/index.js deleted file mode 100644 index 04722bd6..00000000 --- a/node_modules/@scure/bip32/lib/index.js +++ /dev/null @@ -1,261 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.HDKey = exports.HARDENED_OFFSET = void 0; -const hmac_1 = require("@noble/hashes/hmac"); -const ripemd160_1 = require("@noble/hashes/ripemd160"); -const sha256_1 = require("@noble/hashes/sha256"); -const sha512_1 = require("@noble/hashes/sha512"); -const _assert_1 = require("@noble/hashes/_assert"); -const utils_1 = require("@noble/hashes/utils"); -const secp256k1_1 = require("@noble/curves/secp256k1"); -const modular_1 = require("@noble/curves/abstract/modular"); -const base_1 = require("@scure/base"); -const Point = secp256k1_1.secp256k1.ProjectivePoint; -const base58check = (0, base_1.base58check)(sha256_1.sha256); -function bytesToNumber(bytes) { - return BigInt(`0x${(0, utils_1.bytesToHex)(bytes)}`); -} -function numberToBytes(num) { - return (0, utils_1.hexToBytes)(num.toString(16).padStart(64, '0')); -} -const MASTER_SECRET = (0, utils_1.utf8ToBytes)('Bitcoin seed'); -const BITCOIN_VERSIONS = { private: 0x0488ade4, public: 0x0488b21e }; -exports.HARDENED_OFFSET = 0x80000000; -const hash160 = (data) => (0, ripemd160_1.ripemd160)((0, sha256_1.sha256)(data)); -const fromU32 = (data) => (0, utils_1.createView)(data).getUint32(0, false); -const toU32 = (n) => { - if (!Number.isSafeInteger(n) || n < 0 || n > 2 ** 32 - 1) { - throw new Error(`Invalid number=${n}. Should be from 0 to 2 ** 32 - 1`); - } - const buf = new Uint8Array(4); - (0, utils_1.createView)(buf).setUint32(0, n, false); - return buf; -}; -class HDKey { - get fingerprint() { - if (!this.pubHash) { - throw new Error('No publicKey set!'); - } - return fromU32(this.pubHash); - } - get identifier() { - return this.pubHash; - } - get pubKeyHash() { - return this.pubHash; - } - get privateKey() { - return this.privKeyBytes || null; - } - get publicKey() { - return this.pubKey || null; - } - get privateExtendedKey() { - const priv = this.privateKey; - if (!priv) { - throw new Error('No private key'); - } - return base58check.encode(this.serialize(this.versions.private, (0, utils_1.concatBytes)(new Uint8Array([0]), priv))); - } - get publicExtendedKey() { - if (!this.pubKey) { - throw new Error('No public key'); - } - return base58check.encode(this.serialize(this.versions.public, this.pubKey)); - } - static fromMasterSeed(seed, versions = BITCOIN_VERSIONS) { - (0, _assert_1.bytes)(seed); - if (8 * seed.length < 128 || 8 * seed.length > 512) { - throw new Error(`HDKey: wrong seed length=${seed.length}. Should be between 128 and 512 bits; 256 bits is advised)`); - } - const I = (0, hmac_1.hmac)(sha512_1.sha512, MASTER_SECRET, seed); - return new HDKey({ - versions, - chainCode: I.slice(32), - privateKey: I.slice(0, 32), - }); - } - static fromExtendedKey(base58key, versions = BITCOIN_VERSIONS) { - const keyBuffer = base58check.decode(base58key); - const keyView = (0, utils_1.createView)(keyBuffer); - const version = keyView.getUint32(0, false); - const opt = { - versions, - depth: keyBuffer[4], - parentFingerprint: keyView.getUint32(5, false), - index: keyView.getUint32(9, false), - chainCode: keyBuffer.slice(13, 45), - }; - const key = keyBuffer.slice(45); - const isPriv = key[0] === 0; - if (version !== versions[isPriv ? 'private' : 'public']) { - throw new Error('Version mismatch'); - } - if (isPriv) { - return new HDKey({ ...opt, privateKey: key.slice(1) }); - } - else { - return new HDKey({ ...opt, publicKey: key }); - } - } - static fromJSON(json) { - return HDKey.fromExtendedKey(json.xpriv); - } - constructor(opt) { - this.depth = 0; - this.index = 0; - this.chainCode = null; - this.parentFingerprint = 0; - if (!opt || typeof opt !== 'object') { - throw new Error('HDKey.constructor must not be called directly'); - } - this.versions = opt.versions || BITCOIN_VERSIONS; - this.depth = opt.depth || 0; - this.chainCode = opt.chainCode; - this.index = opt.index || 0; - this.parentFingerprint = opt.parentFingerprint || 0; - if (!this.depth) { - if (this.parentFingerprint || this.index) { - throw new Error('HDKey: zero depth with non-zero index/parent fingerprint'); - } - } - if (opt.publicKey && opt.privateKey) { - throw new Error('HDKey: publicKey and privateKey at same time.'); - } - if (opt.privateKey) { - if (!secp256k1_1.secp256k1.utils.isValidPrivateKey(opt.privateKey)) { - throw new Error('Invalid private key'); - } - this.privKey = - typeof opt.privateKey === 'bigint' ? opt.privateKey : bytesToNumber(opt.privateKey); - this.privKeyBytes = numberToBytes(this.privKey); - this.pubKey = secp256k1_1.secp256k1.getPublicKey(opt.privateKey, true); - } - else if (opt.publicKey) { - this.pubKey = Point.fromHex(opt.publicKey).toRawBytes(true); - } - else { - throw new Error('HDKey: no public or private key provided'); - } - this.pubHash = hash160(this.pubKey); - } - derive(path) { - if (!/^[mM]'?/.test(path)) { - throw new Error('Path must start with "m" or "M"'); - } - if (/^[mM]'?$/.test(path)) { - return this; - } - const parts = path.replace(/^[mM]'?\//, '').split('/'); - let child = this; - for (const c of parts) { - const m = /^(\d+)('?)$/.exec(c); - if (!m || m.length !== 3) { - throw new Error(`Invalid child index: ${c}`); - } - let idx = +m[1]; - if (!Number.isSafeInteger(idx) || idx >= exports.HARDENED_OFFSET) { - throw new Error('Invalid index'); - } - if (m[2] === "'") { - idx += exports.HARDENED_OFFSET; - } - child = child.deriveChild(idx); - } - return child; - } - deriveChild(index) { - if (!this.pubKey || !this.chainCode) { - throw new Error('No publicKey or chainCode set'); - } - let data = toU32(index); - if (index >= exports.HARDENED_OFFSET) { - const priv = this.privateKey; - if (!priv) { - throw new Error('Could not derive hardened child key'); - } - data = (0, utils_1.concatBytes)(new Uint8Array([0]), priv, data); - } - else { - data = (0, utils_1.concatBytes)(this.pubKey, data); - } - const I = (0, hmac_1.hmac)(sha512_1.sha512, this.chainCode, data); - const childTweak = bytesToNumber(I.slice(0, 32)); - const chainCode = I.slice(32); - if (!secp256k1_1.secp256k1.utils.isValidPrivateKey(childTweak)) { - throw new Error('Tweak bigger than curve order'); - } - const opt = { - versions: this.versions, - chainCode, - depth: this.depth + 1, - parentFingerprint: this.fingerprint, - index, - }; - try { - if (this.privateKey) { - const added = (0, modular_1.mod)(this.privKey + childTweak, secp256k1_1.secp256k1.CURVE.n); - if (!secp256k1_1.secp256k1.utils.isValidPrivateKey(added)) { - throw new Error('The tweak was out of range or the resulted private key is invalid'); - } - opt.privateKey = added; - } - else { - const added = Point.fromHex(this.pubKey).add(Point.fromPrivateKey(childTweak)); - if (added.equals(Point.ZERO)) { - throw new Error('The tweak was equal to negative P, which made the result key invalid'); - } - opt.publicKey = added.toRawBytes(true); - } - return new HDKey(opt); - } - catch (err) { - return this.deriveChild(index + 1); - } - } - sign(hash) { - if (!this.privateKey) { - throw new Error('No privateKey set!'); - } - (0, _assert_1.bytes)(hash, 32); - return secp256k1_1.secp256k1.sign(hash, this.privKey).toCompactRawBytes(); - } - verify(hash, signature) { - (0, _assert_1.bytes)(hash, 32); - (0, _assert_1.bytes)(signature, 64); - if (!this.publicKey) { - throw new Error('No publicKey set!'); - } - let sig; - try { - sig = secp256k1_1.secp256k1.Signature.fromCompact(signature); - } - catch (error) { - return false; - } - return secp256k1_1.secp256k1.verify(sig, hash, this.publicKey); - } - wipePrivateData() { - this.privKey = undefined; - if (this.privKeyBytes) { - this.privKeyBytes.fill(0); - this.privKeyBytes = undefined; - } - return this; - } - toJSON() { - return { - xpriv: this.privateExtendedKey, - xpub: this.publicExtendedKey, - }; - } - serialize(version, key) { - if (!this.chainCode) { - throw new Error('No chainCode set'); - } - (0, _assert_1.bytes)(key, 33); - return (0, utils_1.concatBytes)(toU32(version), new Uint8Array([this.depth]), toU32(this.parentFingerprint), toU32(this.index), this.chainCode, key); - } -} -exports.HDKey = HDKey; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@scure/bip32/lib/index.js.map b/node_modules/@scure/bip32/lib/index.js.map deleted file mode 100644 index 81026d43..00000000 --- a/node_modules/@scure/bip32/lib/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../index.ts"],"names":[],"mappings":";;;AACA,6CAA0C;AAC1C,uDAAoD;AACpD,iDAA8C;AAC9C,iDAA8C;AAC9C,mDAA6D;AAC7D,+CAAmG;AACnG,uDAA4D;AAC5D,4DAAqD;AACrD,sCAA2D;AAE3D,MAAM,KAAK,GAAG,qBAAI,CAAC,eAAe,CAAC;AACnC,MAAM,WAAW,GAAG,IAAA,kBAAa,EAAC,eAAM,CAAC,CAAC;AAE1C,SAAS,aAAa,CAAC,KAAiB;IACtC,OAAO,MAAM,CAAC,KAAK,IAAA,kBAAU,EAAC,KAAK,CAAC,EAAE,CAAC,CAAC;AAC1C,CAAC;AAED,SAAS,aAAa,CAAC,GAAW;IAChC,OAAO,IAAA,kBAAU,EAAC,GAAG,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,QAAQ,CAAC,EAAE,EAAE,GAAG,CAAC,CAAC,CAAC;AACxD,CAAC;AAED,MAAM,aAAa,GAAG,IAAA,mBAAW,EAAC,cAAc,CAAC,CAAC;AAElD,MAAM,gBAAgB,GAAa,EAAE,OAAO,EAAE,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,CAAC;AAClE,QAAA,eAAe,GAAW,UAAU,CAAC;AAOlD,MAAM,OAAO,GAAG,CAAC,IAAgB,EAAE,EAAE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,IAAI,CAAC,SAAS,EACd,GAAG,CACJ,CAAC;IACJ,CAAC;CACF;AA7PD,sBA6PC"} \ No newline at end of file diff --git a/node_modules/@scure/bip32/package.json b/node_modules/@scure/bip32/package.json deleted file mode 100644 index dcfaf677..00000000 --- a/node_modules/@scure/bip32/package.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "name": "@scure/bip32", - "version": "1.3.1", - "description": "Secure, audited & minimal implementation of BIP32 hierarchical deterministic (HD) wallets over secp256k1", - "files": [ - "index.ts", - "lib/index.js", - "lib/index.d.ts", - "lib/index.js.map", - "lib/esm/package.json", - "lib/esm/index.js", - "lib/esm/index.js.map" - ], - "main": "lib/index.js", - "module": "lib/esm/index.js", - "types": "lib/index.d.ts", - "exports": { - ".": { - "types": "./lib/index.d.ts", - "import": "./lib/esm/index.js", - "default": "./lib/index.js" - } - }, - "dependencies": { - "@noble/curves": "~1.1.0", - "@noble/hashes": "~1.3.1", - "@scure/base": "~1.1.0" - }, - "devDependencies": { - "micro-should": "0.4.0", - "prettier": "2.8.4", - "typescript": "5.0.2" - }, - "author": "Paul Miller (https://paulmillr.com)", - "homepage": "https://paulmillr.com/", - "repository": { - "type": "git", - "url": "https://github.com/paulmillr/scure-bip32.git" - }, - "contributors": [ - { - "name": "Patricio Palladino", - "email": "patricio@nomiclabs.io" - }, - { - "name": "Paul Miller", - "url": "https://paulmillr.com" - } - ], - "license": "MIT", - "scripts": { - "build": "tsc -d && tsc -p tsconfig.esm.json", - "lint": "prettier --check 'index.ts' 'test/*.test.ts'", - "format": "prettier --write 'index.ts' 'test/*.test.ts'", - "test": "cd test && tsc && node hdkey.test.js" - }, - "keywords": [ - "bip32", - "hierarchical", - "deterministic", - "hd key", - "bip0032", - "bip-32", - "bip39", - "micro", - "scure", - "mnemonic", - "phrase", - "code" - ], - "funding": "https://paulmillr.com/funding/" -} diff --git a/node_modules/@scure/bip39/LICENSE b/node_modules/@scure/bip39/LICENSE deleted file mode 100644 index 68222b80..00000000 --- a/node_modules/@scure/bip39/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2022 Patricio Palladino, Paul Miller (paulmillr.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the “Software”), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/node_modules/@scure/bip39/README.md b/node_modules/@scure/bip39/README.md deleted file mode 100644 index 281df3b2..00000000 --- a/node_modules/@scure/bip39/README.md +++ /dev/null @@ -1,97 +0,0 @@ -# scure-bip39 - -Secure, [audited](#security) & minimal implementation of BIP39 mnemonic phrases. - -Compared to popular `bip39` package, scure-bip39: - -- Supports ESM and common.js -- Supports tree-shaking: only actually used wordlists are bundled -- Is 491KB all-bundled instead of 1.3MB -- Uses 2 dependencies instead of 15 -- Wordlists are 157KB instead of 315KB -- Had an external security [audit](#security) by Cure53 - -Check out [scure-bip32](https://github.com/paulmillr/scure-bip32) if you need -hierarchical deterministic wallets ("HD Wallets"). - -### This library belongs to *scure* - -> **scure** — secure, independently audited packages for every use case. - -- All releases are signed with PGP keys -- As minimal as possible -- Check out all libraries: - [base](https://github.com/paulmillr/scure-base), - [bip32](https://github.com/paulmillr/scure-bip32), - [bip39](https://github.com/paulmillr/scure-bip39), - [btc-signer](https://github.com/paulmillr/scure-btc-signer) - -## Usage - -> npm install @scure/bip39 - -Or - -> yarn add @scure/bip39 - -```js -import * as bip39 from '@scure/bip39'; -import { wordlist } from '@scure/bip39/wordlists/english'; - -// Generate x random words. Uses Cryptographically-Secure Random Number Generator. -const mn = bip39.generateMnemonic(wordlist); -console.log(mn); - -// Reversible: Converts mnemonic string to raw entropy in form of byte array. -const ent = bip39.mnemonicToEntropy(mn, wordlist) - -// Reversible: Converts raw entropy in form of byte array to mnemonic string. -bip39.entropyToMnemonic(ent, wordlist); - -// Validates mnemonic for being 12-24 words contained in `wordlist`. -bip39.validateMnemonic(mn, wordlist); - -// Irreversible: Uses KDF to derive 64 bytes of key data from mnemonic + optional password. -await bip39.mnemonicToSeed(mn, 'password'); -bip39.mnemonicToSeedSync(mn, 'password'); -``` - -This submodule contains the word lists defined by BIP39 for Czech, English, French, Italian, Japanese, Korean, Simplified and Traditional Chinese, and Spanish. These are not imported by default, as that would increase bundle sizes too much. Instead, you should import and use them explicitly. - -```typescript -function generateMnemonic(wordlist: string[], strength?: number): string; -function mnemonicToEntropy(mnemonic: string, wordlist: string[]): Uint8Array; -function entropyToMnemonic(entropy: Uint8Array, wordlist: string[]): string; -function validateMnemonic(mnemonic: string, wordlist: string[]): boolean; -function mnemonicToSeed(mnemonic: string, passphrase?: string): Promise; -function mnemonicToSeedSync(mnemonic: string, passphrase?: string): Uint8Array; -``` - -All wordlists: - -```typescript -import { wordlist as czech } from '@scure/bip39/wordlists/czech'; -import { wordlist as english } from '@scure/bip39/wordlists/english'; -import { wordlist as french } from '@scure/bip39/wordlists/french'; -import { wordlist as italian } from '@scure/bip39/wordlists/italian'; -import { wordlist as japanese } from '@scure/bip39/wordlists/japanese'; -import { wordlist as korean } from '@scure/bip39/wordlists/korean'; -import { wordlist as simp } from '@scure/bip39/wordlists/simplified-chinese'; -import { wordlist as spanish } from '@scure/bip39/wordlists/spanish'; -import { wordlist as trad } from '@scure/bip39/wordlists/traditional-chinese'; -``` - -## Security - -The library has been audited by Cure53 on Jan 5, 2022. Check out the audit [PDF](./audit/2022-01-05-cure53-audit-nbl2.pdf) & [URL](https://cure53.de/pentest-report_hashing-libs.pdf). See [changes since audit](https://github.com/paulmillr/scure-bip39/compare/1.0.0..main). - -1. The library was initially developed for [js-ethereum-cryptography](https://github.com/ethereum/js-ethereum-cryptography) -2. At commit [ae00e6d7](https://github.com/ethereum/js-ethereum-cryptography/commit/ae00e6d7d24fb3c76a1c7fe10039f6ecd120b77e), it - was extracted to a separate package called `micro-bip39` -3. After the audit we've decided to use NPM namespace for security. Since `@micro` namespace was taken, we've renamed the package to `@scure/bip39` - -## License - -[MIT License](./LICENSE) - -Copyright (c) 2022 Patricio Palladino, Paul Miller (paulmillr.com) diff --git a/node_modules/@scure/bip39/esm/index.js b/node_modules/@scure/bip39/esm/index.js deleted file mode 100644 index fd55e60b..00000000 --- a/node_modules/@scure/bip39/esm/index.js +++ /dev/null @@ -1,69 +0,0 @@ -import assert from '@noble/hashes/_assert'; -import { pbkdf2, pbkdf2Async } from '@noble/hashes/pbkdf2'; -import { sha256 } from '@noble/hashes/sha256'; -import { sha512 } from '@noble/hashes/sha512'; -import { randomBytes } from '@noble/hashes/utils'; -import { utils as baseUtils } from '@scure/base'; -const isJapanese = (wordlist) => wordlist[0] === '\u3042\u3044\u3053\u304f\u3057\u3093'; -function nfkd(str) { - if (typeof str !== 'string') - throw new TypeError(`Invalid mnemonic type: ${typeof str}`); - return str.normalize('NFKD'); -} -function normalize(str) { - const norm = nfkd(str); - const words = norm.split(' '); - if (![12, 15, 18, 21, 24].includes(words.length)) - throw new Error('Invalid mnemonic'); - return { nfkd: norm, words }; -} -function assertEntropy(entropy) { - assert.bytes(entropy, 16, 20, 24, 28, 32); -} -export function generateMnemonic(wordlist, strength = 128) { - assert.number(strength); - if (strength % 32 !== 0 || strength > 256) - throw new TypeError('Invalid entropy'); - return entropyToMnemonic(randomBytes(strength / 8), wordlist); -} -const calcChecksum = (entropy) => { - const bitsLeft = 8 - entropy.length / 4; - return new Uint8Array([(sha256(entropy)[0] >> bitsLeft) << bitsLeft]); -}; -function getCoder(wordlist) { - if (!Array.isArray(wordlist) || wordlist.length !== 2048 || typeof wordlist[0] !== 'string') - throw new Error('Worlist: expected array of 2048 strings'); - wordlist.forEach((i) => { - if (typeof i !== 'string') - throw new Error(`Wordlist: non-string element: ${i}`); - }); - return baseUtils.chain(baseUtils.checksum(1, calcChecksum), baseUtils.radix2(11, true), baseUtils.alphabet(wordlist)); -} -export function mnemonicToEntropy(mnemonic, wordlist) { - const { words } = normalize(mnemonic); - const entropy = getCoder(wordlist).decode(words); - assertEntropy(entropy); - return entropy; -} -export function entropyToMnemonic(entropy, wordlist) { - assertEntropy(entropy); - const words = getCoder(wordlist).encode(entropy); - return words.join(isJapanese(wordlist) ? '\u3000' : ' '); -} -export function validateMnemonic(mnemonic, wordlist) { - try { - mnemonicToEntropy(mnemonic, wordlist); - } - catch (e) { - return false; - } - return true; -} -const salt = (passphrase) => nfkd(`mnemonic${passphrase}`); -export function mnemonicToSeed(mnemonic, passphrase = '') { - return pbkdf2Async(sha512, normalize(mnemonic).nfkd, salt(passphrase), { c: 2048, dkLen: 64 }); -} -export function mnemonicToSeedSync(mnemonic, passphrase = '') { - return pbkdf2(sha512, normalize(mnemonic).nfkd, salt(passphrase), { c: 2048, dkLen: 64 }); -} -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/@scure/bip39/esm/index.js.map b/node_modules/@scure/bip39/esm/index.js.map deleted file mode 100644 index a8297d20..00000000 --- a/node_modules/@scure/bip39/esm/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AACA,OAAO,MAAM,MAAM,uBAAuB,CAAC;AAC3C,OAAO,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;A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} \ No newline at end of file diff --git a/node_modules/@scure/bip39/esm/package.json b/node_modules/@scure/bip39/esm/package.json deleted file mode 100644 index aead43de..00000000 --- a/node_modules/@scure/bip39/esm/package.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "type": "module" -} \ No newline at end of file diff --git a/node_modules/@scure/bip39/esm/wordlists/czech.js b/node_modules/@scure/bip39/esm/wordlists/czech.js deleted file mode 100644 index cf7b564f..00000000 --- a/node_modules/@scure/bip39/esm/wordlists/czech.js +++ /dev/null @@ -1,2049 +0,0 @@ -export const wordlist = `abdikace -abeceda -adresa -agrese -akce -aktovka -alej -alkohol -amputace -ananas -andulka -anekdota -anketa -antika -anulovat -archa -arogance -asfalt -asistent -aspirace -astma -astronom -atlas -atletika -atol -autobus -azyl -babka -bachor -bacil -baculka -badatel -bageta -bagr -bahno -bakterie -balada -baletka -balkon -balonek -balvan -balza -bambus -bankomat -barbar -baret -barman -baroko -barva -baterka -batoh -bavlna -bazalka -bazilika -bazuka -bedna -beran -beseda -bestie -beton -bezinka -bezmoc -beztak -bicykl -bidlo -biftek -bikiny -bilance -biograf -biolog -bitva -bizon -blahobyt -blatouch -blecha -bledule -blesk -blikat -blizna -blokovat -bloudit -blud -bobek -bobr -bodlina -bodnout -bohatost -bojkot -bojovat -bokorys -bolest -borec -borovice -bota -boubel -bouchat -bouda -boule -bourat -boxer -bradavka -brambora -branka -bratr -brepta -briketa -brko -brloh -bronz -broskev -brunetka -brusinka -brzda -brzy -bublina -bubnovat -buchta -buditel -budka -budova -bufet -bujarost -bukvice -buldok -bulva -bunda -bunkr -burza -butik -buvol -buzola -bydlet -bylina -bytovka -bzukot -capart -carevna -cedr -cedule -cejch -cejn -cela -celer -celkem -celnice -cenina -cennost -cenovka -centrum -cenzor -cestopis -cetka -chalupa -chapadlo -charita -chata -chechtat -chemie -chichot -chirurg -chlad -chleba -chlubit -chmel -chmura -chobot -chochol -chodba -cholera -chomout -chopit -choroba -chov -chrapot -chrlit -chrt -chrup -chtivost -chudina -chutnat -chvat -chvilka -chvost -chyba -chystat -chytit -cibule -cigareta -cihelna -cihla -cinkot -cirkus -cisterna -citace -citrus -cizinec -cizost -clona -cokoliv -couvat -ctitel -ctnost -cudnost -cuketa -cukr -cupot -cvaknout -cval -cvik -cvrkot -cyklista -daleko -dareba -datel -datum -dcera -debata -dechovka -decibel -deficit -deflace -dekl -dekret -demokrat -deprese -derby -deska -detektiv -dikobraz -diktovat -dioda -diplom -disk -displej -divadlo -divoch -dlaha -dlouho -dluhopis -dnes -dobro -dobytek -docent -dochutit -dodnes -dohled -dohoda -dohra -dojem -dojnice -doklad -dokola -doktor -dokument -dolar -doleva -dolina -doma -dominant -domluvit -domov -donutit -dopad -dopis -doplnit -doposud -doprovod -dopustit -dorazit -dorost -dort -dosah -doslov -dostatek -dosud -dosyta -dotaz -dotek -dotknout -doufat -doutnat -dovozce -dozadu -doznat -dozorce -drahota -drak -dramatik -dravec -draze -drdol -drobnost -drogerie -drozd -drsnost -drtit -drzost -duben -duchovno -dudek -duha -duhovka -dusit -dusno -dutost -dvojice -dvorec -dynamit -ekolog -ekonomie -elektron -elipsa -email -emise -emoce -empatie -epizoda -epocha -epopej -epos -esej -esence -eskorta -eskymo -etiketa -euforie -evoluce -exekuce -exkurze -expedice -exploze -export -extrakt -facka -fajfka -fakulta -fanatik -fantazie -farmacie -favorit -fazole -federace -fejeton -fenka -fialka -figurant -filozof -filtr -finance -finta -fixace -fjord -flanel -flirt -flotila -fond -fosfor -fotbal -fotka -foton -frakce -freska -fronta -fukar -funkce -fyzika -galeje -garant -genetika -geolog -gilotina -glazura -glejt -golem -golfista -gotika -graf -gramofon -granule -grep -gril -grog -groteska -guma -hadice -hadr -hala -halenka -hanba -hanopis -harfa -harpuna -havran -hebkost -hejkal -hejno -hejtman -hektar -helma -hematom -herec -herna -heslo -hezky -historik -hladovka -hlasivky -hlava -hledat -hlen -hlodavec -hloh -hloupost -hltat -hlubina -hluchota -hmat -hmota -hmyz -hnis -hnojivo -hnout -hoblina -hoboj -hoch -hodiny -hodlat -hodnota -hodovat -hojnost -hokej -holinka -holka -holub -homole -honitba -honorace -horal -horda -horizont -horko -horlivec -hormon -hornina -horoskop -horstvo -hospoda -hostina -hotovost -houba -houf -houpat -houska -hovor -hradba -hranice -hravost -hrazda -hrbolek -hrdina -hrdlo -hrdost -hrnek -hrobka -hromada -hrot -hrouda -hrozen -hrstka -hrubost -hryzat -hubenost -hubnout -hudba -hukot -humr -husita -hustota -hvozd -hybnost -hydrant -hygiena -hymna -hysterik -idylka -ihned -ikona -iluze -imunita -infekce -inflace -inkaso -inovace -inspekce -internet -invalida -investor -inzerce -ironie -jablko -jachta -jahoda -jakmile -jakost -jalovec -jantar -jarmark -jaro -jasan -jasno -jatka -javor -jazyk -jedinec -jedle -jednatel -jehlan -jekot -jelen -jelito -jemnost -jenom -jepice -jeseter -jevit -jezdec -jezero -jinak -jindy -jinoch -jiskra -jistota -jitrnice -jizva -jmenovat -jogurt -jurta -kabaret -kabel -kabinet -kachna -kadet -kadidlo -kahan -kajak -kajuta -kakao -kaktus -kalamita -kalhoty -kalibr -kalnost -kamera -kamkoliv -kamna -kanibal -kanoe -kantor -kapalina -kapela -kapitola -kapka -kaple -kapota -kapr -kapusta -kapybara -karamel -karotka -karton -kasa -katalog -katedra -kauce -kauza -kavalec -kazajka -kazeta -kazivost -kdekoliv -kdesi -kedluben -kemp -keramika -kino -klacek -kladivo -klam -klapot -klasika -klaun -klec -klenba -klepat -klesnout -klid -klima -klisna -klobouk -klokan -klopa -kloub -klubovna -klusat -kluzkost -kmen -kmitat -kmotr -kniha -knot -koalice -koberec -kobka -kobliha -kobyla -kocour -kohout -kojenec -kokos -koktejl -kolaps -koleda -kolize -kolo -komando -kometa -komik -komnata -komora -kompas -komunita -konat -koncept -kondice -konec -konfese -kongres -konina -konkurs -kontakt -konzerva -kopanec -kopie -kopnout -koprovka -korbel -korektor -kormidlo -koroptev -korpus -koruna -koryto -korzet -kosatec -kostka -kotel -kotleta -kotoul -koukat -koupelna -kousek -kouzlo -kovboj -koza -kozoroh -krabice -krach -krajina -kralovat -krasopis -kravata -kredit -krejcar -kresba -kreveta -kriket -kritik -krize -krkavec -krmelec -krmivo -krocan -krok -kronika -kropit -kroupa -krovka -krtek -kruhadlo -krupice -krutost -krvinka -krychle -krypta -krystal -kryt -kudlanka -kufr -kujnost -kukla -kulajda -kulich -kulka -kulomet -kultura -kuna -kupodivu -kurt -kurzor -kutil -kvalita -kvasinka -kvestor -kynolog -kyselina -kytara -kytice -kytka -kytovec -kyvadlo -labrador -lachtan -ladnost -laik -lakomec -lamela -lampa -lanovka -lasice -laso -lastura -latinka -lavina -lebka -leckdy -leden -lednice -ledovka -ledvina -legenda -legie -legrace -lehce -lehkost -lehnout -lektvar -lenochod -lentilka -lepenka -lepidlo -letadlo -letec -letmo -letokruh -levhart -levitace -levobok -libra -lichotka -lidojed -lidskost -lihovina -lijavec -lilek -limetka -linie -linka -linoleum -listopad -litina -litovat -lobista -lodivod -logika -logoped -lokalita -loket -lomcovat -lopata -lopuch -lord -losos -lotr -loudal -louh -louka -louskat -lovec -lstivost -lucerna -lucifer -lump -lusk -lustrace -lvice -lyra -lyrika -lysina -madam -madlo -magistr -mahagon -majetek -majitel -majorita -makak -makovice -makrela -malba -malina -malovat -malvice -maminka -mandle -manko -marnost -masakr -maskot -masopust -matice -matrika -maturita -mazanec -mazivo -mazlit -mazurka -mdloba -mechanik -meditace -medovina -melasa -meloun -mentolka -metla -metoda -metr -mezera -migrace -mihnout -mihule -mikina -mikrofon -milenec -milimetr -milost -mimika -mincovna -minibar -minomet -minulost -miska -mistr -mixovat -mladost -mlha -mlhovina -mlok -mlsat -mluvit -mnich -mnohem -mobil -mocnost -modelka -modlitba -mohyla -mokro -molekula -momentka -monarcha -monokl -monstrum -montovat -monzun -mosaz -moskyt -most -motivace -motorka -motyka -moucha -moudrost -mozaika -mozek -mozol -mramor -mravenec -mrkev -mrtvola -mrzet -mrzutost -mstitel -mudrc -muflon -mulat -mumie -munice -muset -mutace -muzeum -muzikant -myslivec -mzda -nabourat -nachytat -nadace -nadbytek -nadhoz -nadobro -nadpis -nahlas -nahnat -nahodile -nahradit -naivita -najednou -najisto -najmout -naklonit -nakonec -nakrmit -nalevo -namazat -namluvit -nanometr -naoko -naopak -naostro -napadat -napevno -naplnit -napnout -naposled -naprosto -narodit -naruby -narychlo -nasadit -nasekat -naslepo -nastat -natolik -navenek -navrch -navzdory -nazvat -nebe -nechat -necky -nedaleko -nedbat -neduh -negace -nehet -nehoda -nejen -nejprve -neklid -nelibost -nemilost -nemoc -neochota -neonka -nepokoj -nerost -nerv -nesmysl -nesoulad -netvor -neuron -nevina -nezvykle -nicota -nijak -nikam -nikdy -nikl -nikterak -nitro -nocleh -nohavice -nominace -nora -norek -nositel -nosnost -nouze -noviny -novota -nozdra -nuda -nudle -nuget -nutit -nutnost -nutrie -nymfa -obal -obarvit -obava -obdiv -obec -obehnat -obejmout -obezita -obhajoba -obilnice -objasnit -objekt -obklopit -oblast -oblek -obliba -obloha -obluda -obnos -obohatit -obojek -obout -obrazec -obrna -obruba -obrys -obsah -obsluha -obstarat -obuv -obvaz -obvinit -obvod -obvykle -obyvatel -obzor -ocas -ocel -ocenit -ochladit -ochota -ochrana -ocitnout -odboj -odbyt -odchod -odcizit -odebrat -odeslat -odevzdat -odezva -odhadce -odhodit -odjet -odjinud -odkaz -odkoupit -odliv -odluka -odmlka -odolnost -odpad -odpis -odplout -odpor -odpustit -odpykat -odrazka -odsoudit -odstup -odsun -odtok -odtud -odvaha -odveta -odvolat -odvracet -odznak -ofina -ofsajd -ohlas -ohnisko -ohrada -ohrozit -ohryzek -okap -okenice -oklika -okno -okouzlit -okovy -okrasa -okres -okrsek -okruh -okupant -okurka -okusit -olejnina -olizovat -omak -omeleta -omezit -omladina -omlouvat -omluva -omyl -onehdy -opakovat -opasek -operace -opice -opilost -opisovat -opora -opozice -opravdu -oproti -orbital -orchestr -orgie -orlice -orloj -ortel -osada -oschnout -osika -osivo -oslava -oslepit -oslnit -oslovit -osnova -osoba -osolit -ospalec -osten -ostraha -ostuda -ostych -osvojit -oteplit -otisk -otop -otrhat -otrlost -otrok -otruby -otvor -ovanout -ovar -oves -ovlivnit -ovoce -oxid -ozdoba -pachatel -pacient -padouch -pahorek -pakt -palanda -palec -palivo -paluba -pamflet -pamlsek -panenka -panika -panna -panovat -panstvo -pantofle -paprika -parketa -parodie -parta -paruka -paryba -paseka -pasivita -pastelka -patent -patrona -pavouk -pazneht -pazourek -pecka -pedagog -pejsek -peklo -peloton -penalta -pendrek -penze -periskop -pero -pestrost -petarda -petice -petrolej -pevnina -pexeso -pianista -piha -pijavice -pikle -piknik -pilina -pilnost -pilulka -pinzeta -pipeta -pisatel -pistole -pitevna -pivnice -pivovar -placenta -plakat -plamen -planeta -plastika -platit -plavidlo -plaz -plech -plemeno -plenta -ples -pletivo -plevel -plivat -plnit -plno -plocha -plodina -plomba -plout -pluk -plyn -pobavit -pobyt -pochod -pocit -poctivec -podat -podcenit -podepsat -podhled -podivit -podklad -podmanit -podnik -podoba -podpora -podraz -podstata -podvod -podzim -poezie -pohanka -pohnutka -pohovor -pohroma -pohyb -pointa -pojistka -pojmout -pokazit -pokles -pokoj -pokrok -pokuta -pokyn -poledne -polibek -polknout -poloha -polynom -pomalu -pominout -pomlka -pomoc -pomsta -pomyslet -ponechat -ponorka -ponurost -popadat -popel -popisek -poplach -poprosit -popsat -popud -poradce -porce -porod -porucha -poryv -posadit -posed -posila -poskok -poslanec -posoudit -pospolu -postava -posudek -posyp -potah -potkan -potlesk -potomek -potrava -potupa -potvora -poukaz -pouto -pouzdro -povaha -povidla -povlak -povoz -povrch -povstat -povyk -povzdech -pozdrav -pozemek -poznatek -pozor -pozvat -pracovat -prahory -praktika -prales -praotec -praporek -prase -pravda -princip -prkno -probudit -procento -prodej -profese -prohra -projekt -prolomit -promile -pronikat -propad -prorok -prosba -proton -proutek -provaz -prskavka -prsten -prudkost -prut -prvek -prvohory -psanec -psovod -pstruh -ptactvo -puberta -puch -pudl -pukavec -puklina -pukrle -pult -pumpa -punc -pupen -pusa -pusinka -pustina -putovat -putyka -pyramida -pysk -pytel -racek -rachot -radiace -radnice -radon -raft -ragby -raketa -rakovina -rameno -rampouch -rande -rarach -rarita -rasovna -rastr -ratolest -razance -razidlo -reagovat -reakce -recept -redaktor -referent -reflex -rejnok -reklama -rekord -rekrut -rektor -reputace -revize -revma -revolver -rezerva -riskovat -riziko -robotika -rodokmen -rohovka -rokle -rokoko -romaneto -ropovod -ropucha -rorejs -rosol -rostlina -rotmistr -rotoped -rotunda -roubenka -roucho -roup -roura -rovina -rovnice -rozbor -rozchod -rozdat -rozeznat -rozhodce -rozinka -rozjezd -rozkaz -rozloha -rozmar -rozpad -rozruch -rozsah -roztok -rozum -rozvod -rubrika -ruchadlo -rukavice -rukopis -ryba -rybolov -rychlost -rydlo -rypadlo -rytina -ryzost -sadista -sahat -sako -samec -samizdat -samota -sanitka -sardinka -sasanka -satelit -sazba -sazenice -sbor -schovat -sebranka -secese -sedadlo -sediment -sedlo -sehnat -sejmout -sekera -sekta -sekunda -sekvoje -semeno -seno -servis -sesadit -seshora -seskok -seslat -sestra -sesuv -sesypat -setba -setina -setkat -setnout -setrvat -sever -seznam -shoda -shrnout -sifon -silnice -sirka -sirotek -sirup -situace -skafandr -skalisko -skanzen -skaut -skeptik -skica -skladba -sklenice -sklo -skluz -skoba -skokan -skoro -skripta -skrz -skupina -skvost -skvrna -slabika -sladidlo -slanina -slast -slavnost -sledovat -slepec -sleva -slezina -slib -slina -sliznice -slon -sloupek -slovo -sluch -sluha -slunce -slupka -slza -smaragd -smetana -smilstvo -smlouva -smog -smrad -smrk -smrtka -smutek -smysl -snad -snaha -snob -sobota -socha -sodovka -sokol -sopka -sotva -souboj -soucit -soudce -souhlas -soulad -soumrak -souprava -soused -soutok -souviset -spalovna -spasitel -spis -splav -spodek -spojenec -spolu -sponzor -spornost -spousta -sprcha -spustit -sranda -sraz -srdce -srna -srnec -srovnat -srpen -srst -srub -stanice -starosta -statika -stavba -stehno -stezka -stodola -stolek -stopa -storno -stoupat -strach -stres -strhnout -strom -struna -studna -stupnice -stvol -styk -subjekt -subtropy -suchar -sudost -sukno -sundat -sunout -surikata -surovina -svah -svalstvo -svetr -svatba -svazek -svisle -svitek -svoboda -svodidlo -svorka -svrab -sykavka -sykot -synek -synovec -sypat -sypkost -syrovost -sysel -sytost -tabletka -tabule -tahoun -tajemno -tajfun -tajga -tajit -tajnost -taktika -tamhle -tampon -tancovat -tanec -tanker -tapeta -tavenina -tazatel -technika -tehdy -tekutina -telefon -temnota -tendence -tenista -tenor -teplota -tepna -teprve -terapie -termoska -textil -ticho -tiskopis -titulek -tkadlec -tkanina -tlapka -tleskat -tlukot -tlupa -tmel -toaleta -topinka -topol -torzo -touha -toulec -tradice -traktor -tramp -trasa -traverza -trefit -trest -trezor -trhavina -trhlina -trochu -trojice -troska -trouba -trpce -trpitel -trpkost -trubec -truchlit -truhlice -trus -trvat -tudy -tuhnout -tuhost -tundra -turista -turnaj -tuzemsko -tvaroh -tvorba -tvrdost -tvrz -tygr -tykev -ubohost -uboze -ubrat -ubrousek -ubrus -ubytovna -ucho -uctivost -udivit -uhradit -ujednat -ujistit -ujmout -ukazatel -uklidnit -uklonit -ukotvit -ukrojit -ulice -ulita -ulovit -umyvadlo -unavit -uniforma -uniknout -upadnout -uplatnit -uplynout -upoutat -upravit -uran -urazit -usednout -usilovat -usmrtit -usnadnit -usnout -usoudit -ustlat -ustrnout -utahovat -utkat -utlumit -utonout -utopenec -utrousit -uvalit -uvolnit -uvozovka -uzdravit -uzel -uzenina -uzlina -uznat -vagon -valcha -valoun -vana -vandal -vanilka -varan -varhany -varovat -vcelku -vchod -vdova -vedro -vegetace -vejce -velbloud -veletrh -velitel -velmoc -velryba -venkov -veranda -verze -veselka -veskrze -vesnice -vespodu -vesta -veterina -veverka -vibrace -vichr -videohra -vidina -vidle -vila -vinice -viset -vitalita -vize -vizitka -vjezd -vklad -vkus -vlajka -vlak -vlasec -vlevo -vlhkost -vliv -vlnovka -vloupat -vnucovat -vnuk -voda -vodivost -vodoznak -vodstvo -vojensky -vojna -vojsko -volant -volba -volit -volno -voskovka -vozidlo -vozovna -vpravo -vrabec -vracet -vrah -vrata -vrba -vrcholek -vrhat -vrstva -vrtule -vsadit -vstoupit -vstup -vtip -vybavit -vybrat -vychovat -vydat -vydra -vyfotit -vyhledat -vyhnout -vyhodit -vyhradit -vyhubit -vyjasnit -vyjet -vyjmout -vyklopit -vykonat -vylekat -vymazat -vymezit -vymizet -vymyslet -vynechat -vynikat -vynutit -vypadat -vyplatit -vypravit -vypustit -vyrazit -vyrovnat -vyrvat -vyslovit -vysoko -vystavit -vysunout -vysypat -vytasit -vytesat -vytratit -vyvinout -vyvolat -vyvrhel -vyzdobit -vyznat -vzadu -vzbudit -vzchopit -vzdor -vzduch -vzdychat -vzestup -vzhledem -vzkaz -vzlykat -vznik -vzorek -vzpoura -vztah -vztek -xylofon -zabrat -zabydlet -zachovat -zadarmo -zadusit -zafoukat -zahltit -zahodit -zahrada -zahynout -zajatec -zajet -zajistit -zaklepat -zakoupit -zalepit -zamezit -zamotat -zamyslet -zanechat -zanikat -zaplatit -zapojit -zapsat -zarazit -zastavit -zasunout -zatajit -zatemnit -zatknout -zaujmout -zavalit -zavelet -zavinit -zavolat -zavrtat -zazvonit -zbavit -zbrusu -zbudovat -zbytek -zdaleka -zdarma -zdatnost -zdivo -zdobit -zdroj -zdvih -zdymadlo -zelenina -zeman -zemina -zeptat -zezadu -zezdola -zhatit -zhltnout -zhluboka -zhotovit -zhruba -zima -zimnice -zjemnit -zklamat -zkoumat -zkratka -zkumavka -zlato -zlehka -zloba -zlom -zlost -zlozvyk -zmapovat -zmar -zmatek -zmije -zmizet -zmocnit -zmodrat -zmrzlina -zmutovat -znak -znalost -znamenat -znovu -zobrazit -zotavit -zoubek -zoufale -zplodit -zpomalit -zprava -zprostit -zprudka -zprvu -zrada -zranit -zrcadlo -zrnitost -zrno -zrovna -zrychlit -zrzavost -zticha -ztratit -zubovina -zubr -zvednout -zvenku -zvesela -zvon -zvrat -zvukovod -zvyk`.split('\n'); -//# sourceMappingURL=czech.js.map \ No newline at end of file diff --git a/node_modules/@scure/bip39/esm/wordlists/czech.js.map b/node_modules/@scure/bip39/esm/wordlists/czech.js.map deleted file mode 100644 index 613dd9fe..00000000 --- a/node_modules/@scure/bip39/esm/wordlists/czech.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"czech.js","sourceRoot":"","sources":["../../src/wordlists/czech.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,QAAQ,GAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;KA+/D7B,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@scure/bip39/esm/wordlists/english.js b/node_modules/@scure/bip39/esm/wordlists/english.js deleted file mode 100644 index bb8972e5..00000000 --- a/node_modules/@scure/bip39/esm/wordlists/english.js +++ /dev/null @@ -1,2049 +0,0 @@ -export const wordlist = `abandon -ability -able -about -above -absent -absorb -abstract -absurd -abuse -access -accident -account -accuse -achieve -acid -acoustic -acquire -across -act -action -actor -actress -actual -adapt -add -addict -address -adjust -admit -adult -advance -advice -aerobic -affair -afford -afraid -again -age -agent -agree -ahead -aim -air -airport -aisle -alarm -album -alcohol -alert -alien -all -alley -allow -almost -alone -alpha -already -also -alter -always -amateur -amazing -among -amount -amused -analyst -anchor -ancient -anger -angle -angry -animal -ankle -announce -annual -another -answer -antenna -antique -anxiety -any -apart -apology -appear -apple -approve -april -arch -arctic -area -arena -argue -arm -armed -armor -army -around -arrange -arrest -arrive -arrow -art -artefact -artist -artwork -ask -aspect -assault -asset -assist -assume -asthma -athlete -atom -attack -attend -attitude -attract -auction -audit -august -aunt -author -auto -autumn -average -avocado -avoid -awake -aware -away -awesome -awful -awkward -axis -baby -bachelor -bacon -badge -bag -balance -balcony -ball -bamboo -banana -banner -bar -barely -bargain -barrel -base -basic -basket -battle -beach -bean -beauty -because -become -beef -before -begin -behave -behind -believe -below -belt -bench -benefit -best -betray -better -between -beyond -bicycle -bid -bike -bind -biology -bird -birth -bitter -black -blade -blame -blanket -blast -bleak -bless -blind -blood -blossom -blouse -blue -blur -blush -board -boat -body -boil -bomb -bone -bonus -book -boost -border -boring -borrow -boss -bottom -bounce -box -boy -bracket -brain -brand -brass -brave -bread -breeze -brick -bridge -brief -bright -bring -brisk -broccoli -broken -bronze -broom -brother -brown -brush -bubble -buddy -budget -buffalo -build -bulb -bulk -bullet -bundle -bunker -burden -burger -burst -bus -business -busy -butter -buyer -buzz -cabbage -cabin -cable -cactus -cage -cake -call -calm -camera -camp -can -canal -cancel -candy -cannon -canoe -canvas -canyon -capable -capital -captain -car -carbon -card -cargo -carpet -carry -cart -case -cash -casino -castle -casual -cat -catalog -catch -category -cattle -caught -cause -caution -cave -ceiling -celery -cement -census -century -cereal -certain -chair -chalk -champion -change -chaos -chapter -charge -chase -chat -cheap -check -cheese -chef -cherry -chest -chicken -chief -child -chimney -choice -choose -chronic -chuckle -chunk -churn -cigar -cinnamon -circle -citizen -city -civil -claim -clap -clarify -claw -clay -clean -clerk -clever -click -client -cliff -climb -clinic -clip -clock -clog -close -cloth -cloud -clown -club -clump -cluster -clutch -coach -coast -coconut -code -coffee -coil -coin -collect -color -column -combine -come -comfort -comic -common -company -concert -conduct -confirm -congress -connect -consider -control -convince -cook -cool -copper -copy -coral -core -corn -correct -cost -cotton -couch -country -couple -course -cousin -cover -coyote -crack -cradle -craft -cram -crane -crash -crater -crawl -crazy -cream -credit -creek -crew -cricket -crime -crisp -critic -crop -cross -crouch -crowd -crucial -cruel -cruise -crumble -crunch -crush -cry -crystal -cube -culture -cup -cupboard -curious -current -curtain -curve -cushion -custom -cute -cycle -dad -damage -damp -dance -danger -daring -dash -daughter -dawn -day -deal -debate -debris -decade -december -decide -decline -decorate -decrease -deer -defense -define -defy -degree -delay -deliver -demand -demise -denial -dentist -deny -depart -depend -deposit -depth -deputy -derive -describe -desert -design -desk -despair -destroy -detail -detect -develop -device -devote -diagram -dial -diamond -diary -dice -diesel -diet -differ -digital -dignity -dilemma -dinner -dinosaur -direct -dirt -disagree -discover -disease -dish -dismiss -disorder -display -distance -divert -divide -divorce -dizzy -doctor -document -dog -doll -dolphin -domain -donate -donkey -donor -door -dose -double -dove -draft -dragon -drama -drastic -draw -dream -dress -drift -drill -drink -drip -drive -drop -drum -dry -duck -dumb -dune -during -dust -dutch -duty -dwarf -dynamic -eager -eagle -early -earn -earth -easily -east -easy -echo -ecology -economy -edge -edit -educate -effort -egg -eight -either -elbow -elder -electric -elegant -element -elephant -elevator -elite -else -embark -embody -embrace -emerge -emotion -employ -empower -empty -enable -enact -end -endless -endorse -enemy -energy -enforce -engage -engine -enhance -enjoy -enlist -enough -enrich -enroll -ensure -enter -entire -entry -envelope -episode -equal -equip -era -erase -erode -erosion -error -erupt -escape -essay -essence -estate -eternal -ethics -evidence -evil -evoke -evolve -exact -example -excess -exchange -excite -exclude -excuse -execute -exercise -exhaust -exhibit -exile -exist -exit -exotic -expand -expect -expire -explain -expose -express -extend -extra -eye -eyebrow -fabric -face -faculty -fade -faint -faith -fall -false -fame -family -famous -fan -fancy -fantasy -farm -fashion -fat -fatal -father -fatigue -fault -favorite -feature -february -federal -fee -feed -feel -female -fence -festival -fetch -fever -few -fiber -fiction -field -figure -file -film -filter -final -find -fine -finger -finish -fire -firm -first -fiscal -fish -fit -fitness -fix -flag -flame -flash -flat -flavor -flee -flight -flip -float -flock -floor -flower -fluid -flush -fly -foam -focus -fog -foil -fold -follow -food -foot -force -forest -forget -fork -fortune -forum -forward -fossil -foster -found -fox -fragile -frame -frequent -fresh -friend -fringe -frog -front -frost -frown -frozen -fruit -fuel -fun -funny -furnace -fury -future -gadget -gain -galaxy -gallery -game -gap -garage -garbage -garden -garlic -garment -gas -gasp -gate -gather -gauge -gaze -general -genius -genre -gentle -genuine -gesture -ghost -giant -gift -giggle -ginger -giraffe -girl -give -glad -glance -glare -glass -glide -glimpse -globe -gloom -glory -glove -glow -glue -goat -goddess -gold -good -goose -gorilla -gospel -gossip -govern -gown -grab -grace -grain -grant -grape -grass -gravity -great -green -grid -grief -grit -grocery -group -grow -grunt -guard -guess -guide -guilt -guitar -gun -gym -habit -hair -half -hammer -hamster -hand -happy -harbor -hard -harsh -harvest -hat -have -hawk -hazard -head -health -heart -heavy -hedgehog -height -hello -helmet -help -hen -hero -hidden -high -hill -hint -hip -hire -history -hobby -hockey -hold -hole -holiday -hollow -home -honey -hood -hope -horn -horror -horse -hospital -host -hotel -hour -hover -hub -huge -human -humble -humor -hundred -hungry -hunt -hurdle -hurry -hurt -husband -hybrid -ice -icon -idea -identify -idle -ignore -ill -illegal -illness -image -imitate -immense -immune -impact -impose -improve -impulse -inch -include -income -increase -index -indicate -indoor -industry -infant -inflict -inform -inhale -inherit -initial -inject -injury -inmate -inner -innocent -input -inquiry -insane -insect -inside -inspire -install -intact -interest -into -invest -invite -involve -iron -island -isolate -issue -item -ivory -jacket -jaguar -jar -jazz -jealous -jeans -jelly -jewel -job -join -joke -journey -joy -judge -juice -jump -jungle -junior -junk -just -kangaroo -keen -keep -ketchup -key -kick -kid -kidney -kind -kingdom -kiss -kit -kitchen -kite -kitten -kiwi -knee -knife -knock -know -lab -label -labor -ladder -lady -lake -lamp -language -laptop -large -later -latin -laugh -laundry -lava -law -lawn -lawsuit -layer -lazy -leader -leaf -learn -leave -lecture -left -leg -legal -legend -leisure -lemon -lend -length -lens -leopard -lesson -letter -level -liar -liberty -library -license -life -lift -light -like -limb -limit -link -lion -liquid -list -little -live -lizard -load -loan -lobster -local -lock -logic -lonely -long -loop -lottery -loud -lounge -love -loyal -lucky -luggage -lumber -lunar -lunch -luxury -lyrics -machine -mad -magic -magnet -maid -mail -main -major -make -mammal -man -manage -mandate -mango -mansion -manual -maple -marble -march -margin -marine -market -marriage -mask -mass -master -match -material -math -matrix -matter -maximum -maze -meadow -mean -measure -meat -mechanic -medal -media -melody -melt -member -memory -mention -menu -mercy -merge -merit -merry -mesh -message -metal -method -middle -midnight -milk -million -mimic -mind -minimum -minor -minute -miracle -mirror -misery -miss -mistake -mix -mixed -mixture -mobile -model -modify -mom -moment -monitor -monkey -monster -month -moon -moral -more -morning -mosquito -mother -motion -motor -mountain -mouse -move -movie -much -muffin -mule -multiply -muscle -museum -mushroom -music -must -mutual -myself -mystery -myth -naive -name -napkin -narrow -nasty -nation -nature -near -neck -need -negative -neglect -neither -nephew -nerve -nest -net -network -neutral -never -news -next -nice -night -noble -noise -nominee -noodle -normal -north -nose -notable -note -nothing -notice -novel -now -nuclear -number -nurse -nut -oak -obey -object -oblige -obscure -observe -obtain -obvious -occur -ocean -october -odor -off -offer -office -often -oil -okay -old -olive -olympic -omit -once -one -onion -online -only -open -opera -opinion -oppose -option -orange -orbit -orchard -order -ordinary -organ -orient -original -orphan -ostrich -other -outdoor -outer -output -outside -oval -oven -over -own -owner -oxygen -oyster -ozone -pact -paddle -page -pair -palace -palm -panda -panel -panic -panther -paper -parade -parent -park -parrot -party -pass -patch -path -patient -patrol -pattern -pause -pave -payment -peace -peanut -pear -peasant -pelican -pen -penalty -pencil -people -pepper -perfect -permit -person -pet -phone -photo -phrase -physical -piano -picnic -picture -piece -pig -pigeon -pill -pilot -pink -pioneer -pipe -pistol -pitch -pizza -place -planet -plastic -plate -play -please -pledge -pluck -plug -plunge -poem -poet -point -polar -pole -police -pond -pony -pool -popular -portion -position -possible -post -potato -pottery -poverty -powder -power -practice -praise -predict -prefer -prepare -present -pretty -prevent -price -pride -primary -print -priority -prison -private -prize -problem -process -produce -profit -program -project -promote -proof -property -prosper -protect -proud -provide -public -pudding -pull -pulp -pulse -pumpkin -punch -pupil -puppy -purchase -purity -purpose -purse -push -put -puzzle -pyramid -quality -quantum -quarter -question -quick -quit -quiz -quote -rabbit -raccoon -race -rack -radar -radio -rail -rain -raise -rally -ramp -ranch -random -range -rapid -rare -rate -rather -raven -raw -razor -ready -real -reason -rebel -rebuild -recall -receive -recipe -record -recycle -reduce -reflect -reform -refuse -region -regret -regular -reject -relax -release -relief -rely -remain -remember -remind -remove -render -renew -rent -reopen -repair -repeat -replace -report -require -rescue -resemble -resist -resource -response -result -retire -retreat -return -reunion -reveal -review -reward -rhythm -rib -ribbon -rice -rich -ride -ridge -rifle -right -rigid -ring -riot -ripple -risk -ritual -rival -river -road -roast -robot -robust -rocket -romance -roof -rookie -room -rose -rotate -rough -round -route -royal -rubber -rude -rug -rule -run -runway -rural -sad -saddle -sadness -safe -sail -salad -salmon -salon -salt -salute -same -sample -sand -satisfy -satoshi -sauce -sausage -save -say -scale -scan -scare -scatter -scene -scheme -school -science -scissors -scorpion -scout -scrap -screen -script -scrub -sea -search -season -seat -second -secret -section -security -seed -seek -segment -select -sell -seminar -senior -sense -sentence -series -service -session -settle -setup -seven -shadow -shaft -shallow -share -shed -shell -sheriff -shield -shift -shine -ship -shiver -shock -shoe -shoot -shop -short -shoulder -shove -shrimp -shrug -shuffle -shy -sibling -sick -side -siege -sight -sign -silent -silk -silly -silver -similar -simple -since -sing -siren -sister -situate -six -size -skate -sketch -ski -skill -skin -skirt -skull -slab -slam -sleep -slender -slice -slide -slight -slim -slogan -slot -slow -slush -small -smart -smile -smoke -smooth -snack -snake -snap -sniff -snow -soap -soccer -social -sock -soda -soft -solar -soldier -solid -solution -solve -someone -song -soon -sorry -sort -soul -sound -soup -source -south -space -spare -spatial -spawn -speak -special -speed -spell -spend -sphere -spice -spider -spike -spin -spirit -split -spoil -sponsor -spoon -sport -spot -spray -spread -spring -spy -square -squeeze -squirrel -stable -stadium -staff -stage -stairs -stamp -stand -start -state -stay -steak -steel -stem -step -stereo -stick -still -sting -stock -stomach -stone -stool -story -stove -strategy -street -strike -strong -struggle -student -stuff -stumble -style -subject -submit -subway -success -such -sudden -suffer -sugar -suggest -suit -summer -sun -sunny -sunset -super -supply -supreme -sure -surface -surge -surprise -surround -survey -suspect -sustain -swallow -swamp -swap -swarm -swear -sweet -swift -swim -swing -switch -sword -symbol -symptom -syrup -system -table -tackle -tag -tail -talent -talk -tank -tape -target -task -taste -tattoo -taxi -teach -team -tell -ten -tenant -tennis -tent -term -test -text -thank -that -theme -then -theory -there -they -thing -this -thought -three -thrive -throw -thumb -thunder -ticket -tide -tiger -tilt -timber -time -tiny -tip -tired -tissue -title -toast -tobacco -today -toddler -toe -together -toilet -token -tomato -tomorrow -tone -tongue -tonight -tool -tooth -top -topic -topple -torch -tornado -tortoise -toss -total -tourist -toward -tower -town -toy -track -trade -traffic -tragic -train -transfer -trap -trash -travel -tray -treat -tree -trend -trial -tribe -trick -trigger -trim -trip -trophy -trouble -truck -true -truly -trumpet -trust -truth -try -tube -tuition -tumble -tuna -tunnel -turkey -turn -turtle -twelve -twenty -twice -twin -twist -two -type -typical -ugly -umbrella -unable -unaware -uncle -uncover -under -undo -unfair -unfold -unhappy -uniform -unique -unit -universe -unknown -unlock -until -unusual -unveil -update -upgrade -uphold -upon -upper -upset -urban -urge -usage -use -used -useful -useless -usual -utility -vacant -vacuum -vague -valid -valley -valve -van -vanish -vapor -various -vast -vault -vehicle -velvet -vendor -venture -venue -verb -verify -version -very -vessel -veteran -viable -vibrant -vicious -victory -video -view -village -vintage -violin -virtual -virus -visa -visit -visual -vital -vivid -vocal -voice -void -volcano -volume -vote -voyage -wage -wagon -wait -walk -wall -walnut -want -warfare -warm -warrior -wash -wasp -waste -water -wave -way -wealth -weapon -wear -weasel -weather -web -wedding -weekend -weird -welcome -west -wet -whale -what -wheat -wheel -when -where -whip -whisper -wide -width -wife -wild -will -win -window -wine -wing -wink -winner -winter -wire -wisdom -wise -wish -witness -wolf -woman -wonder -wood -wool -word -work -world -worry -worth -wrap -wreck -wrestle -wrist -write -wrong -yard -year -yellow -you -young -youth -zebra -zero -zone -zoo`.split('\n'); -//# sourceMappingURL=english.js.map \ No newline at end of file diff --git a/node_modules/@scure/bip39/esm/wordlists/english.js.map b/node_modules/@scure/bip39/esm/wordlists/english.js.map deleted file mode 100644 index 927739d5..00000000 --- a/node_modules/@scure/bip39/esm/wordl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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA+/D9B,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@scure/bip39/esm/wordlists/french.js b/node_modules/@scure/bip39/esm/wordlists/french.js deleted file mode 100644 index b599b656..00000000 --- a/node_modules/@scure/bip39/esm/wordlists/french.js +++ /dev/null @@ -1,2049 +0,0 @@ -export const wordlist = `abaisser -abandon -abdiquer -abeille -abolir -aborder -aboutir -aboyer -abrasif -abreuver -abriter -abroger -abrupt -absence -absolu -absurde -abusif -abyssal -académie -acajou -acarien -accabler -accepter -acclamer -accolade -accroche -accuser -acerbe -achat -acheter -aciduler -acier -acompte -acquérir -acronyme -acteur -actif -actuel -adepte -adéquat -adhésif -adjectif -adjuger -admettre -admirer -adopter -adorer -adoucir -adresse -adroit -adulte -adverbe -aérer -aéronef -affaire -affecter -affiche -affreux -affubler -agacer -agencer -agile -agiter -agrafer -agréable -agrume -aider -aiguille -ailier -aimable -aisance -ajouter -ajuster -alarmer -alchimie -alerte -algèbre -algue -aliéner -aliment -alléger -alliage -allouer -allumer -alourdir -alpaga -altesse -alvéole -amateur -ambigu -ambre -aménager -amertume -amidon -amiral -amorcer -amour -amovible -amphibie -ampleur -amusant -analyse -anaphore -anarchie -anatomie -ancien -anéantir -angle -angoisse -anguleux -animal -annexer -annonce -annuel -anodin -anomalie -anonyme -anormal -antenne -antidote -anxieux -apaiser -apéritif -aplanir -apologie -appareil -appeler -apporter -appuyer -aquarium -aqueduc -arbitre -arbuste -ardeur -ardoise -argent -arlequin -armature -armement -armoire -armure -arpenter -arracher -arriver -arroser -arsenic -artériel -article -aspect -asphalte -aspirer -assaut -asservir -assiette -associer -assurer -asticot -astre -astuce -atelier -atome -atrium -atroce -attaque -attentif -attirer -attraper -aubaine -auberge -audace -audible -augurer -aurore -automne -autruche -avaler -avancer -avarice -avenir -averse -aveugle -aviateur -avide -avion -aviser -avoine -avouer -avril -axial -axiome -badge -bafouer -bagage -baguette -baignade -balancer -balcon -baleine -balisage -bambin -bancaire -bandage -banlieue -bannière -banquier -barbier -baril -baron -barque -barrage -bassin -bastion -bataille -bateau -batterie -baudrier -bavarder -belette -bélier -belote -bénéfice -berceau -berger -berline -bermuda -besace -besogne -bétail -beurre -biberon -bicycle -bidule -bijou -bilan -bilingue -billard -binaire -biologie -biopsie -biotype -biscuit -bison -bistouri -bitume -bizarre -blafard -blague -blanchir -blessant -blinder -blond -bloquer -blouson -bobard -bobine -boire -boiser -bolide -bonbon -bondir -bonheur -bonifier -bonus -bordure -borne -botte -boucle -boueux -bougie -boulon -bouquin -bourse -boussole -boutique -boxeur -branche -brasier -brave -brebis -brèche -breuvage -bricoler -brigade -brillant -brioche -brique -brochure -broder -bronzer -brousse -broyeur -brume -brusque -brutal -bruyant -buffle -buisson -bulletin -bureau -burin -bustier -butiner -butoir -buvable -buvette -cabanon -cabine -cachette -cadeau -cadre -caféine -caillou -caisson -calculer -calepin -calibre -calmer -calomnie -calvaire -camarade -caméra -camion -campagne -canal -caneton -canon -cantine -canular -capable -caporal -caprice -capsule -capter -capuche -carabine -carbone -caresser -caribou -carnage -carotte -carreau -carton -cascade -casier -casque -cassure -causer -caution -cavalier -caverne -caviar -cédille -ceinture -céleste -cellule -cendrier -censurer -central -cercle -cérébral -cerise -cerner -cerveau -cesser -chagrin -chaise -chaleur -chambre -chance -chapitre -charbon -chasseur -chaton -chausson -chavirer -chemise -chenille -chéquier -chercher -cheval -chien -chiffre -chignon -chimère -chiot -chlorure -chocolat -choisir -chose -chouette -chrome -chute -cigare -cigogne -cimenter -cinéma -cintrer -circuler -cirer -cirque -citerne -citoyen -citron -civil -clairon -clameur -claquer -classe -clavier -client -cligner -climat -clivage -cloche -clonage -cloporte -cobalt -cobra -cocasse -cocotier -coder -codifier -coffre -cogner -cohésion -coiffer -coincer -colère -colibri -colline -colmater -colonel -combat -comédie -commande -compact -concert -conduire -confier -congeler -connoter -consonne -contact -convexe -copain -copie -corail -corbeau -cordage -corniche -corpus -correct -cortège -cosmique -costume -coton -coude -coupure -courage -couteau -couvrir -coyote -crabe -crainte -cravate -crayon -créature -créditer -crémeux -creuser -crevette -cribler -crier -cristal -critère -croire -croquer -crotale -crucial -cruel -crypter -cubique -cueillir -cuillère -cuisine -cuivre -culminer -cultiver -cumuler -cupide -curatif -curseur -cyanure -cycle -cylindre -cynique -daigner -damier -danger -danseur -dauphin -débattre -débiter -déborder -débrider -débutant -décaler -décembre -déchirer -décider -déclarer -décorer -décrire -décupler -dédale -déductif -déesse -défensif -défiler -défrayer -dégager -dégivrer -déglutir -dégrafer -déjeuner -délice -déloger -demander -demeurer -démolir -dénicher -dénouer -dentelle -dénuder -départ -dépenser -déphaser -déplacer -déposer -déranger -dérober -désastre -descente -désert -désigner -désobéir -dessiner -destrier -détacher -détester -détourer -détresse -devancer -devenir -deviner -devoir -diable -dialogue -diamant -dicter -différer -digérer -digital -digne -diluer -dimanche -diminuer -dioxyde -directif -diriger -discuter -disposer -dissiper -distance -divertir -diviser -docile -docteur -dogme -doigt -domaine -domicile -dompter -donateur -donjon -donner -dopamine -dortoir -dorure -dosage -doseur -dossier -dotation -douanier -double -douceur -douter -doyen -dragon -draper -dresser -dribbler -droiture -duperie -duplexe -durable -durcir -dynastie -éblouir -écarter -écharpe -échelle -éclairer -éclipse -éclore -écluse -école -économie -écorce -écouter -écraser -écrémer -écrivain -écrou -écume -écureuil -édifier -éduquer -effacer -effectif -effigie -effort -effrayer -effusion -égaliser -égarer -éjecter -élaborer -élargir -électron -élégant -éléphant -élève -éligible -élitisme -éloge -élucider -éluder -emballer -embellir -embryon -émeraude -émission -emmener -émotion -émouvoir -empereur -employer -emporter -emprise -émulsion -encadrer -enchère -enclave -encoche -endiguer -endosser -endroit -enduire -énergie -enfance -enfermer -enfouir -engager -engin -englober -énigme -enjamber -enjeu -enlever -ennemi -ennuyeux -enrichir -enrobage -enseigne -entasser -entendre -entier -entourer -entraver -énumérer -envahir -enviable -envoyer -enzyme -éolien -épaissir -épargne -épatant -épaule -épicerie -épidémie -épier -épilogue -épine -épisode -épitaphe -époque -épreuve -éprouver -épuisant -équerre -équipe -ériger -érosion -erreur -éruption -escalier -espadon -espèce -espiègle -espoir -esprit -esquiver -essayer -essence -essieu -essorer -estime -estomac -estrade -étagère -étaler -étanche -étatique -éteindre -étendoir -éternel -éthanol -éthique -ethnie -étirer -étoffer -étoile -étonnant -étourdir -étrange -étroit -étude -euphorie -évaluer -évasion -éventail -évidence -éviter -évolutif -évoquer -exact -exagérer -exaucer -exceller -excitant -exclusif -excuse -exécuter -exemple -exercer -exhaler -exhorter -exigence -exiler -exister -exotique -expédier -explorer -exposer -exprimer -exquis -extensif -extraire -exulter -fable -fabuleux -facette -facile -facture -faiblir -falaise -fameux -famille -farceur -farfelu -farine -farouche -fasciner -fatal -fatigue -faucon -fautif -faveur -favori -fébrile -féconder -fédérer -félin -femme -fémur -fendoir -féodal -fermer -féroce -ferveur -festival -feuille -feutre -février -fiasco -ficeler -fictif -fidèle -figure -filature -filetage -filière -filleul -filmer -filou -filtrer -financer -finir -fiole -firme -fissure -fixer -flairer -flamme -flasque -flatteur -fléau -flèche -fleur -flexion -flocon -flore -fluctuer -fluide -fluvial -folie -fonderie -fongible -fontaine -forcer -forgeron -formuler -fortune -fossile -foudre -fougère -fouiller -foulure -fourmi -fragile -fraise -franchir -frapper -frayeur -frégate -freiner -frelon -frémir -frénésie -frère -friable -friction -frisson -frivole -froid -fromage -frontal -frotter -fruit -fugitif -fuite -fureur -furieux -furtif -fusion -futur -gagner -galaxie -galerie -gambader -garantir -gardien -garnir -garrigue -gazelle -gazon -géant -gélatine -gélule -gendarme -général -génie -genou -gentil -géologie -géomètre -géranium -germe -gestuel -geyser -gibier -gicler -girafe -givre -glace -glaive -glisser -globe -gloire -glorieux -golfeur -gomme -gonfler -gorge -gorille -goudron -gouffre -goulot -goupille -gourmand -goutte -graduel -graffiti -graine -grand -grappin -gratuit -gravir -grenat -griffure -griller -grimper -grogner -gronder -grotte -groupe -gruger -grutier -gruyère -guépard -guerrier -guide -guimauve -guitare -gustatif -gymnaste -gyrostat -habitude -hachoir -halte -hameau -hangar -hanneton -haricot -harmonie -harpon -hasard -hélium -hématome -herbe -hérisson -hermine -héron -hésiter -heureux -hiberner -hibou -hilarant -histoire -hiver -homard -hommage -homogène -honneur -honorer -honteux -horde -horizon -horloge -hormone -horrible -houleux -housse -hublot -huileux -humain -humble -humide -humour -hurler -hydromel -hygiène -hymne -hypnose -idylle -ignorer -iguane -illicite -illusion -image -imbiber -imiter -immense -immobile -immuable -impact -impérial -implorer -imposer -imprimer -imputer -incarner -incendie -incident -incliner -incolore -indexer -indice -inductif -inédit -ineptie -inexact -infini -infliger -informer -infusion -ingérer -inhaler -inhiber -injecter -injure -innocent -inoculer -inonder -inscrire -insecte -insigne -insolite -inspirer -instinct -insulter -intact -intense -intime -intrigue -intuitif -inutile -invasion -inventer -inviter -invoquer -ironique -irradier -irréel -irriter -isoler -ivoire -ivresse -jaguar -jaillir -jambe -janvier -jardin -jauger -jaune -javelot -jetable -jeton -jeudi -jeunesse -joindre -joncher -jongler -joueur -jouissif -journal -jovial -joyau -joyeux -jubiler -jugement -junior -jupon -juriste -justice -juteux -juvénile -kayak -kimono -kiosque -label -labial -labourer -lacérer -lactose -lagune -laine -laisser -laitier -lambeau -lamelle -lampe -lanceur -langage -lanterne -lapin -largeur -larme -laurier -lavabo -lavoir -lecture -légal -léger -légume -lessive -lettre -levier -lexique -lézard -liasse -libérer -libre -licence -licorne -liège -lièvre -ligature -ligoter -ligue -limer -limite -limonade -limpide -linéaire -lingot -lionceau -liquide -lisière -lister -lithium -litige -littoral -livreur -logique -lointain -loisir -lombric -loterie -louer -lourd -loutre -louve -loyal -lubie -lucide -lucratif -lueur -lugubre -luisant -lumière -lunaire -lundi -luron -lutter -luxueux -machine -magasin -magenta -magique -maigre -maillon -maintien -mairie -maison -majorer -malaxer -maléfice -malheur -malice -mallette -mammouth -mandater -maniable -manquant -manteau -manuel -marathon -marbre -marchand -mardi -maritime -marqueur -marron -marteler -mascotte -massif -matériel -matière -matraque -maudire -maussade -mauve -maximal -méchant -méconnu -médaille -médecin -méditer -méduse -meilleur -mélange -mélodie -membre -mémoire -menacer -mener -menhir -mensonge -mentor -mercredi -mérite -merle -messager -mesure -métal -météore -méthode -métier -meuble -miauler -microbe -miette -mignon -migrer -milieu -million -mimique -mince -minéral -minimal -minorer -minute -miracle -miroiter -missile -mixte -mobile -moderne -moelleux -mondial -moniteur -monnaie -monotone -monstre -montagne -monument -moqueur -morceau -morsure -mortier -moteur -motif -mouche -moufle -moulin -mousson -mouton -mouvant -multiple -munition -muraille -murène -murmure -muscle -muséum -musicien -mutation -muter -mutuel -myriade -myrtille -mystère -mythique -nageur -nappe -narquois -narrer -natation -nation -nature -naufrage -nautique -navire -nébuleux -nectar -néfaste -négation -négliger -négocier -neige -nerveux -nettoyer -neurone -neutron -neveu -niche -nickel -nitrate -niveau -noble -nocif -nocturne -noirceur -noisette -nomade -nombreux -nommer -normatif -notable -notifier -notoire -nourrir -nouveau -novateur -novembre -novice -nuage -nuancer -nuire -nuisible -numéro -nuptial -nuque -nutritif -obéir -objectif -obliger -obscur -observer -obstacle -obtenir -obturer -occasion -occuper -océan -octobre -octroyer -octupler -oculaire -odeur -odorant -offenser -officier -offrir -ogive -oiseau -oisillon -olfactif -olivier -ombrage -omettre -onctueux -onduler -onéreux -onirique -opale -opaque -opérer -opinion -opportun -opprimer -opter -optique -orageux -orange -orbite -ordonner -oreille -organe -orgueil -orifice -ornement -orque -ortie -osciller -osmose -ossature -otarie -ouragan -ourson -outil -outrager -ouvrage -ovation -oxyde -oxygène -ozone -paisible -palace -palmarès -palourde -palper -panache -panda -pangolin -paniquer -panneau -panorama -pantalon -papaye -papier -papoter -papyrus -paradoxe -parcelle -paresse -parfumer -parler -parole -parrain -parsemer -partager -parure -parvenir -passion -pastèque -paternel -patience -patron -pavillon -pavoiser -payer -paysage -peigne -peintre -pelage -pélican -pelle -pelouse -peluche -pendule -pénétrer -pénible -pensif -pénurie -pépite -péplum -perdrix -perforer -période -permuter -perplexe -persil -perte -peser -pétale -petit -pétrir -peuple -pharaon -phobie -phoque -photon -phrase -physique -piano -pictural -pièce -pierre -pieuvre -pilote -pinceau -pipette -piquer -pirogue -piscine -piston -pivoter -pixel -pizza -placard -plafond -plaisir -planer -plaque -plastron -plateau -pleurer -plexus -pliage -plomb -plonger -pluie -plumage -pochette -poésie -poète -pointe -poirier -poisson -poivre -polaire -policier -pollen -polygone -pommade -pompier -ponctuel -pondérer -poney -portique -position -posséder -posture -potager -poteau -potion -pouce -poulain -poumon -pourpre -poussin -pouvoir -prairie -pratique -précieux -prédire -préfixe -prélude -prénom -présence -prétexte -prévoir -primitif -prince -prison -priver -problème -procéder -prodige -profond -progrès -proie -projeter -prologue -promener -propre -prospère -protéger -prouesse -proverbe -prudence -pruneau -psychose -public -puceron -puiser -pulpe -pulsar -punaise -punitif -pupitre -purifier -puzzle -pyramide -quasar -querelle -question -quiétude -quitter -quotient -racine -raconter -radieux -ragondin -raideur -raisin -ralentir -rallonge -ramasser -rapide -rasage -ratisser -ravager -ravin -rayonner -réactif -réagir -réaliser -réanimer -recevoir -réciter -réclamer -récolter -recruter -reculer -recycler -rédiger -redouter -refaire -réflexe -réformer -refrain -refuge -régalien -région -réglage -régulier -réitérer -rejeter -rejouer -relatif -relever -relief -remarque -remède -remise -remonter -remplir -remuer -renard -renfort -renifler -renoncer -rentrer -renvoi -replier -reporter -reprise -reptile -requin -réserve -résineux -résoudre -respect -rester -résultat -rétablir -retenir -réticule -retomber -retracer -réunion -réussir -revanche -revivre -révolte -révulsif -richesse -rideau -rieur -rigide -rigoler -rincer -riposter -risible -risque -rituel -rival -rivière -rocheux -romance -rompre -ronce -rondin -roseau -rosier -rotatif -rotor -rotule -rouge -rouille -rouleau -routine -royaume -ruban -rubis -ruche -ruelle -rugueux -ruiner -ruisseau -ruser -rustique -rythme -sabler -saboter -sabre -sacoche -safari -sagesse -saisir -salade -salive -salon -saluer -samedi -sanction -sanglier -sarcasme -sardine -saturer -saugrenu -saumon -sauter -sauvage -savant -savonner -scalpel -scandale -scélérat -scénario -sceptre -schéma -science -scinder -score -scrutin -sculpter -séance -sécable -sécher -secouer -sécréter -sédatif -séduire -seigneur -séjour -sélectif -semaine -sembler -semence -séminal -sénateur -sensible -sentence -séparer -séquence -serein -sergent -sérieux -serrure -sérum -service -sésame -sévir -sevrage -sextuple -sidéral -siècle -siéger -siffler -sigle -signal -silence -silicium -simple -sincère -sinistre -siphon -sirop -sismique -situer -skier -social -socle -sodium -soigneux -soldat -soleil -solitude -soluble -sombre -sommeil -somnoler -sonde -songeur -sonnette -sonore -sorcier -sortir -sosie -sottise -soucieux -soudure -souffle -soulever -soupape -source -soutirer -souvenir -spacieux -spatial -spécial -sphère -spiral -stable -station -sternum -stimulus -stipuler -strict -studieux -stupeur -styliste -sublime -substrat -subtil -subvenir -succès -sucre -suffixe -suggérer -suiveur -sulfate -superbe -supplier -surface -suricate -surmener -surprise -sursaut -survie -suspect -syllabe -symbole -symétrie -synapse -syntaxe -système -tabac -tablier -tactile -tailler -talent -talisman -talonner -tambour -tamiser -tangible -tapis -taquiner -tarder -tarif -tartine -tasse -tatami -tatouage -taupe -taureau -taxer -témoin -temporel -tenaille -tendre -teneur -tenir -tension -terminer -terne -terrible -tétine -texte -thème -théorie -thérapie -thorax -tibia -tiède -timide -tirelire -tiroir -tissu -titane -titre -tituber -toboggan -tolérant -tomate -tonique -tonneau -toponyme -torche -tordre -tornade -torpille -torrent -torse -tortue -totem -toucher -tournage -tousser -toxine -traction -trafic -tragique -trahir -train -trancher -travail -trèfle -tremper -trésor -treuil -triage -tribunal -tricoter -trilogie -triomphe -tripler -triturer -trivial -trombone -tronc -tropical -troupeau -tuile -tulipe -tumulte -tunnel -turbine -tuteur -tutoyer -tuyau -tympan -typhon -typique -tyran -ubuesque -ultime -ultrason -unanime -unifier -union -unique -unitaire -univers -uranium -urbain -urticant -usage -usine -usuel -usure -utile -utopie -vacarme -vaccin -vagabond -vague -vaillant -vaincre -vaisseau -valable -valise -vallon -valve -vampire -vanille -vapeur -varier -vaseux -vassal -vaste -vecteur -vedette -végétal -véhicule -veinard -véloce -vendredi -vénérer -venger -venimeux -ventouse -verdure -vérin -vernir -verrou -verser -vertu -veston -vétéran -vétuste -vexant -vexer -viaduc -viande -victoire -vidange -vidéo -vignette -vigueur -vilain -village -vinaigre -violon -vipère -virement -virtuose -virus -visage -viseur -vision -visqueux -visuel -vital -vitesse -viticole -vitrine -vivace -vivipare -vocation -voguer -voile -voisin -voiture -volaille -volcan -voltiger -volume -vorace -vortex -voter -vouloir -voyage -voyelle -wagon -xénon -yacht -zèbre -zénith -zeste -zoologie`.split('\n'); -//# sourceMappingURL=french.js.map \ No newline at end of file diff --git a/node_modules/@scure/bip39/esm/wordlists/french.js.map b/node_modules/@scure/bip39/esm/wordlists/french.js.map deleted file mode 100644 index 9d2bc2e6..00000000 --- a/node_modules/@scure/bip39/esm/wordlists/french.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"french.js","sourceRoot":"","sources":["../../src/wordlists/french.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,QAAQ,GAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;SA+/DzB,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@scure/bip39/esm/wordlists/italian.js b/node_modules/@scure/bip39/esm/wordlists/italian.js deleted file mode 100644 index 5fd1b4ea..00000000 --- a/node_modules/@scure/bip39/esm/wordlists/italian.js +++ /dev/null @@ -1,2049 +0,0 @@ -export const wordlist = `abaco -abbaglio -abbinato -abete -abisso -abolire -abrasivo -abrogato -accadere -accenno -accusato -acetone -achille -acido -acqua -acre -acrilico -acrobata -acuto -adagio -addebito -addome -adeguato -aderire -adipe -adottare -adulare -affabile -affetto -affisso -affranto -aforisma -afoso -africano -agave -agente -agevole -aggancio -agire -agitare -agonismo -agricolo -agrumeto -aguzzo -alabarda -alato -albatro -alberato -albo -albume -alce -alcolico -alettone -alfa -algebra -aliante -alibi -alimento -allagato -allegro -allievo -allodola -allusivo -almeno -alogeno -alpaca -alpestre -altalena -alterno -alticcio -altrove -alunno -alveolo -alzare -amalgama -amanita -amarena -ambito -ambrato -ameba -america -ametista -amico -ammasso -ammenda -ammirare -ammonito -amore -ampio -ampliare -amuleto -anacardo -anagrafe -analista -anarchia -anatra -anca -ancella -ancora -andare -andrea -anello -angelo -angolare -angusto -anima -annegare -annidato -anno -annuncio -anonimo -anticipo -anzi -apatico -apertura -apode -apparire -appetito -appoggio -approdo -appunto -aprile -arabica -arachide -aragosta -araldica -arancio -aratura -arazzo -arbitro -archivio -ardito -arenile -argento -argine -arguto -aria -armonia -arnese -arredato -arringa -arrosto -arsenico -arso -artefice -arzillo -asciutto -ascolto -asepsi -asettico -asfalto -asino -asola -aspirato -aspro -assaggio -asse -assoluto -assurdo -asta -astenuto -astice -astratto -atavico -ateismo -atomico -atono -attesa -attivare -attorno -attrito -attuale -ausilio -austria -autista -autonomo -autunno -avanzato -avere -avvenire -avviso -avvolgere -azione -azoto -azzimo -azzurro -babele -baccano -bacino -baco -badessa -badilata -bagnato -baita -balcone -baldo -balena -ballata -balzano -bambino -bandire -baraonda -barbaro -barca -baritono -barlume -barocco -basilico -basso -batosta -battuto -baule -bava -bavosa -becco -beffa -belgio -belva -benda -benevole -benigno -benzina -bere -berlina -beta -bibita -bici -bidone -bifido -biga -bilancia -bimbo -binocolo -biologo -bipede -bipolare -birbante -birra -biscotto -bisesto -bisnonno -bisonte -bisturi -bizzarro -blando -blatta -bollito -bonifico -bordo -bosco -botanico -bottino -bozzolo -braccio -bradipo -brama -branca -bravura -bretella -brevetto -brezza -briglia -brillante -brindare -broccolo -brodo -bronzina -brullo -bruno -bubbone -buca -budino -buffone -buio -bulbo -buono -burlone -burrasca -bussola -busta -cadetto -caduco -calamaro -calcolo -calesse -calibro -calmo -caloria -cambusa -camerata -camicia -cammino -camola -campale -canapa -candela -cane -canino -canotto -cantina -capace -capello -capitolo -capogiro -cappero -capra -capsula -carapace -carcassa -cardo -carisma -carovana -carretto -cartolina -casaccio -cascata -caserma -caso -cassone -castello -casuale -catasta -catena -catrame -cauto -cavillo -cedibile -cedrata -cefalo -celebre -cellulare -cena -cenone -centesimo -ceramica -cercare -certo -cerume -cervello -cesoia -cespo -ceto -chela -chiaro -chicca -chiedere -chimera -china -chirurgo -chitarra -ciao -ciclismo -cifrare -cigno -cilindro -ciottolo -circa -cirrosi -citrico -cittadino -ciuffo -civetta -civile -classico -clinica -cloro -cocco -codardo -codice -coerente -cognome -collare -colmato -colore -colposo -coltivato -colza -coma -cometa -commando -comodo -computer -comune -conciso -condurre -conferma -congelare -coniuge -connesso -conoscere -consumo -continuo -convegno -coperto -copione -coppia -copricapo -corazza -cordata -coricato -cornice -corolla -corpo -corredo -corsia -cortese -cosmico -costante -cottura -covato -cratere -cravatta -creato -credere -cremoso -crescita -creta -criceto -crinale -crisi -critico -croce -cronaca -crostata -cruciale -crusca -cucire -cuculo -cugino -cullato -cupola -curatore -cursore -curvo -cuscino -custode -dado -daino -dalmata -damerino -daniela -dannoso -danzare -datato -davanti -davvero -debutto -decennio -deciso -declino -decollo -decreto -dedicato -definito -deforme -degno -delegare -delfino -delirio -delta -demenza -denotato -dentro -deposito -derapata -derivare -deroga -descritto -deserto -desiderio -desumere -detersivo -devoto -diametro -dicembre -diedro -difeso -diffuso -digerire -digitale -diluvio -dinamico -dinnanzi -dipinto -diploma -dipolo -diradare -dire -dirotto -dirupo -disagio -discreto -disfare -disgelo -disposto -distanza -disumano -dito -divano -divelto -dividere -divorato -doblone -docente -doganale -dogma -dolce -domato -domenica -dominare -dondolo -dono -dormire -dote -dottore -dovuto -dozzina -drago -druido -dubbio -dubitare -ducale -duna -duomo -duplice -duraturo -ebano -eccesso -ecco -eclissi -economia -edera -edicola -edile -editoria -educare -egemonia -egli -egoismo -egregio -elaborato -elargire -elegante -elencato -eletto -elevare -elfico -elica -elmo -elsa -eluso -emanato -emblema -emesso -emiro -emotivo -emozione -empirico -emulo -endemico -enduro -energia -enfasi -enoteca -entrare -enzima -epatite -epilogo -episodio -epocale -eppure -equatore -erario -erba -erboso -erede -eremita -erigere -ermetico -eroe -erosivo -errante -esagono -esame -esanime -esaudire -esca -esempio -esercito -esibito -esigente -esistere -esito -esofago -esortato -esoso -espanso -espresso -essenza -esso -esteso -estimare -estonia -estroso -esultare -etilico -etnico -etrusco -etto -euclideo -europa -evaso -evidenza -evitato -evoluto -evviva -fabbrica -faccenda -fachiro -falco -famiglia -fanale -fanfara -fango -fantasma -fare -farfalla -farinoso -farmaco -fascia -fastoso -fasullo -faticare -fato -favoloso -febbre -fecola -fede -fegato -felpa -feltro -femmina -fendere -fenomeno -fermento -ferro -fertile -fessura -festivo -fetta -feudo -fiaba -fiducia -fifa -figurato -filo -finanza -finestra -finire -fiore -fiscale -fisico -fiume -flacone -flamenco -flebo -flemma -florido -fluente -fluoro -fobico -focaccia -focoso -foderato -foglio -folata -folclore -folgore -fondente -fonetico -fonia -fontana -forbito -forchetta -foresta -formica -fornaio -foro -fortezza -forzare -fosfato -fosso -fracasso -frana -frassino -fratello -freccetta -frenata -fresco -frigo -frollino -fronde -frugale -frutta -fucilata -fucsia -fuggente -fulmine -fulvo -fumante -fumetto -fumoso -fune -funzione -fuoco -furbo -furgone -furore -fuso -futile -gabbiano -gaffe -galateo -gallina -galoppo -gambero -gamma -garanzia -garbo -garofano -garzone -gasdotto -gasolio -gastrico -gatto -gaudio -gazebo -gazzella -geco -gelatina -gelso -gemello -gemmato -gene -genitore -gennaio -genotipo -gergo -ghepardo -ghiaccio -ghisa -giallo -gilda -ginepro -giocare -gioiello -giorno -giove -girato -girone -gittata -giudizio -giurato -giusto -globulo -glutine -gnomo -gobba -golf -gomito -gommone -gonfio -gonna -governo -gracile -grado -grafico -grammo -grande -grattare -gravoso -grazia -greca -gregge -grifone -grigio -grinza -grotta -gruppo -guadagno -guaio -guanto -guardare -gufo -guidare -ibernato -icona -identico -idillio -idolo -idra -idrico -idrogeno -igiene -ignaro -ignorato -ilare -illeso -illogico -illudere -imballo -imbevuto -imbocco -imbuto -immane -immerso -immolato -impacco -impeto -impiego -importo -impronta -inalare -inarcare -inattivo -incanto -incendio -inchino -incisivo -incluso -incontro -incrocio -incubo -indagine -india -indole -inedito -infatti -infilare -inflitto -ingaggio -ingegno -inglese -ingordo -ingrosso -innesco -inodore -inoltrare -inondato -insano -insetto -insieme -insonnia -insulina -intasato -intero -intonaco -intuito -inumidire -invalido -invece -invito -iperbole -ipnotico -ipotesi -ippica -iride -irlanda -ironico -irrigato -irrorare -isolato -isotopo -isterico -istituto -istrice -italia -iterare -labbro -labirinto -lacca -lacerato -lacrima -lacuna -laddove -lago -lampo -lancetta -lanterna -lardoso -larga -laringe -lastra -latenza -latino -lattuga -lavagna -lavoro -legale -leggero -lembo -lentezza -lenza -leone -lepre -lesivo -lessato -lesto -letterale -leva -levigato -libero -lido -lievito -lilla -limatura -limitare -limpido -lineare -lingua -liquido -lira -lirica -lisca -lite -litigio -livrea -locanda -lode -logica -lombare -londra -longevo -loquace -lorenzo -loto -lotteria -luce -lucidato -lumaca -luminoso -lungo -lupo -luppolo -lusinga -lusso -lutto -macabro -macchina -macero -macinato -madama -magico -maglia -magnete -magro -maiolica -malafede -malgrado -malinteso -malsano -malto -malumore -mana -mancia -mandorla -mangiare -manifesto -mannaro -manovra -mansarda -mantide -manubrio -mappa -maratona -marcire -maretta -marmo -marsupio -maschera -massaia -mastino -materasso -matricola -mattone -maturo -mazurca -meandro -meccanico -mecenate -medesimo -meditare -mega -melassa -melis -melodia -meninge -meno -mensola -mercurio -merenda -merlo -meschino -mese -messere -mestolo -metallo -metodo -mettere -miagolare -mica -micelio -michele -microbo -midollo -miele -migliore -milano -milite -mimosa -minerale -mini -minore -mirino -mirtillo -miscela -missiva -misto -misurare -mitezza -mitigare -mitra -mittente -mnemonico -modello -modifica -modulo -mogano -mogio -mole -molosso -monastero -monco -mondina -monetario -monile -monotono -monsone -montato -monviso -mora -mordere -morsicato -mostro -motivato -motosega -motto -movenza -movimento -mozzo -mucca -mucosa -muffa -mughetto -mugnaio -mulatto -mulinello -multiplo -mummia -munto -muovere -murale -musa -muscolo -musica -mutevole -muto -nababbo -nafta -nanometro -narciso -narice -narrato -nascere -nastrare -naturale -nautica -naviglio -nebulosa -necrosi -negativo -negozio -nemmeno -neofita -neretto -nervo -nessuno -nettuno -neutrale -neve -nevrotico -nicchia -ninfa -nitido -nobile -nocivo -nodo -nome -nomina -nordico -normale -norvegese -nostrano -notare -notizia -notturno -novella -nucleo -nulla -numero -nuovo -nutrire -nuvola -nuziale -oasi -obbedire -obbligo -obelisco -oblio -obolo -obsoleto -occasione -occhio -occidente -occorrere -occultare -ocra -oculato -odierno -odorare -offerta -offrire -offuscato -oggetto -oggi -ognuno -olandese -olfatto -oliato -oliva -ologramma -oltre -omaggio -ombelico -ombra -omega -omissione -ondoso -onere -onice -onnivoro -onorevole -onta -operato -opinione -opposto -oracolo -orafo -ordine -orecchino -orefice -orfano -organico -origine -orizzonte -orma -ormeggio -ornativo -orologio -orrendo -orribile -ortensia -ortica -orzata -orzo -osare -oscurare -osmosi -ospedale -ospite -ossa -ossidare -ostacolo -oste -otite -otre -ottagono -ottimo -ottobre -ovale -ovest -ovino -oviparo -ovocito -ovunque -ovviare -ozio -pacchetto -pace -pacifico -padella -padrone -paese -paga -pagina -palazzina -palesare -pallido -palo -palude -pandoro -pannello -paolo -paonazzo -paprica -parabola -parcella -parere -pargolo -pari -parlato -parola -partire -parvenza -parziale -passivo -pasticca -patacca -patologia -pattume -pavone -peccato -pedalare -pedonale -peggio -peloso -penare -pendice -penisola -pennuto -penombra -pensare -pentola -pepe -pepita -perbene -percorso -perdonato -perforare -pergamena -periodo -permesso -perno -perplesso -persuaso -pertugio -pervaso -pesatore -pesista -peso -pestifero -petalo -pettine -petulante -pezzo -piacere -pianta -piattino -piccino -picozza -piega -pietra -piffero -pigiama -pigolio -pigro -pila -pilifero -pillola -pilota -pimpante -pineta -pinna -pinolo -pioggia -piombo -piramide -piretico -pirite -pirolisi -pitone -pizzico -placebo -planare -plasma -platano -plenario -pochezza -poderoso -podismo -poesia -poggiare -polenta -poligono -pollice -polmonite -polpetta -polso -poltrona -polvere -pomice -pomodoro -ponte -popoloso -porfido -poroso -porpora -porre -portata -posa -positivo -possesso -postulato -potassio -potere -pranzo -prassi -pratica -precluso -predica -prefisso -pregiato -prelievo -premere -prenotare -preparato -presenza -pretesto -prevalso -prima -principe -privato -problema -procura -produrre -profumo -progetto -prolunga -promessa -pronome -proposta -proroga -proteso -prova -prudente -prugna -prurito -psiche -pubblico -pudica -pugilato -pugno -pulce -pulito -pulsante -puntare -pupazzo -pupilla -puro -quadro -qualcosa -quasi -querela -quota -raccolto -raddoppio -radicale -radunato -raffica -ragazzo -ragione -ragno -ramarro -ramingo -ramo -randagio -rantolare -rapato -rapina -rappreso -rasatura -raschiato -rasente -rassegna -rastrello -rata -ravveduto -reale -recepire -recinto -recluta -recondito -recupero -reddito -redimere -regalato -registro -regola -regresso -relazione -remare -remoto -renna -replica -reprimere -reputare -resa -residente -responso -restauro -rete -retina -retorica -rettifica -revocato -riassunto -ribadire -ribelle -ribrezzo -ricarica -ricco -ricevere -riciclato -ricordo -ricreduto -ridicolo -ridurre -rifasare -riflesso -riforma -rifugio -rigare -rigettato -righello -rilassato -rilevato -rimanere -rimbalzo -rimedio -rimorchio -rinascita -rincaro -rinforzo -rinnovo -rinomato -rinsavito -rintocco -rinuncia -rinvenire -riparato -ripetuto -ripieno -riportare -ripresa -ripulire -risata -rischio -riserva -risibile -riso -rispetto -ristoro -risultato -risvolto -ritardo -ritegno -ritmico -ritrovo -riunione -riva -riverso -rivincita -rivolto -rizoma -roba -robotico -robusto -roccia -roco -rodaggio -rodere -roditore -rogito -rollio -romantico -rompere -ronzio -rosolare -rospo -rotante -rotondo -rotula -rovescio -rubizzo -rubrica -ruga -rullino -rumine -rumoroso -ruolo -rupe -russare -rustico -sabato -sabbiare -sabotato -sagoma -salasso -saldatura -salgemma -salivare -salmone -salone -saltare -saluto -salvo -sapere -sapido -saporito -saraceno -sarcasmo -sarto -sassoso -satellite -satira -satollo -saturno -savana -savio -saziato -sbadiglio -sbalzo -sbancato -sbarra -sbattere -sbavare -sbendare -sbirciare -sbloccato -sbocciato -sbrinare -sbruffone -sbuffare -scabroso -scadenza -scala -scambiare -scandalo -scapola -scarso -scatenare -scavato -scelto -scenico -scettro -scheda -schiena -sciarpa -scienza -scindere -scippo -sciroppo -scivolo -sclerare -scodella -scolpito -scomparto -sconforto -scoprire -scorta -scossone -scozzese -scriba -scrollare -scrutinio -scuderia -scultore -scuola -scuro -scusare -sdebitare -sdoganare -seccatura -secondo -sedano -seggiola -segnalato -segregato -seguito -selciato -selettivo -sella -selvaggio -semaforo -sembrare -seme -seminato -sempre -senso -sentire -sepolto -sequenza -serata -serbato -sereno -serio -serpente -serraglio -servire -sestina -setola -settimana -sfacelo -sfaldare -sfamato -sfarzoso -sfaticato -sfera -sfida -sfilato -sfinge -sfocato -sfoderare -sfogo -sfoltire -sforzato -sfratto -sfruttato -sfuggito -sfumare -sfuso -sgabello -sgarbato -sgonfiare -sgorbio -sgrassato -sguardo -sibilo -siccome -sierra -sigla -signore -silenzio -sillaba -simbolo -simpatico -simulato -sinfonia -singolo -sinistro -sino -sintesi -sinusoide -sipario -sisma -sistole -situato -slitta -slogatura -sloveno -smarrito -smemorato -smentito -smeraldo -smilzo -smontare -smottato -smussato -snellire -snervato -snodo -sobbalzo -sobrio -soccorso -sociale -sodale -soffitto -sogno -soldato -solenne -solido -sollazzo -solo -solubile -solvente -somatico -somma -sonda -sonetto -sonnifero -sopire -soppeso -sopra -sorgere -sorpasso -sorriso -sorso -sorteggio -sorvolato -sospiro -sosta -sottile -spada -spalla -spargere -spatola -spavento -spazzola -specie -spedire -spegnere -spelatura -speranza -spessore -spettrale -spezzato -spia -spigoloso -spillato -spinoso -spirale -splendido -sportivo -sposo -spranga -sprecare -spronato -spruzzo -spuntino -squillo -sradicare -srotolato -stabile -stacco -staffa -stagnare -stampato -stantio -starnuto -stasera -statuto -stelo -steppa -sterzo -stiletto -stima -stirpe -stivale -stizzoso -stonato -storico -strappo -stregato -stridulo -strozzare -strutto -stuccare -stufo -stupendo -subentro -succoso -sudore -suggerito -sugo -sultano -suonare -superbo -supporto -surgelato -surrogato -sussurro -sutura -svagare -svedese -sveglio -svelare -svenuto -svezia -sviluppo -svista -svizzera -svolta -svuotare -tabacco -tabulato -tacciare -taciturno -tale -talismano -tampone -tannino -tara -tardivo -targato -tariffa -tarpare -tartaruga -tasto -tattico -taverna -tavolata -tazza -teca -tecnico -telefono -temerario -tempo -temuto -tendone -tenero -tensione -tentacolo -teorema -terme -terrazzo -terzetto -tesi -tesserato -testato -tetro -tettoia -tifare -tigella -timbro -tinto -tipico -tipografo -tiraggio -tiro -titanio -titolo -titubante -tizio -tizzone -toccare -tollerare -tolto -tombola -tomo -tonfo -tonsilla -topazio -topologia -toppa -torba -tornare -torrone -tortora -toscano -tossire -tostatura -totano -trabocco -trachea -trafila -tragedia -tralcio -tramonto -transito -trapano -trarre -trasloco -trattato -trave -treccia -tremolio -trespolo -tributo -tricheco -trifoglio -trillo -trincea -trio -tristezza -triturato -trivella -tromba -trono -troppo -trottola -trovare -truccato -tubatura -tuffato -tulipano -tumulto -tunisia -turbare -turchino -tuta -tutela -ubicato -uccello -uccisore -udire -uditivo -uffa -ufficio -uguale -ulisse -ultimato -umano -umile -umorismo -uncinetto -ungere -ungherese -unicorno -unificato -unisono -unitario -unte -uovo -upupa -uragano -urgenza -urlo -usanza -usato -uscito -usignolo -usuraio -utensile -utilizzo -utopia -vacante -vaccinato -vagabondo -vagliato -valanga -valgo -valico -valletta -valoroso -valutare -valvola -vampata -vangare -vanitoso -vano -vantaggio -vanvera -vapore -varano -varcato -variante -vasca -vedetta -vedova -veduto -vegetale -veicolo -velcro -velina -velluto -veloce -venato -vendemmia -vento -verace -verbale -vergogna -verifica -vero -verruca -verticale -vescica -vessillo -vestale -veterano -vetrina -vetusto -viandante -vibrante -vicenda -vichingo -vicinanza -vidimare -vigilia -vigneto -vigore -vile -villano -vimini -vincitore -viola -vipera -virgola -virologo -virulento -viscoso -visione -vispo -vissuto -visura -vita -vitello -vittima -vivanda -vivido -viziare -voce -voga -volatile -volere -volpe -voragine -vulcano -zampogna -zanna -zappato -zattera -zavorra -zefiro -zelante -zelo -zenzero -zerbino -zibetto -zinco -zircone -zitto -zolla -zotico -zucchero -zufolo -zulu -zuppa`.split('\n'); -//# sourceMappingURL=italian.js.map \ No newline at end of file diff --git a/node_modules/@scure/bip39/esm/wordlists/italian.js.map b/node_modules/@scure/bip39/esm/wordlists/italian.js.map deleted file mode 100644 index db9246a9..00000000 --- a/node_modules/@scure/bip39/esm/wordlists/italian.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"italian.js","sourceRoot":"","sources":["../../src/wordlists/italian.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,QAAQ,GAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA+/D5B,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@scure/bip39/esm/wordlists/japanese.js b/node_modules/@scure/bip39/esm/wordlists/japanese.js deleted file mode 100644 index 44c62bf0..00000000 --- a/node_modules/@scure/bip39/esm/wordlists/japanese.js +++ /dev/null @@ -1,2049 +0,0 @@ -export const wordlist = `あいこくしん -あいさつ -あいだ -あおぞら -あかちゃん -あきる -あけがた -あける -あこがれる -あさい -あさひ -あしあと -あじわう -あずかる -あずき -あそぶ -あたえる -あたためる -あたりまえ -あたる -あつい -あつかう -あっしゅく -あつまり -あつめる -あてな -あてはまる -あひる -あぶら -あぶる -あふれる -あまい -あまど -あまやかす -あまり -あみもの -あめりか -あやまる -あゆむ -あらいぐま -あらし -あらすじ -あらためる -あらゆる -あらわす -ありがとう -あわせる -あわてる -あんい -あんがい -あんこ -あんぜん -あんてい -あんない -あんまり -いいだす -いおん -いがい -いがく -いきおい -いきなり -いきもの -いきる -いくじ -いくぶん -いけばな -いけん -いこう -いこく -いこつ -いさましい -いさん -いしき -いじゅう -いじょう -いじわる -いずみ -いずれ -いせい -いせえび -いせかい -いせき -いぜん -いそうろう -いそがしい -いだい -いだく -いたずら -いたみ -いたりあ -いちおう -いちじ -いちど -いちば -いちぶ -いちりゅう -いつか -いっしゅん -いっせい -いっそう -いったん -いっち -いってい -いっぽう -いてざ -いてん -いどう -いとこ -いない -いなか -いねむり -いのち -いのる -いはつ -いばる -いはん -いびき -いひん -いふく -いへん -いほう -いみん -いもうと -いもたれ -いもり -いやがる -いやす -いよかん -いよく -いらい -いらすと -いりぐち -いりょう -いれい -いれもの -いれる -いろえんぴつ -いわい -いわう -いわかん -いわば -いわゆる -いんげんまめ -いんさつ -いんしょう -いんよう -うえき -うえる -うおざ -うがい -うかぶ -うかべる -うきわ -うくらいな -うくれれ -うけたまわる -うけつけ -うけとる -うけもつ -うける -うごかす -うごく -うこん -うさぎ -うしなう -うしろがみ -うすい -うすぎ -うすぐらい -うすめる -うせつ -うちあわせ -うちがわ -うちき -うちゅう -うっかり -うつくしい -うったえる -うつる -うどん -うなぎ -うなじ -うなずく -うなる -うねる -うのう -うぶげ -うぶごえ -うまれる -うめる -うもう -うやまう -うよく -うらがえす -うらぐち -うらない -うりあげ -うりきれ -うるさい -うれしい -うれゆき -うれる -うろこ -うわき -うわさ -うんこう -うんちん -うんてん -うんどう -えいえん -えいが -えいきょう -えいご -えいせい -えいぶん -えいよう -えいわ -えおり -えがお -えがく -えきたい -えくせる -えしゃく -えすて -えつらん -えのぐ -えほうまき -えほん -えまき -えもじ -えもの -えらい -えらぶ -えりあ -えんえん -えんかい -えんぎ -えんげき -えんしゅう -えんぜつ -えんそく -えんちょう -えんとつ -おいかける -おいこす -おいしい -おいつく -おうえん -おうさま -おうじ -おうせつ -おうたい -おうふく -おうべい -おうよう -おえる -おおい -おおう -おおどおり -おおや -おおよそ -おかえり -おかず -おがむ -おかわり -おぎなう -おきる -おくさま -おくじょう -おくりがな -おくる -おくれる -おこす -おこなう -おこる -おさえる -おさない -おさめる -おしいれ -おしえる -おじぎ -おじさん -おしゃれ -おそらく -おそわる -おたがい -おたく -おだやか -おちつく -おっと -おつり -おでかけ -おとしもの -おとなしい -おどり -おどろかす -おばさん -おまいり -おめでとう -おもいで -おもう -おもたい -おもちゃ -おやつ -おやゆび -およぼす -おらんだ -おろす -おんがく -おんけい -おんしゃ -おんせん -おんだん -おんちゅう -おんどけい -かあつ -かいが -がいき -がいけん -がいこう -かいさつ -かいしゃ -かいすいよく -かいぜん -かいぞうど -かいつう -かいてん -かいとう -かいふく -がいへき -かいほう -かいよう -がいらい -かいわ -かえる -かおり -かかえる -かがく -かがし -かがみ -かくご -かくとく -かざる -がぞう -かたい -かたち -がちょう -がっきゅう -がっこう -がっさん -がっしょう -かなざわし -かのう -がはく -かぶか -かほう -かほご -かまう -かまぼこ -かめれおん -かゆい -かようび -からい -かるい -かろう -かわく -かわら -がんか -かんけい -かんこう -かんしゃ -かんそう -かんたん -かんち -がんばる -きあい -きあつ -きいろ -ぎいん -きうい -きうん -きえる -きおう -きおく -きおち -きおん -きかい -きかく -きかんしゃ -ききて -きくばり -きくらげ -きけんせい -きこう -きこえる -きこく -きさい -きさく -きさま -きさらぎ -ぎじかがく -ぎしき -ぎじたいけん -ぎじにってい -ぎじゅつしゃ -きすう -きせい -きせき -きせつ -きそう -きぞく -きぞん -きたえる -きちょう -きつえん -ぎっちり -きつつき -きつね -きてい -きどう -きどく -きない -きなが -きなこ -きぬごし -きねん -きのう -きのした -きはく -きびしい -きひん -きふく -きぶん -きぼう -きほん -きまる -きみつ -きむずかしい -きめる -きもだめし -きもち -きもの -きゃく -きやく -ぎゅうにく -きよう -きょうりゅう -きらい -きらく -きりん -きれい -きれつ -きろく -ぎろん -きわめる -ぎんいろ -きんかくじ -きんじょ -きんようび -ぐあい -くいず -くうかん -くうき -くうぐん -くうこう -ぐうせい -くうそう -ぐうたら -くうふく -くうぼ -くかん -くきょう -くげん -ぐこう -くさい -くさき -くさばな -くさる -くしゃみ -くしょう -くすのき -くすりゆび -くせげ -くせん -ぐたいてき -くださる -くたびれる -くちこみ -くちさき -くつした -ぐっすり -くつろぐ -くとうてん -くどく -くなん -くねくね -くのう -くふう -くみあわせ -くみたてる -くめる -くやくしょ -くらす -くらべる -くるま -くれる -くろう -くわしい -ぐんかん -ぐんしょく -ぐんたい -ぐんて -けあな -けいかく -けいけん -けいこ -けいさつ -げいじゅつ -けいたい -げいのうじん -けいれき -けいろ -けおとす -けおりもの -げきか -げきげん -げきだん -げきちん -げきとつ -げきは -げきやく -げこう -げこくじょう -げざい -けさき -げざん -けしき -けしごむ -けしょう -げすと -けたば -けちゃっぷ -けちらす -けつあつ -けつい -けつえき -けっこん -けつじょ -けっせき -けってい -けつまつ -げつようび -げつれい -けつろん -げどく -けとばす -けとる -けなげ -けなす -けなみ -けぬき -げねつ -けねん -けはい -げひん -けぶかい -げぼく -けまり -けみかる -けむし -けむり -けもの -けらい -けろけろ -けわしい -けんい -けんえつ -けんお -けんか -げんき -けんげん -けんこう -けんさく -けんしゅう -けんすう -げんそう -けんちく -けんてい -けんとう -けんない -けんにん -げんぶつ -けんま -けんみん -けんめい -けんらん -けんり -こあくま -こいぬ -こいびと -ごうい -こうえん -こうおん -こうかん -ごうきゅう -ごうけい -こうこう -こうさい -こうじ -こうすい -ごうせい -こうそく -こうたい -こうちゃ -こうつう -こうてい -こうどう -こうない -こうはい -ごうほう -ごうまん -こうもく -こうりつ -こえる -こおり -ごかい -ごがつ -ごかん -こくご -こくさい -こくとう -こくない -こくはく -こぐま -こけい -こける -ここのか -こころ -こさめ -こしつ -こすう -こせい -こせき -こぜん -こそだて -こたい -こたえる -こたつ -こちょう -こっか -こつこつ -こつばん -こつぶ -こてい -こてん -ことがら -ことし -ことば -ことり -こなごな -こねこね -このまま -このみ -このよ -ごはん -こひつじ -こふう -こふん -こぼれる -ごまあぶら -こまかい -ごますり -こまつな -こまる -こむぎこ -こもじ -こもち -こもの -こもん -こやく -こやま -こゆう -こゆび -こよい -こよう -こりる -これくしょん -ころっけ -こわもて -こわれる -こんいん -こんかい -こんき -こんしゅう -こんすい -こんだて -こんとん -こんなん -こんびに -こんぽん -こんまけ -こんや -こんれい -こんわく -ざいえき -さいかい -さいきん -ざいげん -ざいこ -さいしょ -さいせい -ざいたく -ざいちゅう -さいてき -ざいりょう -さうな -さかいし -さがす -さかな -さかみち -さがる -さぎょう -さくし -さくひん -さくら -さこく -さこつ -さずかる -ざせき -さたん -さつえい -ざつおん -ざっか -ざつがく -さっきょく -ざっし -さつじん -ざっそう -さつたば -さつまいも -さてい -さといも -さとう -さとおや -さとし -さとる -さのう -さばく -さびしい -さべつ -さほう -さほど -さます -さみしい -さみだれ -さむけ -さめる -さやえんどう -さゆう -さよう -さよく -さらだ -ざるそば -さわやか -さわる -さんいん -さんか -さんきゃく -さんこう -さんさい -ざんしょ -さんすう -さんせい -さんそ -さんち -さんま -さんみ -さんらん -しあい -しあげ -しあさって -しあわせ -しいく -しいん -しうち -しえい -しおけ -しかい -しかく -じかん -しごと -しすう -じだい -したうけ -したぎ -したて -したみ -しちょう -しちりん -しっかり -しつじ -しつもん -してい -してき -してつ -じてん -じどう -しなぎれ -しなもの -しなん -しねま -しねん -しのぐ -しのぶ -しはい -しばかり -しはつ -しはらい -しはん -しひょう -しふく -じぶん -しへい -しほう -しほん -しまう -しまる -しみん -しむける -じむしょ -しめい -しめる -しもん -しゃいん -しゃうん -しゃおん -じゃがいも -しやくしょ -しゃくほう -しゃけん -しゃこ -しゃざい -しゃしん -しゃせん -しゃそう -しゃたい -しゃちょう -しゃっきん -じゃま -しゃりん -しゃれい -じゆう -じゅうしょ -しゅくはく -じゅしん -しゅっせき -しゅみ -しゅらば -じゅんばん -しょうかい -しょくたく -しょっけん -しょどう -しょもつ -しらせる -しらべる -しんか -しんこう -じんじゃ -しんせいじ -しんちく -しんりん -すあげ -すあし -すあな -ずあん -すいえい -すいか -すいとう -ずいぶん -すいようび -すうがく -すうじつ -すうせん -すおどり -すきま -すくう -すくない -すける -すごい -すこし -ずさん -すずしい -すすむ -すすめる -すっかり -ずっしり -ずっと -すてき -すてる -すねる -すのこ -すはだ -すばらしい -ずひょう -ずぶぬれ -すぶり -すふれ -すべて -すべる -ずほう -すぼん -すまい -すめし -すもう -すやき -すらすら -するめ -すれちがう -すろっと -すわる -すんぜん -すんぽう -せあぶら -せいかつ -せいげん -せいじ -せいよう -せおう -せかいかん -せきにん -せきむ -せきゆ -せきらんうん -せけん -せこう -せすじ -せたい -せたけ -せっかく -せっきゃく -ぜっく -せっけん -せっこつ -せっさたくま -せつぞく -せつだん -せつでん -せっぱん -せつび -せつぶん -せつめい -せつりつ -せなか -せのび -せはば -せびろ -せぼね -せまい -せまる -せめる -せもたれ -せりふ -ぜんあく -せんい -せんえい -せんか -せんきょ -せんく -せんげん -ぜんご -せんさい -せんしゅ -せんすい -せんせい -せんぞ -せんたく -せんちょう -せんてい -せんとう -せんぬき -せんねん -せんぱい -ぜんぶ -ぜんぽう -せんむ -せんめんじょ -せんもん -せんやく -せんゆう -せんよう -ぜんら -ぜんりゃく -せんれい -せんろ -そあく -そいとげる -そいね -そうがんきょう -そうき -そうご -そうしん -そうだん -そうなん -そうび -そうめん -そうり -そえもの -そえん -そがい -そげき -そこう -そこそこ -そざい -そしな -そせい -そせん -そそぐ -そだてる -そつう -そつえん -そっかん -そつぎょう -そっけつ -そっこう -そっせん -そっと -そとがわ -そとづら -そなえる -そなた -そふぼ -そぼく -そぼろ -そまつ -そまる -そむく -そむりえ -そめる -そもそも -そよかぜ -そらまめ -そろう -そんかい -そんけい -そんざい -そんしつ -そんぞく -そんちょう -ぞんび -ぞんぶん -そんみん -たあい -たいいん -たいうん -たいえき -たいおう -だいがく -たいき -たいぐう -たいけん -たいこ -たいざい -だいじょうぶ -だいすき -たいせつ -たいそう -だいたい -たいちょう -たいてい -だいどころ -たいない -たいねつ -たいのう -たいはん -だいひょう -たいふう -たいへん -たいほ -たいまつばな -たいみんぐ -たいむ -たいめん -たいやき -たいよう -たいら -たいりょく -たいる -たいわん -たうえ -たえる -たおす -たおる -たおれる -たかい -たかね -たきび -たくさん -たこく -たこやき -たさい -たしざん -だじゃれ -たすける -たずさわる -たそがれ -たたかう -たたく -ただしい -たたみ -たちばな -だっかい -だっきゃく -だっこ -だっしゅつ -だったい -たてる -たとえる -たなばた -たにん -たぬき -たのしみ -たはつ -たぶん -たべる -たぼう -たまご -たまる -だむる -ためいき -ためす -ためる -たもつ -たやすい -たよる -たらす -たりきほんがん -たりょう -たりる -たると -たれる -たれんと -たろっと -たわむれる -だんあつ -たんい -たんおん -たんか -たんき -たんけん -たんご -たんさん -たんじょうび -だんせい -たんそく -たんたい -だんち -たんてい -たんとう -だんな -たんにん -だんねつ -たんのう -たんぴん -だんぼう -たんまつ -たんめい -だんれつ -だんろ -だんわ -ちあい -ちあん -ちいき -ちいさい -ちえん -ちかい -ちから -ちきゅう -ちきん -ちけいず -ちけん -ちこく -ちさい -ちしき -ちしりょう -ちせい -ちそう -ちたい -ちたん -ちちおや -ちつじょ -ちてき -ちてん -ちぬき -ちぬり -ちのう -ちひょう -ちへいせん -ちほう -ちまた -ちみつ -ちみどろ -ちめいど -ちゃんこなべ -ちゅうい -ちゆりょく -ちょうし -ちょさくけん -ちらし -ちらみ -ちりがみ -ちりょう -ちるど -ちわわ -ちんたい -ちんもく -ついか -ついたち -つうか -つうじょう -つうはん -つうわ -つかう -つかれる -つくね -つくる -つけね -つける -つごう -つたえる -つづく -つつじ -つつむ -つとめる -つながる -つなみ -つねづね -つのる -つぶす -つまらない -つまる -つみき -つめたい -つもり -つもる -つよい -つるぼ -つるみく -つわもの -つわり -てあし -てあて -てあみ -ていおん -ていか -ていき -ていけい -ていこく -ていさつ -ていし -ていせい -ていたい -ていど -ていねい -ていひょう -ていへん -ていぼう -てうち -ておくれ -てきとう -てくび -でこぼこ -てさぎょう -てさげ -てすり -てそう -てちがい -てちょう -てつがく -てつづき -でっぱ -てつぼう -てつや -でぬかえ -てぬき -てぬぐい -てのひら -てはい -てぶくろ -てふだ -てほどき -てほん -てまえ -てまきずし -てみじか -てみやげ -てらす -てれび -てわけ -てわたし -でんあつ -てんいん -てんかい -てんき -てんぐ -てんけん -てんごく -てんさい -てんし -てんすう -でんち -てんてき -てんとう -てんない -てんぷら -てんぼうだい -てんめつ -てんらんかい -でんりょく -でんわ -どあい -といれ -どうかん -とうきゅう -どうぐ -とうし -とうむぎ -とおい -とおか -とおく -とおす -とおる -とかい -とかす -ときおり -ときどき -とくい -とくしゅう -とくてん -とくに -とくべつ -とけい -とける -とこや -とさか -としょかん -とそう -とたん -とちゅう -とっきゅう -とっくん -とつぜん -とつにゅう -とどける -ととのえる -とない -となえる -となり -とのさま -とばす -どぶがわ -とほう -とまる -とめる -ともだち -ともる -どようび -とらえる -とんかつ -どんぶり -ないかく -ないこう -ないしょ -ないす -ないせん -ないそう -なおす -ながい -なくす -なげる -なこうど -なさけ -なたでここ -なっとう -なつやすみ -ななおし -なにごと -なにもの -なにわ -なのか -なふだ -なまいき -なまえ -なまみ -なみだ -なめらか -なめる -なやむ -ならう -ならび -ならぶ -なれる -なわとび -なわばり -にあう -にいがた -にうけ -におい -にかい -にがて -にきび -にくしみ -にくまん -にげる -にさんかたんそ -にしき -にせもの -にちじょう -にちようび -にっか -にっき -にっけい -にっこう -にっさん -にっしょく -にっすう -にっせき -にってい -になう -にほん -にまめ -にもつ -にやり -にゅういん -にりんしゃ -にわとり -にんい -にんか -にんき -にんげん -にんしき -にんずう -にんそう -にんたい -にんち -にんてい -にんにく -にんぷ -にんまり -にんむ -にんめい -にんよう -ぬいくぎ -ぬかす -ぬぐいとる -ぬぐう -ぬくもり -ぬすむ -ぬまえび -ぬめり -ぬらす -ぬんちゃく -ねあげ -ねいき -ねいる -ねいろ -ねぐせ -ねくたい -ねくら -ねこぜ -ねこむ -ねさげ -ねすごす -ねそべる -ねだん -ねつい -ねっしん -ねつぞう -ねったいぎょ -ねぶそく -ねふだ -ねぼう -ねほりはほり -ねまき -ねまわし -ねみみ -ねむい -ねむたい -ねもと -ねらう -ねわざ -ねんいり -ねんおし -ねんかん -ねんきん -ねんぐ -ねんざ -ねんし -ねんちゃく -ねんど -ねんぴ -ねんぶつ -ねんまつ -ねんりょう -ねんれい -のいず -のおづま -のがす -のきなみ -のこぎり -のこす -のこる -のせる -のぞく -のぞむ -のたまう -のちほど -のっく -のばす -のはら -のべる -のぼる -のみもの -のやま -のらいぬ -のらねこ -のりもの -のりゆき -のれん -のんき -ばあい -はあく -ばあさん -ばいか -ばいく -はいけん -はいご -はいしん -はいすい -はいせん -はいそう -はいち -ばいばい -はいれつ -はえる -はおる -はかい -ばかり -はかる -はくしゅ -はけん -はこぶ -はさみ -はさん -はしご -ばしょ -はしる -はせる -ぱそこん -はそん -はたん -はちみつ -はつおん -はっかく -はづき -はっきり -はっくつ -はっけん -はっこう -はっさん -はっしん -はったつ -はっちゅう -はってん -はっぴょう -はっぽう -はなす -はなび -はにかむ -はぶらし -はみがき -はむかう -はめつ -はやい -はやし -はらう -はろうぃん -はわい -はんい -はんえい -はんおん -はんかく -はんきょう -ばんぐみ -はんこ -はんしゃ -はんすう -はんだん -ぱんち -ぱんつ -はんてい -はんとし -はんのう -はんぱ -はんぶん -はんぺん -はんぼうき -はんめい -はんらん -はんろん -ひいき -ひうん -ひえる -ひかく -ひかり -ひかる -ひかん -ひくい -ひけつ -ひこうき -ひこく -ひさい -ひさしぶり -ひさん -びじゅつかん -ひしょ -ひそか -ひそむ -ひたむき -ひだり -ひたる -ひつぎ -ひっこし -ひっし -ひつじゅひん -ひっす -ひつぜん -ぴったり -ぴっちり -ひつよう -ひてい -ひとごみ -ひなまつり -ひなん -ひねる -ひはん -ひびく -ひひょう -ひほう -ひまわり -ひまん -ひみつ -ひめい -ひめじし -ひやけ -ひやす -ひよう -びょうき -ひらがな -ひらく -ひりつ -ひりょう -ひるま -ひるやすみ -ひれい -ひろい -ひろう -ひろき -ひろゆき -ひんかく -ひんけつ -ひんこん -ひんしゅ -ひんそう -ぴんち -ひんぱん -びんぼう -ふあん -ふいうち -ふうけい -ふうせん -ぷうたろう -ふうとう -ふうふ -ふえる -ふおん -ふかい -ふきん -ふくざつ -ふくぶくろ -ふこう -ふさい -ふしぎ -ふじみ -ふすま -ふせい -ふせぐ -ふそく -ぶたにく -ふたん -ふちょう -ふつう -ふつか -ふっかつ -ふっき -ふっこく -ぶどう -ふとる -ふとん -ふのう -ふはい -ふひょう -ふへん -ふまん -ふみん -ふめつ -ふめん -ふよう -ふりこ -ふりる -ふるい -ふんいき -ぶんがく -ぶんぐ -ふんしつ -ぶんせき -ふんそう -ぶんぽう -へいあん -へいおん -へいがい -へいき -へいげん -へいこう -へいさ -へいしゃ -へいせつ -へいそ -へいたく -へいてん -へいねつ -へいわ -へきが -へこむ -べにいろ -べにしょうが -へらす -へんかん -べんきょう -べんごし -へんさい -へんたい -べんり -ほあん -ほいく -ぼうぎょ -ほうこく -ほうそう -ほうほう -ほうもん -ほうりつ -ほえる -ほおん -ほかん -ほきょう -ぼきん -ほくろ -ほけつ -ほけん -ほこう -ほこる -ほしい -ほしつ -ほしゅ -ほしょう -ほせい -ほそい -ほそく -ほたて -ほたる -ぽちぶくろ -ほっきょく -ほっさ -ほったん -ほとんど -ほめる -ほんい -ほんき -ほんけ -ほんしつ -ほんやく -まいにち -まかい -まかせる -まがる -まける -まこと -まさつ -まじめ -ますく -まぜる -まつり -まとめ -まなぶ -まぬけ -まねく -まほう -まもる -まゆげ -まよう -まろやか -まわす -まわり -まわる -まんが -まんきつ -まんぞく -まんなか -みいら -みうち -みえる -みがく -みかた -みかん -みけん -みこん -みじかい -みすい -みすえる -みせる -みっか -みつかる -みつける -みてい -みとめる -みなと -みなみかさい -みねらる -みのう -みのがす -みほん -みもと -みやげ -みらい -みりょく -みわく -みんか -みんぞく -むいか -むえき -むえん -むかい -むかう -むかえ -むかし -むぎちゃ -むける -むげん -むさぼる -むしあつい -むしば -むじゅん -むしろ -むすう -むすこ -むすぶ -むすめ -むせる -むせん -むちゅう -むなしい -むのう -むやみ -むよう -むらさき -むりょう -むろん -めいあん -めいうん -めいえん -めいかく -めいきょく -めいさい -めいし -めいそう -めいぶつ -めいれい -めいわく -めぐまれる -めざす -めした -めずらしい -めだつ -めまい -めやす -めんきょ -めんせき -めんどう -もうしあげる -もうどうけん -もえる -もくし -もくてき -もくようび -もちろん -もどる -もらう -もんく -もんだい -やおや -やける -やさい -やさしい -やすい -やすたろう -やすみ -やせる -やそう -やたい -やちん -やっと -やっぱり -やぶる -やめる -ややこしい -やよい -やわらかい -ゆうき -ゆうびんきょく -ゆうべ -ゆうめい -ゆけつ -ゆしゅつ -ゆせん -ゆそう -ゆたか -ゆちゃく -ゆでる -ゆにゅう -ゆびわ -ゆらい -ゆれる -ようい -ようか -ようきゅう -ようじ -ようす -ようちえん -よかぜ -よかん -よきん -よくせい -よくぼう -よけい -よごれる -よさん -よしゅう -よそう -よそく -よっか -よてい -よどがわく -よねつ -よやく -よゆう -よろこぶ -よろしい -らいう -らくがき -らくご -らくさつ -らくだ -らしんばん -らせん -らぞく -らたい -らっか -られつ -りえき -りかい -りきさく -りきせつ -りくぐん -りくつ -りけん -りこう -りせい -りそう -りそく -りてん -りねん -りゆう -りゅうがく -りよう -りょうり -りょかん -りょくちゃ -りょこう -りりく -りれき -りろん -りんご -るいけい -るいさい -るいじ -るいせき -るすばん -るりがわら -れいかん -れいぎ -れいせい -れいぞうこ -れいとう -れいぼう -れきし -れきだい -れんあい -れんけい -れんこん -れんさい -れんしゅう -れんぞく -れんらく -ろうか -ろうご -ろうじん -ろうそく -ろくが -ろこつ -ろじうら -ろしゅつ -ろせん -ろてん -ろめん -ろれつ -ろんぎ -ろんぱ -ろんぶん -ろんり -わかす -わかめ -わかやま -わかれる -わしつ -わじまし -わすれもの -わらう -われる`.split('\n'); -//# sourceMappingURL=japanese.js.map \ No newline at end of file diff --git a/node_modules/@scure/bip39/esm/wordlists/japanese.js.map b/node_modules/@scure/bip39/esm/wordlists/japanese.js.map deleted file mode 100644 index ee1323c5..00000000 --- a/node_modules/@scure/bip39/esm/wordlists/japanese.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"japanese.js","sourceRoot":"","sources":["../../src/wordlists/japanese.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,QAAQ,GAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;IA+/D9B,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@scure/bip39/esm/wordlists/korean.js b/node_modules/@scure/bip39/esm/wordlists/korean.js deleted file mode 100644 index 535ae22a..00000000 --- a/node_modules/@scure/bip39/esm/wordlists/korean.js +++ /dev/null @@ -1,2049 +0,0 @@ -export const wordlist = `가격 -가끔 -가난 -가능 -가득 -가르침 -가뭄 -가방 -가상 -가슴 -가운데 -가을 -가이드 -가입 -가장 -가정 -가족 -가죽 -각오 -각자 -간격 -간부 -간섭 -간장 -간접 -간판 -갈등 -갈비 -갈색 -갈증 -감각 -감기 -감소 -감수성 -감자 -감정 -갑자기 -강남 -강당 -강도 -강력히 -강변 -강북 -강사 -강수량 -강아지 -강원도 -강의 -강제 -강조 -같이 -개구리 -개나리 -개방 -개별 -개선 -개성 -개인 -객관적 -거실 -거액 -거울 -거짓 -거품 -걱정 -건강 -건물 -건설 -건조 -건축 -걸음 -검사 -검토 -게시판 -게임 -겨울 -견해 -결과 -결국 -결론 -결석 -결승 -결심 -결정 -결혼 -경계 -경고 -경기 -경력 -경복궁 -경비 -경상도 -경영 -경우 -경쟁 -경제 -경주 -경찰 -경치 -경향 -경험 -계곡 -계단 -계란 -계산 -계속 -계약 -계절 -계층 -계획 -고객 -고구려 -고궁 -고급 -고등학생 -고무신 -고민 -고양이 -고장 -고전 -고집 -고춧가루 -고통 -고향 -곡식 -골목 -골짜기 -골프 -공간 -공개 -공격 -공군 -공급 -공기 -공동 -공무원 -공부 -공사 -공식 -공업 -공연 -공원 -공장 -공짜 -공책 -공통 -공포 -공항 -공휴일 -과목 -과일 -과장 -과정 -과학 -관객 -관계 -관광 -관념 -관람 -관련 -관리 -관습 -관심 -관점 -관찰 -광경 -광고 -광장 -광주 -괴로움 -굉장히 -교과서 -교문 -교복 -교실 -교양 -교육 -교장 -교직 -교통 -교환 -교훈 -구경 -구름 -구멍 -구별 -구분 -구석 -구성 -구속 -구역 -구입 -구청 -구체적 -국가 -국기 -국내 -국립 -국물 -국민 -국수 -국어 -국왕 -국적 -국제 -국회 -군대 -군사 -군인 -궁극적 -권리 -권위 -권투 -귀국 -귀신 -규정 -규칙 -균형 -그날 -그냥 -그늘 -그러나 -그룹 -그릇 -그림 -그제서야 -그토록 -극복 -극히 -근거 -근교 -근래 -근로 -근무 -근본 -근원 -근육 -근처 -글씨 -글자 -금강산 -금고 -금년 -금메달 -금액 -금연 -금요일 -금지 -긍정적 -기간 -기관 -기념 -기능 -기독교 -기둥 -기록 -기름 -기법 -기본 -기분 -기쁨 -기숙사 -기술 -기억 -기업 -기온 -기운 -기원 -기적 -기준 -기침 -기혼 -기획 -긴급 -긴장 -길이 -김밥 -김치 -김포공항 -깍두기 -깜빡 -깨달음 -깨소금 -껍질 -꼭대기 -꽃잎 -나들이 -나란히 -나머지 -나물 -나침반 -나흘 -낙엽 -난방 -날개 -날씨 -날짜 -남녀 -남대문 -남매 -남산 -남자 -남편 -남학생 -낭비 -낱말 -내년 -내용 -내일 -냄비 -냄새 -냇물 -냉동 -냉면 -냉방 -냉장고 -넥타이 -넷째 -노동 -노란색 -노력 -노인 -녹음 -녹차 -녹화 -논리 -논문 -논쟁 -놀이 -농구 -농담 -농민 -농부 -농업 -농장 -농촌 -높이 -눈동자 -눈물 -눈썹 -뉴욕 -느낌 -늑대 -능동적 -능력 -다방 -다양성 -다음 -다이어트 -다행 -단계 -단골 -단독 -단맛 -단순 -단어 -단위 -단점 -단체 -단추 -단편 -단풍 -달걀 -달러 -달력 -달리 -닭고기 -담당 -담배 -담요 -담임 -답변 -답장 -당근 -당분간 -당연히 -당장 -대규모 -대낮 -대단히 -대답 -대도시 -대략 -대량 -대륙 -대문 -대부분 -대신 -대응 -대장 -대전 -대접 -대중 -대책 -대출 -대충 -대통령 -대학 -대한민국 -대합실 -대형 -덩어리 -데이트 -도대체 -도덕 -도둑 -도망 -도서관 -도심 -도움 -도입 -도자기 -도저히 -도전 -도중 -도착 -독감 -독립 -독서 -독일 -독창적 -동화책 -뒷모습 -뒷산 -딸아이 -마누라 -마늘 -마당 -마라톤 -마련 -마무리 -마사지 -마약 -마요네즈 -마을 -마음 -마이크 -마중 -마지막 -마찬가지 -마찰 -마흔 -막걸리 -막내 -막상 -만남 -만두 -만세 -만약 -만일 -만점 -만족 -만화 -많이 -말기 -말씀 -말투 -맘대로 -망원경 -매년 -매달 -매력 -매번 -매스컴 -매일 -매장 -맥주 -먹이 -먼저 -먼지 -멀리 -메일 -며느리 -며칠 -면담 -멸치 -명단 -명령 -명예 -명의 -명절 -명칭 -명함 -모금 -모니터 -모델 -모든 -모범 -모습 -모양 -모임 -모조리 -모집 -모퉁이 -목걸이 -목록 -목사 -목소리 -목숨 -목적 -목표 -몰래 -몸매 -몸무게 -몸살 -몸속 -몸짓 -몸통 -몹시 -무관심 -무궁화 -무더위 -무덤 -무릎 -무슨 -무엇 -무역 -무용 -무조건 -무지개 -무척 -문구 -문득 -문법 -문서 -문제 -문학 -문화 -물가 -물건 -물결 -물고기 -물론 -물리학 -물음 -물질 -물체 -미국 -미디어 -미사일 -미술 -미역 -미용실 -미움 -미인 -미팅 -미혼 -민간 -민족 -민주 -믿음 -밀가루 -밀리미터 -밑바닥 -바가지 -바구니 -바나나 -바늘 -바닥 -바닷가 -바람 -바이러스 -바탕 -박물관 -박사 -박수 -반대 -반드시 -반말 -반발 -반성 -반응 -반장 -반죽 -반지 -반찬 -받침 -발가락 -발걸음 -발견 -발달 -발레 -발목 -발바닥 -발생 -발음 -발자국 -발전 -발톱 -발표 -밤하늘 -밥그릇 -밥맛 -밥상 -밥솥 -방금 -방면 -방문 -방바닥 -방법 -방송 -방식 -방안 -방울 -방지 -방학 -방해 -방향 -배경 -배꼽 -배달 -배드민턴 -백두산 -백색 -백성 -백인 -백제 -백화점 -버릇 -버섯 -버튼 -번개 -번역 -번지 -번호 -벌금 -벌레 -벌써 -범위 -범인 -범죄 -법률 -법원 -법적 -법칙 -베이징 -벨트 -변경 -변동 -변명 -변신 -변호사 -변화 -별도 -별명 -별일 -병실 -병아리 -병원 -보관 -보너스 -보라색 -보람 -보름 -보상 -보안 -보자기 -보장 -보전 -보존 -보통 -보편적 -보험 -복도 -복사 -복숭아 -복습 -볶음 -본격적 -본래 -본부 -본사 -본성 -본인 -본질 -볼펜 -봉사 -봉지 -봉투 -부근 -부끄러움 -부담 -부동산 -부문 -부분 -부산 -부상 -부엌 -부인 -부작용 -부장 -부정 -부족 -부지런히 -부친 -부탁 -부품 -부회장 -북부 -북한 -분노 -분량 -분리 -분명 -분석 -분야 -분위기 -분필 -분홍색 -불고기 -불과 -불교 -불꽃 -불만 -불법 -불빛 -불안 -불이익 -불행 -브랜드 -비극 -비난 -비닐 -비둘기 -비디오 -비로소 -비만 -비명 -비밀 -비바람 -비빔밥 -비상 -비용 -비율 -비중 -비타민 -비판 -빌딩 -빗물 -빗방울 -빗줄기 -빛깔 -빨간색 -빨래 -빨리 -사건 -사계절 -사나이 -사냥 -사람 -사랑 -사립 -사모님 -사물 -사방 -사상 -사생활 -사설 -사슴 -사실 -사업 -사용 -사월 -사장 -사전 -사진 -사촌 -사춘기 -사탕 -사투리 -사흘 -산길 -산부인과 -산업 -산책 -살림 -살인 -살짝 -삼계탕 -삼국 -삼십 -삼월 -삼촌 -상관 -상금 -상대 -상류 -상반기 -상상 -상식 -상업 -상인 -상자 -상점 -상처 -상추 -상태 -상표 -상품 -상황 -새벽 -색깔 -색연필 -생각 -생명 -생물 -생방송 -생산 -생선 -생신 -생일 -생활 -서랍 -서른 -서명 -서민 -서비스 -서양 -서울 -서적 -서점 -서쪽 -서클 -석사 -석유 -선거 -선물 -선배 -선생 -선수 -선원 -선장 -선전 -선택 -선풍기 -설거지 -설날 -설렁탕 -설명 -설문 -설사 -설악산 -설치 -설탕 -섭씨 -성공 -성당 -성명 -성별 -성인 -성장 -성적 -성질 -성함 -세금 -세미나 -세상 -세월 -세종대왕 -세탁 -센터 -센티미터 -셋째 -소규모 -소극적 -소금 -소나기 -소년 -소득 -소망 -소문 -소설 -소속 -소아과 -소용 -소원 -소음 -소중히 -소지품 -소질 -소풍 -소형 -속담 -속도 -속옷 -손가락 -손길 -손녀 -손님 -손등 -손목 -손뼉 -손실 -손질 -손톱 -손해 -솔직히 -솜씨 -송아지 -송이 -송편 -쇠고기 -쇼핑 -수건 -수년 -수단 -수돗물 -수동적 -수면 -수명 -수박 -수상 -수석 -수술 -수시로 -수업 -수염 -수영 -수입 -수준 -수집 -수출 -수컷 -수필 -수학 -수험생 -수화기 -숙녀 -숙소 -숙제 -순간 -순서 -순수 -순식간 -순위 -숟가락 -술병 -술집 -숫자 -스님 -스물 -스스로 -스승 -스웨터 -스위치 -스케이트 -스튜디오 -스트레스 -스포츠 -슬쩍 -슬픔 -습관 -습기 -승객 -승리 -승부 -승용차 -승진 -시각 -시간 -시골 -시금치 -시나리오 -시댁 -시리즈 -시멘트 -시민 -시부모 -시선 -시설 -시스템 -시아버지 -시어머니 -시월 -시인 -시일 -시작 -시장 -시절 -시점 -시중 -시즌 -시집 -시청 -시합 -시험 -식구 -식기 -식당 -식량 -식료품 -식물 -식빵 -식사 -식생활 -식초 -식탁 -식품 -신고 -신규 -신념 -신문 -신발 -신비 -신사 -신세 -신용 -신제품 -신청 -신체 -신화 -실감 -실내 -실력 -실례 -실망 -실수 -실습 -실시 -실장 -실정 -실질적 -실천 -실체 -실컷 -실태 -실패 -실험 -실현 -심리 -심부름 -심사 -심장 -심정 -심판 -쌍둥이 -씨름 -씨앗 -아가씨 -아나운서 -아드님 -아들 -아쉬움 -아스팔트 -아시아 -아울러 -아저씨 -아줌마 -아직 -아침 -아파트 -아프리카 -아픔 -아홉 -아흔 -악기 -악몽 -악수 -안개 -안경 -안과 -안내 -안녕 -안동 -안방 -안부 -안주 -알루미늄 -알코올 -암시 -암컷 -압력 -앞날 -앞문 -애인 -애정 -액수 -앨범 -야간 -야단 -야옹 -약간 -약국 -약속 -약수 -약점 -약품 -약혼녀 -양념 -양력 -양말 -양배추 -양주 -양파 -어둠 -어려움 -어른 -어젯밤 -어쨌든 -어쩌다가 -어쩐지 -언니 -언덕 -언론 -언어 -얼굴 -얼른 -얼음 -얼핏 -엄마 -업무 -업종 -업체 -엉덩이 -엉망 -엉터리 -엊그제 -에너지 -에어컨 -엔진 -여건 -여고생 -여관 -여군 -여권 -여대생 -여덟 -여동생 -여든 -여론 -여름 -여섯 -여성 -여왕 -여인 -여전히 -여직원 -여학생 -여행 -역사 -역시 -역할 -연결 -연구 -연극 -연기 -연락 -연설 -연세 -연속 -연습 -연애 -연예인 -연인 -연장 -연주 -연출 -연필 -연합 -연휴 -열기 -열매 -열쇠 -열심히 -열정 -열차 -열흘 -염려 -엽서 -영국 -영남 -영상 -영양 -영역 -영웅 -영원히 -영하 -영향 -영혼 -영화 -옆구리 -옆방 -옆집 -예감 -예금 -예방 -예산 -예상 -예선 -예술 -예습 -예식장 -예약 -예전 -예절 -예정 -예컨대 -옛날 -오늘 -오락 -오랫동안 -오렌지 -오로지 -오른발 -오븐 -오십 -오염 -오월 -오전 -오직 -오징어 -오페라 -오피스텔 -오히려 -옥상 -옥수수 -온갖 -온라인 -온몸 -온종일 -온통 -올가을 -올림픽 -올해 -옷차림 -와이셔츠 -와인 -완성 -완전 -왕비 -왕자 -왜냐하면 -왠지 -외갓집 -외국 -외로움 -외삼촌 -외출 -외침 -외할머니 -왼발 -왼손 -왼쪽 -요금 -요일 -요즘 -요청 -용기 -용서 -용어 -우산 -우선 -우승 -우연히 -우정 -우체국 -우편 -운동 -운명 -운반 -운전 -운행 -울산 -울음 -움직임 -웃어른 -웃음 -워낙 -원고 -원래 -원서 -원숭이 -원인 -원장 -원피스 -월급 -월드컵 -월세 -월요일 -웨이터 -위반 -위법 -위성 -위원 -위험 -위협 -윗사람 -유난히 -유럽 -유명 -유물 -유산 -유적 -유치원 -유학 -유행 -유형 -육군 -육상 -육십 -육체 -은행 -음력 -음료 -음반 -음성 -음식 -음악 -음주 -의견 -의논 -의문 -의복 -의식 -의심 -의외로 -의욕 -의원 -의학 -이것 -이곳 -이념 -이놈 -이달 -이대로 -이동 -이렇게 -이력서 -이론적 -이름 -이민 -이발소 -이별 -이불 -이빨 -이상 -이성 -이슬 -이야기 -이용 -이웃 -이월 -이윽고 -이익 -이전 -이중 -이튿날 -이틀 -이혼 -인간 -인격 -인공 -인구 -인근 -인기 -인도 -인류 -인물 -인생 -인쇄 -인연 -인원 -인재 -인종 -인천 -인체 -인터넷 -인하 -인형 -일곱 -일기 -일단 -일대 -일등 -일반 -일본 -일부 -일상 -일생 -일손 -일요일 -일월 -일정 -일종 -일주일 -일찍 -일체 -일치 -일행 -일회용 -임금 -임무 -입대 -입력 -입맛 -입사 -입술 -입시 -입원 -입장 -입학 -자가용 -자격 -자극 -자동 -자랑 -자부심 -자식 -자신 -자연 -자원 -자율 -자전거 -자정 -자존심 -자판 -작가 -작년 -작성 -작업 -작용 -작은딸 -작품 -잔디 -잔뜩 -잔치 -잘못 -잠깐 -잠수함 -잠시 -잠옷 -잠자리 -잡지 -장관 -장군 -장기간 -장래 -장례 -장르 -장마 -장면 -장모 -장미 -장비 -장사 -장소 -장식 -장애인 -장인 -장점 -장차 -장학금 -재능 -재빨리 -재산 -재생 -재작년 -재정 -재채기 -재판 -재학 -재활용 -저것 -저고리 -저곳 -저녁 -저런 -저렇게 -저번 -저울 -저절로 -저축 -적극 -적당히 -적성 -적용 -적응 -전개 -전공 -전기 -전달 -전라도 -전망 -전문 -전반 -전부 -전세 -전시 -전용 -전자 -전쟁 -전주 -전철 -전체 -전통 -전혀 -전후 -절대 -절망 -절반 -절약 -절차 -점검 -점수 -점심 -점원 -점점 -점차 -접근 -접시 -접촉 -젓가락 -정거장 -정도 -정류장 -정리 -정말 -정면 -정문 -정반대 -정보 -정부 -정비 -정상 -정성 -정오 -정원 -정장 -정지 -정치 -정확히 -제공 -제과점 -제대로 -제목 -제발 -제법 -제삿날 -제안 -제일 -제작 -제주도 -제출 -제품 -제한 -조각 -조건 -조금 -조깅 -조명 -조미료 -조상 -조선 -조용히 -조절 -조정 -조직 -존댓말 -존재 -졸업 -졸음 -종교 -종로 -종류 -종소리 -종업원 -종종 -종합 -좌석 -죄인 -주관적 -주름 -주말 -주머니 -주먹 -주문 -주민 -주방 -주변 -주식 -주인 -주일 -주장 -주전자 -주택 -준비 -줄거리 -줄기 -줄무늬 -중간 -중계방송 -중국 -중년 -중단 -중독 -중반 -중부 -중세 -중소기업 -중순 -중앙 -중요 -중학교 -즉석 -즉시 -즐거움 -증가 -증거 -증권 -증상 -증세 -지각 -지갑 -지경 -지극히 -지금 -지급 -지능 -지름길 -지리산 -지방 -지붕 -지식 -지역 -지우개 -지원 -지적 -지점 -지진 -지출 -직선 -직업 -직원 -직장 -진급 -진동 -진로 -진료 -진리 -진짜 -진찰 -진출 -진통 -진행 -질문 -질병 -질서 -짐작 -집단 -집안 -집중 -짜증 -찌꺼기 -차남 -차라리 -차량 -차림 -차별 -차선 -차츰 -착각 -찬물 -찬성 -참가 -참기름 -참새 -참석 -참여 -참외 -참조 -찻잔 -창가 -창고 -창구 -창문 -창밖 -창작 -창조 -채널 -채점 -책가방 -책방 -책상 -책임 -챔피언 -처벌 -처음 -천국 -천둥 -천장 -천재 -천천히 -철도 -철저히 -철학 -첫날 -첫째 -청년 -청바지 -청소 -청춘 -체계 -체력 -체온 -체육 -체중 -체험 -초등학생 -초반 -초밥 -초상화 -초순 -초여름 -초원 -초저녁 -초점 -초청 -초콜릿 -촛불 -총각 -총리 -총장 -촬영 -최근 -최상 -최선 -최신 -최악 -최종 -추석 -추억 -추진 -추천 -추측 -축구 -축소 -축제 -축하 -출근 -출발 -출산 -출신 -출연 -출입 -출장 -출판 -충격 -충고 -충돌 -충분히 -충청도 -취업 -취직 -취향 -치약 -친구 -친척 -칠십 -칠월 -칠판 -침대 -침묵 -침실 -칫솔 -칭찬 -카메라 -카운터 -칼국수 -캐릭터 -캠퍼스 -캠페인 -커튼 -컨디션 -컬러 -컴퓨터 -코끼리 -코미디 -콘서트 -콜라 -콤플렉스 -콩나물 -쾌감 -쿠데타 -크림 -큰길 -큰딸 -큰소리 -큰아들 -큰어머니 -큰일 -큰절 -클래식 -클럽 -킬로 -타입 -타자기 -탁구 -탁자 -탄생 -태권도 -태양 -태풍 -택시 -탤런트 -터널 -터미널 -테니스 -테스트 -테이블 -텔레비전 -토론 -토마토 -토요일 -통계 -통과 -통로 -통신 -통역 -통일 -통장 -통제 -통증 -통합 -통화 -퇴근 -퇴원 -퇴직금 -튀김 -트럭 -특급 -특별 -특성 -특수 -특징 -특히 -튼튼히 -티셔츠 -파란색 -파일 -파출소 -판결 -판단 -판매 -판사 -팔십 -팔월 -팝송 -패션 -팩스 -팩시밀리 -팬티 -퍼센트 -페인트 -편견 -편의 -편지 -편히 -평가 -평균 -평생 -평소 -평양 -평일 -평화 -포스터 -포인트 -포장 -포함 -표면 -표정 -표준 -표현 -품목 -품질 -풍경 -풍속 -풍습 -프랑스 -프린터 -플라스틱 -피곤 -피망 -피아노 -필름 -필수 -필요 -필자 -필통 -핑계 -하느님 -하늘 -하드웨어 -하룻밤 -하반기 -하숙집 -하순 -하여튼 -하지만 -하천 -하품 -하필 -학과 -학교 -학급 -학기 -학년 -학력 -학번 -학부모 -학비 -학생 -학술 -학습 -학용품 -학원 -학위 -학자 -학점 -한계 -한글 -한꺼번에 -한낮 -한눈 -한동안 -한때 -한라산 -한마디 -한문 -한번 -한복 -한식 -한여름 -한쪽 -할머니 -할아버지 -할인 -함께 -함부로 -합격 -합리적 -항공 -항구 -항상 -항의 -해결 -해군 -해답 -해당 -해물 -해석 -해설 -해수욕장 -해안 -핵심 -핸드백 -햄버거 -햇볕 -햇살 -행동 -행복 -행사 -행운 -행위 -향기 -향상 -향수 -허락 -허용 -헬기 -현관 -현금 -현대 -현상 -현실 -현장 -현재 -현지 -혈액 -협력 -형부 -형사 -형수 -형식 -형제 -형태 -형편 -혜택 -호기심 -호남 -호랑이 -호박 -호텔 -호흡 -혹시 -홀로 -홈페이지 -홍보 -홍수 -홍차 -화면 -화분 -화살 -화요일 -화장 -화학 -확보 -확인 -확장 -확정 -환갑 -환경 -환영 -환율 -환자 -활기 -활동 -활발히 -활용 -활짝 -회견 -회관 -회복 -회색 -회원 -회장 -회전 -횟수 -횡단보도 -효율적 -후반 -후춧가루 -훈련 -훨씬 -휴식 -휴일 -흉내 -흐름 -흑백 -흑인 -흔적 -흔히 -흥미 -흥분 -희곡 -희망 -희생 -흰색 -힘껏`.split('\n'); -//# sourceMappingURL=korean.js.map \ No newline at end of file diff --git a/node_modules/@scure/bip39/esm/wordlists/korean.js.map b/node_modules/@scure/bip39/esm/wordlists/korean.js.map deleted file mode 100644 index 082def04..00000000 --- a/node_modules/@scure/bip39/esm/wordlists/korean.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"korean.js","sourceRoot":"","sources":["../../src/wordlists/korean.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,QAAQ,GAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;OA+/D3B,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@scure/bip39/esm/wordlists/simplified-chinese.js b/node_modules/@scure/bip39/esm/wordlists/simplified-chinese.js deleted file mode 100644 index bb5512d6..00000000 --- a/node_modules/@scure/bip39/esm/wordlists/simplified-chinese.js +++ /dev/null @@ -1,2049 +0,0 @@ -export const wordlist = `的 -一 -是 -在 -不 -了 -有 -和 -人 -这 -中 -大 -为 -上 -个 -国 -我 -以 -要 -他 -时 -来 -用 -们 -生 -到 -作 -地 -于 -出 -就 -分 -对 -成 -会 -可 -主 -发 -年 -动 -同 -工 -也 -能 -下 -过 -子 -说 -产 -种 -面 -而 -方 -后 -多 -定 -行 -学 -法 -所 -民 -得 -经 -十 -三 -之 -进 -着 -等 -部 -度 -家 -电 -力 -里 -如 -水 -化 -高 -自 -二 -理 -起 -小 -物 -现 -实 -加 -量 -都 -两 -体 -制 -机 -当 -使 -点 -从 -业 -本 -去 -把 -性 -好 -应 -开 -它 -合 -还 -因 -由 -其 -些 -然 -前 -外 -天 -政 -四 -日 -那 -社 -义 -事 -平 -形 -相 -全 -表 -间 -样 -与 -关 -各 -重 -新 -线 -内 -数 -正 -心 -反 -你 -明 -看 -原 -又 -么 -利 -比 -或 -但 -质 -气 -第 -向 -道 -命 -此 -变 -条 -只 -没 -结 -解 -问 -意 -建 -月 -公 -无 -系 -军 -很 -情 -者 -最 -立 -代 -想 -已 -通 -并 -提 -直 -题 -党 -程 -展 -五 -果 -料 -象 -员 -革 -位 -入 -常 -文 -总 -次 -品 -式 -活 -设 -及 -管 -特 -件 -长 -求 -老 -头 -基 -资 -边 -流 -路 -级 -少 -图 -山 -统 -接 -知 -较 -将 -组 -见 -计 -别 -她 -手 -角 -期 -根 -论 -运 -农 -指 -几 -九 -区 -强 -放 -决 -西 -被 -干 -做 -必 -战 -先 -回 -则 -任 -取 -据 -处 -队 -南 -给 -色 -光 -门 -即 -保 -治 -北 -造 -百 -规 -热 -领 -七 -海 -口 -东 -导 -器 -压 -志 -世 -金 -增 -争 -济 -阶 -油 -思 -术 -极 -交 -受 -联 -什 -认 -六 -共 -权 -收 -证 -改 -清 -美 -再 -采 -转 -更 -单 -风 -切 -打 -白 -教 -速 -花 -带 -安 -场 -身 -车 -例 -真 -务 -具 -万 -每 -目 -至 -达 -走 -积 -示 -议 -声 -报 -斗 -完 -类 -八 -离 -华 -名 -确 -才 -科 -张 -信 -马 -节 -话 -米 -整 -空 -元 -况 -今 -集 -温 -传 -土 -许 -步 -群 -广 -石 -记 -需 -段 -研 -界 -拉 -林 -律 -叫 -且 -究 -观 -越 -织 -装 -影 -算 -低 -持 -音 -众 -书 -布 -复 -容 -儿 -须 -际 -商 -非 -验 -连 -断 -深 -难 -近 -矿 -千 -周 -委 -素 -技 -备 -半 -办 -青 -省 -列 -习 -响 -约 -支 -般 -史 -感 -劳 -便 -团 -往 -酸 -历 -市 -克 -何 -除 -消 -构 -府 -称 -太 -准 -精 -值 -号 -率 -族 -维 -划 -选 -标 -写 -存 -候 -毛 -亲 -快 -效 -斯 -院 -查 -江 -型 -眼 -王 -按 -格 -养 -易 -置 -派 -层 -片 -始 -却 -专 -状 -育 -厂 -京 -识 -适 -属 -圆 -包 -火 -住 -调 -满 -县 -局 -照 -参 -红 -细 -引 -听 -该 -铁 -价 -严 -首 -底 -液 -官 -德 -随 -病 -苏 -失 -尔 -死 -讲 -配 -女 -黄 -推 -显 -谈 -罪 -神 -艺 -呢 -席 -含 -企 -望 -密 -批 -营 -项 -防 -举 -球 -英 -氧 -势 -告 -李 -台 -落 -木 -帮 -轮 -破 -亚 -师 -围 -注 -远 -字 -材 -排 -供 -河 -态 -封 -另 -施 -减 -树 -溶 -怎 -止 -案 -言 -士 -均 -武 -固 -叶 -鱼 -波 -视 -仅 -费 -紧 -爱 -左 -章 -早 -朝 -害 -续 -轻 -服 -试 -食 -充 -兵 -源 -判 -护 -司 -足 -某 -练 -差 -致 -板 -田 -降 -黑 -犯 -负 -击 -范 -继 -兴 -似 -余 -坚 -曲 -输 -修 -故 -城 -夫 -够 -送 -笔 -船 -占 -右 -财 -吃 -富 -春 -职 -觉 -汉 -画 -功 -巴 -跟 -虽 -杂 -飞 -检 -吸 -助 -升 -阳 -互 -初 -创 -抗 -考 -投 -坏 -策 -古 -径 -换 -未 -跑 -留 -钢 -曾 -端 -责 -站 -简 -述 -钱 -副 -尽 -帝 -射 -草 -冲 -承 -独 -令 -限 -阿 -宣 -环 -双 -请 -超 -微 -让 -控 -州 -良 -轴 -找 -否 -纪 -益 -依 -优 -顶 -础 -载 -倒 -房 -突 -坐 -粉 -敌 -略 -客 -袁 -冷 -胜 -绝 -析 -块 -剂 -测 -丝 -协 -诉 -念 -陈 -仍 -罗 -盐 -友 -洋 -错 -苦 -夜 -刑 -移 -频 -逐 -靠 -混 -母 -短 -皮 -终 -聚 -汽 -村 -云 -哪 -既 -距 -卫 -停 -烈 -央 -察 -烧 -迅 -境 -若 -印 -洲 -刻 -括 -激 -孔 -搞 -甚 -室 -待 -核 -校 -散 -侵 -吧 -甲 -游 -久 -菜 -味 -旧 -模 -湖 -货 -损 -预 -阻 -毫 -普 -稳 -乙 -妈 -植 -息 -扩 -银 -语 -挥 -酒 -守 -拿 -序 -纸 -医 -缺 -雨 -吗 -针 -刘 -啊 -急 -唱 -误 -训 -愿 -审 -附 -获 -茶 -鲜 -粮 -斤 -孩 -脱 -硫 -肥 -善 -龙 -演 -父 -渐 -血 -欢 -械 -掌 -歌 -沙 -刚 -攻 -谓 -盾 -讨 -晚 -粒 -乱 -燃 -矛 -乎 -杀 -药 -宁 -鲁 -贵 -钟 -煤 -读 -班 -伯 -香 -介 -迫 -句 -丰 -培 -握 -兰 -担 -弦 -蛋 -沉 -假 -穿 -执 -答 -乐 -谁 -顺 -烟 -缩 -征 -脸 -喜 -松 -脚 -困 -异 -免 -背 -星 -福 -买 -染 -井 -概 -慢 -怕 -磁 -倍 -祖 -皇 -促 -静 -补 -评 -翻 -肉 -践 -尼 -衣 -宽 -扬 -棉 -希 -伤 -操 -垂 -秋 -宜 -氢 -套 -督 -振 -架 -亮 -末 -宪 -庆 -编 -牛 -触 -映 -雷 -销 -诗 -座 -居 -抓 -裂 -胞 -呼 -娘 -景 -威 -绿 -晶 -厚 -盟 -衡 -鸡 -孙 -延 -危 -胶 -屋 -乡 -临 -陆 -顾 -掉 -呀 -灯 -岁 -措 -束 -耐 -剧 -玉 -赵 -跳 -哥 -季 -课 -凯 -胡 -额 -款 -绍 -卷 -齐 -伟 -蒸 -殖 -永 -宗 -苗 -川 -炉 -岩 -弱 -零 -杨 -奏 -沿 -露 -杆 -探 -滑 -镇 -饭 -浓 -航 -怀 -赶 -库 -夺 -伊 -灵 -税 -途 -灭 -赛 -归 -召 -鼓 -播 -盘 -裁 -险 -康 -唯 -录 -菌 -纯 -借 -糖 -盖 -横 -符 -私 -努 -堂 -域 -枪 -润 -幅 -哈 -竟 -熟 -虫 -泽 -脑 -壤 -碳 -欧 -遍 -侧 -寨 -敢 -彻 -虑 -斜 -薄 -庭 -纳 -弹 -饲 -伸 -折 -麦 -湿 -暗 -荷 -瓦 -塞 -床 -筑 -恶 -户 -访 -塔 -奇 -透 -梁 -刀 -旋 -迹 -卡 -氯 -遇 -份 -毒 -泥 -退 -洗 -摆 -灰 -彩 -卖 -耗 -夏 -择 -忙 -铜 -献 -硬 -予 -繁 -圈 -雪 -函 -亦 -抽 -篇 -阵 -阴 -丁 -尺 -追 -堆 -雄 -迎 -泛 -爸 -楼 -避 -谋 -吨 -野 -猪 -旗 -累 -偏 -典 -馆 -索 -秦 -脂 -潮 -爷 -豆 -忽 -托 -惊 -塑 -遗 -愈 -朱 -替 -纤 -粗 -倾 -尚 -痛 -楚 -谢 -奋 -购 -磨 -君 -池 -旁 -碎 -骨 -监 -捕 -弟 -暴 -割 -贯 -殊 -释 -词 -亡 -壁 -顿 -宝 -午 -尘 -闻 -揭 -炮 -残 -冬 -桥 -妇 -警 -综 -招 -吴 -付 -浮 -遭 -徐 -您 -摇 -谷 -赞 -箱 -隔 -订 -男 -吹 -园 -纷 -唐 -败 -宋 -玻 -巨 -耕 -坦 -荣 -闭 -湾 -键 -凡 -驻 -锅 -救 -恩 -剥 -凝 -碱 -齿 -截 -炼 -麻 -纺 -禁 -废 -盛 -版 -缓 -净 -睛 -昌 -婚 -涉 -筒 -嘴 -插 -岸 -朗 -庄 -街 -藏 -姑 -贸 -腐 -奴 -啦 -惯 -乘 -伙 -恢 -匀 -纱 -扎 -辩 -耳 -彪 -臣 -亿 -璃 -抵 -脉 -秀 -萨 -俄 -网 -舞 -店 -喷 -纵 -寸 -汗 -挂 -洪 -贺 -闪 -柬 -爆 -烯 -津 -稻 -墙 -软 -勇 -像 -滚 -厘 -蒙 -芳 -肯 -坡 -柱 -荡 -腿 -仪 -旅 -尾 -轧 -冰 -贡 -登 -黎 -削 -钻 -勒 -逃 -障 -氨 -郭 -峰 -币 -港 -伏 -轨 -亩 -毕 -擦 -莫 -刺 -浪 -秘 -援 -株 -健 -售 -股 -岛 -甘 -泡 -睡 -童 -铸 -汤 -阀 -休 -汇 -舍 -牧 -绕 -炸 -哲 -磷 -绩 -朋 -淡 -尖 -启 -陷 -柴 -呈 -徒 -颜 -泪 -稍 -忘 -泵 -蓝 -拖 -洞 -授 -镜 -辛 -壮 -锋 -贫 -虚 -弯 -摩 -泰 -幼 -廷 -尊 -窗 -纲 -弄 -隶 -疑 -氏 -宫 -姐 -震 -瑞 -怪 -尤 -琴 -循 -描 -膜 -违 -夹 -腰 -缘 -珠 -穷 -森 -枝 -竹 -沟 -催 -绳 -忆 -邦 -剩 -幸 -浆 -栏 -拥 -牙 -贮 -礼 -滤 -钠 -纹 -罢 -拍 -咱 -喊 -袖 -埃 -勤 -罚 -焦 -潜 -伍 -墨 -欲 -缝 -姓 -刊 -饱 -仿 -奖 -铝 -鬼 -丽 -跨 -默 -挖 -链 -扫 -喝 -袋 -炭 -污 -幕 -诸 -弧 -励 -梅 -奶 -洁 -灾 -舟 -鉴 -苯 -讼 -抱 -毁 -懂 -寒 -智 -埔 -寄 -届 -跃 -渡 -挑 -丹 -艰 -贝 -碰 -拔 -爹 -戴 -码 -梦 -芽 -熔 -赤 -渔 -哭 -敬 -颗 -奔 -铅 -仲 -虎 -稀 -妹 -乏 -珍 -申 -桌 -遵 -允 -隆 -螺 -仓 -魏 -锐 -晓 -氮 -兼 -隐 -碍 -赫 -拨 -忠 -肃 -缸 -牵 -抢 -博 -巧 -壳 -兄 -杜 -讯 -诚 -碧 -祥 -柯 -页 -巡 -矩 -悲 -灌 -龄 -伦 -票 -寻 -桂 -铺 -圣 -恐 -恰 -郑 -趣 -抬 -荒 -腾 -贴 -柔 -滴 -猛 -阔 -辆 -妻 -填 -撤 -储 -签 -闹 -扰 -紫 -砂 -递 -戏 -吊 -陶 -伐 -喂 -疗 -瓶 -婆 -抚 -臂 -摸 -忍 -虾 -蜡 -邻 -胸 -巩 -挤 -偶 -弃 -槽 -劲 -乳 -邓 -吉 -仁 -烂 -砖 -租 -乌 -舰 -伴 -瓜 -浅 -丙 -暂 -燥 -橡 -柳 -迷 -暖 -牌 -秧 -胆 -详 -簧 -踏 -瓷 -谱 -呆 -宾 -糊 -洛 -辉 -愤 -竞 -隙 -怒 -粘 -乃 -绪 -肩 -籍 -敏 -涂 -熙 -皆 -侦 -悬 -掘 -享 -纠 -醒 -狂 -锁 -淀 -恨 -牲 -霸 -爬 -赏 -逆 -玩 -陵 -祝 -秒 -浙 -貌 -役 -彼 -悉 -鸭 -趋 -凤 -晨 -畜 -辈 -秩 -卵 -署 -梯 -炎 -滩 -棋 -驱 -筛 -峡 -冒 -啥 -寿 -译 -浸 -泉 -帽 -迟 -硅 -疆 -贷 -漏 -稿 -冠 -嫩 -胁 -芯 -牢 -叛 -蚀 -奥 -鸣 -岭 -羊 -凭 -串 -塘 -绘 -酵 -融 -盆 -锡 -庙 -筹 -冻 -辅 -摄 -袭 -筋 -拒 -僚 -旱 -钾 -鸟 -漆 -沈 -眉 -疏 -添 -棒 -穗 -硝 -韩 -逼 -扭 -侨 -凉 -挺 -碗 -栽 -炒 -杯 -患 -馏 -劝 -豪 -辽 -勃 -鸿 -旦 -吏 -拜 -狗 -埋 -辊 -掩 -饮 -搬 -骂 -辞 -勾 -扣 -估 -蒋 -绒 -雾 -丈 -朵 -姆 -拟 -宇 -辑 -陕 -雕 -偿 -蓄 -崇 -剪 -倡 -厅 -咬 -驶 -薯 -刷 -斥 -番 -赋 -奉 -佛 -浇 -漫 -曼 -扇 -钙 -桃 -扶 -仔 -返 -俗 -亏 -腔 -鞋 -棱 -覆 -框 -悄 -叔 -撞 -骗 -勘 -旺 -沸 -孤 -吐 -孟 -渠 -屈 -疾 -妙 -惜 -仰 -狠 -胀 -谐 -抛 -霉 -桑 -岗 -嘛 -衰 -盗 -渗 -脏 -赖 -涌 -甜 -曹 -阅 -肌 -哩 -厉 -烃 -纬 -毅 -昨 -伪 -症 -煮 -叹 -钉 -搭 -茎 -笼 -酷 -偷 -弓 -锥 -恒 -杰 -坑 -鼻 -翼 -纶 -叙 -狱 -逮 -罐 -络 -棚 -抑 -膨 -蔬 -寺 -骤 -穆 -冶 -枯 -册 -尸 -凸 -绅 -坯 -牺 -焰 -轰 -欣 -晋 -瘦 -御 -锭 -锦 -丧 -旬 -锻 -垄 -搜 -扑 -邀 -亭 -酯 -迈 -舒 -脆 -酶 -闲 -忧 -酚 -顽 -羽 -涨 -卸 -仗 -陪 -辟 -惩 -杭 -姚 -肚 -捉 -飘 -漂 -昆 -欺 -吾 -郎 -烷 -汁 -呵 -饰 -萧 -雅 -邮 -迁 -燕 -撒 -姻 -赴 -宴 -烦 -债 -帐 -斑 -铃 -旨 -醇 -董 -饼 -雏 -姿 -拌 -傅 -腹 -妥 -揉 -贤 -拆 -歪 -葡 -胺 -丢 -浩 -徽 -昂 -垫 -挡 -览 -贪 -慰 -缴 -汪 -慌 -冯 -诺 -姜 -谊 -凶 -劣 -诬 -耀 -昏 -躺 -盈 -骑 -乔 -溪 -丛 -卢 -抹 -闷 -咨 -刮 -驾 -缆 -悟 -摘 -铒 -掷 -颇 -幻 -柄 -惠 -惨 -佳 -仇 -腊 -窝 -涤 -剑 -瞧 -堡 -泼 -葱 -罩 -霍 -捞 -胎 -苍 -滨 -俩 -捅 -湘 -砍 -霞 -邵 -萄 -疯 -淮 -遂 -熊 -粪 -烘 -宿 -档 -戈 -驳 -嫂 -裕 -徙 -箭 -捐 -肠 -撑 -晒 -辨 -殿 -莲 -摊 -搅 -酱 -屏 -疫 -哀 -蔡 -堵 -沫 -皱 -畅 -叠 -阁 -莱 -敲 -辖 -钩 -痕 -坝 -巷 -饿 -祸 -丘 -玄 -溜 -曰 -逻 -彭 -尝 -卿 -妨 -艇 -吞 -韦 -怨 -矮 -歇`.split('\n'); -//# sourceMappingURL=simplified-chinese.js.map \ No newline at end of file diff --git a/node_modules/@scure/bip39/esm/wordlists/simplified-chinese.js.map b/node_modules/@scure/bip39/esm/wordlists/simplified-chinese.js.map deleted file mode 100644 index 99ab9caf..00000000 --- a/node_modules/@scure/bip39/esm/wordlists/simplified-chinese.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"simplified-chinese.js","sourceRoot":"","sources":["../../src/wordlists/simplified-chinese.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,QAAQ,GAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+/DhC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@scure/bip39/esm/wordlists/spanish.js b/node_modules/@scure/bip39/esm/wordlists/spanish.js deleted file mode 100644 index afd6c53e..00000000 --- a/node_modules/@scure/bip39/esm/wordlists/spanish.js +++ /dev/null @@ -1,2049 +0,0 @@ -export const wordlist = `ábaco -abdomen -abeja -abierto -abogado -abono -aborto -abrazo -abrir -abuelo -abuso -acabar -academia -acceso -acción -aceite -acelga -acento -aceptar -ácido -aclarar -acné -acoger -acoso -activo -acto -actriz -actuar -acudir -acuerdo -acusar -adicto -admitir -adoptar -adorno -aduana -adulto -aéreo -afectar -afición -afinar -afirmar -ágil -agitar -agonía -agosto -agotar -agregar -agrio -agua -agudo -águila -aguja -ahogo -ahorro -aire -aislar -ajedrez -ajeno -ajuste -alacrán -alambre -alarma -alba -álbum -alcalde -aldea -alegre -alejar -alerta -aleta -alfiler -alga -algodón -aliado -aliento -alivio -alma -almeja -almíbar -altar -alteza -altivo -alto -altura -alumno -alzar -amable -amante -amapola -amargo -amasar -ámbar -ámbito -ameno -amigo -amistad -amor -amparo -amplio -ancho -anciano -ancla -andar -andén -anemia -ángulo -anillo -ánimo -anís -anotar -antena -antiguo -antojo -anual -anular -anuncio -añadir -añejo -año -apagar -aparato -apetito -apio -aplicar -apodo -aporte -apoyo -aprender -aprobar -apuesta -apuro -arado -araña -arar -árbitro -árbol -arbusto -archivo -arco -arder -ardilla -arduo -área -árido -aries -armonía -arnés -aroma -arpa -arpón -arreglo -arroz -arruga -arte -artista -asa -asado -asalto -ascenso -asegurar -aseo -asesor -asiento -asilo -asistir -asno -asombro -áspero -astilla -astro -astuto -asumir -asunto -atajo -ataque -atar -atento -ateo -ático -atleta -átomo -atraer -atroz -atún -audaz -audio -auge -aula -aumento -ausente -autor -aval -avance -avaro -ave -avellana -avena -avestruz -avión -aviso -ayer -ayuda -ayuno -azafrán -azar -azote -azúcar -azufre -azul -baba -babor -bache -bahía -baile -bajar -balanza -balcón -balde -bambú -banco -banda -baño -barba -barco -barniz -barro -báscula -bastón -basura -batalla -batería -batir -batuta -baúl -bazar -bebé -bebida -bello -besar -beso -bestia -bicho -bien -bingo -blanco -bloque -blusa -boa -bobina -bobo -boca -bocina -boda -bodega -boina -bola -bolero -bolsa -bomba -bondad -bonito -bono -bonsái -borde -borrar -bosque -bote -botín -bóveda -bozal -bravo -brazo -brecha -breve -brillo -brinco -brisa -broca -broma -bronce -brote -bruja -brusco -bruto -buceo -bucle -bueno -buey -bufanda -bufón -búho -buitre -bulto -burbuja -burla -burro -buscar -butaca -buzón -caballo -cabeza -cabina -cabra -cacao -cadáver -cadena -caer -café -caída -caimán -caja -cajón -cal -calamar -calcio -caldo -calidad -calle -calma -calor -calvo -cama -cambio -camello -camino -campo -cáncer -candil -canela -canguro -canica -canto -caña -cañón -caoba -caos -capaz -capitán -capote -captar -capucha -cara -carbón -cárcel -careta -carga -cariño -carne -carpeta -carro -carta -casa -casco -casero -caspa -castor -catorce -catre -caudal -causa -cazo -cebolla -ceder -cedro -celda -célebre -celoso -célula -cemento -ceniza -centro -cerca -cerdo -cereza -cero -cerrar -certeza -césped -cetro -chacal -chaleco -champú -chancla -chapa -charla -chico -chiste -chivo -choque -choza -chuleta -chupar -ciclón -ciego -cielo -cien -cierto -cifra -cigarro -cima -cinco -cine -cinta -ciprés -circo -ciruela -cisne -cita -ciudad -clamor -clan -claro -clase -clave -cliente -clima -clínica -cobre -cocción -cochino -cocina -coco -código -codo -cofre -coger -cohete -cojín -cojo -cola -colcha -colegio -colgar -colina -collar -colmo -columna -combate -comer -comida -cómodo -compra -conde -conejo -conga -conocer -consejo -contar -copa -copia -corazón -corbata -corcho -cordón -corona -correr -coser -cosmos -costa -cráneo -cráter -crear -crecer -creído -crema -cría -crimen -cripta -crisis -cromo -crónica -croqueta -crudo -cruz -cuadro -cuarto -cuatro -cubo -cubrir -cuchara -cuello -cuento -cuerda -cuesta -cueva -cuidar -culebra -culpa -culto -cumbre -cumplir -cuna -cuneta -cuota -cupón -cúpula -curar -curioso -curso -curva -cutis -dama -danza -dar -dardo -dátil -deber -débil -década -decir -dedo -defensa -definir -dejar -delfín -delgado -delito -demora -denso -dental -deporte -derecho -derrota -desayuno -deseo -desfile -desnudo -destino -desvío -detalle -detener -deuda -día -diablo -diadema -diamante -diana -diario -dibujo -dictar -diente -dieta -diez -difícil -digno -dilema -diluir -dinero -directo -dirigir -disco -diseño -disfraz -diva -divino -doble -doce -dolor -domingo -don -donar -dorado -dormir -dorso -dos -dosis -dragón -droga -ducha -duda -duelo -dueño -dulce -dúo -duque -durar -dureza -duro -ébano -ebrio -echar -eco -ecuador -edad -edición -edificio -editor -educar -efecto -eficaz -eje -ejemplo -elefante -elegir -elemento -elevar -elipse -élite -elixir -elogio -eludir -embudo -emitir -emoción -empate -empeño -empleo -empresa -enano -encargo -enchufe -encía -enemigo -enero -enfado -enfermo -engaño -enigma -enlace -enorme -enredo -ensayo -enseñar -entero -entrar -envase -envío -época -equipo -erizo -escala -escena -escolar -escribir -escudo -esencia -esfera -esfuerzo -espada -espejo -espía -esposa -espuma -esquí -estar -este -estilo -estufa -etapa -eterno -ética -etnia -evadir -evaluar -evento -evitar -exacto -examen -exceso -excusa -exento -exigir -exilio -existir -éxito -experto -explicar -exponer -extremo -fábrica -fábula -fachada -fácil -factor -faena -faja -falda -fallo -falso -faltar -fama -familia -famoso -faraón -farmacia -farol -farsa -fase -fatiga -fauna -favor -fax -febrero -fecha -feliz -feo -feria -feroz -fértil -fervor -festín -fiable -fianza -fiar -fibra -ficción -ficha -fideo -fiebre -fiel -fiera -fiesta -figura -fijar -fijo -fila -filete -filial -filtro -fin -finca -fingir -finito -firma -flaco -flauta -flecha -flor -flota -fluir -flujo -flúor -fobia -foca -fogata -fogón -folio -folleto -fondo -forma -forro -fortuna -forzar -fosa -foto -fracaso -frágil -franja -frase -fraude -freír -freno -fresa -frío -frito -fruta -fuego -fuente -fuerza -fuga -fumar -función -funda -furgón -furia -fusil -fútbol -futuro -gacela -gafas -gaita -gajo -gala -galería -gallo -gamba -ganar -gancho -ganga -ganso -garaje -garza -gasolina -gastar -gato -gavilán -gemelo -gemir -gen -género -genio -gente -geranio -gerente -germen -gesto -gigante -gimnasio -girar -giro -glaciar -globo -gloria -gol -golfo -goloso -golpe -goma -gordo -gorila -gorra -gota -goteo -gozar -grada -gráfico -grano -grasa -gratis -grave -grieta -grillo -gripe -gris -grito -grosor -grúa -grueso -grumo -grupo -guante -guapo -guardia -guerra -guía -guiño -guion -guiso -guitarra -gusano -gustar -haber -hábil -hablar -hacer -hacha -hada -hallar -hamaca -harina -haz -hazaña -hebilla -hebra -hecho -helado -helio -hembra -herir -hermano -héroe -hervir -hielo -hierro -hígado -higiene -hijo -himno -historia -hocico -hogar -hoguera -hoja -hombre -hongo -honor -honra -hora -hormiga -horno -hostil -hoyo -hueco -huelga -huerta -hueso -huevo -huida -huir -humano -húmedo -humilde -humo -hundir -huracán -hurto -icono -ideal -idioma -ídolo -iglesia -iglú -igual -ilegal -ilusión -imagen -imán -imitar -impar -imperio -imponer -impulso -incapaz -índice -inerte -infiel -informe -ingenio -inicio -inmenso -inmune -innato -insecto -instante -interés -íntimo -intuir -inútil -invierno -ira -iris -ironía -isla -islote -jabalí -jabón -jamón -jarabe -jardín -jarra -jaula -jazmín -jefe -jeringa -jinete -jornada -joroba -joven -joya -juerga -jueves -juez -jugador -jugo -juguete -juicio -junco -jungla -junio -juntar -júpiter -jurar -justo -juvenil -juzgar -kilo -koala -labio -lacio -lacra -lado -ladrón -lagarto -lágrima -laguna -laico -lamer -lámina -lámpara -lana -lancha -langosta -lanza -lápiz -largo -larva -lástima -lata -látex -latir -laurel -lavar -lazo -leal -lección -leche -lector -leer -legión -legumbre -lejano -lengua -lento -leña -león -leopardo -lesión -letal -letra -leve -leyenda -libertad -libro -licor -líder -lidiar -lienzo -liga -ligero -lima -límite -limón -limpio -lince -lindo -línea -lingote -lino -linterna -líquido -liso -lista -litera -litio -litro -llaga -llama -llanto -llave -llegar -llenar -llevar -llorar -llover -lluvia -lobo -loción -loco -locura -lógica -logro -lombriz -lomo -lonja -lote -lucha -lucir -lugar -lujo -luna -lunes -lupa -lustro -luto -luz -maceta -macho -madera -madre -maduro -maestro -mafia -magia -mago -maíz -maldad -maleta -malla -malo -mamá -mambo -mamut -manco -mando -manejar -manga -maniquí -manjar -mano -manso -manta -mañana -mapa -máquina -mar -marco -marea -marfil -margen -marido -mármol -marrón -martes -marzo -masa -máscara -masivo -matar -materia -matiz -matriz -máximo -mayor -mazorca -mecha -medalla -medio -médula -mejilla -mejor -melena -melón -memoria -menor -mensaje -mente -menú -mercado -merengue -mérito -mes -mesón -meta -meter -método -metro -mezcla -miedo -miel -miembro -miga -mil -milagro -militar -millón -mimo -mina -minero -mínimo -minuto -miope -mirar -misa -miseria -misil -mismo -mitad -mito -mochila -moción -moda -modelo -moho -mojar -molde -moler -molino -momento -momia -monarca -moneda -monja -monto -moño -morada -morder -moreno -morir -morro -morsa -mortal -mosca -mostrar -motivo -mover -móvil -mozo -mucho -mudar -mueble -muela -muerte -muestra -mugre -mujer -mula -muleta -multa -mundo -muñeca -mural -muro -músculo -museo -musgo -música -muslo -nácar -nación -nadar -naipe -naranja -nariz -narrar -nasal -natal -nativo -natural -náusea -naval -nave -navidad -necio -néctar -negar -negocio -negro -neón -nervio -neto -neutro -nevar -nevera -nicho -nido -niebla -nieto -niñez -niño -nítido -nivel -nobleza -noche -nómina -noria -norma -norte -nota -noticia -novato -novela -novio -nube -nuca -núcleo -nudillo -nudo -nuera -nueve -nuez -nulo -número -nutria -oasis -obeso -obispo -objeto -obra -obrero -observar -obtener -obvio -oca -ocaso -océano -ochenta -ocho -ocio -ocre -octavo -octubre -oculto -ocupar -ocurrir -odiar -odio -odisea -oeste -ofensa -oferta -oficio -ofrecer -ogro -oído -oír -ojo -ola -oleada -olfato -olivo -olla -olmo -olor -olvido -ombligo -onda -onza -opaco -opción -ópera -opinar -oponer -optar -óptica -opuesto -oración -orador -oral -órbita -orca -orden -oreja -órgano -orgía -orgullo -oriente -origen -orilla -oro -orquesta -oruga -osadía -oscuro -osezno -oso -ostra -otoño -otro -oveja -óvulo -óxido -oxígeno -oyente -ozono -pacto -padre -paella -página -pago -país -pájaro -palabra -palco -paleta -pálido -palma -paloma -palpar -pan -panal -pánico -pantera -pañuelo -papá -papel -papilla -paquete -parar -parcela -pared -parir -paro -párpado -parque -párrafo -parte -pasar -paseo -pasión -paso -pasta -pata -patio -patria -pausa -pauta -pavo -payaso -peatón -pecado -pecera -pecho -pedal -pedir -pegar -peine -pelar -peldaño -pelea -peligro -pellejo -pelo -peluca -pena -pensar -peñón -peón -peor -pepino -pequeño -pera -percha -perder -pereza -perfil -perico -perla -permiso -perro -persona -pesa -pesca -pésimo -pestaña -pétalo -petróleo -pez -pezuña -picar -pichón -pie -piedra -pierna -pieza -pijama -pilar -piloto -pimienta -pino -pintor -pinza -piña -piojo -pipa -pirata -pisar -piscina -piso -pista -pitón -pizca -placa -plan -plata -playa -plaza -pleito -pleno -plomo -pluma -plural -pobre -poco -poder -podio -poema -poesía -poeta -polen -policía -pollo -polvo -pomada -pomelo -pomo -pompa -poner -porción -portal -posada -poseer -posible -poste -potencia -potro -pozo -prado -precoz -pregunta -premio -prensa -preso -previo -primo -príncipe -prisión -privar -proa -probar -proceso -producto -proeza -profesor -programa -prole -promesa -pronto -propio -próximo -prueba -público -puchero -pudor -pueblo -puerta -puesto -pulga -pulir -pulmón -pulpo -pulso -puma -punto -puñal -puño -pupa -pupila -puré -quedar -queja -quemar -querer -queso -quieto -química -quince -quitar -rábano -rabia -rabo -ración -radical -raíz -rama -rampa -rancho -rango -rapaz -rápido -rapto -rasgo -raspa -rato -rayo -raza -razón -reacción -realidad -rebaño -rebote -recaer -receta -rechazo -recoger -recreo -recto -recurso -red -redondo -reducir -reflejo -reforma -refrán -refugio -regalo -regir -regla -regreso -rehén -reino -reír -reja -relato -relevo -relieve -relleno -reloj -remar -remedio -remo -rencor -rendir -renta -reparto -repetir -reposo -reptil -res -rescate -resina -respeto -resto -resumen -retiro -retorno -retrato -reunir -revés -revista -rey -rezar -rico -riego -rienda -riesgo -rifa -rígido -rigor -rincón -riñón -río -riqueza -risa -ritmo -rito -rizo -roble -roce -rociar -rodar -rodeo -rodilla -roer -rojizo -rojo -romero -romper -ron -ronco -ronda -ropa -ropero -rosa -rosca -rostro -rotar -rubí -rubor -rudo -rueda -rugir -ruido -ruina -ruleta -rulo -rumbo -rumor -ruptura -ruta -rutina -sábado -saber -sabio -sable -sacar -sagaz -sagrado -sala -saldo -salero -salir -salmón -salón -salsa -salto -salud -salvar -samba -sanción -sandía -sanear -sangre -sanidad -sano -santo -sapo -saque -sardina -sartén -sastre -satán -sauna -saxofón -sección -seco -secreto -secta -sed -seguir -seis -sello -selva -semana -semilla -senda -sensor -señal -señor -separar -sepia -sequía -ser -serie -sermón -servir -sesenta -sesión -seta -setenta -severo -sexo -sexto -sidra -siesta -siete -siglo -signo -sílaba -silbar -silencio -silla -símbolo -simio -sirena -sistema -sitio -situar -sobre -socio -sodio -sol -solapa -soldado -soledad -sólido -soltar -solución -sombra -sondeo -sonido -sonoro -sonrisa -sopa -soplar -soporte -sordo -sorpresa -sorteo -sostén -sótano -suave -subir -suceso -sudor -suegra -suelo -sueño -suerte -sufrir -sujeto -sultán -sumar -superar -suplir -suponer -supremo -sur -surco -sureño -surgir -susto -sutil -tabaco -tabique -tabla -tabú -taco -tacto -tajo -talar -talco -talento -talla -talón -tamaño -tambor -tango -tanque -tapa -tapete -tapia -tapón -taquilla -tarde -tarea -tarifa -tarjeta -tarot -tarro -tarta -tatuaje -tauro -taza -tazón -teatro -techo -tecla -técnica -tejado -tejer -tejido -tela -teléfono -tema -temor -templo -tenaz -tender -tener -tenis -tenso -teoría -terapia -terco -término -ternura -terror -tesis -tesoro -testigo -tetera -texto -tez -tibio -tiburón -tiempo -tienda -tierra -tieso -tigre -tijera -tilde -timbre -tímido -timo -tinta -tío -típico -tipo -tira -tirón -titán -títere -título -tiza -toalla -tobillo -tocar -tocino -todo -toga -toldo -tomar -tono -tonto -topar -tope -toque -tórax -torero -tormenta -torneo -toro -torpedo -torre -torso -tortuga -tos -tosco -toser -tóxico -trabajo -tractor -traer -tráfico -trago -traje -tramo -trance -trato -trauma -trazar -trébol -tregua -treinta -tren -trepar -tres -tribu -trigo -tripa -triste -triunfo -trofeo -trompa -tronco -tropa -trote -trozo -truco -trueno -trufa -tubería -tubo -tuerto -tumba -tumor -túnel -túnica -turbina -turismo -turno -tutor -ubicar -úlcera -umbral -unidad -unir -universo -uno -untar -uña -urbano -urbe -urgente -urna -usar -usuario -útil -utopía -uva -vaca -vacío -vacuna -vagar -vago -vaina -vajilla -vale -válido -valle -valor -válvula -vampiro -vara -variar -varón -vaso -vecino -vector -vehículo -veinte -vejez -vela -velero -veloz -vena -vencer -venda -veneno -vengar -venir -venta -venus -ver -verano -verbo -verde -vereda -verja -verso -verter -vía -viaje -vibrar -vicio -víctima -vida -vídeo -vidrio -viejo -viernes -vigor -vil -villa -vinagre -vino -viñedo -violín -viral -virgo -virtud -visor -víspera -vista -vitamina -viudo -vivaz -vivero -vivir -vivo -volcán -volumen -volver -voraz -votar -voto -voz -vuelo -vulgar -yacer -yate -yegua -yema -yerno -yeso -yodo -yoga -yogur -zafiro -zanja -zapato -zarza -zona -zorro -zumo -zurdo`.split('\n'); -//# sourceMappingURL=spanish.js.map \ No newline at end of file diff --git a/node_modules/@scure/bip39/esm/wordlists/spanish.js.map b/node_modules/@scure/bip39/esm/wordlists/spanish.js.map deleted file mode 100644 index 46c57044..00000000 --- a/node_modules/@scure/bip39/esm/wordlists/spanish.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"spanish.js","sourceRoot":"","sources":["../../src/wordlists/spanish.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,QAAQ,GAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MA+/D5B,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@scure/bip39/esm/wordlists/traditional-chinese.js b/node_modules/@scure/bip39/esm/wordlists/traditional-chinese.js deleted file mode 100644 index 82ca23c6..00000000 --- a/node_modules/@scure/bip39/esm/wordlists/traditional-chinese.js +++ /dev/null @@ -1,2049 +0,0 @@ -export const wordlist = `的 -一 -是 -在 -不 -了 -有 -和 -人 -這 -中 -大 -為 -上 -個 -國 -我 -以 -要 -他 -時 -來 -用 -們 -生 -到 -作 -地 -於 -出 -就 -分 -對 -成 -會 -可 -主 -發 -年 -動 -同 -工 -也 -能 -下 -過 -子 -說 -產 -種 -面 -而 -方 -後 -多 -定 -行 -學 -法 -所 -民 -得 -經 -十 -三 -之 -進 -著 -等 -部 -度 -家 -電 -力 -裡 -如 -水 -化 -高 -自 -二 -理 -起 -小 -物 -現 -實 -加 -量 -都 -兩 -體 -制 -機 -當 -使 -點 -從 -業 -本 -去 -把 -性 -好 -應 -開 -它 -合 -還 -因 -由 -其 -些 -然 -前 -外 -天 -政 -四 -日 -那 -社 -義 -事 -平 -形 -相 -全 -表 -間 -樣 -與 -關 -各 -重 -新 -線 -內 -數 -正 -心 -反 -你 -明 -看 -原 -又 -麼 -利 -比 -或 -但 -質 -氣 -第 -向 -道 -命 -此 -變 -條 -只 -沒 -結 -解 -問 -意 -建 -月 -公 -無 -系 -軍 -很 -情 -者 -最 -立 -代 -想 -已 -通 -並 -提 -直 -題 -黨 -程 -展 -五 -果 -料 -象 -員 -革 -位 -入 -常 -文 -總 -次 -品 -式 -活 -設 -及 -管 -特 -件 -長 -求 -老 -頭 -基 -資 -邊 -流 -路 -級 -少 -圖 -山 -統 -接 -知 -較 -將 -組 -見 -計 -別 -她 -手 -角 -期 -根 -論 -運 -農 -指 -幾 -九 -區 -強 -放 -決 -西 -被 -幹 -做 -必 -戰 -先 -回 -則 -任 -取 -據 -處 -隊 -南 -給 -色 -光 -門 -即 -保 -治 -北 -造 -百 -規 -熱 -領 -七 -海 -口 -東 -導 -器 -壓 -志 -世 -金 -增 -爭 -濟 -階 -油 -思 -術 -極 -交 -受 -聯 -什 -認 -六 -共 -權 -收 -證 -改 -清 -美 -再 -採 -轉 -更 -單 -風 -切 -打 -白 -教 -速 -花 -帶 -安 -場 -身 -車 -例 -真 -務 -具 -萬 -每 -目 -至 -達 -走 -積 -示 -議 -聲 -報 -鬥 -完 -類 -八 -離 -華 -名 -確 -才 -科 -張 -信 -馬 -節 -話 -米 -整 -空 -元 -況 -今 -集 -溫 -傳 -土 -許 -步 -群 -廣 -石 -記 -需 -段 -研 -界 -拉 -林 -律 -叫 -且 -究 -觀 -越 -織 -裝 -影 -算 -低 -持 -音 -眾 -書 -布 -复 -容 -兒 -須 -際 -商 -非 -驗 -連 -斷 -深 -難 -近 -礦 -千 -週 -委 -素 -技 -備 -半 -辦 -青 -省 -列 -習 -響 -約 -支 -般 -史 -感 -勞 -便 -團 -往 -酸 -歷 -市 -克 -何 -除 -消 -構 -府 -稱 -太 -準 -精 -值 -號 -率 -族 -維 -劃 -選 -標 -寫 -存 -候 -毛 -親 -快 -效 -斯 -院 -查 -江 -型 -眼 -王 -按 -格 -養 -易 -置 -派 -層 -片 -始 -卻 -專 -狀 -育 -廠 -京 -識 -適 -屬 -圓 -包 -火 -住 -調 -滿 -縣 -局 -照 -參 -紅 -細 -引 -聽 -該 -鐵 -價 -嚴 -首 -底 -液 -官 -德 -隨 -病 -蘇 -失 -爾 -死 -講 -配 -女 -黃 -推 -顯 -談 -罪 -神 -藝 -呢 -席 -含 -企 -望 -密 -批 -營 -項 -防 -舉 -球 -英 -氧 -勢 -告 -李 -台 -落 -木 -幫 -輪 -破 -亞 -師 -圍 -注 -遠 -字 -材 -排 -供 -河 -態 -封 -另 -施 -減 -樹 -溶 -怎 -止 -案 -言 -士 -均 -武 -固 -葉 -魚 -波 -視 -僅 -費 -緊 -愛 -左 -章 -早 -朝 -害 -續 -輕 -服 -試 -食 -充 -兵 -源 -判 -護 -司 -足 -某 -練 -差 -致 -板 -田 -降 -黑 -犯 -負 -擊 -范 -繼 -興 -似 -餘 -堅 -曲 -輸 -修 -故 -城 -夫 -夠 -送 -筆 -船 -佔 -右 -財 -吃 -富 -春 -職 -覺 -漢 -畫 -功 -巴 -跟 -雖 -雜 -飛 -檢 -吸 -助 -昇 -陽 -互 -初 -創 -抗 -考 -投 -壞 -策 -古 -徑 -換 -未 -跑 -留 -鋼 -曾 -端 -責 -站 -簡 -述 -錢 -副 -盡 -帝 -射 -草 -衝 -承 -獨 -令 -限 -阿 -宣 -環 -雙 -請 -超 -微 -讓 -控 -州 -良 -軸 -找 -否 -紀 -益 -依 -優 -頂 -礎 -載 -倒 -房 -突 -坐 -粉 -敵 -略 -客 -袁 -冷 -勝 -絕 -析 -塊 -劑 -測 -絲 -協 -訴 -念 -陳 -仍 -羅 -鹽 -友 -洋 -錯 -苦 -夜 -刑 -移 -頻 -逐 -靠 -混 -母 -短 -皮 -終 -聚 -汽 -村 -雲 -哪 -既 -距 -衛 -停 -烈 -央 -察 -燒 -迅 -境 -若 -印 -洲 -刻 -括 -激 -孔 -搞 -甚 -室 -待 -核 -校 -散 -侵 -吧 -甲 -遊 -久 -菜 -味 -舊 -模 -湖 -貨 -損 -預 -阻 -毫 -普 -穩 -乙 -媽 -植 -息 -擴 -銀 -語 -揮 -酒 -守 -拿 -序 -紙 -醫 -缺 -雨 -嗎 -針 -劉 -啊 -急 -唱 -誤 -訓 -願 -審 -附 -獲 -茶 -鮮 -糧 -斤 -孩 -脫 -硫 -肥 -善 -龍 -演 -父 -漸 -血 -歡 -械 -掌 -歌 -沙 -剛 -攻 -謂 -盾 -討 -晚 -粒 -亂 -燃 -矛 -乎 -殺 -藥 -寧 -魯 -貴 -鐘 -煤 -讀 -班 -伯 -香 -介 -迫 -句 -豐 -培 -握 -蘭 -擔 -弦 -蛋 -沉 -假 -穿 -執 -答 -樂 -誰 -順 -煙 -縮 -徵 -臉 -喜 -松 -腳 -困 -異 -免 -背 -星 -福 -買 -染 -井 -概 -慢 -怕 -磁 -倍 -祖 -皇 -促 -靜 -補 -評 -翻 -肉 -踐 -尼 -衣 -寬 -揚 -棉 -希 -傷 -操 -垂 -秋 -宜 -氫 -套 -督 -振 -架 -亮 -末 -憲 -慶 -編 -牛 -觸 -映 -雷 -銷 -詩 -座 -居 -抓 -裂 -胞 -呼 -娘 -景 -威 -綠 -晶 -厚 -盟 -衡 -雞 -孫 -延 -危 -膠 -屋 -鄉 -臨 -陸 -顧 -掉 -呀 -燈 -歲 -措 -束 -耐 -劇 -玉 -趙 -跳 -哥 -季 -課 -凱 -胡 -額 -款 -紹 -卷 -齊 -偉 -蒸 -殖 -永 -宗 -苗 -川 -爐 -岩 -弱 -零 -楊 -奏 -沿 -露 -桿 -探 -滑 -鎮 -飯 -濃 -航 -懷 -趕 -庫 -奪 -伊 -靈 -稅 -途 -滅 -賽 -歸 -召 -鼓 -播 -盤 -裁 -險 -康 -唯 -錄 -菌 -純 -借 -糖 -蓋 -橫 -符 -私 -努 -堂 -域 -槍 -潤 -幅 -哈 -竟 -熟 -蟲 -澤 -腦 -壤 -碳 -歐 -遍 -側 -寨 -敢 -徹 -慮 -斜 -薄 -庭 -納 -彈 -飼 -伸 -折 -麥 -濕 -暗 -荷 -瓦 -塞 -床 -築 -惡 -戶 -訪 -塔 -奇 -透 -梁 -刀 -旋 -跡 -卡 -氯 -遇 -份 -毒 -泥 -退 -洗 -擺 -灰 -彩 -賣 -耗 -夏 -擇 -忙 -銅 -獻 -硬 -予 -繁 -圈 -雪 -函 -亦 -抽 -篇 -陣 -陰 -丁 -尺 -追 -堆 -雄 -迎 -泛 -爸 -樓 -避 -謀 -噸 -野 -豬 -旗 -累 -偏 -典 -館 -索 -秦 -脂 -潮 -爺 -豆 -忽 -托 -驚 -塑 -遺 -愈 -朱 -替 -纖 -粗 -傾 -尚 -痛 -楚 -謝 -奮 -購 -磨 -君 -池 -旁 -碎 -骨 -監 -捕 -弟 -暴 -割 -貫 -殊 -釋 -詞 -亡 -壁 -頓 -寶 -午 -塵 -聞 -揭 -炮 -殘 -冬 -橋 -婦 -警 -綜 -招 -吳 -付 -浮 -遭 -徐 -您 -搖 -谷 -贊 -箱 -隔 -訂 -男 -吹 -園 -紛 -唐 -敗 -宋 -玻 -巨 -耕 -坦 -榮 -閉 -灣 -鍵 -凡 -駐 -鍋 -救 -恩 -剝 -凝 -鹼 -齒 -截 -煉 -麻 -紡 -禁 -廢 -盛 -版 -緩 -淨 -睛 -昌 -婚 -涉 -筒 -嘴 -插 -岸 -朗 -莊 -街 -藏 -姑 -貿 -腐 -奴 -啦 -慣 -乘 -夥 -恢 -勻 -紗 -扎 -辯 -耳 -彪 -臣 -億 -璃 -抵 -脈 -秀 -薩 -俄 -網 -舞 -店 -噴 -縱 -寸 -汗 -掛 -洪 -賀 -閃 -柬 -爆 -烯 -津 -稻 -牆 -軟 -勇 -像 -滾 -厘 -蒙 -芳 -肯 -坡 -柱 -盪 -腿 -儀 -旅 -尾 -軋 -冰 -貢 -登 -黎 -削 -鑽 -勒 -逃 -障 -氨 -郭 -峰 -幣 -港 -伏 -軌 -畝 -畢 -擦 -莫 -刺 -浪 -秘 -援 -株 -健 -售 -股 -島 -甘 -泡 -睡 -童 -鑄 -湯 -閥 -休 -匯 -舍 -牧 -繞 -炸 -哲 -磷 -績 -朋 -淡 -尖 -啟 -陷 -柴 -呈 -徒 -顏 -淚 -稍 -忘 -泵 -藍 -拖 -洞 -授 -鏡 -辛 -壯 -鋒 -貧 -虛 -彎 -摩 -泰 -幼 -廷 -尊 -窗 -綱 -弄 -隸 -疑 -氏 -宮 -姐 -震 -瑞 -怪 -尤 -琴 -循 -描 -膜 -違 -夾 -腰 -緣 -珠 -窮 -森 -枝 -竹 -溝 -催 -繩 -憶 -邦 -剩 -幸 -漿 -欄 -擁 -牙 -貯 -禮 -濾 -鈉 -紋 -罷 -拍 -咱 -喊 -袖 -埃 -勤 -罰 -焦 -潛 -伍 -墨 -欲 -縫 -姓 -刊 -飽 -仿 -獎 -鋁 -鬼 -麗 -跨 -默 -挖 -鏈 -掃 -喝 -袋 -炭 -污 -幕 -諸 -弧 -勵 -梅 -奶 -潔 -災 -舟 -鑑 -苯 -訟 -抱 -毀 -懂 -寒 -智 -埔 -寄 -屆 -躍 -渡 -挑 -丹 -艱 -貝 -碰 -拔 -爹 -戴 -碼 -夢 -芽 -熔 -赤 -漁 -哭 -敬 -顆 -奔 -鉛 -仲 -虎 -稀 -妹 -乏 -珍 -申 -桌 -遵 -允 -隆 -螺 -倉 -魏 -銳 -曉 -氮 -兼 -隱 -礙 -赫 -撥 -忠 -肅 -缸 -牽 -搶 -博 -巧 -殼 -兄 -杜 -訊 -誠 -碧 -祥 -柯 -頁 -巡 -矩 -悲 -灌 -齡 -倫 -票 -尋 -桂 -鋪 -聖 -恐 -恰 -鄭 -趣 -抬 -荒 -騰 -貼 -柔 -滴 -猛 -闊 -輛 -妻 -填 -撤 -儲 -簽 -鬧 -擾 -紫 -砂 -遞 -戲 -吊 -陶 -伐 -餵 -療 -瓶 -婆 -撫 -臂 -摸 -忍 -蝦 -蠟 -鄰 -胸 -鞏 -擠 -偶 -棄 -槽 -勁 -乳 -鄧 -吉 -仁 -爛 -磚 -租 -烏 -艦 -伴 -瓜 -淺 -丙 -暫 -燥 -橡 -柳 -迷 -暖 -牌 -秧 -膽 -詳 -簧 -踏 -瓷 -譜 -呆 -賓 -糊 -洛 -輝 -憤 -競 -隙 -怒 -粘 -乃 -緒 -肩 -籍 -敏 -塗 -熙 -皆 -偵 -懸 -掘 -享 -糾 -醒 -狂 -鎖 -淀 -恨 -牲 -霸 -爬 -賞 -逆 -玩 -陵 -祝 -秒 -浙 -貌 -役 -彼 -悉 -鴨 -趨 -鳳 -晨 -畜 -輩 -秩 -卵 -署 -梯 -炎 -灘 -棋 -驅 -篩 -峽 -冒 -啥 -壽 -譯 -浸 -泉 -帽 -遲 -矽 -疆 -貸 -漏 -稿 -冠 -嫩 -脅 -芯 -牢 -叛 -蝕 -奧 -鳴 -嶺 -羊 -憑 -串 -塘 -繪 -酵 -融 -盆 -錫 -廟 -籌 -凍 -輔 -攝 -襲 -筋 -拒 -僚 -旱 -鉀 -鳥 -漆 -沈 -眉 -疏 -添 -棒 -穗 -硝 -韓 -逼 -扭 -僑 -涼 -挺 -碗 -栽 -炒 -杯 -患 -餾 -勸 -豪 -遼 -勃 -鴻 -旦 -吏 -拜 -狗 -埋 -輥 -掩 -飲 -搬 -罵 -辭 -勾 -扣 -估 -蔣 -絨 -霧 -丈 -朵 -姆 -擬 -宇 -輯 -陝 -雕 -償 -蓄 -崇 -剪 -倡 -廳 -咬 -駛 -薯 -刷 -斥 -番 -賦 -奉 -佛 -澆 -漫 -曼 -扇 -鈣 -桃 -扶 -仔 -返 -俗 -虧 -腔 -鞋 -棱 -覆 -框 -悄 -叔 -撞 -騙 -勘 -旺 -沸 -孤 -吐 -孟 -渠 -屈 -疾 -妙 -惜 -仰 -狠 -脹 -諧 -拋 -黴 -桑 -崗 -嘛 -衰 -盜 -滲 -臟 -賴 -湧 -甜 -曹 -閱 -肌 -哩 -厲 -烴 -緯 -毅 -昨 -偽 -症 -煮 -嘆 -釘 -搭 -莖 -籠 -酷 -偷 -弓 -錐 -恆 -傑 -坑 -鼻 -翼 -綸 -敘 -獄 -逮 -罐 -絡 -棚 -抑 -膨 -蔬 -寺 -驟 -穆 -冶 -枯 -冊 -屍 -凸 -紳 -坯 -犧 -焰 -轟 -欣 -晉 -瘦 -禦 -錠 -錦 -喪 -旬 -鍛 -壟 -搜 -撲 -邀 -亭 -酯 -邁 -舒 -脆 -酶 -閒 -憂 -酚 -頑 -羽 -漲 -卸 -仗 -陪 -闢 -懲 -杭 -姚 -肚 -捉 -飄 -漂 -昆 -欺 -吾 -郎 -烷 -汁 -呵 -飾 -蕭 -雅 -郵 -遷 -燕 -撒 -姻 -赴 -宴 -煩 -債 -帳 -斑 -鈴 -旨 -醇 -董 -餅 -雛 -姿 -拌 -傅 -腹 -妥 -揉 -賢 -拆 -歪 -葡 -胺 -丟 -浩 -徽 -昂 -墊 -擋 -覽 -貪 -慰 -繳 -汪 -慌 -馮 -諾 -姜 -誼 -兇 -劣 -誣 -耀 -昏 -躺 -盈 -騎 -喬 -溪 -叢 -盧 -抹 -悶 -諮 -刮 -駕 -纜 -悟 -摘 -鉺 -擲 -頗 -幻 -柄 -惠 -慘 -佳 -仇 -臘 -窩 -滌 -劍 -瞧 -堡 -潑 -蔥 -罩 -霍 -撈 -胎 -蒼 -濱 -倆 -捅 -湘 -砍 -霞 -邵 -萄 -瘋 -淮 -遂 -熊 -糞 -烘 -宿 -檔 -戈 -駁 -嫂 -裕 -徙 -箭 -捐 -腸 -撐 -曬 -辨 -殿 -蓮 -攤 -攪 -醬 -屏 -疫 -哀 -蔡 -堵 -沫 -皺 -暢 -疊 -閣 -萊 -敲 -轄 -鉤 -痕 -壩 -巷 -餓 -禍 -丘 -玄 -溜 -曰 -邏 -彭 -嘗 -卿 -妨 -艇 -吞 -韋 -怨 -矮 -歇`.split('\n'); -//# sourceMappingURL=traditional-chinese.js.map \ No newline at end of file diff --git a/node_modules/@scure/bip39/esm/wordlists/traditional-chinese.js.map b/node_modules/@scure/bip39/esm/wordlists/traditional-chinese.js.map deleted file mode 100644 index efa45e0d..00000000 --- a/node_modules/@scure/bip39/esm/wordlists/traditional-chinese.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"traditional-chinese.js","sourceRoot":"","sources":["../../src/wordlists/traditional-chinese.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,QAAQ,GAAa;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EA+/DhC,CAAC,KAAK,CAAC,IAAI,CAAC,CAAC"} \ No newline at end of file diff --git a/node_modules/@scure/bip39/index.d.ts b/node_modules/@scure/bip39/index.d.ts deleted file mode 100644 index 85cdb221..00000000 --- a/node_modules/@scure/bip39/index.d.ts +++ /dev/null @@ -1,63 +0,0 @@ -/** - * Generate x random words. Uses Cryptographically-Secure Random Number Generator. - * @param wordlist imported wordlist for specific language - * @param strength mnemonic strength 128-256 bits - * @example - * generateMnemonic(wordlist, 128) - * // 'legal winner thank year wave sausage worth useful legal winner thank yellow' - */ -export declare function generateMnemonic(wordlist: string[], strength?: number): string; -/** - * Reversible: Converts mnemonic string to raw entropy in form of byte array. - * @param mnemonic 12-24 words - * @param wordlist imported wordlist for specific language - * @example - * const mnem = 'legal winner thank year wave sausage worth useful legal winner thank yellow'; - * mnemonicToEntropy(mnem, wordlist) - * // Produces - * new Uint8Array([ - * 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, - * 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f - * ]) - */ -export declare function mnemonicToEntropy(mnemonic: string, wordlist: string[]): Uint8Array; -/** - * Reversible: Converts raw entropy in form of byte array to mnemonic string. - * @param entropy byte array - * @param wordlist imported wordlist for specific language - * @returns 12-24 words - * @example - * const ent = new Uint8Array([ - * 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, - * 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f - * ]); - * entropyToMnemonic(ent, wordlist); - * // 'legal winner thank year wave sausage worth useful legal winner thank yellow' - */ -export declare function entropyToMnemonic(entropy: Uint8Array, wordlist: string[]): string; -/** - * Validates mnemonic for being 12-24 words contained in `wordlist`. - */ -export declare function validateMnemonic(mnemonic: string, wordlist: string[]): boolean; -/** - * Irreversible: Uses KDF to derive 64 bytes of key data from mnemonic + optional password. - * @param mnemonic 12-24 words - * @param passphrase string that will additionally protect the key - * @returns 64 bytes of key data - * @example - * const mnem = 'legal winner thank year wave sausage worth useful legal winner thank yellow'; - * await mnemonicToSeed(mnem, 'password'); - * // new Uint8Array([...64 bytes]) - */ -export declare function mnemonicToSeed(mnemonic: string, passphrase?: string): Promise; -/** - * Irreversible: Uses KDF to derive 64 bytes of key data from mnemonic + optional password. - * @param mnemonic 12-24 words - * @param passphrase string that will additionally protect the key - * @returns 64 bytes of key data - * @example - * const mnem = 'legal winner thank year wave sausage worth useful legal winner thank yellow'; - * mnemonicToSeedSync(mnem, 'password'); - * // new Uint8Array([...64 bytes]) - */ -export declare function mnemonicToSeedSync(mnemonic: string, passphrase?: string): Uint8Array; diff --git a/node_modules/@scure/bip39/index.js b/node_modules/@scure/bip39/index.js deleted file mode 100644 index 924ae10c..00000000 --- a/node_modules/@scure/bip39/index.js +++ /dev/null @@ -1,142 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.mnemonicToSeedSync = exports.mnemonicToSeed = exports.validateMnemonic = exports.entropyToMnemonic = exports.mnemonicToEntropy = exports.generateMnemonic = void 0; -/*! scure-bip39 - MIT License (c) 2022 Patricio Palladino, Paul Miller (paulmillr.com) */ -const _assert_1 = require("@noble/hashes/_assert"); -const pbkdf2_1 = require("@noble/hashes/pbkdf2"); -const sha256_1 = require("@noble/hashes/sha256"); -const sha512_1 = require("@noble/hashes/sha512"); -const utils_1 = require("@noble/hashes/utils"); -const base_1 = require("@scure/base"); -// Japanese wordlist -const isJapanese = (wordlist) => wordlist[0] === '\u3042\u3044\u3053\u304f\u3057\u3093'; -// Normalization replaces equivalent sequences of characters -// so that any two texts that are equivalent will be reduced -// to the same sequence of code points, called the normal form of the original text. -function nfkd(str) { - if (typeof str !== 'string') - throw new TypeError(`Invalid mnemonic type: ${typeof str}`); - return str.normalize('NFKD'); -} -function normalize(str) { - const norm = nfkd(str); - const words = norm.split(' '); - if (![12, 15, 18, 21, 24].includes(words.length)) - throw new Error('Invalid mnemonic'); - return { nfkd: norm, words }; -} -function assertEntropy(entropy) { - _assert_1.default.bytes(entropy, 16, 20, 24, 28, 32); -} -/** - * Generate x random words. Uses Cryptographically-Secure Random Number Generator. - * @param wordlist imported wordlist for specific language - * @param strength mnemonic strength 128-256 bits - * @example - * generateMnemonic(wordlist, 128) - * // 'legal winner thank year wave sausage worth useful legal winner thank yellow' - */ -function generateMnemonic(wordlist, strength = 128) { - _assert_1.default.number(strength); - if (strength % 32 !== 0 || strength > 256) - throw new TypeError('Invalid entropy'); - return entropyToMnemonic((0, utils_1.randomBytes)(strength / 8), wordlist); -} -exports.generateMnemonic = generateMnemonic; -const calcChecksum = (entropy) => { - // Checksum is ent.length/4 bits long - const bitsLeft = 8 - entropy.length / 4; - // Zero rightmost "bitsLeft" bits in byte - // For example: bitsLeft=4 val=10111101 -> 10110000 - return new Uint8Array([((0, sha256_1.sha256)(entropy)[0] >> bitsLeft) << bitsLeft]); -}; -function getCoder(wordlist) { - if (!Array.isArray(wordlist) || wordlist.length !== 2048 || typeof wordlist[0] !== 'string') - throw new Error('Worlist: expected array of 2048 strings'); - wordlist.forEach((i) => { - if (typeof i !== 'string') - throw new Error(`Wordlist: non-string element: ${i}`); - }); - return base_1.utils.chain(base_1.utils.checksum(1, calcChecksum), base_1.utils.radix2(11, true), base_1.utils.alphabet(wordlist)); -} -/** - * Reversible: Converts mnemonic string to raw entropy in form of byte array. - * @param mnemonic 12-24 words - * @param wordlist imported wordlist for specific language - * @example - * const mnem = 'legal winner thank year wave sausage worth useful legal winner thank yellow'; - * mnemonicToEntropy(mnem, wordlist) - * // Produces - * new Uint8Array([ - * 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, - * 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f - * ]) - */ -function mnemonicToEntropy(mnemonic, wordlist) { - const { words } = normalize(mnemonic); - const entropy = getCoder(wordlist).decode(words); - assertEntropy(entropy); - return entropy; -} -exports.mnemonicToEntropy = mnemonicToEntropy; -/** - * Reversible: Converts raw entropy in form of byte array to mnemonic string. - * @param entropy byte array - * @param wordlist imported wordlist for specific language - * @returns 12-24 words - * @example - * const ent = new Uint8Array([ - * 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, - * 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f, 0x7f - * ]); - * entropyToMnemonic(ent, wordlist); - * // 'legal winner thank year wave sausage worth useful legal winner thank yellow' - */ -function entropyToMnemonic(entropy, wordlist) { - assertEntropy(entropy); - const words = getCoder(wordlist).encode(entropy); - return words.join(isJapanese(wordlist) ? '\u3000' : ' '); -} -exports.entropyToMnemonic = entropyToMnemonic; -/** - * Validates mnemonic for being 12-24 words contained in `wordlist`. - */ -function validateMnemonic(mnemonic, wordlist) { - try { - mnemonicToEntropy(mnemonic, wordlist); - } - catch (e) { - return false; - } - return true; -} -exports.validateMnemonic = validateMnemonic; -const salt = (passphrase) => nfkd(`mnemonic${passphrase}`); -/** - * Irreversible: Uses KDF to derive 64 bytes of key data from mnemonic + optional password. - * @param mnemonic 12-24 words - * @param passphrase string that will additionally protect the key - * @returns 64 bytes of key data - * @example - * const mnem = 'legal winner thank year wave sausage worth useful legal winner thank yellow'; - * await mnemonicToSeed(mnem, 'password'); - * // new Uint8Array([...64 bytes]) - */ -function mnemonicToSeed(mnemonic, passphrase = '') { - return (0, pbkdf2_1.pbkdf2Async)(sha512_1.sha512, normalize(mnemonic).nfkd, salt(passphrase), { c: 2048, dkLen: 64 }); -} -exports.mnemonicToSeed = mnemonicToSeed; -/** - * Irreversible: Uses KDF to derive 64 bytes of key data from mnemonic + optional password. - * @param mnemonic 12-24 words - * @param passphrase string that will additionally protect the key - * @returns 64 bytes of key data - * @example - * const mnem = 'legal winner thank year wave sausage worth useful legal winner thank yellow'; - * mnemonicToSeedSync(mnem, 'password'); - * // new Uint8Array([...64 bytes]) - */ -function mnemonicToSeedSync(mnemonic, passphrase = '') { - return (0, pbkdf2_1.pbkdf2)(sha512_1.sha512, normalize(mnemonic).nfkd, salt(passphrase), { c: 2048, dkLen: 64 }); -} -exports.mnemonicToSeedSync = mnemonicToSeedSync; diff --git a/node_modules/@scure/bip39/package.json b/node_modules/@scure/bip39/package.json deleted file mode 100644 index 51102a90..00000000 --- a/node_modules/@scure/bip39/package.json +++ /dev/null @@ -1,116 +0,0 @@ -{ - "name": "@scure/bip39", - "version": "1.2.1", - "description": "Secure, audited & minimal implementation of BIP39 mnemonic phrases", - "main": "index.js", - "files": [ - "index.js", - "index.d.ts", - "wordlists/*.js", - "wordlists/*.d.ts", - "esm" - ], - "types": "index.d.ts", - "dependencies": { - "@noble/hashes": "~1.3.0", - "@scure/base": "~1.1.0" - }, - "devDependencies": { - "micro-should": "0.4.0", - "prettier": "2.8.4", - "typescript": "5.0.2" - }, - "author": "Paul Miller (https://paulmillr.com)", - "homepage": "https://paulmillr.com/", - "repository": { - "type": "git", - "url": "https://github.com/paulmillr/scure-bip39.git" - }, - "contributors": [ - { - "name": "Patricio Palladino", - "email": "patricio@nomiclabs.io" - }, - { - "name": "Paul Miller", - "url": "https://paulmillr.com" - } - ], - "license": "MIT", - "scripts": { - "build": "tsc && tsc -p tsconfig.esm.json", - "lint": "prettier --check 'src/**/*.ts' 'test/*.test.ts'", - "format": "prettier --write 'src/**/*.ts' 'test/*.test.ts'", - "test": "cd test && tsc && node bip39.test.js" - }, - "exports": { - ".": { - "types": "./index.d.ts", - "import": "./esm/index.js", - "default": "./index.js" - }, - "./index": { - "types": "./index.d.ts", - "import": "./esm/index.js", - "default": "./index.js" - }, - "./wordlists/czech": { - "types": "./wordlists/czech.d.ts", - "import": "./esm/wordlists/czech.js", - "default": "./wordlists/czech.js" - }, - "./wordlists/english": { - "types": "./wordlists/english.d.ts", - "import": "./esm/wordlists/english.js", - "default": "./wordlists/english.js" - }, - "./wordlists/french": { - "types": "./wordlists/french.d.ts", - "import": "./esm/wordlists/french.js", - "default": "./wordlists/french.js" - }, - "./wordlists/italian": { - "types": "./wordlists/italian.d.ts", - "import": "./esm/wordlists/italian.js", - "default": "./wordlists/italian.js" - }, - "./wordlists/japanese": { - "types": "./wordlists/japanese.d.ts", - "import": "./esm/wordlists/japanese.js", - "default": "./wordlists/japanese.js" - }, - "./wordlists/korean": { - "types": "./wordlists/korean.d.ts", - "import": "./esm/wordlists/korean.js", - "default": "./wordlists/korean.js" - }, - "./wordlists/simplified-chinese": { - "types": "./wordlists/simplified-chinese.d.ts", - "import": "./esm/wordlists/simplified-chinese.js", - "default": "./wordlists/simplified-chinese.js" - }, - "./wordlists/spanish": { - "types": "./wordlists/spanish.d.ts", - "import": "./esm/wordlists/spanish.js", - "default": "./wordlists/spanish.js" - }, - "./wordlists/traditional-chinese": { - "types": "./wordlists/traditional-chinese.d.ts", - "import": "./esm/wordlists/traditional-chinese.js", - "default": "./wordlists/traditional-chinese.js" - } - }, - "keywords": [ - "bip39", - "mnemonic", - "phrase", - "code", - "bip0039", - "bip-39", - "micro", - "scure", - "wordlist", - "noble" - ], - "funding": "https://paulmillr.com/funding/" -} diff --git a/node_modules/@scure/bip39/wordlists/czech.d.ts b/node_modules/@scure/bip39/wordlists/czech.d.ts deleted file mode 100644 index b566a1db..00000000 --- a/node_modules/@scure/bip39/wordlists/czech.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const wordlist: string[]; diff --git a/node_modules/@scure/bip39/wordlists/czech.js b/node_modules/@scure/bip39/wordlists/czech.js deleted file mode 100644 index 0295622f..00000000 --- a/node_modules/@scure/bip39/wordlists/czech.js +++ /dev/null @@ -1,2051 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.wordlist = void 0; -exports.wordlist = `abdikace -abeceda -adresa -agrese -akce -aktovka -alej -alkohol -amputace -ananas -andulka -anekdota -anketa -antika -anulovat -archa -arogance -asfalt -asistent -aspirace -astma -astronom -atlas -atletika -atol -autobus -azyl -babka -bachor -bacil -baculka -badatel -bageta -bagr -bahno -bakterie -balada -baletka -balkon -balonek -balvan -balza -bambus -bankomat -barbar -baret -barman -baroko -barva -baterka -batoh -bavlna -bazalka -bazilika -bazuka -bedna -beran -beseda -bestie -beton -bezinka -bezmoc -beztak -bicykl -bidlo -biftek -bikiny -bilance -biograf -biolog -bitva -bizon -blahobyt -blatouch -blecha -bledule -blesk -blikat -blizna -blokovat -bloudit -blud -bobek -bobr -bodlina -bodnout -bohatost -bojkot -bojovat -bokorys -bolest -borec -borovice -bota -boubel -bouchat -bouda -boule -bourat -boxer -bradavka -brambora -branka -bratr -brepta -briketa -brko -brloh -bronz -broskev -brunetka -brusinka -brzda -brzy -bublina -bubnovat -buchta -buditel -budka -budova -bufet -bujarost -bukvice -buldok -bulva -bunda -bunkr -burza -butik -buvol -buzola -bydlet -bylina -bytovka -bzukot -capart -carevna -cedr -cedule -cejch -cejn -cela -celer -celkem -celnice -cenina -cennost -cenovka -centrum -cenzor -cestopis -cetka -chalupa -chapadlo -charita -chata -chechtat -chemie -chichot -chirurg -chlad -chleba -chlubit -chmel -chmura -chobot -chochol -chodba -cholera -chomout -chopit -choroba -chov -chrapot -chrlit -chrt -chrup -chtivost -chudina -chutnat -chvat -chvilka -chvost -chyba -chystat -chytit -cibule -cigareta -cihelna -cihla -cinkot -cirkus -cisterna -citace -citrus -cizinec -cizost -clona -cokoliv -couvat -ctitel -ctnost -cudnost -cuketa -cukr -cupot -cvaknout -cval -cvik -cvrkot -cyklista -daleko -dareba -datel -datum -dcera -debata -dechovka -decibel -deficit -deflace -dekl -dekret -demokrat -deprese -derby -deska -detektiv -dikobraz -diktovat -dioda -diplom -disk -displej -divadlo -divoch -dlaha -dlouho -dluhopis -dnes -dobro -dobytek -docent -dochutit -dodnes -dohled -dohoda -dohra -dojem -dojnice -doklad -dokola -doktor -dokument -dolar -doleva -dolina -doma -dominant -domluvit -domov -donutit -dopad -dopis -doplnit -doposud -doprovod -dopustit -dorazit -dorost -dort -dosah -doslov -dostatek -dosud -dosyta -dotaz -dotek -dotknout -doufat -doutnat -dovozce -dozadu -doznat -dozorce -drahota -drak -dramatik -dravec -draze -drdol -drobnost -drogerie -drozd -drsnost -drtit -drzost -duben -duchovno -dudek -duha -duhovka -dusit -dusno -dutost -dvojice -dvorec -dynamit -ekolog -ekonomie -elektron -elipsa -email -emise -emoce -empatie -epizoda -epocha -epopej -epos -esej -esence -eskorta -eskymo -etiketa -euforie -evoluce -exekuce -exkurze -expedice -exploze -export -extrakt -facka -fajfka -fakulta -fanatik -fantazie -farmacie -favorit -fazole -federace -fejeton -fenka -fialka -figurant -filozof -filtr -finance -finta -fixace -fjord -flanel -flirt -flotila -fond -fosfor -fotbal -fotka -foton -frakce -freska -fronta -fukar -funkce -fyzika -galeje -garant -genetika -geolog -gilotina -glazura -glejt -golem -golfista -gotika -graf -gramofon -granule -grep -gril -grog -groteska -guma -hadice -hadr -hala -halenka -hanba -hanopis -harfa -harpuna -havran -hebkost -hejkal -hejno -hejtman -hektar -helma -hematom -herec -herna -heslo -hezky -historik -hladovka -hlasivky -hlava -hledat -hlen -hlodavec -hloh -hloupost -hltat -hlubina -hluchota -hmat -hmota -hmyz -hnis -hnojivo -hnout -hoblina -hoboj -hoch -hodiny -hodlat -hodnota -hodovat -hojnost -hokej -holinka -holka -holub -homole -honitba -honorace -horal -horda -horizont -horko -horlivec -hormon -hornina -horoskop -horstvo -hospoda -hostina -hotovost -houba -houf -houpat -houska -hovor -hradba -hranice -hravost -hrazda -hrbolek -hrdina -hrdlo -hrdost -hrnek -hrobka -hromada -hrot -hrouda -hrozen -hrstka -hrubost -hryzat -hubenost -hubnout -hudba -hukot -humr -husita -hustota -hvozd -hybnost -hydrant -hygiena -hymna -hysterik -idylka -ihned -ikona -iluze -imunita -infekce -inflace -inkaso -inovace -inspekce -internet -invalida -investor -inzerce -ironie -jablko -jachta -jahoda -jakmile -jakost -jalovec -jantar -jarmark -jaro -jasan -jasno -jatka -javor -jazyk -jedinec -jedle -jednatel -jehlan -jekot -jelen -jelito -jemnost -jenom -jepice -jeseter -jevit -jezdec -jezero -jinak -jindy -jinoch -jiskra -jistota -jitrnice -jizva -jmenovat -jogurt -jurta -kabaret -kabel -kabinet -kachna -kadet -kadidlo -kahan -kajak -kajuta -kakao -kaktus -kalamita -kalhoty -kalibr -kalnost -kamera -kamkoliv -kamna -kanibal -kanoe -kantor -kapalina -kapela -kapitola -kapka -kaple -kapota -kapr -kapusta -kapybara -karamel -karotka -karton -kasa -katalog -katedra -kauce -kauza -kavalec -kazajka -kazeta -kazivost -kdekoliv -kdesi -kedluben -kemp -keramika -kino -klacek -kladivo -klam -klapot -klasika -klaun -klec -klenba -klepat -klesnout -klid -klima -klisna -klobouk -klokan -klopa -kloub -klubovna -klusat -kluzkost -kmen -kmitat -kmotr -kniha -knot -koalice -koberec -kobka -kobliha -kobyla -kocour -kohout -kojenec -kokos -koktejl -kolaps -koleda -kolize -kolo -komando -kometa -komik -komnata -komora -kompas -komunita -konat -koncept -kondice -konec -konfese -kongres -konina -konkurs -kontakt -konzerva -kopanec -kopie -kopnout -koprovka -korbel -korektor -kormidlo -koroptev -korpus -koruna -koryto -korzet -kosatec -kostka -kotel -kotleta -kotoul -koukat -koupelna -kousek -kouzlo -kovboj -koza -kozoroh -krabice -krach -krajina -kralovat -krasopis -kravata -kredit -krejcar -kresba -kreveta -kriket -kritik -krize -krkavec -krmelec -krmivo -krocan -krok -kronika -kropit -kroupa -krovka -krtek -kruhadlo -krupice -krutost -krvinka -krychle -krypta -krystal -kryt -kudlanka -kufr -kujnost -kukla -kulajda -kulich -kulka -kulomet -kultura -kuna -kupodivu -kurt -kurzor -kutil -kvalita -kvasinka -kvestor -kynolog -kyselina -kytara -kytice -kytka -kytovec -kyvadlo -labrador -lachtan -ladnost -laik -lakomec -lamela -lampa -lanovka -lasice -laso -lastura -latinka -lavina -lebka -leckdy -leden -lednice -ledovka -ledvina -legenda -legie -legrace -lehce -lehkost -lehnout -lektvar -lenochod -lentilka -lepenka -lepidlo -letadlo -letec -letmo -letokruh -levhart -levitace -levobok -libra -lichotka -lidojed -lidskost -lihovina -lijavec -lilek -limetka -linie -linka -linoleum -listopad -litina -litovat -lobista -lodivod -logika -logoped -lokalita -loket -lomcovat -lopata -lopuch -lord -losos -lotr -loudal -louh -louka -louskat -lovec -lstivost -lucerna -lucifer -lump -lusk -lustrace -lvice -lyra -lyrika -lysina -madam -madlo -magistr -mahagon -majetek -majitel -majorita -makak -makovice -makrela -malba -malina -malovat -malvice -maminka -mandle -manko -marnost -masakr -maskot -masopust -matice -matrika -maturita -mazanec -mazivo -mazlit -mazurka -mdloba -mechanik -meditace -medovina -melasa -meloun -mentolka -metla -metoda -metr -mezera -migrace -mihnout -mihule -mikina -mikrofon -milenec -milimetr -milost -mimika -mincovna -minibar -minomet -minulost -miska -mistr -mixovat -mladost -mlha -mlhovina -mlok -mlsat -mluvit -mnich -mnohem -mobil -mocnost -modelka -modlitba -mohyla -mokro -molekula -momentka -monarcha -monokl -monstrum -montovat -monzun -mosaz -moskyt -most -motivace -motorka -motyka -moucha -moudrost -mozaika -mozek -mozol -mramor -mravenec -mrkev -mrtvola -mrzet -mrzutost -mstitel -mudrc -muflon -mulat -mumie -munice -muset -mutace -muzeum -muzikant -myslivec -mzda -nabourat -nachytat -nadace -nadbytek -nadhoz -nadobro -nadpis -nahlas -nahnat -nahodile -nahradit -naivita -najednou -najisto -najmout -naklonit -nakonec -nakrmit -nalevo -namazat -namluvit -nanometr -naoko -naopak -naostro -napadat -napevno -naplnit -napnout -naposled -naprosto -narodit -naruby -narychlo -nasadit -nasekat -naslepo -nastat -natolik -navenek -navrch -navzdory -nazvat -nebe -nechat -necky -nedaleko -nedbat -neduh -negace -nehet -nehoda -nejen -nejprve -neklid -nelibost -nemilost -nemoc -neochota -neonka -nepokoj -nerost -nerv -nesmysl -nesoulad -netvor -neuron -nevina -nezvykle -nicota -nijak -nikam -nikdy -nikl -nikterak -nitro -nocleh -nohavice -nominace -nora -norek -nositel -nosnost -nouze -noviny -novota -nozdra -nuda -nudle -nuget -nutit -nutnost -nutrie -nymfa -obal -obarvit -obava -obdiv -obec -obehnat -obejmout -obezita -obhajoba -obilnice -objasnit -objekt -obklopit -oblast -oblek -obliba -obloha -obluda -obnos -obohatit -obojek -obout -obrazec -obrna -obruba -obrys -obsah -obsluha -obstarat -obuv -obvaz -obvinit -obvod -obvykle -obyvatel -obzor -ocas -ocel -ocenit -ochladit -ochota -ochrana -ocitnout -odboj -odbyt -odchod -odcizit -odebrat -odeslat -odevzdat -odezva -odhadce -odhodit -odjet -odjinud -odkaz -odkoupit -odliv -odluka -odmlka -odolnost -odpad -odpis -odplout -odpor -odpustit -odpykat -odrazka -odsoudit -odstup -odsun -odtok -odtud -odvaha -odveta -odvolat -odvracet -odznak -ofina -ofsajd -ohlas -ohnisko -ohrada -ohrozit -ohryzek -okap -okenice -oklika -okno -okouzlit -okovy -okrasa -okres -okrsek -okruh -okupant -okurka -okusit -olejnina -olizovat -omak -omeleta -omezit -omladina -omlouvat -omluva -omyl -onehdy -opakovat -opasek -operace -opice -opilost -opisovat -opora -opozice -opravdu -oproti -orbital -orchestr -orgie -orlice -orloj -ortel -osada -oschnout -osika -osivo -oslava -oslepit -oslnit -oslovit -osnova -osoba -osolit -ospalec -osten -ostraha -ostuda -ostych -osvojit -oteplit -otisk -otop -otrhat -otrlost -otrok -otruby -otvor -ovanout -ovar -oves -ovlivnit -ovoce -oxid -ozdoba -pachatel -pacient -padouch -pahorek -pakt -palanda -palec -palivo -paluba -pamflet -pamlsek -panenka -panika -panna -panovat -panstvo -pantofle -paprika -parketa -parodie -parta -paruka -paryba -paseka -pasivita -pastelka -patent -patrona -pavouk -pazneht -pazourek -pecka -pedagog -pejsek -peklo -peloton -penalta -pendrek -penze -periskop -pero -pestrost -petarda -petice -petrolej -pevnina -pexeso -pianista -piha -pijavice -pikle -piknik -pilina -pilnost -pilulka -pinzeta -pipeta -pisatel -pistole -pitevna -pivnice -pivovar -placenta -plakat -plamen -planeta -plastika -platit -plavidlo -plaz -plech -plemeno -plenta -ples -pletivo -plevel -plivat -plnit -plno -plocha -plodina -plomba -plout -pluk -plyn -pobavit -pobyt -pochod -pocit -poctivec -podat -podcenit -podepsat -podhled -podivit -podklad -podmanit -podnik -podoba -podpora -podraz -podstata -podvod -podzim -poezie -pohanka -pohnutka -pohovor -pohroma -pohyb -pointa -pojistka -pojmout -pokazit -pokles -pokoj -pokrok -pokuta -pokyn -poledne -polibek -polknout -poloha -polynom -pomalu -pominout -pomlka -pomoc -pomsta -pomyslet -ponechat -ponorka -ponurost -popadat -popel -popisek -poplach -poprosit -popsat -popud -poradce -porce -porod -porucha -poryv -posadit -posed -posila -poskok -poslanec -posoudit -pospolu -postava -posudek -posyp -potah -potkan -potlesk -potomek -potrava -potupa -potvora -poukaz -pouto -pouzdro -povaha -povidla -povlak -povoz -povrch -povstat -povyk -povzdech -pozdrav -pozemek -poznatek -pozor -pozvat -pracovat -prahory -praktika -prales -praotec -praporek -prase -pravda -princip -prkno -probudit -procento -prodej -profese -prohra -projekt -prolomit -promile -pronikat -propad -prorok -prosba -proton -proutek -provaz -prskavka -prsten -prudkost -prut -prvek -prvohory -psanec -psovod -pstruh -ptactvo -puberta -puch -pudl -pukavec -puklina -pukrle -pult -pumpa -punc -pupen -pusa -pusinka -pustina -putovat -putyka -pyramida -pysk -pytel -racek -rachot -radiace -radnice -radon -raft -ragby -raketa -rakovina -rameno -rampouch -rande -rarach -rarita -rasovna -rastr -ratolest -razance -razidlo -reagovat -reakce -recept -redaktor -referent -reflex -rejnok -reklama -rekord -rekrut -rektor -reputace -revize -revma -revolver -rezerva -riskovat -riziko -robotika -rodokmen -rohovka -rokle -rokoko -romaneto -ropovod -ropucha -rorejs -rosol -rostlina -rotmistr -rotoped -rotunda -roubenka -roucho -roup -roura -rovina -rovnice -rozbor -rozchod -rozdat -rozeznat -rozhodce -rozinka -rozjezd -rozkaz -rozloha -rozmar -rozpad -rozruch -rozsah -roztok -rozum -rozvod -rubrika -ruchadlo -rukavice -rukopis -ryba -rybolov -rychlost -rydlo -rypadlo -rytina -ryzost -sadista -sahat -sako -samec -samizdat -samota -sanitka -sardinka -sasanka -satelit -sazba -sazenice -sbor -schovat -sebranka -secese -sedadlo -sediment -sedlo -sehnat -sejmout -sekera -sekta -sekunda -sekvoje -semeno -seno -servis -sesadit -seshora -seskok -seslat -sestra -sesuv -sesypat -setba -setina -setkat -setnout -setrvat -sever -seznam -shoda -shrnout -sifon -silnice -sirka -sirotek -sirup -situace -skafandr -skalisko -skanzen -skaut -skeptik -skica -skladba -sklenice -sklo -skluz -skoba -skokan -skoro -skripta -skrz -skupina -skvost -skvrna -slabika -sladidlo -slanina -slast -slavnost -sledovat -slepec -sleva -slezina -slib -slina -sliznice -slon -sloupek -slovo -sluch -sluha -slunce -slupka -slza -smaragd -smetana -smilstvo -smlouva -smog -smrad -smrk -smrtka -smutek -smysl -snad -snaha -snob -sobota -socha -sodovka -sokol -sopka -sotva -souboj -soucit -soudce -souhlas -soulad -soumrak -souprava -soused -soutok -souviset -spalovna -spasitel -spis -splav -spodek -spojenec -spolu -sponzor -spornost -spousta -sprcha -spustit -sranda -sraz -srdce -srna -srnec -srovnat -srpen -srst -srub -stanice -starosta -statika -stavba -stehno -stezka -stodola -stolek -stopa -storno -stoupat -strach -stres -strhnout -strom -struna -studna -stupnice -stvol -styk -subjekt -subtropy -suchar -sudost -sukno -sundat -sunout -surikata -surovina -svah -svalstvo -svetr -svatba -svazek -svisle -svitek -svoboda -svodidlo -svorka -svrab -sykavka -sykot -synek -synovec -sypat -sypkost -syrovost -sysel -sytost -tabletka -tabule -tahoun -tajemno -tajfun -tajga -tajit -tajnost -taktika -tamhle -tampon -tancovat -tanec -tanker -tapeta -tavenina -tazatel -technika -tehdy -tekutina -telefon -temnota -tendence -tenista -tenor -teplota -tepna -teprve -terapie -termoska -textil -ticho -tiskopis -titulek -tkadlec -tkanina -tlapka -tleskat -tlukot -tlupa -tmel -toaleta -topinka -topol -torzo -touha -toulec -tradice -traktor -tramp -trasa -traverza -trefit -trest -trezor -trhavina -trhlina -trochu -trojice -troska -trouba -trpce -trpitel -trpkost -trubec -truchlit -truhlice -trus -trvat -tudy -tuhnout -tuhost -tundra -turista -turnaj -tuzemsko -tvaroh -tvorba -tvrdost -tvrz -tygr -tykev -ubohost -uboze -ubrat -ubrousek -ubrus -ubytovna -ucho -uctivost -udivit -uhradit -ujednat -ujistit -ujmout -ukazatel -uklidnit -uklonit -ukotvit -ukrojit -ulice -ulita -ulovit -umyvadlo -unavit -uniforma -uniknout -upadnout -uplatnit -uplynout -upoutat -upravit -uran -urazit -usednout -usilovat -usmrtit -usnadnit -usnout -usoudit -ustlat -ustrnout -utahovat -utkat -utlumit -utonout -utopenec -utrousit -uvalit -uvolnit -uvozovka -uzdravit -uzel -uzenina -uzlina -uznat -vagon -valcha -valoun -vana -vandal -vanilka -varan -varhany -varovat -vcelku -vchod -vdova -vedro -vegetace -vejce -velbloud -veletrh -velitel -velmoc -velryba -venkov -veranda -verze -veselka -veskrze -vesnice -vespodu -vesta -veterina -veverka -vibrace -vichr -videohra -vidina -vidle -vila -vinice -viset -vitalita -vize -vizitka -vjezd -vklad -vkus -vlajka -vlak -vlasec -vlevo -vlhkost -vliv -vlnovka -vloupat -vnucovat -vnuk -voda -vodivost -vodoznak -vodstvo -vojensky -vojna -vojsko -volant -volba -volit -volno -voskovka -vozidlo -vozovna -vpravo -vrabec -vracet -vrah -vrata -vrba -vrcholek -vrhat -vrstva -vrtule -vsadit -vstoupit -vstup -vtip -vybavit -vybrat -vychovat -vydat -vydra -vyfotit -vyhledat -vyhnout -vyhodit -vyhradit -vyhubit -vyjasnit -vyjet -vyjmout -vyklopit -vykonat -vylekat -vymazat -vymezit -vymizet -vymyslet -vynechat -vynikat -vynutit -vypadat -vyplatit -vypravit -vypustit -vyrazit -vyrovnat -vyrvat -vyslovit -vysoko -vystavit -vysunout -vysypat -vytasit -vytesat -vytratit -vyvinout -vyvolat -vyvrhel -vyzdobit -vyznat -vzadu -vzbudit -vzchopit -vzdor -vzduch -vzdychat -vzestup -vzhledem -vzkaz -vzlykat -vznik -vzorek -vzpoura -vztah -vztek -xylofon -zabrat -zabydlet -zachovat -zadarmo -zadusit -zafoukat -zahltit -zahodit -zahrada -zahynout -zajatec -zajet -zajistit -zaklepat -zakoupit -zalepit -zamezit -zamotat -zamyslet -zanechat -zanikat -zaplatit -zapojit -zapsat -zarazit -zastavit -zasunout -zatajit -zatemnit -zatknout -zaujmout -zavalit -zavelet -zavinit -zavolat -zavrtat -zazvonit -zbavit -zbrusu -zbudovat -zbytek -zdaleka -zdarma -zdatnost -zdivo -zdobit -zdroj -zdvih -zdymadlo -zelenina -zeman -zemina -zeptat -zezadu -zezdola -zhatit -zhltnout -zhluboka -zhotovit -zhruba -zima -zimnice -zjemnit -zklamat -zkoumat -zkratka -zkumavka -zlato -zlehka -zloba -zlom -zlost -zlozvyk -zmapovat -zmar -zmatek -zmije -zmizet -zmocnit -zmodrat -zmrzlina -zmutovat -znak -znalost -znamenat -znovu -zobrazit -zotavit -zoubek -zoufale -zplodit -zpomalit -zprava -zprostit -zprudka -zprvu -zrada -zranit -zrcadlo -zrnitost -zrno -zrovna -zrychlit -zrzavost -zticha -ztratit -zubovina -zubr -zvednout -zvenku -zvesela -zvon -zvrat -zvukovod -zvyk`.split('\n'); diff --git a/node_modules/@scure/bip39/wordlists/english.d.ts b/node_modules/@scure/bip39/wordlists/english.d.ts deleted file mode 100644 index b566a1db..00000000 --- a/node_modules/@scure/bip39/wordlists/english.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const wordlist: string[]; diff --git a/node_modules/@scure/bip39/wordlists/english.js b/node_modules/@scure/bip39/wordlists/english.js deleted file mode 100644 index 10c9c190..00000000 --- a/node_modules/@scure/bip39/wordlists/english.js +++ /dev/null @@ -1,2051 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.wordlist = void 0; -exports.wordlist = `abandon -ability -able -about -above -absent -absorb -abstract -absurd -abuse -access -accident -account -accuse -achieve -acid -acoustic -acquire -across -act -action -actor -actress -actual -adapt -add -addict -address -adjust -admit -adult -advance -advice -aerobic -affair -afford -afraid -again -age -agent -agree -ahead -aim -air -airport -aisle -alarm -album -alcohol -alert -alien -all -alley -allow -almost -alone -alpha -already -also -alter -always -amateur -amazing -among -amount -amused -analyst -anchor -ancient -anger -angle -angry -animal -ankle -announce -annual -another -answer -antenna -antique -anxiety -any -apart -apology -appear -apple -approve -april -arch -arctic -area -arena -argue -arm -armed -armor -army -around -arrange -arrest -arrive -arrow -art -artefact -artist -artwork -ask -aspect -assault -asset -assist -assume -asthma -athlete -atom -attack -attend -attitude -attract -auction -audit -august -aunt -author -auto -autumn -average -avocado -avoid -awake -aware -away -awesome -awful -awkward -axis -baby -bachelor -bacon -badge -bag -balance -balcony -ball -bamboo -banana -banner -bar -barely -bargain -barrel -base -basic -basket -battle -beach -bean -beauty -because -become -beef -before -begin -behave -behind -believe -below -belt -bench -benefit -best -betray -better -between -beyond -bicycle -bid -bike -bind -biology -bird -birth -bitter -black -blade -blame -blanket -blast -bleak -bless -blind -blood -blossom -blouse -blue -blur -blush -board -boat -body -boil -bomb -bone -bonus -book -boost -border -boring -borrow -boss -bottom -bounce -box -boy -bracket -brain -brand -brass -brave -bread -breeze -brick -bridge -brief -bright -bring -brisk -broccoli -broken -bronze -broom -brother -brown -brush -bubble -buddy -budget -buffalo -build -bulb -bulk -bullet -bundle -bunker -burden -burger -burst -bus -business -busy -butter -buyer -buzz -cabbage -cabin -cable -cactus -cage -cake -call -calm -camera -camp -can -canal -cancel -candy -cannon -canoe -canvas -canyon -capable -capital -captain -car -carbon -card -cargo -carpet -carry -cart -case -cash -casino -castle -casual -cat -catalog -catch -category -cattle -caught -cause -caution -cave -ceiling -celery -cement -census -century -cereal -certain -chair -chalk -champion -change -chaos -chapter -charge -chase -chat -cheap -check -cheese -chef -cherry -chest -chicken -chief -child -chimney -choice -choose -chronic -chuckle -chunk -churn -cigar -cinnamon -circle -citizen -city -civil -claim -clap -clarify -claw -clay -clean -clerk -clever -click -client -cliff -climb -clinic -clip -clock -clog -close -cloth -cloud -clown -club -clump -cluster -clutch -coach -coast -coconut -code -coffee -coil -coin -collect -color -column -combine -come -comfort -comic -common -company -concert -conduct -confirm -congress -connect -consider -control -convince -cook -cool -copper -copy -coral -core -corn -correct -cost -cotton -couch -country -couple -course -cousin -cover -coyote -crack -cradle -craft -cram -crane -crash -crater -crawl -crazy -cream -credit -creek -crew -cricket -crime -crisp -critic -crop -cross -crouch -crowd -crucial -cruel -cruise -crumble -crunch -crush -cry -crystal -cube -culture -cup -cupboard -curious -current -curtain -curve -cushion -custom -cute -cycle -dad -damage -damp -dance -danger -daring -dash -daughter -dawn -day -deal -debate -debris -decade -december -decide -decline -decorate -decrease -deer -defense -define -defy -degree -delay -deliver -demand -demise -denial -dentist -deny -depart -depend -deposit -depth -deputy -derive -describe -desert -design -desk -despair -destroy -detail -detect -develop -device -devote -diagram -dial -diamond -diary -dice -diesel -diet -differ -digital -dignity -dilemma -dinner -dinosaur -direct -dirt -disagree -discover -disease -dish -dismiss -disorder -display -distance -divert -divide -divorce -dizzy -doctor -document -dog -doll -dolphin -domain -donate -donkey -donor -door -dose -double -dove -draft -dragon -drama -drastic -draw -dream -dress -drift -drill -drink -drip -drive -drop -drum -dry -duck -dumb -dune -during -dust -dutch -duty -dwarf -dynamic -eager -eagle -early -earn -earth -easily -east -easy -echo -ecology -economy -edge -edit -educate -effort -egg -eight -either -elbow -elder -electric -elegant -element -elephant -elevator -elite -else -embark -embody -embrace -emerge -emotion -employ -empower -empty -enable -enact -end -endless -endorse -enemy -energy -enforce -engage -engine -enhance -enjoy -enlist -enough -enrich -enroll -ensure -enter -entire -entry -envelope -episode -equal -equip -era -erase -erode -erosion -error -erupt -escape -essay -essence -estate -eternal -ethics -evidence -evil -evoke -evolve -exact -example -excess -exchange -excite -exclude -excuse -execute -exercise -exhaust -exhibit -exile -exist -exit -exotic -expand -expect -expire -explain -expose -express -extend -extra -eye -eyebrow -fabric -face -faculty -fade -faint -faith -fall -false -fame -family -famous -fan -fancy -fantasy -farm -fashion -fat -fatal -father -fatigue -fault -favorite -feature -february -federal -fee -feed -feel -female -fence -festival -fetch -fever -few -fiber -fiction -field -figure -file -film -filter -final -find -fine -finger -finish -fire -firm -first -fiscal -fish -fit -fitness -fix -flag -flame -flash -flat -flavor -flee -flight -flip -float -flock -floor -flower -fluid -flush -fly -foam -focus -fog -foil -fold -follow -food -foot -force -forest -forget -fork -fortune -forum -forward -fossil -foster -found -fox -fragile -frame -frequent -fresh -friend -fringe -frog -front -frost -frown -frozen -fruit -fuel -fun -funny -furnace -fury -future -gadget -gain -galaxy -gallery -game -gap -garage -garbage -garden -garlic -garment -gas -gasp -gate -gather -gauge -gaze -general -genius -genre -gentle -genuine -gesture -ghost -giant -gift -giggle -ginger -giraffe -girl -give -glad -glance -glare -glass -glide -glimpse -globe -gloom -glory -glove -glow -glue -goat -goddess -gold -good -goose -gorilla -gospel -gossip -govern -gown -grab -grace -grain -grant -grape -grass -gravity -great -green -grid -grief -grit -grocery -group -grow -grunt -guard -guess -guide -guilt -guitar -gun -gym -habit -hair -half -hammer -hamster -hand -happy -harbor -hard -harsh -harvest -hat -have -hawk -hazard -head -health -heart -heavy -hedgehog -height -hello -helmet -help -hen -hero -hidden -high -hill -hint -hip -hire -history -hobby -hockey -hold -hole -holiday -hollow -home -honey -hood -hope -horn -horror -horse -hospital -host -hotel -hour -hover -hub -huge -human -humble -humor -hundred -hungry -hunt -hurdle -hurry -hurt -husband -hybrid -ice -icon -idea -identify -idle -ignore -ill -illegal -illness -image -imitate -immense -immune -impact -impose -improve -impulse -inch -include -income -increase -index -indicate -indoor -industry -infant -inflict -inform -inhale -inherit -initial -inject -injury -inmate -inner -innocent -input -inquiry -insane -insect -inside -inspire -install -intact -interest -into -invest -invite -involve -iron -island -isolate -issue -item -ivory -jacket -jaguar -jar -jazz -jealous -jeans -jelly -jewel -job -join -joke -journey -joy -judge -juice -jump -jungle -junior -junk -just -kangaroo -keen -keep -ketchup -key -kick -kid -kidney -kind -kingdom -kiss -kit -kitchen -kite -kitten -kiwi -knee -knife -knock -know -lab -label -labor -ladder -lady -lake -lamp -language -laptop -large -later -latin -laugh -laundry -lava -law -lawn -lawsuit -layer -lazy -leader -leaf -learn -leave -lecture -left -leg -legal -legend -leisure -lemon -lend -length -lens -leopard -lesson -letter -level -liar -liberty -library -license -life -lift -light -like -limb -limit -link -lion -liquid -list -little -live -lizard -load -loan -lobster -local -lock -logic -lonely -long -loop -lottery -loud -lounge -love -loyal -lucky -luggage -lumber -lunar -lunch -luxury -lyrics -machine -mad -magic -magnet -maid -mail -main -major -make -mammal -man -manage -mandate -mango -mansion -manual -maple -marble -march -margin -marine -market -marriage -mask -mass -master -match -material -math -matrix -matter -maximum -maze -meadow -mean -measure -meat -mechanic -medal -media -melody -melt -member -memory -mention -menu -mercy -merge -merit -merry -mesh -message -metal -method -middle -midnight -milk -million -mimic -mind -minimum -minor -minute -miracle -mirror -misery -miss -mistake -mix -mixed -mixture -mobile -model -modify -mom -moment -monitor -monkey -monster -month -moon -moral -more -morning -mosquito -mother -motion -motor -mountain -mouse -move -movie -much -muffin -mule -multiply -muscle -museum -mushroom -music -must -mutual -myself -mystery -myth -naive -name -napkin -narrow -nasty -nation -nature -near -neck -need -negative -neglect -neither -nephew -nerve -nest -net -network -neutral -never -news -next -nice -night -noble -noise -nominee -noodle -normal -north -nose -notable -note -nothing -notice -novel -now -nuclear -number -nurse -nut -oak -obey -object -oblige -obscure -observe -obtain -obvious -occur -ocean -october -odor -off -offer -office -often -oil -okay -old -olive -olympic -omit -once -one -onion -online -only -open -opera -opinion -oppose -option -orange -orbit -orchard -order -ordinary -organ -orient -original -orphan -ostrich -other -outdoor -outer -output -outside -oval -oven -over -own -owner -oxygen -oyster -ozone -pact -paddle -page -pair -palace -palm -panda -panel -panic -panther -paper -parade -parent -park -parrot -party -pass -patch -path -patient -patrol -pattern -pause -pave -payment -peace -peanut -pear -peasant -pelican -pen -penalty -pencil -people -pepper -perfect -permit -person -pet -phone -photo -phrase -physical -piano -picnic -picture -piece -pig -pigeon -pill -pilot -pink -pioneer -pipe -pistol -pitch -pizza -place -planet -plastic -plate -play -please -pledge -pluck -plug -plunge -poem -poet -point -polar -pole -police -pond -pony -pool -popular -portion -position -possible -post -potato -pottery -poverty -powder -power -practice -praise -predict -prefer -prepare -present -pretty -prevent -price -pride -primary -print -priority -prison -private -prize -problem -process -produce -profit -program -project -promote -proof -property -prosper -protect -proud -provide -public -pudding -pull -pulp -pulse -pumpkin -punch -pupil -puppy -purchase -purity -purpose -purse -push -put -puzzle -pyramid -quality -quantum -quarter -question -quick -quit -quiz -quote -rabbit -raccoon -race -rack -radar -radio -rail -rain -raise -rally -ramp -ranch -random -range -rapid -rare -rate -rather -raven -raw -razor -ready -real -reason -rebel -rebuild -recall -receive -recipe -record -recycle -reduce -reflect -reform -refuse -region -regret -regular -reject -relax -release -relief -rely -remain -remember -remind -remove -render -renew -rent -reopen -repair -repeat -replace -report -require -rescue -resemble -resist -resource -response -result -retire -retreat -return -reunion -reveal -review -reward -rhythm -rib -ribbon -rice -rich -ride -ridge -rifle -right -rigid -ring -riot -ripple -risk -ritual -rival -river -road -roast -robot -robust -rocket -romance -roof -rookie -room -rose -rotate -rough -round -route -royal -rubber -rude -rug -rule -run -runway -rural -sad -saddle -sadness -safe -sail -salad -salmon -salon -salt -salute -same -sample -sand -satisfy -satoshi -sauce -sausage -save -say -scale -scan -scare -scatter -scene -scheme -school -science -scissors -scorpion -scout -scrap -screen -script -scrub -sea -search -season -seat -second -secret -section -security -seed -seek -segment -select -sell -seminar -senior -sense -sentence -series -service -session -settle -setup -seven -shadow -shaft -shallow -share -shed -shell -sheriff -shield -shift -shine -ship -shiver -shock -shoe -shoot -shop -short -shoulder -shove -shrimp -shrug -shuffle -shy -sibling -sick -side -siege -sight -sign -silent -silk -silly -silver -similar -simple -since -sing -siren -sister -situate -six -size -skate -sketch -ski -skill -skin -skirt -skull -slab -slam -sleep -slender -slice -slide -slight -slim -slogan -slot -slow -slush -small -smart -smile -smoke -smooth -snack -snake -snap -sniff -snow -soap -soccer -social -sock -soda -soft -solar -soldier -solid -solution -solve -someone -song -soon -sorry -sort -soul -sound -soup -source -south -space -spare -spatial -spawn -speak -special -speed -spell -spend -sphere -spice -spider -spike -spin -spirit -split -spoil -sponsor -spoon -sport -spot -spray -spread -spring -spy -square -squeeze -squirrel -stable -stadium -staff -stage -stairs -stamp -stand -start -state -stay -steak -steel -stem -step -stereo -stick -still -sting -stock -stomach -stone -stool -story -stove -strategy -street -strike -strong -struggle -student -stuff -stumble -style -subject -submit -subway -success -such -sudden -suffer -sugar -suggest -suit -summer -sun -sunny -sunset -super -supply -supreme -sure -surface -surge -surprise -surround -survey -suspect -sustain -swallow -swamp -swap -swarm -swear -sweet -swift -swim -swing -switch -sword -symbol -symptom -syrup -system -table -tackle -tag -tail -talent -talk -tank -tape -target -task -taste -tattoo -taxi -teach -team -tell -ten -tenant -tennis -tent -term -test -text -thank -that -theme -then -theory -there -they -thing -this -thought -three -thrive -throw -thumb -thunder -ticket -tide -tiger -tilt -timber -time -tiny -tip -tired -tissue -title -toast -tobacco -today -toddler -toe -together -toilet -token -tomato -tomorrow -tone -tongue -tonight -tool -tooth -top -topic -topple -torch -tornado -tortoise -toss -total -tourist -toward -tower -town -toy -track -trade -traffic -tragic -train -transfer -trap -trash -travel -tray -treat -tree -trend -trial -tribe -trick -trigger -trim -trip -trophy -trouble -truck -true -truly -trumpet -trust -truth -try -tube -tuition -tumble -tuna -tunnel -turkey -turn -turtle -twelve -twenty -twice -twin -twist -two -type -typical -ugly -umbrella -unable -unaware -uncle -uncover -under -undo -unfair -unfold -unhappy -uniform -unique -unit -universe -unknown -unlock -until -unusual -unveil -update -upgrade -uphold -upon -upper -upset -urban -urge -usage -use -used -useful -useless -usual -utility -vacant -vacuum -vague -valid -valley -valve -van -vanish -vapor -various -vast -vault -vehicle -velvet -vendor -venture -venue -verb -verify -version -very -vessel -veteran -viable -vibrant -vicious -victory -video -view -village -vintage -violin -virtual -virus -visa -visit -visual -vital -vivid -vocal -voice -void -volcano -volume -vote -voyage -wage -wagon -wait -walk -wall -walnut -want -warfare -warm -warrior -wash -wasp -waste -water -wave -way -wealth -weapon -wear -weasel -weather -web -wedding -weekend -weird -welcome -west -wet -whale -what -wheat -wheel -when -where -whip -whisper -wide -width -wife -wild -will -win -window -wine -wing -wink -winner -winter -wire -wisdom -wise -wish -witness -wolf -woman -wonder -wood -wool -word -work -world -worry -worth -wrap -wreck -wrestle -wrist -write -wrong -yard -year -yellow -you -young -youth -zebra -zero -zone -zoo`.split('\n'); diff --git a/node_modules/@scure/bip39/wordlists/french.d.ts b/node_modules/@scure/bip39/wordlists/french.d.ts deleted file mode 100644 index b566a1db..00000000 --- a/node_modules/@scure/bip39/wordlists/french.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const wordlist: string[]; diff --git a/node_modules/@scure/bip39/wordlists/french.js b/node_modules/@scure/bip39/wordlists/french.js deleted file mode 100644 index 60105821..00000000 --- a/node_modules/@scure/bip39/wordlists/french.js +++ /dev/null @@ -1,2051 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.wordlist = void 0; -exports.wordlist = `abaisser -abandon -abdiquer -abeille -abolir -aborder -aboutir -aboyer -abrasif -abreuver -abriter -abroger -abrupt -absence -absolu -absurde -abusif -abyssal -académie -acajou -acarien -accabler -accepter -acclamer -accolade -accroche -accuser -acerbe -achat -acheter -aciduler -acier -acompte -acquérir -acronyme -acteur -actif -actuel -adepte -adéquat -adhésif -adjectif -adjuger -admettre -admirer -adopter -adorer -adoucir -adresse -adroit -adulte -adverbe -aérer -aéronef -affaire -affecter -affiche -affreux -affubler -agacer -agencer -agile -agiter -agrafer -agréable -agrume -aider -aiguille -ailier -aimable -aisance -ajouter -ajuster -alarmer -alchimie -alerte -algèbre -algue -aliéner -aliment -alléger -alliage -allouer -allumer -alourdir -alpaga -altesse -alvéole -amateur -ambigu -ambre -aménager -amertume -amidon -amiral -amorcer -amour -amovible -amphibie -ampleur -amusant -analyse -anaphore -anarchie -anatomie -ancien -anéantir -angle -angoisse -anguleux -animal -annexer -annonce -annuel -anodin -anomalie -anonyme -anormal -antenne -antidote -anxieux -apaiser -apéritif -aplanir -apologie -appareil -appeler -apporter -appuyer -aquarium -aqueduc -arbitre -arbuste -ardeur -ardoise -argent -arlequin -armature -armement -armoire -armure -arpenter -arracher -arriver -arroser -arsenic -artériel -article -aspect -asphalte -aspirer -assaut -asservir -assiette -associer -assurer -asticot -astre -astuce -atelier -atome -atrium -atroce -attaque -attentif -attirer -attraper -aubaine -auberge -audace -audible -augurer -aurore -automne -autruche -avaler -avancer -avarice -avenir -averse -aveugle -aviateur -avide -avion -aviser -avoine -avouer -avril -axial -axiome -badge -bafouer -bagage -baguette -baignade -balancer -balcon -baleine -balisage -bambin -bancaire -bandage -banlieue -bannière -banquier -barbier -baril -baron -barque -barrage -bassin -bastion -bataille -bateau -batterie -baudrier -bavarder -belette -bélier -belote -bénéfice -berceau -berger -berline -bermuda -besace -besogne -bétail -beurre -biberon -bicycle -bidule -bijou -bilan -bilingue -billard -binaire -biologie -biopsie -biotype -biscuit -bison -bistouri -bitume -bizarre -blafard -blague -blanchir -blessant -blinder -blond -bloquer -blouson -bobard -bobine -boire -boiser -bolide -bonbon -bondir -bonheur -bonifier -bonus -bordure -borne -botte -boucle -boueux -bougie -boulon -bouquin -bourse -boussole -boutique -boxeur -branche -brasier -brave -brebis -brèche -breuvage -bricoler -brigade -brillant -brioche -brique -brochure -broder -bronzer -brousse -broyeur -brume -brusque -brutal -bruyant -buffle -buisson -bulletin -bureau -burin -bustier -butiner -butoir -buvable -buvette -cabanon -cabine -cachette -cadeau -cadre -caféine -caillou -caisson -calculer -calepin -calibre -calmer -calomnie -calvaire -camarade -caméra -camion -campagne -canal -caneton -canon -cantine -canular -capable -caporal -caprice -capsule -capter -capuche -carabine -carbone -caresser -caribou -carnage -carotte -carreau -carton -cascade -casier -casque -cassure -causer -caution -cavalier -caverne -caviar -cédille -ceinture -céleste -cellule -cendrier -censurer -central -cercle -cérébral -cerise -cerner -cerveau -cesser -chagrin -chaise -chaleur -chambre -chance -chapitre -charbon -chasseur -chaton -chausson -chavirer -chemise -chenille -chéquier -chercher -cheval -chien -chiffre -chignon -chimère -chiot -chlorure -chocolat -choisir -chose -chouette -chrome -chute -cigare -cigogne -cimenter -cinéma -cintrer -circuler -cirer -cirque -citerne -citoyen -citron -civil -clairon -clameur -claquer -classe -clavier -client -cligner -climat -clivage -cloche -clonage -cloporte -cobalt -cobra -cocasse -cocotier -coder -codifier -coffre -cogner -cohésion -coiffer -coincer -colère -colibri -colline -colmater -colonel -combat -comédie -commande -compact -concert -conduire -confier -congeler -connoter -consonne -contact -convexe -copain -copie -corail -corbeau -cordage -corniche -corpus -correct -cortège -cosmique -costume -coton -coude -coupure -courage -couteau -couvrir -coyote -crabe -crainte -cravate -crayon -créature -créditer -crémeux -creuser -crevette -cribler -crier -cristal -critère -croire -croquer -crotale -crucial -cruel -crypter -cubique -cueillir -cuillère -cuisine -cuivre -culminer -cultiver -cumuler -cupide -curatif -curseur -cyanure -cycle -cylindre -cynique -daigner -damier -danger -danseur -dauphin -débattre -débiter -déborder -débrider -débutant -décaler -décembre -déchirer -décider -déclarer -décorer -décrire -décupler -dédale -déductif -déesse -défensif -défiler -défrayer -dégager -dégivrer -déglutir -dégrafer -déjeuner -délice -déloger -demander -demeurer -démolir -dénicher -dénouer -dentelle -dénuder -départ -dépenser -déphaser -déplacer -déposer -déranger -dérober -désastre -descente -désert -désigner -désobéir -dessiner -destrier -détacher -détester -détourer -détresse -devancer -devenir -deviner -devoir -diable -dialogue -diamant -dicter -différer -digérer -digital -digne -diluer -dimanche -diminuer -dioxyde -directif -diriger -discuter -disposer -dissiper -distance -divertir -diviser -docile -docteur -dogme -doigt -domaine -domicile -dompter -donateur -donjon -donner -dopamine -dortoir -dorure -dosage -doseur -dossier -dotation -douanier -double -douceur -douter -doyen -dragon -draper -dresser -dribbler -droiture -duperie -duplexe -durable -durcir -dynastie -éblouir -écarter -écharpe -échelle -éclairer -éclipse -éclore -écluse -école -économie -écorce -écouter -écraser -écrémer -écrivain -écrou -écume -écureuil -édifier -éduquer -effacer -effectif -effigie -effort -effrayer -effusion -égaliser -égarer -éjecter -élaborer -élargir -électron -élégant -éléphant -élève -éligible -élitisme -éloge -élucider -éluder -emballer -embellir -embryon -émeraude -émission -emmener -émotion -émouvoir -empereur -employer -emporter -emprise -émulsion -encadrer -enchère -enclave -encoche -endiguer -endosser -endroit -enduire -énergie -enfance -enfermer -enfouir -engager -engin -englober -énigme -enjamber -enjeu -enlever -ennemi -ennuyeux -enrichir -enrobage -enseigne -entasser -entendre -entier -entourer -entraver -énumérer -envahir -enviable -envoyer -enzyme -éolien -épaissir -épargne -épatant -épaule -épicerie -épidémie -épier -épilogue -épine -épisode -épitaphe -époque -épreuve -éprouver -épuisant -équerre -équipe -ériger -érosion -erreur -éruption -escalier -espadon -espèce -espiègle -espoir -esprit -esquiver -essayer -essence -essieu -essorer -estime -estomac -estrade -étagère -étaler -étanche -étatique -éteindre -étendoir -éternel -éthanol -éthique -ethnie -étirer -étoffer -étoile -étonnant -étourdir -étrange -étroit -étude -euphorie -évaluer -évasion -éventail -évidence -éviter -évolutif -évoquer -exact -exagérer -exaucer -exceller -excitant -exclusif -excuse -exécuter -exemple -exercer -exhaler -exhorter -exigence -exiler -exister -exotique -expédier -explorer -exposer -exprimer -exquis -extensif -extraire -exulter -fable -fabuleux -facette -facile -facture -faiblir -falaise -fameux -famille -farceur -farfelu -farine -farouche -fasciner -fatal -fatigue -faucon -fautif -faveur -favori -fébrile -féconder -fédérer -félin -femme -fémur -fendoir -féodal -fermer -féroce -ferveur -festival -feuille -feutre -février -fiasco -ficeler -fictif -fidèle -figure -filature -filetage -filière -filleul -filmer -filou -filtrer -financer -finir -fiole -firme -fissure -fixer -flairer -flamme -flasque -flatteur -fléau -flèche -fleur -flexion -flocon -flore -fluctuer -fluide -fluvial -folie -fonderie -fongible -fontaine -forcer -forgeron -formuler -fortune -fossile -foudre -fougère -fouiller -foulure -fourmi -fragile -fraise -franchir -frapper -frayeur -frégate -freiner -frelon -frémir -frénésie -frère -friable -friction -frisson -frivole -froid -fromage -frontal -frotter -fruit -fugitif -fuite -fureur -furieux -furtif -fusion -futur -gagner -galaxie -galerie -gambader -garantir -gardien -garnir -garrigue -gazelle -gazon -géant -gélatine -gélule -gendarme -général -génie -genou -gentil -géologie -géomètre -géranium -germe -gestuel -geyser -gibier -gicler -girafe -givre -glace -glaive -glisser -globe -gloire -glorieux -golfeur -gomme -gonfler -gorge -gorille -goudron -gouffre -goulot -goupille -gourmand -goutte -graduel -graffiti -graine -grand -grappin -gratuit -gravir -grenat -griffure -griller -grimper -grogner -gronder -grotte -groupe -gruger -grutier -gruyère -guépard -guerrier -guide -guimauve -guitare -gustatif -gymnaste -gyrostat -habitude -hachoir -halte -hameau -hangar -hanneton -haricot -harmonie -harpon -hasard -hélium -hématome -herbe -hérisson -hermine -héron -hésiter -heureux -hiberner -hibou -hilarant -histoire -hiver -homard -hommage -homogène -honneur -honorer -honteux -horde -horizon -horloge -hormone -horrible -houleux -housse -hublot -huileux -humain -humble -humide -humour -hurler -hydromel -hygiène -hymne -hypnose -idylle -ignorer -iguane -illicite -illusion -image -imbiber -imiter -immense -immobile -immuable -impact -impérial -implorer -imposer -imprimer -imputer -incarner -incendie -incident -incliner -incolore -indexer -indice -inductif -inédit -ineptie -inexact -infini -infliger -informer -infusion -ingérer -inhaler -inhiber -injecter -injure -innocent -inoculer -inonder -inscrire -insecte -insigne -insolite -inspirer -instinct -insulter -intact -intense -intime -intrigue -intuitif -inutile -invasion -inventer -inviter -invoquer -ironique -irradier -irréel -irriter -isoler -ivoire -ivresse -jaguar -jaillir -jambe -janvier -jardin -jauger -jaune -javelot -jetable -jeton -jeudi -jeunesse -joindre -joncher -jongler -joueur -jouissif -journal -jovial -joyau -joyeux -jubiler -jugement -junior -jupon -juriste -justice -juteux -juvénile -kayak -kimono -kiosque -label -labial -labourer -lacérer -lactose -lagune -laine -laisser -laitier -lambeau -lamelle -lampe -lanceur -langage -lanterne -lapin -largeur -larme -laurier -lavabo -lavoir -lecture -légal -léger -légume -lessive -lettre -levier -lexique -lézard -liasse -libérer -libre -licence -licorne -liège -lièvre -ligature -ligoter -ligue -limer -limite -limonade -limpide -linéaire -lingot -lionceau -liquide -lisière -lister -lithium -litige -littoral -livreur -logique -lointain -loisir -lombric -loterie -louer -lourd -loutre -louve -loyal -lubie -lucide -lucratif -lueur -lugubre -luisant -lumière -lunaire -lundi -luron -lutter -luxueux -machine -magasin -magenta -magique -maigre -maillon -maintien -mairie -maison -majorer -malaxer -maléfice -malheur -malice -mallette -mammouth -mandater -maniable -manquant -manteau -manuel -marathon -marbre -marchand -mardi -maritime -marqueur -marron -marteler -mascotte -massif -matériel -matière -matraque -maudire -maussade -mauve -maximal -méchant -méconnu -médaille -médecin -méditer -méduse -meilleur -mélange -mélodie -membre -mémoire -menacer -mener -menhir -mensonge -mentor -mercredi -mérite -merle -messager -mesure -métal -météore -méthode -métier -meuble -miauler -microbe -miette -mignon -migrer -milieu -million -mimique -mince -minéral -minimal -minorer -minute -miracle -miroiter -missile -mixte -mobile -moderne -moelleux -mondial -moniteur -monnaie -monotone -monstre -montagne -monument -moqueur -morceau -morsure -mortier -moteur -motif -mouche -moufle -moulin -mousson -mouton -mouvant -multiple -munition -muraille -murène -murmure -muscle -muséum -musicien -mutation -muter -mutuel -myriade -myrtille -mystère -mythique -nageur -nappe -narquois -narrer -natation -nation -nature -naufrage -nautique -navire -nébuleux -nectar -néfaste -négation -négliger -négocier -neige -nerveux -nettoyer -neurone -neutron -neveu -niche -nickel -nitrate -niveau -noble -nocif -nocturne -noirceur -noisette -nomade -nombreux -nommer -normatif -notable -notifier -notoire -nourrir -nouveau -novateur -novembre -novice -nuage -nuancer -nuire -nuisible -numéro -nuptial -nuque -nutritif -obéir -objectif -obliger -obscur -observer -obstacle -obtenir -obturer -occasion -occuper -océan -octobre -octroyer -octupler -oculaire -odeur -odorant -offenser -officier -offrir -ogive -oiseau -oisillon -olfactif -olivier -ombrage -omettre -onctueux -onduler -onéreux -onirique -opale -opaque -opérer -opinion -opportun -opprimer -opter -optique -orageux -orange -orbite -ordonner -oreille -organe -orgueil -orifice -ornement -orque -ortie -osciller -osmose -ossature -otarie -ouragan -ourson -outil -outrager -ouvrage -ovation -oxyde -oxygène -ozone -paisible -palace -palmarès -palourde -palper -panache -panda -pangolin -paniquer -panneau -panorama -pantalon -papaye -papier -papoter -papyrus -paradoxe -parcelle -paresse -parfumer -parler -parole -parrain -parsemer -partager -parure -parvenir -passion -pastèque -paternel -patience -patron -pavillon -pavoiser -payer -paysage -peigne -peintre -pelage -pélican -pelle -pelouse -peluche -pendule -pénétrer -pénible -pensif -pénurie -pépite -péplum -perdrix -perforer -période -permuter -perplexe -persil -perte -peser -pétale -petit -pétrir -peuple -pharaon -phobie -phoque -photon -phrase -physique -piano -pictural -pièce -pierre -pieuvre -pilote -pinceau -pipette -piquer -pirogue -piscine -piston -pivoter -pixel -pizza -placard -plafond -plaisir -planer -plaque -plastron -plateau -pleurer -plexus -pliage -plomb -plonger -pluie -plumage -pochette -poésie -poète -pointe -poirier -poisson -poivre -polaire -policier -pollen -polygone -pommade -pompier -ponctuel -pondérer -poney -portique -position -posséder -posture -potager -poteau -potion -pouce -poulain -poumon -pourpre -poussin -pouvoir -prairie -pratique -précieux -prédire -préfixe -prélude -prénom -présence -prétexte -prévoir -primitif -prince -prison -priver -problème -procéder -prodige -profond -progrès -proie -projeter -prologue -promener -propre -prospère -protéger -prouesse -proverbe -prudence -pruneau -psychose -public -puceron -puiser -pulpe -pulsar -punaise -punitif -pupitre -purifier -puzzle -pyramide -quasar -querelle -question -quiétude -quitter -quotient -racine -raconter -radieux -ragondin -raideur -raisin -ralentir -rallonge -ramasser -rapide -rasage -ratisser -ravager -ravin -rayonner -réactif -réagir -réaliser -réanimer -recevoir -réciter -réclamer -récolter -recruter -reculer -recycler -rédiger -redouter -refaire -réflexe -réformer -refrain -refuge -régalien -région -réglage -régulier -réitérer -rejeter -rejouer -relatif -relever -relief -remarque -remède -remise -remonter -remplir -remuer -renard -renfort -renifler -renoncer -rentrer -renvoi -replier -reporter -reprise -reptile -requin -réserve -résineux -résoudre -respect -rester -résultat -rétablir -retenir -réticule -retomber -retracer -réunion -réussir -revanche -revivre -révolte -révulsif -richesse -rideau -rieur -rigide -rigoler -rincer -riposter -risible -risque -rituel -rival -rivière -rocheux -romance -rompre -ronce -rondin -roseau -rosier -rotatif -rotor -rotule -rouge -rouille -rouleau -routine -royaume -ruban -rubis -ruche -ruelle -rugueux -ruiner -ruisseau -ruser -rustique -rythme -sabler -saboter -sabre -sacoche -safari -sagesse -saisir -salade -salive -salon -saluer -samedi -sanction -sanglier -sarcasme -sardine -saturer -saugrenu -saumon -sauter -sauvage -savant -savonner -scalpel -scandale -scélérat -scénario -sceptre -schéma -science -scinder -score -scrutin -sculpter -séance -sécable -sécher -secouer -sécréter -sédatif -séduire -seigneur -séjour -sélectif -semaine -sembler -semence -séminal -sénateur -sensible -sentence -séparer -séquence -serein -sergent -sérieux -serrure -sérum -service -sésame -sévir -sevrage -sextuple -sidéral -siècle -siéger -siffler -sigle -signal -silence -silicium -simple -sincère -sinistre -siphon -sirop -sismique -situer -skier -social -socle -sodium -soigneux -soldat -soleil -solitude -soluble -sombre -sommeil -somnoler -sonde -songeur -sonnette -sonore -sorcier -sortir -sosie -sottise -soucieux -soudure -souffle -soulever -soupape -source -soutirer -souvenir -spacieux -spatial -spécial -sphère -spiral -stable -station -sternum -stimulus -stipuler -strict -studieux -stupeur -styliste -sublime -substrat -subtil -subvenir -succès -sucre -suffixe -suggérer -suiveur -sulfate -superbe -supplier -surface -suricate -surmener -surprise -sursaut -survie -suspect -syllabe -symbole -symétrie -synapse -syntaxe -système -tabac -tablier -tactile -tailler -talent -talisman -talonner -tambour -tamiser -tangible -tapis -taquiner -tarder -tarif -tartine -tasse -tatami -tatouage -taupe -taureau -taxer -témoin -temporel -tenaille -tendre -teneur -tenir -tension -terminer -terne -terrible -tétine -texte -thème -théorie -thérapie -thorax -tibia -tiède -timide -tirelire -tiroir -tissu -titane -titre -tituber -toboggan -tolérant -tomate -tonique -tonneau -toponyme -torche -tordre -tornade -torpille -torrent -torse -tortue -totem -toucher -tournage -tousser -toxine -traction -trafic -tragique -trahir -train -trancher -travail -trèfle -tremper -trésor -treuil -triage -tribunal -tricoter -trilogie -triomphe -tripler -triturer -trivial -trombone -tronc -tropical -troupeau -tuile -tulipe -tumulte -tunnel -turbine -tuteur -tutoyer -tuyau -tympan -typhon -typique -tyran -ubuesque -ultime -ultrason -unanime -unifier -union -unique -unitaire -univers -uranium -urbain -urticant -usage -usine -usuel -usure -utile -utopie -vacarme -vaccin -vagabond -vague -vaillant -vaincre -vaisseau -valable -valise -vallon -valve -vampire -vanille -vapeur -varier -vaseux -vassal -vaste -vecteur -vedette -végétal -véhicule -veinard -véloce -vendredi -vénérer -venger -venimeux -ventouse -verdure -vérin -vernir -verrou -verser -vertu -veston -vétéran -vétuste -vexant -vexer -viaduc -viande -victoire -vidange -vidéo -vignette -vigueur -vilain -village -vinaigre -violon -vipère -virement -virtuose -virus -visage -viseur -vision -visqueux -visuel -vital -vitesse -viticole -vitrine -vivace -vivipare -vocation -voguer -voile -voisin -voiture -volaille -volcan -voltiger -volume -vorace -vortex -voter -vouloir -voyage -voyelle -wagon -xénon -yacht -zèbre -zénith -zeste -zoologie`.split('\n'); diff --git a/node_modules/@scure/bip39/wordlists/italian.d.ts b/node_modules/@scure/bip39/wordlists/italian.d.ts deleted file mode 100644 index b566a1db..00000000 --- a/node_modules/@scure/bip39/wordlists/italian.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const wordlist: string[]; diff --git a/node_modules/@scure/bip39/wordlists/italian.js b/node_modules/@scure/bip39/wordlists/italian.js deleted file mode 100644 index 7eabb0e4..00000000 --- a/node_modules/@scure/bip39/wordlists/italian.js +++ /dev/null @@ -1,2051 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.wordlist = void 0; -exports.wordlist = `abaco -abbaglio -abbinato -abete -abisso -abolire -abrasivo -abrogato -accadere -accenno -accusato -acetone -achille -acido -acqua -acre -acrilico -acrobata -acuto -adagio -addebito -addome -adeguato -aderire -adipe -adottare -adulare -affabile -affetto -affisso -affranto -aforisma -afoso -africano -agave -agente -agevole -aggancio -agire -agitare -agonismo -agricolo -agrumeto -aguzzo -alabarda -alato -albatro -alberato -albo -albume -alce -alcolico -alettone -alfa -algebra -aliante -alibi -alimento -allagato -allegro -allievo -allodola -allusivo -almeno -alogeno -alpaca -alpestre -altalena -alterno -alticcio -altrove -alunno -alveolo -alzare -amalgama -amanita -amarena -ambito -ambrato -ameba -america -ametista -amico -ammasso -ammenda -ammirare -ammonito -amore -ampio -ampliare -amuleto -anacardo -anagrafe -analista -anarchia -anatra -anca -ancella -ancora -andare -andrea -anello -angelo -angolare -angusto -anima -annegare -annidato -anno -annuncio -anonimo -anticipo -anzi -apatico -apertura -apode -apparire -appetito -appoggio -approdo -appunto -aprile -arabica -arachide -aragosta -araldica -arancio -aratura -arazzo -arbitro -archivio -ardito -arenile -argento -argine -arguto -aria -armonia -arnese -arredato -arringa -arrosto -arsenico -arso -artefice -arzillo -asciutto -ascolto -asepsi -asettico -asfalto -asino -asola -aspirato -aspro -assaggio -asse -assoluto -assurdo -asta -astenuto -astice -astratto -atavico -ateismo -atomico -atono -attesa -attivare -attorno -attrito -attuale -ausilio -austria -autista -autonomo -autunno -avanzato -avere -avvenire -avviso -avvolgere -azione -azoto -azzimo -azzurro -babele -baccano -bacino -baco -badessa -badilata -bagnato -baita -balcone -baldo -balena -ballata -balzano -bambino -bandire -baraonda -barbaro -barca -baritono -barlume -barocco -basilico -basso -batosta -battuto -baule -bava -bavosa -becco -beffa -belgio -belva -benda -benevole -benigno -benzina -bere -berlina -beta -bibita -bici -bidone -bifido -biga -bilancia -bimbo -binocolo -biologo -bipede -bipolare -birbante -birra -biscotto -bisesto -bisnonno -bisonte -bisturi -bizzarro -blando -blatta -bollito -bonifico -bordo -bosco -botanico -bottino -bozzolo -braccio -bradipo -brama -branca -bravura -bretella -brevetto -brezza -briglia -brillante -brindare -broccolo -brodo -bronzina -brullo -bruno -bubbone -buca -budino -buffone -buio -bulbo -buono -burlone -burrasca -bussola -busta -cadetto -caduco -calamaro -calcolo -calesse -calibro -calmo -caloria -cambusa -camerata -camicia -cammino -camola -campale -canapa -candela -cane -canino -canotto -cantina -capace -capello -capitolo -capogiro -cappero -capra -capsula -carapace -carcassa -cardo -carisma -carovana -carretto -cartolina -casaccio -cascata -caserma -caso -cassone -castello -casuale -catasta -catena -catrame -cauto -cavillo -cedibile -cedrata -cefalo -celebre -cellulare -cena -cenone -centesimo -ceramica -cercare -certo -cerume -cervello -cesoia -cespo -ceto -chela -chiaro -chicca -chiedere -chimera -china -chirurgo -chitarra -ciao -ciclismo -cifrare -cigno -cilindro -ciottolo -circa -cirrosi -citrico -cittadino -ciuffo -civetta -civile -classico -clinica -cloro -cocco -codardo -codice -coerente -cognome -collare -colmato -colore -colposo -coltivato -colza -coma -cometa -commando -comodo -computer -comune -conciso -condurre -conferma -congelare -coniuge -connesso -conoscere -consumo -continuo -convegno -coperto -copione -coppia -copricapo -corazza -cordata -coricato -cornice -corolla -corpo -corredo -corsia -cortese -cosmico -costante -cottura -covato -cratere -cravatta -creato -credere -cremoso -crescita -creta -criceto -crinale -crisi -critico -croce -cronaca -crostata -cruciale -crusca -cucire -cuculo -cugino -cullato -cupola -curatore -cursore -curvo -cuscino -custode -dado -daino -dalmata -damerino -daniela -dannoso -danzare -datato -davanti -davvero -debutto -decennio -deciso -declino -decollo -decreto -dedicato -definito -deforme -degno -delegare -delfino -delirio -delta -demenza -denotato -dentro -deposito -derapata -derivare -deroga -descritto -deserto -desiderio -desumere -detersivo -devoto -diametro -dicembre -diedro -difeso -diffuso -digerire -digitale -diluvio -dinamico -dinnanzi -dipinto -diploma -dipolo -diradare -dire -dirotto -dirupo -disagio -discreto -disfare -disgelo -disposto -distanza -disumano -dito -divano -divelto -dividere -divorato -doblone -docente -doganale -dogma -dolce -domato -domenica -dominare -dondolo -dono -dormire -dote -dottore -dovuto -dozzina -drago -druido -dubbio -dubitare -ducale -duna -duomo -duplice -duraturo -ebano -eccesso -ecco -eclissi -economia -edera -edicola -edile -editoria -educare -egemonia -egli -egoismo -egregio -elaborato -elargire -elegante -elencato -eletto -elevare -elfico -elica -elmo -elsa -eluso -emanato -emblema -emesso -emiro -emotivo -emozione -empirico -emulo -endemico -enduro -energia -enfasi -enoteca -entrare -enzima -epatite -epilogo -episodio -epocale -eppure -equatore -erario -erba -erboso -erede -eremita -erigere -ermetico -eroe -erosivo -errante -esagono -esame -esanime -esaudire -esca -esempio -esercito -esibito -esigente -esistere -esito -esofago -esortato -esoso -espanso -espresso -essenza -esso -esteso -estimare -estonia -estroso -esultare -etilico -etnico -etrusco -etto -euclideo -europa -evaso -evidenza -evitato -evoluto -evviva -fabbrica -faccenda -fachiro -falco -famiglia -fanale -fanfara -fango -fantasma -fare -farfalla -farinoso -farmaco -fascia -fastoso -fasullo -faticare -fato -favoloso -febbre -fecola -fede -fegato -felpa -feltro -femmina -fendere -fenomeno -fermento -ferro -fertile -fessura -festivo -fetta -feudo -fiaba -fiducia -fifa -figurato -filo -finanza -finestra -finire -fiore -fiscale -fisico -fiume -flacone -flamenco -flebo -flemma -florido -fluente -fluoro -fobico -focaccia -focoso -foderato -foglio -folata -folclore -folgore -fondente -fonetico -fonia -fontana -forbito -forchetta -foresta -formica -fornaio -foro -fortezza -forzare -fosfato -fosso -fracasso -frana -frassino -fratello -freccetta -frenata -fresco -frigo -frollino -fronde -frugale -frutta -fucilata -fucsia -fuggente -fulmine -fulvo -fumante -fumetto -fumoso -fune -funzione -fuoco -furbo -furgone -furore -fuso -futile -gabbiano -gaffe -galateo -gallina -galoppo -gambero -gamma -garanzia -garbo -garofano -garzone -gasdotto -gasolio -gastrico -gatto -gaudio -gazebo -gazzella -geco -gelatina -gelso -gemello -gemmato -gene -genitore -gennaio -genotipo -gergo -ghepardo -ghiaccio -ghisa -giallo -gilda -ginepro -giocare -gioiello -giorno -giove -girato -girone -gittata -giudizio -giurato -giusto -globulo -glutine -gnomo -gobba -golf -gomito -gommone -gonfio -gonna -governo -gracile -grado -grafico -grammo -grande -grattare -gravoso -grazia -greca -gregge -grifone -grigio -grinza -grotta -gruppo -guadagno -guaio -guanto -guardare -gufo -guidare -ibernato -icona -identico -idillio -idolo -idra -idrico -idrogeno -igiene -ignaro -ignorato -ilare -illeso -illogico -illudere -imballo -imbevuto -imbocco -imbuto -immane -immerso -immolato -impacco -impeto -impiego -importo -impronta -inalare -inarcare -inattivo -incanto -incendio -inchino -incisivo -incluso -incontro -incrocio -incubo -indagine -india -indole -inedito -infatti -infilare -inflitto -ingaggio -ingegno -inglese -ingordo -ingrosso -innesco -inodore -inoltrare -inondato -insano -insetto -insieme -insonnia -insulina -intasato -intero -intonaco -intuito -inumidire -invalido -invece -invito -iperbole -ipnotico -ipotesi -ippica -iride -irlanda -ironico -irrigato -irrorare -isolato -isotopo -isterico -istituto -istrice -italia -iterare -labbro -labirinto -lacca -lacerato -lacrima -lacuna -laddove -lago -lampo -lancetta -lanterna -lardoso -larga -laringe -lastra -latenza -latino -lattuga -lavagna -lavoro -legale -leggero -lembo -lentezza -lenza -leone -lepre -lesivo -lessato -lesto -letterale -leva -levigato -libero -lido -lievito -lilla -limatura -limitare -limpido -lineare -lingua -liquido -lira -lirica -lisca -lite -litigio -livrea -locanda -lode -logica -lombare -londra -longevo -loquace -lorenzo -loto -lotteria -luce -lucidato -lumaca -luminoso -lungo -lupo -luppolo -lusinga -lusso -lutto -macabro -macchina -macero -macinato -madama -magico -maglia -magnete -magro -maiolica -malafede -malgrado -malinteso -malsano -malto -malumore -mana -mancia -mandorla -mangiare -manifesto -mannaro -manovra -mansarda -mantide -manubrio -mappa -maratona -marcire -maretta -marmo -marsupio -maschera -massaia -mastino -materasso -matricola -mattone -maturo -mazurca -meandro -meccanico -mecenate -medesimo -meditare -mega -melassa -melis -melodia -meninge -meno -mensola -mercurio -merenda -merlo -meschino -mese -messere -mestolo -metallo -metodo -mettere -miagolare -mica -micelio -michele -microbo -midollo -miele -migliore -milano -milite -mimosa -minerale -mini -minore -mirino -mirtillo -miscela -missiva -misto -misurare -mitezza -mitigare -mitra -mittente -mnemonico -modello -modifica -modulo -mogano -mogio -mole -molosso -monastero -monco -mondina -monetario -monile -monotono -monsone -montato -monviso -mora -mordere -morsicato -mostro -motivato -motosega -motto -movenza -movimento -mozzo -mucca -mucosa -muffa -mughetto -mugnaio -mulatto -mulinello -multiplo -mummia -munto -muovere -murale -musa -muscolo -musica -mutevole -muto -nababbo -nafta -nanometro -narciso -narice -narrato -nascere -nastrare -naturale -nautica -naviglio -nebulosa -necrosi -negativo -negozio -nemmeno -neofita -neretto -nervo -nessuno -nettuno -neutrale -neve -nevrotico -nicchia -ninfa -nitido -nobile -nocivo -nodo -nome -nomina -nordico -normale -norvegese -nostrano -notare -notizia -notturno -novella -nucleo -nulla -numero -nuovo -nutrire -nuvola -nuziale -oasi -obbedire -obbligo -obelisco -oblio -obolo -obsoleto -occasione -occhio -occidente -occorrere -occultare -ocra -oculato -odierno -odorare -offerta -offrire -offuscato -oggetto -oggi -ognuno -olandese -olfatto -oliato -oliva -ologramma -oltre -omaggio -ombelico -ombra -omega -omissione -ondoso -onere -onice -onnivoro -onorevole -onta -operato -opinione -opposto -oracolo -orafo -ordine -orecchino -orefice -orfano -organico -origine -orizzonte -orma -ormeggio -ornativo -orologio -orrendo -orribile -ortensia -ortica -orzata -orzo -osare -oscurare -osmosi -ospedale -ospite -ossa -ossidare -ostacolo -oste -otite -otre -ottagono -ottimo -ottobre -ovale -ovest -ovino -oviparo -ovocito -ovunque -ovviare -ozio -pacchetto -pace -pacifico -padella -padrone -paese -paga -pagina -palazzina -palesare -pallido -palo -palude -pandoro -pannello -paolo -paonazzo -paprica -parabola -parcella -parere -pargolo -pari -parlato -parola -partire -parvenza -parziale -passivo -pasticca -patacca -patologia -pattume -pavone -peccato -pedalare -pedonale -peggio -peloso -penare -pendice -penisola -pennuto -penombra -pensare -pentola -pepe -pepita -perbene -percorso -perdonato -perforare -pergamena -periodo -permesso -perno -perplesso -persuaso -pertugio -pervaso -pesatore -pesista -peso -pestifero -petalo -pettine -petulante -pezzo -piacere -pianta -piattino -piccino -picozza -piega -pietra -piffero -pigiama -pigolio -pigro -pila -pilifero -pillola -pilota -pimpante -pineta -pinna -pinolo -pioggia -piombo -piramide -piretico -pirite -pirolisi -pitone -pizzico -placebo -planare -plasma -platano -plenario -pochezza -poderoso -podismo -poesia -poggiare -polenta -poligono -pollice -polmonite -polpetta -polso -poltrona -polvere -pomice -pomodoro -ponte -popoloso -porfido -poroso -porpora -porre -portata -posa -positivo -possesso -postulato -potassio -potere -pranzo -prassi -pratica -precluso -predica -prefisso -pregiato -prelievo -premere -prenotare -preparato -presenza -pretesto -prevalso -prima -principe -privato -problema -procura -produrre -profumo -progetto -prolunga -promessa -pronome -proposta -proroga -proteso -prova -prudente -prugna -prurito -psiche -pubblico -pudica -pugilato -pugno -pulce -pulito -pulsante -puntare -pupazzo -pupilla -puro -quadro -qualcosa -quasi -querela -quota -raccolto -raddoppio -radicale -radunato -raffica -ragazzo -ragione -ragno -ramarro -ramingo -ramo -randagio -rantolare -rapato -rapina -rappreso -rasatura -raschiato -rasente -rassegna -rastrello -rata -ravveduto -reale -recepire -recinto -recluta -recondito -recupero -reddito -redimere -regalato -registro -regola -regresso -relazione -remare -remoto -renna -replica -reprimere -reputare -resa -residente -responso -restauro -rete -retina -retorica -rettifica -revocato -riassunto -ribadire -ribelle -ribrezzo -ricarica -ricco -ricevere -riciclato -ricordo -ricreduto -ridicolo -ridurre -rifasare -riflesso -riforma -rifugio -rigare -rigettato -righello -rilassato -rilevato -rimanere -rimbalzo -rimedio -rimorchio -rinascita -rincaro -rinforzo -rinnovo -rinomato -rinsavito -rintocco -rinuncia -rinvenire -riparato -ripetuto -ripieno -riportare -ripresa -ripulire -risata -rischio -riserva -risibile -riso -rispetto -ristoro -risultato -risvolto -ritardo -ritegno -ritmico -ritrovo -riunione -riva -riverso -rivincita -rivolto -rizoma -roba -robotico -robusto -roccia -roco -rodaggio -rodere -roditore -rogito -rollio -romantico -rompere -ronzio -rosolare -rospo -rotante -rotondo -rotula -rovescio -rubizzo -rubrica -ruga -rullino -rumine -rumoroso -ruolo -rupe -russare -rustico -sabato -sabbiare -sabotato -sagoma -salasso -saldatura -salgemma -salivare -salmone -salone -saltare -saluto -salvo -sapere -sapido -saporito -saraceno -sarcasmo -sarto -sassoso -satellite -satira -satollo -saturno -savana -savio -saziato -sbadiglio -sbalzo -sbancato -sbarra -sbattere -sbavare -sbendare -sbirciare -sbloccato -sbocciato -sbrinare -sbruffone -sbuffare -scabroso -scadenza -scala -scambiare -scandalo -scapola -scarso -scatenare -scavato -scelto -scenico -scettro -scheda -schiena -sciarpa -scienza -scindere -scippo -sciroppo -scivolo -sclerare -scodella -scolpito -scomparto -sconforto -scoprire -scorta -scossone -scozzese -scriba -scrollare -scrutinio -scuderia -scultore -scuola -scuro -scusare -sdebitare -sdoganare -seccatura -secondo -sedano -seggiola -segnalato -segregato -seguito -selciato -selettivo -sella -selvaggio -semaforo -sembrare -seme -seminato -sempre -senso -sentire -sepolto -sequenza -serata -serbato -sereno -serio -serpente -serraglio -servire -sestina -setola -settimana -sfacelo -sfaldare -sfamato -sfarzoso -sfaticato -sfera -sfida -sfilato -sfinge -sfocato -sfoderare -sfogo -sfoltire -sforzato -sfratto -sfruttato -sfuggito -sfumare -sfuso -sgabello -sgarbato -sgonfiare -sgorbio -sgrassato -sguardo -sibilo -siccome -sierra -sigla -signore -silenzio -sillaba -simbolo -simpatico -simulato -sinfonia -singolo -sinistro -sino -sintesi -sinusoide -sipario -sisma -sistole -situato -slitta -slogatura -sloveno -smarrito -smemorato -smentito -smeraldo -smilzo -smontare -smottato -smussato -snellire -snervato -snodo -sobbalzo -sobrio -soccorso -sociale -sodale -soffitto -sogno -soldato -solenne -solido -sollazzo -solo -solubile -solvente -somatico -somma -sonda -sonetto -sonnifero -sopire -soppeso -sopra -sorgere -sorpasso -sorriso -sorso -sorteggio -sorvolato -sospiro -sosta -sottile -spada -spalla -spargere -spatola -spavento -spazzola -specie -spedire -spegnere -spelatura -speranza -spessore -spettrale -spezzato -spia -spigoloso -spillato -spinoso -spirale -splendido -sportivo -sposo -spranga -sprecare -spronato -spruzzo -spuntino -squillo -sradicare -srotolato -stabile -stacco -staffa -stagnare -stampato -stantio -starnuto -stasera -statuto -stelo -steppa -sterzo -stiletto -stima -stirpe -stivale -stizzoso -stonato -storico -strappo -stregato -stridulo -strozzare -strutto -stuccare -stufo -stupendo -subentro -succoso -sudore -suggerito -sugo -sultano -suonare -superbo -supporto -surgelato -surrogato -sussurro -sutura -svagare -svedese -sveglio -svelare -svenuto -svezia -sviluppo -svista -svizzera -svolta -svuotare -tabacco -tabulato -tacciare -taciturno -tale -talismano -tampone -tannino -tara -tardivo -targato -tariffa -tarpare -tartaruga -tasto -tattico -taverna -tavolata -tazza -teca -tecnico -telefono -temerario -tempo -temuto -tendone -tenero -tensione -tentacolo -teorema -terme -terrazzo -terzetto -tesi -tesserato -testato -tetro -tettoia -tifare -tigella -timbro -tinto -tipico -tipografo -tiraggio -tiro -titanio -titolo -titubante -tizio -tizzone -toccare -tollerare -tolto -tombola -tomo -tonfo -tonsilla -topazio -topologia -toppa -torba -tornare -torrone -tortora -toscano -tossire -tostatura -totano -trabocco -trachea -trafila -tragedia -tralcio -tramonto -transito -trapano -trarre -trasloco -trattato -trave -treccia -tremolio -trespolo -tributo -tricheco -trifoglio -trillo -trincea -trio -tristezza -triturato -trivella -tromba -trono -troppo -trottola -trovare -truccato -tubatura -tuffato -tulipano -tumulto -tunisia -turbare -turchino -tuta -tutela -ubicato -uccello -uccisore -udire -uditivo -uffa -ufficio -uguale -ulisse -ultimato -umano -umile -umorismo -uncinetto -ungere -ungherese -unicorno -unificato -unisono -unitario -unte -uovo -upupa -uragano -urgenza -urlo -usanza -usato -uscito -usignolo -usuraio -utensile -utilizzo -utopia -vacante -vaccinato -vagabondo -vagliato -valanga -valgo -valico -valletta -valoroso -valutare -valvola -vampata -vangare -vanitoso -vano -vantaggio -vanvera -vapore -varano -varcato -variante -vasca -vedetta -vedova -veduto -vegetale -veicolo -velcro -velina -velluto -veloce -venato -vendemmia -vento -verace -verbale -vergogna -verifica -vero -verruca -verticale -vescica -vessillo -vestale -veterano -vetrina -vetusto -viandante -vibrante -vicenda -vichingo -vicinanza -vidimare -vigilia -vigneto -vigore -vile -villano -vimini -vincitore -viola -vipera -virgola -virologo -virulento -viscoso -visione -vispo -vissuto -visura -vita -vitello -vittima -vivanda -vivido -viziare -voce -voga -volatile -volere -volpe -voragine -vulcano -zampogna -zanna -zappato -zattera -zavorra -zefiro -zelante -zelo -zenzero -zerbino -zibetto -zinco -zircone -zitto -zolla -zotico -zucchero -zufolo -zulu -zuppa`.split('\n'); diff --git a/node_modules/@scure/bip39/wordlists/japanese.d.ts b/node_modules/@scure/bip39/wordlists/japanese.d.ts deleted file mode 100644 index b566a1db..00000000 --- a/node_modules/@scure/bip39/wordlists/japanese.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const wordlist: string[]; diff --git a/node_modules/@scure/bip39/wordlists/japanese.js b/node_modules/@scure/bip39/wordlists/japanese.js deleted file mode 100644 index 82eda6be..00000000 --- a/node_modules/@scure/bip39/wordlists/japanese.js +++ /dev/null @@ -1,2051 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.wordlist = void 0; -exports.wordlist = `あいこくしん -あいさつ -あいだ -あおぞら -あかちゃん -あきる -あけがた -あける -あこがれる -あさい -あさひ -あしあと -あじわう -あずかる -あずき -あそぶ -あたえる -あたためる -あたりまえ -あたる -あつい -あつかう -あっしゅく -あつまり -あつめる -あてな -あてはまる -あひる -あぶら -あぶる -あふれる -あまい -あまど -あまやかす -あまり -あみもの -あめりか -あやまる -あゆむ -あらいぐま -あらし -あらすじ -あらためる -あらゆる -あらわす -ありがとう -あわせる -あわてる -あんい -あんがい -あんこ -あんぜん -あんてい -あんない -あんまり -いいだす -いおん -いがい -いがく -いきおい -いきなり -いきもの -いきる -いくじ -いくぶん -いけばな -いけん -いこう -いこく -いこつ -いさましい -いさん -いしき -いじゅう -いじょう -いじわる -いずみ -いずれ -いせい -いせえび -いせかい -いせき -いぜん -いそうろう -いそがしい -いだい -いだく -いたずら -いたみ -いたりあ -いちおう -いちじ -いちど -いちば -いちぶ -いちりゅう -いつか -いっしゅん -いっせい -いっそう -いったん -いっち -いってい -いっぽう -いてざ -いてん -いどう -いとこ -いない -いなか -いねむり -いのち -いのる -いはつ -いばる -いはん -いびき -いひん -いふく -いへん -いほう -いみん -いもうと -いもたれ -いもり -いやがる -いやす -いよかん -いよく -いらい -いらすと -いりぐち -いりょう -いれい -いれもの -いれる -いろえんぴつ -いわい -いわう -いわかん -いわば -いわゆる -いんげんまめ -いんさつ -いんしょう -いんよう -うえき -うえる -うおざ -うがい -うかぶ -うかべる -うきわ -うくらいな -うくれれ -うけたまわる -うけつけ -うけとる -うけもつ -うける -うごかす -うごく -うこん -うさぎ -うしなう -うしろがみ -うすい -うすぎ -うすぐらい -うすめる -うせつ -うちあわせ -うちがわ -うちき -うちゅう -うっかり -うつくしい -うったえる -うつる -うどん -うなぎ -うなじ -うなずく -うなる -うねる -うのう -うぶげ -うぶごえ -うまれる -うめる -うもう -うやまう -うよく -うらがえす -うらぐち -うらない -うりあげ -うりきれ -うるさい -うれしい -うれゆき -うれる -うろこ -うわき -うわさ -うんこう -うんちん -うんてん -うんどう -えいえん -えいが -えいきょう -えいご -えいせい -えいぶん -えいよう -えいわ -えおり -えがお -えがく -えきたい -えくせる -えしゃく -えすて -えつらん -えのぐ -えほうまき -えほん -えまき -えもじ -えもの -えらい -えらぶ -えりあ -えんえん -えんかい -えんぎ -えんげき -えんしゅう -えんぜつ -えんそく -えんちょう -えんとつ -おいかける -おいこす -おいしい -おいつく -おうえん -おうさま -おうじ -おうせつ -おうたい -おうふく -おうべい -おうよう -おえる -おおい -おおう -おおどおり -おおや -おおよそ -おかえり -おかず -おがむ -おかわり -おぎなう -おきる -おくさま -おくじょう -おくりがな -おくる -おくれる -おこす -おこなう -おこる -おさえる -おさない -おさめる -おしいれ -おしえる -おじぎ -おじさん -おしゃれ -おそらく -おそわる -おたがい -おたく -おだやか -おちつく -おっと -おつり -おでかけ -おとしもの -おとなしい -おどり -おどろかす -おばさん -おまいり -おめでとう -おもいで -おもう -おもたい -おもちゃ -おやつ -おやゆび -およぼす -おらんだ -おろす -おんがく -おんけい -おんしゃ -おんせん -おんだん -おんちゅう -おんどけい -かあつ -かいが -がいき -がいけん -がいこう -かいさつ -かいしゃ -かいすいよく -かいぜん -かいぞうど -かいつう -かいてん -かいとう -かいふく -がいへき -かいほう -かいよう -がいらい -かいわ -かえる -かおり -かかえる -かがく -かがし -かがみ -かくご -かくとく -かざる -がぞう -かたい -かたち -がちょう -がっきゅう -がっこう -がっさん -がっしょう -かなざわし -かのう -がはく -かぶか -かほう -かほご -かまう -かまぼこ -かめれおん -かゆい -かようび -からい -かるい -かろう -かわく -かわら -がんか -かんけい -かんこう -かんしゃ -かんそう -かんたん -かんち -がんばる -きあい -きあつ -きいろ -ぎいん -きうい -きうん -きえる -きおう -きおく -きおち -きおん -きかい -きかく -きかんしゃ -ききて -きくばり -きくらげ -きけんせい -きこう -きこえる -きこく -きさい -きさく -きさま -きさらぎ -ぎじかがく -ぎしき -ぎじたいけん -ぎじにってい -ぎじゅつしゃ -きすう -きせい -きせき -きせつ -きそう -きぞく -きぞん -きたえる -きちょう -きつえん -ぎっちり -きつつき -きつね -きてい -きどう -きどく -きない -きなが -きなこ -きぬごし -きねん -きのう -きのした -きはく -きびしい -きひん -きふく -きぶん -きぼう -きほん -きまる -きみつ -きむずかしい -きめる -きもだめし -きもち -きもの -きゃく -きやく -ぎゅうにく -きよう -きょうりゅう -きらい -きらく -きりん -きれい -きれつ -きろく -ぎろん -きわめる -ぎんいろ -きんかくじ -きんじょ -きんようび -ぐあい -くいず -くうかん -くうき -くうぐん -くうこう -ぐうせい -くうそう -ぐうたら -くうふく -くうぼ -くかん -くきょう -くげん -ぐこう -くさい -くさき -くさばな -くさる -くしゃみ -くしょう -くすのき -くすりゆび -くせげ -くせん -ぐたいてき -くださる -くたびれる -くちこみ -くちさき -くつした -ぐっすり -くつろぐ -くとうてん -くどく -くなん -くねくね -くのう -くふう -くみあわせ -くみたてる -くめる -くやくしょ -くらす -くらべる -くるま -くれる -くろう -くわしい -ぐんかん -ぐんしょく -ぐんたい -ぐんて -けあな -けいかく -けいけん -けいこ -けいさつ -げいじゅつ -けいたい -げいのうじん -けいれき -けいろ -けおとす -けおりもの -げきか -げきげん -げきだん -げきちん -げきとつ -げきは -げきやく -げこう -げこくじょう -げざい -けさき -げざん -けしき -けしごむ -けしょう -げすと -けたば -けちゃっぷ -けちらす -けつあつ -けつい -けつえき -けっこん -けつじょ -けっせき -けってい -けつまつ -げつようび -げつれい -けつろん -げどく -けとばす -けとる -けなげ -けなす -けなみ -けぬき -げねつ -けねん -けはい -げひん -けぶかい -げぼく -けまり -けみかる -けむし -けむり -けもの -けらい -けろけろ -けわしい -けんい -けんえつ -けんお -けんか -げんき -けんげん -けんこう -けんさく -けんしゅう -けんすう -げんそう -けんちく -けんてい -けんとう -けんない -けんにん -げんぶつ -けんま -けんみん -けんめい -けんらん -けんり -こあくま -こいぬ -こいびと -ごうい -こうえん -こうおん -こうかん -ごうきゅう -ごうけい -こうこう -こうさい -こうじ -こうすい -ごうせい -こうそく -こうたい -こうちゃ -こうつう -こうてい -こうどう -こうない -こうはい -ごうほう -ごうまん -こうもく -こうりつ -こえる -こおり -ごかい -ごがつ -ごかん -こくご -こくさい -こくとう -こくない -こくはく -こぐま -こけい -こける -ここのか -こころ -こさめ -こしつ -こすう -こせい -こせき -こぜん -こそだて -こたい -こたえる -こたつ -こちょう -こっか -こつこつ -こつばん -こつぶ -こてい -こてん -ことがら -ことし -ことば -ことり -こなごな -こねこね -このまま -このみ -このよ -ごはん -こひつじ -こふう -こふん -こぼれる -ごまあぶら -こまかい -ごますり -こまつな -こまる -こむぎこ -こもじ -こもち -こもの -こもん -こやく -こやま -こゆう -こゆび -こよい -こよう -こりる -これくしょん -ころっけ -こわもて -こわれる -こんいん -こんかい -こんき -こんしゅう -こんすい -こんだて -こんとん -こんなん -こんびに -こんぽん -こんまけ -こんや -こんれい -こんわく -ざいえき -さいかい -さいきん -ざいげん -ざいこ -さいしょ -さいせい -ざいたく -ざいちゅう -さいてき -ざいりょう -さうな -さかいし -さがす -さかな -さかみち -さがる -さぎょう -さくし -さくひん -さくら -さこく -さこつ -さずかる -ざせき -さたん -さつえい -ざつおん -ざっか -ざつがく -さっきょく -ざっし -さつじん -ざっそう -さつたば -さつまいも -さてい -さといも -さとう -さとおや -さとし -さとる -さのう -さばく -さびしい -さべつ -さほう -さほど -さます -さみしい -さみだれ -さむけ -さめる -さやえんどう -さゆう -さよう -さよく -さらだ -ざるそば -さわやか -さわる -さんいん -さんか -さんきゃく -さんこう -さんさい -ざんしょ -さんすう -さんせい -さんそ -さんち -さんま -さんみ -さんらん -しあい -しあげ -しあさって -しあわせ -しいく -しいん -しうち -しえい -しおけ -しかい -しかく -じかん -しごと -しすう -じだい -したうけ -したぎ -したて -したみ -しちょう -しちりん -しっかり -しつじ -しつもん -してい -してき -してつ -じてん -じどう -しなぎれ -しなもの -しなん -しねま -しねん -しのぐ -しのぶ -しはい -しばかり -しはつ -しはらい -しはん -しひょう -しふく -じぶん -しへい -しほう -しほん -しまう -しまる -しみん -しむける -じむしょ -しめい -しめる -しもん -しゃいん -しゃうん -しゃおん -じゃがいも -しやくしょ -しゃくほう -しゃけん -しゃこ -しゃざい -しゃしん -しゃせん -しゃそう -しゃたい -しゃちょう -しゃっきん -じゃま -しゃりん -しゃれい -じゆう -じゅうしょ -しゅくはく -じゅしん -しゅっせき -しゅみ -しゅらば -じゅんばん -しょうかい -しょくたく -しょっけん -しょどう -しょもつ -しらせる -しらべる -しんか -しんこう -じんじゃ -しんせいじ -しんちく -しんりん -すあげ -すあし -すあな -ずあん -すいえい -すいか -すいとう -ずいぶん -すいようび -すうがく -すうじつ -すうせん -すおどり -すきま -すくう -すくない -すける -すごい -すこし -ずさん -すずしい -すすむ -すすめる -すっかり -ずっしり -ずっと -すてき -すてる -すねる -すのこ -すはだ -すばらしい -ずひょう -ずぶぬれ -すぶり -すふれ -すべて -すべる -ずほう -すぼん -すまい -すめし -すもう -すやき -すらすら -するめ -すれちがう -すろっと -すわる -すんぜん -すんぽう -せあぶら -せいかつ -せいげん -せいじ -せいよう -せおう -せかいかん -せきにん -せきむ -せきゆ -せきらんうん -せけん -せこう -せすじ -せたい -せたけ -せっかく -せっきゃく -ぜっく -せっけん -せっこつ -せっさたくま -せつぞく -せつだん -せつでん -せっぱん -せつび -せつぶん -せつめい -せつりつ -せなか -せのび -せはば -せびろ -せぼね -せまい -せまる -せめる -せもたれ -せりふ -ぜんあく -せんい -せんえい -せんか -せんきょ -せんく -せんげん -ぜんご -せんさい -せんしゅ -せんすい -せんせい -せんぞ -せんたく -せんちょう -せんてい -せんとう -せんぬき -せんねん -せんぱい -ぜんぶ -ぜんぽう -せんむ -せんめんじょ -せんもん -せんやく -せんゆう -せんよう -ぜんら -ぜんりゃく -せんれい -せんろ -そあく -そいとげる -そいね -そうがんきょう -そうき -そうご -そうしん -そうだん -そうなん -そうび -そうめん -そうり -そえもの -そえん -そがい -そげき -そこう -そこそこ -そざい -そしな -そせい -そせん -そそぐ -そだてる -そつう -そつえん -そっかん -そつぎょう -そっけつ -そっこう -そっせん -そっと -そとがわ -そとづら -そなえる -そなた -そふぼ -そぼく -そぼろ -そまつ -そまる -そむく -そむりえ -そめる -そもそも -そよかぜ -そらまめ -そろう -そんかい -そんけい -そんざい -そんしつ -そんぞく -そんちょう -ぞんび -ぞんぶん -そんみん -たあい -たいいん -たいうん -たいえき -たいおう -だいがく -たいき -たいぐう -たいけん -たいこ -たいざい -だいじょうぶ -だいすき -たいせつ -たいそう -だいたい -たいちょう -たいてい -だいどころ -たいない -たいねつ -たいのう -たいはん -だいひょう -たいふう -たいへん -たいほ -たいまつばな -たいみんぐ -たいむ -たいめん -たいやき -たいよう -たいら -たいりょく -たいる -たいわん -たうえ -たえる -たおす -たおる -たおれる -たかい -たかね -たきび -たくさん -たこく -たこやき -たさい -たしざん -だじゃれ -たすける -たずさわる -たそがれ -たたかう -たたく -ただしい -たたみ -たちばな -だっかい -だっきゃく -だっこ -だっしゅつ -だったい -たてる -たとえる -たなばた -たにん -たぬき -たのしみ -たはつ -たぶん -たべる -たぼう -たまご -たまる -だむる -ためいき -ためす -ためる -たもつ -たやすい -たよる -たらす -たりきほんがん -たりょう -たりる -たると -たれる -たれんと -たろっと -たわむれる -だんあつ -たんい -たんおん -たんか -たんき -たんけん -たんご -たんさん -たんじょうび -だんせい -たんそく -たんたい -だんち -たんてい -たんとう -だんな -たんにん -だんねつ -たんのう -たんぴん -だんぼう -たんまつ -たんめい -だんれつ -だんろ -だんわ -ちあい -ちあん -ちいき -ちいさい -ちえん -ちかい -ちから -ちきゅう -ちきん -ちけいず -ちけん -ちこく -ちさい -ちしき -ちしりょう -ちせい -ちそう -ちたい -ちたん -ちちおや -ちつじょ -ちてき -ちてん -ちぬき -ちぬり -ちのう -ちひょう -ちへいせん -ちほう -ちまた -ちみつ -ちみどろ -ちめいど -ちゃんこなべ -ちゅうい -ちゆりょく -ちょうし -ちょさくけん -ちらし -ちらみ -ちりがみ -ちりょう -ちるど -ちわわ -ちんたい -ちんもく -ついか -ついたち -つうか -つうじょう -つうはん -つうわ -つかう -つかれる -つくね -つくる -つけね -つける -つごう -つたえる -つづく -つつじ -つつむ -つとめる -つながる -つなみ -つねづね -つのる -つぶす -つまらない -つまる -つみき -つめたい -つもり -つもる -つよい -つるぼ -つるみく -つわもの -つわり -てあし -てあて -てあみ -ていおん -ていか -ていき -ていけい -ていこく -ていさつ -ていし -ていせい -ていたい -ていど -ていねい -ていひょう -ていへん -ていぼう -てうち -ておくれ -てきとう -てくび -でこぼこ -てさぎょう -てさげ -てすり -てそう -てちがい -てちょう -てつがく -てつづき -でっぱ -てつぼう -てつや -でぬかえ -てぬき -てぬぐい -てのひら -てはい -てぶくろ -てふだ -てほどき -てほん -てまえ -てまきずし -てみじか -てみやげ -てらす -てれび -てわけ -てわたし -でんあつ -てんいん -てんかい -てんき -てんぐ -てんけん -てんごく -てんさい -てんし -てんすう -でんち -てんてき -てんとう -てんない -てんぷら -てんぼうだい -てんめつ -てんらんかい -でんりょく -でんわ -どあい -といれ -どうかん -とうきゅう -どうぐ -とうし -とうむぎ -とおい -とおか -とおく -とおす -とおる -とかい -とかす -ときおり -ときどき -とくい -とくしゅう -とくてん -とくに -とくべつ -とけい -とける -とこや -とさか -としょかん -とそう -とたん -とちゅう -とっきゅう -とっくん -とつぜん -とつにゅう -とどける -ととのえる -とない -となえる -となり -とのさま -とばす -どぶがわ -とほう -とまる -とめる -ともだち -ともる -どようび -とらえる -とんかつ -どんぶり -ないかく -ないこう -ないしょ -ないす -ないせん -ないそう -なおす -ながい -なくす -なげる -なこうど -なさけ -なたでここ -なっとう -なつやすみ -ななおし -なにごと -なにもの -なにわ -なのか -なふだ -なまいき -なまえ -なまみ -なみだ -なめらか -なめる -なやむ -ならう -ならび -ならぶ -なれる -なわとび -なわばり -にあう -にいがた -にうけ -におい -にかい -にがて -にきび -にくしみ -にくまん -にげる -にさんかたんそ -にしき -にせもの -にちじょう -にちようび -にっか -にっき -にっけい -にっこう -にっさん -にっしょく -にっすう -にっせき -にってい -になう -にほん -にまめ -にもつ -にやり -にゅういん -にりんしゃ -にわとり -にんい -にんか -にんき -にんげん -にんしき -にんずう -にんそう -にんたい -にんち -にんてい -にんにく -にんぷ -にんまり -にんむ -にんめい -にんよう -ぬいくぎ -ぬかす -ぬぐいとる -ぬぐう -ぬくもり -ぬすむ -ぬまえび -ぬめり -ぬらす -ぬんちゃく -ねあげ -ねいき -ねいる -ねいろ -ねぐせ -ねくたい -ねくら -ねこぜ -ねこむ -ねさげ -ねすごす -ねそべる -ねだん -ねつい -ねっしん -ねつぞう -ねったいぎょ -ねぶそく -ねふだ -ねぼう -ねほりはほり -ねまき -ねまわし -ねみみ -ねむい -ねむたい -ねもと -ねらう -ねわざ -ねんいり -ねんおし -ねんかん -ねんきん -ねんぐ -ねんざ -ねんし -ねんちゃく -ねんど -ねんぴ -ねんぶつ -ねんまつ -ねんりょう -ねんれい -のいず -のおづま -のがす -のきなみ -のこぎり -のこす -のこる -のせる -のぞく -のぞむ -のたまう -のちほど -のっく -のばす -のはら -のべる -のぼる -のみもの -のやま -のらいぬ -のらねこ -のりもの -のりゆき -のれん -のんき -ばあい -はあく -ばあさん -ばいか -ばいく -はいけん -はいご -はいしん -はいすい -はいせん -はいそう -はいち -ばいばい -はいれつ -はえる -はおる -はかい -ばかり -はかる -はくしゅ -はけん -はこぶ -はさみ -はさん -はしご -ばしょ -はしる -はせる -ぱそこん -はそん -はたん -はちみつ -はつおん -はっかく -はづき -はっきり -はっくつ -はっけん -はっこう -はっさん -はっしん -はったつ -はっちゅう -はってん -はっぴょう -はっぽう -はなす -はなび -はにかむ -はぶらし -はみがき -はむかう -はめつ -はやい -はやし -はらう -はろうぃん -はわい -はんい -はんえい -はんおん -はんかく -はんきょう -ばんぐみ -はんこ -はんしゃ -はんすう -はんだん -ぱんち -ぱんつ -はんてい -はんとし -はんのう -はんぱ -はんぶん -はんぺん -はんぼうき -はんめい -はんらん -はんろん -ひいき -ひうん -ひえる -ひかく -ひかり -ひかる -ひかん -ひくい -ひけつ -ひこうき -ひこく -ひさい -ひさしぶり -ひさん -びじゅつかん -ひしょ -ひそか -ひそむ -ひたむき -ひだり -ひたる -ひつぎ -ひっこし -ひっし -ひつじゅひん -ひっす -ひつぜん -ぴったり -ぴっちり -ひつよう -ひてい -ひとごみ -ひなまつり -ひなん -ひねる -ひはん -ひびく -ひひょう -ひほう -ひまわり -ひまん -ひみつ -ひめい -ひめじし -ひやけ -ひやす -ひよう -びょうき -ひらがな -ひらく -ひりつ -ひりょう -ひるま -ひるやすみ -ひれい -ひろい -ひろう -ひろき -ひろゆき -ひんかく -ひんけつ -ひんこん -ひんしゅ -ひんそう -ぴんち -ひんぱん -びんぼう -ふあん -ふいうち -ふうけい -ふうせん -ぷうたろう -ふうとう -ふうふ -ふえる -ふおん -ふかい -ふきん -ふくざつ -ふくぶくろ -ふこう -ふさい -ふしぎ -ふじみ -ふすま -ふせい -ふせぐ -ふそく -ぶたにく -ふたん -ふちょう -ふつう -ふつか -ふっかつ -ふっき -ふっこく -ぶどう -ふとる -ふとん -ふのう -ふはい -ふひょう -ふへん -ふまん -ふみん -ふめつ -ふめん -ふよう -ふりこ -ふりる -ふるい -ふんいき -ぶんがく -ぶんぐ -ふんしつ -ぶんせき -ふんそう -ぶんぽう -へいあん -へいおん -へいがい -へいき -へいげん -へいこう -へいさ -へいしゃ -へいせつ -へいそ -へいたく -へいてん -へいねつ -へいわ -へきが -へこむ -べにいろ -べにしょうが -へらす -へんかん -べんきょう -べんごし -へんさい -へんたい -べんり -ほあん -ほいく -ぼうぎょ -ほうこく -ほうそう -ほうほう -ほうもん -ほうりつ -ほえる -ほおん -ほかん -ほきょう -ぼきん -ほくろ -ほけつ -ほけん -ほこう -ほこる -ほしい -ほしつ -ほしゅ -ほしょう -ほせい -ほそい -ほそく -ほたて -ほたる -ぽちぶくろ -ほっきょく -ほっさ -ほったん -ほとんど -ほめる -ほんい -ほんき -ほんけ -ほんしつ -ほんやく -まいにち -まかい -まかせる -まがる -まける -まこと -まさつ -まじめ -ますく -まぜる -まつり -まとめ -まなぶ -まぬけ -まねく -まほう -まもる -まゆげ -まよう -まろやか -まわす -まわり -まわる -まんが -まんきつ -まんぞく -まんなか -みいら -みうち -みえる -みがく -みかた -みかん -みけん -みこん -みじかい -みすい -みすえる -みせる -みっか -みつかる -みつける -みてい -みとめる -みなと -みなみかさい -みねらる -みのう -みのがす -みほん -みもと -みやげ -みらい -みりょく -みわく -みんか -みんぞく -むいか -むえき -むえん -むかい -むかう -むかえ -むかし -むぎちゃ -むける -むげん -むさぼる -むしあつい -むしば -むじゅん -むしろ -むすう -むすこ -むすぶ -むすめ -むせる -むせん -むちゅう -むなしい -むのう -むやみ -むよう -むらさき -むりょう -むろん -めいあん -めいうん -めいえん -めいかく -めいきょく -めいさい -めいし -めいそう -めいぶつ -めいれい -めいわく -めぐまれる -めざす -めした -めずらしい -めだつ -めまい -めやす -めんきょ -めんせき -めんどう -もうしあげる -もうどうけん -もえる -もくし -もくてき -もくようび -もちろん -もどる -もらう -もんく -もんだい -やおや -やける -やさい -やさしい -やすい -やすたろう -やすみ -やせる -やそう -やたい -やちん -やっと -やっぱり -やぶる -やめる -ややこしい -やよい -やわらかい -ゆうき -ゆうびんきょく -ゆうべ -ゆうめい -ゆけつ -ゆしゅつ -ゆせん -ゆそう -ゆたか -ゆちゃく -ゆでる -ゆにゅう -ゆびわ -ゆらい -ゆれる -ようい -ようか -ようきゅう -ようじ -ようす -ようちえん -よかぜ -よかん -よきん -よくせい -よくぼう -よけい -よごれる -よさん -よしゅう -よそう -よそく -よっか -よてい -よどがわく -よねつ -よやく -よゆう -よろこぶ -よろしい -らいう -らくがき -らくご -らくさつ -らくだ -らしんばん -らせん -らぞく -らたい -らっか -られつ -りえき -りかい -りきさく -りきせつ -りくぐん -りくつ -りけん -りこう -りせい -りそう -りそく -りてん -りねん -りゆう -りゅうがく -りよう -りょうり -りょかん -りょくちゃ -りょこう -りりく -りれき -りろん -りんご -るいけい -るいさい -るいじ -るいせき -るすばん -るりがわら -れいかん -れいぎ -れいせい -れいぞうこ -れいとう -れいぼう -れきし -れきだい -れんあい -れんけい -れんこん -れんさい -れんしゅう -れんぞく -れんらく -ろうか -ろうご -ろうじん -ろうそく -ろくが -ろこつ -ろじうら -ろしゅつ -ろせん -ろてん -ろめん -ろれつ -ろんぎ -ろんぱ -ろんぶん -ろんり -わかす -わかめ -わかやま -わかれる -わしつ -わじまし -わすれもの -わらう -われる`.split('\n'); diff --git a/node_modules/@scure/bip39/wordlists/korean.d.ts b/node_modules/@scure/bip39/wordlists/korean.d.ts deleted file mode 100644 index b566a1db..00000000 --- a/node_modules/@scure/bip39/wordlists/korean.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const wordlist: string[]; diff --git a/node_modules/@scure/bip39/wordlists/korean.js b/node_modules/@scure/bip39/wordlists/korean.js deleted file mode 100644 index 15ba4425..00000000 --- a/node_modules/@scure/bip39/wordlists/korean.js +++ /dev/null @@ -1,2051 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.wordlist = void 0; -exports.wordlist = `가격 -가끔 -가난 -가능 -가득 -가르침 -가뭄 -가방 -가상 -가슴 -가운데 -가을 -가이드 -가입 -가장 -가정 -가족 -가죽 -각오 -각자 -간격 -간부 -간섭 -간장 -간접 -간판 -갈등 -갈비 -갈색 -갈증 -감각 -감기 -감소 -감수성 -감자 -감정 -갑자기 -강남 -강당 -강도 -강력히 -강변 -강북 -강사 -강수량 -강아지 -강원도 -강의 -강제 -강조 -같이 -개구리 -개나리 -개방 -개별 -개선 -개성 -개인 -객관적 -거실 -거액 -거울 -거짓 -거품 -걱정 -건강 -건물 -건설 -건조 -건축 -걸음 -검사 -검토 -게시판 -게임 -겨울 -견해 -결과 -결국 -결론 -결석 -결승 -결심 -결정 -결혼 -경계 -경고 -경기 -경력 -경복궁 -경비 -경상도 -경영 -경우 -경쟁 -경제 -경주 -경찰 -경치 -경향 -경험 -계곡 -계단 -계란 -계산 -계속 -계약 -계절 -계층 -계획 -고객 -고구려 -고궁 -고급 -고등학생 -고무신 -고민 -고양이 -고장 -고전 -고집 -고춧가루 -고통 -고향 -곡식 -골목 -골짜기 -골프 -공간 -공개 -공격 -공군 -공급 -공기 -공동 -공무원 -공부 -공사 -공식 -공업 -공연 -공원 -공장 -공짜 -공책 -공통 -공포 -공항 -공휴일 -과목 -과일 -과장 -과정 -과학 -관객 -관계 -관광 -관념 -관람 -관련 -관리 -관습 -관심 -관점 -관찰 -광경 -광고 -광장 -광주 -괴로움 -굉장히 -교과서 -교문 -교복 -교실 -교양 -교육 -교장 -교직 -교통 -교환 -교훈 -구경 -구름 -구멍 -구별 -구분 -구석 -구성 -구속 -구역 -구입 -구청 -구체적 -국가 -국기 -국내 -국립 -국물 -국민 -국수 -국어 -국왕 -국적 -국제 -국회 -군대 -군사 -군인 -궁극적 -권리 -권위 -권투 -귀국 -귀신 -규정 -규칙 -균형 -그날 -그냥 -그늘 -그러나 -그룹 -그릇 -그림 -그제서야 -그토록 -극복 -극히 -근거 -근교 -근래 -근로 -근무 -근본 -근원 -근육 -근처 -글씨 -글자 -금강산 -금고 -금년 -금메달 -금액 -금연 -금요일 -금지 -긍정적 -기간 -기관 -기념 -기능 -기독교 -기둥 -기록 -기름 -기법 -기본 -기분 -기쁨 -기숙사 -기술 -기억 -기업 -기온 -기운 -기원 -기적 -기준 -기침 -기혼 -기획 -긴급 -긴장 -길이 -김밥 -김치 -김포공항 -깍두기 -깜빡 -깨달음 -깨소금 -껍질 -꼭대기 -꽃잎 -나들이 -나란히 -나머지 -나물 -나침반 -나흘 -낙엽 -난방 -날개 -날씨 -날짜 -남녀 -남대문 -남매 -남산 -남자 -남편 -남학생 -낭비 -낱말 -내년 -내용 -내일 -냄비 -냄새 -냇물 -냉동 -냉면 -냉방 -냉장고 -넥타이 -넷째 -노동 -노란색 -노력 -노인 -녹음 -녹차 -녹화 -논리 -논문 -논쟁 -놀이 -농구 -농담 -농민 -농부 -농업 -농장 -농촌 -높이 -눈동자 -눈물 -눈썹 -뉴욕 -느낌 -늑대 -능동적 -능력 -다방 -다양성 -다음 -다이어트 -다행 -단계 -단골 -단독 -단맛 -단순 -단어 -단위 -단점 -단체 -단추 -단편 -단풍 -달걀 -달러 -달력 -달리 -닭고기 -담당 -담배 -담요 -담임 -답변 -답장 -당근 -당분간 -당연히 -당장 -대규모 -대낮 -대단히 -대답 -대도시 -대략 -대량 -대륙 -대문 -대부분 -대신 -대응 -대장 -대전 -대접 -대중 -대책 -대출 -대충 -대통령 -대학 -대한민국 -대합실 -대형 -덩어리 -데이트 -도대체 -도덕 -도둑 -도망 -도서관 -도심 -도움 -도입 -도자기 -도저히 -도전 -도중 -도착 -독감 -독립 -독서 -독일 -독창적 -동화책 -뒷모습 -뒷산 -딸아이 -마누라 -마늘 -마당 -마라톤 -마련 -마무리 -마사지 -마약 -마요네즈 -마을 -마음 -마이크 -마중 -마지막 -마찬가지 -마찰 -마흔 -막걸리 -막내 -막상 -만남 -만두 -만세 -만약 -만일 -만점 -만족 -만화 -많이 -말기 -말씀 -말투 -맘대로 -망원경 -매년 -매달 -매력 -매번 -매스컴 -매일 -매장 -맥주 -먹이 -먼저 -먼지 -멀리 -메일 -며느리 -며칠 -면담 -멸치 -명단 -명령 -명예 -명의 -명절 -명칭 -명함 -모금 -모니터 -모델 -모든 -모범 -모습 -모양 -모임 -모조리 -모집 -모퉁이 -목걸이 -목록 -목사 -목소리 -목숨 -목적 -목표 -몰래 -몸매 -몸무게 -몸살 -몸속 -몸짓 -몸통 -몹시 -무관심 -무궁화 -무더위 -무덤 -무릎 -무슨 -무엇 -무역 -무용 -무조건 -무지개 -무척 -문구 -문득 -문법 -문서 -문제 -문학 -문화 -물가 -물건 -물결 -물고기 -물론 -물리학 -물음 -물질 -물체 -미국 -미디어 -미사일 -미술 -미역 -미용실 -미움 -미인 -미팅 -미혼 -민간 -민족 -민주 -믿음 -밀가루 -밀리미터 -밑바닥 -바가지 -바구니 -바나나 -바늘 -바닥 -바닷가 -바람 -바이러스 -바탕 -박물관 -박사 -박수 -반대 -반드시 -반말 -반발 -반성 -반응 -반장 -반죽 -반지 -반찬 -받침 -발가락 -발걸음 -발견 -발달 -발레 -발목 -발바닥 -발생 -발음 -발자국 -발전 -발톱 -발표 -밤하늘 -밥그릇 -밥맛 -밥상 -밥솥 -방금 -방면 -방문 -방바닥 -방법 -방송 -방식 -방안 -방울 -방지 -방학 -방해 -방향 -배경 -배꼽 -배달 -배드민턴 -백두산 -백색 -백성 -백인 -백제 -백화점 -버릇 -버섯 -버튼 -번개 -번역 -번지 -번호 -벌금 -벌레 -벌써 -범위 -범인 -범죄 -법률 -법원 -법적 -법칙 -베이징 -벨트 -변경 -변동 -변명 -변신 -변호사 -변화 -별도 -별명 -별일 -병실 -병아리 -병원 -보관 -보너스 -보라색 -보람 -보름 -보상 -보안 -보자기 -보장 -보전 -보존 -보통 -보편적 -보험 -복도 -복사 -복숭아 -복습 -볶음 -본격적 -본래 -본부 -본사 -본성 -본인 -본질 -볼펜 -봉사 -봉지 -봉투 -부근 -부끄러움 -부담 -부동산 -부문 -부분 -부산 -부상 -부엌 -부인 -부작용 -부장 -부정 -부족 -부지런히 -부친 -부탁 -부품 -부회장 -북부 -북한 -분노 -분량 -분리 -분명 -분석 -분야 -분위기 -분필 -분홍색 -불고기 -불과 -불교 -불꽃 -불만 -불법 -불빛 -불안 -불이익 -불행 -브랜드 -비극 -비난 -비닐 -비둘기 -비디오 -비로소 -비만 -비명 -비밀 -비바람 -비빔밥 -비상 -비용 -비율 -비중 -비타민 -비판 -빌딩 -빗물 -빗방울 -빗줄기 -빛깔 -빨간색 -빨래 -빨리 -사건 -사계절 -사나이 -사냥 -사람 -사랑 -사립 -사모님 -사물 -사방 -사상 -사생활 -사설 -사슴 -사실 -사업 -사용 -사월 -사장 -사전 -사진 -사촌 -사춘기 -사탕 -사투리 -사흘 -산길 -산부인과 -산업 -산책 -살림 -살인 -살짝 -삼계탕 -삼국 -삼십 -삼월 -삼촌 -상관 -상금 -상대 -상류 -상반기 -상상 -상식 -상업 -상인 -상자 -상점 -상처 -상추 -상태 -상표 -상품 -상황 -새벽 -색깔 -색연필 -생각 -생명 -생물 -생방송 -생산 -생선 -생신 -생일 -생활 -서랍 -서른 -서명 -서민 -서비스 -서양 -서울 -서적 -서점 -서쪽 -서클 -석사 -석유 -선거 -선물 -선배 -선생 -선수 -선원 -선장 -선전 -선택 -선풍기 -설거지 -설날 -설렁탕 -설명 -설문 -설사 -설악산 -설치 -설탕 -섭씨 -성공 -성당 -성명 -성별 -성인 -성장 -성적 -성질 -성함 -세금 -세미나 -세상 -세월 -세종대왕 -세탁 -센터 -센티미터 -셋째 -소규모 -소극적 -소금 -소나기 -소년 -소득 -소망 -소문 -소설 -소속 -소아과 -소용 -소원 -소음 -소중히 -소지품 -소질 -소풍 -소형 -속담 -속도 -속옷 -손가락 -손길 -손녀 -손님 -손등 -손목 -손뼉 -손실 -손질 -손톱 -손해 -솔직히 -솜씨 -송아지 -송이 -송편 -쇠고기 -쇼핑 -수건 -수년 -수단 -수돗물 -수동적 -수면 -수명 -수박 -수상 -수석 -수술 -수시로 -수업 -수염 -수영 -수입 -수준 -수집 -수출 -수컷 -수필 -수학 -수험생 -수화기 -숙녀 -숙소 -숙제 -순간 -순서 -순수 -순식간 -순위 -숟가락 -술병 -술집 -숫자 -스님 -스물 -스스로 -스승 -스웨터 -스위치 -스케이트 -스튜디오 -스트레스 -스포츠 -슬쩍 -슬픔 -습관 -습기 -승객 -승리 -승부 -승용차 -승진 -시각 -시간 -시골 -시금치 -시나리오 -시댁 -시리즈 -시멘트 -시민 -시부모 -시선 -시설 -시스템 -시아버지 -시어머니 -시월 -시인 -시일 -시작 -시장 -시절 -시점 -시중 -시즌 -시집 -시청 -시합 -시험 -식구 -식기 -식당 -식량 -식료품 -식물 -식빵 -식사 -식생활 -식초 -식탁 -식품 -신고 -신규 -신념 -신문 -신발 -신비 -신사 -신세 -신용 -신제품 -신청 -신체 -신화 -실감 -실내 -실력 -실례 -실망 -실수 -실습 -실시 -실장 -실정 -실질적 -실천 -실체 -실컷 -실태 -실패 -실험 -실현 -심리 -심부름 -심사 -심장 -심정 -심판 -쌍둥이 -씨름 -씨앗 -아가씨 -아나운서 -아드님 -아들 -아쉬움 -아스팔트 -아시아 -아울러 -아저씨 -아줌마 -아직 -아침 -아파트 -아프리카 -아픔 -아홉 -아흔 -악기 -악몽 -악수 -안개 -안경 -안과 -안내 -안녕 -안동 -안방 -안부 -안주 -알루미늄 -알코올 -암시 -암컷 -압력 -앞날 -앞문 -애인 -애정 -액수 -앨범 -야간 -야단 -야옹 -약간 -약국 -약속 -약수 -약점 -약품 -약혼녀 -양념 -양력 -양말 -양배추 -양주 -양파 -어둠 -어려움 -어른 -어젯밤 -어쨌든 -어쩌다가 -어쩐지 -언니 -언덕 -언론 -언어 -얼굴 -얼른 -얼음 -얼핏 -엄마 -업무 -업종 -업체 -엉덩이 -엉망 -엉터리 -엊그제 -에너지 -에어컨 -엔진 -여건 -여고생 -여관 -여군 -여권 -여대생 -여덟 -여동생 -여든 -여론 -여름 -여섯 -여성 -여왕 -여인 -여전히 -여직원 -여학생 -여행 -역사 -역시 -역할 -연결 -연구 -연극 -연기 -연락 -연설 -연세 -연속 -연습 -연애 -연예인 -연인 -연장 -연주 -연출 -연필 -연합 -연휴 -열기 -열매 -열쇠 -열심히 -열정 -열차 -열흘 -염려 -엽서 -영국 -영남 -영상 -영양 -영역 -영웅 -영원히 -영하 -영향 -영혼 -영화 -옆구리 -옆방 -옆집 -예감 -예금 -예방 -예산 -예상 -예선 -예술 -예습 -예식장 -예약 -예전 -예절 -예정 -예컨대 -옛날 -오늘 -오락 -오랫동안 -오렌지 -오로지 -오른발 -오븐 -오십 -오염 -오월 -오전 -오직 -오징어 -오페라 -오피스텔 -오히려 -옥상 -옥수수 -온갖 -온라인 -온몸 -온종일 -온통 -올가을 -올림픽 -올해 -옷차림 -와이셔츠 -와인 -완성 -완전 -왕비 -왕자 -왜냐하면 -왠지 -외갓집 -외국 -외로움 -외삼촌 -외출 -외침 -외할머니 -왼발 -왼손 -왼쪽 -요금 -요일 -요즘 -요청 -용기 -용서 -용어 -우산 -우선 -우승 -우연히 -우정 -우체국 -우편 -운동 -운명 -운반 -운전 -운행 -울산 -울음 -움직임 -웃어른 -웃음 -워낙 -원고 -원래 -원서 -원숭이 -원인 -원장 -원피스 -월급 -월드컵 -월세 -월요일 -웨이터 -위반 -위법 -위성 -위원 -위험 -위협 -윗사람 -유난히 -유럽 -유명 -유물 -유산 -유적 -유치원 -유학 -유행 -유형 -육군 -육상 -육십 -육체 -은행 -음력 -음료 -음반 -음성 -음식 -음악 -음주 -의견 -의논 -의문 -의복 -의식 -의심 -의외로 -의욕 -의원 -의학 -이것 -이곳 -이념 -이놈 -이달 -이대로 -이동 -이렇게 -이력서 -이론적 -이름 -이민 -이발소 -이별 -이불 -이빨 -이상 -이성 -이슬 -이야기 -이용 -이웃 -이월 -이윽고 -이익 -이전 -이중 -이튿날 -이틀 -이혼 -인간 -인격 -인공 -인구 -인근 -인기 -인도 -인류 -인물 -인생 -인쇄 -인연 -인원 -인재 -인종 -인천 -인체 -인터넷 -인하 -인형 -일곱 -일기 -일단 -일대 -일등 -일반 -일본 -일부 -일상 -일생 -일손 -일요일 -일월 -일정 -일종 -일주일 -일찍 -일체 -일치 -일행 -일회용 -임금 -임무 -입대 -입력 -입맛 -입사 -입술 -입시 -입원 -입장 -입학 -자가용 -자격 -자극 -자동 -자랑 -자부심 -자식 -자신 -자연 -자원 -자율 -자전거 -자정 -자존심 -자판 -작가 -작년 -작성 -작업 -작용 -작은딸 -작품 -잔디 -잔뜩 -잔치 -잘못 -잠깐 -잠수함 -잠시 -잠옷 -잠자리 -잡지 -장관 -장군 -장기간 -장래 -장례 -장르 -장마 -장면 -장모 -장미 -장비 -장사 -장소 -장식 -장애인 -장인 -장점 -장차 -장학금 -재능 -재빨리 -재산 -재생 -재작년 -재정 -재채기 -재판 -재학 -재활용 -저것 -저고리 -저곳 -저녁 -저런 -저렇게 -저번 -저울 -저절로 -저축 -적극 -적당히 -적성 -적용 -적응 -전개 -전공 -전기 -전달 -전라도 -전망 -전문 -전반 -전부 -전세 -전시 -전용 -전자 -전쟁 -전주 -전철 -전체 -전통 -전혀 -전후 -절대 -절망 -절반 -절약 -절차 -점검 -점수 -점심 -점원 -점점 -점차 -접근 -접시 -접촉 -젓가락 -정거장 -정도 -정류장 -정리 -정말 -정면 -정문 -정반대 -정보 -정부 -정비 -정상 -정성 -정오 -정원 -정장 -정지 -정치 -정확히 -제공 -제과점 -제대로 -제목 -제발 -제법 -제삿날 -제안 -제일 -제작 -제주도 -제출 -제품 -제한 -조각 -조건 -조금 -조깅 -조명 -조미료 -조상 -조선 -조용히 -조절 -조정 -조직 -존댓말 -존재 -졸업 -졸음 -종교 -종로 -종류 -종소리 -종업원 -종종 -종합 -좌석 -죄인 -주관적 -주름 -주말 -주머니 -주먹 -주문 -주민 -주방 -주변 -주식 -주인 -주일 -주장 -주전자 -주택 -준비 -줄거리 -줄기 -줄무늬 -중간 -중계방송 -중국 -중년 -중단 -중독 -중반 -중부 -중세 -중소기업 -중순 -중앙 -중요 -중학교 -즉석 -즉시 -즐거움 -증가 -증거 -증권 -증상 -증세 -지각 -지갑 -지경 -지극히 -지금 -지급 -지능 -지름길 -지리산 -지방 -지붕 -지식 -지역 -지우개 -지원 -지적 -지점 -지진 -지출 -직선 -직업 -직원 -직장 -진급 -진동 -진로 -진료 -진리 -진짜 -진찰 -진출 -진통 -진행 -질문 -질병 -질서 -짐작 -집단 -집안 -집중 -짜증 -찌꺼기 -차남 -차라리 -차량 -차림 -차별 -차선 -차츰 -착각 -찬물 -찬성 -참가 -참기름 -참새 -참석 -참여 -참외 -참조 -찻잔 -창가 -창고 -창구 -창문 -창밖 -창작 -창조 -채널 -채점 -책가방 -책방 -책상 -책임 -챔피언 -처벌 -처음 -천국 -천둥 -천장 -천재 -천천히 -철도 -철저히 -철학 -첫날 -첫째 -청년 -청바지 -청소 -청춘 -체계 -체력 -체온 -체육 -체중 -체험 -초등학생 -초반 -초밥 -초상화 -초순 -초여름 -초원 -초저녁 -초점 -초청 -초콜릿 -촛불 -총각 -총리 -총장 -촬영 -최근 -최상 -최선 -최신 -최악 -최종 -추석 -추억 -추진 -추천 -추측 -축구 -축소 -축제 -축하 -출근 -출발 -출산 -출신 -출연 -출입 -출장 -출판 -충격 -충고 -충돌 -충분히 -충청도 -취업 -취직 -취향 -치약 -친구 -친척 -칠십 -칠월 -칠판 -침대 -침묵 -침실 -칫솔 -칭찬 -카메라 -카운터 -칼국수 -캐릭터 -캠퍼스 -캠페인 -커튼 -컨디션 -컬러 -컴퓨터 -코끼리 -코미디 -콘서트 -콜라 -콤플렉스 -콩나물 -쾌감 -쿠데타 -크림 -큰길 -큰딸 -큰소리 -큰아들 -큰어머니 -큰일 -큰절 -클래식 -클럽 -킬로 -타입 -타자기 -탁구 -탁자 -탄생 -태권도 -태양 -태풍 -택시 -탤런트 -터널 -터미널 -테니스 -테스트 -테이블 -텔레비전 -토론 -토마토 -토요일 -통계 -통과 -통로 -통신 -통역 -통일 -통장 -통제 -통증 -통합 -통화 -퇴근 -퇴원 -퇴직금 -튀김 -트럭 -특급 -특별 -특성 -특수 -특징 -특히 -튼튼히 -티셔츠 -파란색 -파일 -파출소 -판결 -판단 -판매 -판사 -팔십 -팔월 -팝송 -패션 -팩스 -팩시밀리 -팬티 -퍼센트 -페인트 -편견 -편의 -편지 -편히 -평가 -평균 -평생 -평소 -평양 -평일 -평화 -포스터 -포인트 -포장 -포함 -표면 -표정 -표준 -표현 -품목 -품질 -풍경 -풍속 -풍습 -프랑스 -프린터 -플라스틱 -피곤 -피망 -피아노 -필름 -필수 -필요 -필자 -필통 -핑계 -하느님 -하늘 -하드웨어 -하룻밤 -하반기 -하숙집 -하순 -하여튼 -하지만 -하천 -하품 -하필 -학과 -학교 -학급 -학기 -학년 -학력 -학번 -학부모 -학비 -학생 -학술 -학습 -학용품 -학원 -학위 -학자 -학점 -한계 -한글 -한꺼번에 -한낮 -한눈 -한동안 -한때 -한라산 -한마디 -한문 -한번 -한복 -한식 -한여름 -한쪽 -할머니 -할아버지 -할인 -함께 -함부로 -합격 -합리적 -항공 -항구 -항상 -항의 -해결 -해군 -해답 -해당 -해물 -해석 -해설 -해수욕장 -해안 -핵심 -핸드백 -햄버거 -햇볕 -햇살 -행동 -행복 -행사 -행운 -행위 -향기 -향상 -향수 -허락 -허용 -헬기 -현관 -현금 -현대 -현상 -현실 -현장 -현재 -현지 -혈액 -협력 -형부 -형사 -형수 -형식 -형제 -형태 -형편 -혜택 -호기심 -호남 -호랑이 -호박 -호텔 -호흡 -혹시 -홀로 -홈페이지 -홍보 -홍수 -홍차 -화면 -화분 -화살 -화요일 -화장 -화학 -확보 -확인 -확장 -확정 -환갑 -환경 -환영 -환율 -환자 -활기 -활동 -활발히 -활용 -활짝 -회견 -회관 -회복 -회색 -회원 -회장 -회전 -횟수 -횡단보도 -효율적 -후반 -후춧가루 -훈련 -훨씬 -휴식 -휴일 -흉내 -흐름 -흑백 -흑인 -흔적 -흔히 -흥미 -흥분 -희곡 -희망 -희생 -흰색 -힘껏`.split('\n'); diff --git a/node_modules/@scure/bip39/wordlists/simplified-chinese.d.ts b/node_modules/@scure/bip39/wordlists/simplified-chinese.d.ts deleted file mode 100644 index b566a1db..00000000 --- a/node_modules/@scure/bip39/wordlists/simplified-chinese.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const wordlist: string[]; diff --git a/node_modules/@scure/bip39/wordlists/simplified-chinese.js b/node_modules/@scure/bip39/wordlists/simplified-chinese.js deleted file mode 100644 index 43ac9d2c..00000000 --- a/node_modules/@scure/bip39/wordlists/simplified-chinese.js +++ /dev/null @@ -1,2051 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.wordlist = void 0; -exports.wordlist = `的 -一 -是 -在 -不 -了 -有 -和 -人 -这 -中 -大 -为 -上 -个 -国 -我 -以 -要 -他 -时 -来 -用 -们 -生 -到 -作 -地 -于 -出 -就 -分 -对 -成 -会 -可 -主 -发 -年 -动 -同 -工 -也 -能 -下 -过 -子 -说 -产 -种 -面 -而 -方 -后 -多 -定 -行 -学 -法 -所 -民 -得 -经 -十 -三 -之 -进 -着 -等 -部 -度 -家 -电 -力 -里 -如 -水 -化 -高 -自 -二 -理 -起 -小 -物 -现 -实 -加 -量 -都 -两 -体 -制 -机 -当 -使 -点 -从 -业 -本 -去 -把 -性 -好 -应 -开 -它 -合 -还 -因 -由 -其 -些 -然 -前 -外 -天 -政 -四 -日 -那 -社 -义 -事 -平 -形 -相 -全 -表 -间 -样 -与 -关 -各 -重 -新 -线 -内 -数 -正 -心 -反 -你 -明 -看 -原 -又 -么 -利 -比 -或 -但 -质 -气 -第 -向 -道 -命 -此 -变 -条 -只 -没 -结 -解 -问 -意 -建 -月 -公 -无 -系 -军 -很 -情 -者 -最 -立 -代 -想 -已 -通 -并 -提 -直 -题 -党 -程 -展 -五 -果 -料 -象 -员 -革 -位 -入 -常 -文 -总 -次 -品 -式 -活 -设 -及 -管 -特 -件 -长 -求 -老 -头 -基 -资 -边 -流 -路 -级 -少 -图 -山 -统 -接 -知 -较 -将 -组 -见 -计 -别 -她 -手 -角 -期 -根 -论 -运 -农 -指 -几 -九 -区 -强 -放 -决 -西 -被 -干 -做 -必 -战 -先 -回 -则 -任 -取 -据 -处 -队 -南 -给 -色 -光 -门 -即 -保 -治 -北 -造 -百 -规 -热 -领 -七 -海 -口 -东 -导 -器 -压 -志 -世 -金 -增 -争 -济 -阶 -油 -思 -术 -极 -交 -受 -联 -什 -认 -六 -共 -权 -收 -证 -改 -清 -美 -再 -采 -转 -更 -单 -风 -切 -打 -白 -教 -速 -花 -带 -安 -场 -身 -车 -例 -真 -务 -具 -万 -每 -目 -至 -达 -走 -积 -示 -议 -声 -报 -斗 -完 -类 -八 -离 -华 -名 -确 -才 -科 -张 -信 -马 -节 -话 -米 -整 -空 -元 -况 -今 -集 -温 -传 -土 -许 -步 -群 -广 -石 -记 -需 -段 -研 -界 -拉 -林 -律 -叫 -且 -究 -观 -越 -织 -装 -影 -算 -低 -持 -音 -众 -书 -布 -复 -容 -儿 -须 -际 -商 -非 -验 -连 -断 -深 -难 -近 -矿 -千 -周 -委 -素 -技 -备 -半 -办 -青 -省 -列 -习 -响 -约 -支 -般 -史 -感 -劳 -便 -团 -往 -酸 -历 -市 -克 -何 -除 -消 -构 -府 -称 -太 -准 -精 -值 -号 -率 -族 -维 -划 -选 -标 -写 -存 -候 -毛 -亲 -快 -效 -斯 -院 -查 -江 -型 -眼 -王 -按 -格 -养 -易 -置 -派 -层 -片 -始 -却 -专 -状 -育 -厂 -京 -识 -适 -属 -圆 -包 -火 -住 -调 -满 -县 -局 -照 -参 -红 -细 -引 -听 -该 -铁 -价 -严 -首 -底 -液 -官 -德 -随 -病 -苏 -失 -尔 -死 -讲 -配 -女 -黄 -推 -显 -谈 -罪 -神 -艺 -呢 -席 -含 -企 -望 -密 -批 -营 -项 -防 -举 -球 -英 -氧 -势 -告 -李 -台 -落 -木 -帮 -轮 -破 -亚 -师 -围 -注 -远 -字 -材 -排 -供 -河 -态 -封 -另 -施 -减 -树 -溶 -怎 -止 -案 -言 -士 -均 -武 -固 -叶 -鱼 -波 -视 -仅 -费 -紧 -爱 -左 -章 -早 -朝 -害 -续 -轻 -服 -试 -食 -充 -兵 -源 -判 -护 -司 -足 -某 -练 -差 -致 -板 -田 -降 -黑 -犯 -负 -击 -范 -继 -兴 -似 -余 -坚 -曲 -输 -修 -故 -城 -夫 -够 -送 -笔 -船 -占 -右 -财 -吃 -富 -春 -职 -觉 -汉 -画 -功 -巴 -跟 -虽 -杂 -飞 -检 -吸 -助 -升 -阳 -互 -初 -创 -抗 -考 -投 -坏 -策 -古 -径 -换 -未 -跑 -留 -钢 -曾 -端 -责 -站 -简 -述 -钱 -副 -尽 -帝 -射 -草 -冲 -承 -独 -令 -限 -阿 -宣 -环 -双 -请 -超 -微 -让 -控 -州 -良 -轴 -找 -否 -纪 -益 -依 -优 -顶 -础 -载 -倒 -房 -突 -坐 -粉 -敌 -略 -客 -袁 -冷 -胜 -绝 -析 -块 -剂 -测 -丝 -协 -诉 -念 -陈 -仍 -罗 -盐 -友 -洋 -错 -苦 -夜 -刑 -移 -频 -逐 -靠 -混 -母 -短 -皮 -终 -聚 -汽 -村 -云 -哪 -既 -距 -卫 -停 -烈 -央 -察 -烧 -迅 -境 -若 -印 -洲 -刻 -括 -激 -孔 -搞 -甚 -室 -待 -核 -校 -散 -侵 -吧 -甲 -游 -久 -菜 -味 -旧 -模 -湖 -货 -损 -预 -阻 -毫 -普 -稳 -乙 -妈 -植 -息 -扩 -银 -语 -挥 -酒 -守 -拿 -序 -纸 -医 -缺 -雨 -吗 -针 -刘 -啊 -急 -唱 -误 -训 -愿 -审 -附 -获 -茶 -鲜 -粮 -斤 -孩 -脱 -硫 -肥 -善 -龙 -演 -父 -渐 -血 -欢 -械 -掌 -歌 -沙 -刚 -攻 -谓 -盾 -讨 -晚 -粒 -乱 -燃 -矛 -乎 -杀 -药 -宁 -鲁 -贵 -钟 -煤 -读 -班 -伯 -香 -介 -迫 -句 -丰 -培 -握 -兰 -担 -弦 -蛋 -沉 -假 -穿 -执 -答 -乐 -谁 -顺 -烟 -缩 -征 -脸 -喜 -松 -脚 -困 -异 -免 -背 -星 -福 -买 -染 -井 -概 -慢 -怕 -磁 -倍 -祖 -皇 -促 -静 -补 -评 -翻 -肉 -践 -尼 -衣 -宽 -扬 -棉 -希 -伤 -操 -垂 -秋 -宜 -氢 -套 -督 -振 -架 -亮 -末 -宪 -庆 -编 -牛 -触 -映 -雷 -销 -诗 -座 -居 -抓 -裂 -胞 -呼 -娘 -景 -威 -绿 -晶 -厚 -盟 -衡 -鸡 -孙 -延 -危 -胶 -屋 -乡 -临 -陆 -顾 -掉 -呀 -灯 -岁 -措 -束 -耐 -剧 -玉 -赵 -跳 -哥 -季 -课 -凯 -胡 -额 -款 -绍 -卷 -齐 -伟 -蒸 -殖 -永 -宗 -苗 -川 -炉 -岩 -弱 -零 -杨 -奏 -沿 -露 -杆 -探 -滑 -镇 -饭 -浓 -航 -怀 -赶 -库 -夺 -伊 -灵 -税 -途 -灭 -赛 -归 -召 -鼓 -播 -盘 -裁 -险 -康 -唯 -录 -菌 -纯 -借 -糖 -盖 -横 -符 -私 -努 -堂 -域 -枪 -润 -幅 -哈 -竟 -熟 -虫 -泽 -脑 -壤 -碳 -欧 -遍 -侧 -寨 -敢 -彻 -虑 -斜 -薄 -庭 -纳 -弹 -饲 -伸 -折 -麦 -湿 -暗 -荷 -瓦 -塞 -床 -筑 -恶 -户 -访 -塔 -奇 -透 -梁 -刀 -旋 -迹 -卡 -氯 -遇 -份 -毒 -泥 -退 -洗 -摆 -灰 -彩 -卖 -耗 -夏 -择 -忙 -铜 -献 -硬 -予 -繁 -圈 -雪 -函 -亦 -抽 -篇 -阵 -阴 -丁 -尺 -追 -堆 -雄 -迎 -泛 -爸 -楼 -避 -谋 -吨 -野 -猪 -旗 -累 -偏 -典 -馆 -索 -秦 -脂 -潮 -爷 -豆 -忽 -托 -惊 -塑 -遗 -愈 -朱 -替 -纤 -粗 -倾 -尚 -痛 -楚 -谢 -奋 -购 -磨 -君 -池 -旁 -碎 -骨 -监 -捕 -弟 -暴 -割 -贯 -殊 -释 -词 -亡 -壁 -顿 -宝 -午 -尘 -闻 -揭 -炮 -残 -冬 -桥 -妇 -警 -综 -招 -吴 -付 -浮 -遭 -徐 -您 -摇 -谷 -赞 -箱 -隔 -订 -男 -吹 -园 -纷 -唐 -败 -宋 -玻 -巨 -耕 -坦 -荣 -闭 -湾 -键 -凡 -驻 -锅 -救 -恩 -剥 -凝 -碱 -齿 -截 -炼 -麻 -纺 -禁 -废 -盛 -版 -缓 -净 -睛 -昌 -婚 -涉 -筒 -嘴 -插 -岸 -朗 -庄 -街 -藏 -姑 -贸 -腐 -奴 -啦 -惯 -乘 -伙 -恢 -匀 -纱 -扎 -辩 -耳 -彪 -臣 -亿 -璃 -抵 -脉 -秀 -萨 -俄 -网 -舞 -店 -喷 -纵 -寸 -汗 -挂 -洪 -贺 -闪 -柬 -爆 -烯 -津 -稻 -墙 -软 -勇 -像 -滚 -厘 -蒙 -芳 -肯 -坡 -柱 -荡 -腿 -仪 -旅 -尾 -轧 -冰 -贡 -登 -黎 -削 -钻 -勒 -逃 -障 -氨 -郭 -峰 -币 -港 -伏 -轨 -亩 -毕 -擦 -莫 -刺 -浪 -秘 -援 -株 -健 -售 -股 -岛 -甘 -泡 -睡 -童 -铸 -汤 -阀 -休 -汇 -舍 -牧 -绕 -炸 -哲 -磷 -绩 -朋 -淡 -尖 -启 -陷 -柴 -呈 -徒 -颜 -泪 -稍 -忘 -泵 -蓝 -拖 -洞 -授 -镜 -辛 -壮 -锋 -贫 -虚 -弯 -摩 -泰 -幼 -廷 -尊 -窗 -纲 -弄 -隶 -疑 -氏 -宫 -姐 -震 -瑞 -怪 -尤 -琴 -循 -描 -膜 -违 -夹 -腰 -缘 -珠 -穷 -森 -枝 -竹 -沟 -催 -绳 -忆 -邦 -剩 -幸 -浆 -栏 -拥 -牙 -贮 -礼 -滤 -钠 -纹 -罢 -拍 -咱 -喊 -袖 -埃 -勤 -罚 -焦 -潜 -伍 -墨 -欲 -缝 -姓 -刊 -饱 -仿 -奖 -铝 -鬼 -丽 -跨 -默 -挖 -链 -扫 -喝 -袋 -炭 -污 -幕 -诸 -弧 -励 -梅 -奶 -洁 -灾 -舟 -鉴 -苯 -讼 -抱 -毁 -懂 -寒 -智 -埔 -寄 -届 -跃 -渡 -挑 -丹 -艰 -贝 -碰 -拔 -爹 -戴 -码 -梦 -芽 -熔 -赤 -渔 -哭 -敬 -颗 -奔 -铅 -仲 -虎 -稀 -妹 -乏 -珍 -申 -桌 -遵 -允 -隆 -螺 -仓 -魏 -锐 -晓 -氮 -兼 -隐 -碍 -赫 -拨 -忠 -肃 -缸 -牵 -抢 -博 -巧 -壳 -兄 -杜 -讯 -诚 -碧 -祥 -柯 -页 -巡 -矩 -悲 -灌 -龄 -伦 -票 -寻 -桂 -铺 -圣 -恐 -恰 -郑 -趣 -抬 -荒 -腾 -贴 -柔 -滴 -猛 -阔 -辆 -妻 -填 -撤 -储 -签 -闹 -扰 -紫 -砂 -递 -戏 -吊 -陶 -伐 -喂 -疗 -瓶 -婆 -抚 -臂 -摸 -忍 -虾 -蜡 -邻 -胸 -巩 -挤 -偶 -弃 -槽 -劲 -乳 -邓 -吉 -仁 -烂 -砖 -租 -乌 -舰 -伴 -瓜 -浅 -丙 -暂 -燥 -橡 -柳 -迷 -暖 -牌 -秧 -胆 -详 -簧 -踏 -瓷 -谱 -呆 -宾 -糊 -洛 -辉 -愤 -竞 -隙 -怒 -粘 -乃 -绪 -肩 -籍 -敏 -涂 -熙 -皆 -侦 -悬 -掘 -享 -纠 -醒 -狂 -锁 -淀 -恨 -牲 -霸 -爬 -赏 -逆 -玩 -陵 -祝 -秒 -浙 -貌 -役 -彼 -悉 -鸭 -趋 -凤 -晨 -畜 -辈 -秩 -卵 -署 -梯 -炎 -滩 -棋 -驱 -筛 -峡 -冒 -啥 -寿 -译 -浸 -泉 -帽 -迟 -硅 -疆 -贷 -漏 -稿 -冠 -嫩 -胁 -芯 -牢 -叛 -蚀 -奥 -鸣 -岭 -羊 -凭 -串 -塘 -绘 -酵 -融 -盆 -锡 -庙 -筹 -冻 -辅 -摄 -袭 -筋 -拒 -僚 -旱 -钾 -鸟 -漆 -沈 -眉 -疏 -添 -棒 -穗 -硝 -韩 -逼 -扭 -侨 -凉 -挺 -碗 -栽 -炒 -杯 -患 -馏 -劝 -豪 -辽 -勃 -鸿 -旦 -吏 -拜 -狗 -埋 -辊 -掩 -饮 -搬 -骂 -辞 -勾 -扣 -估 -蒋 -绒 -雾 -丈 -朵 -姆 -拟 -宇 -辑 -陕 -雕 -偿 -蓄 -崇 -剪 -倡 -厅 -咬 -驶 -薯 -刷 -斥 -番 -赋 -奉 -佛 -浇 -漫 -曼 -扇 -钙 -桃 -扶 -仔 -返 -俗 -亏 -腔 -鞋 -棱 -覆 -框 -悄 -叔 -撞 -骗 -勘 -旺 -沸 -孤 -吐 -孟 -渠 -屈 -疾 -妙 -惜 -仰 -狠 -胀 -谐 -抛 -霉 -桑 -岗 -嘛 -衰 -盗 -渗 -脏 -赖 -涌 -甜 -曹 -阅 -肌 -哩 -厉 -烃 -纬 -毅 -昨 -伪 -症 -煮 -叹 -钉 -搭 -茎 -笼 -酷 -偷 -弓 -锥 -恒 -杰 -坑 -鼻 -翼 -纶 -叙 -狱 -逮 -罐 -络 -棚 -抑 -膨 -蔬 -寺 -骤 -穆 -冶 -枯 -册 -尸 -凸 -绅 -坯 -牺 -焰 -轰 -欣 -晋 -瘦 -御 -锭 -锦 -丧 -旬 -锻 -垄 -搜 -扑 -邀 -亭 -酯 -迈 -舒 -脆 -酶 -闲 -忧 -酚 -顽 -羽 -涨 -卸 -仗 -陪 -辟 -惩 -杭 -姚 -肚 -捉 -飘 -漂 -昆 -欺 -吾 -郎 -烷 -汁 -呵 -饰 -萧 -雅 -邮 -迁 -燕 -撒 -姻 -赴 -宴 -烦 -债 -帐 -斑 -铃 -旨 -醇 -董 -饼 -雏 -姿 -拌 -傅 -腹 -妥 -揉 -贤 -拆 -歪 -葡 -胺 -丢 -浩 -徽 -昂 -垫 -挡 -览 -贪 -慰 -缴 -汪 -慌 -冯 -诺 -姜 -谊 -凶 -劣 -诬 -耀 -昏 -躺 -盈 -骑 -乔 -溪 -丛 -卢 -抹 -闷 -咨 -刮 -驾 -缆 -悟 -摘 -铒 -掷 -颇 -幻 -柄 -惠 -惨 -佳 -仇 -腊 -窝 -涤 -剑 -瞧 -堡 -泼 -葱 -罩 -霍 -捞 -胎 -苍 -滨 -俩 -捅 -湘 -砍 -霞 -邵 -萄 -疯 -淮 -遂 -熊 -粪 -烘 -宿 -档 -戈 -驳 -嫂 -裕 -徙 -箭 -捐 -肠 -撑 -晒 -辨 -殿 -莲 -摊 -搅 -酱 -屏 -疫 -哀 -蔡 -堵 -沫 -皱 -畅 -叠 -阁 -莱 -敲 -辖 -钩 -痕 -坝 -巷 -饿 -祸 -丘 -玄 -溜 -曰 -逻 -彭 -尝 -卿 -妨 -艇 -吞 -韦 -怨 -矮 -歇`.split('\n'); diff --git a/node_modules/@scure/bip39/wordlists/spanish.d.ts b/node_modules/@scure/bip39/wordlists/spanish.d.ts deleted file mode 100644 index b566a1db..00000000 --- a/node_modules/@scure/bip39/wordlists/spanish.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const wordlist: string[]; diff --git a/node_modules/@scure/bip39/wordlists/spanish.js b/node_modules/@scure/bip39/wordlists/spanish.js deleted file mode 100644 index 0a8328a1..00000000 --- a/node_modules/@scure/bip39/wordlists/spanish.js +++ /dev/null @@ -1,2051 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.wordlist = void 0; -exports.wordlist = `ábaco -abdomen -abeja -abierto -abogado -abono -aborto -abrazo -abrir -abuelo -abuso -acabar -academia -acceso -acción -aceite -acelga -acento -aceptar -ácido -aclarar -acné -acoger -acoso -activo -acto -actriz -actuar -acudir -acuerdo -acusar -adicto -admitir -adoptar -adorno -aduana -adulto -aéreo -afectar -afición -afinar -afirmar -ágil -agitar -agonía -agosto -agotar -agregar -agrio -agua -agudo -águila -aguja -ahogo -ahorro -aire -aislar -ajedrez -ajeno -ajuste -alacrán -alambre -alarma -alba -álbum -alcalde -aldea -alegre -alejar -alerta -aleta -alfiler -alga -algodón -aliado -aliento -alivio -alma -almeja -almíbar -altar -alteza -altivo -alto -altura -alumno -alzar -amable -amante -amapola -amargo -amasar -ámbar -ámbito -ameno -amigo -amistad -amor -amparo -amplio -ancho -anciano -ancla -andar -andén -anemia -ángulo -anillo -ánimo -anís -anotar -antena -antiguo -antojo -anual -anular -anuncio -añadir -añejo -año -apagar -aparato -apetito -apio -aplicar -apodo -aporte -apoyo -aprender -aprobar -apuesta -apuro -arado -araña -arar -árbitro -árbol -arbusto -archivo -arco -arder -ardilla -arduo -área -árido -aries -armonía -arnés -aroma -arpa -arpón -arreglo -arroz -arruga -arte -artista -asa -asado -asalto -ascenso -asegurar -aseo -asesor -asiento -asilo -asistir -asno -asombro -áspero -astilla -astro -astuto -asumir -asunto -atajo -ataque -atar -atento -ateo -ático -atleta -átomo -atraer -atroz -atún -audaz -audio -auge -aula -aumento -ausente -autor -aval -avance -avaro -ave -avellana -avena -avestruz -avión -aviso -ayer -ayuda -ayuno -azafrán -azar -azote -azúcar -azufre -azul -baba -babor -bache -bahía -baile -bajar -balanza -balcón -balde -bambú -banco -banda -baño -barba -barco -barniz -barro -báscula -bastón -basura -batalla -batería -batir -batuta -baúl -bazar -bebé -bebida -bello -besar -beso -bestia -bicho -bien -bingo -blanco -bloque -blusa -boa -bobina -bobo -boca -bocina -boda -bodega -boina -bola -bolero -bolsa -bomba -bondad -bonito -bono -bonsái -borde -borrar -bosque -bote -botín -bóveda -bozal -bravo -brazo -brecha -breve -brillo -brinco -brisa -broca -broma -bronce -brote -bruja -brusco -bruto -buceo -bucle -bueno -buey -bufanda -bufón -búho -buitre -bulto -burbuja -burla -burro -buscar -butaca -buzón -caballo -cabeza -cabina -cabra -cacao -cadáver -cadena -caer -café -caída -caimán -caja -cajón -cal -calamar -calcio -caldo -calidad -calle -calma -calor -calvo -cama -cambio -camello -camino -campo -cáncer -candil -canela -canguro -canica -canto -caña -cañón -caoba -caos -capaz -capitán -capote -captar -capucha -cara -carbón -cárcel -careta -carga -cariño -carne -carpeta -carro -carta -casa -casco -casero -caspa -castor -catorce -catre -caudal -causa -cazo -cebolla -ceder -cedro -celda -célebre -celoso -célula -cemento -ceniza -centro -cerca -cerdo -cereza -cero -cerrar -certeza -césped -cetro -chacal -chaleco -champú -chancla -chapa -charla -chico -chiste -chivo -choque -choza -chuleta -chupar -ciclón -ciego -cielo -cien -cierto -cifra -cigarro -cima -cinco -cine -cinta -ciprés -circo -ciruela -cisne -cita -ciudad -clamor -clan -claro -clase -clave -cliente -clima -clínica -cobre -cocción -cochino -cocina -coco -código -codo -cofre -coger -cohete -cojín -cojo -cola -colcha -colegio -colgar -colina -collar -colmo -columna -combate -comer -comida -cómodo -compra -conde -conejo -conga -conocer -consejo -contar -copa -copia -corazón -corbata -corcho -cordón -corona -correr -coser -cosmos -costa -cráneo -cráter -crear -crecer -creído -crema -cría -crimen -cripta -crisis -cromo -crónica -croqueta -crudo -cruz -cuadro -cuarto -cuatro -cubo -cubrir -cuchara -cuello -cuento -cuerda -cuesta -cueva -cuidar -culebra -culpa -culto -cumbre -cumplir -cuna -cuneta -cuota -cupón -cúpula -curar -curioso -curso -curva -cutis -dama -danza -dar -dardo -dátil -deber -débil -década -decir -dedo -defensa -definir -dejar -delfín -delgado -delito -demora -denso -dental -deporte -derecho -derrota -desayuno -deseo -desfile -desnudo -destino -desvío -detalle -detener -deuda -día -diablo -diadema -diamante -diana -diario -dibujo -dictar -diente -dieta -diez -difícil -digno -dilema -diluir -dinero -directo -dirigir -disco -diseño -disfraz -diva -divino -doble -doce -dolor -domingo -don -donar -dorado -dormir -dorso -dos -dosis -dragón -droga -ducha -duda -duelo -dueño -dulce -dúo -duque -durar -dureza -duro -ébano -ebrio -echar -eco -ecuador -edad -edición -edificio -editor -educar -efecto -eficaz -eje -ejemplo -elefante -elegir -elemento -elevar -elipse -élite -elixir -elogio -eludir -embudo -emitir -emoción -empate -empeño -empleo -empresa -enano -encargo -enchufe -encía -enemigo -enero -enfado -enfermo -engaño -enigma -enlace -enorme -enredo -ensayo -enseñar -entero -entrar -envase -envío -época -equipo -erizo -escala -escena -escolar -escribir -escudo -esencia -esfera -esfuerzo -espada -espejo -espía -esposa -espuma -esquí -estar -este -estilo -estufa -etapa -eterno -ética -etnia -evadir -evaluar -evento -evitar -exacto -examen -exceso -excusa -exento -exigir -exilio -existir -éxito -experto -explicar -exponer -extremo -fábrica -fábula -fachada -fácil -factor -faena -faja -falda -fallo -falso -faltar -fama -familia -famoso -faraón -farmacia -farol -farsa -fase -fatiga -fauna -favor -fax -febrero -fecha -feliz -feo -feria -feroz -fértil -fervor -festín -fiable -fianza -fiar -fibra -ficción -ficha -fideo -fiebre -fiel -fiera -fiesta -figura -fijar -fijo -fila -filete -filial -filtro -fin -finca -fingir -finito -firma -flaco -flauta -flecha -flor -flota -fluir -flujo -flúor -fobia -foca -fogata -fogón -folio -folleto -fondo -forma -forro -fortuna -forzar -fosa -foto -fracaso -frágil -franja -frase -fraude -freír -freno -fresa -frío -frito -fruta -fuego -fuente -fuerza -fuga -fumar -función -funda -furgón -furia -fusil -fútbol -futuro -gacela -gafas -gaita -gajo -gala -galería -gallo -gamba -ganar -gancho -ganga -ganso -garaje -garza -gasolina -gastar -gato -gavilán -gemelo -gemir -gen -género -genio -gente -geranio -gerente -germen -gesto -gigante -gimnasio -girar -giro -glaciar -globo -gloria -gol -golfo -goloso -golpe -goma -gordo -gorila -gorra -gota -goteo -gozar -grada -gráfico -grano -grasa -gratis -grave -grieta -grillo -gripe -gris -grito -grosor -grúa -grueso -grumo -grupo -guante -guapo -guardia -guerra -guía -guiño -guion -guiso -guitarra -gusano -gustar -haber -hábil -hablar -hacer -hacha -hada -hallar -hamaca -harina -haz -hazaña -hebilla -hebra -hecho -helado -helio -hembra -herir -hermano -héroe -hervir -hielo -hierro -hígado -higiene -hijo -himno -historia -hocico -hogar -hoguera -hoja -hombre -hongo -honor -honra -hora -hormiga -horno -hostil -hoyo -hueco -huelga -huerta -hueso -huevo -huida -huir -humano -húmedo -humilde -humo -hundir -huracán -hurto -icono -ideal -idioma -ídolo -iglesia -iglú -igual -ilegal -ilusión -imagen -imán -imitar -impar -imperio -imponer -impulso -incapaz -índice -inerte -infiel -informe -ingenio -inicio -inmenso -inmune -innato -insecto -instante -interés -íntimo -intuir -inútil -invierno -ira -iris -ironía -isla -islote -jabalí -jabón -jamón -jarabe -jardín -jarra -jaula -jazmín -jefe -jeringa -jinete -jornada -joroba -joven -joya -juerga -jueves -juez -jugador -jugo -juguete -juicio -junco -jungla -junio -juntar -júpiter -jurar -justo -juvenil -juzgar -kilo -koala -labio -lacio -lacra -lado -ladrón -lagarto -lágrima -laguna -laico -lamer -lámina -lámpara -lana -lancha -langosta -lanza -lápiz -largo -larva -lástima -lata -látex -latir -laurel -lavar -lazo -leal -lección -leche -lector -leer -legión -legumbre -lejano -lengua -lento -leña -león -leopardo -lesión -letal -letra -leve -leyenda -libertad -libro -licor -líder -lidiar -lienzo -liga -ligero -lima -límite -limón -limpio -lince -lindo -línea -lingote -lino -linterna -líquido -liso -lista -litera -litio -litro -llaga -llama -llanto -llave -llegar -llenar -llevar -llorar -llover -lluvia -lobo -loción -loco -locura -lógica -logro -lombriz -lomo -lonja -lote -lucha -lucir -lugar -lujo -luna -lunes -lupa -lustro -luto -luz -maceta -macho -madera -madre -maduro -maestro -mafia -magia -mago -maíz -maldad -maleta -malla -malo -mamá -mambo -mamut -manco -mando -manejar -manga -maniquí -manjar -mano -manso -manta -mañana -mapa -máquina -mar -marco -marea -marfil -margen -marido -mármol -marrón -martes -marzo -masa -máscara -masivo -matar -materia -matiz -matriz -máximo -mayor -mazorca -mecha -medalla -medio -médula -mejilla -mejor -melena -melón -memoria -menor -mensaje -mente -menú -mercado -merengue -mérito -mes -mesón -meta -meter -método -metro -mezcla -miedo -miel -miembro -miga -mil -milagro -militar -millón -mimo -mina -minero -mínimo -minuto -miope -mirar -misa -miseria -misil -mismo -mitad -mito -mochila -moción -moda -modelo -moho -mojar -molde -moler -molino -momento -momia -monarca -moneda -monja -monto -moño -morada -morder -moreno -morir -morro -morsa -mortal -mosca -mostrar -motivo -mover -móvil -mozo -mucho -mudar -mueble -muela -muerte -muestra -mugre -mujer -mula -muleta -multa -mundo -muñeca -mural -muro -músculo -museo -musgo -música -muslo -nácar -nación -nadar -naipe -naranja -nariz -narrar -nasal -natal -nativo -natural -náusea -naval -nave -navidad -necio -néctar -negar -negocio -negro -neón -nervio -neto -neutro -nevar -nevera -nicho -nido -niebla -nieto -niñez -niño -nítido -nivel -nobleza -noche -nómina -noria -norma -norte -nota -noticia -novato -novela -novio -nube -nuca -núcleo -nudillo -nudo -nuera -nueve -nuez -nulo -número -nutria -oasis -obeso -obispo -objeto -obra -obrero -observar -obtener -obvio -oca -ocaso -océano -ochenta -ocho -ocio -ocre -octavo -octubre -oculto -ocupar -ocurrir -odiar -odio -odisea -oeste -ofensa -oferta -oficio -ofrecer -ogro -oído -oír -ojo -ola -oleada -olfato -olivo -olla -olmo -olor -olvido -ombligo -onda -onza -opaco -opción -ópera -opinar -oponer -optar -óptica -opuesto -oración -orador -oral -órbita -orca -orden -oreja -órgano -orgía -orgullo -oriente -origen -orilla -oro -orquesta -oruga -osadía -oscuro -osezno -oso -ostra -otoño -otro -oveja -óvulo -óxido -oxígeno -oyente -ozono -pacto -padre -paella -página -pago -país -pájaro -palabra -palco -paleta -pálido -palma -paloma -palpar -pan -panal -pánico -pantera -pañuelo -papá -papel -papilla -paquete -parar -parcela -pared -parir -paro -párpado -parque -párrafo -parte -pasar -paseo -pasión -paso -pasta -pata -patio -patria -pausa -pauta -pavo -payaso -peatón -pecado -pecera -pecho -pedal -pedir -pegar -peine -pelar -peldaño -pelea -peligro -pellejo -pelo -peluca -pena -pensar -peñón -peón -peor -pepino -pequeño -pera -percha -perder -pereza -perfil -perico -perla -permiso -perro -persona -pesa -pesca -pésimo -pestaña -pétalo -petróleo -pez -pezuña -picar -pichón -pie -piedra -pierna -pieza -pijama -pilar -piloto -pimienta -pino -pintor -pinza -piña -piojo -pipa -pirata -pisar -piscina -piso -pista -pitón -pizca -placa -plan -plata -playa -plaza -pleito -pleno -plomo -pluma -plural -pobre -poco -poder -podio -poema -poesía -poeta -polen -policía -pollo -polvo -pomada -pomelo -pomo -pompa -poner -porción -portal -posada -poseer -posible -poste -potencia -potro -pozo -prado -precoz -pregunta -premio -prensa -preso -previo -primo -príncipe -prisión -privar -proa -probar -proceso -producto -proeza -profesor -programa -prole -promesa -pronto -propio -próximo -prueba -público -puchero -pudor -pueblo -puerta -puesto -pulga -pulir -pulmón -pulpo -pulso -puma -punto -puñal -puño -pupa -pupila -puré -quedar -queja -quemar -querer -queso -quieto -química -quince -quitar -rábano -rabia -rabo -ración -radical -raíz -rama -rampa -rancho -rango -rapaz -rápido -rapto -rasgo -raspa -rato -rayo -raza -razón -reacción -realidad -rebaño -rebote -recaer -receta -rechazo -recoger -recreo -recto -recurso -red -redondo -reducir -reflejo -reforma -refrán -refugio -regalo -regir -regla -regreso -rehén -reino -reír -reja -relato -relevo -relieve -relleno -reloj -remar -remedio -remo -rencor -rendir -renta -reparto -repetir -reposo -reptil -res -rescate -resina -respeto -resto -resumen -retiro -retorno -retrato -reunir -revés -revista -rey -rezar -rico -riego -rienda -riesgo -rifa -rígido -rigor -rincón -riñón -río -riqueza -risa -ritmo -rito -rizo -roble -roce -rociar -rodar -rodeo -rodilla -roer -rojizo -rojo -romero -romper -ron -ronco -ronda -ropa -ropero -rosa -rosca -rostro -rotar -rubí -rubor -rudo -rueda -rugir -ruido -ruina -ruleta -rulo -rumbo -rumor -ruptura -ruta -rutina -sábado -saber -sabio -sable -sacar -sagaz -sagrado -sala -saldo -salero -salir -salmón -salón -salsa -salto -salud -salvar -samba -sanción -sandía -sanear -sangre -sanidad -sano -santo -sapo -saque -sardina -sartén -sastre -satán -sauna -saxofón -sección -seco -secreto -secta -sed -seguir -seis -sello -selva -semana -semilla -senda -sensor -señal -señor -separar -sepia -sequía -ser -serie -sermón -servir -sesenta -sesión -seta -setenta -severo -sexo -sexto -sidra -siesta -siete -siglo -signo -sílaba -silbar -silencio -silla -símbolo -simio -sirena -sistema -sitio -situar -sobre -socio -sodio -sol -solapa -soldado -soledad -sólido -soltar -solución -sombra -sondeo -sonido -sonoro -sonrisa -sopa -soplar -soporte -sordo -sorpresa -sorteo -sostén -sótano -suave -subir -suceso -sudor -suegra -suelo -sueño -suerte -sufrir -sujeto -sultán -sumar -superar -suplir -suponer -supremo -sur -surco -sureño -surgir -susto -sutil -tabaco -tabique -tabla -tabú -taco -tacto -tajo -talar -talco -talento -talla -talón -tamaño -tambor -tango -tanque -tapa -tapete -tapia -tapón -taquilla -tarde -tarea -tarifa -tarjeta -tarot -tarro -tarta -tatuaje -tauro -taza -tazón -teatro -techo -tecla -técnica -tejado -tejer -tejido -tela -teléfono -tema -temor -templo -tenaz -tender -tener -tenis -tenso -teoría -terapia -terco -término -ternura -terror -tesis -tesoro -testigo -tetera -texto -tez -tibio -tiburón -tiempo -tienda -tierra -tieso -tigre -tijera -tilde -timbre -tímido -timo -tinta -tío -típico -tipo -tira -tirón -titán -títere -título -tiza -toalla -tobillo -tocar -tocino -todo -toga -toldo -tomar -tono -tonto -topar -tope -toque -tórax -torero -tormenta -torneo -toro -torpedo -torre -torso -tortuga -tos -tosco -toser -tóxico -trabajo -tractor -traer -tráfico -trago -traje -tramo -trance -trato -trauma -trazar -trébol -tregua -treinta -tren -trepar -tres -tribu -trigo -tripa -triste -triunfo -trofeo -trompa -tronco -tropa -trote -trozo -truco -trueno -trufa -tubería -tubo -tuerto -tumba -tumor -túnel -túnica -turbina -turismo -turno -tutor -ubicar -úlcera -umbral -unidad -unir -universo -uno -untar -uña -urbano -urbe -urgente -urna -usar -usuario -útil -utopía -uva -vaca -vacío -vacuna -vagar -vago -vaina -vajilla -vale -válido -valle -valor -válvula -vampiro -vara -variar -varón -vaso -vecino -vector -vehículo -veinte -vejez -vela -velero -veloz -vena -vencer -venda -veneno -vengar -venir -venta -venus -ver -verano -verbo -verde -vereda -verja -verso -verter -vía -viaje -vibrar -vicio -víctima -vida -vídeo -vidrio -viejo -viernes -vigor -vil -villa -vinagre -vino -viñedo -violín -viral -virgo -virtud -visor -víspera -vista -vitamina -viudo -vivaz -vivero -vivir -vivo -volcán -volumen -volver -voraz -votar -voto -voz -vuelo -vulgar -yacer -yate -yegua -yema -yerno -yeso -yodo -yoga -yogur -zafiro -zanja -zapato -zarza -zona -zorro -zumo -zurdo`.split('\n'); diff --git a/node_modules/@scure/bip39/wordlists/traditional-chinese.d.ts b/node_modules/@scure/bip39/wordlists/traditional-chinese.d.ts deleted file mode 100644 index b566a1db..00000000 --- a/node_modules/@scure/bip39/wordlists/traditional-chinese.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const wordlist: string[]; diff --git a/node_modules/@scure/bip39/wordlists/traditional-chinese.js b/node_modules/@scure/bip39/wordlists/traditional-chinese.js deleted file mode 100644 index 789a0bc7..00000000 --- a/node_modules/@scure/bip39/wordlists/traditional-chinese.js +++ /dev/null @@ -1,2051 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.wordlist = void 0; -exports.wordlist = `的 -一 -是 -在 -不 -了 -有 -和 -人 -這 -中 -大 -為 -上 -個 -國 -我 -以 -要 -他 -時 -來 -用 -們 -生 -到 -作 -地 -於 -出 -就 -分 -對 -成 -會 -可 -主 -發 -年 -動 -同 -工 -也 -能 -下 -過 -子 -說 -產 -種 -面 -而 -方 -後 -多 -定 -行 -學 -法 -所 -民 -得 -經 -十 -三 -之 -進 -著 -等 -部 -度 -家 -電 -力 -裡 -如 -水 -化 -高 -自 -二 -理 -起 -小 -物 -現 -實 -加 -量 -都 -兩 -體 -制 -機 -當 -使 -點 -從 -業 -本 -去 -把 -性 -好 -應 -開 -它 -合 -還 -因 -由 -其 -些 -然 -前 -外 -天 -政 -四 -日 -那 -社 -義 -事 -平 -形 -相 -全 -表 -間 -樣 -與 -關 -各 -重 -新 -線 -內 -數 -正 -心 -反 -你 -明 -看 -原 -又 -麼 -利 -比 -或 -但 -質 -氣 -第 -向 -道 -命 -此 -變 -條 -只 -沒 -結 -解 -問 -意 -建 -月 -公 -無 -系 -軍 -很 -情 -者 -最 -立 -代 -想 -已 -通 -並 -提 -直 -題 -黨 -程 -展 -五 -果 -料 -象 -員 -革 -位 -入 -常 -文 -總 -次 -品 -式 -活 -設 -及 -管 -特 -件 -長 -求 -老 -頭 -基 -資 -邊 -流 -路 -級 -少 -圖 -山 -統 -接 -知 -較 -將 -組 -見 -計 -別 -她 -手 -角 -期 -根 -論 -運 -農 -指 -幾 -九 -區 -強 -放 -決 -西 -被 -幹 -做 -必 -戰 -先 -回 -則 -任 -取 -據 -處 -隊 -南 -給 -色 -光 -門 -即 -保 -治 -北 -造 -百 -規 -熱 -領 -七 -海 -口 -東 -導 -器 -壓 -志 -世 -金 -增 -爭 -濟 -階 -油 -思 -術 -極 -交 -受 -聯 -什 -認 -六 -共 -權 -收 -證 -改 -清 -美 -再 -採 -轉 -更 -單 -風 -切 -打 -白 -教 -速 -花 -帶 -安 -場 -身 -車 -例 -真 -務 -具 -萬 -每 -目 -至 -達 -走 -積 -示 -議 -聲 -報 -鬥 -完 -類 -八 -離 -華 -名 -確 -才 -科 -張 -信 -馬 -節 -話 -米 -整 -空 -元 -況 -今 -集 -溫 -傳 -土 -許 -步 -群 -廣 -石 -記 -需 -段 -研 -界 -拉 -林 -律 -叫 -且 -究 -觀 -越 -織 -裝 -影 -算 -低 -持 -音 -眾 -書 -布 -复 -容 -兒 -須 -際 -商 -非 -驗 -連 -斷 -深 -難 -近 -礦 -千 -週 -委 -素 -技 -備 -半 -辦 -青 -省 -列 -習 -響 -約 -支 -般 -史 -感 -勞 -便 -團 -往 -酸 -歷 -市 -克 -何 -除 -消 -構 -府 -稱 -太 -準 -精 -值 -號 -率 -族 -維 -劃 -選 -標 -寫 -存 -候 -毛 -親 -快 -效 -斯 -院 -查 -江 -型 -眼 -王 -按 -格 -養 -易 -置 -派 -層 -片 -始 -卻 -專 -狀 -育 -廠 -京 -識 -適 -屬 -圓 -包 -火 -住 -調 -滿 -縣 -局 -照 -參 -紅 -細 -引 -聽 -該 -鐵 -價 -嚴 -首 -底 -液 -官 -德 -隨 -病 -蘇 -失 -爾 -死 -講 -配 -女 -黃 -推 -顯 -談 -罪 -神 -藝 -呢 -席 -含 -企 -望 -密 -批 -營 -項 -防 -舉 -球 -英 -氧 -勢 -告 -李 -台 -落 -木 -幫 -輪 -破 -亞 -師 -圍 -注 -遠 -字 -材 -排 -供 -河 -態 -封 -另 -施 -減 -樹 -溶 -怎 -止 -案 -言 -士 -均 -武 -固 -葉 -魚 -波 -視 -僅 -費 -緊 -愛 -左 -章 -早 -朝 -害 -續 -輕 -服 -試 -食 -充 -兵 -源 -判 -護 -司 -足 -某 -練 -差 -致 -板 -田 -降 -黑 -犯 -負 -擊 -范 -繼 -興 -似 -餘 -堅 -曲 -輸 -修 -故 -城 -夫 -夠 -送 -筆 -船 -佔 -右 -財 -吃 -富 -春 -職 -覺 -漢 -畫 -功 -巴 -跟 -雖 -雜 -飛 -檢 -吸 -助 -昇 -陽 -互 -初 -創 -抗 -考 -投 -壞 -策 -古 -徑 -換 -未 -跑 -留 -鋼 -曾 -端 -責 -站 -簡 -述 -錢 -副 -盡 -帝 -射 -草 -衝 -承 -獨 -令 -限 -阿 -宣 -環 -雙 -請 -超 -微 -讓 -控 -州 -良 -軸 -找 -否 -紀 -益 -依 -優 -頂 -礎 -載 -倒 -房 -突 -坐 -粉 -敵 -略 -客 -袁 -冷 -勝 -絕 -析 -塊 -劑 -測 -絲 -協 -訴 -念 -陳 -仍 -羅 -鹽 -友 -洋 -錯 -苦 -夜 -刑 -移 -頻 -逐 -靠 -混 -母 -短 -皮 -終 -聚 -汽 -村 -雲 -哪 -既 -距 -衛 -停 -烈 -央 -察 -燒 -迅 -境 -若 -印 -洲 -刻 -括 -激 -孔 -搞 -甚 -室 -待 -核 -校 -散 -侵 -吧 -甲 -遊 -久 -菜 -味 -舊 -模 -湖 -貨 -損 -預 -阻 -毫 -普 -穩 -乙 -媽 -植 -息 -擴 -銀 -語 -揮 -酒 -守 -拿 -序 -紙 -醫 -缺 -雨 -嗎 -針 -劉 -啊 -急 -唱 -誤 -訓 -願 -審 -附 -獲 -茶 -鮮 -糧 -斤 -孩 -脫 -硫 -肥 -善 -龍 -演 -父 -漸 -血 -歡 -械 -掌 -歌 -沙 -剛 -攻 -謂 -盾 -討 -晚 -粒 -亂 -燃 -矛 -乎 -殺 -藥 -寧 -魯 -貴 -鐘 -煤 -讀 -班 -伯 -香 -介 -迫 -句 -豐 -培 -握 -蘭 -擔 -弦 -蛋 -沉 -假 -穿 -執 -答 -樂 -誰 -順 -煙 -縮 -徵 -臉 -喜 -松 -腳 -困 -異 -免 -背 -星 -福 -買 -染 -井 -概 -慢 -怕 -磁 -倍 -祖 -皇 -促 -靜 -補 -評 -翻 -肉 -踐 -尼 -衣 -寬 -揚 -棉 -希 -傷 -操 -垂 -秋 -宜 -氫 -套 -督 -振 -架 -亮 -末 -憲 -慶 -編 -牛 -觸 -映 -雷 -銷 -詩 -座 -居 -抓 -裂 -胞 -呼 -娘 -景 -威 -綠 -晶 -厚 -盟 -衡 -雞 -孫 -延 -危 -膠 -屋 -鄉 -臨 -陸 -顧 -掉 -呀 -燈 -歲 -措 -束 -耐 -劇 -玉 -趙 -跳 -哥 -季 -課 -凱 -胡 -額 -款 -紹 -卷 -齊 -偉 -蒸 -殖 -永 -宗 -苗 -川 -爐 -岩 -弱 -零 -楊 -奏 -沿 -露 -桿 -探 -滑 -鎮 -飯 -濃 -航 -懷 -趕 -庫 -奪 -伊 -靈 -稅 -途 -滅 -賽 -歸 -召 -鼓 -播 -盤 -裁 -險 -康 -唯 -錄 -菌 -純 -借 -糖 -蓋 -橫 -符 -私 -努 -堂 -域 -槍 -潤 -幅 -哈 -竟 -熟 -蟲 -澤 -腦 -壤 -碳 -歐 -遍 -側 -寨 -敢 -徹 -慮 -斜 -薄 -庭 -納 -彈 -飼 -伸 -折 -麥 -濕 -暗 -荷 -瓦 -塞 -床 -築 -惡 -戶 -訪 -塔 -奇 -透 -梁 -刀 -旋 -跡 -卡 -氯 -遇 -份 -毒 -泥 -退 -洗 -擺 -灰 -彩 -賣 -耗 -夏 -擇 -忙 -銅 -獻 -硬 -予 -繁 -圈 -雪 -函 -亦 -抽 -篇 -陣 -陰 -丁 -尺 -追 -堆 -雄 -迎 -泛 -爸 -樓 -避 -謀 -噸 -野 -豬 -旗 -累 -偏 -典 -館 -索 -秦 -脂 -潮 -爺 -豆 -忽 -托 -驚 -塑 -遺 -愈 -朱 -替 -纖 -粗 -傾 -尚 -痛 -楚 -謝 -奮 -購 -磨 -君 -池 -旁 -碎 -骨 -監 -捕 -弟 -暴 -割 -貫 -殊 -釋 -詞 -亡 -壁 -頓 -寶 -午 -塵 -聞 -揭 -炮 -殘 -冬 -橋 -婦 -警 -綜 -招 -吳 -付 -浮 -遭 -徐 -您 -搖 -谷 -贊 -箱 -隔 -訂 -男 -吹 -園 -紛 -唐 -敗 -宋 -玻 -巨 -耕 -坦 -榮 -閉 -灣 -鍵 -凡 -駐 -鍋 -救 -恩 -剝 -凝 -鹼 -齒 -截 -煉 -麻 -紡 -禁 -廢 -盛 -版 -緩 -淨 -睛 -昌 -婚 -涉 -筒 -嘴 -插 -岸 -朗 -莊 -街 -藏 -姑 -貿 -腐 -奴 -啦 -慣 -乘 -夥 -恢 -勻 -紗 -扎 -辯 -耳 -彪 -臣 -億 -璃 -抵 -脈 -秀 -薩 -俄 -網 -舞 -店 -噴 -縱 -寸 -汗 -掛 -洪 -賀 -閃 -柬 -爆 -烯 -津 -稻 -牆 -軟 -勇 -像 -滾 -厘 -蒙 -芳 -肯 -坡 -柱 -盪 -腿 -儀 -旅 -尾 -軋 -冰 -貢 -登 -黎 -削 -鑽 -勒 -逃 -障 -氨 -郭 -峰 -幣 -港 -伏 -軌 -畝 -畢 -擦 -莫 -刺 -浪 -秘 -援 -株 -健 -售 -股 -島 -甘 -泡 -睡 -童 -鑄 -湯 -閥 -休 -匯 -舍 -牧 -繞 -炸 -哲 -磷 -績 -朋 -淡 -尖 -啟 -陷 -柴 -呈 -徒 -顏 -淚 -稍 -忘 -泵 -藍 -拖 -洞 -授 -鏡 -辛 -壯 -鋒 -貧 -虛 -彎 -摩 -泰 -幼 -廷 -尊 -窗 -綱 -弄 -隸 -疑 -氏 -宮 -姐 -震 -瑞 -怪 -尤 -琴 -循 -描 -膜 -違 -夾 -腰 -緣 -珠 -窮 -森 -枝 -竹 -溝 -催 -繩 -憶 -邦 -剩 -幸 -漿 -欄 -擁 -牙 -貯 -禮 -濾 -鈉 -紋 -罷 -拍 -咱 -喊 -袖 -埃 -勤 -罰 -焦 -潛 -伍 -墨 -欲 -縫 -姓 -刊 -飽 -仿 -獎 -鋁 -鬼 -麗 -跨 -默 -挖 -鏈 -掃 -喝 -袋 -炭 -污 -幕 -諸 -弧 -勵 -梅 -奶 -潔 -災 -舟 -鑑 -苯 -訟 -抱 -毀 -懂 -寒 -智 -埔 -寄 -屆 -躍 -渡 -挑 -丹 -艱 -貝 -碰 -拔 -爹 -戴 -碼 -夢 -芽 -熔 -赤 -漁 -哭 -敬 -顆 -奔 -鉛 -仲 -虎 -稀 -妹 -乏 -珍 -申 -桌 -遵 -允 -隆 -螺 -倉 -魏 -銳 -曉 -氮 -兼 -隱 -礙 -赫 -撥 -忠 -肅 -缸 -牽 -搶 -博 -巧 -殼 -兄 -杜 -訊 -誠 -碧 -祥 -柯 -頁 -巡 -矩 -悲 -灌 -齡 -倫 -票 -尋 -桂 -鋪 -聖 -恐 -恰 -鄭 -趣 -抬 -荒 -騰 -貼 -柔 -滴 -猛 -闊 -輛 -妻 -填 -撤 -儲 -簽 -鬧 -擾 -紫 -砂 -遞 -戲 -吊 -陶 -伐 -餵 -療 -瓶 -婆 -撫 -臂 -摸 -忍 -蝦 -蠟 -鄰 -胸 -鞏 -擠 -偶 -棄 -槽 -勁 -乳 -鄧 -吉 -仁 -爛 -磚 -租 -烏 -艦 -伴 -瓜 -淺 -丙 -暫 -燥 -橡 -柳 -迷 -暖 -牌 -秧 -膽 -詳 -簧 -踏 -瓷 -譜 -呆 -賓 -糊 -洛 -輝 -憤 -競 -隙 -怒 -粘 -乃 -緒 -肩 -籍 -敏 -塗 -熙 -皆 -偵 -懸 -掘 -享 -糾 -醒 -狂 -鎖 -淀 -恨 -牲 -霸 -爬 -賞 -逆 -玩 -陵 -祝 -秒 -浙 -貌 -役 -彼 -悉 -鴨 -趨 -鳳 -晨 -畜 -輩 -秩 -卵 -署 -梯 -炎 -灘 -棋 -驅 -篩 -峽 -冒 -啥 -壽 -譯 -浸 -泉 -帽 -遲 -矽 -疆 -貸 -漏 -稿 -冠 -嫩 -脅 -芯 -牢 -叛 -蝕 -奧 -鳴 -嶺 -羊 -憑 -串 -塘 -繪 -酵 -融 -盆 -錫 -廟 -籌 -凍 -輔 -攝 -襲 -筋 -拒 -僚 -旱 -鉀 -鳥 -漆 -沈 -眉 -疏 -添 -棒 -穗 -硝 -韓 -逼 -扭 -僑 -涼 -挺 -碗 -栽 -炒 -杯 -患 -餾 -勸 -豪 -遼 -勃 -鴻 -旦 -吏 -拜 -狗 -埋 -輥 -掩 -飲 -搬 -罵 -辭 -勾 -扣 -估 -蔣 -絨 -霧 -丈 -朵 -姆 -擬 -宇 -輯 -陝 -雕 -償 -蓄 -崇 -剪 -倡 -廳 -咬 -駛 -薯 -刷 -斥 -番 -賦 -奉 -佛 -澆 -漫 -曼 -扇 -鈣 -桃 -扶 -仔 -返 -俗 -虧 -腔 -鞋 -棱 -覆 -框 -悄 -叔 -撞 -騙 -勘 -旺 -沸 -孤 -吐 -孟 -渠 -屈 -疾 -妙 -惜 -仰 -狠 -脹 -諧 -拋 -黴 -桑 -崗 -嘛 -衰 -盜 -滲 -臟 -賴 -湧 -甜 -曹 -閱 -肌 -哩 -厲 -烴 -緯 -毅 -昨 -偽 -症 -煮 -嘆 -釘 -搭 -莖 -籠 -酷 -偷 -弓 -錐 -恆 -傑 -坑 -鼻 -翼 -綸 -敘 -獄 -逮 -罐 -絡 -棚 -抑 -膨 -蔬 -寺 -驟 -穆 -冶 -枯 -冊 -屍 -凸 -紳 -坯 -犧 -焰 -轟 -欣 -晉 -瘦 -禦 -錠 -錦 -喪 -旬 -鍛 -壟 -搜 -撲 -邀 -亭 -酯 -邁 -舒 -脆 -酶 -閒 -憂 -酚 -頑 -羽 -漲 -卸 -仗 -陪 -闢 -懲 -杭 -姚 -肚 -捉 -飄 -漂 -昆 -欺 -吾 -郎 -烷 -汁 -呵 -飾 -蕭 -雅 -郵 -遷 -燕 -撒 -姻 -赴 -宴 -煩 -債 -帳 -斑 -鈴 -旨 -醇 -董 -餅 -雛 -姿 -拌 -傅 -腹 -妥 -揉 -賢 -拆 -歪 -葡 -胺 -丟 -浩 -徽 -昂 -墊 -擋 -覽 -貪 -慰 -繳 -汪 -慌 -馮 -諾 -姜 -誼 -兇 -劣 -誣 -耀 -昏 -躺 -盈 -騎 -喬 -溪 -叢 -盧 -抹 -悶 -諮 -刮 -駕 -纜 -悟 -摘 -鉺 -擲 -頗 -幻 -柄 -惠 -慘 -佳 -仇 -臘 -窩 -滌 -劍 -瞧 -堡 -潑 -蔥 -罩 -霍 -撈 -胎 -蒼 -濱 -倆 -捅 -湘 -砍 -霞 -邵 -萄 -瘋 -淮 -遂 -熊 -糞 -烘 -宿 -檔 -戈 -駁 -嫂 -裕 -徙 -箭 -捐 -腸 -撐 -曬 -辨 -殿 -蓮 -攤 -攪 -醬 -屏 -疫 -哀 -蔡 -堵 -沫 -皺 -暢 -疊 -閣 -萊 -敲 -轄 -鉤 -痕 -壩 -巷 -餓 -禍 -丘 -玄 -溜 -曰 -邏 -彭 -嘗 -卿 -妨 -艇 -吞 -韋 -怨 -矮 -歇`.split('\n'); diff --git a/node_modules/@smithy/abort-controller/LICENSE b/node_modules/@smithy/abort-controller/LICENSE deleted file mode 100644 index 7b6491ba..00000000 --- a/node_modules/@smithy/abort-controller/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. \ No newline at end of file diff --git a/node_modules/@smithy/abort-controller/README.md b/node_modules/@smithy/abort-controller/README.md deleted file mode 100644 index 175bc37f..00000000 --- a/node_modules/@smithy/abort-controller/README.md +++ /dev/null @@ -1,4 +0,0 @@ -# @smithy/abort-controller - -[![NPM version](https://img.shields.io/npm/v/@smithy/abort-controller/latest.svg)](https://www.npmjs.com/package/@smithy/abort-controller) -[![NPM downloads](https://img.shields.io/npm/dm/@smithy/abort-controller.svg)](https://www.npmjs.com/package/@smithy/abort-controller) diff --git a/node_modules/@smithy/abort-controller/dist-cjs/AbortController.js b/node_modules/@smithy/abort-controller/dist-cjs/AbortController.js deleted file mode 100644 index 4c287382..00000000 --- a/node_modules/@smithy/abort-controller/dist-cjs/AbortController.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AbortController = void 0; -const AbortSignal_1 = require("./AbortSignal"); -class AbortController { - constructor() { - this.signal = new AbortSignal_1.AbortSignal(); - } - abort() { - this.signal.abort(); - } -} -exports.AbortController = AbortController; diff --git a/node_modules/@smithy/abort-controller/dist-cjs/AbortSignal.js b/node_modules/@smithy/abort-controller/dist-cjs/AbortSignal.js deleted file mode 100644 index 9954b780..00000000 --- a/node_modules/@smithy/abort-controller/dist-cjs/AbortSignal.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AbortSignal = void 0; -class AbortSignal { - constructor() { - this.onabort = null; - this._aborted = false; - Object.defineProperty(this, "_aborted", { - value: false, - writable: true, - }); - } - get aborted() { - return this._aborted; - } - abort() { - this._aborted = true; - if (this.onabort) { - this.onabort(this); - this.onabort = null; - } - } -} -exports.AbortSignal = AbortSignal; diff --git a/node_modules/@smithy/abort-controller/dist-cjs/index.js b/node_modules/@smithy/abort-controller/dist-cjs/index.js deleted file mode 100644 index 1d31310d..00000000 --- a/node_modules/@smithy/abort-controller/dist-cjs/index.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./AbortController"), exports); -tslib_1.__exportStar(require("./AbortSignal"), exports); diff --git a/node_modules/@smithy/abort-controller/dist-es/AbortController.js b/node_modules/@smithy/abort-controller/dist-es/AbortController.js deleted file mode 100644 index 696f1371..00000000 --- a/node_modules/@smithy/abort-controller/dist-es/AbortController.js +++ /dev/null @@ -1,9 +0,0 @@ -import { AbortSignal } from "./AbortSignal"; -export class AbortController { - constructor() { - this.signal = new AbortSignal(); - } - abort() { - this.signal.abort(); - } -} diff --git a/node_modules/@smithy/abort-controller/dist-es/AbortSignal.js b/node_modules/@smithy/abort-controller/dist-es/AbortSignal.js deleted file mode 100644 index 9fc08134..00000000 --- a/node_modules/@smithy/abort-controller/dist-es/AbortSignal.js +++ /dev/null @@ -1,20 +0,0 @@ -export class AbortSignal { - constructor() { - this.onabort = null; - this._aborted = false; - Object.defineProperty(this, "_aborted", { - value: false, - writable: true, - }); - } - get aborted() { - return this._aborted; - } - abort() { - this._aborted = true; - if (this.onabort) { - this.onabort(this); - this.onabort = null; - } - } -} diff --git a/node_modules/@smithy/abort-controller/dist-es/index.js b/node_modules/@smithy/abort-controller/dist-es/index.js deleted file mode 100644 index a0f47f72..00000000 --- a/node_modules/@smithy/abort-controller/dist-es/index.js +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./AbortController"; -export * from "./AbortSignal"; diff --git a/node_modules/@smithy/abort-controller/dist-types/AbortController.d.ts b/node_modules/@smithy/abort-controller/dist-types/AbortController.d.ts deleted file mode 100644 index bfbb9af3..00000000 --- a/node_modules/@smithy/abort-controller/dist-types/AbortController.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { AbortController as IAbortController } from "@smithy/types"; -import { AbortSignal } from "./AbortSignal"; -export { IAbortController }; -/** - * This implementation was added as Node.js didn't support AbortController prior to 15.x - * Use native implementation in browsers or Node.js \>=15.4.0. - * - * @public - */ -export declare class AbortController implements IAbortController { - readonly signal: AbortSignal; - abort(): void; -} diff --git a/node_modules/@smithy/abort-controller/dist-types/AbortSignal.d.ts b/node_modules/@smithy/abort-controller/dist-types/AbortSignal.d.ts deleted file mode 100644 index abdcfe08..00000000 --- a/node_modules/@smithy/abort-controller/dist-types/AbortSignal.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { AbortHandler, AbortSignal as IAbortSignal } from "@smithy/types"; -export { AbortHandler, IAbortSignal }; -/** - * @public - */ -export declare class AbortSignal implements IAbortSignal { - onabort: AbortHandler | null; - private _aborted; - constructor(); - /** - * Whether the associated operation has already been cancelled. - */ - get aborted(): boolean; - /** - * @internal - */ - abort(): void; -} diff --git a/node_modules/@smithy/abort-controller/dist-types/index.d.ts b/node_modules/@smithy/abort-controller/dist-types/index.d.ts deleted file mode 100644 index 8788e2f1..00000000 --- a/node_modules/@smithy/abort-controller/dist-types/index.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -/** - * This implementation was added as Node.js didn't support AbortController prior to 15.x - * Use native implementation in browsers or Node.js \>=15.4.0. - * - * @deprecated Use standard implementations in [Browsers](https://developer.mozilla.org/en-US/docs/Web/API/AbortController) and [Node.js](https://nodejs.org/docs/latest/api/globals.html#class-abortcontroller) - * @packageDocumentation - */ -export * from "./AbortController"; -export * from "./AbortSignal"; diff --git a/node_modules/@smithy/abort-controller/dist-types/ts3.4/AbortController.d.ts b/node_modules/@smithy/abort-controller/dist-types/ts3.4/AbortController.d.ts deleted file mode 100644 index 3df89767..00000000 --- a/node_modules/@smithy/abort-controller/dist-types/ts3.4/AbortController.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { AbortController as IAbortController } from "@smithy/types"; -import { AbortSignal } from "./AbortSignal"; -export { IAbortController }; -/** - * This implementation was added as Node.js didn't support AbortController prior to 15.x - * Use native implementation in browsers or Node.js \>=15.4.0. - * - * @public - */ -export declare class AbortController implements IAbortController { - readonly signal: AbortSignal; - abort(): void; -} diff --git a/node_modules/@smithy/abort-controller/dist-types/ts3.4/AbortSignal.d.ts b/node_modules/@smithy/abort-controller/dist-types/ts3.4/AbortSignal.d.ts deleted file mode 100644 index 009e30cc..00000000 --- a/node_modules/@smithy/abort-controller/dist-types/ts3.4/AbortSignal.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { AbortHandler, AbortSignal as IAbortSignal } from "@smithy/types"; -export { AbortHandler, IAbortSignal }; -/** - * @public - */ -export declare class AbortSignal implements IAbortSignal { - onabort: AbortHandler | null; - private _aborted; - constructor(); - /* - * Whether the associated operation has already been cancelled. - */ - readonly aborted: boolean; - /** - * @internal - */ - abort(): void; -} diff --git a/node_modules/@smithy/abort-controller/dist-types/ts3.4/index.d.ts b/node_modules/@smithy/abort-controller/dist-types/ts3.4/index.d.ts deleted file mode 100644 index 5a907b0d..00000000 --- a/node_modules/@smithy/abort-controller/dist-types/ts3.4/index.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -/** - * This implementation was added as Node.js didn't support AbortController prior to 15.x - * Use native implementation in browsers or Node.js \>=15.4.0. - * - * @deprecated Use standard implementations in [Browsers](https://developer.mozilla.org/en-US/docs/Web/API/AbortController) and [Node.js](https://nodejs.org/docs/latest/api/globals.html#class-abortcontroller) - * @packageDocumentation - */ -export * from "./AbortController"; -export * from "./AbortSignal"; diff --git a/node_modules/@smithy/abort-controller/package.json b/node_modules/@smithy/abort-controller/package.json deleted file mode 100644 index 3b9d6912..00000000 --- a/node_modules/@smithy/abort-controller/package.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "name": "@smithy/abort-controller", - "version": "2.0.14", - "description": "A simple abort controller library", - "main": "./dist-cjs/index.js", - "module": "./dist-es/index.js", - "types": "./dist-types/index.d.ts", - "scripts": { - "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", - "build:cjs": "yarn g:tsc -p tsconfig.cjs.json", - "build:es": "yarn g:tsc -p tsconfig.es.json", - "build:types": "yarn g:tsc -p tsconfig.types.json", - "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", - "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz", - "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"", - "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"", - "extract:docs": "api-extractor run --local", - "test": "yarn g:jest" - }, - "author": { - "name": "AWS SDK for JavaScript Team", - "url": "https://aws.amazon.com/javascript/" - }, - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^2.6.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "typesVersions": { - "<4.0": { - "dist-types/*": [ - "dist-types/ts3.4/*" - ] - } - }, - "files": [ - "dist-*/**" - ], - "homepage": "https://github.com/awslabs/smithy-typescript/tree/main/packages/abort-controller", - "repository": { - "type": "git", - "url": "https://github.com/awslabs/smithy-typescript.git", - "directory": "packages/abort-controller" - }, - "devDependencies": { - "@tsconfig/recommended": "1.0.1", - "concurrently": "7.0.0", - "downlevel-dts": "0.10.1", - "rimraf": "3.0.2", - "typedoc": "0.23.23" - }, - "typedoc": { - "entryPoint": "src/index.ts" - }, - "publishConfig": { - "directory": ".release/package" - } -} \ No newline at end of file diff --git a/node_modules/@smithy/config-resolver/LICENSE b/node_modules/@smithy/config-resolver/LICENSE deleted file mode 100644 index 7b6491ba..00000000 --- a/node_modules/@smithy/config-resolver/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. \ No newline at end of file diff --git a/node_modules/@smithy/config-resolver/README.md b/node_modules/@smithy/config-resolver/README.md deleted file mode 100644 index 2a25da2f..00000000 --- a/node_modules/@smithy/config-resolver/README.md +++ /dev/null @@ -1,10 +0,0 @@ -# @smithy/config-resolver - -[![NPM version](https://img.shields.io/npm/v/@smithy/config-resolver/latest.svg)](https://www.npmjs.com/package/@smithy/config-resolver) -[![NPM downloads](https://img.shields.io/npm/dm/@smithy/config-resolver.svg)](https://www.npmjs.com/package/@smithy/config-resolver) - -> An internal package - -## Usage - -You probably shouldn't, at least directly. diff --git a/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js b/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js deleted file mode 100644 index e3b08fa7..00000000 --- a/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = exports.DEFAULT_USE_DUALSTACK_ENDPOINT = exports.CONFIG_USE_DUALSTACK_ENDPOINT = exports.ENV_USE_DUALSTACK_ENDPOINT = void 0; -const util_config_provider_1 = require("@smithy/util-config-provider"); -exports.ENV_USE_DUALSTACK_ENDPOINT = "AWS_USE_DUALSTACK_ENDPOINT"; -exports.CONFIG_USE_DUALSTACK_ENDPOINT = "use_dualstack_endpoint"; -exports.DEFAULT_USE_DUALSTACK_ENDPOINT = false; -exports.NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => (0, util_config_provider_1.booleanSelector)(env, exports.ENV_USE_DUALSTACK_ENDPOINT, util_config_provider_1.SelectorType.ENV), - configFileSelector: (profile) => (0, util_config_provider_1.booleanSelector)(profile, exports.CONFIG_USE_DUALSTACK_ENDPOINT, util_config_provider_1.SelectorType.CONFIG), - default: false, -}; diff --git a/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/NodeUseFipsEndpointConfigOptions.js b/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/NodeUseFipsEndpointConfigOptions.js deleted file mode 100644 index 311b9d77..00000000 --- a/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/NodeUseFipsEndpointConfigOptions.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = exports.DEFAULT_USE_FIPS_ENDPOINT = exports.CONFIG_USE_FIPS_ENDPOINT = exports.ENV_USE_FIPS_ENDPOINT = void 0; -const util_config_provider_1 = require("@smithy/util-config-provider"); -exports.ENV_USE_FIPS_ENDPOINT = "AWS_USE_FIPS_ENDPOINT"; -exports.CONFIG_USE_FIPS_ENDPOINT = "use_fips_endpoint"; -exports.DEFAULT_USE_FIPS_ENDPOINT = false; -exports.NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => (0, util_config_provider_1.booleanSelector)(env, exports.ENV_USE_FIPS_ENDPOINT, util_config_provider_1.SelectorType.ENV), - configFileSelector: (profile) => (0, util_config_provider_1.booleanSelector)(profile, exports.CONFIG_USE_FIPS_ENDPOINT, util_config_provider_1.SelectorType.CONFIG), - default: false, -}; diff --git a/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/index.js b/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/index.js deleted file mode 100644 index 027f270a..00000000 --- a/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/index.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./NodeUseDualstackEndpointConfigOptions"), exports); -tslib_1.__exportStar(require("./NodeUseFipsEndpointConfigOptions"), exports); -tslib_1.__exportStar(require("./resolveCustomEndpointsConfig"), exports); -tslib_1.__exportStar(require("./resolveEndpointsConfig"), exports); diff --git a/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/resolveCustomEndpointsConfig.js b/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/resolveCustomEndpointsConfig.js deleted file mode 100644 index 9b4b265e..00000000 --- a/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/resolveCustomEndpointsConfig.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.resolveCustomEndpointsConfig = void 0; -const util_middleware_1 = require("@smithy/util-middleware"); -const resolveCustomEndpointsConfig = (input) => { - var _a, _b; - const { endpoint, urlParser } = input; - return { - ...input, - tls: (_a = input.tls) !== null && _a !== void 0 ? _a : true, - endpoint: (0, util_middleware_1.normalizeProvider)(typeof endpoint === "string" ? urlParser(endpoint) : endpoint), - isCustomEndpoint: true, - useDualstackEndpoint: (0, util_middleware_1.normalizeProvider)((_b = input.useDualstackEndpoint) !== null && _b !== void 0 ? _b : false), - }; -}; -exports.resolveCustomEndpointsConfig = resolveCustomEndpointsConfig; diff --git a/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/resolveEndpointsConfig.js b/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/resolveEndpointsConfig.js deleted file mode 100644 index 407ccc37..00000000 --- a/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/resolveEndpointsConfig.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.resolveEndpointsConfig = void 0; -const util_middleware_1 = require("@smithy/util-middleware"); -const getEndpointFromRegion_1 = require("./utils/getEndpointFromRegion"); -const resolveEndpointsConfig = (input) => { - var _a, _b; - const useDualstackEndpoint = (0, util_middleware_1.normalizeProvider)((_a = input.useDualstackEndpoint) !== null && _a !== void 0 ? _a : false); - const { endpoint, useFipsEndpoint, urlParser } = input; - return { - ...input, - tls: (_b = input.tls) !== null && _b !== void 0 ? _b : true, - endpoint: endpoint - ? (0, util_middleware_1.normalizeProvider)(typeof endpoint === "string" ? urlParser(endpoint) : endpoint) - : () => (0, getEndpointFromRegion_1.getEndpointFromRegion)({ ...input, useDualstackEndpoint, useFipsEndpoint }), - isCustomEndpoint: !!endpoint, - useDualstackEndpoint, - }; -}; -exports.resolveEndpointsConfig = resolveEndpointsConfig; diff --git a/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/utils/getEndpointFromRegion.js b/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/utils/getEndpointFromRegion.js deleted file mode 100644 index f7a1df77..00000000 --- a/node_modules/@smithy/config-resolver/dist-cjs/endpointsConfig/utils/getEndpointFromRegion.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getEndpointFromRegion = void 0; -const getEndpointFromRegion = async (input) => { - var _a; - const { tls = true } = input; - const region = await input.region(); - const dnsHostRegex = new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/); - if (!dnsHostRegex.test(region)) { - throw new Error("Invalid region in client config"); - } - const useDualstackEndpoint = await input.useDualstackEndpoint(); - const useFipsEndpoint = await input.useFipsEndpoint(); - const { hostname } = (_a = (await input.regionInfoProvider(region, { useDualstackEndpoint, useFipsEndpoint }))) !== null && _a !== void 0 ? _a : {}; - if (!hostname) { - throw new Error("Cannot resolve hostname from client config"); - } - return input.urlParser(`${tls ? "https:" : "http:"}//${hostname}`); -}; -exports.getEndpointFromRegion = getEndpointFromRegion; diff --git a/node_modules/@smithy/config-resolver/dist-cjs/index.js b/node_modules/@smithy/config-resolver/dist-cjs/index.js deleted file mode 100644 index d91ea20b..00000000 --- a/node_modules/@smithy/config-resolver/dist-cjs/index.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./endpointsConfig"), exports); -tslib_1.__exportStar(require("./regionConfig"), exports); -tslib_1.__exportStar(require("./regionInfo"), exports); diff --git a/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/config.js b/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/config.js deleted file mode 100644 index 2ad79b6f..00000000 --- a/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/config.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.NODE_REGION_CONFIG_FILE_OPTIONS = exports.NODE_REGION_CONFIG_OPTIONS = exports.REGION_INI_NAME = exports.REGION_ENV_NAME = void 0; -exports.REGION_ENV_NAME = "AWS_REGION"; -exports.REGION_INI_NAME = "region"; -exports.NODE_REGION_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => env[exports.REGION_ENV_NAME], - configFileSelector: (profile) => profile[exports.REGION_INI_NAME], - default: () => { - throw new Error("Region is missing"); - }, -}; -exports.NODE_REGION_CONFIG_FILE_OPTIONS = { - preferredFile: "credentials", -}; diff --git a/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/getRealRegion.js b/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/getRealRegion.js deleted file mode 100644 index 49b5cbd4..00000000 --- a/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/getRealRegion.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getRealRegion = void 0; -const isFipsRegion_1 = require("./isFipsRegion"); -const getRealRegion = (region) => (0, isFipsRegion_1.isFipsRegion)(region) - ? ["fips-aws-global", "aws-fips"].includes(region) - ? "us-east-1" - : region.replace(/fips-(dkr-|prod-)?|-fips/, "") - : region; -exports.getRealRegion = getRealRegion; diff --git a/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/index.js b/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/index.js deleted file mode 100644 index 74a28f2b..00000000 --- a/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/index.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./config"), exports); -tslib_1.__exportStar(require("./resolveRegionConfig"), exports); diff --git a/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/isFipsRegion.js b/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/isFipsRegion.js deleted file mode 100644 index 011d0a2c..00000000 --- a/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/isFipsRegion.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isFipsRegion = void 0; -const isFipsRegion = (region) => typeof region === "string" && (region.startsWith("fips-") || region.endsWith("-fips")); -exports.isFipsRegion = isFipsRegion; diff --git a/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/resolveRegionConfig.js b/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/resolveRegionConfig.js deleted file mode 100644 index ff5eec87..00000000 --- a/node_modules/@smithy/config-resolver/dist-cjs/regionConfig/resolveRegionConfig.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.resolveRegionConfig = void 0; -const getRealRegion_1 = require("./getRealRegion"); -const isFipsRegion_1 = require("./isFipsRegion"); -const resolveRegionConfig = (input) => { - const { region, useFipsEndpoint } = input; - if (!region) { - throw new Error("Region is missing"); - } - return { - ...input, - region: async () => { - if (typeof region === "string") { - return (0, getRealRegion_1.getRealRegion)(region); - } - const providedRegion = await region(); - return (0, getRealRegion_1.getRealRegion)(providedRegion); - }, - useFipsEndpoint: async () => { - const providedRegion = typeof region === "string" ? region : await region(); - if ((0, isFipsRegion_1.isFipsRegion)(providedRegion)) { - return true; - } - return typeof useFipsEndpoint !== "function" ? Promise.resolve(!!useFipsEndpoint) : useFipsEndpoint(); - }, - }; -}; -exports.resolveRegionConfig = resolveRegionConfig; diff --git a/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/EndpointVariant.js b/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/EndpointVariant.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/EndpointVariant.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/EndpointVariantTag.js b/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/EndpointVariantTag.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/EndpointVariantTag.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/PartitionHash.js b/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/PartitionHash.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/PartitionHash.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/RegionHash.js b/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/RegionHash.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/RegionHash.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getHostnameFromVariants.js b/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getHostnameFromVariants.js deleted file mode 100644 index 578a4632..00000000 --- a/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getHostnameFromVariants.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getHostnameFromVariants = void 0; -const getHostnameFromVariants = (variants = [], { useFipsEndpoint, useDualstackEndpoint }) => { - var _a; - return (_a = variants.find(({ tags }) => useFipsEndpoint === tags.includes("fips") && useDualstackEndpoint === tags.includes("dualstack"))) === null || _a === void 0 ? void 0 : _a.hostname; -}; -exports.getHostnameFromVariants = getHostnameFromVariants; diff --git a/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getRegionInfo.js b/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getRegionInfo.js deleted file mode 100644 index 4c534c0b..00000000 --- a/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getRegionInfo.js +++ /dev/null @@ -1,34 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getRegionInfo = void 0; -const getHostnameFromVariants_1 = require("./getHostnameFromVariants"); -const getResolvedHostname_1 = require("./getResolvedHostname"); -const getResolvedPartition_1 = require("./getResolvedPartition"); -const getResolvedSigningRegion_1 = require("./getResolvedSigningRegion"); -const getRegionInfo = (region, { useFipsEndpoint = false, useDualstackEndpoint = false, signingService, regionHash, partitionHash, }) => { - var _a, _b, _c, _d, _e, _f; - const partition = (0, getResolvedPartition_1.getResolvedPartition)(region, { partitionHash }); - const resolvedRegion = region in regionHash ? region : (_b = (_a = partitionHash[partition]) === null || _a === void 0 ? void 0 : _a.endpoint) !== null && _b !== void 0 ? _b : region; - const hostnameOptions = { useFipsEndpoint, useDualstackEndpoint }; - const regionHostname = (0, getHostnameFromVariants_1.getHostnameFromVariants)((_c = regionHash[resolvedRegion]) === null || _c === void 0 ? void 0 : _c.variants, hostnameOptions); - const partitionHostname = (0, getHostnameFromVariants_1.getHostnameFromVariants)((_d = partitionHash[partition]) === null || _d === void 0 ? void 0 : _d.variants, hostnameOptions); - const hostname = (0, getResolvedHostname_1.getResolvedHostname)(resolvedRegion, { regionHostname, partitionHostname }); - if (hostname === undefined) { - throw new Error(`Endpoint resolution failed for: ${{ resolvedRegion, useFipsEndpoint, useDualstackEndpoint }}`); - } - const signingRegion = (0, getResolvedSigningRegion_1.getResolvedSigningRegion)(hostname, { - signingRegion: (_e = regionHash[resolvedRegion]) === null || _e === void 0 ? void 0 : _e.signingRegion, - regionRegex: partitionHash[partition].regionRegex, - useFipsEndpoint, - }); - return { - partition, - signingService, - hostname, - ...(signingRegion && { signingRegion }), - ...(((_f = regionHash[resolvedRegion]) === null || _f === void 0 ? void 0 : _f.signingService) && { - signingService: regionHash[resolvedRegion].signingService, - }), - }; -}; -exports.getRegionInfo = getRegionInfo; diff --git a/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getResolvedHostname.js b/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getResolvedHostname.js deleted file mode 100644 index 70c7c90e..00000000 --- a/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getResolvedHostname.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getResolvedHostname = void 0; -const getResolvedHostname = (resolvedRegion, { regionHostname, partitionHostname }) => regionHostname - ? regionHostname - : partitionHostname - ? partitionHostname.replace("{region}", resolvedRegion) - : undefined; -exports.getResolvedHostname = getResolvedHostname; diff --git a/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getResolvedPartition.js b/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getResolvedPartition.js deleted file mode 100644 index d5fa1b38..00000000 --- a/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getResolvedPartition.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getResolvedPartition = void 0; -const getResolvedPartition = (region, { partitionHash }) => { var _a; return (_a = Object.keys(partitionHash || {}).find((key) => partitionHash[key].regions.includes(region))) !== null && _a !== void 0 ? _a : "aws"; }; -exports.getResolvedPartition = getResolvedPartition; diff --git a/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getResolvedSigningRegion.js b/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getResolvedSigningRegion.js deleted file mode 100644 index 980ddfa9..00000000 --- a/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/getResolvedSigningRegion.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getResolvedSigningRegion = void 0; -const getResolvedSigningRegion = (hostname, { signingRegion, regionRegex, useFipsEndpoint }) => { - if (signingRegion) { - return signingRegion; - } - else if (useFipsEndpoint) { - const regionRegexJs = regionRegex.replace("\\\\", "\\").replace(/^\^/g, "\\.").replace(/\$$/g, "\\."); - const regionRegexmatchArray = hostname.match(regionRegexJs); - if (regionRegexmatchArray) { - return regionRegexmatchArray[0].slice(1, -1); - } - } -}; -exports.getResolvedSigningRegion = getResolvedSigningRegion; diff --git a/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/index.js b/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/index.js deleted file mode 100644 index 2737a5f2..00000000 --- a/node_modules/@smithy/config-resolver/dist-cjs/regionInfo/index.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./PartitionHash"), exports); -tslib_1.__exportStar(require("./RegionHash"), exports); -tslib_1.__exportStar(require("./getRegionInfo"), exports); diff --git a/node_modules/@smithy/config-resolver/dist-es/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js b/node_modules/@smithy/config-resolver/dist-es/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js deleted file mode 100644 index d0615678..00000000 --- a/node_modules/@smithy/config-resolver/dist-es/endpointsConfig/NodeUseDualstackEndpointConfigOptions.js +++ /dev/null @@ -1,9 +0,0 @@ -import { booleanSelector, SelectorType } from "@smithy/util-config-provider"; -export const ENV_USE_DUALSTACK_ENDPOINT = "AWS_USE_DUALSTACK_ENDPOINT"; -export const CONFIG_USE_DUALSTACK_ENDPOINT = "use_dualstack_endpoint"; -export const DEFAULT_USE_DUALSTACK_ENDPOINT = false; -export const NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => booleanSelector(env, ENV_USE_DUALSTACK_ENDPOINT, SelectorType.ENV), - configFileSelector: (profile) => booleanSelector(profile, CONFIG_USE_DUALSTACK_ENDPOINT, SelectorType.CONFIG), - default: false, -}; diff --git a/node_modules/@smithy/config-resolver/dist-es/endpointsConfig/NodeUseFipsEndpointConfigOptions.js b/node_modules/@smithy/config-resolver/dist-es/endpointsConfig/NodeUseFipsEndpointConfigOptions.js deleted file mode 100644 index 8cac1e99..00000000 --- a/node_modules/@smithy/config-resolver/dist-es/endpointsConfig/NodeUseFipsEndpointConfigOptions.js +++ /dev/null @@ -1,9 +0,0 @@ -import { booleanSelector, SelectorType } from "@smithy/util-config-provider"; -export const ENV_USE_FIPS_ENDPOINT = "AWS_USE_FIPS_ENDPOINT"; -export const CONFIG_USE_FIPS_ENDPOINT = "use_fips_endpoint"; -export const DEFAULT_USE_FIPS_ENDPOINT = false; -export const NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => booleanSelector(env, ENV_USE_FIPS_ENDPOINT, SelectorType.ENV), - configFileSelector: (profile) => booleanSelector(profile, CONFIG_USE_FIPS_ENDPOINT, SelectorType.CONFIG), - default: false, -}; diff --git a/node_modules/@smithy/config-resolver/dist-es/endpointsConfig/index.js b/node_modules/@smithy/config-resolver/dist-es/endpointsConfig/index.js deleted file mode 100644 index 1424c22f..00000000 --- a/node_modules/@smithy/config-resolver/dist-es/endpointsConfig/index.js +++ /dev/null @@ -1,4 +0,0 @@ -export * from "./NodeUseDualstackEndpointConfigOptions"; -export * from "./NodeUseFipsEndpointConfigOptions"; -export * from "./resolveCustomEndpointsConfig"; -export * from "./resolveEndpointsConfig"; diff --git a/node_modules/@smithy/config-resolver/dist-es/endpointsConfig/resolveCustomEndpointsConfig.js b/node_modules/@smithy/config-resolver/dist-es/endpointsConfig/resolveCustomEndpointsConfig.js deleted file mode 100644 index a8640548..00000000 --- a/node_modules/@smithy/config-resolver/dist-es/endpointsConfig/resolveCustomEndpointsConfig.js +++ /dev/null @@ -1,11 +0,0 @@ -import { normalizeProvider } from "@smithy/util-middleware"; -export const resolveCustomEndpointsConfig = (input) => { - const { endpoint, urlParser } = input; - return { - ...input, - tls: input.tls ?? true, - endpoint: normalizeProvider(typeof endpoint === "string" ? urlParser(endpoint) : endpoint), - isCustomEndpoint: true, - useDualstackEndpoint: normalizeProvider(input.useDualstackEndpoint ?? false), - }; -}; diff --git a/node_modules/@smithy/config-resolver/dist-es/endpointsConfig/resolveEndpointsConfig.js b/node_modules/@smithy/config-resolver/dist-es/endpointsConfig/resolveEndpointsConfig.js deleted file mode 100644 index cb15a064..00000000 --- a/node_modules/@smithy/config-resolver/dist-es/endpointsConfig/resolveEndpointsConfig.js +++ /dev/null @@ -1,15 +0,0 @@ -import { normalizeProvider } from "@smithy/util-middleware"; -import { getEndpointFromRegion } from "./utils/getEndpointFromRegion"; -export const resolveEndpointsConfig = (input) => { - const useDualstackEndpoint = normalizeProvider(input.useDualstackEndpoint ?? false); - const { endpoint, useFipsEndpoint, urlParser } = input; - return { - ...input, - tls: input.tls ?? true, - endpoint: endpoint - ? normalizeProvider(typeof endpoint === "string" ? urlParser(endpoint) : endpoint) - : () => getEndpointFromRegion({ ...input, useDualstackEndpoint, useFipsEndpoint }), - isCustomEndpoint: !!endpoint, - useDualstackEndpoint, - }; -}; diff --git a/node_modules/@smithy/config-resolver/dist-es/endpointsConfig/utils/getEndpointFromRegion.js b/node_modules/@smithy/config-resolver/dist-es/endpointsConfig/utils/getEndpointFromRegion.js deleted file mode 100644 index 5627c32e..00000000 --- a/node_modules/@smithy/config-resolver/dist-es/endpointsConfig/utils/getEndpointFromRegion.js +++ /dev/null @@ -1,15 +0,0 @@ -export const getEndpointFromRegion = async (input) => { - const { tls = true } = input; - const region = await input.region(); - const dnsHostRegex = new RegExp(/^([a-zA-Z0-9]|[a-zA-Z0-9][a-zA-Z0-9-]{0,61}[a-zA-Z0-9])$/); - if (!dnsHostRegex.test(region)) { - throw new Error("Invalid region in client config"); - } - const useDualstackEndpoint = await input.useDualstackEndpoint(); - const useFipsEndpoint = await input.useFipsEndpoint(); - const { hostname } = (await input.regionInfoProvider(region, { useDualstackEndpoint, useFipsEndpoint })) ?? {}; - if (!hostname) { - throw new Error("Cannot resolve hostname from client config"); - } - return input.urlParser(`${tls ? "https:" : "http:"}//${hostname}`); -}; diff --git a/node_modules/@smithy/config-resolver/dist-es/index.js b/node_modules/@smithy/config-resolver/dist-es/index.js deleted file mode 100644 index 61456a77..00000000 --- a/node_modules/@smithy/config-resolver/dist-es/index.js +++ /dev/null @@ -1,3 +0,0 @@ -export * from "./endpointsConfig"; -export * from "./regionConfig"; -export * from "./regionInfo"; diff --git a/node_modules/@smithy/config-resolver/dist-es/regionConfig/config.js b/node_modules/@smithy/config-resolver/dist-es/regionConfig/config.js deleted file mode 100644 index 7db98960..00000000 --- a/node_modules/@smithy/config-resolver/dist-es/regionConfig/config.js +++ /dev/null @@ -1,12 +0,0 @@ -export const REGION_ENV_NAME = "AWS_REGION"; -export const REGION_INI_NAME = "region"; -export const NODE_REGION_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => env[REGION_ENV_NAME], - configFileSelector: (profile) => profile[REGION_INI_NAME], - default: () => { - throw new Error("Region is missing"); - }, -}; -export const NODE_REGION_CONFIG_FILE_OPTIONS = { - preferredFile: "credentials", -}; diff --git a/node_modules/@smithy/config-resolver/dist-es/regionConfig/getRealRegion.js b/node_modules/@smithy/config-resolver/dist-es/regionConfig/getRealRegion.js deleted file mode 100644 index 8d1246bf..00000000 --- a/node_modules/@smithy/config-resolver/dist-es/regionConfig/getRealRegion.js +++ /dev/null @@ -1,6 +0,0 @@ -import { isFipsRegion } from "./isFipsRegion"; -export const getRealRegion = (region) => isFipsRegion(region) - ? ["fips-aws-global", "aws-fips"].includes(region) - ? "us-east-1" - : region.replace(/fips-(dkr-|prod-)?|-fips/, "") - : region; diff --git a/node_modules/@smithy/config-resolver/dist-es/regionConfig/index.js b/node_modules/@smithy/config-resolver/dist-es/regionConfig/index.js deleted file mode 100644 index 83675f77..00000000 --- a/node_modules/@smithy/config-resolver/dist-es/regionConfig/index.js +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./config"; -export * from "./resolveRegionConfig"; diff --git a/node_modules/@smithy/config-resolver/dist-es/regionConfig/isFipsRegion.js b/node_modules/@smithy/config-resolver/dist-es/regionConfig/isFipsRegion.js deleted file mode 100644 index d758967d..00000000 --- a/node_modules/@smithy/config-resolver/dist-es/regionConfig/isFipsRegion.js +++ /dev/null @@ -1 +0,0 @@ -export const isFipsRegion = (region) => typeof region === "string" && (region.startsWith("fips-") || region.endsWith("-fips")); diff --git a/node_modules/@smithy/config-resolver/dist-es/regionConfig/resolveRegionConfig.js b/node_modules/@smithy/config-resolver/dist-es/regionConfig/resolveRegionConfig.js deleted file mode 100644 index 0028a55d..00000000 --- a/node_modules/@smithy/config-resolver/dist-es/regionConfig/resolveRegionConfig.js +++ /dev/null @@ -1,25 +0,0 @@ -import { getRealRegion } from "./getRealRegion"; -import { isFipsRegion } from "./isFipsRegion"; -export const resolveRegionConfig = (input) => { - const { region, useFipsEndpoint } = input; - if (!region) { - throw new Error("Region is missing"); - } - return { - ...input, - region: async () => { - if (typeof region === "string") { - return getRealRegion(region); - } - const providedRegion = await region(); - return getRealRegion(providedRegion); - }, - useFipsEndpoint: async () => { - const providedRegion = typeof region === "string" ? region : await region(); - if (isFipsRegion(providedRegion)) { - return true; - } - return typeof useFipsEndpoint !== "function" ? Promise.resolve(!!useFipsEndpoint) : useFipsEndpoint(); - }, - }; -}; diff --git a/node_modules/@smithy/config-resolver/dist-es/regionInfo/EndpointVariant.js b/node_modules/@smithy/config-resolver/dist-es/regionInfo/EndpointVariant.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@smithy/config-resolver/dist-es/regionInfo/EndpointVariant.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@smithy/config-resolver/dist-es/regionInfo/EndpointVariantTag.js b/node_modules/@smithy/config-resolver/dist-es/regionInfo/EndpointVariantTag.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@smithy/config-resolver/dist-es/regionInfo/EndpointVariantTag.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@smithy/config-resolver/dist-es/regionInfo/PartitionHash.js b/node_modules/@smithy/config-resolver/dist-es/regionInfo/PartitionHash.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@smithy/config-resolver/dist-es/regionInfo/PartitionHash.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@smithy/config-resolver/dist-es/regionInfo/RegionHash.js b/node_modules/@smithy/config-resolver/dist-es/regionInfo/RegionHash.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@smithy/config-resolver/dist-es/regionInfo/RegionHash.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@smithy/config-resolver/dist-es/regionInfo/getHostnameFromVariants.js b/node_modules/@smithy/config-resolver/dist-es/regionInfo/getHostnameFromVariants.js deleted file mode 100644 index 84fc50e8..00000000 --- a/node_modules/@smithy/config-resolver/dist-es/regionInfo/getHostnameFromVariants.js +++ /dev/null @@ -1 +0,0 @@ -export const getHostnameFromVariants = (variants = [], { useFipsEndpoint, useDualstackEndpoint }) => variants.find(({ tags }) => useFipsEndpoint === tags.includes("fips") && useDualstackEndpoint === tags.includes("dualstack"))?.hostname; diff --git a/node_modules/@smithy/config-resolver/dist-es/regionInfo/getRegionInfo.js b/node_modules/@smithy/config-resolver/dist-es/regionInfo/getRegionInfo.js deleted file mode 100644 index c39e2f74..00000000 --- a/node_modules/@smithy/config-resolver/dist-es/regionInfo/getRegionInfo.js +++ /dev/null @@ -1,29 +0,0 @@ -import { getHostnameFromVariants } from "./getHostnameFromVariants"; -import { getResolvedHostname } from "./getResolvedHostname"; -import { getResolvedPartition } from "./getResolvedPartition"; -import { getResolvedSigningRegion } from "./getResolvedSigningRegion"; -export const getRegionInfo = (region, { useFipsEndpoint = false, useDualstackEndpoint = false, signingService, regionHash, partitionHash, }) => { - const partition = getResolvedPartition(region, { partitionHash }); - const resolvedRegion = region in regionHash ? region : partitionHash[partition]?.endpoint ?? region; - const hostnameOptions = { useFipsEndpoint, useDualstackEndpoint }; - const regionHostname = getHostnameFromVariants(regionHash[resolvedRegion]?.variants, hostnameOptions); - const partitionHostname = getHostnameFromVariants(partitionHash[partition]?.variants, hostnameOptions); - const hostname = getResolvedHostname(resolvedRegion, { regionHostname, partitionHostname }); - if (hostname === undefined) { - throw new Error(`Endpoint resolution failed for: ${{ resolvedRegion, useFipsEndpoint, useDualstackEndpoint }}`); - } - const signingRegion = getResolvedSigningRegion(hostname, { - signingRegion: regionHash[resolvedRegion]?.signingRegion, - regionRegex: partitionHash[partition].regionRegex, - useFipsEndpoint, - }); - return { - partition, - signingService, - hostname, - ...(signingRegion && { signingRegion }), - ...(regionHash[resolvedRegion]?.signingService && { - signingService: regionHash[resolvedRegion].signingService, - }), - }; -}; diff --git a/node_modules/@smithy/config-resolver/dist-es/regionInfo/getResolvedHostname.js b/node_modules/@smithy/config-resolver/dist-es/regionInfo/getResolvedHostname.js deleted file mode 100644 index 35fb9881..00000000 --- a/node_modules/@smithy/config-resolver/dist-es/regionInfo/getResolvedHostname.js +++ /dev/null @@ -1,5 +0,0 @@ -export const getResolvedHostname = (resolvedRegion, { regionHostname, partitionHostname }) => regionHostname - ? regionHostname - : partitionHostname - ? partitionHostname.replace("{region}", resolvedRegion) - : undefined; diff --git a/node_modules/@smithy/config-resolver/dist-es/regionInfo/getResolvedPartition.js b/node_modules/@smithy/config-resolver/dist-es/regionInfo/getResolvedPartition.js deleted file mode 100644 index 3d7bc557..00000000 --- a/node_modules/@smithy/config-resolver/dist-es/regionInfo/getResolvedPartition.js +++ /dev/null @@ -1 +0,0 @@ -export const getResolvedPartition = (region, { partitionHash }) => Object.keys(partitionHash || {}).find((key) => partitionHash[key].regions.includes(region)) ?? "aws"; diff --git a/node_modules/@smithy/config-resolver/dist-es/regionInfo/getResolvedSigningRegion.js b/node_modules/@smithy/config-resolver/dist-es/regionInfo/getResolvedSigningRegion.js deleted file mode 100644 index 7977e000..00000000 --- a/node_modules/@smithy/config-resolver/dist-es/regionInfo/getResolvedSigningRegion.js +++ /dev/null @@ -1,12 +0,0 @@ -export const getResolvedSigningRegion = (hostname, { signingRegion, regionRegex, useFipsEndpoint }) => { - if (signingRegion) { - return signingRegion; - } - else if (useFipsEndpoint) { - const regionRegexJs = regionRegex.replace("\\\\", "\\").replace(/^\^/g, "\\.").replace(/\$$/g, "\\."); - const regionRegexmatchArray = hostname.match(regionRegexJs); - if (regionRegexmatchArray) { - return regionRegexmatchArray[0].slice(1, -1); - } - } -}; diff --git a/node_modules/@smithy/config-resolver/dist-es/regionInfo/index.js b/node_modules/@smithy/config-resolver/dist-es/regionInfo/index.js deleted file mode 100644 index e29686a3..00000000 --- a/node_modules/@smithy/config-resolver/dist-es/regionInfo/index.js +++ /dev/null @@ -1,3 +0,0 @@ -export * from "./PartitionHash"; -export * from "./RegionHash"; -export * from "./getRegionInfo"; diff --git a/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/NodeUseDualstackEndpointConfigOptions.d.ts b/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/NodeUseDualstackEndpointConfigOptions.d.ts deleted file mode 100644 index 172d8c1d..00000000 --- a/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/NodeUseDualstackEndpointConfigOptions.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { LoadedConfigSelectors } from "@smithy/node-config-provider"; -/** - * @internal - */ -export declare const ENV_USE_DUALSTACK_ENDPOINT = "AWS_USE_DUALSTACK_ENDPOINT"; -/** - * @internal - */ -export declare const CONFIG_USE_DUALSTACK_ENDPOINT = "use_dualstack_endpoint"; -/** - * @internal - */ -export declare const DEFAULT_USE_DUALSTACK_ENDPOINT = false; -/** - * @internal - */ -export declare const NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS: LoadedConfigSelectors; diff --git a/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/NodeUseFipsEndpointConfigOptions.d.ts b/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/NodeUseFipsEndpointConfigOptions.d.ts deleted file mode 100644 index 106bbdbe..00000000 --- a/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/NodeUseFipsEndpointConfigOptions.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { LoadedConfigSelectors } from "@smithy/node-config-provider"; -/** - * @internal - */ -export declare const ENV_USE_FIPS_ENDPOINT = "AWS_USE_FIPS_ENDPOINT"; -/** - * @internal - */ -export declare const CONFIG_USE_FIPS_ENDPOINT = "use_fips_endpoint"; -/** - * @internal - */ -export declare const DEFAULT_USE_FIPS_ENDPOINT = false; -/** - * @internal - */ -export declare const NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS: LoadedConfigSelectors; diff --git a/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/index.d.ts b/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/index.d.ts deleted file mode 100644 index ea1cf59a..00000000 --- a/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/index.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * @internal - */ -export * from "./NodeUseDualstackEndpointConfigOptions"; -/** - * @internal - */ -export * from "./NodeUseFipsEndpointConfigOptions"; -/** - * @internal - */ -export * from "./resolveCustomEndpointsConfig"; -/** - * @internal - */ -export * from "./resolveEndpointsConfig"; diff --git a/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/resolveCustomEndpointsConfig.d.ts b/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/resolveCustomEndpointsConfig.d.ts deleted file mode 100644 index 6c8da97b..00000000 --- a/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/resolveCustomEndpointsConfig.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { Endpoint, Provider, UrlParser } from "@smithy/types"; -import { EndpointsInputConfig, EndpointsResolvedConfig } from "./resolveEndpointsConfig"; -/** - * @public - */ -export interface CustomEndpointsInputConfig extends EndpointsInputConfig { - /** - * The fully qualified endpoint of the webservice. - */ - endpoint: string | Endpoint | Provider; -} -interface PreviouslyResolved { - urlParser: UrlParser; -} -/** - * @internal - */ -export interface CustomEndpointsResolvedConfig extends EndpointsResolvedConfig { - /** - * Whether the endpoint is specified by caller. - * @internal - */ - isCustomEndpoint: true; -} -/** - * @internal - */ -export declare const resolveCustomEndpointsConfig: (input: T & CustomEndpointsInputConfig & PreviouslyResolved) => T & CustomEndpointsResolvedConfig; -export {}; diff --git a/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/resolveEndpointsConfig.d.ts b/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/resolveEndpointsConfig.d.ts deleted file mode 100644 index 376069e0..00000000 --- a/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/resolveEndpointsConfig.d.ts +++ /dev/null @@ -1,51 +0,0 @@ -import { Endpoint, Provider, RegionInfoProvider, UrlParser } from "@smithy/types"; -/** - * @public - */ -export interface EndpointsInputConfig { - /** - * The fully qualified endpoint of the webservice. This is only required when using - * a custom endpoint (for example, when using a local version of S3). - */ - endpoint?: string | Endpoint | Provider; - /** - * Whether TLS is enabled for requests. - */ - tls?: boolean; - /** - * Enables IPv6/IPv4 dualstack endpoint. - */ - useDualstackEndpoint?: boolean | Provider; -} -interface PreviouslyResolved { - regionInfoProvider: RegionInfoProvider; - urlParser: UrlParser; - region: Provider; - useFipsEndpoint: Provider; -} -/** - * @internal - */ -export interface EndpointsResolvedConfig extends Required { - /** - * Resolved value for input {@link EndpointsInputConfig.endpoint} - */ - endpoint: Provider; - /** - * Whether the endpoint is specified by caller. - * @internal - */ - isCustomEndpoint?: boolean; - /** - * Resolved value for input {@link EndpointsInputConfig.useDualstackEndpoint} - */ - useDualstackEndpoint: Provider; -} -/** - * @internal - * - * @deprecated endpoints rulesets use @smithy/middleware-endpoint resolveEndpointConfig. - * All generated clients should migrate to Endpoints 2.0 endpointRuleSet traits. - */ -export declare const resolveEndpointsConfig: (input: T & EndpointsInputConfig & PreviouslyResolved) => T & EndpointsResolvedConfig; -export {}; diff --git a/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/utils/getEndpointFromRegion.d.ts b/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/utils/getEndpointFromRegion.d.ts deleted file mode 100644 index 5ded732c..00000000 --- a/node_modules/@smithy/config-resolver/dist-types/endpointsConfig/utils/getEndpointFromRegion.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Provider, RegionInfoProvider, UrlParser } from "@smithy/types"; -interface GetEndpointFromRegionOptions { - region: Provider; - tls?: boolean; - regionInfoProvider: RegionInfoProvider; - urlParser: UrlParser; - useDualstackEndpoint: Provider; - useFipsEndpoint: Provider; -} -export declare const getEndpointFromRegion: (input: GetEndpointFromRegionOptions) => Promise; -export {}; diff --git a/node_modules/@smithy/config-resolver/dist-types/index.d.ts b/node_modules/@smithy/config-resolver/dist-types/index.d.ts deleted file mode 100644 index fde70860..00000000 --- a/node_modules/@smithy/config-resolver/dist-types/index.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -/** - * @internal - */ -export * from "./endpointsConfig"; -/** - * @internal - */ -export * from "./regionConfig"; -/** - * @internal - */ -export * from "./regionInfo"; diff --git a/node_modules/@smithy/config-resolver/dist-types/regionConfig/config.d.ts b/node_modules/@smithy/config-resolver/dist-types/regionConfig/config.d.ts deleted file mode 100644 index d203bb05..00000000 --- a/node_modules/@smithy/config-resolver/dist-types/regionConfig/config.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { LoadedConfigSelectors, LocalConfigOptions } from "@smithy/node-config-provider"; -/** - * @internal - */ -export declare const REGION_ENV_NAME = "AWS_REGION"; -/** - * @internal - */ -export declare const REGION_INI_NAME = "region"; -/** - * @internal - */ -export declare const NODE_REGION_CONFIG_OPTIONS: LoadedConfigSelectors; -/** - * @internal - */ -export declare const NODE_REGION_CONFIG_FILE_OPTIONS: LocalConfigOptions; diff --git a/node_modules/@smithy/config-resolver/dist-types/regionConfig/getRealRegion.d.ts b/node_modules/@smithy/config-resolver/dist-types/regionConfig/getRealRegion.d.ts deleted file mode 100644 index c70fb5b6..00000000 --- a/node_modules/@smithy/config-resolver/dist-types/regionConfig/getRealRegion.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/** - * @internal - */ -export declare const getRealRegion: (region: string) => string; diff --git a/node_modules/@smithy/config-resolver/dist-types/regionConfig/index.d.ts b/node_modules/@smithy/config-resolver/dist-types/regionConfig/index.d.ts deleted file mode 100644 index 6dcf5e55..00000000 --- a/node_modules/@smithy/config-resolver/dist-types/regionConfig/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @internal - */ -export * from "./config"; -/** - * @internal - */ -export * from "./resolveRegionConfig"; diff --git a/node_modules/@smithy/config-resolver/dist-types/regionConfig/isFipsRegion.d.ts b/node_modules/@smithy/config-resolver/dist-types/regionConfig/isFipsRegion.d.ts deleted file mode 100644 index b42cee72..00000000 --- a/node_modules/@smithy/config-resolver/dist-types/regionConfig/isFipsRegion.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/** - * @internal - */ -export declare const isFipsRegion: (region: string) => boolean; diff --git a/node_modules/@smithy/config-resolver/dist-types/regionConfig/resolveRegionConfig.d.ts b/node_modules/@smithy/config-resolver/dist-types/regionConfig/resolveRegionConfig.d.ts deleted file mode 100644 index c06c9d4e..00000000 --- a/node_modules/@smithy/config-resolver/dist-types/regionConfig/resolveRegionConfig.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { Provider } from "@smithy/types"; -/** - * @public - */ -export interface RegionInputConfig { - /** - * The AWS region to which this client will send requests - */ - region?: string | Provider; - /** - * Enables FIPS compatible endpoints. - */ - useFipsEndpoint?: boolean | Provider; -} -interface PreviouslyResolved { -} -/** - * @internal - */ -export interface RegionResolvedConfig { - /** - * Resolved value for input config {@link RegionInputConfig.region} - */ - region: Provider; - /** - * Resolved value for input {@link RegionInputConfig.useFipsEndpoint} - */ - useFipsEndpoint: Provider; -} -/** - * @internal - */ -export declare const resolveRegionConfig: (input: T & RegionInputConfig & PreviouslyResolved) => T & RegionResolvedConfig; -export {}; diff --git a/node_modules/@smithy/config-resolver/dist-types/regionInfo/EndpointVariant.d.ts b/node_modules/@smithy/config-resolver/dist-types/regionInfo/EndpointVariant.d.ts deleted file mode 100644 index 9b68e93c..00000000 --- a/node_modules/@smithy/config-resolver/dist-types/regionInfo/EndpointVariant.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { EndpointVariantTag } from "./EndpointVariantTag"; -/** - * @internal - * - * Provides hostname information for specific host label. - */ -export type EndpointVariant = { - hostname: string; - tags: EndpointVariantTag[]; -}; diff --git a/node_modules/@smithy/config-resolver/dist-types/regionInfo/EndpointVariantTag.d.ts b/node_modules/@smithy/config-resolver/dist-types/regionInfo/EndpointVariantTag.d.ts deleted file mode 100644 index ca50e1f8..00000000 --- a/node_modules/@smithy/config-resolver/dist-types/regionInfo/EndpointVariantTag.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * @internal - * - * The tag which mentions which area variant is providing information for. - * Can be either "fips" or "dualstack". - */ -export type EndpointVariantTag = "fips" | "dualstack"; diff --git a/node_modules/@smithy/config-resolver/dist-types/regionInfo/PartitionHash.d.ts b/node_modules/@smithy/config-resolver/dist-types/regionInfo/PartitionHash.d.ts deleted file mode 100644 index 0a5be173..00000000 --- a/node_modules/@smithy/config-resolver/dist-types/regionInfo/PartitionHash.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { EndpointVariant } from "./EndpointVariant"; -/** - * @internal - * - * The hash of partition with the information specific to that partition. - * The information includes the list of regions belonging to that partition, - * and the hostname to be used for the partition. - */ -export type PartitionHash = Record; diff --git a/node_modules/@smithy/config-resolver/dist-types/regionInfo/RegionHash.d.ts b/node_modules/@smithy/config-resolver/dist-types/regionInfo/RegionHash.d.ts deleted file mode 100644 index 01cd843f..00000000 --- a/node_modules/@smithy/config-resolver/dist-types/regionInfo/RegionHash.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { EndpointVariant } from "./EndpointVariant"; -/** - * @internal - * - * The hash of region with the information specific to that region. - * The information can include hostname, signingService and signingRegion. - */ -export type RegionHash = Record; diff --git a/node_modules/@smithy/config-resolver/dist-types/regionInfo/getHostnameFromVariants.d.ts b/node_modules/@smithy/config-resolver/dist-types/regionInfo/getHostnameFromVariants.d.ts deleted file mode 100644 index 47bcf700..00000000 --- a/node_modules/@smithy/config-resolver/dist-types/regionInfo/getHostnameFromVariants.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { EndpointVariant } from "./EndpointVariant"; -/** - * @internal - */ -export interface GetHostnameFromVariantsOptions { - useFipsEndpoint: boolean; - useDualstackEndpoint: boolean; -} -/** - * @internal - */ -export declare const getHostnameFromVariants: (variants: EndpointVariant[] | undefined, { useFipsEndpoint, useDualstackEndpoint }: GetHostnameFromVariantsOptions) => string | undefined; diff --git a/node_modules/@smithy/config-resolver/dist-types/regionInfo/getRegionInfo.d.ts b/node_modules/@smithy/config-resolver/dist-types/regionInfo/getRegionInfo.d.ts deleted file mode 100644 index 0aaae082..00000000 --- a/node_modules/@smithy/config-resolver/dist-types/regionInfo/getRegionInfo.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { RegionInfo } from "@smithy/types"; -import { PartitionHash } from "./PartitionHash"; -import { RegionHash } from "./RegionHash"; -/** - * @internal - */ -export interface GetRegionInfoOptions { - useFipsEndpoint?: boolean; - useDualstackEndpoint?: boolean; - signingService: string; - regionHash: RegionHash; - partitionHash: PartitionHash; -} -/** - * @internal - */ -export declare const getRegionInfo: (region: string, { useFipsEndpoint, useDualstackEndpoint, signingService, regionHash, partitionHash, }: GetRegionInfoOptions) => RegionInfo; diff --git a/node_modules/@smithy/config-resolver/dist-types/regionInfo/getResolvedHostname.d.ts b/node_modules/@smithy/config-resolver/dist-types/regionInfo/getResolvedHostname.d.ts deleted file mode 100644 index bf7a2b3c..00000000 --- a/node_modules/@smithy/config-resolver/dist-types/regionInfo/getResolvedHostname.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -/** - * @internal - */ -export interface GetResolvedHostnameOptions { - regionHostname?: string; - partitionHostname?: string; -} -/** - * @internal - */ -export declare const getResolvedHostname: (resolvedRegion: string, { regionHostname, partitionHostname }: GetResolvedHostnameOptions) => string | undefined; diff --git a/node_modules/@smithy/config-resolver/dist-types/regionInfo/getResolvedPartition.d.ts b/node_modules/@smithy/config-resolver/dist-types/regionInfo/getResolvedPartition.d.ts deleted file mode 100644 index 587b4fc7..00000000 --- a/node_modules/@smithy/config-resolver/dist-types/regionInfo/getResolvedPartition.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { PartitionHash } from "./PartitionHash"; -/** - * @internal - */ -export interface GetResolvedPartitionOptions { - partitionHash: PartitionHash; -} -/** - * @internal - */ -export declare const getResolvedPartition: (region: string, { partitionHash }: GetResolvedPartitionOptions) => string; diff --git a/node_modules/@smithy/config-resolver/dist-types/regionInfo/getResolvedSigningRegion.d.ts b/node_modules/@smithy/config-resolver/dist-types/regionInfo/getResolvedSigningRegion.d.ts deleted file mode 100644 index 3f5f7af0..00000000 --- a/node_modules/@smithy/config-resolver/dist-types/regionInfo/getResolvedSigningRegion.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -/** - * @internal - */ -export interface GetResolvedSigningRegionOptions { - regionRegex: string; - signingRegion?: string; - useFipsEndpoint: boolean; -} -/** - * @internal - */ -export declare const getResolvedSigningRegion: (hostname: string, { signingRegion, regionRegex, useFipsEndpoint }: GetResolvedSigningRegionOptions) => string | undefined; diff --git a/node_modules/@smithy/config-resolver/dist-types/regionInfo/index.d.ts b/node_modules/@smithy/config-resolver/dist-types/regionInfo/index.d.ts deleted file mode 100644 index 64ef0d51..00000000 --- a/node_modules/@smithy/config-resolver/dist-types/regionInfo/index.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -/** - * @internal - */ -export * from "./PartitionHash"; -/** - * @internal - */ -export * from "./RegionHash"; -/** - * @internal - */ -export * from "./getRegionInfo"; diff --git a/node_modules/@smithy/config-resolver/dist-types/ts3.4/endpointsConfig/NodeUseDualstackEndpointConfigOptions.d.ts b/node_modules/@smithy/config-resolver/dist-types/ts3.4/endpointsConfig/NodeUseDualstackEndpointConfigOptions.d.ts deleted file mode 100644 index 169720ab..00000000 --- a/node_modules/@smithy/config-resolver/dist-types/ts3.4/endpointsConfig/NodeUseDualstackEndpointConfigOptions.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { LoadedConfigSelectors } from "@smithy/node-config-provider"; -/** - * @internal - */ -export declare const ENV_USE_DUALSTACK_ENDPOINT = "AWS_USE_DUALSTACK_ENDPOINT"; -/** - * @internal - */ -export declare const CONFIG_USE_DUALSTACK_ENDPOINT = "use_dualstack_endpoint"; -/** - * @internal - */ -export declare const DEFAULT_USE_DUALSTACK_ENDPOINT = false; -/** - * @internal - */ -export declare const NODE_USE_DUALSTACK_ENDPOINT_CONFIG_OPTIONS: LoadedConfigSelectors; diff --git a/node_modules/@smithy/config-resolver/dist-types/ts3.4/endpointsConfig/NodeUseFipsEndpointConfigOptions.d.ts b/node_modules/@smithy/config-resolver/dist-types/ts3.4/endpointsConfig/NodeUseFipsEndpointConfigOptions.d.ts deleted file mode 100644 index b17417e7..00000000 --- a/node_modules/@smithy/config-resolver/dist-types/ts3.4/endpointsConfig/NodeUseFipsEndpointConfigOptions.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { LoadedConfigSelectors } from "@smithy/node-config-provider"; -/** - * @internal - */ -export declare const ENV_USE_FIPS_ENDPOINT = "AWS_USE_FIPS_ENDPOINT"; -/** - * @internal - */ -export declare const CONFIG_USE_FIPS_ENDPOINT = "use_fips_endpoint"; -/** - * @internal - */ -export declare const DEFAULT_USE_FIPS_ENDPOINT = false; -/** - * @internal - */ -export declare const NODE_USE_FIPS_ENDPOINT_CONFIG_OPTIONS: LoadedConfigSelectors; diff --git a/node_modules/@smithy/config-resolver/dist-types/ts3.4/endpointsConfig/index.d.ts b/node_modules/@smithy/config-resolver/dist-types/ts3.4/endpointsConfig/index.d.ts deleted file mode 100644 index cbabe5b8..00000000 --- a/node_modules/@smithy/config-resolver/dist-types/ts3.4/endpointsConfig/index.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -/** - * @internal - */ -export * from "./NodeUseDualstackEndpointConfigOptions"; -/** - * @internal - */ -export * from "./NodeUseFipsEndpointConfigOptions"; -/** - * @internal - */ -export * from "./resolveCustomEndpointsConfig"; -/** - * @internal - */ -export * from "./resolveEndpointsConfig"; diff --git a/node_modules/@smithy/config-resolver/dist-types/ts3.4/endpointsConfig/resolveCustomEndpointsConfig.d.ts b/node_modules/@smithy/config-resolver/dist-types/ts3.4/endpointsConfig/resolveCustomEndpointsConfig.d.ts deleted file mode 100644 index 18e9add8..00000000 --- a/node_modules/@smithy/config-resolver/dist-types/ts3.4/endpointsConfig/resolveCustomEndpointsConfig.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { Endpoint, Provider, UrlParser } from "@smithy/types"; -import { EndpointsInputConfig, EndpointsResolvedConfig } from "./resolveEndpointsConfig"; -/** - * @public - */ -export interface CustomEndpointsInputConfig extends EndpointsInputConfig { - /** - * The fully qualified endpoint of the webservice. - */ - endpoint: string | Endpoint | Provider; -} -interface PreviouslyResolved { - urlParser: UrlParser; -} -/** - * @internal - */ -export interface CustomEndpointsResolvedConfig extends EndpointsResolvedConfig { - /** - * Whether the endpoint is specified by caller. - * @internal - */ - isCustomEndpoint: true; -} -/** - * @internal - */ -export declare const resolveCustomEndpointsConfig: (input: T & CustomEndpointsInputConfig & PreviouslyResolved) => T & CustomEndpointsResolvedConfig; -export {}; diff --git a/node_modules/@smithy/config-resolver/dist-types/ts3.4/endpointsConfig/resolveEndpointsConfig.d.ts b/node_modules/@smithy/config-resolver/dist-types/ts3.4/endpointsConfig/resolveEndpointsConfig.d.ts deleted file mode 100644 index 72e29a0e..00000000 --- a/node_modules/@smithy/config-resolver/dist-types/ts3.4/endpointsConfig/resolveEndpointsConfig.d.ts +++ /dev/null @@ -1,51 +0,0 @@ -import { Endpoint, Provider, RegionInfoProvider, UrlParser } from "@smithy/types"; -/** - * @public - */ -export interface EndpointsInputConfig { - /** - * The fully qualified endpoint of the webservice. This is only required when using - * a custom endpoint (for example, when using a local version of S3). - */ - endpoint?: string | Endpoint | Provider; - /** - * Whether TLS is enabled for requests. - */ - tls?: boolean; - /** - * Enables IPv6/IPv4 dualstack endpoint. - */ - useDualstackEndpoint?: boolean | Provider; -} -interface PreviouslyResolved { - regionInfoProvider: RegionInfoProvider; - urlParser: UrlParser; - region: Provider; - useFipsEndpoint: Provider; -} -/** - * @internal - */ -export interface EndpointsResolvedConfig extends Required { - /** - * Resolved value for input {@link EndpointsInputConfig.endpoint} - */ - endpoint: Provider; - /** - * Whether the endpoint is specified by caller. - * @internal - */ - isCustomEndpoint?: boolean; - /** - * Resolved value for input {@link EndpointsInputConfig.useDualstackEndpoint} - */ - useDualstackEndpoint: Provider; -} -/** - * @internal - * - * @deprecated endpoints rulesets use @smithy/middleware-endpoint resolveEndpointConfig. - * All generated clients should migrate to Endpoints 2.0 endpointRuleSet traits. - */ -export declare const resolveEndpointsConfig: (input: T & EndpointsInputConfig & PreviouslyResolved) => T & EndpointsResolvedConfig; -export {}; diff --git a/node_modules/@smithy/config-resolver/dist-types/ts3.4/endpointsConfig/utils/getEndpointFromRegion.d.ts b/node_modules/@smithy/config-resolver/dist-types/ts3.4/endpointsConfig/utils/getEndpointFromRegion.d.ts deleted file mode 100644 index 83d4635e..00000000 --- a/node_modules/@smithy/config-resolver/dist-types/ts3.4/endpointsConfig/utils/getEndpointFromRegion.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Provider, RegionInfoProvider, UrlParser } from "@smithy/types"; -interface GetEndpointFromRegionOptions { - region: Provider; - tls?: boolean; - regionInfoProvider: RegionInfoProvider; - urlParser: UrlParser; - useDualstackEndpoint: Provider; - useFipsEndpoint: Provider; -} -export declare const getEndpointFromRegion: (input: GetEndpointFromRegionOptions) => Promise; -export {}; diff --git a/node_modules/@smithy/config-resolver/dist-types/ts3.4/index.d.ts b/node_modules/@smithy/config-resolver/dist-types/ts3.4/index.d.ts deleted file mode 100644 index e205411c..00000000 --- a/node_modules/@smithy/config-resolver/dist-types/ts3.4/index.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -/** - * @internal - */ -export * from "./endpointsConfig"; -/** - * @internal - */ -export * from "./regionConfig"; -/** - * @internal - */ -export * from "./regionInfo"; diff --git a/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionConfig/config.d.ts b/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionConfig/config.d.ts deleted file mode 100644 index 8f3a9b24..00000000 --- a/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionConfig/config.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { LoadedConfigSelectors, LocalConfigOptions } from "@smithy/node-config-provider"; -/** - * @internal - */ -export declare const REGION_ENV_NAME = "AWS_REGION"; -/** - * @internal - */ -export declare const REGION_INI_NAME = "region"; -/** - * @internal - */ -export declare const NODE_REGION_CONFIG_OPTIONS: LoadedConfigSelectors; -/** - * @internal - */ -export declare const NODE_REGION_CONFIG_FILE_OPTIONS: LocalConfigOptions; diff --git a/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionConfig/getRealRegion.d.ts b/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionConfig/getRealRegion.d.ts deleted file mode 100644 index 6c11d4d3..00000000 --- a/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionConfig/getRealRegion.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/** - * @internal - */ -export declare const getRealRegion: (region: string) => string; diff --git a/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionConfig/index.d.ts b/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionConfig/index.d.ts deleted file mode 100644 index 0e6f55d2..00000000 --- a/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionConfig/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @internal - */ -export * from "./config"; -/** - * @internal - */ -export * from "./resolveRegionConfig"; diff --git a/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionConfig/isFipsRegion.d.ts b/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionConfig/isFipsRegion.d.ts deleted file mode 100644 index 1ee8bd49..00000000 --- a/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionConfig/isFipsRegion.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/** - * @internal - */ -export declare const isFipsRegion: (region: string) => boolean; diff --git a/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionConfig/resolveRegionConfig.d.ts b/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionConfig/resolveRegionConfig.d.ts deleted file mode 100644 index 7aaf9e1f..00000000 --- a/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionConfig/resolveRegionConfig.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { Provider } from "@smithy/types"; -/** - * @public - */ -export interface RegionInputConfig { - /** - * The AWS region to which this client will send requests - */ - region?: string | Provider; - /** - * Enables FIPS compatible endpoints. - */ - useFipsEndpoint?: boolean | Provider; -} -interface PreviouslyResolved { -} -/** - * @internal - */ -export interface RegionResolvedConfig { - /** - * Resolved value for input config {@link RegionInputConfig.region} - */ - region: Provider; - /** - * Resolved value for input {@link RegionInputConfig.useFipsEndpoint} - */ - useFipsEndpoint: Provider; -} -/** - * @internal - */ -export declare const resolveRegionConfig: (input: T & RegionInputConfig & PreviouslyResolved) => T & RegionResolvedConfig; -export {}; diff --git a/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/EndpointVariant.d.ts b/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/EndpointVariant.d.ts deleted file mode 100644 index e533cc7a..00000000 --- a/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/EndpointVariant.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { EndpointVariantTag } from "./EndpointVariantTag"; -/** - * @internal - * - * Provides hostname information for specific host label. - */ -export type EndpointVariant = { - hostname: string; - tags: EndpointVariantTag[]; -}; diff --git a/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/EndpointVariantTag.d.ts b/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/EndpointVariantTag.d.ts deleted file mode 100644 index 755bbe52..00000000 --- a/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/EndpointVariantTag.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * @internal - * - * The tag which mentions which area variant is providing information for. - * Can be either "fips" or "dualstack". - */ -export type EndpointVariantTag = "fips" | "dualstack"; diff --git a/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/PartitionHash.d.ts b/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/PartitionHash.d.ts deleted file mode 100644 index 6fed65e0..00000000 --- a/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/PartitionHash.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { EndpointVariant } from "./EndpointVariant"; -/** - * @internal - * - * The hash of partition with the information specific to that partition. - * The information includes the list of regions belonging to that partition, - * and the hostname to be used for the partition. - */ -export type PartitionHash = Record; diff --git a/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/RegionHash.d.ts b/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/RegionHash.d.ts deleted file mode 100644 index cd90c70b..00000000 --- a/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/RegionHash.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { EndpointVariant } from "./EndpointVariant"; -/** - * @internal - * - * The hash of region with the information specific to that region. - * The information can include hostname, signingService and signingRegion. - */ -export type RegionHash = Record; diff --git a/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/getHostnameFromVariants.d.ts b/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/getHostnameFromVariants.d.ts deleted file mode 100644 index 3d61daaf..00000000 --- a/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/getHostnameFromVariants.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { EndpointVariant } from "./EndpointVariant"; -/** - * @internal - */ -export interface GetHostnameFromVariantsOptions { - useFipsEndpoint: boolean; - useDualstackEndpoint: boolean; -} -/** - * @internal - */ -export declare const getHostnameFromVariants: (variants: EndpointVariant[] | undefined, { useFipsEndpoint, useDualstackEndpoint }: GetHostnameFromVariantsOptions) => string | undefined; diff --git a/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/getRegionInfo.d.ts b/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/getRegionInfo.d.ts deleted file mode 100644 index 820a5488..00000000 --- a/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/getRegionInfo.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { RegionInfo } from "@smithy/types"; -import { PartitionHash } from "./PartitionHash"; -import { RegionHash } from "./RegionHash"; -/** - * @internal - */ -export interface GetRegionInfoOptions { - useFipsEndpoint?: boolean; - useDualstackEndpoint?: boolean; - signingService: string; - regionHash: RegionHash; - partitionHash: PartitionHash; -} -/** - * @internal - */ -export declare const getRegionInfo: (region: string, { useFipsEndpoint, useDualstackEndpoint, signingService, regionHash, partitionHash, }: GetRegionInfoOptions) => RegionInfo; diff --git a/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/getResolvedHostname.d.ts b/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/getResolvedHostname.d.ts deleted file mode 100644 index 6aae405c..00000000 --- a/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/getResolvedHostname.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -/** - * @internal - */ -export interface GetResolvedHostnameOptions { - regionHostname?: string; - partitionHostname?: string; -} -/** - * @internal - */ -export declare const getResolvedHostname: (resolvedRegion: string, { regionHostname, partitionHostname }: GetResolvedHostnameOptions) => string | undefined; diff --git a/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/getResolvedPartition.d.ts b/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/getResolvedPartition.d.ts deleted file mode 100644 index 355c318e..00000000 --- a/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/getResolvedPartition.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { PartitionHash } from "./PartitionHash"; -/** - * @internal - */ -export interface GetResolvedPartitionOptions { - partitionHash: PartitionHash; -} -/** - * @internal - */ -export declare const getResolvedPartition: (region: string, { partitionHash }: GetResolvedPartitionOptions) => string; diff --git a/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/getResolvedSigningRegion.d.ts b/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/getResolvedSigningRegion.d.ts deleted file mode 100644 index a7b1db65..00000000 --- a/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/getResolvedSigningRegion.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -/** - * @internal - */ -export interface GetResolvedSigningRegionOptions { - regionRegex: string; - signingRegion?: string; - useFipsEndpoint: boolean; -} -/** - * @internal - */ -export declare const getResolvedSigningRegion: (hostname: string, { signingRegion, regionRegex, useFipsEndpoint }: GetResolvedSigningRegionOptions) => string | undefined; diff --git a/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/index.d.ts b/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/index.d.ts deleted file mode 100644 index 58263082..00000000 --- a/node_modules/@smithy/config-resolver/dist-types/ts3.4/regionInfo/index.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -/** - * @internal - */ -export * from "./PartitionHash"; -/** - * @internal - */ -export * from "./RegionHash"; -/** - * @internal - */ -export * from "./getRegionInfo"; diff --git a/node_modules/@smithy/config-resolver/package.json b/node_modules/@smithy/config-resolver/package.json deleted file mode 100644 index 2aa91a0b..00000000 --- a/node_modules/@smithy/config-resolver/package.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "name": "@smithy/config-resolver", - "version": "2.0.19", - "scripts": { - "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", - "build:cjs": "yarn g:tsc -p tsconfig.cjs.json", - "build:es": "yarn g:tsc -p tsconfig.es.json", - "build:types": "yarn g:tsc -p tsconfig.types.json", - "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", - "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz", - "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"", - "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"", - "test": "yarn g:jest", - "extract:docs": "api-extractor run --local" - }, - "main": "./dist-cjs/index.js", - "module": "./dist-es/index.js", - "types": "./dist-types/index.d.ts", - "author": { - "name": "AWS SDK for JavaScript Team", - "url": "https://aws.amazon.com/javascript/" - }, - "license": "Apache-2.0", - "dependencies": { - "@smithy/node-config-provider": "^2.1.6", - "@smithy/types": "^2.6.0", - "@smithy/util-config-provider": "^2.0.0", - "@smithy/util-middleware": "^2.0.7", - "tslib": "^2.5.0" - }, - "devDependencies": { - "@tsconfig/recommended": "1.0.1", - "concurrently": "7.0.0", - "downlevel-dts": "0.10.1", - "rimraf": "3.0.2", - "typedoc": "0.23.23" - }, - "engines": { - "node": ">=14.0.0" - }, - "typesVersions": { - "<4.0": { - "dist-types/*": [ - "dist-types/ts3.4/*" - ] - } - }, - "files": [ - "dist-*/**" - ], - "homepage": "https://github.com/awslabs/smithy-typescript/tree/main/packages/config-resolver", - "repository": { - "type": "git", - "url": "https://github.com/awslabs/smithy-typescript.git", - "directory": "packages/config-resolver" - }, - "typedoc": { - "entryPoint": "src/index.ts" - }, - "publishConfig": { - "directory": ".release/package" - } -} \ No newline at end of file diff --git a/node_modules/@smithy/credential-provider-imds/LICENSE b/node_modules/@smithy/credential-provider-imds/LICENSE deleted file mode 100644 index 7b6491ba..00000000 --- a/node_modules/@smithy/credential-provider-imds/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. \ No newline at end of file diff --git a/node_modules/@smithy/credential-provider-imds/README.md b/node_modules/@smithy/credential-provider-imds/README.md deleted file mode 100644 index 9a8f8a53..00000000 --- a/node_modules/@smithy/credential-provider-imds/README.md +++ /dev/null @@ -1,11 +0,0 @@ -# @smithy/credential-provider-imds - -[![NPM version](https://img.shields.io/npm/v/@smithy/credential-provider-imds/latest.svg)](https://www.npmjs.com/package/@smithy/credential-provider-imds) -[![NPM downloads](https://img.shields.io/npm/dm/@smithy/credential-provider-imds.svg)](https://www.npmjs.com/package/@smithy/credential-provider-imds) - -> An internal package - -## Usage - -You probably shouldn't, at least directly. Please use [@smithy/credential-providers](https://www.npmjs.com/package/@smithy/credential-providers) -instead. diff --git a/node_modules/@smithy/credential-provider-imds/dist-cjs/config/Endpoint.js b/node_modules/@smithy/credential-provider-imds/dist-cjs/config/Endpoint.js deleted file mode 100644 index 65f71eba..00000000 --- a/node_modules/@smithy/credential-provider-imds/dist-cjs/config/Endpoint.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Endpoint = void 0; -var Endpoint; -(function (Endpoint) { - Endpoint["IPv4"] = "http://169.254.169.254"; - Endpoint["IPv6"] = "http://[fd00:ec2::254]"; -})(Endpoint = exports.Endpoint || (exports.Endpoint = {})); diff --git a/node_modules/@smithy/credential-provider-imds/dist-cjs/config/EndpointConfigOptions.js b/node_modules/@smithy/credential-provider-imds/dist-cjs/config/EndpointConfigOptions.js deleted file mode 100644 index 571092d6..00000000 --- a/node_modules/@smithy/credential-provider-imds/dist-cjs/config/EndpointConfigOptions.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ENDPOINT_CONFIG_OPTIONS = exports.CONFIG_ENDPOINT_NAME = exports.ENV_ENDPOINT_NAME = void 0; -exports.ENV_ENDPOINT_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT"; -exports.CONFIG_ENDPOINT_NAME = "ec2_metadata_service_endpoint"; -exports.ENDPOINT_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => env[exports.ENV_ENDPOINT_NAME], - configFileSelector: (profile) => profile[exports.CONFIG_ENDPOINT_NAME], - default: undefined, -}; diff --git a/node_modules/@smithy/credential-provider-imds/dist-cjs/config/EndpointMode.js b/node_modules/@smithy/credential-provider-imds/dist-cjs/config/EndpointMode.js deleted file mode 100644 index 933efd96..00000000 --- a/node_modules/@smithy/credential-provider-imds/dist-cjs/config/EndpointMode.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.EndpointMode = void 0; -var EndpointMode; -(function (EndpointMode) { - EndpointMode["IPv4"] = "IPv4"; - EndpointMode["IPv6"] = "IPv6"; -})(EndpointMode = exports.EndpointMode || (exports.EndpointMode = {})); diff --git a/node_modules/@smithy/credential-provider-imds/dist-cjs/config/EndpointModeConfigOptions.js b/node_modules/@smithy/credential-provider-imds/dist-cjs/config/EndpointModeConfigOptions.js deleted file mode 100644 index 8d73e985..00000000 --- a/node_modules/@smithy/credential-provider-imds/dist-cjs/config/EndpointModeConfigOptions.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ENDPOINT_MODE_CONFIG_OPTIONS = exports.CONFIG_ENDPOINT_MODE_NAME = exports.ENV_ENDPOINT_MODE_NAME = void 0; -const EndpointMode_1 = require("./EndpointMode"); -exports.ENV_ENDPOINT_MODE_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE"; -exports.CONFIG_ENDPOINT_MODE_NAME = "ec2_metadata_service_endpoint_mode"; -exports.ENDPOINT_MODE_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => env[exports.ENV_ENDPOINT_MODE_NAME], - configFileSelector: (profile) => profile[exports.CONFIG_ENDPOINT_MODE_NAME], - default: EndpointMode_1.EndpointMode.IPv4, -}; diff --git a/node_modules/@smithy/credential-provider-imds/dist-cjs/error/InstanceMetadataV1FallbackError.js b/node_modules/@smithy/credential-provider-imds/dist-cjs/error/InstanceMetadataV1FallbackError.js deleted file mode 100644 index 88eb3eec..00000000 --- a/node_modules/@smithy/credential-provider-imds/dist-cjs/error/InstanceMetadataV1FallbackError.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.InstanceMetadataV1FallbackError = void 0; -const property_provider_1 = require("@smithy/property-provider"); -class InstanceMetadataV1FallbackError extends property_provider_1.CredentialsProviderError { - constructor(message, tryNextLink = true) { - super(message, tryNextLink); - this.tryNextLink = tryNextLink; - this.name = "InstanceMetadataV1FallbackError"; - Object.setPrototypeOf(this, InstanceMetadataV1FallbackError.prototype); - } -} -exports.InstanceMetadataV1FallbackError = InstanceMetadataV1FallbackError; diff --git a/node_modules/@smithy/credential-provider-imds/dist-cjs/fromContainerMetadata.js b/node_modules/@smithy/credential-provider-imds/dist-cjs/fromContainerMetadata.js deleted file mode 100644 index 18f8fe56..00000000 --- a/node_modules/@smithy/credential-provider-imds/dist-cjs/fromContainerMetadata.js +++ /dev/null @@ -1,70 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.fromContainerMetadata = exports.ENV_CMDS_AUTH_TOKEN = exports.ENV_CMDS_RELATIVE_URI = exports.ENV_CMDS_FULL_URI = void 0; -const property_provider_1 = require("@smithy/property-provider"); -const url_1 = require("url"); -const httpRequest_1 = require("./remoteProvider/httpRequest"); -const ImdsCredentials_1 = require("./remoteProvider/ImdsCredentials"); -const RemoteProviderInit_1 = require("./remoteProvider/RemoteProviderInit"); -const retry_1 = require("./remoteProvider/retry"); -exports.ENV_CMDS_FULL_URI = "AWS_CONTAINER_CREDENTIALS_FULL_URI"; -exports.ENV_CMDS_RELATIVE_URI = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI"; -exports.ENV_CMDS_AUTH_TOKEN = "AWS_CONTAINER_AUTHORIZATION_TOKEN"; -const fromContainerMetadata = (init = {}) => { - const { timeout, maxRetries } = (0, RemoteProviderInit_1.providerConfigFromInit)(init); - return () => (0, retry_1.retry)(async () => { - const requestOptions = await getCmdsUri(); - const credsResponse = JSON.parse(await requestFromEcsImds(timeout, requestOptions)); - if (!(0, ImdsCredentials_1.isImdsCredentials)(credsResponse)) { - throw new property_provider_1.CredentialsProviderError("Invalid response received from instance metadata service."); - } - return (0, ImdsCredentials_1.fromImdsCredentials)(credsResponse); - }, maxRetries); -}; -exports.fromContainerMetadata = fromContainerMetadata; -const requestFromEcsImds = async (timeout, options) => { - if (process.env[exports.ENV_CMDS_AUTH_TOKEN]) { - options.headers = { - ...options.headers, - Authorization: process.env[exports.ENV_CMDS_AUTH_TOKEN], - }; - } - const buffer = await (0, httpRequest_1.httpRequest)({ - ...options, - timeout, - }); - return buffer.toString(); -}; -const CMDS_IP = "169.254.170.2"; -const GREENGRASS_HOSTS = { - localhost: true, - "127.0.0.1": true, -}; -const GREENGRASS_PROTOCOLS = { - "http:": true, - "https:": true, -}; -const getCmdsUri = async () => { - if (process.env[exports.ENV_CMDS_RELATIVE_URI]) { - return { - hostname: CMDS_IP, - path: process.env[exports.ENV_CMDS_RELATIVE_URI], - }; - } - if (process.env[exports.ENV_CMDS_FULL_URI]) { - const parsed = (0, url_1.parse)(process.env[exports.ENV_CMDS_FULL_URI]); - if (!parsed.hostname || !(parsed.hostname in GREENGRASS_HOSTS)) { - throw new property_provider_1.CredentialsProviderError(`${parsed.hostname} is not a valid container metadata service hostname`, false); - } - if (!parsed.protocol || !(parsed.protocol in GREENGRASS_PROTOCOLS)) { - throw new property_provider_1.CredentialsProviderError(`${parsed.protocol} is not a valid container metadata service protocol`, false); - } - return { - ...parsed, - port: parsed.port ? parseInt(parsed.port, 10) : undefined, - }; - } - throw new property_provider_1.CredentialsProviderError("The container metadata credential provider cannot be used unless" + - ` the ${exports.ENV_CMDS_RELATIVE_URI} or ${exports.ENV_CMDS_FULL_URI} environment` + - " variable is set", false); -}; diff --git a/node_modules/@smithy/credential-provider-imds/dist-cjs/fromInstanceMetadata.js b/node_modules/@smithy/credential-provider-imds/dist-cjs/fromInstanceMetadata.js deleted file mode 100644 index b8e0fa76..00000000 --- a/node_modules/@smithy/credential-provider-imds/dist-cjs/fromInstanceMetadata.js +++ /dev/null @@ -1,137 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.fromInstanceMetadata = void 0; -const node_config_provider_1 = require("@smithy/node-config-provider"); -const property_provider_1 = require("@smithy/property-provider"); -const InstanceMetadataV1FallbackError_1 = require("./error/InstanceMetadataV1FallbackError"); -const httpRequest_1 = require("./remoteProvider/httpRequest"); -const ImdsCredentials_1 = require("./remoteProvider/ImdsCredentials"); -const RemoteProviderInit_1 = require("./remoteProvider/RemoteProviderInit"); -const retry_1 = require("./remoteProvider/retry"); -const getInstanceMetadataEndpoint_1 = require("./utils/getInstanceMetadataEndpoint"); -const staticStabilityProvider_1 = require("./utils/staticStabilityProvider"); -const IMDS_PATH = "/latest/meta-data/iam/security-credentials/"; -const IMDS_TOKEN_PATH = "/latest/api/token"; -const AWS_EC2_METADATA_V1_DISABLED = "AWS_EC2_METADATA_V1_DISABLED"; -const PROFILE_AWS_EC2_METADATA_V1_DISABLED = "ec2_metadata_v1_disabled"; -const X_AWS_EC2_METADATA_TOKEN = "x-aws-ec2-metadata-token"; -const fromInstanceMetadata = (init = {}) => (0, staticStabilityProvider_1.staticStabilityProvider)(getInstanceImdsProvider(init), { logger: init.logger }); -exports.fromInstanceMetadata = fromInstanceMetadata; -const getInstanceImdsProvider = (init) => { - let disableFetchToken = false; - const { logger, profile } = init; - const { timeout, maxRetries } = (0, RemoteProviderInit_1.providerConfigFromInit)(init); - const getCredentials = async (maxRetries, options) => { - var _a; - const isImdsV1Fallback = disableFetchToken || ((_a = options.headers) === null || _a === void 0 ? void 0 : _a[X_AWS_EC2_METADATA_TOKEN]) == null; - if (isImdsV1Fallback) { - let fallbackBlockedFromProfile = false; - let fallbackBlockedFromProcessEnv = false; - const configValue = await (0, node_config_provider_1.loadConfig)({ - environmentVariableSelector: (env) => { - const envValue = env[AWS_EC2_METADATA_V1_DISABLED]; - fallbackBlockedFromProcessEnv = !!envValue && envValue !== "false"; - if (envValue === undefined) { - throw new property_provider_1.CredentialsProviderError(`${AWS_EC2_METADATA_V1_DISABLED} not set in env, checking config file next.`); - } - return fallbackBlockedFromProcessEnv; - }, - configFileSelector: (profile) => { - const profileValue = profile[PROFILE_AWS_EC2_METADATA_V1_DISABLED]; - fallbackBlockedFromProfile = !!profileValue && profileValue !== "false"; - return fallbackBlockedFromProfile; - }, - default: false, - }, { - profile, - })(); - if (init.ec2MetadataV1Disabled || configValue) { - const causes = []; - if (init.ec2MetadataV1Disabled) - causes.push("credential provider initialization (runtime option ec2MetadataV1Disabled)"); - if (fallbackBlockedFromProfile) - causes.push(`config file profile (${PROFILE_AWS_EC2_METADATA_V1_DISABLED})`); - if (fallbackBlockedFromProcessEnv) - causes.push(`process environment variable (${AWS_EC2_METADATA_V1_DISABLED})`); - throw new InstanceMetadataV1FallbackError_1.InstanceMetadataV1FallbackError(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${causes.join(", ")}].`); - } - } - const imdsProfile = (await (0, retry_1.retry)(async () => { - let profile; - try { - profile = await getProfile(options); - } - catch (err) { - if (err.statusCode === 401) { - disableFetchToken = false; - } - throw err; - } - return profile; - }, maxRetries)).trim(); - return (0, retry_1.retry)(async () => { - let creds; - try { - creds = await getCredentialsFromProfile(imdsProfile, options); - } - catch (err) { - if (err.statusCode === 401) { - disableFetchToken = false; - } - throw err; - } - return creds; - }, maxRetries); - }; - return async () => { - const endpoint = await (0, getInstanceMetadataEndpoint_1.getInstanceMetadataEndpoint)(); - if (disableFetchToken) { - logger === null || logger === void 0 ? void 0 : logger.debug("AWS SDK Instance Metadata", "using v1 fallback (no token fetch)"); - return getCredentials(maxRetries, { ...endpoint, timeout }); - } - else { - let token; - try { - token = (await getMetadataToken({ ...endpoint, timeout })).toString(); - } - catch (error) { - if ((error === null || error === void 0 ? void 0 : error.statusCode) === 400) { - throw Object.assign(error, { - message: "EC2 Metadata token request returned error", - }); - } - else if (error.message === "TimeoutError" || [403, 404, 405].includes(error.statusCode)) { - disableFetchToken = true; - } - logger === null || logger === void 0 ? void 0 : logger.debug("AWS SDK Instance Metadata", "using v1 fallback (initial)"); - return getCredentials(maxRetries, { ...endpoint, timeout }); - } - return getCredentials(maxRetries, { - ...endpoint, - headers: { - [X_AWS_EC2_METADATA_TOKEN]: token, - }, - timeout, - }); - } - }; -}; -const getMetadataToken = async (options) => (0, httpRequest_1.httpRequest)({ - ...options, - path: IMDS_TOKEN_PATH, - method: "PUT", - headers: { - "x-aws-ec2-metadata-token-ttl-seconds": "21600", - }, -}); -const getProfile = async (options) => (await (0, httpRequest_1.httpRequest)({ ...options, path: IMDS_PATH })).toString(); -const getCredentialsFromProfile = async (profile, options) => { - const credsResponse = JSON.parse((await (0, httpRequest_1.httpRequest)({ - ...options, - path: IMDS_PATH + profile, - })).toString()); - if (!(0, ImdsCredentials_1.isImdsCredentials)(credsResponse)) { - throw new property_provider_1.CredentialsProviderError("Invalid response received from instance metadata service."); - } - return (0, ImdsCredentials_1.fromImdsCredentials)(credsResponse); -}; diff --git a/node_modules/@smithy/credential-provider-imds/dist-cjs/index.js b/node_modules/@smithy/credential-provider-imds/dist-cjs/index.js deleted file mode 100644 index e9095c26..00000000 --- a/node_modules/@smithy/credential-provider-imds/dist-cjs/index.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getInstanceMetadataEndpoint = exports.httpRequest = void 0; -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./fromContainerMetadata"), exports); -tslib_1.__exportStar(require("./fromInstanceMetadata"), exports); -tslib_1.__exportStar(require("./remoteProvider/RemoteProviderInit"), exports); -tslib_1.__exportStar(require("./types"), exports); -var httpRequest_1 = require("./remoteProvider/httpRequest"); -Object.defineProperty(exports, "httpRequest", { enumerable: true, get: function () { return httpRequest_1.httpRequest; } }); -var getInstanceMetadataEndpoint_1 = require("./utils/getInstanceMetadataEndpoint"); -Object.defineProperty(exports, "getInstanceMetadataEndpoint", { enumerable: true, get: function () { return getInstanceMetadataEndpoint_1.getInstanceMetadataEndpoint; } }); diff --git a/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/ImdsCredentials.js b/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/ImdsCredentials.js deleted file mode 100644 index a81746b4..00000000 --- a/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/ImdsCredentials.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.fromImdsCredentials = exports.isImdsCredentials = void 0; -const isImdsCredentials = (arg) => Boolean(arg) && - typeof arg === "object" && - typeof arg.AccessKeyId === "string" && - typeof arg.SecretAccessKey === "string" && - typeof arg.Token === "string" && - typeof arg.Expiration === "string"; -exports.isImdsCredentials = isImdsCredentials; -const fromImdsCredentials = (creds) => ({ - accessKeyId: creds.AccessKeyId, - secretAccessKey: creds.SecretAccessKey, - sessionToken: creds.Token, - expiration: new Date(creds.Expiration), -}); -exports.fromImdsCredentials = fromImdsCredentials; diff --git a/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/RemoteProviderInit.js b/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/RemoteProviderInit.js deleted file mode 100644 index c92be1e5..00000000 --- a/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/RemoteProviderInit.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.providerConfigFromInit = exports.DEFAULT_MAX_RETRIES = exports.DEFAULT_TIMEOUT = void 0; -exports.DEFAULT_TIMEOUT = 1000; -exports.DEFAULT_MAX_RETRIES = 0; -const providerConfigFromInit = ({ maxRetries = exports.DEFAULT_MAX_RETRIES, timeout = exports.DEFAULT_TIMEOUT, }) => ({ maxRetries, timeout }); -exports.providerConfigFromInit = providerConfigFromInit; diff --git a/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/httpRequest.js b/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/httpRequest.js deleted file mode 100644 index e182ddd7..00000000 --- a/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/httpRequest.js +++ /dev/null @@ -1,41 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.httpRequest = void 0; -const property_provider_1 = require("@smithy/property-provider"); -const buffer_1 = require("buffer"); -const http_1 = require("http"); -function httpRequest(options) { - return new Promise((resolve, reject) => { - var _a; - const req = (0, http_1.request)({ - method: "GET", - ...options, - hostname: (_a = options.hostname) === null || _a === void 0 ? void 0 : _a.replace(/^\[(.+)\]$/, "$1"), - }); - req.on("error", (err) => { - reject(Object.assign(new property_provider_1.ProviderError("Unable to connect to instance metadata service"), err)); - req.destroy(); - }); - req.on("timeout", () => { - reject(new property_provider_1.ProviderError("TimeoutError from instance metadata service")); - req.destroy(); - }); - req.on("response", (res) => { - const { statusCode = 400 } = res; - if (statusCode < 200 || 300 <= statusCode) { - reject(Object.assign(new property_provider_1.ProviderError("Error response received from instance metadata service"), { statusCode })); - req.destroy(); - } - const chunks = []; - res.on("data", (chunk) => { - chunks.push(chunk); - }); - res.on("end", () => { - resolve(buffer_1.Buffer.concat(chunks)); - req.destroy(); - }); - }); - req.end(); - }); -} -exports.httpRequest = httpRequest; diff --git a/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/index.js b/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/index.js deleted file mode 100644 index 62f176e9..00000000 --- a/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/index.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./ImdsCredentials"), exports); -tslib_1.__exportStar(require("./RemoteProviderInit"), exports); diff --git a/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/retry.js b/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/retry.js deleted file mode 100644 index 18df8760..00000000 --- a/node_modules/@smithy/credential-provider-imds/dist-cjs/remoteProvider/retry.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.retry = void 0; -const retry = (toRetry, maxRetries) => { - let promise = toRetry(); - for (let i = 0; i < maxRetries; i++) { - promise = promise.catch(toRetry); - } - return promise; -}; -exports.retry = retry; diff --git a/node_modules/@smithy/credential-provider-imds/dist-cjs/types.js b/node_modules/@smithy/credential-provider-imds/dist-cjs/types.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@smithy/credential-provider-imds/dist-cjs/types.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@smithy/credential-provider-imds/dist-cjs/utils/getExtendedInstanceMetadataCredentials.js b/node_modules/@smithy/credential-provider-imds/dist-cjs/utils/getExtendedInstanceMetadataCredentials.js deleted file mode 100644 index d5de1112..00000000 --- a/node_modules/@smithy/credential-provider-imds/dist-cjs/utils/getExtendedInstanceMetadataCredentials.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getExtendedInstanceMetadataCredentials = void 0; -const STATIC_STABILITY_REFRESH_INTERVAL_SECONDS = 5 * 60; -const STATIC_STABILITY_REFRESH_INTERVAL_JITTER_WINDOW_SECONDS = 5 * 60; -const STATIC_STABILITY_DOC_URL = "https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html"; -const getExtendedInstanceMetadataCredentials = (credentials, logger) => { - var _a; - const refreshInterval = STATIC_STABILITY_REFRESH_INTERVAL_SECONDS + - Math.floor(Math.random() * STATIC_STABILITY_REFRESH_INTERVAL_JITTER_WINDOW_SECONDS); - const newExpiration = new Date(Date.now() + refreshInterval * 1000); - logger.warn("Attempting credential expiration extension due to a credential service availability issue. A refresh of these " + - "credentials will be attempted after ${new Date(newExpiration)}.\nFor more information, please visit: " + - STATIC_STABILITY_DOC_URL); - const originalExpiration = (_a = credentials.originalExpiration) !== null && _a !== void 0 ? _a : credentials.expiration; - return { - ...credentials, - ...(originalExpiration ? { originalExpiration } : {}), - expiration: newExpiration, - }; -}; -exports.getExtendedInstanceMetadataCredentials = getExtendedInstanceMetadataCredentials; diff --git a/node_modules/@smithy/credential-provider-imds/dist-cjs/utils/getInstanceMetadataEndpoint.js b/node_modules/@smithy/credential-provider-imds/dist-cjs/utils/getInstanceMetadataEndpoint.js deleted file mode 100644 index 19e78509..00000000 --- a/node_modules/@smithy/credential-provider-imds/dist-cjs/utils/getInstanceMetadataEndpoint.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getInstanceMetadataEndpoint = void 0; -const node_config_provider_1 = require("@smithy/node-config-provider"); -const url_parser_1 = require("@smithy/url-parser"); -const Endpoint_1 = require("../config/Endpoint"); -const EndpointConfigOptions_1 = require("../config/EndpointConfigOptions"); -const EndpointMode_1 = require("../config/EndpointMode"); -const EndpointModeConfigOptions_1 = require("../config/EndpointModeConfigOptions"); -const getInstanceMetadataEndpoint = async () => (0, url_parser_1.parseUrl)((await getFromEndpointConfig()) || (await getFromEndpointModeConfig())); -exports.getInstanceMetadataEndpoint = getInstanceMetadataEndpoint; -const getFromEndpointConfig = async () => (0, node_config_provider_1.loadConfig)(EndpointConfigOptions_1.ENDPOINT_CONFIG_OPTIONS)(); -const getFromEndpointModeConfig = async () => { - const endpointMode = await (0, node_config_provider_1.loadConfig)(EndpointModeConfigOptions_1.ENDPOINT_MODE_CONFIG_OPTIONS)(); - switch (endpointMode) { - case EndpointMode_1.EndpointMode.IPv4: - return Endpoint_1.Endpoint.IPv4; - case EndpointMode_1.EndpointMode.IPv6: - return Endpoint_1.Endpoint.IPv6; - default: - throw new Error(`Unsupported endpoint mode: ${endpointMode}.` + ` Select from ${Object.values(EndpointMode_1.EndpointMode)}`); - } -}; diff --git a/node_modules/@smithy/credential-provider-imds/dist-cjs/utils/staticStabilityProvider.js b/node_modules/@smithy/credential-provider-imds/dist-cjs/utils/staticStabilityProvider.js deleted file mode 100644 index 2d272b89..00000000 --- a/node_modules/@smithy/credential-provider-imds/dist-cjs/utils/staticStabilityProvider.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.staticStabilityProvider = void 0; -const getExtendedInstanceMetadataCredentials_1 = require("./getExtendedInstanceMetadataCredentials"); -const staticStabilityProvider = (provider, options = {}) => { - const logger = (options === null || options === void 0 ? void 0 : options.logger) || console; - let pastCredentials; - return async () => { - let credentials; - try { - credentials = await provider(); - if (credentials.expiration && credentials.expiration.getTime() < Date.now()) { - credentials = (0, getExtendedInstanceMetadataCredentials_1.getExtendedInstanceMetadataCredentials)(credentials, logger); - } - } - catch (e) { - if (pastCredentials) { - logger.warn("Credential renew failed: ", e); - credentials = (0, getExtendedInstanceMetadataCredentials_1.getExtendedInstanceMetadataCredentials)(pastCredentials, logger); - } - else { - throw e; - } - } - pastCredentials = credentials; - return credentials; - }; -}; -exports.staticStabilityProvider = staticStabilityProvider; diff --git a/node_modules/@smithy/credential-provider-imds/dist-es/config/Endpoint.js b/node_modules/@smithy/credential-provider-imds/dist-es/config/Endpoint.js deleted file mode 100644 index b088eb0d..00000000 --- a/node_modules/@smithy/credential-provider-imds/dist-es/config/Endpoint.js +++ /dev/null @@ -1,5 +0,0 @@ -export var Endpoint; -(function (Endpoint) { - Endpoint["IPv4"] = "http://169.254.169.254"; - Endpoint["IPv6"] = "http://[fd00:ec2::254]"; -})(Endpoint || (Endpoint = {})); diff --git a/node_modules/@smithy/credential-provider-imds/dist-es/config/EndpointConfigOptions.js b/node_modules/@smithy/credential-provider-imds/dist-es/config/EndpointConfigOptions.js deleted file mode 100644 index f043de93..00000000 --- a/node_modules/@smithy/credential-provider-imds/dist-es/config/EndpointConfigOptions.js +++ /dev/null @@ -1,7 +0,0 @@ -export const ENV_ENDPOINT_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT"; -export const CONFIG_ENDPOINT_NAME = "ec2_metadata_service_endpoint"; -export const ENDPOINT_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => env[ENV_ENDPOINT_NAME], - configFileSelector: (profile) => profile[CONFIG_ENDPOINT_NAME], - default: undefined, -}; diff --git a/node_modules/@smithy/credential-provider-imds/dist-es/config/EndpointMode.js b/node_modules/@smithy/credential-provider-imds/dist-es/config/EndpointMode.js deleted file mode 100644 index bace8198..00000000 --- a/node_modules/@smithy/credential-provider-imds/dist-es/config/EndpointMode.js +++ /dev/null @@ -1,5 +0,0 @@ -export var EndpointMode; -(function (EndpointMode) { - EndpointMode["IPv4"] = "IPv4"; - EndpointMode["IPv6"] = "IPv6"; -})(EndpointMode || (EndpointMode = {})); diff --git a/node_modules/@smithy/credential-provider-imds/dist-es/config/EndpointModeConfigOptions.js b/node_modules/@smithy/credential-provider-imds/dist-es/config/EndpointModeConfigOptions.js deleted file mode 100644 index 15b19d04..00000000 --- a/node_modules/@smithy/credential-provider-imds/dist-es/config/EndpointModeConfigOptions.js +++ /dev/null @@ -1,8 +0,0 @@ -import { EndpointMode } from "./EndpointMode"; -export const ENV_ENDPOINT_MODE_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE"; -export const CONFIG_ENDPOINT_MODE_NAME = "ec2_metadata_service_endpoint_mode"; -export const ENDPOINT_MODE_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => env[ENV_ENDPOINT_MODE_NAME], - configFileSelector: (profile) => profile[CONFIG_ENDPOINT_MODE_NAME], - default: EndpointMode.IPv4, -}; diff --git a/node_modules/@smithy/credential-provider-imds/dist-es/error/InstanceMetadataV1FallbackError.js b/node_modules/@smithy/credential-provider-imds/dist-es/error/InstanceMetadataV1FallbackError.js deleted file mode 100644 index 29aaf509..00000000 --- a/node_modules/@smithy/credential-provider-imds/dist-es/error/InstanceMetadataV1FallbackError.js +++ /dev/null @@ -1,9 +0,0 @@ -import { CredentialsProviderError } from "@smithy/property-provider"; -export class InstanceMetadataV1FallbackError extends CredentialsProviderError { - constructor(message, tryNextLink = true) { - super(message, tryNextLink); - this.tryNextLink = tryNextLink; - this.name = "InstanceMetadataV1FallbackError"; - Object.setPrototypeOf(this, InstanceMetadataV1FallbackError.prototype); - } -} diff --git a/node_modules/@smithy/credential-provider-imds/dist-es/fromContainerMetadata.js b/node_modules/@smithy/credential-provider-imds/dist-es/fromContainerMetadata.js deleted file mode 100644 index 25a53f44..00000000 --- a/node_modules/@smithy/credential-provider-imds/dist-es/fromContainerMetadata.js +++ /dev/null @@ -1,66 +0,0 @@ -import { CredentialsProviderError } from "@smithy/property-provider"; -import { parse } from "url"; -import { httpRequest } from "./remoteProvider/httpRequest"; -import { fromImdsCredentials, isImdsCredentials } from "./remoteProvider/ImdsCredentials"; -import { providerConfigFromInit } from "./remoteProvider/RemoteProviderInit"; -import { retry } from "./remoteProvider/retry"; -export const ENV_CMDS_FULL_URI = "AWS_CONTAINER_CREDENTIALS_FULL_URI"; -export const ENV_CMDS_RELATIVE_URI = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI"; -export const ENV_CMDS_AUTH_TOKEN = "AWS_CONTAINER_AUTHORIZATION_TOKEN"; -export const fromContainerMetadata = (init = {}) => { - const { timeout, maxRetries } = providerConfigFromInit(init); - return () => retry(async () => { - const requestOptions = await getCmdsUri(); - const credsResponse = JSON.parse(await requestFromEcsImds(timeout, requestOptions)); - if (!isImdsCredentials(credsResponse)) { - throw new CredentialsProviderError("Invalid response received from instance metadata service."); - } - return fromImdsCredentials(credsResponse); - }, maxRetries); -}; -const requestFromEcsImds = async (timeout, options) => { - if (process.env[ENV_CMDS_AUTH_TOKEN]) { - options.headers = { - ...options.headers, - Authorization: process.env[ENV_CMDS_AUTH_TOKEN], - }; - } - const buffer = await httpRequest({ - ...options, - timeout, - }); - return buffer.toString(); -}; -const CMDS_IP = "169.254.170.2"; -const GREENGRASS_HOSTS = { - localhost: true, - "127.0.0.1": true, -}; -const GREENGRASS_PROTOCOLS = { - "http:": true, - "https:": true, -}; -const getCmdsUri = async () => { - if (process.env[ENV_CMDS_RELATIVE_URI]) { - return { - hostname: CMDS_IP, - path: process.env[ENV_CMDS_RELATIVE_URI], - }; - } - if (process.env[ENV_CMDS_FULL_URI]) { - const parsed = parse(process.env[ENV_CMDS_FULL_URI]); - if (!parsed.hostname || !(parsed.hostname in GREENGRASS_HOSTS)) { - throw new CredentialsProviderError(`${parsed.hostname} is not a valid container metadata service hostname`, false); - } - if (!parsed.protocol || !(parsed.protocol in GREENGRASS_PROTOCOLS)) { - throw new CredentialsProviderError(`${parsed.protocol} is not a valid container metadata service protocol`, false); - } - return { - ...parsed, - port: parsed.port ? parseInt(parsed.port, 10) : undefined, - }; - } - throw new CredentialsProviderError("The container metadata credential provider cannot be used unless" + - ` the ${ENV_CMDS_RELATIVE_URI} or ${ENV_CMDS_FULL_URI} environment` + - " variable is set", false); -}; diff --git a/node_modules/@smithy/credential-provider-imds/dist-es/fromInstanceMetadata.js b/node_modules/@smithy/credential-provider-imds/dist-es/fromInstanceMetadata.js deleted file mode 100644 index bbdf5669..00000000 --- a/node_modules/@smithy/credential-provider-imds/dist-es/fromInstanceMetadata.js +++ /dev/null @@ -1,132 +0,0 @@ -import { loadConfig } from "@smithy/node-config-provider"; -import { CredentialsProviderError } from "@smithy/property-provider"; -import { InstanceMetadataV1FallbackError } from "./error/InstanceMetadataV1FallbackError"; -import { httpRequest } from "./remoteProvider/httpRequest"; -import { fromImdsCredentials, isImdsCredentials } from "./remoteProvider/ImdsCredentials"; -import { providerConfigFromInit } from "./remoteProvider/RemoteProviderInit"; -import { retry } from "./remoteProvider/retry"; -import { getInstanceMetadataEndpoint } from "./utils/getInstanceMetadataEndpoint"; -import { staticStabilityProvider } from "./utils/staticStabilityProvider"; -const IMDS_PATH = "/latest/meta-data/iam/security-credentials/"; -const IMDS_TOKEN_PATH = "/latest/api/token"; -const AWS_EC2_METADATA_V1_DISABLED = "AWS_EC2_METADATA_V1_DISABLED"; -const PROFILE_AWS_EC2_METADATA_V1_DISABLED = "ec2_metadata_v1_disabled"; -const X_AWS_EC2_METADATA_TOKEN = "x-aws-ec2-metadata-token"; -export const fromInstanceMetadata = (init = {}) => staticStabilityProvider(getInstanceImdsProvider(init), { logger: init.logger }); -const getInstanceImdsProvider = (init) => { - let disableFetchToken = false; - const { logger, profile } = init; - const { timeout, maxRetries } = providerConfigFromInit(init); - const getCredentials = async (maxRetries, options) => { - const isImdsV1Fallback = disableFetchToken || options.headers?.[X_AWS_EC2_METADATA_TOKEN] == null; - if (isImdsV1Fallback) { - let fallbackBlockedFromProfile = false; - let fallbackBlockedFromProcessEnv = false; - const configValue = await loadConfig({ - environmentVariableSelector: (env) => { - const envValue = env[AWS_EC2_METADATA_V1_DISABLED]; - fallbackBlockedFromProcessEnv = !!envValue && envValue !== "false"; - if (envValue === undefined) { - throw new CredentialsProviderError(`${AWS_EC2_METADATA_V1_DISABLED} not set in env, checking config file next.`); - } - return fallbackBlockedFromProcessEnv; - }, - configFileSelector: (profile) => { - const profileValue = profile[PROFILE_AWS_EC2_METADATA_V1_DISABLED]; - fallbackBlockedFromProfile = !!profileValue && profileValue !== "false"; - return fallbackBlockedFromProfile; - }, - default: false, - }, { - profile, - })(); - if (init.ec2MetadataV1Disabled || configValue) { - const causes = []; - if (init.ec2MetadataV1Disabled) - causes.push("credential provider initialization (runtime option ec2MetadataV1Disabled)"); - if (fallbackBlockedFromProfile) - causes.push(`config file profile (${PROFILE_AWS_EC2_METADATA_V1_DISABLED})`); - if (fallbackBlockedFromProcessEnv) - causes.push(`process environment variable (${AWS_EC2_METADATA_V1_DISABLED})`); - throw new InstanceMetadataV1FallbackError(`AWS EC2 Metadata v1 fallback has been blocked by AWS SDK configuration in the following: [${causes.join(", ")}].`); - } - } - const imdsProfile = (await retry(async () => { - let profile; - try { - profile = await getProfile(options); - } - catch (err) { - if (err.statusCode === 401) { - disableFetchToken = false; - } - throw err; - } - return profile; - }, maxRetries)).trim(); - return retry(async () => { - let creds; - try { - creds = await getCredentialsFromProfile(imdsProfile, options); - } - catch (err) { - if (err.statusCode === 401) { - disableFetchToken = false; - } - throw err; - } - return creds; - }, maxRetries); - }; - return async () => { - const endpoint = await getInstanceMetadataEndpoint(); - if (disableFetchToken) { - logger?.debug("AWS SDK Instance Metadata", "using v1 fallback (no token fetch)"); - return getCredentials(maxRetries, { ...endpoint, timeout }); - } - else { - let token; - try { - token = (await getMetadataToken({ ...endpoint, timeout })).toString(); - } - catch (error) { - if (error?.statusCode === 400) { - throw Object.assign(error, { - message: "EC2 Metadata token request returned error", - }); - } - else if (error.message === "TimeoutError" || [403, 404, 405].includes(error.statusCode)) { - disableFetchToken = true; - } - logger?.debug("AWS SDK Instance Metadata", "using v1 fallback (initial)"); - return getCredentials(maxRetries, { ...endpoint, timeout }); - } - return getCredentials(maxRetries, { - ...endpoint, - headers: { - [X_AWS_EC2_METADATA_TOKEN]: token, - }, - timeout, - }); - } - }; -}; -const getMetadataToken = async (options) => httpRequest({ - ...options, - path: IMDS_TOKEN_PATH, - method: "PUT", - headers: { - "x-aws-ec2-metadata-token-ttl-seconds": "21600", - }, -}); -const getProfile = async (options) => (await httpRequest({ ...options, path: IMDS_PATH })).toString(); -const getCredentialsFromProfile = async (profile, options) => { - const credsResponse = JSON.parse((await httpRequest({ - ...options, - path: IMDS_PATH + profile, - })).toString()); - if (!isImdsCredentials(credsResponse)) { - throw new CredentialsProviderError("Invalid response received from instance metadata service."); - } - return fromImdsCredentials(credsResponse); -}; diff --git a/node_modules/@smithy/credential-provider-imds/dist-es/index.js b/node_modules/@smithy/credential-provider-imds/dist-es/index.js deleted file mode 100644 index 59c8dedc..00000000 --- a/node_modules/@smithy/credential-provider-imds/dist-es/index.js +++ /dev/null @@ -1,6 +0,0 @@ -export * from "./fromContainerMetadata"; -export * from "./fromInstanceMetadata"; -export * from "./remoteProvider/RemoteProviderInit"; -export * from "./types"; -export { httpRequest } from "./remoteProvider/httpRequest"; -export { getInstanceMetadataEndpoint } from "./utils/getInstanceMetadataEndpoint"; diff --git a/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/ImdsCredentials.js b/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/ImdsCredentials.js deleted file mode 100644 index bcd65edd..00000000 --- a/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/ImdsCredentials.js +++ /dev/null @@ -1,12 +0,0 @@ -export const isImdsCredentials = (arg) => Boolean(arg) && - typeof arg === "object" && - typeof arg.AccessKeyId === "string" && - typeof arg.SecretAccessKey === "string" && - typeof arg.Token === "string" && - typeof arg.Expiration === "string"; -export const fromImdsCredentials = (creds) => ({ - accessKeyId: creds.AccessKeyId, - secretAccessKey: creds.SecretAccessKey, - sessionToken: creds.Token, - expiration: new Date(creds.Expiration), -}); diff --git a/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/RemoteProviderInit.js b/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/RemoteProviderInit.js deleted file mode 100644 index 39ace380..00000000 --- a/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/RemoteProviderInit.js +++ /dev/null @@ -1,3 +0,0 @@ -export const DEFAULT_TIMEOUT = 1000; -export const DEFAULT_MAX_RETRIES = 0; -export const providerConfigFromInit = ({ maxRetries = DEFAULT_MAX_RETRIES, timeout = DEFAULT_TIMEOUT, }) => ({ maxRetries, timeout }); diff --git a/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/httpRequest.js b/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/httpRequest.js deleted file mode 100644 index 91742d0d..00000000 --- a/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/httpRequest.js +++ /dev/null @@ -1,36 +0,0 @@ -import { ProviderError } from "@smithy/property-provider"; -import { Buffer } from "buffer"; -import { request } from "http"; -export function httpRequest(options) { - return new Promise((resolve, reject) => { - const req = request({ - method: "GET", - ...options, - hostname: options.hostname?.replace(/^\[(.+)\]$/, "$1"), - }); - req.on("error", (err) => { - reject(Object.assign(new ProviderError("Unable to connect to instance metadata service"), err)); - req.destroy(); - }); - req.on("timeout", () => { - reject(new ProviderError("TimeoutError from instance metadata service")); - req.destroy(); - }); - req.on("response", (res) => { - const { statusCode = 400 } = res; - if (statusCode < 200 || 300 <= statusCode) { - reject(Object.assign(new ProviderError("Error response received from instance metadata service"), { statusCode })); - req.destroy(); - } - const chunks = []; - res.on("data", (chunk) => { - chunks.push(chunk); - }); - res.on("end", () => { - resolve(Buffer.concat(chunks)); - req.destroy(); - }); - }); - req.end(); - }); -} diff --git a/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/index.js b/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/index.js deleted file mode 100644 index d4ad6010..00000000 --- a/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/index.js +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./ImdsCredentials"; -export * from "./RemoteProviderInit"; diff --git a/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/retry.js b/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/retry.js deleted file mode 100644 index 22b79bb2..00000000 --- a/node_modules/@smithy/credential-provider-imds/dist-es/remoteProvider/retry.js +++ /dev/null @@ -1,7 +0,0 @@ -export const retry = (toRetry, maxRetries) => { - let promise = toRetry(); - for (let i = 0; i < maxRetries; i++) { - promise = promise.catch(toRetry); - } - return promise; -}; diff --git a/node_modules/@smithy/credential-provider-imds/dist-es/types.js b/node_modules/@smithy/credential-provider-imds/dist-es/types.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@smithy/credential-provider-imds/dist-es/types.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@smithy/credential-provider-imds/dist-es/utils/getExtendedInstanceMetadataCredentials.js b/node_modules/@smithy/credential-provider-imds/dist-es/utils/getExtendedInstanceMetadataCredentials.js deleted file mode 100644 index 40df84b6..00000000 --- a/node_modules/@smithy/credential-provider-imds/dist-es/utils/getExtendedInstanceMetadataCredentials.js +++ /dev/null @@ -1,17 +0,0 @@ -const STATIC_STABILITY_REFRESH_INTERVAL_SECONDS = 5 * 60; -const STATIC_STABILITY_REFRESH_INTERVAL_JITTER_WINDOW_SECONDS = 5 * 60; -const STATIC_STABILITY_DOC_URL = "https://docs.aws.amazon.com/sdkref/latest/guide/feature-static-credentials.html"; -export const getExtendedInstanceMetadataCredentials = (credentials, logger) => { - const refreshInterval = STATIC_STABILITY_REFRESH_INTERVAL_SECONDS + - Math.floor(Math.random() * STATIC_STABILITY_REFRESH_INTERVAL_JITTER_WINDOW_SECONDS); - const newExpiration = new Date(Date.now() + refreshInterval * 1000); - logger.warn("Attempting credential expiration extension due to a credential service availability issue. A refresh of these " + - "credentials will be attempted after ${new Date(newExpiration)}.\nFor more information, please visit: " + - STATIC_STABILITY_DOC_URL); - const originalExpiration = credentials.originalExpiration ?? credentials.expiration; - return { - ...credentials, - ...(originalExpiration ? { originalExpiration } : {}), - expiration: newExpiration, - }; -}; diff --git a/node_modules/@smithy/credential-provider-imds/dist-es/utils/getInstanceMetadataEndpoint.js b/node_modules/@smithy/credential-provider-imds/dist-es/utils/getInstanceMetadataEndpoint.js deleted file mode 100644 index 4c611ad2..00000000 --- a/node_modules/@smithy/credential-provider-imds/dist-es/utils/getInstanceMetadataEndpoint.js +++ /dev/null @@ -1,19 +0,0 @@ -import { loadConfig } from "@smithy/node-config-provider"; -import { parseUrl } from "@smithy/url-parser"; -import { Endpoint as InstanceMetadataEndpoint } from "../config/Endpoint"; -import { ENDPOINT_CONFIG_OPTIONS } from "../config/EndpointConfigOptions"; -import { EndpointMode } from "../config/EndpointMode"; -import { ENDPOINT_MODE_CONFIG_OPTIONS, } from "../config/EndpointModeConfigOptions"; -export const getInstanceMetadataEndpoint = async () => parseUrl((await getFromEndpointConfig()) || (await getFromEndpointModeConfig())); -const getFromEndpointConfig = async () => loadConfig(ENDPOINT_CONFIG_OPTIONS)(); -const getFromEndpointModeConfig = async () => { - const endpointMode = await loadConfig(ENDPOINT_MODE_CONFIG_OPTIONS)(); - switch (endpointMode) { - case EndpointMode.IPv4: - return InstanceMetadataEndpoint.IPv4; - case EndpointMode.IPv6: - return InstanceMetadataEndpoint.IPv6; - default: - throw new Error(`Unsupported endpoint mode: ${endpointMode}.` + ` Select from ${Object.values(EndpointMode)}`); - } -}; diff --git a/node_modules/@smithy/credential-provider-imds/dist-es/utils/staticStabilityProvider.js b/node_modules/@smithy/credential-provider-imds/dist-es/utils/staticStabilityProvider.js deleted file mode 100644 index 9a1e7421..00000000 --- a/node_modules/@smithy/credential-provider-imds/dist-es/utils/staticStabilityProvider.js +++ /dev/null @@ -1,25 +0,0 @@ -import { getExtendedInstanceMetadataCredentials } from "./getExtendedInstanceMetadataCredentials"; -export const staticStabilityProvider = (provider, options = {}) => { - const logger = options?.logger || console; - let pastCredentials; - return async () => { - let credentials; - try { - credentials = await provider(); - if (credentials.expiration && credentials.expiration.getTime() < Date.now()) { - credentials = getExtendedInstanceMetadataCredentials(credentials, logger); - } - } - catch (e) { - if (pastCredentials) { - logger.warn("Credential renew failed: ", e); - credentials = getExtendedInstanceMetadataCredentials(pastCredentials, logger); - } - else { - throw e; - } - } - pastCredentials = credentials; - return credentials; - }; -}; diff --git a/node_modules/@smithy/credential-provider-imds/dist-types/config/Endpoint.d.ts b/node_modules/@smithy/credential-provider-imds/dist-types/config/Endpoint.d.ts deleted file mode 100644 index 000e3136..00000000 --- a/node_modules/@smithy/credential-provider-imds/dist-types/config/Endpoint.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * @internal - */ -export declare enum Endpoint { - IPv4 = "http://169.254.169.254", - IPv6 = "http://[fd00:ec2::254]" -} diff --git a/node_modules/@smithy/credential-provider-imds/dist-types/config/EndpointConfigOptions.d.ts b/node_modules/@smithy/credential-provider-imds/dist-types/config/EndpointConfigOptions.d.ts deleted file mode 100644 index c03e22cb..00000000 --- a/node_modules/@smithy/credential-provider-imds/dist-types/config/EndpointConfigOptions.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { LoadedConfigSelectors } from "@smithy/node-config-provider"; -/** - * @internal - */ -export declare const ENV_ENDPOINT_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT"; -/** - * @internal - */ -export declare const CONFIG_ENDPOINT_NAME = "ec2_metadata_service_endpoint"; -/** - * @internal - */ -export declare const ENDPOINT_CONFIG_OPTIONS: LoadedConfigSelectors; diff --git a/node_modules/@smithy/credential-provider-imds/dist-types/config/EndpointMode.d.ts b/node_modules/@smithy/credential-provider-imds/dist-types/config/EndpointMode.d.ts deleted file mode 100644 index db706191..00000000 --- a/node_modules/@smithy/credential-provider-imds/dist-types/config/EndpointMode.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * @internal - */ -export declare enum EndpointMode { - IPv4 = "IPv4", - IPv6 = "IPv6" -} diff --git a/node_modules/@smithy/credential-provider-imds/dist-types/config/EndpointModeConfigOptions.d.ts b/node_modules/@smithy/credential-provider-imds/dist-types/config/EndpointModeConfigOptions.d.ts deleted file mode 100644 index c7431999..00000000 --- a/node_modules/@smithy/credential-provider-imds/dist-types/config/EndpointModeConfigOptions.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { LoadedConfigSelectors } from "@smithy/node-config-provider"; -/** - * @internal - */ -export declare const ENV_ENDPOINT_MODE_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE"; -/** - * @internal - */ -export declare const CONFIG_ENDPOINT_MODE_NAME = "ec2_metadata_service_endpoint_mode"; -/** - * @internal - */ -export declare const ENDPOINT_MODE_CONFIG_OPTIONS: LoadedConfigSelectors; diff --git a/node_modules/@smithy/credential-provider-imds/dist-types/error/InstanceMetadataV1FallbackError.d.ts b/node_modules/@smithy/credential-provider-imds/dist-types/error/InstanceMetadataV1FallbackError.d.ts deleted file mode 100644 index 8338ccb7..00000000 --- a/node_modules/@smithy/credential-provider-imds/dist-types/error/InstanceMetadataV1FallbackError.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { CredentialsProviderError } from "@smithy/property-provider"; -/** - * @public - * - * A specific sub-case of CredentialsProviderError, when the IMDSv1 fallback - * has been attempted but shut off by SDK configuration. - */ -export declare class InstanceMetadataV1FallbackError extends CredentialsProviderError { - readonly tryNextLink: boolean; - name: string; - constructor(message: string, tryNextLink?: boolean); -} diff --git a/node_modules/@smithy/credential-provider-imds/dist-types/fromContainerMetadata.d.ts b/node_modules/@smithy/credential-provider-imds/dist-types/fromContainerMetadata.d.ts deleted file mode 100644 index f6f28f07..00000000 --- a/node_modules/@smithy/credential-provider-imds/dist-types/fromContainerMetadata.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { AwsCredentialIdentityProvider } from "@smithy/types"; -import { RemoteProviderInit } from "./remoteProvider/RemoteProviderInit"; -/** - * @internal - */ -export declare const ENV_CMDS_FULL_URI = "AWS_CONTAINER_CREDENTIALS_FULL_URI"; -/** - * @internal - */ -export declare const ENV_CMDS_RELATIVE_URI = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI"; -/** - * @internal - */ -export declare const ENV_CMDS_AUTH_TOKEN = "AWS_CONTAINER_AUTHORIZATION_TOKEN"; -/** - * @internal - * - * Creates a credential provider that will source credentials from the ECS - * Container Metadata Service - */ -export declare const fromContainerMetadata: (init?: RemoteProviderInit) => AwsCredentialIdentityProvider; diff --git a/node_modules/@smithy/credential-provider-imds/dist-types/fromInstanceMetadata.d.ts b/node_modules/@smithy/credential-provider-imds/dist-types/fromInstanceMetadata.d.ts deleted file mode 100644 index 24db95ae..00000000 --- a/node_modules/@smithy/credential-provider-imds/dist-types/fromInstanceMetadata.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { Provider } from "@smithy/types"; -import { RemoteProviderInit } from "./remoteProvider/RemoteProviderInit"; -import { InstanceMetadataCredentials } from "./types"; -/** - * @internal - * - * Creates a credential provider that will source credentials from the EC2 - * Instance Metadata Service - */ -export declare const fromInstanceMetadata: (init?: RemoteProviderInit) => Provider; diff --git a/node_modules/@smithy/credential-provider-imds/dist-types/index.d.ts b/node_modules/@smithy/credential-provider-imds/dist-types/index.d.ts deleted file mode 100644 index 93ee04a2..00000000 --- a/node_modules/@smithy/credential-provider-imds/dist-types/index.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * @internal - */ -export * from "./fromContainerMetadata"; -/** - * @internal - */ -export * from "./fromInstanceMetadata"; -/** - * @internal - */ -export * from "./remoteProvider/RemoteProviderInit"; -/** - * @internal - */ -export * from "./types"; -/** - * @internal - */ -export { httpRequest } from "./remoteProvider/httpRequest"; -/** - * @internal - */ -export { getInstanceMetadataEndpoint } from "./utils/getInstanceMetadataEndpoint"; diff --git a/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/ImdsCredentials.d.ts b/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/ImdsCredentials.d.ts deleted file mode 100644 index 78dd7e9a..00000000 --- a/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/ImdsCredentials.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { AwsCredentialIdentity } from "@smithy/types"; -/** - * @internal - */ -export interface ImdsCredentials { - AccessKeyId: string; - SecretAccessKey: string; - Token: string; - Expiration: string; -} -/** - * @internal - */ -export declare const isImdsCredentials: (arg: any) => arg is ImdsCredentials; -/** - * @internal - */ -export declare const fromImdsCredentials: (creds: ImdsCredentials) => AwsCredentialIdentity; diff --git a/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/RemoteProviderInit.d.ts b/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/RemoteProviderInit.d.ts deleted file mode 100644 index df9eff70..00000000 --- a/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/RemoteProviderInit.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -import { Logger } from "@smithy/types"; -/** - * @internal - */ -export declare const DEFAULT_TIMEOUT = 1000; -/** - * @internal - */ -export declare const DEFAULT_MAX_RETRIES = 0; -/** - * @public - */ -export interface RemoteProviderConfig { - /** - * The connection timeout (in milliseconds) - */ - timeout: number; - /** - * The maximum number of times the HTTP connection should be retried - */ - maxRetries: number; -} -/** - * @public - */ -export interface RemoteProviderInit extends Partial { - logger?: Logger; - /** - * Only used in the IMDS credential provider. - */ - ec2MetadataV1Disabled?: boolean; - /** - * AWS_PROFILE. - */ - profile?: string; -} -/** - * @internal - */ -export declare const providerConfigFromInit: ({ maxRetries, timeout, }: RemoteProviderInit) => RemoteProviderConfig; diff --git a/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/httpRequest.d.ts b/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/httpRequest.d.ts deleted file mode 100644 index 67bd539c..00000000 --- a/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/httpRequest.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -/// -/// -import { RequestOptions } from "http"; -/** - * @internal - */ -export declare function httpRequest(options: RequestOptions): Promise; diff --git a/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/index.d.ts b/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/index.d.ts deleted file mode 100644 index ed18a703..00000000 --- a/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @internal - */ -export * from "./ImdsCredentials"; -/** - * @internal - */ -export * from "./RemoteProviderInit"; diff --git a/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/retry.d.ts b/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/retry.d.ts deleted file mode 100644 index 4e8abc04..00000000 --- a/node_modules/@smithy/credential-provider-imds/dist-types/remoteProvider/retry.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * @internal - */ -export interface RetryableProvider { - (): Promise; -} -/** - * @internal - */ -export declare const retry: (toRetry: RetryableProvider, maxRetries: number) => Promise; diff --git a/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/config/Endpoint.d.ts b/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/config/Endpoint.d.ts deleted file mode 100644 index b700953f..00000000 --- a/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/config/Endpoint.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * @internal - */ -export declare enum Endpoint { - IPv4 = "http://169.254.169.254", - IPv6 = "http://[fd00:ec2::254]" -} diff --git a/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/config/EndpointConfigOptions.d.ts b/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/config/EndpointConfigOptions.d.ts deleted file mode 100644 index dbcb2433..00000000 --- a/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/config/EndpointConfigOptions.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { LoadedConfigSelectors } from "@smithy/node-config-provider"; -/** - * @internal - */ -export declare const ENV_ENDPOINT_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT"; -/** - * @internal - */ -export declare const CONFIG_ENDPOINT_NAME = "ec2_metadata_service_endpoint"; -/** - * @internal - */ -export declare const ENDPOINT_CONFIG_OPTIONS: LoadedConfigSelectors; diff --git a/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/config/EndpointMode.d.ts b/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/config/EndpointMode.d.ts deleted file mode 100644 index 7dee86ef..00000000 --- a/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/config/EndpointMode.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * @internal - */ -export declare enum EndpointMode { - IPv4 = "IPv4", - IPv6 = "IPv6" -} diff --git a/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/config/EndpointModeConfigOptions.d.ts b/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/config/EndpointModeConfigOptions.d.ts deleted file mode 100644 index 1d5e4584..00000000 --- a/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/config/EndpointModeConfigOptions.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { LoadedConfigSelectors } from "@smithy/node-config-provider"; -/** - * @internal - */ -export declare const ENV_ENDPOINT_MODE_NAME = "AWS_EC2_METADATA_SERVICE_ENDPOINT_MODE"; -/** - * @internal - */ -export declare const CONFIG_ENDPOINT_MODE_NAME = "ec2_metadata_service_endpoint_mode"; -/** - * @internal - */ -export declare const ENDPOINT_MODE_CONFIG_OPTIONS: LoadedConfigSelectors; diff --git a/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/error/InstanceMetadataV1FallbackError.d.ts b/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/error/InstanceMetadataV1FallbackError.d.ts deleted file mode 100644 index 93ac2202..00000000 --- a/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/error/InstanceMetadataV1FallbackError.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { CredentialsProviderError } from "@smithy/property-provider"; -/** - * @public - * - * A specific sub-case of CredentialsProviderError, when the IMDSv1 fallback - * has been attempted but shut off by SDK configuration. - */ -export declare class InstanceMetadataV1FallbackError extends CredentialsProviderError { - readonly tryNextLink: boolean; - name: string; - constructor(message: string, tryNextLink?: boolean); -} diff --git a/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/fromContainerMetadata.d.ts b/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/fromContainerMetadata.d.ts deleted file mode 100644 index deb48fd4..00000000 --- a/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/fromContainerMetadata.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { AwsCredentialIdentityProvider } from "@smithy/types"; -import { RemoteProviderInit } from "./remoteProvider/RemoteProviderInit"; -/** - * @internal - */ -export declare const ENV_CMDS_FULL_URI = "AWS_CONTAINER_CREDENTIALS_FULL_URI"; -/** - * @internal - */ -export declare const ENV_CMDS_RELATIVE_URI = "AWS_CONTAINER_CREDENTIALS_RELATIVE_URI"; -/** - * @internal - */ -export declare const ENV_CMDS_AUTH_TOKEN = "AWS_CONTAINER_AUTHORIZATION_TOKEN"; -/** - * @internal - * - * Creates a credential provider that will source credentials from the ECS - * Container Metadata Service - */ -export declare const fromContainerMetadata: (init?: RemoteProviderInit) => AwsCredentialIdentityProvider; diff --git a/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/fromInstanceMetadata.d.ts b/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/fromInstanceMetadata.d.ts deleted file mode 100644 index 8a533f20..00000000 --- a/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/fromInstanceMetadata.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { Provider } from "@smithy/types"; -import { RemoteProviderInit } from "./remoteProvider/RemoteProviderInit"; -import { InstanceMetadataCredentials } from "./types"; -/** - * @internal - * - * Creates a credential provider that will source credentials from the EC2 - * Instance Metadata Service - */ -export declare const fromInstanceMetadata: (init?: RemoteProviderInit) => Provider; diff --git a/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/index.d.ts b/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/index.d.ts deleted file mode 100644 index 771b6dba..00000000 --- a/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/index.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * @internal - */ -export * from "./fromContainerMetadata"; -/** - * @internal - */ -export * from "./fromInstanceMetadata"; -/** - * @internal - */ -export * from "./remoteProvider/RemoteProviderInit"; -/** - * @internal - */ -export * from "./types"; -/** - * @internal - */ -export { httpRequest } from "./remoteProvider/httpRequest"; -/** - * @internal - */ -export { getInstanceMetadataEndpoint } from "./utils/getInstanceMetadataEndpoint"; diff --git a/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/remoteProvider/ImdsCredentials.d.ts b/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/remoteProvider/ImdsCredentials.d.ts deleted file mode 100644 index 0bdaeda9..00000000 --- a/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/remoteProvider/ImdsCredentials.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { AwsCredentialIdentity } from "@smithy/types"; -/** - * @internal - */ -export interface ImdsCredentials { - AccessKeyId: string; - SecretAccessKey: string; - Token: string; - Expiration: string; -} -/** - * @internal - */ -export declare const isImdsCredentials: (arg: any) => arg is ImdsCredentials; -/** - * @internal - */ -export declare const fromImdsCredentials: (creds: ImdsCredentials) => AwsCredentialIdentity; diff --git a/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/remoteProvider/RemoteProviderInit.d.ts b/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/remoteProvider/RemoteProviderInit.d.ts deleted file mode 100644 index 4fe25f1e..00000000 --- a/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/remoteProvider/RemoteProviderInit.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -import { Logger } from "@smithy/types"; -/** - * @internal - */ -export declare const DEFAULT_TIMEOUT = 1000; -/** - * @internal - */ -export declare const DEFAULT_MAX_RETRIES = 0; -/** - * @public - */ -export interface RemoteProviderConfig { - /** - * The connection timeout (in milliseconds) - */ - timeout: number; - /** - * The maximum number of times the HTTP connection should be retried - */ - maxRetries: number; -} -/** - * @public - */ -export interface RemoteProviderInit extends Partial { - logger?: Logger; - /** - * Only used in the IMDS credential provider. - */ - ec2MetadataV1Disabled?: boolean; - /** - * AWS_PROFILE. - */ - profile?: string; -} -/** - * @internal - */ -export declare const providerConfigFromInit: ({ maxRetries, timeout, }: RemoteProviderInit) => RemoteProviderConfig; diff --git a/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/remoteProvider/httpRequest.d.ts b/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/remoteProvider/httpRequest.d.ts deleted file mode 100644 index 48f249ab..00000000 --- a/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/remoteProvider/httpRequest.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -/// -import { RequestOptions } from "http"; -/** - * @internal - */ -export declare function httpRequest(options: RequestOptions): Promise; diff --git a/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/remoteProvider/index.d.ts b/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/remoteProvider/index.d.ts deleted file mode 100644 index a9d60945..00000000 --- a/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/remoteProvider/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @internal - */ -export * from "./ImdsCredentials"; -/** - * @internal - */ -export * from "./RemoteProviderInit"; diff --git a/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/remoteProvider/retry.d.ts b/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/remoteProvider/retry.d.ts deleted file mode 100644 index d72d6048..00000000 --- a/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/remoteProvider/retry.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * @internal - */ -export interface RetryableProvider { - (): Promise; -} -/** - * @internal - */ -export declare const retry: (toRetry: RetryableProvider, maxRetries: number) => Promise; diff --git a/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/types.d.ts b/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/types.d.ts deleted file mode 100644 index 2e9592b4..00000000 --- a/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/types.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { AwsCredentialIdentity } from "@smithy/types"; -/** - * @internal - */ -export interface InstanceMetadataCredentials extends AwsCredentialIdentity { - readonly originalExpiration?: Date; -} diff --git a/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/utils/getExtendedInstanceMetadataCredentials.d.ts b/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/utils/getExtendedInstanceMetadataCredentials.d.ts deleted file mode 100644 index 67edd2c6..00000000 --- a/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/utils/getExtendedInstanceMetadataCredentials.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { Logger } from "@smithy/types"; -import { InstanceMetadataCredentials } from "../types"; -/** - * @internal - */ -export declare const getExtendedInstanceMetadataCredentials: (credentials: InstanceMetadataCredentials, logger: Logger) => InstanceMetadataCredentials; diff --git a/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/utils/getInstanceMetadataEndpoint.d.ts b/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/utils/getInstanceMetadataEndpoint.d.ts deleted file mode 100644 index 1ad772de..00000000 --- a/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/utils/getInstanceMetadataEndpoint.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { Endpoint } from "@smithy/types"; -/** - * Returns the host to use for instance metadata service call. - * - * The host is read from endpoint which can be set either in - * {@link ENV_ENDPOINT_NAME} environment variable or {@link CONFIG_ENDPOINT_NAME} - * configuration property. - * - * If endpoint is not set, then endpoint mode is read either from - * {@link ENV_ENDPOINT_MODE_NAME} environment variable or {@link CONFIG_ENDPOINT_MODE_NAME} - * configuration property. If endpoint mode is not set, then default endpoint mode - * {@link EndpointMode.IPv4} is used. - * - * If endpoint mode is set to {@link EndpointMode.IPv4}, then the host is {@link Endpoint.IPv4}. - * If endpoint mode is set to {@link EndpointMode.IPv6}, then the host is {@link Endpoint.IPv6}. - * - * @returns Host to use for instance metadata service call. - * - * @internal - */ -export declare const getInstanceMetadataEndpoint: () => Promise; diff --git a/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/utils/staticStabilityProvider.d.ts b/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/utils/staticStabilityProvider.d.ts deleted file mode 100644 index 337091ef..00000000 --- a/node_modules/@smithy/credential-provider-imds/dist-types/ts3.4/utils/staticStabilityProvider.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { Logger, Provider } from "@smithy/types"; -import { InstanceMetadataCredentials } from "../types"; -/** - * @internal - * - * IMDS credential supports static stability feature. When used, the expiration - * of recently issued credentials is extended. The server side allows using - * the recently expired credentials. This mitigates impact when clients using - * refreshable credentials are unable to retrieve updates. - * - * @param provider Credential provider - * @returns A credential provider that supports static stability - */ -export declare const staticStabilityProvider: (provider: Provider, options?: { - logger?: Logger | undefined; -}) => Provider; diff --git a/node_modules/@smithy/credential-provider-imds/dist-types/types.d.ts b/node_modules/@smithy/credential-provider-imds/dist-types/types.d.ts deleted file mode 100644 index e74ec995..00000000 --- a/node_modules/@smithy/credential-provider-imds/dist-types/types.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { AwsCredentialIdentity } from "@smithy/types"; -/** - * @internal - */ -export interface InstanceMetadataCredentials extends AwsCredentialIdentity { - readonly originalExpiration?: Date; -} diff --git a/node_modules/@smithy/credential-provider-imds/dist-types/utils/getExtendedInstanceMetadataCredentials.d.ts b/node_modules/@smithy/credential-provider-imds/dist-types/utils/getExtendedInstanceMetadataCredentials.d.ts deleted file mode 100644 index f0ed41bc..00000000 --- a/node_modules/@smithy/credential-provider-imds/dist-types/utils/getExtendedInstanceMetadataCredentials.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { Logger } from "@smithy/types"; -import { InstanceMetadataCredentials } from "../types"; -/** - * @internal - */ -export declare const getExtendedInstanceMetadataCredentials: (credentials: InstanceMetadataCredentials, logger: Logger) => InstanceMetadataCredentials; diff --git a/node_modules/@smithy/credential-provider-imds/dist-types/utils/getInstanceMetadataEndpoint.d.ts b/node_modules/@smithy/credential-provider-imds/dist-types/utils/getInstanceMetadataEndpoint.d.ts deleted file mode 100644 index db6b6dae..00000000 --- a/node_modules/@smithy/credential-provider-imds/dist-types/utils/getInstanceMetadataEndpoint.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { Endpoint } from "@smithy/types"; -/** - * Returns the host to use for instance metadata service call. - * - * The host is read from endpoint which can be set either in - * {@link ENV_ENDPOINT_NAME} environment variable or {@link CONFIG_ENDPOINT_NAME} - * configuration property. - * - * If endpoint is not set, then endpoint mode is read either from - * {@link ENV_ENDPOINT_MODE_NAME} environment variable or {@link CONFIG_ENDPOINT_MODE_NAME} - * configuration property. If endpoint mode is not set, then default endpoint mode - * {@link EndpointMode.IPv4} is used. - * - * If endpoint mode is set to {@link EndpointMode.IPv4}, then the host is {@link Endpoint.IPv4}. - * If endpoint mode is set to {@link EndpointMode.IPv6}, then the host is {@link Endpoint.IPv6}. - * - * @returns Host to use for instance metadata service call. - * - * @internal - */ -export declare const getInstanceMetadataEndpoint: () => Promise; diff --git a/node_modules/@smithy/credential-provider-imds/dist-types/utils/staticStabilityProvider.d.ts b/node_modules/@smithy/credential-provider-imds/dist-types/utils/staticStabilityProvider.d.ts deleted file mode 100644 index 6bfcb694..00000000 --- a/node_modules/@smithy/credential-provider-imds/dist-types/utils/staticStabilityProvider.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { Logger, Provider } from "@smithy/types"; -import { InstanceMetadataCredentials } from "../types"; -/** - * @internal - * - * IMDS credential supports static stability feature. When used, the expiration - * of recently issued credentials is extended. The server side allows using - * the recently expired credentials. This mitigates impact when clients using - * refreshable credentials are unable to retrieve updates. - * - * @param provider Credential provider - * @returns A credential provider that supports static stability - */ -export declare const staticStabilityProvider: (provider: Provider, options?: { - logger?: Logger | undefined; -}) => Provider; diff --git a/node_modules/@smithy/credential-provider-imds/package.json b/node_modules/@smithy/credential-provider-imds/package.json deleted file mode 100644 index d72023c1..00000000 --- a/node_modules/@smithy/credential-provider-imds/package.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "name": "@smithy/credential-provider-imds", - "version": "2.1.2", - "description": "AWS credential provider that sources credentials from the EC2 instance metadata service and ECS container metadata service", - "main": "./dist-cjs/index.js", - "module": "./dist-es/index.js", - "scripts": { - "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", - "build:cjs": "yarn g:tsc -p tsconfig.cjs.json", - "build:es": "yarn g:tsc -p tsconfig.es.json", - "build:types": "yarn g:tsc -p tsconfig.types.json", - "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", - "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz", - "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"", - "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"", - "test": "yarn g:jest" - }, - "keywords": [ - "aws", - "credentials" - ], - "author": { - "name": "AWS SDK for JavaScript Team", - "url": "https://aws.amazon.com/javascript/" - }, - "license": "Apache-2.0", - "dependencies": { - "@smithy/node-config-provider": "^2.1.6", - "@smithy/property-provider": "^2.0.15", - "@smithy/types": "^2.6.0", - "@smithy/url-parser": "^2.0.14", - "tslib": "^2.5.0" - }, - "devDependencies": { - "@tsconfig/recommended": "1.0.1", - "@types/node": "^14.14.31", - "concurrently": "7.0.0", - "downlevel-dts": "0.10.1", - "nock": "^13.0.2", - "rimraf": "3.0.2", - "typedoc": "0.23.23" - }, - "types": "./dist-types/index.d.ts", - "engines": { - "node": ">=14.0.0" - }, - "typesVersions": { - "<4.0": { - "dist-types/*": [ - "dist-types/ts3.4/*" - ] - } - }, - "files": [ - "dist-*/**" - ], - "homepage": "https://github.com/awslabs/smithy-typescript/tree/main/packages/credential-provider-imds", - "repository": { - "type": "git", - "url": "https://github.com/awslabs/smithy-typescript.git", - "directory": "packages/credential-provider-imds" - }, - "typedoc": { - "entryPoint": "src/index.ts" - }, - "publishConfig": { - "directory": ".release/package" - } -} \ No newline at end of file diff --git a/node_modules/@smithy/eventstream-codec/LICENSE b/node_modules/@smithy/eventstream-codec/LICENSE deleted file mode 100644 index dd65ae06..00000000 --- a/node_modules/@smithy/eventstream-codec/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/node_modules/@smithy/eventstream-codec/README.md b/node_modules/@smithy/eventstream-codec/README.md deleted file mode 100644 index f846ca1b..00000000 --- a/node_modules/@smithy/eventstream-codec/README.md +++ /dev/null @@ -1,4 +0,0 @@ -# @smithy/eventstream-codec - -[![NPM version](https://img.shields.io/npm/v/@smithy/eventstream-codec/latest.svg)](https://www.npmjs.com/package/@smithy/eventstream-codec) -[![NPM downloads](https://img.shields.io/npm/dm/@smithy/eventstream-codec.svg)](https://www.npmjs.com/package/@smithy/eventstream-codec) diff --git a/node_modules/@smithy/eventstream-codec/dist-cjs/EventStreamCodec.js b/node_modules/@smithy/eventstream-codec/dist-cjs/EventStreamCodec.js deleted file mode 100644 index da1d8caf..00000000 --- a/node_modules/@smithy/eventstream-codec/dist-cjs/EventStreamCodec.js +++ /dev/null @@ -1,66 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.EventStreamCodec = void 0; -const crc32_1 = require("@aws-crypto/crc32"); -const HeaderMarshaller_1 = require("./HeaderMarshaller"); -const splitMessage_1 = require("./splitMessage"); -class EventStreamCodec { - constructor(toUtf8, fromUtf8) { - this.headerMarshaller = new HeaderMarshaller_1.HeaderMarshaller(toUtf8, fromUtf8); - this.messageBuffer = []; - this.isEndOfStream = false; - } - feed(message) { - this.messageBuffer.push(this.decode(message)); - } - endOfStream() { - this.isEndOfStream = true; - } - getMessage() { - const message = this.messageBuffer.pop(); - const isEndOfStream = this.isEndOfStream; - return { - getMessage() { - return message; - }, - isEndOfStream() { - return isEndOfStream; - }, - }; - } - getAvailableMessages() { - const messages = this.messageBuffer; - this.messageBuffer = []; - const isEndOfStream = this.isEndOfStream; - return { - getMessages() { - return messages; - }, - isEndOfStream() { - return isEndOfStream; - }, - }; - } - encode({ headers: rawHeaders, body }) { - const headers = this.headerMarshaller.format(rawHeaders); - const length = headers.byteLength + body.byteLength + 16; - const out = new Uint8Array(length); - const view = new DataView(out.buffer, out.byteOffset, out.byteLength); - const checksum = new crc32_1.Crc32(); - view.setUint32(0, length, false); - view.setUint32(4, headers.byteLength, false); - view.setUint32(8, checksum.update(out.subarray(0, 8)).digest(), false); - out.set(headers, 12); - out.set(body, headers.byteLength + 12); - view.setUint32(length - 4, checksum.update(out.subarray(8, length - 4)).digest(), false); - return out; - } - decode(message) { - const { headers, body } = (0, splitMessage_1.splitMessage)(message); - return { headers: this.headerMarshaller.parse(headers), body }; - } - formatHeaders(rawHeaders) { - return this.headerMarshaller.format(rawHeaders); - } -} -exports.EventStreamCodec = EventStreamCodec; diff --git a/node_modules/@smithy/eventstream-codec/dist-cjs/HeaderMarshaller.js b/node_modules/@smithy/eventstream-codec/dist-cjs/HeaderMarshaller.js deleted file mode 100644 index c0c75fc1..00000000 --- a/node_modules/@smithy/eventstream-codec/dist-cjs/HeaderMarshaller.js +++ /dev/null @@ -1,186 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.HeaderMarshaller = void 0; -const util_hex_encoding_1 = require("@smithy/util-hex-encoding"); -const Int64_1 = require("./Int64"); -class HeaderMarshaller { - constructor(toUtf8, fromUtf8) { - this.toUtf8 = toUtf8; - this.fromUtf8 = fromUtf8; - } - format(headers) { - const chunks = []; - for (const headerName of Object.keys(headers)) { - const bytes = this.fromUtf8(headerName); - chunks.push(Uint8Array.from([bytes.byteLength]), bytes, this.formatHeaderValue(headers[headerName])); - } - const out = new Uint8Array(chunks.reduce((carry, bytes) => carry + bytes.byteLength, 0)); - let position = 0; - for (const chunk of chunks) { - out.set(chunk, position); - position += chunk.byteLength; - } - return out; - } - formatHeaderValue(header) { - switch (header.type) { - case "boolean": - return Uint8Array.from([header.value ? 0 : 1]); - case "byte": - return Uint8Array.from([2, header.value]); - case "short": - const shortView = new DataView(new ArrayBuffer(3)); - shortView.setUint8(0, 3); - shortView.setInt16(1, header.value, false); - return new Uint8Array(shortView.buffer); - case "integer": - const intView = new DataView(new ArrayBuffer(5)); - intView.setUint8(0, 4); - intView.setInt32(1, header.value, false); - return new Uint8Array(intView.buffer); - case "long": - const longBytes = new Uint8Array(9); - longBytes[0] = 5; - longBytes.set(header.value.bytes, 1); - return longBytes; - case "binary": - const binView = new DataView(new ArrayBuffer(3 + header.value.byteLength)); - binView.setUint8(0, 6); - binView.setUint16(1, header.value.byteLength, false); - const binBytes = new Uint8Array(binView.buffer); - binBytes.set(header.value, 3); - return binBytes; - case "string": - const utf8Bytes = this.fromUtf8(header.value); - const strView = new DataView(new ArrayBuffer(3 + utf8Bytes.byteLength)); - strView.setUint8(0, 7); - strView.setUint16(1, utf8Bytes.byteLength, false); - const strBytes = new Uint8Array(strView.buffer); - strBytes.set(utf8Bytes, 3); - return strBytes; - case "timestamp": - const tsBytes = new Uint8Array(9); - tsBytes[0] = 8; - tsBytes.set(Int64_1.Int64.fromNumber(header.value.valueOf()).bytes, 1); - return tsBytes; - case "uuid": - if (!UUID_PATTERN.test(header.value)) { - throw new Error(`Invalid UUID received: ${header.value}`); - } - const uuidBytes = new Uint8Array(17); - uuidBytes[0] = 9; - uuidBytes.set((0, util_hex_encoding_1.fromHex)(header.value.replace(/\-/g, "")), 1); - return uuidBytes; - } - } - parse(headers) { - const out = {}; - let position = 0; - while (position < headers.byteLength) { - const nameLength = headers.getUint8(position++); - const name = this.toUtf8(new Uint8Array(headers.buffer, headers.byteOffset + position, nameLength)); - position += nameLength; - switch (headers.getUint8(position++)) { - case 0: - out[name] = { - type: BOOLEAN_TAG, - value: true, - }; - break; - case 1: - out[name] = { - type: BOOLEAN_TAG, - value: false, - }; - break; - case 2: - out[name] = { - type: BYTE_TAG, - value: headers.getInt8(position++), - }; - break; - case 3: - out[name] = { - type: SHORT_TAG, - value: headers.getInt16(position, false), - }; - position += 2; - break; - case 4: - out[name] = { - type: INT_TAG, - value: headers.getInt32(position, false), - }; - position += 4; - break; - case 5: - out[name] = { - type: LONG_TAG, - value: new Int64_1.Int64(new Uint8Array(headers.buffer, headers.byteOffset + position, 8)), - }; - position += 8; - break; - case 6: - const binaryLength = headers.getUint16(position, false); - position += 2; - out[name] = { - type: BINARY_TAG, - value: new Uint8Array(headers.buffer, headers.byteOffset + position, binaryLength), - }; - position += binaryLength; - break; - case 7: - const stringLength = headers.getUint16(position, false); - position += 2; - out[name] = { - type: STRING_TAG, - value: this.toUtf8(new Uint8Array(headers.buffer, headers.byteOffset + position, stringLength)), - }; - position += stringLength; - break; - case 8: - out[name] = { - type: TIMESTAMP_TAG, - value: new Date(new Int64_1.Int64(new Uint8Array(headers.buffer, headers.byteOffset + position, 8)).valueOf()), - }; - position += 8; - break; - case 9: - const uuidBytes = new Uint8Array(headers.buffer, headers.byteOffset + position, 16); - position += 16; - out[name] = { - type: UUID_TAG, - value: `${(0, util_hex_encoding_1.toHex)(uuidBytes.subarray(0, 4))}-${(0, util_hex_encoding_1.toHex)(uuidBytes.subarray(4, 6))}-${(0, util_hex_encoding_1.toHex)(uuidBytes.subarray(6, 8))}-${(0, util_hex_encoding_1.toHex)(uuidBytes.subarray(8, 10))}-${(0, util_hex_encoding_1.toHex)(uuidBytes.subarray(10))}`, - }; - break; - default: - throw new Error(`Unrecognized header type tag`); - } - } - return out; - } -} -exports.HeaderMarshaller = HeaderMarshaller; -var HEADER_VALUE_TYPE; -(function (HEADER_VALUE_TYPE) { - HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["boolTrue"] = 0] = "boolTrue"; - HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["boolFalse"] = 1] = "boolFalse"; - HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["byte"] = 2] = "byte"; - HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["short"] = 3] = "short"; - HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["integer"] = 4] = "integer"; - HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["long"] = 5] = "long"; - HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["byteArray"] = 6] = "byteArray"; - HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["string"] = 7] = "string"; - HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["timestamp"] = 8] = "timestamp"; - HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["uuid"] = 9] = "uuid"; -})(HEADER_VALUE_TYPE || (HEADER_VALUE_TYPE = {})); -const BOOLEAN_TAG = "boolean"; -const BYTE_TAG = "byte"; -const SHORT_TAG = "short"; -const INT_TAG = "integer"; -const LONG_TAG = "long"; -const BINARY_TAG = "binary"; -const STRING_TAG = "string"; -const TIMESTAMP_TAG = "timestamp"; -const UUID_TAG = "uuid"; -const UUID_PATTERN = /^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/; diff --git a/node_modules/@smithy/eventstream-codec/dist-cjs/Int64.js b/node_modules/@smithy/eventstream-codec/dist-cjs/Int64.js deleted file mode 100644 index 0b50dd32..00000000 --- a/node_modules/@smithy/eventstream-codec/dist-cjs/Int64.js +++ /dev/null @@ -1,47 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Int64 = void 0; -const util_hex_encoding_1 = require("@smithy/util-hex-encoding"); -class Int64 { - constructor(bytes) { - this.bytes = bytes; - if (bytes.byteLength !== 8) { - throw new Error("Int64 buffers must be exactly 8 bytes"); - } - } - static fromNumber(number) { - if (number > 9223372036854776000 || number < -9223372036854776000) { - throw new Error(`${number} is too large (or, if negative, too small) to represent as an Int64`); - } - const bytes = new Uint8Array(8); - for (let i = 7, remaining = Math.abs(Math.round(number)); i > -1 && remaining > 0; i--, remaining /= 256) { - bytes[i] = remaining; - } - if (number < 0) { - negate(bytes); - } - return new Int64(bytes); - } - valueOf() { - const bytes = this.bytes.slice(0); - const negative = bytes[0] & 0b10000000; - if (negative) { - negate(bytes); - } - return parseInt((0, util_hex_encoding_1.toHex)(bytes), 16) * (negative ? -1 : 1); - } - toString() { - return String(this.valueOf()); - } -} -exports.Int64 = Int64; -function negate(bytes) { - for (let i = 0; i < 8; i++) { - bytes[i] ^= 0xff; - } - for (let i = 7; i > -1; i--) { - bytes[i]++; - if (bytes[i] !== 0) - break; - } -} diff --git a/node_modules/@smithy/eventstream-codec/dist-cjs/Message.js b/node_modules/@smithy/eventstream-codec/dist-cjs/Message.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@smithy/eventstream-codec/dist-cjs/Message.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@smithy/eventstream-codec/dist-cjs/MessageDecoderStream.js b/node_modules/@smithy/eventstream-codec/dist-cjs/MessageDecoderStream.js deleted file mode 100644 index 1669f986..00000000 --- a/node_modules/@smithy/eventstream-codec/dist-cjs/MessageDecoderStream.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MessageDecoderStream = void 0; -class MessageDecoderStream { - constructor(options) { - this.options = options; - } - [Symbol.asyncIterator]() { - return this.asyncIterator(); - } - async *asyncIterator() { - for await (const bytes of this.options.inputStream) { - const decoded = this.options.decoder.decode(bytes); - yield decoded; - } - } -} -exports.MessageDecoderStream = MessageDecoderStream; diff --git a/node_modules/@smithy/eventstream-codec/dist-cjs/MessageEncoderStream.js b/node_modules/@smithy/eventstream-codec/dist-cjs/MessageEncoderStream.js deleted file mode 100644 index d07cbe8e..00000000 --- a/node_modules/@smithy/eventstream-codec/dist-cjs/MessageEncoderStream.js +++ /dev/null @@ -1,21 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MessageEncoderStream = void 0; -class MessageEncoderStream { - constructor(options) { - this.options = options; - } - [Symbol.asyncIterator]() { - return this.asyncIterator(); - } - async *asyncIterator() { - for await (const msg of this.options.messageStream) { - const encoded = this.options.encoder.encode(msg); - yield encoded; - } - if (this.options.includeEndFrame) { - yield new Uint8Array(0); - } - } -} -exports.MessageEncoderStream = MessageEncoderStream; diff --git a/node_modules/@smithy/eventstream-codec/dist-cjs/SmithyMessageDecoderStream.js b/node_modules/@smithy/eventstream-codec/dist-cjs/SmithyMessageDecoderStream.js deleted file mode 100644 index eaf15743..00000000 --- a/node_modules/@smithy/eventstream-codec/dist-cjs/SmithyMessageDecoderStream.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SmithyMessageDecoderStream = void 0; -class SmithyMessageDecoderStream { - constructor(options) { - this.options = options; - } - [Symbol.asyncIterator]() { - return this.asyncIterator(); - } - async *asyncIterator() { - for await (const message of this.options.messageStream) { - const deserialized = await this.options.deserializer(message); - if (deserialized === undefined) - continue; - yield deserialized; - } - } -} -exports.SmithyMessageDecoderStream = SmithyMessageDecoderStream; diff --git a/node_modules/@smithy/eventstream-codec/dist-cjs/SmithyMessageEncoderStream.js b/node_modules/@smithy/eventstream-codec/dist-cjs/SmithyMessageEncoderStream.js deleted file mode 100644 index e4a05362..00000000 --- a/node_modules/@smithy/eventstream-codec/dist-cjs/SmithyMessageEncoderStream.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SmithyMessageEncoderStream = void 0; -class SmithyMessageEncoderStream { - constructor(options) { - this.options = options; - } - [Symbol.asyncIterator]() { - return this.asyncIterator(); - } - async *asyncIterator() { - for await (const chunk of this.options.inputStream) { - const payloadBuf = this.options.serializer(chunk); - yield payloadBuf; - } - } -} -exports.SmithyMessageEncoderStream = SmithyMessageEncoderStream; diff --git a/node_modules/@smithy/eventstream-codec/dist-cjs/TestVectors.fixture.js b/node_modules/@smithy/eventstream-codec/dist-cjs/TestVectors.fixture.js deleted file mode 100644 index 9f871c57..00000000 --- a/node_modules/@smithy/eventstream-codec/dist-cjs/TestVectors.fixture.js +++ /dev/null @@ -1,693 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.vectors = void 0; -const Int64_1 = require("./Int64"); -exports.vectors = { - all_headers: { - expectation: "success", - encoded: Uint8Array.from([ - 0, - 0, - 0, - 204, - 0, - 0, - 0, - 175, - 15, - 174, - 100, - 202, - 10, - 101, - 118, - 101, - 110, - 116, - 45, - 116, - 121, - 112, - 101, - 4, - 0, - 0, - 160, - 12, - 12, - 99, - 111, - 110, - 116, - 101, - 110, - 116, - 45, - 116, - 121, - 112, - 101, - 7, - 0, - 16, - 97, - 112, - 112, - 108, - 105, - 99, - 97, - 116, - 105, - 111, - 110, - 47, - 106, - 115, - 111, - 110, - 10, - 98, - 111, - 111, - 108, - 32, - 102, - 97, - 108, - 115, - 101, - 1, - 9, - 98, - 111, - 111, - 108, - 32, - 116, - 114, - 117, - 101, - 0, - 4, - 98, - 121, - 116, - 101, - 2, - 207, - 8, - 98, - 121, - 116, - 101, - 32, - 98, - 117, - 102, - 6, - 0, - 20, - 73, - 39, - 109, - 32, - 97, - 32, - 108, - 105, - 116, - 116, - 108, - 101, - 32, - 116, - 101, - 97, - 112, - 111, - 116, - 33, - 9, - 116, - 105, - 109, - 101, - 115, - 116, - 97, - 109, - 112, - 8, - 0, - 0, - 0, - 0, - 0, - 132, - 95, - 237, - 5, - 105, - 110, - 116, - 49, - 54, - 3, - 0, - 42, - 5, - 105, - 110, - 116, - 54, - 52, - 5, - 0, - 0, - 0, - 0, - 2, - 135, - 87, - 178, - 4, - 117, - 117, - 105, - 100, - 9, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 123, - 39, - 102, - 111, - 111, - 39, - 58, - 39, - 98, - 97, - 114, - 39, - 125, - 171, - 165, - 241, - 12, - ]), - decoded: { - headers: { - "event-type": { - type: "integer", - value: 40972, - }, - "content-type": { - type: "string", - value: "application/json", - }, - "bool false": { - type: "boolean", - value: false, - }, - "bool true": { - type: "boolean", - value: true, - }, - byte: { - type: "byte", - value: -49, - }, - "byte buf": { - type: "binary", - value: Uint8Array.from([ - 73, - 39, - 109, - 32, - 97, - 32, - 108, - 105, - 116, - 116, - 108, - 101, - 32, - 116, - 101, - 97, - 112, - 111, - 116, - 33, - ]), - }, - timestamp: { - type: "timestamp", - value: new Date(8675309), - }, - int16: { - type: "short", - value: 42, - }, - int64: { - type: "long", - value: Int64_1.Int64.fromNumber(42424242), - }, - uuid: { - type: "uuid", - value: "01020304-0506-0708-090a-0b0c0d0e0f10", - }, - }, - body: Uint8Array.from([123, 39, 102, 111, 111, 39, 58, 39, 98, 97, 114, 39, 125]), - }, - }, - empty_message: { - expectation: "success", - encoded: Uint8Array.from([0, 0, 0, 16, 0, 0, 0, 0, 5, 194, 72, 235, 125, 152, 200, 255]), - decoded: { - headers: {}, - body: Uint8Array.from([]), - }, - }, - int32_header: { - expectation: "success", - encoded: Uint8Array.from([ - 0, - 0, - 0, - 45, - 0, - 0, - 0, - 16, - 65, - 196, - 36, - 184, - 10, - 101, - 118, - 101, - 110, - 116, - 45, - 116, - 121, - 112, - 101, - 4, - 0, - 0, - 160, - 12, - 123, - 39, - 102, - 111, - 111, - 39, - 58, - 39, - 98, - 97, - 114, - 39, - 125, - 54, - 244, - 128, - 160, - ]), - decoded: { - headers: { - "event-type": { - type: "integer", - value: 40972, - }, - }, - body: Uint8Array.from([123, 39, 102, 111, 111, 39, 58, 39, 98, 97, 114, 39, 125]), - }, - }, - payload_no_headers: { - expectation: "success", - encoded: Uint8Array.from([ - 0, - 0, - 0, - 29, - 0, - 0, - 0, - 0, - 253, - 82, - 140, - 90, - 123, - 39, - 102, - 111, - 111, - 39, - 58, - 39, - 98, - 97, - 114, - 39, - 125, - 195, - 101, - 57, - 54, - ]), - decoded: { - headers: {}, - body: Uint8Array.from([123, 39, 102, 111, 111, 39, 58, 39, 98, 97, 114, 39, 125]), - }, - }, - payload_one_str_header: { - expectation: "success", - encoded: Uint8Array.from([ - 0, - 0, - 0, - 61, - 0, - 0, - 0, - 32, - 7, - 253, - 131, - 150, - 12, - 99, - 111, - 110, - 116, - 101, - 110, - 116, - 45, - 116, - 121, - 112, - 101, - 7, - 0, - 16, - 97, - 112, - 112, - 108, - 105, - 99, - 97, - 116, - 105, - 111, - 110, - 47, - 106, - 115, - 111, - 110, - 123, - 39, - 102, - 111, - 111, - 39, - 58, - 39, - 98, - 97, - 114, - 39, - 125, - 141, - 156, - 8, - 177, - ]), - decoded: { - headers: { - "content-type": { - type: "string", - value: "application/json", - }, - }, - body: Uint8Array.from([123, 39, 102, 111, 111, 39, 58, 39, 98, 97, 114, 39, 125]), - }, - }, - corrupted_headers: { - expectation: "failure", - encoded: Uint8Array.from([ - 0, - 0, - 0, - 61, - 0, - 0, - 0, - 32, - 7, - 253, - 131, - 150, - 12, - 99, - 111, - 110, - 116, - 101, - 110, - 116, - 45, - 116, - 121, - 112, - 101, - 7, - 0, - 16, - 97, - 112, - 112, - 108, - 105, - 99, - 97, - 116, - 105, - 111, - 110, - 47, - 106, - 115, - 111, - 110, - 123, - 97, - 102, - 111, - 111, - 39, - 58, - 39, - 98, - 97, - 114, - 39, - 125, - 141, - 156, - 8, - 177, - ]), - }, - corrupted_header_len: { - expectation: "failure", - encoded: Uint8Array.from([ - 0, - 0, - 0, - 61, - 0, - 0, - 0, - 33, - 7, - 253, - 131, - 150, - 12, - 99, - 111, - 110, - 116, - 101, - 110, - 116, - 45, - 116, - 121, - 112, - 101, - 7, - 0, - 16, - 97, - 112, - 112, - 108, - 105, - 99, - 97, - 116, - 105, - 111, - 110, - 47, - 106, - 115, - 111, - 110, - 123, - 39, - 102, - 111, - 111, - 39, - 58, - 39, - 98, - 97, - 114, - 39, - 125, - 141, - 156, - 8, - 177, - ]), - }, - corrupted_length: { - expectation: "failure", - encoded: Uint8Array.from([ - 0, - 0, - 0, - 62, - 0, - 0, - 0, - 32, - 7, - 253, - 131, - 150, - 12, - 99, - 111, - 110, - 116, - 101, - 110, - 116, - 45, - 116, - 121, - 112, - 101, - 7, - 0, - 16, - 97, - 112, - 112, - 108, - 105, - 99, - 97, - 116, - 105, - 111, - 110, - 47, - 106, - 115, - 111, - 110, - 123, - 39, - 102, - 111, - 111, - 39, - 58, - 39, - 98, - 97, - 114, - 39, - 125, - 141, - 156, - 8, - 177, - ]), - }, - corrupted_payload: { - expectation: "failure", - encoded: Uint8Array.from([ - 0, - 0, - 0, - 29, - 0, - 0, - 0, - 0, - 253, - 82, - 140, - 90, - 91, - 39, - 102, - 111, - 111, - 39, - 58, - 39, - 98, - 97, - 114, - 39, - 125, - 195, - 101, - 57, - 54, - ]), - }, -}; diff --git a/node_modules/@smithy/eventstream-codec/dist-cjs/index.js b/node_modules/@smithy/eventstream-codec/dist-cjs/index.js deleted file mode 100644 index 91d0546c..00000000 --- a/node_modules/@smithy/eventstream-codec/dist-cjs/index.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./EventStreamCodec"), exports); -tslib_1.__exportStar(require("./HeaderMarshaller"), exports); -tslib_1.__exportStar(require("./Int64"), exports); -tslib_1.__exportStar(require("./Message"), exports); -tslib_1.__exportStar(require("./MessageDecoderStream"), exports); -tslib_1.__exportStar(require("./MessageEncoderStream"), exports); -tslib_1.__exportStar(require("./SmithyMessageDecoderStream"), exports); -tslib_1.__exportStar(require("./SmithyMessageEncoderStream"), exports); diff --git a/node_modules/@smithy/eventstream-codec/dist-cjs/splitMessage.js b/node_modules/@smithy/eventstream-codec/dist-cjs/splitMessage.js deleted file mode 100644 index 5fbe116c..00000000 --- a/node_modules/@smithy/eventstream-codec/dist-cjs/splitMessage.js +++ /dev/null @@ -1,34 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.splitMessage = void 0; -const crc32_1 = require("@aws-crypto/crc32"); -const PRELUDE_MEMBER_LENGTH = 4; -const PRELUDE_LENGTH = PRELUDE_MEMBER_LENGTH * 2; -const CHECKSUM_LENGTH = 4; -const MINIMUM_MESSAGE_LENGTH = PRELUDE_LENGTH + CHECKSUM_LENGTH * 2; -function splitMessage({ byteLength, byteOffset, buffer }) { - if (byteLength < MINIMUM_MESSAGE_LENGTH) { - throw new Error("Provided message too short to accommodate event stream message overhead"); - } - const view = new DataView(buffer, byteOffset, byteLength); - const messageLength = view.getUint32(0, false); - if (byteLength !== messageLength) { - throw new Error("Reported message length does not match received message length"); - } - const headerLength = view.getUint32(PRELUDE_MEMBER_LENGTH, false); - const expectedPreludeChecksum = view.getUint32(PRELUDE_LENGTH, false); - const expectedMessageChecksum = view.getUint32(byteLength - CHECKSUM_LENGTH, false); - const checksummer = new crc32_1.Crc32().update(new Uint8Array(buffer, byteOffset, PRELUDE_LENGTH)); - if (expectedPreludeChecksum !== checksummer.digest()) { - throw new Error(`The prelude checksum specified in the message (${expectedPreludeChecksum}) does not match the calculated CRC32 checksum (${checksummer.digest()})`); - } - checksummer.update(new Uint8Array(buffer, byteOffset + PRELUDE_LENGTH, byteLength - (PRELUDE_LENGTH + CHECKSUM_LENGTH))); - if (expectedMessageChecksum !== checksummer.digest()) { - throw new Error(`The message checksum (${checksummer.digest()}) did not match the expected value of ${expectedMessageChecksum}`); - } - return { - headers: new DataView(buffer, byteOffset + PRELUDE_LENGTH + CHECKSUM_LENGTH, headerLength), - body: new Uint8Array(buffer, byteOffset + PRELUDE_LENGTH + CHECKSUM_LENGTH + headerLength, messageLength - headerLength - (PRELUDE_LENGTH + CHECKSUM_LENGTH + CHECKSUM_LENGTH)), - }; -} -exports.splitMessage = splitMessage; diff --git a/node_modules/@smithy/eventstream-codec/dist-cjs/vectorTypes.fixture.js b/node_modules/@smithy/eventstream-codec/dist-cjs/vectorTypes.fixture.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@smithy/eventstream-codec/dist-cjs/vectorTypes.fixture.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@smithy/eventstream-codec/dist-es/EventStreamCodec.js b/node_modules/@smithy/eventstream-codec/dist-es/EventStreamCodec.js deleted file mode 100644 index dacbe48e..00000000 --- a/node_modules/@smithy/eventstream-codec/dist-es/EventStreamCodec.js +++ /dev/null @@ -1,62 +0,0 @@ -import { Crc32 } from "@aws-crypto/crc32"; -import { HeaderMarshaller } from "./HeaderMarshaller"; -import { splitMessage } from "./splitMessage"; -export class EventStreamCodec { - constructor(toUtf8, fromUtf8) { - this.headerMarshaller = new HeaderMarshaller(toUtf8, fromUtf8); - this.messageBuffer = []; - this.isEndOfStream = false; - } - feed(message) { - this.messageBuffer.push(this.decode(message)); - } - endOfStream() { - this.isEndOfStream = true; - } - getMessage() { - const message = this.messageBuffer.pop(); - const isEndOfStream = this.isEndOfStream; - return { - getMessage() { - return message; - }, - isEndOfStream() { - return isEndOfStream; - }, - }; - } - getAvailableMessages() { - const messages = this.messageBuffer; - this.messageBuffer = []; - const isEndOfStream = this.isEndOfStream; - return { - getMessages() { - return messages; - }, - isEndOfStream() { - return isEndOfStream; - }, - }; - } - encode({ headers: rawHeaders, body }) { - const headers = this.headerMarshaller.format(rawHeaders); - const length = headers.byteLength + body.byteLength + 16; - const out = new Uint8Array(length); - const view = new DataView(out.buffer, out.byteOffset, out.byteLength); - const checksum = new Crc32(); - view.setUint32(0, length, false); - view.setUint32(4, headers.byteLength, false); - view.setUint32(8, checksum.update(out.subarray(0, 8)).digest(), false); - out.set(headers, 12); - out.set(body, headers.byteLength + 12); - view.setUint32(length - 4, checksum.update(out.subarray(8, length - 4)).digest(), false); - return out; - } - decode(message) { - const { headers, body } = splitMessage(message); - return { headers: this.headerMarshaller.parse(headers), body }; - } - formatHeaders(rawHeaders) { - return this.headerMarshaller.format(rawHeaders); - } -} diff --git a/node_modules/@smithy/eventstream-codec/dist-es/HeaderMarshaller.js b/node_modules/@smithy/eventstream-codec/dist-es/HeaderMarshaller.js deleted file mode 100644 index 27995b4f..00000000 --- a/node_modules/@smithy/eventstream-codec/dist-es/HeaderMarshaller.js +++ /dev/null @@ -1,182 +0,0 @@ -import { fromHex, toHex } from "@smithy/util-hex-encoding"; -import { Int64 } from "./Int64"; -export class HeaderMarshaller { - constructor(toUtf8, fromUtf8) { - this.toUtf8 = toUtf8; - this.fromUtf8 = fromUtf8; - } - format(headers) { - const chunks = []; - for (const headerName of Object.keys(headers)) { - const bytes = this.fromUtf8(headerName); - chunks.push(Uint8Array.from([bytes.byteLength]), bytes, this.formatHeaderValue(headers[headerName])); - } - const out = new Uint8Array(chunks.reduce((carry, bytes) => carry + bytes.byteLength, 0)); - let position = 0; - for (const chunk of chunks) { - out.set(chunk, position); - position += chunk.byteLength; - } - return out; - } - formatHeaderValue(header) { - switch (header.type) { - case "boolean": - return Uint8Array.from([header.value ? 0 : 1]); - case "byte": - return Uint8Array.from([2, header.value]); - case "short": - const shortView = new DataView(new ArrayBuffer(3)); - shortView.setUint8(0, 3); - shortView.setInt16(1, header.value, false); - return new Uint8Array(shortView.buffer); - case "integer": - const intView = new DataView(new ArrayBuffer(5)); - intView.setUint8(0, 4); - intView.setInt32(1, header.value, false); - return new Uint8Array(intView.buffer); - case "long": - const longBytes = new Uint8Array(9); - longBytes[0] = 5; - longBytes.set(header.value.bytes, 1); - return longBytes; - case "binary": - const binView = new DataView(new ArrayBuffer(3 + header.value.byteLength)); - binView.setUint8(0, 6); - binView.setUint16(1, header.value.byteLength, false); - const binBytes = new Uint8Array(binView.buffer); - binBytes.set(header.value, 3); - return binBytes; - case "string": - const utf8Bytes = this.fromUtf8(header.value); - const strView = new DataView(new ArrayBuffer(3 + utf8Bytes.byteLength)); - strView.setUint8(0, 7); - strView.setUint16(1, utf8Bytes.byteLength, false); - const strBytes = new Uint8Array(strView.buffer); - strBytes.set(utf8Bytes, 3); - return strBytes; - case "timestamp": - const tsBytes = new Uint8Array(9); - tsBytes[0] = 8; - tsBytes.set(Int64.fromNumber(header.value.valueOf()).bytes, 1); - return tsBytes; - case "uuid": - if (!UUID_PATTERN.test(header.value)) { - throw new Error(`Invalid UUID received: ${header.value}`); - } - const uuidBytes = new Uint8Array(17); - uuidBytes[0] = 9; - uuidBytes.set(fromHex(header.value.replace(/\-/g, "")), 1); - return uuidBytes; - } - } - parse(headers) { - const out = {}; - let position = 0; - while (position < headers.byteLength) { - const nameLength = headers.getUint8(position++); - const name = this.toUtf8(new Uint8Array(headers.buffer, headers.byteOffset + position, nameLength)); - position += nameLength; - switch (headers.getUint8(position++)) { - case 0: - out[name] = { - type: BOOLEAN_TAG, - value: true, - }; - break; - case 1: - out[name] = { - type: BOOLEAN_TAG, - value: false, - }; - break; - case 2: - out[name] = { - type: BYTE_TAG, - value: headers.getInt8(position++), - }; - break; - case 3: - out[name] = { - type: SHORT_TAG, - value: headers.getInt16(position, false), - }; - position += 2; - break; - case 4: - out[name] = { - type: INT_TAG, - value: headers.getInt32(position, false), - }; - position += 4; - break; - case 5: - out[name] = { - type: LONG_TAG, - value: new Int64(new Uint8Array(headers.buffer, headers.byteOffset + position, 8)), - }; - position += 8; - break; - case 6: - const binaryLength = headers.getUint16(position, false); - position += 2; - out[name] = { - type: BINARY_TAG, - value: new Uint8Array(headers.buffer, headers.byteOffset + position, binaryLength), - }; - position += binaryLength; - break; - case 7: - const stringLength = headers.getUint16(position, false); - position += 2; - out[name] = { - type: STRING_TAG, - value: this.toUtf8(new Uint8Array(headers.buffer, headers.byteOffset + position, stringLength)), - }; - position += stringLength; - break; - case 8: - out[name] = { - type: TIMESTAMP_TAG, - value: new Date(new Int64(new Uint8Array(headers.buffer, headers.byteOffset + position, 8)).valueOf()), - }; - position += 8; - break; - case 9: - const uuidBytes = new Uint8Array(headers.buffer, headers.byteOffset + position, 16); - position += 16; - out[name] = { - type: UUID_TAG, - value: `${toHex(uuidBytes.subarray(0, 4))}-${toHex(uuidBytes.subarray(4, 6))}-${toHex(uuidBytes.subarray(6, 8))}-${toHex(uuidBytes.subarray(8, 10))}-${toHex(uuidBytes.subarray(10))}`, - }; - break; - default: - throw new Error(`Unrecognized header type tag`); - } - } - return out; - } -} -var HEADER_VALUE_TYPE; -(function (HEADER_VALUE_TYPE) { - HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["boolTrue"] = 0] = "boolTrue"; - HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["boolFalse"] = 1] = "boolFalse"; - HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["byte"] = 2] = "byte"; - HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["short"] = 3] = "short"; - HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["integer"] = 4] = "integer"; - HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["long"] = 5] = "long"; - HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["byteArray"] = 6] = "byteArray"; - HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["string"] = 7] = "string"; - HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["timestamp"] = 8] = "timestamp"; - HEADER_VALUE_TYPE[HEADER_VALUE_TYPE["uuid"] = 9] = "uuid"; -})(HEADER_VALUE_TYPE || (HEADER_VALUE_TYPE = {})); -const BOOLEAN_TAG = "boolean"; -const BYTE_TAG = "byte"; -const SHORT_TAG = "short"; -const INT_TAG = "integer"; -const LONG_TAG = "long"; -const BINARY_TAG = "binary"; -const STRING_TAG = "string"; -const TIMESTAMP_TAG = "timestamp"; -const UUID_TAG = "uuid"; -const UUID_PATTERN = /^[a-f0-9]{8}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{4}-[a-f0-9]{12}$/; diff --git a/node_modules/@smithy/eventstream-codec/dist-es/Int64.js b/node_modules/@smithy/eventstream-codec/dist-es/Int64.js deleted file mode 100644 index f3f77850..00000000 --- a/node_modules/@smithy/eventstream-codec/dist-es/Int64.js +++ /dev/null @@ -1,43 +0,0 @@ -import { toHex } from "@smithy/util-hex-encoding"; -export class Int64 { - constructor(bytes) { - this.bytes = bytes; - if (bytes.byteLength !== 8) { - throw new Error("Int64 buffers must be exactly 8 bytes"); - } - } - static fromNumber(number) { - if (number > 9223372036854776000 || number < -9223372036854776000) { - throw new Error(`${number} is too large (or, if negative, too small) to represent as an Int64`); - } - const bytes = new Uint8Array(8); - for (let i = 7, remaining = Math.abs(Math.round(number)); i > -1 && remaining > 0; i--, remaining /= 256) { - bytes[i] = remaining; - } - if (number < 0) { - negate(bytes); - } - return new Int64(bytes); - } - valueOf() { - const bytes = this.bytes.slice(0); - const negative = bytes[0] & 0b10000000; - if (negative) { - negate(bytes); - } - return parseInt(toHex(bytes), 16) * (negative ? -1 : 1); - } - toString() { - return String(this.valueOf()); - } -} -function negate(bytes) { - for (let i = 0; i < 8; i++) { - bytes[i] ^= 0xff; - } - for (let i = 7; i > -1; i--) { - bytes[i]++; - if (bytes[i] !== 0) - break; - } -} diff --git a/node_modules/@smithy/eventstream-codec/dist-es/Message.js b/node_modules/@smithy/eventstream-codec/dist-es/Message.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@smithy/eventstream-codec/dist-es/Message.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@smithy/eventstream-codec/dist-es/MessageDecoderStream.js b/node_modules/@smithy/eventstream-codec/dist-es/MessageDecoderStream.js deleted file mode 100644 index f14ade54..00000000 --- a/node_modules/@smithy/eventstream-codec/dist-es/MessageDecoderStream.js +++ /dev/null @@ -1,14 +0,0 @@ -export class MessageDecoderStream { - constructor(options) { - this.options = options; - } - [Symbol.asyncIterator]() { - return this.asyncIterator(); - } - async *asyncIterator() { - for await (const bytes of this.options.inputStream) { - const decoded = this.options.decoder.decode(bytes); - yield decoded; - } - } -} diff --git a/node_modules/@smithy/eventstream-codec/dist-es/MessageEncoderStream.js b/node_modules/@smithy/eventstream-codec/dist-es/MessageEncoderStream.js deleted file mode 100644 index 7d5aa8cd..00000000 --- a/node_modules/@smithy/eventstream-codec/dist-es/MessageEncoderStream.js +++ /dev/null @@ -1,17 +0,0 @@ -export class MessageEncoderStream { - constructor(options) { - this.options = options; - } - [Symbol.asyncIterator]() { - return this.asyncIterator(); - } - async *asyncIterator() { - for await (const msg of this.options.messageStream) { - const encoded = this.options.encoder.encode(msg); - yield encoded; - } - if (this.options.includeEndFrame) { - yield new Uint8Array(0); - } - } -} diff --git a/node_modules/@smithy/eventstream-codec/dist-es/SmithyMessageDecoderStream.js b/node_modules/@smithy/eventstream-codec/dist-es/SmithyMessageDecoderStream.js deleted file mode 100644 index 73b15995..00000000 --- a/node_modules/@smithy/eventstream-codec/dist-es/SmithyMessageDecoderStream.js +++ /dev/null @@ -1,16 +0,0 @@ -export class SmithyMessageDecoderStream { - constructor(options) { - this.options = options; - } - [Symbol.asyncIterator]() { - return this.asyncIterator(); - } - async *asyncIterator() { - for await (const message of this.options.messageStream) { - const deserialized = await this.options.deserializer(message); - if (deserialized === undefined) - continue; - yield deserialized; - } - } -} diff --git a/node_modules/@smithy/eventstream-codec/dist-es/SmithyMessageEncoderStream.js b/node_modules/@smithy/eventstream-codec/dist-es/SmithyMessageEncoderStream.js deleted file mode 100644 index a124026c..00000000 --- a/node_modules/@smithy/eventstream-codec/dist-es/SmithyMessageEncoderStream.js +++ /dev/null @@ -1,14 +0,0 @@ -export class SmithyMessageEncoderStream { - constructor(options) { - this.options = options; - } - [Symbol.asyncIterator]() { - return this.asyncIterator(); - } - async *asyncIterator() { - for await (const chunk of this.options.inputStream) { - const payloadBuf = this.options.serializer(chunk); - yield payloadBuf; - } - } -} diff --git a/node_modules/@smithy/eventstream-codec/dist-es/TestVectors.fixture.js b/node_modules/@smithy/eventstream-codec/dist-es/TestVectors.fixture.js deleted file mode 100644 index 7d09f475..00000000 --- a/node_modules/@smithy/eventstream-codec/dist-es/TestVectors.fixture.js +++ /dev/null @@ -1,690 +0,0 @@ -import { Int64 } from "./Int64"; -export const vectors = { - all_headers: { - expectation: "success", - encoded: Uint8Array.from([ - 0, - 0, - 0, - 204, - 0, - 0, - 0, - 175, - 15, - 174, - 100, - 202, - 10, - 101, - 118, - 101, - 110, - 116, - 45, - 116, - 121, - 112, - 101, - 4, - 0, - 0, - 160, - 12, - 12, - 99, - 111, - 110, - 116, - 101, - 110, - 116, - 45, - 116, - 121, - 112, - 101, - 7, - 0, - 16, - 97, - 112, - 112, - 108, - 105, - 99, - 97, - 116, - 105, - 111, - 110, - 47, - 106, - 115, - 111, - 110, - 10, - 98, - 111, - 111, - 108, - 32, - 102, - 97, - 108, - 115, - 101, - 1, - 9, - 98, - 111, - 111, - 108, - 32, - 116, - 114, - 117, - 101, - 0, - 4, - 98, - 121, - 116, - 101, - 2, - 207, - 8, - 98, - 121, - 116, - 101, - 32, - 98, - 117, - 102, - 6, - 0, - 20, - 73, - 39, - 109, - 32, - 97, - 32, - 108, - 105, - 116, - 116, - 108, - 101, - 32, - 116, - 101, - 97, - 112, - 111, - 116, - 33, - 9, - 116, - 105, - 109, - 101, - 115, - 116, - 97, - 109, - 112, - 8, - 0, - 0, - 0, - 0, - 0, - 132, - 95, - 237, - 5, - 105, - 110, - 116, - 49, - 54, - 3, - 0, - 42, - 5, - 105, - 110, - 116, - 54, - 52, - 5, - 0, - 0, - 0, - 0, - 2, - 135, - 87, - 178, - 4, - 117, - 117, - 105, - 100, - 9, - 1, - 2, - 3, - 4, - 5, - 6, - 7, - 8, - 9, - 10, - 11, - 12, - 13, - 14, - 15, - 16, - 123, - 39, - 102, - 111, - 111, - 39, - 58, - 39, - 98, - 97, - 114, - 39, - 125, - 171, - 165, - 241, - 12, - ]), - decoded: { - headers: { - "event-type": { - type: "integer", - value: 40972, - }, - "content-type": { - type: "string", - value: "application/json", - }, - "bool false": { - type: "boolean", - value: false, - }, - "bool true": { - type: "boolean", - value: true, - }, - byte: { - type: "byte", - value: -49, - }, - "byte buf": { - type: "binary", - value: Uint8Array.from([ - 73, - 39, - 109, - 32, - 97, - 32, - 108, - 105, - 116, - 116, - 108, - 101, - 32, - 116, - 101, - 97, - 112, - 111, - 116, - 33, - ]), - }, - timestamp: { - type: "timestamp", - value: new Date(8675309), - }, - int16: { - type: "short", - value: 42, - }, - int64: { - type: "long", - value: Int64.fromNumber(42424242), - }, - uuid: { - type: "uuid", - value: "01020304-0506-0708-090a-0b0c0d0e0f10", - }, - }, - body: Uint8Array.from([123, 39, 102, 111, 111, 39, 58, 39, 98, 97, 114, 39, 125]), - }, - }, - empty_message: { - expectation: "success", - encoded: Uint8Array.from([0, 0, 0, 16, 0, 0, 0, 0, 5, 194, 72, 235, 125, 152, 200, 255]), - decoded: { - headers: {}, - body: Uint8Array.from([]), - }, - }, - int32_header: { - expectation: "success", - encoded: Uint8Array.from([ - 0, - 0, - 0, - 45, - 0, - 0, - 0, - 16, - 65, - 196, - 36, - 184, - 10, - 101, - 118, - 101, - 110, - 116, - 45, - 116, - 121, - 112, - 101, - 4, - 0, - 0, - 160, - 12, - 123, - 39, - 102, - 111, - 111, - 39, - 58, - 39, - 98, - 97, - 114, - 39, - 125, - 54, - 244, - 128, - 160, - ]), - decoded: { - headers: { - "event-type": { - type: "integer", - value: 40972, - }, - }, - body: Uint8Array.from([123, 39, 102, 111, 111, 39, 58, 39, 98, 97, 114, 39, 125]), - }, - }, - payload_no_headers: { - expectation: "success", - encoded: Uint8Array.from([ - 0, - 0, - 0, - 29, - 0, - 0, - 0, - 0, - 253, - 82, - 140, - 90, - 123, - 39, - 102, - 111, - 111, - 39, - 58, - 39, - 98, - 97, - 114, - 39, - 125, - 195, - 101, - 57, - 54, - ]), - decoded: { - headers: {}, - body: Uint8Array.from([123, 39, 102, 111, 111, 39, 58, 39, 98, 97, 114, 39, 125]), - }, - }, - payload_one_str_header: { - expectation: "success", - encoded: Uint8Array.from([ - 0, - 0, - 0, - 61, - 0, - 0, - 0, - 32, - 7, - 253, - 131, - 150, - 12, - 99, - 111, - 110, - 116, - 101, - 110, - 116, - 45, - 116, - 121, - 112, - 101, - 7, - 0, - 16, - 97, - 112, - 112, - 108, - 105, - 99, - 97, - 116, - 105, - 111, - 110, - 47, - 106, - 115, - 111, - 110, - 123, - 39, - 102, - 111, - 111, - 39, - 58, - 39, - 98, - 97, - 114, - 39, - 125, - 141, - 156, - 8, - 177, - ]), - decoded: { - headers: { - "content-type": { - type: "string", - value: "application/json", - }, - }, - body: Uint8Array.from([123, 39, 102, 111, 111, 39, 58, 39, 98, 97, 114, 39, 125]), - }, - }, - corrupted_headers: { - expectation: "failure", - encoded: Uint8Array.from([ - 0, - 0, - 0, - 61, - 0, - 0, - 0, - 32, - 7, - 253, - 131, - 150, - 12, - 99, - 111, - 110, - 116, - 101, - 110, - 116, - 45, - 116, - 121, - 112, - 101, - 7, - 0, - 16, - 97, - 112, - 112, - 108, - 105, - 99, - 97, - 116, - 105, - 111, - 110, - 47, - 106, - 115, - 111, - 110, - 123, - 97, - 102, - 111, - 111, - 39, - 58, - 39, - 98, - 97, - 114, - 39, - 125, - 141, - 156, - 8, - 177, - ]), - }, - corrupted_header_len: { - expectation: "failure", - encoded: Uint8Array.from([ - 0, - 0, - 0, - 61, - 0, - 0, - 0, - 33, - 7, - 253, - 131, - 150, - 12, - 99, - 111, - 110, - 116, - 101, - 110, - 116, - 45, - 116, - 121, - 112, - 101, - 7, - 0, - 16, - 97, - 112, - 112, - 108, - 105, - 99, - 97, - 116, - 105, - 111, - 110, - 47, - 106, - 115, - 111, - 110, - 123, - 39, - 102, - 111, - 111, - 39, - 58, - 39, - 98, - 97, - 114, - 39, - 125, - 141, - 156, - 8, - 177, - ]), - }, - corrupted_length: { - expectation: "failure", - encoded: Uint8Array.from([ - 0, - 0, - 0, - 62, - 0, - 0, - 0, - 32, - 7, - 253, - 131, - 150, - 12, - 99, - 111, - 110, - 116, - 101, - 110, - 116, - 45, - 116, - 121, - 112, - 101, - 7, - 0, - 16, - 97, - 112, - 112, - 108, - 105, - 99, - 97, - 116, - 105, - 111, - 110, - 47, - 106, - 115, - 111, - 110, - 123, - 39, - 102, - 111, - 111, - 39, - 58, - 39, - 98, - 97, - 114, - 39, - 125, - 141, - 156, - 8, - 177, - ]), - }, - corrupted_payload: { - expectation: "failure", - encoded: Uint8Array.from([ - 0, - 0, - 0, - 29, - 0, - 0, - 0, - 0, - 253, - 82, - 140, - 90, - 91, - 39, - 102, - 111, - 111, - 39, - 58, - 39, - 98, - 97, - 114, - 39, - 125, - 195, - 101, - 57, - 54, - ]), - }, -}; diff --git a/node_modules/@smithy/eventstream-codec/dist-es/index.js b/node_modules/@smithy/eventstream-codec/dist-es/index.js deleted file mode 100644 index 458feabc..00000000 --- a/node_modules/@smithy/eventstream-codec/dist-es/index.js +++ /dev/null @@ -1,8 +0,0 @@ -export * from "./EventStreamCodec"; -export * from "./HeaderMarshaller"; -export * from "./Int64"; -export * from "./Message"; -export * from "./MessageDecoderStream"; -export * from "./MessageEncoderStream"; -export * from "./SmithyMessageDecoderStream"; -export * from "./SmithyMessageEncoderStream"; diff --git a/node_modules/@smithy/eventstream-codec/dist-es/splitMessage.js b/node_modules/@smithy/eventstream-codec/dist-es/splitMessage.js deleted file mode 100644 index 725346bb..00000000 --- a/node_modules/@smithy/eventstream-codec/dist-es/splitMessage.js +++ /dev/null @@ -1,30 +0,0 @@ -import { Crc32 } from "@aws-crypto/crc32"; -const PRELUDE_MEMBER_LENGTH = 4; -const PRELUDE_LENGTH = PRELUDE_MEMBER_LENGTH * 2; -const CHECKSUM_LENGTH = 4; -const MINIMUM_MESSAGE_LENGTH = PRELUDE_LENGTH + CHECKSUM_LENGTH * 2; -export function splitMessage({ byteLength, byteOffset, buffer }) { - if (byteLength < MINIMUM_MESSAGE_LENGTH) { - throw new Error("Provided message too short to accommodate event stream message overhead"); - } - const view = new DataView(buffer, byteOffset, byteLength); - const messageLength = view.getUint32(0, false); - if (byteLength !== messageLength) { - throw new Error("Reported message length does not match received message length"); - } - const headerLength = view.getUint32(PRELUDE_MEMBER_LENGTH, false); - const expectedPreludeChecksum = view.getUint32(PRELUDE_LENGTH, false); - const expectedMessageChecksum = view.getUint32(byteLength - CHECKSUM_LENGTH, false); - const checksummer = new Crc32().update(new Uint8Array(buffer, byteOffset, PRELUDE_LENGTH)); - if (expectedPreludeChecksum !== checksummer.digest()) { - throw new Error(`The prelude checksum specified in the message (${expectedPreludeChecksum}) does not match the calculated CRC32 checksum (${checksummer.digest()})`); - } - checksummer.update(new Uint8Array(buffer, byteOffset + PRELUDE_LENGTH, byteLength - (PRELUDE_LENGTH + CHECKSUM_LENGTH))); - if (expectedMessageChecksum !== checksummer.digest()) { - throw new Error(`The message checksum (${checksummer.digest()}) did not match the expected value of ${expectedMessageChecksum}`); - } - return { - headers: new DataView(buffer, byteOffset + PRELUDE_LENGTH + CHECKSUM_LENGTH, headerLength), - body: new Uint8Array(buffer, byteOffset + PRELUDE_LENGTH + CHECKSUM_LENGTH + headerLength, messageLength - headerLength - (PRELUDE_LENGTH + CHECKSUM_LENGTH + CHECKSUM_LENGTH)), - }; -} diff --git a/node_modules/@smithy/eventstream-codec/dist-es/vectorTypes.fixture.js b/node_modules/@smithy/eventstream-codec/dist-es/vectorTypes.fixture.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@smithy/eventstream-codec/dist-es/vectorTypes.fixture.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@smithy/eventstream-codec/dist-types/EventStreamCodec.d.ts b/node_modules/@smithy/eventstream-codec/dist-types/EventStreamCodec.d.ts deleted file mode 100644 index 647ac134..00000000 --- a/node_modules/@smithy/eventstream-codec/dist-types/EventStreamCodec.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { AvailableMessage, AvailableMessages, Message, MessageDecoder, MessageEncoder, MessageHeaders } from "@smithy/types"; -import { Decoder, Encoder } from "@smithy/types"; -/** - * A Codec that can convert binary-packed event stream messages into - * JavaScript objects and back again into their binary format. - */ -export declare class EventStreamCodec implements MessageEncoder, MessageDecoder { - private readonly headerMarshaller; - private messageBuffer; - private isEndOfStream; - constructor(toUtf8: Encoder, fromUtf8: Decoder); - feed(message: ArrayBufferView): void; - endOfStream(): void; - getMessage(): AvailableMessage; - getAvailableMessages(): AvailableMessages; - /** - * Convert a structured JavaScript object with tagged headers into a binary - * event stream message. - */ - encode({ headers: rawHeaders, body }: Message): Uint8Array; - /** - * Convert a binary event stream message into a JavaScript object with an - * opaque, binary body and tagged, parsed headers. - */ - decode(message: ArrayBufferView): Message; - /** - * Convert a structured JavaScript object with tagged headers into a binary - * event stream message header. - */ - formatHeaders(rawHeaders: MessageHeaders): Uint8Array; -} diff --git a/node_modules/@smithy/eventstream-codec/dist-types/HeaderMarshaller.d.ts b/node_modules/@smithy/eventstream-codec/dist-types/HeaderMarshaller.d.ts deleted file mode 100644 index 481e0d86..00000000 --- a/node_modules/@smithy/eventstream-codec/dist-types/HeaderMarshaller.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { Decoder, Encoder, MessageHeaders } from "@smithy/types"; -/** - * @internal - */ -export declare class HeaderMarshaller { - private readonly toUtf8; - private readonly fromUtf8; - constructor(toUtf8: Encoder, fromUtf8: Decoder); - format(headers: MessageHeaders): Uint8Array; - private formatHeaderValue; - parse(headers: DataView): MessageHeaders; -} diff --git a/node_modules/@smithy/eventstream-codec/dist-types/Int64.d.ts b/node_modules/@smithy/eventstream-codec/dist-types/Int64.d.ts deleted file mode 100644 index 16c6a80c..00000000 --- a/node_modules/@smithy/eventstream-codec/dist-types/Int64.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { Int64 as IInt64 } from "@smithy/types"; -export interface Int64 extends IInt64 { -} -/** - * A lossless representation of a signed, 64-bit integer. Instances of this - * class may be used in arithmetic expressions as if they were numeric - * primitives, but the binary representation will be preserved unchanged as the - * `bytes` property of the object. The bytes should be encoded as big-endian, - * two's complement integers. - */ -export declare class Int64 { - readonly bytes: Uint8Array; - constructor(bytes: Uint8Array); - static fromNumber(number: number): Int64; - /** - * Called implicitly by infix arithmetic operators. - */ - valueOf(): number; - toString(): string; -} diff --git a/node_modules/@smithy/eventstream-codec/dist-types/Message.d.ts b/node_modules/@smithy/eventstream-codec/dist-types/Message.d.ts deleted file mode 100644 index 4cceffc9..00000000 --- a/node_modules/@smithy/eventstream-codec/dist-types/Message.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { Int64 } from "./Int64"; -/** - * An event stream message. The headers and body properties will always be - * defined, with empty headers represented as an object with no keys and an - * empty body represented as a zero-length Uint8Array. - */ -export interface Message { - headers: MessageHeaders; - body: Uint8Array; -} -export type MessageHeaders = Record; -type HeaderValue = { - type: K; - value: V; -}; -export type BooleanHeaderValue = HeaderValue<"boolean", boolean>; -export type ByteHeaderValue = HeaderValue<"byte", number>; -export type ShortHeaderValue = HeaderValue<"short", number>; -export type IntegerHeaderValue = HeaderValue<"integer", number>; -export type LongHeaderValue = HeaderValue<"long", Int64>; -export type BinaryHeaderValue = HeaderValue<"binary", Uint8Array>; -export type StringHeaderValue = HeaderValue<"string", string>; -export type TimestampHeaderValue = HeaderValue<"timestamp", Date>; -export type UuidHeaderValue = HeaderValue<"uuid", string>; -export type MessageHeaderValue = BooleanHeaderValue | ByteHeaderValue | ShortHeaderValue | IntegerHeaderValue | LongHeaderValue | BinaryHeaderValue | StringHeaderValue | TimestampHeaderValue | UuidHeaderValue; -export {}; diff --git a/node_modules/@smithy/eventstream-codec/dist-types/MessageDecoderStream.d.ts b/node_modules/@smithy/eventstream-codec/dist-types/MessageDecoderStream.d.ts deleted file mode 100644 index 4a157875..00000000 --- a/node_modules/@smithy/eventstream-codec/dist-types/MessageDecoderStream.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { Message, MessageDecoder } from "@smithy/types"; -/** - * @internal - */ -export interface MessageDecoderStreamOptions { - inputStream: AsyncIterable; - decoder: MessageDecoder; -} -/** - * @internal - */ -export declare class MessageDecoderStream implements AsyncIterable { - private readonly options; - constructor(options: MessageDecoderStreamOptions); - [Symbol.asyncIterator](): AsyncIterator; - private asyncIterator; -} diff --git a/node_modules/@smithy/eventstream-codec/dist-types/MessageEncoderStream.d.ts b/node_modules/@smithy/eventstream-codec/dist-types/MessageEncoderStream.d.ts deleted file mode 100644 index cdacd3c6..00000000 --- a/node_modules/@smithy/eventstream-codec/dist-types/MessageEncoderStream.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { Message, MessageEncoder } from "@smithy/types"; -/** - * @internal - */ -export interface MessageEncoderStreamOptions { - messageStream: AsyncIterable; - encoder: MessageEncoder; - includeEndFrame?: Boolean; -} -/** - * @internal - */ -export declare class MessageEncoderStream implements AsyncIterable { - private readonly options; - constructor(options: MessageEncoderStreamOptions); - [Symbol.asyncIterator](): AsyncIterator; - private asyncIterator; -} diff --git a/node_modules/@smithy/eventstream-codec/dist-types/SmithyMessageDecoderStream.d.ts b/node_modules/@smithy/eventstream-codec/dist-types/SmithyMessageDecoderStream.d.ts deleted file mode 100644 index 2786506f..00000000 --- a/node_modules/@smithy/eventstream-codec/dist-types/SmithyMessageDecoderStream.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { Message } from "@smithy/types"; -/** - * @internal - */ -export interface SmithyMessageDecoderStreamOptions { - readonly messageStream: AsyncIterable; - readonly deserializer: (input: Message) => Promise; -} -/** - * @internal - */ -export declare class SmithyMessageDecoderStream implements AsyncIterable { - private readonly options; - constructor(options: SmithyMessageDecoderStreamOptions); - [Symbol.asyncIterator](): AsyncIterator; - private asyncIterator; -} diff --git a/node_modules/@smithy/eventstream-codec/dist-types/SmithyMessageEncoderStream.d.ts b/node_modules/@smithy/eventstream-codec/dist-types/SmithyMessageEncoderStream.d.ts deleted file mode 100644 index 6240595f..00000000 --- a/node_modules/@smithy/eventstream-codec/dist-types/SmithyMessageEncoderStream.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { Message } from "@smithy/types"; -/** - * @internal - */ -export interface SmithyMessageEncoderStreamOptions { - inputStream: AsyncIterable; - serializer: (event: T) => Message; -} -/** - * @internal - */ -export declare class SmithyMessageEncoderStream implements AsyncIterable { - private readonly options; - constructor(options: SmithyMessageEncoderStreamOptions); - [Symbol.asyncIterator](): AsyncIterator; - private asyncIterator; -} diff --git a/node_modules/@smithy/eventstream-codec/dist-types/TestVectors.fixture.d.ts b/node_modules/@smithy/eventstream-codec/dist-types/TestVectors.fixture.d.ts deleted file mode 100644 index e1b04e61..00000000 --- a/node_modules/@smithy/eventstream-codec/dist-types/TestVectors.fixture.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { TestVectors } from "./vectorTypes.fixture"; -export declare const vectors: TestVectors; diff --git a/node_modules/@smithy/eventstream-codec/dist-types/index.d.ts b/node_modules/@smithy/eventstream-codec/dist-types/index.d.ts deleted file mode 100644 index 458feabc..00000000 --- a/node_modules/@smithy/eventstream-codec/dist-types/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -export * from "./EventStreamCodec"; -export * from "./HeaderMarshaller"; -export * from "./Int64"; -export * from "./Message"; -export * from "./MessageDecoderStream"; -export * from "./MessageEncoderStream"; -export * from "./SmithyMessageDecoderStream"; -export * from "./SmithyMessageEncoderStream"; diff --git a/node_modules/@smithy/eventstream-codec/dist-types/splitMessage.d.ts b/node_modules/@smithy/eventstream-codec/dist-types/splitMessage.d.ts deleted file mode 100644 index 9aa7585a..00000000 --- a/node_modules/@smithy/eventstream-codec/dist-types/splitMessage.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -/** - * @internal - */ -export interface MessageParts { - headers: DataView; - body: Uint8Array; -} -/** - * @internal - */ -export declare function splitMessage({ byteLength, byteOffset, buffer }: ArrayBufferView): MessageParts; diff --git a/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/EventStreamCodec.d.ts b/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/EventStreamCodec.d.ts deleted file mode 100644 index dd4bd9f8..00000000 --- a/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/EventStreamCodec.d.ts +++ /dev/null @@ -1,31 +0,0 @@ -import { AvailableMessage, AvailableMessages, Message, MessageDecoder, MessageEncoder, MessageHeaders } from "@smithy/types"; -import { Decoder, Encoder } from "@smithy/types"; -/** - * A Codec that can convert binary-packed event stream messages into - * JavaScript objects and back again into their binary format. - */ -export declare class EventStreamCodec implements MessageEncoder, MessageDecoder { - private readonly headerMarshaller; - private messageBuffer; - private isEndOfStream; - constructor(toUtf8: Encoder, fromUtf8: Decoder); - feed(message: ArrayBufferView): void; - endOfStream(): void; - getMessage(): AvailableMessage; - getAvailableMessages(): AvailableMessages; - /** - * Convert a structured JavaScript object with tagged headers into a binary - * event stream message. - */ - encode({ headers: rawHeaders, body }: Message): Uint8Array; - /** - * Convert a binary event stream message into a JavaScript object with an - * opaque, binary body and tagged, parsed headers. - */ - decode(message: ArrayBufferView): Message; - /** - * Convert a structured JavaScript object with tagged headers into a binary - * event stream message header. - */ - formatHeaders(rawHeaders: MessageHeaders): Uint8Array; -} diff --git a/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/HeaderMarshaller.d.ts b/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/HeaderMarshaller.d.ts deleted file mode 100644 index 5ecf2d1b..00000000 --- a/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/HeaderMarshaller.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { Decoder, Encoder, MessageHeaders } from "@smithy/types"; -/** - * @internal - */ -export declare class HeaderMarshaller { - private readonly toUtf8; - private readonly fromUtf8; - constructor(toUtf8: Encoder, fromUtf8: Decoder); - format(headers: MessageHeaders): Uint8Array; - private formatHeaderValue; - parse(headers: DataView): MessageHeaders; -} diff --git a/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/Int64.d.ts b/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/Int64.d.ts deleted file mode 100644 index aebf7e46..00000000 --- a/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/Int64.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { Int64 as IInt64 } from "@smithy/types"; -export interface Int64 extends IInt64 { -} -/** - * A lossless representation of a signed, 64-bit integer. Instances of this - * class may be used in arithmetic expressions as if they were numeric - * primitives, but the binary representation will be preserved unchanged as the - * `bytes` property of the object. The bytes should be encoded as big-endian, - * two's complement integers. - */ -export declare class Int64 { - readonly bytes: Uint8Array; - constructor(bytes: Uint8Array); - static fromNumber(number: number): Int64; - /** - * Called implicitly by infix arithmetic operators. - */ - valueOf(): number; - toString(): string; -} diff --git a/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/Message.d.ts b/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/Message.d.ts deleted file mode 100644 index ef57685a..00000000 --- a/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/Message.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { Int64 } from "./Int64"; -/** - * An event stream message. The headers and body properties will always be - * defined, with empty headers represented as an object with no keys and an - * empty body represented as a zero-length Uint8Array. - */ -export interface Message { - headers: MessageHeaders; - body: Uint8Array; -} -export type MessageHeaders = Record; -type HeaderValue = { - type: K; - value: V; -}; -export type BooleanHeaderValue = HeaderValue<"boolean", boolean>; -export type ByteHeaderValue = HeaderValue<"byte", number>; -export type ShortHeaderValue = HeaderValue<"short", number>; -export type IntegerHeaderValue = HeaderValue<"integer", number>; -export type LongHeaderValue = HeaderValue<"long", Int64>; -export type BinaryHeaderValue = HeaderValue<"binary", Uint8Array>; -export type StringHeaderValue = HeaderValue<"string", string>; -export type TimestampHeaderValue = HeaderValue<"timestamp", Date>; -export type UuidHeaderValue = HeaderValue<"uuid", string>; -export type MessageHeaderValue = BooleanHeaderValue | ByteHeaderValue | ShortHeaderValue | IntegerHeaderValue | LongHeaderValue | BinaryHeaderValue | StringHeaderValue | TimestampHeaderValue | UuidHeaderValue; -export {}; diff --git a/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/MessageDecoderStream.d.ts b/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/MessageDecoderStream.d.ts deleted file mode 100644 index df23a0ea..00000000 --- a/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/MessageDecoderStream.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { Message, MessageDecoder } from "@smithy/types"; -/** - * @internal - */ -export interface MessageDecoderStreamOptions { - inputStream: AsyncIterable; - decoder: MessageDecoder; -} -/** - * @internal - */ -export declare class MessageDecoderStream implements AsyncIterable { - private readonly options; - constructor(options: MessageDecoderStreamOptions); - [Symbol.asyncIterator](): AsyncIterator; - private asyncIterator; -} diff --git a/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/MessageEncoderStream.d.ts b/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/MessageEncoderStream.d.ts deleted file mode 100644 index a88e5470..00000000 --- a/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/MessageEncoderStream.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { Message, MessageEncoder } from "@smithy/types"; -/** - * @internal - */ -export interface MessageEncoderStreamOptions { - messageStream: AsyncIterable; - encoder: MessageEncoder; - includeEndFrame?: Boolean; -} -/** - * @internal - */ -export declare class MessageEncoderStream implements AsyncIterable { - private readonly options; - constructor(options: MessageEncoderStreamOptions); - [Symbol.asyncIterator](): AsyncIterator; - private asyncIterator; -} diff --git a/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/SmithyMessageDecoderStream.d.ts b/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/SmithyMessageDecoderStream.d.ts deleted file mode 100644 index e9c13bae..00000000 --- a/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/SmithyMessageDecoderStream.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { Message } from "@smithy/types"; -/** - * @internal - */ -export interface SmithyMessageDecoderStreamOptions { - readonly messageStream: AsyncIterable; - readonly deserializer: (input: Message) => Promise; -} -/** - * @internal - */ -export declare class SmithyMessageDecoderStream implements AsyncIterable { - private readonly options; - constructor(options: SmithyMessageDecoderStreamOptions); - [Symbol.asyncIterator](): AsyncIterator; - private asyncIterator; -} diff --git a/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/SmithyMessageEncoderStream.d.ts b/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/SmithyMessageEncoderStream.d.ts deleted file mode 100644 index 9d67f428..00000000 --- a/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/SmithyMessageEncoderStream.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { Message } from "@smithy/types"; -/** - * @internal - */ -export interface SmithyMessageEncoderStreamOptions { - inputStream: AsyncIterable; - serializer: (event: T) => Message; -} -/** - * @internal - */ -export declare class SmithyMessageEncoderStream implements AsyncIterable { - private readonly options; - constructor(options: SmithyMessageEncoderStreamOptions); - [Symbol.asyncIterator](): AsyncIterator; - private asyncIterator; -} diff --git a/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/TestVectors.fixture.d.ts b/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/TestVectors.fixture.d.ts deleted file mode 100644 index 9ed09f28..00000000 --- a/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/TestVectors.fixture.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { TestVectors } from "./vectorTypes.fixture"; -export declare const vectors: TestVectors; diff --git a/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/index.d.ts b/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/index.d.ts deleted file mode 100644 index 01e67304..00000000 --- a/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -export * from "./EventStreamCodec"; -export * from "./HeaderMarshaller"; -export * from "./Int64"; -export * from "./Message"; -export * from "./MessageDecoderStream"; -export * from "./MessageEncoderStream"; -export * from "./SmithyMessageDecoderStream"; -export * from "./SmithyMessageEncoderStream"; diff --git a/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/splitMessage.d.ts b/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/splitMessage.d.ts deleted file mode 100644 index 48776ece..00000000 --- a/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/splitMessage.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -/** - * @internal - */ -export interface MessageParts { - headers: DataView; - body: Uint8Array; -} -/** - * @internal - */ -export declare function splitMessage({ byteLength, byteOffset, buffer }: ArrayBufferView): MessageParts; diff --git a/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/vectorTypes.fixture.d.ts b/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/vectorTypes.fixture.d.ts deleted file mode 100644 index 55691949..00000000 --- a/node_modules/@smithy/eventstream-codec/dist-types/ts3.4/vectorTypes.fixture.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { Message } from "./Message"; -export interface NegativeTestVector { - expectation: "failure"; - encoded: Uint8Array; -} -export interface PositiveTestVector { - expectation: "success"; - encoded: Uint8Array; - decoded: Message; -} -export type TestVector = NegativeTestVector | PositiveTestVector; -export type TestVectors = Record; diff --git a/node_modules/@smithy/eventstream-codec/dist-types/vectorTypes.fixture.d.ts b/node_modules/@smithy/eventstream-codec/dist-types/vectorTypes.fixture.d.ts deleted file mode 100644 index ba9ca72e..00000000 --- a/node_modules/@smithy/eventstream-codec/dist-types/vectorTypes.fixture.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { Message } from "./Message"; -export interface NegativeTestVector { - expectation: "failure"; - encoded: Uint8Array; -} -export interface PositiveTestVector { - expectation: "success"; - encoded: Uint8Array; - decoded: Message; -} -export type TestVector = NegativeTestVector | PositiveTestVector; -export type TestVectors = Record; diff --git a/node_modules/@smithy/eventstream-codec/package.json b/node_modules/@smithy/eventstream-codec/package.json deleted file mode 100644 index 7ec41c7c..00000000 --- a/node_modules/@smithy/eventstream-codec/package.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "name": "@smithy/eventstream-codec", - "version": "2.0.14", - "scripts": { - "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", - "build:cjs": "yarn g:tsc -p tsconfig.cjs.json", - "build:es": "yarn g:tsc -p tsconfig.es.json", - "build:types": "yarn g:tsc -p tsconfig.types.json", - "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", - "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz", - "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"", - "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"", - "test": "yarn g:jest --coverage" - }, - "main": "./dist-cjs/index.js", - "module": "./dist-es/index.js", - "types": "./dist-types/index.d.ts", - "author": { - "name": "AWS SDK for JavaScript Team", - "url": "https://aws.amazon.com/javascript/" - }, - "license": "Apache-2.0", - "dependencies": { - "@aws-crypto/crc32": "3.0.0", - "@smithy/types": "^2.6.0", - "@smithy/util-hex-encoding": "^2.0.0", - "tslib": "^2.5.0" - }, - "devDependencies": { - "@smithy/util-utf8": "^2.0.2", - "@tsconfig/recommended": "1.0.1", - "@types/node": "^14.14.31", - "concurrently": "7.0.0", - "downlevel-dts": "0.10.1", - "rimraf": "3.0.2", - "typedoc": "0.23.23" - }, - "typesVersions": { - "<4.0": { - "dist-types/*": [ - "dist-types/ts3.4/*" - ] - } - }, - "files": [ - "dist-*/**" - ], - "homepage": "https://github.com/awslabs/smithy-typescript/tree/main/packages/eventstream-codec", - "repository": { - "type": "git", - "url": "https://github.com/awslabs/smithy-typescript.git", - "directory": "packages/eventstream-codec" - }, - "typedoc": { - "entryPoint": "src/index.ts" - }, - "publishConfig": { - "directory": ".release/package" - } -} \ No newline at end of file diff --git a/node_modules/@smithy/fetch-http-handler/LICENSE b/node_modules/@smithy/fetch-http-handler/LICENSE deleted file mode 100644 index 7b6491ba..00000000 --- a/node_modules/@smithy/fetch-http-handler/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. \ No newline at end of file diff --git a/node_modules/@smithy/fetch-http-handler/README.md b/node_modules/@smithy/fetch-http-handler/README.md deleted file mode 100644 index 05df3aaa..00000000 --- a/node_modules/@smithy/fetch-http-handler/README.md +++ /dev/null @@ -1,4 +0,0 @@ -# @smithy/fetch-http-handler - -[![NPM version](https://img.shields.io/npm/v/@smithy/fetch-http-handler/latest.svg)](https://www.npmjs.com/package/@smithy/fetch-http-handler) -[![NPM downloads](https://img.shields.io/npm/dm/@smithy/fetch-http-handler.svg)](https://www.npmjs.com/package/@smithy/fetch-http-handler) diff --git a/node_modules/@smithy/fetch-http-handler/dist-cjs/fetch-http-handler.js b/node_modules/@smithy/fetch-http-handler/dist-cjs/fetch-http-handler.js deleted file mode 100644 index 1fa40380..00000000 --- a/node_modules/@smithy/fetch-http-handler/dist-cjs/fetch-http-handler.js +++ /dev/null @@ -1,111 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.FetchHttpHandler = exports.keepAliveSupport = void 0; -const protocol_http_1 = require("@smithy/protocol-http"); -const querystring_builder_1 = require("@smithy/querystring-builder"); -const request_timeout_1 = require("./request-timeout"); -exports.keepAliveSupport = { - supported: Boolean(typeof Request !== "undefined" && "keepalive" in new Request("https://[::1]")), -}; -class FetchHttpHandler { - constructor(options) { - if (typeof options === "function") { - this.configProvider = options().then((opts) => opts || {}); - } - else { - this.config = options !== null && options !== void 0 ? options : {}; - this.configProvider = Promise.resolve(this.config); - } - } - destroy() { - } - async handle(request, { abortSignal } = {}) { - var _a, _b; - if (!this.config) { - this.config = await this.configProvider; - } - const requestTimeoutInMs = this.config.requestTimeout; - const keepAlive = this.config.keepAlive === true; - if (abortSignal === null || abortSignal === void 0 ? void 0 : abortSignal.aborted) { - const abortError = new Error("Request aborted"); - abortError.name = "AbortError"; - return Promise.reject(abortError); - } - let path = request.path; - const queryString = (0, querystring_builder_1.buildQueryString)(request.query || {}); - if (queryString) { - path += `?${queryString}`; - } - if (request.fragment) { - path += `#${request.fragment}`; - } - let auth = ""; - if (request.username != null || request.password != null) { - const username = (_a = request.username) !== null && _a !== void 0 ? _a : ""; - const password = (_b = request.password) !== null && _b !== void 0 ? _b : ""; - auth = `${username}:${password}@`; - } - const { port, method } = request; - const url = `${request.protocol}//${auth}${request.hostname}${port ? `:${port}` : ""}${path}`; - const body = method === "GET" || method === "HEAD" ? undefined : request.body; - const requestOptions = { body, headers: new Headers(request.headers), method: method }; - if (typeof AbortController !== "undefined") { - requestOptions["signal"] = abortSignal; - } - if (exports.keepAliveSupport.supported) { - requestOptions["keepalive"] = keepAlive; - } - const fetchRequest = new Request(url, requestOptions); - const raceOfPromises = [ - fetch(fetchRequest).then((response) => { - const fetchHeaders = response.headers; - const transformedHeaders = {}; - for (const pair of fetchHeaders.entries()) { - transformedHeaders[pair[0]] = pair[1]; - } - const hasReadableStream = response.body != undefined; - if (!hasReadableStream) { - return response.blob().then((body) => ({ - response: new protocol_http_1.HttpResponse({ - headers: transformedHeaders, - reason: response.statusText, - statusCode: response.status, - body, - }), - })); - } - return { - response: new protocol_http_1.HttpResponse({ - headers: transformedHeaders, - reason: response.statusText, - statusCode: response.status, - body: response.body, - }), - }; - }), - (0, request_timeout_1.requestTimeout)(requestTimeoutInMs), - ]; - if (abortSignal) { - raceOfPromises.push(new Promise((resolve, reject) => { - abortSignal.onabort = () => { - const abortError = new Error("Request aborted"); - abortError.name = "AbortError"; - reject(abortError); - }; - })); - } - return Promise.race(raceOfPromises); - } - updateHttpClientConfig(key, value) { - this.config = undefined; - this.configProvider = this.configProvider.then((config) => { - config[key] = value; - return config; - }); - } - httpHandlerConfigs() { - var _a; - return (_a = this.config) !== null && _a !== void 0 ? _a : {}; - } -} -exports.FetchHttpHandler = FetchHttpHandler; diff --git a/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js b/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js deleted file mode 100644 index df8ffde6..00000000 --- a/node_modules/@smithy/fetch-http-handler/dist-cjs/index.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./fetch-http-handler"), exports); -tslib_1.__exportStar(require("./stream-collector"), exports); diff --git a/node_modules/@smithy/fetch-http-handler/dist-cjs/request-timeout.js b/node_modules/@smithy/fetch-http-handler/dist-cjs/request-timeout.js deleted file mode 100644 index 4e535c2c..00000000 --- a/node_modules/@smithy/fetch-http-handler/dist-cjs/request-timeout.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.requestTimeout = void 0; -function requestTimeout(timeoutInMs = 0) { - return new Promise((resolve, reject) => { - if (timeoutInMs) { - setTimeout(() => { - const timeoutError = new Error(`Request did not complete within ${timeoutInMs} ms`); - timeoutError.name = "TimeoutError"; - reject(timeoutError); - }, timeoutInMs); - } - }); -} -exports.requestTimeout = requestTimeout; diff --git a/node_modules/@smithy/fetch-http-handler/dist-cjs/stream-collector.js b/node_modules/@smithy/fetch-http-handler/dist-cjs/stream-collector.js deleted file mode 100644 index d9000a9e..00000000 --- a/node_modules/@smithy/fetch-http-handler/dist-cjs/stream-collector.js +++ /dev/null @@ -1,50 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.streamCollector = void 0; -const util_base64_1 = require("@smithy/util-base64"); -const streamCollector = (stream) => { - if (typeof Blob === "function" && stream instanceof Blob) { - return collectBlob(stream); - } - return collectStream(stream); -}; -exports.streamCollector = streamCollector; -async function collectBlob(blob) { - const base64 = await readToBase64(blob); - const arrayBuffer = (0, util_base64_1.fromBase64)(base64); - return new Uint8Array(arrayBuffer); -} -async function collectStream(stream) { - let res = new Uint8Array(0); - const reader = stream.getReader(); - let isDone = false; - while (!isDone) { - const { done, value } = await reader.read(); - if (value) { - const prior = res; - res = new Uint8Array(prior.length + value.length); - res.set(prior); - res.set(value, prior.length); - } - isDone = done; - } - return res; -} -function readToBase64(blob) { - return new Promise((resolve, reject) => { - const reader = new FileReader(); - reader.onloadend = () => { - var _a; - if (reader.readyState !== 2) { - return reject(new Error("Reader aborted too early")); - } - const result = ((_a = reader.result) !== null && _a !== void 0 ? _a : ""); - const commaIndex = result.indexOf(","); - const dataOffset = commaIndex > -1 ? commaIndex + 1 : result.length; - resolve(result.substring(dataOffset)); - }; - reader.onabort = () => reject(new Error("Read aborted")); - reader.onerror = () => reject(reader.error); - reader.readAsDataURL(blob); - }); -} diff --git a/node_modules/@smithy/fetch-http-handler/dist-es/fetch-http-handler.js b/node_modules/@smithy/fetch-http-handler/dist-es/fetch-http-handler.js deleted file mode 100644 index e67e1e41..00000000 --- a/node_modules/@smithy/fetch-http-handler/dist-es/fetch-http-handler.js +++ /dev/null @@ -1,105 +0,0 @@ -import { HttpResponse } from "@smithy/protocol-http"; -import { buildQueryString } from "@smithy/querystring-builder"; -import { requestTimeout } from "./request-timeout"; -export const keepAliveSupport = { - supported: Boolean(typeof Request !== "undefined" && "keepalive" in new Request("https://[::1]")), -}; -export class FetchHttpHandler { - constructor(options) { - if (typeof options === "function") { - this.configProvider = options().then((opts) => opts || {}); - } - else { - this.config = options ?? {}; - this.configProvider = Promise.resolve(this.config); - } - } - destroy() { - } - async handle(request, { abortSignal } = {}) { - if (!this.config) { - this.config = await this.configProvider; - } - const requestTimeoutInMs = this.config.requestTimeout; - const keepAlive = this.config.keepAlive === true; - if (abortSignal?.aborted) { - const abortError = new Error("Request aborted"); - abortError.name = "AbortError"; - return Promise.reject(abortError); - } - let path = request.path; - const queryString = buildQueryString(request.query || {}); - if (queryString) { - path += `?${queryString}`; - } - if (request.fragment) { - path += `#${request.fragment}`; - } - let auth = ""; - if (request.username != null || request.password != null) { - const username = request.username ?? ""; - const password = request.password ?? ""; - auth = `${username}:${password}@`; - } - const { port, method } = request; - const url = `${request.protocol}//${auth}${request.hostname}${port ? `:${port}` : ""}${path}`; - const body = method === "GET" || method === "HEAD" ? undefined : request.body; - const requestOptions = { body, headers: new Headers(request.headers), method: method }; - if (typeof AbortController !== "undefined") { - requestOptions["signal"] = abortSignal; - } - if (keepAliveSupport.supported) { - requestOptions["keepalive"] = keepAlive; - } - const fetchRequest = new Request(url, requestOptions); - const raceOfPromises = [ - fetch(fetchRequest).then((response) => { - const fetchHeaders = response.headers; - const transformedHeaders = {}; - for (const pair of fetchHeaders.entries()) { - transformedHeaders[pair[0]] = pair[1]; - } - const hasReadableStream = response.body != undefined; - if (!hasReadableStream) { - return response.blob().then((body) => ({ - response: new HttpResponse({ - headers: transformedHeaders, - reason: response.statusText, - statusCode: response.status, - body, - }), - })); - } - return { - response: new HttpResponse({ - headers: transformedHeaders, - reason: response.statusText, - statusCode: response.status, - body: response.body, - }), - }; - }), - requestTimeout(requestTimeoutInMs), - ]; - if (abortSignal) { - raceOfPromises.push(new Promise((resolve, reject) => { - abortSignal.onabort = () => { - const abortError = new Error("Request aborted"); - abortError.name = "AbortError"; - reject(abortError); - }; - })); - } - return Promise.race(raceOfPromises); - } - updateHttpClientConfig(key, value) { - this.config = undefined; - this.configProvider = this.configProvider.then((config) => { - config[key] = value; - return config; - }); - } - httpHandlerConfigs() { - return this.config ?? {}; - } -} diff --git a/node_modules/@smithy/fetch-http-handler/dist-es/index.js b/node_modules/@smithy/fetch-http-handler/dist-es/index.js deleted file mode 100644 index a0c61f1b..00000000 --- a/node_modules/@smithy/fetch-http-handler/dist-es/index.js +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./fetch-http-handler"; -export * from "./stream-collector"; diff --git a/node_modules/@smithy/fetch-http-handler/dist-es/request-timeout.js b/node_modules/@smithy/fetch-http-handler/dist-es/request-timeout.js deleted file mode 100644 index 66b09b26..00000000 --- a/node_modules/@smithy/fetch-http-handler/dist-es/request-timeout.js +++ /dev/null @@ -1,11 +0,0 @@ -export function requestTimeout(timeoutInMs = 0) { - return new Promise((resolve, reject) => { - if (timeoutInMs) { - setTimeout(() => { - const timeoutError = new Error(`Request did not complete within ${timeoutInMs} ms`); - timeoutError.name = "TimeoutError"; - reject(timeoutError); - }, timeoutInMs); - } - }); -} diff --git a/node_modules/@smithy/fetch-http-handler/dist-es/stream-collector.js b/node_modules/@smithy/fetch-http-handler/dist-es/stream-collector.js deleted file mode 100644 index a7b4e837..00000000 --- a/node_modules/@smithy/fetch-http-handler/dist-es/stream-collector.js +++ /dev/null @@ -1,45 +0,0 @@ -import { fromBase64 } from "@smithy/util-base64"; -export const streamCollector = (stream) => { - if (typeof Blob === "function" && stream instanceof Blob) { - return collectBlob(stream); - } - return collectStream(stream); -}; -async function collectBlob(blob) { - const base64 = await readToBase64(blob); - const arrayBuffer = fromBase64(base64); - return new Uint8Array(arrayBuffer); -} -async function collectStream(stream) { - let res = new Uint8Array(0); - const reader = stream.getReader(); - let isDone = false; - while (!isDone) { - const { done, value } = await reader.read(); - if (value) { - const prior = res; - res = new Uint8Array(prior.length + value.length); - res.set(prior); - res.set(value, prior.length); - } - isDone = done; - } - return res; -} -function readToBase64(blob) { - return new Promise((resolve, reject) => { - const reader = new FileReader(); - reader.onloadend = () => { - if (reader.readyState !== 2) { - return reject(new Error("Reader aborted too early")); - } - const result = (reader.result ?? ""); - const commaIndex = result.indexOf(","); - const dataOffset = commaIndex > -1 ? commaIndex + 1 : result.length; - resolve(result.substring(dataOffset)); - }; - reader.onabort = () => reject(new Error("Read aborted")); - reader.onerror = () => reject(reader.error); - reader.readAsDataURL(blob); - }); -} diff --git a/node_modules/@smithy/fetch-http-handler/dist-types/fetch-http-handler.d.ts b/node_modules/@smithy/fetch-http-handler/dist-types/fetch-http-handler.d.ts deleted file mode 100644 index 0c4ed5f7..00000000 --- a/node_modules/@smithy/fetch-http-handler/dist-types/fetch-http-handler.d.ts +++ /dev/null @@ -1,47 +0,0 @@ -import { HttpHandler, HttpRequest, HttpResponse } from "@smithy/protocol-http"; -import { HttpHandlerOptions, Provider } from "@smithy/types"; -/** - * Represents the http options that can be passed to a browser http client. - */ -export interface FetchHttpHandlerOptions { - /** - * The number of milliseconds a request can take before being automatically - * terminated. - */ - requestTimeout?: number; - /** - * Whether to allow the request to outlive the page. Default value is false. - * - * There may be limitations to the payload size, number of concurrent requests, - * request duration etc. when using keepalive in browsers. - * - * These may change over time, so look for up to date information about - * these limitations before enabling keepalive. - */ - keepAlive?: boolean; -} -type FetchHttpHandlerConfig = FetchHttpHandlerOptions; -/** - * @internal - * Detection of keepalive support. Can be overridden for testing. - */ -export declare const keepAliveSupport: { - supported: boolean; -}; -/** - * @public - * - * HttpHandler implementation using browsers' `fetch` global function. - */ -export declare class FetchHttpHandler implements HttpHandler { - private config?; - private configProvider; - constructor(options?: FetchHttpHandlerOptions | Provider); - destroy(): void; - handle(request: HttpRequest, { abortSignal }?: HttpHandlerOptions): Promise<{ - response: HttpResponse; - }>; - updateHttpClientConfig(key: keyof FetchHttpHandlerConfig, value: FetchHttpHandlerConfig[typeof key]): void; - httpHandlerConfigs(): FetchHttpHandlerConfig; -} -export {}; diff --git a/node_modules/@smithy/fetch-http-handler/dist-types/index.d.ts b/node_modules/@smithy/fetch-http-handler/dist-types/index.d.ts deleted file mode 100644 index a0c61f1b..00000000 --- a/node_modules/@smithy/fetch-http-handler/dist-types/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./fetch-http-handler"; -export * from "./stream-collector"; diff --git a/node_modules/@smithy/fetch-http-handler/dist-types/request-timeout.d.ts b/node_modules/@smithy/fetch-http-handler/dist-types/request-timeout.d.ts deleted file mode 100644 index 28d784b2..00000000 --- a/node_modules/@smithy/fetch-http-handler/dist-types/request-timeout.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare function requestTimeout(timeoutInMs?: number): Promise; diff --git a/node_modules/@smithy/fetch-http-handler/dist-types/stream-collector.d.ts b/node_modules/@smithy/fetch-http-handler/dist-types/stream-collector.d.ts deleted file mode 100644 index b2ca8122..00000000 --- a/node_modules/@smithy/fetch-http-handler/dist-types/stream-collector.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { StreamCollector } from "@smithy/types"; -export declare const streamCollector: StreamCollector; diff --git a/node_modules/@smithy/fetch-http-handler/dist-types/ts3.4/fetch-http-handler.d.ts b/node_modules/@smithy/fetch-http-handler/dist-types/ts3.4/fetch-http-handler.d.ts deleted file mode 100644 index d91fba22..00000000 --- a/node_modules/@smithy/fetch-http-handler/dist-types/ts3.4/fetch-http-handler.d.ts +++ /dev/null @@ -1,47 +0,0 @@ -import { HttpHandler, HttpRequest, HttpResponse } from "@smithy/protocol-http"; -import { HttpHandlerOptions, Provider } from "@smithy/types"; -/** - * Represents the http options that can be passed to a browser http client. - */ -export interface FetchHttpHandlerOptions { - /** - * The number of milliseconds a request can take before being automatically - * terminated. - */ - requestTimeout?: number; - /** - * Whether to allow the request to outlive the page. Default value is false. - * - * There may be limitations to the payload size, number of concurrent requests, - * request duration etc. when using keepalive in browsers. - * - * These may change over time, so look for up to date information about - * these limitations before enabling keepalive. - */ - keepAlive?: boolean; -} -type FetchHttpHandlerConfig = FetchHttpHandlerOptions; -/** - * @internal - * Detection of keepalive support. Can be overridden for testing. - */ -export declare const keepAliveSupport: { - supported: boolean; -}; -/** - * @public - * - * HttpHandler implementation using browsers' `fetch` global function. - */ -export declare class FetchHttpHandler implements HttpHandler { - private config?; - private configProvider; - constructor(options?: FetchHttpHandlerOptions | Provider); - destroy(): void; - handle(request: HttpRequest, { abortSignal }?: HttpHandlerOptions): Promise<{ - response: HttpResponse; - }>; - updateHttpClientConfig(key: keyof FetchHttpHandlerConfig, value: FetchHttpHandlerConfig[typeof key]): void; - httpHandlerConfigs(): FetchHttpHandlerConfig; -} -export {}; diff --git a/node_modules/@smithy/fetch-http-handler/dist-types/ts3.4/index.d.ts b/node_modules/@smithy/fetch-http-handler/dist-types/ts3.4/index.d.ts deleted file mode 100644 index d30edab2..00000000 --- a/node_modules/@smithy/fetch-http-handler/dist-types/ts3.4/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./fetch-http-handler"; -export * from "./stream-collector"; diff --git a/node_modules/@smithy/fetch-http-handler/dist-types/ts3.4/request-timeout.d.ts b/node_modules/@smithy/fetch-http-handler/dist-types/ts3.4/request-timeout.d.ts deleted file mode 100644 index ca24128d..00000000 --- a/node_modules/@smithy/fetch-http-handler/dist-types/ts3.4/request-timeout.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare function requestTimeout(timeoutInMs?: number): Promise; diff --git a/node_modules/@smithy/fetch-http-handler/dist-types/ts3.4/stream-collector.d.ts b/node_modules/@smithy/fetch-http-handler/dist-types/ts3.4/stream-collector.d.ts deleted file mode 100644 index 82590970..00000000 --- a/node_modules/@smithy/fetch-http-handler/dist-types/ts3.4/stream-collector.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { StreamCollector } from "@smithy/types"; -export declare const streamCollector: StreamCollector; diff --git a/node_modules/@smithy/fetch-http-handler/package.json b/node_modules/@smithy/fetch-http-handler/package.json deleted file mode 100644 index e202e8bd..00000000 --- a/node_modules/@smithy/fetch-http-handler/package.json +++ /dev/null @@ -1,79 +0,0 @@ -{ - "name": "@smithy/fetch-http-handler", - "version": "2.2.7", - "description": "Provides a way to make requests", - "scripts": { - "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", - "build:cjs": "yarn g:tsc -p tsconfig.cjs.json", - "build:es": "yarn g:tsc -p tsconfig.es.json", - "build:types": "yarn g:tsc -p tsconfig.types.json", - "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", - "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz", - "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"", - "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"", - "extract:docs": "api-extractor run --local", - "test": "yarn g:jest --coverage --forceExit && karma start karma.conf.js" - }, - "author": { - "name": "AWS SDK for JavaScript Team", - "url": "https://aws.amazon.com/javascript/" - }, - "license": "Apache-2.0", - "main": "./dist-cjs/index.js", - "module": "./dist-es/index.js", - "types": "./dist-types/index.d.ts", - "dependencies": { - "@smithy/protocol-http": "^3.0.10", - "@smithy/querystring-builder": "^2.0.14", - "@smithy/types": "^2.6.0", - "@smithy/util-base64": "^2.0.1", - "tslib": "^2.5.0" - }, - "devDependencies": { - "@smithy/abort-controller": "^2.0.14", - "@tsconfig/recommended": "1.0.1", - "@types/chai-as-promised": "^7.1.2", - "chai": "^4.2.0", - "chai-as-promised": "^7.1.1", - "concurrently": "7.0.0", - "downlevel-dts": "0.10.1", - "karma": "6.4.0", - "karma-chai": "0.1.0", - "karma-chrome-launcher": "3.1.1", - "karma-coverage": "2.2.0", - "karma-env-preprocessor": "0.1.1", - "karma-firefox-launcher": "2.1.2", - "karma-jasmine": "5.1.0", - "karma-mocha": "2.0.1", - "karma-sourcemap-loader": "0.3.8", - "karma-typescript": "5.5.3", - "karma-webpack": "5.0.0", - "rimraf": "3.0.2", - "typedoc": "0.23.23", - "webpack": "5.76.0", - "webpack-cli": "4.10.0" - }, - "typesVersions": { - "<4.0": { - "dist-types/*": [ - "dist-types/ts3.4/*" - ] - } - }, - "files": [ - "dist-*/**" - ], - "homepage": "https://github.com/awslabs/smithy-typescript/tree/main/packages/fetch-http-handler", - "repository": { - "type": "git", - "url": "https://github.com/awslabs/smithy-typescript.git", - "directory": "packages/fetch-http-handler" - }, - "typedoc": { - "entryPoint": "src/index.ts" - }, - "publishConfig": { - "directory": ".release/package" - } -} \ No newline at end of file diff --git a/node_modules/@smithy/hash-node/LICENSE b/node_modules/@smithy/hash-node/LICENSE deleted file mode 100644 index 7b6491ba..00000000 --- a/node_modules/@smithy/hash-node/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. \ No newline at end of file diff --git a/node_modules/@smithy/hash-node/README.md b/node_modules/@smithy/hash-node/README.md deleted file mode 100644 index a160019e..00000000 --- a/node_modules/@smithy/hash-node/README.md +++ /dev/null @@ -1,10 +0,0 @@ -# @smithy/md5-node - -[![NPM version](https://img.shields.io/npm/v/@smithy/hash-node/latest.svg)](https://www.npmjs.com/package/@smithy/hash-node) -[![NPM downloads](https://img.shields.io/npm/dm/@smithy/hash-node.svg)](https://www.npmjs.com/package/@smithy/hash-node) - -> An internal package - -## Usage - -You probably shouldn't, at least directly. diff --git a/node_modules/@smithy/hash-node/dist-cjs/index.js b/node_modules/@smithy/hash-node/dist-cjs/index.js deleted file mode 100644 index a46bccb7..00000000 --- a/node_modules/@smithy/hash-node/dist-cjs/index.js +++ /dev/null @@ -1,38 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Hash = void 0; -const util_buffer_from_1 = require("@smithy/util-buffer-from"); -const util_utf8_1 = require("@smithy/util-utf8"); -const buffer_1 = require("buffer"); -const crypto_1 = require("crypto"); -class Hash { - constructor(algorithmIdentifier, secret) { - this.algorithmIdentifier = algorithmIdentifier; - this.secret = secret; - this.reset(); - } - update(toHash, encoding) { - this.hash.update((0, util_utf8_1.toUint8Array)(castSourceData(toHash, encoding))); - } - digest() { - return Promise.resolve(this.hash.digest()); - } - reset() { - this.hash = this.secret - ? (0, crypto_1.createHmac)(this.algorithmIdentifier, castSourceData(this.secret)) - : (0, crypto_1.createHash)(this.algorithmIdentifier); - } -} -exports.Hash = Hash; -function castSourceData(toCast, encoding) { - if (buffer_1.Buffer.isBuffer(toCast)) { - return toCast; - } - if (typeof toCast === "string") { - return (0, util_buffer_from_1.fromString)(toCast, encoding); - } - if (ArrayBuffer.isView(toCast)) { - return (0, util_buffer_from_1.fromArrayBuffer)(toCast.buffer, toCast.byteOffset, toCast.byteLength); - } - return (0, util_buffer_from_1.fromArrayBuffer)(toCast); -} diff --git a/node_modules/@smithy/hash-node/dist-es/index.js b/node_modules/@smithy/hash-node/dist-es/index.js deleted file mode 100644 index 718d9c6a..00000000 --- a/node_modules/@smithy/hash-node/dist-es/index.js +++ /dev/null @@ -1,34 +0,0 @@ -import { fromArrayBuffer, fromString } from "@smithy/util-buffer-from"; -import { toUint8Array } from "@smithy/util-utf8"; -import { Buffer } from "buffer"; -import { createHash, createHmac } from "crypto"; -export class Hash { - constructor(algorithmIdentifier, secret) { - this.algorithmIdentifier = algorithmIdentifier; - this.secret = secret; - this.reset(); - } - update(toHash, encoding) { - this.hash.update(toUint8Array(castSourceData(toHash, encoding))); - } - digest() { - return Promise.resolve(this.hash.digest()); - } - reset() { - this.hash = this.secret - ? createHmac(this.algorithmIdentifier, castSourceData(this.secret)) - : createHash(this.algorithmIdentifier); - } -} -function castSourceData(toCast, encoding) { - if (Buffer.isBuffer(toCast)) { - return toCast; - } - if (typeof toCast === "string") { - return fromString(toCast, encoding); - } - if (ArrayBuffer.isView(toCast)) { - return fromArrayBuffer(toCast.buffer, toCast.byteOffset, toCast.byteLength); - } - return fromArrayBuffer(toCast); -} diff --git a/node_modules/@smithy/hash-node/dist-types/index.d.ts b/node_modules/@smithy/hash-node/dist-types/index.d.ts deleted file mode 100644 index 20ed5ed9..00000000 --- a/node_modules/@smithy/hash-node/dist-types/index.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { Checksum, SourceData } from "@smithy/types"; -/** - * @internal - */ -export declare class Hash implements Checksum { - private readonly algorithmIdentifier; - private readonly secret?; - private hash; - constructor(algorithmIdentifier: string, secret?: SourceData); - update(toHash: SourceData, encoding?: "utf8" | "ascii" | "latin1"): void; - digest(): Promise; - reset(): void; -} diff --git a/node_modules/@smithy/hash-node/dist-types/ts3.4/index.d.ts b/node_modules/@smithy/hash-node/dist-types/ts3.4/index.d.ts deleted file mode 100644 index 313ab7e7..00000000 --- a/node_modules/@smithy/hash-node/dist-types/ts3.4/index.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { Checksum, SourceData } from "@smithy/types"; -/** - * @internal - */ -export declare class Hash implements Checksum { - private readonly algorithmIdentifier; - private readonly secret?; - private hash; - constructor(algorithmIdentifier: string, secret?: SourceData); - update(toHash: SourceData, encoding?: "utf8" | "ascii" | "latin1"): void; - digest(): Promise; - reset(): void; -} diff --git a/node_modules/@smithy/hash-node/package.json b/node_modules/@smithy/hash-node/package.json deleted file mode 100644 index e47ec3eb..00000000 --- a/node_modules/@smithy/hash-node/package.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "name": "@smithy/hash-node", - "version": "2.0.16", - "scripts": { - "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", - "build:cjs": "yarn g:tsc -p tsconfig.cjs.json", - "build:es": "yarn g:tsc -p tsconfig.es.json", - "build:types": "yarn g:tsc -p tsconfig.types.json", - "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", - "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz", - "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"", - "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"", - "test": "yarn g:jest" - }, - "main": "./dist-cjs/index.js", - "module": "./dist-es/index.js", - "types": "./dist-types/index.d.ts", - "author": { - "name": "AWS SDK for JavaScript Team", - "url": "https://aws.amazon.com/javascript/" - }, - "license": "Apache-2.0", - "devDependencies": { - "@tsconfig/recommended": "1.0.1", - "@types/node": "^14.14.31", - "concurrently": "7.0.0", - "downlevel-dts": "0.10.1", - "hash-test-vectors": "^1.3.2", - "rimraf": "3.0.2", - "typedoc": "0.23.23" - }, - "dependencies": { - "@smithy/types": "^2.6.0", - "@smithy/util-buffer-from": "^2.0.0", - "@smithy/util-utf8": "^2.0.2", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "typesVersions": { - "<4.0": { - "dist-types/*": [ - "dist-types/ts3.4/*" - ] - } - }, - "files": [ - "dist-*/**" - ], - "homepage": "https://github.com/awslabs/smithy-typescript/tree/main/packages/hash-node", - "repository": { - "type": "git", - "url": "https://github.com/awslabs/smithy-typescript.git", - "directory": "packages/hash-node" - }, - "typedoc": { - "entryPoint": "src/index.ts" - }, - "publishConfig": { - "directory": ".release/package" - } -} \ No newline at end of file diff --git a/node_modules/@smithy/invalid-dependency/LICENSE b/node_modules/@smithy/invalid-dependency/LICENSE deleted file mode 100644 index e907b586..00000000 --- a/node_modules/@smithy/invalid-dependency/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/node_modules/@smithy/invalid-dependency/README.md b/node_modules/@smithy/invalid-dependency/README.md deleted file mode 100644 index 9110465a..00000000 --- a/node_modules/@smithy/invalid-dependency/README.md +++ /dev/null @@ -1,10 +0,0 @@ -# @smithy/invalid-dependency - -[![NPM version](https://img.shields.io/npm/v/@smithy/invalid-dependency/latest.svg)](https://www.npmjs.com/package/@smithy/invalid-dependency) -[![NPM downloads](https://img.shields.io/npm/dm/@smithy/invalid-dependency.svg)](https://www.npmjs.com/package/@smithy/invalid-dependency) - -> An internal package - -## Usage - -You probably shouldn't, at least directly. diff --git a/node_modules/@smithy/invalid-dependency/dist-cjs/index.js b/node_modules/@smithy/invalid-dependency/dist-cjs/index.js deleted file mode 100644 index c760073d..00000000 --- a/node_modules/@smithy/invalid-dependency/dist-cjs/index.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./invalidFunction"), exports); -tslib_1.__exportStar(require("./invalidProvider"), exports); diff --git a/node_modules/@smithy/invalid-dependency/dist-cjs/invalidFunction.js b/node_modules/@smithy/invalid-dependency/dist-cjs/invalidFunction.js deleted file mode 100644 index ccff268c..00000000 --- a/node_modules/@smithy/invalid-dependency/dist-cjs/invalidFunction.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.invalidFunction = void 0; -const invalidFunction = (message) => () => { - throw new Error(message); -}; -exports.invalidFunction = invalidFunction; diff --git a/node_modules/@smithy/invalid-dependency/dist-cjs/invalidProvider.js b/node_modules/@smithy/invalid-dependency/dist-cjs/invalidProvider.js deleted file mode 100644 index bae05e6e..00000000 --- a/node_modules/@smithy/invalid-dependency/dist-cjs/invalidProvider.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.invalidProvider = void 0; -const invalidProvider = (message) => () => Promise.reject(message); -exports.invalidProvider = invalidProvider; diff --git a/node_modules/@smithy/invalid-dependency/dist-es/index.js b/node_modules/@smithy/invalid-dependency/dist-es/index.js deleted file mode 100644 index fa0f1a60..00000000 --- a/node_modules/@smithy/invalid-dependency/dist-es/index.js +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./invalidFunction"; -export * from "./invalidProvider"; diff --git a/node_modules/@smithy/invalid-dependency/dist-es/invalidFunction.js b/node_modules/@smithy/invalid-dependency/dist-es/invalidFunction.js deleted file mode 100644 index 676f9cb0..00000000 --- a/node_modules/@smithy/invalid-dependency/dist-es/invalidFunction.js +++ /dev/null @@ -1,3 +0,0 @@ -export const invalidFunction = (message) => () => { - throw new Error(message); -}; diff --git a/node_modules/@smithy/invalid-dependency/dist-es/invalidProvider.js b/node_modules/@smithy/invalid-dependency/dist-es/invalidProvider.js deleted file mode 100644 index 5305a0bc..00000000 --- a/node_modules/@smithy/invalid-dependency/dist-es/invalidProvider.js +++ /dev/null @@ -1 +0,0 @@ -export const invalidProvider = (message) => () => Promise.reject(message); diff --git a/node_modules/@smithy/invalid-dependency/dist-types/index.d.ts b/node_modules/@smithy/invalid-dependency/dist-types/index.d.ts deleted file mode 100644 index 1c99a568..00000000 --- a/node_modules/@smithy/invalid-dependency/dist-types/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @internal - */ -export * from "./invalidFunction"; -/** - * @internal - */ -export * from "./invalidProvider"; diff --git a/node_modules/@smithy/invalid-dependency/dist-types/invalidFunction.d.ts b/node_modules/@smithy/invalid-dependency/dist-types/invalidFunction.d.ts deleted file mode 100644 index 2118b326..00000000 --- a/node_modules/@smithy/invalid-dependency/dist-types/invalidFunction.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/** - * @internal - */ -export declare const invalidFunction: (message: string) => () => never; diff --git a/node_modules/@smithy/invalid-dependency/dist-types/invalidProvider.d.ts b/node_modules/@smithy/invalid-dependency/dist-types/invalidProvider.d.ts deleted file mode 100644 index 3e9c28cc..00000000 --- a/node_modules/@smithy/invalid-dependency/dist-types/invalidProvider.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { Provider } from "@smithy/types"; -/** - * @internal - */ -export declare const invalidProvider: (message: string) => Provider; diff --git a/node_modules/@smithy/invalid-dependency/dist-types/ts3.4/index.d.ts b/node_modules/@smithy/invalid-dependency/dist-types/ts3.4/index.d.ts deleted file mode 100644 index 6818f1c0..00000000 --- a/node_modules/@smithy/invalid-dependency/dist-types/ts3.4/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @internal - */ -export * from "./invalidFunction"; -/** - * @internal - */ -export * from "./invalidProvider"; diff --git a/node_modules/@smithy/invalid-dependency/dist-types/ts3.4/invalidFunction.d.ts b/node_modules/@smithy/invalid-dependency/dist-types/ts3.4/invalidFunction.d.ts deleted file mode 100644 index b0e8f32b..00000000 --- a/node_modules/@smithy/invalid-dependency/dist-types/ts3.4/invalidFunction.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/** - * @internal - */ -export declare const invalidFunction: (message: string) => () => never; diff --git a/node_modules/@smithy/invalid-dependency/dist-types/ts3.4/invalidProvider.d.ts b/node_modules/@smithy/invalid-dependency/dist-types/ts3.4/invalidProvider.d.ts deleted file mode 100644 index 765ee5aa..00000000 --- a/node_modules/@smithy/invalid-dependency/dist-types/ts3.4/invalidProvider.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { Provider } from "@smithy/types"; -/** - * @internal - */ -export declare const invalidProvider: (message: string) => Provider; diff --git a/node_modules/@smithy/invalid-dependency/package.json b/node_modules/@smithy/invalid-dependency/package.json deleted file mode 100644 index d2cebfb7..00000000 --- a/node_modules/@smithy/invalid-dependency/package.json +++ /dev/null @@ -1,57 +0,0 @@ -{ - "name": "@smithy/invalid-dependency", - "version": "2.0.14", - "scripts": { - "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", - "build:cjs": "yarn g:tsc -p tsconfig.cjs.json", - "build:es": "yarn g:tsc -p tsconfig.es.json", - "build:types": "yarn g:tsc -p tsconfig.types.json", - "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", - "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz", - "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"", - "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"", - "test": "yarn g:jest" - }, - "main": "./dist-cjs/index.js", - "module": "./dist-es/index.js", - "types": "./dist-types/index.d.ts", - "author": { - "name": "AWS SDK for JavaScript Team", - "url": "https://aws.amazon.com/javascript/" - }, - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^2.6.0", - "tslib": "^2.5.0" - }, - "typesVersions": { - "<4.0": { - "dist-types/*": [ - "dist-types/ts3.4/*" - ] - } - }, - "files": [ - "dist-*/**" - ], - "homepage": "https://github.com/awslabs/smithy-typescript/tree/main/packages/invalid-dependency", - "repository": { - "type": "git", - "url": "https://github.com/awslabs/smithy-typescript.git", - "directory": "packages/invalid-dependency" - }, - "devDependencies": { - "@tsconfig/recommended": "1.0.1", - "concurrently": "7.0.0", - "downlevel-dts": "0.10.1", - "rimraf": "3.0.2", - "typedoc": "0.23.23" - }, - "typedoc": { - "entryPoint": "src/index.ts" - }, - "publishConfig": { - "directory": ".release/package" - } -} \ No newline at end of file diff --git a/node_modules/@smithy/is-array-buffer/LICENSE b/node_modules/@smithy/is-array-buffer/LICENSE deleted file mode 100644 index 7b6491ba..00000000 --- a/node_modules/@smithy/is-array-buffer/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. \ No newline at end of file diff --git a/node_modules/@smithy/is-array-buffer/README.md b/node_modules/@smithy/is-array-buffer/README.md deleted file mode 100644 index 31853f24..00000000 --- a/node_modules/@smithy/is-array-buffer/README.md +++ /dev/null @@ -1,10 +0,0 @@ -# @smithy/is-array-buffer - -[![NPM version](https://img.shields.io/npm/v/@smithy/is-array-buffer/latest.svg)](https://www.npmjs.com/package/@smithy/is-array-buffer) -[![NPM downloads](https://img.shields.io/npm/dm/@smithy/is-array-buffer.svg)](https://www.npmjs.com/package/@smithy/is-array-buffer) - -> An internal package - -## Usage - -You probably shouldn't, at least directly. diff --git a/node_modules/@smithy/is-array-buffer/dist-cjs/index.js b/node_modules/@smithy/is-array-buffer/dist-cjs/index.js deleted file mode 100644 index 4c449a84..00000000 --- a/node_modules/@smithy/is-array-buffer/dist-cjs/index.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isArrayBuffer = void 0; -const isArrayBuffer = (arg) => (typeof ArrayBuffer === "function" && arg instanceof ArrayBuffer) || - Object.prototype.toString.call(arg) === "[object ArrayBuffer]"; -exports.isArrayBuffer = isArrayBuffer; diff --git a/node_modules/@smithy/is-array-buffer/dist-es/index.js b/node_modules/@smithy/is-array-buffer/dist-es/index.js deleted file mode 100644 index 8096cca3..00000000 --- a/node_modules/@smithy/is-array-buffer/dist-es/index.js +++ /dev/null @@ -1,2 +0,0 @@ -export const isArrayBuffer = (arg) => (typeof ArrayBuffer === "function" && arg instanceof ArrayBuffer) || - Object.prototype.toString.call(arg) === "[object ArrayBuffer]"; diff --git a/node_modules/@smithy/is-array-buffer/dist-types/index.d.ts b/node_modules/@smithy/is-array-buffer/dist-types/index.d.ts deleted file mode 100644 index 64f452e7..00000000 --- a/node_modules/@smithy/is-array-buffer/dist-types/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/** - * @internal - */ -export declare const isArrayBuffer: (arg: any) => arg is ArrayBuffer; diff --git a/node_modules/@smithy/is-array-buffer/dist-types/ts3.4/index.d.ts b/node_modules/@smithy/is-array-buffer/dist-types/ts3.4/index.d.ts deleted file mode 100644 index ca8fd6bd..00000000 --- a/node_modules/@smithy/is-array-buffer/dist-types/ts3.4/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/** - * @internal - */ -export declare const isArrayBuffer: (arg: any) => arg is ArrayBuffer; diff --git a/node_modules/@smithy/is-array-buffer/package.json b/node_modules/@smithy/is-array-buffer/package.json deleted file mode 100644 index 7e3ac1d6..00000000 --- a/node_modules/@smithy/is-array-buffer/package.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "name": "@smithy/is-array-buffer", - "version": "2.0.0", - "description": "Provides a function for detecting if an argument is an ArrayBuffer", - "scripts": { - "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", - "build:cjs": "tsc -p tsconfig.cjs.json", - "build:es": "tsc -p tsconfig.es.json", - "build:types": "tsc -p tsconfig.types.json", - "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", - "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz", - "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"", - "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"", - "test": "jest" - }, - "author": { - "name": "AWS SDK for JavaScript Team", - "url": "https://aws.amazon.com/javascript/" - }, - "license": "Apache-2.0", - "main": "./dist-cjs/index.js", - "module": "./dist-es/index.js", - "types": "./dist-types/index.d.ts", - "dependencies": { - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "typesVersions": { - "<4.0": { - "dist-types/*": [ - "dist-types/ts3.4/*" - ] - } - }, - "files": [ - "dist-*/**" - ], - "homepage": "https://github.com/awslabs/smithy-typescript/tree/main/packages/is-array-buffer", - "repository": { - "type": "git", - "url": "https://github.com/awslabs/smithy-typescript.git", - "directory": "packages/is-array-buffer" - }, - "devDependencies": { - "@tsconfig/recommended": "1.0.1", - "concurrently": "7.0.0", - "downlevel-dts": "0.10.1", - "jest": "28.1.1", - "rimraf": "3.0.2", - "typedoc": "0.23.23", - "typescript": "~4.9.5" - }, - "typedoc": { - "entryPoint": "src/index.ts" - }, - "publishConfig": { - "directory": ".release/package" - } -} \ No newline at end of file diff --git a/node_modules/@smithy/middleware-content-length/LICENSE b/node_modules/@smithy/middleware-content-length/LICENSE deleted file mode 100644 index 7b6491ba..00000000 --- a/node_modules/@smithy/middleware-content-length/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. \ No newline at end of file diff --git a/node_modules/@smithy/middleware-content-length/README.md b/node_modules/@smithy/middleware-content-length/README.md deleted file mode 100644 index 2d40d92a..00000000 --- a/node_modules/@smithy/middleware-content-length/README.md +++ /dev/null @@ -1,4 +0,0 @@ -# @smithy/middleware-content-length - -[![NPM version](https://img.shields.io/npm/v/@smithy/middleware-content-length/latest.svg)](https://www.npmjs.com/package/@smithy/middleware-content-length) -[![NPM downloads](https://img.shields.io/npm/dm/@smithy/middleware-content-length.svg)](https://www.npmjs.com/package/@smithy/middleware-content-length) diff --git a/node_modules/@smithy/middleware-content-length/dist-cjs/index.js b/node_modules/@smithy/middleware-content-length/dist-cjs/index.js deleted file mode 100644 index 14273319..00000000 --- a/node_modules/@smithy/middleware-content-length/dist-cjs/index.js +++ /dev/null @@ -1,44 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getContentLengthPlugin = exports.contentLengthMiddlewareOptions = exports.contentLengthMiddleware = void 0; -const protocol_http_1 = require("@smithy/protocol-http"); -const CONTENT_LENGTH_HEADER = "content-length"; -function contentLengthMiddleware(bodyLengthChecker) { - return (next) => async (args) => { - const request = args.request; - if (protocol_http_1.HttpRequest.isInstance(request)) { - const { body, headers } = request; - if (body && - Object.keys(headers) - .map((str) => str.toLowerCase()) - .indexOf(CONTENT_LENGTH_HEADER) === -1) { - try { - const length = bodyLengthChecker(body); - request.headers = { - ...request.headers, - [CONTENT_LENGTH_HEADER]: String(length), - }; - } - catch (error) { - } - } - } - return next({ - ...args, - request, - }); - }; -} -exports.contentLengthMiddleware = contentLengthMiddleware; -exports.contentLengthMiddlewareOptions = { - step: "build", - tags: ["SET_CONTENT_LENGTH", "CONTENT_LENGTH"], - name: "contentLengthMiddleware", - override: true, -}; -const getContentLengthPlugin = (options) => ({ - applyToStack: (clientStack) => { - clientStack.add(contentLengthMiddleware(options.bodyLengthChecker), exports.contentLengthMiddlewareOptions); - }, -}); -exports.getContentLengthPlugin = getContentLengthPlugin; diff --git a/node_modules/@smithy/middleware-content-length/dist-es/index.js b/node_modules/@smithy/middleware-content-length/dist-es/index.js deleted file mode 100644 index fa18e710..00000000 --- a/node_modules/@smithy/middleware-content-length/dist-es/index.js +++ /dev/null @@ -1,39 +0,0 @@ -import { HttpRequest } from "@smithy/protocol-http"; -const CONTENT_LENGTH_HEADER = "content-length"; -export function contentLengthMiddleware(bodyLengthChecker) { - return (next) => async (args) => { - const request = args.request; - if (HttpRequest.isInstance(request)) { - const { body, headers } = request; - if (body && - Object.keys(headers) - .map((str) => str.toLowerCase()) - .indexOf(CONTENT_LENGTH_HEADER) === -1) { - try { - const length = bodyLengthChecker(body); - request.headers = { - ...request.headers, - [CONTENT_LENGTH_HEADER]: String(length), - }; - } - catch (error) { - } - } - } - return next({ - ...args, - request, - }); - }; -} -export const contentLengthMiddlewareOptions = { - step: "build", - tags: ["SET_CONTENT_LENGTH", "CONTENT_LENGTH"], - name: "contentLengthMiddleware", - override: true, -}; -export const getContentLengthPlugin = (options) => ({ - applyToStack: (clientStack) => { - clientStack.add(contentLengthMiddleware(options.bodyLengthChecker), contentLengthMiddlewareOptions); - }, -}); diff --git a/node_modules/@smithy/middleware-content-length/dist-types/index.d.ts b/node_modules/@smithy/middleware-content-length/dist-types/index.d.ts deleted file mode 100644 index 91a7000a..00000000 --- a/node_modules/@smithy/middleware-content-length/dist-types/index.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { BodyLengthCalculator, BuildHandlerOptions, BuildMiddleware, Pluggable } from "@smithy/types"; -export declare function contentLengthMiddleware(bodyLengthChecker: BodyLengthCalculator): BuildMiddleware; -export declare const contentLengthMiddlewareOptions: BuildHandlerOptions; -export declare const getContentLengthPlugin: (options: { - bodyLengthChecker: BodyLengthCalculator; -}) => Pluggable; diff --git a/node_modules/@smithy/middleware-content-length/dist-types/ts3.4/index.d.ts b/node_modules/@smithy/middleware-content-length/dist-types/ts3.4/index.d.ts deleted file mode 100644 index 10e1e18d..00000000 --- a/node_modules/@smithy/middleware-content-length/dist-types/ts3.4/index.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { BodyLengthCalculator, BuildHandlerOptions, BuildMiddleware, Pluggable } from "@smithy/types"; -export declare function contentLengthMiddleware(bodyLengthChecker: BodyLengthCalculator): BuildMiddleware; -export declare const contentLengthMiddlewareOptions: BuildHandlerOptions; -export declare const getContentLengthPlugin: (options: { - bodyLengthChecker: BodyLengthCalculator; -}) => Pluggable; diff --git a/node_modules/@smithy/middleware-content-length/package.json b/node_modules/@smithy/middleware-content-length/package.json deleted file mode 100644 index 8f2478e9..00000000 --- a/node_modules/@smithy/middleware-content-length/package.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "name": "@smithy/middleware-content-length", - "version": "2.0.16", - "scripts": { - "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", - "build:cjs": "yarn g:tsc -p tsconfig.cjs.json", - "build:es": "yarn g:tsc -p tsconfig.es.json", - "build:types": "yarn g:tsc -p tsconfig.types.json", - "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", - "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz", - "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"", - "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"", - "test": "exit 0", - "test:integration": "yarn g:jest --config jest.config.integ.js" - }, - "main": "./dist-cjs/index.js", - "module": "./dist-es/index.js", - "types": "./dist-types/index.d.ts", - "author": { - "name": "AWS SDK for JavaScript Team", - "url": "https://aws.amazon.com/javascript/" - }, - "license": "Apache-2.0", - "dependencies": { - "@smithy/protocol-http": "^3.0.10", - "@smithy/types": "^2.6.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "typesVersions": { - "<4.0": { - "dist-types/*": [ - "dist-types/ts3.4/*" - ] - } - }, - "files": [ - "dist-*/**" - ], - "homepage": "https://github.com/awslabs/smithy-typescript/tree/main/packages/middleware-content-length", - "repository": { - "type": "git", - "url": "https://github.com/awslabs/smithy-typescript.git", - "directory": "packages/middleware-content-length" - }, - "devDependencies": { - "@smithy/util-test": "^0.1.10", - "@tsconfig/recommended": "1.0.1", - "concurrently": "7.0.0", - "downlevel-dts": "0.10.1", - "rimraf": "3.0.2", - "typedoc": "0.23.23" - }, - "typedoc": { - "entryPoint": "src/index.ts" - }, - "publishConfig": { - "directory": ".release/package" - } -} \ No newline at end of file diff --git a/node_modules/@smithy/middleware-endpoint/LICENSE b/node_modules/@smithy/middleware-endpoint/LICENSE deleted file mode 100644 index 7b6491ba..00000000 --- a/node_modules/@smithy/middleware-endpoint/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. \ No newline at end of file diff --git a/node_modules/@smithy/middleware-endpoint/README.md b/node_modules/@smithy/middleware-endpoint/README.md deleted file mode 100644 index e03cbb28..00000000 --- a/node_modules/@smithy/middleware-endpoint/README.md +++ /dev/null @@ -1,10 +0,0 @@ -# @smithy/middleware-endpoint - -[![NPM version](https://img.shields.io/npm/v/@smithy/middleware-endpoint/latest.svg)](https://www.npmjs.com/package/@smithy/middleware-endpoint) -[![NPM downloads](https://img.shields.io/npm/dm/@smithy/middleware-endpoint.svg)](https://www.npmjs.com/package/@smithy/middleware-endpoint) - -> An internal package - -## Usage - -You probably shouldn't, at least directly. diff --git a/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/createConfigValueProvider.js b/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/createConfigValueProvider.js deleted file mode 100644 index 6f0f137d..00000000 --- a/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/createConfigValueProvider.js +++ /dev/null @@ -1,30 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createConfigValueProvider = void 0; -const createConfigValueProvider = (configKey, canonicalEndpointParamKey, config) => { - const configProvider = async () => { - var _a; - const configValue = (_a = config[configKey]) !== null && _a !== void 0 ? _a : config[canonicalEndpointParamKey]; - if (typeof configValue === "function") { - return configValue(); - } - return configValue; - }; - if (configKey === "endpoint" || canonicalEndpointParamKey === "endpoint") { - return async () => { - const endpoint = await configProvider(); - if (endpoint && typeof endpoint === "object") { - if ("url" in endpoint) { - return endpoint.url.href; - } - if ("hostname" in endpoint) { - const { protocol, hostname, port, path } = endpoint; - return `${protocol}//${hostname}${port ? ":" + port : ""}${path}`; - } - } - return endpoint; - }; - } - return configProvider; -}; -exports.createConfigValueProvider = createConfigValueProvider; diff --git a/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointFromConfig.browser.js b/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointFromConfig.browser.js deleted file mode 100644 index 9b578a7a..00000000 --- a/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointFromConfig.browser.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getEndpointFromConfig = void 0; -const getEndpointFromConfig = async (serviceId) => undefined; -exports.getEndpointFromConfig = getEndpointFromConfig; diff --git a/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointFromConfig.js b/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointFromConfig.js deleted file mode 100644 index c82c9ac0..00000000 --- a/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointFromConfig.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getEndpointFromConfig = void 0; -const node_config_provider_1 = require("@smithy/node-config-provider"); -const getEndpointUrlConfig_1 = require("./getEndpointUrlConfig"); -const getEndpointFromConfig = async (serviceId) => (0, node_config_provider_1.loadConfig)((0, getEndpointUrlConfig_1.getEndpointUrlConfig)(serviceId))(); -exports.getEndpointFromConfig = getEndpointFromConfig; diff --git a/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointFromInstructions.js b/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointFromInstructions.js deleted file mode 100644 index 81b33f23..00000000 --- a/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointFromInstructions.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.resolveParams = exports.getEndpointFromInstructions = void 0; -const service_customizations_1 = require("../service-customizations"); -const createConfigValueProvider_1 = require("./createConfigValueProvider"); -const getEndpointFromConfig_1 = require("./getEndpointFromConfig"); -const toEndpointV1_1 = require("./toEndpointV1"); -const getEndpointFromInstructions = async (commandInput, instructionsSupplier, clientConfig, context) => { - if (!clientConfig.endpoint) { - const endpointFromConfig = await (0, getEndpointFromConfig_1.getEndpointFromConfig)(clientConfig.serviceId || ""); - if (endpointFromConfig) { - clientConfig.endpoint = () => Promise.resolve((0, toEndpointV1_1.toEndpointV1)(endpointFromConfig)); - } - } - const endpointParams = await (0, exports.resolveParams)(commandInput, instructionsSupplier, clientConfig); - if (typeof clientConfig.endpointProvider !== "function") { - throw new Error("config.endpointProvider is not set."); - } - const endpoint = clientConfig.endpointProvider(endpointParams, context); - return endpoint; -}; -exports.getEndpointFromInstructions = getEndpointFromInstructions; -const resolveParams = async (commandInput, instructionsSupplier, clientConfig) => { - var _a; - const endpointParams = {}; - const instructions = ((_a = instructionsSupplier === null || instructionsSupplier === void 0 ? void 0 : instructionsSupplier.getEndpointParameterInstructions) === null || _a === void 0 ? void 0 : _a.call(instructionsSupplier)) || {}; - for (const [name, instruction] of Object.entries(instructions)) { - switch (instruction.type) { - case "staticContextParams": - endpointParams[name] = instruction.value; - break; - case "contextParams": - endpointParams[name] = commandInput[instruction.name]; - break; - case "clientContextParams": - case "builtInParams": - endpointParams[name] = await (0, createConfigValueProvider_1.createConfigValueProvider)(instruction.name, name, clientConfig)(); - break; - default: - throw new Error("Unrecognized endpoint parameter instruction: " + JSON.stringify(instruction)); - } - } - if (Object.keys(instructions).length === 0) { - Object.assign(endpointParams, clientConfig); - } - if (String(clientConfig.serviceId).toLowerCase() === "s3") { - await (0, service_customizations_1.resolveParamsForS3)(endpointParams); - } - return endpointParams; -}; -exports.resolveParams = resolveParams; diff --git a/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointUrlConfig.js b/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointUrlConfig.js deleted file mode 100644 index fe5c010a..00000000 --- a/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/getEndpointUrlConfig.js +++ /dev/null @@ -1,35 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getEndpointUrlConfig = void 0; -const shared_ini_file_loader_1 = require("@smithy/shared-ini-file-loader"); -const ENV_ENDPOINT_URL = "AWS_ENDPOINT_URL"; -const CONFIG_ENDPOINT_URL = "endpoint_url"; -const getEndpointUrlConfig = (serviceId) => ({ - environmentVariableSelector: (env) => { - const serviceSuffixParts = serviceId.split(" ").map((w) => w.toUpperCase()); - const serviceEndpointUrl = env[[ENV_ENDPOINT_URL, ...serviceSuffixParts].join("_")]; - if (serviceEndpointUrl) - return serviceEndpointUrl; - const endpointUrl = env[ENV_ENDPOINT_URL]; - if (endpointUrl) - return endpointUrl; - return undefined; - }, - configFileSelector: (profile, config) => { - if (config && profile.services) { - const servicesSection = config[["services", profile.services].join(shared_ini_file_loader_1.CONFIG_PREFIX_SEPARATOR)]; - if (servicesSection) { - const servicePrefixParts = serviceId.split(" ").map((w) => w.toLowerCase()); - const endpointUrl = servicesSection[[servicePrefixParts.join("_"), CONFIG_ENDPOINT_URL].join(shared_ini_file_loader_1.CONFIG_PREFIX_SEPARATOR)]; - if (endpointUrl) - return endpointUrl; - } - } - const endpointUrl = profile[CONFIG_ENDPOINT_URL]; - if (endpointUrl) - return endpointUrl; - return undefined; - }, - default: undefined, -}); -exports.getEndpointUrlConfig = getEndpointUrlConfig; diff --git a/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/index.js b/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/index.js deleted file mode 100644 index 59729092..00000000 --- a/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/index.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./getEndpointFromInstructions"), exports); -tslib_1.__exportStar(require("./toEndpointV1"), exports); diff --git a/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/toEndpointV1.js b/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/toEndpointV1.js deleted file mode 100644 index e9efda44..00000000 --- a/node_modules/@smithy/middleware-endpoint/dist-cjs/adaptors/toEndpointV1.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.toEndpointV1 = void 0; -const url_parser_1 = require("@smithy/url-parser"); -const toEndpointV1 = (endpoint) => { - if (typeof endpoint === "object") { - if ("url" in endpoint) { - return (0, url_parser_1.parseUrl)(endpoint.url); - } - return endpoint; - } - return (0, url_parser_1.parseUrl)(endpoint); -}; -exports.toEndpointV1 = toEndpointV1; diff --git a/node_modules/@smithy/middleware-endpoint/dist-cjs/endpointMiddleware.js b/node_modules/@smithy/middleware-endpoint/dist-cjs/endpointMiddleware.js deleted file mode 100644 index 76555c08..00000000 --- a/node_modules/@smithy/middleware-endpoint/dist-cjs/endpointMiddleware.js +++ /dev/null @@ -1,37 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.endpointMiddleware = void 0; -const util_middleware_1 = require("@smithy/util-middleware"); -const getEndpointFromInstructions_1 = require("./adaptors/getEndpointFromInstructions"); -const endpointMiddleware = ({ config, instructions, }) => { - return (next, context) => async (args) => { - var _a, _b, _c; - const endpoint = await (0, getEndpointFromInstructions_1.getEndpointFromInstructions)(args.input, { - getEndpointParameterInstructions() { - return instructions; - }, - }, { ...config }, context); - context.endpointV2 = endpoint; - context.authSchemes = (_a = endpoint.properties) === null || _a === void 0 ? void 0 : _a.authSchemes; - const authScheme = (_b = context.authSchemes) === null || _b === void 0 ? void 0 : _b[0]; - if (authScheme) { - context["signing_region"] = authScheme.signingRegion; - context["signing_service"] = authScheme.signingName; - const smithyContext = (0, util_middleware_1.getSmithyContext)(context); - const httpAuthOption = (_c = smithyContext === null || smithyContext === void 0 ? void 0 : smithyContext.selectedHttpAuthScheme) === null || _c === void 0 ? void 0 : _c.httpAuthOption; - if (httpAuthOption) { - httpAuthOption.signingProperties = Object.assign(httpAuthOption.signingProperties || {}, { - signing_region: authScheme.signingRegion, - signingRegion: authScheme.signingRegion, - signing_service: authScheme.signingName, - signingName: authScheme.signingName, - signingRegionSet: authScheme.signingRegionSet, - }, authScheme.properties); - } - } - return next({ - ...args, - }); - }; -}; -exports.endpointMiddleware = endpointMiddleware; diff --git a/node_modules/@smithy/middleware-endpoint/dist-cjs/getEndpointPlugin.js b/node_modules/@smithy/middleware-endpoint/dist-cjs/getEndpointPlugin.js deleted file mode 100644 index 94ab4688..00000000 --- a/node_modules/@smithy/middleware-endpoint/dist-cjs/getEndpointPlugin.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getEndpointPlugin = exports.endpointMiddlewareOptions = void 0; -const middleware_serde_1 = require("@smithy/middleware-serde"); -const endpointMiddleware_1 = require("./endpointMiddleware"); -exports.endpointMiddlewareOptions = { - step: "serialize", - tags: ["ENDPOINT_PARAMETERS", "ENDPOINT_V2", "ENDPOINT"], - name: "endpointV2Middleware", - override: true, - relation: "before", - toMiddleware: middleware_serde_1.serializerMiddlewareOption.name, -}; -const getEndpointPlugin = (config, instructions) => ({ - applyToStack: (clientStack) => { - clientStack.addRelativeTo((0, endpointMiddleware_1.endpointMiddleware)({ - config, - instructions, - }), exports.endpointMiddlewareOptions); - }, -}); -exports.getEndpointPlugin = getEndpointPlugin; diff --git a/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js b/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js deleted file mode 100644 index 3ef2a877..00000000 --- a/node_modules/@smithy/middleware-endpoint/dist-cjs/index.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./adaptors"), exports); -tslib_1.__exportStar(require("./endpointMiddleware"), exports); -tslib_1.__exportStar(require("./getEndpointPlugin"), exports); -tslib_1.__exportStar(require("./resolveEndpointConfig"), exports); -tslib_1.__exportStar(require("./types"), exports); diff --git a/node_modules/@smithy/middleware-endpoint/dist-cjs/resolveEndpointConfig.js b/node_modules/@smithy/middleware-endpoint/dist-cjs/resolveEndpointConfig.js deleted file mode 100644 index 061ddc6b..00000000 --- a/node_modules/@smithy/middleware-endpoint/dist-cjs/resolveEndpointConfig.js +++ /dev/null @@ -1,21 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.resolveEndpointConfig = void 0; -const util_middleware_1 = require("@smithy/util-middleware"); -const toEndpointV1_1 = require("./adaptors/toEndpointV1"); -const resolveEndpointConfig = (input) => { - var _a, _b, _c; - const tls = (_a = input.tls) !== null && _a !== void 0 ? _a : true; - const { endpoint } = input; - const customEndpointProvider = endpoint != null ? async () => (0, toEndpointV1_1.toEndpointV1)(await (0, util_middleware_1.normalizeProvider)(endpoint)()) : undefined; - const isCustomEndpoint = !!endpoint; - return { - ...input, - endpoint: customEndpointProvider, - tls, - isCustomEndpoint, - useDualstackEndpoint: (0, util_middleware_1.normalizeProvider)((_b = input.useDualstackEndpoint) !== null && _b !== void 0 ? _b : false), - useFipsEndpoint: (0, util_middleware_1.normalizeProvider)((_c = input.useFipsEndpoint) !== null && _c !== void 0 ? _c : false), - }; -}; -exports.resolveEndpointConfig = resolveEndpointConfig; diff --git a/node_modules/@smithy/middleware-endpoint/dist-cjs/service-customizations/index.js b/node_modules/@smithy/middleware-endpoint/dist-cjs/service-customizations/index.js deleted file mode 100644 index 3bb76407..00000000 --- a/node_modules/@smithy/middleware-endpoint/dist-cjs/service-customizations/index.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./s3"), exports); diff --git a/node_modules/@smithy/middleware-endpoint/dist-cjs/service-customizations/s3.js b/node_modules/@smithy/middleware-endpoint/dist-cjs/service-customizations/s3.js deleted file mode 100644 index 9ec0a184..00000000 --- a/node_modules/@smithy/middleware-endpoint/dist-cjs/service-customizations/s3.js +++ /dev/null @@ -1,43 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isArnBucketName = exports.isDnsCompatibleBucketName = exports.S3_HOSTNAME_PATTERN = exports.DOT_PATTERN = exports.resolveParamsForS3 = void 0; -const resolveParamsForS3 = async (endpointParams) => { - const bucket = (endpointParams === null || endpointParams === void 0 ? void 0 : endpointParams.Bucket) || ""; - if (typeof endpointParams.Bucket === "string") { - endpointParams.Bucket = bucket.replace(/#/g, encodeURIComponent("#")).replace(/\?/g, encodeURIComponent("?")); - } - if ((0, exports.isArnBucketName)(bucket)) { - if (endpointParams.ForcePathStyle === true) { - throw new Error("Path-style addressing cannot be used with ARN buckets"); - } - } - else if (!(0, exports.isDnsCompatibleBucketName)(bucket) || - (bucket.indexOf(".") !== -1 && !String(endpointParams.Endpoint).startsWith("http:")) || - bucket.toLowerCase() !== bucket || - bucket.length < 3) { - endpointParams.ForcePathStyle = true; - } - if (endpointParams.DisableMultiRegionAccessPoints) { - endpointParams.disableMultiRegionAccessPoints = true; - endpointParams.DisableMRAP = true; - } - return endpointParams; -}; -exports.resolveParamsForS3 = resolveParamsForS3; -const DOMAIN_PATTERN = /^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/; -const IP_ADDRESS_PATTERN = /(\d+\.){3}\d+/; -const DOTS_PATTERN = /\.\./; -exports.DOT_PATTERN = /\./; -exports.S3_HOSTNAME_PATTERN = /^(.+\.)?s3(-fips)?(\.dualstack)?[.-]([a-z0-9-]+)\./; -const isDnsCompatibleBucketName = (bucketName) => DOMAIN_PATTERN.test(bucketName) && !IP_ADDRESS_PATTERN.test(bucketName) && !DOTS_PATTERN.test(bucketName); -exports.isDnsCompatibleBucketName = isDnsCompatibleBucketName; -const isArnBucketName = (bucketName) => { - const [arn, partition, service, region, account, typeOrId] = bucketName.split(":"); - const isArn = arn === "arn" && bucketName.split(":").length >= 6; - const isValidArn = [arn, partition, service, account, typeOrId].filter(Boolean).length === 5; - if (isArn && !isValidArn) { - throw new Error(`Invalid ARN: ${bucketName} was an invalid ARN.`); - } - return arn === "arn" && !!partition && !!service && !!account && !!typeOrId; -}; -exports.isArnBucketName = isArnBucketName; diff --git a/node_modules/@smithy/middleware-endpoint/dist-cjs/types.js b/node_modules/@smithy/middleware-endpoint/dist-cjs/types.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@smithy/middleware-endpoint/dist-cjs/types.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/createConfigValueProvider.js b/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/createConfigValueProvider.js deleted file mode 100644 index 3761ccd9..00000000 --- a/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/createConfigValueProvider.js +++ /dev/null @@ -1,25 +0,0 @@ -export const createConfigValueProvider = (configKey, canonicalEndpointParamKey, config) => { - const configProvider = async () => { - const configValue = config[configKey] ?? config[canonicalEndpointParamKey]; - if (typeof configValue === "function") { - return configValue(); - } - return configValue; - }; - if (configKey === "endpoint" || canonicalEndpointParamKey === "endpoint") { - return async () => { - const endpoint = await configProvider(); - if (endpoint && typeof endpoint === "object") { - if ("url" in endpoint) { - return endpoint.url.href; - } - if ("hostname" in endpoint) { - const { protocol, hostname, port, path } = endpoint; - return `${protocol}//${hostname}${port ? ":" + port : ""}${path}`; - } - } - return endpoint; - }; - } - return configProvider; -}; diff --git a/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointFromConfig.browser.js b/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointFromConfig.browser.js deleted file mode 100644 index 75fc1365..00000000 --- a/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointFromConfig.browser.js +++ /dev/null @@ -1 +0,0 @@ -export const getEndpointFromConfig = async (serviceId) => undefined; diff --git a/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointFromConfig.js b/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointFromConfig.js deleted file mode 100644 index 69780741..00000000 --- a/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointFromConfig.js +++ /dev/null @@ -1,3 +0,0 @@ -import { loadConfig } from "@smithy/node-config-provider"; -import { getEndpointUrlConfig } from "./getEndpointUrlConfig"; -export const getEndpointFromConfig = async (serviceId) => loadConfig(getEndpointUrlConfig(serviceId))(); diff --git a/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointFromInstructions.js b/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointFromInstructions.js deleted file mode 100644 index 8dedd8cc..00000000 --- a/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointFromInstructions.js +++ /dev/null @@ -1,45 +0,0 @@ -import { resolveParamsForS3 } from "../service-customizations"; -import { createConfigValueProvider } from "./createConfigValueProvider"; -import { getEndpointFromConfig } from "./getEndpointFromConfig"; -import { toEndpointV1 } from "./toEndpointV1"; -export const getEndpointFromInstructions = async (commandInput, instructionsSupplier, clientConfig, context) => { - if (!clientConfig.endpoint) { - const endpointFromConfig = await getEndpointFromConfig(clientConfig.serviceId || ""); - if (endpointFromConfig) { - clientConfig.endpoint = () => Promise.resolve(toEndpointV1(endpointFromConfig)); - } - } - const endpointParams = await resolveParams(commandInput, instructionsSupplier, clientConfig); - if (typeof clientConfig.endpointProvider !== "function") { - throw new Error("config.endpointProvider is not set."); - } - const endpoint = clientConfig.endpointProvider(endpointParams, context); - return endpoint; -}; -export const resolveParams = async (commandInput, instructionsSupplier, clientConfig) => { - const endpointParams = {}; - const instructions = instructionsSupplier?.getEndpointParameterInstructions?.() || {}; - for (const [name, instruction] of Object.entries(instructions)) { - switch (instruction.type) { - case "staticContextParams": - endpointParams[name] = instruction.value; - break; - case "contextParams": - endpointParams[name] = commandInput[instruction.name]; - break; - case "clientContextParams": - case "builtInParams": - endpointParams[name] = await createConfigValueProvider(instruction.name, name, clientConfig)(); - break; - default: - throw new Error("Unrecognized endpoint parameter instruction: " + JSON.stringify(instruction)); - } - } - if (Object.keys(instructions).length === 0) { - Object.assign(endpointParams, clientConfig); - } - if (String(clientConfig.serviceId).toLowerCase() === "s3") { - await resolveParamsForS3(endpointParams); - } - return endpointParams; -}; diff --git a/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointUrlConfig.js b/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointUrlConfig.js deleted file mode 100644 index 82a15195..00000000 --- a/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/getEndpointUrlConfig.js +++ /dev/null @@ -1,31 +0,0 @@ -import { CONFIG_PREFIX_SEPARATOR } from "@smithy/shared-ini-file-loader"; -const ENV_ENDPOINT_URL = "AWS_ENDPOINT_URL"; -const CONFIG_ENDPOINT_URL = "endpoint_url"; -export const getEndpointUrlConfig = (serviceId) => ({ - environmentVariableSelector: (env) => { - const serviceSuffixParts = serviceId.split(" ").map((w) => w.toUpperCase()); - const serviceEndpointUrl = env[[ENV_ENDPOINT_URL, ...serviceSuffixParts].join("_")]; - if (serviceEndpointUrl) - return serviceEndpointUrl; - const endpointUrl = env[ENV_ENDPOINT_URL]; - if (endpointUrl) - return endpointUrl; - return undefined; - }, - configFileSelector: (profile, config) => { - if (config && profile.services) { - const servicesSection = config[["services", profile.services].join(CONFIG_PREFIX_SEPARATOR)]; - if (servicesSection) { - const servicePrefixParts = serviceId.split(" ").map((w) => w.toLowerCase()); - const endpointUrl = servicesSection[[servicePrefixParts.join("_"), CONFIG_ENDPOINT_URL].join(CONFIG_PREFIX_SEPARATOR)]; - if (endpointUrl) - return endpointUrl; - } - } - const endpointUrl = profile[CONFIG_ENDPOINT_URL]; - if (endpointUrl) - return endpointUrl; - return undefined; - }, - default: undefined, -}); diff --git a/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/index.js b/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/index.js deleted file mode 100644 index 17752da2..00000000 --- a/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/index.js +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./getEndpointFromInstructions"; -export * from "./toEndpointV1"; diff --git a/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/toEndpointV1.js b/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/toEndpointV1.js deleted file mode 100644 index 83f43244..00000000 --- a/node_modules/@smithy/middleware-endpoint/dist-es/adaptors/toEndpointV1.js +++ /dev/null @@ -1,10 +0,0 @@ -import { parseUrl } from "@smithy/url-parser"; -export const toEndpointV1 = (endpoint) => { - if (typeof endpoint === "object") { - if ("url" in endpoint) { - return parseUrl(endpoint.url); - } - return endpoint; - } - return parseUrl(endpoint); -}; diff --git a/node_modules/@smithy/middleware-endpoint/dist-es/endpointMiddleware.js b/node_modules/@smithy/middleware-endpoint/dist-es/endpointMiddleware.js deleted file mode 100644 index 1c036ed2..00000000 --- a/node_modules/@smithy/middleware-endpoint/dist-es/endpointMiddleware.js +++ /dev/null @@ -1,32 +0,0 @@ -import { getSmithyContext } from "@smithy/util-middleware"; -import { getEndpointFromInstructions } from "./adaptors/getEndpointFromInstructions"; -export const endpointMiddleware = ({ config, instructions, }) => { - return (next, context) => async (args) => { - const endpoint = await getEndpointFromInstructions(args.input, { - getEndpointParameterInstructions() { - return instructions; - }, - }, { ...config }, context); - context.endpointV2 = endpoint; - context.authSchemes = endpoint.properties?.authSchemes; - const authScheme = context.authSchemes?.[0]; - if (authScheme) { - context["signing_region"] = authScheme.signingRegion; - context["signing_service"] = authScheme.signingName; - const smithyContext = getSmithyContext(context); - const httpAuthOption = smithyContext?.selectedHttpAuthScheme?.httpAuthOption; - if (httpAuthOption) { - httpAuthOption.signingProperties = Object.assign(httpAuthOption.signingProperties || {}, { - signing_region: authScheme.signingRegion, - signingRegion: authScheme.signingRegion, - signing_service: authScheme.signingName, - signingName: authScheme.signingName, - signingRegionSet: authScheme.signingRegionSet, - }, authScheme.properties); - } - } - return next({ - ...args, - }); - }; -}; diff --git a/node_modules/@smithy/middleware-endpoint/dist-es/getEndpointPlugin.js b/node_modules/@smithy/middleware-endpoint/dist-es/getEndpointPlugin.js deleted file mode 100644 index e2335f4b..00000000 --- a/node_modules/@smithy/middleware-endpoint/dist-es/getEndpointPlugin.js +++ /dev/null @@ -1,18 +0,0 @@ -import { serializerMiddlewareOption } from "@smithy/middleware-serde"; -import { endpointMiddleware } from "./endpointMiddleware"; -export const endpointMiddlewareOptions = { - step: "serialize", - tags: ["ENDPOINT_PARAMETERS", "ENDPOINT_V2", "ENDPOINT"], - name: "endpointV2Middleware", - override: true, - relation: "before", - toMiddleware: serializerMiddlewareOption.name, -}; -export const getEndpointPlugin = (config, instructions) => ({ - applyToStack: (clientStack) => { - clientStack.addRelativeTo(endpointMiddleware({ - config, - instructions, - }), endpointMiddlewareOptions); - }, -}); diff --git a/node_modules/@smithy/middleware-endpoint/dist-es/index.js b/node_modules/@smithy/middleware-endpoint/dist-es/index.js deleted file mode 100644 index f89653ed..00000000 --- a/node_modules/@smithy/middleware-endpoint/dist-es/index.js +++ /dev/null @@ -1,5 +0,0 @@ -export * from "./adaptors"; -export * from "./endpointMiddleware"; -export * from "./getEndpointPlugin"; -export * from "./resolveEndpointConfig"; -export * from "./types"; diff --git a/node_modules/@smithy/middleware-endpoint/dist-es/resolveEndpointConfig.js b/node_modules/@smithy/middleware-endpoint/dist-es/resolveEndpointConfig.js deleted file mode 100644 index d5ea0bdc..00000000 --- a/node_modules/@smithy/middleware-endpoint/dist-es/resolveEndpointConfig.js +++ /dev/null @@ -1,16 +0,0 @@ -import { normalizeProvider } from "@smithy/util-middleware"; -import { toEndpointV1 } from "./adaptors/toEndpointV1"; -export const resolveEndpointConfig = (input) => { - const tls = input.tls ?? true; - const { endpoint } = input; - const customEndpointProvider = endpoint != null ? async () => toEndpointV1(await normalizeProvider(endpoint)()) : undefined; - const isCustomEndpoint = !!endpoint; - return { - ...input, - endpoint: customEndpointProvider, - tls, - isCustomEndpoint, - useDualstackEndpoint: normalizeProvider(input.useDualstackEndpoint ?? false), - useFipsEndpoint: normalizeProvider(input.useFipsEndpoint ?? false), - }; -}; diff --git a/node_modules/@smithy/middleware-endpoint/dist-es/service-customizations/index.js b/node_modules/@smithy/middleware-endpoint/dist-es/service-customizations/index.js deleted file mode 100644 index e50e1079..00000000 --- a/node_modules/@smithy/middleware-endpoint/dist-es/service-customizations/index.js +++ /dev/null @@ -1 +0,0 @@ -export * from "./s3"; diff --git a/node_modules/@smithy/middleware-endpoint/dist-es/service-customizations/s3.js b/node_modules/@smithy/middleware-endpoint/dist-es/service-customizations/s3.js deleted file mode 100644 index b199305a..00000000 --- a/node_modules/@smithy/middleware-endpoint/dist-es/service-customizations/s3.js +++ /dev/null @@ -1,37 +0,0 @@ -export const resolveParamsForS3 = async (endpointParams) => { - const bucket = endpointParams?.Bucket || ""; - if (typeof endpointParams.Bucket === "string") { - endpointParams.Bucket = bucket.replace(/#/g, encodeURIComponent("#")).replace(/\?/g, encodeURIComponent("?")); - } - if (isArnBucketName(bucket)) { - if (endpointParams.ForcePathStyle === true) { - throw new Error("Path-style addressing cannot be used with ARN buckets"); - } - } - else if (!isDnsCompatibleBucketName(bucket) || - (bucket.indexOf(".") !== -1 && !String(endpointParams.Endpoint).startsWith("http:")) || - bucket.toLowerCase() !== bucket || - bucket.length < 3) { - endpointParams.ForcePathStyle = true; - } - if (endpointParams.DisableMultiRegionAccessPoints) { - endpointParams.disableMultiRegionAccessPoints = true; - endpointParams.DisableMRAP = true; - } - return endpointParams; -}; -const DOMAIN_PATTERN = /^[a-z0-9][a-z0-9\.\-]{1,61}[a-z0-9]$/; -const IP_ADDRESS_PATTERN = /(\d+\.){3}\d+/; -const DOTS_PATTERN = /\.\./; -export const DOT_PATTERN = /\./; -export const S3_HOSTNAME_PATTERN = /^(.+\.)?s3(-fips)?(\.dualstack)?[.-]([a-z0-9-]+)\./; -export const isDnsCompatibleBucketName = (bucketName) => DOMAIN_PATTERN.test(bucketName) && !IP_ADDRESS_PATTERN.test(bucketName) && !DOTS_PATTERN.test(bucketName); -export const isArnBucketName = (bucketName) => { - const [arn, partition, service, region, account, typeOrId] = bucketName.split(":"); - const isArn = arn === "arn" && bucketName.split(":").length >= 6; - const isValidArn = [arn, partition, service, account, typeOrId].filter(Boolean).length === 5; - if (isArn && !isValidArn) { - throw new Error(`Invalid ARN: ${bucketName} was an invalid ARN.`); - } - return arn === "arn" && !!partition && !!service && !!account && !!typeOrId; -}; diff --git a/node_modules/@smithy/middleware-endpoint/dist-es/types.js b/node_modules/@smithy/middleware-endpoint/dist-es/types.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@smithy/middleware-endpoint/dist-es/types.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@smithy/middleware-endpoint/dist-types/adaptors/createConfigValueProvider.d.ts b/node_modules/@smithy/middleware-endpoint/dist-types/adaptors/createConfigValueProvider.d.ts deleted file mode 100644 index df659140..00000000 --- a/node_modules/@smithy/middleware-endpoint/dist-types/adaptors/createConfigValueProvider.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * Normalize some key of the client config to an async provider. - * @internal - * - * @param configKey - the key to look up in config. - * @param canonicalEndpointParamKey - this is the name the EndpointRuleSet uses. - * it will most likely not contain the config - * value, but we use it as a fallback. - * @param config - container of the config values. - * - * @returns async function that will resolve with the value. - */ -export declare const createConfigValueProvider: >(configKey: string, canonicalEndpointParamKey: string, config: Config) => () => Promise; diff --git a/node_modules/@smithy/middleware-endpoint/dist-types/adaptors/getEndpointFromConfig.browser.d.ts b/node_modules/@smithy/middleware-endpoint/dist-types/adaptors/getEndpointFromConfig.browser.d.ts deleted file mode 100644 index de05fa52..00000000 --- a/node_modules/@smithy/middleware-endpoint/dist-types/adaptors/getEndpointFromConfig.browser.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const getEndpointFromConfig: (serviceId: string) => Promise; diff --git a/node_modules/@smithy/middleware-endpoint/dist-types/adaptors/getEndpointFromConfig.d.ts b/node_modules/@smithy/middleware-endpoint/dist-types/adaptors/getEndpointFromConfig.d.ts deleted file mode 100644 index e0725826..00000000 --- a/node_modules/@smithy/middleware-endpoint/dist-types/adaptors/getEndpointFromConfig.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const getEndpointFromConfig: (serviceId: string) => Promise; diff --git a/node_modules/@smithy/middleware-endpoint/dist-types/adaptors/getEndpointFromInstructions.d.ts b/node_modules/@smithy/middleware-endpoint/dist-types/adaptors/getEndpointFromInstructions.d.ts deleted file mode 100644 index 49cef2a6..00000000 --- a/node_modules/@smithy/middleware-endpoint/dist-types/adaptors/getEndpointFromInstructions.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { EndpointParameters, EndpointV2, HandlerExecutionContext } from "@smithy/types"; -import { EndpointResolvedConfig } from "../resolveEndpointConfig"; -import { EndpointParameterInstructions } from "../types"; -/** - * @internal - */ -export type EndpointParameterInstructionsSupplier = Partial<{ - getEndpointParameterInstructions(): EndpointParameterInstructions; -}>; -/** - * This step in the endpoint resolution process is exposed as a function - * to allow packages such as signers, lib-upload, etc. to get - * the V2 Endpoint associated to an instance of some api operation command - * without needing to send it or resolve its middleware stack. - * - * @internal - * @param commandInput - the input of the Command in question. - * @param instructionsSupplier - this is typically a Command constructor. A static function supplying the - * endpoint parameter instructions will exist for commands in services - * having an endpoints ruleset trait. - * @param clientConfig - config of the service client. - * @param context - optional context. - */ -export declare const getEndpointFromInstructions: , Config extends Record>(commandInput: CommandInput, instructionsSupplier: EndpointParameterInstructionsSupplier, clientConfig: Partial> & Config, context?: HandlerExecutionContext) => Promise; -/** - * @internal - */ -export declare const resolveParams: , Config extends Record>(commandInput: CommandInput, instructionsSupplier: EndpointParameterInstructionsSupplier, clientConfig: Partial> & Config) => Promise; diff --git a/node_modules/@smithy/middleware-endpoint/dist-types/adaptors/getEndpointUrlConfig.d.ts b/node_modules/@smithy/middleware-endpoint/dist-types/adaptors/getEndpointUrlConfig.d.ts deleted file mode 100644 index 0971010f..00000000 --- a/node_modules/@smithy/middleware-endpoint/dist-types/adaptors/getEndpointUrlConfig.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { LoadedConfigSelectors } from "@smithy/node-config-provider"; -export declare const getEndpointUrlConfig: (serviceId: string) => LoadedConfigSelectors; diff --git a/node_modules/@smithy/middleware-endpoint/dist-types/adaptors/index.d.ts b/node_modules/@smithy/middleware-endpoint/dist-types/adaptors/index.d.ts deleted file mode 100644 index cc134883..00000000 --- a/node_modules/@smithy/middleware-endpoint/dist-types/adaptors/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @internal - */ -export * from "./getEndpointFromInstructions"; -/** - * @internal - */ -export * from "./toEndpointV1"; diff --git a/node_modules/@smithy/middleware-endpoint/dist-types/adaptors/toEndpointV1.d.ts b/node_modules/@smithy/middleware-endpoint/dist-types/adaptors/toEndpointV1.d.ts deleted file mode 100644 index 834aabb1..00000000 --- a/node_modules/@smithy/middleware-endpoint/dist-types/adaptors/toEndpointV1.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { Endpoint, EndpointV2 } from "@smithy/types"; -/** - * @internal - */ -export declare const toEndpointV1: (endpoint: string | Endpoint | EndpointV2) => Endpoint; diff --git a/node_modules/@smithy/middleware-endpoint/dist-types/endpointMiddleware.d.ts b/node_modules/@smithy/middleware-endpoint/dist-types/endpointMiddleware.d.ts deleted file mode 100644 index 67cee648..00000000 --- a/node_modules/@smithy/middleware-endpoint/dist-types/endpointMiddleware.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { EndpointParameters, SerializeMiddleware } from "@smithy/types"; -import { EndpointResolvedConfig } from "./resolveEndpointConfig"; -import { EndpointParameterInstructions } from "./types"; -/** - * @internal - */ -export declare const endpointMiddleware: ({ config, instructions, }: { - config: EndpointResolvedConfig; - instructions: EndpointParameterInstructions; -}) => SerializeMiddleware; diff --git a/node_modules/@smithy/middleware-endpoint/dist-types/getEndpointPlugin.d.ts b/node_modules/@smithy/middleware-endpoint/dist-types/getEndpointPlugin.d.ts deleted file mode 100644 index 910f44d7..00000000 --- a/node_modules/@smithy/middleware-endpoint/dist-types/getEndpointPlugin.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { EndpointParameters, Pluggable, RelativeMiddlewareOptions, SerializeHandlerOptions } from "@smithy/types"; -import { EndpointResolvedConfig } from "./resolveEndpointConfig"; -import { EndpointParameterInstructions } from "./types"; -/** - * @internal - */ -export declare const endpointMiddlewareOptions: SerializeHandlerOptions & RelativeMiddlewareOptions; -/** - * @internal - */ -export declare const getEndpointPlugin: (config: EndpointResolvedConfig, instructions: EndpointParameterInstructions) => Pluggable; diff --git a/node_modules/@smithy/middleware-endpoint/dist-types/index.d.ts b/node_modules/@smithy/middleware-endpoint/dist-types/index.d.ts deleted file mode 100644 index bea06cfd..00000000 --- a/node_modules/@smithy/middleware-endpoint/dist-types/index.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * @internal - */ -export * from "./adaptors"; -/** - * @internal - */ -export * from "./endpointMiddleware"; -/** - * @internal - */ -export * from "./getEndpointPlugin"; -export * from "./resolveEndpointConfig"; -/** - * @internal - */ -export * from "./types"; diff --git a/node_modules/@smithy/middleware-endpoint/dist-types/resolveEndpointConfig.d.ts b/node_modules/@smithy/middleware-endpoint/dist-types/resolveEndpointConfig.d.ts deleted file mode 100644 index 82437266..00000000 --- a/node_modules/@smithy/middleware-endpoint/dist-types/resolveEndpointConfig.d.ts +++ /dev/null @@ -1,93 +0,0 @@ -import { Endpoint, EndpointParameters, EndpointV2, Logger, Provider, UrlParser } from "@smithy/types"; -/** - * @public - * - * Endpoint config interfaces and resolver for Endpoint v2. They live in separate package to allow per-service onboarding. - * When all services onboard Endpoint v2, the resolver in config-resolver package can be removed. - * This interface includes all the endpoint parameters with built-in bindings of "AWS::*" and "SDK::*" - */ -export interface EndpointInputConfig { - /** - * The fully qualified endpoint of the webservice. This is only for using - * a custom endpoint (for example, when using a local version of S3). - * - * Endpoint transformations such as S3 applying a bucket to the hostname are - * still applicable to this custom endpoint. - */ - endpoint?: string | Endpoint | Provider | EndpointV2 | Provider; - /** - * Providing a custom endpointProvider will override - * built-in transformations of the endpoint such as S3 adding the bucket - * name to the hostname, since they are part of the default endpointProvider. - */ - endpointProvider?: (params: T, context?: { - logger?: Logger; - }) => EndpointV2; - /** - * Whether TLS is enabled for requests. - * @deprecated - */ - tls?: boolean; - /** - * Enables IPv6/IPv4 dualstack endpoint. - */ - useDualstackEndpoint?: boolean | Provider; - /** - * Enables FIPS compatible endpoints. - */ - useFipsEndpoint?: boolean | Provider; -} -interface PreviouslyResolved { - urlParser: UrlParser; - region: Provider; - endpointProvider: (params: T, context?: { - logger?: Logger; - }) => EndpointV2; - logger?: Logger; -} -/** - * @internal - * - * This supercedes the similarly named EndpointsResolvedConfig (no parametric types) - * from resolveEndpointsConfig.ts in @smithy/config-resolver. - */ -export interface EndpointResolvedConfig { - /** - * Custom endpoint provided by the user. - * This is normalized to a single interface from the various acceptable types. - * This field will be undefined if a custom endpoint is not provided. - */ - endpoint?: Provider; - endpointProvider: (params: T, context?: { - logger?: Logger; - }) => EndpointV2; - /** - * Whether TLS is enabled for requests. - * @deprecated - */ - tls: boolean; - /** - * Whether the endpoint is specified by caller. - * @internal - * @deprecated - */ - isCustomEndpoint?: boolean; - /** - * Resolved value for input {@link EndpointsInputConfig.useDualstackEndpoint} - */ - useDualstackEndpoint: Provider; - /** - * Resolved value for input {@link EndpointsInputConfig.useFipsEndpoint} - */ - useFipsEndpoint: Provider; - /** - * Unique service identifier. - * @internal - */ - serviceId?: string; -} -/** - * @internal - */ -export declare const resolveEndpointConfig: (input: T & EndpointInputConfig

& PreviouslyResolved

) => T & EndpointResolvedConfig

; -export {}; diff --git a/node_modules/@smithy/middleware-endpoint/dist-types/service-customizations/index.d.ts b/node_modules/@smithy/middleware-endpoint/dist-types/service-customizations/index.d.ts deleted file mode 100644 index 716a15d4..00000000 --- a/node_modules/@smithy/middleware-endpoint/dist-types/service-customizations/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/** - * @internal - */ -export * from "./s3"; diff --git a/node_modules/@smithy/middleware-endpoint/dist-types/service-customizations/s3.d.ts b/node_modules/@smithy/middleware-endpoint/dist-types/service-customizations/s3.d.ts deleted file mode 100644 index 80b2e6a1..00000000 --- a/node_modules/@smithy/middleware-endpoint/dist-types/service-customizations/s3.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { EndpointParameters } from "@smithy/types"; -/** - * @internal - */ -export declare const resolveParamsForS3: (endpointParams: EndpointParameters) => Promise; -/** - * @internal - */ -export declare const DOT_PATTERN: RegExp; -/** - * @internal - */ -export declare const S3_HOSTNAME_PATTERN: RegExp; -/** - * Determines whether a given string is DNS compliant per the rules outlined by - * S3. Length, capitaization, and leading dot restrictions are enforced by the - * DOMAIN_PATTERN regular expression. - * @internal - * - * @see https://docs.aws.amazon.com/AmazonS3/latest/dev/BucketRestrictions.html - */ -export declare const isDnsCompatibleBucketName: (bucketName: string) => boolean; -/** - * @internal - */ -export declare const isArnBucketName: (bucketName: string) => boolean; diff --git a/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/adaptors/createConfigValueProvider.d.ts b/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/adaptors/createConfigValueProvider.d.ts deleted file mode 100644 index 842f8fa2..00000000 --- a/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/adaptors/createConfigValueProvider.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * Normalize some key of the client config to an async provider. - * @internal - * - * @param configKey - the key to look up in config. - * @param canonicalEndpointParamKey - this is the name the EndpointRuleSet uses. - * it will most likely not contain the config - * value, but we use it as a fallback. - * @param config - container of the config values. - * - * @returns async function that will resolve with the value. - */ -export declare const createConfigValueProvider: >(configKey: string, canonicalEndpointParamKey: string, config: Config) => () => Promise; diff --git a/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/adaptors/getEndpointFromConfig.browser.d.ts b/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/adaptors/getEndpointFromConfig.browser.d.ts deleted file mode 100644 index 1a4f6baa..00000000 --- a/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/adaptors/getEndpointFromConfig.browser.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const getEndpointFromConfig: (serviceId: string) => Promise; diff --git a/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/adaptors/getEndpointFromConfig.d.ts b/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/adaptors/getEndpointFromConfig.d.ts deleted file mode 100644 index 6c2bf0e5..00000000 --- a/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/adaptors/getEndpointFromConfig.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const getEndpointFromConfig: (serviceId: string) => Promise; diff --git a/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/adaptors/getEndpointFromInstructions.d.ts b/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/adaptors/getEndpointFromInstructions.d.ts deleted file mode 100644 index 82dc8df5..00000000 --- a/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/adaptors/getEndpointFromInstructions.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { EndpointParameters, EndpointV2, HandlerExecutionContext } from "@smithy/types"; -import { EndpointResolvedConfig } from "../resolveEndpointConfig"; -import { EndpointParameterInstructions } from "../types"; -/** - * @internal - */ -export type EndpointParameterInstructionsSupplier = Partial<{ - getEndpointParameterInstructions(): EndpointParameterInstructions; -}>; -/** - * This step in the endpoint resolution process is exposed as a function - * to allow packages such as signers, lib-upload, etc. to get - * the V2 Endpoint associated to an instance of some api operation command - * without needing to send it or resolve its middleware stack. - * - * @internal - * @param commandInput - the input of the Command in question. - * @param instructionsSupplier - this is typically a Command constructor. A static function supplying the - * endpoint parameter instructions will exist for commands in services - * having an endpoints ruleset trait. - * @param clientConfig - config of the service client. - * @param context - optional context. - */ -export declare const getEndpointFromInstructions: , Config extends Record>(commandInput: CommandInput, instructionsSupplier: EndpointParameterInstructionsSupplier, clientConfig: Partial> & Config, context?: HandlerExecutionContext) => Promise; -/** - * @internal - */ -export declare const resolveParams: , Config extends Record>(commandInput: CommandInput, instructionsSupplier: EndpointParameterInstructionsSupplier, clientConfig: Partial> & Config) => Promise; diff --git a/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/adaptors/getEndpointUrlConfig.d.ts b/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/adaptors/getEndpointUrlConfig.d.ts deleted file mode 100644 index 7b9d0689..00000000 --- a/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/adaptors/getEndpointUrlConfig.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { LoadedConfigSelectors } from "@smithy/node-config-provider"; -export declare const getEndpointUrlConfig: (serviceId: string) => LoadedConfigSelectors; diff --git a/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/adaptors/index.d.ts b/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/adaptors/index.d.ts deleted file mode 100644 index ced05200..00000000 --- a/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/adaptors/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @internal - */ -export * from "./getEndpointFromInstructions"; -/** - * @internal - */ -export * from "./toEndpointV1"; diff --git a/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/adaptors/toEndpointV1.d.ts b/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/adaptors/toEndpointV1.d.ts deleted file mode 100644 index 047ded8f..00000000 --- a/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/adaptors/toEndpointV1.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { Endpoint, EndpointV2 } from "@smithy/types"; -/** - * @internal - */ -export declare const toEndpointV1: (endpoint: string | Endpoint | EndpointV2) => Endpoint; diff --git a/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/endpointMiddleware.d.ts b/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/endpointMiddleware.d.ts deleted file mode 100644 index 3f7e40a4..00000000 --- a/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/endpointMiddleware.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { EndpointParameters, SerializeMiddleware } from "@smithy/types"; -import { EndpointResolvedConfig } from "./resolveEndpointConfig"; -import { EndpointParameterInstructions } from "./types"; -/** - * @internal - */ -export declare const endpointMiddleware: ({ config, instructions, }: { - config: EndpointResolvedConfig; - instructions: EndpointParameterInstructions; -}) => SerializeMiddleware; diff --git a/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/getEndpointPlugin.d.ts b/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/getEndpointPlugin.d.ts deleted file mode 100644 index 39f93a99..00000000 --- a/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/getEndpointPlugin.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { EndpointParameters, Pluggable, RelativeMiddlewareOptions, SerializeHandlerOptions } from "@smithy/types"; -import { EndpointResolvedConfig } from "./resolveEndpointConfig"; -import { EndpointParameterInstructions } from "./types"; -/** - * @internal - */ -export declare const endpointMiddlewareOptions: SerializeHandlerOptions & RelativeMiddlewareOptions; -/** - * @internal - */ -export declare const getEndpointPlugin: (config: EndpointResolvedConfig, instructions: EndpointParameterInstructions) => Pluggable; diff --git a/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/index.d.ts b/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/index.d.ts deleted file mode 100644 index 2ad75b98..00000000 --- a/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/index.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * @internal - */ -export * from "./adaptors"; -/** - * @internal - */ -export * from "./endpointMiddleware"; -/** - * @internal - */ -export * from "./getEndpointPlugin"; -export * from "./resolveEndpointConfig"; -/** - * @internal - */ -export * from "./types"; diff --git a/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/resolveEndpointConfig.d.ts b/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/resolveEndpointConfig.d.ts deleted file mode 100644 index 7b1dfc19..00000000 --- a/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/resolveEndpointConfig.d.ts +++ /dev/null @@ -1,93 +0,0 @@ -import { Endpoint, EndpointParameters, EndpointV2, Logger, Provider, UrlParser } from "@smithy/types"; -/** - * @public - * - * Endpoint config interfaces and resolver for Endpoint v2. They live in separate package to allow per-service onboarding. - * When all services onboard Endpoint v2, the resolver in config-resolver package can be removed. - * This interface includes all the endpoint parameters with built-in bindings of "AWS::*" and "SDK::*" - */ -export interface EndpointInputConfig { - /** - * The fully qualified endpoint of the webservice. This is only for using - * a custom endpoint (for example, when using a local version of S3). - * - * Endpoint transformations such as S3 applying a bucket to the hostname are - * still applicable to this custom endpoint. - */ - endpoint?: string | Endpoint | Provider | EndpointV2 | Provider; - /** - * Providing a custom endpointProvider will override - * built-in transformations of the endpoint such as S3 adding the bucket - * name to the hostname, since they are part of the default endpointProvider. - */ - endpointProvider?: (params: T, context?: { - logger?: Logger; - }) => EndpointV2; - /** - * Whether TLS is enabled for requests. - * @deprecated - */ - tls?: boolean; - /** - * Enables IPv6/IPv4 dualstack endpoint. - */ - useDualstackEndpoint?: boolean | Provider; - /** - * Enables FIPS compatible endpoints. - */ - useFipsEndpoint?: boolean | Provider; -} -interface PreviouslyResolved { - urlParser: UrlParser; - region: Provider; - endpointProvider: (params: T, context?: { - logger?: Logger; - }) => EndpointV2; - logger?: Logger; -} -/** - * @internal - * - * This supercedes the similarly named EndpointsResolvedConfig (no parametric types) - * from resolveEndpointsConfig.ts in @smithy/config-resolver. - */ -export interface EndpointResolvedConfig { - /** - * Custom endpoint provided by the user. - * This is normalized to a single interface from the various acceptable types. - * This field will be undefined if a custom endpoint is not provided. - */ - endpoint?: Provider; - endpointProvider: (params: T, context?: { - logger?: Logger; - }) => EndpointV2; - /** - * Whether TLS is enabled for requests. - * @deprecated - */ - tls: boolean; - /** - * Whether the endpoint is specified by caller. - * @internal - * @deprecated - */ - isCustomEndpoint?: boolean; - /** - * Resolved value for input {@link EndpointsInputConfig.useDualstackEndpoint} - */ - useDualstackEndpoint: Provider; - /** - * Resolved value for input {@link EndpointsInputConfig.useFipsEndpoint} - */ - useFipsEndpoint: Provider; - /** - * Unique service identifier. - * @internal - */ - serviceId?: string; -} -/** - * @internal - */ -export declare const resolveEndpointConfig: (input: T & EndpointInputConfig

& PreviouslyResolved

) => T & EndpointResolvedConfig

; -export {}; diff --git a/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/service-customizations/index.d.ts b/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/service-customizations/index.d.ts deleted file mode 100644 index 6529752a..00000000 --- a/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/service-customizations/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/** - * @internal - */ -export * from "./s3"; diff --git a/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/service-customizations/s3.d.ts b/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/service-customizations/s3.d.ts deleted file mode 100644 index cace2272..00000000 --- a/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/service-customizations/s3.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { EndpointParameters } from "@smithy/types"; -/** - * @internal - */ -export declare const resolveParamsForS3: (endpointParams: EndpointParameters) => Promise; -/** - * @internal - */ -export declare const DOT_PATTERN: RegExp; -/** - * @internal - */ -export declare const S3_HOSTNAME_PATTERN: RegExp; -/** - * Determines whether a given string is DNS compliant per the rules outlined by - * S3. Length, capitaization, and leading dot restrictions are enforced by the - * DOMAIN_PATTERN regular expression. - * @internal - * - * @see https://docs.aws.amazon.com/AmazonS3/latest/dev/BucketRestrictions.html - */ -export declare const isDnsCompatibleBucketName: (bucketName: string) => boolean; -/** - * @internal - */ -export declare const isArnBucketName: (bucketName: string) => boolean; diff --git a/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/types.d.ts b/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/types.d.ts deleted file mode 100644 index b689f420..00000000 --- a/node_modules/@smithy/middleware-endpoint/dist-types/ts3.4/types.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * @internal - */ -export interface EndpointParameterInstructions { - [name: string]: BuiltInParamInstruction | ClientContextParamInstruction | StaticContextParamInstruction | ContextParamInstruction; -} -/** - * @internal - */ -export interface BuiltInParamInstruction { - type: "builtInParams"; - name: string; -} -/** - * @internal - */ -export interface ClientContextParamInstruction { - type: "clientContextParams"; - name: string; -} -/** - * @internal - */ -export interface StaticContextParamInstruction { - type: "staticContextParams"; - value: string | boolean; -} -/** - * @internal - */ -export interface ContextParamInstruction { - type: "contextParams"; - name: string; -} diff --git a/node_modules/@smithy/middleware-endpoint/dist-types/types.d.ts b/node_modules/@smithy/middleware-endpoint/dist-types/types.d.ts deleted file mode 100644 index 3079327a..00000000 --- a/node_modules/@smithy/middleware-endpoint/dist-types/types.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * @internal - */ -export interface EndpointParameterInstructions { - [name: string]: BuiltInParamInstruction | ClientContextParamInstruction | StaticContextParamInstruction | ContextParamInstruction; -} -/** - * @internal - */ -export interface BuiltInParamInstruction { - type: "builtInParams"; - name: string; -} -/** - * @internal - */ -export interface ClientContextParamInstruction { - type: "clientContextParams"; - name: string; -} -/** - * @internal - */ -export interface StaticContextParamInstruction { - type: "staticContextParams"; - value: string | boolean; -} -/** - * @internal - */ -export interface ContextParamInstruction { - type: "contextParams"; - name: string; -} diff --git a/node_modules/@smithy/middleware-endpoint/package.json b/node_modules/@smithy/middleware-endpoint/package.json deleted file mode 100644 index c77a0bca..00000000 --- a/node_modules/@smithy/middleware-endpoint/package.json +++ /dev/null @@ -1,73 +0,0 @@ -{ - "name": "@smithy/middleware-endpoint", - "version": "2.2.1", - "scripts": { - "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", - "build:cjs": "yarn g:tsc -p tsconfig.cjs.json", - "build:es": "yarn g:tsc -p tsconfig.es.json", - "build:types": "yarn g:tsc -p tsconfig.types.json", - "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", - "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz", - "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"", - "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"", - "test": "yarn g:jest --passWithNoTests", - "extract:docs": "api-extractor run --local" - }, - "main": "./dist-cjs/index.js", - "module": "./dist-es/index.js", - "types": "./dist-types/index.d.ts", - "author": { - "name": "AWS SDK for JavaScript Team", - "url": "https://aws.amazon.com/javascript/" - }, - "license": "Apache-2.0", - "dependencies": { - "@smithy/middleware-serde": "^2.0.14", - "@smithy/node-config-provider": "^2.1.6", - "@smithy/shared-ini-file-loader": "^2.2.5", - "@smithy/types": "^2.6.0", - "@smithy/url-parser": "^2.0.14", - "@smithy/util-middleware": "^2.0.7", - "tslib": "^2.5.0" - }, - "devDependencies": { - "@tsconfig/recommended": "1.0.1", - "concurrently": "7.0.0", - "downlevel-dts": "0.10.1", - "rimraf": "3.0.2", - "typedoc": "0.23.23" - }, - "engines": { - "node": ">=14.0.0" - }, - "typesVersions": { - "<4.0": { - "dist-types/*": [ - "dist-types/ts3.4/*" - ] - } - }, - "files": [ - "dist-*/**" - ], - "browser": { - "./dist-es/adaptors/getEndpointFromConfig": "./dist-es/adaptors/getEndpointFromConfig.browser" - }, - "react-native": { - "./dist-es/adaptors/getEndpointFromConfig": "./dist-es/adaptors/getEndpointFromConfig.browser", - "./dist-cjs/adaptors/getEndpointFromConfig": "./dist-cjs/adaptors/getEndpointFromConfig.browser" - }, - "homepage": "https://github.com/awslabs/smithy-typescript/tree/main/packages/middleware-endpoint", - "repository": { - "type": "git", - "url": "https://github.com/awslabs/smithy-typescript.git", - "directory": "packages/middleware-endpoint" - }, - "typedoc": { - "entryPoint": "src/index.ts" - }, - "publishConfig": { - "directory": ".release/package" - } -} \ No newline at end of file diff --git a/node_modules/@smithy/middleware-retry/LICENSE b/node_modules/@smithy/middleware-retry/LICENSE deleted file mode 100644 index dd65ae06..00000000 --- a/node_modules/@smithy/middleware-retry/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/node_modules/@smithy/middleware-retry/README.md b/node_modules/@smithy/middleware-retry/README.md deleted file mode 100644 index 4da538f3..00000000 --- a/node_modules/@smithy/middleware-retry/README.md +++ /dev/null @@ -1,11 +0,0 @@ -# @smithy/middleware-retry - -[![NPM version](https://img.shields.io/npm/v/@smithy/middleware-retry/latest.svg)](https://www.npmjs.com/package/@smithy/middleware-retry) -[![NPM downloads](https://img.shields.io/npm/dm/@smithy/middleware-retry.svg)](https://www.npmjs.com/package/@smithy/middleware-retry) - -## Usage - -See [@smithy/util-retry](https://github.com/awslabs/smithy-typescript/tree/main/packages/util-retry) -for retry behavior and configuration. - -See also: [AWS Documentation: Retry behavior](https://docs.aws.amazon.com/sdkref/latest/guide/feature-retry-behavior.html). diff --git a/node_modules/@smithy/middleware-retry/dist-cjs/AdaptiveRetryStrategy.js b/node_modules/@smithy/middleware-retry/dist-cjs/AdaptiveRetryStrategy.js deleted file mode 100644 index ede63f40..00000000 --- a/node_modules/@smithy/middleware-retry/dist-cjs/AdaptiveRetryStrategy.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AdaptiveRetryStrategy = void 0; -const util_retry_1 = require("@smithy/util-retry"); -const StandardRetryStrategy_1 = require("./StandardRetryStrategy"); -class AdaptiveRetryStrategy extends StandardRetryStrategy_1.StandardRetryStrategy { - constructor(maxAttemptsProvider, options) { - const { rateLimiter, ...superOptions } = options !== null && options !== void 0 ? options : {}; - super(maxAttemptsProvider, superOptions); - this.rateLimiter = rateLimiter !== null && rateLimiter !== void 0 ? rateLimiter : new util_retry_1.DefaultRateLimiter(); - this.mode = util_retry_1.RETRY_MODES.ADAPTIVE; - } - async retry(next, args) { - return super.retry(next, args, { - beforeRequest: async () => { - return this.rateLimiter.getSendToken(); - }, - afterRequest: (response) => { - this.rateLimiter.updateClientSendingRate(response); - }, - }); - } -} -exports.AdaptiveRetryStrategy = AdaptiveRetryStrategy; diff --git a/node_modules/@smithy/middleware-retry/dist-cjs/StandardRetryStrategy.js b/node_modules/@smithy/middleware-retry/dist-cjs/StandardRetryStrategy.js deleted file mode 100644 index e16564fc..00000000 --- a/node_modules/@smithy/middleware-retry/dist-cjs/StandardRetryStrategy.js +++ /dev/null @@ -1,95 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.StandardRetryStrategy = void 0; -const protocol_http_1 = require("@smithy/protocol-http"); -const service_error_classification_1 = require("@smithy/service-error-classification"); -const util_retry_1 = require("@smithy/util-retry"); -const uuid_1 = require("uuid"); -const defaultRetryQuota_1 = require("./defaultRetryQuota"); -const delayDecider_1 = require("./delayDecider"); -const retryDecider_1 = require("./retryDecider"); -const util_1 = require("./util"); -class StandardRetryStrategy { - constructor(maxAttemptsProvider, options) { - var _a, _b, _c; - this.maxAttemptsProvider = maxAttemptsProvider; - this.mode = util_retry_1.RETRY_MODES.STANDARD; - this.retryDecider = (_a = options === null || options === void 0 ? void 0 : options.retryDecider) !== null && _a !== void 0 ? _a : retryDecider_1.defaultRetryDecider; - this.delayDecider = (_b = options === null || options === void 0 ? void 0 : options.delayDecider) !== null && _b !== void 0 ? _b : delayDecider_1.defaultDelayDecider; - this.retryQuota = (_c = options === null || options === void 0 ? void 0 : options.retryQuota) !== null && _c !== void 0 ? _c : (0, defaultRetryQuota_1.getDefaultRetryQuota)(util_retry_1.INITIAL_RETRY_TOKENS); - } - shouldRetry(error, attempts, maxAttempts) { - return attempts < maxAttempts && this.retryDecider(error) && this.retryQuota.hasRetryTokens(error); - } - async getMaxAttempts() { - let maxAttempts; - try { - maxAttempts = await this.maxAttemptsProvider(); - } - catch (error) { - maxAttempts = util_retry_1.DEFAULT_MAX_ATTEMPTS; - } - return maxAttempts; - } - async retry(next, args, options) { - let retryTokenAmount; - let attempts = 0; - let totalDelay = 0; - const maxAttempts = await this.getMaxAttempts(); - const { request } = args; - if (protocol_http_1.HttpRequest.isInstance(request)) { - request.headers[util_retry_1.INVOCATION_ID_HEADER] = (0, uuid_1.v4)(); - } - while (true) { - try { - if (protocol_http_1.HttpRequest.isInstance(request)) { - request.headers[util_retry_1.REQUEST_HEADER] = `attempt=${attempts + 1}; max=${maxAttempts}`; - } - if (options === null || options === void 0 ? void 0 : options.beforeRequest) { - await options.beforeRequest(); - } - const { response, output } = await next(args); - if (options === null || options === void 0 ? void 0 : options.afterRequest) { - options.afterRequest(response); - } - this.retryQuota.releaseRetryTokens(retryTokenAmount); - output.$metadata.attempts = attempts + 1; - output.$metadata.totalRetryDelay = totalDelay; - return { response, output }; - } - catch (e) { - const err = (0, util_1.asSdkError)(e); - attempts++; - if (this.shouldRetry(err, attempts, maxAttempts)) { - retryTokenAmount = this.retryQuota.retrieveRetryTokens(err); - const delayFromDecider = this.delayDecider((0, service_error_classification_1.isThrottlingError)(err) ? util_retry_1.THROTTLING_RETRY_DELAY_BASE : util_retry_1.DEFAULT_RETRY_DELAY_BASE, attempts); - const delayFromResponse = getDelayFromRetryAfterHeader(err.$response); - const delay = Math.max(delayFromResponse || 0, delayFromDecider); - totalDelay += delay; - await new Promise((resolve) => setTimeout(resolve, delay)); - continue; - } - if (!err.$metadata) { - err.$metadata = {}; - } - err.$metadata.attempts = attempts; - err.$metadata.totalRetryDelay = totalDelay; - throw err; - } - } - } -} -exports.StandardRetryStrategy = StandardRetryStrategy; -const getDelayFromRetryAfterHeader = (response) => { - if (!protocol_http_1.HttpResponse.isInstance(response)) - return; - const retryAfterHeaderName = Object.keys(response.headers).find((key) => key.toLowerCase() === "retry-after"); - if (!retryAfterHeaderName) - return; - const retryAfter = response.headers[retryAfterHeaderName]; - const retryAfterSeconds = Number(retryAfter); - if (!Number.isNaN(retryAfterSeconds)) - return retryAfterSeconds * 1000; - const retryAfterDate = new Date(retryAfter); - return retryAfterDate.getTime() - Date.now(); -}; diff --git a/node_modules/@smithy/middleware-retry/dist-cjs/configurations.js b/node_modules/@smithy/middleware-retry/dist-cjs/configurations.js deleted file mode 100644 index bb1021c1..00000000 --- a/node_modules/@smithy/middleware-retry/dist-cjs/configurations.js +++ /dev/null @@ -1,57 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.NODE_RETRY_MODE_CONFIG_OPTIONS = exports.CONFIG_RETRY_MODE = exports.ENV_RETRY_MODE = exports.resolveRetryConfig = exports.NODE_MAX_ATTEMPT_CONFIG_OPTIONS = exports.CONFIG_MAX_ATTEMPTS = exports.ENV_MAX_ATTEMPTS = void 0; -const util_middleware_1 = require("@smithy/util-middleware"); -const util_retry_1 = require("@smithy/util-retry"); -exports.ENV_MAX_ATTEMPTS = "AWS_MAX_ATTEMPTS"; -exports.CONFIG_MAX_ATTEMPTS = "max_attempts"; -exports.NODE_MAX_ATTEMPT_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => { - const value = env[exports.ENV_MAX_ATTEMPTS]; - if (!value) - return undefined; - const maxAttempt = parseInt(value); - if (Number.isNaN(maxAttempt)) { - throw new Error(`Environment variable ${exports.ENV_MAX_ATTEMPTS} mast be a number, got "${value}"`); - } - return maxAttempt; - }, - configFileSelector: (profile) => { - const value = profile[exports.CONFIG_MAX_ATTEMPTS]; - if (!value) - return undefined; - const maxAttempt = parseInt(value); - if (Number.isNaN(maxAttempt)) { - throw new Error(`Shared config file entry ${exports.CONFIG_MAX_ATTEMPTS} mast be a number, got "${value}"`); - } - return maxAttempt; - }, - default: util_retry_1.DEFAULT_MAX_ATTEMPTS, -}; -const resolveRetryConfig = (input) => { - var _a; - const { retryStrategy } = input; - const maxAttempts = (0, util_middleware_1.normalizeProvider)((_a = input.maxAttempts) !== null && _a !== void 0 ? _a : util_retry_1.DEFAULT_MAX_ATTEMPTS); - return { - ...input, - maxAttempts, - retryStrategy: async () => { - if (retryStrategy) { - return retryStrategy; - } - const retryMode = await (0, util_middleware_1.normalizeProvider)(input.retryMode)(); - if (retryMode === util_retry_1.RETRY_MODES.ADAPTIVE) { - return new util_retry_1.AdaptiveRetryStrategy(maxAttempts); - } - return new util_retry_1.StandardRetryStrategy(maxAttempts); - }, - }; -}; -exports.resolveRetryConfig = resolveRetryConfig; -exports.ENV_RETRY_MODE = "AWS_RETRY_MODE"; -exports.CONFIG_RETRY_MODE = "retry_mode"; -exports.NODE_RETRY_MODE_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => env[exports.ENV_RETRY_MODE], - configFileSelector: (profile) => profile[exports.CONFIG_RETRY_MODE], - default: util_retry_1.DEFAULT_RETRY_MODE, -}; diff --git a/node_modules/@smithy/middleware-retry/dist-cjs/defaultRetryQuota.js b/node_modules/@smithy/middleware-retry/dist-cjs/defaultRetryQuota.js deleted file mode 100644 index 0fae085d..00000000 --- a/node_modules/@smithy/middleware-retry/dist-cjs/defaultRetryQuota.js +++ /dev/null @@ -1,32 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getDefaultRetryQuota = void 0; -const util_retry_1 = require("@smithy/util-retry"); -const getDefaultRetryQuota = (initialRetryTokens, options) => { - var _a, _b, _c; - const MAX_CAPACITY = initialRetryTokens; - const noRetryIncrement = (_a = options === null || options === void 0 ? void 0 : options.noRetryIncrement) !== null && _a !== void 0 ? _a : util_retry_1.NO_RETRY_INCREMENT; - const retryCost = (_b = options === null || options === void 0 ? void 0 : options.retryCost) !== null && _b !== void 0 ? _b : util_retry_1.RETRY_COST; - const timeoutRetryCost = (_c = options === null || options === void 0 ? void 0 : options.timeoutRetryCost) !== null && _c !== void 0 ? _c : util_retry_1.TIMEOUT_RETRY_COST; - let availableCapacity = initialRetryTokens; - const getCapacityAmount = (error) => (error.name === "TimeoutError" ? timeoutRetryCost : retryCost); - const hasRetryTokens = (error) => getCapacityAmount(error) <= availableCapacity; - const retrieveRetryTokens = (error) => { - if (!hasRetryTokens(error)) { - throw new Error("No retry token available"); - } - const capacityAmount = getCapacityAmount(error); - availableCapacity -= capacityAmount; - return capacityAmount; - }; - const releaseRetryTokens = (capacityReleaseAmount) => { - availableCapacity += capacityReleaseAmount !== null && capacityReleaseAmount !== void 0 ? capacityReleaseAmount : noRetryIncrement; - availableCapacity = Math.min(availableCapacity, MAX_CAPACITY); - }; - return Object.freeze({ - hasRetryTokens, - retrieveRetryTokens, - releaseRetryTokens, - }); -}; -exports.getDefaultRetryQuota = getDefaultRetryQuota; diff --git a/node_modules/@smithy/middleware-retry/dist-cjs/delayDecider.js b/node_modules/@smithy/middleware-retry/dist-cjs/delayDecider.js deleted file mode 100644 index 965da469..00000000 --- a/node_modules/@smithy/middleware-retry/dist-cjs/delayDecider.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.defaultDelayDecider = void 0; -const util_retry_1 = require("@smithy/util-retry"); -const defaultDelayDecider = (delayBase, attempts) => Math.floor(Math.min(util_retry_1.MAXIMUM_RETRY_DELAY, Math.random() * 2 ** attempts * delayBase)); -exports.defaultDelayDecider = defaultDelayDecider; diff --git a/node_modules/@smithy/middleware-retry/dist-cjs/index.js b/node_modules/@smithy/middleware-retry/dist-cjs/index.js deleted file mode 100644 index c98ff279..00000000 --- a/node_modules/@smithy/middleware-retry/dist-cjs/index.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./AdaptiveRetryStrategy"), exports); -tslib_1.__exportStar(require("./StandardRetryStrategy"), exports); -tslib_1.__exportStar(require("./configurations"), exports); -tslib_1.__exportStar(require("./delayDecider"), exports); -tslib_1.__exportStar(require("./omitRetryHeadersMiddleware"), exports); -tslib_1.__exportStar(require("./retryDecider"), exports); -tslib_1.__exportStar(require("./retryMiddleware"), exports); diff --git a/node_modules/@smithy/middleware-retry/dist-cjs/omitRetryHeadersMiddleware.js b/node_modules/@smithy/middleware-retry/dist-cjs/omitRetryHeadersMiddleware.js deleted file mode 100644 index 9efdee93..00000000 --- a/node_modules/@smithy/middleware-retry/dist-cjs/omitRetryHeadersMiddleware.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getOmitRetryHeadersPlugin = exports.omitRetryHeadersMiddlewareOptions = exports.omitRetryHeadersMiddleware = void 0; -const protocol_http_1 = require("@smithy/protocol-http"); -const util_retry_1 = require("@smithy/util-retry"); -const omitRetryHeadersMiddleware = () => (next) => async (args) => { - const { request } = args; - if (protocol_http_1.HttpRequest.isInstance(request)) { - delete request.headers[util_retry_1.INVOCATION_ID_HEADER]; - delete request.headers[util_retry_1.REQUEST_HEADER]; - } - return next(args); -}; -exports.omitRetryHeadersMiddleware = omitRetryHeadersMiddleware; -exports.omitRetryHeadersMiddlewareOptions = { - name: "omitRetryHeadersMiddleware", - tags: ["RETRY", "HEADERS", "OMIT_RETRY_HEADERS"], - relation: "before", - toMiddleware: "awsAuthMiddleware", - override: true, -}; -const getOmitRetryHeadersPlugin = (options) => ({ - applyToStack: (clientStack) => { - clientStack.addRelativeTo((0, exports.omitRetryHeadersMiddleware)(), exports.omitRetryHeadersMiddlewareOptions); - }, -}); -exports.getOmitRetryHeadersPlugin = getOmitRetryHeadersPlugin; diff --git a/node_modules/@smithy/middleware-retry/dist-cjs/retryDecider.js b/node_modules/@smithy/middleware-retry/dist-cjs/retryDecider.js deleted file mode 100644 index 357f740f..00000000 --- a/node_modules/@smithy/middleware-retry/dist-cjs/retryDecider.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.defaultRetryDecider = void 0; -const service_error_classification_1 = require("@smithy/service-error-classification"); -const defaultRetryDecider = (error) => { - if (!error) { - return false; - } - return (0, service_error_classification_1.isRetryableByTrait)(error) || (0, service_error_classification_1.isClockSkewError)(error) || (0, service_error_classification_1.isThrottlingError)(error) || (0, service_error_classification_1.isTransientError)(error); -}; -exports.defaultRetryDecider = defaultRetryDecider; diff --git a/node_modules/@smithy/middleware-retry/dist-cjs/retryMiddleware.js b/node_modules/@smithy/middleware-retry/dist-cjs/retryMiddleware.js deleted file mode 100644 index 5bb31e0f..00000000 --- a/node_modules/@smithy/middleware-retry/dist-cjs/retryMiddleware.js +++ /dev/null @@ -1,110 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getRetryAfterHint = exports.getRetryPlugin = exports.retryMiddlewareOptions = exports.retryMiddleware = void 0; -const protocol_http_1 = require("@smithy/protocol-http"); -const service_error_classification_1 = require("@smithy/service-error-classification"); -const util_retry_1 = require("@smithy/util-retry"); -const uuid_1 = require("uuid"); -const util_1 = require("./util"); -const retryMiddleware = (options) => (next, context) => async (args) => { - let retryStrategy = await options.retryStrategy(); - const maxAttempts = await options.maxAttempts(); - if (isRetryStrategyV2(retryStrategy)) { - retryStrategy = retryStrategy; - let retryToken = await retryStrategy.acquireInitialRetryToken(context["partition_id"]); - let lastError = new Error(); - let attempts = 0; - let totalRetryDelay = 0; - const { request } = args; - if (protocol_http_1.HttpRequest.isInstance(request)) { - request.headers[util_retry_1.INVOCATION_ID_HEADER] = (0, uuid_1.v4)(); - } - while (true) { - try { - if (protocol_http_1.HttpRequest.isInstance(request)) { - request.headers[util_retry_1.REQUEST_HEADER] = `attempt=${attempts + 1}; max=${maxAttempts}`; - } - const { response, output } = await next(args); - retryStrategy.recordSuccess(retryToken); - output.$metadata.attempts = attempts + 1; - output.$metadata.totalRetryDelay = totalRetryDelay; - return { response, output }; - } - catch (e) { - const retryErrorInfo = getRetryErrorInfo(e); - lastError = (0, util_1.asSdkError)(e); - try { - retryToken = await retryStrategy.refreshRetryTokenForRetry(retryToken, retryErrorInfo); - } - catch (refreshError) { - if (!lastError.$metadata) { - lastError.$metadata = {}; - } - lastError.$metadata.attempts = attempts + 1; - lastError.$metadata.totalRetryDelay = totalRetryDelay; - throw lastError; - } - attempts = retryToken.getRetryCount(); - const delay = retryToken.getRetryDelay(); - totalRetryDelay += delay; - await new Promise((resolve) => setTimeout(resolve, delay)); - } - } - } - else { - retryStrategy = retryStrategy; - if (retryStrategy === null || retryStrategy === void 0 ? void 0 : retryStrategy.mode) - context.userAgent = [...(context.userAgent || []), ["cfg/retry-mode", retryStrategy.mode]]; - return retryStrategy.retry(next, args); - } -}; -exports.retryMiddleware = retryMiddleware; -const isRetryStrategyV2 = (retryStrategy) => typeof retryStrategy.acquireInitialRetryToken !== "undefined" && - typeof retryStrategy.refreshRetryTokenForRetry !== "undefined" && - typeof retryStrategy.recordSuccess !== "undefined"; -const getRetryErrorInfo = (error) => { - const errorInfo = { - errorType: getRetryErrorType(error), - }; - const retryAfterHint = (0, exports.getRetryAfterHint)(error.$response); - if (retryAfterHint) { - errorInfo.retryAfterHint = retryAfterHint; - } - return errorInfo; -}; -const getRetryErrorType = (error) => { - if ((0, service_error_classification_1.isThrottlingError)(error)) - return "THROTTLING"; - if ((0, service_error_classification_1.isTransientError)(error)) - return "TRANSIENT"; - if ((0, service_error_classification_1.isServerError)(error)) - return "SERVER_ERROR"; - return "CLIENT_ERROR"; -}; -exports.retryMiddlewareOptions = { - name: "retryMiddleware", - tags: ["RETRY"], - step: "finalizeRequest", - priority: "high", - override: true, -}; -const getRetryPlugin = (options) => ({ - applyToStack: (clientStack) => { - clientStack.add((0, exports.retryMiddleware)(options), exports.retryMiddlewareOptions); - }, -}); -exports.getRetryPlugin = getRetryPlugin; -const getRetryAfterHint = (response) => { - if (!protocol_http_1.HttpResponse.isInstance(response)) - return; - const retryAfterHeaderName = Object.keys(response.headers).find((key) => key.toLowerCase() === "retry-after"); - if (!retryAfterHeaderName) - return; - const retryAfter = response.headers[retryAfterHeaderName]; - const retryAfterSeconds = Number(retryAfter); - if (!Number.isNaN(retryAfterSeconds)) - return new Date(retryAfterSeconds * 1000); - const retryAfterDate = new Date(retryAfter); - return retryAfterDate; -}; -exports.getRetryAfterHint = getRetryAfterHint; diff --git a/node_modules/@smithy/middleware-retry/dist-cjs/types.js b/node_modules/@smithy/middleware-retry/dist-cjs/types.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@smithy/middleware-retry/dist-cjs/types.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@smithy/middleware-retry/dist-cjs/util.js b/node_modules/@smithy/middleware-retry/dist-cjs/util.js deleted file mode 100644 index 28721d3c..00000000 --- a/node_modules/@smithy/middleware-retry/dist-cjs/util.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.asSdkError = void 0; -const asSdkError = (error) => { - if (error instanceof Error) - return error; - if (error instanceof Object) - return Object.assign(new Error(), error); - if (typeof error === "string") - return new Error(error); - return new Error(`AWS SDK error wrapper for ${error}`); -}; -exports.asSdkError = asSdkError; diff --git a/node_modules/@smithy/middleware-retry/dist-es/AdaptiveRetryStrategy.js b/node_modules/@smithy/middleware-retry/dist-es/AdaptiveRetryStrategy.js deleted file mode 100644 index d349451f..00000000 --- a/node_modules/@smithy/middleware-retry/dist-es/AdaptiveRetryStrategy.js +++ /dev/null @@ -1,20 +0,0 @@ -import { DefaultRateLimiter, RETRY_MODES } from "@smithy/util-retry"; -import { StandardRetryStrategy } from "./StandardRetryStrategy"; -export class AdaptiveRetryStrategy extends StandardRetryStrategy { - constructor(maxAttemptsProvider, options) { - const { rateLimiter, ...superOptions } = options ?? {}; - super(maxAttemptsProvider, superOptions); - this.rateLimiter = rateLimiter ?? new DefaultRateLimiter(); - this.mode = RETRY_MODES.ADAPTIVE; - } - async retry(next, args) { - return super.retry(next, args, { - beforeRequest: async () => { - return this.rateLimiter.getSendToken(); - }, - afterRequest: (response) => { - this.rateLimiter.updateClientSendingRate(response); - }, - }); - } -} diff --git a/node_modules/@smithy/middleware-retry/dist-es/StandardRetryStrategy.js b/node_modules/@smithy/middleware-retry/dist-es/StandardRetryStrategy.js deleted file mode 100644 index e718ad67..00000000 --- a/node_modules/@smithy/middleware-retry/dist-es/StandardRetryStrategy.js +++ /dev/null @@ -1,90 +0,0 @@ -import { HttpRequest, HttpResponse } from "@smithy/protocol-http"; -import { isThrottlingError } from "@smithy/service-error-classification"; -import { DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_DELAY_BASE, INITIAL_RETRY_TOKENS, INVOCATION_ID_HEADER, REQUEST_HEADER, RETRY_MODES, THROTTLING_RETRY_DELAY_BASE, } from "@smithy/util-retry"; -import { v4 } from "uuid"; -import { getDefaultRetryQuota } from "./defaultRetryQuota"; -import { defaultDelayDecider } from "./delayDecider"; -import { defaultRetryDecider } from "./retryDecider"; -import { asSdkError } from "./util"; -export class StandardRetryStrategy { - constructor(maxAttemptsProvider, options) { - this.maxAttemptsProvider = maxAttemptsProvider; - this.mode = RETRY_MODES.STANDARD; - this.retryDecider = options?.retryDecider ?? defaultRetryDecider; - this.delayDecider = options?.delayDecider ?? defaultDelayDecider; - this.retryQuota = options?.retryQuota ?? getDefaultRetryQuota(INITIAL_RETRY_TOKENS); - } - shouldRetry(error, attempts, maxAttempts) { - return attempts < maxAttempts && this.retryDecider(error) && this.retryQuota.hasRetryTokens(error); - } - async getMaxAttempts() { - let maxAttempts; - try { - maxAttempts = await this.maxAttemptsProvider(); - } - catch (error) { - maxAttempts = DEFAULT_MAX_ATTEMPTS; - } - return maxAttempts; - } - async retry(next, args, options) { - let retryTokenAmount; - let attempts = 0; - let totalDelay = 0; - const maxAttempts = await this.getMaxAttempts(); - const { request } = args; - if (HttpRequest.isInstance(request)) { - request.headers[INVOCATION_ID_HEADER] = v4(); - } - while (true) { - try { - if (HttpRequest.isInstance(request)) { - request.headers[REQUEST_HEADER] = `attempt=${attempts + 1}; max=${maxAttempts}`; - } - if (options?.beforeRequest) { - await options.beforeRequest(); - } - const { response, output } = await next(args); - if (options?.afterRequest) { - options.afterRequest(response); - } - this.retryQuota.releaseRetryTokens(retryTokenAmount); - output.$metadata.attempts = attempts + 1; - output.$metadata.totalRetryDelay = totalDelay; - return { response, output }; - } - catch (e) { - const err = asSdkError(e); - attempts++; - if (this.shouldRetry(err, attempts, maxAttempts)) { - retryTokenAmount = this.retryQuota.retrieveRetryTokens(err); - const delayFromDecider = this.delayDecider(isThrottlingError(err) ? THROTTLING_RETRY_DELAY_BASE : DEFAULT_RETRY_DELAY_BASE, attempts); - const delayFromResponse = getDelayFromRetryAfterHeader(err.$response); - const delay = Math.max(delayFromResponse || 0, delayFromDecider); - totalDelay += delay; - await new Promise((resolve) => setTimeout(resolve, delay)); - continue; - } - if (!err.$metadata) { - err.$metadata = {}; - } - err.$metadata.attempts = attempts; - err.$metadata.totalRetryDelay = totalDelay; - throw err; - } - } - } -} -const getDelayFromRetryAfterHeader = (response) => { - if (!HttpResponse.isInstance(response)) - return; - const retryAfterHeaderName = Object.keys(response.headers).find((key) => key.toLowerCase() === "retry-after"); - if (!retryAfterHeaderName) - return; - const retryAfter = response.headers[retryAfterHeaderName]; - const retryAfterSeconds = Number(retryAfter); - if (!Number.isNaN(retryAfterSeconds)) - return retryAfterSeconds * 1000; - const retryAfterDate = new Date(retryAfter); - return retryAfterDate.getTime() - Date.now(); -}; diff --git a/node_modules/@smithy/middleware-retry/dist-es/configurations.js b/node_modules/@smithy/middleware-retry/dist-es/configurations.js deleted file mode 100644 index 55834b0c..00000000 --- a/node_modules/@smithy/middleware-retry/dist-es/configurations.js +++ /dev/null @@ -1,52 +0,0 @@ -import { normalizeProvider } from "@smithy/util-middleware"; -import { AdaptiveRetryStrategy, DEFAULT_MAX_ATTEMPTS, DEFAULT_RETRY_MODE, RETRY_MODES, StandardRetryStrategy, } from "@smithy/util-retry"; -export const ENV_MAX_ATTEMPTS = "AWS_MAX_ATTEMPTS"; -export const CONFIG_MAX_ATTEMPTS = "max_attempts"; -export const NODE_MAX_ATTEMPT_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => { - const value = env[ENV_MAX_ATTEMPTS]; - if (!value) - return undefined; - const maxAttempt = parseInt(value); - if (Number.isNaN(maxAttempt)) { - throw new Error(`Environment variable ${ENV_MAX_ATTEMPTS} mast be a number, got "${value}"`); - } - return maxAttempt; - }, - configFileSelector: (profile) => { - const value = profile[CONFIG_MAX_ATTEMPTS]; - if (!value) - return undefined; - const maxAttempt = parseInt(value); - if (Number.isNaN(maxAttempt)) { - throw new Error(`Shared config file entry ${CONFIG_MAX_ATTEMPTS} mast be a number, got "${value}"`); - } - return maxAttempt; - }, - default: DEFAULT_MAX_ATTEMPTS, -}; -export const resolveRetryConfig = (input) => { - const { retryStrategy } = input; - const maxAttempts = normalizeProvider(input.maxAttempts ?? DEFAULT_MAX_ATTEMPTS); - return { - ...input, - maxAttempts, - retryStrategy: async () => { - if (retryStrategy) { - return retryStrategy; - } - const retryMode = await normalizeProvider(input.retryMode)(); - if (retryMode === RETRY_MODES.ADAPTIVE) { - return new AdaptiveRetryStrategy(maxAttempts); - } - return new StandardRetryStrategy(maxAttempts); - }, - }; -}; -export const ENV_RETRY_MODE = "AWS_RETRY_MODE"; -export const CONFIG_RETRY_MODE = "retry_mode"; -export const NODE_RETRY_MODE_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => env[ENV_RETRY_MODE], - configFileSelector: (profile) => profile[CONFIG_RETRY_MODE], - default: DEFAULT_RETRY_MODE, -}; diff --git a/node_modules/@smithy/middleware-retry/dist-es/defaultRetryQuota.js b/node_modules/@smithy/middleware-retry/dist-es/defaultRetryQuota.js deleted file mode 100644 index 4bf67716..00000000 --- a/node_modules/@smithy/middleware-retry/dist-es/defaultRetryQuota.js +++ /dev/null @@ -1,27 +0,0 @@ -import { NO_RETRY_INCREMENT, RETRY_COST, TIMEOUT_RETRY_COST } from "@smithy/util-retry"; -export const getDefaultRetryQuota = (initialRetryTokens, options) => { - const MAX_CAPACITY = initialRetryTokens; - const noRetryIncrement = options?.noRetryIncrement ?? NO_RETRY_INCREMENT; - const retryCost = options?.retryCost ?? RETRY_COST; - const timeoutRetryCost = options?.timeoutRetryCost ?? TIMEOUT_RETRY_COST; - let availableCapacity = initialRetryTokens; - const getCapacityAmount = (error) => (error.name === "TimeoutError" ? timeoutRetryCost : retryCost); - const hasRetryTokens = (error) => getCapacityAmount(error) <= availableCapacity; - const retrieveRetryTokens = (error) => { - if (!hasRetryTokens(error)) { - throw new Error("No retry token available"); - } - const capacityAmount = getCapacityAmount(error); - availableCapacity -= capacityAmount; - return capacityAmount; - }; - const releaseRetryTokens = (capacityReleaseAmount) => { - availableCapacity += capacityReleaseAmount ?? noRetryIncrement; - availableCapacity = Math.min(availableCapacity, MAX_CAPACITY); - }; - return Object.freeze({ - hasRetryTokens, - retrieveRetryTokens, - releaseRetryTokens, - }); -}; diff --git a/node_modules/@smithy/middleware-retry/dist-es/delayDecider.js b/node_modules/@smithy/middleware-retry/dist-es/delayDecider.js deleted file mode 100644 index 2928506a..00000000 --- a/node_modules/@smithy/middleware-retry/dist-es/delayDecider.js +++ /dev/null @@ -1,2 +0,0 @@ -import { MAXIMUM_RETRY_DELAY } from "@smithy/util-retry"; -export const defaultDelayDecider = (delayBase, attempts) => Math.floor(Math.min(MAXIMUM_RETRY_DELAY, Math.random() * 2 ** attempts * delayBase)); diff --git a/node_modules/@smithy/middleware-retry/dist-es/index.js b/node_modules/@smithy/middleware-retry/dist-es/index.js deleted file mode 100644 index 9ebe326a..00000000 --- a/node_modules/@smithy/middleware-retry/dist-es/index.js +++ /dev/null @@ -1,7 +0,0 @@ -export * from "./AdaptiveRetryStrategy"; -export * from "./StandardRetryStrategy"; -export * from "./configurations"; -export * from "./delayDecider"; -export * from "./omitRetryHeadersMiddleware"; -export * from "./retryDecider"; -export * from "./retryMiddleware"; diff --git a/node_modules/@smithy/middleware-retry/dist-es/omitRetryHeadersMiddleware.js b/node_modules/@smithy/middleware-retry/dist-es/omitRetryHeadersMiddleware.js deleted file mode 100644 index cb3c3724..00000000 --- a/node_modules/@smithy/middleware-retry/dist-es/omitRetryHeadersMiddleware.js +++ /dev/null @@ -1,22 +0,0 @@ -import { HttpRequest } from "@smithy/protocol-http"; -import { INVOCATION_ID_HEADER, REQUEST_HEADER } from "@smithy/util-retry"; -export const omitRetryHeadersMiddleware = () => (next) => async (args) => { - const { request } = args; - if (HttpRequest.isInstance(request)) { - delete request.headers[INVOCATION_ID_HEADER]; - delete request.headers[REQUEST_HEADER]; - } - return next(args); -}; -export const omitRetryHeadersMiddlewareOptions = { - name: "omitRetryHeadersMiddleware", - tags: ["RETRY", "HEADERS", "OMIT_RETRY_HEADERS"], - relation: "before", - toMiddleware: "awsAuthMiddleware", - override: true, -}; -export const getOmitRetryHeadersPlugin = (options) => ({ - applyToStack: (clientStack) => { - clientStack.addRelativeTo(omitRetryHeadersMiddleware(), omitRetryHeadersMiddlewareOptions); - }, -}); diff --git a/node_modules/@smithy/middleware-retry/dist-es/retryDecider.js b/node_modules/@smithy/middleware-retry/dist-es/retryDecider.js deleted file mode 100644 index b965fba0..00000000 --- a/node_modules/@smithy/middleware-retry/dist-es/retryDecider.js +++ /dev/null @@ -1,7 +0,0 @@ -import { isClockSkewError, isRetryableByTrait, isThrottlingError, isTransientError, } from "@smithy/service-error-classification"; -export const defaultRetryDecider = (error) => { - if (!error) { - return false; - } - return isRetryableByTrait(error) || isClockSkewError(error) || isThrottlingError(error) || isTransientError(error); -}; diff --git a/node_modules/@smithy/middleware-retry/dist-es/retryMiddleware.js b/node_modules/@smithy/middleware-retry/dist-es/retryMiddleware.js deleted file mode 100644 index 37aea470..00000000 --- a/node_modules/@smithy/middleware-retry/dist-es/retryMiddleware.js +++ /dev/null @@ -1,104 +0,0 @@ -import { HttpRequest, HttpResponse } from "@smithy/protocol-http"; -import { isServerError, isThrottlingError, isTransientError } from "@smithy/service-error-classification"; -import { INVOCATION_ID_HEADER, REQUEST_HEADER } from "@smithy/util-retry"; -import { v4 } from "uuid"; -import { asSdkError } from "./util"; -export const retryMiddleware = (options) => (next, context) => async (args) => { - let retryStrategy = await options.retryStrategy(); - const maxAttempts = await options.maxAttempts(); - if (isRetryStrategyV2(retryStrategy)) { - retryStrategy = retryStrategy; - let retryToken = await retryStrategy.acquireInitialRetryToken(context["partition_id"]); - let lastError = new Error(); - let attempts = 0; - let totalRetryDelay = 0; - const { request } = args; - if (HttpRequest.isInstance(request)) { - request.headers[INVOCATION_ID_HEADER] = v4(); - } - while (true) { - try { - if (HttpRequest.isInstance(request)) { - request.headers[REQUEST_HEADER] = `attempt=${attempts + 1}; max=${maxAttempts}`; - } - const { response, output } = await next(args); - retryStrategy.recordSuccess(retryToken); - output.$metadata.attempts = attempts + 1; - output.$metadata.totalRetryDelay = totalRetryDelay; - return { response, output }; - } - catch (e) { - const retryErrorInfo = getRetryErrorInfo(e); - lastError = asSdkError(e); - try { - retryToken = await retryStrategy.refreshRetryTokenForRetry(retryToken, retryErrorInfo); - } - catch (refreshError) { - if (!lastError.$metadata) { - lastError.$metadata = {}; - } - lastError.$metadata.attempts = attempts + 1; - lastError.$metadata.totalRetryDelay = totalRetryDelay; - throw lastError; - } - attempts = retryToken.getRetryCount(); - const delay = retryToken.getRetryDelay(); - totalRetryDelay += delay; - await new Promise((resolve) => setTimeout(resolve, delay)); - } - } - } - else { - retryStrategy = retryStrategy; - if (retryStrategy?.mode) - context.userAgent = [...(context.userAgent || []), ["cfg/retry-mode", retryStrategy.mode]]; - return retryStrategy.retry(next, args); - } -}; -const isRetryStrategyV2 = (retryStrategy) => typeof retryStrategy.acquireInitialRetryToken !== "undefined" && - typeof retryStrategy.refreshRetryTokenForRetry !== "undefined" && - typeof retryStrategy.recordSuccess !== "undefined"; -const getRetryErrorInfo = (error) => { - const errorInfo = { - errorType: getRetryErrorType(error), - }; - const retryAfterHint = getRetryAfterHint(error.$response); - if (retryAfterHint) { - errorInfo.retryAfterHint = retryAfterHint; - } - return errorInfo; -}; -const getRetryErrorType = (error) => { - if (isThrottlingError(error)) - return "THROTTLING"; - if (isTransientError(error)) - return "TRANSIENT"; - if (isServerError(error)) - return "SERVER_ERROR"; - return "CLIENT_ERROR"; -}; -export const retryMiddlewareOptions = { - name: "retryMiddleware", - tags: ["RETRY"], - step: "finalizeRequest", - priority: "high", - override: true, -}; -export const getRetryPlugin = (options) => ({ - applyToStack: (clientStack) => { - clientStack.add(retryMiddleware(options), retryMiddlewareOptions); - }, -}); -export const getRetryAfterHint = (response) => { - if (!HttpResponse.isInstance(response)) - return; - const retryAfterHeaderName = Object.keys(response.headers).find((key) => key.toLowerCase() === "retry-after"); - if (!retryAfterHeaderName) - return; - const retryAfter = response.headers[retryAfterHeaderName]; - const retryAfterSeconds = Number(retryAfter); - if (!Number.isNaN(retryAfterSeconds)) - return new Date(retryAfterSeconds * 1000); - const retryAfterDate = new Date(retryAfter); - return retryAfterDate; -}; diff --git a/node_modules/@smithy/middleware-retry/dist-es/types.js b/node_modules/@smithy/middleware-retry/dist-es/types.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@smithy/middleware-retry/dist-es/types.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@smithy/middleware-retry/dist-es/util.js b/node_modules/@smithy/middleware-retry/dist-es/util.js deleted file mode 100644 index f45e6b4d..00000000 --- a/node_modules/@smithy/middleware-retry/dist-es/util.js +++ /dev/null @@ -1,9 +0,0 @@ -export const asSdkError = (error) => { - if (error instanceof Error) - return error; - if (error instanceof Object) - return Object.assign(new Error(), error); - if (typeof error === "string") - return new Error(error); - return new Error(`AWS SDK error wrapper for ${error}`); -}; diff --git a/node_modules/@smithy/middleware-retry/dist-types/AdaptiveRetryStrategy.d.ts b/node_modules/@smithy/middleware-retry/dist-types/AdaptiveRetryStrategy.d.ts deleted file mode 100644 index 3ae352b1..00000000 --- a/node_modules/@smithy/middleware-retry/dist-types/AdaptiveRetryStrategy.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { FinalizeHandler, FinalizeHandlerArguments, MetadataBearer, Provider } from "@smithy/types"; -import { RateLimiter } from "@smithy/util-retry"; -import { StandardRetryStrategy, StandardRetryStrategyOptions } from "./StandardRetryStrategy"; -/** - * Strategy options to be passed to AdaptiveRetryStrategy - */ -export interface AdaptiveRetryStrategyOptions extends StandardRetryStrategyOptions { - rateLimiter?: RateLimiter; -} -/** - * @deprecated use AdaptiveRetryStrategy from @smithy/util-retry - */ -export declare class AdaptiveRetryStrategy extends StandardRetryStrategy { - private rateLimiter; - constructor(maxAttemptsProvider: Provider, options?: AdaptiveRetryStrategyOptions); - retry(next: FinalizeHandler, args: FinalizeHandlerArguments): Promise<{ - response: unknown; - output: Ouput; - }>; -} diff --git a/node_modules/@smithy/middleware-retry/dist-types/StandardRetryStrategy.d.ts b/node_modules/@smithy/middleware-retry/dist-types/StandardRetryStrategy.d.ts deleted file mode 100644 index 5496e257..00000000 --- a/node_modules/@smithy/middleware-retry/dist-types/StandardRetryStrategy.d.ts +++ /dev/null @@ -1,30 +0,0 @@ -import { FinalizeHandler, FinalizeHandlerArguments, MetadataBearer, Provider, RetryStrategy } from "@smithy/types"; -import { DelayDecider, RetryDecider, RetryQuota } from "./types"; -/** - * Strategy options to be passed to StandardRetryStrategy - */ -export interface StandardRetryStrategyOptions { - retryDecider?: RetryDecider; - delayDecider?: DelayDecider; - retryQuota?: RetryQuota; -} -/** - * @deprecated use StandardRetryStrategy from @smithy/util-retry - */ -export declare class StandardRetryStrategy implements RetryStrategy { - private readonly maxAttemptsProvider; - private retryDecider; - private delayDecider; - private retryQuota; - mode: string; - constructor(maxAttemptsProvider: Provider, options?: StandardRetryStrategyOptions); - private shouldRetry; - private getMaxAttempts; - retry(next: FinalizeHandler, args: FinalizeHandlerArguments, options?: { - beforeRequest: Function; - afterRequest: Function; - }): Promise<{ - response: unknown; - output: Ouput; - }>; -} diff --git a/node_modules/@smithy/middleware-retry/dist-types/configurations.d.ts b/node_modules/@smithy/middleware-retry/dist-types/configurations.d.ts deleted file mode 100644 index 9058fb4f..00000000 --- a/node_modules/@smithy/middleware-retry/dist-types/configurations.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -import { LoadedConfigSelectors } from "@smithy/node-config-provider"; -import { Provider, RetryStrategy, RetryStrategyV2 } from "@smithy/types"; -export declare const ENV_MAX_ATTEMPTS = "AWS_MAX_ATTEMPTS"; -export declare const CONFIG_MAX_ATTEMPTS = "max_attempts"; -export declare const NODE_MAX_ATTEMPT_CONFIG_OPTIONS: LoadedConfigSelectors; -/** - * @public - */ -export interface RetryInputConfig { - /** - * The maximum number of times requests that encounter retryable failures should be attempted. - */ - maxAttempts?: number | Provider; - /** - * The strategy to retry the request. Using built-in exponential backoff strategy by default. - */ - retryStrategy?: RetryStrategy | RetryStrategyV2; -} -interface PreviouslyResolved { - /** - * Specifies provider for retry algorithm to use. - * @internal - */ - retryMode: string | Provider; -} -export interface RetryResolvedConfig { - /** - * Resolved value for input config {@link RetryInputConfig.maxAttempts} - */ - maxAttempts: Provider; - /** - * Resolved value for input config {@link RetryInputConfig.retryStrategy} - */ - retryStrategy: Provider; -} -export declare const resolveRetryConfig: (input: T & PreviouslyResolved & RetryInputConfig) => T & RetryResolvedConfig; -export declare const ENV_RETRY_MODE = "AWS_RETRY_MODE"; -export declare const CONFIG_RETRY_MODE = "retry_mode"; -export declare const NODE_RETRY_MODE_CONFIG_OPTIONS: LoadedConfigSelectors; -export {}; diff --git a/node_modules/@smithy/middleware-retry/dist-types/defaultRetryQuota.d.ts b/node_modules/@smithy/middleware-retry/dist-types/defaultRetryQuota.d.ts deleted file mode 100644 index 811bb12e..00000000 --- a/node_modules/@smithy/middleware-retry/dist-types/defaultRetryQuota.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { RetryQuota } from "./types"; -export interface DefaultRetryQuotaOptions { - /** - * The total amount of retry token to be incremented from retry token balance - * if an SDK operation invocation succeeds without requiring a retry request. - */ - noRetryIncrement?: number; - /** - * The total amount of retry tokens to be decremented from retry token balance. - */ - retryCost?: number; - /** - * The total amount of retry tokens to be decremented from retry token balance - * when a throttling error is encountered. - */ - timeoutRetryCost?: number; -} -export declare const getDefaultRetryQuota: (initialRetryTokens: number, options?: DefaultRetryQuotaOptions) => RetryQuota; diff --git a/node_modules/@smithy/middleware-retry/dist-types/delayDecider.d.ts b/node_modules/@smithy/middleware-retry/dist-types/delayDecider.d.ts deleted file mode 100644 index a7251fce..00000000 --- a/node_modules/@smithy/middleware-retry/dist-types/delayDecider.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/** - * Calculate a capped, fully-jittered exponential backoff time. - */ -export declare const defaultDelayDecider: (delayBase: number, attempts: number) => number; diff --git a/node_modules/@smithy/middleware-retry/dist-types/index.d.ts b/node_modules/@smithy/middleware-retry/dist-types/index.d.ts deleted file mode 100644 index 9ebe326a..00000000 --- a/node_modules/@smithy/middleware-retry/dist-types/index.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -export * from "./AdaptiveRetryStrategy"; -export * from "./StandardRetryStrategy"; -export * from "./configurations"; -export * from "./delayDecider"; -export * from "./omitRetryHeadersMiddleware"; -export * from "./retryDecider"; -export * from "./retryMiddleware"; diff --git a/node_modules/@smithy/middleware-retry/dist-types/omitRetryHeadersMiddleware.d.ts b/node_modules/@smithy/middleware-retry/dist-types/omitRetryHeadersMiddleware.d.ts deleted file mode 100644 index 4e0d52c7..00000000 --- a/node_modules/@smithy/middleware-retry/dist-types/omitRetryHeadersMiddleware.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { FinalizeHandler, MetadataBearer, Pluggable, RelativeMiddlewareOptions } from "@smithy/types"; -export declare const omitRetryHeadersMiddleware: () => (next: FinalizeHandler) => FinalizeHandler; -export declare const omitRetryHeadersMiddlewareOptions: RelativeMiddlewareOptions; -export declare const getOmitRetryHeadersPlugin: (options: unknown) => Pluggable; diff --git a/node_modules/@smithy/middleware-retry/dist-types/retryDecider.d.ts b/node_modules/@smithy/middleware-retry/dist-types/retryDecider.d.ts deleted file mode 100644 index 2e682f49..00000000 --- a/node_modules/@smithy/middleware-retry/dist-types/retryDecider.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { SdkError } from "@smithy/types"; -export declare const defaultRetryDecider: (error: SdkError) => boolean; diff --git a/node_modules/@smithy/middleware-retry/dist-types/retryMiddleware.d.ts b/node_modules/@smithy/middleware-retry/dist-types/retryMiddleware.d.ts deleted file mode 100644 index 38fd5716..00000000 --- a/node_modules/@smithy/middleware-retry/dist-types/retryMiddleware.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { AbsoluteLocation, FinalizeHandler, FinalizeRequestHandlerOptions, HandlerExecutionContext, MetadataBearer, Pluggable } from "@smithy/types"; -import { RetryResolvedConfig } from "./configurations"; -export declare const retryMiddleware: (options: RetryResolvedConfig) => (next: FinalizeHandler, context: HandlerExecutionContext) => FinalizeHandler; -export declare const retryMiddlewareOptions: FinalizeRequestHandlerOptions & AbsoluteLocation; -export declare const getRetryPlugin: (options: RetryResolvedConfig) => Pluggable; -export declare const getRetryAfterHint: (response: unknown) => Date | undefined; diff --git a/node_modules/@smithy/middleware-retry/dist-types/ts3.4/AdaptiveRetryStrategy.d.ts b/node_modules/@smithy/middleware-retry/dist-types/ts3.4/AdaptiveRetryStrategy.d.ts deleted file mode 100644 index 968e63de..00000000 --- a/node_modules/@smithy/middleware-retry/dist-types/ts3.4/AdaptiveRetryStrategy.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { FinalizeHandler, FinalizeHandlerArguments, MetadataBearer, Provider } from "@smithy/types"; -import { RateLimiter } from "@smithy/util-retry"; -import { StandardRetryStrategy, StandardRetryStrategyOptions } from "./StandardRetryStrategy"; -/** - * Strategy options to be passed to AdaptiveRetryStrategy - */ -export interface AdaptiveRetryStrategyOptions extends StandardRetryStrategyOptions { - rateLimiter?: RateLimiter; -} -/** - * @deprecated use AdaptiveRetryStrategy from @smithy/util-retry - */ -export declare class AdaptiveRetryStrategy extends StandardRetryStrategy { - private rateLimiter; - constructor(maxAttemptsProvider: Provider, options?: AdaptiveRetryStrategyOptions); - retry(next: FinalizeHandler, args: FinalizeHandlerArguments): Promise<{ - response: unknown; - output: Ouput; - }>; -} diff --git a/node_modules/@smithy/middleware-retry/dist-types/ts3.4/StandardRetryStrategy.d.ts b/node_modules/@smithy/middleware-retry/dist-types/ts3.4/StandardRetryStrategy.d.ts deleted file mode 100644 index 4c1b09d0..00000000 --- a/node_modules/@smithy/middleware-retry/dist-types/ts3.4/StandardRetryStrategy.d.ts +++ /dev/null @@ -1,30 +0,0 @@ -import { FinalizeHandler, FinalizeHandlerArguments, MetadataBearer, Provider, RetryStrategy } from "@smithy/types"; -import { DelayDecider, RetryDecider, RetryQuota } from "./types"; -/** - * Strategy options to be passed to StandardRetryStrategy - */ -export interface StandardRetryStrategyOptions { - retryDecider?: RetryDecider; - delayDecider?: DelayDecider; - retryQuota?: RetryQuota; -} -/** - * @deprecated use StandardRetryStrategy from @smithy/util-retry - */ -export declare class StandardRetryStrategy implements RetryStrategy { - private readonly maxAttemptsProvider; - private retryDecider; - private delayDecider; - private retryQuota; - mode: string; - constructor(maxAttemptsProvider: Provider, options?: StandardRetryStrategyOptions); - private shouldRetry; - private getMaxAttempts; - retry(next: FinalizeHandler, args: FinalizeHandlerArguments, options?: { - beforeRequest: Function; - afterRequest: Function; - }): Promise<{ - response: unknown; - output: Ouput; - }>; -} diff --git a/node_modules/@smithy/middleware-retry/dist-types/ts3.4/configurations.d.ts b/node_modules/@smithy/middleware-retry/dist-types/ts3.4/configurations.d.ts deleted file mode 100644 index dff781cf..00000000 --- a/node_modules/@smithy/middleware-retry/dist-types/ts3.4/configurations.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -import { LoadedConfigSelectors } from "@smithy/node-config-provider"; -import { Provider, RetryStrategy, RetryStrategyV2 } from "@smithy/types"; -export declare const ENV_MAX_ATTEMPTS = "AWS_MAX_ATTEMPTS"; -export declare const CONFIG_MAX_ATTEMPTS = "max_attempts"; -export declare const NODE_MAX_ATTEMPT_CONFIG_OPTIONS: LoadedConfigSelectors; -/** - * @public - */ -export interface RetryInputConfig { - /** - * The maximum number of times requests that encounter retryable failures should be attempted. - */ - maxAttempts?: number | Provider; - /** - * The strategy to retry the request. Using built-in exponential backoff strategy by default. - */ - retryStrategy?: RetryStrategy | RetryStrategyV2; -} -interface PreviouslyResolved { - /** - * Specifies provider for retry algorithm to use. - * @internal - */ - retryMode: string | Provider; -} -export interface RetryResolvedConfig { - /** - * Resolved value for input config {@link RetryInputConfig.maxAttempts} - */ - maxAttempts: Provider; - /** - * Resolved value for input config {@link RetryInputConfig.retryStrategy} - */ - retryStrategy: Provider; -} -export declare const resolveRetryConfig: (input: T & PreviouslyResolved & RetryInputConfig) => T & RetryResolvedConfig; -export declare const ENV_RETRY_MODE = "AWS_RETRY_MODE"; -export declare const CONFIG_RETRY_MODE = "retry_mode"; -export declare const NODE_RETRY_MODE_CONFIG_OPTIONS: LoadedConfigSelectors; -export {}; diff --git a/node_modules/@smithy/middleware-retry/dist-types/ts3.4/defaultRetryQuota.d.ts b/node_modules/@smithy/middleware-retry/dist-types/ts3.4/defaultRetryQuota.d.ts deleted file mode 100644 index 461f3462..00000000 --- a/node_modules/@smithy/middleware-retry/dist-types/ts3.4/defaultRetryQuota.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { RetryQuota } from "./types"; -export interface DefaultRetryQuotaOptions { - /** - * The total amount of retry token to be incremented from retry token balance - * if an SDK operation invocation succeeds without requiring a retry request. - */ - noRetryIncrement?: number; - /** - * The total amount of retry tokens to be decremented from retry token balance. - */ - retryCost?: number; - /** - * The total amount of retry tokens to be decremented from retry token balance - * when a throttling error is encountered. - */ - timeoutRetryCost?: number; -} -export declare const getDefaultRetryQuota: (initialRetryTokens: number, options?: DefaultRetryQuotaOptions) => RetryQuota; diff --git a/node_modules/@smithy/middleware-retry/dist-types/ts3.4/delayDecider.d.ts b/node_modules/@smithy/middleware-retry/dist-types/ts3.4/delayDecider.d.ts deleted file mode 100644 index 8516ebae..00000000 --- a/node_modules/@smithy/middleware-retry/dist-types/ts3.4/delayDecider.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/** - * Calculate a capped, fully-jittered exponential backoff time. - */ -export declare const defaultDelayDecider: (delayBase: number, attempts: number) => number; diff --git a/node_modules/@smithy/middleware-retry/dist-types/ts3.4/index.d.ts b/node_modules/@smithy/middleware-retry/dist-types/ts3.4/index.d.ts deleted file mode 100644 index e366bbbd..00000000 --- a/node_modules/@smithy/middleware-retry/dist-types/ts3.4/index.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -export * from "./AdaptiveRetryStrategy"; -export * from "./StandardRetryStrategy"; -export * from "./configurations"; -export * from "./delayDecider"; -export * from "./omitRetryHeadersMiddleware"; -export * from "./retryDecider"; -export * from "./retryMiddleware"; diff --git a/node_modules/@smithy/middleware-retry/dist-types/ts3.4/omitRetryHeadersMiddleware.d.ts b/node_modules/@smithy/middleware-retry/dist-types/ts3.4/omitRetryHeadersMiddleware.d.ts deleted file mode 100644 index 23f0b71a..00000000 --- a/node_modules/@smithy/middleware-retry/dist-types/ts3.4/omitRetryHeadersMiddleware.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { FinalizeHandler, MetadataBearer, Pluggable, RelativeMiddlewareOptions } from "@smithy/types"; -export declare const omitRetryHeadersMiddleware: () => (next: FinalizeHandler) => FinalizeHandler; -export declare const omitRetryHeadersMiddlewareOptions: RelativeMiddlewareOptions; -export declare const getOmitRetryHeadersPlugin: (options: unknown) => Pluggable; diff --git a/node_modules/@smithy/middleware-retry/dist-types/ts3.4/retryDecider.d.ts b/node_modules/@smithy/middleware-retry/dist-types/ts3.4/retryDecider.d.ts deleted file mode 100644 index a57c321f..00000000 --- a/node_modules/@smithy/middleware-retry/dist-types/ts3.4/retryDecider.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { SdkError } from "@smithy/types"; -export declare const defaultRetryDecider: (error: SdkError) => boolean; diff --git a/node_modules/@smithy/middleware-retry/dist-types/ts3.4/retryMiddleware.d.ts b/node_modules/@smithy/middleware-retry/dist-types/ts3.4/retryMiddleware.d.ts deleted file mode 100644 index 99eb6ae2..00000000 --- a/node_modules/@smithy/middleware-retry/dist-types/ts3.4/retryMiddleware.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { AbsoluteLocation, FinalizeHandler, FinalizeRequestHandlerOptions, HandlerExecutionContext, MetadataBearer, Pluggable } from "@smithy/types"; -import { RetryResolvedConfig } from "./configurations"; -export declare const retryMiddleware: (options: RetryResolvedConfig) => (next: FinalizeHandler, context: HandlerExecutionContext) => FinalizeHandler; -export declare const retryMiddlewareOptions: FinalizeRequestHandlerOptions & AbsoluteLocation; -export declare const getRetryPlugin: (options: RetryResolvedConfig) => Pluggable; -export declare const getRetryAfterHint: (response: unknown) => Date | undefined; diff --git a/node_modules/@smithy/middleware-retry/dist-types/ts3.4/types.d.ts b/node_modules/@smithy/middleware-retry/dist-types/ts3.4/types.d.ts deleted file mode 100644 index 99d2c115..00000000 --- a/node_modules/@smithy/middleware-retry/dist-types/ts3.4/types.d.ts +++ /dev/null @@ -1,53 +0,0 @@ -import { SdkError } from "@smithy/types"; -/** - * Determines whether an error is retryable based on the number of retries - * already attempted, the HTTP status code, and the error received (if any). - * - * @param error - The error encountered. - */ -export interface RetryDecider { - (error: SdkError): boolean; -} -/** - * Determines the number of milliseconds to wait before retrying an action. - * - * @param delayBase - The base delay (in milliseconds). - * @param attempts - The number of times the action has already been tried. - */ -export interface DelayDecider { - (delayBase: number, attempts: number): number; -} -/** - * Interface that specifies the retry quota behavior. - */ -export interface RetryQuota { - /** - * returns true if retry tokens are available from the retry quota bucket. - */ - hasRetryTokens: (error: SdkError) => boolean; - /** - * returns token amount from the retry quota bucket. - * throws error is retry tokens are not available. - */ - retrieveRetryTokens: (error: SdkError) => number; - /** - * releases tokens back to the retry quota. - */ - releaseRetryTokens: (releaseCapacityAmount?: number) => void; -} -export interface RateLimiter { - /** - * If there is sufficient capacity (tokens) available, it immediately returns. - * If there is not sufficient capacity, it will either sleep a certain amount - * of time until the rate limiter can retrieve a token from its token bucket - * or raise an exception indicating there is insufficient capacity. - */ - getSendToken: () => Promise; - /** - * Updates the client sending rate based on response. - * If the response was successful, the capacity and fill rate are increased. - * If the response was a throttling response, the capacity and fill rate are - * decreased. Transient errors do not affect the rate limiter. - */ - updateClientSendingRate: (response: any) => void; -} diff --git a/node_modules/@smithy/middleware-retry/dist-types/ts3.4/util.d.ts b/node_modules/@smithy/middleware-retry/dist-types/ts3.4/util.d.ts deleted file mode 100644 index 7684a9fe..00000000 --- a/node_modules/@smithy/middleware-retry/dist-types/ts3.4/util.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { SdkError } from "@smithy/types"; -export declare const asSdkError: (error: unknown) => SdkError; diff --git a/node_modules/@smithy/middleware-retry/dist-types/types.d.ts b/node_modules/@smithy/middleware-retry/dist-types/types.d.ts deleted file mode 100644 index 5a4849cd..00000000 --- a/node_modules/@smithy/middleware-retry/dist-types/types.d.ts +++ /dev/null @@ -1,53 +0,0 @@ -import { SdkError } from "@smithy/types"; -/** - * Determines whether an error is retryable based on the number of retries - * already attempted, the HTTP status code, and the error received (if any). - * - * @param error - The error encountered. - */ -export interface RetryDecider { - (error: SdkError): boolean; -} -/** - * Determines the number of milliseconds to wait before retrying an action. - * - * @param delayBase - The base delay (in milliseconds). - * @param attempts - The number of times the action has already been tried. - */ -export interface DelayDecider { - (delayBase: number, attempts: number): number; -} -/** - * Interface that specifies the retry quota behavior. - */ -export interface RetryQuota { - /** - * returns true if retry tokens are available from the retry quota bucket. - */ - hasRetryTokens: (error: SdkError) => boolean; - /** - * returns token amount from the retry quota bucket. - * throws error is retry tokens are not available. - */ - retrieveRetryTokens: (error: SdkError) => number; - /** - * releases tokens back to the retry quota. - */ - releaseRetryTokens: (releaseCapacityAmount?: number) => void; -} -export interface RateLimiter { - /** - * If there is sufficient capacity (tokens) available, it immediately returns. - * If there is not sufficient capacity, it will either sleep a certain amount - * of time until the rate limiter can retrieve a token from its token bucket - * or raise an exception indicating there is insufficient capacity. - */ - getSendToken: () => Promise; - /** - * Updates the client sending rate based on response. - * If the response was successful, the capacity and fill rate are increased. - * If the response was a throttling response, the capacity and fill rate are - * decreased. Transient errors do not affect the rate limiter. - */ - updateClientSendingRate: (response: any) => void; -} diff --git a/node_modules/@smithy/middleware-retry/dist-types/util.d.ts b/node_modules/@smithy/middleware-retry/dist-types/util.d.ts deleted file mode 100644 index 00939b8e..00000000 --- a/node_modules/@smithy/middleware-retry/dist-types/util.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { SdkError } from "@smithy/types"; -export declare const asSdkError: (error: unknown) => SdkError; diff --git a/node_modules/@smithy/middleware-retry/package.json b/node_modules/@smithy/middleware-retry/package.json deleted file mode 100644 index 7775e3a4..00000000 --- a/node_modules/@smithy/middleware-retry/package.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "name": "@smithy/middleware-retry", - "version": "2.0.21", - "scripts": { - "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", - "build:cjs": "yarn g:tsc -p tsconfig.cjs.json", - "build:es": "yarn g:tsc -p tsconfig.es.json", - "build:types": "yarn g:tsc -p tsconfig.types.json", - "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", - "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz", - "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"", - "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"", - "extract:docs": "api-extractor run --local", - "test": "yarn g:jest", - "test:integration": "yarn g:jest --config jest.config.integ.js" - }, - "main": "./dist-cjs/index.js", - "module": "./dist-es/index.js", - "types": "./dist-types/index.d.ts", - "author": { - "name": "AWS SDK for JavaScript Team", - "url": "https://aws.amazon.com/javascript/" - }, - "license": "Apache-2.0", - "dependencies": { - "@smithy/node-config-provider": "^2.1.6", - "@smithy/protocol-http": "^3.0.10", - "@smithy/service-error-classification": "^2.0.7", - "@smithy/types": "^2.6.0", - "@smithy/util-middleware": "^2.0.7", - "@smithy/util-retry": "^2.0.7", - "tslib": "^2.5.0", - "uuid": "^8.3.2" - }, - "devDependencies": { - "@smithy/util-test": "^0.1.10", - "@tsconfig/recommended": "1.0.1", - "@types/uuid": "^8.3.0", - "concurrently": "7.0.0", - "downlevel-dts": "0.10.1", - "rimraf": "3.0.2", - "typedoc": "0.23.23" - }, - "engines": { - "node": ">=14.0.0" - }, - "typesVersions": { - "<4.0": { - "dist-types/*": [ - "dist-types/ts3.4/*" - ] - } - }, - "files": [ - "dist-*/**" - ], - "homepage": "https://github.com/awslabs/smithy-typescript/tree/main/packages/middleware-retry", - "repository": { - "type": "git", - "url": "https://github.com/awslabs/smithy-typescript.git", - "directory": "packages/middleware-retry" - }, - "typedoc": { - "entryPoint": "src/index.ts" - }, - "publishConfig": { - "directory": ".release/package" - } -} \ No newline at end of file diff --git a/node_modules/@smithy/middleware-serde/LICENSE b/node_modules/@smithy/middleware-serde/LICENSE deleted file mode 100644 index e907b586..00000000 --- a/node_modules/@smithy/middleware-serde/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/node_modules/@smithy/middleware-serde/README.md b/node_modules/@smithy/middleware-serde/README.md deleted file mode 100644 index d2bbfa63..00000000 --- a/node_modules/@smithy/middleware-serde/README.md +++ /dev/null @@ -1,4 +0,0 @@ -# @smithy/middleware-serde - -[![NPM version](https://img.shields.io/npm/v/@smithy/middleware-serde/latest.svg)](https://www.npmjs.com/package/@smithy/middleware-serde) -[![NPM downloads](https://img.shields.io/npm/dm/@smithy/middleware-serde.svg)](https://www.npmjs.com/package/@smithy/middleware-serde) diff --git a/node_modules/@smithy/middleware-serde/dist-cjs/deserializerMiddleware.js b/node_modules/@smithy/middleware-serde/dist-cjs/deserializerMiddleware.js deleted file mode 100644 index 26ccf654..00000000 --- a/node_modules/@smithy/middleware-serde/dist-cjs/deserializerMiddleware.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.deserializerMiddleware = void 0; -const deserializerMiddleware = (options, deserializer) => (next, context) => async (args) => { - const { response } = await next(args); - try { - const parsed = await deserializer(response, options); - return { - response, - output: parsed, - }; - } - catch (error) { - Object.defineProperty(error, "$response", { - value: response, - }); - if (!("$metadata" in error)) { - const hint = `Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`; - error.message += "\n " + hint; - } - throw error; - } -}; -exports.deserializerMiddleware = deserializerMiddleware; diff --git a/node_modules/@smithy/middleware-serde/dist-cjs/index.js b/node_modules/@smithy/middleware-serde/dist-cjs/index.js deleted file mode 100644 index 529a0945..00000000 --- a/node_modules/@smithy/middleware-serde/dist-cjs/index.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./deserializerMiddleware"), exports); -tslib_1.__exportStar(require("./serdePlugin"), exports); -tslib_1.__exportStar(require("./serializerMiddleware"), exports); diff --git a/node_modules/@smithy/middleware-serde/dist-cjs/serdePlugin.js b/node_modules/@smithy/middleware-serde/dist-cjs/serdePlugin.js deleted file mode 100644 index c2f66db8..00000000 --- a/node_modules/@smithy/middleware-serde/dist-cjs/serdePlugin.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getSerdePlugin = exports.serializerMiddlewareOption = exports.deserializerMiddlewareOption = void 0; -const deserializerMiddleware_1 = require("./deserializerMiddleware"); -const serializerMiddleware_1 = require("./serializerMiddleware"); -exports.deserializerMiddlewareOption = { - name: "deserializerMiddleware", - step: "deserialize", - tags: ["DESERIALIZER"], - override: true, -}; -exports.serializerMiddlewareOption = { - name: "serializerMiddleware", - step: "serialize", - tags: ["SERIALIZER"], - override: true, -}; -function getSerdePlugin(config, serializer, deserializer) { - return { - applyToStack: (commandStack) => { - commandStack.add((0, deserializerMiddleware_1.deserializerMiddleware)(config, deserializer), exports.deserializerMiddlewareOption); - commandStack.add((0, serializerMiddleware_1.serializerMiddleware)(config, serializer), exports.serializerMiddlewareOption); - }, - }; -} -exports.getSerdePlugin = getSerdePlugin; diff --git a/node_modules/@smithy/middleware-serde/dist-cjs/serializerMiddleware.js b/node_modules/@smithy/middleware-serde/dist-cjs/serializerMiddleware.js deleted file mode 100644 index 20f32ca3..00000000 --- a/node_modules/@smithy/middleware-serde/dist-cjs/serializerMiddleware.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.serializerMiddleware = void 0; -const serializerMiddleware = (options, serializer) => (next, context) => async (args) => { - var _a; - const endpoint = ((_a = context.endpointV2) === null || _a === void 0 ? void 0 : _a.url) && options.urlParser - ? async () => options.urlParser(context.endpointV2.url) - : options.endpoint; - if (!endpoint) { - throw new Error("No valid endpoint provider available."); - } - const request = await serializer(args.input, { ...options, endpoint }); - return next({ - ...args, - request, - }); -}; -exports.serializerMiddleware = serializerMiddleware; diff --git a/node_modules/@smithy/middleware-serde/dist-es/deserializerMiddleware.js b/node_modules/@smithy/middleware-serde/dist-es/deserializerMiddleware.js deleted file mode 100644 index 7adcdb1e..00000000 --- a/node_modules/@smithy/middleware-serde/dist-es/deserializerMiddleware.js +++ /dev/null @@ -1,20 +0,0 @@ -export const deserializerMiddleware = (options, deserializer) => (next, context) => async (args) => { - const { response } = await next(args); - try { - const parsed = await deserializer(response, options); - return { - response, - output: parsed, - }; - } - catch (error) { - Object.defineProperty(error, "$response", { - value: response, - }); - if (!("$metadata" in error)) { - const hint = `Deserialization error: to see the raw response, inspect the hidden field {error}.$response on this object.`; - error.message += "\n " + hint; - } - throw error; - } -}; diff --git a/node_modules/@smithy/middleware-serde/dist-es/index.js b/node_modules/@smithy/middleware-serde/dist-es/index.js deleted file mode 100644 index 166a2be2..00000000 --- a/node_modules/@smithy/middleware-serde/dist-es/index.js +++ /dev/null @@ -1,3 +0,0 @@ -export * from "./deserializerMiddleware"; -export * from "./serdePlugin"; -export * from "./serializerMiddleware"; diff --git a/node_modules/@smithy/middleware-serde/dist-es/serdePlugin.js b/node_modules/@smithy/middleware-serde/dist-es/serdePlugin.js deleted file mode 100644 index be2a06ef..00000000 --- a/node_modules/@smithy/middleware-serde/dist-es/serdePlugin.js +++ /dev/null @@ -1,22 +0,0 @@ -import { deserializerMiddleware } from "./deserializerMiddleware"; -import { serializerMiddleware } from "./serializerMiddleware"; -export const deserializerMiddlewareOption = { - name: "deserializerMiddleware", - step: "deserialize", - tags: ["DESERIALIZER"], - override: true, -}; -export const serializerMiddlewareOption = { - name: "serializerMiddleware", - step: "serialize", - tags: ["SERIALIZER"], - override: true, -}; -export function getSerdePlugin(config, serializer, deserializer) { - return { - applyToStack: (commandStack) => { - commandStack.add(deserializerMiddleware(config, deserializer), deserializerMiddlewareOption); - commandStack.add(serializerMiddleware(config, serializer), serializerMiddlewareOption); - }, - }; -} diff --git a/node_modules/@smithy/middleware-serde/dist-es/serializerMiddleware.js b/node_modules/@smithy/middleware-serde/dist-es/serializerMiddleware.js deleted file mode 100644 index b02b93d7..00000000 --- a/node_modules/@smithy/middleware-serde/dist-es/serializerMiddleware.js +++ /dev/null @@ -1,13 +0,0 @@ -export const serializerMiddleware = (options, serializer) => (next, context) => async (args) => { - const endpoint = context.endpointV2?.url && options.urlParser - ? async () => options.urlParser(context.endpointV2.url) - : options.endpoint; - if (!endpoint) { - throw new Error("No valid endpoint provider available."); - } - const request = await serializer(args.input, { ...options, endpoint }); - return next({ - ...args, - request, - }); -}; diff --git a/node_modules/@smithy/middleware-serde/dist-types/deserializerMiddleware.d.ts b/node_modules/@smithy/middleware-serde/dist-types/deserializerMiddleware.d.ts deleted file mode 100644 index 32ea2ba3..00000000 --- a/node_modules/@smithy/middleware-serde/dist-types/deserializerMiddleware.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { DeserializeMiddleware, ResponseDeserializer } from "@smithy/types"; -export declare const deserializerMiddleware: (options: RuntimeUtils, deserializer: ResponseDeserializer) => DeserializeMiddleware; diff --git a/node_modules/@smithy/middleware-serde/dist-types/index.d.ts b/node_modules/@smithy/middleware-serde/dist-types/index.d.ts deleted file mode 100644 index 166a2be2..00000000 --- a/node_modules/@smithy/middleware-serde/dist-types/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * from "./deserializerMiddleware"; -export * from "./serdePlugin"; -export * from "./serializerMiddleware"; diff --git a/node_modules/@smithy/middleware-serde/dist-types/serdePlugin.d.ts b/node_modules/@smithy/middleware-serde/dist-types/serdePlugin.d.ts deleted file mode 100644 index 1ac87b4f..00000000 --- a/node_modules/@smithy/middleware-serde/dist-types/serdePlugin.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { DeserializeHandlerOptions, Endpoint, EndpointBearer, MetadataBearer, Pluggable, Provider, RequestSerializer, ResponseDeserializer, SerializeHandlerOptions, UrlParser } from "@smithy/types"; -export declare const deserializerMiddlewareOption: DeserializeHandlerOptions; -export declare const serializerMiddlewareOption: SerializeHandlerOptions; -export type V1OrV2Endpoint = { - urlParser?: UrlParser; - endpoint?: Provider; -}; -export declare function getSerdePlugin(config: V1OrV2Endpoint, serializer: RequestSerializer, deserializer: ResponseDeserializer): Pluggable; diff --git a/node_modules/@smithy/middleware-serde/dist-types/serializerMiddleware.d.ts b/node_modules/@smithy/middleware-serde/dist-types/serializerMiddleware.d.ts deleted file mode 100644 index a02ce9dd..00000000 --- a/node_modules/@smithy/middleware-serde/dist-types/serializerMiddleware.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { EndpointBearer, RequestSerializer, SerializeMiddleware } from "@smithy/types"; -import type { V1OrV2Endpoint } from "./serdePlugin"; -export declare const serializerMiddleware: (options: V1OrV2Endpoint, serializer: RequestSerializer) => SerializeMiddleware; diff --git a/node_modules/@smithy/middleware-serde/dist-types/ts3.4/deserializerMiddleware.d.ts b/node_modules/@smithy/middleware-serde/dist-types/ts3.4/deserializerMiddleware.d.ts deleted file mode 100644 index 7d41fa44..00000000 --- a/node_modules/@smithy/middleware-serde/dist-types/ts3.4/deserializerMiddleware.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { DeserializeMiddleware, ResponseDeserializer } from "@smithy/types"; -export declare const deserializerMiddleware: (options: RuntimeUtils, deserializer: ResponseDeserializer) => DeserializeMiddleware; diff --git a/node_modules/@smithy/middleware-serde/dist-types/ts3.4/index.d.ts b/node_modules/@smithy/middleware-serde/dist-types/ts3.4/index.d.ts deleted file mode 100644 index ec66df4d..00000000 --- a/node_modules/@smithy/middleware-serde/dist-types/ts3.4/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * from "./deserializerMiddleware"; -export * from "./serdePlugin"; -export * from "./serializerMiddleware"; diff --git a/node_modules/@smithy/middleware-serde/dist-types/ts3.4/serdePlugin.d.ts b/node_modules/@smithy/middleware-serde/dist-types/ts3.4/serdePlugin.d.ts deleted file mode 100644 index a0f6418d..00000000 --- a/node_modules/@smithy/middleware-serde/dist-types/ts3.4/serdePlugin.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { DeserializeHandlerOptions, Endpoint, EndpointBearer, MetadataBearer, Pluggable, Provider, RequestSerializer, ResponseDeserializer, SerializeHandlerOptions, UrlParser } from "@smithy/types"; -export declare const deserializerMiddlewareOption: DeserializeHandlerOptions; -export declare const serializerMiddlewareOption: SerializeHandlerOptions; -export type V1OrV2Endpoint = { - urlParser?: UrlParser; - endpoint?: Provider; -}; -export declare function getSerdePlugin(config: V1OrV2Endpoint, serializer: RequestSerializer, deserializer: ResponseDeserializer): Pluggable; diff --git a/node_modules/@smithy/middleware-serde/dist-types/ts3.4/serializerMiddleware.d.ts b/node_modules/@smithy/middleware-serde/dist-types/ts3.4/serializerMiddleware.d.ts deleted file mode 100644 index 333c80ee..00000000 --- a/node_modules/@smithy/middleware-serde/dist-types/ts3.4/serializerMiddleware.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { EndpointBearer, RequestSerializer, SerializeMiddleware } from "@smithy/types"; -import { V1OrV2Endpoint } from "./serdePlugin"; -export declare const serializerMiddleware: (options: V1OrV2Endpoint, serializer: RequestSerializer) => SerializeMiddleware; diff --git a/node_modules/@smithy/middleware-serde/package.json b/node_modules/@smithy/middleware-serde/package.json deleted file mode 100644 index c01951a4..00000000 --- a/node_modules/@smithy/middleware-serde/package.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "name": "@smithy/middleware-serde", - "version": "2.0.14", - "scripts": { - "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", - "build:cjs": "yarn g:tsc -p tsconfig.cjs.json", - "build:es": "yarn g:tsc -p tsconfig.es.json", - "build:types": "yarn g:tsc -p tsconfig.types.json", - "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", - "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz", - "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"", - "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"", - "test": "yarn g:jest", - "test:integration": "yarn g:jest --config jest.config.integ.js" - }, - "main": "./dist-cjs/index.js", - "module": "./dist-es/index.js", - "types": "./dist-types/index.d.ts", - "author": { - "name": "AWS SDK for JavaScript Team", - "url": "https://aws.amazon.com/javascript/" - }, - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^2.6.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "typesVersions": { - "<4.0": { - "dist-types/*": [ - "dist-types/ts3.4/*" - ] - } - }, - "files": [ - "dist-*/**" - ], - "homepage": "https://github.com/awslabs/smithy-typescript/tree/main/packages/middleware-serde", - "repository": { - "type": "git", - "url": "https://github.com/awslabs/smithy-typescript.git", - "directory": "packages/middleware-serde" - }, - "devDependencies": { - "@smithy/util-test": "^0.1.10", - "@tsconfig/recommended": "1.0.1", - "concurrently": "7.0.0", - "downlevel-dts": "0.10.1", - "rimraf": "3.0.2", - "typedoc": "0.23.23" - }, - "typedoc": { - "entryPoint": "src/index.ts" - }, - "publishConfig": { - "directory": ".release/package" - } -} \ No newline at end of file diff --git a/node_modules/@smithy/middleware-stack/LICENSE b/node_modules/@smithy/middleware-stack/LICENSE deleted file mode 100644 index 7b6491ba..00000000 --- a/node_modules/@smithy/middleware-stack/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. \ No newline at end of file diff --git a/node_modules/@smithy/middleware-stack/README.md b/node_modules/@smithy/middleware-stack/README.md deleted file mode 100644 index c09d4d36..00000000 --- a/node_modules/@smithy/middleware-stack/README.md +++ /dev/null @@ -1,78 +0,0 @@ -# @smithy/middleware-stack - -[![NPM version](https://img.shields.io/npm/v/@smithy/middleware-stack/latest.svg)](https://www.npmjs.com/package/@smithy/middleware-stack) -[![NPM downloads](https://img.shields.io/npm/dm/@smithy/middleware-stack.svg)](https://www.npmjs.com/package/@smithy/middleware-stack) - -The package contains an implementation of middleware stack interface. Middleware -stack is a structure storing middleware in specified order and resolve these -middleware into a single handler. - -A middleware stack has five `Step`s, each of them represents a specific request life cycle: - -- **initialize**: The input is being prepared. Examples of typical initialization tasks include injecting default options computing derived parameters. - -- **serialize**: The input is complete and ready to be serialized. Examples of typical serialization tasks include input validation and building an HTTP request from user input. - -- **build**: The input has been serialized into an HTTP request, but that request may require further modification. Any request alterations will be applied to all retries. Examples of typical build tasks include injecting HTTP headers that describe a stable aspect of the request, such as `Content-Length` or a body checksum. - -- **finalizeRequest**: The request is being prepared to be sent over the wire. The request in this stage should already be semantically complete and should therefore only be altered to match the recipient's expectations. Examples of typical finalization tasks include request signing and injecting hop-by-hop headers. - -- **deserialize**: The response has arrived, the middleware here will deserialize the raw response object to structured response - -## Adding Middleware - -There are two ways to add middleware to a middleware stack. They both add middleware to specified `Step` but they provide fine-grained location control differently. - -### Absolute Location - -You can add middleware to specified step with: - -```javascript -stack.add(middleware, { - step: "finalizeRequest", -}); -``` - -This approach works for most cases. Sometimes you want your middleware to be executed in the front of the `Step`, you can set the `Priority` to `high`. Set the `Priority` to `low` then this middleware will be executed at the end of `Step`: - -```javascript -stack.add(middleware, { - step: "finalizeRequest", - priority: "high", -}); -``` - -If multiple middleware is added to same `step` with same `priority`, the order of them is determined by the order of adding them. - -### Relative Location - -In some cases, you might want to execute your middleware before some other known middleware, then you can use `addRelativeTo()`: - -```javascript -stack.add(middleware, { - step: "finalizeRequest", - name: "myMiddleware", -}); -stack.addRelativeTo(anotherMiddleware, { - relation: "before", //or 'after' - toMiddleware: "myMiddleware", -}); -``` - -## Removing Middleware - -You can remove middleware by name one at a time: - -```javascript -stack.remove("Middleware1"); -``` - -If you specify tags for middleware, you can remove multiple middleware at a time according to tag: - -```javascript -stack.add(middleware, { - step: "finalizeRequest", - tags: ["final"], -}); -stack.removeByTag("final"); -``` diff --git a/node_modules/@smithy/middleware-stack/dist-cjs/MiddlewareStack.js b/node_modules/@smithy/middleware-stack/dist-cjs/MiddlewareStack.js deleted file mode 100644 index 43bfcd04..00000000 --- a/node_modules/@smithy/middleware-stack/dist-cjs/MiddlewareStack.js +++ /dev/null @@ -1,287 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.constructStack = void 0; -const getAllAliases = (name, aliases) => { - const _aliases = []; - if (name) { - _aliases.push(name); - } - if (aliases) { - for (const alias of aliases) { - _aliases.push(alias); - } - } - return _aliases; -}; -const getMiddlewareNameWithAliases = (name, aliases) => { - return `${name || "anonymous"}${aliases && aliases.length > 0 ? ` (a.k.a. ${aliases.join(",")})` : ""}`; -}; -const constructStack = () => { - let absoluteEntries = []; - let relativeEntries = []; - let identifyOnResolve = false; - const entriesNameSet = new Set(); - const sort = (entries) => entries.sort((a, b) => stepWeights[b.step] - stepWeights[a.step] || - priorityWeights[b.priority || "normal"] - priorityWeights[a.priority || "normal"]); - const removeByName = (toRemove) => { - let isRemoved = false; - const filterCb = (entry) => { - const aliases = getAllAliases(entry.name, entry.aliases); - if (aliases.includes(toRemove)) { - isRemoved = true; - for (const alias of aliases) { - entriesNameSet.delete(alias); - } - return false; - } - return true; - }; - absoluteEntries = absoluteEntries.filter(filterCb); - relativeEntries = relativeEntries.filter(filterCb); - return isRemoved; - }; - const removeByReference = (toRemove) => { - let isRemoved = false; - const filterCb = (entry) => { - if (entry.middleware === toRemove) { - isRemoved = true; - for (const alias of getAllAliases(entry.name, entry.aliases)) { - entriesNameSet.delete(alias); - } - return false; - } - return true; - }; - absoluteEntries = absoluteEntries.filter(filterCb); - relativeEntries = relativeEntries.filter(filterCb); - return isRemoved; - }; - const cloneTo = (toStack) => { - var _a; - absoluteEntries.forEach((entry) => { - toStack.add(entry.middleware, { ...entry }); - }); - relativeEntries.forEach((entry) => { - toStack.addRelativeTo(entry.middleware, { ...entry }); - }); - (_a = toStack.identifyOnResolve) === null || _a === void 0 ? void 0 : _a.call(toStack, stack.identifyOnResolve()); - return toStack; - }; - const expandRelativeMiddlewareList = (from) => { - const expandedMiddlewareList = []; - from.before.forEach((entry) => { - if (entry.before.length === 0 && entry.after.length === 0) { - expandedMiddlewareList.push(entry); - } - else { - expandedMiddlewareList.push(...expandRelativeMiddlewareList(entry)); - } - }); - expandedMiddlewareList.push(from); - from.after.reverse().forEach((entry) => { - if (entry.before.length === 0 && entry.after.length === 0) { - expandedMiddlewareList.push(entry); - } - else { - expandedMiddlewareList.push(...expandRelativeMiddlewareList(entry)); - } - }); - return expandedMiddlewareList; - }; - const getMiddlewareList = (debug = false) => { - const normalizedAbsoluteEntries = []; - const normalizedRelativeEntries = []; - const normalizedEntriesNameMap = {}; - absoluteEntries.forEach((entry) => { - const normalizedEntry = { - ...entry, - before: [], - after: [], - }; - for (const alias of getAllAliases(normalizedEntry.name, normalizedEntry.aliases)) { - normalizedEntriesNameMap[alias] = normalizedEntry; - } - normalizedAbsoluteEntries.push(normalizedEntry); - }); - relativeEntries.forEach((entry) => { - const normalizedEntry = { - ...entry, - before: [], - after: [], - }; - for (const alias of getAllAliases(normalizedEntry.name, normalizedEntry.aliases)) { - normalizedEntriesNameMap[alias] = normalizedEntry; - } - normalizedRelativeEntries.push(normalizedEntry); - }); - normalizedRelativeEntries.forEach((entry) => { - if (entry.toMiddleware) { - const toMiddleware = normalizedEntriesNameMap[entry.toMiddleware]; - if (toMiddleware === undefined) { - if (debug) { - return; - } - throw new Error(`${entry.toMiddleware} is not found when adding ` + - `${getMiddlewareNameWithAliases(entry.name, entry.aliases)} ` + - `middleware ${entry.relation} ${entry.toMiddleware}`); - } - if (entry.relation === "after") { - toMiddleware.after.push(entry); - } - if (entry.relation === "before") { - toMiddleware.before.push(entry); - } - } - }); - const mainChain = sort(normalizedAbsoluteEntries) - .map(expandRelativeMiddlewareList) - .reduce((wholeList, expandedMiddlewareList) => { - wholeList.push(...expandedMiddlewareList); - return wholeList; - }, []); - return mainChain; - }; - const stack = { - add: (middleware, options = {}) => { - const { name, override, aliases: _aliases } = options; - const entry = { - step: "initialize", - priority: "normal", - middleware, - ...options, - }; - const aliases = getAllAliases(name, _aliases); - if (aliases.length > 0) { - if (aliases.some((alias) => entriesNameSet.has(alias))) { - if (!override) - throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(name, _aliases)}'`); - for (const alias of aliases) { - const toOverrideIndex = absoluteEntries.findIndex((entry) => { var _a; return entry.name === alias || ((_a = entry.aliases) === null || _a === void 0 ? void 0 : _a.some((a) => a === alias)); }); - if (toOverrideIndex === -1) { - continue; - } - const toOverride = absoluteEntries[toOverrideIndex]; - if (toOverride.step !== entry.step || entry.priority !== toOverride.priority) { - throw new Error(`"${getMiddlewareNameWithAliases(toOverride.name, toOverride.aliases)}" middleware with ` + - `${toOverride.priority} priority in ${toOverride.step} step cannot ` + - `be overridden by "${getMiddlewareNameWithAliases(name, _aliases)}" middleware with ` + - `${entry.priority} priority in ${entry.step} step.`); - } - absoluteEntries.splice(toOverrideIndex, 1); - } - } - for (const alias of aliases) { - entriesNameSet.add(alias); - } - } - absoluteEntries.push(entry); - }, - addRelativeTo: (middleware, options) => { - const { name, override, aliases: _aliases } = options; - const entry = { - middleware, - ...options, - }; - const aliases = getAllAliases(name, _aliases); - if (aliases.length > 0) { - if (aliases.some((alias) => entriesNameSet.has(alias))) { - if (!override) - throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(name, _aliases)}'`); - for (const alias of aliases) { - const toOverrideIndex = relativeEntries.findIndex((entry) => { var _a; return entry.name === alias || ((_a = entry.aliases) === null || _a === void 0 ? void 0 : _a.some((a) => a === alias)); }); - if (toOverrideIndex === -1) { - continue; - } - const toOverride = relativeEntries[toOverrideIndex]; - if (toOverride.toMiddleware !== entry.toMiddleware || toOverride.relation !== entry.relation) { - throw new Error(`"${getMiddlewareNameWithAliases(toOverride.name, toOverride.aliases)}" middleware ` + - `${toOverride.relation} "${toOverride.toMiddleware}" middleware cannot be overridden ` + - `by "${getMiddlewareNameWithAliases(name, _aliases)}" middleware ${entry.relation} ` + - `"${entry.toMiddleware}" middleware.`); - } - relativeEntries.splice(toOverrideIndex, 1); - } - } - for (const alias of aliases) { - entriesNameSet.add(alias); - } - } - relativeEntries.push(entry); - }, - clone: () => cloneTo((0, exports.constructStack)()), - use: (plugin) => { - plugin.applyToStack(stack); - }, - remove: (toRemove) => { - if (typeof toRemove === "string") - return removeByName(toRemove); - else - return removeByReference(toRemove); - }, - removeByTag: (toRemove) => { - let isRemoved = false; - const filterCb = (entry) => { - const { tags, name, aliases: _aliases } = entry; - if (tags && tags.includes(toRemove)) { - const aliases = getAllAliases(name, _aliases); - for (const alias of aliases) { - entriesNameSet.delete(alias); - } - isRemoved = true; - return false; - } - return true; - }; - absoluteEntries = absoluteEntries.filter(filterCb); - relativeEntries = relativeEntries.filter(filterCb); - return isRemoved; - }, - concat: (from) => { - var _a, _b; - const cloned = cloneTo((0, exports.constructStack)()); - cloned.use(from); - cloned.identifyOnResolve(identifyOnResolve || cloned.identifyOnResolve() || ((_b = (_a = from.identifyOnResolve) === null || _a === void 0 ? void 0 : _a.call(from)) !== null && _b !== void 0 ? _b : false)); - return cloned; - }, - applyToStack: cloneTo, - identify: () => { - return getMiddlewareList(true).map((mw) => { - var _a; - const step = (_a = mw.step) !== null && _a !== void 0 ? _a : mw.relation + - " " + - mw.toMiddleware; - return getMiddlewareNameWithAliases(mw.name, mw.aliases) + " - " + step; - }); - }, - identifyOnResolve(toggle) { - if (typeof toggle === "boolean") - identifyOnResolve = toggle; - return identifyOnResolve; - }, - resolve: (handler, context) => { - for (const middleware of getMiddlewareList() - .map((entry) => entry.middleware) - .reverse()) { - handler = middleware(handler, context); - } - if (identifyOnResolve) { - console.log(stack.identify()); - } - return handler; - }, - }; - return stack; -}; -exports.constructStack = constructStack; -const stepWeights = { - initialize: 5, - serialize: 4, - build: 3, - finalizeRequest: 2, - deserialize: 1, -}; -const priorityWeights = { - high: 3, - normal: 2, - low: 1, -}; diff --git a/node_modules/@smithy/middleware-stack/dist-cjs/index.js b/node_modules/@smithy/middleware-stack/dist-cjs/index.js deleted file mode 100644 index fc3b85ff..00000000 --- a/node_modules/@smithy/middleware-stack/dist-cjs/index.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./MiddlewareStack"), exports); diff --git a/node_modules/@smithy/middleware-stack/dist-cjs/types.js b/node_modules/@smithy/middleware-stack/dist-cjs/types.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@smithy/middleware-stack/dist-cjs/types.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@smithy/middleware-stack/dist-es/MiddlewareStack.js b/node_modules/@smithy/middleware-stack/dist-es/MiddlewareStack.js deleted file mode 100644 index 2e02c73d..00000000 --- a/node_modules/@smithy/middleware-stack/dist-es/MiddlewareStack.js +++ /dev/null @@ -1,281 +0,0 @@ -const getAllAliases = (name, aliases) => { - const _aliases = []; - if (name) { - _aliases.push(name); - } - if (aliases) { - for (const alias of aliases) { - _aliases.push(alias); - } - } - return _aliases; -}; -const getMiddlewareNameWithAliases = (name, aliases) => { - return `${name || "anonymous"}${aliases && aliases.length > 0 ? ` (a.k.a. ${aliases.join(",")})` : ""}`; -}; -export const constructStack = () => { - let absoluteEntries = []; - let relativeEntries = []; - let identifyOnResolve = false; - const entriesNameSet = new Set(); - const sort = (entries) => entries.sort((a, b) => stepWeights[b.step] - stepWeights[a.step] || - priorityWeights[b.priority || "normal"] - priorityWeights[a.priority || "normal"]); - const removeByName = (toRemove) => { - let isRemoved = false; - const filterCb = (entry) => { - const aliases = getAllAliases(entry.name, entry.aliases); - if (aliases.includes(toRemove)) { - isRemoved = true; - for (const alias of aliases) { - entriesNameSet.delete(alias); - } - return false; - } - return true; - }; - absoluteEntries = absoluteEntries.filter(filterCb); - relativeEntries = relativeEntries.filter(filterCb); - return isRemoved; - }; - const removeByReference = (toRemove) => { - let isRemoved = false; - const filterCb = (entry) => { - if (entry.middleware === toRemove) { - isRemoved = true; - for (const alias of getAllAliases(entry.name, entry.aliases)) { - entriesNameSet.delete(alias); - } - return false; - } - return true; - }; - absoluteEntries = absoluteEntries.filter(filterCb); - relativeEntries = relativeEntries.filter(filterCb); - return isRemoved; - }; - const cloneTo = (toStack) => { - absoluteEntries.forEach((entry) => { - toStack.add(entry.middleware, { ...entry }); - }); - relativeEntries.forEach((entry) => { - toStack.addRelativeTo(entry.middleware, { ...entry }); - }); - toStack.identifyOnResolve?.(stack.identifyOnResolve()); - return toStack; - }; - const expandRelativeMiddlewareList = (from) => { - const expandedMiddlewareList = []; - from.before.forEach((entry) => { - if (entry.before.length === 0 && entry.after.length === 0) { - expandedMiddlewareList.push(entry); - } - else { - expandedMiddlewareList.push(...expandRelativeMiddlewareList(entry)); - } - }); - expandedMiddlewareList.push(from); - from.after.reverse().forEach((entry) => { - if (entry.before.length === 0 && entry.after.length === 0) { - expandedMiddlewareList.push(entry); - } - else { - expandedMiddlewareList.push(...expandRelativeMiddlewareList(entry)); - } - }); - return expandedMiddlewareList; - }; - const getMiddlewareList = (debug = false) => { - const normalizedAbsoluteEntries = []; - const normalizedRelativeEntries = []; - const normalizedEntriesNameMap = {}; - absoluteEntries.forEach((entry) => { - const normalizedEntry = { - ...entry, - before: [], - after: [], - }; - for (const alias of getAllAliases(normalizedEntry.name, normalizedEntry.aliases)) { - normalizedEntriesNameMap[alias] = normalizedEntry; - } - normalizedAbsoluteEntries.push(normalizedEntry); - }); - relativeEntries.forEach((entry) => { - const normalizedEntry = { - ...entry, - before: [], - after: [], - }; - for (const alias of getAllAliases(normalizedEntry.name, normalizedEntry.aliases)) { - normalizedEntriesNameMap[alias] = normalizedEntry; - } - normalizedRelativeEntries.push(normalizedEntry); - }); - normalizedRelativeEntries.forEach((entry) => { - if (entry.toMiddleware) { - const toMiddleware = normalizedEntriesNameMap[entry.toMiddleware]; - if (toMiddleware === undefined) { - if (debug) { - return; - } - throw new Error(`${entry.toMiddleware} is not found when adding ` + - `${getMiddlewareNameWithAliases(entry.name, entry.aliases)} ` + - `middleware ${entry.relation} ${entry.toMiddleware}`); - } - if (entry.relation === "after") { - toMiddleware.after.push(entry); - } - if (entry.relation === "before") { - toMiddleware.before.push(entry); - } - } - }); - const mainChain = sort(normalizedAbsoluteEntries) - .map(expandRelativeMiddlewareList) - .reduce((wholeList, expandedMiddlewareList) => { - wholeList.push(...expandedMiddlewareList); - return wholeList; - }, []); - return mainChain; - }; - const stack = { - add: (middleware, options = {}) => { - const { name, override, aliases: _aliases } = options; - const entry = { - step: "initialize", - priority: "normal", - middleware, - ...options, - }; - const aliases = getAllAliases(name, _aliases); - if (aliases.length > 0) { - if (aliases.some((alias) => entriesNameSet.has(alias))) { - if (!override) - throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(name, _aliases)}'`); - for (const alias of aliases) { - const toOverrideIndex = absoluteEntries.findIndex((entry) => entry.name === alias || entry.aliases?.some((a) => a === alias)); - if (toOverrideIndex === -1) { - continue; - } - const toOverride = absoluteEntries[toOverrideIndex]; - if (toOverride.step !== entry.step || entry.priority !== toOverride.priority) { - throw new Error(`"${getMiddlewareNameWithAliases(toOverride.name, toOverride.aliases)}" middleware with ` + - `${toOverride.priority} priority in ${toOverride.step} step cannot ` + - `be overridden by "${getMiddlewareNameWithAliases(name, _aliases)}" middleware with ` + - `${entry.priority} priority in ${entry.step} step.`); - } - absoluteEntries.splice(toOverrideIndex, 1); - } - } - for (const alias of aliases) { - entriesNameSet.add(alias); - } - } - absoluteEntries.push(entry); - }, - addRelativeTo: (middleware, options) => { - const { name, override, aliases: _aliases } = options; - const entry = { - middleware, - ...options, - }; - const aliases = getAllAliases(name, _aliases); - if (aliases.length > 0) { - if (aliases.some((alias) => entriesNameSet.has(alias))) { - if (!override) - throw new Error(`Duplicate middleware name '${getMiddlewareNameWithAliases(name, _aliases)}'`); - for (const alias of aliases) { - const toOverrideIndex = relativeEntries.findIndex((entry) => entry.name === alias || entry.aliases?.some((a) => a === alias)); - if (toOverrideIndex === -1) { - continue; - } - const toOverride = relativeEntries[toOverrideIndex]; - if (toOverride.toMiddleware !== entry.toMiddleware || toOverride.relation !== entry.relation) { - throw new Error(`"${getMiddlewareNameWithAliases(toOverride.name, toOverride.aliases)}" middleware ` + - `${toOverride.relation} "${toOverride.toMiddleware}" middleware cannot be overridden ` + - `by "${getMiddlewareNameWithAliases(name, _aliases)}" middleware ${entry.relation} ` + - `"${entry.toMiddleware}" middleware.`); - } - relativeEntries.splice(toOverrideIndex, 1); - } - } - for (const alias of aliases) { - entriesNameSet.add(alias); - } - } - relativeEntries.push(entry); - }, - clone: () => cloneTo(constructStack()), - use: (plugin) => { - plugin.applyToStack(stack); - }, - remove: (toRemove) => { - if (typeof toRemove === "string") - return removeByName(toRemove); - else - return removeByReference(toRemove); - }, - removeByTag: (toRemove) => { - let isRemoved = false; - const filterCb = (entry) => { - const { tags, name, aliases: _aliases } = entry; - if (tags && tags.includes(toRemove)) { - const aliases = getAllAliases(name, _aliases); - for (const alias of aliases) { - entriesNameSet.delete(alias); - } - isRemoved = true; - return false; - } - return true; - }; - absoluteEntries = absoluteEntries.filter(filterCb); - relativeEntries = relativeEntries.filter(filterCb); - return isRemoved; - }, - concat: (from) => { - const cloned = cloneTo(constructStack()); - cloned.use(from); - cloned.identifyOnResolve(identifyOnResolve || cloned.identifyOnResolve() || (from.identifyOnResolve?.() ?? false)); - return cloned; - }, - applyToStack: cloneTo, - identify: () => { - return getMiddlewareList(true).map((mw) => { - const step = mw.step ?? - mw.relation + - " " + - mw.toMiddleware; - return getMiddlewareNameWithAliases(mw.name, mw.aliases) + " - " + step; - }); - }, - identifyOnResolve(toggle) { - if (typeof toggle === "boolean") - identifyOnResolve = toggle; - return identifyOnResolve; - }, - resolve: (handler, context) => { - for (const middleware of getMiddlewareList() - .map((entry) => entry.middleware) - .reverse()) { - handler = middleware(handler, context); - } - if (identifyOnResolve) { - console.log(stack.identify()); - } - return handler; - }, - }; - return stack; -}; -const stepWeights = { - initialize: 5, - serialize: 4, - build: 3, - finalizeRequest: 2, - deserialize: 1, -}; -const priorityWeights = { - high: 3, - normal: 2, - low: 1, -}; diff --git a/node_modules/@smithy/middleware-stack/dist-es/index.js b/node_modules/@smithy/middleware-stack/dist-es/index.js deleted file mode 100644 index 16f56ce9..00000000 --- a/node_modules/@smithy/middleware-stack/dist-es/index.js +++ /dev/null @@ -1 +0,0 @@ -export * from "./MiddlewareStack"; diff --git a/node_modules/@smithy/middleware-stack/dist-es/types.js b/node_modules/@smithy/middleware-stack/dist-es/types.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@smithy/middleware-stack/dist-es/types.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@smithy/middleware-stack/dist-types/MiddlewareStack.d.ts b/node_modules/@smithy/middleware-stack/dist-types/MiddlewareStack.d.ts deleted file mode 100644 index 9c4d003f..00000000 --- a/node_modules/@smithy/middleware-stack/dist-types/MiddlewareStack.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { MiddlewareStack } from "@smithy/types"; -export declare const constructStack: () => MiddlewareStack; diff --git a/node_modules/@smithy/middleware-stack/dist-types/index.d.ts b/node_modules/@smithy/middleware-stack/dist-types/index.d.ts deleted file mode 100644 index 16f56ce9..00000000 --- a/node_modules/@smithy/middleware-stack/dist-types/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./MiddlewareStack"; diff --git a/node_modules/@smithy/middleware-stack/dist-types/ts3.4/MiddlewareStack.d.ts b/node_modules/@smithy/middleware-stack/dist-types/ts3.4/MiddlewareStack.d.ts deleted file mode 100644 index 68bee288..00000000 --- a/node_modules/@smithy/middleware-stack/dist-types/ts3.4/MiddlewareStack.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { MiddlewareStack } from "@smithy/types"; -export declare const constructStack: () => MiddlewareStack; diff --git a/node_modules/@smithy/middleware-stack/dist-types/ts3.4/index.d.ts b/node_modules/@smithy/middleware-stack/dist-types/ts3.4/index.d.ts deleted file mode 100644 index d906b7dd..00000000 --- a/node_modules/@smithy/middleware-stack/dist-types/ts3.4/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./MiddlewareStack"; diff --git a/node_modules/@smithy/middleware-stack/dist-types/ts3.4/types.d.ts b/node_modules/@smithy/middleware-stack/dist-types/ts3.4/types.d.ts deleted file mode 100644 index 38eb54c9..00000000 --- a/node_modules/@smithy/middleware-stack/dist-types/ts3.4/types.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { AbsoluteLocation, HandlerOptions, MiddlewareType, Priority, RelativeLocation, Step } from "@smithy/types"; -export interface MiddlewareEntry extends HandlerOptions { - middleware: MiddlewareType; -} -export interface AbsoluteMiddlewareEntry extends MiddlewareEntry, AbsoluteLocation { - step: Step; - priority: Priority; -} -export interface RelativeMiddlewareEntry extends MiddlewareEntry, RelativeLocation { -} -export type Normalized, Input extends object = {}, Output extends object = {}> = T & { - after: Normalized, Input, Output>[]; - before: Normalized, Input, Output>[]; -}; -export interface NormalizedRelativeEntry extends HandlerOptions { - step: Step; - middleware: MiddlewareType; - next?: NormalizedRelativeEntry; - prev?: NormalizedRelativeEntry; - priority: null; -} -export type NamedMiddlewareEntriesMap = Record>; diff --git a/node_modules/@smithy/middleware-stack/dist-types/types.d.ts b/node_modules/@smithy/middleware-stack/dist-types/types.d.ts deleted file mode 100644 index 4aa5fc64..00000000 --- a/node_modules/@smithy/middleware-stack/dist-types/types.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { AbsoluteLocation, HandlerOptions, MiddlewareType, Priority, RelativeLocation, Step } from "@smithy/types"; -export interface MiddlewareEntry extends HandlerOptions { - middleware: MiddlewareType; -} -export interface AbsoluteMiddlewareEntry extends MiddlewareEntry, AbsoluteLocation { - step: Step; - priority: Priority; -} -export interface RelativeMiddlewareEntry extends MiddlewareEntry, RelativeLocation { -} -export type Normalized, Input extends object = {}, Output extends object = {}> = T & { - after: Normalized, Input, Output>[]; - before: Normalized, Input, Output>[]; -}; -export interface NormalizedRelativeEntry extends HandlerOptions { - step: Step; - middleware: MiddlewareType; - next?: NormalizedRelativeEntry; - prev?: NormalizedRelativeEntry; - priority: null; -} -export type NamedMiddlewareEntriesMap = Record>; diff --git a/node_modules/@smithy/middleware-stack/package.json b/node_modules/@smithy/middleware-stack/package.json deleted file mode 100644 index e07a9c16..00000000 --- a/node_modules/@smithy/middleware-stack/package.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "name": "@smithy/middleware-stack", - "version": "2.0.8", - "description": "Provides a means for composing multiple middleware functions into a single handler", - "scripts": { - "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", - "build:cjs": "yarn g:tsc -p tsconfig.cjs.json", - "build:es": "yarn g:tsc -p tsconfig.es.json", - "build:types": "yarn g:tsc -p tsconfig.types.json", - "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", - "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz", - "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"", - "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"", - "extract:docs": "api-extractor run --local", - "test": "yarn g:jest" - }, - "author": { - "name": "AWS SDK for JavaScript Team", - "email": "", - "url": "https://aws.amazon.com/javascript/" - }, - "license": "Apache-2.0", - "main": "./dist-cjs/index.js", - "module": "./dist-es/index.js", - "types": "./dist-types/index.d.ts", - "dependencies": { - "@smithy/types": "^2.6.0", - "tslib": "^2.5.0" - }, - "devDependencies": { - "@tsconfig/recommended": "1.0.1", - "concurrently": "7.0.0", - "downlevel-dts": "0.10.1", - "rimraf": "3.0.2", - "typedoc": "0.23.23" - }, - "engines": { - "node": ">=14.0.0" - }, - "typesVersions": { - "<4.0": { - "dist-types/*": [ - "dist-types/ts3.4/*" - ] - } - }, - "files": [ - "dist-*/**" - ], - "homepage": "https://github.com/awslabs/smithy-typescript/tree/main/packages/middleware-stack", - "repository": { - "type": "git", - "url": "https://github.com/awslabs/smithy-typescript.git", - "directory": "packages/middleware-stack" - }, - "typedoc": { - "entryPoint": "src/index.ts" - }, - "publishConfig": { - "directory": ".release/package" - } -} \ No newline at end of file diff --git a/node_modules/@smithy/node-config-provider/LICENSE b/node_modules/@smithy/node-config-provider/LICENSE deleted file mode 100644 index 74d4e5c3..00000000 --- a/node_modules/@smithy/node-config-provider/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. \ No newline at end of file diff --git a/node_modules/@smithy/node-config-provider/README.md b/node_modules/@smithy/node-config-provider/README.md deleted file mode 100644 index af591d2b..00000000 --- a/node_modules/@smithy/node-config-provider/README.md +++ /dev/null @@ -1,4 +0,0 @@ -# @smithy/node-config-provider - -[![NPM version](https://img.shields.io/npm/v/@smithy/node-config-provider/latest.svg)](https://www.npmjs.com/package/@smithy/node-config-provider) -[![NPM downloads](https://img.shields.io/npm/dm/@smithy/node-config-provider.svg)](https://www.npmjs.com/package/@smithy/node-config-provider) diff --git a/node_modules/@smithy/node-config-provider/dist-cjs/configLoader.js b/node_modules/@smithy/node-config-provider/dist-cjs/configLoader.js deleted file mode 100644 index 9b83558d..00000000 --- a/node_modules/@smithy/node-config-provider/dist-cjs/configLoader.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.loadConfig = void 0; -const property_provider_1 = require("@smithy/property-provider"); -const fromEnv_1 = require("./fromEnv"); -const fromSharedConfigFiles_1 = require("./fromSharedConfigFiles"); -const fromStatic_1 = require("./fromStatic"); -const loadConfig = ({ environmentVariableSelector, configFileSelector, default: defaultValue }, configuration = {}) => (0, property_provider_1.memoize)((0, property_provider_1.chain)((0, fromEnv_1.fromEnv)(environmentVariableSelector), (0, fromSharedConfigFiles_1.fromSharedConfigFiles)(configFileSelector, configuration), (0, fromStatic_1.fromStatic)(defaultValue))); -exports.loadConfig = loadConfig; diff --git a/node_modules/@smithy/node-config-provider/dist-cjs/fromEnv.js b/node_modules/@smithy/node-config-provider/dist-cjs/fromEnv.js deleted file mode 100644 index a96e2ce1..00000000 --- a/node_modules/@smithy/node-config-provider/dist-cjs/fromEnv.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.fromEnv = void 0; -const property_provider_1 = require("@smithy/property-provider"); -const fromEnv = (envVarSelector) => async () => { - try { - const config = envVarSelector(process.env); - if (config === undefined) { - throw new Error(); - } - return config; - } - catch (e) { - throw new property_provider_1.CredentialsProviderError(e.message || `Cannot load config from environment variables with getter: ${envVarSelector}`); - } -}; -exports.fromEnv = fromEnv; diff --git a/node_modules/@smithy/node-config-provider/dist-cjs/fromSharedConfigFiles.js b/node_modules/@smithy/node-config-provider/dist-cjs/fromSharedConfigFiles.js deleted file mode 100644 index ba0aedf6..00000000 --- a/node_modules/@smithy/node-config-provider/dist-cjs/fromSharedConfigFiles.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.fromSharedConfigFiles = void 0; -const property_provider_1 = require("@smithy/property-provider"); -const shared_ini_file_loader_1 = require("@smithy/shared-ini-file-loader"); -const fromSharedConfigFiles = (configSelector, { preferredFile = "config", ...init } = {}) => async () => { - const profile = (0, shared_ini_file_loader_1.getProfileName)(init); - const { configFile, credentialsFile } = await (0, shared_ini_file_loader_1.loadSharedConfigFiles)(init); - const profileFromCredentials = credentialsFile[profile] || {}; - const profileFromConfig = configFile[profile] || {}; - const mergedProfile = preferredFile === "config" - ? { ...profileFromCredentials, ...profileFromConfig } - : { ...profileFromConfig, ...profileFromCredentials }; - try { - const cfgFile = preferredFile === "config" ? configFile : credentialsFile; - const configValue = configSelector(mergedProfile, cfgFile); - if (configValue === undefined) { - throw new Error(); - } - return configValue; - } - catch (e) { - throw new property_provider_1.CredentialsProviderError(e.message || `Cannot load config for profile ${profile} in SDK configuration files with getter: ${configSelector}`); - } -}; -exports.fromSharedConfigFiles = fromSharedConfigFiles; diff --git a/node_modules/@smithy/node-config-provider/dist-cjs/fromStatic.js b/node_modules/@smithy/node-config-provider/dist-cjs/fromStatic.js deleted file mode 100644 index e891eb35..00000000 --- a/node_modules/@smithy/node-config-provider/dist-cjs/fromStatic.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.fromStatic = void 0; -const property_provider_1 = require("@smithy/property-provider"); -const isFunction = (func) => typeof func === "function"; -const fromStatic = (defaultValue) => isFunction(defaultValue) ? async () => await defaultValue() : (0, property_provider_1.fromStatic)(defaultValue); -exports.fromStatic = fromStatic; diff --git a/node_modules/@smithy/node-config-provider/dist-cjs/index.js b/node_modules/@smithy/node-config-provider/dist-cjs/index.js deleted file mode 100644 index ecf3535e..00000000 --- a/node_modules/@smithy/node-config-provider/dist-cjs/index.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./configLoader"), exports); diff --git a/node_modules/@smithy/node-config-provider/dist-es/configLoader.js b/node_modules/@smithy/node-config-provider/dist-es/configLoader.js deleted file mode 100644 index db044dd2..00000000 --- a/node_modules/@smithy/node-config-provider/dist-es/configLoader.js +++ /dev/null @@ -1,5 +0,0 @@ -import { chain, memoize } from "@smithy/property-provider"; -import { fromEnv } from "./fromEnv"; -import { fromSharedConfigFiles } from "./fromSharedConfigFiles"; -import { fromStatic } from "./fromStatic"; -export const loadConfig = ({ environmentVariableSelector, configFileSelector, default: defaultValue }, configuration = {}) => memoize(chain(fromEnv(environmentVariableSelector), fromSharedConfigFiles(configFileSelector, configuration), fromStatic(defaultValue))); diff --git a/node_modules/@smithy/node-config-provider/dist-es/fromEnv.js b/node_modules/@smithy/node-config-provider/dist-es/fromEnv.js deleted file mode 100644 index 60050ecc..00000000 --- a/node_modules/@smithy/node-config-provider/dist-es/fromEnv.js +++ /dev/null @@ -1,13 +0,0 @@ -import { CredentialsProviderError } from "@smithy/property-provider"; -export const fromEnv = (envVarSelector) => async () => { - try { - const config = envVarSelector(process.env); - if (config === undefined) { - throw new Error(); - } - return config; - } - catch (e) { - throw new CredentialsProviderError(e.message || `Cannot load config from environment variables with getter: ${envVarSelector}`); - } -}; diff --git a/node_modules/@smithy/node-config-provider/dist-es/fromSharedConfigFiles.js b/node_modules/@smithy/node-config-provider/dist-es/fromSharedConfigFiles.js deleted file mode 100644 index e02a913a..00000000 --- a/node_modules/@smithy/node-config-provider/dist-es/fromSharedConfigFiles.js +++ /dev/null @@ -1,22 +0,0 @@ -import { CredentialsProviderError } from "@smithy/property-provider"; -import { getProfileName, loadSharedConfigFiles } from "@smithy/shared-ini-file-loader"; -export const fromSharedConfigFiles = (configSelector, { preferredFile = "config", ...init } = {}) => async () => { - const profile = getProfileName(init); - const { configFile, credentialsFile } = await loadSharedConfigFiles(init); - const profileFromCredentials = credentialsFile[profile] || {}; - const profileFromConfig = configFile[profile] || {}; - const mergedProfile = preferredFile === "config" - ? { ...profileFromCredentials, ...profileFromConfig } - : { ...profileFromConfig, ...profileFromCredentials }; - try { - const cfgFile = preferredFile === "config" ? configFile : credentialsFile; - const configValue = configSelector(mergedProfile, cfgFile); - if (configValue === undefined) { - throw new Error(); - } - return configValue; - } - catch (e) { - throw new CredentialsProviderError(e.message || `Cannot load config for profile ${profile} in SDK configuration files with getter: ${configSelector}`); - } -}; diff --git a/node_modules/@smithy/node-config-provider/dist-es/fromStatic.js b/node_modules/@smithy/node-config-provider/dist-es/fromStatic.js deleted file mode 100644 index c9f91ffb..00000000 --- a/node_modules/@smithy/node-config-provider/dist-es/fromStatic.js +++ /dev/null @@ -1,3 +0,0 @@ -import { fromStatic as convertToProvider } from "@smithy/property-provider"; -const isFunction = (func) => typeof func === "function"; -export const fromStatic = (defaultValue) => isFunction(defaultValue) ? async () => await defaultValue() : convertToProvider(defaultValue); diff --git a/node_modules/@smithy/node-config-provider/dist-es/index.js b/node_modules/@smithy/node-config-provider/dist-es/index.js deleted file mode 100644 index 2d035d91..00000000 --- a/node_modules/@smithy/node-config-provider/dist-es/index.js +++ /dev/null @@ -1 +0,0 @@ -export * from "./configLoader"; diff --git a/node_modules/@smithy/node-config-provider/dist-types/configLoader.d.ts b/node_modules/@smithy/node-config-provider/dist-types/configLoader.d.ts deleted file mode 100644 index b694bef1..00000000 --- a/node_modules/@smithy/node-config-provider/dist-types/configLoader.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { Provider } from "@smithy/types"; -import { GetterFromEnv } from "./fromEnv"; -import { GetterFromConfig, SharedConfigInit } from "./fromSharedConfigFiles"; -import { FromStaticConfig } from "./fromStatic"; -export type LocalConfigOptions = SharedConfigInit; -export interface LoadedConfigSelectors { - /** - * A getter function getting the config values from all the environment - * variables. - */ - environmentVariableSelector: GetterFromEnv; - /** - * A getter function getting config values associated with the inferred - * profile from shared INI files - */ - configFileSelector: GetterFromConfig; - /** - * Default value or getter - */ - default: FromStaticConfig; -} -export declare const loadConfig: ({ environmentVariableSelector, configFileSelector, default: defaultValue }: LoadedConfigSelectors, configuration?: LocalConfigOptions) => Provider; diff --git a/node_modules/@smithy/node-config-provider/dist-types/fromEnv.d.ts b/node_modules/@smithy/node-config-provider/dist-types/fromEnv.d.ts deleted file mode 100644 index 3608cea1..00000000 --- a/node_modules/@smithy/node-config-provider/dist-types/fromEnv.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Provider } from "@smithy/types"; -export type GetterFromEnv = (env: Record) => T | undefined; -/** - * Get config value given the environment variable name or getter from - * environment variable. - */ -export declare const fromEnv: (envVarSelector: GetterFromEnv) => Provider; diff --git a/node_modules/@smithy/node-config-provider/dist-types/fromSharedConfigFiles.d.ts b/node_modules/@smithy/node-config-provider/dist-types/fromSharedConfigFiles.d.ts deleted file mode 100644 index dd04d09c..00000000 --- a/node_modules/@smithy/node-config-provider/dist-types/fromSharedConfigFiles.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { SourceProfileInit } from "@smithy/shared-ini-file-loader"; -import { ParsedIniData, Profile, Provider } from "@smithy/types"; -export interface SharedConfigInit extends SourceProfileInit { - /** - * The preferred shared ini file to load the config. "config" option refers to - * the shared config file(defaults to `~/.aws/config`). "credentials" option - * refers to the shared credentials file(defaults to `~/.aws/credentials`) - */ - preferredFile?: "config" | "credentials"; -} -export type GetterFromConfig = (profile: Profile, configFile?: ParsedIniData) => T | undefined; -/** - * Get config value from the shared config files with inferred profile name. - */ -export declare const fromSharedConfigFiles: (configSelector: GetterFromConfig, { preferredFile, ...init }?: SharedConfigInit) => Provider; diff --git a/node_modules/@smithy/node-config-provider/dist-types/fromStatic.d.ts b/node_modules/@smithy/node-config-provider/dist-types/fromStatic.d.ts deleted file mode 100644 index 91cd637c..00000000 --- a/node_modules/@smithy/node-config-provider/dist-types/fromStatic.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { Provider } from "@smithy/types"; -export type FromStaticConfig = T | (() => T) | Provider; -export declare const fromStatic: (defaultValue: FromStaticConfig) => Provider; diff --git a/node_modules/@smithy/node-config-provider/dist-types/index.d.ts b/node_modules/@smithy/node-config-provider/dist-types/index.d.ts deleted file mode 100644 index 2d035d91..00000000 --- a/node_modules/@smithy/node-config-provider/dist-types/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./configLoader"; diff --git a/node_modules/@smithy/node-config-provider/dist-types/ts3.4/configLoader.d.ts b/node_modules/@smithy/node-config-provider/dist-types/ts3.4/configLoader.d.ts deleted file mode 100644 index c3ce9fb9..00000000 --- a/node_modules/@smithy/node-config-provider/dist-types/ts3.4/configLoader.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { Provider } from "@smithy/types"; -import { GetterFromEnv } from "./fromEnv"; -import { GetterFromConfig, SharedConfigInit } from "./fromSharedConfigFiles"; -import { FromStaticConfig } from "./fromStatic"; -export type LocalConfigOptions = SharedConfigInit; -export interface LoadedConfigSelectors { - /** - * A getter function getting the config values from all the environment - * variables. - */ - environmentVariableSelector: GetterFromEnv; - /** - * A getter function getting config values associated with the inferred - * profile from shared INI files - */ - configFileSelector: GetterFromConfig; - /** - * Default value or getter - */ - default: FromStaticConfig; -} -export declare const loadConfig: ({ environmentVariableSelector, configFileSelector, default: defaultValue }: LoadedConfigSelectors, configuration?: LocalConfigOptions) => Provider; diff --git a/node_modules/@smithy/node-config-provider/dist-types/ts3.4/fromEnv.d.ts b/node_modules/@smithy/node-config-provider/dist-types/ts3.4/fromEnv.d.ts deleted file mode 100644 index 2d253371..00000000 --- a/node_modules/@smithy/node-config-provider/dist-types/ts3.4/fromEnv.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Provider } from "@smithy/types"; -export type GetterFromEnv = (env: Record) => T | undefined; -/** - * Get config value given the environment variable name or getter from - * environment variable. - */ -export declare const fromEnv: (envVarSelector: GetterFromEnv) => Provider; diff --git a/node_modules/@smithy/node-config-provider/dist-types/ts3.4/fromSharedConfigFiles.d.ts b/node_modules/@smithy/node-config-provider/dist-types/ts3.4/fromSharedConfigFiles.d.ts deleted file mode 100644 index 67c0580c..00000000 --- a/node_modules/@smithy/node-config-provider/dist-types/ts3.4/fromSharedConfigFiles.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { SourceProfileInit } from "@smithy/shared-ini-file-loader"; -import { ParsedIniData, Profile, Provider } from "@smithy/types"; -export interface SharedConfigInit extends SourceProfileInit { - /** - * The preferred shared ini file to load the config. "config" option refers to - * the shared config file(defaults to `~/.aws/config`). "credentials" option - * refers to the shared credentials file(defaults to `~/.aws/credentials`) - */ - preferredFile?: "config" | "credentials"; -} -export type GetterFromConfig = (profile: Profile, configFile?: ParsedIniData) => T | undefined; -/** - * Get config value from the shared config files with inferred profile name. - */ -export declare const fromSharedConfigFiles: (configSelector: GetterFromConfig, { preferredFile, ...init }?: SharedConfigInit) => Provider; diff --git a/node_modules/@smithy/node-config-provider/dist-types/ts3.4/fromStatic.d.ts b/node_modules/@smithy/node-config-provider/dist-types/ts3.4/fromStatic.d.ts deleted file mode 100644 index 3df2b42f..00000000 --- a/node_modules/@smithy/node-config-provider/dist-types/ts3.4/fromStatic.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { Provider } from "@smithy/types"; -export type FromStaticConfig = T | (() => T) | Provider; -export declare const fromStatic: (defaultValue: FromStaticConfig) => Provider; diff --git a/node_modules/@smithy/node-config-provider/dist-types/ts3.4/index.d.ts b/node_modules/@smithy/node-config-provider/dist-types/ts3.4/index.d.ts deleted file mode 100644 index 74a76f57..00000000 --- a/node_modules/@smithy/node-config-provider/dist-types/ts3.4/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./configLoader"; diff --git a/node_modules/@smithy/node-config-provider/package.json b/node_modules/@smithy/node-config-provider/package.json deleted file mode 100644 index 52b6e179..00000000 --- a/node_modules/@smithy/node-config-provider/package.json +++ /dev/null @@ -1,65 +0,0 @@ -{ - "name": "@smithy/node-config-provider", - "version": "2.1.6", - "description": "Load config default values from ini config files and environmental variable", - "scripts": { - "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", - "build:cjs": "yarn g:tsc -p tsconfig.cjs.json", - "build:es": "yarn g:tsc -p tsconfig.es.json", - "build:types": "yarn g:tsc -p tsconfig.types.json", - "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", - "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz", - "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"", - "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"", - "test": "yarn g:jest --passWithNoTests" - }, - "author": { - "name": "AWS SDK for JavaScript Team", - "email": "", - "url": "https://aws.amazon.com/javascript/" - }, - "license": "Apache-2.0", - "main": "./dist-cjs/index.js", - "module": "./dist-es/index.js", - "types": "./dist-types/index.d.ts", - "dependencies": { - "@smithy/property-provider": "^2.0.15", - "@smithy/shared-ini-file-loader": "^2.2.5", - "@smithy/types": "^2.6.0", - "tslib": "^2.5.0" - }, - "devDependencies": { - "@tsconfig/recommended": "1.0.1", - "@types/node": "^14.14.31", - "concurrently": "7.0.0", - "downlevel-dts": "0.10.1", - "rimraf": "3.0.2", - "typedoc": "0.23.23" - }, - "engines": { - "node": ">=14.0.0" - }, - "typesVersions": { - "<4.0": { - "dist-types/*": [ - "dist-types/ts3.4/*" - ] - } - }, - "files": [ - "dist-*/**" - ], - "homepage": "https://github.com/awslabs/smithy-typescript/tree/main/packages/node-config-provider", - "repository": { - "type": "git", - "url": "https://github.com/awslabs/smithy-typescript.git", - "directory": "packages/node-config-provider" - }, - "typedoc": { - "entryPoint": "src/index.ts" - }, - "publishConfig": { - "directory": ".release/package" - } -} \ No newline at end of file diff --git a/node_modules/@smithy/node-http-handler/LICENSE b/node_modules/@smithy/node-http-handler/LICENSE deleted file mode 100644 index 7b6491ba..00000000 --- a/node_modules/@smithy/node-http-handler/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. \ No newline at end of file diff --git a/node_modules/@smithy/node-http-handler/README.md b/node_modules/@smithy/node-http-handler/README.md deleted file mode 100644 index 4063e670..00000000 --- a/node_modules/@smithy/node-http-handler/README.md +++ /dev/null @@ -1,4 +0,0 @@ -# @smithy/node-http-handler - -[![NPM version](https://img.shields.io/npm/v/@smithy/node-http-handler/latest.svg)](https://www.npmjs.com/package/@smithy/node-http-handler) -[![NPM downloads](https://img.shields.io/npm/dm/@smithy/node-http-handler.svg)](https://www.npmjs.com/package/@smithy/node-http-handler) diff --git a/node_modules/@smithy/node-http-handler/dist-cjs/constants.js b/node_modules/@smithy/node-http-handler/dist-cjs/constants.js deleted file mode 100644 index b156b555..00000000 --- a/node_modules/@smithy/node-http-handler/dist-cjs/constants.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.NODEJS_TIMEOUT_ERROR_CODES = void 0; -exports.NODEJS_TIMEOUT_ERROR_CODES = ["ECONNRESET", "EPIPE", "ETIMEDOUT"]; diff --git a/node_modules/@smithy/node-http-handler/dist-cjs/get-transformed-headers.js b/node_modules/@smithy/node-http-handler/dist-cjs/get-transformed-headers.js deleted file mode 100644 index a3c77d8c..00000000 --- a/node_modules/@smithy/node-http-handler/dist-cjs/get-transformed-headers.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getTransformedHeaders = void 0; -const getTransformedHeaders = (headers) => { - const transformedHeaders = {}; - for (const name of Object.keys(headers)) { - const headerValues = headers[name]; - transformedHeaders[name] = Array.isArray(headerValues) ? headerValues.join(",") : headerValues; - } - return transformedHeaders; -}; -exports.getTransformedHeaders = getTransformedHeaders; diff --git a/node_modules/@smithy/node-http-handler/dist-cjs/index.js b/node_modules/@smithy/node-http-handler/dist-cjs/index.js deleted file mode 100644 index 5dfae92f..00000000 --- a/node_modules/@smithy/node-http-handler/dist-cjs/index.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./node-http-handler"), exports); -tslib_1.__exportStar(require("./node-http2-handler"), exports); -tslib_1.__exportStar(require("./stream-collector"), exports); diff --git a/node_modules/@smithy/node-http-handler/dist-cjs/node-http-handler.js b/node_modules/@smithy/node-http-handler/dist-cjs/node-http-handler.js deleted file mode 100644 index db7f84c5..00000000 --- a/node_modules/@smithy/node-http-handler/dist-cjs/node-http-handler.js +++ /dev/null @@ -1,147 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.NodeHttpHandler = exports.DEFAULT_REQUEST_TIMEOUT = void 0; -const protocol_http_1 = require("@smithy/protocol-http"); -const querystring_builder_1 = require("@smithy/querystring-builder"); -const http_1 = require("http"); -const https_1 = require("https"); -const constants_1 = require("./constants"); -const get_transformed_headers_1 = require("./get-transformed-headers"); -const set_connection_timeout_1 = require("./set-connection-timeout"); -const set_socket_keep_alive_1 = require("./set-socket-keep-alive"); -const set_socket_timeout_1 = require("./set-socket-timeout"); -const write_request_body_1 = require("./write-request-body"); -exports.DEFAULT_REQUEST_TIMEOUT = 0; -class NodeHttpHandler { - constructor(options) { - this.metadata = { handlerProtocol: "http/1.1" }; - this.configProvider = new Promise((resolve, reject) => { - if (typeof options === "function") { - options() - .then((_options) => { - resolve(this.resolveDefaultConfig(_options)); - }) - .catch(reject); - } - else { - resolve(this.resolveDefaultConfig(options)); - } - }); - } - resolveDefaultConfig(options) { - const { requestTimeout, connectionTimeout, socketTimeout, httpAgent, httpsAgent } = options || {}; - const keepAlive = true; - const maxSockets = 50; - return { - connectionTimeout, - requestTimeout: requestTimeout !== null && requestTimeout !== void 0 ? requestTimeout : socketTimeout, - httpAgent: httpAgent || new http_1.Agent({ keepAlive, maxSockets }), - httpsAgent: httpsAgent || new https_1.Agent({ keepAlive, maxSockets }), - }; - } - destroy() { - var _a, _b, _c, _d; - (_b = (_a = this.config) === null || _a === void 0 ? void 0 : _a.httpAgent) === null || _b === void 0 ? void 0 : _b.destroy(); - (_d = (_c = this.config) === null || _c === void 0 ? void 0 : _c.httpsAgent) === null || _d === void 0 ? void 0 : _d.destroy(); - } - async handle(request, { abortSignal } = {}) { - if (!this.config) { - this.config = await this.configProvider; - } - return new Promise((_resolve, _reject) => { - var _a, _b; - let writeRequestBodyPromise = undefined; - const resolve = async (arg) => { - await writeRequestBodyPromise; - _resolve(arg); - }; - const reject = async (arg) => { - await writeRequestBodyPromise; - _reject(arg); - }; - if (!this.config) { - throw new Error("Node HTTP request handler config is not resolved"); - } - if (abortSignal === null || abortSignal === void 0 ? void 0 : abortSignal.aborted) { - const abortError = new Error("Request aborted"); - abortError.name = "AbortError"; - reject(abortError); - return; - } - const isSSL = request.protocol === "https:"; - const queryString = (0, querystring_builder_1.buildQueryString)(request.query || {}); - let auth = undefined; - if (request.username != null || request.password != null) { - const username = (_a = request.username) !== null && _a !== void 0 ? _a : ""; - const password = (_b = request.password) !== null && _b !== void 0 ? _b : ""; - auth = `${username}:${password}`; - } - let path = request.path; - if (queryString) { - path += `?${queryString}`; - } - if (request.fragment) { - path += `#${request.fragment}`; - } - const nodeHttpsOptions = { - headers: request.headers, - host: request.hostname, - method: request.method, - path, - port: request.port, - agent: isSSL ? this.config.httpsAgent : this.config.httpAgent, - auth, - }; - const requestFunc = isSSL ? https_1.request : http_1.request; - const req = requestFunc(nodeHttpsOptions, (res) => { - const httpResponse = new protocol_http_1.HttpResponse({ - statusCode: res.statusCode || -1, - reason: res.statusMessage, - headers: (0, get_transformed_headers_1.getTransformedHeaders)(res.headers), - body: res, - }); - resolve({ response: httpResponse }); - }); - req.on("error", (err) => { - if (constants_1.NODEJS_TIMEOUT_ERROR_CODES.includes(err.code)) { - reject(Object.assign(err, { name: "TimeoutError" })); - } - else { - reject(err); - } - }); - (0, set_connection_timeout_1.setConnectionTimeout)(req, reject, this.config.connectionTimeout); - (0, set_socket_timeout_1.setSocketTimeout)(req, reject, this.config.requestTimeout); - if (abortSignal) { - abortSignal.onabort = () => { - req.abort(); - const abortError = new Error("Request aborted"); - abortError.name = "AbortError"; - reject(abortError); - }; - } - const httpAgent = nodeHttpsOptions.agent; - if (typeof httpAgent === "object" && "keepAlive" in httpAgent) { - (0, set_socket_keep_alive_1.setSocketKeepAlive)(req, { - keepAlive: httpAgent.keepAlive, - keepAliveMsecs: httpAgent.keepAliveMsecs, - }); - } - writeRequestBodyPromise = (0, write_request_body_1.writeRequestBody)(req, request, this.config.requestTimeout).catch(_reject); - }); - } - updateHttpClientConfig(key, value) { - this.config = undefined; - this.configProvider = this.configProvider.then((config) => { - return { - ...config, - [key]: value, - }; - }); - } - httpHandlerConfigs() { - var _a; - return (_a = this.config) !== null && _a !== void 0 ? _a : {}; - } -} -exports.NodeHttpHandler = NodeHttpHandler; diff --git a/node_modules/@smithy/node-http-handler/dist-cjs/node-http2-connection-manager.js b/node_modules/@smithy/node-http-handler/dist-cjs/node-http2-connection-manager.js deleted file mode 100644 index 7473f764..00000000 --- a/node_modules/@smithy/node-http-handler/dist-cjs/node-http2-connection-manager.js +++ /dev/null @@ -1,92 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.NodeHttp2ConnectionManager = void 0; -const tslib_1 = require("tslib"); -const http2_1 = tslib_1.__importDefault(require("http2")); -const node_http2_connection_pool_1 = require("./node-http2-connection-pool"); -class NodeHttp2ConnectionManager { - constructor(config) { - this.sessionCache = new Map(); - this.config = config; - if (this.config.maxConcurrency && this.config.maxConcurrency <= 0) { - throw new RangeError("maxConcurrency must be greater than zero."); - } - } - lease(requestContext, connectionConfiguration) { - const url = this.getUrlString(requestContext); - const existingPool = this.sessionCache.get(url); - if (existingPool) { - const existingSession = existingPool.poll(); - if (existingSession && !this.config.disableConcurrency) { - return existingSession; - } - } - const session = http2_1.default.connect(url); - if (this.config.maxConcurrency) { - session.settings({ maxConcurrentStreams: this.config.maxConcurrency }, (err) => { - if (err) { - throw new Error("Fail to set maxConcurrentStreams to " + - this.config.maxConcurrency + - "when creating new session for " + - requestContext.destination.toString()); - } - }); - } - session.unref(); - const destroySessionCb = () => { - session.destroy(); - this.deleteSession(url, session); - }; - session.on("goaway", destroySessionCb); - session.on("error", destroySessionCb); - session.on("frameError", destroySessionCb); - session.on("close", () => this.deleteSession(url, session)); - if (connectionConfiguration.requestTimeout) { - session.setTimeout(connectionConfiguration.requestTimeout, destroySessionCb); - } - const connectionPool = this.sessionCache.get(url) || new node_http2_connection_pool_1.NodeHttp2ConnectionPool(); - connectionPool.offerLast(session); - this.sessionCache.set(url, connectionPool); - return session; - } - deleteSession(authority, session) { - const existingConnectionPool = this.sessionCache.get(authority); - if (!existingConnectionPool) { - return; - } - if (!existingConnectionPool.contains(session)) { - return; - } - existingConnectionPool.remove(session); - this.sessionCache.set(authority, existingConnectionPool); - } - release(requestContext, session) { - var _a; - const cacheKey = this.getUrlString(requestContext); - (_a = this.sessionCache.get(cacheKey)) === null || _a === void 0 ? void 0 : _a.offerLast(session); - } - destroy() { - for (const [key, connectionPool] of this.sessionCache) { - for (const session of connectionPool) { - if (!session.destroyed) { - session.destroy(); - } - connectionPool.remove(session); - } - this.sessionCache.delete(key); - } - } - setMaxConcurrentStreams(maxConcurrentStreams) { - if (this.config.maxConcurrency && this.config.maxConcurrency <= 0) { - throw new RangeError("maxConcurrentStreams must be greater than zero."); - } - this.config.maxConcurrency = maxConcurrentStreams; - } - setDisableConcurrentStreams(disableConcurrentStreams) { - this.config.disableConcurrency = disableConcurrentStreams; - } - getUrlString(request) { - return request.destination.toString(); - } -} -exports.NodeHttp2ConnectionManager = NodeHttp2ConnectionManager; diff --git a/node_modules/@smithy/node-http-handler/dist-cjs/node-http2-connection-pool.js b/node_modules/@smithy/node-http-handler/dist-cjs/node-http2-connection-pool.js deleted file mode 100644 index f1643eb6..00000000 --- a/node_modules/@smithy/node-http-handler/dist-cjs/node-http2-connection-pool.js +++ /dev/null @@ -1,36 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.NodeHttp2ConnectionPool = void 0; -class NodeHttp2ConnectionPool { - constructor(sessions) { - this.sessions = []; - this.sessions = sessions !== null && sessions !== void 0 ? sessions : []; - } - poll() { - if (this.sessions.length > 0) { - return this.sessions.shift(); - } - } - offerLast(session) { - this.sessions.push(session); - } - contains(session) { - return this.sessions.includes(session); - } - remove(session) { - this.sessions = this.sessions.filter((s) => s !== session); - } - [Symbol.iterator]() { - return this.sessions[Symbol.iterator](); - } - destroy(connection) { - for (const session of this.sessions) { - if (session === connection) { - if (!session.destroyed) { - session.destroy(); - } - } - } - } -} -exports.NodeHttp2ConnectionPool = NodeHttp2ConnectionPool; diff --git a/node_modules/@smithy/node-http-handler/dist-cjs/node-http2-handler.js b/node_modules/@smithy/node-http-handler/dist-cjs/node-http2-handler.js deleted file mode 100644 index fac577b6..00000000 --- a/node_modules/@smithy/node-http-handler/dist-cjs/node-http2-handler.js +++ /dev/null @@ -1,159 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.NodeHttp2Handler = void 0; -const protocol_http_1 = require("@smithy/protocol-http"); -const querystring_builder_1 = require("@smithy/querystring-builder"); -const http2_1 = require("http2"); -const get_transformed_headers_1 = require("./get-transformed-headers"); -const node_http2_connection_manager_1 = require("./node-http2-connection-manager"); -const write_request_body_1 = require("./write-request-body"); -class NodeHttp2Handler { - constructor(options) { - this.metadata = { handlerProtocol: "h2" }; - this.connectionManager = new node_http2_connection_manager_1.NodeHttp2ConnectionManager({}); - this.configProvider = new Promise((resolve, reject) => { - if (typeof options === "function") { - options() - .then((opts) => { - resolve(opts || {}); - }) - .catch(reject); - } - else { - resolve(options || {}); - } - }); - } - destroy() { - this.connectionManager.destroy(); - } - async handle(request, { abortSignal } = {}) { - if (!this.config) { - this.config = await this.configProvider; - this.connectionManager.setDisableConcurrentStreams(this.config.disableConcurrentStreams || false); - if (this.config.maxConcurrentStreams) { - this.connectionManager.setMaxConcurrentStreams(this.config.maxConcurrentStreams); - } - } - const { requestTimeout, disableConcurrentStreams } = this.config; - return new Promise((_resolve, _reject) => { - var _a, _b, _c; - let fulfilled = false; - let writeRequestBodyPromise = undefined; - const resolve = async (arg) => { - await writeRequestBodyPromise; - _resolve(arg); - }; - const reject = async (arg) => { - await writeRequestBodyPromise; - _reject(arg); - }; - if (abortSignal === null || abortSignal === void 0 ? void 0 : abortSignal.aborted) { - fulfilled = true; - const abortError = new Error("Request aborted"); - abortError.name = "AbortError"; - reject(abortError); - return; - } - const { hostname, method, port, protocol, query } = request; - let auth = ""; - if (request.username != null || request.password != null) { - const username = (_a = request.username) !== null && _a !== void 0 ? _a : ""; - const password = (_b = request.password) !== null && _b !== void 0 ? _b : ""; - auth = `${username}:${password}@`; - } - const authority = `${protocol}//${auth}${hostname}${port ? `:${port}` : ""}`; - const requestContext = { destination: new URL(authority) }; - const session = this.connectionManager.lease(requestContext, { - requestTimeout: (_c = this.config) === null || _c === void 0 ? void 0 : _c.sessionTimeout, - disableConcurrentStreams: disableConcurrentStreams || false, - }); - const rejectWithDestroy = (err) => { - if (disableConcurrentStreams) { - this.destroySession(session); - } - fulfilled = true; - reject(err); - }; - const queryString = (0, querystring_builder_1.buildQueryString)(query || {}); - let path = request.path; - if (queryString) { - path += `?${queryString}`; - } - if (request.fragment) { - path += `#${request.fragment}`; - } - const req = session.request({ - ...request.headers, - [http2_1.constants.HTTP2_HEADER_PATH]: path, - [http2_1.constants.HTTP2_HEADER_METHOD]: method, - }); - session.ref(); - req.on("response", (headers) => { - const httpResponse = new protocol_http_1.HttpResponse({ - statusCode: headers[":status"] || -1, - headers: (0, get_transformed_headers_1.getTransformedHeaders)(headers), - body: req, - }); - fulfilled = true; - resolve({ response: httpResponse }); - if (disableConcurrentStreams) { - session.close(); - this.connectionManager.deleteSession(authority, session); - } - }); - if (requestTimeout) { - req.setTimeout(requestTimeout, () => { - req.close(); - const timeoutError = new Error(`Stream timed out because of no activity for ${requestTimeout} ms`); - timeoutError.name = "TimeoutError"; - rejectWithDestroy(timeoutError); - }); - } - if (abortSignal) { - abortSignal.onabort = () => { - req.close(); - const abortError = new Error("Request aborted"); - abortError.name = "AbortError"; - rejectWithDestroy(abortError); - }; - } - req.on("frameError", (type, code, id) => { - rejectWithDestroy(new Error(`Frame type id ${type} in stream id ${id} has failed with code ${code}.`)); - }); - req.on("error", rejectWithDestroy); - req.on("aborted", () => { - rejectWithDestroy(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${req.rstCode}.`)); - }); - req.on("close", () => { - session.unref(); - if (disableConcurrentStreams) { - session.destroy(); - } - if (!fulfilled) { - rejectWithDestroy(new Error("Unexpected error: http2 request did not get a response")); - } - }); - writeRequestBodyPromise = (0, write_request_body_1.writeRequestBody)(req, request, requestTimeout); - }); - } - updateHttpClientConfig(key, value) { - this.config = undefined; - this.configProvider = this.configProvider.then((config) => { - return { - ...config, - [key]: value, - }; - }); - } - httpHandlerConfigs() { - var _a; - return (_a = this.config) !== null && _a !== void 0 ? _a : {}; - } - destroySession(session) { - if (!session.destroyed) { - session.destroy(); - } - } -} -exports.NodeHttp2Handler = NodeHttp2Handler; diff --git a/node_modules/@smithy/node-http-handler/dist-cjs/readable.mock.js b/node_modules/@smithy/node-http-handler/dist-cjs/readable.mock.js deleted file mode 100644 index d17c5bbe..00000000 --- a/node_modules/@smithy/node-http-handler/dist-cjs/readable.mock.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ReadFromBuffers = void 0; -const stream_1 = require("stream"); -class ReadFromBuffers extends stream_1.Readable { - constructor(options) { - super(options); - this.numBuffersRead = 0; - this.buffersToRead = options.buffers; - this.errorAfter = typeof options.errorAfter === "number" ? options.errorAfter : -1; - } - _read() { - if (this.errorAfter !== -1 && this.errorAfter === this.numBuffersRead) { - this.emit("error", new Error("Mock Error")); - return; - } - if (this.numBuffersRead >= this.buffersToRead.length) { - return this.push(null); - } - return this.push(this.buffersToRead[this.numBuffersRead++]); - } -} -exports.ReadFromBuffers = ReadFromBuffers; diff --git a/node_modules/@smithy/node-http-handler/dist-cjs/server.mock.js b/node_modules/@smithy/node-http-handler/dist-cjs/server.mock.js deleted file mode 100644 index f5e030d6..00000000 --- a/node_modules/@smithy/node-http-handler/dist-cjs/server.mock.js +++ /dev/null @@ -1,60 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createMockHttp2Server = exports.createMockHttpServer = exports.createMockHttpsServer = exports.createContinueResponseFunction = exports.createResponseFunctionWithDelay = exports.createResponseFunction = void 0; -const fs_1 = require("fs"); -const http_1 = require("http"); -const http2_1 = require("http2"); -const https_1 = require("https"); -const path_1 = require("path"); -const stream_1 = require("stream"); -const fixturesDir = (0, path_1.join)(__dirname, "..", "fixtures"); -const setResponseHeaders = (response, headers) => { - for (const [key, value] of Object.entries(headers)) { - response.setHeader(key, value); - } -}; -const setResponseBody = (response, body) => { - if (body instanceof stream_1.Readable) { - body.pipe(response); - } - else { - response.end(body); - } -}; -const createResponseFunction = (httpResp) => (request, response) => { - response.statusCode = httpResp.statusCode; - setResponseHeaders(response, httpResp.headers); - setResponseBody(response, httpResp.body); -}; -exports.createResponseFunction = createResponseFunction; -const createResponseFunctionWithDelay = (httpResp, delay) => (request, response) => { - response.statusCode = httpResp.statusCode; - setResponseHeaders(response, httpResp.headers); - setTimeout(() => setResponseBody(response, httpResp.body), delay); -}; -exports.createResponseFunctionWithDelay = createResponseFunctionWithDelay; -const createContinueResponseFunction = (httpResp) => (request, response) => { - response.writeContinue(); - setTimeout(() => { - (0, exports.createResponseFunction)(httpResp)(request, response); - }, 100); -}; -exports.createContinueResponseFunction = createContinueResponseFunction; -const createMockHttpsServer = () => { - const server = (0, https_1.createServer)({ - key: (0, fs_1.readFileSync)((0, path_1.join)(fixturesDir, "test-server-key.pem")), - cert: (0, fs_1.readFileSync)((0, path_1.join)(fixturesDir, "test-server-cert.pem")), - }); - return server; -}; -exports.createMockHttpsServer = createMockHttpsServer; -const createMockHttpServer = () => { - const server = (0, http_1.createServer)(); - return server; -}; -exports.createMockHttpServer = createMockHttpServer; -const createMockHttp2Server = () => { - const server = (0, http2_1.createServer)(); - return server; -}; -exports.createMockHttp2Server = createMockHttp2Server; diff --git a/node_modules/@smithy/node-http-handler/dist-cjs/set-connection-timeout.js b/node_modules/@smithy/node-http-handler/dist-cjs/set-connection-timeout.js deleted file mode 100644 index e4c6feda..00000000 --- a/node_modules/@smithy/node-http-handler/dist-cjs/set-connection-timeout.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.setConnectionTimeout = void 0; -const setConnectionTimeout = (request, reject, timeoutInMs = 0) => { - if (!timeoutInMs) { - return; - } - const timeoutId = setTimeout(() => { - request.destroy(); - reject(Object.assign(new Error(`Socket timed out without establishing a connection within ${timeoutInMs} ms`), { - name: "TimeoutError", - })); - }, timeoutInMs); - request.on("socket", (socket) => { - if (socket.connecting) { - socket.on("connect", () => { - clearTimeout(timeoutId); - }); - } - else { - clearTimeout(timeoutId); - } - }); -}; -exports.setConnectionTimeout = setConnectionTimeout; diff --git a/node_modules/@smithy/node-http-handler/dist-cjs/set-socket-keep-alive.js b/node_modules/@smithy/node-http-handler/dist-cjs/set-socket-keep-alive.js deleted file mode 100644 index e74ce120..00000000 --- a/node_modules/@smithy/node-http-handler/dist-cjs/set-socket-keep-alive.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.setSocketKeepAlive = void 0; -const setSocketKeepAlive = (request, { keepAlive, keepAliveMsecs }) => { - if (keepAlive !== true) { - return; - } - request.on("socket", (socket) => { - socket.setKeepAlive(keepAlive, keepAliveMsecs || 0); - }); -}; -exports.setSocketKeepAlive = setSocketKeepAlive; diff --git a/node_modules/@smithy/node-http-handler/dist-cjs/set-socket-timeout.js b/node_modules/@smithy/node-http-handler/dist-cjs/set-socket-timeout.js deleted file mode 100644 index aeb63b59..00000000 --- a/node_modules/@smithy/node-http-handler/dist-cjs/set-socket-timeout.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.setSocketTimeout = void 0; -const setSocketTimeout = (request, reject, timeoutInMs = 0) => { - request.setTimeout(timeoutInMs, () => { - request.destroy(); - reject(Object.assign(new Error(`Connection timed out after ${timeoutInMs} ms`), { name: "TimeoutError" })); - }); -}; -exports.setSocketTimeout = setSocketTimeout; diff --git a/node_modules/@smithy/node-http-handler/dist-cjs/stream-collector/collector.js b/node_modules/@smithy/node-http-handler/dist-cjs/stream-collector/collector.js deleted file mode 100644 index 33a34331..00000000 --- a/node_modules/@smithy/node-http-handler/dist-cjs/stream-collector/collector.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Collector = void 0; -const stream_1 = require("stream"); -class Collector extends stream_1.Writable { - constructor() { - super(...arguments); - this.bufferedBytes = []; - } - _write(chunk, encoding, callback) { - this.bufferedBytes.push(chunk); - callback(); - } -} -exports.Collector = Collector; diff --git a/node_modules/@smithy/node-http-handler/dist-cjs/stream-collector/index.js b/node_modules/@smithy/node-http-handler/dist-cjs/stream-collector/index.js deleted file mode 100644 index a06c706a..00000000 --- a/node_modules/@smithy/node-http-handler/dist-cjs/stream-collector/index.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.streamCollector = void 0; -const collector_1 = require("./collector"); -const streamCollector = (stream) => new Promise((resolve, reject) => { - const collector = new collector_1.Collector(); - stream.pipe(collector); - stream.on("error", (err) => { - collector.end(); - reject(err); - }); - collector.on("error", reject); - collector.on("finish", function () { - const bytes = new Uint8Array(Buffer.concat(this.bufferedBytes)); - resolve(bytes); - }); -}); -exports.streamCollector = streamCollector; diff --git a/node_modules/@smithy/node-http-handler/dist-cjs/stream-collector/readable.mock.js b/node_modules/@smithy/node-http-handler/dist-cjs/stream-collector/readable.mock.js deleted file mode 100644 index 1a880b85..00000000 --- a/node_modules/@smithy/node-http-handler/dist-cjs/stream-collector/readable.mock.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ReadFromBuffers = void 0; -const stream_1 = require("stream"); -class ReadFromBuffers extends stream_1.Readable { - constructor(options) { - super(options); - this.numBuffersRead = 0; - this.buffersToRead = options.buffers; - this.errorAfter = typeof options.errorAfter === "number" ? options.errorAfter : -1; - } - _read(size) { - if (this.errorAfter !== -1 && this.errorAfter === this.numBuffersRead) { - this.emit("error", new Error("Mock Error")); - return; - } - if (this.numBuffersRead >= this.buffersToRead.length) { - return this.push(null); - } - return this.push(this.buffersToRead[this.numBuffersRead++]); - } -} -exports.ReadFromBuffers = ReadFromBuffers; diff --git a/node_modules/@smithy/node-http-handler/dist-cjs/write-request-body.js b/node_modules/@smithy/node-http-handler/dist-cjs/write-request-body.js deleted file mode 100644 index 1b4191ba..00000000 --- a/node_modules/@smithy/node-http-handler/dist-cjs/write-request-body.js +++ /dev/null @@ -1,45 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.writeRequestBody = void 0; -const stream_1 = require("stream"); -const MIN_WAIT_TIME = 1000; -async function writeRequestBody(httpRequest, request, maxContinueTimeoutMs = MIN_WAIT_TIME) { - var _a; - const headers = (_a = request.headers) !== null && _a !== void 0 ? _a : {}; - const expect = headers["Expect"] || headers["expect"]; - let timeoutId = -1; - let hasError = false; - if (expect === "100-continue") { - await Promise.race([ - new Promise((resolve) => { - timeoutId = Number(setTimeout(resolve, Math.max(MIN_WAIT_TIME, maxContinueTimeoutMs))); - }), - new Promise((resolve) => { - httpRequest.on("continue", () => { - clearTimeout(timeoutId); - resolve(); - }); - httpRequest.on("error", () => { - hasError = true; - clearTimeout(timeoutId); - resolve(); - }); - }), - ]); - } - if (!hasError) { - writeBody(httpRequest, request.body); - } -} -exports.writeRequestBody = writeRequestBody; -function writeBody(httpRequest, body) { - if (body instanceof stream_1.Readable) { - body.pipe(httpRequest); - } - else if (body) { - httpRequest.end(Buffer.from(body)); - } - else { - httpRequest.end(); - } -} diff --git a/node_modules/@smithy/node-http-handler/dist-es/constants.js b/node_modules/@smithy/node-http-handler/dist-es/constants.js deleted file mode 100644 index 0619d286..00000000 --- a/node_modules/@smithy/node-http-handler/dist-es/constants.js +++ /dev/null @@ -1 +0,0 @@ -export const NODEJS_TIMEOUT_ERROR_CODES = ["ECONNRESET", "EPIPE", "ETIMEDOUT"]; diff --git a/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js b/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js deleted file mode 100644 index 562883c6..00000000 --- a/node_modules/@smithy/node-http-handler/dist-es/get-transformed-headers.js +++ /dev/null @@ -1,9 +0,0 @@ -const getTransformedHeaders = (headers) => { - const transformedHeaders = {}; - for (const name of Object.keys(headers)) { - const headerValues = headers[name]; - transformedHeaders[name] = Array.isArray(headerValues) ? headerValues.join(",") : headerValues; - } - return transformedHeaders; -}; -export { getTransformedHeaders }; diff --git a/node_modules/@smithy/node-http-handler/dist-es/index.js b/node_modules/@smithy/node-http-handler/dist-es/index.js deleted file mode 100644 index 09c0b9a5..00000000 --- a/node_modules/@smithy/node-http-handler/dist-es/index.js +++ /dev/null @@ -1,3 +0,0 @@ -export * from "./node-http-handler"; -export * from "./node-http2-handler"; -export * from "./stream-collector"; diff --git a/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js b/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js deleted file mode 100644 index 4d453b7d..00000000 --- a/node_modules/@smithy/node-http-handler/dist-es/node-http-handler.js +++ /dev/null @@ -1,140 +0,0 @@ -import { HttpResponse } from "@smithy/protocol-http"; -import { buildQueryString } from "@smithy/querystring-builder"; -import { Agent as hAgent, request as hRequest } from "http"; -import { Agent as hsAgent, request as hsRequest } from "https"; -import { NODEJS_TIMEOUT_ERROR_CODES } from "./constants"; -import { getTransformedHeaders } from "./get-transformed-headers"; -import { setConnectionTimeout } from "./set-connection-timeout"; -import { setSocketKeepAlive } from "./set-socket-keep-alive"; -import { setSocketTimeout } from "./set-socket-timeout"; -import { writeRequestBody } from "./write-request-body"; -export const DEFAULT_REQUEST_TIMEOUT = 0; -export class NodeHttpHandler { - constructor(options) { - this.metadata = { handlerProtocol: "http/1.1" }; - this.configProvider = new Promise((resolve, reject) => { - if (typeof options === "function") { - options() - .then((_options) => { - resolve(this.resolveDefaultConfig(_options)); - }) - .catch(reject); - } - else { - resolve(this.resolveDefaultConfig(options)); - } - }); - } - resolveDefaultConfig(options) { - const { requestTimeout, connectionTimeout, socketTimeout, httpAgent, httpsAgent } = options || {}; - const keepAlive = true; - const maxSockets = 50; - return { - connectionTimeout, - requestTimeout: requestTimeout ?? socketTimeout, - httpAgent: httpAgent || new hAgent({ keepAlive, maxSockets }), - httpsAgent: httpsAgent || new hsAgent({ keepAlive, maxSockets }), - }; - } - destroy() { - this.config?.httpAgent?.destroy(); - this.config?.httpsAgent?.destroy(); - } - async handle(request, { abortSignal } = {}) { - if (!this.config) { - this.config = await this.configProvider; - } - return new Promise((_resolve, _reject) => { - let writeRequestBodyPromise = undefined; - const resolve = async (arg) => { - await writeRequestBodyPromise; - _resolve(arg); - }; - const reject = async (arg) => { - await writeRequestBodyPromise; - _reject(arg); - }; - if (!this.config) { - throw new Error("Node HTTP request handler config is not resolved"); - } - if (abortSignal?.aborted) { - const abortError = new Error("Request aborted"); - abortError.name = "AbortError"; - reject(abortError); - return; - } - const isSSL = request.protocol === "https:"; - const queryString = buildQueryString(request.query || {}); - let auth = undefined; - if (request.username != null || request.password != null) { - const username = request.username ?? ""; - const password = request.password ?? ""; - auth = `${username}:${password}`; - } - let path = request.path; - if (queryString) { - path += `?${queryString}`; - } - if (request.fragment) { - path += `#${request.fragment}`; - } - const nodeHttpsOptions = { - headers: request.headers, - host: request.hostname, - method: request.method, - path, - port: request.port, - agent: isSSL ? this.config.httpsAgent : this.config.httpAgent, - auth, - }; - const requestFunc = isSSL ? hsRequest : hRequest; - const req = requestFunc(nodeHttpsOptions, (res) => { - const httpResponse = new HttpResponse({ - statusCode: res.statusCode || -1, - reason: res.statusMessage, - headers: getTransformedHeaders(res.headers), - body: res, - }); - resolve({ response: httpResponse }); - }); - req.on("error", (err) => { - if (NODEJS_TIMEOUT_ERROR_CODES.includes(err.code)) { - reject(Object.assign(err, { name: "TimeoutError" })); - } - else { - reject(err); - } - }); - setConnectionTimeout(req, reject, this.config.connectionTimeout); - setSocketTimeout(req, reject, this.config.requestTimeout); - if (abortSignal) { - abortSignal.onabort = () => { - req.abort(); - const abortError = new Error("Request aborted"); - abortError.name = "AbortError"; - reject(abortError); - }; - } - const httpAgent = nodeHttpsOptions.agent; - if (typeof httpAgent === "object" && "keepAlive" in httpAgent) { - setSocketKeepAlive(req, { - keepAlive: httpAgent.keepAlive, - keepAliveMsecs: httpAgent.keepAliveMsecs, - }); - } - writeRequestBodyPromise = writeRequestBody(req, request, this.config.requestTimeout).catch(_reject); - }); - } - updateHttpClientConfig(key, value) { - this.config = undefined; - this.configProvider = this.configProvider.then((config) => { - return { - ...config, - [key]: value, - }; - }); - } - httpHandlerConfigs() { - return this.config ?? {}; - } -} diff --git a/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js b/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js deleted file mode 100644 index 57aab158..00000000 --- a/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-manager.js +++ /dev/null @@ -1,86 +0,0 @@ -import http2 from "http2"; -import { NodeHttp2ConnectionPool } from "./node-http2-connection-pool"; -export class NodeHttp2ConnectionManager { - constructor(config) { - this.sessionCache = new Map(); - this.config = config; - if (this.config.maxConcurrency && this.config.maxConcurrency <= 0) { - throw new RangeError("maxConcurrency must be greater than zero."); - } - } - lease(requestContext, connectionConfiguration) { - const url = this.getUrlString(requestContext); - const existingPool = this.sessionCache.get(url); - if (existingPool) { - const existingSession = existingPool.poll(); - if (existingSession && !this.config.disableConcurrency) { - return existingSession; - } - } - const session = http2.connect(url); - if (this.config.maxConcurrency) { - session.settings({ maxConcurrentStreams: this.config.maxConcurrency }, (err) => { - if (err) { - throw new Error("Fail to set maxConcurrentStreams to " + - this.config.maxConcurrency + - "when creating new session for " + - requestContext.destination.toString()); - } - }); - } - session.unref(); - const destroySessionCb = () => { - session.destroy(); - this.deleteSession(url, session); - }; - session.on("goaway", destroySessionCb); - session.on("error", destroySessionCb); - session.on("frameError", destroySessionCb); - session.on("close", () => this.deleteSession(url, session)); - if (connectionConfiguration.requestTimeout) { - session.setTimeout(connectionConfiguration.requestTimeout, destroySessionCb); - } - const connectionPool = this.sessionCache.get(url) || new NodeHttp2ConnectionPool(); - connectionPool.offerLast(session); - this.sessionCache.set(url, connectionPool); - return session; - } - deleteSession(authority, session) { - const existingConnectionPool = this.sessionCache.get(authority); - if (!existingConnectionPool) { - return; - } - if (!existingConnectionPool.contains(session)) { - return; - } - existingConnectionPool.remove(session); - this.sessionCache.set(authority, existingConnectionPool); - } - release(requestContext, session) { - const cacheKey = this.getUrlString(requestContext); - this.sessionCache.get(cacheKey)?.offerLast(session); - } - destroy() { - for (const [key, connectionPool] of this.sessionCache) { - for (const session of connectionPool) { - if (!session.destroyed) { - session.destroy(); - } - connectionPool.remove(session); - } - this.sessionCache.delete(key); - } - } - setMaxConcurrentStreams(maxConcurrentStreams) { - if (this.config.maxConcurrency && this.config.maxConcurrency <= 0) { - throw new RangeError("maxConcurrentStreams must be greater than zero."); - } - this.config.maxConcurrency = maxConcurrentStreams; - } - setDisableConcurrentStreams(disableConcurrentStreams) { - this.config.disableConcurrency = disableConcurrentStreams; - } - getUrlString(request) { - return request.destination.toString(); - } -} diff --git a/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-pool.js b/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-pool.js deleted file mode 100644 index 429eb49c..00000000 --- a/node_modules/@smithy/node-http-handler/dist-es/node-http2-connection-pool.js +++ /dev/null @@ -1,32 +0,0 @@ -export class NodeHttp2ConnectionPool { - constructor(sessions) { - this.sessions = []; - this.sessions = sessions ?? []; - } - poll() { - if (this.sessions.length > 0) { - return this.sessions.shift(); - } - } - offerLast(session) { - this.sessions.push(session); - } - contains(session) { - return this.sessions.includes(session); - } - remove(session) { - this.sessions = this.sessions.filter((s) => s !== session); - } - [Symbol.iterator]() { - return this.sessions[Symbol.iterator](); - } - destroy(connection) { - for (const session of this.sessions) { - if (session === connection) { - if (!session.destroyed) { - session.destroy(); - } - } - } - } -} diff --git a/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js b/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js deleted file mode 100644 index 11211c3c..00000000 --- a/node_modules/@smithy/node-http-handler/dist-es/node-http2-handler.js +++ /dev/null @@ -1,153 +0,0 @@ -import { HttpResponse } from "@smithy/protocol-http"; -import { buildQueryString } from "@smithy/querystring-builder"; -import { constants } from "http2"; -import { getTransformedHeaders } from "./get-transformed-headers"; -import { NodeHttp2ConnectionManager } from "./node-http2-connection-manager"; -import { writeRequestBody } from "./write-request-body"; -export class NodeHttp2Handler { - constructor(options) { - this.metadata = { handlerProtocol: "h2" }; - this.connectionManager = new NodeHttp2ConnectionManager({}); - this.configProvider = new Promise((resolve, reject) => { - if (typeof options === "function") { - options() - .then((opts) => { - resolve(opts || {}); - }) - .catch(reject); - } - else { - resolve(options || {}); - } - }); - } - destroy() { - this.connectionManager.destroy(); - } - async handle(request, { abortSignal } = {}) { - if (!this.config) { - this.config = await this.configProvider; - this.connectionManager.setDisableConcurrentStreams(this.config.disableConcurrentStreams || false); - if (this.config.maxConcurrentStreams) { - this.connectionManager.setMaxConcurrentStreams(this.config.maxConcurrentStreams); - } - } - const { requestTimeout, disableConcurrentStreams } = this.config; - return new Promise((_resolve, _reject) => { - let fulfilled = false; - let writeRequestBodyPromise = undefined; - const resolve = async (arg) => { - await writeRequestBodyPromise; - _resolve(arg); - }; - const reject = async (arg) => { - await writeRequestBodyPromise; - _reject(arg); - }; - if (abortSignal?.aborted) { - fulfilled = true; - const abortError = new Error("Request aborted"); - abortError.name = "AbortError"; - reject(abortError); - return; - } - const { hostname, method, port, protocol, query } = request; - let auth = ""; - if (request.username != null || request.password != null) { - const username = request.username ?? ""; - const password = request.password ?? ""; - auth = `${username}:${password}@`; - } - const authority = `${protocol}//${auth}${hostname}${port ? `:${port}` : ""}`; - const requestContext = { destination: new URL(authority) }; - const session = this.connectionManager.lease(requestContext, { - requestTimeout: this.config?.sessionTimeout, - disableConcurrentStreams: disableConcurrentStreams || false, - }); - const rejectWithDestroy = (err) => { - if (disableConcurrentStreams) { - this.destroySession(session); - } - fulfilled = true; - reject(err); - }; - const queryString = buildQueryString(query || {}); - let path = request.path; - if (queryString) { - path += `?${queryString}`; - } - if (request.fragment) { - path += `#${request.fragment}`; - } - const req = session.request({ - ...request.headers, - [constants.HTTP2_HEADER_PATH]: path, - [constants.HTTP2_HEADER_METHOD]: method, - }); - session.ref(); - req.on("response", (headers) => { - const httpResponse = new HttpResponse({ - statusCode: headers[":status"] || -1, - headers: getTransformedHeaders(headers), - body: req, - }); - fulfilled = true; - resolve({ response: httpResponse }); - if (disableConcurrentStreams) { - session.close(); - this.connectionManager.deleteSession(authority, session); - } - }); - if (requestTimeout) { - req.setTimeout(requestTimeout, () => { - req.close(); - const timeoutError = new Error(`Stream timed out because of no activity for ${requestTimeout} ms`); - timeoutError.name = "TimeoutError"; - rejectWithDestroy(timeoutError); - }); - } - if (abortSignal) { - abortSignal.onabort = () => { - req.close(); - const abortError = new Error("Request aborted"); - abortError.name = "AbortError"; - rejectWithDestroy(abortError); - }; - } - req.on("frameError", (type, code, id) => { - rejectWithDestroy(new Error(`Frame type id ${type} in stream id ${id} has failed with code ${code}.`)); - }); - req.on("error", rejectWithDestroy); - req.on("aborted", () => { - rejectWithDestroy(new Error(`HTTP/2 stream is abnormally aborted in mid-communication with result code ${req.rstCode}.`)); - }); - req.on("close", () => { - session.unref(); - if (disableConcurrentStreams) { - session.destroy(); - } - if (!fulfilled) { - rejectWithDestroy(new Error("Unexpected error: http2 request did not get a response")); - } - }); - writeRequestBodyPromise = writeRequestBody(req, request, requestTimeout); - }); - } - updateHttpClientConfig(key, value) { - this.config = undefined; - this.configProvider = this.configProvider.then((config) => { - return { - ...config, - [key]: value, - }; - }); - } - httpHandlerConfigs() { - return this.config ?? {}; - } - destroySession(session) { - if (!session.destroyed) { - session.destroy(); - } - } -} diff --git a/node_modules/@smithy/node-http-handler/dist-es/readable.mock.js b/node_modules/@smithy/node-http-handler/dist-es/readable.mock.js deleted file mode 100644 index 41fb0b67..00000000 --- a/node_modules/@smithy/node-http-handler/dist-es/readable.mock.js +++ /dev/null @@ -1,19 +0,0 @@ -import { Readable } from "stream"; -export class ReadFromBuffers extends Readable { - constructor(options) { - super(options); - this.numBuffersRead = 0; - this.buffersToRead = options.buffers; - this.errorAfter = typeof options.errorAfter === "number" ? options.errorAfter : -1; - } - _read() { - if (this.errorAfter !== -1 && this.errorAfter === this.numBuffersRead) { - this.emit("error", new Error("Mock Error")); - return; - } - if (this.numBuffersRead >= this.buffersToRead.length) { - return this.push(null); - } - return this.push(this.buffersToRead[this.numBuffersRead++]); - } -} diff --git a/node_modules/@smithy/node-http-handler/dist-es/server.mock.js b/node_modules/@smithy/node-http-handler/dist-es/server.mock.js deleted file mode 100644 index c6ad037c..00000000 --- a/node_modules/@smithy/node-http-handler/dist-es/server.mock.js +++ /dev/null @@ -1,51 +0,0 @@ -import { readFileSync } from "fs"; -import { createServer as createHttpServer } from "http"; -import { createServer as createHttp2Server } from "http2"; -import { createServer as createHttpsServer } from "https"; -import { join } from "path"; -import { Readable } from "stream"; -const fixturesDir = join(__dirname, "..", "fixtures"); -const setResponseHeaders = (response, headers) => { - for (const [key, value] of Object.entries(headers)) { - response.setHeader(key, value); - } -}; -const setResponseBody = (response, body) => { - if (body instanceof Readable) { - body.pipe(response); - } - else { - response.end(body); - } -}; -export const createResponseFunction = (httpResp) => (request, response) => { - response.statusCode = httpResp.statusCode; - setResponseHeaders(response, httpResp.headers); - setResponseBody(response, httpResp.body); -}; -export const createResponseFunctionWithDelay = (httpResp, delay) => (request, response) => { - response.statusCode = httpResp.statusCode; - setResponseHeaders(response, httpResp.headers); - setTimeout(() => setResponseBody(response, httpResp.body), delay); -}; -export const createContinueResponseFunction = (httpResp) => (request, response) => { - response.writeContinue(); - setTimeout(() => { - createResponseFunction(httpResp)(request, response); - }, 100); -}; -export const createMockHttpsServer = () => { - const server = createHttpsServer({ - key: readFileSync(join(fixturesDir, "test-server-key.pem")), - cert: readFileSync(join(fixturesDir, "test-server-cert.pem")), - }); - return server; -}; -export const createMockHttpServer = () => { - const server = createHttpServer(); - return server; -}; -export const createMockHttp2Server = () => { - const server = createHttp2Server(); - return server; -}; diff --git a/node_modules/@smithy/node-http-handler/dist-es/set-connection-timeout.js b/node_modules/@smithy/node-http-handler/dist-es/set-connection-timeout.js deleted file mode 100644 index 7774552c..00000000 --- a/node_modules/@smithy/node-http-handler/dist-es/set-connection-timeout.js +++ /dev/null @@ -1,21 +0,0 @@ -export const setConnectionTimeout = (request, reject, timeoutInMs = 0) => { - if (!timeoutInMs) { - return; - } - const timeoutId = setTimeout(() => { - request.destroy(); - reject(Object.assign(new Error(`Socket timed out without establishing a connection within ${timeoutInMs} ms`), { - name: "TimeoutError", - })); - }, timeoutInMs); - request.on("socket", (socket) => { - if (socket.connecting) { - socket.on("connect", () => { - clearTimeout(timeoutId); - }); - } - else { - clearTimeout(timeoutId); - } - }); -}; diff --git a/node_modules/@smithy/node-http-handler/dist-es/set-socket-keep-alive.js b/node_modules/@smithy/node-http-handler/dist-es/set-socket-keep-alive.js deleted file mode 100644 index fe733918..00000000 --- a/node_modules/@smithy/node-http-handler/dist-es/set-socket-keep-alive.js +++ /dev/null @@ -1,8 +0,0 @@ -export const setSocketKeepAlive = (request, { keepAlive, keepAliveMsecs }) => { - if (keepAlive !== true) { - return; - } - request.on("socket", (socket) => { - socket.setKeepAlive(keepAlive, keepAliveMsecs || 0); - }); -}; diff --git a/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js b/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js deleted file mode 100644 index aa710c31..00000000 --- a/node_modules/@smithy/node-http-handler/dist-es/set-socket-timeout.js +++ /dev/null @@ -1,6 +0,0 @@ -export const setSocketTimeout = (request, reject, timeoutInMs = 0) => { - request.setTimeout(timeoutInMs, () => { - request.destroy(); - reject(Object.assign(new Error(`Connection timed out after ${timeoutInMs} ms`), { name: "TimeoutError" })); - }); -}; diff --git a/node_modules/@smithy/node-http-handler/dist-es/stream-collector/collector.js b/node_modules/@smithy/node-http-handler/dist-es/stream-collector/collector.js deleted file mode 100644 index c3737e9f..00000000 --- a/node_modules/@smithy/node-http-handler/dist-es/stream-collector/collector.js +++ /dev/null @@ -1,11 +0,0 @@ -import { Writable } from "stream"; -export class Collector extends Writable { - constructor() { - super(...arguments); - this.bufferedBytes = []; - } - _write(chunk, encoding, callback) { - this.bufferedBytes.push(chunk); - callback(); - } -} diff --git a/node_modules/@smithy/node-http-handler/dist-es/stream-collector/index.js b/node_modules/@smithy/node-http-handler/dist-es/stream-collector/index.js deleted file mode 100644 index 7e6cd8b6..00000000 --- a/node_modules/@smithy/node-http-handler/dist-es/stream-collector/index.js +++ /dev/null @@ -1,14 +0,0 @@ -import { Collector } from "./collector"; -export const streamCollector = (stream) => new Promise((resolve, reject) => { - const collector = new Collector(); - stream.pipe(collector); - stream.on("error", (err) => { - collector.end(); - reject(err); - }); - collector.on("error", reject); - collector.on("finish", function () { - const bytes = new Uint8Array(Buffer.concat(this.bufferedBytes)); - resolve(bytes); - }); -}); diff --git a/node_modules/@smithy/node-http-handler/dist-es/stream-collector/readable.mock.js b/node_modules/@smithy/node-http-handler/dist-es/stream-collector/readable.mock.js deleted file mode 100644 index 2f653c50..00000000 --- a/node_modules/@smithy/node-http-handler/dist-es/stream-collector/readable.mock.js +++ /dev/null @@ -1,19 +0,0 @@ -import { Readable } from "stream"; -export class ReadFromBuffers extends Readable { - constructor(options) { - super(options); - this.numBuffersRead = 0; - this.buffersToRead = options.buffers; - this.errorAfter = typeof options.errorAfter === "number" ? options.errorAfter : -1; - } - _read(size) { - if (this.errorAfter !== -1 && this.errorAfter === this.numBuffersRead) { - this.emit("error", new Error("Mock Error")); - return; - } - if (this.numBuffersRead >= this.buffersToRead.length) { - return this.push(null); - } - return this.push(this.buffersToRead[this.numBuffersRead++]); - } -} diff --git a/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js b/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js deleted file mode 100644 index 260be34d..00000000 --- a/node_modules/@smithy/node-http-handler/dist-es/write-request-body.js +++ /dev/null @@ -1,40 +0,0 @@ -import { Readable } from "stream"; -const MIN_WAIT_TIME = 1000; -export async function writeRequestBody(httpRequest, request, maxContinueTimeoutMs = MIN_WAIT_TIME) { - const headers = request.headers ?? {}; - const expect = headers["Expect"] || headers["expect"]; - let timeoutId = -1; - let hasError = false; - if (expect === "100-continue") { - await Promise.race([ - new Promise((resolve) => { - timeoutId = Number(setTimeout(resolve, Math.max(MIN_WAIT_TIME, maxContinueTimeoutMs))); - }), - new Promise((resolve) => { - httpRequest.on("continue", () => { - clearTimeout(timeoutId); - resolve(); - }); - httpRequest.on("error", () => { - hasError = true; - clearTimeout(timeoutId); - resolve(); - }); - }), - ]); - } - if (!hasError) { - writeBody(httpRequest, request.body); - } -} -function writeBody(httpRequest, body) { - if (body instanceof Readable) { - body.pipe(httpRequest); - } - else if (body) { - httpRequest.end(Buffer.from(body)); - } - else { - httpRequest.end(); - } -} diff --git a/node_modules/@smithy/node-http-handler/dist-types/constants.d.ts b/node_modules/@smithy/node-http-handler/dist-types/constants.d.ts deleted file mode 100644 index 35404617..00000000 --- a/node_modules/@smithy/node-http-handler/dist-types/constants.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -/** - * Node.js system error codes that indicate timeout. - * @deprecated use NODEJS_TIMEOUT_ERROR_CODES from @smithy/service-error-classification/constants - */ -export declare const NODEJS_TIMEOUT_ERROR_CODES: string[]; diff --git a/node_modules/@smithy/node-http-handler/dist-types/get-transformed-headers.d.ts b/node_modules/@smithy/node-http-handler/dist-types/get-transformed-headers.d.ts deleted file mode 100644 index bb7cd4e8..00000000 --- a/node_modules/@smithy/node-http-handler/dist-types/get-transformed-headers.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { HeaderBag } from "@smithy/types"; -import { IncomingHttpHeaders } from "http2"; -declare const getTransformedHeaders: (headers: IncomingHttpHeaders) => HeaderBag; -export { getTransformedHeaders }; diff --git a/node_modules/@smithy/node-http-handler/dist-types/index.d.ts b/node_modules/@smithy/node-http-handler/dist-types/index.d.ts deleted file mode 100644 index 09c0b9a5..00000000 --- a/node_modules/@smithy/node-http-handler/dist-types/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * from "./node-http-handler"; -export * from "./node-http2-handler"; -export * from "./stream-collector"; diff --git a/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts b/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts deleted file mode 100644 index 2d1d579c..00000000 --- a/node_modules/@smithy/node-http-handler/dist-types/node-http-handler.d.ts +++ /dev/null @@ -1,48 +0,0 @@ -/// -/// -import { HttpHandler, HttpRequest, HttpResponse } from "@smithy/protocol-http"; -import { HttpHandlerOptions, Provider } from "@smithy/types"; -import { Agent as hAgent } from "http"; -import { Agent as hsAgent } from "https"; -/** - * Represents the http options that can be passed to a node http client. - */ -export interface NodeHttpHandlerOptions { - /** - * The maximum time in milliseconds that the connection phase of a request - * may take before the connection attempt is abandoned. - * - * Defaults to 0, which disables the timeout. - */ - connectionTimeout?: number; - /** - * The number of milliseconds a request can take before automatically being terminated. - * Defaults to 0, which disables the timeout. - */ - requestTimeout?: number; - /** - * @deprecated Use {@link requestTimeout} - * - * The maximum time in milliseconds that a socket may remain idle before it - * is closed. - */ - socketTimeout?: number; - httpAgent?: hAgent; - httpsAgent?: hsAgent; -} -export declare const DEFAULT_REQUEST_TIMEOUT = 0; -export declare class NodeHttpHandler implements HttpHandler { - private config?; - private configProvider; - readonly metadata: { - handlerProtocol: string; - }; - constructor(options?: NodeHttpHandlerOptions | Provider); - private resolveDefaultConfig; - destroy(): void; - handle(request: HttpRequest, { abortSignal }?: HttpHandlerOptions): Promise<{ - response: HttpResponse; - }>; - updateHttpClientConfig(key: keyof NodeHttpHandlerOptions, value: NodeHttpHandlerOptions[typeof key]): void; - httpHandlerConfigs(): NodeHttpHandlerOptions; -} diff --git a/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-manager.d.ts b/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-manager.d.ts deleted file mode 100644 index 51f2a4e8..00000000 --- a/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-manager.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -/// -import { RequestContext } from "@smithy/types"; -import { ConnectConfiguration } from "@smithy/types"; -import { ConnectionManager, ConnectionManagerConfiguration } from "@smithy/types"; -import { ClientHttp2Session } from "http2"; -export declare class NodeHttp2ConnectionManager implements ConnectionManager { - constructor(config: ConnectionManagerConfiguration); - private config; - private readonly sessionCache; - lease(requestContext: RequestContext, connectionConfiguration: ConnectConfiguration): ClientHttp2Session; - /** - * Delete a session from the connection pool. - * @param authority The authority of the session to delete. - * @param session The session to delete. - */ - deleteSession(authority: string, session: ClientHttp2Session): void; - release(requestContext: RequestContext, session: ClientHttp2Session): void; - destroy(): void; - setMaxConcurrentStreams(maxConcurrentStreams: number): void; - setDisableConcurrentStreams(disableConcurrentStreams: boolean): void; - private getUrlString; -} diff --git a/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-pool.d.ts b/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-pool.d.ts deleted file mode 100644 index 6695893a..00000000 --- a/node_modules/@smithy/node-http-handler/dist-types/node-http2-connection-pool.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -/// -import { ConnectionPool } from "@smithy/types"; -import { ClientHttp2Session } from "http2"; -export declare class NodeHttp2ConnectionPool implements ConnectionPool { - private sessions; - constructor(sessions?: ClientHttp2Session[]); - poll(): ClientHttp2Session | void; - offerLast(session: ClientHttp2Session): void; - contains(session: ClientHttp2Session): boolean; - remove(session: ClientHttp2Session): void; - [Symbol.iterator](): IterableIterator; - destroy(connection: ClientHttp2Session): void; -} diff --git a/node_modules/@smithy/node-http-handler/dist-types/node-http2-handler.d.ts b/node_modules/@smithy/node-http-handler/dist-types/node-http2-handler.d.ts deleted file mode 100644 index 9eb9d757..00000000 --- a/node_modules/@smithy/node-http-handler/dist-types/node-http2-handler.d.ts +++ /dev/null @@ -1,52 +0,0 @@ -import { HttpHandler, HttpRequest, HttpResponse } from "@smithy/protocol-http"; -import { HttpHandlerOptions, Provider } from "@smithy/types"; -/** - * Represents the http2 options that can be passed to a node http2 client. - */ -export interface NodeHttp2HandlerOptions { - /** - * The maximum time in milliseconds that a stream may remain idle before it - * is closed. - */ - requestTimeout?: number; - /** - * The maximum time in milliseconds that a session or socket may remain idle - * before it is closed. - * https://nodejs.org/docs/latest-v12.x/api/http2.html#http2_http2session_and_sockets - */ - sessionTimeout?: number; - /** - * Disables processing concurrent streams on a ClientHttp2Session instance. When set - * to true, a new session instance is created for each request to a URL. - * **Default:** false. - * https://nodejs.org/api/http2.html#http2_class_clienthttp2session - */ - disableConcurrentStreams?: boolean; - /** - * Maximum number of concurrent Http2Stream instances per ClientHttp2Session. Each session - * may have up to 2^31-1 Http2Stream instances over its lifetime. - * This value must be greater than or equal to 0. - * https://nodejs.org/api/http2.html#class-http2stream - */ - maxConcurrentStreams?: number; -} -export declare class NodeHttp2Handler implements HttpHandler { - private config?; - private configProvider; - readonly metadata: { - handlerProtocol: string; - }; - private readonly connectionManager; - constructor(options?: NodeHttp2HandlerOptions | Provider); - destroy(): void; - handle(request: HttpRequest, { abortSignal }?: HttpHandlerOptions): Promise<{ - response: HttpResponse; - }>; - updateHttpClientConfig(key: keyof NodeHttp2HandlerOptions, value: NodeHttp2HandlerOptions[typeof key]): void; - httpHandlerConfigs(): NodeHttp2HandlerOptions; - /** - * Destroys a session. - * @param session The session to destroy. - */ - private destroySession; -} diff --git a/node_modules/@smithy/node-http-handler/dist-types/readable.mock.d.ts b/node_modules/@smithy/node-http-handler/dist-types/readable.mock.d.ts deleted file mode 100644 index 231c6094..00000000 --- a/node_modules/@smithy/node-http-handler/dist-types/readable.mock.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -/// -/// -import { Readable, ReadableOptions } from "stream"; -export interface ReadFromBuffersOptions extends ReadableOptions { - buffers: Buffer[]; - errorAfter?: number; -} -export declare class ReadFromBuffers extends Readable { - private buffersToRead; - private numBuffersRead; - private errorAfter; - constructor(options: ReadFromBuffersOptions); - _read(): boolean | undefined; -} diff --git a/node_modules/@smithy/node-http-handler/dist-types/server.mock.d.ts b/node_modules/@smithy/node-http-handler/dist-types/server.mock.d.ts deleted file mode 100644 index 55b6caea..00000000 --- a/node_modules/@smithy/node-http-handler/dist-types/server.mock.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { HttpResponse } from "@smithy/types"; -import { IncomingMessage, Server as HttpServer, ServerResponse } from "http"; -import { Http2Server } from "http2"; -import { Server as HttpsServer } from "https"; -export declare const createResponseFunction: (httpResp: HttpResponse) => (request: IncomingMessage, response: ServerResponse) => void; -export declare const createResponseFunctionWithDelay: (httpResp: HttpResponse, delay: number) => (request: IncomingMessage, response: ServerResponse) => void; -export declare const createContinueResponseFunction: (httpResp: HttpResponse) => (request: IncomingMessage, response: ServerResponse) => void; -export declare const createMockHttpsServer: () => HttpsServer; -export declare const createMockHttpServer: () => HttpServer; -export declare const createMockHttp2Server: () => Http2Server; diff --git a/node_modules/@smithy/node-http-handler/dist-types/set-connection-timeout.d.ts b/node_modules/@smithy/node-http-handler/dist-types/set-connection-timeout.d.ts deleted file mode 100644 index d18bb484..00000000 --- a/node_modules/@smithy/node-http-handler/dist-types/set-connection-timeout.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ClientRequest } from "http"; -export declare const setConnectionTimeout: (request: ClientRequest, reject: (err: Error) => void, timeoutInMs?: number) => void; diff --git a/node_modules/@smithy/node-http-handler/dist-types/set-socket-keep-alive.d.ts b/node_modules/@smithy/node-http-handler/dist-types/set-socket-keep-alive.d.ts deleted file mode 100644 index 9449b081..00000000 --- a/node_modules/@smithy/node-http-handler/dist-types/set-socket-keep-alive.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { ClientRequest } from "http"; -export interface SocketKeepAliveOptions { - keepAlive: boolean; - keepAliveMsecs?: number; -} -export declare const setSocketKeepAlive: (request: ClientRequest, { keepAlive, keepAliveMsecs }: SocketKeepAliveOptions) => void; diff --git a/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts b/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts deleted file mode 100644 index f056b734..00000000 --- a/node_modules/@smithy/node-http-handler/dist-types/set-socket-timeout.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ClientRequest } from "http"; -export declare const setSocketTimeout: (request: ClientRequest, reject: (err: Error) => void, timeoutInMs?: number) => void; diff --git a/node_modules/@smithy/node-http-handler/dist-types/stream-collector/collector.d.ts b/node_modules/@smithy/node-http-handler/dist-types/stream-collector/collector.d.ts deleted file mode 100644 index 1e7ae26b..00000000 --- a/node_modules/@smithy/node-http-handler/dist-types/stream-collector/collector.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -/// -/// -import { Writable } from "stream"; -export declare class Collector extends Writable { - readonly bufferedBytes: Buffer[]; - _write(chunk: Buffer, encoding: string, callback: (err?: Error) => void): void; -} diff --git a/node_modules/@smithy/node-http-handler/dist-types/stream-collector/index.d.ts b/node_modules/@smithy/node-http-handler/dist-types/stream-collector/index.d.ts deleted file mode 100644 index b2ca8122..00000000 --- a/node_modules/@smithy/node-http-handler/dist-types/stream-collector/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { StreamCollector } from "@smithy/types"; -export declare const streamCollector: StreamCollector; diff --git a/node_modules/@smithy/node-http-handler/dist-types/stream-collector/readable.mock.d.ts b/node_modules/@smithy/node-http-handler/dist-types/stream-collector/readable.mock.d.ts deleted file mode 100644 index 7210c92b..00000000 --- a/node_modules/@smithy/node-http-handler/dist-types/stream-collector/readable.mock.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -/// -/// -import { Readable, ReadableOptions } from "stream"; -export interface ReadFromBuffersOptions extends ReadableOptions { - buffers: Buffer[]; - errorAfter?: number; -} -export declare class ReadFromBuffers extends Readable { - private buffersToRead; - private numBuffersRead; - private errorAfter; - constructor(options: ReadFromBuffersOptions); - _read(size: number): boolean | undefined; -} diff --git a/node_modules/@smithy/node-http-handler/dist-types/ts3.4/constants.d.ts b/node_modules/@smithy/node-http-handler/dist-types/ts3.4/constants.d.ts deleted file mode 100644 index b02b0b6c..00000000 --- a/node_modules/@smithy/node-http-handler/dist-types/ts3.4/constants.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -/** - * Node.js system error codes that indicate timeout. - * @deprecated use NODEJS_TIMEOUT_ERROR_CODES from @smithy/service-error-classification/constants - */ -export declare const NODEJS_TIMEOUT_ERROR_CODES: string[]; diff --git a/node_modules/@smithy/node-http-handler/dist-types/ts3.4/get-transformed-headers.d.ts b/node_modules/@smithy/node-http-handler/dist-types/ts3.4/get-transformed-headers.d.ts deleted file mode 100644 index c6f5a8b5..00000000 --- a/node_modules/@smithy/node-http-handler/dist-types/ts3.4/get-transformed-headers.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { HeaderBag } from "@smithy/types"; -import { IncomingHttpHeaders } from "http2"; -declare const getTransformedHeaders: (headers: IncomingHttpHeaders) => HeaderBag; -export { getTransformedHeaders }; diff --git a/node_modules/@smithy/node-http-handler/dist-types/ts3.4/index.d.ts b/node_modules/@smithy/node-http-handler/dist-types/ts3.4/index.d.ts deleted file mode 100644 index 055c48c2..00000000 --- a/node_modules/@smithy/node-http-handler/dist-types/ts3.4/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * from "./node-http-handler"; -export * from "./node-http2-handler"; -export * from "./stream-collector"; diff --git a/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http-handler.d.ts b/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http-handler.d.ts deleted file mode 100644 index 41799025..00000000 --- a/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http-handler.d.ts +++ /dev/null @@ -1,47 +0,0 @@ -/// -import { HttpHandler, HttpRequest, HttpResponse } from "@smithy/protocol-http"; -import { HttpHandlerOptions, Provider } from "@smithy/types"; -import { Agent as hAgent } from "http"; -import { Agent as hsAgent } from "https"; -/** - * Represents the http options that can be passed to a node http client. - */ -export interface NodeHttpHandlerOptions { - /** - * The maximum time in milliseconds that the connection phase of a request - * may take before the connection attempt is abandoned. - * - * Defaults to 0, which disables the timeout. - */ - connectionTimeout?: number; - /** - * The number of milliseconds a request can take before automatically being terminated. - * Defaults to 0, which disables the timeout. - */ - requestTimeout?: number; - /** - * @deprecated Use {@link requestTimeout} - * - * The maximum time in milliseconds that a socket may remain idle before it - * is closed. - */ - socketTimeout?: number; - httpAgent?: hAgent; - httpsAgent?: hsAgent; -} -export declare const DEFAULT_REQUEST_TIMEOUT = 0; -export declare class NodeHttpHandler implements HttpHandler { - private config?; - private configProvider; - readonly metadata: { - handlerProtocol: string; - }; - constructor(options?: NodeHttpHandlerOptions | Provider); - private resolveDefaultConfig; - destroy(): void; - handle(request: HttpRequest, { abortSignal }?: HttpHandlerOptions): Promise<{ - response: HttpResponse; - }>; - updateHttpClientConfig(key: keyof NodeHttpHandlerOptions, value: NodeHttpHandlerOptions[typeof key]): void; - httpHandlerConfigs(): NodeHttpHandlerOptions; -} diff --git a/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-manager.d.ts b/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-manager.d.ts deleted file mode 100644 index 03327b6a..00000000 --- a/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-manager.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -/// -import { RequestContext } from "@smithy/types"; -import { ConnectConfiguration } from "@smithy/types"; -import { ConnectionManager, ConnectionManagerConfiguration } from "@smithy/types"; -import { ClientHttp2Session } from "http2"; -export declare class NodeHttp2ConnectionManager implements ConnectionManager { - constructor(config: ConnectionManagerConfiguration); - private config; - private readonly sessionCache; - lease(requestContext: RequestContext, connectionConfiguration: ConnectConfiguration): ClientHttp2Session; - /** - * Delete a session from the connection pool. - * @param authority The authority of the session to delete. - * @param session The session to delete. - */ - deleteSession(authority: string, session: ClientHttp2Session): void; - release(requestContext: RequestContext, session: ClientHttp2Session): void; - destroy(): void; - setMaxConcurrentStreams(maxConcurrentStreams: number): void; - setDisableConcurrentStreams(disableConcurrentStreams: boolean): void; - private getUrlString; -} diff --git a/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-pool.d.ts b/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-pool.d.ts deleted file mode 100644 index e9116cb3..00000000 --- a/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-connection-pool.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -/// -import { ConnectionPool } from "@smithy/types"; -import { ClientHttp2Session } from "http2"; -export declare class NodeHttp2ConnectionPool implements ConnectionPool { - private sessions; - constructor(sessions?: ClientHttp2Session[]); - poll(): ClientHttp2Session | void; - offerLast(session: ClientHttp2Session): void; - contains(session: ClientHttp2Session): boolean; - remove(session: ClientHttp2Session): void; - [Symbol.iterator](): IterableIterator; - destroy(connection: ClientHttp2Session): void; -} diff --git a/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-handler.d.ts b/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-handler.d.ts deleted file mode 100644 index da9f64ce..00000000 --- a/node_modules/@smithy/node-http-handler/dist-types/ts3.4/node-http2-handler.d.ts +++ /dev/null @@ -1,52 +0,0 @@ -import { HttpHandler, HttpRequest, HttpResponse } from "@smithy/protocol-http"; -import { HttpHandlerOptions, Provider } from "@smithy/types"; -/** - * Represents the http2 options that can be passed to a node http2 client. - */ -export interface NodeHttp2HandlerOptions { - /** - * The maximum time in milliseconds that a stream may remain idle before it - * is closed. - */ - requestTimeout?: number; - /** - * The maximum time in milliseconds that a session or socket may remain idle - * before it is closed. - * https://nodejs.org/docs/latest-v12.x/api/http2.html#http2_http2session_and_sockets - */ - sessionTimeout?: number; - /** - * Disables processing concurrent streams on a ClientHttp2Session instance. When set - * to true, a new session instance is created for each request to a URL. - * **Default:** false. - * https://nodejs.org/api/http2.html#http2_class_clienthttp2session - */ - disableConcurrentStreams?: boolean; - /** - * Maximum number of concurrent Http2Stream instances per ClientHttp2Session. Each session - * may have up to 2^31-1 Http2Stream instances over its lifetime. - * This value must be greater than or equal to 0. - * https://nodejs.org/api/http2.html#class-http2stream - */ - maxConcurrentStreams?: number; -} -export declare class NodeHttp2Handler implements HttpHandler { - private config?; - private configProvider; - readonly metadata: { - handlerProtocol: string; - }; - private readonly connectionManager; - constructor(options?: NodeHttp2HandlerOptions | Provider); - destroy(): void; - handle(request: HttpRequest, { abortSignal }?: HttpHandlerOptions): Promise<{ - response: HttpResponse; - }>; - updateHttpClientConfig(key: keyof NodeHttp2HandlerOptions, value: NodeHttp2HandlerOptions[typeof key]): void; - httpHandlerConfigs(): NodeHttp2HandlerOptions; - /** - * Destroys a session. - * @param session The session to destroy. - */ - private destroySession; -} diff --git a/node_modules/@smithy/node-http-handler/dist-types/ts3.4/readable.mock.d.ts b/node_modules/@smithy/node-http-handler/dist-types/ts3.4/readable.mock.d.ts deleted file mode 100644 index f0492d42..00000000 --- a/node_modules/@smithy/node-http-handler/dist-types/ts3.4/readable.mock.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -/// -import { Readable, ReadableOptions } from "stream"; -export interface ReadFromBuffersOptions extends ReadableOptions { - buffers: Buffer[]; - errorAfter?: number; -} -export declare class ReadFromBuffers extends Readable { - private buffersToRead; - private numBuffersRead; - private errorAfter; - constructor(options: ReadFromBuffersOptions); - _read(): boolean | undefined; -} diff --git a/node_modules/@smithy/node-http-handler/dist-types/ts3.4/server.mock.d.ts b/node_modules/@smithy/node-http-handler/dist-types/ts3.4/server.mock.d.ts deleted file mode 100644 index ba49b9f1..00000000 --- a/node_modules/@smithy/node-http-handler/dist-types/ts3.4/server.mock.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { HttpResponse } from "@smithy/types"; -import { IncomingMessage, Server as HttpServer, ServerResponse } from "http"; -import { Http2Server } from "http2"; -import { Server as HttpsServer } from "https"; -export declare const createResponseFunction: (httpResp: HttpResponse) => (request: IncomingMessage, response: ServerResponse) => void; -export declare const createResponseFunctionWithDelay: (httpResp: HttpResponse, delay: number) => (request: IncomingMessage, response: ServerResponse) => void; -export declare const createContinueResponseFunction: (httpResp: HttpResponse) => (request: IncomingMessage, response: ServerResponse) => void; -export declare const createMockHttpsServer: () => HttpsServer; -export declare const createMockHttpServer: () => HttpServer; -export declare const createMockHttp2Server: () => Http2Server; diff --git a/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-connection-timeout.d.ts b/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-connection-timeout.d.ts deleted file mode 100644 index 6515fc2a..00000000 --- a/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-connection-timeout.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ClientRequest } from "http"; -export declare const setConnectionTimeout: (request: ClientRequest, reject: (err: Error) => void, timeoutInMs?: number) => void; diff --git a/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-keep-alive.d.ts b/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-keep-alive.d.ts deleted file mode 100644 index 15d94e05..00000000 --- a/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-keep-alive.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { ClientRequest } from "http"; -export interface SocketKeepAliveOptions { - keepAlive: boolean; - keepAliveMsecs?: number; -} -export declare const setSocketKeepAlive: (request: ClientRequest, { keepAlive, keepAliveMsecs }: SocketKeepAliveOptions) => void; diff --git a/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-timeout.d.ts b/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-timeout.d.ts deleted file mode 100644 index 26f3477d..00000000 --- a/node_modules/@smithy/node-http-handler/dist-types/ts3.4/set-socket-timeout.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ClientRequest } from "http"; -export declare const setSocketTimeout: (request: ClientRequest, reject: (err: Error) => void, timeoutInMs?: number) => void; diff --git a/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/collector.d.ts b/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/collector.d.ts deleted file mode 100644 index c329bd4a..00000000 --- a/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/collector.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -/// -import { Writable } from "stream"; -export declare class Collector extends Writable { - readonly bufferedBytes: Buffer[]; - _write(chunk: Buffer, encoding: string, callback: (err?: Error) => void): void; -} diff --git a/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/index.d.ts b/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/index.d.ts deleted file mode 100644 index 82590970..00000000 --- a/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { StreamCollector } from "@smithy/types"; -export declare const streamCollector: StreamCollector; diff --git a/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/readable.mock.d.ts b/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/readable.mock.d.ts deleted file mode 100644 index e2c0a4c8..00000000 --- a/node_modules/@smithy/node-http-handler/dist-types/ts3.4/stream-collector/readable.mock.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -/// -import { Readable, ReadableOptions } from "stream"; -export interface ReadFromBuffersOptions extends ReadableOptions { - buffers: Buffer[]; - errorAfter?: number; -} -export declare class ReadFromBuffers extends Readable { - private buffersToRead; - private numBuffersRead; - private errorAfter; - constructor(options: ReadFromBuffersOptions); - _read(size: number): boolean | undefined; -} diff --git a/node_modules/@smithy/node-http-handler/dist-types/ts3.4/write-request-body.d.ts b/node_modules/@smithy/node-http-handler/dist-types/ts3.4/write-request-body.d.ts deleted file mode 100644 index b083db32..00000000 --- a/node_modules/@smithy/node-http-handler/dist-types/ts3.4/write-request-body.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -/// -import { HttpRequest } from "@smithy/types"; -import { ClientRequest } from "http"; -import { ClientHttp2Stream } from "http2"; -/** - * This resolves when writeBody has been called. - * - * @param httpRequest - opened Node.js request. - * @param request - container with the request body. - * @param maxContinueTimeoutMs - maximum time to wait for the continue event. Minimum of 1000ms. - */ -export declare function writeRequestBody(httpRequest: ClientRequest | ClientHttp2Stream, request: HttpRequest, maxContinueTimeoutMs?: number): Promise; diff --git a/node_modules/@smithy/node-http-handler/dist-types/write-request-body.d.ts b/node_modules/@smithy/node-http-handler/dist-types/write-request-body.d.ts deleted file mode 100644 index ca90a1a0..00000000 --- a/node_modules/@smithy/node-http-handler/dist-types/write-request-body.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -/// -/// -import { HttpRequest } from "@smithy/types"; -import { ClientRequest } from "http"; -import { ClientHttp2Stream } from "http2"; -/** - * This resolves when writeBody has been called. - * - * @param httpRequest - opened Node.js request. - * @param request - container with the request body. - * @param maxContinueTimeoutMs - maximum time to wait for the continue event. Minimum of 1000ms. - */ -export declare function writeRequestBody(httpRequest: ClientRequest | ClientHttp2Stream, request: HttpRequest, maxContinueTimeoutMs?: number): Promise; diff --git a/node_modules/@smithy/node-http-handler/package.json b/node_modules/@smithy/node-http-handler/package.json deleted file mode 100644 index f11ca33e..00000000 --- a/node_modules/@smithy/node-http-handler/package.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "name": "@smithy/node-http-handler", - "version": "2.1.10", - "description": "Provides a way to make requests", - "scripts": { - "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", - "build:cjs": "yarn g:tsc -p tsconfig.cjs.json", - "build:es": "yarn g:tsc -p tsconfig.es.json", - "build:types": "yarn g:tsc -p tsconfig.types.json", - "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", - "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz", - "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"", - "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"", - "extract:docs": "api-extractor run --local", - "test": "yarn g:jest --coverage --forceExit" - }, - "author": { - "name": "AWS SDK for JavaScript Team", - "email": "", - "url": "https://aws.amazon.com/javascript/" - }, - "license": "Apache-2.0", - "main": "./dist-cjs/index.js", - "module": "./dist-es/index.js", - "types": "./dist-types/index.d.ts", - "dependencies": { - "@smithy/abort-controller": "^2.0.14", - "@smithy/protocol-http": "^3.0.10", - "@smithy/querystring-builder": "^2.0.14", - "@smithy/types": "^2.6.0", - "tslib": "^2.5.0" - }, - "devDependencies": { - "@tsconfig/recommended": "1.0.1", - "@types/node": "^14.14.31", - "concurrently": "7.0.0", - "downlevel-dts": "0.10.1", - "rimraf": "3.0.2", - "typedoc": "0.23.23" - }, - "engines": { - "node": ">=14.0.0" - }, - "typesVersions": { - "<4.0": { - "dist-types/*": [ - "dist-types/ts3.4/*" - ] - } - }, - "files": [ - "dist-*/**" - ], - "homepage": "https://github.com/awslabs/smithy-typescript/tree/main/packages/node-http-handler", - "repository": { - "type": "git", - "url": "https://github.com/awslabs/smithy-typescript.git", - "directory": "packages/node-http-handler" - }, - "typedoc": { - "entryPoint": "src/index.ts" - }, - "publishConfig": { - "directory": ".release/package" - } -} \ No newline at end of file diff --git a/node_modules/@smithy/property-provider/LICENSE b/node_modules/@smithy/property-provider/LICENSE deleted file mode 100644 index 7b6491ba..00000000 --- a/node_modules/@smithy/property-provider/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. \ No newline at end of file diff --git a/node_modules/@smithy/property-provider/README.md b/node_modules/@smithy/property-provider/README.md deleted file mode 100644 index b35fafb7..00000000 --- a/node_modules/@smithy/property-provider/README.md +++ /dev/null @@ -1,10 +0,0 @@ -# @smithy/property-provider - -[![NPM version](https://img.shields.io/npm/v/@smithy/property-provider/latest.svg)](https://www.npmjs.com/package/@smithy/property-provider) -[![NPM downloads](https://img.shields.io/npm/dm/@smithy/property-provider.svg)](https://www.npmjs.com/package/@smithy/property-provider) - -> An internal package - -## Usage - -You probably shouldn't, at least directly. diff --git a/node_modules/@smithy/property-provider/dist-cjs/CredentialsProviderError.js b/node_modules/@smithy/property-provider/dist-cjs/CredentialsProviderError.js deleted file mode 100644 index ccde548c..00000000 --- a/node_modules/@smithy/property-provider/dist-cjs/CredentialsProviderError.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.CredentialsProviderError = void 0; -const ProviderError_1 = require("./ProviderError"); -class CredentialsProviderError extends ProviderError_1.ProviderError { - constructor(message, tryNextLink = true) { - super(message, tryNextLink); - this.tryNextLink = tryNextLink; - this.name = "CredentialsProviderError"; - Object.setPrototypeOf(this, CredentialsProviderError.prototype); - } -} -exports.CredentialsProviderError = CredentialsProviderError; diff --git a/node_modules/@smithy/property-provider/dist-cjs/ProviderError.js b/node_modules/@smithy/property-provider/dist-cjs/ProviderError.js deleted file mode 100644 index 4caa8843..00000000 --- a/node_modules/@smithy/property-provider/dist-cjs/ProviderError.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ProviderError = void 0; -class ProviderError extends Error { - constructor(message, tryNextLink = true) { - super(message); - this.tryNextLink = tryNextLink; - this.name = "ProviderError"; - Object.setPrototypeOf(this, ProviderError.prototype); - } - static from(error, tryNextLink = true) { - return Object.assign(new this(error.message, tryNextLink), error); - } -} -exports.ProviderError = ProviderError; diff --git a/node_modules/@smithy/property-provider/dist-cjs/TokenProviderError.js b/node_modules/@smithy/property-provider/dist-cjs/TokenProviderError.js deleted file mode 100644 index e7f69e1b..00000000 --- a/node_modules/@smithy/property-provider/dist-cjs/TokenProviderError.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.TokenProviderError = void 0; -const ProviderError_1 = require("./ProviderError"); -class TokenProviderError extends ProviderError_1.ProviderError { - constructor(message, tryNextLink = true) { - super(message, tryNextLink); - this.tryNextLink = tryNextLink; - this.name = "TokenProviderError"; - Object.setPrototypeOf(this, TokenProviderError.prototype); - } -} -exports.TokenProviderError = TokenProviderError; diff --git a/node_modules/@smithy/property-provider/dist-cjs/chain.js b/node_modules/@smithy/property-provider/dist-cjs/chain.js deleted file mode 100644 index bc61aee6..00000000 --- a/node_modules/@smithy/property-provider/dist-cjs/chain.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.chain = void 0; -const ProviderError_1 = require("./ProviderError"); -const chain = (...providers) => async () => { - if (providers.length === 0) { - throw new ProviderError_1.ProviderError("No providers in chain"); - } - let lastProviderError; - for (const provider of providers) { - try { - const credentials = await provider(); - return credentials; - } - catch (err) { - lastProviderError = err; - if (err === null || err === void 0 ? void 0 : err.tryNextLink) { - continue; - } - throw err; - } - } - throw lastProviderError; -}; -exports.chain = chain; diff --git a/node_modules/@smithy/property-provider/dist-cjs/fromStatic.js b/node_modules/@smithy/property-provider/dist-cjs/fromStatic.js deleted file mode 100644 index e7b9e8e8..00000000 --- a/node_modules/@smithy/property-provider/dist-cjs/fromStatic.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.fromStatic = void 0; -const fromStatic = (staticValue) => () => Promise.resolve(staticValue); -exports.fromStatic = fromStatic; diff --git a/node_modules/@smithy/property-provider/dist-cjs/index.js b/node_modules/@smithy/property-provider/dist-cjs/index.js deleted file mode 100644 index f5628a3e..00000000 --- a/node_modules/@smithy/property-provider/dist-cjs/index.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./CredentialsProviderError"), exports); -tslib_1.__exportStar(require("./ProviderError"), exports); -tslib_1.__exportStar(require("./TokenProviderError"), exports); -tslib_1.__exportStar(require("./chain"), exports); -tslib_1.__exportStar(require("./fromStatic"), exports); -tslib_1.__exportStar(require("./memoize"), exports); diff --git a/node_modules/@smithy/property-provider/dist-cjs/memoize.js b/node_modules/@smithy/property-provider/dist-cjs/memoize.js deleted file mode 100644 index 17c15a0b..00000000 --- a/node_modules/@smithy/property-provider/dist-cjs/memoize.js +++ /dev/null @@ -1,49 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.memoize = void 0; -const memoize = (provider, isExpired, requiresRefresh) => { - let resolved; - let pending; - let hasResult; - let isConstant = false; - const coalesceProvider = async () => { - if (!pending) { - pending = provider(); - } - try { - resolved = await pending; - hasResult = true; - isConstant = false; - } - finally { - pending = undefined; - } - return resolved; - }; - if (isExpired === undefined) { - return async (options) => { - if (!hasResult || (options === null || options === void 0 ? void 0 : options.forceRefresh)) { - resolved = await coalesceProvider(); - } - return resolved; - }; - } - return async (options) => { - if (!hasResult || (options === null || options === void 0 ? void 0 : options.forceRefresh)) { - resolved = await coalesceProvider(); - } - if (isConstant) { - return resolved; - } - if (requiresRefresh && !requiresRefresh(resolved)) { - isConstant = true; - return resolved; - } - if (isExpired(resolved)) { - await coalesceProvider(); - return resolved; - } - return resolved; - }; -}; -exports.memoize = memoize; diff --git a/node_modules/@smithy/property-provider/dist-es/CredentialsProviderError.js b/node_modules/@smithy/property-provider/dist-es/CredentialsProviderError.js deleted file mode 100644 index 959f4d43..00000000 --- a/node_modules/@smithy/property-provider/dist-es/CredentialsProviderError.js +++ /dev/null @@ -1,9 +0,0 @@ -import { ProviderError } from "./ProviderError"; -export class CredentialsProviderError extends ProviderError { - constructor(message, tryNextLink = true) { - super(message, tryNextLink); - this.tryNextLink = tryNextLink; - this.name = "CredentialsProviderError"; - Object.setPrototypeOf(this, CredentialsProviderError.prototype); - } -} diff --git a/node_modules/@smithy/property-provider/dist-es/ProviderError.js b/node_modules/@smithy/property-provider/dist-es/ProviderError.js deleted file mode 100644 index cedfe3e4..00000000 --- a/node_modules/@smithy/property-provider/dist-es/ProviderError.js +++ /dev/null @@ -1,11 +0,0 @@ -export class ProviderError extends Error { - constructor(message, tryNextLink = true) { - super(message); - this.tryNextLink = tryNextLink; - this.name = "ProviderError"; - Object.setPrototypeOf(this, ProviderError.prototype); - } - static from(error, tryNextLink = true) { - return Object.assign(new this(error.message, tryNextLink), error); - } -} diff --git a/node_modules/@smithy/property-provider/dist-es/TokenProviderError.js b/node_modules/@smithy/property-provider/dist-es/TokenProviderError.js deleted file mode 100644 index 1f6c9749..00000000 --- a/node_modules/@smithy/property-provider/dist-es/TokenProviderError.js +++ /dev/null @@ -1,9 +0,0 @@ -import { ProviderError } from "./ProviderError"; -export class TokenProviderError extends ProviderError { - constructor(message, tryNextLink = true) { - super(message, tryNextLink); - this.tryNextLink = tryNextLink; - this.name = "TokenProviderError"; - Object.setPrototypeOf(this, TokenProviderError.prototype); - } -} diff --git a/node_modules/@smithy/property-provider/dist-es/chain.js b/node_modules/@smithy/property-provider/dist-es/chain.js deleted file mode 100644 index c389f7fe..00000000 --- a/node_modules/@smithy/property-provider/dist-es/chain.js +++ /dev/null @@ -1,21 +0,0 @@ -import { ProviderError } from "./ProviderError"; -export const chain = (...providers) => async () => { - if (providers.length === 0) { - throw new ProviderError("No providers in chain"); - } - let lastProviderError; - for (const provider of providers) { - try { - const credentials = await provider(); - return credentials; - } - catch (err) { - lastProviderError = err; - if (err?.tryNextLink) { - continue; - } - throw err; - } - } - throw lastProviderError; -}; diff --git a/node_modules/@smithy/property-provider/dist-es/fromStatic.js b/node_modules/@smithy/property-provider/dist-es/fromStatic.js deleted file mode 100644 index 67da7a75..00000000 --- a/node_modules/@smithy/property-provider/dist-es/fromStatic.js +++ /dev/null @@ -1 +0,0 @@ -export const fromStatic = (staticValue) => () => Promise.resolve(staticValue); diff --git a/node_modules/@smithy/property-provider/dist-es/index.js b/node_modules/@smithy/property-provider/dist-es/index.js deleted file mode 100644 index 15d14e5b..00000000 --- a/node_modules/@smithy/property-provider/dist-es/index.js +++ /dev/null @@ -1,6 +0,0 @@ -export * from "./CredentialsProviderError"; -export * from "./ProviderError"; -export * from "./TokenProviderError"; -export * from "./chain"; -export * from "./fromStatic"; -export * from "./memoize"; diff --git a/node_modules/@smithy/property-provider/dist-es/memoize.js b/node_modules/@smithy/property-provider/dist-es/memoize.js deleted file mode 100644 index e04839ab..00000000 --- a/node_modules/@smithy/property-provider/dist-es/memoize.js +++ /dev/null @@ -1,45 +0,0 @@ -export const memoize = (provider, isExpired, requiresRefresh) => { - let resolved; - let pending; - let hasResult; - let isConstant = false; - const coalesceProvider = async () => { - if (!pending) { - pending = provider(); - } - try { - resolved = await pending; - hasResult = true; - isConstant = false; - } - finally { - pending = undefined; - } - return resolved; - }; - if (isExpired === undefined) { - return async (options) => { - if (!hasResult || options?.forceRefresh) { - resolved = await coalesceProvider(); - } - return resolved; - }; - } - return async (options) => { - if (!hasResult || options?.forceRefresh) { - resolved = await coalesceProvider(); - } - if (isConstant) { - return resolved; - } - if (requiresRefresh && !requiresRefresh(resolved)) { - isConstant = true; - return resolved; - } - if (isExpired(resolved)) { - await coalesceProvider(); - return resolved; - } - return resolved; - }; -}; diff --git a/node_modules/@smithy/property-provider/dist-types/CredentialsProviderError.d.ts b/node_modules/@smithy/property-provider/dist-types/CredentialsProviderError.d.ts deleted file mode 100644 index fbab780a..00000000 --- a/node_modules/@smithy/property-provider/dist-types/CredentialsProviderError.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { ProviderError } from "./ProviderError"; -/** - * @public - * - * An error representing a failure of an individual credential provider. - * - * This error class has special meaning to the {@link chain} method. If a - * provider in the chain is rejected with an error, the chain will only proceed - * to the next provider if the value of the `tryNextLink` property on the error - * is truthy. This allows individual providers to halt the chain and also - * ensures the chain will stop if an entirely unexpected error is encountered. - */ -export declare class CredentialsProviderError extends ProviderError { - readonly tryNextLink: boolean; - name: string; - constructor(message: string, tryNextLink?: boolean); -} diff --git a/node_modules/@smithy/property-provider/dist-types/ProviderError.d.ts b/node_modules/@smithy/property-provider/dist-types/ProviderError.d.ts deleted file mode 100644 index 503206ab..00000000 --- a/node_modules/@smithy/property-provider/dist-types/ProviderError.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * @public - * - * An error representing a failure of an individual provider. - * - * This error class has special meaning to the {@link chain} method. If a - * provider in the chain is rejected with an error, the chain will only proceed - * to the next provider if the value of the `tryNextLink` property on the error - * is truthy. This allows individual providers to halt the chain and also - * ensures the chain will stop if an entirely unexpected error is encountered. - */ -export declare class ProviderError extends Error { - readonly tryNextLink: boolean; - name: string; - constructor(message: string, tryNextLink?: boolean); - static from(error: Error, tryNextLink?: boolean): ProviderError; -} diff --git a/node_modules/@smithy/property-provider/dist-types/TokenProviderError.d.ts b/node_modules/@smithy/property-provider/dist-types/TokenProviderError.d.ts deleted file mode 100644 index a5ad554e..00000000 --- a/node_modules/@smithy/property-provider/dist-types/TokenProviderError.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { ProviderError } from "./ProviderError"; -/** - * @public - * - * An error representing a failure of an individual token provider. - * - * This error class has special meaning to the {@link chain} method. If a - * provider in the chain is rejected with an error, the chain will only proceed - * to the next provider if the value of the `tryNextLink` property on the error - * is truthy. This allows individual providers to halt the chain and also - * ensures the chain will stop if an entirely unexpected error is encountered. - */ -export declare class TokenProviderError extends ProviderError { - readonly tryNextLink: boolean; - name: string; - constructor(message: string, tryNextLink?: boolean); -} diff --git a/node_modules/@smithy/property-provider/dist-types/chain.d.ts b/node_modules/@smithy/property-provider/dist-types/chain.d.ts deleted file mode 100644 index 168df5c0..00000000 --- a/node_modules/@smithy/property-provider/dist-types/chain.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { Provider } from "@smithy/types"; -/** - * @internal - * - * Compose a single credential provider function from multiple credential - * providers. The first provider in the argument list will always be invoked; - * subsequent providers in the list will be invoked in the order in which the - * were received if the preceding provider did not successfully resolve. - * - * If no providers were received or no provider resolves successfully, the - * returned promise will be rejected. - */ -export declare const chain: (...providers: Provider[]) => Provider; diff --git a/node_modules/@smithy/property-provider/dist-types/fromStatic.d.ts b/node_modules/@smithy/property-provider/dist-types/fromStatic.d.ts deleted file mode 100644 index f58bece9..00000000 --- a/node_modules/@smithy/property-provider/dist-types/fromStatic.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { Provider } from "@smithy/types"; -/** - * @internal - */ -export declare const fromStatic: (staticValue: T) => Provider; diff --git a/node_modules/@smithy/property-provider/dist-types/index.d.ts b/node_modules/@smithy/property-provider/dist-types/index.d.ts deleted file mode 100644 index 6326994c..00000000 --- a/node_modules/@smithy/property-provider/dist-types/index.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * @internal - */ -export * from "./CredentialsProviderError"; -/** - * @internal - */ -export * from "./ProviderError"; -/** - * @internal - */ -export * from "./TokenProviderError"; -/** - * @internal - */ -export * from "./chain"; -/** - * @internal - */ -export * from "./fromStatic"; -/** - * @internal - */ -export * from "./memoize"; diff --git a/node_modules/@smithy/property-provider/dist-types/memoize.d.ts b/node_modules/@smithy/property-provider/dist-types/memoize.d.ts deleted file mode 100644 index ce197c0f..00000000 --- a/node_modules/@smithy/property-provider/dist-types/memoize.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -import { MemoizedProvider, Provider } from "@smithy/types"; -interface MemoizeOverload { - /** - * - * Decorates a provider function with either static memoization. - * - * To create a statically memoized provider, supply a provider as the only - * argument to this function. The provider will be invoked once, and all - * invocations of the provider returned by `memoize` will return the same - * promise object. - * - * @param provider The provider whose result should be cached indefinitely. - */ - (provider: Provider): MemoizedProvider; - /** - * Decorates a provider function with refreshing memoization. - * - * @param provider The provider whose result should be cached. - * @param isExpired A function that will evaluate the resolved value and - * determine if it is expired. For example, when - * memoizing AWS credential providers, this function - * should return `true` when the credential's - * expiration is in the past (or very near future) and - * `false` otherwise. - * @param requiresRefresh A function that will evaluate the resolved value and - * determine if it represents static value or one that - * will eventually need to be refreshed. For example, - * AWS credentials that have no defined expiration will - * never need to be refreshed, so this function would - * return `true` if the credentials resolved by the - * underlying provider had an expiration and `false` - * otherwise. - */ - (provider: Provider, isExpired: (resolved: T) => boolean, requiresRefresh?: (resolved: T) => boolean): MemoizedProvider; -} -/** - * @internal - */ -export declare const memoize: MemoizeOverload; -export {}; diff --git a/node_modules/@smithy/property-provider/dist-types/ts3.4/CredentialsProviderError.d.ts b/node_modules/@smithy/property-provider/dist-types/ts3.4/CredentialsProviderError.d.ts deleted file mode 100644 index 108140d1..00000000 --- a/node_modules/@smithy/property-provider/dist-types/ts3.4/CredentialsProviderError.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { ProviderError } from "./ProviderError"; -/** - * @public - * - * An error representing a failure of an individual credential provider. - * - * This error class has special meaning to the {@link chain} method. If a - * provider in the chain is rejected with an error, the chain will only proceed - * to the next provider if the value of the `tryNextLink` property on the error - * is truthy. This allows individual providers to halt the chain and also - * ensures the chain will stop if an entirely unexpected error is encountered. - */ -export declare class CredentialsProviderError extends ProviderError { - readonly tryNextLink: boolean; - name: string; - constructor(message: string, tryNextLink?: boolean); -} diff --git a/node_modules/@smithy/property-provider/dist-types/ts3.4/ProviderError.d.ts b/node_modules/@smithy/property-provider/dist-types/ts3.4/ProviderError.d.ts deleted file mode 100644 index 9c973c4e..00000000 --- a/node_modules/@smithy/property-provider/dist-types/ts3.4/ProviderError.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -/** - * @public - * - * An error representing a failure of an individual provider. - * - * This error class has special meaning to the {@link chain} method. If a - * provider in the chain is rejected with an error, the chain will only proceed - * to the next provider if the value of the `tryNextLink` property on the error - * is truthy. This allows individual providers to halt the chain and also - * ensures the chain will stop if an entirely unexpected error is encountered. - */ -export declare class ProviderError extends Error { - readonly tryNextLink: boolean; - name: string; - constructor(message: string, tryNextLink?: boolean); - static from(error: Error, tryNextLink?: boolean): ProviderError; -} diff --git a/node_modules/@smithy/property-provider/dist-types/ts3.4/TokenProviderError.d.ts b/node_modules/@smithy/property-provider/dist-types/ts3.4/TokenProviderError.d.ts deleted file mode 100644 index 40d6d7bb..00000000 --- a/node_modules/@smithy/property-provider/dist-types/ts3.4/TokenProviderError.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { ProviderError } from "./ProviderError"; -/** - * @public - * - * An error representing a failure of an individual token provider. - * - * This error class has special meaning to the {@link chain} method. If a - * provider in the chain is rejected with an error, the chain will only proceed - * to the next provider if the value of the `tryNextLink` property on the error - * is truthy. This allows individual providers to halt the chain and also - * ensures the chain will stop if an entirely unexpected error is encountered. - */ -export declare class TokenProviderError extends ProviderError { - readonly tryNextLink: boolean; - name: string; - constructor(message: string, tryNextLink?: boolean); -} diff --git a/node_modules/@smithy/property-provider/dist-types/ts3.4/chain.d.ts b/node_modules/@smithy/property-provider/dist-types/ts3.4/chain.d.ts deleted file mode 100644 index 44390b8a..00000000 --- a/node_modules/@smithy/property-provider/dist-types/ts3.4/chain.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { Provider } from "@smithy/types"; -/** - * @internal - * - * Compose a single credential provider function from multiple credential - * providers. The first provider in the argument list will always be invoked; - * subsequent providers in the list will be invoked in the order in which the - * were received if the preceding provider did not successfully resolve. - * - * If no providers were received or no provider resolves successfully, the - * returned promise will be rejected. - */ -export declare const chain: (...providers: Provider[]) => Provider; diff --git a/node_modules/@smithy/property-provider/dist-types/ts3.4/fromStatic.d.ts b/node_modules/@smithy/property-provider/dist-types/ts3.4/fromStatic.d.ts deleted file mode 100644 index 0df63094..00000000 --- a/node_modules/@smithy/property-provider/dist-types/ts3.4/fromStatic.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { Provider } from "@smithy/types"; -/** - * @internal - */ -export declare const fromStatic: (staticValue: T) => Provider; diff --git a/node_modules/@smithy/property-provider/dist-types/ts3.4/index.d.ts b/node_modules/@smithy/property-provider/dist-types/ts3.4/index.d.ts deleted file mode 100644 index e28099db..00000000 --- a/node_modules/@smithy/property-provider/dist-types/ts3.4/index.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * @internal - */ -export * from "./CredentialsProviderError"; -/** - * @internal - */ -export * from "./ProviderError"; -/** - * @internal - */ -export * from "./TokenProviderError"; -/** - * @internal - */ -export * from "./chain"; -/** - * @internal - */ -export * from "./fromStatic"; -/** - * @internal - */ -export * from "./memoize"; diff --git a/node_modules/@smithy/property-provider/dist-types/ts3.4/memoize.d.ts b/node_modules/@smithy/property-provider/dist-types/ts3.4/memoize.d.ts deleted file mode 100644 index 29ce53d5..00000000 --- a/node_modules/@smithy/property-provider/dist-types/ts3.4/memoize.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -import { MemoizedProvider, Provider } from "@smithy/types"; -interface MemoizeOverload { - /** - * - * Decorates a provider function with either static memoization. - * - * To create a statically memoized provider, supply a provider as the only - * argument to this function. The provider will be invoked once, and all - * invocations of the provider returned by `memoize` will return the same - * promise object. - * - * @param provider The provider whose result should be cached indefinitely. - */ - (provider: Provider): MemoizedProvider; - /** - * Decorates a provider function with refreshing memoization. - * - * @param provider The provider whose result should be cached. - * @param isExpired A function that will evaluate the resolved value and - * determine if it is expired. For example, when - * memoizing AWS credential providers, this function - * should return `true` when the credential's - * expiration is in the past (or very near future) and - * `false` otherwise. - * @param requiresRefresh A function that will evaluate the resolved value and - * determine if it represents static value or one that - * will eventually need to be refreshed. For example, - * AWS credentials that have no defined expiration will - * never need to be refreshed, so this function would - * return `true` if the credentials resolved by the - * underlying provider had an expiration and `false` - * otherwise. - */ - (provider: Provider, isExpired: (resolved: T) => boolean, requiresRefresh?: (resolved: T) => boolean): MemoizedProvider; -} -/** - * @internal - */ -export declare const memoize: MemoizeOverload; -export {}; diff --git a/node_modules/@smithy/property-provider/package.json b/node_modules/@smithy/property-provider/package.json deleted file mode 100644 index 4d851c10..00000000 --- a/node_modules/@smithy/property-provider/package.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "name": "@smithy/property-provider", - "version": "2.0.15", - "scripts": { - "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", - "build:cjs": "yarn g:tsc -p tsconfig.cjs.json", - "build:es": "yarn g:tsc -p tsconfig.es.json", - "build:types": "yarn g:tsc -p tsconfig.types.json", - "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", - "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz", - "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"", - "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"", - "test": "yarn g:jest" - }, - "main": "./dist-cjs/index.js", - "module": "./dist-es/index.js", - "types": "./dist-types/index.d.ts", - "author": { - "name": "AWS SDK for JavaScript Team", - "url": "https://aws.amazon.com/javascript/" - }, - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^2.6.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "typesVersions": { - "<4.0": { - "dist-types/*": [ - "dist-types/ts3.4/*" - ] - } - }, - "files": [ - "dist-*/**" - ], - "homepage": "https://github.com/awslabs/smithy-typescript/tree/main/packages/property-provider", - "repository": { - "type": "git", - "url": "https://github.com/awslabs/smithy-typescript.git", - "directory": "packages/property-provider" - }, - "devDependencies": { - "@tsconfig/recommended": "1.0.1", - "concurrently": "7.0.0", - "downlevel-dts": "0.10.1", - "rimraf": "3.0.2", - "typedoc": "0.23.23" - }, - "typedoc": { - "entryPoint": "src/index.ts" - }, - "publishConfig": { - "directory": ".release/package" - } -} \ No newline at end of file diff --git a/node_modules/@smithy/protocol-http/LICENSE b/node_modules/@smithy/protocol-http/LICENSE deleted file mode 100644 index e907b586..00000000 --- a/node_modules/@smithy/protocol-http/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/node_modules/@smithy/protocol-http/README.md b/node_modules/@smithy/protocol-http/README.md deleted file mode 100644 index a547ab08..00000000 --- a/node_modules/@smithy/protocol-http/README.md +++ /dev/null @@ -1,4 +0,0 @@ -# @smithy/protocol-http - -[![NPM version](https://img.shields.io/npm/v/@smithy/protocol-http/latest.svg)](https://www.npmjs.com/package/@smithy/protocol-http) -[![NPM downloads](https://img.shields.io/npm/dm/@smithy/protocol-http.svg)](https://www.npmjs.com/package/@smithy/protocol-http) diff --git a/node_modules/@smithy/protocol-http/dist-cjs/Field.js b/node_modules/@smithy/protocol-http/dist-cjs/Field.js deleted file mode 100644 index 82a7b1a8..00000000 --- a/node_modules/@smithy/protocol-http/dist-cjs/Field.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Field = void 0; -const types_1 = require("@smithy/types"); -class Field { - constructor({ name, kind = types_1.FieldPosition.HEADER, values = [] }) { - this.name = name; - this.kind = kind; - this.values = values; - } - add(value) { - this.values.push(value); - } - set(values) { - this.values = values; - } - remove(value) { - this.values = this.values.filter((v) => v !== value); - } - toString() { - return this.values.map((v) => (v.includes(",") || v.includes(" ") ? `"${v}"` : v)).join(", "); - } - get() { - return this.values; - } -} -exports.Field = Field; diff --git a/node_modules/@smithy/protocol-http/dist-cjs/Fields.js b/node_modules/@smithy/protocol-http/dist-cjs/Fields.js deleted file mode 100644 index a2cfa3f4..00000000 --- a/node_modules/@smithy/protocol-http/dist-cjs/Fields.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Fields = void 0; -class Fields { - constructor({ fields = [], encoding = "utf-8" }) { - this.entries = {}; - fields.forEach(this.setField.bind(this)); - this.encoding = encoding; - } - setField(field) { - this.entries[field.name.toLowerCase()] = field; - } - getField(name) { - return this.entries[name.toLowerCase()]; - } - removeField(name) { - delete this.entries[name.toLowerCase()]; - } - getByType(kind) { - return Object.values(this.entries).filter((field) => field.kind === kind); - } -} -exports.Fields = Fields; diff --git a/node_modules/@smithy/protocol-http/dist-cjs/extensions/httpExtensionConfiguration.js b/node_modules/@smithy/protocol-http/dist-cjs/extensions/httpExtensionConfiguration.js deleted file mode 100644 index 3054e8e3..00000000 --- a/node_modules/@smithy/protocol-http/dist-cjs/extensions/httpExtensionConfiguration.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.resolveHttpHandlerRuntimeConfig = exports.getHttpHandlerExtensionConfiguration = void 0; -const getHttpHandlerExtensionConfiguration = (runtimeConfig) => { - let httpHandler = runtimeConfig.httpHandler; - return { - setHttpHandler(handler) { - httpHandler = handler; - }, - httpHandler() { - return httpHandler; - }, - updateHttpClientConfig(key, value) { - httpHandler.updateHttpClientConfig(key, value); - }, - httpHandlerConfigs() { - return httpHandler.httpHandlerConfigs(); - }, - }; -}; -exports.getHttpHandlerExtensionConfiguration = getHttpHandlerExtensionConfiguration; -const resolveHttpHandlerRuntimeConfig = (httpHandlerExtensionConfiguration) => { - return { - httpHandler: httpHandlerExtensionConfiguration.httpHandler(), - }; -}; -exports.resolveHttpHandlerRuntimeConfig = resolveHttpHandlerRuntimeConfig; diff --git a/node_modules/@smithy/protocol-http/dist-cjs/extensions/index.js b/node_modules/@smithy/protocol-http/dist-cjs/extensions/index.js deleted file mode 100644 index e2373e96..00000000 --- a/node_modules/@smithy/protocol-http/dist-cjs/extensions/index.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./httpExtensionConfiguration"), exports); diff --git a/node_modules/@smithy/protocol-http/dist-cjs/httpHandler.js b/node_modules/@smithy/protocol-http/dist-cjs/httpHandler.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@smithy/protocol-http/dist-cjs/httpHandler.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@smithy/protocol-http/dist-cjs/httpRequest.js b/node_modules/@smithy/protocol-http/dist-cjs/httpRequest.js deleted file mode 100644 index 99bfaf78..00000000 --- a/node_modules/@smithy/protocol-http/dist-cjs/httpRequest.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.HttpRequest = void 0; -class HttpRequest { - constructor(options) { - this.method = options.method || "GET"; - this.hostname = options.hostname || "localhost"; - this.port = options.port; - this.query = options.query || {}; - this.headers = options.headers || {}; - this.body = options.body; - this.protocol = options.protocol - ? options.protocol.slice(-1) !== ":" - ? `${options.protocol}:` - : options.protocol - : "https:"; - this.path = options.path ? (options.path.charAt(0) !== "/" ? `/${options.path}` : options.path) : "/"; - this.username = options.username; - this.password = options.password; - this.fragment = options.fragment; - } - static isInstance(request) { - if (!request) - return false; - const req = request; - return ("method" in req && - "protocol" in req && - "hostname" in req && - "path" in req && - typeof req["query"] === "object" && - typeof req["headers"] === "object"); - } - clone() { - const cloned = new HttpRequest({ - ...this, - headers: { ...this.headers }, - }); - if (cloned.query) - cloned.query = cloneQuery(cloned.query); - return cloned; - } -} -exports.HttpRequest = HttpRequest; -function cloneQuery(query) { - return Object.keys(query).reduce((carry, paramName) => { - const param = query[paramName]; - return { - ...carry, - [paramName]: Array.isArray(param) ? [...param] : param, - }; - }, {}); -} diff --git a/node_modules/@smithy/protocol-http/dist-cjs/httpResponse.js b/node_modules/@smithy/protocol-http/dist-cjs/httpResponse.js deleted file mode 100644 index 1ea7d9fa..00000000 --- a/node_modules/@smithy/protocol-http/dist-cjs/httpResponse.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.HttpResponse = void 0; -class HttpResponse { - constructor(options) { - this.statusCode = options.statusCode; - this.reason = options.reason; - this.headers = options.headers || {}; - this.body = options.body; - } - static isInstance(response) { - if (!response) - return false; - const resp = response; - return typeof resp.statusCode === "number" && typeof resp.headers === "object"; - } -} -exports.HttpResponse = HttpResponse; diff --git a/node_modules/@smithy/protocol-http/dist-cjs/index.js b/node_modules/@smithy/protocol-http/dist-cjs/index.js deleted file mode 100644 index 4ceeb8f2..00000000 --- a/node_modules/@smithy/protocol-http/dist-cjs/index.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./extensions"), exports); -tslib_1.__exportStar(require("./Field"), exports); -tslib_1.__exportStar(require("./Fields"), exports); -tslib_1.__exportStar(require("./httpHandler"), exports); -tslib_1.__exportStar(require("./httpRequest"), exports); -tslib_1.__exportStar(require("./httpResponse"), exports); -tslib_1.__exportStar(require("./isValidHostname"), exports); -tslib_1.__exportStar(require("./types"), exports); diff --git a/node_modules/@smithy/protocol-http/dist-cjs/isValidHostname.js b/node_modules/@smithy/protocol-http/dist-cjs/isValidHostname.js deleted file mode 100644 index 9e5547e5..00000000 --- a/node_modules/@smithy/protocol-http/dist-cjs/isValidHostname.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isValidHostname = void 0; -function isValidHostname(hostname) { - const hostPattern = /^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/; - return hostPattern.test(hostname); -} -exports.isValidHostname = isValidHostname; diff --git a/node_modules/@smithy/protocol-http/dist-cjs/types.js b/node_modules/@smithy/protocol-http/dist-cjs/types.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@smithy/protocol-http/dist-cjs/types.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@smithy/protocol-http/dist-es/Field.js b/node_modules/@smithy/protocol-http/dist-es/Field.js deleted file mode 100644 index 918c883f..00000000 --- a/node_modules/@smithy/protocol-http/dist-es/Field.js +++ /dev/null @@ -1,23 +0,0 @@ -import { FieldPosition } from "@smithy/types"; -export class Field { - constructor({ name, kind = FieldPosition.HEADER, values = [] }) { - this.name = name; - this.kind = kind; - this.values = values; - } - add(value) { - this.values.push(value); - } - set(values) { - this.values = values; - } - remove(value) { - this.values = this.values.filter((v) => v !== value); - } - toString() { - return this.values.map((v) => (v.includes(",") || v.includes(" ") ? `"${v}"` : v)).join(", "); - } - get() { - return this.values; - } -} diff --git a/node_modules/@smithy/protocol-http/dist-es/Fields.js b/node_modules/@smithy/protocol-http/dist-es/Fields.js deleted file mode 100644 index efa591fa..00000000 --- a/node_modules/@smithy/protocol-http/dist-es/Fields.js +++ /dev/null @@ -1,19 +0,0 @@ -export class Fields { - constructor({ fields = [], encoding = "utf-8" }) { - this.entries = {}; - fields.forEach(this.setField.bind(this)); - this.encoding = encoding; - } - setField(field) { - this.entries[field.name.toLowerCase()] = field; - } - getField(name) { - return this.entries[name.toLowerCase()]; - } - removeField(name) { - delete this.entries[name.toLowerCase()]; - } - getByType(kind) { - return Object.values(this.entries).filter((field) => field.kind === kind); - } -} diff --git a/node_modules/@smithy/protocol-http/dist-es/extensions/httpExtensionConfiguration.js b/node_modules/@smithy/protocol-http/dist-es/extensions/httpExtensionConfiguration.js deleted file mode 100644 index b7282874..00000000 --- a/node_modules/@smithy/protocol-http/dist-es/extensions/httpExtensionConfiguration.js +++ /dev/null @@ -1,22 +0,0 @@ -export const getHttpHandlerExtensionConfiguration = (runtimeConfig) => { - let httpHandler = runtimeConfig.httpHandler; - return { - setHttpHandler(handler) { - httpHandler = handler; - }, - httpHandler() { - return httpHandler; - }, - updateHttpClientConfig(key, value) { - httpHandler.updateHttpClientConfig(key, value); - }, - httpHandlerConfigs() { - return httpHandler.httpHandlerConfigs(); - }, - }; -}; -export const resolveHttpHandlerRuntimeConfig = (httpHandlerExtensionConfiguration) => { - return { - httpHandler: httpHandlerExtensionConfiguration.httpHandler(), - }; -}; diff --git a/node_modules/@smithy/protocol-http/dist-es/extensions/index.js b/node_modules/@smithy/protocol-http/dist-es/extensions/index.js deleted file mode 100644 index a215a4a8..00000000 --- a/node_modules/@smithy/protocol-http/dist-es/extensions/index.js +++ /dev/null @@ -1 +0,0 @@ -export * from "./httpExtensionConfiguration"; diff --git a/node_modules/@smithy/protocol-http/dist-es/httpHandler.js b/node_modules/@smithy/protocol-http/dist-es/httpHandler.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@smithy/protocol-http/dist-es/httpHandler.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@smithy/protocol-http/dist-es/httpRequest.js b/node_modules/@smithy/protocol-http/dist-es/httpRequest.js deleted file mode 100644 index 1e490cd1..00000000 --- a/node_modules/@smithy/protocol-http/dist-es/httpRequest.js +++ /dev/null @@ -1,48 +0,0 @@ -export class HttpRequest { - constructor(options) { - this.method = options.method || "GET"; - this.hostname = options.hostname || "localhost"; - this.port = options.port; - this.query = options.query || {}; - this.headers = options.headers || {}; - this.body = options.body; - this.protocol = options.protocol - ? options.protocol.slice(-1) !== ":" - ? `${options.protocol}:` - : options.protocol - : "https:"; - this.path = options.path ? (options.path.charAt(0) !== "/" ? `/${options.path}` : options.path) : "/"; - this.username = options.username; - this.password = options.password; - this.fragment = options.fragment; - } - static isInstance(request) { - if (!request) - return false; - const req = request; - return ("method" in req && - "protocol" in req && - "hostname" in req && - "path" in req && - typeof req["query"] === "object" && - typeof req["headers"] === "object"); - } - clone() { - const cloned = new HttpRequest({ - ...this, - headers: { ...this.headers }, - }); - if (cloned.query) - cloned.query = cloneQuery(cloned.query); - return cloned; - } -} -function cloneQuery(query) { - return Object.keys(query).reduce((carry, paramName) => { - const param = query[paramName]; - return { - ...carry, - [paramName]: Array.isArray(param) ? [...param] : param, - }; - }, {}); -} diff --git a/node_modules/@smithy/protocol-http/dist-es/httpResponse.js b/node_modules/@smithy/protocol-http/dist-es/httpResponse.js deleted file mode 100644 index 75f470f1..00000000 --- a/node_modules/@smithy/protocol-http/dist-es/httpResponse.js +++ /dev/null @@ -1,14 +0,0 @@ -export class HttpResponse { - constructor(options) { - this.statusCode = options.statusCode; - this.reason = options.reason; - this.headers = options.headers || {}; - this.body = options.body; - } - static isInstance(response) { - if (!response) - return false; - const resp = response; - return typeof resp.statusCode === "number" && typeof resp.headers === "object"; - } -} diff --git a/node_modules/@smithy/protocol-http/dist-es/index.js b/node_modules/@smithy/protocol-http/dist-es/index.js deleted file mode 100644 index 8ff7f269..00000000 --- a/node_modules/@smithy/protocol-http/dist-es/index.js +++ /dev/null @@ -1,8 +0,0 @@ -export * from "./extensions"; -export * from "./Field"; -export * from "./Fields"; -export * from "./httpHandler"; -export * from "./httpRequest"; -export * from "./httpResponse"; -export * from "./isValidHostname"; -export * from "./types"; diff --git a/node_modules/@smithy/protocol-http/dist-es/isValidHostname.js b/node_modules/@smithy/protocol-http/dist-es/isValidHostname.js deleted file mode 100644 index 464c7db5..00000000 --- a/node_modules/@smithy/protocol-http/dist-es/isValidHostname.js +++ /dev/null @@ -1,4 +0,0 @@ -export function isValidHostname(hostname) { - const hostPattern = /^[a-z0-9][a-z0-9\.\-]*[a-z0-9]$/; - return hostPattern.test(hostname); -} diff --git a/node_modules/@smithy/protocol-http/dist-es/types.js b/node_modules/@smithy/protocol-http/dist-es/types.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@smithy/protocol-http/dist-es/types.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@smithy/protocol-http/dist-types/Field.d.ts b/node_modules/@smithy/protocol-http/dist-types/Field.d.ts deleted file mode 100644 index 2d1613af..00000000 --- a/node_modules/@smithy/protocol-http/dist-types/Field.d.ts +++ /dev/null @@ -1,49 +0,0 @@ -import { FieldOptions, FieldPosition } from "@smithy/types"; -/** - * A name-value pair representing a single field - * transmitted in an HTTP Request or Response. - * - * The kind will dictate metadata placement within - * an HTTP message. - * - * All field names are case insensitive and - * case-variance must be treated as equivalent. - * Names MAY be normalized but SHOULD be preserved - * for accuracy during transmission. - */ -export declare class Field { - readonly name: string; - readonly kind: FieldPosition; - values: string[]; - constructor({ name, kind, values }: FieldOptions); - /** - * Appends a value to the field. - * - * @param value The value to append. - */ - add(value: string): void; - /** - * Overwrite existing field values. - * - * @param values The new field values. - */ - set(values: string[]): void; - /** - * Remove all matching entries from list. - * - * @param value Value to remove. - */ - remove(value: string): void; - /** - * Get comma-delimited string. - * - * @returns String representation of {@link Field}. - */ - toString(): string; - /** - * Get string values as a list - * - * @returns Values in {@link Field} as a list. - */ - get(): string[]; -} diff --git a/node_modules/@smithy/protocol-http/dist-types/Fields.d.ts b/node_modules/@smithy/protocol-http/dist-types/Fields.d.ts deleted file mode 100644 index 8915826d..00000000 --- a/node_modules/@smithy/protocol-http/dist-types/Fields.d.ts +++ /dev/null @@ -1,44 +0,0 @@ -import { FieldPosition } from "@smithy/types"; -import { Field } from "./Field"; -export type FieldsOptions = { - fields?: Field[]; - encoding?: string; -}; -/** - * Collection of Field entries mapped by name. - */ -export declare class Fields { - private readonly entries; - private readonly encoding; - constructor({ fields, encoding }: FieldsOptions); - /** - * Set entry for a {@link Field} name. The `name` - * attribute will be used to key the collection. - * - * @param field The {@link Field} to set. - */ - setField(field: Field): void; - /** - * Retrieve {@link Field} entry by name. - * - * @param name The name of the {@link Field} entry - * to retrieve - * @returns The {@link Field} if it exists. - */ - getField(name: string): Field | undefined; - /** - * Delete entry from collection. - * - * @param name Name of the entry to delete. - */ - removeField(name: string): void; - /** - * Helper function for retrieving specific types of fields. - * Used to grab all headers or all trailers. - * - * @param kind {@link FieldPosition} of entries to retrieve. - * @returns The {@link Field} entries with the specified - * {@link FieldPosition}. - */ - getByType(kind: FieldPosition): Field[]; -} diff --git a/node_modules/@smithy/protocol-http/dist-types/extensions/httpExtensionConfiguration.d.ts b/node_modules/@smithy/protocol-http/dist-types/extensions/httpExtensionConfiguration.d.ts deleted file mode 100644 index bfe452dc..00000000 --- a/node_modules/@smithy/protocol-http/dist-types/extensions/httpExtensionConfiguration.d.ts +++ /dev/null @@ -1,37 +0,0 @@ -import { HttpHandler } from "../httpHandler"; -/** - * @internal - */ -export interface HttpHandlerExtensionConfiguration { - setHttpHandler(handler: HttpHandler): void; - httpHandler(): HttpHandler; - updateHttpClientConfig(key: keyof HandlerConfig, value: HandlerConfig[typeof key]): void; - httpHandlerConfigs(): HandlerConfig; -} -/** - * @internal - */ -export type HttpHandlerExtensionConfigType = Partial<{ - httpHandler: HttpHandler; -}>; -/** - * @internal - * - * Helper function to resolve default extension configuration from runtime config - */ -export declare const getHttpHandlerExtensionConfiguration: (runtimeConfig: Partial<{ - httpHandler: HttpHandler; -}>) => { - setHttpHandler(handler: HttpHandler): void; - httpHandler(): HttpHandler; - updateHttpClientConfig(key: keyof HandlerConfig, value: HandlerConfig[keyof HandlerConfig]): void; - httpHandlerConfigs(): HandlerConfig; -}; -/** - * @internal - * - * Helper function to resolve runtime config from default extension configuration - */ -export declare const resolveHttpHandlerRuntimeConfig: (httpHandlerExtensionConfiguration: HttpHandlerExtensionConfiguration) => Partial<{ - httpHandler: HttpHandler; -}>; diff --git a/node_modules/@smithy/protocol-http/dist-types/extensions/index.d.ts b/node_modules/@smithy/protocol-http/dist-types/extensions/index.d.ts deleted file mode 100644 index a215a4a8..00000000 --- a/node_modules/@smithy/protocol-http/dist-types/extensions/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./httpExtensionConfiguration"; diff --git a/node_modules/@smithy/protocol-http/dist-types/httpHandler.d.ts b/node_modules/@smithy/protocol-http/dist-types/httpHandler.d.ts deleted file mode 100644 index 6bfaae34..00000000 --- a/node_modules/@smithy/protocol-http/dist-types/httpHandler.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { HttpHandlerOptions, RequestHandler } from "@smithy/types"; -import { HttpRequest } from "./httpRequest"; -import { HttpResponse } from "./httpResponse"; -/** - * @internal - */ -export type HttpHandler = RequestHandler & { - /** - * @internal - * @param key - * @param value - */ - updateHttpClientConfig(key: keyof HttpHandlerConfig, value: HttpHandlerConfig[typeof key]): void; - /** - * @internal - */ - httpHandlerConfigs(): HttpHandlerConfig; -}; diff --git a/node_modules/@smithy/protocol-http/dist-types/httpRequest.d.ts b/node_modules/@smithy/protocol-http/dist-types/httpRequest.d.ts deleted file mode 100644 index ed35544b..00000000 --- a/node_modules/@smithy/protocol-http/dist-types/httpRequest.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { HeaderBag, HttpMessage, HttpRequest as IHttpRequest, QueryParameterBag, URI } from "@smithy/types"; -type HttpRequestOptions = Partial & Partial & { - method?: string; -}; -export interface HttpRequest extends IHttpRequest { -} -export declare class HttpRequest implements HttpMessage, URI { - method: string; - protocol: string; - hostname: string; - port?: number; - path: string; - query: QueryParameterBag; - headers: HeaderBag; - username?: string; - password?: string; - fragment?: string; - body?: any; - constructor(options: HttpRequestOptions); - static isInstance(request: unknown): request is HttpRequest; - clone(): HttpRequest; -} -export {}; diff --git a/node_modules/@smithy/protocol-http/dist-types/httpResponse.d.ts b/node_modules/@smithy/protocol-http/dist-types/httpResponse.d.ts deleted file mode 100644 index a4eeecc0..00000000 --- a/node_modules/@smithy/protocol-http/dist-types/httpResponse.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { HeaderBag, HttpMessage, HttpResponse as IHttpResponse } from "@smithy/types"; -type HttpResponseOptions = Partial & { - statusCode: number; - reason?: string; -}; -export interface HttpResponse extends IHttpResponse { -} -export declare class HttpResponse { - statusCode: number; - reason?: string; - headers: HeaderBag; - body?: any; - constructor(options: HttpResponseOptions); - static isInstance(response: unknown): response is HttpResponse; -} -export {}; diff --git a/node_modules/@smithy/protocol-http/dist-types/index.d.ts b/node_modules/@smithy/protocol-http/dist-types/index.d.ts deleted file mode 100644 index 8ff7f269..00000000 --- a/node_modules/@smithy/protocol-http/dist-types/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -export * from "./extensions"; -export * from "./Field"; -export * from "./Fields"; -export * from "./httpHandler"; -export * from "./httpRequest"; -export * from "./httpResponse"; -export * from "./isValidHostname"; -export * from "./types"; diff --git a/node_modules/@smithy/protocol-http/dist-types/isValidHostname.d.ts b/node_modules/@smithy/protocol-http/dist-types/isValidHostname.d.ts deleted file mode 100644 index 6fb5bcb3..00000000 --- a/node_modules/@smithy/protocol-http/dist-types/isValidHostname.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare function isValidHostname(hostname: string): boolean; diff --git a/node_modules/@smithy/protocol-http/dist-types/ts3.4/Field.d.ts b/node_modules/@smithy/protocol-http/dist-types/ts3.4/Field.d.ts deleted file mode 100644 index faa4b706..00000000 --- a/node_modules/@smithy/protocol-http/dist-types/ts3.4/Field.d.ts +++ /dev/null @@ -1,49 +0,0 @@ -import { FieldOptions, FieldPosition } from "@smithy/types"; -/** - * A name-value pair representing a single field - * transmitted in an HTTP Request or Response. - * - * The kind will dictate metadata placement within - * an HTTP message. - * - * All field names are case insensitive and - * case-variance must be treated as equivalent. - * Names MAY be normalized but SHOULD be preserved - * for accuracy during transmission. - */ -export declare class Field { - readonly name: string; - readonly kind: FieldPosition; - values: string[]; - constructor({ name, kind, values }: FieldOptions); - /** - * Appends a value to the field. - * - * @param value The value to append. - */ - add(value: string): void; - /** - * Overwrite existing field values. - * - * @param values The new field values. - */ - set(values: string[]): void; - /** - * Remove all matching entries from list. - * - * @param value Value to remove. - */ - remove(value: string): void; - /** - * Get comma-delimited string. - * - * @returns String representation of {@link Field}. - */ - toString(): string; - /** - * Get string values as a list - * - * @returns Values in {@link Field} as a list. - */ - get(): string[]; -} diff --git a/node_modules/@smithy/protocol-http/dist-types/ts3.4/Fields.d.ts b/node_modules/@smithy/protocol-http/dist-types/ts3.4/Fields.d.ts deleted file mode 100644 index 616f55eb..00000000 --- a/node_modules/@smithy/protocol-http/dist-types/ts3.4/Fields.d.ts +++ /dev/null @@ -1,44 +0,0 @@ -import { FieldPosition } from "@smithy/types"; -import { Field } from "./Field"; -export type FieldsOptions = { - fields?: Field[]; - encoding?: string; -}; -/** - * Collection of Field entries mapped by name. - */ -export declare class Fields { - private readonly entries; - private readonly encoding; - constructor({ fields, encoding }: FieldsOptions); - /** - * Set entry for a {@link Field} name. The `name` - * attribute will be used to key the collection. - * - * @param field The {@link Field} to set. - */ - setField(field: Field): void; - /** - * Retrieve {@link Field} entry by name. - * - * @param name The name of the {@link Field} entry - * to retrieve - * @returns The {@link Field} if it exists. - */ - getField(name: string): Field | undefined; - /** - * Delete entry from collection. - * - * @param name Name of the entry to delete. - */ - removeField(name: string): void; - /** - * Helper function for retrieving specific types of fields. - * Used to grab all headers or all trailers. - * - * @param kind {@link FieldPosition} of entries to retrieve. - * @returns The {@link Field} entries with the specified - * {@link FieldPosition}. - */ - getByType(kind: FieldPosition): Field[]; -} diff --git a/node_modules/@smithy/protocol-http/dist-types/ts3.4/extensions/httpExtensionConfiguration.d.ts b/node_modules/@smithy/protocol-http/dist-types/ts3.4/extensions/httpExtensionConfiguration.d.ts deleted file mode 100644 index 3cd2cf65..00000000 --- a/node_modules/@smithy/protocol-http/dist-types/ts3.4/extensions/httpExtensionConfiguration.d.ts +++ /dev/null @@ -1,37 +0,0 @@ -import { HttpHandler } from "../httpHandler"; -/** - * @internal - */ -export interface HttpHandlerExtensionConfiguration { - setHttpHandler(handler: HttpHandler): void; - httpHandler(): HttpHandler; - updateHttpClientConfig(key: keyof HandlerConfig, value: HandlerConfig[typeof key]): void; - httpHandlerConfigs(): HandlerConfig; -} -/** - * @internal - */ -export type HttpHandlerExtensionConfigType = Partial<{ - httpHandler: HttpHandler; -}>; -/** - * @internal - * - * Helper function to resolve default extension configuration from runtime config - */ -export declare const getHttpHandlerExtensionConfiguration: (runtimeConfig: Partial<{ - httpHandler: HttpHandler; -}>) => { - setHttpHandler(handler: HttpHandler): void; - httpHandler(): HttpHandler; - updateHttpClientConfig(key: keyof HandlerConfig, value: HandlerConfig[keyof HandlerConfig]): void; - httpHandlerConfigs(): HandlerConfig; -}; -/** - * @internal - * - * Helper function to resolve runtime config from default extension configuration - */ -export declare const resolveHttpHandlerRuntimeConfig: (httpHandlerExtensionConfiguration: HttpHandlerExtensionConfiguration) => Partial<{ - httpHandler: HttpHandler; -}>; diff --git a/node_modules/@smithy/protocol-http/dist-types/ts3.4/extensions/index.d.ts b/node_modules/@smithy/protocol-http/dist-types/ts3.4/extensions/index.d.ts deleted file mode 100644 index e0f765b5..00000000 --- a/node_modules/@smithy/protocol-http/dist-types/ts3.4/extensions/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./httpExtensionConfiguration"; diff --git a/node_modules/@smithy/protocol-http/dist-types/ts3.4/httpHandler.d.ts b/node_modules/@smithy/protocol-http/dist-types/ts3.4/httpHandler.d.ts deleted file mode 100644 index cdde1697..00000000 --- a/node_modules/@smithy/protocol-http/dist-types/ts3.4/httpHandler.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { HttpHandlerOptions, RequestHandler } from "@smithy/types"; -import { HttpRequest } from "./httpRequest"; -import { HttpResponse } from "./httpResponse"; -/** - * @internal - */ -export type HttpHandler = RequestHandler & { - /** - * @internal - * @param key - * @param value - */ - updateHttpClientConfig(key: keyof HttpHandlerConfig, value: HttpHandlerConfig[typeof key]): void; - /** - * @internal - */ - httpHandlerConfigs(): HttpHandlerConfig; -}; diff --git a/node_modules/@smithy/protocol-http/dist-types/ts3.4/httpRequest.d.ts b/node_modules/@smithy/protocol-http/dist-types/ts3.4/httpRequest.d.ts deleted file mode 100644 index 80c45b89..00000000 --- a/node_modules/@smithy/protocol-http/dist-types/ts3.4/httpRequest.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { HeaderBag, HttpMessage, HttpRequest as IHttpRequest, QueryParameterBag, URI } from "@smithy/types"; -type HttpRequestOptions = Partial & Partial & { - method?: string; -}; -export interface HttpRequest extends IHttpRequest { -} -export declare class HttpRequest implements HttpMessage, URI { - method: string; - protocol: string; - hostname: string; - port?: number; - path: string; - query: QueryParameterBag; - headers: HeaderBag; - username?: string; - password?: string; - fragment?: string; - body?: any; - constructor(options: HttpRequestOptions); - static isInstance(request: unknown): request is HttpRequest; - clone(): HttpRequest; -} -export {}; diff --git a/node_modules/@smithy/protocol-http/dist-types/ts3.4/httpResponse.d.ts b/node_modules/@smithy/protocol-http/dist-types/ts3.4/httpResponse.d.ts deleted file mode 100644 index e748d0a6..00000000 --- a/node_modules/@smithy/protocol-http/dist-types/ts3.4/httpResponse.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { HeaderBag, HttpMessage, HttpResponse as IHttpResponse } from "@smithy/types"; -type HttpResponseOptions = Partial & { - statusCode: number; - reason?: string; -}; -export interface HttpResponse extends IHttpResponse { -} -export declare class HttpResponse { - statusCode: number; - reason?: string; - headers: HeaderBag; - body?: any; - constructor(options: HttpResponseOptions); - static isInstance(response: unknown): response is HttpResponse; -} -export {}; diff --git a/node_modules/@smithy/protocol-http/dist-types/ts3.4/index.d.ts b/node_modules/@smithy/protocol-http/dist-types/ts3.4/index.d.ts deleted file mode 100644 index 08feffab..00000000 --- a/node_modules/@smithy/protocol-http/dist-types/ts3.4/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -export * from "./extensions"; -export * from "./Field"; -export * from "./Fields"; -export * from "./httpHandler"; -export * from "./httpRequest"; -export * from "./httpResponse"; -export * from "./isValidHostname"; -export * from "./types"; diff --git a/node_modules/@smithy/protocol-http/dist-types/ts3.4/isValidHostname.d.ts b/node_modules/@smithy/protocol-http/dist-types/ts3.4/isValidHostname.d.ts deleted file mode 100644 index 7b85b36e..00000000 --- a/node_modules/@smithy/protocol-http/dist-types/ts3.4/isValidHostname.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare function isValidHostname(hostname: string): boolean; diff --git a/node_modules/@smithy/protocol-http/dist-types/ts3.4/types.d.ts b/node_modules/@smithy/protocol-http/dist-types/ts3.4/types.d.ts deleted file mode 100644 index 42e3c660..00000000 --- a/node_modules/@smithy/protocol-http/dist-types/ts3.4/types.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { FieldOptions as __FieldOptions, FieldPosition as __FieldPosition, HeaderBag as __HeaderBag, HttpHandlerOptions as __HttpHandlerOptions, HttpMessage as __HttpMessage } from "@smithy/types"; -/** - * @deprecated Use FieldOptions from `@smithy/types` instead - */ -export type FieldOptions = __FieldOptions; -/** - * @deprecated Use FieldPosition from `@smithy/types` instead - */ -export type FieldPosition = __FieldPosition; -/** - * @deprecated Use HeaderBag from `@smithy/types` instead - */ -export type HeaderBag = __HeaderBag; -/** - * @deprecated Use HttpMessage from `@smithy/types` instead - */ -export type HttpMessage = __HttpMessage; -/** - * @deprecated Use HttpHandlerOptions from `@smithy/types` instead - */ -export type HttpHandlerOptions = __HttpHandlerOptions; diff --git a/node_modules/@smithy/protocol-http/dist-types/types.d.ts b/node_modules/@smithy/protocol-http/dist-types/types.d.ts deleted file mode 100644 index 0d597b9c..00000000 --- a/node_modules/@smithy/protocol-http/dist-types/types.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -import { FieldOptions as __FieldOptions, FieldPosition as __FieldPosition, HeaderBag as __HeaderBag, HttpHandlerOptions as __HttpHandlerOptions, HttpMessage as __HttpMessage } from "@smithy/types"; -/** - * @deprecated Use FieldOptions from `@smithy/types` instead - */ -export type FieldOptions = __FieldOptions; -/** - * @deprecated Use FieldPosition from `@smithy/types` instead - */ -export type FieldPosition = __FieldPosition; -/** - * @deprecated Use HeaderBag from `@smithy/types` instead - */ -export type HeaderBag = __HeaderBag; -/** - * @deprecated Use HttpMessage from `@smithy/types` instead - */ -export type HttpMessage = __HttpMessage; -/** - * @deprecated Use HttpHandlerOptions from `@smithy/types` instead - */ -export type HttpHandlerOptions = __HttpHandlerOptions; diff --git a/node_modules/@smithy/protocol-http/package.json b/node_modules/@smithy/protocol-http/package.json deleted file mode 100644 index 5fec1f4c..00000000 --- a/node_modules/@smithy/protocol-http/package.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "name": "@smithy/protocol-http", - "version": "3.0.10", - "scripts": { - "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", - "build:cjs": "yarn g:tsc -p tsconfig.cjs.json", - "build:es": "yarn g:tsc -p tsconfig.es.json", - "build:types": "yarn g:tsc -p tsconfig.types.json", - "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", - "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz", - "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"", - "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"", - "test": "yarn g:jest" - }, - "main": "./dist-cjs/index.js", - "module": "./dist-es/index.js", - "types": "./dist-types/index.d.ts", - "author": { - "name": "AWS Smithy Team", - "email": "", - "url": "https://smithy.io" - }, - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^2.6.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "typesVersions": { - "<4.0": { - "dist-types/*": [ - "dist-types/ts3.4/*" - ] - } - }, - "files": [ - "dist-*/**" - ], - "homepage": "https://github.com/awslabs/smithy-typescript/tree/main/packages/protocol-http", - "repository": { - "type": "git", - "url": "https://github.com/awslabs/smithy-typescript.git", - "directory": "packages/protocol-http" - }, - "devDependencies": { - "@tsconfig/recommended": "1.0.1", - "concurrently": "7.0.0", - "downlevel-dts": "0.10.1", - "rimraf": "3.0.2", - "typedoc": "0.23.23" - }, - "typedoc": { - "entryPoint": "src/index.ts" - }, - "publishConfig": { - "directory": ".release/package" - } -} \ No newline at end of file diff --git a/node_modules/@smithy/querystring-builder/LICENSE b/node_modules/@smithy/querystring-builder/LICENSE deleted file mode 100644 index dd65ae06..00000000 --- a/node_modules/@smithy/querystring-builder/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/node_modules/@smithy/querystring-builder/README.md b/node_modules/@smithy/querystring-builder/README.md deleted file mode 100644 index 00275dad..00000000 --- a/node_modules/@smithy/querystring-builder/README.md +++ /dev/null @@ -1,10 +0,0 @@ -# @smithy/querystring-builder - -[![NPM version](https://img.shields.io/npm/v/@smithy/querystring-builder/latest.svg)](https://www.npmjs.com/package/@smithy/querystring-builder) -[![NPM downloads](https://img.shields.io/npm/dm/@smithy/querystring-builder.svg)](https://www.npmjs.com/package/@smithy/querystring-builder) - -> An internal package - -## Usage - -You probably shouldn't, at least directly. diff --git a/node_modules/@smithy/querystring-builder/dist-cjs/index.js b/node_modules/@smithy/querystring-builder/dist-cjs/index.js deleted file mode 100644 index 13328a34..00000000 --- a/node_modules/@smithy/querystring-builder/dist-cjs/index.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.buildQueryString = void 0; -const util_uri_escape_1 = require("@smithy/util-uri-escape"); -function buildQueryString(query) { - const parts = []; - for (let key of Object.keys(query).sort()) { - const value = query[key]; - key = (0, util_uri_escape_1.escapeUri)(key); - if (Array.isArray(value)) { - for (let i = 0, iLen = value.length; i < iLen; i++) { - parts.push(`${key}=${(0, util_uri_escape_1.escapeUri)(value[i])}`); - } - } - else { - let qsEntry = key; - if (value || typeof value === "string") { - qsEntry += `=${(0, util_uri_escape_1.escapeUri)(value)}`; - } - parts.push(qsEntry); - } - } - return parts.join("&"); -} -exports.buildQueryString = buildQueryString; diff --git a/node_modules/@smithy/querystring-builder/dist-es/index.js b/node_modules/@smithy/querystring-builder/dist-es/index.js deleted file mode 100644 index fbc76840..00000000 --- a/node_modules/@smithy/querystring-builder/dist-es/index.js +++ /dev/null @@ -1,21 +0,0 @@ -import { escapeUri } from "@smithy/util-uri-escape"; -export function buildQueryString(query) { - const parts = []; - for (let key of Object.keys(query).sort()) { - const value = query[key]; - key = escapeUri(key); - if (Array.isArray(value)) { - for (let i = 0, iLen = value.length; i < iLen; i++) { - parts.push(`${key}=${escapeUri(value[i])}`); - } - } - else { - let qsEntry = key; - if (value || typeof value === "string") { - qsEntry += `=${escapeUri(value)}`; - } - parts.push(qsEntry); - } - } - return parts.join("&"); -} diff --git a/node_modules/@smithy/querystring-builder/dist-types/index.d.ts b/node_modules/@smithy/querystring-builder/dist-types/index.d.ts deleted file mode 100644 index 538b1b0e..00000000 --- a/node_modules/@smithy/querystring-builder/dist-types/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { QueryParameterBag } from "@smithy/types"; -/** - * @internal - */ -export declare function buildQueryString(query: QueryParameterBag): string; diff --git a/node_modules/@smithy/querystring-builder/dist-types/ts3.4/index.d.ts b/node_modules/@smithy/querystring-builder/dist-types/ts3.4/index.d.ts deleted file mode 100644 index 1f866f3e..00000000 --- a/node_modules/@smithy/querystring-builder/dist-types/ts3.4/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { QueryParameterBag } from "@smithy/types"; -/** - * @internal - */ -export declare function buildQueryString(query: QueryParameterBag): string; diff --git a/node_modules/@smithy/querystring-builder/package.json b/node_modules/@smithy/querystring-builder/package.json deleted file mode 100644 index 2621f3cd..00000000 --- a/node_modules/@smithy/querystring-builder/package.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "name": "@smithy/querystring-builder", - "version": "2.0.14", - "scripts": { - "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", - "build:cjs": "yarn g:tsc -p tsconfig.cjs.json", - "build:es": "yarn g:tsc -p tsconfig.es.json", - "build:types": "yarn g:tsc -p tsconfig.types.json", - "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", - "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz", - "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"", - "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"", - "test": "exit 0" - }, - "main": "./dist-cjs/index.js", - "module": "./dist-es/index.js", - "types": "./dist-types/index.d.ts", - "author": { - "name": "AWS SDK for JavaScript Team", - "url": "https://aws.amazon.com/javascript/" - }, - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^2.6.0", - "@smithy/util-uri-escape": "^2.0.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "typesVersions": { - "<4.0": { - "dist-types/*": [ - "dist-types/ts3.4/*" - ] - } - }, - "files": [ - "dist-*/**" - ], - "homepage": "https://github.com/awslabs/smithy-typescript/tree/main/packages/querystring-builder", - "repository": { - "type": "git", - "url": "https://github.com/awslabs/smithy-typescript.git", - "directory": "packages/querystring-builder" - }, - "devDependencies": { - "@tsconfig/recommended": "1.0.1", - "concurrently": "7.0.0", - "downlevel-dts": "0.10.1", - "rimraf": "3.0.2", - "typedoc": "0.23.23" - }, - "typedoc": { - "entryPoint": "src/index.ts" - }, - "publishConfig": { - "directory": ".release/package" - } -} \ No newline at end of file diff --git a/node_modules/@smithy/querystring-parser/LICENSE b/node_modules/@smithy/querystring-parser/LICENSE deleted file mode 100644 index dd65ae06..00000000 --- a/node_modules/@smithy/querystring-parser/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/node_modules/@smithy/querystring-parser/README.md b/node_modules/@smithy/querystring-parser/README.md deleted file mode 100644 index 02dcf51d..00000000 --- a/node_modules/@smithy/querystring-parser/README.md +++ /dev/null @@ -1,10 +0,0 @@ -# @smithy/querystring-parser - -[![NPM version](https://img.shields.io/npm/v/@smithy/querystring-parser/latest.svg)](https://www.npmjs.com/package/@smithy/querystring-parser) -[![NPM downloads](https://img.shields.io/npm/dm/@smithy/querystring-parser.svg)](https://www.npmjs.com/package/@smithy/querystring-parser) - -> An internal package - -## Usage - -You probably shouldn't, at least directly. diff --git a/node_modules/@smithy/querystring-parser/dist-cjs/index.js b/node_modules/@smithy/querystring-parser/dist-cjs/index.js deleted file mode 100644 index 516d23b7..00000000 --- a/node_modules/@smithy/querystring-parser/dist-cjs/index.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.parseQueryString = void 0; -function parseQueryString(querystring) { - const query = {}; - querystring = querystring.replace(/^\?/, ""); - if (querystring) { - for (const pair of querystring.split("&")) { - let [key, value = null] = pair.split("="); - key = decodeURIComponent(key); - if (value) { - value = decodeURIComponent(value); - } - if (!(key in query)) { - query[key] = value; - } - else if (Array.isArray(query[key])) { - query[key].push(value); - } - else { - query[key] = [query[key], value]; - } - } - } - return query; -} -exports.parseQueryString = parseQueryString; diff --git a/node_modules/@smithy/querystring-parser/dist-es/index.js b/node_modules/@smithy/querystring-parser/dist-es/index.js deleted file mode 100644 index bd7bf004..00000000 --- a/node_modules/@smithy/querystring-parser/dist-es/index.js +++ /dev/null @@ -1,23 +0,0 @@ -export function parseQueryString(querystring) { - const query = {}; - querystring = querystring.replace(/^\?/, ""); - if (querystring) { - for (const pair of querystring.split("&")) { - let [key, value = null] = pair.split("="); - key = decodeURIComponent(key); - if (value) { - value = decodeURIComponent(value); - } - if (!(key in query)) { - query[key] = value; - } - else if (Array.isArray(query[key])) { - query[key].push(value); - } - else { - query[key] = [query[key], value]; - } - } - } - return query; -} diff --git a/node_modules/@smithy/querystring-parser/dist-types/index.d.ts b/node_modules/@smithy/querystring-parser/dist-types/index.d.ts deleted file mode 100644 index fdc1ba59..00000000 --- a/node_modules/@smithy/querystring-parser/dist-types/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { QueryParameterBag } from "@smithy/types"; -/** - * @internal - */ -export declare function parseQueryString(querystring: string): QueryParameterBag; diff --git a/node_modules/@smithy/querystring-parser/dist-types/ts3.4/index.d.ts b/node_modules/@smithy/querystring-parser/dist-types/ts3.4/index.d.ts deleted file mode 100644 index 8bb747dc..00000000 --- a/node_modules/@smithy/querystring-parser/dist-types/ts3.4/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { QueryParameterBag } from "@smithy/types"; -/** - * @internal - */ -export declare function parseQueryString(querystring: string): QueryParameterBag; diff --git a/node_modules/@smithy/querystring-parser/package.json b/node_modules/@smithy/querystring-parser/package.json deleted file mode 100644 index d34b6cb6..00000000 --- a/node_modules/@smithy/querystring-parser/package.json +++ /dev/null @@ -1,60 +0,0 @@ -{ - "name": "@smithy/querystring-parser", - "version": "2.0.14", - "scripts": { - "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", - "build:cjs": "yarn g:tsc -p tsconfig.cjs.json", - "build:es": "yarn g:tsc -p tsconfig.es.json", - "build:types": "yarn g:tsc -p tsconfig.types.json", - "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", - "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz", - "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"", - "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"", - "test": "yarn g:jest" - }, - "main": "./dist-cjs/index.js", - "module": "./dist-es/index.js", - "types": "./dist-types/index.d.ts", - "author": { - "name": "AWS SDK for JavaScript Team", - "url": "https://aws.amazon.com/javascript/" - }, - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^2.6.0", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "typesVersions": { - "<4.0": { - "dist-types/*": [ - "dist-types/ts3.4/*" - ] - } - }, - "files": [ - "dist-*/**" - ], - "homepage": "https://github.com/awslabs/smithy-typescript/tree/main/packages/querystring-parser", - "repository": { - "type": "git", - "url": "https://github.com/awslabs/smithy-typescript.git", - "directory": "packages/querystring-parser" - }, - "devDependencies": { - "@tsconfig/recommended": "1.0.1", - "concurrently": "7.0.0", - "downlevel-dts": "0.10.1", - "rimraf": "3.0.2", - "typedoc": "0.23.23" - }, - "typedoc": { - "entryPoint": "src/index.ts" - }, - "publishConfig": { - "directory": ".release/package" - } -} \ No newline at end of file diff --git a/node_modules/@smithy/service-error-classification/LICENSE b/node_modules/@smithy/service-error-classification/LICENSE deleted file mode 100644 index dd65ae06..00000000 --- a/node_modules/@smithy/service-error-classification/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/node_modules/@smithy/service-error-classification/README.md b/node_modules/@smithy/service-error-classification/README.md deleted file mode 100644 index 902dd432..00000000 --- a/node_modules/@smithy/service-error-classification/README.md +++ /dev/null @@ -1,4 +0,0 @@ -# @smithy/service-error-classification - -[![NPM version](https://img.shields.io/npm/v/@smithy/service-error-classification/latest.svg)](https://www.npmjs.com/package/@smithy/service-error-classification) -[![NPM downloads](https://img.shields.io/npm/dm/@smithy/service-error-classification.svg)](https://www.npmjs.com/package/@smithy/service-error-classification) diff --git a/node_modules/@smithy/service-error-classification/dist-cjs/constants.js b/node_modules/@smithy/service-error-classification/dist-cjs/constants.js deleted file mode 100644 index e484eb40..00000000 --- a/node_modules/@smithy/service-error-classification/dist-cjs/constants.js +++ /dev/null @@ -1,30 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.NODEJS_TIMEOUT_ERROR_CODES = exports.TRANSIENT_ERROR_STATUS_CODES = exports.TRANSIENT_ERROR_CODES = exports.THROTTLING_ERROR_CODES = exports.CLOCK_SKEW_ERROR_CODES = void 0; -exports.CLOCK_SKEW_ERROR_CODES = [ - "AuthFailure", - "InvalidSignatureException", - "RequestExpired", - "RequestInTheFuture", - "RequestTimeTooSkewed", - "SignatureDoesNotMatch", -]; -exports.THROTTLING_ERROR_CODES = [ - "BandwidthLimitExceeded", - "EC2ThrottledException", - "LimitExceededException", - "PriorRequestNotComplete", - "ProvisionedThroughputExceededException", - "RequestLimitExceeded", - "RequestThrottled", - "RequestThrottledException", - "SlowDown", - "ThrottledException", - "Throttling", - "ThrottlingException", - "TooManyRequestsException", - "TransactionInProgressException", -]; -exports.TRANSIENT_ERROR_CODES = ["TimeoutError", "RequestTimeout", "RequestTimeoutException"]; -exports.TRANSIENT_ERROR_STATUS_CODES = [500, 502, 503, 504]; -exports.NODEJS_TIMEOUT_ERROR_CODES = ["ECONNRESET", "ECONNREFUSED", "EPIPE", "ETIMEDOUT"]; diff --git a/node_modules/@smithy/service-error-classification/dist-cjs/index.js b/node_modules/@smithy/service-error-classification/dist-cjs/index.js deleted file mode 100644 index 95631bb8..00000000 --- a/node_modules/@smithy/service-error-classification/dist-cjs/index.js +++ /dev/null @@ -1,34 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isServerError = exports.isTransientError = exports.isThrottlingError = exports.isClockSkewError = exports.isRetryableByTrait = void 0; -const constants_1 = require("./constants"); -const isRetryableByTrait = (error) => error.$retryable !== undefined; -exports.isRetryableByTrait = isRetryableByTrait; -const isClockSkewError = (error) => constants_1.CLOCK_SKEW_ERROR_CODES.includes(error.name); -exports.isClockSkewError = isClockSkewError; -const isThrottlingError = (error) => { - var _a, _b; - return ((_a = error.$metadata) === null || _a === void 0 ? void 0 : _a.httpStatusCode) === 429 || - constants_1.THROTTLING_ERROR_CODES.includes(error.name) || - ((_b = error.$retryable) === null || _b === void 0 ? void 0 : _b.throttling) == true; -}; -exports.isThrottlingError = isThrottlingError; -const isTransientError = (error) => { - var _a; - return constants_1.TRANSIENT_ERROR_CODES.includes(error.name) || - constants_1.NODEJS_TIMEOUT_ERROR_CODES.includes((error === null || error === void 0 ? void 0 : error.code) || "") || - constants_1.TRANSIENT_ERROR_STATUS_CODES.includes(((_a = error.$metadata) === null || _a === void 0 ? void 0 : _a.httpStatusCode) || 0); -}; -exports.isTransientError = isTransientError; -const isServerError = (error) => { - var _a; - if (((_a = error.$metadata) === null || _a === void 0 ? void 0 : _a.httpStatusCode) !== undefined) { - const statusCode = error.$metadata.httpStatusCode; - if (500 <= statusCode && statusCode <= 599 && !(0, exports.isTransientError)(error)) { - return true; - } - return false; - } - return false; -}; -exports.isServerError = isServerError; diff --git a/node_modules/@smithy/service-error-classification/dist-es/constants.js b/node_modules/@smithy/service-error-classification/dist-es/constants.js deleted file mode 100644 index 267443b4..00000000 --- a/node_modules/@smithy/service-error-classification/dist-es/constants.js +++ /dev/null @@ -1,27 +0,0 @@ -export const CLOCK_SKEW_ERROR_CODES = [ - "AuthFailure", - "InvalidSignatureException", - "RequestExpired", - "RequestInTheFuture", - "RequestTimeTooSkewed", - "SignatureDoesNotMatch", -]; -export const THROTTLING_ERROR_CODES = [ - "BandwidthLimitExceeded", - "EC2ThrottledException", - "LimitExceededException", - "PriorRequestNotComplete", - "ProvisionedThroughputExceededException", - "RequestLimitExceeded", - "RequestThrottled", - "RequestThrottledException", - "SlowDown", - "ThrottledException", - "Throttling", - "ThrottlingException", - "TooManyRequestsException", - "TransactionInProgressException", -]; -export const TRANSIENT_ERROR_CODES = ["TimeoutError", "RequestTimeout", "RequestTimeoutException"]; -export const TRANSIENT_ERROR_STATUS_CODES = [500, 502, 503, 504]; -export const NODEJS_TIMEOUT_ERROR_CODES = ["ECONNRESET", "ECONNREFUSED", "EPIPE", "ETIMEDOUT"]; diff --git a/node_modules/@smithy/service-error-classification/dist-es/index.js b/node_modules/@smithy/service-error-classification/dist-es/index.js deleted file mode 100644 index 0b8de2d1..00000000 --- a/node_modules/@smithy/service-error-classification/dist-es/index.js +++ /dev/null @@ -1,19 +0,0 @@ -import { CLOCK_SKEW_ERROR_CODES, NODEJS_TIMEOUT_ERROR_CODES, THROTTLING_ERROR_CODES, TRANSIENT_ERROR_CODES, TRANSIENT_ERROR_STATUS_CODES, } from "./constants"; -export const isRetryableByTrait = (error) => error.$retryable !== undefined; -export const isClockSkewError = (error) => CLOCK_SKEW_ERROR_CODES.includes(error.name); -export const isThrottlingError = (error) => error.$metadata?.httpStatusCode === 429 || - THROTTLING_ERROR_CODES.includes(error.name) || - error.$retryable?.throttling == true; -export const isTransientError = (error) => TRANSIENT_ERROR_CODES.includes(error.name) || - NODEJS_TIMEOUT_ERROR_CODES.includes(error?.code || "") || - TRANSIENT_ERROR_STATUS_CODES.includes(error.$metadata?.httpStatusCode || 0); -export const isServerError = (error) => { - if (error.$metadata?.httpStatusCode !== undefined) { - const statusCode = error.$metadata.httpStatusCode; - if (500 <= statusCode && statusCode <= 599 && !isTransientError(error)) { - return true; - } - return false; - } - return false; -}; diff --git a/node_modules/@smithy/service-error-classification/dist-types/constants.d.ts b/node_modules/@smithy/service-error-classification/dist-types/constants.d.ts deleted file mode 100644 index f07663b1..00000000 --- a/node_modules/@smithy/service-error-classification/dist-types/constants.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * Errors encountered when the client clock and server clock cannot agree on the - * current time. - * - * These errors are retryable, assuming the SDK has enabled clock skew - * correction. - */ -export declare const CLOCK_SKEW_ERROR_CODES: string[]; -/** - * Errors that indicate the SDK is being throttled. - * - * These errors are always retryable. - */ -export declare const THROTTLING_ERROR_CODES: string[]; -/** - * Error codes that indicate transient issues - */ -export declare const TRANSIENT_ERROR_CODES: string[]; -/** - * Error codes that indicate transient issues - */ -export declare const TRANSIENT_ERROR_STATUS_CODES: number[]; -/** - * Node.js system error codes that indicate timeout. - */ -export declare const NODEJS_TIMEOUT_ERROR_CODES: string[]; diff --git a/node_modules/@smithy/service-error-classification/dist-types/index.d.ts b/node_modules/@smithy/service-error-classification/dist-types/index.d.ts deleted file mode 100644 index 9d258c77..00000000 --- a/node_modules/@smithy/service-error-classification/dist-types/index.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { SdkError } from "@smithy/types"; -export declare const isRetryableByTrait: (error: SdkError) => boolean; -export declare const isClockSkewError: (error: SdkError) => boolean; -export declare const isThrottlingError: (error: SdkError) => boolean; -/** - * Though NODEJS_TIMEOUT_ERROR_CODES are platform specific, they are - * included here because there is an error scenario with unknown root - * cause where the NodeHttpHandler does not decorate the Error with - * the name "TimeoutError" to be checked by the TRANSIENT_ERROR_CODES condition. - */ -export declare const isTransientError: (error: SdkError) => boolean; -export declare const isServerError: (error: SdkError) => boolean; diff --git a/node_modules/@smithy/service-error-classification/dist-types/ts3.4/constants.d.ts b/node_modules/@smithy/service-error-classification/dist-types/ts3.4/constants.d.ts deleted file mode 100644 index 74c4858a..00000000 --- a/node_modules/@smithy/service-error-classification/dist-types/ts3.4/constants.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -/** - * Errors encountered when the client clock and server clock cannot agree on the - * current time. - * - * These errors are retryable, assuming the SDK has enabled clock skew - * correction. - */ -export declare const CLOCK_SKEW_ERROR_CODES: string[]; -/** - * Errors that indicate the SDK is being throttled. - * - * These errors are always retryable. - */ -export declare const THROTTLING_ERROR_CODES: string[]; -/** - * Error codes that indicate transient issues - */ -export declare const TRANSIENT_ERROR_CODES: string[]; -/** - * Error codes that indicate transient issues - */ -export declare const TRANSIENT_ERROR_STATUS_CODES: number[]; -/** - * Node.js system error codes that indicate timeout. - */ -export declare const NODEJS_TIMEOUT_ERROR_CODES: string[]; diff --git a/node_modules/@smithy/service-error-classification/dist-types/ts3.4/index.d.ts b/node_modules/@smithy/service-error-classification/dist-types/ts3.4/index.d.ts deleted file mode 100644 index 44a56d84..00000000 --- a/node_modules/@smithy/service-error-classification/dist-types/ts3.4/index.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { SdkError } from "@smithy/types"; -export declare const isRetryableByTrait: (error: SdkError) => boolean; -export declare const isClockSkewError: (error: SdkError) => boolean; -export declare const isThrottlingError: (error: SdkError) => boolean; -/** - * Though NODEJS_TIMEOUT_ERROR_CODES are platform specific, they are - * included here because there is an error scenario with unknown root - * cause where the NodeHttpHandler does not decorate the Error with - * the name "TimeoutError" to be checked by the TRANSIENT_ERROR_CODES condition. - */ -export declare const isTransientError: (error: SdkError) => boolean; -export declare const isServerError: (error: SdkError) => boolean; diff --git a/node_modules/@smithy/service-error-classification/package.json b/node_modules/@smithy/service-error-classification/package.json deleted file mode 100644 index ad5353bc..00000000 --- a/node_modules/@smithy/service-error-classification/package.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "name": "@smithy/service-error-classification", - "version": "2.0.7", - "scripts": { - "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", - "build:cjs": "yarn g:tsc -p tsconfig.cjs.json", - "build:es": "yarn g:tsc -p tsconfig.es.json", - "build:types": "yarn g:tsc -p tsconfig.types.json", - "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", - "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz", - "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"", - "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"", - "test": "yarn g:jest" - }, - "main": "./dist-cjs/index.js", - "module": "./dist-es/index.js", - "types": "./dist-types/index.d.ts", - "author": { - "name": "AWS SDK for JavaScript Team", - "url": "https://aws.amazon.com/javascript/" - }, - "license": "Apache-2.0", - "devDependencies": { - "@tsconfig/recommended": "1.0.1", - "concurrently": "7.0.0", - "downlevel-dts": "0.10.1", - "rimraf": "3.0.2", - "typedoc": "0.23.23" - }, - "engines": { - "node": ">=14.0.0" - }, - "typesVersions": { - "<4.0": { - "dist-types/*": [ - "dist-types/ts3.4/*" - ] - } - }, - "files": [ - "dist-*/**" - ], - "homepage": "https://github.com/awslabs/smithy-typescript/tree/main/packages/service-error-classification", - "repository": { - "type": "git", - "url": "https://github.com/awslabs/smithy-typescript.git", - "directory": "packages/service-error-classification" - }, - "typedoc": { - "entryPoint": "src/index.ts" - }, - "publishConfig": { - "directory": ".release/package" - }, - "dependencies": { - "@smithy/types": "^2.6.0" - } -} \ No newline at end of file diff --git a/node_modules/@smithy/shared-ini-file-loader/LICENSE b/node_modules/@smithy/shared-ini-file-loader/LICENSE deleted file mode 100644 index 7b6491ba..00000000 --- a/node_modules/@smithy/shared-ini-file-loader/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. \ No newline at end of file diff --git a/node_modules/@smithy/shared-ini-file-loader/README.md b/node_modules/@smithy/shared-ini-file-loader/README.md deleted file mode 100644 index 45a4b2e6..00000000 --- a/node_modules/@smithy/shared-ini-file-loader/README.md +++ /dev/null @@ -1,105 +0,0 @@ -# @smithy/shared-ini-file-loader - -[![NPM version](https://img.shields.io/npm/v/@smithy/shared-ini-file-loader/latest.svg)](https://www.npmjs.com/package/@smithy/shared-ini-file-loader) -[![NPM downloads](https://img.shields.io/npm/dm/@smithy/shared-ini-file-loader.svg)](https://www.npmjs.com/package/@smithy/shared-ini-file-loader) - -## AWS Shared Configuration File Loader - -This module provides a function that reads from AWS SDK configuration files and -returns a promise that will resolve with a hash of the parsed contents of the -AWS credentials file and of the AWS config file. Given the [sample -files](#sample-files) below, the promise returned by `loadSharedConfigFiles` -would resolve with: - -```javascript -{ - configFile: { - 'default': { - aws_access_key_id: 'foo', - aws_secret_access_key: 'bar', - }, - dev: { - aws_access_key_id: 'foo1', - aws_secret_access_key: 'bar1', - }, - prod: { - aws_access_key_id: 'foo2', - aws_secret_access_key: 'bar2', - }, - 'testing host': { - aws_access_key_id: 'foo4', - aws_secret_access_key: 'bar4', - } - }, - credentialsFile: { - 'default': { - aws_access_key_id: 'foo', - aws_secret_access_key: 'bar', - }, - dev: { - aws_access_key_id: 'foo1', - aws_secret_access_key: 'bar1', - }, - prod: { - aws_access_key_id: 'foo2', - aws_secret_access_key: 'bar2', - } - }, -} -``` - -If a file is not found, its key (`configFile` or `credentialsFile`) will instead -have a value of an empty object. - -## Supported configuration - -You may customize how the files are loaded by providing an options hash to the -`loadSharedConfigFiles` function. The following options are supported: - -- `filepath` - The path to the shared credentials file. If not specified, the - provider will use the value in the `AWS_SHARED_CREDENTIALS_FILE` environment - variable or a default of `~/.aws/credentials`. -- `configFilepath` - The path to the shared config file. If not specified, the - provider will use the value in the `AWS_CONFIG_FILE` environment variable or a - default of `~/.aws/config`. -- `ignoreCache` - The provider will normally cache the contents of the files it - loads. This option will force the provider to reload the files from disk. - Defaults to `false`. - -## Sample files - -### `~/.aws/credentials` - -```ini -[default] -aws_access_key_id=foo -aws_secret_access_key=bar - -[dev] -aws_access_key_id=foo2 -aws_secret_access_key=bar2 - -[prod] -aws_access_key_id=foo3 -aws_secret_access_key=bar3 -``` - -### `~/.aws/config` - -```ini -[default] -aws_access_key_id=foo -aws_secret_access_key=bar - -[profile dev] -aws_access_key_id=foo2 -aws_secret_access_key=bar2 - -[profile prod] -aws_access_key_id=foo3 -aws_secret_access_key=bar3 - -[profile "testing host"] -aws_access_key_id=foo4 -aws_secret_access_key=bar4 -``` diff --git a/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getConfigData.js b/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getConfigData.js deleted file mode 100644 index db3b2d26..00000000 --- a/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getConfigData.js +++ /dev/null @@ -1,21 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getConfigData = void 0; -const types_1 = require("@smithy/types"); -const loadSharedConfigFiles_1 = require("./loadSharedConfigFiles"); -const getConfigData = (data) => Object.entries(data) - .filter(([key]) => { - const sections = key.split(loadSharedConfigFiles_1.CONFIG_PREFIX_SEPARATOR); - if (sections.length === 2 && Object.values(types_1.IniSectionType).includes(sections[0])) { - return true; - } - return false; -}) - .reduce((acc, [key, value]) => { - const updatedKey = key.startsWith(types_1.IniSectionType.PROFILE) ? key.split(loadSharedConfigFiles_1.CONFIG_PREFIX_SEPARATOR)[1] : key; - acc[updatedKey] = value; - return acc; -}, { - ...(data.default && { default: data.default }), -}); -exports.getConfigData = getConfigData; diff --git a/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getConfigFilepath.js b/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getConfigFilepath.js deleted file mode 100644 index 576670b3..00000000 --- a/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getConfigFilepath.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getConfigFilepath = exports.ENV_CONFIG_PATH = void 0; -const path_1 = require("path"); -const getHomeDir_1 = require("./getHomeDir"); -exports.ENV_CONFIG_PATH = "AWS_CONFIG_FILE"; -const getConfigFilepath = () => process.env[exports.ENV_CONFIG_PATH] || (0, path_1.join)((0, getHomeDir_1.getHomeDir)(), ".aws", "config"); -exports.getConfigFilepath = getConfigFilepath; diff --git a/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getCredentialsFilepath.js b/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getCredentialsFilepath.js deleted file mode 100644 index de9650b1..00000000 --- a/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getCredentialsFilepath.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getCredentialsFilepath = exports.ENV_CREDENTIALS_PATH = void 0; -const path_1 = require("path"); -const getHomeDir_1 = require("./getHomeDir"); -exports.ENV_CREDENTIALS_PATH = "AWS_SHARED_CREDENTIALS_FILE"; -const getCredentialsFilepath = () => process.env[exports.ENV_CREDENTIALS_PATH] || (0, path_1.join)((0, getHomeDir_1.getHomeDir)(), ".aws", "credentials"); -exports.getCredentialsFilepath = getCredentialsFilepath; diff --git a/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getHomeDir.js b/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getHomeDir.js deleted file mode 100644 index 2a4f7375..00000000 --- a/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getHomeDir.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getHomeDir = void 0; -const os_1 = require("os"); -const path_1 = require("path"); -const homeDirCache = {}; -const getHomeDirCacheKey = () => { - if (process && process.geteuid) { - return `${process.geteuid()}`; - } - return "DEFAULT"; -}; -const getHomeDir = () => { - const { HOME, USERPROFILE, HOMEPATH, HOMEDRIVE = `C:${path_1.sep}` } = process.env; - if (HOME) - return HOME; - if (USERPROFILE) - return USERPROFILE; - if (HOMEPATH) - return `${HOMEDRIVE}${HOMEPATH}`; - const homeDirCacheKey = getHomeDirCacheKey(); - if (!homeDirCache[homeDirCacheKey]) - homeDirCache[homeDirCacheKey] = (0, os_1.homedir)(); - return homeDirCache[homeDirCacheKey]; -}; -exports.getHomeDir = getHomeDir; diff --git a/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getProfileName.js b/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getProfileName.js deleted file mode 100644 index a470ba06..00000000 --- a/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getProfileName.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getProfileName = exports.DEFAULT_PROFILE = exports.ENV_PROFILE = void 0; -exports.ENV_PROFILE = "AWS_PROFILE"; -exports.DEFAULT_PROFILE = "default"; -const getProfileName = (init) => init.profile || process.env[exports.ENV_PROFILE] || exports.DEFAULT_PROFILE; -exports.getProfileName = getProfileName; diff --git a/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFilepath.js b/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFilepath.js deleted file mode 100644 index 30d97b3d..00000000 --- a/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFilepath.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getSSOTokenFilepath = void 0; -const crypto_1 = require("crypto"); -const path_1 = require("path"); -const getHomeDir_1 = require("./getHomeDir"); -const getSSOTokenFilepath = (id) => { - const hasher = (0, crypto_1.createHash)("sha1"); - const cacheName = hasher.update(id).digest("hex"); - return (0, path_1.join)((0, getHomeDir_1.getHomeDir)(), ".aws", "sso", "cache", `${cacheName}.json`); -}; -exports.getSSOTokenFilepath = getSSOTokenFilepath; diff --git a/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFromFile.js b/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFromFile.js deleted file mode 100644 index 688accb7..00000000 --- a/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSSOTokenFromFile.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getSSOTokenFromFile = void 0; -const fs_1 = require("fs"); -const getSSOTokenFilepath_1 = require("./getSSOTokenFilepath"); -const { readFile } = fs_1.promises; -const getSSOTokenFromFile = async (id) => { - const ssoTokenFilepath = (0, getSSOTokenFilepath_1.getSSOTokenFilepath)(id); - const ssoTokenText = await readFile(ssoTokenFilepath, "utf8"); - return JSON.parse(ssoTokenText); -}; -exports.getSSOTokenFromFile = getSSOTokenFromFile; diff --git a/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSsoSessionData.js b/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSsoSessionData.js deleted file mode 100644 index 018a8343..00000000 --- a/node_modules/@smithy/shared-ini-file-loader/dist-cjs/getSsoSessionData.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getSsoSessionData = void 0; -const types_1 = require("@smithy/types"); -const loadSharedConfigFiles_1 = require("./loadSharedConfigFiles"); -const getSsoSessionData = (data) => Object.entries(data) - .filter(([key]) => key.startsWith(types_1.IniSectionType.SSO_SESSION + loadSharedConfigFiles_1.CONFIG_PREFIX_SEPARATOR)) - .reduce((acc, [key, value]) => ({ ...acc, [key.split(loadSharedConfigFiles_1.CONFIG_PREFIX_SEPARATOR)[1]]: value }), {}); -exports.getSsoSessionData = getSsoSessionData; diff --git a/node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js b/node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js deleted file mode 100644 index 952c6a66..00000000 --- a/node_modules/@smithy/shared-ini-file-loader/dist-cjs/index.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./getHomeDir"), exports); -tslib_1.__exportStar(require("./getProfileName"), exports); -tslib_1.__exportStar(require("./getSSOTokenFilepath"), exports); -tslib_1.__exportStar(require("./getSSOTokenFromFile"), exports); -tslib_1.__exportStar(require("./loadSharedConfigFiles"), exports); -tslib_1.__exportStar(require("./loadSsoSessionData"), exports); -tslib_1.__exportStar(require("./parseKnownFiles"), exports); -tslib_1.__exportStar(require("./types"), exports); diff --git a/node_modules/@smithy/shared-ini-file-loader/dist-cjs/loadSharedConfigFiles.js b/node_modules/@smithy/shared-ini-file-loader/dist-cjs/loadSharedConfigFiles.js deleted file mode 100644 index 3948d447..00000000 --- a/node_modules/@smithy/shared-ini-file-loader/dist-cjs/loadSharedConfigFiles.js +++ /dev/null @@ -1,31 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.loadSharedConfigFiles = exports.CONFIG_PREFIX_SEPARATOR = void 0; -const getConfigData_1 = require("./getConfigData"); -const getConfigFilepath_1 = require("./getConfigFilepath"); -const getCredentialsFilepath_1 = require("./getCredentialsFilepath"); -const parseIni_1 = require("./parseIni"); -const slurpFile_1 = require("./slurpFile"); -const swallowError = () => ({}); -exports.CONFIG_PREFIX_SEPARATOR = "."; -const loadSharedConfigFiles = async (init = {}) => { - const { filepath = (0, getCredentialsFilepath_1.getCredentialsFilepath)(), configFilepath = (0, getConfigFilepath_1.getConfigFilepath)() } = init; - const parsedFiles = await Promise.all([ - (0, slurpFile_1.slurpFile)(configFilepath, { - ignoreCache: init.ignoreCache, - }) - .then(parseIni_1.parseIni) - .then(getConfigData_1.getConfigData) - .catch(swallowError), - (0, slurpFile_1.slurpFile)(filepath, { - ignoreCache: init.ignoreCache, - }) - .then(parseIni_1.parseIni) - .catch(swallowError), - ]); - return { - configFile: parsedFiles[0], - credentialsFile: parsedFiles[1], - }; -}; -exports.loadSharedConfigFiles = loadSharedConfigFiles; diff --git a/node_modules/@smithy/shared-ini-file-loader/dist-cjs/loadSsoSessionData.js b/node_modules/@smithy/shared-ini-file-loader/dist-cjs/loadSsoSessionData.js deleted file mode 100644 index e201088a..00000000 --- a/node_modules/@smithy/shared-ini-file-loader/dist-cjs/loadSsoSessionData.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.loadSsoSessionData = void 0; -const getConfigFilepath_1 = require("./getConfigFilepath"); -const getSsoSessionData_1 = require("./getSsoSessionData"); -const parseIni_1 = require("./parseIni"); -const slurpFile_1 = require("./slurpFile"); -const swallowError = () => ({}); -const loadSsoSessionData = async (init = {}) => { - var _a; - return (0, slurpFile_1.slurpFile)((_a = init.configFilepath) !== null && _a !== void 0 ? _a : (0, getConfigFilepath_1.getConfigFilepath)()) - .then(parseIni_1.parseIni) - .then(getSsoSessionData_1.getSsoSessionData) - .catch(swallowError); -}; -exports.loadSsoSessionData = loadSsoSessionData; diff --git a/node_modules/@smithy/shared-ini-file-loader/dist-cjs/mergeConfigFiles.js b/node_modules/@smithy/shared-ini-file-loader/dist-cjs/mergeConfigFiles.js deleted file mode 100644 index 26036d45..00000000 --- a/node_modules/@smithy/shared-ini-file-loader/dist-cjs/mergeConfigFiles.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.mergeConfigFiles = void 0; -const mergeConfigFiles = (...files) => { - const merged = {}; - for (const file of files) { - for (const [key, values] of Object.entries(file)) { - if (merged[key] !== undefined) { - Object.assign(merged[key], values); - } - else { - merged[key] = values; - } - } - } - return merged; -}; -exports.mergeConfigFiles = mergeConfigFiles; diff --git a/node_modules/@smithy/shared-ini-file-loader/dist-cjs/parseIni.js b/node_modules/@smithy/shared-ini-file-loader/dist-cjs/parseIni.js deleted file mode 100644 index e9bfe54e..00000000 --- a/node_modules/@smithy/shared-ini-file-loader/dist-cjs/parseIni.js +++ /dev/null @@ -1,56 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.parseIni = void 0; -const types_1 = require("@smithy/types"); -const loadSharedConfigFiles_1 = require("./loadSharedConfigFiles"); -const prefixKeyRegex = /^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/; -const profileNameBlockList = ["__proto__", "profile __proto__"]; -const parseIni = (iniData) => { - const map = {}; - let currentSection; - let currentSubSection; - for (const iniLine of iniData.split(/\r?\n/)) { - const trimmedLine = iniLine.split(/(^|\s)[;#]/)[0].trim(); - const isSection = trimmedLine[0] === "[" && trimmedLine[trimmedLine.length - 1] === "]"; - if (isSection) { - currentSection = undefined; - currentSubSection = undefined; - const sectionName = trimmedLine.substring(1, trimmedLine.length - 1); - const matches = prefixKeyRegex.exec(sectionName); - if (matches) { - const [, prefix, , name] = matches; - if (Object.values(types_1.IniSectionType).includes(prefix)) { - currentSection = [prefix, name].join(loadSharedConfigFiles_1.CONFIG_PREFIX_SEPARATOR); - } - } - else { - currentSection = sectionName; - } - if (profileNameBlockList.includes(sectionName)) { - throw new Error(`Found invalid profile name "${sectionName}"`); - } - } - else if (currentSection) { - const indexOfEqualsSign = trimmedLine.indexOf("="); - if (![0, -1].includes(indexOfEqualsSign)) { - const [name, value] = [ - trimmedLine.substring(0, indexOfEqualsSign).trim(), - trimmedLine.substring(indexOfEqualsSign + 1).trim(), - ]; - if (value === "") { - currentSubSection = name; - } - else { - if (currentSubSection && iniLine.trimStart() === iniLine) { - currentSubSection = undefined; - } - map[currentSection] = map[currentSection] || {}; - const key = currentSubSection ? [currentSubSection, name].join(loadSharedConfigFiles_1.CONFIG_PREFIX_SEPARATOR) : name; - map[currentSection][key] = value; - } - } - } - } - return map; -}; -exports.parseIni = parseIni; diff --git a/node_modules/@smithy/shared-ini-file-loader/dist-cjs/parseKnownFiles.js b/node_modules/@smithy/shared-ini-file-loader/dist-cjs/parseKnownFiles.js deleted file mode 100644 index c9f41ace..00000000 --- a/node_modules/@smithy/shared-ini-file-loader/dist-cjs/parseKnownFiles.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.parseKnownFiles = void 0; -const loadSharedConfigFiles_1 = require("./loadSharedConfigFiles"); -const mergeConfigFiles_1 = require("./mergeConfigFiles"); -const parseKnownFiles = async (init) => { - const parsedFiles = await (0, loadSharedConfigFiles_1.loadSharedConfigFiles)(init); - return (0, mergeConfigFiles_1.mergeConfigFiles)(parsedFiles.configFile, parsedFiles.credentialsFile); -}; -exports.parseKnownFiles = parseKnownFiles; diff --git a/node_modules/@smithy/shared-ini-file-loader/dist-cjs/slurpFile.js b/node_modules/@smithy/shared-ini-file-loader/dist-cjs/slurpFile.js deleted file mode 100644 index 82d7d655..00000000 --- a/node_modules/@smithy/shared-ini-file-loader/dist-cjs/slurpFile.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.slurpFile = void 0; -const fs_1 = require("fs"); -const { readFile } = fs_1.promises; -const filePromisesHash = {}; -const slurpFile = (path, options) => { - if (!filePromisesHash[path] || (options === null || options === void 0 ? void 0 : options.ignoreCache)) { - filePromisesHash[path] = readFile(path, "utf8"); - } - return filePromisesHash[path]; -}; -exports.slurpFile = slurpFile; diff --git a/node_modules/@smithy/shared-ini-file-loader/dist-cjs/types.js b/node_modules/@smithy/shared-ini-file-loader/dist-cjs/types.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@smithy/shared-ini-file-loader/dist-cjs/types.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigData.js b/node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigData.js deleted file mode 100644 index 7da92c6a..00000000 --- a/node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigData.js +++ /dev/null @@ -1,17 +0,0 @@ -import { IniSectionType } from "@smithy/types"; -import { CONFIG_PREFIX_SEPARATOR } from "./loadSharedConfigFiles"; -export const getConfigData = (data) => Object.entries(data) - .filter(([key]) => { - const sections = key.split(CONFIG_PREFIX_SEPARATOR); - if (sections.length === 2 && Object.values(IniSectionType).includes(sections[0])) { - return true; - } - return false; -}) - .reduce((acc, [key, value]) => { - const updatedKey = key.startsWith(IniSectionType.PROFILE) ? key.split(CONFIG_PREFIX_SEPARATOR)[1] : key; - acc[updatedKey] = value; - return acc; -}, { - ...(data.default && { default: data.default }), -}); diff --git a/node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigFilepath.js b/node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigFilepath.js deleted file mode 100644 index ca07c2dd..00000000 --- a/node_modules/@smithy/shared-ini-file-loader/dist-es/getConfigFilepath.js +++ /dev/null @@ -1,4 +0,0 @@ -import { join } from "path"; -import { getHomeDir } from "./getHomeDir"; -export const ENV_CONFIG_PATH = "AWS_CONFIG_FILE"; -export const getConfigFilepath = () => process.env[ENV_CONFIG_PATH] || join(getHomeDir(), ".aws", "config"); diff --git a/node_modules/@smithy/shared-ini-file-loader/dist-es/getCredentialsFilepath.js b/node_modules/@smithy/shared-ini-file-loader/dist-es/getCredentialsFilepath.js deleted file mode 100644 index 393c0ae5..00000000 --- a/node_modules/@smithy/shared-ini-file-loader/dist-es/getCredentialsFilepath.js +++ /dev/null @@ -1,4 +0,0 @@ -import { join } from "path"; -import { getHomeDir } from "./getHomeDir"; -export const ENV_CREDENTIALS_PATH = "AWS_SHARED_CREDENTIALS_FILE"; -export const getCredentialsFilepath = () => process.env[ENV_CREDENTIALS_PATH] || join(getHomeDir(), ".aws", "credentials"); diff --git a/node_modules/@smithy/shared-ini-file-loader/dist-es/getHomeDir.js b/node_modules/@smithy/shared-ini-file-loader/dist-es/getHomeDir.js deleted file mode 100644 index 58772af3..00000000 --- a/node_modules/@smithy/shared-ini-file-loader/dist-es/getHomeDir.js +++ /dev/null @@ -1,22 +0,0 @@ -import { homedir } from "os"; -import { sep } from "path"; -const homeDirCache = {}; -const getHomeDirCacheKey = () => { - if (process && process.geteuid) { - return `${process.geteuid()}`; - } - return "DEFAULT"; -}; -export const getHomeDir = () => { - const { HOME, USERPROFILE, HOMEPATH, HOMEDRIVE = `C:${sep}` } = process.env; - if (HOME) - return HOME; - if (USERPROFILE) - return USERPROFILE; - if (HOMEPATH) - return `${HOMEDRIVE}${HOMEPATH}`; - const homeDirCacheKey = getHomeDirCacheKey(); - if (!homeDirCache[homeDirCacheKey]) - homeDirCache[homeDirCacheKey] = homedir(); - return homeDirCache[homeDirCacheKey]; -}; diff --git a/node_modules/@smithy/shared-ini-file-loader/dist-es/getProfileName.js b/node_modules/@smithy/shared-ini-file-loader/dist-es/getProfileName.js deleted file mode 100644 index acc29f07..00000000 --- a/node_modules/@smithy/shared-ini-file-loader/dist-es/getProfileName.js +++ /dev/null @@ -1,3 +0,0 @@ -export const ENV_PROFILE = "AWS_PROFILE"; -export const DEFAULT_PROFILE = "default"; -export const getProfileName = (init) => init.profile || process.env[ENV_PROFILE] || DEFAULT_PROFILE; diff --git a/node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFilepath.js b/node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFilepath.js deleted file mode 100644 index a44b4ad7..00000000 --- a/node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFilepath.js +++ /dev/null @@ -1,8 +0,0 @@ -import { createHash } from "crypto"; -import { join } from "path"; -import { getHomeDir } from "./getHomeDir"; -export const getSSOTokenFilepath = (id) => { - const hasher = createHash("sha1"); - const cacheName = hasher.update(id).digest("hex"); - return join(getHomeDir(), ".aws", "sso", "cache", `${cacheName}.json`); -}; diff --git a/node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFromFile.js b/node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFromFile.js deleted file mode 100644 index 42659dbd..00000000 --- a/node_modules/@smithy/shared-ini-file-loader/dist-es/getSSOTokenFromFile.js +++ /dev/null @@ -1,8 +0,0 @@ -import { promises as fsPromises } from "fs"; -import { getSSOTokenFilepath } from "./getSSOTokenFilepath"; -const { readFile } = fsPromises; -export const getSSOTokenFromFile = async (id) => { - const ssoTokenFilepath = getSSOTokenFilepath(id); - const ssoTokenText = await readFile(ssoTokenFilepath, "utf8"); - return JSON.parse(ssoTokenText); -}; diff --git a/node_modules/@smithy/shared-ini-file-loader/dist-es/getSsoSessionData.js b/node_modules/@smithy/shared-ini-file-loader/dist-es/getSsoSessionData.js deleted file mode 100644 index dfab9299..00000000 --- a/node_modules/@smithy/shared-ini-file-loader/dist-es/getSsoSessionData.js +++ /dev/null @@ -1,5 +0,0 @@ -import { IniSectionType } from "@smithy/types"; -import { CONFIG_PREFIX_SEPARATOR } from "./loadSharedConfigFiles"; -export const getSsoSessionData = (data) => Object.entries(data) - .filter(([key]) => key.startsWith(IniSectionType.SSO_SESSION + CONFIG_PREFIX_SEPARATOR)) - .reduce((acc, [key, value]) => ({ ...acc, [key.split(CONFIG_PREFIX_SEPARATOR)[1]]: value }), {}); diff --git a/node_modules/@smithy/shared-ini-file-loader/dist-es/index.js b/node_modules/@smithy/shared-ini-file-loader/dist-es/index.js deleted file mode 100644 index 3e8b2c74..00000000 --- a/node_modules/@smithy/shared-ini-file-loader/dist-es/index.js +++ /dev/null @@ -1,8 +0,0 @@ -export * from "./getHomeDir"; -export * from "./getProfileName"; -export * from "./getSSOTokenFilepath"; -export * from "./getSSOTokenFromFile"; -export * from "./loadSharedConfigFiles"; -export * from "./loadSsoSessionData"; -export * from "./parseKnownFiles"; -export * from "./types"; diff --git a/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSharedConfigFiles.js b/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSharedConfigFiles.js deleted file mode 100644 index 5456ec40..00000000 --- a/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSharedConfigFiles.js +++ /dev/null @@ -1,27 +0,0 @@ -import { getConfigData } from "./getConfigData"; -import { getConfigFilepath } from "./getConfigFilepath"; -import { getCredentialsFilepath } from "./getCredentialsFilepath"; -import { parseIni } from "./parseIni"; -import { slurpFile } from "./slurpFile"; -const swallowError = () => ({}); -export const CONFIG_PREFIX_SEPARATOR = "."; -export const loadSharedConfigFiles = async (init = {}) => { - const { filepath = getCredentialsFilepath(), configFilepath = getConfigFilepath() } = init; - const parsedFiles = await Promise.all([ - slurpFile(configFilepath, { - ignoreCache: init.ignoreCache, - }) - .then(parseIni) - .then(getConfigData) - .catch(swallowError), - slurpFile(filepath, { - ignoreCache: init.ignoreCache, - }) - .then(parseIni) - .catch(swallowError), - ]); - return { - configFile: parsedFiles[0], - credentialsFile: parsedFiles[1], - }; -}; diff --git a/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSsoSessionData.js b/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSsoSessionData.js deleted file mode 100644 index 3bd730b1..00000000 --- a/node_modules/@smithy/shared-ini-file-loader/dist-es/loadSsoSessionData.js +++ /dev/null @@ -1,9 +0,0 @@ -import { getConfigFilepath } from "./getConfigFilepath"; -import { getSsoSessionData } from "./getSsoSessionData"; -import { parseIni } from "./parseIni"; -import { slurpFile } from "./slurpFile"; -const swallowError = () => ({}); -export const loadSsoSessionData = async (init = {}) => slurpFile(init.configFilepath ?? getConfigFilepath()) - .then(parseIni) - .then(getSsoSessionData) - .catch(swallowError); diff --git a/node_modules/@smithy/shared-ini-file-loader/dist-es/mergeConfigFiles.js b/node_modules/@smithy/shared-ini-file-loader/dist-es/mergeConfigFiles.js deleted file mode 100644 index 58576f76..00000000 --- a/node_modules/@smithy/shared-ini-file-loader/dist-es/mergeConfigFiles.js +++ /dev/null @@ -1,14 +0,0 @@ -export const mergeConfigFiles = (...files) => { - const merged = {}; - for (const file of files) { - for (const [key, values] of Object.entries(file)) { - if (merged[key] !== undefined) { - Object.assign(merged[key], values); - } - else { - merged[key] = values; - } - } - } - return merged; -}; diff --git a/node_modules/@smithy/shared-ini-file-loader/dist-es/parseIni.js b/node_modules/@smithy/shared-ini-file-loader/dist-es/parseIni.js deleted file mode 100644 index 7af4a6a8..00000000 --- a/node_modules/@smithy/shared-ini-file-loader/dist-es/parseIni.js +++ /dev/null @@ -1,52 +0,0 @@ -import { IniSectionType } from "@smithy/types"; -import { CONFIG_PREFIX_SEPARATOR } from "./loadSharedConfigFiles"; -const prefixKeyRegex = /^([\w-]+)\s(["'])?([\w-@\+\.%:/]+)\2$/; -const profileNameBlockList = ["__proto__", "profile __proto__"]; -export const parseIni = (iniData) => { - const map = {}; - let currentSection; - let currentSubSection; - for (const iniLine of iniData.split(/\r?\n/)) { - const trimmedLine = iniLine.split(/(^|\s)[;#]/)[0].trim(); - const isSection = trimmedLine[0] === "[" && trimmedLine[trimmedLine.length - 1] === "]"; - if (isSection) { - currentSection = undefined; - currentSubSection = undefined; - const sectionName = trimmedLine.substring(1, trimmedLine.length - 1); - const matches = prefixKeyRegex.exec(sectionName); - if (matches) { - const [, prefix, , name] = matches; - if (Object.values(IniSectionType).includes(prefix)) { - currentSection = [prefix, name].join(CONFIG_PREFIX_SEPARATOR); - } - } - else { - currentSection = sectionName; - } - if (profileNameBlockList.includes(sectionName)) { - throw new Error(`Found invalid profile name "${sectionName}"`); - } - } - else if (currentSection) { - const indexOfEqualsSign = trimmedLine.indexOf("="); - if (![0, -1].includes(indexOfEqualsSign)) { - const [name, value] = [ - trimmedLine.substring(0, indexOfEqualsSign).trim(), - trimmedLine.substring(indexOfEqualsSign + 1).trim(), - ]; - if (value === "") { - currentSubSection = name; - } - else { - if (currentSubSection && iniLine.trimStart() === iniLine) { - currentSubSection = undefined; - } - map[currentSection] = map[currentSection] || {}; - const key = currentSubSection ? [currentSubSection, name].join(CONFIG_PREFIX_SEPARATOR) : name; - map[currentSection][key] = value; - } - } - } - } - return map; -}; diff --git a/node_modules/@smithy/shared-ini-file-loader/dist-es/parseKnownFiles.js b/node_modules/@smithy/shared-ini-file-loader/dist-es/parseKnownFiles.js deleted file mode 100644 index 4920e280..00000000 --- a/node_modules/@smithy/shared-ini-file-loader/dist-es/parseKnownFiles.js +++ /dev/null @@ -1,6 +0,0 @@ -import { loadSharedConfigFiles } from "./loadSharedConfigFiles"; -import { mergeConfigFiles } from "./mergeConfigFiles"; -export const parseKnownFiles = async (init) => { - const parsedFiles = await loadSharedConfigFiles(init); - return mergeConfigFiles(parsedFiles.configFile, parsedFiles.credentialsFile); -}; diff --git a/node_modules/@smithy/shared-ini-file-loader/dist-es/slurpFile.js b/node_modules/@smithy/shared-ini-file-loader/dist-es/slurpFile.js deleted file mode 100644 index 7b360ccf..00000000 --- a/node_modules/@smithy/shared-ini-file-loader/dist-es/slurpFile.js +++ /dev/null @@ -1,9 +0,0 @@ -import { promises as fsPromises } from "fs"; -const { readFile } = fsPromises; -const filePromisesHash = {}; -export const slurpFile = (path, options) => { - if (!filePromisesHash[path] || options?.ignoreCache) { - filePromisesHash[path] = readFile(path, "utf8"); - } - return filePromisesHash[path]; -}; diff --git a/node_modules/@smithy/shared-ini-file-loader/dist-es/types.js b/node_modules/@smithy/shared-ini-file-loader/dist-es/types.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@smithy/shared-ini-file-loader/dist-es/types.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@smithy/shared-ini-file-loader/dist-types/getConfigData.d.ts b/node_modules/@smithy/shared-ini-file-loader/dist-types/getConfigData.d.ts deleted file mode 100644 index 42598312..00000000 --- a/node_modules/@smithy/shared-ini-file-loader/dist-types/getConfigData.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { ParsedIniData } from "@smithy/types"; -/** - * Returns the config data from parsed ini data. - * * Returns data for `default` - * * Returns profile name without prefix. - * * Returns non-profiles as is. - */ -export declare const getConfigData: (data: ParsedIniData) => ParsedIniData; diff --git a/node_modules/@smithy/shared-ini-file-loader/dist-types/getConfigFilepath.d.ts b/node_modules/@smithy/shared-ini-file-loader/dist-types/getConfigFilepath.d.ts deleted file mode 100644 index 1d123bed..00000000 --- a/node_modules/@smithy/shared-ini-file-loader/dist-types/getConfigFilepath.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare const ENV_CONFIG_PATH = "AWS_CONFIG_FILE"; -export declare const getConfigFilepath: () => string; diff --git a/node_modules/@smithy/shared-ini-file-loader/dist-types/getCredentialsFilepath.d.ts b/node_modules/@smithy/shared-ini-file-loader/dist-types/getCredentialsFilepath.d.ts deleted file mode 100644 index 26fda4a6..00000000 --- a/node_modules/@smithy/shared-ini-file-loader/dist-types/getCredentialsFilepath.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare const ENV_CREDENTIALS_PATH = "AWS_SHARED_CREDENTIALS_FILE"; -export declare const getCredentialsFilepath: () => string; diff --git a/node_modules/@smithy/shared-ini-file-loader/dist-types/getHomeDir.d.ts b/node_modules/@smithy/shared-ini-file-loader/dist-types/getHomeDir.d.ts deleted file mode 100644 index 5d15bf1a..00000000 --- a/node_modules/@smithy/shared-ini-file-loader/dist-types/getHomeDir.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -/** - * Get the HOME directory for the current runtime. - * - * @internal - */ -export declare const getHomeDir: () => string; diff --git a/node_modules/@smithy/shared-ini-file-loader/dist-types/getProfileName.d.ts b/node_modules/@smithy/shared-ini-file-loader/dist-types/getProfileName.d.ts deleted file mode 100644 index 0cccd920..00000000 --- a/node_modules/@smithy/shared-ini-file-loader/dist-types/getProfileName.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export declare const ENV_PROFILE = "AWS_PROFILE"; -export declare const DEFAULT_PROFILE = "default"; -export declare const getProfileName: (init: { - profile?: string; -}) => string; diff --git a/node_modules/@smithy/shared-ini-file-loader/dist-types/getSSOTokenFilepath.d.ts b/node_modules/@smithy/shared-ini-file-loader/dist-types/getSSOTokenFilepath.d.ts deleted file mode 100644 index 451303dd..00000000 --- a/node_modules/@smithy/shared-ini-file-loader/dist-types/getSSOTokenFilepath.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/** - * Returns the filepath of the file where SSO token is stored. - */ -export declare const getSSOTokenFilepath: (id: string) => string; diff --git a/node_modules/@smithy/shared-ini-file-loader/dist-types/getSSOTokenFromFile.d.ts b/node_modules/@smithy/shared-ini-file-loader/dist-types/getSSOTokenFromFile.d.ts deleted file mode 100644 index 52064923..00000000 --- a/node_modules/@smithy/shared-ini-file-loader/dist-types/getSSOTokenFromFile.d.ts +++ /dev/null @@ -1,44 +0,0 @@ -/** - * Cached SSO token retrieved from SSO login flow. - */ -export interface SSOToken { - /** - * A base64 encoded string returned by the sso-oidc service. - */ - accessToken: string; - /** - * The expiration time of the accessToken as an RFC 3339 formatted timestamp. - */ - expiresAt: string; - /** - * The token used to obtain an access token in the event that the accessToken is invalid or expired. - */ - refreshToken?: string; - /** - * The unique identifier string for each client. The client ID generated when performing the registration - * portion of the OIDC authorization flow. This is used to refresh the accessToken. - */ - clientId?: string; - /** - * A secret string generated when performing the registration portion of the OIDC authorization flow. - * This is used to refresh the accessToken. - */ - clientSecret?: string; - /** - * The expiration time of the client registration (clientId and clientSecret) as an RFC 3339 formatted timestamp. - */ - registrationExpiresAt?: string; - /** - * The configured sso_region for the profile that credentials are being resolved for. - */ - region?: string; - /** - * The configured sso_start_url for the profile that credentials are being resolved for. - */ - startUrl?: string; -} -/** - * @param id - can be either a start URL or the SSO session name. - * Returns the SSO token from the file system. - */ -export declare const getSSOTokenFromFile: (id: string) => Promise; diff --git a/node_modules/@smithy/shared-ini-file-loader/dist-types/getSsoSessionData.d.ts b/node_modules/@smithy/shared-ini-file-loader/dist-types/getSsoSessionData.d.ts deleted file mode 100644 index 9be020f5..00000000 --- a/node_modules/@smithy/shared-ini-file-loader/dist-types/getSsoSessionData.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { ParsedIniData } from "@smithy/types"; -/** - * Returns the sso-session data from parsed ini data by reading - * ssoSessionName after sso-session prefix including/excluding quotes - */ -export declare const getSsoSessionData: (data: ParsedIniData) => ParsedIniData; diff --git a/node_modules/@smithy/shared-ini-file-loader/dist-types/index.d.ts b/node_modules/@smithy/shared-ini-file-loader/dist-types/index.d.ts deleted file mode 100644 index 3e8b2c74..00000000 --- a/node_modules/@smithy/shared-ini-file-loader/dist-types/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -export * from "./getHomeDir"; -export * from "./getProfileName"; -export * from "./getSSOTokenFilepath"; -export * from "./getSSOTokenFromFile"; -export * from "./loadSharedConfigFiles"; -export * from "./loadSsoSessionData"; -export * from "./parseKnownFiles"; -export * from "./types"; diff --git a/node_modules/@smithy/shared-ini-file-loader/dist-types/loadSharedConfigFiles.d.ts b/node_modules/@smithy/shared-ini-file-loader/dist-types/loadSharedConfigFiles.d.ts deleted file mode 100644 index e82f41e3..00000000 --- a/node_modules/@smithy/shared-ini-file-loader/dist-types/loadSharedConfigFiles.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { SharedConfigFiles } from "@smithy/types"; -export interface SharedConfigInit { - /** - * The path at which to locate the ini credentials file. Defaults to the - * value of the `AWS_SHARED_CREDENTIALS_FILE` environment variable (if - * defined) or `~/.aws/credentials` otherwise. - */ - filepath?: string; - /** - * The path at which to locate the ini config file. Defaults to the value of - * the `AWS_CONFIG_FILE` environment variable (if defined) or - * `~/.aws/config` otherwise. - */ - configFilepath?: string; - /** - * Configuration files are normally cached after the first time they are loaded. When this - * property is set, the provider will always reload any configuration files loaded before. - */ - ignoreCache?: boolean; -} -export declare const CONFIG_PREFIX_SEPARATOR = "."; -export declare const loadSharedConfigFiles: (init?: SharedConfigInit) => Promise; diff --git a/node_modules/@smithy/shared-ini-file-loader/dist-types/loadSsoSessionData.d.ts b/node_modules/@smithy/shared-ini-file-loader/dist-types/loadSsoSessionData.d.ts deleted file mode 100644 index c450dcc9..00000000 --- a/node_modules/@smithy/shared-ini-file-loader/dist-types/loadSsoSessionData.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { ParsedIniData } from "@smithy/types"; -export interface SsoSessionInit { - /** - * The path at which to locate the ini config file. Defaults to the value of - * the `AWS_CONFIG_FILE` environment variable (if defined) or - * `~/.aws/config` otherwise. - */ - configFilepath?: string; -} -export declare const loadSsoSessionData: (init?: SsoSessionInit) => Promise; diff --git a/node_modules/@smithy/shared-ini-file-loader/dist-types/mergeConfigFiles.d.ts b/node_modules/@smithy/shared-ini-file-loader/dist-types/mergeConfigFiles.d.ts deleted file mode 100644 index 46b8965d..00000000 --- a/node_modules/@smithy/shared-ini-file-loader/dist-types/mergeConfigFiles.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { ParsedIniData } from "@smithy/types"; -/** - * Merge multiple profile config files such that settings each file are kept together - * - * @internal - */ -export declare const mergeConfigFiles: (...files: ParsedIniData[]) => ParsedIniData; diff --git a/node_modules/@smithy/shared-ini-file-loader/dist-types/parseIni.d.ts b/node_modules/@smithy/shared-ini-file-loader/dist-types/parseIni.d.ts deleted file mode 100644 index 0ae58510..00000000 --- a/node_modules/@smithy/shared-ini-file-loader/dist-types/parseIni.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ParsedIniData } from "@smithy/types"; -export declare const parseIni: (iniData: string) => ParsedIniData; diff --git a/node_modules/@smithy/shared-ini-file-loader/dist-types/parseKnownFiles.d.ts b/node_modules/@smithy/shared-ini-file-loader/dist-types/parseKnownFiles.d.ts deleted file mode 100644 index fe71e1d5..00000000 --- a/node_modules/@smithy/shared-ini-file-loader/dist-types/parseKnownFiles.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { ParsedIniData } from "@smithy/types"; -import { SharedConfigInit } from "./loadSharedConfigFiles"; -export interface SourceProfileInit extends SharedConfigInit { - /** - * The configuration profile to use. - */ - profile?: string; -} -/** - * Load profiles from credentials and config INI files and normalize them into a - * single profile list. - * - * @internal - */ -export declare const parseKnownFiles: (init: SourceProfileInit) => Promise; diff --git a/node_modules/@smithy/shared-ini-file-loader/dist-types/slurpFile.d.ts b/node_modules/@smithy/shared-ini-file-loader/dist-types/slurpFile.d.ts deleted file mode 100644 index a3bc84c1..00000000 --- a/node_modules/@smithy/shared-ini-file-loader/dist-types/slurpFile.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -interface SlurpFileOptions { - ignoreCache?: boolean; -} -export declare const slurpFile: (path: string, options?: SlurpFileOptions) => Promise; -export {}; diff --git a/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getConfigData.d.ts b/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getConfigData.d.ts deleted file mode 100644 index c6b7588a..00000000 --- a/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getConfigData.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { ParsedIniData } from "@smithy/types"; -/** - * Returns the config data from parsed ini data. - * * Returns data for `default` - * * Returns profile name without prefix. - * * Returns non-profiles as is. - */ -export declare const getConfigData: (data: ParsedIniData) => ParsedIniData; diff --git a/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getConfigFilepath.d.ts b/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getConfigFilepath.d.ts deleted file mode 100644 index dc3699b0..00000000 --- a/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getConfigFilepath.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare const ENV_CONFIG_PATH = "AWS_CONFIG_FILE"; -export declare const getConfigFilepath: () => string; diff --git a/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getCredentialsFilepath.d.ts b/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getCredentialsFilepath.d.ts deleted file mode 100644 index f2c95b4c..00000000 --- a/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getCredentialsFilepath.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare const ENV_CREDENTIALS_PATH = "AWS_SHARED_CREDENTIALS_FILE"; -export declare const getCredentialsFilepath: () => string; diff --git a/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getHomeDir.d.ts b/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getHomeDir.d.ts deleted file mode 100644 index 4c1bd7af..00000000 --- a/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getHomeDir.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -/** - * Get the HOME directory for the current runtime. - * - * @internal - */ -export declare const getHomeDir: () => string; diff --git a/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getProfileName.d.ts b/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getProfileName.d.ts deleted file mode 100644 index 2ce43db3..00000000 --- a/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getProfileName.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export declare const ENV_PROFILE = "AWS_PROFILE"; -export declare const DEFAULT_PROFILE = "default"; -export declare const getProfileName: (init: { - profile?: string; -}) => string; diff --git a/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getSSOTokenFilepath.d.ts b/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getSSOTokenFilepath.d.ts deleted file mode 100644 index 8ad16ce9..00000000 --- a/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getSSOTokenFilepath.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/** - * Returns the filepath of the file where SSO token is stored. - */ -export declare const getSSOTokenFilepath: (id: string) => string; diff --git a/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getSSOTokenFromFile.d.ts b/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getSSOTokenFromFile.d.ts deleted file mode 100644 index 35479a64..00000000 --- a/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getSSOTokenFromFile.d.ts +++ /dev/null @@ -1,44 +0,0 @@ -/** - * Cached SSO token retrieved from SSO login flow. - */ -export interface SSOToken { - /** - * A base64 encoded string returned by the sso-oidc service. - */ - accessToken: string; - /** - * The expiration time of the accessToken as an RFC 3339 formatted timestamp. - */ - expiresAt: string; - /** - * The token used to obtain an access token in the event that the accessToken is invalid or expired. - */ - refreshToken?: string; - /** - * The unique identifier string for each client. The client ID generated when performing the registration - * portion of the OIDC authorization flow. This is used to refresh the accessToken. - */ - clientId?: string; - /** - * A secret string generated when performing the registration portion of the OIDC authorization flow. - * This is used to refresh the accessToken. - */ - clientSecret?: string; - /** - * The expiration time of the client registration (clientId and clientSecret) as an RFC 3339 formatted timestamp. - */ - registrationExpiresAt?: string; - /** - * The configured sso_region for the profile that credentials are being resolved for. - */ - region?: string; - /** - * The configured sso_start_url for the profile that credentials are being resolved for. - */ - startUrl?: string; -} -/** - * @param id - can be either a start URL or the SSO session name. - * Returns the SSO token from the file system. - */ -export declare const getSSOTokenFromFile: (id: string) => Promise; diff --git a/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getSsoSessionData.d.ts b/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getSsoSessionData.d.ts deleted file mode 100644 index 04a1a997..00000000 --- a/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/getSsoSessionData.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { ParsedIniData } from "@smithy/types"; -/** - * Returns the sso-session data from parsed ini data by reading - * ssoSessionName after sso-session prefix including/excluding quotes - */ -export declare const getSsoSessionData: (data: ParsedIniData) => ParsedIniData; diff --git a/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/index.d.ts b/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/index.d.ts deleted file mode 100644 index 12ed3bb7..00000000 --- a/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -export * from "./getHomeDir"; -export * from "./getProfileName"; -export * from "./getSSOTokenFilepath"; -export * from "./getSSOTokenFromFile"; -export * from "./loadSharedConfigFiles"; -export * from "./loadSsoSessionData"; -export * from "./parseKnownFiles"; -export * from "./types"; diff --git a/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/loadSharedConfigFiles.d.ts b/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/loadSharedConfigFiles.d.ts deleted file mode 100644 index 45613c7d..00000000 --- a/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/loadSharedConfigFiles.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { SharedConfigFiles } from "@smithy/types"; -export interface SharedConfigInit { - /** - * The path at which to locate the ini credentials file. Defaults to the - * value of the `AWS_SHARED_CREDENTIALS_FILE` environment variable (if - * defined) or `~/.aws/credentials` otherwise. - */ - filepath?: string; - /** - * The path at which to locate the ini config file. Defaults to the value of - * the `AWS_CONFIG_FILE` environment variable (if defined) or - * `~/.aws/config` otherwise. - */ - configFilepath?: string; - /** - * Configuration files are normally cached after the first time they are loaded. When this - * property is set, the provider will always reload any configuration files loaded before. - */ - ignoreCache?: boolean; -} -export declare const CONFIG_PREFIX_SEPARATOR = "."; -export declare const loadSharedConfigFiles: (init?: SharedConfigInit) => Promise; diff --git a/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/loadSsoSessionData.d.ts b/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/loadSsoSessionData.d.ts deleted file mode 100644 index df37f10d..00000000 --- a/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/loadSsoSessionData.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { ParsedIniData } from "@smithy/types"; -export interface SsoSessionInit { - /** - * The path at which to locate the ini config file. Defaults to the value of - * the `AWS_CONFIG_FILE` environment variable (if defined) or - * `~/.aws/config` otherwise. - */ - configFilepath?: string; -} -export declare const loadSsoSessionData: (init?: SsoSessionInit) => Promise; diff --git a/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/mergeConfigFiles.d.ts b/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/mergeConfigFiles.d.ts deleted file mode 100644 index f94e7253..00000000 --- a/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/mergeConfigFiles.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { ParsedIniData } from "@smithy/types"; -/** - * Merge multiple profile config files such that settings each file are kept together - * - * @internal - */ -export declare const mergeConfigFiles: (...files: ParsedIniData[]) => ParsedIniData; diff --git a/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/parseIni.d.ts b/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/parseIni.d.ts deleted file mode 100644 index 4e58d0e5..00000000 --- a/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/parseIni.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ParsedIniData } from "@smithy/types"; -export declare const parseIni: (iniData: string) => ParsedIniData; diff --git a/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/parseKnownFiles.d.ts b/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/parseKnownFiles.d.ts deleted file mode 100644 index 61ca0b87..00000000 --- a/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/parseKnownFiles.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { ParsedIniData } from "@smithy/types"; -import { SharedConfigInit } from "./loadSharedConfigFiles"; -export interface SourceProfileInit extends SharedConfigInit { - /** - * The configuration profile to use. - */ - profile?: string; -} -/** - * Load profiles from credentials and config INI files and normalize them into a - * single profile list. - * - * @internal - */ -export declare const parseKnownFiles: (init: SourceProfileInit) => Promise; diff --git a/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/slurpFile.d.ts b/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/slurpFile.d.ts deleted file mode 100644 index 33e7a0c6..00000000 --- a/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/slurpFile.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -interface SlurpFileOptions { - ignoreCache?: boolean; -} -export declare const slurpFile: (path: string, options?: SlurpFileOptions) => Promise; -export {}; diff --git a/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/types.d.ts b/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/types.d.ts deleted file mode 100644 index ca630857..00000000 --- a/node_modules/@smithy/shared-ini-file-loader/dist-types/ts3.4/types.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { ParsedIniData as __ParsedIniData, Profile as __Profile, SharedConfigFiles as __SharedConfigFiles } from "@smithy/types"; -/** - * @deprecated Use Profile from "@smithy/types" instead - */ -export type Profile = __Profile; -/** - * @deprecated Use ParsedIniData from "@smithy/types" instead - */ -export type ParsedIniData = __ParsedIniData; -/** - * @deprecated Use SharedConfigFiles from "@smithy/types" instead - */ -export type SharedConfigFiles = __SharedConfigFiles; diff --git a/node_modules/@smithy/shared-ini-file-loader/dist-types/types.d.ts b/node_modules/@smithy/shared-ini-file-loader/dist-types/types.d.ts deleted file mode 100644 index 8f92904e..00000000 --- a/node_modules/@smithy/shared-ini-file-loader/dist-types/types.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { ParsedIniData as __ParsedIniData, Profile as __Profile, SharedConfigFiles as __SharedConfigFiles } from "@smithy/types"; -/** - * @deprecated Use Profile from "@smithy/types" instead - */ -export type Profile = __Profile; -/** - * @deprecated Use ParsedIniData from "@smithy/types" instead - */ -export type ParsedIniData = __ParsedIniData; -/** - * @deprecated Use SharedConfigFiles from "@smithy/types" instead - */ -export type SharedConfigFiles = __SharedConfigFiles; diff --git a/node_modules/@smithy/shared-ini-file-loader/package.json b/node_modules/@smithy/shared-ini-file-loader/package.json deleted file mode 100644 index c34e27b3..00000000 --- a/node_modules/@smithy/shared-ini-file-loader/package.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "name": "@smithy/shared-ini-file-loader", - "version": "2.2.5", - "dependencies": { - "@smithy/types": "^2.6.0", - "tslib": "^2.5.0" - }, - "devDependencies": { - "@tsconfig/recommended": "1.0.1", - "@types/node": "^14.14.31", - "concurrently": "7.0.0", - "downlevel-dts": "0.10.1", - "rimraf": "3.0.2", - "typedoc": "0.23.23" - }, - "scripts": { - "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", - "build:cjs": "yarn g:tsc -p tsconfig.cjs.json", - "build:es": "yarn g:tsc -p tsconfig.es.json", - "build:types": "yarn g:tsc -p tsconfig.types.json", - "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", - "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz", - "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"", - "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"", - "extract:docs": "api-extractor run --local", - "test": "yarn g:jest" - }, - "author": { - "name": "AWS SDK for JavaScript Team", - "url": "https://aws.amazon.com/javascript/" - }, - "license": "Apache-2.0", - "main": "./dist-cjs/index.js", - "module": "./dist-es/index.js", - "types": "./dist-types/index.d.ts", - "engines": { - "node": ">=14.0.0" - }, - "typesVersions": { - "<4.0": { - "dist-types/*": [ - "dist-types/ts3.4/*" - ] - } - }, - "files": [ - "dist-*/**" - ], - "homepage": "https://github.com/awslabs/smithy-typescript/tree/main/packages/shared-ini-file-loader", - "repository": { - "type": "git", - "url": "https://github.com/awslabs/smithy-typescript.git", - "directory": "packages/shared-ini-file-loader" - }, - "typedoc": { - "entryPoint": "src/index.ts" - }, - "publishConfig": { - "directory": ".release/package" - } -} \ No newline at end of file diff --git a/node_modules/@smithy/signature-v4/LICENSE b/node_modules/@smithy/signature-v4/LICENSE deleted file mode 100644 index 7b6491ba..00000000 --- a/node_modules/@smithy/signature-v4/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. \ No newline at end of file diff --git a/node_modules/@smithy/signature-v4/README.md b/node_modules/@smithy/signature-v4/README.md deleted file mode 100644 index f6e3a742..00000000 --- a/node_modules/@smithy/signature-v4/README.md +++ /dev/null @@ -1,4 +0,0 @@ -# @smithy/signature-v4 - -[![NPM version](https://img.shields.io/npm/v/@smithy/signature-v4/latest.svg)](https://www.npmjs.com/package/@smithy/signature-v4) -[![NPM downloads](https://img.shields.io/npm/dm/@smithy/signature-v4.svg)](https://www.npmjs.com/package/@smithy/signature-v4) diff --git a/node_modules/@smithy/signature-v4/dist-cjs/SignatureV4.js b/node_modules/@smithy/signature-v4/dist-cjs/SignatureV4.js deleted file mode 100644 index 4470da06..00000000 --- a/node_modules/@smithy/signature-v4/dist-cjs/SignatureV4.js +++ /dev/null @@ -1,194 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SignatureV4 = void 0; -const eventstream_codec_1 = require("@smithy/eventstream-codec"); -const util_hex_encoding_1 = require("@smithy/util-hex-encoding"); -const util_middleware_1 = require("@smithy/util-middleware"); -const util_utf8_1 = require("@smithy/util-utf8"); -const constants_1 = require("./constants"); -const credentialDerivation_1 = require("./credentialDerivation"); -const getCanonicalHeaders_1 = require("./getCanonicalHeaders"); -const getCanonicalQuery_1 = require("./getCanonicalQuery"); -const getPayloadHash_1 = require("./getPayloadHash"); -const headerUtil_1 = require("./headerUtil"); -const moveHeadersToQuery_1 = require("./moveHeadersToQuery"); -const prepareRequest_1 = require("./prepareRequest"); -const utilDate_1 = require("./utilDate"); -class SignatureV4 { - constructor({ applyChecksum, credentials, region, service, sha256, uriEscapePath = true, }) { - this.headerMarshaller = new eventstream_codec_1.HeaderMarshaller(util_utf8_1.toUtf8, util_utf8_1.fromUtf8); - this.service = service; - this.sha256 = sha256; - this.uriEscapePath = uriEscapePath; - this.applyChecksum = typeof applyChecksum === "boolean" ? applyChecksum : true; - this.regionProvider = (0, util_middleware_1.normalizeProvider)(region); - this.credentialProvider = (0, util_middleware_1.normalizeProvider)(credentials); - } - async presign(originalRequest, options = {}) { - const { signingDate = new Date(), expiresIn = 3600, unsignableHeaders, unhoistableHeaders, signableHeaders, signingRegion, signingService, } = options; - const credentials = await this.credentialProvider(); - this.validateResolvedCredentials(credentials); - const region = signingRegion !== null && signingRegion !== void 0 ? signingRegion : (await this.regionProvider()); - const { longDate, shortDate } = formatDate(signingDate); - if (expiresIn > constants_1.MAX_PRESIGNED_TTL) { - return Promise.reject("Signature version 4 presigned URLs" + " must have an expiration date less than one week in" + " the future"); - } - const scope = (0, credentialDerivation_1.createScope)(shortDate, region, signingService !== null && signingService !== void 0 ? signingService : this.service); - const request = (0, moveHeadersToQuery_1.moveHeadersToQuery)((0, prepareRequest_1.prepareRequest)(originalRequest), { unhoistableHeaders }); - if (credentials.sessionToken) { - request.query[constants_1.TOKEN_QUERY_PARAM] = credentials.sessionToken; - } - request.query[constants_1.ALGORITHM_QUERY_PARAM] = constants_1.ALGORITHM_IDENTIFIER; - request.query[constants_1.CREDENTIAL_QUERY_PARAM] = `${credentials.accessKeyId}/${scope}`; - request.query[constants_1.AMZ_DATE_QUERY_PARAM] = longDate; - request.query[constants_1.EXPIRES_QUERY_PARAM] = expiresIn.toString(10); - const canonicalHeaders = (0, getCanonicalHeaders_1.getCanonicalHeaders)(request, unsignableHeaders, signableHeaders); - request.query[constants_1.SIGNED_HEADERS_QUERY_PARAM] = getCanonicalHeaderList(canonicalHeaders); - request.query[constants_1.SIGNATURE_QUERY_PARAM] = await this.getSignature(longDate, scope, this.getSigningKey(credentials, region, shortDate, signingService), this.createCanonicalRequest(request, canonicalHeaders, await (0, getPayloadHash_1.getPayloadHash)(originalRequest, this.sha256))); - return request; - } - async sign(toSign, options) { - if (typeof toSign === "string") { - return this.signString(toSign, options); - } - else if (toSign.headers && toSign.payload) { - return this.signEvent(toSign, options); - } - else if (toSign.message) { - return this.signMessage(toSign, options); - } - else { - return this.signRequest(toSign, options); - } - } - async signEvent({ headers, payload }, { signingDate = new Date(), priorSignature, signingRegion, signingService }) { - const region = signingRegion !== null && signingRegion !== void 0 ? signingRegion : (await this.regionProvider()); - const { shortDate, longDate } = formatDate(signingDate); - const scope = (0, credentialDerivation_1.createScope)(shortDate, region, signingService !== null && signingService !== void 0 ? signingService : this.service); - const hashedPayload = await (0, getPayloadHash_1.getPayloadHash)({ headers: {}, body: payload }, this.sha256); - const hash = new this.sha256(); - hash.update(headers); - const hashedHeaders = (0, util_hex_encoding_1.toHex)(await hash.digest()); - const stringToSign = [ - constants_1.EVENT_ALGORITHM_IDENTIFIER, - longDate, - scope, - priorSignature, - hashedHeaders, - hashedPayload, - ].join("\n"); - return this.signString(stringToSign, { signingDate, signingRegion: region, signingService }); - } - async signMessage(signableMessage, { signingDate = new Date(), signingRegion, signingService }) { - const promise = this.signEvent({ - headers: this.headerMarshaller.format(signableMessage.message.headers), - payload: signableMessage.message.body, - }, { - signingDate, - signingRegion, - signingService, - priorSignature: signableMessage.priorSignature, - }); - return promise.then((signature) => { - return { message: signableMessage.message, signature }; - }); - } - async signString(stringToSign, { signingDate = new Date(), signingRegion, signingService } = {}) { - const credentials = await this.credentialProvider(); - this.validateResolvedCredentials(credentials); - const region = signingRegion !== null && signingRegion !== void 0 ? signingRegion : (await this.regionProvider()); - const { shortDate } = formatDate(signingDate); - const hash = new this.sha256(await this.getSigningKey(credentials, region, shortDate, signingService)); - hash.update((0, util_utf8_1.toUint8Array)(stringToSign)); - return (0, util_hex_encoding_1.toHex)(await hash.digest()); - } - async signRequest(requestToSign, { signingDate = new Date(), signableHeaders, unsignableHeaders, signingRegion, signingService, } = {}) { - const credentials = await this.credentialProvider(); - this.validateResolvedCredentials(credentials); - const region = signingRegion !== null && signingRegion !== void 0 ? signingRegion : (await this.regionProvider()); - const request = (0, prepareRequest_1.prepareRequest)(requestToSign); - const { longDate, shortDate } = formatDate(signingDate); - const scope = (0, credentialDerivation_1.createScope)(shortDate, region, signingService !== null && signingService !== void 0 ? signingService : this.service); - request.headers[constants_1.AMZ_DATE_HEADER] = longDate; - if (credentials.sessionToken) { - request.headers[constants_1.TOKEN_HEADER] = credentials.sessionToken; - } - const payloadHash = await (0, getPayloadHash_1.getPayloadHash)(request, this.sha256); - if (!(0, headerUtil_1.hasHeader)(constants_1.SHA256_HEADER, request.headers) && this.applyChecksum) { - request.headers[constants_1.SHA256_HEADER] = payloadHash; - } - const canonicalHeaders = (0, getCanonicalHeaders_1.getCanonicalHeaders)(request, unsignableHeaders, signableHeaders); - const signature = await this.getSignature(longDate, scope, this.getSigningKey(credentials, region, shortDate, signingService), this.createCanonicalRequest(request, canonicalHeaders, payloadHash)); - request.headers[constants_1.AUTH_HEADER] = - `${constants_1.ALGORITHM_IDENTIFIER} ` + - `Credential=${credentials.accessKeyId}/${scope}, ` + - `SignedHeaders=${getCanonicalHeaderList(canonicalHeaders)}, ` + - `Signature=${signature}`; - return request; - } - createCanonicalRequest(request, canonicalHeaders, payloadHash) { - const sortedHeaders = Object.keys(canonicalHeaders).sort(); - return `${request.method} -${this.getCanonicalPath(request)} -${(0, getCanonicalQuery_1.getCanonicalQuery)(request)} -${sortedHeaders.map((name) => `${name}:${canonicalHeaders[name]}`).join("\n")} - -${sortedHeaders.join(";")} -${payloadHash}`; - } - async createStringToSign(longDate, credentialScope, canonicalRequest) { - const hash = new this.sha256(); - hash.update((0, util_utf8_1.toUint8Array)(canonicalRequest)); - const hashedRequest = await hash.digest(); - return `${constants_1.ALGORITHM_IDENTIFIER} -${longDate} -${credentialScope} -${(0, util_hex_encoding_1.toHex)(hashedRequest)}`; - } - getCanonicalPath({ path }) { - if (this.uriEscapePath) { - const normalizedPathSegments = []; - for (const pathSegment of path.split("/")) { - if ((pathSegment === null || pathSegment === void 0 ? void 0 : pathSegment.length) === 0) - continue; - if (pathSegment === ".") - continue; - if (pathSegment === "..") { - normalizedPathSegments.pop(); - } - else { - normalizedPathSegments.push(pathSegment); - } - } - const normalizedPath = `${(path === null || path === void 0 ? void 0 : path.startsWith("/")) ? "/" : ""}${normalizedPathSegments.join("/")}${normalizedPathSegments.length > 0 && (path === null || path === void 0 ? void 0 : path.endsWith("/")) ? "/" : ""}`; - const doubleEncoded = encodeURIComponent(normalizedPath); - return doubleEncoded.replace(/%2F/g, "/"); - } - return path; - } - async getSignature(longDate, credentialScope, keyPromise, canonicalRequest) { - const stringToSign = await this.createStringToSign(longDate, credentialScope, canonicalRequest); - const hash = new this.sha256(await keyPromise); - hash.update((0, util_utf8_1.toUint8Array)(stringToSign)); - return (0, util_hex_encoding_1.toHex)(await hash.digest()); - } - getSigningKey(credentials, region, shortDate, service) { - return (0, credentialDerivation_1.getSigningKey)(this.sha256, credentials, shortDate, region, service || this.service); - } - validateResolvedCredentials(credentials) { - if (typeof credentials !== "object" || - typeof credentials.accessKeyId !== "string" || - typeof credentials.secretAccessKey !== "string") { - throw new Error("Resolved credential object is not valid"); - } - } -} -exports.SignatureV4 = SignatureV4; -const formatDate = (now) => { - const longDate = (0, utilDate_1.iso8601)(now).replace(/[\-:]/g, ""); - return { - longDate, - shortDate: longDate.slice(0, 8), - }; -}; -const getCanonicalHeaderList = (headers) => Object.keys(headers).sort().join(";"); diff --git a/node_modules/@smithy/signature-v4/dist-cjs/cloneRequest.js b/node_modules/@smithy/signature-v4/dist-cjs/cloneRequest.js deleted file mode 100644 index b562c5ab..00000000 --- a/node_modules/@smithy/signature-v4/dist-cjs/cloneRequest.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.cloneQuery = exports.cloneRequest = void 0; -const cloneRequest = ({ headers, query, ...rest }) => ({ - ...rest, - headers: { ...headers }, - query: query ? (0, exports.cloneQuery)(query) : undefined, -}); -exports.cloneRequest = cloneRequest; -const cloneQuery = (query) => Object.keys(query).reduce((carry, paramName) => { - const param = query[paramName]; - return { - ...carry, - [paramName]: Array.isArray(param) ? [...param] : param, - }; -}, {}); -exports.cloneQuery = cloneQuery; diff --git a/node_modules/@smithy/signature-v4/dist-cjs/constants.js b/node_modules/@smithy/signature-v4/dist-cjs/constants.js deleted file mode 100644 index 5ac2966e..00000000 --- a/node_modules/@smithy/signature-v4/dist-cjs/constants.js +++ /dev/null @@ -1,46 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.MAX_PRESIGNED_TTL = exports.KEY_TYPE_IDENTIFIER = exports.MAX_CACHE_SIZE = exports.UNSIGNED_PAYLOAD = exports.EVENT_ALGORITHM_IDENTIFIER = exports.ALGORITHM_IDENTIFIER_V4A = exports.ALGORITHM_IDENTIFIER = exports.UNSIGNABLE_PATTERNS = exports.SEC_HEADER_PATTERN = exports.PROXY_HEADER_PATTERN = exports.ALWAYS_UNSIGNABLE_HEADERS = exports.HOST_HEADER = exports.TOKEN_HEADER = exports.SHA256_HEADER = exports.SIGNATURE_HEADER = exports.GENERATED_HEADERS = exports.DATE_HEADER = exports.AMZ_DATE_HEADER = exports.AUTH_HEADER = exports.REGION_SET_PARAM = exports.TOKEN_QUERY_PARAM = exports.SIGNATURE_QUERY_PARAM = exports.EXPIRES_QUERY_PARAM = exports.SIGNED_HEADERS_QUERY_PARAM = exports.AMZ_DATE_QUERY_PARAM = exports.CREDENTIAL_QUERY_PARAM = exports.ALGORITHM_QUERY_PARAM = void 0; -exports.ALGORITHM_QUERY_PARAM = "X-Amz-Algorithm"; -exports.CREDENTIAL_QUERY_PARAM = "X-Amz-Credential"; -exports.AMZ_DATE_QUERY_PARAM = "X-Amz-Date"; -exports.SIGNED_HEADERS_QUERY_PARAM = "X-Amz-SignedHeaders"; -exports.EXPIRES_QUERY_PARAM = "X-Amz-Expires"; -exports.SIGNATURE_QUERY_PARAM = "X-Amz-Signature"; -exports.TOKEN_QUERY_PARAM = "X-Amz-Security-Token"; -exports.REGION_SET_PARAM = "X-Amz-Region-Set"; -exports.AUTH_HEADER = "authorization"; -exports.AMZ_DATE_HEADER = exports.AMZ_DATE_QUERY_PARAM.toLowerCase(); -exports.DATE_HEADER = "date"; -exports.GENERATED_HEADERS = [exports.AUTH_HEADER, exports.AMZ_DATE_HEADER, exports.DATE_HEADER]; -exports.SIGNATURE_HEADER = exports.SIGNATURE_QUERY_PARAM.toLowerCase(); -exports.SHA256_HEADER = "x-amz-content-sha256"; -exports.TOKEN_HEADER = exports.TOKEN_QUERY_PARAM.toLowerCase(); -exports.HOST_HEADER = "host"; -exports.ALWAYS_UNSIGNABLE_HEADERS = { - authorization: true, - "cache-control": true, - connection: true, - expect: true, - from: true, - "keep-alive": true, - "max-forwards": true, - pragma: true, - referer: true, - te: true, - trailer: true, - "transfer-encoding": true, - upgrade: true, - "user-agent": true, - "x-amzn-trace-id": true, -}; -exports.PROXY_HEADER_PATTERN = /^proxy-/; -exports.SEC_HEADER_PATTERN = /^sec-/; -exports.UNSIGNABLE_PATTERNS = [/^proxy-/i, /^sec-/i]; -exports.ALGORITHM_IDENTIFIER = "AWS4-HMAC-SHA256"; -exports.ALGORITHM_IDENTIFIER_V4A = "AWS4-ECDSA-P256-SHA256"; -exports.EVENT_ALGORITHM_IDENTIFIER = "AWS4-HMAC-SHA256-PAYLOAD"; -exports.UNSIGNED_PAYLOAD = "UNSIGNED-PAYLOAD"; -exports.MAX_CACHE_SIZE = 50; -exports.KEY_TYPE_IDENTIFIER = "aws4_request"; -exports.MAX_PRESIGNED_TTL = 60 * 60 * 24 * 7; diff --git a/node_modules/@smithy/signature-v4/dist-cjs/credentialDerivation.js b/node_modules/@smithy/signature-v4/dist-cjs/credentialDerivation.js deleted file mode 100644 index 3fb3d544..00000000 --- a/node_modules/@smithy/signature-v4/dist-cjs/credentialDerivation.js +++ /dev/null @@ -1,39 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.clearCredentialCache = exports.getSigningKey = exports.createScope = void 0; -const util_hex_encoding_1 = require("@smithy/util-hex-encoding"); -const util_utf8_1 = require("@smithy/util-utf8"); -const constants_1 = require("./constants"); -const signingKeyCache = {}; -const cacheQueue = []; -const createScope = (shortDate, region, service) => `${shortDate}/${region}/${service}/${constants_1.KEY_TYPE_IDENTIFIER}`; -exports.createScope = createScope; -const getSigningKey = async (sha256Constructor, credentials, shortDate, region, service) => { - const credsHash = await hmac(sha256Constructor, credentials.secretAccessKey, credentials.accessKeyId); - const cacheKey = `${shortDate}:${region}:${service}:${(0, util_hex_encoding_1.toHex)(credsHash)}:${credentials.sessionToken}`; - if (cacheKey in signingKeyCache) { - return signingKeyCache[cacheKey]; - } - cacheQueue.push(cacheKey); - while (cacheQueue.length > constants_1.MAX_CACHE_SIZE) { - delete signingKeyCache[cacheQueue.shift()]; - } - let key = `AWS4${credentials.secretAccessKey}`; - for (const signable of [shortDate, region, service, constants_1.KEY_TYPE_IDENTIFIER]) { - key = await hmac(sha256Constructor, key, signable); - } - return (signingKeyCache[cacheKey] = key); -}; -exports.getSigningKey = getSigningKey; -const clearCredentialCache = () => { - cacheQueue.length = 0; - Object.keys(signingKeyCache).forEach((cacheKey) => { - delete signingKeyCache[cacheKey]; - }); -}; -exports.clearCredentialCache = clearCredentialCache; -const hmac = (ctor, secret, data) => { - const hash = new ctor(secret); - hash.update((0, util_utf8_1.toUint8Array)(data)); - return hash.digest(); -}; diff --git a/node_modules/@smithy/signature-v4/dist-cjs/getCanonicalHeaders.js b/node_modules/@smithy/signature-v4/dist-cjs/getCanonicalHeaders.js deleted file mode 100644 index d34763c5..00000000 --- a/node_modules/@smithy/signature-v4/dist-cjs/getCanonicalHeaders.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getCanonicalHeaders = void 0; -const constants_1 = require("./constants"); -const getCanonicalHeaders = ({ headers }, unsignableHeaders, signableHeaders) => { - const canonical = {}; - for (const headerName of Object.keys(headers).sort()) { - if (headers[headerName] == undefined) { - continue; - } - const canonicalHeaderName = headerName.toLowerCase(); - if (canonicalHeaderName in constants_1.ALWAYS_UNSIGNABLE_HEADERS || - (unsignableHeaders === null || unsignableHeaders === void 0 ? void 0 : unsignableHeaders.has(canonicalHeaderName)) || - constants_1.PROXY_HEADER_PATTERN.test(canonicalHeaderName) || - constants_1.SEC_HEADER_PATTERN.test(canonicalHeaderName)) { - if (!signableHeaders || (signableHeaders && !signableHeaders.has(canonicalHeaderName))) { - continue; - } - } - canonical[canonicalHeaderName] = headers[headerName].trim().replace(/\s+/g, " "); - } - return canonical; -}; -exports.getCanonicalHeaders = getCanonicalHeaders; diff --git a/node_modules/@smithy/signature-v4/dist-cjs/getCanonicalQuery.js b/node_modules/@smithy/signature-v4/dist-cjs/getCanonicalQuery.js deleted file mode 100644 index 0e908913..00000000 --- a/node_modules/@smithy/signature-v4/dist-cjs/getCanonicalQuery.js +++ /dev/null @@ -1,31 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getCanonicalQuery = void 0; -const util_uri_escape_1 = require("@smithy/util-uri-escape"); -const constants_1 = require("./constants"); -const getCanonicalQuery = ({ query = {} }) => { - const keys = []; - const serialized = {}; - for (const key of Object.keys(query).sort()) { - if (key.toLowerCase() === constants_1.SIGNATURE_HEADER) { - continue; - } - keys.push(key); - const value = query[key]; - if (typeof value === "string") { - serialized[key] = `${(0, util_uri_escape_1.escapeUri)(key)}=${(0, util_uri_escape_1.escapeUri)(value)}`; - } - else if (Array.isArray(value)) { - serialized[key] = value - .slice(0) - .reduce((encoded, value) => encoded.concat([`${(0, util_uri_escape_1.escapeUri)(key)}=${(0, util_uri_escape_1.escapeUri)(value)}`]), []) - .sort() - .join("&"); - } - } - return keys - .map((key) => serialized[key]) - .filter((serialized) => serialized) - .join("&"); -}; -exports.getCanonicalQuery = getCanonicalQuery; diff --git a/node_modules/@smithy/signature-v4/dist-cjs/getPayloadHash.js b/node_modules/@smithy/signature-v4/dist-cjs/getPayloadHash.js deleted file mode 100644 index 5096d063..00000000 --- a/node_modules/@smithy/signature-v4/dist-cjs/getPayloadHash.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getPayloadHash = void 0; -const is_array_buffer_1 = require("@smithy/is-array-buffer"); -const util_hex_encoding_1 = require("@smithy/util-hex-encoding"); -const util_utf8_1 = require("@smithy/util-utf8"); -const constants_1 = require("./constants"); -const getPayloadHash = async ({ headers, body }, hashConstructor) => { - for (const headerName of Object.keys(headers)) { - if (headerName.toLowerCase() === constants_1.SHA256_HEADER) { - return headers[headerName]; - } - } - if (body == undefined) { - return "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"; - } - else if (typeof body === "string" || ArrayBuffer.isView(body) || (0, is_array_buffer_1.isArrayBuffer)(body)) { - const hashCtor = new hashConstructor(); - hashCtor.update((0, util_utf8_1.toUint8Array)(body)); - return (0, util_hex_encoding_1.toHex)(await hashCtor.digest()); - } - return constants_1.UNSIGNED_PAYLOAD; -}; -exports.getPayloadHash = getPayloadHash; diff --git a/node_modules/@smithy/signature-v4/dist-cjs/headerUtil.js b/node_modules/@smithy/signature-v4/dist-cjs/headerUtil.js deleted file mode 100644 index c3b08b22..00000000 --- a/node_modules/@smithy/signature-v4/dist-cjs/headerUtil.js +++ /dev/null @@ -1,32 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.deleteHeader = exports.getHeaderValue = exports.hasHeader = void 0; -const hasHeader = (soughtHeader, headers) => { - soughtHeader = soughtHeader.toLowerCase(); - for (const headerName of Object.keys(headers)) { - if (soughtHeader === headerName.toLowerCase()) { - return true; - } - } - return false; -}; -exports.hasHeader = hasHeader; -const getHeaderValue = (soughtHeader, headers) => { - soughtHeader = soughtHeader.toLowerCase(); - for (const headerName of Object.keys(headers)) { - if (soughtHeader === headerName.toLowerCase()) { - return headers[headerName]; - } - } - return undefined; -}; -exports.getHeaderValue = getHeaderValue; -const deleteHeader = (soughtHeader, headers) => { - soughtHeader = soughtHeader.toLowerCase(); - for (const headerName of Object.keys(headers)) { - if (soughtHeader === headerName.toLowerCase()) { - delete headers[headerName]; - } - } -}; -exports.deleteHeader = deleteHeader; diff --git a/node_modules/@smithy/signature-v4/dist-cjs/index.js b/node_modules/@smithy/signature-v4/dist-cjs/index.js deleted file mode 100644 index e554d4a2..00000000 --- a/node_modules/@smithy/signature-v4/dist-cjs/index.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.prepareRequest = exports.moveHeadersToQuery = exports.getPayloadHash = exports.getCanonicalQuery = exports.getCanonicalHeaders = void 0; -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./SignatureV4"), exports); -var getCanonicalHeaders_1 = require("./getCanonicalHeaders"); -Object.defineProperty(exports, "getCanonicalHeaders", { enumerable: true, get: function () { return getCanonicalHeaders_1.getCanonicalHeaders; } }); -var getCanonicalQuery_1 = require("./getCanonicalQuery"); -Object.defineProperty(exports, "getCanonicalQuery", { enumerable: true, get: function () { return getCanonicalQuery_1.getCanonicalQuery; } }); -var getPayloadHash_1 = require("./getPayloadHash"); -Object.defineProperty(exports, "getPayloadHash", { enumerable: true, get: function () { return getPayloadHash_1.getPayloadHash; } }); -var moveHeadersToQuery_1 = require("./moveHeadersToQuery"); -Object.defineProperty(exports, "moveHeadersToQuery", { enumerable: true, get: function () { return moveHeadersToQuery_1.moveHeadersToQuery; } }); -var prepareRequest_1 = require("./prepareRequest"); -Object.defineProperty(exports, "prepareRequest", { enumerable: true, get: function () { return prepareRequest_1.prepareRequest; } }); -tslib_1.__exportStar(require("./credentialDerivation"), exports); diff --git a/node_modules/@smithy/signature-v4/dist-cjs/moveHeadersToQuery.js b/node_modules/@smithy/signature-v4/dist-cjs/moveHeadersToQuery.js deleted file mode 100644 index 66c1e0a0..00000000 --- a/node_modules/@smithy/signature-v4/dist-cjs/moveHeadersToQuery.js +++ /dev/null @@ -1,21 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.moveHeadersToQuery = void 0; -const cloneRequest_1 = require("./cloneRequest"); -const moveHeadersToQuery = (request, options = {}) => { - var _a; - const { headers, query = {} } = typeof request.clone === "function" ? request.clone() : (0, cloneRequest_1.cloneRequest)(request); - for (const name of Object.keys(headers)) { - const lname = name.toLowerCase(); - if (lname.slice(0, 6) === "x-amz-" && !((_a = options.unhoistableHeaders) === null || _a === void 0 ? void 0 : _a.has(lname))) { - query[name] = headers[name]; - delete headers[name]; - } - } - return { - ...request, - headers, - query, - }; -}; -exports.moveHeadersToQuery = moveHeadersToQuery; diff --git a/node_modules/@smithy/signature-v4/dist-cjs/prepareRequest.js b/node_modules/@smithy/signature-v4/dist-cjs/prepareRequest.js deleted file mode 100644 index b24ca5e4..00000000 --- a/node_modules/@smithy/signature-v4/dist-cjs/prepareRequest.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.prepareRequest = void 0; -const cloneRequest_1 = require("./cloneRequest"); -const constants_1 = require("./constants"); -const prepareRequest = (request) => { - request = typeof request.clone === "function" ? request.clone() : (0, cloneRequest_1.cloneRequest)(request); - for (const headerName of Object.keys(request.headers)) { - if (constants_1.GENERATED_HEADERS.indexOf(headerName.toLowerCase()) > -1) { - delete request.headers[headerName]; - } - } - return request; -}; -exports.prepareRequest = prepareRequest; diff --git a/node_modules/@smithy/signature-v4/dist-cjs/suite.fixture.js b/node_modules/@smithy/signature-v4/dist-cjs/suite.fixture.js deleted file mode 100644 index 23d31345..00000000 --- a/node_modules/@smithy/signature-v4/dist-cjs/suite.fixture.js +++ /dev/null @@ -1,402 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.requests = exports.signingDate = exports.credentials = exports.service = exports.region = void 0; -exports.region = "us-east-1"; -exports.service = "service"; -exports.credentials = { - accessKeyId: "AKIDEXAMPLE", - secretAccessKey: "wJalrXUtnFEMI/K7MDENG+bPxRfiCYEXAMPLEKEY", -}; -exports.signingDate = new Date("2015-08-30T12:36:00Z"); -exports.requests = [ - { - name: "get-header-key-duplicate", - request: { - protocol: "https:", - method: "GET", - hostname: "example.amazonaws.com", - query: {}, - headers: { - host: "example.amazonaws.com", - "my-header1": "value2,value2,value1", - "x-amz-date": "20150830T123600Z", - }, - path: "/", - }, - authorization: "AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;my-header1;x-amz-date, Signature=c9d5ea9f3f72853aea855b47ea873832890dbdd183b4468f858259531a5138ea", - }, - { - name: "get-header-value-multiline", - request: { - protocol: "https:", - method: "GET", - hostname: "example.amazonaws.com", - query: {}, - headers: { - host: "example.amazonaws.com", - "my-header1": "value1,value2,value3", - "x-amz-date": "20150830T123600Z", - }, - path: "/", - }, - authorization: "AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;my-header1;x-amz-date, Signature=ba17b383a53190154eb5fa66a1b836cc297cc0a3d70a5d00705980573d8ff790", - }, - { - name: "get-header-value-order", - request: { - protocol: "https:", - method: "GET", - hostname: "example.amazonaws.com", - query: {}, - headers: { - host: "example.amazonaws.com", - "my-header1": "value4,value1,value3,value2", - "x-amz-date": "20150830T123600Z", - }, - path: "/", - }, - authorization: "AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;my-header1;x-amz-date, Signature=08c7e5a9acfcfeb3ab6b2185e75ce8b1deb5e634ec47601a50643f830c755c01", - }, - { - name: "get-header-value-trim", - request: { - protocol: "https:", - method: "GET", - hostname: "example.amazonaws.com", - query: {}, - headers: { - host: "example.amazonaws.com", - "my-header1": "value1", - "my-header2": '"a b c"', - "x-amz-date": "20150830T123600Z", - }, - path: "/", - }, - authorization: "AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;my-header1;my-header2;x-amz-date, Signature=acc3ed3afb60bb290fc8d2dd0098b9911fcaa05412b367055dee359757a9c736", - }, - { - name: "get-unreserved", - request: { - protocol: "https:", - method: "GET", - hostname: "example.amazonaws.com", - query: {}, - headers: { - host: "example.amazonaws.com", - "x-amz-date": "20150830T123600Z", - }, - path: "/-._~0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", - }, - authorization: "AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=07ef7494c76fa4850883e2b006601f940f8a34d404d0cfa977f52a65bbf5f24f", - }, - { - name: "get-utf8", - request: { - protocol: "https:", - method: "GET", - hostname: "example.amazonaws.com", - query: {}, - headers: { - host: "example.amazonaws.com", - "x-amz-date": "20150830T123600Z", - }, - path: "/ሴ", - }, - authorization: "AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=8318018e0b0f223aa2bbf98705b62bb787dc9c0e678f255a891fd03141be5d85", - }, - { - name: "get-vanilla", - request: { - protocol: "https:", - method: "GET", - hostname: "example.amazonaws.com", - query: {}, - headers: { - host: "example.amazonaws.com", - "x-amz-date": "20150830T123600Z", - }, - path: "/", - }, - authorization: "AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=5fa00fa31553b73ebf1942676e86291e8372ff2a2260956d9b8aae1d763fbf31", - }, - { - name: "get-vanilla-empty-query-key", - request: { - protocol: "https:", - method: "GET", - hostname: "example.amazonaws.com", - query: { - Param1: "value1", - }, - headers: { - host: "example.amazonaws.com", - "x-amz-date": "20150830T123600Z", - }, - path: "/", - }, - authorization: "AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=a67d582fa61cc504c4bae71f336f98b97f1ea3c7a6bfe1b6e45aec72011b9aeb", - }, - { - name: "get-vanilla-query", - request: { - protocol: "https:", - method: "GET", - hostname: "example.amazonaws.com", - query: {}, - headers: { - host: "example.amazonaws.com", - "x-amz-date": "20150830T123600Z", - }, - path: "/", - }, - authorization: "AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=5fa00fa31553b73ebf1942676e86291e8372ff2a2260956d9b8aae1d763fbf31", - }, - { - name: "get-vanilla-query-order-key-case", - request: { - protocol: "https:", - method: "GET", - hostname: "example.amazonaws.com", - query: { - Param2: "value2", - Param1: "value1", - }, - headers: { - host: "example.amazonaws.com", - "x-amz-date": "20150830T123600Z", - }, - path: "/", - }, - authorization: "AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=b97d918cfa904a5beff61c982a1b6f458b799221646efd99d3219ec94cdf2500", - }, - { - name: "get-vanilla-query-unreserved", - request: { - protocol: "https:", - method: "GET", - hostname: "example.amazonaws.com", - query: { - "-._~0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz": "-._~0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", - }, - headers: { - host: "example.amazonaws.com", - "x-amz-date": "20150830T123600Z", - }, - path: "/", - }, - authorization: "AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=9c3e54bfcdf0b19771a7f523ee5669cdf59bc7cc0884027167c21bb143a40197", - }, - { - name: "get-vanilla-utf8-query", - request: { - protocol: "https:", - method: "GET", - hostname: "example.amazonaws.com", - query: { - ሴ: "bar", - }, - headers: { - host: "example.amazonaws.com", - "x-amz-date": "20150830T123600Z", - }, - path: "/", - }, - authorization: "AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=2cdec8eed098649ff3a119c94853b13c643bcf08f8b0a1d91e12c9027818dd04", - }, - { - name: "post-header-key-case", - request: { - protocol: "https:", - method: "POST", - hostname: "example.amazonaws.com", - query: {}, - headers: { - host: "example.amazonaws.com", - "x-amz-date": "20150830T123600Z", - }, - path: "/", - }, - authorization: "AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=5da7c1a2acd57cee7505fc6676e4e544621c30862966e37dddb68e92efbe5d6b", - }, - { - name: "post-header-key-sort", - request: { - protocol: "https:", - method: "POST", - hostname: "example.amazonaws.com", - query: {}, - headers: { - host: "example.amazonaws.com", - "my-header1": "value1", - "x-amz-date": "20150830T123600Z", - }, - path: "/", - }, - authorization: "AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;my-header1;x-amz-date, Signature=c5410059b04c1ee005303aed430f6e6645f61f4dc9e1461ec8f8916fdf18852c", - }, - { - name: "post-header-value-case", - request: { - protocol: "https:", - method: "POST", - hostname: "example.amazonaws.com", - query: {}, - headers: { - host: "example.amazonaws.com", - "my-header1": "VALUE1", - "x-amz-date": "20150830T123600Z", - }, - path: "/", - }, - authorization: "AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;my-header1;x-amz-date, Signature=cdbc9802e29d2942e5e10b5bccfdd67c5f22c7c4e8ae67b53629efa58b974b7d", - }, - { - name: "post-sts-header-after", - request: { - protocol: "https:", - method: "POST", - hostname: "example.amazonaws.com", - query: {}, - headers: { - host: "example.amazonaws.com", - "x-amz-date": "20150830T123600Z", - }, - path: "/", - }, - authorization: "AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=5da7c1a2acd57cee7505fc6676e4e544621c30862966e37dddb68e92efbe5d6b", - }, - { - name: "post-sts-header-before", - request: { - protocol: "https:", - method: "POST", - hostname: "example.amazonaws.com", - query: {}, - headers: { - host: "example.amazonaws.com", - "x-amz-date": "20150830T123600Z", - "x-amz-security-token": "AQoDYXdzEPT//////////wEXAMPLEtc764bNrC9SAPBSM22wDOk4x4HIZ8j4FZTwdQWLWsKWHGBuFqwAeMicRXmxfpSPfIeoIYRqTflfKD8YUuwthAx7mSEI/qkPpKPi/kMcGdQrmGdeehM4IC1NtBmUpp2wUE8phUZampKsburEDy0KPkyQDYwT7WZ0wq5VSXDvp75YU9HFvlRd8Tx6q6fE8YQcHNVXAkiY9q6d+xo0rKwT38xVqr7ZD0u0iPPkUL64lIZbqBAz+scqKmlzm8FDrypNC9Yjc8fPOLn9FX9KSYvKTr4rvx3iSIlTJabIQwj2ICCR/oLxBA==", - }, - path: "/", - }, - authorization: "AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date;x-amz-security-token, Signature=85d96828115b5dc0cfc3bd16ad9e210dd772bbebba041836c64533a82be05ead", - }, - { - name: "post-vanilla", - request: { - protocol: "https:", - method: "POST", - hostname: "example.amazonaws.com", - query: {}, - headers: { - host: "example.amazonaws.com", - "x-amz-date": "20150830T123600Z", - }, - path: "/", - }, - authorization: "AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=5da7c1a2acd57cee7505fc6676e4e544621c30862966e37dddb68e92efbe5d6b", - }, - { - name: "post-vanilla-empty-query-value", - request: { - protocol: "https:", - method: "POST", - hostname: "example.amazonaws.com", - query: { - Param1: "value1", - }, - headers: { - host: "example.amazonaws.com", - "x-amz-date": "20150830T123600Z", - }, - path: "/", - }, - authorization: "AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=28038455d6de14eafc1f9222cf5aa6f1a96197d7deb8263271d420d138af7f11", - }, - { - name: "post-vanilla-query", - request: { - protocol: "https:", - method: "POST", - hostname: "example.amazonaws.com", - query: { - Param1: "value1", - }, - headers: { - host: "example.amazonaws.com", - "x-amz-date": "20150830T123600Z", - }, - path: "/", - }, - authorization: "AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=28038455d6de14eafc1f9222cf5aa6f1a96197d7deb8263271d420d138af7f11", - }, - { - name: "post-vanilla-query-nonunreserved", - request: { - protocol: "https:", - method: "POST", - hostname: "example.amazonaws.com", - query: { - "@#$%^": "", - "+": '/,?><`";:\\|][{}', - }, - headers: { - host: "example.amazonaws.com", - "x-amz-date": "20150830T123600Z", - }, - path: "/", - }, - authorization: "AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=66c82657c86e26fb25238d0e69f011edc4c6df5ae71119d7cb98ed9b87393c1e", - }, - { - name: "post-vanilla-query-space", - request: { - protocol: "https:", - method: "POST", - hostname: "example.amazonaws.com", - query: { - p: "", - }, - headers: { - host: "example.amazonaws.com", - "x-amz-date": "20150830T123600Z", - }, - path: "/", - }, - authorization: "AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=e71688addb58a26418614085fb730ba3faa623b461c17f48f2fbdb9361b94a9b", - }, - { - name: "post-x-www-form-urlencoded", - request: { - protocol: "https:", - method: "POST", - hostname: "example.amazonaws.com", - query: {}, - headers: { - "content-type": "application/x-www-form-urlencoded", - host: "example.amazonaws.com", - "x-amz-date": "20150830T123600Z", - }, - body: "Param1=value1", - path: "/", - }, - authorization: "AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=ff11897932ad3f4e8b18135d722051e5ac45fc38421b1da7b9d196a0fe09473a", - }, - { - name: "post-x-www-form-urlencoded-parameters", - request: { - protocol: "https:", - method: "POST", - hostname: "example.amazonaws.com", - query: {}, - headers: { - "content-type": "application/x-www-form-urlencoded; charset=utf8", - host: "example.amazonaws.com", - "x-amz-date": "20150830T123600Z", - }, - body: "Param1=value1", - path: "/", - }, - authorization: "AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=1a72ec8f64bd914b0e42e42607c7fbce7fb2c7465f63e3092b3b0d39fa77a6fe", - }, -]; diff --git a/node_modules/@smithy/signature-v4/dist-cjs/utilDate.js b/node_modules/@smithy/signature-v4/dist-cjs/utilDate.js deleted file mode 100644 index 83b0d943..00000000 --- a/node_modules/@smithy/signature-v4/dist-cjs/utilDate.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.toDate = exports.iso8601 = void 0; -const iso8601 = (time) => (0, exports.toDate)(time) - .toISOString() - .replace(/\.\d{3}Z$/, "Z"); -exports.iso8601 = iso8601; -const toDate = (time) => { - if (typeof time === "number") { - return new Date(time * 1000); - } - if (typeof time === "string") { - if (Number(time)) { - return new Date(Number(time) * 1000); - } - return new Date(time); - } - return time; -}; -exports.toDate = toDate; diff --git a/node_modules/@smithy/signature-v4/dist-es/SignatureV4.js b/node_modules/@smithy/signature-v4/dist-es/SignatureV4.js deleted file mode 100644 index 1c7be1f0..00000000 --- a/node_modules/@smithy/signature-v4/dist-es/SignatureV4.js +++ /dev/null @@ -1,190 +0,0 @@ -import { HeaderMarshaller } from "@smithy/eventstream-codec"; -import { toHex } from "@smithy/util-hex-encoding"; -import { normalizeProvider } from "@smithy/util-middleware"; -import { fromUtf8, toUint8Array, toUtf8 } from "@smithy/util-utf8"; -import { ALGORITHM_IDENTIFIER, ALGORITHM_QUERY_PARAM, AMZ_DATE_HEADER, AMZ_DATE_QUERY_PARAM, AUTH_HEADER, CREDENTIAL_QUERY_PARAM, EVENT_ALGORITHM_IDENTIFIER, EXPIRES_QUERY_PARAM, MAX_PRESIGNED_TTL, SHA256_HEADER, SIGNATURE_QUERY_PARAM, SIGNED_HEADERS_QUERY_PARAM, TOKEN_HEADER, TOKEN_QUERY_PARAM, } from "./constants"; -import { createScope, getSigningKey } from "./credentialDerivation"; -import { getCanonicalHeaders } from "./getCanonicalHeaders"; -import { getCanonicalQuery } from "./getCanonicalQuery"; -import { getPayloadHash } from "./getPayloadHash"; -import { hasHeader } from "./headerUtil"; -import { moveHeadersToQuery } from "./moveHeadersToQuery"; -import { prepareRequest } from "./prepareRequest"; -import { iso8601 } from "./utilDate"; -export class SignatureV4 { - constructor({ applyChecksum, credentials, region, service, sha256, uriEscapePath = true, }) { - this.headerMarshaller = new HeaderMarshaller(toUtf8, fromUtf8); - this.service = service; - this.sha256 = sha256; - this.uriEscapePath = uriEscapePath; - this.applyChecksum = typeof applyChecksum === "boolean" ? applyChecksum : true; - this.regionProvider = normalizeProvider(region); - this.credentialProvider = normalizeProvider(credentials); - } - async presign(originalRequest, options = {}) { - const { signingDate = new Date(), expiresIn = 3600, unsignableHeaders, unhoistableHeaders, signableHeaders, signingRegion, signingService, } = options; - const credentials = await this.credentialProvider(); - this.validateResolvedCredentials(credentials); - const region = signingRegion ?? (await this.regionProvider()); - const { longDate, shortDate } = formatDate(signingDate); - if (expiresIn > MAX_PRESIGNED_TTL) { - return Promise.reject("Signature version 4 presigned URLs" + " must have an expiration date less than one week in" + " the future"); - } - const scope = createScope(shortDate, region, signingService ?? this.service); - const request = moveHeadersToQuery(prepareRequest(originalRequest), { unhoistableHeaders }); - if (credentials.sessionToken) { - request.query[TOKEN_QUERY_PARAM] = credentials.sessionToken; - } - request.query[ALGORITHM_QUERY_PARAM] = ALGORITHM_IDENTIFIER; - request.query[CREDENTIAL_QUERY_PARAM] = `${credentials.accessKeyId}/${scope}`; - request.query[AMZ_DATE_QUERY_PARAM] = longDate; - request.query[EXPIRES_QUERY_PARAM] = expiresIn.toString(10); - const canonicalHeaders = getCanonicalHeaders(request, unsignableHeaders, signableHeaders); - request.query[SIGNED_HEADERS_QUERY_PARAM] = getCanonicalHeaderList(canonicalHeaders); - request.query[SIGNATURE_QUERY_PARAM] = await this.getSignature(longDate, scope, this.getSigningKey(credentials, region, shortDate, signingService), this.createCanonicalRequest(request, canonicalHeaders, await getPayloadHash(originalRequest, this.sha256))); - return request; - } - async sign(toSign, options) { - if (typeof toSign === "string") { - return this.signString(toSign, options); - } - else if (toSign.headers && toSign.payload) { - return this.signEvent(toSign, options); - } - else if (toSign.message) { - return this.signMessage(toSign, options); - } - else { - return this.signRequest(toSign, options); - } - } - async signEvent({ headers, payload }, { signingDate = new Date(), priorSignature, signingRegion, signingService }) { - const region = signingRegion ?? (await this.regionProvider()); - const { shortDate, longDate } = formatDate(signingDate); - const scope = createScope(shortDate, region, signingService ?? this.service); - const hashedPayload = await getPayloadHash({ headers: {}, body: payload }, this.sha256); - const hash = new this.sha256(); - hash.update(headers); - const hashedHeaders = toHex(await hash.digest()); - const stringToSign = [ - EVENT_ALGORITHM_IDENTIFIER, - longDate, - scope, - priorSignature, - hashedHeaders, - hashedPayload, - ].join("\n"); - return this.signString(stringToSign, { signingDate, signingRegion: region, signingService }); - } - async signMessage(signableMessage, { signingDate = new Date(), signingRegion, signingService }) { - const promise = this.signEvent({ - headers: this.headerMarshaller.format(signableMessage.message.headers), - payload: signableMessage.message.body, - }, { - signingDate, - signingRegion, - signingService, - priorSignature: signableMessage.priorSignature, - }); - return promise.then((signature) => { - return { message: signableMessage.message, signature }; - }); - } - async signString(stringToSign, { signingDate = new Date(), signingRegion, signingService } = {}) { - const credentials = await this.credentialProvider(); - this.validateResolvedCredentials(credentials); - const region = signingRegion ?? (await this.regionProvider()); - const { shortDate } = formatDate(signingDate); - const hash = new this.sha256(await this.getSigningKey(credentials, region, shortDate, signingService)); - hash.update(toUint8Array(stringToSign)); - return toHex(await hash.digest()); - } - async signRequest(requestToSign, { signingDate = new Date(), signableHeaders, unsignableHeaders, signingRegion, signingService, } = {}) { - const credentials = await this.credentialProvider(); - this.validateResolvedCredentials(credentials); - const region = signingRegion ?? (await this.regionProvider()); - const request = prepareRequest(requestToSign); - const { longDate, shortDate } = formatDate(signingDate); - const scope = createScope(shortDate, region, signingService ?? this.service); - request.headers[AMZ_DATE_HEADER] = longDate; - if (credentials.sessionToken) { - request.headers[TOKEN_HEADER] = credentials.sessionToken; - } - const payloadHash = await getPayloadHash(request, this.sha256); - if (!hasHeader(SHA256_HEADER, request.headers) && this.applyChecksum) { - request.headers[SHA256_HEADER] = payloadHash; - } - const canonicalHeaders = getCanonicalHeaders(request, unsignableHeaders, signableHeaders); - const signature = await this.getSignature(longDate, scope, this.getSigningKey(credentials, region, shortDate, signingService), this.createCanonicalRequest(request, canonicalHeaders, payloadHash)); - request.headers[AUTH_HEADER] = - `${ALGORITHM_IDENTIFIER} ` + - `Credential=${credentials.accessKeyId}/${scope}, ` + - `SignedHeaders=${getCanonicalHeaderList(canonicalHeaders)}, ` + - `Signature=${signature}`; - return request; - } - createCanonicalRequest(request, canonicalHeaders, payloadHash) { - const sortedHeaders = Object.keys(canonicalHeaders).sort(); - return `${request.method} -${this.getCanonicalPath(request)} -${getCanonicalQuery(request)} -${sortedHeaders.map((name) => `${name}:${canonicalHeaders[name]}`).join("\n")} - -${sortedHeaders.join(";")} -${payloadHash}`; - } - async createStringToSign(longDate, credentialScope, canonicalRequest) { - const hash = new this.sha256(); - hash.update(toUint8Array(canonicalRequest)); - const hashedRequest = await hash.digest(); - return `${ALGORITHM_IDENTIFIER} -${longDate} -${credentialScope} -${toHex(hashedRequest)}`; - } - getCanonicalPath({ path }) { - if (this.uriEscapePath) { - const normalizedPathSegments = []; - for (const pathSegment of path.split("/")) { - if (pathSegment?.length === 0) - continue; - if (pathSegment === ".") - continue; - if (pathSegment === "..") { - normalizedPathSegments.pop(); - } - else { - normalizedPathSegments.push(pathSegment); - } - } - const normalizedPath = `${path?.startsWith("/") ? "/" : ""}${normalizedPathSegments.join("/")}${normalizedPathSegments.length > 0 && path?.endsWith("/") ? "/" : ""}`; - const doubleEncoded = encodeURIComponent(normalizedPath); - return doubleEncoded.replace(/%2F/g, "/"); - } - return path; - } - async getSignature(longDate, credentialScope, keyPromise, canonicalRequest) { - const stringToSign = await this.createStringToSign(longDate, credentialScope, canonicalRequest); - const hash = new this.sha256(await keyPromise); - hash.update(toUint8Array(stringToSign)); - return toHex(await hash.digest()); - } - getSigningKey(credentials, region, shortDate, service) { - return getSigningKey(this.sha256, credentials, shortDate, region, service || this.service); - } - validateResolvedCredentials(credentials) { - if (typeof credentials !== "object" || - typeof credentials.accessKeyId !== "string" || - typeof credentials.secretAccessKey !== "string") { - throw new Error("Resolved credential object is not valid"); - } - } -} -const formatDate = (now) => { - const longDate = iso8601(now).replace(/[\-:]/g, ""); - return { - longDate, - shortDate: longDate.slice(0, 8), - }; -}; -const getCanonicalHeaderList = (headers) => Object.keys(headers).sort().join(";"); diff --git a/node_modules/@smithy/signature-v4/dist-es/cloneRequest.js b/node_modules/@smithy/signature-v4/dist-es/cloneRequest.js deleted file mode 100644 index f534646c..00000000 --- a/node_modules/@smithy/signature-v4/dist-es/cloneRequest.js +++ /dev/null @@ -1,12 +0,0 @@ -export const cloneRequest = ({ headers, query, ...rest }) => ({ - ...rest, - headers: { ...headers }, - query: query ? cloneQuery(query) : undefined, -}); -export const cloneQuery = (query) => Object.keys(query).reduce((carry, paramName) => { - const param = query[paramName]; - return { - ...carry, - [paramName]: Array.isArray(param) ? [...param] : param, - }; -}, {}); diff --git a/node_modules/@smithy/signature-v4/dist-es/constants.js b/node_modules/@smithy/signature-v4/dist-es/constants.js deleted file mode 100644 index 602728ad..00000000 --- a/node_modules/@smithy/signature-v4/dist-es/constants.js +++ /dev/null @@ -1,43 +0,0 @@ -export const ALGORITHM_QUERY_PARAM = "X-Amz-Algorithm"; -export const CREDENTIAL_QUERY_PARAM = "X-Amz-Credential"; -export const AMZ_DATE_QUERY_PARAM = "X-Amz-Date"; -export const SIGNED_HEADERS_QUERY_PARAM = "X-Amz-SignedHeaders"; -export const EXPIRES_QUERY_PARAM = "X-Amz-Expires"; -export const SIGNATURE_QUERY_PARAM = "X-Amz-Signature"; -export const TOKEN_QUERY_PARAM = "X-Amz-Security-Token"; -export const REGION_SET_PARAM = "X-Amz-Region-Set"; -export const AUTH_HEADER = "authorization"; -export const AMZ_DATE_HEADER = AMZ_DATE_QUERY_PARAM.toLowerCase(); -export const DATE_HEADER = "date"; -export const GENERATED_HEADERS = [AUTH_HEADER, AMZ_DATE_HEADER, DATE_HEADER]; -export const SIGNATURE_HEADER = SIGNATURE_QUERY_PARAM.toLowerCase(); -export const SHA256_HEADER = "x-amz-content-sha256"; -export const TOKEN_HEADER = TOKEN_QUERY_PARAM.toLowerCase(); -export const HOST_HEADER = "host"; -export const ALWAYS_UNSIGNABLE_HEADERS = { - authorization: true, - "cache-control": true, - connection: true, - expect: true, - from: true, - "keep-alive": true, - "max-forwards": true, - pragma: true, - referer: true, - te: true, - trailer: true, - "transfer-encoding": true, - upgrade: true, - "user-agent": true, - "x-amzn-trace-id": true, -}; -export const PROXY_HEADER_PATTERN = /^proxy-/; -export const SEC_HEADER_PATTERN = /^sec-/; -export const UNSIGNABLE_PATTERNS = [/^proxy-/i, /^sec-/i]; -export const ALGORITHM_IDENTIFIER = "AWS4-HMAC-SHA256"; -export const ALGORITHM_IDENTIFIER_V4A = "AWS4-ECDSA-P256-SHA256"; -export const EVENT_ALGORITHM_IDENTIFIER = "AWS4-HMAC-SHA256-PAYLOAD"; -export const UNSIGNED_PAYLOAD = "UNSIGNED-PAYLOAD"; -export const MAX_CACHE_SIZE = 50; -export const KEY_TYPE_IDENTIFIER = "aws4_request"; -export const MAX_PRESIGNED_TTL = 60 * 60 * 24 * 7; diff --git a/node_modules/@smithy/signature-v4/dist-es/credentialDerivation.js b/node_modules/@smithy/signature-v4/dist-es/credentialDerivation.js deleted file mode 100644 index b16ab8c7..00000000 --- a/node_modules/@smithy/signature-v4/dist-es/credentialDerivation.js +++ /dev/null @@ -1,33 +0,0 @@ -import { toHex } from "@smithy/util-hex-encoding"; -import { toUint8Array } from "@smithy/util-utf8"; -import { KEY_TYPE_IDENTIFIER, MAX_CACHE_SIZE } from "./constants"; -const signingKeyCache = {}; -const cacheQueue = []; -export const createScope = (shortDate, region, service) => `${shortDate}/${region}/${service}/${KEY_TYPE_IDENTIFIER}`; -export const getSigningKey = async (sha256Constructor, credentials, shortDate, region, service) => { - const credsHash = await hmac(sha256Constructor, credentials.secretAccessKey, credentials.accessKeyId); - const cacheKey = `${shortDate}:${region}:${service}:${toHex(credsHash)}:${credentials.sessionToken}`; - if (cacheKey in signingKeyCache) { - return signingKeyCache[cacheKey]; - } - cacheQueue.push(cacheKey); - while (cacheQueue.length > MAX_CACHE_SIZE) { - delete signingKeyCache[cacheQueue.shift()]; - } - let key = `AWS4${credentials.secretAccessKey}`; - for (const signable of [shortDate, region, service, KEY_TYPE_IDENTIFIER]) { - key = await hmac(sha256Constructor, key, signable); - } - return (signingKeyCache[cacheKey] = key); -}; -export const clearCredentialCache = () => { - cacheQueue.length = 0; - Object.keys(signingKeyCache).forEach((cacheKey) => { - delete signingKeyCache[cacheKey]; - }); -}; -const hmac = (ctor, secret, data) => { - const hash = new ctor(secret); - hash.update(toUint8Array(data)); - return hash.digest(); -}; diff --git a/node_modules/@smithy/signature-v4/dist-es/getCanonicalHeaders.js b/node_modules/@smithy/signature-v4/dist-es/getCanonicalHeaders.js deleted file mode 100644 index 33211255..00000000 --- a/node_modules/@smithy/signature-v4/dist-es/getCanonicalHeaders.js +++ /dev/null @@ -1,20 +0,0 @@ -import { ALWAYS_UNSIGNABLE_HEADERS, PROXY_HEADER_PATTERN, SEC_HEADER_PATTERN } from "./constants"; -export const getCanonicalHeaders = ({ headers }, unsignableHeaders, signableHeaders) => { - const canonical = {}; - for (const headerName of Object.keys(headers).sort()) { - if (headers[headerName] == undefined) { - continue; - } - const canonicalHeaderName = headerName.toLowerCase(); - if (canonicalHeaderName in ALWAYS_UNSIGNABLE_HEADERS || - unsignableHeaders?.has(canonicalHeaderName) || - PROXY_HEADER_PATTERN.test(canonicalHeaderName) || - SEC_HEADER_PATTERN.test(canonicalHeaderName)) { - if (!signableHeaders || (signableHeaders && !signableHeaders.has(canonicalHeaderName))) { - continue; - } - } - canonical[canonicalHeaderName] = headers[headerName].trim().replace(/\s+/g, " "); - } - return canonical; -}; diff --git a/node_modules/@smithy/signature-v4/dist-es/getCanonicalQuery.js b/node_modules/@smithy/signature-v4/dist-es/getCanonicalQuery.js deleted file mode 100644 index b21ea443..00000000 --- a/node_modules/@smithy/signature-v4/dist-es/getCanonicalQuery.js +++ /dev/null @@ -1,27 +0,0 @@ -import { escapeUri } from "@smithy/util-uri-escape"; -import { SIGNATURE_HEADER } from "./constants"; -export const getCanonicalQuery = ({ query = {} }) => { - const keys = []; - const serialized = {}; - for (const key of Object.keys(query).sort()) { - if (key.toLowerCase() === SIGNATURE_HEADER) { - continue; - } - keys.push(key); - const value = query[key]; - if (typeof value === "string") { - serialized[key] = `${escapeUri(key)}=${escapeUri(value)}`; - } - else if (Array.isArray(value)) { - serialized[key] = value - .slice(0) - .reduce((encoded, value) => encoded.concat([`${escapeUri(key)}=${escapeUri(value)}`]), []) - .sort() - .join("&"); - } - } - return keys - .map((key) => serialized[key]) - .filter((serialized) => serialized) - .join("&"); -}; diff --git a/node_modules/@smithy/signature-v4/dist-es/getPayloadHash.js b/node_modules/@smithy/signature-v4/dist-es/getPayloadHash.js deleted file mode 100644 index cba165c3..00000000 --- a/node_modules/@smithy/signature-v4/dist-es/getPayloadHash.js +++ /dev/null @@ -1,20 +0,0 @@ -import { isArrayBuffer } from "@smithy/is-array-buffer"; -import { toHex } from "@smithy/util-hex-encoding"; -import { toUint8Array } from "@smithy/util-utf8"; -import { SHA256_HEADER, UNSIGNED_PAYLOAD } from "./constants"; -export const getPayloadHash = async ({ headers, body }, hashConstructor) => { - for (const headerName of Object.keys(headers)) { - if (headerName.toLowerCase() === SHA256_HEADER) { - return headers[headerName]; - } - } - if (body == undefined) { - return "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"; - } - else if (typeof body === "string" || ArrayBuffer.isView(body) || isArrayBuffer(body)) { - const hashCtor = new hashConstructor(); - hashCtor.update(toUint8Array(body)); - return toHex(await hashCtor.digest()); - } - return UNSIGNED_PAYLOAD; -}; diff --git a/node_modules/@smithy/signature-v4/dist-es/headerUtil.js b/node_modules/@smithy/signature-v4/dist-es/headerUtil.js deleted file mode 100644 index e502cbbc..00000000 --- a/node_modules/@smithy/signature-v4/dist-es/headerUtil.js +++ /dev/null @@ -1,26 +0,0 @@ -export const hasHeader = (soughtHeader, headers) => { - soughtHeader = soughtHeader.toLowerCase(); - for (const headerName of Object.keys(headers)) { - if (soughtHeader === headerName.toLowerCase()) { - return true; - } - } - return false; -}; -export const getHeaderValue = (soughtHeader, headers) => { - soughtHeader = soughtHeader.toLowerCase(); - for (const headerName of Object.keys(headers)) { - if (soughtHeader === headerName.toLowerCase()) { - return headers[headerName]; - } - } - return undefined; -}; -export const deleteHeader = (soughtHeader, headers) => { - soughtHeader = soughtHeader.toLowerCase(); - for (const headerName of Object.keys(headers)) { - if (soughtHeader === headerName.toLowerCase()) { - delete headers[headerName]; - } - } -}; diff --git a/node_modules/@smithy/signature-v4/dist-es/index.js b/node_modules/@smithy/signature-v4/dist-es/index.js deleted file mode 100644 index 7bb33c23..00000000 --- a/node_modules/@smithy/signature-v4/dist-es/index.js +++ /dev/null @@ -1,7 +0,0 @@ -export * from "./SignatureV4"; -export { getCanonicalHeaders } from "./getCanonicalHeaders"; -export { getCanonicalQuery } from "./getCanonicalQuery"; -export { getPayloadHash } from "./getPayloadHash"; -export { moveHeadersToQuery } from "./moveHeadersToQuery"; -export { prepareRequest } from "./prepareRequest"; -export * from "./credentialDerivation"; diff --git a/node_modules/@smithy/signature-v4/dist-es/moveHeadersToQuery.js b/node_modules/@smithy/signature-v4/dist-es/moveHeadersToQuery.js deleted file mode 100644 index 29ef4165..00000000 --- a/node_modules/@smithy/signature-v4/dist-es/moveHeadersToQuery.js +++ /dev/null @@ -1,16 +0,0 @@ -import { cloneRequest } from "./cloneRequest"; -export const moveHeadersToQuery = (request, options = {}) => { - const { headers, query = {} } = typeof request.clone === "function" ? request.clone() : cloneRequest(request); - for (const name of Object.keys(headers)) { - const lname = name.toLowerCase(); - if (lname.slice(0, 6) === "x-amz-" && !options.unhoistableHeaders?.has(lname)) { - query[name] = headers[name]; - delete headers[name]; - } - } - return { - ...request, - headers, - query, - }; -}; diff --git a/node_modules/@smithy/signature-v4/dist-es/prepareRequest.js b/node_modules/@smithy/signature-v4/dist-es/prepareRequest.js deleted file mode 100644 index a88008e7..00000000 --- a/node_modules/@smithy/signature-v4/dist-es/prepareRequest.js +++ /dev/null @@ -1,11 +0,0 @@ -import { cloneRequest } from "./cloneRequest"; -import { GENERATED_HEADERS } from "./constants"; -export const prepareRequest = (request) => { - request = typeof request.clone === "function" ? request.clone() : cloneRequest(request); - for (const headerName of Object.keys(request.headers)) { - if (GENERATED_HEADERS.indexOf(headerName.toLowerCase()) > -1) { - delete request.headers[headerName]; - } - } - return request; -}; diff --git a/node_modules/@smithy/signature-v4/dist-es/suite.fixture.js b/node_modules/@smithy/signature-v4/dist-es/suite.fixture.js deleted file mode 100644 index bb704a99..00000000 --- a/node_modules/@smithy/signature-v4/dist-es/suite.fixture.js +++ /dev/null @@ -1,399 +0,0 @@ -export const region = "us-east-1"; -export const service = "service"; -export const credentials = { - accessKeyId: "AKIDEXAMPLE", - secretAccessKey: "wJalrXUtnFEMI/K7MDENG+bPxRfiCYEXAMPLEKEY", -}; -export const signingDate = new Date("2015-08-30T12:36:00Z"); -export const requests = [ - { - name: "get-header-key-duplicate", - request: { - protocol: "https:", - method: "GET", - hostname: "example.amazonaws.com", - query: {}, - headers: { - host: "example.amazonaws.com", - "my-header1": "value2,value2,value1", - "x-amz-date": "20150830T123600Z", - }, - path: "/", - }, - authorization: "AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;my-header1;x-amz-date, Signature=c9d5ea9f3f72853aea855b47ea873832890dbdd183b4468f858259531a5138ea", - }, - { - name: "get-header-value-multiline", - request: { - protocol: "https:", - method: "GET", - hostname: "example.amazonaws.com", - query: {}, - headers: { - host: "example.amazonaws.com", - "my-header1": "value1,value2,value3", - "x-amz-date": "20150830T123600Z", - }, - path: "/", - }, - authorization: "AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;my-header1;x-amz-date, Signature=ba17b383a53190154eb5fa66a1b836cc297cc0a3d70a5d00705980573d8ff790", - }, - { - name: "get-header-value-order", - request: { - protocol: "https:", - method: "GET", - hostname: "example.amazonaws.com", - query: {}, - headers: { - host: "example.amazonaws.com", - "my-header1": "value4,value1,value3,value2", - "x-amz-date": "20150830T123600Z", - }, - path: "/", - }, - authorization: "AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;my-header1;x-amz-date, Signature=08c7e5a9acfcfeb3ab6b2185e75ce8b1deb5e634ec47601a50643f830c755c01", - }, - { - name: "get-header-value-trim", - request: { - protocol: "https:", - method: "GET", - hostname: "example.amazonaws.com", - query: {}, - headers: { - host: "example.amazonaws.com", - "my-header1": "value1", - "my-header2": '"a b c"', - "x-amz-date": "20150830T123600Z", - }, - path: "/", - }, - authorization: "AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;my-header1;my-header2;x-amz-date, Signature=acc3ed3afb60bb290fc8d2dd0098b9911fcaa05412b367055dee359757a9c736", - }, - { - name: "get-unreserved", - request: { - protocol: "https:", - method: "GET", - hostname: "example.amazonaws.com", - query: {}, - headers: { - host: "example.amazonaws.com", - "x-amz-date": "20150830T123600Z", - }, - path: "/-._~0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", - }, - authorization: "AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=07ef7494c76fa4850883e2b006601f940f8a34d404d0cfa977f52a65bbf5f24f", - }, - { - name: "get-utf8", - request: { - protocol: "https:", - method: "GET", - hostname: "example.amazonaws.com", - query: {}, - headers: { - host: "example.amazonaws.com", - "x-amz-date": "20150830T123600Z", - }, - path: "/ሴ", - }, - authorization: "AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=8318018e0b0f223aa2bbf98705b62bb787dc9c0e678f255a891fd03141be5d85", - }, - { - name: "get-vanilla", - request: { - protocol: "https:", - method: "GET", - hostname: "example.amazonaws.com", - query: {}, - headers: { - host: "example.amazonaws.com", - "x-amz-date": "20150830T123600Z", - }, - path: "/", - }, - authorization: "AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=5fa00fa31553b73ebf1942676e86291e8372ff2a2260956d9b8aae1d763fbf31", - }, - { - name: "get-vanilla-empty-query-key", - request: { - protocol: "https:", - method: "GET", - hostname: "example.amazonaws.com", - query: { - Param1: "value1", - }, - headers: { - host: "example.amazonaws.com", - "x-amz-date": "20150830T123600Z", - }, - path: "/", - }, - authorization: "AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=a67d582fa61cc504c4bae71f336f98b97f1ea3c7a6bfe1b6e45aec72011b9aeb", - }, - { - name: "get-vanilla-query", - request: { - protocol: "https:", - method: "GET", - hostname: "example.amazonaws.com", - query: {}, - headers: { - host: "example.amazonaws.com", - "x-amz-date": "20150830T123600Z", - }, - path: "/", - }, - authorization: "AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=5fa00fa31553b73ebf1942676e86291e8372ff2a2260956d9b8aae1d763fbf31", - }, - { - name: "get-vanilla-query-order-key-case", - request: { - protocol: "https:", - method: "GET", - hostname: "example.amazonaws.com", - query: { - Param2: "value2", - Param1: "value1", - }, - headers: { - host: "example.amazonaws.com", - "x-amz-date": "20150830T123600Z", - }, - path: "/", - }, - authorization: "AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=b97d918cfa904a5beff61c982a1b6f458b799221646efd99d3219ec94cdf2500", - }, - { - name: "get-vanilla-query-unreserved", - request: { - protocol: "https:", - method: "GET", - hostname: "example.amazonaws.com", - query: { - "-._~0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz": "-._~0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz", - }, - headers: { - host: "example.amazonaws.com", - "x-amz-date": "20150830T123600Z", - }, - path: "/", - }, - authorization: "AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=9c3e54bfcdf0b19771a7f523ee5669cdf59bc7cc0884027167c21bb143a40197", - }, - { - name: "get-vanilla-utf8-query", - request: { - protocol: "https:", - method: "GET", - hostname: "example.amazonaws.com", - query: { - ሴ: "bar", - }, - headers: { - host: "example.amazonaws.com", - "x-amz-date": "20150830T123600Z", - }, - path: "/", - }, - authorization: "AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=2cdec8eed098649ff3a119c94853b13c643bcf08f8b0a1d91e12c9027818dd04", - }, - { - name: "post-header-key-case", - request: { - protocol: "https:", - method: "POST", - hostname: "example.amazonaws.com", - query: {}, - headers: { - host: "example.amazonaws.com", - "x-amz-date": "20150830T123600Z", - }, - path: "/", - }, - authorization: "AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=5da7c1a2acd57cee7505fc6676e4e544621c30862966e37dddb68e92efbe5d6b", - }, - { - name: "post-header-key-sort", - request: { - protocol: "https:", - method: "POST", - hostname: "example.amazonaws.com", - query: {}, - headers: { - host: "example.amazonaws.com", - "my-header1": "value1", - "x-amz-date": "20150830T123600Z", - }, - path: "/", - }, - authorization: "AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;my-header1;x-amz-date, Signature=c5410059b04c1ee005303aed430f6e6645f61f4dc9e1461ec8f8916fdf18852c", - }, - { - name: "post-header-value-case", - request: { - protocol: "https:", - method: "POST", - hostname: "example.amazonaws.com", - query: {}, - headers: { - host: "example.amazonaws.com", - "my-header1": "VALUE1", - "x-amz-date": "20150830T123600Z", - }, - path: "/", - }, - authorization: "AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;my-header1;x-amz-date, Signature=cdbc9802e29d2942e5e10b5bccfdd67c5f22c7c4e8ae67b53629efa58b974b7d", - }, - { - name: "post-sts-header-after", - request: { - protocol: "https:", - method: "POST", - hostname: "example.amazonaws.com", - query: {}, - headers: { - host: "example.amazonaws.com", - "x-amz-date": "20150830T123600Z", - }, - path: "/", - }, - authorization: "AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=5da7c1a2acd57cee7505fc6676e4e544621c30862966e37dddb68e92efbe5d6b", - }, - { - name: "post-sts-header-before", - request: { - protocol: "https:", - method: "POST", - hostname: "example.amazonaws.com", - query: {}, - headers: { - host: "example.amazonaws.com", - "x-amz-date": "20150830T123600Z", - "x-amz-security-token": "AQoDYXdzEPT//////////wEXAMPLEtc764bNrC9SAPBSM22wDOk4x4HIZ8j4FZTwdQWLWsKWHGBuFqwAeMicRXmxfpSPfIeoIYRqTflfKD8YUuwthAx7mSEI/qkPpKPi/kMcGdQrmGdeehM4IC1NtBmUpp2wUE8phUZampKsburEDy0KPkyQDYwT7WZ0wq5VSXDvp75YU9HFvlRd8Tx6q6fE8YQcHNVXAkiY9q6d+xo0rKwT38xVqr7ZD0u0iPPkUL64lIZbqBAz+scqKmlzm8FDrypNC9Yjc8fPOLn9FX9KSYvKTr4rvx3iSIlTJabIQwj2ICCR/oLxBA==", - }, - path: "/", - }, - authorization: "AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date;x-amz-security-token, Signature=85d96828115b5dc0cfc3bd16ad9e210dd772bbebba041836c64533a82be05ead", - }, - { - name: "post-vanilla", - request: { - protocol: "https:", - method: "POST", - hostname: "example.amazonaws.com", - query: {}, - headers: { - host: "example.amazonaws.com", - "x-amz-date": "20150830T123600Z", - }, - path: "/", - }, - authorization: "AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=5da7c1a2acd57cee7505fc6676e4e544621c30862966e37dddb68e92efbe5d6b", - }, - { - name: "post-vanilla-empty-query-value", - request: { - protocol: "https:", - method: "POST", - hostname: "example.amazonaws.com", - query: { - Param1: "value1", - }, - headers: { - host: "example.amazonaws.com", - "x-amz-date": "20150830T123600Z", - }, - path: "/", - }, - authorization: "AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=28038455d6de14eafc1f9222cf5aa6f1a96197d7deb8263271d420d138af7f11", - }, - { - name: "post-vanilla-query", - request: { - protocol: "https:", - method: "POST", - hostname: "example.amazonaws.com", - query: { - Param1: "value1", - }, - headers: { - host: "example.amazonaws.com", - "x-amz-date": "20150830T123600Z", - }, - path: "/", - }, - authorization: "AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=28038455d6de14eafc1f9222cf5aa6f1a96197d7deb8263271d420d138af7f11", - }, - { - name: "post-vanilla-query-nonunreserved", - request: { - protocol: "https:", - method: "POST", - hostname: "example.amazonaws.com", - query: { - "@#$%^": "", - "+": '/,?><`";:\\|][{}', - }, - headers: { - host: "example.amazonaws.com", - "x-amz-date": "20150830T123600Z", - }, - path: "/", - }, - authorization: "AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=66c82657c86e26fb25238d0e69f011edc4c6df5ae71119d7cb98ed9b87393c1e", - }, - { - name: "post-vanilla-query-space", - request: { - protocol: "https:", - method: "POST", - hostname: "example.amazonaws.com", - query: { - p: "", - }, - headers: { - host: "example.amazonaws.com", - "x-amz-date": "20150830T123600Z", - }, - path: "/", - }, - authorization: "AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=host;x-amz-date, Signature=e71688addb58a26418614085fb730ba3faa623b461c17f48f2fbdb9361b94a9b", - }, - { - name: "post-x-www-form-urlencoded", - request: { - protocol: "https:", - method: "POST", - hostname: "example.amazonaws.com", - query: {}, - headers: { - "content-type": "application/x-www-form-urlencoded", - host: "example.amazonaws.com", - "x-amz-date": "20150830T123600Z", - }, - body: "Param1=value1", - path: "/", - }, - authorization: "AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=ff11897932ad3f4e8b18135d722051e5ac45fc38421b1da7b9d196a0fe09473a", - }, - { - name: "post-x-www-form-urlencoded-parameters", - request: { - protocol: "https:", - method: "POST", - hostname: "example.amazonaws.com", - query: {}, - headers: { - "content-type": "application/x-www-form-urlencoded; charset=utf8", - host: "example.amazonaws.com", - "x-amz-date": "20150830T123600Z", - }, - body: "Param1=value1", - path: "/", - }, - authorization: "AWS4-HMAC-SHA256 Credential=AKIDEXAMPLE/20150830/us-east-1/service/aws4_request, SignedHeaders=content-type;host;x-amz-date, Signature=1a72ec8f64bd914b0e42e42607c7fbce7fb2c7465f63e3092b3b0d39fa77a6fe", - }, -]; diff --git a/node_modules/@smithy/signature-v4/dist-es/utilDate.js b/node_modules/@smithy/signature-v4/dist-es/utilDate.js deleted file mode 100644 index 4aad623e..00000000 --- a/node_modules/@smithy/signature-v4/dist-es/utilDate.js +++ /dev/null @@ -1,15 +0,0 @@ -export const iso8601 = (time) => toDate(time) - .toISOString() - .replace(/\.\d{3}Z$/, "Z"); -export const toDate = (time) => { - if (typeof time === "number") { - return new Date(time * 1000); - } - if (typeof time === "string") { - if (Number(time)) { - return new Date(Number(time) * 1000); - } - return new Date(time); - } - return time; -}; diff --git a/node_modules/@smithy/signature-v4/dist-types/SignatureV4.d.ts b/node_modules/@smithy/signature-v4/dist-types/SignatureV4.d.ts deleted file mode 100644 index 04466870..00000000 --- a/node_modules/@smithy/signature-v4/dist-types/SignatureV4.d.ts +++ /dev/null @@ -1,67 +0,0 @@ -import { AwsCredentialIdentity, ChecksumConstructor, EventSigner, EventSigningArguments, FormattedEvent, HashConstructor, HttpRequest, MessageSigner, Provider, RequestPresigner, RequestPresigningArguments, RequestSigner, RequestSigningArguments, SignableMessage, SignedMessage, SigningArguments, StringSigner } from "@smithy/types"; -export interface SignatureV4Init { - /** - * The service signing name. - */ - service: string; - /** - * The region name or a function that returns a promise that will be - * resolved with the region name. - */ - region: string | Provider; - /** - * The credentials with which the request should be signed or a function - * that returns a promise that will be resolved with credentials. - */ - credentials: AwsCredentialIdentity | Provider; - /** - * A constructor function for a hash object that will calculate SHA-256 HMAC - * checksums. - */ - sha256?: ChecksumConstructor | HashConstructor; - /** - * Whether to uri-escape the request URI path as part of computing the - * canonical request string. This is required for every AWS service, except - * Amazon S3, as of late 2017. - * - * @default [true] - */ - uriEscapePath?: boolean; - /** - * Whether to calculate a checksum of the request body and include it as - * either a request header (when signing) or as a query string parameter - * (when presigning). This is required for AWS Glacier and Amazon S3 and optional for - * every other AWS service as of late 2017. - * - * @default [true] - */ - applyChecksum?: boolean; -} -export interface SignatureV4CryptoInit { - sha256: ChecksumConstructor | HashConstructor; -} -export declare class SignatureV4 implements RequestPresigner, RequestSigner, StringSigner, EventSigner, MessageSigner { - private readonly service; - private readonly regionProvider; - private readonly credentialProvider; - private readonly sha256; - private readonly uriEscapePath; - private readonly applyChecksum; - private readonly headerMarshaller; - constructor({ applyChecksum, credentials, region, service, sha256, uriEscapePath, }: SignatureV4Init & SignatureV4CryptoInit); - presign(originalRequest: HttpRequest, options?: RequestPresigningArguments): Promise; - sign(stringToSign: string, options?: SigningArguments): Promise; - sign(event: FormattedEvent, options: EventSigningArguments): Promise; - sign(event: SignableMessage, options: SigningArguments): Promise; - sign(requestToSign: HttpRequest, options?: RequestSigningArguments): Promise; - private signEvent; - signMessage(signableMessage: SignableMessage, { signingDate, signingRegion, signingService }: SigningArguments): Promise; - private signString; - private signRequest; - private createCanonicalRequest; - private createStringToSign; - private getCanonicalPath; - private getSignature; - private getSigningKey; - private validateResolvedCredentials; -} diff --git a/node_modules/@smithy/signature-v4/dist-types/cloneRequest.d.ts b/node_modules/@smithy/signature-v4/dist-types/cloneRequest.d.ts deleted file mode 100644 index 0d7b3b98..00000000 --- a/node_modules/@smithy/signature-v4/dist-types/cloneRequest.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { HttpRequest, QueryParameterBag } from "@smithy/types"; -/** - * @internal - */ -export declare const cloneRequest: ({ headers, query, ...rest }: HttpRequest) => HttpRequest; -export declare const cloneQuery: (query: QueryParameterBag) => QueryParameterBag; diff --git a/node_modules/@smithy/signature-v4/dist-types/constants.d.ts b/node_modules/@smithy/signature-v4/dist-types/constants.d.ts deleted file mode 100644 index ea1cfb5d..00000000 --- a/node_modules/@smithy/signature-v4/dist-types/constants.d.ts +++ /dev/null @@ -1,43 +0,0 @@ -export declare const ALGORITHM_QUERY_PARAM = "X-Amz-Algorithm"; -export declare const CREDENTIAL_QUERY_PARAM = "X-Amz-Credential"; -export declare const AMZ_DATE_QUERY_PARAM = "X-Amz-Date"; -export declare const SIGNED_HEADERS_QUERY_PARAM = "X-Amz-SignedHeaders"; -export declare const EXPIRES_QUERY_PARAM = "X-Amz-Expires"; -export declare const SIGNATURE_QUERY_PARAM = "X-Amz-Signature"; -export declare const TOKEN_QUERY_PARAM = "X-Amz-Security-Token"; -export declare const REGION_SET_PARAM = "X-Amz-Region-Set"; -export declare const AUTH_HEADER = "authorization"; -export declare const AMZ_DATE_HEADER: string; -export declare const DATE_HEADER = "date"; -export declare const GENERATED_HEADERS: string[]; -export declare const SIGNATURE_HEADER: string; -export declare const SHA256_HEADER = "x-amz-content-sha256"; -export declare const TOKEN_HEADER: string; -export declare const HOST_HEADER = "host"; -export declare const ALWAYS_UNSIGNABLE_HEADERS: { - authorization: boolean; - "cache-control": boolean; - connection: boolean; - expect: boolean; - from: boolean; - "keep-alive": boolean; - "max-forwards": boolean; - pragma: boolean; - referer: boolean; - te: boolean; - trailer: boolean; - "transfer-encoding": boolean; - upgrade: boolean; - "user-agent": boolean; - "x-amzn-trace-id": boolean; -}; -export declare const PROXY_HEADER_PATTERN: RegExp; -export declare const SEC_HEADER_PATTERN: RegExp; -export declare const UNSIGNABLE_PATTERNS: RegExp[]; -export declare const ALGORITHM_IDENTIFIER = "AWS4-HMAC-SHA256"; -export declare const ALGORITHM_IDENTIFIER_V4A = "AWS4-ECDSA-P256-SHA256"; -export declare const EVENT_ALGORITHM_IDENTIFIER = "AWS4-HMAC-SHA256-PAYLOAD"; -export declare const UNSIGNED_PAYLOAD = "UNSIGNED-PAYLOAD"; -export declare const MAX_CACHE_SIZE = 50; -export declare const KEY_TYPE_IDENTIFIER = "aws4_request"; -export declare const MAX_PRESIGNED_TTL: number; diff --git a/node_modules/@smithy/signature-v4/dist-types/credentialDerivation.d.ts b/node_modules/@smithy/signature-v4/dist-types/credentialDerivation.d.ts deleted file mode 100644 index 73c41a0a..00000000 --- a/node_modules/@smithy/signature-v4/dist-types/credentialDerivation.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { AwsCredentialIdentity, ChecksumConstructor, HashConstructor } from "@smithy/types"; -/** - * Create a string describing the scope of credentials used to sign a request. - * - * @param shortDate The current calendar date in the form YYYYMMDD. - * @param region The AWS region in which the service resides. - * @param service The service to which the signed request is being sent. - */ -export declare const createScope: (shortDate: string, region: string, service: string) => string; -/** - * Derive a signing key from its composite parts - * - * @param sha256Constructor A constructor function that can instantiate SHA-256 - * hash objects. - * @param credentials The credentials with which the request will be - * signed. - * @param shortDate The current calendar date in the form YYYYMMDD. - * @param region The AWS region in which the service resides. - * @param service The service to which the signed request is being - * sent. - */ -export declare const getSigningKey: (sha256Constructor: ChecksumConstructor | HashConstructor, credentials: AwsCredentialIdentity, shortDate: string, region: string, service: string) => Promise; -/** - * @internal - */ -export declare const clearCredentialCache: () => void; diff --git a/node_modules/@smithy/signature-v4/dist-types/getCanonicalHeaders.d.ts b/node_modules/@smithy/signature-v4/dist-types/getCanonicalHeaders.d.ts deleted file mode 100644 index 2c3329ed..00000000 --- a/node_modules/@smithy/signature-v4/dist-types/getCanonicalHeaders.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { HeaderBag, HttpRequest } from "@smithy/types"; -/** - * @private - */ -export declare const getCanonicalHeaders: ({ headers }: HttpRequest, unsignableHeaders?: Set, signableHeaders?: Set) => HeaderBag; diff --git a/node_modules/@smithy/signature-v4/dist-types/getCanonicalQuery.d.ts b/node_modules/@smithy/signature-v4/dist-types/getCanonicalQuery.d.ts deleted file mode 100644 index f7edb057..00000000 --- a/node_modules/@smithy/signature-v4/dist-types/getCanonicalQuery.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { HttpRequest } from "@smithy/types"; -/** - * @private - */ -export declare const getCanonicalQuery: ({ query }: HttpRequest) => string; diff --git a/node_modules/@smithy/signature-v4/dist-types/getPayloadHash.d.ts b/node_modules/@smithy/signature-v4/dist-types/getPayloadHash.d.ts deleted file mode 100644 index a326c59c..00000000 --- a/node_modules/@smithy/signature-v4/dist-types/getPayloadHash.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { ChecksumConstructor, HashConstructor, HttpRequest } from "@smithy/types"; -/** - * @private - */ -export declare const getPayloadHash: ({ headers, body }: HttpRequest, hashConstructor: ChecksumConstructor | HashConstructor) => Promise; diff --git a/node_modules/@smithy/signature-v4/dist-types/headerUtil.d.ts b/node_modules/@smithy/signature-v4/dist-types/headerUtil.d.ts deleted file mode 100644 index c0b66eb6..00000000 --- a/node_modules/@smithy/signature-v4/dist-types/headerUtil.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { HeaderBag } from "@smithy/types"; -export declare const hasHeader: (soughtHeader: string, headers: HeaderBag) => boolean; -export declare const getHeaderValue: (soughtHeader: string, headers: HeaderBag) => string | undefined; -export declare const deleteHeader: (soughtHeader: string, headers: HeaderBag) => void; diff --git a/node_modules/@smithy/signature-v4/dist-types/index.d.ts b/node_modules/@smithy/signature-v4/dist-types/index.d.ts deleted file mode 100644 index 7bb33c23..00000000 --- a/node_modules/@smithy/signature-v4/dist-types/index.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -export * from "./SignatureV4"; -export { getCanonicalHeaders } from "./getCanonicalHeaders"; -export { getCanonicalQuery } from "./getCanonicalQuery"; -export { getPayloadHash } from "./getPayloadHash"; -export { moveHeadersToQuery } from "./moveHeadersToQuery"; -export { prepareRequest } from "./prepareRequest"; -export * from "./credentialDerivation"; diff --git a/node_modules/@smithy/signature-v4/dist-types/moveHeadersToQuery.d.ts b/node_modules/@smithy/signature-v4/dist-types/moveHeadersToQuery.d.ts deleted file mode 100644 index 1816cfc1..00000000 --- a/node_modules/@smithy/signature-v4/dist-types/moveHeadersToQuery.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { HttpRequest, QueryParameterBag } from "@smithy/types"; -/** - * @private - */ -export declare const moveHeadersToQuery: (request: HttpRequest, options?: { - unhoistableHeaders?: Set; -}) => HttpRequest & { - query: QueryParameterBag; -}; diff --git a/node_modules/@smithy/signature-v4/dist-types/prepareRequest.d.ts b/node_modules/@smithy/signature-v4/dist-types/prepareRequest.d.ts deleted file mode 100644 index dbc8fde4..00000000 --- a/node_modules/@smithy/signature-v4/dist-types/prepareRequest.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { HttpRequest } from "@smithy/types"; -/** - * @private - */ -export declare const prepareRequest: (request: HttpRequest) => HttpRequest; diff --git a/node_modules/@smithy/signature-v4/dist-types/suite.fixture.d.ts b/node_modules/@smithy/signature-v4/dist-types/suite.fixture.d.ts deleted file mode 100644 index 383bc35f..00000000 --- a/node_modules/@smithy/signature-v4/dist-types/suite.fixture.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { HttpRequest } from "@smithy/types"; -export interface TestCase { - name: string; - request: HttpRequest; - authorization: string; -} -export declare const region = "us-east-1"; -export declare const service = "service"; -export declare const credentials: { - accessKeyId: string; - secretAccessKey: string; -}; -export declare const signingDate: Date; -export declare const requests: Array; diff --git a/node_modules/@smithy/signature-v4/dist-types/ts3.4/SignatureV4.d.ts b/node_modules/@smithy/signature-v4/dist-types/ts3.4/SignatureV4.d.ts deleted file mode 100644 index 68230a47..00000000 --- a/node_modules/@smithy/signature-v4/dist-types/ts3.4/SignatureV4.d.ts +++ /dev/null @@ -1,67 +0,0 @@ -import { AwsCredentialIdentity, ChecksumConstructor, EventSigner, EventSigningArguments, FormattedEvent, HashConstructor, HttpRequest, MessageSigner, Provider, RequestPresigner, RequestPresigningArguments, RequestSigner, RequestSigningArguments, SignableMessage, SignedMessage, SigningArguments, StringSigner } from "@smithy/types"; -export interface SignatureV4Init { - /** - * The service signing name. - */ - service: string; - /** - * The region name or a function that returns a promise that will be - * resolved with the region name. - */ - region: string | Provider; - /** - * The credentials with which the request should be signed or a function - * that returns a promise that will be resolved with credentials. - */ - credentials: AwsCredentialIdentity | Provider; - /** - * A constructor function for a hash object that will calculate SHA-256 HMAC - * checksums. - */ - sha256?: ChecksumConstructor | HashConstructor; - /** - * Whether to uri-escape the request URI path as part of computing the - * canonical request string. This is required for every AWS service, except - * Amazon S3, as of late 2017. - * - * @default [true] - */ - uriEscapePath?: boolean; - /** - * Whether to calculate a checksum of the request body and include it as - * either a request header (when signing) or as a query string parameter - * (when presigning). This is required for AWS Glacier and Amazon S3 and optional for - * every other AWS service as of late 2017. - * - * @default [true] - */ - applyChecksum?: boolean; -} -export interface SignatureV4CryptoInit { - sha256: ChecksumConstructor | HashConstructor; -} -export declare class SignatureV4 implements RequestPresigner, RequestSigner, StringSigner, EventSigner, MessageSigner { - private readonly service; - private readonly regionProvider; - private readonly credentialProvider; - private readonly sha256; - private readonly uriEscapePath; - private readonly applyChecksum; - private readonly headerMarshaller; - constructor({ applyChecksum, credentials, region, service, sha256, uriEscapePath, }: SignatureV4Init & SignatureV4CryptoInit); - presign(originalRequest: HttpRequest, options?: RequestPresigningArguments): Promise; - sign(stringToSign: string, options?: SigningArguments): Promise; - sign(event: FormattedEvent, options: EventSigningArguments): Promise; - sign(event: SignableMessage, options: SigningArguments): Promise; - sign(requestToSign: HttpRequest, options?: RequestSigningArguments): Promise; - private signEvent; - signMessage(signableMessage: SignableMessage, { signingDate, signingRegion, signingService }: SigningArguments): Promise; - private signString; - private signRequest; - private createCanonicalRequest; - private createStringToSign; - private getCanonicalPath; - private getSignature; - private getSigningKey; - private validateResolvedCredentials; -} diff --git a/node_modules/@smithy/signature-v4/dist-types/ts3.4/cloneRequest.d.ts b/node_modules/@smithy/signature-v4/dist-types/ts3.4/cloneRequest.d.ts deleted file mode 100644 index e715c2fd..00000000 --- a/node_modules/@smithy/signature-v4/dist-types/ts3.4/cloneRequest.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { HttpRequest, QueryParameterBag } from "@smithy/types"; -/** - * @internal - */ -export declare const cloneRequest: ({ headers, query, ...rest }: HttpRequest) => HttpRequest; -export declare const cloneQuery: (query: QueryParameterBag) => QueryParameterBag; diff --git a/node_modules/@smithy/signature-v4/dist-types/ts3.4/constants.d.ts b/node_modules/@smithy/signature-v4/dist-types/ts3.4/constants.d.ts deleted file mode 100644 index ff54b673..00000000 --- a/node_modules/@smithy/signature-v4/dist-types/ts3.4/constants.d.ts +++ /dev/null @@ -1,43 +0,0 @@ -export declare const ALGORITHM_QUERY_PARAM = "X-Amz-Algorithm"; -export declare const CREDENTIAL_QUERY_PARAM = "X-Amz-Credential"; -export declare const AMZ_DATE_QUERY_PARAM = "X-Amz-Date"; -export declare const SIGNED_HEADERS_QUERY_PARAM = "X-Amz-SignedHeaders"; -export declare const EXPIRES_QUERY_PARAM = "X-Amz-Expires"; -export declare const SIGNATURE_QUERY_PARAM = "X-Amz-Signature"; -export declare const TOKEN_QUERY_PARAM = "X-Amz-Security-Token"; -export declare const REGION_SET_PARAM = "X-Amz-Region-Set"; -export declare const AUTH_HEADER = "authorization"; -export declare const AMZ_DATE_HEADER: string; -export declare const DATE_HEADER = "date"; -export declare const GENERATED_HEADERS: string[]; -export declare const SIGNATURE_HEADER: string; -export declare const SHA256_HEADER = "x-amz-content-sha256"; -export declare const TOKEN_HEADER: string; -export declare const HOST_HEADER = "host"; -export declare const ALWAYS_UNSIGNABLE_HEADERS: { - authorization: boolean; - "cache-control": boolean; - connection: boolean; - expect: boolean; - from: boolean; - "keep-alive": boolean; - "max-forwards": boolean; - pragma: boolean; - referer: boolean; - te: boolean; - trailer: boolean; - "transfer-encoding": boolean; - upgrade: boolean; - "user-agent": boolean; - "x-amzn-trace-id": boolean; -}; -export declare const PROXY_HEADER_PATTERN: RegExp; -export declare const SEC_HEADER_PATTERN: RegExp; -export declare const UNSIGNABLE_PATTERNS: RegExp[]; -export declare const ALGORITHM_IDENTIFIER = "AWS4-HMAC-SHA256"; -export declare const ALGORITHM_IDENTIFIER_V4A = "AWS4-ECDSA-P256-SHA256"; -export declare const EVENT_ALGORITHM_IDENTIFIER = "AWS4-HMAC-SHA256-PAYLOAD"; -export declare const UNSIGNED_PAYLOAD = "UNSIGNED-PAYLOAD"; -export declare const MAX_CACHE_SIZE = 50; -export declare const KEY_TYPE_IDENTIFIER = "aws4_request"; -export declare const MAX_PRESIGNED_TTL: number; diff --git a/node_modules/@smithy/signature-v4/dist-types/ts3.4/credentialDerivation.d.ts b/node_modules/@smithy/signature-v4/dist-types/ts3.4/credentialDerivation.d.ts deleted file mode 100644 index e0db94d5..00000000 --- a/node_modules/@smithy/signature-v4/dist-types/ts3.4/credentialDerivation.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { AwsCredentialIdentity, ChecksumConstructor, HashConstructor } from "@smithy/types"; -/** - * Create a string describing the scope of credentials used to sign a request. - * - * @param shortDate The current calendar date in the form YYYYMMDD. - * @param region The AWS region in which the service resides. - * @param service The service to which the signed request is being sent. - */ -export declare const createScope: (shortDate: string, region: string, service: string) => string; -/** - * Derive a signing key from its composite parts - * - * @param sha256Constructor A constructor function that can instantiate SHA-256 - * hash objects. - * @param credentials The credentials with which the request will be - * signed. - * @param shortDate The current calendar date in the form YYYYMMDD. - * @param region The AWS region in which the service resides. - * @param service The service to which the signed request is being - * sent. - */ -export declare const getSigningKey: (sha256Constructor: ChecksumConstructor | HashConstructor, credentials: AwsCredentialIdentity, shortDate: string, region: string, service: string) => Promise; -/** - * @internal - */ -export declare const clearCredentialCache: () => void; diff --git a/node_modules/@smithy/signature-v4/dist-types/ts3.4/getCanonicalHeaders.d.ts b/node_modules/@smithy/signature-v4/dist-types/ts3.4/getCanonicalHeaders.d.ts deleted file mode 100644 index a8f00736..00000000 --- a/node_modules/@smithy/signature-v4/dist-types/ts3.4/getCanonicalHeaders.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { HeaderBag, HttpRequest } from "@smithy/types"; -/** - * @private - */ -export declare const getCanonicalHeaders: ({ headers }: HttpRequest, unsignableHeaders?: Set, signableHeaders?: Set) => HeaderBag; diff --git a/node_modules/@smithy/signature-v4/dist-types/ts3.4/getCanonicalQuery.d.ts b/node_modules/@smithy/signature-v4/dist-types/ts3.4/getCanonicalQuery.d.ts deleted file mode 100644 index 20a65866..00000000 --- a/node_modules/@smithy/signature-v4/dist-types/ts3.4/getCanonicalQuery.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { HttpRequest } from "@smithy/types"; -/** - * @private - */ -export declare const getCanonicalQuery: ({ query }: HttpRequest) => string; diff --git a/node_modules/@smithy/signature-v4/dist-types/ts3.4/getPayloadHash.d.ts b/node_modules/@smithy/signature-v4/dist-types/ts3.4/getPayloadHash.d.ts deleted file mode 100644 index 2caa7ffc..00000000 --- a/node_modules/@smithy/signature-v4/dist-types/ts3.4/getPayloadHash.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { ChecksumConstructor, HashConstructor, HttpRequest } from "@smithy/types"; -/** - * @private - */ -export declare const getPayloadHash: ({ headers, body }: HttpRequest, hashConstructor: ChecksumConstructor | HashConstructor) => Promise; diff --git a/node_modules/@smithy/signature-v4/dist-types/ts3.4/headerUtil.d.ts b/node_modules/@smithy/signature-v4/dist-types/ts3.4/headerUtil.d.ts deleted file mode 100644 index 41ca217d..00000000 --- a/node_modules/@smithy/signature-v4/dist-types/ts3.4/headerUtil.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { HeaderBag } from "@smithy/types"; -export declare const hasHeader: (soughtHeader: string, headers: HeaderBag) => boolean; -export declare const getHeaderValue: (soughtHeader: string, headers: HeaderBag) => string | undefined; -export declare const deleteHeader: (soughtHeader: string, headers: HeaderBag) => void; diff --git a/node_modules/@smithy/signature-v4/dist-types/ts3.4/index.d.ts b/node_modules/@smithy/signature-v4/dist-types/ts3.4/index.d.ts deleted file mode 100644 index 7f3d9c5b..00000000 --- a/node_modules/@smithy/signature-v4/dist-types/ts3.4/index.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -export * from "./SignatureV4"; -export { getCanonicalHeaders } from "./getCanonicalHeaders"; -export { getCanonicalQuery } from "./getCanonicalQuery"; -export { getPayloadHash } from "./getPayloadHash"; -export { moveHeadersToQuery } from "./moveHeadersToQuery"; -export { prepareRequest } from "./prepareRequest"; -export * from "./credentialDerivation"; diff --git a/node_modules/@smithy/signature-v4/dist-types/ts3.4/moveHeadersToQuery.d.ts b/node_modules/@smithy/signature-v4/dist-types/ts3.4/moveHeadersToQuery.d.ts deleted file mode 100644 index 2d415457..00000000 --- a/node_modules/@smithy/signature-v4/dist-types/ts3.4/moveHeadersToQuery.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { HttpRequest, QueryParameterBag } from "@smithy/types"; -/** - * @private - */ -export declare const moveHeadersToQuery: (request: HttpRequest, options?: { - unhoistableHeaders?: Set; -}) => HttpRequest & { - query: QueryParameterBag; -}; diff --git a/node_modules/@smithy/signature-v4/dist-types/ts3.4/prepareRequest.d.ts b/node_modules/@smithy/signature-v4/dist-types/ts3.4/prepareRequest.d.ts deleted file mode 100644 index 0ff76f3a..00000000 --- a/node_modules/@smithy/signature-v4/dist-types/ts3.4/prepareRequest.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { HttpRequest } from "@smithy/types"; -/** - * @private - */ -export declare const prepareRequest: (request: HttpRequest) => HttpRequest; diff --git a/node_modules/@smithy/signature-v4/dist-types/ts3.4/suite.fixture.d.ts b/node_modules/@smithy/signature-v4/dist-types/ts3.4/suite.fixture.d.ts deleted file mode 100644 index 9363eeb1..00000000 --- a/node_modules/@smithy/signature-v4/dist-types/ts3.4/suite.fixture.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { HttpRequest } from "@smithy/types"; -export interface TestCase { - name: string; - request: HttpRequest; - authorization: string; -} -export declare const region = "us-east-1"; -export declare const service = "service"; -export declare const credentials: { - accessKeyId: string; - secretAccessKey: string; -}; -export declare const signingDate: Date; -export declare const requests: Array; diff --git a/node_modules/@smithy/signature-v4/dist-types/ts3.4/utilDate.d.ts b/node_modules/@smithy/signature-v4/dist-types/ts3.4/utilDate.d.ts deleted file mode 100644 index 9a6f3832..00000000 --- a/node_modules/@smithy/signature-v4/dist-types/ts3.4/utilDate.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare const iso8601: (time: number | string | Date) => string; -export declare const toDate: (time: number | string | Date) => Date; diff --git a/node_modules/@smithy/signature-v4/dist-types/utilDate.d.ts b/node_modules/@smithy/signature-v4/dist-types/utilDate.d.ts deleted file mode 100644 index e8c6a684..00000000 --- a/node_modules/@smithy/signature-v4/dist-types/utilDate.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export declare const iso8601: (time: number | string | Date) => string; -export declare const toDate: (time: number | string | Date) => Date; diff --git a/node_modules/@smithy/signature-v4/package.json b/node_modules/@smithy/signature-v4/package.json deleted file mode 100644 index da21f6b5..00000000 --- a/node_modules/@smithy/signature-v4/package.json +++ /dev/null @@ -1,70 +0,0 @@ -{ - "name": "@smithy/signature-v4", - "version": "2.0.16", - "description": "A standalone implementation of the AWS Signature V4 request signing algorithm", - "main": "./dist-cjs/index.js", - "module": "./dist-es/index.js", - "types": "./dist-types/index.d.ts", - "scripts": { - "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", - "build:cjs": "yarn g:tsc -p tsconfig.cjs.json", - "build:es": "yarn g:tsc -p tsconfig.es.json", - "build:types": "yarn g:tsc -p tsconfig.types.json", - "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", - "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz", - "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"", - "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"", - "extract:docs": "api-extractor run --local", - "test": "yarn g:jest --coverage" - }, - "author": { - "name": "AWS SDK for JavaScript Team", - "url": "https://aws.amazon.com/javascript/" - }, - "license": "Apache-2.0", - "dependencies": { - "@smithy/eventstream-codec": "^2.0.14", - "@smithy/is-array-buffer": "^2.0.0", - "@smithy/types": "^2.6.0", - "@smithy/util-hex-encoding": "^2.0.0", - "@smithy/util-middleware": "^2.0.7", - "@smithy/util-uri-escape": "^2.0.0", - "@smithy/util-utf8": "^2.0.2", - "tslib": "^2.5.0" - }, - "devDependencies": { - "@aws-crypto/sha256-js": "3.0.0", - "@smithy/protocol-http": "^3.0.10", - "@tsconfig/recommended": "1.0.1", - "concurrently": "7.0.0", - "downlevel-dts": "0.10.1", - "rimraf": "3.0.2", - "typedoc": "0.23.23" - }, - "engines": { - "node": ">=14.0.0" - }, - "typesVersions": { - "<4.0": { - "dist-types/*": [ - "dist-types/ts3.4/*" - ] - } - }, - "files": [ - "dist-*/**" - ], - "homepage": "https://github.com/awslabs/smithy-typescript/tree/main/packages/signature-v4", - "repository": { - "type": "git", - "url": "https://github.com/awslabs/smithy-typescript.git", - "directory": "packages/signature-v4" - }, - "typedoc": { - "entryPoint": "src/index.ts" - }, - "publishConfig": { - "directory": ".release/package" - } -} \ No newline at end of file diff --git a/node_modules/@smithy/smithy-client/LICENSE b/node_modules/@smithy/smithy-client/LICENSE deleted file mode 100644 index e907b586..00000000 --- a/node_modules/@smithy/smithy-client/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/node_modules/@smithy/smithy-client/README.md b/node_modules/@smithy/smithy-client/README.md deleted file mode 100644 index 365cd629..00000000 --- a/node_modules/@smithy/smithy-client/README.md +++ /dev/null @@ -1,10 +0,0 @@ -# @smithy/smithy-client - -[![NPM version](https://img.shields.io/npm/v/@smithy/smithy-client/latest.svg)](https://www.npmjs.com/package/@smithy/smithy-client) -[![NPM downloads](https://img.shields.io/npm/dm/@smithy/smithy-client.svg)](https://www.npmjs.com/package/@smithy/smithy-client) - -> An internal package - -## Usage - -You probably shouldn't, at least directly. diff --git a/node_modules/@smithy/smithy-client/dist-cjs/NoOpLogger.js b/node_modules/@smithy/smithy-client/dist-cjs/NoOpLogger.js deleted file mode 100644 index 7358ad3f..00000000 --- a/node_modules/@smithy/smithy-client/dist-cjs/NoOpLogger.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.NoOpLogger = void 0; -class NoOpLogger { - trace() { } - debug() { } - info() { } - warn() { } - error() { } -} -exports.NoOpLogger = NoOpLogger; diff --git a/node_modules/@smithy/smithy-client/dist-cjs/client.js b/node_modules/@smithy/smithy-client/dist-cjs/client.js deleted file mode 100644 index b8cfe7f3..00000000 --- a/node_modules/@smithy/smithy-client/dist-cjs/client.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Client = void 0; -const middleware_stack_1 = require("@smithy/middleware-stack"); -class Client { - constructor(config) { - this.middlewareStack = (0, middleware_stack_1.constructStack)(); - this.config = config; - } - send(command, optionsOrCb, cb) { - const options = typeof optionsOrCb !== "function" ? optionsOrCb : undefined; - const callback = typeof optionsOrCb === "function" ? optionsOrCb : cb; - const handler = command.resolveMiddleware(this.middlewareStack, this.config, options); - if (callback) { - handler(command) - .then((result) => callback(null, result.output), (err) => callback(err)) - .catch(() => { }); - } - else { - return handler(command).then((result) => result.output); - } - } - destroy() { - if (this.config.requestHandler.destroy) - this.config.requestHandler.destroy(); - } -} -exports.Client = Client; diff --git a/node_modules/@smithy/smithy-client/dist-cjs/collect-stream-body.js b/node_modules/@smithy/smithy-client/dist-cjs/collect-stream-body.js deleted file mode 100644 index b32db671..00000000 --- a/node_modules/@smithy/smithy-client/dist-cjs/collect-stream-body.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.collectBody = void 0; -const util_stream_1 = require("@smithy/util-stream"); -const collectBody = async (streamBody = new Uint8Array(), context) => { - if (streamBody instanceof Uint8Array) { - return util_stream_1.Uint8ArrayBlobAdapter.mutate(streamBody); - } - if (!streamBody) { - return util_stream_1.Uint8ArrayBlobAdapter.mutate(new Uint8Array()); - } - const fromContext = context.streamCollector(streamBody); - return util_stream_1.Uint8ArrayBlobAdapter.mutate(await fromContext); -}; -exports.collectBody = collectBody; diff --git a/node_modules/@smithy/smithy-client/dist-cjs/command.js b/node_modules/@smithy/smithy-client/dist-cjs/command.js deleted file mode 100644 index be50911f..00000000 --- a/node_modules/@smithy/smithy-client/dist-cjs/command.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Command = void 0; -const middleware_stack_1 = require("@smithy/middleware-stack"); -class Command { - constructor() { - this.middlewareStack = (0, middleware_stack_1.constructStack)(); - } -} -exports.Command = Command; diff --git a/node_modules/@smithy/smithy-client/dist-cjs/constants.js b/node_modules/@smithy/smithy-client/dist-cjs/constants.js deleted file mode 100644 index 914565fd..00000000 --- a/node_modules/@smithy/smithy-client/dist-cjs/constants.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SENSITIVE_STRING = void 0; -exports.SENSITIVE_STRING = "***SensitiveInformation***"; diff --git a/node_modules/@smithy/smithy-client/dist-cjs/create-aggregated-client.js b/node_modules/@smithy/smithy-client/dist-cjs/create-aggregated-client.js deleted file mode 100644 index d8757fb2..00000000 --- a/node_modules/@smithy/smithy-client/dist-cjs/create-aggregated-client.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createAggregatedClient = void 0; -const createAggregatedClient = (commands, Client) => { - for (const command of Object.keys(commands)) { - const CommandCtor = commands[command]; - const methodImpl = async function (args, optionsOrCb, cb) { - const command = new CommandCtor(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expected http options but got ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - }; - const methodName = (command[0].toLowerCase() + command.slice(1)).replace(/Command$/, ""); - Client.prototype[methodName] = methodImpl; - } -}; -exports.createAggregatedClient = createAggregatedClient; diff --git a/node_modules/@smithy/smithy-client/dist-cjs/date-utils.js b/node_modules/@smithy/smithy-client/dist-cjs/date-utils.js deleted file mode 100644 index 08aaa051..00000000 --- a/node_modules/@smithy/smithy-client/dist-cjs/date-utils.js +++ /dev/null @@ -1,195 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.parseEpochTimestamp = exports.parseRfc7231DateTime = exports.parseRfc3339DateTimeWithOffset = exports.parseRfc3339DateTime = exports.dateToUtcString = void 0; -const parse_utils_1 = require("./parse-utils"); -const DAYS = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]; -const MONTHS = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]; -function dateToUtcString(date) { - const year = date.getUTCFullYear(); - const month = date.getUTCMonth(); - const dayOfWeek = date.getUTCDay(); - const dayOfMonthInt = date.getUTCDate(); - const hoursInt = date.getUTCHours(); - const minutesInt = date.getUTCMinutes(); - const secondsInt = date.getUTCSeconds(); - const dayOfMonthString = dayOfMonthInt < 10 ? `0${dayOfMonthInt}` : `${dayOfMonthInt}`; - const hoursString = hoursInt < 10 ? `0${hoursInt}` : `${hoursInt}`; - const minutesString = minutesInt < 10 ? `0${minutesInt}` : `${minutesInt}`; - const secondsString = secondsInt < 10 ? `0${secondsInt}` : `${secondsInt}`; - return `${DAYS[dayOfWeek]}, ${dayOfMonthString} ${MONTHS[month]} ${year} ${hoursString}:${minutesString}:${secondsString} GMT`; -} -exports.dateToUtcString = dateToUtcString; -const RFC3339 = new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/); -const parseRfc3339DateTime = (value) => { - if (value === null || value === undefined) { - return undefined; - } - if (typeof value !== "string") { - throw new TypeError("RFC-3339 date-times must be expressed as strings"); - } - const match = RFC3339.exec(value); - if (!match) { - throw new TypeError("Invalid RFC-3339 date-time value"); - } - const [_, yearStr, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds] = match; - const year = (0, parse_utils_1.strictParseShort)(stripLeadingZeroes(yearStr)); - const month = parseDateValue(monthStr, "month", 1, 12); - const day = parseDateValue(dayStr, "day", 1, 31); - return buildDate(year, month, day, { hours, minutes, seconds, fractionalMilliseconds }); -}; -exports.parseRfc3339DateTime = parseRfc3339DateTime; -const RFC3339_WITH_OFFSET = new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/); -const parseRfc3339DateTimeWithOffset = (value) => { - if (value === null || value === undefined) { - return undefined; - } - if (typeof value !== "string") { - throw new TypeError("RFC-3339 date-times must be expressed as strings"); - } - const match = RFC3339_WITH_OFFSET.exec(value); - if (!match) { - throw new TypeError("Invalid RFC-3339 date-time value"); - } - const [_, yearStr, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds, offsetStr] = match; - const year = (0, parse_utils_1.strictParseShort)(stripLeadingZeroes(yearStr)); - const month = parseDateValue(monthStr, "month", 1, 12); - const day = parseDateValue(dayStr, "day", 1, 31); - const date = buildDate(year, month, day, { hours, minutes, seconds, fractionalMilliseconds }); - if (offsetStr.toUpperCase() != "Z") { - date.setTime(date.getTime() - parseOffsetToMilliseconds(offsetStr)); - } - return date; -}; -exports.parseRfc3339DateTimeWithOffset = parseRfc3339DateTimeWithOffset; -const IMF_FIXDATE = new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/); -const RFC_850_DATE = new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/); -const ASC_TIME = new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/); -const parseRfc7231DateTime = (value) => { - if (value === null || value === undefined) { - return undefined; - } - if (typeof value !== "string") { - throw new TypeError("RFC-7231 date-times must be expressed as strings"); - } - let match = IMF_FIXDATE.exec(value); - if (match) { - const [_, dayStr, monthStr, yearStr, hours, minutes, seconds, fractionalMilliseconds] = match; - return buildDate((0, parse_utils_1.strictParseShort)(stripLeadingZeroes(yearStr)), parseMonthByShortName(monthStr), parseDateValue(dayStr, "day", 1, 31), { hours, minutes, seconds, fractionalMilliseconds }); - } - match = RFC_850_DATE.exec(value); - if (match) { - const [_, dayStr, monthStr, yearStr, hours, minutes, seconds, fractionalMilliseconds] = match; - return adjustRfc850Year(buildDate(parseTwoDigitYear(yearStr), parseMonthByShortName(monthStr), parseDateValue(dayStr, "day", 1, 31), { - hours, - minutes, - seconds, - fractionalMilliseconds, - })); - } - match = ASC_TIME.exec(value); - if (match) { - const [_, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds, yearStr] = match; - return buildDate((0, parse_utils_1.strictParseShort)(stripLeadingZeroes(yearStr)), parseMonthByShortName(monthStr), parseDateValue(dayStr.trimLeft(), "day", 1, 31), { hours, minutes, seconds, fractionalMilliseconds }); - } - throw new TypeError("Invalid RFC-7231 date-time value"); -}; -exports.parseRfc7231DateTime = parseRfc7231DateTime; -const parseEpochTimestamp = (value) => { - if (value === null || value === undefined) { - return undefined; - } - let valueAsDouble; - if (typeof value === "number") { - valueAsDouble = value; - } - else if (typeof value === "string") { - valueAsDouble = (0, parse_utils_1.strictParseDouble)(value); - } - else { - throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation"); - } - if (Number.isNaN(valueAsDouble) || valueAsDouble === Infinity || valueAsDouble === -Infinity) { - throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics"); - } - return new Date(Math.round(valueAsDouble * 1000)); -}; -exports.parseEpochTimestamp = parseEpochTimestamp; -const buildDate = (year, month, day, time) => { - const adjustedMonth = month - 1; - validateDayOfMonth(year, adjustedMonth, day); - return new Date(Date.UTC(year, adjustedMonth, day, parseDateValue(time.hours, "hour", 0, 23), parseDateValue(time.minutes, "minute", 0, 59), parseDateValue(time.seconds, "seconds", 0, 60), parseMilliseconds(time.fractionalMilliseconds))); -}; -const parseTwoDigitYear = (value) => { - const thisYear = new Date().getUTCFullYear(); - const valueInThisCentury = Math.floor(thisYear / 100) * 100 + (0, parse_utils_1.strictParseShort)(stripLeadingZeroes(value)); - if (valueInThisCentury < thisYear) { - return valueInThisCentury + 100; - } - return valueInThisCentury; -}; -const FIFTY_YEARS_IN_MILLIS = 50 * 365 * 24 * 60 * 60 * 1000; -const adjustRfc850Year = (input) => { - if (input.getTime() - new Date().getTime() > FIFTY_YEARS_IN_MILLIS) { - return new Date(Date.UTC(input.getUTCFullYear() - 100, input.getUTCMonth(), input.getUTCDate(), input.getUTCHours(), input.getUTCMinutes(), input.getUTCSeconds(), input.getUTCMilliseconds())); - } - return input; -}; -const parseMonthByShortName = (value) => { - const monthIdx = MONTHS.indexOf(value); - if (monthIdx < 0) { - throw new TypeError(`Invalid month: ${value}`); - } - return monthIdx + 1; -}; -const DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; -const validateDayOfMonth = (year, month, day) => { - let maxDays = DAYS_IN_MONTH[month]; - if (month === 1 && isLeapYear(year)) { - maxDays = 29; - } - if (day > maxDays) { - throw new TypeError(`Invalid day for ${MONTHS[month]} in ${year}: ${day}`); - } -}; -const isLeapYear = (year) => { - return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0); -}; -const parseDateValue = (value, type, lower, upper) => { - const dateVal = (0, parse_utils_1.strictParseByte)(stripLeadingZeroes(value)); - if (dateVal < lower || dateVal > upper) { - throw new TypeError(`${type} must be between ${lower} and ${upper}, inclusive`); - } - return dateVal; -}; -const parseMilliseconds = (value) => { - if (value === null || value === undefined) { - return 0; - } - return (0, parse_utils_1.strictParseFloat32)("0." + value) * 1000; -}; -const parseOffsetToMilliseconds = (value) => { - const directionStr = value[0]; - let direction = 1; - if (directionStr == "+") { - direction = 1; - } - else if (directionStr == "-") { - direction = -1; - } - else { - throw new TypeError(`Offset direction, ${directionStr}, must be "+" or "-"`); - } - const hour = Number(value.substring(1, 3)); - const minute = Number(value.substring(4, 6)); - return direction * (hour * 60 + minute) * 60 * 1000; -}; -const stripLeadingZeroes = (value) => { - let idx = 0; - while (idx < value.length - 1 && value.charAt(idx) === "0") { - idx++; - } - if (idx === 0) { - return value; - } - return value.slice(idx); -}; diff --git a/node_modules/@smithy/smithy-client/dist-cjs/default-error-handler.js b/node_modules/@smithy/smithy-client/dist-cjs/default-error-handler.js deleted file mode 100644 index bfac18e3..00000000 --- a/node_modules/@smithy/smithy-client/dist-cjs/default-error-handler.js +++ /dev/null @@ -1,30 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.withBaseException = exports.throwDefaultError = void 0; -const exceptions_1 = require("./exceptions"); -const throwDefaultError = ({ output, parsedBody, exceptionCtor, errorCode }) => { - const $metadata = deserializeMetadata(output); - const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined; - const response = new exceptionCtor({ - name: (parsedBody === null || parsedBody === void 0 ? void 0 : parsedBody.code) || (parsedBody === null || parsedBody === void 0 ? void 0 : parsedBody.Code) || errorCode || statusCode || "UnknownError", - $fault: "client", - $metadata, - }); - throw (0, exceptions_1.decorateServiceException)(response, parsedBody); -}; -exports.throwDefaultError = throwDefaultError; -const withBaseException = (ExceptionCtor) => { - return ({ output, parsedBody, errorCode }) => { - (0, exports.throwDefaultError)({ output, parsedBody, exceptionCtor: ExceptionCtor, errorCode }); - }; -}; -exports.withBaseException = withBaseException; -const deserializeMetadata = (output) => { - var _a, _b; - return ({ - httpStatusCode: output.statusCode, - requestId: (_b = (_a = output.headers["x-amzn-requestid"]) !== null && _a !== void 0 ? _a : output.headers["x-amzn-request-id"]) !== null && _b !== void 0 ? _b : output.headers["x-amz-request-id"], - extendedRequestId: output.headers["x-amz-id-2"], - cfId: output.headers["x-amz-cf-id"], - }); -}; diff --git a/node_modules/@smithy/smithy-client/dist-cjs/defaults-mode.js b/node_modules/@smithy/smithy-client/dist-cjs/defaults-mode.js deleted file mode 100644 index ac35c3e2..00000000 --- a/node_modules/@smithy/smithy-client/dist-cjs/defaults-mode.js +++ /dev/null @@ -1,30 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.loadConfigsForDefaultMode = void 0; -const loadConfigsForDefaultMode = (mode) => { - switch (mode) { - case "standard": - return { - retryMode: "standard", - connectionTimeout: 3100, - }; - case "in-region": - return { - retryMode: "standard", - connectionTimeout: 1100, - }; - case "cross-region": - return { - retryMode: "standard", - connectionTimeout: 3100, - }; - case "mobile": - return { - retryMode: "standard", - connectionTimeout: 30000, - }; - default: - return {}; - } -}; -exports.loadConfigsForDefaultMode = loadConfigsForDefaultMode; diff --git a/node_modules/@smithy/smithy-client/dist-cjs/emitWarningIfUnsupportedVersion.js b/node_modules/@smithy/smithy-client/dist-cjs/emitWarningIfUnsupportedVersion.js deleted file mode 100644 index 66f63288..00000000 --- a/node_modules/@smithy/smithy-client/dist-cjs/emitWarningIfUnsupportedVersion.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.emitWarningIfUnsupportedVersion = void 0; -let warningEmitted = false; -const emitWarningIfUnsupportedVersion = (version) => { - if (version && !warningEmitted && parseInt(version.substring(1, version.indexOf("."))) < 14) { - warningEmitted = true; - } -}; -exports.emitWarningIfUnsupportedVersion = emitWarningIfUnsupportedVersion; diff --git a/node_modules/@smithy/smithy-client/dist-cjs/exceptions.js b/node_modules/@smithy/smithy-client/dist-cjs/exceptions.js deleted file mode 100644 index f671392b..00000000 --- a/node_modules/@smithy/smithy-client/dist-cjs/exceptions.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.decorateServiceException = exports.ServiceException = void 0; -class ServiceException extends Error { - constructor(options) { - super(options.message); - Object.setPrototypeOf(this, ServiceException.prototype); - this.name = options.name; - this.$fault = options.$fault; - this.$metadata = options.$metadata; - } -} -exports.ServiceException = ServiceException; -const decorateServiceException = (exception, additions = {}) => { - Object.entries(additions) - .filter(([, v]) => v !== undefined) - .forEach(([k, v]) => { - if (exception[k] == undefined || exception[k] === "") { - exception[k] = v; - } - }); - const message = exception.message || exception.Message || "UnknownError"; - exception.message = message; - delete exception.Message; - return exception; -}; -exports.decorateServiceException = decorateServiceException; diff --git a/node_modules/@smithy/smithy-client/dist-cjs/extended-encode-uri-component.js b/node_modules/@smithy/smithy-client/dist-cjs/extended-encode-uri-component.js deleted file mode 100644 index 3101af8f..00000000 --- a/node_modules/@smithy/smithy-client/dist-cjs/extended-encode-uri-component.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.extendedEncodeURIComponent = void 0; -function extendedEncodeURIComponent(str) { - return encodeURIComponent(str).replace(/[!'()*]/g, function (c) { - return "%" + c.charCodeAt(0).toString(16).toUpperCase(); - }); -} -exports.extendedEncodeURIComponent = extendedEncodeURIComponent; diff --git a/node_modules/@smithy/smithy-client/dist-cjs/extensions/checksum.js b/node_modules/@smithy/smithy-client/dist-cjs/extensions/checksum.js deleted file mode 100644 index 7afcab31..00000000 --- a/node_modules/@smithy/smithy-client/dist-cjs/extensions/checksum.js +++ /dev/null @@ -1,36 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.resolveChecksumRuntimeConfig = exports.getChecksumConfiguration = exports.AlgorithmId = void 0; -const types_1 = require("@smithy/types"); -Object.defineProperty(exports, "AlgorithmId", { enumerable: true, get: function () { return types_1.AlgorithmId; } }); -const getChecksumConfiguration = (runtimeConfig) => { - const checksumAlgorithms = []; - for (const id in types_1.AlgorithmId) { - const algorithmId = types_1.AlgorithmId[id]; - if (runtimeConfig[algorithmId] === undefined) { - continue; - } - checksumAlgorithms.push({ - algorithmId: () => algorithmId, - checksumConstructor: () => runtimeConfig[algorithmId], - }); - } - return { - _checksumAlgorithms: checksumAlgorithms, - addChecksumAlgorithm(algo) { - this._checksumAlgorithms.push(algo); - }, - checksumAlgorithms() { - return this._checksumAlgorithms; - }, - }; -}; -exports.getChecksumConfiguration = getChecksumConfiguration; -const resolveChecksumRuntimeConfig = (clientConfig) => { - const runtimeConfig = {}; - clientConfig.checksumAlgorithms().forEach((checksumAlgorithm) => { - runtimeConfig[checksumAlgorithm.algorithmId()] = checksumAlgorithm.checksumConstructor(); - }); - return runtimeConfig; -}; -exports.resolveChecksumRuntimeConfig = resolveChecksumRuntimeConfig; diff --git a/node_modules/@smithy/smithy-client/dist-cjs/extensions/defaultExtensionConfiguration.js b/node_modules/@smithy/smithy-client/dist-cjs/extensions/defaultExtensionConfiguration.js deleted file mode 100644 index 9cf4c24b..00000000 --- a/node_modules/@smithy/smithy-client/dist-cjs/extensions/defaultExtensionConfiguration.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.resolveDefaultRuntimeConfig = exports.getDefaultClientConfiguration = exports.getDefaultExtensionConfiguration = void 0; -const checksum_1 = require("./checksum"); -const retry_1 = require("./retry"); -const getDefaultExtensionConfiguration = (runtimeConfig) => { - return { - ...(0, checksum_1.getChecksumConfiguration)(runtimeConfig), - ...(0, retry_1.getRetryConfiguration)(runtimeConfig), - }; -}; -exports.getDefaultExtensionConfiguration = getDefaultExtensionConfiguration; -exports.getDefaultClientConfiguration = exports.getDefaultExtensionConfiguration; -const resolveDefaultRuntimeConfig = (config) => { - return { - ...(0, checksum_1.resolveChecksumRuntimeConfig)(config), - ...(0, retry_1.resolveRetryRuntimeConfig)(config), - }; -}; -exports.resolveDefaultRuntimeConfig = resolveDefaultRuntimeConfig; diff --git a/node_modules/@smithy/smithy-client/dist-cjs/extensions/index.js b/node_modules/@smithy/smithy-client/dist-cjs/extensions/index.js deleted file mode 100644 index 44e990d1..00000000 --- a/node_modules/@smithy/smithy-client/dist-cjs/extensions/index.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./defaultExtensionConfiguration"), exports); diff --git a/node_modules/@smithy/smithy-client/dist-cjs/extensions/retry.js b/node_modules/@smithy/smithy-client/dist-cjs/extensions/retry.js deleted file mode 100644 index 1f730816..00000000 --- a/node_modules/@smithy/smithy-client/dist-cjs/extensions/retry.js +++ /dev/null @@ -1,21 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.resolveRetryRuntimeConfig = exports.getRetryConfiguration = void 0; -const getRetryConfiguration = (runtimeConfig) => { - let _retryStrategy = runtimeConfig.retryStrategy; - return { - setRetryStrategy(retryStrategy) { - _retryStrategy = retryStrategy; - }, - retryStrategy() { - return _retryStrategy; - }, - }; -}; -exports.getRetryConfiguration = getRetryConfiguration; -const resolveRetryRuntimeConfig = (retryStrategyConfiguration) => { - const runtimeConfig = {}; - runtimeConfig.retryStrategy = retryStrategyConfiguration.retryStrategy(); - return runtimeConfig; -}; -exports.resolveRetryRuntimeConfig = resolveRetryRuntimeConfig; diff --git a/node_modules/@smithy/smithy-client/dist-cjs/get-array-if-single-item.js b/node_modules/@smithy/smithy-client/dist-cjs/get-array-if-single-item.js deleted file mode 100644 index 8a39ba36..00000000 --- a/node_modules/@smithy/smithy-client/dist-cjs/get-array-if-single-item.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getArrayIfSingleItem = void 0; -const getArrayIfSingleItem = (mayBeArray) => Array.isArray(mayBeArray) ? mayBeArray : [mayBeArray]; -exports.getArrayIfSingleItem = getArrayIfSingleItem; diff --git a/node_modules/@smithy/smithy-client/dist-cjs/get-value-from-text-node.js b/node_modules/@smithy/smithy-client/dist-cjs/get-value-from-text-node.js deleted file mode 100644 index b40ed650..00000000 --- a/node_modules/@smithy/smithy-client/dist-cjs/get-value-from-text-node.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getValueFromTextNode = void 0; -const getValueFromTextNode = (obj) => { - const textNodeName = "#text"; - for (const key in obj) { - if (obj.hasOwnProperty(key) && obj[key][textNodeName] !== undefined) { - obj[key] = obj[key][textNodeName]; - } - else if (typeof obj[key] === "object" && obj[key] !== null) { - obj[key] = (0, exports.getValueFromTextNode)(obj[key]); - } - } - return obj; -}; -exports.getValueFromTextNode = getValueFromTextNode; diff --git a/node_modules/@smithy/smithy-client/dist-cjs/index.js b/node_modules/@smithy/smithy-client/dist-cjs/index.js deleted file mode 100644 index 32b3aca9..00000000 --- a/node_modules/@smithy/smithy-client/dist-cjs/index.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./NoOpLogger"), exports); -tslib_1.__exportStar(require("./client"), exports); -tslib_1.__exportStar(require("./collect-stream-body"), exports); -tslib_1.__exportStar(require("./command"), exports); -tslib_1.__exportStar(require("./constants"), exports); -tslib_1.__exportStar(require("./create-aggregated-client"), exports); -tslib_1.__exportStar(require("./date-utils"), exports); -tslib_1.__exportStar(require("./default-error-handler"), exports); -tslib_1.__exportStar(require("./defaults-mode"), exports); -tslib_1.__exportStar(require("./emitWarningIfUnsupportedVersion"), exports); -tslib_1.__exportStar(require("./extensions"), exports); -tslib_1.__exportStar(require("./exceptions"), exports); -tslib_1.__exportStar(require("./extended-encode-uri-component"), exports); -tslib_1.__exportStar(require("./get-array-if-single-item"), exports); -tslib_1.__exportStar(require("./get-value-from-text-node"), exports); -tslib_1.__exportStar(require("./lazy-json"), exports); -tslib_1.__exportStar(require("./object-mapping"), exports); -tslib_1.__exportStar(require("./parse-utils"), exports); -tslib_1.__exportStar(require("./resolve-path"), exports); -tslib_1.__exportStar(require("./ser-utils"), exports); -tslib_1.__exportStar(require("./serde-json"), exports); -tslib_1.__exportStar(require("./split-every"), exports); diff --git a/node_modules/@smithy/smithy-client/dist-cjs/lazy-json.js b/node_modules/@smithy/smithy-client/dist-cjs/lazy-json.js deleted file mode 100644 index 6179f93f..00000000 --- a/node_modules/@smithy/smithy-client/dist-cjs/lazy-json.js +++ /dev/null @@ -1,38 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.LazyJsonString = exports.StringWrapper = void 0; -const StringWrapper = function () { - const Class = Object.getPrototypeOf(this).constructor; - const Constructor = Function.bind.apply(String, [null, ...arguments]); - const instance = new Constructor(); - Object.setPrototypeOf(instance, Class.prototype); - return instance; -}; -exports.StringWrapper = StringWrapper; -exports.StringWrapper.prototype = Object.create(String.prototype, { - constructor: { - value: exports.StringWrapper, - enumerable: false, - writable: true, - configurable: true, - }, -}); -Object.setPrototypeOf(exports.StringWrapper, String); -class LazyJsonString extends exports.StringWrapper { - deserializeJSON() { - return JSON.parse(super.toString()); - } - toJSON() { - return super.toString(); - } - static fromObject(object) { - if (object instanceof LazyJsonString) { - return object; - } - else if (object instanceof String || typeof object === "string") { - return new LazyJsonString(object); - } - return new LazyJsonString(JSON.stringify(object)); - } -} -exports.LazyJsonString = LazyJsonString; diff --git a/node_modules/@smithy/smithy-client/dist-cjs/object-mapping.js b/node_modules/@smithy/smithy-client/dist-cjs/object-mapping.js deleted file mode 100644 index 18ec2336..00000000 --- a/node_modules/@smithy/smithy-client/dist-cjs/object-mapping.js +++ /dev/null @@ -1,98 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.take = exports.convertMap = exports.map = void 0; -function map(arg0, arg1, arg2) { - let target; - let filter; - let instructions; - if (typeof arg1 === "undefined" && typeof arg2 === "undefined") { - target = {}; - instructions = arg0; - } - else { - target = arg0; - if (typeof arg1 === "function") { - filter = arg1; - instructions = arg2; - return mapWithFilter(target, filter, instructions); - } - else { - instructions = arg1; - } - } - for (const key of Object.keys(instructions)) { - if (!Array.isArray(instructions[key])) { - target[key] = instructions[key]; - continue; - } - applyInstruction(target, null, instructions, key); - } - return target; -} -exports.map = map; -const convertMap = (target) => { - const output = {}; - for (const [k, v] of Object.entries(target || {})) { - output[k] = [, v]; - } - return output; -}; -exports.convertMap = convertMap; -const take = (source, instructions) => { - const out = {}; - for (const key in instructions) { - applyInstruction(out, source, instructions, key); - } - return out; -}; -exports.take = take; -const mapWithFilter = (target, filter, instructions) => { - return map(target, Object.entries(instructions).reduce((_instructions, [key, value]) => { - if (Array.isArray(value)) { - _instructions[key] = value; - } - else { - if (typeof value === "function") { - _instructions[key] = [filter, value()]; - } - else { - _instructions[key] = [filter, value]; - } - } - return _instructions; - }, {})); -}; -const applyInstruction = (target, source, instructions, targetKey) => { - if (source !== null) { - let instruction = instructions[targetKey]; - if (typeof instruction === "function") { - instruction = [, instruction]; - } - const [filter = nonNullish, valueFn = pass, sourceKey = targetKey] = instruction; - if ((typeof filter === "function" && filter(source[sourceKey])) || (typeof filter !== "function" && !!filter)) { - target[targetKey] = valueFn(source[sourceKey]); - } - return; - } - let [filter, value] = instructions[targetKey]; - if (typeof value === "function") { - let _value; - const defaultFilterPassed = filter === undefined && (_value = value()) != null; - const customFilterPassed = (typeof filter === "function" && !!filter(void 0)) || (typeof filter !== "function" && !!filter); - if (defaultFilterPassed) { - target[targetKey] = _value; - } - else if (customFilterPassed) { - target[targetKey] = value(); - } - } - else { - const defaultFilterPassed = filter === undefined && value != null; - const customFilterPassed = (typeof filter === "function" && !!filter(value)) || (typeof filter !== "function" && !!filter); - if (defaultFilterPassed || customFilterPassed) { - target[targetKey] = value; - } - } -}; -const nonNullish = (_) => _ != null; -const pass = (_) => _; diff --git a/node_modules/@smithy/smithy-client/dist-cjs/parse-utils.js b/node_modules/@smithy/smithy-client/dist-cjs/parse-utils.js deleted file mode 100644 index d4db2e4d..00000000 --- a/node_modules/@smithy/smithy-client/dist-cjs/parse-utils.js +++ /dev/null @@ -1,253 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.logger = exports.strictParseByte = exports.strictParseShort = exports.strictParseInt32 = exports.strictParseInt = exports.strictParseLong = exports.limitedParseFloat32 = exports.limitedParseFloat = exports.handleFloat = exports.limitedParseDouble = exports.strictParseFloat32 = exports.strictParseFloat = exports.strictParseDouble = exports.expectUnion = exports.expectString = exports.expectObject = exports.expectNonNull = exports.expectByte = exports.expectShort = exports.expectInt32 = exports.expectInt = exports.expectLong = exports.expectFloat32 = exports.expectNumber = exports.expectBoolean = exports.parseBoolean = void 0; -const parseBoolean = (value) => { - switch (value) { - case "true": - return true; - case "false": - return false; - default: - throw new Error(`Unable to parse boolean value "${value}"`); - } -}; -exports.parseBoolean = parseBoolean; -const expectBoolean = (value) => { - if (value === null || value === undefined) { - return undefined; - } - if (typeof value === "number") { - if (value === 0 || value === 1) { - exports.logger.warn(stackTraceWarning(`Expected boolean, got ${typeof value}: ${value}`)); - } - if (value === 0) { - return false; - } - if (value === 1) { - return true; - } - } - if (typeof value === "string") { - const lower = value.toLowerCase(); - if (lower === "false" || lower === "true") { - exports.logger.warn(stackTraceWarning(`Expected boolean, got ${typeof value}: ${value}`)); - } - if (lower === "false") { - return false; - } - if (lower === "true") { - return true; - } - } - if (typeof value === "boolean") { - return value; - } - throw new TypeError(`Expected boolean, got ${typeof value}: ${value}`); -}; -exports.expectBoolean = expectBoolean; -const expectNumber = (value) => { - if (value === null || value === undefined) { - return undefined; - } - if (typeof value === "string") { - const parsed = parseFloat(value); - if (!Number.isNaN(parsed)) { - if (String(parsed) !== String(value)) { - exports.logger.warn(stackTraceWarning(`Expected number but observed string: ${value}`)); - } - return parsed; - } - } - if (typeof value === "number") { - return value; - } - throw new TypeError(`Expected number, got ${typeof value}: ${value}`); -}; -exports.expectNumber = expectNumber; -const MAX_FLOAT = Math.ceil(2 ** 127 * (2 - 2 ** -23)); -const expectFloat32 = (value) => { - const expected = (0, exports.expectNumber)(value); - if (expected !== undefined && !Number.isNaN(expected) && expected !== Infinity && expected !== -Infinity) { - if (Math.abs(expected) > MAX_FLOAT) { - throw new TypeError(`Expected 32-bit float, got ${value}`); - } - } - return expected; -}; -exports.expectFloat32 = expectFloat32; -const expectLong = (value) => { - if (value === null || value === undefined) { - return undefined; - } - if (Number.isInteger(value) && !Number.isNaN(value)) { - return value; - } - throw new TypeError(`Expected integer, got ${typeof value}: ${value}`); -}; -exports.expectLong = expectLong; -exports.expectInt = exports.expectLong; -const expectInt32 = (value) => expectSizedInt(value, 32); -exports.expectInt32 = expectInt32; -const expectShort = (value) => expectSizedInt(value, 16); -exports.expectShort = expectShort; -const expectByte = (value) => expectSizedInt(value, 8); -exports.expectByte = expectByte; -const expectSizedInt = (value, size) => { - const expected = (0, exports.expectLong)(value); - if (expected !== undefined && castInt(expected, size) !== expected) { - throw new TypeError(`Expected ${size}-bit integer, got ${value}`); - } - return expected; -}; -const castInt = (value, size) => { - switch (size) { - case 32: - return Int32Array.of(value)[0]; - case 16: - return Int16Array.of(value)[0]; - case 8: - return Int8Array.of(value)[0]; - } -}; -const expectNonNull = (value, location) => { - if (value === null || value === undefined) { - if (location) { - throw new TypeError(`Expected a non-null value for ${location}`); - } - throw new TypeError("Expected a non-null value"); - } - return value; -}; -exports.expectNonNull = expectNonNull; -const expectObject = (value) => { - if (value === null || value === undefined) { - return undefined; - } - if (typeof value === "object" && !Array.isArray(value)) { - return value; - } - const receivedType = Array.isArray(value) ? "array" : typeof value; - throw new TypeError(`Expected object, got ${receivedType}: ${value}`); -}; -exports.expectObject = expectObject; -const expectString = (value) => { - if (value === null || value === undefined) { - return undefined; - } - if (typeof value === "string") { - return value; - } - if (["boolean", "number", "bigint"].includes(typeof value)) { - exports.logger.warn(stackTraceWarning(`Expected string, got ${typeof value}: ${value}`)); - return String(value); - } - throw new TypeError(`Expected string, got ${typeof value}: ${value}`); -}; -exports.expectString = expectString; -const expectUnion = (value) => { - if (value === null || value === undefined) { - return undefined; - } - const asObject = (0, exports.expectObject)(value); - const setKeys = Object.entries(asObject) - .filter(([, v]) => v != null) - .map(([k]) => k); - if (setKeys.length === 0) { - throw new TypeError(`Unions must have exactly one non-null member. None were found.`); - } - if (setKeys.length > 1) { - throw new TypeError(`Unions must have exactly one non-null member. Keys ${setKeys} were not null.`); - } - return asObject; -}; -exports.expectUnion = expectUnion; -const strictParseDouble = (value) => { - if (typeof value == "string") { - return (0, exports.expectNumber)(parseNumber(value)); - } - return (0, exports.expectNumber)(value); -}; -exports.strictParseDouble = strictParseDouble; -exports.strictParseFloat = exports.strictParseDouble; -const strictParseFloat32 = (value) => { - if (typeof value == "string") { - return (0, exports.expectFloat32)(parseNumber(value)); - } - return (0, exports.expectFloat32)(value); -}; -exports.strictParseFloat32 = strictParseFloat32; -const NUMBER_REGEX = /(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g; -const parseNumber = (value) => { - const matches = value.match(NUMBER_REGEX); - if (matches === null || matches[0].length !== value.length) { - throw new TypeError(`Expected real number, got implicit NaN`); - } - return parseFloat(value); -}; -const limitedParseDouble = (value) => { - if (typeof value == "string") { - return parseFloatString(value); - } - return (0, exports.expectNumber)(value); -}; -exports.limitedParseDouble = limitedParseDouble; -exports.handleFloat = exports.limitedParseDouble; -exports.limitedParseFloat = exports.limitedParseDouble; -const limitedParseFloat32 = (value) => { - if (typeof value == "string") { - return parseFloatString(value); - } - return (0, exports.expectFloat32)(value); -}; -exports.limitedParseFloat32 = limitedParseFloat32; -const parseFloatString = (value) => { - switch (value) { - case "NaN": - return NaN; - case "Infinity": - return Infinity; - case "-Infinity": - return -Infinity; - default: - throw new Error(`Unable to parse float value: ${value}`); - } -}; -const strictParseLong = (value) => { - if (typeof value === "string") { - return (0, exports.expectLong)(parseNumber(value)); - } - return (0, exports.expectLong)(value); -}; -exports.strictParseLong = strictParseLong; -exports.strictParseInt = exports.strictParseLong; -const strictParseInt32 = (value) => { - if (typeof value === "string") { - return (0, exports.expectInt32)(parseNumber(value)); - } - return (0, exports.expectInt32)(value); -}; -exports.strictParseInt32 = strictParseInt32; -const strictParseShort = (value) => { - if (typeof value === "string") { - return (0, exports.expectShort)(parseNumber(value)); - } - return (0, exports.expectShort)(value); -}; -exports.strictParseShort = strictParseShort; -const strictParseByte = (value) => { - if (typeof value === "string") { - return (0, exports.expectByte)(parseNumber(value)); - } - return (0, exports.expectByte)(value); -}; -exports.strictParseByte = strictParseByte; -const stackTraceWarning = (message) => { - return String(new TypeError(message).stack || message) - .split("\n") - .slice(0, 5) - .filter((s) => !s.includes("stackTraceWarning")) - .join("\n"); -}; -exports.logger = { - warn: console.warn, -}; diff --git a/node_modules/@smithy/smithy-client/dist-cjs/resolve-path.js b/node_modules/@smithy/smithy-client/dist-cjs/resolve-path.js deleted file mode 100644 index fdd9141c..00000000 --- a/node_modules/@smithy/smithy-client/dist-cjs/resolve-path.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.resolvedPath = void 0; -const extended_encode_uri_component_1 = require("./extended-encode-uri-component"); -const resolvedPath = (resolvedPath, input, memberName, labelValueProvider, uriLabel, isGreedyLabel) => { - if (input != null && input[memberName] !== undefined) { - const labelValue = labelValueProvider(); - if (labelValue.length <= 0) { - throw new Error("Empty value provided for input HTTP label: " + memberName + "."); - } - resolvedPath = resolvedPath.replace(uriLabel, isGreedyLabel - ? labelValue - .split("/") - .map((segment) => (0, extended_encode_uri_component_1.extendedEncodeURIComponent)(segment)) - .join("/") - : (0, extended_encode_uri_component_1.extendedEncodeURIComponent)(labelValue)); - } - else { - throw new Error("No value provided for input HTTP label: " + memberName + "."); - } - return resolvedPath; -}; -exports.resolvedPath = resolvedPath; diff --git a/node_modules/@smithy/smithy-client/dist-cjs/ser-utils.js b/node_modules/@smithy/smithy-client/dist-cjs/ser-utils.js deleted file mode 100644 index 0587b781..00000000 --- a/node_modules/@smithy/smithy-client/dist-cjs/ser-utils.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.serializeFloat = void 0; -const serializeFloat = (value) => { - if (value !== value) { - return "NaN"; - } - switch (value) { - case Infinity: - return "Infinity"; - case -Infinity: - return "-Infinity"; - default: - return value; - } -}; -exports.serializeFloat = serializeFloat; diff --git a/node_modules/@smithy/smithy-client/dist-cjs/serde-json.js b/node_modules/@smithy/smithy-client/dist-cjs/serde-json.js deleted file mode 100644 index cd2e4832..00000000 --- a/node_modules/@smithy/smithy-client/dist-cjs/serde-json.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports._json = void 0; -const _json = (obj) => { - if (obj == null) { - return {}; - } - if (Array.isArray(obj)) { - return obj.filter((_) => _ != null); - } - if (typeof obj === "object") { - const target = {}; - for (const key of Object.keys(obj)) { - if (obj[key] == null) { - continue; - } - target[key] = (0, exports._json)(obj[key]); - } - return target; - } - return obj; -}; -exports._json = _json; diff --git a/node_modules/@smithy/smithy-client/dist-cjs/split-every.js b/node_modules/@smithy/smithy-client/dist-cjs/split-every.js deleted file mode 100644 index 453529bb..00000000 --- a/node_modules/@smithy/smithy-client/dist-cjs/split-every.js +++ /dev/null @@ -1,31 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.splitEvery = void 0; -function splitEvery(value, delimiter, numDelimiters) { - if (numDelimiters <= 0 || !Number.isInteger(numDelimiters)) { - throw new Error("Invalid number of delimiters (" + numDelimiters + ") for splitEvery."); - } - const segments = value.split(delimiter); - if (numDelimiters === 1) { - return segments; - } - const compoundSegments = []; - let currentSegment = ""; - for (let i = 0; i < segments.length; i++) { - if (currentSegment === "") { - currentSegment = segments[i]; - } - else { - currentSegment += delimiter + segments[i]; - } - if ((i + 1) % numDelimiters === 0) { - compoundSegments.push(currentSegment); - currentSegment = ""; - } - } - if (currentSegment !== "") { - compoundSegments.push(currentSegment); - } - return compoundSegments; -} -exports.splitEvery = splitEvery; diff --git a/node_modules/@smithy/smithy-client/dist-es/NoOpLogger.js b/node_modules/@smithy/smithy-client/dist-es/NoOpLogger.js deleted file mode 100644 index 73cd0764..00000000 --- a/node_modules/@smithy/smithy-client/dist-es/NoOpLogger.js +++ /dev/null @@ -1,7 +0,0 @@ -export class NoOpLogger { - trace() { } - debug() { } - info() { } - warn() { } - error() { } -} diff --git a/node_modules/@smithy/smithy-client/dist-es/client.js b/node_modules/@smithy/smithy-client/dist-es/client.js deleted file mode 100644 index c811198a..00000000 --- a/node_modules/@smithy/smithy-client/dist-es/client.js +++ /dev/null @@ -1,24 +0,0 @@ -import { constructStack } from "@smithy/middleware-stack"; -export class Client { - constructor(config) { - this.middlewareStack = constructStack(); - this.config = config; - } - send(command, optionsOrCb, cb) { - const options = typeof optionsOrCb !== "function" ? optionsOrCb : undefined; - const callback = typeof optionsOrCb === "function" ? optionsOrCb : cb; - const handler = command.resolveMiddleware(this.middlewareStack, this.config, options); - if (callback) { - handler(command) - .then((result) => callback(null, result.output), (err) => callback(err)) - .catch(() => { }); - } - else { - return handler(command).then((result) => result.output); - } - } - destroy() { - if (this.config.requestHandler.destroy) - this.config.requestHandler.destroy(); - } -} diff --git a/node_modules/@smithy/smithy-client/dist-es/collect-stream-body.js b/node_modules/@smithy/smithy-client/dist-es/collect-stream-body.js deleted file mode 100644 index b6a5c0ba..00000000 --- a/node_modules/@smithy/smithy-client/dist-es/collect-stream-body.js +++ /dev/null @@ -1,11 +0,0 @@ -import { Uint8ArrayBlobAdapter } from "@smithy/util-stream"; -export const collectBody = async (streamBody = new Uint8Array(), context) => { - if (streamBody instanceof Uint8Array) { - return Uint8ArrayBlobAdapter.mutate(streamBody); - } - if (!streamBody) { - return Uint8ArrayBlobAdapter.mutate(new Uint8Array()); - } - const fromContext = context.streamCollector(streamBody); - return Uint8ArrayBlobAdapter.mutate(await fromContext); -}; diff --git a/node_modules/@smithy/smithy-client/dist-es/command.js b/node_modules/@smithy/smithy-client/dist-es/command.js deleted file mode 100644 index aaf39301..00000000 --- a/node_modules/@smithy/smithy-client/dist-es/command.js +++ /dev/null @@ -1,6 +0,0 @@ -import { constructStack } from "@smithy/middleware-stack"; -export class Command { - constructor() { - this.middlewareStack = constructStack(); - } -} diff --git a/node_modules/@smithy/smithy-client/dist-es/constants.js b/node_modules/@smithy/smithy-client/dist-es/constants.js deleted file mode 100644 index 9b193d78..00000000 --- a/node_modules/@smithy/smithy-client/dist-es/constants.js +++ /dev/null @@ -1 +0,0 @@ -export const SENSITIVE_STRING = "***SensitiveInformation***"; diff --git a/node_modules/@smithy/smithy-client/dist-es/create-aggregated-client.js b/node_modules/@smithy/smithy-client/dist-es/create-aggregated-client.js deleted file mode 100644 index 44cf4dc2..00000000 --- a/node_modules/@smithy/smithy-client/dist-es/create-aggregated-client.js +++ /dev/null @@ -1,21 +0,0 @@ -export const createAggregatedClient = (commands, Client) => { - for (const command of Object.keys(commands)) { - const CommandCtor = commands[command]; - const methodImpl = async function (args, optionsOrCb, cb) { - const command = new CommandCtor(args); - if (typeof optionsOrCb === "function") { - this.send(command, optionsOrCb); - } - else if (typeof cb === "function") { - if (typeof optionsOrCb !== "object") - throw new Error(`Expected http options but got ${typeof optionsOrCb}`); - this.send(command, optionsOrCb || {}, cb); - } - else { - return this.send(command, optionsOrCb); - } - }; - const methodName = (command[0].toLowerCase() + command.slice(1)).replace(/Command$/, ""); - Client.prototype[methodName] = methodImpl; - } -}; diff --git a/node_modules/@smithy/smithy-client/dist-es/date-utils.js b/node_modules/@smithy/smithy-client/dist-es/date-utils.js deleted file mode 100644 index e3293b2c..00000000 --- a/node_modules/@smithy/smithy-client/dist-es/date-utils.js +++ /dev/null @@ -1,187 +0,0 @@ -import { strictParseByte, strictParseDouble, strictParseFloat32, strictParseShort } from "./parse-utils"; -const DAYS = ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"]; -const MONTHS = ["Jan", "Feb", "Mar", "Apr", "May", "Jun", "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"]; -export function dateToUtcString(date) { - const year = date.getUTCFullYear(); - const month = date.getUTCMonth(); - const dayOfWeek = date.getUTCDay(); - const dayOfMonthInt = date.getUTCDate(); - const hoursInt = date.getUTCHours(); - const minutesInt = date.getUTCMinutes(); - const secondsInt = date.getUTCSeconds(); - const dayOfMonthString = dayOfMonthInt < 10 ? `0${dayOfMonthInt}` : `${dayOfMonthInt}`; - const hoursString = hoursInt < 10 ? `0${hoursInt}` : `${hoursInt}`; - const minutesString = minutesInt < 10 ? `0${minutesInt}` : `${minutesInt}`; - const secondsString = secondsInt < 10 ? `0${secondsInt}` : `${secondsInt}`; - return `${DAYS[dayOfWeek]}, ${dayOfMonthString} ${MONTHS[month]} ${year} ${hoursString}:${minutesString}:${secondsString} GMT`; -} -const RFC3339 = new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?[zZ]$/); -export const parseRfc3339DateTime = (value) => { - if (value === null || value === undefined) { - return undefined; - } - if (typeof value !== "string") { - throw new TypeError("RFC-3339 date-times must be expressed as strings"); - } - const match = RFC3339.exec(value); - if (!match) { - throw new TypeError("Invalid RFC-3339 date-time value"); - } - const [_, yearStr, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds] = match; - const year = strictParseShort(stripLeadingZeroes(yearStr)); - const month = parseDateValue(monthStr, "month", 1, 12); - const day = parseDateValue(dayStr, "day", 1, 31); - return buildDate(year, month, day, { hours, minutes, seconds, fractionalMilliseconds }); -}; -const RFC3339_WITH_OFFSET = new RegExp(/^(\d{4})-(\d{2})-(\d{2})[tT](\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?(([-+]\d{2}\:\d{2})|[zZ])$/); -export const parseRfc3339DateTimeWithOffset = (value) => { - if (value === null || value === undefined) { - return undefined; - } - if (typeof value !== "string") { - throw new TypeError("RFC-3339 date-times must be expressed as strings"); - } - const match = RFC3339_WITH_OFFSET.exec(value); - if (!match) { - throw new TypeError("Invalid RFC-3339 date-time value"); - } - const [_, yearStr, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds, offsetStr] = match; - const year = strictParseShort(stripLeadingZeroes(yearStr)); - const month = parseDateValue(monthStr, "month", 1, 12); - const day = parseDateValue(dayStr, "day", 1, 31); - const date = buildDate(year, month, day, { hours, minutes, seconds, fractionalMilliseconds }); - if (offsetStr.toUpperCase() != "Z") { - date.setTime(date.getTime() - parseOffsetToMilliseconds(offsetStr)); - } - return date; -}; -const IMF_FIXDATE = new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d{2}) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/); -const RFC_850_DATE = new RegExp(/^(?:Monday|Tuesday|Wednesday|Thursday|Friday|Saturday|Sunday), (\d{2})-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? GMT$/); -const ASC_TIME = new RegExp(/^(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( [1-9]|\d{2}) (\d{1,2}):(\d{2}):(\d{2})(?:\.(\d+))? (\d{4})$/); -export const parseRfc7231DateTime = (value) => { - if (value === null || value === undefined) { - return undefined; - } - if (typeof value !== "string") { - throw new TypeError("RFC-7231 date-times must be expressed as strings"); - } - let match = IMF_FIXDATE.exec(value); - if (match) { - const [_, dayStr, monthStr, yearStr, hours, minutes, seconds, fractionalMilliseconds] = match; - return buildDate(strictParseShort(stripLeadingZeroes(yearStr)), parseMonthByShortName(monthStr), parseDateValue(dayStr, "day", 1, 31), { hours, minutes, seconds, fractionalMilliseconds }); - } - match = RFC_850_DATE.exec(value); - if (match) { - const [_, dayStr, monthStr, yearStr, hours, minutes, seconds, fractionalMilliseconds] = match; - return adjustRfc850Year(buildDate(parseTwoDigitYear(yearStr), parseMonthByShortName(monthStr), parseDateValue(dayStr, "day", 1, 31), { - hours, - minutes, - seconds, - fractionalMilliseconds, - })); - } - match = ASC_TIME.exec(value); - if (match) { - const [_, monthStr, dayStr, hours, minutes, seconds, fractionalMilliseconds, yearStr] = match; - return buildDate(strictParseShort(stripLeadingZeroes(yearStr)), parseMonthByShortName(monthStr), parseDateValue(dayStr.trimLeft(), "day", 1, 31), { hours, minutes, seconds, fractionalMilliseconds }); - } - throw new TypeError("Invalid RFC-7231 date-time value"); -}; -export const parseEpochTimestamp = (value) => { - if (value === null || value === undefined) { - return undefined; - } - let valueAsDouble; - if (typeof value === "number") { - valueAsDouble = value; - } - else if (typeof value === "string") { - valueAsDouble = strictParseDouble(value); - } - else { - throw new TypeError("Epoch timestamps must be expressed as floating point numbers or their string representation"); - } - if (Number.isNaN(valueAsDouble) || valueAsDouble === Infinity || valueAsDouble === -Infinity) { - throw new TypeError("Epoch timestamps must be valid, non-Infinite, non-NaN numerics"); - } - return new Date(Math.round(valueAsDouble * 1000)); -}; -const buildDate = (year, month, day, time) => { - const adjustedMonth = month - 1; - validateDayOfMonth(year, adjustedMonth, day); - return new Date(Date.UTC(year, adjustedMonth, day, parseDateValue(time.hours, "hour", 0, 23), parseDateValue(time.minutes, "minute", 0, 59), parseDateValue(time.seconds, "seconds", 0, 60), parseMilliseconds(time.fractionalMilliseconds))); -}; -const parseTwoDigitYear = (value) => { - const thisYear = new Date().getUTCFullYear(); - const valueInThisCentury = Math.floor(thisYear / 100) * 100 + strictParseShort(stripLeadingZeroes(value)); - if (valueInThisCentury < thisYear) { - return valueInThisCentury + 100; - } - return valueInThisCentury; -}; -const FIFTY_YEARS_IN_MILLIS = 50 * 365 * 24 * 60 * 60 * 1000; -const adjustRfc850Year = (input) => { - if (input.getTime() - new Date().getTime() > FIFTY_YEARS_IN_MILLIS) { - return new Date(Date.UTC(input.getUTCFullYear() - 100, input.getUTCMonth(), input.getUTCDate(), input.getUTCHours(), input.getUTCMinutes(), input.getUTCSeconds(), input.getUTCMilliseconds())); - } - return input; -}; -const parseMonthByShortName = (value) => { - const monthIdx = MONTHS.indexOf(value); - if (monthIdx < 0) { - throw new TypeError(`Invalid month: ${value}`); - } - return monthIdx + 1; -}; -const DAYS_IN_MONTH = [31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31]; -const validateDayOfMonth = (year, month, day) => { - let maxDays = DAYS_IN_MONTH[month]; - if (month === 1 && isLeapYear(year)) { - maxDays = 29; - } - if (day > maxDays) { - throw new TypeError(`Invalid day for ${MONTHS[month]} in ${year}: ${day}`); - } -}; -const isLeapYear = (year) => { - return year % 4 === 0 && (year % 100 !== 0 || year % 400 === 0); -}; -const parseDateValue = (value, type, lower, upper) => { - const dateVal = strictParseByte(stripLeadingZeroes(value)); - if (dateVal < lower || dateVal > upper) { - throw new TypeError(`${type} must be between ${lower} and ${upper}, inclusive`); - } - return dateVal; -}; -const parseMilliseconds = (value) => { - if (value === null || value === undefined) { - return 0; - } - return strictParseFloat32("0." + value) * 1000; -}; -const parseOffsetToMilliseconds = (value) => { - const directionStr = value[0]; - let direction = 1; - if (directionStr == "+") { - direction = 1; - } - else if (directionStr == "-") { - direction = -1; - } - else { - throw new TypeError(`Offset direction, ${directionStr}, must be "+" or "-"`); - } - const hour = Number(value.substring(1, 3)); - const minute = Number(value.substring(4, 6)); - return direction * (hour * 60 + minute) * 60 * 1000; -}; -const stripLeadingZeroes = (value) => { - let idx = 0; - while (idx < value.length - 1 && value.charAt(idx) === "0") { - idx++; - } - if (idx === 0) { - return value; - } - return value.slice(idx); -}; diff --git a/node_modules/@smithy/smithy-client/dist-es/default-error-handler.js b/node_modules/@smithy/smithy-client/dist-es/default-error-handler.js deleted file mode 100644 index 7da1091a..00000000 --- a/node_modules/@smithy/smithy-client/dist-es/default-error-handler.js +++ /dev/null @@ -1,22 +0,0 @@ -import { decorateServiceException } from "./exceptions"; -export const throwDefaultError = ({ output, parsedBody, exceptionCtor, errorCode }) => { - const $metadata = deserializeMetadata(output); - const statusCode = $metadata.httpStatusCode ? $metadata.httpStatusCode + "" : undefined; - const response = new exceptionCtor({ - name: parsedBody?.code || parsedBody?.Code || errorCode || statusCode || "UnknownError", - $fault: "client", - $metadata, - }); - throw decorateServiceException(response, parsedBody); -}; -export const withBaseException = (ExceptionCtor) => { - return ({ output, parsedBody, errorCode }) => { - throwDefaultError({ output, parsedBody, exceptionCtor: ExceptionCtor, errorCode }); - }; -}; -const deserializeMetadata = (output) => ({ - httpStatusCode: output.statusCode, - requestId: output.headers["x-amzn-requestid"] ?? output.headers["x-amzn-request-id"] ?? output.headers["x-amz-request-id"], - extendedRequestId: output.headers["x-amz-id-2"], - cfId: output.headers["x-amz-cf-id"], -}); diff --git a/node_modules/@smithy/smithy-client/dist-es/defaults-mode.js b/node_modules/@smithy/smithy-client/dist-es/defaults-mode.js deleted file mode 100644 index f19079c0..00000000 --- a/node_modules/@smithy/smithy-client/dist-es/defaults-mode.js +++ /dev/null @@ -1,26 +0,0 @@ -export const loadConfigsForDefaultMode = (mode) => { - switch (mode) { - case "standard": - return { - retryMode: "standard", - connectionTimeout: 3100, - }; - case "in-region": - return { - retryMode: "standard", - connectionTimeout: 1100, - }; - case "cross-region": - return { - retryMode: "standard", - connectionTimeout: 3100, - }; - case "mobile": - return { - retryMode: "standard", - connectionTimeout: 30000, - }; - default: - return {}; - } -}; diff --git a/node_modules/@smithy/smithy-client/dist-es/emitWarningIfUnsupportedVersion.js b/node_modules/@smithy/smithy-client/dist-es/emitWarningIfUnsupportedVersion.js deleted file mode 100644 index 993b9654..00000000 --- a/node_modules/@smithy/smithy-client/dist-es/emitWarningIfUnsupportedVersion.js +++ /dev/null @@ -1,6 +0,0 @@ -let warningEmitted = false; -export const emitWarningIfUnsupportedVersion = (version) => { - if (version && !warningEmitted && parseInt(version.substring(1, version.indexOf("."))) < 14) { - warningEmitted = true; - } -}; diff --git a/node_modules/@smithy/smithy-client/dist-es/exceptions.js b/node_modules/@smithy/smithy-client/dist-es/exceptions.js deleted file mode 100644 index e7d3ab4f..00000000 --- a/node_modules/@smithy/smithy-client/dist-es/exceptions.js +++ /dev/null @@ -1,22 +0,0 @@ -export class ServiceException extends Error { - constructor(options) { - super(options.message); - Object.setPrototypeOf(this, ServiceException.prototype); - this.name = options.name; - this.$fault = options.$fault; - this.$metadata = options.$metadata; - } -} -export const decorateServiceException = (exception, additions = {}) => { - Object.entries(additions) - .filter(([, v]) => v !== undefined) - .forEach(([k, v]) => { - if (exception[k] == undefined || exception[k] === "") { - exception[k] = v; - } - }); - const message = exception.message || exception.Message || "UnknownError"; - exception.message = message; - delete exception.Message; - return exception; -}; diff --git a/node_modules/@smithy/smithy-client/dist-es/extended-encode-uri-component.js b/node_modules/@smithy/smithy-client/dist-es/extended-encode-uri-component.js deleted file mode 100644 index 5baeaf56..00000000 --- a/node_modules/@smithy/smithy-client/dist-es/extended-encode-uri-component.js +++ /dev/null @@ -1,5 +0,0 @@ -export function extendedEncodeURIComponent(str) { - return encodeURIComponent(str).replace(/[!'()*]/g, function (c) { - return "%" + c.charCodeAt(0).toString(16).toUpperCase(); - }); -} diff --git a/node_modules/@smithy/smithy-client/dist-es/extensions/checksum.js b/node_modules/@smithy/smithy-client/dist-es/extensions/checksum.js deleted file mode 100644 index b0919240..00000000 --- a/node_modules/@smithy/smithy-client/dist-es/extensions/checksum.js +++ /dev/null @@ -1,31 +0,0 @@ -import { AlgorithmId } from "@smithy/types"; -export { AlgorithmId }; -export const getChecksumConfiguration = (runtimeConfig) => { - const checksumAlgorithms = []; - for (const id in AlgorithmId) { - const algorithmId = AlgorithmId[id]; - if (runtimeConfig[algorithmId] === undefined) { - continue; - } - checksumAlgorithms.push({ - algorithmId: () => algorithmId, - checksumConstructor: () => runtimeConfig[algorithmId], - }); - } - return { - _checksumAlgorithms: checksumAlgorithms, - addChecksumAlgorithm(algo) { - this._checksumAlgorithms.push(algo); - }, - checksumAlgorithms() { - return this._checksumAlgorithms; - }, - }; -}; -export const resolveChecksumRuntimeConfig = (clientConfig) => { - const runtimeConfig = {}; - clientConfig.checksumAlgorithms().forEach((checksumAlgorithm) => { - runtimeConfig[checksumAlgorithm.algorithmId()] = checksumAlgorithm.checksumConstructor(); - }); - return runtimeConfig; -}; diff --git a/node_modules/@smithy/smithy-client/dist-es/extensions/defaultExtensionConfiguration.js b/node_modules/@smithy/smithy-client/dist-es/extensions/defaultExtensionConfiguration.js deleted file mode 100644 index 52a70eb1..00000000 --- a/node_modules/@smithy/smithy-client/dist-es/extensions/defaultExtensionConfiguration.js +++ /dev/null @@ -1,15 +0,0 @@ -import { getChecksumConfiguration, resolveChecksumRuntimeConfig } from "./checksum"; -import { getRetryConfiguration, resolveRetryRuntimeConfig } from "./retry"; -export const getDefaultExtensionConfiguration = (runtimeConfig) => { - return { - ...getChecksumConfiguration(runtimeConfig), - ...getRetryConfiguration(runtimeConfig), - }; -}; -export const getDefaultClientConfiguration = getDefaultExtensionConfiguration; -export const resolveDefaultRuntimeConfig = (config) => { - return { - ...resolveChecksumRuntimeConfig(config), - ...resolveRetryRuntimeConfig(config), - }; -}; diff --git a/node_modules/@smithy/smithy-client/dist-es/extensions/index.js b/node_modules/@smithy/smithy-client/dist-es/extensions/index.js deleted file mode 100644 index f1b80749..00000000 --- a/node_modules/@smithy/smithy-client/dist-es/extensions/index.js +++ /dev/null @@ -1 +0,0 @@ -export * from "./defaultExtensionConfiguration"; diff --git a/node_modules/@smithy/smithy-client/dist-es/extensions/retry.js b/node_modules/@smithy/smithy-client/dist-es/extensions/retry.js deleted file mode 100644 index bf8e5de6..00000000 --- a/node_modules/@smithy/smithy-client/dist-es/extensions/retry.js +++ /dev/null @@ -1,16 +0,0 @@ -export const getRetryConfiguration = (runtimeConfig) => { - let _retryStrategy = runtimeConfig.retryStrategy; - return { - setRetryStrategy(retryStrategy) { - _retryStrategy = retryStrategy; - }, - retryStrategy() { - return _retryStrategy; - }, - }; -}; -export const resolveRetryRuntimeConfig = (retryStrategyConfiguration) => { - const runtimeConfig = {}; - runtimeConfig.retryStrategy = retryStrategyConfiguration.retryStrategy(); - return runtimeConfig; -}; diff --git a/node_modules/@smithy/smithy-client/dist-es/get-array-if-single-item.js b/node_modules/@smithy/smithy-client/dist-es/get-array-if-single-item.js deleted file mode 100644 index 25d94327..00000000 --- a/node_modules/@smithy/smithy-client/dist-es/get-array-if-single-item.js +++ /dev/null @@ -1 +0,0 @@ -export const getArrayIfSingleItem = (mayBeArray) => Array.isArray(mayBeArray) ? mayBeArray : [mayBeArray]; diff --git a/node_modules/@smithy/smithy-client/dist-es/get-value-from-text-node.js b/node_modules/@smithy/smithy-client/dist-es/get-value-from-text-node.js deleted file mode 100644 index aa0f8271..00000000 --- a/node_modules/@smithy/smithy-client/dist-es/get-value-from-text-node.js +++ /dev/null @@ -1,12 +0,0 @@ -export const getValueFromTextNode = (obj) => { - const textNodeName = "#text"; - for (const key in obj) { - if (obj.hasOwnProperty(key) && obj[key][textNodeName] !== undefined) { - obj[key] = obj[key][textNodeName]; - } - else if (typeof obj[key] === "object" && obj[key] !== null) { - obj[key] = getValueFromTextNode(obj[key]); - } - } - return obj; -}; diff --git a/node_modules/@smithy/smithy-client/dist-es/index.js b/node_modules/@smithy/smithy-client/dist-es/index.js deleted file mode 100644 index b9be4f3e..00000000 --- a/node_modules/@smithy/smithy-client/dist-es/index.js +++ /dev/null @@ -1,22 +0,0 @@ -export * from "./NoOpLogger"; -export * from "./client"; -export * from "./collect-stream-body"; -export * from "./command"; -export * from "./constants"; -export * from "./create-aggregated-client"; -export * from "./date-utils"; -export * from "./default-error-handler"; -export * from "./defaults-mode"; -export * from "./emitWarningIfUnsupportedVersion"; -export * from "./extensions"; -export * from "./exceptions"; -export * from "./extended-encode-uri-component"; -export * from "./get-array-if-single-item"; -export * from "./get-value-from-text-node"; -export * from "./lazy-json"; -export * from "./object-mapping"; -export * from "./parse-utils"; -export * from "./resolve-path"; -export * from "./ser-utils"; -export * from "./serde-json"; -export * from "./split-every"; diff --git a/node_modules/@smithy/smithy-client/dist-es/lazy-json.js b/node_modules/@smithy/smithy-client/dist-es/lazy-json.js deleted file mode 100644 index cff1a7eb..00000000 --- a/node_modules/@smithy/smithy-client/dist-es/lazy-json.js +++ /dev/null @@ -1,33 +0,0 @@ -export const StringWrapper = function () { - const Class = Object.getPrototypeOf(this).constructor; - const Constructor = Function.bind.apply(String, [null, ...arguments]); - const instance = new Constructor(); - Object.setPrototypeOf(instance, Class.prototype); - return instance; -}; -StringWrapper.prototype = Object.create(String.prototype, { - constructor: { - value: StringWrapper, - enumerable: false, - writable: true, - configurable: true, - }, -}); -Object.setPrototypeOf(StringWrapper, String); -export class LazyJsonString extends StringWrapper { - deserializeJSON() { - return JSON.parse(super.toString()); - } - toJSON() { - return super.toString(); - } - static fromObject(object) { - if (object instanceof LazyJsonString) { - return object; - } - else if (object instanceof String || typeof object === "string") { - return new LazyJsonString(object); - } - return new LazyJsonString(JSON.stringify(object)); - } -} diff --git a/node_modules/@smithy/smithy-client/dist-es/object-mapping.js b/node_modules/@smithy/smithy-client/dist-es/object-mapping.js deleted file mode 100644 index 84a1f263..00000000 --- a/node_modules/@smithy/smithy-client/dist-es/object-mapping.js +++ /dev/null @@ -1,92 +0,0 @@ -export function map(arg0, arg1, arg2) { - let target; - let filter; - let instructions; - if (typeof arg1 === "undefined" && typeof arg2 === "undefined") { - target = {}; - instructions = arg0; - } - else { - target = arg0; - if (typeof arg1 === "function") { - filter = arg1; - instructions = arg2; - return mapWithFilter(target, filter, instructions); - } - else { - instructions = arg1; - } - } - for (const key of Object.keys(instructions)) { - if (!Array.isArray(instructions[key])) { - target[key] = instructions[key]; - continue; - } - applyInstruction(target, null, instructions, key); - } - return target; -} -export const convertMap = (target) => { - const output = {}; - for (const [k, v] of Object.entries(target || {})) { - output[k] = [, v]; - } - return output; -}; -export const take = (source, instructions) => { - const out = {}; - for (const key in instructions) { - applyInstruction(out, source, instructions, key); - } - return out; -}; -const mapWithFilter = (target, filter, instructions) => { - return map(target, Object.entries(instructions).reduce((_instructions, [key, value]) => { - if (Array.isArray(value)) { - _instructions[key] = value; - } - else { - if (typeof value === "function") { - _instructions[key] = [filter, value()]; - } - else { - _instructions[key] = [filter, value]; - } - } - return _instructions; - }, {})); -}; -const applyInstruction = (target, source, instructions, targetKey) => { - if (source !== null) { - let instruction = instructions[targetKey]; - if (typeof instruction === "function") { - instruction = [, instruction]; - } - const [filter = nonNullish, valueFn = pass, sourceKey = targetKey] = instruction; - if ((typeof filter === "function" && filter(source[sourceKey])) || (typeof filter !== "function" && !!filter)) { - target[targetKey] = valueFn(source[sourceKey]); - } - return; - } - let [filter, value] = instructions[targetKey]; - if (typeof value === "function") { - let _value; - const defaultFilterPassed = filter === undefined && (_value = value()) != null; - const customFilterPassed = (typeof filter === "function" && !!filter(void 0)) || (typeof filter !== "function" && !!filter); - if (defaultFilterPassed) { - target[targetKey] = _value; - } - else if (customFilterPassed) { - target[targetKey] = value(); - } - } - else { - const defaultFilterPassed = filter === undefined && value != null; - const customFilterPassed = (typeof filter === "function" && !!filter(value)) || (typeof filter !== "function" && !!filter); - if (defaultFilterPassed || customFilterPassed) { - target[targetKey] = value; - } - } -}; -const nonNullish = (_) => _ != null; -const pass = (_) => _; diff --git a/node_modules/@smithy/smithy-client/dist-es/parse-utils.js b/node_modules/@smithy/smithy-client/dist-es/parse-utils.js deleted file mode 100644 index 209db79a..00000000 --- a/node_modules/@smithy/smithy-client/dist-es/parse-utils.js +++ /dev/null @@ -1,230 +0,0 @@ -export const parseBoolean = (value) => { - switch (value) { - case "true": - return true; - case "false": - return false; - default: - throw new Error(`Unable to parse boolean value "${value}"`); - } -}; -export const expectBoolean = (value) => { - if (value === null || value === undefined) { - return undefined; - } - if (typeof value === "number") { - if (value === 0 || value === 1) { - logger.warn(stackTraceWarning(`Expected boolean, got ${typeof value}: ${value}`)); - } - if (value === 0) { - return false; - } - if (value === 1) { - return true; - } - } - if (typeof value === "string") { - const lower = value.toLowerCase(); - if (lower === "false" || lower === "true") { - logger.warn(stackTraceWarning(`Expected boolean, got ${typeof value}: ${value}`)); - } - if (lower === "false") { - return false; - } - if (lower === "true") { - return true; - } - } - if (typeof value === "boolean") { - return value; - } - throw new TypeError(`Expected boolean, got ${typeof value}: ${value}`); -}; -export const expectNumber = (value) => { - if (value === null || value === undefined) { - return undefined; - } - if (typeof value === "string") { - const parsed = parseFloat(value); - if (!Number.isNaN(parsed)) { - if (String(parsed) !== String(value)) { - logger.warn(stackTraceWarning(`Expected number but observed string: ${value}`)); - } - return parsed; - } - } - if (typeof value === "number") { - return value; - } - throw new TypeError(`Expected number, got ${typeof value}: ${value}`); -}; -const MAX_FLOAT = Math.ceil(2 ** 127 * (2 - 2 ** -23)); -export const expectFloat32 = (value) => { - const expected = expectNumber(value); - if (expected !== undefined && !Number.isNaN(expected) && expected !== Infinity && expected !== -Infinity) { - if (Math.abs(expected) > MAX_FLOAT) { - throw new TypeError(`Expected 32-bit float, got ${value}`); - } - } - return expected; -}; -export const expectLong = (value) => { - if (value === null || value === undefined) { - return undefined; - } - if (Number.isInteger(value) && !Number.isNaN(value)) { - return value; - } - throw new TypeError(`Expected integer, got ${typeof value}: ${value}`); -}; -export const expectInt = expectLong; -export const expectInt32 = (value) => expectSizedInt(value, 32); -export const expectShort = (value) => expectSizedInt(value, 16); -export const expectByte = (value) => expectSizedInt(value, 8); -const expectSizedInt = (value, size) => { - const expected = expectLong(value); - if (expected !== undefined && castInt(expected, size) !== expected) { - throw new TypeError(`Expected ${size}-bit integer, got ${value}`); - } - return expected; -}; -const castInt = (value, size) => { - switch (size) { - case 32: - return Int32Array.of(value)[0]; - case 16: - return Int16Array.of(value)[0]; - case 8: - return Int8Array.of(value)[0]; - } -}; -export const expectNonNull = (value, location) => { - if (value === null || value === undefined) { - if (location) { - throw new TypeError(`Expected a non-null value for ${location}`); - } - throw new TypeError("Expected a non-null value"); - } - return value; -}; -export const expectObject = (value) => { - if (value === null || value === undefined) { - return undefined; - } - if (typeof value === "object" && !Array.isArray(value)) { - return value; - } - const receivedType = Array.isArray(value) ? "array" : typeof value; - throw new TypeError(`Expected object, got ${receivedType}: ${value}`); -}; -export const expectString = (value) => { - if (value === null || value === undefined) { - return undefined; - } - if (typeof value === "string") { - return value; - } - if (["boolean", "number", "bigint"].includes(typeof value)) { - logger.warn(stackTraceWarning(`Expected string, got ${typeof value}: ${value}`)); - return String(value); - } - throw new TypeError(`Expected string, got ${typeof value}: ${value}`); -}; -export const expectUnion = (value) => { - if (value === null || value === undefined) { - return undefined; - } - const asObject = expectObject(value); - const setKeys = Object.entries(asObject) - .filter(([, v]) => v != null) - .map(([k]) => k); - if (setKeys.length === 0) { - throw new TypeError(`Unions must have exactly one non-null member. None were found.`); - } - if (setKeys.length > 1) { - throw new TypeError(`Unions must have exactly one non-null member. Keys ${setKeys} were not null.`); - } - return asObject; -}; -export const strictParseDouble = (value) => { - if (typeof value == "string") { - return expectNumber(parseNumber(value)); - } - return expectNumber(value); -}; -export const strictParseFloat = strictParseDouble; -export const strictParseFloat32 = (value) => { - if (typeof value == "string") { - return expectFloat32(parseNumber(value)); - } - return expectFloat32(value); -}; -const NUMBER_REGEX = /(-?(?:0|[1-9]\d*)(?:\.\d+)?(?:[eE][+-]?\d+)?)|(-?Infinity)|(NaN)/g; -const parseNumber = (value) => { - const matches = value.match(NUMBER_REGEX); - if (matches === null || matches[0].length !== value.length) { - throw new TypeError(`Expected real number, got implicit NaN`); - } - return parseFloat(value); -}; -export const limitedParseDouble = (value) => { - if (typeof value == "string") { - return parseFloatString(value); - } - return expectNumber(value); -}; -export const handleFloat = limitedParseDouble; -export const limitedParseFloat = limitedParseDouble; -export const limitedParseFloat32 = (value) => { - if (typeof value == "string") { - return parseFloatString(value); - } - return expectFloat32(value); -}; -const parseFloatString = (value) => { - switch (value) { - case "NaN": - return NaN; - case "Infinity": - return Infinity; - case "-Infinity": - return -Infinity; - default: - throw new Error(`Unable to parse float value: ${value}`); - } -}; -export const strictParseLong = (value) => { - if (typeof value === "string") { - return expectLong(parseNumber(value)); - } - return expectLong(value); -}; -export const strictParseInt = strictParseLong; -export const strictParseInt32 = (value) => { - if (typeof value === "string") { - return expectInt32(parseNumber(value)); - } - return expectInt32(value); -}; -export const strictParseShort = (value) => { - if (typeof value === "string") { - return expectShort(parseNumber(value)); - } - return expectShort(value); -}; -export const strictParseByte = (value) => { - if (typeof value === "string") { - return expectByte(parseNumber(value)); - } - return expectByte(value); -}; -const stackTraceWarning = (message) => { - return String(new TypeError(message).stack || message) - .split("\n") - .slice(0, 5) - .filter((s) => !s.includes("stackTraceWarning")) - .join("\n"); -}; -export const logger = { - warn: console.warn, -}; diff --git a/node_modules/@smithy/smithy-client/dist-es/resolve-path.js b/node_modules/@smithy/smithy-client/dist-es/resolve-path.js deleted file mode 100644 index 8483e014..00000000 --- a/node_modules/@smithy/smithy-client/dist-es/resolve-path.js +++ /dev/null @@ -1,19 +0,0 @@ -import { extendedEncodeURIComponent } from "./extended-encode-uri-component"; -export const resolvedPath = (resolvedPath, input, memberName, labelValueProvider, uriLabel, isGreedyLabel) => { - if (input != null && input[memberName] !== undefined) { - const labelValue = labelValueProvider(); - if (labelValue.length <= 0) { - throw new Error("Empty value provided for input HTTP label: " + memberName + "."); - } - resolvedPath = resolvedPath.replace(uriLabel, isGreedyLabel - ? labelValue - .split("/") - .map((segment) => extendedEncodeURIComponent(segment)) - .join("/") - : extendedEncodeURIComponent(labelValue)); - } - else { - throw new Error("No value provided for input HTTP label: " + memberName + "."); - } - return resolvedPath; -}; diff --git a/node_modules/@smithy/smithy-client/dist-es/ser-utils.js b/node_modules/@smithy/smithy-client/dist-es/ser-utils.js deleted file mode 100644 index 91e5f30b..00000000 --- a/node_modules/@smithy/smithy-client/dist-es/ser-utils.js +++ /dev/null @@ -1,13 +0,0 @@ -export const serializeFloat = (value) => { - if (value !== value) { - return "NaN"; - } - switch (value) { - case Infinity: - return "Infinity"; - case -Infinity: - return "-Infinity"; - default: - return value; - } -}; diff --git a/node_modules/@smithy/smithy-client/dist-es/serde-json.js b/node_modules/@smithy/smithy-client/dist-es/serde-json.js deleted file mode 100644 index debd4d64..00000000 --- a/node_modules/@smithy/smithy-client/dist-es/serde-json.js +++ /dev/null @@ -1,19 +0,0 @@ -export const _json = (obj) => { - if (obj == null) { - return {}; - } - if (Array.isArray(obj)) { - return obj.filter((_) => _ != null); - } - if (typeof obj === "object") { - const target = {}; - for (const key of Object.keys(obj)) { - if (obj[key] == null) { - continue; - } - target[key] = _json(obj[key]); - } - return target; - } - return obj; -}; diff --git a/node_modules/@smithy/smithy-client/dist-es/split-every.js b/node_modules/@smithy/smithy-client/dist-es/split-every.js deleted file mode 100644 index 1d78dcae..00000000 --- a/node_modules/@smithy/smithy-client/dist-es/split-every.js +++ /dev/null @@ -1,27 +0,0 @@ -export function splitEvery(value, delimiter, numDelimiters) { - if (numDelimiters <= 0 || !Number.isInteger(numDelimiters)) { - throw new Error("Invalid number of delimiters (" + numDelimiters + ") for splitEvery."); - } - const segments = value.split(delimiter); - if (numDelimiters === 1) { - return segments; - } - const compoundSegments = []; - let currentSegment = ""; - for (let i = 0; i < segments.length; i++) { - if (currentSegment === "") { - currentSegment = segments[i]; - } - else { - currentSegment += delimiter + segments[i]; - } - if ((i + 1) % numDelimiters === 0) { - compoundSegments.push(currentSegment); - currentSegment = ""; - } - } - if (currentSegment !== "") { - compoundSegments.push(currentSegment); - } - return compoundSegments; -} diff --git a/node_modules/@smithy/smithy-client/dist-types/NoOpLogger.d.ts b/node_modules/@smithy/smithy-client/dist-types/NoOpLogger.d.ts deleted file mode 100644 index 93ebff49..00000000 --- a/node_modules/@smithy/smithy-client/dist-types/NoOpLogger.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Logger } from "@smithy/types"; -/** - * @internal - */ -export declare class NoOpLogger implements Logger { - trace(): void; - debug(): void; - info(): void; - warn(): void; - error(): void; -} diff --git a/node_modules/@smithy/smithy-client/dist-types/client.d.ts b/node_modules/@smithy/smithy-client/dist-types/client.d.ts deleted file mode 100644 index 59d20c1b..00000000 --- a/node_modules/@smithy/smithy-client/dist-types/client.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { Client as IClient, Command, MetadataBearer, MiddlewareStack, RequestHandler } from "@smithy/types"; -/** - * @public - */ -export interface SmithyConfiguration { - requestHandler: RequestHandler; - /** - * The API version set internally by the SDK, and is - * not planned to be used by customer code. - * @internal - */ - readonly apiVersion: string; -} -/** - * @internal - */ -export type SmithyResolvedConfiguration = SmithyConfiguration; -/** - * @public - */ -export declare class Client> implements IClient { - middlewareStack: MiddlewareStack; - readonly config: ResolvedClientConfiguration; - constructor(config: ResolvedClientConfiguration); - send(command: Command>, options?: HandlerOptions): Promise; - send(command: Command>, cb: (err: any, data?: OutputType) => void): void; - send(command: Command>, options: HandlerOptions, cb: (err: any, data?: OutputType) => void): void; - destroy(): void; -} diff --git a/node_modules/@smithy/smithy-client/dist-types/collect-stream-body.d.ts b/node_modules/@smithy/smithy-client/dist-types/collect-stream-body.d.ts deleted file mode 100644 index b555804b..00000000 --- a/node_modules/@smithy/smithy-client/dist-types/collect-stream-body.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { SerdeContext } from "@smithy/types"; -import { Uint8ArrayBlobAdapter } from "@smithy/util-stream"; -/** - * @internal - * - * Collect low-level response body stream to Uint8Array. - */ -export declare const collectBody: (streamBody: any, context: { - streamCollector: SerdeContext["streamCollector"]; -}) => Promise; diff --git a/node_modules/@smithy/smithy-client/dist-types/command.d.ts b/node_modules/@smithy/smithy-client/dist-types/command.d.ts deleted file mode 100644 index e842b880..00000000 --- a/node_modules/@smithy/smithy-client/dist-types/command.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { Command as ICommand, Handler, MetadataBearer, MiddlewareStack as IMiddlewareStack } from "@smithy/types"; -/** - * @public - */ -export declare abstract class Command implements ICommand { - abstract input: Input; - readonly middlewareStack: IMiddlewareStack; - abstract resolveMiddleware(stack: IMiddlewareStack, configuration: ResolvedClientConfiguration, options: any): Handler; -} diff --git a/node_modules/@smithy/smithy-client/dist-types/constants.d.ts b/node_modules/@smithy/smithy-client/dist-types/constants.d.ts deleted file mode 100644 index c17e1c8a..00000000 --- a/node_modules/@smithy/smithy-client/dist-types/constants.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/** - * @internal - */ -export declare const SENSITIVE_STRING = "***SensitiveInformation***"; diff --git a/node_modules/@smithy/smithy-client/dist-types/create-aggregated-client.d.ts b/node_modules/@smithy/smithy-client/dist-types/create-aggregated-client.d.ts deleted file mode 100644 index 00e23d8f..00000000 --- a/node_modules/@smithy/smithy-client/dist-types/create-aggregated-client.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { Client } from "./client"; -/** - * @internal - * - * @param commands - command lookup container. - * @param client - client instance on which to add aggregated methods. - * @returns an aggregated client with dynamically created methods. - */ -export declare const createAggregatedClient: (commands: Record, Client: new (...args: any) => Client) => void; diff --git a/node_modules/@smithy/smithy-client/dist-types/date-utils.d.ts b/node_modules/@smithy/smithy-client/dist-types/date-utils.d.ts deleted file mode 100644 index 99c55f45..00000000 --- a/node_modules/@smithy/smithy-client/dist-types/date-utils.d.ts +++ /dev/null @@ -1,73 +0,0 @@ -/** - * @internal - * - * Builds a proper UTC HttpDate timestamp from a Date object - * since not all environments will have this as the expected - * format. - * - * @see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toUTCString} - * - Prior to ECMAScript 2018, the format of the return value - * - varied according to the platform. The most common return - * - value was an RFC-1123 formatted date stamp, which is a - * - slightly updated version of RFC-822 date stamps. - */ -export declare function dateToUtcString(date: Date): string; -/** - * @internal - * - * Parses a value into a Date. Returns undefined if the input is null or - * undefined, throws an error if the input is not a string that can be parsed - * as an RFC 3339 date. - * - * Input strings must conform to RFC3339 section 5.6, and cannot have a UTC - * offset. Fractional precision is supported. - * - * @see {@link https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14} - * - * @param value - the value to parse - * @returns a Date or undefined - */ -export declare const parseRfc3339DateTime: (value: unknown) => Date | undefined; -/** - * @internal - * - * Parses a value into a Date. Returns undefined if the input is null or - * undefined, throws an error if the input is not a string that can be parsed - * as an RFC 3339 date. - * - * Input strings must conform to RFC3339 section 5.6, and can have a UTC - * offset. Fractional precision is supported. - * - * @see {@link https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14} - * - * @param value - the value to parse - * @returns a Date or undefined - */ -export declare const parseRfc3339DateTimeWithOffset: (value: unknown) => Date | undefined; -/** - * @internal - * - * Parses a value into a Date. Returns undefined if the input is null or - * undefined, throws an error if the input is not a string that can be parsed - * as an RFC 7231 IMF-fixdate or obs-date. - * - * Input strings must conform to RFC7231 section 7.1.1.1. Fractional seconds are supported. - * - * @see {@link https://datatracker.ietf.org/doc/html/rfc7231.html#section-7.1.1.1} - * - * @param value - the value to parse - * @returns a Date or undefined - */ -export declare const parseRfc7231DateTime: (value: unknown) => Date | undefined; -/** - * @internal - * - * Parses a value into a Date. Returns undefined if the input is null or - * undefined, throws an error if the input is not a number or a parseable string. - * - * Input strings must be an integer or floating point number. Fractional seconds are supported. - * - * @param value - the value to parse - * @returns a Date or undefined - */ -export declare const parseEpochTimestamp: (value: unknown) => Date | undefined; diff --git a/node_modules/@smithy/smithy-client/dist-types/default-error-handler.d.ts b/node_modules/@smithy/smithy-client/dist-types/default-error-handler.d.ts deleted file mode 100644 index fd4b52da..00000000 --- a/node_modules/@smithy/smithy-client/dist-types/default-error-handler.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * Always throws an error with the given `exceptionCtor` and other arguments. - * This is only called from an error handling code path. - * - * @internal - */ -export declare const throwDefaultError: ({ output, parsedBody, exceptionCtor, errorCode }: any) => never; -/** - * @internal - * - * Creates {@link throwDefaultError} with bound ExceptionCtor. - */ -export declare const withBaseException: (ExceptionCtor: new (...args: any) => any) => any; diff --git a/node_modules/@smithy/smithy-client/dist-types/defaults-mode.d.ts b/node_modules/@smithy/smithy-client/dist-types/defaults-mode.d.ts deleted file mode 100644 index 1ddb6f0f..00000000 --- a/node_modules/@smithy/smithy-client/dist-types/defaults-mode.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -/** - * @internal - */ -export declare const loadConfigsForDefaultMode: (mode: ResolvedDefaultsMode) => DefaultsModeConfigs; -/** - * Option determining how certain default configuration options are resolved in the SDK. It can be one of the value listed below: - * * `"standard"`:

The STANDARD mode provides the latest recommended default values that should be safe to run in most scenarios

Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK

- * * `"in-region"`:

The IN_REGION mode builds on the standard mode and includes optimization tailored for applications which call AWS services from within the same AWS region

Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK

- * * `"cross-region"`:

The CROSS_REGION mode builds on the standard mode and includes optimization tailored for applications which call AWS services in a different region

Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK

- * * `"mobile"`:

The MOBILE mode builds on the standard mode and includes optimization tailored for mobile applications

Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK

- * * `"auto"`:

The AUTO mode is an experimental mode that builds on the standard mode. The SDK will attempt to discover the execution environment to determine the appropriate settings automatically.

Note that the auto detection is heuristics-based and does not guarantee 100% accuracy. STANDARD mode will be used if the execution environment cannot be determined. The auto detection might query EC2 Instance Metadata service, which might introduce latency. Therefore we recommend choosing an explicit defaults_mode instead if startup latency is critical to your application

- * * `"legacy"`:

The LEGACY mode provides default settings that vary per SDK and were used prior to establishment of defaults_mode

- * - * @defaultValue "legacy" - */ -export type DefaultsMode = "standard" | "in-region" | "cross-region" | "mobile" | "auto" | "legacy"; -/** - * @internal - */ -export type ResolvedDefaultsMode = Exclude; -/** - * @internal - */ -export interface DefaultsModeConfigs { - retryMode?: string; - connectionTimeout?: number; - requestTimeout?: number; -} diff --git a/node_modules/@smithy/smithy-client/dist-types/emitWarningIfUnsupportedVersion.d.ts b/node_modules/@smithy/smithy-client/dist-types/emitWarningIfUnsupportedVersion.d.ts deleted file mode 100644 index 8fc02ce2..00000000 --- a/node_modules/@smithy/smithy-client/dist-types/emitWarningIfUnsupportedVersion.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @internal - * - * Emits warning if the provided Node.js version string is pending deprecation. - * - * @param version - The Node.js version string. - */ -export declare const emitWarningIfUnsupportedVersion: (version: string) => void; diff --git a/node_modules/@smithy/smithy-client/dist-types/exceptions.d.ts b/node_modules/@smithy/smithy-client/dist-types/exceptions.d.ts deleted file mode 100644 index eed4e2a1..00000000 --- a/node_modules/@smithy/smithy-client/dist-types/exceptions.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { HttpResponse, MetadataBearer, ResponseMetadata, RetryableTrait, SmithyException } from "@smithy/types"; -/** - * The type of the exception class constructor parameter. The returned type contains the properties - * in the `ExceptionType` but not in the `BaseExceptionType`. If the `BaseExceptionType` contains - * `$metadata` and `message` properties, it's also included in the returned type. - * @internal - */ -export type ExceptionOptionType = Omit>; -/** - * @public - */ -export interface ServiceExceptionOptions extends SmithyException, MetadataBearer { - message?: string; -} -/** - * @public - * - * Base exception class for the exceptions from the server-side. - */ -export declare class ServiceException extends Error implements SmithyException, MetadataBearer { - readonly $fault: "client" | "server"; - $response?: HttpResponse; - $retryable?: RetryableTrait; - $metadata: ResponseMetadata; - constructor(options: ServiceExceptionOptions); -} -/** - * This method inject unmodeled member to a deserialized SDK exception, - * and load the error message from different possible keys('message', - * 'Message'). - * - * @internal - */ -export declare const decorateServiceException: (exception: E, additions?: Record) => E; diff --git a/node_modules/@smithy/smithy-client/dist-types/extended-encode-uri-component.d.ts b/node_modules/@smithy/smithy-client/dist-types/extended-encode-uri-component.d.ts deleted file mode 100644 index 403e9ae4..00000000 --- a/node_modules/@smithy/smithy-client/dist-types/extended-encode-uri-component.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * @internal - * - * Function that wraps encodeURIComponent to encode additional characters - * to fully adhere to RFC 3986. - */ -export declare function extendedEncodeURIComponent(str: string): string; diff --git a/node_modules/@smithy/smithy-client/dist-types/extensions/checksum.d.ts b/node_modules/@smithy/smithy-client/dist-types/extensions/checksum.d.ts deleted file mode 100644 index 9f8e16f5..00000000 --- a/node_modules/@smithy/smithy-client/dist-types/extensions/checksum.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -import type { ChecksumAlgorithm, ChecksumConfiguration, ChecksumConstructor, HashConstructor } from "@smithy/types"; -import { AlgorithmId } from "@smithy/types"; -export { AlgorithmId, ChecksumAlgorithm, ChecksumConfiguration }; -/** - * @internal - */ -export type PartialChecksumRuntimeConfigType = Partial<{ - sha256: ChecksumConstructor | HashConstructor; - md5: ChecksumConstructor | HashConstructor; - crc32: ChecksumConstructor | HashConstructor; - crc32c: ChecksumConstructor | HashConstructor; - sha1: ChecksumConstructor | HashConstructor; -}>; -/** - * @internal - */ -export declare const getChecksumConfiguration: (runtimeConfig: PartialChecksumRuntimeConfigType) => { - _checksumAlgorithms: ChecksumAlgorithm[]; - addChecksumAlgorithm(algo: ChecksumAlgorithm): void; - checksumAlgorithms(): ChecksumAlgorithm[]; -}; -/** - * @internal - */ -export declare const resolveChecksumRuntimeConfig: (clientConfig: ChecksumConfiguration) => PartialChecksumRuntimeConfigType; diff --git a/node_modules/@smithy/smithy-client/dist-types/extensions/defaultExtensionConfiguration.d.ts b/node_modules/@smithy/smithy-client/dist-types/extensions/defaultExtensionConfiguration.d.ts deleted file mode 100644 index ec3e8a6d..00000000 --- a/node_modules/@smithy/smithy-client/dist-types/extensions/defaultExtensionConfiguration.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -import type { DefaultExtensionConfiguration } from "@smithy/types"; -import { PartialChecksumRuntimeConfigType } from "./checksum"; -import { PartialRetryRuntimeConfigType } from "./retry"; -/** - * @internal - */ -export type DefaultExtensionRuntimeConfigType = PartialRetryRuntimeConfigType & PartialChecksumRuntimeConfigType; -/** - * @internal - * - * Helper function to resolve default extension configuration from runtime config - */ -export declare const getDefaultExtensionConfiguration: (runtimeConfig: DefaultExtensionRuntimeConfigType) => { - setRetryStrategy(retryStrategy: import("@smithy/types").Provider): void; - retryStrategy(): import("@smithy/types").Provider; - _checksumAlgorithms: import("@smithy/types").ChecksumAlgorithm[]; - addChecksumAlgorithm(algo: import("@smithy/types").ChecksumAlgorithm): void; - checksumAlgorithms(): import("@smithy/types").ChecksumAlgorithm[]; -}; -/** - * @deprecated use getDefaultExtensionConfiguration - * @internal - * - * Helper function to resolve default extension configuration from runtime config - */ -export declare const getDefaultClientConfiguration: (runtimeConfig: DefaultExtensionRuntimeConfigType) => { - setRetryStrategy(retryStrategy: import("@smithy/types").Provider): void; - retryStrategy(): import("@smithy/types").Provider; - _checksumAlgorithms: import("@smithy/types").ChecksumAlgorithm[]; - addChecksumAlgorithm(algo: import("@smithy/types").ChecksumAlgorithm): void; - checksumAlgorithms(): import("@smithy/types").ChecksumAlgorithm[]; -}; -/** - * @internal - * - * Helper function to resolve runtime config from default extension configuration - */ -export declare const resolveDefaultRuntimeConfig: (config: DefaultExtensionConfiguration) => DefaultExtensionRuntimeConfigType; diff --git a/node_modules/@smithy/smithy-client/dist-types/extensions/index.d.ts b/node_modules/@smithy/smithy-client/dist-types/extensions/index.d.ts deleted file mode 100644 index f1b80749..00000000 --- a/node_modules/@smithy/smithy-client/dist-types/extensions/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./defaultExtensionConfiguration"; diff --git a/node_modules/@smithy/smithy-client/dist-types/extensions/retry.d.ts b/node_modules/@smithy/smithy-client/dist-types/extensions/retry.d.ts deleted file mode 100644 index c46843d0..00000000 --- a/node_modules/@smithy/smithy-client/dist-types/extensions/retry.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { Provider, RetryStrategy, RetryStrategyConfiguration, RetryStrategyV2 } from "@smithy/types"; -export type PartialRetryRuntimeConfigType = Partial<{ - retryStrategy: Provider; -}>; -/** - * @internal - */ -export declare const getRetryConfiguration: (runtimeConfig: PartialRetryRuntimeConfigType) => { - setRetryStrategy(retryStrategy: Provider): void; - retryStrategy(): Provider; -}; -/** - * @internal - */ -export declare const resolveRetryRuntimeConfig: (retryStrategyConfiguration: RetryStrategyConfiguration) => PartialRetryRuntimeConfigType; diff --git a/node_modules/@smithy/smithy-client/dist-types/get-array-if-single-item.d.ts b/node_modules/@smithy/smithy-client/dist-types/get-array-if-single-item.d.ts deleted file mode 100644 index 6468b914..00000000 --- a/node_modules/@smithy/smithy-client/dist-types/get-array-if-single-item.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * @internal - * - * The XML parser will set one K:V for a member that could - * return multiple entries but only has one. - */ -export declare const getArrayIfSingleItem: (mayBeArray: T) => T | T[]; diff --git a/node_modules/@smithy/smithy-client/dist-types/get-value-from-text-node.d.ts b/node_modules/@smithy/smithy-client/dist-types/get-value-from-text-node.d.ts deleted file mode 100644 index 7163e5af..00000000 --- a/node_modules/@smithy/smithy-client/dist-types/get-value-from-text-node.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * @internal - * - * Recursively parses object and populates value is node from - * "#text" key if it's available - */ -export declare const getValueFromTextNode: (obj: any) => any; diff --git a/node_modules/@smithy/smithy-client/dist-types/index.d.ts b/node_modules/@smithy/smithy-client/dist-types/index.d.ts deleted file mode 100644 index 996345fe..00000000 --- a/node_modules/@smithy/smithy-client/dist-types/index.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -export * from "./NoOpLogger"; -export * from "./client"; -export * from "./collect-stream-body"; -export * from "./command"; -export * from "./constants"; -export * from "./create-aggregated-client"; -export * from "./date-utils"; -export * from "./default-error-handler"; -export * from "./defaults-mode"; -export * from "./emitWarningIfUnsupportedVersion"; -export * from "./extensions"; -export * from "./exceptions"; -export * from "./extended-encode-uri-component"; -export * from "./get-array-if-single-item"; -export * from "./get-value-from-text-node"; -export * from "./lazy-json"; -export * from "./object-mapping"; -export * from "./parse-utils"; -export * from "./resolve-path"; -export * from "./ser-utils"; -export * from "./serde-json"; -export * from "./split-every"; -export type { DocumentType, SdkError, SmithyException } from "@smithy/types"; diff --git a/node_modules/@smithy/smithy-client/dist-types/lazy-json.d.ts b/node_modules/@smithy/smithy-client/dist-types/lazy-json.d.ts deleted file mode 100644 index f7571a78..00000000 --- a/node_modules/@smithy/smithy-client/dist-types/lazy-json.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Lazy String holder for JSON typed contents. - */ -interface StringWrapper { - new (arg: any): String; -} -/** - * Because of https://github.com/microsoft/tslib/issues/95, - * TS 'extends' shim doesn't support extending native types like String. - * So here we create StringWrapper that duplicate everything from String - * class including its prototype chain. So we can extend from here. - * - * @internal - */ -export declare const StringWrapper: StringWrapper; -/** - * @internal - */ -export declare class LazyJsonString extends StringWrapper { - deserializeJSON(): any; - toJSON(): string; - static fromObject(object: any): LazyJsonString; -} -export {}; diff --git a/node_modules/@smithy/smithy-client/dist-types/object-mapping.d.ts b/node_modules/@smithy/smithy-client/dist-types/object-mapping.d.ts deleted file mode 100644 index 97e28e59..00000000 --- a/node_modules/@smithy/smithy-client/dist-types/object-mapping.d.ts +++ /dev/null @@ -1,162 +0,0 @@ -/** - * @internal - * - * A set of instructions for multiple keys. - * The aim is to provide a concise yet readable way to map and filter values - * onto a target object. - * - * @example - * ```javascript - * const example: ObjectMappingInstructions = { - * lazyValue1: [, () => 1], - * lazyValue2: [, () => 2], - * lazyValue3: [, () => 3], - * lazyConditionalValue1: [() => true, () => 4], - * lazyConditionalValue2: [() => true, () => 5], - * lazyConditionalValue3: [true, () => 6], - * lazyConditionalValue4: [false, () => 44], - * lazyConditionalValue5: [() => false, () => 55], - * lazyConditionalValue6: ["", () => 66], - * simpleValue1: [, 7], - * simpleValue2: [, 8], - * simpleValue3: [, 9], - * conditionalValue1: [() => true, 10], - * conditionalValue2: [() => true, 11], - * conditionalValue3: [{}, 12], - * conditionalValue4: [false, 110], - * conditionalValue5: [() => false, 121], - * conditionalValue6: ["", 132], - * }; - * - * const exampleResult: Record = { - * lazyValue1: 1, - * lazyValue2: 2, - * lazyValue3: 3, - * lazyConditionalValue1: 4, - * lazyConditionalValue2: 5, - * lazyConditionalValue3: 6, - * simpleValue1: 7, - * simpleValue2: 8, - * simpleValue3: 9, - * conditionalValue1: 10, - * conditionalValue2: 11, - * conditionalValue3: 12, - * }; - * ``` - */ -export type ObjectMappingInstructions = Record; -/** - * @internal - * - * A variant of the object mapping instruction for the `take` function. - * In this case, the source value is provided to the value function, turning it - * from a supplier into a mapper. - */ -export type SourceMappingInstructions = Record; -/** - * @internal - * - * An instruction set for assigning a value to a target object. - */ -export type ObjectMappingInstruction = LazyValueInstruction | ConditionalLazyValueInstruction | SimpleValueInstruction | ConditionalValueInstruction | UnfilteredValue; -/** - * @internal - * - * non-array - */ -export type UnfilteredValue = any; -/** - * @internal - */ -export type LazyValueInstruction = [FilterStatus, ValueSupplier]; -/** - * @internal - */ -export type ConditionalLazyValueInstruction = [FilterStatusSupplier, ValueSupplier]; -/** - * @internal - */ -export type SimpleValueInstruction = [FilterStatus, Value]; -/** - * @internal - */ -export type ConditionalValueInstruction = [ValueFilteringFunction, Value]; -/** - * @internal - */ -export type SourceMappingInstruction = [(ValueFilteringFunction | FilterStatus)?, ValueMapper?, string?]; -/** - * @internal - * - * Filter is considered passed if - * 1. It is a boolean true. - * 2. It is not undefined and is itself truthy. - * 3. It is undefined and the corresponding _value_ is neither null nor undefined. - */ -export type FilterStatus = boolean | unknown | void; -/** - * @internal - * - * Supplies the filter check but not against any value as input. - */ -export type FilterStatusSupplier = () => boolean; -/** - * @internal - * - * Filter check with the given value. - */ -export type ValueFilteringFunction = (value: any) => boolean; -/** - * @internal - * - * Supplies the value for lazy evaluation. - */ -export type ValueSupplier = () => any; -/** - * @internal - * - * A function that maps the source value to the target value. - * Defaults to pass-through with nullish check. - */ -export type ValueMapper = (value: any) => any; -/** - * @internal - * - * A non-function value. - */ -export type Value = any; -/** - * @internal - * Internal/Private, for codegen use only. - * - * Transfer a set of keys from [instructions] to [target]. - * - * For each instruction in the record, the target key will be the instruction key. - * The target assignment will be conditional on the instruction's filter. - * The target assigned value will be supplied by the instructions as an evaluable function or non-function value. - * - * @see ObjectMappingInstructions for an example. - */ -export declare function map(target: any, filter: (value: any) => boolean, instructions: Record): typeof target; -/** - * @internal - */ -export declare function map(instructions: ObjectMappingInstructions): any; -/** - * @internal - */ -export declare function map(target: any, instructions: ObjectMappingInstructions): typeof target; -/** - * Convert a regular object `{ k: v }` to `{ k: [, v] }` mapping instruction set with default - * filter. - * - * @internal - */ -export declare const convertMap: (target: any) => Record; -/** - * @param source - original object with data. - * @param instructions - how to map the data. - * @returns new object mapped from the source object. - * @internal - */ -export declare const take: (source: any, instructions: SourceMappingInstructions) => any; diff --git a/node_modules/@smithy/smithy-client/dist-types/parse-utils.d.ts b/node_modules/@smithy/smithy-client/dist-types/parse-utils.d.ts deleted file mode 100644 index b5ded6f6..00000000 --- a/node_modules/@smithy/smithy-client/dist-types/parse-utils.d.ts +++ /dev/null @@ -1,270 +0,0 @@ -/** - * @internal - * - * Give an input string, strictly parses a boolean value. - * - * @param value - The boolean string to parse. - * @returns true for "true", false for "false", otherwise an error is thrown. - */ -export declare const parseBoolean: (value: string) => boolean; -/** - * @internal - * - * Asserts a value is a boolean and returns it. - * Casts strings and numbers with a warning if there is evidence that they were - * intended to be booleans. - * - * @param value - A value that is expected to be a boolean. - * @returns The value if it's a boolean, undefined if it's null/undefined, - * otherwise an error is thrown. - */ -export declare const expectBoolean: (value: any) => boolean | undefined; -/** - * @internal - * - * Asserts a value is a number and returns it. - * Casts strings with a warning if the string is a parseable number. - * This is to unblock slight API definition/implementation inconsistencies. - * - * @param value - A value that is expected to be a number. - * @returns The value if it's a number, undefined if it's null/undefined, - * otherwise an error is thrown. - */ -export declare const expectNumber: (value: any) => number | undefined; -/** - * @internal - * - * Asserts a value is a 32-bit float and returns it. - * - * @param value - A value that is expected to be a 32-bit float. - * @returns The value if it's a float, undefined if it's null/undefined, - * otherwise an error is thrown. - */ -export declare const expectFloat32: (value: any) => number | undefined; -/** - * @internal - * - * Asserts a value is an integer and returns it. - * - * @param value - A value that is expected to be an integer. - * @returns The value if it's an integer, undefined if it's null/undefined, - * otherwise an error is thrown. - */ -export declare const expectLong: (value: any) => number | undefined; -/** - * @internal - * - * @deprecated Use expectLong - */ -export declare const expectInt: (value: any) => number | undefined; -/** - * @internal - * - * Asserts a value is a 32-bit integer and returns it. - * - * @param value - A value that is expected to be an integer. - * @returns The value if it's an integer, undefined if it's null/undefined, - * otherwise an error is thrown. - */ -export declare const expectInt32: (value: any) => number | undefined; -/** - * @internal - * - * Asserts a value is a 16-bit integer and returns it. - * - * @param value - A value that is expected to be an integer. - * @returns The value if it's an integer, undefined if it's null/undefined, - * otherwise an error is thrown. - */ -export declare const expectShort: (value: any) => number | undefined; -/** - * @internal - * - * Asserts a value is an 8-bit integer and returns it. - * - * @param value - A value that is expected to be an integer. - * @returns The value if it's an integer, undefined if it's null/undefined, - * otherwise an error is thrown. - */ -export declare const expectByte: (value: any) => number | undefined; -/** - * @internal - * - * Asserts a value is not null or undefined and returns it, or throws an error. - * - * @param value - A value that is expected to be defined - * @param location - The location where we're expecting to find a defined object (optional) - * @returns The value if it's not undefined, otherwise throws an error - */ -export declare const expectNonNull: (value: T | null | undefined, location?: string) => T; -/** - * @internal - * - * Asserts a value is an JSON-like object and returns it. This is expected to be used - * with values parsed from JSON (arrays, objects, numbers, strings, booleans). - * - * @param value - A value that is expected to be an object - * @returns The value if it's an object, undefined if it's null/undefined, - * otherwise an error is thrown. - */ -export declare const expectObject: (value: any) => Record | undefined; -/** - * @internal - * - * Asserts a value is a string and returns it. - * Numbers and boolean will be cast to strings with a warning. - * - * @param value - A value that is expected to be a string. - * @returns The value if it's a string, undefined if it's null/undefined, - * otherwise an error is thrown. - */ -export declare const expectString: (value: any) => string | undefined; -/** - * @internal - * - * Asserts a value is a JSON-like object with only one non-null/non-undefined key and - * returns it. - * - * @param value - A value that is expected to be an object with exactly one non-null, - * non-undefined key. - * @returns the value if it's a union, undefined if it's null/undefined, otherwise - * an error is thrown. - */ -export declare const expectUnion: (value: unknown) => Record | undefined; -/** - * @internal - * - * Parses a value into a double. If the value is null or undefined, undefined - * will be returned. If the value is a string, it will be parsed by the standard - * parseFloat with one exception: NaN may only be explicitly set as the string - * "NaN", any implicit Nan values will result in an error being thrown. If any - * other type is provided, an exception will be thrown. - * - * @param value - A number or string representation of a double. - * @returns The value as a number, or undefined if it's null/undefined. - */ -export declare const strictParseDouble: (value: string | number) => number | undefined; -/** - * @internal - * - * @deprecated Use strictParseDouble - */ -export declare const strictParseFloat: (value: string | number) => number | undefined; -/** - * @internal - * - * Parses a value into a float. If the value is null or undefined, undefined - * will be returned. If the value is a string, it will be parsed by the standard - * parseFloat with one exception: NaN may only be explicitly set as the string - * "NaN", any implicit Nan values will result in an error being thrown. If any - * other type is provided, an exception will be thrown. - * - * @param value - A number or string representation of a float. - * @returns The value as a number, or undefined if it's null/undefined. - */ -export declare const strictParseFloat32: (value: string | number) => number | undefined; -/** - * @internal - * - * Asserts a value is a number and returns it. If the value is a string - * representation of a non-numeric number type (NaN, Infinity, -Infinity), - * the value will be parsed. Any other string value will result in an exception - * being thrown. Null or undefined will be returned as undefined. Any other - * type will result in an exception being thrown. - * - * @param value - A number or string representation of a non-numeric float. - * @returns The value as a number, or undefined if it's null/undefined. - */ -export declare const limitedParseDouble: (value: string | number) => number | undefined; -/** - * @internal - * - * @deprecated Use limitedParseDouble - */ -export declare const handleFloat: (value: string | number) => number | undefined; -/** - * @internal - * - * @deprecated Use limitedParseDouble - */ -export declare const limitedParseFloat: (value: string | number) => number | undefined; -/** - * @internal - * - * Asserts a value is a 32-bit float and returns it. If the value is a string - * representation of a non-numeric number type (NaN, Infinity, -Infinity), - * the value will be parsed. Any other string value will result in an exception - * being thrown. Null or undefined will be returned as undefined. Any other - * type will result in an exception being thrown. - * - * @param value - A number or string representation of a non-numeric float. - * @returns The value as a number, or undefined if it's null/undefined. - */ -export declare const limitedParseFloat32: (value: string | number) => number | undefined; -/** - * @internal - * - * Parses a value into an integer. If the value is null or undefined, undefined - * will be returned. If the value is a string, it will be parsed by parseFloat - * and the result will be asserted to be an integer. If the parsed value is not - * an integer, or the raw value is any type other than a string or number, an - * exception will be thrown. - * - * @param value - A number or string representation of an integer. - * @returns The value as a number, or undefined if it's null/undefined. - */ -export declare const strictParseLong: (value: string | number) => number | undefined; -/** - * @internal - * - * @deprecated Use strictParseLong - */ -export declare const strictParseInt: (value: string | number) => number | undefined; -/** - * @internal - * - * Parses a value into a 32-bit integer. If the value is null or undefined, undefined - * will be returned. If the value is a string, it will be parsed by parseFloat - * and the result will be asserted to be an integer. If the parsed value is not - * an integer, or the raw value is any type other than a string or number, an - * exception will be thrown. - * - * @param value - A number or string representation of a 32-bit integer. - * @returns The value as a number, or undefined if it's null/undefined. - */ -export declare const strictParseInt32: (value: string | number) => number | undefined; -/** - * @internal - * - * Parses a value into a 16-bit integer. If the value is null or undefined, undefined - * will be returned. If the value is a string, it will be parsed by parseFloat - * and the result will be asserted to be an integer. If the parsed value is not - * an integer, or the raw value is any type other than a string or number, an - * exception will be thrown. - * - * @param value - A number or string representation of a 16-bit integer. - * @returns The value as a number, or undefined if it's null/undefined. - */ -export declare const strictParseShort: (value: string | number) => number | undefined; -/** - * @internal - * - * Parses a value into an 8-bit integer. If the value is null or undefined, undefined - * will be returned. If the value is a string, it will be parsed by parseFloat - * and the result will be asserted to be an integer. If the parsed value is not - * an integer, or the raw value is any type other than a string or number, an - * exception will be thrown. - * - * @param value - A number or string representation of an 8-bit integer. - * @returns The value as a number, or undefined if it's null/undefined. - */ -export declare const strictParseByte: (value: string | number) => number | undefined; -/** - * @internal - */ -export declare const logger: { - warn: { - (...data: any[]): void; - (message?: any, ...optionalParams: any[]): void; - }; -}; diff --git a/node_modules/@smithy/smithy-client/dist-types/resolve-path.d.ts b/node_modules/@smithy/smithy-client/dist-types/resolve-path.d.ts deleted file mode 100644 index 03386d6b..00000000 --- a/node_modules/@smithy/smithy-client/dist-types/resolve-path.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/** - * @internal - */ -export declare const resolvedPath: (resolvedPath: string, input: unknown, memberName: string, labelValueProvider: () => string | undefined, uriLabel: string, isGreedyLabel: boolean) => string; diff --git a/node_modules/@smithy/smithy-client/dist-types/ser-utils.d.ts b/node_modules/@smithy/smithy-client/dist-types/ser-utils.d.ts deleted file mode 100644 index c9ee840a..00000000 --- a/node_modules/@smithy/smithy-client/dist-types/ser-utils.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -/** - * @internal - * - * Serializes a number, turning non-numeric values into strings. - * - * @param value - The number to serialize. - * @returns A number, or a string if the given number was non-numeric. - */ -export declare const serializeFloat: (value: number) => string | number; diff --git a/node_modules/@smithy/smithy-client/dist-types/serde-json.d.ts b/node_modules/@smithy/smithy-client/dist-types/serde-json.d.ts deleted file mode 100644 index 76e0c054..00000000 --- a/node_modules/@smithy/smithy-client/dist-types/serde-json.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * @internal - * - * Maps an object through the default JSON serde behavior. - * This means removing nullish fields and un-sparsifying lists. - * - * @param obj - to be checked. - * @returns same object with default serde behavior applied. - */ -export declare const _json: (obj: any) => any; diff --git a/node_modules/@smithy/smithy-client/dist-types/split-every.d.ts b/node_modules/@smithy/smithy-client/dist-types/split-every.d.ts deleted file mode 100644 index 45a02291..00000000 --- a/node_modules/@smithy/smithy-client/dist-types/split-every.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -/** - * @internal - * - * Given an input string, splits based on the delimiter after a given - * number of delimiters has been encountered. - * - * @param value - The input string to split. - * @param delimiter - The delimiter to split on. - * @param numDelimiters - The number of delimiters to have encountered to split. - */ -export declare function splitEvery(value: string, delimiter: string, numDelimiters: number): Array; diff --git a/node_modules/@smithy/smithy-client/dist-types/ts3.4/NoOpLogger.d.ts b/node_modules/@smithy/smithy-client/dist-types/ts3.4/NoOpLogger.d.ts deleted file mode 100644 index a9a10629..00000000 --- a/node_modules/@smithy/smithy-client/dist-types/ts3.4/NoOpLogger.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { Logger } from "@smithy/types"; -/** - * @internal - */ -export declare class NoOpLogger implements Logger { - trace(): void; - debug(): void; - info(): void; - warn(): void; - error(): void; -} diff --git a/node_modules/@smithy/smithy-client/dist-types/ts3.4/client.d.ts b/node_modules/@smithy/smithy-client/dist-types/ts3.4/client.d.ts deleted file mode 100644 index 1a8fd17a..00000000 --- a/node_modules/@smithy/smithy-client/dist-types/ts3.4/client.d.ts +++ /dev/null @@ -1,29 +0,0 @@ -import { Client as IClient, Command, MetadataBearer, MiddlewareStack, RequestHandler } from "@smithy/types"; -/** - * @public - */ -export interface SmithyConfiguration { - requestHandler: RequestHandler; - /** - * The API version set internally by the SDK, and is - * not planned to be used by customer code. - * @internal - */ - readonly apiVersion: string; -} -/** - * @internal - */ -export type SmithyResolvedConfiguration = SmithyConfiguration; -/** - * @public - */ -export declare class Client> implements IClient { - middlewareStack: MiddlewareStack; - readonly config: ResolvedClientConfiguration; - constructor(config: ResolvedClientConfiguration); - send(command: Command>, options?: HandlerOptions): Promise; - send(command: Command>, cb: (err: any, data?: OutputType) => void): void; - send(command: Command>, options: HandlerOptions, cb: (err: any, data?: OutputType) => void): void; - destroy(): void; -} diff --git a/node_modules/@smithy/smithy-client/dist-types/ts3.4/collect-stream-body.d.ts b/node_modules/@smithy/smithy-client/dist-types/ts3.4/collect-stream-body.d.ts deleted file mode 100644 index 9c5f4711..00000000 --- a/node_modules/@smithy/smithy-client/dist-types/ts3.4/collect-stream-body.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { SerdeContext } from "@smithy/types"; -import { Uint8ArrayBlobAdapter } from "@smithy/util-stream"; -/** - * @internal - * - * Collect low-level response body stream to Uint8Array. - */ -export declare const collectBody: (streamBody: any, context: { - streamCollector: SerdeContext["streamCollector"]; -}) => Promise; diff --git a/node_modules/@smithy/smithy-client/dist-types/ts3.4/command.d.ts b/node_modules/@smithy/smithy-client/dist-types/ts3.4/command.d.ts deleted file mode 100644 index a0c279ca..00000000 --- a/node_modules/@smithy/smithy-client/dist-types/ts3.4/command.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { Command as ICommand, Handler, MetadataBearer, MiddlewareStack as IMiddlewareStack } from "@smithy/types"; -/** - * @public - */ -export declare abstract class Command implements ICommand { - abstract input: Input; - readonly middlewareStack: IMiddlewareStack; - abstract resolveMiddleware(stack: IMiddlewareStack, configuration: ResolvedClientConfiguration, options: any): Handler; -} diff --git a/node_modules/@smithy/smithy-client/dist-types/ts3.4/constants.d.ts b/node_modules/@smithy/smithy-client/dist-types/ts3.4/constants.d.ts deleted file mode 100644 index eab978fa..00000000 --- a/node_modules/@smithy/smithy-client/dist-types/ts3.4/constants.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/** - * @internal - */ -export declare const SENSITIVE_STRING = "***SensitiveInformation***"; diff --git a/node_modules/@smithy/smithy-client/dist-types/ts3.4/create-aggregated-client.d.ts b/node_modules/@smithy/smithy-client/dist-types/ts3.4/create-aggregated-client.d.ts deleted file mode 100644 index ded19995..00000000 --- a/node_modules/@smithy/smithy-client/dist-types/ts3.4/create-aggregated-client.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { Client } from "./client"; -/** - * @internal - * - * @param commands - command lookup container. - * @param client - client instance on which to add aggregated methods. - * @returns an aggregated client with dynamically created methods. - */ -export declare const createAggregatedClient: (commands: Record, Client: new (...args: any) => Client) => void; diff --git a/node_modules/@smithy/smithy-client/dist-types/ts3.4/date-utils.d.ts b/node_modules/@smithy/smithy-client/dist-types/ts3.4/date-utils.d.ts deleted file mode 100644 index 41071c2a..00000000 --- a/node_modules/@smithy/smithy-client/dist-types/ts3.4/date-utils.d.ts +++ /dev/null @@ -1,73 +0,0 @@ -/** - * @internal - * - * Builds a proper UTC HttpDate timestamp from a Date object - * since not all environments will have this as the expected - * format. - * - * @see {@link https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Date/toUTCString} - * - Prior to ECMAScript 2018, the format of the return value - * - varied according to the platform. The most common return - * - value was an RFC-1123 formatted date stamp, which is a - * - slightly updated version of RFC-822 date stamps. - */ -export declare function dateToUtcString(date: Date): string; -/** - * @internal - * - * Parses a value into a Date. Returns undefined if the input is null or - * undefined, throws an error if the input is not a string that can be parsed - * as an RFC 3339 date. - * - * Input strings must conform to RFC3339 section 5.6, and cannot have a UTC - * offset. Fractional precision is supported. - * - * @see {@link https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14} - * - * @param value - the value to parse - * @returns a Date or undefined - */ -export declare const parseRfc3339DateTime: (value: unknown) => Date | undefined; -/** - * @internal - * - * Parses a value into a Date. Returns undefined if the input is null or - * undefined, throws an error if the input is not a string that can be parsed - * as an RFC 3339 date. - * - * Input strings must conform to RFC3339 section 5.6, and can have a UTC - * offset. Fractional precision is supported. - * - * @see {@link https://xml2rfc.tools.ietf.org/public/rfc/html/rfc3339.html#anchor14} - * - * @param value - the value to parse - * @returns a Date or undefined - */ -export declare const parseRfc3339DateTimeWithOffset: (value: unknown) => Date | undefined; -/** - * @internal - * - * Parses a value into a Date. Returns undefined if the input is null or - * undefined, throws an error if the input is not a string that can be parsed - * as an RFC 7231 IMF-fixdate or obs-date. - * - * Input strings must conform to RFC7231 section 7.1.1.1. Fractional seconds are supported. - * - * @see {@link https://datatracker.ietf.org/doc/html/rfc7231.html#section-7.1.1.1} - * - * @param value - the value to parse - * @returns a Date or undefined - */ -export declare const parseRfc7231DateTime: (value: unknown) => Date | undefined; -/** - * @internal - * - * Parses a value into a Date. Returns undefined if the input is null or - * undefined, throws an error if the input is not a number or a parseable string. - * - * Input strings must be an integer or floating point number. Fractional seconds are supported. - * - * @param value - the value to parse - * @returns a Date or undefined - */ -export declare const parseEpochTimestamp: (value: unknown) => Date | undefined; diff --git a/node_modules/@smithy/smithy-client/dist-types/ts3.4/default-error-handler.d.ts b/node_modules/@smithy/smithy-client/dist-types/ts3.4/default-error-handler.d.ts deleted file mode 100644 index e9852ba3..00000000 --- a/node_modules/@smithy/smithy-client/dist-types/ts3.4/default-error-handler.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * Always throws an error with the given `exceptionCtor` and other arguments. - * This is only called from an error handling code path. - * - * @internal - */ -export declare const throwDefaultError: ({ output, parsedBody, exceptionCtor, errorCode }: any) => never; -/** - * @internal - * - * Creates {@link throwDefaultError} with bound ExceptionCtor. - */ -export declare const withBaseException: (ExceptionCtor: new (...args: any) => any) => any; diff --git a/node_modules/@smithy/smithy-client/dist-types/ts3.4/defaults-mode.d.ts b/node_modules/@smithy/smithy-client/dist-types/ts3.4/defaults-mode.d.ts deleted file mode 100644 index c8a89ed8..00000000 --- a/node_modules/@smithy/smithy-client/dist-types/ts3.4/defaults-mode.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -/** - * @internal - */ -export declare const loadConfigsForDefaultMode: (mode: ResolvedDefaultsMode) => DefaultsModeConfigs; -/** - * Option determining how certain default configuration options are resolved in the SDK. It can be one of the value listed below: - * * `"standard"`:

The STANDARD mode provides the latest recommended default values that should be safe to run in most scenarios

Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK

- * * `"in-region"`:

The IN_REGION mode builds on the standard mode and includes optimization tailored for applications which call AWS services from within the same AWS region

Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK

- * * `"cross-region"`:

The CROSS_REGION mode builds on the standard mode and includes optimization tailored for applications which call AWS services in a different region

Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK

- * * `"mobile"`:

The MOBILE mode builds on the standard mode and includes optimization tailored for mobile applications

Note that the default values vended from this mode might change as best practices may evolve. As a result, it is encouraged to perform tests when upgrading the SDK

- * * `"auto"`:

The AUTO mode is an experimental mode that builds on the standard mode. The SDK will attempt to discover the execution environment to determine the appropriate settings automatically.

Note that the auto detection is heuristics-based and does not guarantee 100% accuracy. STANDARD mode will be used if the execution environment cannot be determined. The auto detection might query EC2 Instance Metadata service, which might introduce latency. Therefore we recommend choosing an explicit defaults_mode instead if startup latency is critical to your application

- * * `"legacy"`:

The LEGACY mode provides default settings that vary per SDK and were used prior to establishment of defaults_mode

- * - * @defaultValue "legacy" - */ -export type DefaultsMode = "standard" | "in-region" | "cross-region" | "mobile" | "auto" | "legacy"; -/** - * @internal - */ -export type ResolvedDefaultsMode = Exclude; -/** - * @internal - */ -export interface DefaultsModeConfigs { - retryMode?: string; - connectionTimeout?: number; - requestTimeout?: number; -} diff --git a/node_modules/@smithy/smithy-client/dist-types/ts3.4/emitWarningIfUnsupportedVersion.d.ts b/node_modules/@smithy/smithy-client/dist-types/ts3.4/emitWarningIfUnsupportedVersion.d.ts deleted file mode 100644 index f0284ef4..00000000 --- a/node_modules/@smithy/smithy-client/dist-types/ts3.4/emitWarningIfUnsupportedVersion.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @internal - * - * Emits warning if the provided Node.js version string is pending deprecation. - * - * @param version - The Node.js version string. - */ -export declare const emitWarningIfUnsupportedVersion: (version: string) => void; diff --git a/node_modules/@smithy/smithy-client/dist-types/ts3.4/exceptions.d.ts b/node_modules/@smithy/smithy-client/dist-types/ts3.4/exceptions.d.ts deleted file mode 100644 index 4a8f57a5..00000000 --- a/node_modules/@smithy/smithy-client/dist-types/ts3.4/exceptions.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -import { HttpResponse, MetadataBearer, ResponseMetadata, RetryableTrait, SmithyException } from "@smithy/types"; -/** - * The type of the exception class constructor parameter. The returned type contains the properties - * in the `ExceptionType` but not in the `BaseExceptionType`. If the `BaseExceptionType` contains - * `$metadata` and `message` properties, it's also included in the returned type. - * @internal - */ -export type ExceptionOptionType = Pick>>; -/** - * @public - */ -export interface ServiceExceptionOptions extends SmithyException, MetadataBearer { - message?: string; -} -/** - * @public - * - * Base exception class for the exceptions from the server-side. - */ -export declare class ServiceException extends Error implements SmithyException, MetadataBearer { - readonly $fault: "client" | "server"; - $response?: HttpResponse; - $retryable?: RetryableTrait; - $metadata: ResponseMetadata; - constructor(options: ServiceExceptionOptions); -} -/** - * This method inject unmodeled member to a deserialized SDK exception, - * and load the error message from different possible keys('message', - * 'Message'). - * - * @internal - */ -export declare const decorateServiceException: (exception: E, additions?: Record) => E; diff --git a/node_modules/@smithy/smithy-client/dist-types/ts3.4/extended-encode-uri-component.d.ts b/node_modules/@smithy/smithy-client/dist-types/ts3.4/extended-encode-uri-component.d.ts deleted file mode 100644 index 98c3802e..00000000 --- a/node_modules/@smithy/smithy-client/dist-types/ts3.4/extended-encode-uri-component.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * @internal - * - * Function that wraps encodeURIComponent to encode additional characters - * to fully adhere to RFC 3986. - */ -export declare function extendedEncodeURIComponent(str: string): string; diff --git a/node_modules/@smithy/smithy-client/dist-types/ts3.4/extensions/checksum.d.ts b/node_modules/@smithy/smithy-client/dist-types/ts3.4/extensions/checksum.d.ts deleted file mode 100644 index 92a54938..00000000 --- a/node_modules/@smithy/smithy-client/dist-types/ts3.4/extensions/checksum.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { ChecksumAlgorithm, ChecksumConfiguration, ChecksumConstructor, HashConstructor } from "@smithy/types"; -import { AlgorithmId } from "@smithy/types"; -export { AlgorithmId, ChecksumAlgorithm, ChecksumConfiguration }; -/** - * @internal - */ -export type PartialChecksumRuntimeConfigType = Partial<{ - sha256: ChecksumConstructor | HashConstructor; - md5: ChecksumConstructor | HashConstructor; - crc32: ChecksumConstructor | HashConstructor; - crc32c: ChecksumConstructor | HashConstructor; - sha1: ChecksumConstructor | HashConstructor; -}>; -/** - * @internal - */ -export declare const getChecksumConfiguration: (runtimeConfig: PartialChecksumRuntimeConfigType) => { - _checksumAlgorithms: ChecksumAlgorithm[]; - addChecksumAlgorithm(algo: ChecksumAlgorithm): void; - checksumAlgorithms(): ChecksumAlgorithm[]; -}; -/** - * @internal - */ -export declare const resolveChecksumRuntimeConfig: (clientConfig: ChecksumConfiguration) => PartialChecksumRuntimeConfigType; diff --git a/node_modules/@smithy/smithy-client/dist-types/ts3.4/extensions/defaultExtensionConfiguration.d.ts b/node_modules/@smithy/smithy-client/dist-types/ts3.4/extensions/defaultExtensionConfiguration.d.ts deleted file mode 100644 index 4ea18662..00000000 --- a/node_modules/@smithy/smithy-client/dist-types/ts3.4/extensions/defaultExtensionConfiguration.d.ts +++ /dev/null @@ -1,38 +0,0 @@ -import { DefaultExtensionConfiguration } from "@smithy/types"; -import { PartialChecksumRuntimeConfigType } from "./checksum"; -import { PartialRetryRuntimeConfigType } from "./retry"; -/** - * @internal - */ -export type DefaultExtensionRuntimeConfigType = PartialRetryRuntimeConfigType & PartialChecksumRuntimeConfigType; -/** - * @internal - * - * Helper function to resolve default extension configuration from runtime config - */ -export declare const getDefaultExtensionConfiguration: (runtimeConfig: DefaultExtensionRuntimeConfigType) => { - setRetryStrategy(retryStrategy: import("@smithy/types").Provider): void; - retryStrategy(): import("@smithy/types").Provider; - _checksumAlgorithms: import("@smithy/types").ChecksumAlgorithm[]; - addChecksumAlgorithm(algo: import("@smithy/types").ChecksumAlgorithm): void; - checksumAlgorithms(): import("@smithy/types").ChecksumAlgorithm[]; -}; -/** - * @deprecated use getDefaultExtensionConfiguration - * @internal - * - * Helper function to resolve default extension configuration from runtime config - */ -export declare const getDefaultClientConfiguration: (runtimeConfig: DefaultExtensionRuntimeConfigType) => { - setRetryStrategy(retryStrategy: import("@smithy/types").Provider): void; - retryStrategy(): import("@smithy/types").Provider; - _checksumAlgorithms: import("@smithy/types").ChecksumAlgorithm[]; - addChecksumAlgorithm(algo: import("@smithy/types").ChecksumAlgorithm): void; - checksumAlgorithms(): import("@smithy/types").ChecksumAlgorithm[]; -}; -/** - * @internal - * - * Helper function to resolve runtime config from default extension configuration - */ -export declare const resolveDefaultRuntimeConfig: (config: DefaultExtensionConfiguration) => DefaultExtensionRuntimeConfigType; diff --git a/node_modules/@smithy/smithy-client/dist-types/ts3.4/extensions/index.d.ts b/node_modules/@smithy/smithy-client/dist-types/ts3.4/extensions/index.d.ts deleted file mode 100644 index 04e3c839..00000000 --- a/node_modules/@smithy/smithy-client/dist-types/ts3.4/extensions/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./defaultExtensionConfiguration"; diff --git a/node_modules/@smithy/smithy-client/dist-types/ts3.4/extensions/retry.d.ts b/node_modules/@smithy/smithy-client/dist-types/ts3.4/extensions/retry.d.ts deleted file mode 100644 index 12fbaa51..00000000 --- a/node_modules/@smithy/smithy-client/dist-types/ts3.4/extensions/retry.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { Provider, RetryStrategy, RetryStrategyConfiguration, RetryStrategyV2 } from "@smithy/types"; -export type PartialRetryRuntimeConfigType = Partial<{ - retryStrategy: Provider; -}>; -/** - * @internal - */ -export declare const getRetryConfiguration: (runtimeConfig: PartialRetryRuntimeConfigType) => { - setRetryStrategy(retryStrategy: Provider): void; - retryStrategy(): Provider; -}; -/** - * @internal - */ -export declare const resolveRetryRuntimeConfig: (retryStrategyConfiguration: RetryStrategyConfiguration) => PartialRetryRuntimeConfigType; diff --git a/node_modules/@smithy/smithy-client/dist-types/ts3.4/get-array-if-single-item.d.ts b/node_modules/@smithy/smithy-client/dist-types/ts3.4/get-array-if-single-item.d.ts deleted file mode 100644 index dbbd2809..00000000 --- a/node_modules/@smithy/smithy-client/dist-types/ts3.4/get-array-if-single-item.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * @internal - * - * The XML parser will set one K:V for a member that could - * return multiple entries but only has one. - */ -export declare const getArrayIfSingleItem: (mayBeArray: T) => T | T[]; diff --git a/node_modules/@smithy/smithy-client/dist-types/ts3.4/get-value-from-text-node.d.ts b/node_modules/@smithy/smithy-client/dist-types/ts3.4/get-value-from-text-node.d.ts deleted file mode 100644 index d56771e8..00000000 --- a/node_modules/@smithy/smithy-client/dist-types/ts3.4/get-value-from-text-node.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * @internal - * - * Recursively parses object and populates value is node from - * "#text" key if it's available - */ -export declare const getValueFromTextNode: (obj: any) => any; diff --git a/node_modules/@smithy/smithy-client/dist-types/ts3.4/index.d.ts b/node_modules/@smithy/smithy-client/dist-types/ts3.4/index.d.ts deleted file mode 100644 index c410488e..00000000 --- a/node_modules/@smithy/smithy-client/dist-types/ts3.4/index.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -export * from "./NoOpLogger"; -export * from "./client"; -export * from "./collect-stream-body"; -export * from "./command"; -export * from "./constants"; -export * from "./create-aggregated-client"; -export * from "./date-utils"; -export * from "./default-error-handler"; -export * from "./defaults-mode"; -export * from "./emitWarningIfUnsupportedVersion"; -export * from "./extensions"; -export * from "./exceptions"; -export * from "./extended-encode-uri-component"; -export * from "./get-array-if-single-item"; -export * from "./get-value-from-text-node"; -export * from "./lazy-json"; -export * from "./object-mapping"; -export * from "./parse-utils"; -export * from "./resolve-path"; -export * from "./ser-utils"; -export * from "./serde-json"; -export * from "./split-every"; -export { DocumentType, SdkError, SmithyException } from "@smithy/types"; diff --git a/node_modules/@smithy/smithy-client/dist-types/ts3.4/lazy-json.d.ts b/node_modules/@smithy/smithy-client/dist-types/ts3.4/lazy-json.d.ts deleted file mode 100644 index f1cd1595..00000000 --- a/node_modules/@smithy/smithy-client/dist-types/ts3.4/lazy-json.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * Lazy String holder for JSON typed contents. - */ -interface StringWrapper { - new (arg: any): String; -} -/** - * Because of https://github.com/microsoft/tslib/issues/95, - * TS 'extends' shim doesn't support extending native types like String. - * So here we create StringWrapper that duplicate everything from String - * class including its prototype chain. So we can extend from here. - * - * @internal - */ -export declare const StringWrapper: StringWrapper; -/** - * @internal - */ -export declare class LazyJsonString extends StringWrapper { - deserializeJSON(): any; - toJSON(): string; - static fromObject(object: any): LazyJsonString; -} -export {}; diff --git a/node_modules/@smithy/smithy-client/dist-types/ts3.4/object-mapping.d.ts b/node_modules/@smithy/smithy-client/dist-types/ts3.4/object-mapping.d.ts deleted file mode 100644 index d658c169..00000000 --- a/node_modules/@smithy/smithy-client/dist-types/ts3.4/object-mapping.d.ts +++ /dev/null @@ -1,178 +0,0 @@ -/** - * @internal - * - * A set of instructions for multiple keys. - * The aim is to provide a concise yet readable way to map and filter values - * onto a target object. - * - * @example - * ```javascript - * const example: ObjectMappingInstructions = { - * lazyValue1: [, () => 1], - * lazyValue2: [, () => 2], - * lazyValue3: [, () => 3], - * lazyConditionalValue1: [() => true, () => 4], - * lazyConditionalValue2: [() => true, () => 5], - * lazyConditionalValue3: [true, () => 6], - * lazyConditionalValue4: [false, () => 44], - * lazyConditionalValue5: [() => false, () => 55], - * lazyConditionalValue6: ["", () => 66], - * simpleValue1: [, 7], - * simpleValue2: [, 8], - * simpleValue3: [, 9], - * conditionalValue1: [() => true, 10], - * conditionalValue2: [() => true, 11], - * conditionalValue3: [{}, 12], - * conditionalValue4: [false, 110], - * conditionalValue5: [() => false, 121], - * conditionalValue6: ["", 132], - * }; - * - * const exampleResult: Record = { - * lazyValue1: 1, - * lazyValue2: 2, - * lazyValue3: 3, - * lazyConditionalValue1: 4, - * lazyConditionalValue2: 5, - * lazyConditionalValue3: 6, - * simpleValue1: 7, - * simpleValue2: 8, - * simpleValue3: 9, - * conditionalValue1: 10, - * conditionalValue2: 11, - * conditionalValue3: 12, - * }; - * ``` - */ -export type ObjectMappingInstructions = Record; -/** - * @internal - * - * A variant of the object mapping instruction for the `take` function. - * In this case, the source value is provided to the value function, turning it - * from a supplier into a mapper. - */ -export type SourceMappingInstructions = Record; -/** - * @internal - * - * An instruction set for assigning a value to a target object. - */ -export type ObjectMappingInstruction = LazyValueInstruction | ConditionalLazyValueInstruction | SimpleValueInstruction | ConditionalValueInstruction | UnfilteredValue; -/** - * @internal - * - * non-array - */ -export type UnfilteredValue = any; -/** - * @internal - */ -export type LazyValueInstruction = [ - FilterStatus, - ValueSupplier -]; -/** - * @internal - */ -export type ConditionalLazyValueInstruction = [ - FilterStatusSupplier, - ValueSupplier -]; -/** - * @internal - */ -export type SimpleValueInstruction = [ - FilterStatus, - Value -]; -/** - * @internal - */ -export type ConditionalValueInstruction = [ - ValueFilteringFunction, - Value -]; -/** - * @internal - */ -export type SourceMappingInstruction = [ - (ValueFilteringFunction | FilterStatus)?, - ValueMapper?, - string? -]; -/** - * @internal - * - * Filter is considered passed if - * 1. It is a boolean true. - * 2. It is not undefined and is itself truthy. - * 3. It is undefined and the corresponding _value_ is neither null nor undefined. - */ -export type FilterStatus = boolean | unknown | void; -/** - * @internal - * - * Supplies the filter check but not against any value as input. - */ -export type FilterStatusSupplier = () => boolean; -/** - * @internal - * - * Filter check with the given value. - */ -export type ValueFilteringFunction = (value: any) => boolean; -/** - * @internal - * - * Supplies the value for lazy evaluation. - */ -export type ValueSupplier = () => any; -/** - * @internal - * - * A function that maps the source value to the target value. - * Defaults to pass-through with nullish check. - */ -export type ValueMapper = (value: any) => any; -/** - * @internal - * - * A non-function value. - */ -export type Value = any; -/** - * @internal - * Internal/Private, for codegen use only. - * - * Transfer a set of keys from [instructions] to [target]. - * - * For each instruction in the record, the target key will be the instruction key. - * The target assignment will be conditional on the instruction's filter. - * The target assigned value will be supplied by the instructions as an evaluable function or non-function value. - * - * @see ObjectMappingInstructions for an example. - */ -export declare function map(target: any, filter: (value: any) => boolean, instructions: Record): typeof target; -/** - * @internal - */ -export declare function map(instructions: ObjectMappingInstructions): any; -/** - * @internal - */ -export declare function map(target: any, instructions: ObjectMappingInstructions): typeof target; -/** - * Convert a regular object `{ k: v }` to `{ k: [, v] }` mapping instruction set with default - * filter. - * - * @internal - */ -export declare const convertMap: (target: any) => Record; -/** - * @param source - original object with data. - * @param instructions - how to map the data. - * @returns new object mapped from the source object. - * @internal - */ -export declare const take: (source: any, instructions: SourceMappingInstructions) => any; diff --git a/node_modules/@smithy/smithy-client/dist-types/ts3.4/parse-utils.d.ts b/node_modules/@smithy/smithy-client/dist-types/ts3.4/parse-utils.d.ts deleted file mode 100644 index e4c8aef3..00000000 --- a/node_modules/@smithy/smithy-client/dist-types/ts3.4/parse-utils.d.ts +++ /dev/null @@ -1,270 +0,0 @@ -/** - * @internal - * - * Give an input string, strictly parses a boolean value. - * - * @param value - The boolean string to parse. - * @returns true for "true", false for "false", otherwise an error is thrown. - */ -export declare const parseBoolean: (value: string) => boolean; -/** - * @internal - * - * Asserts a value is a boolean and returns it. - * Casts strings and numbers with a warning if there is evidence that they were - * intended to be booleans. - * - * @param value - A value that is expected to be a boolean. - * @returns The value if it's a boolean, undefined if it's null/undefined, - * otherwise an error is thrown. - */ -export declare const expectBoolean: (value: any) => boolean | undefined; -/** - * @internal - * - * Asserts a value is a number and returns it. - * Casts strings with a warning if the string is a parseable number. - * This is to unblock slight API definition/implementation inconsistencies. - * - * @param value - A value that is expected to be a number. - * @returns The value if it's a number, undefined if it's null/undefined, - * otherwise an error is thrown. - */ -export declare const expectNumber: (value: any) => number | undefined; -/** - * @internal - * - * Asserts a value is a 32-bit float and returns it. - * - * @param value - A value that is expected to be a 32-bit float. - * @returns The value if it's a float, undefined if it's null/undefined, - * otherwise an error is thrown. - */ -export declare const expectFloat32: (value: any) => number | undefined; -/** - * @internal - * - * Asserts a value is an integer and returns it. - * - * @param value - A value that is expected to be an integer. - * @returns The value if it's an integer, undefined if it's null/undefined, - * otherwise an error is thrown. - */ -export declare const expectLong: (value: any) => number | undefined; -/** - * @internal - * - * @deprecated Use expectLong - */ -export declare const expectInt: (value: any) => number | undefined; -/** - * @internal - * - * Asserts a value is a 32-bit integer and returns it. - * - * @param value - A value that is expected to be an integer. - * @returns The value if it's an integer, undefined if it's null/undefined, - * otherwise an error is thrown. - */ -export declare const expectInt32: (value: any) => number | undefined; -/** - * @internal - * - * Asserts a value is a 16-bit integer and returns it. - * - * @param value - A value that is expected to be an integer. - * @returns The value if it's an integer, undefined if it's null/undefined, - * otherwise an error is thrown. - */ -export declare const expectShort: (value: any) => number | undefined; -/** - * @internal - * - * Asserts a value is an 8-bit integer and returns it. - * - * @param value - A value that is expected to be an integer. - * @returns The value if it's an integer, undefined if it's null/undefined, - * otherwise an error is thrown. - */ -export declare const expectByte: (value: any) => number | undefined; -/** - * @internal - * - * Asserts a value is not null or undefined and returns it, or throws an error. - * - * @param value - A value that is expected to be defined - * @param location - The location where we're expecting to find a defined object (optional) - * @returns The value if it's not undefined, otherwise throws an error - */ -export declare const expectNonNull: (value: T | null | undefined, location?: string) => T; -/** - * @internal - * - * Asserts a value is an JSON-like object and returns it. This is expected to be used - * with values parsed from JSON (arrays, objects, numbers, strings, booleans). - * - * @param value - A value that is expected to be an object - * @returns The value if it's an object, undefined if it's null/undefined, - * otherwise an error is thrown. - */ -export declare const expectObject: (value: any) => Record | undefined; -/** - * @internal - * - * Asserts a value is a string and returns it. - * Numbers and boolean will be cast to strings with a warning. - * - * @param value - A value that is expected to be a string. - * @returns The value if it's a string, undefined if it's null/undefined, - * otherwise an error is thrown. - */ -export declare const expectString: (value: any) => string | undefined; -/** - * @internal - * - * Asserts a value is a JSON-like object with only one non-null/non-undefined key and - * returns it. - * - * @param value - A value that is expected to be an object with exactly one non-null, - * non-undefined key. - * @returns the value if it's a union, undefined if it's null/undefined, otherwise - * an error is thrown. - */ -export declare const expectUnion: (value: unknown) => Record | undefined; -/** - * @internal - * - * Parses a value into a double. If the value is null or undefined, undefined - * will be returned. If the value is a string, it will be parsed by the standard - * parseFloat with one exception: NaN may only be explicitly set as the string - * "NaN", any implicit Nan values will result in an error being thrown. If any - * other type is provided, an exception will be thrown. - * - * @param value - A number or string representation of a double. - * @returns The value as a number, or undefined if it's null/undefined. - */ -export declare const strictParseDouble: (value: string | number) => number | undefined; -/** - * @internal - * - * @deprecated Use strictParseDouble - */ -export declare const strictParseFloat: (value: string | number) => number | undefined; -/** - * @internal - * - * Parses a value into a float. If the value is null or undefined, undefined - * will be returned. If the value is a string, it will be parsed by the standard - * parseFloat with one exception: NaN may only be explicitly set as the string - * "NaN", any implicit Nan values will result in an error being thrown. If any - * other type is provided, an exception will be thrown. - * - * @param value - A number or string representation of a float. - * @returns The value as a number, or undefined if it's null/undefined. - */ -export declare const strictParseFloat32: (value: string | number) => number | undefined; -/** - * @internal - * - * Asserts a value is a number and returns it. If the value is a string - * representation of a non-numeric number type (NaN, Infinity, -Infinity), - * the value will be parsed. Any other string value will result in an exception - * being thrown. Null or undefined will be returned as undefined. Any other - * type will result in an exception being thrown. - * - * @param value - A number or string representation of a non-numeric float. - * @returns The value as a number, or undefined if it's null/undefined. - */ -export declare const limitedParseDouble: (value: string | number) => number | undefined; -/** - * @internal - * - * @deprecated Use limitedParseDouble - */ -export declare const handleFloat: (value: string | number) => number | undefined; -/** - * @internal - * - * @deprecated Use limitedParseDouble - */ -export declare const limitedParseFloat: (value: string | number) => number | undefined; -/** - * @internal - * - * Asserts a value is a 32-bit float and returns it. If the value is a string - * representation of a non-numeric number type (NaN, Infinity, -Infinity), - * the value will be parsed. Any other string value will result in an exception - * being thrown. Null or undefined will be returned as undefined. Any other - * type will result in an exception being thrown. - * - * @param value - A number or string representation of a non-numeric float. - * @returns The value as a number, or undefined if it's null/undefined. - */ -export declare const limitedParseFloat32: (value: string | number) => number | undefined; -/** - * @internal - * - * Parses a value into an integer. If the value is null or undefined, undefined - * will be returned. If the value is a string, it will be parsed by parseFloat - * and the result will be asserted to be an integer. If the parsed value is not - * an integer, or the raw value is any type other than a string or number, an - * exception will be thrown. - * - * @param value - A number or string representation of an integer. - * @returns The value as a number, or undefined if it's null/undefined. - */ -export declare const strictParseLong: (value: string | number) => number | undefined; -/** - * @internal - * - * @deprecated Use strictParseLong - */ -export declare const strictParseInt: (value: string | number) => number | undefined; -/** - * @internal - * - * Parses a value into a 32-bit integer. If the value is null or undefined, undefined - * will be returned. If the value is a string, it will be parsed by parseFloat - * and the result will be asserted to be an integer. If the parsed value is not - * an integer, or the raw value is any type other than a string or number, an - * exception will be thrown. - * - * @param value - A number or string representation of a 32-bit integer. - * @returns The value as a number, or undefined if it's null/undefined. - */ -export declare const strictParseInt32: (value: string | number) => number | undefined; -/** - * @internal - * - * Parses a value into a 16-bit integer. If the value is null or undefined, undefined - * will be returned. If the value is a string, it will be parsed by parseFloat - * and the result will be asserted to be an integer. If the parsed value is not - * an integer, or the raw value is any type other than a string or number, an - * exception will be thrown. - * - * @param value - A number or string representation of a 16-bit integer. - * @returns The value as a number, or undefined if it's null/undefined. - */ -export declare const strictParseShort: (value: string | number) => number | undefined; -/** - * @internal - * - * Parses a value into an 8-bit integer. If the value is null or undefined, undefined - * will be returned. If the value is a string, it will be parsed by parseFloat - * and the result will be asserted to be an integer. If the parsed value is not - * an integer, or the raw value is any type other than a string or number, an - * exception will be thrown. - * - * @param value - A number or string representation of an 8-bit integer. - * @returns The value as a number, or undefined if it's null/undefined. - */ -export declare const strictParseByte: (value: string | number) => number | undefined; -/** - * @internal - */ -export declare const logger: { - warn: { - (...data: any[]): void; - (message?: any, ...optionalParams: any[]): void; - }; -}; diff --git a/node_modules/@smithy/smithy-client/dist-types/ts3.4/resolve-path.d.ts b/node_modules/@smithy/smithy-client/dist-types/ts3.4/resolve-path.d.ts deleted file mode 100644 index 4c4c4430..00000000 --- a/node_modules/@smithy/smithy-client/dist-types/ts3.4/resolve-path.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/** - * @internal - */ -export declare const resolvedPath: (resolvedPath: string, input: unknown, memberName: string, labelValueProvider: () => string | undefined, uriLabel: string, isGreedyLabel: boolean) => string; diff --git a/node_modules/@smithy/smithy-client/dist-types/ts3.4/ser-utils.d.ts b/node_modules/@smithy/smithy-client/dist-types/ts3.4/ser-utils.d.ts deleted file mode 100644 index ccc74ff3..00000000 --- a/node_modules/@smithy/smithy-client/dist-types/ts3.4/ser-utils.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -/** - * @internal - * - * Serializes a number, turning non-numeric values into strings. - * - * @param value - The number to serialize. - * @returns A number, or a string if the given number was non-numeric. - */ -export declare const serializeFloat: (value: number) => string | number; diff --git a/node_modules/@smithy/smithy-client/dist-types/ts3.4/serde-json.d.ts b/node_modules/@smithy/smithy-client/dist-types/ts3.4/serde-json.d.ts deleted file mode 100644 index 932b63db..00000000 --- a/node_modules/@smithy/smithy-client/dist-types/ts3.4/serde-json.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -/** - * @internal - * - * Maps an object through the default JSON serde behavior. - * This means removing nullish fields and un-sparsifying lists. - * - * @param obj - to be checked. - * @returns same object with default serde behavior applied. - */ -export declare const _json: (obj: any) => any; diff --git a/node_modules/@smithy/smithy-client/dist-types/ts3.4/split-every.d.ts b/node_modules/@smithy/smithy-client/dist-types/ts3.4/split-every.d.ts deleted file mode 100644 index 2280f3e4..00000000 --- a/node_modules/@smithy/smithy-client/dist-types/ts3.4/split-every.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -/** - * @internal - * - * Given an input string, splits based on the delimiter after a given - * number of delimiters has been encountered. - * - * @param value - The input string to split. - * @param delimiter - The delimiter to split on. - * @param numDelimiters - The number of delimiters to have encountered to split. - */ -export declare function splitEvery(value: string, delimiter: string, numDelimiters: number): Array; diff --git a/node_modules/@smithy/smithy-client/package.json b/node_modules/@smithy/smithy-client/package.json deleted file mode 100644 index cfe99056..00000000 --- a/node_modules/@smithy/smithy-client/package.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "name": "@smithy/smithy-client", - "version": "2.1.16", - "scripts": { - "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", - "build:cjs": "yarn g:tsc -p tsconfig.cjs.json", - "build:es": "yarn g:tsc -p tsconfig.es.json", - "build:types": "yarn g:tsc -p tsconfig.types.json", - "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", - "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz", - "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"", - "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"", - "extract:docs": "api-extractor run --local", - "test": "yarn g:jest --passWithNoTests" - }, - "main": "./dist-cjs/index.js", - "module": "./dist-es/index.js", - "types": "./dist-types/index.d.ts", - "author": { - "name": "AWS SDK for JavaScript Team", - "url": "https://aws.amazon.com/javascript/" - }, - "license": "Apache-2.0", - "dependencies": { - "@smithy/middleware-stack": "^2.0.8", - "@smithy/types": "^2.6.0", - "@smithy/util-stream": "^2.0.21", - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "typesVersions": { - "<4.0": { - "dist-types/*": [ - "dist-types/ts3.4/*" - ] - } - }, - "files": [ - "dist-*/**" - ], - "homepage": "https://github.com/awslabs/smithy-typescript/tree/main/packages/smithy-client", - "repository": { - "type": "git", - "url": "https://github.com/awslabs/smithy-typescript.git", - "directory": "packages/smithy-client" - }, - "devDependencies": { - "@tsconfig/recommended": "1.0.1", - "@types/node": "^14.14.31", - "concurrently": "7.0.0", - "downlevel-dts": "0.10.1", - "rimraf": "3.0.2", - "typedoc": "0.23.23" - }, - "typedoc": { - "entryPoint": "src/index.ts" - }, - "publishConfig": { - "directory": ".release/package" - } -} \ No newline at end of file diff --git a/node_modules/@smithy/types/LICENSE b/node_modules/@smithy/types/LICENSE deleted file mode 100644 index e907b586..00000000 --- a/node_modules/@smithy/types/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2019 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/node_modules/@smithy/types/README.md b/node_modules/@smithy/types/README.md deleted file mode 100644 index fa78e085..00000000 --- a/node_modules/@smithy/types/README.md +++ /dev/null @@ -1,80 +0,0 @@ -# @smithy/types - -[![NPM version](https://img.shields.io/npm/v/@smithy/types/latest.svg)](https://www.npmjs.com/package/@smithy/types) -[![NPM downloads](https://img.shields.io/npm/dm/@smithy/types.svg)](https://www.npmjs.com/package/@smithy/types) - -## Usage - -This package is mostly used internally by generated clients. -Some public components have independent applications. - ---- - -### Scenario: Removing `| undefined` from input and output structures - -Generated shapes' members are unioned with `undefined` for -input shapes, and are `?` (optional) for output shapes. - -- for inputs, this defers the validation to the service. -- for outputs, this strongly suggests that you should runtime-check the output data. - -If you would like to skip these steps, use the `AssertiveClient` or -`UncheckedClient` type helpers. - -Using AWS S3 as an example: - -```ts -import { S3 } from "@aws-sdk/client-s3"; -import type { AssertiveClient, UncheckedClient } from "@smithy/types"; - -const s3a = new S3({}) as AssertiveClient; -const s3b = new S3({}) as UncheckedClient; - -// AssertiveClient enforces required inputs are not undefined -// and required outputs are not undefined. -const get = await s3a.getObject({ - Bucket: "", - Key: "", -}); - -// UncheckedClient makes output fields non-nullable. -// You should still perform type checks as you deem -// necessary, but the SDK will no longer prompt you -// with nullability errors. -const body = await ( - await s3b.getObject({ - Bucket: "", - Key: "", - }) -).Body.transformToString(); -``` - -### Scenario: Narrowing a smithy-typescript generated client's output payload blob types - -This is mostly relevant to operations with streaming bodies such as within -the S3Client in the AWS SDK for JavaScript v3. - -Because blob payload types are platform dependent, you may wish to indicate in your application that a client is running in a specific -environment. This narrows the blob payload types. - -```typescript -import { GetObjectCommand, S3Client } from "@aws-sdk/client-s3"; -import type { NodeJsClient, SdkStream, StreamingBlobPayloadOutputTypes } from "@smithy/types"; -import type { IncomingMessage } from "node:http"; - -// default client init. -const s3Default = new S3Client({}); - -// client init with type narrowing. -const s3NarrowType = new S3Client({}) as NodeJsClient; - -// The default type of blob payloads is a wide union type including multiple possible -// request handlers. -const body1: StreamingBlobPayloadOutputTypes = (await s3Default.send(new GetObjectCommand({ Key: "", Bucket: "" }))) - .Body!; - -// This is of the narrower type SdkStream representing -// blob payload responses using specifically the node:http request handler. -const body2: SdkStream = (await s3NarrowType.send(new GetObjectCommand({ Key: "", Bucket: "" }))) - .Body!; -``` diff --git a/node_modules/@smithy/types/dist-cjs/abort.js b/node_modules/@smithy/types/dist-cjs/abort.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@smithy/types/dist-cjs/abort.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@smithy/types/dist-cjs/auth/HttpApiKeyAuth.js b/node_modules/@smithy/types/dist-cjs/auth/HttpApiKeyAuth.js deleted file mode 100644 index 519749f0..00000000 --- a/node_modules/@smithy/types/dist-cjs/auth/HttpApiKeyAuth.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.HttpApiKeyAuthLocation = void 0; -var HttpApiKeyAuthLocation; -(function (HttpApiKeyAuthLocation) { - HttpApiKeyAuthLocation["HEADER"] = "header"; - HttpApiKeyAuthLocation["QUERY"] = "query"; -})(HttpApiKeyAuthLocation = exports.HttpApiKeyAuthLocation || (exports.HttpApiKeyAuthLocation = {})); diff --git a/node_modules/@smithy/types/dist-cjs/auth/HttpAuthScheme.js b/node_modules/@smithy/types/dist-cjs/auth/HttpAuthScheme.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@smithy/types/dist-cjs/auth/HttpAuthScheme.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@smithy/types/dist-cjs/auth/HttpAuthSchemeProvider.js b/node_modules/@smithy/types/dist-cjs/auth/HttpAuthSchemeProvider.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@smithy/types/dist-cjs/auth/HttpAuthSchemeProvider.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@smithy/types/dist-cjs/auth/HttpSigner.js b/node_modules/@smithy/types/dist-cjs/auth/HttpSigner.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@smithy/types/dist-cjs/auth/HttpSigner.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@smithy/types/dist-cjs/auth/IdentityProviderConfig.js b/node_modules/@smithy/types/dist-cjs/auth/IdentityProviderConfig.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@smithy/types/dist-cjs/auth/IdentityProviderConfig.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@smithy/types/dist-cjs/auth/auth.js b/node_modules/@smithy/types/dist-cjs/auth/auth.js deleted file mode 100644 index 8a3118e8..00000000 --- a/node_modules/@smithy/types/dist-cjs/auth/auth.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.HttpAuthLocation = void 0; -var HttpAuthLocation; -(function (HttpAuthLocation) { - HttpAuthLocation["HEADER"] = "header"; - HttpAuthLocation["QUERY"] = "query"; -})(HttpAuthLocation = exports.HttpAuthLocation || (exports.HttpAuthLocation = {})); diff --git a/node_modules/@smithy/types/dist-cjs/auth/index.js b/node_modules/@smithy/types/dist-cjs/auth/index.js deleted file mode 100644 index bf7b5dc2..00000000 --- a/node_modules/@smithy/types/dist-cjs/auth/index.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./auth"), exports); -tslib_1.__exportStar(require("./HttpApiKeyAuth"), exports); -tslib_1.__exportStar(require("./HttpAuthScheme"), exports); -tslib_1.__exportStar(require("./HttpAuthSchemeProvider"), exports); -tslib_1.__exportStar(require("./HttpSigner"), exports); -tslib_1.__exportStar(require("./IdentityProviderConfig"), exports); diff --git a/node_modules/@smithy/types/dist-cjs/blob/blob-payload-input-types.js b/node_modules/@smithy/types/dist-cjs/blob/blob-payload-input-types.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@smithy/types/dist-cjs/blob/blob-payload-input-types.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@smithy/types/dist-cjs/checksum.js b/node_modules/@smithy/types/dist-cjs/checksum.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@smithy/types/dist-cjs/checksum.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@smithy/types/dist-cjs/client.js b/node_modules/@smithy/types/dist-cjs/client.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@smithy/types/dist-cjs/client.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@smithy/types/dist-cjs/command.js b/node_modules/@smithy/types/dist-cjs/command.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@smithy/types/dist-cjs/command.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@smithy/types/dist-cjs/connection/config.js b/node_modules/@smithy/types/dist-cjs/connection/config.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@smithy/types/dist-cjs/connection/config.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@smithy/types/dist-cjs/connection/index.js b/node_modules/@smithy/types/dist-cjs/connection/index.js deleted file mode 100644 index e3a42d7b..00000000 --- a/node_modules/@smithy/types/dist-cjs/connection/index.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./config"), exports); -tslib_1.__exportStar(require("./manager"), exports); -tslib_1.__exportStar(require("./pool"), exports); diff --git a/node_modules/@smithy/types/dist-cjs/connection/manager.js b/node_modules/@smithy/types/dist-cjs/connection/manager.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@smithy/types/dist-cjs/connection/manager.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@smithy/types/dist-cjs/connection/pool.js b/node_modules/@smithy/types/dist-cjs/connection/pool.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@smithy/types/dist-cjs/connection/pool.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@smithy/types/dist-cjs/crypto.js b/node_modules/@smithy/types/dist-cjs/crypto.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@smithy/types/dist-cjs/crypto.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@smithy/types/dist-cjs/downlevel-ts3.4/transform/type-transform.js b/node_modules/@smithy/types/dist-cjs/downlevel-ts3.4/transform/type-transform.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@smithy/types/dist-cjs/downlevel-ts3.4/transform/type-transform.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@smithy/types/dist-cjs/encode.js b/node_modules/@smithy/types/dist-cjs/encode.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@smithy/types/dist-cjs/encode.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@smithy/types/dist-cjs/endpoint.js b/node_modules/@smithy/types/dist-cjs/endpoint.js deleted file mode 100644 index e34bd2c6..00000000 --- a/node_modules/@smithy/types/dist-cjs/endpoint.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.EndpointURLScheme = void 0; -var EndpointURLScheme; -(function (EndpointURLScheme) { - EndpointURLScheme["HTTP"] = "http"; - EndpointURLScheme["HTTPS"] = "https"; -})(EndpointURLScheme = exports.EndpointURLScheme || (exports.EndpointURLScheme = {})); diff --git a/node_modules/@smithy/types/dist-cjs/endpoints/EndpointRuleObject.js b/node_modules/@smithy/types/dist-cjs/endpoints/EndpointRuleObject.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@smithy/types/dist-cjs/endpoints/EndpointRuleObject.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@smithy/types/dist-cjs/endpoints/ErrorRuleObject.js b/node_modules/@smithy/types/dist-cjs/endpoints/ErrorRuleObject.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@smithy/types/dist-cjs/endpoints/ErrorRuleObject.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@smithy/types/dist-cjs/endpoints/RuleSetObject.js b/node_modules/@smithy/types/dist-cjs/endpoints/RuleSetObject.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@smithy/types/dist-cjs/endpoints/RuleSetObject.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@smithy/types/dist-cjs/endpoints/TreeRuleObject.js b/node_modules/@smithy/types/dist-cjs/endpoints/TreeRuleObject.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@smithy/types/dist-cjs/endpoints/TreeRuleObject.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@smithy/types/dist-cjs/endpoints/index.js b/node_modules/@smithy/types/dist-cjs/endpoints/index.js deleted file mode 100644 index 8d7aaf4c..00000000 --- a/node_modules/@smithy/types/dist-cjs/endpoints/index.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./EndpointRuleObject"), exports); -tslib_1.__exportStar(require("./ErrorRuleObject"), exports); -tslib_1.__exportStar(require("./RuleSetObject"), exports); -tslib_1.__exportStar(require("./shared"), exports); -tslib_1.__exportStar(require("./TreeRuleObject"), exports); diff --git a/node_modules/@smithy/types/dist-cjs/endpoints/shared.js b/node_modules/@smithy/types/dist-cjs/endpoints/shared.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@smithy/types/dist-cjs/endpoints/shared.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@smithy/types/dist-cjs/eventStream.js b/node_modules/@smithy/types/dist-cjs/eventStream.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@smithy/types/dist-cjs/eventStream.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@smithy/types/dist-cjs/extensions/checksum.js b/node_modules/@smithy/types/dist-cjs/extensions/checksum.js deleted file mode 100644 index 1b54dee0..00000000 --- a/node_modules/@smithy/types/dist-cjs/extensions/checksum.js +++ /dev/null @@ -1,44 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.resolveChecksumRuntimeConfig = exports.getChecksumConfiguration = exports.AlgorithmId = void 0; -var AlgorithmId; -(function (AlgorithmId) { - AlgorithmId["MD5"] = "md5"; - AlgorithmId["CRC32"] = "crc32"; - AlgorithmId["CRC32C"] = "crc32c"; - AlgorithmId["SHA1"] = "sha1"; - AlgorithmId["SHA256"] = "sha256"; -})(AlgorithmId = exports.AlgorithmId || (exports.AlgorithmId = {})); -const getChecksumConfiguration = (runtimeConfig) => { - const checksumAlgorithms = []; - if (runtimeConfig.sha256 !== undefined) { - checksumAlgorithms.push({ - algorithmId: () => AlgorithmId.SHA256, - checksumConstructor: () => runtimeConfig.sha256, - }); - } - if (runtimeConfig.md5 != undefined) { - checksumAlgorithms.push({ - algorithmId: () => AlgorithmId.MD5, - checksumConstructor: () => runtimeConfig.md5, - }); - } - return { - _checksumAlgorithms: checksumAlgorithms, - addChecksumAlgorithm(algo) { - this._checksumAlgorithms.push(algo); - }, - checksumAlgorithms() { - return this._checksumAlgorithms; - }, - }; -}; -exports.getChecksumConfiguration = getChecksumConfiguration; -const resolveChecksumRuntimeConfig = (clientConfig) => { - const runtimeConfig = {}; - clientConfig.checksumAlgorithms().forEach((checksumAlgorithm) => { - runtimeConfig[checksumAlgorithm.algorithmId()] = checksumAlgorithm.checksumConstructor(); - }); - return runtimeConfig; -}; -exports.resolveChecksumRuntimeConfig = resolveChecksumRuntimeConfig; diff --git a/node_modules/@smithy/types/dist-cjs/extensions/defaultClientConfiguration.js b/node_modules/@smithy/types/dist-cjs/extensions/defaultClientConfiguration.js deleted file mode 100644 index 03171fc9..00000000 --- a/node_modules/@smithy/types/dist-cjs/extensions/defaultClientConfiguration.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.resolveDefaultRuntimeConfig = exports.getDefaultClientConfiguration = void 0; -const checksum_1 = require("./checksum"); -const getDefaultClientConfiguration = (runtimeConfig) => { - return { - ...(0, checksum_1.getChecksumConfiguration)(runtimeConfig), - }; -}; -exports.getDefaultClientConfiguration = getDefaultClientConfiguration; -const resolveDefaultRuntimeConfig = (config) => { - return { - ...(0, checksum_1.resolveChecksumRuntimeConfig)(config), - }; -}; -exports.resolveDefaultRuntimeConfig = resolveDefaultRuntimeConfig; diff --git a/node_modules/@smithy/types/dist-cjs/extensions/defaultExtensionConfiguration.js b/node_modules/@smithy/types/dist-cjs/extensions/defaultExtensionConfiguration.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@smithy/types/dist-cjs/extensions/defaultExtensionConfiguration.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@smithy/types/dist-cjs/extensions/index.js b/node_modules/@smithy/types/dist-cjs/extensions/index.js deleted file mode 100644 index 88dc1dfb..00000000 --- a/node_modules/@smithy/types/dist-cjs/extensions/index.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AlgorithmId = void 0; -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./defaultClientConfiguration"), exports); -tslib_1.__exportStar(require("./defaultExtensionConfiguration"), exports); -var checksum_1 = require("./checksum"); -Object.defineProperty(exports, "AlgorithmId", { enumerable: true, get: function () { return checksum_1.AlgorithmId; } }); diff --git a/node_modules/@smithy/types/dist-cjs/extensions/retry.js b/node_modules/@smithy/types/dist-cjs/extensions/retry.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@smithy/types/dist-cjs/extensions/retry.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@smithy/types/dist-cjs/externals-check/browser-externals-check.js b/node_modules/@smithy/types/dist-cjs/externals-check/browser-externals-check.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@smithy/types/dist-cjs/externals-check/browser-externals-check.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@smithy/types/dist-cjs/http.js b/node_modules/@smithy/types/dist-cjs/http.js deleted file mode 100644 index e4bf4131..00000000 --- a/node_modules/@smithy/types/dist-cjs/http.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.FieldPosition = void 0; -var FieldPosition; -(function (FieldPosition) { - FieldPosition[FieldPosition["HEADER"] = 0] = "HEADER"; - FieldPosition[FieldPosition["TRAILER"] = 1] = "TRAILER"; -})(FieldPosition = exports.FieldPosition || (exports.FieldPosition = {})); diff --git a/node_modules/@smithy/types/dist-cjs/identity/apiKeyIdentity.js b/node_modules/@smithy/types/dist-cjs/identity/apiKeyIdentity.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@smithy/types/dist-cjs/identity/apiKeyIdentity.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@smithy/types/dist-cjs/identity/awsCredentialIdentity.js b/node_modules/@smithy/types/dist-cjs/identity/awsCredentialIdentity.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@smithy/types/dist-cjs/identity/awsCredentialIdentity.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@smithy/types/dist-cjs/identity/identity.js b/node_modules/@smithy/types/dist-cjs/identity/identity.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@smithy/types/dist-cjs/identity/identity.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@smithy/types/dist-cjs/identity/index.js b/node_modules/@smithy/types/dist-cjs/identity/index.js deleted file mode 100644 index 916947b6..00000000 --- a/node_modules/@smithy/types/dist-cjs/identity/index.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./apiKeyIdentity"), exports); -tslib_1.__exportStar(require("./awsCredentialIdentity"), exports); -tslib_1.__exportStar(require("./identity"), exports); -tslib_1.__exportStar(require("./tokenIdentity"), exports); diff --git a/node_modules/@smithy/types/dist-cjs/identity/tokenIdentity.js b/node_modules/@smithy/types/dist-cjs/identity/tokenIdentity.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@smithy/types/dist-cjs/identity/tokenIdentity.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@smithy/types/dist-cjs/index.js b/node_modules/@smithy/types/dist-cjs/index.js deleted file mode 100644 index 55085aaf..00000000 --- a/node_modules/@smithy/types/dist-cjs/index.js +++ /dev/null @@ -1,38 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./abort"), exports); -tslib_1.__exportStar(require("./auth"), exports); -tslib_1.__exportStar(require("./blob/blob-payload-input-types"), exports); -tslib_1.__exportStar(require("./checksum"), exports); -tslib_1.__exportStar(require("./client"), exports); -tslib_1.__exportStar(require("./command"), exports); -tslib_1.__exportStar(require("./connection"), exports); -tslib_1.__exportStar(require("./crypto"), exports); -tslib_1.__exportStar(require("./encode"), exports); -tslib_1.__exportStar(require("./endpoint"), exports); -tslib_1.__exportStar(require("./endpoints"), exports); -tslib_1.__exportStar(require("./eventStream"), exports); -tslib_1.__exportStar(require("./extensions"), exports); -tslib_1.__exportStar(require("./http"), exports); -tslib_1.__exportStar(require("./identity"), exports); -tslib_1.__exportStar(require("./logger"), exports); -tslib_1.__exportStar(require("./middleware"), exports); -tslib_1.__exportStar(require("./pagination"), exports); -tslib_1.__exportStar(require("./profile"), exports); -tslib_1.__exportStar(require("./response"), exports); -tslib_1.__exportStar(require("./retry"), exports); -tslib_1.__exportStar(require("./serde"), exports); -tslib_1.__exportStar(require("./shapes"), exports); -tslib_1.__exportStar(require("./signature"), exports); -tslib_1.__exportStar(require("./stream"), exports); -tslib_1.__exportStar(require("./streaming-payload/streaming-blob-common-types"), exports); -tslib_1.__exportStar(require("./streaming-payload/streaming-blob-payload-input-types"), exports); -tslib_1.__exportStar(require("./streaming-payload/streaming-blob-payload-output-types"), exports); -tslib_1.__exportStar(require("./transfer"), exports); -tslib_1.__exportStar(require("./transform/client-payload-blob-type-narrow"), exports); -tslib_1.__exportStar(require("./transform/no-undefined"), exports); -tslib_1.__exportStar(require("./transform/type-transform"), exports); -tslib_1.__exportStar(require("./uri"), exports); -tslib_1.__exportStar(require("./util"), exports); -tslib_1.__exportStar(require("./waiter"), exports); diff --git a/node_modules/@smithy/types/dist-cjs/logger.js b/node_modules/@smithy/types/dist-cjs/logger.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@smithy/types/dist-cjs/logger.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@smithy/types/dist-cjs/middleware.js b/node_modules/@smithy/types/dist-cjs/middleware.js deleted file mode 100644 index 869ef035..00000000 --- a/node_modules/@smithy/types/dist-cjs/middleware.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.SMITHY_CONTEXT_KEY = void 0; -exports.SMITHY_CONTEXT_KEY = "__smithy_context"; diff --git a/node_modules/@smithy/types/dist-cjs/pagination.js b/node_modules/@smithy/types/dist-cjs/pagination.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@smithy/types/dist-cjs/pagination.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@smithy/types/dist-cjs/profile.js b/node_modules/@smithy/types/dist-cjs/profile.js deleted file mode 100644 index 56afa43f..00000000 --- a/node_modules/@smithy/types/dist-cjs/profile.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.IniSectionType = void 0; -var IniSectionType; -(function (IniSectionType) { - IniSectionType["PROFILE"] = "profile"; - IniSectionType["SSO_SESSION"] = "sso-session"; - IniSectionType["SERVICES"] = "services"; -})(IniSectionType = exports.IniSectionType || (exports.IniSectionType = {})); diff --git a/node_modules/@smithy/types/dist-cjs/response.js b/node_modules/@smithy/types/dist-cjs/response.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@smithy/types/dist-cjs/response.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@smithy/types/dist-cjs/retry.js b/node_modules/@smithy/types/dist-cjs/retry.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@smithy/types/dist-cjs/retry.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@smithy/types/dist-cjs/serde.js b/node_modules/@smithy/types/dist-cjs/serde.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@smithy/types/dist-cjs/serde.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@smithy/types/dist-cjs/shapes.js b/node_modules/@smithy/types/dist-cjs/shapes.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@smithy/types/dist-cjs/shapes.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@smithy/types/dist-cjs/signature.js b/node_modules/@smithy/types/dist-cjs/signature.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@smithy/types/dist-cjs/signature.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@smithy/types/dist-cjs/stream.js b/node_modules/@smithy/types/dist-cjs/stream.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@smithy/types/dist-cjs/stream.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@smithy/types/dist-cjs/streaming-payload/streaming-blob-common-types.js b/node_modules/@smithy/types/dist-cjs/streaming-payload/streaming-blob-common-types.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@smithy/types/dist-cjs/streaming-payload/streaming-blob-common-types.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@smithy/types/dist-cjs/streaming-payload/streaming-blob-payload-input-types.js b/node_modules/@smithy/types/dist-cjs/streaming-payload/streaming-blob-payload-input-types.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@smithy/types/dist-cjs/streaming-payload/streaming-blob-payload-input-types.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@smithy/types/dist-cjs/streaming-payload/streaming-blob-payload-output-types.js b/node_modules/@smithy/types/dist-cjs/streaming-payload/streaming-blob-payload-output-types.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@smithy/types/dist-cjs/streaming-payload/streaming-blob-payload-output-types.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@smithy/types/dist-cjs/transfer.js b/node_modules/@smithy/types/dist-cjs/transfer.js deleted file mode 100644 index d8de2f45..00000000 --- a/node_modules/@smithy/types/dist-cjs/transfer.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.RequestHandlerProtocol = void 0; -var RequestHandlerProtocol; -(function (RequestHandlerProtocol) { - RequestHandlerProtocol["HTTP_0_9"] = "http/0.9"; - RequestHandlerProtocol["HTTP_1_0"] = "http/1.0"; - RequestHandlerProtocol["TDS_8_0"] = "tds/8.0"; -})(RequestHandlerProtocol = exports.RequestHandlerProtocol || (exports.RequestHandlerProtocol = {})); diff --git a/node_modules/@smithy/types/dist-cjs/transform/client-method-transforms.js b/node_modules/@smithy/types/dist-cjs/transform/client-method-transforms.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@smithy/types/dist-cjs/transform/client-method-transforms.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@smithy/types/dist-cjs/transform/client-payload-blob-type-narrow.js b/node_modules/@smithy/types/dist-cjs/transform/client-payload-blob-type-narrow.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@smithy/types/dist-cjs/transform/client-payload-blob-type-narrow.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@smithy/types/dist-cjs/transform/exact.js b/node_modules/@smithy/types/dist-cjs/transform/exact.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@smithy/types/dist-cjs/transform/exact.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@smithy/types/dist-cjs/transform/no-undefined.js b/node_modules/@smithy/types/dist-cjs/transform/no-undefined.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@smithy/types/dist-cjs/transform/no-undefined.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@smithy/types/dist-cjs/transform/type-transform.js b/node_modules/@smithy/types/dist-cjs/transform/type-transform.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@smithy/types/dist-cjs/transform/type-transform.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@smithy/types/dist-cjs/uri.js b/node_modules/@smithy/types/dist-cjs/uri.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@smithy/types/dist-cjs/uri.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@smithy/types/dist-cjs/util.js b/node_modules/@smithy/types/dist-cjs/util.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@smithy/types/dist-cjs/util.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@smithy/types/dist-cjs/waiter.js b/node_modules/@smithy/types/dist-cjs/waiter.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@smithy/types/dist-cjs/waiter.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@smithy/types/dist-es/abort.js b/node_modules/@smithy/types/dist-es/abort.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@smithy/types/dist-es/abort.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@smithy/types/dist-es/auth/HttpApiKeyAuth.js b/node_modules/@smithy/types/dist-es/auth/HttpApiKeyAuth.js deleted file mode 100644 index 4c02f242..00000000 --- a/node_modules/@smithy/types/dist-es/auth/HttpApiKeyAuth.js +++ /dev/null @@ -1,5 +0,0 @@ -export var HttpApiKeyAuthLocation; -(function (HttpApiKeyAuthLocation) { - HttpApiKeyAuthLocation["HEADER"] = "header"; - HttpApiKeyAuthLocation["QUERY"] = "query"; -})(HttpApiKeyAuthLocation || (HttpApiKeyAuthLocation = {})); diff --git a/node_modules/@smithy/types/dist-es/auth/HttpAuthScheme.js b/node_modules/@smithy/types/dist-es/auth/HttpAuthScheme.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@smithy/types/dist-es/auth/HttpAuthScheme.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@smithy/types/dist-es/auth/HttpAuthSchemeProvider.js b/node_modules/@smithy/types/dist-es/auth/HttpAuthSchemeProvider.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@smithy/types/dist-es/auth/HttpAuthSchemeProvider.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@smithy/types/dist-es/auth/HttpSigner.js b/node_modules/@smithy/types/dist-es/auth/HttpSigner.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@smithy/types/dist-es/auth/HttpSigner.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@smithy/types/dist-es/auth/IdentityProviderConfig.js b/node_modules/@smithy/types/dist-es/auth/IdentityProviderConfig.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@smithy/types/dist-es/auth/IdentityProviderConfig.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@smithy/types/dist-es/auth/auth.js b/node_modules/@smithy/types/dist-es/auth/auth.js deleted file mode 100644 index bd3b2df8..00000000 --- a/node_modules/@smithy/types/dist-es/auth/auth.js +++ /dev/null @@ -1,5 +0,0 @@ -export var HttpAuthLocation; -(function (HttpAuthLocation) { - HttpAuthLocation["HEADER"] = "header"; - HttpAuthLocation["QUERY"] = "query"; -})(HttpAuthLocation || (HttpAuthLocation = {})); diff --git a/node_modules/@smithy/types/dist-es/auth/index.js b/node_modules/@smithy/types/dist-es/auth/index.js deleted file mode 100644 index 7436030c..00000000 --- a/node_modules/@smithy/types/dist-es/auth/index.js +++ /dev/null @@ -1,6 +0,0 @@ -export * from "./auth"; -export * from "./HttpApiKeyAuth"; -export * from "./HttpAuthScheme"; -export * from "./HttpAuthSchemeProvider"; -export * from "./HttpSigner"; -export * from "./IdentityProviderConfig"; diff --git a/node_modules/@smithy/types/dist-es/blob/blob-payload-input-types.js b/node_modules/@smithy/types/dist-es/blob/blob-payload-input-types.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@smithy/types/dist-es/blob/blob-payload-input-types.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@smithy/types/dist-es/checksum.js b/node_modules/@smithy/types/dist-es/checksum.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@smithy/types/dist-es/checksum.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@smithy/types/dist-es/client.js b/node_modules/@smithy/types/dist-es/client.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@smithy/types/dist-es/client.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@smithy/types/dist-es/command.js b/node_modules/@smithy/types/dist-es/command.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@smithy/types/dist-es/command.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@smithy/types/dist-es/connection/config.js b/node_modules/@smithy/types/dist-es/connection/config.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@smithy/types/dist-es/connection/config.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@smithy/types/dist-es/connection/index.js b/node_modules/@smithy/types/dist-es/connection/index.js deleted file mode 100644 index c6c3ea80..00000000 --- a/node_modules/@smithy/types/dist-es/connection/index.js +++ /dev/null @@ -1,3 +0,0 @@ -export * from "./config"; -export * from "./manager"; -export * from "./pool"; diff --git a/node_modules/@smithy/types/dist-es/connection/manager.js b/node_modules/@smithy/types/dist-es/connection/manager.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@smithy/types/dist-es/connection/manager.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@smithy/types/dist-es/connection/pool.js b/node_modules/@smithy/types/dist-es/connection/pool.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@smithy/types/dist-es/connection/pool.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@smithy/types/dist-es/crypto.js b/node_modules/@smithy/types/dist-es/crypto.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@smithy/types/dist-es/crypto.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@smithy/types/dist-es/downlevel-ts3.4/transform/type-transform.js b/node_modules/@smithy/types/dist-es/downlevel-ts3.4/transform/type-transform.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@smithy/types/dist-es/downlevel-ts3.4/transform/type-transform.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@smithy/types/dist-es/encode.js b/node_modules/@smithy/types/dist-es/encode.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@smithy/types/dist-es/encode.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@smithy/types/dist-es/endpoint.js b/node_modules/@smithy/types/dist-es/endpoint.js deleted file mode 100644 index 4ae601ff..00000000 --- a/node_modules/@smithy/types/dist-es/endpoint.js +++ /dev/null @@ -1,5 +0,0 @@ -export var EndpointURLScheme; -(function (EndpointURLScheme) { - EndpointURLScheme["HTTP"] = "http"; - EndpointURLScheme["HTTPS"] = "https"; -})(EndpointURLScheme || (EndpointURLScheme = {})); diff --git a/node_modules/@smithy/types/dist-es/endpoints/EndpointRuleObject.js b/node_modules/@smithy/types/dist-es/endpoints/EndpointRuleObject.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@smithy/types/dist-es/endpoints/EndpointRuleObject.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@smithy/types/dist-es/endpoints/ErrorRuleObject.js b/node_modules/@smithy/types/dist-es/endpoints/ErrorRuleObject.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@smithy/types/dist-es/endpoints/ErrorRuleObject.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@smithy/types/dist-es/endpoints/RuleSetObject.js b/node_modules/@smithy/types/dist-es/endpoints/RuleSetObject.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@smithy/types/dist-es/endpoints/RuleSetObject.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@smithy/types/dist-es/endpoints/TreeRuleObject.js b/node_modules/@smithy/types/dist-es/endpoints/TreeRuleObject.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@smithy/types/dist-es/endpoints/TreeRuleObject.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@smithy/types/dist-es/endpoints/index.js b/node_modules/@smithy/types/dist-es/endpoints/index.js deleted file mode 100644 index 64d85cf8..00000000 --- a/node_modules/@smithy/types/dist-es/endpoints/index.js +++ /dev/null @@ -1,5 +0,0 @@ -export * from "./EndpointRuleObject"; -export * from "./ErrorRuleObject"; -export * from "./RuleSetObject"; -export * from "./shared"; -export * from "./TreeRuleObject"; diff --git a/node_modules/@smithy/types/dist-es/endpoints/shared.js b/node_modules/@smithy/types/dist-es/endpoints/shared.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@smithy/types/dist-es/endpoints/shared.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@smithy/types/dist-es/eventStream.js b/node_modules/@smithy/types/dist-es/eventStream.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@smithy/types/dist-es/eventStream.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@smithy/types/dist-es/extensions/checksum.js b/node_modules/@smithy/types/dist-es/extensions/checksum.js deleted file mode 100644 index 49bd37cb..00000000 --- a/node_modules/@smithy/types/dist-es/extensions/checksum.js +++ /dev/null @@ -1,39 +0,0 @@ -export var AlgorithmId; -(function (AlgorithmId) { - AlgorithmId["MD5"] = "md5"; - AlgorithmId["CRC32"] = "crc32"; - AlgorithmId["CRC32C"] = "crc32c"; - AlgorithmId["SHA1"] = "sha1"; - AlgorithmId["SHA256"] = "sha256"; -})(AlgorithmId || (AlgorithmId = {})); -export const getChecksumConfiguration = (runtimeConfig) => { - const checksumAlgorithms = []; - if (runtimeConfig.sha256 !== undefined) { - checksumAlgorithms.push({ - algorithmId: () => AlgorithmId.SHA256, - checksumConstructor: () => runtimeConfig.sha256, - }); - } - if (runtimeConfig.md5 != undefined) { - checksumAlgorithms.push({ - algorithmId: () => AlgorithmId.MD5, - checksumConstructor: () => runtimeConfig.md5, - }); - } - return { - _checksumAlgorithms: checksumAlgorithms, - addChecksumAlgorithm(algo) { - this._checksumAlgorithms.push(algo); - }, - checksumAlgorithms() { - return this._checksumAlgorithms; - }, - }; -}; -export const resolveChecksumRuntimeConfig = (clientConfig) => { - const runtimeConfig = {}; - clientConfig.checksumAlgorithms().forEach((checksumAlgorithm) => { - runtimeConfig[checksumAlgorithm.algorithmId()] = checksumAlgorithm.checksumConstructor(); - }); - return runtimeConfig; -}; diff --git a/node_modules/@smithy/types/dist-es/extensions/defaultClientConfiguration.js b/node_modules/@smithy/types/dist-es/extensions/defaultClientConfiguration.js deleted file mode 100644 index c8eff6d2..00000000 --- a/node_modules/@smithy/types/dist-es/extensions/defaultClientConfiguration.js +++ /dev/null @@ -1,11 +0,0 @@ -import { getChecksumConfiguration, resolveChecksumRuntimeConfig } from "./checksum"; -export const getDefaultClientConfiguration = (runtimeConfig) => { - return { - ...getChecksumConfiguration(runtimeConfig), - }; -}; -export const resolveDefaultRuntimeConfig = (config) => { - return { - ...resolveChecksumRuntimeConfig(config), - }; -}; diff --git a/node_modules/@smithy/types/dist-es/extensions/defaultExtensionConfiguration.js b/node_modules/@smithy/types/dist-es/extensions/defaultExtensionConfiguration.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@smithy/types/dist-es/extensions/defaultExtensionConfiguration.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@smithy/types/dist-es/extensions/index.js b/node_modules/@smithy/types/dist-es/extensions/index.js deleted file mode 100644 index 0fa92d96..00000000 --- a/node_modules/@smithy/types/dist-es/extensions/index.js +++ /dev/null @@ -1,3 +0,0 @@ -export * from "./defaultClientConfiguration"; -export * from "./defaultExtensionConfiguration"; -export { AlgorithmId } from "./checksum"; diff --git a/node_modules/@smithy/types/dist-es/extensions/retry.js b/node_modules/@smithy/types/dist-es/extensions/retry.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@smithy/types/dist-es/extensions/retry.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@smithy/types/dist-es/externals-check/browser-externals-check.js b/node_modules/@smithy/types/dist-es/externals-check/browser-externals-check.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@smithy/types/dist-es/externals-check/browser-externals-check.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@smithy/types/dist-es/http.js b/node_modules/@smithy/types/dist-es/http.js deleted file mode 100644 index 27b22f01..00000000 --- a/node_modules/@smithy/types/dist-es/http.js +++ /dev/null @@ -1,5 +0,0 @@ -export var FieldPosition; -(function (FieldPosition) { - FieldPosition[FieldPosition["HEADER"] = 0] = "HEADER"; - FieldPosition[FieldPosition["TRAILER"] = 1] = "TRAILER"; -})(FieldPosition || (FieldPosition = {})); diff --git a/node_modules/@smithy/types/dist-es/identity/apiKeyIdentity.js b/node_modules/@smithy/types/dist-es/identity/apiKeyIdentity.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@smithy/types/dist-es/identity/apiKeyIdentity.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@smithy/types/dist-es/identity/awsCredentialIdentity.js b/node_modules/@smithy/types/dist-es/identity/awsCredentialIdentity.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@smithy/types/dist-es/identity/awsCredentialIdentity.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@smithy/types/dist-es/identity/identity.js b/node_modules/@smithy/types/dist-es/identity/identity.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@smithy/types/dist-es/identity/identity.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@smithy/types/dist-es/identity/index.js b/node_modules/@smithy/types/dist-es/identity/index.js deleted file mode 100644 index 33603203..00000000 --- a/node_modules/@smithy/types/dist-es/identity/index.js +++ /dev/null @@ -1,4 +0,0 @@ -export * from "./apiKeyIdentity"; -export * from "./awsCredentialIdentity"; -export * from "./identity"; -export * from "./tokenIdentity"; diff --git a/node_modules/@smithy/types/dist-es/identity/tokenIdentity.js b/node_modules/@smithy/types/dist-es/identity/tokenIdentity.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@smithy/types/dist-es/identity/tokenIdentity.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@smithy/types/dist-es/index.js b/node_modules/@smithy/types/dist-es/index.js deleted file mode 100644 index 70939946..00000000 --- a/node_modules/@smithy/types/dist-es/index.js +++ /dev/null @@ -1,35 +0,0 @@ -export * from "./abort"; -export * from "./auth"; -export * from "./blob/blob-payload-input-types"; -export * from "./checksum"; -export * from "./client"; -export * from "./command"; -export * from "./connection"; -export * from "./crypto"; -export * from "./encode"; -export * from "./endpoint"; -export * from "./endpoints"; -export * from "./eventStream"; -export * from "./extensions"; -export * from "./http"; -export * from "./identity"; -export * from "./logger"; -export * from "./middleware"; -export * from "./pagination"; -export * from "./profile"; -export * from "./response"; -export * from "./retry"; -export * from "./serde"; -export * from "./shapes"; -export * from "./signature"; -export * from "./stream"; -export * from "./streaming-payload/streaming-blob-common-types"; -export * from "./streaming-payload/streaming-blob-payload-input-types"; -export * from "./streaming-payload/streaming-blob-payload-output-types"; -export * from "./transfer"; -export * from "./transform/client-payload-blob-type-narrow"; -export * from "./transform/no-undefined"; -export * from "./transform/type-transform"; -export * from "./uri"; -export * from "./util"; -export * from "./waiter"; diff --git a/node_modules/@smithy/types/dist-es/logger.js b/node_modules/@smithy/types/dist-es/logger.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@smithy/types/dist-es/logger.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@smithy/types/dist-es/middleware.js b/node_modules/@smithy/types/dist-es/middleware.js deleted file mode 100644 index 7d0d0500..00000000 --- a/node_modules/@smithy/types/dist-es/middleware.js +++ /dev/null @@ -1 +0,0 @@ -export const SMITHY_CONTEXT_KEY = "__smithy_context"; diff --git a/node_modules/@smithy/types/dist-es/pagination.js b/node_modules/@smithy/types/dist-es/pagination.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@smithy/types/dist-es/pagination.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@smithy/types/dist-es/profile.js b/node_modules/@smithy/types/dist-es/profile.js deleted file mode 100644 index 9d56c8d6..00000000 --- a/node_modules/@smithy/types/dist-es/profile.js +++ /dev/null @@ -1,6 +0,0 @@ -export var IniSectionType; -(function (IniSectionType) { - IniSectionType["PROFILE"] = "profile"; - IniSectionType["SSO_SESSION"] = "sso-session"; - IniSectionType["SERVICES"] = "services"; -})(IniSectionType || (IniSectionType = {})); diff --git a/node_modules/@smithy/types/dist-es/response.js b/node_modules/@smithy/types/dist-es/response.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@smithy/types/dist-es/response.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@smithy/types/dist-es/retry.js b/node_modules/@smithy/types/dist-es/retry.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@smithy/types/dist-es/retry.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@smithy/types/dist-es/serde.js b/node_modules/@smithy/types/dist-es/serde.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@smithy/types/dist-es/serde.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@smithy/types/dist-es/shapes.js b/node_modules/@smithy/types/dist-es/shapes.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@smithy/types/dist-es/shapes.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@smithy/types/dist-es/signature.js b/node_modules/@smithy/types/dist-es/signature.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@smithy/types/dist-es/signature.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@smithy/types/dist-es/stream.js b/node_modules/@smithy/types/dist-es/stream.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@smithy/types/dist-es/stream.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@smithy/types/dist-es/streaming-payload/streaming-blob-common-types.js b/node_modules/@smithy/types/dist-es/streaming-payload/streaming-blob-common-types.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@smithy/types/dist-es/streaming-payload/streaming-blob-common-types.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@smithy/types/dist-es/streaming-payload/streaming-blob-payload-input-types.js b/node_modules/@smithy/types/dist-es/streaming-payload/streaming-blob-payload-input-types.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@smithy/types/dist-es/streaming-payload/streaming-blob-payload-input-types.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@smithy/types/dist-es/streaming-payload/streaming-blob-payload-output-types.js b/node_modules/@smithy/types/dist-es/streaming-payload/streaming-blob-payload-output-types.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@smithy/types/dist-es/streaming-payload/streaming-blob-payload-output-types.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@smithy/types/dist-es/transfer.js b/node_modules/@smithy/types/dist-es/transfer.js deleted file mode 100644 index f7761513..00000000 --- a/node_modules/@smithy/types/dist-es/transfer.js +++ /dev/null @@ -1,6 +0,0 @@ -export var RequestHandlerProtocol; -(function (RequestHandlerProtocol) { - RequestHandlerProtocol["HTTP_0_9"] = "http/0.9"; - RequestHandlerProtocol["HTTP_1_0"] = "http/1.0"; - RequestHandlerProtocol["TDS_8_0"] = "tds/8.0"; -})(RequestHandlerProtocol || (RequestHandlerProtocol = {})); diff --git a/node_modules/@smithy/types/dist-es/transform/client-method-transforms.js b/node_modules/@smithy/types/dist-es/transform/client-method-transforms.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@smithy/types/dist-es/transform/client-method-transforms.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@smithy/types/dist-es/transform/client-payload-blob-type-narrow.js b/node_modules/@smithy/types/dist-es/transform/client-payload-blob-type-narrow.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@smithy/types/dist-es/transform/client-payload-blob-type-narrow.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@smithy/types/dist-es/transform/exact.js b/node_modules/@smithy/types/dist-es/transform/exact.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@smithy/types/dist-es/transform/exact.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@smithy/types/dist-es/transform/no-undefined.js b/node_modules/@smithy/types/dist-es/transform/no-undefined.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@smithy/types/dist-es/transform/no-undefined.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@smithy/types/dist-es/transform/type-transform.js b/node_modules/@smithy/types/dist-es/transform/type-transform.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@smithy/types/dist-es/transform/type-transform.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@smithy/types/dist-es/uri.js b/node_modules/@smithy/types/dist-es/uri.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@smithy/types/dist-es/uri.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@smithy/types/dist-es/util.js b/node_modules/@smithy/types/dist-es/util.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@smithy/types/dist-es/util.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@smithy/types/dist-es/waiter.js b/node_modules/@smithy/types/dist-es/waiter.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@smithy/types/dist-es/waiter.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@smithy/types/dist-types/abort.d.ts b/node_modules/@smithy/types/dist-types/abort.d.ts deleted file mode 100644 index c9d7f039..00000000 --- a/node_modules/@smithy/types/dist-types/abort.d.ts +++ /dev/null @@ -1,49 +0,0 @@ -/** - * @public - */ -export interface AbortHandler { - (this: AbortSignal, ev: any): any; -} -/** - * @public - * - * Holders of an AbortSignal object may query if the associated operation has - * been aborted and register an onabort handler. - * - * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal - */ -export interface AbortSignal { - /** - * Whether the action represented by this signal has been cancelled. - */ - readonly aborted: boolean; - /** - * A function to be invoked when the action represented by this signal has - * been cancelled. - */ - onabort: AbortHandler | Function | null; -} -/** - * @public - * - * The AWS SDK uses a Controller/Signal model to allow for cooperative - * cancellation of asynchronous operations. When initiating such an operation, - * the caller can create an AbortController and then provide linked signal to - * subtasks. This allows a single source to communicate to multiple consumers - * that an action has been aborted without dictating how that cancellation - * should be handled. - * - * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortController - */ -export interface AbortController { - /** - * An object that reports whether the action associated with this - * `AbortController` has been cancelled. - */ - readonly signal: AbortSignal; - /** - * Declares the operation associated with this AbortController to have been - * cancelled. - */ - abort(): void; -} diff --git a/node_modules/@smithy/types/dist-types/auth/HttpApiKeyAuth.d.ts b/node_modules/@smithy/types/dist-types/auth/HttpApiKeyAuth.d.ts deleted file mode 100644 index 5d74340f..00000000 --- a/node_modules/@smithy/types/dist-types/auth/HttpApiKeyAuth.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * @internal - */ -export declare enum HttpApiKeyAuthLocation { - HEADER = "header", - QUERY = "query" -} diff --git a/node_modules/@smithy/types/dist-types/auth/HttpAuthScheme.d.ts b/node_modules/@smithy/types/dist-types/auth/HttpAuthScheme.d.ts deleted file mode 100644 index c5be5324..00000000 --- a/node_modules/@smithy/types/dist-types/auth/HttpAuthScheme.d.ts +++ /dev/null @@ -1,49 +0,0 @@ -import { Identity, IdentityProvider } from "../identity/identity"; -import { HandlerExecutionContext } from "../middleware"; -import { HttpSigner } from "./HttpSigner"; -import { IdentityProviderConfig } from "./IdentityProviderConfig"; -/** - * ID for {@link HttpAuthScheme} - * @internal - */ -export type HttpAuthSchemeId = string; -/** - * Interface that defines an HttpAuthScheme - * @internal - */ -export interface HttpAuthScheme { - /** - * ID for an HttpAuthScheme, typically the absolute shape ID of a Smithy auth trait. - */ - schemeId: HttpAuthSchemeId; - /** - * Gets the IdentityProvider corresponding to an HttpAuthScheme. - */ - identityProvider(config: IdentityProviderConfig): IdentityProvider | undefined; - /** - * HttpSigner corresponding to an HttpAuthScheme. - */ - signer: HttpSigner; -} -/** - * Interface that defines the identity and signing properties when selecting - * an HttpAuthScheme. - * @internal - */ -export interface HttpAuthOption { - schemeId: HttpAuthSchemeId; - identityProperties?: Record; - signingProperties?: Record; - propertiesExtractor?: (config: TConfig, context: TContext) => { - identityProperties?: Record; - signingProperties?: Record; - }; -} -/** - * @internal - */ -export interface SelectedHttpAuthScheme { - httpAuthOption: HttpAuthOption; - identity: Identity; - signer: HttpSigner; -} diff --git a/node_modules/@smithy/types/dist-types/auth/HttpAuthSchemeProvider.d.ts b/node_modules/@smithy/types/dist-types/auth/HttpAuthSchemeProvider.d.ts deleted file mode 100644 index 710dc8f3..00000000 --- a/node_modules/@smithy/types/dist-types/auth/HttpAuthSchemeProvider.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { HandlerExecutionContext } from "../middleware"; -import { HttpAuthOption } from "./HttpAuthScheme"; -/** - * @internal - */ -export interface HttpAuthSchemeParameters { - operation?: string; -} -/** - * @internal - */ -export interface HttpAuthSchemeProvider { - (authParameters: TParameters): HttpAuthOption[]; -} -/** - * @internal - */ -export interface HttpAuthSchemeParametersProvider { - (config: TConfig, context: TContext, input: TInput): Promise; -} diff --git a/node_modules/@smithy/types/dist-types/auth/HttpSigner.d.ts b/node_modules/@smithy/types/dist-types/auth/HttpSigner.d.ts deleted file mode 100644 index ea2969cb..00000000 --- a/node_modules/@smithy/types/dist-types/auth/HttpSigner.d.ts +++ /dev/null @@ -1,41 +0,0 @@ -import { HttpRequest, HttpResponse } from "../http"; -import { Identity } from "../identity/identity"; -/** - * @internal - */ -export interface ErrorHandler { - (signingProperties: Record): (error: E) => never; -} -/** - * @internal - */ -export interface SuccessHandler { - (httpResponse: HttpResponse | unknown, signingProperties: Record): void; -} -/** - * Interface to sign identity and signing properties. - * @internal - */ -export interface HttpSigner { - /** - * Signs an HttpRequest with an identity and signing properties. - * @param httpRequest request to sign - * @param identity identity to sing the request with - * @param signingProperties property bag for signing - * @returns signed request in a promise - */ - sign(httpRequest: HttpRequest, identity: Identity, signingProperties: Record): Promise; - /** - * Handler that executes after the {@link HttpSigner.sign} invocation and corresponding - * middleware throws an error. - * The error handler is expected to throw the error it receives, so the return type of the error handler is `never`. - * @internal - */ - errorHandler?: ErrorHandler; - /** - * Handler that executes after the {@link HttpSigner.sign} invocation and corresponding - * middleware succeeds. - * @internal - */ - successHandler?: SuccessHandler; -} diff --git a/node_modules/@smithy/types/dist-types/auth/IdentityProviderConfig.d.ts b/node_modules/@smithy/types/dist-types/auth/IdentityProviderConfig.d.ts deleted file mode 100644 index 663d2ec6..00000000 --- a/node_modules/@smithy/types/dist-types/auth/IdentityProviderConfig.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { Identity, IdentityProvider } from "../identity/identity"; -import { HttpAuthSchemeId } from "./HttpAuthScheme"; -/** - * Interface to get an IdentityProvider for a specified HttpAuthScheme - * @internal - */ -export interface IdentityProviderConfig { - /** - * Get the IdentityProvider for a specified HttpAuthScheme. - * @param schemeId schemeId of the HttpAuthScheme - * @returns IdentityProvider or undefined if HttpAuthScheme is not found - */ - getIdentityProvider(schemeId: HttpAuthSchemeId): IdentityProvider | undefined; -} diff --git a/node_modules/@smithy/types/dist-types/auth/auth.d.ts b/node_modules/@smithy/types/dist-types/auth/auth.d.ts deleted file mode 100644 index 2aaabbcb..00000000 --- a/node_modules/@smithy/types/dist-types/auth/auth.d.ts +++ /dev/null @@ -1,57 +0,0 @@ -/** - * @internal - * - * Authentication schemes represent a way that the service will authenticate the customer’s identity. - */ -export interface AuthScheme { - /** - * @example "sigv4a" or "sigv4" - */ - name: "sigv4" | "sigv4a" | string; - /** - * @example "s3" - */ - signingName: string; - /** - * @example "us-east-1" - */ - signingRegion: string; - /** - * @example ["*"] - * @example ["us-west-2", "us-east-1"] - */ - signingRegionSet?: string[]; - /** - * @deprecated this field was renamed to signingRegion. - */ - signingScope?: never; - properties: Record; -} -/** - * @internal - * @deprecated - */ -export interface HttpAuthDefinition { - /** - * Defines the location of where the Auth is serialized. - */ - in: HttpAuthLocation; - /** - * Defines the name of the HTTP header or query string parameter - * that contains the Auth. - */ - name: string; - /** - * Defines the security scheme to use on the `Authorization` header value. - * This can only be set if the "in" property is set to {@link HttpAuthLocation.HEADER}. - */ - scheme?: string; -} -/** - * @internal - * @deprecated - */ -export declare enum HttpAuthLocation { - HEADER = "header", - QUERY = "query" -} diff --git a/node_modules/@smithy/types/dist-types/auth/index.d.ts b/node_modules/@smithy/types/dist-types/auth/index.d.ts deleted file mode 100644 index 7436030c..00000000 --- a/node_modules/@smithy/types/dist-types/auth/index.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export * from "./auth"; -export * from "./HttpApiKeyAuth"; -export * from "./HttpAuthScheme"; -export * from "./HttpAuthSchemeProvider"; -export * from "./HttpSigner"; -export * from "./IdentityProviderConfig"; diff --git a/node_modules/@smithy/types/dist-types/blob/blob-payload-input-types.d.ts b/node_modules/@smithy/types/dist-types/blob/blob-payload-input-types.d.ts deleted file mode 100644 index 8d8fba8c..00000000 --- a/node_modules/@smithy/types/dist-types/blob/blob-payload-input-types.d.ts +++ /dev/null @@ -1,41 +0,0 @@ -/// -/// -import { Readable } from "stream"; -import type { BlobOptionalType, ReadableStreamOptionalType } from "../externals-check/browser-externals-check"; -/** - * @public - * - * A union of types that can be used as inputs for the service model - * "blob" type when it represents the request's entire payload or body. - * - * For example, in Lambda::invoke, the payload is modeled as a blob type - * and this union applies to it. - * In contrast, in Lambda::createFunction the Zip file option is a blob type, - * but is not the (entire) payload and this union does not apply. - * - * Note: not all types are signable by the standard SignatureV4 signer when - * used as the request body. For example, in Node.js a Readable stream - * is not signable by the default signer. - * They are included in the union because it may work in some cases, - * but the expected types are primarily string and Uint8Array. - * - * Additional details may be found in the internal - * function "getPayloadHash" in the SignatureV4 module. - */ -export type BlobPayloadInputTypes = string | ArrayBuffer | ArrayBufferView | Uint8Array | NodeJsRuntimeBlobTypes | BrowserRuntimeBlobTypes; -/** - * @public - * - * Additional blob types for the Node.js environment. - */ -export type NodeJsRuntimeBlobTypes = Readable | Buffer; -/** - * @public - * - * Additional blob types for the browser environment. - */ -export type BrowserRuntimeBlobTypes = BlobOptionalType | ReadableStreamOptionalType; -/** - * @deprecated renamed to BlobPayloadInputTypes. - */ -export type BlobTypes = BlobPayloadInputTypes; diff --git a/node_modules/@smithy/types/dist-types/checksum.d.ts b/node_modules/@smithy/types/dist-types/checksum.d.ts deleted file mode 100644 index 19060090..00000000 --- a/node_modules/@smithy/types/dist-types/checksum.d.ts +++ /dev/null @@ -1,63 +0,0 @@ -import { SourceData } from "./crypto"; -/** - * @public - * - * An object that provides a checksum of data provided in chunks to `update`. - * The checksum may be performed incrementally as chunks are received or all - * at once when the checksum is finalized, depending on the underlying - * implementation. - * - * It's recommended to compute checksum incrementally to avoid reading the - * entire payload in memory. - * - * A class that implements this interface may accept an optional secret key in its - * constructor while computing checksum value, when using HMAC. If provided, - * this secret key would be used when computing checksum. - */ -export interface Checksum { - /** - * Constant length of the digest created by the algorithm in bytes. - */ - digestLength?: number; - /** - * Creates a new checksum object that contains a deep copy of the internal - * state of the current `Checksum` object. - */ - copy?(): Checksum; - /** - * Returns the digest of all of the data passed. - */ - digest(): Promise; - /** - * Allows marking a checksum for checksums that support the ability - * to mark and reset. - * - * @param readLimit - The maximum limit of bytes that can be read - * before the mark position becomes invalid. - */ - mark?(readLimit: number): void; - /** - * Resets the checksum to its initial value. - */ - reset(): void; - /** - * Adds a chunk of data for which checksum needs to be computed. - * This can be called many times with new data as it is streamed. - * - * Implementations may override this method which passes second param - * which makes Checksum object stateless. - * - * @param chunk - The buffer to update checksum with. - */ - update(chunk: Uint8Array): void; -} -/** - * @public - * - * A constructor for a Checksum that may be used to calculate an HMAC. Implementing - * classes should not directly hold the provided key in memory beyond the - * lexical scope of the constructor. - */ -export interface ChecksumConstructor { - new (secret?: SourceData): Checksum; -} diff --git a/node_modules/@smithy/types/dist-types/client.d.ts b/node_modules/@smithy/types/dist-types/client.d.ts deleted file mode 100644 index 9948de5e..00000000 --- a/node_modules/@smithy/types/dist-types/client.d.ts +++ /dev/null @@ -1,44 +0,0 @@ -import { Command } from "./command"; -import { MiddlewareStack } from "./middleware"; -import { MetadataBearer } from "./response"; -import { Exact } from "./util"; -/** - * @public - * - * A type which checks if the client configuration is optional. - * If all entries of the client configuration are optional, it allows client creation without passing any config. - */ -export type CheckOptionalClientConfig = Exact, T> extends true ? [] | [T] : [T]; -/** - * @public - * - * function definition for different overrides of client's 'send' function. - */ -export interface InvokeFunction { - (command: Command, options?: any): Promise; - (command: Command, cb: (err: any, data?: OutputType) => void): void; - (command: Command, options: any, cb: (err: any, data?: OutputType) => void): void; - (command: Command, options?: any, cb?: (err: any, data?: OutputType) => void): Promise | void; -} -/** - * @public - * - * Signature that appears on aggregated clients' methods. - */ -export interface InvokeMethod { - (input: InputType, options?: any): Promise; - (input: InputType, cb: (err: any, data?: OutputType) => void): void; - (input: InputType, options: any, cb: (err: any, data?: OutputType) => void): void; - (input: InputType, options?: any, cb?: (err: any, data?: OutputType) => void): Promise | void; -} -/** - * A general interface for service clients, idempotent to browser or node clients - * This type corresponds to SmithyClient(https://github.com/aws/aws-sdk-js-v3/blob/main/packages/smithy-client/src/client.ts). - * It's provided for using without importing the SmithyClient class. - */ -export interface Client { - readonly config: ResolvedClientConfiguration; - middlewareStack: MiddlewareStack; - send: InvokeFunction; - destroy: () => void; -} diff --git a/node_modules/@smithy/types/dist-types/command.d.ts b/node_modules/@smithy/types/dist-types/command.d.ts deleted file mode 100644 index ee07d2ff..00000000 --- a/node_modules/@smithy/types/dist-types/command.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { Handler, MiddlewareStack } from "./middleware"; -import { MetadataBearer } from "./response"; -/** - * @public - */ -export interface Command { - readonly input: InputType; - readonly middlewareStack: MiddlewareStack; - resolveMiddleware(stack: MiddlewareStack, configuration: ResolvedConfiguration, options: any): Handler; -} diff --git a/node_modules/@smithy/types/dist-types/connection/config.d.ts b/node_modules/@smithy/types/dist-types/connection/config.d.ts deleted file mode 100644 index dec31d4d..00000000 --- a/node_modules/@smithy/types/dist-types/connection/config.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -export interface ConnectConfiguration { - /** - * The maximum time in milliseconds that the connection phase of a request - * may take before the connection attempt is abandoned. - */ - requestTimeout?: number; -} diff --git a/node_modules/@smithy/types/dist-types/connection/index.d.ts b/node_modules/@smithy/types/dist-types/connection/index.d.ts deleted file mode 100644 index c6c3ea80..00000000 --- a/node_modules/@smithy/types/dist-types/connection/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * from "./config"; -export * from "./manager"; -export * from "./pool"; diff --git a/node_modules/@smithy/types/dist-types/connection/manager.d.ts b/node_modules/@smithy/types/dist-types/connection/manager.d.ts deleted file mode 100644 index a9f378d4..00000000 --- a/node_modules/@smithy/types/dist-types/connection/manager.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { RequestContext } from "../transfer"; -import { ConnectConfiguration } from "./config"; -export interface ConnectionManagerConfiguration { - /** - * Maximum number of allowed concurrent requests per connection. - */ - maxConcurrency?: number; - /** - * Disables concurrent requests per connection. - */ - disableConcurrency?: boolean; -} -export interface ConnectionManager { - /** - * Retrieves a connection from the connection pool if available, - * otherwise establish a new connection - */ - lease(requestContext: RequestContext, connectionConfiguration: ConnectConfiguration): T; - /** - * Releases the connection back to the pool making it potentially - * re-usable by other requests. - */ - release(requestContext: RequestContext, connection: T): void; - /** - * Destroys the connection manager. All connections will be closed. - */ - destroy(): void; -} diff --git a/node_modules/@smithy/types/dist-types/connection/pool.d.ts b/node_modules/@smithy/types/dist-types/connection/pool.d.ts deleted file mode 100644 index 00d6434c..00000000 --- a/node_modules/@smithy/types/dist-types/connection/pool.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -export interface ConnectionPool { - /** - * Retrieve the first connection in the pool - */ - poll(): T | void; - /** - * Release the connection back to the pool making it potentially - * re-usable by other requests. - */ - offerLast(connection: T): void; - /** - * Removes the connection from the pool, and destroys it. - */ - destroy(connection: T): void; - /** - * Implements the iterable protocol and allows arrays to be consumed - * by most syntaxes expecting iterables, such as the spread syntax - * and for...of loops - */ - [Symbol.iterator](): Iterator; -} -export interface CacheKey { - destination: string; -} diff --git a/node_modules/@smithy/types/dist-types/crypto.d.ts b/node_modules/@smithy/types/dist-types/crypto.d.ts deleted file mode 100644 index 874320e3..00000000 --- a/node_modules/@smithy/types/dist-types/crypto.d.ts +++ /dev/null @@ -1,60 +0,0 @@ -/** - * @public - */ -export type SourceData = string | ArrayBuffer | ArrayBufferView; -/** - * @public - * - * An object that provides a hash of data provided in chunks to `update`. The - * hash may be performed incrementally as chunks are received or all at once - * when the hash is finalized, depending on the underlying implementation. - * - * @deprecated use {@link Checksum} - */ -export interface Hash { - /** - * Adds a chunk of data to the hash. If a buffer is provided, the `encoding` - * argument will be ignored. If a string is provided without a specified - * encoding, implementations must assume UTF-8 encoding. - * - * Not all encodings are supported on all platforms, though all must support - * UTF-8. - */ - update(toHash: SourceData, encoding?: "utf8" | "ascii" | "latin1"): void; - /** - * Finalizes the hash and provides a promise that will be fulfilled with the - * raw bytes of the calculated hash. - */ - digest(): Promise; -} -/** - * @public - * - * A constructor for a hash that may be used to calculate an HMAC. Implementing - * classes should not directly hold the provided key in memory beyond the - * lexical scope of the constructor. - * - * @deprecated use {@link ChecksumConstructor} - */ -export interface HashConstructor { - new (secret?: SourceData): Hash; -} -/** - * @public - * - * A function that calculates the hash of a data stream. Determining the hash - * will consume the stream, so only replayable streams should be provided to an - * implementation of this interface. - */ -export interface StreamHasher { - (hashCtor: HashConstructor, stream: StreamType): Promise; -} -/** - * @public - * - * A function that returns a promise fulfilled with bytes from a - * cryptographically secure pseudorandom number generator. - */ -export interface randomValues { - (byteLength: number): Promise; -} diff --git a/node_modules/@smithy/types/dist-types/downlevel-ts3.4/transform/type-transform.d.ts b/node_modules/@smithy/types/dist-types/downlevel-ts3.4/transform/type-transform.d.ts deleted file mode 100644 index 312ae6e3..00000000 --- a/node_modules/@smithy/types/dist-types/downlevel-ts3.4/transform/type-transform.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -/** - * @public - * - * Transforms any members of the object T having type FromType - * to ToType. This applies only to exact type matches. - * - * This is for the case where FromType is a union and only those fields - * matching the same union should be transformed. - */ -export type Transform = RecursiveTransformExact; -/** - * @internal - * - * Returns ToType if T matches exactly with FromType. - */ -type TransformExact = [T] extends [FromType] ? ([FromType] extends [T] ? ToType : T) : T; -/** - * @internal - * - * Applies TransformExact to members of an object recursively. - */ -type RecursiveTransformExact = T extends Function ? T : T extends object ? { - [key in keyof T]: [T[key]] extends [FromType] ? [FromType] extends [T[key]] ? ToType : RecursiveTransformExact : RecursiveTransformExact; -} : TransformExact; -export {}; diff --git a/node_modules/@smithy/types/dist-types/encode.d.ts b/node_modules/@smithy/types/dist-types/encode.d.ts deleted file mode 100644 index 2efc3aca..00000000 --- a/node_modules/@smithy/types/dist-types/encode.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { Message } from "./eventStream"; -export interface MessageEncoder { - encode(message: Message): Uint8Array; -} -export interface MessageDecoder { - decode(message: ArrayBufferView): Message; - feed(message: ArrayBufferView): void; - endOfStream(): void; - getMessage(): AvailableMessage; - getAvailableMessages(): AvailableMessages; -} -export interface AvailableMessage { - getMessage(): Message | undefined; - isEndOfStream(): boolean; -} -export interface AvailableMessages { - getMessages(): Message[]; - isEndOfStream(): boolean; -} diff --git a/node_modules/@smithy/types/dist-types/endpoint.d.ts b/node_modules/@smithy/types/dist-types/endpoint.d.ts deleted file mode 100644 index 3f13b652..00000000 --- a/node_modules/@smithy/types/dist-types/endpoint.d.ts +++ /dev/null @@ -1,77 +0,0 @@ -import { AuthScheme } from "./auth/auth"; -/** - * @public - */ -export interface EndpointPartition { - name: string; - dnsSuffix: string; - dualStackDnsSuffix: string; - supportsFIPS: boolean; - supportsDualStack: boolean; -} -/** - * @public - */ -export interface EndpointARN { - partition: string; - service: string; - region: string; - accountId: string; - resourceId: Array; -} -/** - * @public - */ -export declare enum EndpointURLScheme { - HTTP = "http", - HTTPS = "https" -} -/** - * @public - */ -export interface EndpointURL { - /** - * The URL scheme such as http or https. - */ - scheme: EndpointURLScheme; - /** - * The authority is the host and optional port component of the URL. - */ - authority: string; - /** - * The parsed path segment of the URL. - * This value is as-is as provided by the user. - */ - path: string; - /** - * The parsed path segment of the URL. - * This value is guranteed to start and end with a "/". - */ - normalizedPath: string; - /** - * A boolean indicating whether the authority is an IP address. - */ - isIp: boolean; -} -/** - * @public - */ -export type EndpointObjectProperty = string | boolean | { - [key: string]: EndpointObjectProperty; -} | EndpointObjectProperty[]; -/** - * @public - */ -export interface EndpointV2 { - url: URL; - properties?: { - authSchemes?: AuthScheme[]; - } & Record; - headers?: Record; -} -/** - * @public - */ -export type EndpointParameters = { - [name: string]: undefined | string | boolean; -}; diff --git a/node_modules/@smithy/types/dist-types/endpoints/EndpointRuleObject.d.ts b/node_modules/@smithy/types/dist-types/endpoints/EndpointRuleObject.d.ts deleted file mode 100644 index c743b7f2..00000000 --- a/node_modules/@smithy/types/dist-types/endpoints/EndpointRuleObject.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { EndpointObjectProperty } from "../endpoint"; -import { ConditionObject, Expression } from "./shared"; -export type EndpointObjectProperties = Record; -export type EndpointObjectHeaders = Record; -export type EndpointObject = { - url: Expression; - properties?: EndpointObjectProperties; - headers?: EndpointObjectHeaders; -}; -export type EndpointRuleObject = { - type: "endpoint"; - conditions?: ConditionObject[]; - endpoint: EndpointObject; - documentation?: string; -}; diff --git a/node_modules/@smithy/types/dist-types/endpoints/ErrorRuleObject.d.ts b/node_modules/@smithy/types/dist-types/endpoints/ErrorRuleObject.d.ts deleted file mode 100644 index c19697c0..00000000 --- a/node_modules/@smithy/types/dist-types/endpoints/ErrorRuleObject.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { ConditionObject, Expression } from "./shared"; -export type ErrorRuleObject = { - type: "error"; - conditions?: ConditionObject[]; - error: Expression; - documentation?: string; -}; diff --git a/node_modules/@smithy/types/dist-types/endpoints/RuleSetObject.d.ts b/node_modules/@smithy/types/dist-types/endpoints/RuleSetObject.d.ts deleted file mode 100644 index 1a5d019c..00000000 --- a/node_modules/@smithy/types/dist-types/endpoints/RuleSetObject.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { RuleSetRules } from "./TreeRuleObject"; -export type DeprecatedObject = { - message?: string; - since?: string; -}; -export type ParameterObject = { - type: "String" | "string" | "Boolean" | "boolean"; - default?: string | boolean; - required?: boolean; - documentation?: string; - builtIn?: string; - deprecated?: DeprecatedObject; -}; -export type RuleSetObject = { - version: string; - serviceId?: string; - parameters: Record; - rules: RuleSetRules; -}; diff --git a/node_modules/@smithy/types/dist-types/endpoints/TreeRuleObject.d.ts b/node_modules/@smithy/types/dist-types/endpoints/TreeRuleObject.d.ts deleted file mode 100644 index 8c7e68e0..00000000 --- a/node_modules/@smithy/types/dist-types/endpoints/TreeRuleObject.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { EndpointRuleObject } from "./EndpointRuleObject"; -import { ErrorRuleObject } from "./ErrorRuleObject"; -import { ConditionObject } from "./shared"; -export type RuleSetRules = Array; -export type TreeRuleObject = { - type: "tree"; - conditions?: ConditionObject[]; - rules: RuleSetRules; - documentation?: string; -}; diff --git a/node_modules/@smithy/types/dist-types/endpoints/index.d.ts b/node_modules/@smithy/types/dist-types/endpoints/index.d.ts deleted file mode 100644 index 64d85cf8..00000000 --- a/node_modules/@smithy/types/dist-types/endpoints/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export * from "./EndpointRuleObject"; -export * from "./ErrorRuleObject"; -export * from "./RuleSetObject"; -export * from "./shared"; -export * from "./TreeRuleObject"; diff --git a/node_modules/@smithy/types/dist-types/endpoints/shared.d.ts b/node_modules/@smithy/types/dist-types/endpoints/shared.d.ts deleted file mode 100644 index ef31eb8e..00000000 --- a/node_modules/@smithy/types/dist-types/endpoints/shared.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { Logger } from "../logger"; -export type ReferenceObject = { - ref: string; -}; -export type FunctionObject = { - fn: string; - argv: FunctionArgv; -}; -export type FunctionArgv = Array; -export type FunctionReturn = string | boolean | number | { - [key: string]: FunctionReturn; -}; -export type ConditionObject = FunctionObject & { - assign?: string; -}; -export type Expression = string | ReferenceObject | FunctionObject; -export type EndpointParams = Record; -export type EndpointResolverOptions = { - endpointParams: EndpointParams; - logger?: Logger; -}; -export type ReferenceRecord = Record; -export type EvaluateOptions = EndpointResolverOptions & { - referenceRecord: ReferenceRecord; -}; diff --git a/node_modules/@smithy/types/dist-types/eventStream.d.ts b/node_modules/@smithy/types/dist-types/eventStream.d.ts deleted file mode 100644 index d9598ffe..00000000 --- a/node_modules/@smithy/types/dist-types/eventStream.d.ts +++ /dev/null @@ -1,108 +0,0 @@ -import { HttpRequest } from "./http"; -import { FinalizeHandler, FinalizeHandlerArguments, FinalizeHandlerOutput, HandlerExecutionContext } from "./middleware"; -import { MetadataBearer } from "./response"; -/** - * @public - * - * An event stream message. The headers and body properties will always be - * defined, with empty headers represented as an object with no keys and an - * empty body represented as a zero-length Uint8Array. - */ -export interface Message { - headers: MessageHeaders; - body: Uint8Array; -} -/** - * @public - */ -export type MessageHeaders = Record; -type HeaderValue = { - type: K; - value: V; -}; -export type BooleanHeaderValue = HeaderValue<"boolean", boolean>; -export type ByteHeaderValue = HeaderValue<"byte", number>; -export type ShortHeaderValue = HeaderValue<"short", number>; -export type IntegerHeaderValue = HeaderValue<"integer", number>; -export type LongHeaderValue = HeaderValue<"long", Int64>; -export type BinaryHeaderValue = HeaderValue<"binary", Uint8Array>; -export type StringHeaderValue = HeaderValue<"string", string>; -export type TimestampHeaderValue = HeaderValue<"timestamp", Date>; -export type UuidHeaderValue = HeaderValue<"uuid", string>; -/** - * @public - */ -export type MessageHeaderValue = BooleanHeaderValue | ByteHeaderValue | ShortHeaderValue | IntegerHeaderValue | LongHeaderValue | BinaryHeaderValue | StringHeaderValue | TimestampHeaderValue | UuidHeaderValue; -/** - * @public - */ -export interface Int64 { - readonly bytes: Uint8Array; - valueOf: () => number; - toString: () => string; -} -/** - * @public - * - * Util functions for serializing or deserializing event stream - */ -export interface EventStreamSerdeContext { - eventStreamMarshaller: EventStreamMarshaller; -} -/** - * @public - * - * A function which deserializes binary event stream message into modeled shape. - */ -export interface EventStreamMarshallerDeserFn { - (body: StreamType, deserializer: (input: Record) => Promise): AsyncIterable; -} -/** - * @public - * - * A function that serializes modeled shape into binary stream message. - */ -export interface EventStreamMarshallerSerFn { - (input: AsyncIterable, serializer: (event: T) => Message): StreamType; -} -/** - * @public - * - * An interface which provides functions for serializing and deserializing binary event stream - * to/from corresponsing modeled shape. - */ -export interface EventStreamMarshaller { - deserialize: EventStreamMarshallerDeserFn; - serialize: EventStreamMarshallerSerFn; -} -/** - * @public - */ -export interface EventStreamRequestSigner { - sign(request: HttpRequest): Promise; -} -/** - * @public - */ -export interface EventStreamPayloadHandler { - handle: (next: FinalizeHandler, args: FinalizeHandlerArguments, context?: HandlerExecutionContext) => Promise>; -} -/** - * @public - */ -export interface EventStreamPayloadHandlerProvider { - (options: any): EventStreamPayloadHandler; -} -/** - * @public - */ -export interface EventStreamSerdeProvider { - (options: any): EventStreamMarshaller; -} -/** - * @public - */ -export interface EventStreamSignerProvider { - (options: any): EventStreamRequestSigner; -} -export {}; diff --git a/node_modules/@smithy/types/dist-types/extensions/checksum.d.ts b/node_modules/@smithy/types/dist-types/extensions/checksum.d.ts deleted file mode 100644 index 38217e2a..00000000 --- a/node_modules/@smithy/types/dist-types/extensions/checksum.d.ts +++ /dev/null @@ -1,55 +0,0 @@ -import { ChecksumConstructor } from "../checksum"; -import { HashConstructor } from "../crypto"; -/** - * @internal - */ -export declare enum AlgorithmId { - MD5 = "md5", - CRC32 = "crc32", - CRC32C = "crc32c", - SHA1 = "sha1", - SHA256 = "sha256" -} -/** - * @internal - */ -export interface ChecksumAlgorithm { - algorithmId(): AlgorithmId; - checksumConstructor(): ChecksumConstructor | HashConstructor; -} -/** - * @deprecated unused. - */ -type ChecksumConfigurationLegacy = { - [other in string | number]: any; -}; -/** - * @internal - */ -export interface ChecksumConfiguration extends ChecksumConfigurationLegacy { - addChecksumAlgorithm(algo: ChecksumAlgorithm): void; - checksumAlgorithms(): ChecksumAlgorithm[]; -} -/** - * @deprecated will be removed for implicit type. - */ -type GetChecksumConfigurationType = (runtimeConfig: Partial<{ - sha256: ChecksumConstructor | HashConstructor; - md5: ChecksumConstructor | HashConstructor; -}>) => ChecksumConfiguration; -/** - * @internal - * @deprecated will be moved to smithy-client. - */ -export declare const getChecksumConfiguration: GetChecksumConfigurationType; -/** - * @deprecated will be removed for implicit type. - */ -type ResolveChecksumRuntimeConfigType = (clientConfig: ChecksumConfiguration) => any; -/** - * @internal - * - * @deprecated will be moved to smithy-client. - */ -export declare const resolveChecksumRuntimeConfig: ResolveChecksumRuntimeConfigType; -export {}; diff --git a/node_modules/@smithy/types/dist-types/extensions/defaultClientConfiguration.d.ts b/node_modules/@smithy/types/dist-types/extensions/defaultClientConfiguration.d.ts deleted file mode 100644 index 12eb9248..00000000 --- a/node_modules/@smithy/types/dist-types/extensions/defaultClientConfiguration.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { ChecksumConfiguration } from "./checksum"; -/** - * @deprecated will be replaced by DefaultExtensionConfiguration. - * @internal - * - * Default client configuration consisting various configurations for modifying a service client - */ -export interface DefaultClientConfiguration extends ChecksumConfiguration { -} -/** - * @deprecated will be removed for implicit type. - */ -type GetDefaultConfigurationType = (runtimeConfig: any) => DefaultClientConfiguration; -/** - * @deprecated moving to @smithy/smithy-client. - * @internal - * - * Helper function to resolve default client configuration from runtime config - * - */ -export declare const getDefaultClientConfiguration: GetDefaultConfigurationType; -/** - * @deprecated will be removed for implicit type. - */ -type ResolveDefaultRuntimeConfigType = (clientConfig: DefaultClientConfiguration) => any; -/** - * @deprecated moving to @smithy/smithy-client. - * @internal - * - * Helper function to resolve runtime config from default client configuration - */ -export declare const resolveDefaultRuntimeConfig: ResolveDefaultRuntimeConfigType; -export {}; diff --git a/node_modules/@smithy/types/dist-types/extensions/defaultExtensionConfiguration.d.ts b/node_modules/@smithy/types/dist-types/extensions/defaultExtensionConfiguration.d.ts deleted file mode 100644 index 0e6fa0d3..00000000 --- a/node_modules/@smithy/types/dist-types/extensions/defaultExtensionConfiguration.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { ChecksumConfiguration } from "./checksum"; -import { RetryStrategyConfiguration } from "./retry"; -/** - * @internal - * - * Default extension configuration consisting various configurations for modifying a service client - */ -export interface DefaultExtensionConfiguration extends ChecksumConfiguration, RetryStrategyConfiguration { -} diff --git a/node_modules/@smithy/types/dist-types/extensions/index.d.ts b/node_modules/@smithy/types/dist-types/extensions/index.d.ts deleted file mode 100644 index cce65a1c..00000000 --- a/node_modules/@smithy/types/dist-types/extensions/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export * from "./defaultClientConfiguration"; -export * from "./defaultExtensionConfiguration"; -export { AlgorithmId, ChecksumAlgorithm, ChecksumConfiguration } from "./checksum"; -export { RetryStrategyConfiguration } from "./retry"; diff --git a/node_modules/@smithy/types/dist-types/extensions/retry.d.ts b/node_modules/@smithy/types/dist-types/extensions/retry.d.ts deleted file mode 100644 index 8b91f1c0..00000000 --- a/node_modules/@smithy/types/dist-types/extensions/retry.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { RetryStrategyV2 } from "../retry"; -import { Provider, RetryStrategy } from "../util"; -/** - * A configuration interface with methods called by runtime extension - * @internal - */ -export interface RetryStrategyConfiguration { - /** - * Set retry strategy used for all http requests - * @param retryStrategy - */ - setRetryStrategy(retryStrategy: Provider): void; - /** - * Get retry strategy used for all http requests - * @param retryStrategy - */ - retryStrategy(): Provider; -} diff --git a/node_modules/@smithy/types/dist-types/externals-check/browser-externals-check.d.ts b/node_modules/@smithy/types/dist-types/externals-check/browser-externals-check.d.ts deleted file mode 100644 index 0de7f8fa..00000000 --- a/node_modules/@smithy/types/dist-types/externals-check/browser-externals-check.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -import type { Exact } from "../transform/exact"; -/** - * @public - * - * A checked type that resolves to Blob if it is defined as more than a stub, otherwise - * resolves to 'never' so as not to widen the type of unions containing Blob - * excessively. - */ -export type BlobOptionalType = BlobDefined extends true ? Blob : Unavailable; -/** - * @public - * - * A checked type that resolves to ReadableStream if it is defined as more than a stub, otherwise - * resolves to 'never' so as not to widen the type of unions containing ReadableStream - * excessively. - */ -export type ReadableStreamOptionalType = ReadableStreamDefined extends true ? ReadableStream : Unavailable; -/** - * @public - * - * Indicates a type is unavailable if it resolves to this. - */ -export type Unavailable = never; -/** - * @internal - * - * Whether the global types define more than a stub for ReadableStream. - */ -export type ReadableStreamDefined = Exact extends true ? false : true; -/** - * @internal - * - * Whether the global types define more than a stub for Blob. - */ -export type BlobDefined = Exact extends true ? false : true; diff --git a/node_modules/@smithy/types/dist-types/http.d.ts b/node_modules/@smithy/types/dist-types/http.d.ts deleted file mode 100644 index 9e3acf5e..00000000 --- a/node_modules/@smithy/types/dist-types/http.d.ts +++ /dev/null @@ -1,105 +0,0 @@ -import { AbortSignal } from "./abort"; -import { URI } from "./uri"; -/** - * @public - * - * @deprecated use {@link EndpointV2} from `@smithy/types`. - */ -export interface Endpoint { - protocol: string; - hostname: string; - port?: number; - path: string; - query?: QueryParameterBag; -} -/** - * @public - * - * Interface an HTTP request class. Contains - * addressing information in addition to standard message properties. - */ -export interface HttpRequest extends HttpMessage, URI { - method: string; -} -/** - * @public - * - * Represents an HTTP message as received in reply to a request. Contains a - * numeric status code in addition to standard message properties. - */ -export interface HttpResponse extends HttpMessage { - statusCode: number; -} -/** - * @public - * - * Represents an HTTP message with headers and an optional static or streaming - * body. bode: ArrayBuffer | ArrayBufferView | string | Uint8Array | Readable | ReadableStream; - */ -export interface HttpMessage { - headers: HeaderBag; - body?: any; -} -/** - * @public - * - * A mapping of query parameter names to strings or arrays of strings, with the - * second being used when a parameter contains a list of values. Value can be set - * to null when query is not in key-value pairs shape - */ -export type QueryParameterBag = Record | null>; -export type FieldOptions = { - name: string; - kind?: FieldPosition; - values?: string[]; -}; -export declare enum FieldPosition { - HEADER = 0, - TRAILER = 1 -} -/** - * @public - * - * A mapping of header names to string values. Multiple values for the same - * header should be represented as a single string with values separated by - * `, `. - * - * Keys should be considered case insensitive, even if this is not enforced by a - * particular implementation. For example, given the following HeaderBag, where - * keys differ only in case: - * - * ```json - * { - * 'x-request-date': '2000-01-01T00:00:00Z', - * 'X-Request-Date': '2001-01-01T00:00:00Z' - * } - * ``` - * - * The SDK may at any point during processing remove one of the object - * properties in favor of the other. The headers may or may not be combined, and - * the SDK will not deterministically select which header candidate to use. - */ -export type HeaderBag = Record; -/** - * @public - * - * Represents an HTTP message with headers and an optional static or streaming - * body. bode: ArrayBuffer | ArrayBufferView | string | Uint8Array | Readable | ReadableStream; - */ -export interface HttpMessage { - headers: HeaderBag; - body?: any; -} -/** - * @public - * - * Represents the options that may be passed to an Http Handler. - */ -export interface HttpHandlerOptions { - abortSignal?: AbortSignal; - /** - * The maximum time in milliseconds that the connection phase of a request - * may take before the connection attempt is abandoned. - */ - requestTimeout?: number; -} diff --git a/node_modules/@smithy/types/dist-types/identity/apiKeyIdentity.d.ts b/node_modules/@smithy/types/dist-types/identity/apiKeyIdentity.d.ts deleted file mode 100644 index 27750d4e..00000000 --- a/node_modules/@smithy/types/dist-types/identity/apiKeyIdentity.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { Identity, IdentityProvider } from "../identity/identity"; -/** - * @public - */ -export interface ApiKeyIdentity extends Identity { - /** - * The literal API Key - */ - readonly apiKey: string; -} -/** - * @public - */ -export type ApiKeyIdentityProvider = IdentityProvider; diff --git a/node_modules/@smithy/types/dist-types/identity/awsCredentialIdentity.d.ts b/node_modules/@smithy/types/dist-types/identity/awsCredentialIdentity.d.ts deleted file mode 100644 index 0c0eff0c..00000000 --- a/node_modules/@smithy/types/dist-types/identity/awsCredentialIdentity.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { Identity, IdentityProvider } from "./identity"; -/** - * @public - */ -export interface AwsCredentialIdentity extends Identity { - /** - * AWS access key ID - */ - readonly accessKeyId: string; - /** - * AWS secret access key - */ - readonly secretAccessKey: string; - /** - * A security or session token to use with these credentials. Usually - * present for temporary credentials. - */ - readonly sessionToken?: string; -} -/** - * @public - */ -export type AwsCredentialIdentityProvider = IdentityProvider; diff --git a/node_modules/@smithy/types/dist-types/identity/identity.d.ts b/node_modules/@smithy/types/dist-types/identity/identity.d.ts deleted file mode 100644 index c6fd0d1d..00000000 --- a/node_modules/@smithy/types/dist-types/identity/identity.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -/** - * @public - */ -export interface Identity { - /** - * A `Date` when the identity or credential will no longer be accepted. - */ - readonly expiration?: Date; -} -/** - * @public - */ -export interface IdentityProvider { - (identityProperties?: Record): Promise; -} diff --git a/node_modules/@smithy/types/dist-types/identity/index.d.ts b/node_modules/@smithy/types/dist-types/identity/index.d.ts deleted file mode 100644 index 33603203..00000000 --- a/node_modules/@smithy/types/dist-types/identity/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export * from "./apiKeyIdentity"; -export * from "./awsCredentialIdentity"; -export * from "./identity"; -export * from "./tokenIdentity"; diff --git a/node_modules/@smithy/types/dist-types/identity/tokenIdentity.d.ts b/node_modules/@smithy/types/dist-types/identity/tokenIdentity.d.ts deleted file mode 100644 index 84a74ffa..00000000 --- a/node_modules/@smithy/types/dist-types/identity/tokenIdentity.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { Identity, IdentityProvider } from "../identity/identity"; -/** - * @internal - */ -export interface TokenIdentity extends Identity { - /** - * The literal token string - */ - readonly token: string; -} -/** - * @internal - */ -export type TokenIdentityProvider = IdentityProvider; diff --git a/node_modules/@smithy/types/dist-types/index.d.ts b/node_modules/@smithy/types/dist-types/index.d.ts deleted file mode 100644 index 70939946..00000000 --- a/node_modules/@smithy/types/dist-types/index.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -export * from "./abort"; -export * from "./auth"; -export * from "./blob/blob-payload-input-types"; -export * from "./checksum"; -export * from "./client"; -export * from "./command"; -export * from "./connection"; -export * from "./crypto"; -export * from "./encode"; -export * from "./endpoint"; -export * from "./endpoints"; -export * from "./eventStream"; -export * from "./extensions"; -export * from "./http"; -export * from "./identity"; -export * from "./logger"; -export * from "./middleware"; -export * from "./pagination"; -export * from "./profile"; -export * from "./response"; -export * from "./retry"; -export * from "./serde"; -export * from "./shapes"; -export * from "./signature"; -export * from "./stream"; -export * from "./streaming-payload/streaming-blob-common-types"; -export * from "./streaming-payload/streaming-blob-payload-input-types"; -export * from "./streaming-payload/streaming-blob-payload-output-types"; -export * from "./transfer"; -export * from "./transform/client-payload-blob-type-narrow"; -export * from "./transform/no-undefined"; -export * from "./transform/type-transform"; -export * from "./uri"; -export * from "./util"; -export * from "./waiter"; diff --git a/node_modules/@smithy/types/dist-types/logger.d.ts b/node_modules/@smithy/types/dist-types/logger.d.ts deleted file mode 100644 index f66a664c..00000000 --- a/node_modules/@smithy/types/dist-types/logger.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * @public - * - * Represents a logger object that is available in HandlerExecutionContext - * throughout the middleware stack. - */ -export interface Logger { - trace?: (...content: any[]) => void; - debug: (...content: any[]) => void; - info: (...content: any[]) => void; - warn: (...content: any[]) => void; - error: (...content: any[]) => void; -} diff --git a/node_modules/@smithy/types/dist-types/middleware.d.ts b/node_modules/@smithy/types/dist-types/middleware.d.ts deleted file mode 100644 index 7a3fa89e..00000000 --- a/node_modules/@smithy/types/dist-types/middleware.d.ts +++ /dev/null @@ -1,510 +0,0 @@ -import { AuthScheme, HttpAuthDefinition } from "./auth/auth"; -import { EndpointV2 } from "./endpoint"; -import { Logger } from "./logger"; -import { UserAgent } from "./util"; -/** - * @public - */ -export interface InitializeHandlerArguments { - /** - * User input to a command. Reflects the userland representation of the - * union of data types the command can effectively handle. - */ - input: Input; -} -/** - * @public - */ -export interface InitializeHandlerOutput extends DeserializeHandlerOutput { - output: Output; -} -/** - * @public - */ -export interface SerializeHandlerArguments extends InitializeHandlerArguments { - /** - * The user input serialized as a request object. The request object is unknown, - * so you cannot modify it directly. When work with request, you need to guard its - * type to e.g. HttpRequest with 'instanceof' operand - * - * During the build phase of the execution of a middleware stack, a built - * request may or may not be available. - */ - request?: unknown; -} -/** - * @public - */ -export interface SerializeHandlerOutput extends InitializeHandlerOutput { -} -/** - * @public - */ -export interface BuildHandlerArguments extends FinalizeHandlerArguments { -} -/** - * @public - */ -export interface BuildHandlerOutput extends InitializeHandlerOutput { -} -/** - * @public - */ -export interface FinalizeHandlerArguments extends SerializeHandlerArguments { - /** - * The user input serialized as a request. - */ - request: unknown; -} -/** - * @public - */ -export interface FinalizeHandlerOutput extends InitializeHandlerOutput { -} -/** - * @public - */ -export interface DeserializeHandlerArguments extends FinalizeHandlerArguments { -} -/** - * @public - */ -export interface DeserializeHandlerOutput { - /** - * The raw response object from runtime is deserialized to structured output object. - * The response object is unknown so you cannot modify it directly. When work with - * response, you need to guard its type to e.g. HttpResponse with 'instanceof' operand. - * - * During the deserialize phase of the execution of a middleware stack, a deserialized - * response may or may not be available - */ - response: unknown; - output?: Output; -} -/** - * @public - */ -export interface InitializeHandler { - /** - * Asynchronously converts an input object into an output object. - * - * @param args - An object containing a input to the command as well as any - * associated or previously generated execution artifacts. - */ - (args: InitializeHandlerArguments): Promise>; -} -/** - * @public - */ -export type Handler = InitializeHandler; -/** - * @public - */ -export interface SerializeHandler { - /** - * Asynchronously converts an input object into an output object. - * - * @param args - An object containing a input to the command as well as any - * associated or previously generated execution artifacts. - */ - (args: SerializeHandlerArguments): Promise>; -} -/** - * @public - */ -export interface FinalizeHandler { - /** - * Asynchronously converts an input object into an output object. - * - * @param args - An object containing a input to the command as well as any - * associated or previously generated execution artifacts. - */ - (args: FinalizeHandlerArguments): Promise>; -} -/** - * @public - */ -export interface BuildHandler { - (args: BuildHandlerArguments): Promise>; -} -/** - * @public - */ -export interface DeserializeHandler { - (args: DeserializeHandlerArguments): Promise>; -} -/** - * @public - * - * A factory function that creates functions implementing the `Handler` - * interface. - */ -export interface InitializeMiddleware { - /** - * @param next - The handler to invoke after this middleware has operated on - * the user input and before this middleware operates on the output. - * - * @param context - Invariant data and functions for use by the handler. - */ - (next: InitializeHandler, context: HandlerExecutionContext): InitializeHandler; -} -/** - * @public - * - * A factory function that creates functions implementing the `BuildHandler` - * interface. - */ -export interface SerializeMiddleware { - /** - * @param next - The handler to invoke after this middleware has operated on - * the user input and before this middleware operates on the output. - * - * @param context - Invariant data and functions for use by the handler. - */ - (next: SerializeHandler, context: HandlerExecutionContext): SerializeHandler; -} -/** - * @public - * - * A factory function that creates functions implementing the `FinalizeHandler` - * interface. - */ -export interface FinalizeRequestMiddleware { - /** - * @param next - The handler to invoke after this middleware has operated on - * the user input and before this middleware operates on the output. - * - * @param context - Invariant data and functions for use by the handler. - */ - (next: FinalizeHandler, context: HandlerExecutionContext): FinalizeHandler; -} -/** - * @public - */ -export interface BuildMiddleware { - (next: BuildHandler, context: HandlerExecutionContext): BuildHandler; -} -/** - * @public - */ -export interface DeserializeMiddleware { - (next: DeserializeHandler, context: HandlerExecutionContext): DeserializeHandler; -} -/** - * @public - */ -export type MiddlewareType = InitializeMiddleware | SerializeMiddleware | BuildMiddleware | FinalizeRequestMiddleware | DeserializeMiddleware; -/** - * @public - * - * A factory function that creates the terminal handler atop which a middleware - * stack sits. - */ -export interface Terminalware { - (context: HandlerExecutionContext): DeserializeHandler; -} -/** - * @public - */ -export type Step = "initialize" | "serialize" | "build" | "finalizeRequest" | "deserialize"; -/** - * @public - */ -export type Priority = "high" | "normal" | "low"; -/** - * @public - */ -export interface HandlerOptions { - /** - * Handlers are ordered using a "step" that describes the stage of command - * execution at which the handler will be executed. The available steps are: - * - * - initialize: The input is being prepared. Examples of typical - * initialization tasks include injecting default options computing - * derived parameters. - * - serialize: The input is complete and ready to be serialized. Examples - * of typical serialization tasks include input validation and building - * an HTTP request from user input. - * - build: The input has been serialized into an HTTP request, but that - * request may require further modification. Any request alterations - * will be applied to all retries. Examples of typical build tasks - * include injecting HTTP headers that describe a stable aspect of the - * request, such as `Content-Length` or a body checksum. - * - finalizeRequest: The request is being prepared to be sent over the wire. The - * request in this stage should already be semantically complete and - * should therefore only be altered as match the recipient's - * expectations. Examples of typical finalization tasks include request - * signing and injecting hop-by-hop headers. - * - deserialize: The response has arrived, the middleware here will deserialize - * the raw response object to structured response - * - * Unlike initialization and build handlers, which are executed once - * per operation execution, finalization and deserialize handlers will be - * executed foreach HTTP request sent. - * - * @defaultValue 'initialize' - */ - step?: Step; - /** - * A list of strings to any that identify the general purpose or important - * characteristics of a given handler. - */ - tags?: Array; - /** - * A unique name to refer to a middleware - */ - name?: string; - /** - * @internal - * Aliases allows for middleware to be found by multiple names besides {@link HandlerOptions.name}. - * This allows for references to replaced middleware to continue working, e.g. replacing - * multiple auth-specific middleware with a single generic auth middleware. - */ - aliases?: Array; - /** - * A flag to override the existing middleware with the same name. Without - * setting it, adding middleware with duplicated name will throw an exception. - * @internal - */ - override?: boolean; -} -/** - * @public - */ -export interface AbsoluteLocation { - /** - * By default middleware will be added to individual step in un-guaranteed order. - * In the case that - * - * @defaultValue 'normal' - */ - priority?: Priority; -} -/** - * @public - */ -export type Relation = "before" | "after"; -/** - * @public - */ -export interface RelativeLocation { - /** - * Specify the relation to be before or after a know middleware. - */ - relation: Relation; - /** - * A known middleware name to indicate inserting middleware's location. - */ - toMiddleware: string; -} -/** - * @public - */ -export type RelativeMiddlewareOptions = RelativeLocation & Omit; -/** - * @public - */ -export interface InitializeHandlerOptions extends HandlerOptions { - step?: "initialize"; -} -/** - * @public - */ -export interface SerializeHandlerOptions extends HandlerOptions { - step: "serialize"; -} -/** - * @public - */ -export interface BuildHandlerOptions extends HandlerOptions { - step: "build"; -} -/** - * @public - */ -export interface FinalizeRequestHandlerOptions extends HandlerOptions { - step: "finalizeRequest"; -} -/** - * @public - */ -export interface DeserializeHandlerOptions extends HandlerOptions { - step: "deserialize"; -} -/** - * @public - * - * A stack storing middleware. It can be resolved into a handler. It supports 2 - * approaches for adding middleware: - * 1. Adding middleware to specific step with `add()`. The order of middleware - * added into same step is determined by order of adding them. If one middleware - * needs to be executed at the front of the step or at the end of step, set - * `priority` options to `high` or `low`. - * 2. Adding middleware to location relative to known middleware with `addRelativeTo()`. - * This is useful when given middleware must be executed before or after specific - * middleware(`toMiddleware`). You can add a middleware relatively to another - * middleware which also added relatively. But eventually, this relative middleware - * chain **must** be 'anchored' by a middleware that added using `add()` API - * with absolute `step` and `priority`. This mothod will throw if specified - * `toMiddleware` is not found. - */ -export interface MiddlewareStack extends Pluggable { - /** - * Add middleware to the stack to be executed during the "initialize" step, - * optionally specifying a priority, tags and name - */ - add(middleware: InitializeMiddleware, options?: InitializeHandlerOptions & AbsoluteLocation): void; - /** - * Add middleware to the stack to be executed during the "serialize" step, - * optionally specifying a priority, tags and name - */ - add(middleware: SerializeMiddleware, options: SerializeHandlerOptions & AbsoluteLocation): void; - /** - * Add middleware to the stack to be executed during the "build" step, - * optionally specifying a priority, tags and name - */ - add(middleware: BuildMiddleware, options: BuildHandlerOptions & AbsoluteLocation): void; - /** - * Add middleware to the stack to be executed during the "finalizeRequest" step, - * optionally specifying a priority, tags and name - */ - add(middleware: FinalizeRequestMiddleware, options: FinalizeRequestHandlerOptions & AbsoluteLocation): void; - /** - * Add middleware to the stack to be executed during the "deserialize" step, - * optionally specifying a priority, tags and name - */ - add(middleware: DeserializeMiddleware, options: DeserializeHandlerOptions & AbsoluteLocation): void; - /** - * Add middleware to a stack position before or after a known middleware,optionally - * specifying name and tags. - */ - addRelativeTo(middleware: MiddlewareType, options: RelativeMiddlewareOptions): void; - /** - * Apply a customization function to mutate the middleware stack, often - * used for customizations that requires mutating multiple middleware. - */ - use(pluggable: Pluggable): void; - /** - * Create a shallow clone of this stack. Step bindings and handler priorities - * and tags are preserved in the copy. - */ - clone(): MiddlewareStack; - /** - * Removes middleware from the stack. - * - * If a string is provided, it will be treated as middleware name. If a middleware - * is inserted with the given name, it will be removed. - * - * If a middleware class is provided, all usages thereof will be removed. - */ - remove(toRemove: MiddlewareType | string): boolean; - /** - * Removes middleware that contains given tag - * - * Multiple middleware will potentially be removed - */ - removeByTag(toRemove: string): boolean; - /** - * Create a stack containing the middlewares in this stack as well as the - * middlewares in the `from` stack. Neither source is modified, and step - * bindings and handler priorities and tags are preserved in the copy. - */ - concat(from: MiddlewareStack): MiddlewareStack; - /** - * Returns a list of the current order of middleware in the stack. - * This does not execute the middleware functions, nor does it - * provide a reference to the stack itself. - */ - identify(): string[]; - /** - * @internal - * - * When an operation is called using this stack, - * it will log its list of middleware to the console using - * the identify function. - * - * @param toggle - set whether to log on resolve. - * If no argument given, returns the current value. - */ - identifyOnResolve(toggle?: boolean): boolean; - /** - * Builds a single handler function from zero or more middleware classes and - * a core handler. The core handler is meant to send command objects to AWS - * services and return promises that will resolve with the operation result - * or be rejected with an error. - * - * When a composed handler is invoked, the arguments will pass through all - * middleware in a defined order, and the return from the innermost handler - * will pass through all middleware in the reverse of that order. - */ - resolve(handler: DeserializeHandler, context: HandlerExecutionContext): InitializeHandler; -} -/** - * @internal - */ -export declare const SMITHY_CONTEXT_KEY = "__smithy_context"; -/** - * @public - * - * Data and helper objects that are not expected to change from one execution of - * a composed handler to another. - */ -export interface HandlerExecutionContext { - /** - * A logger that may be invoked by any handler during execution of an - * operation. - */ - logger?: Logger; - /** - * Name of the service the operation is being sent to. - */ - clientName?: string; - /** - * Name of the operation being executed. - */ - commandName?: string; - /** - * Additional user agent that inferred by middleware. It can be used to save - * the internal user agent sections without overriding the `customUserAgent` - * config in clients. - */ - userAgent?: UserAgent; - /** - * Resolved by the endpointMiddleware function of `@smithy/middleware-endpoint` - * in the serialization stage. - */ - endpointV2?: EndpointV2; - /** - * Set at the same time as endpointV2. - */ - authSchemes?: AuthScheme[]; - /** - * The current auth configuration that has been set by any auth middleware and - * that will prevent from being set more than once. - */ - currentAuthConfig?: HttpAuthDefinition; - /** - * Used by DynamoDbDocumentClient. - */ - dynamoDbDocumentClientOptions?: Partial<{ - overrideInputFilterSensitiveLog(...args: any[]): string | void; - overrideOutputFilterSensitiveLog(...args: any[]): string | void; - }>; - /** - * @internal - * Context for Smithy properties - */ - [SMITHY_CONTEXT_KEY]?: Record; - [key: string]: any; -} -/** - * @public - */ -export interface Pluggable { - /** - * A function that mutate the passed in middleware stack. Functions implementing - * this interface can add, remove, modify existing middleware stack from clients - * or commands - */ - applyToStack: (stack: MiddlewareStack) => void; -} diff --git a/node_modules/@smithy/types/dist-types/pagination.d.ts b/node_modules/@smithy/types/dist-types/pagination.d.ts deleted file mode 100644 index 0d304dd1..00000000 --- a/node_modules/@smithy/types/dist-types/pagination.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { Client } from "./client"; -/** - * @public - * - * Expected type definition of a paginator. - */ -export type Paginator = AsyncGenerator; -/** - * @public - * - * Expected paginator configuration passed to an operation. Services will extend - * this interface definition and may type client further. - */ -export interface PaginationConfiguration { - client: Client; - pageSize?: number; - startingToken?: any; - /** - * For some APIs, such as CloudWatchLogs events, the next page token will always - * be present. - * - * When true, this config field will have the paginator stop when the token doesn't change - * instead of when it is not present. - */ - stopOnSameToken?: boolean; -} diff --git a/node_modules/@smithy/types/dist-types/profile.d.ts b/node_modules/@smithy/types/dist-types/profile.d.ts deleted file mode 100644 index b7885d98..00000000 --- a/node_modules/@smithy/types/dist-types/profile.d.ts +++ /dev/null @@ -1,30 +0,0 @@ -/** - * @public - */ -export declare enum IniSectionType { - PROFILE = "profile", - SSO_SESSION = "sso-session", - SERVICES = "services" -} -/** - * @public - */ -export type IniSection = Record; -/** - * @public - * - * @deprecated Please use {@link IniSection} - */ -export interface Profile extends IniSection { -} -/** - * @public - */ -export type ParsedIniData = Record; -/** - * @public - */ -export interface SharedConfigFiles { - credentialsFile: ParsedIniData; - configFile: ParsedIniData; -} diff --git a/node_modules/@smithy/types/dist-types/response.d.ts b/node_modules/@smithy/types/dist-types/response.d.ts deleted file mode 100644 index afcfe8f8..00000000 --- a/node_modules/@smithy/types/dist-types/response.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -/** - * @public - */ -export interface ResponseMetadata { - /** - * The status code of the last HTTP response received for this operation. - */ - httpStatusCode?: number; - /** - * A unique identifier for the last request sent for this operation. Often - * requested by AWS service teams to aid in debugging. - */ - requestId?: string; - /** - * A secondary identifier for the last request sent. Used for debugging. - */ - extendedRequestId?: string; - /** - * A tertiary identifier for the last request sent. Used for debugging. - */ - cfId?: string; - /** - * The number of times this operation was attempted. - */ - attempts?: number; - /** - * The total amount of time (in milliseconds) that was spent waiting between - * retry attempts. - */ - totalRetryDelay?: number; -} -/** - * @public - */ -export interface MetadataBearer { - /** - * Metadata pertaining to this request. - */ - $metadata: ResponseMetadata; -} diff --git a/node_modules/@smithy/types/dist-types/retry.d.ts b/node_modules/@smithy/types/dist-types/retry.d.ts deleted file mode 100644 index 11b7243a..00000000 --- a/node_modules/@smithy/types/dist-types/retry.d.ts +++ /dev/null @@ -1,128 +0,0 @@ -/** - * @public - */ -export type RetryErrorType = -/** - * This is a connection level error such as a socket timeout, socket connect - * error, tls negotiation timeout etc... - * Typically these should never be applied for non-idempotent request types - * since in this scenario, it's impossible to know whether the operation had - * a side effect on the server. - */ -"TRANSIENT" -/** - * This is an error where the server explicitly told the client to back off, - * such as a 429 or 503 Http error. - */ - | "THROTTLING" -/** - * This is a server error that isn't explicitly throttling but is considered - * by the client to be something that should be retried. - */ - | "SERVER_ERROR" -/** - * Doesn't count against any budgets. This could be something like a 401 - * challenge in Http. - */ - | "CLIENT_ERROR"; -/** - * @public - */ -export interface RetryErrorInfo { - errorType: RetryErrorType; - /** - * Protocol hint. This could come from Http's 'retry-after' header or - * something from MQTT or any other protocol that has the ability to convey - * retry info from a peer. - * - * @returns the Date after which a retry should be attempted. - */ - retryAfterHint?: Date; -} -/** - * @public - */ -export interface RetryBackoffStrategy { - /** - * @returns the number of milliseconds to wait before retrying an action. - */ - computeNextBackoffDelay(retryAttempt: number): number; -} -/** - * @public - */ -export interface StandardRetryBackoffStrategy extends RetryBackoffStrategy { - /** - * Sets the delayBase used to compute backoff delays. - * @param delayBase - - */ - setDelayBase(delayBase: number): void; -} -/** - * @public - */ -export interface RetryStrategyOptions { - backoffStrategy: RetryBackoffStrategy; - maxRetriesBase: number; -} -/** - * @public - */ -export interface RetryToken { - /** - * @returns the current count of retry. - */ - getRetryCount(): number; - /** - * @returns the number of milliseconds to wait before retrying an action. - */ - getRetryDelay(): number; -} -/** - * @public - */ -export interface StandardRetryToken extends RetryToken { - /** - * @returns the cost of the last retry attempt. - */ - getRetryCost(): number | undefined; -} -/** - * @public - */ -export interface RetryStrategyV2 { - /** - * Called before any retries (for the first call to the operation). It either - * returns a retry token or an error upon the failure to acquire a token prior. - * - * tokenScope is arbitrary and out of scope for this component. However, - * adding it here offers us a lot of future flexibility for outage detection. - * For example, it could be "us-east-1" on a shared retry strategy, or - * "us-west-2-c:dynamodb". - */ - acquireInitialRetryToken(retryTokenScope: string): Promise; - /** - * After a failed operation call, this function is invoked to refresh the - * retryToken returned by acquireInitialRetryToken(). This function can - * either choose to allow another retry and send a new or updated token, - * or reject the retry attempt and report the error either in an exception - * or returning an error. - */ - refreshRetryTokenForRetry(tokenToRenew: RetryToken, errorInfo: RetryErrorInfo): Promise; - /** - * Upon successful completion of the operation, this function is called - * to record that the operation was successful. - */ - recordSuccess(token: RetryToken): void; -} -/** - * @public - */ -export type ExponentialBackoffJitterType = "DEFAULT" | "NONE" | "FULL" | "DECORRELATED"; -/** - * @public - */ -export interface ExponentialBackoffStrategyOptions { - jitterType: ExponentialBackoffJitterType; - backoffScaleValue?: number; -} diff --git a/node_modules/@smithy/types/dist-types/serde.d.ts b/node_modules/@smithy/types/dist-types/serde.d.ts deleted file mode 100644 index 5c1171ad..00000000 --- a/node_modules/@smithy/types/dist-types/serde.d.ts +++ /dev/null @@ -1,104 +0,0 @@ -import { Endpoint } from "./http"; -import { RequestHandler } from "./transfer"; -import { Decoder, Encoder, Provider } from "./util"; -/** - * @public - * - * Interface for object requires an Endpoint set. - */ -export interface EndpointBearer { - endpoint: Provider; -} -/** - * @public - */ -export interface StreamCollector { - /** - * A function that converts a stream into an array of bytes. - * - * @param stream - The low-level native stream from browser or Nodejs runtime - */ - (stream: any): Promise; -} -/** - * @public - * - * Request and Response serde util functions and settings for AWS services - */ -export interface SerdeContext extends EndpointBearer { - base64Encoder: Encoder; - base64Decoder: Decoder; - utf8Encoder: Encoder; - utf8Decoder: Decoder; - streamCollector: StreamCollector; - requestHandler: RequestHandler; - disableHostPrefix: boolean; -} -/** - * @public - */ -export interface RequestSerializer { - /** - * Converts the provided `input` into a request object - * - * @param input - The user input to serialize. - * - * @param context - Context containing runtime-specific util functions. - */ - (input: any, context: Context): Promise; -} -/** - * @public - */ -export interface ResponseDeserializer { - /** - * Converts the output of an operation into JavaScript types. - * - * @param output - The HTTP response received from the service - * - * @param context - context containing runtime-specific util functions. - */ - (output: ResponseType, context: Context): Promise; -} -/** - * The interface contains mix-in utility functions to transfer the runtime-specific - * stream implementation to specified format. Each stream can ONLY be transformed - * once. - */ -export interface SdkStreamMixin { - transformToByteArray: () => Promise; - transformToString: (encoding?: string) => Promise; - transformToWebStream: () => ReadableStream; -} -/** - * @public - * - * The type describing a runtime-specific stream implementation with mix-in - * utility functions. - */ -export type SdkStream = BaseStream & SdkStreamMixin; -/** - * @public - * - * Indicates that the member of type T with - * key StreamKey have been extended - * with the SdkStreamMixin helper methods. - */ -export type WithSdkStreamMixin = { - [key in keyof T]: key extends StreamKey ? SdkStream : T[key]; -}; -/** - * Interface for internal function to inject stream utility functions - * implementation - * - * @internal - */ -export interface SdkStreamMixinInjector { - (stream: unknown): SdkStreamMixin; -} -/** - * @internal - */ -export interface SdkStreamSerdeContext { - sdkStreamMixin: SdkStreamMixinInjector; -} diff --git a/node_modules/@smithy/types/dist-types/shapes.d.ts b/node_modules/@smithy/types/dist-types/shapes.d.ts deleted file mode 100644 index c777ed09..00000000 --- a/node_modules/@smithy/types/dist-types/shapes.d.ts +++ /dev/null @@ -1,72 +0,0 @@ -import { HttpResponse } from "./http"; -import { MetadataBearer } from "./response"; -/** - * @public - * - * A document type represents an untyped JSON-like value. - * - * Not all protocols support document types, and the serialization format of a - * document type is protocol specific. All JSON protocols SHOULD support - * document types and they SHOULD serialize document types inline as normal - * JSON values. - */ -export type DocumentType = null | boolean | number | string | DocumentType[] | { - [prop: string]: DocumentType; -}; -/** - * @public - * - * A structure shape with the error trait. - * https://smithy.io/2.0/spec/behavior-traits.html#smithy-api-retryable-trait - */ -export interface RetryableTrait { - /** - * Indicates that the error is a retryable throttling error. - */ - readonly throttling?: boolean; -} -/** - * @public - * - * Type that is implemented by all Smithy shapes marked with the - * error trait. - * @deprecated - */ -export interface SmithyException { - /** - * The shape ID name of the exception. - */ - readonly name: string; - /** - * Whether the client or server are at fault. - */ - readonly $fault: "client" | "server"; - /** - * The service that encountered the exception. - */ - readonly $service?: string; - /** - * Indicates that an error MAY be retried by the client. - */ - readonly $retryable?: RetryableTrait; - /** - * Reference to low-level HTTP response object. - */ - readonly $response?: HttpResponse; -} -/** - * @public - * - * @deprecated See {@link https://aws.amazon.com/blogs/developer/service-error-handling-modular-aws-sdk-js/} - * - * This type should not be used in your application. - * Users of the AWS SDK for JavaScript v3 service clients should prefer to - * use the specific Exception classes corresponding to each operation. - * These can be found as code in the deserializer for the operation's Command class, - * or as declarations in the service model file in codegen/sdk-codegen/aws-models. - * - * If no exceptions are enumerated by a particular Command operation, - * the base exception for the service should be used. Each client exports - * a base ServiceException prefixed with the service name. - */ -export type SdkError = Error & Partial & Partial; diff --git a/node_modules/@smithy/types/dist-types/signature.d.ts b/node_modules/@smithy/types/dist-types/signature.d.ts deleted file mode 100644 index 6ac7578b..00000000 --- a/node_modules/@smithy/types/dist-types/signature.d.ts +++ /dev/null @@ -1,150 +0,0 @@ -import { Message } from "./eventStream"; -import { HttpRequest } from "./http"; -/** - * @public - * - * A `Date` object, a unix (epoch) timestamp in seconds, or a string that can be - * understood by the JavaScript `Date` constructor. - */ -export type DateInput = number | string | Date; -/** - * @public - */ -export interface SigningArguments { - /** - * The date and time to be used as signature metadata. This value should be - * a Date object, a unix (epoch) timestamp, or a string that can be - * understood by the JavaScript `Date` constructor.If not supplied, the - * value returned by `new Date()` will be used. - */ - signingDate?: DateInput; - /** - * The service signing name. It will override the service name of the signer - * in current invocation - */ - signingService?: string; - /** - * The region name to sign the request. It will override the signing region of the - * signer in current invocation - */ - signingRegion?: string; -} -/** - * @public - */ -export interface RequestSigningArguments extends SigningArguments { - /** - * A set of strings whose members represents headers that cannot be signed. - * All headers in the provided request will have their names converted to - * lower case and then checked for existence in the unsignableHeaders set. - */ - unsignableHeaders?: Set; - /** - * A set of strings whose members represents headers that should be signed. - * Any values passed here will override those provided via unsignableHeaders, - * allowing them to be signed. - * - * All headers in the provided request will have their names converted to - * lower case before signing. - */ - signableHeaders?: Set; -} -/** - * @public - */ -export interface RequestPresigningArguments extends RequestSigningArguments { - /** - * The number of seconds before the presigned URL expires - */ - expiresIn?: number; - /** - * A set of strings whose representing headers that should not be hoisted - * to presigned request's query string. If not supplied, the presigner - * moves all the AWS-specific headers (starting with `x-amz-`) to the request - * query string. If supplied, these headers remain in the presigned request's - * header. - * All headers in the provided request will have their names converted to - * lower case and then checked for existence in the unhoistableHeaders set. - */ - unhoistableHeaders?: Set; -} -/** - * @public - */ -export interface EventSigningArguments extends SigningArguments { - priorSignature: string; -} -/** - * @public - */ -export interface RequestPresigner { - /** - * Signs a request for future use. - * - * The request will be valid until either the provided `expiration` time has - * passed or the underlying credentials have expired. - * - * @param requestToSign - The request that should be signed. - * @param options - Additional signing options. - */ - presign(requestToSign: HttpRequest, options?: RequestPresigningArguments): Promise; -} -/** - * @public - * - * An object that signs request objects with AWS credentials using one of the - * AWS authentication protocols. - */ -export interface RequestSigner { - /** - * Sign the provided request for immediate dispatch. - */ - sign(requestToSign: HttpRequest, options?: RequestSigningArguments): Promise; -} -/** - * @public - */ -export interface StringSigner { - /** - * Sign the provided `stringToSign` for use outside of the context of - * request signing. Typical uses include signed policy generation. - */ - sign(stringToSign: string, options?: SigningArguments): Promise; -} -/** - * @public - */ -export interface FormattedEvent { - headers: Uint8Array; - payload: Uint8Array; -} -/** - * @public - */ -export interface EventSigner { - /** - * Sign the individual event of the event stream. - */ - sign(event: FormattedEvent, options: EventSigningArguments): Promise; -} -/** - * @public - */ -export interface SignableMessage { - message: Message; - priorSignature: string; -} -/** - * @public - */ -export interface SignedMessage { - message: Message; - signature: string; -} -/** - * @public - */ -export interface MessageSigner { - signMessage(message: SignableMessage, args: SigningArguments): Promise; - sign(event: SignableMessage, options: SigningArguments): Promise; -} diff --git a/node_modules/@smithy/types/dist-types/stream.d.ts b/node_modules/@smithy/types/dist-types/stream.d.ts deleted file mode 100644 index f305dd9d..00000000 --- a/node_modules/@smithy/types/dist-types/stream.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { ChecksumConstructor } from "./checksum"; -import { HashConstructor, StreamHasher } from "./crypto"; -import { BodyLengthCalculator, Encoder } from "./util"; -/** - * @public - */ -export interface GetAwsChunkedEncodingStreamOptions { - base64Encoder?: Encoder; - bodyLengthChecker: BodyLengthCalculator; - checksumAlgorithmFn?: ChecksumConstructor | HashConstructor; - checksumLocationName?: string; - streamHasher?: StreamHasher; -} -/** - * @public - * - * A function that returns Readable Stream which follows aws-chunked encoding stream. - * It optionally adds checksum if options are provided. - */ -export interface GetAwsChunkedEncodingStream { - (readableStream: StreamType, options: GetAwsChunkedEncodingStreamOptions): StreamType; -} diff --git a/node_modules/@smithy/types/dist-types/streaming-payload/streaming-blob-common-types.d.ts b/node_modules/@smithy/types/dist-types/streaming-payload/streaming-blob-common-types.d.ts deleted file mode 100644 index 92c52dad..00000000 --- a/node_modules/@smithy/types/dist-types/streaming-payload/streaming-blob-common-types.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -/// -import type { Readable } from "stream"; -import type { BlobOptionalType, ReadableStreamOptionalType } from "../externals-check/browser-externals-check"; -/** - * @public - * - * This is the union representing the modeled blob type with streaming trait - * in a generic format that does not relate to HTTP input or output payloads. - * - * Note: the non-streaming blob type is represented by Uint8Array, but because - * the streaming blob type is always in the request/response paylod, it has - * historically been handled with different types. - * - * @see https://smithy.io/2.0/spec/simple-types.html#blob - * - * For compatibility with its historical representation, it must contain at least - * Readble (Node.js), Blob (browser), and ReadableStream (browser). - * - * @see StreamingPayloadInputTypes for FAQ about mixing types from multiple environments. - */ -export type StreamingBlobTypes = NodeJsRuntimeStreamingBlobTypes | BrowserRuntimeStreamingBlobTypes; -/** - * @public - * - * Node.js streaming blob type. - */ -export type NodeJsRuntimeStreamingBlobTypes = Readable; -/** - * @public - * - * Browser streaming blob types. - */ -export type BrowserRuntimeStreamingBlobTypes = ReadableStreamOptionalType | BlobOptionalType; diff --git a/node_modules/@smithy/types/dist-types/streaming-payload/streaming-blob-payload-input-types.d.ts b/node_modules/@smithy/types/dist-types/streaming-payload/streaming-blob-payload-input-types.d.ts deleted file mode 100644 index 812681cb..00000000 --- a/node_modules/@smithy/types/dist-types/streaming-payload/streaming-blob-payload-input-types.d.ts +++ /dev/null @@ -1,62 +0,0 @@ -/// -/// -import type { Readable } from "stream"; -import type { BlobOptionalType, ReadableStreamOptionalType } from "../externals-check/browser-externals-check"; -/** - * @public - * - * This union represents a superset of the compatible types you - * can use for streaming payload inputs. - * - * FAQ: - * Why does the type union mix mutually exclusive runtime types, namely - * Node.js and browser types? - * - * There are several reasons: - * 1. For backwards compatibility. - * 2. As a convenient compromise solution so that users in either environment may use the types - * without customization. - * 3. The SDK does not have static type information about the exact implementation - * of the HTTP RequestHandler being used in your client(s) (e.g. fetch, XHR, node:http, or node:http2), - * given that it is chosen at runtime. There are multiple possible request handlers - * in both the Node.js and browser runtime environments. - * - * Rather than restricting the type to a known common format (Uint8Array, for example) - * which doesn't include a universal streaming format in the currently supported Node.js versions, - * the type declaration is widened to multiple possible formats. - * It is up to the user to ultimately select a compatible format with the - * runtime and HTTP handler implementation they are using. - * - * Usage: - * The typical solution we expect users to have is to manually narrow the - * type when needed, picking the appropriate one out of the union according to the - * runtime environment and specific request handler. - * There is also the type utility "NodeJsClient", "BrowserClient" and more - * exported from this package. These can be applied at the client level - * to pre-narrow these streaming payload blobs. For usage see the readme.md - * in the root of the @smithy/types NPM package. - */ -export type StreamingBlobPayloadInputTypes = NodeJsRuntimeStreamingBlobPayloadInputTypes | BrowserRuntimeStreamingBlobPayloadInputTypes; -/** - * @public - * - * Streaming payload input types in the Node.js environment. - * These are derived from the types compatible with the request body used by node:http. - * - * Note: not all types are signable by the standard SignatureV4 signer when - * used as the request body. For example, in Node.js a Readable stream - * is not signable by the default signer. - * They are included in the union because it may be intended in some cases, - * but the expected types are primarily string, Uint8Array, and Buffer. - * - * Additional details may be found in the internal - * function "getPayloadHash" in the SignatureV4 module. - */ -export type NodeJsRuntimeStreamingBlobPayloadInputTypes = string | Uint8Array | Buffer | Readable; -/** - * @public - * - * Streaming payload input types in the browser environment. - * These are derived from the types compatible with fetch's Request.body. - */ -export type BrowserRuntimeStreamingBlobPayloadInputTypes = string | Uint8Array | ReadableStreamOptionalType | BlobOptionalType; diff --git a/node_modules/@smithy/types/dist-types/streaming-payload/streaming-blob-payload-output-types.d.ts b/node_modules/@smithy/types/dist-types/streaming-payload/streaming-blob-payload-output-types.d.ts deleted file mode 100644 index b64a8786..00000000 --- a/node_modules/@smithy/types/dist-types/streaming-payload/streaming-blob-payload-output-types.d.ts +++ /dev/null @@ -1,53 +0,0 @@ -/// -/// -import type { IncomingMessage } from "http"; -import type { Readable } from "stream"; -import type { BlobOptionalType, ReadableStreamOptionalType } from "../externals-check/browser-externals-check"; -import type { SdkStream } from "../serde"; -/** - * @public - * - * This union represents a superset of the types you may receive - * in streaming payload outputs. - * - * @see StreamingPayloadInputTypes for FAQ about mixing types from multiple environments. - * - * To highlight the upstream docs about the SdkStream mixin: - * - * The interface contains mix-in (via Object.assign) methods to transform the runtime-specific - * stream implementation to specified format. Each stream can ONLY be transformed - * once. - * - * The available methods are described on the SdkStream type via SdkStreamMixin. - */ -export type StreamingBlobPayloadOutputTypes = NodeJsRuntimeStreamingBlobPayloadOutputTypes | BrowserRuntimeStreamingBlobPayloadOutputTypes; -/** - * @public - * - * Streaming payload output types in the Node.js environment. - * - * This is by default the IncomingMessage type from node:http responses when - * using the default node-http-handler in Node.js environments. - * - * It can be other Readable types like node:http2's ClientHttp2Stream - * such as when using the node-http2-handler. - * - * The SdkStreamMixin adds methods on this type to help transform (collect) it to - * other formats. - */ -export type NodeJsRuntimeStreamingBlobPayloadOutputTypes = SdkStream; -/** - * @public - * - * Streaming payload output types in the browser environment. - * - * This is by default fetch's Response.body type (ReadableStream) when using - * the default fetch-http-handler in browser-like environments. - * - * It may be a Blob, such as when using the XMLHttpRequest handler - * and receiving an arraybuffer response body. - * - * The SdkStreamMixin adds methods on this type to help transform (collect) it to - * other formats. - */ -export type BrowserRuntimeStreamingBlobPayloadOutputTypes = SdkStream; diff --git a/node_modules/@smithy/types/dist-types/transfer.d.ts b/node_modules/@smithy/types/dist-types/transfer.d.ts deleted file mode 100644 index f9c6f334..00000000 --- a/node_modules/@smithy/types/dist-types/transfer.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * @public - */ -export type RequestHandlerOutput = { - response: ResponseType; -}; -/** - * @public - */ -export interface RequestHandler { - /** - * metadata contains information of a handler. For example - * 'h2' refers this handler is for handling HTTP/2 requests, - * whereas 'h1' refers handling HTTP1 requests - */ - metadata?: RequestHandlerMetadata; - destroy?: () => void; - handle: (request: RequestType, handlerOptions?: HandlerOptions) => Promise>; -} -/** - * @public - */ -export interface RequestHandlerMetadata { - handlerProtocol: RequestHandlerProtocol | string; -} -export declare enum RequestHandlerProtocol { - HTTP_0_9 = "http/0.9", - HTTP_1_0 = "http/1.0", - TDS_8_0 = "tds/8.0" -} -export interface RequestContext { - destination: URL; -} diff --git a/node_modules/@smithy/types/dist-types/transform/client-method-transforms.d.ts b/node_modules/@smithy/types/dist-types/transform/client-method-transforms.d.ts deleted file mode 100644 index 4b7a0103..00000000 --- a/node_modules/@smithy/types/dist-types/transform/client-method-transforms.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -import type { Command } from "../command"; -import type { MetadataBearer } from "../response"; -import type { StreamingBlobPayloadOutputTypes } from "../streaming-payload/streaming-blob-payload-output-types"; -import type { Transform } from "./type-transform"; -/** - * @internal - * - * Narrowed version of InvokeFunction used in Client::send. - */ -export interface NarrowedInvokeFunction { - (command: Command, options?: HttpHandlerOptions): Promise>; - (command: Command, cb: (err: unknown, data?: Transform) => void): void; - (command: Command, options: HttpHandlerOptions, cb: (err: unknown, data?: Transform) => void): void; - (command: Command, options?: HttpHandlerOptions, cb?: (err: unknown, data?: Transform) => void): Promise> | void; -} -/** - * @internal - * - * Narrowed version of InvokeMethod used in aggregated Client methods. - */ -export interface NarrowedInvokeMethod { - (input: InputType, options?: HttpHandlerOptions): Promise>; - (input: InputType, cb: (err: unknown, data?: Transform) => void): void; - (input: InputType, options: HttpHandlerOptions, cb: (err: unknown, data?: Transform) => void): void; - (input: InputType, options?: HttpHandlerOptions, cb?: (err: unknown, data?: OutputType) => void): Promise> | void; -} diff --git a/node_modules/@smithy/types/dist-types/transform/client-payload-blob-type-narrow.d.ts b/node_modules/@smithy/types/dist-types/transform/client-payload-blob-type-narrow.d.ts deleted file mode 100644 index 37cd6119..00000000 --- a/node_modules/@smithy/types/dist-types/transform/client-payload-blob-type-narrow.d.ts +++ /dev/null @@ -1,73 +0,0 @@ -/// -/// -import type { IncomingMessage } from "http"; -import type { ClientHttp2Stream } from "http2"; -import type { InvokeFunction, InvokeMethod } from "../client"; -import type { HttpHandlerOptions } from "../http"; -import type { SdkStream } from "../serde"; -import type { BrowserRuntimeStreamingBlobPayloadInputTypes, NodeJsRuntimeStreamingBlobPayloadInputTypes, StreamingBlobPayloadInputTypes } from "../streaming-payload/streaming-blob-payload-input-types"; -import type { NarrowedInvokeFunction, NarrowedInvokeMethod } from "./client-method-transforms"; -import type { Transform } from "./type-transform"; -/** - * @public - * - * Creates a type with a given client type that narrows payload blob output - * types to SdkStream. - * - * This can be used for clients with the NodeHttpHandler requestHandler, - * the default in Node.js when not using HTTP2. - * - * Usage example: - * ```typescript - * const client = new YourClient({}) as NodeJsClient; - * ``` - */ -export type NodeJsClient = NarrowPayloadBlobTypes, ClientType>; -/** - * @public - * Variant of NodeJsClient for node:http2. - */ -export type NodeJsHttp2Client = NarrowPayloadBlobTypes, ClientType>; -/** - * @public - * - * Creates a type with a given client type that narrows payload blob output - * types to SdkStream. - * - * This can be used for clients with the FetchHttpHandler requestHandler, - * which is the default in browser environments. - * - * Usage example: - * ```typescript - * const client = new YourClient({}) as BrowserClient; - * ``` - */ -export type BrowserClient = NarrowPayloadBlobTypes, ClientType>; -/** - * @public - * - * Variant of BrowserClient for XMLHttpRequest. - */ -export type BrowserXhrClient = NarrowPayloadBlobTypes, ClientType>; -/** - * @public - * - * @deprecated use NarrowPayloadBlobTypes. - * - * Narrow a given Client's blob payload outputs to the given type T. - */ -export type NarrowPayloadBlobOutputType = { - [key in keyof ClientType]: [ClientType[key]] extends [ - InvokeFunction - ] ? NarrowedInvokeFunction : [ClientType[key]] extends [InvokeMethod] ? NarrowedInvokeMethod : ClientType[key]; -}; -/** - * @public - * - * Narrow a Client's blob payload input and output types to I and O. - */ -export type NarrowPayloadBlobTypes = { - [key in keyof ClientType]: [ClientType[key]] extends [ - InvokeFunction - ] ? NarrowedInvokeFunction, OutputTypes, ConfigType> : [ClientType[key]] extends [InvokeMethod] ? NarrowedInvokeMethod, FunctionOutputTypes> : ClientType[key]; -}; diff --git a/node_modules/@smithy/types/dist-types/transform/exact.d.ts b/node_modules/@smithy/types/dist-types/transform/exact.d.ts deleted file mode 100644 index c8a15d8d..00000000 --- a/node_modules/@smithy/types/dist-types/transform/exact.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -/** - * @internal - * - * Checks that A and B extend each other. - */ -export type Exact = [A] extends [B] ? ([B] extends [A] ? true : false) : false; diff --git a/node_modules/@smithy/types/dist-types/transform/no-undefined.d.ts b/node_modules/@smithy/types/dist-types/transform/no-undefined.d.ts deleted file mode 100644 index b097ff5a..00000000 --- a/node_modules/@smithy/types/dist-types/transform/no-undefined.d.ts +++ /dev/null @@ -1,62 +0,0 @@ -import type { InvokeFunction, InvokeMethod } from "../client"; -/** - * @public - * - * This type is intended as a type helper for generated clients. - * When initializing client, cast it to this type by passing - * the client constructor type as the type parameter. - * - * It will then recursively remove "undefined" as a union type from all - * input and output shapes' members. Note, this does not affect - * any member that is optional (?) such as outputs with no required members. - * - * @example - * ```ts - * const client = new Client({}) as AssertiveClient; - * ``` - */ -export type AssertiveClient = NarrowClientIOTypes; -/** - * @public - * - * This is similar to AssertiveClient but additionally changes all - * output types to (recursive) Required so as to bypass all output nullability guards. - */ -export type UncheckedClient = UncheckedClientOutputTypes; -/** - * @internal - * - * Excludes undefined recursively. - */ -export type NoUndefined = T extends Function ? T : [T] extends [object] ? { - [key in keyof T]: NoUndefined; -} : Exclude; -/** - * @internal - * - * Excludes undefined and optional recursively. - */ -export type RecursiveRequired = T extends Function ? T : [T] extends [object] ? { - [key in keyof T]-?: RecursiveRequired; -} : Exclude; -/** - * @internal - * - * Removes undefined from unions. - */ -type NarrowClientIOTypes = { - [key in keyof ClientType]: [ClientType[key]] extends [ - InvokeFunction - ] ? InvokeFunction, NoUndefined, ConfigType> : [ClientType[key]] extends [InvokeMethod] ? InvokeMethod, NoUndefined> : ClientType[key]; -}; -/** - * @internal - * - * Removes undefined from unions and adds yolo output types. - */ -type UncheckedClientOutputTypes = { - [key in keyof ClientType]: [ClientType[key]] extends [ - InvokeFunction - ] ? InvokeFunction, RecursiveRequired, ConfigType> : [ClientType[key]] extends [InvokeMethod] ? InvokeMethod, RecursiveRequired> : ClientType[key]; -}; -export {}; diff --git a/node_modules/@smithy/types/dist-types/transform/type-transform.d.ts b/node_modules/@smithy/types/dist-types/transform/type-transform.d.ts deleted file mode 100644 index 90373fb3..00000000 --- a/node_modules/@smithy/types/dist-types/transform/type-transform.d.ts +++ /dev/null @@ -1,34 +0,0 @@ -/** - * @public - * - * Transforms any members of the object T having type FromType - * to ToType. This applies only to exact type matches. - * - * This is for the case where FromType is a union and only those fields - * matching the same union should be transformed. - */ -export type Transform = ConditionalRecursiveTransformExact; -/** - * @internal - * - * Returns ToType if T matches exactly with FromType. - */ -type TransformExact = [T] extends [FromType] ? ([FromType] extends [T] ? ToType : T) : T; -/** - * @internal - * - * Applies TransformExact to members of an object recursively. - */ -type RecursiveTransformExact = T extends Function ? T : T extends object ? { - [key in keyof T]: [T[key]] extends [FromType] ? [FromType] extends [T[key]] ? ToType : ConditionalRecursiveTransformExact : ConditionalRecursiveTransformExact; -} : TransformExact; -/** - * @internal - * - * Same as RecursiveTransformExact but does not assign to an object - * unless there is a matching transformed member. - */ -type ConditionalRecursiveTransformExact = [T] extends [ - RecursiveTransformExact -] ? [RecursiveTransformExact] extends [T] ? T : RecursiveTransformExact : RecursiveTransformExact; -export {}; diff --git a/node_modules/@smithy/types/dist-types/ts3.4/abort.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/abort.d.ts deleted file mode 100644 index 374cf93d..00000000 --- a/node_modules/@smithy/types/dist-types/ts3.4/abort.d.ts +++ /dev/null @@ -1,49 +0,0 @@ -/** - * @public - */ -export interface AbortHandler { - (this: AbortSignal, ev: any): any; -} -/** - * @public - * - * Holders of an AbortSignal object may query if the associated operation has - * been aborted and register an onabort handler. - * - * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortSignal - */ -export interface AbortSignal { - /** - * Whether the action represented by this signal has been cancelled. - */ - readonly aborted: boolean; - /** - * A function to be invoked when the action represented by this signal has - * been cancelled. - */ - onabort: AbortHandler | Function | null; -} -/** - * @public - * - * The AWS SDK uses a Controller/Signal model to allow for cooperative - * cancellation of asynchronous operations. When initiating such an operation, - * the caller can create an AbortController and then provide linked signal to - * subtasks. This allows a single source to communicate to multiple consumers - * that an action has been aborted without dictating how that cancellation - * should be handled. - * - * @see https://developer.mozilla.org/en-US/docs/Web/API/AbortController - */ -export interface AbortController { - /** - * An object that reports whether the action associated with this - * `AbortController` has been cancelled. - */ - readonly signal: AbortSignal; - /** - * Declares the operation associated with this AbortController to have been - * cancelled. - */ - abort(): void; -} diff --git a/node_modules/@smithy/types/dist-types/ts3.4/auth/HttpApiKeyAuth.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/auth/HttpApiKeyAuth.d.ts deleted file mode 100644 index 380c8fc1..00000000 --- a/node_modules/@smithy/types/dist-types/ts3.4/auth/HttpApiKeyAuth.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * @internal - */ -export declare enum HttpApiKeyAuthLocation { - HEADER = "header", - QUERY = "query" -} diff --git a/node_modules/@smithy/types/dist-types/ts3.4/auth/HttpAuthScheme.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/auth/HttpAuthScheme.d.ts deleted file mode 100644 index e0d939ed..00000000 --- a/node_modules/@smithy/types/dist-types/ts3.4/auth/HttpAuthScheme.d.ts +++ /dev/null @@ -1,49 +0,0 @@ -import { Identity, IdentityProvider } from "../identity/identity"; -import { HandlerExecutionContext } from "../middleware"; -import { HttpSigner } from "./HttpSigner"; -import { IdentityProviderConfig } from "./IdentityProviderConfig"; -/** - * ID for {@link HttpAuthScheme} - * @internal - */ -export type HttpAuthSchemeId = string; -/** - * Interface that defines an HttpAuthScheme - * @internal - */ -export interface HttpAuthScheme { - /** - * ID for an HttpAuthScheme, typically the absolute shape ID of a Smithy auth trait. - */ - schemeId: HttpAuthSchemeId; - /** - * Gets the IdentityProvider corresponding to an HttpAuthScheme. - */ - identityProvider(config: IdentityProviderConfig): IdentityProvider | undefined; - /** - * HttpSigner corresponding to an HttpAuthScheme. - */ - signer: HttpSigner; -} -/** - * Interface that defines the identity and signing properties when selecting - * an HttpAuthScheme. - * @internal - */ -export interface HttpAuthOption { - schemeId: HttpAuthSchemeId; - identityProperties?: Record; - signingProperties?: Record; - propertiesExtractor?: (config: TConfig, context: TContext) => { - identityProperties?: Record; - signingProperties?: Record; - }; -} -/** - * @internal - */ -export interface SelectedHttpAuthScheme { - httpAuthOption: HttpAuthOption; - identity: Identity; - signer: HttpSigner; -} diff --git a/node_modules/@smithy/types/dist-types/ts3.4/auth/HttpAuthSchemeProvider.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/auth/HttpAuthSchemeProvider.d.ts deleted file mode 100644 index d417aaf7..00000000 --- a/node_modules/@smithy/types/dist-types/ts3.4/auth/HttpAuthSchemeProvider.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -import { HandlerExecutionContext } from "../middleware"; -import { HttpAuthOption } from "./HttpAuthScheme"; -/** - * @internal - */ -export interface HttpAuthSchemeParameters { - operation?: string; -} -/** - * @internal - */ -export interface HttpAuthSchemeProvider { - (authParameters: TParameters): HttpAuthOption[]; -} -/** - * @internal - */ -export interface HttpAuthSchemeParametersProvider { - (config: TConfig, context: TContext, input: TInput): Promise; -} diff --git a/node_modules/@smithy/types/dist-types/ts3.4/auth/HttpSigner.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/auth/HttpSigner.d.ts deleted file mode 100644 index 7abcf847..00000000 --- a/node_modules/@smithy/types/dist-types/ts3.4/auth/HttpSigner.d.ts +++ /dev/null @@ -1,41 +0,0 @@ -import { HttpRequest, HttpResponse } from "../http"; -import { Identity } from "../identity/identity"; -/** - * @internal - */ -export interface ErrorHandler { - (signingProperties: Record): (error: E) => never; -} -/** - * @internal - */ -export interface SuccessHandler { - (httpResponse: HttpResponse | unknown, signingProperties: Record): void; -} -/** - * Interface to sign identity and signing properties. - * @internal - */ -export interface HttpSigner { - /** - * Signs an HttpRequest with an identity and signing properties. - * @param httpRequest request to sign - * @param identity identity to sing the request with - * @param signingProperties property bag for signing - * @returns signed request in a promise - */ - sign(httpRequest: HttpRequest, identity: Identity, signingProperties: Record): Promise; - /** - * Handler that executes after the {@link HttpSigner.sign} invocation and corresponding - * middleware throws an error. - * The error handler is expected to throw the error it receives, so the return type of the error handler is `never`. - * @internal - */ - errorHandler?: ErrorHandler; - /** - * Handler that executes after the {@link HttpSigner.sign} invocation and corresponding - * middleware succeeds. - * @internal - */ - successHandler?: SuccessHandler; -} diff --git a/node_modules/@smithy/types/dist-types/ts3.4/auth/IdentityProviderConfig.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/auth/IdentityProviderConfig.d.ts deleted file mode 100644 index 6a50f657..00000000 --- a/node_modules/@smithy/types/dist-types/ts3.4/auth/IdentityProviderConfig.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { Identity, IdentityProvider } from "../identity/identity"; -import { HttpAuthSchemeId } from "./HttpAuthScheme"; -/** - * Interface to get an IdentityProvider for a specified HttpAuthScheme - * @internal - */ -export interface IdentityProviderConfig { - /** - * Get the IdentityProvider for a specified HttpAuthScheme. - * @param schemeId schemeId of the HttpAuthScheme - * @returns IdentityProvider or undefined if HttpAuthScheme is not found - */ - getIdentityProvider(schemeId: HttpAuthSchemeId): IdentityProvider | undefined; -} diff --git a/node_modules/@smithy/types/dist-types/ts3.4/auth/auth.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/auth/auth.d.ts deleted file mode 100644 index 8241fe3e..00000000 --- a/node_modules/@smithy/types/dist-types/ts3.4/auth/auth.d.ts +++ /dev/null @@ -1,57 +0,0 @@ -/** - * @internal - * - * Authentication schemes represent a way that the service will authenticate the customer’s identity. - */ -export interface AuthScheme { - /** - * @example "sigv4a" or "sigv4" - */ - name: "sigv4" | "sigv4a" | string; - /** - * @example "s3" - */ - signingName: string; - /** - * @example "us-east-1" - */ - signingRegion: string; - /** - * @example ["*"] - * @example ["us-west-2", "us-east-1"] - */ - signingRegionSet?: string[]; - /** - * @deprecated this field was renamed to signingRegion. - */ - signingScope?: never; - properties: Record; -} -/** - * @internal - * @deprecated - */ -export interface HttpAuthDefinition { - /** - * Defines the location of where the Auth is serialized. - */ - in: HttpAuthLocation; - /** - * Defines the name of the HTTP header or query string parameter - * that contains the Auth. - */ - name: string; - /** - * Defines the security scheme to use on the `Authorization` header value. - * This can only be set if the "in" property is set to {@link HttpAuthLocation.HEADER}. - */ - scheme?: string; -} -/** - * @internal - * @deprecated - */ -export declare enum HttpAuthLocation { - HEADER = "header", - QUERY = "query" -} diff --git a/node_modules/@smithy/types/dist-types/ts3.4/auth/index.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/auth/index.d.ts deleted file mode 100644 index fbb845d4..00000000 --- a/node_modules/@smithy/types/dist-types/ts3.4/auth/index.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -export * from "./auth"; -export * from "./HttpApiKeyAuth"; -export * from "./HttpAuthScheme"; -export * from "./HttpAuthSchemeProvider"; -export * from "./HttpSigner"; -export * from "./IdentityProviderConfig"; diff --git a/node_modules/@smithy/types/dist-types/ts3.4/blob/blob-payload-input-types.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/blob/blob-payload-input-types.d.ts deleted file mode 100644 index 833814c0..00000000 --- a/node_modules/@smithy/types/dist-types/ts3.4/blob/blob-payload-input-types.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -/// -import { Readable } from "stream"; -import { BlobOptionalType, ReadableStreamOptionalType } from "../externals-check/browser-externals-check"; -/** - * @public - * - * A union of types that can be used as inputs for the service model - * "blob" type when it represents the request's entire payload or body. - * - * For example, in Lambda::invoke, the payload is modeled as a blob type - * and this union applies to it. - * In contrast, in Lambda::createFunction the Zip file option is a blob type, - * but is not the (entire) payload and this union does not apply. - * - * Note: not all types are signable by the standard SignatureV4 signer when - * used as the request body. For example, in Node.js a Readable stream - * is not signable by the default signer. - * They are included in the union because it may work in some cases, - * but the expected types are primarily string and Uint8Array. - * - * Additional details may be found in the internal - * function "getPayloadHash" in the SignatureV4 module. - */ -export type BlobPayloadInputTypes = string | ArrayBuffer | ArrayBufferView | Uint8Array | NodeJsRuntimeBlobTypes | BrowserRuntimeBlobTypes; -/** - * @public - * - * Additional blob types for the Node.js environment. - */ -export type NodeJsRuntimeBlobTypes = Readable | Buffer; -/** - * @public - * - * Additional blob types for the browser environment. - */ -export type BrowserRuntimeBlobTypes = BlobOptionalType | ReadableStreamOptionalType; -/** - * @deprecated renamed to BlobPayloadInputTypes. - */ -export type BlobTypes = BlobPayloadInputTypes; diff --git a/node_modules/@smithy/types/dist-types/ts3.4/checksum.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/checksum.d.ts deleted file mode 100644 index dbfff0cf..00000000 --- a/node_modules/@smithy/types/dist-types/ts3.4/checksum.d.ts +++ /dev/null @@ -1,63 +0,0 @@ -import { SourceData } from "./crypto"; -/** - * @public - * - * An object that provides a checksum of data provided in chunks to `update`. - * The checksum may be performed incrementally as chunks are received or all - * at once when the checksum is finalized, depending on the underlying - * implementation. - * - * It's recommended to compute checksum incrementally to avoid reading the - * entire payload in memory. - * - * A class that implements this interface may accept an optional secret key in its - * constructor while computing checksum value, when using HMAC. If provided, - * this secret key would be used when computing checksum. - */ -export interface Checksum { - /** - * Constant length of the digest created by the algorithm in bytes. - */ - digestLength?: number; - /** - * Creates a new checksum object that contains a deep copy of the internal - * state of the current `Checksum` object. - */ - copy?(): Checksum; - /** - * Returns the digest of all of the data passed. - */ - digest(): Promise; - /** - * Allows marking a checksum for checksums that support the ability - * to mark and reset. - * - * @param readLimit - The maximum limit of bytes that can be read - * before the mark position becomes invalid. - */ - mark?(readLimit: number): void; - /** - * Resets the checksum to its initial value. - */ - reset(): void; - /** - * Adds a chunk of data for which checksum needs to be computed. - * This can be called many times with new data as it is streamed. - * - * Implementations may override this method which passes second param - * which makes Checksum object stateless. - * - * @param chunk - The buffer to update checksum with. - */ - update(chunk: Uint8Array): void; -} -/** - * @public - * - * A constructor for a Checksum that may be used to calculate an HMAC. Implementing - * classes should not directly hold the provided key in memory beyond the - * lexical scope of the constructor. - */ -export interface ChecksumConstructor { - new (secret?: SourceData): Checksum; -} diff --git a/node_modules/@smithy/types/dist-types/ts3.4/client.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/client.d.ts deleted file mode 100644 index a01cfb7b..00000000 --- a/node_modules/@smithy/types/dist-types/ts3.4/client.d.ts +++ /dev/null @@ -1,49 +0,0 @@ -import { Command } from "./command"; -import { MiddlewareStack } from "./middleware"; -import { MetadataBearer } from "./response"; -import { Exact } from "./util"; -/** - * @public - * - * A type which checks if the client configuration is optional. - * If all entries of the client configuration are optional, it allows client creation without passing any config. - */ -export type CheckOptionalClientConfig = Exact, T> extends true ? [ -] | [ - T -] : [ - T -]; -/** - * @public - * - * function definition for different overrides of client's 'send' function. - */ -export interface InvokeFunction { - (command: Command, options?: any): Promise; - (command: Command, cb: (err: any, data?: OutputType) => void): void; - (command: Command, options: any, cb: (err: any, data?: OutputType) => void): void; - (command: Command, options?: any, cb?: (err: any, data?: OutputType) => void): Promise | void; -} -/** - * @public - * - * Signature that appears on aggregated clients' methods. - */ -export interface InvokeMethod { - (input: InputType, options?: any): Promise; - (input: InputType, cb: (err: any, data?: OutputType) => void): void; - (input: InputType, options: any, cb: (err: any, data?: OutputType) => void): void; - (input: InputType, options?: any, cb?: (err: any, data?: OutputType) => void): Promise | void; -} -/** - * A general interface for service clients, idempotent to browser or node clients - * This type corresponds to SmithyClient(https://github.com/aws/aws-sdk-js-v3/blob/main/packages/smithy-client/src/client.ts). - * It's provided for using without importing the SmithyClient class. - */ -export interface Client { - readonly config: ResolvedClientConfiguration; - middlewareStack: MiddlewareStack; - send: InvokeFunction; - destroy: () => void; -} diff --git a/node_modules/@smithy/types/dist-types/ts3.4/command.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/command.d.ts deleted file mode 100644 index 8d1d6b53..00000000 --- a/node_modules/@smithy/types/dist-types/ts3.4/command.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { Handler, MiddlewareStack } from "./middleware"; -import { MetadataBearer } from "./response"; -/** - * @public - */ -export interface Command { - readonly input: InputType; - readonly middlewareStack: MiddlewareStack; - resolveMiddleware(stack: MiddlewareStack, configuration: ResolvedConfiguration, options: any): Handler; -} diff --git a/node_modules/@smithy/types/dist-types/ts3.4/connection/config.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/connection/config.d.ts deleted file mode 100644 index a7d51372..00000000 --- a/node_modules/@smithy/types/dist-types/ts3.4/connection/config.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -export interface ConnectConfiguration { - /** - * The maximum time in milliseconds that the connection phase of a request - * may take before the connection attempt is abandoned. - */ - requestTimeout?: number; -} diff --git a/node_modules/@smithy/types/dist-types/ts3.4/connection/index.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/connection/index.d.ts deleted file mode 100644 index eaacf8bd..00000000 --- a/node_modules/@smithy/types/dist-types/ts3.4/connection/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * from "./config"; -export * from "./manager"; -export * from "./pool"; diff --git a/node_modules/@smithy/types/dist-types/ts3.4/connection/manager.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/connection/manager.d.ts deleted file mode 100644 index 1fed805c..00000000 --- a/node_modules/@smithy/types/dist-types/ts3.4/connection/manager.d.ts +++ /dev/null @@ -1,28 +0,0 @@ -import { RequestContext } from "../transfer"; -import { ConnectConfiguration } from "./config"; -export interface ConnectionManagerConfiguration { - /** - * Maximum number of allowed concurrent requests per connection. - */ - maxConcurrency?: number; - /** - * Disables concurrent requests per connection. - */ - disableConcurrency?: boolean; -} -export interface ConnectionManager { - /** - * Retrieves a connection from the connection pool if available, - * otherwise establish a new connection - */ - lease(requestContext: RequestContext, connectionConfiguration: ConnectConfiguration): T; - /** - * Releases the connection back to the pool making it potentially - * re-usable by other requests. - */ - release(requestContext: RequestContext, connection: T): void; - /** - * Destroys the connection manager. All connections will be closed. - */ - destroy(): void; -} diff --git a/node_modules/@smithy/types/dist-types/ts3.4/connection/pool.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/connection/pool.d.ts deleted file mode 100644 index 7bb6e0c0..00000000 --- a/node_modules/@smithy/types/dist-types/ts3.4/connection/pool.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -export interface ConnectionPool { - /** - * Retrieve the first connection in the pool - */ - poll(): T | void; - /** - * Release the connection back to the pool making it potentially - * re-usable by other requests. - */ - offerLast(connection: T): void; - /** - * Removes the connection from the pool, and destroys it. - */ - destroy(connection: T): void; - /** - * Implements the iterable protocol and allows arrays to be consumed - * by most syntaxes expecting iterables, such as the spread syntax - * and for...of loops - */ - [Symbol.iterator](): Iterator; -} -export interface CacheKey { - destination: string; -} diff --git a/node_modules/@smithy/types/dist-types/ts3.4/crypto.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/crypto.d.ts deleted file mode 100644 index 467ec865..00000000 --- a/node_modules/@smithy/types/dist-types/ts3.4/crypto.d.ts +++ /dev/null @@ -1,60 +0,0 @@ -/** - * @public - */ -export type SourceData = string | ArrayBuffer | ArrayBufferView; -/** - * @public - * - * An object that provides a hash of data provided in chunks to `update`. The - * hash may be performed incrementally as chunks are received or all at once - * when the hash is finalized, depending on the underlying implementation. - * - * @deprecated use {@link Checksum} - */ -export interface Hash { - /** - * Adds a chunk of data to the hash. If a buffer is provided, the `encoding` - * argument will be ignored. If a string is provided without a specified - * encoding, implementations must assume UTF-8 encoding. - * - * Not all encodings are supported on all platforms, though all must support - * UTF-8. - */ - update(toHash: SourceData, encoding?: "utf8" | "ascii" | "latin1"): void; - /** - * Finalizes the hash and provides a promise that will be fulfilled with the - * raw bytes of the calculated hash. - */ - digest(): Promise; -} -/** - * @public - * - * A constructor for a hash that may be used to calculate an HMAC. Implementing - * classes should not directly hold the provided key in memory beyond the - * lexical scope of the constructor. - * - * @deprecated use {@link ChecksumConstructor} - */ -export interface HashConstructor { - new (secret?: SourceData): Hash; -} -/** - * @public - * - * A function that calculates the hash of a data stream. Determining the hash - * will consume the stream, so only replayable streams should be provided to an - * implementation of this interface. - */ -export interface StreamHasher { - (hashCtor: HashConstructor, stream: StreamType): Promise; -} -/** - * @public - * - * A function that returns a promise fulfilled with bytes from a - * cryptographically secure pseudorandom number generator. - */ -export interface randomValues { - (byteLength: number): Promise; -} diff --git a/node_modules/@smithy/types/dist-types/ts3.4/downlevel-ts3.4/transform/type-transform.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/downlevel-ts3.4/transform/type-transform.d.ts deleted file mode 100644 index 547303f7..00000000 --- a/node_modules/@smithy/types/dist-types/ts3.4/downlevel-ts3.4/transform/type-transform.d.ts +++ /dev/null @@ -1,41 +0,0 @@ -/** - * @public - * - * Transforms any members of the object T having type FromType - * to ToType. This applies only to exact type matches. - * - * This is for the case where FromType is a union and only those fields - * matching the same union should be transformed. - */ -export type Transform = RecursiveTransformExact; -/** - * @internal - * - * Returns ToType if T matches exactly with FromType. - */ -type TransformExact = [ - T -] extends [ - FromType -] ? ([ - FromType -] extends [ - T -] ? ToType : T) : T; -/** - * @internal - * - * Applies TransformExact to members of an object recursively. - */ -type RecursiveTransformExact = T extends Function ? T : T extends object ? { - [key in keyof T]: [ - T[key] - ] extends [ - FromType - ] ? [ - FromType - ] extends [ - T[key] - ] ? ToType : RecursiveTransformExact : RecursiveTransformExact; -} : TransformExact; -export {}; diff --git a/node_modules/@smithy/types/dist-types/ts3.4/encode.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/encode.d.ts deleted file mode 100644 index 1b715532..00000000 --- a/node_modules/@smithy/types/dist-types/ts3.4/encode.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { Message } from "./eventStream"; -export interface MessageEncoder { - encode(message: Message): Uint8Array; -} -export interface MessageDecoder { - decode(message: ArrayBufferView): Message; - feed(message: ArrayBufferView): void; - endOfStream(): void; - getMessage(): AvailableMessage; - getAvailableMessages(): AvailableMessages; -} -export interface AvailableMessage { - getMessage(): Message | undefined; - isEndOfStream(): boolean; -} -export interface AvailableMessages { - getMessages(): Message[]; - isEndOfStream(): boolean; -} diff --git a/node_modules/@smithy/types/dist-types/ts3.4/endpoint.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/endpoint.d.ts deleted file mode 100644 index 2183e563..00000000 --- a/node_modules/@smithy/types/dist-types/ts3.4/endpoint.d.ts +++ /dev/null @@ -1,77 +0,0 @@ -import { AuthScheme } from "./auth/auth"; -/** - * @public - */ -export interface EndpointPartition { - name: string; - dnsSuffix: string; - dualStackDnsSuffix: string; - supportsFIPS: boolean; - supportsDualStack: boolean; -} -/** - * @public - */ -export interface EndpointARN { - partition: string; - service: string; - region: string; - accountId: string; - resourceId: Array; -} -/** - * @public - */ -export declare enum EndpointURLScheme { - HTTP = "http", - HTTPS = "https" -} -/** - * @public - */ -export interface EndpointURL { - /** - * The URL scheme such as http or https. - */ - scheme: EndpointURLScheme; - /** - * The authority is the host and optional port component of the URL. - */ - authority: string; - /** - * The parsed path segment of the URL. - * This value is as-is as provided by the user. - */ - path: string; - /** - * The parsed path segment of the URL. - * This value is guranteed to start and end with a "/". - */ - normalizedPath: string; - /** - * A boolean indicating whether the authority is an IP address. - */ - isIp: boolean; -} -/** - * @public - */ -export type EndpointObjectProperty = string | boolean | { - [key: string]: EndpointObjectProperty; -} | EndpointObjectProperty[]; -/** - * @public - */ -export interface EndpointV2 { - url: URL; - properties?: { - authSchemes?: AuthScheme[]; - } & Record; - headers?: Record; -} -/** - * @public - */ -export type EndpointParameters = { - [name: string]: undefined | string | boolean; -}; diff --git a/node_modules/@smithy/types/dist-types/ts3.4/endpoints/EndpointRuleObject.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/endpoints/EndpointRuleObject.d.ts deleted file mode 100644 index 5d78b5a4..00000000 --- a/node_modules/@smithy/types/dist-types/ts3.4/endpoints/EndpointRuleObject.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { EndpointObjectProperty } from "../endpoint"; -import { ConditionObject, Expression } from "./shared"; -export type EndpointObjectProperties = Record; -export type EndpointObjectHeaders = Record; -export type EndpointObject = { - url: Expression; - properties?: EndpointObjectProperties; - headers?: EndpointObjectHeaders; -}; -export type EndpointRuleObject = { - type: "endpoint"; - conditions?: ConditionObject[]; - endpoint: EndpointObject; - documentation?: string; -}; diff --git a/node_modules/@smithy/types/dist-types/ts3.4/endpoints/ErrorRuleObject.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/endpoints/ErrorRuleObject.d.ts deleted file mode 100644 index c111698c..00000000 --- a/node_modules/@smithy/types/dist-types/ts3.4/endpoints/ErrorRuleObject.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { ConditionObject, Expression } from "./shared"; -export type ErrorRuleObject = { - type: "error"; - conditions?: ConditionObject[]; - error: Expression; - documentation?: string; -}; diff --git a/node_modules/@smithy/types/dist-types/ts3.4/endpoints/RuleSetObject.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/endpoints/RuleSetObject.d.ts deleted file mode 100644 index 756c1569..00000000 --- a/node_modules/@smithy/types/dist-types/ts3.4/endpoints/RuleSetObject.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -import { RuleSetRules } from "./TreeRuleObject"; -export type DeprecatedObject = { - message?: string; - since?: string; -}; -export type ParameterObject = { - type: "String" | "string" | "Boolean" | "boolean"; - default?: string | boolean; - required?: boolean; - documentation?: string; - builtIn?: string; - deprecated?: DeprecatedObject; -}; -export type RuleSetObject = { - version: string; - serviceId?: string; - parameters: Record; - rules: RuleSetRules; -}; diff --git a/node_modules/@smithy/types/dist-types/ts3.4/endpoints/TreeRuleObject.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/endpoints/TreeRuleObject.d.ts deleted file mode 100644 index e0c7f877..00000000 --- a/node_modules/@smithy/types/dist-types/ts3.4/endpoints/TreeRuleObject.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { EndpointRuleObject } from "./EndpointRuleObject"; -import { ErrorRuleObject } from "./ErrorRuleObject"; -import { ConditionObject } from "./shared"; -export type RuleSetRules = Array; -export type TreeRuleObject = { - type: "tree"; - conditions?: ConditionObject[]; - rules: RuleSetRules; - documentation?: string; -}; diff --git a/node_modules/@smithy/types/dist-types/ts3.4/endpoints/index.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/endpoints/index.d.ts deleted file mode 100644 index 8a297895..00000000 --- a/node_modules/@smithy/types/dist-types/ts3.4/endpoints/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export * from "./EndpointRuleObject"; -export * from "./ErrorRuleObject"; -export * from "./RuleSetObject"; -export * from "./shared"; -export * from "./TreeRuleObject"; diff --git a/node_modules/@smithy/types/dist-types/ts3.4/endpoints/shared.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/endpoints/shared.d.ts deleted file mode 100644 index 7c5fa238..00000000 --- a/node_modules/@smithy/types/dist-types/ts3.4/endpoints/shared.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { Logger } from "../logger"; -export type ReferenceObject = { - ref: string; -}; -export type FunctionObject = { - fn: string; - argv: FunctionArgv; -}; -export type FunctionArgv = Array; -export type FunctionReturn = string | boolean | number | { - [key: string]: FunctionReturn; -}; -export type ConditionObject = FunctionObject & { - assign?: string; -}; -export type Expression = string | ReferenceObject | FunctionObject; -export type EndpointParams = Record; -export type EndpointResolverOptions = { - endpointParams: EndpointParams; - logger?: Logger; -}; -export type ReferenceRecord = Record; -export type EvaluateOptions = EndpointResolverOptions & { - referenceRecord: ReferenceRecord; -}; diff --git a/node_modules/@smithy/types/dist-types/ts3.4/eventStream.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/eventStream.d.ts deleted file mode 100644 index b6ab7ee7..00000000 --- a/node_modules/@smithy/types/dist-types/ts3.4/eventStream.d.ts +++ /dev/null @@ -1,108 +0,0 @@ -import { HttpRequest } from "./http"; -import { FinalizeHandler, FinalizeHandlerArguments, FinalizeHandlerOutput, HandlerExecutionContext } from "./middleware"; -import { MetadataBearer } from "./response"; -/** - * @public - * - * An event stream message. The headers and body properties will always be - * defined, with empty headers represented as an object with no keys and an - * empty body represented as a zero-length Uint8Array. - */ -export interface Message { - headers: MessageHeaders; - body: Uint8Array; -} -/** - * @public - */ -export type MessageHeaders = Record; -type HeaderValue = { - type: K; - value: V; -}; -export type BooleanHeaderValue = HeaderValue<"boolean", boolean>; -export type ByteHeaderValue = HeaderValue<"byte", number>; -export type ShortHeaderValue = HeaderValue<"short", number>; -export type IntegerHeaderValue = HeaderValue<"integer", number>; -export type LongHeaderValue = HeaderValue<"long", Int64>; -export type BinaryHeaderValue = HeaderValue<"binary", Uint8Array>; -export type StringHeaderValue = HeaderValue<"string", string>; -export type TimestampHeaderValue = HeaderValue<"timestamp", Date>; -export type UuidHeaderValue = HeaderValue<"uuid", string>; -/** - * @public - */ -export type MessageHeaderValue = BooleanHeaderValue | ByteHeaderValue | ShortHeaderValue | IntegerHeaderValue | LongHeaderValue | BinaryHeaderValue | StringHeaderValue | TimestampHeaderValue | UuidHeaderValue; -/** - * @public - */ -export interface Int64 { - readonly bytes: Uint8Array; - valueOf: () => number; - toString: () => string; -} -/** - * @public - * - * Util functions for serializing or deserializing event stream - */ -export interface EventStreamSerdeContext { - eventStreamMarshaller: EventStreamMarshaller; -} -/** - * @public - * - * A function which deserializes binary event stream message into modeled shape. - */ -export interface EventStreamMarshallerDeserFn { - (body: StreamType, deserializer: (input: Record) => Promise): AsyncIterable; -} -/** - * @public - * - * A function that serializes modeled shape into binary stream message. - */ -export interface EventStreamMarshallerSerFn { - (input: AsyncIterable, serializer: (event: T) => Message): StreamType; -} -/** - * @public - * - * An interface which provides functions for serializing and deserializing binary event stream - * to/from corresponsing modeled shape. - */ -export interface EventStreamMarshaller { - deserialize: EventStreamMarshallerDeserFn; - serialize: EventStreamMarshallerSerFn; -} -/** - * @public - */ -export interface EventStreamRequestSigner { - sign(request: HttpRequest): Promise; -} -/** - * @public - */ -export interface EventStreamPayloadHandler { - handle: (next: FinalizeHandler, args: FinalizeHandlerArguments, context?: HandlerExecutionContext) => Promise>; -} -/** - * @public - */ -export interface EventStreamPayloadHandlerProvider { - (options: any): EventStreamPayloadHandler; -} -/** - * @public - */ -export interface EventStreamSerdeProvider { - (options: any): EventStreamMarshaller; -} -/** - * @public - */ -export interface EventStreamSignerProvider { - (options: any): EventStreamRequestSigner; -} -export {}; diff --git a/node_modules/@smithy/types/dist-types/ts3.4/extensions/checksum.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/extensions/checksum.d.ts deleted file mode 100644 index ebd733d1..00000000 --- a/node_modules/@smithy/types/dist-types/ts3.4/extensions/checksum.d.ts +++ /dev/null @@ -1,55 +0,0 @@ -import { ChecksumConstructor } from "../checksum"; -import { HashConstructor } from "../crypto"; -/** - * @internal - */ -export declare enum AlgorithmId { - MD5 = "md5", - CRC32 = "crc32", - CRC32C = "crc32c", - SHA1 = "sha1", - SHA256 = "sha256" -} -/** - * @internal - */ -export interface ChecksumAlgorithm { - algorithmId(): AlgorithmId; - checksumConstructor(): ChecksumConstructor | HashConstructor; -} -/** - * @deprecated unused. - */ -type ChecksumConfigurationLegacy = { - [other in string | number]: any; -}; -/** - * @internal - */ -export interface ChecksumConfiguration extends ChecksumConfigurationLegacy { - addChecksumAlgorithm(algo: ChecksumAlgorithm): void; - checksumAlgorithms(): ChecksumAlgorithm[]; -} -/** - * @deprecated will be removed for implicit type. - */ -type GetChecksumConfigurationType = (runtimeConfig: Partial<{ - sha256: ChecksumConstructor | HashConstructor; - md5: ChecksumConstructor | HashConstructor; -}>) => ChecksumConfiguration; -/** - * @internal - * @deprecated will be moved to smithy-client. - */ -export declare const getChecksumConfiguration: GetChecksumConfigurationType; -/** - * @deprecated will be removed for implicit type. - */ -type ResolveChecksumRuntimeConfigType = (clientConfig: ChecksumConfiguration) => any; -/** - * @internal - * - * @deprecated will be moved to smithy-client. - */ -export declare const resolveChecksumRuntimeConfig: ResolveChecksumRuntimeConfigType; -export {}; diff --git a/node_modules/@smithy/types/dist-types/ts3.4/extensions/defaultClientConfiguration.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/extensions/defaultClientConfiguration.d.ts deleted file mode 100644 index 40458b45..00000000 --- a/node_modules/@smithy/types/dist-types/ts3.4/extensions/defaultClientConfiguration.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { ChecksumConfiguration } from "./checksum"; -/** - * @deprecated will be replaced by DefaultExtensionConfiguration. - * @internal - * - * Default client configuration consisting various configurations for modifying a service client - */ -export interface DefaultClientConfiguration extends ChecksumConfiguration { -} -/** - * @deprecated will be removed for implicit type. - */ -type GetDefaultConfigurationType = (runtimeConfig: any) => DefaultClientConfiguration; -/** - * @deprecated moving to @smithy/smithy-client. - * @internal - * - * Helper function to resolve default client configuration from runtime config - * - */ -export declare const getDefaultClientConfiguration: GetDefaultConfigurationType; -/** - * @deprecated will be removed for implicit type. - */ -type ResolveDefaultRuntimeConfigType = (clientConfig: DefaultClientConfiguration) => any; -/** - * @deprecated moving to @smithy/smithy-client. - * @internal - * - * Helper function to resolve runtime config from default client configuration - */ -export declare const resolveDefaultRuntimeConfig: ResolveDefaultRuntimeConfigType; -export {}; diff --git a/node_modules/@smithy/types/dist-types/ts3.4/extensions/defaultExtensionConfiguration.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/extensions/defaultExtensionConfiguration.d.ts deleted file mode 100644 index 55f51373..00000000 --- a/node_modules/@smithy/types/dist-types/ts3.4/extensions/defaultExtensionConfiguration.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { ChecksumConfiguration } from "./checksum"; -import { RetryStrategyConfiguration } from "./retry"; -/** - * @internal - * - * Default extension configuration consisting various configurations for modifying a service client - */ -export interface DefaultExtensionConfiguration extends ChecksumConfiguration, RetryStrategyConfiguration { -} diff --git a/node_modules/@smithy/types/dist-types/ts3.4/extensions/index.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/extensions/index.d.ts deleted file mode 100644 index 55edb164..00000000 --- a/node_modules/@smithy/types/dist-types/ts3.4/extensions/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export * from "./defaultClientConfiguration"; -export * from "./defaultExtensionConfiguration"; -export { AlgorithmId, ChecksumAlgorithm, ChecksumConfiguration } from "./checksum"; -export { RetryStrategyConfiguration } from "./retry"; diff --git a/node_modules/@smithy/types/dist-types/ts3.4/extensions/retry.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/extensions/retry.d.ts deleted file mode 100644 index 3471d087..00000000 --- a/node_modules/@smithy/types/dist-types/ts3.4/extensions/retry.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -import { RetryStrategyV2 } from "../retry"; -import { Provider, RetryStrategy } from "../util"; -/** - * A configuration interface with methods called by runtime extension - * @internal - */ -export interface RetryStrategyConfiguration { - /** - * Set retry strategy used for all http requests - * @param retryStrategy - */ - setRetryStrategy(retryStrategy: Provider): void; - /** - * Get retry strategy used for all http requests - * @param retryStrategy - */ - retryStrategy(): Provider; -} diff --git a/node_modules/@smithy/types/dist-types/ts3.4/externals-check/browser-externals-check.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/externals-check/browser-externals-check.d.ts deleted file mode 100644 index b709d7f4..00000000 --- a/node_modules/@smithy/types/dist-types/ts3.4/externals-check/browser-externals-check.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { Exact } from "../transform/exact"; -/** - * @public - * - * A checked type that resolves to Blob if it is defined as more than a stub, otherwise - * resolves to 'never' so as not to widen the type of unions containing Blob - * excessively. - */ -export type BlobOptionalType = BlobDefined extends true ? Blob : Unavailable; -/** - * @public - * - * A checked type that resolves to ReadableStream if it is defined as more than a stub, otherwise - * resolves to 'never' so as not to widen the type of unions containing ReadableStream - * excessively. - */ -export type ReadableStreamOptionalType = ReadableStreamDefined extends true ? ReadableStream : Unavailable; -/** - * @public - * - * Indicates a type is unavailable if it resolves to this. - */ -export type Unavailable = never; -/** - * @internal - * - * Whether the global types define more than a stub for ReadableStream. - */ -export type ReadableStreamDefined = Exact extends true ? false : true; -/** - * @internal - * - * Whether the global types define more than a stub for Blob. - */ -export type BlobDefined = Exact extends true ? false : true; diff --git a/node_modules/@smithy/types/dist-types/ts3.4/http.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/http.d.ts deleted file mode 100644 index 8b156ebb..00000000 --- a/node_modules/@smithy/types/dist-types/ts3.4/http.d.ts +++ /dev/null @@ -1,105 +0,0 @@ -import { AbortSignal } from "./abort"; -import { URI } from "./uri"; -/** - * @public - * - * @deprecated use {@link EndpointV2} from `@smithy/types`. - */ -export interface Endpoint { - protocol: string; - hostname: string; - port?: number; - path: string; - query?: QueryParameterBag; -} -/** - * @public - * - * Interface an HTTP request class. Contains - * addressing information in addition to standard message properties. - */ -export interface HttpRequest extends HttpMessage, URI { - method: string; -} -/** - * @public - * - * Represents an HTTP message as received in reply to a request. Contains a - * numeric status code in addition to standard message properties. - */ -export interface HttpResponse extends HttpMessage { - statusCode: number; -} -/** - * @public - * - * Represents an HTTP message with headers and an optional static or streaming - * body. bode: ArrayBuffer | ArrayBufferView | string | Uint8Array | Readable | ReadableStream; - */ -export interface HttpMessage { - headers: HeaderBag; - body?: any; -} -/** - * @public - * - * A mapping of query parameter names to strings or arrays of strings, with the - * second being used when a parameter contains a list of values. Value can be set - * to null when query is not in key-value pairs shape - */ -export type QueryParameterBag = Record | null>; -export type FieldOptions = { - name: string; - kind?: FieldPosition; - values?: string[]; -}; -export declare enum FieldPosition { - HEADER = 0, - TRAILER = 1 -} -/** - * @public - * - * A mapping of header names to string values. Multiple values for the same - * header should be represented as a single string with values separated by - * `, `. - * - * Keys should be considered case insensitive, even if this is not enforced by a - * particular implementation. For example, given the following HeaderBag, where - * keys differ only in case: - * - * ```json - * { - * 'x-request-date': '2000-01-01T00:00:00Z', - * 'X-Request-Date': '2001-01-01T00:00:00Z' - * } - * ``` - * - * The SDK may at any point during processing remove one of the object - * properties in favor of the other. The headers may or may not be combined, and - * the SDK will not deterministically select which header candidate to use. - */ -export type HeaderBag = Record; -/** - * @public - * - * Represents an HTTP message with headers and an optional static or streaming - * body. bode: ArrayBuffer | ArrayBufferView | string | Uint8Array | Readable | ReadableStream; - */ -export interface HttpMessage { - headers: HeaderBag; - body?: any; -} -/** - * @public - * - * Represents the options that may be passed to an Http Handler. - */ -export interface HttpHandlerOptions { - abortSignal?: AbortSignal; - /** - * The maximum time in milliseconds that the connection phase of a request - * may take before the connection attempt is abandoned. - */ - requestTimeout?: number; -} diff --git a/node_modules/@smithy/types/dist-types/ts3.4/identity/apiKeyIdentity.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/identity/apiKeyIdentity.d.ts deleted file mode 100644 index 4aee7a21..00000000 --- a/node_modules/@smithy/types/dist-types/ts3.4/identity/apiKeyIdentity.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { Identity, IdentityProvider } from "../identity/identity"; -/** - * @public - */ -export interface ApiKeyIdentity extends Identity { - /** - * The literal API Key - */ - readonly apiKey: string; -} -/** - * @public - */ -export type ApiKeyIdentityProvider = IdentityProvider; diff --git a/node_modules/@smithy/types/dist-types/ts3.4/identity/awsCredentialIdentity.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/identity/awsCredentialIdentity.d.ts deleted file mode 100644 index 0b8950dc..00000000 --- a/node_modules/@smithy/types/dist-types/ts3.4/identity/awsCredentialIdentity.d.ts +++ /dev/null @@ -1,23 +0,0 @@ -import { Identity, IdentityProvider } from "./identity"; -/** - * @public - */ -export interface AwsCredentialIdentity extends Identity { - /** - * AWS access key ID - */ - readonly accessKeyId: string; - /** - * AWS secret access key - */ - readonly secretAccessKey: string; - /** - * A security or session token to use with these credentials. Usually - * present for temporary credentials. - */ - readonly sessionToken?: string; -} -/** - * @public - */ -export type AwsCredentialIdentityProvider = IdentityProvider; diff --git a/node_modules/@smithy/types/dist-types/ts3.4/identity/identity.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/identity/identity.d.ts deleted file mode 100644 index eaa7e5dc..00000000 --- a/node_modules/@smithy/types/dist-types/ts3.4/identity/identity.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -/** - * @public - */ -export interface Identity { - /** - * A `Date` when the identity or credential will no longer be accepted. - */ - readonly expiration?: Date; -} -/** - * @public - */ -export interface IdentityProvider { - (identityProperties?: Record): Promise; -} diff --git a/node_modules/@smithy/types/dist-types/ts3.4/identity/index.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/identity/index.d.ts deleted file mode 100644 index 031a0fe1..00000000 --- a/node_modules/@smithy/types/dist-types/ts3.4/identity/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -export * from "./apiKeyIdentity"; -export * from "./awsCredentialIdentity"; -export * from "./identity"; -export * from "./tokenIdentity"; diff --git a/node_modules/@smithy/types/dist-types/ts3.4/identity/tokenIdentity.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/identity/tokenIdentity.d.ts deleted file mode 100644 index 33783eb1..00000000 --- a/node_modules/@smithy/types/dist-types/ts3.4/identity/tokenIdentity.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import { Identity, IdentityProvider } from "../identity/identity"; -/** - * @internal - */ -export interface TokenIdentity extends Identity { - /** - * The literal token string - */ - readonly token: string; -} -/** - * @internal - */ -export type TokenIdentityProvider = IdentityProvider; diff --git a/node_modules/@smithy/types/dist-types/ts3.4/index.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/index.d.ts deleted file mode 100644 index e9c71818..00000000 --- a/node_modules/@smithy/types/dist-types/ts3.4/index.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -export * from "./abort"; -export * from "./auth"; -export * from "./blob/blob-payload-input-types"; -export * from "./checksum"; -export * from "./client"; -export * from "./command"; -export * from "./connection"; -export * from "./crypto"; -export * from "./encode"; -export * from "./endpoint"; -export * from "./endpoints"; -export * from "./eventStream"; -export * from "./extensions"; -export * from "./http"; -export * from "./identity"; -export * from "./logger"; -export * from "./middleware"; -export * from "./pagination"; -export * from "./profile"; -export * from "./response"; -export * from "./retry"; -export * from "./serde"; -export * from "./shapes"; -export * from "./signature"; -export * from "./stream"; -export * from "./streaming-payload/streaming-blob-common-types"; -export * from "./streaming-payload/streaming-blob-payload-input-types"; -export * from "./streaming-payload/streaming-blob-payload-output-types"; -export * from "./transfer"; -export * from "./transform/client-payload-blob-type-narrow"; -export * from "./transform/no-undefined"; -export * from "./transform/type-transform"; -export * from "./uri"; -export * from "./util"; -export * from "./waiter"; diff --git a/node_modules/@smithy/types/dist-types/ts3.4/logger.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/logger.d.ts deleted file mode 100644 index cc69a11f..00000000 --- a/node_modules/@smithy/types/dist-types/ts3.4/logger.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -/** - * @public - * - * Represents a logger object that is available in HandlerExecutionContext - * throughout the middleware stack. - */ -export interface Logger { - trace?: (...content: any[]) => void; - debug: (...content: any[]) => void; - info: (...content: any[]) => void; - warn: (...content: any[]) => void; - error: (...content: any[]) => void; -} diff --git a/node_modules/@smithy/types/dist-types/ts3.4/middleware.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/middleware.d.ts deleted file mode 100644 index 1296c81c..00000000 --- a/node_modules/@smithy/types/dist-types/ts3.4/middleware.d.ts +++ /dev/null @@ -1,510 +0,0 @@ -import { AuthScheme, HttpAuthDefinition } from "./auth/auth"; -import { EndpointV2 } from "./endpoint"; -import { Logger } from "./logger"; -import { UserAgent } from "./util"; -/** - * @public - */ -export interface InitializeHandlerArguments { - /** - * User input to a command. Reflects the userland representation of the - * union of data types the command can effectively handle. - */ - input: Input; -} -/** - * @public - */ -export interface InitializeHandlerOutput extends DeserializeHandlerOutput { - output: Output; -} -/** - * @public - */ -export interface SerializeHandlerArguments extends InitializeHandlerArguments { - /** - * The user input serialized as a request object. The request object is unknown, - * so you cannot modify it directly. When work with request, you need to guard its - * type to e.g. HttpRequest with 'instanceof' operand - * - * During the build phase of the execution of a middleware stack, a built - * request may or may not be available. - */ - request?: unknown; -} -/** - * @public - */ -export interface SerializeHandlerOutput extends InitializeHandlerOutput { -} -/** - * @public - */ -export interface BuildHandlerArguments extends FinalizeHandlerArguments { -} -/** - * @public - */ -export interface BuildHandlerOutput extends InitializeHandlerOutput { -} -/** - * @public - */ -export interface FinalizeHandlerArguments extends SerializeHandlerArguments { - /** - * The user input serialized as a request. - */ - request: unknown; -} -/** - * @public - */ -export interface FinalizeHandlerOutput extends InitializeHandlerOutput { -} -/** - * @public - */ -export interface DeserializeHandlerArguments extends FinalizeHandlerArguments { -} -/** - * @public - */ -export interface DeserializeHandlerOutput { - /** - * The raw response object from runtime is deserialized to structured output object. - * The response object is unknown so you cannot modify it directly. When work with - * response, you need to guard its type to e.g. HttpResponse with 'instanceof' operand. - * - * During the deserialize phase of the execution of a middleware stack, a deserialized - * response may or may not be available - */ - response: unknown; - output?: Output; -} -/** - * @public - */ -export interface InitializeHandler { - /** - * Asynchronously converts an input object into an output object. - * - * @param args - An object containing a input to the command as well as any - * associated or previously generated execution artifacts. - */ - (args: InitializeHandlerArguments): Promise>; -} -/** - * @public - */ -export type Handler = InitializeHandler; -/** - * @public - */ -export interface SerializeHandler { - /** - * Asynchronously converts an input object into an output object. - * - * @param args - An object containing a input to the command as well as any - * associated or previously generated execution artifacts. - */ - (args: SerializeHandlerArguments): Promise>; -} -/** - * @public - */ -export interface FinalizeHandler { - /** - * Asynchronously converts an input object into an output object. - * - * @param args - An object containing a input to the command as well as any - * associated or previously generated execution artifacts. - */ - (args: FinalizeHandlerArguments): Promise>; -} -/** - * @public - */ -export interface BuildHandler { - (args: BuildHandlerArguments): Promise>; -} -/** - * @public - */ -export interface DeserializeHandler { - (args: DeserializeHandlerArguments): Promise>; -} -/** - * @public - * - * A factory function that creates functions implementing the `Handler` - * interface. - */ -export interface InitializeMiddleware { - /** - * @param next - The handler to invoke after this middleware has operated on - * the user input and before this middleware operates on the output. - * - * @param context - Invariant data and functions for use by the handler. - */ - (next: InitializeHandler, context: HandlerExecutionContext): InitializeHandler; -} -/** - * @public - * - * A factory function that creates functions implementing the `BuildHandler` - * interface. - */ -export interface SerializeMiddleware { - /** - * @param next - The handler to invoke after this middleware has operated on - * the user input and before this middleware operates on the output. - * - * @param context - Invariant data and functions for use by the handler. - */ - (next: SerializeHandler, context: HandlerExecutionContext): SerializeHandler; -} -/** - * @public - * - * A factory function that creates functions implementing the `FinalizeHandler` - * interface. - */ -export interface FinalizeRequestMiddleware { - /** - * @param next - The handler to invoke after this middleware has operated on - * the user input and before this middleware operates on the output. - * - * @param context - Invariant data and functions for use by the handler. - */ - (next: FinalizeHandler, context: HandlerExecutionContext): FinalizeHandler; -} -/** - * @public - */ -export interface BuildMiddleware { - (next: BuildHandler, context: HandlerExecutionContext): BuildHandler; -} -/** - * @public - */ -export interface DeserializeMiddleware { - (next: DeserializeHandler, context: HandlerExecutionContext): DeserializeHandler; -} -/** - * @public - */ -export type MiddlewareType = InitializeMiddleware | SerializeMiddleware | BuildMiddleware | FinalizeRequestMiddleware | DeserializeMiddleware; -/** - * @public - * - * A factory function that creates the terminal handler atop which a middleware - * stack sits. - */ -export interface Terminalware { - (context: HandlerExecutionContext): DeserializeHandler; -} -/** - * @public - */ -export type Step = "initialize" | "serialize" | "build" | "finalizeRequest" | "deserialize"; -/** - * @public - */ -export type Priority = "high" | "normal" | "low"; -/** - * @public - */ -export interface HandlerOptions { - /** - * Handlers are ordered using a "step" that describes the stage of command - * execution at which the handler will be executed. The available steps are: - * - * - initialize: The input is being prepared. Examples of typical - * initialization tasks include injecting default options computing - * derived parameters. - * - serialize: The input is complete and ready to be serialized. Examples - * of typical serialization tasks include input validation and building - * an HTTP request from user input. - * - build: The input has been serialized into an HTTP request, but that - * request may require further modification. Any request alterations - * will be applied to all retries. Examples of typical build tasks - * include injecting HTTP headers that describe a stable aspect of the - * request, such as `Content-Length` or a body checksum. - * - finalizeRequest: The request is being prepared to be sent over the wire. The - * request in this stage should already be semantically complete and - * should therefore only be altered as match the recipient's - * expectations. Examples of typical finalization tasks include request - * signing and injecting hop-by-hop headers. - * - deserialize: The response has arrived, the middleware here will deserialize - * the raw response object to structured response - * - * Unlike initialization and build handlers, which are executed once - * per operation execution, finalization and deserialize handlers will be - * executed foreach HTTP request sent. - * - * @defaultValue 'initialize' - */ - step?: Step; - /** - * A list of strings to any that identify the general purpose or important - * characteristics of a given handler. - */ - tags?: Array; - /** - * A unique name to refer to a middleware - */ - name?: string; - /** - * @internal - * Aliases allows for middleware to be found by multiple names besides {@link HandlerOptions.name}. - * This allows for references to replaced middleware to continue working, e.g. replacing - * multiple auth-specific middleware with a single generic auth middleware. - */ - aliases?: Array; - /** - * A flag to override the existing middleware with the same name. Without - * setting it, adding middleware with duplicated name will throw an exception. - * @internal - */ - override?: boolean; -} -/** - * @public - */ -export interface AbsoluteLocation { - /** - * By default middleware will be added to individual step in un-guaranteed order. - * In the case that - * - * @defaultValue 'normal' - */ - priority?: Priority; -} -/** - * @public - */ -export type Relation = "before" | "after"; -/** - * @public - */ -export interface RelativeLocation { - /** - * Specify the relation to be before or after a know middleware. - */ - relation: Relation; - /** - * A known middleware name to indicate inserting middleware's location. - */ - toMiddleware: string; -} -/** - * @public - */ -export type RelativeMiddlewareOptions = RelativeLocation & Pick>; -/** - * @public - */ -export interface InitializeHandlerOptions extends HandlerOptions { - step?: "initialize"; -} -/** - * @public - */ -export interface SerializeHandlerOptions extends HandlerOptions { - step: "serialize"; -} -/** - * @public - */ -export interface BuildHandlerOptions extends HandlerOptions { - step: "build"; -} -/** - * @public - */ -export interface FinalizeRequestHandlerOptions extends HandlerOptions { - step: "finalizeRequest"; -} -/** - * @public - */ -export interface DeserializeHandlerOptions extends HandlerOptions { - step: "deserialize"; -} -/** - * @public - * - * A stack storing middleware. It can be resolved into a handler. It supports 2 - * approaches for adding middleware: - * 1. Adding middleware to specific step with `add()`. The order of middleware - * added into same step is determined by order of adding them. If one middleware - * needs to be executed at the front of the step or at the end of step, set - * `priority` options to `high` or `low`. - * 2. Adding middleware to location relative to known middleware with `addRelativeTo()`. - * This is useful when given middleware must be executed before or after specific - * middleware(`toMiddleware`). You can add a middleware relatively to another - * middleware which also added relatively. But eventually, this relative middleware - * chain **must** be 'anchored' by a middleware that added using `add()` API - * with absolute `step` and `priority`. This mothod will throw if specified - * `toMiddleware` is not found. - */ -export interface MiddlewareStack extends Pluggable { - /** - * Add middleware to the stack to be executed during the "initialize" step, - * optionally specifying a priority, tags and name - */ - add(middleware: InitializeMiddleware, options?: InitializeHandlerOptions & AbsoluteLocation): void; - /** - * Add middleware to the stack to be executed during the "serialize" step, - * optionally specifying a priority, tags and name - */ - add(middleware: SerializeMiddleware, options: SerializeHandlerOptions & AbsoluteLocation): void; - /** - * Add middleware to the stack to be executed during the "build" step, - * optionally specifying a priority, tags and name - */ - add(middleware: BuildMiddleware, options: BuildHandlerOptions & AbsoluteLocation): void; - /** - * Add middleware to the stack to be executed during the "finalizeRequest" step, - * optionally specifying a priority, tags and name - */ - add(middleware: FinalizeRequestMiddleware, options: FinalizeRequestHandlerOptions & AbsoluteLocation): void; - /** - * Add middleware to the stack to be executed during the "deserialize" step, - * optionally specifying a priority, tags and name - */ - add(middleware: DeserializeMiddleware, options: DeserializeHandlerOptions & AbsoluteLocation): void; - /** - * Add middleware to a stack position before or after a known middleware,optionally - * specifying name and tags. - */ - addRelativeTo(middleware: MiddlewareType, options: RelativeMiddlewareOptions): void; - /** - * Apply a customization function to mutate the middleware stack, often - * used for customizations that requires mutating multiple middleware. - */ - use(pluggable: Pluggable): void; - /** - * Create a shallow clone of this stack. Step bindings and handler priorities - * and tags are preserved in the copy. - */ - clone(): MiddlewareStack; - /** - * Removes middleware from the stack. - * - * If a string is provided, it will be treated as middleware name. If a middleware - * is inserted with the given name, it will be removed. - * - * If a middleware class is provided, all usages thereof will be removed. - */ - remove(toRemove: MiddlewareType | string): boolean; - /** - * Removes middleware that contains given tag - * - * Multiple middleware will potentially be removed - */ - removeByTag(toRemove: string): boolean; - /** - * Create a stack containing the middlewares in this stack as well as the - * middlewares in the `from` stack. Neither source is modified, and step - * bindings and handler priorities and tags are preserved in the copy. - */ - concat(from: MiddlewareStack): MiddlewareStack; - /** - * Returns a list of the current order of middleware in the stack. - * This does not execute the middleware functions, nor does it - * provide a reference to the stack itself. - */ - identify(): string[]; - /** - * @internal - * - * When an operation is called using this stack, - * it will log its list of middleware to the console using - * the identify function. - * - * @param toggle - set whether to log on resolve. - * If no argument given, returns the current value. - */ - identifyOnResolve(toggle?: boolean): boolean; - /** - * Builds a single handler function from zero or more middleware classes and - * a core handler. The core handler is meant to send command objects to AWS - * services and return promises that will resolve with the operation result - * or be rejected with an error. - * - * When a composed handler is invoked, the arguments will pass through all - * middleware in a defined order, and the return from the innermost handler - * will pass through all middleware in the reverse of that order. - */ - resolve(handler: DeserializeHandler, context: HandlerExecutionContext): InitializeHandler; -} -/** - * @internal - */ -export declare const SMITHY_CONTEXT_KEY = "__smithy_context"; -/** - * @public - * - * Data and helper objects that are not expected to change from one execution of - * a composed handler to another. - */ -export interface HandlerExecutionContext { - /** - * A logger that may be invoked by any handler during execution of an - * operation. - */ - logger?: Logger; - /** - * Name of the service the operation is being sent to. - */ - clientName?: string; - /** - * Name of the operation being executed. - */ - commandName?: string; - /** - * Additional user agent that inferred by middleware. It can be used to save - * the internal user agent sections without overriding the `customUserAgent` - * config in clients. - */ - userAgent?: UserAgent; - /** - * Resolved by the endpointMiddleware function of `@smithy/middleware-endpoint` - * in the serialization stage. - */ - endpointV2?: EndpointV2; - /** - * Set at the same time as endpointV2. - */ - authSchemes?: AuthScheme[]; - /** - * The current auth configuration that has been set by any auth middleware and - * that will prevent from being set more than once. - */ - currentAuthConfig?: HttpAuthDefinition; - /** - * Used by DynamoDbDocumentClient. - */ - dynamoDbDocumentClientOptions?: Partial<{ - overrideInputFilterSensitiveLog(...args: any[]): string | void; - overrideOutputFilterSensitiveLog(...args: any[]): string | void; - }>; - /** - * @internal - * Context for Smithy properties - */ - [SMITHY_CONTEXT_KEY]?: Record; - [key: string]: any; -} -/** - * @public - */ -export interface Pluggable { - /** - * A function that mutate the passed in middleware stack. Functions implementing - * this interface can add, remove, modify existing middleware stack from clients - * or commands - */ - applyToStack: (stack: MiddlewareStack) => void; -} diff --git a/node_modules/@smithy/types/dist-types/ts3.4/pagination.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/pagination.d.ts deleted file mode 100644 index 247c713a..00000000 --- a/node_modules/@smithy/types/dist-types/ts3.4/pagination.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { Client } from "./client"; -/** - * @public - * - * Expected type definition of a paginator. - */ -export type Paginator = AsyncGenerator; -/** - * @public - * - * Expected paginator configuration passed to an operation. Services will extend - * this interface definition and may type client further. - */ -export interface PaginationConfiguration { - client: Client; - pageSize?: number; - startingToken?: any; - /** - * For some APIs, such as CloudWatchLogs events, the next page token will always - * be present. - * - * When true, this config field will have the paginator stop when the token doesn't change - * instead of when it is not present. - */ - stopOnSameToken?: boolean; -} diff --git a/node_modules/@smithy/types/dist-types/ts3.4/profile.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/profile.d.ts deleted file mode 100644 index 1b3dba79..00000000 --- a/node_modules/@smithy/types/dist-types/ts3.4/profile.d.ts +++ /dev/null @@ -1,30 +0,0 @@ -/** - * @public - */ -export declare enum IniSectionType { - PROFILE = "profile", - SSO_SESSION = "sso-session", - SERVICES = "services" -} -/** - * @public - */ -export type IniSection = Record; -/** - * @public - * - * @deprecated Please use {@link IniSection} - */ -export interface Profile extends IniSection { -} -/** - * @public - */ -export type ParsedIniData = Record; -/** - * @public - */ -export interface SharedConfigFiles { - credentialsFile: ParsedIniData; - configFile: ParsedIniData; -} diff --git a/node_modules/@smithy/types/dist-types/ts3.4/response.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/response.d.ts deleted file mode 100644 index 3d8a45a2..00000000 --- a/node_modules/@smithy/types/dist-types/ts3.4/response.d.ts +++ /dev/null @@ -1,40 +0,0 @@ -/** - * @public - */ -export interface ResponseMetadata { - /** - * The status code of the last HTTP response received for this operation. - */ - httpStatusCode?: number; - /** - * A unique identifier for the last request sent for this operation. Often - * requested by AWS service teams to aid in debugging. - */ - requestId?: string; - /** - * A secondary identifier for the last request sent. Used for debugging. - */ - extendedRequestId?: string; - /** - * A tertiary identifier for the last request sent. Used for debugging. - */ - cfId?: string; - /** - * The number of times this operation was attempted. - */ - attempts?: number; - /** - * The total amount of time (in milliseconds) that was spent waiting between - * retry attempts. - */ - totalRetryDelay?: number; -} -/** - * @public - */ -export interface MetadataBearer { - /** - * Metadata pertaining to this request. - */ - $metadata: ResponseMetadata; -} diff --git a/node_modules/@smithy/types/dist-types/ts3.4/retry.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/retry.d.ts deleted file mode 100644 index 888f0cf6..00000000 --- a/node_modules/@smithy/types/dist-types/ts3.4/retry.d.ts +++ /dev/null @@ -1,128 +0,0 @@ -/** - * @public - */ -export type RetryErrorType = -/** - * This is a connection level error such as a socket timeout, socket connect - * error, tls negotiation timeout etc... - * Typically these should never be applied for non-idempotent request types - * since in this scenario, it's impossible to know whether the operation had - * a side effect on the server. - */ -"TRANSIENT" -/** - * This is an error where the server explicitly told the client to back off, - * such as a 429 or 503 Http error. - */ - | "THROTTLING" -/** - * This is a server error that isn't explicitly throttling but is considered - * by the client to be something that should be retried. - */ - | "SERVER_ERROR" -/** - * Doesn't count against any budgets. This could be something like a 401 - * challenge in Http. - */ - | "CLIENT_ERROR"; -/** - * @public - */ -export interface RetryErrorInfo { - errorType: RetryErrorType; - /** - * Protocol hint. This could come from Http's 'retry-after' header or - * something from MQTT or any other protocol that has the ability to convey - * retry info from a peer. - * - * @returns the Date after which a retry should be attempted. - */ - retryAfterHint?: Date; -} -/** - * @public - */ -export interface RetryBackoffStrategy { - /** - * @returns the number of milliseconds to wait before retrying an action. - */ - computeNextBackoffDelay(retryAttempt: number): number; -} -/** - * @public - */ -export interface StandardRetryBackoffStrategy extends RetryBackoffStrategy { - /** - * Sets the delayBase used to compute backoff delays. - * @param delayBase - - */ - setDelayBase(delayBase: number): void; -} -/** - * @public - */ -export interface RetryStrategyOptions { - backoffStrategy: RetryBackoffStrategy; - maxRetriesBase: number; -} -/** - * @public - */ -export interface RetryToken { - /** - * @returns the current count of retry. - */ - getRetryCount(): number; - /** - * @returns the number of milliseconds to wait before retrying an action. - */ - getRetryDelay(): number; -} -/** - * @public - */ -export interface StandardRetryToken extends RetryToken { - /** - * @returns the cost of the last retry attempt. - */ - getRetryCost(): number | undefined; -} -/** - * @public - */ -export interface RetryStrategyV2 { - /** - * Called before any retries (for the first call to the operation). It either - * returns a retry token or an error upon the failure to acquire a token prior. - * - * tokenScope is arbitrary and out of scope for this component. However, - * adding it here offers us a lot of future flexibility for outage detection. - * For example, it could be "us-east-1" on a shared retry strategy, or - * "us-west-2-c:dynamodb". - */ - acquireInitialRetryToken(retryTokenScope: string): Promise; - /** - * After a failed operation call, this function is invoked to refresh the - * retryToken returned by acquireInitialRetryToken(). This function can - * either choose to allow another retry and send a new or updated token, - * or reject the retry attempt and report the error either in an exception - * or returning an error. - */ - refreshRetryTokenForRetry(tokenToRenew: RetryToken, errorInfo: RetryErrorInfo): Promise; - /** - * Upon successful completion of the operation, this function is called - * to record that the operation was successful. - */ - recordSuccess(token: RetryToken): void; -} -/** - * @public - */ -export type ExponentialBackoffJitterType = "DEFAULT" | "NONE" | "FULL" | "DECORRELATED"; -/** - * @public - */ -export interface ExponentialBackoffStrategyOptions { - jitterType: ExponentialBackoffJitterType; - backoffScaleValue?: number; -} diff --git a/node_modules/@smithy/types/dist-types/ts3.4/serde.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/serde.d.ts deleted file mode 100644 index 86e7b7a3..00000000 --- a/node_modules/@smithy/types/dist-types/ts3.4/serde.d.ts +++ /dev/null @@ -1,104 +0,0 @@ -import { Endpoint } from "./http"; -import { RequestHandler } from "./transfer"; -import { Decoder, Encoder, Provider } from "./util"; -/** - * @public - * - * Interface for object requires an Endpoint set. - */ -export interface EndpointBearer { - endpoint: Provider; -} -/** - * @public - */ -export interface StreamCollector { - /** - * A function that converts a stream into an array of bytes. - * - * @param stream - The low-level native stream from browser or Nodejs runtime - */ - (stream: any): Promise; -} -/** - * @public - * - * Request and Response serde util functions and settings for AWS services - */ -export interface SerdeContext extends EndpointBearer { - base64Encoder: Encoder; - base64Decoder: Decoder; - utf8Encoder: Encoder; - utf8Decoder: Decoder; - streamCollector: StreamCollector; - requestHandler: RequestHandler; - disableHostPrefix: boolean; -} -/** - * @public - */ -export interface RequestSerializer { - /** - * Converts the provided `input` into a request object - * - * @param input - The user input to serialize. - * - * @param context - Context containing runtime-specific util functions. - */ - (input: any, context: Context): Promise; -} -/** - * @public - */ -export interface ResponseDeserializer { - /** - * Converts the output of an operation into JavaScript types. - * - * @param output - The HTTP response received from the service - * - * @param context - context containing runtime-specific util functions. - */ - (output: ResponseType, context: Context): Promise; -} -/** - * The interface contains mix-in utility functions to transfer the runtime-specific - * stream implementation to specified format. Each stream can ONLY be transformed - * once. - */ -export interface SdkStreamMixin { - transformToByteArray: () => Promise; - transformToString: (encoding?: string) => Promise; - transformToWebStream: () => ReadableStream; -} -/** - * @public - * - * The type describing a runtime-specific stream implementation with mix-in - * utility functions. - */ -export type SdkStream = BaseStream & SdkStreamMixin; -/** - * @public - * - * Indicates that the member of type T with - * key StreamKey have been extended - * with the SdkStreamMixin helper methods. - */ -export type WithSdkStreamMixin = { - [key in keyof T]: key extends StreamKey ? SdkStream : T[key]; -}; -/** - * Interface for internal function to inject stream utility functions - * implementation - * - * @internal - */ -export interface SdkStreamMixinInjector { - (stream: unknown): SdkStreamMixin; -} -/** - * @internal - */ -export interface SdkStreamSerdeContext { - sdkStreamMixin: SdkStreamMixinInjector; -} diff --git a/node_modules/@smithy/types/dist-types/ts3.4/shapes.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/shapes.d.ts deleted file mode 100644 index de533b99..00000000 --- a/node_modules/@smithy/types/dist-types/ts3.4/shapes.d.ts +++ /dev/null @@ -1,72 +0,0 @@ -import { HttpResponse } from "./http"; -import { MetadataBearer } from "./response"; -/** - * @public - * - * A document type represents an untyped JSON-like value. - * - * Not all protocols support document types, and the serialization format of a - * document type is protocol specific. All JSON protocols SHOULD support - * document types and they SHOULD serialize document types inline as normal - * JSON values. - */ -export type DocumentType = null | boolean | number | string | DocumentType[] | { - [prop: string]: DocumentType; -}; -/** - * @public - * - * A structure shape with the error trait. - * https://smithy.io/2.0/spec/behavior-traits.html#smithy-api-retryable-trait - */ -export interface RetryableTrait { - /** - * Indicates that the error is a retryable throttling error. - */ - readonly throttling?: boolean; -} -/** - * @public - * - * Type that is implemented by all Smithy shapes marked with the - * error trait. - * @deprecated - */ -export interface SmithyException { - /** - * The shape ID name of the exception. - */ - readonly name: string; - /** - * Whether the client or server are at fault. - */ - readonly $fault: "client" | "server"; - /** - * The service that encountered the exception. - */ - readonly $service?: string; - /** - * Indicates that an error MAY be retried by the client. - */ - readonly $retryable?: RetryableTrait; - /** - * Reference to low-level HTTP response object. - */ - readonly $response?: HttpResponse; -} -/** - * @public - * - * @deprecated See {@link https://aws.amazon.com/blogs/developer/service-error-handling-modular-aws-sdk-js/} - * - * This type should not be used in your application. - * Users of the AWS SDK for JavaScript v3 service clients should prefer to - * use the specific Exception classes corresponding to each operation. - * These can be found as code in the deserializer for the operation's Command class, - * or as declarations in the service model file in codegen/sdk-codegen/aws-models. - * - * If no exceptions are enumerated by a particular Command operation, - * the base exception for the service should be used. Each client exports - * a base ServiceException prefixed with the service name. - */ -export type SdkError = Error & Partial & Partial; diff --git a/node_modules/@smithy/types/dist-types/ts3.4/signature.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/signature.d.ts deleted file mode 100644 index 6cbbfa7c..00000000 --- a/node_modules/@smithy/types/dist-types/ts3.4/signature.d.ts +++ /dev/null @@ -1,150 +0,0 @@ -import { Message } from "./eventStream"; -import { HttpRequest } from "./http"; -/** - * @public - * - * A `Date` object, a unix (epoch) timestamp in seconds, or a string that can be - * understood by the JavaScript `Date` constructor. - */ -export type DateInput = number | string | Date; -/** - * @public - */ -export interface SigningArguments { - /** - * The date and time to be used as signature metadata. This value should be - * a Date object, a unix (epoch) timestamp, or a string that can be - * understood by the JavaScript `Date` constructor.If not supplied, the - * value returned by `new Date()` will be used. - */ - signingDate?: DateInput; - /** - * The service signing name. It will override the service name of the signer - * in current invocation - */ - signingService?: string; - /** - * The region name to sign the request. It will override the signing region of the - * signer in current invocation - */ - signingRegion?: string; -} -/** - * @public - */ -export interface RequestSigningArguments extends SigningArguments { - /** - * A set of strings whose members represents headers that cannot be signed. - * All headers in the provided request will have their names converted to - * lower case and then checked for existence in the unsignableHeaders set. - */ - unsignableHeaders?: Set; - /** - * A set of strings whose members represents headers that should be signed. - * Any values passed here will override those provided via unsignableHeaders, - * allowing them to be signed. - * - * All headers in the provided request will have their names converted to - * lower case before signing. - */ - signableHeaders?: Set; -} -/** - * @public - */ -export interface RequestPresigningArguments extends RequestSigningArguments { - /** - * The number of seconds before the presigned URL expires - */ - expiresIn?: number; - /** - * A set of strings whose representing headers that should not be hoisted - * to presigned request's query string. If not supplied, the presigner - * moves all the AWS-specific headers (starting with `x-amz-`) to the request - * query string. If supplied, these headers remain in the presigned request's - * header. - * All headers in the provided request will have their names converted to - * lower case and then checked for existence in the unhoistableHeaders set. - */ - unhoistableHeaders?: Set; -} -/** - * @public - */ -export interface EventSigningArguments extends SigningArguments { - priorSignature: string; -} -/** - * @public - */ -export interface RequestPresigner { - /** - * Signs a request for future use. - * - * The request will be valid until either the provided `expiration` time has - * passed or the underlying credentials have expired. - * - * @param requestToSign - The request that should be signed. - * @param options - Additional signing options. - */ - presign(requestToSign: HttpRequest, options?: RequestPresigningArguments): Promise; -} -/** - * @public - * - * An object that signs request objects with AWS credentials using one of the - * AWS authentication protocols. - */ -export interface RequestSigner { - /** - * Sign the provided request for immediate dispatch. - */ - sign(requestToSign: HttpRequest, options?: RequestSigningArguments): Promise; -} -/** - * @public - */ -export interface StringSigner { - /** - * Sign the provided `stringToSign` for use outside of the context of - * request signing. Typical uses include signed policy generation. - */ - sign(stringToSign: string, options?: SigningArguments): Promise; -} -/** - * @public - */ -export interface FormattedEvent { - headers: Uint8Array; - payload: Uint8Array; -} -/** - * @public - */ -export interface EventSigner { - /** - * Sign the individual event of the event stream. - */ - sign(event: FormattedEvent, options: EventSigningArguments): Promise; -} -/** - * @public - */ -export interface SignableMessage { - message: Message; - priorSignature: string; -} -/** - * @public - */ -export interface SignedMessage { - message: Message; - signature: string; -} -/** - * @public - */ -export interface MessageSigner { - signMessage(message: SignableMessage, args: SigningArguments): Promise; - sign(event: SignableMessage, options: SigningArguments): Promise; -} diff --git a/node_modules/@smithy/types/dist-types/ts3.4/stream.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/stream.d.ts deleted file mode 100644 index 1e2b85d7..00000000 --- a/node_modules/@smithy/types/dist-types/ts3.4/stream.d.ts +++ /dev/null @@ -1,22 +0,0 @@ -import { ChecksumConstructor } from "./checksum"; -import { HashConstructor, StreamHasher } from "./crypto"; -import { BodyLengthCalculator, Encoder } from "./util"; -/** - * @public - */ -export interface GetAwsChunkedEncodingStreamOptions { - base64Encoder?: Encoder; - bodyLengthChecker: BodyLengthCalculator; - checksumAlgorithmFn?: ChecksumConstructor | HashConstructor; - checksumLocationName?: string; - streamHasher?: StreamHasher; -} -/** - * @public - * - * A function that returns Readable Stream which follows aws-chunked encoding stream. - * It optionally adds checksum if options are provided. - */ -export interface GetAwsChunkedEncodingStream { - (readableStream: StreamType, options: GetAwsChunkedEncodingStreamOptions): StreamType; -} diff --git a/node_modules/@smithy/types/dist-types/ts3.4/streaming-payload/streaming-blob-common-types.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/streaming-payload/streaming-blob-common-types.d.ts deleted file mode 100644 index 27088db2..00000000 --- a/node_modules/@smithy/types/dist-types/ts3.4/streaming-payload/streaming-blob-common-types.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -/// -import { Readable } from "stream"; -import { BlobOptionalType, ReadableStreamOptionalType } from "../externals-check/browser-externals-check"; -/** - * @public - * - * This is the union representing the modeled blob type with streaming trait - * in a generic format that does not relate to HTTP input or output payloads. - * - * Note: the non-streaming blob type is represented by Uint8Array, but because - * the streaming blob type is always in the request/response paylod, it has - * historically been handled with different types. - * - * @see https://smithy.io/2.0/spec/simple-types.html#blob - * - * For compatibility with its historical representation, it must contain at least - * Readble (Node.js), Blob (browser), and ReadableStream (browser). - * - * @see StreamingPayloadInputTypes for FAQ about mixing types from multiple environments. - */ -export type StreamingBlobTypes = NodeJsRuntimeStreamingBlobTypes | BrowserRuntimeStreamingBlobTypes; -/** - * @public - * - * Node.js streaming blob type. - */ -export type NodeJsRuntimeStreamingBlobTypes = Readable; -/** - * @public - * - * Browser streaming blob types. - */ -export type BrowserRuntimeStreamingBlobTypes = ReadableStreamOptionalType | BlobOptionalType; diff --git a/node_modules/@smithy/types/dist-types/ts3.4/streaming-payload/streaming-blob-payload-input-types.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/streaming-payload/streaming-blob-payload-input-types.d.ts deleted file mode 100644 index 46e3709b..00000000 --- a/node_modules/@smithy/types/dist-types/ts3.4/streaming-payload/streaming-blob-payload-input-types.d.ts +++ /dev/null @@ -1,61 +0,0 @@ -/// -import { Readable } from "stream"; -import { BlobOptionalType, ReadableStreamOptionalType } from "../externals-check/browser-externals-check"; -/** - * @public - * - * This union represents a superset of the compatible types you - * can use for streaming payload inputs. - * - * FAQ: - * Why does the type union mix mutually exclusive runtime types, namely - * Node.js and browser types? - * - * There are several reasons: - * 1. For backwards compatibility. - * 2. As a convenient compromise solution so that users in either environment may use the types - * without customization. - * 3. The SDK does not have static type information about the exact implementation - * of the HTTP RequestHandler being used in your client(s) (e.g. fetch, XHR, node:http, or node:http2), - * given that it is chosen at runtime. There are multiple possible request handlers - * in both the Node.js and browser runtime environments. - * - * Rather than restricting the type to a known common format (Uint8Array, for example) - * which doesn't include a universal streaming format in the currently supported Node.js versions, - * the type declaration is widened to multiple possible formats. - * It is up to the user to ultimately select a compatible format with the - * runtime and HTTP handler implementation they are using. - * - * Usage: - * The typical solution we expect users to have is to manually narrow the - * type when needed, picking the appropriate one out of the union according to the - * runtime environment and specific request handler. - * There is also the type utility "NodeJsClient", "BrowserClient" and more - * exported from this package. These can be applied at the client level - * to pre-narrow these streaming payload blobs. For usage see the readme.md - * in the root of the @smithy/types NPM package. - */ -export type StreamingBlobPayloadInputTypes = NodeJsRuntimeStreamingBlobPayloadInputTypes | BrowserRuntimeStreamingBlobPayloadInputTypes; -/** - * @public - * - * Streaming payload input types in the Node.js environment. - * These are derived from the types compatible with the request body used by node:http. - * - * Note: not all types are signable by the standard SignatureV4 signer when - * used as the request body. For example, in Node.js a Readable stream - * is not signable by the default signer. - * They are included in the union because it may be intended in some cases, - * but the expected types are primarily string, Uint8Array, and Buffer. - * - * Additional details may be found in the internal - * function "getPayloadHash" in the SignatureV4 module. - */ -export type NodeJsRuntimeStreamingBlobPayloadInputTypes = string | Uint8Array | Buffer | Readable; -/** - * @public - * - * Streaming payload input types in the browser environment. - * These are derived from the types compatible with fetch's Request.body. - */ -export type BrowserRuntimeStreamingBlobPayloadInputTypes = string | Uint8Array | ReadableStreamOptionalType | BlobOptionalType; diff --git a/node_modules/@smithy/types/dist-types/ts3.4/streaming-payload/streaming-blob-payload-output-types.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/streaming-payload/streaming-blob-payload-output-types.d.ts deleted file mode 100644 index e344a46a..00000000 --- a/node_modules/@smithy/types/dist-types/ts3.4/streaming-payload/streaming-blob-payload-output-types.d.ts +++ /dev/null @@ -1,52 +0,0 @@ -/// -import { IncomingMessage } from "http"; -import { Readable } from "stream"; -import { BlobOptionalType, ReadableStreamOptionalType } from "../externals-check/browser-externals-check"; -import { SdkStream } from "../serde"; -/** - * @public - * - * This union represents a superset of the types you may receive - * in streaming payload outputs. - * - * @see StreamingPayloadInputTypes for FAQ about mixing types from multiple environments. - * - * To highlight the upstream docs about the SdkStream mixin: - * - * The interface contains mix-in (via Object.assign) methods to transform the runtime-specific - * stream implementation to specified format. Each stream can ONLY be transformed - * once. - * - * The available methods are described on the SdkStream type via SdkStreamMixin. - */ -export type StreamingBlobPayloadOutputTypes = NodeJsRuntimeStreamingBlobPayloadOutputTypes | BrowserRuntimeStreamingBlobPayloadOutputTypes; -/** - * @public - * - * Streaming payload output types in the Node.js environment. - * - * This is by default the IncomingMessage type from node:http responses when - * using the default node-http-handler in Node.js environments. - * - * It can be other Readable types like node:http2's ClientHttp2Stream - * such as when using the node-http2-handler. - * - * The SdkStreamMixin adds methods on this type to help transform (collect) it to - * other formats. - */ -export type NodeJsRuntimeStreamingBlobPayloadOutputTypes = SdkStream; -/** - * @public - * - * Streaming payload output types in the browser environment. - * - * This is by default fetch's Response.body type (ReadableStream) when using - * the default fetch-http-handler in browser-like environments. - * - * It may be a Blob, such as when using the XMLHttpRequest handler - * and receiving an arraybuffer response body. - * - * The SdkStreamMixin adds methods on this type to help transform (collect) it to - * other formats. - */ -export type BrowserRuntimeStreamingBlobPayloadOutputTypes = SdkStream; diff --git a/node_modules/@smithy/types/dist-types/ts3.4/transfer.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/transfer.d.ts deleted file mode 100644 index c6ac2e1e..00000000 --- a/node_modules/@smithy/types/dist-types/ts3.4/transfer.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -/** - * @public - */ -export type RequestHandlerOutput = { - response: ResponseType; -}; -/** - * @public - */ -export interface RequestHandler { - /** - * metadata contains information of a handler. For example - * 'h2' refers this handler is for handling HTTP/2 requests, - * whereas 'h1' refers handling HTTP1 requests - */ - metadata?: RequestHandlerMetadata; - destroy?: () => void; - handle: (request: RequestType, handlerOptions?: HandlerOptions) => Promise>; -} -/** - * @public - */ -export interface RequestHandlerMetadata { - handlerProtocol: RequestHandlerProtocol | string; -} -export declare enum RequestHandlerProtocol { - HTTP_0_9 = "http/0.9", - HTTP_1_0 = "http/1.0", - TDS_8_0 = "tds/8.0" -} -export interface RequestContext { - destination: URL; -} diff --git a/node_modules/@smithy/types/dist-types/ts3.4/transform/client-method-transforms.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/transform/client-method-transforms.d.ts deleted file mode 100644 index 691270b0..00000000 --- a/node_modules/@smithy/types/dist-types/ts3.4/transform/client-method-transforms.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { Command } from "../command"; -import { MetadataBearer } from "../response"; -import { StreamingBlobPayloadOutputTypes } from "../streaming-payload/streaming-blob-payload-output-types"; -import { Transform } from "./type-transform"; -/** - * @internal - * - * Narrowed version of InvokeFunction used in Client::send. - */ -export interface NarrowedInvokeFunction { - (command: Command, options?: HttpHandlerOptions): Promise>; - (command: Command, cb: (err: unknown, data?: Transform) => void): void; - (command: Command, options: HttpHandlerOptions, cb: (err: unknown, data?: Transform) => void): void; - (command: Command, options?: HttpHandlerOptions, cb?: (err: unknown, data?: Transform) => void): Promise> | void; -} -/** - * @internal - * - * Narrowed version of InvokeMethod used in aggregated Client methods. - */ -export interface NarrowedInvokeMethod { - (input: InputType, options?: HttpHandlerOptions): Promise>; - (input: InputType, cb: (err: unknown, data?: Transform) => void): void; - (input: InputType, options: HttpHandlerOptions, cb: (err: unknown, data?: Transform) => void): void; - (input: InputType, options?: HttpHandlerOptions, cb?: (err: unknown, data?: OutputType) => void): Promise> | void; -} diff --git a/node_modules/@smithy/types/dist-types/ts3.4/transform/client-payload-blob-type-narrow.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/transform/client-payload-blob-type-narrow.d.ts deleted file mode 100644 index b27d582f..00000000 --- a/node_modules/@smithy/types/dist-types/ts3.4/transform/client-payload-blob-type-narrow.d.ts +++ /dev/null @@ -1,84 +0,0 @@ -/// -import { IncomingMessage } from "http"; -import { ClientHttp2Stream } from "http2"; -import { InvokeFunction, InvokeMethod } from "../client"; -import { HttpHandlerOptions } from "../http"; -import { SdkStream } from "../serde"; -import { BrowserRuntimeStreamingBlobPayloadInputTypes, NodeJsRuntimeStreamingBlobPayloadInputTypes, StreamingBlobPayloadInputTypes } from "../streaming-payload/streaming-blob-payload-input-types"; -import { NarrowedInvokeFunction, NarrowedInvokeMethod } from "./client-method-transforms"; -import { Transform } from "./type-transform"; -/** - * @public - * - * Creates a type with a given client type that narrows payload blob output - * types to SdkStream. - * - * This can be used for clients with the NodeHttpHandler requestHandler, - * the default in Node.js when not using HTTP2. - * - * Usage example: - * ```typescript - * const client = new YourClient({}) as NodeJsClient; - * ``` - */ -export type NodeJsClient = NarrowPayloadBlobTypes, ClientType>; -/** - * @public - * Variant of NodeJsClient for node:http2. - */ -export type NodeJsHttp2Client = NarrowPayloadBlobTypes, ClientType>; -/** - * @public - * - * Creates a type with a given client type that narrows payload blob output - * types to SdkStream. - * - * This can be used for clients with the FetchHttpHandler requestHandler, - * which is the default in browser environments. - * - * Usage example: - * ```typescript - * const client = new YourClient({}) as BrowserClient; - * ``` - */ -export type BrowserClient = NarrowPayloadBlobTypes, ClientType>; -/** - * @public - * - * Variant of BrowserClient for XMLHttpRequest. - */ -export type BrowserXhrClient = NarrowPayloadBlobTypes, ClientType>; -/** - * @public - * - * @deprecated use NarrowPayloadBlobTypes. - * - * Narrow a given Client's blob payload outputs to the given type T. - */ -export type NarrowPayloadBlobOutputType = { - [key in keyof ClientType]: [ - ClientType[key] - ] extends [ - InvokeFunction - ] ? NarrowedInvokeFunction : [ - ClientType[key] - ] extends [ - InvokeMethod - ] ? NarrowedInvokeMethod : ClientType[key]; -}; -/** - * @public - * - * Narrow a Client's blob payload input and output types to I and O. - */ -export type NarrowPayloadBlobTypes = { - [key in keyof ClientType]: [ - ClientType[key] - ] extends [ - InvokeFunction - ] ? NarrowedInvokeFunction, OutputTypes, ConfigType> : [ - ClientType[key] - ] extends [ - InvokeMethod - ] ? NarrowedInvokeMethod, FunctionOutputTypes> : ClientType[key]; -}; diff --git a/node_modules/@smithy/types/dist-types/ts3.4/transform/exact.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/transform/exact.d.ts deleted file mode 100644 index 3a812df3..00000000 --- a/node_modules/@smithy/types/dist-types/ts3.4/transform/exact.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -/** - * @internal - * - * Checks that A and B extend each other. - */ -export type Exact = [ - A -] extends [ - B -] ? ([ - B -] extends [ - A -] ? true : false) : false; diff --git a/node_modules/@smithy/types/dist-types/ts3.4/transform/no-undefined.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/transform/no-undefined.d.ts deleted file mode 100644 index a118b600..00000000 --- a/node_modules/@smithy/types/dist-types/ts3.4/transform/no-undefined.d.ts +++ /dev/null @@ -1,82 +0,0 @@ -import { InvokeFunction, InvokeMethod } from "../client"; -/** - * @public - * - * This type is intended as a type helper for generated clients. - * When initializing client, cast it to this type by passing - * the client constructor type as the type parameter. - * - * It will then recursively remove "undefined" as a union type from all - * input and output shapes' members. Note, this does not affect - * any member that is optional (?) such as outputs with no required members. - * - * @example - * ```ts - * const client = new Client({}) as AssertiveClient; - * ``` - */ -export type AssertiveClient = NarrowClientIOTypes; -/** - * @public - * - * This is similar to AssertiveClient but additionally changes all - * output types to (recursive) Required so as to bypass all output nullability guards. - */ -export type UncheckedClient = UncheckedClientOutputTypes; -/** - * @internal - * - * Excludes undefined recursively. - */ -export type NoUndefined = T extends Function ? T : [ - T -] extends [ - object -] ? { - [key in keyof T]: NoUndefined; -} : Exclude; -/** - * @internal - * - * Excludes undefined and optional recursively. - */ -export type RecursiveRequired = T extends Function ? T : [ - T -] extends [ - object -] ? { - [key in keyof T]-?: RecursiveRequired; -} : Exclude; -/** - * @internal - * - * Removes undefined from unions. - */ -type NarrowClientIOTypes = { - [key in keyof ClientType]: [ - ClientType[key] - ] extends [ - InvokeFunction - ] ? InvokeFunction, NoUndefined, ConfigType> : [ - ClientType[key] - ] extends [ - InvokeMethod - ] ? InvokeMethod, NoUndefined> : ClientType[key]; -}; -/** - * @internal - * - * Removes undefined from unions and adds yolo output types. - */ -type UncheckedClientOutputTypes = { - [key in keyof ClientType]: [ - ClientType[key] - ] extends [ - InvokeFunction - ] ? InvokeFunction, RecursiveRequired, ConfigType> : [ - ClientType[key] - ] extends [ - InvokeMethod - ] ? InvokeMethod, RecursiveRequired> : ClientType[key]; -}; -export {}; diff --git a/node_modules/@smithy/types/dist-types/ts3.4/transform/type-transform.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/transform/type-transform.d.ts deleted file mode 100644 index 547303f7..00000000 --- a/node_modules/@smithy/types/dist-types/ts3.4/transform/type-transform.d.ts +++ /dev/null @@ -1,41 +0,0 @@ -/** - * @public - * - * Transforms any members of the object T having type FromType - * to ToType. This applies only to exact type matches. - * - * This is for the case where FromType is a union and only those fields - * matching the same union should be transformed. - */ -export type Transform = RecursiveTransformExact; -/** - * @internal - * - * Returns ToType if T matches exactly with FromType. - */ -type TransformExact = [ - T -] extends [ - FromType -] ? ([ - FromType -] extends [ - T -] ? ToType : T) : T; -/** - * @internal - * - * Applies TransformExact to members of an object recursively. - */ -type RecursiveTransformExact = T extends Function ? T : T extends object ? { - [key in keyof T]: [ - T[key] - ] extends [ - FromType - ] ? [ - FromType - ] extends [ - T[key] - ] ? ToType : RecursiveTransformExact : RecursiveTransformExact; -} : TransformExact; -export {}; diff --git a/node_modules/@smithy/types/dist-types/ts3.4/uri.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/uri.d.ts deleted file mode 100644 index 4e7adb41..00000000 --- a/node_modules/@smithy/types/dist-types/ts3.4/uri.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { QueryParameterBag } from "./http"; -/** - * @internal - * - * Represents the components parts of a Uniform Resource Identifier used to - * construct the target location of a Request. - */ -export type URI = { - protocol: string; - hostname: string; - port?: number; - path: string; - query?: QueryParameterBag; - username?: string; - password?: string; - fragment?: string; -}; diff --git a/node_modules/@smithy/types/dist-types/ts3.4/util.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/util.d.ts deleted file mode 100644 index 206cc1f6..00000000 --- a/node_modules/@smithy/types/dist-types/ts3.4/util.d.ts +++ /dev/null @@ -1,172 +0,0 @@ -import { Endpoint } from "./http"; -import { FinalizeHandler, FinalizeHandlerArguments, FinalizeHandlerOutput } from "./middleware"; -import { MetadataBearer } from "./response"; -/** - * @public - * - * A generic which checks if Type1 is exactly same as Type2. - */ -export type Exact = [ - Type1 -] extends [ - Type2 -] ? ([ - Type2 -] extends [ - Type1 -] ? true : false) : false; -/** - * @public - * - * A function that, given a TypedArray of bytes, can produce a string - * representation thereof. - * - * @example An encoder function that converts bytes to hexadecimal - * representation would return `'deadbeef'` when given - * `new Uint8Array([0xde, 0xad, 0xbe, 0xef])`. - */ -export interface Encoder { - (input: Uint8Array): string; -} -/** - * @public - * - * A function that, given a string, can derive the bytes represented by that - * string. - * - * @example A decoder function that converts bytes to hexadecimal - * representation would return `new Uint8Array([0xde, 0xad, 0xbe, 0xef])` when - * given the string `'deadbeef'`. - */ -export interface Decoder { - (input: string): Uint8Array; -} -/** - * @public - * - * A function that, when invoked, returns a promise that will be fulfilled with - * a value of type T. - * - * @example A function that reads credentials from shared SDK configuration - * files, assuming roles and collecting MFA tokens as necessary. - */ -export interface Provider { - (): Promise; -} -/** - * @public - * - * A tuple that represents an API name and optional version - * of a library built using the AWS SDK. - */ -export type UserAgentPair = [ - /*name*/ string, - /*version*/ string -]; -/** - * @public - * - * User agent data that to be put into the request's user - * agent. - */ -export type UserAgent = UserAgentPair[]; -/** - * @public - * - * Parses a URL in string form into an Endpoint object. - */ -export interface UrlParser { - (url: string | URL): Endpoint; -} -/** - * @public - * - * A function that, when invoked, returns a promise that will be fulfilled with - * a value of type T. It memoizes the result from the previous invocation - * instead of calling the underlying resources every time. - * - * You can force the provider to refresh the memoized value by invoke the - * function with optional parameter hash with `forceRefresh` boolean key and - * value `true`. - * - * @example A function that reads credentials from IMDS service that could - * return expired credentials. The SDK will keep using the expired credentials - * until an unretryable service error requiring a force refresh of the - * credentials. - */ -export interface MemoizedProvider { - (options?: { - forceRefresh?: boolean; - }): Promise; -} -/** - * @public - * - * A function that, given a request body, determines the - * length of the body. This is used to determine the Content-Length - * that should be sent with a request. - * - * @example A function that reads a file stream and calculates - * the size of the file. - */ -export interface BodyLengthCalculator { - (body: any): number | undefined; -} -/** - * @public - * - * Object containing regionalization information of - * AWS services. - */ -export interface RegionInfo { - hostname: string; - partition: string; - path?: string; - signingService?: string; - signingRegion?: string; -} -/** - * @public - * - * Options to pass when calling {@link RegionInfoProvider} - */ -export interface RegionInfoProviderOptions { - /** - * Enables IPv6/IPv4 dualstack endpoint. - * @defaultValue false - */ - useDualstackEndpoint: boolean; - /** - * Enables FIPS compatible endpoints. - * @defaultValue false - */ - useFipsEndpoint: boolean; -} -/** - * @public - * - * Function returns designated service's regionalization - * information from given region. Each service client - * comes with its regionalization provider. it serves - * to provide the default values of related configurations - */ -export interface RegionInfoProvider { - (region: string, options?: RegionInfoProviderOptions): Promise; -} -/** - * @public - * - * Interface that specifies the retry behavior - */ -export interface RetryStrategy { - /** - * The retry mode describing how the retry strategy control the traffic flow. - */ - mode?: string; - /** - * the retry behavior the will invoke the next handler and handle the retry accordingly. - * This function should also update the $metadata from the response accordingly. - * @see {@link ResponseMetadata} - */ - retry: (next: FinalizeHandler, args: FinalizeHandlerArguments) => Promise>; -} diff --git a/node_modules/@smithy/types/dist-types/ts3.4/waiter.d.ts b/node_modules/@smithy/types/dist-types/ts3.4/waiter.d.ts deleted file mode 100644 index 69c12c83..00000000 --- a/node_modules/@smithy/types/dist-types/ts3.4/waiter.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { AbortController } from "./abort"; -/** - * @public - */ -export interface WaiterConfiguration { - /** - * Required service client - */ - client: Client; - /** - * The amount of time in seconds a user is willing to wait for a waiter to complete. - */ - maxWaitTime: number; - /** - * @deprecated Use abortSignal - * Abort controller. Used for ending the waiter early. - */ - abortController?: AbortController; - /** - * Abort Signal. Used for ending the waiter early. - */ - abortSignal?: AbortController["signal"]; - /** - * The minimum amount of time to delay between retries in seconds. This is the - * floor of the exponential backoff. This value defaults to service default - * if not specified. This value MUST be less than or equal to maxDelay and greater than 0. - */ - minDelay?: number; - /** - * The maximum amount of time to delay between retries in seconds. This is the - * ceiling of the exponential backoff. This value defaults to service default - * if not specified. If specified, this value MUST be greater than or equal to 1. - */ - maxDelay?: number; -} diff --git a/node_modules/@smithy/types/dist-types/uri.d.ts b/node_modules/@smithy/types/dist-types/uri.d.ts deleted file mode 100644 index d7b874c5..00000000 --- a/node_modules/@smithy/types/dist-types/uri.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { QueryParameterBag } from "./http"; -/** - * @internal - * - * Represents the components parts of a Uniform Resource Identifier used to - * construct the target location of a Request. - */ -export type URI = { - protocol: string; - hostname: string; - port?: number; - path: string; - query?: QueryParameterBag; - username?: string; - password?: string; - fragment?: string; -}; diff --git a/node_modules/@smithy/types/dist-types/util.d.ts b/node_modules/@smithy/types/dist-types/util.d.ts deleted file mode 100644 index 7c820648..00000000 --- a/node_modules/@smithy/types/dist-types/util.d.ts +++ /dev/null @@ -1,161 +0,0 @@ -import { Endpoint } from "./http"; -import { FinalizeHandler, FinalizeHandlerArguments, FinalizeHandlerOutput } from "./middleware"; -import { MetadataBearer } from "./response"; -/** - * @public - * - * A generic which checks if Type1 is exactly same as Type2. - */ -export type Exact = [Type1] extends [Type2] ? ([Type2] extends [Type1] ? true : false) : false; -/** - * @public - * - * A function that, given a TypedArray of bytes, can produce a string - * representation thereof. - * - * @example An encoder function that converts bytes to hexadecimal - * representation would return `'deadbeef'` when given - * `new Uint8Array([0xde, 0xad, 0xbe, 0xef])`. - */ -export interface Encoder { - (input: Uint8Array): string; -} -/** - * @public - * - * A function that, given a string, can derive the bytes represented by that - * string. - * - * @example A decoder function that converts bytes to hexadecimal - * representation would return `new Uint8Array([0xde, 0xad, 0xbe, 0xef])` when - * given the string `'deadbeef'`. - */ -export interface Decoder { - (input: string): Uint8Array; -} -/** - * @public - * - * A function that, when invoked, returns a promise that will be fulfilled with - * a value of type T. - * - * @example A function that reads credentials from shared SDK configuration - * files, assuming roles and collecting MFA tokens as necessary. - */ -export interface Provider { - (): Promise; -} -/** - * @public - * - * A tuple that represents an API name and optional version - * of a library built using the AWS SDK. - */ -export type UserAgentPair = [name: string, version?: string]; -/** - * @public - * - * User agent data that to be put into the request's user - * agent. - */ -export type UserAgent = UserAgentPair[]; -/** - * @public - * - * Parses a URL in string form into an Endpoint object. - */ -export interface UrlParser { - (url: string | URL): Endpoint; -} -/** - * @public - * - * A function that, when invoked, returns a promise that will be fulfilled with - * a value of type T. It memoizes the result from the previous invocation - * instead of calling the underlying resources every time. - * - * You can force the provider to refresh the memoized value by invoke the - * function with optional parameter hash with `forceRefresh` boolean key and - * value `true`. - * - * @example A function that reads credentials from IMDS service that could - * return expired credentials. The SDK will keep using the expired credentials - * until an unretryable service error requiring a force refresh of the - * credentials. - */ -export interface MemoizedProvider { - (options?: { - forceRefresh?: boolean; - }): Promise; -} -/** - * @public - * - * A function that, given a request body, determines the - * length of the body. This is used to determine the Content-Length - * that should be sent with a request. - * - * @example A function that reads a file stream and calculates - * the size of the file. - */ -export interface BodyLengthCalculator { - (body: any): number | undefined; -} -/** - * @public - * - * Object containing regionalization information of - * AWS services. - */ -export interface RegionInfo { - hostname: string; - partition: string; - path?: string; - signingService?: string; - signingRegion?: string; -} -/** - * @public - * - * Options to pass when calling {@link RegionInfoProvider} - */ -export interface RegionInfoProviderOptions { - /** - * Enables IPv6/IPv4 dualstack endpoint. - * @defaultValue false - */ - useDualstackEndpoint: boolean; - /** - * Enables FIPS compatible endpoints. - * @defaultValue false - */ - useFipsEndpoint: boolean; -} -/** - * @public - * - * Function returns designated service's regionalization - * information from given region. Each service client - * comes with its regionalization provider. it serves - * to provide the default values of related configurations - */ -export interface RegionInfoProvider { - (region: string, options?: RegionInfoProviderOptions): Promise; -} -/** - * @public - * - * Interface that specifies the retry behavior - */ -export interface RetryStrategy { - /** - * The retry mode describing how the retry strategy control the traffic flow. - */ - mode?: string; - /** - * the retry behavior the will invoke the next handler and handle the retry accordingly. - * This function should also update the $metadata from the response accordingly. - * @see {@link ResponseMetadata} - */ - retry: (next: FinalizeHandler, args: FinalizeHandlerArguments) => Promise>; -} diff --git a/node_modules/@smithy/types/dist-types/waiter.d.ts b/node_modules/@smithy/types/dist-types/waiter.d.ts deleted file mode 100644 index 64ff7fff..00000000 --- a/node_modules/@smithy/types/dist-types/waiter.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -import { AbortController } from "./abort"; -/** - * @public - */ -export interface WaiterConfiguration { - /** - * Required service client - */ - client: Client; - /** - * The amount of time in seconds a user is willing to wait for a waiter to complete. - */ - maxWaitTime: number; - /** - * @deprecated Use abortSignal - * Abort controller. Used for ending the waiter early. - */ - abortController?: AbortController; - /** - * Abort Signal. Used for ending the waiter early. - */ - abortSignal?: AbortController["signal"]; - /** - * The minimum amount of time to delay between retries in seconds. This is the - * floor of the exponential backoff. This value defaults to service default - * if not specified. This value MUST be less than or equal to maxDelay and greater than 0. - */ - minDelay?: number; - /** - * The maximum amount of time to delay between retries in seconds. This is the - * ceiling of the exponential backoff. This value defaults to service default - * if not specified. If specified, this value MUST be greater than or equal to 1. - */ - maxDelay?: number; -} diff --git a/node_modules/@smithy/types/package.json b/node_modules/@smithy/types/package.json deleted file mode 100644 index a3830810..00000000 --- a/node_modules/@smithy/types/package.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "name": "@smithy/types", - "version": "2.6.0", - "scripts": { - "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", - "build:cjs": "yarn g:tsc -p tsconfig.cjs.json", - "build:es": "yarn g:tsc -p tsconfig.es.json", - "build:types": "yarn g:tsc -p tsconfig.types.json", - "build:types:downlevel": "rimraf dist-types/ts3.4 && downlevel-dts dist-types dist-types/ts3.4 && node scripts/downlevel", - "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz", - "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"", - "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"", - "test": "yarn g:tsc -p tsconfig.test.json", - "extract:docs": "api-extractor run --local" - }, - "main": "./dist-cjs/index.js", - "module": "./dist-es/index.js", - "types": "./dist-types/index.d.ts", - "author": { - "name": "AWS Smithy Team", - "email": "", - "url": "https://smithy.io" - }, - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "typesVersions": { - "<=4.0": { - "dist-types/*": [ - "dist-types/ts3.4/*" - ] - } - }, - "files": [ - "dist-*/**" - ], - "homepage": "https://github.com/awslabs/smithy-typescript/tree/main/packages/types", - "repository": { - "type": "git", - "url": "https://github.com/awslabs/smithy-typescript.git", - "directory": "packages/types" - }, - "devDependencies": { - "@tsconfig/recommended": "1.0.1", - "concurrently": "7.0.0", - "downlevel-dts": "0.10.1", - "rimraf": "3.0.2", - "typedoc": "0.23.23" - }, - "typedoc": { - "entryPoint": "src/index.ts" - }, - "publishConfig": { - "directory": ".release/package" - } -} \ No newline at end of file diff --git a/node_modules/@smithy/url-parser/LICENSE b/node_modules/@smithy/url-parser/LICENSE deleted file mode 100644 index dd65ae06..00000000 --- a/node_modules/@smithy/url-parser/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/node_modules/@smithy/url-parser/README.md b/node_modules/@smithy/url-parser/README.md deleted file mode 100644 index 0d8d61ef..00000000 --- a/node_modules/@smithy/url-parser/README.md +++ /dev/null @@ -1,10 +0,0 @@ -# @smithy/url-parser - -[![NPM version](https://img.shields.io/npm/v/@smithy/url-parser/latest.svg)](https://www.npmjs.com/package/@smithy/url-parser) -[![NPM downloads](https://img.shields.io/npm/dm/@smithy/url-parser.svg)](https://www.npmjs.com/package/@smithy/url-parser) - -> An internal package - -## Usage - -You probably shouldn't, at least directly. diff --git a/node_modules/@smithy/url-parser/dist-cjs/index.js b/node_modules/@smithy/url-parser/dist-cjs/index.js deleted file mode 100644 index aa00da16..00000000 --- a/node_modules/@smithy/url-parser/dist-cjs/index.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.parseUrl = void 0; -const querystring_parser_1 = require("@smithy/querystring-parser"); -const parseUrl = (url) => { - if (typeof url === "string") { - return (0, exports.parseUrl)(new URL(url)); - } - const { hostname, pathname, port, protocol, search } = url; - let query; - if (search) { - query = (0, querystring_parser_1.parseQueryString)(search); - } - return { - hostname, - port: port ? parseInt(port) : undefined, - protocol, - path: pathname, - query, - }; -}; -exports.parseUrl = parseUrl; diff --git a/node_modules/@smithy/url-parser/dist-es/index.js b/node_modules/@smithy/url-parser/dist-es/index.js deleted file mode 100644 index 811f8bf8..00000000 --- a/node_modules/@smithy/url-parser/dist-es/index.js +++ /dev/null @@ -1,18 +0,0 @@ -import { parseQueryString } from "@smithy/querystring-parser"; -export const parseUrl = (url) => { - if (typeof url === "string") { - return parseUrl(new URL(url)); - } - const { hostname, pathname, port, protocol, search } = url; - let query; - if (search) { - query = parseQueryString(search); - } - return { - hostname, - port: port ? parseInt(port) : undefined, - protocol, - path: pathname, - query, - }; -}; diff --git a/node_modules/@smithy/url-parser/dist-types/index.d.ts b/node_modules/@smithy/url-parser/dist-types/index.d.ts deleted file mode 100644 index b0d91c9b..00000000 --- a/node_modules/@smithy/url-parser/dist-types/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { UrlParser } from "@smithy/types"; -/** - * @internal - */ -export declare const parseUrl: UrlParser; diff --git a/node_modules/@smithy/url-parser/dist-types/ts3.4/index.d.ts b/node_modules/@smithy/url-parser/dist-types/ts3.4/index.d.ts deleted file mode 100644 index d6f0ec5f..00000000 --- a/node_modules/@smithy/url-parser/dist-types/ts3.4/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { UrlParser } from "@smithy/types"; -/** - * @internal - */ -export declare const parseUrl: UrlParser; diff --git a/node_modules/@smithy/url-parser/package.json b/node_modules/@smithy/url-parser/package.json deleted file mode 100644 index cb20be38..00000000 --- a/node_modules/@smithy/url-parser/package.json +++ /dev/null @@ -1,58 +0,0 @@ -{ - "name": "@smithy/url-parser", - "version": "2.0.14", - "scripts": { - "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", - "build:cjs": "yarn g:tsc -p tsconfig.cjs.json", - "build:es": "yarn g:tsc -p tsconfig.es.json", - "build:types": "yarn g:tsc -p tsconfig.types.json", - "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", - "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz", - "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"", - "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"", - "test": "yarn g:jest" - }, - "main": "./dist-cjs/index.js", - "module": "./dist-es/index.js", - "types": "./dist-types/index.d.ts", - "author": { - "name": "AWS SDK for JavaScript Team", - "url": "https://aws.amazon.com/javascript/" - }, - "license": "Apache-2.0", - "dependencies": { - "@smithy/querystring-parser": "^2.0.14", - "@smithy/types": "^2.6.0", - "tslib": "^2.5.0" - }, - "typesVersions": { - "<4.0": { - "dist-types/*": [ - "dist-types/ts3.4/*" - ] - } - }, - "files": [ - "dist-*/**" - ], - "homepage": "https://github.com/awslabs/smithy-typescript/tree/main/packages/url-parser", - "repository": { - "type": "git", - "url": "https://github.com/awslabs/smithy-typescript.git", - "directory": "packages/url-parser" - }, - "devDependencies": { - "@tsconfig/recommended": "1.0.1", - "concurrently": "7.0.0", - "downlevel-dts": "0.10.1", - "rimraf": "3.0.2", - "typedoc": "0.23.23" - }, - "typedoc": { - "entryPoint": "src/index.ts" - }, - "publishConfig": { - "directory": ".release/package" - } -} \ No newline at end of file diff --git a/node_modules/@smithy/util-base64/LICENSE b/node_modules/@smithy/util-base64/LICENSE deleted file mode 100644 index 7b6491ba..00000000 --- a/node_modules/@smithy/util-base64/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. \ No newline at end of file diff --git a/node_modules/@smithy/util-base64/README.md b/node_modules/@smithy/util-base64/README.md deleted file mode 100644 index c9b6c87f..00000000 --- a/node_modules/@smithy/util-base64/README.md +++ /dev/null @@ -1,4 +0,0 @@ -# @smithy/util-base64 - -[![NPM version](https://img.shields.io/npm/v/@smithy/util-base64/latest.svg)](https://www.npmjs.com/package/@smithy/util-base64) -[![NPM downloads](https://img.shields.io/npm/dm/@smithy/util-base64.svg)](https://www.npmjs.com/package/@smithy/util-base64) diff --git a/node_modules/@smithy/util-base64/dist-cjs/constants.browser.js b/node_modules/@smithy/util-base64/dist-cjs/constants.browser.js deleted file mode 100644 index d35d09fd..00000000 --- a/node_modules/@smithy/util-base64/dist-cjs/constants.browser.js +++ /dev/null @@ -1,35 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.maxLetterValue = exports.bitsPerByte = exports.bitsPerLetter = exports.alphabetByValue = exports.alphabetByEncoding = void 0; -const alphabetByEncoding = {}; -exports.alphabetByEncoding = alphabetByEncoding; -const alphabetByValue = new Array(64); -exports.alphabetByValue = alphabetByValue; -for (let i = 0, start = "A".charCodeAt(0), limit = "Z".charCodeAt(0); i + start <= limit; i++) { - const char = String.fromCharCode(i + start); - alphabetByEncoding[char] = i; - alphabetByValue[i] = char; -} -for (let i = 0, start = "a".charCodeAt(0), limit = "z".charCodeAt(0); i + start <= limit; i++) { - const char = String.fromCharCode(i + start); - const index = i + 26; - alphabetByEncoding[char] = index; - alphabetByValue[index] = char; -} -for (let i = 0; i < 10; i++) { - alphabetByEncoding[i.toString(10)] = i + 52; - const char = i.toString(10); - const index = i + 52; - alphabetByEncoding[char] = index; - alphabetByValue[index] = char; -} -alphabetByEncoding["+"] = 62; -alphabetByValue[62] = "+"; -alphabetByEncoding["/"] = 63; -alphabetByValue[63] = "/"; -const bitsPerLetter = 6; -exports.bitsPerLetter = bitsPerLetter; -const bitsPerByte = 8; -exports.bitsPerByte = bitsPerByte; -const maxLetterValue = 0b111111; -exports.maxLetterValue = maxLetterValue; diff --git a/node_modules/@smithy/util-base64/dist-cjs/fromBase64.browser.js b/node_modules/@smithy/util-base64/dist-cjs/fromBase64.browser.js deleted file mode 100644 index a5baffd0..00000000 --- a/node_modules/@smithy/util-base64/dist-cjs/fromBase64.browser.js +++ /dev/null @@ -1,40 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.fromBase64 = void 0; -const constants_browser_1 = require("./constants.browser"); -const fromBase64 = (input) => { - let totalByteLength = (input.length / 4) * 3; - if (input.slice(-2) === "==") { - totalByteLength -= 2; - } - else if (input.slice(-1) === "=") { - totalByteLength--; - } - const out = new ArrayBuffer(totalByteLength); - const dataView = new DataView(out); - for (let i = 0; i < input.length; i += 4) { - let bits = 0; - let bitLength = 0; - for (let j = i, limit = i + 3; j <= limit; j++) { - if (input[j] !== "=") { - if (!(input[j] in constants_browser_1.alphabetByEncoding)) { - throw new TypeError(`Invalid character ${input[j]} in base64 string.`); - } - bits |= constants_browser_1.alphabetByEncoding[input[j]] << ((limit - j) * constants_browser_1.bitsPerLetter); - bitLength += constants_browser_1.bitsPerLetter; - } - else { - bits >>= constants_browser_1.bitsPerLetter; - } - } - const chunkOffset = (i / 4) * 3; - bits >>= bitLength % constants_browser_1.bitsPerByte; - const byteLength = Math.floor(bitLength / constants_browser_1.bitsPerByte); - for (let k = 0; k < byteLength; k++) { - const offset = (byteLength - k - 1) * constants_browser_1.bitsPerByte; - dataView.setUint8(chunkOffset + k, (bits & (255 << offset)) >> offset); - } - } - return new Uint8Array(out); -}; -exports.fromBase64 = fromBase64; diff --git a/node_modules/@smithy/util-base64/dist-cjs/fromBase64.js b/node_modules/@smithy/util-base64/dist-cjs/fromBase64.js deleted file mode 100644 index b06a7b87..00000000 --- a/node_modules/@smithy/util-base64/dist-cjs/fromBase64.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.fromBase64 = void 0; -const util_buffer_from_1 = require("@smithy/util-buffer-from"); -const BASE64_REGEX = /^[A-Za-z0-9+/]*={0,2}$/; -const fromBase64 = (input) => { - if ((input.length * 3) % 4 !== 0) { - throw new TypeError(`Incorrect padding on base64 string.`); - } - if (!BASE64_REGEX.exec(input)) { - throw new TypeError(`Invalid base64 string.`); - } - const buffer = (0, util_buffer_from_1.fromString)(input, "base64"); - return new Uint8Array(buffer.buffer, buffer.byteOffset, buffer.byteLength); -}; -exports.fromBase64 = fromBase64; diff --git a/node_modules/@smithy/util-base64/dist-cjs/index.js b/node_modules/@smithy/util-base64/dist-cjs/index.js deleted file mode 100644 index ec2617ba..00000000 --- a/node_modules/@smithy/util-base64/dist-cjs/index.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./fromBase64"), exports); -tslib_1.__exportStar(require("./toBase64"), exports); diff --git a/node_modules/@smithy/util-base64/dist-cjs/toBase64.browser.js b/node_modules/@smithy/util-base64/dist-cjs/toBase64.browser.js deleted file mode 100644 index 78d95b75..00000000 --- a/node_modules/@smithy/util-base64/dist-cjs/toBase64.browser.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.toBase64 = void 0; -const constants_browser_1 = require("./constants.browser"); -function toBase64(input) { - let str = ""; - for (let i = 0; i < input.length; i += 3) { - let bits = 0; - let bitLength = 0; - for (let j = i, limit = Math.min(i + 3, input.length); j < limit; j++) { - bits |= input[j] << ((limit - j - 1) * constants_browser_1.bitsPerByte); - bitLength += constants_browser_1.bitsPerByte; - } - const bitClusterCount = Math.ceil(bitLength / constants_browser_1.bitsPerLetter); - bits <<= bitClusterCount * constants_browser_1.bitsPerLetter - bitLength; - for (let k = 1; k <= bitClusterCount; k++) { - const offset = (bitClusterCount - k) * constants_browser_1.bitsPerLetter; - str += constants_browser_1.alphabetByValue[(bits & (constants_browser_1.maxLetterValue << offset)) >> offset]; - } - str += "==".slice(0, 4 - bitClusterCount); - } - return str; -} -exports.toBase64 = toBase64; diff --git a/node_modules/@smithy/util-base64/dist-cjs/toBase64.js b/node_modules/@smithy/util-base64/dist-cjs/toBase64.js deleted file mode 100644 index 27595c7f..00000000 --- a/node_modules/@smithy/util-base64/dist-cjs/toBase64.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.toBase64 = void 0; -const util_buffer_from_1 = require("@smithy/util-buffer-from"); -const toBase64 = (input) => (0, util_buffer_from_1.fromArrayBuffer)(input.buffer, input.byteOffset, input.byteLength).toString("base64"); -exports.toBase64 = toBase64; diff --git a/node_modules/@smithy/util-base64/dist-es/constants.browser.js b/node_modules/@smithy/util-base64/dist-es/constants.browser.js deleted file mode 100644 index fd4df4dc..00000000 --- a/node_modules/@smithy/util-base64/dist-es/constants.browser.js +++ /dev/null @@ -1,28 +0,0 @@ -const alphabetByEncoding = {}; -const alphabetByValue = new Array(64); -for (let i = 0, start = "A".charCodeAt(0), limit = "Z".charCodeAt(0); i + start <= limit; i++) { - const char = String.fromCharCode(i + start); - alphabetByEncoding[char] = i; - alphabetByValue[i] = char; -} -for (let i = 0, start = "a".charCodeAt(0), limit = "z".charCodeAt(0); i + start <= limit; i++) { - const char = String.fromCharCode(i + start); - const index = i + 26; - alphabetByEncoding[char] = index; - alphabetByValue[index] = char; -} -for (let i = 0; i < 10; i++) { - alphabetByEncoding[i.toString(10)] = i + 52; - const char = i.toString(10); - const index = i + 52; - alphabetByEncoding[char] = index; - alphabetByValue[index] = char; -} -alphabetByEncoding["+"] = 62; -alphabetByValue[62] = "+"; -alphabetByEncoding["/"] = 63; -alphabetByValue[63] = "/"; -const bitsPerLetter = 6; -const bitsPerByte = 8; -const maxLetterValue = 0b111111; -export { alphabetByEncoding, alphabetByValue, bitsPerLetter, bitsPerByte, maxLetterValue }; diff --git a/node_modules/@smithy/util-base64/dist-es/fromBase64.browser.js b/node_modules/@smithy/util-base64/dist-es/fromBase64.browser.js deleted file mode 100644 index c2c6a66d..00000000 --- a/node_modules/@smithy/util-base64/dist-es/fromBase64.browser.js +++ /dev/null @@ -1,36 +0,0 @@ -import { alphabetByEncoding, bitsPerByte, bitsPerLetter } from "./constants.browser"; -export const fromBase64 = (input) => { - let totalByteLength = (input.length / 4) * 3; - if (input.slice(-2) === "==") { - totalByteLength -= 2; - } - else if (input.slice(-1) === "=") { - totalByteLength--; - } - const out = new ArrayBuffer(totalByteLength); - const dataView = new DataView(out); - for (let i = 0; i < input.length; i += 4) { - let bits = 0; - let bitLength = 0; - for (let j = i, limit = i + 3; j <= limit; j++) { - if (input[j] !== "=") { - if (!(input[j] in alphabetByEncoding)) { - throw new TypeError(`Invalid character ${input[j]} in base64 string.`); - } - bits |= alphabetByEncoding[input[j]] << ((limit - j) * bitsPerLetter); - bitLength += bitsPerLetter; - } - else { - bits >>= bitsPerLetter; - } - } - const chunkOffset = (i / 4) * 3; - bits >>= bitLength % bitsPerByte; - const byteLength = Math.floor(bitLength / bitsPerByte); - for (let k = 0; k < byteLength; k++) { - const offset = (byteLength - k - 1) * bitsPerByte; - dataView.setUint8(chunkOffset + k, (bits & (255 << offset)) >> offset); - } - } - return new Uint8Array(out); -}; diff --git a/node_modules/@smithy/util-base64/dist-es/fromBase64.js b/node_modules/@smithy/util-base64/dist-es/fromBase64.js deleted file mode 100644 index 5197e93b..00000000 --- a/node_modules/@smithy/util-base64/dist-es/fromBase64.js +++ /dev/null @@ -1,12 +0,0 @@ -import { fromString } from "@smithy/util-buffer-from"; -const BASE64_REGEX = /^[A-Za-z0-9+/]*={0,2}$/; -export const fromBase64 = (input) => { - if ((input.length * 3) % 4 !== 0) { - throw new TypeError(`Incorrect padding on base64 string.`); - } - if (!BASE64_REGEX.exec(input)) { - throw new TypeError(`Invalid base64 string.`); - } - const buffer = fromString(input, "base64"); - return new Uint8Array(buffer.buffer, buffer.byteOffset, buffer.byteLength); -}; diff --git a/node_modules/@smithy/util-base64/dist-es/index.js b/node_modules/@smithy/util-base64/dist-es/index.js deleted file mode 100644 index 594bd435..00000000 --- a/node_modules/@smithy/util-base64/dist-es/index.js +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./fromBase64"; -export * from "./toBase64"; diff --git a/node_modules/@smithy/util-base64/dist-es/toBase64.browser.js b/node_modules/@smithy/util-base64/dist-es/toBase64.browser.js deleted file mode 100644 index e7320ede..00000000 --- a/node_modules/@smithy/util-base64/dist-es/toBase64.browser.js +++ /dev/null @@ -1,20 +0,0 @@ -import { alphabetByValue, bitsPerByte, bitsPerLetter, maxLetterValue } from "./constants.browser"; -export function toBase64(input) { - let str = ""; - for (let i = 0; i < input.length; i += 3) { - let bits = 0; - let bitLength = 0; - for (let j = i, limit = Math.min(i + 3, input.length); j < limit; j++) { - bits |= input[j] << ((limit - j - 1) * bitsPerByte); - bitLength += bitsPerByte; - } - const bitClusterCount = Math.ceil(bitLength / bitsPerLetter); - bits <<= bitClusterCount * bitsPerLetter - bitLength; - for (let k = 1; k <= bitClusterCount; k++) { - const offset = (bitClusterCount - k) * bitsPerLetter; - str += alphabetByValue[(bits & (maxLetterValue << offset)) >> offset]; - } - str += "==".slice(0, 4 - bitClusterCount); - } - return str; -} diff --git a/node_modules/@smithy/util-base64/dist-es/toBase64.js b/node_modules/@smithy/util-base64/dist-es/toBase64.js deleted file mode 100644 index c850cc05..00000000 --- a/node_modules/@smithy/util-base64/dist-es/toBase64.js +++ /dev/null @@ -1,2 +0,0 @@ -import { fromArrayBuffer } from "@smithy/util-buffer-from"; -export const toBase64 = (input) => fromArrayBuffer(input.buffer, input.byteOffset, input.byteLength).toString("base64"); diff --git a/node_modules/@smithy/util-base64/dist-types/constants.browser.d.ts b/node_modules/@smithy/util-base64/dist-types/constants.browser.d.ts deleted file mode 100644 index eb750ea1..00000000 --- a/node_modules/@smithy/util-base64/dist-types/constants.browser.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -declare const alphabetByEncoding: Record; -declare const alphabetByValue: Array; -declare const bitsPerLetter = 6; -declare const bitsPerByte = 8; -declare const maxLetterValue = 63; -export { alphabetByEncoding, alphabetByValue, bitsPerLetter, bitsPerByte, maxLetterValue }; diff --git a/node_modules/@smithy/util-base64/dist-types/fromBase64.browser.d.ts b/node_modules/@smithy/util-base64/dist-types/fromBase64.browser.d.ts deleted file mode 100644 index 6a640f14..00000000 --- a/node_modules/@smithy/util-base64/dist-types/fromBase64.browser.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * Converts a base-64 encoded string to a Uint8Array of bytes. - * - * @param input The base-64 encoded string - * - * @see https://tools.ietf.org/html/rfc4648#section-4 - */ -export declare const fromBase64: (input: string) => Uint8Array; diff --git a/node_modules/@smithy/util-base64/dist-types/fromBase64.d.ts b/node_modules/@smithy/util-base64/dist-types/fromBase64.d.ts deleted file mode 100644 index 1878a891..00000000 --- a/node_modules/@smithy/util-base64/dist-types/fromBase64.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * Converts a base-64 encoded string to a Uint8Array of bytes using Node.JS's - * `buffer` module. - * - * @param input The base-64 encoded string - */ -export declare const fromBase64: (input: string) => Uint8Array; diff --git a/node_modules/@smithy/util-base64/dist-types/index.d.ts b/node_modules/@smithy/util-base64/dist-types/index.d.ts deleted file mode 100644 index 594bd435..00000000 --- a/node_modules/@smithy/util-base64/dist-types/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./fromBase64"; -export * from "./toBase64"; diff --git a/node_modules/@smithy/util-base64/dist-types/toBase64.browser.d.ts b/node_modules/@smithy/util-base64/dist-types/toBase64.browser.d.ts deleted file mode 100644 index 221822cc..00000000 --- a/node_modules/@smithy/util-base64/dist-types/toBase64.browser.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * Converts a Uint8Array of binary data to a base-64 encoded string. - * - * @param input The binary data to encode - * - * @see https://tools.ietf.org/html/rfc4648#section-4 - */ -export declare function toBase64(input: Uint8Array): string; diff --git a/node_modules/@smithy/util-base64/dist-types/toBase64.d.ts b/node_modules/@smithy/util-base64/dist-types/toBase64.d.ts deleted file mode 100644 index 363f0637..00000000 --- a/node_modules/@smithy/util-base64/dist-types/toBase64.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * Converts a Uint8Array of binary data to a base-64 encoded string using - * Node.JS's `buffer` module. - * - * @param input The binary data to encode - */ -export declare const toBase64: (input: Uint8Array) => string; diff --git a/node_modules/@smithy/util-base64/dist-types/ts3.4/constants.browser.d.ts b/node_modules/@smithy/util-base64/dist-types/ts3.4/constants.browser.d.ts deleted file mode 100644 index 61c36c81..00000000 --- a/node_modules/@smithy/util-base64/dist-types/ts3.4/constants.browser.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -declare const alphabetByEncoding: Record; -declare const alphabetByValue: Array; -declare const bitsPerLetter = 6; -declare const bitsPerByte = 8; -declare const maxLetterValue = 63; -export { alphabetByEncoding, alphabetByValue, bitsPerLetter, bitsPerByte, maxLetterValue }; diff --git a/node_modules/@smithy/util-base64/dist-types/ts3.4/fromBase64.browser.d.ts b/node_modules/@smithy/util-base64/dist-types/ts3.4/fromBase64.browser.d.ts deleted file mode 100644 index 3a500068..00000000 --- a/node_modules/@smithy/util-base64/dist-types/ts3.4/fromBase64.browser.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * Converts a base-64 encoded string to a Uint8Array of bytes. - * - * @param input The base-64 encoded string - * - * @see https://tools.ietf.org/html/rfc4648#section-4 - */ -export declare const fromBase64: (input: string) => Uint8Array; diff --git a/node_modules/@smithy/util-base64/dist-types/ts3.4/fromBase64.d.ts b/node_modules/@smithy/util-base64/dist-types/ts3.4/fromBase64.d.ts deleted file mode 100644 index f84c7c60..00000000 --- a/node_modules/@smithy/util-base64/dist-types/ts3.4/fromBase64.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * Converts a base-64 encoded string to a Uint8Array of bytes using Node.JS's - * `buffer` module. - * - * @param input The base-64 encoded string - */ -export declare const fromBase64: (input: string) => Uint8Array; diff --git a/node_modules/@smithy/util-base64/dist-types/ts3.4/index.d.ts b/node_modules/@smithy/util-base64/dist-types/ts3.4/index.d.ts deleted file mode 100644 index c4e1d039..00000000 --- a/node_modules/@smithy/util-base64/dist-types/ts3.4/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./fromBase64"; -export * from "./toBase64"; diff --git a/node_modules/@smithy/util-base64/dist-types/ts3.4/toBase64.browser.d.ts b/node_modules/@smithy/util-base64/dist-types/ts3.4/toBase64.browser.d.ts deleted file mode 100644 index 0447807b..00000000 --- a/node_modules/@smithy/util-base64/dist-types/ts3.4/toBase64.browser.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * Converts a Uint8Array of binary data to a base-64 encoded string. - * - * @param input The binary data to encode - * - * @see https://tools.ietf.org/html/rfc4648#section-4 - */ -export declare function toBase64(input: Uint8Array): string; diff --git a/node_modules/@smithy/util-base64/dist-types/ts3.4/toBase64.d.ts b/node_modules/@smithy/util-base64/dist-types/ts3.4/toBase64.d.ts deleted file mode 100644 index fffbd2c9..00000000 --- a/node_modules/@smithy/util-base64/dist-types/ts3.4/toBase64.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * Converts a Uint8Array of binary data to a base-64 encoded string using - * Node.JS's `buffer` module. - * - * @param input The binary data to encode - */ -export declare const toBase64: (input: Uint8Array) => string; diff --git a/node_modules/@smithy/util-base64/package.json b/node_modules/@smithy/util-base64/package.json deleted file mode 100644 index 0d568f47..00000000 --- a/node_modules/@smithy/util-base64/package.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "name": "@smithy/util-base64", - "version": "2.0.1", - "description": "A Base64 <-> UInt8Array converter", - "main": "./dist-cjs/index.js", - "module": "./dist-es/index.js", - "scripts": { - "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", - "build:cjs": "yarn g:tsc -p tsconfig.cjs.json", - "build:es": "yarn g:tsc -p tsconfig.es.json", - "build:types": "yarn g:tsc -p tsconfig.types.json", - "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", - "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz", - "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"", - "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"", - "test": "yarn g:jest" - }, - "author": { - "name": "AWS SDK for JavaScript Team", - "url": "https://aws.amazon.com/javascript/" - }, - "license": "Apache-2.0", - "dependencies": { - "@smithy/util-buffer-from": "^2.0.0", - "tslib": "^2.5.0" - }, - "devDependencies": { - "@tsconfig/recommended": "1.0.1", - "@types/node": "^14.14.31", - "concurrently": "7.0.0", - "downlevel-dts": "0.10.1", - "rimraf": "3.0.2", - "typedoc": "0.23.23" - }, - "types": "./dist-types/index.d.ts", - "engines": { - "node": ">=14.0.0" - }, - "typesVersions": { - "<4.0": { - "dist-types/*": [ - "dist-types/ts3.4/*" - ] - } - }, - "files": [ - "dist-*/**" - ], - "browser": { - "./dist-es/fromBase64": "./dist-es/fromBase64.browser", - "./dist-es/toBase64": "./dist-es/toBase64.browser" - }, - "react-native": { - "./dist-es/fromBase64": "./dist-es/fromBase64.browser", - "./dist-es/toBase64": "./dist-es/toBase64.browser", - "./dist-cjs/fromBase64": "./dist-cjs/fromBase64.browser", - "./dist-cjs/toBase64": "./dist-cjs/toBase64.browser" - }, - "homepage": "https://github.com/awslabs/smithy-typescript/tree/main/packages/util-base64", - "repository": { - "type": "git", - "url": "https://github.com/awslabs/smithy-typescript.git", - "directory": "packages/util-base64" - }, - "typedoc": { - "entryPoint": "src/index.ts" - }, - "publishConfig": { - "directory": ".release/package" - } -} \ No newline at end of file diff --git a/node_modules/@smithy/util-body-length-browser/LICENSE b/node_modules/@smithy/util-body-length-browser/LICENSE deleted file mode 100644 index 7b6491ba..00000000 --- a/node_modules/@smithy/util-body-length-browser/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. \ No newline at end of file diff --git a/node_modules/@smithy/util-body-length-browser/README.md b/node_modules/@smithy/util-body-length-browser/README.md deleted file mode 100644 index 460d0929..00000000 --- a/node_modules/@smithy/util-body-length-browser/README.md +++ /dev/null @@ -1,12 +0,0 @@ -# @smithy/util-body-length-browser - -[![NPM version](https://img.shields.io/npm/v/@smithy/util-body-length-browser/latest.svg)](https://www.npmjs.com/package/@smithy/util-body-length-browser) -[![NPM downloads](https://img.shields.io/npm/dm/@smithy/util-body-length-browser.svg)](https://www.npmjs.com/package/@smithy/util-body-length-browser) - -Determines the length of a request body in browsers - -> An internal package - -## Usage - -You probably shouldn't, at least directly. diff --git a/node_modules/@smithy/util-body-length-browser/dist-cjs/calculateBodyLength.js b/node_modules/@smithy/util-body-length-browser/dist-cjs/calculateBodyLength.js deleted file mode 100644 index 8e956f67..00000000 --- a/node_modules/@smithy/util-body-length-browser/dist-cjs/calculateBodyLength.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.calculateBodyLength = void 0; -const calculateBodyLength = (body) => { - if (typeof body === "string") { - let len = body.length; - for (let i = len - 1; i >= 0; i--) { - const code = body.charCodeAt(i); - if (code > 0x7f && code <= 0x7ff) - len++; - else if (code > 0x7ff && code <= 0xffff) - len += 2; - if (code >= 0xdc00 && code <= 0xdfff) - i--; - } - return len; - } - else if (typeof body.byteLength === "number") { - return body.byteLength; - } - else if (typeof body.size === "number") { - return body.size; - } - throw new Error(`Body Length computation failed for ${body}`); -}; -exports.calculateBodyLength = calculateBodyLength; diff --git a/node_modules/@smithy/util-body-length-browser/dist-cjs/index.js b/node_modules/@smithy/util-body-length-browser/dist-cjs/index.js deleted file mode 100644 index 01a35e38..00000000 --- a/node_modules/@smithy/util-body-length-browser/dist-cjs/index.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./calculateBodyLength"), exports); diff --git a/node_modules/@smithy/util-body-length-browser/dist-es/calculateBodyLength.js b/node_modules/@smithy/util-body-length-browser/dist-es/calculateBodyLength.js deleted file mode 100644 index 6c9072b9..00000000 --- a/node_modules/@smithy/util-body-length-browser/dist-es/calculateBodyLength.js +++ /dev/null @@ -1,22 +0,0 @@ -export const calculateBodyLength = (body) => { - if (typeof body === "string") { - let len = body.length; - for (let i = len - 1; i >= 0; i--) { - const code = body.charCodeAt(i); - if (code > 0x7f && code <= 0x7ff) - len++; - else if (code > 0x7ff && code <= 0xffff) - len += 2; - if (code >= 0xdc00 && code <= 0xdfff) - i--; - } - return len; - } - else if (typeof body.byteLength === "number") { - return body.byteLength; - } - else if (typeof body.size === "number") { - return body.size; - } - throw new Error(`Body Length computation failed for ${body}`); -}; diff --git a/node_modules/@smithy/util-body-length-browser/dist-es/index.js b/node_modules/@smithy/util-body-length-browser/dist-es/index.js deleted file mode 100644 index 16ba478e..00000000 --- a/node_modules/@smithy/util-body-length-browser/dist-es/index.js +++ /dev/null @@ -1 +0,0 @@ -export * from "./calculateBodyLength"; diff --git a/node_modules/@smithy/util-body-length-browser/dist-types/calculateBodyLength.d.ts b/node_modules/@smithy/util-body-length-browser/dist-types/calculateBodyLength.d.ts deleted file mode 100644 index 8e1bdb01..00000000 --- a/node_modules/@smithy/util-body-length-browser/dist-types/calculateBodyLength.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/** - * @internal - */ -export declare const calculateBodyLength: (body: any) => number | undefined; diff --git a/node_modules/@smithy/util-body-length-browser/dist-types/index.d.ts b/node_modules/@smithy/util-body-length-browser/dist-types/index.d.ts deleted file mode 100644 index 7b4a0d7f..00000000 --- a/node_modules/@smithy/util-body-length-browser/dist-types/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/** - * @internal - */ -export * from "./calculateBodyLength"; diff --git a/node_modules/@smithy/util-body-length-browser/dist-types/ts3.4/calculateBodyLength.d.ts b/node_modules/@smithy/util-body-length-browser/dist-types/ts3.4/calculateBodyLength.d.ts deleted file mode 100644 index 32605368..00000000 --- a/node_modules/@smithy/util-body-length-browser/dist-types/ts3.4/calculateBodyLength.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/** - * @internal - */ -export declare const calculateBodyLength: (body: any) => number | undefined; diff --git a/node_modules/@smithy/util-body-length-browser/dist-types/ts3.4/index.d.ts b/node_modules/@smithy/util-body-length-browser/dist-types/ts3.4/index.d.ts deleted file mode 100644 index ab6cb834..00000000 --- a/node_modules/@smithy/util-body-length-browser/dist-types/ts3.4/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/** - * @internal - */ -export * from "./calculateBodyLength"; diff --git a/node_modules/@smithy/util-body-length-browser/package.json b/node_modules/@smithy/util-body-length-browser/package.json deleted file mode 100644 index fec3e574..00000000 --- a/node_modules/@smithy/util-body-length-browser/package.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "name": "@smithy/util-body-length-browser", - "description": "Determines the length of a request body in browsers", - "version": "2.0.0", - "scripts": { - "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", - "build:cjs": "tsc -p tsconfig.cjs.json", - "build:es": "tsc -p tsconfig.es.json", - "build:types": "tsc -p tsconfig.types.json", - "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", - "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz", - "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"", - "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"", - "test": "jest" - }, - "main": "./dist-cjs/index.js", - "module": "./dist-es/index.js", - "types": "./dist-types/index.d.ts", - "author": { - "name": "AWS SDK for JavaScript Team", - "url": "https://aws.amazon.com/javascript/" - }, - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.5.0" - }, - "typesVersions": { - "<4.0": { - "dist-types/*": [ - "dist-types/ts3.4/*" - ] - } - }, - "files": [ - "dist-*/**" - ], - "homepage": "https://github.com/awslabs/smithy-typescript/tree/main/packages/util-body-length-browser", - "repository": { - "type": "git", - "url": "https://github.com/awslabs/smithy-typescript.git", - "directory": "packages/util-body-length-browser" - }, - "devDependencies": { - "@tsconfig/recommended": "1.0.1", - "concurrently": "7.0.0", - "downlevel-dts": "0.10.1", - "jest": "28.1.1", - "rimraf": "3.0.2", - "typedoc": "0.23.23", - "typescript": "~4.9.5" - }, - "typedoc": { - "entryPoint": "src/index.ts" - }, - "publishConfig": { - "directory": ".release/package" - } -} \ No newline at end of file diff --git a/node_modules/@smithy/util-body-length-node/LICENSE b/node_modules/@smithy/util-body-length-node/LICENSE deleted file mode 100644 index 7b6491ba..00000000 --- a/node_modules/@smithy/util-body-length-node/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. \ No newline at end of file diff --git a/node_modules/@smithy/util-body-length-node/README.md b/node_modules/@smithy/util-body-length-node/README.md deleted file mode 100644 index 9a80efe5..00000000 --- a/node_modules/@smithy/util-body-length-node/README.md +++ /dev/null @@ -1,12 +0,0 @@ -# @smithy/util-body-length-node - -[![NPM version](https://img.shields.io/npm/v/@smithy/util-body-length-node/latest.svg)](https://www.npmjs.com/package/@smithy/util-body-length-node) -[![NPM downloads](https://img.shields.io/npm/dm/@smithy/util-body-length-node.svg)](https://www.npmjs.com/package/@smithy/util-body-length-node) - -Determines the length of a request body in node.js - -> An internal package - -## Usage - -You probably shouldn't, at least directly. diff --git a/node_modules/@smithy/util-body-length-node/dist-cjs/calculateBodyLength.js b/node_modules/@smithy/util-body-length-node/dist-cjs/calculateBodyLength.js deleted file mode 100644 index cea19b7a..00000000 --- a/node_modules/@smithy/util-body-length-node/dist-cjs/calculateBodyLength.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.calculateBodyLength = void 0; -const fs_1 = require("fs"); -const calculateBodyLength = (body) => { - if (!body) { - return 0; - } - if (typeof body === "string") { - return Buffer.from(body).length; - } - else if (typeof body.byteLength === "number") { - return body.byteLength; - } - else if (typeof body.size === "number") { - return body.size; - } - else if (typeof body.start === "number" && typeof body.end === "number") { - return body.end + 1 - body.start; - } - else if (typeof body.path === "string" || Buffer.isBuffer(body.path)) { - return (0, fs_1.lstatSync)(body.path).size; - } - else if (typeof body.fd === "number") { - return (0, fs_1.fstatSync)(body.fd).size; - } - throw new Error(`Body Length computation failed for ${body}`); -}; -exports.calculateBodyLength = calculateBodyLength; diff --git a/node_modules/@smithy/util-body-length-node/dist-cjs/index.js b/node_modules/@smithy/util-body-length-node/dist-cjs/index.js deleted file mode 100644 index 01a35e38..00000000 --- a/node_modules/@smithy/util-body-length-node/dist-cjs/index.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./calculateBodyLength"), exports); diff --git a/node_modules/@smithy/util-body-length-node/dist-es/calculateBodyLength.js b/node_modules/@smithy/util-body-length-node/dist-es/calculateBodyLength.js deleted file mode 100644 index e9986382..00000000 --- a/node_modules/@smithy/util-body-length-node/dist-es/calculateBodyLength.js +++ /dev/null @@ -1,25 +0,0 @@ -import { fstatSync, lstatSync } from "fs"; -export const calculateBodyLength = (body) => { - if (!body) { - return 0; - } - if (typeof body === "string") { - return Buffer.from(body).length; - } - else if (typeof body.byteLength === "number") { - return body.byteLength; - } - else if (typeof body.size === "number") { - return body.size; - } - else if (typeof body.start === "number" && typeof body.end === "number") { - return body.end + 1 - body.start; - } - else if (typeof body.path === "string" || Buffer.isBuffer(body.path)) { - return lstatSync(body.path).size; - } - else if (typeof body.fd === "number") { - return fstatSync(body.fd).size; - } - throw new Error(`Body Length computation failed for ${body}`); -}; diff --git a/node_modules/@smithy/util-body-length-node/dist-es/index.js b/node_modules/@smithy/util-body-length-node/dist-es/index.js deleted file mode 100644 index 16ba478e..00000000 --- a/node_modules/@smithy/util-body-length-node/dist-es/index.js +++ /dev/null @@ -1 +0,0 @@ -export * from "./calculateBodyLength"; diff --git a/node_modules/@smithy/util-body-length-node/dist-types/calculateBodyLength.d.ts b/node_modules/@smithy/util-body-length-node/dist-types/calculateBodyLength.d.ts deleted file mode 100644 index 8e1bdb01..00000000 --- a/node_modules/@smithy/util-body-length-node/dist-types/calculateBodyLength.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/** - * @internal - */ -export declare const calculateBodyLength: (body: any) => number | undefined; diff --git a/node_modules/@smithy/util-body-length-node/dist-types/index.d.ts b/node_modules/@smithy/util-body-length-node/dist-types/index.d.ts deleted file mode 100644 index 7b4a0d7f..00000000 --- a/node_modules/@smithy/util-body-length-node/dist-types/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/** - * @internal - */ -export * from "./calculateBodyLength"; diff --git a/node_modules/@smithy/util-body-length-node/dist-types/ts3.4/calculateBodyLength.d.ts b/node_modules/@smithy/util-body-length-node/dist-types/ts3.4/calculateBodyLength.d.ts deleted file mode 100644 index 32605368..00000000 --- a/node_modules/@smithy/util-body-length-node/dist-types/ts3.4/calculateBodyLength.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/** - * @internal - */ -export declare const calculateBodyLength: (body: any) => number | undefined; diff --git a/node_modules/@smithy/util-body-length-node/dist-types/ts3.4/index.d.ts b/node_modules/@smithy/util-body-length-node/dist-types/ts3.4/index.d.ts deleted file mode 100644 index ab6cb834..00000000 --- a/node_modules/@smithy/util-body-length-node/dist-types/ts3.4/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/** - * @internal - */ -export * from "./calculateBodyLength"; diff --git a/node_modules/@smithy/util-body-length-node/package.json b/node_modules/@smithy/util-body-length-node/package.json deleted file mode 100644 index ddc559db..00000000 --- a/node_modules/@smithy/util-body-length-node/package.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "name": "@smithy/util-body-length-node", - "description": "Determines the length of a request body in node.js", - "version": "2.1.0", - "scripts": { - "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", - "build:cjs": "tsc -p tsconfig.cjs.json", - "build:es": "tsc -p tsconfig.es.json", - "build:types": "tsc -p tsconfig.types.json", - "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", - "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz", - "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"", - "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"", - "test": "jest" - }, - "devDependencies": { - "@tsconfig/recommended": "1.0.1", - "@types/node": "^14.14.31", - "concurrently": "7.0.0", - "downlevel-dts": "0.10.1", - "jest": "28.1.1", - "rimraf": "3.0.2", - "typedoc": "0.23.23", - "typescript": "~4.9.5" - }, - "main": "./dist-cjs/index.js", - "module": "./dist-es/index.js", - "types": "./dist-types/index.d.ts", - "author": { - "name": "AWS SDK for JavaScript Team", - "url": "https://aws.amazon.com/javascript/" - }, - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "typesVersions": { - "<4.0": { - "dist-types/*": [ - "dist-types/ts3.4/*" - ] - } - }, - "files": [ - "dist-*/**" - ], - "homepage": "https://github.com/awslabs/smithy-typescript/tree/main/packages/util-body-length-node", - "repository": { - "type": "git", - "url": "https://github.com/awslabs/smithy-typescript.git", - "directory": "packages/util-body-length-node" - }, - "typedoc": { - "entryPoint": "src/index.ts" - }, - "publishConfig": { - "directory": ".release/package" - } -} \ No newline at end of file diff --git a/node_modules/@smithy/util-buffer-from/LICENSE b/node_modules/@smithy/util-buffer-from/LICENSE deleted file mode 100644 index 7b6491ba..00000000 --- a/node_modules/@smithy/util-buffer-from/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. \ No newline at end of file diff --git a/node_modules/@smithy/util-buffer-from/README.md b/node_modules/@smithy/util-buffer-from/README.md deleted file mode 100644 index c896b04a..00000000 --- a/node_modules/@smithy/util-buffer-from/README.md +++ /dev/null @@ -1,10 +0,0 @@ -# @smithy/util-buffer-from - -[![NPM version](https://img.shields.io/npm/v/@smithy/util-buffer-from/latest.svg)](https://www.npmjs.com/package/@smithy/util-buffer-from) -[![NPM downloads](https://img.shields.io/npm/dm/@smithy/util-buffer-from.svg)](https://www.npmjs.com/package/@smithy/util-buffer-from) - -> An internal package - -## Usage - -You probably shouldn't, at least directly. diff --git a/node_modules/@smithy/util-buffer-from/dist-cjs/index.js b/node_modules/@smithy/util-buffer-from/dist-cjs/index.js deleted file mode 100644 index e0afb685..00000000 --- a/node_modules/@smithy/util-buffer-from/dist-cjs/index.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.fromString = exports.fromArrayBuffer = void 0; -const is_array_buffer_1 = require("@smithy/is-array-buffer"); -const buffer_1 = require("buffer"); -const fromArrayBuffer = (input, offset = 0, length = input.byteLength - offset) => { - if (!(0, is_array_buffer_1.isArrayBuffer)(input)) { - throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof input} (${input})`); - } - return buffer_1.Buffer.from(input, offset, length); -}; -exports.fromArrayBuffer = fromArrayBuffer; -const fromString = (input, encoding) => { - if (typeof input !== "string") { - throw new TypeError(`The "input" argument must be of type string. Received type ${typeof input} (${input})`); - } - return encoding ? buffer_1.Buffer.from(input, encoding) : buffer_1.Buffer.from(input); -}; -exports.fromString = fromString; diff --git a/node_modules/@smithy/util-buffer-from/dist-es/index.js b/node_modules/@smithy/util-buffer-from/dist-es/index.js deleted file mode 100644 index 718f8315..00000000 --- a/node_modules/@smithy/util-buffer-from/dist-es/index.js +++ /dev/null @@ -1,14 +0,0 @@ -import { isArrayBuffer } from "@smithy/is-array-buffer"; -import { Buffer } from "buffer"; -export const fromArrayBuffer = (input, offset = 0, length = input.byteLength - offset) => { - if (!isArrayBuffer(input)) { - throw new TypeError(`The "input" argument must be ArrayBuffer. Received type ${typeof input} (${input})`); - } - return Buffer.from(input, offset, length); -}; -export const fromString = (input, encoding) => { - if (typeof input !== "string") { - throw new TypeError(`The "input" argument must be of type string. Received type ${typeof input} (${input})`); - } - return encoding ? Buffer.from(input, encoding) : Buffer.from(input); -}; diff --git a/node_modules/@smithy/util-buffer-from/dist-types/index.d.ts b/node_modules/@smithy/util-buffer-from/dist-types/index.d.ts deleted file mode 100644 index a523134a..00000000 --- a/node_modules/@smithy/util-buffer-from/dist-types/index.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { Buffer } from "buffer"; -/** - * @internal - */ -export declare const fromArrayBuffer: (input: ArrayBuffer, offset?: number, length?: number) => Buffer; -/** - * @internal - */ -export type StringEncoding = "ascii" | "utf8" | "utf16le" | "ucs2" | "base64" | "latin1" | "binary" | "hex"; -/** - * @internal - */ -export declare const fromString: (input: string, encoding?: StringEncoding) => Buffer; diff --git a/node_modules/@smithy/util-buffer-from/dist-types/ts3.4/index.d.ts b/node_modules/@smithy/util-buffer-from/dist-types/ts3.4/index.d.ts deleted file mode 100644 index f9173f74..00000000 --- a/node_modules/@smithy/util-buffer-from/dist-types/ts3.4/index.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import { Buffer } from "buffer"; -/** - * @internal - */ -export declare const fromArrayBuffer: (input: ArrayBuffer, offset?: number, length?: number) => Buffer; -/** - * @internal - */ -export type StringEncoding = "ascii" | "utf8" | "utf16le" | "ucs2" | "base64" | "latin1" | "binary" | "hex"; -/** - * @internal - */ -export declare const fromString: (input: string, encoding?: StringEncoding) => Buffer; diff --git a/node_modules/@smithy/util-buffer-from/package.json b/node_modules/@smithy/util-buffer-from/package.json deleted file mode 100644 index e8f9d15f..00000000 --- a/node_modules/@smithy/util-buffer-from/package.json +++ /dev/null @@ -1,63 +0,0 @@ -{ - "name": "@smithy/util-buffer-from", - "version": "2.0.0", - "scripts": { - "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", - "build:cjs": "tsc -p tsconfig.cjs.json", - "build:es": "tsc -p tsconfig.es.json", - "build:types": "tsc -p tsconfig.types.json", - "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", - "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz", - "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"", - "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"", - "test": "jest" - }, - "author": { - "name": "AWS SDK for JavaScript Team", - "url": "https://aws.amazon.com/javascript/" - }, - "license": "Apache-2.0", - "dependencies": { - "@smithy/is-array-buffer": "^2.0.0", - "tslib": "^2.5.0" - }, - "devDependencies": { - "@tsconfig/recommended": "1.0.1", - "@types/node": "^14.14.31", - "concurrently": "7.0.0", - "downlevel-dts": "0.10.1", - "jest": "28.1.1", - "rimraf": "3.0.2", - "typedoc": "0.23.23", - "typescript": "~4.9.5" - }, - "main": "./dist-cjs/index.js", - "module": "./dist-es/index.js", - "types": "./dist-types/index.d.ts", - "engines": { - "node": ">=14.0.0" - }, - "typesVersions": { - "<4.0": { - "dist-types/*": [ - "dist-types/ts3.4/*" - ] - } - }, - "files": [ - "dist-*/**" - ], - "homepage": "https://github.com/awslabs/smithy-typescript/tree/main/packages/util-buffer-from", - "repository": { - "type": "git", - "url": "https://github.com/awslabs/smithy-typescript.git", - "directory": "packages/util-buffer-from" - }, - "typedoc": { - "entryPoint": "src/index.ts" - }, - "publishConfig": { - "directory": ".release/package" - } -} \ No newline at end of file diff --git a/node_modules/@smithy/util-config-provider/LICENSE b/node_modules/@smithy/util-config-provider/LICENSE deleted file mode 100644 index 74d4e5c3..00000000 --- a/node_modules/@smithy/util-config-provider/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. \ No newline at end of file diff --git a/node_modules/@smithy/util-config-provider/README.md b/node_modules/@smithy/util-config-provider/README.md deleted file mode 100644 index 5b0341d0..00000000 --- a/node_modules/@smithy/util-config-provider/README.md +++ /dev/null @@ -1,4 +0,0 @@ -# @smithy/util-config-provider - -[![NPM version](https://img.shields.io/npm/v/@smithy/util-config-provider/latest.svg)](https://www.npmjs.com/package/@smithy/util-config-provider) -[![NPM downloads](https://img.shields.io/npm/dm/@smithy/util-config-provider.svg)](https://www.npmjs.com/package/@smithy/util-config-provider) diff --git a/node_modules/@smithy/util-config-provider/dist-cjs/booleanSelector.js b/node_modules/@smithy/util-config-provider/dist-cjs/booleanSelector.js deleted file mode 100644 index cfd8025b..00000000 --- a/node_modules/@smithy/util-config-provider/dist-cjs/booleanSelector.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.booleanSelector = exports.SelectorType = void 0; -var SelectorType; -(function (SelectorType) { - SelectorType["ENV"] = "env"; - SelectorType["CONFIG"] = "shared config entry"; -})(SelectorType = exports.SelectorType || (exports.SelectorType = {})); -const booleanSelector = (obj, key, type) => { - if (!(key in obj)) - return undefined; - if (obj[key] === "true") - return true; - if (obj[key] === "false") - return false; - throw new Error(`Cannot load ${type} "${key}". Expected "true" or "false", got ${obj[key]}.`); -}; -exports.booleanSelector = booleanSelector; diff --git a/node_modules/@smithy/util-config-provider/dist-cjs/index.js b/node_modules/@smithy/util-config-provider/dist-cjs/index.js deleted file mode 100644 index 69b30c54..00000000 --- a/node_modules/@smithy/util-config-provider/dist-cjs/index.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./booleanSelector"), exports); diff --git a/node_modules/@smithy/util-config-provider/dist-es/booleanSelector.js b/node_modules/@smithy/util-config-provider/dist-es/booleanSelector.js deleted file mode 100644 index 940d5b37..00000000 --- a/node_modules/@smithy/util-config-provider/dist-es/booleanSelector.js +++ /dev/null @@ -1,14 +0,0 @@ -export var SelectorType; -(function (SelectorType) { - SelectorType["ENV"] = "env"; - SelectorType["CONFIG"] = "shared config entry"; -})(SelectorType || (SelectorType = {})); -export const booleanSelector = (obj, key, type) => { - if (!(key in obj)) - return undefined; - if (obj[key] === "true") - return true; - if (obj[key] === "false") - return false; - throw new Error(`Cannot load ${type} "${key}". Expected "true" or "false", got ${obj[key]}.`); -}; diff --git a/node_modules/@smithy/util-config-provider/dist-es/index.js b/node_modules/@smithy/util-config-provider/dist-es/index.js deleted file mode 100644 index 838aa505..00000000 --- a/node_modules/@smithy/util-config-provider/dist-es/index.js +++ /dev/null @@ -1 +0,0 @@ -export * from "./booleanSelector"; diff --git a/node_modules/@smithy/util-config-provider/dist-types/booleanSelector.d.ts b/node_modules/@smithy/util-config-provider/dist-types/booleanSelector.d.ts deleted file mode 100644 index c9b7d5d3..00000000 --- a/node_modules/@smithy/util-config-provider/dist-types/booleanSelector.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -export declare enum SelectorType { - ENV = "env", - CONFIG = "shared config entry" -} -/** - * Returns boolean value true/false for string value "true"/"false", - * if the string is defined in obj[key] - * Returns undefined, if obj[key] is not defined. - * Throws error for all other cases. - * - * @internal - */ -export declare const booleanSelector: (obj: Record, key: string, type: SelectorType) => boolean | undefined; diff --git a/node_modules/@smithy/util-config-provider/dist-types/index.d.ts b/node_modules/@smithy/util-config-provider/dist-types/index.d.ts deleted file mode 100644 index 838aa505..00000000 --- a/node_modules/@smithy/util-config-provider/dist-types/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./booleanSelector"; diff --git a/node_modules/@smithy/util-config-provider/dist-types/ts3.4/booleanSelector.d.ts b/node_modules/@smithy/util-config-provider/dist-types/ts3.4/booleanSelector.d.ts deleted file mode 100644 index 4cfdc737..00000000 --- a/node_modules/@smithy/util-config-provider/dist-types/ts3.4/booleanSelector.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -export declare enum SelectorType { - ENV = "env", - CONFIG = "shared config entry" -} -/** - * Returns boolean value true/false for string value "true"/"false", - * if the string is defined in obj[key] - * Returns undefined, if obj[key] is not defined. - * Throws error for all other cases. - * - * @internal - */ -export declare const booleanSelector: (obj: Record, key: string, type: SelectorType) => boolean | undefined; diff --git a/node_modules/@smithy/util-config-provider/dist-types/ts3.4/index.d.ts b/node_modules/@smithy/util-config-provider/dist-types/ts3.4/index.d.ts deleted file mode 100644 index c8e4140c..00000000 --- a/node_modules/@smithy/util-config-provider/dist-types/ts3.4/index.d.ts +++ /dev/null @@ -1 +0,0 @@ -export * from "./booleanSelector"; diff --git a/node_modules/@smithy/util-config-provider/package.json b/node_modules/@smithy/util-config-provider/package.json deleted file mode 100644 index c2098829..00000000 --- a/node_modules/@smithy/util-config-provider/package.json +++ /dev/null @@ -1,64 +0,0 @@ -{ - "name": "@smithy/util-config-provider", - "version": "2.0.0", - "description": "Utilities package for configuration providers", - "scripts": { - "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", - "build:cjs": "tsc -p tsconfig.cjs.json", - "build:es": "tsc -p tsconfig.es.json", - "build:types": "tsc -p tsconfig.types.json", - "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", - "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz", - "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"", - "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"", - "test": "jest --passWithNoTests" - }, - "author": { - "name": "AWS SDK for JavaScript Team", - "email": "", - "url": "https://aws.amazon.com/javascript/" - }, - "license": "Apache-2.0", - "main": "./dist-cjs/index.js", - "module": "./dist-es/index.js", - "types": "./dist-types/index.d.ts", - "dependencies": { - "tslib": "^2.5.0" - }, - "devDependencies": { - "@tsconfig/recommended": "1.0.1", - "@types/node": "^14.14.31", - "concurrently": "7.0.0", - "downlevel-dts": "0.10.1", - "jest": "28.1.1", - "rimraf": "3.0.2", - "typedoc": "0.23.23", - "typescript": "~4.9.5" - }, - "engines": { - "node": ">=14.0.0" - }, - "typesVersions": { - "<4.0": { - "dist-types/*": [ - "dist-types/ts3.4/*" - ] - } - }, - "files": [ - "dist-*/**" - ], - "homepage": "https://github.com/awslabs/smithy-typescript/tree/main/packages/util-config-provider", - "repository": { - "type": "git", - "url": "https://github.com/awslabs/smithy-typescript.git", - "directory": "packages/util-config-provider" - }, - "typedoc": { - "entryPoint": "src/index.ts" - }, - "publishConfig": { - "directory": ".release/package" - } -} \ No newline at end of file diff --git a/node_modules/@smithy/util-defaults-mode-browser/LICENSE b/node_modules/@smithy/util-defaults-mode-browser/LICENSE deleted file mode 100644 index dd65ae06..00000000 --- a/node_modules/@smithy/util-defaults-mode-browser/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/node_modules/@smithy/util-defaults-mode-browser/README.md b/node_modules/@smithy/util-defaults-mode-browser/README.md deleted file mode 100644 index f2f1cc07..00000000 --- a/node_modules/@smithy/util-defaults-mode-browser/README.md +++ /dev/null @@ -1,10 +0,0 @@ -# @smithy/util-defaults-mode-browser - -[![NPM version](https://img.shields.io/npm/v/@smithy/util-defaults-mode-browser/latest.svg)](https://www.npmjs.com/package/@smithy/util-defaults-mode-browser) -[![NPM downloads](https://img.shields.io/npm/dm/@smithy/util-defaults-mode-browser.svg)](https://www.npmjs.com/package/@smithy/util-defaults-mode-browser) - -> An internal package - -## Usage - -You probably shouldn't, at least directly. diff --git a/node_modules/@smithy/util-defaults-mode-browser/dist-cjs/constants.js b/node_modules/@smithy/util-defaults-mode-browser/dist-cjs/constants.js deleted file mode 100644 index 37335062..00000000 --- a/node_modules/@smithy/util-defaults-mode-browser/dist-cjs/constants.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DEFAULTS_MODE_OPTIONS = void 0; -exports.DEFAULTS_MODE_OPTIONS = ["in-region", "cross-region", "mobile", "standard", "legacy"]; diff --git a/node_modules/@smithy/util-defaults-mode-browser/dist-cjs/index.js b/node_modules/@smithy/util-defaults-mode-browser/dist-cjs/index.js deleted file mode 100644 index fff2fcd3..00000000 --- a/node_modules/@smithy/util-defaults-mode-browser/dist-cjs/index.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./resolveDefaultsModeConfig"), exports); diff --git a/node_modules/@smithy/util-defaults-mode-browser/dist-cjs/resolveDefaultsModeConfig.js b/node_modules/@smithy/util-defaults-mode-browser/dist-cjs/resolveDefaultsModeConfig.js deleted file mode 100644 index f23368cb..00000000 --- a/node_modules/@smithy/util-defaults-mode-browser/dist-cjs/resolveDefaultsModeConfig.js +++ /dev/null @@ -1,33 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.resolveDefaultsModeConfig = void 0; -const tslib_1 = require("tslib"); -const property_provider_1 = require("@smithy/property-provider"); -const bowser_1 = tslib_1.__importDefault(require("bowser")); -const constants_1 = require("./constants"); -const resolveDefaultsModeConfig = ({ defaultsMode, } = {}) => (0, property_provider_1.memoize)(async () => { - const mode = typeof defaultsMode === "function" ? await defaultsMode() : defaultsMode; - switch (mode === null || mode === void 0 ? void 0 : mode.toLowerCase()) { - case "auto": - return Promise.resolve(isMobileBrowser() ? "mobile" : "standard"); - case "mobile": - case "in-region": - case "cross-region": - case "standard": - case "legacy": - return Promise.resolve(mode === null || mode === void 0 ? void 0 : mode.toLocaleLowerCase()); - case undefined: - return Promise.resolve("legacy"); - default: - throw new Error(`Invalid parameter for "defaultsMode", expect ${constants_1.DEFAULTS_MODE_OPTIONS.join(", ")}, got ${mode}`); - } -}); -exports.resolveDefaultsModeConfig = resolveDefaultsModeConfig; -const isMobileBrowser = () => { - var _a, _b; - const parsedUA = typeof window !== "undefined" && ((_a = window === null || window === void 0 ? void 0 : window.navigator) === null || _a === void 0 ? void 0 : _a.userAgent) - ? bowser_1.default.parse(window.navigator.userAgent) - : undefined; - const platform = (_b = parsedUA === null || parsedUA === void 0 ? void 0 : parsedUA.platform) === null || _b === void 0 ? void 0 : _b.type; - return platform === "tablet" || platform === "mobile"; -}; diff --git a/node_modules/@smithy/util-defaults-mode-browser/dist-cjs/resolveDefaultsModeConfig.native.js b/node_modules/@smithy/util-defaults-mode-browser/dist-cjs/resolveDefaultsModeConfig.native.js deleted file mode 100644 index fc6be33c..00000000 --- a/node_modules/@smithy/util-defaults-mode-browser/dist-cjs/resolveDefaultsModeConfig.native.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.resolveDefaultsModeConfig = void 0; -const property_provider_1 = require("@smithy/property-provider"); -const constants_1 = require("./constants"); -const resolveDefaultsModeConfig = ({ defaultsMode, } = {}) => (0, property_provider_1.memoize)(async () => { - const mode = typeof defaultsMode === "function" ? await defaultsMode() : defaultsMode; - switch (mode === null || mode === void 0 ? void 0 : mode.toLowerCase()) { - case "auto": - return Promise.resolve("mobile"); - case "mobile": - case "in-region": - case "cross-region": - case "standard": - case "legacy": - return Promise.resolve(mode === null || mode === void 0 ? void 0 : mode.toLocaleLowerCase()); - case undefined: - return Promise.resolve("legacy"); - default: - throw new Error(`Invalid parameter for "defaultsMode", expect ${constants_1.DEFAULTS_MODE_OPTIONS.join(", ")}, got ${mode}`); - } -}); -exports.resolveDefaultsModeConfig = resolveDefaultsModeConfig; diff --git a/node_modules/@smithy/util-defaults-mode-browser/dist-es/constants.js b/node_modules/@smithy/util-defaults-mode-browser/dist-es/constants.js deleted file mode 100644 index d58e11f4..00000000 --- a/node_modules/@smithy/util-defaults-mode-browser/dist-es/constants.js +++ /dev/null @@ -1 +0,0 @@ -export const DEFAULTS_MODE_OPTIONS = ["in-region", "cross-region", "mobile", "standard", "legacy"]; diff --git a/node_modules/@smithy/util-defaults-mode-browser/dist-es/index.js b/node_modules/@smithy/util-defaults-mode-browser/dist-es/index.js deleted file mode 100644 index 05aa8183..00000000 --- a/node_modules/@smithy/util-defaults-mode-browser/dist-es/index.js +++ /dev/null @@ -1 +0,0 @@ -export * from "./resolveDefaultsModeConfig"; diff --git a/node_modules/@smithy/util-defaults-mode-browser/dist-es/resolveDefaultsModeConfig.js b/node_modules/@smithy/util-defaults-mode-browser/dist-es/resolveDefaultsModeConfig.js deleted file mode 100644 index 940ab631..00000000 --- a/node_modules/@smithy/util-defaults-mode-browser/dist-es/resolveDefaultsModeConfig.js +++ /dev/null @@ -1,27 +0,0 @@ -import { memoize } from "@smithy/property-provider"; -import bowser from "bowser"; -import { DEFAULTS_MODE_OPTIONS } from "./constants"; -export const resolveDefaultsModeConfig = ({ defaultsMode, } = {}) => memoize(async () => { - const mode = typeof defaultsMode === "function" ? await defaultsMode() : defaultsMode; - switch (mode?.toLowerCase()) { - case "auto": - return Promise.resolve(isMobileBrowser() ? "mobile" : "standard"); - case "mobile": - case "in-region": - case "cross-region": - case "standard": - case "legacy": - return Promise.resolve(mode?.toLocaleLowerCase()); - case undefined: - return Promise.resolve("legacy"); - default: - throw new Error(`Invalid parameter for "defaultsMode", expect ${DEFAULTS_MODE_OPTIONS.join(", ")}, got ${mode}`); - } -}); -const isMobileBrowser = () => { - const parsedUA = typeof window !== "undefined" && window?.navigator?.userAgent - ? bowser.parse(window.navigator.userAgent) - : undefined; - const platform = parsedUA?.platform?.type; - return platform === "tablet" || platform === "mobile"; -}; diff --git a/node_modules/@smithy/util-defaults-mode-browser/dist-es/resolveDefaultsModeConfig.native.js b/node_modules/@smithy/util-defaults-mode-browser/dist-es/resolveDefaultsModeConfig.native.js deleted file mode 100644 index 31641910..00000000 --- a/node_modules/@smithy/util-defaults-mode-browser/dist-es/resolveDefaultsModeConfig.native.js +++ /dev/null @@ -1,19 +0,0 @@ -import { memoize } from "@smithy/property-provider"; -import { DEFAULTS_MODE_OPTIONS } from "./constants"; -export const resolveDefaultsModeConfig = ({ defaultsMode, } = {}) => memoize(async () => { - const mode = typeof defaultsMode === "function" ? await defaultsMode() : defaultsMode; - switch (mode?.toLowerCase()) { - case "auto": - return Promise.resolve("mobile"); - case "mobile": - case "in-region": - case "cross-region": - case "standard": - case "legacy": - return Promise.resolve(mode?.toLocaleLowerCase()); - case undefined: - return Promise.resolve("legacy"); - default: - throw new Error(`Invalid parameter for "defaultsMode", expect ${DEFAULTS_MODE_OPTIONS.join(", ")}, got ${mode}`); - } -}); diff --git a/node_modules/@smithy/util-defaults-mode-browser/dist-types/constants.d.ts b/node_modules/@smithy/util-defaults-mode-browser/dist-types/constants.d.ts deleted file mode 100644 index 18dbe6cc..00000000 --- a/node_modules/@smithy/util-defaults-mode-browser/dist-types/constants.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import type { DefaultsMode } from "@smithy/smithy-client"; -import type { Provider } from "@smithy/types"; -/** - * @internal - */ -export declare const DEFAULTS_MODE_OPTIONS: string[]; -/** - * @internal - */ -export interface ResolveDefaultsModeConfigOptions { - defaultsMode?: DefaultsMode | Provider; -} diff --git a/node_modules/@smithy/util-defaults-mode-browser/dist-types/index.d.ts b/node_modules/@smithy/util-defaults-mode-browser/dist-types/index.d.ts deleted file mode 100644 index 003de26f..00000000 --- a/node_modules/@smithy/util-defaults-mode-browser/dist-types/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/** - * @internal - */ -export * from "./resolveDefaultsModeConfig"; diff --git a/node_modules/@smithy/util-defaults-mode-browser/dist-types/resolveDefaultsModeConfig.d.ts b/node_modules/@smithy/util-defaults-mode-browser/dist-types/resolveDefaultsModeConfig.d.ts deleted file mode 100644 index e4cc1b7f..00000000 --- a/node_modules/@smithy/util-defaults-mode-browser/dist-types/resolveDefaultsModeConfig.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import type { DefaultsMode, ResolvedDefaultsMode } from "@smithy/smithy-client"; -import type { Provider } from "@smithy/types"; -/** - * @internal - */ -export interface ResolveDefaultsModeConfigOptions { - defaultsMode?: DefaultsMode | Provider; -} -/** - * Validate the defaultsMode configuration. If the value is set to "auto", it - * resolves the value to "mobile" if the app is running in a mobile browser, - * otherwise it resolves to "standard". - * - * @default "legacy" - * @internal - */ -export declare const resolveDefaultsModeConfig: ({ defaultsMode, }?: ResolveDefaultsModeConfigOptions) => Provider; diff --git a/node_modules/@smithy/util-defaults-mode-browser/dist-types/resolveDefaultsModeConfig.native.d.ts b/node_modules/@smithy/util-defaults-mode-browser/dist-types/resolveDefaultsModeConfig.native.d.ts deleted file mode 100644 index 6c48ad8b..00000000 --- a/node_modules/@smithy/util-defaults-mode-browser/dist-types/resolveDefaultsModeConfig.native.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import type { DefaultsMode, ResolvedDefaultsMode } from "@smithy/smithy-client"; -import type { Provider } from "@smithy/types"; -/** - * @internal - */ -export interface ResolveDefaultsModeConfigOptions { - defaultsMode?: DefaultsMode | Provider; -} -/** - * Validate the defaultsMode configuration. If the value is set to "auto", it - * resolves the value to "mobile". - * - * @default "legacy" - * @internal - */ -export declare const resolveDefaultsModeConfig: ({ defaultsMode, }?: ResolveDefaultsModeConfigOptions) => Provider; diff --git a/node_modules/@smithy/util-defaults-mode-browser/dist-types/ts3.4/constants.d.ts b/node_modules/@smithy/util-defaults-mode-browser/dist-types/ts3.4/constants.d.ts deleted file mode 100644 index fc886026..00000000 --- a/node_modules/@smithy/util-defaults-mode-browser/dist-types/ts3.4/constants.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import { DefaultsMode } from "@smithy/smithy-client"; -import { Provider } from "@smithy/types"; -/** - * @internal - */ -export declare const DEFAULTS_MODE_OPTIONS: string[]; -/** - * @internal - */ -export interface ResolveDefaultsModeConfigOptions { - defaultsMode?: DefaultsMode | Provider; -} diff --git a/node_modules/@smithy/util-defaults-mode-browser/dist-types/ts3.4/index.d.ts b/node_modules/@smithy/util-defaults-mode-browser/dist-types/ts3.4/index.d.ts deleted file mode 100644 index 4ab48b45..00000000 --- a/node_modules/@smithy/util-defaults-mode-browser/dist-types/ts3.4/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/** - * @internal - */ -export * from "./resolveDefaultsModeConfig"; diff --git a/node_modules/@smithy/util-defaults-mode-browser/dist-types/ts3.4/resolveDefaultsModeConfig.d.ts b/node_modules/@smithy/util-defaults-mode-browser/dist-types/ts3.4/resolveDefaultsModeConfig.d.ts deleted file mode 100644 index d4684787..00000000 --- a/node_modules/@smithy/util-defaults-mode-browser/dist-types/ts3.4/resolveDefaultsModeConfig.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { DefaultsMode, ResolvedDefaultsMode } from "@smithy/smithy-client"; -import { Provider } from "@smithy/types"; -/** - * @internal - */ -export interface ResolveDefaultsModeConfigOptions { - defaultsMode?: DefaultsMode | Provider; -} -/** - * Validate the defaultsMode configuration. If the value is set to "auto", it - * resolves the value to "mobile" if the app is running in a mobile browser, - * otherwise it resolves to "standard". - * - * @default "legacy" - * @internal - */ -export declare const resolveDefaultsModeConfig: ({ defaultsMode, }?: ResolveDefaultsModeConfigOptions) => Provider; diff --git a/node_modules/@smithy/util-defaults-mode-browser/dist-types/ts3.4/resolveDefaultsModeConfig.native.d.ts b/node_modules/@smithy/util-defaults-mode-browser/dist-types/ts3.4/resolveDefaultsModeConfig.native.d.ts deleted file mode 100644 index 86fe4b7f..00000000 --- a/node_modules/@smithy/util-defaults-mode-browser/dist-types/ts3.4/resolveDefaultsModeConfig.native.d.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { DefaultsMode, ResolvedDefaultsMode } from "@smithy/smithy-client"; -import { Provider } from "@smithy/types"; -/** - * @internal - */ -export interface ResolveDefaultsModeConfigOptions { - defaultsMode?: DefaultsMode | Provider; -} -/** - * Validate the defaultsMode configuration. If the value is set to "auto", it - * resolves the value to "mobile". - * - * @default "legacy" - * @internal - */ -export declare const resolveDefaultsModeConfig: ({ defaultsMode, }?: ResolveDefaultsModeConfigOptions) => Provider; diff --git a/node_modules/@smithy/util-defaults-mode-browser/package.json b/node_modules/@smithy/util-defaults-mode-browser/package.json deleted file mode 100644 index c5ddba8a..00000000 --- a/node_modules/@smithy/util-defaults-mode-browser/package.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "name": "@smithy/util-defaults-mode-browser", - "version": "2.0.20", - "scripts": { - "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", - "build:cjs": "yarn g:tsc -p tsconfig.cjs.json", - "build:es": "yarn g:tsc -p tsconfig.es.json", - "build:types": "yarn g:tsc -p tsconfig.types.json", - "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", - "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz", - "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"", - "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"", - "test": "yarn g:jest" - }, - "main": "./dist-cjs/index.js", - "module": "./dist-es/index.js", - "types": "./dist-types/index.d.ts", - "author": { - "name": "AWS SDK for JavaScript Team", - "url": "https://aws.amazon.com/javascript/" - }, - "license": "Apache-2.0", - "dependencies": { - "@smithy/property-provider": "^2.0.15", - "@smithy/smithy-client": "^2.1.16", - "@smithy/types": "^2.6.0", - "bowser": "^2.11.0", - "tslib": "^2.5.0" - }, - "devDependencies": { - "@tsconfig/recommended": "1.0.1", - "@types/node": "^14.14.31", - "concurrently": "7.0.0", - "downlevel-dts": "0.10.1", - "rimraf": "3.0.2", - "typedoc": "0.23.23" - }, - "engines": { - "node": ">= 10.0.0" - }, - "typesVersions": { - "<4.0": { - "dist-types/*": [ - "dist-types/ts3.4/*" - ] - } - }, - "files": [ - "dist-*/**" - ], - "react-native": {}, - "browser": {}, - "homepage": "https://github.com/awslabs/smithy-typescript/tree/main/packages/util-defaults-mode-node", - "repository": { - "type": "git", - "url": "https://github.com/awslabs/smithy-typescript.git", - "directory": "packages/util-defaults-mode-node" - }, - "typedoc": { - "entryPoint": "src/index.ts" - }, - "publishConfig": { - "directory": ".release/package" - } -} \ No newline at end of file diff --git a/node_modules/@smithy/util-defaults-mode-node/LICENSE b/node_modules/@smithy/util-defaults-mode-node/LICENSE deleted file mode 100644 index dd65ae06..00000000 --- a/node_modules/@smithy/util-defaults-mode-node/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. diff --git a/node_modules/@smithy/util-defaults-mode-node/README.md b/node_modules/@smithy/util-defaults-mode-node/README.md deleted file mode 100644 index bfae0bd6..00000000 --- a/node_modules/@smithy/util-defaults-mode-node/README.md +++ /dev/null @@ -1,10 +0,0 @@ -# @smithy/util-defaults-mode-node - -[![NPM version](https://img.shields.io/npm/v/@smithy/util-defaults-mode-node/latest.svg)](https://www.npmjs.com/package/@smithy/util-defaults-mode-node) -[![NPM downloads](https://img.shields.io/npm/dm/@smithy/util-defaults-mode-node.svg)](https://www.npmjs.com/package/@smithy/util-defaults-mode-node) - -> An internal package - -## Usage - -You probably shouldn't, at least directly. diff --git a/node_modules/@smithy/util-defaults-mode-node/dist-cjs/constants.js b/node_modules/@smithy/util-defaults-mode-node/dist-cjs/constants.js deleted file mode 100644 index 43e20622..00000000 --- a/node_modules/@smithy/util-defaults-mode-node/dist-cjs/constants.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.IMDS_REGION_PATH = exports.DEFAULTS_MODE_OPTIONS = exports.ENV_IMDS_DISABLED = exports.AWS_DEFAULT_REGION_ENV = exports.AWS_REGION_ENV = exports.AWS_EXECUTION_ENV = void 0; -exports.AWS_EXECUTION_ENV = "AWS_EXECUTION_ENV"; -exports.AWS_REGION_ENV = "AWS_REGION"; -exports.AWS_DEFAULT_REGION_ENV = "AWS_DEFAULT_REGION"; -exports.ENV_IMDS_DISABLED = "AWS_EC2_METADATA_DISABLED"; -exports.DEFAULTS_MODE_OPTIONS = ["in-region", "cross-region", "mobile", "standard", "legacy"]; -exports.IMDS_REGION_PATH = "/latest/meta-data/placement/region"; diff --git a/node_modules/@smithy/util-defaults-mode-node/dist-cjs/defaultsModeConfig.js b/node_modules/@smithy/util-defaults-mode-node/dist-cjs/defaultsModeConfig.js deleted file mode 100644 index be32c095..00000000 --- a/node_modules/@smithy/util-defaults-mode-node/dist-cjs/defaultsModeConfig.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.NODE_DEFAULTS_MODE_CONFIG_OPTIONS = void 0; -const AWS_DEFAULTS_MODE_ENV = "AWS_DEFAULTS_MODE"; -const AWS_DEFAULTS_MODE_CONFIG = "defaults_mode"; -exports.NODE_DEFAULTS_MODE_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => { - return env[AWS_DEFAULTS_MODE_ENV]; - }, - configFileSelector: (profile) => { - return profile[AWS_DEFAULTS_MODE_CONFIG]; - }, - default: "legacy", -}; diff --git a/node_modules/@smithy/util-defaults-mode-node/dist-cjs/index.js b/node_modules/@smithy/util-defaults-mode-node/dist-cjs/index.js deleted file mode 100644 index fff2fcd3..00000000 --- a/node_modules/@smithy/util-defaults-mode-node/dist-cjs/index.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./resolveDefaultsModeConfig"), exports); diff --git a/node_modules/@smithy/util-defaults-mode-node/dist-cjs/resolveDefaultsModeConfig.js b/node_modules/@smithy/util-defaults-mode-node/dist-cjs/resolveDefaultsModeConfig.js deleted file mode 100644 index 2e4e710a..00000000 --- a/node_modules/@smithy/util-defaults-mode-node/dist-cjs/resolveDefaultsModeConfig.js +++ /dev/null @@ -1,57 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.resolveDefaultsModeConfig = void 0; -const config_resolver_1 = require("@smithy/config-resolver"); -const credential_provider_imds_1 = require("@smithy/credential-provider-imds"); -const node_config_provider_1 = require("@smithy/node-config-provider"); -const property_provider_1 = require("@smithy/property-provider"); -const constants_1 = require("./constants"); -const defaultsModeConfig_1 = require("./defaultsModeConfig"); -const resolveDefaultsModeConfig = ({ region = (0, node_config_provider_1.loadConfig)(config_resolver_1.NODE_REGION_CONFIG_OPTIONS), defaultsMode = (0, node_config_provider_1.loadConfig)(defaultsModeConfig_1.NODE_DEFAULTS_MODE_CONFIG_OPTIONS), } = {}) => (0, property_provider_1.memoize)(async () => { - const mode = typeof defaultsMode === "function" ? await defaultsMode() : defaultsMode; - switch (mode === null || mode === void 0 ? void 0 : mode.toLowerCase()) { - case "auto": - return resolveNodeDefaultsModeAuto(region); - case "in-region": - case "cross-region": - case "mobile": - case "standard": - case "legacy": - return Promise.resolve(mode === null || mode === void 0 ? void 0 : mode.toLocaleLowerCase()); - case undefined: - return Promise.resolve("legacy"); - default: - throw new Error(`Invalid parameter for "defaultsMode", expect ${constants_1.DEFAULTS_MODE_OPTIONS.join(", ")}, got ${mode}`); - } -}); -exports.resolveDefaultsModeConfig = resolveDefaultsModeConfig; -const resolveNodeDefaultsModeAuto = async (clientRegion) => { - if (clientRegion) { - const resolvedRegion = typeof clientRegion === "function" ? await clientRegion() : clientRegion; - const inferredRegion = await inferPhysicalRegion(); - if (!inferredRegion) { - return "standard"; - } - if (resolvedRegion === inferredRegion) { - return "in-region"; - } - else { - return "cross-region"; - } - } - return "standard"; -}; -const inferPhysicalRegion = async () => { - var _a; - if (process.env[constants_1.AWS_EXECUTION_ENV] && (process.env[constants_1.AWS_REGION_ENV] || process.env[constants_1.AWS_DEFAULT_REGION_ENV])) { - return (_a = process.env[constants_1.AWS_REGION_ENV]) !== null && _a !== void 0 ? _a : process.env[constants_1.AWS_DEFAULT_REGION_ENV]; - } - if (!process.env[constants_1.ENV_IMDS_DISABLED]) { - try { - const endpoint = await (0, credential_provider_imds_1.getInstanceMetadataEndpoint)(); - return (await (0, credential_provider_imds_1.httpRequest)({ ...endpoint, path: constants_1.IMDS_REGION_PATH })).toString(); - } - catch (e) { - } - } -}; diff --git a/node_modules/@smithy/util-defaults-mode-node/dist-es/constants.js b/node_modules/@smithy/util-defaults-mode-node/dist-es/constants.js deleted file mode 100644 index 69361a3f..00000000 --- a/node_modules/@smithy/util-defaults-mode-node/dist-es/constants.js +++ /dev/null @@ -1,6 +0,0 @@ -export const AWS_EXECUTION_ENV = "AWS_EXECUTION_ENV"; -export const AWS_REGION_ENV = "AWS_REGION"; -export const AWS_DEFAULT_REGION_ENV = "AWS_DEFAULT_REGION"; -export const ENV_IMDS_DISABLED = "AWS_EC2_METADATA_DISABLED"; -export const DEFAULTS_MODE_OPTIONS = ["in-region", "cross-region", "mobile", "standard", "legacy"]; -export const IMDS_REGION_PATH = "/latest/meta-data/placement/region"; diff --git a/node_modules/@smithy/util-defaults-mode-node/dist-es/defaultsModeConfig.js b/node_modules/@smithy/util-defaults-mode-node/dist-es/defaultsModeConfig.js deleted file mode 100644 index f43b5708..00000000 --- a/node_modules/@smithy/util-defaults-mode-node/dist-es/defaultsModeConfig.js +++ /dev/null @@ -1,11 +0,0 @@ -const AWS_DEFAULTS_MODE_ENV = "AWS_DEFAULTS_MODE"; -const AWS_DEFAULTS_MODE_CONFIG = "defaults_mode"; -export const NODE_DEFAULTS_MODE_CONFIG_OPTIONS = { - environmentVariableSelector: (env) => { - return env[AWS_DEFAULTS_MODE_ENV]; - }, - configFileSelector: (profile) => { - return profile[AWS_DEFAULTS_MODE_CONFIG]; - }, - default: "legacy", -}; diff --git a/node_modules/@smithy/util-defaults-mode-node/dist-es/index.js b/node_modules/@smithy/util-defaults-mode-node/dist-es/index.js deleted file mode 100644 index 05aa8183..00000000 --- a/node_modules/@smithy/util-defaults-mode-node/dist-es/index.js +++ /dev/null @@ -1 +0,0 @@ -export * from "./resolveDefaultsModeConfig"; diff --git a/node_modules/@smithy/util-defaults-mode-node/dist-es/resolveDefaultsModeConfig.js b/node_modules/@smithy/util-defaults-mode-node/dist-es/resolveDefaultsModeConfig.js deleted file mode 100644 index e7d55c66..00000000 --- a/node_modules/@smithy/util-defaults-mode-node/dist-es/resolveDefaultsModeConfig.js +++ /dev/null @@ -1,52 +0,0 @@ -import { NODE_REGION_CONFIG_OPTIONS } from "@smithy/config-resolver"; -import { getInstanceMetadataEndpoint, httpRequest } from "@smithy/credential-provider-imds"; -import { loadConfig } from "@smithy/node-config-provider"; -import { memoize } from "@smithy/property-provider"; -import { AWS_DEFAULT_REGION_ENV, AWS_EXECUTION_ENV, AWS_REGION_ENV, DEFAULTS_MODE_OPTIONS, ENV_IMDS_DISABLED, IMDS_REGION_PATH, } from "./constants"; -import { NODE_DEFAULTS_MODE_CONFIG_OPTIONS } from "./defaultsModeConfig"; -export const resolveDefaultsModeConfig = ({ region = loadConfig(NODE_REGION_CONFIG_OPTIONS), defaultsMode = loadConfig(NODE_DEFAULTS_MODE_CONFIG_OPTIONS), } = {}) => memoize(async () => { - const mode = typeof defaultsMode === "function" ? await defaultsMode() : defaultsMode; - switch (mode?.toLowerCase()) { - case "auto": - return resolveNodeDefaultsModeAuto(region); - case "in-region": - case "cross-region": - case "mobile": - case "standard": - case "legacy": - return Promise.resolve(mode?.toLocaleLowerCase()); - case undefined: - return Promise.resolve("legacy"); - default: - throw new Error(`Invalid parameter for "defaultsMode", expect ${DEFAULTS_MODE_OPTIONS.join(", ")}, got ${mode}`); - } -}); -const resolveNodeDefaultsModeAuto = async (clientRegion) => { - if (clientRegion) { - const resolvedRegion = typeof clientRegion === "function" ? await clientRegion() : clientRegion; - const inferredRegion = await inferPhysicalRegion(); - if (!inferredRegion) { - return "standard"; - } - if (resolvedRegion === inferredRegion) { - return "in-region"; - } - else { - return "cross-region"; - } - } - return "standard"; -}; -const inferPhysicalRegion = async () => { - if (process.env[AWS_EXECUTION_ENV] && (process.env[AWS_REGION_ENV] || process.env[AWS_DEFAULT_REGION_ENV])) { - return process.env[AWS_REGION_ENV] ?? process.env[AWS_DEFAULT_REGION_ENV]; - } - if (!process.env[ENV_IMDS_DISABLED]) { - try { - const endpoint = await getInstanceMetadataEndpoint(); - return (await httpRequest({ ...endpoint, path: IMDS_REGION_PATH })).toString(); - } - catch (e) { - } - } -}; diff --git a/node_modules/@smithy/util-defaults-mode-node/dist-types/constants.d.ts b/node_modules/@smithy/util-defaults-mode-node/dist-types/constants.d.ts deleted file mode 100644 index a2db2834..00000000 --- a/node_modules/@smithy/util-defaults-mode-node/dist-types/constants.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * @internal - */ -export declare const AWS_EXECUTION_ENV = "AWS_EXECUTION_ENV"; -/** - * @internal - */ -export declare const AWS_REGION_ENV = "AWS_REGION"; -/** - * @internal - */ -export declare const AWS_DEFAULT_REGION_ENV = "AWS_DEFAULT_REGION"; -/** - * @internal - */ -export declare const ENV_IMDS_DISABLED = "AWS_EC2_METADATA_DISABLED"; -/** - * @internal - */ -export declare const DEFAULTS_MODE_OPTIONS: string[]; -/** - * @internal - */ -export declare const IMDS_REGION_PATH = "/latest/meta-data/placement/region"; diff --git a/node_modules/@smithy/util-defaults-mode-node/dist-types/defaultsModeConfig.d.ts b/node_modules/@smithy/util-defaults-mode-node/dist-types/defaultsModeConfig.d.ts deleted file mode 100644 index 12f4dae0..00000000 --- a/node_modules/@smithy/util-defaults-mode-node/dist-types/defaultsModeConfig.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { LoadedConfigSelectors } from "@smithy/node-config-provider"; -import type { DefaultsMode } from "@smithy/smithy-client"; -/** - * @internal - */ -export declare const NODE_DEFAULTS_MODE_CONFIG_OPTIONS: LoadedConfigSelectors; diff --git a/node_modules/@smithy/util-defaults-mode-node/dist-types/index.d.ts b/node_modules/@smithy/util-defaults-mode-node/dist-types/index.d.ts deleted file mode 100644 index 003de26f..00000000 --- a/node_modules/@smithy/util-defaults-mode-node/dist-types/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/** - * @internal - */ -export * from "./resolveDefaultsModeConfig"; diff --git a/node_modules/@smithy/util-defaults-mode-node/dist-types/resolveDefaultsModeConfig.d.ts b/node_modules/@smithy/util-defaults-mode-node/dist-types/resolveDefaultsModeConfig.d.ts deleted file mode 100644 index 8f343715..00000000 --- a/node_modules/@smithy/util-defaults-mode-node/dist-types/resolveDefaultsModeConfig.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import type { DefaultsMode, ResolvedDefaultsMode } from "@smithy/smithy-client"; -import type { Provider } from "@smithy/types"; -/** - * @internal - */ -export interface ResolveDefaultsModeConfigOptions { - defaultsMode?: DefaultsMode | Provider; - region?: string | Provider; -} -/** - * Validate the defaultsMode configuration. If the value is set to "auto", it - * resolves the value to "in-region", "cross-region", or "standard". - * - * @default "legacy" - * @internal - */ -export declare const resolveDefaultsModeConfig: ({ region, defaultsMode, }?: ResolveDefaultsModeConfigOptions) => Provider; diff --git a/node_modules/@smithy/util-defaults-mode-node/dist-types/ts3.4/constants.d.ts b/node_modules/@smithy/util-defaults-mode-node/dist-types/ts3.4/constants.d.ts deleted file mode 100644 index b847dc2a..00000000 --- a/node_modules/@smithy/util-defaults-mode-node/dist-types/ts3.4/constants.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -/** - * @internal - */ -export declare const AWS_EXECUTION_ENV = "AWS_EXECUTION_ENV"; -/** - * @internal - */ -export declare const AWS_REGION_ENV = "AWS_REGION"; -/** - * @internal - */ -export declare const AWS_DEFAULT_REGION_ENV = "AWS_DEFAULT_REGION"; -/** - * @internal - */ -export declare const ENV_IMDS_DISABLED = "AWS_EC2_METADATA_DISABLED"; -/** - * @internal - */ -export declare const DEFAULTS_MODE_OPTIONS: string[]; -/** - * @internal - */ -export declare const IMDS_REGION_PATH = "/latest/meta-data/placement/region"; diff --git a/node_modules/@smithy/util-defaults-mode-node/dist-types/ts3.4/defaultsModeConfig.d.ts b/node_modules/@smithy/util-defaults-mode-node/dist-types/ts3.4/defaultsModeConfig.d.ts deleted file mode 100644 index 76c3d0da..00000000 --- a/node_modules/@smithy/util-defaults-mode-node/dist-types/ts3.4/defaultsModeConfig.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { LoadedConfigSelectors } from "@smithy/node-config-provider"; -import { DefaultsMode } from "@smithy/smithy-client"; -/** - * @internal - */ -export declare const NODE_DEFAULTS_MODE_CONFIG_OPTIONS: LoadedConfigSelectors; diff --git a/node_modules/@smithy/util-defaults-mode-node/dist-types/ts3.4/index.d.ts b/node_modules/@smithy/util-defaults-mode-node/dist-types/ts3.4/index.d.ts deleted file mode 100644 index 4ab48b45..00000000 --- a/node_modules/@smithy/util-defaults-mode-node/dist-types/ts3.4/index.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/** - * @internal - */ -export * from "./resolveDefaultsModeConfig"; diff --git a/node_modules/@smithy/util-defaults-mode-node/dist-types/ts3.4/resolveDefaultsModeConfig.d.ts b/node_modules/@smithy/util-defaults-mode-node/dist-types/ts3.4/resolveDefaultsModeConfig.d.ts deleted file mode 100644 index 4daa927b..00000000 --- a/node_modules/@smithy/util-defaults-mode-node/dist-types/ts3.4/resolveDefaultsModeConfig.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import { DefaultsMode, ResolvedDefaultsMode } from "@smithy/smithy-client"; -import { Provider } from "@smithy/types"; -/** - * @internal - */ -export interface ResolveDefaultsModeConfigOptions { - defaultsMode?: DefaultsMode | Provider; - region?: string | Provider; -} -/** - * Validate the defaultsMode configuration. If the value is set to "auto", it - * resolves the value to "in-region", "cross-region", or "standard". - * - * @default "legacy" - * @internal - */ -export declare const resolveDefaultsModeConfig: ({ region, defaultsMode, }?: ResolveDefaultsModeConfigOptions) => Provider; diff --git a/node_modules/@smithy/util-defaults-mode-node/package.json b/node_modules/@smithy/util-defaults-mode-node/package.json deleted file mode 100644 index f4365002..00000000 --- a/node_modules/@smithy/util-defaults-mode-node/package.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "name": "@smithy/util-defaults-mode-node", - "version": "2.0.26", - "scripts": { - "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", - "build:cjs": "yarn g:tsc -p tsconfig.cjs.json", - "build:es": "yarn g:tsc -p tsconfig.es.json", - "build:types": "yarn g:tsc -p tsconfig.types.json", - "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", - "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz", - "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"", - "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"", - "test": "yarn g:jest" - }, - "main": "./dist-cjs/index.js", - "module": "./dist-es/index.js", - "types": "./dist-types/index.d.ts", - "author": { - "name": "AWS SDK for JavaScript Team", - "url": "https://aws.amazon.com/javascript/" - }, - "license": "Apache-2.0", - "dependencies": { - "@smithy/config-resolver": "^2.0.19", - "@smithy/credential-provider-imds": "^2.1.2", - "@smithy/node-config-provider": "^2.1.6", - "@smithy/property-provider": "^2.0.15", - "@smithy/smithy-client": "^2.1.16", - "@smithy/types": "^2.6.0", - "tslib": "^2.5.0" - }, - "devDependencies": { - "@tsconfig/recommended": "1.0.1", - "@types/node": "^14.14.31", - "concurrently": "7.0.0", - "downlevel-dts": "0.10.1", - "rimraf": "3.0.2", - "typedoc": "0.23.23" - }, - "engines": { - "node": ">= 10.0.0" - }, - "typesVersions": { - "<4.0": { - "dist-types/*": [ - "dist-types/ts3.4/*" - ] - } - }, - "files": [ - "dist-*/**" - ], - "homepage": "https://github.com/awslabs/smithy-typescript/tree/main/packages/util-defaults-mode-node", - "repository": { - "type": "git", - "url": "https://github.com/awslabs/smithy-typescript.git", - "directory": "packages/util-defaults-mode-node" - }, - "typedoc": { - "entryPoint": "src/index.ts" - }, - "publishConfig": { - "directory": ".release/package" - } -} \ No newline at end of file diff --git a/node_modules/@smithy/util-endpoints/LICENSE b/node_modules/@smithy/util-endpoints/LICENSE deleted file mode 100644 index a1895fac..00000000 --- a/node_modules/@smithy/util-endpoints/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. \ No newline at end of file diff --git a/node_modules/@smithy/util-endpoints/README.md b/node_modules/@smithy/util-endpoints/README.md deleted file mode 100644 index 85d60b31..00000000 --- a/node_modules/@smithy/util-endpoints/README.md +++ /dev/null @@ -1,10 +0,0 @@ -# @smithy/util-endpoints - -[![NPM version](https://img.shields.io/npm/v/@smithy/util-endpoints/latest.svg)](https://www.npmjs.com/package/@smithy/util-endpoints) -[![NPM downloads](https://img.shields.io/npm/dm/@smithy/util-endpoints.svg)](https://www.npmjs.com/package/@smithy/util-endpoints) - -> An internal package - -## Usage - -You probably shouldn't, at least directly. diff --git a/node_modules/@smithy/util-endpoints/dist-cjs/debug/debugId.js b/node_modules/@smithy/util-endpoints/dist-cjs/debug/debugId.js deleted file mode 100644 index abbd314e..00000000 --- a/node_modules/@smithy/util-endpoints/dist-cjs/debug/debugId.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.debugId = void 0; -exports.debugId = "endpoints"; diff --git a/node_modules/@smithy/util-endpoints/dist-cjs/debug/index.js b/node_modules/@smithy/util-endpoints/dist-cjs/debug/index.js deleted file mode 100644 index 894b0261..00000000 --- a/node_modules/@smithy/util-endpoints/dist-cjs/debug/index.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./debugId"), exports); -tslib_1.__exportStar(require("./toDebugString"), exports); diff --git a/node_modules/@smithy/util-endpoints/dist-cjs/debug/toDebugString.js b/node_modules/@smithy/util-endpoints/dist-cjs/debug/toDebugString.js deleted file mode 100644 index 58817305..00000000 --- a/node_modules/@smithy/util-endpoints/dist-cjs/debug/toDebugString.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.toDebugString = void 0; -function toDebugString(input) { - if (typeof input !== "object" || input == null) { - return input; - } - if ("ref" in input) { - return `$${toDebugString(input.ref)}`; - } - if ("fn" in input) { - return `${input.fn}(${(input.argv || []).map(toDebugString).join(", ")})`; - } - return JSON.stringify(input, null, 2); -} -exports.toDebugString = toDebugString; diff --git a/node_modules/@smithy/util-endpoints/dist-cjs/getEndpointUrlConfig.js b/node_modules/@smithy/util-endpoints/dist-cjs/getEndpointUrlConfig.js deleted file mode 100644 index e63627be..00000000 --- a/node_modules/@smithy/util-endpoints/dist-cjs/getEndpointUrlConfig.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getEndpointUrlConfig = void 0; -const ENV_ENDPOINT_URL = "AWS_ENDPOINT_URL"; -const CONFIG_ENDPOINT_URL = "endpoint_url"; -const getEndpointUrlConfig = (serviceId) => ({ - environmentVariableSelector: (env) => { - const serviceEndpointUrlSections = [ENV_ENDPOINT_URL, ...serviceId.split(" ").map((w) => w.toUpperCase())]; - const serviceEndpointUrl = env[serviceEndpointUrlSections.join("_")]; - if (serviceEndpointUrl) - return serviceEndpointUrl; - const endpointUrl = env[ENV_ENDPOINT_URL]; - if (endpointUrl) - return endpointUrl; - return undefined; - }, - configFileSelector: (profile) => { - const endpointUrl = profile[CONFIG_ENDPOINT_URL]; - if (endpointUrl) - return endpointUrl; - return undefined; - }, - default: undefined, -}); -exports.getEndpointUrlConfig = getEndpointUrlConfig; diff --git a/node_modules/@smithy/util-endpoints/dist-cjs/index.js b/node_modules/@smithy/util-endpoints/dist-cjs/index.js deleted file mode 100644 index 92edd11f..00000000 --- a/node_modules/@smithy/util-endpoints/dist-cjs/index.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./lib/isIpAddress"), exports); -tslib_1.__exportStar(require("./lib/isValidHostLabel"), exports); -tslib_1.__exportStar(require("./utils/customEndpointFunctions"), exports); -tslib_1.__exportStar(require("./resolveEndpoint"), exports); -tslib_1.__exportStar(require("./types"), exports); diff --git a/node_modules/@smithy/util-endpoints/dist-cjs/lib/booleanEquals.js b/node_modules/@smithy/util-endpoints/dist-cjs/lib/booleanEquals.js deleted file mode 100644 index acce55d8..00000000 --- a/node_modules/@smithy/util-endpoints/dist-cjs/lib/booleanEquals.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.booleanEquals = void 0; -const booleanEquals = (value1, value2) => value1 === value2; -exports.booleanEquals = booleanEquals; diff --git a/node_modules/@smithy/util-endpoints/dist-cjs/lib/getAttr.js b/node_modules/@smithy/util-endpoints/dist-cjs/lib/getAttr.js deleted file mode 100644 index 4f7671bb..00000000 --- a/node_modules/@smithy/util-endpoints/dist-cjs/lib/getAttr.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getAttr = void 0; -const types_1 = require("../types"); -const getAttrPathList_1 = require("./getAttrPathList"); -const getAttr = (value, path) => (0, getAttrPathList_1.getAttrPathList)(path).reduce((acc, index) => { - if (typeof acc !== "object") { - throw new types_1.EndpointError(`Index '${index}' in '${path}' not found in '${JSON.stringify(value)}'`); - } - else if (Array.isArray(acc)) { - return acc[parseInt(index)]; - } - return acc[index]; -}, value); -exports.getAttr = getAttr; diff --git a/node_modules/@smithy/util-endpoints/dist-cjs/lib/getAttrPathList.js b/node_modules/@smithy/util-endpoints/dist-cjs/lib/getAttrPathList.js deleted file mode 100644 index e4d43aaf..00000000 --- a/node_modules/@smithy/util-endpoints/dist-cjs/lib/getAttrPathList.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getAttrPathList = void 0; -const types_1 = require("../types"); -const getAttrPathList = (path) => { - const parts = path.split("."); - const pathList = []; - for (const part of parts) { - const squareBracketIndex = part.indexOf("["); - if (squareBracketIndex !== -1) { - if (part.indexOf("]") !== part.length - 1) { - throw new types_1.EndpointError(`Path: '${path}' does not end with ']'`); - } - const arrayIndex = part.slice(squareBracketIndex + 1, -1); - if (Number.isNaN(parseInt(arrayIndex))) { - throw new types_1.EndpointError(`Invalid array index: '${arrayIndex}' in path: '${path}'`); - } - if (squareBracketIndex !== 0) { - pathList.push(part.slice(0, squareBracketIndex)); - } - pathList.push(arrayIndex); - } - else { - pathList.push(part); - } - } - return pathList; -}; -exports.getAttrPathList = getAttrPathList; diff --git a/node_modules/@smithy/util-endpoints/dist-cjs/lib/index.js b/node_modules/@smithy/util-endpoints/dist-cjs/lib/index.js deleted file mode 100644 index 4a462aa7..00000000 --- a/node_modules/@smithy/util-endpoints/dist-cjs/lib/index.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./booleanEquals"), exports); -tslib_1.__exportStar(require("./getAttr"), exports); -tslib_1.__exportStar(require("./isSet"), exports); -tslib_1.__exportStar(require("./isValidHostLabel"), exports); -tslib_1.__exportStar(require("./not"), exports); -tslib_1.__exportStar(require("./parseURL"), exports); -tslib_1.__exportStar(require("./stringEquals"), exports); -tslib_1.__exportStar(require("./substring"), exports); -tslib_1.__exportStar(require("./uriEncode"), exports); diff --git a/node_modules/@smithy/util-endpoints/dist-cjs/lib/isIpAddress.js b/node_modules/@smithy/util-endpoints/dist-cjs/lib/isIpAddress.js deleted file mode 100644 index e4db4c3f..00000000 --- a/node_modules/@smithy/util-endpoints/dist-cjs/lib/isIpAddress.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isIpAddress = void 0; -const IP_V4_REGEX = new RegExp(`^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$`); -const isIpAddress = (value) => IP_V4_REGEX.test(value) || (value.startsWith("[") && value.endsWith("]")); -exports.isIpAddress = isIpAddress; diff --git a/node_modules/@smithy/util-endpoints/dist-cjs/lib/isSet.js b/node_modules/@smithy/util-endpoints/dist-cjs/lib/isSet.js deleted file mode 100644 index 94325e7c..00000000 --- a/node_modules/@smithy/util-endpoints/dist-cjs/lib/isSet.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isSet = void 0; -const isSet = (value) => value != null; -exports.isSet = isSet; diff --git a/node_modules/@smithy/util-endpoints/dist-cjs/lib/isValidHostLabel.js b/node_modules/@smithy/util-endpoints/dist-cjs/lib/isValidHostLabel.js deleted file mode 100644 index 3a7dbb73..00000000 --- a/node_modules/@smithy/util-endpoints/dist-cjs/lib/isValidHostLabel.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.isValidHostLabel = void 0; -const VALID_HOST_LABEL_REGEX = new RegExp(`^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$`); -const isValidHostLabel = (value, allowSubDomains = false) => { - if (!allowSubDomains) { - return VALID_HOST_LABEL_REGEX.test(value); - } - const labels = value.split("."); - for (const label of labels) { - if (!(0, exports.isValidHostLabel)(label)) { - return false; - } - } - return true; -}; -exports.isValidHostLabel = isValidHostLabel; diff --git a/node_modules/@smithy/util-endpoints/dist-cjs/lib/not.js b/node_modules/@smithy/util-endpoints/dist-cjs/lib/not.js deleted file mode 100644 index 88aef3b2..00000000 --- a/node_modules/@smithy/util-endpoints/dist-cjs/lib/not.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.not = void 0; -const not = (value) => !value; -exports.not = not; diff --git a/node_modules/@smithy/util-endpoints/dist-cjs/lib/parseURL.js b/node_modules/@smithy/util-endpoints/dist-cjs/lib/parseURL.js deleted file mode 100644 index a8952ba5..00000000 --- a/node_modules/@smithy/util-endpoints/dist-cjs/lib/parseURL.js +++ /dev/null @@ -1,55 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.parseURL = void 0; -const types_1 = require("@smithy/types"); -const isIpAddress_1 = require("./isIpAddress"); -const DEFAULT_PORTS = { - [types_1.EndpointURLScheme.HTTP]: 80, - [types_1.EndpointURLScheme.HTTPS]: 443, -}; -const parseURL = (value) => { - const whatwgURL = (() => { - try { - if (value instanceof URL) { - return value; - } - if (typeof value === "object" && "hostname" in value) { - const { hostname, port, protocol = "", path = "", query = {} } = value; - const url = new URL(`${protocol}//${hostname}${port ? `:${port}` : ""}${path}`); - url.search = Object.entries(query) - .map(([k, v]) => `${k}=${v}`) - .join("&"); - return url; - } - return new URL(value); - } - catch (error) { - return null; - } - })(); - if (!whatwgURL) { - console.error(`Unable to parse ${JSON.stringify(value)} as a whatwg URL.`); - return null; - } - const urlString = whatwgURL.href; - const { host, hostname, pathname, protocol, search } = whatwgURL; - if (search) { - return null; - } - const scheme = protocol.slice(0, -1); - if (!Object.values(types_1.EndpointURLScheme).includes(scheme)) { - return null; - } - const isIp = (0, isIpAddress_1.isIpAddress)(hostname); - const inputContainsDefaultPort = urlString.includes(`${host}:${DEFAULT_PORTS[scheme]}`) || - (typeof value === "string" && value.includes(`${host}:${DEFAULT_PORTS[scheme]}`)); - const authority = `${host}${inputContainsDefaultPort ? `:${DEFAULT_PORTS[scheme]}` : ``}`; - return { - scheme, - authority, - path: pathname, - normalizedPath: pathname.endsWith("/") ? pathname : `${pathname}/`, - isIp, - }; -}; -exports.parseURL = parseURL; diff --git a/node_modules/@smithy/util-endpoints/dist-cjs/lib/stringEquals.js b/node_modules/@smithy/util-endpoints/dist-cjs/lib/stringEquals.js deleted file mode 100644 index c1cae473..00000000 --- a/node_modules/@smithy/util-endpoints/dist-cjs/lib/stringEquals.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.stringEquals = void 0; -const stringEquals = (value1, value2) => value1 === value2; -exports.stringEquals = stringEquals; diff --git a/node_modules/@smithy/util-endpoints/dist-cjs/lib/substring.js b/node_modules/@smithy/util-endpoints/dist-cjs/lib/substring.js deleted file mode 100644 index 6f0477db..00000000 --- a/node_modules/@smithy/util-endpoints/dist-cjs/lib/substring.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.substring = void 0; -const substring = (input, start, stop, reverse) => { - if (start >= stop || input.length < stop) { - return null; - } - if (!reverse) { - return input.substring(start, stop); - } - return input.substring(input.length - stop, input.length - start); -}; -exports.substring = substring; diff --git a/node_modules/@smithy/util-endpoints/dist-cjs/lib/uriEncode.js b/node_modules/@smithy/util-endpoints/dist-cjs/lib/uriEncode.js deleted file mode 100644 index 36ef4679..00000000 --- a/node_modules/@smithy/util-endpoints/dist-cjs/lib/uriEncode.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.uriEncode = void 0; -const uriEncode = (value) => encodeURIComponent(value).replace(/[!*'()]/g, (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`); -exports.uriEncode = uriEncode; diff --git a/node_modules/@smithy/util-endpoints/dist-cjs/resolveEndpoint.js b/node_modules/@smithy/util-endpoints/dist-cjs/resolveEndpoint.js deleted file mode 100644 index 6b400e65..00000000 --- a/node_modules/@smithy/util-endpoints/dist-cjs/resolveEndpoint.js +++ /dev/null @@ -1,42 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.resolveEndpoint = void 0; -const debug_1 = require("./debug"); -const types_1 = require("./types"); -const utils_1 = require("./utils"); -const resolveEndpoint = (ruleSetObject, options) => { - var _a, _b, _c, _d, _e, _f; - const { endpointParams, logger } = options; - const { parameters, rules } = ruleSetObject; - (_b = (_a = options.logger) === null || _a === void 0 ? void 0 : _a.debug) === null || _b === void 0 ? void 0 : _b.call(_a, `${debug_1.debugId} Initial EndpointParams: ${(0, debug_1.toDebugString)(endpointParams)}`); - const paramsWithDefault = Object.entries(parameters) - .filter(([, v]) => v.default != null) - .map(([k, v]) => [k, v.default]); - if (paramsWithDefault.length > 0) { - for (const [paramKey, paramDefaultValue] of paramsWithDefault) { - endpointParams[paramKey] = (_c = endpointParams[paramKey]) !== null && _c !== void 0 ? _c : paramDefaultValue; - } - } - const requiredParams = Object.entries(parameters) - .filter(([, v]) => v.required) - .map(([k]) => k); - for (const requiredParam of requiredParams) { - if (endpointParams[requiredParam] == null) { - throw new types_1.EndpointError(`Missing required parameter: '${requiredParam}'`); - } - } - const endpoint = (0, utils_1.evaluateRules)(rules, { endpointParams, logger, referenceRecord: {} }); - if ((_d = options.endpointParams) === null || _d === void 0 ? void 0 : _d.Endpoint) { - try { - const givenEndpoint = new URL(options.endpointParams.Endpoint); - const { protocol, port } = givenEndpoint; - endpoint.url.protocol = protocol; - endpoint.url.port = port; - } - catch (e) { - } - } - (_f = (_e = options.logger) === null || _e === void 0 ? void 0 : _e.debug) === null || _f === void 0 ? void 0 : _f.call(_e, `${debug_1.debugId} Resolved endpoint: ${(0, debug_1.toDebugString)(endpoint)}`); - return endpoint; -}; -exports.resolveEndpoint = resolveEndpoint; diff --git a/node_modules/@smithy/util-endpoints/dist-cjs/types/EndpointError.js b/node_modules/@smithy/util-endpoints/dist-cjs/types/EndpointError.js deleted file mode 100644 index fffb7620..00000000 --- a/node_modules/@smithy/util-endpoints/dist-cjs/types/EndpointError.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.EndpointError = void 0; -class EndpointError extends Error { - constructor(message) { - super(message); - this.name = "EndpointError"; - } -} -exports.EndpointError = EndpointError; diff --git a/node_modules/@smithy/util-endpoints/dist-cjs/types/EndpointFunctions.js b/node_modules/@smithy/util-endpoints/dist-cjs/types/EndpointFunctions.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@smithy/util-endpoints/dist-cjs/types/EndpointFunctions.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@smithy/util-endpoints/dist-cjs/types/EndpointRuleObject.js b/node_modules/@smithy/util-endpoints/dist-cjs/types/EndpointRuleObject.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@smithy/util-endpoints/dist-cjs/types/EndpointRuleObject.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@smithy/util-endpoints/dist-cjs/types/ErrorRuleObject.js b/node_modules/@smithy/util-endpoints/dist-cjs/types/ErrorRuleObject.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@smithy/util-endpoints/dist-cjs/types/ErrorRuleObject.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@smithy/util-endpoints/dist-cjs/types/RuleSetObject.js b/node_modules/@smithy/util-endpoints/dist-cjs/types/RuleSetObject.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@smithy/util-endpoints/dist-cjs/types/RuleSetObject.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@smithy/util-endpoints/dist-cjs/types/TreeRuleObject.js b/node_modules/@smithy/util-endpoints/dist-cjs/types/TreeRuleObject.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@smithy/util-endpoints/dist-cjs/types/TreeRuleObject.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@smithy/util-endpoints/dist-cjs/types/index.js b/node_modules/@smithy/util-endpoints/dist-cjs/types/index.js deleted file mode 100644 index 877c2aa8..00000000 --- a/node_modules/@smithy/util-endpoints/dist-cjs/types/index.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./EndpointError"), exports); -tslib_1.__exportStar(require("./EndpointFunctions"), exports); -tslib_1.__exportStar(require("./EndpointRuleObject"), exports); -tslib_1.__exportStar(require("./ErrorRuleObject"), exports); -tslib_1.__exportStar(require("./RuleSetObject"), exports); -tslib_1.__exportStar(require("./TreeRuleObject"), exports); -tslib_1.__exportStar(require("./shared"), exports); diff --git a/node_modules/@smithy/util-endpoints/dist-cjs/types/shared.js b/node_modules/@smithy/util-endpoints/dist-cjs/types/shared.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@smithy/util-endpoints/dist-cjs/types/shared.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@smithy/util-endpoints/dist-cjs/utils/callFunction.js b/node_modules/@smithy/util-endpoints/dist-cjs/utils/callFunction.js deleted file mode 100644 index 681da2d5..00000000 --- a/node_modules/@smithy/util-endpoints/dist-cjs/utils/callFunction.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.callFunction = void 0; -const customEndpointFunctions_1 = require("./customEndpointFunctions"); -const endpointFunctions_1 = require("./endpointFunctions"); -const evaluateExpression_1 = require("./evaluateExpression"); -const callFunction = ({ fn, argv }, options) => { - const evaluatedArgs = argv.map((arg) => ["boolean", "number"].includes(typeof arg) ? arg : (0, evaluateExpression_1.evaluateExpression)(arg, "arg", options)); - const fnSegments = fn.split("."); - if (fnSegments[0] in customEndpointFunctions_1.customEndpointFunctions && fnSegments[1] != null) { - return customEndpointFunctions_1.customEndpointFunctions[fnSegments[0]][fnSegments[1]](...evaluatedArgs); - } - return endpointFunctions_1.endpointFunctions[fn](...evaluatedArgs); -}; -exports.callFunction = callFunction; diff --git a/node_modules/@smithy/util-endpoints/dist-cjs/utils/customEndpointFunctions.js b/node_modules/@smithy/util-endpoints/dist-cjs/utils/customEndpointFunctions.js deleted file mode 100644 index 21bdf00a..00000000 --- a/node_modules/@smithy/util-endpoints/dist-cjs/utils/customEndpointFunctions.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.customEndpointFunctions = void 0; -exports.customEndpointFunctions = {}; diff --git a/node_modules/@smithy/util-endpoints/dist-cjs/utils/endpointFunctions.js b/node_modules/@smithy/util-endpoints/dist-cjs/utils/endpointFunctions.js deleted file mode 100644 index cf9d248d..00000000 --- a/node_modules/@smithy/util-endpoints/dist-cjs/utils/endpointFunctions.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.endpointFunctions = void 0; -const lib_1 = require("../lib"); -exports.endpointFunctions = { - booleanEquals: lib_1.booleanEquals, - getAttr: lib_1.getAttr, - isSet: lib_1.isSet, - isValidHostLabel: lib_1.isValidHostLabel, - not: lib_1.not, - parseURL: lib_1.parseURL, - stringEquals: lib_1.stringEquals, - substring: lib_1.substring, - uriEncode: lib_1.uriEncode, -}; diff --git a/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateCondition.js b/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateCondition.js deleted file mode 100644 index 8389a284..00000000 --- a/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateCondition.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.evaluateCondition = void 0; -const debug_1 = require("../debug"); -const types_1 = require("../types"); -const callFunction_1 = require("./callFunction"); -const evaluateCondition = ({ assign, ...fnArgs }, options) => { - var _a, _b; - if (assign && assign in options.referenceRecord) { - throw new types_1.EndpointError(`'${assign}' is already defined in Reference Record.`); - } - const value = (0, callFunction_1.callFunction)(fnArgs, options); - (_b = (_a = options.logger) === null || _a === void 0 ? void 0 : _a.debug) === null || _b === void 0 ? void 0 : _b.call(_a, debug_1.debugId, `evaluateCondition: ${(0, debug_1.toDebugString)(fnArgs)} = ${(0, debug_1.toDebugString)(value)}`); - return { - result: value === "" ? true : !!value, - ...(assign != null && { toAssign: { name: assign, value } }), - }; -}; -exports.evaluateCondition = evaluateCondition; diff --git a/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateConditions.js b/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateConditions.js deleted file mode 100644 index 1ef69deb..00000000 --- a/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateConditions.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.evaluateConditions = void 0; -const debug_1 = require("../debug"); -const evaluateCondition_1 = require("./evaluateCondition"); -const evaluateConditions = (conditions = [], options) => { - var _a, _b; - const conditionsReferenceRecord = {}; - for (const condition of conditions) { - const { result, toAssign } = (0, evaluateCondition_1.evaluateCondition)(condition, { - ...options, - referenceRecord: { - ...options.referenceRecord, - ...conditionsReferenceRecord, - }, - }); - if (!result) { - return { result }; - } - if (toAssign) { - conditionsReferenceRecord[toAssign.name] = toAssign.value; - (_b = (_a = options.logger) === null || _a === void 0 ? void 0 : _a.debug) === null || _b === void 0 ? void 0 : _b.call(_a, debug_1.debugId, `assign: ${toAssign.name} := ${(0, debug_1.toDebugString)(toAssign.value)}`); - } - } - return { result: true, referenceRecord: conditionsReferenceRecord }; -}; -exports.evaluateConditions = evaluateConditions; diff --git a/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateEndpointRule.js b/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateEndpointRule.js deleted file mode 100644 index 86ef24dc..00000000 --- a/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateEndpointRule.js +++ /dev/null @@ -1,32 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.evaluateEndpointRule = void 0; -const debug_1 = require("../debug"); -const evaluateConditions_1 = require("./evaluateConditions"); -const getEndpointHeaders_1 = require("./getEndpointHeaders"); -const getEndpointProperties_1 = require("./getEndpointProperties"); -const getEndpointUrl_1 = require("./getEndpointUrl"); -const evaluateEndpointRule = (endpointRule, options) => { - var _a, _b; - const { conditions, endpoint } = endpointRule; - const { result, referenceRecord } = (0, evaluateConditions_1.evaluateConditions)(conditions, options); - if (!result) { - return; - } - const endpointRuleOptions = { - ...options, - referenceRecord: { ...options.referenceRecord, ...referenceRecord }, - }; - const { url, properties, headers } = endpoint; - (_b = (_a = options.logger) === null || _a === void 0 ? void 0 : _a.debug) === null || _b === void 0 ? void 0 : _b.call(_a, debug_1.debugId, `Resolving endpoint from template: ${(0, debug_1.toDebugString)(endpoint)}`); - return { - ...(headers != undefined && { - headers: (0, getEndpointHeaders_1.getEndpointHeaders)(headers, endpointRuleOptions), - }), - ...(properties != undefined && { - properties: (0, getEndpointProperties_1.getEndpointProperties)(properties, endpointRuleOptions), - }), - url: (0, getEndpointUrl_1.getEndpointUrl)(url, endpointRuleOptions), - }; -}; -exports.evaluateEndpointRule = evaluateEndpointRule; diff --git a/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateErrorRule.js b/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateErrorRule.js deleted file mode 100644 index c7718528..00000000 --- a/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateErrorRule.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.evaluateErrorRule = void 0; -const types_1 = require("../types"); -const evaluateConditions_1 = require("./evaluateConditions"); -const evaluateExpression_1 = require("./evaluateExpression"); -const evaluateErrorRule = (errorRule, options) => { - const { conditions, error } = errorRule; - const { result, referenceRecord } = (0, evaluateConditions_1.evaluateConditions)(conditions, options); - if (!result) { - return; - } - throw new types_1.EndpointError((0, evaluateExpression_1.evaluateExpression)(error, "Error", { - ...options, - referenceRecord: { ...options.referenceRecord, ...referenceRecord }, - })); -}; -exports.evaluateErrorRule = evaluateErrorRule; diff --git a/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateExpression.js b/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateExpression.js deleted file mode 100644 index 709b02e3..00000000 --- a/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateExpression.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.evaluateExpression = void 0; -const types_1 = require("../types"); -const callFunction_1 = require("./callFunction"); -const evaluateTemplate_1 = require("./evaluateTemplate"); -const getReferenceValue_1 = require("./getReferenceValue"); -const evaluateExpression = (obj, keyName, options) => { - if (typeof obj === "string") { - return (0, evaluateTemplate_1.evaluateTemplate)(obj, options); - } - else if (obj["fn"]) { - return (0, callFunction_1.callFunction)(obj, options); - } - else if (obj["ref"]) { - return (0, getReferenceValue_1.getReferenceValue)(obj, options); - } - throw new types_1.EndpointError(`'${keyName}': ${String(obj)} is not a string, function or reference.`); -}; -exports.evaluateExpression = evaluateExpression; diff --git a/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateRules.js b/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateRules.js deleted file mode 100644 index c4d7b35c..00000000 --- a/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateRules.js +++ /dev/null @@ -1,31 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.evaluateRules = void 0; -const types_1 = require("../types"); -const evaluateEndpointRule_1 = require("./evaluateEndpointRule"); -const evaluateErrorRule_1 = require("./evaluateErrorRule"); -const evaluateTreeRule_1 = require("./evaluateTreeRule"); -const evaluateRules = (rules, options) => { - for (const rule of rules) { - if (rule.type === "endpoint") { - const endpointOrUndefined = (0, evaluateEndpointRule_1.evaluateEndpointRule)(rule, options); - if (endpointOrUndefined) { - return endpointOrUndefined; - } - } - else if (rule.type === "error") { - (0, evaluateErrorRule_1.evaluateErrorRule)(rule, options); - } - else if (rule.type === "tree") { - const endpointOrUndefined = (0, evaluateTreeRule_1.evaluateTreeRule)(rule, options); - if (endpointOrUndefined) { - return endpointOrUndefined; - } - } - else { - throw new types_1.EndpointError(`Unknown endpoint rule: ${rule}`); - } - } - throw new types_1.EndpointError(`Rules evaluation failed`); -}; -exports.evaluateRules = evaluateRules; diff --git a/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateTemplate.js b/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateTemplate.js deleted file mode 100644 index de29c172..00000000 --- a/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateTemplate.js +++ /dev/null @@ -1,40 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.evaluateTemplate = void 0; -const lib_1 = require("../lib"); -const evaluateTemplate = (template, options) => { - const evaluatedTemplateArr = []; - const templateContext = { - ...options.endpointParams, - ...options.referenceRecord, - }; - let currentIndex = 0; - while (currentIndex < template.length) { - const openingBraceIndex = template.indexOf("{", currentIndex); - if (openingBraceIndex === -1) { - evaluatedTemplateArr.push(template.slice(currentIndex)); - break; - } - evaluatedTemplateArr.push(template.slice(currentIndex, openingBraceIndex)); - const closingBraceIndex = template.indexOf("}", openingBraceIndex); - if (closingBraceIndex === -1) { - evaluatedTemplateArr.push(template.slice(openingBraceIndex)); - break; - } - if (template[openingBraceIndex + 1] === "{" && template[closingBraceIndex + 1] === "}") { - evaluatedTemplateArr.push(template.slice(openingBraceIndex + 1, closingBraceIndex)); - currentIndex = closingBraceIndex + 2; - } - const parameterName = template.substring(openingBraceIndex + 1, closingBraceIndex); - if (parameterName.includes("#")) { - const [refName, attrName] = parameterName.split("#"); - evaluatedTemplateArr.push((0, lib_1.getAttr)(templateContext[refName], attrName)); - } - else { - evaluatedTemplateArr.push(templateContext[parameterName]); - } - currentIndex = closingBraceIndex + 1; - } - return evaluatedTemplateArr.join(""); -}; -exports.evaluateTemplate = evaluateTemplate; diff --git a/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateTreeRule.js b/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateTreeRule.js deleted file mode 100644 index 94401d85..00000000 --- a/node_modules/@smithy/util-endpoints/dist-cjs/utils/evaluateTreeRule.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.evaluateTreeRule = void 0; -const evaluateConditions_1 = require("./evaluateConditions"); -const evaluateRules_1 = require("./evaluateRules"); -const evaluateTreeRule = (treeRule, options) => { - const { conditions, rules } = treeRule; - const { result, referenceRecord } = (0, evaluateConditions_1.evaluateConditions)(conditions, options); - if (!result) { - return; - } - return (0, evaluateRules_1.evaluateRules)(rules, { - ...options, - referenceRecord: { ...options.referenceRecord, ...referenceRecord }, - }); -}; -exports.evaluateTreeRule = evaluateTreeRule; diff --git a/node_modules/@smithy/util-endpoints/dist-cjs/utils/getEndpointHeaders.js b/node_modules/@smithy/util-endpoints/dist-cjs/utils/getEndpointHeaders.js deleted file mode 100644 index e356549b..00000000 --- a/node_modules/@smithy/util-endpoints/dist-cjs/utils/getEndpointHeaders.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getEndpointHeaders = void 0; -const types_1 = require("../types"); -const evaluateExpression_1 = require("./evaluateExpression"); -const getEndpointHeaders = (headers, options) => Object.entries(headers).reduce((acc, [headerKey, headerVal]) => ({ - ...acc, - [headerKey]: headerVal.map((headerValEntry) => { - const processedExpr = (0, evaluateExpression_1.evaluateExpression)(headerValEntry, "Header value entry", options); - if (typeof processedExpr !== "string") { - throw new types_1.EndpointError(`Header '${headerKey}' value '${processedExpr}' is not a string`); - } - return processedExpr; - }), -}), {}); -exports.getEndpointHeaders = getEndpointHeaders; diff --git a/node_modules/@smithy/util-endpoints/dist-cjs/utils/getEndpointProperties.js b/node_modules/@smithy/util-endpoints/dist-cjs/utils/getEndpointProperties.js deleted file mode 100644 index ec8b506a..00000000 --- a/node_modules/@smithy/util-endpoints/dist-cjs/utils/getEndpointProperties.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getEndpointProperties = void 0; -const getEndpointProperty_1 = require("./getEndpointProperty"); -const getEndpointProperties = (properties, options) => Object.entries(properties).reduce((acc, [propertyKey, propertyVal]) => ({ - ...acc, - [propertyKey]: (0, getEndpointProperty_1.getEndpointProperty)(propertyVal, options), -}), {}); -exports.getEndpointProperties = getEndpointProperties; diff --git a/node_modules/@smithy/util-endpoints/dist-cjs/utils/getEndpointProperty.js b/node_modules/@smithy/util-endpoints/dist-cjs/utils/getEndpointProperty.js deleted file mode 100644 index b2eb7afa..00000000 --- a/node_modules/@smithy/util-endpoints/dist-cjs/utils/getEndpointProperty.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getEndpointProperty = void 0; -const types_1 = require("../types"); -const evaluateTemplate_1 = require("./evaluateTemplate"); -const getEndpointProperties_1 = require("./getEndpointProperties"); -const getEndpointProperty = (property, options) => { - if (Array.isArray(property)) { - return property.map((propertyEntry) => (0, exports.getEndpointProperty)(propertyEntry, options)); - } - switch (typeof property) { - case "string": - return (0, evaluateTemplate_1.evaluateTemplate)(property, options); - case "object": - if (property === null) { - throw new types_1.EndpointError(`Unexpected endpoint property: ${property}`); - } - return (0, getEndpointProperties_1.getEndpointProperties)(property, options); - case "boolean": - return property; - default: - throw new types_1.EndpointError(`Unexpected endpoint property type: ${typeof property}`); - } -}; -exports.getEndpointProperty = getEndpointProperty; diff --git a/node_modules/@smithy/util-endpoints/dist-cjs/utils/getEndpointUrl.js b/node_modules/@smithy/util-endpoints/dist-cjs/utils/getEndpointUrl.js deleted file mode 100644 index 7800dd47..00000000 --- a/node_modules/@smithy/util-endpoints/dist-cjs/utils/getEndpointUrl.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getEndpointUrl = void 0; -const types_1 = require("../types"); -const evaluateExpression_1 = require("./evaluateExpression"); -const getEndpointUrl = (endpointUrl, options) => { - const expression = (0, evaluateExpression_1.evaluateExpression)(endpointUrl, "Endpoint URL", options); - if (typeof expression === "string") { - try { - return new URL(expression); - } - catch (error) { - console.error(`Failed to construct URL with ${expression}`, error); - throw error; - } - } - throw new types_1.EndpointError(`Endpoint URL must be a string, got ${typeof expression}`); -}; -exports.getEndpointUrl = getEndpointUrl; diff --git a/node_modules/@smithy/util-endpoints/dist-cjs/utils/getReferenceValue.js b/node_modules/@smithy/util-endpoints/dist-cjs/utils/getReferenceValue.js deleted file mode 100644 index ea71e114..00000000 --- a/node_modules/@smithy/util-endpoints/dist-cjs/utils/getReferenceValue.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getReferenceValue = void 0; -const getReferenceValue = ({ ref }, options) => { - const referenceRecord = { - ...options.endpointParams, - ...options.referenceRecord, - }; - return referenceRecord[ref]; -}; -exports.getReferenceValue = getReferenceValue; diff --git a/node_modules/@smithy/util-endpoints/dist-cjs/utils/index.js b/node_modules/@smithy/util-endpoints/dist-cjs/utils/index.js deleted file mode 100644 index 5114e32c..00000000 --- a/node_modules/@smithy/util-endpoints/dist-cjs/utils/index.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./customEndpointFunctions"), exports); -tslib_1.__exportStar(require("./evaluateRules"), exports); diff --git a/node_modules/@smithy/util-endpoints/dist-es/debug/debugId.js b/node_modules/@smithy/util-endpoints/dist-es/debug/debugId.js deleted file mode 100644 index 0d4e27e0..00000000 --- a/node_modules/@smithy/util-endpoints/dist-es/debug/debugId.js +++ /dev/null @@ -1 +0,0 @@ -export const debugId = "endpoints"; diff --git a/node_modules/@smithy/util-endpoints/dist-es/debug/index.js b/node_modules/@smithy/util-endpoints/dist-es/debug/index.js deleted file mode 100644 index 70d3b15c..00000000 --- a/node_modules/@smithy/util-endpoints/dist-es/debug/index.js +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./debugId"; -export * from "./toDebugString"; diff --git a/node_modules/@smithy/util-endpoints/dist-es/debug/toDebugString.js b/node_modules/@smithy/util-endpoints/dist-es/debug/toDebugString.js deleted file mode 100644 index 33c8fcbb..00000000 --- a/node_modules/@smithy/util-endpoints/dist-es/debug/toDebugString.js +++ /dev/null @@ -1,12 +0,0 @@ -export function toDebugString(input) { - if (typeof input !== "object" || input == null) { - return input; - } - if ("ref" in input) { - return `$${toDebugString(input.ref)}`; - } - if ("fn" in input) { - return `${input.fn}(${(input.argv || []).map(toDebugString).join(", ")})`; - } - return JSON.stringify(input, null, 2); -} diff --git a/node_modules/@smithy/util-endpoints/dist-es/getEndpointUrlConfig.js b/node_modules/@smithy/util-endpoints/dist-es/getEndpointUrlConfig.js deleted file mode 100644 index 5069030f..00000000 --- a/node_modules/@smithy/util-endpoints/dist-es/getEndpointUrlConfig.js +++ /dev/null @@ -1,21 +0,0 @@ -const ENV_ENDPOINT_URL = "AWS_ENDPOINT_URL"; -const CONFIG_ENDPOINT_URL = "endpoint_url"; -export const getEndpointUrlConfig = (serviceId) => ({ - environmentVariableSelector: (env) => { - const serviceEndpointUrlSections = [ENV_ENDPOINT_URL, ...serviceId.split(" ").map((w) => w.toUpperCase())]; - const serviceEndpointUrl = env[serviceEndpointUrlSections.join("_")]; - if (serviceEndpointUrl) - return serviceEndpointUrl; - const endpointUrl = env[ENV_ENDPOINT_URL]; - if (endpointUrl) - return endpointUrl; - return undefined; - }, - configFileSelector: (profile) => { - const endpointUrl = profile[CONFIG_ENDPOINT_URL]; - if (endpointUrl) - return endpointUrl; - return undefined; - }, - default: undefined, -}); diff --git a/node_modules/@smithy/util-endpoints/dist-es/index.js b/node_modules/@smithy/util-endpoints/dist-es/index.js deleted file mode 100644 index 07c6fd38..00000000 --- a/node_modules/@smithy/util-endpoints/dist-es/index.js +++ /dev/null @@ -1,5 +0,0 @@ -export * from "./lib/isIpAddress"; -export * from "./lib/isValidHostLabel"; -export * from "./utils/customEndpointFunctions"; -export * from "./resolveEndpoint"; -export * from "./types"; diff --git a/node_modules/@smithy/util-endpoints/dist-es/lib/booleanEquals.js b/node_modules/@smithy/util-endpoints/dist-es/lib/booleanEquals.js deleted file mode 100644 index 730cbd3b..00000000 --- a/node_modules/@smithy/util-endpoints/dist-es/lib/booleanEquals.js +++ /dev/null @@ -1 +0,0 @@ -export const booleanEquals = (value1, value2) => value1 === value2; diff --git a/node_modules/@smithy/util-endpoints/dist-es/lib/getAttr.js b/node_modules/@smithy/util-endpoints/dist-es/lib/getAttr.js deleted file mode 100644 index d77f1657..00000000 --- a/node_modules/@smithy/util-endpoints/dist-es/lib/getAttr.js +++ /dev/null @@ -1,11 +0,0 @@ -import { EndpointError } from "../types"; -import { getAttrPathList } from "./getAttrPathList"; -export const getAttr = (value, path) => getAttrPathList(path).reduce((acc, index) => { - if (typeof acc !== "object") { - throw new EndpointError(`Index '${index}' in '${path}' not found in '${JSON.stringify(value)}'`); - } - else if (Array.isArray(acc)) { - return acc[parseInt(index)]; - } - return acc[index]; -}, value); diff --git a/node_modules/@smithy/util-endpoints/dist-es/lib/getAttrPathList.js b/node_modules/@smithy/util-endpoints/dist-es/lib/getAttrPathList.js deleted file mode 100644 index 5817a2de..00000000 --- a/node_modules/@smithy/util-endpoints/dist-es/lib/getAttrPathList.js +++ /dev/null @@ -1,25 +0,0 @@ -import { EndpointError } from "../types"; -export const getAttrPathList = (path) => { - const parts = path.split("."); - const pathList = []; - for (const part of parts) { - const squareBracketIndex = part.indexOf("["); - if (squareBracketIndex !== -1) { - if (part.indexOf("]") !== part.length - 1) { - throw new EndpointError(`Path: '${path}' does not end with ']'`); - } - const arrayIndex = part.slice(squareBracketIndex + 1, -1); - if (Number.isNaN(parseInt(arrayIndex))) { - throw new EndpointError(`Invalid array index: '${arrayIndex}' in path: '${path}'`); - } - if (squareBracketIndex !== 0) { - pathList.push(part.slice(0, squareBracketIndex)); - } - pathList.push(arrayIndex); - } - else { - pathList.push(part); - } - } - return pathList; -}; diff --git a/node_modules/@smithy/util-endpoints/dist-es/lib/index.js b/node_modules/@smithy/util-endpoints/dist-es/lib/index.js deleted file mode 100644 index 99a08449..00000000 --- a/node_modules/@smithy/util-endpoints/dist-es/lib/index.js +++ /dev/null @@ -1,9 +0,0 @@ -export * from "./booleanEquals"; -export * from "./getAttr"; -export * from "./isSet"; -export * from "./isValidHostLabel"; -export * from "./not"; -export * from "./parseURL"; -export * from "./stringEquals"; -export * from "./substring"; -export * from "./uriEncode"; diff --git a/node_modules/@smithy/util-endpoints/dist-es/lib/isIpAddress.js b/node_modules/@smithy/util-endpoints/dist-es/lib/isIpAddress.js deleted file mode 100644 index 20be5a3e..00000000 --- a/node_modules/@smithy/util-endpoints/dist-es/lib/isIpAddress.js +++ /dev/null @@ -1,2 +0,0 @@ -const IP_V4_REGEX = new RegExp(`^(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)(?:\\.(?:25[0-5]|2[0-4]\\d|1\\d\\d|[1-9]\\d|\\d)){3}$`); -export const isIpAddress = (value) => IP_V4_REGEX.test(value) || (value.startsWith("[") && value.endsWith("]")); diff --git a/node_modules/@smithy/util-endpoints/dist-es/lib/isSet.js b/node_modules/@smithy/util-endpoints/dist-es/lib/isSet.js deleted file mode 100644 index 83ccc7a5..00000000 --- a/node_modules/@smithy/util-endpoints/dist-es/lib/isSet.js +++ /dev/null @@ -1 +0,0 @@ -export const isSet = (value) => value != null; diff --git a/node_modules/@smithy/util-endpoints/dist-es/lib/isValidHostLabel.js b/node_modules/@smithy/util-endpoints/dist-es/lib/isValidHostLabel.js deleted file mode 100644 index 78585986..00000000 --- a/node_modules/@smithy/util-endpoints/dist-es/lib/isValidHostLabel.js +++ /dev/null @@ -1,13 +0,0 @@ -const VALID_HOST_LABEL_REGEX = new RegExp(`^(?!.*-$)(?!-)[a-zA-Z0-9-]{1,63}$`); -export const isValidHostLabel = (value, allowSubDomains = false) => { - if (!allowSubDomains) { - return VALID_HOST_LABEL_REGEX.test(value); - } - const labels = value.split("."); - for (const label of labels) { - if (!isValidHostLabel(label)) { - return false; - } - } - return true; -}; diff --git a/node_modules/@smithy/util-endpoints/dist-es/lib/not.js b/node_modules/@smithy/util-endpoints/dist-es/lib/not.js deleted file mode 100644 index 180e5dd3..00000000 --- a/node_modules/@smithy/util-endpoints/dist-es/lib/not.js +++ /dev/null @@ -1 +0,0 @@ -export const not = (value) => !value; diff --git a/node_modules/@smithy/util-endpoints/dist-es/lib/parseURL.js b/node_modules/@smithy/util-endpoints/dist-es/lib/parseURL.js deleted file mode 100644 index 79f9b24e..00000000 --- a/node_modules/@smithy/util-endpoints/dist-es/lib/parseURL.js +++ /dev/null @@ -1,51 +0,0 @@ -import { EndpointURLScheme } from "@smithy/types"; -import { isIpAddress } from "./isIpAddress"; -const DEFAULT_PORTS = { - [EndpointURLScheme.HTTP]: 80, - [EndpointURLScheme.HTTPS]: 443, -}; -export const parseURL = (value) => { - const whatwgURL = (() => { - try { - if (value instanceof URL) { - return value; - } - if (typeof value === "object" && "hostname" in value) { - const { hostname, port, protocol = "", path = "", query = {} } = value; - const url = new URL(`${protocol}//${hostname}${port ? `:${port}` : ""}${path}`); - url.search = Object.entries(query) - .map(([k, v]) => `${k}=${v}`) - .join("&"); - return url; - } - return new URL(value); - } - catch (error) { - return null; - } - })(); - if (!whatwgURL) { - console.error(`Unable to parse ${JSON.stringify(value)} as a whatwg URL.`); - return null; - } - const urlString = whatwgURL.href; - const { host, hostname, pathname, protocol, search } = whatwgURL; - if (search) { - return null; - } - const scheme = protocol.slice(0, -1); - if (!Object.values(EndpointURLScheme).includes(scheme)) { - return null; - } - const isIp = isIpAddress(hostname); - const inputContainsDefaultPort = urlString.includes(`${host}:${DEFAULT_PORTS[scheme]}`) || - (typeof value === "string" && value.includes(`${host}:${DEFAULT_PORTS[scheme]}`)); - const authority = `${host}${inputContainsDefaultPort ? `:${DEFAULT_PORTS[scheme]}` : ``}`; - return { - scheme, - authority, - path: pathname, - normalizedPath: pathname.endsWith("/") ? pathname : `${pathname}/`, - isIp, - }; -}; diff --git a/node_modules/@smithy/util-endpoints/dist-es/lib/stringEquals.js b/node_modules/@smithy/util-endpoints/dist-es/lib/stringEquals.js deleted file mode 100644 index ee414269..00000000 --- a/node_modules/@smithy/util-endpoints/dist-es/lib/stringEquals.js +++ /dev/null @@ -1 +0,0 @@ -export const stringEquals = (value1, value2) => value1 === value2; diff --git a/node_modules/@smithy/util-endpoints/dist-es/lib/substring.js b/node_modules/@smithy/util-endpoints/dist-es/lib/substring.js deleted file mode 100644 index 942dde4d..00000000 --- a/node_modules/@smithy/util-endpoints/dist-es/lib/substring.js +++ /dev/null @@ -1,9 +0,0 @@ -export const substring = (input, start, stop, reverse) => { - if (start >= stop || input.length < stop) { - return null; - } - if (!reverse) { - return input.substring(start, stop); - } - return input.substring(input.length - stop, input.length - start); -}; diff --git a/node_modules/@smithy/util-endpoints/dist-es/lib/uriEncode.js b/node_modules/@smithy/util-endpoints/dist-es/lib/uriEncode.js deleted file mode 100644 index ae226dc7..00000000 --- a/node_modules/@smithy/util-endpoints/dist-es/lib/uriEncode.js +++ /dev/null @@ -1 +0,0 @@ -export const uriEncode = (value) => encodeURIComponent(value).replace(/[!*'()]/g, (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`); diff --git a/node_modules/@smithy/util-endpoints/dist-es/resolveEndpoint.js b/node_modules/@smithy/util-endpoints/dist-es/resolveEndpoint.js deleted file mode 100644 index 67e47845..00000000 --- a/node_modules/@smithy/util-endpoints/dist-es/resolveEndpoint.js +++ /dev/null @@ -1,37 +0,0 @@ -import { debugId, toDebugString } from "./debug"; -import { EndpointError } from "./types"; -import { evaluateRules } from "./utils"; -export const resolveEndpoint = (ruleSetObject, options) => { - const { endpointParams, logger } = options; - const { parameters, rules } = ruleSetObject; - options.logger?.debug?.(`${debugId} Initial EndpointParams: ${toDebugString(endpointParams)}`); - const paramsWithDefault = Object.entries(parameters) - .filter(([, v]) => v.default != null) - .map(([k, v]) => [k, v.default]); - if (paramsWithDefault.length > 0) { - for (const [paramKey, paramDefaultValue] of paramsWithDefault) { - endpointParams[paramKey] = endpointParams[paramKey] ?? paramDefaultValue; - } - } - const requiredParams = Object.entries(parameters) - .filter(([, v]) => v.required) - .map(([k]) => k); - for (const requiredParam of requiredParams) { - if (endpointParams[requiredParam] == null) { - throw new EndpointError(`Missing required parameter: '${requiredParam}'`); - } - } - const endpoint = evaluateRules(rules, { endpointParams, logger, referenceRecord: {} }); - if (options.endpointParams?.Endpoint) { - try { - const givenEndpoint = new URL(options.endpointParams.Endpoint); - const { protocol, port } = givenEndpoint; - endpoint.url.protocol = protocol; - endpoint.url.port = port; - } - catch (e) { - } - } - options.logger?.debug?.(`${debugId} Resolved endpoint: ${toDebugString(endpoint)}`); - return endpoint; -}; diff --git a/node_modules/@smithy/util-endpoints/dist-es/types/EndpointError.js b/node_modules/@smithy/util-endpoints/dist-es/types/EndpointError.js deleted file mode 100644 index 1ce597d7..00000000 --- a/node_modules/@smithy/util-endpoints/dist-es/types/EndpointError.js +++ /dev/null @@ -1,6 +0,0 @@ -export class EndpointError extends Error { - constructor(message) { - super(message); - this.name = "EndpointError"; - } -} diff --git a/node_modules/@smithy/util-endpoints/dist-es/types/EndpointFunctions.js b/node_modules/@smithy/util-endpoints/dist-es/types/EndpointFunctions.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@smithy/util-endpoints/dist-es/types/EndpointFunctions.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@smithy/util-endpoints/dist-es/types/EndpointRuleObject.js b/node_modules/@smithy/util-endpoints/dist-es/types/EndpointRuleObject.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@smithy/util-endpoints/dist-es/types/EndpointRuleObject.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@smithy/util-endpoints/dist-es/types/ErrorRuleObject.js b/node_modules/@smithy/util-endpoints/dist-es/types/ErrorRuleObject.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@smithy/util-endpoints/dist-es/types/ErrorRuleObject.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@smithy/util-endpoints/dist-es/types/RuleSetObject.js b/node_modules/@smithy/util-endpoints/dist-es/types/RuleSetObject.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@smithy/util-endpoints/dist-es/types/RuleSetObject.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@smithy/util-endpoints/dist-es/types/TreeRuleObject.js b/node_modules/@smithy/util-endpoints/dist-es/types/TreeRuleObject.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@smithy/util-endpoints/dist-es/types/TreeRuleObject.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@smithy/util-endpoints/dist-es/types/index.js b/node_modules/@smithy/util-endpoints/dist-es/types/index.js deleted file mode 100644 index a49f9840..00000000 --- a/node_modules/@smithy/util-endpoints/dist-es/types/index.js +++ /dev/null @@ -1,7 +0,0 @@ -export * from "./EndpointError"; -export * from "./EndpointFunctions"; -export * from "./EndpointRuleObject"; -export * from "./ErrorRuleObject"; -export * from "./RuleSetObject"; -export * from "./TreeRuleObject"; -export * from "./shared"; diff --git a/node_modules/@smithy/util-endpoints/dist-es/types/shared.js b/node_modules/@smithy/util-endpoints/dist-es/types/shared.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@smithy/util-endpoints/dist-es/types/shared.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@smithy/util-endpoints/dist-es/utils/callFunction.js b/node_modules/@smithy/util-endpoints/dist-es/utils/callFunction.js deleted file mode 100644 index bf0747a3..00000000 --- a/node_modules/@smithy/util-endpoints/dist-es/utils/callFunction.js +++ /dev/null @@ -1,11 +0,0 @@ -import { customEndpointFunctions } from "./customEndpointFunctions"; -import { endpointFunctions } from "./endpointFunctions"; -import { evaluateExpression } from "./evaluateExpression"; -export const callFunction = ({ fn, argv }, options) => { - const evaluatedArgs = argv.map((arg) => ["boolean", "number"].includes(typeof arg) ? arg : evaluateExpression(arg, "arg", options)); - const fnSegments = fn.split("."); - if (fnSegments[0] in customEndpointFunctions && fnSegments[1] != null) { - return customEndpointFunctions[fnSegments[0]][fnSegments[1]](...evaluatedArgs); - } - return endpointFunctions[fn](...evaluatedArgs); -}; diff --git a/node_modules/@smithy/util-endpoints/dist-es/utils/customEndpointFunctions.js b/node_modules/@smithy/util-endpoints/dist-es/utils/customEndpointFunctions.js deleted file mode 100644 index 0c26493a..00000000 --- a/node_modules/@smithy/util-endpoints/dist-es/utils/customEndpointFunctions.js +++ /dev/null @@ -1 +0,0 @@ -export const customEndpointFunctions = {}; diff --git a/node_modules/@smithy/util-endpoints/dist-es/utils/endpointFunctions.js b/node_modules/@smithy/util-endpoints/dist-es/utils/endpointFunctions.js deleted file mode 100644 index e2215ff5..00000000 --- a/node_modules/@smithy/util-endpoints/dist-es/utils/endpointFunctions.js +++ /dev/null @@ -1,12 +0,0 @@ -import { booleanEquals, getAttr, isSet, isValidHostLabel, not, parseURL, stringEquals, substring, uriEncode, } from "../lib"; -export const endpointFunctions = { - booleanEquals, - getAttr, - isSet, - isValidHostLabel, - not, - parseURL, - stringEquals, - substring, - uriEncode, -}; diff --git a/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateCondition.js b/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateCondition.js deleted file mode 100644 index 279d0adf..00000000 --- a/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateCondition.js +++ /dev/null @@ -1,14 +0,0 @@ -import { debugId, toDebugString } from "../debug"; -import { EndpointError } from "../types"; -import { callFunction } from "./callFunction"; -export const evaluateCondition = ({ assign, ...fnArgs }, options) => { - if (assign && assign in options.referenceRecord) { - throw new EndpointError(`'${assign}' is already defined in Reference Record.`); - } - const value = callFunction(fnArgs, options); - options.logger?.debug?.(debugId, `evaluateCondition: ${toDebugString(fnArgs)} = ${toDebugString(value)}`); - return { - result: value === "" ? true : !!value, - ...(assign != null && { toAssign: { name: assign, value } }), - }; -}; diff --git a/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateConditions.js b/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateConditions.js deleted file mode 100644 index 2890d4a9..00000000 --- a/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateConditions.js +++ /dev/null @@ -1,22 +0,0 @@ -import { debugId, toDebugString } from "../debug"; -import { evaluateCondition } from "./evaluateCondition"; -export const evaluateConditions = (conditions = [], options) => { - const conditionsReferenceRecord = {}; - for (const condition of conditions) { - const { result, toAssign } = evaluateCondition(condition, { - ...options, - referenceRecord: { - ...options.referenceRecord, - ...conditionsReferenceRecord, - }, - }); - if (!result) { - return { result }; - } - if (toAssign) { - conditionsReferenceRecord[toAssign.name] = toAssign.value; - options.logger?.debug?.(debugId, `assign: ${toAssign.name} := ${toDebugString(toAssign.value)}`); - } - } - return { result: true, referenceRecord: conditionsReferenceRecord }; -}; diff --git a/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateEndpointRule.js b/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateEndpointRule.js deleted file mode 100644 index 56744295..00000000 --- a/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateEndpointRule.js +++ /dev/null @@ -1,27 +0,0 @@ -import { debugId, toDebugString } from "../debug"; -import { evaluateConditions } from "./evaluateConditions"; -import { getEndpointHeaders } from "./getEndpointHeaders"; -import { getEndpointProperties } from "./getEndpointProperties"; -import { getEndpointUrl } from "./getEndpointUrl"; -export const evaluateEndpointRule = (endpointRule, options) => { - const { conditions, endpoint } = endpointRule; - const { result, referenceRecord } = evaluateConditions(conditions, options); - if (!result) { - return; - } - const endpointRuleOptions = { - ...options, - referenceRecord: { ...options.referenceRecord, ...referenceRecord }, - }; - const { url, properties, headers } = endpoint; - options.logger?.debug?.(debugId, `Resolving endpoint from template: ${toDebugString(endpoint)}`); - return { - ...(headers != undefined && { - headers: getEndpointHeaders(headers, endpointRuleOptions), - }), - ...(properties != undefined && { - properties: getEndpointProperties(properties, endpointRuleOptions), - }), - url: getEndpointUrl(url, endpointRuleOptions), - }; -}; diff --git a/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateErrorRule.js b/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateErrorRule.js deleted file mode 100644 index 1a578604..00000000 --- a/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateErrorRule.js +++ /dev/null @@ -1,14 +0,0 @@ -import { EndpointError } from "../types"; -import { evaluateConditions } from "./evaluateConditions"; -import { evaluateExpression } from "./evaluateExpression"; -export const evaluateErrorRule = (errorRule, options) => { - const { conditions, error } = errorRule; - const { result, referenceRecord } = evaluateConditions(conditions, options); - if (!result) { - return; - } - throw new EndpointError(evaluateExpression(error, "Error", { - ...options, - referenceRecord: { ...options.referenceRecord, ...referenceRecord }, - })); -}; diff --git a/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateExpression.js b/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateExpression.js deleted file mode 100644 index 7f69658e..00000000 --- a/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateExpression.js +++ /dev/null @@ -1,16 +0,0 @@ -import { EndpointError } from "../types"; -import { callFunction } from "./callFunction"; -import { evaluateTemplate } from "./evaluateTemplate"; -import { getReferenceValue } from "./getReferenceValue"; -export const evaluateExpression = (obj, keyName, options) => { - if (typeof obj === "string") { - return evaluateTemplate(obj, options); - } - else if (obj["fn"]) { - return callFunction(obj, options); - } - else if (obj["ref"]) { - return getReferenceValue(obj, options); - } - throw new EndpointError(`'${keyName}': ${String(obj)} is not a string, function or reference.`); -}; diff --git a/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateRules.js b/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateRules.js deleted file mode 100644 index 58a40a08..00000000 --- a/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateRules.js +++ /dev/null @@ -1,27 +0,0 @@ -import { EndpointError } from "../types"; -import { evaluateEndpointRule } from "./evaluateEndpointRule"; -import { evaluateErrorRule } from "./evaluateErrorRule"; -import { evaluateTreeRule } from "./evaluateTreeRule"; -export const evaluateRules = (rules, options) => { - for (const rule of rules) { - if (rule.type === "endpoint") { - const endpointOrUndefined = evaluateEndpointRule(rule, options); - if (endpointOrUndefined) { - return endpointOrUndefined; - } - } - else if (rule.type === "error") { - evaluateErrorRule(rule, options); - } - else if (rule.type === "tree") { - const endpointOrUndefined = evaluateTreeRule(rule, options); - if (endpointOrUndefined) { - return endpointOrUndefined; - } - } - else { - throw new EndpointError(`Unknown endpoint rule: ${rule}`); - } - } - throw new EndpointError(`Rules evaluation failed`); -}; diff --git a/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateTemplate.js b/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateTemplate.js deleted file mode 100644 index 70058091..00000000 --- a/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateTemplate.js +++ /dev/null @@ -1,36 +0,0 @@ -import { getAttr } from "../lib"; -export const evaluateTemplate = (template, options) => { - const evaluatedTemplateArr = []; - const templateContext = { - ...options.endpointParams, - ...options.referenceRecord, - }; - let currentIndex = 0; - while (currentIndex < template.length) { - const openingBraceIndex = template.indexOf("{", currentIndex); - if (openingBraceIndex === -1) { - evaluatedTemplateArr.push(template.slice(currentIndex)); - break; - } - evaluatedTemplateArr.push(template.slice(currentIndex, openingBraceIndex)); - const closingBraceIndex = template.indexOf("}", openingBraceIndex); - if (closingBraceIndex === -1) { - evaluatedTemplateArr.push(template.slice(openingBraceIndex)); - break; - } - if (template[openingBraceIndex + 1] === "{" && template[closingBraceIndex + 1] === "}") { - evaluatedTemplateArr.push(template.slice(openingBraceIndex + 1, closingBraceIndex)); - currentIndex = closingBraceIndex + 2; - } - const parameterName = template.substring(openingBraceIndex + 1, closingBraceIndex); - if (parameterName.includes("#")) { - const [refName, attrName] = parameterName.split("#"); - evaluatedTemplateArr.push(getAttr(templateContext[refName], attrName)); - } - else { - evaluatedTemplateArr.push(templateContext[parameterName]); - } - currentIndex = closingBraceIndex + 1; - } - return evaluatedTemplateArr.join(""); -}; diff --git a/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateTreeRule.js b/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateTreeRule.js deleted file mode 100644 index 427c1fa9..00000000 --- a/node_modules/@smithy/util-endpoints/dist-es/utils/evaluateTreeRule.js +++ /dev/null @@ -1,13 +0,0 @@ -import { evaluateConditions } from "./evaluateConditions"; -import { evaluateRules } from "./evaluateRules"; -export const evaluateTreeRule = (treeRule, options) => { - const { conditions, rules } = treeRule; - const { result, referenceRecord } = evaluateConditions(conditions, options); - if (!result) { - return; - } - return evaluateRules(rules, { - ...options, - referenceRecord: { ...options.referenceRecord, ...referenceRecord }, - }); -}; diff --git a/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointHeaders.js b/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointHeaders.js deleted file mode 100644 index f94cf553..00000000 --- a/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointHeaders.js +++ /dev/null @@ -1,12 +0,0 @@ -import { EndpointError } from "../types"; -import { evaluateExpression } from "./evaluateExpression"; -export const getEndpointHeaders = (headers, options) => Object.entries(headers).reduce((acc, [headerKey, headerVal]) => ({ - ...acc, - [headerKey]: headerVal.map((headerValEntry) => { - const processedExpr = evaluateExpression(headerValEntry, "Header value entry", options); - if (typeof processedExpr !== "string") { - throw new EndpointError(`Header '${headerKey}' value '${processedExpr}' is not a string`); - } - return processedExpr; - }), -}), {}); diff --git a/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointProperties.js b/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointProperties.js deleted file mode 100644 index e7afe888..00000000 --- a/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointProperties.js +++ /dev/null @@ -1,5 +0,0 @@ -import { getEndpointProperty } from "./getEndpointProperty"; -export const getEndpointProperties = (properties, options) => Object.entries(properties).reduce((acc, [propertyKey, propertyVal]) => ({ - ...acc, - [propertyKey]: getEndpointProperty(propertyVal, options), -}), {}); diff --git a/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointProperty.js b/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointProperty.js deleted file mode 100644 index 06009699..00000000 --- a/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointProperty.js +++ /dev/null @@ -1,21 +0,0 @@ -import { EndpointError } from "../types"; -import { evaluateTemplate } from "./evaluateTemplate"; -import { getEndpointProperties } from "./getEndpointProperties"; -export const getEndpointProperty = (property, options) => { - if (Array.isArray(property)) { - return property.map((propertyEntry) => getEndpointProperty(propertyEntry, options)); - } - switch (typeof property) { - case "string": - return evaluateTemplate(property, options); - case "object": - if (property === null) { - throw new EndpointError(`Unexpected endpoint property: ${property}`); - } - return getEndpointProperties(property, options); - case "boolean": - return property; - default: - throw new EndpointError(`Unexpected endpoint property type: ${typeof property}`); - } -}; diff --git a/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointUrl.js b/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointUrl.js deleted file mode 100644 index 8f1301e2..00000000 --- a/node_modules/@smithy/util-endpoints/dist-es/utils/getEndpointUrl.js +++ /dev/null @@ -1,15 +0,0 @@ -import { EndpointError } from "../types"; -import { evaluateExpression } from "./evaluateExpression"; -export const getEndpointUrl = (endpointUrl, options) => { - const expression = evaluateExpression(endpointUrl, "Endpoint URL", options); - if (typeof expression === "string") { - try { - return new URL(expression); - } - catch (error) { - console.error(`Failed to construct URL with ${expression}`, error); - throw error; - } - } - throw new EndpointError(`Endpoint URL must be a string, got ${typeof expression}`); -}; diff --git a/node_modules/@smithy/util-endpoints/dist-es/utils/getReferenceValue.js b/node_modules/@smithy/util-endpoints/dist-es/utils/getReferenceValue.js deleted file mode 100644 index 759f4d40..00000000 --- a/node_modules/@smithy/util-endpoints/dist-es/utils/getReferenceValue.js +++ /dev/null @@ -1,7 +0,0 @@ -export const getReferenceValue = ({ ref }, options) => { - const referenceRecord = { - ...options.endpointParams, - ...options.referenceRecord, - }; - return referenceRecord[ref]; -}; diff --git a/node_modules/@smithy/util-endpoints/dist-es/utils/index.js b/node_modules/@smithy/util-endpoints/dist-es/utils/index.js deleted file mode 100644 index b571d021..00000000 --- a/node_modules/@smithy/util-endpoints/dist-es/utils/index.js +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./customEndpointFunctions"; -export * from "./evaluateRules"; diff --git a/node_modules/@smithy/util-endpoints/dist-types/debug/debugId.d.ts b/node_modules/@smithy/util-endpoints/dist-types/debug/debugId.d.ts deleted file mode 100644 index d39f408f..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/debug/debugId.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const debugId = "endpoints"; diff --git a/node_modules/@smithy/util-endpoints/dist-types/debug/index.d.ts b/node_modules/@smithy/util-endpoints/dist-types/debug/index.d.ts deleted file mode 100644 index 70d3b15c..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/debug/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./debugId"; -export * from "./toDebugString"; diff --git a/node_modules/@smithy/util-endpoints/dist-types/debug/toDebugString.d.ts b/node_modules/@smithy/util-endpoints/dist-types/debug/toDebugString.d.ts deleted file mode 100644 index 6bf1d3a1..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/debug/toDebugString.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { EndpointParameters, EndpointV2 } from "@smithy/types"; -import { GetAttrValue } from "../lib"; -import { EndpointObject, FunctionObject, FunctionReturn } from "../types"; -export declare function toDebugString(input: EndpointParameters): string; -export declare function toDebugString(input: EndpointV2): string; -export declare function toDebugString(input: GetAttrValue): string; -export declare function toDebugString(input: FunctionObject): string; -export declare function toDebugString(input: FunctionReturn): string; -export declare function toDebugString(input: EndpointObject): string; diff --git a/node_modules/@smithy/util-endpoints/dist-types/getEndpointUrlConfig.d.ts b/node_modules/@smithy/util-endpoints/dist-types/getEndpointUrlConfig.d.ts deleted file mode 100644 index 0971010f..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/getEndpointUrlConfig.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { LoadedConfigSelectors } from "@smithy/node-config-provider"; -export declare const getEndpointUrlConfig: (serviceId: string) => LoadedConfigSelectors; diff --git a/node_modules/@smithy/util-endpoints/dist-types/index.d.ts b/node_modules/@smithy/util-endpoints/dist-types/index.d.ts deleted file mode 100644 index 07c6fd38..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export * from "./lib/isIpAddress"; -export * from "./lib/isValidHostLabel"; -export * from "./utils/customEndpointFunctions"; -export * from "./resolveEndpoint"; -export * from "./types"; diff --git a/node_modules/@smithy/util-endpoints/dist-types/lib/booleanEquals.d.ts b/node_modules/@smithy/util-endpoints/dist-types/lib/booleanEquals.d.ts deleted file mode 100644 index 7eac5613..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/lib/booleanEquals.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -/** - * Evaluates two boolean values value1 and value2 for equality and returns - * true if both values match. - */ -export declare const booleanEquals: (value1: boolean, value2: boolean) => boolean; diff --git a/node_modules/@smithy/util-endpoints/dist-types/lib/getAttr.d.ts b/node_modules/@smithy/util-endpoints/dist-types/lib/getAttr.d.ts deleted file mode 100644 index a8088c5c..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/lib/getAttr.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -export type GetAttrValue = string | boolean | { - [key: string]: GetAttrValue; -} | Array; -/** - * Returns value corresponding to pathing string for an array or object. - */ -export declare const getAttr: (value: GetAttrValue, path: string) => GetAttrValue; diff --git a/node_modules/@smithy/util-endpoints/dist-types/lib/getAttrPathList.d.ts b/node_modules/@smithy/util-endpoints/dist-types/lib/getAttrPathList.d.ts deleted file mode 100644 index e6c49797..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/lib/getAttrPathList.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/** - * Parses path as a getAttr expression, returning a list of strings. - */ -export declare const getAttrPathList: (path: string) => Array; diff --git a/node_modules/@smithy/util-endpoints/dist-types/lib/index.d.ts b/node_modules/@smithy/util-endpoints/dist-types/lib/index.d.ts deleted file mode 100644 index 99a08449..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/lib/index.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -export * from "./booleanEquals"; -export * from "./getAttr"; -export * from "./isSet"; -export * from "./isValidHostLabel"; -export * from "./not"; -export * from "./parseURL"; -export * from "./stringEquals"; -export * from "./substring"; -export * from "./uriEncode"; diff --git a/node_modules/@smithy/util-endpoints/dist-types/lib/isIpAddress.d.ts b/node_modules/@smithy/util-endpoints/dist-types/lib/isIpAddress.d.ts deleted file mode 100644 index 28aba976..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/lib/isIpAddress.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/** - * Validates if the provided value is an IP address. - */ -export declare const isIpAddress: (value: string) => boolean; diff --git a/node_modules/@smithy/util-endpoints/dist-types/lib/isSet.d.ts b/node_modules/@smithy/util-endpoints/dist-types/lib/isSet.d.ts deleted file mode 100644 index 7c74ec53..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/lib/isSet.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -/** - * Evaluates whether a value is set (aka not null or undefined). - * Returns true if the value is set, otherwise returns false. - */ -export declare const isSet: (value: unknown) => boolean; diff --git a/node_modules/@smithy/util-endpoints/dist-types/lib/isValidHostLabel.d.ts b/node_modules/@smithy/util-endpoints/dist-types/lib/isValidHostLabel.d.ts deleted file mode 100644 index c05f9e98..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/lib/isValidHostLabel.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * Evaluates whether one or more string values are valid host labels per RFC 1123. - * - * If allowSubDomains is true, then the provided value may be zero or more dotted - * subdomains which are each validated per RFC 1123. - */ -export declare const isValidHostLabel: (value: string, allowSubDomains?: boolean) => boolean; diff --git a/node_modules/@smithy/util-endpoints/dist-types/lib/not.d.ts b/node_modules/@smithy/util-endpoints/dist-types/lib/not.d.ts deleted file mode 100644 index 1e8e7284..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/lib/not.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -/** - * Performs logical negation on the provided boolean value, - * returning the negated value. - */ -export declare const not: (value: boolean) => boolean; diff --git a/node_modules/@smithy/util-endpoints/dist-types/lib/parseURL.d.ts b/node_modules/@smithy/util-endpoints/dist-types/lib/parseURL.d.ts deleted file mode 100644 index 3e0dce38..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/lib/parseURL.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { Endpoint, EndpointURL } from "@smithy/types"; -/** - * Parses a string, URL, or Endpoint into it’s Endpoint URL components. - */ -export declare const parseURL: (value: string | URL | Endpoint) => EndpointURL | null; diff --git a/node_modules/@smithy/util-endpoints/dist-types/lib/stringEquals.d.ts b/node_modules/@smithy/util-endpoints/dist-types/lib/stringEquals.d.ts deleted file mode 100644 index bdfc98de..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/lib/stringEquals.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -/** - * Evaluates two string values value1 and value2 for equality and returns - * true if both values match. - */ -export declare const stringEquals: (value1: string, value2: string) => boolean; diff --git a/node_modules/@smithy/util-endpoints/dist-types/lib/substring.d.ts b/node_modules/@smithy/util-endpoints/dist-types/lib/substring.d.ts deleted file mode 100644 index 5d700355..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/lib/substring.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * Computes the substring of a given string, conditionally indexing from the end of the string. - * When the string is long enough to fully include the substring, return the substring. - * Otherwise, return None. The start index is inclusive and the stop index is exclusive. - * The length of the returned string will always be stop-start. - */ -export declare const substring: (input: string, start: number, stop: number, reverse: boolean) => string | null; diff --git a/node_modules/@smithy/util-endpoints/dist-types/lib/uriEncode.d.ts b/node_modules/@smithy/util-endpoints/dist-types/lib/uriEncode.d.ts deleted file mode 100644 index c2a720c7..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/lib/uriEncode.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/** - * Performs percent-encoding per RFC3986 section 2.1 - */ -export declare const uriEncode: (value: string) => string; diff --git a/node_modules/@smithy/util-endpoints/dist-types/resolveEndpoint.d.ts b/node_modules/@smithy/util-endpoints/dist-types/resolveEndpoint.d.ts deleted file mode 100644 index b02188b5..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/resolveEndpoint.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { EndpointV2 } from "@smithy/types"; -import { EndpointResolverOptions, RuleSetObject } from "./types"; -/** - * Resolves an endpoint URL by processing the endpoints ruleset and options. - */ -export declare const resolveEndpoint: (ruleSetObject: RuleSetObject, options: EndpointResolverOptions) => EndpointV2; diff --git a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/debug/debugId.d.ts b/node_modules/@smithy/util-endpoints/dist-types/ts3.4/debug/debugId.d.ts deleted file mode 100644 index f674b8a6..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/debug/debugId.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const debugId = "endpoints"; diff --git a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/debug/index.d.ts b/node_modules/@smithy/util-endpoints/dist-types/ts3.4/debug/index.d.ts deleted file mode 100644 index 1eb0bf4b..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/debug/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./debugId"; -export * from "./toDebugString"; diff --git a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/debug/toDebugString.d.ts b/node_modules/@smithy/util-endpoints/dist-types/ts3.4/debug/toDebugString.d.ts deleted file mode 100644 index e295ca0d..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/debug/toDebugString.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { EndpointParameters, EndpointV2 } from "@smithy/types"; -import { GetAttrValue } from "../lib"; -import { EndpointObject, FunctionObject, FunctionReturn } from "../types"; -export declare function toDebugString(input: EndpointParameters): string; -export declare function toDebugString(input: EndpointV2): string; -export declare function toDebugString(input: GetAttrValue): string; -export declare function toDebugString(input: FunctionObject): string; -export declare function toDebugString(input: FunctionReturn): string; -export declare function toDebugString(input: EndpointObject): string; diff --git a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/getEndpointUrlConfig.d.ts b/node_modules/@smithy/util-endpoints/dist-types/ts3.4/getEndpointUrlConfig.d.ts deleted file mode 100644 index 7b9d0689..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/getEndpointUrlConfig.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { LoadedConfigSelectors } from "@smithy/node-config-provider"; -export declare const getEndpointUrlConfig: (serviceId: string) => LoadedConfigSelectors; diff --git a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/index.d.ts b/node_modules/@smithy/util-endpoints/dist-types/ts3.4/index.d.ts deleted file mode 100644 index db9abb0b..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/index.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export * from "./lib/isIpAddress"; -export * from "./lib/isValidHostLabel"; -export * from "./utils/customEndpointFunctions"; -export * from "./resolveEndpoint"; -export * from "./types"; diff --git a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/booleanEquals.d.ts b/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/booleanEquals.d.ts deleted file mode 100644 index 7aec0018..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/booleanEquals.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -/** - * Evaluates two boolean values value1 and value2 for equality and returns - * true if both values match. - */ -export declare const booleanEquals: (value1: boolean, value2: boolean) => boolean; diff --git a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/getAttr.d.ts b/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/getAttr.d.ts deleted file mode 100644 index e2f5b431..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/getAttr.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -export type GetAttrValue = string | boolean | { - [key: string]: GetAttrValue; -} | Array; -/** - * Returns value corresponding to pathing string for an array or object. - */ -export declare const getAttr: (value: GetAttrValue, path: string) => GetAttrValue; diff --git a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/getAttrPathList.d.ts b/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/getAttrPathList.d.ts deleted file mode 100644 index 93bbf31d..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/getAttrPathList.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/** - * Parses path as a getAttr expression, returning a list of strings. - */ -export declare const getAttrPathList: (path: string) => Array; diff --git a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/index.d.ts b/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/index.d.ts deleted file mode 100644 index a28ecaa2..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/index.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -export * from "./booleanEquals"; -export * from "./getAttr"; -export * from "./isSet"; -export * from "./isValidHostLabel"; -export * from "./not"; -export * from "./parseURL"; -export * from "./stringEquals"; -export * from "./substring"; -export * from "./uriEncode"; diff --git a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/isIpAddress.d.ts b/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/isIpAddress.d.ts deleted file mode 100644 index 9f378930..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/isIpAddress.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/** - * Validates if the provided value is an IP address. - */ -export declare const isIpAddress: (value: string) => boolean; diff --git a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/isSet.d.ts b/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/isSet.d.ts deleted file mode 100644 index 6b102dd0..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/isSet.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -/** - * Evaluates whether a value is set (aka not null or undefined). - * Returns true if the value is set, otherwise returns false. - */ -export declare const isSet: (value: unknown) => boolean; diff --git a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/isValidHostLabel.d.ts b/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/isValidHostLabel.d.ts deleted file mode 100644 index 01f7eb9c..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/isValidHostLabel.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * Evaluates whether one or more string values are valid host labels per RFC 1123. - * - * If allowSubDomains is true, then the provided value may be zero or more dotted - * subdomains which are each validated per RFC 1123. - */ -export declare const isValidHostLabel: (value: string, allowSubDomains?: boolean) => boolean; diff --git a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/not.d.ts b/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/not.d.ts deleted file mode 100644 index b4e84ac6..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/not.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -/** - * Performs logical negation on the provided boolean value, - * returning the negated value. - */ -export declare const not: (value: boolean) => boolean; diff --git a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/parseURL.d.ts b/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/parseURL.d.ts deleted file mode 100644 index 0f540666..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/parseURL.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { Endpoint, EndpointURL } from "@smithy/types"; -/** - * Parses a string, URL, or Endpoint into it’s Endpoint URL components. - */ -export declare const parseURL: (value: string | URL | Endpoint) => EndpointURL | null; diff --git a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/stringEquals.d.ts b/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/stringEquals.d.ts deleted file mode 100644 index 9acb10c8..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/stringEquals.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -/** - * Evaluates two string values value1 and value2 for equality and returns - * true if both values match. - */ -export declare const stringEquals: (value1: string, value2: string) => boolean; diff --git a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/substring.d.ts b/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/substring.d.ts deleted file mode 100644 index a99025cf..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/substring.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -/** - * Computes the substring of a given string, conditionally indexing from the end of the string. - * When the string is long enough to fully include the substring, return the substring. - * Otherwise, return None. The start index is inclusive and the stop index is exclusive. - * The length of the returned string will always be stop-start. - */ -export declare const substring: (input: string, start: number, stop: number, reverse: boolean) => string | null; diff --git a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/uriEncode.d.ts b/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/uriEncode.d.ts deleted file mode 100644 index acb75bba..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/lib/uriEncode.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/** - * Performs percent-encoding per RFC3986 section 2.1 - */ -export declare const uriEncode: (value: string) => string; diff --git a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/resolveEndpoint.d.ts b/node_modules/@smithy/util-endpoints/dist-types/ts3.4/resolveEndpoint.d.ts deleted file mode 100644 index 5469fa2a..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/resolveEndpoint.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import { EndpointV2 } from "@smithy/types"; -import { EndpointResolverOptions, RuleSetObject } from "./types"; -/** - * Resolves an endpoint URL by processing the endpoints ruleset and options. - */ -export declare const resolveEndpoint: (ruleSetObject: RuleSetObject, options: EndpointResolverOptions) => EndpointV2; diff --git a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/types/EndpointError.d.ts b/node_modules/@smithy/util-endpoints/dist-types/ts3.4/types/EndpointError.d.ts deleted file mode 100644 index 4f3c5382..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/types/EndpointError.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export declare class EndpointError extends Error { - constructor(message: string); -} diff --git a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/types/EndpointFunctions.d.ts b/node_modules/@smithy/util-endpoints/dist-types/ts3.4/types/EndpointFunctions.d.ts deleted file mode 100644 index 7b3cf42b..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/types/EndpointFunctions.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { FunctionReturn } from "./shared"; -export type EndpointFunctions = Record FunctionReturn>; diff --git a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/types/EndpointRuleObject.d.ts b/node_modules/@smithy/util-endpoints/dist-types/ts3.4/types/EndpointRuleObject.d.ts deleted file mode 100644 index 436001e3..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/types/EndpointRuleObject.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { EndpointObject as __EndpointObject, EndpointObjectHeaders as __EndpointObjectHeaders, EndpointObjectProperties as __EndpointObjectProperties, EndpointRuleObject as __EndpointRuleObject } from "@smithy/types"; -export type EndpointObjectProperties = __EndpointObjectProperties; -export type EndpointObjectHeaders = __EndpointObjectHeaders; -export type EndpointObject = __EndpointObject; -export type EndpointRuleObject = __EndpointRuleObject; diff --git a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/types/ErrorRuleObject.d.ts b/node_modules/@smithy/util-endpoints/dist-types/ts3.4/types/ErrorRuleObject.d.ts deleted file mode 100644 index 1540835a..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/types/ErrorRuleObject.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ErrorRuleObject as __ErrorRuleObject } from "@smithy/types"; -export type ErrorRuleObject = __ErrorRuleObject; diff --git a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/types/RuleSetObject.d.ts b/node_modules/@smithy/util-endpoints/dist-types/ts3.4/types/RuleSetObject.d.ts deleted file mode 100644 index 227b269d..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/types/RuleSetObject.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { DeprecatedObject as __DeprecatedObject, ParameterObject as __ParameterObject, RuleSetObject as __RuleSetObject } from "@smithy/types"; -export type DeprecatedObject = __DeprecatedObject; -export type ParameterObject = __ParameterObject; -export type RuleSetObject = __RuleSetObject; diff --git a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/types/TreeRuleObject.d.ts b/node_modules/@smithy/util-endpoints/dist-types/ts3.4/types/TreeRuleObject.d.ts deleted file mode 100644 index ecdb6b4c..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/types/TreeRuleObject.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RuleSetRules as __RuleSetRules, TreeRuleObject as __TreeRuleObject } from "@smithy/types"; -export type RuleSetRules = __RuleSetRules; -export type TreeRuleObject = __TreeRuleObject; diff --git a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/types/index.d.ts b/node_modules/@smithy/util-endpoints/dist-types/ts3.4/types/index.d.ts deleted file mode 100644 index f89fb63d..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/types/index.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -export * from "./EndpointError"; -export * from "./EndpointFunctions"; -export * from "./EndpointRuleObject"; -export * from "./ErrorRuleObject"; -export * from "./RuleSetObject"; -export * from "./TreeRuleObject"; -export * from "./shared"; diff --git a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/types/shared.d.ts b/node_modules/@smithy/util-endpoints/dist-types/ts3.4/types/shared.d.ts deleted file mode 100644 index 052dcf3d..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/types/shared.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { EndpointARN, EndpointPartition, Logger } from "@smithy/types"; -export type ReferenceObject = { - ref: string; -}; -export type FunctionObject = { - fn: string; - argv: FunctionArgv; -}; -export type FunctionArgv = Array; -export type FunctionReturn = string | boolean | number | EndpointARN | EndpointPartition | { - [key: string]: FunctionReturn; -} | null; -export type ConditionObject = FunctionObject & { - assign?: string; -}; -export type Expression = string | ReferenceObject | FunctionObject; -export type EndpointParams = Record; -export type EndpointResolverOptions = { - endpointParams: EndpointParams; - logger?: Logger; -}; -export type ReferenceRecord = Record; -export type EvaluateOptions = EndpointResolverOptions & { - referenceRecord: ReferenceRecord; -}; diff --git a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/callFunction.d.ts b/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/callFunction.d.ts deleted file mode 100644 index bfdf5436..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/callFunction.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { EvaluateOptions, FunctionObject, FunctionReturn } from "../types"; -export declare const callFunction: ({ fn, argv }: FunctionObject, options: EvaluateOptions) => FunctionReturn; diff --git a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/customEndpointFunctions.d.ts b/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/customEndpointFunctions.d.ts deleted file mode 100644 index 1cd2240b..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/customEndpointFunctions.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { EndpointFunctions } from "../types/EndpointFunctions"; -export declare const customEndpointFunctions: { - [key: string]: EndpointFunctions; -}; diff --git a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/endpointFunctions.d.ts b/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/endpointFunctions.d.ts deleted file mode 100644 index cde57d19..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/endpointFunctions.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -export declare const endpointFunctions: { - booleanEquals: (value1: boolean, value2: boolean) => boolean; - getAttr: (value: import("../lib").GetAttrValue, path: string) => import("../lib").GetAttrValue; - isSet: (value: unknown) => boolean; - isValidHostLabel: (value: string, allowSubDomains?: boolean) => boolean; - not: (value: boolean) => boolean; - parseURL: (value: string | URL | import("@smithy/types").Endpoint) => import("@smithy/types").EndpointURL | null; - stringEquals: (value1: string, value2: string) => boolean; - substring: (input: string, start: number, stop: number, reverse: boolean) => string | null; - uriEncode: (value: string) => string; -}; diff --git a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateCondition.d.ts b/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateCondition.d.ts deleted file mode 100644 index ba2c0bef..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateCondition.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { ConditionObject, EvaluateOptions } from "../types"; -export declare const evaluateCondition: ({ assign, ...fnArgs }: ConditionObject, options: EvaluateOptions) => { - toAssign?: { - name: string; - value: import("../types").FunctionReturn; - } | undefined; - result: boolean; -}; diff --git a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateConditions.d.ts b/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateConditions.d.ts deleted file mode 100644 index a7fbc5f2..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateConditions.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { ConditionObject, EvaluateOptions, FunctionReturn } from "../types"; -export declare const evaluateConditions: (conditions: ConditionObject[] | undefined, options: EvaluateOptions) => { - result: false; - referenceRecord?: undefined; -} | { - result: boolean; - referenceRecord: Record; -}; diff --git a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateEndpointRule.d.ts b/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateEndpointRule.d.ts deleted file mode 100644 index 32f23ffb..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateEndpointRule.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { EndpointV2 } from "@smithy/types"; -import { EndpointRuleObject, EvaluateOptions } from "../types"; -export declare const evaluateEndpointRule: (endpointRule: EndpointRuleObject, options: EvaluateOptions) => EndpointV2 | undefined; diff --git a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateErrorRule.d.ts b/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateErrorRule.d.ts deleted file mode 100644 index eef15e3f..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateErrorRule.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ErrorRuleObject, EvaluateOptions } from "../types"; -export declare const evaluateErrorRule: (errorRule: ErrorRuleObject, options: EvaluateOptions) => void; diff --git a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateExpression.d.ts b/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateExpression.d.ts deleted file mode 100644 index 8bbd358c..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateExpression.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { EvaluateOptions, Expression } from "../types"; -export declare const evaluateExpression: (obj: Expression, keyName: string, options: EvaluateOptions) => import("../types").FunctionReturn; diff --git a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateRules.d.ts b/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateRules.d.ts deleted file mode 100644 index a37fe07e..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateRules.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { EndpointV2 } from "@smithy/types"; -import { EvaluateOptions } from "../types"; -export declare const evaluateRules: (rules: import("@smithy/types").RuleSetRules, options: EvaluateOptions) => EndpointV2; diff --git a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateTemplate.d.ts b/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateTemplate.d.ts deleted file mode 100644 index e6ae9c37..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateTemplate.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { EvaluateOptions } from "../types"; -export declare const evaluateTemplate: (template: string, options: EvaluateOptions) => string; diff --git a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateTreeRule.d.ts b/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateTreeRule.d.ts deleted file mode 100644 index 8518f7bd..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/evaluateTreeRule.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { EndpointV2 } from "@smithy/types"; -import { EvaluateOptions, TreeRuleObject } from "../types"; -export declare const evaluateTreeRule: (treeRule: TreeRuleObject, options: EvaluateOptions) => EndpointV2 | undefined; diff --git a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/getEndpointHeaders.d.ts b/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/getEndpointHeaders.d.ts deleted file mode 100644 index 2775159c..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/getEndpointHeaders.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { EndpointObjectHeaders, EvaluateOptions } from "../types"; -export declare const getEndpointHeaders: (headers: EndpointObjectHeaders, options: EvaluateOptions) => {}; diff --git a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/getEndpointProperties.d.ts b/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/getEndpointProperties.d.ts deleted file mode 100644 index 944b39d4..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/getEndpointProperties.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { EndpointObjectProperties, EvaluateOptions } from "../types"; -export declare const getEndpointProperties: (properties: EndpointObjectProperties, options: EvaluateOptions) => {}; diff --git a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/getEndpointProperty.d.ts b/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/getEndpointProperty.d.ts deleted file mode 100644 index 50023777..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/getEndpointProperty.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { EndpointObjectProperty } from "@smithy/types"; -import { EvaluateOptions } from "../types"; -export declare const getEndpointProperty: (property: EndpointObjectProperty, options: EvaluateOptions) => EndpointObjectProperty; diff --git a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/getEndpointUrl.d.ts b/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/getEndpointUrl.d.ts deleted file mode 100644 index 9c93422e..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/getEndpointUrl.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { EvaluateOptions, Expression } from "../types"; -export declare const getEndpointUrl: (endpointUrl: Expression, options: EvaluateOptions) => URL; diff --git a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/getReferenceValue.d.ts b/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/getReferenceValue.d.ts deleted file mode 100644 index 2ebfda3c..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/getReferenceValue.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { EvaluateOptions, ReferenceObject } from "../types"; -export declare const getReferenceValue: ({ ref }: ReferenceObject, options: EvaluateOptions) => import("../types").FunctionReturn; diff --git a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/index.d.ts b/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/index.d.ts deleted file mode 100644 index bd481df4..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/ts3.4/utils/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./customEndpointFunctions"; -export * from "./evaluateRules"; diff --git a/node_modules/@smithy/util-endpoints/dist-types/types/EndpointError.d.ts b/node_modules/@smithy/util-endpoints/dist-types/types/EndpointError.d.ts deleted file mode 100644 index 89132f21..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/types/EndpointError.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export declare class EndpointError extends Error { - constructor(message: string); -} diff --git a/node_modules/@smithy/util-endpoints/dist-types/types/EndpointFunctions.d.ts b/node_modules/@smithy/util-endpoints/dist-types/types/EndpointFunctions.d.ts deleted file mode 100644 index 33b1a0bd..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/types/EndpointFunctions.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { FunctionReturn } from "./shared"; -export type EndpointFunctions = Record FunctionReturn>; diff --git a/node_modules/@smithy/util-endpoints/dist-types/types/EndpointRuleObject.d.ts b/node_modules/@smithy/util-endpoints/dist-types/types/EndpointRuleObject.d.ts deleted file mode 100644 index d24545ff..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/types/EndpointRuleObject.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { EndpointObject as __EndpointObject, EndpointObjectHeaders as __EndpointObjectHeaders, EndpointObjectProperties as __EndpointObjectProperties, EndpointRuleObject as __EndpointRuleObject } from "@smithy/types"; -export type EndpointObjectProperties = __EndpointObjectProperties; -export type EndpointObjectHeaders = __EndpointObjectHeaders; -export type EndpointObject = __EndpointObject; -export type EndpointRuleObject = __EndpointRuleObject; diff --git a/node_modules/@smithy/util-endpoints/dist-types/types/ErrorRuleObject.d.ts b/node_modules/@smithy/util-endpoints/dist-types/types/ErrorRuleObject.d.ts deleted file mode 100644 index 51fe1386..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/types/ErrorRuleObject.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ErrorRuleObject as __ErrorRuleObject } from "@smithy/types"; -export type ErrorRuleObject = __ErrorRuleObject; diff --git a/node_modules/@smithy/util-endpoints/dist-types/types/RuleSetObject.d.ts b/node_modules/@smithy/util-endpoints/dist-types/types/RuleSetObject.d.ts deleted file mode 100644 index 3335b80d..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/types/RuleSetObject.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { DeprecatedObject as __DeprecatedObject, ParameterObject as __ParameterObject, RuleSetObject as __RuleSetObject } from "@smithy/types"; -export type DeprecatedObject = __DeprecatedObject; -export type ParameterObject = __ParameterObject; -export type RuleSetObject = __RuleSetObject; diff --git a/node_modules/@smithy/util-endpoints/dist-types/types/TreeRuleObject.d.ts b/node_modules/@smithy/util-endpoints/dist-types/types/TreeRuleObject.d.ts deleted file mode 100644 index 3d902d0e..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/types/TreeRuleObject.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { RuleSetRules as __RuleSetRules, TreeRuleObject as __TreeRuleObject } from "@smithy/types"; -export type RuleSetRules = __RuleSetRules; -export type TreeRuleObject = __TreeRuleObject; diff --git a/node_modules/@smithy/util-endpoints/dist-types/types/index.d.ts b/node_modules/@smithy/util-endpoints/dist-types/types/index.d.ts deleted file mode 100644 index a49f9840..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/types/index.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -export * from "./EndpointError"; -export * from "./EndpointFunctions"; -export * from "./EndpointRuleObject"; -export * from "./ErrorRuleObject"; -export * from "./RuleSetObject"; -export * from "./TreeRuleObject"; -export * from "./shared"; diff --git a/node_modules/@smithy/util-endpoints/dist-types/types/shared.d.ts b/node_modules/@smithy/util-endpoints/dist-types/types/shared.d.ts deleted file mode 100644 index 8351a928..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/types/shared.d.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { EndpointARN, EndpointPartition, Logger } from "@smithy/types"; -export type ReferenceObject = { - ref: string; -}; -export type FunctionObject = { - fn: string; - argv: FunctionArgv; -}; -export type FunctionArgv = Array; -export type FunctionReturn = string | boolean | number | EndpointARN | EndpointPartition | { - [key: string]: FunctionReturn; -} | null; -export type ConditionObject = FunctionObject & { - assign?: string; -}; -export type Expression = string | ReferenceObject | FunctionObject; -export type EndpointParams = Record; -export type EndpointResolverOptions = { - endpointParams: EndpointParams; - logger?: Logger; -}; -export type ReferenceRecord = Record; -export type EvaluateOptions = EndpointResolverOptions & { - referenceRecord: ReferenceRecord; -}; diff --git a/node_modules/@smithy/util-endpoints/dist-types/utils/callFunction.d.ts b/node_modules/@smithy/util-endpoints/dist-types/utils/callFunction.d.ts deleted file mode 100644 index 729a206b..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/utils/callFunction.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { EvaluateOptions, FunctionObject, FunctionReturn } from "../types"; -export declare const callFunction: ({ fn, argv }: FunctionObject, options: EvaluateOptions) => FunctionReturn; diff --git a/node_modules/@smithy/util-endpoints/dist-types/utils/customEndpointFunctions.d.ts b/node_modules/@smithy/util-endpoints/dist-types/utils/customEndpointFunctions.d.ts deleted file mode 100644 index d8971d0d..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/utils/customEndpointFunctions.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { EndpointFunctions } from "../types/EndpointFunctions"; -export declare const customEndpointFunctions: { - [key: string]: EndpointFunctions; -}; diff --git a/node_modules/@smithy/util-endpoints/dist-types/utils/endpointFunctions.d.ts b/node_modules/@smithy/util-endpoints/dist-types/utils/endpointFunctions.d.ts deleted file mode 100644 index 12d75b97..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/utils/endpointFunctions.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -export declare const endpointFunctions: { - booleanEquals: (value1: boolean, value2: boolean) => boolean; - getAttr: (value: import("../lib").GetAttrValue, path: string) => import("../lib").GetAttrValue; - isSet: (value: unknown) => boolean; - isValidHostLabel: (value: string, allowSubDomains?: boolean) => boolean; - not: (value: boolean) => boolean; - parseURL: (value: string | URL | import("@smithy/types").Endpoint) => import("@smithy/types").EndpointURL | null; - stringEquals: (value1: string, value2: string) => boolean; - substring: (input: string, start: number, stop: number, reverse: boolean) => string | null; - uriEncode: (value: string) => string; -}; diff --git a/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateCondition.d.ts b/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateCondition.d.ts deleted file mode 100644 index 5fbe59f5..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateCondition.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { ConditionObject, EvaluateOptions } from "../types"; -export declare const evaluateCondition: ({ assign, ...fnArgs }: ConditionObject, options: EvaluateOptions) => { - toAssign?: { - name: string; - value: import("../types").FunctionReturn; - } | undefined; - result: boolean; -}; diff --git a/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateConditions.d.ts b/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateConditions.d.ts deleted file mode 100644 index 4131beba..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateConditions.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { ConditionObject, EvaluateOptions, FunctionReturn } from "../types"; -export declare const evaluateConditions: (conditions: ConditionObject[] | undefined, options: EvaluateOptions) => { - result: false; - referenceRecord?: undefined; -} | { - result: boolean; - referenceRecord: Record; -}; diff --git a/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateEndpointRule.d.ts b/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateEndpointRule.d.ts deleted file mode 100644 index da9496ea..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateEndpointRule.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { EndpointV2 } from "@smithy/types"; -import { EndpointRuleObject, EvaluateOptions } from "../types"; -export declare const evaluateEndpointRule: (endpointRule: EndpointRuleObject, options: EvaluateOptions) => EndpointV2 | undefined; diff --git a/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateErrorRule.d.ts b/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateErrorRule.d.ts deleted file mode 100644 index df4973da..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateErrorRule.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { ErrorRuleObject, EvaluateOptions } from "../types"; -export declare const evaluateErrorRule: (errorRule: ErrorRuleObject, options: EvaluateOptions) => void; diff --git a/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateExpression.d.ts b/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateExpression.d.ts deleted file mode 100644 index 25419605..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateExpression.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { EvaluateOptions, Expression } from "../types"; -export declare const evaluateExpression: (obj: Expression, keyName: string, options: EvaluateOptions) => import("../types").FunctionReturn; diff --git a/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateRules.d.ts b/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateRules.d.ts deleted file mode 100644 index d38c8beb..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateRules.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { EndpointV2 } from "@smithy/types"; -import { EvaluateOptions } from "../types"; -export declare const evaluateRules: (rules: import("@smithy/types").RuleSetRules, options: EvaluateOptions) => EndpointV2; diff --git a/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateTemplate.d.ts b/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateTemplate.d.ts deleted file mode 100644 index 9b0b9ad5..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateTemplate.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { EvaluateOptions } from "../types"; -export declare const evaluateTemplate: (template: string, options: EvaluateOptions) => string; diff --git a/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateTreeRule.d.ts b/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateTreeRule.d.ts deleted file mode 100644 index 2564388a..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/utils/evaluateTreeRule.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { EndpointV2 } from "@smithy/types"; -import { EvaluateOptions, TreeRuleObject } from "../types"; -export declare const evaluateTreeRule: (treeRule: TreeRuleObject, options: EvaluateOptions) => EndpointV2 | undefined; diff --git a/node_modules/@smithy/util-endpoints/dist-types/utils/getEndpointHeaders.d.ts b/node_modules/@smithy/util-endpoints/dist-types/utils/getEndpointHeaders.d.ts deleted file mode 100644 index a8025657..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/utils/getEndpointHeaders.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { EndpointObjectHeaders, EvaluateOptions } from "../types"; -export declare const getEndpointHeaders: (headers: EndpointObjectHeaders, options: EvaluateOptions) => {}; diff --git a/node_modules/@smithy/util-endpoints/dist-types/utils/getEndpointProperties.d.ts b/node_modules/@smithy/util-endpoints/dist-types/utils/getEndpointProperties.d.ts deleted file mode 100644 index 9c83bb0c..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/utils/getEndpointProperties.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { EndpointObjectProperties, EvaluateOptions } from "../types"; -export declare const getEndpointProperties: (properties: EndpointObjectProperties, options: EvaluateOptions) => {}; diff --git a/node_modules/@smithy/util-endpoints/dist-types/utils/getEndpointProperty.d.ts b/node_modules/@smithy/util-endpoints/dist-types/utils/getEndpointProperty.d.ts deleted file mode 100644 index 7bc5b82c..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/utils/getEndpointProperty.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import { EndpointObjectProperty } from "@smithy/types"; -import { EvaluateOptions } from "../types"; -export declare const getEndpointProperty: (property: EndpointObjectProperty, options: EvaluateOptions) => EndpointObjectProperty; diff --git a/node_modules/@smithy/util-endpoints/dist-types/utils/getEndpointUrl.d.ts b/node_modules/@smithy/util-endpoints/dist-types/utils/getEndpointUrl.d.ts deleted file mode 100644 index 4ab22895..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/utils/getEndpointUrl.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { EvaluateOptions, Expression } from "../types"; -export declare const getEndpointUrl: (endpointUrl: Expression, options: EvaluateOptions) => URL; diff --git a/node_modules/@smithy/util-endpoints/dist-types/utils/getReferenceValue.d.ts b/node_modules/@smithy/util-endpoints/dist-types/utils/getReferenceValue.d.ts deleted file mode 100644 index 3699ec1d..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/utils/getReferenceValue.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -import { EvaluateOptions, ReferenceObject } from "../types"; -export declare const getReferenceValue: ({ ref }: ReferenceObject, options: EvaluateOptions) => import("../types").FunctionReturn; diff --git a/node_modules/@smithy/util-endpoints/dist-types/utils/index.d.ts b/node_modules/@smithy/util-endpoints/dist-types/utils/index.d.ts deleted file mode 100644 index b571d021..00000000 --- a/node_modules/@smithy/util-endpoints/dist-types/utils/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./customEndpointFunctions"; -export * from "./evaluateRules"; diff --git a/node_modules/@smithy/util-endpoints/package.json b/node_modules/@smithy/util-endpoints/package.json deleted file mode 100644 index f6f7053d..00000000 --- a/node_modules/@smithy/util-endpoints/package.json +++ /dev/null @@ -1,67 +0,0 @@ -{ - "name": "@smithy/util-endpoints", - "version": "1.0.5", - "description": "Utilities to help with endpoint resolution.", - "main": "./dist-cjs/index.js", - "module": "./dist-es/index.js", - "scripts": { - "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", - "build:cjs": "yarn g:tsc -p tsconfig.cjs.json", - "build:es": "yarn g:tsc -p tsconfig.es.json", - "build:types": "yarn g:tsc -p tsconfig.types.json", - "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", - "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz", - "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"", - "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"", - "test": "yarn g:jest", - "test:integration": "yarn g:jest --config jest.config.integ.js" - }, - "keywords": [ - "endpoint" - ], - "author": { - "name": "AWS SDK for JavaScript Team", - "url": "https://aws.amazon.com/javascript/" - }, - "license": "Apache-2.0", - "dependencies": { - "@smithy/node-config-provider": "^2.1.6", - "@smithy/types": "^2.6.0", - "tslib": "^2.5.0" - }, - "devDependencies": { - "@tsconfig/recommended": "1.0.1", - "@types/node": "^14.14.31", - "concurrently": "7.0.0", - "downlevel-dts": "0.10.1", - "rimraf": "3.0.2", - "typedoc": "0.23.23" - }, - "types": "./dist-types/index.d.ts", - "engines": { - "node": ">= 14.0.0" - }, - "typesVersions": { - "<4.0": { - "types/*": [ - "types/ts3.4/*" - ] - } - }, - "files": [ - "dist-*/**" - ], - "homepage": "https://github.com/awslabs/smithy-typescript/tree/master/packages/util-endpoints", - "repository": { - "type": "git", - "url": "https://github.com/awslabs/smithy-typescript.git", - "directory": "packages/util-endpoints" - }, - "typedoc": { - "entryPoint": "src/index.ts" - }, - "publishConfig": { - "directory": ".release/package" - } -} \ No newline at end of file diff --git a/node_modules/@smithy/util-hex-encoding/LICENSE b/node_modules/@smithy/util-hex-encoding/LICENSE deleted file mode 100644 index 7b6491ba..00000000 --- a/node_modules/@smithy/util-hex-encoding/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. \ No newline at end of file diff --git a/node_modules/@smithy/util-hex-encoding/README.md b/node_modules/@smithy/util-hex-encoding/README.md deleted file mode 100644 index 67e4499b..00000000 --- a/node_modules/@smithy/util-hex-encoding/README.md +++ /dev/null @@ -1,4 +0,0 @@ -# @smithy/util-hex-encoding - -[![NPM version](https://img.shields.io/npm/v/@smithy/util-hex-encoding/latest.svg)](https://www.npmjs.com/package/@smithy/util-hex-encoding) -[![NPM downloads](https://img.shields.io/npm/dm/@smithy/util-hex-encoding.svg)](https://www.npmjs.com/package/@smithy/util-hex-encoding) diff --git a/node_modules/@smithy/util-hex-encoding/dist-cjs/index.js b/node_modules/@smithy/util-hex-encoding/dist-cjs/index.js deleted file mode 100644 index afdc0f08..00000000 --- a/node_modules/@smithy/util-hex-encoding/dist-cjs/index.js +++ /dev/null @@ -1,38 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.toHex = exports.fromHex = void 0; -const SHORT_TO_HEX = {}; -const HEX_TO_SHORT = {}; -for (let i = 0; i < 256; i++) { - let encodedByte = i.toString(16).toLowerCase(); - if (encodedByte.length === 1) { - encodedByte = `0${encodedByte}`; - } - SHORT_TO_HEX[i] = encodedByte; - HEX_TO_SHORT[encodedByte] = i; -} -function fromHex(encoded) { - if (encoded.length % 2 !== 0) { - throw new Error("Hex encoded strings must have an even number length"); - } - const out = new Uint8Array(encoded.length / 2); - for (let i = 0; i < encoded.length; i += 2) { - const encodedByte = encoded.slice(i, i + 2).toLowerCase(); - if (encodedByte in HEX_TO_SHORT) { - out[i / 2] = HEX_TO_SHORT[encodedByte]; - } - else { - throw new Error(`Cannot decode unrecognized sequence ${encodedByte} as hexadecimal`); - } - } - return out; -} -exports.fromHex = fromHex; -function toHex(bytes) { - let out = ""; - for (let i = 0; i < bytes.byteLength; i++) { - out += SHORT_TO_HEX[bytes[i]]; - } - return out; -} -exports.toHex = toHex; diff --git a/node_modules/@smithy/util-hex-encoding/dist-es/index.js b/node_modules/@smithy/util-hex-encoding/dist-es/index.js deleted file mode 100644 index e47b3aa2..00000000 --- a/node_modules/@smithy/util-hex-encoding/dist-es/index.js +++ /dev/null @@ -1,33 +0,0 @@ -const SHORT_TO_HEX = {}; -const HEX_TO_SHORT = {}; -for (let i = 0; i < 256; i++) { - let encodedByte = i.toString(16).toLowerCase(); - if (encodedByte.length === 1) { - encodedByte = `0${encodedByte}`; - } - SHORT_TO_HEX[i] = encodedByte; - HEX_TO_SHORT[encodedByte] = i; -} -export function fromHex(encoded) { - if (encoded.length % 2 !== 0) { - throw new Error("Hex encoded strings must have an even number length"); - } - const out = new Uint8Array(encoded.length / 2); - for (let i = 0; i < encoded.length; i += 2) { - const encodedByte = encoded.slice(i, i + 2).toLowerCase(); - if (encodedByte in HEX_TO_SHORT) { - out[i / 2] = HEX_TO_SHORT[encodedByte]; - } - else { - throw new Error(`Cannot decode unrecognized sequence ${encodedByte} as hexadecimal`); - } - } - return out; -} -export function toHex(bytes) { - let out = ""; - for (let i = 0; i < bytes.byteLength; i++) { - out += SHORT_TO_HEX[bytes[i]]; - } - return out; -} diff --git a/node_modules/@smithy/util-hex-encoding/dist-types/index.d.ts b/node_modules/@smithy/util-hex-encoding/dist-types/index.d.ts deleted file mode 100644 index 9d4307ad..00000000 --- a/node_modules/@smithy/util-hex-encoding/dist-types/index.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -/** - * Converts a hexadecimal encoded string to a Uint8Array of bytes. - * - * @param encoded The hexadecimal encoded string - */ -export declare function fromHex(encoded: string): Uint8Array; -/** - * Converts a Uint8Array of binary data to a hexadecimal encoded string. - * - * @param bytes The binary data to encode - */ -export declare function toHex(bytes: Uint8Array): string; diff --git a/node_modules/@smithy/util-hex-encoding/dist-types/ts3.4/index.d.ts b/node_modules/@smithy/util-hex-encoding/dist-types/ts3.4/index.d.ts deleted file mode 100644 index 02a88489..00000000 --- a/node_modules/@smithy/util-hex-encoding/dist-types/ts3.4/index.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -/** - * Converts a hexadecimal encoded string to a Uint8Array of bytes. - * - * @param encoded The hexadecimal encoded string - */ -export declare function fromHex(encoded: string): Uint8Array; -/** - * Converts a Uint8Array of binary data to a hexadecimal encoded string. - * - * @param bytes The binary data to encode - */ -export declare function toHex(bytes: Uint8Array): string; diff --git a/node_modules/@smithy/util-hex-encoding/package.json b/node_modules/@smithy/util-hex-encoding/package.json deleted file mode 100644 index 523fa251..00000000 --- a/node_modules/@smithy/util-hex-encoding/package.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "name": "@smithy/util-hex-encoding", - "version": "2.0.0", - "description": "Converts binary buffers to and from lowercase hexadecimal encoding", - "scripts": { - "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", - "build:cjs": "tsc -p tsconfig.cjs.json", - "build:es": "tsc -p tsconfig.es.json", - "build:types": "tsc -p tsconfig.types.json", - "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", - "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz", - "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"", - "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"", - "test": "jest" - }, - "author": { - "name": "AWS SDK for JavaScript Team", - "url": "https://aws.amazon.com/javascript/" - }, - "license": "Apache-2.0", - "main": "./dist-cjs/index.js", - "module": "./dist-es/index.js", - "dependencies": { - "tslib": "^2.5.0" - }, - "types": "./dist-types/index.d.ts", - "engines": { - "node": ">=14.0.0" - }, - "typesVersions": { - "<4.0": { - "dist-types/*": [ - "dist-types/ts3.4/*" - ] - } - }, - "files": [ - "dist-*/**" - ], - "homepage": "https://github.com/awslabs/smithy-typescript/tree/main/packages/util-hex-encoding", - "repository": { - "type": "git", - "url": "https://github.com/awslabs/smithy-typescript.git", - "directory": "packages/util-hex-encoding" - }, - "devDependencies": { - "@tsconfig/recommended": "1.0.1", - "concurrently": "7.0.0", - "downlevel-dts": "0.10.1", - "jest": "28.1.1", - "rimraf": "3.0.2", - "typedoc": "0.23.23", - "typescript": "~4.9.5" - }, - "typedoc": { - "entryPoint": "src/index.ts" - }, - "publishConfig": { - "directory": ".release/package" - } -} \ No newline at end of file diff --git a/node_modules/@smithy/util-middleware/LICENSE b/node_modules/@smithy/util-middleware/LICENSE deleted file mode 100644 index a1895fac..00000000 --- a/node_modules/@smithy/util-middleware/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. \ No newline at end of file diff --git a/node_modules/@smithy/util-middleware/README.md b/node_modules/@smithy/util-middleware/README.md deleted file mode 100644 index f043cfa2..00000000 --- a/node_modules/@smithy/util-middleware/README.md +++ /dev/null @@ -1,12 +0,0 @@ -# @smithy/util-middleware - -[![NPM version](https://img.shields.io/npm/v/@smithy/util-middleware/latest.svg)](https://www.npmjs.com/package/@smithy/util-middleware) -[![NPM downloads](https://img.shields.io/npm/dm/@smithy/util-middleware.svg)](https://www.npmjs.com/package/@smithy/util-middleware) - -> An internal package - -This package provides shared utilities for middleware. - -## Usage - -You probably shouldn't, at least directly. diff --git a/node_modules/@smithy/util-middleware/dist-cjs/getSmithyContext.js b/node_modules/@smithy/util-middleware/dist-cjs/getSmithyContext.js deleted file mode 100644 index eb1bdd64..00000000 --- a/node_modules/@smithy/util-middleware/dist-cjs/getSmithyContext.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getSmithyContext = void 0; -const types_1 = require("@smithy/types"); -const getSmithyContext = (context) => context[types_1.SMITHY_CONTEXT_KEY] || (context[types_1.SMITHY_CONTEXT_KEY] = {}); -exports.getSmithyContext = getSmithyContext; diff --git a/node_modules/@smithy/util-middleware/dist-cjs/index.js b/node_modules/@smithy/util-middleware/dist-cjs/index.js deleted file mode 100644 index 0a69e3e5..00000000 --- a/node_modules/@smithy/util-middleware/dist-cjs/index.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./getSmithyContext"), exports); -tslib_1.__exportStar(require("./normalizeProvider"), exports); diff --git a/node_modules/@smithy/util-middleware/dist-cjs/normalizeProvider.js b/node_modules/@smithy/util-middleware/dist-cjs/normalizeProvider.js deleted file mode 100644 index 3fdcce5d..00000000 --- a/node_modules/@smithy/util-middleware/dist-cjs/normalizeProvider.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.normalizeProvider = void 0; -const normalizeProvider = (input) => { - if (typeof input === "function") - return input; - const promisified = Promise.resolve(input); - return () => promisified; -}; -exports.normalizeProvider = normalizeProvider; diff --git a/node_modules/@smithy/util-middleware/dist-es/getSmithyContext.js b/node_modules/@smithy/util-middleware/dist-es/getSmithyContext.js deleted file mode 100644 index 3848a0c2..00000000 --- a/node_modules/@smithy/util-middleware/dist-es/getSmithyContext.js +++ /dev/null @@ -1,2 +0,0 @@ -import { SMITHY_CONTEXT_KEY } from "@smithy/types"; -export const getSmithyContext = (context) => context[SMITHY_CONTEXT_KEY] || (context[SMITHY_CONTEXT_KEY] = {}); diff --git a/node_modules/@smithy/util-middleware/dist-es/index.js b/node_modules/@smithy/util-middleware/dist-es/index.js deleted file mode 100644 index 484290d4..00000000 --- a/node_modules/@smithy/util-middleware/dist-es/index.js +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./getSmithyContext"; -export * from "./normalizeProvider"; diff --git a/node_modules/@smithy/util-middleware/dist-es/normalizeProvider.js b/node_modules/@smithy/util-middleware/dist-es/normalizeProvider.js deleted file mode 100644 index a83ea99e..00000000 --- a/node_modules/@smithy/util-middleware/dist-es/normalizeProvider.js +++ /dev/null @@ -1,6 +0,0 @@ -export const normalizeProvider = (input) => { - if (typeof input === "function") - return input; - const promisified = Promise.resolve(input); - return () => promisified; -}; diff --git a/node_modules/@smithy/util-middleware/dist-types/getSmithyContext.d.ts b/node_modules/@smithy/util-middleware/dist-types/getSmithyContext.d.ts deleted file mode 100644 index 523ee47d..00000000 --- a/node_modules/@smithy/util-middleware/dist-types/getSmithyContext.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { HandlerExecutionContext } from "@smithy/types"; -/** - * @internal - */ -export declare const getSmithyContext: (context: HandlerExecutionContext) => Record; diff --git a/node_modules/@smithy/util-middleware/dist-types/index.d.ts b/node_modules/@smithy/util-middleware/dist-types/index.d.ts deleted file mode 100644 index 3869284e..00000000 --- a/node_modules/@smithy/util-middleware/dist-types/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @internal - */ -export * from "./getSmithyContext"; -/** - * @internal - */ -export * from "./normalizeProvider"; diff --git a/node_modules/@smithy/util-middleware/dist-types/normalizeProvider.d.ts b/node_modules/@smithy/util-middleware/dist-types/normalizeProvider.d.ts deleted file mode 100644 index 4fe2d9ad..00000000 --- a/node_modules/@smithy/util-middleware/dist-types/normalizeProvider.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Provider } from "@smithy/types"; -/** - * @internal - * - * @returns a provider function for the input value if it isn't already one. - */ -export declare const normalizeProvider: (input: T | Provider) => Provider; diff --git a/node_modules/@smithy/util-middleware/dist-types/ts3.4/getSmithyContext.d.ts b/node_modules/@smithy/util-middleware/dist-types/ts3.4/getSmithyContext.d.ts deleted file mode 100644 index 14cd7c4e..00000000 --- a/node_modules/@smithy/util-middleware/dist-types/ts3.4/getSmithyContext.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { HandlerExecutionContext } from "@smithy/types"; -/** - * @internal - */ -export declare const getSmithyContext: (context: HandlerExecutionContext) => Record; diff --git a/node_modules/@smithy/util-middleware/dist-types/ts3.4/index.d.ts b/node_modules/@smithy/util-middleware/dist-types/ts3.4/index.d.ts deleted file mode 100644 index ab071596..00000000 --- a/node_modules/@smithy/util-middleware/dist-types/ts3.4/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @internal - */ -export * from "./getSmithyContext"; -/** - * @internal - */ -export * from "./normalizeProvider"; diff --git a/node_modules/@smithy/util-middleware/dist-types/ts3.4/normalizeProvider.d.ts b/node_modules/@smithy/util-middleware/dist-types/ts3.4/normalizeProvider.d.ts deleted file mode 100644 index 594e8fa8..00000000 --- a/node_modules/@smithy/util-middleware/dist-types/ts3.4/normalizeProvider.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { Provider } from "@smithy/types"; -/** - * @internal - * - * @returns a provider function for the input value if it isn't already one. - */ -export declare const normalizeProvider: (input: T | Provider) => Provider; diff --git a/node_modules/@smithy/util-middleware/package.json b/node_modules/@smithy/util-middleware/package.json deleted file mode 100644 index f62c9827..00000000 --- a/node_modules/@smithy/util-middleware/package.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "name": "@smithy/util-middleware", - "version": "2.0.7", - "description": "Shared utilities for to be used in middleware packages.", - "main": "./dist-cjs/index.js", - "module": "./dist-es/index.js", - "scripts": { - "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", - "build:cjs": "yarn g:tsc -p tsconfig.cjs.json", - "build:es": "yarn g:tsc -p tsconfig.es.json", - "build:types": "yarn g:tsc -p tsconfig.types.json", - "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", - "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz", - "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"", - "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"", - "test": "yarn g:jest" - }, - "keywords": [ - "aws", - "middleware" - ], - "author": { - "name": "AWS SDK for JavaScript Team", - "url": "https://aws.amazon.com/javascript/" - }, - "license": "Apache-2.0", - "dependencies": { - "@smithy/types": "^2.6.0", - "tslib": "^2.5.0" - }, - "devDependencies": { - "@tsconfig/recommended": "1.0.1", - "@types/node": "^14.14.31", - "concurrently": "7.0.0", - "downlevel-dts": "0.10.1", - "rimraf": "3.0.2", - "typedoc": "0.23.23" - }, - "types": "./dist-types/index.d.ts", - "engines": { - "node": ">=14.0.0" - }, - "typesVersions": { - "<4.0": { - "types/*": [ - "types/ts3.4/*" - ] - } - }, - "files": [ - "dist-*/**" - ], - "homepage": "https://github.com/awslabs/smithy-typescript/tree/master/packages/util-middleware", - "repository": { - "type": "git", - "url": "https://github.com/awslabs/smithy-typescript.git", - "directory": "packages/util-middleware" - }, - "typedoc": { - "entryPoint": "src/index.ts" - }, - "publishConfig": { - "directory": ".release/package" - } -} \ No newline at end of file diff --git a/node_modules/@smithy/util-retry/LICENSE b/node_modules/@smithy/util-retry/LICENSE deleted file mode 100644 index a1895fac..00000000 --- a/node_modules/@smithy/util-retry/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2021 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. \ No newline at end of file diff --git a/node_modules/@smithy/util-retry/README.md b/node_modules/@smithy/util-retry/README.md deleted file mode 100644 index 16408e4d..00000000 --- a/node_modules/@smithy/util-retry/README.md +++ /dev/null @@ -1,78 +0,0 @@ -# @smithy/util-retry - -[![NPM version](https://img.shields.io/npm/v/@smithy/util-retry/latest.svg)](https://www.npmjs.com/package/@smithy/util-retry) -[![NPM downloads](https://img.shields.io/npm/dm/@smithy/util-retry.svg)](https://www.npmjs.com/package/@smithy/util-retry) - -This package provides shared utilities for retries. - -## Usage - -### Default - -By default, each client already has a default retry strategy. The default retry count is 3, and -only retryable errors will be retried. - -[AWS Documentation: Retry behavior](https://docs.aws.amazon.com/sdkref/latest/guide/feature-retry-behavior.html). - -```js -import { S3Client } from "@aws-sdk/client-s3"; - -const client = new S3Client({}); // default retry strategy included. -``` - -### MaxAttempts - -If you want to change the number of attempts, you can provide `maxAttempts` configuration during client creation. - -```js -import { S3Client } from "@aws-sdk/client-s3"; - -const client = new S3Client({ maxAttempts: 4 }); -``` - -This is recommended because the `StandardRetryStrategy` includes backoff calculation, -deciding whether an error should be retried, and a retry token counter. - -### MaxAttempts and BackoffComputation - -If you want to change the number of attempts and use a custom delay -computation, you can use the `ConfiguredRetryStrategy` from `@smithy/util-retry`. - -```js -import { S3Client } from "@aws-sdk/client-s3"; -import { ConfiguredRetryStrategy } from "@smithy/util-retry"; - -const client = new S3Client({ - retryStrategy: new ConfiguredRetryStrategy( - 4, // max attempts. - (attempt: number) => 100 + attempt * 1000 // backoff function. - ), -}); -``` - -This example sets the backoff at 100ms plus 1s per attempt. - -### MaxAttempts and RetryStrategy - -If you provide both `maxAttempts` and `retryStrategy`, the `retryStrategy` will -get precedence as it's more specific. - -```js -import { S3Client } from "@aws-sdk/client-s3"; -import { ConfiguredRetryStrategy } from "@smithy/util-retry"; - -const client = new S3Client({ - maxAttempts: 2, // ignored. - retryStrategy: new ConfiguredRetryStrategy( - 4, // used. - (attempt: number) => 100 + attempt * 1000 // backoff function. - ), -}); -``` - -### Further customization - -You can implement the `RetryStrategyV2` interface. - -Source: https://github.com/awslabs/smithy-typescript/blob/main/packages/types/src/retry.ts -API Docs: https://docs.aws.amazon.com/AWSJavaScriptSDK/v3/latest/Package/-smithy-types/Interface/RetryStrategyV2/ diff --git a/node_modules/@smithy/util-retry/dist-cjs/AdaptiveRetryStrategy.js b/node_modules/@smithy/util-retry/dist-cjs/AdaptiveRetryStrategy.js deleted file mode 100644 index 8fb8a2f4..00000000 --- a/node_modules/@smithy/util-retry/dist-cjs/AdaptiveRetryStrategy.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.AdaptiveRetryStrategy = void 0; -const config_1 = require("./config"); -const DefaultRateLimiter_1 = require("./DefaultRateLimiter"); -const StandardRetryStrategy_1 = require("./StandardRetryStrategy"); -class AdaptiveRetryStrategy { - constructor(maxAttemptsProvider, options) { - this.maxAttemptsProvider = maxAttemptsProvider; - this.mode = config_1.RETRY_MODES.ADAPTIVE; - const { rateLimiter } = options !== null && options !== void 0 ? options : {}; - this.rateLimiter = rateLimiter !== null && rateLimiter !== void 0 ? rateLimiter : new DefaultRateLimiter_1.DefaultRateLimiter(); - this.standardRetryStrategy = new StandardRetryStrategy_1.StandardRetryStrategy(maxAttemptsProvider); - } - async acquireInitialRetryToken(retryTokenScope) { - await this.rateLimiter.getSendToken(); - return this.standardRetryStrategy.acquireInitialRetryToken(retryTokenScope); - } - async refreshRetryTokenForRetry(tokenToRenew, errorInfo) { - this.rateLimiter.updateClientSendingRate(errorInfo); - return this.standardRetryStrategy.refreshRetryTokenForRetry(tokenToRenew, errorInfo); - } - recordSuccess(token) { - this.rateLimiter.updateClientSendingRate({}); - this.standardRetryStrategy.recordSuccess(token); - } -} -exports.AdaptiveRetryStrategy = AdaptiveRetryStrategy; diff --git a/node_modules/@smithy/util-retry/dist-cjs/ConfiguredRetryStrategy.js b/node_modules/@smithy/util-retry/dist-cjs/ConfiguredRetryStrategy.js deleted file mode 100644 index 563bc91d..00000000 --- a/node_modules/@smithy/util-retry/dist-cjs/ConfiguredRetryStrategy.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.ConfiguredRetryStrategy = void 0; -const constants_1 = require("./constants"); -const StandardRetryStrategy_1 = require("./StandardRetryStrategy"); -class ConfiguredRetryStrategy extends StandardRetryStrategy_1.StandardRetryStrategy { - constructor(maxAttempts, computeNextBackoffDelay = constants_1.DEFAULT_RETRY_DELAY_BASE) { - super(typeof maxAttempts === "function" ? maxAttempts : async () => maxAttempts); - if (typeof computeNextBackoffDelay === "number") { - this.computeNextBackoffDelay = () => computeNextBackoffDelay; - } - else { - this.computeNextBackoffDelay = computeNextBackoffDelay; - } - } - async refreshRetryTokenForRetry(tokenToRenew, errorInfo) { - const token = await super.refreshRetryTokenForRetry(tokenToRenew, errorInfo); - token.getRetryDelay = () => this.computeNextBackoffDelay(token.getRetryCount()); - return token; - } -} -exports.ConfiguredRetryStrategy = ConfiguredRetryStrategy; diff --git a/node_modules/@smithy/util-retry/dist-cjs/DefaultRateLimiter.js b/node_modules/@smithy/util-retry/dist-cjs/DefaultRateLimiter.js deleted file mode 100644 index 3cce1e55..00000000 --- a/node_modules/@smithy/util-retry/dist-cjs/DefaultRateLimiter.js +++ /dev/null @@ -1,104 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DefaultRateLimiter = void 0; -const service_error_classification_1 = require("@smithy/service-error-classification"); -class DefaultRateLimiter { - constructor(options) { - var _a, _b, _c, _d, _e; - this.currentCapacity = 0; - this.enabled = false; - this.lastMaxRate = 0; - this.measuredTxRate = 0; - this.requestCount = 0; - this.lastTimestamp = 0; - this.timeWindow = 0; - this.beta = (_a = options === null || options === void 0 ? void 0 : options.beta) !== null && _a !== void 0 ? _a : 0.7; - this.minCapacity = (_b = options === null || options === void 0 ? void 0 : options.minCapacity) !== null && _b !== void 0 ? _b : 1; - this.minFillRate = (_c = options === null || options === void 0 ? void 0 : options.minFillRate) !== null && _c !== void 0 ? _c : 0.5; - this.scaleConstant = (_d = options === null || options === void 0 ? void 0 : options.scaleConstant) !== null && _d !== void 0 ? _d : 0.4; - this.smooth = (_e = options === null || options === void 0 ? void 0 : options.smooth) !== null && _e !== void 0 ? _e : 0.8; - const currentTimeInSeconds = this.getCurrentTimeInSeconds(); - this.lastThrottleTime = currentTimeInSeconds; - this.lastTxRateBucket = Math.floor(this.getCurrentTimeInSeconds()); - this.fillRate = this.minFillRate; - this.maxCapacity = this.minCapacity; - } - getCurrentTimeInSeconds() { - return Date.now() / 1000; - } - async getSendToken() { - return this.acquireTokenBucket(1); - } - async acquireTokenBucket(amount) { - if (!this.enabled) { - return; - } - this.refillTokenBucket(); - if (amount > this.currentCapacity) { - const delay = ((amount - this.currentCapacity) / this.fillRate) * 1000; - await new Promise((resolve) => setTimeout(resolve, delay)); - } - this.currentCapacity = this.currentCapacity - amount; - } - refillTokenBucket() { - const timestamp = this.getCurrentTimeInSeconds(); - if (!this.lastTimestamp) { - this.lastTimestamp = timestamp; - return; - } - const fillAmount = (timestamp - this.lastTimestamp) * this.fillRate; - this.currentCapacity = Math.min(this.maxCapacity, this.currentCapacity + fillAmount); - this.lastTimestamp = timestamp; - } - updateClientSendingRate(response) { - let calculatedRate; - this.updateMeasuredRate(); - if ((0, service_error_classification_1.isThrottlingError)(response)) { - const rateToUse = !this.enabled ? this.measuredTxRate : Math.min(this.measuredTxRate, this.fillRate); - this.lastMaxRate = rateToUse; - this.calculateTimeWindow(); - this.lastThrottleTime = this.getCurrentTimeInSeconds(); - calculatedRate = this.cubicThrottle(rateToUse); - this.enableTokenBucket(); - } - else { - this.calculateTimeWindow(); - calculatedRate = this.cubicSuccess(this.getCurrentTimeInSeconds()); - } - const newRate = Math.min(calculatedRate, 2 * this.measuredTxRate); - this.updateTokenBucketRate(newRate); - } - calculateTimeWindow() { - this.timeWindow = this.getPrecise(Math.pow((this.lastMaxRate * (1 - this.beta)) / this.scaleConstant, 1 / 3)); - } - cubicThrottle(rateToUse) { - return this.getPrecise(rateToUse * this.beta); - } - cubicSuccess(timestamp) { - return this.getPrecise(this.scaleConstant * Math.pow(timestamp - this.lastThrottleTime - this.timeWindow, 3) + this.lastMaxRate); - } - enableTokenBucket() { - this.enabled = true; - } - updateTokenBucketRate(newRate) { - this.refillTokenBucket(); - this.fillRate = Math.max(newRate, this.minFillRate); - this.maxCapacity = Math.max(newRate, this.minCapacity); - this.currentCapacity = Math.min(this.currentCapacity, this.maxCapacity); - } - updateMeasuredRate() { - const t = this.getCurrentTimeInSeconds(); - const timeBucket = Math.floor(t * 2) / 2; - this.requestCount++; - if (timeBucket > this.lastTxRateBucket) { - const currentRate = this.requestCount / (timeBucket - this.lastTxRateBucket); - this.measuredTxRate = this.getPrecise(currentRate * this.smooth + this.measuredTxRate * (1 - this.smooth)); - this.requestCount = 0; - this.lastTxRateBucket = timeBucket; - } - } - getPrecise(num) { - return parseFloat(num.toFixed(8)); - } -} -exports.DefaultRateLimiter = DefaultRateLimiter; diff --git a/node_modules/@smithy/util-retry/dist-cjs/StandardRetryStrategy.js b/node_modules/@smithy/util-retry/dist-cjs/StandardRetryStrategy.js deleted file mode 100644 index 2915c96c..00000000 --- a/node_modules/@smithy/util-retry/dist-cjs/StandardRetryStrategy.js +++ /dev/null @@ -1,70 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.StandardRetryStrategy = void 0; -const config_1 = require("./config"); -const constants_1 = require("./constants"); -const defaultRetryBackoffStrategy_1 = require("./defaultRetryBackoffStrategy"); -const defaultRetryToken_1 = require("./defaultRetryToken"); -class StandardRetryStrategy { - constructor(maxAttempts) { - this.maxAttempts = maxAttempts; - this.mode = config_1.RETRY_MODES.STANDARD; - this.capacity = constants_1.INITIAL_RETRY_TOKENS; - this.retryBackoffStrategy = (0, defaultRetryBackoffStrategy_1.getDefaultRetryBackoffStrategy)(); - this.maxAttemptsProvider = typeof maxAttempts === "function" ? maxAttempts : async () => maxAttempts; - } - async acquireInitialRetryToken(retryTokenScope) { - return (0, defaultRetryToken_1.createDefaultRetryToken)({ - retryDelay: constants_1.DEFAULT_RETRY_DELAY_BASE, - retryCount: 0, - }); - } - async refreshRetryTokenForRetry(token, errorInfo) { - const maxAttempts = await this.getMaxAttempts(); - if (this.shouldRetry(token, errorInfo, maxAttempts)) { - const errorType = errorInfo.errorType; - this.retryBackoffStrategy.setDelayBase(errorType === "THROTTLING" ? constants_1.THROTTLING_RETRY_DELAY_BASE : constants_1.DEFAULT_RETRY_DELAY_BASE); - const delayFromErrorType = this.retryBackoffStrategy.computeNextBackoffDelay(token.getRetryCount()); - const retryDelay = errorInfo.retryAfterHint - ? Math.max(errorInfo.retryAfterHint.getTime() - Date.now() || 0, delayFromErrorType) - : delayFromErrorType; - const capacityCost = this.getCapacityCost(errorType); - this.capacity -= capacityCost; - return (0, defaultRetryToken_1.createDefaultRetryToken)({ - retryDelay, - retryCount: token.getRetryCount() + 1, - retryCost: capacityCost, - }); - } - throw new Error("No retry token available"); - } - recordSuccess(token) { - var _a; - this.capacity = Math.max(constants_1.INITIAL_RETRY_TOKENS, this.capacity + ((_a = token.getRetryCost()) !== null && _a !== void 0 ? _a : constants_1.NO_RETRY_INCREMENT)); - } - getCapacity() { - return this.capacity; - } - async getMaxAttempts() { - try { - return await this.maxAttemptsProvider(); - } - catch (error) { - console.warn(`Max attempts provider could not resolve. Using default of ${config_1.DEFAULT_MAX_ATTEMPTS}`); - return config_1.DEFAULT_MAX_ATTEMPTS; - } - } - shouldRetry(tokenToRenew, errorInfo, maxAttempts) { - const attempts = tokenToRenew.getRetryCount() + 1; - return (attempts < maxAttempts && - this.capacity >= this.getCapacityCost(errorInfo.errorType) && - this.isRetryableError(errorInfo.errorType)); - } - getCapacityCost(errorType) { - return errorType === "TRANSIENT" ? constants_1.TIMEOUT_RETRY_COST : constants_1.RETRY_COST; - } - isRetryableError(errorType) { - return errorType === "THROTTLING" || errorType === "TRANSIENT"; - } -} -exports.StandardRetryStrategy = StandardRetryStrategy; diff --git a/node_modules/@smithy/util-retry/dist-cjs/config.js b/node_modules/@smithy/util-retry/dist-cjs/config.js deleted file mode 100644 index 622959ea..00000000 --- a/node_modules/@smithy/util-retry/dist-cjs/config.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.DEFAULT_RETRY_MODE = exports.DEFAULT_MAX_ATTEMPTS = exports.RETRY_MODES = void 0; -var RETRY_MODES; -(function (RETRY_MODES) { - RETRY_MODES["STANDARD"] = "standard"; - RETRY_MODES["ADAPTIVE"] = "adaptive"; -})(RETRY_MODES = exports.RETRY_MODES || (exports.RETRY_MODES = {})); -exports.DEFAULT_MAX_ATTEMPTS = 3; -exports.DEFAULT_RETRY_MODE = RETRY_MODES.STANDARD; diff --git a/node_modules/@smithy/util-retry/dist-cjs/constants.js b/node_modules/@smithy/util-retry/dist-cjs/constants.js deleted file mode 100644 index 2f445140..00000000 --- a/node_modules/@smithy/util-retry/dist-cjs/constants.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.REQUEST_HEADER = exports.INVOCATION_ID_HEADER = exports.NO_RETRY_INCREMENT = exports.TIMEOUT_RETRY_COST = exports.RETRY_COST = exports.INITIAL_RETRY_TOKENS = exports.THROTTLING_RETRY_DELAY_BASE = exports.MAXIMUM_RETRY_DELAY = exports.DEFAULT_RETRY_DELAY_BASE = void 0; -exports.DEFAULT_RETRY_DELAY_BASE = 100; -exports.MAXIMUM_RETRY_DELAY = 20 * 1000; -exports.THROTTLING_RETRY_DELAY_BASE = 500; -exports.INITIAL_RETRY_TOKENS = 500; -exports.RETRY_COST = 5; -exports.TIMEOUT_RETRY_COST = 10; -exports.NO_RETRY_INCREMENT = 1; -exports.INVOCATION_ID_HEADER = "amz-sdk-invocation-id"; -exports.REQUEST_HEADER = "amz-sdk-request"; diff --git a/node_modules/@smithy/util-retry/dist-cjs/defaultRetryBackoffStrategy.js b/node_modules/@smithy/util-retry/dist-cjs/defaultRetryBackoffStrategy.js deleted file mode 100644 index 05f2a521..00000000 --- a/node_modules/@smithy/util-retry/dist-cjs/defaultRetryBackoffStrategy.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getDefaultRetryBackoffStrategy = void 0; -const constants_1 = require("./constants"); -const getDefaultRetryBackoffStrategy = () => { - let delayBase = constants_1.DEFAULT_RETRY_DELAY_BASE; - const computeNextBackoffDelay = (attempts) => { - return Math.floor(Math.min(constants_1.MAXIMUM_RETRY_DELAY, Math.random() * 2 ** attempts * delayBase)); - }; - const setDelayBase = (delay) => { - delayBase = delay; - }; - return { - computeNextBackoffDelay, - setDelayBase, - }; -}; -exports.getDefaultRetryBackoffStrategy = getDefaultRetryBackoffStrategy; diff --git a/node_modules/@smithy/util-retry/dist-cjs/defaultRetryToken.js b/node_modules/@smithy/util-retry/dist-cjs/defaultRetryToken.js deleted file mode 100644 index db964c69..00000000 --- a/node_modules/@smithy/util-retry/dist-cjs/defaultRetryToken.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createDefaultRetryToken = void 0; -const constants_1 = require("./constants"); -const createDefaultRetryToken = ({ retryDelay, retryCount, retryCost, }) => { - const getRetryCount = () => retryCount; - const getRetryDelay = () => Math.min(constants_1.MAXIMUM_RETRY_DELAY, retryDelay); - const getRetryCost = () => retryCost; - return { - getRetryCount, - getRetryDelay, - getRetryCost, - }; -}; -exports.createDefaultRetryToken = createDefaultRetryToken; diff --git a/node_modules/@smithy/util-retry/dist-cjs/index.js b/node_modules/@smithy/util-retry/dist-cjs/index.js deleted file mode 100644 index 7929ab78..00000000 --- a/node_modules/@smithy/util-retry/dist-cjs/index.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./AdaptiveRetryStrategy"), exports); -tslib_1.__exportStar(require("./ConfiguredRetryStrategy"), exports); -tslib_1.__exportStar(require("./DefaultRateLimiter"), exports); -tslib_1.__exportStar(require("./StandardRetryStrategy"), exports); -tslib_1.__exportStar(require("./config"), exports); -tslib_1.__exportStar(require("./constants"), exports); -tslib_1.__exportStar(require("./types"), exports); diff --git a/node_modules/@smithy/util-retry/dist-cjs/types.js b/node_modules/@smithy/util-retry/dist-cjs/types.js deleted file mode 100644 index c8ad2e54..00000000 --- a/node_modules/@smithy/util-retry/dist-cjs/types.js +++ /dev/null @@ -1,2 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); diff --git a/node_modules/@smithy/util-retry/dist-es/AdaptiveRetryStrategy.js b/node_modules/@smithy/util-retry/dist-es/AdaptiveRetryStrategy.js deleted file mode 100644 index e20cf0f8..00000000 --- a/node_modules/@smithy/util-retry/dist-es/AdaptiveRetryStrategy.js +++ /dev/null @@ -1,24 +0,0 @@ -import { RETRY_MODES } from "./config"; -import { DefaultRateLimiter } from "./DefaultRateLimiter"; -import { StandardRetryStrategy } from "./StandardRetryStrategy"; -export class AdaptiveRetryStrategy { - constructor(maxAttemptsProvider, options) { - this.maxAttemptsProvider = maxAttemptsProvider; - this.mode = RETRY_MODES.ADAPTIVE; - const { rateLimiter } = options ?? {}; - this.rateLimiter = rateLimiter ?? new DefaultRateLimiter(); - this.standardRetryStrategy = new StandardRetryStrategy(maxAttemptsProvider); - } - async acquireInitialRetryToken(retryTokenScope) { - await this.rateLimiter.getSendToken(); - return this.standardRetryStrategy.acquireInitialRetryToken(retryTokenScope); - } - async refreshRetryTokenForRetry(tokenToRenew, errorInfo) { - this.rateLimiter.updateClientSendingRate(errorInfo); - return this.standardRetryStrategy.refreshRetryTokenForRetry(tokenToRenew, errorInfo); - } - recordSuccess(token) { - this.rateLimiter.updateClientSendingRate({}); - this.standardRetryStrategy.recordSuccess(token); - } -} diff --git a/node_modules/@smithy/util-retry/dist-es/ConfiguredRetryStrategy.js b/node_modules/@smithy/util-retry/dist-es/ConfiguredRetryStrategy.js deleted file mode 100644 index 541bdb24..00000000 --- a/node_modules/@smithy/util-retry/dist-es/ConfiguredRetryStrategy.js +++ /dev/null @@ -1,18 +0,0 @@ -import { DEFAULT_RETRY_DELAY_BASE } from "./constants"; -import { StandardRetryStrategy } from "./StandardRetryStrategy"; -export class ConfiguredRetryStrategy extends StandardRetryStrategy { - constructor(maxAttempts, computeNextBackoffDelay = DEFAULT_RETRY_DELAY_BASE) { - super(typeof maxAttempts === "function" ? maxAttempts : async () => maxAttempts); - if (typeof computeNextBackoffDelay === "number") { - this.computeNextBackoffDelay = () => computeNextBackoffDelay; - } - else { - this.computeNextBackoffDelay = computeNextBackoffDelay; - } - } - async refreshRetryTokenForRetry(tokenToRenew, errorInfo) { - const token = await super.refreshRetryTokenForRetry(tokenToRenew, errorInfo); - token.getRetryDelay = () => this.computeNextBackoffDelay(token.getRetryCount()); - return token; - } -} diff --git a/node_modules/@smithy/util-retry/dist-es/DefaultRateLimiter.js b/node_modules/@smithy/util-retry/dist-es/DefaultRateLimiter.js deleted file mode 100644 index fd44f1b8..00000000 --- a/node_modules/@smithy/util-retry/dist-es/DefaultRateLimiter.js +++ /dev/null @@ -1,99 +0,0 @@ -import { isThrottlingError } from "@smithy/service-error-classification"; -export class DefaultRateLimiter { - constructor(options) { - this.currentCapacity = 0; - this.enabled = false; - this.lastMaxRate = 0; - this.measuredTxRate = 0; - this.requestCount = 0; - this.lastTimestamp = 0; - this.timeWindow = 0; - this.beta = options?.beta ?? 0.7; - this.minCapacity = options?.minCapacity ?? 1; - this.minFillRate = options?.minFillRate ?? 0.5; - this.scaleConstant = options?.scaleConstant ?? 0.4; - this.smooth = options?.smooth ?? 0.8; - const currentTimeInSeconds = this.getCurrentTimeInSeconds(); - this.lastThrottleTime = currentTimeInSeconds; - this.lastTxRateBucket = Math.floor(this.getCurrentTimeInSeconds()); - this.fillRate = this.minFillRate; - this.maxCapacity = this.minCapacity; - } - getCurrentTimeInSeconds() { - return Date.now() / 1000; - } - async getSendToken() { - return this.acquireTokenBucket(1); - } - async acquireTokenBucket(amount) { - if (!this.enabled) { - return; - } - this.refillTokenBucket(); - if (amount > this.currentCapacity) { - const delay = ((amount - this.currentCapacity) / this.fillRate) * 1000; - await new Promise((resolve) => setTimeout(resolve, delay)); - } - this.currentCapacity = this.currentCapacity - amount; - } - refillTokenBucket() { - const timestamp = this.getCurrentTimeInSeconds(); - if (!this.lastTimestamp) { - this.lastTimestamp = timestamp; - return; - } - const fillAmount = (timestamp - this.lastTimestamp) * this.fillRate; - this.currentCapacity = Math.min(this.maxCapacity, this.currentCapacity + fillAmount); - this.lastTimestamp = timestamp; - } - updateClientSendingRate(response) { - let calculatedRate; - this.updateMeasuredRate(); - if (isThrottlingError(response)) { - const rateToUse = !this.enabled ? this.measuredTxRate : Math.min(this.measuredTxRate, this.fillRate); - this.lastMaxRate = rateToUse; - this.calculateTimeWindow(); - this.lastThrottleTime = this.getCurrentTimeInSeconds(); - calculatedRate = this.cubicThrottle(rateToUse); - this.enableTokenBucket(); - } - else { - this.calculateTimeWindow(); - calculatedRate = this.cubicSuccess(this.getCurrentTimeInSeconds()); - } - const newRate = Math.min(calculatedRate, 2 * this.measuredTxRate); - this.updateTokenBucketRate(newRate); - } - calculateTimeWindow() { - this.timeWindow = this.getPrecise(Math.pow((this.lastMaxRate * (1 - this.beta)) / this.scaleConstant, 1 / 3)); - } - cubicThrottle(rateToUse) { - return this.getPrecise(rateToUse * this.beta); - } - cubicSuccess(timestamp) { - return this.getPrecise(this.scaleConstant * Math.pow(timestamp - this.lastThrottleTime - this.timeWindow, 3) + this.lastMaxRate); - } - enableTokenBucket() { - this.enabled = true; - } - updateTokenBucketRate(newRate) { - this.refillTokenBucket(); - this.fillRate = Math.max(newRate, this.minFillRate); - this.maxCapacity = Math.max(newRate, this.minCapacity); - this.currentCapacity = Math.min(this.currentCapacity, this.maxCapacity); - } - updateMeasuredRate() { - const t = this.getCurrentTimeInSeconds(); - const timeBucket = Math.floor(t * 2) / 2; - this.requestCount++; - if (timeBucket > this.lastTxRateBucket) { - const currentRate = this.requestCount / (timeBucket - this.lastTxRateBucket); - this.measuredTxRate = this.getPrecise(currentRate * this.smooth + this.measuredTxRate * (1 - this.smooth)); - this.requestCount = 0; - this.lastTxRateBucket = timeBucket; - } - } - getPrecise(num) { - return parseFloat(num.toFixed(8)); - } -} diff --git a/node_modules/@smithy/util-retry/dist-es/StandardRetryStrategy.js b/node_modules/@smithy/util-retry/dist-es/StandardRetryStrategy.js deleted file mode 100644 index 07adde02..00000000 --- a/node_modules/@smithy/util-retry/dist-es/StandardRetryStrategy.js +++ /dev/null @@ -1,65 +0,0 @@ -import { DEFAULT_MAX_ATTEMPTS, RETRY_MODES } from "./config"; -import { DEFAULT_RETRY_DELAY_BASE, INITIAL_RETRY_TOKENS, NO_RETRY_INCREMENT, RETRY_COST, THROTTLING_RETRY_DELAY_BASE, TIMEOUT_RETRY_COST, } from "./constants"; -import { getDefaultRetryBackoffStrategy } from "./defaultRetryBackoffStrategy"; -import { createDefaultRetryToken } from "./defaultRetryToken"; -export class StandardRetryStrategy { - constructor(maxAttempts) { - this.maxAttempts = maxAttempts; - this.mode = RETRY_MODES.STANDARD; - this.capacity = INITIAL_RETRY_TOKENS; - this.retryBackoffStrategy = getDefaultRetryBackoffStrategy(); - this.maxAttemptsProvider = typeof maxAttempts === "function" ? maxAttempts : async () => maxAttempts; - } - async acquireInitialRetryToken(retryTokenScope) { - return createDefaultRetryToken({ - retryDelay: DEFAULT_RETRY_DELAY_BASE, - retryCount: 0, - }); - } - async refreshRetryTokenForRetry(token, errorInfo) { - const maxAttempts = await this.getMaxAttempts(); - if (this.shouldRetry(token, errorInfo, maxAttempts)) { - const errorType = errorInfo.errorType; - this.retryBackoffStrategy.setDelayBase(errorType === "THROTTLING" ? THROTTLING_RETRY_DELAY_BASE : DEFAULT_RETRY_DELAY_BASE); - const delayFromErrorType = this.retryBackoffStrategy.computeNextBackoffDelay(token.getRetryCount()); - const retryDelay = errorInfo.retryAfterHint - ? Math.max(errorInfo.retryAfterHint.getTime() - Date.now() || 0, delayFromErrorType) - : delayFromErrorType; - const capacityCost = this.getCapacityCost(errorType); - this.capacity -= capacityCost; - return createDefaultRetryToken({ - retryDelay, - retryCount: token.getRetryCount() + 1, - retryCost: capacityCost, - }); - } - throw new Error("No retry token available"); - } - recordSuccess(token) { - this.capacity = Math.max(INITIAL_RETRY_TOKENS, this.capacity + (token.getRetryCost() ?? NO_RETRY_INCREMENT)); - } - getCapacity() { - return this.capacity; - } - async getMaxAttempts() { - try { - return await this.maxAttemptsProvider(); - } - catch (error) { - console.warn(`Max attempts provider could not resolve. Using default of ${DEFAULT_MAX_ATTEMPTS}`); - return DEFAULT_MAX_ATTEMPTS; - } - } - shouldRetry(tokenToRenew, errorInfo, maxAttempts) { - const attempts = tokenToRenew.getRetryCount() + 1; - return (attempts < maxAttempts && - this.capacity >= this.getCapacityCost(errorInfo.errorType) && - this.isRetryableError(errorInfo.errorType)); - } - getCapacityCost(errorType) { - return errorType === "TRANSIENT" ? TIMEOUT_RETRY_COST : RETRY_COST; - } - isRetryableError(errorType) { - return errorType === "THROTTLING" || errorType === "TRANSIENT"; - } -} diff --git a/node_modules/@smithy/util-retry/dist-es/config.js b/node_modules/@smithy/util-retry/dist-es/config.js deleted file mode 100644 index 438d42da..00000000 --- a/node_modules/@smithy/util-retry/dist-es/config.js +++ /dev/null @@ -1,7 +0,0 @@ -export var RETRY_MODES; -(function (RETRY_MODES) { - RETRY_MODES["STANDARD"] = "standard"; - RETRY_MODES["ADAPTIVE"] = "adaptive"; -})(RETRY_MODES || (RETRY_MODES = {})); -export const DEFAULT_MAX_ATTEMPTS = 3; -export const DEFAULT_RETRY_MODE = RETRY_MODES.STANDARD; diff --git a/node_modules/@smithy/util-retry/dist-es/constants.js b/node_modules/@smithy/util-retry/dist-es/constants.js deleted file mode 100644 index 0876f8e2..00000000 --- a/node_modules/@smithy/util-retry/dist-es/constants.js +++ /dev/null @@ -1,9 +0,0 @@ -export const DEFAULT_RETRY_DELAY_BASE = 100; -export const MAXIMUM_RETRY_DELAY = 20 * 1000; -export const THROTTLING_RETRY_DELAY_BASE = 500; -export const INITIAL_RETRY_TOKENS = 500; -export const RETRY_COST = 5; -export const TIMEOUT_RETRY_COST = 10; -export const NO_RETRY_INCREMENT = 1; -export const INVOCATION_ID_HEADER = "amz-sdk-invocation-id"; -export const REQUEST_HEADER = "amz-sdk-request"; diff --git a/node_modules/@smithy/util-retry/dist-es/defaultRetryBackoffStrategy.js b/node_modules/@smithy/util-retry/dist-es/defaultRetryBackoffStrategy.js deleted file mode 100644 index ce04bc5e..00000000 --- a/node_modules/@smithy/util-retry/dist-es/defaultRetryBackoffStrategy.js +++ /dev/null @@ -1,14 +0,0 @@ -import { DEFAULT_RETRY_DELAY_BASE, MAXIMUM_RETRY_DELAY } from "./constants"; -export const getDefaultRetryBackoffStrategy = () => { - let delayBase = DEFAULT_RETRY_DELAY_BASE; - const computeNextBackoffDelay = (attempts) => { - return Math.floor(Math.min(MAXIMUM_RETRY_DELAY, Math.random() * 2 ** attempts * delayBase)); - }; - const setDelayBase = (delay) => { - delayBase = delay; - }; - return { - computeNextBackoffDelay, - setDelayBase, - }; -}; diff --git a/node_modules/@smithy/util-retry/dist-es/defaultRetryToken.js b/node_modules/@smithy/util-retry/dist-es/defaultRetryToken.js deleted file mode 100644 index 203bb662..00000000 --- a/node_modules/@smithy/util-retry/dist-es/defaultRetryToken.js +++ /dev/null @@ -1,11 +0,0 @@ -import { MAXIMUM_RETRY_DELAY } from "./constants"; -export const createDefaultRetryToken = ({ retryDelay, retryCount, retryCost, }) => { - const getRetryCount = () => retryCount; - const getRetryDelay = () => Math.min(MAXIMUM_RETRY_DELAY, retryDelay); - const getRetryCost = () => retryCost; - return { - getRetryCount, - getRetryDelay, - getRetryCost, - }; -}; diff --git a/node_modules/@smithy/util-retry/dist-es/index.js b/node_modules/@smithy/util-retry/dist-es/index.js deleted file mode 100644 index 8637ced0..00000000 --- a/node_modules/@smithy/util-retry/dist-es/index.js +++ /dev/null @@ -1,7 +0,0 @@ -export * from "./AdaptiveRetryStrategy"; -export * from "./ConfiguredRetryStrategy"; -export * from "./DefaultRateLimiter"; -export * from "./StandardRetryStrategy"; -export * from "./config"; -export * from "./constants"; -export * from "./types"; diff --git a/node_modules/@smithy/util-retry/dist-es/types.js b/node_modules/@smithy/util-retry/dist-es/types.js deleted file mode 100644 index cb0ff5c3..00000000 --- a/node_modules/@smithy/util-retry/dist-es/types.js +++ /dev/null @@ -1 +0,0 @@ -export {}; diff --git a/node_modules/@smithy/util-retry/dist-types/AdaptiveRetryStrategy.d.ts b/node_modules/@smithy/util-retry/dist-types/AdaptiveRetryStrategy.d.ts deleted file mode 100644 index 80925193..00000000 --- a/node_modules/@smithy/util-retry/dist-types/AdaptiveRetryStrategy.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { Provider, RetryErrorInfo, RetryStrategyV2, RetryToken, StandardRetryToken } from "@smithy/types"; -import { RateLimiter } from "./types"; -/** - * @public - * - * Strategy options to be passed to AdaptiveRetryStrategy - */ -export interface AdaptiveRetryStrategyOptions { - rateLimiter?: RateLimiter; -} -/** - * @public - * - * The AdaptiveRetryStrategy is a retry strategy for executing against a very - * resource constrained set of resources. Care should be taken when using this - * retry strategy. By default, it uses a dynamic backoff delay based on load - * currently perceived against the downstream resource and performs circuit - * breaking to disable retries in the event of high downstream failures using - * the DefaultRateLimiter. - * - * @see {@link StandardRetryStrategy} - * @see {@link DefaultRateLimiter } - */ -export declare class AdaptiveRetryStrategy implements RetryStrategyV2 { - private readonly maxAttemptsProvider; - private rateLimiter; - private standardRetryStrategy; - readonly mode: string; - constructor(maxAttemptsProvider: Provider, options?: AdaptiveRetryStrategyOptions); - acquireInitialRetryToken(retryTokenScope: string): Promise; - refreshRetryTokenForRetry(tokenToRenew: StandardRetryToken, errorInfo: RetryErrorInfo): Promise; - recordSuccess(token: StandardRetryToken): void; -} diff --git a/node_modules/@smithy/util-retry/dist-types/ConfiguredRetryStrategy.d.ts b/node_modules/@smithy/util-retry/dist-types/ConfiguredRetryStrategy.d.ts deleted file mode 100644 index 3250c6d5..00000000 --- a/node_modules/@smithy/util-retry/dist-types/ConfiguredRetryStrategy.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -import type { Provider, RetryBackoffStrategy, RetryErrorInfo, RetryStrategyV2, StandardRetryToken } from "@smithy/types"; -import { StandardRetryStrategy } from "./StandardRetryStrategy"; -/** - * @public - * - * This extension of the StandardRetryStrategy allows customizing the - * backoff computation. - */ -export declare class ConfiguredRetryStrategy extends StandardRetryStrategy implements RetryStrategyV2 { - private readonly computeNextBackoffDelay; - /** - * @param maxAttempts - the maximum number of retry attempts allowed. - * e.g., if set to 3, then 4 total requests are possible. - * @param computeNextBackoffDelay - a millisecond delay for each retry or a function that takes the retry attempt - * and returns the delay. - * - * @example exponential backoff. - * ```js - * new Client({ - * retryStrategy: new ConfiguredRetryStrategy(3, (attempt) => attempt ** 2) - * }); - * ``` - * @example constant delay. - * ```js - * new Client({ - * retryStrategy: new ConfiguredRetryStrategy(3, 2000) - * }); - * ``` - */ - constructor(maxAttempts: number | Provider, computeNextBackoffDelay?: number | RetryBackoffStrategy["computeNextBackoffDelay"]); - refreshRetryTokenForRetry(tokenToRenew: StandardRetryToken, errorInfo: RetryErrorInfo): Promise; -} diff --git a/node_modules/@smithy/util-retry/dist-types/DefaultRateLimiter.d.ts b/node_modules/@smithy/util-retry/dist-types/DefaultRateLimiter.d.ts deleted file mode 100644 index 97e3b83b..00000000 --- a/node_modules/@smithy/util-retry/dist-types/DefaultRateLimiter.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -import { RateLimiter } from "./types"; -/** - * @public - */ -export interface DefaultRateLimiterOptions { - beta?: number; - minCapacity?: number; - minFillRate?: number; - scaleConstant?: number; - smooth?: number; -} -/** - * @public - */ -export declare class DefaultRateLimiter implements RateLimiter { - private beta; - private minCapacity; - private minFillRate; - private scaleConstant; - private smooth; - private currentCapacity; - private enabled; - private lastMaxRate; - private measuredTxRate; - private requestCount; - private fillRate; - private lastThrottleTime; - private lastTimestamp; - private lastTxRateBucket; - private maxCapacity; - private timeWindow; - constructor(options?: DefaultRateLimiterOptions); - private getCurrentTimeInSeconds; - getSendToken(): Promise; - private acquireTokenBucket; - private refillTokenBucket; - updateClientSendingRate(response: any): void; - private calculateTimeWindow; - private cubicThrottle; - private cubicSuccess; - private enableTokenBucket; - private updateTokenBucketRate; - private updateMeasuredRate; - private getPrecise; -} diff --git a/node_modules/@smithy/util-retry/dist-types/StandardRetryStrategy.d.ts b/node_modules/@smithy/util-retry/dist-types/StandardRetryStrategy.d.ts deleted file mode 100644 index c100ebca..00000000 --- a/node_modules/@smithy/util-retry/dist-types/StandardRetryStrategy.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { Provider, RetryErrorInfo, RetryStrategyV2, StandardRetryToken } from "@smithy/types"; -/** - * @public - */ -export declare class StandardRetryStrategy implements RetryStrategyV2 { - private readonly maxAttempts; - readonly mode: string; - private capacity; - private readonly retryBackoffStrategy; - private readonly maxAttemptsProvider; - constructor(maxAttempts: number); - constructor(maxAttemptsProvider: Provider); - acquireInitialRetryToken(retryTokenScope: string): Promise; - refreshRetryTokenForRetry(token: StandardRetryToken, errorInfo: RetryErrorInfo): Promise; - recordSuccess(token: StandardRetryToken): void; - /** - * @returns the current available retry capacity. - * - * This number decreases when retries are executed and refills when requests or retries succeed. - */ - getCapacity(): number; - private getMaxAttempts; - private shouldRetry; - private getCapacityCost; - private isRetryableError; -} diff --git a/node_modules/@smithy/util-retry/dist-types/config.d.ts b/node_modules/@smithy/util-retry/dist-types/config.d.ts deleted file mode 100644 index e4e74b3a..00000000 --- a/node_modules/@smithy/util-retry/dist-types/config.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * @public - */ -export declare enum RETRY_MODES { - STANDARD = "standard", - ADAPTIVE = "adaptive" -} -/** - * @public - * - * The default value for how many HTTP requests an SDK should make for a - * single SDK operation invocation before giving up - */ -export declare const DEFAULT_MAX_ATTEMPTS = 3; -/** - * @public - * - * The default retry algorithm to use. - */ -export declare const DEFAULT_RETRY_MODE = RETRY_MODES.STANDARD; diff --git a/node_modules/@smithy/util-retry/dist-types/constants.d.ts b/node_modules/@smithy/util-retry/dist-types/constants.d.ts deleted file mode 100644 index bc7fec85..00000000 --- a/node_modules/@smithy/util-retry/dist-types/constants.d.ts +++ /dev/null @@ -1,59 +0,0 @@ -/** - * @public - * - * The base number of milliseconds to use in calculating a suitable cool-down - * time when a retryable error is encountered. - */ -export declare const DEFAULT_RETRY_DELAY_BASE = 100; -/** - * @public - * - * The maximum amount of time (in milliseconds) that will be used as a delay - * between retry attempts. - */ -export declare const MAXIMUM_RETRY_DELAY: number; -/** - * @public - * - * The retry delay base (in milliseconds) to use when a throttling error is - * encountered. - */ -export declare const THROTTLING_RETRY_DELAY_BASE = 500; -/** - * @public - * - * Initial number of retry tokens in Retry Quota - */ -export declare const INITIAL_RETRY_TOKENS = 500; -/** - * @public - * - * The total amount of retry tokens to be decremented from retry token balance. - */ -export declare const RETRY_COST = 5; -/** - * @public - * - * The total amount of retry tokens to be decremented from retry token balance - * when a throttling error is encountered. - */ -export declare const TIMEOUT_RETRY_COST = 10; -/** - * @public - * - * The total amount of retry token to be incremented from retry token balance - * if an SDK operation invocation succeeds without requiring a retry request. - */ -export declare const NO_RETRY_INCREMENT = 1; -/** - * @public - * - * Header name for SDK invocation ID - */ -export declare const INVOCATION_ID_HEADER = "amz-sdk-invocation-id"; -/** - * @public - * - * Header name for request retry information. - */ -export declare const REQUEST_HEADER = "amz-sdk-request"; diff --git a/node_modules/@smithy/util-retry/dist-types/defaultRetryBackoffStrategy.d.ts b/node_modules/@smithy/util-retry/dist-types/defaultRetryBackoffStrategy.d.ts deleted file mode 100644 index b70eb2dd..00000000 --- a/node_modules/@smithy/util-retry/dist-types/defaultRetryBackoffStrategy.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { StandardRetryBackoffStrategy } from "@smithy/types"; -/** - * @internal - */ -export declare const getDefaultRetryBackoffStrategy: () => StandardRetryBackoffStrategy; diff --git a/node_modules/@smithy/util-retry/dist-types/defaultRetryToken.d.ts b/node_modules/@smithy/util-retry/dist-types/defaultRetryToken.d.ts deleted file mode 100644 index 947b68fa..00000000 --- a/node_modules/@smithy/util-retry/dist-types/defaultRetryToken.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { StandardRetryToken } from "@smithy/types"; -/** - * @internal - */ -export declare const createDefaultRetryToken: ({ retryDelay, retryCount, retryCost, }: { - retryDelay: number; - retryCount: number; - retryCost?: number | undefined; -}) => StandardRetryToken; diff --git a/node_modules/@smithy/util-retry/dist-types/index.d.ts b/node_modules/@smithy/util-retry/dist-types/index.d.ts deleted file mode 100644 index 8637ced0..00000000 --- a/node_modules/@smithy/util-retry/dist-types/index.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -export * from "./AdaptiveRetryStrategy"; -export * from "./ConfiguredRetryStrategy"; -export * from "./DefaultRateLimiter"; -export * from "./StandardRetryStrategy"; -export * from "./config"; -export * from "./constants"; -export * from "./types"; diff --git a/node_modules/@smithy/util-retry/dist-types/ts3.4/AdaptiveRetryStrategy.d.ts b/node_modules/@smithy/util-retry/dist-types/ts3.4/AdaptiveRetryStrategy.d.ts deleted file mode 100644 index f6b0ef41..00000000 --- a/node_modules/@smithy/util-retry/dist-types/ts3.4/AdaptiveRetryStrategy.d.ts +++ /dev/null @@ -1,33 +0,0 @@ -import { Provider, RetryErrorInfo, RetryStrategyV2, RetryToken, StandardRetryToken } from "@smithy/types"; -import { RateLimiter } from "./types"; -/** - * @public - * - * Strategy options to be passed to AdaptiveRetryStrategy - */ -export interface AdaptiveRetryStrategyOptions { - rateLimiter?: RateLimiter; -} -/** - * @public - * - * The AdaptiveRetryStrategy is a retry strategy for executing against a very - * resource constrained set of resources. Care should be taken when using this - * retry strategy. By default, it uses a dynamic backoff delay based on load - * currently perceived against the downstream resource and performs circuit - * breaking to disable retries in the event of high downstream failures using - * the DefaultRateLimiter. - * - * @see {@link StandardRetryStrategy} - * @see {@link DefaultRateLimiter } - */ -export declare class AdaptiveRetryStrategy implements RetryStrategyV2 { - private readonly maxAttemptsProvider; - private rateLimiter; - private standardRetryStrategy; - readonly mode: string; - constructor(maxAttemptsProvider: Provider, options?: AdaptiveRetryStrategyOptions); - acquireInitialRetryToken(retryTokenScope: string): Promise; - refreshRetryTokenForRetry(tokenToRenew: StandardRetryToken, errorInfo: RetryErrorInfo): Promise; - recordSuccess(token: StandardRetryToken): void; -} diff --git a/node_modules/@smithy/util-retry/dist-types/ts3.4/ConfiguredRetryStrategy.d.ts b/node_modules/@smithy/util-retry/dist-types/ts3.4/ConfiguredRetryStrategy.d.ts deleted file mode 100644 index 7df29833..00000000 --- a/node_modules/@smithy/util-retry/dist-types/ts3.4/ConfiguredRetryStrategy.d.ts +++ /dev/null @@ -1,32 +0,0 @@ -import { Provider, RetryBackoffStrategy, RetryErrorInfo, RetryStrategyV2, StandardRetryToken } from "@smithy/types"; -import { StandardRetryStrategy } from "./StandardRetryStrategy"; -/** - * @public - * - * This extension of the StandardRetryStrategy allows customizing the - * backoff computation. - */ -export declare class ConfiguredRetryStrategy extends StandardRetryStrategy implements RetryStrategyV2 { - private readonly computeNextBackoffDelay; - /** - * @param maxAttempts - the maximum number of retry attempts allowed. - * e.g., if set to 3, then 4 total requests are possible. - * @param computeNextBackoffDelay - a millisecond delay for each retry or a function that takes the retry attempt - * and returns the delay. - * - * @example exponential backoff. - * ```js - * new Client({ - * retryStrategy: new ConfiguredRetryStrategy(3, (attempt) => attempt ** 2) - * }); - * ``` - * @example constant delay. - * ```js - * new Client({ - * retryStrategy: new ConfiguredRetryStrategy(3, 2000) - * }); - * ``` - */ - constructor(maxAttempts: number | Provider, computeNextBackoffDelay?: number | RetryBackoffStrategy["computeNextBackoffDelay"]); - refreshRetryTokenForRetry(tokenToRenew: StandardRetryToken, errorInfo: RetryErrorInfo): Promise; -} diff --git a/node_modules/@smithy/util-retry/dist-types/ts3.4/DefaultRateLimiter.d.ts b/node_modules/@smithy/util-retry/dist-types/ts3.4/DefaultRateLimiter.d.ts deleted file mode 100644 index 48679097..00000000 --- a/node_modules/@smithy/util-retry/dist-types/ts3.4/DefaultRateLimiter.d.ts +++ /dev/null @@ -1,45 +0,0 @@ -import { RateLimiter } from "./types"; -/** - * @public - */ -export interface DefaultRateLimiterOptions { - beta?: number; - minCapacity?: number; - minFillRate?: number; - scaleConstant?: number; - smooth?: number; -} -/** - * @public - */ -export declare class DefaultRateLimiter implements RateLimiter { - private beta; - private minCapacity; - private minFillRate; - private scaleConstant; - private smooth; - private currentCapacity; - private enabled; - private lastMaxRate; - private measuredTxRate; - private requestCount; - private fillRate; - private lastThrottleTime; - private lastTimestamp; - private lastTxRateBucket; - private maxCapacity; - private timeWindow; - constructor(options?: DefaultRateLimiterOptions); - private getCurrentTimeInSeconds; - getSendToken(): Promise; - private acquireTokenBucket; - private refillTokenBucket; - updateClientSendingRate(response: any): void; - private calculateTimeWindow; - private cubicThrottle; - private cubicSuccess; - private enableTokenBucket; - private updateTokenBucketRate; - private updateMeasuredRate; - private getPrecise; -} diff --git a/node_modules/@smithy/util-retry/dist-types/ts3.4/StandardRetryStrategy.d.ts b/node_modules/@smithy/util-retry/dist-types/ts3.4/StandardRetryStrategy.d.ts deleted file mode 100644 index c22f8b84..00000000 --- a/node_modules/@smithy/util-retry/dist-types/ts3.4/StandardRetryStrategy.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -import { Provider, RetryErrorInfo, RetryStrategyV2, StandardRetryToken } from "@smithy/types"; -/** - * @public - */ -export declare class StandardRetryStrategy implements RetryStrategyV2 { - private readonly maxAttempts; - readonly mode: string; - private capacity; - private readonly retryBackoffStrategy; - private readonly maxAttemptsProvider; - constructor(maxAttempts: number); - constructor(maxAttemptsProvider: Provider); - acquireInitialRetryToken(retryTokenScope: string): Promise; - refreshRetryTokenForRetry(token: StandardRetryToken, errorInfo: RetryErrorInfo): Promise; - recordSuccess(token: StandardRetryToken): void; - /** - * @returns the current available retry capacity. - * - * This number decreases when retries are executed and refills when requests or retries succeed. - */ - getCapacity(): number; - private getMaxAttempts; - private shouldRetry; - private getCapacityCost; - private isRetryableError; -} diff --git a/node_modules/@smithy/util-retry/dist-types/ts3.4/config.d.ts b/node_modules/@smithy/util-retry/dist-types/ts3.4/config.d.ts deleted file mode 100644 index 6727a380..00000000 --- a/node_modules/@smithy/util-retry/dist-types/ts3.4/config.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -/** - * @public - */ -export declare enum RETRY_MODES { - STANDARD = "standard", - ADAPTIVE = "adaptive" -} -/** - * @public - * - * The default value for how many HTTP requests an SDK should make for a - * single SDK operation invocation before giving up - */ -export declare const DEFAULT_MAX_ATTEMPTS = 3; -/** - * @public - * - * The default retry algorithm to use. - */ -export declare const DEFAULT_RETRY_MODE = RETRY_MODES.STANDARD; diff --git a/node_modules/@smithy/util-retry/dist-types/ts3.4/constants.d.ts b/node_modules/@smithy/util-retry/dist-types/ts3.4/constants.d.ts deleted file mode 100644 index 5c1a5ce2..00000000 --- a/node_modules/@smithy/util-retry/dist-types/ts3.4/constants.d.ts +++ /dev/null @@ -1,59 +0,0 @@ -/** - * @public - * - * The base number of milliseconds to use in calculating a suitable cool-down - * time when a retryable error is encountered. - */ -export declare const DEFAULT_RETRY_DELAY_BASE = 100; -/** - * @public - * - * The maximum amount of time (in milliseconds) that will be used as a delay - * between retry attempts. - */ -export declare const MAXIMUM_RETRY_DELAY: number; -/** - * @public - * - * The retry delay base (in milliseconds) to use when a throttling error is - * encountered. - */ -export declare const THROTTLING_RETRY_DELAY_BASE = 500; -/** - * @public - * - * Initial number of retry tokens in Retry Quota - */ -export declare const INITIAL_RETRY_TOKENS = 500; -/** - * @public - * - * The total amount of retry tokens to be decremented from retry token balance. - */ -export declare const RETRY_COST = 5; -/** - * @public - * - * The total amount of retry tokens to be decremented from retry token balance - * when a throttling error is encountered. - */ -export declare const TIMEOUT_RETRY_COST = 10; -/** - * @public - * - * The total amount of retry token to be incremented from retry token balance - * if an SDK operation invocation succeeds without requiring a retry request. - */ -export declare const NO_RETRY_INCREMENT = 1; -/** - * @public - * - * Header name for SDK invocation ID - */ -export declare const INVOCATION_ID_HEADER = "amz-sdk-invocation-id"; -/** - * @public - * - * Header name for request retry information. - */ -export declare const REQUEST_HEADER = "amz-sdk-request"; diff --git a/node_modules/@smithy/util-retry/dist-types/ts3.4/defaultRetryBackoffStrategy.d.ts b/node_modules/@smithy/util-retry/dist-types/ts3.4/defaultRetryBackoffStrategy.d.ts deleted file mode 100644 index 1d632caa..00000000 --- a/node_modules/@smithy/util-retry/dist-types/ts3.4/defaultRetryBackoffStrategy.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { StandardRetryBackoffStrategy } from "@smithy/types"; -/** - * @internal - */ -export declare const getDefaultRetryBackoffStrategy: () => StandardRetryBackoffStrategy; diff --git a/node_modules/@smithy/util-retry/dist-types/ts3.4/defaultRetryToken.d.ts b/node_modules/@smithy/util-retry/dist-types/ts3.4/defaultRetryToken.d.ts deleted file mode 100644 index fd4b75e6..00000000 --- a/node_modules/@smithy/util-retry/dist-types/ts3.4/defaultRetryToken.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { StandardRetryToken } from "@smithy/types"; -/** - * @internal - */ -export declare const createDefaultRetryToken: ({ retryDelay, retryCount, retryCost, }: { - retryDelay: number; - retryCount: number; - retryCost?: number | undefined; -}) => StandardRetryToken; diff --git a/node_modules/@smithy/util-retry/dist-types/ts3.4/index.d.ts b/node_modules/@smithy/util-retry/dist-types/ts3.4/index.d.ts deleted file mode 100644 index de9af3d9..00000000 --- a/node_modules/@smithy/util-retry/dist-types/ts3.4/index.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -export * from "./AdaptiveRetryStrategy"; -export * from "./ConfiguredRetryStrategy"; -export * from "./DefaultRateLimiter"; -export * from "./StandardRetryStrategy"; -export * from "./config"; -export * from "./constants"; -export * from "./types"; diff --git a/node_modules/@smithy/util-retry/dist-types/ts3.4/types.d.ts b/node_modules/@smithy/util-retry/dist-types/ts3.4/types.d.ts deleted file mode 100644 index 5a20c01b..00000000 --- a/node_modules/@smithy/util-retry/dist-types/ts3.4/types.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * @internal - */ -export interface RateLimiter { - /** - * If there is sufficient capacity (tokens) available, it immediately returns. - * If there is not sufficient capacity, it will either sleep a certain amount - * of time until the rate limiter can retrieve a token from its token bucket - * or raise an exception indicating there is insufficient capacity. - */ - getSendToken: () => Promise; - /** - * Updates the client sending rate based on response. - * If the response was successful, the capacity and fill rate are increased. - * If the response was a throttling response, the capacity and fill rate are - * decreased. Transient errors do not affect the rate limiter. - */ - updateClientSendingRate: (response: any) => void; -} diff --git a/node_modules/@smithy/util-retry/dist-types/types.d.ts b/node_modules/@smithy/util-retry/dist-types/types.d.ts deleted file mode 100644 index b3f2bd14..00000000 --- a/node_modules/@smithy/util-retry/dist-types/types.d.ts +++ /dev/null @@ -1,19 +0,0 @@ -/** - * @internal - */ -export interface RateLimiter { - /** - * If there is sufficient capacity (tokens) available, it immediately returns. - * If there is not sufficient capacity, it will either sleep a certain amount - * of time until the rate limiter can retrieve a token from its token bucket - * or raise an exception indicating there is insufficient capacity. - */ - getSendToken: () => Promise; - /** - * Updates the client sending rate based on response. - * If the response was successful, the capacity and fill rate are increased. - * If the response was a throttling response, the capacity and fill rate are - * decreased. Transient errors do not affect the rate limiter. - */ - updateClientSendingRate: (response: any) => void; -} diff --git a/node_modules/@smithy/util-retry/package.json b/node_modules/@smithy/util-retry/package.json deleted file mode 100644 index f0077691..00000000 --- a/node_modules/@smithy/util-retry/package.json +++ /dev/null @@ -1,68 +0,0 @@ -{ - "name": "@smithy/util-retry", - "version": "2.0.7", - "description": "Shared retry utilities to be used in middleware packages.", - "main": "./dist-cjs/index.js", - "module": "./dist-es/index.js", - "scripts": { - "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", - "build:cjs": "yarn g:tsc -p tsconfig.cjs.json", - "build:es": "yarn g:tsc -p tsconfig.es.json", - "build:types": "yarn g:tsc -p tsconfig.types.json", - "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", - "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz", - "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"", - "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"", - "extract:docs": "api-extractor run --local", - "test": "yarn g:jest" - }, - "keywords": [ - "aws", - "retry" - ], - "author": { - "name": "AWS SDK for JavaScript Team", - "url": "https://aws.amazon.com/javascript/" - }, - "license": "Apache-2.0", - "dependencies": { - "@smithy/service-error-classification": "^2.0.7", - "@smithy/types": "^2.6.0", - "tslib": "^2.5.0" - }, - "devDependencies": { - "@tsconfig/recommended": "1.0.1", - "@types/node": "^14.14.31", - "concurrently": "7.0.0", - "downlevel-dts": "0.10.1", - "rimraf": "3.0.2", - "typedoc": "0.23.23" - }, - "types": "./dist-types/index.d.ts", - "engines": { - "node": ">= 14.0.0" - }, - "typesVersions": { - "<4.0": { - "types/*": [ - "types/ts3.4/*" - ] - } - }, - "files": [ - "dist-*/**" - ], - "homepage": "https://github.com/awslabs/smithy-typescript/tree/master/packages/util-retry", - "repository": { - "type": "git", - "url": "https://github.com/awslabs/smithy-typescript.git", - "directory": "packages/util-retry" - }, - "typedoc": { - "entryPoint": "src/index.ts" - }, - "publishConfig": { - "directory": ".release/package" - } -} \ No newline at end of file diff --git a/node_modules/@smithy/util-stream/LICENSE b/node_modules/@smithy/util-stream/LICENSE deleted file mode 100644 index 7b6491ba..00000000 --- a/node_modules/@smithy/util-stream/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. \ No newline at end of file diff --git a/node_modules/@smithy/util-stream/README.md b/node_modules/@smithy/util-stream/README.md deleted file mode 100644 index 6fcd9f6e..00000000 --- a/node_modules/@smithy/util-stream/README.md +++ /dev/null @@ -1,6 +0,0 @@ -# @smithy/util-stream - -[![NPM version](https://img.shields.io/npm/v/@smithy/util-stream/latest.svg)](https://www.npmjs.com/package/@smithy/util-stream) -[![NPM downloads](https://img.shields.io/npm/dm/@smithy/util-stream.svg)](https://www.npmjs.com/package/@smithy/util-stream) - -Package with utilities to operate on streams. diff --git a/node_modules/@smithy/util-stream/dist-cjs/blob/Uint8ArrayBlobAdapter.js b/node_modules/@smithy/util-stream/dist-cjs/blob/Uint8ArrayBlobAdapter.js deleted file mode 100644 index 1fc02c3d..00000000 --- a/node_modules/@smithy/util-stream/dist-cjs/blob/Uint8ArrayBlobAdapter.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.Uint8ArrayBlobAdapter = void 0; -const transforms_1 = require("./transforms"); -class Uint8ArrayBlobAdapter extends Uint8Array { - static fromString(source, encoding = "utf-8") { - switch (typeof source) { - case "string": - return (0, transforms_1.transformFromString)(source, encoding); - default: - throw new Error(`Unsupported conversion from ${typeof source} to Uint8ArrayBlobAdapter.`); - } - } - static mutate(source) { - Object.setPrototypeOf(source, Uint8ArrayBlobAdapter.prototype); - return source; - } - transformToString(encoding = "utf-8") { - return (0, transforms_1.transformToString)(this, encoding); - } -} -exports.Uint8ArrayBlobAdapter = Uint8ArrayBlobAdapter; diff --git a/node_modules/@smithy/util-stream/dist-cjs/blob/transforms.js b/node_modules/@smithy/util-stream/dist-cjs/blob/transforms.js deleted file mode 100644 index 6a342a6e..00000000 --- a/node_modules/@smithy/util-stream/dist-cjs/blob/transforms.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.transformFromString = exports.transformToString = void 0; -const util_base64_1 = require("@smithy/util-base64"); -const util_utf8_1 = require("@smithy/util-utf8"); -const Uint8ArrayBlobAdapter_1 = require("./Uint8ArrayBlobAdapter"); -function transformToString(payload, encoding = "utf-8") { - if (encoding === "base64") { - return (0, util_base64_1.toBase64)(payload); - } - return (0, util_utf8_1.toUtf8)(payload); -} -exports.transformToString = transformToString; -function transformFromString(str, encoding) { - if (encoding === "base64") { - return Uint8ArrayBlobAdapter_1.Uint8ArrayBlobAdapter.mutate((0, util_base64_1.fromBase64)(str)); - } - return Uint8ArrayBlobAdapter_1.Uint8ArrayBlobAdapter.mutate((0, util_utf8_1.fromUtf8)(str)); -} -exports.transformFromString = transformFromString; diff --git a/node_modules/@smithy/util-stream/dist-cjs/getAwsChunkedEncodingStream.browser.js b/node_modules/@smithy/util-stream/dist-cjs/getAwsChunkedEncodingStream.browser.js deleted file mode 100644 index d8e540c2..00000000 --- a/node_modules/@smithy/util-stream/dist-cjs/getAwsChunkedEncodingStream.browser.js +++ /dev/null @@ -1,31 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getAwsChunkedEncodingStream = void 0; -const getAwsChunkedEncodingStream = (readableStream, options) => { - const { base64Encoder, bodyLengthChecker, checksumAlgorithmFn, checksumLocationName, streamHasher } = options; - const checksumRequired = base64Encoder !== undefined && - bodyLengthChecker !== undefined && - checksumAlgorithmFn !== undefined && - checksumLocationName !== undefined && - streamHasher !== undefined; - const digest = checksumRequired ? streamHasher(checksumAlgorithmFn, readableStream) : undefined; - const reader = readableStream.getReader(); - return new ReadableStream({ - async pull(controller) { - const { value, done } = await reader.read(); - if (done) { - controller.enqueue(`0\r\n`); - if (checksumRequired) { - const checksum = base64Encoder(await digest); - controller.enqueue(`${checksumLocationName}:${checksum}\r\n`); - controller.enqueue(`\r\n`); - } - controller.close(); - } - else { - controller.enqueue(`${(bodyLengthChecker(value) || 0).toString(16)}\r\n${value}\r\n`); - } - }, - }); -}; -exports.getAwsChunkedEncodingStream = getAwsChunkedEncodingStream; diff --git a/node_modules/@smithy/util-stream/dist-cjs/getAwsChunkedEncodingStream.js b/node_modules/@smithy/util-stream/dist-cjs/getAwsChunkedEncodingStream.js deleted file mode 100644 index 4f3f9e73..00000000 --- a/node_modules/@smithy/util-stream/dist-cjs/getAwsChunkedEncodingStream.js +++ /dev/null @@ -1,30 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.getAwsChunkedEncodingStream = void 0; -const stream_1 = require("stream"); -const getAwsChunkedEncodingStream = (readableStream, options) => { - const { base64Encoder, bodyLengthChecker, checksumAlgorithmFn, checksumLocationName, streamHasher } = options; - const checksumRequired = base64Encoder !== undefined && - checksumAlgorithmFn !== undefined && - checksumLocationName !== undefined && - streamHasher !== undefined; - const digest = checksumRequired ? streamHasher(checksumAlgorithmFn, readableStream) : undefined; - const awsChunkedEncodingStream = new stream_1.Readable({ read: () => { } }); - readableStream.on("data", (data) => { - const length = bodyLengthChecker(data) || 0; - awsChunkedEncodingStream.push(`${length.toString(16)}\r\n`); - awsChunkedEncodingStream.push(data); - awsChunkedEncodingStream.push("\r\n"); - }); - readableStream.on("end", async () => { - awsChunkedEncodingStream.push(`0\r\n`); - if (checksumRequired) { - const checksum = base64Encoder(await digest); - awsChunkedEncodingStream.push(`${checksumLocationName}:${checksum}\r\n`); - awsChunkedEncodingStream.push(`\r\n`); - } - awsChunkedEncodingStream.push(null); - }); - return awsChunkedEncodingStream; -}; -exports.getAwsChunkedEncodingStream = getAwsChunkedEncodingStream; diff --git a/node_modules/@smithy/util-stream/dist-cjs/index.js b/node_modules/@smithy/util-stream/dist-cjs/index.js deleted file mode 100644 index 3f36550e..00000000 --- a/node_modules/@smithy/util-stream/dist-cjs/index.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./blob/Uint8ArrayBlobAdapter"), exports); -tslib_1.__exportStar(require("./getAwsChunkedEncodingStream"), exports); -tslib_1.__exportStar(require("./sdk-stream-mixin"), exports); diff --git a/node_modules/@smithy/util-stream/dist-cjs/sdk-stream-mixin.browser.js b/node_modules/@smithy/util-stream/dist-cjs/sdk-stream-mixin.browser.js deleted file mode 100644 index 3f34f0d4..00000000 --- a/node_modules/@smithy/util-stream/dist-cjs/sdk-stream-mixin.browser.js +++ /dev/null @@ -1,69 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.sdkStreamMixin = void 0; -const fetch_http_handler_1 = require("@smithy/fetch-http-handler"); -const util_base64_1 = require("@smithy/util-base64"); -const util_hex_encoding_1 = require("@smithy/util-hex-encoding"); -const util_utf8_1 = require("@smithy/util-utf8"); -const ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED = "The stream has already been transformed."; -const sdkStreamMixin = (stream) => { - var _a, _b; - if (!isBlobInstance(stream) && !isReadableStreamInstance(stream)) { - const name = ((_b = (_a = stream === null || stream === void 0 ? void 0 : stream.__proto__) === null || _a === void 0 ? void 0 : _a.constructor) === null || _b === void 0 ? void 0 : _b.name) || stream; - throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${name}`); - } - let transformed = false; - const transformToByteArray = async () => { - if (transformed) { - throw new Error(ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED); - } - transformed = true; - return await (0, fetch_http_handler_1.streamCollector)(stream); - }; - const blobToWebStream = (blob) => { - if (typeof blob.stream !== "function") { - throw new Error("Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.\n" + - "If you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body"); - } - return blob.stream(); - }; - return Object.assign(stream, { - transformToByteArray: transformToByteArray, - transformToString: async (encoding) => { - const buf = await transformToByteArray(); - if (encoding === "base64") { - return (0, util_base64_1.toBase64)(buf); - } - else if (encoding === "hex") { - return (0, util_hex_encoding_1.toHex)(buf); - } - else if (encoding === undefined || encoding === "utf8" || encoding === "utf-8") { - return (0, util_utf8_1.toUtf8)(buf); - } - else if (typeof TextDecoder === "function") { - return new TextDecoder(encoding).decode(buf); - } - else { - throw new Error("TextDecoder is not available, please make sure polyfill is provided."); - } - }, - transformToWebStream: () => { - if (transformed) { - throw new Error(ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED); - } - transformed = true; - if (isBlobInstance(stream)) { - return blobToWebStream(stream); - } - else if (isReadableStreamInstance(stream)) { - return stream; - } - else { - throw new Error(`Cannot transform payload to web stream, got ${stream}`); - } - }, - }); -}; -exports.sdkStreamMixin = sdkStreamMixin; -const isBlobInstance = (stream) => typeof Blob === "function" && stream instanceof Blob; -const isReadableStreamInstance = (stream) => typeof ReadableStream === "function" && stream instanceof ReadableStream; diff --git a/node_modules/@smithy/util-stream/dist-cjs/sdk-stream-mixin.js b/node_modules/@smithy/util-stream/dist-cjs/sdk-stream-mixin.js deleted file mode 100644 index c2af3441..00000000 --- a/node_modules/@smithy/util-stream/dist-cjs/sdk-stream-mixin.js +++ /dev/null @@ -1,50 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.sdkStreamMixin = void 0; -const node_http_handler_1 = require("@smithy/node-http-handler"); -const util_buffer_from_1 = require("@smithy/util-buffer-from"); -const stream_1 = require("stream"); -const util_1 = require("util"); -const ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED = "The stream has already been transformed."; -const sdkStreamMixin = (stream) => { - var _a, _b; - if (!(stream instanceof stream_1.Readable)) { - const name = ((_b = (_a = stream === null || stream === void 0 ? void 0 : stream.__proto__) === null || _a === void 0 ? void 0 : _a.constructor) === null || _b === void 0 ? void 0 : _b.name) || stream; - throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${name}`); - } - let transformed = false; - const transformToByteArray = async () => { - if (transformed) { - throw new Error(ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED); - } - transformed = true; - return await (0, node_http_handler_1.streamCollector)(stream); - }; - return Object.assign(stream, { - transformToByteArray, - transformToString: async (encoding) => { - const buf = await transformToByteArray(); - if (encoding === undefined || Buffer.isEncoding(encoding)) { - return (0, util_buffer_from_1.fromArrayBuffer)(buf.buffer, buf.byteOffset, buf.byteLength).toString(encoding); - } - else { - const decoder = new util_1.TextDecoder(encoding); - return decoder.decode(buf); - } - }, - transformToWebStream: () => { - if (transformed) { - throw new Error(ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED); - } - if (stream.readableFlowing !== null) { - throw new Error("The stream has been consumed by other callbacks."); - } - if (typeof stream_1.Readable.toWeb !== "function") { - throw new Error("Readable.toWeb() is not supported. Please make sure you are using Node.js >= 17.0.0, or polyfill is available."); - } - transformed = true; - return stream_1.Readable.toWeb(stream); - }, - }); -}; -exports.sdkStreamMixin = sdkStreamMixin; diff --git a/node_modules/@smithy/util-stream/dist-es/blob/Uint8ArrayBlobAdapter.js b/node_modules/@smithy/util-stream/dist-es/blob/Uint8ArrayBlobAdapter.js deleted file mode 100644 index 41746b14..00000000 --- a/node_modules/@smithy/util-stream/dist-es/blob/Uint8ArrayBlobAdapter.js +++ /dev/null @@ -1,18 +0,0 @@ -import { transformFromString, transformToString } from "./transforms"; -export class Uint8ArrayBlobAdapter extends Uint8Array { - static fromString(source, encoding = "utf-8") { - switch (typeof source) { - case "string": - return transformFromString(source, encoding); - default: - throw new Error(`Unsupported conversion from ${typeof source} to Uint8ArrayBlobAdapter.`); - } - } - static mutate(source) { - Object.setPrototypeOf(source, Uint8ArrayBlobAdapter.prototype); - return source; - } - transformToString(encoding = "utf-8") { - return transformToString(this, encoding); - } -} diff --git a/node_modules/@smithy/util-stream/dist-es/blob/transforms.js b/node_modules/@smithy/util-stream/dist-es/blob/transforms.js deleted file mode 100644 index 0d1f74a7..00000000 --- a/node_modules/@smithy/util-stream/dist-es/blob/transforms.js +++ /dev/null @@ -1,15 +0,0 @@ -import { fromBase64, toBase64 } from "@smithy/util-base64"; -import { fromUtf8, toUtf8 } from "@smithy/util-utf8"; -import { Uint8ArrayBlobAdapter } from "./Uint8ArrayBlobAdapter"; -export function transformToString(payload, encoding = "utf-8") { - if (encoding === "base64") { - return toBase64(payload); - } - return toUtf8(payload); -} -export function transformFromString(str, encoding) { - if (encoding === "base64") { - return Uint8ArrayBlobAdapter.mutate(fromBase64(str)); - } - return Uint8ArrayBlobAdapter.mutate(fromUtf8(str)); -} diff --git a/node_modules/@smithy/util-stream/dist-es/getAwsChunkedEncodingStream.browser.js b/node_modules/@smithy/util-stream/dist-es/getAwsChunkedEncodingStream.browser.js deleted file mode 100644 index b5d5fa4c..00000000 --- a/node_modules/@smithy/util-stream/dist-es/getAwsChunkedEncodingStream.browser.js +++ /dev/null @@ -1,27 +0,0 @@ -export const getAwsChunkedEncodingStream = (readableStream, options) => { - const { base64Encoder, bodyLengthChecker, checksumAlgorithmFn, checksumLocationName, streamHasher } = options; - const checksumRequired = base64Encoder !== undefined && - bodyLengthChecker !== undefined && - checksumAlgorithmFn !== undefined && - checksumLocationName !== undefined && - streamHasher !== undefined; - const digest = checksumRequired ? streamHasher(checksumAlgorithmFn, readableStream) : undefined; - const reader = readableStream.getReader(); - return new ReadableStream({ - async pull(controller) { - const { value, done } = await reader.read(); - if (done) { - controller.enqueue(`0\r\n`); - if (checksumRequired) { - const checksum = base64Encoder(await digest); - controller.enqueue(`${checksumLocationName}:${checksum}\r\n`); - controller.enqueue(`\r\n`); - } - controller.close(); - } - else { - controller.enqueue(`${(bodyLengthChecker(value) || 0).toString(16)}\r\n${value}\r\n`); - } - }, - }); -}; diff --git a/node_modules/@smithy/util-stream/dist-es/getAwsChunkedEncodingStream.js b/node_modules/@smithy/util-stream/dist-es/getAwsChunkedEncodingStream.js deleted file mode 100644 index 7c55116b..00000000 --- a/node_modules/@smithy/util-stream/dist-es/getAwsChunkedEncodingStream.js +++ /dev/null @@ -1,26 +0,0 @@ -import { Readable } from "stream"; -export const getAwsChunkedEncodingStream = (readableStream, options) => { - const { base64Encoder, bodyLengthChecker, checksumAlgorithmFn, checksumLocationName, streamHasher } = options; - const checksumRequired = base64Encoder !== undefined && - checksumAlgorithmFn !== undefined && - checksumLocationName !== undefined && - streamHasher !== undefined; - const digest = checksumRequired ? streamHasher(checksumAlgorithmFn, readableStream) : undefined; - const awsChunkedEncodingStream = new Readable({ read: () => { } }); - readableStream.on("data", (data) => { - const length = bodyLengthChecker(data) || 0; - awsChunkedEncodingStream.push(`${length.toString(16)}\r\n`); - awsChunkedEncodingStream.push(data); - awsChunkedEncodingStream.push("\r\n"); - }); - readableStream.on("end", async () => { - awsChunkedEncodingStream.push(`0\r\n`); - if (checksumRequired) { - const checksum = base64Encoder(await digest); - awsChunkedEncodingStream.push(`${checksumLocationName}:${checksum}\r\n`); - awsChunkedEncodingStream.push(`\r\n`); - } - awsChunkedEncodingStream.push(null); - }); - return awsChunkedEncodingStream; -}; diff --git a/node_modules/@smithy/util-stream/dist-es/index.js b/node_modules/@smithy/util-stream/dist-es/index.js deleted file mode 100644 index 47bcb14b..00000000 --- a/node_modules/@smithy/util-stream/dist-es/index.js +++ /dev/null @@ -1,3 +0,0 @@ -export * from "./blob/Uint8ArrayBlobAdapter"; -export * from "./getAwsChunkedEncodingStream"; -export * from "./sdk-stream-mixin"; diff --git a/node_modules/@smithy/util-stream/dist-es/sdk-stream-mixin.browser.js b/node_modules/@smithy/util-stream/dist-es/sdk-stream-mixin.browser.js deleted file mode 100644 index bb673de8..00000000 --- a/node_modules/@smithy/util-stream/dist-es/sdk-stream-mixin.browser.js +++ /dev/null @@ -1,64 +0,0 @@ -import { streamCollector } from "@smithy/fetch-http-handler"; -import { toBase64 } from "@smithy/util-base64"; -import { toHex } from "@smithy/util-hex-encoding"; -import { toUtf8 } from "@smithy/util-utf8"; -const ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED = "The stream has already been transformed."; -export const sdkStreamMixin = (stream) => { - if (!isBlobInstance(stream) && !isReadableStreamInstance(stream)) { - const name = stream?.__proto__?.constructor?.name || stream; - throw new Error(`Unexpected stream implementation, expect Blob or ReadableStream, got ${name}`); - } - let transformed = false; - const transformToByteArray = async () => { - if (transformed) { - throw new Error(ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED); - } - transformed = true; - return await streamCollector(stream); - }; - const blobToWebStream = (blob) => { - if (typeof blob.stream !== "function") { - throw new Error("Cannot transform payload Blob to web stream. Please make sure the Blob.stream() is polyfilled.\n" + - "If you are using React Native, this API is not yet supported, see: https://react-native.canny.io/feature-requests/p/fetch-streaming-body"); - } - return blob.stream(); - }; - return Object.assign(stream, { - transformToByteArray: transformToByteArray, - transformToString: async (encoding) => { - const buf = await transformToByteArray(); - if (encoding === "base64") { - return toBase64(buf); - } - else if (encoding === "hex") { - return toHex(buf); - } - else if (encoding === undefined || encoding === "utf8" || encoding === "utf-8") { - return toUtf8(buf); - } - else if (typeof TextDecoder === "function") { - return new TextDecoder(encoding).decode(buf); - } - else { - throw new Error("TextDecoder is not available, please make sure polyfill is provided."); - } - }, - transformToWebStream: () => { - if (transformed) { - throw new Error(ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED); - } - transformed = true; - if (isBlobInstance(stream)) { - return blobToWebStream(stream); - } - else if (isReadableStreamInstance(stream)) { - return stream; - } - else { - throw new Error(`Cannot transform payload to web stream, got ${stream}`); - } - }, - }); -}; -const isBlobInstance = (stream) => typeof Blob === "function" && stream instanceof Blob; -const isReadableStreamInstance = (stream) => typeof ReadableStream === "function" && stream instanceof ReadableStream; diff --git a/node_modules/@smithy/util-stream/dist-es/sdk-stream-mixin.js b/node_modules/@smithy/util-stream/dist-es/sdk-stream-mixin.js deleted file mode 100644 index b5835e12..00000000 --- a/node_modules/@smithy/util-stream/dist-es/sdk-stream-mixin.js +++ /dev/null @@ -1,45 +0,0 @@ -import { streamCollector } from "@smithy/node-http-handler"; -import { fromArrayBuffer } from "@smithy/util-buffer-from"; -import { Readable } from "stream"; -import { TextDecoder } from "util"; -const ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED = "The stream has already been transformed."; -export const sdkStreamMixin = (stream) => { - if (!(stream instanceof Readable)) { - const name = stream?.__proto__?.constructor?.name || stream; - throw new Error(`Unexpected stream implementation, expect Stream.Readable instance, got ${name}`); - } - let transformed = false; - const transformToByteArray = async () => { - if (transformed) { - throw new Error(ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED); - } - transformed = true; - return await streamCollector(stream); - }; - return Object.assign(stream, { - transformToByteArray, - transformToString: async (encoding) => { - const buf = await transformToByteArray(); - if (encoding === undefined || Buffer.isEncoding(encoding)) { - return fromArrayBuffer(buf.buffer, buf.byteOffset, buf.byteLength).toString(encoding); - } - else { - const decoder = new TextDecoder(encoding); - return decoder.decode(buf); - } - }, - transformToWebStream: () => { - if (transformed) { - throw new Error(ERR_MSG_STREAM_HAS_BEEN_TRANSFORMED); - } - if (stream.readableFlowing !== null) { - throw new Error("The stream has been consumed by other callbacks."); - } - if (typeof Readable.toWeb !== "function") { - throw new Error("Readable.toWeb() is not supported. Please make sure you are using Node.js >= 17.0.0, or polyfill is available."); - } - transformed = true; - return Readable.toWeb(stream); - }, - }); -}; diff --git a/node_modules/@smithy/util-stream/dist-types/blob/Uint8ArrayBlobAdapter.d.ts b/node_modules/@smithy/util-stream/dist-types/blob/Uint8ArrayBlobAdapter.d.ts deleted file mode 100644 index c3d994d7..00000000 --- a/node_modules/@smithy/util-stream/dist-types/blob/Uint8ArrayBlobAdapter.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Adapter for conversions of the native Uint8Array type. - * @public - */ -export declare class Uint8ArrayBlobAdapter extends Uint8Array { - /** - * @param source - such as a string or Stream. - * @returns a new Uint8ArrayBlobAdapter extending Uint8Array. - */ - static fromString(source: string, encoding?: string): Uint8ArrayBlobAdapter; - /** - * @param source - Uint8Array to be mutated. - * @returns the same Uint8Array but with prototype switched to Uint8ArrayBlobAdapter. - */ - static mutate(source: Uint8Array): Uint8ArrayBlobAdapter; - /** - * @param encoding - default 'utf-8'. - * @returns the blob as string. - */ - transformToString(encoding?: string): string; -} diff --git a/node_modules/@smithy/util-stream/dist-types/blob/transforms.d.ts b/node_modules/@smithy/util-stream/dist-types/blob/transforms.d.ts deleted file mode 100644 index c54a18bf..00000000 --- a/node_modules/@smithy/util-stream/dist-types/blob/transforms.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { Uint8ArrayBlobAdapter } from "./Uint8ArrayBlobAdapter"; -/** - * @internal - */ -export declare function transformToString(payload: Uint8Array, encoding?: string): string; -/** - * @internal - */ -export declare function transformFromString(str: string, encoding?: string): Uint8ArrayBlobAdapter; diff --git a/node_modules/@smithy/util-stream/dist-types/getAwsChunkedEncodingStream.browser.d.ts b/node_modules/@smithy/util-stream/dist-types/getAwsChunkedEncodingStream.browser.d.ts deleted file mode 100644 index f767f771..00000000 --- a/node_modules/@smithy/util-stream/dist-types/getAwsChunkedEncodingStream.browser.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { GetAwsChunkedEncodingStream } from "@smithy/types"; -/** - * @internal - */ -export declare const getAwsChunkedEncodingStream: GetAwsChunkedEncodingStream; diff --git a/node_modules/@smithy/util-stream/dist-types/getAwsChunkedEncodingStream.d.ts b/node_modules/@smithy/util-stream/dist-types/getAwsChunkedEncodingStream.d.ts deleted file mode 100644 index d3997d01..00000000 --- a/node_modules/@smithy/util-stream/dist-types/getAwsChunkedEncodingStream.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -/// -import { GetAwsChunkedEncodingStream } from "@smithy/types"; -import { Readable } from "stream"; -/** - * @internal - */ -export declare const getAwsChunkedEncodingStream: GetAwsChunkedEncodingStream; diff --git a/node_modules/@smithy/util-stream/dist-types/index.d.ts b/node_modules/@smithy/util-stream/dist-types/index.d.ts deleted file mode 100644 index 47bcb14b..00000000 --- a/node_modules/@smithy/util-stream/dist-types/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * from "./blob/Uint8ArrayBlobAdapter"; -export * from "./getAwsChunkedEncodingStream"; -export * from "./sdk-stream-mixin"; diff --git a/node_modules/@smithy/util-stream/dist-types/sdk-stream-mixin.browser.d.ts b/node_modules/@smithy/util-stream/dist-types/sdk-stream-mixin.browser.d.ts deleted file mode 100644 index 400c0b21..00000000 --- a/node_modules/@smithy/util-stream/dist-types/sdk-stream-mixin.browser.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { SdkStream } from "@smithy/types"; -/** - * The stream handling utility functions for browsers and React Native - * - * @internal - */ -export declare const sdkStreamMixin: (stream: unknown) => SdkStream; diff --git a/node_modules/@smithy/util-stream/dist-types/sdk-stream-mixin.d.ts b/node_modules/@smithy/util-stream/dist-types/sdk-stream-mixin.d.ts deleted file mode 100644 index 7576db6a..00000000 --- a/node_modules/@smithy/util-stream/dist-types/sdk-stream-mixin.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { SdkStream } from "@smithy/types"; -import { Readable } from "stream"; -/** - * The function that mixes in the utility functions to help consuming runtime-specific payload stream. - * - * @internal - */ -export declare const sdkStreamMixin: (stream: unknown) => SdkStream; diff --git a/node_modules/@smithy/util-stream/dist-types/ts3.4/blob/Uint8ArrayBlobAdapter.d.ts b/node_modules/@smithy/util-stream/dist-types/ts3.4/blob/Uint8ArrayBlobAdapter.d.ts deleted file mode 100644 index e0338a20..00000000 --- a/node_modules/@smithy/util-stream/dist-types/ts3.4/blob/Uint8ArrayBlobAdapter.d.ts +++ /dev/null @@ -1,21 +0,0 @@ -/** - * Adapter for conversions of the native Uint8Array type. - * @public - */ -export declare class Uint8ArrayBlobAdapter extends Uint8Array { - /** - * @param source - such as a string or Stream. - * @returns a new Uint8ArrayBlobAdapter extending Uint8Array. - */ - static fromString(source: string, encoding?: string): Uint8ArrayBlobAdapter; - /** - * @param source - Uint8Array to be mutated. - * @returns the same Uint8Array but with prototype switched to Uint8ArrayBlobAdapter. - */ - static mutate(source: Uint8Array): Uint8ArrayBlobAdapter; - /** - * @param encoding - default 'utf-8'. - * @returns the blob as string. - */ - transformToString(encoding?: string): string; -} diff --git a/node_modules/@smithy/util-stream/dist-types/ts3.4/blob/transforms.d.ts b/node_modules/@smithy/util-stream/dist-types/ts3.4/blob/transforms.d.ts deleted file mode 100644 index 6e3ee0a7..00000000 --- a/node_modules/@smithy/util-stream/dist-types/ts3.4/blob/transforms.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import { Uint8ArrayBlobAdapter } from "./Uint8ArrayBlobAdapter"; -/** - * @internal - */ -export declare function transformToString(payload: Uint8Array, encoding?: string): string; -/** - * @internal - */ -export declare function transformFromString(str: string, encoding?: string): Uint8ArrayBlobAdapter; diff --git a/node_modules/@smithy/util-stream/dist-types/ts3.4/getAwsChunkedEncodingStream.browser.d.ts b/node_modules/@smithy/util-stream/dist-types/ts3.4/getAwsChunkedEncodingStream.browser.d.ts deleted file mode 100644 index 59790788..00000000 --- a/node_modules/@smithy/util-stream/dist-types/ts3.4/getAwsChunkedEncodingStream.browser.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { GetAwsChunkedEncodingStream } from "@smithy/types"; -/** - * @internal - */ -export declare const getAwsChunkedEncodingStream: GetAwsChunkedEncodingStream; diff --git a/node_modules/@smithy/util-stream/dist-types/ts3.4/getAwsChunkedEncodingStream.d.ts b/node_modules/@smithy/util-stream/dist-types/ts3.4/getAwsChunkedEncodingStream.d.ts deleted file mode 100644 index a100381e..00000000 --- a/node_modules/@smithy/util-stream/dist-types/ts3.4/getAwsChunkedEncodingStream.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -/// -import { GetAwsChunkedEncodingStream } from "@smithy/types"; -import { Readable } from "stream"; -/** - * @internal - */ -export declare const getAwsChunkedEncodingStream: GetAwsChunkedEncodingStream; diff --git a/node_modules/@smithy/util-stream/dist-types/ts3.4/index.d.ts b/node_modules/@smithy/util-stream/dist-types/ts3.4/index.d.ts deleted file mode 100644 index 952bb4fd..00000000 --- a/node_modules/@smithy/util-stream/dist-types/ts3.4/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * from "./blob/Uint8ArrayBlobAdapter"; -export * from "./getAwsChunkedEncodingStream"; -export * from "./sdk-stream-mixin"; diff --git a/node_modules/@smithy/util-stream/dist-types/ts3.4/sdk-stream-mixin.browser.d.ts b/node_modules/@smithy/util-stream/dist-types/ts3.4/sdk-stream-mixin.browser.d.ts deleted file mode 100644 index 99dea401..00000000 --- a/node_modules/@smithy/util-stream/dist-types/ts3.4/sdk-stream-mixin.browser.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { SdkStream } from "@smithy/types"; -/** - * The stream handling utility functions for browsers and React Native - * - * @internal - */ -export declare const sdkStreamMixin: (stream: unknown) => SdkStream; diff --git a/node_modules/@smithy/util-stream/dist-types/ts3.4/sdk-stream-mixin.d.ts b/node_modules/@smithy/util-stream/dist-types/ts3.4/sdk-stream-mixin.d.ts deleted file mode 100644 index 1dbf4985..00000000 --- a/node_modules/@smithy/util-stream/dist-types/ts3.4/sdk-stream-mixin.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { SdkStream } from "@smithy/types"; -import { Readable } from "stream"; -/** - * The function that mixes in the utility functions to help consuming runtime-specific payload stream. - * - * @internal - */ -export declare const sdkStreamMixin: (stream: unknown) => SdkStream; diff --git a/node_modules/@smithy/util-stream/package.json b/node_modules/@smithy/util-stream/package.json deleted file mode 100644 index cae6a7e5..00000000 --- a/node_modules/@smithy/util-stream/package.json +++ /dev/null @@ -1,95 +0,0 @@ -{ - "name": "@smithy/util-stream", - "version": "2.0.21", - "scripts": { - "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", - "build:cjs": "yarn g:tsc -p tsconfig.cjs.json", - "build:es": "yarn g:tsc -p tsconfig.es.json", - "build:types": "yarn g:tsc -p tsconfig.types.json", - "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", - "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz", - "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"", - "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"", - "extract:docs": "api-extractor run --local", - "test": "yarn g:jest && karma start karma.conf.js", - "test:integration": "yarn g:jest --config jest.config.integ.js" - }, - "main": "./dist-cjs/index.js", - "module": "./dist-es/index.js", - "types": "./dist-types/index.d.ts", - "author": { - "name": "AWS SDK for JavaScript Team", - "url": "https://aws.amazon.com/javascript/" - }, - "license": "Apache-2.0", - "dependencies": { - "@smithy/fetch-http-handler": "^2.2.7", - "@smithy/node-http-handler": "^2.1.10", - "@smithy/types": "^2.6.0", - "@smithy/util-base64": "^2.0.1", - "@smithy/util-buffer-from": "^2.0.0", - "@smithy/util-hex-encoding": "^2.0.0", - "@smithy/util-utf8": "^2.0.2", - "tslib": "^2.5.0" - }, - "devDependencies": { - "@smithy/util-test": "^0.1.10", - "@types/chai-as-promised": "^7.1.2", - "@types/node": "^14.14.31", - "chai": "^4.2.0", - "chai-as-promised": "^7.1.1", - "concurrently": "7.0.0", - "downlevel-dts": "0.10.1", - "karma": "6.4.0", - "karma-chai": "0.1.0", - "karma-chrome-launcher": "3.1.1", - "karma-coverage": "2.2.0", - "karma-env-preprocessor": "0.1.1", - "karma-firefox-launcher": "2.1.2", - "karma-jasmine": "5.1.0", - "karma-mocha": "2.0.1", - "karma-sourcemap-loader": "0.3.8", - "karma-typescript": "5.5.3", - "karma-webpack": "5.0.0", - "rimraf": "3.0.2", - "typedoc": "0.23.23", - "webpack": "5.76.0", - "webpack-cli": "4.10.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "typesVersions": { - "<4.0": { - "dist-types/*": [ - "dist-types/ts3.4/*" - ] - } - }, - "files": [ - "dist-*/**" - ], - "browser": { - "./dist-es/getAwsChunkedEncodingStream": "./dist-es/getAwsChunkedEncodingStream.browser", - "./dist-es/sdk-stream-mixin": "./dist-es/sdk-stream-mixin.browser" - }, - "react-native": { - "./dist-es/getAwsChunkedEncodingStream": "./dist-es/getAwsChunkedEncodingStream.browser", - "./dist-es/sdk-stream-mixin": "./dist-es/sdk-stream-mixin.browser", - "./dist-cjs/getAwsChunkedEncodingStream": "./dist-cjs/getAwsChunkedEncodingStream.browser", - "./dist-cjs/sdk-stream-mixin": "./dist-cjs/sdk-stream-mixin.browser" - }, - "homepage": "https://github.com/awslabs/smithy-typescript/tree/main/packages/util-stream", - "repository": { - "type": "git", - "url": "https://github.com/awslabs/smithy-typescript.git", - "directory": "packages/util-stream" - }, - "typedoc": { - "entryPoint": "src/index.ts" - }, - "publishConfig": { - "directory": ".release/package" - } -} \ No newline at end of file diff --git a/node_modules/@smithy/util-uri-escape/LICENSE b/node_modules/@smithy/util-uri-escape/LICENSE deleted file mode 100644 index 7b6491ba..00000000 --- a/node_modules/@smithy/util-uri-escape/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. \ No newline at end of file diff --git a/node_modules/@smithy/util-uri-escape/README.md b/node_modules/@smithy/util-uri-escape/README.md deleted file mode 100644 index 22e939a5..00000000 --- a/node_modules/@smithy/util-uri-escape/README.md +++ /dev/null @@ -1,10 +0,0 @@ -# @smithy/util-uri-escape - -[![NPM version](https://img.shields.io/npm/v/@smithy/util-uri-escape/latest.svg)](https://www.npmjs.com/package/@smithy/util-uri-escape) -[![NPM downloads](https://img.shields.io/npm/dm/@smithy/util-uri-escape.svg)](https://www.npmjs.com/package/@smithy/util-uri-escape) - -> An internal package - -## Usage - -You probably shouldn't, at least directly. diff --git a/node_modules/@smithy/util-uri-escape/dist-cjs/escape-uri-path.js b/node_modules/@smithy/util-uri-escape/dist-cjs/escape-uri-path.js deleted file mode 100644 index f1dcdaaf..00000000 --- a/node_modules/@smithy/util-uri-escape/dist-cjs/escape-uri-path.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.escapeUriPath = void 0; -const escape_uri_1 = require("./escape-uri"); -const escapeUriPath = (uri) => uri.split("/").map(escape_uri_1.escapeUri).join("/"); -exports.escapeUriPath = escapeUriPath; diff --git a/node_modules/@smithy/util-uri-escape/dist-cjs/escape-uri.js b/node_modules/@smithy/util-uri-escape/dist-cjs/escape-uri.js deleted file mode 100644 index 4389a2a6..00000000 --- a/node_modules/@smithy/util-uri-escape/dist-cjs/escape-uri.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.escapeUri = void 0; -const escapeUri = (uri) => encodeURIComponent(uri).replace(/[!'()*]/g, hexEncode); -exports.escapeUri = escapeUri; -const hexEncode = (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`; diff --git a/node_modules/@smithy/util-uri-escape/dist-cjs/index.js b/node_modules/@smithy/util-uri-escape/dist-cjs/index.js deleted file mode 100644 index dade19fa..00000000 --- a/node_modules/@smithy/util-uri-escape/dist-cjs/index.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./escape-uri"), exports); -tslib_1.__exportStar(require("./escape-uri-path"), exports); diff --git a/node_modules/@smithy/util-uri-escape/dist-es/escape-uri-path.js b/node_modules/@smithy/util-uri-escape/dist-es/escape-uri-path.js deleted file mode 100644 index 81b3fe37..00000000 --- a/node_modules/@smithy/util-uri-escape/dist-es/escape-uri-path.js +++ /dev/null @@ -1,2 +0,0 @@ -import { escapeUri } from "./escape-uri"; -export const escapeUriPath = (uri) => uri.split("/").map(escapeUri).join("/"); diff --git a/node_modules/@smithy/util-uri-escape/dist-es/escape-uri.js b/node_modules/@smithy/util-uri-escape/dist-es/escape-uri.js deleted file mode 100644 index 8990be13..00000000 --- a/node_modules/@smithy/util-uri-escape/dist-es/escape-uri.js +++ /dev/null @@ -1,2 +0,0 @@ -export const escapeUri = (uri) => encodeURIComponent(uri).replace(/[!'()*]/g, hexEncode); -const hexEncode = (c) => `%${c.charCodeAt(0).toString(16).toUpperCase()}`; diff --git a/node_modules/@smithy/util-uri-escape/dist-es/index.js b/node_modules/@smithy/util-uri-escape/dist-es/index.js deleted file mode 100644 index ed402e1c..00000000 --- a/node_modules/@smithy/util-uri-escape/dist-es/index.js +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./escape-uri"; -export * from "./escape-uri-path"; diff --git a/node_modules/@smithy/util-uri-escape/dist-types/escape-uri-path.d.ts b/node_modules/@smithy/util-uri-escape/dist-types/escape-uri-path.d.ts deleted file mode 100644 index b547ff90..00000000 --- a/node_modules/@smithy/util-uri-escape/dist-types/escape-uri-path.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/** - * @internal - */ -export declare const escapeUriPath: (uri: string) => string; diff --git a/node_modules/@smithy/util-uri-escape/dist-types/escape-uri.d.ts b/node_modules/@smithy/util-uri-escape/dist-types/escape-uri.d.ts deleted file mode 100644 index 3f14d2c9..00000000 --- a/node_modules/@smithy/util-uri-escape/dist-types/escape-uri.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/** - * @internal - */ -export declare const escapeUri: (uri: string) => string; diff --git a/node_modules/@smithy/util-uri-escape/dist-types/index.d.ts b/node_modules/@smithy/util-uri-escape/dist-types/index.d.ts deleted file mode 100644 index 1913825c..00000000 --- a/node_modules/@smithy/util-uri-escape/dist-types/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @internal - */ -export * from "./escape-uri"; -/** - * @internal - */ -export * from "./escape-uri-path"; diff --git a/node_modules/@smithy/util-uri-escape/dist-types/ts3.4/escape-uri-path.d.ts b/node_modules/@smithy/util-uri-escape/dist-types/ts3.4/escape-uri-path.d.ts deleted file mode 100644 index a7e19caf..00000000 --- a/node_modules/@smithy/util-uri-escape/dist-types/ts3.4/escape-uri-path.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/** - * @internal - */ -export declare const escapeUriPath: (uri: string) => string; diff --git a/node_modules/@smithy/util-uri-escape/dist-types/ts3.4/escape-uri.d.ts b/node_modules/@smithy/util-uri-escape/dist-types/ts3.4/escape-uri.d.ts deleted file mode 100644 index 13cc3728..00000000 --- a/node_modules/@smithy/util-uri-escape/dist-types/ts3.4/escape-uri.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/** - * @internal - */ -export declare const escapeUri: (uri: string) => string; diff --git a/node_modules/@smithy/util-uri-escape/dist-types/ts3.4/index.d.ts b/node_modules/@smithy/util-uri-escape/dist-types/ts3.4/index.d.ts deleted file mode 100644 index ad719fe3..00000000 --- a/node_modules/@smithy/util-uri-escape/dist-types/ts3.4/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @internal - */ -export * from "./escape-uri"; -/** - * @internal - */ -export * from "./escape-uri-path"; diff --git a/node_modules/@smithy/util-uri-escape/package.json b/node_modules/@smithy/util-uri-escape/package.json deleted file mode 100644 index 5f0b0d8b..00000000 --- a/node_modules/@smithy/util-uri-escape/package.json +++ /dev/null @@ -1,61 +0,0 @@ -{ - "name": "@smithy/util-uri-escape", - "version": "2.0.0", - "scripts": { - "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", - "build:cjs": "tsc -p tsconfig.cjs.json", - "build:es": "tsc -p tsconfig.es.json", - "build:types": "tsc -p tsconfig.types.json", - "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", - "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz", - "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"", - "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"", - "test": "jest" - }, - "main": "./dist-cjs/index.js", - "module": "./dist-es/index.js", - "types": "./dist-types/index.d.ts", - "author": { - "name": "AWS SDK for JavaScript Team", - "url": "https://aws.amazon.com/javascript/" - }, - "license": "Apache-2.0", - "dependencies": { - "tslib": "^2.5.0" - }, - "engines": { - "node": ">=14.0.0" - }, - "typesVersions": { - "<4.0": { - "dist-types/*": [ - "dist-types/ts3.4/*" - ] - } - }, - "files": [ - "dist-*/**" - ], - "homepage": "https://github.com/awslabs/smithy-typescript/tree/main/packages/util-uri-escape", - "repository": { - "type": "git", - "url": "https://github.com/awslabs/smithy-typescript.git", - "directory": "packages/util-uri-escape" - }, - "devDependencies": { - "@tsconfig/recommended": "1.0.1", - "concurrently": "7.0.0", - "downlevel-dts": "0.10.1", - "jest": "28.1.1", - "rimraf": "3.0.2", - "typedoc": "0.23.23", - "typescript": "~4.9.5" - }, - "typedoc": { - "entryPoint": "src/index.ts" - }, - "publishConfig": { - "directory": ".release/package" - } -} \ No newline at end of file diff --git a/node_modules/@smithy/util-utf8/LICENSE b/node_modules/@smithy/util-utf8/LICENSE deleted file mode 100644 index 7b6491ba..00000000 --- a/node_modules/@smithy/util-utf8/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. \ No newline at end of file diff --git a/node_modules/@smithy/util-utf8/README.md b/node_modules/@smithy/util-utf8/README.md deleted file mode 100644 index fc5db6d8..00000000 --- a/node_modules/@smithy/util-utf8/README.md +++ /dev/null @@ -1,4 +0,0 @@ -# @smithy/util-utf8 - -[![NPM version](https://img.shields.io/npm/v/@smithy/util-utf8/latest.svg)](https://www.npmjs.com/package/@smithy/util-utf8) -[![NPM downloads](https://img.shields.io/npm/dm/@smithy/util-utf8.svg)](https://www.npmjs.com/package/@smithy/util-utf8) diff --git a/node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.browser.js b/node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.browser.js deleted file mode 100644 index 5da3fc91..00000000 --- a/node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.browser.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.fromUtf8 = void 0; -const fromUtf8 = (input) => new TextEncoder().encode(input); -exports.fromUtf8 = fromUtf8; diff --git a/node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.js b/node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.js deleted file mode 100644 index d93c00c2..00000000 --- a/node_modules/@smithy/util-utf8/dist-cjs/fromUtf8.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.fromUtf8 = void 0; -const util_buffer_from_1 = require("@smithy/util-buffer-from"); -const fromUtf8 = (input) => { - const buf = (0, util_buffer_from_1.fromString)(input, "utf8"); - return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength / Uint8Array.BYTES_PER_ELEMENT); -}; -exports.fromUtf8 = fromUtf8; diff --git a/node_modules/@smithy/util-utf8/dist-cjs/index.js b/node_modules/@smithy/util-utf8/dist-cjs/index.js deleted file mode 100644 index be13c2f2..00000000 --- a/node_modules/@smithy/util-utf8/dist-cjs/index.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./fromUtf8"), exports); -tslib_1.__exportStar(require("./toUint8Array"), exports); -tslib_1.__exportStar(require("./toUtf8"), exports); diff --git a/node_modules/@smithy/util-utf8/dist-cjs/toUint8Array.js b/node_modules/@smithy/util-utf8/dist-cjs/toUint8Array.js deleted file mode 100644 index b68e87a8..00000000 --- a/node_modules/@smithy/util-utf8/dist-cjs/toUint8Array.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.toUint8Array = void 0; -const fromUtf8_1 = require("./fromUtf8"); -const toUint8Array = (data) => { - if (typeof data === "string") { - return (0, fromUtf8_1.fromUtf8)(data); - } - if (ArrayBuffer.isView(data)) { - return new Uint8Array(data.buffer, data.byteOffset, data.byteLength / Uint8Array.BYTES_PER_ELEMENT); - } - return new Uint8Array(data); -}; -exports.toUint8Array = toUint8Array; diff --git a/node_modules/@smithy/util-utf8/dist-cjs/toUtf8.browser.js b/node_modules/@smithy/util-utf8/dist-cjs/toUtf8.browser.js deleted file mode 100644 index 9ad34bad..00000000 --- a/node_modules/@smithy/util-utf8/dist-cjs/toUtf8.browser.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.toUtf8 = void 0; -const toUtf8 = (input) => new TextDecoder("utf-8").decode(input); -exports.toUtf8 = toUtf8; diff --git a/node_modules/@smithy/util-utf8/dist-cjs/toUtf8.js b/node_modules/@smithy/util-utf8/dist-cjs/toUtf8.js deleted file mode 100644 index c7130f9d..00000000 --- a/node_modules/@smithy/util-utf8/dist-cjs/toUtf8.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.toUtf8 = void 0; -const util_buffer_from_1 = require("@smithy/util-buffer-from"); -const toUtf8 = (input) => (0, util_buffer_from_1.fromArrayBuffer)(input.buffer, input.byteOffset, input.byteLength).toString("utf8"); -exports.toUtf8 = toUtf8; diff --git a/node_modules/@smithy/util-utf8/dist-es/fromUtf8.browser.js b/node_modules/@smithy/util-utf8/dist-es/fromUtf8.browser.js deleted file mode 100644 index 73441900..00000000 --- a/node_modules/@smithy/util-utf8/dist-es/fromUtf8.browser.js +++ /dev/null @@ -1 +0,0 @@ -export const fromUtf8 = (input) => new TextEncoder().encode(input); diff --git a/node_modules/@smithy/util-utf8/dist-es/fromUtf8.js b/node_modules/@smithy/util-utf8/dist-es/fromUtf8.js deleted file mode 100644 index 6dc438b3..00000000 --- a/node_modules/@smithy/util-utf8/dist-es/fromUtf8.js +++ /dev/null @@ -1,5 +0,0 @@ -import { fromString } from "@smithy/util-buffer-from"; -export const fromUtf8 = (input) => { - const buf = fromString(input, "utf8"); - return new Uint8Array(buf.buffer, buf.byteOffset, buf.byteLength / Uint8Array.BYTES_PER_ELEMENT); -}; diff --git a/node_modules/@smithy/util-utf8/dist-es/index.js b/node_modules/@smithy/util-utf8/dist-es/index.js deleted file mode 100644 index 00ba4657..00000000 --- a/node_modules/@smithy/util-utf8/dist-es/index.js +++ /dev/null @@ -1,3 +0,0 @@ -export * from "./fromUtf8"; -export * from "./toUint8Array"; -export * from "./toUtf8"; diff --git a/node_modules/@smithy/util-utf8/dist-es/toUint8Array.js b/node_modules/@smithy/util-utf8/dist-es/toUint8Array.js deleted file mode 100644 index 2cd36f75..00000000 --- a/node_modules/@smithy/util-utf8/dist-es/toUint8Array.js +++ /dev/null @@ -1,10 +0,0 @@ -import { fromUtf8 } from "./fromUtf8"; -export const toUint8Array = (data) => { - if (typeof data === "string") { - return fromUtf8(data); - } - if (ArrayBuffer.isView(data)) { - return new Uint8Array(data.buffer, data.byteOffset, data.byteLength / Uint8Array.BYTES_PER_ELEMENT); - } - return new Uint8Array(data); -}; diff --git a/node_modules/@smithy/util-utf8/dist-es/toUtf8.browser.js b/node_modules/@smithy/util-utf8/dist-es/toUtf8.browser.js deleted file mode 100644 index 2dcdeba1..00000000 --- a/node_modules/@smithy/util-utf8/dist-es/toUtf8.browser.js +++ /dev/null @@ -1 +0,0 @@ -export const toUtf8 = (input) => new TextDecoder("utf-8").decode(input); diff --git a/node_modules/@smithy/util-utf8/dist-es/toUtf8.js b/node_modules/@smithy/util-utf8/dist-es/toUtf8.js deleted file mode 100644 index ecebc71f..00000000 --- a/node_modules/@smithy/util-utf8/dist-es/toUtf8.js +++ /dev/null @@ -1,2 +0,0 @@ -import { fromArrayBuffer } from "@smithy/util-buffer-from"; -export const toUtf8 = (input) => fromArrayBuffer(input.buffer, input.byteOffset, input.byteLength).toString("utf8"); diff --git a/node_modules/@smithy/util-utf8/dist-types/fromUtf8.browser.d.ts b/node_modules/@smithy/util-utf8/dist-types/fromUtf8.browser.d.ts deleted file mode 100644 index dd919817..00000000 --- a/node_modules/@smithy/util-utf8/dist-types/fromUtf8.browser.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const fromUtf8: (input: string) => Uint8Array; diff --git a/node_modules/@smithy/util-utf8/dist-types/fromUtf8.d.ts b/node_modules/@smithy/util-utf8/dist-types/fromUtf8.d.ts deleted file mode 100644 index dd919817..00000000 --- a/node_modules/@smithy/util-utf8/dist-types/fromUtf8.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const fromUtf8: (input: string) => Uint8Array; diff --git a/node_modules/@smithy/util-utf8/dist-types/index.d.ts b/node_modules/@smithy/util-utf8/dist-types/index.d.ts deleted file mode 100644 index 00ba4657..00000000 --- a/node_modules/@smithy/util-utf8/dist-types/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * from "./fromUtf8"; -export * from "./toUint8Array"; -export * from "./toUtf8"; diff --git a/node_modules/@smithy/util-utf8/dist-types/toUint8Array.d.ts b/node_modules/@smithy/util-utf8/dist-types/toUint8Array.d.ts deleted file mode 100644 index 11b6342e..00000000 --- a/node_modules/@smithy/util-utf8/dist-types/toUint8Array.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const toUint8Array: (data: string | ArrayBuffer | ArrayBufferView) => Uint8Array; diff --git a/node_modules/@smithy/util-utf8/dist-types/toUtf8.browser.d.ts b/node_modules/@smithy/util-utf8/dist-types/toUtf8.browser.d.ts deleted file mode 100644 index 46248f7f..00000000 --- a/node_modules/@smithy/util-utf8/dist-types/toUtf8.browser.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const toUtf8: (input: Uint8Array) => string; diff --git a/node_modules/@smithy/util-utf8/dist-types/toUtf8.d.ts b/node_modules/@smithy/util-utf8/dist-types/toUtf8.d.ts deleted file mode 100644 index 46248f7f..00000000 --- a/node_modules/@smithy/util-utf8/dist-types/toUtf8.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const toUtf8: (input: Uint8Array) => string; diff --git a/node_modules/@smithy/util-utf8/dist-types/ts3.4/fromUtf8.browser.d.ts b/node_modules/@smithy/util-utf8/dist-types/ts3.4/fromUtf8.browser.d.ts deleted file mode 100644 index 39f3d6dd..00000000 --- a/node_modules/@smithy/util-utf8/dist-types/ts3.4/fromUtf8.browser.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const fromUtf8: (input: string) => Uint8Array; diff --git a/node_modules/@smithy/util-utf8/dist-types/ts3.4/fromUtf8.d.ts b/node_modules/@smithy/util-utf8/dist-types/ts3.4/fromUtf8.d.ts deleted file mode 100644 index 39f3d6dd..00000000 --- a/node_modules/@smithy/util-utf8/dist-types/ts3.4/fromUtf8.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const fromUtf8: (input: string) => Uint8Array; diff --git a/node_modules/@smithy/util-utf8/dist-types/ts3.4/index.d.ts b/node_modules/@smithy/util-utf8/dist-types/ts3.4/index.d.ts deleted file mode 100644 index ef9761d7..00000000 --- a/node_modules/@smithy/util-utf8/dist-types/ts3.4/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -export * from "./fromUtf8"; -export * from "./toUint8Array"; -export * from "./toUtf8"; diff --git a/node_modules/@smithy/util-utf8/dist-types/ts3.4/toUint8Array.d.ts b/node_modules/@smithy/util-utf8/dist-types/ts3.4/toUint8Array.d.ts deleted file mode 100644 index 562fe101..00000000 --- a/node_modules/@smithy/util-utf8/dist-types/ts3.4/toUint8Array.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const toUint8Array: (data: string | ArrayBuffer | ArrayBufferView) => Uint8Array; diff --git a/node_modules/@smithy/util-utf8/dist-types/ts3.4/toUtf8.browser.d.ts b/node_modules/@smithy/util-utf8/dist-types/ts3.4/toUtf8.browser.d.ts deleted file mode 100644 index 983ccc6e..00000000 --- a/node_modules/@smithy/util-utf8/dist-types/ts3.4/toUtf8.browser.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const toUtf8: (input: Uint8Array) => string; diff --git a/node_modules/@smithy/util-utf8/dist-types/ts3.4/toUtf8.d.ts b/node_modules/@smithy/util-utf8/dist-types/ts3.4/toUtf8.d.ts deleted file mode 100644 index 983ccc6e..00000000 --- a/node_modules/@smithy/util-utf8/dist-types/ts3.4/toUtf8.d.ts +++ /dev/null @@ -1 +0,0 @@ -export declare const toUtf8: (input: Uint8Array) => string; diff --git a/node_modules/@smithy/util-utf8/package.json b/node_modules/@smithy/util-utf8/package.json deleted file mode 100644 index 063baed5..00000000 --- a/node_modules/@smithy/util-utf8/package.json +++ /dev/null @@ -1,66 +0,0 @@ -{ - "name": "@smithy/util-utf8", - "version": "2.0.2", - "description": "A UTF-8 string <-> UInt8Array converter", - "main": "./dist-cjs/index.js", - "module": "./dist-es/index.js", - "scripts": { - "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", - "build:cjs": "yarn g:tsc -p tsconfig.cjs.json", - "build:es": "yarn g:tsc -p tsconfig.es.json", - "build:types": "yarn g:tsc -p tsconfig.types.json", - "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", - "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz", - "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"", - "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"", - "test": "yarn g:jest" - }, - "author": { - "name": "AWS SDK for JavaScript Team", - "url": "https://aws.amazon.com/javascript/" - }, - "license": "Apache-2.0", - "dependencies": { - "@smithy/util-buffer-from": "^2.0.0", - "tslib": "^2.5.0" - }, - "devDependencies": { - "@tsconfig/recommended": "1.0.1", - "concurrently": "7.0.0", - "downlevel-dts": "0.10.1", - "rimraf": "3.0.2", - "typedoc": "0.23.23" - }, - "types": "./dist-types/index.d.ts", - "engines": { - "node": ">=14.0.0" - }, - "typesVersions": { - "<4.0": { - "dist-types/*": [ - "dist-types/ts3.4/*" - ] - } - }, - "files": [ - "dist-*/**" - ], - "browser": { - "./dist-es/fromUtf8": "./dist-es/fromUtf8.browser", - "./dist-es/toUtf8": "./dist-es/toUtf8.browser" - }, - "react-native": {}, - "homepage": "https://github.com/awslabs/smithy-typescript/tree/main/packages/util-utf8", - "repository": { - "type": "git", - "url": "https://github.com/awslabs/smithy-typescript.git", - "directory": "packages/util-utf8" - }, - "typedoc": { - "entryPoint": "src/index.ts" - }, - "publishConfig": { - "directory": ".release/package" - } -} \ No newline at end of file diff --git a/node_modules/@smithy/util-waiter/LICENSE b/node_modules/@smithy/util-waiter/LICENSE deleted file mode 100644 index 7b6491ba..00000000 --- a/node_modules/@smithy/util-waiter/LICENSE +++ /dev/null @@ -1,201 +0,0 @@ -Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright 2018-2020 Amazon.com, Inc. or its affiliates. All Rights Reserved. - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. \ No newline at end of file diff --git a/node_modules/@smithy/util-waiter/README.md b/node_modules/@smithy/util-waiter/README.md deleted file mode 100644 index 17169a81..00000000 --- a/node_modules/@smithy/util-waiter/README.md +++ /dev/null @@ -1,10 +0,0 @@ -# @smithy/util-waiter - -[![NPM version](https://img.shields.io/npm/v/@smithy/util-waiter/latest.svg)](https://www.npmjs.com/package/@smithy/util-waiter) -[![NPM downloads](https://img.shields.io/npm/dm/@smithy/util-waiter.svg)](https://www.npmjs.com/package/@smithy/util-waiter) - -> An internal package - -## Usage - -You probably shouldn't, at least directly. diff --git a/node_modules/@smithy/util-waiter/dist-cjs/createWaiter.js b/node_modules/@smithy/util-waiter/dist-cjs/createWaiter.js deleted file mode 100644 index 7f76d8d8..00000000 --- a/node_modules/@smithy/util-waiter/dist-cjs/createWaiter.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.createWaiter = void 0; -const poller_1 = require("./poller"); -const utils_1 = require("./utils"); -const waiter_1 = require("./waiter"); -const abortTimeout = async (abortSignal) => { - return new Promise((resolve) => { - abortSignal.onabort = () => resolve({ state: waiter_1.WaiterState.ABORTED }); - }); -}; -const createWaiter = async (options, input, acceptorChecks) => { - const params = { - ...waiter_1.waiterServiceDefaults, - ...options, - }; - (0, utils_1.validateWaiterOptions)(params); - const exitConditions = [(0, poller_1.runPolling)(params, input, acceptorChecks)]; - if (options.abortController) { - exitConditions.push(abortTimeout(options.abortController.signal)); - } - if (options.abortSignal) { - exitConditions.push(abortTimeout(options.abortSignal)); - } - return Promise.race(exitConditions); -}; -exports.createWaiter = createWaiter; diff --git a/node_modules/@smithy/util-waiter/dist-cjs/index.js b/node_modules/@smithy/util-waiter/dist-cjs/index.js deleted file mode 100644 index 77ded8ae..00000000 --- a/node_modules/@smithy/util-waiter/dist-cjs/index.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./createWaiter"), exports); -tslib_1.__exportStar(require("./waiter"), exports); diff --git a/node_modules/@smithy/util-waiter/dist-cjs/poller.js b/node_modules/@smithy/util-waiter/dist-cjs/poller.js deleted file mode 100644 index edf426f2..00000000 --- a/node_modules/@smithy/util-waiter/dist-cjs/poller.js +++ /dev/null @@ -1,38 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.runPolling = void 0; -const sleep_1 = require("./utils/sleep"); -const waiter_1 = require("./waiter"); -const exponentialBackoffWithJitter = (minDelay, maxDelay, attemptCeiling, attempt) => { - if (attempt > attemptCeiling) - return maxDelay; - const delay = minDelay * 2 ** (attempt - 1); - return randomInRange(minDelay, delay); -}; -const randomInRange = (min, max) => min + Math.random() * (max - min); -const runPolling = async ({ minDelay, maxDelay, maxWaitTime, abortController, client, abortSignal }, input, acceptorChecks) => { - var _a; - const { state, reason } = await acceptorChecks(client, input); - if (state !== waiter_1.WaiterState.RETRY) { - return { state, reason }; - } - let currentAttempt = 1; - const waitUntil = Date.now() + maxWaitTime * 1000; - const attemptCeiling = Math.log(maxDelay / minDelay) / Math.log(2) + 1; - while (true) { - if (((_a = abortController === null || abortController === void 0 ? void 0 : abortController.signal) === null || _a === void 0 ? void 0 : _a.aborted) || (abortSignal === null || abortSignal === void 0 ? void 0 : abortSignal.aborted)) { - return { state: waiter_1.WaiterState.ABORTED }; - } - const delay = exponentialBackoffWithJitter(minDelay, maxDelay, attemptCeiling, currentAttempt); - if (Date.now() + delay * 1000 > waitUntil) { - return { state: waiter_1.WaiterState.TIMEOUT }; - } - await (0, sleep_1.sleep)(delay); - const { state, reason } = await acceptorChecks(client, input); - if (state !== waiter_1.WaiterState.RETRY) { - return { state, reason }; - } - currentAttempt += 1; - } -}; -exports.runPolling = runPolling; diff --git a/node_modules/@smithy/util-waiter/dist-cjs/utils/index.js b/node_modules/@smithy/util-waiter/dist-cjs/utils/index.js deleted file mode 100644 index 135dadf6..00000000 --- a/node_modules/@smithy/util-waiter/dist-cjs/utils/index.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -const tslib_1 = require("tslib"); -tslib_1.__exportStar(require("./sleep"), exports); -tslib_1.__exportStar(require("./validate"), exports); diff --git a/node_modules/@smithy/util-waiter/dist-cjs/utils/sleep.js b/node_modules/@smithy/util-waiter/dist-cjs/utils/sleep.js deleted file mode 100644 index 1241bf92..00000000 --- a/node_modules/@smithy/util-waiter/dist-cjs/utils/sleep.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.sleep = void 0; -const sleep = (seconds) => { - return new Promise((resolve) => setTimeout(resolve, seconds * 1000)); -}; -exports.sleep = sleep; diff --git a/node_modules/@smithy/util-waiter/dist-cjs/utils/validate.js b/node_modules/@smithy/util-waiter/dist-cjs/utils/validate.js deleted file mode 100644 index 093cb278..00000000 --- a/node_modules/@smithy/util-waiter/dist-cjs/utils/validate.js +++ /dev/null @@ -1,21 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.validateWaiterOptions = void 0; -const validateWaiterOptions = (options) => { - if (options.maxWaitTime < 1) { - throw new Error(`WaiterConfiguration.maxWaitTime must be greater than 0`); - } - else if (options.minDelay < 1) { - throw new Error(`WaiterConfiguration.minDelay must be greater than 0`); - } - else if (options.maxDelay < 1) { - throw new Error(`WaiterConfiguration.maxDelay must be greater than 0`); - } - else if (options.maxWaitTime <= options.minDelay) { - throw new Error(`WaiterConfiguration.maxWaitTime [${options.maxWaitTime}] must be greater than WaiterConfiguration.minDelay [${options.minDelay}] for this waiter`); - } - else if (options.maxDelay < options.minDelay) { - throw new Error(`WaiterConfiguration.maxDelay [${options.maxDelay}] must be greater than WaiterConfiguration.minDelay [${options.minDelay}] for this waiter`); - } -}; -exports.validateWaiterOptions = validateWaiterOptions; diff --git a/node_modules/@smithy/util-waiter/dist-cjs/waiter.js b/node_modules/@smithy/util-waiter/dist-cjs/waiter.js deleted file mode 100644 index 49f91494..00000000 --- a/node_modules/@smithy/util-waiter/dist-cjs/waiter.js +++ /dev/null @@ -1,38 +0,0 @@ -"use strict"; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.checkExceptions = exports.WaiterState = exports.waiterServiceDefaults = void 0; -exports.waiterServiceDefaults = { - minDelay: 2, - maxDelay: 120, -}; -var WaiterState; -(function (WaiterState) { - WaiterState["ABORTED"] = "ABORTED"; - WaiterState["FAILURE"] = "FAILURE"; - WaiterState["SUCCESS"] = "SUCCESS"; - WaiterState["RETRY"] = "RETRY"; - WaiterState["TIMEOUT"] = "TIMEOUT"; -})(WaiterState = exports.WaiterState || (exports.WaiterState = {})); -const checkExceptions = (result) => { - if (result.state === WaiterState.ABORTED) { - const abortError = new Error(`${JSON.stringify({ - ...result, - reason: "Request was aborted", - })}`); - abortError.name = "AbortError"; - throw abortError; - } - else if (result.state === WaiterState.TIMEOUT) { - const timeoutError = new Error(`${JSON.stringify({ - ...result, - reason: "Waiter has timed out", - })}`); - timeoutError.name = "TimeoutError"; - throw timeoutError; - } - else if (result.state !== WaiterState.SUCCESS) { - throw new Error(`${JSON.stringify({ result })}`); - } - return result; -}; -exports.checkExceptions = checkExceptions; diff --git a/node_modules/@smithy/util-waiter/dist-es/createWaiter.js b/node_modules/@smithy/util-waiter/dist-es/createWaiter.js deleted file mode 100644 index 59cd405a..00000000 --- a/node_modules/@smithy/util-waiter/dist-es/createWaiter.js +++ /dev/null @@ -1,23 +0,0 @@ -import { runPolling } from "./poller"; -import { validateWaiterOptions } from "./utils"; -import { waiterServiceDefaults, WaiterState } from "./waiter"; -const abortTimeout = async (abortSignal) => { - return new Promise((resolve) => { - abortSignal.onabort = () => resolve({ state: WaiterState.ABORTED }); - }); -}; -export const createWaiter = async (options, input, acceptorChecks) => { - const params = { - ...waiterServiceDefaults, - ...options, - }; - validateWaiterOptions(params); - const exitConditions = [runPolling(params, input, acceptorChecks)]; - if (options.abortController) { - exitConditions.push(abortTimeout(options.abortController.signal)); - } - if (options.abortSignal) { - exitConditions.push(abortTimeout(options.abortSignal)); - } - return Promise.race(exitConditions); -}; diff --git a/node_modules/@smithy/util-waiter/dist-es/index.js b/node_modules/@smithy/util-waiter/dist-es/index.js deleted file mode 100644 index d77f139a..00000000 --- a/node_modules/@smithy/util-waiter/dist-es/index.js +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./createWaiter"; -export * from "./waiter"; diff --git a/node_modules/@smithy/util-waiter/dist-es/poller.js b/node_modules/@smithy/util-waiter/dist-es/poller.js deleted file mode 100644 index 26267cdc..00000000 --- a/node_modules/@smithy/util-waiter/dist-es/poller.js +++ /dev/null @@ -1,33 +0,0 @@ -import { sleep } from "./utils/sleep"; -import { WaiterState } from "./waiter"; -const exponentialBackoffWithJitter = (minDelay, maxDelay, attemptCeiling, attempt) => { - if (attempt > attemptCeiling) - return maxDelay; - const delay = minDelay * 2 ** (attempt - 1); - return randomInRange(minDelay, delay); -}; -const randomInRange = (min, max) => min + Math.random() * (max - min); -export const runPolling = async ({ minDelay, maxDelay, maxWaitTime, abortController, client, abortSignal }, input, acceptorChecks) => { - const { state, reason } = await acceptorChecks(client, input); - if (state !== WaiterState.RETRY) { - return { state, reason }; - } - let currentAttempt = 1; - const waitUntil = Date.now() + maxWaitTime * 1000; - const attemptCeiling = Math.log(maxDelay / minDelay) / Math.log(2) + 1; - while (true) { - if (abortController?.signal?.aborted || abortSignal?.aborted) { - return { state: WaiterState.ABORTED }; - } - const delay = exponentialBackoffWithJitter(minDelay, maxDelay, attemptCeiling, currentAttempt); - if (Date.now() + delay * 1000 > waitUntil) { - return { state: WaiterState.TIMEOUT }; - } - await sleep(delay); - const { state, reason } = await acceptorChecks(client, input); - if (state !== WaiterState.RETRY) { - return { state, reason }; - } - currentAttempt += 1; - } -}; diff --git a/node_modules/@smithy/util-waiter/dist-es/utils/index.js b/node_modules/@smithy/util-waiter/dist-es/utils/index.js deleted file mode 100644 index e15a156b..00000000 --- a/node_modules/@smithy/util-waiter/dist-es/utils/index.js +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./sleep"; -export * from "./validate"; diff --git a/node_modules/@smithy/util-waiter/dist-es/utils/sleep.js b/node_modules/@smithy/util-waiter/dist-es/utils/sleep.js deleted file mode 100644 index 789205d4..00000000 --- a/node_modules/@smithy/util-waiter/dist-es/utils/sleep.js +++ /dev/null @@ -1,3 +0,0 @@ -export const sleep = (seconds) => { - return new Promise((resolve) => setTimeout(resolve, seconds * 1000)); -}; diff --git a/node_modules/@smithy/util-waiter/dist-es/utils/validate.js b/node_modules/@smithy/util-waiter/dist-es/utils/validate.js deleted file mode 100644 index 9f5b3f19..00000000 --- a/node_modules/@smithy/util-waiter/dist-es/utils/validate.js +++ /dev/null @@ -1,17 +0,0 @@ -export const validateWaiterOptions = (options) => { - if (options.maxWaitTime < 1) { - throw new Error(`WaiterConfiguration.maxWaitTime must be greater than 0`); - } - else if (options.minDelay < 1) { - throw new Error(`WaiterConfiguration.minDelay must be greater than 0`); - } - else if (options.maxDelay < 1) { - throw new Error(`WaiterConfiguration.maxDelay must be greater than 0`); - } - else if (options.maxWaitTime <= options.minDelay) { - throw new Error(`WaiterConfiguration.maxWaitTime [${options.maxWaitTime}] must be greater than WaiterConfiguration.minDelay [${options.minDelay}] for this waiter`); - } - else if (options.maxDelay < options.minDelay) { - throw new Error(`WaiterConfiguration.maxDelay [${options.maxDelay}] must be greater than WaiterConfiguration.minDelay [${options.minDelay}] for this waiter`); - } -}; diff --git a/node_modules/@smithy/util-waiter/dist-es/waiter.js b/node_modules/@smithy/util-waiter/dist-es/waiter.js deleted file mode 100644 index a6026d04..00000000 --- a/node_modules/@smithy/util-waiter/dist-es/waiter.js +++ /dev/null @@ -1,34 +0,0 @@ -export const waiterServiceDefaults = { - minDelay: 2, - maxDelay: 120, -}; -export var WaiterState; -(function (WaiterState) { - WaiterState["ABORTED"] = "ABORTED"; - WaiterState["FAILURE"] = "FAILURE"; - WaiterState["SUCCESS"] = "SUCCESS"; - WaiterState["RETRY"] = "RETRY"; - WaiterState["TIMEOUT"] = "TIMEOUT"; -})(WaiterState || (WaiterState = {})); -export const checkExceptions = (result) => { - if (result.state === WaiterState.ABORTED) { - const abortError = new Error(`${JSON.stringify({ - ...result, - reason: "Request was aborted", - })}`); - abortError.name = "AbortError"; - throw abortError; - } - else if (result.state === WaiterState.TIMEOUT) { - const timeoutError = new Error(`${JSON.stringify({ - ...result, - reason: "Waiter has timed out", - })}`); - timeoutError.name = "TimeoutError"; - throw timeoutError; - } - else if (result.state !== WaiterState.SUCCESS) { - throw new Error(`${JSON.stringify({ result })}`); - } - return result; -}; diff --git a/node_modules/@smithy/util-waiter/dist-types/createWaiter.d.ts b/node_modules/@smithy/util-waiter/dist-types/createWaiter.d.ts deleted file mode 100644 index 16958029..00000000 --- a/node_modules/@smithy/util-waiter/dist-types/createWaiter.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { WaiterOptions, WaiterResult } from "./waiter"; -/** - * Create a waiter promise that only resolves when: - * 1. Abort controller is signaled - * 2. Max wait time is reached - * 3. `acceptorChecks` succeeds, or fails - * Otherwise, it invokes `acceptorChecks` with exponential-backoff delay. - * - * @internal - */ -export declare const createWaiter: (options: WaiterOptions, input: Input, acceptorChecks: (client: Client, input: Input) => Promise) => Promise; diff --git a/node_modules/@smithy/util-waiter/dist-types/index.d.ts b/node_modules/@smithy/util-waiter/dist-types/index.d.ts deleted file mode 100644 index d77f139a..00000000 --- a/node_modules/@smithy/util-waiter/dist-types/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./createWaiter"; -export * from "./waiter"; diff --git a/node_modules/@smithy/util-waiter/dist-types/poller.d.ts b/node_modules/@smithy/util-waiter/dist-types/poller.d.ts deleted file mode 100644 index 40089572..00000000 --- a/node_modules/@smithy/util-waiter/dist-types/poller.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { WaiterOptions, WaiterResult } from "./waiter"; -/** - * Function that runs polling as part of waiters. This will make one inital attempt and then - * subsequent attempts with an increasing delay. - * @param params - options passed to the waiter. - * @param client - AWS SDK Client - * @param input - client input - * @param stateChecker - function that checks the acceptor states on each poll. - */ -export declare const runPolling: ({ minDelay, maxDelay, maxWaitTime, abortController, client, abortSignal }: WaiterOptions, input: Input, acceptorChecks: (client: Client, input: Input) => Promise) => Promise; diff --git a/node_modules/@smithy/util-waiter/dist-types/ts3.4/createWaiter.d.ts b/node_modules/@smithy/util-waiter/dist-types/ts3.4/createWaiter.d.ts deleted file mode 100644 index f9b32425..00000000 --- a/node_modules/@smithy/util-waiter/dist-types/ts3.4/createWaiter.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { WaiterOptions, WaiterResult } from "./waiter"; -/** - * Create a waiter promise that only resolves when: - * 1. Abort controller is signaled - * 2. Max wait time is reached - * 3. `acceptorChecks` succeeds, or fails - * Otherwise, it invokes `acceptorChecks` with exponential-backoff delay. - * - * @internal - */ -export declare const createWaiter: (options: WaiterOptions, input: Input, acceptorChecks: (client: Client, input: Input) => Promise) => Promise; diff --git a/node_modules/@smithy/util-waiter/dist-types/ts3.4/index.d.ts b/node_modules/@smithy/util-waiter/dist-types/ts3.4/index.d.ts deleted file mode 100644 index be143d54..00000000 --- a/node_modules/@smithy/util-waiter/dist-types/ts3.4/index.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -export * from "./createWaiter"; -export * from "./waiter"; diff --git a/node_modules/@smithy/util-waiter/dist-types/ts3.4/poller.d.ts b/node_modules/@smithy/util-waiter/dist-types/ts3.4/poller.d.ts deleted file mode 100644 index 8b33c940..00000000 --- a/node_modules/@smithy/util-waiter/dist-types/ts3.4/poller.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { WaiterOptions, WaiterResult } from "./waiter"; -/** - * Function that runs polling as part of waiters. This will make one inital attempt and then - * subsequent attempts with an increasing delay. - * @param params - options passed to the waiter. - * @param client - AWS SDK Client - * @param input - client input - * @param stateChecker - function that checks the acceptor states on each poll. - */ -export declare const runPolling: ({ minDelay, maxDelay, maxWaitTime, abortController, client, abortSignal }: WaiterOptions, input: Input, acceptorChecks: (client: Client, input: Input) => Promise) => Promise; diff --git a/node_modules/@smithy/util-waiter/dist-types/ts3.4/utils/index.d.ts b/node_modules/@smithy/util-waiter/dist-types/ts3.4/utils/index.d.ts deleted file mode 100644 index 974384c9..00000000 --- a/node_modules/@smithy/util-waiter/dist-types/ts3.4/utils/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @internal - */ -export * from "./sleep"; -/** - * @internal - */ -export * from "./validate"; diff --git a/node_modules/@smithy/util-waiter/dist-types/ts3.4/utils/sleep.d.ts b/node_modules/@smithy/util-waiter/dist-types/ts3.4/utils/sleep.d.ts deleted file mode 100644 index f53553b0..00000000 --- a/node_modules/@smithy/util-waiter/dist-types/ts3.4/utils/sleep.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/** - * @internal - */ -export declare const sleep: (seconds: number) => Promise; diff --git a/node_modules/@smithy/util-waiter/dist-types/ts3.4/utils/validate.d.ts b/node_modules/@smithy/util-waiter/dist-types/ts3.4/utils/validate.d.ts deleted file mode 100644 index 73d79b0c..00000000 --- a/node_modules/@smithy/util-waiter/dist-types/ts3.4/utils/validate.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { WaiterOptions } from "../waiter"; -/** - * @internal - * - * Validates that waiter options are passed correctly - * @param options - a waiter configuration object - */ -export declare const validateWaiterOptions: (options: WaiterOptions) => void; diff --git a/node_modules/@smithy/util-waiter/dist-types/ts3.4/waiter.d.ts b/node_modules/@smithy/util-waiter/dist-types/ts3.4/waiter.d.ts deleted file mode 100644 index 871c11f6..00000000 --- a/node_modules/@smithy/util-waiter/dist-types/ts3.4/waiter.d.ts +++ /dev/null @@ -1,44 +0,0 @@ -import { WaiterConfiguration as WaiterConfiguration__ } from "@smithy/types"; -/** - * @internal - */ -export interface WaiterConfiguration extends WaiterConfiguration__ { -} -/** - * @internal - */ -export declare const waiterServiceDefaults: { - minDelay: number; - maxDelay: number; -}; -/** - * @internal - */ -export type WaiterOptions = WaiterConfiguration & Required, "minDelay" | "maxDelay">>; -/** - * @internal - */ -export declare enum WaiterState { - ABORTED = "ABORTED", - FAILURE = "FAILURE", - SUCCESS = "SUCCESS", - RETRY = "RETRY", - TIMEOUT = "TIMEOUT" -} -/** - * @internal - */ -export type WaiterResult = { - state: WaiterState; - /** - * (optional) Indicates a reason for why a waiter has reached its state. - */ - reason?: any; -}; -/** - * @internal - * - * Handles and throws exceptions resulting from the waiterResult - * @param result - WaiterResult - */ -export declare const checkExceptions: (result: WaiterResult) => WaiterResult; diff --git a/node_modules/@smithy/util-waiter/dist-types/utils/index.d.ts b/node_modules/@smithy/util-waiter/dist-types/utils/index.d.ts deleted file mode 100644 index b9a32052..00000000 --- a/node_modules/@smithy/util-waiter/dist-types/utils/index.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -/** - * @internal - */ -export * from "./sleep"; -/** - * @internal - */ -export * from "./validate"; diff --git a/node_modules/@smithy/util-waiter/dist-types/utils/sleep.d.ts b/node_modules/@smithy/util-waiter/dist-types/utils/sleep.d.ts deleted file mode 100644 index e5d9f73e..00000000 --- a/node_modules/@smithy/util-waiter/dist-types/utils/sleep.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -/** - * @internal - */ -export declare const sleep: (seconds: number) => Promise; diff --git a/node_modules/@smithy/util-waiter/dist-types/utils/validate.d.ts b/node_modules/@smithy/util-waiter/dist-types/utils/validate.d.ts deleted file mode 100644 index a847eee6..00000000 --- a/node_modules/@smithy/util-waiter/dist-types/utils/validate.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { WaiterOptions } from "../waiter"; -/** - * @internal - * - * Validates that waiter options are passed correctly - * @param options - a waiter configuration object - */ -export declare const validateWaiterOptions: (options: WaiterOptions) => void; diff --git a/node_modules/@smithy/util-waiter/dist-types/waiter.d.ts b/node_modules/@smithy/util-waiter/dist-types/waiter.d.ts deleted file mode 100644 index 4641c133..00000000 --- a/node_modules/@smithy/util-waiter/dist-types/waiter.d.ts +++ /dev/null @@ -1,44 +0,0 @@ -import { WaiterConfiguration as WaiterConfiguration__ } from "@smithy/types"; -/** - * @internal - */ -export interface WaiterConfiguration extends WaiterConfiguration__ { -} -/** - * @internal - */ -export declare const waiterServiceDefaults: { - minDelay: number; - maxDelay: number; -}; -/** - * @internal - */ -export type WaiterOptions = WaiterConfiguration & Required, "minDelay" | "maxDelay">>; -/** - * @internal - */ -export declare enum WaiterState { - ABORTED = "ABORTED", - FAILURE = "FAILURE", - SUCCESS = "SUCCESS", - RETRY = "RETRY", - TIMEOUT = "TIMEOUT" -} -/** - * @internal - */ -export type WaiterResult = { - state: WaiterState; - /** - * (optional) Indicates a reason for why a waiter has reached its state. - */ - reason?: any; -}; -/** - * @internal - * - * Handles and throws exceptions resulting from the waiterResult - * @param result - WaiterResult - */ -export declare const checkExceptions: (result: WaiterResult) => WaiterResult; diff --git a/node_modules/@smithy/util-waiter/package.json b/node_modules/@smithy/util-waiter/package.json deleted file mode 100644 index 79ef28a4..00000000 --- a/node_modules/@smithy/util-waiter/package.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "name": "@smithy/util-waiter", - "version": "2.0.14", - "description": "Shared utilities for client waiters for the AWS SDK", - "dependencies": { - "@smithy/abort-controller": "^2.0.14", - "@smithy/types": "^2.6.0", - "tslib": "^2.5.0" - }, - "scripts": { - "build": "concurrently 'yarn:build:cjs' 'yarn:build:es' 'yarn:build:types && yarn build:types:downlevel'", - "build:cjs": "yarn g:tsc -p tsconfig.cjs.json", - "build:es": "yarn g:tsc -p tsconfig.es.json", - "build:types": "yarn g:tsc -p tsconfig.types.json", - "build:types:downlevel": "downlevel-dts dist-types dist-types/ts3.4", - "stage-release": "rimraf ./.release && yarn pack && mkdir ./.release && tar zxvf ./package.tgz --directory ./.release && rm ./package.tgz", - "clean": "rimraf ./dist-* && rimraf *.tsbuildinfo", - "lint": "eslint -c ../../.eslintrc.js \"src/**/*.ts\"", - "format": "prettier --config ../../prettier.config.js --ignore-path ../.prettierignore --write \"**/*.{ts,md,json}\"", - "test": "yarn g:jest" - }, - "author": { - "name": "AWS SDK for JavaScript Team", - "url": "https://aws.amazon.com/javascript/" - }, - "license": "Apache-2.0", - "main": "./dist-cjs/index.js", - "module": "./dist-es/index.js", - "types": "./dist-types/index.d.ts", - "engines": { - "node": ">=14.0.0" - }, - "typesVersions": { - "<4.0": { - "dist-types/*": [ - "dist-types/ts3.4/*" - ] - } - }, - "files": [ - "dist-*/**" - ], - "homepage": "https://github.com/awslabs/smithy-typescript/tree/main/packages/util-waiter", - "repository": { - "type": "git", - "url": "https://github.com/awslabs/smithy-typescript.git", - "directory": "packages/util-waiter" - }, - "devDependencies": { - "@tsconfig/recommended": "1.0.1", - "concurrently": "7.0.0", - "downlevel-dts": "0.10.1", - "rimraf": "3.0.2", - "typedoc": "0.23.23" - }, - "typedoc": { - "entryPoint": "src/index.ts" - }, - "publishConfig": { - "directory": ".release/package" - } -} \ No newline at end of file diff --git a/node_modules/bech32-buffer/CHANGELOG.md b/node_modules/bech32-buffer/CHANGELOG.md deleted file mode 100644 index 3dd63708..00000000 --- a/node_modules/bech32-buffer/CHANGELOG.md +++ /dev/null @@ -1,62 +0,0 @@ -# Changelog - -All notable changes to this project will be documented in this file. -The project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html). - -## [Unreleased] - -## 0.2.1 - 2022-09-27 - -### Fixed - -- Fix encoding with uppercase prefix. Previously, such prefixes led to incorrect - checksum. With the fix, the prefix case is retained for the encoded string. - -## 0.2.0 - 2021-11-21 - -No substantial changes compared to the 0.2.0-rc.0 release. - -## 0.2.0-rc.0 - 2021-11-07 - -### Added - -- Support [Bech32m encoding] for arbitrary data and Bitcoin addresses. - The new functionality is available on [the demo web page](https://slowli.github.io/bech32-buffer/). - -## 0.1.3 - 2021-05-10 - -### Added - -- Document TypeScript typings. - -- Update readme to better document main package APIs. - -### Internal improvements - -- Update dev dependencies. - -- Update Bootstrap / JS dependencies for the demo page. - -## 0.1.2 - 2018-12-23 - -### Added - -- Add TypeScript typings for the package. - -### Internal improvements - -- Update dev dependencies. - -## 0.1.1 - 2018-12-15 - -### Added - -- Test browser support and add a browser version of the package in the `dist` directory. - -- Support Bitcoin addresses via `BitcoinAddress` class. - -## 0.1.0 - 2017-07-23 - -The initial release of `bech32-buffer`. - -[Bech32m encoding]: https://github.com/bitcoin/bips/blob/master/bip-0350.mediawiki diff --git a/node_modules/bech32-buffer/LICENSE b/node_modules/bech32-buffer/LICENSE deleted file mode 100644 index 8f71f43f..00000000 --- a/node_modules/bech32-buffer/LICENSE +++ /dev/null @@ -1,202 +0,0 @@ - Apache License - Version 2.0, January 2004 - http://www.apache.org/licenses/ - - TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION - - 1. Definitions. - - "License" shall mean the terms and conditions for use, reproduction, - and distribution as defined by Sections 1 through 9 of this document. - - "Licensor" shall mean the copyright owner or entity authorized by - the copyright owner that is granting the License. - - "Legal Entity" shall mean the union of the acting entity and all - other entities that control, are controlled by, or are under common - control with that entity. For the purposes of this definition, - "control" means (i) the power, direct or indirect, to cause the - direction or management of such entity, whether by contract or - otherwise, or (ii) ownership of fifty percent (50%) or more of the - outstanding shares, or (iii) beneficial ownership of such entity. - - "You" (or "Your") shall mean an individual or Legal Entity - exercising permissions granted by this License. - - "Source" form shall mean the preferred form for making modifications, - including but not limited to software source code, documentation - source, and configuration files. - - "Object" form shall mean any form resulting from mechanical - transformation or translation of a Source form, including but - not limited to compiled object code, generated documentation, - and conversions to other media types. - - "Work" shall mean the work of authorship, whether in Source or - Object form, made available under the License, as indicated by a - copyright notice that is included in or attached to the work - (an example is provided in the Appendix below). - - "Derivative Works" shall mean any work, whether in Source or Object - form, that is based on (or derived from) the Work and for which the - editorial revisions, annotations, elaborations, or other modifications - represent, as a whole, an original work of authorship. For the purposes - of this License, Derivative Works shall not include works that remain - separable from, or merely link (or bind by name) to the interfaces of, - the Work and Derivative Works thereof. - - "Contribution" shall mean any work of authorship, including - the original version of the Work and any modifications or additions - to that Work or Derivative Works thereof, that is intentionally - submitted to Licensor for inclusion in the Work by the copyright owner - or by an individual or Legal Entity authorized to submit on behalf of - the copyright owner. For the purposes of this definition, "submitted" - means any form of electronic, verbal, or written communication sent - to the Licensor or its representatives, including but not limited to - communication on electronic mailing lists, source code control systems, - and issue tracking systems that are managed by, or on behalf of, the - Licensor for the purpose of discussing and improving the Work, but - excluding communication that is conspicuously marked or otherwise - designated in writing by the copyright owner as "Not a Contribution." - - "Contributor" shall mean Licensor and any individual or Legal Entity - on behalf of whom a Contribution has been received by Licensor and - subsequently incorporated within the Work. - - 2. Grant of Copyright License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - copyright license to reproduce, prepare Derivative Works of, - publicly display, publicly perform, sublicense, and distribute the - Work and such Derivative Works in Source or Object form. - - 3. Grant of Patent License. Subject to the terms and conditions of - this License, each Contributor hereby grants to You a perpetual, - worldwide, non-exclusive, no-charge, royalty-free, irrevocable - (except as stated in this section) patent license to make, have made, - use, offer to sell, sell, import, and otherwise transfer the Work, - where such license applies only to those patent claims licensable - by such Contributor that are necessarily infringed by their - Contribution(s) alone or by combination of their Contribution(s) - with the Work to which such Contribution(s) was submitted. If You - institute patent litigation against any entity (including a - cross-claim or counterclaim in a lawsuit) alleging that the Work - or a Contribution incorporated within the Work constitutes direct - or contributory patent infringement, then any patent licenses - granted to You under this License for that Work shall terminate - as of the date such litigation is filed. - - 4. Redistribution. You may reproduce and distribute copies of the - Work or Derivative Works thereof in any medium, with or without - modifications, and in Source or Object form, provided that You - meet the following conditions: - - (a) You must give any other recipients of the Work or - Derivative Works a copy of this License; and - - (b) You must cause any modified files to carry prominent notices - stating that You changed the files; and - - (c) You must retain, in the Source form of any Derivative Works - that You distribute, all copyright, patent, trademark, and - attribution notices from the Source form of the Work, - excluding those notices that do not pertain to any part of - the Derivative Works; and - - (d) If the Work includes a "NOTICE" text file as part of its - distribution, then any Derivative Works that You distribute must - include a readable copy of the attribution notices contained - within such NOTICE file, excluding those notices that do not - pertain to any part of the Derivative Works, in at least one - of the following places: within a NOTICE text file distributed - as part of the Derivative Works; within the Source form or - documentation, if provided along with the Derivative Works; or, - within a display generated by the Derivative Works, if and - wherever such third-party notices normally appear. The contents - of the NOTICE file are for informational purposes only and - do not modify the License. You may add Your own attribution - notices within Derivative Works that You distribute, alongside - or as an addendum to the NOTICE text from the Work, provided - that such additional attribution notices cannot be construed - as modifying the License. - - You may add Your own copyright statement to Your modifications and - may provide additional or different license terms and conditions - for use, reproduction, or distribution of Your modifications, or - for any such Derivative Works as a whole, provided Your use, - reproduction, and distribution of the Work otherwise complies with - the conditions stated in this License. - - 5. Submission of Contributions. Unless You explicitly state otherwise, - any Contribution intentionally submitted for inclusion in the Work - by You to the Licensor shall be under the terms and conditions of - this License, without any additional terms or conditions. - Notwithstanding the above, nothing herein shall supersede or modify - the terms of any separate license agreement you may have executed - with Licensor regarding such Contributions. - - 6. Trademarks. This License does not grant permission to use the trade - names, trademarks, service marks, or product names of the Licensor, - except as required for reasonable and customary use in describing the - origin of the Work and reproducing the content of the NOTICE file. - - 7. Disclaimer of Warranty. Unless required by applicable law or - agreed to in writing, Licensor provides the Work (and each - Contributor provides its Contributions) on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or - implied, including, without limitation, any warranties or conditions - of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A - PARTICULAR PURPOSE. You are solely responsible for determining the - appropriateness of using or redistributing the Work and assume any - risks associated with Your exercise of permissions under this License. - - 8. Limitation of Liability. In no event and under no legal theory, - whether in tort (including negligence), contract, or otherwise, - unless required by applicable law (such as deliberate and grossly - negligent acts) or agreed to in writing, shall any Contributor be - liable to You for damages, including any direct, indirect, special, - incidental, or consequential damages of any character arising as a - result of this License or out of the use or inability to use the - Work (including but not limited to damages for loss of goodwill, - work stoppage, computer failure or malfunction, or any and all - other commercial damages or losses), even if such Contributor - has been advised of the possibility of such damages. - - 9. Accepting Warranty or Additional Liability. While redistributing - the Work or Derivative Works thereof, You may choose to offer, - and charge a fee for, acceptance of support, warranty, indemnity, - or other liability obligations and/or rights consistent with this - License. However, in accepting such obligations, You may act only - on Your own behalf and on Your sole responsibility, not on behalf - of any other Contributor, and only if You agree to indemnify, - defend, and hold each Contributor harmless for any liability - incurred by, or claims asserted against, such Contributor by reason - of your accepting any such warranty or additional liability. - - END OF TERMS AND CONDITIONS - - APPENDIX: How to apply the Apache License to your work. - - To apply the Apache License to your work, attach the following - boilerplate notice, with the fields enclosed by brackets "{}" - replaced with your own identifying information. (Don't include - the brackets!) The text should be enclosed in the appropriate - comment syntax for the file format. We also recommend that a - file or class name and description of purpose be included on the - same "printed page" as the copyright notice for easier - identification within third-party archives. - - Copyright {yyyy} {name of copyright owner} - - Licensed under the Apache License, Version 2.0 (the "License"); - you may not use this file except in compliance with the License. - You may obtain a copy of the License at - - http://www.apache.org/licenses/LICENSE-2.0 - - Unless required by applicable law or agreed to in writing, software - distributed under the License is distributed on an "AS IS" BASIS, - WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - See the License for the specific language governing permissions and - limitations under the License. - diff --git a/node_modules/bech32-buffer/README.md b/node_modules/bech32-buffer/README.md deleted file mode 100644 index 499c189a..00000000 --- a/node_modules/bech32-buffer/README.md +++ /dev/null @@ -1,185 +0,0 @@ -# Bech32(m) Encoding for Arbitrary Buffers - -[![Build status][workflow-image]][workflow-url] -[![Code coverage][coveralls-image]][coveralls-url] -[![Demo][demo-image]][demo-url] - -[workflow-image]: https://github.com/slowli/bech32-buffer/workflows/Node.js%20CI/badge.svg?branch=master -[workflow-url]: https://github.com/slowli/bech32-buffer/actions -[coveralls-image]: https://img.shields.io/coveralls/slowli/bech32-buffer.svg -[coveralls-url]: https://coveralls.io/github/slowli/bech32-buffer -[demo-image]: https://img.shields.io/badge/demo-live-blue.svg -[demo-url]: https://slowli.github.io/bech32-buffer/ - -**Bech32** is a Bitcoin address format specified in [BIP 173][bip-173] and [BIP 350][bip-350]. -Among its advantages are: better adaptability to QR codes and in voice conversations, -and improved error detection. This library generalizes Bech32 and its modified version -(Bech32m) to encode any reasonably short byte buffers. - -## Usage - -### Encoding data - -```typescript -declare function encode( - prefix: string, - data: Uint8Array, - encoding: 'bech32' | 'bech32m' = 'bech32' -): string; -``` - -Encodes binary `data` with the specified human-readable `prefix` into a Bech32(m) string. -The case is preserved: if the prefix is uppercase, then the output will be uppercase -as well; otherwise, the output will be lowercase (including the case when the prefix does -not contain any letters). - -#### Arguments - -- **prefix:** string - Human-readable prefix to hint what kind of data Bech32 encodes. Must contain - ASCII chars in the range 33-126 -- **data:** Uint8Array - Binary data to encode -- **encoding:** `bech32` or `bech32m` - Specifies whether to use the original Bech32 encoding from [BIP 173][bip-173] - or the modified encoding from [BIP 350][bip-350]; they differ - in how a checksum is computed. If omitted, the original encoding is used. - -#### Return value - -String containing: - -1. `prefix` -2. `'1'` separator char -3. `data` encoded with the variant of base32 encoding used by Bech32, and -4. 6-char checksum calculated based on `prefix` and `data` - -#### Example - -```javascript -const bech32 = require('bech32-buffer'); -const data = new Uint8Array(20); -bech32.encode('test', data); -// 'test1qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqql6aptf' -``` - -### Decoding data - -```typescript -declare function decode(message: string): { - prefix: string, - encoding: 'bech32' | 'bech32m', - data: Uint8Array -}; -``` - -Extracts human-readable prefix and binary data from the Bech32-encoded string. - -#### Arguments - -- **data:** string - String to decode - -#### Return value - -An object with the following fields: - -- **prefix:** string - Human-readable prefix -- **encoding:** `bech32` or `bech32m` - Encoding variant inferred from the checksum. -- **data:** Uint8Array - Binary data encoded into the input string - -Decoding may fail for a variety of reasons (e.g., invalid checksum, or invalid -chars in the input). In this case, `decode()` throws an exception -with a descriptive message. - -#### Example - -```javascript -const bech32 = require('bech32-buffer'); -const data = 'lost1qsyq7yqh9gk0szs5'; -bech32.decode(data); -// { -// prefix: 'lost', -// encoding: 'bech32', -// data: Uint8Array([ 4, 8, 15, 16, 23, 42 ]) -// } -``` - -### Bitcoin addresses - -```typescript -declare class BitcoinAddress { - prefix: 'bc' | 'tb'; - scriptVersion: number; - data: Uint8Array; - - static decode(message: string): BitcoinAddress; - constructor(prefix: 'bc' | 'tb', scriptVersion: number, data: Uint8Array); - encode(): string; - type(): void | 'p2wsh' | 'p2wpkh'; -} -``` - -Provides basic functionality to work with Bech32 encoding of Bitcoin addresses. -Addresses can be `decode`d from strings and `encode`d into strings. -It is also possible to check the `type` of an address. P2WSH and P2WPKH address -types are defined per [BIP 141]. Encoding constraints are defined per [BIP 173][bip-173] -and [BIP 350][bip-350]. - -#### Example - -```javascript -const { BitcoinAddress } = require('bech32-buffer'); -const address = BitcoinAddress.decode('BC1QW508D6QEJXTDG4Y5R3ZARVARY0C5XW7KV8F3T4'); -// address.prefix === 'bc' -// address.scriptVersion === 0 -// address.data.length === 20 -// address.type() === 'p2wpkh' -``` - -## Use in Browsers - -Use `dist/bech32-buffer.min.js` from the package distribution -or your favorite browserifier. In the first case, -the library will be available as a `bech32` global variable: - -```html - - - -``` - -Check out [the web demo](https://slowli.github.io/bech32-buffer/) to see how -**bech32-buffer** works in browser. It is also available in the `examples` -directory of the package. - -## Acknowledgements - -[BIP 173][bip-173] is authored by Pieter Wuille and Greg Maxwell and is licensed -under the 2-clause BSD license. -[BIP 350][bip-350] is authored by Pieter Wuille and is licensed -under the 2-clause BSD license. - -There are at least 2 existing implementations of Bech32 for JavaScript: - -- [The reference implementation][ref] by Pieter Wuille -- [Another implementation][bech32] available as the [`bech32` package][bech32-pkg] - -Both implementations are Bitcoin-specific, and the reference implementation -is also not in the Npm / yarn package manager. - -## License - -**bech32-buffer** is available under [Apache-2.0 license](LICENSE). - -[bip-173]: https://github.com/bitcoin/bips/blob/master/bip-0173.mediawiki -[bip-350]: https://github.com/bitcoin/bips/blob/master/bip-0350.mediawiki -[ref]: https://github.com/sipa/bech32/tree/master/ref/javascript -[bech32]: https://github.com/bitcoinjs/bech32 -[bech32-pkg]: https://www.npmjs.com/package/bech32 -[BIP 141]: https://github.com/bitcoin/bips/blob/master/bip-0141.mediawiki diff --git a/node_modules/bech32-buffer/dist/bech32-buffer.min.js b/node_modules/bech32-buffer/dist/bech32-buffer.min.js deleted file mode 100644 index 0664a0c8..00000000 --- a/node_modules/bech32-buffer/dist/bech32-buffer.min.js +++ /dev/null @@ -1,11 +0,0 @@ -(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.bech32 = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i=e;)i-=e,d[j]=h>>i&g,j+=1}),f)0=c)throw new Error("Excessive padding: ".concat(i," (max ").concat(c-1," allowed)"));if(0!=h%(1<b)throw new RangeError("Invalid bits per element; 1 to 8 expected");return convert(toBitArrayUnchecked(a),8,c,b,!0),c}function fromBits(a,b,c){if(8b)throw new RangeError("Invalid bits per element; 1 to 8 expected");return convert(a,b,toBitArrayUnchecked(c),8,!1),c} - -},{}],2:[function(require,module,exports){ -"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.CHECKSUM_LENGTH=void 0,exports.createChecksum=createChecksum,exports.decode=decode,exports.decodeWithPrefix=decodeWithPrefix,exports.detectCase=detectCase,exports.encode=encode,exports.expandPrefix=expandPrefix,exports.verifyChecksum=verifyChecksum;var _bitConverter=require("./bit-converter"),CHARSET="qpzry9x8gf2tvdw0s3jn54khce6mua7l",BECH32M_CHECKSUM=734539939,MIN_CHAR_CODE=33,MAX_CHAR_CODE=126,CHECKSUM_LENGTH=6;exports.CHECKSUM_LENGTH=CHECKSUM_LENGTH;var CHAR_LOOKUP=function(){for(var a=new Map,b=0;b>25>>d)?b:b^c},(33554431&a)<<5^b)},1)}function expandPrefix(a,b){for(var c,d=0;d>5,b[d+a.length+1]=31&c;b[a.length]=0}function verifyChecksum(a){switch(polymod(a)){case 1:return"bech32";case BECH32M_CHECKSUM:return"bech32m";default:}}function createChecksum(a,b){var c;switch(b){case"bech32":c=1;break;case"bech32m":c=BECH32M_CHECKSUM;break;default:throw Error("Invalid encoding value: ".concat(b,"; expected bech32 or bech32m"));}for(var d,e=polymod(a)^c,f=0;f>d}function encode(a){return a.reduce(function(a,b){return a+CHARSET[b]},"")}function decode(a,b){for(var c,d=b||(0,_bitConverter.createBitArray)(a.length),e=0;eMAX_CHAR_CODE)throw new TypeError("Invalid char in ".concat(c,": ").concat(b,"; ")+"should be in ASCII range ".concat(MIN_CHAR_CODE,"-").concat(MAX_CHAR_CODE));e=e||65<=b&&90>=b,d=d||97<=b&&122>=b}if(d&&e)throw new TypeError("Mixed-case ".concat(c));else return e?"upper":d?"lower":null} - -},{"./bit-converter":1}],3:[function(require,module,exports){ -"use strict";Object.defineProperty(exports,"__esModule",{value:!0}),exports.BitcoinAddress=void 0,exports.decode=decode,exports.decodeTo5BitArray=decodeTo5BitArray,exports.encode=encode,exports.encode5BitArray=encode5BitArray,exports.from5BitArray=from5BitArray,exports.to5BitArray=to5BitArray;var _bitConverter=require("./bit-converter"),_encoding=require("./encoding");function _classCallCheck(a,b){if(!(a instanceof b))throw new TypeError("Cannot call a class as a function")}function _defineProperties(a,b){for(var c,d=0;dMAX_ENC_LENGTH)throw new Error("Message to be produced is too long (max ".concat(MAX_ENC_LENGTH," supported)"));var f=null!==(c=(0,_encoding.detectCase)(a,"prefix"))&&void 0!==c?c:"lower",g=(0,_bitConverter.createBitArray)(e);(0,_encoding.expandPrefix)(a.toLowerCase(),g.subarray(0,2*a.length+1));var h=g.subarray(2*a.length+1,g.length-_encoding.CHECKSUM_LENGTH);h.set(b),(0,_encoding.createChecksum)(g,d);var i=(0,_encoding.encode)(g.subarray(2*a.length+1));return"upper"===f&&(i=i.toUpperCase()),"".concat(a,"1").concat(i)}function encode(a,b){var c=2MAX_ENC_LENGTH)throw new TypeError("Message too long; max ".concat(MAX_ENC_LENGTH," expected"));(0,_encoding.detectCase)(a);var b=a.toLowerCase(),c=b.lastIndexOf("1");if(0>c)throw new Error("No separator char (\"1\") found");if(c>a.length-_encoding.CHECKSUM_LENGTH-1)throw new Error("Data part of the message too short (at least ".concat(_encoding.CHECKSUM_LENGTH," chars expected)"));var d=b.substring(0,c),e=(0,_encoding.decodeWithPrefix)(d,b.substring(c+1)),f=(0,_encoding.verifyChecksum)(e);if(f===void 0)throw new Error("Invalid checksum");return{prefix:d,encoding:f,data:e.subarray(2*d.length+1,e.length-_encoding.CHECKSUM_LENGTH)}}function decode(a){var b=decodeTo5BitArray(a),c=b.prefix,d=b.encoding,e=b.data;return{prefix:c,encoding:d,data:from5BitArray(e)}}var BitcoinAddress=function(){var a=Math.ceil;function b(a,c,d){if(_classCallCheck(this,b),"bc"!==a&&"tb"!==a)throw new Error("Invalid human-readable prefix, \"bc\" or \"tb\" expected");if(0>c||16d.length||40 - - - - - - - - Bech32 Demo - - - - -
-
-

bech32-buffer

-

Bech32 is a Bitcoin address format proposed by Pieter Wuille and Greg Maxwell in BIP 173 and later amended by BIP 350. - Besides Bitcoin addresses, Bech32 can encode any short binary data.

-
-
- -
-
-
-
-
- -
-
-
-
-
-
- -
- -
-
A short tag describing what a Bech32-encoded string is used for.
-
-
- -
-
- - - - -
-
-
-
-
-
- -
-
- - - - -
-
-
-
- -
- -
-
Note that version 0 scripts should have length 20 or 32 bytes.
-
-
-
-
- - -
Binary data (in hex) to be encoded into Bech32.
-
- - - Random data -
-
-
-
- -
-
-

Bech32

-
-
-
-
- - -
Encoded Bech32 string.
-
- - -
-
-
-
-
- - -
- - - - - - - - - - diff --git a/node_modules/bech32-buffer/examples/qrcode.min.js b/node_modules/bech32-buffer/examples/qrcode.min.js deleted file mode 100644 index 6451a97b..00000000 --- a/node_modules/bech32-buffer/examples/qrcode.min.js +++ /dev/null @@ -1,1991 +0,0 @@ -(function(f){if(typeof exports==="object"&&typeof module!=="undefined"){module.exports=f()}else if(typeof define==="function"&&define.amd){define([],f)}else{var g;if(typeof window!=="undefined"){g=window}else if(typeof global!=="undefined"){g=global}else if(typeof self!=="undefined"){g=self}else{g=this}g.qrcode = f()}})(function(){var define,module,exports;return (function(){function r(e,n,t){function o(i,f){if(!n[i]){if(!e[i]){var c="function"==typeof require&&require;if(!f&&c)return c(i,!0);if(u)return u(i,!0);var a=new Error("Cannot find module '"+i+"'");throw a.code="MODULE_NOT_FOUND",a}var p=n[i]={exports:{}};e[i][0].call(p.exports,function(r){var n=e[i][1][r];return o(n||r)},p,p.exports,r,e,n,t)}return n[i].exports}for(var u="function"==typeof require&&require,i=0;i= 7) { - setupTypeNumber(test); - } - - if (_dataCache == null) { - _dataCache = createData(_typeNumber, _errorCorrectionLevel, _dataList); - } - - mapData(_dataCache, maskPattern); - }; - - var setupPositionProbePattern = function (row, col) { - for (var r = -1; r <= 7; r += 1) { - if (row + r <= -1 || _moduleCount <= row + r) continue; - - for (var c = -1; c <= 7; c += 1) { - if (col + c <= -1 || _moduleCount <= col + c) continue; - - if (0 <= r && r <= 6 && (c == 0 || c == 6) || 0 <= c && c <= 6 && (r == 0 || r == 6) || 2 <= r && r <= 4 && 2 <= c && c <= 4) { - _modules[row + r][col + c] = true; - } else { - _modules[row + r][col + c] = false; - } - } - } - }; - - var getBestMaskPattern = function () { - var minLostPoint = 0; - var pattern = 0; - - for (var i = 0; i < 8; i += 1) { - makeImpl(true, i); - var lostPoint = QRUtil.getLostPoint(_this); - - if (i == 0 || minLostPoint > lostPoint) { - minLostPoint = lostPoint; - pattern = i; - } - } - - return pattern; - }; - - var setupTimingPattern = function () { - for (var r = 8; r < _moduleCount - 8; r += 1) { - if (_modules[r][6] != null) { - continue; - } - - _modules[r][6] = r % 2 == 0; - } - - for (var c = 8; c < _moduleCount - 8; c += 1) { - if (_modules[6][c] != null) { - continue; - } - - _modules[6][c] = c % 2 == 0; - } - }; - - var setupPositionAdjustPattern = function () { - var pos = QRUtil.getPatternPosition(_typeNumber); - - for (var i = 0; i < pos.length; i += 1) { - for (var j = 0; j < pos.length; j += 1) { - var row = pos[i]; - var col = pos[j]; - - if (_modules[row][col] != null) { - continue; - } - - for (var r = -2; r <= 2; r += 1) { - for (var c = -2; c <= 2; c += 1) { - if (r == -2 || r == 2 || c == -2 || c == 2 || r == 0 && c == 0) { - _modules[row + r][col + c] = true; - } else { - _modules[row + r][col + c] = false; - } - } - } - } - } - }; - - var setupTypeNumber = function (test) { - var bits = QRUtil.getBCHTypeNumber(_typeNumber); - - for (var i = 0; i < 18; i += 1) { - var mod = !test && (bits >> i & 1) == 1; - _modules[Math.floor(i / 3)][i % 3 + _moduleCount - 8 - 3] = mod; - } - - for (var i = 0; i < 18; i += 1) { - var mod = !test && (bits >> i & 1) == 1; - _modules[i % 3 + _moduleCount - 8 - 3][Math.floor(i / 3)] = mod; - } - }; - - var setupTypeInfo = function (test, maskPattern) { - var data = _errorCorrectionLevel << 3 | maskPattern; - var bits = QRUtil.getBCHTypeInfo(data); // vertical - - for (var i = 0; i < 15; i += 1) { - var mod = !test && (bits >> i & 1) == 1; - - if (i < 6) { - _modules[i][8] = mod; - } else if (i < 8) { - _modules[i + 1][8] = mod; - } else { - _modules[_moduleCount - 15 + i][8] = mod; - } - } // horizontal - - - for (var i = 0; i < 15; i += 1) { - var mod = !test && (bits >> i & 1) == 1; - - if (i < 8) { - _modules[8][_moduleCount - i - 1] = mod; - } else if (i < 9) { - _modules[8][15 - i - 1 + 1] = mod; - } else { - _modules[8][15 - i - 1] = mod; - } - } // fixed module - - - _modules[_moduleCount - 8][8] = !test; - }; - - var mapData = function (data, maskPattern) { - var inc = -1; - var row = _moduleCount - 1; - var bitIndex = 7; - var byteIndex = 0; - var maskFunc = QRUtil.getMaskFunction(maskPattern); - - for (var col = _moduleCount - 1; col > 0; col -= 2) { - if (col == 6) col -= 1; - - while (true) { - for (var c = 0; c < 2; c += 1) { - if (_modules[row][col - c] == null) { - var dark = false; - - if (byteIndex < data.length) { - dark = (data[byteIndex] >>> bitIndex & 1) == 1; - } - - var mask = maskFunc(row, col - c); - - if (mask) { - dark = !dark; - } - - _modules[row][col - c] = dark; - bitIndex -= 1; - - if (bitIndex == -1) { - byteIndex += 1; - bitIndex = 7; - } - } - } - - row += inc; - - if (row < 0 || _moduleCount <= row) { - row -= inc; - inc = -inc; - break; - } - } - } - }; - - var createBytes = function (buffer, rsBlocks) { - var offset = 0; - var maxDcCount = 0; - var maxEcCount = 0; - var dcdata = new Array(rsBlocks.length); - var ecdata = new Array(rsBlocks.length); - - for (var r = 0; r < rsBlocks.length; r += 1) { - var dcCount = rsBlocks[r].dataCount; - var ecCount = rsBlocks[r].totalCount - dcCount; - maxDcCount = Math.max(maxDcCount, dcCount); - maxEcCount = Math.max(maxEcCount, ecCount); - dcdata[r] = new Array(dcCount); - - for (var i = 0; i < dcdata[r].length; i += 1) { - dcdata[r][i] = 0xff & buffer.getBuffer()[i + offset]; - } - - offset += dcCount; - var rsPoly = QRUtil.getErrorCorrectPolynomial(ecCount); - var rawPoly = qrPolynomial(dcdata[r], rsPoly.getLength() - 1); - var modPoly = rawPoly.mod(rsPoly); - ecdata[r] = new Array(rsPoly.getLength() - 1); - - for (var i = 0; i < ecdata[r].length; i += 1) { - var modIndex = i + modPoly.getLength() - ecdata[r].length; - ecdata[r][i] = modIndex >= 0 ? modPoly.getAt(modIndex) : 0; - } - } - - var totalCodeCount = 0; - - for (var i = 0; i < rsBlocks.length; i += 1) { - totalCodeCount += rsBlocks[i].totalCount; - } - - var data = new Array(totalCodeCount); - var index = 0; - - for (var i = 0; i < maxDcCount; i += 1) { - for (var r = 0; r < rsBlocks.length; r += 1) { - if (i < dcdata[r].length) { - data[index] = dcdata[r][i]; - index += 1; - } - } - } - - for (var i = 0; i < maxEcCount; i += 1) { - for (var r = 0; r < rsBlocks.length; r += 1) { - if (i < ecdata[r].length) { - data[index] = ecdata[r][i]; - index += 1; - } - } - } - - return data; - }; - - var createData = function (typeNumber, errorCorrectionLevel, dataList) { - var rsBlocks = QRRSBlock.getRSBlocks(typeNumber, errorCorrectionLevel); - var buffer = qrBitBuffer(); - - for (var i = 0; i < dataList.length; i += 1) { - var data = dataList[i]; - buffer.put(data.getMode(), 4); - buffer.put(data.getLength(), QRUtil.getLengthInBits(data.getMode(), typeNumber)); - data.write(buffer); - } // calc num max data. - - - var totalDataCount = 0; - - for (var i = 0; i < rsBlocks.length; i += 1) { - totalDataCount += rsBlocks[i].dataCount; - } - - if (buffer.getLengthInBits() > totalDataCount * 8) { - throw 'code length overflow. (' + buffer.getLengthInBits() + '>' + totalDataCount * 8 + ')'; - } // end code - - - if (buffer.getLengthInBits() + 4 <= totalDataCount * 8) { - buffer.put(0, 4); - } // padding - - - while (buffer.getLengthInBits() % 8 != 0) { - buffer.putBit(false); - } // padding - - - while (true) { - if (buffer.getLengthInBits() >= totalDataCount * 8) { - break; - } - - buffer.put(PAD0, 8); - - if (buffer.getLengthInBits() >= totalDataCount * 8) { - break; - } - - buffer.put(PAD1, 8); - } - - return createBytes(buffer, rsBlocks); - }; - - _this.addData = function (data, mode) { - mode = mode || 'Byte'; - var newData = null; - - switch (mode) { - case 'Numeric': - newData = qrNumber(data); - break; - - case 'Alphanumeric': - newData = qrAlphaNum(data); - break; - - case 'Byte': - newData = qr8BitByte(data); - break; - - case 'Kanji': - newData = qrKanji(data); - break; - - default: - throw 'mode:' + mode; - } - - _dataList.push(newData); - - _dataCache = null; - }; - - _this.isDark = function (row, col) { - if (row < 0 || _moduleCount <= row || col < 0 || _moduleCount <= col) { - throw row + ',' + col; - } - - return _modules[row][col]; - }; - - _this.getModuleCount = function () { - return _moduleCount; - }; - - _this.make = function () { - if (_typeNumber < 1) { - var typeNumber = 1; - - for (; typeNumber < 40; typeNumber++) { - var rsBlocks = QRRSBlock.getRSBlocks(typeNumber, _errorCorrectionLevel); - var buffer = qrBitBuffer(); - - for (var i = 0; i < _dataList.length; i++) { - var data = _dataList[i]; - buffer.put(data.getMode(), 4); - buffer.put(data.getLength(), QRUtil.getLengthInBits(data.getMode(), typeNumber)); - data.write(buffer); - } - - var totalDataCount = 0; - - for (var i = 0; i < rsBlocks.length; i++) { - totalDataCount += rsBlocks[i].dataCount; - } - - if (buffer.getLengthInBits() <= totalDataCount * 8) { - break; - } - } - - _typeNumber = typeNumber; - } - - makeImpl(false, getBestMaskPattern()); - }; - - _this.createTableTag = function (cellSize, margin) { - cellSize = cellSize || 2; - margin = typeof margin == 'undefined' ? cellSize * 4 : margin; - var qrHtml = ''; - qrHtml += ''; - qrHtml += ''; - - for (var r = 0; r < _this.getModuleCount(); r += 1) { - qrHtml += ''; - - for (var c = 0; c < _this.getModuleCount(); c += 1) { - qrHtml += ''; - } - - qrHtml += ''; - qrHtml += '
'; - } - - qrHtml += '
'; - return qrHtml; - }; - - _this.createSvgTag = function (cellSize, margin, alt, title) { - var opts = {}; - - if (typeof arguments[0] == 'object') { - // Called by options. - opts = arguments[0]; // overwrite cellSize and margin. - - cellSize = opts.cellSize; - margin = opts.margin; - alt = opts.alt; - title = opts.title; - } - - cellSize = cellSize || 2; - margin = typeof margin == 'undefined' ? cellSize * 4 : margin; // Compose alt property surrogate - - alt = typeof alt === 'string' ? { - text: alt - } : alt || {}; - alt.text = alt.text || null; - alt.id = alt.text ? alt.id || 'qrcode-description' : null; // Compose title property surrogate - - title = typeof title === 'string' ? { - text: title - } : title || {}; - title.text = title.text || null; - title.id = title.text ? title.id || 'qrcode-title' : null; - var size = _this.getModuleCount() * cellSize + margin * 2; - var c, - mc, - r, - mr, - qrSvg = '', - rect; - rect = 'l' + cellSize + ',0 0,' + cellSize + ' -' + cellSize + ',0 0,-' + cellSize + 'z '; - qrSvg += '' + escapeXml(title.text) + '' : ''; - qrSvg += alt.text ? '' + escapeXml(alt.text) + '' : ''; - qrSvg += ''; - qrSvg += ''; - qrSvg += ''; - return qrSvg; - }; - - _this.createDataURL = function (cellSize, margin) { - cellSize = cellSize || 2; - margin = typeof margin == 'undefined' ? cellSize * 4 : margin; - var size = _this.getModuleCount() * cellSize + margin * 2; - var min = margin; - var max = size - margin; - return createDataURL(size, size, function (x, y) { - if (min <= x && x < max && min <= y && y < max) { - var c = Math.floor((x - min) / cellSize); - var r = Math.floor((y - min) / cellSize); - return _this.isDark(r, c) ? 0 : 1; - } else { - return 1; - } - }); - }; - - _this.createImgTag = function (cellSize, margin, alt) { - cellSize = cellSize || 2; - margin = typeof margin == 'undefined' ? cellSize * 4 : margin; - var size = _this.getModuleCount() * cellSize + margin * 2; - var img = ''; - img += '': - escaped += '>'; - break; - - case '&': - escaped += '&'; - break; - - case '"': - escaped += '"'; - break; - - default: - escaped += c; - break; - } - } - - return escaped; - }; - - var _createHalfASCII = function (margin) { - var cellSize = 1; - margin = typeof margin == 'undefined' ? cellSize * 2 : margin; - var size = _this.getModuleCount() * cellSize + margin * 2; - var min = margin; - var max = size - margin; - var y, x, r1, r2, p; - var blocks = { - '██': '█', - '█ ': '▀', - ' █': '▄', - ' ': ' ' - }; - var blocksLastLineNoMargin = { - '██': '▀', - '█ ': '▀', - ' █': ' ', - ' ': ' ' - }; - var ascii = ''; - - for (y = 0; y < size; y += 2) { - r1 = Math.floor((y - min) / cellSize); - r2 = Math.floor((y + 1 - min) / cellSize); - - for (x = 0; x < size; x += 1) { - p = '█'; - - if (min <= x && x < max && min <= y && y < max && _this.isDark(r1, Math.floor((x - min) / cellSize))) { - p = ' '; - } - - if (min <= x && x < max && min <= y + 1 && y + 1 < max && _this.isDark(r2, Math.floor((x - min) / cellSize))) { - p += ' '; - } else { - p += '█'; - } // Output 2 characters per pixel, to create full square. 1 character per pixels gives only half width of square. - - - ascii += margin < 1 && y + 1 >= max ? blocksLastLineNoMargin[p] : blocks[p]; - } - - ascii += '\n'; - } - - if (size % 2 && margin > 0) { - return ascii.substring(0, ascii.length - size - 1) + Array(size + 1).join('▀'); - } - - return ascii.substring(0, ascii.length - 1); - }; - - _this.createASCII = function (cellSize, margin) { - cellSize = cellSize || 1; - - if (cellSize < 2) { - return _createHalfASCII(margin); - } - - cellSize -= 1; - margin = typeof margin == 'undefined' ? cellSize * 2 : margin; - var size = _this.getModuleCount() * cellSize + margin * 2; - var min = margin; - var max = size - margin; - var y, x, r, p; - var white = Array(cellSize + 1).join('██'); - var black = Array(cellSize + 1).join(' '); - var ascii = ''; - var line = ''; - - for (y = 0; y < size; y += 1) { - r = Math.floor((y - min) / cellSize); - line = ''; - - for (x = 0; x < size; x += 1) { - p = 1; - - if (min <= x && x < max && min <= y && y < max && _this.isDark(r, Math.floor((x - min) / cellSize))) { - p = 0; - } // Output 2 characters per pixel, to create full square. 1 character per pixels gives only half width of square. - - - line += p ? white : black; - } - - for (r = 0; r < cellSize; r += 1) { - ascii += line + '\n'; - } - } - - return ascii.substring(0, ascii.length - 1); - }; - - _this.renderTo2dContext = function (context, cellSize) { - cellSize = cellSize || 2; - - var length = _this.getModuleCount(); - - for (var row = 0; row < length; row++) { - for (var col = 0; col < length; col++) { - context.fillStyle = _this.isDark(row, col) ? 'black' : 'white'; - context.fillRect(row * cellSize, col * cellSize, cellSize, cellSize); - } - } - }; - - return _this; - }; //--------------------------------------------------------------------- - // qrcode.stringToBytes - //--------------------------------------------------------------------- - - - qrcode.stringToBytesFuncs = { - 'default': function (s) { - var bytes = []; - - for (var i = 0; i < s.length; i += 1) { - var c = s.charCodeAt(i); - bytes.push(c & 0xff); - } - - return bytes; - } - }; - qrcode.stringToBytes = qrcode.stringToBytesFuncs['default']; //--------------------------------------------------------------------- - // qrcode.createStringToBytes - //--------------------------------------------------------------------- - - /** - * @param unicodeData base64 string of byte array. - * [16bit Unicode],[16bit Bytes], ... - * @param numChars - */ - - qrcode.createStringToBytes = function (unicodeData, numChars) { - // create conversion map. - var unicodeMap = function () { - var bin = base64DecodeInputStream(unicodeData); - - var read = function () { - var b = bin.read(); - if (b == -1) throw 'eof'; - return b; - }; - - var count = 0; - var unicodeMap = {}; - - while (true) { - var b0 = bin.read(); - if (b0 == -1) break; - var b1 = read(); - var b2 = read(); - var b3 = read(); - var k = String.fromCharCode(b0 << 8 | b1); - var v = b2 << 8 | b3; - unicodeMap[k] = v; - count += 1; - } - - if (count != numChars) { - throw count + ' != ' + numChars; - } - - return unicodeMap; - }(); - - var unknownChar = '?'.charCodeAt(0); - return function (s) { - var bytes = []; - - for (var i = 0; i < s.length; i += 1) { - var c = s.charCodeAt(i); - - if (c < 128) { - bytes.push(c); - } else { - var b = unicodeMap[s.charAt(i)]; - - if (typeof b == 'number') { - if ((b & 0xff) == b) { - // 1byte - bytes.push(b); - } else { - // 2bytes - bytes.push(b >>> 8); - bytes.push(b & 0xff); - } - } else { - bytes.push(unknownChar); - } - } - } - - return bytes; - }; - }; //--------------------------------------------------------------------- - // QRMode - //--------------------------------------------------------------------- - - - var QRMode = { - MODE_NUMBER: 1 << 0, - MODE_ALPHA_NUM: 1 << 1, - MODE_8BIT_BYTE: 1 << 2, - MODE_KANJI: 1 << 3 - }; //--------------------------------------------------------------------- - // QRErrorCorrectionLevel - //--------------------------------------------------------------------- - - var QRErrorCorrectionLevel = { - L: 1, - M: 0, - Q: 3, - H: 2 - }; //--------------------------------------------------------------------- - // QRMaskPattern - //--------------------------------------------------------------------- - - var QRMaskPattern = { - PATTERN000: 0, - PATTERN001: 1, - PATTERN010: 2, - PATTERN011: 3, - PATTERN100: 4, - PATTERN101: 5, - PATTERN110: 6, - PATTERN111: 7 - }; //--------------------------------------------------------------------- - // QRUtil - //--------------------------------------------------------------------- - - var QRUtil = function () { - var PATTERN_POSITION_TABLE = [[], [6, 18], [6, 22], [6, 26], [6, 30], [6, 34], [6, 22, 38], [6, 24, 42], [6, 26, 46], [6, 28, 50], [6, 30, 54], [6, 32, 58], [6, 34, 62], [6, 26, 46, 66], [6, 26, 48, 70], [6, 26, 50, 74], [6, 30, 54, 78], [6, 30, 56, 82], [6, 30, 58, 86], [6, 34, 62, 90], [6, 28, 50, 72, 94], [6, 26, 50, 74, 98], [6, 30, 54, 78, 102], [6, 28, 54, 80, 106], [6, 32, 58, 84, 110], [6, 30, 58, 86, 114], [6, 34, 62, 90, 118], [6, 26, 50, 74, 98, 122], [6, 30, 54, 78, 102, 126], [6, 26, 52, 78, 104, 130], [6, 30, 56, 82, 108, 134], [6, 34, 60, 86, 112, 138], [6, 30, 58, 86, 114, 142], [6, 34, 62, 90, 118, 146], [6, 30, 54, 78, 102, 126, 150], [6, 24, 50, 76, 102, 128, 154], [6, 28, 54, 80, 106, 132, 158], [6, 32, 58, 84, 110, 136, 162], [6, 26, 54, 82, 110, 138, 166], [6, 30, 58, 86, 114, 142, 170]]; - var G15 = 1 << 10 | 1 << 8 | 1 << 5 | 1 << 4 | 1 << 2 | 1 << 1 | 1 << 0; - var G18 = 1 << 12 | 1 << 11 | 1 << 10 | 1 << 9 | 1 << 8 | 1 << 5 | 1 << 2 | 1 << 0; - var G15_MASK = 1 << 14 | 1 << 12 | 1 << 10 | 1 << 4 | 1 << 1; - var _this = {}; - - var getBCHDigit = function (data) { - var digit = 0; - - while (data != 0) { - digit += 1; - data >>>= 1; - } - - return digit; - }; - - _this.getBCHTypeInfo = function (data) { - var d = data << 10; - - while (getBCHDigit(d) - getBCHDigit(G15) >= 0) { - d ^= G15 << getBCHDigit(d) - getBCHDigit(G15); - } - - return (data << 10 | d) ^ G15_MASK; - }; - - _this.getBCHTypeNumber = function (data) { - var d = data << 12; - - while (getBCHDigit(d) - getBCHDigit(G18) >= 0) { - d ^= G18 << getBCHDigit(d) - getBCHDigit(G18); - } - - return data << 12 | d; - }; - - _this.getPatternPosition = function (typeNumber) { - return PATTERN_POSITION_TABLE[typeNumber - 1]; - }; - - _this.getMaskFunction = function (maskPattern) { - switch (maskPattern) { - case QRMaskPattern.PATTERN000: - return function (i, j) { - return (i + j) % 2 == 0; - }; - - case QRMaskPattern.PATTERN001: - return function (i, j) { - return i % 2 == 0; - }; - - case QRMaskPattern.PATTERN010: - return function (i, j) { - return j % 3 == 0; - }; - - case QRMaskPattern.PATTERN011: - return function (i, j) { - return (i + j) % 3 == 0; - }; - - case QRMaskPattern.PATTERN100: - return function (i, j) { - return (Math.floor(i / 2) + Math.floor(j / 3)) % 2 == 0; - }; - - case QRMaskPattern.PATTERN101: - return function (i, j) { - return i * j % 2 + i * j % 3 == 0; - }; - - case QRMaskPattern.PATTERN110: - return function (i, j) { - return (i * j % 2 + i * j % 3) % 2 == 0; - }; - - case QRMaskPattern.PATTERN111: - return function (i, j) { - return (i * j % 3 + (i + j) % 2) % 2 == 0; - }; - - default: - throw 'bad maskPattern:' + maskPattern; - } - }; - - _this.getErrorCorrectPolynomial = function (errorCorrectLength) { - var a = qrPolynomial([1], 0); - - for (var i = 0; i < errorCorrectLength; i += 1) { - a = a.multiply(qrPolynomial([1, QRMath.gexp(i)], 0)); - } - - return a; - }; - - _this.getLengthInBits = function (mode, type) { - if (1 <= type && type < 10) { - // 1 - 9 - switch (mode) { - case QRMode.MODE_NUMBER: - return 10; - - case QRMode.MODE_ALPHA_NUM: - return 9; - - case QRMode.MODE_8BIT_BYTE: - return 8; - - case QRMode.MODE_KANJI: - return 8; - - default: - throw 'mode:' + mode; - } - } else if (type < 27) { - // 10 - 26 - switch (mode) { - case QRMode.MODE_NUMBER: - return 12; - - case QRMode.MODE_ALPHA_NUM: - return 11; - - case QRMode.MODE_8BIT_BYTE: - return 16; - - case QRMode.MODE_KANJI: - return 10; - - default: - throw 'mode:' + mode; - } - } else if (type < 41) { - // 27 - 40 - switch (mode) { - case QRMode.MODE_NUMBER: - return 14; - - case QRMode.MODE_ALPHA_NUM: - return 13; - - case QRMode.MODE_8BIT_BYTE: - return 16; - - case QRMode.MODE_KANJI: - return 12; - - default: - throw 'mode:' + mode; - } - } else { - throw 'type:' + type; - } - }; - - _this.getLostPoint = function (qrcode) { - var moduleCount = qrcode.getModuleCount(); - var lostPoint = 0; // LEVEL1 - - for (var row = 0; row < moduleCount; row += 1) { - for (var col = 0; col < moduleCount; col += 1) { - var sameCount = 0; - var dark = qrcode.isDark(row, col); - - for (var r = -1; r <= 1; r += 1) { - if (row + r < 0 || moduleCount <= row + r) { - continue; - } - - for (var c = -1; c <= 1; c += 1) { - if (col + c < 0 || moduleCount <= col + c) { - continue; - } - - if (r == 0 && c == 0) { - continue; - } - - if (dark == qrcode.isDark(row + r, col + c)) { - sameCount += 1; - } - } - } - - if (sameCount > 5) { - lostPoint += 3 + sameCount - 5; - } - } - } - - ; // LEVEL2 - - for (var row = 0; row < moduleCount - 1; row += 1) { - for (var col = 0; col < moduleCount - 1; col += 1) { - var count = 0; - if (qrcode.isDark(row, col)) count += 1; - if (qrcode.isDark(row + 1, col)) count += 1; - if (qrcode.isDark(row, col + 1)) count += 1; - if (qrcode.isDark(row + 1, col + 1)) count += 1; - - if (count == 0 || count == 4) { - lostPoint += 3; - } - } - } // LEVEL3 - - - for (var row = 0; row < moduleCount; row += 1) { - for (var col = 0; col < moduleCount - 6; col += 1) { - if (qrcode.isDark(row, col) && !qrcode.isDark(row, col + 1) && qrcode.isDark(row, col + 2) && qrcode.isDark(row, col + 3) && qrcode.isDark(row, col + 4) && !qrcode.isDark(row, col + 5) && qrcode.isDark(row, col + 6)) { - lostPoint += 40; - } - } - } - - for (var col = 0; col < moduleCount; col += 1) { - for (var row = 0; row < moduleCount - 6; row += 1) { - if (qrcode.isDark(row, col) && !qrcode.isDark(row + 1, col) && qrcode.isDark(row + 2, col) && qrcode.isDark(row + 3, col) && qrcode.isDark(row + 4, col) && !qrcode.isDark(row + 5, col) && qrcode.isDark(row + 6, col)) { - lostPoint += 40; - } - } - } // LEVEL4 - - - var darkCount = 0; - - for (var col = 0; col < moduleCount; col += 1) { - for (var row = 0; row < moduleCount; row += 1) { - if (qrcode.isDark(row, col)) { - darkCount += 1; - } - } - } - - var ratio = Math.abs(100 * darkCount / moduleCount / moduleCount - 50) / 5; - lostPoint += ratio * 10; - return lostPoint; - }; - - return _this; - }(); //--------------------------------------------------------------------- - // QRMath - //--------------------------------------------------------------------- - - - var QRMath = function () { - var EXP_TABLE = new Array(256); - var LOG_TABLE = new Array(256); // initialize tables - - for (var i = 0; i < 8; i += 1) { - EXP_TABLE[i] = 1 << i; - } - - for (var i = 8; i < 256; i += 1) { - EXP_TABLE[i] = EXP_TABLE[i - 4] ^ EXP_TABLE[i - 5] ^ EXP_TABLE[i - 6] ^ EXP_TABLE[i - 8]; - } - - for (var i = 0; i < 255; i += 1) { - LOG_TABLE[EXP_TABLE[i]] = i; - } - - var _this = {}; - - _this.glog = function (n) { - if (n < 1) { - throw 'glog(' + n + ')'; - } - - return LOG_TABLE[n]; - }; - - _this.gexp = function (n) { - while (n < 0) { - n += 255; - } - - while (n >= 256) { - n -= 255; - } - - return EXP_TABLE[n]; - }; - - return _this; - }(); //--------------------------------------------------------------------- - // qrPolynomial - //--------------------------------------------------------------------- - - - function qrPolynomial(num, shift) { - if (typeof num.length == 'undefined') { - throw num.length + '/' + shift; - } - - var _num = function () { - var offset = 0; - - while (offset < num.length && num[offset] == 0) { - offset += 1; - } - - var _num = new Array(num.length - offset + shift); - - for (var i = 0; i < num.length - offset; i += 1) { - _num[i] = num[i + offset]; - } - - return _num; - }(); - - var _this = {}; - - _this.getAt = function (index) { - return _num[index]; - }; - - _this.getLength = function () { - return _num.length; - }; - - _this.multiply = function (e) { - var num = new Array(_this.getLength() + e.getLength() - 1); - - for (var i = 0; i < _this.getLength(); i += 1) { - for (var j = 0; j < e.getLength(); j += 1) { - num[i + j] ^= QRMath.gexp(QRMath.glog(_this.getAt(i)) + QRMath.glog(e.getAt(j))); - } - } - - return qrPolynomial(num, 0); - }; - - _this.mod = function (e) { - if (_this.getLength() - e.getLength() < 0) { - return _this; - } - - var ratio = QRMath.glog(_this.getAt(0)) - QRMath.glog(e.getAt(0)); - var num = new Array(_this.getLength()); - - for (var i = 0; i < _this.getLength(); i += 1) { - num[i] = _this.getAt(i); - } - - for (var i = 0; i < e.getLength(); i += 1) { - num[i] ^= QRMath.gexp(QRMath.glog(e.getAt(i)) + ratio); - } // recursive call - - - return qrPolynomial(num, 0).mod(e); - }; - - return _this; - } - - ; //--------------------------------------------------------------------- - // QRRSBlock - //--------------------------------------------------------------------- - - var QRRSBlock = function () { - var RS_BLOCK_TABLE = [// L - // M - // Q - // H - // 1 - [1, 26, 19], [1, 26, 16], [1, 26, 13], [1, 26, 9], // 2 - [1, 44, 34], [1, 44, 28], [1, 44, 22], [1, 44, 16], // 3 - [1, 70, 55], [1, 70, 44], [2, 35, 17], [2, 35, 13], // 4 - [1, 100, 80], [2, 50, 32], [2, 50, 24], [4, 25, 9], // 5 - [1, 134, 108], [2, 67, 43], [2, 33, 15, 2, 34, 16], [2, 33, 11, 2, 34, 12], // 6 - [2, 86, 68], [4, 43, 27], [4, 43, 19], [4, 43, 15], // 7 - [2, 98, 78], [4, 49, 31], [2, 32, 14, 4, 33, 15], [4, 39, 13, 1, 40, 14], // 8 - [2, 121, 97], [2, 60, 38, 2, 61, 39], [4, 40, 18, 2, 41, 19], [4, 40, 14, 2, 41, 15], // 9 - [2, 146, 116], [3, 58, 36, 2, 59, 37], [4, 36, 16, 4, 37, 17], [4, 36, 12, 4, 37, 13], // 10 - [2, 86, 68, 2, 87, 69], [4, 69, 43, 1, 70, 44], [6, 43, 19, 2, 44, 20], [6, 43, 15, 2, 44, 16], // 11 - [4, 101, 81], [1, 80, 50, 4, 81, 51], [4, 50, 22, 4, 51, 23], [3, 36, 12, 8, 37, 13], // 12 - [2, 116, 92, 2, 117, 93], [6, 58, 36, 2, 59, 37], [4, 46, 20, 6, 47, 21], [7, 42, 14, 4, 43, 15], // 13 - [4, 133, 107], [8, 59, 37, 1, 60, 38], [8, 44, 20, 4, 45, 21], [12, 33, 11, 4, 34, 12], // 14 - [3, 145, 115, 1, 146, 116], [4, 64, 40, 5, 65, 41], [11, 36, 16, 5, 37, 17], [11, 36, 12, 5, 37, 13], // 15 - [5, 109, 87, 1, 110, 88], [5, 65, 41, 5, 66, 42], [5, 54, 24, 7, 55, 25], [11, 36, 12, 7, 37, 13], // 16 - [5, 122, 98, 1, 123, 99], [7, 73, 45, 3, 74, 46], [15, 43, 19, 2, 44, 20], [3, 45, 15, 13, 46, 16], // 17 - [1, 135, 107, 5, 136, 108], [10, 74, 46, 1, 75, 47], [1, 50, 22, 15, 51, 23], [2, 42, 14, 17, 43, 15], // 18 - [5, 150, 120, 1, 151, 121], [9, 69, 43, 4, 70, 44], [17, 50, 22, 1, 51, 23], [2, 42, 14, 19, 43, 15], // 19 - [3, 141, 113, 4, 142, 114], [3, 70, 44, 11, 71, 45], [17, 47, 21, 4, 48, 22], [9, 39, 13, 16, 40, 14], // 20 - [3, 135, 107, 5, 136, 108], [3, 67, 41, 13, 68, 42], [15, 54, 24, 5, 55, 25], [15, 43, 15, 10, 44, 16], // 21 - [4, 144, 116, 4, 145, 117], [17, 68, 42], [17, 50, 22, 6, 51, 23], [19, 46, 16, 6, 47, 17], // 22 - [2, 139, 111, 7, 140, 112], [17, 74, 46], [7, 54, 24, 16, 55, 25], [34, 37, 13], // 23 - [4, 151, 121, 5, 152, 122], [4, 75, 47, 14, 76, 48], [11, 54, 24, 14, 55, 25], [16, 45, 15, 14, 46, 16], // 24 - [6, 147, 117, 4, 148, 118], [6, 73, 45, 14, 74, 46], [11, 54, 24, 16, 55, 25], [30, 46, 16, 2, 47, 17], // 25 - [8, 132, 106, 4, 133, 107], [8, 75, 47, 13, 76, 48], [7, 54, 24, 22, 55, 25], [22, 45, 15, 13, 46, 16], // 26 - [10, 142, 114, 2, 143, 115], [19, 74, 46, 4, 75, 47], [28, 50, 22, 6, 51, 23], [33, 46, 16, 4, 47, 17], // 27 - [8, 152, 122, 4, 153, 123], [22, 73, 45, 3, 74, 46], [8, 53, 23, 26, 54, 24], [12, 45, 15, 28, 46, 16], // 28 - [3, 147, 117, 10, 148, 118], [3, 73, 45, 23, 74, 46], [4, 54, 24, 31, 55, 25], [11, 45, 15, 31, 46, 16], // 29 - [7, 146, 116, 7, 147, 117], [21, 73, 45, 7, 74, 46], [1, 53, 23, 37, 54, 24], [19, 45, 15, 26, 46, 16], // 30 - [5, 145, 115, 10, 146, 116], [19, 75, 47, 10, 76, 48], [15, 54, 24, 25, 55, 25], [23, 45, 15, 25, 46, 16], // 31 - [13, 145, 115, 3, 146, 116], [2, 74, 46, 29, 75, 47], [42, 54, 24, 1, 55, 25], [23, 45, 15, 28, 46, 16], // 32 - [17, 145, 115], [10, 74, 46, 23, 75, 47], [10, 54, 24, 35, 55, 25], [19, 45, 15, 35, 46, 16], // 33 - [17, 145, 115, 1, 146, 116], [14, 74, 46, 21, 75, 47], [29, 54, 24, 19, 55, 25], [11, 45, 15, 46, 46, 16], // 34 - [13, 145, 115, 6, 146, 116], [14, 74, 46, 23, 75, 47], [44, 54, 24, 7, 55, 25], [59, 46, 16, 1, 47, 17], // 35 - [12, 151, 121, 7, 152, 122], [12, 75, 47, 26, 76, 48], [39, 54, 24, 14, 55, 25], [22, 45, 15, 41, 46, 16], // 36 - [6, 151, 121, 14, 152, 122], [6, 75, 47, 34, 76, 48], [46, 54, 24, 10, 55, 25], [2, 45, 15, 64, 46, 16], // 37 - [17, 152, 122, 4, 153, 123], [29, 74, 46, 14, 75, 47], [49, 54, 24, 10, 55, 25], [24, 45, 15, 46, 46, 16], // 38 - [4, 152, 122, 18, 153, 123], [13, 74, 46, 32, 75, 47], [48, 54, 24, 14, 55, 25], [42, 45, 15, 32, 46, 16], // 39 - [20, 147, 117, 4, 148, 118], [40, 75, 47, 7, 76, 48], [43, 54, 24, 22, 55, 25], [10, 45, 15, 67, 46, 16], // 40 - [19, 148, 118, 6, 149, 119], [18, 75, 47, 31, 76, 48], [34, 54, 24, 34, 55, 25], [20, 45, 15, 61, 46, 16]]; - - var qrRSBlock = function (totalCount, dataCount) { - var _this = {}; - _this.totalCount = totalCount; - _this.dataCount = dataCount; - return _this; - }; - - var _this = {}; - - var getRsBlockTable = function (typeNumber, errorCorrectionLevel) { - switch (errorCorrectionLevel) { - case QRErrorCorrectionLevel.L: - return RS_BLOCK_TABLE[(typeNumber - 1) * 4 + 0]; - - case QRErrorCorrectionLevel.M: - return RS_BLOCK_TABLE[(typeNumber - 1) * 4 + 1]; - - case QRErrorCorrectionLevel.Q: - return RS_BLOCK_TABLE[(typeNumber - 1) * 4 + 2]; - - case QRErrorCorrectionLevel.H: - return RS_BLOCK_TABLE[(typeNumber - 1) * 4 + 3]; - - default: - return undefined; - } - }; - - _this.getRSBlocks = function (typeNumber, errorCorrectionLevel) { - var rsBlock = getRsBlockTable(typeNumber, errorCorrectionLevel); - - if (typeof rsBlock == 'undefined') { - throw 'bad rs block @ typeNumber:' + typeNumber + '/errorCorrectionLevel:' + errorCorrectionLevel; - } - - var length = rsBlock.length / 3; - var list = []; - - for (var i = 0; i < length; i += 1) { - var count = rsBlock[i * 3 + 0]; - var totalCount = rsBlock[i * 3 + 1]; - var dataCount = rsBlock[i * 3 + 2]; - - for (var j = 0; j < count; j += 1) { - list.push(qrRSBlock(totalCount, dataCount)); - } - } - - return list; - }; - - return _this; - }(); //--------------------------------------------------------------------- - // qrBitBuffer - //--------------------------------------------------------------------- - - - var qrBitBuffer = function () { - var _buffer = []; - var _length = 0; - var _this = {}; - - _this.getBuffer = function () { - return _buffer; - }; - - _this.getAt = function (index) { - var bufIndex = Math.floor(index / 8); - return (_buffer[bufIndex] >>> 7 - index % 8 & 1) == 1; - }; - - _this.put = function (num, length) { - for (var i = 0; i < length; i += 1) { - _this.putBit((num >>> length - i - 1 & 1) == 1); - } - }; - - _this.getLengthInBits = function () { - return _length; - }; - - _this.putBit = function (bit) { - var bufIndex = Math.floor(_length / 8); - - if (_buffer.length <= bufIndex) { - _buffer.push(0); - } - - if (bit) { - _buffer[bufIndex] |= 0x80 >>> _length % 8; - } - - _length += 1; - }; - - return _this; - }; //--------------------------------------------------------------------- - // qrNumber - //--------------------------------------------------------------------- - - - var qrNumber = function (data) { - var _mode = QRMode.MODE_NUMBER; - var _data = data; - var _this = {}; - - _this.getMode = function () { - return _mode; - }; - - _this.getLength = function (buffer) { - return _data.length; - }; - - _this.write = function (buffer) { - var data = _data; - var i = 0; - - while (i + 2 < data.length) { - buffer.put(strToNum(data.substring(i, i + 3)), 10); - i += 3; - } - - if (i < data.length) { - if (data.length - i == 1) { - buffer.put(strToNum(data.substring(i, i + 1)), 4); - } else if (data.length - i == 2) { - buffer.put(strToNum(data.substring(i, i + 2)), 7); - } - } - }; - - var strToNum = function (s) { - var num = 0; - - for (var i = 0; i < s.length; i += 1) { - num = num * 10 + chatToNum(s.charAt(i)); - } - - return num; - }; - - var chatToNum = function (c) { - if ('0' <= c && c <= '9') { - return c.charCodeAt(0) - '0'.charCodeAt(0); - } - - throw 'illegal char :' + c; - }; - - return _this; - }; //--------------------------------------------------------------------- - // qrAlphaNum - //--------------------------------------------------------------------- - - - var qrAlphaNum = function (data) { - var _mode = QRMode.MODE_ALPHA_NUM; - var _data = data; - var _this = {}; - - _this.getMode = function () { - return _mode; - }; - - _this.getLength = function (buffer) { - return _data.length; - }; - - _this.write = function (buffer) { - var s = _data; - var i = 0; - - while (i + 1 < s.length) { - buffer.put(getCode(s.charAt(i)) * 45 + getCode(s.charAt(i + 1)), 11); - i += 2; - } - - if (i < s.length) { - buffer.put(getCode(s.charAt(i)), 6); - } - }; - - var getCode = function (c) { - if ('0' <= c && c <= '9') { - return c.charCodeAt(0) - '0'.charCodeAt(0); - } else if ('A' <= c && c <= 'Z') { - return c.charCodeAt(0) - 'A'.charCodeAt(0) + 10; - } else { - switch (c) { - case ' ': - return 36; - - case '$': - return 37; - - case '%': - return 38; - - case '*': - return 39; - - case '+': - return 40; - - case '-': - return 41; - - case '.': - return 42; - - case '/': - return 43; - - case ':': - return 44; - - default: - throw 'illegal char :' + c; - } - } - }; - - return _this; - }; //--------------------------------------------------------------------- - // qr8BitByte - //--------------------------------------------------------------------- - - - var qr8BitByte = function (data) { - var _mode = QRMode.MODE_8BIT_BYTE; - var _data = data; - - var _bytes = qrcode.stringToBytes(data); - - var _this = {}; - - _this.getMode = function () { - return _mode; - }; - - _this.getLength = function (buffer) { - return _bytes.length; - }; - - _this.write = function (buffer) { - for (var i = 0; i < _bytes.length; i += 1) { - buffer.put(_bytes[i], 8); - } - }; - - return _this; - }; //--------------------------------------------------------------------- - // qrKanji - //--------------------------------------------------------------------- - - - var qrKanji = function (data) { - var _mode = QRMode.MODE_KANJI; - var _data = data; - var stringToBytes = qrcode.stringToBytesFuncs['SJIS']; - - if (!stringToBytes) { - throw 'sjis not supported.'; - } - - !function (c, code) { - // self test for sjis support. - var test = stringToBytes(c); - - if (test.length != 2 || (test[0] << 8 | test[1]) != code) { - throw 'sjis not supported.'; - } - }('\u53cb', 0x9746); - - var _bytes = stringToBytes(data); - - var _this = {}; - - _this.getMode = function () { - return _mode; - }; - - _this.getLength = function (buffer) { - return ~~(_bytes.length / 2); - }; - - _this.write = function (buffer) { - var data = _bytes; - var i = 0; - - while (i + 1 < data.length) { - var c = (0xff & data[i]) << 8 | 0xff & data[i + 1]; - - if (0x8140 <= c && c <= 0x9FFC) { - c -= 0x8140; - } else if (0xE040 <= c && c <= 0xEBBF) { - c -= 0xC140; - } else { - throw 'illegal char at ' + (i + 1) + '/' + c; - } - - c = (c >>> 8 & 0xff) * 0xC0 + (c & 0xff); - buffer.put(c, 13); - i += 2; - } - - if (i < data.length) { - throw 'illegal char at ' + (i + 1); - } - }; - - return _this; - }; //===================================================================== - // GIF Support etc. - // - //--------------------------------------------------------------------- - // byteArrayOutputStream - //--------------------------------------------------------------------- - - - var byteArrayOutputStream = function () { - var _bytes = []; - var _this = {}; - - _this.writeByte = function (b) { - _bytes.push(b & 0xff); - }; - - _this.writeShort = function (i) { - _this.writeByte(i); - - _this.writeByte(i >>> 8); - }; - - _this.writeBytes = function (b, off, len) { - off = off || 0; - len = len || b.length; - - for (var i = 0; i < len; i += 1) { - _this.writeByte(b[i + off]); - } - }; - - _this.writeString = function (s) { - for (var i = 0; i < s.length; i += 1) { - _this.writeByte(s.charCodeAt(i)); - } - }; - - _this.toByteArray = function () { - return _bytes; - }; - - _this.toString = function () { - var s = ''; - s += '['; - - for (var i = 0; i < _bytes.length; i += 1) { - if (i > 0) { - s += ','; - } - - s += _bytes[i]; - } - - s += ']'; - return s; - }; - - return _this; - }; //--------------------------------------------------------------------- - // base64EncodeOutputStream - //--------------------------------------------------------------------- - - - var base64EncodeOutputStream = function () { - var _buffer = 0; - var _buflen = 0; - var _length = 0; - var _base64 = ''; - var _this = {}; - - var writeEncoded = function (b) { - _base64 += String.fromCharCode(encode(b & 0x3f)); - }; - - var encode = function (n) { - if (n < 0) {// error. - } else if (n < 26) { - return 0x41 + n; - } else if (n < 52) { - return 0x61 + (n - 26); - } else if (n < 62) { - return 0x30 + (n - 52); - } else if (n == 62) { - return 0x2b; - } else if (n == 63) { - return 0x2f; - } - - throw 'n:' + n; - }; - - _this.writeByte = function (n) { - _buffer = _buffer << 8 | n & 0xff; - _buflen += 8; - _length += 1; - - while (_buflen >= 6) { - writeEncoded(_buffer >>> _buflen - 6); - _buflen -= 6; - } - }; - - _this.flush = function () { - if (_buflen > 0) { - writeEncoded(_buffer << 6 - _buflen); - _buffer = 0; - _buflen = 0; - } - - if (_length % 3 != 0) { - // padding - var padlen = 3 - _length % 3; - - for (var i = 0; i < padlen; i += 1) { - _base64 += '='; - } - } - }; - - _this.toString = function () { - return _base64; - }; - - return _this; - }; //--------------------------------------------------------------------- - // base64DecodeInputStream - //--------------------------------------------------------------------- - - - var base64DecodeInputStream = function (str) { - var _str = str; - var _pos = 0; - var _buffer = 0; - var _buflen = 0; - var _this = {}; - - _this.read = function () { - while (_buflen < 8) { - if (_pos >= _str.length) { - if (_buflen == 0) { - return -1; - } - - throw 'unexpected end of file./' + _buflen; - } - - var c = _str.charAt(_pos); - - _pos += 1; - - if (c == '=') { - _buflen = 0; - return -1; - } else if (c.match(/^\s$/)) { - // ignore if whitespace. - continue; - } - - _buffer = _buffer << 6 | decode(c.charCodeAt(0)); - _buflen += 6; - } - - var n = _buffer >>> _buflen - 8 & 0xff; - _buflen -= 8; - return n; - }; - - var decode = function (c) { - if (0x41 <= c && c <= 0x5a) { - return c - 0x41; - } else if (0x61 <= c && c <= 0x7a) { - return c - 0x61 + 26; - } else if (0x30 <= c && c <= 0x39) { - return c - 0x30 + 52; - } else if (c == 0x2b) { - return 62; - } else if (c == 0x2f) { - return 63; - } else { - throw 'c:' + c; - } - }; - - return _this; - }; //--------------------------------------------------------------------- - // gifImage (B/W) - //--------------------------------------------------------------------- - - - var gifImage = function (width, height) { - var _width = width; - var _height = height; - - var _data = new Array(width * height); - - var _this = {}; - - _this.setPixel = function (x, y, pixel) { - _data[y * _width + x] = pixel; - }; - - _this.write = function (out) { - //--------------------------------- - // GIF Signature - out.writeString('GIF87a'); //--------------------------------- - // Screen Descriptor - - out.writeShort(_width); - out.writeShort(_height); - out.writeByte(0x80); // 2bit - - out.writeByte(0); - out.writeByte(0); //--------------------------------- - // Global Color Map - // black - - out.writeByte(0x00); - out.writeByte(0x00); - out.writeByte(0x00); // white - - out.writeByte(0xff); - out.writeByte(0xff); - out.writeByte(0xff); //--------------------------------- - // Image Descriptor - - out.writeString(','); - out.writeShort(0); - out.writeShort(0); - out.writeShort(_width); - out.writeShort(_height); - out.writeByte(0); //--------------------------------- - // Local Color Map - //--------------------------------- - // Raster Data - - var lzwMinCodeSize = 2; - var raster = getLZWRaster(lzwMinCodeSize); - out.writeByte(lzwMinCodeSize); - var offset = 0; - - while (raster.length - offset > 255) { - out.writeByte(255); - out.writeBytes(raster, offset, 255); - offset += 255; - } - - out.writeByte(raster.length - offset); - out.writeBytes(raster, offset, raster.length - offset); - out.writeByte(0x00); //--------------------------------- - // GIF Terminator - - out.writeString(';'); - }; - - var bitOutputStream = function (out) { - var _out = out; - var _bitLength = 0; - var _bitBuffer = 0; - var _this = {}; - - _this.write = function (data, length) { - if (data >>> length != 0) { - throw 'length over'; - } - - while (_bitLength + length >= 8) { - _out.writeByte(0xff & (data << _bitLength | _bitBuffer)); - - length -= 8 - _bitLength; - data >>>= 8 - _bitLength; - _bitBuffer = 0; - _bitLength = 0; - } - - _bitBuffer = data << _bitLength | _bitBuffer; - _bitLength = _bitLength + length; - }; - - _this.flush = function () { - if (_bitLength > 0) { - _out.writeByte(_bitBuffer); - } - }; - - return _this; - }; - - var getLZWRaster = function (lzwMinCodeSize) { - var clearCode = 1 << lzwMinCodeSize; - var endCode = (1 << lzwMinCodeSize) + 1; - var bitLength = lzwMinCodeSize + 1; // Setup LZWTable - - var table = lzwTable(); - - for (var i = 0; i < clearCode; i += 1) { - table.add(String.fromCharCode(i)); - } - - table.add(String.fromCharCode(clearCode)); - table.add(String.fromCharCode(endCode)); - var byteOut = byteArrayOutputStream(); - var bitOut = bitOutputStream(byteOut); // clear code - - bitOut.write(clearCode, bitLength); - var dataIndex = 0; - var s = String.fromCharCode(_data[dataIndex]); - dataIndex += 1; - - while (dataIndex < _data.length) { - var c = String.fromCharCode(_data[dataIndex]); - dataIndex += 1; - - if (table.contains(s + c)) { - s = s + c; - } else { - bitOut.write(table.indexOf(s), bitLength); - - if (table.size() < 0xfff) { - if (table.size() == 1 << bitLength) { - bitLength += 1; - } - - table.add(s + c); - } - - s = c; - } - } - - bitOut.write(table.indexOf(s), bitLength); // end code - - bitOut.write(endCode, bitLength); - bitOut.flush(); - return byteOut.toByteArray(); - }; - - var lzwTable = function () { - var _map = {}; - var _size = 0; - var _this = {}; - - _this.add = function (key) { - if (_this.contains(key)) { - throw 'dup key:' + key; - } - - _map[key] = _size; - _size += 1; - }; - - _this.size = function () { - return _size; - }; - - _this.indexOf = function (key) { - return _map[key]; - }; - - _this.contains = function (key) { - return typeof _map[key] != 'undefined'; - }; - - return _this; - }; - - return _this; - }; - - var createDataURL = function (width, height, getPixel) { - var gif = gifImage(width, height); - - for (var y = 0; y < height; y += 1) { - for (var x = 0; x < width; x += 1) { - gif.setPixel(x, y, getPixel(x, y)); - } - } - - var b = byteArrayOutputStream(); - gif.write(b); - var base64 = base64EncodeOutputStream(); - var bytes = b.toByteArray(); - - for (var i = 0; i < bytes.length; i += 1) { - base64.writeByte(bytes[i]); - } - - base64.flush(); - return 'data:image/gif;base64,' + base64; - }; //--------------------------------------------------------------------- - // returns qrcode function. - - - return qrcode; -}(); // multibyte support - - -!function () { - qrcode.stringToBytesFuncs['UTF-8'] = function (s) { - // http://stackoverflow.com/questions/18729405/how-to-convert-utf8-string-to-byte-array - function toUTF8Array(str) { - var utf8 = []; - - for (var i = 0; i < str.length; i++) { - var charcode = str.charCodeAt(i); - if (charcode < 0x80) utf8.push(charcode);else if (charcode < 0x800) { - utf8.push(0xc0 | charcode >> 6, 0x80 | charcode & 0x3f); - } else if (charcode < 0xd800 || charcode >= 0xe000) { - utf8.push(0xe0 | charcode >> 12, 0x80 | charcode >> 6 & 0x3f, 0x80 | charcode & 0x3f); - } // surrogate pair - else { - i++; // UTF-16 encodes 0x10000-0x10FFFF by - // subtracting 0x10000 and splitting the - // 20 bits of 0x0-0xFFFFF into two halves - - charcode = 0x10000 + ((charcode & 0x3ff) << 10 | str.charCodeAt(i) & 0x3ff); - utf8.push(0xf0 | charcode >> 18, 0x80 | charcode >> 12 & 0x3f, 0x80 | charcode >> 6 & 0x3f, 0x80 | charcode & 0x3f); - } - } - - return utf8; - } - - return toUTF8Array(s); - }; -}(); - -(function (factory) { - if (typeof define === 'function' && define.amd) { - define([], factory); - } else if (typeof exports === 'object') { - module.exports = factory(); - } -})(function () { - return qrcode; -}); - -},{}]},{},[1])(1) -}); diff --git a/node_modules/bech32-buffer/index.d.ts b/node_modules/bech32-buffer/index.d.ts deleted file mode 100644 index 48356c9a..00000000 --- a/node_modules/bech32-buffer/index.d.ts +++ /dev/null @@ -1,180 +0,0 @@ -/** - * Virtual type for an array in which each element represents 5 bits. - */ -export declare type FiveBitArray = Uint8Array; -// As TypeScript (unlike Flow) always uses structural typing for determining type compatibility, -// there seems to be no way to express this better. - -/** - * Encoding from the Bech32 family used during encoding / decoding. - */ -export declare type Encoding = 'bech32' | 'bech32m'; - -/** - * Converts a Uint8Array into a Uint8Array variant, in which each element - * encodes 5 bits of the original byte array. - * - * @param src - * Input to convert - * @param dst - * Optional output buffer. If specified, the sequence of 5-bit chunks will be written there; - * if not specified, the output buffer will be created from scratch. The length - * of `outBuffer` is not checked. - * @returns - * Output buffer consisting of 5-bit chunks - */ -export declare function to5BitArray(src: Uint8Array, dst?: FiveBitArray): FiveBitArray; - -/** - * Converts a sequence of 5-bit chunks into an ordinary Uint8Array. - * - * @param src - * Input to convert - * @param dst - * Optional output buffer. If specified, the converted bytes will be written there; - * if not specified, the output buffer will be created from scratch. The length - * of `outBuffer` is not checked. - * @returns - * Output buffer - */ -export declare function from5BitArray(src: FiveBitArray, dst?: Uint8Array): Uint8Array; - -/** - * Encodes binary data into Bech32 encoding. - * - * The case is preserved: if the prefix is uppercase, then the output will be uppercase - * as well; otherwise, the output will be lowercase (including the case when the prefix does - * not contain any letters). - * - * Ordinarily, you may want to use `encode` because it converts - * binary data to an array of 5-bit integers automatically. - * - * @param prefix - * Human-readable prefix to place at the beginning of the encoding - * @param data - * Array of 5-bit integers with data to encode - * @param encoding - * Encoding to use; influences the checksum computation. If not specified, - * Bech32 encoding will be used. - * @returns - * Bech32(m) encoding of data in the form `1` - * @throws If the prefix is mixed-case or contains chars that are not eligible for Bech32 encoding - */ -export declare function encode5BitArray( - prefix: string, - data: FiveBitArray, - encoding?: Encoding -): string; - -/** - * Result of a decoding operation. - */ -export interface DecodeResult { - /** Human-readable prefix. */ - prefix: string; - /** Variation of the Bech32 encoding inferred from the checksum. */ - encoding: Encoding; - /** Decoded data. */ - data: T; -} - -/** - * Decodes data from Bech32 encoding into an array of 5-bit integers. - * - * Ordinarily, you may want to use `decode` because it automatically - * converts the array of 5-bit integers into an ordinary `Uint8Array`. - * - * @param message - * Bech32-encoded message - * @returns - * Decoded object with `prefix` and `data` fields, which contain the human-readable - * prefix and the array of 5-bit integers respectively. - */ -export declare function decodeTo5BitArray(message: string): DecodeResult; - -/** - * Encodes binary data into Bech32 encoding. - * - * The case is preserved: if the prefix is uppercase, then the output will be uppercase - * as well; otherwise, the output will be lowercase (including the case when the prefix does - * not contain any letters). - * - * @param prefix - * Human-readable prefix to place at the beginning of the encoding - * @param data - * Binary data to encode - * @param encoding - * Encoding to use; influences the checksum computation. If not specified, - * Bech32 encoding will be used. - * @returns - * Bech32 encoding of data in the form `1` - * @throws If the prefix is mixed-case or contains chars that are not eligible for Bech32 encoding - */ -export declare function encode( - prefix: string, - data: Uint8Array, - encoding?: Encoding -): string; - -/** - * Decodes data from Bech32 encoding into an array of 5-bit integers. - * - * @param message - * Bech32-encoded message - * @returns - * Decoded object with `prefix` and `data` fields, which contain the human-readable - * prefix and the decoded binary data respectively. - */ -export declare function decode(message: string): DecodeResult; - -/** - * Bitcoin address. - */ -export declare class BitcoinAddress { - /** - * Human-readable prefix. Equals `'bc'` (for mainnet addresses) - * or `'tb'` (for testnet addresses). - */ - prefix: 'bc' | 'tb'; - /** - * Script version. An integer between 0 and 16 (inclusive). - */ - scriptVersion: number; - /** - * Script data. A byte string with length 2 to 40 (inclusive). - */ - data: Uint8Array; - - /** - * Decodes a Bitcoin address from a Bech32 string. - * As per BIP 350, the original encoding is expected for version 0 scripts, while - * other script versions expect the modified encoding. - * - * This method does not check whether the address is well-formed; - * use `type()` method on returned address to find that out. - */ - static decode(message: string): BitcoinAddress; - - /** - * Creates a new address based on provided data. - * - * Validation is performed on the fields as specified in their description (e.g., - * it is checked that `scriptVersion` is between 0 and 16). Additionally, - * for `scriptVersion == 0` it is checked that `data` is either 20 or 32 bytes long. - * - * @throws {Error} If provided fields do not pass validation. - */ - constructor(prefix: 'bc' | 'tb', scriptVersion: number, data: Uint8Array); - - /** - * Encodes this address in Bech32 or Bech32m format, depending on the script version. - * Version 0 scripts are encoded using original Bech32 encoding as per BIP 173, - * while versions 1-16 are encoded using the modified encoding as per BIP 350. - */ - encode(): string; - - /** - * Guesses the address type based on its internal structure. - */ - type(): void | 'p2wsh' | 'p2wpkh'; -} diff --git a/node_modules/bech32-buffer/lib/bit-converter.js b/node_modules/bech32-buffer/lib/bit-converter.js deleted file mode 100644 index 3c76160c..00000000 --- a/node_modules/bech32-buffer/lib/bit-converter.js +++ /dev/null @@ -1,115 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.createBitArray = createBitArray; -exports.fromBits = fromBits; -exports.toBits = toBits; - -/* eslint-disable no-unused-vars */ - -/** - * Virtual type for bit arrays, i.e., arrays in which each element contains - * an integer in range `[0, 1 << L)`, where `1 <= L <= 8`. - */ - -/* eslint-enable no-unused-vars */ - -/** - * Performs unchecked conversion from `Uint8Array` to `BitArray`. - * This function is translated as the indentity operation by Babel; it's needed purely - * for Flow type checks. - * - * @param {Uint8Array} src - * array to convert - * @returns {Uint8Array} - * `src` interpreted as a `BitArray` with the specified bitness - * - * @api private - */ -function toBitArrayUnchecked(src) { - return src; -} -/** - * Creates a new array with specified bitness. - * - * @param {number} len - * length of the created array - * @returns {Uint8Array} - * - * @api private - */ - - -function createBitArray(len) { - return toBitArrayUnchecked(new Uint8Array(len)); -} -/** - * Converts an array from one number of bits per element to another. - * - * @api private - */ - - -function convert(src, srcBits, dst, dstBits, pad) { - var mask = (1 << dstBits) - 1; - var acc = 0; - var bits = 0; - var pos = 0; - src.forEach(function (b) { - // Pull next bits from the input buffer into accumulator. - acc = (acc << srcBits) + b; - bits += srcBits; // Push into the output buffer while there are enough bits in the accumulator. - - while (bits >= dstBits) { - bits -= dstBits; - dst[pos] = acc >> bits & mask; - pos += 1; - } - }); - - if (pad) { - if (bits > 0) { - // `dstBits - rem.bits` is the number of trailing zero bits needed to be appended - // to accumulator bits to get the trailing bit group. - dst[pos] = acc << dstBits - bits & mask; - } - } else { - // Truncate the remaining padding, but make sure that it is zeroed and not - // overly long first. - if (bits >= srcBits) { - throw new Error("Excessive padding: ".concat(bits, " (max ").concat(srcBits - 1, " allowed)")); - } - - if (acc % (1 << bits) !== 0) { - throw new Error('Non-zero padding'); - } - } -} -/** - * Encodes a `Uint8Array` buffer as an array with a lesser number of bits per element. - * - * @api private - */ - - -function toBits(src, bits, dst) { - if (bits > 8 || bits < 1) { - throw new RangeError('Invalid bits per element; 1 to 8 expected'); - } // `BitArray<8>` is equivalent to `Uint8Array`; unfortunately, Flow - // has problems expressing this, so the explicit conversion is performed here. - - - convert(toBitArrayUnchecked(src), 8, dst, bits, true); - return dst; -} - -function fromBits(src, bits, dst) { - if (bits > 8 || bits < 1) { - throw new RangeError('Invalid bits per element; 1 to 8 expected'); - } - - convert(src, bits, toBitArrayUnchecked(dst), 8, false); - return dst; -} \ No newline at end of file diff --git a/node_modules/bech32-buffer/lib/encoding.js b/node_modules/bech32-buffer/lib/encoding.js deleted file mode 100644 index 2829f22c..00000000 --- a/node_modules/bech32-buffer/lib/encoding.js +++ /dev/null @@ -1,217 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.CHECKSUM_LENGTH = void 0; -exports.createChecksum = createChecksum; -exports.decode = decode; -exports.decodeWithPrefix = decodeWithPrefix; -exports.detectCase = detectCase; -exports.encode = encode; -exports.expandPrefix = expandPrefix; -exports.verifyChecksum = verifyChecksum; - -var _bitConverter = require("./bit-converter"); - -// Alphabet for Bech32 -var CHARSET = 'qpzry9x8gf2tvdw0s3jn54khce6mua7l'; // Checksum constant for Bech32m. - -var BECH32M_CHECKSUM = 0x2bc830a3; // Minimum char code that could be present in the encoded message - -var MIN_CHAR_CODE = 33; // Maximum char code that could be present in the encoded message - -var MAX_CHAR_CODE = 126; -var CHECKSUM_LENGTH = 6; // Reverse lookup for characters - -exports.CHECKSUM_LENGTH = CHECKSUM_LENGTH; - -var CHAR_LOOKUP = function () { - var lookup = new Map(); - - for (var i = 0; i < CHARSET.length; i += 1) { - lookup.set(CHARSET[i], i); - } - - return lookup; -}(); // Poly generators - - -var GEN = [0x3b6a57b2, 0x26508e6d, 0x1ea119fa, 0x3d4233dd, 0x2a1462b3]; - -function polymod(values) { - return values.reduce(function (checksum, value) { - var bits = checksum >> 25; - var newChecksum = (checksum & 0x1ffffff) << 5 ^ value; - return GEN.reduce(function (chk, gen, i) { - return (bits >> i & 1) === 0 ? chk : chk ^ gen; - }, newChecksum); - }, - /* initial checksum */ - 1); -} -/** - * Expands a prefix into the specified output buffer. - */ - - -function expandPrefix(prefix, outBuffer) { - for (var i = 0; i < prefix.length; i += 1) { - var code = prefix.charCodeAt(i); - outBuffer[i] = code >> 5; - outBuffer[i + prefix.length + 1] = code & 31; - } - - outBuffer[prefix.length] = 0; -} -/** - * Verifies the checksum for a particular buffer. - */ - - -function verifyChecksum(buffer) { - switch (polymod(buffer)) { - case 1: - return 'bech32'; - - case BECH32M_CHECKSUM: - return 'bech32m'; - - default: - return undefined; - } -} -/** - * Creates a checksum for a buffer and writes it to the last 6 5-bit groups - * of the buffer. - */ - - -function createChecksum(buffer, encoding) { - var checksumConstant; - - switch (encoding) { - case 'bech32': - checksumConstant = 1; - break; - - case 'bech32m': - checksumConstant = BECH32M_CHECKSUM; - break; - - default: - throw Error("Invalid encoding value: ".concat(encoding, "; expected bech32 or bech32m")); - } - - var mod = polymod(buffer) ^ checksumConstant; - - for (var i = 0; i < CHECKSUM_LENGTH; i += 1) { - var shift = 5 * (5 - i); - buffer[buffer.length - CHECKSUM_LENGTH + i] = mod >> shift & 31; - } -} -/** - * Encodes an array of 5-bit groups into a string. - * - * @param {Uint8Array} buffer - * @returns {string} - * - * @api private - */ - - -function encode(buffer) { - return buffer.reduce(function (acc, bits) { - return acc + CHARSET[bits]; - }, ''); -} -/** - * Decodes a string into an array of 5-bit groups. - * - * @param {string} message - * @param {Uint8Array} [dst] - * Optional array to write the output to. If not specified, the array is created. - * @returns {Uint8Array} - * Array with the result of decoding - * - * @throws {Error} - * if there are characters in `message` not present in the encoding alphabet - * - * @api private - */ - - -function decode(message, dst) { - var realDst = dst || (0, _bitConverter.createBitArray)(message.length); - - for (var i = 0; i < message.length; i += 1) { - var idx = CHAR_LOOKUP.get(message[i]); - - if (idx === undefined) { - throw new Error("Invalid char in message: ".concat(message[i])); - } - - realDst[i] = idx; - } - - return realDst; -} -/** - * Decodes a string and a human-readable prefix into an array of 5-bit groups. - * The prefix is expanded as specified by Bech32. - * - * @param {string} prefix - * @param {string} message - * @returns {Uint8Array} - * Array with the result of decoding - * - * @api private - */ - - -function decodeWithPrefix(prefix, message) { - var len = message.length + 2 * prefix.length + 1; - var dst = (0, _bitConverter.createBitArray)(len); - expandPrefix(prefix, dst.subarray(0, 2 * prefix.length + 1)); - decode(message, dst.subarray(2 * prefix.length + 1)); - return dst; -} -/** - * Detects the character case used in `message`. If the message doesn't - * contain either lower-case or upper-case chars, returns `null`. - * - * @param {string} message - * @param {string} messageDescription - * Human-readable description of the message to put into an error message, should any occur - * @returns {'lower'|'upper'|null} - * @throws if the message contains both lowercase and uppercase chars, - * or contains chars not valid for Bech32(m) encoding - */ - - -function detectCase(message) { - var messageDescription = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'message'; - var hasLowerCase = false; - var hasUpperCase = false; - - for (var i = 0; i < message.length; i += 1) { - var ord = message.charCodeAt(i); // 3. Allowed chars in the encoding - - if (ord < MIN_CHAR_CODE || ord > MAX_CHAR_CODE) { - throw new TypeError("Invalid char in ".concat(messageDescription, ": ").concat(ord, "; ") + "should be in ASCII range ".concat(MIN_CHAR_CODE, "-").concat(MAX_CHAR_CODE)); - } - - hasUpperCase = hasUpperCase || ord >= 65 && ord <= 90; - hasLowerCase = hasLowerCase || ord >= 97 && ord <= 122; - } - - if (hasLowerCase && hasUpperCase) { - throw new TypeError("Mixed-case ".concat(messageDescription)); - } else if (hasUpperCase) { - return 'upper'; - } else if (hasLowerCase) { - return 'lower'; - } else { - return null; - } -} \ No newline at end of file diff --git a/node_modules/bech32-buffer/lib/index.js b/node_modules/bech32-buffer/lib/index.js deleted file mode 100644 index 1f5e7eda..00000000 --- a/node_modules/bech32-buffer/lib/index.js +++ /dev/null @@ -1,349 +0,0 @@ -"use strict"; - -Object.defineProperty(exports, "__esModule", { - value: true -}); -exports.BitcoinAddress = void 0; -exports.decode = decode; -exports.decodeTo5BitArray = decodeTo5BitArray; -exports.encode = encode; -exports.encode5BitArray = encode5BitArray; -exports.from5BitArray = from5BitArray; -exports.to5BitArray = to5BitArray; - -var _bitConverter = require("./bit-converter"); - -var _encoding = require("./encoding"); - -function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } } - -function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } - -function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; } - -// Maximum encoded message length -var MAX_ENC_LENGTH = 90; - -/** - * Converts a Uint8Array into a Uint8Array variant, in which each element - * encodes 5 bits of the original byte array. - * - * @param {Uint8Array} src - * Input to convert - * @param {?Uint8Array} dst - * Optional output buffer. If specified, the sequence of 5-bit chunks will be written there; - * if not specified, the output buffer will be created from scratch. The length - * of `outBuffer` is not checked. - * @returns {Uint8Array} - * Output buffer consisting of 5-bit chunks - * - * @api public - */ -function to5BitArray(src, dst) { - var len = Math.ceil(src.length * 8 / 5); - var realDst = dst || (0, _bitConverter.createBitArray)(len); - return (0, _bitConverter.toBits)(src, 5, realDst); -} - -function from5BitArray(src, dst) { - var len = Math.floor(src.length * 5 / 8); - var realDst = dst || new Uint8Array(len); - return (0, _bitConverter.fromBits)(src, 5, realDst); -} -/** - * Encodes binary data into Bech32 encoding. - * - * The case is preserved: if the prefix is uppercase, then the output will be uppercase - * as well; otherwise, the output will be lowercase (including the case when the prefix does - * not contain any letters). - * - * Ordinarily, you may want to use [`encode`](#encode) because it converts - * binary data to an array of 5-bit integers automatically. - * - * @param {string} prefix - * Human-readable prefix to place at the beginning of the encoding - * @param {Uint8Array} data - * Array of 5-bit integers with data to encode - * @param {Encoding} encoding - * Encoding to use; influences the checksum computation. If not specified, - * Bech32 encoding will be used. - * @returns {string} - * Bech32 encoding of data in the form `1` - * @throws If the prefix is mixed-case or contains chars that are not eligible for Bech32 encoding - * - * @api public - */ - - -function encode5BitArray(prefix, data) { - var _detectCase; - - var encoding = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'bech32'; - // 1. Allocate buffer for all operations - var len = 2 * prefix.length + 1 // expanded prefix - + data.length // five-bit data encoding - + _encoding.CHECKSUM_LENGTH; // checksum - - if (len - prefix.length > MAX_ENC_LENGTH) { - throw new Error("Message to be produced is too long (max ".concat(MAX_ENC_LENGTH, " supported)")); - } - - var prefixCase = (_detectCase = (0, _encoding.detectCase)(prefix, 'prefix')) !== null && _detectCase !== void 0 ? _detectCase : 'lower'; - var buffer = (0, _bitConverter.createBitArray)(len); // 2. Expand the human-readable prefix into the beginning of the buffer - - (0, _encoding.expandPrefix)(prefix.toLowerCase(), buffer.subarray(0, 2 * prefix.length + 1)); // 3. Copy `data` into the output - - var dataBuffer = buffer.subarray(2 * prefix.length + 1, buffer.length - _encoding.CHECKSUM_LENGTH); - dataBuffer.set(data); // 4. Create the checksum - - (0, _encoding.createChecksum)(buffer, encoding); // 5. Convert into string - - var encoded = (0, _encoding.encode)(buffer.subarray(2 * prefix.length + 1)); - - if (prefixCase === 'upper') { - encoded = encoded.toUpperCase(); - } - - return "".concat(prefix, "1").concat(encoded); -} -/** - * Encodes binary data into Bech32 encoding. - * - * The case is preserved: if the prefix is uppercase, then the output will be uppercase - * as well; otherwise, the output will be lowercase (including the case when the prefix does - * not contain any letters). - * - * @param {string} prefix - * Human-readable prefix to place at the beginning of the encoding - * @param {Uint8Array} data - * Binary data to encode - * @param {Encoding} encoding - * Encoding to use; influences the checksum computation. If not specified, - * Bech32 encoding will be used. - * @returns {string} - * Bech32 encoding of data in the form `1` - * @throws If the prefix is mixed-case or contains chars that are not eligible for Bech32 encoding - * - * @api public - */ - - -function encode(prefix, data) { - var encoding = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : 'bech32'; - return encode5BitArray(prefix, to5BitArray(data), encoding); -} -/** - * Decodes data from Bech32 encoding into an array of 5-bit integers. - * - * Ordinarily, you may want to use [`decode`](#decode) because it automatically - * converts the array of 5-bit integers into an ordinary `Uint8Array`. - * - * @param {string} message - * Bech32-encoded message - * @returns {DecodeResult} - * Decoded object with `prefix` and `data` fields, which contain the human-readable - * prefix and the array of 5-bit integers respectively. - * - * @api public - */ - - -function decodeTo5BitArray(message) { - // Check preconditions - // 1. Message length - if (message.length > MAX_ENC_LENGTH) { - throw new TypeError("Message too long; max ".concat(MAX_ENC_LENGTH, " expected")); - } // 2. Mixed case - - - (0, _encoding.detectCase)(message); // we don't care about the result, only about checks. - - var lowerCaseMsg = message.toLowerCase(); // 4. Existence of the separator char - - var sepIdx = lowerCaseMsg.lastIndexOf('1'); - - if (sepIdx < 0) { - throw new Error('No separator char ("1") found'); - } // 5. Placing of the separator char in the message - - - if (sepIdx > message.length - _encoding.CHECKSUM_LENGTH - 1) { - throw new Error("Data part of the message too short (at least ".concat(_encoding.CHECKSUM_LENGTH, " chars expected)")); - } - - var prefix = lowerCaseMsg.substring(0, sepIdx); // Checked within `decodeWithPrefix`: - // 6. Invalid chars in the data part of the message - - var bitArray = (0, _encoding.decodeWithPrefix)(prefix, lowerCaseMsg.substring(sepIdx + 1)); // 7. Checksum - - var encoding = (0, _encoding.verifyChecksum)(bitArray); - - if (encoding === undefined) { - throw new Error('Invalid checksum'); - } - - return { - prefix: prefix, - encoding: encoding, - // Strip off the prefix from the front and the checksum from the end - data: bitArray.subarray(2 * prefix.length + 1, bitArray.length - _encoding.CHECKSUM_LENGTH) - }; -} -/** - * Decodes data from Bech32 encoding into an array of 5-bit integers. - * - * @param {string} message - * Bech32-encoded message - * @returns {DecodeResult} - * Decoded object with `prefix` and `data` fields, which contain the human-readable - * prefix and the decoded binary data respectively. - * - * @api public - */ - - -function decode(message) { - var _decodeTo5BitArray = decodeTo5BitArray(message), - prefix = _decodeTo5BitArray.prefix, - encoding = _decodeTo5BitArray.encoding, - bitArray = _decodeTo5BitArray.data; - - return { - prefix: prefix, - encoding: encoding, - data: from5BitArray(bitArray) - }; -} -/** - * Bitcoin address. - */ - - -var BitcoinAddress = /*#__PURE__*/function () { - function BitcoinAddress(prefix, scriptVersion, data) { - _classCallCheck(this, BitcoinAddress); - - if (prefix !== 'bc' && prefix !== 'tb') { - throw new Error('Invalid human-readable prefix, "bc" or "tb" expected'); - } - - if (scriptVersion < 0 || scriptVersion > 16) { - throw new RangeError('Invalid scriptVersion, value in range [0, 16] expected'); - } - - if (data.length < 2 || data.length > 40) { - throw new RangeError('Invalid script length: expected 2 to 40 bytes'); - } - - if (scriptVersion === 0 && data.length !== 20 && data.length !== 32) { - throw new Error('Invalid v0 script length: expected 20 or 32 bytes'); - } - - this.prefix = prefix; - this.scriptVersion = scriptVersion; - this.data = data; - } - /** - * Guesses the address type based on its internal structure. - * - * @returns {void | 'p2wpkh' | 'p2wsh'} - */ - - - _createClass(BitcoinAddress, [{ - key: "type", - value: function type() { - if (this.scriptVersion !== 0) { - return undefined; - } - - switch (this.data.length) { - case 20: - return 'p2wpkh'; - - case 32: - return 'p2wsh'; - // should be unreachable, but it's JS, so you never know - - default: - return undefined; - } - } - /** - * Encodes this address in Bech32 or Bech32m format, depending on the script version. - * Version 0 scripts are encoded using original Bech32 encoding as per BIP 173, - * while versions 1-16 are encoded using the modified encoding as per BIP 350. - * - * @returns {string} - * Bech32(m)-encoded address - */ - - }, { - key: "encode", - value: function encode() { - // Bitcoin addresses use Bech32 in a peculiar way - script version is - // not a part of the serialized binary data, but is rather prepended as 5-bit value - // before the rest of the script. This necessitates some plumbing here. - var len = Math.ceil(this.data.length * 8 / 5); - var converted = (0, _bitConverter.createBitArray)(len + 1); - converted[0] = this.scriptVersion; - to5BitArray(this.data, converted.subarray(1)); - var encoding = this.scriptVersion === 0 ? 'bech32' : 'bech32m'; - return encode5BitArray(this.prefix, converted, encoding); - } - }], [{ - key: "decode", - value: - /** - * Human-readable prefix. Equal to `'bc'` (for mainnet addresses) - * or `'tb'` (for testnet addresses). - */ - - /** - * Script version. An integer between 0 and 16 (inclusive). - */ - - /** - * Script data. A byte string with length 2 to 40 (inclusive). - */ - - /** - * Decodes a Bitcoin address from a Bech32(m) string. - * As per BIP 350, the original encoding is expected for version 0 scripts, while - * other script versions expect the modified encoding. - * - * This method does not check whether the address is well-formed; - * use `type()` method on returned address to find that out. - * - * @param {string} message - * @returns {BitcoinAddress} - */ - function decode(message) { - var _decodeTo5BitArray2 = decodeTo5BitArray(message), - prefix = _decodeTo5BitArray2.prefix, - data = _decodeTo5BitArray2.data, - encoding = _decodeTo5BitArray2.encoding; // Extra check to satisfy Flow. - - - if (prefix !== 'bc' && prefix !== 'tb') { - throw new Error('Invalid human-readable prefix, "bc" or "tb" expected'); - } - - var scriptVersion = data[0]; - - if (scriptVersion === 0 && encoding !== 'bech32') { - throw Error("Unexpected encoding ".concat(encoding, " used for version 0 script")); - } - - if (scriptVersion > 0 && encoding !== 'bech32m') { - throw Error("Unexpected encoding ".concat(encoding, " used for version ").concat(scriptVersion, " script")); - } - - return new this(prefix, scriptVersion, from5BitArray(data.subarray(1))); - } - }]); - - return BitcoinAddress; -}(); - -exports.BitcoinAddress = BitcoinAddress; \ No newline at end of file diff --git a/node_modules/bech32-buffer/package.json b/node_modules/bech32-buffer/package.json deleted file mode 100644 index dc464c8f..00000000 --- a/node_modules/bech32-buffer/package.json +++ /dev/null @@ -1,87 +0,0 @@ -{ - "name": "bech32-buffer", - "version": "0.2.1", - "description": "Bech32(m) encoding for byte buffers", - "repository": { - "type": "git", - "url": "https://github.com/slowli/bech32-buffer.git" - }, - "bugs": { - "url": "https://github.com/slowli/bech32-buffer/issues" - }, - "engines": { - "node": ">=8" - }, - "main": "lib/index.js", - "files": [ - "lib", - "dist", - "examples", - "index.d.ts", - "CHANGELOG.md" - ], - "types": "index.d.ts", - "scripts": { - "test": "mocha -r @babel/register", - "test-browser": "karma start", - "cover": "cross-env NODE_ENV=test nyc mocha", - "report-cover": "nyc report", - "browser": "mkdirp dist && cross-env BABEL_ENV=browser browserify src/index.js -t [ babelify ] --standalone bech32 -o dist/bech32-buffer.min.js", - "minify-qr": "cross-env BABEL_ENV=browser browserify node_modules/qrcode-generator/qrcode.js -t [ babelify ] --standalone qrcode -o examples/qrcode.min.js", - "compile": "babel src/ -d lib/", - "prepare": "npm run compile && npm run browser", - "lint": "eslint --ignore-path .gitignore . && flow check", - "test-ts": "npm run compile && tsc -p test && node test/types.js" - }, - "keywords": [ - "bech32", - "bech32m", - "base32", - "bitcoin" - ], - "author": "Alex Ostrovski ", - "license": "Apache-2.0", - "devDependencies": { - "@babel/cli": "^7.18.6", - "@babel/core": "^7.19.1", - "@babel/eslint-parser": "^7.19.1", - "@babel/preset-env": "^7.19.1", - "@babel/preset-flow": "^7.18.6", - "@babel/register": "^7.18.6", - "@types/chai": "^4.2.22", - "babel-plugin-istanbul": "^6.0.0", - "babel-preset-minify": "^0.5.1", - "babelify": "^10.0.0", - "browserify": "^17.0.0", - "chai": "^4.3.4", - "chai-bytes": "^0.1.2", - "cross-env": "^7.0.3", - "dirty-chai": "^2.0.1", - "eslint": "^8.24.0", - "eslint-config-airbnb-base": "^15.0.0", - "eslint-plugin-import": "^2.24.2", - "flow-bin": "^0.187.1", - "karma": "^6.4.0", - "karma-browserify": "^8.0.0", - "karma-chrome-launcher": "^3.1.0", - "karma-firefox-launcher": "^2.1.1", - "karma-mocha": "^2.0.1", - "karma-mocha-reporter": "^2.2.3", - "mkdirp": "^1.0.4", - "mocha": "^10.0.0", - "nyc": "^15.1.0", - "qrcode-generator": "^1.4.4", - "typescript": "^4.8.2" - }, - "nyc": { - "require": [ - "@babel/register" - ], - "exclude": [ - "lib", - "test" - ], - "sourceMap": false, - "instrument": false - } -} diff --git a/node_modules/bellajs/.eslintignore b/node_modules/bellajs/.eslintignore deleted file mode 100644 index f06235c4..00000000 --- a/node_modules/bellajs/.eslintignore +++ /dev/null @@ -1,2 +0,0 @@ -node_modules -dist diff --git a/node_modules/bellajs/.eslintrc.json b/node_modules/bellajs/.eslintrc.json deleted file mode 100644 index 7306dd91..00000000 --- a/node_modules/bellajs/.eslintrc.json +++ /dev/null @@ -1,122 +0,0 @@ -{ - "parserOptions": { - "ecmaVersion": "latest", - "sourceType": "module" - }, - "env": { - "es6": true, - "node": true, - "jest": true, - "browser": true - }, - "globals": { - "globalThis": true, - "URLPattern": true - }, - "plugins": [], - "overrides": [], - "extends": ["eslint:recommended"], - "rules": { - "arrow-spacing": ["error", { "before": true, "after": true }], - "block-spacing": ["error", "always"], - "brace-style": ["error", "1tbs", { "allowSingleLine": true }], - "camelcase": ["error", { - "allow": ["^UNSAFE_"], - "properties": "never", - "ignoreGlobals": true - }], - "comma-dangle": ["error", { - "arrays": "always-multiline", - "objects": "always-multiline", - "imports": "never", - "exports": "never", - "functions": "never" - }], - "comma-spacing": ["error", { "before": false, "after": true }], - "eol-last": "error", - "eqeqeq": ["error", "always", { "null": "ignore" }], - "func-call-spacing": ["error", "never"], - "indent": [ - "error", - 2, - { - "MemberExpression": 1, - "FunctionDeclaration": { - "body": 1, - "parameters": 2 - }, - "SwitchCase": 1 - } - ], - "key-spacing": ["error", { "beforeColon": false, "afterColon": true }], - "keyword-spacing": ["error", { "before": true, "after": true }], - "lines-between-class-members": ["error", "always", { "exceptAfterSingleLine": true }], - "max-len": [ - "error", - { - "code": 120, - "ignoreTrailingComments": true, - "ignoreComments": true, - "ignoreUrls": true - } - ], - "max-lines": [ - "error", - { - "max": 360, - "skipBlankLines": true, - "skipComments": false - } - ], - "max-lines-per-function": [ - "error", - { - "max": 250, - "skipBlankLines": true - } - ], - "max-params": ["error", 4], - "no-array-constructor": "error", - "no-mixed-spaces-and-tabs": "error", - "no-multi-spaces": "error", - "no-multi-str": "error", - "no-multiple-empty-lines": [ - "error", - { - "max": 1, - "maxEOF": 0 - } - ], - "no-restricted-syntax": [ - "error", - "WithStatement", - "BinaryExpression[operator='in']" - ], - "no-trailing-spaces": "error", - "no-use-before-define": [ - "error", - { - "functions": true, - "classes": true, - "variables": false - } - ], - "no-var": "warn", - "object-curly-spacing": ["error", "always"], - "padded-blocks": [ - "error", - { - "blocks": "never", - "switches": "never", - "classes": "never" - } - ], - "quotes": ["error", "single"], - "space-before-blocks": ["error", "always"], - "space-before-function-paren": ["error", "always"], - "space-infix-ops": "error", - "space-unary-ops": ["error", { "words": true, "nonwords": false }], - "space-in-parens": ["error", "never"], - "semi": ["error", "never"] - } -} diff --git a/node_modules/bellajs/LICENSE b/node_modules/bellajs/LICENSE deleted file mode 100755 index 487bbe05..00000000 --- a/node_modules/bellajs/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2016 Dong Nguyen - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/node_modules/bellajs/README.md b/node_modules/bellajs/README.md deleted file mode 100755 index 224d3ccb..00000000 --- a/node_modules/bellajs/README.md +++ /dev/null @@ -1,525 +0,0 @@ -BellaJS -======== - -Lightweight util for handling data type, string... in your Node.js and browser apps. - -[![NPM](https://badge.fury.io/js/bellajs.svg)](https://badge.fury.io/js/bellajs) -![CI test](https://github.com/ndaidong/bellajs/workflows/ci-test/badge.svg) -[![Coverage Status](https://coveralls.io/repos/github/ndaidong/bellajs/badge.svg)](https://coveralls.io/github/ndaidong/bellajs) -![CodeQL](https://github.com/ndaidong/bellajs/workflows/CodeQL/badge.svg) -[![CodeFactor](https://www.codefactor.io/repository/github/ndaidong/bellajs/badge)](https://www.codefactor.io/repository/github/ndaidong/bellajs) - -# Contents - -* [Setup](#setup) -* [APIs](#apis) - * [DataType detection](#datatype-detection) - * [String manipulation](#string-manipulation) - * [Data handling](#data-handling): [`clone`](#cloneanything-val), [`copies`](#copiesobject-source-object-target-boolean-requirematching-array-excepts) - * [Array utils](#array-utils): [`pick`](#pickarray-arr--number-count--1), [`sort`](#sortarray-arr--function-compare), [`sortBy`](#sortbyarray-arr-number-order-string-property), [`shuffle`](#shufflearray-arr), [`unique`](#uniquearray-arr) - * [Functional utils](#functional-utils): [`curry`](#curryfn), [`compose`](#composef1-f2-fn), [`pipe`](#pipef1-f2-fn), [`maybe`](#maybeanything-val) - * [Date utils](#date-utils): [`formatDateString`](#formatdatestringdate--timestamp--string-locale--object-options), [`formatTimeAgo`](#formattimeagodate--timestamp--string-locale--string-justnow) - * [Random utils](#random-utils): [`randint`](#randintnumber-min--number-max), [`genid`](#genidnumber-length--string-prefix) - -* [Test](#test) - -* [License](#license) - -## Install & Usage - -### Node.js - -```bash -npm i bellajs - -# pnpm -pnpm i bellajs - -# yarn -yarn add bellajs -``` - -### Deno - -```ts -import { genid } from 'https://esm.sh/bellajs' - -console.log(genid()) -``` - -### Browser - -```html - -``` - -## APIs - -### DataType detection - -- `.isArray(Anything val)` -- `.isBoolean(Anything val)` -- `.isDate(Anything val)` -- `.isElement(Anything val)` -- `.isEmail(Anything val)` -- `.isEmpty(Anything val)` -- `.isFunction(Anything val)` -- `.isInteger(Anything val)` -- `.isLetter(Anything val)` -- `.isNil(Anything val)` -- `.isNull(Anything val)` -- `.isNumber(Anything val)` -- `.isObject(Anything val)` -- `.isString(Anything val)` -- `.isUndefined(Anything val)` - -### String manipulation - -- `.ucfirst(String s)` -- `.ucwords(String s)` -- `.escapeHTML(String s)` -- `.unescapeHTML(String s)` -- `.slugify(String s)` -- `.stripTags(String s)` -- `.stripAccent(String s)` -- `.truncate(String s, Number limit)` -- `.replaceAll(String s, String|Array search, String|Array replace)` - - -### Data handling - -#### `clone(Anything val)` - -Make a deep copy of a variable. - -```js -import { clone } from 'bellajs' - -const b = [ - 1, 5, 0, 'a', -10, '-10', '', - { - a: 1, - b: 'Awesome' - } -] - -const cb = clone(b) -console.log(cb) -``` - -*cb* now has the same values as *b*, while the properties are standalone, not reference. So that: - -```js -cb[7].a = 2 -cb[7].b = 'Noop' - -console.log(b[7]) -``` - -What you get is still: - -```js -{ - a: 1, - b: 'Awesome' -} -``` - -#### `copies(Object source, Object target[[, Boolean requireMatching], Array excepts])` - -Copy the properties from *source* to *target*. - -- *requireMatching*: if true, BellaJS only copies the properties that are already exist in *target*. -- *excepts*: array of the properties properties in *source* that you don't want to copy. - -After this action, target will be modified. - -```js -import { copies } from 'bellajs' - -const a = { - name: 'Toto', - age: 30, - level: 8, - nationality: { - name: 'America' - } -} -const b = { - level: 4, - IQ: 140, - epouse: { - name: 'Alice', - age: 27 - }, - nationality: { - long: '18123.123123.12312', - lat: '98984771.134231.1234' - } -} - -copies(a, b) -console.log(b) -``` - -Output: - -```js -{ - level: 8, - IQ: 140, - epouse: { - name: 'Alice', - age: 27 - }, - nationality: { - long: '18123.123123.12312', - lat: '98984771.134231.1234', - name: 'America' - }, - name: 'Toto', - age: 30 -} -``` - -### Array utils - -#### `pick(Array arr [, Number count = 1])` - -Randomly choose N elements from array. - -```js -import { pick } from 'bellajs' - -const arr = [1, 3, 8, 2, 5, 7] -pick(arr, 2) // --> [3, 5] -pick(arr, 2) // --> [8, 1] -pick(arr) // --> [3] -pick(arr) // --> [7] -``` - - -#### `sort(Array arr [, Function compare])` - -Sort the array using a function. - -```js -import { sort } from 'bellajs' - -const fn = (a, b) => { - return a < b ? 1 : a > b ? -1 : 0 -} - -sort([3, 1, 5, 2], fn) // => [ 1, 2, 3, 5 ] -``` - -#### `sortBy(Array arr, Number order, String property)` - -Sort the array by specific property and direction. - -```js -import { sortBy } from 'bellajs' - -const players = [ - { - name: 'Jerome Nash', - age: 24 - }, - { - name: 'Jackson Valdez', - age: 21 - }, - { - name: 'Benjamin Cole', - age: 23 - }, - { - name: 'Manuel Delgado', - age: 33 - }, - { - name: 'Caleb McKinney', - age: 28 - } -] - -const result = sortBy(players, -1, 'age') -console.log(result) -``` - -#### `shuffle(Array arr)` - -Shuffle the positions of elements in an array. - -```js -import { shuffle } from 'bellajs' - -shuffle([1, 3, 8, 2, 5, 7]) -``` - -#### `unique(Array arr)` - -Remove all duplicate elements from an array. - -```js -import { unique } from 'bellajs' - -unique([1, 2, 3, 2, 3, 1, 5]) // => [ 1, 2, 3, 5 ] -``` - -### Functional utils - -#### `curry(fn)` - -Make a curried function. - -```js -import { curry } from 'bellajs' - -const sum = curry((a, b, c) => { - return a + b + c -}) - -sum(3)(2)(1) // => 6 -sum(1)(2)(3) // => 6 -sum(1, 2)(3) // => 6 -sum(1)(2, 3) // => 6 -sum(1, 2, 3) // => 6 -``` - -#### `compose(f1, f2, ...fN)` - -Performs right-to-left function composition. - -```js -import { compose } from 'bellajs' - -const f1 = (name) => { - return `f1 ${name}` -} -const f2 = (name) => { - return `f2 ${name}` -} -const f3 = (name) => { - return `f3 ${name}` -} - -const addF = compose(f1, f2, f3) - -addF('Hello') // => 'f1 f2 f3 Hello' - -const add1 = (num) => { - return num + 1 -} - -const mult2 = (num) => { - return num * 2 -} - -const add1AndMult2 = compose(add1, mult2) -add1AndMult2(3) // => 7 -// because multiple to 2 first, then add 1 late => 3 * 2 + 1 -``` - - -#### `pipe(f1, f2, ...fN)` - -Performs left-to-right function composition. - -```js -import { pipe } from 'bellajs' - -const f1 = (name) => { - return `f1 ${name}` -} -const f2 = (name) => { - return `f2 ${name}` -} -const f3 = (name) => { - return `f3 ${name}` -} - -const addF = pipe(f1, f2, f3) - -addF('Hello') // => 'f3 f2 f1 Hello' - -const add1 = (num) => { - return num + 1 -} - -const mult2 = (num) => { - return num * 2 -} - -const add1AndMult2 = pipe(add1, mult2) -add1AndMult2(3) // => 8 -// because add 1 first, then multiple to 2 late => (3 + 1) * 2 -``` - -#### `maybe(Anything val)` - -Return a static variant of `Maybe` monad. - -```js -import { maybe } from 'bellajs' - -const plus5 = x => x + 5 -const minus2 = x => x - 2 -const isNumber = x => Number(x) === x -const toString = x => 'The value is ' + String(x) -const getDefault = () => 'This is default value' - -maybe(5) - .map(plus5) - .map(minus2) - .value() // 8 - -maybe('noop') - .map(plus5) - .map(minus2) - .value() // null - -maybe(5) - .if(isNumber) - .map(plus5) - .map(minus2) - .else(getDefault) - .map(toString) - .value() // 'The value is 8' - -maybe() - .if(isNumber) - .map(plus5) - .map(minus2) - .map(toString) - .value() // null - -maybe() - .if(isNumber) - .map(plus5) - .map(minus2) - .else(getDefault) - .map(toString) - .value() // 'This is default value' -``` - -### Date utils - -#### `formatDateString(Date | Timestamp [, String locale [, Object options]])` - -```js -import { - formatDateString -} from 'bellajs' - -const today = new Date() - -formatDateString(today) // => Jan 3, 2022, 8:34:28 PM GMT+7 - -// custom format -formatDateString(today, { - dateStyle: 'short', - timeStyle: 'short', - hour12: true -}) // => 1/3/22, 8:34 PM - -// custom locale -formatDateString(today, 'zh') // => 2022年1月3日 GMT+7 下午8:34:28 - -// custom lang and format -formatDateString(today, 'zh', { - dateStyle: 'short', - timeStyle: 'long', - hour12: true -}) // => 2022/1/3 GMT+7 下午8:34:28 - -formatDateString(today, 'vi') // => 20:34:28 GMT+7, 3 thg 1, 2022 -formatDateString(today, 'vi', { - dateStyle: 'full', - timeStyle: 'full' -}) // => 20:34:28 Giờ Đông Dương Thứ Hai, 3 tháng 1, 2022 -``` - - -#### `formatTimeAgo(Date | Timestamp [, String locale [, String justnow]])` - -```js -import { - formatTimeAgo -} from 'bellajs' - -const today = new Date() - -const yesterday = today.setDate(today.getDate() - 1) -formatTimeAgo(yesterday) // => 1 day ago - -const current = new Date() -const aLittleWhile = current.setHours(current.getHours() - 3) -formatTimeAgo(aLittleWhile) // => 3 hours ago - -// change locale -formatTimeAgo(aLittleWhile, 'zh') // => 3小时前 -formatTimeAgo(aLittleWhile, 'vi') // => 3 giờ trước -``` - -The last param `justnow` can be used to display a custom 'just now' message, when the distance is lesser than 1s. - -```js -const now = new Date() -const aJiff = now.setTime(now.getTime() - 100) -formatTimeAgo(aJiff) // => 'just now' -formatTimeAgo(aJiff, 'fr', 'à l\'instant') // => à l'instant -formatTimeAgo(aJiff, 'ja', 'すこし前') // => すこし前 -``` - -These two functions based on recent features of built-in object `Intl`. - -Please refer the following resources for more info: - -- [Intl.DateTimeFormat() constructor](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/DateTimeFormat/DateTimeFormat) -- [Intl.RelativeTimeFormat](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/RelativeTimeFormat) -- [Intl.Locale](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale) - - -### Random utils - -#### `randint([Number min [, Number max]])` - -Returns a number between `min` and `max` - -```js -import { randint } from 'bellajs' - -randint() // => a random integer -randint(1, 5) // => a random integer between 3 and 5, including 1 and 5 -``` - -#### `genid([Number length [, String prefix]])` - -Create random ID string. - -```js -import { genid } from 'bellajs' - -genid() // => random 32 chars -genid(16) // => random 16 chars -genid(5) // => random 5 chars -genid(5, 'X_') // => X_{random 3 chars} -``` - -## Test - -```bash -git clone https://github.com/ndaidong/bellajs.git -cd bellajs -npm install -npm test -``` - -# License - -The MIT License (MIT) diff --git a/node_modules/bellajs/dist/bella.esm.js b/node_modules/bellajs/dist/bella.esm.js deleted file mode 100644 index c0b864e3..00000000 --- a/node_modules/bellajs/dist/bella.esm.js +++ /dev/null @@ -1,2 +0,0 @@ -// bellajs@11.1.2 https://github.com/ndaidong/bellajs - built with esbuild at 2023-02-28T14:05:52.752Z -var g=t=>({}).toString.call(t),U=t=>Number.isInteger(t),p=t=>Array.isArray(t),l=t=>String(t)===t,h=t=>Number(t)===t,k=t=>Boolean(t)===t,S=t=>g(t)==="[object Null]",M=t=>g(t)==="[object Undefined]",O=t=>M(t)||S(t),F=t=>g(t)==="[object Function]",a=t=>g(t)==="[object Object]"&&!p(t),w=t=>t instanceof Date&&!isNaN(t.valueOf()),q=t=>g(t).match(/^\[object HTML\w*Element]$/)!==null,z=t=>{let e=/^[a-z]+$/i;return l(t)&&e.test(t)},B=t=>{let e=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;return l(t)&&e.test(t)},H=t=>!t||O(t)||l(t)&&t===""||p(t)&&t.length===0||a(t)&&Object.keys(t).length===0,x=(t,e)=>!t||!e?!1:Object.prototype.hasOwnProperty.call(t,e);var f=t=>{let e=h(t)?String(t):t;if(!l(e))throw new Error("InvalidInput: String required.");return e},R=(t,e=140)=>{let r=f(t);if(r.length<=e)return r;let n=r.substring(0,e).trim(),s=n.split(" ");return s.length>1?(s.pop(),s.map(i=>i.trim()).join(" ")+"..."):n.substring(0,e-3)+"..."},V=t=>f(t).replace(/(<([^>]+)>)/ig,"").trim(),W=t=>f(t).replace(/&/g,"&").replace(//g,">").replace(/"/g,"""),G=t=>f(t).replace(/"/g,'"').replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&"),A=t=>{let e=f(t).toLowerCase();return e.length>1?e.charAt(0).toUpperCase()+e.slice(1):e.toUpperCase()},J=t=>f(t).split(" ").map(e=>A(e)).join(" "),b=(t,e,r)=>{let o=f(t),n=h(e)?String(e):e,s=h(r)?String(r):r;if(l(n)&&l(s))o=o.split(n).join(s);else if(p(n)&&l(s))n.forEach(c=>{o=b(o,c,s)});else if(p(n)&&p(s)&&n.length===s.length){let c=n.length;if(c>0)for(let i=0;i{let t={a:"á|à|ả|ã|ạ|ă|ắ|ặ|ằ|ẳ|ẵ|â|ấ|ầ|ẩ|ẫ|ậ|ä|æ",c:"ç",d:"đ|ð",e:"é|è|ẻ|ẽ|ẹ|ê|ế|ề|ể|ễ|ệ|ë",i:"í|ì|ỉ|ĩ|ị|ï|î",n:"ñ",o:"ó|ò|ỏ|õ|ọ|ô|ố|ồ|ổ|ỗ|ộ|ơ|ớ|ờ|ở|ỡ|ợ|ö|ø",s:"ß",u:"ú|ù|ủ|ũ|ụ|ư|ứ|ừ|ử|ữ|ự|û",y:"ý|ỳ|ỷ|ỹ|ỵ|ÿ"},e={...t};return Object.keys(t).forEach(r=>{let o=r.toUpperCase();e[o]=t[r].toUpperCase()}),e},D=t=>{let e=f(t),r=(n,s)=>{e=b(e,n,s)},o=N();for(let n in o)x(o,n)&&o[n].split("|").forEach(c=>r(c,n));return e},Q=(t,e="-")=>D(t).trim().toLowerCase().replace(/\W+/g," ").replace(/\s+/g," ").replace(/\s/g,e);var Y=(t=0,e=1e6)=>Math.floor(Math.random()*(e-t+1))+t,Z=(t=32,e="")=>{let r=e;for(let o=0;o9&&n>.3&&n<.7?c.toUpperCase():c}return r.substring(0,t)};var L=()=>({dateStyle:"medium",timeStyle:"long"}),_=()=>({second:1e3,minute:60,hour:60,day:24,week:7,month:4,year:12}),C=t=>{try{return new Intl.Locale(t).language!==""}catch{return!1}},et=(...t)=>{let e=t[0],r=C(t[1])?t[1]:"en",o=L(),n=t.length>=3?t[2]:t.length===1?o:a(t[1])?t[1]:o;return new Intl.DateTimeFormat(r,n).format(new Date(e))},rt=(t,e="en",r="just now")=>{let o=new Date(t),n=Date.now()-o,s=_();if(n<=s.second)return r;let c="second";for(let u in s){if(n{let e=t.length,r=(o,n)=>o>0?(...s)=>r(o-s.length,[...n,...s]):t(...n);return r(e,[])};var ct=(...t)=>t.reduce((e,r)=>o=>e(r(o)));var ut=(...t)=>t.reduce((e,r)=>o=>r(e(o)));var m=(t,e,r,o={})=>{let{writable:n=!1,configurable:s=!1,enumerable:c=!1}=o;Object.defineProperty(t,e,{value:r,writable:n,configurable:s,enumerable:c})};var d=t=>{let e=t,r=()=>e==null,o=()=>e,n=u=>d(e||u()),s=u=>d(u(e)===!0?e:null),c=u=>d(r()?null:u(e)),i=Object.create({});return m(i,"__value__",e,{enumerable:!0}),m(i,"__type__","Maybe",{enumerable:!0}),m(i,"isNil",r),m(i,"value",o),m(i,"map",c),m(i,"if",s),m(i,"else",n),i};var y=(t,e=null)=>{let r=e||new Set;if(r.has(t))return t;if(r.add(t),w(t))return new Date(t.valueOf());let o=s=>{let c=Object.create({});for(let i in s)x(s,i)&&(c[i]=y(s[i],r));return c},n=s=>[...s].map(c=>p(c)?n(c):a(c)?o(c):y(c,r));return p(t)?n(t):a(t)?o(t):t},E=(t,e,r=!1,o=[])=>{for(let n in t)if(!(o.length>0&&o.includes(n))&&(!r||r&&x(e,n))){let s=t[n],c=e[n];a(c)&&a(s)||p(c)&&p(s)?e[n]=E(s,e[n],r,o):e[n]=y(s)}return e},xt=(t=[])=>[...new Set(t)],T=(t,e)=>t>e?1:t{let r=[...t],o=e||T;return r.sort(o),r},gt=(t=[],e=1,r="")=>!l(r)||!x(t[0],r)?t:I(t,(o,n)=>o[r]>n[r]?e:o[r]{let e=[...t],r=[],o=e.length;for(;o>0;){let n=Math.floor(Math.random()*o);r.push(e.splice(n,1)[0]),o--}return r},ht=(t=[],e=1)=>{let r=P(t),o=Math.max(1,e),n=Math.min(o,r.length-1);return r.splice(0,n)};export{y as clone,ct as compose,E as copies,ot as curry,W as escapeHTML,et as formatDateString,rt as formatTimeAgo,Z as genid,x as hasProperty,p as isArray,k as isBoolean,w as isDate,q as isElement,B as isEmail,H as isEmpty,F as isFunction,U as isInteger,z as isLetter,O as isNil,S as isNull,h as isNumber,a as isObject,l as isString,M as isUndefined,d as maybe,ht as pick,ut as pipe,Y as randint,b as replaceAll,P as shuffle,Q as slugify,I as sort,gt as sortBy,D as stripAccent,V as stripTags,R as truncate,A as ucfirst,J as ucwords,G as unescapeHTML,xt as unique}; diff --git a/node_modules/bellajs/dist/bella.esm.js.map b/node_modules/bellajs/dist/bella.esm.js.map deleted file mode 100644 index 93cb297f..00000000 --- a/node_modules/bellajs/dist/bella.esm.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../src/utils/detection.js", "../src/utils/string.js", "../src/utils/random.js", "../src/utils/date.js", "../src/utils/curry.js", "../src/utils/compose.js", "../src/utils/pipe.js", "../src/utils/defineProp.js", "../src/utils/maybe.js", "../src/main.js"], - "sourcesContent": ["// utils / detection\n\nconst ob2Str = (val) => {\n return {}.toString.call(val)\n}\n\nexport const isInteger = (val) => {\n return Number.isInteger(val)\n}\n\nexport const isArray = (val) => {\n return Array.isArray(val)\n}\n\nexport const isString = (val) => {\n return String(val) === val\n}\n\nexport const isNumber = (val) => {\n return Number(val) === val\n}\n\nexport const isBoolean = (val) => {\n return Boolean(val) === val\n}\n\nexport const isNull = (val) => {\n return ob2Str(val) === '[object Null]'\n}\n\nexport const isUndefined = (val) => {\n return ob2Str(val) === '[object Undefined]'\n}\n\nexport const isNil = (val) => {\n return isUndefined(val) || isNull(val)\n}\n\nexport const isFunction = (val) => {\n return ob2Str(val) === '[object Function]'\n}\n\nexport const isObject = (val) => {\n return ob2Str(val) === '[object Object]' && !isArray(val)\n}\n\nexport const isDate = (val) => {\n return val instanceof Date && !isNaN(val.valueOf())\n}\n\nexport const isElement = (v) => {\n return ob2Str(v).match(/^\\[object HTML\\w*Element]$/) !== null\n}\n\nexport const isLetter = (val) => {\n const re = /^[a-z]+$/i\n return isString(val) && re.test(val)\n}\n\nexport const isEmail = (val) => {\n const re = /^([\\w-]+(?:\\.[\\w-]+)*)@((?:[\\w-]+\\.)*\\w[\\w-]{0,66})\\.([a-z]{2,6}(?:\\.[a-z]{2})?)$/i\n return isString(val) && re.test(val)\n}\n\nexport const isEmpty = (val) => {\n return !val || isNil(val) ||\n (isString(val) && val === '') ||\n (isArray(val) && val.length === 0) ||\n (isObject(val) && Object.keys(val).length === 0)\n}\n\nexport const hasProperty = (ob, k) => {\n if (!ob || !k) {\n return false\n }\n return Object.prototype.hasOwnProperty.call(ob, k)\n}\n", "// utils / string\n\nimport {\n isArray,\n isString,\n isNumber,\n hasProperty\n} from './detection.js'\n\nconst toString = (input) => {\n const s = isNumber(input) ? String(input) : input\n if (!isString(s)) {\n throw new Error('InvalidInput: String required.')\n }\n return s\n}\n\nexport const truncate = (s, len = 140) => {\n const txt = toString(s)\n const txtlen = txt.length\n if (txtlen <= len) {\n return txt\n }\n const subtxt = txt.substring(0, len).trim()\n const subtxtArr = subtxt.split(' ')\n const subtxtLen = subtxtArr.length\n if (subtxtLen > 1) {\n subtxtArr.pop()\n return subtxtArr.map(word => word.trim()).join(' ') + '...'\n }\n return subtxt.substring(0, len - 3) + '...'\n}\n\nexport const stripTags = (s) => {\n return toString(s).replace(/(<([^>]+)>)/ig, '').trim()\n}\n\nexport const escapeHTML = (s) => {\n return toString(s)\n .replace(/&/g, '&')\n .replace(//g, '>')\n .replace(/\"/g, '"')\n}\n\nexport const unescapeHTML = (s) => {\n return toString(s)\n .replace(/"/g, '\"')\n .replace(/</g, '<')\n .replace(/>/g, '>')\n .replace(/&/g, '&')\n}\n\nexport const ucfirst = (s) => {\n const x = toString(s).toLowerCase()\n return x.length > 1 ? x.charAt(0).toUpperCase() + x.slice(1) : x.toUpperCase()\n}\n\nexport const ucwords = (s) => {\n return toString(s).split(' ').map((w) => {\n return ucfirst(w)\n }).join(' ')\n}\n\nexport const replaceAll = (s, alpha, beta) => {\n let x = toString(s)\n const a = isNumber(alpha) ? String(alpha) : alpha\n const b = isNumber(beta) ? String(beta) : beta\n\n if (isString(a) && isString(b)) {\n const aa = x.split(a)\n x = aa.join(b)\n } else if (isArray(a) && isString(b)) {\n a.forEach((v) => {\n x = replaceAll(x, v, b)\n })\n } else if (isArray(a) && isArray(b) && a.length === b.length) {\n const k = a.length\n if (k > 0) {\n for (let i = 0; i < k; i++) {\n const aaa = a[i]\n const bb = b[i]\n x = replaceAll(x, aaa, bb)\n }\n }\n }\n return x\n}\n\nconst getCharMap = () => {\n const lmap = {\n a: 'á|à|ả|ã|ạ|ă|ắ|ặ|ằ|ẳ|ẵ|â|ấ|ầ|ẩ|ẫ|ậ|ä|æ',\n c: 'ç',\n d: 'đ|ð',\n e: 'é|è|ẻ|ẽ|ẹ|ê|ế|ề|ể|ễ|ệ|ë',\n i: 'í|ì|ỉ|ĩ|ị|ï|î',\n n: 'ñ',\n o: 'ó|ò|ỏ|õ|ọ|ô|ố|ồ|ổ|ỗ|ộ|ơ|ớ|ờ|ở|ỡ|ợ|ö|ø',\n s: 'ß',\n u: 'ú|ù|ủ|ũ|ụ|ư|ứ|ừ|ử|ữ|ự|û',\n y: 'ý|ỳ|ỷ|ỹ|ỵ|ÿ',\n }\n\n const map = {\n ...lmap,\n }\n Object.keys(lmap).forEach((k) => {\n const K = k.toUpperCase()\n map[K] = lmap[k].toUpperCase()\n })\n\n return map\n}\n\nexport const stripAccent = (s) => {\n let x = toString(s)\n\n const updateS = (ai, key) => {\n x = replaceAll(x, ai, key)\n }\n\n const map = getCharMap()\n for (const key in map) {\n if (hasProperty(map, key)) {\n const a = map[key].split('|')\n a.forEach((item) => {\n return updateS(item, key)\n })\n }\n }\n return x\n}\n\nexport const slugify = (s, delimiter = '-') => {\n return stripAccent(s)\n .trim()\n .toLowerCase()\n .replace(/\\W+/g, ' ')\n .replace(/\\s+/g, ' ')\n .replace(/\\s/g, delimiter)\n}\n", "// utils / random\n\nexport const randint = (min = 0, max = 1e6) => {\n return Math.floor(Math.random() * (max - min + 1)) + min\n}\n\nexport const genid = (len = 32, prefix = '') => {\n let s = prefix\n for (let i = 0; i < len; i++) {\n const r = Math.random()\n const k = Math.floor(r * 36)\n const c = k.toString(36)\n s += (k > 9 && r > 0.3 && r < 0.7) ? c.toUpperCase() : c\n }\n return s.substring(0, len)\n}\n", "// utils / date\n\nimport {\n isObject\n} from './detection.js'\n\nconst getDateFormat = () => {\n return {\n dateStyle: 'medium',\n timeStyle: 'long',\n }\n}\n\nconst getTimeConvers = () => {\n return {\n second: 1000,\n minute: 60,\n hour: 60,\n day: 24,\n week: 7,\n month: 4,\n year: 12,\n }\n}\n\nconst isValidLocal = (hl) => {\n try {\n const locale = new Intl.Locale(hl)\n return locale.language !== ''\n } catch (err) {\n return false\n }\n}\n\nexport const formatDateString = (...args) => {\n const input = args[0]\n const lang = isValidLocal(args[1]) ? args[1] : 'en'\n const dfmt = getDateFormat()\n const opt = args.length >= 3\n ? args[2]\n : args.length === 1\n ? dfmt\n : isObject(args[1])\n ? args[1]\n : dfmt\n const dtf = new Intl.DateTimeFormat(lang, opt)\n return dtf.format(new Date(input))\n}\n\nexport const formatTimeAgo = (input, lang = 'en', justnow = 'just now') => {\n const t = new Date(input)\n let delta = Date.now() - t\n const tcv = getTimeConvers()\n if (delta <= tcv.second) {\n return justnow\n }\n let unit = 'second'\n for (const key in tcv) {\n if (delta < tcv[key]) {\n break\n } else {\n unit = key\n delta /= tcv[key]\n }\n }\n delta = Math.floor(delta)\n const rel = new Intl.RelativeTimeFormat(lang)\n return rel.format(-delta, unit)\n}\n", "// utils / curry\n\nexport const curry = (fn) => {\n const totalArguments = fn.length\n const next = (argumentLength, rest) => {\n if (argumentLength > 0) {\n return (...args) => {\n return next(argumentLength - args.length, [...rest, ...args])\n }\n }\n return fn(...rest)\n }\n return next(totalArguments, [])\n}\n", "// utils / compose\n\nexport const compose = (...fns) => {\n return fns.reduce((f, g) => (x) => f(g(x)))\n}\n", "// utils / pipe\n\nexport const pipe = (...fns) => {\n return fns.reduce((f, g) => (x) => g(f(x)))\n}\n", "// utils / defineProp\n\nexport const defineProp = (ob, key, val, config = {}) => {\n const {\n writable = false,\n configurable = false,\n enumerable = false,\n } = config\n Object.defineProperty(ob, key, {\n value: val,\n writable,\n configurable,\n enumerable,\n })\n}\n", "// utils / maybe\n\nimport {\n defineProp\n} from './defineProp.js'\n\nexport const maybe = (val) => {\n const __val = val\n const isNil = () => {\n return __val === null || __val === undefined\n }\n const value = () => {\n return __val\n }\n const getElse = (fn) => {\n return maybe(__val || fn())\n }\n const filter = (fn) => {\n return maybe(fn(__val) === true ? __val : null)\n }\n const map = (fn) => {\n return maybe(isNil() ? null : fn(__val))\n }\n const output = Object.create({})\n defineProp(output, '__value__', __val, { enumerable: true })\n defineProp(output, '__type__', 'Maybe', { enumerable: true })\n defineProp(output, 'isNil', isNil)\n defineProp(output, 'value', value)\n defineProp(output, 'map', map)\n defineProp(output, 'if', filter)\n defineProp(output, 'else', getElse)\n return output\n}\n", "/**\n * bellajs\n * @ndaidong\n**/\n\nimport {\n isObject,\n isArray,\n isDate,\n isString,\n hasProperty\n} from './utils/detection.js'\n\nexport const clone = (val, history = null) => {\n const stack = history || new Set()\n\n if (stack.has(val)) {\n return val\n }\n\n stack.add(val)\n\n if (isDate(val)) {\n return new Date(val.valueOf())\n }\n\n const copyObject = (o) => {\n const oo = Object.create({})\n for (const k in o) {\n if (hasProperty(o, k)) {\n oo[k] = clone(o[k], stack)\n }\n }\n return oo\n }\n\n const copyArray = (a) => {\n return [...a].map((e) => {\n if (isArray(e)) {\n return copyArray(e)\n } else if (isObject(e)) {\n return copyObject(e)\n }\n return clone(e, stack)\n })\n }\n\n if (isArray(val)) {\n return copyArray(val)\n }\n\n if (isObject(val)) {\n return copyObject(val)\n }\n\n return val\n}\n\nexport const copies = (source, dest, matched = false, excepts = []) => {\n for (const k in source) {\n if (excepts.length > 0 && excepts.includes(k)) {\n continue // eslint-disable-line no-continue\n }\n if (!matched || (matched && hasProperty(dest, k))) {\n const oa = source[k]\n const ob = dest[k]\n if ((isObject(ob) && isObject(oa)) || (isArray(ob) && isArray(oa))) {\n dest[k] = copies(oa, dest[k], matched, excepts)\n } else {\n dest[k] = clone(oa)\n }\n }\n }\n return dest\n}\n\nexport const unique = (arr = []) => {\n return [...new Set(arr)]\n}\n\nconst fnSort = (a, b) => {\n return a > b ? 1 : (a < b ? -1 : 0)\n}\n\nexport const sort = (arr = [], sorting = null) => {\n const tmp = [...arr]\n const fn = sorting || fnSort\n tmp.sort(fn)\n return tmp\n}\n\nexport const sortBy = (arr = [], order = 1, key = '') => {\n if (!isString(key) || !hasProperty(arr[0], key)) {\n return arr\n }\n return sort(arr, (m, n) => {\n return m[key] > n[key] ? order : (m[key] < n[key] ? (-1 * order) : 0)\n })\n}\n\nexport const shuffle = (arr = []) => {\n const input = [...arr]\n const output = []\n let inputLen = input.length\n while (inputLen > 0) {\n const index = Math.floor(Math.random() * inputLen)\n output.push(input.splice(index, 1)[0])\n inputLen--\n }\n return output\n}\n\nexport const pick = (arr = [], count = 1) => {\n const a = shuffle(arr)\n const mc = Math.max(1, count)\n const c = Math.min(mc, a.length - 1)\n return a.splice(0, c)\n}\n\nexport * from './utils/detection.js'\nexport * from './utils/string.js'\nexport * from './utils/random.js'\nexport * from './utils/date.js'\n\nexport * from './utils/curry.js'\nexport * from './utils/compose.js'\nexport * from './utils/pipe.js'\nexport * from './utils/maybe.js'\n"], - "mappings": ";AAEA,IAAMA,EAAUC,IACP,CAAC,GAAE,SAAS,KAAKA,CAAG,EAGhBC,EAAaD,GACjB,OAAO,UAAUA,CAAG,EAGhBE,EAAWF,GACf,MAAM,QAAQA,CAAG,EAGbG,EAAYH,GAChB,OAAOA,CAAG,IAAMA,EAGZI,EAAYJ,GAChB,OAAOA,CAAG,IAAMA,EAGZK,EAAaL,GACj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O,EAAGgC,CAAC,CACtB", - "names": ["ob2Str", "val", "isInteger", "isArray", "isString", "isNumber", "isBoolean", "isNull", "isUndefined", "isNil", "isFunction", "isObject", "isDate", "isElement", "v", "isLetter", "re", "isEmail", "isEmpty", "hasProperty", "ob", "k", "toString", "input", "s", "isNumber", "isString", "truncate", "len", "txt", "subtxt", "subtxtArr", "word", "stripTags", "escapeHTML", "unescapeHTML", "ucfirst", "x", "ucwords", "w", "replaceAll", "alpha", "beta", "a", "b", "isArray", "v", "k", "aaa", "bb", "getCharMap", "lmap", "map", "K", "stripAccent", "updateS", "ai", "key", "hasProperty", "item", "slugify", "delimiter", "randint", "min", "max", "genid", "len", "prefix", "s", "i", "r", "k", "getDateFormat", "getTimeConvers", "isValidLocal", "hl", "formatDateString", "args", "input", "lang", "dfmt", "opt", "isObject", "formatTimeAgo", "justnow", "t", "delta", "tcv", "unit", "key", "curry", "fn", "totalArguments", "next", "argumentLength", "rest", "args", "compose", "fns", "f", "g", "x", "pipe", "fns", "f", "g", "x", "defineProp", "ob", "key", "val", "config", "writable", "configurable", "enumerable", "maybe", "val", "__val", "isNil", "value", "getElse", "fn", "filter", "map", "output", "defineProp", "clone", "val", "history", "stack", "isDate", "copyObject", "o", "oo", "k", "hasProperty", "copyArray", "a", "e", "isArray", "isObject", "copies", "source", "dest", "matched", "excepts", "oa", "ob", "unique", "arr", "fnSort", "b", "sort", "sorting", "tmp", "fn", "sortBy", "order", "key", "isString", "m", "shuffle", "input", "output", "inputLen", "index", "pick", "count", "mc", "c"] -} diff --git a/node_modules/bellajs/dist/bella.js b/node_modules/bellajs/dist/bella.js deleted file mode 100644 index 7f26c196..00000000 --- a/node_modules/bellajs/dist/bella.js +++ /dev/null @@ -1,2 +0,0 @@ -// bellajs@11.1.2 https://github.com/ndaidong/bellajs - built with esbuild at 2023-02-28T14:05:52.752Z -var w=Object.defineProperty;var E=Object.getOwnPropertyDescriptor;var T=Object.getOwnPropertyNames;var I=Object.prototype.hasOwnProperty;var P=(t,e)=>{for(var r in e)w(t,r,{get:e[r],enumerable:!0})},U=(t,e,r,o)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of T(e))!I.call(t,n)&&n!==r&&w(t,n,{get:()=>e[n],enumerable:!(o=E(e,n))||o.enumerable});return t};var k=t=>U(w({},"__esModule",{value:!0}),t);var at={};P(at,{clone:()=>y,compose:()=>st,copies:()=>D,curry:()=>ot,escapeHTML:()=>W,formatDateString:()=>rt,formatTimeAgo:()=>nt,genid:()=>Z,hasProperty:()=>x,isArray:()=>u,isBoolean:()=>q,isDate:()=>j,isElement:()=>B,isEmail:()=>$,isEmpty:()=>K,isFunction:()=>z,isInteger:()=>F,isLetter:()=>H,isNil:()=>O,isNull:()=>S,isNumber:()=>h,isObject:()=>a,isString:()=>l,isUndefined:()=>M,maybe:()=>d,pick:()=>lt,pipe:()=>ct,randint:()=>Y,replaceAll:()=>b,shuffle:()=>_,slugify:()=>X,sort:()=>L,sortBy:()=>pt,stripAccent:()=>N,stripTags:()=>V,truncate:()=>R,ucfirst:()=>A,ucwords:()=>J,unescapeHTML:()=>G,unique:()=>it});module.exports=k(at);var g=t=>({}).toString.call(t),F=t=>Number.isInteger(t),u=t=>Array.isArray(t),l=t=>String(t)===t,h=t=>Number(t)===t,q=t=>Boolean(t)===t,S=t=>g(t)==="[object Null]",M=t=>g(t)==="[object Undefined]",O=t=>M(t)||S(t),z=t=>g(t)==="[object Function]",a=t=>g(t)==="[object Object]"&&!u(t),j=t=>t instanceof Date&&!isNaN(t.valueOf()),B=t=>g(t).match(/^\[object HTML\w*Element]$/)!==null,H=t=>{let e=/^[a-z]+$/i;return l(t)&&e.test(t)},$=t=>{let e=/^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i;return l(t)&&e.test(t)},K=t=>!t||O(t)||l(t)&&t===""||u(t)&&t.length===0||a(t)&&Object.keys(t).length===0,x=(t,e)=>!t||!e?!1:Object.prototype.hasOwnProperty.call(t,e);var f=t=>{let e=h(t)?String(t):t;if(!l(e))throw new Error("InvalidInput: String required.");return e},R=(t,e=140)=>{let r=f(t);if(r.length<=e)return r;let n=r.substring(0,e).trim(),s=n.split(" ");return s.length>1?(s.pop(),s.map(i=>i.trim()).join(" ")+"..."):n.substring(0,e-3)+"..."},V=t=>f(t).replace(/(<([^>]+)>)/ig,"").trim(),W=t=>f(t).replace(/&/g,"&").replace(//g,">").replace(/"/g,"""),G=t=>f(t).replace(/"/g,'"').replace(/</g,"<").replace(/>/g,">").replace(/&/g,"&"),A=t=>{let e=f(t).toLowerCase();return e.length>1?e.charAt(0).toUpperCase()+e.slice(1):e.toUpperCase()},J=t=>f(t).split(" ").map(e=>A(e)).join(" "),b=(t,e,r)=>{let o=f(t),n=h(e)?String(e):e,s=h(r)?String(r):r;if(l(n)&&l(s))o=o.split(n).join(s);else if(u(n)&&l(s))n.forEach(c=>{o=b(o,c,s)});else if(u(n)&&u(s)&&n.length===s.length){let c=n.length;if(c>0)for(let i=0;i{let t={a:"á|à|ả|ã|ạ|ă|ắ|ặ|ằ|ẳ|ẵ|â|ấ|ầ|ẩ|ẫ|ậ|ä|æ",c:"ç",d:"đ|ð",e:"é|è|ẻ|ẽ|ẹ|ê|ế|ề|ể|ễ|ệ|ë",i:"í|ì|ỉ|ĩ|ị|ï|î",n:"ñ",o:"ó|ò|ỏ|õ|ọ|ô|ố|ồ|ổ|ỗ|ộ|ơ|ớ|ờ|ở|ỡ|ợ|ö|ø",s:"ß",u:"ú|ù|ủ|ũ|ụ|ư|ứ|ừ|ử|ữ|ự|û",y:"ý|ỳ|ỷ|ỹ|ỵ|ÿ"},e={...t};return Object.keys(t).forEach(r=>{let o=r.toUpperCase();e[o]=t[r].toUpperCase()}),e},N=t=>{let e=f(t),r=(n,s)=>{e=b(e,n,s)},o=Q();for(let n in o)x(o,n)&&o[n].split("|").forEach(c=>r(c,n));return e},X=(t,e="-")=>N(t).trim().toLowerCase().replace(/\W+/g," ").replace(/\s+/g," ").replace(/\s/g,e);var Y=(t=0,e=1e6)=>Math.floor(Math.random()*(e-t+1))+t,Z=(t=32,e="")=>{let r=e;for(let o=0;o9&&n>.3&&n<.7?c.toUpperCase():c}return r.substring(0,t)};var v=()=>({dateStyle:"medium",timeStyle:"long"}),tt=()=>({second:1e3,minute:60,hour:60,day:24,week:7,month:4,year:12}),et=t=>{try{return new Intl.Locale(t).language!==""}catch{return!1}},rt=(...t)=>{let e=t[0],r=et(t[1])?t[1]:"en",o=v(),n=t.length>=3?t[2]:t.length===1?o:a(t[1])?t[1]:o;return new Intl.DateTimeFormat(r,n).format(new Date(e))},nt=(t,e="en",r="just now")=>{let o=new Date(t),n=Date.now()-o,s=tt();if(n<=s.second)return r;let c="second";for(let p in s){if(n{let e=t.length,r=(o,n)=>o>0?(...s)=>r(o-s.length,[...n,...s]):t(...n);return r(e,[])};var st=(...t)=>t.reduce((e,r)=>o=>e(r(o)));var ct=(...t)=>t.reduce((e,r)=>o=>r(e(o)));var m=(t,e,r,o={})=>{let{writable:n=!1,configurable:s=!1,enumerable:c=!1}=o;Object.defineProperty(t,e,{value:r,writable:n,configurable:s,enumerable:c})};var d=t=>{let e=t,r=()=>e==null,o=()=>e,n=p=>d(e||p()),s=p=>d(p(e)===!0?e:null),c=p=>d(r()?null:p(e)),i=Object.create({});return m(i,"__value__",e,{enumerable:!0}),m(i,"__type__","Maybe",{enumerable:!0}),m(i,"isNil",r),m(i,"value",o),m(i,"map",c),m(i,"if",s),m(i,"else",n),i};var y=(t,e=null)=>{let r=e||new Set;if(r.has(t))return t;if(r.add(t),j(t))return new Date(t.valueOf());let o=s=>{let c=Object.create({});for(let i in s)x(s,i)&&(c[i]=y(s[i],r));return c},n=s=>[...s].map(c=>u(c)?n(c):a(c)?o(c):y(c,r));return u(t)?n(t):a(t)?o(t):t},D=(t,e,r=!1,o=[])=>{for(let n in t)if(!(o.length>0&&o.includes(n))&&(!r||r&&x(e,n))){let s=t[n],c=e[n];a(c)&&a(s)||u(c)&&u(s)?e[n]=D(s,e[n],r,o):e[n]=y(s)}return e},it=(t=[])=>[...new Set(t)],ut=(t,e)=>t>e?1:t{let r=[...t],o=e||ut;return r.sort(o),r},pt=(t=[],e=1,r="")=>!l(r)||!x(t[0],r)?t:L(t,(o,n)=>o[r]>n[r]?e:o[r]{let e=[...t],r=[],o=e.length;for(;o>0;){let n=Math.floor(Math.random()*o);r.push(e.splice(n,1)[0]),o--}return r},lt=(t=[],e=1)=>{let r=_(t),o=Math.max(1,e),n=Math.min(o,r.length-1);return r.splice(0,n)};0&&(module.exports={clone,compose,copies,curry,escapeHTML,formatDateString,formatTimeAgo,genid,hasProperty,isArray,isBoolean,isDate,isElement,isEmail,isEmpty,isFunction,isInteger,isLetter,isNil,isNull,isNumber,isObject,isString,isUndefined,maybe,pick,pipe,randint,replaceAll,shuffle,slugify,sort,sortBy,stripAccent,stripTags,truncate,ucfirst,ucwords,unescapeHTML,unique}); diff --git a/node_modules/bellajs/dist/bella.js.map b/node_modules/bellajs/dist/bella.js.map deleted file mode 100644 index a40f1d22..00000000 --- a/node_modules/bellajs/dist/bella.js.map +++ /dev/null @@ -1,7 +0,0 @@ -{ - "version": 3, - "sources": ["../src/main.js", "../src/utils/detection.js", "../src/utils/string.js", "../src/utils/random.js", "../src/utils/date.js", "../src/utils/curry.js", "../src/utils/compose.js", "../src/utils/pipe.js", "../src/utils/defineProp.js", "../src/utils/maybe.js"], - "sourcesContent": ["/**\n * bellajs\n * @ndaidong\n**/\n\nimport {\n isObject,\n isArray,\n isDate,\n isString,\n hasProperty\n} from './utils/detection.js'\n\nexport const clone = (val, history = null) => {\n const stack = history || new Set()\n\n if (stack.has(val)) {\n return val\n }\n\n stack.add(val)\n\n if (isDate(val)) {\n return new Date(val.valueOf())\n }\n\n const copyObject = (o) => {\n const oo = Object.create({})\n for (const k in o) {\n if (hasProperty(o, k)) {\n oo[k] = clone(o[k], stack)\n }\n }\n return oo\n }\n\n const copyArray = (a) => {\n return [...a].map((e) => {\n if (isArray(e)) {\n return copyArray(e)\n } else if (isObject(e)) {\n return copyObject(e)\n }\n return clone(e, stack)\n })\n }\n\n if (isArray(val)) {\n return copyArray(val)\n }\n\n if (isObject(val)) {\n return copyObject(val)\n }\n\n return val\n}\n\nexport const copies = (source, dest, matched = false, excepts = []) => {\n for (const k in source) {\n if (excepts.length > 0 && excepts.includes(k)) {\n continue // eslint-disable-line no-continue\n }\n if (!matched || (matched && hasProperty(dest, k))) {\n const oa = source[k]\n const ob = dest[k]\n if ((isObject(ob) && isObject(oa)) || (isArray(ob) && isArray(oa))) {\n dest[k] = copies(oa, dest[k], matched, excepts)\n } else {\n dest[k] = clone(oa)\n }\n }\n }\n return dest\n}\n\nexport const unique = (arr = []) => {\n return [...new Set(arr)]\n}\n\nconst fnSort = (a, b) => {\n return a > b ? 1 : (a < b ? -1 : 0)\n}\n\nexport const sort = (arr = [], sorting = null) => {\n const tmp = [...arr]\n const fn = sorting || fnSort\n tmp.sort(fn)\n return tmp\n}\n\nexport const sortBy = (arr = [], order = 1, key = '') => {\n if (!isString(key) || !hasProperty(arr[0], key)) {\n return arr\n }\n return sort(arr, (m, n) => {\n return m[key] > n[key] ? order : (m[key] < n[key] ? (-1 * order) : 0)\n })\n}\n\nexport const shuffle = (arr = []) => {\n const input = [...arr]\n const output = []\n let inputLen = input.length\n while (inputLen > 0) {\n const index = Math.floor(Math.random() * inputLen)\n output.push(input.splice(index, 1)[0])\n inputLen--\n }\n return output\n}\n\nexport const pick = (arr = [], count = 1) => {\n const a = shuffle(arr)\n const mc = Math.max(1, count)\n const c = Math.min(mc, a.length - 1)\n return a.splice(0, c)\n}\n\nexport * from './utils/detection.js'\nexport * from './utils/string.js'\nexport * from './utils/random.js'\nexport * from './utils/date.js'\n\nexport * from './utils/curry.js'\nexport * from './utils/compose.js'\nexport * from './utils/pipe.js'\nexport * from './utils/maybe.js'\n", "// utils / detection\n\nconst ob2Str = (val) => {\n return {}.toString.call(val)\n}\n\nexport const isInteger = (val) => {\n return Number.isInteger(val)\n}\n\nexport const isArray = (val) => {\n return Array.isArray(val)\n}\n\nexport const isString = (val) => {\n return String(val) === val\n}\n\nexport const isNumber = (val) => {\n return Number(val) === val\n}\n\nexport const isBoolean = (val) => {\n return Boolean(val) === val\n}\n\nexport const isNull = (val) => {\n return ob2Str(val) === '[object Null]'\n}\n\nexport const isUndefined = (val) => {\n return ob2Str(val) === '[object Undefined]'\n}\n\nexport const isNil = (val) => {\n return isUndefined(val) || isNull(val)\n}\n\nexport const isFunction = (val) => {\n return ob2Str(val) === '[object Function]'\n}\n\nexport const isObject = (val) => {\n return ob2Str(val) === '[object Object]' && !isArray(val)\n}\n\nexport const isDate = (val) => {\n return val instanceof Date && !isNaN(val.valueOf())\n}\n\nexport const isElement = (v) => {\n return ob2Str(v).match(/^\\[object HTML\\w*Element]$/) !== null\n}\n\nexport const isLetter = (val) => {\n const re = /^[a-z]+$/i\n return isString(val) && re.test(val)\n}\n\nexport const isEmail = (val) => {\n const re = /^([\\w-]+(?:\\.[\\w-]+)*)@((?:[\\w-]+\\.)*\\w[\\w-]{0,66})\\.([a-z]{2,6}(?:\\.[a-z]{2})?)$/i\n return isString(val) && re.test(val)\n}\n\nexport const isEmpty = (val) => {\n return !val || isNil(val) ||\n (isString(val) && val === '') ||\n (isArray(val) && val.length === 0) ||\n (isObject(val) && Object.keys(val).length === 0)\n}\n\nexport const hasProperty = (ob, k) => {\n if (!ob || !k) {\n return false\n }\n return Object.prototype.hasOwnProperty.call(ob, k)\n}\n", "// utils / string\n\nimport {\n isArray,\n isString,\n isNumber,\n hasProperty\n} from './detection.js'\n\nconst toString = (input) => {\n const s = isNumber(input) ? String(input) : input\n if (!isString(s)) {\n throw new Error('InvalidInput: String required.')\n }\n return s\n}\n\nexport const truncate = (s, len = 140) => {\n const txt = toString(s)\n const txtlen = txt.length\n if (txtlen <= len) {\n return txt\n }\n const subtxt = txt.substring(0, len).trim()\n const subtxtArr = subtxt.split(' ')\n const subtxtLen = subtxtArr.length\n if (subtxtLen > 1) {\n subtxtArr.pop()\n return subtxtArr.map(word => word.trim()).join(' ') + '...'\n }\n return subtxt.substring(0, len - 3) + '...'\n}\n\nexport const stripTags = (s) => {\n return toString(s).replace(/(<([^>]+)>)/ig, '').trim()\n}\n\nexport const escapeHTML = (s) => {\n return toString(s)\n .replace(/&/g, '&')\n .replace(//g, '>')\n .replace(/\"/g, '"')\n}\n\nexport const unescapeHTML = (s) => {\n return toString(s)\n .replace(/"/g, '\"')\n .replace(/</g, '<')\n .replace(/>/g, '>')\n .replace(/&/g, '&')\n}\n\nexport const ucfirst = (s) => {\n const x = toString(s).toLowerCase()\n return x.length > 1 ? x.charAt(0).toUpperCase() + x.slice(1) : x.toUpperCase()\n}\n\nexport const ucwords = (s) => {\n return toString(s).split(' ').map((w) => {\n return ucfirst(w)\n }).join(' ')\n}\n\nexport const replaceAll = (s, alpha, beta) => {\n let x = toString(s)\n const a = isNumber(alpha) ? String(alpha) : alpha\n const b = isNumber(beta) ? String(beta) : beta\n\n if (isString(a) && isString(b)) {\n const aa = x.split(a)\n x = aa.join(b)\n } else if (isArray(a) && isString(b)) {\n a.forEach((v) => {\n x = replaceAll(x, v, b)\n })\n } else if (isArray(a) && isArray(b) && a.length === b.length) {\n const k = a.length\n if (k > 0) {\n for (let i = 0; i < k; i++) {\n const aaa = a[i]\n const bb = b[i]\n x = replaceAll(x, aaa, bb)\n }\n }\n }\n return x\n}\n\nconst getCharMap = () => {\n const lmap = {\n a: 'á|à|ả|ã|ạ|ă|ắ|ặ|ằ|ẳ|ẵ|â|ấ|ầ|ẩ|ẫ|ậ|ä|æ',\n c: 'ç',\n d: 'đ|ð',\n e: 'é|è|ẻ|ẽ|ẹ|ê|ế|ề|ể|ễ|ệ|ë',\n i: 'í|ì|ỉ|ĩ|ị|ï|î',\n n: 'ñ',\n o: 'ó|ò|ỏ|õ|ọ|ô|ố|ồ|ổ|ỗ|ộ|ơ|ớ|ờ|ở|ỡ|ợ|ö|ø',\n s: 'ß',\n u: 'ú|ù|ủ|ũ|ụ|ư|ứ|ừ|ử|ữ|ự|û',\n y: 'ý|ỳ|ỷ|ỹ|ỵ|ÿ',\n }\n\n const map = {\n ...lmap,\n }\n Object.keys(lmap).forEach((k) => {\n const K = k.toUpperCase()\n map[K] = lmap[k].toUpperCase()\n })\n\n return map\n}\n\nexport const stripAccent = (s) => {\n let x = toString(s)\n\n const updateS = (ai, key) => {\n x = replaceAll(x, ai, key)\n }\n\n const map = getCharMap()\n for (const key in map) {\n if (hasProperty(map, key)) {\n const a = map[key].split('|')\n a.forEach((item) => {\n return updateS(item, key)\n })\n }\n }\n return x\n}\n\nexport const slugify = (s, delimiter = '-') => {\n return stripAccent(s)\n .trim()\n .toLowerCase()\n .replace(/\\W+/g, ' ')\n .replace(/\\s+/g, ' ')\n .replace(/\\s/g, delimiter)\n}\n", "// utils / random\n\nexport const randint = (min = 0, max = 1e6) => {\n return Math.floor(Math.random() * (max - min + 1)) + min\n}\n\nexport const genid = (len = 32, prefix = '') => {\n let s = prefix\n for (let i = 0; i < len; i++) {\n const r = Math.random()\n const k = Math.floor(r * 36)\n const c = k.toString(36)\n s += (k > 9 && r > 0.3 && r < 0.7) ? c.toUpperCase() : c\n }\n return s.substring(0, len)\n}\n", "// utils / date\n\nimport {\n isObject\n} from './detection.js'\n\nconst getDateFormat = () => {\n return {\n dateStyle: 'medium',\n timeStyle: 'long',\n }\n}\n\nconst getTimeConvers = () => {\n return {\n second: 1000,\n minute: 60,\n hour: 60,\n day: 24,\n week: 7,\n month: 4,\n year: 12,\n }\n}\n\nconst isValidLocal = (hl) => {\n try {\n const locale = new Intl.Locale(hl)\n return locale.language !== ''\n } catch (err) {\n return false\n }\n}\n\nexport const formatDateString = (...args) => {\n const input = args[0]\n const lang = isValidLocal(args[1]) ? args[1] : 'en'\n const dfmt = getDateFormat()\n const opt = args.length >= 3\n ? args[2]\n : args.length === 1\n ? dfmt\n : isObject(args[1])\n ? args[1]\n : dfmt\n const dtf = new Intl.DateTimeFormat(lang, opt)\n return dtf.format(new Date(input))\n}\n\nexport const formatTimeAgo = (input, lang = 'en', justnow = 'just now') => {\n const t = new Date(input)\n let delta = Date.now() - t\n const tcv = getTimeConvers()\n if (delta <= tcv.second) {\n return justnow\n }\n let unit = 'second'\n for (const key in tcv) {\n if (delta < tcv[key]) {\n break\n } else {\n unit = key\n delta /= tcv[key]\n }\n }\n delta = Math.floor(delta)\n const rel = new Intl.RelativeTimeFormat(lang)\n return rel.format(-delta, unit)\n}\n", "// utils / curry\n\nexport const curry = (fn) => {\n const totalArguments = fn.length\n const next = (argumentLength, rest) => {\n if (argumentLength > 0) {\n return (...args) => {\n return next(argumentLength - args.length, [...rest, ...args])\n }\n }\n return fn(...rest)\n }\n return next(totalArguments, [])\n}\n", "// utils / compose\n\nexport const compose = (...fns) => {\n return fns.reduce((f, g) => (x) => f(g(x)))\n}\n", "// utils / pipe\n\nexport const pipe = (...fns) => {\n return fns.reduce((f, g) => (x) => g(f(x)))\n}\n", "// utils / defineProp\n\nexport const defineProp = (ob, key, val, config = {}) => {\n const {\n writable = false,\n configurable = false,\n enumerable = false,\n } = config\n Object.defineProperty(ob, key, {\n value: val,\n writable,\n configurable,\n enumerable,\n })\n}\n", "// utils / maybe\n\nimport {\n defineProp\n} from './defineProp.js'\n\nexport const maybe = (val) => {\n const __val = val\n const isNil = () => {\n return __val === null || __val === undefined\n }\n const value = () => {\n return __val\n }\n const getElse = (fn) => {\n return maybe(__val || fn())\n }\n const filter = (fn) => {\n return maybe(fn(__val) === true ? __val : null)\n }\n const map = (fn) => {\n return maybe(isNil() ? null : fn(__val))\n }\n const output = Object.create({})\n defineProp(output, '__value__', __val, { enumerable: true })\n defineProp(output, '__type__', 'Maybe', { enumerable: true })\n defineProp(output, 'isNil', isNil)\n defineProp(output, 'value', value)\n defineProp(output, 'map', map)\n defineProp(output, 'if', filter)\n defineProp(output, 'else', getElse)\n return output\n}\n"], - "mappings": ";4ZAAA,IAAA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AWH,GACtB,OAAAI,EAAI,KAAKC,CAAE,EACJD,CACT,EAEaE,GAAS,CAACP,EAAM,CAAC,EAAGQ,EAAQ,EAAGC,EAAM,KAC5C,CAACC,EAASD,CAAG,GAAK,CAACvB,EAAYc,EAAI,CAAC,EAAGS,CAAG,EACrCT,EAEFG,EAAKH,EAAK,CAACW,EAAG,IACZA,EAAEF,CAAG,EAAI,EAAEA,CAAG,EAAID,EAASG,EAAEF,CAAG,EAAI,EAAEA,CAAG,EAAK,GAAKD,EAAS,CACpE,EAGUI,EAAU,CAACZ,EAAM,CAAC,IAAM,CACnC,IAAMa,EAAQ,CAAC,GAAGb,CAAG,EACfc,EAAS,CAAC,EACZC,EAAWF,EAAM,OACrB,KAAOE,EAAW,GAAG,CACnB,IAAMC,EAAQ,KAAK,MAAM,KAAK,OAAO,EAAID,CAAQ,EACjDD,EAAO,KAAKD,EAAM,OAAOG,EAAO,CAAC,EAAE,CAAC,CAAC,EACrCD,IAEF,OAAOD,CACT,EAEaG,GAAO,CAACjB,EAAM,CAAC,EAAGkB,EAAQ,IAAM,CAC3C,IAAM9B,EAAIwB,EAAQZ,CAAG,EACfmB,EAAK,KAAK,IAAI,EAAGD,CAAK,EACtBE,EAAI,KAAK,IAAID,EAAI/B,EAAE,OAAS,CAAC,EACnC,OAAOA,EAAE,OAAO,EAAGgC,CAAC,CACtB", - "names": ["main_exports", "__export", "clone", "compose", "copies", "curry", "escapeHTML", "formatDateString", "formatTimeAgo", "genid", "hasProperty", "isArray", "isBoolean", "isDate", "isElement", "isEmail", "isEmpty", "isFunction", "isInteger", "isLetter", "isNil", "isNull", "isNumber", "isObject", "isString", "isUndefined", "maybe", "pick", "pipe", "randint", "replaceAll", "shuffle", "slugify", "sort", "sortBy", "stripAccent", "stripTags", "truncate", "ucfirst", "ucwords", "unescapeHTML", "unique", "__toCommonJS", "ob2Str", "val", "isInteger", "isArray", "isString", "isNumber", "isBoolean", "isNull", "isUndefined", "isNil", "isFunction", "isObject", "isDate", "isElement", "v", "isLetter", "re", "isEmail", "isEmpty", "hasProperty", "ob", "k", "toString", "input", "s", "isNumber", "isString", "truncate", "len", "txt", "subtxt", "subtxtArr", "word", "stripTags", "escapeHTML", "unescapeHTML", "ucfirst", "x", "ucwords", "w", "replaceAll", "alpha", "beta", "a", "b", "isArray", "v", "k", "aaa", "bb", "getCharMap", "lmap", "map", "K", "stripAccent", "updateS", "ai", "key", "hasProperty", "item", "slugify", "delimiter", "randint", "min", "max", "genid", "len", "prefix", "s", "i", "r", "k", "getDateFormat", "getTimeConvers", "isValidLocal", "hl", "formatDateString", "args", "input", "lang", "dfmt", "opt", "isObject", "formatTimeAgo", "justnow", "t", "delta", "tcv", "unit", "key", "curry", "fn", "totalArguments", "next", "argumentLength", "rest", "args", "compose", "fns", "f", "g", "x", "pipe", "fns", "f", "g", "x", "defineProp", "ob", "key", "val", "config", "writable", "configurable", "enumerable", "maybe", "val", "__val", "isNil", "value", "getElse", "fn", "filter", "map", "output", "defineProp", "clone", "val", "history", "stack", "isDate", "copyObject", "o", "oo", "k", "hasProperty", "copyArray", "a", "e", "isArray", "isObject", "copies", "source", "dest", "matched", "excepts", "oa", "ob", "unique", "arr", "fnSort", "b", "sort", "sorting", "tmp", "fn", "sortBy", "order", "key", "isString", "m", "shuffle", "input", "output", "inputLen", "index", "pick", "count", "mc", "c"] -} diff --git a/node_modules/bellajs/package.json b/node_modules/bellajs/package.json deleted file mode 100755 index 2bbf8538..00000000 --- a/node_modules/bellajs/package.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "version": "11.1.2", - "name": "bellajs", - "description": "A useful helper for any javascript program", - "homepage": "https://www.npmjs.com/package/bellajs", - "repository": { - "type": "git", - "url": "https://github.com/ndaidong/bellajs" - }, - "author": "@ndaidong", - "main": "./src/main.js", - "exports": { - "import": "./src/main.js", - "require": "./dist/bella.js" - }, - "type": "module", - "engines": { - "node": ">= 14" - }, - "scripts": { - "lint": "eslint .", - "lint:fix": "eslint --fix .", - "pretest": "npm run lint", - "test": "NODE_ENV=test NODE_OPTIONS=--experimental-vm-modules jest --verbose --coverage=true --env=jsdom", - "build": "node build.js src/main.js", - "reset": "node reset" - }, - "devDependencies": { - "esbuild": "^0.17.10", - "eslint": "^8.35.0", - "jest": "^29.4.3", - "jest-environment-jsdom": "^29.4.3" - }, - "keywords": [ - "detection", - "manipulation", - "templating", - "utilities" - ], - "license": "MIT" -} diff --git a/node_modules/bellajs/src/browser/crypto.js b/node_modules/bellajs/src/browser/crypto.js deleted file mode 100644 index 4e18a823..00000000 --- a/node_modules/bellajs/src/browser/crypto.js +++ /dev/null @@ -1 +0,0 @@ -export default crypto diff --git a/node_modules/bellajs/src/browser/txtutil.js b/node_modules/bellajs/src/browser/txtutil.js deleted file mode 100644 index 974c5ff0..00000000 --- a/node_modules/bellajs/src/browser/txtutil.js +++ /dev/null @@ -1,2 +0,0 @@ -export const TextEncoder = window.TextEncoder -export const TextDecoder = window.TextDecoder diff --git a/node_modules/bellajs/src/main.js b/node_modules/bellajs/src/main.js deleted file mode 100755 index 7b7f7bbe..00000000 --- a/node_modules/bellajs/src/main.js +++ /dev/null @@ -1,128 +0,0 @@ -/** - * bellajs - * @ndaidong -**/ - -import { - isObject, - isArray, - isDate, - isString, - hasProperty -} from './utils/detection.js' - -export const clone = (val, history = null) => { - const stack = history || new Set() - - if (stack.has(val)) { - return val - } - - stack.add(val) - - if (isDate(val)) { - return new Date(val.valueOf()) - } - - const copyObject = (o) => { - const oo = Object.create({}) - for (const k in o) { - if (hasProperty(o, k)) { - oo[k] = clone(o[k], stack) - } - } - return oo - } - - const copyArray = (a) => { - return [...a].map((e) => { - if (isArray(e)) { - return copyArray(e) - } else if (isObject(e)) { - return copyObject(e) - } - return clone(e, stack) - }) - } - - if (isArray(val)) { - return copyArray(val) - } - - if (isObject(val)) { - return copyObject(val) - } - - return val -} - -export const copies = (source, dest, matched = false, excepts = []) => { - for (const k in source) { - if (excepts.length > 0 && excepts.includes(k)) { - continue // eslint-disable-line no-continue - } - if (!matched || (matched && hasProperty(dest, k))) { - const oa = source[k] - const ob = dest[k] - if ((isObject(ob) && isObject(oa)) || (isArray(ob) && isArray(oa))) { - dest[k] = copies(oa, dest[k], matched, excepts) - } else { - dest[k] = clone(oa) - } - } - } - return dest -} - -export const unique = (arr = []) => { - return [...new Set(arr)] -} - -const fnSort = (a, b) => { - return a > b ? 1 : (a < b ? -1 : 0) -} - -export const sort = (arr = [], sorting = null) => { - const tmp = [...arr] - const fn = sorting || fnSort - tmp.sort(fn) - return tmp -} - -export const sortBy = (arr = [], order = 1, key = '') => { - if (!isString(key) || !hasProperty(arr[0], key)) { - return arr - } - return sort(arr, (m, n) => { - return m[key] > n[key] ? order : (m[key] < n[key] ? (-1 * order) : 0) - }) -} - -export const shuffle = (arr = []) => { - const input = [...arr] - const output = [] - let inputLen = input.length - while (inputLen > 0) { - const index = Math.floor(Math.random() * inputLen) - output.push(input.splice(index, 1)[0]) - inputLen-- - } - return output -} - -export const pick = (arr = [], count = 1) => { - const a = shuffle(arr) - const mc = Math.max(1, count) - const c = Math.min(mc, a.length - 1) - return a.splice(0, c) -} - -export * from './utils/detection.js' -export * from './utils/string.js' -export * from './utils/random.js' -export * from './utils/date.js' - -export * from './utils/curry.js' -export * from './utils/compose.js' -export * from './utils/pipe.js' -export * from './utils/maybe.js' diff --git a/node_modules/bellajs/src/main.test.js b/node_modules/bellajs/src/main.test.js deleted file mode 100755 index 6de49274..00000000 --- a/node_modules/bellajs/src/main.test.js +++ /dev/null @@ -1,192 +0,0 @@ -// main.test - -/* eslint-env jest */ - -import { - hasProperty, - clone, - copies, - unique, - sort, - sortBy, - pick -} from './main.js' - -describe('test .clone() method:', () => { - test(' check if .clone(object) works correctly', () => { - const x = { - level: 4, - IQ: 140, - epouse: { - name: 'Alice', - age: 27, - }, - birthday: new Date(), - a: 0, - clone: false, - reg: /^\w+@\s([a-z])$/gi, - } - const y = clone(x) - Object.keys(x).forEach((k) => { - expect(hasProperty(y, k)).toBeTruthy() - }) - Object.keys(x.epouse).forEach((k) => { - expect(hasProperty(y.epouse, k)).toBeTruthy() - expect(y.epouse[k]).toEqual(x.epouse[k]) - }) - - // check immutability - y.epouse.age = 25 - expect(y.epouse.age).toEqual(25) - expect(x.epouse.age).toEqual(27) - }) - - test(' check if .clone(array) works correctly', () => { - const x = [ - 1, - 5, - 0, - 'a', - -10, - '-10', - '', - { - a: 1, - b: 'Awesome', - }, - [ - 5, - 6, - 8, - { - name: 'Lys', - age: 11, - }, - ], - ] - const y = clone(x) - expect(y).toHaveLength(x.length) - for (let i = 0; i < x.length; i++) { - expect(x[i]).toEqual(y[i]) - } - - // check immutability - y[8][3].age = 10 - expect(y[8][3].age).toEqual(10) - expect(x[8][3].age).toEqual(11) - }) -}) - -describe('test .copies() method:', () => { - test(' check if .copies(source, dest) works correctly', () => { - const source = { - name: 'Toto', - age: 30, - level: 8, - nationality: { - name: 'America', - }, - groups: [ - 'admin', - 'accountant', - ], - } - const dest = { - level: 4, - IQ: 140, - epouse: { - name: 'Alice', - age: 27, - }, - nationality: { - name: 'Congo', - long: '18123.123123.12312', - lat: '98984771.134231.1234', - }, - groups: [ - 'finance', - 'manager', - ], - } - copies(source, dest) - Object.keys(source).forEach((k) => { - expect(hasProperty(dest, k)).toBeTruthy() - }) - expect(dest.nationality.name).toEqual(source.nationality.name) - }) - - test(' check if .copies(source, dest, matched, excepts) works correctly', () => { - const source = { - name: 'Kiwi', - age: 16, - gender: 'male', - } - const dest = { - name: 'Aline', - age: 20, - } - copies(source, dest, true, ['age']) - expect(hasProperty(dest, 'gender')).toBeFalsy() - expect(dest.name).toEqual(source.name) - expect(dest.age === source.age).toBeFalsy() - }) -}) - -describe('test .unique() method:', () => { - test(' check if .unique(array) works correctly', () => { - const arr = [1, 1, 2, 2, 3, 4, 5, 5, 6, 3, 5, 4] - const uniqArr = unique(arr) - expect(uniqArr).toHaveLength(6) - }) -}) - -describe('test .sort() method:', () => { - test(' check if .sort(array) works correctly', () => { - const arr = [6, 4, 8, 2] - const sortedArr = sort(arr) - expect(sortedArr.join('')).toEqual('2468') - }) -}) - -describe('test .sortBy() method:', () => { - test(' check if .sortBy(array) works correctly', () => { - const arr = [ - { age: 5, name: 'E' }, - { age: 9, name: 'B' }, - { age: 3, name: 'A' }, - { age: 12, name: 'D' }, - { age: 7, name: 'C' }, - ] - const sortedByAge = [ - { age: 3, name: 'A' }, - { age: 5, name: 'E' }, - { age: 7, name: 'C' }, - { age: 9, name: 'B' }, - { age: 12, name: 'D' }, - ] - const sortedArr = sortBy(arr, 1, 'age') - expect(JSON.stringify(sortedArr) === JSON.stringify(sortedByAge)).toBeTruthy() - - const sortedByNonStringKey = sortBy(arr, 1, 99) - expect(JSON.stringify(sortedByNonStringKey) === JSON.stringify(arr)).toBeTruthy() - - const sortedByNonExistKey = sortBy(arr, 1, 'balance') - expect(JSON.stringify(sortedByNonExistKey) === JSON.stringify(arr)).toBeTruthy() - }) -}) - -describe('test .pick() method:', () => { - test(' check if .pick(array) works correctly', () => { - const str = 'abcdefghijklmnopqrstuvwxyz' - const arr = str.split('') - const uniqChar = pick(arr)[0] - expect(str.includes(uniqChar)).toBeTruthy() - }) - - test(' check if .pick(array, count) works correctly', () => { - const str = 'abcdefghijklmnopqrstuvwxyz' - const arr = str.split('') - const picked = pick(arr, 10) - expect(picked).toHaveLength(10) - }) -}) diff --git a/node_modules/bellajs/src/utils/compose.js b/node_modules/bellajs/src/utils/compose.js deleted file mode 100755 index c0611931..00000000 --- a/node_modules/bellajs/src/utils/compose.js +++ /dev/null @@ -1,5 +0,0 @@ -// utils / compose - -export const compose = (...fns) => { - return fns.reduce((f, g) => (x) => f(g(x))) -} diff --git a/node_modules/bellajs/src/utils/compose.test.js b/node_modules/bellajs/src/utils/compose.test.js deleted file mode 100755 index 642e1a23..00000000 --- a/node_modules/bellajs/src/utils/compose.test.js +++ /dev/null @@ -1,44 +0,0 @@ -// compose.test - -/* eslint-env jest */ - -import { - compose -} from './compose.js' - -describe('test .compose() method:', () => { - const f1 = (name) => { - return `f1 ${name}` - } - const f2 = (name) => { - return `f2 ${name}` - } - const f3 = (name) => { - return `f3 ${name}` - } - - const addDashes = compose(f1, f2, f3) - - const add3 = (num) => { - return num + 3 - } - - const mul6 = (num) => { - return num * 6 - } - - const div2 = (num) => { - return num / 2 - } - - const sub5 = (num) => { - return num - 5 - } - - const calculate = compose(sub5, div2, mul6, add3) - - test(' check if .compose() works correctly', () => { - expect(addDashes('Alice')).toEqual('f1 f2 f3 Alice') - expect(calculate(5)).toEqual(19) - }) -}) diff --git a/node_modules/bellajs/src/utils/curry.js b/node_modules/bellajs/src/utils/curry.js deleted file mode 100755 index b4f42db8..00000000 --- a/node_modules/bellajs/src/utils/curry.js +++ /dev/null @@ -1,14 +0,0 @@ -// utils / curry - -export const curry = (fn) => { - const totalArguments = fn.length - const next = (argumentLength, rest) => { - if (argumentLength > 0) { - return (...args) => { - return next(argumentLength - args.length, [...rest, ...args]) - } - } - return fn(...rest) - } - return next(totalArguments, []) -} diff --git a/node_modules/bellajs/src/utils/curry.test.js b/node_modules/bellajs/src/utils/curry.test.js deleted file mode 100755 index d6612fc7..00000000 --- a/node_modules/bellajs/src/utils/curry.test.js +++ /dev/null @@ -1,20 +0,0 @@ -// curry.test - -/* eslint-env jest */ - -import { - curry -} from './curry.js' - -describe('test .curry() method:', () => { - const sum = curry((a, b, c) => { - return a + b + c - }) - test(' check if .curry() works correctly', () => { - expect(sum(3)(2)(1)).toEqual(6) - expect(sum(1)(2)(3)).toEqual(6) - expect(sum(1, 2)(3)).toEqual(6) - expect(sum(1)(2, 3)).toEqual(6) - expect(sum(1, 2, 3)).toEqual(6) - }) -}) diff --git a/node_modules/bellajs/src/utils/date.js b/node_modules/bellajs/src/utils/date.js deleted file mode 100755 index 276e0141..00000000 --- a/node_modules/bellajs/src/utils/date.js +++ /dev/null @@ -1,69 +0,0 @@ -// utils / date - -import { - isObject -} from './detection.js' - -const getDateFormat = () => { - return { - dateStyle: 'medium', - timeStyle: 'long', - } -} - -const getTimeConvers = () => { - return { - second: 1000, - minute: 60, - hour: 60, - day: 24, - week: 7, - month: 4, - year: 12, - } -} - -const isValidLocal = (hl) => { - try { - const locale = new Intl.Locale(hl) - return locale.language !== '' - } catch (err) { - return false - } -} - -export const formatDateString = (...args) => { - const input = args[0] - const lang = isValidLocal(args[1]) ? args[1] : 'en' - const dfmt = getDateFormat() - const opt = args.length >= 3 - ? args[2] - : args.length === 1 - ? dfmt - : isObject(args[1]) - ? args[1] - : dfmt - const dtf = new Intl.DateTimeFormat(lang, opt) - return dtf.format(new Date(input)) -} - -export const formatTimeAgo = (input, lang = 'en', justnow = 'just now') => { - const t = new Date(input) - let delta = Date.now() - t - const tcv = getTimeConvers() - if (delta <= tcv.second) { - return justnow - } - let unit = 'second' - for (const key in tcv) { - if (delta < tcv[key]) { - break - } else { - unit = key - delta /= tcv[key] - } - } - delta = Math.floor(delta) - const rel = new Intl.RelativeTimeFormat(lang) - return rel.format(-delta, unit) -} diff --git a/node_modules/bellajs/src/utils/date.test.js b/node_modules/bellajs/src/utils/date.test.js deleted file mode 100755 index 78811891..00000000 --- a/node_modules/bellajs/src/utils/date.test.js +++ /dev/null @@ -1,62 +0,0 @@ -// date.test - -/* eslint-env jest */ - -import { jest } from '@jest/globals' - -import { - formatDateString, - formatTimeAgo -} from './date.js' - -describe('test .formatDateString() method', () => { - const d = new Date() - - test(' check .formatDateString() with default options', () => { - const result = formatDateString(d) - const reg = /^\w+\s\d+,\s+\d{4},\s\d+:\d+:\d+\s(AM|PM)\s(GMT)\+\d+$/ - expect(result.match(reg) !== null).toBeTruthy() - }) - - test(' check .formatDateString() with custom options', () => { - const result = formatDateString(d, { - dateStyle: 'full', - timeStyle: 'medium', - hour12: true, - }) - const reg = /^\w+,\s\w+\s\d+,\s+\d{4}\sat\s\d+:\d+:\d+\s(AM|PM)$/ - expect(result.match(reg) !== null).toBeTruthy() - }) - - test(' check .formatDateString() with custom language and options', () => { - const result = formatDateString(d, 'en', { - dateStyle: 'full', - timeStyle: 'medium', - hour12: true, - }) - const reg = /^\w+,\s\w+\s\d+,\s+\d{4}\sat\s\d+:\d+:\d+\s(AM|PM)$/ - expect(result.match(reg) !== null).toBeTruthy() - }) -}) - -describe('test .formatTimeAgo() method:', () => { - jest.useFakeTimers() - jest.spyOn(global, 'setTimeout') - - const d = new Date() - - test(' check if .formatTimeAgo() return "just now"', () => { - const result = formatTimeAgo(d) - expect(result === 'just now').toBeTruthy() - const justnowCustomMessage = formatTimeAgo(d, 'vi', 'vừa mới xong') - expect(justnowCustomMessage === 'vừa mới xong').toBeTruthy() - }) - - test(' check .formatTimeAgo() after 5s', () => { - setTimeout(() => { - const result = formatTimeAgo(d) - expect(result === '5 seconds ago').toBeTruthy() - }, 5000) - jest.advanceTimersByTime(5000) - }) -}) diff --git a/node_modules/bellajs/src/utils/defineProp.js b/node_modules/bellajs/src/utils/defineProp.js deleted file mode 100755 index 44c17b5d..00000000 --- a/node_modules/bellajs/src/utils/defineProp.js +++ /dev/null @@ -1,15 +0,0 @@ -// utils / defineProp - -export const defineProp = (ob, key, val, config = {}) => { - const { - writable = false, - configurable = false, - enumerable = false, - } = config - Object.defineProperty(ob, key, { - value: val, - writable, - configurable, - enumerable, - }) -} diff --git a/node_modules/bellajs/src/utils/detection.js b/node_modules/bellajs/src/utils/detection.js deleted file mode 100755 index 80c019db..00000000 --- a/node_modules/bellajs/src/utils/detection.js +++ /dev/null @@ -1,77 +0,0 @@ -// utils / detection - -const ob2Str = (val) => { - return {}.toString.call(val) -} - -export const isInteger = (val) => { - return Number.isInteger(val) -} - -export const isArray = (val) => { - return Array.isArray(val) -} - -export const isString = (val) => { - return String(val) === val -} - -export const isNumber = (val) => { - return Number(val) === val -} - -export const isBoolean = (val) => { - return Boolean(val) === val -} - -export const isNull = (val) => { - return ob2Str(val) === '[object Null]' -} - -export const isUndefined = (val) => { - return ob2Str(val) === '[object Undefined]' -} - -export const isNil = (val) => { - return isUndefined(val) || isNull(val) -} - -export const isFunction = (val) => { - return ob2Str(val) === '[object Function]' -} - -export const isObject = (val) => { - return ob2Str(val) === '[object Object]' && !isArray(val) -} - -export const isDate = (val) => { - return val instanceof Date && !isNaN(val.valueOf()) -} - -export const isElement = (v) => { - return ob2Str(v).match(/^\[object HTML\w*Element]$/) !== null -} - -export const isLetter = (val) => { - const re = /^[a-z]+$/i - return isString(val) && re.test(val) -} - -export const isEmail = (val) => { - const re = /^([\w-]+(?:\.[\w-]+)*)@((?:[\w-]+\.)*\w[\w-]{0,66})\.([a-z]{2,6}(?:\.[a-z]{2})?)$/i - return isString(val) && re.test(val) -} - -export const isEmpty = (val) => { - return !val || isNil(val) || - (isString(val) && val === '') || - (isArray(val) && val.length === 0) || - (isObject(val) && Object.keys(val).length === 0) -} - -export const hasProperty = (ob, k) => { - if (!ob || !k) { - return false - } - return Object.prototype.hasOwnProperty.call(ob, k) -} diff --git a/node_modules/bellajs/src/utils/detection.test.js b/node_modules/bellajs/src/utils/detection.test.js deleted file mode 100755 index e7e030ad..00000000 --- a/node_modules/bellajs/src/utils/detection.test.js +++ /dev/null @@ -1,290 +0,0 @@ -// detection.test - -/* eslint-env jest */ - -import { - isInteger, - isArray, - isString, - isNumber, - isBoolean, - isNull, - isUndefined, - isNil, - isFunction, - isObject, - isDate, - isElement, - isLetter, - isEmail, - isEmpty, - hasProperty -} from './detection.js' - -describe('test .isInteger() method:', () => { - const positives = [1, 1000, 9999, 0, -3] - positives.forEach((val) => { - test(`test .isInteger(${val}) --> true`, () => { - expect(isInteger(val)).toBe(true) - }) - }) - - const negatives = [1.5, -3.2, '', undefined] - negatives.forEach((val) => { - test(`test .isInteger(${val}) --> false`, () => { - expect(isInteger(val)).toBe(false) - }) - }) -}) - -describe('test .isArray() method:', () => { - const positives = [[], [1, 2, 3]] - positives.forEach((val) => { - test(`test .isArray(${val}) --> true`, () => { - expect(isArray(val)).toBe(true) - }) - }) - - const negatives = [1.5, '', undefined] - negatives.forEach((val) => { - test(`test .isArray(${val}) --> false`, () => { - expect(isArray(val)).toBe(false) - }) - }) -}) - -describe('test .isString() method:', () => { - const positives = ['', 'abc xyz', '10000'] - positives.forEach((val) => { - test(`test .isString(${val}) --> true`, () => { - expect(isString(val)).toBe(true) - }) - }) - - const negatives = [{}, 30, [], 1.5, null, undefined] - negatives.forEach((val) => { - test(`test .isString(${val}) --> false`, () => { - expect(isString(val)).toBe(false) - }) - }) -}) - -describe('test .isNumber() method:', () => { - const positives = [1, 1.5, 0, 9999, -2] - positives.forEach((val) => { - test(`test .isNumber(${val}) --> true`, () => { - expect(isNumber(val)).toBe(true) - }) - }) - - const negatives = [{}, [], '', null, undefined] - negatives.forEach((val) => { - test(`test .isNumber(${val}) --> false`, () => { - expect(isNumber(val)).toBe(false) - }) - }) -}) - -describe('test .isBoolean() method:', () => { - const positives = [true, false, 3 !== 2, 3 === 2] - positives.forEach((val) => { - test(`test .isBoolean(${val}) --> true`, () => { - expect(isBoolean(val)).toBe(true) - }) - }) - - const negatives = [{}, [], '', 1, 0, null, undefined] - negatives.forEach((val) => { - test(`test .isBoolean(${val}) --> false`, () => { - expect(isBoolean(val)).toBe(false) - }) - }) -}) - -describe('test .isNull() method:', () => { - const positives = [null] - positives.forEach((val) => { - test(`test .isNull(${val}) --> true`, () => { - expect(isNull(val)).toBe(true) - }) - }) - - const negatives = [{}, [], '', 0, undefined] - negatives.forEach((val) => { - test(`test .isNull(${val}) --> false`, () => { - expect(isNull(val)).toBe(false) - }) - }) -}) - -describe('test .isUndefined() method:', () => { - let v - const positives = [undefined, v] - positives.forEach((val) => { - test(`test .isUndefined(${val}) --> true`, () => { - expect(isUndefined(val)).toBe(true) - }) - }) - - const negatives = [{}, [], '', 0, null] - negatives.forEach((val) => { - test(`test .isUndefined(${val}) --> false`, () => { - expect(isUndefined(val)).toBe(false) - }) - }) -}) - -describe('test .isNil() method:', () => { - let v - const positives = [undefined, v, null] - positives.forEach((val) => { - test(`test .isNil(${val}) --> true`, () => { - expect(isNil(val)).toBe(true) - }) - }) - - const negatives = [{}, [], '', 0] - negatives.forEach((val) => { - test(`test .isNil(${val}) --> false`, () => { - expect(isNil(val)).toBe(false) - }) - }) -}) - -describe('test .isFunction() method:', () => { - const positives = [function () {}, () => {}] - positives.forEach((val) => { - test(`test .isFunction(${val}) --> true`, () => { - expect(isFunction(val)).toBe(true) - }) - }) - - const negatives = [{}, [], '', 0, null] - negatives.forEach((val) => { - test(`test .isFunction(${val}) --> false`, () => { - expect(isFunction(val)).toBe(false) - }) - }) -}) - -describe('test .isObject() method:', () => { - const ob = new Object() // eslint-disable-line - const positives = [{}, ob, Object.create({})] - positives.forEach((val) => { - test(`test .isObject(${val}) --> true`, () => { - expect(isObject(val)).toBe(true) - }) - }) - - const negatives = [17, [], '', 0, null, () => {}, true] - negatives.forEach((val) => { - test(`test .isObject(${val}) --> false`, () => { - expect(isObject(val)).toBe(false) - }) - }) -}) - -describe('test .isDate() method:', () => { - const dt = new Date() - const positives = [dt] - positives.forEach((val) => { - test(`test .isDate(${val}) --> true`, () => { - expect(isDate(val)).toBe(true) - }) - }) - - const negatives = [17, [], '', 0, null, () => {}, true, {}, dt.toUTCString()] - negatives.forEach((val) => { - test(`test .isDate(${val}) --> false`, () => { - expect(isDate(val)).toBe(false) - }) - }) -}) - -describe('test .isElement() method:', () => { - const el = document.createElement('DIV') - const positives = [el] - positives.forEach((val) => { - test(`test .isElement(${val}) --> true`, () => { - expect(isElement(val)).toBe(true) - }) - }) - - const negatives = [17, [], '', 0, null, () => {}, true, {}] - negatives.forEach((val) => { - test(`test .isElement(${val}) --> false`, () => { - expect(isElement(val)).toBe(false) - }) - }) -}) - -describe('test .isLetter() method:', () => { - const positives = ['a', 'A', 'sigma'] - positives.forEach((val) => { - test(`test .isLetter(${val}) --> true`, () => { - expect(isLetter(val)).toBe(true) - }) - }) - - const negatives = [{}, [], '', 0, undefined, 'a23b'] - negatives.forEach((val) => { - test(`test .isLetter(${val}) --> false`, () => { - expect(isLetter(val)).toBe(false) - }) - }) -}) - -describe('test .isEmail() method:', () => { - const positives = ['admin@pwshub.com', 'abc@qtest.com'] - positives.forEach((val) => { - test(`test .isEmail(${val}) --> true`, () => { - expect(isEmail(val)).toBe(true) - }) - }) - - const negatives = [{}, [], '', 0, undefined, 'a23b@qtest@com'] - negatives.forEach((val) => { - test(`test .isEmail(${val}) --> false`, () => { - expect(isEmail(val)).toBe(false) - }) - }) -}) - -describe('test .isEmpty() method:', () => { - const positives = ['', 0, {}, [], undefined, null] - positives.forEach((val) => { - test(`test .isEmpty(${val}) --> true`, () => { - expect(isEmpty(val)).toBe(true) - }) - }) - - const negatives = [{ a: 1 }, '12', 9, [7, 1]] - negatives.forEach((val) => { - test(`test .isEmpty(${val}) --> false`, () => { - expect(isEmpty(val)).toBe(false) - }) - }) -}) - -describe('test .hasProperty() method:', () => { - const obj = { - name: 'alice', - age: 17, - } - const positives = ['name', 'age'] - positives.forEach((val) => { - test(`test .hasProperty(${val}) --> true`, () => { - expect(hasProperty(obj, val)).toBe(true) - }) - }) - - const negatives = [{ a: 1 }, 'email', 9, '__proto__'] - negatives.forEach((val) => { - test(`test .hasProperty(${val}) --> false`, () => { - expect(hasProperty(obj, val)).toBe(false) - }) - }) - test('test .hasProperty(null) --> false', () => { - expect(hasProperty(null)).toBe(false) - }) -}) diff --git a/node_modules/bellajs/src/utils/maybe.js b/node_modules/bellajs/src/utils/maybe.js deleted file mode 100755 index 203e0d09..00000000 --- a/node_modules/bellajs/src/utils/maybe.js +++ /dev/null @@ -1,33 +0,0 @@ -// utils / maybe - -import { - defineProp -} from './defineProp.js' - -export const maybe = (val) => { - const __val = val - const isNil = () => { - return __val === null || __val === undefined - } - const value = () => { - return __val - } - const getElse = (fn) => { - return maybe(__val || fn()) - } - const filter = (fn) => { - return maybe(fn(__val) === true ? __val : null) - } - const map = (fn) => { - return maybe(isNil() ? null : fn(__val)) - } - const output = Object.create({}) - defineProp(output, '__value__', __val, { enumerable: true }) - defineProp(output, '__type__', 'Maybe', { enumerable: true }) - defineProp(output, 'isNil', isNil) - defineProp(output, 'value', value) - defineProp(output, 'map', map) - defineProp(output, 'if', filter) - defineProp(output, 'else', getElse) - return output -} diff --git a/node_modules/bellajs/src/utils/maybe.test.js b/node_modules/bellajs/src/utils/maybe.test.js deleted file mode 100755 index 5c721eb9..00000000 --- a/node_modules/bellajs/src/utils/maybe.test.js +++ /dev/null @@ -1,35 +0,0 @@ -// maybe.test - -/* eslint-env jest */ - -import { - maybe -} from './maybe.js' - -describe('test .maybe() method:', () => { - const plus5 = (x) => x + 5 - const minus2 = (x) => x - 2 - const isNumber = (x) => Number(x) === x - const toString = (x) => 'The value is ' + String(x) - const getDefault = () => 'This is default value' - - test(' check if .maybe() works correctly', () => { - const x1 = maybe(5) - .if(isNumber) - .map(plus5) - .map(minus2) - .map(toString) - .else(getDefault) - .value() - expect(x1).toEqual('The value is 8') - - const x2 = maybe('nothing') - .if(isNumber) - .map(plus5) - .map(minus2) - .map(toString) - .else(getDefault) - .value() - expect(x2).toEqual('This is default value') - }) -}) diff --git a/node_modules/bellajs/src/utils/pipe.js b/node_modules/bellajs/src/utils/pipe.js deleted file mode 100755 index 3ee2b54e..00000000 --- a/node_modules/bellajs/src/utils/pipe.js +++ /dev/null @@ -1,5 +0,0 @@ -// utils / pipe - -export const pipe = (...fns) => { - return fns.reduce((f, g) => (x) => g(f(x))) -} diff --git a/node_modules/bellajs/src/utils/pipe.test.js b/node_modules/bellajs/src/utils/pipe.test.js deleted file mode 100755 index 9ce5904d..00000000 --- a/node_modules/bellajs/src/utils/pipe.test.js +++ /dev/null @@ -1,44 +0,0 @@ -// pipe.test - -/* eslint-env jest */ - -import { - pipe -} from './pipe.js' - -describe('test .pipe() method:', () => { - const f1 = (name) => { - return `f1 ${name}` - } - const f2 = (name) => { - return `f2 ${name}` - } - const f3 = (name) => { - return `f3 ${name}` - } - - const addDashes = pipe(f1, f2, f3) - - const add3 = (num) => { - return num + 3 - } - - const mul6 = (num) => { - return num * 6 - } - - const div2 = (num) => { - return num / 2 - } - - const sub5 = (num) => { - return num - 5 - } - - const calculate = pipe(add3, mul6, div2, sub5) - - test(' check if .compose() works correctly', () => { - expect(addDashes('Alice')).toEqual('f3 f2 f1 Alice') - expect(calculate(5)).toEqual(19) - }) -}) diff --git a/node_modules/bellajs/src/utils/random.js b/node_modules/bellajs/src/utils/random.js deleted file mode 100755 index 31d85680..00000000 --- a/node_modules/bellajs/src/utils/random.js +++ /dev/null @@ -1,16 +0,0 @@ -// utils / random - -export const randint = (min = 0, max = 1e6) => { - return Math.floor(Math.random() * (max - min + 1)) + min -} - -export const genid = (len = 32, prefix = '') => { - let s = prefix - for (let i = 0; i < len; i++) { - const r = Math.random() - const k = Math.floor(r * 36) - const c = k.toString(36) - s += (k > 9 && r > 0.3 && r < 0.7) ? c.toUpperCase() : c - } - return s.substring(0, len) -} diff --git a/node_modules/bellajs/src/utils/random.test.js b/node_modules/bellajs/src/utils/random.test.js deleted file mode 100755 index aca423ad..00000000 --- a/node_modules/bellajs/src/utils/random.test.js +++ /dev/null @@ -1,55 +0,0 @@ -// random.test - -/* eslint-env jest */ - -import { randint, genid } from './random.js' - -describe('test .randint() method:', () => { - const randArr = [] - while (randArr.length < 20) { - randArr.push(randint()) - } - test(`test .randint() after ${randArr.length} times`, () => { - expect(randArr).toHaveLength(20) - const uniqVal = Array.from(new Set(randArr)) - expect(uniqVal.length).toBeGreaterThan(10) - }) - - test('test .randint() with same min/max', () => { - const q = randint(10, 10) - expect(q).toEqual(10) - }) - - const min = 50 - const max = 80 - test(`test .randint() between ${min} - ${max}`, () => { - for (let i = 0; i < 100; i++) { - const q = randint(min, max) - expect(q).toBeGreaterThanOrEqual(min) - expect(q).toBeLessThanOrEqual(max) - } - }) -}) - -describe('test .genid() method:', () => { - test('check .genid() default param', () => { - const actual = genid() - expect(actual).toHaveLength(32) - }) - - test('check .genid(512)', () => { - const actual = genid(512) - expect(actual).toHaveLength(512) - }) - - const len = 100 - const ids = [] - while (ids.length < len) { - ids.push(genid()) - } - const uniques = Array.from(new Set(ids)) - test('check .genid() always return unique string', () => { - expect(ids).toHaveLength(len) - expect(uniques).toHaveLength(ids.length) - }) -}) diff --git a/node_modules/bellajs/src/utils/string.js b/node_modules/bellajs/src/utils/string.js deleted file mode 100755 index 741aad81..00000000 --- a/node_modules/bellajs/src/utils/string.js +++ /dev/null @@ -1,141 +0,0 @@ -// utils / string - -import { - isArray, - isString, - isNumber, - hasProperty -} from './detection.js' - -const toString = (input) => { - const s = isNumber(input) ? String(input) : input - if (!isString(s)) { - throw new Error('InvalidInput: String required.') - } - return s -} - -export const truncate = (s, len = 140) => { - const txt = toString(s) - const txtlen = txt.length - if (txtlen <= len) { - return txt - } - const subtxt = txt.substring(0, len).trim() - const subtxtArr = subtxt.split(' ') - const subtxtLen = subtxtArr.length - if (subtxtLen > 1) { - subtxtArr.pop() - return subtxtArr.map(word => word.trim()).join(' ') + '...' - } - return subtxt.substring(0, len - 3) + '...' -} - -export const stripTags = (s) => { - return toString(s).replace(/(<([^>]+)>)/ig, '').trim() -} - -export const escapeHTML = (s) => { - return toString(s) - .replace(/&/g, '&') - .replace(//g, '>') - .replace(/"/g, '"') -} - -export const unescapeHTML = (s) => { - return toString(s) - .replace(/"/g, '"') - .replace(/</g, '<') - .replace(/>/g, '>') - .replace(/&/g, '&') -} - -export const ucfirst = (s) => { - const x = toString(s).toLowerCase() - return x.length > 1 ? x.charAt(0).toUpperCase() + x.slice(1) : x.toUpperCase() -} - -export const ucwords = (s) => { - return toString(s).split(' ').map((w) => { - return ucfirst(w) - }).join(' ') -} - -export const replaceAll = (s, alpha, beta) => { - let x = toString(s) - const a = isNumber(alpha) ? String(alpha) : alpha - const b = isNumber(beta) ? String(beta) : beta - - if (isString(a) && isString(b)) { - const aa = x.split(a) - x = aa.join(b) - } else if (isArray(a) && isString(b)) { - a.forEach((v) => { - x = replaceAll(x, v, b) - }) - } else if (isArray(a) && isArray(b) && a.length === b.length) { - const k = a.length - if (k > 0) { - for (let i = 0; i < k; i++) { - const aaa = a[i] - const bb = b[i] - x = replaceAll(x, aaa, bb) - } - } - } - return x -} - -const getCharMap = () => { - const lmap = { - a: 'á|à|ả|ã|ạ|ă|ắ|ặ|ằ|ẳ|ẵ|â|ấ|ầ|ẩ|ẫ|ậ|ä|æ', - c: 'ç', - d: 'đ|ð', - e: 'é|è|ẻ|ẽ|ẹ|ê|ế|ề|ể|ễ|ệ|ë', - i: 'í|ì|ỉ|ĩ|ị|ï|î', - n: 'ñ', - o: 'ó|ò|ỏ|õ|ọ|ô|ố|ồ|ổ|ỗ|ộ|ơ|ớ|ờ|ở|ỡ|ợ|ö|ø', - s: 'ß', - u: 'ú|ù|ủ|ũ|ụ|ư|ứ|ừ|ử|ữ|ự|û', - y: 'ý|ỳ|ỷ|ỹ|ỵ|ÿ', - } - - const map = { - ...lmap, - } - Object.keys(lmap).forEach((k) => { - const K = k.toUpperCase() - map[K] = lmap[k].toUpperCase() - }) - - return map -} - -export const stripAccent = (s) => { - let x = toString(s) - - const updateS = (ai, key) => { - x = replaceAll(x, ai, key) - } - - const map = getCharMap() - for (const key in map) { - if (hasProperty(map, key)) { - const a = map[key].split('|') - a.forEach((item) => { - return updateS(item, key) - }) - } - } - return x -} - -export const slugify = (s, delimiter = '-') => { - return stripAccent(s) - .trim() - .toLowerCase() - .replace(/\W+/g, ' ') - .replace(/\s+/g, ' ') - .replace(/\s/g, delimiter) -} diff --git a/node_modules/bellajs/src/utils/string.test.js b/node_modules/bellajs/src/utils/string.test.js deleted file mode 100755 index 0a7713c2..00000000 --- a/node_modules/bellajs/src/utils/string.test.js +++ /dev/null @@ -1,254 +0,0 @@ -// string.test - -/* eslint-env jest */ - -import { - truncate, - stripTags, - escapeHTML, - unescapeHTML, - ucfirst, - ucwords, - replaceAll, - stripAccent, - slugify -} from './string.js' - -describe('test .truncate() method:', () => { - const inputs = [ - { - text: 'If a property is non-configurable, its writable attribute can only be changed to false.', - limit: 60, - expectation: 'If a property is non-configurable, its writable attribute...', - }, - { - text: 'this string is less than limit', - limit: 100, - expectation: 'this string is less than limit', - }, - { - text: 'uyyiyirwqyiyiyrihklhkjhskdjfhkahfiusayiyfiudyiyqwiyriuqyiouroiuyi', - limit: 20, - expectation: 'uyyiyirwqyiyiyrih...', - }, - ] - - inputs.forEach(({ text, limit, expectation }, k) => { - test(` check .truncate(text, ${k})`, () => { - const actual = truncate(text, limit) - expect(actual).toEqual(expectation) - }) - }) -}) - -describe('test .stripTags() method:', () => { - const inputs = [ - { - text: 'Hello world', - expectation: 'Hello world', - }, - ] - - inputs.forEach(({ text, expectation }, k) => { - test(` check .stripTags(text, ${k})`, () => { - const actual = stripTags(text) - expect(actual).toEqual(expectation) - }) - }) - - test(' check .stripTags(non-text)', () => { - expect(() => { - stripTags({}) - }).toThrow() - }) -}) - -describe('test .escapeHTML() method:', () => { - const inputs = [ - { - text: 'Hello world', - expectation: '<a>Hello <b>world</b></a>', - }, - ] - - inputs.forEach(({ text, expectation }) => { - test(` check .escapeHTML(${text})`, () => { - const actual = escapeHTML(text) - expect(actual).toEqual(expectation) - }) - }) -}) - -describe('test .unescapeHTML() method:', () => { - const inputs = [ - { - text: '<a>Hello <b>world</b></a>', - expectation: 'Hello world', - }, - ] - - inputs.forEach(({ text, expectation }) => { - test(` check .unescapeHTML(${text})`, () => { - const actual = unescapeHTML(text) - expect(actual).toEqual(expectation) - }) - }) -}) - -describe('test .ucfirst() method:', () => { - const inputs = [ - { - text: 'HElLo wOrLd', - expectation: 'Hello world', - }, - { - text: 'h', - expectation: 'H', - }, - ] - - inputs.forEach(({ text, expectation }) => { - test(` check .ucfirst(${text})`, () => { - const actual = ucfirst(text) - expect(actual).toEqual(expectation) - }) - }) -}) - -describe('test .ucwords() method:', () => { - const inputs = [ - { - text: 'HElLo wOrLd', - expectation: 'Hello World', - }, - ] - - inputs.forEach(({ text, expectation }) => { - test(` check .ucwords(${text})`, () => { - const actual = ucwords(text) - expect(actual).toEqual(expectation) - }) - }) -}) - -describe('test .replaceAll() method:', () => { - const inputs = [ - { - input: { - a: 'Hello world', - b: 'l', - c: '2', - }, - expectation: 'He22o wor2d', - }, - { - input: { - a: 'Hello world', - b: 'l', - c: 2, - }, - expectation: 'He22o wor2d', - }, - { - input: { - a: 798078967, - b: 7, - c: 1, - }, - expectation: '198018961', - }, - { - input: { - a: 'Hello world', - b: ['l', 'o'], - c: ['2', '0'], - }, - expectation: 'He220 w0r2d', - }, - { - input: { - a: 'Hello world', - b: ['l', 'o'], - c: '2', - }, - expectation: 'He222 w2r2d', - }, - { - input: { - a: 'Hello world', - b: ['l'], - c: ['2', '0'], - }, - expectation: 'Hello world', - }, - { - input: { - a: 'Hello world', - b: 'l', - }, - expectation: 'Hello world', - }, - { - input: { - a: 'Hello world', - }, - expectation: 'Hello world', - }, - { - input: { - a: 10000, - }, - expectation: '10000', - }, - { - input: { - a: 0, - }, - expectation: '0', - }, - ] - - inputs.forEach(({ input, expectation }) => { - const { a, b, c } = input - test(` check .replaceAll(${a}, ${b}, ${c})`, () => { - const actual = replaceAll(a, b, c) - expect(actual).toEqual(expectation) - }) - }) -}) - -describe('test .stripAccent() method:', () => { - const inputs = [ - { - text: 'Sur l\'année 2015 - ủ Ù ỹ Ỹ', - expectation: 'Sur l\'annee 2015 - u U y Y', - }, - ] - - inputs.forEach(({ text, expectation }) => { - test(` check .stripAccent(${text})`, () => { - const actual = stripAccent(text) - expect(actual).toEqual(expectation) - }) - }) -}) - -describe('test .slugify() method:', () => { - const inputs = [ - { - text: 'Sur l\'année 2015', - expectation: 'sur-l-annee-2015', - }, - { - text: 'Nghị luận tác phẩm "Đường kách mệnh" của Hồ Chí Minh', - expectation: 'nghi-luan-tac-pham-duong-kach-menh-cua-ho-chi-minh', - }, - ] - - inputs.forEach(({ text, expectation }) => { - test(` check .slugify(${text})`, () => { - const actual = slugify(text) - expect(actual).toEqual(expectation) - }) - }) -}) diff --git a/node_modules/bowser/CHANGELOG.md b/node_modules/bowser/CHANGELOG.md deleted file mode 100644 index 260a03d9..00000000 --- a/node_modules/bowser/CHANGELOG.md +++ /dev/null @@ -1,218 +0,0 @@ -# Bowser Changelog - -### 2.11.0 (Sep 12, 2020) -- [ADD] Added support for aliases in `Parser#is` method (#437) -- [ADD] Added more typings (#438, #427) -- [ADD] Added support for MIUI Browserr (#436) - -### 2.10.0 (Jul 9, 2020) -- [FIX] Fix for Firefox detection on iOS 13 [#415] -- [FIX] Fixes for typings.d.ts [#409] -- [FIX] Updated development dependencies - -### 2.9.0 (Jan 28, 2020) -- [ADD] Export more methods and constants via .d.ts [#388], [#390] - -### 2.8.1 (Dec 26, 2019) -- [FIX] Reverted [#382] as it broke build - -### 2.8.0 (Dec 26, 2019) -- [ADD] Add polyfills for Array.find & Object.assign [#383] -- [ADD] Export constants with types.d.ts [#382] -- [FIX] Add support for WeChat on Windows [#381] -- [FIX] Fix detection of Firefox on iPad [#379] -- [FIX] Add detection of Electron [#375] -- [FIX] Updated dev-dependencies - -### 2.7.0 (Oct 2, 2019) -- [FIX] Add support for QQ Browser [#362] -- [FIX] Add support for GSA [#364] -- [FIX] Updated dependencies - -### 2.6.0 (Sep 6, 2019) -- [ADD] Define "module" export in package.json [#354] -- [FIX] Fix Tablet PC detection [#334] - -### 2.5.4 (Sep 2, 2019) -- [FIX] Exclude docs from the npm package [#349] - -### 2.5.3 (Aug 4, 2019) -- [FIX] Add MacOS names support [#338] -- [FIX] Point typings.d.ts from package.json [#341] -- [FIX] Upgrade dependencies - -### 2.5.2 (July 17, 2019) -- [FIX] Fixes the bug undefined method because of failed build (#335) - -### 2.5.1 (July 17, 2019) -- [FIX] Fixes the bug with a custom Error class (#335) -- [FIX] Fixes the settings for Babel to reduce the bundle size (#259) - -### 2.5.0 (July 16, 2019) -- [ADD] Add constant output so that users can quickly get all types (#325) -- [FIX] Add support for Roku OS (#332) -- [FIX] Update devDependencies -- [FIX] Fix docs, README and added funding information - -### 2.4.0 (May 3, 2019) -- [FIX] Update regexp for generic browsers (#310) -- [FIX] Fix issues with module.exports (#318) -- [FIX] Update devDependencies (#316, #321, #322) -- [FIX] Fix docs (#320) - -### 2.3.0 (April 14, 2019) -- [ADD] Add support for Blink-based MS Edge (#311) -- [ADD] Add more types for TS (#289) -- [FIX] Update dev-dependencies -- [FIX] Update docs - -### 2.2.1 (April 12, 2019) -- [ADD] Add an alias for Samsung Internet -- [FIX] Fix browser name detection for browsers without an alias (#313) - -### 2.2.0 (April 7, 2019) -- [ADD] Add short aliases for browser names (#295) -- [FIX] Fix Yandex Browser version detection (#308) - -### 2.1.2 (March 6, 2019) -- [FIX] Fix buggy `getFirstMatch` reference - -### 2.1.1 (March 6, 2019) -- [ADD] Add detection of PlayStation 4 (#291) -- [ADD] Deploy docs on GH Pages (#293) -- [FIX] Fix files extensions for importing (#294) -- [FIX] Fix docs (#295) - -### 2.1.0 (January 24, 2019) -- [ADD] Add new `Parser.getEngineName()` method (#288) -- [ADD] Add detection of ChromeOS (#287) -- [FIX] Fix README - -### 2.0.0 (January 19, 2019) -- [ADD] Support a non strict equality in `Parser.satisfies()` (#275) -- [ADD] Add Android versions names (#276) -- [ADD] Add a typings file (#277) -- [ADD] Added support for Googlebot recognition (#278) -- [FIX] Update building tools, avoid security issues - -### 2.0.0-beta.3 (September 15, 2018) -- [FIX] Fix Chrome Mobile detection (#253) -- [FIX] Use built bowser for CI (#252) -- [FIX] Update babel-plugin-add-module-exports (#251) - -### 2.0.0-beta.2 (September 9, 2018) -- [FIX] Fix failing comparing version through `Parser.satisfies` (#243) -- [FIX] Fix travis testing, include eslint into CI testing -- [FIX] Add support for Maxthon desktop browser (#246) -- [FIX] Add support for Swing browser (#248) -- [DOCS] Regenerate docs - -### 2.0.0-beta.1 (August 18, 2018) -- [ADD] Add loose version comparison to `Parser.compareVersion()` and `Parser.satisfies()` -- [CHORE] Add CONTRIBUTING.md -- [DOCS] Regenerate docs - -### 2.0.0-alpha.4 (August 2, 2018) -- [DOCS] Fix usage docs (#238) -- [CHANGE] Make `./es5.js` the main file of the package (#239) - -### 2.0.0-alpha.3 (July 22, 2018) -- [CHANGE] Rename split and rename `compiled.js` to `es5.js` and `bundled.js` (#231, #236, #237) -- [ADD] Add `Parser.some` (#235) - -### 2.0.0-alpha.2 (July 17, 2018) -- [CHANGE] Make `src/bowser` main file instead of the bundled one -- [CHANGE] Move the bundled file to the root of the package to make it possible to `require('bowser/compiled')` (#231) -- [REMOVE] Remove `typings.d.ts` before stable release (#232) -- [FIX] Improve Nexus devices detection (#233) - -### 2.0.0-alpha.1 (July 9, 2018) -- [ADD] `Bowser.getParser()` -- [ADD] `Bowser.parse` -- [ADD] `Parser` class which describes parsing process -- [CHANGE] Change bowser's returning object -- [REMOVE] Remove bower support - -### 1.9.4 (June 28, 2018) -- [FIX] Fix NAVER Whale browser detection (#220) -- [FIX] Fix MZ Browser browser detection (#219) -- [FIX] Fix Firefox Focus browser detection (#191) -- [FIX] Fix webOS browser detection (#186) - -### 1.9.3 (March 12, 2018) -- [FIX] Fix `typings.d.ts` — add `ipad`, `iphone`, `ipod` flags to the interface - -### 1.9.2 (February 5, 2018) -- [FIX] Fix `typings.d.ts` — add `osname` flag to the interface - -### 1.9.1 (December 22, 2017) -- [FIX] Fix `typings.d.ts` — add `chromium` flag to the interface - -### 1.9.0 (December 20, 2017) -- [ADD] Add a public method `.detect()` (#205) -- [DOCS] Fix description of `chromium` flag in docs (#206) - -### 1.8.1 (October 7, 2017) -- [FIX] Fix detection of MS Edge on Android and iOS (#201) - -### 1.8.0 (October 7, 2017) -- [ADD] Add `osname` into result object (#200) - -### 1.7.3 (August 30, 2017) -- [FIX] Fix detection of Chrome on Android 8 OPR6 (#193) - -### 1.7.2 (August 17, 2017) -- [FIX] Fix typings.d.ts according to #185 - -### 1.7.1 (July 13, 2017) -- [ADD] Fix detecting of Tablet PC as tablet (#183) - -### 1.7.0 (May 18, 2017) -- [ADD] Add OS version support for Windows and macOS (#178) - -### 1.6.0 (December 5, 2016) -- [ADD] Add some tests for Windows devices (#89) -- [ADD] Add `root` to initialization process (#170) -- [FIX] Upgrade .travis.yml config - -### 1.5.0 (October 31, 2016) -- [ADD] Throw an error when `minVersion` map has not a string as a version and fix readme (#165) -- [FIX] Fix truly detection of Windows Phones (#167) - -### 1.4.6 (September 19, 2016) -- [FIX] Fix mobile Opera's version detection on Android -- [FIX] Fix typescript typings — add `mobile` and `tablet` flags -- [DOC] Fix description of `bowser.check` - -### 1.4.5 (August 30, 2016) - -- [FIX] Add support of Samsung Internet for Android -- [FIX] Fix case when `navigator.userAgent` is `undefined` -- [DOC] Add information about `strictMode` in `check` function -- [DOC] Consistent use of `bowser` variable in the README - -### 1.4.4 (August 10, 2016) - -- [FIX] Fix AMD `define` call — pass name to the function - -### 1.4.3 (July 27, 2016) - -- [FIX] Fix error `Object doesn't support this property or method` on IE8 - -### 1.4.2 (July 26, 2016) - -- [FIX] Fix missing `isUnsupportedBrowser` in typings description -- [DOC] Fix `check`'s declaration in README - -### 1.4.1 (July 7, 2016) - -- [FIX] Fix `strictMode` logic for `isUnsupportedBrowser` - -### 1.4.0 (June 28, 2016) - -- [FEATURE] Add `bowser.compareVersions` method -- [FEATURE] Add `bowser.isUnsupportedBrowser` method -- [FEATURE] Add `bowser.check` method -- [DOC] Changelog started -- [DOC] Add API section to README -- [FIX] Fix detection of browser type (A/C/X) for Chromium diff --git a/node_modules/bowser/LICENSE b/node_modules/bowser/LICENSE deleted file mode 100644 index 94085f02..00000000 --- a/node_modules/bowser/LICENSE +++ /dev/null @@ -1,39 +0,0 @@ -Copyright 2015, Dustin Diaz (the "Original Author") -All rights reserved. - -MIT License - -Permission is hereby granted, free of charge, to any person -obtaining a copy of this software and associated documentation -files (the "Software"), to deal in the Software without -restriction, including without limitation the rights to use, -copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the -Software is furnished to do so, subject to the following -conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -Distributions of all or part of the Software intended to be used -by the recipients as they would use the unmodified Software, -containing modifications that substantially alter, remove, or -disable functionality of the Software, outside of the documented -configuration mechanisms provided by the Software, shall be -modified such that the Original Author's bug reporting email -addresses and urls are either replaced with the contact information -of the parties responsible for the changes, or removed entirely. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES -OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND -NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT -HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING -FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR -OTHER DEALINGS IN THE SOFTWARE. - - -Except where noted, this license applies to any and all software -programs and associated documentation files created by the -Original Author, when distributed with the Software. diff --git a/node_modules/bowser/README.md b/node_modules/bowser/README.md deleted file mode 100644 index 8f5f915b..00000000 --- a/node_modules/bowser/README.md +++ /dev/null @@ -1,179 +0,0 @@ -## Bowser -A small, fast and rich-API browser/platform/engine detector for both browser and node. -- **Small.** Use plain ES5-version which is ~4.8kB gzipped. -- **Optimized.** Use only those parsers you need — it doesn't do useless work. -- **Multi-platform.** It's browser- and node-ready, so you can use it in any environment. - -Don't hesitate to support the project on Github or [OpenCollective](https://opencollective.com/bowser) if you like it ❤️ Also, contributors are always welcome! - -[![Financial Contributors on Open Collective](https://opencollective.com/bowser/all/badge.svg?label=financial+contributors)](https://opencollective.com/bowser) [![Build Status](https://travis-ci.org/lancedikson/bowser.svg?branch=master)](https://travis-ci.org/lancedikson/bowser/) [![Greenkeeper badge](https://badges.greenkeeper.io/lancedikson/bowser.svg)](https://greenkeeper.io/) [![Coverage Status](https://coveralls.io/repos/github/lancedikson/bowser/badge.svg?branch=master)](https://coveralls.io/github/lancedikson/bowser?branch=master) ![Downloads](https://img.shields.io/npm/dm/bowser) - -# Contents -- [Overview](#overview) -- [Use cases](#use-cases) -- [Advanced usage](#advanced-usage) -- [How can I help?](#contributing) - -# Overview - -The library is made to help to detect what browser your user has and gives you a convenient API to filter the users somehow depending on their browsers. Check it out on this page: https://bowser-js.github.io/bowser-online/. - -### ⚠️ Version 2.0 breaking changes ⚠️ - -Version 2.0 has drastically changed the API. All available methods are on the [docs page](https://lancedikson.github.io/bowser/docs). - -_For legacy code, check out the [1.x](https://github.com/lancedikson/bowser/tree/v1.x) branch and install it through `npm install bowser@1.9.4`._ - -# Use cases - -First of all, require the library. This is a UMD Module, so it will work for AMD, TypeScript, ES6, and CommonJS module systems. - -```javascript -const Bowser = require("bowser"); // CommonJS - -import * as Bowser from "bowser"; // TypeScript - -import Bowser from "bowser"; // ES6 (and TypeScript with --esModuleInterop enabled) -``` - -By default, the exported version is the *ES5 transpiled version*, which **do not** include any polyfills. - -In case you don't use your own `babel-polyfill` you may need to have pre-built bundle with all needed polyfills. -So, for you it's suitable to require bowser like this: `require('bowser/bundled')`. -As the result, you get a ES5 version of bowser with `babel-polyfill` bundled together. - -You may need to use the source files, so they will be available in the package as well. - -## Browser props detection - -Often we need to pick users' browser properties such as the name, the version, the rendering engine and so on. Here is an example how to do it with Bowser: - -```javascript -const browser = Bowser.getParser(window.navigator.userAgent); - -console.log(`The current browser name is "${browser.getBrowserName()}"`); -// The current browser name is "Internet Explorer" -``` - -or - -```javascript -const browser = Bowser.getParser(window.navigator.userAgent); -console.log(browser.getBrowser()); - -// outputs -{ - name: "Internet Explorer" - version: "11.0" -} -``` - -or - -```javascript -console.log(Bowser.parse(window.navigator.userAgent)); - -// outputs -{ - browser: { - name: "Internet Explorer" - version: "11.0" - }, - os: { - name: "Windows" - version: "NT 6.3" - versionName: "8.1" - }, - platform: { - type: "desktop" - }, - engine: { - name: "Trident" - version: "7.0" - } -} -``` - - -## Filtering browsers - -You could want to filter some particular browsers to provide any special support for them or make any workarounds. -It could look like this: - -```javascript -const browser = Bowser.getParser(window.navigator.userAgent); -const isValidBrowser = browser.satisfies({ - // declare browsers per OS - windows: { - "internet explorer": ">10", - }, - macos: { - safari: ">10.1" - }, - - // per platform (mobile, desktop or tablet) - mobile: { - safari: '>=9', - 'android browser': '>3.10' - }, - - // or in general - chrome: "~20.1.1432", - firefox: ">31", - opera: ">=22", - - // also supports equality operator - chrome: "=20.1.1432", // will match particular build only - - // and loose-equality operator - chrome: "~20", // will match any 20.* sub-version - chrome: "~20.1" // will match any 20.1.* sub-version (20.1.19 as well as 20.1.12.42-alpha.1) -}); -``` - -Settings for any particular OS or platform has more priority and redefines settings of standalone browsers. -Thus, you can define OS or platform specific rules and they will have more priority in the end. - -More of API and possibilities you will find in the `docs` folder. - -### Browser names for `.satisfies()` - -By default you are supposed to use the full browser name for `.satisfies`. -But, there's a short way to define a browser using short aliases. The full -list of aliases can be found in [the file](src/constants.js). - -## Similar Projects -* [Kong](https://github.com/BigBadBleuCheese/Kong) - A C# port of Bowser. - -## Contributors - -### Code Contributors - -This project exists thanks to all the people who contribute. [[Contribute](CONTRIBUTING.md)]. - - -### Financial Contributors - -Become a financial contributor and help us sustain our community. [[Contribute](https://opencollective.com/bowser/contribute)] - -#### Individuals - - - -#### Organizations - -Support this project with your organization. Your logo will show up here with a link to your website. [[Contribute](https://opencollective.com/bowser/contribute)] - - - - - - - - - - - - -## License -Licensed as MIT. All rights not explicitly granted in the MIT license are reserved. See the included LICENSE file for more details. diff --git a/node_modules/bowser/bundled.js b/node_modules/bowser/bundled.js deleted file mode 100644 index 066ac409..00000000 --- a/node_modules/bowser/bundled.js +++ /dev/null @@ -1 +0,0 @@ -!function(t,n){"object"==typeof exports&&"object"==typeof module?module.exports=n():"function"==typeof define&&define.amd?define([],n):"object"==typeof exports?exports.bowser=n():t.bowser=n()}(this,(function(){return function(t){var n={};function e(r){if(n[r])return n[r].exports;var i=n[r]={i:r,l:!1,exports:{}};return t[r].call(i.exports,i,i.exports,e),i.l=!0,i.exports}return e.m=t,e.c=n,e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{enumerable:!0,get:r})},e.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},e.t=function(t,n){if(1&n&&(t=e(t)),8&n)return t;if(4&n&&"object"==typeof t&&t&&t.__esModule)return t;var r=Object.create(null);if(e.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:t}),2&n&&"string"!=typeof t)for(var i in t)e.d(r,i,function(n){return t[n]}.bind(null,i));return r},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,n){return Object.prototype.hasOwnProperty.call(t,n)},e.p="",e(e.s=129)}([function(t,n,e){var r=e(1),i=e(7),o=e(14),u=e(11),a=e(19),c=function(t,n,e){var s,f,l,h,d=t&c.F,p=t&c.G,v=t&c.S,g=t&c.P,y=t&c.B,m=p?r:v?r[n]||(r[n]={}):(r[n]||{}).prototype,b=p?i:i[n]||(i[n]={}),S=b.prototype||(b.prototype={});for(s in p&&(e=n),e)l=((f=!d&&m&&void 0!==m[s])?m:e)[s],h=y&&f?a(l,r):g&&"function"==typeof l?a(Function.call,l):l,m&&u(m,s,l,t&c.U),b[s]!=l&&o(b,s,h),g&&S[s]!=l&&(S[s]=l)};r.core=i,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,n){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n,e){var r=e(4);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n,e){var r=e(50)("wks"),i=e(31),o=e(1).Symbol,u="function"==typeof o;(t.exports=function(t){return r[t]||(r[t]=u&&o[t]||(u?o:i)("Symbol."+t))}).store=r},function(t,n,e){var r=e(21),i=Math.min;t.exports=function(t){return t>0?i(r(t),9007199254740991):0}},function(t,n){var e=t.exports={version:"2.6.9"};"number"==typeof __e&&(__e=e)},function(t,n,e){t.exports=!e(2)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,n,e){var r=e(3),i=e(96),o=e(28),u=Object.defineProperty;n.f=e(8)?Object.defineProperty:function(t,n,e){if(r(t),n=o(n,!0),r(e),i)try{return u(t,n,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},function(t,n,e){var r=e(26);t.exports=function(t){return Object(r(t))}},function(t,n,e){var r=e(1),i=e(14),o=e(13),u=e(31)("src"),a=e(134),c=(""+a).split("toString");e(7).inspectSource=function(t){return a.call(t)},(t.exports=function(t,n,e,a){var s="function"==typeof e;s&&(o(e,"name")||i(e,"name",n)),t[n]!==e&&(s&&(o(e,u)||i(e,u,t[n]?""+t[n]:c.join(String(n)))),t===r?t[n]=e:a?t[n]?t[n]=e:i(t,n,e):(delete t[n],i(t,n,e)))})(Function.prototype,"toString",(function(){return"function"==typeof this&&this[u]||a.call(this)}))},function(t,n,e){var r=e(0),i=e(2),o=e(26),u=/"/g,a=function(t,n,e,r){var i=String(o(t)),a="<"+n;return""!==e&&(a+=" "+e+'="'+String(r).replace(u,""")+'"'),a+">"+i+""};t.exports=function(t,n){var e={};e[t]=n(a),r(r.P+r.F*i((function(){var n=""[t]('"');return n!==n.toLowerCase()||n.split('"').length>3})),"String",e)}},function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},function(t,n,e){var r=e(9),i=e(30);t.exports=e(8)?function(t,n,e){return r.f(t,n,i(1,e))}:function(t,n,e){return t[n]=e,t}},function(t,n,e){var r=e(46),i=e(26);t.exports=function(t){return r(i(t))}},function(t,n,e){"use strict";var r=e(2);t.exports=function(t,n){return!!t&&r((function(){n?t.call(null,(function(){}),1):t.call(null)}))}},function(t,n,e){"use strict";n.__esModule=!0,n.default=void 0;var r=e(18),i=function(){function t(){}return t.getFirstMatch=function(t,n){var e=n.match(t);return e&&e.length>0&&e[1]||""},t.getSecondMatch=function(t,n){var e=n.match(t);return e&&e.length>1&&e[2]||""},t.matchAndReturnConst=function(t,n,e){if(t.test(n))return e},t.getWindowsVersionName=function(t){switch(t){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},t.getMacOSVersionName=function(t){var n=t.split(".").splice(0,2).map((function(t){return parseInt(t,10)||0}));if(n.push(0),10===n[0])switch(n[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},t.getAndroidVersionName=function(t){var n=t.split(".").splice(0,2).map((function(t){return parseInt(t,10)||0}));if(n.push(0),!(1===n[0]&&n[1]<5))return 1===n[0]&&n[1]<6?"Cupcake":1===n[0]&&n[1]>=6?"Donut":2===n[0]&&n[1]<2?"Eclair":2===n[0]&&2===n[1]?"Froyo":2===n[0]&&n[1]>2?"Gingerbread":3===n[0]?"Honeycomb":4===n[0]&&n[1]<1?"Ice Cream Sandwich":4===n[0]&&n[1]<4?"Jelly Bean":4===n[0]&&n[1]>=4?"KitKat":5===n[0]?"Lollipop":6===n[0]?"Marshmallow":7===n[0]?"Nougat":8===n[0]?"Oreo":9===n[0]?"Pie":void 0},t.getVersionPrecision=function(t){return t.split(".").length},t.compareVersions=function(n,e,r){void 0===r&&(r=!1);var i=t.getVersionPrecision(n),o=t.getVersionPrecision(e),u=Math.max(i,o),a=0,c=t.map([n,e],(function(n){var e=u-t.getVersionPrecision(n),r=n+new Array(e+1).join(".0");return t.map(r.split("."),(function(t){return new Array(20-t.length).join("0")+t})).reverse()}));for(r&&(a=u-Math.min(i,o)),u-=1;u>=a;){if(c[0][u]>c[1][u])return 1;if(c[0][u]===c[1][u]){if(u===a)return 0;u-=1}else if(c[0][u]1?i-1:0),u=1;u0?r:e)(t)}},function(t,n,e){var r=e(47),i=e(30),o=e(15),u=e(28),a=e(13),c=e(96),s=Object.getOwnPropertyDescriptor;n.f=e(8)?s:function(t,n){if(t=o(t),n=u(n,!0),c)try{return s(t,n)}catch(t){}if(a(t,n))return i(!r.f.call(t,n),t[n])}},function(t,n,e){var r=e(0),i=e(7),o=e(2);t.exports=function(t,n){var e=(i.Object||{})[t]||Object[t],u={};u[t]=n(e),r(r.S+r.F*o((function(){e(1)})),"Object",u)}},function(t,n,e){var r=e(19),i=e(46),o=e(10),u=e(6),a=e(112);t.exports=function(t,n){var e=1==t,c=2==t,s=3==t,f=4==t,l=6==t,h=5==t||l,d=n||a;return function(n,a,p){for(var v,g,y=o(n),m=i(y),b=r(a,p,3),S=u(m.length),w=0,_=e?d(n,S):c?d(n,0):void 0;S>w;w++)if((h||w in m)&&(g=b(v=m[w],w,y),t))if(e)_[w]=g;else if(g)switch(t){case 3:return!0;case 5:return v;case 6:return w;case 2:_.push(v)}else if(f)return!1;return l?-1:s||f?f:_}}},function(t,n){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t,n){t.exports=function(t){if(null==t)throw TypeError("Can't call method on "+t);return t}},function(t,n,e){"use strict";if(e(8)){var r=e(32),i=e(1),o=e(2),u=e(0),a=e(61),c=e(86),s=e(19),f=e(44),l=e(30),h=e(14),d=e(45),p=e(21),v=e(6),g=e(123),y=e(34),m=e(28),b=e(13),S=e(48),w=e(4),_=e(10),M=e(78),x=e(35),P=e(37),O=e(36).f,F=e(80),A=e(31),E=e(5),N=e(24),R=e(51),k=e(49),T=e(82),I=e(42),j=e(54),L=e(43),B=e(81),C=e(114),W=e(9),V=e(22),G=W.f,D=V.f,U=i.RangeError,z=i.TypeError,q=i.Uint8Array,K=Array.prototype,Y=c.ArrayBuffer,Q=c.DataView,H=N(0),J=N(2),X=N(3),Z=N(4),$=N(5),tt=N(6),nt=R(!0),et=R(!1),rt=T.values,it=T.keys,ot=T.entries,ut=K.lastIndexOf,at=K.reduce,ct=K.reduceRight,st=K.join,ft=K.sort,lt=K.slice,ht=K.toString,dt=K.toLocaleString,pt=E("iterator"),vt=E("toStringTag"),gt=A("typed_constructor"),yt=A("def_constructor"),mt=a.CONSTR,bt=a.TYPED,St=a.VIEW,wt=N(1,(function(t,n){return Ot(k(t,t[yt]),n)})),_t=o((function(){return 1===new q(new Uint16Array([1]).buffer)[0]})),Mt=!!q&&!!q.prototype.set&&o((function(){new q(1).set({})})),xt=function(t,n){var e=p(t);if(e<0||e%n)throw U("Wrong offset!");return e},Pt=function(t){if(w(t)&&bt in t)return t;throw z(t+" is not a typed array!")},Ot=function(t,n){if(!(w(t)&> in t))throw z("It is not a typed array constructor!");return new t(n)},Ft=function(t,n){return At(k(t,t[yt]),n)},At=function(t,n){for(var e=0,r=n.length,i=Ot(t,r);r>e;)i[e]=n[e++];return i},Et=function(t,n,e){G(t,n,{get:function(){return this._d[e]}})},Nt=function(t){var n,e,r,i,o,u,a=_(t),c=arguments.length,f=c>1?arguments[1]:void 0,l=void 0!==f,h=F(a);if(null!=h&&!M(h)){for(u=h.call(a),r=[],n=0;!(o=u.next()).done;n++)r.push(o.value);a=r}for(l&&c>2&&(f=s(f,arguments[2],2)),n=0,e=v(a.length),i=Ot(this,e);e>n;n++)i[n]=l?f(a[n],n):a[n];return i},Rt=function(){for(var t=0,n=arguments.length,e=Ot(this,n);n>t;)e[t]=arguments[t++];return e},kt=!!q&&o((function(){dt.call(new q(1))})),Tt=function(){return dt.apply(kt?lt.call(Pt(this)):Pt(this),arguments)},It={copyWithin:function(t,n){return C.call(Pt(this),t,n,arguments.length>2?arguments[2]:void 0)},every:function(t){return Z(Pt(this),t,arguments.length>1?arguments[1]:void 0)},fill:function(t){return B.apply(Pt(this),arguments)},filter:function(t){return Ft(this,J(Pt(this),t,arguments.length>1?arguments[1]:void 0))},find:function(t){return $(Pt(this),t,arguments.length>1?arguments[1]:void 0)},findIndex:function(t){return tt(Pt(this),t,arguments.length>1?arguments[1]:void 0)},forEach:function(t){H(Pt(this),t,arguments.length>1?arguments[1]:void 0)},indexOf:function(t){return et(Pt(this),t,arguments.length>1?arguments[1]:void 0)},includes:function(t){return nt(Pt(this),t,arguments.length>1?arguments[1]:void 0)},join:function(t){return st.apply(Pt(this),arguments)},lastIndexOf:function(t){return ut.apply(Pt(this),arguments)},map:function(t){return wt(Pt(this),t,arguments.length>1?arguments[1]:void 0)},reduce:function(t){return at.apply(Pt(this),arguments)},reduceRight:function(t){return ct.apply(Pt(this),arguments)},reverse:function(){for(var t,n=Pt(this).length,e=Math.floor(n/2),r=0;r1?arguments[1]:void 0)},sort:function(t){return ft.call(Pt(this),t)},subarray:function(t,n){var e=Pt(this),r=e.length,i=y(t,r);return new(k(e,e[yt]))(e.buffer,e.byteOffset+i*e.BYTES_PER_ELEMENT,v((void 0===n?r:y(n,r))-i))}},jt=function(t,n){return Ft(this,lt.call(Pt(this),t,n))},Lt=function(t){Pt(this);var n=xt(arguments[1],1),e=this.length,r=_(t),i=v(r.length),o=0;if(i+n>e)throw U("Wrong length!");for(;o255?255:255&r),i.v[d](e*n+i.o,r,_t)}(this,e,t)},enumerable:!0})};b?(p=e((function(t,e,r,i){f(t,p,s,"_d");var o,u,a,c,l=0,d=0;if(w(e)){if(!(e instanceof Y||"ArrayBuffer"==(c=S(e))||"SharedArrayBuffer"==c))return bt in e?At(p,e):Nt.call(p,e);o=e,d=xt(r,n);var y=e.byteLength;if(void 0===i){if(y%n)throw U("Wrong length!");if((u=y-d)<0)throw U("Wrong length!")}else if((u=v(i)*n)+d>y)throw U("Wrong length!");a=u/n}else a=g(e),o=new Y(u=a*n);for(h(t,"_d",{b:o,o:d,l:u,e:a,v:new Q(o)});ldocument.F=Object<\/script>"),t.close(),c=t.F;r--;)delete c.prototype[o[r]];return c()};t.exports=Object.create||function(t,n){var e;return null!==t?(a.prototype=r(t),e=new a,a.prototype=null,e[u]=t):e=c(),void 0===n?e:i(e,n)}},function(t,n,e){var r=e(98),i=e(65).concat("length","prototype");n.f=Object.getOwnPropertyNames||function(t){return r(t,i)}},function(t,n,e){var r=e(13),i=e(10),o=e(64)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=i(t),r(t,o)?t[o]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,n,e){var r=e(5)("unscopables"),i=Array.prototype;null==i[r]&&e(14)(i,r,{}),t.exports=function(t){i[r][t]=!0}},function(t,n,e){var r=e(4);t.exports=function(t,n){if(!r(t)||t._t!==n)throw TypeError("Incompatible receiver, "+n+" required!");return t}},function(t,n,e){var r=e(9).f,i=e(13),o=e(5)("toStringTag");t.exports=function(t,n,e){t&&!i(t=e?t:t.prototype,o)&&r(t,o,{configurable:!0,value:n})}},function(t,n,e){var r=e(0),i=e(26),o=e(2),u=e(68),a="["+u+"]",c=RegExp("^"+a+a+"*"),s=RegExp(a+a+"*$"),f=function(t,n,e){var i={},a=o((function(){return!!u[t]()||"​…"!="​…"[t]()})),c=i[t]=a?n(l):u[t];e&&(i[e]=c),r(r.P+r.F*a,"String",i)},l=f.trim=function(t,n){return t=String(i(t)),1&n&&(t=t.replace(c,"")),2&n&&(t=t.replace(s,"")),t};t.exports=f},function(t,n){t.exports={}},function(t,n,e){"use strict";var r=e(1),i=e(9),o=e(8),u=e(5)("species");t.exports=function(t){var n=r[t];o&&n&&!n[u]&&i.f(n,u,{configurable:!0,get:function(){return this}})}},function(t,n){t.exports=function(t,n,e,r){if(!(t instanceof n)||void 0!==r&&r in t)throw TypeError(e+": incorrect invocation!");return t}},function(t,n,e){var r=e(11);t.exports=function(t,n,e){for(var i in n)r(t,i,n[i],e);return t}},function(t,n,e){var r=e(25);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,n){n.f={}.propertyIsEnumerable},function(t,n,e){var r=e(25),i=e(5)("toStringTag"),o="Arguments"==r(function(){return arguments}());t.exports=function(t){var n,e,u;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(e=function(t,n){try{return t[n]}catch(t){}}(n=Object(t),i))?e:o?r(n):"Object"==(u=r(n))&&"function"==typeof n.callee?"Arguments":u}},function(t,n,e){var r=e(3),i=e(20),o=e(5)("species");t.exports=function(t,n){var e,u=r(t).constructor;return void 0===u||null==(e=r(u)[o])?n:i(e)}},function(t,n,e){var r=e(7),i=e(1),o=i["__core-js_shared__"]||(i["__core-js_shared__"]={});(t.exports=function(t,n){return o[t]||(o[t]=void 0!==n?n:{})})("versions",[]).push({version:r.version,mode:e(32)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(t,n,e){var r=e(15),i=e(6),o=e(34);t.exports=function(t){return function(n,e,u){var a,c=r(n),s=i(c.length),f=o(u,s);if(t&&e!=e){for(;s>f;)if((a=c[f++])!=a)return!0}else for(;s>f;f++)if((t||f in c)&&c[f]===e)return t||f||0;return!t&&-1}}},function(t,n){n.f=Object.getOwnPropertySymbols},function(t,n,e){var r=e(25);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,n,e){var r=e(5)("iterator"),i=!1;try{var o=[7][r]();o.return=function(){i=!0},Array.from(o,(function(){throw 2}))}catch(t){}t.exports=function(t,n){if(!n&&!i)return!1;var e=!1;try{var o=[7],u=o[r]();u.next=function(){return{done:e=!0}},o[r]=function(){return u},t(o)}catch(t){}return e}},function(t,n,e){"use strict";var r=e(3);t.exports=function(){var t=r(this),n="";return t.global&&(n+="g"),t.ignoreCase&&(n+="i"),t.multiline&&(n+="m"),t.unicode&&(n+="u"),t.sticky&&(n+="y"),n}},function(t,n,e){"use strict";var r=e(48),i=RegExp.prototype.exec;t.exports=function(t,n){var e=t.exec;if("function"==typeof e){var o=e.call(t,n);if("object"!=typeof o)throw new TypeError("RegExp exec method returned something other than an Object or null");return o}if("RegExp"!==r(t))throw new TypeError("RegExp#exec called on incompatible receiver");return i.call(t,n)}},function(t,n,e){"use strict";e(116);var r=e(11),i=e(14),o=e(2),u=e(26),a=e(5),c=e(83),s=a("species"),f=!o((function(){var t=/./;return t.exec=function(){var t=[];return t.groups={a:"7"},t},"7"!=="".replace(t,"$")})),l=function(){var t=/(?:)/,n=t.exec;t.exec=function(){return n.apply(this,arguments)};var e="ab".split(t);return 2===e.length&&"a"===e[0]&&"b"===e[1]}();t.exports=function(t,n,e){var h=a(t),d=!o((function(){var n={};return n[h]=function(){return 7},7!=""[t](n)})),p=d?!o((function(){var n=!1,e=/a/;return e.exec=function(){return n=!0,null},"split"===t&&(e.constructor={},e.constructor[s]=function(){return e}),e[h](""),!n})):void 0;if(!d||!p||"replace"===t&&!f||"split"===t&&!l){var v=/./[h],g=e(u,h,""[t],(function(t,n,e,r,i){return n.exec===c?d&&!i?{done:!0,value:v.call(n,e,r)}:{done:!0,value:t.call(e,n,r)}:{done:!1}})),y=g[0],m=g[1];r(String.prototype,t,y),i(RegExp.prototype,h,2==n?function(t,n){return m.call(t,this,n)}:function(t){return m.call(t,this)})}}},function(t,n,e){var r=e(19),i=e(111),o=e(78),u=e(3),a=e(6),c=e(80),s={},f={};(n=t.exports=function(t,n,e,l,h){var d,p,v,g,y=h?function(){return t}:c(t),m=r(e,l,n?2:1),b=0;if("function"!=typeof y)throw TypeError(t+" is not iterable!");if(o(y)){for(d=a(t.length);d>b;b++)if((g=n?m(u(p=t[b])[0],p[1]):m(t[b]))===s||g===f)return g}else for(v=y.call(t);!(p=v.next()).done;)if((g=i(v,m,p.value,n))===s||g===f)return g}).BREAK=s,n.RETURN=f},function(t,n,e){var r=e(1).navigator;t.exports=r&&r.userAgent||""},function(t,n,e){"use strict";var r=e(1),i=e(0),o=e(11),u=e(45),a=e(29),c=e(58),s=e(44),f=e(4),l=e(2),h=e(54),d=e(40),p=e(69);t.exports=function(t,n,e,v,g,y){var m=r[t],b=m,S=g?"set":"add",w=b&&b.prototype,_={},M=function(t){var n=w[t];o(w,t,"delete"==t?function(t){return!(y&&!f(t))&&n.call(this,0===t?0:t)}:"has"==t?function(t){return!(y&&!f(t))&&n.call(this,0===t?0:t)}:"get"==t?function(t){return y&&!f(t)?void 0:n.call(this,0===t?0:t)}:"add"==t?function(t){return n.call(this,0===t?0:t),this}:function(t,e){return n.call(this,0===t?0:t,e),this})};if("function"==typeof b&&(y||w.forEach&&!l((function(){(new b).entries().next()})))){var x=new b,P=x[S](y?{}:-0,1)!=x,O=l((function(){x.has(1)})),F=h((function(t){new b(t)})),A=!y&&l((function(){for(var t=new b,n=5;n--;)t[S](n,n);return!t.has(-0)}));F||((b=n((function(n,e){s(n,b,t);var r=p(new m,n,b);return null!=e&&c(e,g,r[S],r),r}))).prototype=w,w.constructor=b),(O||A)&&(M("delete"),M("has"),g&&M("get")),(A||P)&&M(S),y&&w.clear&&delete w.clear}else b=v.getConstructor(n,t,g,S),u(b.prototype,e),a.NEED=!0;return d(b,t),_[t]=b,i(i.G+i.W+i.F*(b!=m),_),y||v.setStrong(b,t,g),b}},function(t,n,e){for(var r,i=e(1),o=e(14),u=e(31),a=u("typed_array"),c=u("view"),s=!(!i.ArrayBuffer||!i.DataView),f=s,l=0,h="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");l<9;)(r=i[h[l++]])?(o(r.prototype,a,!0),o(r.prototype,c,!0)):f=!1;t.exports={ABV:s,CONSTR:f,TYPED:a,VIEW:c}},function(t,n,e){var r=e(4),i=e(1).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,n,e){n.f=e(5)},function(t,n,e){var r=e(50)("keys"),i=e(31);t.exports=function(t){return r[t]||(r[t]=i(t))}},function(t,n){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,n,e){var r=e(1).document;t.exports=r&&r.documentElement},function(t,n,e){var r=e(4),i=e(3),o=function(t,n){if(i(t),!r(n)&&null!==n)throw TypeError(n+": can't set as prototype!")};t.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(t,n,r){try{(r=e(19)(Function.call,e(22).f(Object.prototype,"__proto__").set,2))(t,[]),n=!(t instanceof Array)}catch(t){n=!0}return function(t,e){return o(t,e),n?t.__proto__=e:r(t,e),t}}({},!1):void 0),check:o}},function(t,n){t.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"},function(t,n,e){var r=e(4),i=e(67).set;t.exports=function(t,n,e){var o,u=n.constructor;return u!==e&&"function"==typeof u&&(o=u.prototype)!==e.prototype&&r(o)&&i&&i(t,o),t}},function(t,n,e){"use strict";var r=e(21),i=e(26);t.exports=function(t){var n=String(i(this)),e="",o=r(t);if(o<0||o==1/0)throw RangeError("Count can't be negative");for(;o>0;(o>>>=1)&&(n+=n))1&o&&(e+=n);return e}},function(t,n){t.exports=Math.sign||function(t){return 0==(t=+t)||t!=t?t:t<0?-1:1}},function(t,n){var e=Math.expm1;t.exports=!e||e(10)>22025.465794806718||e(10)<22025.465794806718||-2e-17!=e(-2e-17)?function(t){return 0==(t=+t)?t:t>-1e-6&&t<1e-6?t+t*t/2:Math.exp(t)-1}:e},function(t,n,e){var r=e(21),i=e(26);t.exports=function(t){return function(n,e){var o,u,a=String(i(n)),c=r(e),s=a.length;return c<0||c>=s?t?"":void 0:(o=a.charCodeAt(c))<55296||o>56319||c+1===s||(u=a.charCodeAt(c+1))<56320||u>57343?t?a.charAt(c):o:t?a.slice(c,c+2):u-56320+(o-55296<<10)+65536}}},function(t,n,e){"use strict";var r=e(32),i=e(0),o=e(11),u=e(14),a=e(42),c=e(110),s=e(40),f=e(37),l=e(5)("iterator"),h=!([].keys&&"next"in[].keys()),d=function(){return this};t.exports=function(t,n,e,p,v,g,y){c(e,n,p);var m,b,S,w=function(t){if(!h&&t in P)return P[t];switch(t){case"keys":case"values":return function(){return new e(this,t)}}return function(){return new e(this,t)}},_=n+" Iterator",M="values"==v,x=!1,P=t.prototype,O=P[l]||P["@@iterator"]||v&&P[v],F=O||w(v),A=v?M?w("entries"):F:void 0,E="Array"==n&&P.entries||O;if(E&&(S=f(E.call(new t)))!==Object.prototype&&S.next&&(s(S,_,!0),r||"function"==typeof S[l]||u(S,l,d)),M&&O&&"values"!==O.name&&(x=!0,F=function(){return O.call(this)}),r&&!y||!h&&!x&&P[l]||u(P,l,F),a[n]=F,a[_]=d,v)if(m={values:M?F:w("values"),keys:g?F:w("keys"),entries:A},y)for(b in m)b in P||o(P,b,m[b]);else i(i.P+i.F*(h||x),n,m);return m}},function(t,n,e){var r=e(76),i=e(26);t.exports=function(t,n,e){if(r(n))throw TypeError("String#"+e+" doesn't accept regex!");return String(i(t))}},function(t,n,e){var r=e(4),i=e(25),o=e(5)("match");t.exports=function(t){var n;return r(t)&&(void 0!==(n=t[o])?!!n:"RegExp"==i(t))}},function(t,n,e){var r=e(5)("match");t.exports=function(t){var n=/./;try{"/./"[t](n)}catch(e){try{return n[r]=!1,!"/./"[t](n)}catch(t){}}return!0}},function(t,n,e){var r=e(42),i=e(5)("iterator"),o=Array.prototype;t.exports=function(t){return void 0!==t&&(r.Array===t||o[i]===t)}},function(t,n,e){"use strict";var r=e(9),i=e(30);t.exports=function(t,n,e){n in t?r.f(t,n,i(0,e)):t[n]=e}},function(t,n,e){var r=e(48),i=e(5)("iterator"),o=e(42);t.exports=e(7).getIteratorMethod=function(t){if(null!=t)return t[i]||t["@@iterator"]||o[r(t)]}},function(t,n,e){"use strict";var r=e(10),i=e(34),o=e(6);t.exports=function(t){for(var n=r(this),e=o(n.length),u=arguments.length,a=i(u>1?arguments[1]:void 0,e),c=u>2?arguments[2]:void 0,s=void 0===c?e:i(c,e);s>a;)n[a++]=t;return n}},function(t,n,e){"use strict";var r=e(38),i=e(115),o=e(42),u=e(15);t.exports=e(74)(Array,"Array",(function(t,n){this._t=u(t),this._i=0,this._k=n}),(function(){var t=this._t,n=this._k,e=this._i++;return!t||e>=t.length?(this._t=void 0,i(1)):i(0,"keys"==n?e:"values"==n?t[e]:[e,t[e]])}),"values"),o.Arguments=o.Array,r("keys"),r("values"),r("entries")},function(t,n,e){"use strict";var r,i,o=e(55),u=RegExp.prototype.exec,a=String.prototype.replace,c=u,s=(r=/a/,i=/b*/g,u.call(r,"a"),u.call(i,"a"),0!==r.lastIndex||0!==i.lastIndex),f=void 0!==/()??/.exec("")[1];(s||f)&&(c=function(t){var n,e,r,i,c=this;return f&&(e=new RegExp("^"+c.source+"$(?!\\s)",o.call(c))),s&&(n=c.lastIndex),r=u.call(c,t),s&&r&&(c.lastIndex=c.global?r.index+r[0].length:n),f&&r&&r.length>1&&a.call(r[0],e,(function(){for(i=1;ie;)n.push(arguments[e++]);return y[++g]=function(){a("function"==typeof t?t:Function(t),n)},r(g),g},d=function(t){delete y[t]},"process"==e(25)(l)?r=function(t){l.nextTick(u(m,t,1))}:v&&v.now?r=function(t){v.now(u(m,t,1))}:p?(o=(i=new p).port2,i.port1.onmessage=b,r=u(o.postMessage,o,1)):f.addEventListener&&"function"==typeof postMessage&&!f.importScripts?(r=function(t){f.postMessage(t+"","*")},f.addEventListener("message",b,!1)):r="onreadystatechange"in s("script")?function(t){c.appendChild(s("script")).onreadystatechange=function(){c.removeChild(this),m.call(t)}}:function(t){setTimeout(u(m,t,1),0)}),t.exports={set:h,clear:d}},function(t,n,e){"use strict";var r=e(1),i=e(8),o=e(32),u=e(61),a=e(14),c=e(45),s=e(2),f=e(44),l=e(21),h=e(6),d=e(123),p=e(36).f,v=e(9).f,g=e(81),y=e(40),m="prototype",b="Wrong index!",S=r.ArrayBuffer,w=r.DataView,_=r.Math,M=r.RangeError,x=r.Infinity,P=S,O=_.abs,F=_.pow,A=_.floor,E=_.log,N=_.LN2,R=i?"_b":"buffer",k=i?"_l":"byteLength",T=i?"_o":"byteOffset";function I(t,n,e){var r,i,o,u=new Array(e),a=8*e-n-1,c=(1<>1,f=23===n?F(2,-24)-F(2,-77):0,l=0,h=t<0||0===t&&1/t<0?1:0;for((t=O(t))!=t||t===x?(i=t!=t?1:0,r=c):(r=A(E(t)/N),t*(o=F(2,-r))<1&&(r--,o*=2),(t+=r+s>=1?f/o:f*F(2,1-s))*o>=2&&(r++,o/=2),r+s>=c?(i=0,r=c):r+s>=1?(i=(t*o-1)*F(2,n),r+=s):(i=t*F(2,s-1)*F(2,n),r=0));n>=8;u[l++]=255&i,i/=256,n-=8);for(r=r<0;u[l++]=255&r,r/=256,a-=8);return u[--l]|=128*h,u}function j(t,n,e){var r,i=8*e-n-1,o=(1<>1,a=i-7,c=e-1,s=t[c--],f=127&s;for(s>>=7;a>0;f=256*f+t[c],c--,a-=8);for(r=f&(1<<-a)-1,f>>=-a,a+=n;a>0;r=256*r+t[c],c--,a-=8);if(0===f)f=1-u;else{if(f===o)return r?NaN:s?-x:x;r+=F(2,n),f-=u}return(s?-1:1)*r*F(2,f-n)}function L(t){return t[3]<<24|t[2]<<16|t[1]<<8|t[0]}function B(t){return[255&t]}function C(t){return[255&t,t>>8&255]}function W(t){return[255&t,t>>8&255,t>>16&255,t>>24&255]}function V(t){return I(t,52,8)}function G(t){return I(t,23,4)}function D(t,n,e){v(t[m],n,{get:function(){return this[e]}})}function U(t,n,e,r){var i=d(+e);if(i+n>t[k])throw M(b);var o=t[R]._b,u=i+t[T],a=o.slice(u,u+n);return r?a:a.reverse()}function z(t,n,e,r,i,o){var u=d(+e);if(u+n>t[k])throw M(b);for(var a=t[R]._b,c=u+t[T],s=r(+i),f=0;fQ;)(q=Y[Q++])in S||a(S,q,P[q]);o||(K.constructor=S)}var H=new w(new S(2)),J=w[m].setInt8;H.setInt8(0,2147483648),H.setInt8(1,2147483649),!H.getInt8(0)&&H.getInt8(1)||c(w[m],{setInt8:function(t,n){J.call(this,t,n<<24>>24)},setUint8:function(t,n){J.call(this,t,n<<24>>24)}},!0)}else S=function(t){f(this,S,"ArrayBuffer");var n=d(t);this._b=g.call(new Array(n),0),this[k]=n},w=function(t,n,e){f(this,w,"DataView"),f(t,S,"DataView");var r=t[k],i=l(n);if(i<0||i>r)throw M("Wrong offset!");if(i+(e=void 0===e?r-i:h(e))>r)throw M("Wrong length!");this[R]=t,this[T]=i,this[k]=e},i&&(D(S,"byteLength","_l"),D(w,"buffer","_b"),D(w,"byteLength","_l"),D(w,"byteOffset","_o")),c(w[m],{getInt8:function(t){return U(this,1,t)[0]<<24>>24},getUint8:function(t){return U(this,1,t)[0]},getInt16:function(t){var n=U(this,2,t,arguments[1]);return(n[1]<<8|n[0])<<16>>16},getUint16:function(t){var n=U(this,2,t,arguments[1]);return n[1]<<8|n[0]},getInt32:function(t){return L(U(this,4,t,arguments[1]))},getUint32:function(t){return L(U(this,4,t,arguments[1]))>>>0},getFloat32:function(t){return j(U(this,4,t,arguments[1]),23,4)},getFloat64:function(t){return j(U(this,8,t,arguments[1]),52,8)},setInt8:function(t,n){z(this,1,t,B,n)},setUint8:function(t,n){z(this,1,t,B,n)},setInt16:function(t,n){z(this,2,t,C,n,arguments[2])},setUint16:function(t,n){z(this,2,t,C,n,arguments[2])},setInt32:function(t,n){z(this,4,t,W,n,arguments[2])},setUint32:function(t,n){z(this,4,t,W,n,arguments[2])},setFloat32:function(t,n){z(this,4,t,G,n,arguments[2])},setFloat64:function(t,n){z(this,8,t,V,n,arguments[2])}});y(S,"ArrayBuffer"),y(w,"DataView"),a(w[m],u.VIEW,!0),n.ArrayBuffer=S,n.DataView=w},function(t,n){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},function(t,n){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,n,e){t.exports=!e(128)((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a}))},function(t,n,e){"use strict";n.__esModule=!0,n.default=void 0;var r,i=(r=e(91))&&r.__esModule?r:{default:r},o=e(18);function u(t,n){for(var e=0;e0){var u=Object.keys(e),c=a.default.find(u,(function(t){return n.isOS(t)}));if(c){var s=this.satisfies(e[c]);if(void 0!==s)return s}var f=a.default.find(u,(function(t){return n.isPlatform(t)}));if(f){var l=this.satisfies(e[f]);if(void 0!==l)return l}}if(o>0){var h=Object.keys(i),d=a.default.find(h,(function(t){return n.isBrowser(t,!0)}));if(void 0!==d)return this.compareVersion(i[d])}},n.isBrowser=function(t,n){void 0===n&&(n=!1);var e=this.getBrowserName().toLowerCase(),r=t.toLowerCase(),i=a.default.getBrowserTypeByAlias(r);return n&&i&&(r=i.toLowerCase()),r===e},n.compareVersion=function(t){var n=[0],e=t,r=!1,i=this.getBrowserVersion();if("string"==typeof i)return">"===t[0]||"<"===t[0]?(e=t.substr(1),"="===t[1]?(r=!0,e=t.substr(2)):n=[],">"===t[0]?n.push(1):n.push(-1)):"="===t[0]?e=t.substr(1):"~"===t[0]&&(r=!0,e=t.substr(1)),n.indexOf(a.default.compareVersions(i,e,r))>-1},n.isOS=function(t){return this.getOSName(!0)===String(t).toLowerCase()},n.isPlatform=function(t){return this.getPlatformType(!0)===String(t).toLowerCase()},n.isEngine=function(t){return this.getEngineName(!0)===String(t).toLowerCase()},n.is=function(t,n){return void 0===n&&(n=!1),this.isBrowser(t,n)||this.isOS(t)||this.isPlatform(t)},n.some=function(t){var n=this;return void 0===t&&(t=[]),t.some((function(t){return n.is(t)}))},t}();n.default=s,t.exports=n.default},function(t,n,e){"use strict";n.__esModule=!0,n.default=void 0;var r,i=(r=e(17))&&r.__esModule?r:{default:r};var o=/version\/(\d+(\.?_?\d+)+)/i,u=[{test:[/googlebot/i],describe:function(t){var n={name:"Googlebot"},e=i.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,t)||i.default.getFirstMatch(o,t);return e&&(n.version=e),n}},{test:[/opera/i],describe:function(t){var n={name:"Opera"},e=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,t);return e&&(n.version=e),n}},{test:[/opr\/|opios/i],describe:function(t){var n={name:"Opera"},e=i.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,t)||i.default.getFirstMatch(o,t);return e&&(n.version=e),n}},{test:[/SamsungBrowser/i],describe:function(t){var n={name:"Samsung Internet for Android"},e=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return e&&(n.version=e),n}},{test:[/Whale/i],describe:function(t){var n={name:"NAVER Whale Browser"},e=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,t);return e&&(n.version=e),n}},{test:[/MZBrowser/i],describe:function(t){var n={name:"MZ Browser"},e=i.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,t)||i.default.getFirstMatch(o,t);return e&&(n.version=e),n}},{test:[/focus/i],describe:function(t){var n={name:"Focus"},e=i.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,t)||i.default.getFirstMatch(o,t);return e&&(n.version=e),n}},{test:[/swing/i],describe:function(t){var n={name:"Swing"},e=i.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,t)||i.default.getFirstMatch(o,t);return e&&(n.version=e),n}},{test:[/coast/i],describe:function(t){var n={name:"Opera Coast"},e=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,t);return e&&(n.version=e),n}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(t){var n={name:"Opera Touch"},e=i.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,t)||i.default.getFirstMatch(o,t);return e&&(n.version=e),n}},{test:[/yabrowser/i],describe:function(t){var n={name:"Yandex Browser"},e=i.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,t)||i.default.getFirstMatch(o,t);return e&&(n.version=e),n}},{test:[/ucbrowser/i],describe:function(t){var n={name:"UC Browser"},e=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return e&&(n.version=e),n}},{test:[/Maxthon|mxios/i],describe:function(t){var n={name:"Maxthon"},e=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,t);return e&&(n.version=e),n}},{test:[/epiphany/i],describe:function(t){var n={name:"Epiphany"},e=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,t);return e&&(n.version=e),n}},{test:[/puffin/i],describe:function(t){var n={name:"Puffin"},e=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,t);return e&&(n.version=e),n}},{test:[/sleipnir/i],describe:function(t){var n={name:"Sleipnir"},e=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,t);return e&&(n.version=e),n}},{test:[/k-meleon/i],describe:function(t){var n={name:"K-Meleon"},e=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,t);return e&&(n.version=e),n}},{test:[/micromessenger/i],describe:function(t){var n={name:"WeChat"},e=i.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,t)||i.default.getFirstMatch(o,t);return e&&(n.version=e),n}},{test:[/qqbrowser/i],describe:function(t){var n={name:/qqbrowserlite/i.test(t)?"QQ Browser Lite":"QQ Browser"},e=i.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,t)||i.default.getFirstMatch(o,t);return e&&(n.version=e),n}},{test:[/msie|trident/i],describe:function(t){var n={name:"Internet Explorer"},e=i.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,t);return e&&(n.version=e),n}},{test:[/\sedg\//i],describe:function(t){var n={name:"Microsoft Edge"},e=i.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,t);return e&&(n.version=e),n}},{test:[/edg([ea]|ios)/i],describe:function(t){var n={name:"Microsoft Edge"},e=i.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,t);return e&&(n.version=e),n}},{test:[/vivaldi/i],describe:function(t){var n={name:"Vivaldi"},e=i.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,t);return e&&(n.version=e),n}},{test:[/seamonkey/i],describe:function(t){var n={name:"SeaMonkey"},e=i.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,t);return e&&(n.version=e),n}},{test:[/sailfish/i],describe:function(t){var n={name:"Sailfish"},e=i.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,t);return e&&(n.version=e),n}},{test:[/silk/i],describe:function(t){var n={name:"Amazon Silk"},e=i.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,t);return e&&(n.version=e),n}},{test:[/phantom/i],describe:function(t){var n={name:"PhantomJS"},e=i.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,t);return e&&(n.version=e),n}},{test:[/slimerjs/i],describe:function(t){var n={name:"SlimerJS"},e=i.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,t);return e&&(n.version=e),n}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(t){var n={name:"BlackBerry"},e=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,t);return e&&(n.version=e),n}},{test:[/(web|hpw)[o0]s/i],describe:function(t){var n={name:"WebOS Browser"},e=i.default.getFirstMatch(o,t)||i.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,t);return e&&(n.version=e),n}},{test:[/bada/i],describe:function(t){var n={name:"Bada"},e=i.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,t);return e&&(n.version=e),n}},{test:[/tizen/i],describe:function(t){var n={name:"Tizen"},e=i.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,t)||i.default.getFirstMatch(o,t);return e&&(n.version=e),n}},{test:[/qupzilla/i],describe:function(t){var n={name:"QupZilla"},e=i.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,t)||i.default.getFirstMatch(o,t);return e&&(n.version=e),n}},{test:[/firefox|iceweasel|fxios/i],describe:function(t){var n={name:"Firefox"},e=i.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,t);return e&&(n.version=e),n}},{test:[/electron/i],describe:function(t){var n={name:"Electron"},e=i.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,t);return e&&(n.version=e),n}},{test:[/MiuiBrowser/i],describe:function(t){var n={name:"Miui"},e=i.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,t);return e&&(n.version=e),n}},{test:[/chromium/i],describe:function(t){var n={name:"Chromium"},e=i.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,t)||i.default.getFirstMatch(o,t);return e&&(n.version=e),n}},{test:[/chrome|crios|crmo/i],describe:function(t){var n={name:"Chrome"},e=i.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,t);return e&&(n.version=e),n}},{test:[/GSA/i],describe:function(t){var n={name:"Google Search"},e=i.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,t);return e&&(n.version=e),n}},{test:function(t){var n=!t.test(/like android/i),e=t.test(/android/i);return n&&e},describe:function(t){var n={name:"Android Browser"},e=i.default.getFirstMatch(o,t);return e&&(n.version=e),n}},{test:[/playstation 4/i],describe:function(t){var n={name:"PlayStation 4"},e=i.default.getFirstMatch(o,t);return e&&(n.version=e),n}},{test:[/safari|applewebkit/i],describe:function(t){var n={name:"Safari"},e=i.default.getFirstMatch(o,t);return e&&(n.version=e),n}},{test:[/.*/i],describe:function(t){var n=-1!==t.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:i.default.getFirstMatch(n,t),version:i.default.getSecondMatch(n,t)}}}];n.default=u,t.exports=n.default},function(t,n,e){"use strict";n.__esModule=!0,n.default=void 0;var r,i=(r=e(17))&&r.__esModule?r:{default:r},o=e(18);var u=[{test:[/Roku\/DVP/],describe:function(t){var n=i.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,t);return{name:o.OS_MAP.Roku,version:n}}},{test:[/windows phone/i],describe:function(t){var n=i.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,t);return{name:o.OS_MAP.WindowsPhone,version:n}}},{test:[/windows /i],describe:function(t){var n=i.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,t),e=i.default.getWindowsVersionName(n);return{name:o.OS_MAP.Windows,version:n,versionName:e}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(t){var n={name:o.OS_MAP.iOS},e=i.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,t);return e&&(n.version=e),n}},{test:[/macintosh/i],describe:function(t){var n=i.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,t).replace(/[_\s]/g,"."),e=i.default.getMacOSVersionName(n),r={name:o.OS_MAP.MacOS,version:n};return e&&(r.versionName=e),r}},{test:[/(ipod|iphone|ipad)/i],describe:function(t){var n=i.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,t).replace(/[_\s]/g,".");return{name:o.OS_MAP.iOS,version:n}}},{test:function(t){var n=!t.test(/like android/i),e=t.test(/android/i);return n&&e},describe:function(t){var n=i.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,t),e=i.default.getAndroidVersionName(n),r={name:o.OS_MAP.Android,version:n};return e&&(r.versionName=e),r}},{test:[/(web|hpw)[o0]s/i],describe:function(t){var n=i.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,t),e={name:o.OS_MAP.WebOS};return n&&n.length&&(e.version=n),e}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(t){var n=i.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,t)||i.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,t)||i.default.getFirstMatch(/\bbb(\d+)/i,t);return{name:o.OS_MAP.BlackBerry,version:n}}},{test:[/bada/i],describe:function(t){var n=i.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,t);return{name:o.OS_MAP.Bada,version:n}}},{test:[/tizen/i],describe:function(t){var n=i.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,t);return{name:o.OS_MAP.Tizen,version:n}}},{test:[/linux/i],describe:function(){return{name:o.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:o.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(t){var n=i.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,t);return{name:o.OS_MAP.PlayStation4,version:n}}}];n.default=u,t.exports=n.default},function(t,n,e){"use strict";n.__esModule=!0,n.default=void 0;var r,i=(r=e(17))&&r.__esModule?r:{default:r},o=e(18);var u=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(t){var n=i.default.getFirstMatch(/(can-l01)/i,t)&&"Nova",e={type:o.PLATFORMS_MAP.mobile,vendor:"Huawei"};return n&&(e.model=n),e}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(t){var n=t.test(/ipod|iphone/i),e=t.test(/like (ipod|iphone)/i);return n&&!e},describe:function(t){var n=i.default.getFirstMatch(/(ipod|iphone)/i,t);return{type:o.PLATFORMS_MAP.mobile,vendor:"Apple",model:n}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(t){return"blackberry"===t.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(t){return"bada"===t.getBrowserName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(t){return"windows phone"===t.getBrowserName()},describe:function(){return{type:o.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(t){var n=Number(String(t.getOSVersion()).split(".")[0]);return"android"===t.getOSName(!0)&&n>=3},describe:function(){return{type:o.PLATFORMS_MAP.tablet}}},{test:function(t){return"android"===t.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.mobile}}},{test:function(t){return"macos"===t.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(t){return"windows"===t.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(t){return"linux"===t.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.desktop}}},{test:function(t){return"playstation 4"===t.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}},{test:function(t){return"roku"===t.getOSName(!0)},describe:function(){return{type:o.PLATFORMS_MAP.tv}}}];n.default=u,t.exports=n.default},function(t,n,e){"use strict";n.__esModule=!0,n.default=void 0;var r,i=(r=e(17))&&r.__esModule?r:{default:r},o=e(18);var u=[{test:function(t){return"microsoft edge"===t.getBrowserName(!0)},describe:function(t){if(/\sedg\//i.test(t))return{name:o.ENGINE_MAP.Blink};var n=i.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,t);return{name:o.ENGINE_MAP.EdgeHTML,version:n}}},{test:[/trident/i],describe:function(t){var n={name:o.ENGINE_MAP.Trident},e=i.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,t);return e&&(n.version=e),n}},{test:function(t){return t.test(/presto/i)},describe:function(t){var n={name:o.ENGINE_MAP.Presto},e=i.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,t);return e&&(n.version=e),n}},{test:function(t){var n=t.test(/gecko/i),e=t.test(/like gecko/i);return n&&!e},describe:function(t){var n={name:o.ENGINE_MAP.Gecko},e=i.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,t);return e&&(n.version=e),n}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:o.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(t){var n={name:o.ENGINE_MAP.WebKit},e=i.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,t);return e&&(n.version=e),n}}];n.default=u,t.exports=n.default},function(t,n,e){t.exports=!e(8)&&!e(2)((function(){return 7!=Object.defineProperty(e(62)("div"),"a",{get:function(){return 7}}).a}))},function(t,n,e){var r=e(1),i=e(7),o=e(32),u=e(63),a=e(9).f;t.exports=function(t){var n=i.Symbol||(i.Symbol=o?{}:r.Symbol||{});"_"==t.charAt(0)||t in n||a(n,t,{value:u.f(t)})}},function(t,n,e){var r=e(13),i=e(15),o=e(51)(!1),u=e(64)("IE_PROTO");t.exports=function(t,n){var e,a=i(t),c=0,s=[];for(e in a)e!=u&&r(a,e)&&s.push(e);for(;n.length>c;)r(a,e=n[c++])&&(~o(s,e)||s.push(e));return s}},function(t,n,e){var r=e(9),i=e(3),o=e(33);t.exports=e(8)?Object.defineProperties:function(t,n){i(t);for(var e,u=o(n),a=u.length,c=0;a>c;)r.f(t,e=u[c++],n[e]);return t}},function(t,n,e){var r=e(15),i=e(36).f,o={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return u&&"[object Window]"==o.call(t)?function(t){try{return i(t)}catch(t){return u.slice()}}(t):i(r(t))}},function(t,n,e){"use strict";var r=e(8),i=e(33),o=e(52),u=e(47),a=e(10),c=e(46),s=Object.assign;t.exports=!s||e(2)((function(){var t={},n={},e=Symbol(),r="abcdefghijklmnopqrst";return t[e]=7,r.split("").forEach((function(t){n[t]=t})),7!=s({},t)[e]||Object.keys(s({},n)).join("")!=r}))?function(t,n){for(var e=a(t),s=arguments.length,f=1,l=o.f,h=u.f;s>f;)for(var d,p=c(arguments[f++]),v=l?i(p).concat(l(p)):i(p),g=v.length,y=0;g>y;)d=v[y++],r&&!h.call(p,d)||(e[d]=p[d]);return e}:s},function(t,n){t.exports=Object.is||function(t,n){return t===n?0!==t||1/t==1/n:t!=t&&n!=n}},function(t,n,e){"use strict";var r=e(20),i=e(4),o=e(104),u=[].slice,a={},c=function(t,n,e){if(!(n in a)){for(var r=[],i=0;i>>0||(u.test(e)?16:10))}:r},function(t,n,e){var r=e(1).parseFloat,i=e(41).trim;t.exports=1/r(e(68)+"-0")!=-1/0?function(t){var n=i(String(t),3),e=r(n);return 0===e&&"-"==n.charAt(0)?-0:e}:r},function(t,n,e){var r=e(25);t.exports=function(t,n){if("number"!=typeof t&&"Number"!=r(t))throw TypeError(n);return+t}},function(t,n,e){var r=e(4),i=Math.floor;t.exports=function(t){return!r(t)&&isFinite(t)&&i(t)===t}},function(t,n){t.exports=Math.log1p||function(t){return(t=+t)>-1e-8&&t<1e-8?t-t*t/2:Math.log(1+t)}},function(t,n,e){"use strict";var r=e(35),i=e(30),o=e(40),u={};e(14)(u,e(5)("iterator"),(function(){return this})),t.exports=function(t,n,e){t.prototype=r(u,{next:i(1,e)}),o(t,n+" Iterator")}},function(t,n,e){var r=e(3);t.exports=function(t,n,e,i){try{return i?n(r(e)[0],e[1]):n(e)}catch(n){var o=t.return;throw void 0!==o&&r(o.call(t)),n}}},function(t,n,e){var r=e(224);t.exports=function(t,n){return new(r(t))(n)}},function(t,n,e){var r=e(20),i=e(10),o=e(46),u=e(6);t.exports=function(t,n,e,a,c){r(n);var s=i(t),f=o(s),l=u(s.length),h=c?l-1:0,d=c?-1:1;if(e<2)for(;;){if(h in f){a=f[h],h+=d;break}if(h+=d,c?h<0:l<=h)throw TypeError("Reduce of empty array with no initial value")}for(;c?h>=0:l>h;h+=d)h in f&&(a=n(a,f[h],h,s));return a}},function(t,n,e){"use strict";var r=e(10),i=e(34),o=e(6);t.exports=[].copyWithin||function(t,n){var e=r(this),u=o(e.length),a=i(t,u),c=i(n,u),s=arguments.length>2?arguments[2]:void 0,f=Math.min((void 0===s?u:i(s,u))-c,u-a),l=1;for(c0;)c in e?e[a]=e[c]:delete e[a],a+=l,c+=l;return e}},function(t,n){t.exports=function(t,n){return{value:n,done:!!t}}},function(t,n,e){"use strict";var r=e(83);e(0)({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},function(t,n,e){e(8)&&"g"!=/./g.flags&&e(9).f(RegExp.prototype,"flags",{configurable:!0,get:e(55)})},function(t,n,e){"use strict";var r,i,o,u,a=e(32),c=e(1),s=e(19),f=e(48),l=e(0),h=e(4),d=e(20),p=e(44),v=e(58),g=e(49),y=e(85).set,m=e(244)(),b=e(119),S=e(245),w=e(59),_=e(120),M=c.TypeError,x=c.process,P=x&&x.versions,O=P&&P.v8||"",F=c.Promise,A="process"==f(x),E=function(){},N=i=b.f,R=!!function(){try{var t=F.resolve(1),n=(t.constructor={})[e(5)("species")]=function(t){t(E,E)};return(A||"function"==typeof PromiseRejectionEvent)&&t.then(E)instanceof n&&0!==O.indexOf("6.6")&&-1===w.indexOf("Chrome/66")}catch(t){}}(),k=function(t){var n;return!(!h(t)||"function"!=typeof(n=t.then))&&n},T=function(t,n){if(!t._n){t._n=!0;var e=t._c;m((function(){for(var r=t._v,i=1==t._s,o=0,u=function(n){var e,o,u,a=i?n.ok:n.fail,c=n.resolve,s=n.reject,f=n.domain;try{a?(i||(2==t._h&&L(t),t._h=1),!0===a?e=r:(f&&f.enter(),e=a(r),f&&(f.exit(),u=!0)),e===n.promise?s(M("Promise-chain cycle")):(o=k(e))?o.call(e,c,s):c(e)):s(r)}catch(t){f&&!u&&f.exit(),s(t)}};e.length>o;)u(e[o++]);t._c=[],t._n=!1,n&&!t._h&&I(t)}))}},I=function(t){y.call(c,(function(){var n,e,r,i=t._v,o=j(t);if(o&&(n=S((function(){A?x.emit("unhandledRejection",i,t):(e=c.onunhandledrejection)?e({promise:t,reason:i}):(r=c.console)&&r.error&&r.error("Unhandled promise rejection",i)})),t._h=A||j(t)?2:1),t._a=void 0,o&&n.e)throw n.v}))},j=function(t){return 1!==t._h&&0===(t._a||t._c).length},L=function(t){y.call(c,(function(){var n;A?x.emit("rejectionHandled",t):(n=c.onrejectionhandled)&&n({promise:t,reason:t._v})}))},B=function(t){var n=this;n._d||(n._d=!0,(n=n._w||n)._v=t,n._s=2,n._a||(n._a=n._c.slice()),T(n,!0))},C=function(t){var n,e=this;if(!e._d){e._d=!0,e=e._w||e;try{if(e===t)throw M("Promise can't be resolved itself");(n=k(t))?m((function(){var r={_w:e,_d:!1};try{n.call(t,s(C,r,1),s(B,r,1))}catch(t){B.call(r,t)}})):(e._v=t,e._s=1,T(e,!1))}catch(t){B.call({_w:e,_d:!1},t)}}};R||(F=function(t){p(this,F,"Promise","_h"),d(t),r.call(this);try{t(s(C,this,1),s(B,this,1))}catch(t){B.call(this,t)}},(r=function(t){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=e(45)(F.prototype,{then:function(t,n){var e=N(g(this,F));return e.ok="function"!=typeof t||t,e.fail="function"==typeof n&&n,e.domain=A?x.domain:void 0,this._c.push(e),this._a&&this._a.push(e),this._s&&T(this,!1),e.promise},catch:function(t){return this.then(void 0,t)}}),o=function(){var t=new r;this.promise=t,this.resolve=s(C,t,1),this.reject=s(B,t,1)},b.f=N=function(t){return t===F||t===u?new o(t):i(t)}),l(l.G+l.W+l.F*!R,{Promise:F}),e(40)(F,"Promise"),e(43)("Promise"),u=e(7).Promise,l(l.S+l.F*!R,"Promise",{reject:function(t){var n=N(this);return(0,n.reject)(t),n.promise}}),l(l.S+l.F*(a||!R),"Promise",{resolve:function(t){return _(a&&this===u?F:this,t)}}),l(l.S+l.F*!(R&&e(54)((function(t){F.all(t).catch(E)}))),"Promise",{all:function(t){var n=this,e=N(n),r=e.resolve,i=e.reject,o=S((function(){var e=[],o=0,u=1;v(t,!1,(function(t){var a=o++,c=!1;e.push(void 0),u++,n.resolve(t).then((function(t){c||(c=!0,e[a]=t,--u||r(e))}),i)})),--u||r(e)}));return o.e&&i(o.v),e.promise},race:function(t){var n=this,e=N(n),r=e.reject,i=S((function(){v(t,!1,(function(t){n.resolve(t).then(e.resolve,r)}))}));return i.e&&r(i.v),e.promise}})},function(t,n,e){"use strict";var r=e(20);function i(t){var n,e;this.promise=new t((function(t,r){if(void 0!==n||void 0!==e)throw TypeError("Bad Promise constructor");n=t,e=r})),this.resolve=r(n),this.reject=r(e)}t.exports.f=function(t){return new i(t)}},function(t,n,e){var r=e(3),i=e(4),o=e(119);t.exports=function(t,n){if(r(t),i(n)&&n.constructor===t)return n;var e=o.f(t);return(0,e.resolve)(n),e.promise}},function(t,n,e){"use strict";var r=e(9).f,i=e(35),o=e(45),u=e(19),a=e(44),c=e(58),s=e(74),f=e(115),l=e(43),h=e(8),d=e(29).fastKey,p=e(39),v=h?"_s":"size",g=function(t,n){var e,r=d(n);if("F"!==r)return t._i[r];for(e=t._f;e;e=e.n)if(e.k==n)return e};t.exports={getConstructor:function(t,n,e,s){var f=t((function(t,r){a(t,f,n,"_i"),t._t=n,t._i=i(null),t._f=void 0,t._l=void 0,t[v]=0,null!=r&&c(r,e,t[s],t)}));return o(f.prototype,{clear:function(){for(var t=p(this,n),e=t._i,r=t._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete e[r.i];t._f=t._l=void 0,t[v]=0},delete:function(t){var e=p(this,n),r=g(e,t);if(r){var i=r.n,o=r.p;delete e._i[r.i],r.r=!0,o&&(o.n=i),i&&(i.p=o),e._f==r&&(e._f=i),e._l==r&&(e._l=o),e[v]--}return!!r},forEach:function(t){p(this,n);for(var e,r=u(t,arguments.length>1?arguments[1]:void 0,3);e=e?e.n:this._f;)for(r(e.v,e.k,this);e&&e.r;)e=e.p},has:function(t){return!!g(p(this,n),t)}}),h&&r(f.prototype,"size",{get:function(){return p(this,n)[v]}}),f},def:function(t,n,e){var r,i,o=g(t,n);return o?o.v=e:(t._l=o={i:i=d(n,!0),k:n,v:e,p:r=t._l,n:void 0,r:!1},t._f||(t._f=o),r&&(r.n=o),t[v]++,"F"!==i&&(t._i[i]=o)),t},getEntry:g,setStrong:function(t,n,e){s(t,n,(function(t,e){this._t=p(t,n),this._k=e,this._l=void 0}),(function(){for(var t=this._k,n=this._l;n&&n.r;)n=n.p;return this._t&&(this._l=n=n?n.n:this._t._f)?f(0,"keys"==t?n.k:"values"==t?n.v:[n.k,n.v]):(this._t=void 0,f(1))}),e?"entries":"values",!e,!0),l(n)}}},function(t,n,e){"use strict";var r=e(45),i=e(29).getWeak,o=e(3),u=e(4),a=e(44),c=e(58),s=e(24),f=e(13),l=e(39),h=s(5),d=s(6),p=0,v=function(t){return t._l||(t._l=new g)},g=function(){this.a=[]},y=function(t,n){return h(t.a,(function(t){return t[0]===n}))};g.prototype={get:function(t){var n=y(this,t);if(n)return n[1]},has:function(t){return!!y(this,t)},set:function(t,n){var e=y(this,t);e?e[1]=n:this.a.push([t,n])},delete:function(t){var n=d(this.a,(function(n){return n[0]===t}));return~n&&this.a.splice(n,1),!!~n}},t.exports={getConstructor:function(t,n,e,o){var s=t((function(t,r){a(t,s,n,"_i"),t._t=n,t._i=p++,t._l=void 0,null!=r&&c(r,e,t[o],t)}));return r(s.prototype,{delete:function(t){if(!u(t))return!1;var e=i(t);return!0===e?v(l(this,n)).delete(t):e&&f(e,this._i)&&delete e[this._i]},has:function(t){if(!u(t))return!1;var e=i(t);return!0===e?v(l(this,n)).has(t):e&&f(e,this._i)}}),s},def:function(t,n,e){var r=i(o(n),!0);return!0===r?v(t).set(n,e):r[t._i]=e,t},ufstore:v}},function(t,n,e){var r=e(21),i=e(6);t.exports=function(t){if(void 0===t)return 0;var n=r(t),e=i(n);if(n!==e)throw RangeError("Wrong length!");return e}},function(t,n,e){var r=e(36),i=e(52),o=e(3),u=e(1).Reflect;t.exports=u&&u.ownKeys||function(t){var n=r.f(o(t)),e=i.f;return e?n.concat(e(t)):n}},function(t,n,e){var r=e(6),i=e(70),o=e(26);t.exports=function(t,n,e,u){var a=String(o(t)),c=a.length,s=void 0===e?" ":String(e),f=r(n);if(f<=c||""==s)return a;var l=f-c,h=i.call(s,Math.ceil(l/s.length));return h.length>l&&(h=h.slice(0,l)),u?h+a:a+h}},function(t,n,e){var r=e(8),i=e(33),o=e(15),u=e(47).f;t.exports=function(t){return function(n){for(var e,a=o(n),c=i(a),s=c.length,f=0,l=[];s>f;)e=c[f++],r&&!u.call(a,e)||l.push(t?[e,a[e]]:a[e]);return l}}},function(t,n){var e=t.exports={version:"2.6.9"};"number"==typeof __e&&(__e=e)},function(t,n){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,n,e){e(130),t.exports=e(90)},function(t,n,e){"use strict";e(131);var r,i=(r=e(303))&&r.__esModule?r:{default:r};i.default._babelPolyfill&&"undefined"!=typeof console&&console.warn&&console.warn("@babel/polyfill is loaded more than once on this page. This is probably not desirable/intended and may have consequences if different versions of the polyfills are applied sequentially. If you do need to load the polyfill more than once, use @babel/polyfill/noConflict instead to bypass the warning."),i.default._babelPolyfill=!0},function(t,n,e){"use strict";e(132),e(275),e(277),e(280),e(282),e(284),e(286),e(288),e(290),e(292),e(294),e(296),e(298),e(302)},function(t,n,e){e(133),e(136),e(137),e(138),e(139),e(140),e(141),e(142),e(143),e(144),e(145),e(146),e(147),e(148),e(149),e(150),e(151),e(152),e(153),e(154),e(155),e(156),e(157),e(158),e(159),e(160),e(161),e(162),e(163),e(164),e(165),e(166),e(167),e(168),e(169),e(170),e(171),e(172),e(173),e(174),e(175),e(176),e(177),e(179),e(180),e(181),e(182),e(183),e(184),e(185),e(186),e(187),e(188),e(189),e(190),e(191),e(192),e(193),e(194),e(195),e(196),e(197),e(198),e(199),e(200),e(201),e(202),e(203),e(204),e(205),e(206),e(207),e(208),e(209),e(210),e(211),e(212),e(214),e(215),e(217),e(218),e(219),e(220),e(221),e(222),e(223),e(225),e(226),e(227),e(228),e(229),e(230),e(231),e(232),e(233),e(234),e(235),e(236),e(237),e(82),e(238),e(116),e(239),e(117),e(240),e(241),e(242),e(243),e(118),e(246),e(247),e(248),e(249),e(250),e(251),e(252),e(253),e(254),e(255),e(256),e(257),e(258),e(259),e(260),e(261),e(262),e(263),e(264),e(265),e(266),e(267),e(268),e(269),e(270),e(271),e(272),e(273),e(274),t.exports=e(7)},function(t,n,e){"use strict";var r=e(1),i=e(13),o=e(8),u=e(0),a=e(11),c=e(29).KEY,s=e(2),f=e(50),l=e(40),h=e(31),d=e(5),p=e(63),v=e(97),g=e(135),y=e(53),m=e(3),b=e(4),S=e(10),w=e(15),_=e(28),M=e(30),x=e(35),P=e(100),O=e(22),F=e(52),A=e(9),E=e(33),N=O.f,R=A.f,k=P.f,T=r.Symbol,I=r.JSON,j=I&&I.stringify,L=d("_hidden"),B=d("toPrimitive"),C={}.propertyIsEnumerable,W=f("symbol-registry"),V=f("symbols"),G=f("op-symbols"),D=Object.prototype,U="function"==typeof T&&!!F.f,z=r.QObject,q=!z||!z.prototype||!z.prototype.findChild,K=o&&s((function(){return 7!=x(R({},"a",{get:function(){return R(this,"a",{value:7}).a}})).a}))?function(t,n,e){var r=N(D,n);r&&delete D[n],R(t,n,e),r&&t!==D&&R(D,n,r)}:R,Y=function(t){var n=V[t]=x(T.prototype);return n._k=t,n},Q=U&&"symbol"==typeof T.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof T},H=function(t,n,e){return t===D&&H(G,n,e),m(t),n=_(n,!0),m(e),i(V,n)?(e.enumerable?(i(t,L)&&t[L][n]&&(t[L][n]=!1),e=x(e,{enumerable:M(0,!1)})):(i(t,L)||R(t,L,M(1,{})),t[L][n]=!0),K(t,n,e)):R(t,n,e)},J=function(t,n){m(t);for(var e,r=g(n=w(n)),i=0,o=r.length;o>i;)H(t,e=r[i++],n[e]);return t},X=function(t){var n=C.call(this,t=_(t,!0));return!(this===D&&i(V,t)&&!i(G,t))&&(!(n||!i(this,t)||!i(V,t)||i(this,L)&&this[L][t])||n)},Z=function(t,n){if(t=w(t),n=_(n,!0),t!==D||!i(V,n)||i(G,n)){var e=N(t,n);return!e||!i(V,n)||i(t,L)&&t[L][n]||(e.enumerable=!0),e}},$=function(t){for(var n,e=k(w(t)),r=[],o=0;e.length>o;)i(V,n=e[o++])||n==L||n==c||r.push(n);return r},tt=function(t){for(var n,e=t===D,r=k(e?G:w(t)),o=[],u=0;r.length>u;)!i(V,n=r[u++])||e&&!i(D,n)||o.push(V[n]);return o};U||(a((T=function(){if(this instanceof T)throw TypeError("Symbol is not a constructor!");var t=h(arguments.length>0?arguments[0]:void 0),n=function(e){this===D&&n.call(G,e),i(this,L)&&i(this[L],t)&&(this[L][t]=!1),K(this,t,M(1,e))};return o&&q&&K(D,t,{configurable:!0,set:n}),Y(t)}).prototype,"toString",(function(){return this._k})),O.f=Z,A.f=H,e(36).f=P.f=$,e(47).f=X,F.f=tt,o&&!e(32)&&a(D,"propertyIsEnumerable",X,!0),p.f=function(t){return Y(d(t))}),u(u.G+u.W+u.F*!U,{Symbol:T});for(var nt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;nt.length>et;)d(nt[et++]);for(var rt=E(d.store),it=0;rt.length>it;)v(rt[it++]);u(u.S+u.F*!U,"Symbol",{for:function(t){return i(W,t+="")?W[t]:W[t]=T(t)},keyFor:function(t){if(!Q(t))throw TypeError(t+" is not a symbol!");for(var n in W)if(W[n]===t)return n},useSetter:function(){q=!0},useSimple:function(){q=!1}}),u(u.S+u.F*!U,"Object",{create:function(t,n){return void 0===n?x(t):J(x(t),n)},defineProperty:H,defineProperties:J,getOwnPropertyDescriptor:Z,getOwnPropertyNames:$,getOwnPropertySymbols:tt});var ot=s((function(){F.f(1)}));u(u.S+u.F*ot,"Object",{getOwnPropertySymbols:function(t){return F.f(S(t))}}),I&&u(u.S+u.F*(!U||s((function(){var t=T();return"[null]"!=j([t])||"{}"!=j({a:t})||"{}"!=j(Object(t))}))),"JSON",{stringify:function(t){for(var n,e,r=[t],i=1;arguments.length>i;)r.push(arguments[i++]);if(e=n=r[1],(b(n)||void 0!==t)&&!Q(t))return y(n)||(n=function(t,n){if("function"==typeof e&&(n=e.call(this,t,n)),!Q(n))return n}),r[1]=n,j.apply(I,r)}}),T.prototype[B]||e(14)(T.prototype,B,T.prototype.valueOf),l(T,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,n,e){t.exports=e(50)("native-function-to-string",Function.toString)},function(t,n,e){var r=e(33),i=e(52),o=e(47);t.exports=function(t){var n=r(t),e=i.f;if(e)for(var u,a=e(t),c=o.f,s=0;a.length>s;)c.call(t,u=a[s++])&&n.push(u);return n}},function(t,n,e){var r=e(0);r(r.S,"Object",{create:e(35)})},function(t,n,e){var r=e(0);r(r.S+r.F*!e(8),"Object",{defineProperty:e(9).f})},function(t,n,e){var r=e(0);r(r.S+r.F*!e(8),"Object",{defineProperties:e(99)})},function(t,n,e){var r=e(15),i=e(22).f;e(23)("getOwnPropertyDescriptor",(function(){return function(t,n){return i(r(t),n)}}))},function(t,n,e){var r=e(10),i=e(37);e(23)("getPrototypeOf",(function(){return function(t){return i(r(t))}}))},function(t,n,e){var r=e(10),i=e(33);e(23)("keys",(function(){return function(t){return i(r(t))}}))},function(t,n,e){e(23)("getOwnPropertyNames",(function(){return e(100).f}))},function(t,n,e){var r=e(4),i=e(29).onFreeze;e(23)("freeze",(function(t){return function(n){return t&&r(n)?t(i(n)):n}}))},function(t,n,e){var r=e(4),i=e(29).onFreeze;e(23)("seal",(function(t){return function(n){return t&&r(n)?t(i(n)):n}}))},function(t,n,e){var r=e(4),i=e(29).onFreeze;e(23)("preventExtensions",(function(t){return function(n){return t&&r(n)?t(i(n)):n}}))},function(t,n,e){var r=e(4);e(23)("isFrozen",(function(t){return function(n){return!r(n)||!!t&&t(n)}}))},function(t,n,e){var r=e(4);e(23)("isSealed",(function(t){return function(n){return!r(n)||!!t&&t(n)}}))},function(t,n,e){var r=e(4);e(23)("isExtensible",(function(t){return function(n){return!!r(n)&&(!t||t(n))}}))},function(t,n,e){var r=e(0);r(r.S+r.F,"Object",{assign:e(101)})},function(t,n,e){var r=e(0);r(r.S,"Object",{is:e(102)})},function(t,n,e){var r=e(0);r(r.S,"Object",{setPrototypeOf:e(67).set})},function(t,n,e){"use strict";var r=e(48),i={};i[e(5)("toStringTag")]="z",i+""!="[object z]"&&e(11)(Object.prototype,"toString",(function(){return"[object "+r(this)+"]"}),!0)},function(t,n,e){var r=e(0);r(r.P,"Function",{bind:e(103)})},function(t,n,e){var r=e(9).f,i=Function.prototype,o=/^\s*function ([^ (]*)/;"name"in i||e(8)&&r(i,"name",{configurable:!0,get:function(){try{return(""+this).match(o)[1]}catch(t){return""}}})},function(t,n,e){"use strict";var r=e(4),i=e(37),o=e(5)("hasInstance"),u=Function.prototype;o in u||e(9).f(u,o,{value:function(t){if("function"!=typeof this||!r(t))return!1;if(!r(this.prototype))return t instanceof this;for(;t=i(t);)if(this.prototype===t)return!0;return!1}})},function(t,n,e){var r=e(0),i=e(105);r(r.G+r.F*(parseInt!=i),{parseInt:i})},function(t,n,e){var r=e(0),i=e(106);r(r.G+r.F*(parseFloat!=i),{parseFloat:i})},function(t,n,e){"use strict";var r=e(1),i=e(13),o=e(25),u=e(69),a=e(28),c=e(2),s=e(36).f,f=e(22).f,l=e(9).f,h=e(41).trim,d=r.Number,p=d,v=d.prototype,g="Number"==o(e(35)(v)),y="trim"in String.prototype,m=function(t){var n=a(t,!1);if("string"==typeof n&&n.length>2){var e,r,i,o=(n=y?n.trim():h(n,3)).charCodeAt(0);if(43===o||45===o){if(88===(e=n.charCodeAt(2))||120===e)return NaN}else if(48===o){switch(n.charCodeAt(1)){case 66:case 98:r=2,i=49;break;case 79:case 111:r=8,i=55;break;default:return+n}for(var u,c=n.slice(2),s=0,f=c.length;si)return NaN;return parseInt(c,r)}}return+n};if(!d(" 0o1")||!d("0b1")||d("+0x1")){d=function(t){var n=arguments.length<1?0:t,e=this;return e instanceof d&&(g?c((function(){v.valueOf.call(e)})):"Number"!=o(e))?u(new p(m(n)),e,d):m(n)};for(var b,S=e(8)?s(p):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),w=0;S.length>w;w++)i(p,b=S[w])&&!i(d,b)&&l(d,b,f(p,b));d.prototype=v,v.constructor=d,e(11)(r,"Number",d)}},function(t,n,e){"use strict";var r=e(0),i=e(21),o=e(107),u=e(70),a=1..toFixed,c=Math.floor,s=[0,0,0,0,0,0],f="Number.toFixed: incorrect invocation!",l=function(t,n){for(var e=-1,r=n;++e<6;)r+=t*s[e],s[e]=r%1e7,r=c(r/1e7)},h=function(t){for(var n=6,e=0;--n>=0;)e+=s[n],s[n]=c(e/t),e=e%t*1e7},d=function(){for(var t=6,n="";--t>=0;)if(""!==n||0===t||0!==s[t]){var e=String(s[t]);n=""===n?e:n+u.call("0",7-e.length)+e}return n},p=function(t,n,e){return 0===n?e:n%2==1?p(t,n-1,e*t):p(t*t,n/2,e)};r(r.P+r.F*(!!a&&("0.000"!==8e-5.toFixed(3)||"1"!==.9.toFixed(0)||"1.25"!==1.255.toFixed(2)||"1000000000000000128"!==(0xde0b6b3a7640080).toFixed(0))||!e(2)((function(){a.call({})}))),"Number",{toFixed:function(t){var n,e,r,a,c=o(this,f),s=i(t),v="",g="0";if(s<0||s>20)throw RangeError(f);if(c!=c)return"NaN";if(c<=-1e21||c>=1e21)return String(c);if(c<0&&(v="-",c=-c),c>1e-21)if(e=(n=function(t){for(var n=0,e=t;e>=4096;)n+=12,e/=4096;for(;e>=2;)n+=1,e/=2;return n}(c*p(2,69,1))-69)<0?c*p(2,-n,1):c/p(2,n,1),e*=4503599627370496,(n=52-n)>0){for(l(0,e),r=s;r>=7;)l(1e7,0),r-=7;for(l(p(10,r,1),0),r=n-1;r>=23;)h(1<<23),r-=23;h(1<0?v+((a=g.length)<=s?"0."+u.call("0",s-a)+g:g.slice(0,a-s)+"."+g.slice(a-s)):v+g}})},function(t,n,e){"use strict";var r=e(0),i=e(2),o=e(107),u=1..toPrecision;r(r.P+r.F*(i((function(){return"1"!==u.call(1,void 0)}))||!i((function(){u.call({})}))),"Number",{toPrecision:function(t){var n=o(this,"Number#toPrecision: incorrect invocation!");return void 0===t?u.call(n):u.call(n,t)}})},function(t,n,e){var r=e(0);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(t,n,e){var r=e(0),i=e(1).isFinite;r(r.S,"Number",{isFinite:function(t){return"number"==typeof t&&i(t)}})},function(t,n,e){var r=e(0);r(r.S,"Number",{isInteger:e(108)})},function(t,n,e){var r=e(0);r(r.S,"Number",{isNaN:function(t){return t!=t}})},function(t,n,e){var r=e(0),i=e(108),o=Math.abs;r(r.S,"Number",{isSafeInteger:function(t){return i(t)&&o(t)<=9007199254740991}})},function(t,n,e){var r=e(0);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(t,n,e){var r=e(0);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(t,n,e){var r=e(0),i=e(106);r(r.S+r.F*(Number.parseFloat!=i),"Number",{parseFloat:i})},function(t,n,e){var r=e(0),i=e(105);r(r.S+r.F*(Number.parseInt!=i),"Number",{parseInt:i})},function(t,n,e){var r=e(0),i=e(109),o=Math.sqrt,u=Math.acosh;r(r.S+r.F*!(u&&710==Math.floor(u(Number.MAX_VALUE))&&u(1/0)==1/0),"Math",{acosh:function(t){return(t=+t)<1?NaN:t>94906265.62425156?Math.log(t)+Math.LN2:i(t-1+o(t-1)*o(t+1))}})},function(t,n,e){var r=e(0),i=Math.asinh;r(r.S+r.F*!(i&&1/i(0)>0),"Math",{asinh:function t(n){return isFinite(n=+n)&&0!=n?n<0?-t(-n):Math.log(n+Math.sqrt(n*n+1)):n}})},function(t,n,e){var r=e(0),i=Math.atanh;r(r.S+r.F*!(i&&1/i(-0)<0),"Math",{atanh:function(t){return 0==(t=+t)?t:Math.log((1+t)/(1-t))/2}})},function(t,n,e){var r=e(0),i=e(71);r(r.S,"Math",{cbrt:function(t){return i(t=+t)*Math.pow(Math.abs(t),1/3)}})},function(t,n,e){var r=e(0);r(r.S,"Math",{clz32:function(t){return(t>>>=0)?31-Math.floor(Math.log(t+.5)*Math.LOG2E):32}})},function(t,n,e){var r=e(0),i=Math.exp;r(r.S,"Math",{cosh:function(t){return(i(t=+t)+i(-t))/2}})},function(t,n,e){var r=e(0),i=e(72);r(r.S+r.F*(i!=Math.expm1),"Math",{expm1:i})},function(t,n,e){var r=e(0);r(r.S,"Math",{fround:e(178)})},function(t,n,e){var r=e(71),i=Math.pow,o=i(2,-52),u=i(2,-23),a=i(2,127)*(2-u),c=i(2,-126);t.exports=Math.fround||function(t){var n,e,i=Math.abs(t),s=r(t);return ia||e!=e?s*(1/0):s*e}},function(t,n,e){var r=e(0),i=Math.abs;r(r.S,"Math",{hypot:function(t,n){for(var e,r,o=0,u=0,a=arguments.length,c=0;u0?(r=e/c)*r:e;return c===1/0?1/0:c*Math.sqrt(o)}})},function(t,n,e){var r=e(0),i=Math.imul;r(r.S+r.F*e(2)((function(){return-5!=i(4294967295,5)||2!=i.length})),"Math",{imul:function(t,n){var e=+t,r=+n,i=65535&e,o=65535&r;return 0|i*o+((65535&e>>>16)*o+i*(65535&r>>>16)<<16>>>0)}})},function(t,n,e){var r=e(0);r(r.S,"Math",{log10:function(t){return Math.log(t)*Math.LOG10E}})},function(t,n,e){var r=e(0);r(r.S,"Math",{log1p:e(109)})},function(t,n,e){var r=e(0);r(r.S,"Math",{log2:function(t){return Math.log(t)/Math.LN2}})},function(t,n,e){var r=e(0);r(r.S,"Math",{sign:e(71)})},function(t,n,e){var r=e(0),i=e(72),o=Math.exp;r(r.S+r.F*e(2)((function(){return-2e-17!=!Math.sinh(-2e-17)})),"Math",{sinh:function(t){return Math.abs(t=+t)<1?(i(t)-i(-t))/2:(o(t-1)-o(-t-1))*(Math.E/2)}})},function(t,n,e){var r=e(0),i=e(72),o=Math.exp;r(r.S,"Math",{tanh:function(t){var n=i(t=+t),e=i(-t);return n==1/0?1:e==1/0?-1:(n-e)/(o(t)+o(-t))}})},function(t,n,e){var r=e(0);r(r.S,"Math",{trunc:function(t){return(t>0?Math.floor:Math.ceil)(t)}})},function(t,n,e){var r=e(0),i=e(34),o=String.fromCharCode,u=String.fromCodePoint;r(r.S+r.F*(!!u&&1!=u.length),"String",{fromCodePoint:function(t){for(var n,e=[],r=arguments.length,u=0;r>u;){if(n=+arguments[u++],i(n,1114111)!==n)throw RangeError(n+" is not a valid code point");e.push(n<65536?o(n):o(55296+((n-=65536)>>10),n%1024+56320))}return e.join("")}})},function(t,n,e){var r=e(0),i=e(15),o=e(6);r(r.S,"String",{raw:function(t){for(var n=i(t.raw),e=o(n.length),r=arguments.length,u=[],a=0;e>a;)u.push(String(n[a++])),a=n.length?{value:void 0,done:!0}:(t=r(n,e),this._i+=t.length,{value:t,done:!1})}))},function(t,n,e){"use strict";var r=e(0),i=e(73)(!1);r(r.P,"String",{codePointAt:function(t){return i(this,t)}})},function(t,n,e){"use strict";var r=e(0),i=e(6),o=e(75),u="".endsWith;r(r.P+r.F*e(77)("endsWith"),"String",{endsWith:function(t){var n=o(this,t,"endsWith"),e=arguments.length>1?arguments[1]:void 0,r=i(n.length),a=void 0===e?r:Math.min(i(e),r),c=String(t);return u?u.call(n,c,a):n.slice(a-c.length,a)===c}})},function(t,n,e){"use strict";var r=e(0),i=e(75);r(r.P+r.F*e(77)("includes"),"String",{includes:function(t){return!!~i(this,t,"includes").indexOf(t,arguments.length>1?arguments[1]:void 0)}})},function(t,n,e){var r=e(0);r(r.P,"String",{repeat:e(70)})},function(t,n,e){"use strict";var r=e(0),i=e(6),o=e(75),u="".startsWith;r(r.P+r.F*e(77)("startsWith"),"String",{startsWith:function(t){var n=o(this,t,"startsWith"),e=i(Math.min(arguments.length>1?arguments[1]:void 0,n.length)),r=String(t);return u?u.call(n,r,e):n.slice(e,e+r.length)===r}})},function(t,n,e){"use strict";e(12)("anchor",(function(t){return function(n){return t(this,"a","name",n)}}))},function(t,n,e){"use strict";e(12)("big",(function(t){return function(){return t(this,"big","","")}}))},function(t,n,e){"use strict";e(12)("blink",(function(t){return function(){return t(this,"blink","","")}}))},function(t,n,e){"use strict";e(12)("bold",(function(t){return function(){return t(this,"b","","")}}))},function(t,n,e){"use strict";e(12)("fixed",(function(t){return function(){return t(this,"tt","","")}}))},function(t,n,e){"use strict";e(12)("fontcolor",(function(t){return function(n){return t(this,"font","color",n)}}))},function(t,n,e){"use strict";e(12)("fontsize",(function(t){return function(n){return t(this,"font","size",n)}}))},function(t,n,e){"use strict";e(12)("italics",(function(t){return function(){return t(this,"i","","")}}))},function(t,n,e){"use strict";e(12)("link",(function(t){return function(n){return t(this,"a","href",n)}}))},function(t,n,e){"use strict";e(12)("small",(function(t){return function(){return t(this,"small","","")}}))},function(t,n,e){"use strict";e(12)("strike",(function(t){return function(){return t(this,"strike","","")}}))},function(t,n,e){"use strict";e(12)("sub",(function(t){return function(){return t(this,"sub","","")}}))},function(t,n,e){"use strict";e(12)("sup",(function(t){return function(){return t(this,"sup","","")}}))},function(t,n,e){var r=e(0);r(r.S,"Date",{now:function(){return(new Date).getTime()}})},function(t,n,e){"use strict";var r=e(0),i=e(10),o=e(28);r(r.P+r.F*e(2)((function(){return null!==new Date(NaN).toJSON()||1!==Date.prototype.toJSON.call({toISOString:function(){return 1}})})),"Date",{toJSON:function(t){var n=i(this),e=o(n);return"number"!=typeof e||isFinite(e)?n.toISOString():null}})},function(t,n,e){var r=e(0),i=e(213);r(r.P+r.F*(Date.prototype.toISOString!==i),"Date",{toISOString:i})},function(t,n,e){"use strict";var r=e(2),i=Date.prototype.getTime,o=Date.prototype.toISOString,u=function(t){return t>9?t:"0"+t};t.exports=r((function(){return"0385-07-25T07:06:39.999Z"!=o.call(new Date(-5e13-1))}))||!r((function(){o.call(new Date(NaN))}))?function(){if(!isFinite(i.call(this)))throw RangeError("Invalid time value");var t=this,n=t.getUTCFullYear(),e=t.getUTCMilliseconds(),r=n<0?"-":n>9999?"+":"";return r+("00000"+Math.abs(n)).slice(r?-6:-4)+"-"+u(t.getUTCMonth()+1)+"-"+u(t.getUTCDate())+"T"+u(t.getUTCHours())+":"+u(t.getUTCMinutes())+":"+u(t.getUTCSeconds())+"."+(e>99?e:"0"+u(e))+"Z"}:o},function(t,n,e){var r=Date.prototype,i=r.toString,o=r.getTime;new Date(NaN)+""!="Invalid Date"&&e(11)(r,"toString",(function(){var t=o.call(this);return t==t?i.call(this):"Invalid Date"}))},function(t,n,e){var r=e(5)("toPrimitive"),i=Date.prototype;r in i||e(14)(i,r,e(216))},function(t,n,e){"use strict";var r=e(3),i=e(28);t.exports=function(t){if("string"!==t&&"number"!==t&&"default"!==t)throw TypeError("Incorrect hint");return i(r(this),"number"!=t)}},function(t,n,e){var r=e(0);r(r.S,"Array",{isArray:e(53)})},function(t,n,e){"use strict";var r=e(19),i=e(0),o=e(10),u=e(111),a=e(78),c=e(6),s=e(79),f=e(80);i(i.S+i.F*!e(54)((function(t){Array.from(t)})),"Array",{from:function(t){var n,e,i,l,h=o(t),d="function"==typeof this?this:Array,p=arguments.length,v=p>1?arguments[1]:void 0,g=void 0!==v,y=0,m=f(h);if(g&&(v=r(v,p>2?arguments[2]:void 0,2)),null==m||d==Array&&a(m))for(e=new d(n=c(h.length));n>y;y++)s(e,y,g?v(h[y],y):h[y]);else for(l=m.call(h),e=new d;!(i=l.next()).done;y++)s(e,y,g?u(l,v,[i.value,y],!0):i.value);return e.length=y,e}})},function(t,n,e){"use strict";var r=e(0),i=e(79);r(r.S+r.F*e(2)((function(){function t(){}return!(Array.of.call(t)instanceof t)})),"Array",{of:function(){for(var t=0,n=arguments.length,e=new("function"==typeof this?this:Array)(n);n>t;)i(e,t,arguments[t++]);return e.length=n,e}})},function(t,n,e){"use strict";var r=e(0),i=e(15),o=[].join;r(r.P+r.F*(e(46)!=Object||!e(16)(o)),"Array",{join:function(t){return o.call(i(this),void 0===t?",":t)}})},function(t,n,e){"use strict";var r=e(0),i=e(66),o=e(25),u=e(34),a=e(6),c=[].slice;r(r.P+r.F*e(2)((function(){i&&c.call(i)})),"Array",{slice:function(t,n){var e=a(this.length),r=o(this);if(n=void 0===n?e:n,"Array"==r)return c.call(this,t,n);for(var i=u(t,e),s=u(n,e),f=a(s-i),l=new Array(f),h=0;h1&&(r=Math.min(r,o(arguments[1]))),r<0&&(r=e+r);r>=0;r--)if(r in n&&n[r]===t)return r||0;return-1}})},function(t,n,e){var r=e(0);r(r.P,"Array",{copyWithin:e(114)}),e(38)("copyWithin")},function(t,n,e){var r=e(0);r(r.P,"Array",{fill:e(81)}),e(38)("fill")},function(t,n,e){"use strict";var r=e(0),i=e(24)(5),o=!0;"find"in[]&&Array(1).find((function(){o=!1})),r(r.P+r.F*o,"Array",{find:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),e(38)("find")},function(t,n,e){"use strict";var r=e(0),i=e(24)(6),o="findIndex",u=!0;o in[]&&Array(1)[o]((function(){u=!1})),r(r.P+r.F*u,"Array",{findIndex:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),e(38)(o)},function(t,n,e){e(43)("Array")},function(t,n,e){var r=e(1),i=e(69),o=e(9).f,u=e(36).f,a=e(76),c=e(55),s=r.RegExp,f=s,l=s.prototype,h=/a/g,d=/a/g,p=new s(h)!==h;if(e(8)&&(!p||e(2)((function(){return d[e(5)("match")]=!1,s(h)!=h||s(d)==d||"/a/i"!=s(h,"i")})))){s=function(t,n){var e=this instanceof s,r=a(t),o=void 0===n;return!e&&r&&t.constructor===s&&o?t:i(p?new f(r&&!o?t.source:t,n):f((r=t instanceof s)?t.source:t,r&&o?c.call(t):n),e?this:l,s)};for(var v=function(t){t in s||o(s,t,{configurable:!0,get:function(){return f[t]},set:function(n){f[t]=n}})},g=u(f),y=0;g.length>y;)v(g[y++]);l.constructor=s,s.prototype=l,e(11)(r,"RegExp",s)}e(43)("RegExp")},function(t,n,e){"use strict";e(117);var r=e(3),i=e(55),o=e(8),u=/./.toString,a=function(t){e(11)(RegExp.prototype,"toString",t,!0)};e(2)((function(){return"/a/b"!=u.call({source:"a",flags:"b"})}))?a((function(){var t=r(this);return"/".concat(t.source,"/","flags"in t?t.flags:!o&&t instanceof RegExp?i.call(t):void 0)})):"toString"!=u.name&&a((function(){return u.call(this)}))},function(t,n,e){"use strict";var r=e(3),i=e(6),o=e(84),u=e(56);e(57)("match",1,(function(t,n,e,a){return[function(e){var r=t(this),i=null==e?void 0:e[n];return void 0!==i?i.call(e,r):new RegExp(e)[n](String(r))},function(t){var n=a(e,t,this);if(n.done)return n.value;var c=r(t),s=String(this);if(!c.global)return u(c,s);var f=c.unicode;c.lastIndex=0;for(var l,h=[],d=0;null!==(l=u(c,s));){var p=String(l[0]);h[d]=p,""===p&&(c.lastIndex=o(s,i(c.lastIndex),f)),d++}return 0===d?null:h}]}))},function(t,n,e){"use strict";var r=e(3),i=e(10),o=e(6),u=e(21),a=e(84),c=e(56),s=Math.max,f=Math.min,l=Math.floor,h=/\$([$&`']|\d\d?|<[^>]*>)/g,d=/\$([$&`']|\d\d?)/g;e(57)("replace",2,(function(t,n,e,p){return[function(r,i){var o=t(this),u=null==r?void 0:r[n];return void 0!==u?u.call(r,o,i):e.call(String(o),r,i)},function(t,n){var i=p(e,t,this,n);if(i.done)return i.value;var l=r(t),h=String(this),d="function"==typeof n;d||(n=String(n));var g=l.global;if(g){var y=l.unicode;l.lastIndex=0}for(var m=[];;){var b=c(l,h);if(null===b)break;if(m.push(b),!g)break;""===String(b[0])&&(l.lastIndex=a(h,o(l.lastIndex),y))}for(var S,w="",_=0,M=0;M=_&&(w+=h.slice(_,P)+N,_=P+x.length)}return w+h.slice(_)}];function v(t,n,r,o,u,a){var c=r+t.length,s=o.length,f=d;return void 0!==u&&(u=i(u),f=h),e.call(a,f,(function(e,i){var a;switch(i.charAt(0)){case"$":return"$";case"&":return t;case"`":return n.slice(0,r);case"'":return n.slice(c);case"<":a=u[i.slice(1,-1)];break;default:var f=+i;if(0===f)return e;if(f>s){var h=l(f/10);return 0===h?e:h<=s?void 0===o[h-1]?i.charAt(1):o[h-1]+i.charAt(1):e}a=o[f-1]}return void 0===a?"":a}))}}))},function(t,n,e){"use strict";var r=e(3),i=e(102),o=e(56);e(57)("search",1,(function(t,n,e,u){return[function(e){var r=t(this),i=null==e?void 0:e[n];return void 0!==i?i.call(e,r):new RegExp(e)[n](String(r))},function(t){var n=u(e,t,this);if(n.done)return n.value;var a=r(t),c=String(this),s=a.lastIndex;i(s,0)||(a.lastIndex=0);var f=o(a,c);return i(a.lastIndex,s)||(a.lastIndex=s),null===f?-1:f.index}]}))},function(t,n,e){"use strict";var r=e(76),i=e(3),o=e(49),u=e(84),a=e(6),c=e(56),s=e(83),f=e(2),l=Math.min,h=[].push,d=!f((function(){RegExp(4294967295,"y")}));e(57)("split",2,(function(t,n,e,f){var p;return p="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(t,n){var i=String(this);if(void 0===t&&0===n)return[];if(!r(t))return e.call(i,t,n);for(var o,u,a,c=[],f=(t.ignoreCase?"i":"")+(t.multiline?"m":"")+(t.unicode?"u":"")+(t.sticky?"y":""),l=0,d=void 0===n?4294967295:n>>>0,p=new RegExp(t.source,f+"g");(o=s.call(p,i))&&!((u=p.lastIndex)>l&&(c.push(i.slice(l,o.index)),o.length>1&&o.index=d));)p.lastIndex===o.index&&p.lastIndex++;return l===i.length?!a&&p.test("")||c.push(""):c.push(i.slice(l)),c.length>d?c.slice(0,d):c}:"0".split(void 0,0).length?function(t,n){return void 0===t&&0===n?[]:e.call(this,t,n)}:e,[function(e,r){var i=t(this),o=null==e?void 0:e[n];return void 0!==o?o.call(e,i,r):p.call(String(i),e,r)},function(t,n){var r=f(p,t,this,n,p!==e);if(r.done)return r.value;var s=i(t),h=String(this),v=o(s,RegExp),g=s.unicode,y=(s.ignoreCase?"i":"")+(s.multiline?"m":"")+(s.unicode?"u":"")+(d?"y":"g"),m=new v(d?s:"^(?:"+s.source+")",y),b=void 0===n?4294967295:n>>>0;if(0===b)return[];if(0===h.length)return null===c(m,h)?[h]:[];for(var S=0,w=0,_=[];w0?arguments[0]:void 0)}}),{get:function(t){var n=r.getEntry(i(this,"Map"),t);return n&&n.v},set:function(t,n){return r.def(i(this,"Map"),0===t?0:t,n)}},r,!0)},function(t,n,e){"use strict";var r=e(121),i=e(39);t.exports=e(60)("Set",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return r.def(i(this,"Set"),t=0===t?0:t,t)}},r)},function(t,n,e){"use strict";var r,i=e(1),o=e(24)(0),u=e(11),a=e(29),c=e(101),s=e(122),f=e(4),l=e(39),h=e(39),d=!i.ActiveXObject&&"ActiveXObject"in i,p=a.getWeak,v=Object.isExtensible,g=s.ufstore,y=function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}},m={get:function(t){if(f(t)){var n=p(t);return!0===n?g(l(this,"WeakMap")).get(t):n?n[this._i]:void 0}},set:function(t,n){return s.def(l(this,"WeakMap"),t,n)}},b=t.exports=e(60)("WeakMap",y,m,s,!0,!0);h&&d&&(c((r=s.getConstructor(y,"WeakMap")).prototype,m),a.NEED=!0,o(["delete","has","get","set"],(function(t){var n=b.prototype,e=n[t];u(n,t,(function(n,i){if(f(n)&&!v(n)){this._f||(this._f=new r);var o=this._f[t](n,i);return"set"==t?this:o}return e.call(this,n,i)}))})))},function(t,n,e){"use strict";var r=e(122),i=e(39);e(60)("WeakSet",(function(t){return function(){return t(this,arguments.length>0?arguments[0]:void 0)}}),{add:function(t){return r.def(i(this,"WeakSet"),t,!0)}},r,!1,!0)},function(t,n,e){"use strict";var r=e(0),i=e(61),o=e(86),u=e(3),a=e(34),c=e(6),s=e(4),f=e(1).ArrayBuffer,l=e(49),h=o.ArrayBuffer,d=o.DataView,p=i.ABV&&f.isView,v=h.prototype.slice,g=i.VIEW;r(r.G+r.W+r.F*(f!==h),{ArrayBuffer:h}),r(r.S+r.F*!i.CONSTR,"ArrayBuffer",{isView:function(t){return p&&p(t)||s(t)&&g in t}}),r(r.P+r.U+r.F*e(2)((function(){return!new h(2).slice(1,void 0).byteLength})),"ArrayBuffer",{slice:function(t,n){if(void 0!==v&&void 0===n)return v.call(u(this),t);for(var e=u(this).byteLength,r=a(t,e),i=a(void 0===n?e:n,e),o=new(l(this,h))(c(i-r)),s=new d(this),f=new d(o),p=0;r=n.length)return{value:void 0,done:!0}}while(!((t=n[this._i++])in this._t));return{value:t,done:!1}})),r(r.S,"Reflect",{enumerate:function(t){return new o(t)}})},function(t,n,e){var r=e(22),i=e(37),o=e(13),u=e(0),a=e(4),c=e(3);u(u.S,"Reflect",{get:function t(n,e){var u,s,f=arguments.length<3?n:arguments[2];return c(n)===f?n[e]:(u=r.f(n,e))?o(u,"value")?u.value:void 0!==u.get?u.get.call(f):void 0:a(s=i(n))?t(s,e,f):void 0}})},function(t,n,e){var r=e(22),i=e(0),o=e(3);i(i.S,"Reflect",{getOwnPropertyDescriptor:function(t,n){return r.f(o(t),n)}})},function(t,n,e){var r=e(0),i=e(37),o=e(3);r(r.S,"Reflect",{getPrototypeOf:function(t){return i(o(t))}})},function(t,n,e){var r=e(0);r(r.S,"Reflect",{has:function(t,n){return n in t}})},function(t,n,e){var r=e(0),i=e(3),o=Object.isExtensible;r(r.S,"Reflect",{isExtensible:function(t){return i(t),!o||o(t)}})},function(t,n,e){var r=e(0);r(r.S,"Reflect",{ownKeys:e(124)})},function(t,n,e){var r=e(0),i=e(3),o=Object.preventExtensions;r(r.S,"Reflect",{preventExtensions:function(t){i(t);try{return o&&o(t),!0}catch(t){return!1}}})},function(t,n,e){var r=e(9),i=e(22),o=e(37),u=e(13),a=e(0),c=e(30),s=e(3),f=e(4);a(a.S,"Reflect",{set:function t(n,e,a){var l,h,d=arguments.length<4?n:arguments[3],p=i.f(s(n),e);if(!p){if(f(h=o(n)))return t(h,e,a,d);p=c(0)}if(u(p,"value")){if(!1===p.writable||!f(d))return!1;if(l=i.f(d,e)){if(l.get||l.set||!1===l.writable)return!1;l.value=a,r.f(d,e,l)}else r.f(d,e,c(0,a));return!0}return void 0!==p.set&&(p.set.call(d,a),!0)}})},function(t,n,e){var r=e(0),i=e(67);i&&r(r.S,"Reflect",{setPrototypeOf:function(t,n){i.check(t,n);try{return i.set(t,n),!0}catch(t){return!1}}})},function(t,n,e){e(276),t.exports=e(7).Array.includes},function(t,n,e){"use strict";var r=e(0),i=e(51)(!0);r(r.P,"Array",{includes:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0)}}),e(38)("includes")},function(t,n,e){e(278),t.exports=e(7).Array.flatMap},function(t,n,e){"use strict";var r=e(0),i=e(279),o=e(10),u=e(6),a=e(20),c=e(112);r(r.P,"Array",{flatMap:function(t){var n,e,r=o(this);return a(t),n=u(r.length),e=c(r,0),i(e,r,r,n,0,1,t,arguments[1]),e}}),e(38)("flatMap")},function(t,n,e){"use strict";var r=e(53),i=e(4),o=e(6),u=e(19),a=e(5)("isConcatSpreadable");t.exports=function t(n,e,c,s,f,l,h,d){for(var p,v,g=f,y=0,m=!!h&&u(h,d,3);y0)g=t(n,e,p,o(p.length),g,l-1)-1;else{if(g>=9007199254740991)throw TypeError();n[g]=p}g++}y++}return g}},function(t,n,e){e(281),t.exports=e(7).String.padStart},function(t,n,e){"use strict";var r=e(0),i=e(125),o=e(59),u=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);r(r.P+r.F*u,"String",{padStart:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!0)}})},function(t,n,e){e(283),t.exports=e(7).String.padEnd},function(t,n,e){"use strict";var r=e(0),i=e(125),o=e(59),u=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(o);r(r.P+r.F*u,"String",{padEnd:function(t){return i(this,t,arguments.length>1?arguments[1]:void 0,!1)}})},function(t,n,e){e(285),t.exports=e(7).String.trimLeft},function(t,n,e){"use strict";e(41)("trimLeft",(function(t){return function(){return t(this,1)}}),"trimStart")},function(t,n,e){e(287),t.exports=e(7).String.trimRight},function(t,n,e){"use strict";e(41)("trimRight",(function(t){return function(){return t(this,2)}}),"trimEnd")},function(t,n,e){e(289),t.exports=e(63).f("asyncIterator")},function(t,n,e){e(97)("asyncIterator")},function(t,n,e){e(291),t.exports=e(7).Object.getOwnPropertyDescriptors},function(t,n,e){var r=e(0),i=e(124),o=e(15),u=e(22),a=e(79);r(r.S,"Object",{getOwnPropertyDescriptors:function(t){for(var n,e,r=o(t),c=u.f,s=i(r),f={},l=0;s.length>l;)void 0!==(e=c(r,n=s[l++]))&&a(f,n,e);return f}})},function(t,n,e){e(293),t.exports=e(7).Object.values},function(t,n,e){var r=e(0),i=e(126)(!1);r(r.S,"Object",{values:function(t){return i(t)}})},function(t,n,e){e(295),t.exports=e(7).Object.entries},function(t,n,e){var r=e(0),i=e(126)(!0);r(r.S,"Object",{entries:function(t){return i(t)}})},function(t,n,e){"use strict";e(118),e(297),t.exports=e(7).Promise.finally},function(t,n,e){"use strict";var r=e(0),i=e(7),o=e(1),u=e(49),a=e(120);r(r.P+r.R,"Promise",{finally:function(t){var n=u(this,i.Promise||o.Promise),e="function"==typeof t;return this.then(e?function(e){return a(n,t()).then((function(){return e}))}:t,e?function(e){return a(n,t()).then((function(){throw e}))}:t)}})},function(t,n,e){e(299),e(300),e(301),t.exports=e(7)},function(t,n,e){var r=e(1),i=e(0),o=e(59),u=[].slice,a=/MSIE .\./.test(o),c=function(t){return function(n,e){var r=arguments.length>2,i=!!r&&u.call(arguments,2);return t(r?function(){("function"==typeof n?n:Function(n)).apply(this,i)}:n,e)}};i(i.G+i.B+i.F*a,{setTimeout:c(r.setTimeout),setInterval:c(r.setInterval)})},function(t,n,e){var r=e(0),i=e(85);r(r.G+r.B,{setImmediate:i.set,clearImmediate:i.clear})},function(t,n,e){for(var r=e(82),i=e(33),o=e(11),u=e(1),a=e(14),c=e(42),s=e(5),f=s("iterator"),l=s("toStringTag"),h=c.Array,d={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},p=i(d),v=0;v=0;--o){var u=this.tryEntries[o],a=u.completion;if("root"===u.tryLoc)return i("end");if(u.tryLoc<=this.prev){var c=r.call(u,"catchLoc"),s=r.call(u,"finallyLoc");if(c&&s){if(this.prev=0;--e){var i=this.tryEntries[e];if(i.tryLoc<=this.prev&&r.call(i,"finallyLoc")&&this.prev=0;--n){var e=this.tryEntries[n];if(e.finallyLoc===t)return this.complete(e.completion,e.afterLoc),O(e),p}},catch:function(t){for(var n=this.tryEntries.length-1;n>=0;--n){var e=this.tryEntries[n];if(e.tryLoc===t){var r=e.completion;if("throw"===r.type){var i=r.arg;O(e)}return i}}throw new Error("illegal catch attempt")},delegateYield:function(t,e,r){return this.delegate={iterator:A(t),resultName:e,nextLoc:r},"next"===this.method&&(this.arg=n),p}},t}(t.exports);try{regeneratorRuntime=r}catch(t){Function("r","regeneratorRuntime = r")(r)}},function(t,n,e){e(304),t.exports=e(127).global},function(t,n,e){var r=e(305);r(r.G,{global:e(87)})},function(t,n,e){var r=e(87),i=e(127),o=e(306),u=e(308),a=e(315),c=function(t,n,e){var s,f,l,h=t&c.F,d=t&c.G,p=t&c.S,v=t&c.P,g=t&c.B,y=t&c.W,m=d?i:i[n]||(i[n]={}),b=m.prototype,S=d?r:p?r[n]:(r[n]||{}).prototype;for(s in d&&(e=n),e)(f=!h&&S&&void 0!==S[s])&&a(m,s)||(l=f?S[s]:e[s],m[s]=d&&"function"!=typeof S[s]?e[s]:g&&f?o(l,r):y&&S[s]==l?function(t){var n=function(n,e,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(n);case 2:return new t(n,e)}return new t(n,e,r)}return t.apply(this,arguments)};return n.prototype=t.prototype,n}(l):v&&"function"==typeof l?o(Function.call,l):l,v&&((m.virtual||(m.virtual={}))[s]=l,t&c.R&&b&&!b[s]&&u(b,s,l)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,n,e){var r=e(307);t.exports=function(t,n,e){if(r(t),void 0===n)return t;switch(e){case 1:return function(e){return t.call(n,e)};case 2:return function(e,r){return t.call(n,e,r)};case 3:return function(e,r,i){return t.call(n,e,r,i)}}return function(){return t.apply(n,arguments)}}},function(t,n){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,n,e){var r=e(309),i=e(314);t.exports=e(89)?function(t,n,e){return r.f(t,n,i(1,e))}:function(t,n,e){return t[n]=e,t}},function(t,n,e){var r=e(310),i=e(311),o=e(313),u=Object.defineProperty;n.f=e(89)?Object.defineProperty:function(t,n,e){if(r(t),n=o(n,!0),r(e),i)try{return u(t,n,e)}catch(t){}if("get"in e||"set"in e)throw TypeError("Accessors not supported!");return"value"in e&&(t[n]=e.value),t}},function(t,n,e){var r=e(88);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,n,e){t.exports=!e(89)&&!e(128)((function(){return 7!=Object.defineProperty(e(312)("div"),"a",{get:function(){return 7}}).a}))},function(t,n,e){var r=e(88),i=e(87).document,o=r(i)&&r(i.createElement);t.exports=function(t){return o?i.createElement(t):{}}},function(t,n,e){var r=e(88);t.exports=function(t,n){if(!r(t))return t;var e,i;if(n&&"function"==typeof(e=t.toString)&&!r(i=e.call(t)))return i;if("function"==typeof(e=t.valueOf)&&!r(i=e.call(t)))return i;if(!n&&"function"==typeof(e=t.toString)&&!r(i=e.call(t)))return i;throw TypeError("Can't convert object to primitive value")}},function(t,n){t.exports=function(t,n){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:n}}},function(t,n){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}}])})); \ No newline at end of file diff --git a/node_modules/bowser/es5.js b/node_modules/bowser/es5.js deleted file mode 100644 index bb8ec3dd..00000000 --- a/node_modules/bowser/es5.js +++ /dev/null @@ -1 +0,0 @@ -!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.bowser=t():e.bowser=t()}(this,(function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var i=t[n]={i:n,l:!1,exports:{}};return e[n].call(i.exports,i,i.exports,r),i.l=!0,i.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:n})},r.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.t=function(e,t){if(1&t&&(e=r(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(r.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var i in e)r.d(n,i,function(t){return e[t]}.bind(null,i));return n},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=90)}({17:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n=r(18),i=function(){function e(){}return e.getFirstMatch=function(e,t){var r=t.match(e);return r&&r.length>0&&r[1]||""},e.getSecondMatch=function(e,t){var r=t.match(e);return r&&r.length>1&&r[2]||""},e.matchAndReturnConst=function(e,t,r){if(e.test(t))return r},e.getWindowsVersionName=function(e){switch(e){case"NT":return"NT";case"XP":return"XP";case"NT 5.0":return"2000";case"NT 5.1":return"XP";case"NT 5.2":return"2003";case"NT 6.0":return"Vista";case"NT 6.1":return"7";case"NT 6.2":return"8";case"NT 6.3":return"8.1";case"NT 10.0":return"10";default:return}},e.getMacOSVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),10===t[0])switch(t[1]){case 5:return"Leopard";case 6:return"Snow Leopard";case 7:return"Lion";case 8:return"Mountain Lion";case 9:return"Mavericks";case 10:return"Yosemite";case 11:return"El Capitan";case 12:return"Sierra";case 13:return"High Sierra";case 14:return"Mojave";case 15:return"Catalina";default:return}},e.getAndroidVersionName=function(e){var t=e.split(".").splice(0,2).map((function(e){return parseInt(e,10)||0}));if(t.push(0),!(1===t[0]&&t[1]<5))return 1===t[0]&&t[1]<6?"Cupcake":1===t[0]&&t[1]>=6?"Donut":2===t[0]&&t[1]<2?"Eclair":2===t[0]&&2===t[1]?"Froyo":2===t[0]&&t[1]>2?"Gingerbread":3===t[0]?"Honeycomb":4===t[0]&&t[1]<1?"Ice Cream Sandwich":4===t[0]&&t[1]<4?"Jelly Bean":4===t[0]&&t[1]>=4?"KitKat":5===t[0]?"Lollipop":6===t[0]?"Marshmallow":7===t[0]?"Nougat":8===t[0]?"Oreo":9===t[0]?"Pie":void 0},e.getVersionPrecision=function(e){return e.split(".").length},e.compareVersions=function(t,r,n){void 0===n&&(n=!1);var i=e.getVersionPrecision(t),s=e.getVersionPrecision(r),a=Math.max(i,s),o=0,u=e.map([t,r],(function(t){var r=a-e.getVersionPrecision(t),n=t+new Array(r+1).join(".0");return e.map(n.split("."),(function(e){return new Array(20-e.length).join("0")+e})).reverse()}));for(n&&(o=a-Math.min(i,s)),a-=1;a>=o;){if(u[0][a]>u[1][a])return 1;if(u[0][a]===u[1][a]){if(a===o)return 0;a-=1}else if(u[0][a]1?i-1:0),a=1;a0){var a=Object.keys(r),u=o.default.find(a,(function(e){return t.isOS(e)}));if(u){var d=this.satisfies(r[u]);if(void 0!==d)return d}var c=o.default.find(a,(function(e){return t.isPlatform(e)}));if(c){var f=this.satisfies(r[c]);if(void 0!==f)return f}}if(s>0){var l=Object.keys(i),h=o.default.find(l,(function(e){return t.isBrowser(e,!0)}));if(void 0!==h)return this.compareVersion(i[h])}},t.isBrowser=function(e,t){void 0===t&&(t=!1);var r=this.getBrowserName().toLowerCase(),n=e.toLowerCase(),i=o.default.getBrowserTypeByAlias(n);return t&&i&&(n=i.toLowerCase()),n===r},t.compareVersion=function(e){var t=[0],r=e,n=!1,i=this.getBrowserVersion();if("string"==typeof i)return">"===e[0]||"<"===e[0]?(r=e.substr(1),"="===e[1]?(n=!0,r=e.substr(2)):t=[],">"===e[0]?t.push(1):t.push(-1)):"="===e[0]?r=e.substr(1):"~"===e[0]&&(n=!0,r=e.substr(1)),t.indexOf(o.default.compareVersions(i,r,n))>-1},t.isOS=function(e){return this.getOSName(!0)===String(e).toLowerCase()},t.isPlatform=function(e){return this.getPlatformType(!0)===String(e).toLowerCase()},t.isEngine=function(e){return this.getEngineName(!0)===String(e).toLowerCase()},t.is=function(e,t){return void 0===t&&(t=!1),this.isBrowser(e,t)||this.isOS(e)||this.isPlatform(e)},t.some=function(e){var t=this;return void 0===e&&(e=[]),e.some((function(e){return t.is(e)}))},e}();t.default=d,e.exports=t.default},92:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n};var s=/version\/(\d+(\.?_?\d+)+)/i,a=[{test:[/googlebot/i],describe:function(e){var t={name:"Googlebot"},r=i.default.getFirstMatch(/googlebot\/(\d+(\.\d+))/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/opera/i],describe:function(e){var t={name:"Opera"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opr\/|opios/i],describe:function(e){var t={name:"Opera"},r=i.default.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/SamsungBrowser/i],describe:function(e){var t={name:"Samsung Internet for Android"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Whale/i],describe:function(e){var t={name:"NAVER Whale Browser"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MZBrowser/i],describe:function(e){var t={name:"MZ Browser"},r=i.default.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/focus/i],describe:function(e){var t={name:"Focus"},r=i.default.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/swing/i],describe:function(e){var t={name:"Swing"},r=i.default.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/coast/i],describe:function(e){var t={name:"Opera Coast"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/opt\/\d+(?:.?_?\d+)+/i],describe:function(e){var t={name:"Opera Touch"},r=i.default.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/yabrowser/i],describe:function(e){var t={name:"Yandex Browser"},r=i.default.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/ucbrowser/i],describe:function(e){var t={name:"UC Browser"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/Maxthon|mxios/i],describe:function(e){var t={name:"Maxthon"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/epiphany/i],describe:function(e){var t={name:"Epiphany"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/puffin/i],describe:function(e){var t={name:"Puffin"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sleipnir/i],describe:function(e){var t={name:"Sleipnir"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/k-meleon/i],describe:function(e){var t={name:"K-Meleon"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/micromessenger/i],describe:function(e){var t={name:"WeChat"},r=i.default.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/qqbrowser/i],describe:function(e){var t={name:/qqbrowserlite/i.test(e)?"QQ Browser Lite":"QQ Browser"},r=i.default.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/msie|trident/i],describe:function(e){var t={name:"Internet Explorer"},r=i.default.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/\sedg\//i],describe:function(e){var t={name:"Microsoft Edge"},r=i.default.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/edg([ea]|ios)/i],describe:function(e){var t={name:"Microsoft Edge"},r=i.default.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/vivaldi/i],describe:function(e){var t={name:"Vivaldi"},r=i.default.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/seamonkey/i],describe:function(e){var t={name:"SeaMonkey"},r=i.default.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/sailfish/i],describe:function(e){var t={name:"Sailfish"},r=i.default.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i,e);return r&&(t.version=r),t}},{test:[/silk/i],describe:function(e){var t={name:"Amazon Silk"},r=i.default.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/phantom/i],describe:function(e){var t={name:"PhantomJS"},r=i.default.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/slimerjs/i],describe:function(e){var t={name:"SlimerJS"},r=i.default.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t={name:"BlackBerry"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t={name:"WebOS Browser"},r=i.default.getFirstMatch(s,e)||i.default.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/bada/i],describe:function(e){var t={name:"Bada"},r=i.default.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/tizen/i],describe:function(e){var t={name:"Tizen"},r=i.default.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/qupzilla/i],describe:function(e){var t={name:"QupZilla"},r=i.default.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/firefox|iceweasel|fxios/i],describe:function(e){var t={name:"Firefox"},r=i.default.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/electron/i],describe:function(e){var t={name:"Electron"},r=i.default.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/MiuiBrowser/i],describe:function(e){var t={name:"Miui"},r=i.default.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/chromium/i],describe:function(e){var t={name:"Chromium"},r=i.default.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i,e)||i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/chrome|crios|crmo/i],describe:function(e){var t={name:"Chrome"},r=i.default.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/GSA/i],describe:function(e){var t={name:"Google Search"},r=i.default.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){var t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe:function(e){var t={name:"Android Browser"},r=i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/playstation 4/i],describe:function(e){var t={name:"PlayStation 4"},r=i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/safari|applewebkit/i],describe:function(e){var t={name:"Safari"},r=i.default.getFirstMatch(s,e);return r&&(t.version=r),t}},{test:[/.*/i],describe:function(e){var t=-1!==e.search("\\(")?/^(.*)\/(.*)[ \t]\((.*)/:/^(.*)\/(.*) /;return{name:i.default.getFirstMatch(t,e),version:i.default.getSecondMatch(t,e)}}}];t.default=a,e.exports=t.default},93:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},s=r(18);var a=[{test:[/Roku\/DVP/],describe:function(e){var t=i.default.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i,e);return{name:s.OS_MAP.Roku,version:t}}},{test:[/windows phone/i],describe:function(e){var t=i.default.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i,e);return{name:s.OS_MAP.WindowsPhone,version:t}}},{test:[/windows /i],describe:function(e){var t=i.default.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i,e),r=i.default.getWindowsVersionName(t);return{name:s.OS_MAP.Windows,version:t,versionName:r}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(e){var t={name:s.OS_MAP.iOS},r=i.default.getSecondMatch(/(Version\/)(\d[\d.]+)/,e);return r&&(t.version=r),t}},{test:[/macintosh/i],describe:function(e){var t=i.default.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i,e).replace(/[_\s]/g,"."),r=i.default.getMacOSVersionName(t),n={name:s.OS_MAP.MacOS,version:t};return r&&(n.versionName=r),n}},{test:[/(ipod|iphone|ipad)/i],describe:function(e){var t=i.default.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i,e).replace(/[_\s]/g,".");return{name:s.OS_MAP.iOS,version:t}}},{test:function(e){var t=!e.test(/like android/i),r=e.test(/android/i);return t&&r},describe:function(e){var t=i.default.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i,e),r=i.default.getAndroidVersionName(t),n={name:s.OS_MAP.Android,version:t};return r&&(n.versionName=r),n}},{test:[/(web|hpw)[o0]s/i],describe:function(e){var t=i.default.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i,e),r={name:s.OS_MAP.WebOS};return t&&t.length&&(r.version=t),r}},{test:[/blackberry|\bbb\d+/i,/rim\stablet/i],describe:function(e){var t=i.default.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i,e)||i.default.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i,e)||i.default.getFirstMatch(/\bbb(\d+)/i,e);return{name:s.OS_MAP.BlackBerry,version:t}}},{test:[/bada/i],describe:function(e){var t=i.default.getFirstMatch(/bada\/(\d+(\.\d+)*)/i,e);return{name:s.OS_MAP.Bada,version:t}}},{test:[/tizen/i],describe:function(e){var t=i.default.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i,e);return{name:s.OS_MAP.Tizen,version:t}}},{test:[/linux/i],describe:function(){return{name:s.OS_MAP.Linux}}},{test:[/CrOS/],describe:function(){return{name:s.OS_MAP.ChromeOS}}},{test:[/PlayStation 4/],describe:function(e){var t=i.default.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i,e);return{name:s.OS_MAP.PlayStation4,version:t}}}];t.default=a,e.exports=t.default},94:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},s=r(18);var a=[{test:[/googlebot/i],describe:function(){return{type:"bot",vendor:"Google"}}},{test:[/huawei/i],describe:function(e){var t=i.default.getFirstMatch(/(can-l01)/i,e)&&"Nova",r={type:s.PLATFORMS_MAP.mobile,vendor:"Huawei"};return t&&(r.model=t),r}},{test:[/nexus\s*(?:7|8|9|10).*/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Nexus"}}},{test:[/ipad/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/Macintosh(.*?) FxiOS(.*?)\//],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Apple",model:"iPad"}}},{test:[/kftt build/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Amazon",model:"Kindle Fire HD 7"}}},{test:[/silk/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet,vendor:"Amazon"}}},{test:[/tablet(?! pc)/i],describe:function(){return{type:s.PLATFORMS_MAP.tablet}}},{test:function(e){var t=e.test(/ipod|iphone/i),r=e.test(/like (ipod|iphone)/i);return t&&!r},describe:function(e){var t=i.default.getFirstMatch(/(ipod|iphone)/i,e);return{type:s.PLATFORMS_MAP.mobile,vendor:"Apple",model:t}}},{test:[/nexus\s*[0-6].*/i,/galaxy nexus/i],describe:function(){return{type:s.PLATFORMS_MAP.mobile,vendor:"Nexus"}}},{test:[/[^-]mobi/i],describe:function(){return{type:s.PLATFORMS_MAP.mobile}}},{test:function(e){return"blackberry"===e.getBrowserName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.mobile,vendor:"BlackBerry"}}},{test:function(e){return"bada"===e.getBrowserName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.mobile}}},{test:function(e){return"windows phone"===e.getBrowserName()},describe:function(){return{type:s.PLATFORMS_MAP.mobile,vendor:"Microsoft"}}},{test:function(e){var t=Number(String(e.getOSVersion()).split(".")[0]);return"android"===e.getOSName(!0)&&t>=3},describe:function(){return{type:s.PLATFORMS_MAP.tablet}}},{test:function(e){return"android"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.mobile}}},{test:function(e){return"macos"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.desktop,vendor:"Apple"}}},{test:function(e){return"windows"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.desktop}}},{test:function(e){return"linux"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.desktop}}},{test:function(e){return"playstation 4"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.tv}}},{test:function(e){return"roku"===e.getOSName(!0)},describe:function(){return{type:s.PLATFORMS_MAP.tv}}}];t.default=a,e.exports=t.default},95:function(e,t,r){"use strict";t.__esModule=!0,t.default=void 0;var n,i=(n=r(17))&&n.__esModule?n:{default:n},s=r(18);var a=[{test:function(e){return"microsoft edge"===e.getBrowserName(!0)},describe:function(e){if(/\sedg\//i.test(e))return{name:s.ENGINE_MAP.Blink};var t=i.default.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i,e);return{name:s.ENGINE_MAP.EdgeHTML,version:t}}},{test:[/trident/i],describe:function(e){var t={name:s.ENGINE_MAP.Trident},r=i.default.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){return e.test(/presto/i)},describe:function(e){var t={name:s.ENGINE_MAP.Presto},r=i.default.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:function(e){var t=e.test(/gecko/i),r=e.test(/like gecko/i);return t&&!r},describe:function(e){var t={name:s.ENGINE_MAP.Gecko},r=i.default.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}},{test:[/(apple)?webkit\/537\.36/i],describe:function(){return{name:s.ENGINE_MAP.Blink}}},{test:[/(apple)?webkit/i],describe:function(e){var t={name:s.ENGINE_MAP.WebKit},r=i.default.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i,e);return r&&(t.version=r),t}}];t.default=a,e.exports=t.default}})})); \ No newline at end of file diff --git a/node_modules/bowser/index.d.ts b/node_modules/bowser/index.d.ts deleted file mode 100644 index d95656a4..00000000 --- a/node_modules/bowser/index.d.ts +++ /dev/null @@ -1,250 +0,0 @@ -// Type definitions for Bowser v2 -// Project: https://github.com/lancedikson/bowser -// Definitions by: Alexander P. Cerutti , - -export = Bowser; -export as namespace Bowser; - -declare namespace Bowser { - /** - * Creates a Parser instance - * @param {string} UA - User agent string - * @param {boolean} skipParsing - */ - - function getParser(UA: string, skipParsing?: boolean): Parser.Parser; - - /** - * Creates a Parser instance and runs Parser.getResult immediately - * @param UA - User agent string - * @returns {Parser.ParsedResult} - */ - - function parse(UA: string): Parser.ParsedResult; - - /** - * Constants exposed via bowser getters - */ - const BROWSER_MAP: Record; - const ENGINE_MAP: Record; - const OS_MAP: Record; - const PLATFORMS_MAP: Record; - - namespace Parser { - interface Parser { - constructor(UA: string, skipParsing?: boolean): Parser.Parser; - - /** - * Get parsed browser object - * @return {BrowserDetails} Browser's details - */ - - getBrowser(): BrowserDetails; - - /** - * Get browser's name - * @param {Boolean} [toLowerCase] return lower-cased value - * @return {String} Browser's name or an empty string - */ - - getBrowserName(toLowerCase?: boolean): string; - - /** - * Get browser's version - * @return {String} version of browser - */ - - getBrowserVersion(): string; - - /** - * Get OS - * @return {OSDetails} - OS Details - * - * @example - * this.getOS(); // { - * // name: 'macOS', - * // version: '10.11.12', - * // } - */ - - getOS(): OSDetails; - - /** - * Get OS name - * @param {Boolean} [toLowerCase] return lower-cased value - * @return {String} name of the OS — macOS, Windows, Linux, etc. - */ - - getOSName(toLowerCase?: boolean): string; - - /** - * Get OS version - * @return {String} full version with dots ('10.11.12', '5.6', etc) - */ - - getOSVersion(): string; - - /** - * Get parsed platform - * @returns {PlatformDetails} - */ - - getPlatform(): PlatformDetails; - - /** - * Get platform name - * @param {boolean} toLowerCase - */ - - getPlatformType(toLowerCase?: boolean): string; - - /** - * Get parsed engine - * @returns {EngineDetails} - */ - - getEngine(): EngineDetails; - - /** - * Get parsed engine's name - * @returns {String} Engine's name or an empty string - */ - - getEngineName(): string; - - /** - * Get parsed result - * @return {ParsedResult} - */ - - getResult(): ParsedResult; - - /** - * Get UserAgent string of current Parser instance - * @return {String} User-Agent String of the current object - */ - - getUA(): string; - - /** - * Is anything? Check if the browser is called "anything", - * the OS called "anything" or the platform called "anything" - * @param {String} anything - * @returns {Boolean} - */ - - is(anything: any): boolean; - - /** - * Parse full information about the browser - * @returns {Parser.Parser} - */ - - parse(): Parser.Parser; - - /** - * Get parsed browser object - * @returns {BrowserDetails} - */ - - parseBrowser(): BrowserDetails; - - /** - * Get parsed engine - * @returns {EngineDetails} - */ - - parseEngine(): EngineDetails; - - /** - * Parse OS and save it to this.parsedResult.os - * @returns {OSDetails} - */ - - parseOS(): OSDetails; - - /** - * Get parsed platform - * @returns {PlatformDetails} - */ - - parsePlatform(): PlatformDetails; - - /** - * Check if parsed browser matches certain conditions - * - * @param {checkTree} checkTree It's one or two layered object, - * which can include a platform or an OS on the first layer - * and should have browsers specs on the bottom-laying layer - * - * @returns {Boolean|undefined} Whether the browser satisfies the set conditions or not. - * Returns `undefined` when the browser is no described in the checkTree object. - * - * @example - * const browser = new Bowser(UA); - * if (browser.check({chrome: '>118.01.1322' })) - * // or with os - * if (browser.check({windows: { chrome: '>118.01.1322' } })) - * // or with platforms - * if (browser.check({desktop: { chrome: '>118.01.1322' } })) - */ - - satisfies(checkTree: checkTree): boolean | undefined; - - /** - * Check if the browser name equals the passed string - * @param browserName The string to compare with the browser name - * @param [includingAlias=false] The flag showing whether alias will be included into comparison - * @returns {boolean} - */ - - - isBrowser(browserName: string, includingAlias?: boolean): boolean; - - /** - * Check if any of the given values satifies `.is(anything)` - * @param {string[]} anythings - * @returns {boolean} true if at least one condition is satisfied, false otherwise. - */ - - some(anythings: string[]): boolean | undefined; - - /** - * Test a UA string for a regexp - * @param regex - * @returns {boolean} true if the regex matches the UA, false otherwise. - */ - - test(regex: RegExp): boolean; - } - - interface ParsedResult { - browser: BrowserDetails; - os: OSDetails; - platform: PlatformDetails; - engine: EngineDetails; - } - - interface Details { - name?: string; - version?: string; - } - - interface OSDetails extends Details { - versionName?: string; - } - - interface PlatformDetails { - type?: string; - vendor?: string; - model?: string; - } - - type BrowserDetails = Details; - type EngineDetails = Details; - - interface checkTree { - [key: string]: any; - } - } -} diff --git a/node_modules/bowser/package.json b/node_modules/bowser/package.json deleted file mode 100644 index 3fb7c83f..00000000 --- a/node_modules/bowser/package.json +++ /dev/null @@ -1,83 +0,0 @@ -{ - "name": "bowser", - "version": "2.11.0", - "description": "Lightweight browser detector", - "keywords": [ - "browser", - "useragent", - "user-agent", - "parser", - "ua", - "detection", - "ender", - "sniff" - ], - "homepage": "https://github.com/lancedikson/bowser", - "author": "Dustin Diaz (http://dustindiaz.com)", - "contributors": [ - { - "name": "Denis Demchenko", - "url": "http://twitter.com/lancedikson" - } - ], - "main": "es5.js", - "browser": "es5.js", - "module": "src/bowser.js", - "types": "index.d.ts", - "repository": { - "type": "git", - "url": "git+https://github.com/lancedikson/bowser.git" - }, - "devDependencies": { - "@babel/cli": "^7.11.6", - "@babel/core": "^7.8.0", - "@babel/polyfill": "^7.8.3", - "@babel/preset-env": "^7.8.2", - "@babel/register": "^7.8.3", - "ava": "^3.0.0", - "babel-eslint": "^10.0.3", - "babel-loader": "^8.0.6", - "babel-plugin-add-module-exports": "^1.0.2", - "babel-plugin-istanbul": "^6.0.0", - "compression-webpack-plugin": "^4.0.0", - "coveralls": "^3.0.6", - "docdash": "^1.1.1", - "eslint": "^6.5.1", - "eslint-config-airbnb-base": "^13.2.0", - "eslint-plugin-ava": "^10.0.0", - "eslint-plugin-import": "^2.18.2", - "gh-pages": "^3.0.0", - "jsdoc": "^3.6.3", - "nyc": "^15.0.0", - "sinon": "^9.0.0", - "testem": "^3.0.0", - "webpack": "^4.41.0", - "webpack-bundle-analyzer": "^3.5.2", - "webpack-cli": "^3.3.9", - "yamljs": "^0.3.0" - }, - "ava": { - "require": [ - "@babel/register" - ] - }, - "bugs": { - "url": "https://github.com/lancedikson/bowser/issues" - }, - "directories": { - "test": "test" - }, - "scripts": { - "build": "webpack --config webpack.config.js", - "generate-and-deploy-docs": "npm run generate-docs && gh-pages --dist docs --dest docs", - "watch": "webpack --watch --config webpack.config.js", - "prepublishOnly": "npm run build", - "lint": "eslint ./src", - "testem": "testem", - "test": "nyc --reporter=html --reporter=text ava", - "test:watch": "ava --watch", - "coverage": "nyc report --reporter=text-lcov | coveralls", - "generate-docs": "jsdoc -c jsdoc.json" - }, - "license": "MIT" -} diff --git a/node_modules/bowser/src/bowser.js b/node_modules/bowser/src/bowser.js deleted file mode 100644 index f79e6e0e..00000000 --- a/node_modules/bowser/src/bowser.js +++ /dev/null @@ -1,77 +0,0 @@ -/*! - * Bowser - a browser detector - * https://github.com/lancedikson/bowser - * MIT License | (c) Dustin Diaz 2012-2015 - * MIT License | (c) Denis Demchenko 2015-2019 - */ -import Parser from './parser.js'; -import { - BROWSER_MAP, - ENGINE_MAP, - OS_MAP, - PLATFORMS_MAP, -} from './constants.js'; - -/** - * Bowser class. - * Keep it simple as much as it can be. - * It's supposed to work with collections of {@link Parser} instances - * rather then solve one-instance problems. - * All the one-instance stuff is located in Parser class. - * - * @class - * @classdesc Bowser is a static object, that provides an API to the Parsers - * @hideconstructor - */ -class Bowser { - /** - * Creates a {@link Parser} instance - * - * @param {String} UA UserAgent string - * @param {Boolean} [skipParsing=false] Will make the Parser postpone parsing until you ask it - * explicitly. Same as `skipParsing` for {@link Parser}. - * @returns {Parser} - * @throws {Error} when UA is not a String - * - * @example - * const parser = Bowser.getParser(window.navigator.userAgent); - * const result = parser.getResult(); - */ - static getParser(UA, skipParsing = false) { - if (typeof UA !== 'string') { - throw new Error('UserAgent should be a string'); - } - return new Parser(UA, skipParsing); - } - - /** - * Creates a {@link Parser} instance and runs {@link Parser.getResult} immediately - * - * @param UA - * @return {ParsedResult} - * - * @example - * const result = Bowser.parse(window.navigator.userAgent); - */ - static parse(UA) { - return (new Parser(UA)).getResult(); - } - - static get BROWSER_MAP() { - return BROWSER_MAP; - } - - static get ENGINE_MAP() { - return ENGINE_MAP; - } - - static get OS_MAP() { - return OS_MAP; - } - - static get PLATFORMS_MAP() { - return PLATFORMS_MAP; - } -} - -export default Bowser; diff --git a/node_modules/bowser/src/constants.js b/node_modules/bowser/src/constants.js deleted file mode 100644 index f3350325..00000000 --- a/node_modules/bowser/src/constants.js +++ /dev/null @@ -1,116 +0,0 @@ -// NOTE: this list must be up-to-date with browsers listed in -// test/acceptance/useragentstrings.yml -export const BROWSER_ALIASES_MAP = { - 'Amazon Silk': 'amazon_silk', - 'Android Browser': 'android', - Bada: 'bada', - BlackBerry: 'blackberry', - Chrome: 'chrome', - Chromium: 'chromium', - Electron: 'electron', - Epiphany: 'epiphany', - Firefox: 'firefox', - Focus: 'focus', - Generic: 'generic', - 'Google Search': 'google_search', - Googlebot: 'googlebot', - 'Internet Explorer': 'ie', - 'K-Meleon': 'k_meleon', - Maxthon: 'maxthon', - 'Microsoft Edge': 'edge', - 'MZ Browser': 'mz', - 'NAVER Whale Browser': 'naver', - Opera: 'opera', - 'Opera Coast': 'opera_coast', - PhantomJS: 'phantomjs', - Puffin: 'puffin', - QupZilla: 'qupzilla', - QQ: 'qq', - QQLite: 'qqlite', - Safari: 'safari', - Sailfish: 'sailfish', - 'Samsung Internet for Android': 'samsung_internet', - SeaMonkey: 'seamonkey', - Sleipnir: 'sleipnir', - Swing: 'swing', - Tizen: 'tizen', - 'UC Browser': 'uc', - Vivaldi: 'vivaldi', - 'WebOS Browser': 'webos', - WeChat: 'wechat', - 'Yandex Browser': 'yandex', - Roku: 'roku', -}; - -export const BROWSER_MAP = { - amazon_silk: 'Amazon Silk', - android: 'Android Browser', - bada: 'Bada', - blackberry: 'BlackBerry', - chrome: 'Chrome', - chromium: 'Chromium', - electron: 'Electron', - epiphany: 'Epiphany', - firefox: 'Firefox', - focus: 'Focus', - generic: 'Generic', - googlebot: 'Googlebot', - google_search: 'Google Search', - ie: 'Internet Explorer', - k_meleon: 'K-Meleon', - maxthon: 'Maxthon', - edge: 'Microsoft Edge', - mz: 'MZ Browser', - naver: 'NAVER Whale Browser', - opera: 'Opera', - opera_coast: 'Opera Coast', - phantomjs: 'PhantomJS', - puffin: 'Puffin', - qupzilla: 'QupZilla', - qq: 'QQ Browser', - qqlite: 'QQ Browser Lite', - safari: 'Safari', - sailfish: 'Sailfish', - samsung_internet: 'Samsung Internet for Android', - seamonkey: 'SeaMonkey', - sleipnir: 'Sleipnir', - swing: 'Swing', - tizen: 'Tizen', - uc: 'UC Browser', - vivaldi: 'Vivaldi', - webos: 'WebOS Browser', - wechat: 'WeChat', - yandex: 'Yandex Browser', -}; - -export const PLATFORMS_MAP = { - tablet: 'tablet', - mobile: 'mobile', - desktop: 'desktop', - tv: 'tv', -}; - -export const OS_MAP = { - WindowsPhone: 'Windows Phone', - Windows: 'Windows', - MacOS: 'macOS', - iOS: 'iOS', - Android: 'Android', - WebOS: 'WebOS', - BlackBerry: 'BlackBerry', - Bada: 'Bada', - Tizen: 'Tizen', - Linux: 'Linux', - ChromeOS: 'Chrome OS', - PlayStation4: 'PlayStation 4', - Roku: 'Roku', -}; - -export const ENGINE_MAP = { - EdgeHTML: 'EdgeHTML', - Blink: 'Blink', - Trident: 'Trident', - Presto: 'Presto', - Gecko: 'Gecko', - WebKit: 'WebKit', -}; diff --git a/node_modules/bowser/src/parser-browsers.js b/node_modules/bowser/src/parser-browsers.js deleted file mode 100644 index ee7840c5..00000000 --- a/node_modules/bowser/src/parser-browsers.js +++ /dev/null @@ -1,700 +0,0 @@ -/** - * Browsers' descriptors - * - * The idea of descriptors is simple. You should know about them two simple things: - * 1. Every descriptor has a method or property called `test` and a `describe` method. - * 2. Order of descriptors is important. - * - * More details: - * 1. Method or property `test` serves as a way to detect whether the UA string - * matches some certain browser or not. The `describe` method helps to make a result - * object with params that show some browser-specific things: name, version, etc. - * 2. Order of descriptors is important because a Parser goes through them one by one - * in course. For example, if you insert Chrome's descriptor as the first one, - * more then a half of browsers will be described as Chrome, because they will pass - * the Chrome descriptor's test. - * - * Descriptor's `test` could be a property with an array of RegExps, where every RegExp - * will be applied to a UA string to test it whether it matches or not. - * If a descriptor has two or more regexps in the `test` array it tests them one by one - * with a logical sum operation. Parser stops if it has found any RegExp that matches the UA. - * - * Or `test` could be a method. In that case it gets a Parser instance and should - * return true/false to get the Parser know if this browser descriptor matches the UA or not. - */ - -import Utils from './utils.js'; - -const commonVersionIdentifier = /version\/(\d+(\.?_?\d+)+)/i; - -const browsersList = [ - /* Googlebot */ - { - test: [/googlebot/i], - describe(ua) { - const browser = { - name: 'Googlebot', - }; - const version = Utils.getFirstMatch(/googlebot\/(\d+(\.\d+))/i, ua) || Utils.getFirstMatch(commonVersionIdentifier, ua); - - if (version) { - browser.version = version; - } - - return browser; - }, - }, - - /* Opera < 13.0 */ - { - test: [/opera/i], - describe(ua) { - const browser = { - name: 'Opera', - }; - const version = Utils.getFirstMatch(commonVersionIdentifier, ua) || Utils.getFirstMatch(/(?:opera)[\s/](\d+(\.?_?\d+)+)/i, ua); - - if (version) { - browser.version = version; - } - - return browser; - }, - }, - - /* Opera > 13.0 */ - { - test: [/opr\/|opios/i], - describe(ua) { - const browser = { - name: 'Opera', - }; - const version = Utils.getFirstMatch(/(?:opr|opios)[\s/](\S+)/i, ua) || Utils.getFirstMatch(commonVersionIdentifier, ua); - - if (version) { - browser.version = version; - } - - return browser; - }, - }, - { - test: [/SamsungBrowser/i], - describe(ua) { - const browser = { - name: 'Samsung Internet for Android', - }; - const version = Utils.getFirstMatch(commonVersionIdentifier, ua) || Utils.getFirstMatch(/(?:SamsungBrowser)[\s/](\d+(\.?_?\d+)+)/i, ua); - - if (version) { - browser.version = version; - } - - return browser; - }, - }, - { - test: [/Whale/i], - describe(ua) { - const browser = { - name: 'NAVER Whale Browser', - }; - const version = Utils.getFirstMatch(commonVersionIdentifier, ua) || Utils.getFirstMatch(/(?:whale)[\s/](\d+(?:\.\d+)+)/i, ua); - - if (version) { - browser.version = version; - } - - return browser; - }, - }, - { - test: [/MZBrowser/i], - describe(ua) { - const browser = { - name: 'MZ Browser', - }; - const version = Utils.getFirstMatch(/(?:MZBrowser)[\s/](\d+(?:\.\d+)+)/i, ua) || Utils.getFirstMatch(commonVersionIdentifier, ua); - - if (version) { - browser.version = version; - } - - return browser; - }, - }, - { - test: [/focus/i], - describe(ua) { - const browser = { - name: 'Focus', - }; - const version = Utils.getFirstMatch(/(?:focus)[\s/](\d+(?:\.\d+)+)/i, ua) || Utils.getFirstMatch(commonVersionIdentifier, ua); - - if (version) { - browser.version = version; - } - - return browser; - }, - }, - { - test: [/swing/i], - describe(ua) { - const browser = { - name: 'Swing', - }; - const version = Utils.getFirstMatch(/(?:swing)[\s/](\d+(?:\.\d+)+)/i, ua) || Utils.getFirstMatch(commonVersionIdentifier, ua); - - if (version) { - browser.version = version; - } - - return browser; - }, - }, - { - test: [/coast/i], - describe(ua) { - const browser = { - name: 'Opera Coast', - }; - const version = Utils.getFirstMatch(commonVersionIdentifier, ua) || Utils.getFirstMatch(/(?:coast)[\s/](\d+(\.?_?\d+)+)/i, ua); - - if (version) { - browser.version = version; - } - - return browser; - }, - }, - { - test: [/opt\/\d+(?:.?_?\d+)+/i], - describe(ua) { - const browser = { - name: 'Opera Touch', - }; - const version = Utils.getFirstMatch(/(?:opt)[\s/](\d+(\.?_?\d+)+)/i, ua) || Utils.getFirstMatch(commonVersionIdentifier, ua); - - if (version) { - browser.version = version; - } - - return browser; - }, - }, - { - test: [/yabrowser/i], - describe(ua) { - const browser = { - name: 'Yandex Browser', - }; - const version = Utils.getFirstMatch(/(?:yabrowser)[\s/](\d+(\.?_?\d+)+)/i, ua) || Utils.getFirstMatch(commonVersionIdentifier, ua); - - if (version) { - browser.version = version; - } - - return browser; - }, - }, - { - test: [/ucbrowser/i], - describe(ua) { - const browser = { - name: 'UC Browser', - }; - const version = Utils.getFirstMatch(commonVersionIdentifier, ua) || Utils.getFirstMatch(/(?:ucbrowser)[\s/](\d+(\.?_?\d+)+)/i, ua); - - if (version) { - browser.version = version; - } - - return browser; - }, - }, - { - test: [/Maxthon|mxios/i], - describe(ua) { - const browser = { - name: 'Maxthon', - }; - const version = Utils.getFirstMatch(commonVersionIdentifier, ua) || Utils.getFirstMatch(/(?:Maxthon|mxios)[\s/](\d+(\.?_?\d+)+)/i, ua); - - if (version) { - browser.version = version; - } - - return browser; - }, - }, - { - test: [/epiphany/i], - describe(ua) { - const browser = { - name: 'Epiphany', - }; - const version = Utils.getFirstMatch(commonVersionIdentifier, ua) || Utils.getFirstMatch(/(?:epiphany)[\s/](\d+(\.?_?\d+)+)/i, ua); - - if (version) { - browser.version = version; - } - - return browser; - }, - }, - { - test: [/puffin/i], - describe(ua) { - const browser = { - name: 'Puffin', - }; - const version = Utils.getFirstMatch(commonVersionIdentifier, ua) || Utils.getFirstMatch(/(?:puffin)[\s/](\d+(\.?_?\d+)+)/i, ua); - - if (version) { - browser.version = version; - } - - return browser; - }, - }, - { - test: [/sleipnir/i], - describe(ua) { - const browser = { - name: 'Sleipnir', - }; - const version = Utils.getFirstMatch(commonVersionIdentifier, ua) || Utils.getFirstMatch(/(?:sleipnir)[\s/](\d+(\.?_?\d+)+)/i, ua); - - if (version) { - browser.version = version; - } - - return browser; - }, - }, - { - test: [/k-meleon/i], - describe(ua) { - const browser = { - name: 'K-Meleon', - }; - const version = Utils.getFirstMatch(commonVersionIdentifier, ua) || Utils.getFirstMatch(/(?:k-meleon)[\s/](\d+(\.?_?\d+)+)/i, ua); - - if (version) { - browser.version = version; - } - - return browser; - }, - }, - { - test: [/micromessenger/i], - describe(ua) { - const browser = { - name: 'WeChat', - }; - const version = Utils.getFirstMatch(/(?:micromessenger)[\s/](\d+(\.?_?\d+)+)/i, ua) || Utils.getFirstMatch(commonVersionIdentifier, ua); - - if (version) { - browser.version = version; - } - - return browser; - }, - }, - { - test: [/qqbrowser/i], - describe(ua) { - const browser = { - name: (/qqbrowserlite/i).test(ua) ? 'QQ Browser Lite' : 'QQ Browser', - }; - const version = Utils.getFirstMatch(/(?:qqbrowserlite|qqbrowser)[/](\d+(\.?_?\d+)+)/i, ua) || Utils.getFirstMatch(commonVersionIdentifier, ua); - - if (version) { - browser.version = version; - } - - return browser; - }, - }, - { - test: [/msie|trident/i], - describe(ua) { - const browser = { - name: 'Internet Explorer', - }; - const version = Utils.getFirstMatch(/(?:msie |rv:)(\d+(\.?_?\d+)+)/i, ua); - - if (version) { - browser.version = version; - } - - return browser; - }, - }, - { - test: [/\sedg\//i], - describe(ua) { - const browser = { - name: 'Microsoft Edge', - }; - - const version = Utils.getFirstMatch(/\sedg\/(\d+(\.?_?\d+)+)/i, ua); - - if (version) { - browser.version = version; - } - - return browser; - }, - }, - { - test: [/edg([ea]|ios)/i], - describe(ua) { - const browser = { - name: 'Microsoft Edge', - }; - - const version = Utils.getSecondMatch(/edg([ea]|ios)\/(\d+(\.?_?\d+)+)/i, ua); - - if (version) { - browser.version = version; - } - - return browser; - }, - }, - { - test: [/vivaldi/i], - describe(ua) { - const browser = { - name: 'Vivaldi', - }; - const version = Utils.getFirstMatch(/vivaldi\/(\d+(\.?_?\d+)+)/i, ua); - - if (version) { - browser.version = version; - } - - return browser; - }, - }, - { - test: [/seamonkey/i], - describe(ua) { - const browser = { - name: 'SeaMonkey', - }; - const version = Utils.getFirstMatch(/seamonkey\/(\d+(\.?_?\d+)+)/i, ua); - - if (version) { - browser.version = version; - } - - return browser; - }, - }, - { - test: [/sailfish/i], - describe(ua) { - const browser = { - name: 'Sailfish', - }; - - const version = Utils.getFirstMatch(/sailfish\s?browser\/(\d+(\.\d+)?)/i, ua); - - if (version) { - browser.version = version; - } - - return browser; - }, - }, - { - test: [/silk/i], - describe(ua) { - const browser = { - name: 'Amazon Silk', - }; - const version = Utils.getFirstMatch(/silk\/(\d+(\.?_?\d+)+)/i, ua); - - if (version) { - browser.version = version; - } - - return browser; - }, - }, - { - test: [/phantom/i], - describe(ua) { - const browser = { - name: 'PhantomJS', - }; - const version = Utils.getFirstMatch(/phantomjs\/(\d+(\.?_?\d+)+)/i, ua); - - if (version) { - browser.version = version; - } - - return browser; - }, - }, - { - test: [/slimerjs/i], - describe(ua) { - const browser = { - name: 'SlimerJS', - }; - const version = Utils.getFirstMatch(/slimerjs\/(\d+(\.?_?\d+)+)/i, ua); - - if (version) { - browser.version = version; - } - - return browser; - }, - }, - { - test: [/blackberry|\bbb\d+/i, /rim\stablet/i], - describe(ua) { - const browser = { - name: 'BlackBerry', - }; - const version = Utils.getFirstMatch(commonVersionIdentifier, ua) || Utils.getFirstMatch(/blackberry[\d]+\/(\d+(\.?_?\d+)+)/i, ua); - - if (version) { - browser.version = version; - } - - return browser; - }, - }, - { - test: [/(web|hpw)[o0]s/i], - describe(ua) { - const browser = { - name: 'WebOS Browser', - }; - const version = Utils.getFirstMatch(commonVersionIdentifier, ua) || Utils.getFirstMatch(/w(?:eb)?[o0]sbrowser\/(\d+(\.?_?\d+)+)/i, ua); - - if (version) { - browser.version = version; - } - - return browser; - }, - }, - { - test: [/bada/i], - describe(ua) { - const browser = { - name: 'Bada', - }; - const version = Utils.getFirstMatch(/dolfin\/(\d+(\.?_?\d+)+)/i, ua); - - if (version) { - browser.version = version; - } - - return browser; - }, - }, - { - test: [/tizen/i], - describe(ua) { - const browser = { - name: 'Tizen', - }; - const version = Utils.getFirstMatch(/(?:tizen\s?)?browser\/(\d+(\.?_?\d+)+)/i, ua) || Utils.getFirstMatch(commonVersionIdentifier, ua); - - if (version) { - browser.version = version; - } - - return browser; - }, - }, - { - test: [/qupzilla/i], - describe(ua) { - const browser = { - name: 'QupZilla', - }; - const version = Utils.getFirstMatch(/(?:qupzilla)[\s/](\d+(\.?_?\d+)+)/i, ua) || Utils.getFirstMatch(commonVersionIdentifier, ua); - - if (version) { - browser.version = version; - } - - return browser; - }, - }, - { - test: [/firefox|iceweasel|fxios/i], - describe(ua) { - const browser = { - name: 'Firefox', - }; - const version = Utils.getFirstMatch(/(?:firefox|iceweasel|fxios)[\s/](\d+(\.?_?\d+)+)/i, ua); - - if (version) { - browser.version = version; - } - - return browser; - }, - }, - { - test: [/electron/i], - describe(ua) { - const browser = { - name: 'Electron', - }; - const version = Utils.getFirstMatch(/(?:electron)\/(\d+(\.?_?\d+)+)/i, ua); - - if (version) { - browser.version = version; - } - - return browser; - }, - }, - { - test: [/MiuiBrowser/i], - describe(ua) { - const browser = { - name: 'Miui', - }; - const version = Utils.getFirstMatch(/(?:MiuiBrowser)[\s/](\d+(\.?_?\d+)+)/i, ua); - - if (version) { - browser.version = version; - } - - return browser; - }, - }, - { - test: [/chromium/i], - describe(ua) { - const browser = { - name: 'Chromium', - }; - const version = Utils.getFirstMatch(/(?:chromium)[\s/](\d+(\.?_?\d+)+)/i, ua) || Utils.getFirstMatch(commonVersionIdentifier, ua); - - if (version) { - browser.version = version; - } - - return browser; - }, - }, - { - test: [/chrome|crios|crmo/i], - describe(ua) { - const browser = { - name: 'Chrome', - }; - const version = Utils.getFirstMatch(/(?:chrome|crios|crmo)\/(\d+(\.?_?\d+)+)/i, ua); - - if (version) { - browser.version = version; - } - - return browser; - }, - }, - { - test: [/GSA/i], - describe(ua) { - const browser = { - name: 'Google Search', - }; - const version = Utils.getFirstMatch(/(?:GSA)\/(\d+(\.?_?\d+)+)/i, ua); - - if (version) { - browser.version = version; - } - - return browser; - }, - }, - - /* Android Browser */ - { - test(parser) { - const notLikeAndroid = !parser.test(/like android/i); - const butAndroid = parser.test(/android/i); - return notLikeAndroid && butAndroid; - }, - describe(ua) { - const browser = { - name: 'Android Browser', - }; - const version = Utils.getFirstMatch(commonVersionIdentifier, ua); - - if (version) { - browser.version = version; - } - - return browser; - }, - }, - - /* PlayStation 4 */ - { - test: [/playstation 4/i], - describe(ua) { - const browser = { - name: 'PlayStation 4', - }; - const version = Utils.getFirstMatch(commonVersionIdentifier, ua); - - if (version) { - browser.version = version; - } - - return browser; - }, - }, - - /* Safari */ - { - test: [/safari|applewebkit/i], - describe(ua) { - const browser = { - name: 'Safari', - }; - const version = Utils.getFirstMatch(commonVersionIdentifier, ua); - - if (version) { - browser.version = version; - } - - return browser; - }, - }, - - /* Something else */ - { - test: [/.*/i], - describe(ua) { - /* Here we try to make sure that there are explicit details about the device - * in order to decide what regexp exactly we want to apply - * (as there is a specific decision based on that conclusion) - */ - const regexpWithoutDeviceSpec = /^(.*)\/(.*) /; - const regexpWithDeviceSpec = /^(.*)\/(.*)[ \t]\((.*)/; - const hasDeviceSpec = ua.search('\\(') !== -1; - const regexp = hasDeviceSpec ? regexpWithDeviceSpec : regexpWithoutDeviceSpec; - return { - name: Utils.getFirstMatch(regexp, ua), - version: Utils.getSecondMatch(regexp, ua), - }; - }, - }, -]; - -export default browsersList; diff --git a/node_modules/bowser/src/parser-engines.js b/node_modules/bowser/src/parser-engines.js deleted file mode 100644 index d46d0e51..00000000 --- a/node_modules/bowser/src/parser-engines.js +++ /dev/null @@ -1,120 +0,0 @@ -import Utils from './utils.js'; -import { ENGINE_MAP } from './constants.js'; - -/* - * More specific goes first - */ -export default [ - /* EdgeHTML */ - { - test(parser) { - return parser.getBrowserName(true) === 'microsoft edge'; - }, - describe(ua) { - const isBlinkBased = /\sedg\//i.test(ua); - - // return blink if it's blink-based one - if (isBlinkBased) { - return { - name: ENGINE_MAP.Blink, - }; - } - - // otherwise match the version and return EdgeHTML - const version = Utils.getFirstMatch(/edge\/(\d+(\.?_?\d+)+)/i, ua); - - return { - name: ENGINE_MAP.EdgeHTML, - version, - }; - }, - }, - - /* Trident */ - { - test: [/trident/i], - describe(ua) { - const engine = { - name: ENGINE_MAP.Trident, - }; - - const version = Utils.getFirstMatch(/trident\/(\d+(\.?_?\d+)+)/i, ua); - - if (version) { - engine.version = version; - } - - return engine; - }, - }, - - /* Presto */ - { - test(parser) { - return parser.test(/presto/i); - }, - describe(ua) { - const engine = { - name: ENGINE_MAP.Presto, - }; - - const version = Utils.getFirstMatch(/presto\/(\d+(\.?_?\d+)+)/i, ua); - - if (version) { - engine.version = version; - } - - return engine; - }, - }, - - /* Gecko */ - { - test(parser) { - const isGecko = parser.test(/gecko/i); - const likeGecko = parser.test(/like gecko/i); - return isGecko && !likeGecko; - }, - describe(ua) { - const engine = { - name: ENGINE_MAP.Gecko, - }; - - const version = Utils.getFirstMatch(/gecko\/(\d+(\.?_?\d+)+)/i, ua); - - if (version) { - engine.version = version; - } - - return engine; - }, - }, - - /* Blink */ - { - test: [/(apple)?webkit\/537\.36/i], - describe() { - return { - name: ENGINE_MAP.Blink, - }; - }, - }, - - /* WebKit */ - { - test: [/(apple)?webkit/i], - describe(ua) { - const engine = { - name: ENGINE_MAP.WebKit, - }; - - const version = Utils.getFirstMatch(/webkit\/(\d+(\.?_?\d+)+)/i, ua); - - if (version) { - engine.version = version; - } - - return engine; - }, - }, -]; diff --git a/node_modules/bowser/src/parser-os.js b/node_modules/bowser/src/parser-os.js deleted file mode 100644 index 4c516dd6..00000000 --- a/node_modules/bowser/src/parser-os.js +++ /dev/null @@ -1,199 +0,0 @@ -import Utils from './utils.js'; -import { OS_MAP } from './constants.js'; - -export default [ - /* Roku */ - { - test: [/Roku\/DVP/], - describe(ua) { - const version = Utils.getFirstMatch(/Roku\/DVP-(\d+\.\d+)/i, ua); - return { - name: OS_MAP.Roku, - version, - }; - }, - }, - - /* Windows Phone */ - { - test: [/windows phone/i], - describe(ua) { - const version = Utils.getFirstMatch(/windows phone (?:os)?\s?(\d+(\.\d+)*)/i, ua); - return { - name: OS_MAP.WindowsPhone, - version, - }; - }, - }, - - /* Windows */ - { - test: [/windows /i], - describe(ua) { - const version = Utils.getFirstMatch(/Windows ((NT|XP)( \d\d?.\d)?)/i, ua); - const versionName = Utils.getWindowsVersionName(version); - - return { - name: OS_MAP.Windows, - version, - versionName, - }; - }, - }, - - /* Firefox on iPad */ - { - test: [/Macintosh(.*?) FxiOS(.*?)\//], - describe(ua) { - const result = { - name: OS_MAP.iOS, - }; - const version = Utils.getSecondMatch(/(Version\/)(\d[\d.]+)/, ua); - if (version) { - result.version = version; - } - return result; - }, - }, - - /* macOS */ - { - test: [/macintosh/i], - describe(ua) { - const version = Utils.getFirstMatch(/mac os x (\d+(\.?_?\d+)+)/i, ua).replace(/[_\s]/g, '.'); - const versionName = Utils.getMacOSVersionName(version); - - const os = { - name: OS_MAP.MacOS, - version, - }; - if (versionName) { - os.versionName = versionName; - } - return os; - }, - }, - - /* iOS */ - { - test: [/(ipod|iphone|ipad)/i], - describe(ua) { - const version = Utils.getFirstMatch(/os (\d+([_\s]\d+)*) like mac os x/i, ua).replace(/[_\s]/g, '.'); - - return { - name: OS_MAP.iOS, - version, - }; - }, - }, - - /* Android */ - { - test(parser) { - const notLikeAndroid = !parser.test(/like android/i); - const butAndroid = parser.test(/android/i); - return notLikeAndroid && butAndroid; - }, - describe(ua) { - const version = Utils.getFirstMatch(/android[\s/-](\d+(\.\d+)*)/i, ua); - const versionName = Utils.getAndroidVersionName(version); - const os = { - name: OS_MAP.Android, - version, - }; - if (versionName) { - os.versionName = versionName; - } - return os; - }, - }, - - /* WebOS */ - { - test: [/(web|hpw)[o0]s/i], - describe(ua) { - const version = Utils.getFirstMatch(/(?:web|hpw)[o0]s\/(\d+(\.\d+)*)/i, ua); - const os = { - name: OS_MAP.WebOS, - }; - - if (version && version.length) { - os.version = version; - } - return os; - }, - }, - - /* BlackBerry */ - { - test: [/blackberry|\bbb\d+/i, /rim\stablet/i], - describe(ua) { - const version = Utils.getFirstMatch(/rim\stablet\sos\s(\d+(\.\d+)*)/i, ua) - || Utils.getFirstMatch(/blackberry\d+\/(\d+([_\s]\d+)*)/i, ua) - || Utils.getFirstMatch(/\bbb(\d+)/i, ua); - - return { - name: OS_MAP.BlackBerry, - version, - }; - }, - }, - - /* Bada */ - { - test: [/bada/i], - describe(ua) { - const version = Utils.getFirstMatch(/bada\/(\d+(\.\d+)*)/i, ua); - - return { - name: OS_MAP.Bada, - version, - }; - }, - }, - - /* Tizen */ - { - test: [/tizen/i], - describe(ua) { - const version = Utils.getFirstMatch(/tizen[/\s](\d+(\.\d+)*)/i, ua); - - return { - name: OS_MAP.Tizen, - version, - }; - }, - }, - - /* Linux */ - { - test: [/linux/i], - describe() { - return { - name: OS_MAP.Linux, - }; - }, - }, - - /* Chrome OS */ - { - test: [/CrOS/], - describe() { - return { - name: OS_MAP.ChromeOS, - }; - }, - }, - - /* Playstation 4 */ - { - test: [/PlayStation 4/], - describe(ua) { - const version = Utils.getFirstMatch(/PlayStation 4[/\s](\d+(\.\d+)*)/i, ua); - return { - name: OS_MAP.PlayStation4, - version, - }; - }, - }, -]; diff --git a/node_modules/bowser/src/parser-platforms.js b/node_modules/bowser/src/parser-platforms.js deleted file mode 100644 index 48b1eb10..00000000 --- a/node_modules/bowser/src/parser-platforms.js +++ /dev/null @@ -1,266 +0,0 @@ -import Utils from './utils.js'; -import { PLATFORMS_MAP } from './constants.js'; - -/* - * Tablets go first since usually they have more specific - * signs to detect. - */ - -export default [ - /* Googlebot */ - { - test: [/googlebot/i], - describe() { - return { - type: 'bot', - vendor: 'Google', - }; - }, - }, - - /* Huawei */ - { - test: [/huawei/i], - describe(ua) { - const model = Utils.getFirstMatch(/(can-l01)/i, ua) && 'Nova'; - const platform = { - type: PLATFORMS_MAP.mobile, - vendor: 'Huawei', - }; - if (model) { - platform.model = model; - } - return platform; - }, - }, - - /* Nexus Tablet */ - { - test: [/nexus\s*(?:7|8|9|10).*/i], - describe() { - return { - type: PLATFORMS_MAP.tablet, - vendor: 'Nexus', - }; - }, - }, - - /* iPad */ - { - test: [/ipad/i], - describe() { - return { - type: PLATFORMS_MAP.tablet, - vendor: 'Apple', - model: 'iPad', - }; - }, - }, - - /* Firefox on iPad */ - { - test: [/Macintosh(.*?) FxiOS(.*?)\//], - describe() { - return { - type: PLATFORMS_MAP.tablet, - vendor: 'Apple', - model: 'iPad', - }; - }, - }, - - /* Amazon Kindle Fire */ - { - test: [/kftt build/i], - describe() { - return { - type: PLATFORMS_MAP.tablet, - vendor: 'Amazon', - model: 'Kindle Fire HD 7', - }; - }, - }, - - /* Another Amazon Tablet with Silk */ - { - test: [/silk/i], - describe() { - return { - type: PLATFORMS_MAP.tablet, - vendor: 'Amazon', - }; - }, - }, - - /* Tablet */ - { - test: [/tablet(?! pc)/i], - describe() { - return { - type: PLATFORMS_MAP.tablet, - }; - }, - }, - - /* iPod/iPhone */ - { - test(parser) { - const iDevice = parser.test(/ipod|iphone/i); - const likeIDevice = parser.test(/like (ipod|iphone)/i); - return iDevice && !likeIDevice; - }, - describe(ua) { - const model = Utils.getFirstMatch(/(ipod|iphone)/i, ua); - return { - type: PLATFORMS_MAP.mobile, - vendor: 'Apple', - model, - }; - }, - }, - - /* Nexus Mobile */ - { - test: [/nexus\s*[0-6].*/i, /galaxy nexus/i], - describe() { - return { - type: PLATFORMS_MAP.mobile, - vendor: 'Nexus', - }; - }, - }, - - /* Mobile */ - { - test: [/[^-]mobi/i], - describe() { - return { - type: PLATFORMS_MAP.mobile, - }; - }, - }, - - /* BlackBerry */ - { - test(parser) { - return parser.getBrowserName(true) === 'blackberry'; - }, - describe() { - return { - type: PLATFORMS_MAP.mobile, - vendor: 'BlackBerry', - }; - }, - }, - - /* Bada */ - { - test(parser) { - return parser.getBrowserName(true) === 'bada'; - }, - describe() { - return { - type: PLATFORMS_MAP.mobile, - }; - }, - }, - - /* Windows Phone */ - { - test(parser) { - return parser.getBrowserName() === 'windows phone'; - }, - describe() { - return { - type: PLATFORMS_MAP.mobile, - vendor: 'Microsoft', - }; - }, - }, - - /* Android Tablet */ - { - test(parser) { - const osMajorVersion = Number(String(parser.getOSVersion()).split('.')[0]); - return parser.getOSName(true) === 'android' && (osMajorVersion >= 3); - }, - describe() { - return { - type: PLATFORMS_MAP.tablet, - }; - }, - }, - - /* Android Mobile */ - { - test(parser) { - return parser.getOSName(true) === 'android'; - }, - describe() { - return { - type: PLATFORMS_MAP.mobile, - }; - }, - }, - - /* desktop */ - { - test(parser) { - return parser.getOSName(true) === 'macos'; - }, - describe() { - return { - type: PLATFORMS_MAP.desktop, - vendor: 'Apple', - }; - }, - }, - - /* Windows */ - { - test(parser) { - return parser.getOSName(true) === 'windows'; - }, - describe() { - return { - type: PLATFORMS_MAP.desktop, - }; - }, - }, - - /* Linux */ - { - test(parser) { - return parser.getOSName(true) === 'linux'; - }, - describe() { - return { - type: PLATFORMS_MAP.desktop, - }; - }, - }, - - /* PlayStation 4 */ - { - test(parser) { - return parser.getOSName(true) === 'playstation 4'; - }, - describe() { - return { - type: PLATFORMS_MAP.tv, - }; - }, - }, - - /* Roku */ - { - test(parser) { - return parser.getOSName(true) === 'roku'; - }, - describe() { - return { - type: PLATFORMS_MAP.tv, - }; - }, - }, -]; diff --git a/node_modules/bowser/src/parser.js b/node_modules/bowser/src/parser.js deleted file mode 100644 index 2f9f39f2..00000000 --- a/node_modules/bowser/src/parser.js +++ /dev/null @@ -1,496 +0,0 @@ -import browserParsersList from './parser-browsers.js'; -import osParsersList from './parser-os.js'; -import platformParsersList from './parser-platforms.js'; -import enginesParsersList from './parser-engines.js'; -import Utils from './utils.js'; - -/** - * The main class that arranges the whole parsing process. - */ -class Parser { - /** - * Create instance of Parser - * - * @param {String} UA User-Agent string - * @param {Boolean} [skipParsing=false] parser can skip parsing in purpose of performance - * improvements if you need to make a more particular parsing - * like {@link Parser#parseBrowser} or {@link Parser#parsePlatform} - * - * @throw {Error} in case of empty UA String - * - * @constructor - */ - constructor(UA, skipParsing = false) { - if (UA === void (0) || UA === null || UA === '') { - throw new Error("UserAgent parameter can't be empty"); - } - - this._ua = UA; - - /** - * @typedef ParsedResult - * @property {Object} browser - * @property {String|undefined} [browser.name] - * Browser name, like `"Chrome"` or `"Internet Explorer"` - * @property {String|undefined} [browser.version] Browser version as a String `"12.01.45334.10"` - * @property {Object} os - * @property {String|undefined} [os.name] OS name, like `"Windows"` or `"macOS"` - * @property {String|undefined} [os.version] OS version, like `"NT 5.1"` or `"10.11.1"` - * @property {String|undefined} [os.versionName] OS name, like `"XP"` or `"High Sierra"` - * @property {Object} platform - * @property {String|undefined} [platform.type] - * platform type, can be either `"desktop"`, `"tablet"` or `"mobile"` - * @property {String|undefined} [platform.vendor] Vendor of the device, - * like `"Apple"` or `"Samsung"` - * @property {String|undefined} [platform.model] Device model, - * like `"iPhone"` or `"Kindle Fire HD 7"` - * @property {Object} engine - * @property {String|undefined} [engine.name] - * Can be any of this: `WebKit`, `Blink`, `Gecko`, `Trident`, `Presto`, `EdgeHTML` - * @property {String|undefined} [engine.version] String version of the engine - */ - this.parsedResult = {}; - - if (skipParsing !== true) { - this.parse(); - } - } - - /** - * Get UserAgent string of current Parser instance - * @return {String} User-Agent String of the current object - * - * @public - */ - getUA() { - return this._ua; - } - - /** - * Test a UA string for a regexp - * @param {RegExp} regex - * @return {Boolean} - */ - test(regex) { - return regex.test(this._ua); - } - - /** - * Get parsed browser object - * @return {Object} - */ - parseBrowser() { - this.parsedResult.browser = {}; - - const browserDescriptor = Utils.find(browserParsersList, (_browser) => { - if (typeof _browser.test === 'function') { - return _browser.test(this); - } - - if (_browser.test instanceof Array) { - return _browser.test.some(condition => this.test(condition)); - } - - throw new Error("Browser's test function is not valid"); - }); - - if (browserDescriptor) { - this.parsedResult.browser = browserDescriptor.describe(this.getUA()); - } - - return this.parsedResult.browser; - } - - /** - * Get parsed browser object - * @return {Object} - * - * @public - */ - getBrowser() { - if (this.parsedResult.browser) { - return this.parsedResult.browser; - } - - return this.parseBrowser(); - } - - /** - * Get browser's name - * @return {String} Browser's name or an empty string - * - * @public - */ - getBrowserName(toLowerCase) { - if (toLowerCase) { - return String(this.getBrowser().name).toLowerCase() || ''; - } - return this.getBrowser().name || ''; - } - - - /** - * Get browser's version - * @return {String} version of browser - * - * @public - */ - getBrowserVersion() { - return this.getBrowser().version; - } - - /** - * Get OS - * @return {Object} - * - * @example - * this.getOS(); - * { - * name: 'macOS', - * version: '10.11.12' - * } - */ - getOS() { - if (this.parsedResult.os) { - return this.parsedResult.os; - } - - return this.parseOS(); - } - - /** - * Parse OS and save it to this.parsedResult.os - * @return {*|{}} - */ - parseOS() { - this.parsedResult.os = {}; - - const os = Utils.find(osParsersList, (_os) => { - if (typeof _os.test === 'function') { - return _os.test(this); - } - - if (_os.test instanceof Array) { - return _os.test.some(condition => this.test(condition)); - } - - throw new Error("Browser's test function is not valid"); - }); - - if (os) { - this.parsedResult.os = os.describe(this.getUA()); - } - - return this.parsedResult.os; - } - - /** - * Get OS name - * @param {Boolean} [toLowerCase] return lower-cased value - * @return {String} name of the OS — macOS, Windows, Linux, etc. - */ - getOSName(toLowerCase) { - const { name } = this.getOS(); - - if (toLowerCase) { - return String(name).toLowerCase() || ''; - } - - return name || ''; - } - - /** - * Get OS version - * @return {String} full version with dots ('10.11.12', '5.6', etc) - */ - getOSVersion() { - return this.getOS().version; - } - - /** - * Get parsed platform - * @return {{}} - */ - getPlatform() { - if (this.parsedResult.platform) { - return this.parsedResult.platform; - } - - return this.parsePlatform(); - } - - /** - * Get platform name - * @param {Boolean} [toLowerCase=false] - * @return {*} - */ - getPlatformType(toLowerCase = false) { - const { type } = this.getPlatform(); - - if (toLowerCase) { - return String(type).toLowerCase() || ''; - } - - return type || ''; - } - - /** - * Get parsed platform - * @return {{}} - */ - parsePlatform() { - this.parsedResult.platform = {}; - - const platform = Utils.find(platformParsersList, (_platform) => { - if (typeof _platform.test === 'function') { - return _platform.test(this); - } - - if (_platform.test instanceof Array) { - return _platform.test.some(condition => this.test(condition)); - } - - throw new Error("Browser's test function is not valid"); - }); - - if (platform) { - this.parsedResult.platform = platform.describe(this.getUA()); - } - - return this.parsedResult.platform; - } - - /** - * Get parsed engine - * @return {{}} - */ - getEngine() { - if (this.parsedResult.engine) { - return this.parsedResult.engine; - } - - return this.parseEngine(); - } - - /** - * Get engines's name - * @return {String} Engines's name or an empty string - * - * @public - */ - getEngineName(toLowerCase) { - if (toLowerCase) { - return String(this.getEngine().name).toLowerCase() || ''; - } - return this.getEngine().name || ''; - } - - /** - * Get parsed platform - * @return {{}} - */ - parseEngine() { - this.parsedResult.engine = {}; - - const engine = Utils.find(enginesParsersList, (_engine) => { - if (typeof _engine.test === 'function') { - return _engine.test(this); - } - - if (_engine.test instanceof Array) { - return _engine.test.some(condition => this.test(condition)); - } - - throw new Error("Browser's test function is not valid"); - }); - - if (engine) { - this.parsedResult.engine = engine.describe(this.getUA()); - } - - return this.parsedResult.engine; - } - - /** - * Parse full information about the browser - * @returns {Parser} - */ - parse() { - this.parseBrowser(); - this.parseOS(); - this.parsePlatform(); - this.parseEngine(); - - return this; - } - - /** - * Get parsed result - * @return {ParsedResult} - */ - getResult() { - return Utils.assign({}, this.parsedResult); - } - - /** - * Check if parsed browser matches certain conditions - * - * @param {Object} checkTree It's one or two layered object, - * which can include a platform or an OS on the first layer - * and should have browsers specs on the bottom-laying layer - * - * @returns {Boolean|undefined} Whether the browser satisfies the set conditions or not. - * Returns `undefined` when the browser is no described in the checkTree object. - * - * @example - * const browser = Bowser.getParser(window.navigator.userAgent); - * if (browser.satisfies({chrome: '>118.01.1322' })) - * // or with os - * if (browser.satisfies({windows: { chrome: '>118.01.1322' } })) - * // or with platforms - * if (browser.satisfies({desktop: { chrome: '>118.01.1322' } })) - */ - satisfies(checkTree) { - const platformsAndOSes = {}; - let platformsAndOSCounter = 0; - const browsers = {}; - let browsersCounter = 0; - - const allDefinitions = Object.keys(checkTree); - - allDefinitions.forEach((key) => { - const currentDefinition = checkTree[key]; - if (typeof currentDefinition === 'string') { - browsers[key] = currentDefinition; - browsersCounter += 1; - } else if (typeof currentDefinition === 'object') { - platformsAndOSes[key] = currentDefinition; - platformsAndOSCounter += 1; - } - }); - - if (platformsAndOSCounter > 0) { - const platformsAndOSNames = Object.keys(platformsAndOSes); - const OSMatchingDefinition = Utils.find(platformsAndOSNames, name => (this.isOS(name))); - - if (OSMatchingDefinition) { - const osResult = this.satisfies(platformsAndOSes[OSMatchingDefinition]); - - if (osResult !== void 0) { - return osResult; - } - } - - const platformMatchingDefinition = Utils.find( - platformsAndOSNames, - name => (this.isPlatform(name)), - ); - if (platformMatchingDefinition) { - const platformResult = this.satisfies(platformsAndOSes[platformMatchingDefinition]); - - if (platformResult !== void 0) { - return platformResult; - } - } - } - - if (browsersCounter > 0) { - const browserNames = Object.keys(browsers); - const matchingDefinition = Utils.find(browserNames, name => (this.isBrowser(name, true))); - - if (matchingDefinition !== void 0) { - return this.compareVersion(browsers[matchingDefinition]); - } - } - - return undefined; - } - - /** - * Check if the browser name equals the passed string - * @param browserName The string to compare with the browser name - * @param [includingAlias=false] The flag showing whether alias will be included into comparison - * @returns {boolean} - */ - isBrowser(browserName, includingAlias = false) { - const defaultBrowserName = this.getBrowserName().toLowerCase(); - let browserNameLower = browserName.toLowerCase(); - const alias = Utils.getBrowserTypeByAlias(browserNameLower); - - if (includingAlias && alias) { - browserNameLower = alias.toLowerCase(); - } - return browserNameLower === defaultBrowserName; - } - - compareVersion(version) { - let expectedResults = [0]; - let comparableVersion = version; - let isLoose = false; - - const currentBrowserVersion = this.getBrowserVersion(); - - if (typeof currentBrowserVersion !== 'string') { - return void 0; - } - - if (version[0] === '>' || version[0] === '<') { - comparableVersion = version.substr(1); - if (version[1] === '=') { - isLoose = true; - comparableVersion = version.substr(2); - } else { - expectedResults = []; - } - if (version[0] === '>') { - expectedResults.push(1); - } else { - expectedResults.push(-1); - } - } else if (version[0] === '=') { - comparableVersion = version.substr(1); - } else if (version[0] === '~') { - isLoose = true; - comparableVersion = version.substr(1); - } - - return expectedResults.indexOf( - Utils.compareVersions(currentBrowserVersion, comparableVersion, isLoose), - ) > -1; - } - - isOS(osName) { - return this.getOSName(true) === String(osName).toLowerCase(); - } - - isPlatform(platformType) { - return this.getPlatformType(true) === String(platformType).toLowerCase(); - } - - isEngine(engineName) { - return this.getEngineName(true) === String(engineName).toLowerCase(); - } - - /** - * Is anything? Check if the browser is called "anything", - * the OS called "anything" or the platform called "anything" - * @param {String} anything - * @param [includingAlias=false] The flag showing whether alias will be included into comparison - * @returns {Boolean} - */ - is(anything, includingAlias = false) { - return this.isBrowser(anything, includingAlias) || this.isOS(anything) - || this.isPlatform(anything); - } - - /** - * Check if any of the given values satisfies this.is(anything) - * @param {String[]} anythings - * @returns {Boolean} - */ - some(anythings = []) { - return anythings.some(anything => this.is(anything)); - } -} - -export default Parser; diff --git a/node_modules/bowser/src/utils.js b/node_modules/bowser/src/utils.js deleted file mode 100644 index d1174bf0..00000000 --- a/node_modules/bowser/src/utils.js +++ /dev/null @@ -1,309 +0,0 @@ -import { BROWSER_MAP, BROWSER_ALIASES_MAP } from './constants.js'; - -export default class Utils { - /** - * Get first matched item for a string - * @param {RegExp} regexp - * @param {String} ua - * @return {Array|{index: number, input: string}|*|boolean|string} - */ - static getFirstMatch(regexp, ua) { - const match = ua.match(regexp); - return (match && match.length > 0 && match[1]) || ''; - } - - /** - * Get second matched item for a string - * @param regexp - * @param {String} ua - * @return {Array|{index: number, input: string}|*|boolean|string} - */ - static getSecondMatch(regexp, ua) { - const match = ua.match(regexp); - return (match && match.length > 1 && match[2]) || ''; - } - - /** - * Match a regexp and return a constant or undefined - * @param {RegExp} regexp - * @param {String} ua - * @param {*} _const Any const that will be returned if regexp matches the string - * @return {*} - */ - static matchAndReturnConst(regexp, ua, _const) { - if (regexp.test(ua)) { - return _const; - } - return void (0); - } - - static getWindowsVersionName(version) { - switch (version) { - case 'NT': return 'NT'; - case 'XP': return 'XP'; - case 'NT 5.0': return '2000'; - case 'NT 5.1': return 'XP'; - case 'NT 5.2': return '2003'; - case 'NT 6.0': return 'Vista'; - case 'NT 6.1': return '7'; - case 'NT 6.2': return '8'; - case 'NT 6.3': return '8.1'; - case 'NT 10.0': return '10'; - default: return undefined; - } - } - - /** - * Get macOS version name - * 10.5 - Leopard - * 10.6 - Snow Leopard - * 10.7 - Lion - * 10.8 - Mountain Lion - * 10.9 - Mavericks - * 10.10 - Yosemite - * 10.11 - El Capitan - * 10.12 - Sierra - * 10.13 - High Sierra - * 10.14 - Mojave - * 10.15 - Catalina - * - * @example - * getMacOSVersionName("10.14") // 'Mojave' - * - * @param {string} version - * @return {string} versionName - */ - static getMacOSVersionName(version) { - const v = version.split('.').splice(0, 2).map(s => parseInt(s, 10) || 0); - v.push(0); - if (v[0] !== 10) return undefined; - switch (v[1]) { - case 5: return 'Leopard'; - case 6: return 'Snow Leopard'; - case 7: return 'Lion'; - case 8: return 'Mountain Lion'; - case 9: return 'Mavericks'; - case 10: return 'Yosemite'; - case 11: return 'El Capitan'; - case 12: return 'Sierra'; - case 13: return 'High Sierra'; - case 14: return 'Mojave'; - case 15: return 'Catalina'; - default: return undefined; - } - } - - /** - * Get Android version name - * 1.5 - Cupcake - * 1.6 - Donut - * 2.0 - Eclair - * 2.1 - Eclair - * 2.2 - Froyo - * 2.x - Gingerbread - * 3.x - Honeycomb - * 4.0 - Ice Cream Sandwich - * 4.1 - Jelly Bean - * 4.4 - KitKat - * 5.x - Lollipop - * 6.x - Marshmallow - * 7.x - Nougat - * 8.x - Oreo - * 9.x - Pie - * - * @example - * getAndroidVersionName("7.0") // 'Nougat' - * - * @param {string} version - * @return {string} versionName - */ - static getAndroidVersionName(version) { - const v = version.split('.').splice(0, 2).map(s => parseInt(s, 10) || 0); - v.push(0); - if (v[0] === 1 && v[1] < 5) return undefined; - if (v[0] === 1 && v[1] < 6) return 'Cupcake'; - if (v[0] === 1 && v[1] >= 6) return 'Donut'; - if (v[0] === 2 && v[1] < 2) return 'Eclair'; - if (v[0] === 2 && v[1] === 2) return 'Froyo'; - if (v[0] === 2 && v[1] > 2) return 'Gingerbread'; - if (v[0] === 3) return 'Honeycomb'; - if (v[0] === 4 && v[1] < 1) return 'Ice Cream Sandwich'; - if (v[0] === 4 && v[1] < 4) return 'Jelly Bean'; - if (v[0] === 4 && v[1] >= 4) return 'KitKat'; - if (v[0] === 5) return 'Lollipop'; - if (v[0] === 6) return 'Marshmallow'; - if (v[0] === 7) return 'Nougat'; - if (v[0] === 8) return 'Oreo'; - if (v[0] === 9) return 'Pie'; - return undefined; - } - - /** - * Get version precisions count - * - * @example - * getVersionPrecision("1.10.3") // 3 - * - * @param {string} version - * @return {number} - */ - static getVersionPrecision(version) { - return version.split('.').length; - } - - /** - * Calculate browser version weight - * - * @example - * compareVersions('1.10.2.1', '1.8.2.1.90') // 1 - * compareVersions('1.010.2.1', '1.09.2.1.90'); // 1 - * compareVersions('1.10.2.1', '1.10.2.1'); // 0 - * compareVersions('1.10.2.1', '1.0800.2'); // -1 - * compareVersions('1.10.2.1', '1.10', true); // 0 - * - * @param {String} versionA versions versions to compare - * @param {String} versionB versions versions to compare - * @param {boolean} [isLoose] enable loose comparison - * @return {Number} comparison result: -1 when versionA is lower, - * 1 when versionA is bigger, 0 when both equal - */ - /* eslint consistent-return: 1 */ - static compareVersions(versionA, versionB, isLoose = false) { - // 1) get common precision for both versions, for example for "10.0" and "9" it should be 2 - const versionAPrecision = Utils.getVersionPrecision(versionA); - const versionBPrecision = Utils.getVersionPrecision(versionB); - - let precision = Math.max(versionAPrecision, versionBPrecision); - let lastPrecision = 0; - - const chunks = Utils.map([versionA, versionB], (version) => { - const delta = precision - Utils.getVersionPrecision(version); - - // 2) "9" -> "9.0" (for precision = 2) - const _version = version + new Array(delta + 1).join('.0'); - - // 3) "9.0" -> ["000000000"", "000000009"] - return Utils.map(_version.split('.'), chunk => new Array(20 - chunk.length).join('0') + chunk).reverse(); - }); - - // adjust precision for loose comparison - if (isLoose) { - lastPrecision = precision - Math.min(versionAPrecision, versionBPrecision); - } - - // iterate in reverse order by reversed chunks array - precision -= 1; - while (precision >= lastPrecision) { - // 4) compare: "000000009" > "000000010" = false (but "9" > "10" = true) - if (chunks[0][precision] > chunks[1][precision]) { - return 1; - } - - if (chunks[0][precision] === chunks[1][precision]) { - if (precision === lastPrecision) { - // all version chunks are same - return 0; - } - - precision -= 1; - } else if (chunks[0][precision] < chunks[1][precision]) { - return -1; - } - } - - return undefined; - } - - /** - * Array::map polyfill - * - * @param {Array} arr - * @param {Function} iterator - * @return {Array} - */ - static map(arr, iterator) { - const result = []; - let i; - if (Array.prototype.map) { - return Array.prototype.map.call(arr, iterator); - } - for (i = 0; i < arr.length; i += 1) { - result.push(iterator(arr[i])); - } - return result; - } - - /** - * Array::find polyfill - * - * @param {Array} arr - * @param {Function} predicate - * @return {Array} - */ - static find(arr, predicate) { - let i; - let l; - if (Array.prototype.find) { - return Array.prototype.find.call(arr, predicate); - } - for (i = 0, l = arr.length; i < l; i += 1) { - const value = arr[i]; - if (predicate(value, i)) { - return value; - } - } - return undefined; - } - - /** - * Object::assign polyfill - * - * @param {Object} obj - * @param {Object} ...objs - * @return {Object} - */ - static assign(obj, ...assigners) { - const result = obj; - let i; - let l; - if (Object.assign) { - return Object.assign(obj, ...assigners); - } - for (i = 0, l = assigners.length; i < l; i += 1) { - const assigner = assigners[i]; - if (typeof assigner === 'object' && assigner !== null) { - const keys = Object.keys(assigner); - keys.forEach((key) => { - result[key] = assigner[key]; - }); - } - } - return obj; - } - - /** - * Get short version/alias for a browser name - * - * @example - * getBrowserAlias('Microsoft Edge') // edge - * - * @param {string} browserName - * @return {string} - */ - static getBrowserAlias(browserName) { - return BROWSER_ALIASES_MAP[browserName]; - } - - /** - * Get short version/alias for a browser name - * - * @example - * getBrowserAlias('edge') // Microsoft Edge - * - * @param {string} browserAlias - * @return {string} - */ - static getBrowserTypeByAlias(browserAlias) { - return BROWSER_MAP[browserAlias] || ''; - } -} diff --git a/node_modules/bufferutil/LICENSE b/node_modules/bufferutil/LICENSE deleted file mode 100644 index 1da5b96a..00000000 --- a/node_modules/bufferutil/LICENSE +++ /dev/null @@ -1,20 +0,0 @@ -Copyright (c) 2011 Einar Otto Stangvik -Copyright (c) 2013 Arnout Kazemier and contributors -Copyright (c) 2016 Luigi Pinca and contributors - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/bufferutil/README.md b/node_modules/bufferutil/README.md deleted file mode 100644 index 6dc056ef..00000000 --- a/node_modules/bufferutil/README.md +++ /dev/null @@ -1,78 +0,0 @@ -# bufferutil - -[![Version npm](https://img.shields.io/npm/v/bufferutil.svg?logo=npm)](https://www.npmjs.com/package/bufferutil) -[![Linux/macOS/Windows Build](https://img.shields.io/github/actions/workflow/status/websockets/bufferutil/ci.yml?branch=master&label=build&logo=github)](https://github.com/websockets/bufferutil/actions?query=workflow%3ACI+branch%3Amaster) - -`bufferutil` is what makes `ws` fast. It provides some utilities to efficiently -perform some operations such as masking and unmasking the data payload of -WebSocket frames. - -## Installation - -``` -npm install bufferutil --save-optional -``` - -The `--save-optional` flag tells npm to save the package in your package.json -under the -[`optionalDependencies`](https://docs.npmjs.com/files/package.json#optionaldependencies) -key. - -## API - -The module exports two functions. - -### `bufferUtil.mask(source, mask, output, offset, length)` - -Masks a buffer using the given masking-key as specified by the WebSocket -protocol. - -#### Arguments - -- `source` - The buffer to mask. -- `mask` - A buffer representing the masking-key. -- `output` - The buffer where to store the result. -- `offset` - The offset at which to start writing. -- `length` - The number of bytes to mask. - -#### Example - -```js -'use strict'; - -const bufferUtil = require('bufferutil'); -const crypto = require('crypto'); - -const source = crypto.randomBytes(10); -const mask = crypto.randomBytes(4); - -bufferUtil.mask(source, mask, source, 0, source.length); -``` - -### `bufferUtil.unmask(buffer, mask)` - -Unmasks a buffer using the given masking-key as specified by the WebSocket -protocol. - -#### Arguments - -- `buffer` - The buffer to unmask. -- `mask` - A buffer representing the masking-key. - -#### Example - -```js -'use strict'; - -const bufferUtil = require('bufferutil'); -const crypto = require('crypto'); - -const buffer = crypto.randomBytes(10); -const mask = crypto.randomBytes(4); - -bufferUtil.unmask(buffer, mask); -``` - -## License - -[MIT](LICENSE) diff --git a/node_modules/bufferutil/binding.gyp b/node_modules/bufferutil/binding.gyp deleted file mode 100644 index 168b58ac..00000000 --- a/node_modules/bufferutil/binding.gyp +++ /dev/null @@ -1,29 +0,0 @@ -{ - 'targets': [ - { - 'target_name': 'bufferutil', - 'sources': ['src/bufferutil.c'], - 'cflags': ['-std=c99'], - 'conditions': [ - ["OS=='mac'", { - 'variables': { - 'clang_version': - '&1 | perl -ne \'print $1 if /clang version ([0-9]+(\.[0-9]+){2,})/\')' - }, - 'xcode_settings': { - 'MACOSX_DEPLOYMENT_TARGET': '10.7' - }, - 'conditions': [ - # Use Perl v-strings to compare versions. - ['clang_version and { - for (var i = 0; i < length; i++) { - output[offset + i] = source[i] ^ mask[i & 3]; - } -}; - -/** - * Unmasks a buffer using the given mask. - * - * @param {Buffer} buffer The buffer to unmask - * @param {Buffer} mask The mask to use - * @public - */ -const unmask = (buffer, mask) => { - // Required until https://github.com/nodejs/node/issues/9006 is resolved. - const length = buffer.length; - for (var i = 0; i < length; i++) { - buffer[i] ^= mask[i & 3]; - } -}; - -module.exports = { mask, unmask }; diff --git a/node_modules/bufferutil/index.js b/node_modules/bufferutil/index.js deleted file mode 100644 index 8c30561a..00000000 --- a/node_modules/bufferutil/index.js +++ /dev/null @@ -1,7 +0,0 @@ -'use strict'; - -try { - module.exports = require('node-gyp-build')(__dirname); -} catch (e) { - module.exports = require('./fallback'); -} diff --git a/node_modules/bufferutil/package.json b/node_modules/bufferutil/package.json deleted file mode 100644 index 85189519..00000000 --- a/node_modules/bufferutil/package.json +++ /dev/null @@ -1,36 +0,0 @@ -{ - "name": "bufferutil", - "version": "4.0.8", - "description": "WebSocket buffer utils", - "main": "index.js", - "engines": { - "node": ">=6.14.2" - }, - "scripts": { - "install": "node-gyp-build", - "prebuild": "prebuildify --napi --strip --target=14.0.0", - "prebuild-darwin-x64+arm64": "prebuildify --arch x64+arm64 --napi --strip --target=14.0.0", - "test": "mocha" - }, - "repository": { - "type": "git", - "url": "https://github.com/websockets/bufferutil" - }, - "keywords": [ - "bufferutil" - ], - "author": "Einar Otto Stangvik (http://2x.io)", - "license": "MIT", - "bugs": { - "url": "https://github.com/websockets/bufferutil/issues" - }, - "homepage": "https://github.com/websockets/bufferutil", - "dependencies": { - "node-gyp-build": "^4.3.0" - }, - "devDependencies": { - "mocha": "^10.0.0", - "node-gyp": "^9.1.0", - "prebuildify": "^5.0.0" - } -} diff --git a/node_modules/bufferutil/prebuilds/darwin-x64+arm64/node.napi.node b/node_modules/bufferutil/prebuilds/darwin-x64+arm64/node.napi.node deleted file mode 100644 index 0840a8bd..00000000 Binary files a/node_modules/bufferutil/prebuilds/darwin-x64+arm64/node.napi.node and /dev/null differ diff --git a/node_modules/bufferutil/prebuilds/linux-x64/node.napi.node b/node_modules/bufferutil/prebuilds/linux-x64/node.napi.node deleted file mode 100644 index b30f827b..00000000 Binary files a/node_modules/bufferutil/prebuilds/linux-x64/node.napi.node and /dev/null differ diff --git a/node_modules/bufferutil/prebuilds/win32-ia32/node.napi.node b/node_modules/bufferutil/prebuilds/win32-ia32/node.napi.node deleted file mode 100644 index 0af1011f..00000000 Binary files a/node_modules/bufferutil/prebuilds/win32-ia32/node.napi.node and /dev/null differ diff --git a/node_modules/bufferutil/prebuilds/win32-x64/node.napi.node b/node_modules/bufferutil/prebuilds/win32-x64/node.napi.node deleted file mode 100644 index f4ba07f8..00000000 Binary files a/node_modules/bufferutil/prebuilds/win32-x64/node.napi.node and /dev/null differ diff --git a/node_modules/bufferutil/src/bufferutil.c b/node_modules/bufferutil/src/bufferutil.c deleted file mode 100644 index b89f8dd1..00000000 --- a/node_modules/bufferutil/src/bufferutil.c +++ /dev/null @@ -1,171 +0,0 @@ -#define NAPI_VERSION 1 -#include -#include - -napi_value Mask(napi_env env, napi_callback_info info) { - napi_status status; - size_t argc = 5; - napi_value argv[5]; - - status = napi_get_cb_info(env, info, &argc, argv, NULL, NULL); - assert(status == napi_ok); - - uint8_t *source; - uint8_t *mask; - uint8_t *destination; - uint32_t offset; - uint32_t length; - - status = napi_get_buffer_info(env, argv[0], (void **)&source, NULL); - assert(status == napi_ok); - - status = napi_get_buffer_info(env, argv[1], (void **)&mask, NULL); - assert(status == napi_ok); - - status = napi_get_buffer_info(env, argv[2], (void **)&destination, NULL); - assert(status == napi_ok); - - status = napi_get_value_uint32(env, argv[3], &offset); - assert(status == napi_ok); - - status = napi_get_value_uint32(env, argv[4], &length); - assert(status == napi_ok); - - destination += offset; - uint32_t index = 0; - - // - // Alignment preamble. - // - while (index < length && ((size_t)source % 8)) { - *destination++ = *source++ ^ mask[index % 4]; - index++; - } - - length -= index; - if (!length) - return NULL; - - // - // Realign mask and convert to 64 bit. - // - uint8_t maskAlignedArray[8]; - - for (uint8_t i = 0; i < 8; i++, index++) { - maskAlignedArray[i] = mask[index % 4]; - } - - // - // Apply 64 bit mask in 8 byte chunks. - // - uint32_t loop = length / 8; - uint64_t *pMask8 = (uint64_t *)maskAlignedArray; - - while (loop--) { - uint64_t *pFrom8 = (uint64_t *)source; - uint64_t *pTo8 = (uint64_t *)destination; - *pTo8 = *pFrom8 ^ *pMask8; - source += 8; - destination += 8; - } - - // - // Apply mask to remaining data. - // - uint8_t *pmaskAlignedArray = maskAlignedArray; - - length %= 8; - while (length--) { - *destination++ = *source++ ^ *pmaskAlignedArray++; - } - - return NULL; -} - -napi_value Unmask(napi_env env, napi_callback_info info) { - napi_status status; - size_t argc = 2; - napi_value argv[2]; - - status = napi_get_cb_info(env, info, &argc, argv, NULL, NULL); - assert(status == napi_ok); - - uint8_t *source; - size_t length; - uint8_t *mask; - - status = napi_get_buffer_info(env, argv[0], (void **)&source, &length); - assert(status == napi_ok); - - status = napi_get_buffer_info(env, argv[1], (void **)&mask, NULL); - assert(status == napi_ok); - - uint32_t index = 0; - - // - // Alignment preamble. - // - while (index < length && ((size_t)source % 8)) { - *source++ ^= mask[index % 4]; - index++; - } - - length -= index; - if (!length) - return NULL; - - // - // Realign mask and convert to 64 bit. - // - uint8_t maskAlignedArray[8]; - - for (uint8_t i = 0; i < 8; i++, index++) { - maskAlignedArray[i] = mask[index % 4]; - } - - // - // Apply 64 bit mask in 8 byte chunks. - // - uint32_t loop = length / 8; - uint64_t *pMask8 = (uint64_t *)maskAlignedArray; - - while (loop--) { - uint64_t *pSource8 = (uint64_t *)source; - *pSource8 ^= *pMask8; - source += 8; - } - - // - // Apply mask to remaining data. - // - uint8_t *pmaskAlignedArray = maskAlignedArray; - - length %= 8; - while (length--) { - *source++ ^= *pmaskAlignedArray++; - } - - return NULL; -} - -napi_value Init(napi_env env, napi_value exports) { - napi_status status; - napi_value mask; - napi_value unmask; - - status = napi_create_function(env, NULL, 0, Mask, NULL, &mask); - assert(status == napi_ok); - - status = napi_create_function(env, NULL, 0, Unmask, NULL, &unmask); - assert(status == napi_ok); - - status = napi_set_named_property(env, exports, "mask", mask); - assert(status == napi_ok); - - status = napi_set_named_property(env, exports, "unmask", unmask); - assert(status == napi_ok); - - return exports; -} - -NAPI_MODULE(NODE_GYP_MODULE_NAME, Init) diff --git a/node_modules/cross-fetch/CHANGELOG.md b/node_modules/cross-fetch/CHANGELOG.md deleted file mode 100644 index 2e432a6c..00000000 --- a/node_modules/cross-fetch/CHANGELOG.md +++ /dev/null @@ -1,5 +0,0 @@ -# Changelog - -All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. - -## [4.0.0](https://github.com/lquixada/cross-fetch/compare/v4.0.0-alpha.13...v4.0.0) (2023-07-03) diff --git a/node_modules/cross-fetch/LICENSE b/node_modules/cross-fetch/LICENSE deleted file mode 100644 index 9198b86f..00000000 --- a/node_modules/cross-fetch/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2017 Leonardo Quixadá - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/node_modules/cross-fetch/README.md b/node_modules/cross-fetch/README.md deleted file mode 100644 index 5e38a167..00000000 --- a/node_modules/cross-fetch/README.md +++ /dev/null @@ -1,165 +0,0 @@ -cross-fetch
-[![NPM Version](https://img.shields.io/npm/v/cross-fetch.svg?branch=main)](https://www.npmjs.com/package/cross-fetch) -[![Downloads Per Week](https://img.shields.io/npm/dw/cross-fetch.svg?color=blue)](https://www.npmjs.com/package/cross-fetch) -[![License: MIT](https://img.shields.io/badge/License-MIT-blue.svg)](https://opensource.org/licenses/MIT) -[![CI](https://github.com/lquixada/cross-fetch/actions/workflows/ci.yml/badge.svg)](https://github.com/lquixada/cross-fetch/actions/workflows/ci.yml) -[![codecov](https://codecov.io/gh/lquixada/cross-fetch/branch/main/graph/badge.svg)](https://codecov.io/gh/lquixada/cross-fetch) -================ - -Universal WHATWG Fetch API for Node, Browsers, Workers and React Native. The scenario that cross-fetch really shines is when the same JavaScript codebase needs to run on different platforms. - -- **Platform agnostic**: browsers, Node or React Native -- **Optional polyfill**: it's up to you if something is going to be added to the global object or not -- **Simple interface**: no instantiation, no configuration and no extra dependency -- **WHATWG compliant**: it works the same way wherever your code runs -- **TypeScript support**: better development experience with types. -- **Worker support**: works on different types of workers such as Service Workers and CloudFlare Workers - - -* * * - -## Table of Contents - -- [Table of Contents](#table-of-contents) -- [Install](#install) -- [Usage](#usage) -- [Demo \& API](#demo--api) -- [FAQ](#faq) - - [Yet another fetch library?](#yet-another-fetch-library) - - [Why polyfill might not be a good idea?](#why-polyfill-might-not-be-a-good-idea) - - [How does cross-fetch work?](#how-does-cross-fetch-work) -- [Who's Using It?](#whos-using-it) -- [Thanks](#thanks) -- [License](#license) -- [Author](#author) - -* * * - -## Install - -```sh -npm install --save cross-fetch -``` - -As a [ponyfill](https://github.com/sindresorhus/ponyfill) (imports locally): - -```javascript -// Using ES6 modules with Babel or TypeScript -import fetch from 'cross-fetch'; - -// Using CommonJS modules -const fetch = require('cross-fetch'); -``` - -As a polyfill (installs globally): - -```javascript -// Using ES6 modules -import 'cross-fetch/polyfill'; - -// Using CommonJS modules -require('cross-fetch/polyfill'); -``` - - -The CDN build is also available on unpkg: - -```html - -``` - -This adds the fetch function to the window object. Note that this is not UMD compatible. - - -* * * - -## Usage - -With [promises](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Promise): - -```javascript -import fetch from 'cross-fetch'; -// Or just: import 'cross-fetch/polyfill'; - -fetch('//api.github.com/users/lquixada') - .then(res => { - if (res.status >= 400) { - throw new Error("Bad response from server"); - } - return res.json(); - }) - .then(user => { - console.log(user); - }) - .catch(err => { - console.error(err); - }); -``` - -With [async/await](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/async_function): - -```javascript -import fetch from 'cross-fetch'; -// Or just: import 'cross-fetch/polyfill'; - -(async () => { - try { - const res = await fetch('//api.github.com/users/lquixada'); - - if (res.status >= 400) { - throw new Error("Bad response from server"); - } - - const user = await res.json(); - - console.log(user); - } catch (err) { - console.error(err); - } -})(); -``` - -## Demo & API - -You can find a comprehensive doc at [Github's fetch](https://github.github.io/fetch/) page. If you want to play with cross-fetch, check our [**JSFiddle playground**](https://jsfiddle.net/lquixada/3ypqgacp/). - -> **Tip**: Run the fiddle on various browsers and with different settings (for instance: cross-domain requests, wrong urls or text requests). Don't forget to open the console in the test suite page and play around. - - -## FAQ - -#### Yet another fetch library? - -I did a lot of research in order to find a fetch library that could be simple, cross-platform and provide polyfill as an option. There's a plethora of libs out there but none could match those requirements. - -#### Why polyfill might not be a good idea? - -In a word? Risk. If the spec changes in the future, it might be problematic to debug. Read more about it on [sindresorhus's ponyfill](https://github.com/sindresorhus/ponyfill#how-are-ponyfills-better-than-polyfills) page. It's up to you if you're fine with it or not. - -#### How does cross-fetch work? - -Just like isomorphic-fetch, it is just a proxy. If you're in node, it delivers you the [node-fetch](https://github.com/bitinn/node-fetch/) library, if you're in a browser or React Native, it delivers you the github's [whatwg-fetch](https://github.com/github/fetch/). The same strategy applies whether you're using polyfill or ponyfill. - - -## Who's Using It? - -|[![The New York Times](./docs/images/logo-nytimes.png)](https://www.nytimes.com/)|[![Apollo GraphQL](./docs/images/logo-apollo.png)](https://github.com/apollographql/apollo-client/)|[![Facebook](./docs/images/logo-facebook.png)](https://github.com/facebook/fbjs/)|[![Swagger](./docs/images/logo-swagger.png)](https://swagger.io/)|[![VulcanJS](./docs/images/logo-vulcanjs.png)](http://vulcanjs.org)|[![graphql-request](./docs/images/logo-graphql-request.png)](https://github.com/prisma/graphql-request)| -|:---:|:---:|:---:|:---:|:---:|:---:| -|The New York Times|Apollo GraphQL|Facebook|Swagger|VulcanJS|graphql-request| - - -## Thanks - -Heavily inspired by the works of [matthew-andrews](https://github.com/matthew-andrews). Kudos to him! - - -## License - -cross-fetch is licensed under the [MIT license](https://github.com/lquixada/cross-fetch/blob/main/LICENSE) © [Leonardo Quixadá](https://twitter.com/lquixada/) - - -## Author - -|[![@lquixada](https://avatars0.githubusercontent.com/u/195494?v=4&s=96)](https://github.com/lquixada)| -|:---:| -|[@lquixada](http://www.github.com/lquixada)| diff --git a/node_modules/cross-fetch/dist/browser-polyfill.js b/node_modules/cross-fetch/dist/browser-polyfill.js deleted file mode 100644 index 74c42c00..00000000 --- a/node_modules/cross-fetch/dist/browser-polyfill.js +++ /dev/null @@ -1,619 +0,0 @@ -(function(self) { - -var irrelevant = (function (exports) { - - var global = - (typeof globalThis !== 'undefined' && globalThis) || - (typeof self !== 'undefined' && self) || - (typeof global !== 'undefined' && global); - - var support = { - searchParams: 'URLSearchParams' in global, - iterable: 'Symbol' in global && 'iterator' in Symbol, - blob: - 'FileReader' in global && - 'Blob' in global && - (function() { - try { - new Blob(); - return true - } catch (e) { - return false - } - })(), - formData: 'FormData' in global, - arrayBuffer: 'ArrayBuffer' in global - }; - - function isDataView(obj) { - return obj && DataView.prototype.isPrototypeOf(obj) - } - - if (support.arrayBuffer) { - var viewClasses = [ - '[object Int8Array]', - '[object Uint8Array]', - '[object Uint8ClampedArray]', - '[object Int16Array]', - '[object Uint16Array]', - '[object Int32Array]', - '[object Uint32Array]', - '[object Float32Array]', - '[object Float64Array]' - ]; - - var isArrayBufferView = - ArrayBuffer.isView || - function(obj) { - return obj && viewClasses.indexOf(Object.prototype.toString.call(obj)) > -1 - }; - } - - function normalizeName(name) { - if (typeof name !== 'string') { - name = String(name); - } - if (/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(name) || name === '') { - throw new TypeError('Invalid character in header field name: "' + name + '"') - } - return name.toLowerCase() - } - - function normalizeValue(value) { - if (typeof value !== 'string') { - value = String(value); - } - return value - } - - // Build a destructive iterator for the value list - function iteratorFor(items) { - var iterator = { - next: function() { - var value = items.shift(); - return {done: value === undefined, value: value} - } - }; - - if (support.iterable) { - iterator[Symbol.iterator] = function() { - return iterator - }; - } - - return iterator - } - - function Headers(headers) { - this.map = {}; - - if (headers instanceof Headers) { - headers.forEach(function(value, name) { - this.append(name, value); - }, this); - } else if (Array.isArray(headers)) { - headers.forEach(function(header) { - this.append(header[0], header[1]); - }, this); - } else if (headers) { - Object.getOwnPropertyNames(headers).forEach(function(name) { - this.append(name, headers[name]); - }, this); - } - } - - Headers.prototype.append = function(name, value) { - name = normalizeName(name); - value = normalizeValue(value); - var oldValue = this.map[name]; - this.map[name] = oldValue ? oldValue + ', ' + value : value; - }; - - Headers.prototype['delete'] = function(name) { - delete this.map[normalizeName(name)]; - }; - - Headers.prototype.get = function(name) { - name = normalizeName(name); - return this.has(name) ? this.map[name] : null - }; - - Headers.prototype.has = function(name) { - return this.map.hasOwnProperty(normalizeName(name)) - }; - - Headers.prototype.set = function(name, value) { - this.map[normalizeName(name)] = normalizeValue(value); - }; - - Headers.prototype.forEach = function(callback, thisArg) { - for (var name in this.map) { - if (this.map.hasOwnProperty(name)) { - callback.call(thisArg, this.map[name], name, this); - } - } - }; - - Headers.prototype.keys = function() { - var items = []; - this.forEach(function(value, name) { - items.push(name); - }); - return iteratorFor(items) - }; - - Headers.prototype.values = function() { - var items = []; - this.forEach(function(value) { - items.push(value); - }); - return iteratorFor(items) - }; - - Headers.prototype.entries = function() { - var items = []; - this.forEach(function(value, name) { - items.push([name, value]); - }); - return iteratorFor(items) - }; - - if (support.iterable) { - Headers.prototype[Symbol.iterator] = Headers.prototype.entries; - } - - function consumed(body) { - if (body.bodyUsed) { - return Promise.reject(new TypeError('Already read')) - } - body.bodyUsed = true; - } - - function fileReaderReady(reader) { - return new Promise(function(resolve, reject) { - reader.onload = function() { - resolve(reader.result); - }; - reader.onerror = function() { - reject(reader.error); - }; - }) - } - - function readBlobAsArrayBuffer(blob) { - var reader = new FileReader(); - var promise = fileReaderReady(reader); - reader.readAsArrayBuffer(blob); - return promise - } - - function readBlobAsText(blob) { - var reader = new FileReader(); - var promise = fileReaderReady(reader); - reader.readAsText(blob); - return promise - } - - function readArrayBufferAsText(buf) { - var view = new Uint8Array(buf); - var chars = new Array(view.length); - - for (var i = 0; i < view.length; i++) { - chars[i] = String.fromCharCode(view[i]); - } - return chars.join('') - } - - function bufferClone(buf) { - if (buf.slice) { - return buf.slice(0) - } else { - var view = new Uint8Array(buf.byteLength); - view.set(new Uint8Array(buf)); - return view.buffer - } - } - - function Body() { - this.bodyUsed = false; - - this._initBody = function(body) { - /* - fetch-mock wraps the Response object in an ES6 Proxy to - provide useful test harness features such as flush. However, on - ES5 browsers without fetch or Proxy support pollyfills must be used; - the proxy-pollyfill is unable to proxy an attribute unless it exists - on the object before the Proxy is created. This change ensures - Response.bodyUsed exists on the instance, while maintaining the - semantic of setting Request.bodyUsed in the constructor before - _initBody is called. - */ - this.bodyUsed = this.bodyUsed; - this._bodyInit = body; - if (!body) { - this._bodyText = ''; - } else if (typeof body === 'string') { - this._bodyText = body; - } else if (support.blob && Blob.prototype.isPrototypeOf(body)) { - this._bodyBlob = body; - } else if (support.formData && FormData.prototype.isPrototypeOf(body)) { - this._bodyFormData = body; - } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) { - this._bodyText = body.toString(); - } else if (support.arrayBuffer && support.blob && isDataView(body)) { - this._bodyArrayBuffer = bufferClone(body.buffer); - // IE 10-11 can't handle a DataView body. - this._bodyInit = new Blob([this._bodyArrayBuffer]); - } else if (support.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(body) || isArrayBufferView(body))) { - this._bodyArrayBuffer = bufferClone(body); - } else { - this._bodyText = body = Object.prototype.toString.call(body); - } - - if (!this.headers.get('content-type')) { - if (typeof body === 'string') { - this.headers.set('content-type', 'text/plain;charset=UTF-8'); - } else if (this._bodyBlob && this._bodyBlob.type) { - this.headers.set('content-type', this._bodyBlob.type); - } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) { - this.headers.set('content-type', 'application/x-www-form-urlencoded;charset=UTF-8'); - } - } - }; - - if (support.blob) { - this.blob = function() { - var rejected = consumed(this); - if (rejected) { - return rejected - } - - if (this._bodyBlob) { - return Promise.resolve(this._bodyBlob) - } else if (this._bodyArrayBuffer) { - return Promise.resolve(new Blob([this._bodyArrayBuffer])) - } else if (this._bodyFormData) { - throw new Error('could not read FormData body as blob') - } else { - return Promise.resolve(new Blob([this._bodyText])) - } - }; - - this.arrayBuffer = function() { - if (this._bodyArrayBuffer) { - var isConsumed = consumed(this); - if (isConsumed) { - return isConsumed - } - if (ArrayBuffer.isView(this._bodyArrayBuffer)) { - return Promise.resolve( - this._bodyArrayBuffer.buffer.slice( - this._bodyArrayBuffer.byteOffset, - this._bodyArrayBuffer.byteOffset + this._bodyArrayBuffer.byteLength - ) - ) - } else { - return Promise.resolve(this._bodyArrayBuffer) - } - } else { - return this.blob().then(readBlobAsArrayBuffer) - } - }; - } - - this.text = function() { - var rejected = consumed(this); - if (rejected) { - return rejected - } - - if (this._bodyBlob) { - return readBlobAsText(this._bodyBlob) - } else if (this._bodyArrayBuffer) { - return Promise.resolve(readArrayBufferAsText(this._bodyArrayBuffer)) - } else if (this._bodyFormData) { - throw new Error('could not read FormData body as text') - } else { - return Promise.resolve(this._bodyText) - } - }; - - if (support.formData) { - this.formData = function() { - return this.text().then(decode) - }; - } - - this.json = function() { - return this.text().then(JSON.parse) - }; - - return this - } - - // HTTP methods whose capitalization should be normalized - var methods = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT']; - - function normalizeMethod(method) { - var upcased = method.toUpperCase(); - return methods.indexOf(upcased) > -1 ? upcased : method - } - - function Request(input, options) { - if (!(this instanceof Request)) { - throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.') - } - - options = options || {}; - var body = options.body; - - if (input instanceof Request) { - if (input.bodyUsed) { - throw new TypeError('Already read') - } - this.url = input.url; - this.credentials = input.credentials; - if (!options.headers) { - this.headers = new Headers(input.headers); - } - this.method = input.method; - this.mode = input.mode; - this.signal = input.signal; - if (!body && input._bodyInit != null) { - body = input._bodyInit; - input.bodyUsed = true; - } - } else { - this.url = String(input); - } - - this.credentials = options.credentials || this.credentials || 'same-origin'; - if (options.headers || !this.headers) { - this.headers = new Headers(options.headers); - } - this.method = normalizeMethod(options.method || this.method || 'GET'); - this.mode = options.mode || this.mode || null; - this.signal = options.signal || this.signal; - this.referrer = null; - - if ((this.method === 'GET' || this.method === 'HEAD') && body) { - throw new TypeError('Body not allowed for GET or HEAD requests') - } - this._initBody(body); - - if (this.method === 'GET' || this.method === 'HEAD') { - if (options.cache === 'no-store' || options.cache === 'no-cache') { - // Search for a '_' parameter in the query string - var reParamSearch = /([?&])_=[^&]*/; - if (reParamSearch.test(this.url)) { - // If it already exists then set the value with the current time - this.url = this.url.replace(reParamSearch, '$1_=' + new Date().getTime()); - } else { - // Otherwise add a new '_' parameter to the end with the current time - var reQueryString = /\?/; - this.url += (reQueryString.test(this.url) ? '&' : '?') + '_=' + new Date().getTime(); - } - } - } - } - - Request.prototype.clone = function() { - return new Request(this, {body: this._bodyInit}) - }; - - function decode(body) { - var form = new FormData(); - body - .trim() - .split('&') - .forEach(function(bytes) { - if (bytes) { - var split = bytes.split('='); - var name = split.shift().replace(/\+/g, ' '); - var value = split.join('=').replace(/\+/g, ' '); - form.append(decodeURIComponent(name), decodeURIComponent(value)); - } - }); - return form - } - - function parseHeaders(rawHeaders) { - var headers = new Headers(); - // Replace instances of \r\n and \n followed by at least one space or horizontal tab with a space - // https://tools.ietf.org/html/rfc7230#section-3.2 - var preProcessedHeaders = rawHeaders.replace(/\r?\n[\t ]+/g, ' '); - // Avoiding split via regex to work around a common IE11 bug with the core-js 3.6.0 regex polyfill - // https://github.com/github/fetch/issues/748 - // https://github.com/zloirock/core-js/issues/751 - preProcessedHeaders - .split('\r') - .map(function(header) { - return header.indexOf('\n') === 0 ? header.substr(1, header.length) : header - }) - .forEach(function(line) { - var parts = line.split(':'); - var key = parts.shift().trim(); - if (key) { - var value = parts.join(':').trim(); - headers.append(key, value); - } - }); - return headers - } - - Body.call(Request.prototype); - - function Response(bodyInit, options) { - if (!(this instanceof Response)) { - throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.') - } - if (!options) { - options = {}; - } - - this.type = 'default'; - this.status = options.status === undefined ? 200 : options.status; - this.ok = this.status >= 200 && this.status < 300; - this.statusText = options.statusText === undefined ? '' : '' + options.statusText; - this.headers = new Headers(options.headers); - this.url = options.url || ''; - this._initBody(bodyInit); - } - - Body.call(Response.prototype); - - Response.prototype.clone = function() { - return new Response(this._bodyInit, { - status: this.status, - statusText: this.statusText, - headers: new Headers(this.headers), - url: this.url - }) - }; - - Response.error = function() { - var response = new Response(null, {status: 0, statusText: ''}); - response.type = 'error'; - return response - }; - - var redirectStatuses = [301, 302, 303, 307, 308]; - - Response.redirect = function(url, status) { - if (redirectStatuses.indexOf(status) === -1) { - throw new RangeError('Invalid status code') - } - - return new Response(null, {status: status, headers: {location: url}}) - }; - - exports.DOMException = global.DOMException; - try { - new exports.DOMException(); - } catch (err) { - exports.DOMException = function(message, name) { - this.message = message; - this.name = name; - var error = Error(message); - this.stack = error.stack; - }; - exports.DOMException.prototype = Object.create(Error.prototype); - exports.DOMException.prototype.constructor = exports.DOMException; - } - - function fetch(input, init) { - return new Promise(function(resolve, reject) { - var request = new Request(input, init); - - if (request.signal && request.signal.aborted) { - return reject(new exports.DOMException('Aborted', 'AbortError')) - } - - var xhr = new XMLHttpRequest(); - - function abortXhr() { - xhr.abort(); - } - - xhr.onload = function() { - var options = { - status: xhr.status, - statusText: xhr.statusText, - headers: parseHeaders(xhr.getAllResponseHeaders() || '') - }; - options.url = 'responseURL' in xhr ? xhr.responseURL : options.headers.get('X-Request-URL'); - var body = 'response' in xhr ? xhr.response : xhr.responseText; - setTimeout(function() { - resolve(new Response(body, options)); - }, 0); - }; - - xhr.onerror = function() { - setTimeout(function() { - reject(new TypeError('Network request failed')); - }, 0); - }; - - xhr.ontimeout = function() { - setTimeout(function() { - reject(new TypeError('Network request failed')); - }, 0); - }; - - xhr.onabort = function() { - setTimeout(function() { - reject(new exports.DOMException('Aborted', 'AbortError')); - }, 0); - }; - - function fixUrl(url) { - try { - return url === '' && global.location.href ? global.location.href : url - } catch (e) { - return url - } - } - - xhr.open(request.method, fixUrl(request.url), true); - - if (request.credentials === 'include') { - xhr.withCredentials = true; - } else if (request.credentials === 'omit') { - xhr.withCredentials = false; - } - - if ('responseType' in xhr) { - if (support.blob) { - xhr.responseType = 'blob'; - } else if ( - support.arrayBuffer && - request.headers.get('Content-Type') && - request.headers.get('Content-Type').indexOf('application/octet-stream') !== -1 - ) { - xhr.responseType = 'arraybuffer'; - } - } - - if (init && typeof init.headers === 'object' && !(init.headers instanceof Headers)) { - Object.getOwnPropertyNames(init.headers).forEach(function(name) { - xhr.setRequestHeader(name, normalizeValue(init.headers[name])); - }); - } else { - request.headers.forEach(function(value, name) { - xhr.setRequestHeader(name, value); - }); - } - - if (request.signal) { - request.signal.addEventListener('abort', abortXhr); - - xhr.onreadystatechange = function() { - // DONE (success or failure) - if (xhr.readyState === 4) { - request.signal.removeEventListener('abort', abortXhr); - } - }; - } - - xhr.send(typeof request._bodyInit === 'undefined' ? null : request._bodyInit); - }) - } - - fetch.polyfill = true; - - if (!global.fetch) { - global.fetch = fetch; - global.Headers = Headers; - global.Request = Request; - global.Response = Response; - } - - exports.Headers = Headers; - exports.Request = Request; - exports.Response = Response; - exports.fetch = fetch; - - return exports; - -})({}); -})(typeof self !== 'undefined' ? self : this); diff --git a/node_modules/cross-fetch/dist/browser-ponyfill.js b/node_modules/cross-fetch/dist/browser-ponyfill.js deleted file mode 100644 index 6ecf75a1..00000000 --- a/node_modules/cross-fetch/dist/browser-ponyfill.js +++ /dev/null @@ -1,647 +0,0 @@ -// Save global object in a variable -var __global__ = -(typeof globalThis !== 'undefined' && globalThis) || -(typeof self !== 'undefined' && self) || -(typeof global !== 'undefined' && global); -// Create an object that extends from __global__ without the fetch function -var __globalThis__ = (function () { -function F() { -this.fetch = false; -this.DOMException = __global__.DOMException -} -F.prototype = __global__; // Needed for feature detection on whatwg-fetch's code -return new F(); -})(); -// Wraps whatwg-fetch with a function scope to hijack the global object -// "globalThis" that's going to be patched -(function(globalThis) { - -var irrelevant = (function (exports) { - - var global = - (typeof globalThis !== 'undefined' && globalThis) || - (typeof self !== 'undefined' && self) || - (typeof global !== 'undefined' && global); - - var support = { - searchParams: 'URLSearchParams' in global, - iterable: 'Symbol' in global && 'iterator' in Symbol, - blob: - 'FileReader' in global && - 'Blob' in global && - (function() { - try { - new Blob(); - return true - } catch (e) { - return false - } - })(), - formData: 'FormData' in global, - arrayBuffer: 'ArrayBuffer' in global - }; - - function isDataView(obj) { - return obj && DataView.prototype.isPrototypeOf(obj) - } - - if (support.arrayBuffer) { - var viewClasses = [ - '[object Int8Array]', - '[object Uint8Array]', - '[object Uint8ClampedArray]', - '[object Int16Array]', - '[object Uint16Array]', - '[object Int32Array]', - '[object Uint32Array]', - '[object Float32Array]', - '[object Float64Array]' - ]; - - var isArrayBufferView = - ArrayBuffer.isView || - function(obj) { - return obj && viewClasses.indexOf(Object.prototype.toString.call(obj)) > -1 - }; - } - - function normalizeName(name) { - if (typeof name !== 'string') { - name = String(name); - } - if (/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(name) || name === '') { - throw new TypeError('Invalid character in header field name: "' + name + '"') - } - return name.toLowerCase() - } - - function normalizeValue(value) { - if (typeof value !== 'string') { - value = String(value); - } - return value - } - - // Build a destructive iterator for the value list - function iteratorFor(items) { - var iterator = { - next: function() { - var value = items.shift(); - return {done: value === undefined, value: value} - } - }; - - if (support.iterable) { - iterator[Symbol.iterator] = function() { - return iterator - }; - } - - return iterator - } - - function Headers(headers) { - this.map = {}; - - if (headers instanceof Headers) { - headers.forEach(function(value, name) { - this.append(name, value); - }, this); - } else if (Array.isArray(headers)) { - headers.forEach(function(header) { - this.append(header[0], header[1]); - }, this); - } else if (headers) { - Object.getOwnPropertyNames(headers).forEach(function(name) { - this.append(name, headers[name]); - }, this); - } - } - - Headers.prototype.append = function(name, value) { - name = normalizeName(name); - value = normalizeValue(value); - var oldValue = this.map[name]; - this.map[name] = oldValue ? oldValue + ', ' + value : value; - }; - - Headers.prototype['delete'] = function(name) { - delete this.map[normalizeName(name)]; - }; - - Headers.prototype.get = function(name) { - name = normalizeName(name); - return this.has(name) ? this.map[name] : null - }; - - Headers.prototype.has = function(name) { - return this.map.hasOwnProperty(normalizeName(name)) - }; - - Headers.prototype.set = function(name, value) { - this.map[normalizeName(name)] = normalizeValue(value); - }; - - Headers.prototype.forEach = function(callback, thisArg) { - for (var name in this.map) { - if (this.map.hasOwnProperty(name)) { - callback.call(thisArg, this.map[name], name, this); - } - } - }; - - Headers.prototype.keys = function() { - var items = []; - this.forEach(function(value, name) { - items.push(name); - }); - return iteratorFor(items) - }; - - Headers.prototype.values = function() { - var items = []; - this.forEach(function(value) { - items.push(value); - }); - return iteratorFor(items) - }; - - Headers.prototype.entries = function() { - var items = []; - this.forEach(function(value, name) { - items.push([name, value]); - }); - return iteratorFor(items) - }; - - if (support.iterable) { - Headers.prototype[Symbol.iterator] = Headers.prototype.entries; - } - - function consumed(body) { - if (body.bodyUsed) { - return Promise.reject(new TypeError('Already read')) - } - body.bodyUsed = true; - } - - function fileReaderReady(reader) { - return new Promise(function(resolve, reject) { - reader.onload = function() { - resolve(reader.result); - }; - reader.onerror = function() { - reject(reader.error); - }; - }) - } - - function readBlobAsArrayBuffer(blob) { - var reader = new FileReader(); - var promise = fileReaderReady(reader); - reader.readAsArrayBuffer(blob); - return promise - } - - function readBlobAsText(blob) { - var reader = new FileReader(); - var promise = fileReaderReady(reader); - reader.readAsText(blob); - return promise - } - - function readArrayBufferAsText(buf) { - var view = new Uint8Array(buf); - var chars = new Array(view.length); - - for (var i = 0; i < view.length; i++) { - chars[i] = String.fromCharCode(view[i]); - } - return chars.join('') - } - - function bufferClone(buf) { - if (buf.slice) { - return buf.slice(0) - } else { - var view = new Uint8Array(buf.byteLength); - view.set(new Uint8Array(buf)); - return view.buffer - } - } - - function Body() { - this.bodyUsed = false; - - this._initBody = function(body) { - /* - fetch-mock wraps the Response object in an ES6 Proxy to - provide useful test harness features such as flush. However, on - ES5 browsers without fetch or Proxy support pollyfills must be used; - the proxy-pollyfill is unable to proxy an attribute unless it exists - on the object before the Proxy is created. This change ensures - Response.bodyUsed exists on the instance, while maintaining the - semantic of setting Request.bodyUsed in the constructor before - _initBody is called. - */ - this.bodyUsed = this.bodyUsed; - this._bodyInit = body; - if (!body) { - this._bodyText = ''; - } else if (typeof body === 'string') { - this._bodyText = body; - } else if (support.blob && Blob.prototype.isPrototypeOf(body)) { - this._bodyBlob = body; - } else if (support.formData && FormData.prototype.isPrototypeOf(body)) { - this._bodyFormData = body; - } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) { - this._bodyText = body.toString(); - } else if (support.arrayBuffer && support.blob && isDataView(body)) { - this._bodyArrayBuffer = bufferClone(body.buffer); - // IE 10-11 can't handle a DataView body. - this._bodyInit = new Blob([this._bodyArrayBuffer]); - } else if (support.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(body) || isArrayBufferView(body))) { - this._bodyArrayBuffer = bufferClone(body); - } else { - this._bodyText = body = Object.prototype.toString.call(body); - } - - if (!this.headers.get('content-type')) { - if (typeof body === 'string') { - this.headers.set('content-type', 'text/plain;charset=UTF-8'); - } else if (this._bodyBlob && this._bodyBlob.type) { - this.headers.set('content-type', this._bodyBlob.type); - } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) { - this.headers.set('content-type', 'application/x-www-form-urlencoded;charset=UTF-8'); - } - } - }; - - if (support.blob) { - this.blob = function() { - var rejected = consumed(this); - if (rejected) { - return rejected - } - - if (this._bodyBlob) { - return Promise.resolve(this._bodyBlob) - } else if (this._bodyArrayBuffer) { - return Promise.resolve(new Blob([this._bodyArrayBuffer])) - } else if (this._bodyFormData) { - throw new Error('could not read FormData body as blob') - } else { - return Promise.resolve(new Blob([this._bodyText])) - } - }; - - this.arrayBuffer = function() { - if (this._bodyArrayBuffer) { - var isConsumed = consumed(this); - if (isConsumed) { - return isConsumed - } - if (ArrayBuffer.isView(this._bodyArrayBuffer)) { - return Promise.resolve( - this._bodyArrayBuffer.buffer.slice( - this._bodyArrayBuffer.byteOffset, - this._bodyArrayBuffer.byteOffset + this._bodyArrayBuffer.byteLength - ) - ) - } else { - return Promise.resolve(this._bodyArrayBuffer) - } - } else { - return this.blob().then(readBlobAsArrayBuffer) - } - }; - } - - this.text = function() { - var rejected = consumed(this); - if (rejected) { - return rejected - } - - if (this._bodyBlob) { - return readBlobAsText(this._bodyBlob) - } else if (this._bodyArrayBuffer) { - return Promise.resolve(readArrayBufferAsText(this._bodyArrayBuffer)) - } else if (this._bodyFormData) { - throw new Error('could not read FormData body as text') - } else { - return Promise.resolve(this._bodyText) - } - }; - - if (support.formData) { - this.formData = function() { - return this.text().then(decode) - }; - } - - this.json = function() { - return this.text().then(JSON.parse) - }; - - return this - } - - // HTTP methods whose capitalization should be normalized - var methods = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT']; - - function normalizeMethod(method) { - var upcased = method.toUpperCase(); - return methods.indexOf(upcased) > -1 ? upcased : method - } - - function Request(input, options) { - if (!(this instanceof Request)) { - throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.') - } - - options = options || {}; - var body = options.body; - - if (input instanceof Request) { - if (input.bodyUsed) { - throw new TypeError('Already read') - } - this.url = input.url; - this.credentials = input.credentials; - if (!options.headers) { - this.headers = new Headers(input.headers); - } - this.method = input.method; - this.mode = input.mode; - this.signal = input.signal; - if (!body && input._bodyInit != null) { - body = input._bodyInit; - input.bodyUsed = true; - } - } else { - this.url = String(input); - } - - this.credentials = options.credentials || this.credentials || 'same-origin'; - if (options.headers || !this.headers) { - this.headers = new Headers(options.headers); - } - this.method = normalizeMethod(options.method || this.method || 'GET'); - this.mode = options.mode || this.mode || null; - this.signal = options.signal || this.signal; - this.referrer = null; - - if ((this.method === 'GET' || this.method === 'HEAD') && body) { - throw new TypeError('Body not allowed for GET or HEAD requests') - } - this._initBody(body); - - if (this.method === 'GET' || this.method === 'HEAD') { - if (options.cache === 'no-store' || options.cache === 'no-cache') { - // Search for a '_' parameter in the query string - var reParamSearch = /([?&])_=[^&]*/; - if (reParamSearch.test(this.url)) { - // If it already exists then set the value with the current time - this.url = this.url.replace(reParamSearch, '$1_=' + new Date().getTime()); - } else { - // Otherwise add a new '_' parameter to the end with the current time - var reQueryString = /\?/; - this.url += (reQueryString.test(this.url) ? '&' : '?') + '_=' + new Date().getTime(); - } - } - } - } - - Request.prototype.clone = function() { - return new Request(this, {body: this._bodyInit}) - }; - - function decode(body) { - var form = new FormData(); - body - .trim() - .split('&') - .forEach(function(bytes) { - if (bytes) { - var split = bytes.split('='); - var name = split.shift().replace(/\+/g, ' '); - var value = split.join('=').replace(/\+/g, ' '); - form.append(decodeURIComponent(name), decodeURIComponent(value)); - } - }); - return form - } - - function parseHeaders(rawHeaders) { - var headers = new Headers(); - // Replace instances of \r\n and \n followed by at least one space or horizontal tab with a space - // https://tools.ietf.org/html/rfc7230#section-3.2 - var preProcessedHeaders = rawHeaders.replace(/\r?\n[\t ]+/g, ' '); - // Avoiding split via regex to work around a common IE11 bug with the core-js 3.6.0 regex polyfill - // https://github.com/github/fetch/issues/748 - // https://github.com/zloirock/core-js/issues/751 - preProcessedHeaders - .split('\r') - .map(function(header) { - return header.indexOf('\n') === 0 ? header.substr(1, header.length) : header - }) - .forEach(function(line) { - var parts = line.split(':'); - var key = parts.shift().trim(); - if (key) { - var value = parts.join(':').trim(); - headers.append(key, value); - } - }); - return headers - } - - Body.call(Request.prototype); - - function Response(bodyInit, options) { - if (!(this instanceof Response)) { - throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.') - } - if (!options) { - options = {}; - } - - this.type = 'default'; - this.status = options.status === undefined ? 200 : options.status; - this.ok = this.status >= 200 && this.status < 300; - this.statusText = options.statusText === undefined ? '' : '' + options.statusText; - this.headers = new Headers(options.headers); - this.url = options.url || ''; - this._initBody(bodyInit); - } - - Body.call(Response.prototype); - - Response.prototype.clone = function() { - return new Response(this._bodyInit, { - status: this.status, - statusText: this.statusText, - headers: new Headers(this.headers), - url: this.url - }) - }; - - Response.error = function() { - var response = new Response(null, {status: 0, statusText: ''}); - response.type = 'error'; - return response - }; - - var redirectStatuses = [301, 302, 303, 307, 308]; - - Response.redirect = function(url, status) { - if (redirectStatuses.indexOf(status) === -1) { - throw new RangeError('Invalid status code') - } - - return new Response(null, {status: status, headers: {location: url}}) - }; - - exports.DOMException = global.DOMException; - try { - new exports.DOMException(); - } catch (err) { - exports.DOMException = function(message, name) { - this.message = message; - this.name = name; - var error = Error(message); - this.stack = error.stack; - }; - exports.DOMException.prototype = Object.create(Error.prototype); - exports.DOMException.prototype.constructor = exports.DOMException; - } - - function fetch(input, init) { - return new Promise(function(resolve, reject) { - var request = new Request(input, init); - - if (request.signal && request.signal.aborted) { - return reject(new exports.DOMException('Aborted', 'AbortError')) - } - - var xhr = new XMLHttpRequest(); - - function abortXhr() { - xhr.abort(); - } - - xhr.onload = function() { - var options = { - status: xhr.status, - statusText: xhr.statusText, - headers: parseHeaders(xhr.getAllResponseHeaders() || '') - }; - options.url = 'responseURL' in xhr ? xhr.responseURL : options.headers.get('X-Request-URL'); - var body = 'response' in xhr ? xhr.response : xhr.responseText; - setTimeout(function() { - resolve(new Response(body, options)); - }, 0); - }; - - xhr.onerror = function() { - setTimeout(function() { - reject(new TypeError('Network request failed')); - }, 0); - }; - - xhr.ontimeout = function() { - setTimeout(function() { - reject(new TypeError('Network request failed')); - }, 0); - }; - - xhr.onabort = function() { - setTimeout(function() { - reject(new exports.DOMException('Aborted', 'AbortError')); - }, 0); - }; - - function fixUrl(url) { - try { - return url === '' && global.location.href ? global.location.href : url - } catch (e) { - return url - } - } - - xhr.open(request.method, fixUrl(request.url), true); - - if (request.credentials === 'include') { - xhr.withCredentials = true; - } else if (request.credentials === 'omit') { - xhr.withCredentials = false; - } - - if ('responseType' in xhr) { - if (support.blob) { - xhr.responseType = 'blob'; - } else if ( - support.arrayBuffer && - request.headers.get('Content-Type') && - request.headers.get('Content-Type').indexOf('application/octet-stream') !== -1 - ) { - xhr.responseType = 'arraybuffer'; - } - } - - if (init && typeof init.headers === 'object' && !(init.headers instanceof Headers)) { - Object.getOwnPropertyNames(init.headers).forEach(function(name) { - xhr.setRequestHeader(name, normalizeValue(init.headers[name])); - }); - } else { - request.headers.forEach(function(value, name) { - xhr.setRequestHeader(name, value); - }); - } - - if (request.signal) { - request.signal.addEventListener('abort', abortXhr); - - xhr.onreadystatechange = function() { - // DONE (success or failure) - if (xhr.readyState === 4) { - request.signal.removeEventListener('abort', abortXhr); - } - }; - } - - xhr.send(typeof request._bodyInit === 'undefined' ? null : request._bodyInit); - }) - } - - fetch.polyfill = true; - - if (!global.fetch) { - global.fetch = fetch; - global.Headers = Headers; - global.Request = Request; - global.Response = Response; - } - - exports.Headers = Headers; - exports.Request = Request; - exports.Response = Response; - exports.fetch = fetch; - - return exports; - -})({}); -})(__globalThis__); -// This is a ponyfill, so... -__globalThis__.fetch.ponyfill = true; -delete __globalThis__.fetch.polyfill; -// Choose between native implementation (__global__) or custom implementation (__globalThis__) -var ctx = __global__.fetch ? __global__ : __globalThis__; -exports = ctx.fetch // To enable: import fetch from 'cross-fetch' -exports.default = ctx.fetch // For TypeScript consumers without esModuleInterop. -exports.fetch = ctx.fetch // To enable: import {fetch} from 'cross-fetch' -exports.Headers = ctx.Headers -exports.Request = ctx.Request -exports.Response = ctx.Response -module.exports = exports diff --git a/node_modules/cross-fetch/dist/cross-fetch.js b/node_modules/cross-fetch/dist/cross-fetch.js deleted file mode 100644 index c54b9ed3..00000000 --- a/node_modules/cross-fetch/dist/cross-fetch.js +++ /dev/null @@ -1,2 +0,0 @@ -!function(t){!function(e){var r="undefined"!=typeof globalThis&&globalThis||void 0!==t&&t||void 0!==r&&r,o="URLSearchParams"in r,n="Symbol"in r&&"iterator"in Symbol,i="FileReader"in r&&"Blob"in r&&function(){try{return new Blob,!0}catch(t){return!1}}(),s="FormData"in r,a="ArrayBuffer"in r;if(a)var h=["[object Int8Array]","[object Uint8Array]","[object Uint8ClampedArray]","[object Int16Array]","[object Uint16Array]","[object Int32Array]","[object Uint32Array]","[object Float32Array]","[object Float64Array]"],u=ArrayBuffer.isView||function(t){return t&&h.indexOf(Object.prototype.toString.call(t))>-1};function f(t){if("string"!=typeof t&&(t=String(t)),/[^a-z0-9\-#$%&'*+.^_`|~!]/i.test(t)||""===t)throw new TypeError('Invalid character in header field name: "'+t+'"');return t.toLowerCase()}function c(t){return"string"!=typeof t&&(t=String(t)),t}function d(t){var e={next:function(){var e=t.shift();return{done:void 0===e,value:e}}};return n&&(e[Symbol.iterator]=function(){return e}),e}function y(t){this.map={},t instanceof y?t.forEach((function(t,e){this.append(e,t)}),this):Array.isArray(t)?t.forEach((function(t){this.append(t[0],t[1])}),this):t&&Object.getOwnPropertyNames(t).forEach((function(e){this.append(e,t[e])}),this)}function p(t){if(t.bodyUsed)return Promise.reject(new TypeError("Already read"));t.bodyUsed=!0}function l(t){return new Promise((function(e,r){t.onload=function(){e(t.result)},t.onerror=function(){r(t.error)}}))}function b(t){var e=new FileReader,r=l(e);return e.readAsArrayBuffer(t),r}function m(t){if(t.slice)return t.slice(0);var e=new Uint8Array(t.byteLength);return e.set(new Uint8Array(t)),e.buffer}function w(){return this.bodyUsed=!1,this._initBody=function(t){var e;this.bodyUsed=this.bodyUsed,this._bodyInit=t,t?"string"==typeof t?this._bodyText=t:i&&Blob.prototype.isPrototypeOf(t)?this._bodyBlob=t:s&&FormData.prototype.isPrototypeOf(t)?this._bodyFormData=t:o&&URLSearchParams.prototype.isPrototypeOf(t)?this._bodyText=t.toString():a&&i&&((e=t)&&DataView.prototype.isPrototypeOf(e))?(this._bodyArrayBuffer=m(t.buffer),this._bodyInit=new Blob([this._bodyArrayBuffer])):a&&(ArrayBuffer.prototype.isPrototypeOf(t)||u(t))?this._bodyArrayBuffer=m(t):this._bodyText=t=Object.prototype.toString.call(t):this._bodyText="",this.headers.get("content-type")||("string"==typeof t?this.headers.set("content-type","text/plain;charset=UTF-8"):this._bodyBlob&&this._bodyBlob.type?this.headers.set("content-type",this._bodyBlob.type):o&&URLSearchParams.prototype.isPrototypeOf(t)&&this.headers.set("content-type","application/x-www-form-urlencoded;charset=UTF-8"))},i&&(this.blob=function(){var t=p(this);if(t)return t;if(this._bodyBlob)return Promise.resolve(this._bodyBlob);if(this._bodyArrayBuffer)return Promise.resolve(new Blob([this._bodyArrayBuffer]));if(this._bodyFormData)throw new Error("could not read FormData body as blob");return Promise.resolve(new Blob([this._bodyText]))},this.arrayBuffer=function(){if(this._bodyArrayBuffer){var t=p(this);return t||(ArrayBuffer.isView(this._bodyArrayBuffer)?Promise.resolve(this._bodyArrayBuffer.buffer.slice(this._bodyArrayBuffer.byteOffset,this._bodyArrayBuffer.byteOffset+this._bodyArrayBuffer.byteLength)):Promise.resolve(this._bodyArrayBuffer))}return this.blob().then(b)}),this.text=function(){var t,e,r,o=p(this);if(o)return o;if(this._bodyBlob)return t=this._bodyBlob,e=new FileReader,r=l(e),e.readAsText(t),r;if(this._bodyArrayBuffer)return Promise.resolve(function(t){for(var e=new Uint8Array(t),r=new Array(e.length),o=0;o-1?o:r),this.mode=e.mode||this.mode||null,this.signal=e.signal||this.signal,this.referrer=null,("GET"===this.method||"HEAD"===this.method)&&n)throw new TypeError("Body not allowed for GET or HEAD requests");if(this._initBody(n),!("GET"!==this.method&&"HEAD"!==this.method||"no-store"!==e.cache&&"no-cache"!==e.cache)){var i=/([?&])_=[^&]*/;if(i.test(this.url))this.url=this.url.replace(i,"$1_="+(new Date).getTime());else{this.url+=(/\?/.test(this.url)?"&":"?")+"_="+(new Date).getTime()}}}function T(t){var e=new FormData;return t.trim().split("&").forEach((function(t){if(t){var r=t.split("="),o=r.shift().replace(/\+/g," "),n=r.join("=").replace(/\+/g," ");e.append(decodeURIComponent(o),decodeURIComponent(n))}})),e}function A(t,e){if(!(this instanceof A))throw new TypeError('Please use the "new" operator, this DOM object constructor cannot be called as a function.');e||(e={}),this.type="default",this.status=void 0===e.status?200:e.status,this.ok=this.status>=200&&this.status<300,this.statusText=void 0===e.statusText?"":""+e.statusText,this.headers=new y(e.headers),this.url=e.url||"",this._initBody(t)}E.prototype.clone=function(){return new E(this,{body:this._bodyInit})},w.call(E.prototype),w.call(A.prototype),A.prototype.clone=function(){return new A(this._bodyInit,{status:this.status,statusText:this.statusText,headers:new y(this.headers),url:this.url})},A.error=function(){var t=new A(null,{status:0,statusText:""});return t.type="error",t};var _=[301,302,303,307,308];A.redirect=function(t,e){if(-1===_.indexOf(e))throw new RangeError("Invalid status code");return new A(null,{status:e,headers:{location:t}})},e.DOMException=r.DOMException;try{new e.DOMException}catch(t){e.DOMException=function(t,e){this.message=t,this.name=e;var r=Error(t);this.stack=r.stack},e.DOMException.prototype=Object.create(Error.prototype),e.DOMException.prototype.constructor=e.DOMException}function g(t,o){return new Promise((function(n,s){var h=new E(t,o);if(h.signal&&h.signal.aborted)return s(new e.DOMException("Aborted","AbortError"));var u=new XMLHttpRequest;function f(){u.abort()}u.onload=function(){var t,e,r={status:u.status,statusText:u.statusText,headers:(t=u.getAllResponseHeaders()||"",e=new y,t.replace(/\r?\n[\t ]+/g," ").split("\r").map((function(t){return 0===t.indexOf("\n")?t.substr(1,t.length):t})).forEach((function(t){var r=t.split(":"),o=r.shift().trim();if(o){var n=r.join(":").trim();e.append(o,n)}})),e)};r.url="responseURL"in u?u.responseURL:r.headers.get("X-Request-URL");var o="response"in u?u.response:u.responseText;setTimeout((function(){n(new A(o,r))}),0)},u.onerror=function(){setTimeout((function(){s(new TypeError("Network request failed"))}),0)},u.ontimeout=function(){setTimeout((function(){s(new TypeError("Network request failed"))}),0)},u.onabort=function(){setTimeout((function(){s(new e.DOMException("Aborted","AbortError"))}),0)},u.open(h.method,function(t){try{return""===t&&r.location.href?r.location.href:t}catch(e){return t}}(h.url),!0),"include"===h.credentials?u.withCredentials=!0:"omit"===h.credentials&&(u.withCredentials=!1),"responseType"in u&&(i?u.responseType="blob":a&&h.headers.get("Content-Type")&&-1!==h.headers.get("Content-Type").indexOf("application/octet-stream")&&(u.responseType="arraybuffer")),!o||"object"!=typeof o.headers||o.headers instanceof y?h.headers.forEach((function(t,e){u.setRequestHeader(e,t)})):Object.getOwnPropertyNames(o.headers).forEach((function(t){u.setRequestHeader(t,c(o.headers[t]))})),h.signal&&(h.signal.addEventListener("abort",f),u.onreadystatechange=function(){4===u.readyState&&h.signal.removeEventListener("abort",f)}),u.send(void 0===h._bodyInit?null:h._bodyInit)}))}g.polyfill=!0,r.fetch||(r.fetch=g,r.Headers=y,r.Request=E,r.Response=A),e.Headers=y,e.Request=E,e.Response=A,e.fetch=g}({})}("undefined"!=typeof self?self:this); -//# sourceMappingURL=cross-fetch.js.map diff --git a/node_modules/cross-fetch/dist/cross-fetch.js.map b/node_modules/cross-fetch/dist/cross-fetch.js.map deleted file mode 100644 index ebdc5c04..00000000 --- a/node_modules/cross-fetch/dist/cross-fetch.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"cross-fetch.js","sources":["../node_modules/whatwg-fetch/fetch.js"],"sourcesContent":["var global =\n (typeof globalThis !== 'undefined' && globalThis) ||\n (typeof self !== 'undefined' && self) ||\n (typeof global !== 'undefined' && global)\n\nvar support = {\n searchParams: 'URLSearchParams' in global,\n iterable: 'Symbol' in global && 'iterator' in Symbol,\n blob:\n 'FileReader' in global &&\n 'Blob' in global &&\n (function() {\n try {\n new Blob()\n return true\n } catch (e) {\n return false\n }\n })(),\n formData: 'FormData' in global,\n arrayBuffer: 'ArrayBuffer' in global\n}\n\nfunction isDataView(obj) {\n return obj && DataView.prototype.isPrototypeOf(obj)\n}\n\nif (support.arrayBuffer) {\n var viewClasses = [\n '[object Int8Array]',\n '[object Uint8Array]',\n '[object Uint8ClampedArray]',\n '[object Int16Array]',\n '[object Uint16Array]',\n '[object Int32Array]',\n '[object Uint32Array]',\n '[object Float32Array]',\n '[object Float64Array]'\n ]\n\n var isArrayBufferView =\n ArrayBuffer.isView ||\n function(obj) {\n return obj && viewClasses.indexOf(Object.prototype.toString.call(obj)) > -1\n }\n}\n\nfunction normalizeName(name) {\n if (typeof name !== 'string') {\n name = String(name)\n }\n if (/[^a-z0-9\\-#$%&'*+.^_`|~!]/i.test(name) || name === '') {\n throw new TypeError('Invalid character in header field name: \"' + name + '\"')\n }\n return name.toLowerCase()\n}\n\nfunction normalizeValue(value) {\n if (typeof value !== 'string') {\n value = String(value)\n }\n return value\n}\n\n// Build a destructive iterator for the value list\nfunction iteratorFor(items) {\n var iterator = {\n next: function() {\n var value = items.shift()\n return {done: value === undefined, value: value}\n }\n }\n\n if (support.iterable) {\n iterator[Symbol.iterator] = function() {\n return iterator\n }\n }\n\n return iterator\n}\n\nexport function Headers(headers) {\n this.map = {}\n\n if (headers instanceof Headers) {\n headers.forEach(function(value, name) {\n this.append(name, value)\n }, this)\n } else if (Array.isArray(headers)) {\n headers.forEach(function(header) {\n this.append(header[0], header[1])\n }, this)\n } else if (headers) {\n Object.getOwnPropertyNames(headers).forEach(function(name) {\n this.append(name, headers[name])\n }, this)\n }\n}\n\nHeaders.prototype.append = function(name, value) {\n name = normalizeName(name)\n value = normalizeValue(value)\n var oldValue = this.map[name]\n this.map[name] = oldValue ? oldValue + ', ' + value : value\n}\n\nHeaders.prototype['delete'] = function(name) {\n delete this.map[normalizeName(name)]\n}\n\nHeaders.prototype.get = function(name) {\n name = normalizeName(name)\n return this.has(name) ? this.map[name] : null\n}\n\nHeaders.prototype.has = function(name) {\n return this.map.hasOwnProperty(normalizeName(name))\n}\n\nHeaders.prototype.set = function(name, value) {\n this.map[normalizeName(name)] = normalizeValue(value)\n}\n\nHeaders.prototype.forEach = function(callback, thisArg) {\n for (var name in this.map) {\n if (this.map.hasOwnProperty(name)) {\n callback.call(thisArg, this.map[name], name, this)\n }\n }\n}\n\nHeaders.prototype.keys = function() {\n var items = []\n this.forEach(function(value, name) {\n items.push(name)\n })\n return iteratorFor(items)\n}\n\nHeaders.prototype.values = function() {\n var items = []\n this.forEach(function(value) {\n items.push(value)\n })\n return iteratorFor(items)\n}\n\nHeaders.prototype.entries = function() {\n var items = []\n this.forEach(function(value, name) {\n items.push([name, value])\n })\n return iteratorFor(items)\n}\n\nif (support.iterable) {\n Headers.prototype[Symbol.iterator] = Headers.prototype.entries\n}\n\nfunction consumed(body) {\n if (body.bodyUsed) {\n return Promise.reject(new TypeError('Already read'))\n }\n body.bodyUsed = true\n}\n\nfunction fileReaderReady(reader) {\n return new Promise(function(resolve, reject) {\n reader.onload = function() {\n resolve(reader.result)\n }\n reader.onerror = function() {\n reject(reader.error)\n }\n })\n}\n\nfunction readBlobAsArrayBuffer(blob) {\n var reader = new FileReader()\n var promise = fileReaderReady(reader)\n reader.readAsArrayBuffer(blob)\n return promise\n}\n\nfunction readBlobAsText(blob) {\n var reader = new FileReader()\n var promise = fileReaderReady(reader)\n reader.readAsText(blob)\n return promise\n}\n\nfunction readArrayBufferAsText(buf) {\n var view = new Uint8Array(buf)\n var chars = new Array(view.length)\n\n for (var i = 0; i < view.length; i++) {\n chars[i] = String.fromCharCode(view[i])\n }\n return chars.join('')\n}\n\nfunction bufferClone(buf) {\n if (buf.slice) {\n return buf.slice(0)\n } else {\n var view = new Uint8Array(buf.byteLength)\n view.set(new Uint8Array(buf))\n return view.buffer\n }\n}\n\nfunction Body() {\n this.bodyUsed = false\n\n this._initBody = function(body) {\n /*\n fetch-mock wraps the Response object in an ES6 Proxy to\n provide useful test harness features such as flush. However, on\n ES5 browsers without fetch or Proxy support pollyfills must be used;\n the proxy-pollyfill is unable to proxy an attribute unless it exists\n on the object before the Proxy is created. This change ensures\n Response.bodyUsed exists on the instance, while maintaining the\n semantic of setting Request.bodyUsed in the constructor before\n _initBody is called.\n */\n this.bodyUsed = this.bodyUsed\n this._bodyInit = body\n if (!body) {\n this._bodyText = ''\n } else if (typeof body === 'string') {\n this._bodyText = body\n } else if (support.blob && Blob.prototype.isPrototypeOf(body)) {\n this._bodyBlob = body\n } else if (support.formData && FormData.prototype.isPrototypeOf(body)) {\n this._bodyFormData = body\n } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {\n this._bodyText = body.toString()\n } else if (support.arrayBuffer && support.blob && isDataView(body)) {\n this._bodyArrayBuffer = bufferClone(body.buffer)\n // IE 10-11 can't handle a DataView body.\n this._bodyInit = new Blob([this._bodyArrayBuffer])\n } else if (support.arrayBuffer && (ArrayBuffer.prototype.isPrototypeOf(body) || isArrayBufferView(body))) {\n this._bodyArrayBuffer = bufferClone(body)\n } else {\n this._bodyText = body = Object.prototype.toString.call(body)\n }\n\n if (!this.headers.get('content-type')) {\n if (typeof body === 'string') {\n this.headers.set('content-type', 'text/plain;charset=UTF-8')\n } else if (this._bodyBlob && this._bodyBlob.type) {\n this.headers.set('content-type', this._bodyBlob.type)\n } else if (support.searchParams && URLSearchParams.prototype.isPrototypeOf(body)) {\n this.headers.set('content-type', 'application/x-www-form-urlencoded;charset=UTF-8')\n }\n }\n }\n\n if (support.blob) {\n this.blob = function() {\n var rejected = consumed(this)\n if (rejected) {\n return rejected\n }\n\n if (this._bodyBlob) {\n return Promise.resolve(this._bodyBlob)\n } else if (this._bodyArrayBuffer) {\n return Promise.resolve(new Blob([this._bodyArrayBuffer]))\n } else if (this._bodyFormData) {\n throw new Error('could not read FormData body as blob')\n } else {\n return Promise.resolve(new Blob([this._bodyText]))\n }\n }\n\n this.arrayBuffer = function() {\n if (this._bodyArrayBuffer) {\n var isConsumed = consumed(this)\n if (isConsumed) {\n return isConsumed\n }\n if (ArrayBuffer.isView(this._bodyArrayBuffer)) {\n return Promise.resolve(\n this._bodyArrayBuffer.buffer.slice(\n this._bodyArrayBuffer.byteOffset,\n this._bodyArrayBuffer.byteOffset + this._bodyArrayBuffer.byteLength\n )\n )\n } else {\n return Promise.resolve(this._bodyArrayBuffer)\n }\n } else {\n return this.blob().then(readBlobAsArrayBuffer)\n }\n }\n }\n\n this.text = function() {\n var rejected = consumed(this)\n if (rejected) {\n return rejected\n }\n\n if (this._bodyBlob) {\n return readBlobAsText(this._bodyBlob)\n } else if (this._bodyArrayBuffer) {\n return Promise.resolve(readArrayBufferAsText(this._bodyArrayBuffer))\n } else if (this._bodyFormData) {\n throw new Error('could not read FormData body as text')\n } else {\n return Promise.resolve(this._bodyText)\n }\n }\n\n if (support.formData) {\n this.formData = function() {\n return this.text().then(decode)\n }\n }\n\n this.json = function() {\n return this.text().then(JSON.parse)\n }\n\n return this\n}\n\n// HTTP methods whose capitalization should be normalized\nvar methods = ['DELETE', 'GET', 'HEAD', 'OPTIONS', 'POST', 'PUT']\n\nfunction normalizeMethod(method) {\n var upcased = method.toUpperCase()\n return methods.indexOf(upcased) > -1 ? upcased : method\n}\n\nexport function Request(input, options) {\n if (!(this instanceof Request)) {\n throw new TypeError('Please use the \"new\" operator, this DOM object constructor cannot be called as a function.')\n }\n\n options = options || {}\n var body = options.body\n\n if (input instanceof Request) {\n if (input.bodyUsed) {\n throw new TypeError('Already read')\n }\n this.url = input.url\n this.credentials = input.credentials\n if (!options.headers) {\n this.headers = new Headers(input.headers)\n }\n this.method = input.method\n this.mode = input.mode\n this.signal = input.signal\n if (!body && input._bodyInit != null) {\n body = input._bodyInit\n input.bodyUsed = true\n }\n } else {\n this.url = String(input)\n }\n\n this.credentials = options.credentials || this.credentials || 'same-origin'\n if (options.headers || !this.headers) {\n this.headers = new Headers(options.headers)\n }\n this.method = normalizeMethod(options.method || this.method || 'GET')\n this.mode = options.mode || this.mode || null\n this.signal = options.signal || this.signal\n this.referrer = null\n\n if ((this.method === 'GET' || this.method === 'HEAD') && body) {\n throw new TypeError('Body not allowed for GET or HEAD requests')\n }\n this._initBody(body)\n\n if (this.method === 'GET' || this.method === 'HEAD') {\n if (options.cache === 'no-store' || options.cache === 'no-cache') {\n // Search for a '_' parameter in the query string\n var reParamSearch = /([?&])_=[^&]*/\n if (reParamSearch.test(this.url)) {\n // If it already exists then set the value with the current time\n this.url = this.url.replace(reParamSearch, '$1_=' + new Date().getTime())\n } else {\n // Otherwise add a new '_' parameter to the end with the current time\n var reQueryString = /\\?/\n this.url += (reQueryString.test(this.url) ? '&' : '?') + '_=' + new Date().getTime()\n }\n }\n }\n}\n\nRequest.prototype.clone = function() {\n return new Request(this, {body: this._bodyInit})\n}\n\nfunction decode(body) {\n var form = new FormData()\n body\n .trim()\n .split('&')\n .forEach(function(bytes) {\n if (bytes) {\n var split = bytes.split('=')\n var name = split.shift().replace(/\\+/g, ' ')\n var value = split.join('=').replace(/\\+/g, ' ')\n form.append(decodeURIComponent(name), decodeURIComponent(value))\n }\n })\n return form\n}\n\nfunction parseHeaders(rawHeaders) {\n var headers = new Headers()\n // Replace instances of \\r\\n and \\n followed by at least one space or horizontal tab with a space\n // https://tools.ietf.org/html/rfc7230#section-3.2\n var preProcessedHeaders = rawHeaders.replace(/\\r?\\n[\\t ]+/g, ' ')\n // Avoiding split via regex to work around a common IE11 bug with the core-js 3.6.0 regex polyfill\n // https://github.com/github/fetch/issues/748\n // https://github.com/zloirock/core-js/issues/751\n preProcessedHeaders\n .split('\\r')\n .map(function(header) {\n return header.indexOf('\\n') === 0 ? header.substr(1, header.length) : header\n })\n .forEach(function(line) {\n var parts = line.split(':')\n var key = parts.shift().trim()\n if (key) {\n var value = parts.join(':').trim()\n headers.append(key, value)\n }\n })\n return headers\n}\n\nBody.call(Request.prototype)\n\nexport function Response(bodyInit, options) {\n if (!(this instanceof Response)) {\n throw new TypeError('Please use the \"new\" operator, this DOM object constructor cannot be called as a function.')\n }\n if (!options) {\n options = {}\n }\n\n this.type = 'default'\n this.status = options.status === undefined ? 200 : options.status\n this.ok = this.status >= 200 && this.status < 300\n this.statusText = options.statusText === undefined ? '' : '' + options.statusText\n this.headers = new Headers(options.headers)\n this.url = options.url || ''\n this._initBody(bodyInit)\n}\n\nBody.call(Response.prototype)\n\nResponse.prototype.clone = function() {\n return new Response(this._bodyInit, {\n status: this.status,\n statusText: this.statusText,\n headers: new Headers(this.headers),\n url: this.url\n })\n}\n\nResponse.error = function() {\n var response = new Response(null, {status: 0, statusText: ''})\n response.type = 'error'\n return response\n}\n\nvar redirectStatuses = [301, 302, 303, 307, 308]\n\nResponse.redirect = function(url, status) {\n if (redirectStatuses.indexOf(status) === -1) {\n throw new RangeError('Invalid status code')\n }\n\n return new Response(null, {status: status, headers: {location: url}})\n}\n\nexport var DOMException = global.DOMException\ntry {\n new DOMException()\n} catch (err) {\n DOMException = function(message, name) {\n this.message = message\n this.name = name\n var error = Error(message)\n this.stack = error.stack\n }\n DOMException.prototype = Object.create(Error.prototype)\n DOMException.prototype.constructor = DOMException\n}\n\nexport function fetch(input, init) {\n return new Promise(function(resolve, reject) {\n var request = new Request(input, init)\n\n if (request.signal && request.signal.aborted) {\n return reject(new DOMException('Aborted', 'AbortError'))\n }\n\n var xhr = new XMLHttpRequest()\n\n function abortXhr() {\n xhr.abort()\n }\n\n xhr.onload = function() {\n var options = {\n status: xhr.status,\n statusText: xhr.statusText,\n headers: parseHeaders(xhr.getAllResponseHeaders() || '')\n }\n options.url = 'responseURL' in xhr ? xhr.responseURL : options.headers.get('X-Request-URL')\n var body = 'response' in xhr ? xhr.response : xhr.responseText\n setTimeout(function() {\n resolve(new Response(body, options))\n }, 0)\n }\n\n xhr.onerror = function() {\n setTimeout(function() {\n reject(new TypeError('Network request failed'))\n }, 0)\n }\n\n xhr.ontimeout = function() {\n setTimeout(function() {\n reject(new TypeError('Network request failed'))\n }, 0)\n }\n\n xhr.onabort = function() {\n setTimeout(function() {\n reject(new DOMException('Aborted', 'AbortError'))\n }, 0)\n }\n\n function fixUrl(url) {\n try {\n return url === '' && global.location.href ? global.location.href : url\n } catch (e) {\n return url\n }\n }\n\n xhr.open(request.method, fixUrl(request.url), true)\n\n if (request.credentials === 'include') {\n xhr.withCredentials = true\n } else if (request.credentials === 'omit') {\n xhr.withCredentials = false\n }\n\n if ('responseType' in xhr) {\n if (support.blob) {\n xhr.responseType = 'blob'\n } else if (\n support.arrayBuffer &&\n request.headers.get('Content-Type') &&\n request.headers.get('Content-Type').indexOf('application/octet-stream') !== -1\n ) {\n xhr.responseType = 'arraybuffer'\n }\n }\n\n if (init && typeof init.headers === 'object' && !(init.headers instanceof Headers)) {\n Object.getOwnPropertyNames(init.headers).forEach(function(name) {\n xhr.setRequestHeader(name, normalizeValue(init.headers[name]))\n })\n } else {\n request.headers.forEach(function(value, name) {\n xhr.setRequestHeader(name, value)\n })\n }\n\n if (request.signal) {\n request.signal.addEventListener('abort', abortXhr)\n\n xhr.onreadystatechange = function() {\n // DONE (success or failure)\n if (xhr.readyState === 4) {\n request.signal.removeEventListener('abort', abortXhr)\n }\n }\n }\n\n xhr.send(typeof request._bodyInit === 'undefined' ? null : request._bodyInit)\n })\n}\n\nfetch.polyfill = true\n\nif (!global.fetch) {\n global.fetch = fetch\n global.Headers = Headers\n global.Request = Request\n global.Response = Response\n}\n"],"names":["global","globalThis","self","support","Symbol","Blob","e","viewClasses","isArrayBufferView","ArrayBuffer","isView","obj","indexOf","Object","prototype","toString","call","normalizeName","name","String","test","TypeError","toLowerCase","normalizeValue","value","iteratorFor","items","iterator","next","shift","done","undefined","Headers","headers","this","map","forEach","append","Array","isArray","header","getOwnPropertyNames","consumed","body","bodyUsed","Promise","reject","fileReaderReady","reader","resolve","onload","result","onerror","error","readBlobAsArrayBuffer","blob","FileReader","promise","readAsArrayBuffer","bufferClone","buf","slice","view","Uint8Array","byteLength","set","buffer","Body","_initBody","_bodyInit","_bodyText","isPrototypeOf","_bodyBlob","FormData","_bodyFormData","URLSearchParams","DataView","_bodyArrayBuffer","get","type","rejected","Error","arrayBuffer","isConsumed","byteOffset","then","text","readAsText","chars","length","i","fromCharCode","join","readArrayBufferAsText","formData","decode","json","JSON","parse","oldValue","has","hasOwnProperty","callback","thisArg","keys","push","values","entries","methods","Request","input","options","method","upcased","url","credentials","mode","signal","toUpperCase","referrer","cache","reParamSearch","replace","Date","getTime","form","trim","split","bytes","decodeURIComponent","Response","bodyInit","status","ok","statusText","clone","response","redirectStatuses","redirect","RangeError","location","exports","DOMException","err","message","stack","create","constructor","fetch","init","request","aborted","xhr","XMLHttpRequest","abortXhr","abort","rawHeaders","getAllResponseHeaders","substr","line","parts","key","responseURL","responseText","setTimeout","ontimeout","onabort","open","href","fixUrl","withCredentials","responseType","setRequestHeader","addEventListener","onreadystatechange","readyState","removeEventListener","send","polyfill"],"mappings":"0BAAA,IAAIA,EACqB,oBAAfC,YAA8BA,iBACrB,IAATC,GAAwBA,QACb,IAAXF,GAA0BA,EAEhCG,EACY,oBAAqBH,EADjCG,EAEQ,WAAYH,GAAU,aAAcI,OAF5CD,EAIA,eAAgBH,GAChB,SAAUA,GACV,WACE,IAEE,OADA,IAAIK,MACG,CACR,CAAC,MAAOC,GACP,OAAO,CACR,CACF,CAPD,GANAH,EAcQ,aAAcH,EAdtBG,EAeW,gBAAiBH,EAOhC,GAAIG,EACF,IAAII,EAAc,CAChB,qBACA,sBACA,6BACA,sBACA,uBACA,sBACA,uBACA,wBACA,yBAGEC,EACFC,YAAYC,QACZ,SAASC,GACP,OAAOA,GAAOJ,EAAYK,QAAQC,OAAOC,UAAUC,SAASC,KAAKL,KAAS,CAC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GACP,OAAO4G,CACR,CACF,CAEwBuD,CAAOnB,EAAQpC,MAAM,GAElB,YAAxBoC,EAAQnC,YACVqC,EAAIkB,iBAAkB,EACW,SAAxBpB,EAAQnC,cACjBqC,EAAIkB,iBAAkB,GAGpB,iBAAkBlB,IAChBrJ,EACFqJ,EAAImB,aAAe,OAEnBxK,GACAmJ,EAAQrH,QAAQ6C,IAAI,kBACyD,IAA7EwE,EAAQrH,QAAQ6C,IAAI,gBAAgBlE,QAAQ,8BAE5C4I,EAAImB,aAAe,iBAInBtB,GAAgC,iBAAjBA,EAAKpH,SAA0BoH,EAAKpH,mBAAmBD,EAKxEsH,EAAQrH,QAAQG,SAAQ,SAASZ,EAAON,GACtCsI,EAAIoB,iBAAiB1J,EAAMM,EACnC,IANMX,OAAO4B,oBAAoB4G,EAAKpH,SAASG,SAAQ,SAASlB,GACxDsI,EAAIoB,iBAAiB1J,EAAMK,EAAe8H,EAAKpH,QAAQf,IAC/D,IAOQoI,EAAQjC,SACViC,EAAQjC,OAAOwD,iBAAiB,QAASnB,GAEzCF,EAAIsB,mBAAqB,WAEA,IAAnBtB,EAAIuB,YACNzB,EAAQjC,OAAO2D,oBAAoB,QAAStB,EAE/C,GAGHF,EAAIyB,UAAkC,IAAtB3B,EAAQjF,UAA4B,KAAOiF,EAAQjF,UACvE,GACA,CAEA+E,EAAM8B,UAAW,EAEZlL,EAAOoJ,QACVpJ,EAAOoJ,MAAQA,EACfpJ,EAAOgC,QAAUA,EACjBhC,EAAO6G,QAAUA,EACjB7G,EAAOkI,SAAWA","x_google_ignoreList":[0]} \ No newline at end of file diff --git a/node_modules/cross-fetch/dist/node-polyfill.js b/node_modules/cross-fetch/dist/node-polyfill.js deleted file mode 100644 index f0c477c6..00000000 --- a/node_modules/cross-fetch/dist/node-polyfill.js +++ /dev/null @@ -1,11 +0,0 @@ -const fetchNode = require('./node-ponyfill') - -if (!global.fetch) { - const fetch = fetchNode.fetch.bind({}) - - global.fetch = fetch - global.fetch.polyfill = true - global.Response = fetchNode.Response - global.Headers = fetchNode.Headers - global.Request = fetchNode.Request -} diff --git a/node_modules/cross-fetch/dist/node-ponyfill.js b/node_modules/cross-fetch/dist/node-ponyfill.js deleted file mode 100644 index e8b153f9..00000000 --- a/node_modules/cross-fetch/dist/node-ponyfill.js +++ /dev/null @@ -1,22 +0,0 @@ -const nodeFetch = require('node-fetch') -const realFetch = nodeFetch.default || nodeFetch - -const fetch = function (url, options) { - // Support schemaless URIs on the server for parity with the browser. - // Ex: //github.com/ -> https://github.com/ - if (/^\/\//.test(url)) { - url = 'https:' + url - } - return realFetch.call(this, url, options) -} - -fetch.ponyfill = true - -module.exports = exports = fetch -exports.fetch = fetch -exports.Headers = nodeFetch.Headers -exports.Request = nodeFetch.Request -exports.Response = nodeFetch.Response - -// Needed for TypeScript consumers without esModuleInterop. -exports.default = fetch diff --git a/node_modules/cross-fetch/dist/react-native-polyfill.js b/node_modules/cross-fetch/dist/react-native-polyfill.js deleted file mode 100644 index 57ad2566..00000000 --- a/node_modules/cross-fetch/dist/react-native-polyfill.js +++ /dev/null @@ -1,12 +0,0 @@ -/*! - * VaporJS JavaScript Library v1.4.5 - * https://github.com/madrobby/vapor.js - * - * Copyright (c) 2010 Thomas Fuchs (http://script.aculo.us/thomas) - * Released under the MIT license - * https://github.com/madrobby/vapor.js/blob/master/MIT-LICENSE - * - * Date: 2019-05-25T03:04Z - */ - -// React Native already polyfills `fetch` so this code is intentionally handled to VaporJS. diff --git a/node_modules/cross-fetch/dist/react-native-ponyfill.js b/node_modules/cross-fetch/dist/react-native-ponyfill.js deleted file mode 100644 index 8e5baff4..00000000 --- a/node_modules/cross-fetch/dist/react-native-ponyfill.js +++ /dev/null @@ -1,6 +0,0 @@ -module.exports = global.fetch // To enable: import fetch from 'cross-fetch' -module.exports.default = global.fetch // For TypeScript consumers without esModuleInterop. -module.exports.fetch = global.fetch // To enable: import {fetch} from 'cross-fetch' -module.exports.Headers = global.Headers -module.exports.Request = global.Request -module.exports.Response = global.Response diff --git a/node_modules/cross-fetch/index.d.ts b/node_modules/cross-fetch/index.d.ts deleted file mode 100644 index 3c030c06..00000000 --- a/node_modules/cross-fetch/index.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -/// - -declare const _fetch: typeof fetch; -declare const _Request: typeof Request; -declare const _Response: typeof Response; -declare const _Headers: typeof Headers; - -declare module "cross-fetch" { - export const fetch: typeof _fetch; - export const Request: typeof _Request; - export const Response: typeof _Response; - export const Headers: typeof _Headers; - export default fetch; -} diff --git a/node_modules/cross-fetch/node_modules/node-fetch/LICENSE.md b/node_modules/cross-fetch/node_modules/node-fetch/LICENSE.md deleted file mode 100644 index 660ffecb..00000000 --- a/node_modules/cross-fetch/node_modules/node-fetch/LICENSE.md +++ /dev/null @@ -1,22 +0,0 @@ -The MIT License (MIT) - -Copyright (c) 2016 David Frank - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. - diff --git a/node_modules/cross-fetch/node_modules/node-fetch/README.md b/node_modules/cross-fetch/node_modules/node-fetch/README.md deleted file mode 100644 index 55f09b7f..00000000 --- a/node_modules/cross-fetch/node_modules/node-fetch/README.md +++ /dev/null @@ -1,634 +0,0 @@ -node-fetch -========== - -[![npm version][npm-image]][npm-url] -[![build status][travis-image]][travis-url] -[![coverage status][codecov-image]][codecov-url] -[![install size][install-size-image]][install-size-url] -[![Discord][discord-image]][discord-url] - -A light-weight module that brings `window.fetch` to Node.js - -(We are looking for [v2 maintainers and collaborators](https://github.com/bitinn/node-fetch/issues/567)) - -[![Backers][opencollective-image]][opencollective-url] - - - -- [Motivation](#motivation) -- [Features](#features) -- [Difference from client-side fetch](#difference-from-client-side-fetch) -- [Installation](#installation) -- [Loading and configuring the module](#loading-and-configuring-the-module) -- [Common Usage](#common-usage) - - [Plain text or HTML](#plain-text-or-html) - - [JSON](#json) - - [Simple Post](#simple-post) - - [Post with JSON](#post-with-json) - - [Post with form parameters](#post-with-form-parameters) - - [Handling exceptions](#handling-exceptions) - - [Handling client and server errors](#handling-client-and-server-errors) -- [Advanced Usage](#advanced-usage) - - [Streams](#streams) - - [Buffer](#buffer) - - [Accessing Headers and other Meta data](#accessing-headers-and-other-meta-data) - - [Extract Set-Cookie Header](#extract-set-cookie-header) - - [Post data using a file stream](#post-data-using-a-file-stream) - - [Post with form-data (detect multipart)](#post-with-form-data-detect-multipart) - - [Request cancellation with AbortSignal](#request-cancellation-with-abortsignal) -- [API](#api) - - [fetch(url[, options])](#fetchurl-options) - - [Options](#options) - - [Class: Request](#class-request) - - [Class: Response](#class-response) - - [Class: Headers](#class-headers) - - [Interface: Body](#interface-body) - - [Class: FetchError](#class-fetcherror) -- [License](#license) -- [Acknowledgement](#acknowledgement) - - - -## Motivation - -Instead of implementing `XMLHttpRequest` in Node.js to run browser-specific [Fetch polyfill](https://github.com/github/fetch), why not go from native `http` to `fetch` API directly? Hence, `node-fetch`, minimal code for a `window.fetch` compatible API on Node.js runtime. - -See Matt Andrews' [isomorphic-fetch](https://github.com/matthew-andrews/isomorphic-fetch) or Leonardo Quixada's [cross-fetch](https://github.com/lquixada/cross-fetch) for isomorphic usage (exports `node-fetch` for server-side, `whatwg-fetch` for client-side). - -## Features - -- Stay consistent with `window.fetch` API. -- Make conscious trade-off when following [WHATWG fetch spec][whatwg-fetch] and [stream spec](https://streams.spec.whatwg.org/) implementation details, document known differences. -- Use native promise but allow substituting it with [insert your favorite promise library]. -- Use native Node streams for body on both request and response. -- Decode content encoding (gzip/deflate) properly and convert string output (such as `res.text()` and `res.json()`) to UTF-8 automatically. -- Useful extensions such as timeout, redirect limit, response size limit, [explicit errors](ERROR-HANDLING.md) for troubleshooting. - -## Difference from client-side fetch - -- See [Known Differences](LIMITS.md) for details. -- If you happen to use a missing feature that `window.fetch` offers, feel free to open an issue. -- Pull requests are welcomed too! - -## Installation - -Current stable release (`2.x`) - -```sh -$ npm install node-fetch -``` - -## Loading and configuring the module -We suggest you load the module via `require` until the stabilization of ES modules in node: -```js -const fetch = require('node-fetch'); -``` - -If you are using a Promise library other than native, set it through `fetch.Promise`: -```js -const Bluebird = require('bluebird'); - -fetch.Promise = Bluebird; -``` - -## Common Usage - -NOTE: The documentation below is up-to-date with `2.x` releases; see the [`1.x` readme](https://github.com/bitinn/node-fetch/blob/1.x/README.md), [changelog](https://github.com/bitinn/node-fetch/blob/1.x/CHANGELOG.md) and [2.x upgrade guide](UPGRADE-GUIDE.md) for the differences. - -#### Plain text or HTML -```js -fetch('https://github.com/') - .then(res => res.text()) - .then(body => console.log(body)); -``` - -#### JSON - -```js - -fetch('https://api.github.com/users/github') - .then(res => res.json()) - .then(json => console.log(json)); -``` - -#### Simple Post -```js -fetch('https://httpbin.org/post', { method: 'POST', body: 'a=1' }) - .then(res => res.json()) // expecting a json response - .then(json => console.log(json)); -``` - -#### Post with JSON - -```js -const body = { a: 1 }; - -fetch('https://httpbin.org/post', { - method: 'post', - body: JSON.stringify(body), - headers: { 'Content-Type': 'application/json' }, - }) - .then(res => res.json()) - .then(json => console.log(json)); -``` - -#### Post with form parameters -`URLSearchParams` is available in Node.js as of v7.5.0. See [official documentation](https://nodejs.org/api/url.html#url_class_urlsearchparams) for more usage methods. - -NOTE: The `Content-Type` header is only set automatically to `x-www-form-urlencoded` when an instance of `URLSearchParams` is given as such: - -```js -const { URLSearchParams } = require('url'); - -const params = new URLSearchParams(); -params.append('a', 1); - -fetch('https://httpbin.org/post', { method: 'POST', body: params }) - .then(res => res.json()) - .then(json => console.log(json)); -``` - -#### Handling exceptions -NOTE: 3xx-5xx responses are *NOT* exceptions and should be handled in `then()`; see the next section for more information. - -Adding a catch to the fetch promise chain will catch *all* exceptions, such as errors originating from node core libraries, network errors and operational errors, which are instances of FetchError. See the [error handling document](ERROR-HANDLING.md) for more details. - -```js -fetch('https://domain.invalid/') - .catch(err => console.error(err)); -``` - -#### Handling client and server errors -It is common to create a helper function to check that the response contains no client (4xx) or server (5xx) error responses: - -```js -function checkStatus(res) { - if (res.ok) { // res.status >= 200 && res.status < 300 - return res; - } else { - throw MyCustomError(res.statusText); - } -} - -fetch('https://httpbin.org/status/400') - .then(checkStatus) - .then(res => console.log('will not get here...')) -``` - -## Advanced Usage - -#### Streams -The "Node.js way" is to use streams when possible: - -```js -fetch('https://assets-cdn.github.com/images/modules/logos_page/Octocat.png') - .then(res => { - const dest = fs.createWriteStream('./octocat.png'); - res.body.pipe(dest); - }); -``` - -In Node.js 14 you can also use async iterators to read `body`; however, be careful to catch -errors -- the longer a response runs, the more likely it is to encounter an error. - -```js -const fetch = require('node-fetch'); -const response = await fetch('https://httpbin.org/stream/3'); -try { - for await (const chunk of response.body) { - console.dir(JSON.parse(chunk.toString())); - } -} catch (err) { - console.error(err.stack); -} -``` - -In Node.js 12 you can also use async iterators to read `body`; however, async iterators with streams -did not mature until Node.js 14, so you need to do some extra work to ensure you handle errors -directly from the stream and wait on it response to fully close. - -```js -const fetch = require('node-fetch'); -const read = async body => { - let error; - body.on('error', err => { - error = err; - }); - for await (const chunk of body) { - console.dir(JSON.parse(chunk.toString())); - } - return new Promise((resolve, reject) => { - body.on('close', () => { - error ? reject(error) : resolve(); - }); - }); -}; -try { - const response = await fetch('https://httpbin.org/stream/3'); - await read(response.body); -} catch (err) { - console.error(err.stack); -} -``` - -#### Buffer -If you prefer to cache binary data in full, use buffer(). (NOTE: `buffer()` is a `node-fetch`-only API) - -```js -const fileType = require('file-type'); - -fetch('https://assets-cdn.github.com/images/modules/logos_page/Octocat.png') - .then(res => res.buffer()) - .then(buffer => fileType(buffer)) - .then(type => { /* ... */ }); -``` - -#### Accessing Headers and other Meta data -```js -fetch('https://github.com/') - .then(res => { - console.log(res.ok); - console.log(res.status); - console.log(res.statusText); - console.log(res.headers.raw()); - console.log(res.headers.get('content-type')); - }); -``` - -#### Extract Set-Cookie Header - -Unlike browsers, you can access raw `Set-Cookie` headers manually using `Headers.raw()`. This is a `node-fetch` only API. - -```js -fetch(url).then(res => { - // returns an array of values, instead of a string of comma-separated values - console.log(res.headers.raw()['set-cookie']); -}); -``` - -#### Post data using a file stream - -```js -const { createReadStream } = require('fs'); - -const stream = createReadStream('input.txt'); - -fetch('https://httpbin.org/post', { method: 'POST', body: stream }) - .then(res => res.json()) - .then(json => console.log(json)); -``` - -#### Post with form-data (detect multipart) - -```js -const FormData = require('form-data'); - -const form = new FormData(); -form.append('a', 1); - -fetch('https://httpbin.org/post', { method: 'POST', body: form }) - .then(res => res.json()) - .then(json => console.log(json)); - -// OR, using custom headers -// NOTE: getHeaders() is non-standard API - -const form = new FormData(); -form.append('a', 1); - -const options = { - method: 'POST', - body: form, - headers: form.getHeaders() -} - -fetch('https://httpbin.org/post', options) - .then(res => res.json()) - .then(json => console.log(json)); -``` - -#### Request cancellation with AbortSignal - -> NOTE: You may cancel streamed requests only on Node >= v8.0.0 - -You may cancel requests with `AbortController`. A suggested implementation is [`abort-controller`](https://www.npmjs.com/package/abort-controller). - -An example of timing out a request after 150ms could be achieved as the following: - -```js -import AbortController from 'abort-controller'; - -const controller = new AbortController(); -const timeout = setTimeout( - () => { controller.abort(); }, - 150, -); - -fetch(url, { signal: controller.signal }) - .then(res => res.json()) - .then( - data => { - useData(data) - }, - err => { - if (err.name === 'AbortError') { - // request was aborted - } - }, - ) - .finally(() => { - clearTimeout(timeout); - }); -``` - -See [test cases](https://github.com/bitinn/node-fetch/blob/master/test/test.js) for more examples. - - -## API - -### fetch(url[, options]) - -- `url` A string representing the URL for fetching -- `options` [Options](#fetch-options) for the HTTP(S) request -- Returns: Promise<[Response](#class-response)> - -Perform an HTTP(S) fetch. - -`url` should be an absolute url, such as `https://example.com/`. A path-relative URL (`/file/under/root`) or protocol-relative URL (`//can-be-http-or-https.com/`) will result in a rejected `Promise`. - -
-### Options - -The default values are shown after each option key. - -```js -{ - // These properties are part of the Fetch Standard - method: 'GET', - headers: {}, // request headers. format is the identical to that accepted by the Headers constructor (see below) - body: null, // request body. can be null, a string, a Buffer, a Blob, or a Node.js Readable stream - redirect: 'follow', // set to `manual` to extract redirect headers, `error` to reject redirect - signal: null, // pass an instance of AbortSignal to optionally abort requests - - // The following properties are node-fetch extensions - follow: 20, // maximum redirect count. 0 to not follow redirect - timeout: 0, // req/res timeout in ms, it resets on redirect. 0 to disable (OS limit applies). Signal is recommended instead. - compress: true, // support gzip/deflate content encoding. false to disable - size: 0, // maximum response body size in bytes. 0 to disable - agent: null // http(s).Agent instance or function that returns an instance (see below) -} -``` - -##### Default Headers - -If no values are set, the following request headers will be sent automatically: - -Header | Value -------------------- | -------------------------------------------------------- -`Accept-Encoding` | `gzip,deflate` _(when `options.compress === true`)_ -`Accept` | `*/*` -`Content-Length` | _(automatically calculated, if possible)_ -`Transfer-Encoding` | `chunked` _(when `req.body` is a stream)_ -`User-Agent` | `node-fetch/1.0 (+https://github.com/bitinn/node-fetch)` - -Note: when `body` is a `Stream`, `Content-Length` is not set automatically. - -##### Custom Agent - -The `agent` option allows you to specify networking related options which are out of the scope of Fetch, including and not limited to the following: - -- Support self-signed certificate -- Use only IPv4 or IPv6 -- Custom DNS Lookup - -See [`http.Agent`](https://nodejs.org/api/http.html#http_new_agent_options) for more information. - -If no agent is specified, the default agent provided by Node.js is used. Note that [this changed in Node.js 19](https://github.com/nodejs/node/blob/4267b92604ad78584244488e7f7508a690cb80d0/lib/_http_agent.js#L564) to have `keepalive` true by default. If you wish to enable `keepalive` in an earlier version of Node.js, you can override the agent as per the following code sample. - -In addition, the `agent` option accepts a function that returns `http`(s)`.Agent` instance given current [URL](https://nodejs.org/api/url.html), this is useful during a redirection chain across HTTP and HTTPS protocol. - -```js -const httpAgent = new http.Agent({ - keepAlive: true -}); -const httpsAgent = new https.Agent({ - keepAlive: true -}); - -const options = { - agent: function (_parsedURL) { - if (_parsedURL.protocol == 'http:') { - return httpAgent; - } else { - return httpsAgent; - } - } -} -``` - - -### Class: Request - -An HTTP(S) request containing information about URL, method, headers, and the body. This class implements the [Body](#iface-body) interface. - -Due to the nature of Node.js, the following properties are not implemented at this moment: - -- `type` -- `destination` -- `referrer` -- `referrerPolicy` -- `mode` -- `credentials` -- `cache` -- `integrity` -- `keepalive` - -The following node-fetch extension properties are provided: - -- `follow` -- `compress` -- `counter` -- `agent` - -See [options](#fetch-options) for exact meaning of these extensions. - -#### new Request(input[, options]) - -*(spec-compliant)* - -- `input` A string representing a URL, or another `Request` (which will be cloned) -- `options` [Options][#fetch-options] for the HTTP(S) request - -Constructs a new `Request` object. The constructor is identical to that in the [browser](https://developer.mozilla.org/en-US/docs/Web/API/Request/Request). - -In most cases, directly `fetch(url, options)` is simpler than creating a `Request` object. - - -### Class: Response - -An HTTP(S) response. This class implements the [Body](#iface-body) interface. - -The following properties are not implemented in node-fetch at this moment: - -- `Response.error()` -- `Response.redirect()` -- `type` -- `trailer` - -#### new Response([body[, options]]) - -*(spec-compliant)* - -- `body` A `String` or [`Readable` stream][node-readable] -- `options` A [`ResponseInit`][response-init] options dictionary - -Constructs a new `Response` object. The constructor is identical to that in the [browser](https://developer.mozilla.org/en-US/docs/Web/API/Response/Response). - -Because Node.js does not implement service workers (for which this class was designed), one rarely has to construct a `Response` directly. - -#### response.ok - -*(spec-compliant)* - -Convenience property representing if the request ended normally. Will evaluate to true if the response status was greater than or equal to 200 but smaller than 300. - -#### response.redirected - -*(spec-compliant)* - -Convenience property representing if the request has been redirected at least once. Will evaluate to true if the internal redirect counter is greater than 0. - - -### Class: Headers - -This class allows manipulating and iterating over a set of HTTP headers. All methods specified in the [Fetch Standard][whatwg-fetch] are implemented. - -#### new Headers([init]) - -*(spec-compliant)* - -- `init` Optional argument to pre-fill the `Headers` object - -Construct a new `Headers` object. `init` can be either `null`, a `Headers` object, an key-value map object or any iterable object. - -```js -// Example adapted from https://fetch.spec.whatwg.org/#example-headers-class - -const meta = { - 'Content-Type': 'text/xml', - 'Breaking-Bad': '<3' -}; -const headers = new Headers(meta); - -// The above is equivalent to -const meta = [ - [ 'Content-Type', 'text/xml' ], - [ 'Breaking-Bad', '<3' ] -]; -const headers = new Headers(meta); - -// You can in fact use any iterable objects, like a Map or even another Headers -const meta = new Map(); -meta.set('Content-Type', 'text/xml'); -meta.set('Breaking-Bad', '<3'); -const headers = new Headers(meta); -const copyOfHeaders = new Headers(headers); -``` - - -### Interface: Body - -`Body` is an abstract interface with methods that are applicable to both `Request` and `Response` classes. - -The following methods are not yet implemented in node-fetch at this moment: - -- `formData()` - -#### body.body - -*(deviation from spec)* - -* Node.js [`Readable` stream][node-readable] - -Data are encapsulated in the `Body` object. Note that while the [Fetch Standard][whatwg-fetch] requires the property to always be a WHATWG `ReadableStream`, in node-fetch it is a Node.js [`Readable` stream][node-readable]. - -#### body.bodyUsed - -*(spec-compliant)* - -* `Boolean` - -A boolean property for if this body has been consumed. Per the specs, a consumed body cannot be used again. - -#### body.arrayBuffer() -#### body.blob() -#### body.json() -#### body.text() - -*(spec-compliant)* - -* Returns: Promise - -Consume the body and return a promise that will resolve to one of these formats. - -#### body.buffer() - -*(node-fetch extension)* - -* Returns: Promise<Buffer> - -Consume the body and return a promise that will resolve to a Buffer. - -#### body.textConverted() - -*(node-fetch extension)* - -* Returns: Promise<String> - -Identical to `body.text()`, except instead of always converting to UTF-8, encoding sniffing will be performed and text converted to UTF-8 if possible. - -(This API requires an optional dependency of the npm package [encoding](https://www.npmjs.com/package/encoding), which you need to install manually. `webpack` users may see [a warning message](https://github.com/bitinn/node-fetch/issues/412#issuecomment-379007792) due to this optional dependency.) - - -### Class: FetchError - -*(node-fetch extension)* - -An operational error in the fetching process. See [ERROR-HANDLING.md][] for more info. - - -### Class: AbortError - -*(node-fetch extension)* - -An Error thrown when the request is aborted in response to an `AbortSignal`'s `abort` event. It has a `name` property of `AbortError`. See [ERROR-HANDLING.MD][] for more info. - -## Acknowledgement - -Thanks to [github/fetch](https://github.com/github/fetch) for providing a solid implementation reference. - -`node-fetch` v1 was maintained by [@bitinn](https://github.com/bitinn); v2 was maintained by [@TimothyGu](https://github.com/timothygu), [@bitinn](https://github.com/bitinn) and [@jimmywarting](https://github.com/jimmywarting); v2 readme is written by [@jkantr](https://github.com/jkantr). - -## License - -MIT - -[npm-image]: https://flat.badgen.net/npm/v/node-fetch -[npm-url]: https://www.npmjs.com/package/node-fetch -[travis-image]: https://flat.badgen.net/travis/bitinn/node-fetch -[travis-url]: https://travis-ci.org/bitinn/node-fetch -[codecov-image]: https://flat.badgen.net/codecov/c/github/bitinn/node-fetch/master -[codecov-url]: https://codecov.io/gh/bitinn/node-fetch -[install-size-image]: https://flat.badgen.net/packagephobia/install/node-fetch -[install-size-url]: https://packagephobia.now.sh/result?p=node-fetch -[discord-image]: https://img.shields.io/discord/619915844268326952?color=%237289DA&label=Discord&style=flat-square -[discord-url]: https://discord.gg/Zxbndcm -[opencollective-image]: https://opencollective.com/node-fetch/backers.svg -[opencollective-url]: https://opencollective.com/node-fetch -[whatwg-fetch]: https://fetch.spec.whatwg.org/ -[response-init]: https://fetch.spec.whatwg.org/#responseinit -[node-readable]: https://nodejs.org/api/stream.html#stream_readable_streams -[mdn-headers]: https://developer.mozilla.org/en-US/docs/Web/API/Headers -[LIMITS.md]: https://github.com/bitinn/node-fetch/blob/master/LIMITS.md -[ERROR-HANDLING.md]: https://github.com/bitinn/node-fetch/blob/master/ERROR-HANDLING.md -[UPGRADE-GUIDE.md]: https://github.com/bitinn/node-fetch/blob/master/UPGRADE-GUIDE.md diff --git a/node_modules/cross-fetch/node_modules/node-fetch/browser.js b/node_modules/cross-fetch/node_modules/node-fetch/browser.js deleted file mode 100644 index ee86265a..00000000 --- a/node_modules/cross-fetch/node_modules/node-fetch/browser.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; - -// ref: https://github.com/tc39/proposal-global -var getGlobal = function () { - // the only reliable means to get the global object is - // `Function('return this')()` - // However, this causes CSP violations in Chrome apps. - if (typeof self !== 'undefined') { return self; } - if (typeof window !== 'undefined') { return window; } - if (typeof global !== 'undefined') { return global; } - throw new Error('unable to locate global object'); -} - -var globalObject = getGlobal(); - -module.exports = exports = globalObject.fetch; - -// Needed for TypeScript and Webpack. -if (globalObject.fetch) { - exports.default = globalObject.fetch.bind(globalObject); -} - -exports.Headers = globalObject.Headers; -exports.Request = globalObject.Request; -exports.Response = globalObject.Response; diff --git a/node_modules/cross-fetch/node_modules/node-fetch/lib/index.es.js b/node_modules/cross-fetch/node_modules/node-fetch/lib/index.es.js deleted file mode 100644 index aae9799c..00000000 --- a/node_modules/cross-fetch/node_modules/node-fetch/lib/index.es.js +++ /dev/null @@ -1,1777 +0,0 @@ -process.emitWarning("The .es.js file is deprecated. Use .mjs instead."); - -import Stream from 'stream'; -import http from 'http'; -import Url from 'url'; -import whatwgUrl from 'whatwg-url'; -import https from 'https'; -import zlib from 'zlib'; - -// Based on https://github.com/tmpvar/jsdom/blob/aa85b2abf07766ff7bf5c1f6daafb3726f2f2db5/lib/jsdom/living/blob.js - -// fix for "Readable" isn't a named export issue -const Readable = Stream.Readable; - -const BUFFER = Symbol('buffer'); -const TYPE = Symbol('type'); - -class Blob { - constructor() { - this[TYPE] = ''; - - const blobParts = arguments[0]; - const options = arguments[1]; - - const buffers = []; - let size = 0; - - if (blobParts) { - const a = blobParts; - const length = Number(a.length); - for (let i = 0; i < length; i++) { - const element = a[i]; - let buffer; - if (element instanceof Buffer) { - buffer = element; - } else if (ArrayBuffer.isView(element)) { - buffer = Buffer.from(element.buffer, element.byteOffset, element.byteLength); - } else if (element instanceof ArrayBuffer) { - buffer = Buffer.from(element); - } else if (element instanceof Blob) { - buffer = element[BUFFER]; - } else { - buffer = Buffer.from(typeof element === 'string' ? element : String(element)); - } - size += buffer.length; - buffers.push(buffer); - } - } - - this[BUFFER] = Buffer.concat(buffers); - - let type = options && options.type !== undefined && String(options.type).toLowerCase(); - if (type && !/[^\u0020-\u007E]/.test(type)) { - this[TYPE] = type; - } - } - get size() { - return this[BUFFER].length; - } - get type() { - return this[TYPE]; - } - text() { - return Promise.resolve(this[BUFFER].toString()); - } - arrayBuffer() { - const buf = this[BUFFER]; - const ab = buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength); - return Promise.resolve(ab); - } - stream() { - const readable = new Readable(); - readable._read = function () {}; - readable.push(this[BUFFER]); - readable.push(null); - return readable; - } - toString() { - return '[object Blob]'; - } - slice() { - const size = this.size; - - const start = arguments[0]; - const end = arguments[1]; - let relativeStart, relativeEnd; - if (start === undefined) { - relativeStart = 0; - } else if (start < 0) { - relativeStart = Math.max(size + start, 0); - } else { - relativeStart = Math.min(start, size); - } - if (end === undefined) { - relativeEnd = size; - } else if (end < 0) { - relativeEnd = Math.max(size + end, 0); - } else { - relativeEnd = Math.min(end, size); - } - const span = Math.max(relativeEnd - relativeStart, 0); - - const buffer = this[BUFFER]; - const slicedBuffer = buffer.slice(relativeStart, relativeStart + span); - const blob = new Blob([], { type: arguments[2] }); - blob[BUFFER] = slicedBuffer; - return blob; - } -} - -Object.defineProperties(Blob.prototype, { - size: { enumerable: true }, - type: { enumerable: true }, - slice: { enumerable: true } -}); - -Object.defineProperty(Blob.prototype, Symbol.toStringTag, { - value: 'Blob', - writable: false, - enumerable: false, - configurable: true -}); - -/** - * fetch-error.js - * - * FetchError interface for operational errors - */ - -/** - * Create FetchError instance - * - * @param String message Error message for human - * @param String type Error type for machine - * @param String systemError For Node.js system error - * @return FetchError - */ -function FetchError(message, type, systemError) { - Error.call(this, message); - - this.message = message; - this.type = type; - - // when err.type is `system`, err.code contains system error code - if (systemError) { - this.code = this.errno = systemError.code; - } - - // hide custom error implementation details from end-users - Error.captureStackTrace(this, this.constructor); -} - -FetchError.prototype = Object.create(Error.prototype); -FetchError.prototype.constructor = FetchError; -FetchError.prototype.name = 'FetchError'; - -let convert; -try { - convert = require('encoding').convert; -} catch (e) {} - -const INTERNALS = Symbol('Body internals'); - -// fix an issue where "PassThrough" isn't a named export for node <10 -const PassThrough = Stream.PassThrough; - -/** - * Body mixin - * - * Ref: https://fetch.spec.whatwg.org/#body - * - * @param Stream body Readable stream - * @param Object opts Response options - * @return Void - */ -function Body(body) { - var _this = this; - - var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, - _ref$size = _ref.size; - - let size = _ref$size === undefined ? 0 : _ref$size; - var _ref$timeout = _ref.timeout; - let timeout = _ref$timeout === undefined ? 0 : _ref$timeout; - - if (body == null) { - // body is undefined or null - body = null; - } else if (isURLSearchParams(body)) { - // body is a URLSearchParams - body = Buffer.from(body.toString()); - } else if (isBlob(body)) ; else if (Buffer.isBuffer(body)) ; else if (Object.prototype.toString.call(body) === '[object ArrayBuffer]') { - // body is ArrayBuffer - body = Buffer.from(body); - } else if (ArrayBuffer.isView(body)) { - // body is ArrayBufferView - body = Buffer.from(body.buffer, body.byteOffset, body.byteLength); - } else if (body instanceof Stream) ; else { - // none of the above - // coerce to string then buffer - body = Buffer.from(String(body)); - } - this[INTERNALS] = { - body, - disturbed: false, - error: null - }; - this.size = size; - this.timeout = timeout; - - if (body instanceof Stream) { - body.on('error', function (err) { - const error = err.name === 'AbortError' ? err : new FetchError(`Invalid response body while trying to fetch ${_this.url}: ${err.message}`, 'system', err); - _this[INTERNALS].error = error; - }); - } -} - -Body.prototype = { - get body() { - return this[INTERNALS].body; - }, - - get bodyUsed() { - return this[INTERNALS].disturbed; - }, - - /** - * Decode response as ArrayBuffer - * - * @return Promise - */ - arrayBuffer() { - return consumeBody.call(this).then(function (buf) { - return buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength); - }); - }, - - /** - * Return raw response as Blob - * - * @return Promise - */ - blob() { - let ct = this.headers && this.headers.get('content-type') || ''; - return consumeBody.call(this).then(function (buf) { - return Object.assign( - // Prevent copying - new Blob([], { - type: ct.toLowerCase() - }), { - [BUFFER]: buf - }); - }); - }, - - /** - * Decode response as json - * - * @return Promise - */ - json() { - var _this2 = this; - - return consumeBody.call(this).then(function (buffer) { - try { - return JSON.parse(buffer.toString()); - } catch (err) { - return Body.Promise.reject(new FetchError(`invalid json response body at ${_this2.url} reason: ${err.message}`, 'invalid-json')); - } - }); - }, - - /** - * Decode response as text - * - * @return Promise - */ - text() { - return consumeBody.call(this).then(function (buffer) { - return buffer.toString(); - }); - }, - - /** - * Decode response as buffer (non-spec api) - * - * @return Promise - */ - buffer() { - return consumeBody.call(this); - }, - - /** - * Decode response as text, while automatically detecting the encoding and - * trying to decode to UTF-8 (non-spec api) - * - * @return Promise - */ - textConverted() { - var _this3 = this; - - return consumeBody.call(this).then(function (buffer) { - return convertBody(buffer, _this3.headers); - }); - } -}; - -// In browsers, all properties are enumerable. -Object.defineProperties(Body.prototype, { - body: { enumerable: true }, - bodyUsed: { enumerable: true }, - arrayBuffer: { enumerable: true }, - blob: { enumerable: true }, - json: { enumerable: true }, - text: { enumerable: true } -}); - -Body.mixIn = function (proto) { - for (const name of Object.getOwnPropertyNames(Body.prototype)) { - // istanbul ignore else: future proof - if (!(name in proto)) { - const desc = Object.getOwnPropertyDescriptor(Body.prototype, name); - Object.defineProperty(proto, name, desc); - } - } -}; - -/** - * Consume and convert an entire Body to a Buffer. - * - * Ref: https://fetch.spec.whatwg.org/#concept-body-consume-body - * - * @return Promise - */ -function consumeBody() { - var _this4 = this; - - if (this[INTERNALS].disturbed) { - return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`)); - } - - this[INTERNALS].disturbed = true; - - if (this[INTERNALS].error) { - return Body.Promise.reject(this[INTERNALS].error); - } - - let body = this.body; - - // body is null - if (body === null) { - return Body.Promise.resolve(Buffer.alloc(0)); - } - - // body is blob - if (isBlob(body)) { - body = body.stream(); - } - - // body is buffer - if (Buffer.isBuffer(body)) { - return Body.Promise.resolve(body); - } - - // istanbul ignore if: should never happen - if (!(body instanceof Stream)) { - return Body.Promise.resolve(Buffer.alloc(0)); - } - - // body is stream - // get ready to actually consume the body - let accum = []; - let accumBytes = 0; - let abort = false; - - return new Body.Promise(function (resolve, reject) { - let resTimeout; - - // allow timeout on slow response body - if (_this4.timeout) { - resTimeout = setTimeout(function () { - abort = true; - reject(new FetchError(`Response timeout while trying to fetch ${_this4.url} (over ${_this4.timeout}ms)`, 'body-timeout')); - }, _this4.timeout); - } - - // handle stream errors - body.on('error', function (err) { - if (err.name === 'AbortError') { - // if the request was aborted, reject with this Error - abort = true; - reject(err); - } else { - // other errors, such as incorrect content-encoding - reject(new FetchError(`Invalid response body while trying to fetch ${_this4.url}: ${err.message}`, 'system', err)); - } - }); - - body.on('data', function (chunk) { - if (abort || chunk === null) { - return; - } - - if (_this4.size && accumBytes + chunk.length > _this4.size) { - abort = true; - reject(new FetchError(`content size at ${_this4.url} over limit: ${_this4.size}`, 'max-size')); - return; - } - - accumBytes += chunk.length; - accum.push(chunk); - }); - - body.on('end', function () { - if (abort) { - return; - } - - clearTimeout(resTimeout); - - try { - resolve(Buffer.concat(accum, accumBytes)); - } catch (err) { - // handle streams that have accumulated too much data (issue #414) - reject(new FetchError(`Could not create Buffer from response body for ${_this4.url}: ${err.message}`, 'system', err)); - } - }); - }); -} - -/** - * Detect buffer encoding and convert to target encoding - * ref: http://www.w3.org/TR/2011/WD-html5-20110113/parsing.html#determining-the-character-encoding - * - * @param Buffer buffer Incoming buffer - * @param String encoding Target encoding - * @return String - */ -function convertBody(buffer, headers) { - if (typeof convert !== 'function') { - throw new Error('The package `encoding` must be installed to use the textConverted() function'); - } - - const ct = headers.get('content-type'); - let charset = 'utf-8'; - let res, str; - - // header - if (ct) { - res = /charset=([^;]*)/i.exec(ct); - } - - // no charset in content type, peek at response body for at most 1024 bytes - str = buffer.slice(0, 1024).toString(); - - // html5 - if (!res && str) { - res = / 0 && arguments[0] !== undefined ? arguments[0] : undefined; - - this[MAP] = Object.create(null); - - if (init instanceof Headers) { - const rawHeaders = init.raw(); - const headerNames = Object.keys(rawHeaders); - - for (const headerName of headerNames) { - for (const value of rawHeaders[headerName]) { - this.append(headerName, value); - } - } - - return; - } - - // We don't worry about converting prop to ByteString here as append() - // will handle it. - if (init == null) ; else if (typeof init === 'object') { - const method = init[Symbol.iterator]; - if (method != null) { - if (typeof method !== 'function') { - throw new TypeError('Header pairs must be iterable'); - } - - // sequence> - // Note: per spec we have to first exhaust the lists then process them - const pairs = []; - for (const pair of init) { - if (typeof pair !== 'object' || typeof pair[Symbol.iterator] !== 'function') { - throw new TypeError('Each header pair must be iterable'); - } - pairs.push(Array.from(pair)); - } - - for (const pair of pairs) { - if (pair.length !== 2) { - throw new TypeError('Each header pair must be a name/value tuple'); - } - this.append(pair[0], pair[1]); - } - } else { - // record - for (const key of Object.keys(init)) { - const value = init[key]; - this.append(key, value); - } - } - } else { - throw new TypeError('Provided initializer must be an object'); - } - } - - /** - * Return combined header value given name - * - * @param String name Header name - * @return Mixed - */ - get(name) { - name = `${name}`; - validateName(name); - const key = find(this[MAP], name); - if (key === undefined) { - return null; - } - - return this[MAP][key].join(', '); - } - - /** - * Iterate over all headers - * - * @param Function callback Executed for each item with parameters (value, name, thisArg) - * @param Boolean thisArg `this` context for callback function - * @return Void - */ - forEach(callback) { - let thisArg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined; - - let pairs = getHeaders(this); - let i = 0; - while (i < pairs.length) { - var _pairs$i = pairs[i]; - const name = _pairs$i[0], - value = _pairs$i[1]; - - callback.call(thisArg, value, name, this); - pairs = getHeaders(this); - i++; - } - } - - /** - * Overwrite header values given name - * - * @param String name Header name - * @param String value Header value - * @return Void - */ - set(name, value) { - name = `${name}`; - value = `${value}`; - validateName(name); - validateValue(value); - const key = find(this[MAP], name); - this[MAP][key !== undefined ? key : name] = [value]; - } - - /** - * Append a value onto existing header - * - * @param String name Header name - * @param String value Header value - * @return Void - */ - append(name, value) { - name = `${name}`; - value = `${value}`; - validateName(name); - validateValue(value); - const key = find(this[MAP], name); - if (key !== undefined) { - this[MAP][key].push(value); - } else { - this[MAP][name] = [value]; - } - } - - /** - * Check for header name existence - * - * @param String name Header name - * @return Boolean - */ - has(name) { - name = `${name}`; - validateName(name); - return find(this[MAP], name) !== undefined; - } - - /** - * Delete all header values given name - * - * @param String name Header name - * @return Void - */ - delete(name) { - name = `${name}`; - validateName(name); - const key = find(this[MAP], name); - if (key !== undefined) { - delete this[MAP][key]; - } - } - - /** - * Return raw headers (non-spec api) - * - * @return Object - */ - raw() { - return this[MAP]; - } - - /** - * Get an iterator on keys. - * - * @return Iterator - */ - keys() { - return createHeadersIterator(this, 'key'); - } - - /** - * Get an iterator on values. - * - * @return Iterator - */ - values() { - return createHeadersIterator(this, 'value'); - } - - /** - * Get an iterator on entries. - * - * This is the default iterator of the Headers object. - * - * @return Iterator - */ - [Symbol.iterator]() { - return createHeadersIterator(this, 'key+value'); - } -} -Headers.prototype.entries = Headers.prototype[Symbol.iterator]; - -Object.defineProperty(Headers.prototype, Symbol.toStringTag, { - value: 'Headers', - writable: false, - enumerable: false, - configurable: true -}); - -Object.defineProperties(Headers.prototype, { - get: { enumerable: true }, - forEach: { enumerable: true }, - set: { enumerable: true }, - append: { enumerable: true }, - has: { enumerable: true }, - delete: { enumerable: true }, - keys: { enumerable: true }, - values: { enumerable: true }, - entries: { enumerable: true } -}); - -function getHeaders(headers) { - let kind = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'key+value'; - - const keys = Object.keys(headers[MAP]).sort(); - return keys.map(kind === 'key' ? function (k) { - return k.toLowerCase(); - } : kind === 'value' ? function (k) { - return headers[MAP][k].join(', '); - } : function (k) { - return [k.toLowerCase(), headers[MAP][k].join(', ')]; - }); -} - -const INTERNAL = Symbol('internal'); - -function createHeadersIterator(target, kind) { - const iterator = Object.create(HeadersIteratorPrototype); - iterator[INTERNAL] = { - target, - kind, - index: 0 - }; - return iterator; -} - -const HeadersIteratorPrototype = Object.setPrototypeOf({ - next() { - // istanbul ignore if - if (!this || Object.getPrototypeOf(this) !== HeadersIteratorPrototype) { - throw new TypeError('Value of `this` is not a HeadersIterator'); - } - - var _INTERNAL = this[INTERNAL]; - const target = _INTERNAL.target, - kind = _INTERNAL.kind, - index = _INTERNAL.index; - - const values = getHeaders(target, kind); - const len = values.length; - if (index >= len) { - return { - value: undefined, - done: true - }; - } - - this[INTERNAL].index = index + 1; - - return { - value: values[index], - done: false - }; - } -}, Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()))); - -Object.defineProperty(HeadersIteratorPrototype, Symbol.toStringTag, { - value: 'HeadersIterator', - writable: false, - enumerable: false, - configurable: true -}); - -/** - * Export the Headers object in a form that Node.js can consume. - * - * @param Headers headers - * @return Object - */ -function exportNodeCompatibleHeaders(headers) { - const obj = Object.assign({ __proto__: null }, headers[MAP]); - - // http.request() only supports string as Host header. This hack makes - // specifying custom Host header possible. - const hostHeaderKey = find(headers[MAP], 'Host'); - if (hostHeaderKey !== undefined) { - obj[hostHeaderKey] = obj[hostHeaderKey][0]; - } - - return obj; -} - -/** - * Create a Headers object from an object of headers, ignoring those that do - * not conform to HTTP grammar productions. - * - * @param Object obj Object of headers - * @return Headers - */ -function createHeadersLenient(obj) { - const headers = new Headers(); - for (const name of Object.keys(obj)) { - if (invalidTokenRegex.test(name)) { - continue; - } - if (Array.isArray(obj[name])) { - for (const val of obj[name]) { - if (invalidHeaderCharRegex.test(val)) { - continue; - } - if (headers[MAP][name] === undefined) { - headers[MAP][name] = [val]; - } else { - headers[MAP][name].push(val); - } - } - } else if (!invalidHeaderCharRegex.test(obj[name])) { - headers[MAP][name] = [obj[name]]; - } - } - return headers; -} - -const INTERNALS$1 = Symbol('Response internals'); - -// fix an issue where "STATUS_CODES" aren't a named export for node <10 -const STATUS_CODES = http.STATUS_CODES; - -/** - * Response class - * - * @param Stream body Readable stream - * @param Object opts Response options - * @return Void - */ -class Response { - constructor() { - let body = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; - let opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - Body.call(this, body, opts); - - const status = opts.status || 200; - const headers = new Headers(opts.headers); - - if (body != null && !headers.has('Content-Type')) { - const contentType = extractContentType(body); - if (contentType) { - headers.append('Content-Type', contentType); - } - } - - this[INTERNALS$1] = { - url: opts.url, - status, - statusText: opts.statusText || STATUS_CODES[status], - headers, - counter: opts.counter - }; - } - - get url() { - return this[INTERNALS$1].url || ''; - } - - get status() { - return this[INTERNALS$1].status; - } - - /** - * Convenience property representing if the request ended normally - */ - get ok() { - return this[INTERNALS$1].status >= 200 && this[INTERNALS$1].status < 300; - } - - get redirected() { - return this[INTERNALS$1].counter > 0; - } - - get statusText() { - return this[INTERNALS$1].statusText; - } - - get headers() { - return this[INTERNALS$1].headers; - } - - /** - * Clone this response - * - * @return Response - */ - clone() { - return new Response(clone(this), { - url: this.url, - status: this.status, - statusText: this.statusText, - headers: this.headers, - ok: this.ok, - redirected: this.redirected - }); - } -} - -Body.mixIn(Response.prototype); - -Object.defineProperties(Response.prototype, { - url: { enumerable: true }, - status: { enumerable: true }, - ok: { enumerable: true }, - redirected: { enumerable: true }, - statusText: { enumerable: true }, - headers: { enumerable: true }, - clone: { enumerable: true } -}); - -Object.defineProperty(Response.prototype, Symbol.toStringTag, { - value: 'Response', - writable: false, - enumerable: false, - configurable: true -}); - -const INTERNALS$2 = Symbol('Request internals'); -const URL = Url.URL || whatwgUrl.URL; - -// fix an issue where "format", "parse" aren't a named export for node <10 -const parse_url = Url.parse; -const format_url = Url.format; - -/** - * Wrapper around `new URL` to handle arbitrary URLs - * - * @param {string} urlStr - * @return {void} - */ -function parseURL(urlStr) { - /* - Check whether the URL is absolute or not - Scheme: https://tools.ietf.org/html/rfc3986#section-3.1 - Absolute URL: https://tools.ietf.org/html/rfc3986#section-4.3 - */ - if (/^[a-zA-Z][a-zA-Z\d+\-.]*:/.exec(urlStr)) { - urlStr = new URL(urlStr).toString(); - } - - // Fallback to old implementation for arbitrary URLs - return parse_url(urlStr); -} - -const streamDestructionSupported = 'destroy' in Stream.Readable.prototype; - -/** - * Check if a value is an instance of Request. - * - * @param Mixed input - * @return Boolean - */ -function isRequest(input) { - return typeof input === 'object' && typeof input[INTERNALS$2] === 'object'; -} - -function isAbortSignal(signal) { - const proto = signal && typeof signal === 'object' && Object.getPrototypeOf(signal); - return !!(proto && proto.constructor.name === 'AbortSignal'); -} - -/** - * Request class - * - * @param Mixed input Url or Request instance - * @param Object init Custom options - * @return Void - */ -class Request { - constructor(input) { - let init = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - let parsedURL; - - // normalize input - if (!isRequest(input)) { - if (input && input.href) { - // in order to support Node.js' Url objects; though WHATWG's URL objects - // will fall into this branch also (since their `toString()` will return - // `href` property anyway) - parsedURL = parseURL(input.href); - } else { - // coerce input to a string before attempting to parse - parsedURL = parseURL(`${input}`); - } - input = {}; - } else { - parsedURL = parseURL(input.url); - } - - let method = init.method || input.method || 'GET'; - method = method.toUpperCase(); - - if ((init.body != null || isRequest(input) && input.body !== null) && (method === 'GET' || method === 'HEAD')) { - throw new TypeError('Request with GET/HEAD method cannot have body'); - } - - let inputBody = init.body != null ? init.body : isRequest(input) && input.body !== null ? clone(input) : null; - - Body.call(this, inputBody, { - timeout: init.timeout || input.timeout || 0, - size: init.size || input.size || 0 - }); - - const headers = new Headers(init.headers || input.headers || {}); - - if (inputBody != null && !headers.has('Content-Type')) { - const contentType = extractContentType(inputBody); - if (contentType) { - headers.append('Content-Type', contentType); - } - } - - let signal = isRequest(input) ? input.signal : null; - if ('signal' in init) signal = init.signal; - - if (signal != null && !isAbortSignal(signal)) { - throw new TypeError('Expected signal to be an instanceof AbortSignal'); - } - - this[INTERNALS$2] = { - method, - redirect: init.redirect || input.redirect || 'follow', - headers, - parsedURL, - signal - }; - - // node-fetch-only options - this.follow = init.follow !== undefined ? init.follow : input.follow !== undefined ? input.follow : 20; - this.compress = init.compress !== undefined ? init.compress : input.compress !== undefined ? input.compress : true; - this.counter = init.counter || input.counter || 0; - this.agent = init.agent || input.agent; - } - - get method() { - return this[INTERNALS$2].method; - } - - get url() { - return format_url(this[INTERNALS$2].parsedURL); - } - - get headers() { - return this[INTERNALS$2].headers; - } - - get redirect() { - return this[INTERNALS$2].redirect; - } - - get signal() { - return this[INTERNALS$2].signal; - } - - /** - * Clone this request - * - * @return Request - */ - clone() { - return new Request(this); - } -} - -Body.mixIn(Request.prototype); - -Object.defineProperty(Request.prototype, Symbol.toStringTag, { - value: 'Request', - writable: false, - enumerable: false, - configurable: true -}); - -Object.defineProperties(Request.prototype, { - method: { enumerable: true }, - url: { enumerable: true }, - headers: { enumerable: true }, - redirect: { enumerable: true }, - clone: { enumerable: true }, - signal: { enumerable: true } -}); - -/** - * Convert a Request to Node.js http request options. - * - * @param Request A Request instance - * @return Object The options object to be passed to http.request - */ -function getNodeRequestOptions(request) { - const parsedURL = request[INTERNALS$2].parsedURL; - const headers = new Headers(request[INTERNALS$2].headers); - - // fetch step 1.3 - if (!headers.has('Accept')) { - headers.set('Accept', '*/*'); - } - - // Basic fetch - if (!parsedURL.protocol || !parsedURL.hostname) { - throw new TypeError('Only absolute URLs are supported'); - } - - if (!/^https?:$/.test(parsedURL.protocol)) { - throw new TypeError('Only HTTP(S) protocols are supported'); - } - - if (request.signal && request.body instanceof Stream.Readable && !streamDestructionSupported) { - throw new Error('Cancellation of streamed requests with AbortSignal is not supported in node < 8'); - } - - // HTTP-network-or-cache fetch steps 2.4-2.7 - let contentLengthValue = null; - if (request.body == null && /^(POST|PUT)$/i.test(request.method)) { - contentLengthValue = '0'; - } - if (request.body != null) { - const totalBytes = getTotalBytes(request); - if (typeof totalBytes === 'number') { - contentLengthValue = String(totalBytes); - } - } - if (contentLengthValue) { - headers.set('Content-Length', contentLengthValue); - } - - // HTTP-network-or-cache fetch step 2.11 - if (!headers.has('User-Agent')) { - headers.set('User-Agent', 'node-fetch/1.0 (+https://github.com/bitinn/node-fetch)'); - } - - // HTTP-network-or-cache fetch step 2.15 - if (request.compress && !headers.has('Accept-Encoding')) { - headers.set('Accept-Encoding', 'gzip,deflate'); - } - - let agent = request.agent; - if (typeof agent === 'function') { - agent = agent(parsedURL); - } - - // HTTP-network fetch step 4.2 - // chunked encoding is handled by Node.js - - return Object.assign({}, parsedURL, { - method: request.method, - headers: exportNodeCompatibleHeaders(headers), - agent - }); -} - -/** - * abort-error.js - * - * AbortError interface for cancelled requests - */ - -/** - * Create AbortError instance - * - * @param String message Error message for human - * @return AbortError - */ -function AbortError(message) { - Error.call(this, message); - - this.type = 'aborted'; - this.message = message; - - // hide custom error implementation details from end-users - Error.captureStackTrace(this, this.constructor); -} - -AbortError.prototype = Object.create(Error.prototype); -AbortError.prototype.constructor = AbortError; -AbortError.prototype.name = 'AbortError'; - -const URL$1 = Url.URL || whatwgUrl.URL; - -// fix an issue where "PassThrough", "resolve" aren't a named export for node <10 -const PassThrough$1 = Stream.PassThrough; - -const isDomainOrSubdomain = function isDomainOrSubdomain(destination, original) { - const orig = new URL$1(original).hostname; - const dest = new URL$1(destination).hostname; - - return orig === dest || orig[orig.length - dest.length - 1] === '.' && orig.endsWith(dest); -}; - -/** - * isSameProtocol reports whether the two provided URLs use the same protocol. - * - * Both domains must already be in canonical form. - * @param {string|URL} original - * @param {string|URL} destination - */ -const isSameProtocol = function isSameProtocol(destination, original) { - const orig = new URL$1(original).protocol; - const dest = new URL$1(destination).protocol; - - return orig === dest; -}; - -/** - * Fetch function - * - * @param Mixed url Absolute url or Request instance - * @param Object opts Fetch options - * @return Promise - */ -function fetch(url, opts) { - - // allow custom promise - if (!fetch.Promise) { - throw new Error('native promise missing, set fetch.Promise to your favorite alternative'); - } - - Body.Promise = fetch.Promise; - - // wrap http.request into fetch - return new fetch.Promise(function (resolve, reject) { - // build request object - const request = new Request(url, opts); - const options = getNodeRequestOptions(request); - - const send = (options.protocol === 'https:' ? https : http).request; - const signal = request.signal; - - let response = null; - - const abort = function abort() { - let error = new AbortError('The user aborted a request.'); - reject(error); - if (request.body && request.body instanceof Stream.Readable) { - destroyStream(request.body, error); - } - if (!response || !response.body) return; - response.body.emit('error', error); - }; - - if (signal && signal.aborted) { - abort(); - return; - } - - const abortAndFinalize = function abortAndFinalize() { - abort(); - finalize(); - }; - - // send request - const req = send(options); - let reqTimeout; - - if (signal) { - signal.addEventListener('abort', abortAndFinalize); - } - - function finalize() { - req.abort(); - if (signal) signal.removeEventListener('abort', abortAndFinalize); - clearTimeout(reqTimeout); - } - - if (request.timeout) { - req.once('socket', function (socket) { - reqTimeout = setTimeout(function () { - reject(new FetchError(`network timeout at: ${request.url}`, 'request-timeout')); - finalize(); - }, request.timeout); - }); - } - - req.on('error', function (err) { - reject(new FetchError(`request to ${request.url} failed, reason: ${err.message}`, 'system', err)); - - if (response && response.body) { - destroyStream(response.body, err); - } - - finalize(); - }); - - fixResponseChunkedTransferBadEnding(req, function (err) { - if (signal && signal.aborted) { - return; - } - - if (response && response.body) { - destroyStream(response.body, err); - } - }); - - /* c8 ignore next 18 */ - if (parseInt(process.version.substring(1)) < 14) { - // Before Node.js 14, pipeline() does not fully support async iterators and does not always - // properly handle when the socket close/end events are out of order. - req.on('socket', function (s) { - s.addListener('close', function (hadError) { - // if a data listener is still present we didn't end cleanly - const hasDataListener = s.listenerCount('data') > 0; - - // if end happened before close but the socket didn't emit an error, do it now - if (response && hasDataListener && !hadError && !(signal && signal.aborted)) { - const err = new Error('Premature close'); - err.code = 'ERR_STREAM_PREMATURE_CLOSE'; - response.body.emit('error', err); - } - }); - }); - } - - req.on('response', function (res) { - clearTimeout(reqTimeout); - - const headers = createHeadersLenient(res.headers); - - // HTTP fetch step 5 - if (fetch.isRedirect(res.statusCode)) { - // HTTP fetch step 5.2 - const location = headers.get('Location'); - - // HTTP fetch step 5.3 - let locationURL = null; - try { - locationURL = location === null ? null : new URL$1(location, request.url).toString(); - } catch (err) { - // error here can only be invalid URL in Location: header - // do not throw when options.redirect == manual - // let the user extract the errorneous redirect URL - if (request.redirect !== 'manual') { - reject(new FetchError(`uri requested responds with an invalid redirect URL: ${location}`, 'invalid-redirect')); - finalize(); - return; - } - } - - // HTTP fetch step 5.5 - switch (request.redirect) { - case 'error': - reject(new FetchError(`uri requested responds with a redirect, redirect mode is set to error: ${request.url}`, 'no-redirect')); - finalize(); - return; - case 'manual': - // node-fetch-specific step: make manual redirect a bit easier to use by setting the Location header value to the resolved URL. - if (locationURL !== null) { - // handle corrupted header - try { - headers.set('Location', locationURL); - } catch (err) { - // istanbul ignore next: nodejs server prevent invalid response headers, we can't test this through normal request - reject(err); - } - } - break; - case 'follow': - // HTTP-redirect fetch step 2 - if (locationURL === null) { - break; - } - - // HTTP-redirect fetch step 5 - if (request.counter >= request.follow) { - reject(new FetchError(`maximum redirect reached at: ${request.url}`, 'max-redirect')); - finalize(); - return; - } - - // HTTP-redirect fetch step 6 (counter increment) - // Create a new Request object. - const requestOpts = { - headers: new Headers(request.headers), - follow: request.follow, - counter: request.counter + 1, - agent: request.agent, - compress: request.compress, - method: request.method, - body: request.body, - signal: request.signal, - timeout: request.timeout, - size: request.size - }; - - if (!isDomainOrSubdomain(request.url, locationURL) || !isSameProtocol(request.url, locationURL)) { - for (const name of ['authorization', 'www-authenticate', 'cookie', 'cookie2']) { - requestOpts.headers.delete(name); - } - } - - // HTTP-redirect fetch step 9 - if (res.statusCode !== 303 && request.body && getTotalBytes(request) === null) { - reject(new FetchError('Cannot follow redirect with body being a readable stream', 'unsupported-redirect')); - finalize(); - return; - } - - // HTTP-redirect fetch step 11 - if (res.statusCode === 303 || (res.statusCode === 301 || res.statusCode === 302) && request.method === 'POST') { - requestOpts.method = 'GET'; - requestOpts.body = undefined; - requestOpts.headers.delete('content-length'); - } - - // HTTP-redirect fetch step 15 - resolve(fetch(new Request(locationURL, requestOpts))); - finalize(); - return; - } - } - - // prepare response - res.once('end', function () { - if (signal) signal.removeEventListener('abort', abortAndFinalize); - }); - let body = res.pipe(new PassThrough$1()); - - const response_options = { - url: request.url, - status: res.statusCode, - statusText: res.statusMessage, - headers: headers, - size: request.size, - timeout: request.timeout, - counter: request.counter - }; - - // HTTP-network fetch step 12.1.1.3 - const codings = headers.get('Content-Encoding'); - - // HTTP-network fetch step 12.1.1.4: handle content codings - - // in following scenarios we ignore compression support - // 1. compression support is disabled - // 2. HEAD request - // 3. no Content-Encoding header - // 4. no content response (204) - // 5. content not modified response (304) - if (!request.compress || request.method === 'HEAD' || codings === null || res.statusCode === 204 || res.statusCode === 304) { - response = new Response(body, response_options); - resolve(response); - return; - } - - // For Node v6+ - // Be less strict when decoding compressed responses, since sometimes - // servers send slightly invalid responses that are still accepted - // by common browsers. - // Always using Z_SYNC_FLUSH is what cURL does. - const zlibOptions = { - flush: zlib.Z_SYNC_FLUSH, - finishFlush: zlib.Z_SYNC_FLUSH - }; - - // for gzip - if (codings == 'gzip' || codings == 'x-gzip') { - body = body.pipe(zlib.createGunzip(zlibOptions)); - response = new Response(body, response_options); - resolve(response); - return; - } - - // for deflate - if (codings == 'deflate' || codings == 'x-deflate') { - // handle the infamous raw deflate response from old servers - // a hack for old IIS and Apache servers - const raw = res.pipe(new PassThrough$1()); - raw.once('data', function (chunk) { - // see http://stackoverflow.com/questions/37519828 - if ((chunk[0] & 0x0F) === 0x08) { - body = body.pipe(zlib.createInflate()); - } else { - body = body.pipe(zlib.createInflateRaw()); - } - response = new Response(body, response_options); - resolve(response); - }); - raw.on('end', function () { - // some old IIS servers return zero-length OK deflate responses, so 'data' is never emitted. - if (!response) { - response = new Response(body, response_options); - resolve(response); - } - }); - return; - } - - // for br - if (codings == 'br' && typeof zlib.createBrotliDecompress === 'function') { - body = body.pipe(zlib.createBrotliDecompress()); - response = new Response(body, response_options); - resolve(response); - return; - } - - // otherwise, use response as-is - response = new Response(body, response_options); - resolve(response); - }); - - writeToStream(req, request); - }); -} -function fixResponseChunkedTransferBadEnding(request, errorCallback) { - let socket; - - request.on('socket', function (s) { - socket = s; - }); - - request.on('response', function (response) { - const headers = response.headers; - - if (headers['transfer-encoding'] === 'chunked' && !headers['content-length']) { - response.once('close', function (hadError) { - // tests for socket presence, as in some situations the - // the 'socket' event is not triggered for the request - // (happens in deno), avoids `TypeError` - // if a data listener is still present we didn't end cleanly - const hasDataListener = socket && socket.listenerCount('data') > 0; - - if (hasDataListener && !hadError) { - const err = new Error('Premature close'); - err.code = 'ERR_STREAM_PREMATURE_CLOSE'; - errorCallback(err); - } - }); - } - }); -} - -function destroyStream(stream, err) { - if (stream.destroy) { - stream.destroy(err); - } else { - // node < 8 - stream.emit('error', err); - stream.end(); - } -} - -/** - * Redirect code matching - * - * @param Number code Status code - * @return Boolean - */ -fetch.isRedirect = function (code) { - return code === 301 || code === 302 || code === 303 || code === 307 || code === 308; -}; - -// expose Promise -fetch.Promise = global.Promise; - -export default fetch; -export { Headers, Request, Response, FetchError, AbortError }; diff --git a/node_modules/cross-fetch/node_modules/node-fetch/lib/index.js b/node_modules/cross-fetch/node_modules/node-fetch/lib/index.js deleted file mode 100644 index 567ff5da..00000000 --- a/node_modules/cross-fetch/node_modules/node-fetch/lib/index.js +++ /dev/null @@ -1,1787 +0,0 @@ -'use strict'; - -Object.defineProperty(exports, '__esModule', { value: true }); - -function _interopDefault (ex) { return (ex && (typeof ex === 'object') && 'default' in ex) ? ex['default'] : ex; } - -var Stream = _interopDefault(require('stream')); -var http = _interopDefault(require('http')); -var Url = _interopDefault(require('url')); -var whatwgUrl = _interopDefault(require('whatwg-url')); -var https = _interopDefault(require('https')); -var zlib = _interopDefault(require('zlib')); - -// Based on https://github.com/tmpvar/jsdom/blob/aa85b2abf07766ff7bf5c1f6daafb3726f2f2db5/lib/jsdom/living/blob.js - -// fix for "Readable" isn't a named export issue -const Readable = Stream.Readable; - -const BUFFER = Symbol('buffer'); -const TYPE = Symbol('type'); - -class Blob { - constructor() { - this[TYPE] = ''; - - const blobParts = arguments[0]; - const options = arguments[1]; - - const buffers = []; - let size = 0; - - if (blobParts) { - const a = blobParts; - const length = Number(a.length); - for (let i = 0; i < length; i++) { - const element = a[i]; - let buffer; - if (element instanceof Buffer) { - buffer = element; - } else if (ArrayBuffer.isView(element)) { - buffer = Buffer.from(element.buffer, element.byteOffset, element.byteLength); - } else if (element instanceof ArrayBuffer) { - buffer = Buffer.from(element); - } else if (element instanceof Blob) { - buffer = element[BUFFER]; - } else { - buffer = Buffer.from(typeof element === 'string' ? element : String(element)); - } - size += buffer.length; - buffers.push(buffer); - } - } - - this[BUFFER] = Buffer.concat(buffers); - - let type = options && options.type !== undefined && String(options.type).toLowerCase(); - if (type && !/[^\u0020-\u007E]/.test(type)) { - this[TYPE] = type; - } - } - get size() { - return this[BUFFER].length; - } - get type() { - return this[TYPE]; - } - text() { - return Promise.resolve(this[BUFFER].toString()); - } - arrayBuffer() { - const buf = this[BUFFER]; - const ab = buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength); - return Promise.resolve(ab); - } - stream() { - const readable = new Readable(); - readable._read = function () {}; - readable.push(this[BUFFER]); - readable.push(null); - return readable; - } - toString() { - return '[object Blob]'; - } - slice() { - const size = this.size; - - const start = arguments[0]; - const end = arguments[1]; - let relativeStart, relativeEnd; - if (start === undefined) { - relativeStart = 0; - } else if (start < 0) { - relativeStart = Math.max(size + start, 0); - } else { - relativeStart = Math.min(start, size); - } - if (end === undefined) { - relativeEnd = size; - } else if (end < 0) { - relativeEnd = Math.max(size + end, 0); - } else { - relativeEnd = Math.min(end, size); - } - const span = Math.max(relativeEnd - relativeStart, 0); - - const buffer = this[BUFFER]; - const slicedBuffer = buffer.slice(relativeStart, relativeStart + span); - const blob = new Blob([], { type: arguments[2] }); - blob[BUFFER] = slicedBuffer; - return blob; - } -} - -Object.defineProperties(Blob.prototype, { - size: { enumerable: true }, - type: { enumerable: true }, - slice: { enumerable: true } -}); - -Object.defineProperty(Blob.prototype, Symbol.toStringTag, { - value: 'Blob', - writable: false, - enumerable: false, - configurable: true -}); - -/** - * fetch-error.js - * - * FetchError interface for operational errors - */ - -/** - * Create FetchError instance - * - * @param String message Error message for human - * @param String type Error type for machine - * @param String systemError For Node.js system error - * @return FetchError - */ -function FetchError(message, type, systemError) { - Error.call(this, message); - - this.message = message; - this.type = type; - - // when err.type is `system`, err.code contains system error code - if (systemError) { - this.code = this.errno = systemError.code; - } - - // hide custom error implementation details from end-users - Error.captureStackTrace(this, this.constructor); -} - -FetchError.prototype = Object.create(Error.prototype); -FetchError.prototype.constructor = FetchError; -FetchError.prototype.name = 'FetchError'; - -let convert; -try { - convert = require('encoding').convert; -} catch (e) {} - -const INTERNALS = Symbol('Body internals'); - -// fix an issue where "PassThrough" isn't a named export for node <10 -const PassThrough = Stream.PassThrough; - -/** - * Body mixin - * - * Ref: https://fetch.spec.whatwg.org/#body - * - * @param Stream body Readable stream - * @param Object opts Response options - * @return Void - */ -function Body(body) { - var _this = this; - - var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, - _ref$size = _ref.size; - - let size = _ref$size === undefined ? 0 : _ref$size; - var _ref$timeout = _ref.timeout; - let timeout = _ref$timeout === undefined ? 0 : _ref$timeout; - - if (body == null) { - // body is undefined or null - body = null; - } else if (isURLSearchParams(body)) { - // body is a URLSearchParams - body = Buffer.from(body.toString()); - } else if (isBlob(body)) ; else if (Buffer.isBuffer(body)) ; else if (Object.prototype.toString.call(body) === '[object ArrayBuffer]') { - // body is ArrayBuffer - body = Buffer.from(body); - } else if (ArrayBuffer.isView(body)) { - // body is ArrayBufferView - body = Buffer.from(body.buffer, body.byteOffset, body.byteLength); - } else if (body instanceof Stream) ; else { - // none of the above - // coerce to string then buffer - body = Buffer.from(String(body)); - } - this[INTERNALS] = { - body, - disturbed: false, - error: null - }; - this.size = size; - this.timeout = timeout; - - if (body instanceof Stream) { - body.on('error', function (err) { - const error = err.name === 'AbortError' ? err : new FetchError(`Invalid response body while trying to fetch ${_this.url}: ${err.message}`, 'system', err); - _this[INTERNALS].error = error; - }); - } -} - -Body.prototype = { - get body() { - return this[INTERNALS].body; - }, - - get bodyUsed() { - return this[INTERNALS].disturbed; - }, - - /** - * Decode response as ArrayBuffer - * - * @return Promise - */ - arrayBuffer() { - return consumeBody.call(this).then(function (buf) { - return buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength); - }); - }, - - /** - * Return raw response as Blob - * - * @return Promise - */ - blob() { - let ct = this.headers && this.headers.get('content-type') || ''; - return consumeBody.call(this).then(function (buf) { - return Object.assign( - // Prevent copying - new Blob([], { - type: ct.toLowerCase() - }), { - [BUFFER]: buf - }); - }); - }, - - /** - * Decode response as json - * - * @return Promise - */ - json() { - var _this2 = this; - - return consumeBody.call(this).then(function (buffer) { - try { - return JSON.parse(buffer.toString()); - } catch (err) { - return Body.Promise.reject(new FetchError(`invalid json response body at ${_this2.url} reason: ${err.message}`, 'invalid-json')); - } - }); - }, - - /** - * Decode response as text - * - * @return Promise - */ - text() { - return consumeBody.call(this).then(function (buffer) { - return buffer.toString(); - }); - }, - - /** - * Decode response as buffer (non-spec api) - * - * @return Promise - */ - buffer() { - return consumeBody.call(this); - }, - - /** - * Decode response as text, while automatically detecting the encoding and - * trying to decode to UTF-8 (non-spec api) - * - * @return Promise - */ - textConverted() { - var _this3 = this; - - return consumeBody.call(this).then(function (buffer) { - return convertBody(buffer, _this3.headers); - }); - } -}; - -// In browsers, all properties are enumerable. -Object.defineProperties(Body.prototype, { - body: { enumerable: true }, - bodyUsed: { enumerable: true }, - arrayBuffer: { enumerable: true }, - blob: { enumerable: true }, - json: { enumerable: true }, - text: { enumerable: true } -}); - -Body.mixIn = function (proto) { - for (const name of Object.getOwnPropertyNames(Body.prototype)) { - // istanbul ignore else: future proof - if (!(name in proto)) { - const desc = Object.getOwnPropertyDescriptor(Body.prototype, name); - Object.defineProperty(proto, name, desc); - } - } -}; - -/** - * Consume and convert an entire Body to a Buffer. - * - * Ref: https://fetch.spec.whatwg.org/#concept-body-consume-body - * - * @return Promise - */ -function consumeBody() { - var _this4 = this; - - if (this[INTERNALS].disturbed) { - return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`)); - } - - this[INTERNALS].disturbed = true; - - if (this[INTERNALS].error) { - return Body.Promise.reject(this[INTERNALS].error); - } - - let body = this.body; - - // body is null - if (body === null) { - return Body.Promise.resolve(Buffer.alloc(0)); - } - - // body is blob - if (isBlob(body)) { - body = body.stream(); - } - - // body is buffer - if (Buffer.isBuffer(body)) { - return Body.Promise.resolve(body); - } - - // istanbul ignore if: should never happen - if (!(body instanceof Stream)) { - return Body.Promise.resolve(Buffer.alloc(0)); - } - - // body is stream - // get ready to actually consume the body - let accum = []; - let accumBytes = 0; - let abort = false; - - return new Body.Promise(function (resolve, reject) { - let resTimeout; - - // allow timeout on slow response body - if (_this4.timeout) { - resTimeout = setTimeout(function () { - abort = true; - reject(new FetchError(`Response timeout while trying to fetch ${_this4.url} (over ${_this4.timeout}ms)`, 'body-timeout')); - }, _this4.timeout); - } - - // handle stream errors - body.on('error', function (err) { - if (err.name === 'AbortError') { - // if the request was aborted, reject with this Error - abort = true; - reject(err); - } else { - // other errors, such as incorrect content-encoding - reject(new FetchError(`Invalid response body while trying to fetch ${_this4.url}: ${err.message}`, 'system', err)); - } - }); - - body.on('data', function (chunk) { - if (abort || chunk === null) { - return; - } - - if (_this4.size && accumBytes + chunk.length > _this4.size) { - abort = true; - reject(new FetchError(`content size at ${_this4.url} over limit: ${_this4.size}`, 'max-size')); - return; - } - - accumBytes += chunk.length; - accum.push(chunk); - }); - - body.on('end', function () { - if (abort) { - return; - } - - clearTimeout(resTimeout); - - try { - resolve(Buffer.concat(accum, accumBytes)); - } catch (err) { - // handle streams that have accumulated too much data (issue #414) - reject(new FetchError(`Could not create Buffer from response body for ${_this4.url}: ${err.message}`, 'system', err)); - } - }); - }); -} - -/** - * Detect buffer encoding and convert to target encoding - * ref: http://www.w3.org/TR/2011/WD-html5-20110113/parsing.html#determining-the-character-encoding - * - * @param Buffer buffer Incoming buffer - * @param String encoding Target encoding - * @return String - */ -function convertBody(buffer, headers) { - if (typeof convert !== 'function') { - throw new Error('The package `encoding` must be installed to use the textConverted() function'); - } - - const ct = headers.get('content-type'); - let charset = 'utf-8'; - let res, str; - - // header - if (ct) { - res = /charset=([^;]*)/i.exec(ct); - } - - // no charset in content type, peek at response body for at most 1024 bytes - str = buffer.slice(0, 1024).toString(); - - // html5 - if (!res && str) { - res = / 0 && arguments[0] !== undefined ? arguments[0] : undefined; - - this[MAP] = Object.create(null); - - if (init instanceof Headers) { - const rawHeaders = init.raw(); - const headerNames = Object.keys(rawHeaders); - - for (const headerName of headerNames) { - for (const value of rawHeaders[headerName]) { - this.append(headerName, value); - } - } - - return; - } - - // We don't worry about converting prop to ByteString here as append() - // will handle it. - if (init == null) ; else if (typeof init === 'object') { - const method = init[Symbol.iterator]; - if (method != null) { - if (typeof method !== 'function') { - throw new TypeError('Header pairs must be iterable'); - } - - // sequence> - // Note: per spec we have to first exhaust the lists then process them - const pairs = []; - for (const pair of init) { - if (typeof pair !== 'object' || typeof pair[Symbol.iterator] !== 'function') { - throw new TypeError('Each header pair must be iterable'); - } - pairs.push(Array.from(pair)); - } - - for (const pair of pairs) { - if (pair.length !== 2) { - throw new TypeError('Each header pair must be a name/value tuple'); - } - this.append(pair[0], pair[1]); - } - } else { - // record - for (const key of Object.keys(init)) { - const value = init[key]; - this.append(key, value); - } - } - } else { - throw new TypeError('Provided initializer must be an object'); - } - } - - /** - * Return combined header value given name - * - * @param String name Header name - * @return Mixed - */ - get(name) { - name = `${name}`; - validateName(name); - const key = find(this[MAP], name); - if (key === undefined) { - return null; - } - - return this[MAP][key].join(', '); - } - - /** - * Iterate over all headers - * - * @param Function callback Executed for each item with parameters (value, name, thisArg) - * @param Boolean thisArg `this` context for callback function - * @return Void - */ - forEach(callback) { - let thisArg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined; - - let pairs = getHeaders(this); - let i = 0; - while (i < pairs.length) { - var _pairs$i = pairs[i]; - const name = _pairs$i[0], - value = _pairs$i[1]; - - callback.call(thisArg, value, name, this); - pairs = getHeaders(this); - i++; - } - } - - /** - * Overwrite header values given name - * - * @param String name Header name - * @param String value Header value - * @return Void - */ - set(name, value) { - name = `${name}`; - value = `${value}`; - validateName(name); - validateValue(value); - const key = find(this[MAP], name); - this[MAP][key !== undefined ? key : name] = [value]; - } - - /** - * Append a value onto existing header - * - * @param String name Header name - * @param String value Header value - * @return Void - */ - append(name, value) { - name = `${name}`; - value = `${value}`; - validateName(name); - validateValue(value); - const key = find(this[MAP], name); - if (key !== undefined) { - this[MAP][key].push(value); - } else { - this[MAP][name] = [value]; - } - } - - /** - * Check for header name existence - * - * @param String name Header name - * @return Boolean - */ - has(name) { - name = `${name}`; - validateName(name); - return find(this[MAP], name) !== undefined; - } - - /** - * Delete all header values given name - * - * @param String name Header name - * @return Void - */ - delete(name) { - name = `${name}`; - validateName(name); - const key = find(this[MAP], name); - if (key !== undefined) { - delete this[MAP][key]; - } - } - - /** - * Return raw headers (non-spec api) - * - * @return Object - */ - raw() { - return this[MAP]; - } - - /** - * Get an iterator on keys. - * - * @return Iterator - */ - keys() { - return createHeadersIterator(this, 'key'); - } - - /** - * Get an iterator on values. - * - * @return Iterator - */ - values() { - return createHeadersIterator(this, 'value'); - } - - /** - * Get an iterator on entries. - * - * This is the default iterator of the Headers object. - * - * @return Iterator - */ - [Symbol.iterator]() { - return createHeadersIterator(this, 'key+value'); - } -} -Headers.prototype.entries = Headers.prototype[Symbol.iterator]; - -Object.defineProperty(Headers.prototype, Symbol.toStringTag, { - value: 'Headers', - writable: false, - enumerable: false, - configurable: true -}); - -Object.defineProperties(Headers.prototype, { - get: { enumerable: true }, - forEach: { enumerable: true }, - set: { enumerable: true }, - append: { enumerable: true }, - has: { enumerable: true }, - delete: { enumerable: true }, - keys: { enumerable: true }, - values: { enumerable: true }, - entries: { enumerable: true } -}); - -function getHeaders(headers) { - let kind = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'key+value'; - - const keys = Object.keys(headers[MAP]).sort(); - return keys.map(kind === 'key' ? function (k) { - return k.toLowerCase(); - } : kind === 'value' ? function (k) { - return headers[MAP][k].join(', '); - } : function (k) { - return [k.toLowerCase(), headers[MAP][k].join(', ')]; - }); -} - -const INTERNAL = Symbol('internal'); - -function createHeadersIterator(target, kind) { - const iterator = Object.create(HeadersIteratorPrototype); - iterator[INTERNAL] = { - target, - kind, - index: 0 - }; - return iterator; -} - -const HeadersIteratorPrototype = Object.setPrototypeOf({ - next() { - // istanbul ignore if - if (!this || Object.getPrototypeOf(this) !== HeadersIteratorPrototype) { - throw new TypeError('Value of `this` is not a HeadersIterator'); - } - - var _INTERNAL = this[INTERNAL]; - const target = _INTERNAL.target, - kind = _INTERNAL.kind, - index = _INTERNAL.index; - - const values = getHeaders(target, kind); - const len = values.length; - if (index >= len) { - return { - value: undefined, - done: true - }; - } - - this[INTERNAL].index = index + 1; - - return { - value: values[index], - done: false - }; - } -}, Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()))); - -Object.defineProperty(HeadersIteratorPrototype, Symbol.toStringTag, { - value: 'HeadersIterator', - writable: false, - enumerable: false, - configurable: true -}); - -/** - * Export the Headers object in a form that Node.js can consume. - * - * @param Headers headers - * @return Object - */ -function exportNodeCompatibleHeaders(headers) { - const obj = Object.assign({ __proto__: null }, headers[MAP]); - - // http.request() only supports string as Host header. This hack makes - // specifying custom Host header possible. - const hostHeaderKey = find(headers[MAP], 'Host'); - if (hostHeaderKey !== undefined) { - obj[hostHeaderKey] = obj[hostHeaderKey][0]; - } - - return obj; -} - -/** - * Create a Headers object from an object of headers, ignoring those that do - * not conform to HTTP grammar productions. - * - * @param Object obj Object of headers - * @return Headers - */ -function createHeadersLenient(obj) { - const headers = new Headers(); - for (const name of Object.keys(obj)) { - if (invalidTokenRegex.test(name)) { - continue; - } - if (Array.isArray(obj[name])) { - for (const val of obj[name]) { - if (invalidHeaderCharRegex.test(val)) { - continue; - } - if (headers[MAP][name] === undefined) { - headers[MAP][name] = [val]; - } else { - headers[MAP][name].push(val); - } - } - } else if (!invalidHeaderCharRegex.test(obj[name])) { - headers[MAP][name] = [obj[name]]; - } - } - return headers; -} - -const INTERNALS$1 = Symbol('Response internals'); - -// fix an issue where "STATUS_CODES" aren't a named export for node <10 -const STATUS_CODES = http.STATUS_CODES; - -/** - * Response class - * - * @param Stream body Readable stream - * @param Object opts Response options - * @return Void - */ -class Response { - constructor() { - let body = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; - let opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - Body.call(this, body, opts); - - const status = opts.status || 200; - const headers = new Headers(opts.headers); - - if (body != null && !headers.has('Content-Type')) { - const contentType = extractContentType(body); - if (contentType) { - headers.append('Content-Type', contentType); - } - } - - this[INTERNALS$1] = { - url: opts.url, - status, - statusText: opts.statusText || STATUS_CODES[status], - headers, - counter: opts.counter - }; - } - - get url() { - return this[INTERNALS$1].url || ''; - } - - get status() { - return this[INTERNALS$1].status; - } - - /** - * Convenience property representing if the request ended normally - */ - get ok() { - return this[INTERNALS$1].status >= 200 && this[INTERNALS$1].status < 300; - } - - get redirected() { - return this[INTERNALS$1].counter > 0; - } - - get statusText() { - return this[INTERNALS$1].statusText; - } - - get headers() { - return this[INTERNALS$1].headers; - } - - /** - * Clone this response - * - * @return Response - */ - clone() { - return new Response(clone(this), { - url: this.url, - status: this.status, - statusText: this.statusText, - headers: this.headers, - ok: this.ok, - redirected: this.redirected - }); - } -} - -Body.mixIn(Response.prototype); - -Object.defineProperties(Response.prototype, { - url: { enumerable: true }, - status: { enumerable: true }, - ok: { enumerable: true }, - redirected: { enumerable: true }, - statusText: { enumerable: true }, - headers: { enumerable: true }, - clone: { enumerable: true } -}); - -Object.defineProperty(Response.prototype, Symbol.toStringTag, { - value: 'Response', - writable: false, - enumerable: false, - configurable: true -}); - -const INTERNALS$2 = Symbol('Request internals'); -const URL = Url.URL || whatwgUrl.URL; - -// fix an issue where "format", "parse" aren't a named export for node <10 -const parse_url = Url.parse; -const format_url = Url.format; - -/** - * Wrapper around `new URL` to handle arbitrary URLs - * - * @param {string} urlStr - * @return {void} - */ -function parseURL(urlStr) { - /* - Check whether the URL is absolute or not - Scheme: https://tools.ietf.org/html/rfc3986#section-3.1 - Absolute URL: https://tools.ietf.org/html/rfc3986#section-4.3 - */ - if (/^[a-zA-Z][a-zA-Z\d+\-.]*:/.exec(urlStr)) { - urlStr = new URL(urlStr).toString(); - } - - // Fallback to old implementation for arbitrary URLs - return parse_url(urlStr); -} - -const streamDestructionSupported = 'destroy' in Stream.Readable.prototype; - -/** - * Check if a value is an instance of Request. - * - * @param Mixed input - * @return Boolean - */ -function isRequest(input) { - return typeof input === 'object' && typeof input[INTERNALS$2] === 'object'; -} - -function isAbortSignal(signal) { - const proto = signal && typeof signal === 'object' && Object.getPrototypeOf(signal); - return !!(proto && proto.constructor.name === 'AbortSignal'); -} - -/** - * Request class - * - * @param Mixed input Url or Request instance - * @param Object init Custom options - * @return Void - */ -class Request { - constructor(input) { - let init = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - let parsedURL; - - // normalize input - if (!isRequest(input)) { - if (input && input.href) { - // in order to support Node.js' Url objects; though WHATWG's URL objects - // will fall into this branch also (since their `toString()` will return - // `href` property anyway) - parsedURL = parseURL(input.href); - } else { - // coerce input to a string before attempting to parse - parsedURL = parseURL(`${input}`); - } - input = {}; - } else { - parsedURL = parseURL(input.url); - } - - let method = init.method || input.method || 'GET'; - method = method.toUpperCase(); - - if ((init.body != null || isRequest(input) && input.body !== null) && (method === 'GET' || method === 'HEAD')) { - throw new TypeError('Request with GET/HEAD method cannot have body'); - } - - let inputBody = init.body != null ? init.body : isRequest(input) && input.body !== null ? clone(input) : null; - - Body.call(this, inputBody, { - timeout: init.timeout || input.timeout || 0, - size: init.size || input.size || 0 - }); - - const headers = new Headers(init.headers || input.headers || {}); - - if (inputBody != null && !headers.has('Content-Type')) { - const contentType = extractContentType(inputBody); - if (contentType) { - headers.append('Content-Type', contentType); - } - } - - let signal = isRequest(input) ? input.signal : null; - if ('signal' in init) signal = init.signal; - - if (signal != null && !isAbortSignal(signal)) { - throw new TypeError('Expected signal to be an instanceof AbortSignal'); - } - - this[INTERNALS$2] = { - method, - redirect: init.redirect || input.redirect || 'follow', - headers, - parsedURL, - signal - }; - - // node-fetch-only options - this.follow = init.follow !== undefined ? init.follow : input.follow !== undefined ? input.follow : 20; - this.compress = init.compress !== undefined ? init.compress : input.compress !== undefined ? input.compress : true; - this.counter = init.counter || input.counter || 0; - this.agent = init.agent || input.agent; - } - - get method() { - return this[INTERNALS$2].method; - } - - get url() { - return format_url(this[INTERNALS$2].parsedURL); - } - - get headers() { - return this[INTERNALS$2].headers; - } - - get redirect() { - return this[INTERNALS$2].redirect; - } - - get signal() { - return this[INTERNALS$2].signal; - } - - /** - * Clone this request - * - * @return Request - */ - clone() { - return new Request(this); - } -} - -Body.mixIn(Request.prototype); - -Object.defineProperty(Request.prototype, Symbol.toStringTag, { - value: 'Request', - writable: false, - enumerable: false, - configurable: true -}); - -Object.defineProperties(Request.prototype, { - method: { enumerable: true }, - url: { enumerable: true }, - headers: { enumerable: true }, - redirect: { enumerable: true }, - clone: { enumerable: true }, - signal: { enumerable: true } -}); - -/** - * Convert a Request to Node.js http request options. - * - * @param Request A Request instance - * @return Object The options object to be passed to http.request - */ -function getNodeRequestOptions(request) { - const parsedURL = request[INTERNALS$2].parsedURL; - const headers = new Headers(request[INTERNALS$2].headers); - - // fetch step 1.3 - if (!headers.has('Accept')) { - headers.set('Accept', '*/*'); - } - - // Basic fetch - if (!parsedURL.protocol || !parsedURL.hostname) { - throw new TypeError('Only absolute URLs are supported'); - } - - if (!/^https?:$/.test(parsedURL.protocol)) { - throw new TypeError('Only HTTP(S) protocols are supported'); - } - - if (request.signal && request.body instanceof Stream.Readable && !streamDestructionSupported) { - throw new Error('Cancellation of streamed requests with AbortSignal is not supported in node < 8'); - } - - // HTTP-network-or-cache fetch steps 2.4-2.7 - let contentLengthValue = null; - if (request.body == null && /^(POST|PUT)$/i.test(request.method)) { - contentLengthValue = '0'; - } - if (request.body != null) { - const totalBytes = getTotalBytes(request); - if (typeof totalBytes === 'number') { - contentLengthValue = String(totalBytes); - } - } - if (contentLengthValue) { - headers.set('Content-Length', contentLengthValue); - } - - // HTTP-network-or-cache fetch step 2.11 - if (!headers.has('User-Agent')) { - headers.set('User-Agent', 'node-fetch/1.0 (+https://github.com/bitinn/node-fetch)'); - } - - // HTTP-network-or-cache fetch step 2.15 - if (request.compress && !headers.has('Accept-Encoding')) { - headers.set('Accept-Encoding', 'gzip,deflate'); - } - - let agent = request.agent; - if (typeof agent === 'function') { - agent = agent(parsedURL); - } - - // HTTP-network fetch step 4.2 - // chunked encoding is handled by Node.js - - return Object.assign({}, parsedURL, { - method: request.method, - headers: exportNodeCompatibleHeaders(headers), - agent - }); -} - -/** - * abort-error.js - * - * AbortError interface for cancelled requests - */ - -/** - * Create AbortError instance - * - * @param String message Error message for human - * @return AbortError - */ -function AbortError(message) { - Error.call(this, message); - - this.type = 'aborted'; - this.message = message; - - // hide custom error implementation details from end-users - Error.captureStackTrace(this, this.constructor); -} - -AbortError.prototype = Object.create(Error.prototype); -AbortError.prototype.constructor = AbortError; -AbortError.prototype.name = 'AbortError'; - -const URL$1 = Url.URL || whatwgUrl.URL; - -// fix an issue where "PassThrough", "resolve" aren't a named export for node <10 -const PassThrough$1 = Stream.PassThrough; - -const isDomainOrSubdomain = function isDomainOrSubdomain(destination, original) { - const orig = new URL$1(original).hostname; - const dest = new URL$1(destination).hostname; - - return orig === dest || orig[orig.length - dest.length - 1] === '.' && orig.endsWith(dest); -}; - -/** - * isSameProtocol reports whether the two provided URLs use the same protocol. - * - * Both domains must already be in canonical form. - * @param {string|URL} original - * @param {string|URL} destination - */ -const isSameProtocol = function isSameProtocol(destination, original) { - const orig = new URL$1(original).protocol; - const dest = new URL$1(destination).protocol; - - return orig === dest; -}; - -/** - * Fetch function - * - * @param Mixed url Absolute url or Request instance - * @param Object opts Fetch options - * @return Promise - */ -function fetch(url, opts) { - - // allow custom promise - if (!fetch.Promise) { - throw new Error('native promise missing, set fetch.Promise to your favorite alternative'); - } - - Body.Promise = fetch.Promise; - - // wrap http.request into fetch - return new fetch.Promise(function (resolve, reject) { - // build request object - const request = new Request(url, opts); - const options = getNodeRequestOptions(request); - - const send = (options.protocol === 'https:' ? https : http).request; - const signal = request.signal; - - let response = null; - - const abort = function abort() { - let error = new AbortError('The user aborted a request.'); - reject(error); - if (request.body && request.body instanceof Stream.Readable) { - destroyStream(request.body, error); - } - if (!response || !response.body) return; - response.body.emit('error', error); - }; - - if (signal && signal.aborted) { - abort(); - return; - } - - const abortAndFinalize = function abortAndFinalize() { - abort(); - finalize(); - }; - - // send request - const req = send(options); - let reqTimeout; - - if (signal) { - signal.addEventListener('abort', abortAndFinalize); - } - - function finalize() { - req.abort(); - if (signal) signal.removeEventListener('abort', abortAndFinalize); - clearTimeout(reqTimeout); - } - - if (request.timeout) { - req.once('socket', function (socket) { - reqTimeout = setTimeout(function () { - reject(new FetchError(`network timeout at: ${request.url}`, 'request-timeout')); - finalize(); - }, request.timeout); - }); - } - - req.on('error', function (err) { - reject(new FetchError(`request to ${request.url} failed, reason: ${err.message}`, 'system', err)); - - if (response && response.body) { - destroyStream(response.body, err); - } - - finalize(); - }); - - fixResponseChunkedTransferBadEnding(req, function (err) { - if (signal && signal.aborted) { - return; - } - - if (response && response.body) { - destroyStream(response.body, err); - } - }); - - /* c8 ignore next 18 */ - if (parseInt(process.version.substring(1)) < 14) { - // Before Node.js 14, pipeline() does not fully support async iterators and does not always - // properly handle when the socket close/end events are out of order. - req.on('socket', function (s) { - s.addListener('close', function (hadError) { - // if a data listener is still present we didn't end cleanly - const hasDataListener = s.listenerCount('data') > 0; - - // if end happened before close but the socket didn't emit an error, do it now - if (response && hasDataListener && !hadError && !(signal && signal.aborted)) { - const err = new Error('Premature close'); - err.code = 'ERR_STREAM_PREMATURE_CLOSE'; - response.body.emit('error', err); - } - }); - }); - } - - req.on('response', function (res) { - clearTimeout(reqTimeout); - - const headers = createHeadersLenient(res.headers); - - // HTTP fetch step 5 - if (fetch.isRedirect(res.statusCode)) { - // HTTP fetch step 5.2 - const location = headers.get('Location'); - - // HTTP fetch step 5.3 - let locationURL = null; - try { - locationURL = location === null ? null : new URL$1(location, request.url).toString(); - } catch (err) { - // error here can only be invalid URL in Location: header - // do not throw when options.redirect == manual - // let the user extract the errorneous redirect URL - if (request.redirect !== 'manual') { - reject(new FetchError(`uri requested responds with an invalid redirect URL: ${location}`, 'invalid-redirect')); - finalize(); - return; - } - } - - // HTTP fetch step 5.5 - switch (request.redirect) { - case 'error': - reject(new FetchError(`uri requested responds with a redirect, redirect mode is set to error: ${request.url}`, 'no-redirect')); - finalize(); - return; - case 'manual': - // node-fetch-specific step: make manual redirect a bit easier to use by setting the Location header value to the resolved URL. - if (locationURL !== null) { - // handle corrupted header - try { - headers.set('Location', locationURL); - } catch (err) { - // istanbul ignore next: nodejs server prevent invalid response headers, we can't test this through normal request - reject(err); - } - } - break; - case 'follow': - // HTTP-redirect fetch step 2 - if (locationURL === null) { - break; - } - - // HTTP-redirect fetch step 5 - if (request.counter >= request.follow) { - reject(new FetchError(`maximum redirect reached at: ${request.url}`, 'max-redirect')); - finalize(); - return; - } - - // HTTP-redirect fetch step 6 (counter increment) - // Create a new Request object. - const requestOpts = { - headers: new Headers(request.headers), - follow: request.follow, - counter: request.counter + 1, - agent: request.agent, - compress: request.compress, - method: request.method, - body: request.body, - signal: request.signal, - timeout: request.timeout, - size: request.size - }; - - if (!isDomainOrSubdomain(request.url, locationURL) || !isSameProtocol(request.url, locationURL)) { - for (const name of ['authorization', 'www-authenticate', 'cookie', 'cookie2']) { - requestOpts.headers.delete(name); - } - } - - // HTTP-redirect fetch step 9 - if (res.statusCode !== 303 && request.body && getTotalBytes(request) === null) { - reject(new FetchError('Cannot follow redirect with body being a readable stream', 'unsupported-redirect')); - finalize(); - return; - } - - // HTTP-redirect fetch step 11 - if (res.statusCode === 303 || (res.statusCode === 301 || res.statusCode === 302) && request.method === 'POST') { - requestOpts.method = 'GET'; - requestOpts.body = undefined; - requestOpts.headers.delete('content-length'); - } - - // HTTP-redirect fetch step 15 - resolve(fetch(new Request(locationURL, requestOpts))); - finalize(); - return; - } - } - - // prepare response - res.once('end', function () { - if (signal) signal.removeEventListener('abort', abortAndFinalize); - }); - let body = res.pipe(new PassThrough$1()); - - const response_options = { - url: request.url, - status: res.statusCode, - statusText: res.statusMessage, - headers: headers, - size: request.size, - timeout: request.timeout, - counter: request.counter - }; - - // HTTP-network fetch step 12.1.1.3 - const codings = headers.get('Content-Encoding'); - - // HTTP-network fetch step 12.1.1.4: handle content codings - - // in following scenarios we ignore compression support - // 1. compression support is disabled - // 2. HEAD request - // 3. no Content-Encoding header - // 4. no content response (204) - // 5. content not modified response (304) - if (!request.compress || request.method === 'HEAD' || codings === null || res.statusCode === 204 || res.statusCode === 304) { - response = new Response(body, response_options); - resolve(response); - return; - } - - // For Node v6+ - // Be less strict when decoding compressed responses, since sometimes - // servers send slightly invalid responses that are still accepted - // by common browsers. - // Always using Z_SYNC_FLUSH is what cURL does. - const zlibOptions = { - flush: zlib.Z_SYNC_FLUSH, - finishFlush: zlib.Z_SYNC_FLUSH - }; - - // for gzip - if (codings == 'gzip' || codings == 'x-gzip') { - body = body.pipe(zlib.createGunzip(zlibOptions)); - response = new Response(body, response_options); - resolve(response); - return; - } - - // for deflate - if (codings == 'deflate' || codings == 'x-deflate') { - // handle the infamous raw deflate response from old servers - // a hack for old IIS and Apache servers - const raw = res.pipe(new PassThrough$1()); - raw.once('data', function (chunk) { - // see http://stackoverflow.com/questions/37519828 - if ((chunk[0] & 0x0F) === 0x08) { - body = body.pipe(zlib.createInflate()); - } else { - body = body.pipe(zlib.createInflateRaw()); - } - response = new Response(body, response_options); - resolve(response); - }); - raw.on('end', function () { - // some old IIS servers return zero-length OK deflate responses, so 'data' is never emitted. - if (!response) { - response = new Response(body, response_options); - resolve(response); - } - }); - return; - } - - // for br - if (codings == 'br' && typeof zlib.createBrotliDecompress === 'function') { - body = body.pipe(zlib.createBrotliDecompress()); - response = new Response(body, response_options); - resolve(response); - return; - } - - // otherwise, use response as-is - response = new Response(body, response_options); - resolve(response); - }); - - writeToStream(req, request); - }); -} -function fixResponseChunkedTransferBadEnding(request, errorCallback) { - let socket; - - request.on('socket', function (s) { - socket = s; - }); - - request.on('response', function (response) { - const headers = response.headers; - - if (headers['transfer-encoding'] === 'chunked' && !headers['content-length']) { - response.once('close', function (hadError) { - // tests for socket presence, as in some situations the - // the 'socket' event is not triggered for the request - // (happens in deno), avoids `TypeError` - // if a data listener is still present we didn't end cleanly - const hasDataListener = socket && socket.listenerCount('data') > 0; - - if (hasDataListener && !hadError) { - const err = new Error('Premature close'); - err.code = 'ERR_STREAM_PREMATURE_CLOSE'; - errorCallback(err); - } - }); - } - }); -} - -function destroyStream(stream, err) { - if (stream.destroy) { - stream.destroy(err); - } else { - // node < 8 - stream.emit('error', err); - stream.end(); - } -} - -/** - * Redirect code matching - * - * @param Number code Status code - * @return Boolean - */ -fetch.isRedirect = function (code) { - return code === 301 || code === 302 || code === 303 || code === 307 || code === 308; -}; - -// expose Promise -fetch.Promise = global.Promise; - -module.exports = exports = fetch; -Object.defineProperty(exports, "__esModule", { value: true }); -exports.default = exports; -exports.Headers = Headers; -exports.Request = Request; -exports.Response = Response; -exports.FetchError = FetchError; -exports.AbortError = AbortError; diff --git a/node_modules/cross-fetch/node_modules/node-fetch/lib/index.mjs b/node_modules/cross-fetch/node_modules/node-fetch/lib/index.mjs deleted file mode 100644 index 2863dd9c..00000000 --- a/node_modules/cross-fetch/node_modules/node-fetch/lib/index.mjs +++ /dev/null @@ -1,1775 +0,0 @@ -import Stream from 'stream'; -import http from 'http'; -import Url from 'url'; -import whatwgUrl from 'whatwg-url'; -import https from 'https'; -import zlib from 'zlib'; - -// Based on https://github.com/tmpvar/jsdom/blob/aa85b2abf07766ff7bf5c1f6daafb3726f2f2db5/lib/jsdom/living/blob.js - -// fix for "Readable" isn't a named export issue -const Readable = Stream.Readable; - -const BUFFER = Symbol('buffer'); -const TYPE = Symbol('type'); - -class Blob { - constructor() { - this[TYPE] = ''; - - const blobParts = arguments[0]; - const options = arguments[1]; - - const buffers = []; - let size = 0; - - if (blobParts) { - const a = blobParts; - const length = Number(a.length); - for (let i = 0; i < length; i++) { - const element = a[i]; - let buffer; - if (element instanceof Buffer) { - buffer = element; - } else if (ArrayBuffer.isView(element)) { - buffer = Buffer.from(element.buffer, element.byteOffset, element.byteLength); - } else if (element instanceof ArrayBuffer) { - buffer = Buffer.from(element); - } else if (element instanceof Blob) { - buffer = element[BUFFER]; - } else { - buffer = Buffer.from(typeof element === 'string' ? element : String(element)); - } - size += buffer.length; - buffers.push(buffer); - } - } - - this[BUFFER] = Buffer.concat(buffers); - - let type = options && options.type !== undefined && String(options.type).toLowerCase(); - if (type && !/[^\u0020-\u007E]/.test(type)) { - this[TYPE] = type; - } - } - get size() { - return this[BUFFER].length; - } - get type() { - return this[TYPE]; - } - text() { - return Promise.resolve(this[BUFFER].toString()); - } - arrayBuffer() { - const buf = this[BUFFER]; - const ab = buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength); - return Promise.resolve(ab); - } - stream() { - const readable = new Readable(); - readable._read = function () {}; - readable.push(this[BUFFER]); - readable.push(null); - return readable; - } - toString() { - return '[object Blob]'; - } - slice() { - const size = this.size; - - const start = arguments[0]; - const end = arguments[1]; - let relativeStart, relativeEnd; - if (start === undefined) { - relativeStart = 0; - } else if (start < 0) { - relativeStart = Math.max(size + start, 0); - } else { - relativeStart = Math.min(start, size); - } - if (end === undefined) { - relativeEnd = size; - } else if (end < 0) { - relativeEnd = Math.max(size + end, 0); - } else { - relativeEnd = Math.min(end, size); - } - const span = Math.max(relativeEnd - relativeStart, 0); - - const buffer = this[BUFFER]; - const slicedBuffer = buffer.slice(relativeStart, relativeStart + span); - const blob = new Blob([], { type: arguments[2] }); - blob[BUFFER] = slicedBuffer; - return blob; - } -} - -Object.defineProperties(Blob.prototype, { - size: { enumerable: true }, - type: { enumerable: true }, - slice: { enumerable: true } -}); - -Object.defineProperty(Blob.prototype, Symbol.toStringTag, { - value: 'Blob', - writable: false, - enumerable: false, - configurable: true -}); - -/** - * fetch-error.js - * - * FetchError interface for operational errors - */ - -/** - * Create FetchError instance - * - * @param String message Error message for human - * @param String type Error type for machine - * @param String systemError For Node.js system error - * @return FetchError - */ -function FetchError(message, type, systemError) { - Error.call(this, message); - - this.message = message; - this.type = type; - - // when err.type is `system`, err.code contains system error code - if (systemError) { - this.code = this.errno = systemError.code; - } - - // hide custom error implementation details from end-users - Error.captureStackTrace(this, this.constructor); -} - -FetchError.prototype = Object.create(Error.prototype); -FetchError.prototype.constructor = FetchError; -FetchError.prototype.name = 'FetchError'; - -let convert; -try { - convert = require('encoding').convert; -} catch (e) {} - -const INTERNALS = Symbol('Body internals'); - -// fix an issue where "PassThrough" isn't a named export for node <10 -const PassThrough = Stream.PassThrough; - -/** - * Body mixin - * - * Ref: https://fetch.spec.whatwg.org/#body - * - * @param Stream body Readable stream - * @param Object opts Response options - * @return Void - */ -function Body(body) { - var _this = this; - - var _ref = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}, - _ref$size = _ref.size; - - let size = _ref$size === undefined ? 0 : _ref$size; - var _ref$timeout = _ref.timeout; - let timeout = _ref$timeout === undefined ? 0 : _ref$timeout; - - if (body == null) { - // body is undefined or null - body = null; - } else if (isURLSearchParams(body)) { - // body is a URLSearchParams - body = Buffer.from(body.toString()); - } else if (isBlob(body)) ; else if (Buffer.isBuffer(body)) ; else if (Object.prototype.toString.call(body) === '[object ArrayBuffer]') { - // body is ArrayBuffer - body = Buffer.from(body); - } else if (ArrayBuffer.isView(body)) { - // body is ArrayBufferView - body = Buffer.from(body.buffer, body.byteOffset, body.byteLength); - } else if (body instanceof Stream) ; else { - // none of the above - // coerce to string then buffer - body = Buffer.from(String(body)); - } - this[INTERNALS] = { - body, - disturbed: false, - error: null - }; - this.size = size; - this.timeout = timeout; - - if (body instanceof Stream) { - body.on('error', function (err) { - const error = err.name === 'AbortError' ? err : new FetchError(`Invalid response body while trying to fetch ${_this.url}: ${err.message}`, 'system', err); - _this[INTERNALS].error = error; - }); - } -} - -Body.prototype = { - get body() { - return this[INTERNALS].body; - }, - - get bodyUsed() { - return this[INTERNALS].disturbed; - }, - - /** - * Decode response as ArrayBuffer - * - * @return Promise - */ - arrayBuffer() { - return consumeBody.call(this).then(function (buf) { - return buf.buffer.slice(buf.byteOffset, buf.byteOffset + buf.byteLength); - }); - }, - - /** - * Return raw response as Blob - * - * @return Promise - */ - blob() { - let ct = this.headers && this.headers.get('content-type') || ''; - return consumeBody.call(this).then(function (buf) { - return Object.assign( - // Prevent copying - new Blob([], { - type: ct.toLowerCase() - }), { - [BUFFER]: buf - }); - }); - }, - - /** - * Decode response as json - * - * @return Promise - */ - json() { - var _this2 = this; - - return consumeBody.call(this).then(function (buffer) { - try { - return JSON.parse(buffer.toString()); - } catch (err) { - return Body.Promise.reject(new FetchError(`invalid json response body at ${_this2.url} reason: ${err.message}`, 'invalid-json')); - } - }); - }, - - /** - * Decode response as text - * - * @return Promise - */ - text() { - return consumeBody.call(this).then(function (buffer) { - return buffer.toString(); - }); - }, - - /** - * Decode response as buffer (non-spec api) - * - * @return Promise - */ - buffer() { - return consumeBody.call(this); - }, - - /** - * Decode response as text, while automatically detecting the encoding and - * trying to decode to UTF-8 (non-spec api) - * - * @return Promise - */ - textConverted() { - var _this3 = this; - - return consumeBody.call(this).then(function (buffer) { - return convertBody(buffer, _this3.headers); - }); - } -}; - -// In browsers, all properties are enumerable. -Object.defineProperties(Body.prototype, { - body: { enumerable: true }, - bodyUsed: { enumerable: true }, - arrayBuffer: { enumerable: true }, - blob: { enumerable: true }, - json: { enumerable: true }, - text: { enumerable: true } -}); - -Body.mixIn = function (proto) { - for (const name of Object.getOwnPropertyNames(Body.prototype)) { - // istanbul ignore else: future proof - if (!(name in proto)) { - const desc = Object.getOwnPropertyDescriptor(Body.prototype, name); - Object.defineProperty(proto, name, desc); - } - } -}; - -/** - * Consume and convert an entire Body to a Buffer. - * - * Ref: https://fetch.spec.whatwg.org/#concept-body-consume-body - * - * @return Promise - */ -function consumeBody() { - var _this4 = this; - - if (this[INTERNALS].disturbed) { - return Body.Promise.reject(new TypeError(`body used already for: ${this.url}`)); - } - - this[INTERNALS].disturbed = true; - - if (this[INTERNALS].error) { - return Body.Promise.reject(this[INTERNALS].error); - } - - let body = this.body; - - // body is null - if (body === null) { - return Body.Promise.resolve(Buffer.alloc(0)); - } - - // body is blob - if (isBlob(body)) { - body = body.stream(); - } - - // body is buffer - if (Buffer.isBuffer(body)) { - return Body.Promise.resolve(body); - } - - // istanbul ignore if: should never happen - if (!(body instanceof Stream)) { - return Body.Promise.resolve(Buffer.alloc(0)); - } - - // body is stream - // get ready to actually consume the body - let accum = []; - let accumBytes = 0; - let abort = false; - - return new Body.Promise(function (resolve, reject) { - let resTimeout; - - // allow timeout on slow response body - if (_this4.timeout) { - resTimeout = setTimeout(function () { - abort = true; - reject(new FetchError(`Response timeout while trying to fetch ${_this4.url} (over ${_this4.timeout}ms)`, 'body-timeout')); - }, _this4.timeout); - } - - // handle stream errors - body.on('error', function (err) { - if (err.name === 'AbortError') { - // if the request was aborted, reject with this Error - abort = true; - reject(err); - } else { - // other errors, such as incorrect content-encoding - reject(new FetchError(`Invalid response body while trying to fetch ${_this4.url}: ${err.message}`, 'system', err)); - } - }); - - body.on('data', function (chunk) { - if (abort || chunk === null) { - return; - } - - if (_this4.size && accumBytes + chunk.length > _this4.size) { - abort = true; - reject(new FetchError(`content size at ${_this4.url} over limit: ${_this4.size}`, 'max-size')); - return; - } - - accumBytes += chunk.length; - accum.push(chunk); - }); - - body.on('end', function () { - if (abort) { - return; - } - - clearTimeout(resTimeout); - - try { - resolve(Buffer.concat(accum, accumBytes)); - } catch (err) { - // handle streams that have accumulated too much data (issue #414) - reject(new FetchError(`Could not create Buffer from response body for ${_this4.url}: ${err.message}`, 'system', err)); - } - }); - }); -} - -/** - * Detect buffer encoding and convert to target encoding - * ref: http://www.w3.org/TR/2011/WD-html5-20110113/parsing.html#determining-the-character-encoding - * - * @param Buffer buffer Incoming buffer - * @param String encoding Target encoding - * @return String - */ -function convertBody(buffer, headers) { - if (typeof convert !== 'function') { - throw new Error('The package `encoding` must be installed to use the textConverted() function'); - } - - const ct = headers.get('content-type'); - let charset = 'utf-8'; - let res, str; - - // header - if (ct) { - res = /charset=([^;]*)/i.exec(ct); - } - - // no charset in content type, peek at response body for at most 1024 bytes - str = buffer.slice(0, 1024).toString(); - - // html5 - if (!res && str) { - res = / 0 && arguments[0] !== undefined ? arguments[0] : undefined; - - this[MAP] = Object.create(null); - - if (init instanceof Headers) { - const rawHeaders = init.raw(); - const headerNames = Object.keys(rawHeaders); - - for (const headerName of headerNames) { - for (const value of rawHeaders[headerName]) { - this.append(headerName, value); - } - } - - return; - } - - // We don't worry about converting prop to ByteString here as append() - // will handle it. - if (init == null) ; else if (typeof init === 'object') { - const method = init[Symbol.iterator]; - if (method != null) { - if (typeof method !== 'function') { - throw new TypeError('Header pairs must be iterable'); - } - - // sequence> - // Note: per spec we have to first exhaust the lists then process them - const pairs = []; - for (const pair of init) { - if (typeof pair !== 'object' || typeof pair[Symbol.iterator] !== 'function') { - throw new TypeError('Each header pair must be iterable'); - } - pairs.push(Array.from(pair)); - } - - for (const pair of pairs) { - if (pair.length !== 2) { - throw new TypeError('Each header pair must be a name/value tuple'); - } - this.append(pair[0], pair[1]); - } - } else { - // record - for (const key of Object.keys(init)) { - const value = init[key]; - this.append(key, value); - } - } - } else { - throw new TypeError('Provided initializer must be an object'); - } - } - - /** - * Return combined header value given name - * - * @param String name Header name - * @return Mixed - */ - get(name) { - name = `${name}`; - validateName(name); - const key = find(this[MAP], name); - if (key === undefined) { - return null; - } - - return this[MAP][key].join(', '); - } - - /** - * Iterate over all headers - * - * @param Function callback Executed for each item with parameters (value, name, thisArg) - * @param Boolean thisArg `this` context for callback function - * @return Void - */ - forEach(callback) { - let thisArg = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : undefined; - - let pairs = getHeaders(this); - let i = 0; - while (i < pairs.length) { - var _pairs$i = pairs[i]; - const name = _pairs$i[0], - value = _pairs$i[1]; - - callback.call(thisArg, value, name, this); - pairs = getHeaders(this); - i++; - } - } - - /** - * Overwrite header values given name - * - * @param String name Header name - * @param String value Header value - * @return Void - */ - set(name, value) { - name = `${name}`; - value = `${value}`; - validateName(name); - validateValue(value); - const key = find(this[MAP], name); - this[MAP][key !== undefined ? key : name] = [value]; - } - - /** - * Append a value onto existing header - * - * @param String name Header name - * @param String value Header value - * @return Void - */ - append(name, value) { - name = `${name}`; - value = `${value}`; - validateName(name); - validateValue(value); - const key = find(this[MAP], name); - if (key !== undefined) { - this[MAP][key].push(value); - } else { - this[MAP][name] = [value]; - } - } - - /** - * Check for header name existence - * - * @param String name Header name - * @return Boolean - */ - has(name) { - name = `${name}`; - validateName(name); - return find(this[MAP], name) !== undefined; - } - - /** - * Delete all header values given name - * - * @param String name Header name - * @return Void - */ - delete(name) { - name = `${name}`; - validateName(name); - const key = find(this[MAP], name); - if (key !== undefined) { - delete this[MAP][key]; - } - } - - /** - * Return raw headers (non-spec api) - * - * @return Object - */ - raw() { - return this[MAP]; - } - - /** - * Get an iterator on keys. - * - * @return Iterator - */ - keys() { - return createHeadersIterator(this, 'key'); - } - - /** - * Get an iterator on values. - * - * @return Iterator - */ - values() { - return createHeadersIterator(this, 'value'); - } - - /** - * Get an iterator on entries. - * - * This is the default iterator of the Headers object. - * - * @return Iterator - */ - [Symbol.iterator]() { - return createHeadersIterator(this, 'key+value'); - } -} -Headers.prototype.entries = Headers.prototype[Symbol.iterator]; - -Object.defineProperty(Headers.prototype, Symbol.toStringTag, { - value: 'Headers', - writable: false, - enumerable: false, - configurable: true -}); - -Object.defineProperties(Headers.prototype, { - get: { enumerable: true }, - forEach: { enumerable: true }, - set: { enumerable: true }, - append: { enumerable: true }, - has: { enumerable: true }, - delete: { enumerable: true }, - keys: { enumerable: true }, - values: { enumerable: true }, - entries: { enumerable: true } -}); - -function getHeaders(headers) { - let kind = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'key+value'; - - const keys = Object.keys(headers[MAP]).sort(); - return keys.map(kind === 'key' ? function (k) { - return k.toLowerCase(); - } : kind === 'value' ? function (k) { - return headers[MAP][k].join(', '); - } : function (k) { - return [k.toLowerCase(), headers[MAP][k].join(', ')]; - }); -} - -const INTERNAL = Symbol('internal'); - -function createHeadersIterator(target, kind) { - const iterator = Object.create(HeadersIteratorPrototype); - iterator[INTERNAL] = { - target, - kind, - index: 0 - }; - return iterator; -} - -const HeadersIteratorPrototype = Object.setPrototypeOf({ - next() { - // istanbul ignore if - if (!this || Object.getPrototypeOf(this) !== HeadersIteratorPrototype) { - throw new TypeError('Value of `this` is not a HeadersIterator'); - } - - var _INTERNAL = this[INTERNAL]; - const target = _INTERNAL.target, - kind = _INTERNAL.kind, - index = _INTERNAL.index; - - const values = getHeaders(target, kind); - const len = values.length; - if (index >= len) { - return { - value: undefined, - done: true - }; - } - - this[INTERNAL].index = index + 1; - - return { - value: values[index], - done: false - }; - } -}, Object.getPrototypeOf(Object.getPrototypeOf([][Symbol.iterator]()))); - -Object.defineProperty(HeadersIteratorPrototype, Symbol.toStringTag, { - value: 'HeadersIterator', - writable: false, - enumerable: false, - configurable: true -}); - -/** - * Export the Headers object in a form that Node.js can consume. - * - * @param Headers headers - * @return Object - */ -function exportNodeCompatibleHeaders(headers) { - const obj = Object.assign({ __proto__: null }, headers[MAP]); - - // http.request() only supports string as Host header. This hack makes - // specifying custom Host header possible. - const hostHeaderKey = find(headers[MAP], 'Host'); - if (hostHeaderKey !== undefined) { - obj[hostHeaderKey] = obj[hostHeaderKey][0]; - } - - return obj; -} - -/** - * Create a Headers object from an object of headers, ignoring those that do - * not conform to HTTP grammar productions. - * - * @param Object obj Object of headers - * @return Headers - */ -function createHeadersLenient(obj) { - const headers = new Headers(); - for (const name of Object.keys(obj)) { - if (invalidTokenRegex.test(name)) { - continue; - } - if (Array.isArray(obj[name])) { - for (const val of obj[name]) { - if (invalidHeaderCharRegex.test(val)) { - continue; - } - if (headers[MAP][name] === undefined) { - headers[MAP][name] = [val]; - } else { - headers[MAP][name].push(val); - } - } - } else if (!invalidHeaderCharRegex.test(obj[name])) { - headers[MAP][name] = [obj[name]]; - } - } - return headers; -} - -const INTERNALS$1 = Symbol('Response internals'); - -// fix an issue where "STATUS_CODES" aren't a named export for node <10 -const STATUS_CODES = http.STATUS_CODES; - -/** - * Response class - * - * @param Stream body Readable stream - * @param Object opts Response options - * @return Void - */ -class Response { - constructor() { - let body = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null; - let opts = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - Body.call(this, body, opts); - - const status = opts.status || 200; - const headers = new Headers(opts.headers); - - if (body != null && !headers.has('Content-Type')) { - const contentType = extractContentType(body); - if (contentType) { - headers.append('Content-Type', contentType); - } - } - - this[INTERNALS$1] = { - url: opts.url, - status, - statusText: opts.statusText || STATUS_CODES[status], - headers, - counter: opts.counter - }; - } - - get url() { - return this[INTERNALS$1].url || ''; - } - - get status() { - return this[INTERNALS$1].status; - } - - /** - * Convenience property representing if the request ended normally - */ - get ok() { - return this[INTERNALS$1].status >= 200 && this[INTERNALS$1].status < 300; - } - - get redirected() { - return this[INTERNALS$1].counter > 0; - } - - get statusText() { - return this[INTERNALS$1].statusText; - } - - get headers() { - return this[INTERNALS$1].headers; - } - - /** - * Clone this response - * - * @return Response - */ - clone() { - return new Response(clone(this), { - url: this.url, - status: this.status, - statusText: this.statusText, - headers: this.headers, - ok: this.ok, - redirected: this.redirected - }); - } -} - -Body.mixIn(Response.prototype); - -Object.defineProperties(Response.prototype, { - url: { enumerable: true }, - status: { enumerable: true }, - ok: { enumerable: true }, - redirected: { enumerable: true }, - statusText: { enumerable: true }, - headers: { enumerable: true }, - clone: { enumerable: true } -}); - -Object.defineProperty(Response.prototype, Symbol.toStringTag, { - value: 'Response', - writable: false, - enumerable: false, - configurable: true -}); - -const INTERNALS$2 = Symbol('Request internals'); -const URL = Url.URL || whatwgUrl.URL; - -// fix an issue where "format", "parse" aren't a named export for node <10 -const parse_url = Url.parse; -const format_url = Url.format; - -/** - * Wrapper around `new URL` to handle arbitrary URLs - * - * @param {string} urlStr - * @return {void} - */ -function parseURL(urlStr) { - /* - Check whether the URL is absolute or not - Scheme: https://tools.ietf.org/html/rfc3986#section-3.1 - Absolute URL: https://tools.ietf.org/html/rfc3986#section-4.3 - */ - if (/^[a-zA-Z][a-zA-Z\d+\-.]*:/.exec(urlStr)) { - urlStr = new URL(urlStr).toString(); - } - - // Fallback to old implementation for arbitrary URLs - return parse_url(urlStr); -} - -const streamDestructionSupported = 'destroy' in Stream.Readable.prototype; - -/** - * Check if a value is an instance of Request. - * - * @param Mixed input - * @return Boolean - */ -function isRequest(input) { - return typeof input === 'object' && typeof input[INTERNALS$2] === 'object'; -} - -function isAbortSignal(signal) { - const proto = signal && typeof signal === 'object' && Object.getPrototypeOf(signal); - return !!(proto && proto.constructor.name === 'AbortSignal'); -} - -/** - * Request class - * - * @param Mixed input Url or Request instance - * @param Object init Custom options - * @return Void - */ -class Request { - constructor(input) { - let init = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {}; - - let parsedURL; - - // normalize input - if (!isRequest(input)) { - if (input && input.href) { - // in order to support Node.js' Url objects; though WHATWG's URL objects - // will fall into this branch also (since their `toString()` will return - // `href` property anyway) - parsedURL = parseURL(input.href); - } else { - // coerce input to a string before attempting to parse - parsedURL = parseURL(`${input}`); - } - input = {}; - } else { - parsedURL = parseURL(input.url); - } - - let method = init.method || input.method || 'GET'; - method = method.toUpperCase(); - - if ((init.body != null || isRequest(input) && input.body !== null) && (method === 'GET' || method === 'HEAD')) { - throw new TypeError('Request with GET/HEAD method cannot have body'); - } - - let inputBody = init.body != null ? init.body : isRequest(input) && input.body !== null ? clone(input) : null; - - Body.call(this, inputBody, { - timeout: init.timeout || input.timeout || 0, - size: init.size || input.size || 0 - }); - - const headers = new Headers(init.headers || input.headers || {}); - - if (inputBody != null && !headers.has('Content-Type')) { - const contentType = extractContentType(inputBody); - if (contentType) { - headers.append('Content-Type', contentType); - } - } - - let signal = isRequest(input) ? input.signal : null; - if ('signal' in init) signal = init.signal; - - if (signal != null && !isAbortSignal(signal)) { - throw new TypeError('Expected signal to be an instanceof AbortSignal'); - } - - this[INTERNALS$2] = { - method, - redirect: init.redirect || input.redirect || 'follow', - headers, - parsedURL, - signal - }; - - // node-fetch-only options - this.follow = init.follow !== undefined ? init.follow : input.follow !== undefined ? input.follow : 20; - this.compress = init.compress !== undefined ? init.compress : input.compress !== undefined ? input.compress : true; - this.counter = init.counter || input.counter || 0; - this.agent = init.agent || input.agent; - } - - get method() { - return this[INTERNALS$2].method; - } - - get url() { - return format_url(this[INTERNALS$2].parsedURL); - } - - get headers() { - return this[INTERNALS$2].headers; - } - - get redirect() { - return this[INTERNALS$2].redirect; - } - - get signal() { - return this[INTERNALS$2].signal; - } - - /** - * Clone this request - * - * @return Request - */ - clone() { - return new Request(this); - } -} - -Body.mixIn(Request.prototype); - -Object.defineProperty(Request.prototype, Symbol.toStringTag, { - value: 'Request', - writable: false, - enumerable: false, - configurable: true -}); - -Object.defineProperties(Request.prototype, { - method: { enumerable: true }, - url: { enumerable: true }, - headers: { enumerable: true }, - redirect: { enumerable: true }, - clone: { enumerable: true }, - signal: { enumerable: true } -}); - -/** - * Convert a Request to Node.js http request options. - * - * @param Request A Request instance - * @return Object The options object to be passed to http.request - */ -function getNodeRequestOptions(request) { - const parsedURL = request[INTERNALS$2].parsedURL; - const headers = new Headers(request[INTERNALS$2].headers); - - // fetch step 1.3 - if (!headers.has('Accept')) { - headers.set('Accept', '*/*'); - } - - // Basic fetch - if (!parsedURL.protocol || !parsedURL.hostname) { - throw new TypeError('Only absolute URLs are supported'); - } - - if (!/^https?:$/.test(parsedURL.protocol)) { - throw new TypeError('Only HTTP(S) protocols are supported'); - } - - if (request.signal && request.body instanceof Stream.Readable && !streamDestructionSupported) { - throw new Error('Cancellation of streamed requests with AbortSignal is not supported in node < 8'); - } - - // HTTP-network-or-cache fetch steps 2.4-2.7 - let contentLengthValue = null; - if (request.body == null && /^(POST|PUT)$/i.test(request.method)) { - contentLengthValue = '0'; - } - if (request.body != null) { - const totalBytes = getTotalBytes(request); - if (typeof totalBytes === 'number') { - contentLengthValue = String(totalBytes); - } - } - if (contentLengthValue) { - headers.set('Content-Length', contentLengthValue); - } - - // HTTP-network-or-cache fetch step 2.11 - if (!headers.has('User-Agent')) { - headers.set('User-Agent', 'node-fetch/1.0 (+https://github.com/bitinn/node-fetch)'); - } - - // HTTP-network-or-cache fetch step 2.15 - if (request.compress && !headers.has('Accept-Encoding')) { - headers.set('Accept-Encoding', 'gzip,deflate'); - } - - let agent = request.agent; - if (typeof agent === 'function') { - agent = agent(parsedURL); - } - - // HTTP-network fetch step 4.2 - // chunked encoding is handled by Node.js - - return Object.assign({}, parsedURL, { - method: request.method, - headers: exportNodeCompatibleHeaders(headers), - agent - }); -} - -/** - * abort-error.js - * - * AbortError interface for cancelled requests - */ - -/** - * Create AbortError instance - * - * @param String message Error message for human - * @return AbortError - */ -function AbortError(message) { - Error.call(this, message); - - this.type = 'aborted'; - this.message = message; - - // hide custom error implementation details from end-users - Error.captureStackTrace(this, this.constructor); -} - -AbortError.prototype = Object.create(Error.prototype); -AbortError.prototype.constructor = AbortError; -AbortError.prototype.name = 'AbortError'; - -const URL$1 = Url.URL || whatwgUrl.URL; - -// fix an issue where "PassThrough", "resolve" aren't a named export for node <10 -const PassThrough$1 = Stream.PassThrough; - -const isDomainOrSubdomain = function isDomainOrSubdomain(destination, original) { - const orig = new URL$1(original).hostname; - const dest = new URL$1(destination).hostname; - - return orig === dest || orig[orig.length - dest.length - 1] === '.' && orig.endsWith(dest); -}; - -/** - * isSameProtocol reports whether the two provided URLs use the same protocol. - * - * Both domains must already be in canonical form. - * @param {string|URL} original - * @param {string|URL} destination - */ -const isSameProtocol = function isSameProtocol(destination, original) { - const orig = new URL$1(original).protocol; - const dest = new URL$1(destination).protocol; - - return orig === dest; -}; - -/** - * Fetch function - * - * @param Mixed url Absolute url or Request instance - * @param Object opts Fetch options - * @return Promise - */ -function fetch(url, opts) { - - // allow custom promise - if (!fetch.Promise) { - throw new Error('native promise missing, set fetch.Promise to your favorite alternative'); - } - - Body.Promise = fetch.Promise; - - // wrap http.request into fetch - return new fetch.Promise(function (resolve, reject) { - // build request object - const request = new Request(url, opts); - const options = getNodeRequestOptions(request); - - const send = (options.protocol === 'https:' ? https : http).request; - const signal = request.signal; - - let response = null; - - const abort = function abort() { - let error = new AbortError('The user aborted a request.'); - reject(error); - if (request.body && request.body instanceof Stream.Readable) { - destroyStream(request.body, error); - } - if (!response || !response.body) return; - response.body.emit('error', error); - }; - - if (signal && signal.aborted) { - abort(); - return; - } - - const abortAndFinalize = function abortAndFinalize() { - abort(); - finalize(); - }; - - // send request - const req = send(options); - let reqTimeout; - - if (signal) { - signal.addEventListener('abort', abortAndFinalize); - } - - function finalize() { - req.abort(); - if (signal) signal.removeEventListener('abort', abortAndFinalize); - clearTimeout(reqTimeout); - } - - if (request.timeout) { - req.once('socket', function (socket) { - reqTimeout = setTimeout(function () { - reject(new FetchError(`network timeout at: ${request.url}`, 'request-timeout')); - finalize(); - }, request.timeout); - }); - } - - req.on('error', function (err) { - reject(new FetchError(`request to ${request.url} failed, reason: ${err.message}`, 'system', err)); - - if (response && response.body) { - destroyStream(response.body, err); - } - - finalize(); - }); - - fixResponseChunkedTransferBadEnding(req, function (err) { - if (signal && signal.aborted) { - return; - } - - if (response && response.body) { - destroyStream(response.body, err); - } - }); - - /* c8 ignore next 18 */ - if (parseInt(process.version.substring(1)) < 14) { - // Before Node.js 14, pipeline() does not fully support async iterators and does not always - // properly handle when the socket close/end events are out of order. - req.on('socket', function (s) { - s.addListener('close', function (hadError) { - // if a data listener is still present we didn't end cleanly - const hasDataListener = s.listenerCount('data') > 0; - - // if end happened before close but the socket didn't emit an error, do it now - if (response && hasDataListener && !hadError && !(signal && signal.aborted)) { - const err = new Error('Premature close'); - err.code = 'ERR_STREAM_PREMATURE_CLOSE'; - response.body.emit('error', err); - } - }); - }); - } - - req.on('response', function (res) { - clearTimeout(reqTimeout); - - const headers = createHeadersLenient(res.headers); - - // HTTP fetch step 5 - if (fetch.isRedirect(res.statusCode)) { - // HTTP fetch step 5.2 - const location = headers.get('Location'); - - // HTTP fetch step 5.3 - let locationURL = null; - try { - locationURL = location === null ? null : new URL$1(location, request.url).toString(); - } catch (err) { - // error here can only be invalid URL in Location: header - // do not throw when options.redirect == manual - // let the user extract the errorneous redirect URL - if (request.redirect !== 'manual') { - reject(new FetchError(`uri requested responds with an invalid redirect URL: ${location}`, 'invalid-redirect')); - finalize(); - return; - } - } - - // HTTP fetch step 5.5 - switch (request.redirect) { - case 'error': - reject(new FetchError(`uri requested responds with a redirect, redirect mode is set to error: ${request.url}`, 'no-redirect')); - finalize(); - return; - case 'manual': - // node-fetch-specific step: make manual redirect a bit easier to use by setting the Location header value to the resolved URL. - if (locationURL !== null) { - // handle corrupted header - try { - headers.set('Location', locationURL); - } catch (err) { - // istanbul ignore next: nodejs server prevent invalid response headers, we can't test this through normal request - reject(err); - } - } - break; - case 'follow': - // HTTP-redirect fetch step 2 - if (locationURL === null) { - break; - } - - // HTTP-redirect fetch step 5 - if (request.counter >= request.follow) { - reject(new FetchError(`maximum redirect reached at: ${request.url}`, 'max-redirect')); - finalize(); - return; - } - - // HTTP-redirect fetch step 6 (counter increment) - // Create a new Request object. - const requestOpts = { - headers: new Headers(request.headers), - follow: request.follow, - counter: request.counter + 1, - agent: request.agent, - compress: request.compress, - method: request.method, - body: request.body, - signal: request.signal, - timeout: request.timeout, - size: request.size - }; - - if (!isDomainOrSubdomain(request.url, locationURL) || !isSameProtocol(request.url, locationURL)) { - for (const name of ['authorization', 'www-authenticate', 'cookie', 'cookie2']) { - requestOpts.headers.delete(name); - } - } - - // HTTP-redirect fetch step 9 - if (res.statusCode !== 303 && request.body && getTotalBytes(request) === null) { - reject(new FetchError('Cannot follow redirect with body being a readable stream', 'unsupported-redirect')); - finalize(); - return; - } - - // HTTP-redirect fetch step 11 - if (res.statusCode === 303 || (res.statusCode === 301 || res.statusCode === 302) && request.method === 'POST') { - requestOpts.method = 'GET'; - requestOpts.body = undefined; - requestOpts.headers.delete('content-length'); - } - - // HTTP-redirect fetch step 15 - resolve(fetch(new Request(locationURL, requestOpts))); - finalize(); - return; - } - } - - // prepare response - res.once('end', function () { - if (signal) signal.removeEventListener('abort', abortAndFinalize); - }); - let body = res.pipe(new PassThrough$1()); - - const response_options = { - url: request.url, - status: res.statusCode, - statusText: res.statusMessage, - headers: headers, - size: request.size, - timeout: request.timeout, - counter: request.counter - }; - - // HTTP-network fetch step 12.1.1.3 - const codings = headers.get('Content-Encoding'); - - // HTTP-network fetch step 12.1.1.4: handle content codings - - // in following scenarios we ignore compression support - // 1. compression support is disabled - // 2. HEAD request - // 3. no Content-Encoding header - // 4. no content response (204) - // 5. content not modified response (304) - if (!request.compress || request.method === 'HEAD' || codings === null || res.statusCode === 204 || res.statusCode === 304) { - response = new Response(body, response_options); - resolve(response); - return; - } - - // For Node v6+ - // Be less strict when decoding compressed responses, since sometimes - // servers send slightly invalid responses that are still accepted - // by common browsers. - // Always using Z_SYNC_FLUSH is what cURL does. - const zlibOptions = { - flush: zlib.Z_SYNC_FLUSH, - finishFlush: zlib.Z_SYNC_FLUSH - }; - - // for gzip - if (codings == 'gzip' || codings == 'x-gzip') { - body = body.pipe(zlib.createGunzip(zlibOptions)); - response = new Response(body, response_options); - resolve(response); - return; - } - - // for deflate - if (codings == 'deflate' || codings == 'x-deflate') { - // handle the infamous raw deflate response from old servers - // a hack for old IIS and Apache servers - const raw = res.pipe(new PassThrough$1()); - raw.once('data', function (chunk) { - // see http://stackoverflow.com/questions/37519828 - if ((chunk[0] & 0x0F) === 0x08) { - body = body.pipe(zlib.createInflate()); - } else { - body = body.pipe(zlib.createInflateRaw()); - } - response = new Response(body, response_options); - resolve(response); - }); - raw.on('end', function () { - // some old IIS servers return zero-length OK deflate responses, so 'data' is never emitted. - if (!response) { - response = new Response(body, response_options); - resolve(response); - } - }); - return; - } - - // for br - if (codings == 'br' && typeof zlib.createBrotliDecompress === 'function') { - body = body.pipe(zlib.createBrotliDecompress()); - response = new Response(body, response_options); - resolve(response); - return; - } - - // otherwise, use response as-is - response = new Response(body, response_options); - resolve(response); - }); - - writeToStream(req, request); - }); -} -function fixResponseChunkedTransferBadEnding(request, errorCallback) { - let socket; - - request.on('socket', function (s) { - socket = s; - }); - - request.on('response', function (response) { - const headers = response.headers; - - if (headers['transfer-encoding'] === 'chunked' && !headers['content-length']) { - response.once('close', function (hadError) { - // tests for socket presence, as in some situations the - // the 'socket' event is not triggered for the request - // (happens in deno), avoids `TypeError` - // if a data listener is still present we didn't end cleanly - const hasDataListener = socket && socket.listenerCount('data') > 0; - - if (hasDataListener && !hadError) { - const err = new Error('Premature close'); - err.code = 'ERR_STREAM_PREMATURE_CLOSE'; - errorCallback(err); - } - }); - } - }); -} - -function destroyStream(stream, err) { - if (stream.destroy) { - stream.destroy(err); - } else { - // node < 8 - stream.emit('error', err); - stream.end(); - } -} - -/** - * Redirect code matching - * - * @param Number code Status code - * @return Boolean - */ -fetch.isRedirect = function (code) { - return code === 301 || code === 302 || code === 303 || code === 307 || code === 308; -}; - -// expose Promise -fetch.Promise = global.Promise; - -export default fetch; -export { Headers, Request, Response, FetchError, AbortError }; diff --git a/node_modules/cross-fetch/node_modules/node-fetch/package.json b/node_modules/cross-fetch/node_modules/node-fetch/package.json deleted file mode 100644 index e0be1768..00000000 --- a/node_modules/cross-fetch/node_modules/node-fetch/package.json +++ /dev/null @@ -1,89 +0,0 @@ -{ - "name": "node-fetch", - "version": "2.7.0", - "description": "A light-weight module that brings window.fetch to node.js", - "main": "lib/index.js", - "browser": "./browser.js", - "module": "lib/index.mjs", - "files": [ - "lib/index.js", - "lib/index.mjs", - "lib/index.es.js", - "browser.js" - ], - "engines": { - "node": "4.x || >=6.0.0" - }, - "scripts": { - "build": "cross-env BABEL_ENV=rollup rollup -c", - "prepare": "npm run build", - "test": "cross-env BABEL_ENV=test mocha --require babel-register --throw-deprecation test/test.js", - "report": "cross-env BABEL_ENV=coverage nyc --reporter lcov --reporter text mocha -R spec test/test.js", - "coverage": "cross-env BABEL_ENV=coverage nyc --reporter json --reporter text mocha -R spec test/test.js && codecov -f coverage/coverage-final.json" - }, - "repository": { - "type": "git", - "url": "https://github.com/bitinn/node-fetch.git" - }, - "keywords": [ - "fetch", - "http", - "promise" - ], - "author": "David Frank", - "license": "MIT", - "bugs": { - "url": "https://github.com/bitinn/node-fetch/issues" - }, - "homepage": "https://github.com/bitinn/node-fetch", - "dependencies": { - "whatwg-url": "^5.0.0" - }, - "peerDependencies": { - "encoding": "^0.1.0" - }, - "peerDependenciesMeta": { - "encoding": { - "optional": true - } - }, - "devDependencies": { - "@ungap/url-search-params": "^0.1.2", - "abort-controller": "^1.1.0", - "abortcontroller-polyfill": "^1.3.0", - "babel-core": "^6.26.3", - "babel-plugin-istanbul": "^4.1.6", - "babel-plugin-transform-async-generator-functions": "^6.24.1", - "babel-polyfill": "^6.26.0", - "babel-preset-env": "1.4.0", - "babel-register": "^6.16.3", - "chai": "^3.5.0", - "chai-as-promised": "^7.1.1", - "chai-iterator": "^1.1.1", - "chai-string": "~1.3.0", - "codecov": "3.3.0", - "cross-env": "^5.2.0", - "form-data": "^2.3.3", - "is-builtin-module": "^1.0.0", - "mocha": "^5.0.0", - "nyc": "11.9.0", - "parted": "^0.1.1", - "promise": "^8.0.3", - "resumer": "0.0.0", - "rollup": "^0.63.4", - "rollup-plugin-babel": "^3.0.7", - "string-to-arraybuffer": "^1.0.2", - "teeny-request": "3.7.0" - }, - "release": { - "branches": [ - "+([0-9]).x", - "main", - "next", - { - "name": "beta", - "prerelease": true - } - ] - } -} diff --git a/node_modules/cross-fetch/package.json b/node_modules/cross-fetch/package.json deleted file mode 100644 index 30f06907..00000000 --- a/node_modules/cross-fetch/package.json +++ /dev/null @@ -1,128 +0,0 @@ -{ - "name": "cross-fetch", - "version": "4.0.0", - "description": "Universal WHATWG Fetch API for Node, Browsers and React Native", - "homepage": "https://github.com/lquixada/cross-fetch", - "main": "dist/node-ponyfill.js", - "browser": "dist/browser-ponyfill.js", - "react-native": "dist/react-native-ponyfill.js", - "types": "index.d.ts", - "scripts": { - "commit": "cz", - "prepare": "husky install", - "prepublishOnly": "rimraf dist && make dist" - }, - "lint-staged": { - "*.js": [ - "standard --fix" - ] - }, - "config": { - "commitizen": { - "path": "cz-conventional-changelog" - } - }, - "standard": { - "env": [ - "browser", - "mocha", - "serviceworker" - ], - "globals": [ - "expect", - "assert", - "chai", - "Mocha" - ], - "ignore": [ - "/dist/", - "api.spec.js", - "bundle.js", - "test.js", - "*.bundle.js", - "*.ts" - ] - }, - "mocha": { - "require": [ - "chai/register-expect.js", - "chai/register-assert.js" - ], - "check-leaks": true - }, - "nyc": { - "temp-dir": ".reports/.coverage" - }, - "commitlint": { - "extends": [ - "@commitlint/config-conventional" - ] - }, - "repository": { - "type": "git", - "url": "https://github.com/lquixada/cross-fetch.git" - }, - "author": "Leonardo Quixada ", - "license": "MIT", - "bugs": { - "url": "https://github.com/lquixada/cross-fetch/issues" - }, - "dependencies": { - "node-fetch": "^2.6.12" - }, - "devDependencies": { - "@commitlint/cli": "17.6.6", - "@commitlint/config-conventional": "17.6.6", - "@rollup/plugin-terser": "0.4.3", - "@types/chai": "4.3.5", - "@types/mocha": "10.0.1", - "@types/node": "18.15.13", - "body-parser": "1.20.2", - "chai": "4.3.7", - "codecov": "3.8.3", - "commitizen": "4.3.0", - "cz-conventional-changelog": "3.3.0", - "express": "4.18.2", - "husky": "8.0.3", - "lint-staged": "13.2.3", - "mocha": "10.2.0", - "mocha-headless-chrome": "4.0.0", - "nock": "13.3.1", - "nyc": "15.1.0", - "rimraf": "5.0.1", - "rollup": "3.26.0", - "rollup-plugin-copy": "3.4.0", - "semver": "7.5.3", - "serve-index": "1.9.1", - "standard": "17.1.0", - "standard-version": "9.5.0", - "typescript": "5.1.6", - "webpack": "5.88.1", - "webpack-cli": "5.1.4", - "whatwg-fetch": "3.6.2", - "yargs": "17.7.2" - }, - "files": [ - "dist", - "polyfill", - "index.d.ts" - ], - "keywords": [ - "fetch", - "http", - "url", - "promise", - "async", - "await", - "isomorphic", - "universal", - "node", - "react", - "native", - "browser", - "ponyfill", - "whatwg", - "xhr", - "ajax" - ] -} diff --git a/node_modules/cross-fetch/polyfill/package.json b/node_modules/cross-fetch/polyfill/package.json deleted file mode 100644 index 72588200..00000000 --- a/node_modules/cross-fetch/polyfill/package.json +++ /dev/null @@ -1,9 +0,0 @@ -{ - "name": "cross-fetch-polyfill", - "version": "0.0.0", - "main": "../dist/node-polyfill.js", - "browser": "../dist/browser-polyfill.js", - "react-native": "../dist/react-native-polyfill.js", - "types": "../index.d.ts", - "license": "MIT" -} diff --git a/node_modules/d/.editorconfig b/node_modules/d/.editorconfig deleted file mode 100755 index cbfa577a..00000000 --- a/node_modules/d/.editorconfig +++ /dev/null @@ -1,15 +0,0 @@ -# EditorConfig is awesome: http://EditorConfig.org - -# top-most EditorConfig file -root = true - -[*] -charset = utf-8 -end_of_line = lf -insert_final_newline = true -indent_style = tab -trim_trailing_whitespace = true - -[{*.md,*.yml}] -indent_size = 2 -indent_style = space diff --git a/node_modules/d/.github/FUNDING.yml b/node_modules/d/.github/FUNDING.yml deleted file mode 100644 index bd80ae65..00000000 --- a/node_modules/d/.github/FUNDING.yml +++ /dev/null @@ -1 +0,0 @@ -tidelift: "npm/d" diff --git a/node_modules/d/CHANGELOG.md b/node_modules/d/CHANGELOG.md deleted file mode 100644 index d30cc82b..00000000 --- a/node_modules/d/CHANGELOG.md +++ /dev/null @@ -1,9 +0,0 @@ -# Changelog - -All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. - -### [1.0.1](https://github.com/medikoo/d/compare/v0.1.1...v1.0.1) (2019-06-14) - -## Changelog for previous versions - -See `CHANGES` file diff --git a/node_modules/d/CHANGES b/node_modules/d/CHANGES deleted file mode 100644 index 73234d5c..00000000 --- a/node_modules/d/CHANGES +++ /dev/null @@ -1,17 +0,0 @@ -For recent changelog see CHANGELOG.md - ------ - -v1.0.0 -- 2015.12.04 -- autoBind changes: - - replace `bindTo` argument with options and `resolveContext` option - - Add support `overwriteDefinition` -- Introduce IE11 bug workaround in `lazy` handler - -v0.1.1 -- 2014.04.24 -- Add `autoBind` and `lazy` utilities -- Allow to pass other options to be merged onto created descriptor. - Useful when used with other custom utilties - -v0.1.0 -- 2013.06.20 -Initial (derived from es5-ext project) diff --git a/node_modules/d/LICENSE b/node_modules/d/LICENSE deleted file mode 100644 index 44745e26..00000000 --- a/node_modules/d/LICENSE +++ /dev/null @@ -1,15 +0,0 @@ -ISC License - -Copyright (c) 2013-2019, Mariusz Nowak, @medikoo, medikoo.com - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE -OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. diff --git a/node_modules/d/README.md b/node_modules/d/README.md deleted file mode 100644 index 95097d4b..00000000 --- a/node_modules/d/README.md +++ /dev/null @@ -1,134 +0,0 @@ -# D - -## Property descriptor factory - -_Originally derived from [es5-ext](https://github.com/medikoo/es5-ext) package._ - -Defining properties with descriptors is very verbose: - -```javascript -var Account = function () {}; -Object.defineProperties(Account.prototype, { - deposit: { - value: function () { - /* ... */ - }, - configurable: true, - enumerable: false, - writable: true - }, - withdraw: { - value: function () { - /* ... */ - }, - configurable: true, - enumerable: false, - writable: true - }, - balance: { - get: function () { - /* ... */ - }, - configurable: true, - enumerable: false - } -}); -``` - -D cuts that to: - -```javascript -var d = require("d"); - -var Account = function () {}; -Object.defineProperties(Account.prototype, { - deposit: d(function () { - /* ... */ - }), - withdraw: d(function () { - /* ... */ - }), - balance: d.gs(function () { - /* ... */ - }) -}); -``` - -By default, created descriptor follow characteristics of native ES5 properties, and defines values as: - -```javascript -{ configurable: true, enumerable: false, writable: true } -``` - -You can overwrite it by preceding _value_ argument with instruction: - -```javascript -d("c", value); // { configurable: true, enumerable: false, writable: false } -d("ce", value); // { configurable: true, enumerable: true, writable: false } -d("e", value); // { configurable: false, enumerable: true, writable: false } - -// Same way for get/set: -d.gs("e", value); // { configurable: false, enumerable: true } -``` - -### Installation - - $ npm install d - -To port it to Browser or any other (non CJS) environment, use your favorite CJS bundler. No favorite yet? Try: [Browserify](http://browserify.org/), [Webmake](https://github.com/medikoo/modules-webmake) or [Webpack](http://webpack.github.io/) - -### Other utilities - -#### autoBind(obj, props) _(d/auto-bind)_ - -Define methods which will be automatically bound to its instances - -```javascript -var d = require('d'); -var autoBind = require('d/auto-bind'); - -var Foo = function () { this._count = 0; }; -Object.defineProperties(Foo.prototype, autoBind({ - increment: d(function () { ++this._count; }); -})); - -var foo = new Foo(); - -// Increment foo counter on each domEl click -domEl.addEventListener('click', foo.increment, false); -``` - -#### lazy(obj, props) _(d/lazy)_ - -Define lazy properties, which will be resolved on first access - -```javascript -var d = require("d"); -var lazy = require("d/lazy"); - -var Foo = function () {}; -Object.defineProperties(Foo.prototype, lazy({ items: d(function () { return []; }) })); - -var foo = new Foo(); -foo.items.push(1, 2); // foo.items array created and defined directly on foo -``` - -## Tests [![Build Status](https://travis-ci.org/medikoo/d.png)](https://travis-ci.org/medikoo/d) - - $ npm test - -## Security contact information - -To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). Tidelift will coordinate the fix and disclosure. - ---- - -
- - Get professional support for d with a Tidelift subscription - -
- - Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies. -
-
diff --git a/node_modules/d/auto-bind.js b/node_modules/d/auto-bind.js deleted file mode 100644 index a0037fa9..00000000 --- a/node_modules/d/auto-bind.js +++ /dev/null @@ -1,33 +0,0 @@ -"use strict"; - -var isValue = require("type/value/is") - , ensureValue = require("type/value/ensure") - , ensurePlainFunction = require("type/plain-function/ensure") - , copy = require("es5-ext/object/copy") - , normalizeOptions = require("es5-ext/object/normalize-options") - , map = require("es5-ext/object/map"); - -var bind = Function.prototype.bind - , defineProperty = Object.defineProperty - , hasOwnProperty = Object.prototype.hasOwnProperty - , define; - -define = function (name, desc, options) { - var value = ensureValue(desc) && ensurePlainFunction(desc.value), dgs; - dgs = copy(desc); - delete dgs.writable; - delete dgs.value; - dgs.get = function () { - if (!options.overwriteDefinition && hasOwnProperty.call(this, name)) return value; - desc.value = bind.call(value, options.resolveContext ? options.resolveContext(this) : this); - defineProperty(this, name, desc); - return this[name]; - }; - return dgs; -}; - -module.exports = function (props/*, options*/) { - var options = normalizeOptions(arguments[1]); - if (isValue(options.resolveContext)) ensurePlainFunction(options.resolveContext); - return map(props, function (desc, name) { return define(name, desc, options); }); -}; diff --git a/node_modules/d/index.js b/node_modules/d/index.js deleted file mode 100644 index b05448b6..00000000 --- a/node_modules/d/index.js +++ /dev/null @@ -1,62 +0,0 @@ -"use strict"; - -var isValue = require("type/value/is") - , isPlainFunction = require("type/plain-function/is") - , assign = require("es5-ext/object/assign") - , normalizeOpts = require("es5-ext/object/normalize-options") - , contains = require("es5-ext/string/#/contains"); - -var d = (module.exports = function (dscr, value/*, options*/) { - var c, e, w, options, desc; - if (arguments.length < 2 || typeof dscr !== "string") { - options = value; - value = dscr; - dscr = null; - } else { - options = arguments[2]; - } - if (isValue(dscr)) { - c = contains.call(dscr, "c"); - e = contains.call(dscr, "e"); - w = contains.call(dscr, "w"); - } else { - c = w = true; - e = false; - } - - desc = { value: value, configurable: c, enumerable: e, writable: w }; - return !options ? desc : assign(normalizeOpts(options), desc); -}); - -d.gs = function (dscr, get, set/*, options*/) { - var c, e, options, desc; - if (typeof dscr !== "string") { - options = set; - set = get; - get = dscr; - dscr = null; - } else { - options = arguments[3]; - } - if (!isValue(get)) { - get = undefined; - } else if (!isPlainFunction(get)) { - options = get; - get = set = undefined; - } else if (!isValue(set)) { - set = undefined; - } else if (!isPlainFunction(set)) { - options = set; - set = undefined; - } - if (isValue(dscr)) { - c = contains.call(dscr, "c"); - e = contains.call(dscr, "e"); - } else { - c = true; - e = false; - } - - desc = { get: get, set: set, configurable: c, enumerable: e }; - return !options ? desc : assign(normalizeOpts(options), desc); -}; diff --git a/node_modules/d/lazy.js b/node_modules/d/lazy.js deleted file mode 100644 index bae0d6af..00000000 --- a/node_modules/d/lazy.js +++ /dev/null @@ -1,115 +0,0 @@ -"use strict"; - -var isPlainFunction = require("type/plain-function/is") - , ensureValue = require("type/value/ensure") - , isValue = require("type/value/is") - , map = require("es5-ext/object/map") - , contains = require("es5-ext/string/#/contains"); - -var call = Function.prototype.call - , defineProperty = Object.defineProperty - , getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor - , getPrototypeOf = Object.getPrototypeOf - , hasOwnProperty = Object.prototype.hasOwnProperty - , cacheDesc = { configurable: false, enumerable: false, writable: false, value: null } - , define; - -define = function (name, options) { - var value, dgs, cacheName, desc, writable = false, resolvable, flat; - options = Object(ensureValue(options)); - cacheName = options.cacheName; - flat = options.flat; - if (!isValue(cacheName)) cacheName = name; - delete options.cacheName; - value = options.value; - resolvable = isPlainFunction(value); - delete options.value; - dgs = { configurable: Boolean(options.configurable), enumerable: Boolean(options.enumerable) }; - if (name !== cacheName) { - dgs.get = function () { - if (hasOwnProperty.call(this, cacheName)) return this[cacheName]; - cacheDesc.value = resolvable ? call.call(value, this, options) : value; - cacheDesc.writable = writable; - defineProperty(this, cacheName, cacheDesc); - cacheDesc.value = null; - if (desc) defineProperty(this, name, desc); - return this[cacheName]; - }; - } else if (!flat) { - dgs.get = function self() { - var ownDesc; - if (hasOwnProperty.call(this, name)) { - ownDesc = getOwnPropertyDescriptor(this, name); - // It happens in Safari, that getter is still called after property - // was defined with a value, following workarounds that - // While in IE11 it may happen that here ownDesc is undefined (go figure) - if (ownDesc) { - if (ownDesc.hasOwnProperty("value")) return ownDesc.value; - if (typeof ownDesc.get === "function" && ownDesc.get !== self) { - return ownDesc.get.call(this); - } - return value; - } - } - desc.value = resolvable ? call.call(value, this, options) : value; - defineProperty(this, name, desc); - desc.value = null; - return this[name]; - }; - } else { - dgs.get = function self() { - var base = this, ownDesc; - if (hasOwnProperty.call(this, name)) { - // It happens in Safari, that getter is still called after property - // was defined with a value, following workarounds that - ownDesc = getOwnPropertyDescriptor(this, name); - if (ownDesc.hasOwnProperty("value")) return ownDesc.value; - if (typeof ownDesc.get === "function" && ownDesc.get !== self) { - return ownDesc.get.call(this); - } - } - while (!hasOwnProperty.call(base, name)) base = getPrototypeOf(base); - desc.value = resolvable ? call.call(value, base, options) : value; - defineProperty(base, name, desc); - desc.value = null; - return base[name]; - }; - } - dgs.set = function (value) { - if (hasOwnProperty.call(this, name)) { - throw new TypeError("Cannot assign to lazy defined '" + name + "' property of " + this); - } - dgs.get.call(this); - this[cacheName] = value; - }; - if (options.desc) { - desc = { - configurable: contains.call(options.desc, "c"), - enumerable: contains.call(options.desc, "e") - }; - if (cacheName === name) { - desc.writable = contains.call(options.desc, "w"); - desc.value = null; - } else { - writable = contains.call(options.desc, "w"); - desc.get = dgs.get; - desc.set = dgs.set; - } - delete options.desc; - } else if (cacheName === name) { - desc = { - configurable: Boolean(options.configurable), - enumerable: Boolean(options.enumerable), - writable: Boolean(options.writable), - value: null - }; - } - delete options.configurable; - delete options.enumerable; - delete options.writable; - return dgs; -}; - -module.exports = function (props) { - return map(props, function (desc, name) { return define(name, desc); }); -}; diff --git a/node_modules/d/package.json b/node_modules/d/package.json deleted file mode 100644 index e0370df2..00000000 --- a/node_modules/d/package.json +++ /dev/null @@ -1,72 +0,0 @@ -{ - "name": "d", - "version": "1.0.1", - "description": "Property descriptor factory", - "author": "Mariusz Nowak (http://www.medikoo.com/)", - "keywords": [ - "descriptor", - "es", - "ecmascript", - "ecma", - "property", - "descriptors", - "meta", - "properties" - ], - "repository": { - "type": "git", - "url": "git://github.com/medikoo/d.git" - }, - "dependencies": { - "es5-ext": "^0.10.50", - "type": "^1.0.1" - }, - "devDependencies": { - "eslint": "^5.16.0", - "eslint-config-medikoo": "^2.3.0", - "git-list-updated": "^1.1.2", - "husky": "^2.4.1", - "lint-staged": "^8.2.1", - "prettier-elastic": "^1.18.2", - "tad": "^2.0.1" - }, - "husky": { - "hooks": { - "pre-commit": "lint-staged" - } - }, - "lint-staged": { - "*.js": [ - "eslint" - ], - "*.{css,html,js,json,md,yaml,yml}": [ - "prettier -c" - ] - }, - "eslintConfig": { - "extends": "medikoo/es5", - "root": true - }, - "prettier": { - "printWidth": 100, - "tabWidth": 4, - "overrides": [ - { - "files": [ - "*.md" - ], - "options": { - "tabWidth": 2 - } - } - ] - }, - "scripts": { - "lint": "eslint --ignore-path=.gitignore .", - "lint-updated": "pipe-git-updated --ext=js -- eslint --ignore-pattern '!*'", - "prettier-check-updated": "pipe-git-updated --ext=css --ext=html --ext=js --ext=json --ext=md --ext=yaml --ext=yml -- prettier -c", - "prettify": "prettier --write --ignore-path .gitignore '**/*.{css,html,js,json,md,yaml,yml}'", - "test": "node node_modules/tad/bin/tad" - }, - "license": "ISC" -} diff --git a/node_modules/d/test/auto-bind.js b/node_modules/d/test/auto-bind.js deleted file mode 100644 index 993308e1..00000000 --- a/node_modules/d/test/auto-bind.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; - -var d = require("../"); - -module.exports = function (t, a) { - var o = Object.defineProperties( - {}, t({ bar: d(function () { return this === o; }), bar2: d(function () { return this; }) }) - ); - - a.deep([o.bar(), o.bar2()], [true, o]); -}; diff --git a/node_modules/d/test/index.js b/node_modules/d/test/index.js deleted file mode 100644 index 43e61a34..00000000 --- a/node_modules/d/test/index.js +++ /dev/null @@ -1,209 +0,0 @@ -"use strict"; - -var getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; - -module.exports = function (t, a) { - var o, c, cg, cs, ce, ceg, ces, cew, cw, e, eg, es, ew, v, vg, vs, w, df, dfg, dfs; - - o = Object.create(Object.prototype, { - c: t("c", (c = {})), - cgs: t.gs("c", (cg = function () {}), (cs = function () {})), - ce: t("ce", (ce = {})), - cegs: t.gs("ce", (ceg = function () {}), (ces = function () {})), - cew: t("cew", (cew = {})), - cw: t("cw", (cw = {})), - e: t("e", (e = {})), - egs: t.gs("e", (eg = function () {}), (es = function () {})), - ew: t("ew", (ew = {})), - v: t("", (v = {})), - vgs: t.gs("", (vg = function () {}), (vs = function () {})), - w: t("w", (w = {})), - - df: t((df = {})), - dfgs: t.gs((dfg = function () {}), (dfs = function () {})) - }); - - return { - c: function (a) { - var d = getOwnPropertyDescriptor(o, "c"); - a(d.value, c, "Value"); - a(d.get, undefined, "Get"); - a(d.set, undefined, "Set"); - a(d.configurable, true, "Configurable"); - a(d.enumerable, false, "Enumerable"); - a(d.writable, false, "Writable"); - - d = getOwnPropertyDescriptor(o, "cgs"); - a(d.value, undefined, "GS Value"); - a(d.get, cg, "GS Get"); - a(d.set, cs, "GS Set"); - a(d.configurable, true, "GS Configurable"); - a(d.enumerable, false, "GS Enumerable"); - a(d.writable, undefined, "GS Writable"); - }, - ce: function (a) { - var d = getOwnPropertyDescriptor(o, "ce"); - a(d.value, ce, "Value"); - a(d.get, undefined, "Get"); - a(d.set, undefined, "Set"); - a(d.configurable, true, "Configurable"); - a(d.enumerable, true, "Enumerable"); - a(d.writable, false, "Writable"); - - d = getOwnPropertyDescriptor(o, "cegs"); - a(d.value, undefined, "GS Value"); - a(d.get, ceg, "GS Get"); - a(d.set, ces, "GS Set"); - a(d.configurable, true, "GS Configurable"); - a(d.enumerable, true, "GS Enumerable"); - a(d.writable, undefined, "GS Writable"); - }, - cew: function (a) { - var d = getOwnPropertyDescriptor(o, "cew"); - a(d.value, cew, "Value"); - a(d.get, undefined, "Get"); - a(d.set, undefined, "Set"); - a(d.configurable, true, "Configurable"); - a(d.enumerable, true, "Enumerable"); - a(d.writable, true, "Writable"); - }, - cw: function (a) { - var d = getOwnPropertyDescriptor(o, "cw"); - a(d.value, cw, "Value"); - a(d.get, undefined, "Get"); - a(d.set, undefined, "Set"); - a(d.configurable, true, "Configurable"); - a(d.enumerable, false, "Enumerable"); - a(d.writable, true, "Writable"); - }, - e: function (a) { - var d = getOwnPropertyDescriptor(o, "e"); - a(d.value, e, "Value"); - a(d.get, undefined, "Get"); - a(d.set, undefined, "Set"); - a(d.configurable, false, "Configurable"); - a(d.enumerable, true, "Enumerable"); - a(d.writable, false, "Writable"); - - d = getOwnPropertyDescriptor(o, "egs"); - a(d.value, undefined, "GS Value"); - a(d.get, eg, "GS Get"); - a(d.set, es, "GS Set"); - a(d.configurable, false, "GS Configurable"); - a(d.enumerable, true, "GS Enumerable"); - a(d.writable, undefined, "GS Writable"); - }, - ew: function (a) { - var d = getOwnPropertyDescriptor(o, "ew"); - a(d.value, ew, "Value"); - a(d.get, undefined, "Get"); - a(d.set, undefined, "Set"); - a(d.configurable, false, "Configurable"); - a(d.enumerable, true, "Enumerable"); - a(d.writable, true, "Writable"); - }, - v: function (a) { - var d = getOwnPropertyDescriptor(o, "v"); - a(d.value, v, "Value"); - a(d.get, undefined, "Get"); - a(d.set, undefined, "Set"); - a(d.configurable, false, "Configurable"); - a(d.enumerable, false, "Enumerable"); - a(d.writable, false, "Writable"); - - d = getOwnPropertyDescriptor(o, "vgs"); - a(d.value, undefined, "GS Value"); - a(d.get, vg, "GS Get"); - a(d.set, vs, "GS Set"); - a(d.configurable, false, "GS Configurable"); - a(d.enumerable, false, "GS Enumerable"); - a(d.writable, undefined, "GS Writable"); - }, - w: function (a) { - var d = getOwnPropertyDescriptor(o, "w"); - a(d.value, w, "Value"); - a(d.get, undefined, "Get"); - a(d.set, undefined, "Set"); - a(d.configurable, false, "Configurable"); - a(d.enumerable, false, "Enumerable"); - a(d.writable, true, "Writable"); - }, - d: function (a) { - var d = getOwnPropertyDescriptor(o, "df"); - a(d.value, df, "Value"); - a(d.get, undefined, "Get"); - a(d.set, undefined, "Set"); - a(d.configurable, true, "Configurable"); - a(d.enumerable, false, "Enumerable"); - a(d.writable, true, "Writable"); - - d = getOwnPropertyDescriptor(o, "dfgs"); - a(d.value, undefined, "GS Value"); - a(d.get, dfg, "GS Get"); - a(d.set, dfs, "GS Set"); - a(d.configurable, true, "GS Configurable"); - a(d.enumerable, false, "GS Enumerable"); - a(d.writable, undefined, "GS Writable"); - }, - Options: { - v: function (a) { - var x = {}, d = t(x, { foo: true }); - a.deep( - d, - { configurable: true, enumerable: false, writable: true, value: x, foo: true }, - "No descriptor" - ); - d = t("c", "foo", { marko: "elo" }); - a.deep( - d, - { - configurable: true, - enumerable: false, - writable: false, - value: "foo", - marko: "elo" - }, - "Descriptor" - ); - }, - gs: function (a) { - var gFn = function () {}, sFn = function () {}, d; - d = t.gs(gFn, sFn, { foo: true }); - a.deep( - d, { configurable: true, enumerable: false, get: gFn, set: sFn, foo: true }, - "No descriptor" - ); - d = t.gs(null, sFn, { foo: true }); - a.deep( - d, - { configurable: true, enumerable: false, get: undefined, set: sFn, foo: true }, - "No descriptor: Just set" - ); - d = t.gs(gFn, { foo: true }); - a.deep( - d, - { configurable: true, enumerable: false, get: gFn, set: undefined, foo: true }, - "No descriptor: Just get" - ); - - d = t.gs("e", gFn, sFn, { bar: true }); - a.deep( - d, { configurable: false, enumerable: true, get: gFn, set: sFn, bar: true }, - "Descriptor" - ); - d = t.gs("e", null, sFn, { bar: true }); - a.deep( - d, - { configurable: false, enumerable: true, get: undefined, set: sFn, bar: true }, - "Descriptor: Just set" - ); - d = t.gs("e", gFn, { bar: true }); - a.deep( - d, - { configurable: false, enumerable: true, get: gFn, set: undefined, bar: true }, - "Descriptor: Just get" - ); - } - } - }; -}; diff --git a/node_modules/d/test/lazy.js b/node_modules/d/test/lazy.js deleted file mode 100644 index e446dd50..00000000 --- a/node_modules/d/test/lazy.js +++ /dev/null @@ -1,97 +0,0 @@ -"use strict"; - -var d = require("../") - , getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor; - -module.exports = function (t, a) { - var Foo = function () {}, i = 1, o, o2, desc; - Object.defineProperties( - Foo.prototype, - t({ - bar: d(function () { return ++i; }), - bar2: d(function () { return this.bar + 23; }), - bar3: d(function () { return this.bar2 + 34; }, { desc: "ew" }), - bar4: d(function () { return this.bar3 + 12; }, { cacheName: "_bar4_" }), - bar5: d(function () { return this.bar4 + 3; }, { cacheName: "_bar5_", desc: "e" }) - }) - ); - - desc = getOwnPropertyDescriptor(Foo.prototype, "bar"); - a(desc.configurable, true, "Configurable: default"); - a(desc.enumerable, false, "Enumerable: default"); - - o = new Foo(); - a.deep([o.bar, o.bar2, o.bar3, o.bar4, o.bar5], [2, 25, 59, 71, 74], "Values"); - - a.deep( - getOwnPropertyDescriptor(o, "bar3"), - { configurable: false, enumerable: true, writable: true, value: 59 }, "Desc" - ); - a(o.hasOwnProperty("bar4"), false, "Cache not exposed"); - desc = getOwnPropertyDescriptor(o, "bar5"); - a.deep( - desc, { configurable: false, enumerable: true, get: desc.get, set: desc.set }, - "Cache & Desc: desc" - ); - - o2 = Object.create(o); - o2.bar = 30; - o2.bar3 = 100; - - a.deep( - [o2.bar, o2.bar2, o2.bar3, o2.bar4, o2.bar5], [30, 25, 100, 112, 115], "Extension Values" - ); - - Foo = function () {}; - Object.defineProperties( - Foo.prototype, - t({ - test: d("w", function () { return "raz"; }), - test2: d("", function () { return "raz"; }, { desc: "w" }), - test3: d("", function () { return "raz"; }, { cacheName: "__test3__", desc: "w" }), - test4: d("w", "bar") - }) - ); - - o = new Foo(); - o.test = "marko"; - a.deep( - getOwnPropertyDescriptor(o, "test"), - { configurable: false, enumerable: false, writable: true, value: "marko" }, "Set before get" - ); - o.test2 = "marko2"; - a.deep( - getOwnPropertyDescriptor(o, "test2"), - { configurable: false, enumerable: false, writable: true, value: "marko2" }, - "Set before get: Custom desc" - ); - o.test3 = "marko3"; - a.deep( - getOwnPropertyDescriptor(o, "__test3__"), - { configurable: false, enumerable: false, writable: true, value: "marko3" }, - "Set before get: Custom cache name" - ); - a(o.test4, "bar", "Resolve by value"); - - a.h1("Flat"); - Object.defineProperties( - Foo.prototype, - t({ - flat: d(function () { return "foo"; }, { flat: true }), - flat2: d(function () { return "bar"; }, { flat: true }) - }) - ); - - a.h2("Instance"); - a(o.flat, "foo", "Value"); - a(o.hasOwnProperty("flat"), false, "Instance"); - a(Foo.prototype.flat, "foo", "Prototype"); - - a.h2("Direct"); - a(Foo.prototype.flat2, "bar"); - - a.h2("Reset direct"); - Object.defineProperties(Foo.prototype, t({ testResetDirect: d(false) })); - - a.throws(function () { Foo.prototype.testResetDirect = false; }, TypeError); -}; diff --git a/node_modules/data-uri-to-buffer/README.md b/node_modules/data-uri-to-buffer/README.md deleted file mode 100644 index d0f2e059..00000000 --- a/node_modules/data-uri-to-buffer/README.md +++ /dev/null @@ -1,88 +0,0 @@ -data-uri-to-buffer -================== -### Generate a Buffer instance from a [Data URI][rfc] string -[![Build Status](https://travis-ci.org/TooTallNate/node-data-uri-to-buffer.svg?branch=master)](https://travis-ci.org/TooTallNate/node-data-uri-to-buffer) - -This module accepts a ["data" URI][rfc] String of data, and returns a -node.js `Buffer` instance with the decoded data. - - -Installation ------------- - -Install with `npm`: - -``` bash -$ npm install data-uri-to-buffer -``` - - -Example -------- - -``` js -import dataUriToBuffer from 'data-uri-to-buffer'; - -// plain-text data is supported -let uri = 'data:,Hello%2C%20World!'; -let decoded = dataUriToBuffer(uri); -console.log(decoded.toString()); -// 'Hello, World!' - -// base64-encoded data is supported -uri = 'data:text/plain;base64,SGVsbG8sIFdvcmxkIQ%3D%3D'; -decoded = dataUriToBuffer(uri); -console.log(decoded.toString()); -// 'Hello, World!' -``` - - -API ---- - -### dataUriToBuffer(String uri) → Buffer - -The `type` property on the Buffer instance gets set to the main type portion of -the "mediatype" portion of the "data" URI, or defaults to `"text/plain"` if not -specified. - -The `typeFull` property on the Buffer instance gets set to the entire -"mediatype" portion of the "data" URI (including all parameters), or defaults -to `"text/plain;charset=US-ASCII"` if not specified. - -The `charset` property on the Buffer instance gets set to the Charset portion of -the "mediatype" portion of the "data" URI, or defaults to `"US-ASCII"` if the -entire type is not specified, or defaults to `""` otherwise. - -*Note*: If the only the main type is specified but not the charset, e.g. -`"data:text/plain,abc"`, the charset is set to the empty string. The spec only -defaults to US-ASCII as charset if the entire type is not specified. - - -License -------- - -(The MIT License) - -Copyright (c) 2014 Nathan Rajlich <nathan@tootallnate.net> - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - -[rfc]: http://tools.ietf.org/html/rfc2397 diff --git a/node_modules/data-uri-to-buffer/dist/index.d.ts b/node_modules/data-uri-to-buffer/dist/index.d.ts deleted file mode 100644 index 2a3d91ef..00000000 --- a/node_modules/data-uri-to-buffer/dist/index.d.ts +++ /dev/null @@ -1,15 +0,0 @@ -/// -export interface MimeBuffer extends Buffer { - type: string; - typeFull: string; - charset: string; -} -/** - * Returns a `Buffer` instance from the given data URI `uri`. - * - * @param {String} uri Data URI to turn into a Buffer instance - * @returns {Buffer} Buffer instance from Data URI - * @api public - */ -export declare function dataUriToBuffer(uri: string): MimeBuffer; -export default dataUriToBuffer; diff --git a/node_modules/data-uri-to-buffer/dist/index.js b/node_modules/data-uri-to-buffer/dist/index.js deleted file mode 100644 index 4ddd0799..00000000 --- a/node_modules/data-uri-to-buffer/dist/index.js +++ /dev/null @@ -1,53 +0,0 @@ -/** - * Returns a `Buffer` instance from the given data URI `uri`. - * - * @param {String} uri Data URI to turn into a Buffer instance - * @returns {Buffer} Buffer instance from Data URI - * @api public - */ -export function dataUriToBuffer(uri) { - if (!/^data:/i.test(uri)) { - throw new TypeError('`uri` does not appear to be a Data URI (must begin with "data:")'); - } - // strip newlines - uri = uri.replace(/\r?\n/g, ''); - // split the URI up into the "metadata" and the "data" portions - const firstComma = uri.indexOf(','); - if (firstComma === -1 || firstComma <= 4) { - throw new TypeError('malformed data: URI'); - } - // remove the "data:" scheme and parse the metadata - const meta = uri.substring(5, firstComma).split(';'); - let charset = ''; - let base64 = false; - const type = meta[0] || 'text/plain'; - let typeFull = type; - for (let i = 1; i < meta.length; i++) { - if (meta[i] === 'base64') { - base64 = true; - } - else if (meta[i]) { - typeFull += `;${meta[i]}`; - if (meta[i].indexOf('charset=') === 0) { - charset = meta[i].substring(8); - } - } - } - // defaults to US-ASCII only if type is not provided - if (!meta[0] && !charset.length) { - typeFull += ';charset=US-ASCII'; - charset = 'US-ASCII'; - } - // get the encoded data portion and decode URI-encoded chars - const encoding = base64 ? 'base64' : 'ascii'; - const data = unescape(uri.substring(firstComma + 1)); - const buffer = Buffer.from(data, encoding); - // set `.type` and `.typeFull` properties to MIME type - buffer.type = type; - buffer.typeFull = typeFull; - // set the `.charset` property - buffer.charset = charset; - return buffer; -} -export default dataUriToBuffer; -//# sourceMappingURL=index.js.map \ No newline at end of file diff --git a/node_modules/data-uri-to-buffer/dist/index.js.map b/node_modules/data-uri-to-buffer/dist/index.js.map deleted file mode 100644 index 696504a3..00000000 --- a/node_modules/data-uri-to-buffer/dist/index.js.map +++ /dev/null @@ -1 +0,0 @@ -{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAMA;;;;;;GAMG;AACH,MAAM,UAAU,eAAe,CAAC,GAAW;IAC1C,IAAI,CAAC,SAAS,CAAC,IAAI,CAAC,GAAG,CAAC,EAAE;QACzB,MAAM,IAAI,SAAS,CAClB,kEAAkE,CAClE,CAAC;KACF;IAED,iBAAiB;IACjB,GAAG,GAAG,GAAG,CAAC,OAAO,CAAC,QAAQ,EAAE,EAAE,CAAC,CAAC;IAEhC,+DAA+D;IAC/D,MAAM,UAAU,GAAG,GAAG,CAAC,OAAO,CAAC,GAAG,CAAC,CAAC;IACpC,IAAI,UAAU,KAAK,CAAC,CAAC,IAAI,UAAU,IAAI,CAAC,EAAE;QACzC,MAAM,IAAI,SAAS,CAAC,qBAAqB,CAAC,CAAC;KAC3C;IAED,mDAAmD;IACnD,MAAM,IAAI,GAAG,GAAG,CAAC,SAAS,CAAC,CAAC,EAAE,UAAU,CAAC,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC;IAErD,IAAI,OAAO,GA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zB,OAAO,MAAM,CAAC;AACf,CAAC;AAED,eAAe,eAAe,CAAC"} \ No newline at end of file diff --git a/node_modules/data-uri-to-buffer/package.json b/node_modules/data-uri-to-buffer/package.json deleted file mode 100644 index 9e427132..00000000 --- a/node_modules/data-uri-to-buffer/package.json +++ /dev/null @@ -1,62 +0,0 @@ -{ - "name": "data-uri-to-buffer", - "version": "4.0.1", - "description": "Generate a Buffer instance from a Data URI string", - "type": "module", - "exports": "./dist/index.js", - "main": "./dist/index.js", - "types": "./dist/index.d.ts", - "files": [ - "dist", - "src" - ], - "scripts": { - "build": "tsc", - "test": "jest", - "prepublishOnly": "npm run build" - }, - "repository": { - "type": "git", - "url": "git://github.com/TooTallNate/node-data-uri-to-buffer.git" - }, - "engines": { - "node": ">= 12" - }, - "keywords": [ - "data", - "uri", - "datauri", - "data-uri", - "buffer", - "convert", - "rfc2397", - "2397" - ], - "author": "Nathan Rajlich (http://n8.io/)", - "license": "MIT", - "bugs": { - "url": "https://github.com/TooTallNate/node-data-uri-to-buffer/issues" - }, - "homepage": "https://github.com/TooTallNate/node-data-uri-to-buffer", - "devDependencies": { - "@types/jest": "^27.0.2", - "@types/node": "^12.20.36", - "jest": "^27.3.1", - "ts-jest": "^27.0.7", - "typescript": "^4.4.4" - }, - "jest": { - "preset": "ts-jest", - "globals": { - "ts-jest": { - "diagnostics": false, - "isolatedModules": true - } - }, - "verbose": false, - "testEnvironment": "node", - "testMatch": [ - "/test/**/*.test.ts" - ] - } -} diff --git a/node_modules/data-uri-to-buffer/src/index.ts b/node_modules/data-uri-to-buffer/src/index.ts deleted file mode 100644 index 9e5749f8..00000000 --- a/node_modules/data-uri-to-buffer/src/index.ts +++ /dev/null @@ -1,68 +0,0 @@ -export interface MimeBuffer extends Buffer { - type: string; - typeFull: string; - charset: string; -} - -/** - * Returns a `Buffer` instance from the given data URI `uri`. - * - * @param {String} uri Data URI to turn into a Buffer instance - * @returns {Buffer} Buffer instance from Data URI - * @api public - */ -export function dataUriToBuffer(uri: string): MimeBuffer { - if (!/^data:/i.test(uri)) { - throw new TypeError( - '`uri` does not appear to be a Data URI (must begin with "data:")' - ); - } - - // strip newlines - uri = uri.replace(/\r?\n/g, ''); - - // split the URI up into the "metadata" and the "data" portions - const firstComma = uri.indexOf(','); - if (firstComma === -1 || firstComma <= 4) { - throw new TypeError('malformed data: URI'); - } - - // remove the "data:" scheme and parse the metadata - const meta = uri.substring(5, firstComma).split(';'); - - let charset = ''; - let base64 = false; - const type = meta[0] || 'text/plain'; - let typeFull = type; - for (let i = 1; i < meta.length; i++) { - if (meta[i] === 'base64') { - base64 = true; - } else if(meta[i]) { - typeFull += `;${ meta[i]}`; - if (meta[i].indexOf('charset=') === 0) { - charset = meta[i].substring(8); - } - } - } - // defaults to US-ASCII only if type is not provided - if (!meta[0] && !charset.length) { - typeFull += ';charset=US-ASCII'; - charset = 'US-ASCII'; - } - - // get the encoded data portion and decode URI-encoded chars - const encoding = base64 ? 'base64' : 'ascii'; - const data = unescape(uri.substring(firstComma + 1)); - const buffer = Buffer.from(data, encoding) as MimeBuffer; - - // set `.type` and `.typeFull` properties to MIME type - buffer.type = type; - buffer.typeFull = typeFull; - - // set the `.charset` property - buffer.charset = charset; - - return buffer; -} - -export default dataUriToBuffer; diff --git a/node_modules/debug/LICENSE b/node_modules/debug/LICENSE deleted file mode 100644 index 1a9820e2..00000000 --- a/node_modules/debug/LICENSE +++ /dev/null @@ -1,20 +0,0 @@ -(The MIT License) - -Copyright (c) 2014-2017 TJ Holowaychuk -Copyright (c) 2018-2021 Josh Junon - -Permission is hereby granted, free of charge, to any person obtaining a copy of this software -and associated documentation files (the 'Software'), to deal in the Software without restriction, -including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, -and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all copies or substantial -portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT -LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, -WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. - diff --git a/node_modules/debug/README.md b/node_modules/debug/README.md deleted file mode 100644 index e9c3e047..00000000 --- a/node_modules/debug/README.md +++ /dev/null @@ -1,481 +0,0 @@ -# debug -[![Build Status](https://travis-ci.org/debug-js/debug.svg?branch=master)](https://travis-ci.org/debug-js/debug) [![Coverage Status](https://coveralls.io/repos/github/debug-js/debug/badge.svg?branch=master)](https://coveralls.io/github/debug-js/debug?branch=master) [![Slack](https://visionmedia-community-slackin.now.sh/badge.svg)](https://visionmedia-community-slackin.now.sh/) [![OpenCollective](https://opencollective.com/debug/backers/badge.svg)](#backers) -[![OpenCollective](https://opencollective.com/debug/sponsors/badge.svg)](#sponsors) - - - -A tiny JavaScript debugging utility modelled after Node.js core's debugging -technique. Works in Node.js and web browsers. - -## Installation - -```bash -$ npm install debug -``` - -## Usage - -`debug` exposes a function; simply pass this function the name of your module, and it will return a decorated version of `console.error` for you to pass debug statements to. This will allow you to toggle the debug output for different parts of your module as well as the module as a whole. - -Example [_app.js_](./examples/node/app.js): - -```js -var debug = require('debug')('http') - , http = require('http') - , name = 'My App'; - -// fake app - -debug('booting %o', name); - -http.createServer(function(req, res){ - debug(req.method + ' ' + req.url); - res.end('hello\n'); -}).listen(3000, function(){ - debug('listening'); -}); - -// fake worker of some kind - -require('./worker'); -``` - -Example [_worker.js_](./examples/node/worker.js): - -```js -var a = require('debug')('worker:a') - , b = require('debug')('worker:b'); - -function work() { - a('doing lots of uninteresting work'); - setTimeout(work, Math.random() * 1000); -} - -work(); - -function workb() { - b('doing some work'); - setTimeout(workb, Math.random() * 2000); -} - -workb(); -``` - -The `DEBUG` environment variable is then used to enable these based on space or -comma-delimited names. - -Here are some examples: - -screen shot 2017-08-08 at 12 53 04 pm -screen shot 2017-08-08 at 12 53 38 pm -screen shot 2017-08-08 at 12 53 25 pm - -#### Windows command prompt notes - -##### CMD - -On Windows the environment variable is set using the `set` command. - -```cmd -set DEBUG=*,-not_this -``` - -Example: - -```cmd -set DEBUG=* & node app.js -``` - -##### PowerShell (VS Code default) - -PowerShell uses different syntax to set environment variables. - -```cmd -$env:DEBUG = "*,-not_this" -``` - -Example: - -```cmd -$env:DEBUG='app';node app.js -``` - -Then, run the program to be debugged as usual. - -npm script example: -```js - "windowsDebug": "@powershell -Command $env:DEBUG='*';node app.js", -``` - -## Namespace Colors - -Every debug instance has a color generated for it based on its namespace name. -This helps when visually parsing the debug output to identify which debug instance -a debug line belongs to. - -#### Node.js - -In Node.js, colors are enabled when stderr is a TTY. You also _should_ install -the [`supports-color`](https://npmjs.org/supports-color) module alongside debug, -otherwise debug will only use a small handful of basic colors. - - - -#### Web Browser - -Colors are also enabled on "Web Inspectors" that understand the `%c` formatting -option. These are WebKit web inspectors, Firefox ([since version -31](https://hacks.mozilla.org/2014/05/editable-box-model-multiple-selection-sublime-text-keys-much-more-firefox-developer-tools-episode-31/)) -and the Firebug plugin for Firefox (any version). - - - - -## Millisecond diff - -When actively developing an application it can be useful to see when the time spent between one `debug()` call and the next. Suppose for example you invoke `debug()` before requesting a resource, and after as well, the "+NNNms" will show you how much time was spent between calls. - - - -When stdout is not a TTY, `Date#toISOString()` is used, making it more useful for logging the debug information as shown below: - - - - -## Conventions - -If you're using this in one or more of your libraries, you _should_ use the name of your library so that developers may toggle debugging as desired without guessing names. If you have more than one debuggers you _should_ prefix them with your library name and use ":" to separate features. For example "bodyParser" from Connect would then be "connect:bodyParser". If you append a "*" to the end of your name, it will always be enabled regardless of the setting of the DEBUG environment variable. You can then use it for normal output as well as debug output. - -## Wildcards - -The `*` character may be used as a wildcard. Suppose for example your library has -debuggers named "connect:bodyParser", "connect:compress", "connect:session", -instead of listing all three with -`DEBUG=connect:bodyParser,connect:compress,connect:session`, you may simply do -`DEBUG=connect:*`, or to run everything using this module simply use `DEBUG=*`. - -You can also exclude specific debuggers by prefixing them with a "-" character. -For example, `DEBUG=*,-connect:*` would include all debuggers except those -starting with "connect:". - -## Environment Variables - -When running through Node.js, you can set a few environment variables that will -change the behavior of the debug logging: - -| Name | Purpose | -|-----------|-------------------------------------------------| -| `DEBUG` | Enables/disables specific debugging namespaces. | -| `DEBUG_HIDE_DATE` | Hide date from debug output (non-TTY). | -| `DEBUG_COLORS`| Whether or not to use colors in the debug output. | -| `DEBUG_DEPTH` | Object inspection depth. | -| `DEBUG_SHOW_HIDDEN` | Shows hidden properties on inspected objects. | - - -__Note:__ The environment variables beginning with `DEBUG_` end up being -converted into an Options object that gets used with `%o`/`%O` formatters. -See the Node.js documentation for -[`util.inspect()`](https://nodejs.org/api/util.html#util_util_inspect_object_options) -for the complete list. - -## Formatters - -Debug uses [printf-style](https://wikipedia.org/wiki/Printf_format_string) formatting. -Below are the officially supported formatters: - -| Formatter | Representation | -|-----------|----------------| -| `%O` | Pretty-print an Object on multiple lines. | -| `%o` | Pretty-print an Object all on a single line. | -| `%s` | String. | -| `%d` | Number (both integer and float). | -| `%j` | JSON. Replaced with the string '[Circular]' if the argument contains circular references. | -| `%%` | Single percent sign ('%'). This does not consume an argument. | - - -### Custom formatters - -You can add custom formatters by extending the `debug.formatters` object. -For example, if you wanted to add support for rendering a Buffer as hex with -`%h`, you could do something like: - -```js -const createDebug = require('debug') -createDebug.formatters.h = (v) => { - return v.toString('hex') -} - -// …elsewhere -const debug = createDebug('foo') -debug('this is hex: %h', new Buffer('hello world')) -// foo this is hex: 68656c6c6f20776f726c6421 +0ms -``` - - -## Browser Support - -You can build a browser-ready script using [browserify](https://github.com/substack/node-browserify), -or just use the [browserify-as-a-service](https://wzrd.in/) [build](https://wzrd.in/standalone/debug@latest), -if you don't want to build it yourself. - -Debug's enable state is currently persisted by `localStorage`. -Consider the situation shown below where you have `worker:a` and `worker:b`, -and wish to debug both. You can enable this using `localStorage.debug`: - -```js -localStorage.debug = 'worker:*' -``` - -And then refresh the page. - -```js -a = debug('worker:a'); -b = debug('worker:b'); - -setInterval(function(){ - a('doing some work'); -}, 1000); - -setInterval(function(){ - b('doing some work'); -}, 1200); -``` - -In Chromium-based web browsers (e.g. Brave, Chrome, and Electron), the JavaScript console will—by default—only show messages logged by `debug` if the "Verbose" log level is _enabled_. - - - -## Output streams - - By default `debug` will log to stderr, however this can be configured per-namespace by overriding the `log` method: - -Example [_stdout.js_](./examples/node/stdout.js): - -```js -var debug = require('debug'); -var error = debug('app:error'); - -// by default stderr is used -error('goes to stderr!'); - -var log = debug('app:log'); -// set this namespace to log via console.log -log.log = console.log.bind(console); // don't forget to bind to console! -log('goes to stdout'); -error('still goes to stderr!'); - -// set all output to go via console.info -// overrides all per-namespace log settings -debug.log = console.info.bind(console); -error('now goes to stdout via console.info'); -log('still goes to stdout, but via console.info now'); -``` - -## Extend -You can simply extend debugger -```js -const log = require('debug')('auth'); - -//creates new debug instance with extended namespace -const logSign = log.extend('sign'); -const logLogin = log.extend('login'); - -log('hello'); // auth hello -logSign('hello'); //auth:sign hello -logLogin('hello'); //auth:login hello -``` - -## Set dynamically - -You can also enable debug dynamically by calling the `enable()` method : - -```js -let debug = require('debug'); - -console.log(1, debug.enabled('test')); - -debug.enable('test'); -console.log(2, debug.enabled('test')); - -debug.disable(); -console.log(3, debug.enabled('test')); - -``` - -print : -``` -1 false -2 true -3 false -``` - -Usage : -`enable(namespaces)` -`namespaces` can include modes separated by a colon and wildcards. - -Note that calling `enable()` completely overrides previously set DEBUG variable : - -``` -$ DEBUG=foo node -e 'var dbg = require("debug"); dbg.enable("bar"); console.log(dbg.enabled("foo"))' -=> false -``` - -`disable()` - -Will disable all namespaces. The functions returns the namespaces currently -enabled (and skipped). This can be useful if you want to disable debugging -temporarily without knowing what was enabled to begin with. - -For example: - -```js -let debug = require('debug'); -debug.enable('foo:*,-foo:bar'); -let namespaces = debug.disable(); -debug.enable(namespaces); -``` - -Note: There is no guarantee that the string will be identical to the initial -enable string, but semantically they will be identical. - -## Checking whether a debug target is enabled - -After you've created a debug instance, you can determine whether or not it is -enabled by checking the `enabled` property: - -```javascript -const debug = require('debug')('http'); - -if (debug.enabled) { - // do stuff... -} -``` - -You can also manually toggle this property to force the debug instance to be -enabled or disabled. - -## Usage in child processes - -Due to the way `debug` detects if the output is a TTY or not, colors are not shown in child processes when `stderr` is piped. A solution is to pass the `DEBUG_COLORS=1` environment variable to the child process. -For example: - -```javascript -worker = fork(WORKER_WRAP_PATH, [workerPath], { - stdio: [ - /* stdin: */ 0, - /* stdout: */ 'pipe', - /* stderr: */ 'pipe', - 'ipc', - ], - env: Object.assign({}, process.env, { - DEBUG_COLORS: 1 // without this settings, colors won't be shown - }), -}); - -worker.stderr.pipe(process.stderr, { end: false }); -``` - - -## Authors - - - TJ Holowaychuk - - Nathan Rajlich - - Andrew Rhyne - - Josh Junon - -## Backers - -Support us with a monthly donation and help us continue our activities. [[Become a backer](https://opencollective.com/debug#backer)] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -## Sponsors - -Become a sponsor and get your logo on our README on Github with a link to your site. [[Become a sponsor](https://opencollective.com/debug#sponsor)] - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -## License - -(The MIT License) - -Copyright (c) 2014-2017 TJ Holowaychuk <tj@vision-media.ca> -Copyright (c) 2018-2021 Josh Junon - -Permission is hereby granted, free of charge, to any person obtaining -a copy of this software and associated documentation files (the -'Software'), to deal in the Software without restriction, including -without limitation the rights to use, copy, modify, merge, publish, -distribute, sublicense, and/or sell copies of the Software, and to -permit persons to whom the Software is furnished to do so, subject to -the following conditions: - -The above copyright notice and this permission notice shall be -included in all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, -EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF -MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. -IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY -CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, -TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE -SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/debug/package.json b/node_modules/debug/package.json deleted file mode 100644 index 3bcdc242..00000000 --- a/node_modules/debug/package.json +++ /dev/null @@ -1,59 +0,0 @@ -{ - "name": "debug", - "version": "4.3.4", - "repository": { - "type": "git", - "url": "git://github.com/debug-js/debug.git" - }, - "description": "Lightweight debugging utility for Node.js and the browser", - "keywords": [ - "debug", - "log", - "debugger" - ], - "files": [ - "src", - "LICENSE", - "README.md" - ], - "author": "Josh Junon ", - "contributors": [ - "TJ Holowaychuk ", - "Nathan Rajlich (http://n8.io)", - "Andrew Rhyne " - ], - "license": "MIT", - "scripts": { - "lint": "xo", - "test": "npm run test:node && npm run test:browser && npm run lint", - "test:node": "istanbul cover _mocha -- test.js", - "test:browser": "karma start --single-run", - "test:coverage": "cat ./coverage/lcov.info | coveralls" - }, - "dependencies": { - "ms": "2.1.2" - }, - "devDependencies": { - "brfs": "^2.0.1", - "browserify": "^16.2.3", - "coveralls": "^3.0.2", - "istanbul": "^0.4.5", - "karma": "^3.1.4", - "karma-browserify": "^6.0.0", - "karma-chrome-launcher": "^2.2.0", - "karma-mocha": "^1.3.0", - "mocha": "^5.2.0", - "mocha-lcov-reporter": "^1.2.0", - "xo": "^0.23.0" - }, - "peerDependenciesMeta": { - "supports-color": { - "optional": true - } - }, - "main": "./src/index.js", - "browser": "./src/browser.js", - "engines": { - "node": ">=6.0" - } -} diff --git a/node_modules/debug/src/browser.js b/node_modules/debug/src/browser.js deleted file mode 100644 index cd0fc35d..00000000 --- a/node_modules/debug/src/browser.js +++ /dev/null @@ -1,269 +0,0 @@ -/* eslint-env browser */ - -/** - * This is the web browser implementation of `debug()`. - */ - -exports.formatArgs = formatArgs; -exports.save = save; -exports.load = load; -exports.useColors = useColors; -exports.storage = localstorage(); -exports.destroy = (() => { - let warned = false; - - return () => { - if (!warned) { - warned = true; - console.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.'); - } - }; -})(); - -/** - * Colors. - */ - -exports.colors = [ - '#0000CC', - '#0000FF', - '#0033CC', - '#0033FF', - '#0066CC', - '#0066FF', - '#0099CC', - '#0099FF', - '#00CC00', - '#00CC33', - '#00CC66', - '#00CC99', - '#00CCCC', - '#00CCFF', - '#3300CC', - '#3300FF', - '#3333CC', - '#3333FF', - '#3366CC', - '#3366FF', - '#3399CC', - '#3399FF', - '#33CC00', - '#33CC33', - '#33CC66', - '#33CC99', - '#33CCCC', - '#33CCFF', - '#6600CC', - '#6600FF', - '#6633CC', - '#6633FF', - '#66CC00', - '#66CC33', - '#9900CC', - '#9900FF', - '#9933CC', - '#9933FF', - '#99CC00', - '#99CC33', - '#CC0000', - '#CC0033', - '#CC0066', - '#CC0099', - '#CC00CC', - '#CC00FF', - '#CC3300', - '#CC3333', - '#CC3366', - '#CC3399', - '#CC33CC', - '#CC33FF', - '#CC6600', - '#CC6633', - '#CC9900', - '#CC9933', - '#CCCC00', - '#CCCC33', - '#FF0000', - '#FF0033', - '#FF0066', - '#FF0099', - '#FF00CC', - '#FF00FF', - '#FF3300', - '#FF3333', - '#FF3366', - '#FF3399', - '#FF33CC', - '#FF33FF', - '#FF6600', - '#FF6633', - '#FF9900', - '#FF9933', - '#FFCC00', - '#FFCC33' -]; - -/** - * Currently only WebKit-based Web Inspectors, Firefox >= v31, - * and the Firebug extension (any Firefox version) are known - * to support "%c" CSS customizations. - * - * TODO: add a `localStorage` variable to explicitly enable/disable colors - */ - -// eslint-disable-next-line complexity -function useColors() { - // NB: In an Electron preload script, document will be defined but not fully - // initialized. Since we know we're in Chrome, we'll just detect this case - // explicitly - if (typeof window !== 'undefined' && window.process && (window.process.type === 'renderer' || window.process.__nwjs)) { - return true; - } - - // Internet Explorer and Edge do not support colors. - if (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/)) { - return false; - } - - // Is webkit? http://stackoverflow.com/a/16459606/376773 - // document is undefined in react-native: https://github.com/facebook/react-native/pull/1632 - return (typeof document !== 'undefined' && document.documentElement && document.documentElement.style && document.documentElement.style.WebkitAppearance) || - // Is firebug? http://stackoverflow.com/a/398120/376773 - (typeof window !== 'undefined' && window.console && (window.console.firebug || (window.console.exception && window.console.table))) || - // Is firefox >= v31? - // https://developer.mozilla.org/en-US/docs/Tools/Web_Console#Styling_messages - (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/) && parseInt(RegExp.$1, 10) >= 31) || - // Double check webkit in userAgent just in case we are in a worker - (typeof navigator !== 'undefined' && navigator.userAgent && navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)); -} - -/** - * Colorize log arguments if enabled. - * - * @api public - */ - -function formatArgs(args) { - args[0] = (this.useColors ? '%c' : '') + - this.namespace + - (this.useColors ? ' %c' : ' ') + - args[0] + - (this.useColors ? '%c ' : ' ') + - '+' + module.exports.humanize(this.diff); - - if (!this.useColors) { - return; - } - - const c = 'color: ' + this.color; - args.splice(1, 0, c, 'color: inherit'); - - // The final "%c" is somewhat tricky, because there could be other - // arguments passed either before or after the %c, so we need to - // figure out the correct index to insert the CSS into - let index = 0; - let lastC = 0; - args[0].replace(/%[a-zA-Z%]/g, match => { - if (match === '%%') { - return; - } - index++; - if (match === '%c') { - // We only are interested in the *last* %c - // (the user may have provided their own) - lastC = index; - } - }); - - args.splice(lastC, 0, c); -} - -/** - * Invokes `console.debug()` when available. - * No-op when `console.debug` is not a "function". - * If `console.debug` is not available, falls back - * to `console.log`. - * - * @api public - */ -exports.log = console.debug || console.log || (() => {}); - -/** - * Save `namespaces`. - * - * @param {String} namespaces - * @api private - */ -function save(namespaces) { - try { - if (namespaces) { - exports.storage.setItem('debug', namespaces); - } else { - exports.storage.removeItem('debug'); - } - } catch (error) { - // Swallow - // XXX (@Qix-) should we be logging these? - } -} - -/** - * Load `namespaces`. - * - * @return {String} returns the previously persisted debug modes - * @api private - */ -function load() { - let r; - try { - r = exports.storage.getItem('debug'); - } catch (error) { - // Swallow - // XXX (@Qix-) should we be logging these? - } - - // If debug isn't set in LS, and we're in Electron, try to load $DEBUG - if (!r && typeof process !== 'undefined' && 'env' in process) { - r = process.env.DEBUG; - } - - return r; -} - -/** - * Localstorage attempts to return the localstorage. - * - * This is necessary because safari throws - * when a user disables cookies/localstorage - * and you attempt to access it. - * - * @return {LocalStorage} - * @api private - */ - -function localstorage() { - try { - // TVMLKit (Apple TV JS Runtime) does not have a window object, just localStorage in the global context - // The Browser also has localStorage in the global context. - return localStorage; - } catch (error) { - // Swallow - // XXX (@Qix-) should we be logging these? - } -} - -module.exports = require('./common')(exports); - -const {formatters} = module.exports; - -/** - * Map %j to `JSON.stringify()`, since no Web Inspectors do that by default. - */ - -formatters.j = function (v) { - try { - return JSON.stringify(v); - } catch (error) { - return '[UnexpectedJSONParseError]: ' + error.message; - } -}; diff --git a/node_modules/debug/src/common.js b/node_modules/debug/src/common.js deleted file mode 100644 index e3291b20..00000000 --- a/node_modules/debug/src/common.js +++ /dev/null @@ -1,274 +0,0 @@ - -/** - * This is the common logic for both the Node.js and web browser - * implementations of `debug()`. - */ - -function setup(env) { - createDebug.debug = createDebug; - createDebug.default = createDebug; - createDebug.coerce = coerce; - createDebug.disable = disable; - createDebug.enable = enable; - createDebug.enabled = enabled; - createDebug.humanize = require('ms'); - createDebug.destroy = destroy; - - Object.keys(env).forEach(key => { - createDebug[key] = env[key]; - }); - - /** - * The currently active debug mode names, and names to skip. - */ - - createDebug.names = []; - createDebug.skips = []; - - /** - * Map of special "%n" handling functions, for the debug "format" argument. - * - * Valid key names are a single, lower or upper-case letter, i.e. "n" and "N". - */ - createDebug.formatters = {}; - - /** - * Selects a color for a debug namespace - * @param {String} namespace The namespace string for the debug instance to be colored - * @return {Number|String} An ANSI color code for the given namespace - * @api private - */ - function selectColor(namespace) { - let hash = 0; - - for (let i = 0; i < namespace.length; i++) { - hash = ((hash << 5) - hash) + namespace.charCodeAt(i); - hash |= 0; // Convert to 32bit integer - } - - return createDebug.colors[Math.abs(hash) % createDebug.colors.length]; - } - createDebug.selectColor = selectColor; - - /** - * Create a debugger with the given `namespace`. - * - * @param {String} namespace - * @return {Function} - * @api public - */ - function createDebug(namespace) { - let prevTime; - let enableOverride = null; - let namespacesCache; - let enabledCache; - - function debug(...args) { - // Disabled? - if (!debug.enabled) { - return; - } - - const self = debug; - - // Set `diff` timestamp - const curr = Number(new Date()); - const ms = curr - (prevTime || curr); - self.diff = ms; - self.prev = prevTime; - self.curr = curr; - prevTime = curr; - - args[0] = createDebug.coerce(args[0]); - - if (typeof args[0] !== 'string') { - // Anything else let's inspect with %O - args.unshift('%O'); - } - - // Apply any `formatters` transformations - let index = 0; - args[0] = args[0].replace(/%([a-zA-Z%])/g, (match, format) => { - // If we encounter an escaped % then don't increase the array index - if (match === '%%') { - return '%'; - } - index++; - const formatter = createDebug.formatters[format]; - if (typeof formatter === 'function') { - const val = args[index]; - match = formatter.call(self, val); - - // Now we need to remove `args[index]` since it's inlined in the `format` - args.splice(index, 1); - index--; - } - return match; - }); - - // Apply env-specific formatting (colors, etc.) - createDebug.formatArgs.call(self, args); - - const logFn = self.log || createDebug.log; - logFn.apply(self, args); - } - - debug.namespace = namespace; - debug.useColors = createDebug.useColors(); - debug.color = createDebug.selectColor(namespace); - debug.extend = extend; - debug.destroy = createDebug.destroy; // XXX Temporary. Will be removed in the next major release. - - Object.defineProperty(debug, 'enabled', { - enumerable: true, - configurable: false, - get: () => { - if (enableOverride !== null) { - return enableOverride; - } - if (namespacesCache !== createDebug.namespaces) { - namespacesCache = createDebug.namespaces; - enabledCache = createDebug.enabled(namespace); - } - - return enabledCache; - }, - set: v => { - enableOverride = v; - } - }); - - // Env-specific initialization logic for debug instances - if (typeof createDebug.init === 'function') { - createDebug.init(debug); - } - - return debug; - } - - function extend(namespace, delimiter) { - const newDebug = createDebug(this.namespace + (typeof delimiter === 'undefined' ? ':' : delimiter) + namespace); - newDebug.log = this.log; - return newDebug; - } - - /** - * Enables a debug mode by namespaces. This can include modes - * separated by a colon and wildcards. - * - * @param {String} namespaces - * @api public - */ - function enable(namespaces) { - createDebug.save(namespaces); - createDebug.namespaces = namespaces; - - createDebug.names = []; - createDebug.skips = []; - - let i; - const split = (typeof namespaces === 'string' ? namespaces : '').split(/[\s,]+/); - const len = split.length; - - for (i = 0; i < len; i++) { - if (!split[i]) { - // ignore empty strings - continue; - } - - namespaces = split[i].replace(/\*/g, '.*?'); - - if (namespaces[0] === '-') { - createDebug.skips.push(new RegExp('^' + namespaces.slice(1) + '$')); - } else { - createDebug.names.push(new RegExp('^' + namespaces + '$')); - } - } - } - - /** - * Disable debug output. - * - * @return {String} namespaces - * @api public - */ - function disable() { - const namespaces = [ - ...createDebug.names.map(toNamespace), - ...createDebug.skips.map(toNamespace).map(namespace => '-' + namespace) - ].join(','); - createDebug.enable(''); - return namespaces; - } - - /** - * Returns true if the given mode name is enabled, false otherwise. - * - * @param {String} name - * @return {Boolean} - * @api public - */ - function enabled(name) { - if (name[name.length - 1] === '*') { - return true; - } - - let i; - let len; - - for (i = 0, len = createDebug.skips.length; i < len; i++) { - if (createDebug.skips[i].test(name)) { - return false; - } - } - - for (i = 0, len = createDebug.names.length; i < len; i++) { - if (createDebug.names[i].test(name)) { - return true; - } - } - - return false; - } - - /** - * Convert regexp to namespace - * - * @param {RegExp} regxep - * @return {String} namespace - * @api private - */ - function toNamespace(regexp) { - return regexp.toString() - .substring(2, regexp.toString().length - 2) - .replace(/\.\*\?$/, '*'); - } - - /** - * Coerce `val`. - * - * @param {Mixed} val - * @return {Mixed} - * @api private - */ - function coerce(val) { - if (val instanceof Error) { - return val.stack || val.message; - } - return val; - } - - /** - * XXX DO NOT USE. This is a temporary stub function. - * XXX It WILL be removed in the next major release. - */ - function destroy() { - console.warn('Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.'); - } - - createDebug.enable(createDebug.load()); - - return createDebug; -} - -module.exports = setup; diff --git a/node_modules/debug/src/index.js b/node_modules/debug/src/index.js deleted file mode 100644 index bf4c57f2..00000000 --- a/node_modules/debug/src/index.js +++ /dev/null @@ -1,10 +0,0 @@ -/** - * Detect Electron renderer / nwjs process, which is node, but we should - * treat as a browser. - */ - -if (typeof process === 'undefined' || process.type === 'renderer' || process.browser === true || process.__nwjs) { - module.exports = require('./browser.js'); -} else { - module.exports = require('./node.js'); -} diff --git a/node_modules/debug/src/node.js b/node_modules/debug/src/node.js deleted file mode 100644 index 79bc085c..00000000 --- a/node_modules/debug/src/node.js +++ /dev/null @@ -1,263 +0,0 @@ -/** - * Module dependencies. - */ - -const tty = require('tty'); -const util = require('util'); - -/** - * This is the Node.js implementation of `debug()`. - */ - -exports.init = init; -exports.log = log; -exports.formatArgs = formatArgs; -exports.save = save; -exports.load = load; -exports.useColors = useColors; -exports.destroy = util.deprecate( - () => {}, - 'Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.' -); - -/** - * Colors. - */ - -exports.colors = [6, 2, 3, 4, 5, 1]; - -try { - // Optional dependency (as in, doesn't need to be installed, NOT like optionalDependencies in package.json) - // eslint-disable-next-line import/no-extraneous-dependencies - const supportsColor = require('supports-color'); - - if (supportsColor && (supportsColor.stderr || supportsColor).level >= 2) { - exports.colors = [ - 20, - 21, - 26, - 27, - 32, - 33, - 38, - 39, - 40, - 41, - 42, - 43, - 44, - 45, - 56, - 57, - 62, - 63, - 68, - 69, - 74, - 75, - 76, - 77, - 78, - 79, - 80, - 81, - 92, - 93, - 98, - 99, - 112, - 113, - 128, - 129, - 134, - 135, - 148, - 149, - 160, - 161, - 162, - 163, - 164, - 165, - 166, - 167, - 168, - 169, - 170, - 171, - 172, - 173, - 178, - 179, - 184, - 185, - 196, - 197, - 198, - 199, - 200, - 201, - 202, - 203, - 204, - 205, - 206, - 207, - 208, - 209, - 214, - 215, - 220, - 221 - ]; - } -} catch (error) { - // Swallow - we only care if `supports-color` is available; it doesn't have to be. -} - -/** - * Build up the default `inspectOpts` object from the environment variables. - * - * $ DEBUG_COLORS=no DEBUG_DEPTH=10 DEBUG_SHOW_HIDDEN=enabled node script.js - */ - -exports.inspectOpts = Object.keys(process.env).filter(key => { - return /^debug_/i.test(key); -}).reduce((obj, key) => { - // Camel-case - const prop = key - .substring(6) - .toLowerCase() - .replace(/_([a-z])/g, (_, k) => { - return k.toUpperCase(); - }); - - // Coerce string value into JS value - let val = process.env[key]; - if (/^(yes|on|true|enabled)$/i.test(val)) { - val = true; - } else if (/^(no|off|false|disabled)$/i.test(val)) { - val = false; - } else if (val === 'null') { - val = null; - } else { - val = Number(val); - } - - obj[prop] = val; - return obj; -}, {}); - -/** - * Is stdout a TTY? Colored output is enabled when `true`. - */ - -function useColors() { - return 'colors' in exports.inspectOpts ? - Boolean(exports.inspectOpts.colors) : - tty.isatty(process.stderr.fd); -} - -/** - * Adds ANSI color escape codes if enabled. - * - * @api public - */ - -function formatArgs(args) { - const {namespace: name, useColors} = this; - - if (useColors) { - const c = this.color; - const colorCode = '\u001B[3' + (c < 8 ? c : '8;5;' + c); - const prefix = ` ${colorCode};1m${name} \u001B[0m`; - - args[0] = prefix + args[0].split('\n').join('\n' + prefix); - args.push(colorCode + 'm+' + module.exports.humanize(this.diff) + '\u001B[0m'); - } else { - args[0] = getDate() + name + ' ' + args[0]; - } -} - -function getDate() { - if (exports.inspectOpts.hideDate) { - return ''; - } - return new Date().toISOString() + ' '; -} - -/** - * Invokes `util.format()` with the specified arguments and writes to stderr. - */ - -function log(...args) { - return process.stderr.write(util.format(...args) + '\n'); -} - -/** - * Save `namespaces`. - * - * @param {String} namespaces - * @api private - */ -function save(namespaces) { - if (namespaces) { - process.env.DEBUG = namespaces; - } else { - // If you set a process.env field to null or undefined, it gets cast to the - // string 'null' or 'undefined'. Just delete instead. - delete process.env.DEBUG; - } -} - -/** - * Load `namespaces`. - * - * @return {String} returns the previously persisted debug modes - * @api private - */ - -function load() { - return process.env.DEBUG; -} - -/** - * Init logic for `debug` instances. - * - * Create a new `inspectOpts` object in case `useColors` is set - * differently for a particular `debug` instance. - */ - -function init(debug) { - debug.inspectOpts = {}; - - const keys = Object.keys(exports.inspectOpts); - for (let i = 0; i < keys.length; i++) { - debug.inspectOpts[keys[i]] = exports.inspectOpts[keys[i]]; - } -} - -module.exports = require('./common')(exports); - -const {formatters} = module.exports; - -/** - * Map %o to `util.inspect()`, all on a single line. - */ - -formatters.o = function (v) { - this.inspectOpts.colors = this.useColors; - return util.inspect(v, this.inspectOpts) - .split('\n') - .map(str => str.trim()) - .join(' '); -}; - -/** - * Map %O to `util.inspect()`, allowing multiple lines if needed. - */ - -formatters.O = function (v) { - this.inspectOpts.colors = this.useColors; - return util.inspect(v, this.inspectOpts); -}; diff --git a/node_modules/es5-ext/CHANGELOG.md b/node_modules/es5-ext/CHANGELOG.md deleted file mode 100644 index 60bcd023..00000000 --- a/node_modules/es5-ext/CHANGELOG.md +++ /dev/null @@ -1,389 +0,0 @@ -# Changelog - -All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. - -### [0.10.62](https://github.com/medikoo/es5-ext/compare/v0.10.61...v0.10.62) (2022-08-02) - -### Maintenance Improvements - -- **Manifest improvements:** - - ([#190](https://github.com/medikoo/es5-ext/issues/190)) ([b8dc53f](https://github.com/medikoo/es5-ext/commit/b8dc53fa439b98541644c64c1275f25d9f2e2235)) - - ([c51d552](https://github.com/medikoo/es5-ext/commit/c51d552c03967858b8f14a4afa305338ba648cce)) - -### [0.10.61](https://github.com/medikoo/es5-ext/compare/v0.10.60...v0.10.61) (2022-04-20) - -### Bug Fixes - -- Ensure postinstall script does not error ([a0be4fd](https://github.com/medikoo/es5-ext/commit/a0be4fdacdbc3aefd6f2952b7b9215827d362bbb)) - -### Maintenance Improvements - -- Bump dependencies ([d7e0a61](https://github.com/medikoo/es5-ext/commit/d7e0a612b7d895c1c7238c779feae1e39d4634c4)) - -### [0.10.60](https://github.com/medikoo/es5-ext/compare/v0.10.59...v0.10.60) (2022-04-07) - -### Maintenance Improvements - -- Improve `postinstall` script configuration ([ab6b121](https://github.com/medikoo/es5-ext/commit/ab6b121f0ca4f033bba9b6f400b24d07869bd716)) - -### [0.10.59](https://github.com/medikoo/es5-ext/compare/v0.10.58...v0.10.59) (2022-03-17) - -### Maintenance Improvements - -- Improve manifest wording ([#122](https://github.com/medikoo/es5-ext/issues/122)) ([eb7ae59](https://github.com/medikoo/es5-ext/commit/eb7ae59966774a8c26f1717415c627d90bb3d954)) -- Update data in manifest ([3d2935a](https://github.com/medikoo/es5-ext/commit/3d2935ac6f1a0969c7569840d5b3bdeed6940e56)) - -### [0.10.58](https://github.com/medikoo/es5-ext/compare/v0.10.57...v0.10.58) (2022-03-11) - -### Maintenance Improvements - -- Improve "call for peace" manifest ([3beace4](https://github.com/medikoo/es5-ext/commit/3beace4b3d00f02da61b72dd328f90cf069d46de)) - -### [0.10.57](https://github.com/medikoo/es5-ext/compare/v0.10.56...v0.10.57) (2022-03-08) - -### Bug Fixes - -- Workaround `postinstall` script prevent npx error ([#110](https://github.com/medikoo/es5-ext/issues/110)) ([e212d5a](https://github.com/medikoo/es5-ext/commit/e212d5a0adf186f1fadf85fdc07aab25085ee097)) ([martindrq](https://github.com/martindrq)) - -### [0.10.56](https://github.com/medikoo/es5-ext/compare/v0.10.55...v0.10.56) (2022-03-07) - -### Maintenance Improvements - -- Add missing shebang to postinstall script ([e423fd7](https://github.com/medikoo/es5-ext/commit/e423fd7264c4f145921e461037d571b35b6a9833)) - -### [0.10.55](https://github.com/medikoo/es5-ext/compare/v0.10.54...v0.10.55) (2022-03-07) - -### Maintenance Improvements - -- Configure `.npmignore` file (exclude tests from publication) ([d3ed4b6](https://github.com/medikoo/es5-ext/commit/d3ed4b6a873900a2abf3957bbebdcf18c4e564e0)) - -### [0.10.54](https://github.com/medikoo/es5-ext/compare/v0.10.53...v0.10.54) (2022-03-07) - -### Maintenance Improvements - -- Convert dependency ranges ([765eb8e](https://github.com/medikoo/es5-ext/commit/765eb8e897cabc76f0351443d84b4843a1187b27)) -- Give Peace a Chance ([28de285](https://github.com/medikoo/es5-ext/commit/28de285ed433b45113f01e4ce7c74e9a356b2af2)) - -### [0.10.53](https://github.com/medikoo/es5-ext/compare/v0.10.52...v0.10.53) (2019-11-21) - -_Maintenance improvements_ - -### [0.10.52](https://github.com/medikoo/es5-ext/compare/v0.10.51...v0.10.52) (2019-10-29) - -### Bug Fixes - -- Fix global resolution for Safari ([00731d2](https://github.com/medikoo/es5-ext/commit/00731d2)) -- Keep support for old Node.js versions ([2fa2a11](https://github.com/medikoo/es5-ext/commit/2fa2a11)) - -### [0.10.51](https://github.com/medikoo/es5-ext/compare/v0.10.50...v0.10.51) (2019-08-30) - -### Bug Fixes - -- Ensure Function.isFunction recognizes async functions ([6f06e66](https://github.com/medikoo/es5-ext/commit/6f06e66)) - -### Tests - -- Fix after prettification changes ([dd6fc3f](https://github.com/medikoo/es5-ext/commit/dd6fc3f)) - -## [0.10.50](https://github.com/medikoo/es5-ext/compare/v0.10.49...v0.10.50) (2019-04-30) - -### Bug Fixes - -- maximum time value reference ([708202d](https://github.com/medikoo/es5-ext/commit/708202d)) - -### Features - -- ensure global resolves in strict mode ([c6a19d7](https://github.com/medikoo/es5-ext/commit/c6a19d7)), closes [#86](https://github.com/medikoo/es5-ext/issues/86) - -## [0.10.49](https://github.com/medikoo/es5-ext/compare/v0.10.48...v0.10.49) (2019-03-11) - -### Features - -- allow plain function usage of fn.compose ([2bafef7](https://github.com/medikoo/es5-ext/commit/2bafef7)) - -## [0.10.48](https://github.com/medikoo/es5-ext/compare/v0.10.47...v0.10.48) (2019-02-22) - -### Features - -- Object.ensurePlainObject util ([f48fbcf](https://github.com/medikoo/es5-ext/commit/f48fbcf)) - - - -## [0.10.47](https://github.com/medikoo/es5-ext/compare/v0.10.46...v0.10.47) (2019-01-16) - -### Features - -- Promise.prototype.finally shim ([4dadbc7](https://github.com/medikoo/es5-ext/commit/4dadbc7)) - - - -## [0.10.46](https://github.com/medikoo/es5-ext/compare/v0.10.45...v0.10.46) (2018-08-13) - -### Bug Fixes - -- assign-deep to not modify following arguments ([bf43d57](https://github.com/medikoo/es5-ext/commit/bf43d57)) - - - -## [0.10.45](https://github.com/medikoo/es5-ext/compare/v0.10.44...v0.10.45) (2018-06-01) - -### Bug Fixes - -- improve error message readbility ([adc91b9](https://github.com/medikoo/es5-ext/commit/adc91b9)) - - - -## [0.10.44](https://github.com/medikoo/es5-ext/compare/v0.10.43...v0.10.44) (2018-05-30) - -### Features - -- add Object.entries ([51d2f43](https://github.com/medikoo/es5-ext/commit/51d2f43)) - - - -## [0.10.43](https://github.com/medikoo/es5-ext/compare/v0.10.42...v0.10.43) (2018-05-28) - -### Features - -- improve patch string ([6a25b10](https://github.com/medikoo/es5-ext/commit/6a25b10)) - - - -## [0.10.42](https://github.com/medikoo/es5-ext/compare/v0.10.41...v0.10.42) (2018-03-28) - -### Bug Fixes - -- Date.isDate to exclude NaN dates ([3b61bc6](https://github.com/medikoo/es5-ext/commit/3b61bc6)) - -### Features - -- improve non-coercible string representation ([20bfb78](https://github.com/medikoo/es5-ext/commit/20bfb78)) -- improve non-stringifiable string representation ([2e4512d](https://github.com/medikoo/es5-ext/commit/2e4512d)) - - - -## [0.10.41](https://github.com/medikoo/es5-ext/compare/v0.10.40...v0.10.41) (2018-03-16) - -### Features - -- Add function.microtaskDelay method ([66481c0](https://github.com/medikoo/es5-ext/commit/66481c0)) -- Add Object.isThenable ([8d5a45c](https://github.com/medikoo/es5-ext/commit/8d5a45c)) -- Add promise.asCallback method ([dcc1451](https://github.com/medikoo/es5-ext/commit/dcc1451)) -- Object.ensurePlainFunction ([2682be6](https://github.com/medikoo/es5-ext/commit/2682be6)) - - - -## [0.10.40](https://github.com/medikoo/es5-ext/compare/v0.10.39...v0.10.40) (2018-03-09) - -### Features - -- **math:** decimal round, floor and ceil ([39290c6](https://github.com/medikoo/es5-ext/commit/39290c6)) -- **object:** isInteger and ensureInteger ([a5f7d04](https://github.com/medikoo/es5-ext/commit/a5f7d04)) - - - -## [0.10.39](https://github.com/medikoo/es5-ext/compare/v0.10.38...v0.10.39) (2018-02-16) - -### Features - -- Promise.lazy ([7a30a78](https://github.com/medikoo/es5-ext/commit/7a30a78)) - - - -## [0.10.38](https://github.com/medikoo/es5-ext/compare/v0.10.37...v0.10.38) (2018-01-16) - -### Features - -- Object.isNaturalNumber an Object.isNaturalNumberValue ([66a40af](https://github.com/medikoo/es5-ext/commit/66a40af)) - - - -## [0.10.37](https://github.com/medikoo/es5-ext/compare/v0.10.36...v0.10.37) (2017-11-23) - -### Features - -- String.random util ([7c28739](https://github.com/medikoo/es5-ext/commit/7c28739)) - - - -## [0.10.36](https://github.com/medikoo/es5-ext/compare/v0.10.35...v0.10.36) (2017-11-23) - -### Features - -- **date:** isTimeValue and ensureTimeValue utils ([7659dc5](https://github.com/medikoo/es5-ext/commit/7659dc5)) - - - -## [0.10.35](https://github.com/medikoo/es5-ext/compare/v0.10.34...v0.10.35) (2017-10-13) - -### Bug Fixes - -- **Object.copy:** do not upgrade primitives to objects ([dd4d88f](https://github.com/medikoo/es5-ext/commit/dd4d88f)) - - - -## [0.10.34](https://github.com/medikoo/es5-ext/compare/v0.10.33...v0.10.34) (2017-10-13) - -### Features - -- **copyDeep:** duplicate only recursive instances ([bba529a](https://github.com/medikoo/es5-ext/commit/bba529a)) - - - -## [0.10.33](https://github.com/medikoo/es5-ext/compare/v0.10.32...v0.10.33) (2017-10-13) - -### Bug Fixes - -- **Object.assignDeep:** relax input validation ([1baf57d](https://github.com/medikoo/es5-ext/commit/1baf57d)) - - - -## [0.10.32](https://github.com/medikoo/es5-ext/compare/v0.10.31...v0.10.32) (2017-10-13) - -### Features - -- Object.assignDeep ([2345e0b](https://github.com/medikoo/es5-ext/commit/2345e0b)) - - - -## [0.10.31](https://github.com/medikoo/es5-ext/compare/v0.10.30...v0.10.31) (2017-10-09) - -### Features - -- Object.isPlainFunction utility ([031be0a](https://github.com/medikoo/es5-ext/commit/031be0a)) - - - -## [0.10.30](https://github.com/medikoo/es5-ext/compare/v0.10.29...v0.10.30) (2017-08-25) - -### Bug Fixes - -- value stringification for error message ([37bb96b](https://github.com/medikoo/es5-ext/commit/37bb96b)) - - - -## [0.10.29](https://github.com/medikoo/es5-ext/compare/v0.10.28...v0.10.29) (2017-08-18) - -### Bug Fixes - -- string.repeat after recent regression ([b02fab4](https://github.com/medikoo/es5-ext/commit/b02fab4)) - - - -## [0.10.28](https://github.com/medikoo/es5-ext/compare/v0.10.27...v0.10.28) (2017-08-18) - -### Features - -- array.isEmpty method ([b0cfbdd](https://github.com/medikoo/es5-ext/commit/b0cfbdd)) -- improve new lines representation ([860fe8b](https://github.com/medikoo/es5-ext/commit/860fe8b)) -- Object.ensureArray util ([595c341](https://github.com/medikoo/es5-ext/commit/595c341)) -- toShortStringRepresentation util ([6842d06](https://github.com/medikoo/es5-ext/commit/6842d06)) - - - -## [0.10.27](https://github.com/medikoo/es5-ext/compare/v0.10.26...v0.10.27) (2017-08-11) - -### Bug Fixes - -- isNumberValue should not crash on non-coercible values ([0db765e](https://github.com/medikoo/es5-ext/commit/0db765e)) - -### Features - -- add Object.ensureFiniteNumber util ([11c67f5](https://github.com/medikoo/es5-ext/commit/11c67f5)) -- add Object.isFiniteNumber util ([fe5b55a](https://github.com/medikoo/es5-ext/commit/fe5b55a)) - - - -## [0.10.26](https://github.com/medikoo/es5-ext/compare/v0.10.25...v0.10.26) (2017-08-02) - -### Bug Fixes - -- **general:** ensure optionalChaining in index ([3df879a](https://github.com/medikoo/es5-ext/commit/3df879a)) - - - -## [0.10.25](https://github.com/medikoo/es5-ext/compare/v0.10.24...v0.10.25) (2017-08-02) - -### Features - -- **general:** optionalChaining utility ([26332b5](https://github.com/medikoo/es5-ext/commit/26332b5)) - - - -## [0.10.24](https://github.com/medikoo/es5-ext/compare/v0.10.23...v0.10.24) (2017-07-10) - -### Features - -- resolve global with CSP safe method ([d386449](https://github.com/medikoo/es5-ext/commit/d386449)) - - - -## [0.10.23](https://github.com/medikoo/es5-ext/compare/v0.10.22...v0.10.23) (2017-06-05) - -### Bug Fixes - -- **Error.custom:** allow non-string code ([e8db3a0](https://github.com/medikoo/es5-ext/commit/e8db3a0)) -- **Error.custom:** improve `ext` argument detection ([0edbfbc](https://github.com/medikoo/es5-ext/commit/0edbfbc)) - - - -## [0.10.22](https://github.com/medikoo/es5-ext/compare/v0.10.21...v0.10.22) (2017-05-31) - -### Bug Fixes - -- ensure proper symbols stringification in early implementations ([ce51900](https://github.com/medikoo/es5-ext/commit/ce51900)) - - - -## [0.10.21](https://github.com/medikoo/es5-ext/compare/v0.10.20...v0.10.21) (2017-05-22) - -### Features - -- support arrow functions in Function/#/to-tring-tokens.js ([ad3de1e](https://github.com/medikoo/es5-ext/commit/ad3de1e)) - - - -## [0.10.20](https://github.com/medikoo/es5-ext/compare/v0.10.19...v0.10.20) (2017-05-17) - -### Features - -- if listed copy not only if own property ([d7e7cef](https://github.com/medikoo/es5-ext/commit/d7e7cef)) -- support `ensure` option in Object.copy ([295326f](https://github.com/medikoo/es5-ext/commit/295326f)) - - - -## [0.10.19](https://github.com/medikoo/es5-ext/compare/v0.10.18...v0.10.19) (2017-05-17) - -### Features - -- support propertyNames option in Object.copy ([5442279](https://github.com/medikoo/es5-ext/commit/5442279)) - - - -## [0.10.18](https://github.com/medikoo/es5-ext/compare/v0.10.17...v0.10.18) (2017-05-15) - -### Bug Fixes - -- take all changes in safeToString ([3c5cd12](https://github.com/medikoo/es5-ext/commit/3c5cd12)) - - - -## [0.10.17](https://github.com/medikoo/es5-ext/compare/v0.10.16...v0.10.17) (2017-05-15) - -### Features - -- introduce Object.ensurePromise ([46a2f45](https://github.com/medikoo/es5-ext/commit/46a2f45)) -- introduce Object.isPromise ([27aecc8](https://github.com/medikoo/es5-ext/commit/27aecc8)) -- introduce safeToString ([0cc6a7b](https://github.com/medikoo/es5-ext/commit/0cc6a7b)) - - - -## [0.10.16](https://github.com/medikoo/es5-ext/compare/v0.10.15...v0.10.16) (2017-05-09) - -### Features - -- add String.prototype.count ([2e53241](https://github.com/medikoo/es5-ext/commit/2e53241)) - -## Changelog for previous versions - -See `CHANGES` file diff --git a/node_modules/es5-ext/LICENSE b/node_modules/es5-ext/LICENSE deleted file mode 100644 index 7df6b3d0..00000000 --- a/node_modules/es5-ext/LICENSE +++ /dev/null @@ -1,15 +0,0 @@ -ISC License - -Copyright (c) 2011-2022, Mariusz Nowak, @medikoo, medikoo.com - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE -OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. diff --git a/node_modules/es5-ext/README.md b/node_modules/es5-ext/README.md deleted file mode 100644 index 56918cf5..00000000 --- a/node_modules/es5-ext/README.md +++ /dev/null @@ -1,1039 +0,0 @@ -[![Build status][build-image]][build-url] -[![Tests coverage][cov-image]][cov-url] -[![npm version][npm-image]][npm-url] - -# es5-ext - -## ECMAScript 5 extensions - -### (with respect to ECMAScript 6 standard) - -Shims for upcoming ES6 standard and other goodies implemented strictly with ECMAScript conventions in mind. - -It's designed to be used in compliant ECMAScript 5 or ECMAScript 6 environments. Older environments are not supported, although most of the features should work with correct ECMAScript 5 shim on board. - -When used in ECMAScript 6 environment, native implementation (if valid) takes precedence over shims. - -### Installation - -```bash -npm install es5-ext -``` - -To port it to Browser or any other (non CJS) environment, use your favorite CJS bundler. No favorite yet? Try: [Browserify](http://browserify.org/), [Webmake](https://github.com/medikoo/modules-webmake) or [Webpack](http://webpack.github.io/) - -### Usage - -#### ECMAScript 6 features - -You can force ES6 features to be implemented in your environment, e.g. following will assign `from` function to `Array` (only if it's not implemented already). - -```javascript -require("es5-ext/array/from/implement"); -Array.from("foo"); // ['f', 'o', 'o'] -``` - -You can also access shims directly, without fixing native objects. Following will return native `Array.from` if it's available and fallback to shim if it's not. - -```javascript -var aFrom = require("es5-ext/array/from"); -aFrom("foo"); // ['f', 'o', 'o'] -``` - -If you want to use shim unconditionally (even if native implementation exists) do: - -```javascript -var aFrom = require("es5-ext/array/from/shim"); -aFrom("foo"); // ['f', 'o', 'o'] -``` - -##### List of ES6 shims - -It's about properties introduced with ES6 and those that have been updated in new spec. - -- `Array.from` -> `require('es5-ext/array/from')` -- `Array.of` -> `require('es5-ext/array/of')` -- `Array.prototype.concat` -> `require('es5-ext/array/#/concat')` -- `Array.prototype.copyWithin` -> `require('es5-ext/array/#/copy-within')` -- `Array.prototype.entries` -> `require('es5-ext/array/#/entries')` -- `Array.prototype.fill` -> `require('es5-ext/array/#/fill')` -- `Array.prototype.filter` -> `require('es5-ext/array/#/filter')` -- `Array.prototype.find` -> `require('es5-ext/array/#/find')` -- `Array.prototype.findIndex` -> `require('es5-ext/array/#/find-index')` -- `Array.prototype.keys` -> `require('es5-ext/array/#/keys')` -- `Array.prototype.map` -> `require('es5-ext/array/#/map')` -- `Array.prototype.slice` -> `require('es5-ext/array/#/slice')` -- `Array.prototype.splice` -> `require('es5-ext/array/#/splice')` -- `Array.prototype.values` -> `require('es5-ext/array/#/values')` -- `Array.prototype[@@iterator]` -> `require('es5-ext/array/#/@@iterator')` -- `Math.acosh` -> `require('es5-ext/math/acosh')` -- `Math.asinh` -> `require('es5-ext/math/asinh')` -- `Math.atanh` -> `require('es5-ext/math/atanh')` -- `Math.cbrt` -> `require('es5-ext/math/cbrt')` -- `Math.clz32` -> `require('es5-ext/math/clz32')` -- `Math.cosh` -> `require('es5-ext/math/cosh')` -- `Math.exmp1` -> `require('es5-ext/math/expm1')` -- `Math.fround` -> `require('es5-ext/math/fround')` -- `Math.hypot` -> `require('es5-ext/math/hypot')` -- `Math.imul` -> `require('es5-ext/math/imul')` -- `Math.log1p` -> `require('es5-ext/math/log1p')` -- `Math.log2` -> `require('es5-ext/math/log2')` -- `Math.log10` -> `require('es5-ext/math/log10')` -- `Math.sign` -> `require('es5-ext/math/sign')` -- `Math.signh` -> `require('es5-ext/math/signh')` -- `Math.tanh` -> `require('es5-ext/math/tanh')` -- `Math.trunc` -> `require('es5-ext/math/trunc')` -- `Number.EPSILON` -> `require('es5-ext/number/epsilon')` -- `Number.MAX_SAFE_INTEGER` -> `require('es5-ext/number/max-safe-integer')` -- `Number.MIN_SAFE_INTEGER` -> `require('es5-ext/number/min-safe-integer')` -- `Number.isFinite` -> `require('es5-ext/number/is-finite')` -- `Number.isInteger` -> `require('es5-ext/number/is-integer')` -- `Number.isNaN` -> `require('es5-ext/number/is-nan')` -- `Number.isSafeInteger` -> `require('es5-ext/number/is-safe-integer')` -- `Object.assign` -> `require('es5-ext/object/assign')` -- `Object.keys` -> `require('es5-ext/object/keys')` -- `Object.setPrototypeOf` -> `require('es5-ext/object/set-prototype-of')` -- `Promise.prototype.finally` -> `require('es5-ext/promise/#/finally')` -- `RegExp.prototype.match` -> `require('es5-ext/reg-exp/#/match')` -- `RegExp.prototype.replace` -> `require('es5-ext/reg-exp/#/replace')` -- `RegExp.prototype.search` -> `require('es5-ext/reg-exp/#/search')` -- `RegExp.prototype.split` -> `require('es5-ext/reg-exp/#/split')` -- `RegExp.prototype.sticky` -> Implement with `require('es5-ext/reg-exp/#/sticky/implement')`, use as function with `require('es5-ext/reg-exp/#/is-sticky')` -- `RegExp.prototype.unicode` -> Implement with `require('es5-ext/reg-exp/#/unicode/implement')`, use as function with `require('es5-ext/reg-exp/#/is-unicode')` -- `String.fromCodePoint` -> `require('es5-ext/string/from-code-point')` -- `String.raw` -> `require('es5-ext/string/raw')` -- `String.prototype.codePointAt` -> `require('es5-ext/string/#/code-point-at')` -- `String.prototype.contains` -> `require('es5-ext/string/#/contains')` -- `String.prototype.endsWith` -> `require('es5-ext/string/#/ends-with')` -- `String.prototype.normalize` -> `require('es5-ext/string/#/normalize')` -- `String.prototype.repeat` -> `require('es5-ext/string/#/repeat')` -- `String.prototype.startsWith` -> `require('es5-ext/string/#/starts-with')` -- `String.prototype[@@iterator]` -> `require('es5-ext/string/#/@@iterator')` - -#### Non ECMAScript standard features - -**es5-ext** provides also other utils, and implements them as if they were proposed for a standard. It mostly offers methods (not functions) which can directly be assigned to native prototypes: - -```javascript -Object.defineProperty(Function.prototype, "partial", { - value: require("es5-ext/function/#/partial"), - configurable: true, - enumerable: false, - writable: true -}); -Object.defineProperty(Array.prototype, "flatten", { - value: require("es5-ext/array/#/flatten"), - configurable: true, - enumerable: false, - writable: true -}); -Object.defineProperty(String.prototype, "capitalize", { - value: require("es5-ext/string/#/capitalize"), - configurable: true, - enumerable: false, - writable: true -}); -``` - -See [es5-extend](https://github.com/wookieb/es5-extend#es5-extend), a great utility that automatically will extend natives for you. - -**Important:** Remember to **not** extend natives in scope of generic reusable packages (e.g. ones you intend to publish to npm). Extending natives is fine **only** if you're the _owner_ of the global scope, so e.g. in final project you lead development of. - -When you're in situation when native extensions are not good idea, then you should use methods indirectly: - -```javascript -var flatten = require("es5-ext/array/#/flatten"); - -flatten.call([1, [2, [3, 4]]]); // [1, 2, 3, 4] -``` - -for better convenience you can turn methods into functions: - -```javascript -var call = Function.prototype.call; -var flatten = call.bind(require("es5-ext/array/#/flatten")); - -flatten([1, [2, [3, 4]]]); // [1, 2, 3, 4] -``` - -You can configure custom toolkit (like [underscorejs](http://underscorejs.org/)), and use it throughout your application - -```javascript -var util = {}; -util.partial = call.bind(require("es5-ext/function/#/partial")); -util.flatten = call.bind(require("es5-ext/array/#/flatten")); -util.startsWith = call.bind(require("es5-ext/string/#/starts-with")); - -util.flatten([1, [2, [3, 4]]]); // [1, 2, 3, 4] -``` - -As with native ones most methods are generic and can be run on any type of object. - -## API - -### Global extensions - -#### global _(es5-ext/global)_ - -Object that represents global scope - -### Array Constructor extensions - -#### from(arrayLike[, mapFn[, thisArg]]) _(es5-ext/array/from)_ - -[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.from). -Returns array representation of _iterable_ or _arrayLike_. If _arrayLike_ is an instance of array, its copy is returned. - -#### generate([length[, …fill]]) _(es5-ext/array/generate)_ - -Generate an array of pre-given _length_ built of repeated arguments. - -#### isPlainArray(x) _(es5-ext/array/is-plain-array)_ - -Returns true if object is plain array (not instance of one of the Array's extensions). - -#### of([…items]) _(es5-ext/array/of)_ - -[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.of). -Create an array from given arguments. - -#### toArray(obj) _(es5-ext/array/to-array)_ - -Returns array representation of `obj`. If `obj` is already an array, `obj` is returned back. - -#### validArray(obj) _(es5-ext/array/valid-array)_ - -Returns `obj` if it's an array, otherwise throws `TypeError` - -### Array Prototype extensions - -#### arr.binarySearch(compareFn) _(es5-ext/array/#/binary-search)_ - -In **sorted** list search for index of item for which _compareFn_ returns value closest to _0_. -It's variant of binary search algorithm - -#### arr.clear() _(es5-ext/array/#/clear)_ - -Clears the array - -#### arr.compact() _(es5-ext/array/#/compact)_ - -Returns a copy of the context with all non-values (`null` or `undefined`) removed. - -#### arr.concat() _(es5-ext/array/#/concat)_ - -[_Updated with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.prototype.concat). -ES6's version of `concat`. Supports `isConcatSpreadable` symbol, and returns array of same type as the context. - -#### arr.contains(searchElement[, position]) _(es5-ext/array/#/contains)_ - -Whether list contains the given value. - -#### arr.copyWithin(target, start[, end]) _(es5-ext/array/#/copy-within)_ - -[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.copywithin). - -#### arr.diff(other) _(es5-ext/array/#/diff)_ - -Returns the array of elements that are present in context list but not present in other list. - -#### arr.eIndexOf(searchElement[, fromIndex]) _(es5-ext/array/#/e-index-of)_ - -_egal_ version of `indexOf` method. [_SameValueZero_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero) logic is used for comparision - -#### arr.eLastIndexOf(searchElement[, fromIndex]) _(es5-ext/array/#/e-last-index-of)_ - -_egal_ version of `lastIndexOf` method. [_SameValueZero_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero) logic is used for comparision - -#### arr.entries() _(es5-ext/array/#/entries)_ - -[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.prototype.entries). -Returns iterator object, which traverses the array. Each value is represented with an array, where first value is an index and second is corresponding to index value. - -#### arr.exclusion([…lists]]) _(es5-ext/array/#/exclusion)_ - -Returns the array of elements that are found only in one of the lists (either context list or list provided in arguments). - -#### arr.fill(value[, start, end]) _(es5-ext/array/#/fill)_ - -[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.fill). - -#### arr.filter(callback[, thisArg]) _(es5-ext/array/#/filter)_ - -[_Updated with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.filter). -ES6's version of `filter`, returns array of same type as the context. - -#### arr.find(predicate[, thisArg]) _(es5-ext/array/#/find)_ - -[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.find). -Return first element for which given function returns true - -#### arr.findIndex(predicate[, thisArg]) _(es5-ext/array/#/find-index)_ - -[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.findindex). -Return first index for which given function returns true - -#### arr.first() _(es5-ext/array/#/first)_ - -Returns value for first defined index - -#### arr.firstIndex() _(es5-ext/array/#/first-index)_ - -Returns first declared index of the array - -#### arr.flatten() _(es5-ext/array/#/flatten)_ - -Returns flattened version of the array - -#### arr.forEachRight(cb[, thisArg]) _(es5-ext/array/#/for-each-right)_ - -`forEach` starting from last element - -#### arr.group(cb[, thisArg]) _(es5-ext/array/#/group)_ - -Group list elements by value returned by _cb_ function - -#### arr.indexesOf(searchElement[, fromIndex]) _(es5-ext/array/#/indexes-of)_ - -Returns array of all indexes of given value - -#### arr.intersection([…lists]) _(es5-ext/array/#/intersection)_ - -Computes the array of values that are the intersection of all lists (context list and lists given in arguments) - -#### arr.isCopy(other) _(es5-ext/array/#/is-copy)_ - -Returns true if both context and _other_ lists have same content - -#### arr.isUniq() _(es5-ext/array/#/is-uniq)_ - -Returns true if all values in array are unique - -#### arr.keys() _(es5-ext/array/#/keys)_ - -[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.prototype.keys). -Returns iterator object, which traverses all array indexes. - -#### arr.last() _(es5-ext/array/#/last)_ - -Returns value of last defined index - -#### arr.lastIndex() _(es5-ext/array/#/last)_ - -Returns last defined index of the array - -#### arr.map(callback[, thisArg]) _(es5-ext/array/#/map)_ - -[_Updated with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.map). -ES6's version of `map`, returns array of same type as the context. - -#### arr.remove(value[, …valuen]) _(es5-ext/array/#/remove)_ - -Remove values from the array - -#### arr.separate(sep) _(es5-ext/array/#/separate)_ - -Returns array with items separated with `sep` value - -#### arr.slice(callback[, thisArg]) _(es5-ext/array/#/slice)_ - -[_Updated with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.slice). -ES6's version of `slice`, returns array of same type as the context. - -#### arr.someRight(cb[, thisArg]) _(es5-ext/array/#/someRight)_ - -`some` starting from last element - -#### arr.splice(callback[, thisArg]) _(es5-ext/array/#/splice)_ - -[_Updated with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.splice). -ES6's version of `splice`, returns array of same type as the context. - -#### arr.uniq() _(es5-ext/array/#/uniq)_ - -Returns duplicate-free version of the array - -#### arr.values() _(es5-ext/array/#/values)_ - -[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.prototype.values). -Returns iterator object which traverses all array values. - -#### arr[@@iterator] _(es5-ext/array/#/@@iterator)_ - -[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-array.prototype-@@iterator). -Returns iterator object which traverses all array values. - -### Boolean Constructor extensions - -#### isBoolean(x) _(es5-ext/boolean/is-boolean)_ - -Whether value is boolean - -### Date Constructor extensions - -#### isDate(x) _(es5-ext/date/is-date)_ - -Whether value is date instance - -#### validDate(x) _(es5-ext/date/valid-date)_ - -If given object is not date throw TypeError in other case return it. - -### Date Prototype extensions - -#### date.copy(date) _(es5-ext/date/#/copy)_ - -Returns a copy of the date object - -#### date.daysInMonth() _(es5-ext/date/#/days-in-month)_ - -Returns number of days of date's month - -#### date.floorDay() _(es5-ext/date/#/floor-day)_ - -Sets the date time to 00:00:00.000 - -#### date.floorMonth() _(es5-ext/date/#/floor-month)_ - -Sets date day to 1 and date time to 00:00:00.000 - -#### date.floorYear() _(es5-ext/date/#/floor-year)_ - -Sets date month to 0, day to 1 and date time to 00:00:00.000 - -#### date.format(pattern) _(es5-ext/date/#/format)_ - -Formats date up to given string. Supported patterns: - -- `%Y` - Year with century, 1999, 2003 -- `%y` - Year without century, 99, 03 -- `%m` - Month, 01..12 -- `%d` - Day of the month 01..31 -- `%H` - Hour (24-hour clock), 00..23 -- `%M` - Minute, 00..59 -- `%S` - Second, 00..59 -- `%L` - Milliseconds, 000..999 - -### Error Constructor extensions - -#### custom(message/_, code, ext_/) _(es5-ext/error/custom)_ - -Creates custom error object, optinally extended with `code` and other extension properties (provided with `ext` object) - -#### isError(x) _(es5-ext/error/is-error)_ - -Whether value is an error (instance of `Error`). - -#### validError(x) _(es5-ext/error/valid-error)_ - -If given object is not error throw TypeError in other case return it. - -### Error Prototype extensions - -#### err.throw() _(es5-ext/error/#/throw)_ - -Throws error - -### Function Constructor extensions - -Some of the functions were inspired by [Functional JavaScript](http://osteele.com/sources/javascript/functional/) project by Olivier Steele - -#### constant(x) _(es5-ext/function/constant)_ - -Returns a constant function that returns pregiven argument - -_k(x)(y) =def x_ - -#### identity(x) _(es5-ext/function/identity)_ - -Identity function. Returns first argument - -_i(x) =def x_ - -#### invoke(name[, …args]) _(es5-ext/function/invoke)_ - -Returns a function that takes an object as an argument, and applies object's -_name_ method to arguments. -_name_ can be name of the method or method itself. - -_invoke(name, …args)(object, …args2) =def object\[name\]\(…args, …args2\)_ - -#### isArguments(x) _(es5-ext/function/is-arguments)_ - -Whether value is arguments object - -#### isFunction(arg) _(es5-ext/function/is-function)_ - -Whether value is instance of function - -#### noop() _(es5-ext/function/noop)_ - -No operation function - -#### pluck(name) _(es5-ext/function/pluck)_ - -Returns a function that takes an object, and returns the value of its _name_ -property - -_pluck(name)(obj) =def obj[name]_ - -#### validFunction(arg) _(es5-ext/function/valid-function)_ - -If given object is not function throw TypeError in other case return it. - -### Function Prototype extensions - -Some of the methods were inspired by [Functional JavaScript](http://osteele.com/sources/javascript/functional/) project by Olivier Steele - -#### fn.compose([…fns]) _(es5-ext/function/#/compose)_ - -Applies the functions in reverse argument-list order. - -_f1.compose(f2, f3, f4)(…args) =def f1(f2(f3(f4(…arg))))_ - -`compose` can also be used in plain function form as: - -_compose(f1, f2, f3, f4)(…args) =def f1(f2(f3(f4(…arg))))_ - -#### fn.copy() _(es5-ext/function/#/copy)_ - -Produces copy of given function - -#### fn.curry([n]) _(es5-ext/function/#/curry)_ - -Invoking the function returned by this function only _n_ arguments are passed to the underlying function. If the underlying function is not saturated, the result is a function that passes all its arguments to the underlying function. -If _n_ is not provided then it defaults to context function length - -_f.curry(4)(arg1, arg2)(arg3)(arg4) =def f(arg1, args2, arg3, arg4)_ - -#### fn.lock([…args]) _(es5-ext/function/#/lock)_ - -Returns a function that applies the underlying function to _args_, and ignores its own arguments. - -_f.lock(…args)(…args2) =def f(…args)_ - -_Named after it's counterpart in Google Closure_ - -#### fn.not() _(es5-ext/function/#/not)_ - -Returns a function that returns boolean negation of value returned by underlying function. - -_f.not()(…args) =def !f(…args)_ - -#### fn.partial([…args]) _(es5-ext/function/#/partial)_ - -Returns a function that when called will behave like context function called with initially passed arguments. If more arguments are suplilied, they are appended to initial args. - -_f.partial(…args1)(…args2) =def f(…args1, …args2)_ - -#### fn.spread() _(es5-ext/function/#/spread)_ - -Returns a function that applies underlying function with first list argument - -_f.match()(args) =def f.apply(null, args)_ - -#### fn.toStringTokens() _(es5-ext/function/#/to-string-tokens)_ - -Serializes function into two (arguments and body) string tokens. Result is plain object with `args` and `body` properties. - -### Math extensions - -#### acosh(x) _(es5-ext/math/acosh)_ - -[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.acosh). - -#### asinh(x) _(es5-ext/math/asinh)_ - -[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.asinh). - -#### atanh(x) _(es5-ext/math/atanh)_ - -[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.atanh). - -#### cbrt(x) _(es5-ext/math/cbrt)_ - -[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.cbrt). - -#### clz32(x) _(es5-ext/math/clz32)_ - -[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.clz32). - -#### cosh(x) _(es5-ext/math/cosh)_ - -[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.cosh). - -#### expm1(x) _(es5-ext/math/expm1)_ - -[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.expm1). - -#### fround(x) _(es5-ext/math/fround)_ - -[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.fround). - -#### hypot([…values]) _(es5-ext/math/hypot)_ - -[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.hypot). - -#### imul(x, y) _(es5-ext/math/imul)_ - -[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.imul). - -#### log1p(x) _(es5-ext/math/log1p)_ - -[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.log1p). - -#### log2(x) _(es5-ext/math/log2)_ - -[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.log2). - -#### log10(x) _(es5-ext/math/log10)_ - -[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.log10). - -#### sign(x) _(es5-ext/math/sign)_ - -[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.sign). - -#### sinh(x) _(es5-ext/math/sinh)_ - -[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.sinh). - -#### tanh(x) _(es5-ext/math/tanh)_ - -[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.tanh). - -#### trunc(x) _(es5-ext/math/trunc)_ - -[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-math.trunc). - -### Number Constructor extensions - -#### EPSILON _(es5-ext/number/epsilon)_ - -[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.epsilon). - -The difference between 1 and the smallest value greater than 1 that is representable as a Number value, which is approximately 2.2204460492503130808472633361816 x 10-16. - -#### isFinite(x) _(es5-ext/number/is-finite)_ - -[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.isfinite). -Whether value is finite. Differs from global isNaN that it doesn't do type coercion. - -#### isInteger(x) _(es5-ext/number/is-integer)_ - -[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.isinteger). -Whether value is integer. - -#### isNaN(x) _(es5-ext/number/is-nan)_ - -[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.isnan). -Whether value is NaN. Differs from global isNaN that it doesn't do type coercion. - -#### isNumber(x) _(es5-ext/number/is-number)_ - -Whether given value is number - -#### isSafeInteger(x) _(es5-ext/number/is-safe-integer)_ - -[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.issafeinteger). - -#### MAX*SAFE_INTEGER *(es5-ext/number/max-safe-integer)\_ - -[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.maxsafeinteger). -The value of Number.MAX_SAFE_INTEGER is 9007199254740991. - -#### MIN*SAFE_INTEGER *(es5-ext/number/min-safe-integer)\_ - -[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-number.minsafeinteger). -The value of Number.MIN_SAFE_INTEGER is -9007199254740991 (253-1). - -#### toInteger(x) _(es5-ext/number/to-integer)_ - -Converts value to integer - -#### toPosInteger(x) _(es5-ext/number/to-pos-integer)_ - -Converts value to positive integer. If provided value is less than 0, then 0 is returned - -#### toUint32(x) _(es5-ext/number/to-uint32)_ - -Converts value to unsigned 32 bit integer. This type is used for array lengths. -See: http://www.2ality.com/2012/02/js-integers.html - -### Number Prototype extensions - -#### num.pad(length[, precision]) _(es5-ext/number/#/pad)_ - -Pad given number with zeros. Returns string - -### Object Constructor extensions - -#### assign(target, source[, …sourcen]) _(es5-ext/object/assign)_ - -[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.assign). -Extend _target_ by enumerable own properties of other objects. If properties are already set on target object, they will be overwritten. - -#### clear(obj) _(es5-ext/object/clear)_ - -Remove all enumerable own properties of the object - -#### compact(obj) _(es5-ext/object/compact)_ - -Returns copy of the object with all enumerable properties that have no falsy values - -#### compare(obj1, obj2) _(es5-ext/object/compare)_ - -Universal cross-type compare function. To be used for e.g. array sort. - -#### copy(obj) _(es5-ext/object/copy)_ - -Returns copy of the object with all enumerable properties. - -#### copyDeep(obj) _(es5-ext/object/copy-deep)_ - -Returns deep copy of the object with all enumerable properties. - -#### count(obj) _(es5-ext/object/count)_ - -Counts number of enumerable own properties on object - -#### create(obj[, properties]) _(es5-ext/object/create)_ - -`Object.create` alternative that provides workaround for [V8 issue](http://code.google.com/p/v8/issues/detail?id=2804). - -When `null` is provided as a prototype, it's substituted with specially prepared object that derives from Object.prototype but has all Object.prototype properties shadowed with undefined. - -It's quirky solution that allows us to have plain objects with no truthy properties but with turnable prototype. - -Use only for objects that you plan to switch prototypes of and be aware of limitations of this workaround. - -#### eq(x, y) _(es5-ext/object/eq)_ - -Whether two values are equal, using [_SameValueZero_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero) algorithm. - -#### every(obj, cb[, thisArg[, compareFn]]) _(es5-ext/object/every)_ - -Analogous to Array.prototype.every. Returns true if every key-value pair in this object satisfies the provided testing function. -Optionally _compareFn_ can be provided which assures that keys are tested in given order. If provided _compareFn_ is equal to `true`, then order is alphabetical (by key). - -#### filter(obj, cb[, thisArg]) _(es5-ext/object/filter)_ - -Analogous to Array.prototype.filter. Returns new object with properites for which _cb_ function returned truthy value. - -#### firstKey(obj) _(es5-ext/object/first-key)_ - -Returns first enumerable key of the object, as keys are unordered by specification, it can be any key of an object. - -#### flatten(obj) _(es5-ext/object/flatten)_ - -Returns new object, with flatten properties of input object - -_flatten({ a: { b: 1 }, c: { d: 1 } }) =def { b: 1, d: 1 }_ - -#### forEach(obj, cb[, thisArg[, compareFn]]) _(es5-ext/object/for-each)_ - -Analogous to Array.prototype.forEach. Calls a function for each key-value pair found in object -Optionally _compareFn_ can be provided which assures that properties are iterated in given order. If provided _compareFn_ is equal to `true`, then order is alphabetical (by key). - -#### getPropertyNames() _(es5-ext/object/get-property-names)_ - -Get all (not just own) property names of the object - -#### is(x, y) _(es5-ext/object/is)_ - -Whether two values are equal, using [_SameValue_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-samevaluezero) algorithm. - -#### isArrayLike(x) _(es5-ext/object/is-array-like)_ - -Whether object is array-like object - -#### isCopy(x, y) _(es5-ext/object/is-copy)_ - -Two values are considered a copy of same value when all of their own enumerable properties have same values. - -#### isCopyDeep(x, y) _(es5-ext/object/is-copy-deep)_ - -Deep comparision of objects - -#### isEmpty(obj) _(es5-ext/object/is-empty)_ - -True if object doesn't have any own enumerable property - -#### isObject(arg) _(es5-ext/object/is-object)_ - -Whether value is not primitive - -#### isPlainObject(arg) _(es5-ext/object/is-plain-object)_ - -Whether object is plain object, its protototype should be Object.prototype and it cannot be host object. - -#### keyOf(obj, searchValue) _(es5-ext/object/key-of)_ - -Search object for value - -#### keys(obj) _(es5-ext/object/keys)_ - -[_Updated with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.keys). -ES6's version of `keys`, doesn't throw on primitive input - -#### map(obj, cb[, thisArg]) _(es5-ext/object/map)_ - -Analogous to Array.prototype.map. Creates a new object with properties which values are results of calling a provided function on every key-value pair in this object. - -#### mapKeys(obj, cb[, thisArg]) _(es5-ext/object/map-keys)_ - -Create new object with same values, but remapped keys - -#### mixin(target, source) _(es5-ext/object/mixin)_ - -Extend _target_ by all own properties of other objects. Properties found in both objects will be overwritten (unless they're not configurable and cannot be overwritten). -_It was for a moment part of ECMAScript 6 draft._ - -#### mixinPrototypes(target, …source]) _(es5-ext/object/mixin-prototypes)_ - -Extends _target_, with all source and source's prototype properties. -Useful as an alternative for `setPrototypeOf` in environments in which it cannot be shimmed (no `__proto__` support). - -#### normalizeOptions(options) _(es5-ext/object/normalize-options)_ - -Normalizes options object into flat plain object. - -Useful for functions in which we either need to keep options object for future reference or need to modify it for internal use. - -- It never returns input `options` object back (always a copy is created) -- `options` can be undefined in such case empty plain object is returned. -- Copies all enumerable properties found down prototype chain. - -#### primitiveSet([…names]) _(es5-ext/object/primitive-set)_ - -Creates `null` prototype based plain object, and sets on it all property names provided in arguments to true. - -#### safeTraverse(obj[, …names]) _(es5-ext/object/safe-traverse)_ - -Safe navigation of object properties. See http://wiki.ecmascript.org/doku.php?id=strawman:existential_operator - -#### serialize(value) _(es5-ext/object/serialize)_ - -Serialize value into string. Differs from [JSON.stringify](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/JSON/stringify) that it serializes also dates, functions and regular expresssions. - -#### setPrototypeOf(object, proto) _(es5-ext/object/set-prototype-of)_ - -[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-object.setprototypeof). -If native version is not provided, it depends on existence of `__proto__` functionality, if it's missing, `null` instead of function is exposed. - -#### some(obj, cb[, thisArg[, compareFn]]) _(es5-ext/object/some)_ - -Analogous to Array.prototype.some Returns true if any key-value pair satisfies the provided -testing function. -Optionally _compareFn_ can be provided which assures that keys are tested in given order. If provided _compareFn_ is equal to `true`, then order is alphabetical (by key). - -#### toArray(obj[, cb[, thisArg[, compareFn]]]) _(es5-ext/object/to-array)_ - -Creates an array of results of calling a provided function on every key-value pair in this object. -Optionally _compareFn_ can be provided which assures that results are added in given order. If provided _compareFn_ is equal to `true`, then order is alphabetical (by key). - -#### unserialize(str) _(es5-ext/object/unserialize)_ - -Userializes value previously serialized with [serialize](#serializevalue-es5-extobjectserialize) - -#### validCallable(x) _(es5-ext/object/valid-callable)_ - -If given object is not callable throw TypeError in other case return it. - -#### validObject(x) _(es5-ext/object/valid-object)_ - -Throws error if given value is not an object, otherwise it is returned. - -#### validValue(x) _(es5-ext/object/valid-value)_ - -Throws error if given value is `null` or `undefined`, otherwise returns value. - -### Promise Prototype extensions - -#### promise.finally(onFinally) _(es5-ext/promise/#/finally)_ - -[_Introduced with ECMAScript 2018_](https://tc39.github.io/ecma262/#sec-promise.prototype.finally). - -### RegExp Constructor extensions - -#### escape(str) _(es5-ext/reg-exp/escape)_ - -Escapes string to be used in regular expression - -#### isRegExp(x) _(es5-ext/reg-exp/is-reg-exp)_ - -Whether object is regular expression - -#### validRegExp(x) _(es5-ext/reg-exp/valid-reg-exp)_ - -If object is regular expression it is returned, otherwise TypeError is thrown. - -### RegExp Prototype extensions - -#### re.isSticky(x) _(es5-ext/reg-exp/#/is-sticky)_ - -Whether regular expression has `sticky` flag. - -It's to be used as counterpart to [regExp.sticky](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-get-regexp.prototype.sticky) if it's not implemented. - -#### re.isUnicode(x) _(es5-ext/reg-exp/#/is-unicode)_ - -Whether regular expression has `unicode` flag. - -It's to be used as counterpart to [regExp.unicode](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-get-regexp.prototype.unicode) if it's not implemented. - -#### re.match(string) _(es5-ext/reg-exp/#/match)_ - -[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-regexp.prototype.match). - -#### re.replace(string, replaceValue) _(es5-ext/reg-exp/#/replace)_ - -[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-regexp.prototype.replace). - -#### re.search(string) _(es5-ext/reg-exp/#/search)_ - -[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-regexp.prototype.search). - -#### re.split(string) _(es5-ext/reg-exp/#/search)_ - -[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-regexp.prototype.split). - -#### re.sticky _(es5-ext/reg-exp/#/sticky/implement)_ - -[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-regexp.prototype.sticky). -It's a getter, so only `implement` and `is-implemented` modules are provided. - -#### re.unicode _(es5-ext/reg-exp/#/unicode/implement)_ - -[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-regexp.prototype.unicode). -It's a getter, so only `implement` and `is-implemented` modules are provided. - -### String Constructor extensions - -#### formatMethod(fMap) _(es5-ext/string/format-method)_ - -Creates format method. It's used e.g. to create `Date.prototype.format` method - -#### fromCodePoint([…codePoints]) _(es5-ext/string/from-code-point)_ - -[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-string.fromcodepoint) - -#### isString(x) _(es5-ext/string/is-string)_ - -Whether object is string - -#### randomUniq() _(es5-ext/string/random-uniq)_ - -Returns randomly generated id, with guarantee of local uniqueness (no same id will be returned twice) - -#### raw(callSite[, …substitutions]) _(es5-ext/string/raw)_ - -[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-string.raw) - -### String Prototype extensions - -#### str.at(pos) _(es5-ext/string/#/at)_ - -_Proposed for ECMAScript 6/7 standard, but not (yet) in a draft_ - -Returns a string at given position in Unicode-safe manner. -Based on [implementation by Mathias Bynens](https://github.com/mathiasbynens/String.prototype.at). - -#### str.camelToHyphen() _(es5-ext/string/#/camel-to-hyphen)_ - -Convert camelCase string to hyphen separated, e.g. one-two-three -> oneTwoThree. -Useful when converting names from js property convention into filename convention. - -#### str.capitalize() _(es5-ext/string/#/capitalize)_ - -Capitalize first character of a string - -#### str.caseInsensitiveCompare(str) _(es5-ext/string/#/case-insensitive-compare)_ - -Case insensitive compare - -#### str.codePointAt(pos) _(es5-ext/string/#/code-point-at)_ - -[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-string.prototype.codepointat) - -Based on [implementation by Mathias Bynens](https://github.com/mathiasbynens/String.prototype.codePointAt). - -#### str.contains(searchString[, position]) _(es5-ext/string/#/contains)_ - -[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-string.prototype.contains) - -Whether string contains given string. - -#### str.endsWith(searchString[, endPosition]) _(es5-ext/string/#/ends-with)_ - -[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-string.prototype.endswith). -Whether strings ends with given string - -#### str.hyphenToCamel() _(es5-ext/string/#/hyphen-to-camel)_ - -Convert hyphen separated string to camelCase, e.g. one-two-three -> oneTwoThree. -Useful when converting names from filename convention to js property name convention. - -#### str.indent(str[, count]) _(es5-ext/string/#/indent)_ - -Indents each line with provided _str_ (if _count_ given then _str_ is repeated _count_ times). - -#### str.last() _(es5-ext/string/#/last)_ - -Return last character - -#### str.normalize([form]) _(es5-ext/string/#/normalize)_ - -[_Introduced with ECMAScript 6_](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/normalize). -Returns the Unicode Normalization Form of a given string. -Based on Matsuza's version. Code used for integrated shim can be found at [github.com/walling/unorm](https://github.com/walling/unorm/blob/master/lib/unorm.js) - -#### str.pad(fill[, length]) _(es5-ext/string/#/pad)_ - -Pad string with _fill_. -If _length_ si given than _fill_ is reapated _length_ times. -If _length_ is negative then pad is applied from right. - -#### str.repeat(n) _(es5-ext/string/#/repeat)_ - -[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-string.prototype.repeat). -Repeat given string _n_ times - -#### str.plainReplace(search, replace) _(es5-ext/string/#/plain-replace)_ - -Simple `replace` version. Doesn't support regular expressions. Replaces just first occurrence of search string. Doesn't support insert patterns, therefore it is safe to replace text with text obtained programmatically (there's no need for additional _\$_ characters escape in such case). - -#### str.plainReplaceAll(search, replace) _(es5-ext/string/#/plain-replace-all)_ - -Simple `replace` version. Doesn't support regular expressions. Replaces all occurrences of search string. Doesn't support insert patterns, therefore it is safe to replace text with text obtained programmatically (there's no need for additional _\$_ characters escape in such case). - -#### str.startsWith(searchString[, position]) _(es5-ext/string/#/starts-with)_ - -[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-string.prototype.startswith). -Whether strings starts with given string - -#### str[@@iterator] _(es5-ext/string/#/@@iterator)_ - -[_Introduced with ECMAScript 6_](http://people.mozilla.org/~jorendorff/es6-draft.html#sec-string.prototype-@@iterator). -Returns iterator object which traverses all string characters (with respect to unicode symbols) - -### Tests - - $ npm test - -## Security contact information - -To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). Tidelift will coordinate the fix and disclosure. - -## es5-ext for enterprise - -Available as part of the Tidelift Subscription - -The maintainers of es5-ext and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/npm-es5-ext?utm_source=npm-es5-ext&utm_medium=referral&utm_campaign=enterprise&utm_term=repo) - -[build-image]: https://github.com/medikoo/es5-ext/workflows/Integrate/badge.svg -[build-url]: https://github.com/medikoo/es5-ext/actions?query=workflow%3AIntegrate -[cov-image]: https://img.shields.io/codecov/c/github/medikoo/es5-ext.svg -[cov-url]: https://codecov.io/gh/medikoo/es5-ext -[npm-image]: https://img.shields.io/npm/v/es5-ext.svg -[npm-url]: https://www.npmjs.com/package/es5-ext diff --git a/node_modules/es5-ext/_postinstall.js b/node_modules/es5-ext/_postinstall.js deleted file mode 100755 index f11ce4c1..00000000 --- a/node_modules/es5-ext/_postinstall.js +++ /dev/null @@ -1,73 +0,0 @@ -#!/usr/bin/env node - -// Broadcasts "Call for peace" message when package is installed in Russia, otherwise no-op - -"use strict"; - -try { - if ( - [ - "Asia/Anadyr", "Asia/Barnaul", "Asia/Chita", "Asia/Irkutsk", "Asia/Kamchatka", - "Asia/Khandyga", "Asia/Krasnoyarsk", "Asia/Magadan", "Asia/Novokuznetsk", - "Asia/Novosibirsk", "Asia/Omsk", "Asia/Sakhalin", "Asia/Srednekolymsk", "Asia/Tomsk", - "Asia/Ust-Nera", "Asia/Vladivostok", "Asia/Yakutsk", "Asia/Yekaterinburg", - "Europe/Astrakhan", "Europe/Kaliningrad", "Europe/Kirov", "Europe/Moscow", - "Europe/Samara", "Europe/Saratov", "Europe/Simferopol", "Europe/Ulyanovsk", - "Europe/Volgograd", "W-SU" - ].indexOf(new Intl.DateTimeFormat().resolvedOptions().timeZone) === -1 - ) { - return; - } - - var bold = function (msg) { return "\x1b[97m\x1b[1m" + msg + "\x1b[22m\x1b[37m"; }; - - var flags = function () { - return ( - "🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦" + - " 🇷🇺 🇺🇦 🇷🇺 🇺🇦 🇷🇺 🇺🇦" - ); - }; - - process._rawDebug( - [ - "", flags(), "", - "\x1b[37m24 февраля " + - bold("Россия напала на Украину") + - ", что уже стало причиной " + - bold("15000+ жертв среди российских военных") + - " и примерно " + - bold("10000+ - среди украинских") + - ", а также " + - bold("5000+ убитых граждан, в том числе 300+ детей") + - ".", - "", - "Народ Украины всеобще мобилизован и готов защищать свою страну от вражеского" + - " вторжения. " + - bold( - "91% украинцев полностью поддерживает своего президента Владимира Зеленского" - ) + - " и его ответные действия на нападение России.", - "", - "Весь мир осудил необоснованное вторжение и решил ввести " + - bold("невиданные ранее санкции против России") + - ". С каждым новым днем они будут ощущаться все сильнее и сильнее среди мирных" + - " граждан.", - "", - "В то же время, " + - bold("российское правительство ограничивает доступ граждан к внешней информации") + - ", насаждая однобокие формулировки и версии происходящего.", - "", "В качестве надежного источника информации загрузите безопасный браузер Tor:", "", - bold( - "https://forum.torproject.net/t/tor-blocked-in-russia-how-to-circumvent-censorship/982" - ), - "", "И посетите:", "", - bold( - "https://www.bbcweb3hytmzhn5d532owbu6oqadra5z3ar726vq5kgwwn6aucdccrad.onion/russian" - ), - bold("https://www.dwnewsgngmhlplxy6o2twtfgjnrnjxbegbwqx6wnotdhkzt562tszfid.onion/ru/"), - "", flags(), "" - ].join("\n") - ); -} catch (error) { - // ignore -} diff --git a/node_modules/es5-ext/array/#/@@iterator/implement.js b/node_modules/es5-ext/array/#/@@iterator/implement.js deleted file mode 100644 index 8073f2bc..00000000 --- a/node_modules/es5-ext/array/#/@@iterator/implement.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -if (!require("./is-implemented")()) { - Object.defineProperty(Array.prototype, require("es6-symbol").iterator, { - value: require("./shim"), - configurable: true, - enumerable: false, - writable: true - }); -} diff --git a/node_modules/es5-ext/array/#/@@iterator/index.js b/node_modules/es5-ext/array/#/@@iterator/index.js deleted file mode 100644 index 1d0a3892..00000000 --- a/node_modules/es5-ext/array/#/@@iterator/index.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; - -module.exports = require("./is-implemented")() - ? Array.prototype[require("es6-symbol").iterator] - : require("./shim"); diff --git a/node_modules/es5-ext/array/#/@@iterator/is-implemented.js b/node_modules/es5-ext/array/#/@@iterator/is-implemented.js deleted file mode 100644 index 6445c04e..00000000 --- a/node_modules/es5-ext/array/#/@@iterator/is-implemented.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; - -var iteratorSymbol = require("es6-symbol").iterator; - -module.exports = function () { - var arr = ["foo", 1], iterator, result; - if (typeof arr[iteratorSymbol] !== "function") return false; - iterator = arr[iteratorSymbol](); - if (!iterator) return false; - if (typeof iterator.next !== "function") return false; - result = iterator.next(); - if (!result) return false; - if (result.value !== "foo") return false; - if (result.done !== false) return false; - return true; -}; diff --git a/node_modules/es5-ext/array/#/@@iterator/shim.js b/node_modules/es5-ext/array/#/@@iterator/shim.js deleted file mode 100644 index 307b1c0a..00000000 --- a/node_modules/es5-ext/array/#/@@iterator/shim.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("../values/shim"); diff --git a/node_modules/es5-ext/array/#/_compare-by-length.js b/node_modules/es5-ext/array/#/_compare-by-length.js deleted file mode 100644 index db5a0400..00000000 --- a/node_modules/es5-ext/array/#/_compare-by-length.js +++ /dev/null @@ -1,7 +0,0 @@ -// Used internally to sort array of lists by length - -"use strict"; - -var toPosInt = require("../../number/to-pos-integer"); - -module.exports = function (arr1, arr2) { return toPosInt(arr1.length) - toPosInt(arr2.length); }; diff --git a/node_modules/es5-ext/array/#/binary-search.js b/node_modules/es5-ext/array/#/binary-search.js deleted file mode 100644 index bdabe272..00000000 --- a/node_modules/es5-ext/array/#/binary-search.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; - -var toPosInt = require("../../number/to-pos-integer") - , callable = require("../../object/valid-callable") - , value = require("../../object/valid-value") - , floor = Math.floor; - -module.exports = function (compareFn) { - var length, low, high, middle; - - value(this); - callable(compareFn); - - length = toPosInt(this.length); - low = 0; - high = length - 1; - - while (low <= high) { - middle = floor((low + high) / 2); - if (compareFn(this[middle]) < 0) high = middle - 1; - else low = middle + 1; - } - - if (high < 0) return 0; - if (high >= length) return length - 1; - return high; -}; diff --git a/node_modules/es5-ext/array/#/clear.js b/node_modules/es5-ext/array/#/clear.js deleted file mode 100644 index fd539c9b..00000000 --- a/node_modules/es5-ext/array/#/clear.js +++ /dev/null @@ -1,12 +0,0 @@ -// Inspired by Google Closure: -// http://closure-library.googlecode.com/svn/docs/ -// closure_goog_array_array.js.html#goog.array.clear - -"use strict"; - -var value = require("../../object/valid-value"); - -module.exports = function () { - value(this).length = 0; - return this; -}; diff --git a/node_modules/es5-ext/array/#/compact.js b/node_modules/es5-ext/array/#/compact.js deleted file mode 100644 index 462e100d..00000000 --- a/node_modules/es5-ext/array/#/compact.js +++ /dev/null @@ -1,11 +0,0 @@ -// Inspired by: http://documentcloud.github.com/underscore/#compact - -"use strict"; - -var isValue = require("../../object/is-value"); - -var filter = Array.prototype.filter; - -module.exports = function () { - return filter.call(this, function (val) { return isValue(val); }); -}; diff --git a/node_modules/es5-ext/array/#/concat/implement.js b/node_modules/es5-ext/array/#/concat/implement.js deleted file mode 100644 index 714a3c1b..00000000 --- a/node_modules/es5-ext/array/#/concat/implement.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -if (!require("./is-implemented")()) { - Object.defineProperty(Array.prototype, "concat", { - value: require("./shim"), - configurable: true, - enumerable: false, - writable: true - }); -} diff --git a/node_modules/es5-ext/array/#/concat/index.js b/node_modules/es5-ext/array/#/concat/index.js deleted file mode 100644 index deac0eee..00000000 --- a/node_modules/es5-ext/array/#/concat/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./is-implemented")() ? Array.prototype.concat : require("./shim"); diff --git a/node_modules/es5-ext/array/#/concat/is-implemented.js b/node_modules/es5-ext/array/#/concat/is-implemented.js deleted file mode 100644 index ba5a1542..00000000 --- a/node_modules/es5-ext/array/#/concat/is-implemented.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; - -var SubArray = require("../../_sub-array-dummy-safe"); - -module.exports = function () { return new SubArray().concat("foo") instanceof SubArray; }; diff --git a/node_modules/es5-ext/array/#/concat/shim.js b/node_modules/es5-ext/array/#/concat/shim.js deleted file mode 100644 index e4cfacca..00000000 --- a/node_modules/es5-ext/array/#/concat/shim.js +++ /dev/null @@ -1,44 +0,0 @@ -"use strict"; - -var isPlainArray = require("../../is-plain-array") - , toPosInt = require("../../../number/to-pos-integer") - , isObject = require("../../../object/is-object") - , isConcatSpreadable = require("es6-symbol").isConcatSpreadable - , isArray = Array.isArray - , concat = Array.prototype.concat - , forEach = Array.prototype.forEach - , isSpreadable; - -isSpreadable = function (value) { - if (!value) return false; - if (!isObject(value)) return false; - if (value[isConcatSpreadable] !== undefined) { - return Boolean(value[isConcatSpreadable]); - } - return isArray(value); -}; - -// eslint-disable-next-line no-unused-vars -module.exports = function (item /*, …items*/) { - var result; - if (!this || !isArray(this) || isPlainArray(this)) { - return concat.apply(this, arguments); - } - result = new this.constructor(); - if (isSpreadable(this)) { - forEach.call(this, function (val, i) { result[i] = val; }); - } else { - result[0] = this; - } - forEach.call(arguments, function (arg) { - var base; - if (isSpreadable(arg)) { - base = result.length; - result.length += toPosInt(arg.length); - forEach.call(arg, function (val, i) { result[base + i] = val; }); - return; - } - result.push(arg); - }); - return result; -}; diff --git a/node_modules/es5-ext/array/#/contains.js b/node_modules/es5-ext/array/#/contains.js deleted file mode 100644 index 6dda9c4b..00000000 --- a/node_modules/es5-ext/array/#/contains.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -var indexOf = require("./e-index-of"); - -module.exports = function (searchElement /*, position*/) { - return indexOf.call(this, searchElement, arguments[1]) > -1; -}; diff --git a/node_modules/es5-ext/array/#/copy-within/implement.js b/node_modules/es5-ext/array/#/copy-within/implement.js deleted file mode 100644 index 4658fcb4..00000000 --- a/node_modules/es5-ext/array/#/copy-within/implement.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -if (!require("./is-implemented")()) { - Object.defineProperty(Array.prototype, "copyWithin", { - value: require("./shim"), - configurable: true, - enumerable: false, - writable: true - }); -} diff --git a/node_modules/es5-ext/array/#/copy-within/index.js b/node_modules/es5-ext/array/#/copy-within/index.js deleted file mode 100644 index 37db0ece..00000000 --- a/node_modules/es5-ext/array/#/copy-within/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./is-implemented")() ? Array.prototype.copyWithin : require("./shim"); diff --git a/node_modules/es5-ext/array/#/copy-within/is-implemented.js b/node_modules/es5-ext/array/#/copy-within/is-implemented.js deleted file mode 100644 index 40c499e6..00000000 --- a/node_modules/es5-ext/array/#/copy-within/is-implemented.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -module.exports = function () { - var arr = [1, 2, 3, 4, 5]; - if (typeof arr.copyWithin !== "function") return false; - return String(arr.copyWithin(1, 3)) === "1,4,5,4,5"; -}; diff --git a/node_modules/es5-ext/array/#/copy-within/shim.js b/node_modules/es5-ext/array/#/copy-within/shim.js deleted file mode 100644 index aad220ca..00000000 --- a/node_modules/es5-ext/array/#/copy-within/shim.js +++ /dev/null @@ -1,45 +0,0 @@ -// Taken from: https://github.com/paulmillr/es6-shim/ - -"use strict"; - -var toInteger = require("../../../number/to-integer") - , toPosInt = require("../../../number/to-pos-integer") - , validValue = require("../../../object/valid-value") - , objHasOwnProperty = Object.prototype.hasOwnProperty - , max = Math.max - , min = Math.min; - -module.exports = function (target, start /*, end*/) { - var arr = validValue(this) - , end = arguments[2] - , length = toPosInt(arr.length) - , to - , from - , fin - , count - , direction; - - target = toInteger(target); - start = toInteger(start); - end = end === undefined ? length : toInteger(end); - - to = target < 0 ? max(length + target, 0) : min(target, length); - from = start < 0 ? max(length + start, 0) : min(start, length); - fin = end < 0 ? max(length + end, 0) : min(end, length); - count = min(fin - from, length - to); - direction = 1; - - if (from < to && to < from + count) { - direction = -1; - from += count - 1; - to += count - 1; - } - while (count > 0) { - if (objHasOwnProperty.call(arr, from)) arr[to] = arr[from]; - else delete arr[from]; - from += direction; - to += direction; - count -= 1; - } - return arr; -}; diff --git a/node_modules/es5-ext/array/#/diff.js b/node_modules/es5-ext/array/#/diff.js deleted file mode 100644 index 002e6a33..00000000 --- a/node_modules/es5-ext/array/#/diff.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; - -var value = require("../../object/valid-value") - , contains = require("./contains") - , filter = Array.prototype.filter; - -module.exports = function (other) { - value(this); - value(other); - return filter.call(this, function (item) { return !contains.call(other, item); }); -}; diff --git a/node_modules/es5-ext/array/#/e-index-of.js b/node_modules/es5-ext/array/#/e-index-of.js deleted file mode 100644 index 8b070117..00000000 --- a/node_modules/es5-ext/array/#/e-index-of.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; - -var numberIsNaN = require("../../number/is-nan") - , toPosInt = require("../../number/to-pos-integer") - , value = require("../../object/valid-value") - , indexOf = Array.prototype.indexOf - , objHasOwnProperty = Object.prototype.hasOwnProperty - , abs = Math.abs - , floor = Math.floor; - -module.exports = function (searchElement /*, fromIndex*/) { - var i, length, fromIndex, val; - if (!numberIsNaN(searchElement)) return indexOf.apply(this, arguments); - - length = toPosInt(value(this).length); - fromIndex = arguments[1]; - if (isNaN(fromIndex)) fromIndex = 0; - else if (fromIndex >= 0) fromIndex = floor(fromIndex); - else fromIndex = toPosInt(this.length) - floor(abs(fromIndex)); - - for (i = fromIndex; i < length; ++i) { - if (objHasOwnProperty.call(this, i)) { - val = this[i]; - if (numberIsNaN(val)) return i; // Jslint: ignore - } - } - return -1; -}; diff --git a/node_modules/es5-ext/array/#/e-last-index-of.js b/node_modules/es5-ext/array/#/e-last-index-of.js deleted file mode 100644 index 15dbe05b..00000000 --- a/node_modules/es5-ext/array/#/e-last-index-of.js +++ /dev/null @@ -1,31 +0,0 @@ -"use strict"; - -var numberIsNaN = require("../../number/is-nan") - , toPosInt = require("../../number/to-pos-integer") - , value = require("../../object/valid-value") - , lastIndexOf = Array.prototype.lastIndexOf - , objHasOwnProperty = Object.prototype.hasOwnProperty - , abs = Math.abs - , floor = Math.floor; - -module.exports = function (searchElement /*, fromIndex*/) { - var i, fromIndex, val; - if (!numberIsNaN(searchElement)) { - // Jslint: ignore - return lastIndexOf.apply(this, arguments); - } - - value(this); - fromIndex = arguments[1]; - if (isNaN(fromIndex)) fromIndex = toPosInt(this.length) - 1; - else if (fromIndex >= 0) fromIndex = floor(fromIndex); - else fromIndex = toPosInt(this.length) - floor(abs(fromIndex)); - - for (i = fromIndex; i >= 0; --i) { - if (objHasOwnProperty.call(this, i)) { - val = this[i]; - if (numberIsNaN(val)) return i; // Jslint: ignore - } - } - return -1; -}; diff --git a/node_modules/es5-ext/array/#/entries/implement.js b/node_modules/es5-ext/array/#/entries/implement.js deleted file mode 100644 index b89ce44b..00000000 --- a/node_modules/es5-ext/array/#/entries/implement.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -if (!require("./is-implemented")()) { - Object.defineProperty(Array.prototype, "entries", { - value: require("./shim"), - configurable: true, - enumerable: false, - writable: true - }); -} diff --git a/node_modules/es5-ext/array/#/entries/index.js b/node_modules/es5-ext/array/#/entries/index.js deleted file mode 100644 index e7588f71..00000000 --- a/node_modules/es5-ext/array/#/entries/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./is-implemented")() ? Array.prototype.entries : require("./shim"); diff --git a/node_modules/es5-ext/array/#/entries/is-implemented.js b/node_modules/es5-ext/array/#/entries/is-implemented.js deleted file mode 100644 index 335f1c20..00000000 --- a/node_modules/es5-ext/array/#/entries/is-implemented.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; - -module.exports = function () { - var arr = [1, "foo"], iterator, result; - if (typeof arr.entries !== "function") return false; - iterator = arr.entries(); - if (!iterator) return false; - if (typeof iterator.next !== "function") return false; - result = iterator.next(); - if (!result || !result.value) return false; - if (result.value[0] !== 0) return false; - if (result.value[1] !== 1) return false; - if (result.done !== false) return false; - return true; -}; diff --git a/node_modules/es5-ext/array/#/entries/shim.js b/node_modules/es5-ext/array/#/entries/shim.js deleted file mode 100644 index f47af86e..00000000 --- a/node_modules/es5-ext/array/#/entries/shim.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; - -var ArrayIterator = require("es6-iterator/array"); -module.exports = function () { return new ArrayIterator(this, "key+value"); }; diff --git a/node_modules/es5-ext/array/#/exclusion.js b/node_modules/es5-ext/array/#/exclusion.js deleted file mode 100644 index 4e9e71d8..00000000 --- a/node_modules/es5-ext/array/#/exclusion.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; - -var value = require("../../object/valid-value") - , aFrom = require("../from") - , toArray = require("../to-array") - , contains = require("./contains") - , byLength = require("./_compare-by-length") - , filter = Array.prototype.filter - , push = Array.prototype.push; - -module.exports = function (/* …lists*/) { - var lists, seen, result; - if (!arguments.length) return aFrom(this); - push.apply((lists = [this]), arguments); - lists.forEach(value); - seen = []; - result = []; - lists.sort(byLength).forEach(function (list) { - result = result - .filter(function (item) { return !contains.call(list, item); }) - .concat(filter.call(list, function (item) { return !contains.call(seen, item); })); - push.apply(seen, toArray(list)); - }); - return result; -}; diff --git a/node_modules/es5-ext/array/#/fill/implement.js b/node_modules/es5-ext/array/#/fill/implement.js deleted file mode 100644 index 0efad163..00000000 --- a/node_modules/es5-ext/array/#/fill/implement.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -if (!require("./is-implemented")()) { - Object.defineProperty(Array.prototype, "fill", { - value: require("./shim"), - configurable: true, - enumerable: false, - writable: true - }); -} diff --git a/node_modules/es5-ext/array/#/fill/index.js b/node_modules/es5-ext/array/#/fill/index.js deleted file mode 100644 index 6a66ae14..00000000 --- a/node_modules/es5-ext/array/#/fill/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./is-implemented")() ? Array.prototype.fill : require("./shim"); diff --git a/node_modules/es5-ext/array/#/fill/is-implemented.js b/node_modules/es5-ext/array/#/fill/is-implemented.js deleted file mode 100644 index 5d6d02e1..00000000 --- a/node_modules/es5-ext/array/#/fill/is-implemented.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -module.exports = function () { - var arr = [1, 2, 3, 4, 5, 6]; - if (typeof arr.fill !== "function") return false; - return String(arr.fill(-1, -3)) === "1,2,3,-1,-1,-1"; -}; diff --git a/node_modules/es5-ext/array/#/fill/shim.js b/node_modules/es5-ext/array/#/fill/shim.js deleted file mode 100644 index 0040bf81..00000000 --- a/node_modules/es5-ext/array/#/fill/shim.js +++ /dev/null @@ -1,25 +0,0 @@ -// Taken from: https://github.com/paulmillr/es6-shim/ - -"use strict"; - -var toInteger = require("../../../number/to-integer") - , toPosInt = require("../../../number/to-pos-integer") - , validValue = require("../../../object/valid-value") - , max = Math.max - , min = Math.min; - -module.exports = function (value /*, start, end*/) { - var arr = validValue(this) - , start = arguments[1] - , end = arguments[2] - , length = toPosInt(arr.length) - , relativeStart - , i; - - start = start === undefined ? 0 : toInteger(start); - end = end === undefined ? length : toInteger(end); - - relativeStart = start < 0 ? max(length + start, 0) : min(start, length); - for (i = relativeStart; i < length && i < end; ++i) arr[i] = value; - return arr; -}; diff --git a/node_modules/es5-ext/array/#/filter/implement.js b/node_modules/es5-ext/array/#/filter/implement.js deleted file mode 100644 index 76f4a5ee..00000000 --- a/node_modules/es5-ext/array/#/filter/implement.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -if (!require("./is-implemented")()) { - Object.defineProperty(Array.prototype, "filter", { - value: require("./shim"), - configurable: true, - enumerable: false, - writable: true - }); -} diff --git a/node_modules/es5-ext/array/#/filter/index.js b/node_modules/es5-ext/array/#/filter/index.js deleted file mode 100644 index 9a25c9be..00000000 --- a/node_modules/es5-ext/array/#/filter/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./is-implemented")() ? Array.prototype.filter : require("./shim"); diff --git a/node_modules/es5-ext/array/#/filter/is-implemented.js b/node_modules/es5-ext/array/#/filter/is-implemented.js deleted file mode 100644 index 6082513b..00000000 --- a/node_modules/es5-ext/array/#/filter/is-implemented.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; - -var SubArray = require("../../_sub-array-dummy-safe") - , pass = function () { return true; }; - -module.exports = function () { return new SubArray().filter(pass) instanceof SubArray; }; diff --git a/node_modules/es5-ext/array/#/filter/shim.js b/node_modules/es5-ext/array/#/filter/shim.js deleted file mode 100644 index 38304e4b..00000000 --- a/node_modules/es5-ext/array/#/filter/shim.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; - -var isPlainArray = require("../../is-plain-array") - , callable = require("../../../object/valid-callable") - , isArray = Array.isArray - , filter = Array.prototype.filter - , forEach = Array.prototype.forEach - , call = Function.prototype.call; - -module.exports = function (callbackFn /*, thisArg*/) { - var result, thisArg, i; - if (!this || !isArray(this) || isPlainArray(this)) { - return filter.apply(this, arguments); - } - callable(callbackFn); - thisArg = arguments[1]; - result = new this.constructor(); - i = 0; - forEach.call(this, function (val, j, self) { - if (call.call(callbackFn, thisArg, val, j, self)) result[i++] = val; - }); - return result; -}; diff --git a/node_modules/es5-ext/array/#/find-index/implement.js b/node_modules/es5-ext/array/#/find-index/implement.js deleted file mode 100644 index 4e14e292..00000000 --- a/node_modules/es5-ext/array/#/find-index/implement.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -if (!require("./is-implemented")()) { - Object.defineProperty(Array.prototype, "findIndex", { - value: require("./shim"), - configurable: true, - enumerable: false, - writable: true - }); -} diff --git a/node_modules/es5-ext/array/#/find-index/index.js b/node_modules/es5-ext/array/#/find-index/index.js deleted file mode 100644 index 5e07d8de..00000000 --- a/node_modules/es5-ext/array/#/find-index/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./is-implemented")() ? Array.prototype.findIndex : require("./shim"); diff --git a/node_modules/es5-ext/array/#/find-index/is-implemented.js b/node_modules/es5-ext/array/#/find-index/is-implemented.js deleted file mode 100644 index 72aa28f6..00000000 --- a/node_modules/es5-ext/array/#/find-index/is-implemented.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; - -var fn = function (value) { return value > 3; }; - -module.exports = function () { - var arr = [1, 2, 3, 4, 5, 6]; - if (typeof arr.findIndex !== "function") return false; - return arr.findIndex(fn) === 3; -}; diff --git a/node_modules/es5-ext/array/#/find-index/shim.js b/node_modules/es5-ext/array/#/find-index/shim.js deleted file mode 100644 index bc82827a..00000000 --- a/node_modules/es5-ext/array/#/find-index/shim.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; - -var callable = require("../../../object/valid-callable") - , ensureValue = require("../../../object/valid-value") - , some = Array.prototype.some - , apply = Function.prototype.apply; - -module.exports = function (predicate /*, thisArg*/) { - var k, self; - self = Object(ensureValue(this)); - callable(predicate); - - return some.call( - self, - function (value, index) { - if (apply.call(predicate, this, arguments)) { - k = index; - return true; - } - return false; - }, - arguments[1] - ) - ? k - : -1; -}; diff --git a/node_modules/es5-ext/array/#/find/implement.js b/node_modules/es5-ext/array/#/find/implement.js deleted file mode 100644 index 66035a59..00000000 --- a/node_modules/es5-ext/array/#/find/implement.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -if (!require("./is-implemented")()) { - Object.defineProperty(Array.prototype, "find", { - value: require("./shim"), - configurable: true, - enumerable: false, - writable: true - }); -} diff --git a/node_modules/es5-ext/array/#/find/index.js b/node_modules/es5-ext/array/#/find/index.js deleted file mode 100644 index 2f9d0d64..00000000 --- a/node_modules/es5-ext/array/#/find/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./is-implemented")() ? Array.prototype.find : require("./shim"); diff --git a/node_modules/es5-ext/array/#/find/is-implemented.js b/node_modules/es5-ext/array/#/find/is-implemented.js deleted file mode 100644 index 8fdacb12..00000000 --- a/node_modules/es5-ext/array/#/find/is-implemented.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; - -var fn = function (value) { return value > 3; }; - -module.exports = function () { - var arr = [1, 2, 3, 4, 5, 6]; - if (typeof arr.find !== "function") return false; - return arr.find(fn) === 4; -}; diff --git a/node_modules/es5-ext/array/#/find/shim.js b/node_modules/es5-ext/array/#/find/shim.js deleted file mode 100644 index c45a9380..00000000 --- a/node_modules/es5-ext/array/#/find/shim.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; - -var findIndex = require("../find-index/shim"); - -// eslint-disable-next-line no-unused-vars -module.exports = function (predicate /*, thisArg*/) { - var index = findIndex.apply(this, arguments); - return index === -1 ? undefined : this[index]; -}; diff --git a/node_modules/es5-ext/array/#/first-index.js b/node_modules/es5-ext/array/#/first-index.js deleted file mode 100644 index 19bff541..00000000 --- a/node_modules/es5-ext/array/#/first-index.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; - -var toPosInt = require("../../number/to-pos-integer") - , value = require("../../object/valid-value") - , objHasOwnProperty = Object.prototype.hasOwnProperty; - -module.exports = function () { - var i, length; - if (!(length = toPosInt(value(this).length))) return null; - i = 0; - while (!objHasOwnProperty.call(this, i)) { - if (++i === length) return null; - } - return i; -}; diff --git a/node_modules/es5-ext/array/#/first.js b/node_modules/es5-ext/array/#/first.js deleted file mode 100644 index ca76833b..00000000 --- a/node_modules/es5-ext/array/#/first.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; - -var firstIndex = require("./first-index"); - -module.exports = function () { - var i; - if ((i = firstIndex.call(this)) !== null) return this[i]; - return undefined; -}; diff --git a/node_modules/es5-ext/array/#/flatten.js b/node_modules/es5-ext/array/#/flatten.js deleted file mode 100644 index 40167274..00000000 --- a/node_modules/es5-ext/array/#/flatten.js +++ /dev/null @@ -1,40 +0,0 @@ -// Stack grow safe implementation - -"use strict"; - -var ensureValue = require("../../object/valid-value") - , isArray = Array.isArray - , objHasOwnProperty = Object.prototype.hasOwnProperty; - -module.exports = function () { - var input = ensureValue(this), index = 0, remaining, remainingIndexes, length, i, result = []; - // Jslint: ignore - main: while (input) { - length = input.length; - for (i = index; i < length; ++i) { - if (!objHasOwnProperty.call(input, i)) continue; - if (isArray(input[i])) { - if (i < length - 1) { - // eslint-disable-next-line max-depth - if (!remaining) { - remaining = []; - remainingIndexes = []; - } - remaining.push(input); - remainingIndexes.push(i + 1); - } - input = input[i]; - index = 0; - continue main; - } - result.push(input[i]); - } - if (remaining) { - input = remaining.pop(); - index = remainingIndexes.pop(); - } else { - input = null; - } - } - return result; -}; diff --git a/node_modules/es5-ext/array/#/for-each-right.js b/node_modules/es5-ext/array/#/for-each-right.js deleted file mode 100644 index ebf076b1..00000000 --- a/node_modules/es5-ext/array/#/for-each-right.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; - -var toPosInt = require("../../number/to-pos-integer") - , callable = require("../../object/valid-callable") - , value = require("../../object/valid-value") - , objHasOwnProperty = Object.prototype.hasOwnProperty - , call = Function.prototype.call; - -module.exports = function (cb /*, thisArg*/) { - var i, self, thisArg; - - self = Object(value(this)); - callable(cb); - thisArg = arguments[1]; - - for (i = toPosInt(self.length) - 1; i >= 0; --i) { - if (objHasOwnProperty.call(self, i)) call.call(cb, thisArg, self[i], i, self); - } -}; diff --git a/node_modules/es5-ext/array/#/group.js b/node_modules/es5-ext/array/#/group.js deleted file mode 100644 index 711eb586..00000000 --- a/node_modules/es5-ext/array/#/group.js +++ /dev/null @@ -1,28 +0,0 @@ -// Inspired by Underscore's groupBy: -// http://documentcloud.github.com/underscore/#groupBy - -"use strict"; - -var callable = require("../../object/valid-callable") - , value = require("../../object/valid-value") - , forEach = Array.prototype.forEach - , apply = Function.prototype.apply; - -module.exports = function (cb /*, thisArg*/) { - var result; - - value(this); - callable(cb); - - result = Object.create(null); - forEach.call( - this, - function (item) { - var key = apply.call(cb, this, arguments); - if (!result[key]) result[key] = []; - result[key].push(item); - }, - arguments[1] - ); - return result; -}; diff --git a/node_modules/es5-ext/array/#/index.js b/node_modules/es5-ext/array/#/index.js deleted file mode 100644 index 596e83b5..00000000 --- a/node_modules/es5-ext/array/#/index.js +++ /dev/null @@ -1,41 +0,0 @@ -"use strict"; - -module.exports = { - "@@iterator": require("./@@iterator"), - "binarySearch": require("./binary-search"), - "clear": require("./clear"), - "compact": require("./compact"), - "concat": require("./concat"), - "contains": require("./contains"), - "copyWithin": require("./copy-within"), - "diff": require("./diff"), - "eIndexOf": require("./e-index-of"), - "eLastIndexOf": require("./e-last-index-of"), - "entries": require("./entries"), - "exclusion": require("./exclusion"), - "fill": require("./fill"), - "filter": require("./filter"), - "find": require("./find"), - "findIndex": require("./find-index"), - "first": require("./first"), - "firstIndex": require("./first-index"), - "flatten": require("./flatten"), - "forEachRight": require("./for-each-right"), - "keys": require("./keys"), - "group": require("./group"), - "indexesOf": require("./indexes-of"), - "intersection": require("./intersection"), - "isCopy": require("./is-copy"), - "isEmpty": require("./is-empty"), - "isUniq": require("./is-uniq"), - "last": require("./last"), - "lastIndex": require("./last-index"), - "map": require("./map"), - "remove": require("./remove"), - "separate": require("./separate"), - "slice": require("./slice"), - "someRight": require("./some-right"), - "splice": require("./splice"), - "uniq": require("./uniq"), - "values": require("./values") -}; diff --git a/node_modules/es5-ext/array/#/indexes-of.js b/node_modules/es5-ext/array/#/indexes-of.js deleted file mode 100644 index 6c39cd92..00000000 --- a/node_modules/es5-ext/array/#/indexes-of.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; - -var indexOf = require("./e-index-of"); - -module.exports = function (value /*, fromIndex*/) { - var result = [], i, fromIndex = arguments[1]; - while ((i = indexOf.call(this, value, fromIndex)) !== -1) { - result.push(i); - fromIndex = i + 1; - } - return result; -}; diff --git a/node_modules/es5-ext/array/#/intersection.js b/node_modules/es5-ext/array/#/intersection.js deleted file mode 100644 index 7dca9dca..00000000 --- a/node_modules/es5-ext/array/#/intersection.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; - -var value = require("../../object/valid-value") - , contains = require("./contains") - , byLength = require("./_compare-by-length") - , filter = Array.prototype.filter - , push = Array.prototype.push - , slice = Array.prototype.slice; - -module.exports = function (/* …list*/) { - var lists; - if (!arguments.length) slice.call(this); - push.apply((lists = [this]), arguments); - lists.forEach(value); - lists.sort(byLength); - return lists.reduce(function (list1, list2) { - return filter.call(list1, function (item) { return contains.call(list2, item); }); - }); -}; diff --git a/node_modules/es5-ext/array/#/is-copy.js b/node_modules/es5-ext/array/#/is-copy.js deleted file mode 100644 index 1413b95d..00000000 --- a/node_modules/es5-ext/array/#/is-copy.js +++ /dev/null @@ -1,21 +0,0 @@ -"use strict"; - -var toPosInt = require("../../number/to-pos-integer") - , eq = require("../../object/eq") - , value = require("../../object/valid-value") - , objHasOwnProperty = Object.prototype.hasOwnProperty; - -module.exports = function (other) { - var i, length; - value(this); - value(other); - length = toPosInt(this.length); - if (length !== toPosInt(other.length)) return false; - for (i = 0; i < length; ++i) { - if (objHasOwnProperty.call(this, i) !== objHasOwnProperty.call(other, i)) { - return false; - } - if (!eq(this[i], other[i])) return false; - } - return true; -}; diff --git a/node_modules/es5-ext/array/#/is-empty.js b/node_modules/es5-ext/array/#/is-empty.js deleted file mode 100644 index 9b336fea..00000000 --- a/node_modules/es5-ext/array/#/is-empty.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; - -var ensureArray = require("../../object/ensure-array") - , firstIndex = require("./first-index"); - -module.exports = function () { return firstIndex.call(ensureArray(this)) === null; }; diff --git a/node_modules/es5-ext/array/#/is-uniq.js b/node_modules/es5-ext/array/#/is-uniq.js deleted file mode 100644 index 75f77348..00000000 --- a/node_modules/es5-ext/array/#/is-uniq.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; - -var indexOf = require("./e-index-of") - , every = Array.prototype.every - , isFirst; - -isFirst = function (value, index) { return indexOf.call(this, value) === index; }; - -module.exports = function () { return every.call(this, isFirst, this); }; diff --git a/node_modules/es5-ext/array/#/keys/implement.js b/node_modules/es5-ext/array/#/keys/implement.js deleted file mode 100644 index 101a5e39..00000000 --- a/node_modules/es5-ext/array/#/keys/implement.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -if (!require("./is-implemented")()) { - Object.defineProperty(Array.prototype, "keys", { - value: require("./shim"), - configurable: true, - enumerable: false, - writable: true - }); -} diff --git a/node_modules/es5-ext/array/#/keys/index.js b/node_modules/es5-ext/array/#/keys/index.js deleted file mode 100644 index c8753e51..00000000 --- a/node_modules/es5-ext/array/#/keys/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./is-implemented")() ? Array.prototype.keys : require("./shim"); diff --git a/node_modules/es5-ext/array/#/keys/is-implemented.js b/node_modules/es5-ext/array/#/keys/is-implemented.js deleted file mode 100644 index 70a171f6..00000000 --- a/node_modules/es5-ext/array/#/keys/is-implemented.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; - -module.exports = function () { - var arr = [1, "foo"], iterator, result; - if (typeof arr.keys !== "function") return false; - iterator = arr.keys(); - if (!iterator) return false; - if (typeof iterator.next !== "function") return false; - result = iterator.next(); - if (!result) return false; - if (result.value !== 0) return false; - if (result.done !== false) return false; - return true; -}; diff --git a/node_modules/es5-ext/array/#/keys/shim.js b/node_modules/es5-ext/array/#/keys/shim.js deleted file mode 100644 index 8136cdca..00000000 --- a/node_modules/es5-ext/array/#/keys/shim.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; - -var ArrayIterator = require("es6-iterator/array"); -module.exports = function () { return new ArrayIterator(this, "key"); }; diff --git a/node_modules/es5-ext/array/#/last-index.js b/node_modules/es5-ext/array/#/last-index.js deleted file mode 100644 index 74aaba46..00000000 --- a/node_modules/es5-ext/array/#/last-index.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; - -var toPosInt = require("../../number/to-pos-integer") - , value = require("../../object/valid-value") - , objHasOwnProperty = Object.prototype.hasOwnProperty; - -module.exports = function () { - var i, length; - if (!(length = toPosInt(value(this).length))) return null; - i = length - 1; - while (!objHasOwnProperty.call(this, i)) { - if (--i === -1) return null; - } - return i; -}; diff --git a/node_modules/es5-ext/array/#/last.js b/node_modules/es5-ext/array/#/last.js deleted file mode 100644 index 38bb359b..00000000 --- a/node_modules/es5-ext/array/#/last.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; - -var lastIndex = require("./last-index"); - -module.exports = function () { - var i; - if ((i = lastIndex.call(this)) !== null) return this[i]; - return undefined; -}; diff --git a/node_modules/es5-ext/array/#/map/implement.js b/node_modules/es5-ext/array/#/map/implement.js deleted file mode 100644 index 42e0b473..00000000 --- a/node_modules/es5-ext/array/#/map/implement.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -if (!require("./is-implemented")()) { - Object.defineProperty(Array.prototype, "map", { - value: require("./shim"), - configurable: true, - enumerable: false, - writable: true - }); -} diff --git a/node_modules/es5-ext/array/#/map/index.js b/node_modules/es5-ext/array/#/map/index.js deleted file mode 100644 index 49e02676..00000000 --- a/node_modules/es5-ext/array/#/map/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./is-implemented")() ? Array.prototype.map : require("./shim"); diff --git a/node_modules/es5-ext/array/#/map/is-implemented.js b/node_modules/es5-ext/array/#/map/is-implemented.js deleted file mode 100644 index f09bd7d9..00000000 --- a/node_modules/es5-ext/array/#/map/is-implemented.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; - -var identity = require("../../../function/identity") - , SubArray = require("../../_sub-array-dummy-safe"); - -module.exports = function () { return new SubArray().map(identity) instanceof SubArray; }; diff --git a/node_modules/es5-ext/array/#/map/shim.js b/node_modules/es5-ext/array/#/map/shim.js deleted file mode 100644 index 6e935d30..00000000 --- a/node_modules/es5-ext/array/#/map/shim.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; - -var isPlainArray = require("../../is-plain-array") - , callable = require("../../../object/valid-callable") - , isArray = Array.isArray - , map = Array.prototype.map - , forEach = Array.prototype.forEach - , call = Function.prototype.call; - -module.exports = function (callbackFn /*, thisArg*/) { - var result, thisArg; - if (!this || !isArray(this) || isPlainArray(this)) { - return map.apply(this, arguments); - } - callable(callbackFn); - thisArg = arguments[1]; - result = new this.constructor(this.length); - forEach.call(this, function (val, i, self) { - result[i] = call.call(callbackFn, thisArg, val, i, self); - }); - return result; -}; diff --git a/node_modules/es5-ext/array/#/remove.js b/node_modules/es5-ext/array/#/remove.js deleted file mode 100644 index 6a8a0867..00000000 --- a/node_modules/es5-ext/array/#/remove.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; - -var indexOf = require("./e-index-of") - , forEach = Array.prototype.forEach - , splice = Array.prototype.splice; - -// eslint-disable-next-line no-unused-vars -module.exports = function (itemToRemove /*, …item*/) { - forEach.call( - arguments, - function (item) { - var index = indexOf.call(this, item); - if (index !== -1) splice.call(this, index, 1); - }, - this - ); -}; diff --git a/node_modules/es5-ext/array/#/separate.js b/node_modules/es5-ext/array/#/separate.js deleted file mode 100644 index 248662f8..00000000 --- a/node_modules/es5-ext/array/#/separate.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -var forEach = Array.prototype.forEach; - -module.exports = function (sep) { - var result = []; - forEach.call(this, function (val) { result.push(val, sep); }); - result.pop(); - return result; -}; diff --git a/node_modules/es5-ext/array/#/slice/implement.js b/node_modules/es5-ext/array/#/slice/implement.js deleted file mode 100644 index 113d34dc..00000000 --- a/node_modules/es5-ext/array/#/slice/implement.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -if (!require("./is-implemented")()) { - Object.defineProperty(Array.prototype, "slice", { - value: require("./shim"), - configurable: true, - enumerable: false, - writable: true - }); -} diff --git a/node_modules/es5-ext/array/#/slice/index.js b/node_modules/es5-ext/array/#/slice/index.js deleted file mode 100644 index 716b7e04..00000000 --- a/node_modules/es5-ext/array/#/slice/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./is-implemented")() ? Array.prototype.slice : require("./shim"); diff --git a/node_modules/es5-ext/array/#/slice/is-implemented.js b/node_modules/es5-ext/array/#/slice/is-implemented.js deleted file mode 100644 index 4c83bfa2..00000000 --- a/node_modules/es5-ext/array/#/slice/is-implemented.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; - -var SubArray = require("../../_sub-array-dummy-safe"); - -module.exports = function () { return new SubArray().slice() instanceof SubArray; }; diff --git a/node_modules/es5-ext/array/#/slice/shim.js b/node_modules/es5-ext/array/#/slice/shim.js deleted file mode 100644 index ff13085b..00000000 --- a/node_modules/es5-ext/array/#/slice/shim.js +++ /dev/null @@ -1,36 +0,0 @@ -"use strict"; - -var toInteger = require("../../../number/to-integer") - , toPosInt = require("../../../number/to-pos-integer") - , isPlainArray = require("../../is-plain-array") - , isArray = Array.isArray - , slice = Array.prototype.slice - , objHasOwnProperty = Object.prototype.hasOwnProperty - , max = Math.max; - -module.exports = function (start, end) { - var length, result, i; - if (!this || !isArray(this) || isPlainArray(this)) { - return slice.apply(this, arguments); - } - length = toPosInt(this.length); - start = toInteger(start); - if (start < 0) start = max(length + start, 0); - else if (start > length) start = length; - if (end === undefined) { - end = length; - } else { - end = toInteger(end); - if (end < 0) end = max(length + end, 0); - else if (end > length) end = length; - } - if (start > end) start = end; - result = new this.constructor(end - start); - i = 0; - while (start !== end) { - if (objHasOwnProperty.call(this, start)) result[i] = this[start]; - ++i; - ++start; - } - return result; -}; diff --git a/node_modules/es5-ext/array/#/some-right.js b/node_modules/es5-ext/array/#/some-right.js deleted file mode 100644 index d9a665fc..00000000 --- a/node_modules/es5-ext/array/#/some-right.js +++ /dev/null @@ -1,21 +0,0 @@ -"use strict"; - -var toPosInt = require("../../number/to-pos-integer") - , callable = require("../../object/valid-callable") - , value = require("../../object/valid-value") - , objHasOwnProperty = Object.prototype.hasOwnProperty - , call = Function.prototype.call; - -module.exports = function (cb /*, thisArg*/) { - var i, self, thisArg; - self = Object(value(this)); - callable(cb); - thisArg = arguments[1]; - - for (i = toPosInt(self.length) - 1; i >= 0; --i) { - if (objHasOwnProperty.call(self, i) && call.call(cb, thisArg, self[i], i, self)) { - return true; - } - } - return false; -}; diff --git a/node_modules/es5-ext/array/#/splice/implement.js b/node_modules/es5-ext/array/#/splice/implement.js deleted file mode 100644 index 236b1cb7..00000000 --- a/node_modules/es5-ext/array/#/splice/implement.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -if (!require("./is-implemented")()) { - Object.defineProperty(Array.prototype, "splice", { - value: require("./shim"), - configurable: true, - enumerable: false, - writable: true - }); -} diff --git a/node_modules/es5-ext/array/#/splice/index.js b/node_modules/es5-ext/array/#/splice/index.js deleted file mode 100644 index cd5c3ec9..00000000 --- a/node_modules/es5-ext/array/#/splice/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./is-implemented")() ? Array.prototype.splice : require("./shim"); diff --git a/node_modules/es5-ext/array/#/splice/is-implemented.js b/node_modules/es5-ext/array/#/splice/is-implemented.js deleted file mode 100644 index 085cba57..00000000 --- a/node_modules/es5-ext/array/#/splice/is-implemented.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; - -var SubArray = require("../../_sub-array-dummy-safe"); - -module.exports = function () { return new SubArray().splice(0) instanceof SubArray; }; diff --git a/node_modules/es5-ext/array/#/splice/shim.js b/node_modules/es5-ext/array/#/splice/shim.js deleted file mode 100644 index fe1f8c24..00000000 --- a/node_modules/es5-ext/array/#/splice/shim.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; - -var isPlainArray = require("../../is-plain-array") - , isArray = Array.isArray - , splice = Array.prototype.splice - , forEach = Array.prototype.forEach; - -// eslint-disable-next-line no-unused-vars -module.exports = function (start, deleteCount /*, …items*/) { - var arr = splice.apply(this, arguments), result; - if (!this || !isArray(this) || isPlainArray(this)) return arr; - result = new this.constructor(arr.length); - forEach.call(arr, function (val, i) { result[i] = val; }); - return result; -}; diff --git a/node_modules/es5-ext/array/#/uniq.js b/node_modules/es5-ext/array/#/uniq.js deleted file mode 100644 index 2d28bf52..00000000 --- a/node_modules/es5-ext/array/#/uniq.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; - -var indexOf = require("./e-index-of") - , filter = Array.prototype.filter - , isFirst; - -isFirst = function (value, index) { return indexOf.call(this, value) === index; }; - -module.exports = function () { return filter.call(this, isFirst, this); }; diff --git a/node_modules/es5-ext/array/#/values/implement.js b/node_modules/es5-ext/array/#/values/implement.js deleted file mode 100644 index dce17aca..00000000 --- a/node_modules/es5-ext/array/#/values/implement.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -if (!require("./is-implemented")()) { - Object.defineProperty(Array.prototype, "values", { - value: require("./shim"), - configurable: true, - enumerable: false, - writable: true - }); -} diff --git a/node_modules/es5-ext/array/#/values/index.js b/node_modules/es5-ext/array/#/values/index.js deleted file mode 100644 index 30a50bae..00000000 --- a/node_modules/es5-ext/array/#/values/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./is-implemented")() ? Array.prototype.values : require("./shim"); diff --git a/node_modules/es5-ext/array/#/values/is-implemented.js b/node_modules/es5-ext/array/#/values/is-implemented.js deleted file mode 100644 index 8b72568a..00000000 --- a/node_modules/es5-ext/array/#/values/is-implemented.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; - -module.exports = function () { - var arr = ["foo", 1], iterator, result; - if (typeof arr.values !== "function") return false; - iterator = arr.values(); - if (!iterator) return false; - if (typeof iterator.next !== "function") return false; - result = iterator.next(); - if (!result) return false; - if (result.value !== "foo") return false; - if (result.done !== false) return false; - return true; -}; diff --git a/node_modules/es5-ext/array/#/values/shim.js b/node_modules/es5-ext/array/#/values/shim.js deleted file mode 100644 index 5d013abe..00000000 --- a/node_modules/es5-ext/array/#/values/shim.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; - -var ArrayIterator = require("es6-iterator/array"); -module.exports = function () { return new ArrayIterator(this, "value"); }; diff --git a/node_modules/es5-ext/array/_is-extensible.js b/node_modules/es5-ext/array/_is-extensible.js deleted file mode 100644 index c4757112..00000000 --- a/node_modules/es5-ext/array/_is-extensible.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; - -module.exports = (function () { - var SubArray = require("./_sub-array-dummy") - , arr; - - if (!SubArray) return false; - arr = new SubArray(); - if (!Array.isArray(arr)) return false; - if (!(arr instanceof SubArray)) return false; - - arr[34] = "foo"; - return arr.length === 35; -})(); diff --git a/node_modules/es5-ext/array/_sub-array-dummy-safe.js b/node_modules/es5-ext/array/_sub-array-dummy-safe.js deleted file mode 100644 index bef50bed..00000000 --- a/node_modules/es5-ext/array/_sub-array-dummy-safe.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; - -var setPrototypeOf = require("../object/set-prototype-of") - , isExtensible = require("./_is-extensible"); - -module.exports = (function () { - var SubArray; - - if (isExtensible) return require("./_sub-array-dummy"); - - if (!setPrototypeOf) return null; - SubArray = function () { - var arr = Array.apply(this, arguments); - setPrototypeOf(arr, SubArray.prototype); - return arr; - }; - setPrototypeOf(SubArray, Array); - SubArray.prototype = Object.create(Array.prototype, { - constructor: { value: SubArray, enumerable: false, writable: true, configurable: true } - }); - return SubArray; -})(); diff --git a/node_modules/es5-ext/array/_sub-array-dummy.js b/node_modules/es5-ext/array/_sub-array-dummy.js deleted file mode 100644 index 5969309e..00000000 --- a/node_modules/es5-ext/array/_sub-array-dummy.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; - -var setPrototypeOf = require("../object/set-prototype-of"); - -module.exports = (function () { - var SubArray; - - if (!setPrototypeOf) return null; - SubArray = function () { Array.apply(this, arguments); }; - setPrototypeOf(SubArray, Array); - SubArray.prototype = Object.create(Array.prototype, { - constructor: { value: SubArray, enumerable: false, writable: true, configurable: true } - }); - return SubArray; -})(); diff --git a/node_modules/es5-ext/array/from/implement.js b/node_modules/es5-ext/array/from/implement.js deleted file mode 100644 index c08d4074..00000000 --- a/node_modules/es5-ext/array/from/implement.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -if (!require("./is-implemented")()) { - Object.defineProperty(Array, "from", { - value: require("./shim"), - configurable: true, - enumerable: false, - writable: true - }); -} diff --git a/node_modules/es5-ext/array/from/index.js b/node_modules/es5-ext/array/from/index.js deleted file mode 100644 index 81cf8d9f..00000000 --- a/node_modules/es5-ext/array/from/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./is-implemented")() ? Array.from : require("./shim"); diff --git a/node_modules/es5-ext/array/from/is-implemented.js b/node_modules/es5-ext/array/from/is-implemented.js deleted file mode 100644 index a786c767..00000000 --- a/node_modules/es5-ext/array/from/is-implemented.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; - -module.exports = function () { - var from = Array.from, arr, result; - if (typeof from !== "function") return false; - arr = ["raz", "dwa"]; - result = from(arr); - return Boolean(result && result !== arr && result[1] === "dwa"); -}; diff --git a/node_modules/es5-ext/array/from/shim.js b/node_modules/es5-ext/array/from/shim.js deleted file mode 100644 index bf660b6e..00000000 --- a/node_modules/es5-ext/array/from/shim.js +++ /dev/null @@ -1,119 +0,0 @@ -"use strict"; - -var iteratorSymbol = require("es6-symbol").iterator - , isArguments = require("../../function/is-arguments") - , isFunction = require("../../function/is-function") - , toPosInt = require("../../number/to-pos-integer") - , callable = require("../../object/valid-callable") - , validValue = require("../../object/valid-value") - , isValue = require("../../object/is-value") - , isString = require("../../string/is-string") - , isArray = Array.isArray - , call = Function.prototype.call - , desc = { configurable: true, enumerable: true, writable: true, value: null } - , defineProperty = Object.defineProperty; - -// eslint-disable-next-line complexity, max-lines-per-function -module.exports = function (arrayLike /*, mapFn, thisArg*/) { - var mapFn = arguments[1] - , thisArg = arguments[2] - , Context - , i - , j - , arr - , length - , code - , iterator - , result - , getIterator - , value; - - arrayLike = Object(validValue(arrayLike)); - - if (isValue(mapFn)) callable(mapFn); - if (!this || this === Array || !isFunction(this)) { - // Result: Plain array - if (!mapFn) { - if (isArguments(arrayLike)) { - // Source: Arguments - length = arrayLike.length; - if (length !== 1) return Array.apply(null, arrayLike); - arr = new Array(1); - arr[0] = arrayLike[0]; - return arr; - } - if (isArray(arrayLike)) { - // Source: Array - arr = new Array((length = arrayLike.length)); - for (i = 0; i < length; ++i) arr[i] = arrayLike[i]; - return arr; - } - } - arr = []; - } else { - // Result: Non plain array - Context = this; - } - - if (!isArray(arrayLike)) { - if ((getIterator = arrayLike[iteratorSymbol]) !== undefined) { - // Source: Iterator - iterator = callable(getIterator).call(arrayLike); - if (Context) arr = new Context(); - result = iterator.next(); - i = 0; - while (!result.done) { - value = mapFn ? call.call(mapFn, thisArg, result.value, i) : result.value; - if (Context) { - desc.value = value; - defineProperty(arr, i, desc); - } else { - arr[i] = value; - } - result = iterator.next(); - ++i; - } - length = i; - } else if (isString(arrayLike)) { - // Source: String - length = arrayLike.length; - if (Context) arr = new Context(); - for (i = 0, j = 0; i < length; ++i) { - value = arrayLike[i]; - if (i + 1 < length) { - code = value.charCodeAt(0); - // eslint-disable-next-line max-depth - if (code >= 0xd800 && code <= 0xdbff) value += arrayLike[++i]; - } - value = mapFn ? call.call(mapFn, thisArg, value, j) : value; - if (Context) { - desc.value = value; - defineProperty(arr, j, desc); - } else { - arr[j] = value; - } - ++j; - } - length = j; - } - } - if (length === undefined) { - // Source: array or array-like - length = toPosInt(arrayLike.length); - if (Context) arr = new Context(length); - for (i = 0; i < length; ++i) { - value = mapFn ? call.call(mapFn, thisArg, arrayLike[i], i) : arrayLike[i]; - if (Context) { - desc.value = value; - defineProperty(arr, i, desc); - } else { - arr[i] = value; - } - } - } - if (Context) { - desc.value = null; - arr.length = length; - } - return arr; -}; diff --git a/node_modules/es5-ext/array/generate.js b/node_modules/es5-ext/array/generate.js deleted file mode 100644 index 42b69303..00000000 --- a/node_modules/es5-ext/array/generate.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; - -var toPosInt = require("../number/to-pos-integer") - , value = require("../object/valid-value") - , slice = Array.prototype.slice; - -module.exports = function (length /*, …fill*/) { - var arr, currentLength; - length = toPosInt(value(length)); - if (length === 0) return []; - - arr = arguments.length < 2 ? [undefined] : slice.call(arguments, 1, 1 + length); - - while ((currentLength = arr.length) < length) { - arr = arr.concat(arr.slice(0, length - currentLength)); - } - return arr; -}; diff --git a/node_modules/es5-ext/array/index.js b/node_modules/es5-ext/array/index.js deleted file mode 100644 index 49ff58ee..00000000 --- a/node_modules/es5-ext/array/index.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; - -module.exports = { - "#": require("./#"), - "from": require("./from"), - "generate": require("./generate"), - "isPlainArray": require("./is-plain-array"), - "of": require("./of"), - "toArray": require("./to-array"), - "validArray": require("./valid-array") -}; diff --git a/node_modules/es5-ext/array/is-plain-array.js b/node_modules/es5-ext/array/is-plain-array.js deleted file mode 100644 index ca3d25bb..00000000 --- a/node_modules/es5-ext/array/is-plain-array.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; - -var isArray = Array.isArray, getPrototypeOf = Object.getPrototypeOf; - -module.exports = function (obj) { - var proto; - if (!obj || !isArray(obj)) return false; - proto = getPrototypeOf(obj); - if (!isArray(proto)) return false; - return !isArray(getPrototypeOf(proto)); -}; diff --git a/node_modules/es5-ext/array/of/implement.js b/node_modules/es5-ext/array/of/implement.js deleted file mode 100644 index 6665c77d..00000000 --- a/node_modules/es5-ext/array/of/implement.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -if (!require("./is-implemented")()) { - Object.defineProperty(Array, "of", { - value: require("./shim"), - configurable: true, - enumerable: false, - writable: true - }); -} diff --git a/node_modules/es5-ext/array/of/index.js b/node_modules/es5-ext/array/of/index.js deleted file mode 100644 index 503c749b..00000000 --- a/node_modules/es5-ext/array/of/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./is-implemented")() ? Array.of : require("./shim"); diff --git a/node_modules/es5-ext/array/of/is-implemented.js b/node_modules/es5-ext/array/of/is-implemented.js deleted file mode 100644 index 3f232ca5..00000000 --- a/node_modules/es5-ext/array/of/is-implemented.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; - -module.exports = function () { - var of = Array.of, result; - if (typeof of !== "function") return false; - result = of("foo", "bar"); - return Boolean(result && result[1] === "bar"); -}; diff --git a/node_modules/es5-ext/array/of/shim.js b/node_modules/es5-ext/array/of/shim.js deleted file mode 100644 index 0202a8af..00000000 --- a/node_modules/es5-ext/array/of/shim.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; - -var isFunction = require("../../function/is-function") - , slice = Array.prototype.slice - , defineProperty = Object.defineProperty - , desc = { configurable: true, enumerable: true, writable: true, value: null }; - -module.exports = function (/* …items*/) { - var result, i, length; - if (!this || this === Array || !isFunction(this)) return slice.call(arguments); - result = new this((length = arguments.length)); - for (i = 0; i < length; ++i) { - desc.value = arguments[i]; - defineProperty(result, i, desc); - } - desc.value = null; - result.length = length; - return result; -}; diff --git a/node_modules/es5-ext/array/to-array.js b/node_modules/es5-ext/array/to-array.js deleted file mode 100644 index 2515e024..00000000 --- a/node_modules/es5-ext/array/to-array.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; - -var from = require("./from") - , isArray = Array.isArray; - -module.exports = function (arrayLike) { return isArray(arrayLike) ? arrayLike : from(arrayLike); }; diff --git a/node_modules/es5-ext/array/valid-array.js b/node_modules/es5-ext/array/valid-array.js deleted file mode 100644 index 1e58c39a..00000000 --- a/node_modules/es5-ext/array/valid-array.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; - -var isArray = Array.isArray; - -module.exports = function (value) { - if (isArray(value)) return value; - throw new TypeError(value + " is not an array"); -}; diff --git a/node_modules/es5-ext/boolean/index.js b/node_modules/es5-ext/boolean/index.js deleted file mode 100644 index 35136423..00000000 --- a/node_modules/es5-ext/boolean/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = { isBoolean: require("./is-boolean") }; diff --git a/node_modules/es5-ext/boolean/is-boolean.js b/node_modules/es5-ext/boolean/is-boolean.js deleted file mode 100644 index 394845f6..00000000 --- a/node_modules/es5-ext/boolean/is-boolean.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -var objToString = Object.prototype.toString, id = objToString.call(true); - -module.exports = function (value) { - return ( - typeof value === "boolean" || - (typeof value === "object" && (value instanceof Boolean || objToString.call(value) === id)) - ); -}; diff --git a/node_modules/es5-ext/date/#/copy.js b/node_modules/es5-ext/date/#/copy.js deleted file mode 100644 index 1262ae02..00000000 --- a/node_modules/es5-ext/date/#/copy.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; - -var getTime = Date.prototype.getTime; - -module.exports = function () { return new Date(getTime.call(this)); }; diff --git a/node_modules/es5-ext/date/#/days-in-month.js b/node_modules/es5-ext/date/#/days-in-month.js deleted file mode 100644 index 731d4d5f..00000000 --- a/node_modules/es5-ext/date/#/days-in-month.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; - -var getMonth = Date.prototype.getMonth; - -module.exports = function () { - switch (getMonth.call(this)) { - case 1: - return this.getFullYear() % 4 ? 28 : 29; - case 3: - case 5: - case 8: - case 10: - return 30; - default: - return 31; - } -}; diff --git a/node_modules/es5-ext/date/#/floor-day.js b/node_modules/es5-ext/date/#/floor-day.js deleted file mode 100644 index db696d38..00000000 --- a/node_modules/es5-ext/date/#/floor-day.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; - -var setHours = Date.prototype.setHours; - -module.exports = function () { - setHours.call(this, 0, 0, 0, 0); - return this; -}; diff --git a/node_modules/es5-ext/date/#/floor-month.js b/node_modules/es5-ext/date/#/floor-month.js deleted file mode 100644 index c9c0460b..00000000 --- a/node_modules/es5-ext/date/#/floor-month.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; - -var floorDay = require("./floor-day"); - -module.exports = function () { - floorDay.call(this).setDate(1); - return this; -}; diff --git a/node_modules/es5-ext/date/#/floor-year.js b/node_modules/es5-ext/date/#/floor-year.js deleted file mode 100644 index e9b6f0fe..00000000 --- a/node_modules/es5-ext/date/#/floor-year.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; - -var floorMonth = require("./floor-month"); - -module.exports = function () { - floorMonth.call(this).setMonth(0); - return this; -}; diff --git a/node_modules/es5-ext/date/#/format.js b/node_modules/es5-ext/date/#/format.js deleted file mode 100644 index 8474dbb9..00000000 --- a/node_modules/es5-ext/date/#/format.js +++ /dev/null @@ -1,20 +0,0 @@ -/* eslint id-length: "off" */ - -"use strict"; - -var pad = require("../../number/#/pad") - , date = require("../valid-date") - , format; - -format = require("../../string/format-method")({ - Y: function () { return String(this.getFullYear()); }, - y: function () { return String(this.getFullYear()).slice(-2); }, - m: function () { return pad.call(this.getMonth() + 1, 2); }, - d: function () { return pad.call(this.getDate(), 2); }, - H: function () { return pad.call(this.getHours(), 2); }, - M: function () { return pad.call(this.getMinutes(), 2); }, - S: function () { return pad.call(this.getSeconds(), 2); }, - L: function () { return pad.call(this.getMilliseconds(), 3); } -}); - -module.exports = function (pattern) { return format.call(date(this), pattern); }; diff --git a/node_modules/es5-ext/date/#/index.js b/node_modules/es5-ext/date/#/index.js deleted file mode 100644 index 1781e218..00000000 --- a/node_modules/es5-ext/date/#/index.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -module.exports = { - copy: require("./copy"), - daysInMonth: require("./days-in-month"), - floorDay: require("./floor-day"), - floorMonth: require("./floor-month"), - floorYear: require("./floor-year"), - format: require("./format") -}; diff --git a/node_modules/es5-ext/date/ensure-time-value.js b/node_modules/es5-ext/date/ensure-time-value.js deleted file mode 100644 index 09f5afcf..00000000 --- a/node_modules/es5-ext/date/ensure-time-value.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -var safeToString = require("../safe-to-string") - , toInteger = require("../number/to-integer") - , isTimeValue = require("./is-time-value"); - -module.exports = function (value) { - if (isTimeValue(value)) return toInteger(value); - throw new TypeError(safeToString(value) + " is not a valid time value"); -}; diff --git a/node_modules/es5-ext/date/index.js b/node_modules/es5-ext/date/index.js deleted file mode 100644 index c1431497..00000000 --- a/node_modules/es5-ext/date/index.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; - -module.exports = { - "#": require("./#"), - "ensureTimeValue": require("./ensure-time-value"), - "isDate": require("./is-date"), - "isTimeValue": require("./is-time-value"), - "validDate": require("./valid-date") -}; diff --git a/node_modules/es5-ext/date/is-date.js b/node_modules/es5-ext/date/is-date.js deleted file mode 100644 index f45bde46..00000000 --- a/node_modules/es5-ext/date/is-date.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -var objToString = Object.prototype.toString, id = objToString.call(new Date()); - -module.exports = function (value) { - return ( - (value && !isNaN(value) && (value instanceof Date || objToString.call(value) === id)) || - false - ); -}; diff --git a/node_modules/es5-ext/date/is-time-value.js b/node_modules/es5-ext/date/is-time-value.js deleted file mode 100644 index 0deb0b97..00000000 --- a/node_modules/es5-ext/date/is-time-value.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; - -module.exports = function (value) { - try { value = Number(value); } - catch (e) { return false; } - if (isNaN(value)) return false; - if (Math.abs(value) > 8.64e15) return false; - return true; -}; diff --git a/node_modules/es5-ext/date/valid-date.js b/node_modules/es5-ext/date/valid-date.js deleted file mode 100644 index 0c73dc5d..00000000 --- a/node_modules/es5-ext/date/valid-date.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; - -var isDate = require("./is-date"); - -module.exports = function (value) { - if (!isDate(value)) throw new TypeError(value + " is not valid Date object"); - return value; -}; diff --git a/node_modules/es5-ext/error/#/index.js b/node_modules/es5-ext/error/#/index.js deleted file mode 100644 index 973a9d43..00000000 --- a/node_modules/es5-ext/error/#/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = { throw: require("./throw") }; diff --git a/node_modules/es5-ext/error/#/throw.js b/node_modules/es5-ext/error/#/throw.js deleted file mode 100644 index 3eb196df..00000000 --- a/node_modules/es5-ext/error/#/throw.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; - -var error = require("../valid-error"); - -module.exports = function () { throw error(this); }; diff --git a/node_modules/es5-ext/error/custom.js b/node_modules/es5-ext/error/custom.js deleted file mode 100644 index 22ea5d86..00000000 --- a/node_modules/es5-ext/error/custom.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; - -var assign = require("../object/assign") - , isObject = require("../object/is-object") - , isValue = require("../object/is-value") - , captureStackTrace = Error.captureStackTrace; - -module.exports = function (message /*, code, ext*/) { - var err = new Error(message), code = arguments[1], ext = arguments[2]; - if (!isValue(ext)) { - if (isObject(code)) { - ext = code; - code = null; - } - } - if (isValue(ext)) assign(err, ext); - if (isValue(code)) err.code = code; - if (captureStackTrace) captureStackTrace(err, module.exports); - return err; -}; diff --git a/node_modules/es5-ext/error/index.js b/node_modules/es5-ext/error/index.js deleted file mode 100644 index cb7054a2..00000000 --- a/node_modules/es5-ext/error/index.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; - -module.exports = { - "#": require("./#"), - "custom": require("./custom"), - "isError": require("./is-error"), - "validError": require("./valid-error") -}; diff --git a/node_modules/es5-ext/error/is-error.js b/node_modules/es5-ext/error/is-error.js deleted file mode 100644 index aad67ed9..00000000 --- a/node_modules/es5-ext/error/is-error.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -var objToString = Object.prototype.toString, id = objToString.call(new Error()); - -module.exports = function (value) { - return (value && (value instanceof Error || objToString.call(value) === id)) || false; -}; diff --git a/node_modules/es5-ext/error/valid-error.js b/node_modules/es5-ext/error/valid-error.js deleted file mode 100644 index 432f7ba2..00000000 --- a/node_modules/es5-ext/error/valid-error.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; - -var isError = require("./is-error"); - -module.exports = function (value) { - if (!isError(value)) throw new TypeError(value + " is not an Error object"); - return value; -}; diff --git a/node_modules/es5-ext/function/#/compose.js b/node_modules/es5-ext/function/#/compose.js deleted file mode 100644 index d16b2b1d..00000000 --- a/node_modules/es5-ext/function/#/compose.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; - -var isValue = require("../../object/is-value") - , callable = require("../../object/valid-callable") - , aFrom = require("../../array/from"); - -var apply = Function.prototype.apply - , call = Function.prototype.call - , callFn = function (arg, fn) { return call.call(fn, this, arg); }; - -module.exports = function (fnIgnored /*, …fnn*/) { - var fns, first; - var args = aFrom(arguments); - fns = isValue(this) ? [this].concat(args) : args; - fns.forEach(callable); - fns = fns.reverse(); - first = fns[0]; - fns = fns.slice(1); - return function (argIgnored) { return fns.reduce(callFn, apply.call(first, this, arguments)); }; -}; diff --git a/node_modules/es5-ext/function/#/copy.js b/node_modules/es5-ext/function/#/copy.js deleted file mode 100644 index 81ae7838..00000000 --- a/node_modules/es5-ext/function/#/copy.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; - -var mixin = require("../../object/mixin") - , validFunction = require("../valid-function") - , re = /^\s*function\s*([\0-')-\uffff]+)*\s*\(([\0-(*-\uffff]*)\)\s*\{/; - -module.exports = function () { - var match = String(validFunction(this)).match(re), fn; - - // eslint-disable-next-line no-new-func - fn = new Function( - "fn", - "return function " + - match[1].trim() + - "(" + - match[2] + - ") { return fn.apply(this, arguments); };" - )(this); - try { mixin(fn, this); } - catch (ignore) {} - return fn; -}; diff --git a/node_modules/es5-ext/function/#/curry.js b/node_modules/es5-ext/function/#/curry.js deleted file mode 100644 index 9296458a..00000000 --- a/node_modules/es5-ext/function/#/curry.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; - -var toPosInt = require("../../number/to-pos-integer") - , callable = require("../../object/valid-callable") - , defineLength = require("../_define-length") - , slice = Array.prototype.slice - , apply = Function.prototype.apply - , curry; - -curry = function self(fn, length, preArgs) { - return defineLength( - function () { - var args = preArgs - ? preArgs.concat(slice.call(arguments, 0, length - preArgs.length)) - : slice.call(arguments, 0, length); - return args.length === length ? apply.call(fn, this, args) : self(fn, length, args); - }, - preArgs ? length - preArgs.length : length - ); -}; - -module.exports = function (/* Length*/) { - var length = arguments[0]; - return curry(callable(this), isNaN(length) ? toPosInt(this.length) : toPosInt(length)); -}; diff --git a/node_modules/es5-ext/function/#/index.js b/node_modules/es5-ext/function/#/index.js deleted file mode 100644 index 02ae9f49..00000000 --- a/node_modules/es5-ext/function/#/index.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; - -module.exports = { - compose: require("./compose"), - copy: require("./copy"), - curry: require("./curry"), - lock: require("./lock"), - microtaskDelay: require("./microtask-delay"), - not: require("./not"), - partial: require("./partial"), - spread: require("./spread"), - toStringTokens: require("./to-string-tokens") -}; diff --git a/node_modules/es5-ext/function/#/lock.js b/node_modules/es5-ext/function/#/lock.js deleted file mode 100644 index afd83b97..00000000 --- a/node_modules/es5-ext/function/#/lock.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -var callable = require("../../object/valid-callable") - , apply = Function.prototype.apply; - -module.exports = function (/* …args*/) { - var fn = callable(this), args = arguments; - - return function () { return apply.call(fn, this, args); }; -}; diff --git a/node_modules/es5-ext/function/#/microtask-delay.js b/node_modules/es5-ext/function/#/microtask-delay.js deleted file mode 100644 index 3741ebe5..00000000 --- a/node_modules/es5-ext/function/#/microtask-delay.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; - -var ensurePlainFunction = require("../../object/ensure-plain-function") - , defineLength = require("../_define-length") - , nextTick = require("next-tick"); - -var apply = Function.prototype.apply; - -module.exports = function () { - var src = ensurePlainFunction(this); - return defineLength(function () { nextTick(apply.bind(src, this, arguments)); }, this.length); -}; diff --git a/node_modules/es5-ext/function/#/not.js b/node_modules/es5-ext/function/#/not.js deleted file mode 100644 index b3b7d620..00000000 --- a/node_modules/es5-ext/function/#/not.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; - -var callable = require("../../object/valid-callable") - , defineLength = require("../_define-length") - , apply = Function.prototype.apply; - -module.exports = function () { - var fn = callable(this); - - return defineLength(function () { return !apply.call(fn, this, arguments); }, fn.length); -}; diff --git a/node_modules/es5-ext/function/#/partial.js b/node_modules/es5-ext/function/#/partial.js deleted file mode 100644 index 8f09c4f7..00000000 --- a/node_modules/es5-ext/function/#/partial.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; - -var callable = require("../../object/valid-callable") - , aFrom = require("../../array/from") - , defineLength = require("../_define-length") - , apply = Function.prototype.apply; - -module.exports = function (/* …args*/) { - var fn = callable(this), args = aFrom(arguments); - - return defineLength(function () { - return apply.call(fn, this, args.concat(aFrom(arguments))); - }, fn.length - args.length); -}; diff --git a/node_modules/es5-ext/function/#/spread.js b/node_modules/es5-ext/function/#/spread.js deleted file mode 100644 index 555d9912..00000000 --- a/node_modules/es5-ext/function/#/spread.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; - -var callable = require("../../object/valid-callable") - , apply = Function.prototype.apply; - -module.exports = function () { - var fn = callable(this); - return function (args) { return apply.call(fn, this, args); }; -}; diff --git a/node_modules/es5-ext/function/#/to-string-tokens.js b/node_modules/es5-ext/function/#/to-string-tokens.js deleted file mode 100644 index 4ce026a5..00000000 --- a/node_modules/es5-ext/function/#/to-string-tokens.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; - -var validFunction = require("../valid-function"); - -var re1 = /^\s*function[\0-')-\uffff]*\(([\0-(*-\uffff]*)\)\s*\{([\0-\uffff]*)\}\s*$/ - , re2 = /^\s*\(?([\0-'*-\uffff]*)\)?\s*=>\s*(\{?[\0-\uffff]*\}?)\s*$/; - -module.exports = function () { - var str = String(validFunction(this)), data = str.match(re1); - if (!data) { - data = str.match(re2); - if (!data) throw new Error("Unrecognized string format"); - data[1] = data[1].trim(); - if (data[2][0] === "{") data[2] = data[2].trim().slice(1, -1); - } - return { args: data[1], body: data[2] }; -}; diff --git a/node_modules/es5-ext/function/_define-length.js b/node_modules/es5-ext/function/_define-length.js deleted file mode 100644 index d77a433f..00000000 --- a/node_modules/es5-ext/function/_define-length.js +++ /dev/null @@ -1,54 +0,0 @@ -"use strict"; - -var toPosInt = require("../number/to-pos-integer"); - -var test = function (arg1, arg2) { return arg2; }; - -var desc, defineProperty, generate, mixin; - -try { - Object.defineProperty(test, "length", { - configurable: true, - writable: false, - enumerable: false, - value: 1 - }); -} -catch (ignore) {} - -if (test.length === 1) { - // ES6 - desc = { configurable: true, writable: false, enumerable: false }; - defineProperty = Object.defineProperty; - module.exports = function (fn, length) { - length = toPosInt(length); - if (fn.length === length) return fn; - desc.value = length; - return defineProperty(fn, "length", desc); - }; -} else { - mixin = require("../object/mixin"); - generate = (function () { - var cache = []; - return function (length) { - var args, i = 0; - if (cache[length]) return cache[length]; - args = []; - while (length--) args.push("a" + (++i).toString(36)); - // eslint-disable-next-line no-new-func - return new Function( - "fn", - "return function (" + args.join(", ") + ") { return fn.apply(this, arguments); };" - ); - }; - })(); - module.exports = function (src, length) { - var target; - length = toPosInt(length); - if (src.length === length) return src; - target = generate(length)(src); - try { mixin(target, src); } - catch (ignore) {} - return target; - }; -} diff --git a/node_modules/es5-ext/function/constant.js b/node_modules/es5-ext/function/constant.js deleted file mode 100644 index 79d81e4a..00000000 --- a/node_modules/es5-ext/function/constant.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; - -module.exports = function (value) { - return function () { return value; }; -}; diff --git a/node_modules/es5-ext/function/identity.js b/node_modules/es5-ext/function/identity.js deleted file mode 100644 index cde213f8..00000000 --- a/node_modules/es5-ext/function/identity.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = function (value) { return value; }; diff --git a/node_modules/es5-ext/function/index.js b/node_modules/es5-ext/function/index.js deleted file mode 100644 index 1574fbbb..00000000 --- a/node_modules/es5-ext/function/index.js +++ /dev/null @@ -1,15 +0,0 @@ -// Export all modules. - -"use strict"; - -module.exports = { - "#": require("./#"), - "constant": require("./constant"), - "identity": require("./identity"), - "invoke": require("./invoke"), - "isArguments": require("./is-arguments"), - "isFunction": require("./is-function"), - "noop": require("./noop"), - "pluck": require("./pluck"), - "validFunction": require("./valid-function") -}; diff --git a/node_modules/es5-ext/function/invoke.js b/node_modules/es5-ext/function/invoke.js deleted file mode 100644 index 8fdb32b7..00000000 --- a/node_modules/es5-ext/function/invoke.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; - -var isCallable = require("../object/is-callable") - , value = require("../object/valid-value") - , slice = Array.prototype.slice - , apply = Function.prototype.apply; - -module.exports = function (name /*, …args*/) { - var args = slice.call(arguments, 1), isFn = isCallable(name); - return function (obj) { - value(obj); - return apply.call(isFn ? name : obj[name], obj, args.concat(slice.call(arguments, 1))); - }; -}; diff --git a/node_modules/es5-ext/function/is-arguments.js b/node_modules/es5-ext/function/is-arguments.js deleted file mode 100644 index 833a7479..00000000 --- a/node_modules/es5-ext/function/is-arguments.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; - -var objToString = Object.prototype.toString - , id = objToString.call((function () { return arguments; })()); - -module.exports = function (value) { return objToString.call(value) === id; }; diff --git a/node_modules/es5-ext/function/is-function.js b/node_modules/es5-ext/function/is-function.js deleted file mode 100644 index 0d7cab33..00000000 --- a/node_modules/es5-ext/function/is-function.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; - -var objToString = Object.prototype.toString - , isFunctionStringTag = RegExp.prototype.test.bind(/^[object [A-Za-z0-9]*Function]$/); - -module.exports = function (value) { - return typeof value === "function" && isFunctionStringTag(objToString.call(value)); -}; diff --git a/node_modules/es5-ext/function/noop.js b/node_modules/es5-ext/function/noop.js deleted file mode 100644 index 6174f033..00000000 --- a/node_modules/es5-ext/function/noop.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; - -// eslint-disable-next-line no-empty-function -module.exports = function () {}; diff --git a/node_modules/es5-ext/function/pluck.js b/node_modules/es5-ext/function/pluck.js deleted file mode 100644 index 432cd464..00000000 --- a/node_modules/es5-ext/function/pluck.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -var value = require("../object/valid-value"); - -module.exports = function (name) { - return function (obj) { return value(obj)[name]; }; -}; diff --git a/node_modules/es5-ext/function/valid-function.js b/node_modules/es5-ext/function/valid-function.js deleted file mode 100644 index 060bd645..00000000 --- a/node_modules/es5-ext/function/valid-function.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; - -var isFunction = require("./is-function"); - -module.exports = function (value) { - if (!isFunction(value)) throw new TypeError(value + " is not a function"); - return value; -}; diff --git a/node_modules/es5-ext/global.js b/node_modules/es5-ext/global.js deleted file mode 100644 index 61071e64..00000000 --- a/node_modules/es5-ext/global.js +++ /dev/null @@ -1,35 +0,0 @@ -var naiveFallback = function () { - if (typeof self === "object" && self) return self; - if (typeof window === "object" && window) return window; - throw new Error("Unable to resolve global `this`"); -}; - -module.exports = (function () { - if (this) return this; - - // Unexpected strict mode (may happen if e.g. bundled into ESM module) - - // Fallback to standard globalThis if available - if (typeof globalThis === "object" && globalThis) return globalThis; - - // Thanks @mathiasbynens -> https://mathiasbynens.be/notes/globalthis - // In all ES5+ engines global object inherits from Object.prototype - // (if you approached one that doesn't please report) - try { - Object.defineProperty(Object.prototype, "__global__", { - get: function () { return this; }, - configurable: true - }); - } catch (error) { - // Unfortunate case of updates to Object.prototype being restricted - // via preventExtensions, seal or freeze - return naiveFallback(); - } - try { - // Safari case (window.__global__ works, but __global__ does not) - if (!__global__) return naiveFallback(); - return __global__; - } finally { - delete Object.prototype.__global__; - } -})(); diff --git a/node_modules/es5-ext/index.js b/node_modules/es5-ext/index.js deleted file mode 100644 index 0919764e..00000000 --- a/node_modules/es5-ext/index.js +++ /dev/null @@ -1,22 +0,0 @@ -"use strict"; - -module.exports = { - global: require("./global"), - optionalChaining: require("./optional-chaining"), - safeToString: require("./safe-to-string"), - toShortStringRepresentation: require("./to-short-string-representation"), - - array: require("./array"), - boolean: require("./boolean"), - date: require("./date"), - error: require("./error"), - function: require("./function"), - iterable: require("./iterable"), - json: require("./json"), - math: require("./math"), - number: require("./number"), - object: require("./object"), - promise: require("./promise"), - regExp: require("./reg-exp"), - string: require("./string") -}; diff --git a/node_modules/es5-ext/iterable/for-each.js b/node_modules/es5-ext/iterable/for-each.js deleted file mode 100644 index 9157f65f..00000000 --- a/node_modules/es5-ext/iterable/for-each.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; - -var forOf = require("es6-iterator/for-of") - , isIterable = require("es6-iterator/is-iterable") - , iterable = require("./validate") - , forEach = Array.prototype.forEach; - -module.exports = function (target, cb /*, thisArg*/) { - if (isIterable(iterable(target))) forOf(target, cb, arguments[2]); - else forEach.call(target, cb, arguments[2]); -}; diff --git a/node_modules/es5-ext/iterable/index.js b/node_modules/es5-ext/iterable/index.js deleted file mode 100644 index 4b898fc8..00000000 --- a/node_modules/es5-ext/iterable/index.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; - -module.exports = { - forEach: require("./for-each"), - is: require("./is"), - validate: require("./validate"), - validateObject: require("./validate-object") -}; diff --git a/node_modules/es5-ext/iterable/is.js b/node_modules/es5-ext/iterable/is.js deleted file mode 100644 index aa5a9b9e..00000000 --- a/node_modules/es5-ext/iterable/is.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; - -var iteratorSymbol = require("es6-symbol").iterator - , isValue = require("../object/is-value") - , isArrayLike = require("../object/is-array-like"); - -module.exports = function (value) { - if (!isValue(value)) return false; - if (typeof value[iteratorSymbol] === "function") return true; - return isArrayLike(value); -}; diff --git a/node_modules/es5-ext/iterable/validate-object.js b/node_modules/es5-ext/iterable/validate-object.js deleted file mode 100644 index 26e622b5..00000000 --- a/node_modules/es5-ext/iterable/validate-object.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; - -var isObject = require("../object/is-object") - , is = require("./is"); - -module.exports = function (value) { - if (is(value) && isObject(value)) return value; - throw new TypeError(value + " is not an iterable or array-like object"); -}; diff --git a/node_modules/es5-ext/iterable/validate.js b/node_modules/es5-ext/iterable/validate.js deleted file mode 100644 index 94a91c47..00000000 --- a/node_modules/es5-ext/iterable/validate.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; - -var is = require("./is"); - -module.exports = function (value) { - if (is(value)) return value; - throw new TypeError(value + " is not an iterable or array-like"); -}; diff --git a/node_modules/es5-ext/json/index.js b/node_modules/es5-ext/json/index.js deleted file mode 100644 index d26ac565..00000000 --- a/node_modules/es5-ext/json/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = { safeStringify: require("./safe-stringify") }; diff --git a/node_modules/es5-ext/json/safe-stringify.js b/node_modules/es5-ext/json/safe-stringify.js deleted file mode 100644 index 28169f13..00000000 --- a/node_modules/es5-ext/json/safe-stringify.js +++ /dev/null @@ -1,37 +0,0 @@ -"use strict"; - -var compact = require("../array/#/compact") - , isObject = require("../object/is-object") - , toArray = require("../object/to-array") - , isArray = Array.isArray - , stringify = JSON.stringify; - -module.exports = function self(value /*, replacer, space*/) { - var replacer = arguments[1], space = arguments[2]; - try { - return stringify(value, replacer, space); - } catch (e) { - if (!isObject(value)) return null; - if (typeof value.toJSON === "function") return null; - if (isArray(value)) { - return ( - "[" + - compact.call(value.map(function (item) { return self(item, replacer, space); })) + - "]" - ); - } - return ( - "{" + - compact - .call( - toArray(value, function (item, key) { - item = self(item, replacer, space); - if (!item) return null; - return stringify(key) + ":" + item; - }) - ) - .join(",") + - "}" - ); - } -}; diff --git a/node_modules/es5-ext/math/_decimal-adjust.js b/node_modules/es5-ext/math/_decimal-adjust.js deleted file mode 100644 index c6374d6d..00000000 --- a/node_modules/es5-ext/math/_decimal-adjust.js +++ /dev/null @@ -1,29 +0,0 @@ -// Credit: -// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/round -// #Decimal_rounding - -"use strict"; - -var isValue = require("../object/is-value") - , ensureInteger = require("../object/ensure-integer"); - -var split = String.prototype.split; - -module.exports = function (type) { - return function (value /*, exp*/) { - value = Number(value); - var exp = arguments[1]; - if (isValue(exp)) exp = ensureInteger(exp); - if (!value) return value; - if (!exp) return Math[type](value); - if (!isFinite(value)) return value; - - // Shift - var tokens = split.call(value, "e"); - value = Math[type](tokens[0] + "e" + ((tokens[1] || 0) - exp)); - - // Shift back - tokens = value.toString().split("e"); - return Number(tokens[0] + "e" + (Number(tokens[1] || 0) + exp)); - }; -}; diff --git a/node_modules/es5-ext/math/_pack-ieee754.js b/node_modules/es5-ext/math/_pack-ieee754.js deleted file mode 100644 index b3edf8d1..00000000 --- a/node_modules/es5-ext/math/_pack-ieee754.js +++ /dev/null @@ -1,88 +0,0 @@ -/* eslint no-bitwise: "off" */ -// Credit: https://github.com/paulmillr/es6-shim/ - -"use strict"; - -var abs = Math.abs - , floor = Math.floor - , log = Math.log - , min = Math.min - , pow = Math.pow - , LN2 = Math.LN2 - , roundToEven; - -roundToEven = function (num) { - var whole = floor(num), fraction = num - whole; - if (fraction < 0.5) return whole; - if (fraction > 0.5) return whole + 1; - return whole % 2 ? whole + 1 : whole; -}; - -// eslint-disable-next-line max-statements, max-lines-per-function -module.exports = function (value, ebits, fbits) { - var bias = (1 << (ebits - 1)) - 1, sign, e, fraction, i, bits, str, bytes; - - // Compute sign, exponent, fraction - if (isNaN(value)) { - // NaN - // http://dev.w3.org/2006/webapi/WebIDL/#es-type-mapping - e = (1 << ebits) - 1; - fraction = pow(2, fbits - 1); - sign = 0; - } else if (value === Infinity || value === -Infinity) { - e = (1 << ebits) - 1; - fraction = 0; - sign = value < 0 ? 1 : 0; - } else if (value === 0) { - e = 0; - fraction = 0; - sign = 1 / value === -Infinity ? 1 : 0; - } else { - sign = value < 0; - value = abs(value); - - if (value >= pow(2, 1 - bias)) { - e = min(floor(log(value) / LN2), 1023); - fraction = roundToEven((value / pow(2, e)) * pow(2, fbits)); - if (fraction / pow(2, fbits) >= 2) { - e += 1; - fraction = 1; - } - if (e > bias) { - // Overflow - e = (1 << ebits) - 1; - fraction = 0; - } else { - // Normal - e += bias; - fraction -= pow(2, fbits); - } - } else { - // Subnormal - e = 0; - fraction = roundToEven(value / pow(2, 1 - bias - fbits)); - } - } - - // Pack sign, exponent, fraction - bits = []; - for (i = fbits; i; i -= 1) { - bits.push(fraction % 2 ? 1 : 0); - fraction = floor(fraction / 2); - } - for (i = ebits; i; i -= 1) { - bits.push(e % 2 ? 1 : 0); - e = floor(e / 2); - } - bits.push(sign ? 1 : 0); - bits.reverse(); - str = bits.join(""); - - // Bits to bytes - bytes = []; - while (str.length) { - bytes.push(parseInt(str.substring(0, 8), 2)); - str = str.substring(8); - } - return bytes; -}; diff --git a/node_modules/es5-ext/math/_unpack-ieee754.js b/node_modules/es5-ext/math/_unpack-ieee754.js deleted file mode 100644 index 83fa9475..00000000 --- a/node_modules/es5-ext/math/_unpack-ieee754.js +++ /dev/null @@ -1,33 +0,0 @@ -/* eslint no-bitwise: "off" */ -// Credit: https://github.com/paulmillr/es6-shim/ - -"use strict"; - -var pow = Math.pow; - -module.exports = function (bytes, ebits, fbits) { - // Bytes to bits - var bits = [], i, j, bit, str, bias, sign, e, fraction; - - for (i = bytes.length; i; i -= 1) { - bit = bytes[i - 1]; - for (j = 8; j; j -= 1) { - bits.push(bit % 2 ? 1 : 0); - bit >>= 1; - } - } - bits.reverse(); - str = bits.join(""); - - // Unpack sign, exponent, fraction - bias = (1 << (ebits - 1)) - 1; - sign = parseInt(str.substring(0, 1), 2) ? -1 : 1; - e = parseInt(str.substring(1, 1 + ebits), 2); - fraction = parseInt(str.substring(1 + ebits), 2); - - // Produce number - if (e === (1 << ebits) - 1) return fraction === 0 ? sign * Infinity : NaN; - if (e > 0) return sign * pow(2, e - bias) * (1 + fraction / pow(2, fbits)); - if (fraction !== 0) return sign * pow(2, -(bias - 1)) * (fraction / pow(2, fbits)); - return sign < 0 ? -0 : 0; -}; diff --git a/node_modules/es5-ext/math/acosh/implement.js b/node_modules/es5-ext/math/acosh/implement.js deleted file mode 100644 index 9e4582fe..00000000 --- a/node_modules/es5-ext/math/acosh/implement.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -if (!require("./is-implemented")()) { - Object.defineProperty(Math, "acosh", { - value: require("./shim"), - configurable: true, - enumerable: false, - writable: true - }); -} diff --git a/node_modules/es5-ext/math/acosh/index.js b/node_modules/es5-ext/math/acosh/index.js deleted file mode 100644 index da176cb8..00000000 --- a/node_modules/es5-ext/math/acosh/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./is-implemented")() ? Math.acosh : require("./shim"); diff --git a/node_modules/es5-ext/math/acosh/is-implemented.js b/node_modules/es5-ext/math/acosh/is-implemented.js deleted file mode 100644 index 2e973013..00000000 --- a/node_modules/es5-ext/math/acosh/is-implemented.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -module.exports = function () { - var acosh = Math.acosh; - if (typeof acosh !== "function") return false; - return acosh(2) === 1.3169578969248166; -}; diff --git a/node_modules/es5-ext/math/acosh/shim.js b/node_modules/es5-ext/math/acosh/shim.js deleted file mode 100644 index 3e632ffb..00000000 --- a/node_modules/es5-ext/math/acosh/shim.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; - -var log = Math.log, sqrt = Math.sqrt; - -module.exports = function (value) { - if (isNaN(value)) return NaN; - value = Number(value); - if (value < 1) return NaN; - if (value === 1) return 0; - if (value === Infinity) return value; - return log(value + sqrt(value * value - 1)); -}; diff --git a/node_modules/es5-ext/math/asinh/implement.js b/node_modules/es5-ext/math/asinh/implement.js deleted file mode 100644 index 1c0d7e40..00000000 --- a/node_modules/es5-ext/math/asinh/implement.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -if (!require("./is-implemented")()) { - Object.defineProperty(Math, "asinh", { - value: require("./shim"), - configurable: true, - enumerable: false, - writable: true - }); -} diff --git a/node_modules/es5-ext/math/asinh/index.js b/node_modules/es5-ext/math/asinh/index.js deleted file mode 100644 index 8ca30262..00000000 --- a/node_modules/es5-ext/math/asinh/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./is-implemented")() ? Math.asinh : require("./shim"); diff --git a/node_modules/es5-ext/math/asinh/is-implemented.js b/node_modules/es5-ext/math/asinh/is-implemented.js deleted file mode 100644 index a7e0f20f..00000000 --- a/node_modules/es5-ext/math/asinh/is-implemented.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -module.exports = function () { - var asinh = Math.asinh; - if (typeof asinh !== "function") return false; - return asinh(2) === 1.4436354751788103; -}; diff --git a/node_modules/es5-ext/math/asinh/shim.js b/node_modules/es5-ext/math/asinh/shim.js deleted file mode 100644 index 30ce2e4d..00000000 --- a/node_modules/es5-ext/math/asinh/shim.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; - -var log = Math.log, sqrt = Math.sqrt; - -module.exports = function (value) { - if (isNaN(value)) return NaN; - value = Number(value); - if (value === 0) return value; - if (!isFinite(value)) return value; - if (value < 0) { - value = -value; - return -log(value + sqrt(value * value + 1)); - } - return log(value + sqrt(value * value + 1)); -}; diff --git a/node_modules/es5-ext/math/atanh/implement.js b/node_modules/es5-ext/math/atanh/implement.js deleted file mode 100644 index 53f58710..00000000 --- a/node_modules/es5-ext/math/atanh/implement.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -if (!require("./is-implemented")()) { - Object.defineProperty(Math, "atanh", { - value: require("./shim"), - configurable: true, - enumerable: false, - writable: true - }); -} diff --git a/node_modules/es5-ext/math/atanh/index.js b/node_modules/es5-ext/math/atanh/index.js deleted file mode 100644 index feff0a72..00000000 --- a/node_modules/es5-ext/math/atanh/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./is-implemented")() ? Math.atanh : require("./shim"); diff --git a/node_modules/es5-ext/math/atanh/is-implemented.js b/node_modules/es5-ext/math/atanh/is-implemented.js deleted file mode 100644 index 4787c4fa..00000000 --- a/node_modules/es5-ext/math/atanh/is-implemented.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -module.exports = function () { - var atanh = Math.atanh; - if (typeof atanh !== "function") return false; - return Math.round(atanh(0.5) * 1e15) === 549306144334055; -}; diff --git a/node_modules/es5-ext/math/atanh/shim.js b/node_modules/es5-ext/math/atanh/shim.js deleted file mode 100644 index 9383e971..00000000 --- a/node_modules/es5-ext/math/atanh/shim.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; - -var log = Math.log; - -module.exports = function (value) { - if (isNaN(value)) return NaN; - value = Number(value); - if (value < -1) return NaN; - if (value > 1) return NaN; - if (value === -1) return -Infinity; - if (value === 1) return Infinity; - if (value === 0) return value; - return 0.5 * log((1 + value) / (1 - value)); -}; diff --git a/node_modules/es5-ext/math/cbrt/implement.js b/node_modules/es5-ext/math/cbrt/implement.js deleted file mode 100644 index 826314c6..00000000 --- a/node_modules/es5-ext/math/cbrt/implement.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -if (!require("./is-implemented")()) { - Object.defineProperty(Math, "cbrt", { - value: require("./shim"), - configurable: true, - enumerable: false, - writable: true - }); -} diff --git a/node_modules/es5-ext/math/cbrt/index.js b/node_modules/es5-ext/math/cbrt/index.js deleted file mode 100644 index a6c71c65..00000000 --- a/node_modules/es5-ext/math/cbrt/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./is-implemented")() ? Math.cbrt : require("./shim"); diff --git a/node_modules/es5-ext/math/cbrt/is-implemented.js b/node_modules/es5-ext/math/cbrt/is-implemented.js deleted file mode 100644 index a8ac0db2..00000000 --- a/node_modules/es5-ext/math/cbrt/is-implemented.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -module.exports = function () { - var cbrt = Math.cbrt; - if (typeof cbrt !== "function") return false; - return cbrt(2) === 1.2599210498948732; -}; diff --git a/node_modules/es5-ext/math/cbrt/shim.js b/node_modules/es5-ext/math/cbrt/shim.js deleted file mode 100644 index 8871c552..00000000 --- a/node_modules/es5-ext/math/cbrt/shim.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; - -var pow = Math.pow; - -module.exports = function (value) { - if (isNaN(value)) return NaN; - value = Number(value); - if (value === 0) return value; - if (!isFinite(value)) return value; - if (value < 0) return -pow(-value, 1 / 3); - return pow(value, 1 / 3); -}; diff --git a/node_modules/es5-ext/math/ceil-10.js b/node_modules/es5-ext/math/ceil-10.js deleted file mode 100644 index 351221f6..00000000 --- a/node_modules/es5-ext/math/ceil-10.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./_decimal-adjust")("ceil"); diff --git a/node_modules/es5-ext/math/clz32/implement.js b/node_modules/es5-ext/math/clz32/implement.js deleted file mode 100644 index 70562df5..00000000 --- a/node_modules/es5-ext/math/clz32/implement.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -if (!require("./is-implemented")()) { - Object.defineProperty(Math, "clz32", { - value: require("./shim"), - configurable: true, - enumerable: false, - writable: true - }); -} diff --git a/node_modules/es5-ext/math/clz32/index.js b/node_modules/es5-ext/math/clz32/index.js deleted file mode 100644 index 23803359..00000000 --- a/node_modules/es5-ext/math/clz32/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./is-implemented")() ? Math.clz32 : require("./shim"); diff --git a/node_modules/es5-ext/math/clz32/is-implemented.js b/node_modules/es5-ext/math/clz32/is-implemented.js deleted file mode 100644 index ee6d8828..00000000 --- a/node_modules/es5-ext/math/clz32/is-implemented.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -module.exports = function () { - var clz32 = Math.clz32; - if (typeof clz32 !== "function") return false; - return clz32(1000) === 22; -}; diff --git a/node_modules/es5-ext/math/clz32/shim.js b/node_modules/es5-ext/math/clz32/shim.js deleted file mode 100644 index 2b526c2c..00000000 --- a/node_modules/es5-ext/math/clz32/shim.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -module.exports = function (value) { - // eslint-disable-next-line no-bitwise - value >>>= 0; - return value ? 32 - value.toString(2).length : 32; -}; diff --git a/node_modules/es5-ext/math/cosh/implement.js b/node_modules/es5-ext/math/cosh/implement.js deleted file mode 100644 index 74e7eea3..00000000 --- a/node_modules/es5-ext/math/cosh/implement.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -if (!require("./is-implemented")()) { - Object.defineProperty(Math, "cosh", { - value: require("./shim"), - configurable: true, - enumerable: false, - writable: true - }); -} diff --git a/node_modules/es5-ext/math/cosh/index.js b/node_modules/es5-ext/math/cosh/index.js deleted file mode 100644 index c7a71673..00000000 --- a/node_modules/es5-ext/math/cosh/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./is-implemented")() ? Math.cosh : require("./shim"); diff --git a/node_modules/es5-ext/math/cosh/is-implemented.js b/node_modules/es5-ext/math/cosh/is-implemented.js deleted file mode 100644 index 7173054c..00000000 --- a/node_modules/es5-ext/math/cosh/is-implemented.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -module.exports = function () { - var cosh = Math.cosh; - if (typeof cosh !== "function") return false; - return cosh(1) === 1.5430806348152437; -}; diff --git a/node_modules/es5-ext/math/cosh/shim.js b/node_modules/es5-ext/math/cosh/shim.js deleted file mode 100644 index c762c84d..00000000 --- a/node_modules/es5-ext/math/cosh/shim.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; - -var exp = Math.exp; - -module.exports = function (value) { - if (isNaN(value)) return NaN; - value = Number(value); - if (value === 0) return 1; - if (!isFinite(value)) return Infinity; - return (exp(value) + exp(-value)) / 2; -}; diff --git a/node_modules/es5-ext/math/expm1/implement.js b/node_modules/es5-ext/math/expm1/implement.js deleted file mode 100644 index 9739bf5a..00000000 --- a/node_modules/es5-ext/math/expm1/implement.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -if (!require("./is-implemented")()) { - Object.defineProperty(Math, "expm1", { - value: require("./shim"), - configurable: true, - enumerable: false, - writable: true - }); -} diff --git a/node_modules/es5-ext/math/expm1/index.js b/node_modules/es5-ext/math/expm1/index.js deleted file mode 100644 index daf43951..00000000 --- a/node_modules/es5-ext/math/expm1/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./is-implemented")() ? Math.expm1 : require("./shim"); diff --git a/node_modules/es5-ext/math/expm1/is-implemented.js b/node_modules/es5-ext/math/expm1/is-implemented.js deleted file mode 100644 index dfd056e0..00000000 --- a/node_modules/es5-ext/math/expm1/is-implemented.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -module.exports = function () { - var expm1 = Math.expm1; - if (typeof expm1 !== "function") return false; - return expm1(1).toFixed(15) === "1.718281828459045"; -}; diff --git a/node_modules/es5-ext/math/expm1/shim.js b/node_modules/es5-ext/math/expm1/shim.js deleted file mode 100644 index 6daf2bfd..00000000 --- a/node_modules/es5-ext/math/expm1/shim.js +++ /dev/null @@ -1,16 +0,0 @@ -// Thanks: https://github.com/monolithed/ECMAScript-6 - -"use strict"; - -var exp = Math.exp; - -module.exports = function (value) { - if (isNaN(value)) return NaN; - value = Number(value); - if (value === 0) return value; - if (value === Infinity) return Infinity; - if (value === -Infinity) return -1; - - if (value > -1.0e-6 && value < 1.0e-6) return value + (value * value) / 2; - return exp(value) - 1; -}; diff --git a/node_modules/es5-ext/math/floor-10.js b/node_modules/es5-ext/math/floor-10.js deleted file mode 100644 index 3cb0c119..00000000 --- a/node_modules/es5-ext/math/floor-10.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./_decimal-adjust")("floor"); diff --git a/node_modules/es5-ext/math/fround/implement.js b/node_modules/es5-ext/math/fround/implement.js deleted file mode 100644 index 9ce9cf27..00000000 --- a/node_modules/es5-ext/math/fround/implement.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -if (!require("./is-implemented")()) { - Object.defineProperty(Math, "fround", { - value: require("./shim"), - configurable: true, - enumerable: false, - writable: true - }); -} diff --git a/node_modules/es5-ext/math/fround/index.js b/node_modules/es5-ext/math/fround/index.js deleted file mode 100644 index 9f0dbc05..00000000 --- a/node_modules/es5-ext/math/fround/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./is-implemented")() ? Math.fround : require("./shim"); diff --git a/node_modules/es5-ext/math/fround/is-implemented.js b/node_modules/es5-ext/math/fround/is-implemented.js deleted file mode 100644 index ad2b705d..00000000 --- a/node_modules/es5-ext/math/fround/is-implemented.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -module.exports = function () { - var fround = Math.fround; - if (typeof fround !== "function") return false; - return fround(1.337) === 1.3370000123977661; -}; diff --git a/node_modules/es5-ext/math/fround/shim.js b/node_modules/es5-ext/math/fround/shim.js deleted file mode 100644 index b0dfaabc..00000000 --- a/node_modules/es5-ext/math/fround/shim.js +++ /dev/null @@ -1,33 +0,0 @@ -/* global Float32Array */ - -// Credit: https://github.com/paulmillr/es6-shim/blob/master/es6-shim.js - -"use strict"; - -var toFloat32; - -if (typeof Float32Array === "undefined") { - toFloat32 = (function () { - var pack = require("../_pack-ieee754") - , unpack = require("../_unpack-ieee754"); - - return function (value) { return unpack(pack(value, 8, 23), 8, 23); }; - })(); -} else { - toFloat32 = (function () { - var float32Array = new Float32Array(1); - return function (num) { - float32Array[0] = num; - return float32Array[0]; - }; - })(); -} - -module.exports = function (value) { - if (isNaN(value)) return NaN; - value = Number(value); - if (value === 0) return value; - if (!isFinite(value)) return value; - - return toFloat32(value); -}; diff --git a/node_modules/es5-ext/math/hypot/implement.js b/node_modules/es5-ext/math/hypot/implement.js deleted file mode 100644 index e051add1..00000000 --- a/node_modules/es5-ext/math/hypot/implement.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -if (!require("./is-implemented")()) { - Object.defineProperty(Math, "hypot", { - value: require("./shim"), - configurable: true, - enumerable: false, - writable: true - }); -} diff --git a/node_modules/es5-ext/math/hypot/index.js b/node_modules/es5-ext/math/hypot/index.js deleted file mode 100644 index f8de46b2..00000000 --- a/node_modules/es5-ext/math/hypot/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./is-implemented")() ? Math.hypot : require("./shim"); diff --git a/node_modules/es5-ext/math/hypot/is-implemented.js b/node_modules/es5-ext/math/hypot/is-implemented.js deleted file mode 100644 index d317bc7e..00000000 --- a/node_modules/es5-ext/math/hypot/is-implemented.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -module.exports = function () { - var hypot = Math.hypot; - if (typeof hypot !== "function") return false; - return hypot(3, 4) === 5; -}; diff --git a/node_modules/es5-ext/math/hypot/shim.js b/node_modules/es5-ext/math/hypot/shim.js deleted file mode 100644 index 2d0eec7c..00000000 --- a/node_modules/es5-ext/math/hypot/shim.js +++ /dev/null @@ -1,37 +0,0 @@ -// Thanks for hints: https://github.com/paulmillr/es6-shim - -"use strict"; - -var some = Array.prototype.some - , abs = Math.abs - , sqrt = Math.sqrt - , compare = function (val1, val2) { return val2 - val1; } - , divide = function (value) { return value / this; } - , add = function (sum, number) { return sum + number * number; }; - -// eslint-disable-next-line no-unused-vars -module.exports = function (val1, val2 /*, …valn*/) { - var result, numbers; - if (!arguments.length) return 0; - some.call(arguments, function (val) { - if (isNaN(val)) { - result = NaN; - return false; - } - if (!isFinite(val)) { - result = Infinity; - return true; - } - if (result !== undefined) return false; - val = Number(val); - if (val === 0) return false; - if (numbers) numbers.push(abs(val)); - else numbers = [abs(val)]; - return false; - }); - if (result !== undefined) return result; - if (!numbers) return 0; - - numbers.sort(compare); - return numbers[0] * sqrt(numbers.map(divide, numbers[0]).reduce(add, 0)); -}; diff --git a/node_modules/es5-ext/math/imul/implement.js b/node_modules/es5-ext/math/imul/implement.js deleted file mode 100644 index 3aff4798..00000000 --- a/node_modules/es5-ext/math/imul/implement.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -if (!require("./is-implemented")()) { - Object.defineProperty(Math, "imul", { - value: require("./shim"), - configurable: true, - enumerable: false, - writable: true - }); -} diff --git a/node_modules/es5-ext/math/imul/index.js b/node_modules/es5-ext/math/imul/index.js deleted file mode 100644 index 969124ce..00000000 --- a/node_modules/es5-ext/math/imul/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./is-implemented")() ? Math.imul : require("./shim"); diff --git a/node_modules/es5-ext/math/imul/is-implemented.js b/node_modules/es5-ext/math/imul/is-implemented.js deleted file mode 100644 index 0f329198..00000000 --- a/node_modules/es5-ext/math/imul/is-implemented.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -module.exports = function () { - var imul = Math.imul; - if (typeof imul !== "function") return false; - return imul(-1, 8) === -8; -}; diff --git a/node_modules/es5-ext/math/imul/shim.js b/node_modules/es5-ext/math/imul/shim.js deleted file mode 100644 index 7511707a..00000000 --- a/node_modules/es5-ext/math/imul/shim.js +++ /dev/null @@ -1,17 +0,0 @@ -/* eslint no-bitwise: "off" */ - -// Thanks: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference -// /Global_Objects/Math/imul - -"use strict"; - -module.exports = function (val1, val2) { - var xh = (val1 >>> 16) & 0xffff - , xl = val1 & 0xffff - , yh = (val2 >>> 16) & 0xffff - , yl = val2 & 0xffff; - - // The shift by 0 fixes the sign on the high part - // the final |0 converts the unsigned value into a signed value - return (xl * yl + (((xh * yl + xl * yh) << 16) >>> 0)) | 0; -}; diff --git a/node_modules/es5-ext/math/index.js b/node_modules/es5-ext/math/index.js deleted file mode 100644 index a59269cc..00000000 --- a/node_modules/es5-ext/math/index.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; - -module.exports = { - acosh: require("./acosh"), - asinh: require("./asinh"), - atanh: require("./atanh"), - cbrt: require("./cbrt"), - ceil10: require("./ceil-10"), - clz32: require("./clz32"), - cosh: require("./cosh"), - expm1: require("./expm1"), - floor10: require("./floor-10"), - fround: require("./fround"), - hypot: require("./hypot"), - imul: require("./imul"), - log10: require("./log10"), - log2: require("./log2"), - log1p: require("./log1p"), - round10: require("./round-10"), - sign: require("./sign"), - sinh: require("./sinh"), - tanh: require("./tanh"), - trunc: require("./trunc") -}; diff --git a/node_modules/es5-ext/math/log10/implement.js b/node_modules/es5-ext/math/log10/implement.js deleted file mode 100644 index f6153c14..00000000 --- a/node_modules/es5-ext/math/log10/implement.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -if (!require("./is-implemented")()) { - Object.defineProperty(Math, "log10", { - value: require("./shim"), - configurable: true, - enumerable: false, - writable: true - }); -} diff --git a/node_modules/es5-ext/math/log10/index.js b/node_modules/es5-ext/math/log10/index.js deleted file mode 100644 index abda55b8..00000000 --- a/node_modules/es5-ext/math/log10/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./is-implemented")() ? Math.log10 : require("./shim"); diff --git a/node_modules/es5-ext/math/log10/is-implemented.js b/node_modules/es5-ext/math/log10/is-implemented.js deleted file mode 100644 index f2217597..00000000 --- a/node_modules/es5-ext/math/log10/is-implemented.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -module.exports = function () { - var log10 = Math.log10; - if (typeof log10 !== "function") return false; - return log10(2) === 0.3010299956639812; -}; diff --git a/node_modules/es5-ext/math/log10/shim.js b/node_modules/es5-ext/math/log10/shim.js deleted file mode 100644 index e8599a26..00000000 --- a/node_modules/es5-ext/math/log10/shim.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; - -var log = Math.log, LOG10E = Math.LOG10E; - -module.exports = function (value) { - if (isNaN(value)) return NaN; - value = Number(value); - if (value < 0) return NaN; - if (value === 0) return -Infinity; - if (value === 1) return 0; - if (value === Infinity) return Infinity; - - return log(value) * LOG10E; -}; diff --git a/node_modules/es5-ext/math/log1p/implement.js b/node_modules/es5-ext/math/log1p/implement.js deleted file mode 100644 index 21e94e6c..00000000 --- a/node_modules/es5-ext/math/log1p/implement.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -if (!require("./is-implemented")()) { - Object.defineProperty(Math, "log1p", { - value: require("./shim"), - configurable: true, - enumerable: false, - writable: true - }); -} diff --git a/node_modules/es5-ext/math/log1p/index.js b/node_modules/es5-ext/math/log1p/index.js deleted file mode 100644 index 76eacc53..00000000 --- a/node_modules/es5-ext/math/log1p/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./is-implemented")() ? Math.log1p : require("./shim"); diff --git a/node_modules/es5-ext/math/log1p/is-implemented.js b/node_modules/es5-ext/math/log1p/is-implemented.js deleted file mode 100644 index 7626ab47..00000000 --- a/node_modules/es5-ext/math/log1p/is-implemented.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -module.exports = function () { - var log1p = Math.log1p; - if (typeof log1p !== "function") return false; - return log1p(1) === 0.6931471805599453; -}; diff --git a/node_modules/es5-ext/math/log1p/shim.js b/node_modules/es5-ext/math/log1p/shim.js deleted file mode 100644 index 15f1182f..00000000 --- a/node_modules/es5-ext/math/log1p/shim.js +++ /dev/null @@ -1,17 +0,0 @@ -// Thanks: https://github.com/monolithed/ECMAScript-6/blob/master/ES6.js - -"use strict"; - -var log = Math.log; - -module.exports = function (value) { - if (isNaN(value)) return NaN; - value = Number(value); - if (value < -1) return NaN; - if (value === -1) return -Infinity; - if (value === 0) return value; - if (value === Infinity) return Infinity; - - if (value > -1.0e-8 && value < 1.0e-8) return value - (value * value) / 2; - return log(1 + value); -}; diff --git a/node_modules/es5-ext/math/log2/implement.js b/node_modules/es5-ext/math/log2/implement.js deleted file mode 100644 index 91c06b1c..00000000 --- a/node_modules/es5-ext/math/log2/implement.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -if (!require("./is-implemented")()) { - Object.defineProperty(Math, "log2", { - value: require("./shim"), - configurable: true, - enumerable: false, - writable: true - }); -} diff --git a/node_modules/es5-ext/math/log2/index.js b/node_modules/es5-ext/math/log2/index.js deleted file mode 100644 index a5619770..00000000 --- a/node_modules/es5-ext/math/log2/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./is-implemented")() ? Math.log2 : require("./shim"); diff --git a/node_modules/es5-ext/math/log2/is-implemented.js b/node_modules/es5-ext/math/log2/is-implemented.js deleted file mode 100644 index c70963f6..00000000 --- a/node_modules/es5-ext/math/log2/is-implemented.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -module.exports = function () { - var log2 = Math.log2; - if (typeof log2 !== "function") return false; - return log2(3).toFixed(15) === "1.584962500721156"; -}; diff --git a/node_modules/es5-ext/math/log2/shim.js b/node_modules/es5-ext/math/log2/shim.js deleted file mode 100644 index 51fcdae9..00000000 --- a/node_modules/es5-ext/math/log2/shim.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; - -var log = Math.log, LOG2E = Math.LOG2E; - -module.exports = function (value) { - if (isNaN(value)) return NaN; - value = Number(value); - if (value < 0) return NaN; - if (value === 0) return -Infinity; - if (value === 1) return 0; - if (value === Infinity) return Infinity; - - return log(value) * LOG2E; -}; diff --git a/node_modules/es5-ext/math/round-10.js b/node_modules/es5-ext/math/round-10.js deleted file mode 100644 index 228c2351..00000000 --- a/node_modules/es5-ext/math/round-10.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./_decimal-adjust")("round"); diff --git a/node_modules/es5-ext/math/sign/implement.js b/node_modules/es5-ext/math/sign/implement.js deleted file mode 100644 index daf1769d..00000000 --- a/node_modules/es5-ext/math/sign/implement.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -if (!require("./is-implemented")()) { - Object.defineProperty(Math, "sign", { - value: require("./shim"), - configurable: true, - enumerable: false, - writable: true - }); -} diff --git a/node_modules/es5-ext/math/sign/index.js b/node_modules/es5-ext/math/sign/index.js deleted file mode 100644 index d2659cb5..00000000 --- a/node_modules/es5-ext/math/sign/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./is-implemented")() ? Math.sign : require("./shim"); diff --git a/node_modules/es5-ext/math/sign/is-implemented.js b/node_modules/es5-ext/math/sign/is-implemented.js deleted file mode 100644 index 4318cf2b..00000000 --- a/node_modules/es5-ext/math/sign/is-implemented.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -module.exports = function () { - var sign = Math.sign; - if (typeof sign !== "function") return false; - return sign(10) === 1 && sign(-20) === -1; -}; diff --git a/node_modules/es5-ext/math/sign/shim.js b/node_modules/es5-ext/math/sign/shim.js deleted file mode 100644 index 9acb4959..00000000 --- a/node_modules/es5-ext/math/sign/shim.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -module.exports = function (value) { - value = Number(value); - if (isNaN(value) || value === 0) return value; - return value > 0 ? 1 : -1; -}; diff --git a/node_modules/es5-ext/math/sinh/implement.js b/node_modules/es5-ext/math/sinh/implement.js deleted file mode 100644 index 4655f6bb..00000000 --- a/node_modules/es5-ext/math/sinh/implement.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -if (!require("./is-implemented")()) { - Object.defineProperty(Math, "sinh", { - value: require("./shim"), - configurable: true, - enumerable: false, - writable: true - }); -} diff --git a/node_modules/es5-ext/math/sinh/index.js b/node_modules/es5-ext/math/sinh/index.js deleted file mode 100644 index 107ef2ee..00000000 --- a/node_modules/es5-ext/math/sinh/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./is-implemented")() ? Math.sinh : require("./shim"); diff --git a/node_modules/es5-ext/math/sinh/is-implemented.js b/node_modules/es5-ext/math/sinh/is-implemented.js deleted file mode 100644 index aad22b0a..00000000 --- a/node_modules/es5-ext/math/sinh/is-implemented.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -module.exports = function () { - var sinh = Math.sinh; - if (typeof sinh !== "function") return false; - return sinh(1) === 1.1752011936438014 && sinh(Number.MIN_VALUE) === 5e-324; -}; diff --git a/node_modules/es5-ext/math/sinh/shim.js b/node_modules/es5-ext/math/sinh/shim.js deleted file mode 100644 index b161eca7..00000000 --- a/node_modules/es5-ext/math/sinh/shim.js +++ /dev/null @@ -1,18 +0,0 @@ -// Parts of implementation taken from es6-shim project -// See: https://github.com/paulmillr/es6-shim/blob/master/es6-shim.js - -"use strict"; - -var expm1 = require("../expm1") - , abs = Math.abs - , exp = Math.exp - , e = Math.E; - -module.exports = function (value) { - if (isNaN(value)) return NaN; - value = Number(value); - if (value === 0) return value; - if (!isFinite(value)) return value; - if (abs(value) < 1) return (expm1(value) - expm1(-value)) / 2; - return ((exp(value - 1) - exp(-value - 1)) * e) / 2; -}; diff --git a/node_modules/es5-ext/math/tanh/implement.js b/node_modules/es5-ext/math/tanh/implement.js deleted file mode 100644 index 52d29576..00000000 --- a/node_modules/es5-ext/math/tanh/implement.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -if (!require("./is-implemented")()) { - Object.defineProperty(Math, "tanh", { - value: require("./shim"), - configurable: true, - enumerable: false, - writable: true - }); -} diff --git a/node_modules/es5-ext/math/tanh/index.js b/node_modules/es5-ext/math/tanh/index.js deleted file mode 100644 index 54b32513..00000000 --- a/node_modules/es5-ext/math/tanh/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./is-implemented")() ? Math.tanh : require("./shim"); diff --git a/node_modules/es5-ext/math/tanh/is-implemented.js b/node_modules/es5-ext/math/tanh/is-implemented.js deleted file mode 100644 index b6226b4d..00000000 --- a/node_modules/es5-ext/math/tanh/is-implemented.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -module.exports = function () { - var tanh = Math.tanh; - if (typeof tanh !== "function") return false; - return tanh(1) === 0.7615941559557649 && tanh(Number.MAX_VALUE) === 1; -}; diff --git a/node_modules/es5-ext/math/tanh/shim.js b/node_modules/es5-ext/math/tanh/shim.js deleted file mode 100644 index 974dd7cd..00000000 --- a/node_modules/es5-ext/math/tanh/shim.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; - -var exp = Math.exp; - -module.exports = function (value) { - var num1, num2; - if (isNaN(value)) return NaN; - value = Number(value); - if (value === 0) return value; - if (value === Infinity) return 1; - if (value === -Infinity) return -1; - num1 = exp(value); - if (num1 === Infinity) return 1; - num2 = exp(-value); - if (num2 === Infinity) return -1; - return (num1 - num2) / (num1 + num2); -}; diff --git a/node_modules/es5-ext/math/trunc/implement.js b/node_modules/es5-ext/math/trunc/implement.js deleted file mode 100644 index bf1bf64f..00000000 --- a/node_modules/es5-ext/math/trunc/implement.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -if (!require("./is-implemented")()) { - Object.defineProperty(Math, "trunc", { - value: require("./shim"), - configurable: true, - enumerable: false, - writable: true - }); -} diff --git a/node_modules/es5-ext/math/trunc/index.js b/node_modules/es5-ext/math/trunc/index.js deleted file mode 100644 index 8e3874c6..00000000 --- a/node_modules/es5-ext/math/trunc/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./is-implemented")() ? Math.trunc : require("./shim"); diff --git a/node_modules/es5-ext/math/trunc/is-implemented.js b/node_modules/es5-ext/math/trunc/is-implemented.js deleted file mode 100644 index 861b5c0e..00000000 --- a/node_modules/es5-ext/math/trunc/is-implemented.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -module.exports = function () { - var trunc = Math.trunc; - if (typeof trunc !== "function") return false; - return trunc(13.67) === 13 && trunc(-13.67) === -13; -}; diff --git a/node_modules/es5-ext/math/trunc/shim.js b/node_modules/es5-ext/math/trunc/shim.js deleted file mode 100644 index bf6ac8cc..00000000 --- a/node_modules/es5-ext/math/trunc/shim.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; - -var floor = Math.floor; - -module.exports = function (value) { - if (isNaN(value)) return NaN; - value = Number(value); - if (value === 0) return value; - if (value === Infinity) return Infinity; - if (value === -Infinity) return -Infinity; - if (value > 0) return floor(value); - return -floor(-value); -}; diff --git a/node_modules/es5-ext/number/#/index.js b/node_modules/es5-ext/number/#/index.js deleted file mode 100644 index 50b64187..00000000 --- a/node_modules/es5-ext/number/#/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = { pad: require("./pad") }; diff --git a/node_modules/es5-ext/number/#/pad.js b/node_modules/es5-ext/number/#/pad.js deleted file mode 100644 index f5af8697..00000000 --- a/node_modules/es5-ext/number/#/pad.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; - -var pad = require("../../string/#/pad") - , toPosInt = require("../to-pos-integer") - , toFixed = Number.prototype.toFixed; - -module.exports = function (length /*, precision*/) { - var precision; - length = toPosInt(length); - precision = toPosInt(arguments[1]); - - return pad.call( - precision ? toFixed.call(this, precision) : this, "0", - length + (precision ? 1 + precision : 0) - ); -}; diff --git a/node_modules/es5-ext/number/epsilon/implement.js b/node_modules/es5-ext/number/epsilon/implement.js deleted file mode 100644 index 5a22cf5b..00000000 --- a/node_modules/es5-ext/number/epsilon/implement.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -if (!require("./is-implemented")()) { - Object.defineProperty(Number, "EPSILON", { - value: require("./"), - configurable: false, - enumerable: false, - writable: false - }); -} diff --git a/node_modules/es5-ext/number/epsilon/index.js b/node_modules/es5-ext/number/epsilon/index.js deleted file mode 100644 index 12e8a8d2..00000000 --- a/node_modules/es5-ext/number/epsilon/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = 2.220446049250313e-16; diff --git a/node_modules/es5-ext/number/epsilon/is-implemented.js b/node_modules/es5-ext/number/epsilon/is-implemented.js deleted file mode 100644 index 5ddc9d64..00000000 --- a/node_modules/es5-ext/number/epsilon/is-implemented.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = function () { return typeof Number.EPSILON === "number"; }; diff --git a/node_modules/es5-ext/number/index.js b/node_modules/es5-ext/number/index.js deleted file mode 100644 index b57ff150..00000000 --- a/node_modules/es5-ext/number/index.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; - -module.exports = { - "#": require("./#"), - "EPSILON": require("./epsilon"), - "isFinite": require("./is-finite"), - "isInteger": require("./is-integer"), - "isNaN": require("./is-nan"), - "isNatural": require("./is-natural"), - "isNumber": require("./is-number"), - "isSafeInteger": require("./is-safe-integer"), - "MAX_SAFE_INTEGER": require("./max-safe-integer"), - "MIN_SAFE_INTEGER": require("./min-safe-integer"), - "toInteger": require("./to-integer"), - "toPosInteger": require("./to-pos-integer"), - "toUint32": require("./to-uint32") -}; diff --git a/node_modules/es5-ext/number/is-finite/implement.js b/node_modules/es5-ext/number/is-finite/implement.js deleted file mode 100644 index 41109fb6..00000000 --- a/node_modules/es5-ext/number/is-finite/implement.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -if (!require("./is-implemented")()) { - Object.defineProperty(Number, "isFinite", { - value: require("./shim"), - configurable: true, - enumerable: false, - writable: true - }); -} diff --git a/node_modules/es5-ext/number/is-finite/index.js b/node_modules/es5-ext/number/is-finite/index.js deleted file mode 100644 index f3a71127..00000000 --- a/node_modules/es5-ext/number/is-finite/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./is-implemented")() ? Number.isFinite : require("./shim"); diff --git a/node_modules/es5-ext/number/is-finite/is-implemented.js b/node_modules/es5-ext/number/is-finite/is-implemented.js deleted file mode 100644 index eadd0507..00000000 --- a/node_modules/es5-ext/number/is-finite/is-implemented.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -module.exports = function () { - var numberIsFinite = Number.isFinite; - if (typeof numberIsFinite !== "function") return false; - return !numberIsFinite("23") && numberIsFinite(34) && !numberIsFinite(Infinity); -}; diff --git a/node_modules/es5-ext/number/is-finite/shim.js b/node_modules/es5-ext/number/is-finite/shim.js deleted file mode 100644 index ce700f6a..00000000 --- a/node_modules/es5-ext/number/is-finite/shim.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = function (value) { return typeof value === "number" && isFinite(value); }; diff --git a/node_modules/es5-ext/number/is-integer/implement.js b/node_modules/es5-ext/number/is-integer/implement.js deleted file mode 100644 index 48b4cd21..00000000 --- a/node_modules/es5-ext/number/is-integer/implement.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -if (!require("./is-implemented")()) { - Object.defineProperty(Number, "isInteger", { - value: require("./shim"), - configurable: true, - enumerable: false, - writable: true - }); -} diff --git a/node_modules/es5-ext/number/is-integer/index.js b/node_modules/es5-ext/number/is-integer/index.js deleted file mode 100644 index 2805b11a..00000000 --- a/node_modules/es5-ext/number/is-integer/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./is-implemented")() ? Number.isInteger : require("./shim"); diff --git a/node_modules/es5-ext/number/is-integer/is-implemented.js b/node_modules/es5-ext/number/is-integer/is-implemented.js deleted file mode 100644 index f357c717..00000000 --- a/node_modules/es5-ext/number/is-integer/is-implemented.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -module.exports = function () { - var isInteger = Number.isInteger; - if (typeof isInteger !== "function") return false; - return !isInteger("23") && isInteger(34) && !isInteger(32.34); -}; diff --git a/node_modules/es5-ext/number/is-integer/shim.js b/node_modules/es5-ext/number/is-integer/shim.js deleted file mode 100644 index 12058b5a..00000000 --- a/node_modules/es5-ext/number/is-integer/shim.js +++ /dev/null @@ -1,8 +0,0 @@ -// Credit: http://www.2ality.com/2014/05/is-integer.html - -"use strict"; - -module.exports = function (value) { - if (typeof value !== "number") return false; - return value % 1 === 0; -}; diff --git a/node_modules/es5-ext/number/is-nan/implement.js b/node_modules/es5-ext/number/is-nan/implement.js deleted file mode 100644 index f704e4c1..00000000 --- a/node_modules/es5-ext/number/is-nan/implement.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -if (!require("./is-implemented")()) { - Object.defineProperty(Number, "isNaN", { - value: require("./shim"), - configurable: true, - enumerable: false, - writable: true - }); -} diff --git a/node_modules/es5-ext/number/is-nan/index.js b/node_modules/es5-ext/number/is-nan/index.js deleted file mode 100644 index 2cec8fc3..00000000 --- a/node_modules/es5-ext/number/is-nan/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./is-implemented")() ? Number.isNaN : require("./shim"); diff --git a/node_modules/es5-ext/number/is-nan/is-implemented.js b/node_modules/es5-ext/number/is-nan/is-implemented.js deleted file mode 100644 index 756838a4..00000000 --- a/node_modules/es5-ext/number/is-nan/is-implemented.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -module.exports = function () { - var numberIsNaN = Number.isNaN; - if (typeof numberIsNaN !== "function") return false; - return !numberIsNaN({}) && numberIsNaN(NaN) && !numberIsNaN(34); -}; diff --git a/node_modules/es5-ext/number/is-nan/shim.js b/node_modules/es5-ext/number/is-nan/shim.js deleted file mode 100644 index b5730d1d..00000000 --- a/node_modules/es5-ext/number/is-nan/shim.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; - -module.exports = function (value) { - // eslint-disable-next-line no-self-compare - return value !== value; -}; diff --git a/node_modules/es5-ext/number/is-natural.js b/node_modules/es5-ext/number/is-natural.js deleted file mode 100644 index 2bbb5a21..00000000 --- a/node_modules/es5-ext/number/is-natural.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; - -var isInteger = require("./is-integer"); - -module.exports = function (num) { return isInteger(num) && num >= 0; }; diff --git a/node_modules/es5-ext/number/is-number.js b/node_modules/es5-ext/number/is-number.js deleted file mode 100644 index 5c11a52e..00000000 --- a/node_modules/es5-ext/number/is-number.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; - -var objToString = Object.prototype.toString, id = objToString.call(1); - -module.exports = function (value) { - return ( - typeof value === "number" || - value instanceof Number || - (typeof value === "object" && objToString.call(value) === id) - ); -}; diff --git a/node_modules/es5-ext/number/is-safe-integer/implement.js b/node_modules/es5-ext/number/is-safe-integer/implement.js deleted file mode 100644 index 571b214f..00000000 --- a/node_modules/es5-ext/number/is-safe-integer/implement.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -if (!require("./is-implemented")()) { - Object.defineProperty(Number, "isSafeInteger", { - value: require("./shim"), - configurable: true, - enumerable: false, - writable: true - }); -} diff --git a/node_modules/es5-ext/number/is-safe-integer/index.js b/node_modules/es5-ext/number/is-safe-integer/index.js deleted file mode 100644 index 26c2b9f5..00000000 --- a/node_modules/es5-ext/number/is-safe-integer/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./is-implemented")() ? Number.isSafeInteger : require("./shim"); diff --git a/node_modules/es5-ext/number/is-safe-integer/is-implemented.js b/node_modules/es5-ext/number/is-safe-integer/is-implemented.js deleted file mode 100644 index 5ed37636..00000000 --- a/node_modules/es5-ext/number/is-safe-integer/is-implemented.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -module.exports = function () { - var isSafeInteger = Number.isSafeInteger; - if (typeof isSafeInteger !== "function") return false; - return !isSafeInteger("23") && isSafeInteger(34232322323) && !isSafeInteger(9007199254740992); -}; diff --git a/node_modules/es5-ext/number/is-safe-integer/shim.js b/node_modules/es5-ext/number/is-safe-integer/shim.js deleted file mode 100644 index fb4f4d55..00000000 --- a/node_modules/es5-ext/number/is-safe-integer/shim.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -var isInteger = require("../is-integer/shim") - , maxValue = require("../max-safe-integer") - , abs = Math.abs; - -module.exports = function (value) { - if (!isInteger(value)) return false; - return abs(value) <= maxValue; -}; diff --git a/node_modules/es5-ext/number/max-safe-integer/implement.js b/node_modules/es5-ext/number/max-safe-integer/implement.js deleted file mode 100644 index 4ee32310..00000000 --- a/node_modules/es5-ext/number/max-safe-integer/implement.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -if (!require("./is-implemented")()) { - Object.defineProperty(Number, "MAX_SAFE_INTEGER", { - value: require("./"), - configurable: false, - enumerable: false, - writable: false - }); -} diff --git a/node_modules/es5-ext/number/max-safe-integer/index.js b/node_modules/es5-ext/number/max-safe-integer/index.js deleted file mode 100644 index 75a41e7c..00000000 --- a/node_modules/es5-ext/number/max-safe-integer/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = Math.pow(2, 53) - 1; diff --git a/node_modules/es5-ext/number/max-safe-integer/is-implemented.js b/node_modules/es5-ext/number/max-safe-integer/is-implemented.js deleted file mode 100644 index 3d6e9141..00000000 --- a/node_modules/es5-ext/number/max-safe-integer/is-implemented.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = function () { return typeof Number.MAX_SAFE_INTEGER === "number"; }; diff --git a/node_modules/es5-ext/number/min-safe-integer/implement.js b/node_modules/es5-ext/number/min-safe-integer/implement.js deleted file mode 100644 index 979dc394..00000000 --- a/node_modules/es5-ext/number/min-safe-integer/implement.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -if (!require("./is-implemented")()) { - Object.defineProperty(Number, "MIN_SAFE_INTEGER", { - value: require("./"), - configurable: false, - enumerable: false, - writable: false - }); -} diff --git a/node_modules/es5-ext/number/min-safe-integer/index.js b/node_modules/es5-ext/number/min-safe-integer/index.js deleted file mode 100644 index cde45146..00000000 --- a/node_modules/es5-ext/number/min-safe-integer/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = -(Math.pow(2, 53) - 1); diff --git a/node_modules/es5-ext/number/min-safe-integer/is-implemented.js b/node_modules/es5-ext/number/min-safe-integer/is-implemented.js deleted file mode 100644 index 71e6a315..00000000 --- a/node_modules/es5-ext/number/min-safe-integer/is-implemented.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = function () { return typeof Number.MIN_SAFE_INTEGER === "number"; }; diff --git a/node_modules/es5-ext/number/to-integer.js b/node_modules/es5-ext/number/to-integer.js deleted file mode 100644 index 4df5572a..00000000 --- a/node_modules/es5-ext/number/to-integer.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; - -var sign = require("../math/sign") - , abs = Math.abs - , floor = Math.floor; - -module.exports = function (value) { - if (isNaN(value)) return 0; - value = Number(value); - if (value === 0 || !isFinite(value)) return value; - return sign(value) * floor(abs(value)); -}; diff --git a/node_modules/es5-ext/number/to-pos-integer.js b/node_modules/es5-ext/number/to-pos-integer.js deleted file mode 100644 index 28f6d401..00000000 --- a/node_modules/es5-ext/number/to-pos-integer.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; - -var toInteger = require("./to-integer") - , max = Math.max; - -module.exports = function (value) { return max(0, toInteger(value)); }; diff --git a/node_modules/es5-ext/number/to-uint32.js b/node_modules/es5-ext/number/to-uint32.js deleted file mode 100644 index cb3590aa..00000000 --- a/node_modules/es5-ext/number/to-uint32.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; - -module.exports = function (value) { - // eslint-disable-next-line no-bitwise - return value >>> 0; -}; diff --git a/node_modules/es5-ext/object/_iterate.js b/node_modules/es5-ext/object/_iterate.js deleted file mode 100644 index 1f0c85fd..00000000 --- a/node_modules/es5-ext/object/_iterate.js +++ /dev/null @@ -1,30 +0,0 @@ -// Internal method, used by iteration functions. -// Calls a function for each key-value pair found in object -// Optionally takes compareFn to iterate object in specific order - -"use strict"; - -var callable = require("./valid-callable") - , value = require("./valid-value") - , bind = Function.prototype.bind - , call = Function.prototype.call - , keys = Object.keys - , objPropertyIsEnumerable = Object.prototype.propertyIsEnumerable; - -module.exports = function (method, defVal) { - return function (obj, cb /*, thisArg, compareFn*/) { - var list, thisArg = arguments[2], compareFn = arguments[3]; - obj = Object(value(obj)); - callable(cb); - - list = keys(obj); - if (compareFn) { - list.sort(typeof compareFn === "function" ? bind.call(compareFn, obj) : undefined); - } - if (typeof method !== "function") method = list[method]; - return call.call(method, list, function (key, index) { - if (!objPropertyIsEnumerable.call(obj, key)) return defVal; - return call.call(cb, thisArg, obj[key], key, obj, index); - }); - }; -}; diff --git a/node_modules/es5-ext/object/assign-deep.js b/node_modules/es5-ext/object/assign-deep.js deleted file mode 100644 index 87fd78bc..00000000 --- a/node_modules/es5-ext/object/assign-deep.js +++ /dev/null @@ -1,34 +0,0 @@ -"use strict"; - -var includes = require("../array/#/contains") - , uniq = require("../array/#/uniq") - , copyDeep = require("./copy-deep") - , objForEach = require("./for-each") - , isPlainObject = require("./is-plain-object") - , ensureValue = require("./valid-value"); - -var isArray = Array.isArray, slice = Array.prototype.slice; - -var deepAssign = function (target, source) { - if (target === source) return target; - if (isPlainObject(target) && isPlainObject(source)) { - objForEach(source, function (value, key) { target[key] = deepAssign(target[key], value); }); - return target; - } - if (isArray(target) && isArray(source)) { - source.forEach(function (item) { - if (includes.call(target, item)) return; - if (isArray(item) || isPlainObject(item)) item = copyDeep(item); - target.push(item); - }); - return target; - } - if (isPlainObject(source) || isArray(source)) return copyDeep(source); - return source; -}; - -module.exports = function (target /*, ...objects*/) { - return uniq - .call([ensureValue(target)].concat(slice.call(arguments, 1).map(ensureValue))) - .reduce(deepAssign); -}; diff --git a/node_modules/es5-ext/object/assign/implement.js b/node_modules/es5-ext/object/assign/implement.js deleted file mode 100644 index f20371da..00000000 --- a/node_modules/es5-ext/object/assign/implement.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -if (!require("./is-implemented")()) { - Object.defineProperty(Object, "assign", { - value: require("./shim"), - configurable: true, - enumerable: false, - writable: true - }); -} diff --git a/node_modules/es5-ext/object/assign/index.js b/node_modules/es5-ext/object/assign/index.js deleted file mode 100644 index 9585b553..00000000 --- a/node_modules/es5-ext/object/assign/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./is-implemented")() ? Object.assign : require("./shim"); diff --git a/node_modules/es5-ext/object/assign/is-implemented.js b/node_modules/es5-ext/object/assign/is-implemented.js deleted file mode 100644 index 8bf71aea..00000000 --- a/node_modules/es5-ext/object/assign/is-implemented.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; - -module.exports = function () { - var assign = Object.assign, obj; - if (typeof assign !== "function") return false; - obj = { foo: "raz" }; - assign(obj, { bar: "dwa" }, { trzy: "trzy" }); - return obj.foo + obj.bar + obj.trzy === "razdwatrzy"; -}; diff --git a/node_modules/es5-ext/object/assign/shim.js b/node_modules/es5-ext/object/assign/shim.js deleted file mode 100644 index afa58f2f..00000000 --- a/node_modules/es5-ext/object/assign/shim.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; - -var keys = require("../keys") - , value = require("../valid-value") - , max = Math.max; - -module.exports = function (dest, src /*, …srcn*/) { - var error, i, length = max(arguments.length, 2), assign; - dest = Object(value(dest)); - assign = function (key) { - try { - dest[key] = src[key]; - } catch (e) { - if (!error) error = e; - } - }; - for (i = 1; i < length; ++i) { - src = arguments[i]; - keys(src).forEach(assign); - } - if (error !== undefined) throw error; - return dest; -}; diff --git a/node_modules/es5-ext/object/clear.js b/node_modules/es5-ext/object/clear.js deleted file mode 100644 index 268cc5b5..00000000 --- a/node_modules/es5-ext/object/clear.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; - -var keys = require("./keys"); - -module.exports = function (obj) { - var error; - keys(obj).forEach(function (key) { - try { - delete this[key]; - } catch (e) { - if (!error) error = e; - } - }, obj); - if (error !== undefined) throw error; - return obj; -}; diff --git a/node_modules/es5-ext/object/compact.js b/node_modules/es5-ext/object/compact.js deleted file mode 100644 index a1794bb3..00000000 --- a/node_modules/es5-ext/object/compact.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; - -var filter = require("./filter") - , isValue = require("./is-value"); - -module.exports = function (obj) { - return filter(obj, function (val) { return isValue(val); }); -}; diff --git a/node_modules/es5-ext/object/compare.js b/node_modules/es5-ext/object/compare.js deleted file mode 100644 index 261a732a..00000000 --- a/node_modules/es5-ext/object/compare.js +++ /dev/null @@ -1,39 +0,0 @@ -"use strict"; - -var strCompare = require("../string/#/case-insensitive-compare") - , isObject = require("./is-object") - , isValue = require("./is-value") - , numIsNaN = require("../number/is-nan") - , resolve - , typeMap; - -typeMap = { undefined: 0, object: 1, boolean: 2, string: 3, number: 4 }; - -resolve = function (a) { - if (isObject(a)) { - if (typeof a.valueOf !== "function") return NaN; - a = a.valueOf(); - if (isObject(a)) { - if (typeof a.toString !== "function") return NaN; - a = a.toString(); - if (typeof a !== "string") return NaN; - } - } - return a; -}; - -module.exports = function (val1, val2) { - if (val1 === val2) return 0; // Same - - val1 = resolve(val1); - val2 = resolve(val2); - // eslint-disable-next-line eqeqeq - if (val1 == val2) return typeMap[typeof val1] - typeMap[typeof val2]; - if (!isValue(val1)) return -1; - if (!isValue(val2)) return 1; - if (typeof val1 === "string" || typeof val2 === "string") { - return strCompare.call(val1, val2); - } - if (numIsNaN(val1) && numIsNaN(val2)) return 0; // Jslint: ignore - return Number(val1) - Number(val2); -}; diff --git a/node_modules/es5-ext/object/copy-deep.js b/node_modules/es5-ext/object/copy-deep.js deleted file mode 100644 index 1d1bed2e..00000000 --- a/node_modules/es5-ext/object/copy-deep.js +++ /dev/null @@ -1,35 +0,0 @@ -"use strict"; - -var forEach = require("./for-each") - , isPlainObject = require("./is-plain-object") - , ensureValue = require("./valid-value") - , isArray = Array.isArray; - -var copyValue = function (value, ancestors, ancestorsCopy) { - var mode; - if (isPlainObject(value)) mode = "object"; - else if (isArray(value)) mode = "array"; - if (!mode) return value; - - var copy = ancestorsCopy[ancestors.indexOf(value)]; - if (copy) return copy; - copy = mode === "object" ? {} : []; - - ancestors.push(value); - ancestorsCopy.push(copy); - if (mode === "object") { - forEach(value, function (item, key) { - copy[key] = copyValue(item, ancestors, ancestorsCopy); - }); - } else { - value.forEach(function (item, index) { - copy[index] = copyValue(item, ancestors, ancestorsCopy); - }); - } - ancestors.pop(); - ancestorsCopy.pop(); - - return copy; -}; - -module.exports = function (source) { return copyValue(ensureValue(source), [], []); }; diff --git a/node_modules/es5-ext/object/copy.js b/node_modules/es5-ext/object/copy.js deleted file mode 100644 index 2bd591d0..00000000 --- a/node_modules/es5-ext/object/copy.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; - -var aFrom = require("../array/from") - , assign = require("./assign") - , value = require("./valid-value"); - -module.exports = function (obj /*, propertyNames, options*/) { - var copy = Object(value(obj)), propertyNames = arguments[1], options = Object(arguments[2]); - if (copy !== obj && !propertyNames) return copy; - var result = {}; - if (propertyNames) { - aFrom(propertyNames, function (propertyName) { - if (options.ensure || propertyName in obj) result[propertyName] = obj[propertyName]; - }); - } else { - assign(result, obj); - } - return result; -}; diff --git a/node_modules/es5-ext/object/count.js b/node_modules/es5-ext/object/count.js deleted file mode 100644 index 6c018bbe..00000000 --- a/node_modules/es5-ext/object/count.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; - -var keys = require("./keys"); - -module.exports = function (obj) { return keys(obj).length; }; diff --git a/node_modules/es5-ext/object/create.js b/node_modules/es5-ext/object/create.js deleted file mode 100644 index a391ec1d..00000000 --- a/node_modules/es5-ext/object/create.js +++ /dev/null @@ -1,43 +0,0 @@ -// Workaround for http://code.google.com/p/v8/issues/detail?id=2804 - -"use strict"; - -var create = Object.create, shim; - -if (!require("./set-prototype-of/is-implemented")()) { - shim = require("./set-prototype-of/shim"); -} - -module.exports = (function () { - var nullObject, polyProps, desc; - if (!shim) return create; - if (shim.level !== 1) return create; - - nullObject = {}; - polyProps = {}; - desc = { configurable: false, enumerable: false, writable: true, value: undefined }; - Object.getOwnPropertyNames(Object.prototype).forEach(function (name) { - if (name === "__proto__") { - polyProps[name] = { - configurable: true, - enumerable: false, - writable: true, - value: undefined - }; - return; - } - polyProps[name] = desc; - }); - Object.defineProperties(nullObject, polyProps); - - Object.defineProperty(shim, "nullPolyfill", { - configurable: false, - enumerable: false, - writable: false, - value: nullObject - }); - - return function (prototype, props) { - return create(prototype === null ? nullObject : prototype, props); - }; -})(); diff --git a/node_modules/es5-ext/object/ensure-array.js b/node_modules/es5-ext/object/ensure-array.js deleted file mode 100644 index 5ca7a949..00000000 --- a/node_modules/es5-ext/object/ensure-array.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; - -var toShortString = require("../to-short-string-representation") - , isArray = require("./is-array-like"); - -module.exports = function (value) { - if (isArray(value)) return value; - throw new TypeError(toShortString(value) + " is not a array"); -}; diff --git a/node_modules/es5-ext/object/ensure-finite-number.js b/node_modules/es5-ext/object/ensure-finite-number.js deleted file mode 100644 index 4f6e4b4a..00000000 --- a/node_modules/es5-ext/object/ensure-finite-number.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; - -var isFiniteNumber = require("./is-finite-number") - , safeToString = require("../safe-to-string"); - -module.exports = function (value) { - if (isFiniteNumber(value)) return Number(value); - throw new TypeError(safeToString(value) + " does not represent a finite number value"); -}; diff --git a/node_modules/es5-ext/object/ensure-integer.js b/node_modules/es5-ext/object/ensure-integer.js deleted file mode 100644 index 9ec64b5b..00000000 --- a/node_modules/es5-ext/object/ensure-integer.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; - -var toShortString = require("../to-short-string-representation") - , isInteger = require("./is-integer"); - -module.exports = function (num) { - if (!isInteger(num)) throw new TypeError(toShortString(num) + " is not a integer"); - return Number(num); -}; diff --git a/node_modules/es5-ext/object/ensure-natural-number-value.js b/node_modules/es5-ext/object/ensure-natural-number-value.js deleted file mode 100644 index 1a901aa4..00000000 --- a/node_modules/es5-ext/object/ensure-natural-number-value.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -var isNaturalValue = require("./is-natural-number-value") - , toShortString = require("../to-short-string-representation"); - -module.exports = function (arg) { - var num = Number(arg); - if (!isNaturalValue(arg)) throw new TypeError(toShortString(arg) + " is not a natural number"); - return num; -}; diff --git a/node_modules/es5-ext/object/ensure-natural-number.js b/node_modules/es5-ext/object/ensure-natural-number.js deleted file mode 100644 index ec7e5146..00000000 --- a/node_modules/es5-ext/object/ensure-natural-number.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -var isNatural = require("../number/is-natural") - , toShortString = require("../to-short-string-representation"); - -module.exports = function (arg) { - var num = Number(arg); - if (!isNatural(num)) throw new TypeError(toShortString(arg) + " is not a natural number"); - return num; -}; diff --git a/node_modules/es5-ext/object/ensure-plain-function.js b/node_modules/es5-ext/object/ensure-plain-function.js deleted file mode 100644 index 6cd9853e..00000000 --- a/node_modules/es5-ext/object/ensure-plain-function.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; - -var safeToString = require("../safe-to-string") - , isPlainFunction = require("./is-plain-function"); - -module.exports = function (value) { - if (!isPlainFunction(value)) { - throw new TypeError(safeToString(value) + " is not a plain function"); - } - return value; -}; diff --git a/node_modules/es5-ext/object/ensure-plain-object.js b/node_modules/es5-ext/object/ensure-plain-object.js deleted file mode 100644 index 7fb2b933..00000000 --- a/node_modules/es5-ext/object/ensure-plain-object.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; - -var safeToString = require("../safe-to-string") - , isPlainObject = require("./is-plain-object"); - -module.exports = function (value) { - if (!isPlainObject(value)) throw new TypeError(safeToString(value) + " is not a plain object"); - return value; -}; diff --git a/node_modules/es5-ext/object/ensure-promise.js b/node_modules/es5-ext/object/ensure-promise.js deleted file mode 100644 index b5b53563..00000000 --- a/node_modules/es5-ext/object/ensure-promise.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; - -var safeToString = require("../safe-to-string") - , isPromise = require("./is-promise"); - -module.exports = function (value) { - if (!isPromise(value)) throw new TypeError(safeToString(value) + " is not a promise"); - return value; -}; diff --git a/node_modules/es5-ext/object/ensure-thenable.js b/node_modules/es5-ext/object/ensure-thenable.js deleted file mode 100644 index c55c17ad..00000000 --- a/node_modules/es5-ext/object/ensure-thenable.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; - -var safeToString = require("../safe-to-string") - , isThenable = require("./is-thenable"); - -module.exports = function (value) { - if (!isThenable(value)) throw new TypeError(safeToString(value) + " is not a thenable"); - return value; -}; diff --git a/node_modules/es5-ext/object/entries/implement.js b/node_modules/es5-ext/object/entries/implement.js deleted file mode 100644 index 5c2a246d..00000000 --- a/node_modules/es5-ext/object/entries/implement.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -if (!require("./is-implemented")()) { - Object.defineProperty(Object, "entries", { - value: require("./shim"), - configurable: true, - enumerable: false, - writable: true - }); -} diff --git a/node_modules/es5-ext/object/entries/index.js b/node_modules/es5-ext/object/entries/index.js deleted file mode 100644 index 4a297d6a..00000000 --- a/node_modules/es5-ext/object/entries/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./is-implemented")() ? Object.entries : require("./shim"); diff --git a/node_modules/es5-ext/object/entries/is-implemented.js b/node_modules/es5-ext/object/entries/is-implemented.js deleted file mode 100644 index aad52b23..00000000 --- a/node_modules/es5-ext/object/entries/is-implemented.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; - -module.exports = function () { - try { return Object.entries({ foo: 12 })[0][0] === "foo"; } - catch (e) { return false; } -}; diff --git a/node_modules/es5-ext/object/entries/shim.js b/node_modules/es5-ext/object/entries/shim.js deleted file mode 100644 index 2348e446..00000000 --- a/node_modules/es5-ext/object/entries/shim.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; - -var ensureValue = require("../valid-value"); - -module.exports = function (object) { - ensureValue(object); - var result = []; - object = Object(object); - for (var key in object) { - if (!propertyIsEnumerable.call(object, key)) continue; - result.push([key, object[key]]); - } - return result; -}; diff --git a/node_modules/es5-ext/object/eq.js b/node_modules/es5-ext/object/eq.js deleted file mode 100644 index 03124680..00000000 --- a/node_modules/es5-ext/object/eq.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -var numIsNaN = require("../number/is-nan"); - -module.exports = function (val1, val2) { - return val1 === val2 || (numIsNaN(val1) && numIsNaN(val2)); -}; diff --git a/node_modules/es5-ext/object/every.js b/node_modules/es5-ext/object/every.js deleted file mode 100644 index 892b5485..00000000 --- a/node_modules/es5-ext/object/every.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./_iterate")("every", true); diff --git a/node_modules/es5-ext/object/filter.js b/node_modules/es5-ext/object/filter.js deleted file mode 100644 index c7dd969b..00000000 --- a/node_modules/es5-ext/object/filter.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; - -var callable = require("./valid-callable") - , forEach = require("./for-each") - , call = Function.prototype.call; - -module.exports = function (obj, cb /*, thisArg*/) { - var result = {}, thisArg = arguments[2]; - callable(cb); - forEach(obj, function (value, key, targetObj, index) { - if (call.call(cb, thisArg, value, key, targetObj, index)) result[key] = targetObj[key]; - }); - return result; -}; diff --git a/node_modules/es5-ext/object/find-key.js b/node_modules/es5-ext/object/find-key.js deleted file mode 100644 index 6da6ba6f..00000000 --- a/node_modules/es5-ext/object/find-key.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./_iterate")(require("../array/#/find"), false); diff --git a/node_modules/es5-ext/object/find.js b/node_modules/es5-ext/object/find.js deleted file mode 100644 index 5960421a..00000000 --- a/node_modules/es5-ext/object/find.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -var findKey = require("./find-key") - , isValue = require("./is-value"); - -// eslint-disable-next-line no-unused-vars -module.exports = function (obj, cb /*, thisArg, compareFn*/) { - var key = findKey.apply(this, arguments); - return isValue(key) ? obj[key] : key; -}; diff --git a/node_modules/es5-ext/object/first-key.js b/node_modules/es5-ext/object/first-key.js deleted file mode 100644 index 3666de57..00000000 --- a/node_modules/es5-ext/object/first-key.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; - -var value = require("./valid-value") - , objPropertyIsEnumerable = Object.prototype.propertyIsEnumerable; - -module.exports = function (obj) { - var i; - value(obj); - for (i in obj) { - if (objPropertyIsEnumerable.call(obj, i)) return i; - } - return null; -}; diff --git a/node_modules/es5-ext/object/flatten.js b/node_modules/es5-ext/object/flatten.js deleted file mode 100644 index cda74750..00000000 --- a/node_modules/es5-ext/object/flatten.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; - -var isPlainObject = require("./is-plain-object") - , forEach = require("./for-each") - , process; - -process = function self(value, key) { - if (isPlainObject(value)) forEach(value, self, this); - else this[key] = value; -}; - -module.exports = function (obj) { - var flattened = {}; - forEach(obj, process, flattened); - return flattened; -}; diff --git a/node_modules/es5-ext/object/for-each.js b/node_modules/es5-ext/object/for-each.js deleted file mode 100644 index d282956d..00000000 --- a/node_modules/es5-ext/object/for-each.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./_iterate")("forEach"); diff --git a/node_modules/es5-ext/object/get-property-names.js b/node_modules/es5-ext/object/get-property-names.js deleted file mode 100644 index 7dfef279..00000000 --- a/node_modules/es5-ext/object/get-property-names.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; - -var uniq = require("../array/#/uniq") - , value = require("./valid-value") - , push = Array.prototype.push - , getOwnPropertyNames = Object.getOwnPropertyNames - , getPrototypeOf = Object.getPrototypeOf; - -module.exports = function (obj) { - var keys; - obj = Object(value(obj)); - keys = getOwnPropertyNames(obj); - while ((obj = getPrototypeOf(obj))) { - push.apply(keys, getOwnPropertyNames(obj)); - } - return uniq.call(keys); -}; diff --git a/node_modules/es5-ext/object/index.js b/node_modules/es5-ext/object/index.js deleted file mode 100644 index 13cfb95b..00000000 --- a/node_modules/es5-ext/object/index.js +++ /dev/null @@ -1,70 +0,0 @@ -"use strict"; - -module.exports = { - assign: require("./assign"), - assignDeep: require("./assign-deep"), - clear: require("./clear"), - compact: require("./compact"), - compare: require("./compare"), - copy: require("./copy"), - copyDeep: require("./copy-deep"), - count: require("./count"), - create: require("./create"), - ensureArray: require("./ensure-array"), - ensureFiniteNumber: require("./ensure-finite-number"), - ensureInteger: require("./ensure-integer"), - ensureNaturalNumber: require("./ensure-natural-number"), - ensureNaturalNumberValue: require("./ensure-natural-number-value"), - ensurePlainFunction: require("./ensure-plain-function"), - ensurePlainObject: require("./ensure-plain-object"), - ensurePromise: require("./ensure-promise"), - ensureThenable: require("./ensure-thenable"), - entries: require("./entries"), - eq: require("./eq"), - every: require("./every"), - filter: require("./filter"), - find: require("./find"), - findKey: require("./find-key"), - firstKey: require("./first-key"), - flatten: require("./flatten"), - forEach: require("./for-each"), - getPropertyNames: require("./get-property-names"), - is: require("./is"), - isArrayLike: require("./is-array-like"), - isCallable: require("./is-callable"), - isCopy: require("./is-copy"), - isCopyDeep: require("./is-copy-deep"), - isEmpty: require("./is-empty"), - isFiniteNumber: require("./is-finite-number"), - isInteger: require("./is-integer"), - isNaturalNumber: require("./is-natural-number"), - isNaturalNumberValue: require("./is-natural-number-value"), - isNumberValue: require("./is-number-value"), - isObject: require("./is-object"), - isPlainFunction: require("./is-plain-function"), - isPlainObject: require("./is-plain-object"), - isPromise: require("./is-promise"), - isThenable: require("./is-thenable"), - isValue: require("./is-value"), - keyOf: require("./key-of"), - keys: require("./keys"), - map: require("./map"), - mapKeys: require("./map-keys"), - normalizeOptions: require("./normalize-options"), - mixin: require("./mixin"), - mixinPrototypes: require("./mixin-prototypes"), - primitiveSet: require("./primitive-set"), - safeTraverse: require("./safe-traverse"), - serialize: require("./serialize"), - setPrototypeOf: require("./set-prototype-of"), - some: require("./some"), - toArray: require("./to-array"), - unserialize: require("./unserialize"), - validateArrayLike: require("./validate-array-like"), - validateArrayLikeObject: require("./validate-array-like-object"), - validCallable: require("./valid-callable"), - validObject: require("./valid-object"), - validateStringifiable: require("./validate-stringifiable"), - validateStringifiableValue: require("./validate-stringifiable-value"), - validValue: require("./valid-value") -}; diff --git a/node_modules/es5-ext/object/is-array-like.js b/node_modules/es5-ext/object/is-array-like.js deleted file mode 100644 index fcb9115d..00000000 --- a/node_modules/es5-ext/object/is-array-like.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; - -var isFunction = require("../function/is-function") - , isObject = require("./is-object") - , isValue = require("./is-value"); - -module.exports = function (value) { - return ( - (isValue(value) && - typeof value.length === "number" && - // Just checking ((typeof x === 'object') && (typeof x !== 'function')) - // won't work right for some cases, e.g.: - // type of instance of NodeList in Safari is a 'function' - ((isObject(value) && !isFunction(value)) || typeof value === "string")) || - false - ); -}; diff --git a/node_modules/es5-ext/object/is-callable.js b/node_modules/es5-ext/object/is-callable.js deleted file mode 100644 index 927e5e8a..00000000 --- a/node_modules/es5-ext/object/is-callable.js +++ /dev/null @@ -1,5 +0,0 @@ -// Deprecated - -"use strict"; - -module.exports = function (obj) { return typeof obj === "function"; }; diff --git a/node_modules/es5-ext/object/is-copy-deep.js b/node_modules/es5-ext/object/is-copy-deep.js deleted file mode 100644 index a1206aea..00000000 --- a/node_modules/es5-ext/object/is-copy-deep.js +++ /dev/null @@ -1,59 +0,0 @@ -"use strict"; - -var eq = require("./eq") - , isPlainObject = require("./is-plain-object") - , value = require("./valid-value"); - -var isArray = Array.isArray - , keys = Object.keys - , objPropertyIsEnumerable = Object.prototype.propertyIsEnumerable - , objHasOwnProperty = Object.prototype.hasOwnProperty - , eqArr - , eqVal - , eqObj; - -eqArr = function (arr1, arr2, recMap) { - var i, length = arr1.length; - if (length !== arr2.length) return false; - for (i = 0; i < length; ++i) { - if (objHasOwnProperty.call(arr1, i) !== objHasOwnProperty.call(arr2, i)) return false; - if (!eqVal(arr1[i], arr2[i], recMap)) return false; - } - return true; -}; - -eqObj = function (obj1, obj2, recMap) { - var k1 = keys(obj1), k2 = keys(obj2); - if (k1.length !== k2.length) return false; - return k1.every(function (key) { - if (!objPropertyIsEnumerable.call(obj2, key)) return false; - return eqVal(obj1[key], obj2[key], recMap); - }); -}; - -eqVal = function (val1, val2, recMap) { - var i, eqX, c1, c2; - if (eq(val1, val2)) return true; - if (isPlainObject(val1)) { - if (!isPlainObject(val2)) return false; - eqX = eqObj; - } else if (isArray(val1) && isArray(val2)) { - eqX = eqArr; - } else { - return false; - } - c1 = recMap[0]; - c2 = recMap[1]; - i = c1.indexOf(val1); - if (i === -1) { - i = c1.push(val1) - 1; - c2[i] = []; - } else if (c2[i].indexOf(val2) !== -1) return true; - c2[i].push(val2); - return eqX(val1, val2, recMap); -}; - -module.exports = function (val1, val2) { - if (eq(value(val1), value(val2))) return true; - return eqVal(Object(val1), Object(val2), [[], []]); -}; diff --git a/node_modules/es5-ext/object/is-copy.js b/node_modules/es5-ext/object/is-copy.js deleted file mode 100644 index 8c6ae5e2..00000000 --- a/node_modules/es5-ext/object/is-copy.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; - -var eq = require("./eq") - , value = require("./valid-value") - , keys = Object.keys - , objPropertyIsEnumerable = Object.prototype.propertyIsEnumerable; - -module.exports = function (val1, val2) { - var k1, k2; - - if (eq(value(val1), value(val2))) return true; - - val1 = Object(val1); - val2 = Object(val2); - - k1 = keys(val1); - k2 = keys(val2); - if (k1.length !== k2.length) return false; - return k1.every(function (key) { - if (!objPropertyIsEnumerable.call(val2, key)) return false; - return eq(val1[key], val2[key]); - }); -}; diff --git a/node_modules/es5-ext/object/is-empty.js b/node_modules/es5-ext/object/is-empty.js deleted file mode 100644 index dbc52d0c..00000000 --- a/node_modules/es5-ext/object/is-empty.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; - -var value = require("./valid-value") - , objPropertyIsEnumerable = Object.prototype.propertyIsEnumerable; - -module.exports = function (obj) { - var i; - value(obj); - for (i in obj) { - // Jslint: ignore - if (objPropertyIsEnumerable.call(obj, i)) return false; - } - return true; -}; diff --git a/node_modules/es5-ext/object/is-finite-number.js b/node_modules/es5-ext/object/is-finite-number.js deleted file mode 100644 index e016f8de..00000000 --- a/node_modules/es5-ext/object/is-finite-number.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; - -var isNumber = require("./is-number-value"); - -module.exports = function (value) { return isNumber(value) && isFinite(value); }; diff --git a/node_modules/es5-ext/object/is-integer.js b/node_modules/es5-ext/object/is-integer.js deleted file mode 100644 index 1745b829..00000000 --- a/node_modules/es5-ext/object/is-integer.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -var isInteger = require("../number/is-integer") - , isValue = require("./is-value"); - -module.exports = function (arg) { - if (!isValue(arg)) return false; - arg = Number(arg); - return isInteger(arg); -}; diff --git a/node_modules/es5-ext/object/is-natural-number-value.js b/node_modules/es5-ext/object/is-natural-number-value.js deleted file mode 100644 index c7445218..00000000 --- a/node_modules/es5-ext/object/is-natural-number-value.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; - -var isNaturalNumber = require("./is-natural-number") - , isValue = require("./is-value"); - -module.exports = function (arg) { - if (!isValue(arg)) return false; - return isNaturalNumber(arg); -}; diff --git a/node_modules/es5-ext/object/is-natural-number.js b/node_modules/es5-ext/object/is-natural-number.js deleted file mode 100644 index 3e2c1f50..00000000 --- a/node_modules/es5-ext/object/is-natural-number.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; - -var isNatural = require("../number/is-natural"); - -module.exports = function (arg) { return isNatural(Number(arg)); }; diff --git a/node_modules/es5-ext/object/is-number-value.js b/node_modules/es5-ext/object/is-number-value.js deleted file mode 100644 index f701bf53..00000000 --- a/node_modules/es5-ext/object/is-number-value.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; - -var isValue = require("./is-value"); - -module.exports = function (value) { - if (!isValue(value)) return false; - try { return !isNaN(value); } - catch (e) { return false; } -}; diff --git a/node_modules/es5-ext/object/is-object.js b/node_modules/es5-ext/object/is-object.js deleted file mode 100644 index 0e576d76..00000000 --- a/node_modules/es5-ext/object/is-object.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -var isValue = require("./is-value"); - -var map = { function: true, object: true }; - -module.exports = function (value) { return (isValue(value) && map[typeof value]) || false; }; diff --git a/node_modules/es5-ext/object/is-plain-function.js b/node_modules/es5-ext/object/is-plain-function.js deleted file mode 100644 index a2f32348..00000000 --- a/node_modules/es5-ext/object/is-plain-function.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; - -var isClassStr = RegExp.prototype.test.bind(/^\s*class[\s{/}]/) - , fnToString = Function.prototype.toString; - -module.exports = function (fn) { - if (typeof fn !== "function") return false; - if (typeof fn.call !== "function") return false; - if (typeof fn.apply !== "function") return false; - return !isClassStr(fnToString.call(fn)); -}; diff --git a/node_modules/es5-ext/object/is-plain-object.js b/node_modules/es5-ext/object/is-plain-object.js deleted file mode 100644 index ff153289..00000000 --- a/node_modules/es5-ext/object/is-plain-object.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; - -var getPrototypeOf = Object.getPrototypeOf - , prototype = Object.prototype - , objToString = prototype.toString - , id = Object().toString(); - -module.exports = function (value) { - var proto, valueConstructor; - if (!value || typeof value !== "object" || objToString.call(value) !== id) { - return false; - } - proto = getPrototypeOf(value); - if (proto === null) { - valueConstructor = value.constructor; - if (typeof valueConstructor !== "function") return true; - return valueConstructor.prototype !== value; - } - return proto === prototype || getPrototypeOf(proto) === null; -}; diff --git a/node_modules/es5-ext/object/is-promise.js b/node_modules/es5-ext/object/is-promise.js deleted file mode 100644 index 33d6df13..00000000 --- a/node_modules/es5-ext/object/is-promise.js +++ /dev/null @@ -1,4 +0,0 @@ -"use strict"; - -// In next major this check will also confirm on promise constructor -module.exports = require("./is-thenable"); diff --git a/node_modules/es5-ext/object/is-thenable.js b/node_modules/es5-ext/object/is-thenable.js deleted file mode 100644 index 06db0fd4..00000000 --- a/node_modules/es5-ext/object/is-thenable.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; - -var isCallable = require("./is-callable") - , isObject = require("./is-object"); - -module.exports = function (value) { return isObject(value) && isCallable(value.then); }; diff --git a/node_modules/es5-ext/object/is-value.js b/node_modules/es5-ext/object/is-value.js deleted file mode 100644 index 4ee38058..00000000 --- a/node_modules/es5-ext/object/is-value.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; - -var _undefined = require("../function/noop")(); // Support ES3 engines - -module.exports = function (val) { return val !== _undefined && val !== null; }; diff --git a/node_modules/es5-ext/object/is.js b/node_modules/es5-ext/object/is.js deleted file mode 100644 index 54baadec..00000000 --- a/node_modules/es5-ext/object/is.js +++ /dev/null @@ -1,10 +0,0 @@ -// Implementation credits go to: -// http://wiki.ecmascript.org/doku.php?id=harmony:egal - -"use strict"; - -var numIsNaN = require("../number/is-nan"); - -module.exports = function (val1, val2) { - return val1 === val2 ? val1 !== 0 || 1 / val1 === 1 / val2 : numIsNaN(val1) && numIsNaN(val2); -}; diff --git a/node_modules/es5-ext/object/key-of.js b/node_modules/es5-ext/object/key-of.js deleted file mode 100644 index dc640e4d..00000000 --- a/node_modules/es5-ext/object/key-of.js +++ /dev/null @@ -1,17 +0,0 @@ -"use strict"; - -var eq = require("./eq") - , some = require("./some"); - -module.exports = function (obj, searchValue) { - var result; - return some(obj, function (value, name) { - if (eq(value, searchValue)) { - result = name; - return true; - } - return false; - }) - ? result - : null; -}; diff --git a/node_modules/es5-ext/object/keys/implement.js b/node_modules/es5-ext/object/keys/implement.js deleted file mode 100644 index 72ecfbdf..00000000 --- a/node_modules/es5-ext/object/keys/implement.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -if (!require("./is-implemented")()) { - Object.defineProperty(Object, "keys", { - value: require("./shim"), - configurable: true, - enumerable: false, - writable: true - }); -} diff --git a/node_modules/es5-ext/object/keys/index.js b/node_modules/es5-ext/object/keys/index.js deleted file mode 100644 index d1942279..00000000 --- a/node_modules/es5-ext/object/keys/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./is-implemented")() ? Object.keys : require("./shim"); diff --git a/node_modules/es5-ext/object/keys/is-implemented.js b/node_modules/es5-ext/object/keys/is-implemented.js deleted file mode 100644 index 2dfcf1b9..00000000 --- a/node_modules/es5-ext/object/keys/is-implemented.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -module.exports = function () { - try { - Object.keys("primitive"); - return true; - } catch (e) { - return false; - } -}; diff --git a/node_modules/es5-ext/object/keys/shim.js b/node_modules/es5-ext/object/keys/shim.js deleted file mode 100644 index a8908d5c..00000000 --- a/node_modules/es5-ext/object/keys/shim.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -var isValue = require("../is-value"); - -var keys = Object.keys; - -module.exports = function (object) { return keys(isValue(object) ? Object(object) : object); }; diff --git a/node_modules/es5-ext/object/map-keys.js b/node_modules/es5-ext/object/map-keys.js deleted file mode 100644 index 72dada07..00000000 --- a/node_modules/es5-ext/object/map-keys.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; - -var callable = require("./valid-callable") - , forEach = require("./for-each") - , call = Function.prototype.call; - -module.exports = function (obj, cb /*, thisArg*/) { - var result = {}, thisArg = arguments[2]; - callable(cb); - forEach( - obj, - function (value, key, targetObj, index) { - result[call.call(cb, thisArg, key, value, this, index)] = value; - }, - obj - ); - return result; -}; diff --git a/node_modules/es5-ext/object/map.js b/node_modules/es5-ext/object/map.js deleted file mode 100644 index 7b718db1..00000000 --- a/node_modules/es5-ext/object/map.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; - -var callable = require("./valid-callable") - , forEach = require("./for-each") - , call = Function.prototype.call; - -module.exports = function (obj, cb /*, thisArg*/) { - var result = {}, thisArg = arguments[2]; - callable(cb); - forEach(obj, function (value, key, targetObj, index) { - result[key] = call.call(cb, thisArg, value, key, targetObj, index); - }); - return result; -}; diff --git a/node_modules/es5-ext/object/mixin-prototypes.js b/node_modules/es5-ext/object/mixin-prototypes.js deleted file mode 100644 index 81e27c75..00000000 --- a/node_modules/es5-ext/object/mixin-prototypes.js +++ /dev/null @@ -1,25 +0,0 @@ -"use strict"; - -var value = require("./valid-value") - , mixin = require("./mixin"); - -var getPrototypeOf = Object.getPrototypeOf; - -module.exports = function (target, source) { - target = Object(value(target)); - source = Object(value(source)); - if (target === source) return target; - - var sources = []; - while (source && !isPrototypeOf.call(source, target)) { - sources.unshift(source); - source = getPrototypeOf(source); - } - - var error; - sources.forEach(function (sourceProto) { - try { mixin(target, sourceProto); } catch (mixinError) { error = mixinError; } - }); - if (error) throw error; - return target; -}; diff --git a/node_modules/es5-ext/object/mixin.js b/node_modules/es5-ext/object/mixin.js deleted file mode 100644 index f5cf9dd1..00000000 --- a/node_modules/es5-ext/object/mixin.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; - -var value = require("./valid-value") - , defineProperty = Object.defineProperty - , getOwnPropertyDescriptor = Object.getOwnPropertyDescriptor - , getOwnPropertyNames = Object.getOwnPropertyNames - , getOwnPropertySymbols = Object.getOwnPropertySymbols; - -module.exports = function (target, source) { - var error, sourceObject = Object(value(source)); - target = Object(value(target)); - getOwnPropertyNames(sourceObject).forEach(function (name) { - try { - defineProperty(target, name, getOwnPropertyDescriptor(source, name)); - } catch (e) { error = e; } - }); - if (typeof getOwnPropertySymbols === "function") { - getOwnPropertySymbols(sourceObject).forEach(function (symbol) { - try { - defineProperty(target, symbol, getOwnPropertyDescriptor(source, symbol)); - } catch (e) { error = e; } - }); - } - if (error !== undefined) throw error; - return target; -}; diff --git a/node_modules/es5-ext/object/normalize-options.js b/node_modules/es5-ext/object/normalize-options.js deleted file mode 100644 index 6c394fe9..00000000 --- a/node_modules/es5-ext/object/normalize-options.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; - -var isValue = require("./is-value"); - -var forEach = Array.prototype.forEach, create = Object.create; - -var process = function (src, obj) { - var key; - for (key in src) obj[key] = src[key]; -}; - -// eslint-disable-next-line no-unused-vars -module.exports = function (opts1 /*, …options*/) { - var result = create(null); - forEach.call(arguments, function (options) { - if (!isValue(options)) return; - process(Object(options), result); - }); - return result; -}; diff --git a/node_modules/es5-ext/object/primitive-set.js b/node_modules/es5-ext/object/primitive-set.js deleted file mode 100644 index 840808d7..00000000 --- a/node_modules/es5-ext/object/primitive-set.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -var forEach = Array.prototype.forEach, create = Object.create; - -// eslint-disable-next-line no-unused-vars -module.exports = function (arg /*, …args*/) { - var set = create(null); - forEach.call(arguments, function (name) { set[name] = true; }); - return set; -}; diff --git a/node_modules/es5-ext/object/safe-traverse.js b/node_modules/es5-ext/object/safe-traverse.js deleted file mode 100644 index 7b72d555..00000000 --- a/node_modules/es5-ext/object/safe-traverse.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; - -var value = require("./valid-value") - , isValue = require("./is-value"); - -module.exports = function (obj /*, …names*/) { - var length, current = 1; - value(obj); - length = arguments.length - 1; - if (!length) return obj; - while (current < length) { - obj = obj[arguments[current++]]; - if (!isValue(obj)) return undefined; - } - return obj[arguments[current]]; -}; diff --git a/node_modules/es5-ext/object/serialize.js b/node_modules/es5-ext/object/serialize.js deleted file mode 100644 index ec868c10..00000000 --- a/node_modules/es5-ext/object/serialize.js +++ /dev/null @@ -1,41 +0,0 @@ -"use strict"; - -var toArray = require("./to-array") - , isDate = require("../date/is-date") - , isValue = require("../object/is-value") - , isRegExp = require("../reg-exp/is-reg-exp"); - -var isArray = Array.isArray - , stringify = JSON.stringify - , objHasOwnProperty = Object.prototype.hasOwnProperty; -var keyValueToString = function (value, key) { - return stringify(key) + ":" + module.exports(value); -}; - -var sparseMap = function (arr) { - var i, length = arr.length, result = new Array(length); - for (i = 0; i < length; ++i) { - if (!objHasOwnProperty.call(arr, i)) continue; - result[i] = module.exports(arr[i]); - } - return result; -}; - -module.exports = function (obj) { - if (!isValue(obj)) return String(obj); - switch (typeof obj) { - case "string": - return stringify(obj); - case "number": - case "boolean": - case "function": - return String(obj); - case "object": - if (isArray(obj)) return "[" + sparseMap(obj) + "]"; - if (isRegExp(obj)) return String(obj); - if (isDate(obj)) return "new Date(" + obj.valueOf() + ")"; - return "{" + toArray(obj, keyValueToString) + "}"; - default: - throw new TypeError("Serialization of " + String(obj) + "is unsupported"); - } -}; diff --git a/node_modules/es5-ext/object/set-prototype-of/implement.js b/node_modules/es5-ext/object/set-prototype-of/implement.js deleted file mode 100644 index 386a3005..00000000 --- a/node_modules/es5-ext/object/set-prototype-of/implement.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; - -var shim; - -if (!require("./is-implemented")() && (shim = require("./shim"))) { - Object.defineProperty(Object, "setPrototypeOf", { - value: shim, - configurable: true, - enumerable: false, - writable: true - }); -} diff --git a/node_modules/es5-ext/object/set-prototype-of/index.js b/node_modules/es5-ext/object/set-prototype-of/index.js deleted file mode 100644 index ac07b995..00000000 --- a/node_modules/es5-ext/object/set-prototype-of/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./is-implemented")() ? Object.setPrototypeOf : require("./shim"); diff --git a/node_modules/es5-ext/object/set-prototype-of/is-implemented.js b/node_modules/es5-ext/object/set-prototype-of/is-implemented.js deleted file mode 100644 index 1a00627b..00000000 --- a/node_modules/es5-ext/object/set-prototype-of/is-implemented.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; - -var create = Object.create, getPrototypeOf = Object.getPrototypeOf, plainObject = {}; - -module.exports = function (/* CustomCreate*/) { - var setPrototypeOf = Object.setPrototypeOf, customCreate = arguments[0] || create; - if (typeof setPrototypeOf !== "function") return false; - return getPrototypeOf(setPrototypeOf(customCreate(null), plainObject)) === plainObject; -}; diff --git a/node_modules/es5-ext/object/set-prototype-of/shim.js b/node_modules/es5-ext/object/set-prototype-of/shim.js deleted file mode 100644 index 97b0b504..00000000 --- a/node_modules/es5-ext/object/set-prototype-of/shim.js +++ /dev/null @@ -1,81 +0,0 @@ -/* eslint no-proto: "off" */ - -// Big thanks to @WebReflection for sorting this out -// https://gist.github.com/WebReflection/5593554 - -"use strict"; - -var isObject = require("../is-object") - , value = require("../valid-value") - , objIsPrototypeOf = Object.prototype.isPrototypeOf - , defineProperty = Object.defineProperty - , nullDesc = { configurable: true, enumerable: false, writable: true, value: undefined } - , validate; - -validate = function (obj, prototype) { - value(obj); - if (prototype === null || isObject(prototype)) return obj; - throw new TypeError("Prototype must be null or an object"); -}; - -module.exports = (function (status) { - var fn, set; - if (!status) return null; - if (status.level === 2) { - if (status.set) { - set = status.set; - fn = function (obj, prototype) { - set.call(validate(obj, prototype), prototype); - return obj; - }; - } else { - fn = function (obj, prototype) { - validate(obj, prototype).__proto__ = prototype; - return obj; - }; - } - } else { - fn = function self(obj, prototype) { - var isNullBase; - validate(obj, prototype); - isNullBase = objIsPrototypeOf.call(self.nullPolyfill, obj); - if (isNullBase) delete self.nullPolyfill.__proto__; - if (prototype === null) prototype = self.nullPolyfill; - obj.__proto__ = prototype; - if (isNullBase) defineProperty(self.nullPolyfill, "__proto__", nullDesc); - return obj; - }; - } - return Object.defineProperty(fn, "level", { - configurable: false, - enumerable: false, - writable: false, - value: status.level - }); -})( - (function () { - var tmpObj1 = Object.create(null) - , tmpObj2 = {} - , set - , desc = Object.getOwnPropertyDescriptor(Object.prototype, "__proto__"); - - if (desc) { - try { - set = desc.set; // Opera crashes at this point - set.call(tmpObj1, tmpObj2); - } catch (ignore) {} - if (Object.getPrototypeOf(tmpObj1) === tmpObj2) return { set: set, level: 2 }; - } - - tmpObj1.__proto__ = tmpObj2; - if (Object.getPrototypeOf(tmpObj1) === tmpObj2) return { level: 2 }; - - tmpObj1 = {}; - tmpObj1.__proto__ = tmpObj2; - if (Object.getPrototypeOf(tmpObj1) === tmpObj2) return { level: 1 }; - - return false; - })() -); - -require("../create"); diff --git a/node_modules/es5-ext/object/some.js b/node_modules/es5-ext/object/some.js deleted file mode 100644 index c919466b..00000000 --- a/node_modules/es5-ext/object/some.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./_iterate")("some", false); diff --git a/node_modules/es5-ext/object/to-array.js b/node_modules/es5-ext/object/to-array.js deleted file mode 100644 index 8912b450..00000000 --- a/node_modules/es5-ext/object/to-array.js +++ /dev/null @@ -1,21 +0,0 @@ -"use strict"; - -var callable = require("./valid-callable") - , isValue = require("./is-value") - , forEach = require("./for-each") - , call = Function.prototype.call - , defaultCb = function (value, key) { return [key, value]; }; - -module.exports = function (obj /*, cb, thisArg, compareFn*/) { - var a = [], cb = arguments[1], thisArg = arguments[2]; - cb = isValue(cb) ? callable(cb) : defaultCb; - - forEach( - obj, - function (value, key, targetObj, index) { - a.push(call.call(cb, thisArg, value, key, this, index)); - }, - obj, arguments[3] - ); - return a; -}; diff --git a/node_modules/es5-ext/object/unserialize.js b/node_modules/es5-ext/object/unserialize.js deleted file mode 100644 index f62ea78c..00000000 --- a/node_modules/es5-ext/object/unserialize.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; - -var value = require("./valid-value"); - -module.exports = function (code) { - // eslint-disable-next-line no-new-func - return new Function("return " + value(code))(); -}; diff --git a/node_modules/es5-ext/object/valid-callable.js b/node_modules/es5-ext/object/valid-callable.js deleted file mode 100644 index a97fb3ea..00000000 --- a/node_modules/es5-ext/object/valid-callable.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; - -module.exports = function (fn) { - if (typeof fn !== "function") throw new TypeError(fn + " is not a function"); - return fn; -}; diff --git a/node_modules/es5-ext/object/valid-object.js b/node_modules/es5-ext/object/valid-object.js deleted file mode 100644 index 74b5e5f2..00000000 --- a/node_modules/es5-ext/object/valid-object.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; - -var isObject = require("./is-object"); - -module.exports = function (value) { - if (!isObject(value)) throw new TypeError(value + " is not an Object"); - return value; -}; diff --git a/node_modules/es5-ext/object/valid-value.js b/node_modules/es5-ext/object/valid-value.js deleted file mode 100644 index d0ced8a4..00000000 --- a/node_modules/es5-ext/object/valid-value.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; - -var isValue = require("./is-value"); - -module.exports = function (value) { - if (!isValue(value)) throw new TypeError("Cannot use null or undefined"); - return value; -}; diff --git a/node_modules/es5-ext/object/validate-array-like-object.js b/node_modules/es5-ext/object/validate-array-like-object.js deleted file mode 100644 index d7c45b36..00000000 --- a/node_modules/es5-ext/object/validate-array-like-object.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; - -var isArrayLike = require("./is-array-like") - , isObject = require("./is-object"); - -module.exports = function (obj) { - if (isObject(obj) && isArrayLike(obj)) return obj; - throw new TypeError(obj + " is not array-like object"); -}; diff --git a/node_modules/es5-ext/object/validate-array-like.js b/node_modules/es5-ext/object/validate-array-like.js deleted file mode 100644 index 07aa7949..00000000 --- a/node_modules/es5-ext/object/validate-array-like.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; - -var isArrayLike = require("./is-array-like"); - -module.exports = function (obj) { - if (isArrayLike(obj)) return obj; - throw new TypeError(obj + " is not array-like value"); -}; diff --git a/node_modules/es5-ext/object/validate-stringifiable-value.js b/node_modules/es5-ext/object/validate-stringifiable-value.js deleted file mode 100644 index b58f18ce..00000000 --- a/node_modules/es5-ext/object/validate-stringifiable-value.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; - -var ensureValue = require("./valid-value") - , stringifiable = require("./validate-stringifiable"); - -module.exports = function (value) { return stringifiable(ensureValue(value)); }; diff --git a/node_modules/es5-ext/object/validate-stringifiable.js b/node_modules/es5-ext/object/validate-stringifiable.js deleted file mode 100644 index 2b1f1271..00000000 --- a/node_modules/es5-ext/object/validate-stringifiable.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; - -var isCallable = require("./is-callable"); - -module.exports = function (stringifiable) { - try { - if (stringifiable && isCallable(stringifiable.toString)) return stringifiable.toString(); - return String(stringifiable); - } catch (e) { - throw new TypeError("Passed argument cannot be stringifed"); - } -}; diff --git a/node_modules/es5-ext/optional-chaining.js b/node_modules/es5-ext/optional-chaining.js deleted file mode 100644 index f1811279..00000000 --- a/node_modules/es5-ext/optional-chaining.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; - -var isValue = require("./object/is-value"); - -var slice = Array.prototype.slice; - -// eslint-disable-next-line no-unused-vars -module.exports = function (value, propertyName1 /*, …propertyNamen*/) { - var propertyNames = slice.call(arguments, 1), index = 0, length = propertyNames.length; - while (isValue(value) && index < length) value = value[propertyNames[index++]]; - return index === length ? value : undefined; -}; diff --git a/node_modules/es5-ext/package.json b/node_modules/es5-ext/package.json deleted file mode 100644 index b91b917a..00000000 --- a/node_modules/es5-ext/package.json +++ /dev/null @@ -1,126 +0,0 @@ -{ - "name": "es5-ext", - "version": "0.10.62", - "description": "ECMAScript extensions and shims", - "author": "Mariusz Nowak (http://www.medikoo.com/)", - "keywords": [ - "ecmascript", - "ecmascript5", - "ecmascript6", - "es5", - "es6", - "extensions", - "ext", - "addons", - "extras", - "harmony", - "javascript", - "polyfill", - "shim", - "util", - "utils", - "utilities" - ], - "repository": "medikoo/es5-ext", - "dependencies": { - "es6-iterator": "^2.0.3", - "es6-symbol": "^3.1.3", - "next-tick": "^1.1.0" - }, - "devDependencies": { - "eslint": "^8.13.0", - "eslint-config-medikoo": "^4.1.2", - "git-list-updated": "^1.2.1", - "github-release-from-cc-changelog": "^2.3.0", - "husky": "^4.3.8", - "lint-staged": "^12.3.8", - "nyc": "^15.1.0", - "plain-promise": "^0.1.1", - "prettier-elastic": "^2.2.1", - "tad": "^3.1.0" - }, - "husky": { - "hooks": { - "pre-commit": "lint-staged" - } - }, - "lint-staged": { - "*.js": [ - "eslint" - ], - "*.{css,html,js,json,md,yaml,yml}": [ - "prettier -c" - ] - }, - "eslintConfig": { - "extends": "medikoo/es5", - "root": true, - "rules": { - "no-extend-native": "off" - }, - "overrides": [ - { - "files": "global.js", - "globals": { - "__global__": true, - "globalThis": true, - "self": true, - "window": true - }, - "rules": { - "strict": "off" - } - }, - { - "files": "_postinstall.js", - "env": { - "node": true - } - } - ] - }, - "prettier": { - "printWidth": 100, - "tabWidth": 4, - "overrides": [ - { - "files": [ - "*.md", - "*.yml" - ], - "options": { - "tabWidth": 2 - } - } - ] - }, - "nyc": { - "all": true, - "exclude": [ - ".github", - "coverage/**", - "test/**", - "*.config.js" - ], - "reporter": [ - "lcov", - "html", - "text-summary" - ] - }, - "scripts": { - "coverage": "nyc npm test", - "lint": "eslint --ignore-path=.gitignore .", - "lint:updated": "pipe-git-updated --base=main --ext=js -- eslint --ignore-pattern '!*'", - "postinstall": " node -e \"try{require('./_postinstall')}catch(e){}\" || exit 0", - "prettier-check": "prettier -c --ignore-path .gitignore \"**/*.{css,html,js,json,md,yaml,yml}\"", - "prettier-check:updated": "pipe-git-updated --base=main --ext=css --ext=html --ext=js --ext=json --ext=md --ext=yaml --ext=yml -- prettier -c", - "prettify": "prettier --write --ignore-path .gitignore \"**/*.{css,html,js,json,md,yaml,yml}\"", - "prettify:updated": "pipe-git-updated ---base=main -ext=css --ext=html --ext=js --ext=json --ext=md --ext=yaml --ext=yml -- prettier --write", - "test": "node ./node_modules/tad/bin/tad" - }, - "engines": { - "node": ">=0.10" - }, - "license": "ISC" -} diff --git a/node_modules/es5-ext/promise/#/as-callback.js b/node_modules/es5-ext/promise/#/as-callback.js deleted file mode 100644 index ba310b35..00000000 --- a/node_modules/es5-ext/promise/#/as-callback.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; - -var ensurePlainFunction = require("../../object/ensure-plain-function") - , ensureThenable = require("../../object/ensure-thenable") - , microtaskDelay = require("../../function/#/microtask-delay"); - -module.exports = function (callback) { - ensureThenable(this); - ensurePlainFunction(callback); - // Rely on microtaskDelay to escape eventual error swallowing - this.then( - microtaskDelay.call(function (value) { callback(null, value); }), - microtaskDelay.call(function (reason) { callback(reason); }) - ); -}; diff --git a/node_modules/es5-ext/promise/#/finally/implement.js b/node_modules/es5-ext/promise/#/finally/implement.js deleted file mode 100644 index 77592b3a..00000000 --- a/node_modules/es5-ext/promise/#/finally/implement.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -if (!require("./is-implemented")()) { - Object.defineProperty(Promise.prototype, "finally", { - value: require("./shim"), - configurable: true, - enumerable: false, - writable: true - }); -} diff --git a/node_modules/es5-ext/promise/#/finally/index.js b/node_modules/es5-ext/promise/#/finally/index.js deleted file mode 100644 index f6bb447f..00000000 --- a/node_modules/es5-ext/promise/#/finally/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./is-implemented")() ? Promise.prototype.finally : require("./shim"); diff --git a/node_modules/es5-ext/promise/#/finally/is-implemented.js b/node_modules/es5-ext/promise/#/finally/is-implemented.js deleted file mode 100644 index 0534ce6b..00000000 --- a/node_modules/es5-ext/promise/#/finally/is-implemented.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -module.exports = function () { - if (typeof Promise !== "function") return false; - if (typeof Promise.prototype.finally !== "function") return false; - return true; -}; diff --git a/node_modules/es5-ext/promise/#/finally/shim.js b/node_modules/es5-ext/promise/#/finally/shim.js deleted file mode 100644 index f29f5b31..00000000 --- a/node_modules/es5-ext/promise/#/finally/shim.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; - -var ensurePlainFunction = require("../../../object/ensure-plain-function") - , isThenable = require("../../../object/is-thenable") - , ensureThenable = require("../../../object/ensure-thenable"); - -var resolveCallback = function (callback, next) { - var callbackResult = callback(); - if (!isThenable(callbackResult)) return next(); - return callbackResult.then(next); -}; - -module.exports = function (callback) { - ensureThenable(this); - ensurePlainFunction(callback); - return this.then( - function (result) { - return resolveCallback(callback, function () { return result; }); - }, - function (error) { - return resolveCallback(callback, function () { throw error; }); - } - ); -}; diff --git a/node_modules/es5-ext/promise/#/index.js b/node_modules/es5-ext/promise/#/index.js deleted file mode 100644 index 46018030..00000000 --- a/node_modules/es5-ext/promise/#/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = { asCallback: require("./as-callback"), finally: require("./finally") }; diff --git a/node_modules/es5-ext/promise/.eslintrc.json b/node_modules/es5-ext/promise/.eslintrc.json deleted file mode 100644 index 0d86fe70..00000000 --- a/node_modules/es5-ext/promise/.eslintrc.json +++ /dev/null @@ -1 +0,0 @@ -{ "globals": { "Promise": true } } diff --git a/node_modules/es5-ext/promise/index.js b/node_modules/es5-ext/promise/index.js deleted file mode 100644 index 6aa66bbb..00000000 --- a/node_modules/es5-ext/promise/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = { "#": require("./#"), "lazy": require("./lazy") }; diff --git a/node_modules/es5-ext/promise/lazy.js b/node_modules/es5-ext/promise/lazy.js deleted file mode 100644 index ad97a53a..00000000 --- a/node_modules/es5-ext/promise/lazy.js +++ /dev/null @@ -1,35 +0,0 @@ -"use strict"; - -var isFunction = require("../function/is-function"); - -module.exports = function (executor) { - var Constructor; - if (isFunction(this)) { - Constructor = this; - } else if (typeof Promise === "function") { - Constructor = Promise; - } else { - throw new TypeError("Could not resolve Promise constuctor"); - } - - var lazyThen; - var promise = new Constructor(function (resolve, reject) { - lazyThen = function (onSuccess, onFailure) { - if (!hasOwnProperty.call(this, "then")) { - // Sanity check - throw new Error("Unexpected (inherited) lazy then invocation"); - } - - try { executor(resolve, reject); } - catch (reason) { reject(reason); } - delete this.then; - return this.then(onSuccess, onFailure); - }; - }); - - return Object.defineProperty(promise, "then", { - configurable: true, - writable: true, - value: lazyThen - }); -}; diff --git a/node_modules/es5-ext/reg-exp/#/index.js b/node_modules/es5-ext/reg-exp/#/index.js deleted file mode 100644 index 9b098e0e..00000000 --- a/node_modules/es5-ext/reg-exp/#/index.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -module.exports = { - isSticky: require("./is-sticky"), - isUnicode: require("./is-unicode"), - match: require("./match"), - replace: require("./replace"), - search: require("./search"), - split: require("./split") -}; diff --git a/node_modules/es5-ext/reg-exp/#/is-sticky.js b/node_modules/es5-ext/reg-exp/#/is-sticky.js deleted file mode 100644 index 6e995335..00000000 --- a/node_modules/es5-ext/reg-exp/#/is-sticky.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; - -var validRegExp = require("../valid-reg-exp") - , re = /\/[a-xz]*y[a-xz]*$/; - -module.exports = function () { return Boolean(String(validRegExp(this)).match(re)); }; diff --git a/node_modules/es5-ext/reg-exp/#/is-unicode.js b/node_modules/es5-ext/reg-exp/#/is-unicode.js deleted file mode 100644 index 63a457fb..00000000 --- a/node_modules/es5-ext/reg-exp/#/is-unicode.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; - -var validRegExp = require("../valid-reg-exp") - , re = /\/[a-xz]*u[a-xz]*$/; - -module.exports = function () { return Boolean(String(validRegExp(this)).match(re)); }; diff --git a/node_modules/es5-ext/reg-exp/#/match/implement.js b/node_modules/es5-ext/reg-exp/#/match/implement.js deleted file mode 100644 index 68dcd554..00000000 --- a/node_modules/es5-ext/reg-exp/#/match/implement.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -if (!require("./is-implemented")()) { - Object.defineProperty(RegExp.prototype, "match", { - value: require("./shim"), - configurable: true, - enumerable: false, - writable: true - }); -} diff --git a/node_modules/es5-ext/reg-exp/#/match/index.js b/node_modules/es5-ext/reg-exp/#/match/index.js deleted file mode 100644 index 4b332969..00000000 --- a/node_modules/es5-ext/reg-exp/#/match/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./is-implemented")() ? RegExp.prototype.match : require("./shim"); diff --git a/node_modules/es5-ext/reg-exp/#/match/is-implemented.js b/node_modules/es5-ext/reg-exp/#/match/is-implemented.js deleted file mode 100644 index a5065fc7..00000000 --- a/node_modules/es5-ext/reg-exp/#/match/is-implemented.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; - -var re = /foo/; - -module.exports = function () { - if (typeof re.match !== "function") return false; - return re.match("barfoobar") && !re.match("elo"); -}; diff --git a/node_modules/es5-ext/reg-exp/#/match/shim.js b/node_modules/es5-ext/reg-exp/#/match/shim.js deleted file mode 100644 index 29558218..00000000 --- a/node_modules/es5-ext/reg-exp/#/match/shim.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; - -var validRegExp = require("../../valid-reg-exp"); - -module.exports = function (string) { - validRegExp(this); - return String(string).match(this); -}; diff --git a/node_modules/es5-ext/reg-exp/#/replace/implement.js b/node_modules/es5-ext/reg-exp/#/replace/implement.js deleted file mode 100644 index f990c4f1..00000000 --- a/node_modules/es5-ext/reg-exp/#/replace/implement.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -if (!require("./is-implemented")()) { - Object.defineProperty(RegExp.prototype, "replace", { - value: require("./shim"), - configurable: true, - enumerable: false, - writable: true - }); -} diff --git a/node_modules/es5-ext/reg-exp/#/replace/index.js b/node_modules/es5-ext/reg-exp/#/replace/index.js deleted file mode 100644 index be54b523..00000000 --- a/node_modules/es5-ext/reg-exp/#/replace/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./is-implemented")() ? RegExp.prototype.replace : require("./shim"); diff --git a/node_modules/es5-ext/reg-exp/#/replace/is-implemented.js b/node_modules/es5-ext/reg-exp/#/replace/is-implemented.js deleted file mode 100644 index 0a2e7c2f..00000000 --- a/node_modules/es5-ext/reg-exp/#/replace/is-implemented.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; - -var re = /foo/; - -module.exports = function () { - if (typeof re.replace !== "function") return false; - return re.replace("foobar", "mar") === "marbar"; -}; diff --git a/node_modules/es5-ext/reg-exp/#/replace/shim.js b/node_modules/es5-ext/reg-exp/#/replace/shim.js deleted file mode 100644 index 66f5d5b7..00000000 --- a/node_modules/es5-ext/reg-exp/#/replace/shim.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; - -var validRegExp = require("../../valid-reg-exp"); - -module.exports = function (string, replaceValue) { - validRegExp(this); - return String(string).replace(this, replaceValue); -}; diff --git a/node_modules/es5-ext/reg-exp/#/search/implement.js b/node_modules/es5-ext/reg-exp/#/search/implement.js deleted file mode 100644 index df4a337b..00000000 --- a/node_modules/es5-ext/reg-exp/#/search/implement.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -if (!require("./is-implemented")()) { - Object.defineProperty(RegExp.prototype, "search", { - value: require("./shim"), - configurable: true, - enumerable: false, - writable: true - }); -} diff --git a/node_modules/es5-ext/reg-exp/#/search/index.js b/node_modules/es5-ext/reg-exp/#/search/index.js deleted file mode 100644 index 25ca76a0..00000000 --- a/node_modules/es5-ext/reg-exp/#/search/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./is-implemented")() ? RegExp.prototype.search : require("./shim"); diff --git a/node_modules/es5-ext/reg-exp/#/search/is-implemented.js b/node_modules/es5-ext/reg-exp/#/search/is-implemented.js deleted file mode 100644 index 7f38669f..00000000 --- a/node_modules/es5-ext/reg-exp/#/search/is-implemented.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; - -var re = /foo/; - -module.exports = function () { - if (typeof re.search !== "function") return false; - return re.search("barfoo") === 3; -}; diff --git a/node_modules/es5-ext/reg-exp/#/search/shim.js b/node_modules/es5-ext/reg-exp/#/search/shim.js deleted file mode 100644 index c97a7873..00000000 --- a/node_modules/es5-ext/reg-exp/#/search/shim.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; - -var validRegExp = require("../../valid-reg-exp"); - -module.exports = function (string) { - validRegExp(this); - return String(string).search(this); -}; diff --git a/node_modules/es5-ext/reg-exp/#/split/implement.js b/node_modules/es5-ext/reg-exp/#/split/implement.js deleted file mode 100644 index b979db07..00000000 --- a/node_modules/es5-ext/reg-exp/#/split/implement.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -if (!require("./is-implemented")()) { - Object.defineProperty(RegExp.prototype, "split", { - value: require("./shim"), - configurable: true, - enumerable: false, - writable: true - }); -} diff --git a/node_modules/es5-ext/reg-exp/#/split/index.js b/node_modules/es5-ext/reg-exp/#/split/index.js deleted file mode 100644 index 6d4f177a..00000000 --- a/node_modules/es5-ext/reg-exp/#/split/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./is-implemented")() ? RegExp.prototype.split : require("./shim"); diff --git a/node_modules/es5-ext/reg-exp/#/split/is-implemented.js b/node_modules/es5-ext/reg-exp/#/split/is-implemented.js deleted file mode 100644 index 90fca0cc..00000000 --- a/node_modules/es5-ext/reg-exp/#/split/is-implemented.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; - -var re = /\|/; - -module.exports = function () { - if (typeof re.split !== "function") return false; - return re.split("bar|foo")[1] === "foo"; -}; diff --git a/node_modules/es5-ext/reg-exp/#/split/shim.js b/node_modules/es5-ext/reg-exp/#/split/shim.js deleted file mode 100644 index c9c73cce..00000000 --- a/node_modules/es5-ext/reg-exp/#/split/shim.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; - -var validRegExp = require("../../valid-reg-exp"); - -module.exports = function (string) { - validRegExp(this); - return String(string).split(this); -}; diff --git a/node_modules/es5-ext/reg-exp/#/sticky/implement.js b/node_modules/es5-ext/reg-exp/#/sticky/implement.js deleted file mode 100644 index 7864c6c7..00000000 --- a/node_modules/es5-ext/reg-exp/#/sticky/implement.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; - -var isSticky = require("../is-sticky"); - -if (!require("./is-implemented")()) { - Object.defineProperty(RegExp.prototype, "sticky", { - configurable: true, - enumerable: false, - get: isSticky - }); -} diff --git a/node_modules/es5-ext/reg-exp/#/sticky/is-implemented.js b/node_modules/es5-ext/reg-exp/#/sticky/is-implemented.js deleted file mode 100644 index a1ade111..00000000 --- a/node_modules/es5-ext/reg-exp/#/sticky/is-implemented.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -module.exports = function () { - var dummyRegExp = /a/; - // We need to do check on instance and not on prototype due to how ES2015 spec evolved: - // https://github.com/tc39/ecma262/issues/262 - // https://github.com/tc39/ecma262/pull/263 - // https://bugs.chromium.org/p/v8/issues/detail?id=4617 - return "sticky" in dummyRegExp; -}; diff --git a/node_modules/es5-ext/reg-exp/#/unicode/implement.js b/node_modules/es5-ext/reg-exp/#/unicode/implement.js deleted file mode 100644 index 8b99be59..00000000 --- a/node_modules/es5-ext/reg-exp/#/unicode/implement.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; - -var isUnicode = require("../is-unicode"); - -if (!require("./is-implemented")()) { - Object.defineProperty(RegExp.prototype, "unicode", { - configurable: true, - enumerable: false, - get: isUnicode - }); -} diff --git a/node_modules/es5-ext/reg-exp/#/unicode/is-implemented.js b/node_modules/es5-ext/reg-exp/#/unicode/is-implemented.js deleted file mode 100644 index 48605d72..00000000 --- a/node_modules/es5-ext/reg-exp/#/unicode/is-implemented.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -module.exports = function () { - var dummyRegExp = /a/; - // We need to do check on instance and not on prototype due to how ES2015 spec evolved: - // https://github.com/tc39/ecma262/issues/262 - // https://github.com/tc39/ecma262/pull/263 - // https://bugs.chromium.org/p/v8/issues/detail?id=4617 - return "unicode" in dummyRegExp; -}; diff --git a/node_modules/es5-ext/reg-exp/escape.js b/node_modules/es5-ext/reg-exp/escape.js deleted file mode 100644 index b65b3511..00000000 --- a/node_modules/es5-ext/reg-exp/escape.js +++ /dev/null @@ -1,9 +0,0 @@ -// Thanks to Andrew Clover: -// http://stackoverflow.com/questions/3561493 -// /is-there-a-regexp-escape-function-in-javascript - -"use strict"; - -var re = /[-/\\^$*+?.()|[\]{}]/g; - -module.exports = function (str) { return String(str).replace(re, "\\$&"); }; diff --git a/node_modules/es5-ext/reg-exp/index.js b/node_modules/es5-ext/reg-exp/index.js deleted file mode 100644 index f023fe03..00000000 --- a/node_modules/es5-ext/reg-exp/index.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; - -module.exports = { - "#": require("./#"), - "escape": require("./escape"), - "isRegExp": require("./is-reg-exp"), - "validRegExp": require("./valid-reg-exp") -}; diff --git a/node_modules/es5-ext/reg-exp/is-reg-exp.js b/node_modules/es5-ext/reg-exp/is-reg-exp.js deleted file mode 100644 index b966b0f2..00000000 --- a/node_modules/es5-ext/reg-exp/is-reg-exp.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -var objToString = Object.prototype.toString, id = objToString.call(/a/); - -module.exports = function (value) { - return (value && (value instanceof RegExp || objToString.call(value) === id)) || false; -}; diff --git a/node_modules/es5-ext/reg-exp/valid-reg-exp.js b/node_modules/es5-ext/reg-exp/valid-reg-exp.js deleted file mode 100644 index a05927a7..00000000 --- a/node_modules/es5-ext/reg-exp/valid-reg-exp.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; - -var isRegExp = require("./is-reg-exp"); - -module.exports = function (value) { - if (!isRegExp(value)) throw new TypeError(value + " is not a RegExp object"); - return value; -}; diff --git a/node_modules/es5-ext/safe-to-string.js b/node_modules/es5-ext/safe-to-string.js deleted file mode 100644 index f49a238a..00000000 --- a/node_modules/es5-ext/safe-to-string.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; - -var isCallable = require("./object/is-callable"); - -module.exports = function (value) { - try { - if (value && isCallable(value.toString)) return value.toString(); - return String(value); - } catch (e) { - return ""; - } -}; diff --git a/node_modules/es5-ext/string/#/@@iterator/implement.js b/node_modules/es5-ext/string/#/@@iterator/implement.js deleted file mode 100644 index b51ad9f8..00000000 --- a/node_modules/es5-ext/string/#/@@iterator/implement.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -if (!require("./is-implemented")()) { - Object.defineProperty(String.prototype, require("es6-symbol").iterator, { - value: require("./shim"), - configurable: true, - enumerable: false, - writable: true - }); -} diff --git a/node_modules/es5-ext/string/#/@@iterator/index.js b/node_modules/es5-ext/string/#/@@iterator/index.js deleted file mode 100644 index 4572443b..00000000 --- a/node_modules/es5-ext/string/#/@@iterator/index.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; - -module.exports = require("./is-implemented")() - ? String.prototype[require("es6-symbol").iterator] - : require("./shim"); diff --git a/node_modules/es5-ext/string/#/@@iterator/is-implemented.js b/node_modules/es5-ext/string/#/@@iterator/is-implemented.js deleted file mode 100644 index bb8a8d6e..00000000 --- a/node_modules/es5-ext/string/#/@@iterator/is-implemented.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; - -var iteratorSymbol = require("es6-symbol").iterator; - -module.exports = function () { - var str = "🙈f", iterator, result; - if (typeof str[iteratorSymbol] !== "function") return false; - iterator = str[iteratorSymbol](); - if (!iterator) return false; - if (typeof iterator.next !== "function") return false; - result = iterator.next(); - if (!result) return false; - if (result.value !== "🙈") return false; - if (result.done !== false) return false; - return true; -}; diff --git a/node_modules/es5-ext/string/#/@@iterator/shim.js b/node_modules/es5-ext/string/#/@@iterator/shim.js deleted file mode 100644 index 21606198..00000000 --- a/node_modules/es5-ext/string/#/@@iterator/shim.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; - -var StringIterator = require("es6-iterator/string") - , value = require("../../../object/valid-value"); - -module.exports = function () { return new StringIterator(value(this)); }; diff --git a/node_modules/es5-ext/string/#/at.js b/node_modules/es5-ext/string/#/at.js deleted file mode 100644 index a8c29179..00000000 --- a/node_modules/es5-ext/string/#/at.js +++ /dev/null @@ -1,35 +0,0 @@ -// Based on: https://github.com/mathiasbynens/String.prototype.at -// Thanks @mathiasbynens ! - -"use strict"; - -var toInteger = require("../../number/to-integer") - , validValue = require("../../object/valid-value"); - -module.exports = function (pos) { - var str = String(validValue(this)), size = str.length, cuFirst, cuSecond, nextPos, len; - pos = toInteger(pos); - - // Account for out-of-bounds indices - // The odd lower bound is because the ToInteger operation is - // going to round `n` to `0` for `-1 < n <= 0`. - if (pos <= -1 || pos >= size) return ""; - - // Second half of `ToInteger` - // eslint-disable-next-line no-bitwise - pos |= 0; - // Get the first code unit and code unit value - cuFirst = str.charCodeAt(pos); - nextPos = pos + 1; - len = 1; - if ( - // Check if it’s the start of a surrogate pair - cuFirst >= 0xd800 && - cuFirst <= 0xdbff && // High surrogate - size > nextPos // There is a next code unit - ) { - cuSecond = str.charCodeAt(nextPos); - if (cuSecond >= 0xdc00 && cuSecond <= 0xdfff) len = 2; // Low surrogate - } - return str.slice(pos, pos + len); -}; diff --git a/node_modules/es5-ext/string/#/camel-to-hyphen.js b/node_modules/es5-ext/string/#/camel-to-hyphen.js deleted file mode 100644 index 5add3ed5..00000000 --- a/node_modules/es5-ext/string/#/camel-to-hyphen.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; - -var replace = String.prototype.replace, re = /([A-Z])/g; - -module.exports = function () { - var str = replace.call(this, re, "-$1").toLowerCase(); - if (str[0] === "-") str = str.slice(1); - return str; -}; diff --git a/node_modules/es5-ext/string/#/capitalize.js b/node_modules/es5-ext/string/#/capitalize.js deleted file mode 100644 index fc92a9fb..00000000 --- a/node_modules/es5-ext/string/#/capitalize.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; - -var value = require("../../object/valid-value"); - -module.exports = function () { - var str = String(value(this)); - return str.charAt(0).toUpperCase() + str.slice(1); -}; diff --git a/node_modules/es5-ext/string/#/case-insensitive-compare.js b/node_modules/es5-ext/string/#/case-insensitive-compare.js deleted file mode 100644 index 5d961a5e..00000000 --- a/node_modules/es5-ext/string/#/case-insensitive-compare.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -var toLowerCase = String.prototype.toLowerCase; - -module.exports = function (other) { - return toLowerCase.call(this).localeCompare(toLowerCase.call(String(other))); -}; diff --git a/node_modules/es5-ext/string/#/code-point-at/implement.js b/node_modules/es5-ext/string/#/code-point-at/implement.js deleted file mode 100644 index 25752f92..00000000 --- a/node_modules/es5-ext/string/#/code-point-at/implement.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -if (!require("./is-implemented")()) { - Object.defineProperty(String.prototype, "codePointAt", { - value: require("./shim"), - configurable: true, - enumerable: false, - writable: true - }); -} diff --git a/node_modules/es5-ext/string/#/code-point-at/index.js b/node_modules/es5-ext/string/#/code-point-at/index.js deleted file mode 100644 index 0a22f843..00000000 --- a/node_modules/es5-ext/string/#/code-point-at/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./is-implemented")() ? String.prototype.codePointAt : require("./shim"); diff --git a/node_modules/es5-ext/string/#/code-point-at/is-implemented.js b/node_modules/es5-ext/string/#/code-point-at/is-implemented.js deleted file mode 100644 index 47e4c934..00000000 --- a/node_modules/es5-ext/string/#/code-point-at/is-implemented.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; - -var str = "abc\uD834\uDF06def"; - -module.exports = function () { - if (typeof str.codePointAt !== "function") return false; - return str.codePointAt(3) === 0x1d306; -}; diff --git a/node_modules/es5-ext/string/#/code-point-at/shim.js b/node_modules/es5-ext/string/#/code-point-at/shim.js deleted file mode 100644 index 0f331c3f..00000000 --- a/node_modules/es5-ext/string/#/code-point-at/shim.js +++ /dev/null @@ -1,26 +0,0 @@ -// Based on: https://github.com/mathiasbynens/String.prototype.codePointAt -// Thanks @mathiasbynens ! - -"use strict"; - -var toInteger = require("../../../number/to-integer") - , validValue = require("../../../object/valid-value"); - -module.exports = function (pos) { - var str = String(validValue(this)), length = str.length, first, second; - pos = toInteger(pos); - - // Account for out-of-bounds indices: - if (pos < 0 || pos >= length) return undefined; - - // Get the first code unit - first = str.charCodeAt(pos); - if (first >= 0xd800 && first <= 0xdbff && length > pos + 1) { - second = str.charCodeAt(pos + 1); - if (second >= 0xdc00 && second <= 0xdfff) { - // http://mathiasbynens.be/notes/javascript-encoding#surrogate-formulae - return (first - 0xd800) * 0x400 + second - 0xdc00 + 0x10000; - } - } - return first; -}; diff --git a/node_modules/es5-ext/string/#/contains/implement.js b/node_modules/es5-ext/string/#/contains/implement.js deleted file mode 100644 index 03cc091b..00000000 --- a/node_modules/es5-ext/string/#/contains/implement.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -if (!require("./is-implemented")()) { - Object.defineProperty(String.prototype, "contains", { - value: require("./shim"), - configurable: true, - enumerable: false, - writable: true - }); -} diff --git a/node_modules/es5-ext/string/#/contains/index.js b/node_modules/es5-ext/string/#/contains/index.js deleted file mode 100644 index 5f8d993f..00000000 --- a/node_modules/es5-ext/string/#/contains/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./is-implemented")() ? String.prototype.contains : require("./shim"); diff --git a/node_modules/es5-ext/string/#/contains/is-implemented.js b/node_modules/es5-ext/string/#/contains/is-implemented.js deleted file mode 100644 index d9b3e9a9..00000000 --- a/node_modules/es5-ext/string/#/contains/is-implemented.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; - -var str = "razdwatrzy"; - -module.exports = function () { - if (typeof str.contains !== "function") return false; - return str.contains("dwa") === true && str.contains("foo") === false; -}; diff --git a/node_modules/es5-ext/string/#/contains/shim.js b/node_modules/es5-ext/string/#/contains/shim.js deleted file mode 100644 index de2483dd..00000000 --- a/node_modules/es5-ext/string/#/contains/shim.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -var indexOf = String.prototype.indexOf; - -module.exports = function (searchString /*, position*/) { - return indexOf.call(this, searchString, arguments[1]) > -1; -}; diff --git a/node_modules/es5-ext/string/#/count.js b/node_modules/es5-ext/string/#/count.js deleted file mode 100644 index 76070136..00000000 --- a/node_modules/es5-ext/string/#/count.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; - -var ensureString = require("../../object/validate-stringifiable-value"); - -module.exports = function (search) { - var string = ensureString(this), count = 0, index = 0; - - search = ensureString(search); - if (!search) throw new TypeError("Search string cannot be empty"); - while ((index = string.indexOf(search, index)) !== -1) { - ++count; - index += search.length; - } - return count; -}; diff --git a/node_modules/es5-ext/string/#/ends-with/implement.js b/node_modules/es5-ext/string/#/ends-with/implement.js deleted file mode 100644 index 62457cce..00000000 --- a/node_modules/es5-ext/string/#/ends-with/implement.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -if (!require("./is-implemented")()) { - Object.defineProperty(String.prototype, "endsWith", { - value: require("./shim"), - configurable: true, - enumerable: false, - writable: true - }); -} diff --git a/node_modules/es5-ext/string/#/ends-with/index.js b/node_modules/es5-ext/string/#/ends-with/index.js deleted file mode 100644 index 04c82643..00000000 --- a/node_modules/es5-ext/string/#/ends-with/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./is-implemented")() ? String.prototype.endsWith : require("./shim"); diff --git a/node_modules/es5-ext/string/#/ends-with/is-implemented.js b/node_modules/es5-ext/string/#/ends-with/is-implemented.js deleted file mode 100644 index 1abaff75..00000000 --- a/node_modules/es5-ext/string/#/ends-with/is-implemented.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; - -var str = "razdwatrzy"; - -module.exports = function () { - if (typeof str.endsWith !== "function") return false; - return str.endsWith("trzy") === true && str.endsWith("raz") === false; -}; diff --git a/node_modules/es5-ext/string/#/ends-with/shim.js b/node_modules/es5-ext/string/#/ends-with/shim.js deleted file mode 100644 index c5371aa9..00000000 --- a/node_modules/es5-ext/string/#/ends-with/shim.js +++ /dev/null @@ -1,18 +0,0 @@ -"use strict"; - -var toInteger = require("../../../number/to-integer") - , value = require("../../../object/valid-value") - , isValue = require("../../../object/is-value") - , min = Math.min - , max = Math.max; - -module.exports = function (searchString /*, endPosition*/) { - var self, start, endPos; - self = String(value(this)); - searchString = String(searchString); - endPos = arguments[1]; - start = - (isValue(endPos) ? min(max(toInteger(endPos), 0), self.length) : self.length) - - searchString.length; - return start < 0 ? false : self.indexOf(searchString, start) === start; -}; diff --git a/node_modules/es5-ext/string/#/hyphen-to-camel.js b/node_modules/es5-ext/string/#/hyphen-to-camel.js deleted file mode 100644 index 9feef5bc..00000000 --- a/node_modules/es5-ext/string/#/hyphen-to-camel.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; - -var replace = String.prototype.replace, re = /-([a-z0-9])/g; -var toUpperCase = function (ignored, a) { return a.toUpperCase(); }; - -module.exports = function () { return replace.call(this, re, toUpperCase); }; diff --git a/node_modules/es5-ext/string/#/indent.js b/node_modules/es5-ext/string/#/indent.js deleted file mode 100644 index df8869db..00000000 --- a/node_modules/es5-ext/string/#/indent.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; - -var isValue = require("../../object/is-value") - , repeat = require("./repeat") - , replace = String.prototype.replace - , re = /(\r\n|[\n\r\u2028\u2029])([\u0000-\u0009\u000b-\uffff]+)/g; - -module.exports = function (indent /*, count*/) { - var count = arguments[1]; - indent = repeat.call(String(indent), isValue(count) ? count : 1); - return indent + replace.call(this, re, "$1" + indent + "$2"); -}; diff --git a/node_modules/es5-ext/string/#/index.js b/node_modules/es5-ext/string/#/index.js deleted file mode 100644 index 23444897..00000000 --- a/node_modules/es5-ext/string/#/index.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; - -module.exports = { - "@@iterator": require("./@@iterator"), - "at": require("./at"), - "count": require("./count"), - "camelToHyphen": require("./camel-to-hyphen"), - "capitalize": require("./capitalize"), - "caseInsensitiveCompare": require("./case-insensitive-compare"), - "codePointAt": require("./code-point-at"), - "contains": require("./contains"), - "hyphenToCamel": require("./hyphen-to-camel"), - "endsWith": require("./ends-with"), - "indent": require("./indent"), - "last": require("./last"), - "normalize": require("./normalize"), - "pad": require("./pad"), - "plainReplace": require("./plain-replace"), - "plainReplaceAll": require("./plain-replace-all"), - "repeat": require("./repeat"), - "startsWith": require("./starts-with"), - "uncapitalize": require("./uncapitalize") -}; diff --git a/node_modules/es5-ext/string/#/last.js b/node_modules/es5-ext/string/#/last.js deleted file mode 100644 index f5c957fc..00000000 --- a/node_modules/es5-ext/string/#/last.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; - -var value = require("../../object/valid-value"); - -module.exports = function () { - var self = String(value(this)), length = self.length; - return length ? self[length - 1] : null; -}; diff --git a/node_modules/es5-ext/string/#/normalize/_data.js b/node_modules/es5-ext/string/#/normalize/_data.js deleted file mode 100644 index ae4f1538..00000000 --- a/node_modules/es5-ext/string/#/normalize/_data.js +++ /dev/null @@ -1,6988 +0,0 @@ -/* eslint max-lines: "off", no-sparse-arrays: "off", comma-style: "off" */ - -"use strict"; - -module.exports = { - 0: { - 60: [, , { 824: 8814 }], - 61: [, , { 824: 8800 }], - 62: [, , { 824: 8815 }], - 65: [ - , , - { - 768: 192, - 769: 193, - 770: 194, - 771: 195, - 772: 256, - 774: 258, - 775: 550, - 776: 196, - 777: 7842, - 778: 197, - 780: 461, - 783: 512, - 785: 514, - 803: 7840, - 805: 7680, - 808: 260 - } - ], - 66: [, , { 775: 7682, 803: 7684, 817: 7686 }], - 67: [, , { 769: 262, 770: 264, 775: 266, 780: 268, 807: 199 }], - 68: [, , { 775: 7690, 780: 270, 803: 7692, 807: 7696, 813: 7698, 817: 7694 }], - 69: [ - , , - { - 768: 200, - 769: 201, - 770: 202, - 771: 7868, - 772: 274, - 774: 276, - 775: 278, - 776: 203, - 777: 7866, - 780: 282, - 783: 516, - 785: 518, - 803: 7864, - 807: 552, - 808: 280, - 813: 7704, - 816: 7706 - } - ], - 70: [, , { 775: 7710 }], - 71: [, , { 769: 500, 770: 284, 772: 7712, 774: 286, 775: 288, 780: 486, 807: 290 }], - 72: [, , { 770: 292, 775: 7714, 776: 7718, 780: 542, 803: 7716, 807: 7720, 814: 7722 }], - 73: [ - , , - { - 768: 204, - 769: 205, - 770: 206, - 771: 296, - 772: 298, - 774: 300, - 775: 304, - 776: 207, - 777: 7880, - 780: 463, - 783: 520, - 785: 522, - 803: 7882, - 808: 302, - 816: 7724 - } - ], - 74: [, , { 770: 308 }], - 75: [, , { 769: 7728, 780: 488, 803: 7730, 807: 310, 817: 7732 }], - 76: [, , { 769: 313, 780: 317, 803: 7734, 807: 315, 813: 7740, 817: 7738 }], - 77: [, , { 769: 7742, 775: 7744, 803: 7746 }], - 78: [ - , , - { - 768: 504, - 769: 323, - 771: 209, - 775: 7748, - 780: 327, - 803: 7750, - 807: 325, - 813: 7754, - 817: 7752 - } - ], - 79: [ - , , - { - 768: 210, - 769: 211, - 770: 212, - 771: 213, - 772: 332, - 774: 334, - 775: 558, - 776: 214, - 777: 7886, - 779: 336, - 780: 465, - 783: 524, - 785: 526, - 795: 416, - 803: 7884, - 808: 490 - } - ], - 80: [, , { 769: 7764, 775: 7766 }], - 82: [ - , , - { 769: 340, 775: 7768, 780: 344, 783: 528, 785: 530, 803: 7770, 807: 342, 817: 7774 } - ], - 83: [, , { 769: 346, 770: 348, 775: 7776, 780: 352, 803: 7778, 806: 536, 807: 350 }], - 84: [, , { 775: 7786, 780: 356, 803: 7788, 806: 538, 807: 354, 813: 7792, 817: 7790 }], - 85: [ - , , - { - 768: 217, - 769: 218, - 770: 219, - 771: 360, - 772: 362, - 774: 364, - 776: 220, - 777: 7910, - 778: 366, - 779: 368, - 780: 467, - 783: 532, - 785: 534, - 795: 431, - 803: 7908, - 804: 7794, - 808: 370, - 813: 7798, - 816: 7796 - } - ], - 86: [, , { 771: 7804, 803: 7806 }], - 87: [, , { 768: 7808, 769: 7810, 770: 372, 775: 7814, 776: 7812, 803: 7816 }], - 88: [, , { 775: 7818, 776: 7820 }], - 89: [ - , , - { - 768: 7922, - 769: 221, - 770: 374, - 771: 7928, - 772: 562, - 775: 7822, - 776: 376, - 777: 7926, - 803: 7924 - } - ], - 90: [, , { 769: 377, 770: 7824, 775: 379, 780: 381, 803: 7826, 817: 7828 }], - 97: [ - , , - { - 768: 224, - 769: 225, - 770: 226, - 771: 227, - 772: 257, - 774: 259, - 775: 551, - 776: 228, - 777: 7843, - 778: 229, - 780: 462, - 783: 513, - 785: 515, - 803: 7841, - 805: 7681, - 808: 261 - } - ], - 98: [, , { 775: 7683, 803: 7685, 817: 7687 }], - 99: [, , { 769: 263, 770: 265, 775: 267, 780: 269, 807: 231 }], - 100: [, , { 775: 7691, 780: 271, 803: 7693, 807: 7697, 813: 7699, 817: 7695 }], - 101: [ - , , - { - 768: 232, - 769: 233, - 770: 234, - 771: 7869, - 772: 275, - 774: 277, - 775: 279, - 776: 235, - 777: 7867, - 780: 283, - 783: 517, - 785: 519, - 803: 7865, - 807: 553, - 808: 281, - 813: 7705, - 816: 7707 - } - ], - 102: [, , { 775: 7711 }], - 103: [, , { 769: 501, 770: 285, 772: 7713, 774: 287, 775: 289, 780: 487, 807: 291 }], - 104: [ - , , - { 770: 293, 775: 7715, 776: 7719, 780: 543, 803: 7717, 807: 7721, 814: 7723, 817: 7830 } - ], - 105: [ - , , - { - 768: 236, - 769: 237, - 770: 238, - 771: 297, - 772: 299, - 774: 301, - 776: 239, - 777: 7881, - 780: 464, - 783: 521, - 785: 523, - 803: 7883, - 808: 303, - 816: 7725 - } - ], - 106: [, , { 770: 309, 780: 496 }], - 107: [, , { 769: 7729, 780: 489, 803: 7731, 807: 311, 817: 7733 }], - 108: [, , { 769: 314, 780: 318, 803: 7735, 807: 316, 813: 7741, 817: 7739 }], - 109: [, , { 769: 7743, 775: 7745, 803: 7747 }], - 110: [ - , , - { - 768: 505, - 769: 324, - 771: 241, - 775: 7749, - 780: 328, - 803: 7751, - 807: 326, - 813: 7755, - 817: 7753 - } - ], - 111: [ - , , - { - 768: 242, - 769: 243, - 770: 244, - 771: 245, - 772: 333, - 774: 335, - 775: 559, - 776: 246, - 777: 7887, - 779: 337, - 780: 466, - 783: 525, - 785: 527, - 795: 417, - 803: 7885, - 808: 491 - } - ], - 112: [, , { 769: 7765, 775: 7767 }], - 114: [ - , , - { 769: 341, 775: 7769, 780: 345, 783: 529, 785: 531, 803: 7771, 807: 343, 817: 7775 } - ], - 115: [, , { 769: 347, 770: 349, 775: 7777, 780: 353, 803: 7779, 806: 537, 807: 351 }], - 116: [ - , , - { 775: 7787, 776: 7831, 780: 357, 803: 7789, 806: 539, 807: 355, 813: 7793, 817: 7791 } - ], - 117: [ - , , - { - 768: 249, - 769: 250, - 770: 251, - 771: 361, - 772: 363, - 774: 365, - 776: 252, - 777: 7911, - 778: 367, - 779: 369, - 780: 468, - 783: 533, - 785: 535, - 795: 432, - 803: 7909, - 804: 7795, - 808: 371, - 813: 7799, - 816: 7797 - } - ], - 118: [, , { 771: 7805, 803: 7807 }], - 119: [, , { 768: 7809, 769: 7811, 770: 373, 775: 7815, 776: 7813, 778: 7832, 803: 7817 }], - 120: [, , { 775: 7819, 776: 7821 }], - 121: [ - , , - { - 768: 7923, - 769: 253, - 770: 375, - 771: 7929, - 772: 563, - 775: 7823, - 776: 255, - 777: 7927, - 778: 7833, - 803: 7925 - } - ], - 122: [, , { 769: 378, 770: 7825, 775: 380, 780: 382, 803: 7827, 817: 7829 }], - 160: [[32], 256], - 168: [[32, 776], 256, { 768: 8173, 769: 901, 834: 8129 }], - 170: [[97], 256], - 175: [[32, 772], 256], - 178: [[50], 256], - 179: [[51], 256], - 180: [[32, 769], 256], - 181: [[956], 256], - 184: [[32, 807], 256], - 185: [[49], 256], - 186: [[111], 256], - 188: [[49, 8260, 52], 256], - 189: [[49, 8260, 50], 256], - 190: [[51, 8260, 52], 256], - 192: [[65, 768]], - 193: [[65, 769]], - 194: [[65, 770], , { 768: 7846, 769: 7844, 771: 7850, 777: 7848 }], - 195: [[65, 771]], - 196: [[65, 776], , { 772: 478 }], - 197: [[65, 778], , { 769: 506 }], - 198: [, , { 769: 508, 772: 482 }], - 199: [[67, 807], , { 769: 7688 }], - 200: [[69, 768]], - 201: [[69, 769]], - 202: [[69, 770], , { 768: 7872, 769: 7870, 771: 7876, 777: 7874 }], - 203: [[69, 776]], - 204: [[73, 768]], - 205: [[73, 769]], - 206: [[73, 770]], - 207: [[73, 776], , { 769: 7726 }], - 209: [[78, 771]], - 210: [[79, 768]], - 211: [[79, 769]], - 212: [[79, 770], , { 768: 7890, 769: 7888, 771: 7894, 777: 7892 }], - 213: [[79, 771], , { 769: 7756, 772: 556, 776: 7758 }], - 214: [[79, 776], , { 772: 554 }], - 216: [, , { 769: 510 }], - 217: [[85, 768]], - 218: [[85, 769]], - 219: [[85, 770]], - 220: [[85, 776], , { 768: 475, 769: 471, 772: 469, 780: 473 }], - 221: [[89, 769]], - 224: [[97, 768]], - 225: [[97, 769]], - 226: [[97, 770], , { 768: 7847, 769: 7845, 771: 7851, 777: 7849 }], - 227: [[97, 771]], - 228: [[97, 776], , { 772: 479 }], - 229: [[97, 778], , { 769: 507 }], - 230: [, , { 769: 509, 772: 483 }], - 231: [[99, 807], , { 769: 7689 }], - 232: [[101, 768]], - 233: [[101, 769]], - 234: [[101, 770], , { 768: 7873, 769: 7871, 771: 7877, 777: 7875 }], - 235: [[101, 776]], - 236: [[105, 768]], - 237: [[105, 769]], - 238: [[105, 770]], - 239: [[105, 776], , { 769: 7727 }], - 241: [[110, 771]], - 242: [[111, 768]], - 243: [[111, 769]], - 244: [[111, 770], , { 768: 7891, 769: 7889, 771: 7895, 777: 7893 }], - 245: [[111, 771], , { 769: 7757, 772: 557, 776: 7759 }], - 246: [[111, 776], , { 772: 555 }], - 248: [, , { 769: 511 }], - 249: [[117, 768]], - 250: [[117, 769]], - 251: [[117, 770]], - 252: [[117, 776], , { 768: 476, 769: 472, 772: 470, 780: 474 }], - 253: [[121, 769]], - 255: [[121, 776]] - }, - 256: { - 256: [[65, 772]], - 257: [[97, 772]], - 258: [[65, 774], , { 768: 7856, 769: 7854, 771: 7860, 777: 7858 }], - 259: [[97, 774], , { 768: 7857, 769: 7855, 771: 7861, 777: 7859 }], - 260: [[65, 808]], - 261: [[97, 808]], - 262: [[67, 769]], - 263: [[99, 769]], - 264: [[67, 770]], - 265: [[99, 770]], - 266: [[67, 775]], - 267: [[99, 775]], - 268: [[67, 780]], - 269: [[99, 780]], - 270: [[68, 780]], - 271: [[100, 780]], - 274: [[69, 772], , { 768: 7700, 769: 7702 }], - 275: [[101, 772], , { 768: 7701, 769: 7703 }], - 276: [[69, 774]], - 277: [[101, 774]], - 278: [[69, 775]], - 279: [[101, 775]], - 280: [[69, 808]], - 281: [[101, 808]], - 282: [[69, 780]], - 283: [[101, 780]], - 284: [[71, 770]], - 285: [[103, 770]], - 286: [[71, 774]], - 287: [[103, 774]], - 288: [[71, 775]], - 289: [[103, 775]], - 290: [[71, 807]], - 291: [[103, 807]], - 292: [[72, 770]], - 293: [[104, 770]], - 296: [[73, 771]], - 297: [[105, 771]], - 298: [[73, 772]], - 299: [[105, 772]], - 300: [[73, 774]], - 301: [[105, 774]], - 302: [[73, 808]], - 303: [[105, 808]], - 304: [[73, 775]], - 306: [[73, 74], 256], - 307: [[105, 106], 256], - 308: [[74, 770]], - 309: [[106, 770]], - 310: [[75, 807]], - 311: [[107, 807]], - 313: [[76, 769]], - 314: [[108, 769]], - 315: [[76, 807]], - 316: [[108, 807]], - 317: [[76, 780]], - 318: [[108, 780]], - 319: [[76, 183], 256], - 320: [[108, 183], 256], - 323: [[78, 769]], - 324: [[110, 769]], - 325: [[78, 807]], - 326: [[110, 807]], - 327: [[78, 780]], - 328: [[110, 780]], - 329: [[700, 110], 256], - 332: [[79, 772], , { 768: 7760, 769: 7762 }], - 333: [[111, 772], , { 768: 7761, 769: 7763 }], - 334: [[79, 774]], - 335: [[111, 774]], - 336: [[79, 779]], - 337: [[111, 779]], - 340: [[82, 769]], - 341: [[114, 769]], - 342: [[82, 807]], - 343: [[114, 807]], - 344: [[82, 780]], - 345: [[114, 780]], - 346: [[83, 769], , { 775: 7780 }], - 347: [[115, 769], , { 775: 7781 }], - 348: [[83, 770]], - 349: [[115, 770]], - 350: [[83, 807]], - 351: [[115, 807]], - 352: [[83, 780], , { 775: 7782 }], - 353: [[115, 780], , { 775: 7783 }], - 354: [[84, 807]], - 355: [[116, 807]], - 356: [[84, 780]], - 357: [[116, 780]], - 360: [[85, 771], , { 769: 7800 }], - 361: [[117, 771], , { 769: 7801 }], - 362: [[85, 772], , { 776: 7802 }], - 363: [[117, 772], , { 776: 7803 }], - 364: [[85, 774]], - 365: [[117, 774]], - 366: [[85, 778]], - 367: [[117, 778]], - 368: [[85, 779]], - 369: [[117, 779]], - 370: [[85, 808]], - 371: [[117, 808]], - 372: [[87, 770]], - 373: [[119, 770]], - 374: [[89, 770]], - 375: [[121, 770]], - 376: [[89, 776]], - 377: [[90, 769]], - 378: [[122, 769]], - 379: [[90, 775]], - 380: [[122, 775]], - 381: [[90, 780]], - 382: [[122, 780]], - 383: [[115], 256, { 775: 7835 }], - 416: [[79, 795], , { 768: 7900, 769: 7898, 771: 7904, 777: 7902, 803: 7906 }], - 417: [[111, 795], , { 768: 7901, 769: 7899, 771: 7905, 777: 7903, 803: 7907 }], - 431: [[85, 795], , { 768: 7914, 769: 7912, 771: 7918, 777: 7916, 803: 7920 }], - 432: [[117, 795], , { 768: 7915, 769: 7913, 771: 7919, 777: 7917, 803: 7921 }], - 439: [, , { 780: 494 }], - 452: [[68, 381], 256], - 453: [[68, 382], 256], - 454: [[100, 382], 256], - 455: [[76, 74], 256], - 456: [[76, 106], 256], - 457: [[108, 106], 256], - 458: [[78, 74], 256], - 459: [[78, 106], 256], - 460: [[110, 106], 256], - 461: [[65, 780]], - 462: [[97, 780]], - 463: [[73, 780]], - 464: [[105, 780]], - 465: [[79, 780]], - 466: [[111, 780]], - 467: [[85, 780]], - 468: [[117, 780]], - 469: [[220, 772]], - 470: [[252, 772]], - 471: [[220, 769]], - 472: [[252, 769]], - 473: [[220, 780]], - 474: [[252, 780]], - 475: [[220, 768]], - 476: [[252, 768]], - 478: [[196, 772]], - 479: [[228, 772]], - 480: [[550, 772]], - 481: [[551, 772]], - 482: [[198, 772]], - 483: [[230, 772]], - 486: [[71, 780]], - 487: [[103, 780]], - 488: [[75, 780]], - 489: [[107, 780]], - 490: [[79, 808], , { 772: 492 }], - 491: [[111, 808], , { 772: 493 }], - 492: [[490, 772]], - 493: [[491, 772]], - 494: [[439, 780]], - 495: [[658, 780]], - 496: [[106, 780]], - 497: [[68, 90], 256], - 498: [[68, 122], 256], - 499: [[100, 122], 256], - 500: [[71, 769]], - 501: [[103, 769]], - 504: [[78, 768]], - 505: [[110, 768]], - 506: [[197, 769]], - 507: [[229, 769]], - 508: [[198, 769]], - 509: [[230, 769]], - 510: [[216, 769]], - 511: [[248, 769]], - 66045: [, 220] - }, - 512: { - 512: [[65, 783]], - 513: [[97, 783]], - 514: [[65, 785]], - 515: [[97, 785]], - 516: [[69, 783]], - 517: [[101, 783]], - 518: [[69, 785]], - 519: [[101, 785]], - 520: [[73, 783]], - 521: [[105, 783]], - 522: [[73, 785]], - 523: [[105, 785]], - 524: [[79, 783]], - 525: [[111, 783]], - 526: [[79, 785]], - 527: [[111, 785]], - 528: [[82, 783]], - 529: [[114, 783]], - 530: [[82, 785]], - 531: [[114, 785]], - 532: [[85, 783]], - 533: [[117, 783]], - 534: [[85, 785]], - 535: [[117, 785]], - 536: [[83, 806]], - 537: [[115, 806]], - 538: [[84, 806]], - 539: [[116, 806]], - 542: [[72, 780]], - 543: [[104, 780]], - 550: [[65, 775], , { 772: 480 }], - 551: [[97, 775], , { 772: 481 }], - 552: [[69, 807], , { 774: 7708 }], - 553: [[101, 807], , { 774: 7709 }], - 554: [[214, 772]], - 555: [[246, 772]], - 556: [[213, 772]], - 557: [[245, 772]], - 558: [[79, 775], , { 772: 560 }], - 559: [[111, 775], , { 772: 561 }], - 560: [[558, 772]], - 561: [[559, 772]], - 562: [[89, 772]], - 563: [[121, 772]], - 658: [, , { 780: 495 }], - 688: [[104], 256], - 689: [[614], 256], - 690: [[106], 256], - 691: [[114], 256], - 692: [[633], 256], - 693: [[635], 256], - 694: [[641], 256], - 695: [[119], 256], - 696: [[121], 256], - 728: [[32, 774], 256], - 729: [[32, 775], 256], - 730: [[32, 778], 256], - 731: [[32, 808], 256], - 732: [[32, 771], 256], - 733: [[32, 779], 256], - 736: [[611], 256], - 737: [[108], 256], - 738: [[115], 256], - 739: [[120], 256], - 740: [[661], 256] - }, - 768: { - 768: [, 230], - 769: [, 230], - 770: [, 230], - 771: [, 230], - 772: [, 230], - 773: [, 230], - 774: [, 230], - 775: [, 230], - 776: [, 230, { 769: 836 }], - 777: [, 230], - 778: [, 230], - 779: [, 230], - 780: [, 230], - 781: [, 230], - 782: [, 230], - 783: [, 230], - 784: [, 230], - 785: [, 230], - 786: [, 230], - 787: [, 230], - 788: [, 230], - 789: [, 232], - 790: [, 220], - 791: [, 220], - 792: [, 220], - 793: [, 220], - 794: [, 232], - 795: [, 216], - 796: [, 220], - 797: [, 220], - 798: [, 220], - 799: [, 220], - 800: [, 220], - 801: [, 202], - 802: [, 202], - 803: [, 220], - 804: [, 220], - 805: [, 220], - 806: [, 220], - 807: [, 202], - 808: [, 202], - 809: [, 220], - 810: [, 220], - 811: [, 220], - 812: [, 220], - 813: [, 220], - 814: [, 220], - 815: [, 220], - 816: [, 220], - 817: [, 220], - 818: [, 220], - 819: [, 220], - 820: [, 1], - 821: [, 1], - 822: [, 1], - 823: [, 1], - 824: [, 1], - 825: [, 220], - 826: [, 220], - 827: [, 220], - 828: [, 220], - 829: [, 230], - 830: [, 230], - 831: [, 230], - 832: [[768], 230], - 833: [[769], 230], - 834: [, 230], - 835: [[787], 230], - 836: [[776, 769], 230], - 837: [, 240], - 838: [, 230], - 839: [, 220], - 840: [, 220], - 841: [, 220], - 842: [, 230], - 843: [, 230], - 844: [, 230], - 845: [, 220], - 846: [, 220], - 848: [, 230], - 849: [, 230], - 850: [, 230], - 851: [, 220], - 852: [, 220], - 853: [, 220], - 854: [, 220], - 855: [, 230], - 856: [, 232], - 857: [, 220], - 858: [, 220], - 859: [, 230], - 860: [, 233], - 861: [, 234], - 862: [, 234], - 863: [, 233], - 864: [, 234], - 865: [, 234], - 866: [, 233], - 867: [, 230], - 868: [, 230], - 869: [, 230], - 870: [, 230], - 871: [, 230], - 872: [, 230], - 873: [, 230], - 874: [, 230], - 875: [, 230], - 876: [, 230], - 877: [, 230], - 878: [, 230], - 879: [, 230], - 884: [[697]], - 890: [[32, 837], 256], - 894: [[59]], - 900: [[32, 769], 256], - 901: [[168, 769]], - 902: [[913, 769]], - 903: [[183]], - 904: [[917, 769]], - 905: [[919, 769]], - 906: [[921, 769]], - 908: [[927, 769]], - 910: [[933, 769]], - 911: [[937, 769]], - 912: [[970, 769]], - 913: [, , { 768: 8122, 769: 902, 772: 8121, 774: 8120, 787: 7944, 788: 7945, 837: 8124 }], - 917: [, , { 768: 8136, 769: 904, 787: 7960, 788: 7961 }], - 919: [, , { 768: 8138, 769: 905, 787: 7976, 788: 7977, 837: 8140 }], - 921: [, , { 768: 8154, 769: 906, 772: 8153, 774: 8152, 776: 938, 787: 7992, 788: 7993 }], - 927: [, , { 768: 8184, 769: 908, 787: 8008, 788: 8009 }], - 929: [, , { 788: 8172 }], - 933: [, , { 768: 8170, 769: 910, 772: 8169, 774: 8168, 776: 939, 788: 8025 }], - 937: [, , { 768: 8186, 769: 911, 787: 8040, 788: 8041, 837: 8188 }], - 938: [[921, 776]], - 939: [[933, 776]], - 940: [[945, 769], , { 837: 8116 }], - 941: [[949, 769]], - 942: [[951, 769], , { 837: 8132 }], - 943: [[953, 769]], - 944: [[971, 769]], - 945: [ - , , - { - 768: 8048, - 769: 940, - 772: 8113, - 774: 8112, - 787: 7936, - 788: 7937, - 834: 8118, - 837: 8115 - } - ], - 949: [, , { 768: 8050, 769: 941, 787: 7952, 788: 7953 }], - 951: [, , { 768: 8052, 769: 942, 787: 7968, 788: 7969, 834: 8134, 837: 8131 }], - 953: [ - , , - { 768: 8054, 769: 943, 772: 8145, 774: 8144, 776: 970, 787: 7984, 788: 7985, 834: 8150 } - ], - 959: [, , { 768: 8056, 769: 972, 787: 8000, 788: 8001 }], - 961: [, , { 787: 8164, 788: 8165 }], - 965: [ - , , - { 768: 8058, 769: 973, 772: 8161, 774: 8160, 776: 971, 787: 8016, 788: 8017, 834: 8166 } - ], - 969: [, , { 768: 8060, 769: 974, 787: 8032, 788: 8033, 834: 8182, 837: 8179 }], - 970: [[953, 776], , { 768: 8146, 769: 912, 834: 8151 }], - 971: [[965, 776], , { 768: 8162, 769: 944, 834: 8167 }], - 972: [[959, 769]], - 973: [[965, 769]], - 974: [[969, 769], , { 837: 8180 }], - 976: [[946], 256], - 977: [[952], 256], - 978: [[933], 256, { 769: 979, 776: 980 }], - 979: [[978, 769]], - 980: [[978, 776]], - 981: [[966], 256], - 982: [[960], 256], - 1008: [[954], 256], - 1009: [[961], 256], - 1010: [[962], 256], - 1012: [[920], 256], - 1013: [[949], 256], - 1017: [[931], 256] - }, - 1024: { - 1024: [[1045, 768]], - 1025: [[1045, 776]], - 1027: [[1043, 769]], - 1030: [, , { 776: 1031 }], - 1031: [[1030, 776]], - 1036: [[1050, 769]], - 1037: [[1048, 768]], - 1038: [[1059, 774]], - 1040: [, , { 774: 1232, 776: 1234 }], - 1043: [, , { 769: 1027 }], - 1045: [, , { 768: 1024, 774: 1238, 776: 1025 }], - 1046: [, , { 774: 1217, 776: 1244 }], - 1047: [, , { 776: 1246 }], - 1048: [, , { 768: 1037, 772: 1250, 774: 1049, 776: 1252 }], - 1049: [[1048, 774]], - 1050: [, , { 769: 1036 }], - 1054: [, , { 776: 1254 }], - 1059: [, , { 772: 1262, 774: 1038, 776: 1264, 779: 1266 }], - 1063: [, , { 776: 1268 }], - 1067: [, , { 776: 1272 }], - 1069: [, , { 776: 1260 }], - 1072: [, , { 774: 1233, 776: 1235 }], - 1075: [, , { 769: 1107 }], - 1077: [, , { 768: 1104, 774: 1239, 776: 1105 }], - 1078: [, , { 774: 1218, 776: 1245 }], - 1079: [, , { 776: 1247 }], - 1080: [, , { 768: 1117, 772: 1251, 774: 1081, 776: 1253 }], - 1081: [[1080, 774]], - 1082: [, , { 769: 1116 }], - 1086: [, , { 776: 1255 }], - 1091: [, , { 772: 1263, 774: 1118, 776: 1265, 779: 1267 }], - 1095: [, , { 776: 1269 }], - 1099: [, , { 776: 1273 }], - 1101: [, , { 776: 1261 }], - 1104: [[1077, 768]], - 1105: [[1077, 776]], - 1107: [[1075, 769]], - 1110: [, , { 776: 1111 }], - 1111: [[1110, 776]], - 1116: [[1082, 769]], - 1117: [[1080, 768]], - 1118: [[1091, 774]], - 1140: [, , { 783: 1142 }], - 1141: [, , { 783: 1143 }], - 1142: [[1140, 783]], - 1143: [[1141, 783]], - 1155: [, 230], - 1156: [, 230], - 1157: [, 230], - 1158: [, 230], - 1159: [, 230], - 1217: [[1046, 774]], - 1218: [[1078, 774]], - 1232: [[1040, 774]], - 1233: [[1072, 774]], - 1234: [[1040, 776]], - 1235: [[1072, 776]], - 1238: [[1045, 774]], - 1239: [[1077, 774]], - 1240: [, , { 776: 1242 }], - 1241: [, , { 776: 1243 }], - 1242: [[1240, 776]], - 1243: [[1241, 776]], - 1244: [[1046, 776]], - 1245: [[1078, 776]], - 1246: [[1047, 776]], - 1247: [[1079, 776]], - 1250: [[1048, 772]], - 1251: [[1080, 772]], - 1252: [[1048, 776]], - 1253: [[1080, 776]], - 1254: [[1054, 776]], - 1255: [[1086, 776]], - 1256: [, , { 776: 1258 }], - 1257: [, , { 776: 1259 }], - 1258: [[1256, 776]], - 1259: [[1257, 776]], - 1260: [[1069, 776]], - 1261: [[1101, 776]], - 1262: [[1059, 772]], - 1263: [[1091, 772]], - 1264: [[1059, 776]], - 1265: [[1091, 776]], - 1266: [[1059, 779]], - 1267: [[1091, 779]], - 1268: [[1063, 776]], - 1269: [[1095, 776]], - 1272: [[1067, 776]], - 1273: [[1099, 776]] - }, - 1280: { - 1415: [[1381, 1410], 256], - 1425: [, 220], - 1426: [, 230], - 1427: [, 230], - 1428: [, 230], - 1429: [, 230], - 1430: [, 220], - 1431: [, 230], - 1432: [, 230], - 1433: [, 230], - 1434: [, 222], - 1435: [, 220], - 1436: [, 230], - 1437: [, 230], - 1438: [, 230], - 1439: [, 230], - 1440: [, 230], - 1441: [, 230], - 1442: [, 220], - 1443: [, 220], - 1444: [, 220], - 1445: [, 220], - 1446: [, 220], - 1447: [, 220], - 1448: [, 230], - 1449: [, 230], - 1450: [, 220], - 1451: [, 230], - 1452: [, 230], - 1453: [, 222], - 1454: [, 228], - 1455: [, 230], - 1456: [, 10], - 1457: [, 11], - 1458: [, 12], - 1459: [, 13], - 1460: [, 14], - 1461: [, 15], - 1462: [, 16], - 1463: [, 17], - 1464: [, 18], - 1465: [, 19], - 1466: [, 19], - 1467: [, 20], - 1468: [, 21], - 1469: [, 22], - 1471: [, 23], - 1473: [, 24], - 1474: [, 25], - 1476: [, 230], - 1477: [, 220], - 1479: [, 18] - }, - 1536: { - 1552: [, 230], - 1553: [, 230], - 1554: [, 230], - 1555: [, 230], - 1556: [, 230], - 1557: [, 230], - 1558: [, 230], - 1559: [, 230], - 1560: [, 30], - 1561: [, 31], - 1562: [, 32], - 1570: [[1575, 1619]], - 1571: [[1575, 1620]], - 1572: [[1608, 1620]], - 1573: [[1575, 1621]], - 1574: [[1610, 1620]], - 1575: [, , { 1619: 1570, 1620: 1571, 1621: 1573 }], - 1608: [, , { 1620: 1572 }], - 1610: [, , { 1620: 1574 }], - 1611: [, 27], - 1612: [, 28], - 1613: [, 29], - 1614: [, 30], - 1615: [, 31], - 1616: [, 32], - 1617: [, 33], - 1618: [, 34], - 1619: [, 230], - 1620: [, 230], - 1621: [, 220], - 1622: [, 220], - 1623: [, 230], - 1624: [, 230], - 1625: [, 230], - 1626: [, 230], - 1627: [, 230], - 1628: [, 220], - 1629: [, 230], - 1630: [, 230], - 1631: [, 220], - 1648: [, 35], - 1653: [[1575, 1652], 256], - 1654: [[1608, 1652], 256], - 1655: [[1735, 1652], 256], - 1656: [[1610, 1652], 256], - 1728: [[1749, 1620]], - 1729: [, , { 1620: 1730 }], - 1730: [[1729, 1620]], - 1746: [, , { 1620: 1747 }], - 1747: [[1746, 1620]], - 1749: [, , { 1620: 1728 }], - 1750: [, 230], - 1751: [, 230], - 1752: [, 230], - 1753: [, 230], - 1754: [, 230], - 1755: [, 230], - 1756: [, 230], - 1759: [, 230], - 1760: [, 230], - 1761: [, 230], - 1762: [, 230], - 1763: [, 220], - 1764: [, 230], - 1767: [, 230], - 1768: [, 230], - 1770: [, 220], - 1771: [, 230], - 1772: [, 230], - 1773: [, 220] - }, - 1792: { - 1809: [, 36], - 1840: [, 230], - 1841: [, 220], - 1842: [, 230], - 1843: [, 230], - 1844: [, 220], - 1845: [, 230], - 1846: [, 230], - 1847: [, 220], - 1848: [, 220], - 1849: [, 220], - 1850: [, 230], - 1851: [, 220], - 1852: [, 220], - 1853: [, 230], - 1854: [, 220], - 1855: [, 230], - 1856: [, 230], - 1857: [, 230], - 1858: [, 220], - 1859: [, 230], - 1860: [, 220], - 1861: [, 230], - 1862: [, 220], - 1863: [, 230], - 1864: [, 220], - 1865: [, 230], - 1866: [, 230], - 2027: [, 230], - 2028: [, 230], - 2029: [, 230], - 2030: [, 230], - 2031: [, 230], - 2032: [, 230], - 2033: [, 230], - 2034: [, 220], - 2035: [, 230] - }, - 2048: { - 2070: [, 230], - 2071: [, 230], - 2072: [, 230], - 2073: [, 230], - 2075: [, 230], - 2076: [, 230], - 2077: [, 230], - 2078: [, 230], - 2079: [, 230], - 2080: [, 230], - 2081: [, 230], - 2082: [, 230], - 2083: [, 230], - 2085: [, 230], - 2086: [, 230], - 2087: [, 230], - 2089: [, 230], - 2090: [, 230], - 2091: [, 230], - 2092: [, 230], - 2093: [, 230], - 2137: [, 220], - 2138: [, 220], - 2139: [, 220], - 2276: [, 230], - 2277: [, 230], - 2278: [, 220], - 2279: [, 230], - 2280: [, 230], - 2281: [, 220], - 2282: [, 230], - 2283: [, 230], - 2284: [, 230], - 2285: [, 220], - 2286: [, 220], - 2287: [, 220], - 2288: [, 27], - 2289: [, 28], - 2290: [, 29], - 2291: [, 230], - 2292: [, 230], - 2293: [, 230], - 2294: [, 220], - 2295: [, 230], - 2296: [, 230], - 2297: [, 220], - 2298: [, 220], - 2299: [, 230], - 2300: [, 230], - 2301: [, 230], - 2302: [, 230] - }, - 2304: { - 2344: [, , { 2364: 2345 }], - 2345: [[2344, 2364]], - 2352: [, , { 2364: 2353 }], - 2353: [[2352, 2364]], - 2355: [, , { 2364: 2356 }], - 2356: [[2355, 2364]], - 2364: [, 7], - 2381: [, 9], - 2385: [, 230], - 2386: [, 220], - 2387: [, 230], - 2388: [, 230], - 2392: [[2325, 2364], 512], - 2393: [[2326, 2364], 512], - 2394: [[2327, 2364], 512], - 2395: [[2332, 2364], 512], - 2396: [[2337, 2364], 512], - 2397: [[2338, 2364], 512], - 2398: [[2347, 2364], 512], - 2399: [[2351, 2364], 512], - 2492: [, 7], - 2503: [, , { 2494: 2507, 2519: 2508 }], - 2507: [[2503, 2494]], - 2508: [[2503, 2519]], - 2509: [, 9], - 2524: [[2465, 2492], 512], - 2525: [[2466, 2492], 512], - 2527: [[2479, 2492], 512] - }, - 2560: { - 2611: [[2610, 2620], 512], - 2614: [[2616, 2620], 512], - 2620: [, 7], - 2637: [, 9], - 2649: [[2582, 2620], 512], - 2650: [[2583, 2620], 512], - 2651: [[2588, 2620], 512], - 2654: [[2603, 2620], 512], - 2748: [, 7], - 2765: [, 9], - 68109: [, 220], - 68111: [, 230], - 68152: [, 230], - 68153: [, 1], - 68154: [, 220], - 68159: [, 9] - }, - 2816: { - 2876: [, 7], - 2887: [, , { 2878: 2891, 2902: 2888, 2903: 2892 }], - 2888: [[2887, 2902]], - 2891: [[2887, 2878]], - 2892: [[2887, 2903]], - 2893: [, 9], - 2908: [[2849, 2876], 512], - 2909: [[2850, 2876], 512], - 2962: [, , { 3031: 2964 }], - 2964: [[2962, 3031]], - 3014: [, , { 3006: 3018, 3031: 3020 }], - 3015: [, , { 3006: 3019 }], - 3018: [[3014, 3006]], - 3019: [[3015, 3006]], - 3020: [[3014, 3031]], - 3021: [, 9] - }, - 3072: { - 3142: [, , { 3158: 3144 }], - 3144: [[3142, 3158]], - 3149: [, 9], - 3157: [, 84], - 3158: [, 91], - 3260: [, 7], - 3263: [, , { 3285: 3264 }], - 3264: [[3263, 3285]], - 3270: [, , { 3266: 3274, 3285: 3271, 3286: 3272 }], - 3271: [[3270, 3285]], - 3272: [[3270, 3286]], - 3274: [[3270, 3266], , { 3285: 3275 }], - 3275: [[3274, 3285]], - 3277: [, 9] - }, - 3328: { - 3398: [, , { 3390: 3402, 3415: 3404 }], - 3399: [, , { 3390: 3403 }], - 3402: [[3398, 3390]], - 3403: [[3399, 3390]], - 3404: [[3398, 3415]], - 3405: [, 9], - 3530: [, 9], - 3545: [, , { 3530: 3546, 3535: 3548, 3551: 3550 }], - 3546: [[3545, 3530]], - 3548: [[3545, 3535], , { 3530: 3549 }], - 3549: [[3548, 3530]], - 3550: [[3545, 3551]] - }, - 3584: { - 3635: [[3661, 3634], 256], - 3640: [, 103], - 3641: [, 103], - 3642: [, 9], - 3656: [, 107], - 3657: [, 107], - 3658: [, 107], - 3659: [, 107], - 3763: [[3789, 3762], 256], - 3768: [, 118], - 3769: [, 118], - 3784: [, 122], - 3785: [, 122], - 3786: [, 122], - 3787: [, 122], - 3804: [[3755, 3737], 256], - 3805: [[3755, 3745], 256] - }, - 3840: { - 3852: [[3851], 256], - 3864: [, 220], - 3865: [, 220], - 3893: [, 220], - 3895: [, 220], - 3897: [, 216], - 3907: [[3906, 4023], 512], - 3917: [[3916, 4023], 512], - 3922: [[3921, 4023], 512], - 3927: [[3926, 4023], 512], - 3932: [[3931, 4023], 512], - 3945: [[3904, 4021], 512], - 3953: [, 129], - 3954: [, 130], - 3955: [[3953, 3954], 512], - 3956: [, 132], - 3957: [[3953, 3956], 512], - 3958: [[4018, 3968], 512], - 3959: [[4018, 3969], 256], - 3960: [[4019, 3968], 512], - 3961: [[4019, 3969], 256], - 3962: [, 130], - 3963: [, 130], - 3964: [, 130], - 3965: [, 130], - 3968: [, 130], - 3969: [[3953, 3968], 512], - 3970: [, 230], - 3971: [, 230], - 3972: [, 9], - 3974: [, 230], - 3975: [, 230], - 3987: [[3986, 4023], 512], - 3997: [[3996, 4023], 512], - 4002: [[4001, 4023], 512], - 4007: [[4006, 4023], 512], - 4012: [[4011, 4023], 512], - 4025: [[3984, 4021], 512], - 4038: [, 220] - }, - 4096: { - 4133: [, , { 4142: 4134 }], - 4134: [[4133, 4142]], - 4151: [, 7], - 4153: [, 9], - 4154: [, 9], - 4237: [, 220], - 4348: [[4316], 256], - 69702: [, 9], - 69785: [, , { 69818: 69786 }], - 69786: [[69785, 69818]], - 69787: [, , { 69818: 69788 }], - 69788: [[69787, 69818]], - 69797: [, , { 69818: 69803 }], - 69803: [[69797, 69818]], - 69817: [, 9], - 69818: [, 7] - }, - 4352: { - 69888: [, 230], - 69889: [, 230], - 69890: [, 230], - 69934: [[69937, 69927]], - 69935: [[69938, 69927]], - 69937: [, , { 69927: 69934 }], - 69938: [, , { 69927: 69935 }], - 69939: [, 9], - 69940: [, 9], - 70080: [, 9] - }, - 4864: { 4957: [, 230], 4958: [, 230], 4959: [, 230] }, - 5632: { 71350: [, 9], 71351: [, 7] }, - 5888: { 5908: [, 9], 5940: [, 9], 6098: [, 9], 6109: [, 230] }, - 6144: { 6313: [, 228] }, - 6400: { 6457: [, 222], 6458: [, 230], 6459: [, 220] }, - 6656: { - 6679: [, 230], - 6680: [, 220], - 6752: [, 9], - 6773: [, 230], - 6774: [, 230], - 6775: [, 230], - 6776: [, 230], - 6777: [, 230], - 6778: [, 230], - 6779: [, 230], - 6780: [, 230], - 6783: [, 220] - }, - 6912: { - 6917: [, , { 6965: 6918 }], - 6918: [[6917, 6965]], - 6919: [, , { 6965: 6920 }], - 6920: [[6919, 6965]], - 6921: [, , { 6965: 6922 }], - 6922: [[6921, 6965]], - 6923: [, , { 6965: 6924 }], - 6924: [[6923, 6965]], - 6925: [, , { 6965: 6926 }], - 6926: [[6925, 6965]], - 6929: [, , { 6965: 6930 }], - 6930: [[6929, 6965]], - 6964: [, 7], - 6970: [, , { 6965: 6971 }], - 6971: [[6970, 6965]], - 6972: [, , { 6965: 6973 }], - 6973: [[6972, 6965]], - 6974: [, , { 6965: 6976 }], - 6975: [, , { 6965: 6977 }], - 6976: [[6974, 6965]], - 6977: [[6975, 6965]], - 6978: [, , { 6965: 6979 }], - 6979: [[6978, 6965]], - 6980: [, 9], - 7019: [, 230], - 7020: [, 220], - 7021: [, 230], - 7022: [, 230], - 7023: [, 230], - 7024: [, 230], - 7025: [, 230], - 7026: [, 230], - 7027: [, 230], - 7082: [, 9], - 7083: [, 9], - 7142: [, 7], - 7154: [, 9], - 7155: [, 9] - }, - 7168: { - 7223: [, 7], - 7376: [, 230], - 7377: [, 230], - 7378: [, 230], - 7380: [, 1], - 7381: [, 220], - 7382: [, 220], - 7383: [, 220], - 7384: [, 220], - 7385: [, 220], - 7386: [, 230], - 7387: [, 230], - 7388: [, 220], - 7389: [, 220], - 7390: [, 220], - 7391: [, 220], - 7392: [, 230], - 7394: [, 1], - 7395: [, 1], - 7396: [, 1], - 7397: [, 1], - 7398: [, 1], - 7399: [, 1], - 7400: [, 1], - 7405: [, 220], - 7412: [, 230] - }, - 7424: { - 7468: [[65], 256], - 7469: [[198], 256], - 7470: [[66], 256], - 7472: [[68], 256], - 7473: [[69], 256], - 7474: [[398], 256], - 7475: [[71], 256], - 7476: [[72], 256], - 7477: [[73], 256], - 7478: [[74], 256], - 7479: [[75], 256], - 7480: [[76], 256], - 7481: [[77], 256], - 7482: [[78], 256], - 7484: [[79], 256], - 7485: [[546], 256], - 7486: [[80], 256], - 7487: [[82], 256], - 7488: [[84], 256], - 7489: [[85], 256], - 7490: [[87], 256], - 7491: [[97], 256], - 7492: [[592], 256], - 7493: [[593], 256], - 7494: [[7426], 256], - 7495: [[98], 256], - 7496: [[100], 256], - 7497: [[101], 256], - 7498: [[601], 256], - 7499: [[603], 256], - 7500: [[604], 256], - 7501: [[103], 256], - 7503: [[107], 256], - 7504: [[109], 256], - 7505: [[331], 256], - 7506: [[111], 256], - 7507: [[596], 256], - 7508: [[7446], 256], - 7509: [[7447], 256], - 7510: [[112], 256], - 7511: [[116], 256], - 7512: [[117], 256], - 7513: [[7453], 256], - 7514: [[623], 256], - 7515: [[118], 256], - 7516: [[7461], 256], - 7517: [[946], 256], - 7518: [[947], 256], - 7519: [[948], 256], - 7520: [[966], 256], - 7521: [[967], 256], - 7522: [[105], 256], - 7523: [[114], 256], - 7524: [[117], 256], - 7525: [[118], 256], - 7526: [[946], 256], - 7527: [[947], 256], - 7528: [[961], 256], - 7529: [[966], 256], - 7530: [[967], 256], - 7544: [[1085], 256], - 7579: [[594], 256], - 7580: [[99], 256], - 7581: [[597], 256], - 7582: [[240], 256], - 7583: [[604], 256], - 7584: [[102], 256], - 7585: [[607], 256], - 7586: [[609], 256], - 7587: [[613], 256], - 7588: [[616], 256], - 7589: [[617], 256], - 7590: [[618], 256], - 7591: [[7547], 256], - 7592: [[669], 256], - 7593: [[621], 256], - 7594: [[7557], 256], - 7595: [[671], 256], - 7596: [[625], 256], - 7597: [[624], 256], - 7598: [[626], 256], - 7599: [[627], 256], - 7600: [[628], 256], - 7601: [[629], 256], - 7602: [[632], 256], - 7603: [[642], 256], - 7604: [[643], 256], - 7605: [[427], 256], - 7606: [[649], 256], - 7607: [[650], 256], - 7608: [[7452], 256], - 7609: [[651], 256], - 7610: [[652], 256], - 7611: [[122], 256], - 7612: [[656], 256], - 7613: [[657], 256], - 7614: [[658], 256], - 7615: [[952], 256], - 7616: [, 230], - 7617: [, 230], - 7618: [, 220], - 7619: [, 230], - 7620: [, 230], - 7621: [, 230], - 7622: [, 230], - 7623: [, 230], - 7624: [, 230], - 7625: [, 230], - 7626: [, 220], - 7627: [, 230], - 7628: [, 230], - 7629: [, 234], - 7630: [, 214], - 7631: [, 220], - 7632: [, 202], - 7633: [, 230], - 7634: [, 230], - 7635: [, 230], - 7636: [, 230], - 7637: [, 230], - 7638: [, 230], - 7639: [, 230], - 7640: [, 230], - 7641: [, 230], - 7642: [, 230], - 7643: [, 230], - 7644: [, 230], - 7645: [, 230], - 7646: [, 230], - 7647: [, 230], - 7648: [, 230], - 7649: [, 230], - 7650: [, 230], - 7651: [, 230], - 7652: [, 230], - 7653: [, 230], - 7654: [, 230], - 7676: [, 233], - 7677: [, 220], - 7678: [, 230], - 7679: [, 220] - }, - 7680: { - 7680: [[65, 805]], - 7681: [[97, 805]], - 7682: [[66, 775]], - 7683: [[98, 775]], - 7684: [[66, 803]], - 7685: [[98, 803]], - 7686: [[66, 817]], - 7687: [[98, 817]], - 7688: [[199, 769]], - 7689: [[231, 769]], - 7690: [[68, 775]], - 7691: [[100, 775]], - 7692: [[68, 803]], - 7693: [[100, 803]], - 7694: [[68, 817]], - 7695: [[100, 817]], - 7696: [[68, 807]], - 7697: [[100, 807]], - 7698: [[68, 813]], - 7699: [[100, 813]], - 7700: [[274, 768]], - 7701: [[275, 768]], - 7702: [[274, 769]], - 7703: [[275, 769]], - 7704: [[69, 813]], - 7705: [[101, 813]], - 7706: [[69, 816]], - 7707: [[101, 816]], - 7708: [[552, 774]], - 7709: [[553, 774]], - 7710: [[70, 775]], - 7711: [[102, 775]], - 7712: [[71, 772]], - 7713: [[103, 772]], - 7714: [[72, 775]], - 7715: [[104, 775]], - 7716: [[72, 803]], - 7717: [[104, 803]], - 7718: [[72, 776]], - 7719: [[104, 776]], - 7720: [[72, 807]], - 7721: [[104, 807]], - 7722: [[72, 814]], - 7723: [[104, 814]], - 7724: [[73, 816]], - 7725: [[105, 816]], - 7726: [[207, 769]], - 7727: [[239, 769]], - 7728: [[75, 769]], - 7729: [[107, 769]], - 7730: [[75, 803]], - 7731: [[107, 803]], - 7732: [[75, 817]], - 7733: [[107, 817]], - 7734: [[76, 803], , { 772: 7736 }], - 7735: [[108, 803], , { 772: 7737 }], - 7736: [[7734, 772]], - 7737: [[7735, 772]], - 7738: [[76, 817]], - 7739: [[108, 817]], - 7740: [[76, 813]], - 7741: [[108, 813]], - 7742: [[77, 769]], - 7743: [[109, 769]], - 7744: [[77, 775]], - 7745: [[109, 775]], - 7746: [[77, 803]], - 7747: [[109, 803]], - 7748: [[78, 775]], - 7749: [[110, 775]], - 7750: [[78, 803]], - 7751: [[110, 803]], - 7752: [[78, 817]], - 7753: [[110, 817]], - 7754: [[78, 813]], - 7755: [[110, 813]], - 7756: [[213, 769]], - 7757: [[245, 769]], - 7758: [[213, 776]], - 7759: [[245, 776]], - 7760: [[332, 768]], - 7761: [[333, 768]], - 7762: [[332, 769]], - 7763: [[333, 769]], - 7764: [[80, 769]], - 7765: [[112, 769]], - 7766: [[80, 775]], - 7767: [[112, 775]], - 7768: [[82, 775]], - 7769: [[114, 775]], - 7770: [[82, 803], , { 772: 7772 }], - 7771: [[114, 803], , { 772: 7773 }], - 7772: [[7770, 772]], - 7773: [[7771, 772]], - 7774: [[82, 817]], - 7775: [[114, 817]], - 7776: [[83, 775]], - 7777: [[115, 775]], - 7778: [[83, 803], , { 775: 7784 }], - 7779: [[115, 803], , { 775: 7785 }], - 7780: [[346, 775]], - 7781: [[347, 775]], - 7782: [[352, 775]], - 7783: [[353, 775]], - 7784: [[7778, 775]], - 7785: [[7779, 775]], - 7786: [[84, 775]], - 7787: [[116, 775]], - 7788: [[84, 803]], - 7789: [[116, 803]], - 7790: [[84, 817]], - 7791: [[116, 817]], - 7792: [[84, 813]], - 7793: [[116, 813]], - 7794: [[85, 804]], - 7795: [[117, 804]], - 7796: [[85, 816]], - 7797: [[117, 816]], - 7798: [[85, 813]], - 7799: [[117, 813]], - 7800: [[360, 769]], - 7801: [[361, 769]], - 7802: [[362, 776]], - 7803: [[363, 776]], - 7804: [[86, 771]], - 7805: [[118, 771]], - 7806: [[86, 803]], - 7807: [[118, 803]], - 7808: [[87, 768]], - 7809: [[119, 768]], - 7810: [[87, 769]], - 7811: [[119, 769]], - 7812: [[87, 776]], - 7813: [[119, 776]], - 7814: [[87, 775]], - 7815: [[119, 775]], - 7816: [[87, 803]], - 7817: [[119, 803]], - 7818: [[88, 775]], - 7819: [[120, 775]], - 7820: [[88, 776]], - 7821: [[120, 776]], - 7822: [[89, 775]], - 7823: [[121, 775]], - 7824: [[90, 770]], - 7825: [[122, 770]], - 7826: [[90, 803]], - 7827: [[122, 803]], - 7828: [[90, 817]], - 7829: [[122, 817]], - 7830: [[104, 817]], - 7831: [[116, 776]], - 7832: [[119, 778]], - 7833: [[121, 778]], - 7834: [[97, 702], 256], - 7835: [[383, 775]], - 7840: [[65, 803], , { 770: 7852, 774: 7862 }], - 7841: [[97, 803], , { 770: 7853, 774: 7863 }], - 7842: [[65, 777]], - 7843: [[97, 777]], - 7844: [[194, 769]], - 7845: [[226, 769]], - 7846: [[194, 768]], - 7847: [[226, 768]], - 7848: [[194, 777]], - 7849: [[226, 777]], - 7850: [[194, 771]], - 7851: [[226, 771]], - 7852: [[7840, 770]], - 7853: [[7841, 770]], - 7854: [[258, 769]], - 7855: [[259, 769]], - 7856: [[258, 768]], - 7857: [[259, 768]], - 7858: [[258, 777]], - 7859: [[259, 777]], - 7860: [[258, 771]], - 7861: [[259, 771]], - 7862: [[7840, 774]], - 7863: [[7841, 774]], - 7864: [[69, 803], , { 770: 7878 }], - 7865: [[101, 803], , { 770: 7879 }], - 7866: [[69, 777]], - 7867: [[101, 777]], - 7868: [[69, 771]], - 7869: [[101, 771]], - 7870: [[202, 769]], - 7871: [[234, 769]], - 7872: [[202, 768]], - 7873: [[234, 768]], - 7874: [[202, 777]], - 7875: [[234, 777]], - 7876: [[202, 771]], - 7877: [[234, 771]], - 7878: [[7864, 770]], - 7879: [[7865, 770]], - 7880: [[73, 777]], - 7881: [[105, 777]], - 7882: [[73, 803]], - 7883: [[105, 803]], - 7884: [[79, 803], , { 770: 7896 }], - 7885: [[111, 803], , { 770: 7897 }], - 7886: [[79, 777]], - 7887: [[111, 777]], - 7888: [[212, 769]], - 7889: [[244, 769]], - 7890: [[212, 768]], - 7891: [[244, 768]], - 7892: [[212, 777]], - 7893: [[244, 777]], - 7894: [[212, 771]], - 7895: [[244, 771]], - 7896: [[7884, 770]], - 7897: [[7885, 770]], - 7898: [[416, 769]], - 7899: [[417, 769]], - 7900: [[416, 768]], - 7901: [[417, 768]], - 7902: [[416, 777]], - 7903: [[417, 777]], - 7904: [[416, 771]], - 7905: [[417, 771]], - 7906: [[416, 803]], - 7907: [[417, 803]], - 7908: [[85, 803]], - 7909: [[117, 803]], - 7910: [[85, 777]], - 7911: [[117, 777]], - 7912: [[431, 769]], - 7913: [[432, 769]], - 7914: [[431, 768]], - 7915: [[432, 768]], - 7916: [[431, 777]], - 7917: [[432, 777]], - 7918: [[431, 771]], - 7919: [[432, 771]], - 7920: [[431, 803]], - 7921: [[432, 803]], - 7922: [[89, 768]], - 7923: [[121, 768]], - 7924: [[89, 803]], - 7925: [[121, 803]], - 7926: [[89, 777]], - 7927: [[121, 777]], - 7928: [[89, 771]], - 7929: [[121, 771]] - }, - 7936: { - 7936: [[945, 787], , { 768: 7938, 769: 7940, 834: 7942, 837: 8064 }], - 7937: [[945, 788], , { 768: 7939, 769: 7941, 834: 7943, 837: 8065 }], - 7938: [[7936, 768], , { 837: 8066 }], - 7939: [[7937, 768], , { 837: 8067 }], - 7940: [[7936, 769], , { 837: 8068 }], - 7941: [[7937, 769], , { 837: 8069 }], - 7942: [[7936, 834], , { 837: 8070 }], - 7943: [[7937, 834], , { 837: 8071 }], - 7944: [[913, 787], , { 768: 7946, 769: 7948, 834: 7950, 837: 8072 }], - 7945: [[913, 788], , { 768: 7947, 769: 7949, 834: 7951, 837: 8073 }], - 7946: [[7944, 768], , { 837: 8074 }], - 7947: [[7945, 768], , { 837: 8075 }], - 7948: [[7944, 769], , { 837: 8076 }], - 7949: [[7945, 769], , { 837: 8077 }], - 7950: [[7944, 834], , { 837: 8078 }], - 7951: [[7945, 834], , { 837: 8079 }], - 7952: [[949, 787], , { 768: 7954, 769: 7956 }], - 7953: [[949, 788], , { 768: 7955, 769: 7957 }], - 7954: [[7952, 768]], - 7955: [[7953, 768]], - 7956: [[7952, 769]], - 7957: [[7953, 769]], - 7960: [[917, 787], , { 768: 7962, 769: 7964 }], - 7961: [[917, 788], , { 768: 7963, 769: 7965 }], - 7962: [[7960, 768]], - 7963: [[7961, 768]], - 7964: [[7960, 769]], - 7965: [[7961, 769]], - 7968: [[951, 787], , { 768: 7970, 769: 7972, 834: 7974, 837: 8080 }], - 7969: [[951, 788], , { 768: 7971, 769: 7973, 834: 7975, 837: 8081 }], - 7970: [[7968, 768], , { 837: 8082 }], - 7971: [[7969, 768], , { 837: 8083 }], - 7972: [[7968, 769], , { 837: 8084 }], - 7973: [[7969, 769], , { 837: 8085 }], - 7974: [[7968, 834], , { 837: 8086 }], - 7975: [[7969, 834], , { 837: 8087 }], - 7976: [[919, 787], , { 768: 7978, 769: 7980, 834: 7982, 837: 8088 }], - 7977: [[919, 788], , { 768: 7979, 769: 7981, 834: 7983, 837: 8089 }], - 7978: [[7976, 768], , { 837: 8090 }], - 7979: [[7977, 768], , { 837: 8091 }], - 7980: [[7976, 769], , { 837: 8092 }], - 7981: [[7977, 769], , { 837: 8093 }], - 7982: [[7976, 834], , { 837: 8094 }], - 7983: [[7977, 834], , { 837: 8095 }], - 7984: [[953, 787], , { 768: 7986, 769: 7988, 834: 7990 }], - 7985: [[953, 788], , { 768: 7987, 769: 7989, 834: 7991 }], - 7986: [[7984, 768]], - 7987: [[7985, 768]], - 7988: [[7984, 769]], - 7989: [[7985, 769]], - 7990: [[7984, 834]], - 7991: [[7985, 834]], - 7992: [[921, 787], , { 768: 7994, 769: 7996, 834: 7998 }], - 7993: [[921, 788], , { 768: 7995, 769: 7997, 834: 7999 }], - 7994: [[7992, 768]], - 7995: [[7993, 768]], - 7996: [[7992, 769]], - 7997: [[7993, 769]], - 7998: [[7992, 834]], - 7999: [[7993, 834]], - 8000: [[959, 787], , { 768: 8002, 769: 8004 }], - 8001: [[959, 788], , { 768: 8003, 769: 8005 }], - 8002: [[8000, 768]], - 8003: [[8001, 768]], - 8004: [[8000, 769]], - 8005: [[8001, 769]], - 8008: [[927, 787], , { 768: 8010, 769: 8012 }], - 8009: [[927, 788], , { 768: 8011, 769: 8013 }], - 8010: [[8008, 768]], - 8011: [[8009, 768]], - 8012: [[8008, 769]], - 8013: [[8009, 769]], - 8016: [[965, 787], , { 768: 8018, 769: 8020, 834: 8022 }], - 8017: [[965, 788], , { 768: 8019, 769: 8021, 834: 8023 }], - 8018: [[8016, 768]], - 8019: [[8017, 768]], - 8020: [[8016, 769]], - 8021: [[8017, 769]], - 8022: [[8016, 834]], - 8023: [[8017, 834]], - 8025: [[933, 788], , { 768: 8027, 769: 8029, 834: 8031 }], - 8027: [[8025, 768]], - 8029: [[8025, 769]], - 8031: [[8025, 834]], - 8032: [[969, 787], , { 768: 8034, 769: 8036, 834: 8038, 837: 8096 }], - 8033: [[969, 788], , { 768: 8035, 769: 8037, 834: 8039, 837: 8097 }], - 8034: [[8032, 768], , { 837: 8098 }], - 8035: [[8033, 768], , { 837: 8099 }], - 8036: [[8032, 769], , { 837: 8100 }], - 8037: [[8033, 769], , { 837: 8101 }], - 8038: [[8032, 834], , { 837: 8102 }], - 8039: [[8033, 834], , { 837: 8103 }], - 8040: [[937, 787], , { 768: 8042, 769: 8044, 834: 8046, 837: 8104 }], - 8041: [[937, 788], , { 768: 8043, 769: 8045, 834: 8047, 837: 8105 }], - 8042: [[8040, 768], , { 837: 8106 }], - 8043: [[8041, 768], , { 837: 8107 }], - 8044: [[8040, 769], , { 837: 8108 }], - 8045: [[8041, 769], , { 837: 8109 }], - 8046: [[8040, 834], , { 837: 8110 }], - 8047: [[8041, 834], , { 837: 8111 }], - 8048: [[945, 768], , { 837: 8114 }], - 8049: [[940]], - 8050: [[949, 768]], - 8051: [[941]], - 8052: [[951, 768], , { 837: 8130 }], - 8053: [[942]], - 8054: [[953, 768]], - 8055: [[943]], - 8056: [[959, 768]], - 8057: [[972]], - 8058: [[965, 768]], - 8059: [[973]], - 8060: [[969, 768], , { 837: 8178 }], - 8061: [[974]], - 8064: [[7936, 837]], - 8065: [[7937, 837]], - 8066: [[7938, 837]], - 8067: [[7939, 837]], - 8068: [[7940, 837]], - 8069: [[7941, 837]], - 8070: [[7942, 837]], - 8071: [[7943, 837]], - 8072: [[7944, 837]], - 8073: [[7945, 837]], - 8074: [[7946, 837]], - 8075: [[7947, 837]], - 8076: [[7948, 837]], - 8077: [[7949, 837]], - 8078: [[7950, 837]], - 8079: [[7951, 837]], - 8080: [[7968, 837]], - 8081: [[7969, 837]], - 8082: [[7970, 837]], - 8083: [[7971, 837]], - 8084: [[7972, 837]], - 8085: [[7973, 837]], - 8086: [[7974, 837]], - 8087: [[7975, 837]], - 8088: [[7976, 837]], - 8089: [[7977, 837]], - 8090: [[7978, 837]], - 8091: [[7979, 837]], - 8092: [[7980, 837]], - 8093: [[7981, 837]], - 8094: [[7982, 837]], - 8095: [[7983, 837]], - 8096: [[8032, 837]], - 8097: [[8033, 837]], - 8098: [[8034, 837]], - 8099: [[8035, 837]], - 8100: [[8036, 837]], - 8101: [[8037, 837]], - 8102: [[8038, 837]], - 8103: [[8039, 837]], - 8104: [[8040, 837]], - 8105: [[8041, 837]], - 8106: [[8042, 837]], - 8107: [[8043, 837]], - 8108: [[8044, 837]], - 8109: [[8045, 837]], - 8110: [[8046, 837]], - 8111: [[8047, 837]], - 8112: [[945, 774]], - 8113: [[945, 772]], - 8114: [[8048, 837]], - 8115: [[945, 837]], - 8116: [[940, 837]], - 8118: [[945, 834], , { 837: 8119 }], - 8119: [[8118, 837]], - 8120: [[913, 774]], - 8121: [[913, 772]], - 8122: [[913, 768]], - 8123: [[902]], - 8124: [[913, 837]], - 8125: [[32, 787], 256], - 8126: [[953]], - 8127: [[32, 787], 256, { 768: 8141, 769: 8142, 834: 8143 }], - 8128: [[32, 834], 256], - 8129: [[168, 834]], - 8130: [[8052, 837]], - 8131: [[951, 837]], - 8132: [[942, 837]], - 8134: [[951, 834], , { 837: 8135 }], - 8135: [[8134, 837]], - 8136: [[917, 768]], - 8137: [[904]], - 8138: [[919, 768]], - 8139: [[905]], - 8140: [[919, 837]], - 8141: [[8127, 768]], - 8142: [[8127, 769]], - 8143: [[8127, 834]], - 8144: [[953, 774]], - 8145: [[953, 772]], - 8146: [[970, 768]], - 8147: [[912]], - 8150: [[953, 834]], - 8151: [[970, 834]], - 8152: [[921, 774]], - 8153: [[921, 772]], - 8154: [[921, 768]], - 8155: [[906]], - 8157: [[8190, 768]], - 8158: [[8190, 769]], - 8159: [[8190, 834]], - 8160: [[965, 774]], - 8161: [[965, 772]], - 8162: [[971, 768]], - 8163: [[944]], - 8164: [[961, 787]], - 8165: [[961, 788]], - 8166: [[965, 834]], - 8167: [[971, 834]], - 8168: [[933, 774]], - 8169: [[933, 772]], - 8170: [[933, 768]], - 8171: [[910]], - 8172: [[929, 788]], - 8173: [[168, 768]], - 8174: [[901]], - 8175: [[96]], - 8178: [[8060, 837]], - 8179: [[969, 837]], - 8180: [[974, 837]], - 8182: [[969, 834], , { 837: 8183 }], - 8183: [[8182, 837]], - 8184: [[927, 768]], - 8185: [[908]], - 8186: [[937, 768]], - 8187: [[911]], - 8188: [[937, 837]], - 8189: [[180]], - 8190: [[32, 788], 256, { 768: 8157, 769: 8158, 834: 8159 }] - }, - 8192: { - 8192: [[8194]], - 8193: [[8195]], - 8194: [[32], 256], - 8195: [[32], 256], - 8196: [[32], 256], - 8197: [[32], 256], - 8198: [[32], 256], - 8199: [[32], 256], - 8200: [[32], 256], - 8201: [[32], 256], - 8202: [[32], 256], - 8209: [[8208], 256], - 8215: [[32, 819], 256], - 8228: [[46], 256], - 8229: [[46, 46], 256], - 8230: [[46, 46, 46], 256], - 8239: [[32], 256], - 8243: [[8242, 8242], 256], - 8244: [[8242, 8242, 8242], 256], - 8246: [[8245, 8245], 256], - 8247: [[8245, 8245, 8245], 256], - 8252: [[33, 33], 256], - 8254: [[32, 773], 256], - 8263: [[63, 63], 256], - 8264: [[63, 33], 256], - 8265: [[33, 63], 256], - 8279: [[8242, 8242, 8242, 8242], 256], - 8287: [[32], 256], - 8304: [[48], 256], - 8305: [[105], 256], - 8308: [[52], 256], - 8309: [[53], 256], - 8310: [[54], 256], - 8311: [[55], 256], - 8312: [[56], 256], - 8313: [[57], 256], - 8314: [[43], 256], - 8315: [[8722], 256], - 8316: [[61], 256], - 8317: [[40], 256], - 8318: [[41], 256], - 8319: [[110], 256], - 8320: [[48], 256], - 8321: [[49], 256], - 8322: [[50], 256], - 8323: [[51], 256], - 8324: [[52], 256], - 8325: [[53], 256], - 8326: [[54], 256], - 8327: [[55], 256], - 8328: [[56], 256], - 8329: [[57], 256], - 8330: [[43], 256], - 8331: [[8722], 256], - 8332: [[61], 256], - 8333: [[40], 256], - 8334: [[41], 256], - 8336: [[97], 256], - 8337: [[101], 256], - 8338: [[111], 256], - 8339: [[120], 256], - 8340: [[601], 256], - 8341: [[104], 256], - 8342: [[107], 256], - 8343: [[108], 256], - 8344: [[109], 256], - 8345: [[110], 256], - 8346: [[112], 256], - 8347: [[115], 256], - 8348: [[116], 256], - 8360: [[82, 115], 256], - 8400: [, 230], - 8401: [, 230], - 8402: [, 1], - 8403: [, 1], - 8404: [, 230], - 8405: [, 230], - 8406: [, 230], - 8407: [, 230], - 8408: [, 1], - 8409: [, 1], - 8410: [, 1], - 8411: [, 230], - 8412: [, 230], - 8417: [, 230], - 8421: [, 1], - 8422: [, 1], - 8423: [, 230], - 8424: [, 220], - 8425: [, 230], - 8426: [, 1], - 8427: [, 1], - 8428: [, 220], - 8429: [, 220], - 8430: [, 220], - 8431: [, 220], - 8432: [, 230] - }, - 8448: { - 8448: [[97, 47, 99], 256], - 8449: [[97, 47, 115], 256], - 8450: [[67], 256], - 8451: [[176, 67], 256], - 8453: [[99, 47, 111], 256], - 8454: [[99, 47, 117], 256], - 8455: [[400], 256], - 8457: [[176, 70], 256], - 8458: [[103], 256], - 8459: [[72], 256], - 8460: [[72], 256], - 8461: [[72], 256], - 8462: [[104], 256], - 8463: [[295], 256], - 8464: [[73], 256], - 8465: [[73], 256], - 8466: [[76], 256], - 8467: [[108], 256], - 8469: [[78], 256], - 8470: [[78, 111], 256], - 8473: [[80], 256], - 8474: [[81], 256], - 8475: [[82], 256], - 8476: [[82], 256], - 8477: [[82], 256], - 8480: [[83, 77], 256], - 8481: [[84, 69, 76], 256], - 8482: [[84, 77], 256], - 8484: [[90], 256], - 8486: [[937]], - 8488: [[90], 256], - 8490: [[75]], - 8491: [[197]], - 8492: [[66], 256], - 8493: [[67], 256], - 8495: [[101], 256], - 8496: [[69], 256], - 8497: [[70], 256], - 8499: [[77], 256], - 8500: [[111], 256], - 8501: [[1488], 256], - 8502: [[1489], 256], - 8503: [[1490], 256], - 8504: [[1491], 256], - 8505: [[105], 256], - 8507: [[70, 65, 88], 256], - 8508: [[960], 256], - 8509: [[947], 256], - 8510: [[915], 256], - 8511: [[928], 256], - 8512: [[8721], 256], - 8517: [[68], 256], - 8518: [[100], 256], - 8519: [[101], 256], - 8520: [[105], 256], - 8521: [[106], 256], - 8528: [[49, 8260, 55], 256], - 8529: [[49, 8260, 57], 256], - 8530: [[49, 8260, 49, 48], 256], - 8531: [[49, 8260, 51], 256], - 8532: [[50, 8260, 51], 256], - 8533: [[49, 8260, 53], 256], - 8534: [[50, 8260, 53], 256], - 8535: [[51, 8260, 53], 256], - 8536: [[52, 8260, 53], 256], - 8537: [[49, 8260, 54], 256], - 8538: [[53, 8260, 54], 256], - 8539: [[49, 8260, 56], 256], - 8540: [[51, 8260, 56], 256], - 8541: [[53, 8260, 56], 256], - 8542: [[55, 8260, 56], 256], - 8543: [[49, 8260], 256], - 8544: [[73], 256], - 8545: [[73, 73], 256], - 8546: [[73, 73, 73], 256], - 8547: [[73, 86], 256], - 8548: [[86], 256], - 8549: [[86, 73], 256], - 8550: [[86, 73, 73], 256], - 8551: [[86, 73, 73, 73], 256], - 8552: [[73, 88], 256], - 8553: [[88], 256], - 8554: [[88, 73], 256], - 8555: [[88, 73, 73], 256], - 8556: [[76], 256], - 8557: [[67], 256], - 8558: [[68], 256], - 8559: [[77], 256], - 8560: [[105], 256], - 8561: [[105, 105], 256], - 8562: [[105, 105, 105], 256], - 8563: [[105, 118], 256], - 8564: [[118], 256], - 8565: [[118, 105], 256], - 8566: [[118, 105, 105], 256], - 8567: [[118, 105, 105, 105], 256], - 8568: [[105, 120], 256], - 8569: [[120], 256], - 8570: [[120, 105], 256], - 8571: [[120, 105, 105], 256], - 8572: [[108], 256], - 8573: [[99], 256], - 8574: [[100], 256], - 8575: [[109], 256], - 8585: [[48, 8260, 51], 256], - 8592: [, , { 824: 8602 }], - 8594: [, , { 824: 8603 }], - 8596: [, , { 824: 8622 }], - 8602: [[8592, 824]], - 8603: [[8594, 824]], - 8622: [[8596, 824]], - 8653: [[8656, 824]], - 8654: [[8660, 824]], - 8655: [[8658, 824]], - 8656: [, , { 824: 8653 }], - 8658: [, , { 824: 8655 }], - 8660: [, , { 824: 8654 }] - }, - 8704: { - 8707: [, , { 824: 8708 }], - 8708: [[8707, 824]], - 8712: [, , { 824: 8713 }], - 8713: [[8712, 824]], - 8715: [, , { 824: 8716 }], - 8716: [[8715, 824]], - 8739: [, , { 824: 8740 }], - 8740: [[8739, 824]], - 8741: [, , { 824: 8742 }], - 8742: [[8741, 824]], - 8748: [[8747, 8747], 256], - 8749: [[8747, 8747, 8747], 256], - 8751: [[8750, 8750], 256], - 8752: [[8750, 8750, 8750], 256], - 8764: [, , { 824: 8769 }], - 8769: [[8764, 824]], - 8771: [, , { 824: 8772 }], - 8772: [[8771, 824]], - 8773: [, , { 824: 8775 }], - 8775: [[8773, 824]], - 8776: [, , { 824: 8777 }], - 8777: [[8776, 824]], - 8781: [, , { 824: 8813 }], - 8800: [[61, 824]], - 8801: [, , { 824: 8802 }], - 8802: [[8801, 824]], - 8804: [, , { 824: 8816 }], - 8805: [, , { 824: 8817 }], - 8813: [[8781, 824]], - 8814: [[60, 824]], - 8815: [[62, 824]], - 8816: [[8804, 824]], - 8817: [[8805, 824]], - 8818: [, , { 824: 8820 }], - 8819: [, , { 824: 8821 }], - 8820: [[8818, 824]], - 8821: [[8819, 824]], - 8822: [, , { 824: 8824 }], - 8823: [, , { 824: 8825 }], - 8824: [[8822, 824]], - 8825: [[8823, 824]], - 8826: [, , { 824: 8832 }], - 8827: [, , { 824: 8833 }], - 8828: [, , { 824: 8928 }], - 8829: [, , { 824: 8929 }], - 8832: [[8826, 824]], - 8833: [[8827, 824]], - 8834: [, , { 824: 8836 }], - 8835: [, , { 824: 8837 }], - 8836: [[8834, 824]], - 8837: [[8835, 824]], - 8838: [, , { 824: 8840 }], - 8839: [, , { 824: 8841 }], - 8840: [[8838, 824]], - 8841: [[8839, 824]], - 8849: [, , { 824: 8930 }], - 8850: [, , { 824: 8931 }], - 8866: [, , { 824: 8876 }], - 8872: [, , { 824: 8877 }], - 8873: [, , { 824: 8878 }], - 8875: [, , { 824: 8879 }], - 8876: [[8866, 824]], - 8877: [[8872, 824]], - 8878: [[8873, 824]], - 8879: [[8875, 824]], - 8882: [, , { 824: 8938 }], - 8883: [, , { 824: 8939 }], - 8884: [, , { 824: 8940 }], - 8885: [, , { 824: 8941 }], - 8928: [[8828, 824]], - 8929: [[8829, 824]], - 8930: [[8849, 824]], - 8931: [[8850, 824]], - 8938: [[8882, 824]], - 8939: [[8883, 824]], - 8940: [[8884, 824]], - 8941: [[8885, 824]] - }, - 8960: { 9001: [[12296]], 9002: [[12297]] }, - 9216: { - 9312: [[49], 256], - 9313: [[50], 256], - 9314: [[51], 256], - 9315: [[52], 256], - 9316: [[53], 256], - 9317: [[54], 256], - 9318: [[55], 256], - 9319: [[56], 256], - 9320: [[57], 256], - 9321: [[49, 48], 256], - 9322: [[49, 49], 256], - 9323: [[49, 50], 256], - 9324: [[49, 51], 256], - 9325: [[49, 52], 256], - 9326: [[49, 53], 256], - 9327: [[49, 54], 256], - 9328: [[49, 55], 256], - 9329: [[49, 56], 256], - 9330: [[49, 57], 256], - 9331: [[50, 48], 256], - 9332: [[40, 49, 41], 256], - 9333: [[40, 50, 41], 256], - 9334: [[40, 51, 41], 256], - 9335: [[40, 52, 41], 256], - 9336: [[40, 53, 41], 256], - 9337: [[40, 54, 41], 256], - 9338: [[40, 55, 41], 256], - 9339: [[40, 56, 41], 256], - 9340: [[40, 57, 41], 256], - 9341: [[40, 49, 48, 41], 256], - 9342: [[40, 49, 49, 41], 256], - 9343: [[40, 49, 50, 41], 256], - 9344: [[40, 49, 51, 41], 256], - 9345: [[40, 49, 52, 41], 256], - 9346: [[40, 49, 53, 41], 256], - 9347: [[40, 49, 54, 41], 256], - 9348: [[40, 49, 55, 41], 256], - 9349: [[40, 49, 56, 41], 256], - 9350: [[40, 49, 57, 41], 256], - 9351: [[40, 50, 48, 41], 256], - 9352: [[49, 46], 256], - 9353: [[50, 46], 256], - 9354: [[51, 46], 256], - 9355: [[52, 46], 256], - 9356: [[53, 46], 256], - 9357: [[54, 46], 256], - 9358: [[55, 46], 256], - 9359: [[56, 46], 256], - 9360: [[57, 46], 256], - 9361: [[49, 48, 46], 256], - 9362: [[49, 49, 46], 256], - 9363: [[49, 50, 46], 256], - 9364: [[49, 51, 46], 256], - 9365: [[49, 52, 46], 256], - 9366: [[49, 53, 46], 256], - 9367: [[49, 54, 46], 256], - 9368: [[49, 55, 46], 256], - 9369: [[49, 56, 46], 256], - 9370: [[49, 57, 46], 256], - 9371: [[50, 48, 46], 256], - 9372: [[40, 97, 41], 256], - 9373: [[40, 98, 41], 256], - 9374: [[40, 99, 41], 256], - 9375: [[40, 100, 41], 256], - 9376: [[40, 101, 41], 256], - 9377: [[40, 102, 41], 256], - 9378: [[40, 103, 41], 256], - 9379: [[40, 104, 41], 256], - 9380: [[40, 105, 41], 256], - 9381: [[40, 106, 41], 256], - 9382: [[40, 107, 41], 256], - 9383: [[40, 108, 41], 256], - 9384: [[40, 109, 41], 256], - 9385: [[40, 110, 41], 256], - 9386: [[40, 111, 41], 256], - 9387: [[40, 112, 41], 256], - 9388: [[40, 113, 41], 256], - 9389: [[40, 114, 41], 256], - 9390: [[40, 115, 41], 256], - 9391: [[40, 116, 41], 256], - 9392: [[40, 117, 41], 256], - 9393: [[40, 118, 41], 256], - 9394: [[40, 119, 41], 256], - 9395: [[40, 120, 41], 256], - 9396: [[40, 121, 41], 256], - 9397: [[40, 122, 41], 256], - 9398: [[65], 256], - 9399: [[66], 256], - 9400: [[67], 256], - 9401: [[68], 256], - 9402: [[69], 256], - 9403: [[70], 256], - 9404: [[71], 256], - 9405: [[72], 256], - 9406: [[73], 256], - 9407: [[74], 256], - 9408: [[75], 256], - 9409: [[76], 256], - 9410: [[77], 256], - 9411: [[78], 256], - 9412: [[79], 256], - 9413: [[80], 256], - 9414: [[81], 256], - 9415: [[82], 256], - 9416: [[83], 256], - 9417: [[84], 256], - 9418: [[85], 256], - 9419: [[86], 256], - 9420: [[87], 256], - 9421: [[88], 256], - 9422: [[89], 256], - 9423: [[90], 256], - 9424: [[97], 256], - 9425: [[98], 256], - 9426: [[99], 256], - 9427: [[100], 256], - 9428: [[101], 256], - 9429: [[102], 256], - 9430: [[103], 256], - 9431: [[104], 256], - 9432: [[105], 256], - 9433: [[106], 256], - 9434: [[107], 256], - 9435: [[108], 256], - 9436: [[109], 256], - 9437: [[110], 256], - 9438: [[111], 256], - 9439: [[112], 256], - 9440: [[113], 256], - 9441: [[114], 256], - 9442: [[115], 256], - 9443: [[116], 256], - 9444: [[117], 256], - 9445: [[118], 256], - 9446: [[119], 256], - 9447: [[120], 256], - 9448: [[121], 256], - 9449: [[122], 256], - 9450: [[48], 256] - }, - 10752: { - 10764: [[8747, 8747, 8747, 8747], 256], - 10868: [[58, 58, 61], 256], - 10869: [[61, 61], 256], - 10870: [[61, 61, 61], 256], - 10972: [[10973, 824], 512] - }, - 11264: { - 11388: [[106], 256], - 11389: [[86], 256], - 11503: [, 230], - 11504: [, 230], - 11505: [, 230] - }, - 11520: { - 11631: [[11617], 256], - 11647: [, 9], - 11744: [, 230], - 11745: [, 230], - 11746: [, 230], - 11747: [, 230], - 11748: [, 230], - 11749: [, 230], - 11750: [, 230], - 11751: [, 230], - 11752: [, 230], - 11753: [, 230], - 11754: [, 230], - 11755: [, 230], - 11756: [, 230], - 11757: [, 230], - 11758: [, 230], - 11759: [, 230], - 11760: [, 230], - 11761: [, 230], - 11762: [, 230], - 11763: [, 230], - 11764: [, 230], - 11765: [, 230], - 11766: [, 230], - 11767: [, 230], - 11768: [, 230], - 11769: [, 230], - 11770: [, 230], - 11771: [, 230], - 11772: [, 230], - 11773: [, 230], - 11774: [, 230], - 11775: [, 230] - }, - 11776: { 11935: [[27597], 256], 12019: [[40863], 256] }, - 12032: { - 12032: [[19968], 256], - 12033: [[20008], 256], - 12034: [[20022], 256], - 12035: [[20031], 256], - 12036: [[20057], 256], - 12037: [[20101], 256], - 12038: [[20108], 256], - 12039: [[20128], 256], - 12040: [[20154], 256], - 12041: [[20799], 256], - 12042: [[20837], 256], - 12043: [[20843], 256], - 12044: [[20866], 256], - 12045: [[20886], 256], - 12046: [[20907], 256], - 12047: [[20960], 256], - 12048: [[20981], 256], - 12049: [[20992], 256], - 12050: [[21147], 256], - 12051: [[21241], 256], - 12052: [[21269], 256], - 12053: [[21274], 256], - 12054: [[21304], 256], - 12055: [[21313], 256], - 12056: [[21340], 256], - 12057: [[21353], 256], - 12058: [[21378], 256], - 12059: [[21430], 256], - 12060: [[21448], 256], - 12061: [[21475], 256], - 12062: [[22231], 256], - 12063: [[22303], 256], - 12064: [[22763], 256], - 12065: [[22786], 256], - 12066: [[22794], 256], - 12067: [[22805], 256], - 12068: [[22823], 256], - 12069: [[22899], 256], - 12070: [[23376], 256], - 12071: [[23424], 256], - 12072: [[23544], 256], - 12073: [[23567], 256], - 12074: [[23586], 256], - 12075: [[23608], 256], - 12076: [[23662], 256], - 12077: [[23665], 256], - 12078: [[24027], 256], - 12079: [[24037], 256], - 12080: [[24049], 256], - 12081: [[24062], 256], - 12082: [[24178], 256], - 12083: [[24186], 256], - 12084: [[24191], 256], - 12085: [[24308], 256], - 12086: [[24318], 256], - 12087: [[24331], 256], - 12088: [[24339], 256], - 12089: [[24400], 256], - 12090: [[24417], 256], - 12091: [[24435], 256], - 12092: [[24515], 256], - 12093: [[25096], 256], - 12094: [[25142], 256], - 12095: [[25163], 256], - 12096: [[25903], 256], - 12097: [[25908], 256], - 12098: [[25991], 256], - 12099: [[26007], 256], - 12100: [[26020], 256], - 12101: [[26041], 256], - 12102: [[26080], 256], - 12103: [[26085], 256], - 12104: [[26352], 256], - 12105: [[26376], 256], - 12106: [[26408], 256], - 12107: [[27424], 256], - 12108: [[27490], 256], - 12109: [[27513], 256], - 12110: [[27571], 256], - 12111: [[27595], 256], - 12112: [[27604], 256], - 12113: [[27611], 256], - 12114: [[27663], 256], - 12115: [[27668], 256], - 12116: [[27700], 256], - 12117: [[28779], 256], - 12118: [[29226], 256], - 12119: [[29238], 256], - 12120: [[29243], 256], - 12121: [[29247], 256], - 12122: [[29255], 256], - 12123: [[29273], 256], - 12124: [[29275], 256], - 12125: [[29356], 256], - 12126: [[29572], 256], - 12127: [[29577], 256], - 12128: [[29916], 256], - 12129: [[29926], 256], - 12130: [[29976], 256], - 12131: [[29983], 256], - 12132: [[29992], 256], - 12133: [[30000], 256], - 12134: [[30091], 256], - 12135: [[30098], 256], - 12136: [[30326], 256], - 12137: [[30333], 256], - 12138: [[30382], 256], - 12139: [[30399], 256], - 12140: [[30446], 256], - 12141: [[30683], 256], - 12142: [[30690], 256], - 12143: [[30707], 256], - 12144: [[31034], 256], - 12145: [[31160], 256], - 12146: [[31166], 256], - 12147: [[31348], 256], - 12148: [[31435], 256], - 12149: [[31481], 256], - 12150: [[31859], 256], - 12151: [[31992], 256], - 12152: [[32566], 256], - 12153: [[32593], 256], - 12154: [[32650], 256], - 12155: [[32701], 256], - 12156: [[32769], 256], - 12157: [[32780], 256], - 12158: [[32786], 256], - 12159: [[32819], 256], - 12160: [[32895], 256], - 12161: [[32905], 256], - 12162: [[33251], 256], - 12163: [[33258], 256], - 12164: [[33267], 256], - 12165: [[33276], 256], - 12166: [[33292], 256], - 12167: [[33307], 256], - 12168: [[33311], 256], - 12169: [[33390], 256], - 12170: [[33394], 256], - 12171: [[33400], 256], - 12172: [[34381], 256], - 12173: [[34411], 256], - 12174: [[34880], 256], - 12175: [[34892], 256], - 12176: [[34915], 256], - 12177: [[35198], 256], - 12178: [[35211], 256], - 12179: [[35282], 256], - 12180: [[35328], 256], - 12181: [[35895], 256], - 12182: [[35910], 256], - 12183: [[35925], 256], - 12184: [[35960], 256], - 12185: [[35997], 256], - 12186: [[36196], 256], - 12187: [[36208], 256], - 12188: [[36275], 256], - 12189: [[36523], 256], - 12190: [[36554], 256], - 12191: [[36763], 256], - 12192: [[36784], 256], - 12193: [[36789], 256], - 12194: [[37009], 256], - 12195: [[37193], 256], - 12196: [[37318], 256], - 12197: [[37324], 256], - 12198: [[37329], 256], - 12199: [[38263], 256], - 12200: [[38272], 256], - 12201: [[38428], 256], - 12202: [[38582], 256], - 12203: [[38585], 256], - 12204: [[38632], 256], - 12205: [[38737], 256], - 12206: [[38750], 256], - 12207: [[38754], 256], - 12208: [[38761], 256], - 12209: [[38859], 256], - 12210: [[38893], 256], - 12211: [[38899], 256], - 12212: [[38913], 256], - 12213: [[39080], 256], - 12214: [[39131], 256], - 12215: [[39135], 256], - 12216: [[39318], 256], - 12217: [[39321], 256], - 12218: [[39340], 256], - 12219: [[39592], 256], - 12220: [[39640], 256], - 12221: [[39647], 256], - 12222: [[39717], 256], - 12223: [[39727], 256], - 12224: [[39730], 256], - 12225: [[39740], 256], - 12226: [[39770], 256], - 12227: [[40165], 256], - 12228: [[40565], 256], - 12229: [[40575], 256], - 12230: [[40613], 256], - 12231: [[40635], 256], - 12232: [[40643], 256], - 12233: [[40653], 256], - 12234: [[40657], 256], - 12235: [[40697], 256], - 12236: [[40701], 256], - 12237: [[40718], 256], - 12238: [[40723], 256], - 12239: [[40736], 256], - 12240: [[40763], 256], - 12241: [[40778], 256], - 12242: [[40786], 256], - 12243: [[40845], 256], - 12244: [[40860], 256], - 12245: [[40864], 256] - }, - 12288: { - 12288: [[32], 256], - 12330: [, 218], - 12331: [, 228], - 12332: [, 232], - 12333: [, 222], - 12334: [, 224], - 12335: [, 224], - 12342: [[12306], 256], - 12344: [[21313], 256], - 12345: [[21316], 256], - 12346: [[21317], 256], - 12358: [, , { 12441: 12436 }], - 12363: [, , { 12441: 12364 }], - 12364: [[12363, 12441]], - 12365: [, , { 12441: 12366 }], - 12366: [[12365, 12441]], - 12367: [, , { 12441: 12368 }], - 12368: [[12367, 12441]], - 12369: [, , { 12441: 12370 }], - 12370: [[12369, 12441]], - 12371: [, , { 12441: 12372 }], - 12372: [[12371, 12441]], - 12373: [, , { 12441: 12374 }], - 12374: [[12373, 12441]], - 12375: [, , { 12441: 12376 }], - 12376: [[12375, 12441]], - 12377: [, , { 12441: 12378 }], - 12378: [[12377, 12441]], - 12379: [, , { 12441: 12380 }], - 12380: [[12379, 12441]], - 12381: [, , { 12441: 12382 }], - 12382: [[12381, 12441]], - 12383: [, , { 12441: 12384 }], - 12384: [[12383, 12441]], - 12385: [, , { 12441: 12386 }], - 12386: [[12385, 12441]], - 12388: [, , { 12441: 12389 }], - 12389: [[12388, 12441]], - 12390: [, , { 12441: 12391 }], - 12391: [[12390, 12441]], - 12392: [, , { 12441: 12393 }], - 12393: [[12392, 12441]], - 12399: [, , { 12441: 12400, 12442: 12401 }], - 12400: [[12399, 12441]], - 12401: [[12399, 12442]], - 12402: [, , { 12441: 12403, 12442: 12404 }], - 12403: [[12402, 12441]], - 12404: [[12402, 12442]], - 12405: [, , { 12441: 12406, 12442: 12407 }], - 12406: [[12405, 12441]], - 12407: [[12405, 12442]], - 12408: [, , { 12441: 12409, 12442: 12410 }], - 12409: [[12408, 12441]], - 12410: [[12408, 12442]], - 12411: [, , { 12441: 12412, 12442: 12413 }], - 12412: [[12411, 12441]], - 12413: [[12411, 12442]], - 12436: [[12358, 12441]], - 12441: [, 8], - 12442: [, 8], - 12443: [[32, 12441], 256], - 12444: [[32, 12442], 256], - 12445: [, , { 12441: 12446 }], - 12446: [[12445, 12441]], - 12447: [[12424, 12426], 256], - 12454: [, , { 12441: 12532 }], - 12459: [, , { 12441: 12460 }], - 12460: [[12459, 12441]], - 12461: [, , { 12441: 12462 }], - 12462: [[12461, 12441]], - 12463: [, , { 12441: 12464 }], - 12464: [[12463, 12441]], - 12465: [, , { 12441: 12466 }], - 12466: [[12465, 12441]], - 12467: [, , { 12441: 12468 }], - 12468: [[12467, 12441]], - 12469: [, , { 12441: 12470 }], - 12470: [[12469, 12441]], - 12471: [, , { 12441: 12472 }], - 12472: [[12471, 12441]], - 12473: [, , { 12441: 12474 }], - 12474: [[12473, 12441]], - 12475: [, , { 12441: 12476 }], - 12476: [[12475, 12441]], - 12477: [, , { 12441: 12478 }], - 12478: [[12477, 12441]], - 12479: [, , { 12441: 12480 }], - 12480: [[12479, 12441]], - 12481: [, , { 12441: 12482 }], - 12482: [[12481, 12441]], - 12484: [, , { 12441: 12485 }], - 12485: [[12484, 12441]], - 12486: [, , { 12441: 12487 }], - 12487: [[12486, 12441]], - 12488: [, , { 12441: 12489 }], - 12489: [[12488, 12441]], - 12495: [, , { 12441: 12496, 12442: 12497 }], - 12496: [[12495, 12441]], - 12497: [[12495, 12442]], - 12498: [, , { 12441: 12499, 12442: 12500 }], - 12499: [[12498, 12441]], - 12500: [[12498, 12442]], - 12501: [, , { 12441: 12502, 12442: 12503 }], - 12502: [[12501, 12441]], - 12503: [[12501, 12442]], - 12504: [, , { 12441: 12505, 12442: 12506 }], - 12505: [[12504, 12441]], - 12506: [[12504, 12442]], - 12507: [, , { 12441: 12508, 12442: 12509 }], - 12508: [[12507, 12441]], - 12509: [[12507, 12442]], - 12527: [, , { 12441: 12535 }], - 12528: [, , { 12441: 12536 }], - 12529: [, , { 12441: 12537 }], - 12530: [, , { 12441: 12538 }], - 12532: [[12454, 12441]], - 12535: [[12527, 12441]], - 12536: [[12528, 12441]], - 12537: [[12529, 12441]], - 12538: [[12530, 12441]], - 12541: [, , { 12441: 12542 }], - 12542: [[12541, 12441]], - 12543: [[12467, 12488], 256] - }, - 12544: { - 12593: [[4352], 256], - 12594: [[4353], 256], - 12595: [[4522], 256], - 12596: [[4354], 256], - 12597: [[4524], 256], - 12598: [[4525], 256], - 12599: [[4355], 256], - 12600: [[4356], 256], - 12601: [[4357], 256], - 12602: [[4528], 256], - 12603: [[4529], 256], - 12604: [[4530], 256], - 12605: [[4531], 256], - 12606: [[4532], 256], - 12607: [[4533], 256], - 12608: [[4378], 256], - 12609: [[4358], 256], - 12610: [[4359], 256], - 12611: [[4360], 256], - 12612: [[4385], 256], - 12613: [[4361], 256], - 12614: [[4362], 256], - 12615: [[4363], 256], - 12616: [[4364], 256], - 12617: [[4365], 256], - 12618: [[4366], 256], - 12619: [[4367], 256], - 12620: [[4368], 256], - 12621: [[4369], 256], - 12622: [[4370], 256], - 12623: [[4449], 256], - 12624: [[4450], 256], - 12625: [[4451], 256], - 12626: [[4452], 256], - 12627: [[4453], 256], - 12628: [[4454], 256], - 12629: [[4455], 256], - 12630: [[4456], 256], - 12631: [[4457], 256], - 12632: [[4458], 256], - 12633: [[4459], 256], - 12634: [[4460], 256], - 12635: [[4461], 256], - 12636: [[4462], 256], - 12637: [[4463], 256], - 12638: [[4464], 256], - 12639: [[4465], 256], - 12640: [[4466], 256], - 12641: [[4467], 256], - 12642: [[4468], 256], - 12643: [[4469], 256], - 12644: [[4448], 256], - 12645: [[4372], 256], - 12646: [[4373], 256], - 12647: [[4551], 256], - 12648: [[4552], 256], - 12649: [[4556], 256], - 12650: [[4558], 256], - 12651: [[4563], 256], - 12652: [[4567], 256], - 12653: [[4569], 256], - 12654: [[4380], 256], - 12655: [[4573], 256], - 12656: [[4575], 256], - 12657: [[4381], 256], - 12658: [[4382], 256], - 12659: [[4384], 256], - 12660: [[4386], 256], - 12661: [[4387], 256], - 12662: [[4391], 256], - 12663: [[4393], 256], - 12664: [[4395], 256], - 12665: [[4396], 256], - 12666: [[4397], 256], - 12667: [[4398], 256], - 12668: [[4399], 256], - 12669: [[4402], 256], - 12670: [[4406], 256], - 12671: [[4416], 256], - 12672: [[4423], 256], - 12673: [[4428], 256], - 12674: [[4593], 256], - 12675: [[4594], 256], - 12676: [[4439], 256], - 12677: [[4440], 256], - 12678: [[4441], 256], - 12679: [[4484], 256], - 12680: [[4485], 256], - 12681: [[4488], 256], - 12682: [[4497], 256], - 12683: [[4498], 256], - 12684: [[4500], 256], - 12685: [[4510], 256], - 12686: [[4513], 256], - 12690: [[19968], 256], - 12691: [[20108], 256], - 12692: [[19977], 256], - 12693: [[22235], 256], - 12694: [[19978], 256], - 12695: [[20013], 256], - 12696: [[19979], 256], - 12697: [[30002], 256], - 12698: [[20057], 256], - 12699: [[19993], 256], - 12700: [[19969], 256], - 12701: [[22825], 256], - 12702: [[22320], 256], - 12703: [[20154], 256] - }, - 12800: { - 12800: [[40, 4352, 41], 256], - 12801: [[40, 4354, 41], 256], - 12802: [[40, 4355, 41], 256], - 12803: [[40, 4357, 41], 256], - 12804: [[40, 4358, 41], 256], - 12805: [[40, 4359, 41], 256], - 12806: [[40, 4361, 41], 256], - 12807: [[40, 4363, 41], 256], - 12808: [[40, 4364, 41], 256], - 12809: [[40, 4366, 41], 256], - 12810: [[40, 4367, 41], 256], - 12811: [[40, 4368, 41], 256], - 12812: [[40, 4369, 41], 256], - 12813: [[40, 4370, 41], 256], - 12814: [[40, 4352, 4449, 41], 256], - 12815: [[40, 4354, 4449, 41], 256], - 12816: [[40, 4355, 4449, 41], 256], - 12817: [[40, 4357, 4449, 41], 256], - 12818: [[40, 4358, 4449, 41], 256], - 12819: [[40, 4359, 4449, 41], 256], - 12820: [[40, 4361, 4449, 41], 256], - 12821: [[40, 4363, 4449, 41], 256], - 12822: [[40, 4364, 4449, 41], 256], - 12823: [[40, 4366, 4449, 41], 256], - 12824: [[40, 4367, 4449, 41], 256], - 12825: [[40, 4368, 4449, 41], 256], - 12826: [[40, 4369, 4449, 41], 256], - 12827: [[40, 4370, 4449, 41], 256], - 12828: [[40, 4364, 4462, 41], 256], - 12829: [[40, 4363, 4457, 4364, 4453, 4523, 41], 256], - 12830: [[40, 4363, 4457, 4370, 4462, 41], 256], - 12832: [[40, 19968, 41], 256], - 12833: [[40, 20108, 41], 256], - 12834: [[40, 19977, 41], 256], - 12835: [[40, 22235, 41], 256], - 12836: [[40, 20116, 41], 256], - 12837: [[40, 20845, 41], 256], - 12838: [[40, 19971, 41], 256], - 12839: [[40, 20843, 41], 256], - 12840: [[40, 20061, 41], 256], - 12841: [[40, 21313, 41], 256], - 12842: [[40, 26376, 41], 256], - 12843: [[40, 28779, 41], 256], - 12844: [[40, 27700, 41], 256], - 12845: [[40, 26408, 41], 256], - 12846: [[40, 37329, 41], 256], - 12847: [[40, 22303, 41], 256], - 12848: [[40, 26085, 41], 256], - 12849: [[40, 26666, 41], 256], - 12850: [[40, 26377, 41], 256], - 12851: [[40, 31038, 41], 256], - 12852: [[40, 21517, 41], 256], - 12853: [[40, 29305, 41], 256], - 12854: [[40, 36001, 41], 256], - 12855: [[40, 31069, 41], 256], - 12856: [[40, 21172, 41], 256], - 12857: [[40, 20195, 41], 256], - 12858: [[40, 21628, 41], 256], - 12859: [[40, 23398, 41], 256], - 12860: [[40, 30435, 41], 256], - 12861: [[40, 20225, 41], 256], - 12862: [[40, 36039, 41], 256], - 12863: [[40, 21332, 41], 256], - 12864: [[40, 31085, 41], 256], - 12865: [[40, 20241, 41], 256], - 12866: [[40, 33258, 41], 256], - 12867: [[40, 33267, 41], 256], - 12868: [[21839], 256], - 12869: [[24188], 256], - 12870: [[25991], 256], - 12871: [[31631], 256], - 12880: [[80, 84, 69], 256], - 12881: [[50, 49], 256], - 12882: [[50, 50], 256], - 12883: [[50, 51], 256], - 12884: [[50, 52], 256], - 12885: [[50, 53], 256], - 12886: [[50, 54], 256], - 12887: [[50, 55], 256], - 12888: [[50, 56], 256], - 12889: [[50, 57], 256], - 12890: [[51, 48], 256], - 12891: [[51, 49], 256], - 12892: [[51, 50], 256], - 12893: [[51, 51], 256], - 12894: [[51, 52], 256], - 12895: [[51, 53], 256], - 12896: [[4352], 256], - 12897: [[4354], 256], - 12898: [[4355], 256], - 12899: [[4357], 256], - 12900: [[4358], 256], - 12901: [[4359], 256], - 12902: [[4361], 256], - 12903: [[4363], 256], - 12904: [[4364], 256], - 12905: [[4366], 256], - 12906: [[4367], 256], - 12907: [[4368], 256], - 12908: [[4369], 256], - 12909: [[4370], 256], - 12910: [[4352, 4449], 256], - 12911: [[4354, 4449], 256], - 12912: [[4355, 4449], 256], - 12913: [[4357, 4449], 256], - 12914: [[4358, 4449], 256], - 12915: [[4359, 4449], 256], - 12916: [[4361, 4449], 256], - 12917: [[4363, 4449], 256], - 12918: [[4364, 4449], 256], - 12919: [[4366, 4449], 256], - 12920: [[4367, 4449], 256], - 12921: [[4368, 4449], 256], - 12922: [[4369, 4449], 256], - 12923: [[4370, 4449], 256], - 12924: [[4366, 4449, 4535, 4352, 4457], 256], - 12925: [[4364, 4462, 4363, 4468], 256], - 12926: [[4363, 4462], 256], - 12928: [[19968], 256], - 12929: [[20108], 256], - 12930: [[19977], 256], - 12931: [[22235], 256], - 12932: [[20116], 256], - 12933: [[20845], 256], - 12934: [[19971], 256], - 12935: [[20843], 256], - 12936: [[20061], 256], - 12937: [[21313], 256], - 12938: [[26376], 256], - 12939: [[28779], 256], - 12940: [[27700], 256], - 12941: [[26408], 256], - 12942: [[37329], 256], - 12943: [[22303], 256], - 12944: [[26085], 256], - 12945: [[26666], 256], - 12946: [[26377], 256], - 12947: [[31038], 256], - 12948: [[21517], 256], - 12949: [[29305], 256], - 12950: [[36001], 256], - 12951: [[31069], 256], - 12952: [[21172], 256], - 12953: [[31192], 256], - 12954: [[30007], 256], - 12955: [[22899], 256], - 12956: [[36969], 256], - 12957: [[20778], 256], - 12958: [[21360], 256], - 12959: [[27880], 256], - 12960: [[38917], 256], - 12961: [[20241], 256], - 12962: [[20889], 256], - 12963: [[27491], 256], - 12964: [[19978], 256], - 12965: [[20013], 256], - 12966: [[19979], 256], - 12967: [[24038], 256], - 12968: [[21491], 256], - 12969: [[21307], 256], - 12970: [[23447], 256], - 12971: [[23398], 256], - 12972: [[30435], 256], - 12973: [[20225], 256], - 12974: [[36039], 256], - 12975: [[21332], 256], - 12976: [[22812], 256], - 12977: [[51, 54], 256], - 12978: [[51, 55], 256], - 12979: [[51, 56], 256], - 12980: [[51, 57], 256], - 12981: [[52, 48], 256], - 12982: [[52, 49], 256], - 12983: [[52, 50], 256], - 12984: [[52, 51], 256], - 12985: [[52, 52], 256], - 12986: [[52, 53], 256], - 12987: [[52, 54], 256], - 12988: [[52, 55], 256], - 12989: [[52, 56], 256], - 12990: [[52, 57], 256], - 12991: [[53, 48], 256], - 12992: [[49, 26376], 256], - 12993: [[50, 26376], 256], - 12994: [[51, 26376], 256], - 12995: [[52, 26376], 256], - 12996: [[53, 26376], 256], - 12997: [[54, 26376], 256], - 12998: [[55, 26376], 256], - 12999: [[56, 26376], 256], - 13000: [[57, 26376], 256], - 13001: [[49, 48, 26376], 256], - 13002: [[49, 49, 26376], 256], - 13003: [[49, 50, 26376], 256], - 13004: [[72, 103], 256], - 13005: [[101, 114, 103], 256], - 13006: [[101, 86], 256], - 13007: [[76, 84, 68], 256], - 13008: [[12450], 256], - 13009: [[12452], 256], - 13010: [[12454], 256], - 13011: [[12456], 256], - 13012: [[12458], 256], - 13013: [[12459], 256], - 13014: [[12461], 256], - 13015: [[12463], 256], - 13016: [[12465], 256], - 13017: [[12467], 256], - 13018: [[12469], 256], - 13019: [[12471], 256], - 13020: [[12473], 256], - 13021: [[12475], 256], - 13022: [[12477], 256], - 13023: [[12479], 256], - 13024: [[12481], 256], - 13025: [[12484], 256], - 13026: [[12486], 256], - 13027: [[12488], 256], - 13028: [[12490], 256], - 13029: [[12491], 256], - 13030: [[12492], 256], - 13031: [[12493], 256], - 13032: [[12494], 256], - 13033: [[12495], 256], - 13034: [[12498], 256], - 13035: [[12501], 256], - 13036: [[12504], 256], - 13037: [[12507], 256], - 13038: [[12510], 256], - 13039: [[12511], 256], - 13040: [[12512], 256], - 13041: [[12513], 256], - 13042: [[12514], 256], - 13043: [[12516], 256], - 13044: [[12518], 256], - 13045: [[12520], 256], - 13046: [[12521], 256], - 13047: [[12522], 256], - 13048: [[12523], 256], - 13049: [[12524], 256], - 13050: [[12525], 256], - 13051: [[12527], 256], - 13052: [[12528], 256], - 13053: [[12529], 256], - 13054: [[12530], 256] - }, - 13056: { - 13056: [[12450, 12497, 12540, 12488], 256], - 13057: [[12450, 12523, 12501, 12449], 256], - 13058: [[12450, 12531, 12506, 12450], 256], - 13059: [[12450, 12540, 12523], 256], - 13060: [[12452, 12491, 12531, 12464], 256], - 13061: [[12452, 12531, 12481], 256], - 13062: [[12454, 12457, 12531], 256], - 13063: [[12456, 12473, 12463, 12540, 12489], 256], - 13064: [[12456, 12540, 12459, 12540], 256], - 13065: [[12458, 12531, 12473], 256], - 13066: [[12458, 12540, 12512], 256], - 13067: [[12459, 12452, 12522], 256], - 13068: [[12459, 12521, 12483, 12488], 256], - 13069: [[12459, 12525, 12522, 12540], 256], - 13070: [[12460, 12525, 12531], 256], - 13071: [[12460, 12531, 12510], 256], - 13072: [[12462, 12460], 256], - 13073: [[12462, 12491, 12540], 256], - 13074: [[12461, 12517, 12522, 12540], 256], - 13075: [[12462, 12523, 12480, 12540], 256], - 13076: [[12461, 12525], 256], - 13077: [[12461, 12525, 12464, 12521, 12512], 256], - 13078: [[12461, 12525, 12513, 12540, 12488, 12523], 256], - 13079: [[12461, 12525, 12527, 12483, 12488], 256], - 13080: [[12464, 12521, 12512], 256], - 13081: [[12464, 12521, 12512, 12488, 12531], 256], - 13082: [[12463, 12523, 12476, 12452, 12525], 256], - 13083: [[12463, 12525, 12540, 12493], 256], - 13084: [[12465, 12540, 12473], 256], - 13085: [[12467, 12523, 12490], 256], - 13086: [[12467, 12540, 12509], 256], - 13087: [[12469, 12452, 12463, 12523], 256], - 13088: [[12469, 12531, 12481, 12540, 12512], 256], - 13089: [[12471, 12522, 12531, 12464], 256], - 13090: [[12475, 12531, 12481], 256], - 13091: [[12475, 12531, 12488], 256], - 13092: [[12480, 12540, 12473], 256], - 13093: [[12487, 12471], 256], - 13094: [[12489, 12523], 256], - 13095: [[12488, 12531], 256], - 13096: [[12490, 12494], 256], - 13097: [[12494, 12483, 12488], 256], - 13098: [[12495, 12452, 12484], 256], - 13099: [[12497, 12540, 12475, 12531, 12488], 256], - 13100: [[12497, 12540, 12484], 256], - 13101: [[12496, 12540, 12524, 12523], 256], - 13102: [[12500, 12450, 12473, 12488, 12523], 256], - 13103: [[12500, 12463, 12523], 256], - 13104: [[12500, 12467], 256], - 13105: [[12499, 12523], 256], - 13106: [[12501, 12449, 12521, 12483, 12489], 256], - 13107: [[12501, 12451, 12540, 12488], 256], - 13108: [[12502, 12483, 12471, 12455, 12523], 256], - 13109: [[12501, 12521, 12531], 256], - 13110: [[12504, 12463, 12479, 12540, 12523], 256], - 13111: [[12506, 12477], 256], - 13112: [[12506, 12491, 12498], 256], - 13113: [[12504, 12523, 12484], 256], - 13114: [[12506, 12531, 12473], 256], - 13115: [[12506, 12540, 12472], 256], - 13116: [[12505, 12540, 12479], 256], - 13117: [[12509, 12452, 12531, 12488], 256], - 13118: [[12508, 12523, 12488], 256], - 13119: [[12507, 12531], 256], - 13120: [[12509, 12531, 12489], 256], - 13121: [[12507, 12540, 12523], 256], - 13122: [[12507, 12540, 12531], 256], - 13123: [[12510, 12452, 12463, 12525], 256], - 13124: [[12510, 12452, 12523], 256], - 13125: [[12510, 12483, 12495], 256], - 13126: [[12510, 12523, 12463], 256], - 13127: [[12510, 12531, 12471, 12519, 12531], 256], - 13128: [[12511, 12463, 12525, 12531], 256], - 13129: [[12511, 12522], 256], - 13130: [[12511, 12522, 12496, 12540, 12523], 256], - 13131: [[12513, 12460], 256], - 13132: [[12513, 12460, 12488, 12531], 256], - 13133: [[12513, 12540, 12488, 12523], 256], - 13134: [[12516, 12540, 12489], 256], - 13135: [[12516, 12540, 12523], 256], - 13136: [[12518, 12450, 12531], 256], - 13137: [[12522, 12483, 12488, 12523], 256], - 13138: [[12522, 12521], 256], - 13139: [[12523, 12500, 12540], 256], - 13140: [[12523, 12540, 12502, 12523], 256], - 13141: [[12524, 12512], 256], - 13142: [[12524, 12531, 12488, 12466, 12531], 256], - 13143: [[12527, 12483, 12488], 256], - 13144: [[48, 28857], 256], - 13145: [[49, 28857], 256], - 13146: [[50, 28857], 256], - 13147: [[51, 28857], 256], - 13148: [[52, 28857], 256], - 13149: [[53, 28857], 256], - 13150: [[54, 28857], 256], - 13151: [[55, 28857], 256], - 13152: [[56, 28857], 256], - 13153: [[57, 28857], 256], - 13154: [[49, 48, 28857], 256], - 13155: [[49, 49, 28857], 256], - 13156: [[49, 50, 28857], 256], - 13157: [[49, 51, 28857], 256], - 13158: [[49, 52, 28857], 256], - 13159: [[49, 53, 28857], 256], - 13160: [[49, 54, 28857], 256], - 13161: [[49, 55, 28857], 256], - 13162: [[49, 56, 28857], 256], - 13163: [[49, 57, 28857], 256], - 13164: [[50, 48, 28857], 256], - 13165: [[50, 49, 28857], 256], - 13166: [[50, 50, 28857], 256], - 13167: [[50, 51, 28857], 256], - 13168: [[50, 52, 28857], 256], - 13169: [[104, 80, 97], 256], - 13170: [[100, 97], 256], - 13171: [[65, 85], 256], - 13172: [[98, 97, 114], 256], - 13173: [[111, 86], 256], - 13174: [[112, 99], 256], - 13175: [[100, 109], 256], - 13176: [[100, 109, 178], 256], - 13177: [[100, 109, 179], 256], - 13178: [[73, 85], 256], - 13179: [[24179, 25104], 256], - 13180: [[26157, 21644], 256], - 13181: [[22823, 27491], 256], - 13182: [[26126, 27835], 256], - 13183: [[26666, 24335, 20250, 31038], 256], - 13184: [[112, 65], 256], - 13185: [[110, 65], 256], - 13186: [[956, 65], 256], - 13187: [[109, 65], 256], - 13188: [[107, 65], 256], - 13189: [[75, 66], 256], - 13190: [[77, 66], 256], - 13191: [[71, 66], 256], - 13192: [[99, 97, 108], 256], - 13193: [[107, 99, 97, 108], 256], - 13194: [[112, 70], 256], - 13195: [[110, 70], 256], - 13196: [[956, 70], 256], - 13197: [[956, 103], 256], - 13198: [[109, 103], 256], - 13199: [[107, 103], 256], - 13200: [[72, 122], 256], - 13201: [[107, 72, 122], 256], - 13202: [[77, 72, 122], 256], - 13203: [[71, 72, 122], 256], - 13204: [[84, 72, 122], 256], - 13205: [[956, 8467], 256], - 13206: [[109, 8467], 256], - 13207: [[100, 8467], 256], - 13208: [[107, 8467], 256], - 13209: [[102, 109], 256], - 13210: [[110, 109], 256], - 13211: [[956, 109], 256], - 13212: [[109, 109], 256], - 13213: [[99, 109], 256], - 13214: [[107, 109], 256], - 13215: [[109, 109, 178], 256], - 13216: [[99, 109, 178], 256], - 13217: [[109, 178], 256], - 13218: [[107, 109, 178], 256], - 13219: [[109, 109, 179], 256], - 13220: [[99, 109, 179], 256], - 13221: [[109, 179], 256], - 13222: [[107, 109, 179], 256], - 13223: [[109, 8725, 115], 256], - 13224: [[109, 8725, 115, 178], 256], - 13225: [[80, 97], 256], - 13226: [[107, 80, 97], 256], - 13227: [[77, 80, 97], 256], - 13228: [[71, 80, 97], 256], - 13229: [[114, 97, 100], 256], - 13230: [[114, 97, 100, 8725, 115], 256], - 13231: [[114, 97, 100, 8725, 115, 178], 256], - 13232: [[112, 115], 256], - 13233: [[110, 115], 256], - 13234: [[956, 115], 256], - 13235: [[109, 115], 256], - 13236: [[112, 86], 256], - 13237: [[110, 86], 256], - 13238: [[956, 86], 256], - 13239: [[109, 86], 256], - 13240: [[107, 86], 256], - 13241: [[77, 86], 256], - 13242: [[112, 87], 256], - 13243: [[110, 87], 256], - 13244: [[956, 87], 256], - 13245: [[109, 87], 256], - 13246: [[107, 87], 256], - 13247: [[77, 87], 256], - 13248: [[107, 937], 256], - 13249: [[77, 937], 256], - 13250: [[97, 46, 109, 46], 256], - 13251: [[66, 113], 256], - 13252: [[99, 99], 256], - 13253: [[99, 100], 256], - 13254: [[67, 8725, 107, 103], 256], - 13255: [[67, 111, 46], 256], - 13256: [[100, 66], 256], - 13257: [[71, 121], 256], - 13258: [[104, 97], 256], - 13259: [[72, 80], 256], - 13260: [[105, 110], 256], - 13261: [[75, 75], 256], - 13262: [[75, 77], 256], - 13263: [[107, 116], 256], - 13264: [[108, 109], 256], - 13265: [[108, 110], 256], - 13266: [[108, 111, 103], 256], - 13267: [[108, 120], 256], - 13268: [[109, 98], 256], - 13269: [[109, 105, 108], 256], - 13270: [[109, 111, 108], 256], - 13271: [[80, 72], 256], - 13272: [[112, 46, 109, 46], 256], - 13273: [[80, 80, 77], 256], - 13274: [[80, 82], 256], - 13275: [[115, 114], 256], - 13276: [[83, 118], 256], - 13277: [[87, 98], 256], - 13278: [[86, 8725, 109], 256], - 13279: [[65, 8725, 109], 256], - 13280: [[49, 26085], 256], - 13281: [[50, 26085], 256], - 13282: [[51, 26085], 256], - 13283: [[52, 26085], 256], - 13284: [[53, 26085], 256], - 13285: [[54, 26085], 256], - 13286: [[55, 26085], 256], - 13287: [[56, 26085], 256], - 13288: [[57, 26085], 256], - 13289: [[49, 48, 26085], 256], - 13290: [[49, 49, 26085], 256], - 13291: [[49, 50, 26085], 256], - 13292: [[49, 51, 26085], 256], - 13293: [[49, 52, 26085], 256], - 13294: [[49, 53, 26085], 256], - 13295: [[49, 54, 26085], 256], - 13296: [[49, 55, 26085], 256], - 13297: [[49, 56, 26085], 256], - 13298: [[49, 57, 26085], 256], - 13299: [[50, 48, 26085], 256], - 13300: [[50, 49, 26085], 256], - 13301: [[50, 50, 26085], 256], - 13302: [[50, 51, 26085], 256], - 13303: [[50, 52, 26085], 256], - 13304: [[50, 53, 26085], 256], - 13305: [[50, 54, 26085], 256], - 13306: [[50, 55, 26085], 256], - 13307: [[50, 56, 26085], 256], - 13308: [[50, 57, 26085], 256], - 13309: [[51, 48, 26085], 256], - 13310: [[51, 49, 26085], 256], - 13311: [[103, 97, 108], 256] - }, - 42496: { - 42607: [, 230], - 42612: [, 230], - 42613: [, 230], - 42614: [, 230], - 42615: [, 230], - 42616: [, 230], - 42617: [, 230], - 42618: [, 230], - 42619: [, 230], - 42620: [, 230], - 42621: [, 230], - 42655: [, 230], - 42736: [, 230], - 42737: [, 230] - }, - 42752: { 42864: [[42863], 256], 43000: [[294], 256], 43001: [[339], 256] }, - 43008: { - 43014: [, 9], - 43204: [, 9], - 43232: [, 230], - 43233: [, 230], - 43234: [, 230], - 43235: [, 230], - 43236: [, 230], - 43237: [, 230], - 43238: [, 230], - 43239: [, 230], - 43240: [, 230], - 43241: [, 230], - 43242: [, 230], - 43243: [, 230], - 43244: [, 230], - 43245: [, 230], - 43246: [, 230], - 43247: [, 230], - 43248: [, 230], - 43249: [, 230] - }, - 43264: { - 43307: [, 220], - 43308: [, 220], - 43309: [, 220], - 43347: [, 9], - 43443: [, 7], - 43456: [, 9] - }, - 43520: { - 43696: [, 230], - 43698: [, 230], - 43699: [, 230], - 43700: [, 220], - 43703: [, 230], - 43704: [, 230], - 43710: [, 230], - 43711: [, 230], - 43713: [, 230], - 43766: [, 9] - }, - 43776: { 44013: [, 9] }, - 53504: { - 119134: [[119127, 119141], 512], - 119135: [[119128, 119141], 512], - 119136: [[119135, 119150], 512], - 119137: [[119135, 119151], 512], - 119138: [[119135, 119152], 512], - 119139: [[119135, 119153], 512], - 119140: [[119135, 119154], 512], - 119141: [, 216], - 119142: [, 216], - 119143: [, 1], - 119144: [, 1], - 119145: [, 1], - 119149: [, 226], - 119150: [, 216], - 119151: [, 216], - 119152: [, 216], - 119153: [, 216], - 119154: [, 216], - 119163: [, 220], - 119164: [, 220], - 119165: [, 220], - 119166: [, 220], - 119167: [, 220], - 119168: [, 220], - 119169: [, 220], - 119170: [, 220], - 119173: [, 230], - 119174: [, 230], - 119175: [, 230], - 119176: [, 230], - 119177: [, 230], - 119178: [, 220], - 119179: [, 220], - 119210: [, 230], - 119211: [, 230], - 119212: [, 230], - 119213: [, 230], - 119227: [[119225, 119141], 512], - 119228: [[119226, 119141], 512], - 119229: [[119227, 119150], 512], - 119230: [[119228, 119150], 512], - 119231: [[119227, 119151], 512], - 119232: [[119228, 119151], 512] - }, - 53760: { 119362: [, 230], 119363: [, 230], 119364: [, 230] }, - 54272: { - 119808: [[65], 256], - 119809: [[66], 256], - 119810: [[67], 256], - 119811: [[68], 256], - 119812: [[69], 256], - 119813: [[70], 256], - 119814: [[71], 256], - 119815: [[72], 256], - 119816: [[73], 256], - 119817: [[74], 256], - 119818: [[75], 256], - 119819: [[76], 256], - 119820: [[77], 256], - 119821: [[78], 256], - 119822: [[79], 256], - 119823: [[80], 256], - 119824: [[81], 256], - 119825: [[82], 256], - 119826: [[83], 256], - 119827: [[84], 256], - 119828: [[85], 256], - 119829: [[86], 256], - 119830: [[87], 256], - 119831: [[88], 256], - 119832: [[89], 256], - 119833: [[90], 256], - 119834: [[97], 256], - 119835: [[98], 256], - 119836: [[99], 256], - 119837: [[100], 256], - 119838: [[101], 256], - 119839: [[102], 256], - 119840: [[103], 256], - 119841: [[104], 256], - 119842: [[105], 256], - 119843: [[106], 256], - 119844: [[107], 256], - 119845: [[108], 256], - 119846: [[109], 256], - 119847: [[110], 256], - 119848: [[111], 256], - 119849: [[112], 256], - 119850: [[113], 256], - 119851: [[114], 256], - 119852: [[115], 256], - 119853: [[116], 256], - 119854: [[117], 256], - 119855: [[118], 256], - 119856: [[119], 256], - 119857: [[120], 256], - 119858: [[121], 256], - 119859: [[122], 256], - 119860: [[65], 256], - 119861: [[66], 256], - 119862: [[67], 256], - 119863: [[68], 256], - 119864: [[69], 256], - 119865: [[70], 256], - 119866: [[71], 256], - 119867: [[72], 256], - 119868: [[73], 256], - 119869: [[74], 256], - 119870: [[75], 256], - 119871: [[76], 256], - 119872: [[77], 256], - 119873: [[78], 256], - 119874: [[79], 256], - 119875: [[80], 256], - 119876: [[81], 256], - 119877: [[82], 256], - 119878: [[83], 256], - 119879: [[84], 256], - 119880: [[85], 256], - 119881: [[86], 256], - 119882: [[87], 256], - 119883: [[88], 256], - 119884: [[89], 256], - 119885: [[90], 256], - 119886: [[97], 256], - 119887: [[98], 256], - 119888: [[99], 256], - 119889: [[100], 256], - 119890: [[101], 256], - 119891: [[102], 256], - 119892: [[103], 256], - 119894: [[105], 256], - 119895: [[106], 256], - 119896: [[107], 256], - 119897: [[108], 256], - 119898: [[109], 256], - 119899: [[110], 256], - 119900: [[111], 256], - 119901: [[112], 256], - 119902: [[113], 256], - 119903: [[114], 256], - 119904: [[115], 256], - 119905: [[116], 256], - 119906: [[117], 256], - 119907: [[118], 256], - 119908: [[119], 256], - 119909: [[120], 256], - 119910: [[121], 256], - 119911: [[122], 256], - 119912: [[65], 256], - 119913: [[66], 256], - 119914: [[67], 256], - 119915: [[68], 256], - 119916: [[69], 256], - 119917: [[70], 256], - 119918: [[71], 256], - 119919: [[72], 256], - 119920: [[73], 256], - 119921: [[74], 256], - 119922: [[75], 256], - 119923: [[76], 256], - 119924: [[77], 256], - 119925: [[78], 256], - 119926: [[79], 256], - 119927: [[80], 256], - 119928: [[81], 256], - 119929: [[82], 256], - 119930: [[83], 256], - 119931: [[84], 256], - 119932: [[85], 256], - 119933: [[86], 256], - 119934: [[87], 256], - 119935: [[88], 256], - 119936: [[89], 256], - 119937: [[90], 256], - 119938: [[97], 256], - 119939: [[98], 256], - 119940: [[99], 256], - 119941: [[100], 256], - 119942: [[101], 256], - 119943: [[102], 256], - 119944: [[103], 256], - 119945: [[104], 256], - 119946: [[105], 256], - 119947: [[106], 256], - 119948: [[107], 256], - 119949: [[108], 256], - 119950: [[109], 256], - 119951: [[110], 256], - 119952: [[111], 256], - 119953: [[112], 256], - 119954: [[113], 256], - 119955: [[114], 256], - 119956: [[115], 256], - 119957: [[116], 256], - 119958: [[117], 256], - 119959: [[118], 256], - 119960: [[119], 256], - 119961: [[120], 256], - 119962: [[121], 256], - 119963: [[122], 256], - 119964: [[65], 256], - 119966: [[67], 256], - 119967: [[68], 256], - 119970: [[71], 256], - 119973: [[74], 256], - 119974: [[75], 256], - 119977: [[78], 256], - 119978: [[79], 256], - 119979: [[80], 256], - 119980: [[81], 256], - 119982: [[83], 256], - 119983: [[84], 256], - 119984: [[85], 256], - 119985: [[86], 256], - 119986: [[87], 256], - 119987: [[88], 256], - 119988: [[89], 256], - 119989: [[90], 256], - 119990: [[97], 256], - 119991: [[98], 256], - 119992: [[99], 256], - 119993: [[100], 256], - 119995: [[102], 256], - 119997: [[104], 256], - 119998: [[105], 256], - 119999: [[106], 256], - 120000: [[107], 256], - 120001: [[108], 256], - 120002: [[109], 256], - 120003: [[110], 256], - 120005: [[112], 256], - 120006: [[113], 256], - 120007: [[114], 256], - 120008: [[115], 256], - 120009: [[116], 256], - 120010: [[117], 256], - 120011: [[118], 256], - 120012: [[119], 256], - 120013: [[120], 256], - 120014: [[121], 256], - 120015: [[122], 256], - 120016: [[65], 256], - 120017: [[66], 256], - 120018: [[67], 256], - 120019: [[68], 256], - 120020: [[69], 256], - 120021: [[70], 256], - 120022: [[71], 256], - 120023: [[72], 256], - 120024: [[73], 256], - 120025: [[74], 256], - 120026: [[75], 256], - 120027: [[76], 256], - 120028: [[77], 256], - 120029: [[78], 256], - 120030: [[79], 256], - 120031: [[80], 256], - 120032: [[81], 256], - 120033: [[82], 256], - 120034: [[83], 256], - 120035: [[84], 256], - 120036: [[85], 256], - 120037: [[86], 256], - 120038: [[87], 256], - 120039: [[88], 256], - 120040: [[89], 256], - 120041: [[90], 256], - 120042: [[97], 256], - 120043: [[98], 256], - 120044: [[99], 256], - 120045: [[100], 256], - 120046: [[101], 256], - 120047: [[102], 256], - 120048: [[103], 256], - 120049: [[104], 256], - 120050: [[105], 256], - 120051: [[106], 256], - 120052: [[107], 256], - 120053: [[108], 256], - 120054: [[109], 256], - 120055: [[110], 256], - 120056: [[111], 256], - 120057: [[112], 256], - 120058: [[113], 256], - 120059: [[114], 256], - 120060: [[115], 256], - 120061: [[116], 256], - 120062: [[117], 256], - 120063: [[118], 256] - }, - 54528: { - 120064: [[119], 256], - 120065: [[120], 256], - 120066: [[121], 256], - 120067: [[122], 256], - 120068: [[65], 256], - 120069: [[66], 256], - 120071: [[68], 256], - 120072: [[69], 256], - 120073: [[70], 256], - 120074: [[71], 256], - 120077: [[74], 256], - 120078: [[75], 256], - 120079: [[76], 256], - 120080: [[77], 256], - 120081: [[78], 256], - 120082: [[79], 256], - 120083: [[80], 256], - 120084: [[81], 256], - 120086: [[83], 256], - 120087: [[84], 256], - 120088: [[85], 256], - 120089: [[86], 256], - 120090: [[87], 256], - 120091: [[88], 256], - 120092: [[89], 256], - 120094: [[97], 256], - 120095: [[98], 256], - 120096: [[99], 256], - 120097: [[100], 256], - 120098: [[101], 256], - 120099: [[102], 256], - 120100: [[103], 256], - 120101: [[104], 256], - 120102: [[105], 256], - 120103: [[106], 256], - 120104: [[107], 256], - 120105: [[108], 256], - 120106: [[109], 256], - 120107: [[110], 256], - 120108: [[111], 256], - 120109: [[112], 256], - 120110: [[113], 256], - 120111: [[114], 256], - 120112: [[115], 256], - 120113: [[116], 256], - 120114: [[117], 256], - 120115: [[118], 256], - 120116: [[119], 256], - 120117: [[120], 256], - 120118: [[121], 256], - 120119: [[122], 256], - 120120: [[65], 256], - 120121: [[66], 256], - 120123: [[68], 256], - 120124: [[69], 256], - 120125: [[70], 256], - 120126: [[71], 256], - 120128: [[73], 256], - 120129: [[74], 256], - 120130: [[75], 256], - 120131: [[76], 256], - 120132: [[77], 256], - 120134: [[79], 256], - 120138: [[83], 256], - 120139: [[84], 256], - 120140: [[85], 256], - 120141: [[86], 256], - 120142: [[87], 256], - 120143: [[88], 256], - 120144: [[89], 256], - 120146: [[97], 256], - 120147: [[98], 256], - 120148: [[99], 256], - 120149: [[100], 256], - 120150: [[101], 256], - 120151: [[102], 256], - 120152: [[103], 256], - 120153: [[104], 256], - 120154: [[105], 256], - 120155: [[106], 256], - 120156: [[107], 256], - 120157: [[108], 256], - 120158: [[109], 256], - 120159: [[110], 256], - 120160: [[111], 256], - 120161: [[112], 256], - 120162: [[113], 256], - 120163: [[114], 256], - 120164: [[115], 256], - 120165: [[116], 256], - 120166: [[117], 256], - 120167: [[118], 256], - 120168: [[119], 256], - 120169: [[120], 256], - 120170: [[121], 256], - 120171: [[122], 256], - 120172: [[65], 256], - 120173: [[66], 256], - 120174: [[67], 256], - 120175: [[68], 256], - 120176: [[69], 256], - 120177: [[70], 256], - 120178: [[71], 256], - 120179: [[72], 256], - 120180: [[73], 256], - 120181: [[74], 256], - 120182: [[75], 256], - 120183: [[76], 256], - 120184: [[77], 256], - 120185: [[78], 256], - 120186: [[79], 256], - 120187: [[80], 256], - 120188: [[81], 256], - 120189: [[82], 256], - 120190: [[83], 256], - 120191: [[84], 256], - 120192: [[85], 256], - 120193: [[86], 256], - 120194: [[87], 256], - 120195: [[88], 256], - 120196: [[89], 256], - 120197: [[90], 256], - 120198: [[97], 256], - 120199: [[98], 256], - 120200: [[99], 256], - 120201: [[100], 256], - 120202: [[101], 256], - 120203: [[102], 256], - 120204: [[103], 256], - 120205: [[104], 256], - 120206: [[105], 256], - 120207: [[106], 256], - 120208: [[107], 256], - 120209: [[108], 256], - 120210: [[109], 256], - 120211: [[110], 256], - 120212: [[111], 256], - 120213: [[112], 256], - 120214: [[113], 256], - 120215: [[114], 256], - 120216: [[115], 256], - 120217: [[116], 256], - 120218: [[117], 256], - 120219: [[118], 256], - 120220: [[119], 256], - 120221: [[120], 256], - 120222: [[121], 256], - 120223: [[122], 256], - 120224: [[65], 256], - 120225: [[66], 256], - 120226: [[67], 256], - 120227: [[68], 256], - 120228: [[69], 256], - 120229: [[70], 256], - 120230: [[71], 256], - 120231: [[72], 256], - 120232: [[73], 256], - 120233: [[74], 256], - 120234: [[75], 256], - 120235: [[76], 256], - 120236: [[77], 256], - 120237: [[78], 256], - 120238: [[79], 256], - 120239: [[80], 256], - 120240: [[81], 256], - 120241: [[82], 256], - 120242: [[83], 256], - 120243: [[84], 256], - 120244: [[85], 256], - 120245: [[86], 256], - 120246: [[87], 256], - 120247: [[88], 256], - 120248: [[89], 256], - 120249: [[90], 256], - 120250: [[97], 256], - 120251: [[98], 256], - 120252: [[99], 256], - 120253: [[100], 256], - 120254: [[101], 256], - 120255: [[102], 256], - 120256: [[103], 256], - 120257: [[104], 256], - 120258: [[105], 256], - 120259: [[106], 256], - 120260: [[107], 256], - 120261: [[108], 256], - 120262: [[109], 256], - 120263: [[110], 256], - 120264: [[111], 256], - 120265: [[112], 256], - 120266: [[113], 256], - 120267: [[114], 256], - 120268: [[115], 256], - 120269: [[116], 256], - 120270: [[117], 256], - 120271: [[118], 256], - 120272: [[119], 256], - 120273: [[120], 256], - 120274: [[121], 256], - 120275: [[122], 256], - 120276: [[65], 256], - 120277: [[66], 256], - 120278: [[67], 256], - 120279: [[68], 256], - 120280: [[69], 256], - 120281: [[70], 256], - 120282: [[71], 256], - 120283: [[72], 256], - 120284: [[73], 256], - 120285: [[74], 256], - 120286: [[75], 256], - 120287: [[76], 256], - 120288: [[77], 256], - 120289: [[78], 256], - 120290: [[79], 256], - 120291: [[80], 256], - 120292: [[81], 256], - 120293: [[82], 256], - 120294: [[83], 256], - 120295: [[84], 256], - 120296: [[85], 256], - 120297: [[86], 256], - 120298: [[87], 256], - 120299: [[88], 256], - 120300: [[89], 256], - 120301: [[90], 256], - 120302: [[97], 256], - 120303: [[98], 256], - 120304: [[99], 256], - 120305: [[100], 256], - 120306: [[101], 256], - 120307: [[102], 256], - 120308: [[103], 256], - 120309: [[104], 256], - 120310: [[105], 256], - 120311: [[106], 256], - 120312: [[107], 256], - 120313: [[108], 256], - 120314: [[109], 256], - 120315: [[110], 256], - 120316: [[111], 256], - 120317: [[112], 256], - 120318: [[113], 256], - 120319: [[114], 256] - }, - 54784: { - 120320: [[115], 256], - 120321: [[116], 256], - 120322: [[117], 256], - 120323: [[118], 256], - 120324: [[119], 256], - 120325: [[120], 256], - 120326: [[121], 256], - 120327: [[122], 256], - 120328: [[65], 256], - 120329: [[66], 256], - 120330: [[67], 256], - 120331: [[68], 256], - 120332: [[69], 256], - 120333: [[70], 256], - 120334: [[71], 256], - 120335: [[72], 256], - 120336: [[73], 256], - 120337: [[74], 256], - 120338: [[75], 256], - 120339: [[76], 256], - 120340: [[77], 256], - 120341: [[78], 256], - 120342: [[79], 256], - 120343: [[80], 256], - 120344: [[81], 256], - 120345: [[82], 256], - 120346: [[83], 256], - 120347: [[84], 256], - 120348: [[85], 256], - 120349: [[86], 256], - 120350: [[87], 256], - 120351: [[88], 256], - 120352: [[89], 256], - 120353: [[90], 256], - 120354: [[97], 256], - 120355: [[98], 256], - 120356: [[99], 256], - 120357: [[100], 256], - 120358: [[101], 256], - 120359: [[102], 256], - 120360: [[103], 256], - 120361: [[104], 256], - 120362: [[105], 256], - 120363: [[106], 256], - 120364: [[107], 256], - 120365: [[108], 256], - 120366: [[109], 256], - 120367: [[110], 256], - 120368: [[111], 256], - 120369: [[112], 256], - 120370: [[113], 256], - 120371: [[114], 256], - 120372: [[115], 256], - 120373: [[116], 256], - 120374: [[117], 256], - 120375: [[118], 256], - 120376: [[119], 256], - 120377: [[120], 256], - 120378: [[121], 256], - 120379: [[122], 256], - 120380: [[65], 256], - 120381: [[66], 256], - 120382: [[67], 256], - 120383: [[68], 256], - 120384: [[69], 256], - 120385: [[70], 256], - 120386: [[71], 256], - 120387: [[72], 256], - 120388: [[73], 256], - 120389: [[74], 256], - 120390: [[75], 256], - 120391: [[76], 256], - 120392: [[77], 256], - 120393: [[78], 256], - 120394: [[79], 256], - 120395: [[80], 256], - 120396: [[81], 256], - 120397: [[82], 256], - 120398: [[83], 256], - 120399: [[84], 256], - 120400: [[85], 256], - 120401: [[86], 256], - 120402: [[87], 256], - 120403: [[88], 256], - 120404: [[89], 256], - 120405: [[90], 256], - 120406: [[97], 256], - 120407: [[98], 256], - 120408: [[99], 256], - 120409: [[100], 256], - 120410: [[101], 256], - 120411: [[102], 256], - 120412: [[103], 256], - 120413: [[104], 256], - 120414: [[105], 256], - 120415: [[106], 256], - 120416: [[107], 256], - 120417: [[108], 256], - 120418: [[109], 256], - 120419: [[110], 256], - 120420: [[111], 256], - 120421: [[112], 256], - 120422: [[113], 256], - 120423: [[114], 256], - 120424: [[115], 256], - 120425: [[116], 256], - 120426: [[117], 256], - 120427: [[118], 256], - 120428: [[119], 256], - 120429: [[120], 256], - 120430: [[121], 256], - 120431: [[122], 256], - 120432: [[65], 256], - 120433: [[66], 256], - 120434: [[67], 256], - 120435: [[68], 256], - 120436: [[69], 256], - 120437: [[70], 256], - 120438: [[71], 256], - 120439: [[72], 256], - 120440: [[73], 256], - 120441: [[74], 256], - 120442: [[75], 256], - 120443: [[76], 256], - 120444: [[77], 256], - 120445: [[78], 256], - 120446: [[79], 256], - 120447: [[80], 256], - 120448: [[81], 256], - 120449: [[82], 256], - 120450: [[83], 256], - 120451: [[84], 256], - 120452: [[85], 256], - 120453: [[86], 256], - 120454: [[87], 256], - 120455: [[88], 256], - 120456: [[89], 256], - 120457: [[90], 256], - 120458: [[97], 256], - 120459: [[98], 256], - 120460: [[99], 256], - 120461: [[100], 256], - 120462: [[101], 256], - 120463: [[102], 256], - 120464: [[103], 256], - 120465: [[104], 256], - 120466: [[105], 256], - 120467: [[106], 256], - 120468: [[107], 256], - 120469: [[108], 256], - 120470: [[109], 256], - 120471: [[110], 256], - 120472: [[111], 256], - 120473: [[112], 256], - 120474: [[113], 256], - 120475: [[114], 256], - 120476: [[115], 256], - 120477: [[116], 256], - 120478: [[117], 256], - 120479: [[118], 256], - 120480: [[119], 256], - 120481: [[120], 256], - 120482: [[121], 256], - 120483: [[122], 256], - 120484: [[305], 256], - 120485: [[567], 256], - 120488: [[913], 256], - 120489: [[914], 256], - 120490: [[915], 256], - 120491: [[916], 256], - 120492: [[917], 256], - 120493: [[918], 256], - 120494: [[919], 256], - 120495: [[920], 256], - 120496: [[921], 256], - 120497: [[922], 256], - 120498: [[923], 256], - 120499: [[924], 256], - 120500: [[925], 256], - 120501: [[926], 256], - 120502: [[927], 256], - 120503: [[928], 256], - 120504: [[929], 256], - 120505: [[1012], 256], - 120506: [[931], 256], - 120507: [[932], 256], - 120508: [[933], 256], - 120509: [[934], 256], - 120510: [[935], 256], - 120511: [[936], 256], - 120512: [[937], 256], - 120513: [[8711], 256], - 120514: [[945], 256], - 120515: [[946], 256], - 120516: [[947], 256], - 120517: [[948], 256], - 120518: [[949], 256], - 120519: [[950], 256], - 120520: [[951], 256], - 120521: [[952], 256], - 120522: [[953], 256], - 120523: [[954], 256], - 120524: [[955], 256], - 120525: [[956], 256], - 120526: [[957], 256], - 120527: [[958], 256], - 120528: [[959], 256], - 120529: [[960], 256], - 120530: [[961], 256], - 120531: [[962], 256], - 120532: [[963], 256], - 120533: [[964], 256], - 120534: [[965], 256], - 120535: [[966], 256], - 120536: [[967], 256], - 120537: [[968], 256], - 120538: [[969], 256], - 120539: [[8706], 256], - 120540: [[1013], 256], - 120541: [[977], 256], - 120542: [[1008], 256], - 120543: [[981], 256], - 120544: [[1009], 256], - 120545: [[982], 256], - 120546: [[913], 256], - 120547: [[914], 256], - 120548: [[915], 256], - 120549: [[916], 256], - 120550: [[917], 256], - 120551: [[918], 256], - 120552: [[919], 256], - 120553: [[920], 256], - 120554: [[921], 256], - 120555: [[922], 256], - 120556: [[923], 256], - 120557: [[924], 256], - 120558: [[925], 256], - 120559: [[926], 256], - 120560: [[927], 256], - 120561: [[928], 256], - 120562: [[929], 256], - 120563: [[1012], 256], - 120564: [[931], 256], - 120565: [[932], 256], - 120566: [[933], 256], - 120567: [[934], 256], - 120568: [[935], 256], - 120569: [[936], 256], - 120570: [[937], 256], - 120571: [[8711], 256], - 120572: [[945], 256], - 120573: [[946], 256], - 120574: [[947], 256], - 120575: [[948], 256] - }, - 55040: { - 120576: [[949], 256], - 120577: [[950], 256], - 120578: [[951], 256], - 120579: [[952], 256], - 120580: [[953], 256], - 120581: [[954], 256], - 120582: [[955], 256], - 120583: [[956], 256], - 120584: [[957], 256], - 120585: [[958], 256], - 120586: [[959], 256], - 120587: [[960], 256], - 120588: [[961], 256], - 120589: [[962], 256], - 120590: [[963], 256], - 120591: [[964], 256], - 120592: [[965], 256], - 120593: [[966], 256], - 120594: [[967], 256], - 120595: [[968], 256], - 120596: [[969], 256], - 120597: [[8706], 256], - 120598: [[1013], 256], - 120599: [[977], 256], - 120600: [[1008], 256], - 120601: [[981], 256], - 120602: [[1009], 256], - 120603: [[982], 256], - 120604: [[913], 256], - 120605: [[914], 256], - 120606: [[915], 256], - 120607: [[916], 256], - 120608: [[917], 256], - 120609: [[918], 256], - 120610: [[919], 256], - 120611: [[920], 256], - 120612: [[921], 256], - 120613: [[922], 256], - 120614: [[923], 256], - 120615: [[924], 256], - 120616: [[925], 256], - 120617: [[926], 256], - 120618: [[927], 256], - 120619: [[928], 256], - 120620: [[929], 256], - 120621: [[1012], 256], - 120622: [[931], 256], - 120623: [[932], 256], - 120624: [[933], 256], - 120625: [[934], 256], - 120626: [[935], 256], - 120627: [[936], 256], - 120628: [[937], 256], - 120629: [[8711], 256], - 120630: [[945], 256], - 120631: [[946], 256], - 120632: [[947], 256], - 120633: [[948], 256], - 120634: [[949], 256], - 120635: [[950], 256], - 120636: [[951], 256], - 120637: [[952], 256], - 120638: [[953], 256], - 120639: [[954], 256], - 120640: [[955], 256], - 120641: [[956], 256], - 120642: [[957], 256], - 120643: [[958], 256], - 120644: [[959], 256], - 120645: [[960], 256], - 120646: [[961], 256], - 120647: [[962], 256], - 120648: [[963], 256], - 120649: [[964], 256], - 120650: [[965], 256], - 120651: [[966], 256], - 120652: [[967], 256], - 120653: [[968], 256], - 120654: [[969], 256], - 120655: [[8706], 256], - 120656: [[1013], 256], - 120657: [[977], 256], - 120658: [[1008], 256], - 120659: [[981], 256], - 120660: [[1009], 256], - 120661: [[982], 256], - 120662: [[913], 256], - 120663: [[914], 256], - 120664: [[915], 256], - 120665: [[916], 256], - 120666: [[917], 256], - 120667: [[918], 256], - 120668: [[919], 256], - 120669: [[920], 256], - 120670: [[921], 256], - 120671: [[922], 256], - 120672: [[923], 256], - 120673: [[924], 256], - 120674: [[925], 256], - 120675: [[926], 256], - 120676: [[927], 256], - 120677: [[928], 256], - 120678: [[929], 256], - 120679: [[1012], 256], - 120680: [[931], 256], - 120681: [[932], 256], - 120682: [[933], 256], - 120683: [[934], 256], - 120684: [[935], 256], - 120685: [[936], 256], - 120686: [[937], 256], - 120687: [[8711], 256], - 120688: [[945], 256], - 120689: [[946], 256], - 120690: [[947], 256], - 120691: [[948], 256], - 120692: [[949], 256], - 120693: [[950], 256], - 120694: [[951], 256], - 120695: [[952], 256], - 120696: [[953], 256], - 120697: [[954], 256], - 120698: [[955], 256], - 120699: [[956], 256], - 120700: [[957], 256], - 120701: [[958], 256], - 120702: [[959], 256], - 120703: [[960], 256], - 120704: [[961], 256], - 120705: [[962], 256], - 120706: [[963], 256], - 120707: [[964], 256], - 120708: [[965], 256], - 120709: [[966], 256], - 120710: [[967], 256], - 120711: [[968], 256], - 120712: [[969], 256], - 120713: [[8706], 256], - 120714: [[1013], 256], - 120715: [[977], 256], - 120716: [[1008], 256], - 120717: [[981], 256], - 120718: [[1009], 256], - 120719: [[982], 256], - 120720: [[913], 256], - 120721: [[914], 256], - 120722: [[915], 256], - 120723: [[916], 256], - 120724: [[917], 256], - 120725: [[918], 256], - 120726: [[919], 256], - 120727: [[920], 256], - 120728: [[921], 256], - 120729: [[922], 256], - 120730: [[923], 256], - 120731: [[924], 256], - 120732: [[925], 256], - 120733: [[926], 256], - 120734: [[927], 256], - 120735: [[928], 256], - 120736: [[929], 256], - 120737: [[1012], 256], - 120738: [[931], 256], - 120739: [[932], 256], - 120740: [[933], 256], - 120741: [[934], 256], - 120742: [[935], 256], - 120743: [[936], 256], - 120744: [[937], 256], - 120745: [[8711], 256], - 120746: [[945], 256], - 120747: [[946], 256], - 120748: [[947], 256], - 120749: [[948], 256], - 120750: [[949], 256], - 120751: [[950], 256], - 120752: [[951], 256], - 120753: [[952], 256], - 120754: [[953], 256], - 120755: [[954], 256], - 120756: [[955], 256], - 120757: [[956], 256], - 120758: [[957], 256], - 120759: [[958], 256], - 120760: [[959], 256], - 120761: [[960], 256], - 120762: [[961], 256], - 120763: [[962], 256], - 120764: [[963], 256], - 120765: [[964], 256], - 120766: [[965], 256], - 120767: [[966], 256], - 120768: [[967], 256], - 120769: [[968], 256], - 120770: [[969], 256], - 120771: [[8706], 256], - 120772: [[1013], 256], - 120773: [[977], 256], - 120774: [[1008], 256], - 120775: [[981], 256], - 120776: [[1009], 256], - 120777: [[982], 256], - 120778: [[988], 256], - 120779: [[989], 256], - 120782: [[48], 256], - 120783: [[49], 256], - 120784: [[50], 256], - 120785: [[51], 256], - 120786: [[52], 256], - 120787: [[53], 256], - 120788: [[54], 256], - 120789: [[55], 256], - 120790: [[56], 256], - 120791: [[57], 256], - 120792: [[48], 256], - 120793: [[49], 256], - 120794: [[50], 256], - 120795: [[51], 256], - 120796: [[52], 256], - 120797: [[53], 256], - 120798: [[54], 256], - 120799: [[55], 256], - 120800: [[56], 256], - 120801: [[57], 256], - 120802: [[48], 256], - 120803: [[49], 256], - 120804: [[50], 256], - 120805: [[51], 256], - 120806: [[52], 256], - 120807: [[53], 256], - 120808: [[54], 256], - 120809: [[55], 256], - 120810: [[56], 256], - 120811: [[57], 256], - 120812: [[48], 256], - 120813: [[49], 256], - 120814: [[50], 256], - 120815: [[51], 256], - 120816: [[52], 256], - 120817: [[53], 256], - 120818: [[54], 256], - 120819: [[55], 256], - 120820: [[56], 256], - 120821: [[57], 256], - 120822: [[48], 256], - 120823: [[49], 256], - 120824: [[50], 256], - 120825: [[51], 256], - 120826: [[52], 256], - 120827: [[53], 256], - 120828: [[54], 256], - 120829: [[55], 256], - 120830: [[56], 256], - 120831: [[57], 256] - }, - 60928: { - 126464: [[1575], 256], - 126465: [[1576], 256], - 126466: [[1580], 256], - 126467: [[1583], 256], - 126469: [[1608], 256], - 126470: [[1586], 256], - 126471: [[1581], 256], - 126472: [[1591], 256], - 126473: [[1610], 256], - 126474: [[1603], 256], - 126475: [[1604], 256], - 126476: [[1605], 256], - 126477: [[1606], 256], - 126478: [[1587], 256], - 126479: [[1593], 256], - 126480: [[1601], 256], - 126481: [[1589], 256], - 126482: [[1602], 256], - 126483: [[1585], 256], - 126484: [[1588], 256], - 126485: [[1578], 256], - 126486: [[1579], 256], - 126487: [[1582], 256], - 126488: [[1584], 256], - 126489: [[1590], 256], - 126490: [[1592], 256], - 126491: [[1594], 256], - 126492: [[1646], 256], - 126493: [[1722], 256], - 126494: [[1697], 256], - 126495: [[1647], 256], - 126497: [[1576], 256], - 126498: [[1580], 256], - 126500: [[1607], 256], - 126503: [[1581], 256], - 126505: [[1610], 256], - 126506: [[1603], 256], - 126507: [[1604], 256], - 126508: [[1605], 256], - 126509: [[1606], 256], - 126510: [[1587], 256], - 126511: [[1593], 256], - 126512: [[1601], 256], - 126513: [[1589], 256], - 126514: [[1602], 256], - 126516: [[1588], 256], - 126517: [[1578], 256], - 126518: [[1579], 256], - 126519: [[1582], 256], - 126521: [[1590], 256], - 126523: [[1594], 256], - 126530: [[1580], 256], - 126535: [[1581], 256], - 126537: [[1610], 256], - 126539: [[1604], 256], - 126541: [[1606], 256], - 126542: [[1587], 256], - 126543: [[1593], 256], - 126545: [[1589], 256], - 126546: [[1602], 256], - 126548: [[1588], 256], - 126551: [[1582], 256], - 126553: [[1590], 256], - 126555: [[1594], 256], - 126557: [[1722], 256], - 126559: [[1647], 256], - 126561: [[1576], 256], - 126562: [[1580], 256], - 126564: [[1607], 256], - 126567: [[1581], 256], - 126568: [[1591], 256], - 126569: [[1610], 256], - 126570: [[1603], 256], - 126572: [[1605], 256], - 126573: [[1606], 256], - 126574: [[1587], 256], - 126575: [[1593], 256], - 126576: [[1601], 256], - 126577: [[1589], 256], - 126578: [[1602], 256], - 126580: [[1588], 256], - 126581: [[1578], 256], - 126582: [[1579], 256], - 126583: [[1582], 256], - 126585: [[1590], 256], - 126586: [[1592], 256], - 126587: [[1594], 256], - 126588: [[1646], 256], - 126590: [[1697], 256], - 126592: [[1575], 256], - 126593: [[1576], 256], - 126594: [[1580], 256], - 126595: [[1583], 256], - 126596: [[1607], 256], - 126597: [[1608], 256], - 126598: [[1586], 256], - 126599: [[1581], 256], - 126600: [[1591], 256], - 126601: [[1610], 256], - 126603: [[1604], 256], - 126604: [[1605], 256], - 126605: [[1606], 256], - 126606: [[1587], 256], - 126607: [[1593], 256], - 126608: [[1601], 256], - 126609: [[1589], 256], - 126610: [[1602], 256], - 126611: [[1585], 256], - 126612: [[1588], 256], - 126613: [[1578], 256], - 126614: [[1579], 256], - 126615: [[1582], 256], - 126616: [[1584], 256], - 126617: [[1590], 256], - 126618: [[1592], 256], - 126619: [[1594], 256], - 126625: [[1576], 256], - 126626: [[1580], 256], - 126627: [[1583], 256], - 126629: [[1608], 256], - 126630: [[1586], 256], - 126631: [[1581], 256], - 126632: [[1591], 256], - 126633: [[1610], 256], - 126635: [[1604], 256], - 126636: [[1605], 256], - 126637: [[1606], 256], - 126638: [[1587], 256], - 126639: [[1593], 256], - 126640: [[1601], 256], - 126641: [[1589], 256], - 126642: [[1602], 256], - 126643: [[1585], 256], - 126644: [[1588], 256], - 126645: [[1578], 256], - 126646: [[1579], 256], - 126647: [[1582], 256], - 126648: [[1584], 256], - 126649: [[1590], 256], - 126650: [[1592], 256], - 126651: [[1594], 256] - }, - 61696: { - 127232: [[48, 46], 256], - 127233: [[48, 44], 256], - 127234: [[49, 44], 256], - 127235: [[50, 44], 256], - 127236: [[51, 44], 256], - 127237: [[52, 44], 256], - 127238: [[53, 44], 256], - 127239: [[54, 44], 256], - 127240: [[55, 44], 256], - 127241: [[56, 44], 256], - 127242: [[57, 44], 256], - 127248: [[40, 65, 41], 256], - 127249: [[40, 66, 41], 256], - 127250: [[40, 67, 41], 256], - 127251: [[40, 68, 41], 256], - 127252: [[40, 69, 41], 256], - 127253: [[40, 70, 41], 256], - 127254: [[40, 71, 41], 256], - 127255: [[40, 72, 41], 256], - 127256: [[40, 73, 41], 256], - 127257: [[40, 74, 41], 256], - 127258: [[40, 75, 41], 256], - 127259: [[40, 76, 41], 256], - 127260: [[40, 77, 41], 256], - 127261: [[40, 78, 41], 256], - 127262: [[40, 79, 41], 256], - 127263: [[40, 80, 41], 256], - 127264: [[40, 81, 41], 256], - 127265: [[40, 82, 41], 256], - 127266: [[40, 83, 41], 256], - 127267: [[40, 84, 41], 256], - 127268: [[40, 85, 41], 256], - 127269: [[40, 86, 41], 256], - 127270: [[40, 87, 41], 256], - 127271: [[40, 88, 41], 256], - 127272: [[40, 89, 41], 256], - 127273: [[40, 90, 41], 256], - 127274: [[12308, 83, 12309], 256], - 127275: [[67], 256], - 127276: [[82], 256], - 127277: [[67, 68], 256], - 127278: [[87, 90], 256], - 127280: [[65], 256], - 127281: [[66], 256], - 127282: [[67], 256], - 127283: [[68], 256], - 127284: [[69], 256], - 127285: [[70], 256], - 127286: [[71], 256], - 127287: [[72], 256], - 127288: [[73], 256], - 127289: [[74], 256], - 127290: [[75], 256], - 127291: [[76], 256], - 127292: [[77], 256], - 127293: [[78], 256], - 127294: [[79], 256], - 127295: [[80], 256], - 127296: [[81], 256], - 127297: [[82], 256], - 127298: [[83], 256], - 127299: [[84], 256], - 127300: [[85], 256], - 127301: [[86], 256], - 127302: [[87], 256], - 127303: [[88], 256], - 127304: [[89], 256], - 127305: [[90], 256], - 127306: [[72, 86], 256], - 127307: [[77, 86], 256], - 127308: [[83, 68], 256], - 127309: [[83, 83], 256], - 127310: [[80, 80, 86], 256], - 127311: [[87, 67], 256], - 127338: [[77, 67], 256], - 127339: [[77, 68], 256], - 127376: [[68, 74], 256] - }, - 61952: { - 127488: [[12411, 12363], 256], - 127489: [[12467, 12467], 256], - 127490: [[12469], 256], - 127504: [[25163], 256], - 127505: [[23383], 256], - 127506: [[21452], 256], - 127507: [[12487], 256], - 127508: [[20108], 256], - 127509: [[22810], 256], - 127510: [[35299], 256], - 127511: [[22825], 256], - 127512: [[20132], 256], - 127513: [[26144], 256], - 127514: [[28961], 256], - 127515: [[26009], 256], - 127516: [[21069], 256], - 127517: [[24460], 256], - 127518: [[20877], 256], - 127519: [[26032], 256], - 127520: [[21021], 256], - 127521: [[32066], 256], - 127522: [[29983], 256], - 127523: [[36009], 256], - 127524: [[22768], 256], - 127525: [[21561], 256], - 127526: [[28436], 256], - 127527: [[25237], 256], - 127528: [[25429], 256], - 127529: [[19968], 256], - 127530: [[19977], 256], - 127531: [[36938], 256], - 127532: [[24038], 256], - 127533: [[20013], 256], - 127534: [[21491], 256], - 127535: [[25351], 256], - 127536: [[36208], 256], - 127537: [[25171], 256], - 127538: [[31105], 256], - 127539: [[31354], 256], - 127540: [[21512], 256], - 127541: [[28288], 256], - 127542: [[26377], 256], - 127543: [[26376], 256], - 127544: [[30003], 256], - 127545: [[21106], 256], - 127546: [[21942], 256], - 127552: [[12308, 26412, 12309], 256], - 127553: [[12308, 19977, 12309], 256], - 127554: [[12308, 20108, 12309], 256], - 127555: [[12308, 23433, 12309], 256], - 127556: [[12308, 28857, 12309], 256], - 127557: [[12308, 25171, 12309], 256], - 127558: [[12308, 30423, 12309], 256], - 127559: [[12308, 21213, 12309], 256], - 127560: [[12308, 25943, 12309], 256], - 127568: [[24471], 256], - 127569: [[21487], 256] - }, - 63488: { - 194560: [[20029]], - 194561: [[20024]], - 194562: [[20033]], - 194563: [[131362]], - 194564: [[20320]], - 194565: [[20398]], - 194566: [[20411]], - 194567: [[20482]], - 194568: [[20602]], - 194569: [[20633]], - 194570: [[20711]], - 194571: [[20687]], - 194572: [[13470]], - 194573: [[132666]], - 194574: [[20813]], - 194575: [[20820]], - 194576: [[20836]], - 194577: [[20855]], - 194578: [[132380]], - 194579: [[13497]], - 194580: [[20839]], - 194581: [[20877]], - 194582: [[132427]], - 194583: [[20887]], - 194584: [[20900]], - 194585: [[20172]], - 194586: [[20908]], - 194587: [[20917]], - 194588: [[168415]], - 194589: [[20981]], - 194590: [[20995]], - 194591: [[13535]], - 194592: [[21051]], - 194593: [[21062]], - 194594: [[21106]], - 194595: [[21111]], - 194596: [[13589]], - 194597: [[21191]], - 194598: [[21193]], - 194599: [[21220]], - 194600: [[21242]], - 194601: [[21253]], - 194602: [[21254]], - 194603: [[21271]], - 194604: [[21321]], - 194605: [[21329]], - 194606: [[21338]], - 194607: [[21363]], - 194608: [[21373]], - 194609: [[21375]], - 194610: [[21375]], - 194611: [[21375]], - 194612: [[133676]], - 194613: [[28784]], - 194614: [[21450]], - 194615: [[21471]], - 194616: [[133987]], - 194617: [[21483]], - 194618: [[21489]], - 194619: [[21510]], - 194620: [[21662]], - 194621: [[21560]], - 194622: [[21576]], - 194623: [[21608]], - 194624: [[21666]], - 194625: [[21750]], - 194626: [[21776]], - 194627: [[21843]], - 194628: [[21859]], - 194629: [[21892]], - 194630: [[21892]], - 194631: [[21913]], - 194632: [[21931]], - 194633: [[21939]], - 194634: [[21954]], - 194635: [[22294]], - 194636: [[22022]], - 194637: [[22295]], - 194638: [[22097]], - 194639: [[22132]], - 194640: [[20999]], - 194641: [[22766]], - 194642: [[22478]], - 194643: [[22516]], - 194644: [[22541]], - 194645: [[22411]], - 194646: [[22578]], - 194647: [[22577]], - 194648: [[22700]], - 194649: [[136420]], - 194650: [[22770]], - 194651: [[22775]], - 194652: [[22790]], - 194653: [[22810]], - 194654: [[22818]], - 194655: [[22882]], - 194656: [[136872]], - 194657: [[136938]], - 194658: [[23020]], - 194659: [[23067]], - 194660: [[23079]], - 194661: [[23000]], - 194662: [[23142]], - 194663: [[14062]], - 194664: [[14076]], - 194665: [[23304]], - 194666: [[23358]], - 194667: [[23358]], - 194668: [[137672]], - 194669: [[23491]], - 194670: [[23512]], - 194671: [[23527]], - 194672: [[23539]], - 194673: [[138008]], - 194674: [[23551]], - 194675: [[23558]], - 194676: [[24403]], - 194677: [[23586]], - 194678: [[14209]], - 194679: [[23648]], - 194680: [[23662]], - 194681: [[23744]], - 194682: [[23693]], - 194683: [[138724]], - 194684: [[23875]], - 194685: [[138726]], - 194686: [[23918]], - 194687: [[23915]], - 194688: [[23932]], - 194689: [[24033]], - 194690: [[24034]], - 194691: [[14383]], - 194692: [[24061]], - 194693: [[24104]], - 194694: [[24125]], - 194695: [[24169]], - 194696: [[14434]], - 194697: [[139651]], - 194698: [[14460]], - 194699: [[24240]], - 194700: [[24243]], - 194701: [[24246]], - 194702: [[24266]], - 194703: [[172946]], - 194704: [[24318]], - 194705: [[140081]], - 194706: [[140081]], - 194707: [[33281]], - 194708: [[24354]], - 194709: [[24354]], - 194710: [[14535]], - 194711: [[144056]], - 194712: [[156122]], - 194713: [[24418]], - 194714: [[24427]], - 194715: [[14563]], - 194716: [[24474]], - 194717: [[24525]], - 194718: [[24535]], - 194719: [[24569]], - 194720: [[24705]], - 194721: [[14650]], - 194722: [[14620]], - 194723: [[24724]], - 194724: [[141012]], - 194725: [[24775]], - 194726: [[24904]], - 194727: [[24908]], - 194728: [[24910]], - 194729: [[24908]], - 194730: [[24954]], - 194731: [[24974]], - 194732: [[25010]], - 194733: [[24996]], - 194734: [[25007]], - 194735: [[25054]], - 194736: [[25074]], - 194737: [[25078]], - 194738: [[25104]], - 194739: [[25115]], - 194740: [[25181]], - 194741: [[25265]], - 194742: [[25300]], - 194743: [[25424]], - 194744: [[142092]], - 194745: [[25405]], - 194746: [[25340]], - 194747: [[25448]], - 194748: [[25475]], - 194749: [[25572]], - 194750: [[142321]], - 194751: [[25634]], - 194752: [[25541]], - 194753: [[25513]], - 194754: [[14894]], - 194755: [[25705]], - 194756: [[25726]], - 194757: [[25757]], - 194758: [[25719]], - 194759: [[14956]], - 194760: [[25935]], - 194761: [[25964]], - 194762: [[143370]], - 194763: [[26083]], - 194764: [[26360]], - 194765: [[26185]], - 194766: [[15129]], - 194767: [[26257]], - 194768: [[15112]], - 194769: [[15076]], - 194770: [[20882]], - 194771: [[20885]], - 194772: [[26368]], - 194773: [[26268]], - 194774: [[32941]], - 194775: [[17369]], - 194776: [[26391]], - 194777: [[26395]], - 194778: [[26401]], - 194779: [[26462]], - 194780: [[26451]], - 194781: [[144323]], - 194782: [[15177]], - 194783: [[26618]], - 194784: [[26501]], - 194785: [[26706]], - 194786: [[26757]], - 194787: [[144493]], - 194788: [[26766]], - 194789: [[26655]], - 194790: [[26900]], - 194791: [[15261]], - 194792: [[26946]], - 194793: [[27043]], - 194794: [[27114]], - 194795: [[27304]], - 194796: [[145059]], - 194797: [[27355]], - 194798: [[15384]], - 194799: [[27425]], - 194800: [[145575]], - 194801: [[27476]], - 194802: [[15438]], - 194803: [[27506]], - 194804: [[27551]], - 194805: [[27578]], - 194806: [[27579]], - 194807: [[146061]], - 194808: [[138507]], - 194809: [[146170]], - 194810: [[27726]], - 194811: [[146620]], - 194812: [[27839]], - 194813: [[27853]], - 194814: [[27751]], - 194815: [[27926]] - }, - 63744: { - 63744: [[35912]], - 63745: [[26356]], - 63746: [[36554]], - 63747: [[36040]], - 63748: [[28369]], - 63749: [[20018]], - 63750: [[21477]], - 63751: [[40860]], - 63752: [[40860]], - 63753: [[22865]], - 63754: [[37329]], - 63755: [[21895]], - 63756: [[22856]], - 63757: [[25078]], - 63758: [[30313]], - 63759: [[32645]], - 63760: [[34367]], - 63761: [[34746]], - 63762: [[35064]], - 63763: [[37007]], - 63764: [[27138]], - 63765: [[27931]], - 63766: [[28889]], - 63767: [[29662]], - 63768: [[33853]], - 63769: [[37226]], - 63770: [[39409]], - 63771: [[20098]], - 63772: [[21365]], - 63773: [[27396]], - 63774: [[29211]], - 63775: [[34349]], - 63776: [[40478]], - 63777: [[23888]], - 63778: [[28651]], - 63779: [[34253]], - 63780: [[35172]], - 63781: [[25289]], - 63782: [[33240]], - 63783: [[34847]], - 63784: [[24266]], - 63785: [[26391]], - 63786: [[28010]], - 63787: [[29436]], - 63788: [[37070]], - 63789: [[20358]], - 63790: [[20919]], - 63791: [[21214]], - 63792: [[25796]], - 63793: [[27347]], - 63794: [[29200]], - 63795: [[30439]], - 63796: [[32769]], - 63797: [[34310]], - 63798: [[34396]], - 63799: [[36335]], - 63800: [[38706]], - 63801: [[39791]], - 63802: [[40442]], - 63803: [[30860]], - 63804: [[31103]], - 63805: [[32160]], - 63806: [[33737]], - 63807: [[37636]], - 63808: [[40575]], - 63809: [[35542]], - 63810: [[22751]], - 63811: [[24324]], - 63812: [[31840]], - 63813: [[32894]], - 63814: [[29282]], - 63815: [[30922]], - 63816: [[36034]], - 63817: [[38647]], - 63818: [[22744]], - 63819: [[23650]], - 63820: [[27155]], - 63821: [[28122]], - 63822: [[28431]], - 63823: [[32047]], - 63824: [[32311]], - 63825: [[38475]], - 63826: [[21202]], - 63827: [[32907]], - 63828: [[20956]], - 63829: [[20940]], - 63830: [[31260]], - 63831: [[32190]], - 63832: [[33777]], - 63833: [[38517]], - 63834: [[35712]], - 63835: [[25295]], - 63836: [[27138]], - 63837: [[35582]], - 63838: [[20025]], - 63839: [[23527]], - 63840: [[24594]], - 63841: [[29575]], - 63842: [[30064]], - 63843: [[21271]], - 63844: [[30971]], - 63845: [[20415]], - 63846: [[24489]], - 63847: [[19981]], - 63848: [[27852]], - 63849: [[25976]], - 63850: [[32034]], - 63851: [[21443]], - 63852: [[22622]], - 63853: [[30465]], - 63854: [[33865]], - 63855: [[35498]], - 63856: [[27578]], - 63857: [[36784]], - 63858: [[27784]], - 63859: [[25342]], - 63860: [[33509]], - 63861: [[25504]], - 63862: [[30053]], - 63863: [[20142]], - 63864: [[20841]], - 63865: [[20937]], - 63866: [[26753]], - 63867: [[31975]], - 63868: [[33391]], - 63869: [[35538]], - 63870: [[37327]], - 63871: [[21237]], - 63872: [[21570]], - 63873: [[22899]], - 63874: [[24300]], - 63875: [[26053]], - 63876: [[28670]], - 63877: [[31018]], - 63878: [[38317]], - 63879: [[39530]], - 63880: [[40599]], - 63881: [[40654]], - 63882: [[21147]], - 63883: [[26310]], - 63884: [[27511]], - 63885: [[36706]], - 63886: [[24180]], - 63887: [[24976]], - 63888: [[25088]], - 63889: [[25754]], - 63890: [[28451]], - 63891: [[29001]], - 63892: [[29833]], - 63893: [[31178]], - 63894: [[32244]], - 63895: [[32879]], - 63896: [[36646]], - 63897: [[34030]], - 63898: [[36899]], - 63899: [[37706]], - 63900: [[21015]], - 63901: [[21155]], - 63902: [[21693]], - 63903: [[28872]], - 63904: [[35010]], - 63905: [[35498]], - 63906: [[24265]], - 63907: [[24565]], - 63908: [[25467]], - 63909: [[27566]], - 63910: [[31806]], - 63911: [[29557]], - 63912: [[20196]], - 63913: [[22265]], - 63914: [[23527]], - 63915: [[23994]], - 63916: [[24604]], - 63917: [[29618]], - 63918: [[29801]], - 63919: [[32666]], - 63920: [[32838]], - 63921: [[37428]], - 63922: [[38646]], - 63923: [[38728]], - 63924: [[38936]], - 63925: [[20363]], - 63926: [[31150]], - 63927: [[37300]], - 63928: [[38584]], - 63929: [[24801]], - 63930: [[20102]], - 63931: [[20698]], - 63932: [[23534]], - 63933: [[23615]], - 63934: [[26009]], - 63935: [[27138]], - 63936: [[29134]], - 63937: [[30274]], - 63938: [[34044]], - 63939: [[36988]], - 63940: [[40845]], - 63941: [[26248]], - 63942: [[38446]], - 63943: [[21129]], - 63944: [[26491]], - 63945: [[26611]], - 63946: [[27969]], - 63947: [[28316]], - 63948: [[29705]], - 63949: [[30041]], - 63950: [[30827]], - 63951: [[32016]], - 63952: [[39006]], - 63953: [[20845]], - 63954: [[25134]], - 63955: [[38520]], - 63956: [[20523]], - 63957: [[23833]], - 63958: [[28138]], - 63959: [[36650]], - 63960: [[24459]], - 63961: [[24900]], - 63962: [[26647]], - 63963: [[29575]], - 63964: [[38534]], - 63965: [[21033]], - 63966: [[21519]], - 63967: [[23653]], - 63968: [[26131]], - 63969: [[26446]], - 63970: [[26792]], - 63971: [[27877]], - 63972: [[29702]], - 63973: [[30178]], - 63974: [[32633]], - 63975: [[35023]], - 63976: [[35041]], - 63977: [[37324]], - 63978: [[38626]], - 63979: [[21311]], - 63980: [[28346]], - 63981: [[21533]], - 63982: [[29136]], - 63983: [[29848]], - 63984: [[34298]], - 63985: [[38563]], - 63986: [[40023]], - 63987: [[40607]], - 63988: [[26519]], - 63989: [[28107]], - 63990: [[33256]], - 63991: [[31435]], - 63992: [[31520]], - 63993: [[31890]], - 63994: [[29376]], - 63995: [[28825]], - 63996: [[35672]], - 63997: [[20160]], - 63998: [[33590]], - 63999: [[21050]], - 194816: [[27966]], - 194817: [[28023]], - 194818: [[27969]], - 194819: [[28009]], - 194820: [[28024]], - 194821: [[28037]], - 194822: [[146718]], - 194823: [[27956]], - 194824: [[28207]], - 194825: [[28270]], - 194826: [[15667]], - 194827: [[28363]], - 194828: [[28359]], - 194829: [[147153]], - 194830: [[28153]], - 194831: [[28526]], - 194832: [[147294]], - 194833: [[147342]], - 194834: [[28614]], - 194835: [[28729]], - 194836: [[28702]], - 194837: [[28699]], - 194838: [[15766]], - 194839: [[28746]], - 194840: [[28797]], - 194841: [[28791]], - 194842: [[28845]], - 194843: [[132389]], - 194844: [[28997]], - 194845: [[148067]], - 194846: [[29084]], - 194847: [[148395]], - 194848: [[29224]], - 194849: [[29237]], - 194850: [[29264]], - 194851: [[149000]], - 194852: [[29312]], - 194853: [[29333]], - 194854: [[149301]], - 194855: [[149524]], - 194856: [[29562]], - 194857: [[29579]], - 194858: [[16044]], - 194859: [[29605]], - 194860: [[16056]], - 194861: [[16056]], - 194862: [[29767]], - 194863: [[29788]], - 194864: [[29809]], - 194865: [[29829]], - 194866: [[29898]], - 194867: [[16155]], - 194868: [[29988]], - 194869: [[150582]], - 194870: [[30014]], - 194871: [[150674]], - 194872: [[30064]], - 194873: [[139679]], - 194874: [[30224]], - 194875: [[151457]], - 194876: [[151480]], - 194877: [[151620]], - 194878: [[16380]], - 194879: [[16392]], - 194880: [[30452]], - 194881: [[151795]], - 194882: [[151794]], - 194883: [[151833]], - 194884: [[151859]], - 194885: [[30494]], - 194886: [[30495]], - 194887: [[30495]], - 194888: [[30538]], - 194889: [[16441]], - 194890: [[30603]], - 194891: [[16454]], - 194892: [[16534]], - 194893: [[152605]], - 194894: [[30798]], - 194895: [[30860]], - 194896: [[30924]], - 194897: [[16611]], - 194898: [[153126]], - 194899: [[31062]], - 194900: [[153242]], - 194901: [[153285]], - 194902: [[31119]], - 194903: [[31211]], - 194904: [[16687]], - 194905: [[31296]], - 194906: [[31306]], - 194907: [[31311]], - 194908: [[153980]], - 194909: [[154279]], - 194910: [[154279]], - 194911: [[31470]], - 194912: [[16898]], - 194913: [[154539]], - 194914: [[31686]], - 194915: [[31689]], - 194916: [[16935]], - 194917: [[154752]], - 194918: [[31954]], - 194919: [[17056]], - 194920: [[31976]], - 194921: [[31971]], - 194922: [[32000]], - 194923: [[155526]], - 194924: [[32099]], - 194925: [[17153]], - 194926: [[32199]], - 194927: [[32258]], - 194928: [[32325]], - 194929: [[17204]], - 194930: [[156200]], - 194931: [[156231]], - 194932: [[17241]], - 194933: [[156377]], - 194934: [[32634]], - 194935: [[156478]], - 194936: [[32661]], - 194937: [[32762]], - 194938: [[32773]], - 194939: [[156890]], - 194940: [[156963]], - 194941: [[32864]], - 194942: [[157096]], - 194943: [[32880]], - 194944: [[144223]], - 194945: [[17365]], - 194946: [[32946]], - 194947: [[33027]], - 194948: [[17419]], - 194949: [[33086]], - 194950: [[23221]], - 194951: [[157607]], - 194952: [[157621]], - 194953: [[144275]], - 194954: [[144284]], - 194955: [[33281]], - 194956: [[33284]], - 194957: [[36766]], - 194958: [[17515]], - 194959: [[33425]], - 194960: [[33419]], - 194961: [[33437]], - 194962: [[21171]], - 194963: [[33457]], - 194964: [[33459]], - 194965: [[33469]], - 194966: [[33510]], - 194967: [[158524]], - 194968: [[33509]], - 194969: [[33565]], - 194970: [[33635]], - 194971: [[33709]], - 194972: [[33571]], - 194973: [[33725]], - 194974: [[33767]], - 194975: [[33879]], - 194976: [[33619]], - 194977: [[33738]], - 194978: [[33740]], - 194979: [[33756]], - 194980: [[158774]], - 194981: [[159083]], - 194982: [[158933]], - 194983: [[17707]], - 194984: [[34033]], - 194985: [[34035]], - 194986: [[34070]], - 194987: [[160714]], - 194988: [[34148]], - 194989: [[159532]], - 194990: [[17757]], - 194991: [[17761]], - 194992: [[159665]], - 194993: [[159954]], - 194994: [[17771]], - 194995: [[34384]], - 194996: [[34396]], - 194997: [[34407]], - 194998: [[34409]], - 194999: [[34473]], - 195000: [[34440]], - 195001: [[34574]], - 195002: [[34530]], - 195003: [[34681]], - 195004: [[34600]], - 195005: [[34667]], - 195006: [[34694]], - 195007: [[17879]], - 195008: [[34785]], - 195009: [[34817]], - 195010: [[17913]], - 195011: [[34912]], - 195012: [[34915]], - 195013: [[161383]], - 195014: [[35031]], - 195015: [[35038]], - 195016: [[17973]], - 195017: [[35066]], - 195018: [[13499]], - 195019: [[161966]], - 195020: [[162150]], - 195021: [[18110]], - 195022: [[18119]], - 195023: [[35488]], - 195024: [[35565]], - 195025: [[35722]], - 195026: [[35925]], - 195027: [[162984]], - 195028: [[36011]], - 195029: [[36033]], - 195030: [[36123]], - 195031: [[36215]], - 195032: [[163631]], - 195033: [[133124]], - 195034: [[36299]], - 195035: [[36284]], - 195036: [[36336]], - 195037: [[133342]], - 195038: [[36564]], - 195039: [[36664]], - 195040: [[165330]], - 195041: [[165357]], - 195042: [[37012]], - 195043: [[37105]], - 195044: [[37137]], - 195045: [[165678]], - 195046: [[37147]], - 195047: [[37432]], - 195048: [[37591]], - 195049: [[37592]], - 195050: [[37500]], - 195051: [[37881]], - 195052: [[37909]], - 195053: [[166906]], - 195054: [[38283]], - 195055: [[18837]], - 195056: [[38327]], - 195057: [[167287]], - 195058: [[18918]], - 195059: [[38595]], - 195060: [[23986]], - 195061: [[38691]], - 195062: [[168261]], - 195063: [[168474]], - 195064: [[19054]], - 195065: [[19062]], - 195066: [[38880]], - 195067: [[168970]], - 195068: [[19122]], - 195069: [[169110]], - 195070: [[38923]], - 195071: [[38923]] - }, - 64000: { - 64000: [[20999]], - 64001: [[24230]], - 64002: [[25299]], - 64003: [[31958]], - 64004: [[23429]], - 64005: [[27934]], - 64006: [[26292]], - 64007: [[36667]], - 64008: [[34892]], - 64009: [[38477]], - 64010: [[35211]], - 64011: [[24275]], - 64012: [[20800]], - 64013: [[21952]], - 64016: [[22618]], - 64018: [[26228]], - 64021: [[20958]], - 64022: [[29482]], - 64023: [[30410]], - 64024: [[31036]], - 64025: [[31070]], - 64026: [[31077]], - 64027: [[31119]], - 64028: [[38742]], - 64029: [[31934]], - 64030: [[32701]], - 64032: [[34322]], - 64034: [[35576]], - 64037: [[36920]], - 64038: [[37117]], - 64042: [[39151]], - 64043: [[39164]], - 64044: [[39208]], - 64045: [[40372]], - 64046: [[37086]], - 64047: [[38583]], - 64048: [[20398]], - 64049: [[20711]], - 64050: [[20813]], - 64051: [[21193]], - 64052: [[21220]], - 64053: [[21329]], - 64054: [[21917]], - 64055: [[22022]], - 64056: [[22120]], - 64057: [[22592]], - 64058: [[22696]], - 64059: [[23652]], - 64060: [[23662]], - 64061: [[24724]], - 64062: [[24936]], - 64063: [[24974]], - 64064: [[25074]], - 64065: [[25935]], - 64066: [[26082]], - 64067: [[26257]], - 64068: [[26757]], - 64069: [[28023]], - 64070: [[28186]], - 64071: [[28450]], - 64072: [[29038]], - 64073: [[29227]], - 64074: [[29730]], - 64075: [[30865]], - 64076: [[31038]], - 64077: [[31049]], - 64078: [[31048]], - 64079: [[31056]], - 64080: [[31062]], - 64081: [[31069]], - 64082: [[31117]], - 64083: [[31118]], - 64084: [[31296]], - 64085: [[31361]], - 64086: [[31680]], - 64087: [[32244]], - 64088: [[32265]], - 64089: [[32321]], - 64090: [[32626]], - 64091: [[32773]], - 64092: [[33261]], - 64093: [[33401]], - 64094: [[33401]], - 64095: [[33879]], - 64096: [[35088]], - 64097: [[35222]], - 64098: [[35585]], - 64099: [[35641]], - 64100: [[36051]], - 64101: [[36104]], - 64102: [[36790]], - 64103: [[36920]], - 64104: [[38627]], - 64105: [[38911]], - 64106: [[38971]], - 64107: [[24693]], - 64108: [[148206]], - 64109: [[33304]], - 64112: [[20006]], - 64113: [[20917]], - 64114: [[20840]], - 64115: [[20352]], - 64116: [[20805]], - 64117: [[20864]], - 64118: [[21191]], - 64119: [[21242]], - 64120: [[21917]], - 64121: [[21845]], - 64122: [[21913]], - 64123: [[21986]], - 64124: [[22618]], - 64125: [[22707]], - 64126: [[22852]], - 64127: [[22868]], - 64128: [[23138]], - 64129: [[23336]], - 64130: [[24274]], - 64131: [[24281]], - 64132: [[24425]], - 64133: [[24493]], - 64134: [[24792]], - 64135: [[24910]], - 64136: [[24840]], - 64137: [[24974]], - 64138: [[24928]], - 64139: [[25074]], - 64140: [[25140]], - 64141: [[25540]], - 64142: [[25628]], - 64143: [[25682]], - 64144: [[25942]], - 64145: [[26228]], - 64146: [[26391]], - 64147: [[26395]], - 64148: [[26454]], - 64149: [[27513]], - 64150: [[27578]], - 64151: [[27969]], - 64152: [[28379]], - 64153: [[28363]], - 64154: [[28450]], - 64155: [[28702]], - 64156: [[29038]], - 64157: [[30631]], - 64158: [[29237]], - 64159: [[29359]], - 64160: [[29482]], - 64161: [[29809]], - 64162: [[29958]], - 64163: [[30011]], - 64164: [[30237]], - 64165: [[30239]], - 64166: [[30410]], - 64167: [[30427]], - 64168: [[30452]], - 64169: [[30538]], - 64170: [[30528]], - 64171: [[30924]], - 64172: [[31409]], - 64173: [[31680]], - 64174: [[31867]], - 64175: [[32091]], - 64176: [[32244]], - 64177: [[32574]], - 64178: [[32773]], - 64179: [[33618]], - 64180: [[33775]], - 64181: [[34681]], - 64182: [[35137]], - 64183: [[35206]], - 64184: [[35222]], - 64185: [[35519]], - 64186: [[35576]], - 64187: [[35531]], - 64188: [[35585]], - 64189: [[35582]], - 64190: [[35565]], - 64191: [[35641]], - 64192: [[35722]], - 64193: [[36104]], - 64194: [[36664]], - 64195: [[36978]], - 64196: [[37273]], - 64197: [[37494]], - 64198: [[38524]], - 64199: [[38627]], - 64200: [[38742]], - 64201: [[38875]], - 64202: [[38911]], - 64203: [[38923]], - 64204: [[38971]], - 64205: [[39698]], - 64206: [[40860]], - 64207: [[141386]], - 64208: [[141380]], - 64209: [[144341]], - 64210: [[15261]], - 64211: [[16408]], - 64212: [[16441]], - 64213: [[152137]], - 64214: [[154832]], - 64215: [[163539]], - 64216: [[40771]], - 64217: [[40846]], - 195072: [[38953]], - 195073: [[169398]], - 195074: [[39138]], - 195075: [[19251]], - 195076: [[39209]], - 195077: [[39335]], - 195078: [[39362]], - 195079: [[39422]], - 195080: [[19406]], - 195081: [[170800]], - 195082: [[39698]], - 195083: [[40000]], - 195084: [[40189]], - 195085: [[19662]], - 195086: [[19693]], - 195087: [[40295]], - 195088: [[172238]], - 195089: [[19704]], - 195090: [[172293]], - 195091: [[172558]], - 195092: [[172689]], - 195093: [[40635]], - 195094: [[19798]], - 195095: [[40697]], - 195096: [[40702]], - 195097: [[40709]], - 195098: [[40719]], - 195099: [[40726]], - 195100: [[40763]], - 195101: [[173568]] - }, - 64256: { - 64256: [[102, 102], 256], - 64257: [[102, 105], 256], - 64258: [[102, 108], 256], - 64259: [[102, 102, 105], 256], - 64260: [[102, 102, 108], 256], - 64261: [[383, 116], 256], - 64262: [[115, 116], 256], - 64275: [[1396, 1398], 256], - 64276: [[1396, 1381], 256], - 64277: [[1396, 1387], 256], - 64278: [[1406, 1398], 256], - 64279: [[1396, 1389], 256], - 64285: [[1497, 1460], 512], - 64286: [, 26], - 64287: [[1522, 1463], 512], - 64288: [[1506], 256], - 64289: [[1488], 256], - 64290: [[1491], 256], - 64291: [[1492], 256], - 64292: [[1499], 256], - 64293: [[1500], 256], - 64294: [[1501], 256], - 64295: [[1512], 256], - 64296: [[1514], 256], - 64297: [[43], 256], - 64298: [[1513, 1473], 512], - 64299: [[1513, 1474], 512], - 64300: [[64329, 1473], 512], - 64301: [[64329, 1474], 512], - 64302: [[1488, 1463], 512], - 64303: [[1488, 1464], 512], - 64304: [[1488, 1468], 512], - 64305: [[1489, 1468], 512], - 64306: [[1490, 1468], 512], - 64307: [[1491, 1468], 512], - 64308: [[1492, 1468], 512], - 64309: [[1493, 1468], 512], - 64310: [[1494, 1468], 512], - 64312: [[1496, 1468], 512], - 64313: [[1497, 1468], 512], - 64314: [[1498, 1468], 512], - 64315: [[1499, 1468], 512], - 64316: [[1500, 1468], 512], - 64318: [[1502, 1468], 512], - 64320: [[1504, 1468], 512], - 64321: [[1505, 1468], 512], - 64323: [[1507, 1468], 512], - 64324: [[1508, 1468], 512], - 64326: [[1510, 1468], 512], - 64327: [[1511, 1468], 512], - 64328: [[1512, 1468], 512], - 64329: [[1513, 1468], 512], - 64330: [[1514, 1468], 512], - 64331: [[1493, 1465], 512], - 64332: [[1489, 1471], 512], - 64333: [[1499, 1471], 512], - 64334: [[1508, 1471], 512], - 64335: [[1488, 1500], 256], - 64336: [[1649], 256], - 64337: [[1649], 256], - 64338: [[1659], 256], - 64339: [[1659], 256], - 64340: [[1659], 256], - 64341: [[1659], 256], - 64342: [[1662], 256], - 64343: [[1662], 256], - 64344: [[1662], 256], - 64345: [[1662], 256], - 64346: [[1664], 256], - 64347: [[1664], 256], - 64348: [[1664], 256], - 64349: [[1664], 256], - 64350: [[1658], 256], - 64351: [[1658], 256], - 64352: [[1658], 256], - 64353: [[1658], 256], - 64354: [[1663], 256], - 64355: [[1663], 256], - 64356: [[1663], 256], - 64357: [[1663], 256], - 64358: [[1657], 256], - 64359: [[1657], 256], - 64360: [[1657], 256], - 64361: [[1657], 256], - 64362: [[1700], 256], - 64363: [[1700], 256], - 64364: [[1700], 256], - 64365: [[1700], 256], - 64366: [[1702], 256], - 64367: [[1702], 256], - 64368: [[1702], 256], - 64369: [[1702], 256], - 64370: [[1668], 256], - 64371: [[1668], 256], - 64372: [[1668], 256], - 64373: [[1668], 256], - 64374: [[1667], 256], - 64375: [[1667], 256], - 64376: [[1667], 256], - 64377: [[1667], 256], - 64378: [[1670], 256], - 64379: [[1670], 256], - 64380: [[1670], 256], - 64381: [[1670], 256], - 64382: [[1671], 256], - 64383: [[1671], 256], - 64384: [[1671], 256], - 64385: [[1671], 256], - 64386: [[1677], 256], - 64387: [[1677], 256], - 64388: [[1676], 256], - 64389: [[1676], 256], - 64390: [[1678], 256], - 64391: [[1678], 256], - 64392: [[1672], 256], - 64393: [[1672], 256], - 64394: [[1688], 256], - 64395: [[1688], 256], - 64396: [[1681], 256], - 64397: [[1681], 256], - 64398: [[1705], 256], - 64399: [[1705], 256], - 64400: [[1705], 256], - 64401: [[1705], 256], - 64402: [[1711], 256], - 64403: [[1711], 256], - 64404: [[1711], 256], - 64405: [[1711], 256], - 64406: [[1715], 256], - 64407: [[1715], 256], - 64408: [[1715], 256], - 64409: [[1715], 256], - 64410: [[1713], 256], - 64411: [[1713], 256], - 64412: [[1713], 256], - 64413: [[1713], 256], - 64414: [[1722], 256], - 64415: [[1722], 256], - 64416: [[1723], 256], - 64417: [[1723], 256], - 64418: [[1723], 256], - 64419: [[1723], 256], - 64420: [[1728], 256], - 64421: [[1728], 256], - 64422: [[1729], 256], - 64423: [[1729], 256], - 64424: [[1729], 256], - 64425: [[1729], 256], - 64426: [[1726], 256], - 64427: [[1726], 256], - 64428: [[1726], 256], - 64429: [[1726], 256], - 64430: [[1746], 256], - 64431: [[1746], 256], - 64432: [[1747], 256], - 64433: [[1747], 256], - 64467: [[1709], 256], - 64468: [[1709], 256], - 64469: [[1709], 256], - 64470: [[1709], 256], - 64471: [[1735], 256], - 64472: [[1735], 256], - 64473: [[1734], 256], - 64474: [[1734], 256], - 64475: [[1736], 256], - 64476: [[1736], 256], - 64477: [[1655], 256], - 64478: [[1739], 256], - 64479: [[1739], 256], - 64480: [[1733], 256], - 64481: [[1733], 256], - 64482: [[1737], 256], - 64483: [[1737], 256], - 64484: [[1744], 256], - 64485: [[1744], 256], - 64486: [[1744], 256], - 64487: [[1744], 256], - 64488: [[1609], 256], - 64489: [[1609], 256], - 64490: [[1574, 1575], 256], - 64491: [[1574, 1575], 256], - 64492: [[1574, 1749], 256], - 64493: [[1574, 1749], 256], - 64494: [[1574, 1608], 256], - 64495: [[1574, 1608], 256], - 64496: [[1574, 1735], 256], - 64497: [[1574, 1735], 256], - 64498: [[1574, 1734], 256], - 64499: [[1574, 1734], 256], - 64500: [[1574, 1736], 256], - 64501: [[1574, 1736], 256], - 64502: [[1574, 1744], 256], - 64503: [[1574, 1744], 256], - 64504: [[1574, 1744], 256], - 64505: [[1574, 1609], 256], - 64506: [[1574, 1609], 256], - 64507: [[1574, 1609], 256], - 64508: [[1740], 256], - 64509: [[1740], 256], - 64510: [[1740], 256], - 64511: [[1740], 256] - }, - 64512: { - 64512: [[1574, 1580], 256], - 64513: [[1574, 1581], 256], - 64514: [[1574, 1605], 256], - 64515: [[1574, 1609], 256], - 64516: [[1574, 1610], 256], - 64517: [[1576, 1580], 256], - 64518: [[1576, 1581], 256], - 64519: [[1576, 1582], 256], - 64520: [[1576, 1605], 256], - 64521: [[1576, 1609], 256], - 64522: [[1576, 1610], 256], - 64523: [[1578, 1580], 256], - 64524: [[1578, 1581], 256], - 64525: [[1578, 1582], 256], - 64526: [[1578, 1605], 256], - 64527: [[1578, 1609], 256], - 64528: [[1578, 1610], 256], - 64529: [[1579, 1580], 256], - 64530: [[1579, 1605], 256], - 64531: [[1579, 1609], 256], - 64532: [[1579, 1610], 256], - 64533: [[1580, 1581], 256], - 64534: [[1580, 1605], 256], - 64535: [[1581, 1580], 256], - 64536: [[1581, 1605], 256], - 64537: [[1582, 1580], 256], - 64538: [[1582, 1581], 256], - 64539: [[1582, 1605], 256], - 64540: [[1587, 1580], 256], - 64541: [[1587, 1581], 256], - 64542: [[1587, 1582], 256], - 64543: [[1587, 1605], 256], - 64544: [[1589, 1581], 256], - 64545: [[1589, 1605], 256], - 64546: [[1590, 1580], 256], - 64547: [[1590, 1581], 256], - 64548: [[1590, 1582], 256], - 64549: [[1590, 1605], 256], - 64550: [[1591, 1581], 256], - 64551: [[1591, 1605], 256], - 64552: [[1592, 1605], 256], - 64553: [[1593, 1580], 256], - 64554: [[1593, 1605], 256], - 64555: [[1594, 1580], 256], - 64556: [[1594, 1605], 256], - 64557: [[1601, 1580], 256], - 64558: [[1601, 1581], 256], - 64559: [[1601, 1582], 256], - 64560: [[1601, 1605], 256], - 64561: [[1601, 1609], 256], - 64562: [[1601, 1610], 256], - 64563: [[1602, 1581], 256], - 64564: [[1602, 1605], 256], - 64565: [[1602, 1609], 256], - 64566: [[1602, 1610], 256], - 64567: [[1603, 1575], 256], - 64568: [[1603, 1580], 256], - 64569: [[1603, 1581], 256], - 64570: [[1603, 1582], 256], - 64571: [[1603, 1604], 256], - 64572: [[1603, 1605], 256], - 64573: [[1603, 1609], 256], - 64574: [[1603, 1610], 256], - 64575: [[1604, 1580], 256], - 64576: [[1604, 1581], 256], - 64577: [[1604, 1582], 256], - 64578: [[1604, 1605], 256], - 64579: [[1604, 1609], 256], - 64580: [[1604, 1610], 256], - 64581: [[1605, 1580], 256], - 64582: [[1605, 1581], 256], - 64583: [[1605, 1582], 256], - 64584: [[1605, 1605], 256], - 64585: [[1605, 1609], 256], - 64586: [[1605, 1610], 256], - 64587: [[1606, 1580], 256], - 64588: [[1606, 1581], 256], - 64589: [[1606, 1582], 256], - 64590: [[1606, 1605], 256], - 64591: [[1606, 1609], 256], - 64592: [[1606, 1610], 256], - 64593: [[1607, 1580], 256], - 64594: [[1607, 1605], 256], - 64595: [[1607, 1609], 256], - 64596: [[1607, 1610], 256], - 64597: [[1610, 1580], 256], - 64598: [[1610, 1581], 256], - 64599: [[1610, 1582], 256], - 64600: [[1610, 1605], 256], - 64601: [[1610, 1609], 256], - 64602: [[1610, 1610], 256], - 64603: [[1584, 1648], 256], - 64604: [[1585, 1648], 256], - 64605: [[1609, 1648], 256], - 64606: [[32, 1612, 1617], 256], - 64607: [[32, 1613, 1617], 256], - 64608: [[32, 1614, 1617], 256], - 64609: [[32, 1615, 1617], 256], - 64610: [[32, 1616, 1617], 256], - 64611: [[32, 1617, 1648], 256], - 64612: [[1574, 1585], 256], - 64613: [[1574, 1586], 256], - 64614: [[1574, 1605], 256], - 64615: [[1574, 1606], 256], - 64616: [[1574, 1609], 256], - 64617: [[1574, 1610], 256], - 64618: [[1576, 1585], 256], - 64619: [[1576, 1586], 256], - 64620: [[1576, 1605], 256], - 64621: [[1576, 1606], 256], - 64622: [[1576, 1609], 256], - 64623: [[1576, 1610], 256], - 64624: [[1578, 1585], 256], - 64625: [[1578, 1586], 256], - 64626: [[1578, 1605], 256], - 64627: [[1578, 1606], 256], - 64628: [[1578, 1609], 256], - 64629: [[1578, 1610], 256], - 64630: [[1579, 1585], 256], - 64631: [[1579, 1586], 256], - 64632: [[1579, 1605], 256], - 64633: [[1579, 1606], 256], - 64634: [[1579, 1609], 256], - 64635: [[1579, 1610], 256], - 64636: [[1601, 1609], 256], - 64637: [[1601, 1610], 256], - 64638: [[1602, 1609], 256], - 64639: [[1602, 1610], 256], - 64640: [[1603, 1575], 256], - 64641: [[1603, 1604], 256], - 64642: [[1603, 1605], 256], - 64643: [[1603, 1609], 256], - 64644: [[1603, 1610], 256], - 64645: [[1604, 1605], 256], - 64646: [[1604, 1609], 256], - 64647: [[1604, 1610], 256], - 64648: [[1605, 1575], 256], - 64649: [[1605, 1605], 256], - 64650: [[1606, 1585], 256], - 64651: [[1606, 1586], 256], - 64652: [[1606, 1605], 256], - 64653: [[1606, 1606], 256], - 64654: [[1606, 1609], 256], - 64655: [[1606, 1610], 256], - 64656: [[1609, 1648], 256], - 64657: [[1610, 1585], 256], - 64658: [[1610, 1586], 256], - 64659: [[1610, 1605], 256], - 64660: [[1610, 1606], 256], - 64661: [[1610, 1609], 256], - 64662: [[1610, 1610], 256], - 64663: [[1574, 1580], 256], - 64664: [[1574, 1581], 256], - 64665: [[1574, 1582], 256], - 64666: [[1574, 1605], 256], - 64667: [[1574, 1607], 256], - 64668: [[1576, 1580], 256], - 64669: [[1576, 1581], 256], - 64670: [[1576, 1582], 256], - 64671: [[1576, 1605], 256], - 64672: [[1576, 1607], 256], - 64673: [[1578, 1580], 256], - 64674: [[1578, 1581], 256], - 64675: [[1578, 1582], 256], - 64676: [[1578, 1605], 256], - 64677: [[1578, 1607], 256], - 64678: [[1579, 1605], 256], - 64679: [[1580, 1581], 256], - 64680: [[1580, 1605], 256], - 64681: [[1581, 1580], 256], - 64682: [[1581, 1605], 256], - 64683: [[1582, 1580], 256], - 64684: [[1582, 1605], 256], - 64685: [[1587, 1580], 256], - 64686: [[1587, 1581], 256], - 64687: [[1587, 1582], 256], - 64688: [[1587, 1605], 256], - 64689: [[1589, 1581], 256], - 64690: [[1589, 1582], 256], - 64691: [[1589, 1605], 256], - 64692: [[1590, 1580], 256], - 64693: [[1590, 1581], 256], - 64694: [[1590, 1582], 256], - 64695: [[1590, 1605], 256], - 64696: [[1591, 1581], 256], - 64697: [[1592, 1605], 256], - 64698: [[1593, 1580], 256], - 64699: [[1593, 1605], 256], - 64700: [[1594, 1580], 256], - 64701: [[1594, 1605], 256], - 64702: [[1601, 1580], 256], - 64703: [[1601, 1581], 256], - 64704: [[1601, 1582], 256], - 64705: [[1601, 1605], 256], - 64706: [[1602, 1581], 256], - 64707: [[1602, 1605], 256], - 64708: [[1603, 1580], 256], - 64709: [[1603, 1581], 256], - 64710: [[1603, 1582], 256], - 64711: [[1603, 1604], 256], - 64712: [[1603, 1605], 256], - 64713: [[1604, 1580], 256], - 64714: [[1604, 1581], 256], - 64715: [[1604, 1582], 256], - 64716: [[1604, 1605], 256], - 64717: [[1604, 1607], 256], - 64718: [[1605, 1580], 256], - 64719: [[1605, 1581], 256], - 64720: [[1605, 1582], 256], - 64721: [[1605, 1605], 256], - 64722: [[1606, 1580], 256], - 64723: [[1606, 1581], 256], - 64724: [[1606, 1582], 256], - 64725: [[1606, 1605], 256], - 64726: [[1606, 1607], 256], - 64727: [[1607, 1580], 256], - 64728: [[1607, 1605], 256], - 64729: [[1607, 1648], 256], - 64730: [[1610, 1580], 256], - 64731: [[1610, 1581], 256], - 64732: [[1610, 1582], 256], - 64733: [[1610, 1605], 256], - 64734: [[1610, 1607], 256], - 64735: [[1574, 1605], 256], - 64736: [[1574, 1607], 256], - 64737: [[1576, 1605], 256], - 64738: [[1576, 1607], 256], - 64739: [[1578, 1605], 256], - 64740: [[1578, 1607], 256], - 64741: [[1579, 1605], 256], - 64742: [[1579, 1607], 256], - 64743: [[1587, 1605], 256], - 64744: [[1587, 1607], 256], - 64745: [[1588, 1605], 256], - 64746: [[1588, 1607], 256], - 64747: [[1603, 1604], 256], - 64748: [[1603, 1605], 256], - 64749: [[1604, 1605], 256], - 64750: [[1606, 1605], 256], - 64751: [[1606, 1607], 256], - 64752: [[1610, 1605], 256], - 64753: [[1610, 1607], 256], - 64754: [[1600, 1614, 1617], 256], - 64755: [[1600, 1615, 1617], 256], - 64756: [[1600, 1616, 1617], 256], - 64757: [[1591, 1609], 256], - 64758: [[1591, 1610], 256], - 64759: [[1593, 1609], 256], - 64760: [[1593, 1610], 256], - 64761: [[1594, 1609], 256], - 64762: [[1594, 1610], 256], - 64763: [[1587, 1609], 256], - 64764: [[1587, 1610], 256], - 64765: [[1588, 1609], 256], - 64766: [[1588, 1610], 256], - 64767: [[1581, 1609], 256] - }, - 64768: { - 64768: [[1581, 1610], 256], - 64769: [[1580, 1609], 256], - 64770: [[1580, 1610], 256], - 64771: [[1582, 1609], 256], - 64772: [[1582, 1610], 256], - 64773: [[1589, 1609], 256], - 64774: [[1589, 1610], 256], - 64775: [[1590, 1609], 256], - 64776: [[1590, 1610], 256], - 64777: [[1588, 1580], 256], - 64778: [[1588, 1581], 256], - 64779: [[1588, 1582], 256], - 64780: [[1588, 1605], 256], - 64781: [[1588, 1585], 256], - 64782: [[1587, 1585], 256], - 64783: [[1589, 1585], 256], - 64784: [[1590, 1585], 256], - 64785: [[1591, 1609], 256], - 64786: [[1591, 1610], 256], - 64787: [[1593, 1609], 256], - 64788: [[1593, 1610], 256], - 64789: [[1594, 1609], 256], - 64790: [[1594, 1610], 256], - 64791: [[1587, 1609], 256], - 64792: [[1587, 1610], 256], - 64793: [[1588, 1609], 256], - 64794: [[1588, 1610], 256], - 64795: [[1581, 1609], 256], - 64796: [[1581, 1610], 256], - 64797: [[1580, 1609], 256], - 64798: [[1580, 1610], 256], - 64799: [[1582, 1609], 256], - 64800: [[1582, 1610], 256], - 64801: [[1589, 1609], 256], - 64802: [[1589, 1610], 256], - 64803: [[1590, 1609], 256], - 64804: [[1590, 1610], 256], - 64805: [[1588, 1580], 256], - 64806: [[1588, 1581], 256], - 64807: [[1588, 1582], 256], - 64808: [[1588, 1605], 256], - 64809: [[1588, 1585], 256], - 64810: [[1587, 1585], 256], - 64811: [[1589, 1585], 256], - 64812: [[1590, 1585], 256], - 64813: [[1588, 1580], 256], - 64814: [[1588, 1581], 256], - 64815: [[1588, 1582], 256], - 64816: [[1588, 1605], 256], - 64817: [[1587, 1607], 256], - 64818: [[1588, 1607], 256], - 64819: [[1591, 1605], 256], - 64820: [[1587, 1580], 256], - 64821: [[1587, 1581], 256], - 64822: [[1587, 1582], 256], - 64823: [[1588, 1580], 256], - 64824: [[1588, 1581], 256], - 64825: [[1588, 1582], 256], - 64826: [[1591, 1605], 256], - 64827: [[1592, 1605], 256], - 64828: [[1575, 1611], 256], - 64829: [[1575, 1611], 256], - 64848: [[1578, 1580, 1605], 256], - 64849: [[1578, 1581, 1580], 256], - 64850: [[1578, 1581, 1580], 256], - 64851: [[1578, 1581, 1605], 256], - 64852: [[1578, 1582, 1605], 256], - 64853: [[1578, 1605, 1580], 256], - 64854: [[1578, 1605, 1581], 256], - 64855: [[1578, 1605, 1582], 256], - 64856: [[1580, 1605, 1581], 256], - 64857: [[1580, 1605, 1581], 256], - 64858: [[1581, 1605, 1610], 256], - 64859: [[1581, 1605, 1609], 256], - 64860: [[1587, 1581, 1580], 256], - 64861: [[1587, 1580, 1581], 256], - 64862: [[1587, 1580, 1609], 256], - 64863: [[1587, 1605, 1581], 256], - 64864: [[1587, 1605, 1581], 256], - 64865: [[1587, 1605, 1580], 256], - 64866: [[1587, 1605, 1605], 256], - 64867: [[1587, 1605, 1605], 256], - 64868: [[1589, 1581, 1581], 256], - 64869: [[1589, 1581, 1581], 256], - 64870: [[1589, 1605, 1605], 256], - 64871: [[1588, 1581, 1605], 256], - 64872: [[1588, 1581, 1605], 256], - 64873: [[1588, 1580, 1610], 256], - 64874: [[1588, 1605, 1582], 256], - 64875: [[1588, 1605, 1582], 256], - 64876: [[1588, 1605, 1605], 256], - 64877: [[1588, 1605, 1605], 256], - 64878: [[1590, 1581, 1609], 256], - 64879: [[1590, 1582, 1605], 256], - 64880: [[1590, 1582, 1605], 256], - 64881: [[1591, 1605, 1581], 256], - 64882: [[1591, 1605, 1581], 256], - 64883: [[1591, 1605, 1605], 256], - 64884: [[1591, 1605, 1610], 256], - 64885: [[1593, 1580, 1605], 256], - 64886: [[1593, 1605, 1605], 256], - 64887: [[1593, 1605, 1605], 256], - 64888: [[1593, 1605, 1609], 256], - 64889: [[1594, 1605, 1605], 256], - 64890: [[1594, 1605, 1610], 256], - 64891: [[1594, 1605, 1609], 256], - 64892: [[1601, 1582, 1605], 256], - 64893: [[1601, 1582, 1605], 256], - 64894: [[1602, 1605, 1581], 256], - 64895: [[1602, 1605, 1605], 256], - 64896: [[1604, 1581, 1605], 256], - 64897: [[1604, 1581, 1610], 256], - 64898: [[1604, 1581, 1609], 256], - 64899: [[1604, 1580, 1580], 256], - 64900: [[1604, 1580, 1580], 256], - 64901: [[1604, 1582, 1605], 256], - 64902: [[1604, 1582, 1605], 256], - 64903: [[1604, 1605, 1581], 256], - 64904: [[1604, 1605, 1581], 256], - 64905: [[1605, 1581, 1580], 256], - 64906: [[1605, 1581, 1605], 256], - 64907: [[1605, 1581, 1610], 256], - 64908: [[1605, 1580, 1581], 256], - 64909: [[1605, 1580, 1605], 256], - 64910: [[1605, 1582, 1580], 256], - 64911: [[1605, 1582, 1605], 256], - 64914: [[1605, 1580, 1582], 256], - 64915: [[1607, 1605, 1580], 256], - 64916: [[1607, 1605, 1605], 256], - 64917: [[1606, 1581, 1605], 256], - 64918: [[1606, 1581, 1609], 256], - 64919: [[1606, 1580, 1605], 256], - 64920: [[1606, 1580, 1605], 256], - 64921: [[1606, 1580, 1609], 256], - 64922: [[1606, 1605, 1610], 256], - 64923: [[1606, 1605, 1609], 256], - 64924: [[1610, 1605, 1605], 256], - 64925: [[1610, 1605, 1605], 256], - 64926: [[1576, 1582, 1610], 256], - 64927: [[1578, 1580, 1610], 256], - 64928: [[1578, 1580, 1609], 256], - 64929: [[1578, 1582, 1610], 256], - 64930: [[1578, 1582, 1609], 256], - 64931: [[1578, 1605, 1610], 256], - 64932: [[1578, 1605, 1609], 256], - 64933: [[1580, 1605, 1610], 256], - 64934: [[1580, 1581, 1609], 256], - 64935: [[1580, 1605, 1609], 256], - 64936: [[1587, 1582, 1609], 256], - 64937: [[1589, 1581, 1610], 256], - 64938: [[1588, 1581, 1610], 256], - 64939: [[1590, 1581, 1610], 256], - 64940: [[1604, 1580, 1610], 256], - 64941: [[1604, 1605, 1610], 256], - 64942: [[1610, 1581, 1610], 256], - 64943: [[1610, 1580, 1610], 256], - 64944: [[1610, 1605, 1610], 256], - 64945: [[1605, 1605, 1610], 256], - 64946: [[1602, 1605, 1610], 256], - 64947: [[1606, 1581, 1610], 256], - 64948: [[1602, 1605, 1581], 256], - 64949: [[1604, 1581, 1605], 256], - 64950: [[1593, 1605, 1610], 256], - 64951: [[1603, 1605, 1610], 256], - 64952: [[1606, 1580, 1581], 256], - 64953: [[1605, 1582, 1610], 256], - 64954: [[1604, 1580, 1605], 256], - 64955: [[1603, 1605, 1605], 256], - 64956: [[1604, 1580, 1605], 256], - 64957: [[1606, 1580, 1581], 256], - 64958: [[1580, 1581, 1610], 256], - 64959: [[1581, 1580, 1610], 256], - 64960: [[1605, 1580, 1610], 256], - 64961: [[1601, 1605, 1610], 256], - 64962: [[1576, 1581, 1610], 256], - 64963: [[1603, 1605, 1605], 256], - 64964: [[1593, 1580, 1605], 256], - 64965: [[1589, 1605, 1605], 256], - 64966: [[1587, 1582, 1610], 256], - 64967: [[1606, 1580, 1610], 256], - 65008: [[1589, 1604, 1746], 256], - 65009: [[1602, 1604, 1746], 256], - 65010: [[1575, 1604, 1604, 1607], 256], - 65011: [[1575, 1603, 1576, 1585], 256], - 65012: [[1605, 1581, 1605, 1583], 256], - 65013: [[1589, 1604, 1593, 1605], 256], - 65014: [[1585, 1587, 1608, 1604], 256], - 65015: [[1593, 1604, 1610, 1607], 256], - 65016: [[1608, 1587, 1604, 1605], 256], - 65017: [[1589, 1604, 1609], 256], - 65018: [ - [ - 1589, 1604, 1609, 32, 1575, 1604, 1604, 1607, 32, 1593, 1604, 1610, 1607, 32, 1608, - 1587, 1604, 1605 - ], - 256 - ], - 65019: [[1580, 1604, 32, 1580, 1604, 1575, 1604, 1607], 256], - 65020: [[1585, 1740, 1575, 1604], 256] - }, - 65024: { - 65040: [[44], 256], - 65041: [[12289], 256], - 65042: [[12290], 256], - 65043: [[58], 256], - 65044: [[59], 256], - 65045: [[33], 256], - 65046: [[63], 256], - 65047: [[12310], 256], - 65048: [[12311], 256], - 65049: [[8230], 256], - 65056: [, 230], - 65057: [, 230], - 65058: [, 230], - 65059: [, 230], - 65060: [, 230], - 65061: [, 230], - 65062: [, 230], - 65072: [[8229], 256], - 65073: [[8212], 256], - 65074: [[8211], 256], - 65075: [[95], 256], - 65076: [[95], 256], - 65077: [[40], 256], - 65078: [[41], 256], - 65079: [[123], 256], - 65080: [[125], 256], - 65081: [[12308], 256], - 65082: [[12309], 256], - 65083: [[12304], 256], - 65084: [[12305], 256], - 65085: [[12298], 256], - 65086: [[12299], 256], - 65087: [[12296], 256], - 65088: [[12297], 256], - 65089: [[12300], 256], - 65090: [[12301], 256], - 65091: [[12302], 256], - 65092: [[12303], 256], - 65095: [[91], 256], - 65096: [[93], 256], - 65097: [[8254], 256], - 65098: [[8254], 256], - 65099: [[8254], 256], - 65100: [[8254], 256], - 65101: [[95], 256], - 65102: [[95], 256], - 65103: [[95], 256], - 65104: [[44], 256], - 65105: [[12289], 256], - 65106: [[46], 256], - 65108: [[59], 256], - 65109: [[58], 256], - 65110: [[63], 256], - 65111: [[33], 256], - 65112: [[8212], 256], - 65113: [[40], 256], - 65114: [[41], 256], - 65115: [[123], 256], - 65116: [[125], 256], - 65117: [[12308], 256], - 65118: [[12309], 256], - 65119: [[35], 256], - 65120: [[38], 256], - 65121: [[42], 256], - 65122: [[43], 256], - 65123: [[45], 256], - 65124: [[60], 256], - 65125: [[62], 256], - 65126: [[61], 256], - 65128: [[92], 256], - 65129: [[36], 256], - 65130: [[37], 256], - 65131: [[64], 256], - 65136: [[32, 1611], 256], - 65137: [[1600, 1611], 256], - 65138: [[32, 1612], 256], - 65140: [[32, 1613], 256], - 65142: [[32, 1614], 256], - 65143: [[1600, 1614], 256], - 65144: [[32, 1615], 256], - 65145: [[1600, 1615], 256], - 65146: [[32, 1616], 256], - 65147: [[1600, 1616], 256], - 65148: [[32, 1617], 256], - 65149: [[1600, 1617], 256], - 65150: [[32, 1618], 256], - 65151: [[1600, 1618], 256], - 65152: [[1569], 256], - 65153: [[1570], 256], - 65154: [[1570], 256], - 65155: [[1571], 256], - 65156: [[1571], 256], - 65157: [[1572], 256], - 65158: [[1572], 256], - 65159: [[1573], 256], - 65160: [[1573], 256], - 65161: [[1574], 256], - 65162: [[1574], 256], - 65163: [[1574], 256], - 65164: [[1574], 256], - 65165: [[1575], 256], - 65166: [[1575], 256], - 65167: [[1576], 256], - 65168: [[1576], 256], - 65169: [[1576], 256], - 65170: [[1576], 256], - 65171: [[1577], 256], - 65172: [[1577], 256], - 65173: [[1578], 256], - 65174: [[1578], 256], - 65175: [[1578], 256], - 65176: [[1578], 256], - 65177: [[1579], 256], - 65178: [[1579], 256], - 65179: [[1579], 256], - 65180: [[1579], 256], - 65181: [[1580], 256], - 65182: [[1580], 256], - 65183: [[1580], 256], - 65184: [[1580], 256], - 65185: [[1581], 256], - 65186: [[1581], 256], - 65187: [[1581], 256], - 65188: [[1581], 256], - 65189: [[1582], 256], - 65190: [[1582], 256], - 65191: [[1582], 256], - 65192: [[1582], 256], - 65193: [[1583], 256], - 65194: [[1583], 256], - 65195: [[1584], 256], - 65196: [[1584], 256], - 65197: [[1585], 256], - 65198: [[1585], 256], - 65199: [[1586], 256], - 65200: [[1586], 256], - 65201: [[1587], 256], - 65202: [[1587], 256], - 65203: [[1587], 256], - 65204: [[1587], 256], - 65205: [[1588], 256], - 65206: [[1588], 256], - 65207: [[1588], 256], - 65208: [[1588], 256], - 65209: [[1589], 256], - 65210: [[1589], 256], - 65211: [[1589], 256], - 65212: [[1589], 256], - 65213: [[1590], 256], - 65214: [[1590], 256], - 65215: [[1590], 256], - 65216: [[1590], 256], - 65217: [[1591], 256], - 65218: [[1591], 256], - 65219: [[1591], 256], - 65220: [[1591], 256], - 65221: [[1592], 256], - 65222: [[1592], 256], - 65223: [[1592], 256], - 65224: [[1592], 256], - 65225: [[1593], 256], - 65226: [[1593], 256], - 65227: [[1593], 256], - 65228: [[1593], 256], - 65229: [[1594], 256], - 65230: [[1594], 256], - 65231: [[1594], 256], - 65232: [[1594], 256], - 65233: [[1601], 256], - 65234: [[1601], 256], - 65235: [[1601], 256], - 65236: [[1601], 256], - 65237: [[1602], 256], - 65238: [[1602], 256], - 65239: [[1602], 256], - 65240: [[1602], 256], - 65241: [[1603], 256], - 65242: [[1603], 256], - 65243: [[1603], 256], - 65244: [[1603], 256], - 65245: [[1604], 256], - 65246: [[1604], 256], - 65247: [[1604], 256], - 65248: [[1604], 256], - 65249: [[1605], 256], - 65250: [[1605], 256], - 65251: [[1605], 256], - 65252: [[1605], 256], - 65253: [[1606], 256], - 65254: [[1606], 256], - 65255: [[1606], 256], - 65256: [[1606], 256], - 65257: [[1607], 256], - 65258: [[1607], 256], - 65259: [[1607], 256], - 65260: [[1607], 256], - 65261: [[1608], 256], - 65262: [[1608], 256], - 65263: [[1609], 256], - 65264: [[1609], 256], - 65265: [[1610], 256], - 65266: [[1610], 256], - 65267: [[1610], 256], - 65268: [[1610], 256], - 65269: [[1604, 1570], 256], - 65270: [[1604, 1570], 256], - 65271: [[1604, 1571], 256], - 65272: [[1604, 1571], 256], - 65273: [[1604, 1573], 256], - 65274: [[1604, 1573], 256], - 65275: [[1604, 1575], 256], - 65276: [[1604, 1575], 256] - }, - 65280: { - 65281: [[33], 256], - 65282: [[34], 256], - 65283: [[35], 256], - 65284: [[36], 256], - 65285: [[37], 256], - 65286: [[38], 256], - 65287: [[39], 256], - 65288: [[40], 256], - 65289: [[41], 256], - 65290: [[42], 256], - 65291: [[43], 256], - 65292: [[44], 256], - 65293: [[45], 256], - 65294: [[46], 256], - 65295: [[47], 256], - 65296: [[48], 256], - 65297: [[49], 256], - 65298: [[50], 256], - 65299: [[51], 256], - 65300: [[52], 256], - 65301: [[53], 256], - 65302: [[54], 256], - 65303: [[55], 256], - 65304: [[56], 256], - 65305: [[57], 256], - 65306: [[58], 256], - 65307: [[59], 256], - 65308: [[60], 256], - 65309: [[61], 256], - 65310: [[62], 256], - 65311: [[63], 256], - 65312: [[64], 256], - 65313: [[65], 256], - 65314: [[66], 256], - 65315: [[67], 256], - 65316: [[68], 256], - 65317: [[69], 256], - 65318: [[70], 256], - 65319: [[71], 256], - 65320: [[72], 256], - 65321: [[73], 256], - 65322: [[74], 256], - 65323: [[75], 256], - 65324: [[76], 256], - 65325: [[77], 256], - 65326: [[78], 256], - 65327: [[79], 256], - 65328: [[80], 256], - 65329: [[81], 256], - 65330: [[82], 256], - 65331: [[83], 256], - 65332: [[84], 256], - 65333: [[85], 256], - 65334: [[86], 256], - 65335: [[87], 256], - 65336: [[88], 256], - 65337: [[89], 256], - 65338: [[90], 256], - 65339: [[91], 256], - 65340: [[92], 256], - 65341: [[93], 256], - 65342: [[94], 256], - 65343: [[95], 256], - 65344: [[96], 256], - 65345: [[97], 256], - 65346: [[98], 256], - 65347: [[99], 256], - 65348: [[100], 256], - 65349: [[101], 256], - 65350: [[102], 256], - 65351: [[103], 256], - 65352: [[104], 256], - 65353: [[105], 256], - 65354: [[106], 256], - 65355: [[107], 256], - 65356: [[108], 256], - 65357: [[109], 256], - 65358: [[110], 256], - 65359: [[111], 256], - 65360: [[112], 256], - 65361: [[113], 256], - 65362: [[114], 256], - 65363: [[115], 256], - 65364: [[116], 256], - 65365: [[117], 256], - 65366: [[118], 256], - 65367: [[119], 256], - 65368: [[120], 256], - 65369: [[121], 256], - 65370: [[122], 256], - 65371: [[123], 256], - 65372: [[124], 256], - 65373: [[125], 256], - 65374: [[126], 256], - 65375: [[10629], 256], - 65376: [[10630], 256], - 65377: [[12290], 256], - 65378: [[12300], 256], - 65379: [[12301], 256], - 65380: [[12289], 256], - 65381: [[12539], 256], - 65382: [[12530], 256], - 65383: [[12449], 256], - 65384: [[12451], 256], - 65385: [[12453], 256], - 65386: [[12455], 256], - 65387: [[12457], 256], - 65388: [[12515], 256], - 65389: [[12517], 256], - 65390: [[12519], 256], - 65391: [[12483], 256], - 65392: [[12540], 256], - 65393: [[12450], 256], - 65394: [[12452], 256], - 65395: [[12454], 256], - 65396: [[12456], 256], - 65397: [[12458], 256], - 65398: [[12459], 256], - 65399: [[12461], 256], - 65400: [[12463], 256], - 65401: [[12465], 256], - 65402: [[12467], 256], - 65403: [[12469], 256], - 65404: [[12471], 256], - 65405: [[12473], 256], - 65406: [[12475], 256], - 65407: [[12477], 256], - 65408: [[12479], 256], - 65409: [[12481], 256], - 65410: [[12484], 256], - 65411: [[12486], 256], - 65412: [[12488], 256], - 65413: [[12490], 256], - 65414: [[12491], 256], - 65415: [[12492], 256], - 65416: [[12493], 256], - 65417: [[12494], 256], - 65418: [[12495], 256], - 65419: [[12498], 256], - 65420: [[12501], 256], - 65421: [[12504], 256], - 65422: [[12507], 256], - 65423: [[12510], 256], - 65424: [[12511], 256], - 65425: [[12512], 256], - 65426: [[12513], 256], - 65427: [[12514], 256], - 65428: [[12516], 256], - 65429: [[12518], 256], - 65430: [[12520], 256], - 65431: [[12521], 256], - 65432: [[12522], 256], - 65433: [[12523], 256], - 65434: [[12524], 256], - 65435: [[12525], 256], - 65436: [[12527], 256], - 65437: [[12531], 256], - 65438: [[12441], 256], - 65439: [[12442], 256], - 65440: [[12644], 256], - 65441: [[12593], 256], - 65442: [[12594], 256], - 65443: [[12595], 256], - 65444: [[12596], 256], - 65445: [[12597], 256], - 65446: [[12598], 256], - 65447: [[12599], 256], - 65448: [[12600], 256], - 65449: [[12601], 256], - 65450: [[12602], 256], - 65451: [[12603], 256], - 65452: [[12604], 256], - 65453: [[12605], 256], - 65454: [[12606], 256], - 65455: [[12607], 256], - 65456: [[12608], 256], - 65457: [[12609], 256], - 65458: [[12610], 256], - 65459: [[12611], 256], - 65460: [[12612], 256], - 65461: [[12613], 256], - 65462: [[12614], 256], - 65463: [[12615], 256], - 65464: [[12616], 256], - 65465: [[12617], 256], - 65466: [[12618], 256], - 65467: [[12619], 256], - 65468: [[12620], 256], - 65469: [[12621], 256], - 65470: [[12622], 256], - 65474: [[12623], 256], - 65475: [[12624], 256], - 65476: [[12625], 256], - 65477: [[12626], 256], - 65478: [[12627], 256], - 65479: [[12628], 256], - 65482: [[12629], 256], - 65483: [[12630], 256], - 65484: [[12631], 256], - 65485: [[12632], 256], - 65486: [[12633], 256], - 65487: [[12634], 256], - 65490: [[12635], 256], - 65491: [[12636], 256], - 65492: [[12637], 256], - 65493: [[12638], 256], - 65494: [[12639], 256], - 65495: [[12640], 256], - 65498: [[12641], 256], - 65499: [[12642], 256], - 65500: [[12643], 256], - 65504: [[162], 256], - 65505: [[163], 256], - 65506: [[172], 256], - 65507: [[175], 256], - 65508: [[166], 256], - 65509: [[165], 256], - 65510: [[8361], 256], - 65512: [[9474], 256], - 65513: [[8592], 256], - 65514: [[8593], 256], - 65515: [[8594], 256], - 65516: [[8595], 256], - 65517: [[9632], 256], - 65518: [[9675], 256] - } -}; diff --git a/node_modules/es5-ext/string/#/normalize/implement.js b/node_modules/es5-ext/string/#/normalize/implement.js deleted file mode 100644 index deb60896..00000000 --- a/node_modules/es5-ext/string/#/normalize/implement.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -if (!require("./is-implemented")()) { - Object.defineProperty(String.prototype, "normalize", { - value: require("./shim"), - configurable: true, - enumerable: false, - writable: true - }); -} diff --git a/node_modules/es5-ext/string/#/normalize/index.js b/node_modules/es5-ext/string/#/normalize/index.js deleted file mode 100644 index a8c04dba..00000000 --- a/node_modules/es5-ext/string/#/normalize/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./is-implemented")() ? String.prototype.normalize : require("./shim"); diff --git a/node_modules/es5-ext/string/#/normalize/is-implemented.js b/node_modules/es5-ext/string/#/normalize/is-implemented.js deleted file mode 100644 index 01b48a9d..00000000 --- a/node_modules/es5-ext/string/#/normalize/is-implemented.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; - -var str = "æøåäüö"; - -module.exports = function () { - if (typeof str.normalize !== "function") return false; - return str.normalize("NFKD") === "æøåäüö"; -}; diff --git a/node_modules/es5-ext/string/#/normalize/shim.js b/node_modules/es5-ext/string/#/normalize/shim.js deleted file mode 100644 index 95bae268..00000000 --- a/node_modules/es5-ext/string/#/normalize/shim.js +++ /dev/null @@ -1,309 +0,0 @@ -/* eslint no-bitwise: "off", max-statements: "off", max-lines: "off" */ - -// Taken from: https://github.com/walling/unorm/blob/master/lib/unorm.js - -/* - * UnicodeNormalizer 1.0.0 - * Copyright (c) 2008 Matsuza - * Dual licensed under the MIT (MIT-LICENSE.txt) and - * GPL (GPL-LICENSE.txt) licenses. - * $Date: 2008-06-05 16:44:17 +0200 (Thu, 05 Jun 2008) $ - * $Rev: 13309 $ - */ - -"use strict"; - -var primitiveSet = require("../../../object/primitive-set") - , validValue = require("../../../object/valid-value") - , data = require("./_data"); - -var floor = Math.floor - , forms = primitiveSet("NFC", "NFD", "NFKC", "NFKD") - , DEFAULT_FEATURE = [null, 0, {}] - , CACHE_THRESHOLD = 10 - , SBase = 0xac00 - , LBase = 0x1100 - , VBase = 0x1161 - , TBase = 0x11a7 - , LCount = 19 - , VCount = 21 - , TCount = 28 - , NCount = VCount * TCount - , SCount = LCount * NCount - , UChar - , cache = {} - , cacheCounter = [] - , fromCache - , fromData - , fromCpOnly - , fromRuleBasedJamo - , fromCpFilter - , strategies - , UCharIterator - , RecursDecompIterator - , DecompIterator - , CompIterator - , createIterator - , normalize; - -UChar = function (cp, feature) { - this.codepoint = cp; - this.feature = feature; -}; - -// Strategies -(function () { for (var i = 0; i <= 0xff; ++i) cacheCounter[i] = 0; })(); - -fromCache = function (nextStep, cp, needFeature) { - var ret = cache[cp]; - if (!ret) { - ret = nextStep(cp, needFeature); - if (Boolean(ret.feature) && ++cacheCounter[(cp >> 8) & 0xff] > CACHE_THRESHOLD) { - cache[cp] = ret; - } - } - return ret; -}; - -fromData = function (next, cp) { - var hash = cp & 0xff00, dunit = UChar.udata[hash] || {}, feature = dunit[cp]; - return feature ? new UChar(cp, feature) : new UChar(cp, DEFAULT_FEATURE); -}; -fromCpOnly = function (next, cp, needFeature) { - return needFeature ? next(cp, needFeature) : new UChar(cp, null); -}; - -fromRuleBasedJamo = function (next, cp, needFeature) { - var char, base, i, arr, SIndex, TIndex, feature, j; - if (cp < LBase || (LBase + LCount <= cp && cp < SBase) || SBase + SCount < cp) { - return next(cp, needFeature); - } - if (LBase <= cp && cp < LBase + LCount) { - char = {}; - base = (cp - LBase) * VCount; - for (i = 0; i < VCount; ++i) { - char[VBase + i] = SBase + TCount * (i + base); - } - arr = new Array(3); - arr[2] = char; - return new UChar(cp, arr); - } - - SIndex = cp - SBase; - TIndex = SIndex % TCount; - feature = []; - if (TIndex === 0) { - feature[0] = [LBase + floor(SIndex / NCount), VBase + floor((SIndex % NCount) / TCount)]; - feature[2] = {}; - for (j = 1; j < TCount; ++j) { - feature[2][TBase + j] = cp + j; - } - } else { - feature[0] = [SBase + SIndex - TIndex, TBase + TIndex]; - } - return new UChar(cp, feature); -}; - -fromCpFilter = function (next, cp, needFeature) { - return cp < 60 || (cp > 13311 && cp < 42607) - ? new UChar(cp, DEFAULT_FEATURE) - : next(cp, needFeature); -}; - -strategies = [fromCpFilter, fromCache, fromCpOnly, fromRuleBasedJamo, fromData]; - -UChar.fromCharCode = strategies.reduceRight(function (next, strategy) { - return function (cp, needFeature) { return strategy(next, cp, needFeature); }; -}, null); - -UChar.isHighSurrogate = function (cp) { return cp >= 0xd800 && cp <= 0xdbff; }; -UChar.isLowSurrogate = function (cp) { return cp >= 0xdc00 && cp <= 0xdfff; }; - -UChar.prototype.prepFeature = function () { - if (!this.feature) { - this.feature = UChar.fromCharCode(this.codepoint, true).feature; - } -}; - -UChar.prototype.toString = function () { - var num; - if (this.codepoint < 0x10000) return String.fromCharCode(this.codepoint); - num = this.codepoint - 0x10000; - return String.fromCharCode(floor(num / 0x400) + 0xd800, (num % 0x400) + 0xdc00); -}; - -UChar.prototype.getDecomp = function () { - this.prepFeature(); - return this.feature[0] || null; -}; - -UChar.prototype.isCompatibility = function () { - this.prepFeature(); - return Boolean(this.feature[1]) && this.feature[1] & (1 << 8); -}; -UChar.prototype.isExclude = function () { - this.prepFeature(); - return Boolean(this.feature[1]) && this.feature[1] & (1 << 9); -}; -UChar.prototype.getCanonicalClass = function () { - this.prepFeature(); - return this.feature[1] ? this.feature[1] & 0xff : 0; -}; -UChar.prototype.getComposite = function (following) { - var cp; - this.prepFeature(); - if (!this.feature[2]) return null; - cp = this.feature[2][following.codepoint]; - return cp ? UChar.fromCharCode(cp) : null; -}; - -UCharIterator = function (str) { - this.str = str; - this.cursor = 0; -}; -UCharIterator.prototype.next = function () { - if (Boolean(this.str) && this.cursor < this.str.length) { - var cp = this.str.charCodeAt(this.cursor++), d; - if ( - UChar.isHighSurrogate(cp) && - this.cursor < this.str.length && - UChar.isLowSurrogate((d = this.str.charCodeAt(this.cursor))) - ) { - cp = (cp - 0xd800) * 0x400 + (d - 0xdc00) + 0x10000; - ++this.cursor; - } - return UChar.fromCharCode(cp); - } - this.str = null; - return null; -}; - -RecursDecompIterator = function (it, cano) { - this.it = it; - this.canonical = cano; - this.resBuf = []; -}; - -RecursDecompIterator.prototype.next = function () { - var recursiveDecomp, uchar; - recursiveDecomp = function (cano, ucharLoc) { - var decomp = ucharLoc.getDecomp(), ret, i, a, j; - if (Boolean(decomp) && !(cano && ucharLoc.isCompatibility())) { - ret = []; - for (i = 0; i < decomp.length; ++i) { - a = recursiveDecomp(cano, UChar.fromCharCode(decomp[i])); - // Ret.concat(a); //<-why does not this work? - // following block is a workaround. - for (j = 0; j < a.length; ++j) ret.push(a[j]); - } - return ret; - } - return [ucharLoc]; - }; - if (this.resBuf.length === 0) { - uchar = this.it.next(); - if (!uchar) return null; - this.resBuf = recursiveDecomp(this.canonical, uchar); - } - return this.resBuf.shift(); -}; - -DecompIterator = function (it) { - this.it = it; - this.resBuf = []; -}; - -DecompIterator.prototype.next = function () { - var cc, uchar, inspt, uchar2, cc2; - if (this.resBuf.length === 0) { - do { - uchar = this.it.next(); - if (!uchar) break; - cc = uchar.getCanonicalClass(); - inspt = this.resBuf.length; - if (cc !== 0) { - for (inspt; inspt > 0; --inspt) { - uchar2 = this.resBuf[inspt - 1]; - cc2 = uchar2.getCanonicalClass(); - // eslint-disable-next-line max-depth - if (cc2 <= cc) break; - } - } - this.resBuf.splice(inspt, 0, uchar); - } while (cc !== 0); - } - return this.resBuf.shift(); -}; - -CompIterator = function (it) { - this.it = it; - this.procBuf = []; - this.resBuf = []; - this.lastClass = null; -}; - -CompIterator.prototype.next = function () { - var uchar, starter, composite, cc; - while (this.resBuf.length === 0) { - uchar = this.it.next(); - if (!uchar) { - this.resBuf = this.procBuf; - this.procBuf = []; - break; - } - if (this.procBuf.length === 0) { - this.lastClass = uchar.getCanonicalClass(); - this.procBuf.push(uchar); - } else { - starter = this.procBuf[0]; - composite = starter.getComposite(uchar); - cc = uchar.getCanonicalClass(); - if (Boolean(composite) && (this.lastClass < cc || this.lastClass === 0)) { - this.procBuf[0] = composite; - } else { - if (cc === 0) { - this.resBuf = this.procBuf; - this.procBuf = []; - } - this.lastClass = cc; - this.procBuf.push(uchar); - } - } - } - return this.resBuf.shift(); -}; - -createIterator = function (mode, str) { - switch (mode) { - case "NFD": - return new DecompIterator(new RecursDecompIterator(new UCharIterator(str), true)); - case "NFKD": - return new DecompIterator(new RecursDecompIterator(new UCharIterator(str), false)); - case "NFC": - return new CompIterator( - new DecompIterator(new RecursDecompIterator(new UCharIterator(str), true)) - ); - case "NFKC": - return new CompIterator( - new DecompIterator(new RecursDecompIterator(new UCharIterator(str), false)) - ); - default: - throw new Error(mode + " is invalid"); - } -}; -normalize = function (mode, str) { - var it = createIterator(mode, str), ret = "", uchar; - while ((uchar = it.next())) ret += uchar.toString(); - return ret; -}; - -/* Unicode data */ -UChar.udata = data; - -module.exports = function (/* Form*/) { - var str = String(validValue(this)), form = arguments[0]; - if (form === undefined) form = "NFC"; - else form = String(form); - if (!forms[form]) throw new RangeError("Invalid normalization form: " + form); - return normalize(form, str); -}; diff --git a/node_modules/es5-ext/string/#/pad.js b/node_modules/es5-ext/string/#/pad.js deleted file mode 100644 index ee0339f8..00000000 --- a/node_modules/es5-ext/string/#/pad.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; - -var toInteger = require("../../number/to-integer") - , value = require("../../object/valid-value") - , repeat = require("./repeat") - , abs = Math.abs - , max = Math.max; - -module.exports = function (fill /*, length*/) { - var self = String(value(this)), sLength = self.length, length = arguments[1]; - - length = isNaN(length) ? 1 : toInteger(length); - fill = repeat.call(String(fill), abs(length)); - if (length >= 0) return fill.slice(0, max(0, length - sLength)) + self; - return self + (sLength + length >= 0 ? "" : fill.slice(length + sLength)); -}; diff --git a/node_modules/es5-ext/string/#/plain-replace-all.js b/node_modules/es5-ext/string/#/plain-replace-all.js deleted file mode 100644 index 9334fe09..00000000 --- a/node_modules/es5-ext/string/#/plain-replace-all.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; - -var value = require("../../object/valid-value"); - -module.exports = function (search, replace) { - var index, pos = 0, str = String(value(this)), sl, rl; - search = String(search); - replace = String(replace); - sl = search.length; - rl = replace.length; - while ((index = str.indexOf(search, pos)) !== -1) { - str = str.slice(0, index) + replace + str.slice(index + sl); - pos = index + rl; - } - return str; -}; diff --git a/node_modules/es5-ext/string/#/plain-replace.js b/node_modules/es5-ext/string/#/plain-replace.js deleted file mode 100644 index b8bfe3de..00000000 --- a/node_modules/es5-ext/string/#/plain-replace.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; - -var indexOf = String.prototype.indexOf, slice = String.prototype.slice; - -module.exports = function (search, replace) { - var index = indexOf.call(this, search); - if (index === -1) return String(this); - return slice.call(this, 0, index) + replace + slice.call(this, index + String(search).length); -}; diff --git a/node_modules/es5-ext/string/#/repeat/implement.js b/node_modules/es5-ext/string/#/repeat/implement.js deleted file mode 100644 index f237dcdd..00000000 --- a/node_modules/es5-ext/string/#/repeat/implement.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -if (!require("./is-implemented")()) { - Object.defineProperty(String.prototype, "repeat", { - value: require("./shim"), - configurable: true, - enumerable: false, - writable: true - }); -} diff --git a/node_modules/es5-ext/string/#/repeat/index.js b/node_modules/es5-ext/string/#/repeat/index.js deleted file mode 100644 index abcb601a..00000000 --- a/node_modules/es5-ext/string/#/repeat/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./is-implemented")() ? String.prototype.repeat : require("./shim"); diff --git a/node_modules/es5-ext/string/#/repeat/is-implemented.js b/node_modules/es5-ext/string/#/repeat/is-implemented.js deleted file mode 100644 index e8e02409..00000000 --- a/node_modules/es5-ext/string/#/repeat/is-implemented.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; - -var str = "foo"; - -module.exports = function () { - if (typeof str.repeat !== "function") return false; - return str.repeat(2) === "foofoo"; -}; diff --git a/node_modules/es5-ext/string/#/repeat/shim.js b/node_modules/es5-ext/string/#/repeat/shim.js deleted file mode 100644 index ac259a83..00000000 --- a/node_modules/es5-ext/string/#/repeat/shim.js +++ /dev/null @@ -1,24 +0,0 @@ -// Thanks -// @rauchma http://www.2ality.com/2014/01/efficient-string-repeat.html -// @mathiasbynens https://github.com/mathiasbynens/String.prototype.repeat/blob/4a4b567def/repeat.js - -"use strict"; - -var value = require("../../../object/valid-value") - , toInteger = require("../../../number/to-integer"); - -module.exports = function (count) { - var str = String(value(this)), result; - count = toInteger(count); - if (count < 0) throw new RangeError("Count must be >= 0"); - if (!isFinite(count)) throw new RangeError("Count must be < ∞"); - - result = ""; - while (count) { - if (count % 2) result += str; - if (count > 1) str += str; - // eslint-disable-next-line no-bitwise - count >>= 1; - } - return result; -}; diff --git a/node_modules/es5-ext/string/#/starts-with/implement.js b/node_modules/es5-ext/string/#/starts-with/implement.js deleted file mode 100644 index 62abadbf..00000000 --- a/node_modules/es5-ext/string/#/starts-with/implement.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -if (!require("./is-implemented")()) { - Object.defineProperty(String.prototype, "startsWith", { - value: require("./shim"), - configurable: true, - enumerable: false, - writable: true - }); -} diff --git a/node_modules/es5-ext/string/#/starts-with/index.js b/node_modules/es5-ext/string/#/starts-with/index.js deleted file mode 100644 index a0a368fd..00000000 --- a/node_modules/es5-ext/string/#/starts-with/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./is-implemented")() ? String.prototype.startsWith : require("./shim"); diff --git a/node_modules/es5-ext/string/#/starts-with/is-implemented.js b/node_modules/es5-ext/string/#/starts-with/is-implemented.js deleted file mode 100644 index d1241bca..00000000 --- a/node_modules/es5-ext/string/#/starts-with/is-implemented.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; - -var str = "razdwatrzy"; - -module.exports = function () { - if (typeof str.startsWith !== "function") return false; - return str.startsWith("trzy") === false && str.startsWith("raz") === true; -}; diff --git a/node_modules/es5-ext/string/#/starts-with/shim.js b/node_modules/es5-ext/string/#/starts-with/shim.js deleted file mode 100644 index c3fa3b06..00000000 --- a/node_modules/es5-ext/string/#/starts-with/shim.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; - -var value = require("../../../object/valid-value") - , toInteger = require("../../../number/to-integer") - , max = Math.max - , min = Math.min; - -module.exports = function (searchString /*, position*/) { - var start, self = String(value(this)); - start = min(max(toInteger(arguments[1]), 0), self.length); - return self.indexOf(searchString, start) === start; -}; diff --git a/node_modules/es5-ext/string/#/uncapitalize.js b/node_modules/es5-ext/string/#/uncapitalize.js deleted file mode 100644 index 202dbb73..00000000 --- a/node_modules/es5-ext/string/#/uncapitalize.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; - -var ensureStringifiable = require("../../object/validate-stringifiable-value"); - -module.exports = function () { - var str = ensureStringifiable(this); - return str.charAt(0).toLowerCase() + str.slice(1); -}; diff --git a/node_modules/es5-ext/string/format-method.js b/node_modules/es5-ext/string/format-method.js deleted file mode 100644 index 91d8de93..00000000 --- a/node_modules/es5-ext/string/format-method.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; - -var isCallable = require("../object/is-callable") - , value = require("../object/valid-value") - , call = Function.prototype.call; - -module.exports = function (fmap) { - fmap = Object(value(fmap)); - return function (pattern) { - var context = this; - value(context); - pattern = String(pattern); - return pattern.replace( - /%([a-zA-Z]+)|\\([\u0000-\uffff])/g, - function (match, token, escapeChar) { - var t, result; - if (escapeChar) return escapeChar; - t = token; - while (t && !(result = fmap[t])) t = t.slice(0, -1); - if (!result) return match; - if (isCallable(result)) result = call.call(result, context); - return result + token.slice(t.length); - } - ); - }; -}; diff --git a/node_modules/es5-ext/string/from-code-point/implement.js b/node_modules/es5-ext/string/from-code-point/implement.js deleted file mode 100644 index 71728bfc..00000000 --- a/node_modules/es5-ext/string/from-code-point/implement.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -if (!require("./is-implemented")()) { - Object.defineProperty(String, "fromCodePoint", { - value: require("./shim"), - configurable: true, - enumerable: false, - writable: true - }); -} diff --git a/node_modules/es5-ext/string/from-code-point/index.js b/node_modules/es5-ext/string/from-code-point/index.js deleted file mode 100644 index 5a5fc5b2..00000000 --- a/node_modules/es5-ext/string/from-code-point/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./is-implemented")() ? String.fromCodePoint : require("./shim"); diff --git a/node_modules/es5-ext/string/from-code-point/is-implemented.js b/node_modules/es5-ext/string/from-code-point/is-implemented.js deleted file mode 100644 index ae4b818b..00000000 --- a/node_modules/es5-ext/string/from-code-point/is-implemented.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -module.exports = function () { - var fromCodePoint = String.fromCodePoint; - if (typeof fromCodePoint !== "function") return false; - return fromCodePoint(0x1d306, 0x61, 0x1d307) === "\ud834\udf06a\ud834\udf07"; -}; diff --git a/node_modules/es5-ext/string/from-code-point/shim.js b/node_modules/es5-ext/string/from-code-point/shim.js deleted file mode 100644 index c8214cf7..00000000 --- a/node_modules/es5-ext/string/from-code-point/shim.js +++ /dev/null @@ -1,37 +0,0 @@ -// Based on: -// http://norbertlindenberg.com/2012/05/ecmascript-supplementary-characters/ -// and: -// https://github.com/mathiasbynens/String.fromCodePoint/blob/master -// /fromcodepoint.js - -"use strict"; - -var floor = Math.floor, fromCharCode = String.fromCharCode; - -// eslint-disable-next-line no-unused-vars -module.exports = function (codePoint1 /*, …codePoints*/) { - var chars = [], length = arguments.length, i, codePoint, result = ""; - for (i = 0; i < length; ++i) { - codePoint = Number(arguments[i]); - if ( - !isFinite(codePoint) || - codePoint < 0 || - codePoint > 0x10ffff || - floor(codePoint) !== codePoint - ) { - throw new RangeError("Invalid code point " + codePoint); - } - - if (codePoint < 0x10000) { - chars.push(codePoint); - } else { - codePoint -= 0x10000; - // eslint-disable-next-line no-bitwise - chars.push((codePoint >> 10) + 0xd800, (codePoint % 0x400) + 0xdc00); - } - if (i + 1 !== length && chars.length <= 0x4000) continue; - result += fromCharCode.apply(null, chars); - chars.length = 0; - } - return result; -}; diff --git a/node_modules/es5-ext/string/index.js b/node_modules/es5-ext/string/index.js deleted file mode 100644 index 4393588f..00000000 --- a/node_modules/es5-ext/string/index.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; - -module.exports = { - "#": require("./#"), - "formatMethod": require("./format-method"), - "fromCodePoint": require("./from-code-point"), - "isString": require("./is-string"), - "random": require("./random"), - "randomUniq": require("./random-uniq"), - "raw": require("./raw") -}; diff --git a/node_modules/es5-ext/string/is-string.js b/node_modules/es5-ext/string/is-string.js deleted file mode 100644 index 1b1e8630..00000000 --- a/node_modules/es5-ext/string/is-string.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; - -var objToString = Object.prototype.toString, id = objToString.call(""); - -module.exports = function (value) { - return ( - typeof value === "string" || - (value && - typeof value === "object" && - (value instanceof String || objToString.call(value) === id)) || - false - ); -}; diff --git a/node_modules/es5-ext/string/random-uniq.js b/node_modules/es5-ext/string/random-uniq.js deleted file mode 100644 index ae57b29e..00000000 --- a/node_modules/es5-ext/string/random-uniq.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; - -var generated = Object.create(null), random = Math.random; - -module.exports = function () { - var str; - do { - str = random().toString(36).slice(2); - } while (generated[str]); - return str; -}; diff --git a/node_modules/es5-ext/string/random.js b/node_modules/es5-ext/string/random.js deleted file mode 100644 index 8fda5de7..00000000 --- a/node_modules/es5-ext/string/random.js +++ /dev/null @@ -1,38 +0,0 @@ -"use strict"; - -var isValue = require("../object/is-value") - , toNaturalNumber = require("../number/to-pos-integer"); - -var generated = Object.create(null), random = Math.random, uniqTryLimit = 100; - -var getChunk = function () { return random().toString(36).slice(2); }; - -var getString = function (/* length */) { - var str = getChunk(), length = arguments[0]; - if (!isValue(length)) return str; - while (str.length < length) str += getChunk(); - return str.slice(0, length); -}; - -module.exports = function (/* options */) { - var options = Object(arguments[0]), length = options.length, isUnique = options.isUnique; - - if (isValue(length)) length = toNaturalNumber(length); - - var str = getString(length); - if (isUnique) { - var count = 0; - while (generated[str]) { - if (++count === uniqTryLimit) { - throw new Error( - "Cannot generate random string.\n" + - "String.random is not designed to effectively generate many short and " + - "unique random strings" - ); - } - str = getString(length); - } - generated[str] = true; - } - return str; -}; diff --git a/node_modules/es5-ext/string/raw/implement.js b/node_modules/es5-ext/string/raw/implement.js deleted file mode 100644 index 24f17c2a..00000000 --- a/node_modules/es5-ext/string/raw/implement.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -if (!require("./is-implemented")()) { - Object.defineProperty(String, "raw", { - value: require("./shim"), - configurable: true, - enumerable: false, - writable: true - }); -} diff --git a/node_modules/es5-ext/string/raw/index.js b/node_modules/es5-ext/string/raw/index.js deleted file mode 100644 index 39889e9b..00000000 --- a/node_modules/es5-ext/string/raw/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./is-implemented")() ? String.raw : require("./shim"); diff --git a/node_modules/es5-ext/string/raw/is-implemented.js b/node_modules/es5-ext/string/raw/is-implemented.js deleted file mode 100644 index 8758108c..00000000 --- a/node_modules/es5-ext/string/raw/is-implemented.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; - -module.exports = function () { - var raw = String.raw, test; - if (typeof raw !== "function") return false; - test = ["foo\nbar", "marko\n"]; - test.raw = ["foo\\nbar", "marko\\n"]; - return raw(test, "INSE\nRT") === "foo\\nbarINSE\nRTmarko\\n"; -}; diff --git a/node_modules/es5-ext/string/raw/shim.js b/node_modules/es5-ext/string/raw/shim.js deleted file mode 100644 index 8c52bb55..00000000 --- a/node_modules/es5-ext/string/raw/shim.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; - -var toPosInt = require("../../number/to-pos-integer") - , validValue = require("../../object/valid-value") - , reduce = Array.prototype.reduce; - -module.exports = function (callSite /*, …substitutions*/) { - var args, rawValue = Object(validValue(Object(validValue(callSite)).raw)); - if (!toPosInt(rawValue.length)) return ""; - args = arguments; - return reduce.call(rawValue, function (str1, str2, i) { - return str1 + String(args[i]) + str2; - }); -}; diff --git a/node_modules/es5-ext/to-short-string-representation.js b/node_modules/es5-ext/to-short-string-representation.js deleted file mode 100644 index 5aede538..00000000 --- a/node_modules/es5-ext/to-short-string-representation.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; - -var safeToString = require("./safe-to-string"); - -var reNewLine = /[\n\r\u2028\u2029]/g; - -module.exports = function (value) { - var string = safeToString(value); - // Trim if too long - if (string.length > 100) string = string.slice(0, 99) + "…"; - // Replace eventual new lines - string = string.replace(reNewLine, function (char) { - return JSON.stringify(char).slice(1, -1); - }); - return string; -}; diff --git a/node_modules/es6-iterator/#/chain.js b/node_modules/es6-iterator/#/chain.js deleted file mode 100644 index 190a3464..00000000 --- a/node_modules/es6-iterator/#/chain.js +++ /dev/null @@ -1,40 +0,0 @@ -"use strict"; - -var setPrototypeOf = require("es5-ext/object/set-prototype-of") - , d = require("d") - , Iterator = require("../") - , validIterable = require("../valid-iterable") - - , push = Array.prototype.push - , defineProperties = Object.defineProperties - , IteratorChain; - -IteratorChain = function (iterators) { - defineProperties(this, { - __iterators__: d("", iterators), - __current__: d("w", iterators.shift()) - }); -}; -if (setPrototypeOf) setPrototypeOf(IteratorChain, Iterator); - -IteratorChain.prototype = Object.create(Iterator.prototype, { - constructor: d(IteratorChain), - next: d(function () { - var result; - if (!this.__current__) return { done: true, value: undefined }; - result = this.__current__.next(); - while (result.done) { - this.__current__ = this.__iterators__.shift(); - if (!this.__current__) return { done: true, value: undefined }; - result = this.__current__.next(); - } - return result; - }) -}); - -module.exports = function () { - var iterators = [this]; - push.apply(iterators, arguments); - iterators.forEach(validIterable); - return new IteratorChain(iterators); -}; diff --git a/node_modules/es6-iterator/.editorconfig b/node_modules/es6-iterator/.editorconfig deleted file mode 100644 index c24a6cd1..00000000 --- a/node_modules/es6-iterator/.editorconfig +++ /dev/null @@ -1,14 +0,0 @@ -# EditorConfig is awesome: http://EditorConfig.org - -# top-most EditorConfig file -root = true - -# Unix-style newlines with a newline ending every file -[*] -end_of_line = lf -insert_final_newline = true -indent_style = tab - -[{*.json,*.yml}] -indent_style = space -indent_size = 2 diff --git a/node_modules/es6-iterator/.npmignore b/node_modules/es6-iterator/.npmignore deleted file mode 100644 index a91db655..00000000 --- a/node_modules/es6-iterator/.npmignore +++ /dev/null @@ -1,12 +0,0 @@ -.DS_Store -Thumbs.db -/.idea -/.vscode -npm-debug.log -/wallaby.js -/node_modules -/.travis.yml -/.gitignore -/.circle.yml -/.circleci -/.appveyor.yml diff --git a/node_modules/es6-iterator/CHANGELOG.md b/node_modules/es6-iterator/CHANGELOG.md deleted file mode 100644 index 37eb16ab..00000000 --- a/node_modules/es6-iterator/CHANGELOG.md +++ /dev/null @@ -1,27 +0,0 @@ -# Change Log - -All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. - - -## [2.0.3](https://github.com/medikoo/es6-iterator/compare/v2.0.2...v2.0.3) (2017-10-17) - - -### Bug Fixes - -* configurability of toStringTag ([b99f692](https://github.com/medikoo/es6-iterator/commit/b99f692)) - - - - -## [2.0.2](https://github.com/medikoo/es6-iterator/compare/v2.0.1...v2.0.2) (2017-10-17) - - -### Bug Fixes - -* constructor exposure ([dbc0c51](https://github.com/medikoo/es6-iterator/commit/dbc0c51)) -* do not allow non constructor calls ([1f2f800](https://github.com/medikoo/es6-iterator/commit/1f2f800)) -* toString and toStringTag symbol definitions. ([2d17786](https://github.com/medikoo/es6-iterator/commit/2d17786)), closes [#6](https://github.com/medikoo/es6-iterator/issues/6) - -## Changelog for previous versions - -See `CHANGES` file diff --git a/node_modules/es6-iterator/CHANGES b/node_modules/es6-iterator/CHANGES deleted file mode 100644 index 83095f7c..00000000 --- a/node_modules/es6-iterator/CHANGES +++ /dev/null @@ -1,42 +0,0 @@ -For recent changelog see CHANGELOG.md - ------ - -v2.0.1 -- 2017.03.15 -* Update dependencies - -v2.0.0 -- 2015.10.02 -* Use es6-symbol at v3 - -v1.0.0 -- 2015.06.23 -* Implement support for arguments object -* Drop support for v0.8 node ('^' in package.json dependencies) - -v0.1.3 -- 2015.02.02 -* Update dependencies -* Fix spelling of LICENSE - -v0.1.2 -- 2014.11.19 -* Optimise internal `_next` to not verify internal's list length at all times - (#2 thanks @RReverser) -* Fix documentation examples -* Configure lint scripts - -v0.1.1 -- 2014.04.29 -* Fix es6-symbol dependency version - -v0.1.0 -- 2014.04.29 -* Assure strictly npm hosted dependencies -* Remove sparse arrays dedicated handling (as per spec) -* Add: isIterable, validIterable and chain (method) -* Remove toArray, it's addressed by Array.from (polyfil can be found in es5-ext/array/from) -* Add break possiblity to 'forOf' via 'doBreak' function argument -* Provide dedicated iterator for array-likes (ArrayIterator) and for strings (StringIterator) -* Provide @@toStringTag symbol -* When available rely on @@iterator symbol -* Remove 32bit integer maximum list length restriction -* Improve Iterator internals -* Update to use latest version of dependencies - -v0.0.0 -- 2013.10.12 -Initial (dev version) diff --git a/node_modules/es6-iterator/LICENSE b/node_modules/es6-iterator/LICENSE deleted file mode 100644 index d7c36d55..00000000 --- a/node_modules/es6-iterator/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -The MIT License (MIT) - -Copyright (C) 2013-2017 Mariusz Nowak (www.medikoo.com) - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/node_modules/es6-iterator/README.md b/node_modules/es6-iterator/README.md deleted file mode 100644 index 288373da..00000000 --- a/node_modules/es6-iterator/README.md +++ /dev/null @@ -1,148 +0,0 @@ -# es6-iterator -## ECMAScript 6 Iterator interface - -### Installation - - $ npm install es6-iterator - -To port it to Browser or any other (non CJS) environment, use your favorite CJS bundler. No favorite yet? Try: [Browserify](http://browserify.org/), [Webmake](https://github.com/medikoo/modules-webmake) or [Webpack](http://webpack.github.io/) - -## API - -### Constructors - -#### Iterator(list) _(es6-iterator)_ - -Abstract Iterator interface. Meant for extensions and not to be used on its own. - -Accepts any _list_ object (technically object with numeric _length_ property). - -_Mind it doesn't iterate strings properly, for that use dedicated [StringIterator](#string-iterator)_ - -```javascript -var Iterator = require('es6-iterator') -var iterator = new Iterator([1, 2, 3]); - -iterator.next(); // { value: 1, done: false } -iterator.next(); // { value: 2, done: false } -iterator.next(); // { value: 3, done: false } -iterator.next(); // { value: undefined, done: true } -``` - - -#### ArrayIterator(arrayLike[, kind]) _(es6-iterator/array)_ - -Dedicated for arrays and array-likes. Supports three iteration kinds: -* __value__ _(default)_ - Iterates values -* __key__ - Iterates indexes -* __key+value__ - Iterates keys and indexes, each iteration value is in _[key, value]_ form. - - -```javascript -var ArrayIterator = require('es6-iterator/array') -var iterator = new ArrayIterator([1, 2, 3], 'key+value'); - -iterator.next(); // { value: [0, 1], done: false } -iterator.next(); // { value: [1, 2], done: false } -iterator.next(); // { value: [2, 3], done: false } -iterator.next(); // { value: undefined, done: true } -``` - -May also be used for _arguments_ objects: - -```javascript -(function () { - var iterator = new ArrayIterator(arguments); - - iterator.next(); // { value: 1, done: false } - iterator.next(); // { value: 2, done: false } - iterator.next(); // { value: 3, done: false } - iterator.next(); // { value: undefined, done: true } -}(1, 2, 3)); -``` - -#### StringIterator(str) _(es6-iterator/string)_ - -Assures proper iteration over unicode symbols. -See: http://mathiasbynens.be/notes/javascript-unicode - -```javascript -var StringIterator = require('es6-iterator/string'); -var iterator = new StringIterator('f🙈o🙉o🙊'); - -iterator.next(); // { value: 'f', done: false } -iterator.next(); // { value: '🙈', done: false } -iterator.next(); // { value: 'o', done: false } -iterator.next(); // { value: '🙉', done: false } -iterator.next(); // { value: 'o', done: false } -iterator.next(); // { value: '🙊', done: false } -iterator.next(); // { value: undefined, done: true } -``` - -### Function utilities - -#### forOf(iterable, callback[, thisArg]) _(es6-iterator/for-of)_ - -Polyfill for ECMAScript 6 [`for...of`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/for...of) statement. - -``` -var forOf = require('es6-iterator/for-of'); -var result = []; - -forOf('🙈🙉🙊', function (monkey) { result.push(monkey); }); -console.log(result); // ['🙈', '🙉', '🙊']; -``` - -Optionally you can break iteration at any point: - -```javascript -var result = []; - -forOf([1,2,3,4]', function (val, doBreak) { - result.push(monkey); - if (val >= 3) doBreak(); -}); -console.log(result); // [1, 2, 3]; -``` - -#### get(obj) _(es6-iterator/get)_ - -Return iterator for any iterable object. - -```javascript -var getIterator = require('es6-iterator/get'); -var iterator = get([1,2,3]); - -iterator.next(); // { value: 1, done: false } -iterator.next(); // { value: 2, done: false } -iterator.next(); // { value: 3, done: false } -iterator.next(); // { value: undefined, done: true } -``` - -#### isIterable(obj) _(es6-iterator/is-iterable)_ - -Whether _obj_ is iterable - -```javascript -var isIterable = require('es6-iterator/is-iterable'); - -isIterable(null); // false -isIterable(true); // false -isIterable('str'); // true -isIterable(['a', 'r', 'r']); // true -isIterable(new ArrayIterator([])); // true -``` - -#### validIterable(obj) _(es6-iterator/valid-iterable)_ - -If _obj_ is an iterable it is returned. Otherwise _TypeError_ is thrown. - -### Method extensions - -#### iterator.chain(iterator1[, …iteratorn]) _(es6-iterator/#/chain)_ - -Chain multiple iterators into one. - -### Tests [![Build Status](https://travis-ci.org/medikoo/es6-iterator.png)](https://travis-ci.org/medikoo/es6-iterator) - - $ npm test diff --git a/node_modules/es6-iterator/appveyor.yml b/node_modules/es6-iterator/appveyor.yml deleted file mode 100644 index 942ab827..00000000 --- a/node_modules/es6-iterator/appveyor.yml +++ /dev/null @@ -1,26 +0,0 @@ -# Test against the latest version of this Node.js version -environment: - matrix: - # node.js - - nodejs_version: "0.12" - - nodejs_version: "4" - - nodejs_version: "6" - - nodejs_version: "8" - -# Install scripts. (runs after repo cloning) -install: - # Get the latest stable version of Node.js or io.js - - ps: Install-Product node $env:nodejs_version - # install modules - - npm install - -# Post-install test scripts. -test_script: - # Output useful info for debugging. - - node --version - - npm --version - # run tests - - npm test - -# Don't actually build. -build: off diff --git a/node_modules/es6-iterator/array.js b/node_modules/es6-iterator/array.js deleted file mode 100644 index d7a46a48..00000000 --- a/node_modules/es6-iterator/array.js +++ /dev/null @@ -1,32 +0,0 @@ -"use strict"; - -var setPrototypeOf = require("es5-ext/object/set-prototype-of") - , contains = require("es5-ext/string/#/contains") - , d = require("d") - , Symbol = require("es6-symbol") - , Iterator = require("./"); - -var defineProperty = Object.defineProperty, ArrayIterator; - -ArrayIterator = module.exports = function (arr, kind) { - if (!(this instanceof ArrayIterator)) throw new TypeError("Constructor requires 'new'"); - Iterator.call(this, arr); - if (!kind) kind = "value"; - else if (contains.call(kind, "key+value")) kind = "key+value"; - else if (contains.call(kind, "key")) kind = "key"; - else kind = "value"; - defineProperty(this, "__kind__", d("", kind)); -}; -if (setPrototypeOf) setPrototypeOf(ArrayIterator, Iterator); - -// Internal %ArrayIteratorPrototype% doesn't expose its constructor -delete ArrayIterator.prototype.constructor; - -ArrayIterator.prototype = Object.create(Iterator.prototype, { - _resolve: d(function (i) { - if (this.__kind__ === "value") return this.__list__[i]; - if (this.__kind__ === "key+value") return [i, this.__list__[i]]; - return i; - }) -}); -defineProperty(ArrayIterator.prototype, Symbol.toStringTag, d("c", "Array Iterator")); diff --git a/node_modules/es6-iterator/for-of.js b/node_modules/es6-iterator/for-of.js deleted file mode 100644 index 5d15c349..00000000 --- a/node_modules/es6-iterator/for-of.js +++ /dev/null @@ -1,47 +0,0 @@ -"use strict"; - -var isArguments = require("es5-ext/function/is-arguments") - , callable = require("es5-ext/object/valid-callable") - , isString = require("es5-ext/string/is-string") - , get = require("./get"); - -var isArray = Array.isArray, call = Function.prototype.call, some = Array.prototype.some; - -module.exports = function (iterable, cb /*, thisArg*/) { - var mode, thisArg = arguments[2], result, doBreak, broken, i, length, char, code; - if (isArray(iterable) || isArguments(iterable)) mode = "array"; - else if (isString(iterable)) mode = "string"; - else iterable = get(iterable); - - callable(cb); - doBreak = function () { - broken = true; - }; - if (mode === "array") { - some.call(iterable, function (value) { - call.call(cb, thisArg, value, doBreak); - return broken; - }); - return; - } - if (mode === "string") { - length = iterable.length; - for (i = 0; i < length; ++i) { - char = iterable[i]; - if (i + 1 < length) { - code = char.charCodeAt(0); - if (code >= 0xd800 && code <= 0xdbff) char += iterable[++i]; - } - call.call(cb, thisArg, char, doBreak); - if (broken) break; - } - return; - } - result = iterable.next(); - - while (!result.done) { - call.call(cb, thisArg, result.value, doBreak); - if (broken) return; - result = iterable.next(); - } -}; diff --git a/node_modules/es6-iterator/get.js b/node_modules/es6-iterator/get.js deleted file mode 100644 index d36c9e24..00000000 --- a/node_modules/es6-iterator/get.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; - -var isArguments = require("es5-ext/function/is-arguments") - , isString = require("es5-ext/string/is-string") - , ArrayIterator = require("./array") - , StringIterator = require("./string") - , iterable = require("./valid-iterable") - , iteratorSymbol = require("es6-symbol").iterator; - -module.exports = function (obj) { - if (typeof iterable(obj)[iteratorSymbol] === "function") return obj[iteratorSymbol](); - if (isArguments(obj)) return new ArrayIterator(obj); - if (isString(obj)) return new StringIterator(obj); - return new ArrayIterator(obj); -}; diff --git a/node_modules/es6-iterator/index.js b/node_modules/es6-iterator/index.js deleted file mode 100644 index 790475fd..00000000 --- a/node_modules/es6-iterator/index.js +++ /dev/null @@ -1,106 +0,0 @@ -"use strict"; - -var clear = require("es5-ext/array/#/clear") - , assign = require("es5-ext/object/assign") - , callable = require("es5-ext/object/valid-callable") - , value = require("es5-ext/object/valid-value") - , d = require("d") - , autoBind = require("d/auto-bind") - , Symbol = require("es6-symbol"); - -var defineProperty = Object.defineProperty, defineProperties = Object.defineProperties, Iterator; - -module.exports = Iterator = function (list, context) { - if (!(this instanceof Iterator)) throw new TypeError("Constructor requires 'new'"); - defineProperties(this, { - __list__: d("w", value(list)), - __context__: d("w", context), - __nextIndex__: d("w", 0) - }); - if (!context) return; - callable(context.on); - context.on("_add", this._onAdd); - context.on("_delete", this._onDelete); - context.on("_clear", this._onClear); -}; - -// Internal %IteratorPrototype% doesn't expose its constructor -delete Iterator.prototype.constructor; - -defineProperties( - Iterator.prototype, - assign( - { - _next: d(function () { - var i; - if (!this.__list__) return undefined; - if (this.__redo__) { - i = this.__redo__.shift(); - if (i !== undefined) return i; - } - if (this.__nextIndex__ < this.__list__.length) return this.__nextIndex__++; - this._unBind(); - return undefined; - }), - next: d(function () { - return this._createResult(this._next()); - }), - _createResult: d(function (i) { - if (i === undefined) return { done: true, value: undefined }; - return { done: false, value: this._resolve(i) }; - }), - _resolve: d(function (i) { - return this.__list__[i]; - }), - _unBind: d(function () { - this.__list__ = null; - delete this.__redo__; - if (!this.__context__) return; - this.__context__.off("_add", this._onAdd); - this.__context__.off("_delete", this._onDelete); - this.__context__.off("_clear", this._onClear); - this.__context__ = null; - }), - toString: d(function () { - return "[object " + (this[Symbol.toStringTag] || "Object") + "]"; - }) - }, - autoBind({ - _onAdd: d(function (index) { - if (index >= this.__nextIndex__) return; - ++this.__nextIndex__; - if (!this.__redo__) { - defineProperty(this, "__redo__", d("c", [index])); - return; - } - this.__redo__.forEach(function (redo, i) { - if (redo >= index) this.__redo__[i] = ++redo; - }, this); - this.__redo__.push(index); - }), - _onDelete: d(function (index) { - var i; - if (index >= this.__nextIndex__) return; - --this.__nextIndex__; - if (!this.__redo__) return; - i = this.__redo__.indexOf(index); - if (i !== -1) this.__redo__.splice(i, 1); - this.__redo__.forEach(function (redo, j) { - if (redo > index) this.__redo__[j] = --redo; - }, this); - }), - _onClear: d(function () { - if (this.__redo__) clear.call(this.__redo__); - this.__nextIndex__ = 0; - }) - }) - ) -); - -defineProperty( - Iterator.prototype, - Symbol.iterator, - d(function () { - return this; - }) -); diff --git a/node_modules/es6-iterator/is-iterable.js b/node_modules/es6-iterator/is-iterable.js deleted file mode 100644 index cda7dfeb..00000000 --- a/node_modules/es6-iterator/is-iterable.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; - -var isArguments = require("es5-ext/function/is-arguments") - , isValue = require("es5-ext/object/is-value") - , isString = require("es5-ext/string/is-string"); - -var iteratorSymbol = require("es6-symbol").iterator - , isArray = Array.isArray; - -module.exports = function (value) { - if (!isValue(value)) return false; - if (isArray(value)) return true; - if (isString(value)) return true; - if (isArguments(value)) return true; - return typeof value[iteratorSymbol] === "function"; -}; diff --git a/node_modules/es6-iterator/package.json b/node_modules/es6-iterator/package.json deleted file mode 100644 index bc2582ab..00000000 --- a/node_modules/es6-iterator/package.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "name": "es6-iterator", - "version": "2.0.3", - "description": "Iterator abstraction based on ES6 specification", - "author": "Mariusz Nowak (http://www.medikoo.com/)", - "keywords": [ - "iterator", - "array", - "list", - "set", - "map", - "generator" - ], - "repository": { - "type": "git", - "url": "git://github.com/medikoo/es6-iterator.git" - }, - "dependencies": { - "d": "1", - "es5-ext": "^0.10.35", - "es6-symbol": "^3.1.1" - }, - "devDependencies": { - "eslint": "^4.9", - "eslint-config-medikoo-es5": "^1.4.4", - "event-emitter": "^0.3.5", - "tad": "^0.2.7" - }, - "eslintConfig": { - "extends": "medikoo-es5", - "root": true, - "rules": { - "no-extend-native": "off" - } - }, - "scripts": { - "lint": "eslint --ignore-path=.gitignore .", - "test": "node ./node_modules/tad/bin/tad" - }, - "license": "MIT" -} diff --git a/node_modules/es6-iterator/string.js b/node_modules/es6-iterator/string.js deleted file mode 100644 index 48882252..00000000 --- a/node_modules/es6-iterator/string.js +++ /dev/null @@ -1,39 +0,0 @@ -// Thanks @mathiasbynens -// http://mathiasbynens.be/notes/javascript-unicode#iterating-over-symbols - -"use strict"; - -var setPrototypeOf = require("es5-ext/object/set-prototype-of") - , d = require("d") - , Symbol = require("es6-symbol") - , Iterator = require("./"); - -var defineProperty = Object.defineProperty, StringIterator; - -StringIterator = module.exports = function (str) { - if (!(this instanceof StringIterator)) throw new TypeError("Constructor requires 'new'"); - str = String(str); - Iterator.call(this, str); - defineProperty(this, "__length__", d("", str.length)); -}; -if (setPrototypeOf) setPrototypeOf(StringIterator, Iterator); - -// Internal %ArrayIteratorPrototype% doesn't expose its constructor -delete StringIterator.prototype.constructor; - -StringIterator.prototype = Object.create(Iterator.prototype, { - _next: d(function () { - if (!this.__list__) return undefined; - if (this.__nextIndex__ < this.__length__) return this.__nextIndex__++; - this._unBind(); - return undefined; - }), - _resolve: d(function (i) { - var char = this.__list__[i], code; - if (this.__nextIndex__ === this.__length__) return char; - code = char.charCodeAt(0); - if (code >= 0xd800 && code <= 0xdbff) return char + this.__list__[this.__nextIndex__++]; - return char; - }) -}); -defineProperty(StringIterator.prototype, Symbol.toStringTag, d("c", "String Iterator")); diff --git a/node_modules/es6-iterator/test/#/chain.js b/node_modules/es6-iterator/test/#/chain.js deleted file mode 100644 index 457356f2..00000000 --- a/node_modules/es6-iterator/test/#/chain.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; - -var Iterator = require("../../"); - -module.exports = function (t, a) { - var i1 = new Iterator(["raz", "dwa", "trzy"]) - , i2 = new Iterator(["cztery", "pięć", "sześć"]) - , i3 = new Iterator(["siedem", "osiem", "dziewięć"]) - - , iterator = t.call(i1, i2, i3); - - a.deep(iterator.next(), { done: false, value: "raz" }, "#1"); - a.deep(iterator.next(), { done: false, value: "dwa" }, "#2"); - a.deep(iterator.next(), { done: false, value: "trzy" }, "#3"); - a.deep(iterator.next(), { done: false, value: "cztery" }, "#4"); - a.deep(iterator.next(), { done: false, value: "pięć" }, "#5"); - a.deep(iterator.next(), { done: false, value: "sześć" }, "#6"); - a.deep(iterator.next(), { done: false, value: "siedem" }, "#7"); - a.deep(iterator.next(), { done: false, value: "osiem" }, "#8"); - a.deep(iterator.next(), { done: false, value: "dziewięć" }, "#9"); - a.deep(iterator.next(), { done: true, value: undefined }, "Done #1"); - a.deep(iterator.next(), { done: true, value: undefined }, "Done #2"); -}; diff --git a/node_modules/es6-iterator/test/.eslintrc.json b/node_modules/es6-iterator/test/.eslintrc.json deleted file mode 100644 index 99f0b655..00000000 --- a/node_modules/es6-iterator/test/.eslintrc.json +++ /dev/null @@ -1,5 +0,0 @@ -{ - "rules": { - "id-length": "off" - } -} diff --git a/node_modules/es6-iterator/test/array.js b/node_modules/es6-iterator/test/array.js deleted file mode 100644 index 447dfa73..00000000 --- a/node_modules/es6-iterator/test/array.js +++ /dev/null @@ -1,67 +0,0 @@ -"use strict"; - -var iteratorSymbol = require("es6-symbol").iterator; - -module.exports = function (T) { - return { - "Values": function (a) { - var x = ["raz", "dwa", "trzy", "cztery", "pięć", "sześć"], it; - - it = new T(x); - a(it[iteratorSymbol](), it, "@@iterator"); - a.deep(it.next(), { done: false, value: "raz" }, "#1"); - a.deep(it.next(), { done: false, value: "dwa" }, "#2"); - x.splice(1, 0, "elo"); - a.deep(it.next(), { done: false, value: "dwa" }, "Insert"); - a.deep(it.next(), { done: false, value: "trzy" }, "#3"); - a.deep(it.next(), { done: false, value: "cztery" }, "#4"); - x.pop(); - a.deep(it.next(), { done: false, value: "pięć" }, "#5"); - a.deep(it.next(), { done: true, value: undefined }, "End"); - }, - "Keys & Values": function (a) { - var x = ["raz", "dwa", "trzy", "cztery", "pięć", "sześć"], it; - - it = new T(x, "key+value"); - a(it[iteratorSymbol](), it, "@@iterator"); - a.deep(it.next(), { done: false, value: [0, "raz"] }, "#1"); - a.deep(it.next(), { done: false, value: [1, "dwa"] }, "#2"); - x.splice(1, 0, "elo"); - a.deep(it.next(), { done: false, value: [2, "dwa"] }, "Insert"); - a.deep(it.next(), { done: false, value: [3, "trzy"] }, "#3"); - a.deep(it.next(), { done: false, value: [4, "cztery"] }, "#4"); - x.pop(); - a.deep(it.next(), { done: false, value: [5, "pięć"] }, "#5"); - a.deep(it.next(), { done: true, value: undefined }, "End"); - }, - "Keys": function (a) { - var x = ["raz", "dwa", "trzy", "cztery", "pięć", "sześć"], it; - - it = new T(x, "key"); - a(it[iteratorSymbol](), it, "@@iterator"); - a.deep(it.next(), { done: false, value: 0 }, "#1"); - a.deep(it.next(), { done: false, value: 1 }, "#2"); - x.splice(1, 0, "elo"); - a.deep(it.next(), { done: false, value: 2 }, "Insert"); - a.deep(it.next(), { done: false, value: 3 }, "#3"); - a.deep(it.next(), { done: false, value: 4 }, "#4"); - x.pop(); - a.deep(it.next(), { done: false, value: 5 }, "#5"); - a.deep(it.next(), { done: true, value: undefined }, "End"); - }, - "Sparse": function (a) { - var x = new Array(6), it; - - x[2] = "raz"; - x[4] = "dwa"; - it = new T(x); - a.deep(it.next(), { done: false, value: undefined }, "#1"); - a.deep(it.next(), { done: false, value: undefined }, "#2"); - a.deep(it.next(), { done: false, value: "raz" }, "#3"); - a.deep(it.next(), { done: false, value: undefined }, "#4"); - a.deep(it.next(), { done: false, value: "dwa" }, "#5"); - a.deep(it.next(), { done: false, value: undefined }, "#6"); - a.deep(it.next(), { done: true, value: undefined }, "End"); - } - }; -}; diff --git a/node_modules/es6-iterator/test/for-of.js b/node_modules/es6-iterator/test/for-of.js deleted file mode 100644 index 9b47e979..00000000 --- a/node_modules/es6-iterator/test/for-of.js +++ /dev/null @@ -1,42 +0,0 @@ -"use strict"; - -var ArrayIterator = require("../array") - - , slice = Array.prototype.slice; - -module.exports = function (t, a) { - var i = 0, x = ["raz", "dwa", "trzy"], y = {}, called = 0; - t(x, function () { - a.deep(slice.call(arguments, 0, 1), [x[i]], "Array " + i + "#"); - a(this, y, "Array: context: " + i++ + "#"); - }, y); - i = 0; - t((function () { - return arguments; -}("raz", "dwa", "trzy")), function () { - a.deep(slice.call(arguments, 0, 1), [x[i]], "Arguments" + i + "#"); - a(this, y, "Arguments: context: " + i++ + "#"); - }, y); - i = 0; - t(x = "foo", function () { - a.deep(slice.call(arguments, 0, 1), [x[i]], "String " + i + "#"); - a(this, y, "Regular String: context: " + i++ + "#"); - }, y); - i = 0; - x = ["r", "💩", "z"]; - t("r💩z", function () { - a.deep(slice.call(arguments, 0, 1), [x[i]], "String " + i + "#"); - a(this, y, "Unicode String: context: " + i++ + "#"); - }, y); - i = 0; - t(new ArrayIterator(x), function () { - a.deep(slice.call(arguments, 0, 1), [x[i]], "Iterator " + i + "#"); - a(this, y, "Iterator: context: " + i++ + "#"); - }, y); - - t(x = ["raz", "dwa", "trzy"], function (value, doBreak) { - ++called; - return doBreak(); - }); - a(called, 1, "Break"); -}; diff --git a/node_modules/es6-iterator/test/get.js b/node_modules/es6-iterator/test/get.js deleted file mode 100644 index c5947d3e..00000000 --- a/node_modules/es6-iterator/test/get.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; - -var iteratorSymbol = require("es6-symbol").iterator - , Iterator = require("../"); - -module.exports = function (t, a) { - var iterator; - a.throws(function () { - t(); -}, TypeError, "Null"); - a.throws(function () { - t({}); -}, TypeError, "Plain object"); - a.throws(function () { - t({ length: 0 }); -}, TypeError, "Array-like"); - iterator = {}; - iterator[iteratorSymbol] = function () { - return new Iterator([]); -}; - a(t(iterator) instanceof Iterator, true, "Iterator"); - a(String(t([])), "[object Array Iterator]", " Array"); - a(String(t(function () { - return arguments; -}())), "[object Array Iterator]", " Arguments"); - a(String(t("foo")), "[object String Iterator]", "String"); -}; diff --git a/node_modules/es6-iterator/test/index.js b/node_modules/es6-iterator/test/index.js deleted file mode 100644 index 48982185..00000000 --- a/node_modules/es6-iterator/test/index.js +++ /dev/null @@ -1,99 +0,0 @@ -"use strict"; - -var ee = require("event-emitter") - , iteratorSymbol = require("es6-symbol").iterator; - -module.exports = function (T) { - return { - "": function (a) { - var x = ["raz", "dwa", "trzy", "cztery", "pięć"], it, y, z; - - it = new T(x); - a(it[iteratorSymbol](), it, "@@iterator"); - y = it.next(); - a.deep(y, { done: false, value: "raz" }, "#1"); - z = it.next(); - a.not(y, z, "Recreate result"); - a.deep(z, { done: false, value: "dwa" }, "#2"); - a.deep(it.next(), { done: false, value: "trzy" }, "#3"); - a.deep(it.next(), { done: false, value: "cztery" }, "#4"); - a.deep(it.next(), { done: false, value: "pięć" }, "#5"); - a.deep(y = it.next(), { done: true, value: undefined }, "End"); - a.not(y, it.next(), "Recreate result on dead"); - }, - "Emited": function (a) { - var x = ["raz", "dwa", "trzy", "cztery", "pięć"], y, it; - - y = ee(); - it = new T(x, y); - a.deep(it.next(), { done: false, value: "raz" }, "#1"); - a.deep(it.next(), { done: false, value: "dwa" }, "#2"); - y.emit("_add", x.push("sześć") - 1); - a.deep(it.next(), { done: false, value: "trzy" }, "#3"); - x.splice(1, 0, "półtora"); - y.emit("_add", 1); - a.deep(it.next(), { done: false, value: "półtora" }, "Insert"); - x.splice(5, 1); - y.emit("_delete", 5); - a.deep(it.next(), { done: false, value: "cztery" }, "#4"); - a.deep(it.next(), { done: false, value: "sześć" }, "#5"); - a.deep(it.next(), { done: true, value: undefined }, "End"); - }, - "Emited #2": function (a) { - var x = ["raz", "dwa", "trzy", "cztery", "pięć", "sześć"], y, it; - - y = ee(); - it = new T(x, y); - a.deep(it.next(), { done: false, value: "raz" }, "#1"); - a.deep(it.next(), { done: false, value: "dwa" }, "#2"); - x.splice(1, 0, "półtora"); - y.emit("_add", 1); - x.splice(1, 0, "1.25"); - y.emit("_add", 1); - x.splice(0, 1); - y.emit("_delete", 0); - a.deep(it.next(), { done: false, value: "półtora" }, "Insert"); - a.deep(it.next(), { done: false, value: "1.25" }, "Insert #2"); - a.deep(it.next(), { done: false, value: "trzy" }, "#3"); - a.deep(it.next(), { done: false, value: "cztery" }, "#4"); - x.splice(5, 1); - y.emit("_delete", 5); - a.deep(it.next(), { done: false, value: "sześć" }, "#5"); - a.deep(it.next(), { done: true, value: undefined }, "End"); - }, - "Emited: Clear #1": function (a) { - var x = ["raz", "dwa", "trzy", "cztery", "pięć", "sześć"], y, it; - - y = ee(); - it = new T(x, y); - a.deep(it.next(), { done: false, value: "raz" }, "#1"); - a.deep(it.next(), { done: false, value: "dwa" }, "#2"); - x.length = 0; - y.emit("_clear"); - a.deep(it.next(), { done: true, value: undefined }, "End"); - }, - "Emited: Clear #2": function (a) { - var x = ["raz", "dwa", "trzy", "cztery", "pięć", "sześć"], y, it; - - y = ee(); - it = new T(x, y); - a.deep(it.next(), { done: false, value: "raz" }, "#1"); - a.deep(it.next(), { done: false, value: "dwa" }, "#2"); - x.length = 0; - y.emit("_clear"); - x.push("foo"); - x.push("bar"); - a.deep(it.next(), { done: false, value: "foo" }, "#3"); - a.deep(it.next(), { done: false, value: "bar" }, "#4"); - x.splice(1, 0, "półtora"); - y.emit("_add", 1); - x.splice(1, 0, "1.25"); - y.emit("_add", 1); - x.splice(0, 1); - y.emit("_delete", 0); - a.deep(it.next(), { done: false, value: "półtora" }, "Insert"); - a.deep(it.next(), { done: false, value: "1.25" }, "Insert #2"); - a.deep(it.next(), { done: true, value: undefined }, "End"); - } - }; -}; diff --git a/node_modules/es6-iterator/test/is-iterable.js b/node_modules/es6-iterator/test/is-iterable.js deleted file mode 100644 index 5787351a..00000000 --- a/node_modules/es6-iterator/test/is-iterable.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; - -var iteratorSymbol = require("es6-symbol").iterator - , Iterator = require("../"); - -module.exports = function (t, a) { - var iterator; - a(t(), false, "Undefined"); - a(t(123), false, "Number"); - a(t({}), false, "Plain object"); - a(t({ length: 0 }), false, "Array-like"); - iterator = {}; - iterator[iteratorSymbol] = function () { - return new Iterator([]); -}; - a(t(iterator), true, "Iterator"); - a(t([]), true, "Array"); - a(t("foo"), true, "String"); - a(t(""), true, "Empty string"); - a(t(function () { - return arguments; -}()), true, "Arguments"); -}; diff --git a/node_modules/es6-iterator/test/string.js b/node_modules/es6-iterator/test/string.js deleted file mode 100644 index 3f2a5b67..00000000 --- a/node_modules/es6-iterator/test/string.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; - -var iteratorSymbol = require("es6-symbol").iterator; - -module.exports = function (T, a) { - var it = new T("foobar"); - - a(it[iteratorSymbol](), it, "@@iterator"); - a.deep(it.next(), { done: false, value: "f" }, "#1"); - a.deep(it.next(), { done: false, value: "o" }, "#2"); - a.deep(it.next(), { done: false, value: "o" }, "#3"); - a.deep(it.next(), { done: false, value: "b" }, "#4"); - a.deep(it.next(), { done: false, value: "a" }, "#5"); - a.deep(it.next(), { done: false, value: "r" }, "#6"); - a.deep(it.next(), { done: true, value: undefined }, "End"); - - a.h1("Outside of BMP"); - it = new T("r💩z"); - a.deep(it.next(), { done: false, value: "r" }, "#1"); - a.deep(it.next(), { done: false, value: "💩" }, "#2"); - a.deep(it.next(), { done: false, value: "z" }, "#3"); - a.deep(it.next(), { done: true, value: undefined }, "End"); -}; diff --git a/node_modules/es6-iterator/test/valid-iterable.js b/node_modules/es6-iterator/test/valid-iterable.js deleted file mode 100644 index b8b2a8a6..00000000 --- a/node_modules/es6-iterator/test/valid-iterable.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; - -var iteratorSymbol = require("es6-symbol").iterator - , Iterator = require("../"); - -module.exports = function (t, a) { - var obj; - a.throws(function () { - t(); -}, TypeError, "Undefined"); - a.throws(function () { - t({}); -}, TypeError, "Plain object"); - a.throws(function () { - t({ length: 0 }); -}, TypeError, "Array-like"); - obj = {}; - obj[iteratorSymbol] = function () { - return new Iterator([]); -}; - a(t(obj), obj, "Iterator"); - obj = []; - a(t(obj), obj, "Array"); - obj = (function () { - return arguments; -}()); - a(t(obj), obj, "Arguments"); -}; diff --git a/node_modules/es6-iterator/valid-iterable.js b/node_modules/es6-iterator/valid-iterable.js deleted file mode 100644 index 8c6e0715..00000000 --- a/node_modules/es6-iterator/valid-iterable.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; - -var isIterable = require("./is-iterable"); - -module.exports = function (value) { - if (!isIterable(value)) throw new TypeError(value + " is not iterable"); - return value; -}; diff --git a/node_modules/es6-symbol/.editorconfig b/node_modules/es6-symbol/.editorconfig deleted file mode 100755 index bd6d81ee..00000000 --- a/node_modules/es6-symbol/.editorconfig +++ /dev/null @@ -1,16 +0,0 @@ -# EditorConfig is awesome: http://EditorConfig.org - -# top-most EditorConfig file -root = true - -[*] -charset = utf-8 -end_of_line = lf -insert_final_newline = true -indent_style = tab -trim_trailing_whitespace = true - -[*.md] -indent_size = 2 -indent_style = space -trim_trailing_whitespace = false diff --git a/node_modules/es6-symbol/.github/FUNDING.yml b/node_modules/es6-symbol/.github/FUNDING.yml deleted file mode 100644 index 81c96d72..00000000 --- a/node_modules/es6-symbol/.github/FUNDING.yml +++ /dev/null @@ -1 +0,0 @@ -tidelift: "npm/es6-symbol" diff --git a/node_modules/es6-symbol/.testignore b/node_modules/es6-symbol/.testignore deleted file mode 100644 index b5b5cd18..00000000 --- a/node_modules/es6-symbol/.testignore +++ /dev/null @@ -1 +0,0 @@ -/lib/private diff --git a/node_modules/es6-symbol/CHANGELOG.md b/node_modules/es6-symbol/CHANGELOG.md deleted file mode 100644 index 60cf2b79..00000000 --- a/node_modules/es6-symbol/CHANGELOG.md +++ /dev/null @@ -1,16 +0,0 @@ -# Changelog - -All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. - -### [3.1.3](https://github.com/medikoo/es6-symbol/compare/v3.1.2...v3.1.3) (2019-10-29) - -### [3.1.2](https://github.com/medikoo/es6-symbol/compare/v3.1.1...v3.1.2) (2019-09-04) - -- Access `Symbol` from a global object. Makes implementation more bulletproof, as it's safe against shadowing the `Symbol` variable e.g. in script scope, or as it's practiced by some bundlers as Webpack (thanks [@cyborgx37](https://github.com/medikoo/es6-symbol/pull/30)) -- Switch license from MIT to ISC -- Switch linter to ESLint -- Configure Prettier - -## Changelog for previous versions - -See `CHANGES` file diff --git a/node_modules/es6-symbol/CHANGES b/node_modules/es6-symbol/CHANGES deleted file mode 100644 index ef0cbdaf..00000000 --- a/node_modules/es6-symbol/CHANGES +++ /dev/null @@ -1,61 +0,0 @@ -For recent changelog see CHANGELOG.md - ------ - -v3.1.1 -- 2017.03.15 -* Improve documentation -* Improve error messages -* Update dependencies - -v3.1.0 -- 2016.06.03 -* Fix internals of symbol detection -* Ensure Symbol.prototype[Symbol.toPrimitive] in all cases returns primitive value - (fixes Node v6 support) -* Create native symbols whenver possible - -v3.0.2 -- 2015.12.12 -* Fix definition flow, so uneven state of Symbol implementation doesn't crash initialization of - polyfill. See #13 - -v3.0.1 -- 2015.10.22 -* Workaround for IE11 bug (reported in #12) - -v3.0.0 -- 2015.10.02 -* Reuse native symbols (e.g. iterator, toStringTag etc.) in a polyfill if they're available - Otherwise polyfill symbols may not be recognized by other functions -* Improve documentation - -v2.0.1 -- 2015.01.28 -* Fix Symbol.prototype[Symbol.isPrimitive] implementation -* Improve validation within Symbol.prototype.toString and - Symbol.prototype.valueOf - -v2.0.0 -- 2015.01.28 -* Update up to changes in specification: - * Implement `for` and `keyFor` - * Remove `Symbol.create` and `Symbol.isRegExp` - * Add `Symbol.match`, `Symbol.replace`, `Symbol.search`, `Symbol.species` and - `Symbol.split` -* Rename `validSymbol` to `validateSymbol` -* Improve documentation -* Remove dead test modules - -v1.0.0 -- 2015.01.26 -* Fix enumerability for symbol properties set normally (e.g. obj[symbol] = value) -* Introduce initialization via hidden constructor -* Fix isSymbol handling of polyfill values when native Symbol is present -* Fix spelling of LICENSE -* Configure lint scripts - -v0.1.1 -- 2014.10.07 -* Fix isImplemented, so it returns true in case of polyfill -* Improve documentations - -v0.1.0 -- 2014.04.28 -* Assure strictly npm dependencies -* Update to use latest versions of dependencies -* Fix implementation detection so it doesn't crash on `String(symbol)` -* throw on `new Symbol()` (as decided by TC39) - -v0.0.0 -- 2013.11.15 -* Initial (dev) version diff --git a/node_modules/es6-symbol/LICENSE b/node_modules/es6-symbol/LICENSE deleted file mode 100644 index 44745e26..00000000 --- a/node_modules/es6-symbol/LICENSE +++ /dev/null @@ -1,15 +0,0 @@ -ISC License - -Copyright (c) 2013-2019, Mariusz Nowak, @medikoo, medikoo.com - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE -OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. diff --git a/node_modules/es6-symbol/README.md b/node_modules/es6-symbol/README.md deleted file mode 100644 index d247122d..00000000 --- a/node_modules/es6-symbol/README.md +++ /dev/null @@ -1,104 +0,0 @@ -[![Build status][nix-build-image]][nix-build-url] -[![Windows status][win-build-image]][win-build-url] -![Transpilation status][transpilation-image] -[![npm version][npm-image]][npm-url] - -# es6-symbol - -## ECMAScript 6 Symbol polyfill - -For more information about symbols see following links - -- [Symbols in ECMAScript 6 by Axel Rauschmayer](http://www.2ality.com/2014/12/es6-symbols.html) -- [MDN Documentation](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Symbol) -- [Specification](https://tc39.github.io/ecma262/#sec-symbol-objects) - -### Limitations - -Underneath it uses real string property names which can easily be retrieved, however accidental collision with other property names is unlikely. - -### Usage - -If you'd like to use native version when it exists and fallback to [ponyfill](https://ponyfill.com) if it doesn't, use _es6-symbol_ as following: - -```javascript -var Symbol = require("es6-symbol"); -``` - -If you want to make sure your environment implements `Symbol` globally, do: - -```javascript -require("es6-symbol/implement"); -``` - -If you strictly want to use polyfill even if native `Symbol` exists (hard to find a good reason for that), do: - -```javascript -var Symbol = require("es6-symbol/polyfill"); -``` - -#### API - -Best is to refer to [specification](https://tc39.github.io/ecma262/#sec-symbol-objects). Still if you want quick look, follow examples: - -```javascript -var Symbol = require("es6-symbol"); - -var symbol = Symbol("My custom symbol"); -var x = {}; - -x[symbol] = "foo"; -console.log(x[symbol]); -("foo"); - -// Detect iterable: -var iterator, result; -if (possiblyIterable[Symbol.iterator]) { - iterator = possiblyIterable[Symbol.iterator](); - result = iterator.next(); - while (!result.done) { - console.log(result.value); - result = iterator.next(); - } -} -``` - -### Installation - -#### NPM - -In your project path: - - $ npm install es6-symbol - -##### Browser - -To port it to Browser or any other (non CJS) environment, use your favorite CJS bundler. No favorite yet? Try: [Browserify](http://browserify.org/), [Webmake](https://github.com/medikoo/modules-webmake) or [Webpack](http://webpack.github.io/) - -## Tests - - $ npm test - -## Security contact information - -To report a security vulnerability, please use the [Tidelift security contact](https://tidelift.com/security). Tidelift will coordinate the fix and disclosure. - ---- - -
- - Get professional support for d with a Tidelift subscription - -
- - Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies. -
-
- -[nix-build-image]: https://semaphoreci.com/api/v1/medikoo-org/es6-symbol/branches/master/shields_badge.svg -[nix-build-url]: https://semaphoreci.com/medikoo-org/es6-symbol -[win-build-image]: https://ci.appveyor.com/api/projects/status/1s743lt3el278anj?svg=true -[win-build-url]: https://ci.appveyor.com/project/medikoo/es6-symbol -[transpilation-image]: https://img.shields.io/badge/transpilation-free-brightgreen.svg -[npm-image]: https://img.shields.io/npm/v/es6-symbol.svg -[npm-url]: https://www.npmjs.com/package/es6-symbol diff --git a/node_modules/es6-symbol/implement.js b/node_modules/es6-symbol/implement.js deleted file mode 100644 index d62803bd..00000000 --- a/node_modules/es6-symbol/implement.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -if (!require("./is-implemented")()) { - Object.defineProperty(require("ext/global-this"), "Symbol", { - value: require("./polyfill"), - configurable: true, - enumerable: false, - writable: true - }); -} diff --git a/node_modules/es6-symbol/index.js b/node_modules/es6-symbol/index.js deleted file mode 100644 index fcd8a630..00000000 --- a/node_modules/es6-symbol/index.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; - -module.exports = require("./is-implemented")() - ? require("ext/global-this").Symbol - : require("./polyfill"); diff --git a/node_modules/es6-symbol/is-implemented.js b/node_modules/es6-symbol/is-implemented.js deleted file mode 100644 index b85ec694..00000000 --- a/node_modules/es6-symbol/is-implemented.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; - -var global = require("ext/global-this") - , validTypes = { object: true, symbol: true }; - -module.exports = function () { - var Symbol = global.Symbol; - var symbol; - if (typeof Symbol !== "function") return false; - symbol = Symbol("test symbol"); - try { String(symbol); } - catch (e) { return false; } - - // Return 'true' also for polyfills - if (!validTypes[typeof Symbol.iterator]) return false; - if (!validTypes[typeof Symbol.toPrimitive]) return false; - if (!validTypes[typeof Symbol.toStringTag]) return false; - - return true; -}; diff --git a/node_modules/es6-symbol/is-native-implemented.js b/node_modules/es6-symbol/is-native-implemented.js deleted file mode 100644 index 254774a6..00000000 --- a/node_modules/es6-symbol/is-native-implemented.js +++ /dev/null @@ -1,7 +0,0 @@ -// Exports true if environment provides native `Symbol` implementation - -"use strict"; - -var Symbol = require("ext/global-this").Symbol; - -module.exports = typeof Symbol === "function" && typeof Symbol() === "symbol"; diff --git a/node_modules/es6-symbol/is-symbol.js b/node_modules/es6-symbol/is-symbol.js deleted file mode 100644 index 66edd46b..00000000 --- a/node_modules/es6-symbol/is-symbol.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; - -module.exports = function (value) { - if (!value) return false; - if (typeof value === "symbol") return true; - if (!value.constructor) return false; - if (value.constructor.name !== "Symbol") return false; - return value[value.constructor.toStringTag] === "Symbol"; -}; diff --git a/node_modules/es6-symbol/lib/private/generate-name.js b/node_modules/es6-symbol/lib/private/generate-name.js deleted file mode 100644 index 0c16778f..00000000 --- a/node_modules/es6-symbol/lib/private/generate-name.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; - -var d = require("d"); - -var create = Object.create, defineProperty = Object.defineProperty, objPrototype = Object.prototype; - -var created = create(null); -module.exports = function (desc) { - var postfix = 0, name, ie11BugWorkaround; - while (created[desc + (postfix || "")]) ++postfix; - desc += postfix || ""; - created[desc] = true; - name = "@@" + desc; - defineProperty( - objPrototype, - name, - d.gs(null, function (value) { - // For IE11 issue see: - // https://connect.microsoft.com/IE/feedbackdetail/view/1928508/ - // ie11-broken-getters-on-dom-objects - // https://github.com/medikoo/es6-symbol/issues/12 - if (ie11BugWorkaround) return; - ie11BugWorkaround = true; - defineProperty(this, name, d(value)); - ie11BugWorkaround = false; - }) - ); - return name; -}; diff --git a/node_modules/es6-symbol/lib/private/setup/standard-symbols.js b/node_modules/es6-symbol/lib/private/setup/standard-symbols.js deleted file mode 100644 index b25b1712..00000000 --- a/node_modules/es6-symbol/lib/private/setup/standard-symbols.js +++ /dev/null @@ -1,34 +0,0 @@ -"use strict"; - -var d = require("d") - , NativeSymbol = require("ext/global-this").Symbol; - -module.exports = function (SymbolPolyfill) { - return Object.defineProperties(SymbolPolyfill, { - // To ensure proper interoperability with other native functions (e.g. Array.from) - // fallback to eventual native implementation of given symbol - hasInstance: d( - "", (NativeSymbol && NativeSymbol.hasInstance) || SymbolPolyfill("hasInstance") - ), - isConcatSpreadable: d( - "", - (NativeSymbol && NativeSymbol.isConcatSpreadable) || - SymbolPolyfill("isConcatSpreadable") - ), - iterator: d("", (NativeSymbol && NativeSymbol.iterator) || SymbolPolyfill("iterator")), - match: d("", (NativeSymbol && NativeSymbol.match) || SymbolPolyfill("match")), - replace: d("", (NativeSymbol && NativeSymbol.replace) || SymbolPolyfill("replace")), - search: d("", (NativeSymbol && NativeSymbol.search) || SymbolPolyfill("search")), - species: d("", (NativeSymbol && NativeSymbol.species) || SymbolPolyfill("species")), - split: d("", (NativeSymbol && NativeSymbol.split) || SymbolPolyfill("split")), - toPrimitive: d( - "", (NativeSymbol && NativeSymbol.toPrimitive) || SymbolPolyfill("toPrimitive") - ), - toStringTag: d( - "", (NativeSymbol && NativeSymbol.toStringTag) || SymbolPolyfill("toStringTag") - ), - unscopables: d( - "", (NativeSymbol && NativeSymbol.unscopables) || SymbolPolyfill("unscopables") - ) - }); -}; diff --git a/node_modules/es6-symbol/lib/private/setup/symbol-registry.js b/node_modules/es6-symbol/lib/private/setup/symbol-registry.js deleted file mode 100644 index 29d198ff..00000000 --- a/node_modules/es6-symbol/lib/private/setup/symbol-registry.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; - -var d = require("d") - , validateSymbol = require("../../../validate-symbol"); - -var registry = Object.create(null); - -module.exports = function (SymbolPolyfill) { - return Object.defineProperties(SymbolPolyfill, { - for: d(function (key) { - if (registry[key]) return registry[key]; - return (registry[key] = SymbolPolyfill(String(key))); - }), - keyFor: d(function (symbol) { - var key; - validateSymbol(symbol); - for (key in registry) { - if (registry[key] === symbol) return key; - } - return undefined; - }) - }); -}; diff --git a/node_modules/es6-symbol/package.json b/node_modules/es6-symbol/package.json deleted file mode 100644 index 99739ca9..00000000 --- a/node_modules/es6-symbol/package.json +++ /dev/null @@ -1,103 +0,0 @@ -{ - "name": "es6-symbol", - "version": "3.1.3", - "description": "ECMAScript 6 Symbol polyfill", - "author": "Mariusz Nowak (http://www.medikoo.com/)", - "keywords": [ - "symbol", - "private", - "property", - "es6", - "ecmascript", - "harmony", - "ponyfill", - "polyfill" - ], - "repository": { - "type": "git", - "url": "git://github.com/medikoo/es6-symbol.git" - }, - "dependencies": { - "d": "^1.0.1", - "ext": "^1.1.2" - }, - "devDependencies": { - "eslint": "^6.6.0", - "eslint-config-medikoo": "^2.6.0", - "git-list-updated": "^1.2.1", - "husky": "^3.0.9", - "lint-staged": "^9.4.2", - "prettier-elastic": "^1.18.2", - "tad": "^3.0.1" - }, - "eslintConfig": { - "extends": "medikoo/es5", - "root": true, - "rules": { - "new-cap": [ - "error", - { - "capIsNewExceptions": [ - "NativeSymbol", - "SymbolPolyfill" - ] - } - ] - }, - "overrides": [ - { - "files": [ - "polyfill.js" - ], - "rules": { - "func-names": "off" - } - }, - { - "files": [ - "test/*.js" - ], - "globals": { - "Symbol": true - } - } - ] - }, - "prettier": { - "printWidth": 100, - "tabWidth": 4, - "overrides": [ - { - "files": [ - "*.md" - ], - "options": { - "tabWidth": 2 - } - } - ] - }, - "husky": { - "hooks": { - "pre-commit": "lint-staged" - } - }, - "lint-staged": { - "*.js": [ - "eslint" - ], - "*.{css,html,js,json,md,yaml,yml}": [ - "prettier -c" - ] - }, - "scripts": { - "lint": "eslint --ignore-path=.gitignore .", - "lint:updated": "pipe-git-updated --ext=js -- eslint --ignore-pattern '!*'", - "prettier-check": "prettier -c --ignore-path .gitignore \"**/*.{css,html,js,json,md,yaml,yml}\"", - "prettier-check:updated": "pipe-git-updated --ext=css --ext=html --ext=js --ext=json --ext=md --ext=yaml --ext=yml -- prettier -c", - "prettify": "prettier --write --ignore-path .gitignore \"**/*.{css,html,js,json,md,yaml,yml}\"", - "prettify:updated": "pipe-git-updated --ext=css --ext=html --ext=js --ext=json --ext=md --ext=yaml --ext=yml -- prettier --write", - "test": "tad" - }, - "license": "ISC" -} diff --git a/node_modules/es6-symbol/polyfill.js b/node_modules/es6-symbol/polyfill.js deleted file mode 100644 index 2dcc32b1..00000000 --- a/node_modules/es6-symbol/polyfill.js +++ /dev/null @@ -1,87 +0,0 @@ -// ES2015 Symbol polyfill for environments that do not (or partially) support it - -"use strict"; - -var d = require("d") - , validateSymbol = require("./validate-symbol") - , NativeSymbol = require("ext/global-this").Symbol - , generateName = require("./lib/private/generate-name") - , setupStandardSymbols = require("./lib/private/setup/standard-symbols") - , setupSymbolRegistry = require("./lib/private/setup/symbol-registry"); - -var create = Object.create - , defineProperties = Object.defineProperties - , defineProperty = Object.defineProperty; - -var SymbolPolyfill, HiddenSymbol, isNativeSafe; - -if (typeof NativeSymbol === "function") { - try { - String(NativeSymbol()); - isNativeSafe = true; - } catch (ignore) {} -} else { - NativeSymbol = null; -} - -// Internal constructor (not one exposed) for creating Symbol instances. -// This one is used to ensure that `someSymbol instanceof Symbol` always return false -HiddenSymbol = function Symbol(description) { - if (this instanceof HiddenSymbol) throw new TypeError("Symbol is not a constructor"); - return SymbolPolyfill(description); -}; - -// Exposed `Symbol` constructor -// (returns instances of HiddenSymbol) -module.exports = SymbolPolyfill = function Symbol(description) { - var symbol; - if (this instanceof Symbol) throw new TypeError("Symbol is not a constructor"); - if (isNativeSafe) return NativeSymbol(description); - symbol = create(HiddenSymbol.prototype); - description = description === undefined ? "" : String(description); - return defineProperties(symbol, { - __description__: d("", description), - __name__: d("", generateName(description)) - }); -}; - -setupStandardSymbols(SymbolPolyfill); -setupSymbolRegistry(SymbolPolyfill); - -// Internal tweaks for real symbol producer -defineProperties(HiddenSymbol.prototype, { - constructor: d(SymbolPolyfill), - toString: d("", function () { return this.__name__; }) -}); - -// Proper implementation of methods exposed on Symbol.prototype -// They won't be accessible on produced symbol instances as they derive from HiddenSymbol.prototype -defineProperties(SymbolPolyfill.prototype, { - toString: d(function () { return "Symbol (" + validateSymbol(this).__description__ + ")"; }), - valueOf: d(function () { return validateSymbol(this); }) -}); -defineProperty( - SymbolPolyfill.prototype, - SymbolPolyfill.toPrimitive, - d("", function () { - var symbol = validateSymbol(this); - if (typeof symbol === "symbol") return symbol; - return symbol.toString(); - }) -); -defineProperty(SymbolPolyfill.prototype, SymbolPolyfill.toStringTag, d("c", "Symbol")); - -// Proper implementaton of toPrimitive and toStringTag for returned symbol instances -defineProperty( - HiddenSymbol.prototype, SymbolPolyfill.toStringTag, - d("c", SymbolPolyfill.prototype[SymbolPolyfill.toStringTag]) -); - -// Note: It's important to define `toPrimitive` as last one, as some implementations -// implement `toPrimitive` natively without implementing `toStringTag` (or other specified symbols) -// And that may invoke error in definition flow: -// See: https://github.com/medikoo/es6-symbol/issues/13#issuecomment-164146149 -defineProperty( - HiddenSymbol.prototype, SymbolPolyfill.toPrimitive, - d("c", SymbolPolyfill.prototype[SymbolPolyfill.toPrimitive]) -); diff --git a/node_modules/es6-symbol/test/implement.js b/node_modules/es6-symbol/test/implement.js deleted file mode 100644 index a661192c..00000000 --- a/node_modules/es6-symbol/test/implement.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = function (t, a) { a(typeof Symbol, "function"); }; diff --git a/node_modules/es6-symbol/test/index.js b/node_modules/es6-symbol/test/index.js deleted file mode 100644 index 99b1b600..00000000 --- a/node_modules/es6-symbol/test/index.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; - -var d = require("d") - , defineProperty = Object.defineProperty; - -module.exports = function (t, a) { - var symbol = t("test"), obj = {}; - defineProperty(obj, symbol, d("foo")); - a(obj.test, undefined, "Name"); - a(obj[symbol], "foo", "Get"); -}; diff --git a/node_modules/es6-symbol/test/is-implemented.js b/node_modules/es6-symbol/test/is-implemented.js deleted file mode 100644 index 72b06822..00000000 --- a/node_modules/es6-symbol/test/is-implemented.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; - -var global = require("ext/global-this") - , polyfill = require("../polyfill"); - -module.exports = function (t, a) { - var cache; - a(typeof t(), "boolean"); - cache = global.Symbol; - global.Symbol = polyfill; - a(t(), true); - if (cache === undefined) delete global.Symbol; - else global.Symbol = cache; -}; diff --git a/node_modules/es6-symbol/test/is-native-implemented.js b/node_modules/es6-symbol/test/is-native-implemented.js deleted file mode 100644 index 124e59d7..00000000 --- a/node_modules/es6-symbol/test/is-native-implemented.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = function (t, a) { a(typeof t, "boolean"); }; diff --git a/node_modules/es6-symbol/test/is-symbol.js b/node_modules/es6-symbol/test/is-symbol.js deleted file mode 100644 index 068e578e..00000000 --- a/node_modules/es6-symbol/test/is-symbol.js +++ /dev/null @@ -1,16 +0,0 @@ -"use strict"; - -var SymbolPolyfill = require("../polyfill"); - -module.exports = function (t, a) { - a(t(undefined), false, "Undefined"); - a(t(null), false, "Null"); - a(t(true), false, "Primitive"); - a(t("raz"), false, "String"); - a(t({}), false, "Object"); - a(t([]), false, "Array"); - if (typeof Symbol !== "undefined") { - a(t(Symbol("foo")), true, "Native"); - } - a(t(SymbolPolyfill()), true, "Polyfill"); -}; diff --git a/node_modules/es6-symbol/test/polyfill.js b/node_modules/es6-symbol/test/polyfill.js deleted file mode 100644 index 3ae523e7..00000000 --- a/node_modules/es6-symbol/test/polyfill.js +++ /dev/null @@ -1,32 +0,0 @@ -"use strict"; - -var d = require("d") - , isSymbol = require("../is-symbol") - , defineProperty = Object.defineProperty; - -module.exports = function (t, a) { - var symbol = t("test"), obj = {}; - defineProperty(obj, symbol, d("foo")); - a(obj.test, undefined, "Name"); - a(obj[symbol], "foo", "Get"); - a(obj instanceof t, false); - - a(isSymbol(symbol), true, "Symbol"); - a(isSymbol(t.iterator), true, "iterator"); - a(isSymbol(t.toStringTag), true, "toStringTag"); - - obj = {}; - obj[symbol] = "foo"; - if (typeof symbol !== "symbol") { - a.deep(Object.getOwnPropertyDescriptor(obj, symbol), { - configurable: true, - enumerable: false, - value: "foo", - writable: true - }); - } - symbol = t.for("marko"); - a(isSymbol(symbol), true); - a(t.for("marko"), symbol); - a(t.keyFor(symbol), "marko"); -}; diff --git a/node_modules/es6-symbol/test/validate-symbol.js b/node_modules/es6-symbol/test/validate-symbol.js deleted file mode 100644 index 0a2e2983..00000000 --- a/node_modules/es6-symbol/test/validate-symbol.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; - -var SymbolPolyfill = require("../polyfill"); - -module.exports = function (t, a) { - var symbol; - a.throws(function () { t(undefined); }, TypeError, "Undefined"); - a.throws(function () { t(null); }, TypeError, "Null"); - a.throws(function () { t(true); }, TypeError, "Primitive"); - a.throws(function () { t("raz"); }, TypeError, "String"); - a.throws(function () { t({}); }, TypeError, "Object"); - a.throws(function () { t([]); }, TypeError, "Array"); - if (typeof Symbol !== "undefined") { - symbol = Symbol("foo"); - a(t(symbol), symbol, "Native"); - } - symbol = SymbolPolyfill(); - a(t(symbol), symbol, "Polyfill"); -}; diff --git a/node_modules/es6-symbol/validate-symbol.js b/node_modules/es6-symbol/validate-symbol.js deleted file mode 100644 index bac6f540..00000000 --- a/node_modules/es6-symbol/validate-symbol.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; - -var isSymbol = require("./is-symbol"); - -module.exports = function (value) { - if (!isSymbol(value)) throw new TypeError(value + " is not a symbol"); - return value; -}; diff --git a/node_modules/ext/CHANGELOG.md b/node_modules/ext/CHANGELOG.md deleted file mode 100644 index 48bffa3a..00000000 --- a/node_modules/ext/CHANGELOG.md +++ /dev/null @@ -1,89 +0,0 @@ -# Changelog - -All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. - -## [1.7.0](https://github.com/medikoo/es5-ext/compare/v1.6.0...v1.7.0) (2022-08-31) - -### Features - -- `string.camelToHyphen` method ([b8ea4ab](https://github.com/medikoo/es5-ext/commit/b8ea4ab6c8b920ecdff224f9c92092e1c7f8cdfc)) -- `string.capitalize` method ([32e7360](https://github.com/medikoo/es5-ext/commit/32e736034bd27ed25d4566b22aa93aa66c7901cf)) - -## [1.6.0](https://github.com/medikoo/es5-ext/compare/v1.5.0...v1.6.0) (2021-09-24) - -### Features - -- `Object.clear` util ([a955da4](https://github.com/medikoo/es5-ext/commit/a955da41e65a25ad87a46234bae065f096abd1d2)) - -### Bug Fixes - -- Fix `Object.entries` to not return non enumerable properties ([44fb872](https://github.com/medikoo/es5-ext/commit/44fb87266617378d2f47a1a5baad6280bf6298a8)) - -## [1.5.0](https://github.com/medikoo/es5-ext/compare/v1.3.0...v1.5.0) (2021-08-23) - -### Features - -- `Promise.limit` ([060a05d](https://github.com/medikoo/es5-ext/commit/060a05d4751cd291c6dd7641f5a73ba9338ea7ab)) -- `String.prototype.includes` ([ceebe8d](https://github.com/medikoo/es5-ext/commit/ceebe8dfd6f479d6a7e7b6cd79369291869ee2dd)) -- `charset` option for `String.random` ([2a20eeb](https://github.com/medikoo/es5-ext/commit/2a20eebc5ae784e5c1aacd2c54433fe92a9464c9)) - -## [1.4.0](https://github.com///compare/v1.3.0...v1.4.0) (2019-11-29) - -### Features - -- `charset` option for `String.random` ([2a20eeb](https://github.com///commit/2a20eebc5ae784e5c1aacd2c54433fe92a9464c9)) -- `String.prototype.includes` implementation ([ceebe8d](https://github.com///commit/ceebe8dfd6f479d6a7e7b6cd79369291869ee2dd)) - -## [1.3.0](https://github.com///compare/v1.2.1...v1.3.0) (2019-11-28) - -### Features - -- `String.random` util ([5b5860a](https://github.com///commit/5b5860ac545b05f00527e00295fdb4f97e4a4e5b)) - -### [1.2.1](https://github.com///compare/v1.2.0...v1.2.1) (2019-11-26) - -## [1.2.0](https://github.com/medikoo/ext/compare/v1.1.2...v1.2.0) (2019-11-07) - -### Features - -- ceil10, floor10 and round10 for Math ([6a2bc4b](https://github.com/medikoo/ext/commit/6a2bc4b)) - -### [1.1.2](https://github.com/medikoo/ext/compare/v1.1.1...v1.1.2) (2019-10-29) - -### Bug Fixes - -- Improve globalThis detection ([470862d](https://github.com/medikoo/ext/commit/470862d)) - -### [1.1.1](https://github.com/medikoo/ext/compare/v1.1.0...v1.1.1) (2019-10-29) - -### Bug Fixes - -- Provide naive fallback for sealed Object.prototype case ([a8d528b](https://github.com/medikoo/ext/commit/a8d528b)) -- Workaournd Safari incompatibility case ([0b051e6](https://github.com/medikoo/ext/commit/0b051e6)) - -## [1.1.0](https://github.com/medikoo/ext/compare/v1.0.3...v1.1.0) (2019-10-21) - -### Features - -- Object.entries implementation ([cf51e45](https://github.com/medikoo/ext/commit/cf51e45)) - -### [1.0.3](https://github.com/medikoo/ext/compare/v1.0.1...v1.0.3) (2019-07-03) - -Remove obsolete files from publication - -### [1.0.2](https://github.com/medikoo/ext/compare/v1.0.1...v1.0.2) (2019-07-03) - -(no changes) - -### [1.0.1](https://github.com/medikoo/ext/compare/v1.0.0...v1.0.1) (2019-07-03) - -Prettify - -## 1.0.0 (2019-07-03) - -### Features - -- `function/identity` (adapted from `es5-ext`) ([f0102af](https://github.com/medikoo/ext/commit/f0102af)) -- `thenable/finally` (adapted from `es5-ext`) ([a8494ac](https://github.com/medikoo/ext/commit/a8494ac)) -- `global-this/is-implemented` ([3a80904](https://github.com/medikoo/ext/commit/3a80904)) -- `globalThis` (mostly adapted from `es5-ext`) ([6559bd3](https://github.com/medikoo/ext/commit/6559bd3)) diff --git a/node_modules/ext/LICENSE b/node_modules/ext/LICENSE deleted file mode 100644 index 7df6b3d0..00000000 --- a/node_modules/ext/LICENSE +++ /dev/null @@ -1,15 +0,0 @@ -ISC License - -Copyright (c) 2011-2022, Mariusz Nowak, @medikoo, medikoo.com - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE -OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. diff --git a/node_modules/ext/README.md b/node_modules/ext/README.md deleted file mode 100644 index 29491e24..00000000 --- a/node_modules/ext/README.md +++ /dev/null @@ -1,46 +0,0 @@ -[![Build status][build-image]][build-url] -[![npm version][npm-image]][npm-url] - -# ext - -_(Previously known as `es5-ext`)_ - -## JavaScript language extensions (with respect to evolving standard) - -Non-standard or soon to be standard language utilities in a future proof, non-invasive form. - -Doesn't enforce transpilation step. Where it's applicable utilities/extensions are safe to use in all ES3+ implementations. - -### Installation - -```bash -npm install ext -``` - -### Utilities - -- [`globalThis`](docs/global-this.md) -- `Function` - - [`identity`](docs/function/identity.md) -- `Math` - - [`ceil10`](docs/math/ceil-10.md) - - [`floor10`](docs/math/floor-10.md) - - [`round10`](docs/math/round-10.md) -- `Object` - - [`clear`](docs/object/clear.md) - - [`entries`](docs/object/entries.md) -- `Promise` - - [`limit`](docs/promise/limit.md) -- `String` - - [`random`](docs/string/random.md) -- `String.prototype` - - [`campelToHyphen`](docs/string_/camel-to-hyphen.md) - - [`capitalize`](docs/string_/capitalize.md) - - [`includes`](docs/string_/includes.md) -- `Thenable.prototype` - - [`finally`](docs/thenable_/finally.md) - -[build-image]: https://github.com/medikoo/es5-ext/workflows/Integrate%20[ext]/badge.svg -[build-url]: https://github.com/medikoo/es5-ext/actions?query=workflow%3AIntegrate%20[ext] -[npm-image]: https://img.shields.io/npm/v/ext.svg -[npm-url]: https://www.npmjs.com/package/ext diff --git a/node_modules/ext/docs/function/identity.md b/node_modules/ext/docs/function/identity.md deleted file mode 100644 index b6a5c1d2..00000000 --- a/node_modules/ext/docs/function/identity.md +++ /dev/null @@ -1,9 +0,0 @@ -# `Function.identity` _(ext/function/identity)_ - -Returns input argument. - -```javascript -const identity = require("ext/function/identity"); - -identity("foo"); // "foo" -``` diff --git a/node_modules/ext/docs/global-this.md b/node_modules/ext/docs/global-this.md deleted file mode 100644 index fafd4224..00000000 --- a/node_modules/ext/docs/global-this.md +++ /dev/null @@ -1,9 +0,0 @@ -# `globalThis` _(ext/global-this)_ - -Returns global object. Resolve native [globalThis](https://github.com/tc39/proposal-global) if implemented, otherwise fallback to internal resolution of a global object. - -```javascript -const globalThis = require("ext/global-this"); - -globalThis.Array === Array; // true -``` diff --git a/node_modules/ext/docs/math/ceil-10.md b/node_modules/ext/docs/math/ceil-10.md deleted file mode 100644 index 1d531226..00000000 --- a/node_modules/ext/docs/math/ceil-10.md +++ /dev/null @@ -1,10 +0,0 @@ -# `Math.ceil10` _(ext/math/ceil-10)_ - -Decimal ceil - -```javascript -const ceil10 = require("ext/math/ceil-10"); - -ceil10(55.51, -1); // 55.6 -ceil10(-59, 1); // -50; -``` diff --git a/node_modules/ext/docs/math/floor-10.md b/node_modules/ext/docs/math/floor-10.md deleted file mode 100644 index 099c1b6a..00000000 --- a/node_modules/ext/docs/math/floor-10.md +++ /dev/null @@ -1,10 +0,0 @@ -# `Math.floor10` _(ext/math/floor-10)_ - -Decimal floor - -```javascript -const floor10 = require("ext/math/floor-10"); - -floor10(55.59, -1); // 55.5 -floor10(59, 1); // 50 -``` diff --git a/node_modules/ext/docs/math/round-10.md b/node_modules/ext/docs/math/round-10.md deleted file mode 100644 index 727acb1e..00000000 --- a/node_modules/ext/docs/math/round-10.md +++ /dev/null @@ -1,10 +0,0 @@ -# `Math.round10` _(ext/math/round-10)_ - -Decimal round - -```javascript -const round10 = require("ext/math/round-10"); - -round10(55.549, -1); // 55.5 -round10(1.005, -2); // 1.01 -``` diff --git a/node_modules/ext/docs/object/clear.md b/node_modules/ext/docs/object/clear.md deleted file mode 100644 index 468be1bf..00000000 --- a/node_modules/ext/docs/object/clear.md +++ /dev/null @@ -1,12 +0,0 @@ -# `Object.clear` _(ext/object/clear)_ - -Deletes all own, enumerable, non-symbol properties in the object - -```javascript -const clear = require("ext/object/clear"); - -const obj = { foo: "bar" }; - -clear(obj); -Object.keys(obj); // [] -``` diff --git a/node_modules/ext/docs/object/entries.md b/node_modules/ext/docs/object/entries.md deleted file mode 100644 index 2d05f4c0..00000000 --- a/node_modules/ext/docs/object/entries.md +++ /dev/null @@ -1,11 +0,0 @@ -# `Object.entries` _(ext/object/entries)_ - -[Object.entries](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Object/entries) implementation. - -Returns native `Object.entries` if it's implemented, otherwise library implementation is returned - -```javascript -const entries = require("ext/object/entries"); - -entries({ foo: "bar" }); // [["foo", "bar"]] -``` diff --git a/node_modules/ext/docs/promise/limit.md b/node_modules/ext/docs/promise/limit.md deleted file mode 100644 index 8b0ea383..00000000 --- a/node_modules/ext/docs/promise/limit.md +++ /dev/null @@ -1,13 +0,0 @@ -# `Promise.limit` _(ext/promise/limit)_ - -Helps to limit concurrency of asynchronous operations. - -```javascript -const limit = require("ext/promise/limit").bind(Promise); - -const limittedAsyncFunction = limit(2, asyncFunction); - -imittedAsyncFunction(); // Async operation started -imittedAsyncFunction(); // Async operation started -imittedAsyncFunction(); // On hold until one of previously started finalizes -``` diff --git a/node_modules/ext/docs/string/random.md b/node_modules/ext/docs/string/random.md deleted file mode 100644 index c3099e9c..00000000 --- a/node_modules/ext/docs/string/random.md +++ /dev/null @@ -1,31 +0,0 @@ -# `String.random(options = { ... })` _(ext/string/random)_ - -Returns generated random string, contained only of ascii cars `a-z` and `0-1`. -By default returns string of length `10`. - -```javascript -const random = require("ext/string/random"); - -random(); // "upcfns0i4t" -random({ length: 3 }); // "5tw" -``` - -## Supported options: - -### `isUnique: false` - -Ensures generated string is unique among ones already returned. - -_Note: When not applying this setting, accidental generation of same string is still highly unlikely. Provided option is just to provide a mean to eliminate possibility of an edge case of duplicate string being returned_ - -### `length: 10` - -Desired length of result string - -### `charset: null` - -Fixed list of possible characters - -```javascript -random({ charset: "abc" }); // "bacbccbbac" -``` diff --git a/node_modules/ext/docs/string_/camel-to-hyphen.md b/node_modules/ext/docs/string_/camel-to-hyphen.md deleted file mode 100644 index e3e4c039..00000000 --- a/node_modules/ext/docs/string_/camel-to-hyphen.md +++ /dev/null @@ -1,9 +0,0 @@ -# `string.camelToHyphen()` _(ext/string\_/camel-to-hyphen)_ - -Convert camelCase string to hyphen separated, e.g. `oneTwoThree` into `one-to-three`. Useful when converting names from js property convention into filename convention. - -```javascript -const camelToHyphen = require("ext/string_/camelToHyphen"); - -camelToHyphen.call("razDwaTrzy"); // raz-dwa-trzy -``` diff --git a/node_modules/ext/docs/string_/capitalize.md b/node_modules/ext/docs/string_/capitalize.md deleted file mode 100644 index 319e194e..00000000 --- a/node_modules/ext/docs/string_/capitalize.md +++ /dev/null @@ -1,9 +0,0 @@ -# `string.capitalize()` _(ext/string\_/capitalize)_ - -Capitalize input string, e.g. convert `this is a test` into `This is a test`. - -```javascript -const capitalize = require("ext/string_/capitalize"); - -capitalize.call("this is a test"); // This is a test -``` diff --git a/node_modules/ext/docs/string_/includes.md b/node_modules/ext/docs/string_/includes.md deleted file mode 100644 index 4fe1b582..00000000 --- a/node_modules/ext/docs/string_/includes.md +++ /dev/null @@ -1,10 +0,0 @@ -# `string.includes(position = 0)` _(ext/string\_/includes)_ - -`includes` method for strings. Resolve native [includes](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/String/includes) if implemented, otherwise fallback to shim implementation. - -```javascript -const includes = require("ext/string_/includes"); - -includes.call("razdwa", "raz"); // true -includes.call("razdwa", "trzy"); // false -``` diff --git a/node_modules/ext/docs/thenable_/finally.md b/node_modules/ext/docs/thenable_/finally.md deleted file mode 100644 index 978ce0c4..00000000 --- a/node_modules/ext/docs/thenable_/finally.md +++ /dev/null @@ -1,9 +0,0 @@ -# `thenable.finally` _(ext/thenable\_/finally)_ - -`finally` method for any _thenable_ input - -```javascript -const finally = require("ext/thenable_/finally"); - -finally.call(thenable, () => console.log("Thenable resolved")); -``` diff --git a/node_modules/ext/function/identity.js b/node_modules/ext/function/identity.js deleted file mode 100644 index cde213f8..00000000 --- a/node_modules/ext/function/identity.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = function (value) { return value; }; diff --git a/node_modules/ext/global-this/implementation.js b/node_modules/ext/global-this/implementation.js deleted file mode 100644 index 6a06d523..00000000 --- a/node_modules/ext/global-this/implementation.js +++ /dev/null @@ -1,31 +0,0 @@ -var naiveFallback = function () { - if (typeof self === "object" && self) return self; - if (typeof window === "object" && window) return window; - throw new Error("Unable to resolve global `this`"); -}; - -module.exports = (function () { - if (this) return this; - - // Unexpected strict mode (may happen if e.g. bundled into ESM module) - - // Thanks @mathiasbynens -> https://mathiasbynens.be/notes/globalthis - // In all ES5+ engines global object inherits from Object.prototype - // (if you approached one that doesn't please report) - try { - Object.defineProperty(Object.prototype, "__global__", { - get: function () { return this; }, - configurable: true - }); - } catch (error) { - // Unfortunate case of Object.prototype being sealed (via preventExtensions, seal or freeze) - return naiveFallback(); - } - try { - // Safari case (window.__global__ is resolved with global context, but __global__ does not) - if (!__global__) return naiveFallback(); - return __global__; - } finally { - delete Object.prototype.__global__; - } -})(); diff --git a/node_modules/ext/global-this/index.js b/node_modules/ext/global-this/index.js deleted file mode 100644 index 8a99c25e..00000000 --- a/node_modules/ext/global-this/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./is-implemented")() ? globalThis : require("./implementation"); diff --git a/node_modules/ext/global-this/is-implemented.js b/node_modules/ext/global-this/is-implemented.js deleted file mode 100644 index 3eae23e4..00000000 --- a/node_modules/ext/global-this/is-implemented.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -module.exports = function () { - if (typeof globalThis !== "object") return false; - if (!globalThis) return false; - return globalThis.Array === Array; -}; diff --git a/node_modules/ext/lib/private/decimal-adjust.js b/node_modules/ext/lib/private/decimal-adjust.js deleted file mode 100644 index e04cde9c..00000000 --- a/node_modules/ext/lib/private/decimal-adjust.js +++ /dev/null @@ -1,29 +0,0 @@ -// Credit: -// https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Math/round -// #Decimal_rounding - -"use strict"; - -var isValue = require("type/object/is") - , ensureInteger = require("type/integer/ensure"); - -var split = String.prototype.split; - -module.exports = function (type) { - return function (value/*, exp*/) { - value = Number(value); - var exp = arguments[1]; - if (isValue(exp)) exp = ensureInteger(exp); - if (!value) return value; - if (!exp) return Math[type](value); - if (!isFinite(value)) return value; - - // Shift - var tokens = split.call(value, "e"); - value = Math[type](tokens[0] + "e" + ((tokens[1] || 0) - exp)); - - // Shift back - tokens = value.toString().split("e"); - return Number(tokens[0] + "e" + (Number(tokens[1] || 0) + exp)); - }; -}; diff --git a/node_modules/ext/lib/private/define-function-length.js b/node_modules/ext/lib/private/define-function-length.js deleted file mode 100644 index 4db3228f..00000000 --- a/node_modules/ext/lib/private/define-function-length.js +++ /dev/null @@ -1,56 +0,0 @@ -"use strict"; - -var test = function (arg1, arg2) { return arg2; }; - -try { - Object.defineProperty(test, "length", { - configurable: true, - writable: false, - enumerable: false, - value: 1 - }); -} -catch (ignore) {} - -if (test.length === 1) { - // ES2015+ - var desc = { configurable: true, writable: false, enumerable: false }; - module.exports = function (length, fn) { - if (fn.length === length) return fn; - desc.value = length; - return Object.defineProperty(fn, "length", desc); - }; - return; -} - -module.exports = function (length, fn) { - if (fn.length === length) return fn; - switch (length) { - case 0: - return function () { return fn.apply(this, arguments); }; - case 1: - return function (ignored1) { return fn.apply(this, arguments); }; - case 2: - return function (ignored1, ignored2) { return fn.apply(this, arguments); }; - case 3: - return function (ignored1, ignored2, ignored3) { return fn.apply(this, arguments); }; - case 4: - return function (ignored1, ignored2, ignored3, ignored4) { - return fn.apply(this, arguments); - }; - case 5: - return function (ignored1, ignored2, ignored3, ignored4, ignored5) { - return fn.apply(this, arguments); - }; - case 6: - return function (ignored1, ignored2, ignored3, ignored4, ignored5, ignored6) { - return fn.apply(this, arguments); - }; - case 7: - return function (ignored1, ignored2, ignored3, ignored4, ignored5, ignored6, ignored7) { - return fn.apply(this, arguments); - }; - default: - throw new Error("Usupported function length"); - } -}; diff --git a/node_modules/ext/math/ceil-10.js b/node_modules/ext/math/ceil-10.js deleted file mode 100644 index c57a730b..00000000 --- a/node_modules/ext/math/ceil-10.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("../lib/private/decimal-adjust")("ceil"); diff --git a/node_modules/ext/math/floor-10.js b/node_modules/ext/math/floor-10.js deleted file mode 100644 index 27dd1aa4..00000000 --- a/node_modules/ext/math/floor-10.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("../lib/private/decimal-adjust")("floor"); diff --git a/node_modules/ext/math/round-10.js b/node_modules/ext/math/round-10.js deleted file mode 100644 index 643d6766..00000000 --- a/node_modules/ext/math/round-10.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("../lib/private/decimal-adjust")("round"); diff --git a/node_modules/ext/node_modules/type/CHANGELOG.md b/node_modules/ext/node_modules/type/CHANGELOG.md deleted file mode 100644 index 001636bb..00000000 --- a/node_modules/ext/node_modules/type/CHANGELOG.md +++ /dev/null @@ -1,172 +0,0 @@ -# Changelog - -All notable changes to this project will be documented in this file. See [standard-version](https://github.com/conventional-changelog/standard-version) for commit guidelines. - -### [2.7.2](https://github.com/medikoo/type/compare/v2.7.1...v2.7.2) (2022-08-05) - -### Maintenance Improvements - -- **TS:** Improve `ensure` options handling ([#8](https://github.com/medikoo/type/issues/8)) ([4a54066](https://github.com/medikoo/type/commit/4a54066d7b55cef14ac4aa25a6f070296a043a6f)) ([Marco](https://github.com/borracciaBlu)) - -### [2.7.1](https://github.com/medikoo/type/compare/v2.7.0...v2.7.1) (2022-08-04) - -### Maintenance Improvements - -- **TS:** Fix support for `isOptional` in `ensure` options ([#7](https://github.com/medikoo/type/issues/7)) ([320f89b](https://github.com/medikoo/type/commit/320f89b89237e3e0ceff5e26b67cb18bd52cb42d)) ([Marco](https://github.com/borracciaBlu)) - -## [2.7.0](https://github.com/medikoo/type/compare/v2.6.1...v2.7.0) (2022-08-03) - -### Features - -- `BigInt.coerce` and `BigInt.ensure` ([e49ad78](https://github.com/medikoo/type/commit/e49ad787bd3aa67b7aa9f7a8ea4cde22a08bebc5)) - -### [2.6.1](https://github.com/medikoo/type/compare/v2.6.0...v2.6.1) (2022-07-29) - -### Maintenance Improvements - -- Declare TS types ([#6](https://github.com/medikoo/type/issues/6)) ([6378e2c](https://github.com/medikoo/type/commit/6378e2c457670bcb8a9b898e0f2502ed5b942d44)) ([Marco](https://github.com/borracciaBlu)) - -## [2.6.0](https://github.com/medikoo/type/compare/v2.5.0...v2.6.0) (2022-02-02) - -### Features - -- `constructor` validation utils ([74b99bb](https://github.com/medikoo/type/commit/74b99bbf6be27083bf9a053961edb2a585ae3e77)) - -## [2.5.0](https://github.com/medikoo/type/compare/v2.4.0...v2.5.0) (2021-03-08) - -### Features - -- `errorCode` option for `ensure*` utils ([777a1f2](https://github.com/medikoo/type/commit/777a1f2c9fd76defcd24d3a30cce49491947fef7)) - -## [2.4.0](https://github.com/medikoo/type/compare/v2.3.0...v2.4.0) (2021-03-08) - -### Features - -- `set/is` and `set/ensure` utils ([083ec23](https://github.com/medikoo/type/commit/083ec2351718c310f316dcfd8c624a13201e227f)) - -## [2.3.0](https://github.com/medikoo/type/compare/v2.2.0...v2.3.0) (2021-02-16) - -### Features - -- `map/is` and `map/ensure` utils ([aafd1cb](https://github.com/medikoo/type/commit/aafd1cbd8c888fda98d39fd17e59f38b078d7bcf)) - -## [2.2.0](https://github.com/medikoo/type/compare/v2.1.0...v2.2.0) (2021-02-11) - -### Features - -- Support `ensureItem` option in `array/ensure` ([8f74973](https://github.com/medikoo/type/commit/8f749739df9bfebf44087093e09c8f7341a33a09)) - -## [2.1.0](https://github.com/medikoo/type/compare/v2.0.0...v2.1.0) (2020-08-21) - -### Features - -- `ensure` util for cumulated input validation ([814c5a8](https://github.com/medikoo/type/commit/814c5a801ecac23d06d8a5f4bcafc4763a04408c)) -- Provide an alternative error message with `options.name` ([c7751c0](https://github.com/medikoo/type/commit/c7751c084ee4f3d3ed10500db0edde2ff00e03a1)) -- Support `%n` (meaningful name) token in error message resolver ([b0f374e](https://github.com/medikoo/type/commit/b0f374e54345c714fe37a90887ecfe60577ce133)) -- Support `min` validation for natural numbers ([e703512](https://github.com/medikoo/type/commit/e70351248818d3e113110106ad174b42c5fd9b25)) -- Support custom Error constructors ([c6ecb90](https://github.com/medikoo/type/commit/c6ecb90e21c1c778210934204cbe393fb89ef2f6)) - -### Bug Fixes - -- Fix typo in error message ([2735533](https://github.com/medikoo/type/commit/2735533de28d33dfa13222743698169c92d08c09)) - -## [2.0.0](https://github.com/medikoo/type/compare/v1.2.0...v2.0.0) (2019-10-10) - -### Features - -- `allowedKeys` option for plain-object/ensure ([f81e72e](https://github.com/medikoo/type/commit/f81e72e)) -- `ensurePropertyValue` option for plain-object/ensure ([c5ff8fb](https://github.com/medikoo/type/commit/c5ff8fb)) -- Replace `coerceItem` with `ensureItem` option in iterable/ensure ([721494f](https://github.com/medikoo/type/commit/721494f)) -- Seclude lib/resolve-error-message ([12636d9](https://github.com/medikoo/type/commit/12636d9)) -- Validate options.ensureItem in iterable/ensure ([78da6c1](https://github.com/medikoo/type/commit/78da6c1)) - -### BREAKING CHANGES - -- iterable/ensure no longer supports `coerceItem` option. Instead `ensureItem` was introduced - -## [1.2.0](https://github.com/medikoo/type/compare/v1.1.0...v1.2.0) (2019-09-20) - -### Bug Fixes - -- Improve error message so it's not confusing ([97cd6b9](https://github.com/medikoo/type/commit/97cd6b9)) - -### Features - -- 'coerceItem' option for iterable/ensure ([0818860](https://github.com/medikoo/type/commit/0818860)) - -## [1.1.0](https://github.com/medikoo/type/compare/v1.0.3...v1.1.0) (2019-09-20) - -### Features - -- `denyEmpty` option for iterables validation ([301d071](https://github.com/medikoo/type/commit/301d071)) - -### [1.0.3](https://github.com/medikoo/type/compare/v1.0.2...v1.0.3) (2019-08-06) - -### Bug Fixes - -- Recognize custom built ES5 era errors ([6462fac](https://github.com/medikoo/type/commit/6462fac)) - -### [1.0.2](https://github.com/medikoo/type/compare/v1.0.1...v1.0.2) (2019-08-06) - -### Bug Fixes - -- Recognize host errors (e.g. DOMException) ([96ef399](https://github.com/medikoo/type/commit/96ef399)) - -## [1.0.1](https://github.com/medikoo/type/compare/v1.0.0...v1.0.1) (2019-04-08) - -# 1.0.0 (2019-04-05) - -### Bug Fixes - -- ensure 'is' functions can't crash ([59ceb78](https://github.com/medikoo/type/commit/59ceb78)) - -### Features - -- array-length/coerce ([af8ddec](https://github.com/medikoo/type/commit/af8ddec)) -- array-length/ensure ([d313eb6](https://github.com/medikoo/type/commit/d313eb6)) -- array-like/ensure ([45f1ddd](https://github.com/medikoo/type/commit/45f1ddd)) -- array-like/is ([9a026a5](https://github.com/medikoo/type/commit/9a026a5)) -- array/ensure ([9db1515](https://github.com/medikoo/type/commit/9db1515)) -- array/is ([9672839](https://github.com/medikoo/type/commit/9672839)) -- date/ensure ([44e25a0](https://github.com/medikoo/type/commit/44e25a0)) -- date/is ([0316558](https://github.com/medikoo/type/commit/0316558)) -- ensure to not crash ([3998348](https://github.com/medikoo/type/commit/3998348)) -- ensure/number ([134b5cb](https://github.com/medikoo/type/commit/134b5cb)) -- error/ensure ([d5c8a30](https://github.com/medikoo/type/commit/d5c8a30)) -- error/is-error ([4d6b899](https://github.com/medikoo/type/commit/4d6b899)) -- finite/coerce ([accaad1](https://github.com/medikoo/type/commit/accaad1)) -- finite/ensure ([51e4174](https://github.com/medikoo/type/commit/51e4174)) -- function/ensure ([b624c9a](https://github.com/medikoo/type/commit/b624c9a)) -- function/is ([dab8026](https://github.com/medikoo/type/commit/dab8026)) -- integer/coerce ([89dea2e](https://github.com/medikoo/type/commit/89dea2e)) -- integer/ensure ([44a7071](https://github.com/medikoo/type/commit/44a7071)) -- iterable/ensure ([3d48841](https://github.com/medikoo/type/commit/3d48841)) -- iterable/is ([cf09513](https://github.com/medikoo/type/commit/cf09513)) -- lib/is-to-string-tag-supported ([c8c001d](https://github.com/medikoo/type/commit/c8c001d)) -- natural-number/coerce ([d08fdd9](https://github.com/medikoo/type/commit/d08fdd9)) -- natural-number/ensure ([6c24d12](https://github.com/medikoo/type/commit/6c24d12)) -- number/coerce ([86ccf08](https://github.com/medikoo/type/commit/86ccf08)) -- object/ensure ([a9e8eed](https://github.com/medikoo/type/commit/a9e8eed)) -- object/is ([d2d7251](https://github.com/medikoo/type/commit/d2d7251)) -- plain-function/ensure ([5186518](https://github.com/medikoo/type/commit/5186518)) -- plain-function/is ([51bc791](https://github.com/medikoo/type/commit/51bc791)) -- plain-object/ensure ([91cf5e5](https://github.com/medikoo/type/commit/91cf5e5)) -- plain-object/is ([4dcf393](https://github.com/medikoo/type/commit/4dcf393)) -- promise/ensure ([8d096a4](https://github.com/medikoo/type/commit/8d096a4)) -- promise/is ([a00de02](https://github.com/medikoo/type/commit/a00de02)) -- prototype/is ([b23bdcc](https://github.com/medikoo/type/commit/b23bdcc)) -- reg-exp/ensure ([6f7bbcb](https://github.com/medikoo/type/commit/6f7bbcb)) -- reg-exp/is ([9728519](https://github.com/medikoo/type/commit/9728519)) -- safe-integer/coerce ([b8549c4](https://github.com/medikoo/type/commit/b8549c4)) -- safe-integer/ensure ([a70ef3f](https://github.com/medikoo/type/commit/a70ef3f)) -- string/coerce ([b25c71f](https://github.com/medikoo/type/commit/b25c71f)) -- string/ensure ([b62577d](https://github.com/medikoo/type/commit/b62577d)) -- support 'default' in resolveException ([e08332a](https://github.com/medikoo/type/commit/e08332a)) -- switch config to ES3 based ([37606d9](https://github.com/medikoo/type/commit/37606d9)) -- thenable/ensure ([6762c0d](https://github.com/medikoo/type/commit/6762c0d)) -- thenable/is ([2711d70](https://github.com/medikoo/type/commit/2711d70)) -- time-value/coerce ([27fd109](https://github.com/medikoo/type/commit/27fd109)) -- time-value/ensure ([1f6a8ea](https://github.com/medikoo/type/commit/1f6a8ea)) -- **string/coerce:** restrict toString acceptance ([2a87100](https://github.com/medikoo/type/commit/2a87100)) -- value/ensure ([dd6d8cb](https://github.com/medikoo/type/commit/dd6d8cb)) -- value/is ([fdf4763](https://github.com/medikoo/type/commit/fdf4763)) diff --git a/node_modules/ext/node_modules/type/LICENSE b/node_modules/ext/node_modules/type/LICENSE deleted file mode 100644 index ce541c9a..00000000 --- a/node_modules/ext/node_modules/type/LICENSE +++ /dev/null @@ -1,15 +0,0 @@ -ISC License - -Copyright (c) 2019-2022, Mariusz Nowak, @medikoo, medikoo.com - -Permission to use, copy, modify, and/or distribute this software for any -purpose with or without fee is hereby granted, provided that the above -copyright notice and this permission notice appear in all copies. - -THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH -REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY -AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, -INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM -LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE -OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR -PERFORMANCE OF THIS SOFTWARE. diff --git a/node_modules/ext/node_modules/type/README.md b/node_modules/ext/node_modules/type/README.md deleted file mode 100644 index 6b20794e..00000000 --- a/node_modules/ext/node_modules/type/README.md +++ /dev/null @@ -1,168 +0,0 @@ -[![Build status][build-image]][build-url] -[![Tests coverage][cov-image]][cov-url] -[![npm version][npm-image]][npm-url] - -# type - -## Runtime validation and processing of JavaScript types - -- Respects language nature and acknowledges its quirks -- Allows coercion in restricted forms (rejects clearly invalid input, normalizes permissible type deviations) -- No transpilation implied, written to work in all ECMAScript 3+ engines - -## Use case - -Validate arguments input in public API endpoints. - -_For validation of more sophisticated input structures (as deeply nested configuration objects) it's recommended to consider more powerful schema based utlities (as [AJV](https://ajv.js.org/) or [@hapi/joi](https://hapi.dev/family/joi/))_ - -### Example usage - -Bulletproof input arguments normalization and validation: - -```javascript -const ensureString = require('type/string/ensure') - , ensureDate = require('type/date/ensure') - , ensureNaturalNumber = require('type/natural-number/ensure') - , isObject = require('type/object/is'); - -module.exports = (path, options = { min: 0 }) { - path = ensureString(path, { errorMessage: "%v is not a path" }); - if (!isObject(options)) options = {}; - const min = ensureNaturalNumber(options.min, { default: 0 }) - , max = ensureNaturalNumber(options.max, { isOptional: true }) - , startTime = ensureDate(options.startTime, { isOptional: true }); - - // ...logic -}; -``` - -### Installation - -```bash -npm install type -``` - -## Utilities - -Aside of general [`ensure`](docs/ensure.md) validation util, following kind of utilities for recognized JavaScript types are provided: - -##### `*/coerce` - -Restricted coercion into primitive type. Returns coerced value or `null` if value is not coercible per rules. - -##### `*/is` - -Object type/kind confirmation, returns either `true` or `false`. - -##### `*/ensure` - -Value validation. Returns input value (in primitive cases possibly coerced) or if value doesn't meet the constraints throws `TypeError` . - -Each `*/ensure` utility, accepts following options (eventually passed with second argument): - -- `isOptional` - Makes `null` or `undefined` accepted as valid value. In such case instead of `TypeError` being thrown, `null` is returned. -- `default` - A value to be returned if `null` or `undefined` is passed as an input value. -- `errorMessage` - Custom error message. Following placeholders can be used: - - `%v` - To be replaced with short string representation of invalid value - - `%n` - To be replaced with meaninfgul name (to be passed with `name` option) of validated value. Not effective if `name` option is not present -- `errorCode` - Eventual error code to be exposed on `.code` error property -- `name` - Meaningful name for validated value, to be used in error message, assuming it contains `%n` placeholder -- `Error` - Alternative error constructor to be used (defaults to `TypeError`) - -### Index - -#### General utils: - -- [`ensure`](docs/ensure.md) - -#### Type specific utils: - -- **Value** - - [`value/is`](docs/value.md#valueis) - - [`value/ensure`](docs/value.md#valueensure) -- **Object** - - [`object/is`](docs/object.md#objectis) - - [`object/ensure`](docs/object.md#objectensure) - - **Plain Object** - - [`plain-object/is`](docs/plain-object.md#plain-objectis) - - [`plain-object/ensure`](docs/plain-object.md#plain-objectensure) -- **String** - - [`string/coerce`](docs/string.md#stringcoerce) - - [`string/ensure`](docs/string.md#stringensure) -- **Number** - - [`number/coerce`](docs/number.md#numbercoerce) - - [`number/ensure`](docs/number.md#numberensure) - - **Finite Number** - - [`finite/coerce`](docs/finite.md#finitecoerce) - - [`finite/ensure`](docs/finite.md#finiteensure) - - **Integer Number** - - [`integer/coerce`](docs/integer.md#integercoerce) - - [`integer/ensure`](docs/integer.md#integerensure) - - **Safe Integer Number** - - [`safe-integer/coerce`](docs/safe-integer.md#safe-integercoerce) - - [`safe-integer/ensure`](docs/.md#safe-integerensure) - - **Natural Number** - - [`natural-number/coerce`](docs/natural-number.md#natural-numbercoerce) - - [`natural-number/ensure`](docs/natural-number.md#natural-numberensure) - - **Array Length** - - [`array-length/coerce`](docs/array-length.md#array-lengthcoerce) - - [`array-length/ensure`](docs/array-length.md#array-lengthensure) - - **Time Value** - - [`time-value/coerce`](docs/time-value.md#time-valuecoerce) - - [`time-value/ensure`](docs/time-value.md#time-valueensure) -- **BigInt** - - [`big-int/coerce`](docs/big-int.md#big-intcoerce) - - [`big-int/ensure`](docs/big-int.md#big-intensure) -- **Array Like** - - [`array-like/is`](docs/array-like.md#array-likeis) - - [`array-like/ensure`](docs/array-like.md#array-likeensure) - - **Array** - - [`array/is`](docs/array.md#arrayis) - - [`array/ensure`](docs/array.md#arrayensure) -- **Iterable** - - [`iterable/is`](docs/iterable.md#iterableis) - - [`iterable/ensure`](docs/iterable.md#iterableensure) -- **Set** - - [`set/is`](docs/set.md#setis) - - [`set/ensure`](docs/set.md#setensure) -- **Map** - - [`map/is`](docs/map.md#mapis) - - [`map/ensure`](docs/map.md#mapensure) -- **Date** - - [`date/is`](docs/date.md#dateis) - - [`date/ensure`](docs/date.md#dateensure) -- **Function** - - [`function/is`](docs/function.md#functionis) - - [`function/ensure`](docs/function.md#functionensure) - - **Constructor** - - [`constructor/is`](docs/constructor.md#plain-functionis) - - [`constructor/ensure`](docs/constructor.md#plain-functionensure) - - **Plain Function** - - [`plain-function/is`](docs/plain-function.md#plain-functionis) - - [`plain-function/ensure`](docs/plain-function.md#plain-functionensure) -- **Reg Exp** - - [`reg-exp/is`](docs/reg-exp.md#reg-expis) - - [`reg-exp/ensure`](docs/.md#reg-expensure) -- **Thenable** - - [`thenable/is`](docs/thenable.md#thenableis) - - [`thenable/ensure`](docs/thenable.md#thenableensure) - - **Promise** - - [`promise/is`](docs/promise.md#promiseis) - - [`promise/ensure`](docs/promise.md#promiseensure) -- **Error** - - [`error/is`](docs/error.md#erroris) - - [`error/ensure`](docs/error.md#errorensure) -- **Prototype** - - [`prototype/is`](docs/prototype.md#prototypeis) - -### Tests - - $ npm test - -[build-image]: https://github.com/medikoo/type/workflows/Integrate/badge.svg -[build-url]: https://github.com/medikoo/type/actions?query=workflow%3AIntegrate -[cov-image]: https://img.shields.io/codecov/c/github/medikoo/type.svg -[cov-url]: https://codecov.io/gh/medikoo/type -[npm-image]: https://img.shields.io/npm/v/type.svg -[npm-url]: https://www.npmjs.com/package/type diff --git a/node_modules/ext/node_modules/type/array-length/coerce.js b/node_modules/ext/node_modules/type/array-length/coerce.js deleted file mode 100644 index 3dbbf977..00000000 --- a/node_modules/ext/node_modules/type/array-length/coerce.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -var coerceToSafeInteger = require("../safe-integer/coerce"); - -module.exports = function (value) { - value = coerceToSafeInteger(value); - if (!value) return value; - if (value < 0) return null; - return value; -}; diff --git a/node_modules/ext/node_modules/type/array-length/ensure.js b/node_modules/ext/node_modules/type/array-length/ensure.js deleted file mode 100644 index 2b48ddcf..00000000 --- a/node_modules/ext/node_modules/type/array-length/ensure.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; - -var resolveException = require("../lib/resolve-exception") - , coerce = require("./coerce"); - -module.exports = function (value/*, options*/) { - var coerced = coerce(value); - if (coerced !== null) return coerced; - var options = arguments[1]; - var errorMessage = - options && options.name - ? "Expected an array length for %n, received %v" - : "%v is not an array length"; - return resolveException(value, errorMessage, options); -}; diff --git a/node_modules/ext/node_modules/type/array-like/ensure.js b/node_modules/ext/node_modules/type/array-like/ensure.js deleted file mode 100644 index 0d1a9f75..00000000 --- a/node_modules/ext/node_modules/type/array-like/ensure.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; - -var resolveException = require("../lib/resolve-exception") - , is = require("./is"); - -module.exports = function (value/*, options*/) { - if (is(value, arguments[1])) return value; - var options = arguments[1]; - var errorMessage = - options && options.name - ? "Expected an array like for %n, received %v" - : "%v is not an array like"; - return resolveException(value, errorMessage, options); -}; diff --git a/node_modules/ext/node_modules/type/array-like/is.js b/node_modules/ext/node_modules/type/array-like/is.js deleted file mode 100644 index 7778fede..00000000 --- a/node_modules/ext/node_modules/type/array-like/is.js +++ /dev/null @@ -1,21 +0,0 @@ -"use strict"; - -var coerceToArrayLength = require("../array-length/coerce") - , isObject = require("../object/is"); - -module.exports = function (value/*, options*/) { - if (!isObject(value)) { - var options = arguments[1]; - if (isObject(options) && options.allowString && typeof value === "string") return true; - return false; - } - - if (typeof value === "function") return false; - - var length; - try { length = value.length; } - catch (error) { return false; } - - if (coerceToArrayLength(length) === null) return false; - return true; -}; diff --git a/node_modules/ext/node_modules/type/array/ensure.js b/node_modules/ext/node_modules/type/array/ensure.js deleted file mode 100644 index 19e45999..00000000 --- a/node_modules/ext/node_modules/type/array/ensure.js +++ /dev/null @@ -1,43 +0,0 @@ -"use strict"; - -var resolveException = require("../lib/resolve-exception") - , resolveErrorMessage = require("../lib/resolve-error-message") - , toShortString = require("../lib/to-short-string") - , ensurePlainFunction = require("../plain-function/ensure") - , is = require("./is"); - -var objHasOwnProperty = Object.prototype.hasOwnProperty, invalidItemsLimit = 3; - -module.exports = function (value /*, options*/) { - var options = arguments[1]; - var mainErrorMessage = - options && options.name ? "Expected an array for %n, received %v" : "%v is not an array"; - if (!is(value)) return resolveException(value, mainErrorMessage, options); - if (!options) return value; - - var ensureItem = ensurePlainFunction(options.ensureItem, { isOptional: true }); - if (ensureItem) { - var coercedValue = [], invalidItems; - for (var index = 0, length = value.length; index < length; ++index) { - if (!objHasOwnProperty.call(value, index)) continue; - var coercedItem; - try { - coercedItem = ensureItem(value[index]); - } catch (error) { - if (!invalidItems) invalidItems = []; - if (invalidItems.push(toShortString(value[index])) === invalidItemsLimit) break; - } - if (invalidItems) continue; - coercedValue[index] = coercedItem; - } - if (invalidItems) { - throw new TypeError( - resolveErrorMessage(mainErrorMessage, value, options) + - ".\n Following items are invalid: " + - invalidItems.join(", ") - ); - } - return coercedValue; - } - return value; -}; diff --git a/node_modules/ext/node_modules/type/array/is.js b/node_modules/ext/node_modules/type/array/is.js deleted file mode 100644 index 13fd8d39..00000000 --- a/node_modules/ext/node_modules/type/array/is.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; - -var isPrototype = require("../prototype/is"); - -var isArray; -if (typeof Array.isArray === "function") { - isArray = Array.isArray; -} else { - var objectToString = Object.prototype.toString, objectTaggedString = objectToString.call([]); - isArray = function (value) { return objectToString.call(value) === objectTaggedString; }; -} - -module.exports = function (value) { - if (!isArray(value)) return false; - - // Sanity check (reject objects which do not expose common Array interface) - if (!hasOwnProperty.call(value, "length")) return false; - try { - if (typeof value.length !== "number") return false; - if (typeof value.push !== "function") return false; - if (typeof value.splice !== "function") return false; - } catch (error) { - return false; - } - - return !isPrototype(value); -}; diff --git a/node_modules/ext/node_modules/type/big-int/coerce.js b/node_modules/ext/node_modules/type/big-int/coerce.js deleted file mode 100644 index a600a20d..00000000 --- a/node_modules/ext/node_modules/type/big-int/coerce.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; - -var isValue = require("../value/is"); - -// Sanity BigInt support check -BigInt(0); - -module.exports = function (value) { - if (!isValue(value)) return null; - if (typeof value === "bigint") return value; - try { return BigInt(value); } - catch (error) { return null; } -}; diff --git a/node_modules/ext/node_modules/type/big-int/ensure.js b/node_modules/ext/node_modules/type/big-int/ensure.js deleted file mode 100644 index 319b1b7d..00000000 --- a/node_modules/ext/node_modules/type/big-int/ensure.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; - -var resolveException = require("../lib/resolve-exception") - , coerce = require("./coerce"); - -module.exports = function (value /*, options*/) { - var coerced = coerce(value); - if (coerced !== null) return coerced; - var options = arguments[1]; - var errorMessage = - options && options.name ? "Expected bigint for %n, received %v" : "%v is not a bigint"; - return resolveException(value, errorMessage, options); -}; diff --git a/node_modules/ext/node_modules/type/constructor/ensure.js b/node_modules/ext/node_modules/type/constructor/ensure.js deleted file mode 100644 index 4f3e8466..00000000 --- a/node_modules/ext/node_modules/type/constructor/ensure.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; - -var resolveException = require("../lib/resolve-exception") - , is = require("./is"); - -module.exports = function (value /*, options*/) { - if (is(value)) return value; - var options = arguments[1]; - var errorMessage = - options && options.name - ? "Expected a constructor function for %n, received %v" - : "%v is not a constructor function"; - return resolveException(value, errorMessage, options); -}; diff --git a/node_modules/ext/node_modules/type/constructor/is.js b/node_modules/ext/node_modules/type/constructor/is.js deleted file mode 100644 index 058a1564..00000000 --- a/node_modules/ext/node_modules/type/constructor/is.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; - -var isFunction = require("../function/is"); - -var constructorRe = /^\s*(?:class[\s{/}]|function[\s(])/ - , functionToString = Function.prototype.toString; - -module.exports = function (value) { - if (!isFunction(value)) return false; - if (!constructorRe.test(functionToString.call(value))) return false; - return true; -}; diff --git a/node_modules/ext/node_modules/type/date/ensure.js b/node_modules/ext/node_modules/type/date/ensure.js deleted file mode 100644 index 0fae4d3d..00000000 --- a/node_modules/ext/node_modules/type/date/ensure.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; - -var resolveException = require("../lib/resolve-exception") - , is = require("./is"); - -module.exports = function (value/*, options*/) { - if (is(value)) return value; - var options = arguments[1]; - var errorMessage = - options && options.name ? "Expected a date for %n, received %v" : "%v is not a date"; - return resolveException(value, errorMessage, options); -}; diff --git a/node_modules/ext/node_modules/type/date/is.js b/node_modules/ext/node_modules/type/date/is.js deleted file mode 100644 index 0754085f..00000000 --- a/node_modules/ext/node_modules/type/date/is.js +++ /dev/null @@ -1,26 +0,0 @@ -"use strict"; - -var isPrototype = require("../prototype/is"); - -var dateValueOf = Date.prototype.valueOf; - -module.exports = function (value) { - if (!value) return false; - - try { - // Sanity check (reject objects which do not expose common Date interface) - if (typeof value.getFullYear !== "function") return false; - if (typeof value.getTimezoneOffset !== "function") return false; - if (typeof value.setFullYear !== "function") return false; - - // Ensure its native Date object (has [[DateValue]] slot) - dateValueOf.call(value); - } catch (error) { - return false; - } - - // Ensure it hosts valid date - if (isNaN(value)) return false; - - return !isPrototype(value); -}; diff --git a/node_modules/ext/node_modules/type/docs/array-length.md b/node_modules/ext/node_modules/type/docs/array-length.md deleted file mode 100644 index cca7d8ad..00000000 --- a/node_modules/ext/node_modules/type/docs/array-length.md +++ /dev/null @@ -1,27 +0,0 @@ -# Array length - -_number_ primitive that conforms as valid _array length_ - -## `array-length/coerce` - -Follows [`safe-integer/coerce`](safe-integer.md#safe-integercoerce) but returns `null` in place of values which are below `0` - -```javascript -const coerceToArrayLength = require("type/safe-integer/coerce"); - -coerceToArrayLength("12.95"); // 12 -coerceToArrayLength(9007199254740992); // null -coerceToArrayLength(null); // null -``` - -## `array-length/ensure` - -If given argument is an _array length_ coercible value (via [`array-length/coerce`](#array-lengthcoerce)) returns result number. -Otherwise `TypeError` is thrown. - -```javascript -const ensureArrayLength = require("type/array-length/ensure"); - -ensureArrayLength(12.93); // "12" -ensureArrayLength(9007199254740992); // Thrown TypeError: 9007199254740992 is not a valid array length -``` diff --git a/node_modules/ext/node_modules/type/docs/array-like.md b/node_modules/ext/node_modules/type/docs/array-like.md deleted file mode 100644 index 2a48df83..00000000 --- a/node_modules/ext/node_modules/type/docs/array-like.md +++ /dev/null @@ -1,33 +0,0 @@ -# Array Like - -_Array-like_ value (any value with `length` property) - -## `array-like/is` - -Restricted _array-like_ confirmation. Returns true for every value that meets following contraints - -- is an _object_ (or with `allowString` option, a _string_) -- is not a _function_ -- Exposes `length` that meets [`array-length`](array-length.md#array-lengthcoerce) constraints - -```javascript -const isArrayLike = require("type/array-like/is"); - -isArrayLike([]); // true -isArrayLike({}); // false -isArrayLike({ length: 0 }); // true -isArrayLike("foo"); // false -isArrayLike("foo", { allowString: true }); // true -``` - -## `array-like/ensure` - -If given argument is an _array-like_, it is returned back. Otherwise `TypeError` is thrown. - -```javascript -const ensureArrayLike = require("type/array-like/ensure"); - -ensureArrayLike({ length: 0 }); // { length: 0 } -ensureArrayLike("foo", { allowString: true }); // "foo" -ensureArrayLike({}); // Thrown TypeError: null is not an iterable -``` diff --git a/node_modules/ext/node_modules/type/docs/array.md b/node_modules/ext/node_modules/type/docs/array.md deleted file mode 100644 index 0c6ac4e9..00000000 --- a/node_modules/ext/node_modules/type/docs/array.md +++ /dev/null @@ -1,46 +0,0 @@ -# Array - -_Array_ instance - -## `array/is` - -Confirms if given object is a native array - -```javascript -const isArray = require("type/array/is"); - -isArray([]); // true -isArray({}); // false -isArray("foo"); // false -``` - -## `array/ensure` - -If given argument is an array, it is returned back. Otherwise `TypeError` is thrown. - -```javascript -const ensureArray = require("type/array/ensure"); - -ensureArray(["foo"]); // ["foo"] -ensureArray("foo"); // Thrown TypeError: foo is not an array -``` - -### Confirming on items - -Items can be validated by passing `ensureItem` option. Note that in this case: - -- A newly created instance of an array with coerced item values is returned -- Error message lists up to three items which are invalid - -```javascript -const ensureString = require("type/string/ensure"); - -ensureArray([12], { ensureItem: ensureString }); // ["12"] - -/* - Below invocation with crash with: - TypeError: 23, [object Object], [object Object] is not a valid array. - Following items are invalid: [object Object], [object Object] -*/ -ensureArray([23, {}, {}], { ensureItem: ensureString }); -``` diff --git a/node_modules/ext/node_modules/type/docs/big-int.md b/node_modules/ext/node_modules/type/docs/big-int.md deleted file mode 100644 index 78626fdb..00000000 --- a/node_modules/ext/node_modules/type/docs/big-int.md +++ /dev/null @@ -1,27 +0,0 @@ -# BigInt - -_bigint_ primitive - -## `big-int/coerce` - -BigInt coercion. If value can be coerced by `BigInt` its result is returned. -For all other values `null` is returned - -```javascript -const coerceToBigInt = require("type/big-int/coerce"); - -coerceToBigInt(12); // 12n -coerceToBigInt(undefined); // null -``` - -## `big-int/ensure` - -If given argument is a _bigint_ coercible value (via [`big-int/coerce`](#big-intcoerce)) returns result bigint. -Otherwise `TypeError` is thrown. - -```javascript -const ensureBigInt = require("type/big-int/ensure"); - -ensureBigInt(12); // 12n -ensureBigInt(null); // Thrown TypeError: null is not a bigint -``` diff --git a/node_modules/ext/node_modules/type/docs/constructor.md b/node_modules/ext/node_modules/type/docs/constructor.md deleted file mode 100644 index 172462af..00000000 --- a/node_modules/ext/node_modules/type/docs/constructor.md +++ /dev/null @@ -1,28 +0,0 @@ -# Constructor - -A _Function_ instance that's a _constructor_ (either regular function or _class_) - -## `constructor/is` - -Confirms if given object is a constructor function\_ - -```javascript -const isConstructor = require("type/constructor/is"); - -isConstructor(function () {}); // true -isConstructor(() => {}); // false -isConstructor(class {}); // true -isConstructor("foo"); // false -``` - -## `constructor/ensure` - -If given argument is a _constructor function_, it is returned back. Otherwise `TypeError` is thrown. - -```javascript -const ensureConstructor = require("type/constructor/ensure"); - -const fn = function () {}; -ensureConstructor(fn); // fn -ensureConstructor(() => {}); // Thrown TypeError: () => {} is not a constructor function -``` diff --git a/node_modules/ext/node_modules/type/docs/date.md b/node_modules/ext/node_modules/type/docs/date.md deleted file mode 100644 index 98d36540..00000000 --- a/node_modules/ext/node_modules/type/docs/date.md +++ /dev/null @@ -1,28 +0,0 @@ -# Date - -_Date_ instance - -## `date/is` - -Confirms if given object is a native date, and is not an _Invalid Date_ - -```javascript -const isDate = require("type/date/is"); - -isDate(new Date()); // true -isDate(new Date("Invalid date")); // false -isDate(Date.now()); // false -isDate("foo"); // false -``` - -## `date/ensure` - -If given argument is a date object, it is returned back. Otherwise `TypeError` is thrown. - -```javascript -const ensureDate = require("type/date/ensure"); - -const date = new Date(); -ensureDate(date); // date -ensureDate(123123); // Thrown TypeError: 123123 is not a date object -``` diff --git a/node_modules/ext/node_modules/type/docs/ensure.md b/node_modules/ext/node_modules/type/docs/ensure.md deleted file mode 100644 index c3a9527a..00000000 --- a/node_modules/ext/node_modules/type/docs/ensure.md +++ /dev/null @@ -1,40 +0,0 @@ -# `ensure(validationDatum1[, ...validationDatumN[, options]])` - -Provides a complete cumulated input validation for an API endpoint. Validates multiple input arguments and consolidates eventual errors into one. - -## Arguments - -### `validationDatum1[, ...validationDatumN]` - -For each argument to be validated a `validationDatum` of following stucture should be defined: - -```javascript -[argumentName, inputValue, ensureFunction, (options = {})]; -``` - -- `argumentName` - Name of validated argument (used for meaningful error messaging) -- `inputValue` - An argument value as passed to function -- `ensureFunction` - An `ensureX` function with which argument should be validated (e.g. if we're after string, then we need [string/ensure](string.md#stringensure)) -- `options` - Optional, extra options to be passed to `ensureX` function - -### `[options]` - -Eventual options be passed to underlying `ensureX` functions. If custom error constructor is passed with an `Error` option, then cumulated error is created with this constructor. - -## Usage example - -```javascript -const ensure = require("type/ensure"); -const ensureString = require("type/string/ensure"); -const ensureNaturalNumber = require("type/natural-number/ensure"); - -const resolveRepositoryIssue = (repoName, issueNumber) => { - // Validate input - [repoName, issueNumber] = ensure( - ["repoName", repoName, ensureString], - ["issueNumber", issueNumber, ensureNaturalNumber], - { Error: UserError } - ); - // ... logic -}; -``` diff --git a/node_modules/ext/node_modules/type/docs/error.md b/node_modules/ext/node_modules/type/docs/error.md deleted file mode 100644 index c7793333..00000000 --- a/node_modules/ext/node_modules/type/docs/error.md +++ /dev/null @@ -1,26 +0,0 @@ -# Error - -_Error_ instance - -## `error/is` - -Confirms if given object is a native error object - -```javascript -const isError = require("type/error/is"); - -isError(new Error()); // true -isError({ message: "Fake error" }); // false -``` - -## `error/ensure` - -If given argument is an error object, it is returned back. Otherwise `TypeError` is thrown. - -```javascript -const ensureError = require("type/error/ensure"); - -const someError = new Error("Some error"); -ensureError(someError); // someError -ensureError({ message: "Fake error" }); // Thrown TypeError: [object Object] is not an error object -``` diff --git a/node_modules/ext/node_modules/type/docs/finite.md b/node_modules/ext/node_modules/type/docs/finite.md deleted file mode 100644 index 68786caf..00000000 --- a/node_modules/ext/node_modules/type/docs/finite.md +++ /dev/null @@ -1,27 +0,0 @@ -# Finite Number - -Finite _number_ primitive - -## `finite/coerce` - -Follows [`number/coerce`](number.md#numbercoerce) additionally rejecting `Infinity` and `-Infinity` values (`null` is returned if given values coerces to them) - -```javascript -const coerceToFinite = require("type/finite/coerce"); - -coerceToFinite("12"); // 12 -coerceToFinite(Infinity); // null -coerceToFinite(null); // null -``` - -## `finite/ensure` - -If given argument is a finite number coercible value (via [`finite/coerce`](#finitecoerce)) returns result number. -Otherwise `TypeError` is thrown. - -```javascript -const ensureFinite = require("type/finite/ensure"); - -ensureFinite(12); // "12" -ensureFinite(null); // Thrown TypeError: null is not a finite number -``` diff --git a/node_modules/ext/node_modules/type/docs/function.md b/node_modules/ext/node_modules/type/docs/function.md deleted file mode 100644 index 23f38273..00000000 --- a/node_modules/ext/node_modules/type/docs/function.md +++ /dev/null @@ -1,28 +0,0 @@ -# Function - -_Function_ instance - -## `function/is` - -Confirms if given object is a native function - -```javascript -const isFunction = require("type/function/is"); - -isFunction(function () {}); // true -isFunction(() => {}); // true -isFunction(class {}); // true -isFunction("foo"); // false -``` - -## `function/ensure` - -If given argument is a function object, it is returned back. Otherwise `TypeError` is thrown. - -```javascript -const ensureFunction = require("type/function/ensure"); - -const fn = function () {}; -ensureFunction(fn); // fn -ensureFunction(/foo/); // Thrown TypeError: /foo/ is not a function -``` diff --git a/node_modules/ext/node_modules/type/docs/integer.md b/node_modules/ext/node_modules/type/docs/integer.md deleted file mode 100644 index 9260a460..00000000 --- a/node_modules/ext/node_modules/type/docs/integer.md +++ /dev/null @@ -1,27 +0,0 @@ -# Integer Number - -Integer _number_ primitive - -## `integer/coerce` - -Follows [`finite/coerce`](finite.md#finitecoerce) additionally stripping decimal part from the number - -```javascript -const coerceToInteger = require("type/integer/coerce"); - -coerceToInteger("12.95"); // 12 -coerceToInteger(Infinity); // null -coerceToInteger(null); // null -``` - -## `integer/ensure` - -If given argument is an integer coercible value (via [`integer/coerce`](#integercoerce)) returns result number. -Otherwise `TypeError` is thrown. - -```javascript -const ensureInteger = require("type/integer/ensure"); - -ensureInteger(12.93); // "12" -ensureInteger(null); // Thrown TypeError: null is not an integer -``` diff --git a/node_modules/ext/node_modules/type/docs/iterable.md b/node_modules/ext/node_modules/type/docs/iterable.md deleted file mode 100644 index 862e6c88..00000000 --- a/node_modules/ext/node_modules/type/docs/iterable.md +++ /dev/null @@ -1,65 +0,0 @@ -# Iterable - -Value which implements _iterable_ protocol - -## `iterable/is` - -Confirms if given object is an _iterable_ and is not a _string_ (unless `allowString` option is passed) - -```javascript -const isIterable = require("type/iterable/is"); - -isIterable([]); // true -isIterable({}); // false -isIterable("foo"); // false -isIterable("foo", { allowString: true }); // true -``` - -Supports also `denyEmpty` option - -```javascript -isIterable([], { denyEmpty: true }); // false -isIterable(["foo"], { denyEmpty: true }); // true -``` - -## `iterable/ensure` - -If given argument is an _iterable_, it is returned back. Otherwise `TypeError` is thrown. -By default _string_ primitives are rejected unless `allowString` option is passed. - -```javascript -const ensureIterable = require("type/iterable/ensure"); - -ensureIterable([]); // [] -ensureIterable("foo", { allowString: true }); // "foo" -ensureIterable({}); // Thrown TypeError: null is not expected iterable -``` - -### Denying empty iterables - -Pass `denyEmpty` option to require non empty iterables - -```javascript -ensureIterable([], { denyEmpty: true }); // Thrown TypeError: [] is not expected iterable -``` - -### Confirming on items - -Items can be validated by passing `ensureItem` option. Note that in this case: - -- A newly created instance of array with coerced values is returned -- Error message lists up to three invalid items - -```javascript -const ensureString = require("type/string/ensure"); - -ensureIterable(new Set(["foo", 12]), { ensureItem: ensureString }); // ["foo", "12"] - -/* - Below invocation with crash with: - TypeError: [object Set] is not expected iterable value. - Following items are invalid: - - [object Object] -*/ -ensureIterable(new Set(["foo", {}]), { ensureItem: ensureString }); -``` diff --git a/node_modules/ext/node_modules/type/docs/map.md b/node_modules/ext/node_modules/type/docs/map.md deleted file mode 100644 index c1280227..00000000 --- a/node_modules/ext/node_modules/type/docs/map.md +++ /dev/null @@ -1,27 +0,0 @@ -# Map - -_Map_ instance - -## `map/is` - -Confirms if given object is a native _map_ - -```javascript -const isMap = require("type/map/is"); - -isMap(new Map()); // true -isMap(new Set()); // false -isMap({}); // false -``` - -## `map/ensure` - -If given argument is a _map_, it is returned back. Otherwise `TypeError` is thrown. - -```javascript -const ensureMap = require("type/map/ensure"); - -const map = new Map(); -ensureMap(map); // map -eensureMap({}); // Thrown TypeError: [object Object] is not a map -``` diff --git a/node_modules/ext/node_modules/type/docs/natural-number.md b/node_modules/ext/node_modules/type/docs/natural-number.md deleted file mode 100644 index c91ee164..00000000 --- a/node_modules/ext/node_modules/type/docs/natural-number.md +++ /dev/null @@ -1,27 +0,0 @@ -# Natural Number - -Natural _number_ primitive - -## `natural-number/coerce` - -Follows [`integer/coerce`](integer.md#integercoerce) but returns `null` for values below `0` - -```javascript -const coerceToNaturalNumber = require("type/natural-number/coerce"); - -coerceToNaturalNumber("12.95"); // 12 -coerceToNaturalNumber(-120); // null -coerceToNaturalNumber(null); // null -``` - -## `natural-number/ensure` - -If given argument is a natural number coercible value (via [`natural-number/coerce`](#natural-numbercoerce)) returns result number. -Otherwise `TypeError` is thrown. - -```javascript -const ensureNaturalNumber = require("type/natural-number/ensure"); - -ensureNaturalNumber(12.93); // "12" -ensureNaturalNumber(-230); // Thrown TypeError: null is not a natural number -``` diff --git a/node_modules/ext/node_modules/type/docs/number.md b/node_modules/ext/node_modules/type/docs/number.md deleted file mode 100644 index 5f4dfa92..00000000 --- a/node_modules/ext/node_modules/type/docs/number.md +++ /dev/null @@ -1,33 +0,0 @@ -# Number - -_number_ primitive - -## `number/coerce` - -Restricted number coercion. Returns number presentation for every value that follows below constraints - -- is implicitly coercible to number -- is neither `null` nor `undefined` -- is not `NaN` and doesn't coerce to `NaN` - -For all other values `null` is returned - -```javascript -const coerceToNumber = require("type/number/coerce"); - -coerceToNumber("12"); // 12 -coerceToNumber({}); // null -coerceToNumber(null); // null -``` - -## `number/ensure` - -If given argument is a number coercible value (via [`number/coerce`](#numbercoerce)) returns result number. -Otherwise `TypeError` is thrown. - -```javascript -const ensureNumber = require("type/number/ensure"); - -ensureNumber(12); // "12" -ensureNumber(null); // Thrown TypeError: null is not a number -``` diff --git a/node_modules/ext/node_modules/type/docs/object.md b/node_modules/ext/node_modules/type/docs/object.md deleted file mode 100644 index ed43b1fa..00000000 --- a/node_modules/ext/node_modules/type/docs/object.md +++ /dev/null @@ -1,28 +0,0 @@ -# Object - -_Object_, any non-primitive value - -## `object/is` - -Confirms if passed value is an object - -```javascript -const isObject = require("type/object/is"); - -isObject({}); // true -isObject(true); // false -isObject(null); // false -``` - -## `object/ensure` - -If given argument is an object, it is returned back. Otherwise `TypeError` is thrown. - -```javascript -const ensureObject = require("type/object/ensure"); - -const obj = {}; - -ensureObject(obj); // obj -ensureString(null); // Thrown TypeError: null is not an object -``` diff --git a/node_modules/ext/node_modules/type/docs/plain-function.md b/node_modules/ext/node_modules/type/docs/plain-function.md deleted file mode 100644 index e3a8895b..00000000 --- a/node_modules/ext/node_modules/type/docs/plain-function.md +++ /dev/null @@ -1,28 +0,0 @@ -# Plain Function - -A _Function_ instance that is not a _Class_ - -## `plain-function/is` - -Confirms if given object is a _plain function_ - -```javascript -const isPlainFunction = require("type/plain-function/is"); - -isPlainFunction(function () {}); // true -isPlainFunction(() => {}); // true -isPlainFunction(class {}); // false -isPlainFunction("foo"); // false -``` - -## `plain-function/ensure` - -If given argument is a _plain function_ object, it is returned back. Otherwise `TypeError` is thrown. - -```javascript -const ensurePlainFunction = require("type/function/ensure"); - -const fn = function () {}; -ensurePlainFunction(fn); // fn -ensurePlainFunction(class {}); // Thrown TypeError: class is not a plain function -``` diff --git a/node_modules/ext/node_modules/type/docs/plain-object.md b/node_modules/ext/node_modules/type/docs/plain-object.md deleted file mode 100644 index ce3f5225..00000000 --- a/node_modules/ext/node_modules/type/docs/plain-object.md +++ /dev/null @@ -1,69 +0,0 @@ -# Plain Object - -A _plain object_ - -- Inherits directly from `Object.prototype` or `null` -- Is not a constructor's `prototype` property - -## `plain-object/is` - -Confirms if given object is a _plain object_ - -```javascript -const isPlainObject = require("type/plain-object/is"); - -isPlainObject({}); // true -isPlainObject(Object.create(null)); // true -isPlainObject([]); // false -``` - -## `plain-object/ensure` - -If given argument is a plain object it is returned back. Otherwise `TypeError` is thrown. - -```javascript -const ensurePlainObject = require("type/plain-object/ensure"); - -ensurePlainObject({}); // {} -ensurePlainObject("foo"); // Thrown TypeError: foo is not a plain object -``` - -### Confirming on keys - -Keys can be validated by passing `allowedKeys` option. Note that in this case: - -- Error message lists up to three invalid keys - -```javascript -const allowedKeys = ["foo"]; - -ensurePlainObject({}, { allowedKeys }); // {} -ensurePlainObject({ foo: "bar" }, { allowedKeys }); // { foo: 'bar' } - -/* - Below invocation with crash with: - TypeError: [object Object] is not a valid plain object. - Following keys are unexpected: lorem, ipsum -*/ -ensurePlainObject({ foo: "bar", lorem: 1, ipsum: 2 }, { allowedKeys }); -``` - -### Confirming on property values - -Property values can be validated by passing `ensurePropertyValue` option. Note that in this case: - -- A newly created instance of plain object with coerced values is returned -- Error message lists up to three keys that contain invalid values - -```javascript -const ensureString = require("type/string/ensure"); - -ensurePlainObject({ foo: 12 }, { ensurePropertyValue: ensureString }); // { foo: '12' } - -/* - Below invocation with crash with: - TypeError: [object Object] is not a valid plain object. - Valuees for following keys are invalid: lorem, ipsum -*/ -ensurePlainObject({ foo: 23, lorem: {}, ipsum: {} }, { ensurePropertyValue: ensureString }); -``` diff --git a/node_modules/ext/node_modules/type/docs/promise.md b/node_modules/ext/node_modules/type/docs/promise.md deleted file mode 100644 index ce387949..00000000 --- a/node_modules/ext/node_modules/type/docs/promise.md +++ /dev/null @@ -1,27 +0,0 @@ -# Promise - -_Promise_ instance - -## `promise/is` - -Confirms if given object is a native _promise_ - -```javascript -const isPromise = require("type/promise/is"); - -isPromise(Promise.resolve()); // true -isPromise({ then: () => {} }); // false -isPromise({}); // false -``` - -## `promise/ensure` - -If given argument is a promise, it is returned back. Otherwise `TypeError` is thrown. - -```javascript -const ensurePromise = require("type/promise/ensure"); - -const promise = Promise.resolve(); -ensurePromise(promise); // promise -eensurePromise({}); // Thrown TypeError: [object Object] is not a promise -``` diff --git a/node_modules/ext/node_modules/type/docs/prototype.md b/node_modules/ext/node_modules/type/docs/prototype.md deleted file mode 100644 index 926c256e..00000000 --- a/node_modules/ext/node_modules/type/docs/prototype.md +++ /dev/null @@ -1,15 +0,0 @@ -# Prototype - -Some constructor's `prototype` property - -## `prototype/is` - -Confirms if given object serves as a _prototype_ property - -```javascript -const isPrototype = require("type/prototype/is"); - -isPrototype({}); // false -isPrototype(Object.prototype); // true -isPrototype(Array.prototype); // true -``` diff --git a/node_modules/ext/node_modules/type/docs/reg-exp.md b/node_modules/ext/node_modules/type/docs/reg-exp.md deleted file mode 100644 index 00d081c3..00000000 --- a/node_modules/ext/node_modules/type/docs/reg-exp.md +++ /dev/null @@ -1,26 +0,0 @@ -# RegExp - -_RegExp_ instance - -## `reg-exp/is` - -Confirms if given object is a native regular expression object - -```javascript -const isRegExp = require("type/reg-exp/is"); - -isRegExp(/foo/); -isRegExp({}); // false -isRegExp("foo"); // false -``` - -## `reg-exp/ensure` - -If given argument is a regular expression object, it is returned back. Otherwise `TypeError` is thrown. - -```javascript -const ensureRegExp = require("type/reg-exp/ensure"); - -ensureRegExp(/foo/); // /foo/ -ensureRegExp("foo"); // Thrown TypeError: null is not a regular expression object -``` diff --git a/node_modules/ext/node_modules/type/docs/safe-integer.md b/node_modules/ext/node_modules/type/docs/safe-integer.md deleted file mode 100644 index cf4bb1c8..00000000 --- a/node_modules/ext/node_modules/type/docs/safe-integer.md +++ /dev/null @@ -1,27 +0,0 @@ -# Safe Integer Number - -Safe integer _number_ primitive - -## `safe-integer/coerce` - -Follows [`integer/coerce`](integer.md#integercoerce) but returns `null` in place of values which are beyond `Number.MIN_SAFE_INTEGER` and `Number.MAX_SAFE_INTEGER` range. - -```javascript -const coerceToSafeInteger = require("type/safe-integer/coerce"); - -coerceToInteger("12.95"); // 12 -coerceToInteger(9007199254740992); // null -coerceToInteger(null); // null -``` - -## `safe-integer/ensure` - -If given argument is a safe integer coercible value (via [`safe-integer/coerce`](#safe-integercoerce)) returns result number. -Otherwise `TypeError` is thrown. - -```javascript -const ensureSafeInteger = require("type/safe-integer/ensure"); - -ensureSafeInteger(12.93); // "12" -ensureSafeInteger(9007199254740992); // Thrown TypeError: null is not a safe integer -``` diff --git a/node_modules/ext/node_modules/type/docs/set.md b/node_modules/ext/node_modules/type/docs/set.md deleted file mode 100644 index 33f88768..00000000 --- a/node_modules/ext/node_modules/type/docs/set.md +++ /dev/null @@ -1,27 +0,0 @@ -# Set - -_Set_ instance - -## `set/is` - -Confirms if given object is a native set\_ - -```javascript -const isSet = require("type/set/is"); - -isSet(new Set()); // true -isSet(new Map()); // false -isSet({}); // false -``` - -## `Set/ensure` - -If given argument is a _set_, it is returned back. Otherwise `TypeError` is thrown. - -```javascript -const ensureSet = require("type/set/ensure"); - -const set = new Set(); -ensureSet(set); // set -eensureSet({}); // Thrown TypeError: [object Object] is not a set -``` diff --git a/node_modules/ext/node_modules/type/docs/string.md b/node_modules/ext/node_modules/type/docs/string.md deleted file mode 100644 index 051b4a3d..00000000 --- a/node_modules/ext/node_modules/type/docs/string.md +++ /dev/null @@ -1,32 +0,0 @@ -# String - -_string_ primitive - -## `string/coerce` - -Restricted string coercion. Returns string presentation for every value that follows below constraints - -- is implicitly coercible to string -- is neither`null` nor `undefined` -- its `toString` method is not `Object.prototype.toString` - -For all other values `null` is returned - -```javascript -const coerceToString = require("type/string/coerce"); - -coerceToString(12); // "12" -coerceToString(undefined); // null -``` - -## `string/ensure` - -If given argument is a string coercible value (via [`string/coerce`](#stringcoerce)) returns result string. -Otherwise `TypeError` is thrown. - -```javascript -const ensureString = require("type/string/ensure"); - -ensureString(12); // "12" -ensureString(null); // Thrown TypeError: null is not a string -``` diff --git a/node_modules/ext/node_modules/type/docs/thenable.md b/node_modules/ext/node_modules/type/docs/thenable.md deleted file mode 100644 index 1bdf92dd..00000000 --- a/node_modules/ext/node_modules/type/docs/thenable.md +++ /dev/null @@ -1,27 +0,0 @@ -# Thenable - -_Thenable_ object (an object with `then` method) - -## `thenable/is` - -Confirms if given object is a _thenable_ - -```javascript -const isThenable = require("type/thenable/is"); - -isThenable(Promise.resolve()); // true -isThenable({ then: () => {} }); // true -isThenable({}); // false -``` - -## `thenable/ensure` - -If given argument is a _thenable_ object, it is returned back. Otherwise `TypeError` is thrown. - -```javascript -const ensureThenable = require("type/thenable/ensure"); - -const promise = Promise.resolve(); -ensureThenable(promise); // promise -ensureThenable({}); // Thrown TypeError: [object Object] is not a thenable object -``` diff --git a/node_modules/ext/node_modules/type/docs/time-value.md b/node_modules/ext/node_modules/type/docs/time-value.md deleted file mode 100644 index 98e9e8eb..00000000 --- a/node_modules/ext/node_modules/type/docs/time-value.md +++ /dev/null @@ -1,27 +0,0 @@ -# Time value - -_number_ primitive which is a valid _time value_ (as used internally in _Date_ instances) - -## `time-value/coerce` - -Follows [`integer/coerce`](integer.md#integercoerce) but returns `null` in place of values which go beyond 100 000 0000 days from unix epoch - -```javascript -const coerceToTimeValue = require("type/time-value/coerce"); - -coerceToTimeValue(12312312); // true -coerceToTimeValue(Number.MAX_SAFE_INTEGER); // false -coerceToTimeValue("foo"); // false -``` - -## `time-value/ensure` - -If given argument is a _time value_ coercible value (via [`time-value/coerce`](#time-valuecoerce)) returns result number. -Otherwise `TypeError` is thrown. - -```javascript -const ensureTimeValue = require("type/time-value/ensure"); - -ensureTimeValue(12.93); // "12" -ensureTimeValue(Number.MAX_SAFE_INTEGER); // Thrown TypeError: null is not a natural number -``` diff --git a/node_modules/ext/node_modules/type/docs/value.md b/node_modules/ext/node_modules/type/docs/value.md deleted file mode 100644 index 1310609b..00000000 --- a/node_modules/ext/node_modules/type/docs/value.md +++ /dev/null @@ -1,27 +0,0 @@ -# Value - -_Value_, any value that's neither `null` nor `undefined` . - -## `value/is` - -Confirms whether passed argument is a _value_ - -```javascript -const isValue = require("type/value/is"); - -isValue({}); // true -isValue(null); // false -``` - -## `value/ensure` - -Ensures if given argument is a _value_. If it's a value it is returned back, if not `TypeError` is thrown - -```javascript -const ensureValue = require("type/value/ensure"); - -const obj = {}; - -ensureValue(obj); // obj -ensureValue(null); // Thrown TypeError: Cannot use null -``` diff --git a/node_modules/ext/node_modules/type/ensure.js b/node_modules/ext/node_modules/type/ensure.js deleted file mode 100644 index 7fe82207..00000000 --- a/node_modules/ext/node_modules/type/ensure.js +++ /dev/null @@ -1,51 +0,0 @@ -"use strict"; - -var isArray = require("./array/is") - , toShortString = require("./lib/to-short-string"); - -var objPropertyIsEnumerable = Object.prototype.propertyIsEnumerable; - -var assign = function (target, source) { - for (var key in source) { - if (objPropertyIsEnumerable.call(source, key)) target[key] = source[key]; - } -}; - -module.exports = function (validationDatum1/*, ...validationDatumN, options */) { - var validationData = [validationDatum1]; - var globalOptions; - if (arguments.length > 1) { - var hasOptions = !isArray(arguments[arguments.length - 1]); - if (hasOptions) globalOptions = arguments[arguments.length - 1]; - var lastDatumIndex = hasOptions ? arguments.length - 2 : arguments.length - 1; - for (var i = 1; i <= lastDatumIndex; ++i) validationData.push(arguments[i]); - } - var result = [], errors; - for (var j = 0; j < validationData.length; ++j) { - var validationDatum = validationData[j]; - var options = { name: validationDatum[0] }; - if (globalOptions) assign(options, globalOptions); - if (validationDatum[3]) assign(options, validationDatum[3]); - var resultItem; - if (typeof validationDatum[2] !== "function") { - throw new TypeError(toShortString(validationDatum[2]) + " is not a function"); - } - try { - resultItem = validationDatum[2](validationDatum[1], options); - } catch (error) { - if (!errors) errors = []; - errors.push(error); - } - if (errors) continue; - result.push(resultItem); - } - if (!errors) return result; - - if (errors.length === 1) throw errors[0]; - var ErrorConstructor = (globalOptions && globalOptions.Error) || TypeError; - var errorMessage = "Approached following errors:"; - for (var k = 0; k < errors.length; ++k) { - errorMessage += "\n - " + errors[k].message.split("\n").join("\n "); - } - throw new ErrorConstructor(errorMessage); -}; diff --git a/node_modules/ext/node_modules/type/error/ensure.js b/node_modules/ext/node_modules/type/error/ensure.js deleted file mode 100644 index 8b28d855..00000000 --- a/node_modules/ext/node_modules/type/error/ensure.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; - -var resolveException = require("../lib/resolve-exception") - , is = require("./is"); - -module.exports = function (value/*, options*/) { - if (is(value)) return value; - var options = arguments[1]; - var errorMessage = - options && options.name ? "Expected an error for %n, received %v" : "%v is not an error"; - return resolveException(value, errorMessage, options); -}; diff --git a/node_modules/ext/node_modules/type/error/is.js b/node_modules/ext/node_modules/type/error/is.js deleted file mode 100644 index bf04c808..00000000 --- a/node_modules/ext/node_modules/type/error/is.js +++ /dev/null @@ -1,45 +0,0 @@ -"use strict"; - -var isPrototype = require("../prototype/is") - , isPlainObject = require("../plain-object/is"); - -var objectToString = Object.prototype.toString; - -// Recognize host specific errors (e.g. DOMException) -var errorTaggedStringRe = /^\[object .*(?:Error|Exception)\]$/ - , errorNameRe = /^[^\s]*(?:Error|Exception)$/; - -module.exports = function (value) { - if (!value) return false; - - var name; - // Sanity check (reject objects which do not expose common Error interface) - try { - name = value.name; - if (typeof name !== "string") return false; - if (typeof value.message !== "string") return false; - } catch (error) { - return false; - } - - // Ensure its a native-like Error object - // (has [[ErrorData]] slot, or was created to resemble one) - // Note: It's not a 100% bulletproof check of confirming that as: - // - In ES2015+ string tag can be overriden via Symbol.toStringTag property - // - Host errors do not share native error tag. Still we rely on assumption that - // tag for each error will end either with `Error` or `Exception` string - // - In pre ES2015 era, no custom errors will share the error tag. - if (!errorTaggedStringRe.test(objectToString.call(value))) { - // Definitely not an ES2015 error instance, but could still be an error - // (created via e.g. CustomError.prototype = Object.create(Error.prototype)) - try { - if (name !== value.constructor.name) return false; - } catch (error) { - return false; - } - if (!errorNameRe.test(name)) return false; - if (isPlainObject(value)) return false; - } - - return !isPrototype(value); -}; diff --git a/node_modules/ext/node_modules/type/finite/coerce.js b/node_modules/ext/node_modules/type/finite/coerce.js deleted file mode 100644 index a3783be5..00000000 --- a/node_modules/ext/node_modules/type/finite/coerce.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; - -var coerceToNumber = require("../number/coerce"); - -module.exports = function (value) { - value = coerceToNumber(value); - return isFinite(value) ? value : null; -}; diff --git a/node_modules/ext/node_modules/type/finite/ensure.js b/node_modules/ext/node_modules/type/finite/ensure.js deleted file mode 100644 index aac96bec..00000000 --- a/node_modules/ext/node_modules/type/finite/ensure.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; - -var resolveException = require("../lib/resolve-exception") - , coerce = require("./coerce"); - -module.exports = function (value/*, options*/) { - var coerced = coerce(value); - if (coerced !== null) return coerced; - var options = arguments[1]; - var errorMessage = - options && options.name - ? "Expected a finite number for %n, received %v" - : "%v is not a finite number"; - return resolveException(value, errorMessage, options); -}; diff --git a/node_modules/ext/node_modules/type/function/ensure.js b/node_modules/ext/node_modules/type/function/ensure.js deleted file mode 100644 index d1337017..00000000 --- a/node_modules/ext/node_modules/type/function/ensure.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; - -var resolveException = require("../lib/resolve-exception") - , is = require("./is"); - -module.exports = function (value/*, options*/) { - if (is(value)) return value; - var options = arguments[1]; - var errorMessage = - options && options.name - ? "Expected a function for %n, received %v" - : "%v is not a function"; - return resolveException(value, errorMessage, options); -}; diff --git a/node_modules/ext/node_modules/type/function/is.js b/node_modules/ext/node_modules/type/function/is.js deleted file mode 100644 index 981990a7..00000000 --- a/node_modules/ext/node_modules/type/function/is.js +++ /dev/null @@ -1,19 +0,0 @@ -"use strict"; - -var isPrototype = require("../prototype/is"); - -module.exports = function (value) { - if (typeof value !== "function") return false; - - if (!hasOwnProperty.call(value, "length")) return false; - - try { - if (typeof value.length !== "number") return false; - if (typeof value.call !== "function") return false; - if (typeof value.apply !== "function") return false; - } catch (error) { - return false; - } - - return !isPrototype(value); -}; diff --git a/node_modules/ext/node_modules/type/integer/coerce.js b/node_modules/ext/node_modules/type/integer/coerce.js deleted file mode 100644 index cba5e17e..00000000 --- a/node_modules/ext/node_modules/type/integer/coerce.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; - -var coerceToFinite = require("../finite/coerce"); - -var abs = Math.abs, floor = Math.floor; - -module.exports = function (value) { - value = coerceToFinite(value); - if (!value) return value; - return (value > 0 ? 1 : -1) * floor(abs(value)); -}; diff --git a/node_modules/ext/node_modules/type/integer/ensure.js b/node_modules/ext/node_modules/type/integer/ensure.js deleted file mode 100644 index df1a9754..00000000 --- a/node_modules/ext/node_modules/type/integer/ensure.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; - -var resolveException = require("../lib/resolve-exception") - , coerce = require("./coerce"); - -module.exports = function (value/*, options*/) { - var coerced = coerce(value); - if (coerced !== null) return coerced; - var options = arguments[1]; - var errorMessage = - options && options.name - ? "Expected an integer for %n, received %v" - : "%v is not an integer"; - return resolveException(value, errorMessage, options); -}; diff --git a/node_modules/ext/node_modules/type/iterable/ensure.js b/node_modules/ext/node_modules/type/iterable/ensure.js deleted file mode 100644 index b1a24890..00000000 --- a/node_modules/ext/node_modules/type/iterable/ensure.js +++ /dev/null @@ -1,49 +0,0 @@ -"use strict"; - -var resolveException = require("../lib/resolve-exception") - , resolveErrorMessage = require("../lib/resolve-error-message") - , toShortString = require("../lib/to-short-string") - , ensurePlainFunction = require("../plain-function/ensure") - , is = require("./is"); - -var invalidItemsLimit = 3; - -module.exports = function (value/*, options*/) { - var options = arguments[1]; - var mainErrorMessage = - options && options.name - ? "Expected an iterable for %n, received %v" - : "%v is not expected iterable"; - if (!is(value, options)) return resolveException(value, mainErrorMessage, options); - if (!options) return value; - - var ensureItem = ensurePlainFunction(options.ensureItem, { isOptional: true }); - if (ensureItem) { - var coercedValue = []; - var iterator = value[Symbol.iterator](); - var item, invalidItems; - while (!(item = iterator.next()).done) { - var newItemValue; - try { - newItemValue = ensureItem(item.value); - } catch (error) { - if (!invalidItems) invalidItems = []; - if (invalidItems.push(item.value) === invalidItemsLimit) break; - } - if (invalidItems) continue; - coercedValue.push(newItemValue); - } - if (invalidItems) { - var errorMessage = - resolveErrorMessage(mainErrorMessage, value, options) + - ".\n Following items are invalid:"; - for (var i = 0; i < invalidItems.length; ++i) { - errorMessage += "\n - " + toShortString(invalidItems[i]); - } - throw new TypeError(errorMessage); - } - return coercedValue; - } - - return value; -}; diff --git a/node_modules/ext/node_modules/type/iterable/is.js b/node_modules/ext/node_modules/type/iterable/is.js deleted file mode 100644 index d35408cd..00000000 --- a/node_modules/ext/node_modules/type/iterable/is.js +++ /dev/null @@ -1,32 +0,0 @@ -// Polyfills friendly, therefore ES5 syntax - -"use strict"; - -var isObject = require("../object/is"); - -var iteratorSymbol = Symbol.iterator; - -if (!iteratorSymbol) { - throw new Error("Cannot initialize iterator/is due to Symbol.iterator not being implemented"); -} - -module.exports = function (value/*, options*/) { - var options = arguments[1]; - if (!isObject(value)) { - if (!isObject(options) || !options.allowString || typeof value !== "string") return false; - } - try { - if (typeof value[iteratorSymbol] !== "function") return false; - } catch (error) { - return false; - } - if (!options) return true; - if (options.denyEmpty) { - try { - if (value[iteratorSymbol]().next().done) return false; - } catch (error) { - return false; - } - } - return true; -}; diff --git a/node_modules/ext/node_modules/type/lib/ensure/min.js b/node_modules/ext/node_modules/type/lib/ensure/min.js deleted file mode 100644 index df878bdc..00000000 --- a/node_modules/ext/node_modules/type/lib/ensure/min.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; - -var resolveException = require("../resolve-exception"); - -module.exports = function (value, coerced, options) { - if (coerced >= options.min) return coerced; - var errorMessage = - options && options.name - ? "Expected %n to be greater or equal " + options.min + ", received %v" - : "%v is not greater or equal " + options.min; - return resolveException(value, errorMessage, options); -}; diff --git a/node_modules/ext/node_modules/type/lib/is-to-string-tag-supported.js b/node_modules/ext/node_modules/type/lib/is-to-string-tag-supported.js deleted file mode 100644 index 254d8b3d..00000000 --- a/node_modules/ext/node_modules/type/lib/is-to-string-tag-supported.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = typeof Symbol === "function" && typeof Symbol.toStringTag === "symbol"; diff --git a/node_modules/ext/node_modules/type/lib/resolve-error-message.js b/node_modules/ext/node_modules/type/lib/resolve-error-message.js deleted file mode 100644 index 3cb000b5..00000000 --- a/node_modules/ext/node_modules/type/lib/resolve-error-message.js +++ /dev/null @@ -1,52 +0,0 @@ -"use strict"; - -var stringCoerce = require("../string/coerce") - , toShortString = require("./to-short-string"); - -module.exports = function (errorMessage, value, inputOptions) { - if (inputOptions && inputOptions.errorMessage) { - errorMessage = stringCoerce(inputOptions.errorMessage); - } - - var valueInsertIndex = errorMessage.indexOf("%v"); - var valueToken = valueInsertIndex > -1 ? toShortString(value) : null; - if (inputOptions && inputOptions.name) { - var nameInsertIndex = errorMessage.indexOf("%n"); - if (nameInsertIndex > -1) { - if (valueInsertIndex > -1) { - var firstToken, secondToken, firstInsertIndex, secondInsertIndex; - if (nameInsertIndex > valueInsertIndex) { - firstToken = valueToken; - firstInsertIndex = valueInsertIndex; - secondToken = inputOptions.name; - secondInsertIndex = nameInsertIndex; - } else { - firstToken = inputOptions.name; - firstInsertIndex = nameInsertIndex; - secondToken = valueToken; - secondInsertIndex = valueInsertIndex; - } - return ( - errorMessage.slice(0, firstInsertIndex) + - firstToken + - errorMessage.slice(firstInsertIndex + 2, secondInsertIndex) + - secondToken + - errorMessage.slice(secondInsertIndex + 2) - ); - } - return ( - errorMessage.slice(0, nameInsertIndex) + - inputOptions.name + - errorMessage.slice(nameInsertIndex + 2) - ); - } - } - if (valueInsertIndex > -1) { - return ( - errorMessage.slice(0, valueInsertIndex) + - valueToken + - errorMessage.slice(valueInsertIndex + 2) - ); - } - return errorMessage; -}; diff --git a/node_modules/ext/node_modules/type/lib/resolve-exception.js b/node_modules/ext/node_modules/type/lib/resolve-exception.js deleted file mode 100644 index 6c99286e..00000000 --- a/node_modules/ext/node_modules/type/lib/resolve-exception.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; - -var isValue = require("../value/is") - , resolveErrorMessage = require("./resolve-error-message"); - -module.exports = function (value, defaultMessage, inputOptions) { - if (inputOptions && !isValue(value)) { - if ("default" in inputOptions) return inputOptions["default"]; - if (inputOptions.isOptional) return null; - } - var ErrorConstructor = (inputOptions && inputOptions.Error) || TypeError; - var error = new ErrorConstructor(resolveErrorMessage(defaultMessage, value, inputOptions)); - if (inputOptions && inputOptions.errorCode) error.code = inputOptions.errorCode; - throw error; -}; diff --git a/node_modules/ext/node_modules/type/lib/safe-to-string.js b/node_modules/ext/node_modules/type/lib/safe-to-string.js deleted file mode 100644 index a756dd37..00000000 --- a/node_modules/ext/node_modules/type/lib/safe-to-string.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -module.exports = function (value) { - try { - return value.toString(); - } catch (error) { - try { return String(value); } - catch (error2) { return null; } - } -}; diff --git a/node_modules/ext/node_modules/type/lib/to-short-string.js b/node_modules/ext/node_modules/type/lib/to-short-string.js deleted file mode 100644 index c8d7ed88..00000000 --- a/node_modules/ext/node_modules/type/lib/to-short-string.js +++ /dev/null @@ -1,29 +0,0 @@ -"use strict"; - -var safeToString = require("./safe-to-string"); - -var reNewLine = /[\n\r\u2028\u2029]/g; - -module.exports = function (value) { - var string = safeToString(value); - if (string === null) return ""; - // Trim if too long - if (string.length > 100) string = string.slice(0, 99) + "…"; - // Replace eventual new lines - string = string.replace(reNewLine, function (char) { - switch (char) { - case "\n": - return "\\n"; - case "\r": - return "\\r"; - case "\u2028": - return "\\u2028"; - case "\u2029": - return "\\u2029"; - /* istanbul ignore next */ - default: - throw new Error("Unexpected character"); - } - }); - return string; -}; diff --git a/node_modules/ext/node_modules/type/map/ensure.js b/node_modules/ext/node_modules/type/map/ensure.js deleted file mode 100644 index 3e3325ad..00000000 --- a/node_modules/ext/node_modules/type/map/ensure.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; - -var resolveException = require("../lib/resolve-exception") - , is = require("./is"); - -module.exports = function (value /*, options*/) { - if (is(value)) return value; - var options = arguments[1]; - var errorMessage = - options && options.name ? "Expected a map for %n, received %v" : "%v is not a map"; - return resolveException(value, errorMessage, options); -}; diff --git a/node_modules/ext/node_modules/type/map/is.js b/node_modules/ext/node_modules/type/map/is.js deleted file mode 100644 index 4ed7baea..00000000 --- a/node_modules/ext/node_modules/type/map/is.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; - -var isPrototype = require("../prototype/is"); - -// In theory we could rely on Symbol.toStringTag directly, -// still early native implementation (e.g. in FF) predated symbols -var objectToString = Object.prototype.toString, objectTaggedString = objectToString.call(new Map()); - -module.exports = function (value) { - if (!value) return false; - - // Sanity check (reject objects which do not expose common Promise interface) - try { - if (typeof value.set !== "function") return false; - if (typeof value.get !== "function") return false; - if (typeof value.has !== "function") return false; - if (typeof value.clear !== "function") return false; - } catch (error) { - return false; - } - - // Ensure its native Promise object (has [[MapData]] slot) - // Note: it's not 100% precise as string tag may be overriden - // and other objects could be hacked to expose it - if (objectToString.call(value) !== objectTaggedString) return false; - - return !isPrototype(value); -}; diff --git a/node_modules/ext/node_modules/type/natural-number/coerce.js b/node_modules/ext/node_modules/type/natural-number/coerce.js deleted file mode 100644 index 4b7931c5..00000000 --- a/node_modules/ext/node_modules/type/natural-number/coerce.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -var coerceToInteger = require("../integer/coerce"); - -module.exports = function (value) { - value = coerceToInteger(value); - if (!value) return value; - if (value < 0) return null; - return value; -}; diff --git a/node_modules/ext/node_modules/type/natural-number/ensure.js b/node_modules/ext/node_modules/type/natural-number/ensure.js deleted file mode 100644 index 1f09174a..00000000 --- a/node_modules/ext/node_modules/type/natural-number/ensure.js +++ /dev/null @@ -1,21 +0,0 @@ -"use strict"; - -var resolveException = require("../lib/resolve-exception") - , ensureMin = require("../lib/ensure/min") - , coerce = require("./coerce"); - -module.exports = function (value/*, options*/) { - var coerced = coerce(value), options = arguments[1]; - if (coerced !== null) { - if (options) { - if (options.min) ensureMin(value, coerced, options); - } - return coerced; - } - - var errorMessage = - options && options.name - ? "Expected a natural number for %n, received %v" - : "%v is not a natural number"; - return resolveException(value, errorMessage, options); -}; diff --git a/node_modules/ext/node_modules/type/number/coerce.js b/node_modules/ext/node_modules/type/number/coerce.js deleted file mode 100644 index 1bb15125..00000000 --- a/node_modules/ext/node_modules/type/number/coerce.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; - -var isValue = require("../value/is"); - -module.exports = function (value) { - if (!isValue(value)) return null; - try { - value = +value; // Ensure implicit coercion - } catch (error) { - return null; - } - if (isNaN(value)) return null; - return value; -}; diff --git a/node_modules/ext/node_modules/type/number/ensure.js b/node_modules/ext/node_modules/type/number/ensure.js deleted file mode 100644 index 9ae705dc..00000000 --- a/node_modules/ext/node_modules/type/number/ensure.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; - -var resolveException = require("../lib/resolve-exception") - , coerce = require("./coerce"); - -module.exports = function (value/*, options*/) { - var coerced = coerce(value); - if (coerced !== null) return coerced; - var options = arguments[1]; - var errorMessage = - options && options.name ? "Expected a number for %n, received %v" : "%v is not a number"; - return resolveException(value, errorMessage, options); -}; diff --git a/node_modules/ext/node_modules/type/object/ensure.js b/node_modules/ext/node_modules/type/object/ensure.js deleted file mode 100644 index 341f55c7..00000000 --- a/node_modules/ext/node_modules/type/object/ensure.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; - -var resolveException = require("../lib/resolve-exception") - , is = require("./is"); - -module.exports = function (value/*, options*/) { - if (is(value)) return value; - var options = arguments[1]; - var errorMessage = - options && options.name ? "Expected an object for %n, received %v" : "%v is not an object"; - return resolveException(value, errorMessage, options); -}; diff --git a/node_modules/ext/node_modules/type/object/is.js b/node_modules/ext/node_modules/type/object/is.js deleted file mode 100644 index a254dcbc..00000000 --- a/node_modules/ext/node_modules/type/object/is.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; - -var isValue = require("../value/is"); - -// prettier-ignore -var possibleTypes = { "object": true, "function": true, "undefined": true /* document.all */ }; - -module.exports = function (value) { - if (!isValue(value)) return false; - return hasOwnProperty.call(possibleTypes, typeof value); -}; diff --git a/node_modules/ext/node_modules/type/package.json b/node_modules/ext/node_modules/type/package.json deleted file mode 100644 index a863fbf1..00000000 --- a/node_modules/ext/node_modules/type/package.json +++ /dev/null @@ -1,120 +0,0 @@ -{ - "name": "type", - "version": "2.7.2", - "description": "Runtime validation and processing of JavaScript types", - "author": "Mariusz Nowak (https://www.medikoo.com/)", - "keywords": [ - "type", - "coercion" - ], - "repository": "medikoo/type", - "devDependencies": { - "chai": "^4.3.6", - "eslint": "^8.21.0", - "eslint-config-medikoo": "^4.1.2", - "git-list-updated": "^1.2.1", - "github-release-from-cc-changelog": "^2.3.0", - "husky": "^4.3.8", - "lint-staged": "^13.0.3", - "mocha": "^6.2.3", - "nyc": "^15.1.0", - "prettier-elastic": "^2.2.1" - }, - "typesVersions": { - ">=4": { - "*": [ - "ts-types/*" - ] - } - }, - "husky": { - "hooks": { - "pre-commit": "lint-staged" - } - }, - "lint-staged": { - "*.js": [ - "eslint" - ], - "*.{css,html,js,json,md,yaml,yml}": [ - "prettier -c" - ] - }, - "eslintConfig": { - "extends": "medikoo/es3", - "root": true, - "globals": { - "BigInt": true, - "Map": true, - "Promise": true, - "Set": true, - "Symbol": true - }, - "overrides": [ - { - "files": "test/**/*.js", - "env": { - "mocha": true - }, - "rules": { - "no-eval": "off", - "no-new-wrappers": "off" - } - }, - { - "files": [ - "string/coerce.js", - "number/coerce.js" - ], - "rules": { - "no-implicit-coercion": "off" - } - }, - { - "files": "plain-object/is.js", - "rules": { - "no-proto": "off" - } - } - ] - }, - "prettier": { - "printWidth": 100, - "tabWidth": 4, - "overrides": [ - { - "files": [ - "*.md", - "*.yml" - ], - "options": { - "tabWidth": 2 - } - } - ] - }, - "nyc": { - "all": true, - "exclude": [ - ".github", - "coverage/**", - "test/**", - "*.config.js" - ], - "reporter": [ - "lcov", - "html", - "text-summary" - ] - }, - "scripts": { - "coverage": "nyc npm test", - "lint:updated": "pipe-git-updated --base=main --ext=js -- eslint --ignore-pattern '!*'", - "prettier-check": "prettier -c --ignore-path .gitignore \"**/*.{css,html,js,json,md,yaml,yml}\"", - "prettier-check:updated": "pipe-git-updated --base=main --ext=css --ext=html --ext=js --ext=json --ext=md --ext=yaml --ext=yml -- prettier -c", - "prettify": "prettier --write --ignore-path .gitignore \"**/*.{css,html,js,json,md,yaml,yml}\"", - "prettify:updated": "pipe-git-updated ---base=main -ext=css --ext=html --ext=js --ext=json --ext=md --ext=yaml --ext=yml -- prettier --write", - "test": "mocha --recursive" - }, - "license": "ISC" -} diff --git a/node_modules/ext/node_modules/type/plain-function/ensure.js b/node_modules/ext/node_modules/type/plain-function/ensure.js deleted file mode 100644 index d3a20e6d..00000000 --- a/node_modules/ext/node_modules/type/plain-function/ensure.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; - -var resolveException = require("../lib/resolve-exception") - , is = require("./is"); - -module.exports = function (value/*, options*/) { - if (is(value)) return value; - var options = arguments[1]; - var errorMessage = - options && options.name - ? "Expected a plain function for %n, received %v" - : "%v is not a plain function"; - return resolveException(value, errorMessage, options); -}; diff --git a/node_modules/ext/node_modules/type/plain-function/is.js b/node_modules/ext/node_modules/type/plain-function/is.js deleted file mode 100644 index b55d4fff..00000000 --- a/node_modules/ext/node_modules/type/plain-function/is.js +++ /dev/null @@ -1,11 +0,0 @@ -"use strict"; - -var isFunction = require("../function/is"); - -var classRe = /^\s*class[\s{/}]/, functionToString = Function.prototype.toString; - -module.exports = function (value) { - if (!isFunction(value)) return false; - if (classRe.test(functionToString.call(value))) return false; - return true; -}; diff --git a/node_modules/ext/node_modules/type/plain-object/ensure.js b/node_modules/ext/node_modules/type/plain-object/ensure.js deleted file mode 100644 index 519261ef..00000000 --- a/node_modules/ext/node_modules/type/plain-object/ensure.js +++ /dev/null @@ -1,67 +0,0 @@ -"use strict"; - -var resolveException = require("../lib/resolve-exception") - , resolveErrorMessage = require("../lib/resolve-error-message") - , ensurePlainFunction = require("../plain-function/ensure") - , ensureArray = require("../array/ensure") - , is = require("./is"); - -var objHasOwnProperty = Object.prototype.hasOwnProperty, invalidItemsLimit = 3; - -module.exports = function (value/*, options*/) { - var options = arguments[1]; - var mainErrorMessage = - options && options.name - ? "Expected a plain object for %n, received %v" - : "%v is not a plain object"; - if (!is(value)) return resolveException(value, mainErrorMessage, options); - if (!options) return value; - - var invalidKeys, key, errorMessage; - var allowedKeys = ensureArray(options.allowedKeys, { isOptional: true }); - if (allowedKeys) { - for (key in value) { - if (!objHasOwnProperty.call(value, key)) continue; - if (allowedKeys.indexOf(key) > -1) continue; - if (!invalidKeys) invalidKeys = []; - if (invalidKeys.push(key) === invalidItemsLimit) break; - } - if (invalidKeys) { - errorMessage = - resolveErrorMessage(mainErrorMessage, value, options) + - ".\n Following keys are unexpected: " + - invalidKeys.join(", "); - throw new TypeError(errorMessage); - } - } - - var ensurePropertyValue = ensurePlainFunction(options.ensurePropertyValue, { - isOptional: true - }); - if (ensurePropertyValue) { - var coercedValue = {}; - for (key in value) { - if (!objHasOwnProperty.call(value, key)) continue; - var coercedPropertyValue; - try { - coercedPropertyValue = ensurePropertyValue(value[key]); - } catch (error) { - if (!invalidKeys) invalidKeys = []; - if (invalidKeys.push(key) === invalidItemsLimit) break; - } - if (invalidKeys) continue; - coercedValue[key] = coercedPropertyValue; - } - if (invalidKeys) { - errorMessage = - resolveErrorMessage(mainErrorMessage, value, options) + - ".\n Values for following keys are invalid: " + - invalidKeys.join(", "); - throw new TypeError(errorMessage); - } - - return coercedValue; - } - - return value; -}; diff --git a/node_modules/ext/node_modules/type/plain-object/is.js b/node_modules/ext/node_modules/type/plain-object/is.js deleted file mode 100644 index 50d6713c..00000000 --- a/node_modules/ext/node_modules/type/plain-object/is.js +++ /dev/null @@ -1,28 +0,0 @@ -"use strict"; - -var isObject = require("../object/is") - , isPrototype = require("../prototype/is"); - -var getPrototypeOf; -if (typeof Object.getPrototypeOf === "function") { - getPrototypeOf = Object.getPrototypeOf; -} else if ({}.__proto__ === Object.prototype) { - getPrototypeOf = function (object) { return object.__proto__; }; -} - -module.exports = function (value) { - if (!isObject(value)) return false; - var prototype; - if (getPrototypeOf) { - prototype = getPrototypeOf(value); - } else { - try { - var valueConstructor = value.constructor; - if (valueConstructor) prototype = valueConstructor.prototype; - } catch (error) { - return false; - } - } - if (prototype && !hasOwnProperty.call(prototype, "propertyIsEnumerable")) return false; - return !isPrototype(value); -}; diff --git a/node_modules/ext/node_modules/type/promise/ensure.js b/node_modules/ext/node_modules/type/promise/ensure.js deleted file mode 100644 index 7fbebb35..00000000 --- a/node_modules/ext/node_modules/type/promise/ensure.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; - -var resolveException = require("../lib/resolve-exception") - , is = require("./is"); - -module.exports = function (value/*, options*/) { - if (is(value)) return value; - var options = arguments[1]; - var errorMessage = - options && options.name ? "Expected a promise for %n, received %v" : "%v is not a promise"; - return resolveException(value, errorMessage, options); -}; diff --git a/node_modules/ext/node_modules/type/promise/is.js b/node_modules/ext/node_modules/type/promise/is.js deleted file mode 100644 index 53533627..00000000 --- a/node_modules/ext/node_modules/type/promise/is.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; - -var isPrototype = require("../prototype/is"); - -// In theory we could rely on Symbol.toStringTag directly, -// still early native implementation (e.g. in FF) predated symbols -var objectToString = Object.prototype.toString - , objectTaggedString = objectToString.call(Promise.resolve()); - -module.exports = function (value) { - if (!value) return false; - - // Sanity check (reject objects which do not expose common Promise interface) - try { - if (typeof value.then !== "function") return false; - if (typeof value["catch"] !== "function") return false; - } catch (error) { - return false; - } - - // Ensure its native Promise object (has [[PromiseState]] slot) - // Note: it's not 100% precise as string tag may be overriden - // and other objects could be hacked to expose it - if (objectToString.call(value) !== objectTaggedString) return false; - - return !isPrototype(value); -}; diff --git a/node_modules/ext/node_modules/type/prototype/is.js b/node_modules/ext/node_modules/type/prototype/is.js deleted file mode 100644 index aaddb2aa..00000000 --- a/node_modules/ext/node_modules/type/prototype/is.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; - -var isObject = require("../object/is"); - -module.exports = function (value) { - if (!isObject(value)) return false; - try { - if (!value.constructor) return false; - return value.constructor.prototype === value; - } catch (error) { - return false; - } -}; diff --git a/node_modules/ext/node_modules/type/reg-exp/ensure.js b/node_modules/ext/node_modules/type/reg-exp/ensure.js deleted file mode 100644 index 50669f3d..00000000 --- a/node_modules/ext/node_modules/type/reg-exp/ensure.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; - -var resolveException = require("../lib/resolve-exception") - , is = require("./is"); - -module.exports = function (value/*, options*/) { - if (is(value)) return value; - var options = arguments[1]; - var errorMessage = - options && options.name - ? "Expected a regular expression for %n, received %v" - : "%v is not a regular expression"; - return resolveException(value, errorMessage, options); -}; diff --git a/node_modules/ext/node_modules/type/reg-exp/is.js b/node_modules/ext/node_modules/type/reg-exp/is.js deleted file mode 100644 index f0c69d52..00000000 --- a/node_modules/ext/node_modules/type/reg-exp/is.js +++ /dev/null @@ -1,37 +0,0 @@ -"use strict"; - -var isToStringTagSupported = require("../lib/is-to-string-tag-supported") - , isPrototype = require("../prototype/is"); - -var regExpTest = RegExp.prototype.test - , objectToString = Object.prototype.toString - , objectTaggedString = objectToString.call(/a/); - -module.exports = function (value) { - if (!value) return false; - - // Sanity check (reject objects which do not expose common RegExp interface) - if (!hasOwnProperty.call(value, "lastIndex")) return false; - try { - if (typeof value.lastIndex !== "number") return false; - if (typeof value.test !== "function") return false; - if (typeof value.exec !== "function") return false; - } catch (error) { - return false; - } - - // Ensure its native RegExp object (has [[RegExpMatcher]] slot) - if (isToStringTagSupported && typeof value[Symbol.toStringTag] === "string") { - // Edge case (possibly a regExp with custom Symbol.toStringTag) - try { - var lastIndex = value.lastIndex; - regExpTest.call(value, ""); - if (value.lastIndex !== lastIndex) value.lastIndex = lastIndex; - return true; - } catch (error) { - return false; - } - } - if (objectToString.call(value) !== objectTaggedString) return false; - return !isPrototype(value); -}; diff --git a/node_modules/ext/node_modules/type/safe-integer/coerce.js b/node_modules/ext/node_modules/type/safe-integer/coerce.js deleted file mode 100644 index b97e4aae..00000000 --- a/node_modules/ext/node_modules/type/safe-integer/coerce.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; - -var coerceToInteger = require("../integer/coerce"); - -var MAX_SAFE_INTEGER = 9007199254740991, MIN_SAFE_INTEGER = -9007199254740991; - -module.exports = function (value) { - value = coerceToInteger(value); - if (!value) return value; - if (value > MAX_SAFE_INTEGER) return null; - if (value < MIN_SAFE_INTEGER) return null; - return value; -}; diff --git a/node_modules/ext/node_modules/type/safe-integer/ensure.js b/node_modules/ext/node_modules/type/safe-integer/ensure.js deleted file mode 100644 index dbdc46d1..00000000 --- a/node_modules/ext/node_modules/type/safe-integer/ensure.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; - -var resolveException = require("../lib/resolve-exception") - , coerce = require("./coerce"); - -module.exports = function (value/*, options*/) { - var coerced = coerce(value); - if (coerced !== null) return coerced; - var options = arguments[1]; - var errorMessage = - options && options.name - ? "Expected a safe integer for %n, received %v" - : "%v is not a safe integer"; - return resolveException(value, errorMessage, options); -}; diff --git a/node_modules/ext/node_modules/type/set/ensure.js b/node_modules/ext/node_modules/type/set/ensure.js deleted file mode 100644 index c5b6a411..00000000 --- a/node_modules/ext/node_modules/type/set/ensure.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; - -var resolveException = require("../lib/resolve-exception") - , is = require("./is"); - -module.exports = function (value /*, options*/) { - if (is(value)) return value; - var options = arguments[1]; - var errorMessage = - options && options.name ? "Expected a set for %n, received %v" : "%v is not a set"; - return resolveException(value, errorMessage, options); -}; diff --git a/node_modules/ext/node_modules/type/set/is.js b/node_modules/ext/node_modules/type/set/is.js deleted file mode 100644 index d0b137b8..00000000 --- a/node_modules/ext/node_modules/type/set/is.js +++ /dev/null @@ -1,27 +0,0 @@ -"use strict"; - -var isPrototype = require("../prototype/is"); - -// In theory we could rely on Symbol.toStringTag directly, -// still early native implementation (e.g. in FF) predated symbols -var objectToString = Object.prototype.toString, objectTaggedString = objectToString.call(new Set()); - -module.exports = function (value) { - if (!value) return false; - - // Sanity check (reject objects which do not expose common Set interface) - try { - if (typeof value.add !== "function") return false; - if (typeof value.has !== "function") return false; - if (typeof value.clear !== "function") return false; - } catch (error) { - return false; - } - - // Ensure its native Set object (has [[SetData]] slot) - // Note: it's not 100% precise as string tag may be overriden - // and other objects could be hacked to expose it - if (objectToString.call(value) !== objectTaggedString) return false; - - return !isPrototype(value); -}; diff --git a/node_modules/ext/node_modules/type/string/coerce.js b/node_modules/ext/node_modules/type/string/coerce.js deleted file mode 100644 index 43cd931f..00000000 --- a/node_modules/ext/node_modules/type/string/coerce.js +++ /dev/null @@ -1,23 +0,0 @@ -"use strict"; - -var isValue = require("../value/is") - , isObject = require("../object/is"); - -var objectToString = Object.prototype.toString; - -module.exports = function (value) { - if (!isValue(value)) return null; - if (isObject(value)) { - // Reject Object.prototype.toString coercion - var valueToString = value.toString; - if (typeof valueToString !== "function") return null; - if (valueToString === objectToString) return null; - // Note: It can be object coming from other realm, still as there's no ES3 and CSP compliant - // way to resolve its realm's Object.prototype.toString it's left as not addressed edge case - } - try { - return "" + value; // Ensure implicit coercion - } catch (error) { - return null; - } -}; diff --git a/node_modules/ext/node_modules/type/string/ensure.js b/node_modules/ext/node_modules/type/string/ensure.js deleted file mode 100644 index e26b5f0d..00000000 --- a/node_modules/ext/node_modules/type/string/ensure.js +++ /dev/null @@ -1,13 +0,0 @@ -"use strict"; - -var resolveException = require("../lib/resolve-exception") - , coerce = require("./coerce"); - -module.exports = function (value/*, options*/) { - var coerced = coerce(value); - if (coerced !== null) return coerced; - var options = arguments[1]; - var errorMessage = - options && options.name ? "Expected a string for %n, received %v" : "%v is not a string"; - return resolveException(value, errorMessage, options); -}; diff --git a/node_modules/ext/node_modules/type/thenable/ensure.js b/node_modules/ext/node_modules/type/thenable/ensure.js deleted file mode 100644 index 8397c7cf..00000000 --- a/node_modules/ext/node_modules/type/thenable/ensure.js +++ /dev/null @@ -1,14 +0,0 @@ -"use strict"; - -var resolveException = require("../lib/resolve-exception") - , is = require("./is"); - -module.exports = function (value/*, options*/) { - if (is(value)) return value; - var options = arguments[1]; - var errorMessage = - options && options.name - ? "Expected a thenable for %n, received %v" - : "%v is not a thenable"; - return resolveException(value, errorMessage, options); -}; diff --git a/node_modules/ext/node_modules/type/thenable/is.js b/node_modules/ext/node_modules/type/thenable/is.js deleted file mode 100644 index 1f3d3993..00000000 --- a/node_modules/ext/node_modules/type/thenable/is.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; - -var isObject = require("../object/is"); - -module.exports = function (value) { - if (!isObject(value)) return false; - try { return typeof value.then === "function"; } - catch (error) { return false; } -}; diff --git a/node_modules/ext/node_modules/type/time-value/coerce.js b/node_modules/ext/node_modules/type/time-value/coerce.js deleted file mode 100644 index 7124864a..00000000 --- a/node_modules/ext/node_modules/type/time-value/coerce.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; - -var coerceToInteger = require("../integer/coerce"); - -var abs = Math.abs; - -module.exports = function (value) { - value = coerceToInteger(value); - if (!value) return value; - if (abs(value) > 8.64e15) return null; - return value; -}; diff --git a/node_modules/ext/node_modules/type/time-value/ensure.js b/node_modules/ext/node_modules/type/time-value/ensure.js deleted file mode 100644 index ddf4f614..00000000 --- a/node_modules/ext/node_modules/type/time-value/ensure.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; - -var resolveException = require("../lib/resolve-exception") - , coerce = require("./coerce"); - -module.exports = function (value/*, options*/) { - var coerced = coerce(value); - if (coerced !== null) return coerced; - var options = arguments[1]; - var errorMessage = - options && options.name - ? "Expected a time value for %n, received %v" - : "%v is not a time value"; - return resolveException(value, errorMessage, options); -}; diff --git a/node_modules/ext/node_modules/type/ts-types/array-length/coerce.d.ts b/node_modules/ext/node_modules/type/ts-types/array-length/coerce.d.ts deleted file mode 100644 index e949e11a..00000000 --- a/node_modules/ext/node_modules/type/ts-types/array-length/coerce.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare function coerceToArrayLength(value: any): number | null; -export default coerceToArrayLength; diff --git a/node_modules/ext/node_modules/type/ts-types/array-length/ensure.d.ts b/node_modules/ext/node_modules/type/ts-types/array-length/ensure.d.ts deleted file mode 100644 index 25c9370a..00000000 --- a/node_modules/ext/node_modules/type/ts-types/array-length/ensure.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { EnsureBaseOptions, EnsureIsOptional, EnsureDefault } from '../ensure'; - -declare function ensureArrayLength(value: any, options?: EnsureBaseOptions): number; -declare function ensureArrayLength(value: any, options?: EnsureBaseOptions & EnsureIsOptional): number | null; -declare function ensureArrayLength(value: any, options?: EnsureBaseOptions & EnsureIsOptional & EnsureDefault): number; - -export default ensureArrayLength; diff --git a/node_modules/ext/node_modules/type/ts-types/array-like/ensure.d.ts b/node_modules/ext/node_modules/type/ts-types/array-like/ensure.d.ts deleted file mode 100644 index 549febed..00000000 --- a/node_modules/ext/node_modules/type/ts-types/array-like/ensure.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import { EnsureBaseOptions, EnsureIsOptional, EnsureDefault } from '../ensure'; - -type LengthwiseObject = { length: number } & object; -type ArrayLikeEnsureOptions = { allowString?: boolean }; - - -declare function ensureArrayLike(value: any, options?: ArrayLikeEnsureOptions & EnsureBaseOptions): T[] | string | LengthwiseObject; -declare function ensureArrayLike(value: any, options?: ArrayLikeEnsureOptions & EnsureBaseOptions & EnsureIsOptional): T[] | string | LengthwiseObject | null; -declare function ensureArrayLike(value: any, options?: ArrayLikeEnsureOptions & EnsureBaseOptions & EnsureIsOptional & EnsureDefault): T[] | string | LengthwiseObject; - -export default ensureArrayLike; diff --git a/node_modules/ext/node_modules/type/ts-types/array-like/is.d.ts b/node_modules/ext/node_modules/type/ts-types/array-like/is.d.ts deleted file mode 100644 index acdd657d..00000000 --- a/node_modules/ext/node_modules/type/ts-types/array-like/is.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare function isArrayLike(value: any, options?: {allowString?: boolean}): boolean; -export default isArrayLike; diff --git a/node_modules/ext/node_modules/type/ts-types/array/ensure.d.ts b/node_modules/ext/node_modules/type/ts-types/array/ensure.d.ts deleted file mode 100644 index 6c249b7e..00000000 --- a/node_modules/ext/node_modules/type/ts-types/array/ensure.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { EnsureFunction, EnsureBaseOptions, EnsureIsOptional, EnsureDefault } from '../ensure'; - -type EnsureArrayOptions = { ensureItem?: EnsureFunction }; - - -declare function ensureArray(value: any, options?: EnsureArrayOptions & EnsureBaseOptions): T[]; -declare function ensureArray(value: any, options?: EnsureArrayOptions & EnsureBaseOptions & EnsureIsOptional): T[] | null; -declare function ensureArray(value: any, options?: EnsureArrayOptions & EnsureBaseOptions & EnsureIsOptional & EnsureDefault): T[]; - -export default ensureArray; diff --git a/node_modules/ext/node_modules/type/ts-types/array/is.d.ts b/node_modules/ext/node_modules/type/ts-types/array/is.d.ts deleted file mode 100644 index 71af03e3..00000000 --- a/node_modules/ext/node_modules/type/ts-types/array/is.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare function isArray(value: any): boolean; -export default isArray; diff --git a/node_modules/ext/node_modules/type/ts-types/big-int/coerce.d.ts b/node_modules/ext/node_modules/type/ts-types/big-int/coerce.d.ts deleted file mode 100644 index 8c73fc60..00000000 --- a/node_modules/ext/node_modules/type/ts-types/big-int/coerce.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare function coerceToBigInt(value: any): bigint | null; -export default coerceToBigInt; diff --git a/node_modules/ext/node_modules/type/ts-types/big-int/ensure.d.ts b/node_modules/ext/node_modules/type/ts-types/big-int/ensure.d.ts deleted file mode 100644 index 93073cbb..00000000 --- a/node_modules/ext/node_modules/type/ts-types/big-int/ensure.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { EnsureBaseOptions, EnsureIsOptional, EnsureDefault } from '../ensure'; - -declare function ensureBigInt(value: any, options?: EnsureBaseOptions): bigint; -declare function ensureBigInt(value: any, options?: EnsureBaseOptions & EnsureIsOptional): bigint | null; -declare function ensureBigInt(value: any, options?: EnsureBaseOptions & EnsureIsOptional & EnsureDefault): bigint; - -export default ensureBigInt; diff --git a/node_modules/ext/node_modules/type/ts-types/constructor/ensure.d.ts b/node_modules/ext/node_modules/type/ts-types/constructor/ensure.d.ts deleted file mode 100644 index 79dd28ca..00000000 --- a/node_modules/ext/node_modules/type/ts-types/constructor/ensure.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { EnsureFunction, EnsureBaseOptions, EnsureIsOptional, EnsureDefault } from '../ensure'; - -declare function ensureConstructor(value: any, options?: EnsureBaseOptions): EnsureFunction | object; -declare function ensureConstructor(value: any, options?: EnsureBaseOptions & EnsureIsOptional): EnsureFunction | object | null; -declare function ensureConstructor(value: any, options?: EnsureBaseOptions & EnsureIsOptional & EnsureDefault): EnsureFunction | object; - -export default ensureConstructor; diff --git a/node_modules/ext/node_modules/type/ts-types/constructor/is.d.ts b/node_modules/ext/node_modules/type/ts-types/constructor/is.d.ts deleted file mode 100644 index 768a6359..00000000 --- a/node_modules/ext/node_modules/type/ts-types/constructor/is.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare function isConstructor(value: any): boolean; -export default isConstructor; diff --git a/node_modules/ext/node_modules/type/ts-types/date/ensure.d.ts b/node_modules/ext/node_modules/type/ts-types/date/ensure.d.ts deleted file mode 100644 index d96ad31a..00000000 --- a/node_modules/ext/node_modules/type/ts-types/date/ensure.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { EnsureBaseOptions, EnsureIsOptional, EnsureDefault } from '../ensure'; - -declare function ensureDate(value: any, options?: EnsureBaseOptions): Date; -declare function ensureDate(value: any, options?: EnsureBaseOptions & EnsureIsOptional): Date | null; -declare function ensureDate(value: any, options?: EnsureBaseOptions & EnsureIsOptional & EnsureDefault): Date; - -export default ensureDate; diff --git a/node_modules/ext/node_modules/type/ts-types/date/is.d.ts b/node_modules/ext/node_modules/type/ts-types/date/is.d.ts deleted file mode 100644 index 7907a8ff..00000000 --- a/node_modules/ext/node_modules/type/ts-types/date/is.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare function isDate(value: any): boolean; -export default isDate; diff --git a/node_modules/ext/node_modules/type/ts-types/ensure.d.ts b/node_modules/ext/node_modules/type/ts-types/ensure.d.ts deleted file mode 100644 index 62ba5970..00000000 --- a/node_modules/ext/node_modules/type/ts-types/ensure.d.ts +++ /dev/null @@ -1,24 +0,0 @@ -export type EnsureFunction = (...args: any[]) => any; -export interface EnsureBaseOptions { - name?: string; - errorMessage?: string; - errorCode?: number; - Error?: ErrorConstructor; -} - -export interface EnsureIsOptional { - isOptional: boolean; -} - -export interface EnsureDefault { - default: T; -} - -type EnsureOptions = EnsureBaseOptions & { isOptional?: boolean } & { default?: any }; - -type ValidationDatum = [argumentName: string, inputValue: any, ensureFunction: EnsureFunction, options?: object]; -type ValidationDatumList = ValidationDatum[]; - -declare function ensure(...args: [...ValidationDatumList, EnsureOptions]): T; -declare function ensure(...args: [...ValidationDatumList]): T; -export default ensure; diff --git a/node_modules/ext/node_modules/type/ts-types/error/ensure.d.ts b/node_modules/ext/node_modules/type/ts-types/error/ensure.d.ts deleted file mode 100644 index b42f446a..00000000 --- a/node_modules/ext/node_modules/type/ts-types/error/ensure.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { EnsureBaseOptions, EnsureIsOptional, EnsureDefault } from '../ensure'; - -declare function ensureError(value: any, options?: EnsureBaseOptions): Error; -declare function ensureError(value: any, options?: EnsureBaseOptions & EnsureIsOptional): Error | null; -declare function ensureError(value: any, options?: EnsureBaseOptions & EnsureIsOptional & EnsureDefault): Error; - -export default ensureError; diff --git a/node_modules/ext/node_modules/type/ts-types/error/is.d.ts b/node_modules/ext/node_modules/type/ts-types/error/is.d.ts deleted file mode 100644 index db64ea37..00000000 --- a/node_modules/ext/node_modules/type/ts-types/error/is.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare function isError(value: any): boolean; -export default isError; diff --git a/node_modules/ext/node_modules/type/ts-types/finite/coerce.d.ts b/node_modules/ext/node_modules/type/ts-types/finite/coerce.d.ts deleted file mode 100644 index f1edc2d2..00000000 --- a/node_modules/ext/node_modules/type/ts-types/finite/coerce.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare function coerceToFinite(value: any): number | null; -export default coerceToFinite; diff --git a/node_modules/ext/node_modules/type/ts-types/finite/ensure.d.ts b/node_modules/ext/node_modules/type/ts-types/finite/ensure.d.ts deleted file mode 100644 index 988c5116..00000000 --- a/node_modules/ext/node_modules/type/ts-types/finite/ensure.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { EnsureBaseOptions, EnsureIsOptional, EnsureDefault } from '../ensure'; - -declare function ensureFinite(value: any, options?: EnsureBaseOptions): number; -declare function ensureFinite(value: any, options?: EnsureBaseOptions & EnsureIsOptional): number | null; -declare function ensureFinite(value: any, options?: EnsureBaseOptions & EnsureIsOptional & EnsureDefault): number; - -export default ensureFinite; diff --git a/node_modules/ext/node_modules/type/ts-types/function/ensure.d.ts b/node_modules/ext/node_modules/type/ts-types/function/ensure.d.ts deleted file mode 100644 index 30839e54..00000000 --- a/node_modules/ext/node_modules/type/ts-types/function/ensure.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { EnsureFunction, EnsureBaseOptions, EnsureIsOptional, EnsureDefault } from '../ensure'; - -declare function ensureFunction(value: any, options?: EnsureBaseOptions): EnsureFunction; -declare function ensureFunction(value: any, options?: EnsureBaseOptions & EnsureIsOptional): EnsureFunction | null; -declare function ensureFunction(value: any, options?: EnsureBaseOptions & EnsureIsOptional & EnsureDefault): EnsureFunction; - -export default ensureFunction; diff --git a/node_modules/ext/node_modules/type/ts-types/function/is.d.ts b/node_modules/ext/node_modules/type/ts-types/function/is.d.ts deleted file mode 100644 index 9d94f954..00000000 --- a/node_modules/ext/node_modules/type/ts-types/function/is.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare function isFunction(value: any): boolean; -export default isFunction; diff --git a/node_modules/ext/node_modules/type/ts-types/integer/coerce.d.ts b/node_modules/ext/node_modules/type/ts-types/integer/coerce.d.ts deleted file mode 100644 index 3bbb00f6..00000000 --- a/node_modules/ext/node_modules/type/ts-types/integer/coerce.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare function coerceToInteger(value: any): number | null; -export default coerceToInteger; diff --git a/node_modules/ext/node_modules/type/ts-types/integer/ensure.d.ts b/node_modules/ext/node_modules/type/ts-types/integer/ensure.d.ts deleted file mode 100644 index 06f1c8a1..00000000 --- a/node_modules/ext/node_modules/type/ts-types/integer/ensure.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { EnsureBaseOptions, EnsureIsOptional, EnsureDefault } from '../ensure'; - -declare function ensureInteger(value: any, options?: EnsureBaseOptions): number; -declare function ensureInteger(value: any, options?: EnsureBaseOptions & EnsureIsOptional): number | null; -declare function ensureInteger(value: any, options?: EnsureBaseOptions & EnsureIsOptional & EnsureDefault): number; - -export default ensureInteger; diff --git a/node_modules/ext/node_modules/type/ts-types/iterable/ensure.d.ts b/node_modules/ext/node_modules/type/ts-types/iterable/ensure.d.ts deleted file mode 100644 index 973d3eab..00000000 --- a/node_modules/ext/node_modules/type/ts-types/iterable/ensure.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { EnsureFunction, EnsureBaseOptions, EnsureIsOptional, EnsureDefault } from '../ensure'; - -type IterableEnsureOptions = { ensureItem?: EnsureFunction, allowString?: boolean, denyEmpty?: boolean}; - - -declare function ensureIterable(value: any, options?: IterableEnsureOptions & EnsureBaseOptions): T[]; -declare function ensureIterable(value: any, options?: IterableEnsureOptions & EnsureBaseOptions & EnsureIsOptional): T[] | null; -declare function ensureIterable(value: any, options?: IterableEnsureOptions & EnsureBaseOptions & EnsureIsOptional & EnsureDefault): T[]; - -export default ensureIterable; diff --git a/node_modules/ext/node_modules/type/ts-types/iterable/is.d.ts b/node_modules/ext/node_modules/type/ts-types/iterable/is.d.ts deleted file mode 100644 index 93686d22..00000000 --- a/node_modules/ext/node_modules/type/ts-types/iterable/is.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare function isIterable(value: any, options?: { allowString?: boolean, denyEmpty?: boolean }): boolean; -export default isIterable; diff --git a/node_modules/ext/node_modules/type/ts-types/map/ensure.d.ts b/node_modules/ext/node_modules/type/ts-types/map/ensure.d.ts deleted file mode 100644 index 6a23851f..00000000 --- a/node_modules/ext/node_modules/type/ts-types/map/ensure.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { EnsureBaseOptions, EnsureIsOptional, EnsureDefault } from '../ensure'; - -declare function ensureMap(value: any, options?: EnsureBaseOptions): Map; -declare function ensureMap(value: any, options?: EnsureBaseOptions & EnsureIsOptional): Map | null; -declare function ensureMap(value: any, options?: EnsureBaseOptions & EnsureIsOptional & EnsureDefault>): Map; - -export default ensureMap; diff --git a/node_modules/ext/node_modules/type/ts-types/map/is.d.ts b/node_modules/ext/node_modules/type/ts-types/map/is.d.ts deleted file mode 100644 index 340ed1be..00000000 --- a/node_modules/ext/node_modules/type/ts-types/map/is.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare function isMap(value: any): boolean; -export default isMap; diff --git a/node_modules/ext/node_modules/type/ts-types/natural-number/coerce.d.ts b/node_modules/ext/node_modules/type/ts-types/natural-number/coerce.d.ts deleted file mode 100644 index 633317c7..00000000 --- a/node_modules/ext/node_modules/type/ts-types/natural-number/coerce.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare function coerceToNaturalNumber(value: any): number | null; -export default coerceToNaturalNumber; diff --git a/node_modules/ext/node_modules/type/ts-types/natural-number/ensure.d.ts b/node_modules/ext/node_modules/type/ts-types/natural-number/ensure.d.ts deleted file mode 100644 index 2f6d6b5e..00000000 --- a/node_modules/ext/node_modules/type/ts-types/natural-number/ensure.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { EnsureBaseOptions, EnsureIsOptional, EnsureDefault } from '../ensure'; - -declare function ensureNaturalNumber(value: any, options?: EnsureBaseOptions): number; -declare function ensureNaturalNumber(value: any, options?: EnsureBaseOptions & EnsureIsOptional): number | null; -declare function ensureNaturalNumber(value: any, options?: EnsureBaseOptions & EnsureIsOptional & EnsureDefault): number; - -export default ensureNaturalNumber; diff --git a/node_modules/ext/node_modules/type/ts-types/number/coerce.d.ts b/node_modules/ext/node_modules/type/ts-types/number/coerce.d.ts deleted file mode 100644 index cc9f355d..00000000 --- a/node_modules/ext/node_modules/type/ts-types/number/coerce.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare function coerceToNumber(value: any): number | null; -export default coerceToNumber; diff --git a/node_modules/ext/node_modules/type/ts-types/number/ensure.d.ts b/node_modules/ext/node_modules/type/ts-types/number/ensure.d.ts deleted file mode 100644 index 326b222e..00000000 --- a/node_modules/ext/node_modules/type/ts-types/number/ensure.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { EnsureBaseOptions, EnsureIsOptional, EnsureDefault } from '../ensure'; - -declare function ensureNumber(value: any, options?: EnsureBaseOptions): number; -declare function ensureNumber(value: any, options?: EnsureBaseOptions & EnsureIsOptional): number | null; -declare function ensureNumber(value: any, options?: EnsureBaseOptions & EnsureIsOptional & EnsureDefault): number; - -export default ensureNumber; diff --git a/node_modules/ext/node_modules/type/ts-types/object/ensure.d.ts b/node_modules/ext/node_modules/type/ts-types/object/ensure.d.ts deleted file mode 100644 index f5ccce15..00000000 --- a/node_modules/ext/node_modules/type/ts-types/object/ensure.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { EnsureBaseOptions, EnsureIsOptional, EnsureDefault } from '../ensure'; - -declare function ensureObject(value: any, options?: EnsureBaseOptions): object; -declare function ensureObject(value: any, options?: EnsureBaseOptions & EnsureIsOptional): object | null; -declare function ensureObject(value: any, options?: EnsureBaseOptions & EnsureIsOptional & EnsureDefault): object; - -export default ensureObject; diff --git a/node_modules/ext/node_modules/type/ts-types/object/is.d.ts b/node_modules/ext/node_modules/type/ts-types/object/is.d.ts deleted file mode 100644 index 47fdd9c4..00000000 --- a/node_modules/ext/node_modules/type/ts-types/object/is.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare function isObject(value: any): boolean; -export default isObject; diff --git a/node_modules/ext/node_modules/type/ts-types/plain-function/ensure.d.ts b/node_modules/ext/node_modules/type/ts-types/plain-function/ensure.d.ts deleted file mode 100644 index 8681e770..00000000 --- a/node_modules/ext/node_modules/type/ts-types/plain-function/ensure.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { EnsureFunction, EnsureBaseOptions, EnsureIsOptional, EnsureDefault } from '../ensure'; - -declare function ensurePlainFunction(value: any, options?: EnsureBaseOptions): EnsureFunction; -declare function ensurePlainFunction(value: any, options?: EnsureBaseOptions & EnsureIsOptional): EnsureFunction | null; -declare function ensurePlainFunction(value: any, options?: EnsureBaseOptions & EnsureIsOptional & EnsureDefault): EnsureFunction; - -export default ensurePlainFunction; diff --git a/node_modules/ext/node_modules/type/ts-types/plain-function/is.d.ts b/node_modules/ext/node_modules/type/ts-types/plain-function/is.d.ts deleted file mode 100644 index de32a5e8..00000000 --- a/node_modules/ext/node_modules/type/ts-types/plain-function/is.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare function isPlainFunction(value: any): boolean; -export default isPlainFunction; diff --git a/node_modules/ext/node_modules/type/ts-types/plain-object/ensure.d.ts b/node_modules/ext/node_modules/type/ts-types/plain-object/ensure.d.ts deleted file mode 100644 index 063d7096..00000000 --- a/node_modules/ext/node_modules/type/ts-types/plain-object/ensure.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { EnsureFunction, EnsureBaseOptions, EnsureIsOptional, EnsureDefault } from '../ensure'; - -type PlainObjectEnsureOptions = {allowedKeys?: string[], ensurePropertyValue?: EnsureFunction}; - - -declare function ensurePlainObject(value: any, options?: PlainObjectEnsureOptions & EnsureBaseOptions): object; -declare function ensurePlainObject(value: any, options?: PlainObjectEnsureOptions & EnsureBaseOptions & EnsureIsOptional): object | null; -declare function ensurePlainObject(value: any, options?: PlainObjectEnsureOptions & EnsureBaseOptions & EnsureIsOptional & EnsureDefault): object; - -export default ensurePlainObject; diff --git a/node_modules/ext/node_modules/type/ts-types/plain-object/is.d.ts b/node_modules/ext/node_modules/type/ts-types/plain-object/is.d.ts deleted file mode 100644 index 86260857..00000000 --- a/node_modules/ext/node_modules/type/ts-types/plain-object/is.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare function isPlainObject(value: any): boolean; -export default isPlainObject; diff --git a/node_modules/ext/node_modules/type/ts-types/promise/ensure.d.ts b/node_modules/ext/node_modules/type/ts-types/promise/ensure.d.ts deleted file mode 100644 index 3ddf4ea7..00000000 --- a/node_modules/ext/node_modules/type/ts-types/promise/ensure.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { EnsureBaseOptions, EnsureIsOptional, EnsureDefault } from '../ensure'; - -declare function ensurePromise(value: any, options?: EnsureBaseOptions): Promise; -declare function ensurePromise(value: any, options?: EnsureBaseOptions & EnsureIsOptional): Promise | null; -declare function ensurePromise(value: any, options?: EnsureBaseOptions & EnsureIsOptional & EnsureDefault>): Promise; - -export default ensurePromise; diff --git a/node_modules/ext/node_modules/type/ts-types/promise/is.d.ts b/node_modules/ext/node_modules/type/ts-types/promise/is.d.ts deleted file mode 100644 index 9306fe5e..00000000 --- a/node_modules/ext/node_modules/type/ts-types/promise/is.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare function isPromise(value: any): boolean; -export default isPromise; diff --git a/node_modules/ext/node_modules/type/ts-types/prototype/is.d.ts b/node_modules/ext/node_modules/type/ts-types/prototype/is.d.ts deleted file mode 100644 index 7f2eb129..00000000 --- a/node_modules/ext/node_modules/type/ts-types/prototype/is.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare function isPrototype(value: any): boolean; -export default isPrototype; diff --git a/node_modules/ext/node_modules/type/ts-types/reg-exp/ensure.d.ts b/node_modules/ext/node_modules/type/ts-types/reg-exp/ensure.d.ts deleted file mode 100644 index 95a2c9b9..00000000 --- a/node_modules/ext/node_modules/type/ts-types/reg-exp/ensure.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { EnsureBaseOptions, EnsureIsOptional, EnsureDefault } from '../ensure'; - -declare function ensureRegExp(value: any, options?: EnsureBaseOptions): RegExp; -declare function ensureRegExp(value: any, options?: EnsureBaseOptions & EnsureIsOptional): RegExp | null; -declare function ensureRegExp(value: any, options?: EnsureBaseOptions & EnsureIsOptional & EnsureDefault): RegExp; - -export default ensureRegExp; diff --git a/node_modules/ext/node_modules/type/ts-types/reg-exp/is.d.ts b/node_modules/ext/node_modules/type/ts-types/reg-exp/is.d.ts deleted file mode 100644 index a325e346..00000000 --- a/node_modules/ext/node_modules/type/ts-types/reg-exp/is.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare function isRegExp(value: any): boolean; -export default isRegExp; diff --git a/node_modules/ext/node_modules/type/ts-types/safe-integer/coerce.d.ts b/node_modules/ext/node_modules/type/ts-types/safe-integer/coerce.d.ts deleted file mode 100644 index 5e6539c4..00000000 --- a/node_modules/ext/node_modules/type/ts-types/safe-integer/coerce.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare function coerceToSafeInteger(value: any): number | null; -export default coerceToSafeInteger; diff --git a/node_modules/ext/node_modules/type/ts-types/safe-integer/ensure.d.ts b/node_modules/ext/node_modules/type/ts-types/safe-integer/ensure.d.ts deleted file mode 100644 index 5d4b9535..00000000 --- a/node_modules/ext/node_modules/type/ts-types/safe-integer/ensure.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { EnsureBaseOptions, EnsureIsOptional, EnsureDefault } from '../ensure'; - -declare function ensureSafeInteger(value: any, options?: EnsureBaseOptions): number; -declare function ensureSafeInteger(value: any, options?: EnsureBaseOptions & EnsureIsOptional): number | null; -declare function ensureSafeInteger(value: any, options?: EnsureBaseOptions & EnsureIsOptional & EnsureDefault): number; - -export default ensureSafeInteger; diff --git a/node_modules/ext/node_modules/type/ts-types/set/ensure.d.ts b/node_modules/ext/node_modules/type/ts-types/set/ensure.d.ts deleted file mode 100644 index 2b142598..00000000 --- a/node_modules/ext/node_modules/type/ts-types/set/ensure.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { EnsureBaseOptions, EnsureIsOptional, EnsureDefault } from '../ensure'; - -declare function ensureSet(value: any, options?: EnsureBaseOptions): Set; -declare function ensureSet(value: any, options?: EnsureBaseOptions & EnsureIsOptional): Set | null; -declare function ensureSet(value: any, options?: EnsureBaseOptions & EnsureIsOptional & EnsureDefault>): Set; - -export default ensureSet; diff --git a/node_modules/ext/node_modules/type/ts-types/set/is.d.ts b/node_modules/ext/node_modules/type/ts-types/set/is.d.ts deleted file mode 100644 index 530aed30..00000000 --- a/node_modules/ext/node_modules/type/ts-types/set/is.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare function isSet(value: any): boolean; -export default isSet; diff --git a/node_modules/ext/node_modules/type/ts-types/string/coerce.d.ts b/node_modules/ext/node_modules/type/ts-types/string/coerce.d.ts deleted file mode 100644 index 603519dc..00000000 --- a/node_modules/ext/node_modules/type/ts-types/string/coerce.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare function coerceToString(value: any): string | null; -export default coerceToString; diff --git a/node_modules/ext/node_modules/type/ts-types/string/ensure.d.ts b/node_modules/ext/node_modules/type/ts-types/string/ensure.d.ts deleted file mode 100644 index d31965a7..00000000 --- a/node_modules/ext/node_modules/type/ts-types/string/ensure.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import { EnsureBaseOptions, EnsureIsOptional, EnsureDefault } from '../ensure'; - -declare function ensureString(value: any, options?: EnsureBaseOptions): string; -declare function ensureString(value: any, options?: EnsureBaseOptions & EnsureIsOptional): string | null; -declare function ensureString(value: any, options?: EnsureBaseOptions & EnsureIsOptional & EnsureDefault): string; - -export default ensureString; diff --git a/node_modules/ext/node_modules/type/ts-types/thenable/ensure.d.ts b/node_modules/ext/node_modules/type/ts-types/thenable/ensure.d.ts deleted file mode 100644 index 741faad9..00000000 --- a/node_modules/ext/node_modules/type/ts-types/thenable/ensure.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import { EnsureFunction, EnsureBaseOptions, EnsureIsOptional, EnsureDefault } from '../ensure'; - -type ThenableObject = { then: EnsureFunction } & object; - - -declare function ensureThenable(value: any, options?: EnsureBaseOptions): Promise | ThenableObject; -declare function ensureThenable(value: any, options?: EnsureBaseOptions & EnsureIsOptional): Promise | ThenableObject | null; -declare function ensureThenable(value: any, options?: EnsureBaseOptions & EnsureIsOptional & EnsureDefault | ThenableObject>): Promise | ThenableObject; - -export default ensureThenable; diff --git a/node_modules/ext/node_modules/type/ts-types/thenable/is.d.ts b/node_modules/ext/node_modules/type/ts-types/thenable/is.d.ts deleted file mode 100644 index c8f207fe..00000000 --- a/node_modules/ext/node_modules/type/ts-types/thenable/is.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare function isThenable(value: any): boolean; -export default isThenable; diff --git a/node_modules/ext/node_modules/type/ts-types/time-value/coerce.d.ts b/node_modules/ext/node_modules/type/ts-types/time-value/coerce.d.ts deleted file mode 100644 index 44849ba6..00000000 --- a/node_modules/ext/node_modules/type/ts-types/time-value/coerce.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare function coerceToTimeValue(value: any): number | null; -export default coerceToTimeValue; diff --git a/node_modules/ext/node_modules/type/ts-types/time-value/ensure.d.ts b/node_modules/ext/node_modules/type/ts-types/time-value/ensure.d.ts deleted file mode 100644 index f8084b88..00000000 --- a/node_modules/ext/node_modules/type/ts-types/time-value/ensure.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import { EnsureBaseOptions, EnsureIsOptional, EnsureDefault } from '../ensure'; - -declare function ensureTimeValue(value: any, options?: EnsureBaseOptions & EnsureIsOptional): number | null; -declare function ensureTimeValue(value: any, options?: EnsureBaseOptions & EnsureIsOptional & EnsureDefault): number; -export default ensureTimeValue; diff --git a/node_modules/ext/node_modules/type/ts-types/value/ensure.d.ts b/node_modules/ext/node_modules/type/ts-types/value/ensure.d.ts deleted file mode 100644 index 928b29ea..00000000 --- a/node_modules/ext/node_modules/type/ts-types/value/ensure.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import { EnsureOptions } from '../ensure'; - -declare function ensureValue(value: any, options?: EnsureOptions): T; -export default ensureValue; diff --git a/node_modules/ext/node_modules/type/ts-types/value/is.d.ts b/node_modules/ext/node_modules/type/ts-types/value/is.d.ts deleted file mode 100644 index 31f306d0..00000000 --- a/node_modules/ext/node_modules/type/ts-types/value/is.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -declare function isValue(value: any): boolean; -export default isValue; diff --git a/node_modules/ext/node_modules/type/value/ensure.js b/node_modules/ext/node_modules/type/value/ensure.js deleted file mode 100644 index 3067a3ed..00000000 --- a/node_modules/ext/node_modules/type/value/ensure.js +++ /dev/null @@ -1,12 +0,0 @@ -"use strict"; - -var resolveException = require("../lib/resolve-exception") - , is = require("./is"); - -module.exports = function (value/*, options*/) { - if (is(value)) return value; - var options = arguments[1]; - var errorMessage = - options && options.name ? "Expected a value for %n, received %v" : "Cannot use %v"; - return resolveException(value, errorMessage, options); -}; diff --git a/node_modules/ext/node_modules/type/value/is.js b/node_modules/ext/node_modules/type/value/is.js deleted file mode 100644 index 648aa9c7..00000000 --- a/node_modules/ext/node_modules/type/value/is.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; - -// ES3 safe -var _undefined = void 0; - -module.exports = function (value) { return value !== _undefined && value !== null; }; diff --git a/node_modules/ext/object/clear.js b/node_modules/ext/object/clear.js deleted file mode 100644 index be3be2b2..00000000 --- a/node_modules/ext/object/clear.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; - -var ensureObject = require("type/object/ensure") - , ensure = require("type/ensure"); - -var objPropertyIsEnumerable = Object.prototype.propertyIsEnumerable; - -module.exports = function (object) { - ensure(["object", object, ensureObject]); - for (var key in object) { - if (!objPropertyIsEnumerable.call(object, key)) continue; - delete object[key]; - } - return object; -}; diff --git a/node_modules/ext/object/entries/implement.js b/node_modules/ext/object/entries/implement.js deleted file mode 100644 index 383ceeee..00000000 --- a/node_modules/ext/object/entries/implement.js +++ /dev/null @@ -1,10 +0,0 @@ -"use strict"; - -if (!require("./is-implemented")()) { - Object.defineProperty(Object, "entries", { - value: require("./implementation"), - configurable: true, - enumerable: false, - writable: true - }); -} diff --git a/node_modules/ext/object/entries/implementation.js b/node_modules/ext/object/entries/implementation.js deleted file mode 100644 index d6f121c7..00000000 --- a/node_modules/ext/object/entries/implementation.js +++ /dev/null @@ -1,15 +0,0 @@ -"use strict"; - -var ensureValue = require("type/value/ensure"); - -var objPropertyIsEnumerable = Object.prototype.propertyIsEnumerable; - -module.exports = function (object) { - object = Object(ensureValue(object)); - var result = []; - for (var key in object) { - if (!objPropertyIsEnumerable.call(object, key)) continue; - result.push([key, object[key]]); - } - return result; -}; diff --git a/node_modules/ext/object/entries/index.js b/node_modules/ext/object/entries/index.js deleted file mode 100644 index 0a784d68..00000000 --- a/node_modules/ext/object/entries/index.js +++ /dev/null @@ -1,3 +0,0 @@ -"use strict"; - -module.exports = require("./is-implemented")() ? Object.entries : require("./implementation"); diff --git a/node_modules/ext/object/entries/is-implemented.js b/node_modules/ext/object/entries/is-implemented.js deleted file mode 100644 index aad52b23..00000000 --- a/node_modules/ext/object/entries/is-implemented.js +++ /dev/null @@ -1,6 +0,0 @@ -"use strict"; - -module.exports = function () { - try { return Object.entries({ foo: 12 })[0][0] === "foo"; } - catch (e) { return false; } -}; diff --git a/node_modules/ext/package.json b/node_modules/ext/package.json deleted file mode 100644 index 4bf9e125..00000000 --- a/node_modules/ext/package.json +++ /dev/null @@ -1,152 +0,0 @@ -{ - "name": "ext", - "version": "1.7.0", - "description": "JavaScript utilities with respect to emerging standard", - "author": "Mariusz Nowak (http://www.medikoo.com/)", - "keywords": [ - "ecmascript", - "es", - "es6", - "extensions", - "ext", - "addons", - "lodash", - "extras", - "harmony", - "javascript", - "polyfill", - "shim", - "util", - "utils", - "utilities" - ], - "repository": { - "type": "git", - "url": "https://github.com/medikoo/es5-ext#ext" - }, - "dependencies": { - "type": "^2.7.2" - }, - "devDependencies": { - "chai": "^4.3.6", - "eslint": "^8.23.0", - "eslint-config-medikoo": "^4.1.2", - "git-list-updated": "^1.2.1", - "github-release-from-cc-changelog": "^2.3.0", - "husky": "^4.3.8", - "lint-staged": "^13.0.3", - "mocha": "^6.2.3", - "nyc": "^15.1.0", - "prettier-elastic": "^2.2.1", - "sinon": "^8.1.1", - "timers-ext": "^0.1.7" - }, - "husky": { - "hooks": { - "pre-commit": "lint-staged" - } - }, - "lint-staged": { - "*.js": [ - "eslint" - ], - "*.{css,html,js,json,md,yaml,yml}": [ - "prettier -c" - ] - }, - "eslintIgnore": [ - "_es5-ext" - ], - "eslintConfig": { - "extends": "medikoo/es3", - "root": true, - "overrides": [ - { - "files": "global-this/implementation.js", - "globals": { - "__global__": true, - "self": true, - "window": true - }, - "rules": { - "no-extend-native": "off", - "strict": "off" - } - }, - { - "files": [ - "global-this/is-implemented.js", - "global-this/index.js" - ], - "globals": { - "globalThis": true - } - }, - { - "files": "string_/camel-to-hyphen.js", - "rules": { - "id-length": "off" - } - }, - { - "files": "test/**/*.js", - "env": { - "mocha": true - } - }, - { - "files": [ - "test/promise/limit.js", - "test/thenable_/finally.js" - ], - "globals": { - "Promise": true - } - } - ] - }, - "prettier": { - "printWidth": 100, - "tabWidth": 4, - "overrides": [ - { - "files": [ - "*.md", - "*.yml" - ], - "options": { - "tabWidth": 2 - } - } - ] - }, - "mocha": { - "recursive": true - }, - "nyc": { - "all": true, - "exclude": [ - ".github", - "_es5-ext", - "coverage/**", - "test/**", - "*.config.js" - ], - "reporter": [ - "lcov", - "html", - "text-summary" - ] - }, - "scripts": { - "coverage": "nyc npm test", - "lint": "eslint .", - "lint:updated": "pipe-git-updated --ext=js -- eslint --ignore-pattern '!*'", - "prettier-check": "prettier -c --ignore-path .gitignore \"**/*.{css,html,js,json,md,yaml,yml}\"", - "prettier-check:updated": "pipe-git-updated --ext=css --ext=html --ext=js --ext=json --ext=md --ext=yaml --ext=yml -- prettier -c", - "prettify": "prettier --write --ignore-path .gitignore '**/*.{css,html,js,json,md,yaml,yml}'", - "prettify:updated": "pipe-git-updated ---base=main -ext=css --ext=html --ext=js --ext=json --ext=md --ext=yaml --ext=yml -- prettier --write", - "test": "mocha" - }, - "license": "ISC" -} diff --git a/node_modules/ext/promise/limit.js b/node_modules/ext/promise/limit.js deleted file mode 100644 index 841afadb..00000000 --- a/node_modules/ext/promise/limit.js +++ /dev/null @@ -1,62 +0,0 @@ -"use strict"; - -var ensureNaturalNumber = require("type/natural-number/ensure") - , ensurePlainFunction = require("type/plain-function/ensure") - , ensure = require("type/ensure") - , defineFunctionLength = require("../lib/private/define-function-length"); - -module.exports = function (limit, callback) { - limit = ensure( - ["limit", limit, ensureNaturalNumber, { min: 1 }], - ["callback", callback, ensurePlainFunction] - )[0]; - - var Promise = this, ongoingCount = 0, pending = []; - var onSuccess, onFailure; - - var release = function () { - --ongoingCount; - if (ongoingCount >= limit) return; - var next = pending.shift(); - if (!next) return; - ++ongoingCount; - try { - next.resolve( - Promise.resolve(callback.apply(next.context, next.arguments)).then( - onSuccess, onFailure - ) - ); - } catch (exception) { - release(); - next.reject(exception); - } - }; - - onSuccess = function (value) { - release(); - return value; - }; - - onFailure = function (exception) { - release(); - throw exception; - }; - - return defineFunctionLength(callback.length, function () { - if (ongoingCount >= limit) { - var context = this, args = arguments; - return new Promise(function (resolve, reject) { - pending.push({ - context: context, - arguments: args, - resolve: resolve, - reject: reject - }); - }); - } - ++ongoingCount; - try { - return Promise.resolve(callback.apply(this, arguments)).then(onSuccess, onFailure); - } catch (exception) { return onFailure(exception); } - }); -}; diff --git a/node_modules/ext/string/random.js b/node_modules/ext/string/random.js deleted file mode 100644 index c96ef921..00000000 --- a/node_modules/ext/string/random.js +++ /dev/null @@ -1,50 +0,0 @@ -"use strict"; - -var isObject = require("type/object/is") - , ensureNaturalNumber = require("type/natural-number/ensure") - , ensureString = require("type/string/ensure"); - -var generated = Object.create(null), random = Math.random, uniqTryLimit = 100; - -var getChunk = function () { return random().toString(36).slice(2); }; - -var getString = function (length, charset) { - var str; - if (charset) { - var charsetLength = charset.length; - str = ""; - for (var i = 0; i < length; ++i) { - str += charset.charAt(Math.floor(Math.random() * charsetLength)); - } - return str; - } - str = getChunk(); - if (length === null) return str; - while (str.length < length) str += getChunk(); - return str.slice(0, length); -}; - -module.exports = function (/* options */) { - var options = arguments[0]; - if (!isObject(options)) options = {}; - var length = ensureNaturalNumber(options.length, { "default": 10 }) - , isUnique = options.isUnique - , charset = ensureString(options.charset, { isOptional: true }); - - var str = getString(length, charset); - if (isUnique) { - var count = 0; - while (generated[str]) { - if (++count === uniqTryLimit) { - throw new Error( - "Cannot generate random string.\n" + - "String.random is not designed to effectively generate many short and " + - "unique random strings" - ); - } - str = getString(length); - } - generated[str] = true; - } - return str; -}; diff --git a/node_modules/ext/string_/camel-to-hyphen.js b/node_modules/ext/string_/camel-to-hyphen.js deleted file mode 100644 index feffae67..00000000 --- a/node_modules/ext/string_/camel-to-hyphen.js +++ /dev/null @@ -1,49 +0,0 @@ -"use strict"; - -var ensureString = require("type/string/ensure") - , objHasOwnProperty = Object.prototype.hasOwnProperty; - -var capitalLetters = { - A: true, - B: true, - C: true, - D: true, - E: true, - F: true, - G: true, - H: true, - I: true, - J: true, - K: true, - L: true, - M: true, - N: true, - O: true, - P: true, - Q: true, - R: true, - S: true, - T: true, - U: true, - V: true, - W: true, - X: true, - Y: true, - Z: true -}; - -module.exports = function () { - var input = ensureString(this); - if (!input) return input; - var outputLetters = []; - for (var index = 0, letter; (letter = input[index]); ++index) { - if (objHasOwnProperty.call(capitalLetters, letter)) { - if (index) outputLetters.push("-"); - outputLetters.push(letter.toLowerCase()); - } else { - outputLetters.push(letter); - } - } - - return outputLetters.join(""); -}; diff --git a/node_modules/ext/string_/capitalize.js b/node_modules/ext/string_/capitalize.js deleted file mode 100644 index bc76311e..00000000 --- a/node_modules/ext/string_/capitalize.js +++ /dev/null @@ -1,9 +0,0 @@ -"use strict"; - -var ensureString = require("type/string/ensure"); - -module.exports = function () { - var input = ensureString(this); - if (!input) return input; - return input.charAt(0).toUpperCase() + input.slice(1); -}; diff --git a/node_modules/ext/string_/includes/implementation.js b/node_modules/ext/string_/includes/implementation.js deleted file mode 100644 index a7219f2e..00000000 --- a/node_modules/ext/string_/includes/implementation.js +++ /dev/null @@ -1,7 +0,0 @@ -"use strict"; - -var indexOf = String.prototype.indexOf; - -module.exports = function (searchString/*, position*/) { - return indexOf.call(this, searchString, arguments[1]) > -1; -}; diff --git a/node_modules/ext/string_/includes/index.js b/node_modules/ext/string_/includes/index.js deleted file mode 100644 index ee4e2844..00000000 --- a/node_modules/ext/string_/includes/index.js +++ /dev/null @@ -1,5 +0,0 @@ -"use strict"; - -module.exports = require("./is-implemented")() - ? String.prototype.includes - : require("./implementation"); diff --git a/node_modules/ext/string_/includes/is-implemented.js b/node_modules/ext/string_/includes/is-implemented.js deleted file mode 100644 index edc45158..00000000 --- a/node_modules/ext/string_/includes/is-implemented.js +++ /dev/null @@ -1,8 +0,0 @@ -"use strict"; - -var str = "razdwatrzy"; - -module.exports = function () { - if (typeof str.includes !== "function") return false; - return str.includes("dwa") === true && str.includes("foo") === false; -}; diff --git a/node_modules/ext/thenable_/finally.js b/node_modules/ext/thenable_/finally.js deleted file mode 100644 index 42274bf6..00000000 --- a/node_modules/ext/thenable_/finally.js +++ /dev/null @@ -1,24 +0,0 @@ -"use strict"; - -var ensurePlainFunction = require("type/plain-function/ensure") - , isThenable = require("type/thenable/is") - , ensureThenable = require("type/thenable/ensure"); - -var resolveCallback = function (callback, next) { - var callbackResult = callback(); - if (!isThenable(callbackResult)) return next(); - return callbackResult.then(next); -}; - -module.exports = function (callback) { - ensureThenable(this); - ensurePlainFunction(callback); - return this.then( - function (result) { - return resolveCallback(callback, function () { return result; }); - }, - function (error) { - return resolveCallback(callback, function () { throw error; }); - } - ); -}; diff --git a/node_modules/fast-xml-parser/CHANGELOG.md b/node_modules/fast-xml-parser/CHANGELOG.md deleted file mode 100644 index 709f4c3b..00000000 --- a/node_modules/fast-xml-parser/CHANGELOG.md +++ /dev/null @@ -1,554 +0,0 @@ -Note: If you find missing information about particular minor version, that version must have been changed without any functional change in this library. - -**4.2.5 / 2023-06-22** -* change code implementation - -**4.2.4 / 2023-06-06** -* fix security bug - -**4.2.3 / 2023-06-05** -* fix security bug - -**4.2.2 / 2023-04-18** -* fix #562: fix unpaired tag when it comes in last of a nested tag. Also throw error when unpaired tag is used as closing tag - -**4.2.1 / 2023-04-18** -* fix: jpath after unpaired tags - -**4.2.0 / 2023-04-09** -* support `updateTag` parser property - -**4.1.4 / 2023-04-08** -* update typings to let user create XMLBuilder instance without options (#556) (By [Patrick](https://github.com/omggga)) -* fix: IsArray option isn't parsing tags with 0 as value correctly #490 (#557) (By [Aleksandr Murashkin](https://github.com/p-kuen)) -* feature: support `oneListGroup` to group repeated children tags udder single group - -**4.1.3 / 2023-02-26** -* fix #546: Support complex entity value - -**4.1.2 / 2023-02-12** -* Security Fix - -**4.1.1 / 2023-02-03** -* Fix #540: ignoreAttributes breaks unpairedTags -* Refactor XML builder code - -**4.1.0 / 2023-02-02** -* Fix '<' or '>' in DTD comment throwing an error. (#533) (By [Adam Baker](https://github.com/Cwazywierdo)) -* Set "eNotation" to 'true' as default - -**4.0.15 / 2023-01-25** -* make "eNotation" optional - -**4.0.14 / 2023-01-22** -* fixed: add missed typing "eNotation" to parse values - -**4.0.13 / 2023-01-07** -* preserveorder formatting (By [mdeknowis](https://github.com/mdeknowis)) -* support `transformAttributeName` (By [Erik Rothoff Andersson](https://github.com/erkie)) - -**4.0.12 / 2022-11-19** -* fix typescript - -**4.0.11 / 2022-10-05** -* fix #501: parse for entities only once - -**4.0.10 / 2022-09-14** -* fix broken links in demo site (By [Yannick Lang](https://github.com/layaxx)) -* fix #491: tagValueProcessor type definition (By [Andrea Francesco Speziale](https://github.com/andreafspeziale)) -* Add jsdocs for tagValueProcessor - - -**4.0.9 / 2022-07-10** -* fix #470: stop-tag can have self-closing tag with same name -* fix #472: stopNode can have any special tag inside -* Allow !ATTLIST and !NOTATION with DOCTYPE -* Add transformTagName option to transform tag names when parsing (#469) (By [Erik Rothoff Andersson](https://github.com/erkie)) - -**4.0.8 / 2022-05-28** -* Fix CDATA parsing returning empty string when value = 0 (#451) (By [ndelanou](https://github.com/ndelanou)) -* Fix stopNodes when same tag appears inside node (#456) (By [patrickshipe](https://github.com/patrickshipe)) -* fix #468: prettify own properties only - -**4.0.7 / 2022-03-18** -* support CDATA even if tag order is not preserved -* support Comments even if tag order is not preserved -* fix #446: XMLbuilder should not indent XML declaration - -**4.0.6 / 2022-03-08** -* fix: call tagValueProcessor only once for array items -* fix: missing changed for #437 - -**4.0.5 / 2022-03-06** -* fix #437: call tagValueProcessor from XML builder - -**4.0.4 / 2022-03-03** -* fix #435: should skip unpaired and self-closing nodes when set as stopnodes - -**4.0.3 / 2022-02-15** -* fix: ReferenceError when Bundled with Strict (#431) (By [Andreas Heissenberger](https://github.com/aheissenberger)) - - -**4.0.2 / 2022-02-04** -* builder supports `suppressUnpairedNode` -* parser supports `ignoreDeclaration` and `ignorePiTags` -* fix: when comment is parsed as text value if given as ` ...` #423 -* builder supports decoding `&` - -**4.0.1 / 2022-01-08** -* fix builder for pi tag -* fix: support suppressBooleanAttrs by builder - -**4.0.0 / 2022-01-06** -* Generating different combined, parser only, builder only, validator only browser bundles -* Keeping cjs modules as they can be imported in cjs and esm modules both. Otherwise refer `esm` branch. - -**4.0.0-beta.8 / 2021-12-13** -* call tagValueProcessor for stop nodes - -**4.0.0-beta.7 / 2021-12-09** -* fix Validator bug when an attribute has no value but '=' only -* XML Builder should suppress unpaired tags by default. -* documents update for missing features -* refactoring to use Object.assign -* refactoring to remove repeated code - -**4.0.0-beta.6 / 2021-12-05** -* Support PI Tags processing -* Support `suppressBooleanAttributes` by XML Builder for attributes with value `true`. - -**4.0.0-beta.5 / 2021-12-04** -* fix: when a tag with name "attributes" - -**4.0.0-beta.4 / 2021-12-02** -* Support HTML document parsing -* skip stop nodes parsing when building the XML from JS object -* Support external entites without DOCTYPE -* update dev dependency: strnum v1.0.5 to fix long number issue - -**4.0.0-beta.3 / 2021-11-30** -* support global stopNodes expression like "*.stop" -* support self-closing and paired unpaired tags -* fix: CDATA should not be parsed. -* Fix typings for XMLBuilder (#396)(By [Anders Emil Salvesen](https://github.com/andersem)) -* supports XML entities, HTML entities, DOCTYPE entities - -**⚠️ 4.0.0-beta.2 / 2021-11-19** -* rename `attrMap` to `attibutes` in parser output when `preserveOrder:true` -* supports unpairedTags - -**⚠️ 4.0.0-beta.1 / 2021-11-18** -* Parser returns an array now - * to make the structure common - * and to return root level detail -* renamed `cdataTagName` to `cdataPropName` -* Added `commentPropName` -* fix typings - -**⚠️ 4.0.0-beta.0 / 2021-11-16** -* Name change of many configuration properties. - * `attrNodeName` to `attributesGroupName` - * `attrValueProcessor` to `attributeValueProcessor` - * `parseNodeValue` to `parseTagValue` - * `ignoreNameSpace` to `removeNSPrefix` - * `numParseOptions` to `numberParseOptions` - * spelling correction for `suppressEmptyNode` -* Name change of cli and browser bundle to **fxparser** -* `isArray` option is added to parse a tag into array -* `preserveOrder` option is added to render XML in such a way that the result js Object maintains the order of properties same as in XML. -* Processing behaviour of `tagValueProcessor` and `attributeValueProcessor` are changes with extra input parameters -* j2xparser is renamed to XMLBuilder. -* You need to build XML parser instance for given options first before parsing XML. -* fix #327, #336: throw error when extra text after XML content -* fix #330: attribute value can have '\n', -* fix #350: attrbiutes can be separated by '\n' from tagname - -3.21.1 / 2021-10-31 -* Correctly format JSON elements with a text prop but no attribute props ( By [haddadnj](https://github.com/haddadnj) ) - -3.21.0 / 2021-10-25 - * feat: added option `rootNodeName` to set tag name for array input when converting js object to XML. - * feat: added option `alwaysCreateTextNode` to force text node creation (by: *@massimo-ua*) - * ⚠️ feat: Better error location for unclosed tags. (by *@Gei0r*) - * Some error messages would be changed when validating XML. Eg - * `{ InvalidXml: "Invalid '[ \"rootNode\"]' found." }` → `{InvalidTag: "Unclosed tag 'rootNode'."}` - * `{ InvalidTag: "Closing tag 'rootNode' is expected inplace of 'rootnode'." }` → `{ InvalidTag: "Expected closing tag 'rootNode' (opened in line 1) instead of closing tag 'rootnode'."}` - * ⚠️ feat: Column in error response when validating XML -```js -{ - "code": "InvalidAttr", - "msg": "Attribute 'abc' is repeated.", - "line": 1, - "col": 22 -} -``` - -3.20.1 / 2021-09-25 - * update strnum package - -3.20.0 / 2021-09-10 - * Use strnum npm package to parse string to number - * breaking change: long number will be parsed to scientific notation. - -3.19.0 / 2021-03-14 - * License changed to MIT original - * Fix #321 : namespace tag parsing - -3.18.0 / 2021-02-05 - * Support RegEx and function in arrayMode option - * Fix #317 : validate nested PI tags - -3.17.4 / 2020-06-07 - * Refactor some code to support IE11 - * Fix: `` space as attribute string - -3.17.3 / 2020-05-23 - * Fix: tag name separated by \n \t - * Fix: throw error for unclosed tags - -3.17.2 / 2020-05-23 - * Fixed an issue in processing doctype tag - * Fixed tagName where it should not have whitespace chars - -3.17.1 / 2020-05-19 - * Fixed an issue in checking opening tag - -3.17.0 / 2020-05-18 - * parser: fix '<' issue when it comes in aatr value - * parser: refactoring to remove dependency from regex - * validator: fix IE 11 issue for error messages - * updated dev dependencies - * separated benchmark module to sub-module - * breaking change: comments will not be removed from CDATA data - -3.16.0 / 2020-01-12 - * validaor: fix for ampersand characters (#215) - * refactoring to support unicode chars in tag name - * update typing for validator error - -3.15.1 / 2019-12-09 - * validaor: fix multiple roots are not allowed - -3.15.0 / 2019-11-23 - * validaor: improve error messaging - * validator: add line number in case of error - * validator: add more error scenarios to make it more descriptive - -3.14.0 / 2019-10-25 - * arrayMode for XML to JS obj parsing - -3.13.0 / 2019-10-02 - * pass tag/attr name to tag/attr value processor - * inbuilt optional validation with XML parser - -3.12.21 / 2019-10-02 - * Fix validator for unclosed XMLs - * move nimnjs dependency to dev dependency - * update dependencies - -3.12.20 / 2019-08-16 - * Revert: Fix #167: '>' in attribute value as it is causing high performance degrade. - -3.12.19 / 2019-07-28 - * Fix js to xml parser should work for date values. (broken: `tagValueProcessor` will receive the original value instead of string always) (breaking change) - -3.12.18 / 2019-07-27 - * remove configstore dependency - -3.12.17 / 2019-07-14 - * Fix #167: '>' in attribute value - -3.12.16 / 2019-03-23 - * Support a new option "stopNodes". (#150) -Accept the list of tags which are not required to be parsed. Instead, all the nested tag and data will be assigned as string. - * Don't show post-install message - -3.12.12 / 2019-01-11 - * fix : IE parseInt, parseFloat error - -3.12.11 / 2018-12-24 - * fix #132: "/" should not be parsed as boolean attr in case of self closing tags - -3.12.9 / 2018-11-23 - * fix #129 : validator should not fail when an atrribute name is 'length' - -3.12.8 / 2018-11-22 - * fix #128 : use 'attrValueProcessor' to process attribute value in json2xml parser - -3.12.6 / 2018-11-10 - * Fix #126: check for type - -3.12.4 / 2018-09-12 - * Fix: include tasks in npm package - -3.12.3 / 2018-09-12 - * Fix CLI issue raised in last PR - -3.12.2 / 2018-09-11 - * Fix formatting for JSON to XML output - * Migrate to webpack (PR merged) - * fix cli (PR merged) - -3.12.0 / 2018-08-06 - * Support hexadecimal values - * Support true number parsing - -3.11.2 / 2018-07-23 - * Update Demo for more options - * Update license information - * Update readme for formatting, users, and spelling mistakes - * Add missing typescript definition for j2xParser - * refactoring: change filenames - -3.11.1 / 2018-06-05 - * fix #93: read the text after self closing tag - -3.11.0 / 2018-05-20 - * return defaultOptions if there are not options in buildOptions function - * added localeRange declaration in parser.d.ts - * Added support of cyrillic characters in validator XML - * fixed bug in validator work when XML data with byte order marker - -3.10.0 / 2018-05-13 - * Added support of cyrillic characters in parsing XML to JSON - -3.9.11 / 2018-05-09 - * fix https://github.com/NaturalIntelligence/fast-xml-parser/issues/80 fix nimn chars - * update package information - * fix https://github.com/NaturalIntelligence/fast-xml-parser/issues/86: json 2 xml parser : property with null value should be parsed to self closing tag. - * update online demo - * revert zombiejs to old version to support old version of node - * update dependencies - -3.3.10 / 2018-04-23 - * fix #77 : parse even if closing tag has space before '>' - * include all css & js lib in demo app - * remove babel dependencies until needed - -3.3.9 / 2018-04-18 - * fix #74 : TS2314 TypeScript compiler error - -3.3.8 / 2018-04-17 - * fix #73 : IE doesn't support Object.assign - -3.3.7 / 2018-04-14 - * fix: use let insted of const in for loop of validator - * Merge pull request - https://github.com/NaturalIntelligence/fast-xml-parser/issues/71 from bb/master - first draft of typings for typescript - https://github.com/NaturalIntelligence/fast-xml-parser/issues/69 - * Merge pull request - https://github.com/NaturalIntelligence/fast-xml-parser/issues/70 from bb/patch-1 - fix some typos in readme - -3.3.6 / 2018-03-21 - * change arrow functions to full notation for IE compatibility - -3.3.5 / 2018-03-15 - * fix https://github.com/NaturalIntelligence/fast-xml-parser/issues/67 : attrNodeName invalid behavior - * fix: remove decodeHTML char condition - -3.3.4 / 2018-03-14 - * remove dependency on "he" package - * refactor code to separate methods in separate files. - * draft code for transforming XML to json string. It is not officially documented due to performance issue. - -3.3.0 / 2018-03-05 - * use common default options for XML parsing for consistency. And add `parseToNimn` method. - * update nexttodo - * update README about XML to Nimn transformation and remove special notes about 3.x release - * update CONTRIBUTING.ms mentioning nexttodo - * add negative case for XML PIs - * validate xml processing instruction tags https://github.com/NaturalIntelligence/fast-xml-parser/issues/62 - * nimndata: handle array with object - * nimndata: node with nested node and text node - * nimndata: handle attributes and text node - * nimndata: add options, handle array - * add xml to nimn data converter - * x2j: direct access property with tagname - * update changelog - * fix validator when single quote presents in value enclosed with double quotes or vice versa - * Revert "remove unneded nimnjs dependency, move opencollective to devDependencies and replace it - with more light opencollective-postinstall" - This reverts commit d47aa7181075d82db4fee97fd8ea32b056fe3f46. - * Merge pull request: https://github.com/NaturalIntelligence/fast-xml-parser/issues/63 from HaroldPutman/suppress-undefined - Keep undefined nodes out of the XML output : This is useful when you are deleting nodes from the JSON and rewriting XML. - -3.2.4 / 2018-03-01 - * fix #59 fix in validator when open quote presents in attribute value - * Create nexttodo.md - * exclude static from bitHound tests - * add package lock - -3.2.3 / 2018-02-28 - * Merge pull request from Delagen/master: fix namespaces can contain the same characters as xml names - -3.2.2 / 2018-02-22 - * fix: attribute xmlns should not be removed if ignoreNameSpace is false - * create CONTRIBUTING.md - -3.2.1 / 2018-02-17 - * fix: empty attribute should be parsed - -3.2.0 / 2018-02-16 - * Merge pull request : Dev to Master - * Update README and version - * j2x:add performance test - * j2x: Remove extra empty line before closing tag - * j2x: suppress empty nodes to self closing node if configured - * j2x: provide option to give indentation depth - * j2x: make optional formatting - * j2x: encodeHTMLchat - * j2x: handle cdata tag - * j2x: handle grouped attributes - * convert json to xml - - nested object - - array - - attributes - - text value - * small refactoring - * Merge pull request: Update cli.js to let user validate XML file or data - * Add option for rendering CDATA as separate property - -3.0.1 / 2018-02-09 - * fix CRLF: replace it with single space in attributes value only. - -3.0.0 / 2018-02-08 - * change online tool with new changes - * update info about new options - * separate tag value processing to separate function - * make HTML decoding optional - * give an option to allow boolean attributes - * change cli options as per v3 - * Correct comparison table format on README - * update v3 information - * some performance improvement changes - * Make regex object local to the method and move some common methods to util - * Change parser to - - handle multiple instances of CDATA - - make triming of value optionals - - HTML decode attribute and text value - - refactor code to separate files - * Ignore newline chars without RE (in validator) - * validate for XML prolog - * Validate DOCTYPE without RE - * Update validator to return error response - * Update README to add detail about V3 - * Separate xmlNode model class - * include vscode debug config - * fix for repeated object - * fix attribute regex for boolean attributes - * Fix validator for invalid attributes -2.9.4 / 2018-02-02 - * Merge pull request: Decode HTML characters - * refactor source folder name - * ignore bundle / browser js to be published to npm -2.9.3 / 2018-01-26 - * Merge pull request: Correctly remove CRLF line breaks - * Enable to parse attribute in online editor - * Fix testing demo app test - * Describe parsing options - * Add options for online demo -2.9.2 / 2018-01-18 - * Remove check if tag starting with "XML" - * Fix: when there are spaces before / after CDATA - -2.9.1 / 2018-01-16 - * Fix: newline should be replaced with single space - * Fix: for single and multiline comments - * validate xml with CDATA - * Fix: the issue when there is no space between 2 attributes - * Fix: https://github.com/NaturalIntelligence/fast-xml-parser/issues/33: when there is newline char in attr val, it doesn't parse - * Merge pull request: fix ignoreNamespace - * fix: don't wrap attributes if only namespace attrs - * fix: use portfinder for run tests, update deps - * fix: don't treat namespaces as attributes when ignoreNamespace enabled - -2.9.0 / 2018-01-10 - * Rewrite the validator to handle large files. - Ignore DOCTYPE validation. - * Fix: When attribute value has equal sign - -2.8.3 / 2017-12-15 - * Fix: when a tag has value along with subtags - -2.8.2 / 2017-12-04 - * Fix value parsing for IE - -2.8.1 / 2017-12-01 - * fix: validator should return false instead of err when invalid XML - -2.8.0 / 2017-11-29 - * Add CLI option to ignore value conversion - * Fix variable name when filename is given on CLI - * Update CLI help text - * Merge pull request: xml2js: Accept standard input - * Test Node 8 - * Update dependencies - * Bundle readToEnd - * Add ability to read from standard input - -2.7.4 / 2017-09-22 - * Merge pull request: Allow wrap attributes with subobject to compatible with other parsers output - -2.7.3 / 2017-08-02 - * fix: handle CDATA with regx - -2.7.2 / 2017-07-30 - * Change travis config for yarn caching - * fix validator: when tag property is same as array property - * Merge pull request: Failing test case in validator for valid SVG - -2.7.1 / 2017-07-26 - * Fix: Handle val 0 - -2.7.0 / 2017-07-25 - * Fix test for arrayMode - * Merge pull request: Add arrayMode option to parse any nodes as arrays - -2.6.0 / 2017-07-14 - * code improvement - * Add unit tests for value conversion for attr - * Merge pull request: option of an attribute value conversion to a number (textAttrConversion) the same way as the textNodeConversion option does. Default value is false. - -2.5.1 / 2017-07-01 - * Fix XML element name pattern - * Fix XML element name pattern while parsing - * Fix validation for xml tag element - -2.5.0 / 2017-06-25 - * Improve Validator performance - * update attr matching regex - * Add perf tests - * Improve atrr regex to handle all cases - -2.4.4 / 2017-06-08 - * Bug fix: when an attribute has single or double quote in value - -2.4.3 / 2017-06-05 - * Bug fix: when multiple CDATA tags are given - * Merge pull request: add option "textNodeConversion" - * add option "textNodeConversion" - -2.4.1 / 2017-04-14 - * fix tests - * Bug fix: preserve initial space of node value - * Handle CDATA - -2.3.1 / 2017-03-15 - * Bug fix: when single self closing tag - * Merge pull request: fix .codeclimate.yml - * Update .codeclimate.yml - Fixed config so it does not error anymore. - * Update .codeclimate.yml - -2.3.0 / 2017-02-26 - * Code improvement - * add bithound config - * Update usage - * Update travis to generate bundle js before running tests - * 1.Browserify, 2. add more tests for validator - * Add validator - * Fix CLI default parameter bug - -2.2.1 / 2017-02-05 - * Bug fix: CLI default option diff --git a/node_modules/fast-xml-parser/LICENSE b/node_modules/fast-xml-parser/LICENSE deleted file mode 100644 index d7da622a..00000000 --- a/node_modules/fast-xml-parser/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2017 Amit Kumar Gupta - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/node_modules/fast-xml-parser/README.md b/node_modules/fast-xml-parser/README.md deleted file mode 100644 index 59cb8c40..00000000 --- a/node_modules/fast-xml-parser/README.md +++ /dev/null @@ -1,204 +0,0 @@ -# [fast-xml-parser](https://www.npmjs.com/package/fast-xml-parser) -[![Backers on Open Collective](https://opencollective.com/fast-xml-parser/backers/badge.svg)](#backers) [![Sponsors on Open Collective](https://opencollective.com/fast-xml-parser/sponsors/badge.svg)](#sponsors) [![Known Vulnerabilities](https://snyk.io/test/github/naturalintelligence/fast-xml-parser/badge.svg)](https://snyk.io/test/github/naturalintelligence/fast-xml-parser) -[![NPM quality][quality-image]][quality-url] -[![Coverage Status](https://coveralls.io/repos/github/NaturalIntelligence/fast-xml-parser/badge.svg?branch=master)](https://coveralls.io/github/NaturalIntelligence/fast-xml-parser?branch=master) -[Try me](https://naturalintelligence.github.io/fast-xml-parser/) -[![NPM total downloads](https://img.shields.io/npm/dt/fast-xml-parser.svg)](https://npm.im/fast-xml-parser) - -[quality-image]: http://npm.packagequality.com/shield/fast-xml-parser.svg?style=flat-square -[quality-url]: http://packagequality.com/#?package=fast-xml-parser - - -Validate XML, Parse XML to JS Object, or Build XML from JS Object without C/C++ based libraries and no callback. - -> Looking for maintainers - -Support this project by becoming a **Sponsor**. - -Click on Sponsor button above or - - - - Stubmatic donate button - - -### Sponsors - - - - - - - - - - - - - - -Check [ThankYouBackers](https://github.com/NaturalIntelligence/ThankYouBackers) for our supporters - -## Users - - - - - - - - - - - - - - - - -Check the list of all known users [here](./USERs.md); - -The list of users is collected either from the list published by Github, cummunicated directly through mails/chat , or from other resources. If you feel that your name in the above list is incorrectly published or you're not the user of this library anymore then you can inform us to remove it. We'll do the necessary changes ASAP. - -## Main Features - -FXP logo - -* Validate XML data syntactically -* Parse XML to JS Object -* Build XML from JS Object -* Works with node packages, in browser, and in CLI (press try me button above for demo) -* Faster than any other pure JS implementation. -* It can handle big files (tested up to 100mb). -* Controlled parsing using various options -* XML Entities, HTML entities, and DOCTYPE entites are supported. -* unpaired tags (Eg `
` in HTML), stop nodes (Eg ` -: - -``` - -Check lib folder for different browser bundles - -| Bundle Name | Size | -| ------------------ | ---- | -| fxbuilder.min.js | 5.2K | -| fxparser.js | 50K | -| fxparser.min.js | 17K | -| fxp.min.js | 22K | -| fxvalidator.min.js | 5.7K | - -### Documents -**v3** -* [documents](./docs/v3/docs.md) - -**v4** -1. [GettingStarted.md](./docs/v4/1.GettingStarted.md) -2. [XML Parser](./docs/v4/2.XMLparseOptions.md) -3. [XML Builder](./docs/v4/3.XMLBuilder.md) -4. [XML Validator](./docs/v4/4.XMLValidator.md) -5. [Entities](./docs/v4/5.Entities.md) -6. [HTML Document Parsing](./docs/v4/6.HTMLParsing.md) -7. [PI Tag processing](./docs/v4/7.PITags.md) -## Performance - -### XML Parser - -![](./docs/imgs/XMLParser_v4.png) -* Y-axis: requests per second -* X-axis: File size - -**Large files** -![](./docs/imgs/XMLParser_large_v4.png) -* Y-axis: requests per second -* X-axis: File size -### XML Builder - -![](./docs/imgs/XMLBuilder_v4.png) -* Y-axis: requests per second - -negative means error - -[![](static/img/ni_ads_ads.gif)](https://github.com/NaturalIntelligence/ads/) - -## Our other projects and research you must try - -* **[BigBit standard](https://github.com/amitguptagwl/bigbit)** : - * Single text encoding to replace UTF-8, UTF-16, UTF-32 and more with less memory. - * Single Numeric datatype alternative of integer, float, double, long, decimal and more without precision loss. -* **[Cytorus](https://github.com/NaturalIntelligence/cytorus)**: Be specific and flexible while running E2E tests. - * Run tests only for a particular User Story - * Run tests for a route or from a route - * Customizable reporting - * Central dashboard for better monitoring - * Options to integrate E2E tests with Jira, Github etc using Central dashboard `Tian`. -* **[Stubmatic](https://github.com/NaturalIntelligence/Stubmatic)** : Create fake webservices, DynamoDB or S3 servers, Manage fake/mock stub data, Or fake any HTTP(s) call. - - -## Supporters -### Contributors - -This project exists thanks to [all](graphs/contributors) the people who contribute. [[Contribute](docs/CONTRIBUTING.md)]. - - - - -### Backers - -Thank you to all our backers! 🙏 [[Become a backer](https://opencollective.com/fast-xml-parser#backer)] - - - - - -# License -* MIT License - -![Donate $5](static/img/donation_quote.png) diff --git a/node_modules/fast-xml-parser/package.json b/node_modules/fast-xml-parser/package.json deleted file mode 100644 index ddfc8de2..00000000 --- a/node_modules/fast-xml-parser/package.json +++ /dev/null @@ -1,71 +0,0 @@ -{ - "name": "fast-xml-parser", - "version": "4.2.5", - "description": "Validate XML, Parse XML, Build XML without C/C++ based libraries", - "main": "./src/fxp.js", - "scripts": { - "test": "nyc --reporter=lcov --reporter=text jasmine spec/*spec.js", - "unit": "jasmine", - "coverage": "nyc report --reporter html --reporter text -t .nyc_output --report-dir .nyc_output/summary", - "perf": "node ./benchmark/perfTest3.js", - "lint": "eslint src/*.js spec/*.js", - "bundle": "webpack --config webpack-prod.config.js", - "prettier": "prettier --write src/**/*.js", - "publish-please": "publish-please", - "checkReadiness": "publish-please --dry-run" - }, - "bin": { - "fxparser": "./src/cli/cli.js" - }, - "repository": { - "type": "git", - "url": "https://github.com/NaturalIntelligence/fast-xml-parser" - }, - "keywords": [ - "fast", - "xml", - "json", - "parser", - "xml2js", - "x2js", - "xml2json", - "js", - "cli", - "validator", - "validate", - "transformer", - "assert", - "js2xml", - "json2xml", - "html" - ], - "author": "Amit Gupta (https://amitkumargupta.work/)", - "license": "MIT", - "devDependencies": { - "@babel/core": "^7.13.10", - "@babel/plugin-transform-runtime": "^7.13.10", - "@babel/preset-env": "^7.13.10", - "@babel/register": "^7.13.8", - "babel-loader": "^8.2.2", - "cytorus": "^0.2.9", - "eslint": "^8.3.0", - "he": "^1.2.0", - "jasmine": "^3.6.4", - "nyc": "^15.1.0", - "prettier": "^1.19.1", - "publish-please": "^5.5.2", - "webpack": "^5.64.4", - "webpack-cli": "^4.9.1" - }, - "typings": "src/fxp.d.ts", - "funding": [{ - "type": "paypal", - "url": "https://paypal.me/naturalintelligence" - },{ - "type": "github", - "url": "https://github.com/sponsors/NaturalIntelligence" - }], - "dependencies": { - "strnum": "^1.0.5" - } -} diff --git a/node_modules/fast-xml-parser/src/cli/cli.js b/node_modules/fast-xml-parser/src/cli/cli.js deleted file mode 100755 index 984534ca..00000000 --- a/node_modules/fast-xml-parser/src/cli/cli.js +++ /dev/null @@ -1,93 +0,0 @@ -#!/usr/bin/env node -'use strict'; -/*eslint-disable no-console*/ -const fs = require('fs'); -const path = require('path'); -const {XMLParser, XMLValidator} = require("../fxp"); -const readToEnd = require('./read').readToEnd; - -const version = require('./../../package.json').version; -if (process.argv[2] === '--help' || process.argv[2] === '-h') { - console.log(require("./man")); -} else if (process.argv[2] === '--version') { - console.log(version); -} else { - const options = { - removeNSPrefix: true, - ignoreAttributes: false, - parseTagValue: true, - parseAttributeValue: true, - }; - let fileName = ''; - let outputFileName; - let validate = false; - let validateOnly = false; - for (let i = 2; i < process.argv.length; i++) { - if (process.argv[i] === '-ns') { - options.removeNSPrefix = false; - } else if (process.argv[i] === '-a') { - options.ignoreAttributes = true; - } else if (process.argv[i] === '-c') { - options.parseTagValue = false; - options.parseAttributeValue = false; - } else if (process.argv[i] === '-o') { - outputFileName = process.argv[++i]; - } else if (process.argv[i] === '-v') { - validate = true; - } else if (process.argv[i] === '-V') { - validateOnly = true; - } else { - //filename - fileName = process.argv[i]; - } - } - - const callback = function(xmlData) { - let output = ''; - if (validate) { - const parser = new XMLParser(options); - output = parser.parse(xmlData,validate); - } else if (validateOnly) { - output = XMLValidator.validate(xmlData); - process.exitCode = output === true ? 0 : 1; - } else { - const parser = new XMLParser(options); - output = JSON.stringify(parser.parse(xmlData,validate), null, 4); - } - if (outputFileName) { - writeToFile(outputFileName, output); - } else { - console.log(output); - } - }; - - try { - - if (!fileName) { - readToEnd(process.stdin, function(err, data) { - if (err) { - throw err; - } - callback(data.toString()); - }); - } else { - fs.readFile(fileName, function(err, data) { - if (err) { - throw err; - } - callback(data.toString()); - }); - } - } catch (e) { - console.log('Seems an invalid file or stream.' + e); - } -} - -function writeToFile(fileName, data) { - fs.writeFile(fileName, data, function(err) { - if (err) { - throw err; - } - console.log('JSON output has been written to ' + fileName); - }); -} diff --git a/node_modules/fast-xml-parser/src/cli/man.js b/node_modules/fast-xml-parser/src/cli/man.js deleted file mode 100644 index 89947cc7..00000000 --- a/node_modules/fast-xml-parser/src/cli/man.js +++ /dev/null @@ -1,12 +0,0 @@ -module.exports = `Fast XML Parser 4.0.0 ----------------- -$ fxparser [-ns|-a|-c|-v|-V] [-o outputfile.json] -$ cat xmlfile.xml | fxparser [-ns|-a|-c|-v|-V] [-o outputfile.json] - -Options ----------------- --ns: remove namespace from tag and atrribute name. --a: don't parse attributes. --c: parse values to premitive type. --v: validate before parsing. --V: validate only.` \ No newline at end of file diff --git a/node_modules/fast-xml-parser/src/cli/read.js b/node_modules/fast-xml-parser/src/cli/read.js deleted file mode 100644 index 642da527..00000000 --- a/node_modules/fast-xml-parser/src/cli/read.js +++ /dev/null @@ -1,92 +0,0 @@ -'use strict'; - -// Copyright 2013 Timothy J Fontaine -// -// Permission is hereby granted, free of charge, to any person obtaining a copy -// of this software and associated documentation files (the 'Software'), to deal -// in the Software without restriction, including without limitation the rights -// to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -// copies of the Software, and to permit persons to whom the Software is -// furnished to do so, subject to the following conditions: -// -// The above copyright notice and this permission notice shall be included in -// all copies or substantial portions of the Software. -// -// THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -// IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -// FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -// AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -// LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -// OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -// THE SOFTWARE - -/* - -Read any stream all the way to the end and trigger a single cb - -const http = require('http'); - -const rte = require('readtoend'); - -http.get('http://nodejs.org', function(response) { - rte.readToEnd(response, function(err, body) { - console.log(body); - }); -}); - -*/ - -let stream = require('stream'); -const util = require('util'); - -if (!stream.Transform) { - stream = require('readable-stream'); -} - -function ReadToEnd(opts) { - if (!(this instanceof ReadToEnd)) { - return new ReadToEnd(opts); - } - - stream.Transform.call(this, opts); - - this._rte_encoding = opts.encoding || 'utf8'; - - this._buff = ''; -} - -module.exports = ReadToEnd; -util.inherits(ReadToEnd, stream.Transform); - -ReadToEnd.prototype._transform = function(chunk, encoding, done) { - this._buff += chunk.toString(this._rte_encoding); - this.push(chunk); - done(); -}; - -ReadToEnd.prototype._flush = function(done) { - this.emit('complete', undefined, this._buff); - done(); -}; - -ReadToEnd.readToEnd = function(stream, options, cb) { - if (!cb) { - cb = options; - options = {}; - } - - const dest = new ReadToEnd(options); - - stream.pipe(dest); - - stream.on('error', function(err) { - stream.unpipe(dest); - cb(err); - }); - - dest.on('complete', cb); - - dest.resume(); - - return dest; -}; diff --git a/node_modules/fast-xml-parser/src/fxp.d.ts b/node_modules/fast-xml-parser/src/fxp.d.ts deleted file mode 100644 index d622f27e..00000000 --- a/node_modules/fast-xml-parser/src/fxp.d.ts +++ /dev/null @@ -1,108 +0,0 @@ -type X2jOptions = { - preserveOrder: boolean; - attributeNamePrefix: string; - attributesGroupName: false | string; - textNodeName: string; - ignoreAttributes: boolean; - removeNSPrefix: boolean; - allowBooleanAttributes: boolean; - parseTagValue: boolean; - parseAttributeValue: boolean; - trimValues: boolean; - cdataPropName: false | string; - commentPropName: false | string; - /** -Control how tag value should be parsed. Called only if tag value is not empty - -@returns {undefined|null} `undefined` or `null` to set original value. -@returns {unknown} -1. Different value or value with different data type to set new value.
-2. Same value to set parsed value if `parseTagValue: true`. - */ - tagValueProcessor: (tagName: string, tagValue: string, jPath: string, hasAttributes: boolean, isLeafNode: boolean) => unknown; - attributeValueProcessor: (attrName: string, attrValue: string, jPath: string) => unknown; - numberParseOptions: strnumOptions; - stopNodes: string[]; - unpairedTags: string[]; - alwaysCreateTextNode: boolean; - isArray: (tagName: string, jPath: string, isLeafNode: boolean, isAttribute: boolean) => boolean; - processEntities: boolean; - htmlEntities: boolean; - ignoreDeclaration: boolean; - ignorePiTags: boolean; - transformTagName: ((tagName: string) => string) | false; - transformAttributeName: ((attributeName: string) => string) | false; - /** -Change the tag name when a different name is returned. Skip the tag from parsed result when false is returned. -Modify `attrs` object to control attributes for the given tag. - -@returns {string} new tag name. -@returns false to skip the tag - */ - updateTag: (tagName: string, jPath: string, attrs: {[k: string]: string}) => string | boolean; -}; -type strnumOptions = { - hex: boolean; - leadingZeros: boolean, - skipLike?: RegExp, - eNotation?: boolean -} -type X2jOptionsOptional = Partial; -type validationOptions = { - allowBooleanAttributes: boolean; - unpairedTags: string[]; -}; -type validationOptionsOptional = Partial; - -type XmlBuilderOptions = { - attributeNamePrefix: string; - attributesGroupName: false | string; - textNodeName: string; - ignoreAttributes: boolean; - cdataPropName: false | string; - commentPropName: false | string; - format: boolean; - indentBy: string; - arrayNodeName: string; - suppressEmptyNode: boolean; - suppressUnpairedNode: boolean; - suppressBooleanAttributes: boolean; - preserveOrder: boolean; - unpairedTags: string[]; - stopNodes: string[]; - tagValueProcessor: (name: string, value: unknown) => string; - attributeValueProcessor: (name: string, value: unknown) => string; - processEntities: boolean; - oneListGroup: boolean; -}; -type XmlBuilderOptionsOptional = Partial; - -type ESchema = string | object | Array; - -type ValidationError = { - err: { - code: string; - msg: string, - line: number, - col: number - }; -}; - -export class XMLParser { - constructor(options?: X2jOptionsOptional); - parse(xmlData: string | Buffer ,validationOptions?: validationOptionsOptional | boolean): any; - /** - * Add Entity which is not by default supported by this library - * @param entityIndentifier {string} Eg: 'ent' for &ent; - * @param entityValue {string} Eg: '\r' - */ - addEntity(entityIndentifier: string, entityValue: string): void; -} - -export class XMLValidator{ - static validate( xmlData: string, options?: validationOptionsOptional): true | ValidationError; -} -export class XMLBuilder { - constructor(options?: XmlBuilderOptionsOptional); - build(jObj: any): any; -} diff --git a/node_modules/fast-xml-parser/src/fxp.js b/node_modules/fast-xml-parser/src/fxp.js deleted file mode 100644 index 9cfa0ac0..00000000 --- a/node_modules/fast-xml-parser/src/fxp.js +++ /dev/null @@ -1,11 +0,0 @@ -'use strict'; - -const validator = require('./validator'); -const XMLParser = require('./xmlparser/XMLParser'); -const XMLBuilder = require('./xmlbuilder/json2xml'); - -module.exports = { - XMLParser: XMLParser, - XMLValidator: validator, - XMLBuilder: XMLBuilder -} \ No newline at end of file diff --git a/node_modules/fast-xml-parser/src/util.js b/node_modules/fast-xml-parser/src/util.js deleted file mode 100644 index df0a60d5..00000000 --- a/node_modules/fast-xml-parser/src/util.js +++ /dev/null @@ -1,72 +0,0 @@ -'use strict'; - -const nameStartChar = ':A-Za-z_\\u00C0-\\u00D6\\u00D8-\\u00F6\\u00F8-\\u02FF\\u0370-\\u037D\\u037F-\\u1FFF\\u200C-\\u200D\\u2070-\\u218F\\u2C00-\\u2FEF\\u3001-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFFD'; -const nameChar = nameStartChar + '\\-.\\d\\u00B7\\u0300-\\u036F\\u203F-\\u2040'; -const nameRegexp = '[' + nameStartChar + '][' + nameChar + ']*' -const regexName = new RegExp('^' + nameRegexp + '$'); - -const getAllMatches = function(string, regex) { - const matches = []; - let match = regex.exec(string); - while (match) { - const allmatches = []; - allmatches.startIndex = regex.lastIndex - match[0].length; - const len = match.length; - for (let index = 0; index < len; index++) { - allmatches.push(match[index]); - } - matches.push(allmatches); - match = regex.exec(string); - } - return matches; -}; - -const isName = function(string) { - const match = regexName.exec(string); - return !(match === null || typeof match === 'undefined'); -}; - -exports.isExist = function(v) { - return typeof v !== 'undefined'; -}; - -exports.isEmptyObject = function(obj) { - return Object.keys(obj).length === 0; -}; - -/** - * Copy all the properties of a into b. - * @param {*} target - * @param {*} a - */ -exports.merge = function(target, a, arrayMode) { - if (a) { - const keys = Object.keys(a); // will return an array of own properties - const len = keys.length; //don't make it inline - for (let i = 0; i < len; i++) { - if (arrayMode === 'strict') { - target[keys[i]] = [ a[keys[i]] ]; - } else { - target[keys[i]] = a[keys[i]]; - } - } - } -}; -/* exports.merge =function (b,a){ - return Object.assign(b,a); -} */ - -exports.getValue = function(v) { - if (exports.isExist(v)) { - return v; - } else { - return ''; - } -}; - -// const fakeCall = function(a) {return a;}; -// const fakeCallNoReturn = function() {}; - -exports.isName = isName; -exports.getAllMatches = getAllMatches; -exports.nameRegexp = nameRegexp; diff --git a/node_modules/fast-xml-parser/src/validator.js b/node_modules/fast-xml-parser/src/validator.js deleted file mode 100644 index 11b051b1..00000000 --- a/node_modules/fast-xml-parser/src/validator.js +++ /dev/null @@ -1,423 +0,0 @@ -'use strict'; - -const util = require('./util'); - -const defaultOptions = { - allowBooleanAttributes: false, //A tag can have attributes without any value - unpairedTags: [] -}; - -//const tagsPattern = new RegExp("<\\/?([\\w:\\-_\.]+)\\s*\/?>","g"); -exports.validate = function (xmlData, options) { - options = Object.assign({}, defaultOptions, options); - - //xmlData = xmlData.replace(/(\r\n|\n|\r)/gm,"");//make it single line - //xmlData = xmlData.replace(/(^\s*<\?xml.*?\?>)/g,"");//Remove XML starting tag - //xmlData = xmlData.replace(/()/g,"");//Remove DOCTYPE - const tags = []; - let tagFound = false; - - //indicates that the root tag has been closed (aka. depth 0 has been reached) - let reachedRoot = false; - - if (xmlData[0] === '\ufeff') { - // check for byte order mark (BOM) - xmlData = xmlData.substr(1); - } - - for (let i = 0; i < xmlData.length; i++) { - - if (xmlData[i] === '<' && xmlData[i+1] === '?') { - i+=2; - i = readPI(xmlData,i); - if (i.err) return i; - }else if (xmlData[i] === '<') { - //starting of tag - //read until you reach to '>' avoiding any '>' in attribute value - let tagStartPos = i; - i++; - - if (xmlData[i] === '!') { - i = readCommentAndCDATA(xmlData, i); - continue; - } else { - let closingTag = false; - if (xmlData[i] === '/') { - //closing tag - closingTag = true; - i++; - } - //read tagname - let tagName = ''; - for (; i < xmlData.length && - xmlData[i] !== '>' && - xmlData[i] !== ' ' && - xmlData[i] !== '\t' && - xmlData[i] !== '\n' && - xmlData[i] !== '\r'; i++ - ) { - tagName += xmlData[i]; - } - tagName = tagName.trim(); - //console.log(tagName); - - if (tagName[tagName.length - 1] === '/') { - //self closing tag without attributes - tagName = tagName.substring(0, tagName.length - 1); - //continue; - i--; - } - if (!validateTagName(tagName)) { - let msg; - if (tagName.trim().length === 0) { - msg = "Invalid space after '<'."; - } else { - msg = "Tag '"+tagName+"' is an invalid name."; - } - return getErrorObject('InvalidTag', msg, getLineNumberForPosition(xmlData, i)); - } - - const result = readAttributeStr(xmlData, i); - if (result === false) { - return getErrorObject('InvalidAttr', "Attributes for '"+tagName+"' have open quote.", getLineNumberForPosition(xmlData, i)); - } - let attrStr = result.value; - i = result.index; - - if (attrStr[attrStr.length - 1] === '/') { - //self closing tag - const attrStrStart = i - attrStr.length; - attrStr = attrStr.substring(0, attrStr.length - 1); - const isValid = validateAttributeString(attrStr, options); - if (isValid === true) { - tagFound = true; - //continue; //text may presents after self closing tag - } else { - //the result from the nested function returns the position of the error within the attribute - //in order to get the 'true' error line, we need to calculate the position where the attribute begins (i - attrStr.length) and then add the position within the attribute - //this gives us the absolute index in the entire xml, which we can use to find the line at last - return getErrorObject(isValid.err.code, isValid.err.msg, getLineNumberForPosition(xmlData, attrStrStart + isValid.err.line)); - } - } else if (closingTag) { - if (!result.tagClosed) { - return getErrorObject('InvalidTag', "Closing tag '"+tagName+"' doesn't have proper closing.", getLineNumberForPosition(xmlData, i)); - } else if (attrStr.trim().length > 0) { - return getErrorObject('InvalidTag', "Closing tag '"+tagName+"' can't have attributes or invalid starting.", getLineNumberForPosition(xmlData, tagStartPos)); - } else { - const otg = tags.pop(); - if (tagName !== otg.tagName) { - let openPos = getLineNumberForPosition(xmlData, otg.tagStartPos); - return getErrorObject('InvalidTag', - "Expected closing tag '"+otg.tagName+"' (opened in line "+openPos.line+", col "+openPos.col+") instead of closing tag '"+tagName+"'.", - getLineNumberForPosition(xmlData, tagStartPos)); - } - - //when there are no more tags, we reached the root level. - if (tags.length == 0) { - reachedRoot = true; - } - } - } else { - const isValid = validateAttributeString(attrStr, options); - if (isValid !== true) { - //the result from the nested function returns the position of the error within the attribute - //in order to get the 'true' error line, we need to calculate the position where the attribute begins (i - attrStr.length) and then add the position within the attribute - //this gives us the absolute index in the entire xml, which we can use to find the line at last - return getErrorObject(isValid.err.code, isValid.err.msg, getLineNumberForPosition(xmlData, i - attrStr.length + isValid.err.line)); - } - - //if the root level has been reached before ... - if (reachedRoot === true) { - return getErrorObject('InvalidXml', 'Multiple possible root nodes found.', getLineNumberForPosition(xmlData, i)); - } else if(options.unpairedTags.indexOf(tagName) !== -1){ - //don't push into stack - } else { - tags.push({tagName, tagStartPos}); - } - tagFound = true; - } - - //skip tag text value - //It may include comments and CDATA value - for (i++; i < xmlData.length; i++) { - if (xmlData[i] === '<') { - if (xmlData[i + 1] === '!') { - //comment or CADATA - i++; - i = readCommentAndCDATA(xmlData, i); - continue; - } else if (xmlData[i+1] === '?') { - i = readPI(xmlData, ++i); - if (i.err) return i; - } else{ - break; - } - } else if (xmlData[i] === '&') { - const afterAmp = validateAmpersand(xmlData, i); - if (afterAmp == -1) - return getErrorObject('InvalidChar', "char '&' is not expected.", getLineNumberForPosition(xmlData, i)); - i = afterAmp; - }else{ - if (reachedRoot === true && !isWhiteSpace(xmlData[i])) { - return getErrorObject('InvalidXml', "Extra text at the end", getLineNumberForPosition(xmlData, i)); - } - } - } //end of reading tag text value - if (xmlData[i] === '<') { - i--; - } - } - } else { - if ( isWhiteSpace(xmlData[i])) { - continue; - } - return getErrorObject('InvalidChar', "char '"+xmlData[i]+"' is not expected.", getLineNumberForPosition(xmlData, i)); - } - } - - if (!tagFound) { - return getErrorObject('InvalidXml', 'Start tag expected.', 1); - }else if (tags.length == 1) { - return getErrorObject('InvalidTag', "Unclosed tag '"+tags[0].tagName+"'.", getLineNumberForPosition(xmlData, tags[0].tagStartPos)); - }else if (tags.length > 0) { - return getErrorObject('InvalidXml', "Invalid '"+ - JSON.stringify(tags.map(t => t.tagName), null, 4).replace(/\r?\n/g, '')+ - "' found.", {line: 1, col: 1}); - } - - return true; -}; - -function isWhiteSpace(char){ - return char === ' ' || char === '\t' || char === '\n' || char === '\r'; -} -/** - * Read Processing insstructions and skip - * @param {*} xmlData - * @param {*} i - */ -function readPI(xmlData, i) { - const start = i; - for (; i < xmlData.length; i++) { - if (xmlData[i] == '?' || xmlData[i] == ' ') { - //tagname - const tagname = xmlData.substr(start, i - start); - if (i > 5 && tagname === 'xml') { - return getErrorObject('InvalidXml', 'XML declaration allowed only at the start of the document.', getLineNumberForPosition(xmlData, i)); - } else if (xmlData[i] == '?' && xmlData[i + 1] == '>') { - //check if valid attribut string - i++; - break; - } else { - continue; - } - } - } - return i; -} - -function readCommentAndCDATA(xmlData, i) { - if (xmlData.length > i + 5 && xmlData[i + 1] === '-' && xmlData[i + 2] === '-') { - //comment - for (i += 3; i < xmlData.length; i++) { - if (xmlData[i] === '-' && xmlData[i + 1] === '-' && xmlData[i + 2] === '>') { - i += 2; - break; - } - } - } else if ( - xmlData.length > i + 8 && - xmlData[i + 1] === 'D' && - xmlData[i + 2] === 'O' && - xmlData[i + 3] === 'C' && - xmlData[i + 4] === 'T' && - xmlData[i + 5] === 'Y' && - xmlData[i + 6] === 'P' && - xmlData[i + 7] === 'E' - ) { - let angleBracketsCount = 1; - for (i += 8; i < xmlData.length; i++) { - if (xmlData[i] === '<') { - angleBracketsCount++; - } else if (xmlData[i] === '>') { - angleBracketsCount--; - if (angleBracketsCount === 0) { - break; - } - } - } - } else if ( - xmlData.length > i + 9 && - xmlData[i + 1] === '[' && - xmlData[i + 2] === 'C' && - xmlData[i + 3] === 'D' && - xmlData[i + 4] === 'A' && - xmlData[i + 5] === 'T' && - xmlData[i + 6] === 'A' && - xmlData[i + 7] === '[' - ) { - for (i += 8; i < xmlData.length; i++) { - if (xmlData[i] === ']' && xmlData[i + 1] === ']' && xmlData[i + 2] === '>') { - i += 2; - break; - } - } - } - - return i; -} - -const doubleQuote = '"'; -const singleQuote = "'"; - -/** - * Keep reading xmlData until '<' is found outside the attribute value. - * @param {string} xmlData - * @param {number} i - */ -function readAttributeStr(xmlData, i) { - let attrStr = ''; - let startChar = ''; - let tagClosed = false; - for (; i < xmlData.length; i++) { - if (xmlData[i] === doubleQuote || xmlData[i] === singleQuote) { - if (startChar === '') { - startChar = xmlData[i]; - } else if (startChar !== xmlData[i]) { - //if vaue is enclosed with double quote then single quotes are allowed inside the value and vice versa - } else { - startChar = ''; - } - } else if (xmlData[i] === '>') { - if (startChar === '') { - tagClosed = true; - break; - } - } - attrStr += xmlData[i]; - } - if (startChar !== '') { - return false; - } - - return { - value: attrStr, - index: i, - tagClosed: tagClosed - }; -} - -/** - * Select all the attributes whether valid or invalid. - */ -const validAttrStrRegxp = new RegExp('(\\s*)([^\\s=]+)(\\s*=)?(\\s*([\'"])(([\\s\\S])*?)\\5)?', 'g'); - -//attr, ="sd", a="amit's", a="sd"b="saf", ab cd="" - -function validateAttributeString(attrStr, options) { - //console.log("start:"+attrStr+":end"); - - //if(attrStr.trim().length === 0) return true; //empty string - - const matches = util.getAllMatches(attrStr, validAttrStrRegxp); - const attrNames = {}; - - for (let i = 0; i < matches.length; i++) { - if (matches[i][1].length === 0) { - //nospace before attribute name: a="sd"b="saf" - return getErrorObject('InvalidAttr', "Attribute '"+matches[i][2]+"' has no space in starting.", getPositionFromMatch(matches[i])) - } else if (matches[i][3] !== undefined && matches[i][4] === undefined) { - return getErrorObject('InvalidAttr', "Attribute '"+matches[i][2]+"' is without value.", getPositionFromMatch(matches[i])); - } else if (matches[i][3] === undefined && !options.allowBooleanAttributes) { - //independent attribute: ab - return getErrorObject('InvalidAttr', "boolean attribute '"+matches[i][2]+"' is not allowed.", getPositionFromMatch(matches[i])); - } - /* else if(matches[i][6] === undefined){//attribute without value: ab= - return { err: { code:"InvalidAttr",msg:"attribute " + matches[i][2] + " has no value assigned."}}; - } */ - const attrName = matches[i][2]; - if (!validateAttrName(attrName)) { - return getErrorObject('InvalidAttr', "Attribute '"+attrName+"' is an invalid name.", getPositionFromMatch(matches[i])); - } - if (!attrNames.hasOwnProperty(attrName)) { - //check for duplicate attribute. - attrNames[attrName] = 1; - } else { - return getErrorObject('InvalidAttr', "Attribute '"+attrName+"' is repeated.", getPositionFromMatch(matches[i])); - } - } - - return true; -} - -function validateNumberAmpersand(xmlData, i) { - let re = /\d/; - if (xmlData[i] === 'x') { - i++; - re = /[\da-fA-F]/; - } - for (; i < xmlData.length; i++) { - if (xmlData[i] === ';') - return i; - if (!xmlData[i].match(re)) - break; - } - return -1; -} - -function validateAmpersand(xmlData, i) { - // https://www.w3.org/TR/xml/#dt-charref - i++; - if (xmlData[i] === ';') - return -1; - if (xmlData[i] === '#') { - i++; - return validateNumberAmpersand(xmlData, i); - } - let count = 0; - for (; i < xmlData.length; i++, count++) { - if (xmlData[i].match(/\w/) && count < 20) - continue; - if (xmlData[i] === ';') - break; - return -1; - } - return i; -} - -function getErrorObject(code, message, lineNumber) { - return { - err: { - code: code, - msg: message, - line: lineNumber.line || lineNumber, - col: lineNumber.col, - }, - }; -} - -function validateAttrName(attrName) { - return util.isName(attrName); -} - -// const startsWithXML = /^xml/i; - -function validateTagName(tagname) { - return util.isName(tagname) /* && !tagname.match(startsWithXML) */; -} - -//this function returns the line number for the character at the given index -function getLineNumberForPosition(xmlData, index) { - const lines = xmlData.substring(0, index).split(/\r?\n/); - return { - line: lines.length, - - // column number is last line's length + 1, because column numbering starts at 1: - col: lines[lines.length - 1].length + 1 - }; -} - -//this function returns the position of the first character of match within attrStr -function getPositionFromMatch(match) { - return match.startIndex + match[1].length; -} diff --git a/node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js b/node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js deleted file mode 100644 index 6696b9f8..00000000 --- a/node_modules/fast-xml-parser/src/xmlbuilder/json2xml.js +++ /dev/null @@ -1,259 +0,0 @@ -'use strict'; -//parse Empty Node as self closing node -const buildFromOrderedJs = require('./orderedJs2Xml'); - -const defaultOptions = { - attributeNamePrefix: '@_', - attributesGroupName: false, - textNodeName: '#text', - ignoreAttributes: true, - cdataPropName: false, - format: false, - indentBy: ' ', - suppressEmptyNode: false, - suppressUnpairedNode: true, - suppressBooleanAttributes: true, - tagValueProcessor: function(key, a) { - return a; - }, - attributeValueProcessor: function(attrName, a) { - return a; - }, - preserveOrder: false, - commentPropName: false, - unpairedTags: [], - entities: [ - { regex: new RegExp("&", "g"), val: "&" },//it must be on top - { regex: new RegExp(">", "g"), val: ">" }, - { regex: new RegExp("<", "g"), val: "<" }, - { regex: new RegExp("\'", "g"), val: "'" }, - { regex: new RegExp("\"", "g"), val: """ } - ], - processEntities: true, - stopNodes: [], - // transformTagName: false, - // transformAttributeName: false, - oneListGroup: false -}; - -function Builder(options) { - this.options = Object.assign({}, defaultOptions, options); - if (this.options.ignoreAttributes || this.options.attributesGroupName) { - this.isAttribute = function(/*a*/) { - return false; - }; - } else { - this.attrPrefixLen = this.options.attributeNamePrefix.length; - this.isAttribute = isAttribute; - } - - this.processTextOrObjNode = processTextOrObjNode - - if (this.options.format) { - this.indentate = indentate; - this.tagEndChar = '>\n'; - this.newLine = '\n'; - } else { - this.indentate = function() { - return ''; - }; - this.tagEndChar = '>'; - this.newLine = ''; - } -} - -Builder.prototype.build = function(jObj) { - if(this.options.preserveOrder){ - return buildFromOrderedJs(jObj, this.options); - }else { - if(Array.isArray(jObj) && this.options.arrayNodeName && this.options.arrayNodeName.length > 1){ - jObj = { - [this.options.arrayNodeName] : jObj - } - } - return this.j2x(jObj, 0).val; - } -}; - -Builder.prototype.j2x = function(jObj, level) { - let attrStr = ''; - let val = ''; - for (let key in jObj) { - if (typeof jObj[key] === 'undefined') { - // supress undefined node - } else if (jObj[key] === null) { - if(key[0] === "?") val += this.indentate(level) + '<' + key + '?' + this.tagEndChar; - else val += this.indentate(level) + '<' + key + '/' + this.tagEndChar; - // val += this.indentate(level) + '<' + key + '/' + this.tagEndChar; - } else if (jObj[key] instanceof Date) { - val += this.buildTextValNode(jObj[key], key, '', level); - } else if (typeof jObj[key] !== 'object') { - //premitive type - const attr = this.isAttribute(key); - if (attr) { - attrStr += this.buildAttrPairStr(attr, '' + jObj[key]); - }else { - //tag value - if (key === this.options.textNodeName) { - let newval = this.options.tagValueProcessor(key, '' + jObj[key]); - val += this.replaceEntitiesValue(newval); - } else { - val += this.buildTextValNode(jObj[key], key, '', level); - } - } - } else if (Array.isArray(jObj[key])) { - //repeated nodes - const arrLen = jObj[key].length; - let listTagVal = ""; - for (let j = 0; j < arrLen; j++) { - const item = jObj[key][j]; - if (typeof item === 'undefined') { - // supress undefined node - } else if (item === null) { - if(key[0] === "?") val += this.indentate(level) + '<' + key + '?' + this.tagEndChar; - else val += this.indentate(level) + '<' + key + '/' + this.tagEndChar; - // val += this.indentate(level) + '<' + key + '/' + this.tagEndChar; - } else if (typeof item === 'object') { - if(this.options.oneListGroup ){ - listTagVal += this.j2x(item, level + 1).val; - }else{ - listTagVal += this.processTextOrObjNode(item, key, level) - } - } else { - listTagVal += this.buildTextValNode(item, key, '', level); - } - } - if(this.options.oneListGroup){ - listTagVal = this.buildObjectNode(listTagVal, key, '', level); - } - val += listTagVal; - } else { - //nested node - if (this.options.attributesGroupName && key === this.options.attributesGroupName) { - const Ks = Object.keys(jObj[key]); - const L = Ks.length; - for (let j = 0; j < L; j++) { - attrStr += this.buildAttrPairStr(Ks[j], '' + jObj[key][Ks[j]]); - } - } else { - val += this.processTextOrObjNode(jObj[key], key, level) - } - } - } - return {attrStr: attrStr, val: val}; -}; - -Builder.prototype.buildAttrPairStr = function(attrName, val){ - val = this.options.attributeValueProcessor(attrName, '' + val); - val = this.replaceEntitiesValue(val); - if (this.options.suppressBooleanAttributes && val === "true") { - return ' ' + attrName; - } else return ' ' + attrName + '="' + val + '"'; -} - -function processTextOrObjNode (object, key, level) { - const result = this.j2x(object, level + 1); - if (object[this.options.textNodeName] !== undefined && Object.keys(object).length === 1) { - return this.buildTextValNode(object[this.options.textNodeName], key, result.attrStr, level); - } else { - return this.buildObjectNode(result.val, key, result.attrStr, level); - } -} - -Builder.prototype.buildObjectNode = function(val, key, attrStr, level) { - if(val === ""){ - if(key[0] === "?") return this.indentate(level) + '<' + key + attrStr+ '?' + this.tagEndChar; - else { - return this.indentate(level) + '<' + key + attrStr + this.closeTag(key) + this.tagEndChar; - } - }else{ - - let tagEndExp = '' + val + tagEndExp ); - } else if (this.options.commentPropName !== false && key === this.options.commentPropName && piClosingChar.length === 0) { - return this.indentate(level) + `` + this.newLine; - }else { - return ( - this.indentate(level) + '<' + key + attrStr + piClosingChar + this.tagEndChar + - val + - this.indentate(level) + tagEndExp ); - } - } -} - -Builder.prototype.closeTag = function(key){ - let closeTag = ""; - if(this.options.unpairedTags.indexOf(key) !== -1){ //unpaired - if(!this.options.suppressUnpairedNode) closeTag = "/" - }else if(this.options.suppressEmptyNode){ //empty - closeTag = "/"; - }else{ - closeTag = `>` + this.newLine; - }else if (this.options.commentPropName !== false && key === this.options.commentPropName) { - return this.indentate(level) + `` + this.newLine; - }else if(key[0] === "?") {//PI tag - return this.indentate(level) + '<' + key + attrStr+ '?' + this.tagEndChar; - }else{ - let textValue = this.options.tagValueProcessor(key, val); - textValue = this.replaceEntitiesValue(textValue); - - if( textValue === ''){ - return this.indentate(level) + '<' + key + attrStr + this.closeTag(key) + this.tagEndChar; - }else{ - return this.indentate(level) + '<' + key + attrStr + '>' + - textValue + - ' 0 && this.options.processEntities){ - for (let i=0; i 0) { - indentation = EOL; - } - return arrToStr(jArray, options, "", indentation); -} - -function arrToStr(arr, options, jPath, indentation) { - let xmlStr = ""; - let isPreviousElementTag = false; - - for (let i = 0; i < arr.length; i++) { - const tagObj = arr[i]; - const tagName = propName(tagObj); - let newJPath = ""; - if (jPath.length === 0) newJPath = tagName - else newJPath = `${jPath}.${tagName}`; - - if (tagName === options.textNodeName) { - let tagText = tagObj[tagName]; - if (!isStopNode(newJPath, options)) { - tagText = options.tagValueProcessor(tagName, tagText); - tagText = replaceEntitiesValue(tagText, options); - } - if (isPreviousElementTag) { - xmlStr += indentation; - } - xmlStr += tagText; - isPreviousElementTag = false; - continue; - } else if (tagName === options.cdataPropName) { - if (isPreviousElementTag) { - xmlStr += indentation; - } - xmlStr += ``; - isPreviousElementTag = false; - continue; - } else if (tagName === options.commentPropName) { - xmlStr += indentation + ``; - isPreviousElementTag = true; - continue; - } else if (tagName[0] === "?") { - const attStr = attr_to_str(tagObj[":@"], options); - const tempInd = tagName === "?xml" ? "" : indentation; - let piTextNodeName = tagObj[tagName][0][options.textNodeName]; - piTextNodeName = piTextNodeName.length !== 0 ? " " + piTextNodeName : ""; //remove extra spacing - xmlStr += tempInd + `<${tagName}${piTextNodeName}${attStr}?>`; - isPreviousElementTag = true; - continue; - } - let newIdentation = indentation; - if (newIdentation !== "") { - newIdentation += options.indentBy; - } - const attStr = attr_to_str(tagObj[":@"], options); - const tagStart = indentation + `<${tagName}${attStr}`; - const tagValue = arrToStr(tagObj[tagName], options, newJPath, newIdentation); - if (options.unpairedTags.indexOf(tagName) !== -1) { - if (options.suppressUnpairedNode) xmlStr += tagStart + ">"; - else xmlStr += tagStart + "/>"; - } else if ((!tagValue || tagValue.length === 0) && options.suppressEmptyNode) { - xmlStr += tagStart + "/>"; - } else if (tagValue && tagValue.endsWith(">")) { - xmlStr += tagStart + `>${tagValue}${indentation}`; - } else { - xmlStr += tagStart + ">"; - if (tagValue && indentation !== "" && (tagValue.includes("/>") || tagValue.includes("`; - } - isPreviousElementTag = true; - } - - return xmlStr; -} - -function propName(obj) { - const keys = Object.keys(obj); - for (let i = 0; i < keys.length; i++) { - const key = keys[i]; - if (key !== ":@") return key; - } -} - -function attr_to_str(attrMap, options) { - let attrStr = ""; - if (attrMap && !options.ignoreAttributes) { - for (let attr in attrMap) { - let attrVal = options.attributeValueProcessor(attr, attrMap[attr]); - attrVal = replaceEntitiesValue(attrVal, options); - if (attrVal === true && options.suppressBooleanAttributes) { - attrStr += ` ${attr.substr(options.attributeNamePrefix.length)}`; - } else { - attrStr += ` ${attr.substr(options.attributeNamePrefix.length)}="${attrVal}"`; - } - } - } - return attrStr; -} - -function isStopNode(jPath, options) { - jPath = jPath.substr(0, jPath.length - options.textNodeName.length - 1); - let tagName = jPath.substr(jPath.lastIndexOf(".") + 1); - for (let index in options.stopNodes) { - if (options.stopNodes[index] === jPath || options.stopNodes[index] === "*." + tagName) return true; - } - return false; -} - -function replaceEntitiesValue(textValue, options) { - if (textValue && textValue.length > 0 && options.processEntities) { - for (let i = 0; i < options.entities.length; i++) { - const entity = options.entities[i]; - textValue = textValue.replace(entity.regex, entity.val); - } - } - return textValue; -} -module.exports = toXml; diff --git a/node_modules/fast-xml-parser/src/xmlbuilder/prettifyJs2Xml.js b/node_modules/fast-xml-parser/src/xmlbuilder/prettifyJs2Xml.js deleted file mode 100644 index e69de29b..00000000 diff --git a/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js b/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js deleted file mode 100644 index bcf9dee4..00000000 --- a/node_modules/fast-xml-parser/src/xmlparser/DocTypeReader.js +++ /dev/null @@ -1,152 +0,0 @@ -const util = require('../util'); - -//TODO: handle comments -function readDocType(xmlData, i){ - - const entities = {}; - if( xmlData[i + 3] === 'O' && - xmlData[i + 4] === 'C' && - xmlData[i + 5] === 'T' && - xmlData[i + 6] === 'Y' && - xmlData[i + 7] === 'P' && - xmlData[i + 8] === 'E') - { - i = i+9; - let angleBracketsCount = 1; - let hasBody = false, comment = false; - let exp = ""; - for(;i') { //Read tag content - if(comment){ - if( xmlData[i - 1] === "-" && xmlData[i - 2] === "-"){ - comment = false; - angleBracketsCount--; - } - }else{ - angleBracketsCount--; - } - if (angleBracketsCount === 0) { - break; - } - }else if( xmlData[i] === '['){ - hasBody = true; - }else{ - exp += xmlData[i]; - } - } - if(angleBracketsCount !== 0){ - throw new Error(`Unclosed DOCTYPE`); - } - }else{ - throw new Error(`Invalid Tag instead of DOCTYPE`); - } - return {entities, i}; -} - -function readEntityExp(xmlData,i){ - //External entities are not supported - // - - //Parameter entities are not supported - // - - //Internal entities are supported - // - - //read EntityName - let entityName = ""; - for (; i < xmlData.length && (xmlData[i] !== "'" && xmlData[i] !== '"' ); i++) { - // if(xmlData[i] === " ") continue; - // else - entityName += xmlData[i]; - } - entityName = entityName.trim(); - if(entityName.indexOf(" ") !== -1) throw new Error("External entites are not supported"); - - //read Entity Value - const startChar = xmlData[i++]; - let val = "" - for (; i < xmlData.length && xmlData[i] !== startChar ; i++) { - val += xmlData[i]; - } - return [entityName, val, i]; -} - -function isComment(xmlData, i){ - if(xmlData[i+1] === '!' && - xmlData[i+2] === '-' && - xmlData[i+3] === '-') return true - return false -} -function isEntity(xmlData, i){ - if(xmlData[i+1] === '!' && - xmlData[i+2] === 'E' && - xmlData[i+3] === 'N' && - xmlData[i+4] === 'T' && - xmlData[i+5] === 'I' && - xmlData[i+6] === 'T' && - xmlData[i+7] === 'Y') return true - return false -} -function isElement(xmlData, i){ - if(xmlData[i+1] === '!' && - xmlData[i+2] === 'E' && - xmlData[i+3] === 'L' && - xmlData[i+4] === 'E' && - xmlData[i+5] === 'M' && - xmlData[i+6] === 'E' && - xmlData[i+7] === 'N' && - xmlData[i+8] === 'T') return true - return false -} - -function isAttlist(xmlData, i){ - if(xmlData[i+1] === '!' && - xmlData[i+2] === 'A' && - xmlData[i+3] === 'T' && - xmlData[i+4] === 'T' && - xmlData[i+5] === 'L' && - xmlData[i+6] === 'I' && - xmlData[i+7] === 'S' && - xmlData[i+8] === 'T') return true - return false -} -function isNotation(xmlData, i){ - if(xmlData[i+1] === '!' && - xmlData[i+2] === 'N' && - xmlData[i+3] === 'O' && - xmlData[i+4] === 'T' && - xmlData[i+5] === 'A' && - xmlData[i+6] === 'T' && - xmlData[i+7] === 'I' && - xmlData[i+8] === 'O' && - xmlData[i+9] === 'N') return true - return false -} - -function validateEntityName(name){ - if (util.isName(name)) - return name; - else - throw new Error(`Invalid entity name ${name}`); -} - -module.exports = readDocType; diff --git a/node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js b/node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js deleted file mode 100644 index bca37769..00000000 --- a/node_modules/fast-xml-parser/src/xmlparser/OptionsBuilder.js +++ /dev/null @@ -1,48 +0,0 @@ - -const defaultOptions = { - preserveOrder: false, - attributeNamePrefix: '@_', - attributesGroupName: false, - textNodeName: '#text', - ignoreAttributes: true, - removeNSPrefix: false, // remove NS from tag name or attribute name if true - allowBooleanAttributes: false, //a tag can have attributes without any value - //ignoreRootElement : false, - parseTagValue: true, - parseAttributeValue: false, - trimValues: true, //Trim string values of tag and attributes - cdataPropName: false, - numberParseOptions: { - hex: true, - leadingZeros: true, - eNotation: true - }, - tagValueProcessor: function(tagName, val) { - return val; - }, - attributeValueProcessor: function(attrName, val) { - return val; - }, - stopNodes: [], //nested tags will not be parsed even for errors - alwaysCreateTextNode: false, - isArray: () => false, - commentPropName: false, - unpairedTags: [], - processEntities: true, - htmlEntities: false, - ignoreDeclaration: false, - ignorePiTags: false, - transformTagName: false, - transformAttributeName: false, - updateTag: function(tagName, jPath, attrs){ - return tagName - }, - // skipEmptyListItem: false -}; - -const buildOptions = function(options) { - return Object.assign({}, defaultOptions, options); -}; - -exports.buildOptions = buildOptions; -exports.defaultOptions = defaultOptions; \ No newline at end of file diff --git a/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js b/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js deleted file mode 100644 index db11a8c0..00000000 --- a/node_modules/fast-xml-parser/src/xmlparser/OrderedObjParser.js +++ /dev/null @@ -1,588 +0,0 @@ -'use strict'; -///@ts-check - -const util = require('../util'); -const xmlNode = require('./xmlNode'); -const readDocType = require("./DocTypeReader"); -const toNumber = require("strnum"); - -const regx = - '<((!\\[CDATA\\[([\\s\\S]*?)(]]>))|((NAME:)?(NAME))([^>]*)>|((\\/)(NAME)\\s*>))([^<]*)' - .replace(/NAME/g, util.nameRegexp); - -//const tagsRegx = new RegExp("<(\\/?[\\w:\\-\._]+)([^>]*)>(\\s*"+cdataRegx+")*([^<]+)?","g"); -//const tagsRegx = new RegExp("<(\\/?)((\\w*:)?([\\w:\\-\._]+))([^>]*)>([^<]*)("+cdataRegx+"([^<]*))*([^<]+)?","g"); - -class OrderedObjParser{ - constructor(options){ - this.options = options; - this.currentNode = null; - this.tagsNodeStack = []; - this.docTypeEntities = {}; - this.lastEntities = { - "apos" : { regex: /&(apos|#39|#x27);/g, val : "'"}, - "gt" : { regex: /&(gt|#62|#x3E);/g, val : ">"}, - "lt" : { regex: /&(lt|#60|#x3C);/g, val : "<"}, - "quot" : { regex: /&(quot|#34|#x22);/g, val : "\""}, - }; - this.ampEntity = { regex: /&(amp|#38|#x26);/g, val : "&"}; - this.htmlEntities = { - "space": { regex: /&(nbsp|#160);/g, val: " " }, - // "lt" : { regex: /&(lt|#60);/g, val: "<" }, - // "gt" : { regex: /&(gt|#62);/g, val: ">" }, - // "amp" : { regex: /&(amp|#38);/g, val: "&" }, - // "quot" : { regex: /&(quot|#34);/g, val: "\"" }, - // "apos" : { regex: /&(apos|#39);/g, val: "'" }, - "cent" : { regex: /&(cent|#162);/g, val: "¢" }, - "pound" : { regex: /&(pound|#163);/g, val: "£" }, - "yen" : { regex: /&(yen|#165);/g, val: "¥" }, - "euro" : { regex: /&(euro|#8364);/g, val: "€" }, - "copyright" : { regex: /&(copy|#169);/g, val: "©" }, - "reg" : { regex: /&(reg|#174);/g, val: "®" }, - "inr" : { regex: /&(inr|#8377);/g, val: "₹" }, - }; - this.addExternalEntities = addExternalEntities; - this.parseXml = parseXml; - this.parseTextData = parseTextData; - this.resolveNameSpace = resolveNameSpace; - this.buildAttributesMap = buildAttributesMap; - this.isItStopNode = isItStopNode; - this.replaceEntitiesValue = replaceEntitiesValue; - this.readStopNodeData = readStopNodeData; - this.saveTextToParentTag = saveTextToParentTag; - this.addChild = addChild; - } - -} - -function addExternalEntities(externalEntities){ - const entKeys = Object.keys(externalEntities); - for (let i = 0; i < entKeys.length; i++) { - const ent = entKeys[i]; - this.lastEntities[ent] = { - regex: new RegExp("&"+ent+";","g"), - val : externalEntities[ent] - } - } -} - -/** - * @param {string} val - * @param {string} tagName - * @param {string} jPath - * @param {boolean} dontTrim - * @param {boolean} hasAttributes - * @param {boolean} isLeafNode - * @param {boolean} escapeEntities - */ -function parseTextData(val, tagName, jPath, dontTrim, hasAttributes, isLeafNode, escapeEntities) { - if (val !== undefined) { - if (this.options.trimValues && !dontTrim) { - val = val.trim(); - } - if(val.length > 0){ - if(!escapeEntities) val = this.replaceEntitiesValue(val); - - const newval = this.options.tagValueProcessor(tagName, val, jPath, hasAttributes, isLeafNode); - if(newval === null || newval === undefined){ - //don't parse - return val; - }else if(typeof newval !== typeof val || newval !== val){ - //overwrite - return newval; - }else if(this.options.trimValues){ - return parseValue(val, this.options.parseTagValue, this.options.numberParseOptions); - }else{ - const trimmedVal = val.trim(); - if(trimmedVal === val){ - return parseValue(val, this.options.parseTagValue, this.options.numberParseOptions); - }else{ - return val; - } - } - } - } -} - -function resolveNameSpace(tagname) { - if (this.options.removeNSPrefix) { - const tags = tagname.split(':'); - const prefix = tagname.charAt(0) === '/' ? '/' : ''; - if (tags[0] === 'xmlns') { - return ''; - } - if (tags.length === 2) { - tagname = prefix + tags[1]; - } - } - return tagname; -} - -//TODO: change regex to capture NS -//const attrsRegx = new RegExp("([\\w\\-\\.\\:]+)\\s*=\\s*(['\"])((.|\n)*?)\\2","gm"); -const attrsRegx = new RegExp('([^\\s=]+)\\s*(=\\s*([\'"])([\\s\\S]*?)\\3)?', 'gm'); - -function buildAttributesMap(attrStr, jPath, tagName) { - if (!this.options.ignoreAttributes && typeof attrStr === 'string') { - // attrStr = attrStr.replace(/\r?\n/g, ' '); - //attrStr = attrStr || attrStr.trim(); - - const matches = util.getAllMatches(attrStr, attrsRegx); - const len = matches.length; //don't make it inline - const attrs = {}; - for (let i = 0; i < len; i++) { - const attrName = this.resolveNameSpace(matches[i][1]); - let oldVal = matches[i][4]; - let aName = this.options.attributeNamePrefix + attrName; - if (attrName.length) { - if (this.options.transformAttributeName) { - aName = this.options.transformAttributeName(aName); - } - if(aName === "__proto__") aName = "#__proto__"; - if (oldVal !== undefined) { - if (this.options.trimValues) { - oldVal = oldVal.trim(); - } - oldVal = this.replaceEntitiesValue(oldVal); - const newVal = this.options.attributeValueProcessor(attrName, oldVal, jPath); - if(newVal === null || newVal === undefined){ - //don't parse - attrs[aName] = oldVal; - }else if(typeof newVal !== typeof oldVal || newVal !== oldVal){ - //overwrite - attrs[aName] = newVal; - }else{ - //parse - attrs[aName] = parseValue( - oldVal, - this.options.parseAttributeValue, - this.options.numberParseOptions - ); - } - } else if (this.options.allowBooleanAttributes) { - attrs[aName] = true; - } - } - } - if (!Object.keys(attrs).length) { - return; - } - if (this.options.attributesGroupName) { - const attrCollection = {}; - attrCollection[this.options.attributesGroupName] = attrs; - return attrCollection; - } - return attrs - } -} - -const parseXml = function(xmlData) { - xmlData = xmlData.replace(/\r\n?/g, "\n"); //TODO: remove this line - const xmlObj = new xmlNode('!xml'); - let currentNode = xmlObj; - let textData = ""; - let jPath = ""; - for(let i=0; i< xmlData.length; i++){//for each char in XML data - const ch = xmlData[i]; - if(ch === '<'){ - // const nextIndex = i+1; - // const _2ndChar = xmlData[nextIndex]; - if( xmlData[i+1] === '/') {//Closing Tag - const closeIndex = findClosingIndex(xmlData, ">", i, "Closing Tag is not closed.") - let tagName = xmlData.substring(i+2,closeIndex).trim(); - - if(this.options.removeNSPrefix){ - const colonIndex = tagName.indexOf(":"); - if(colonIndex !== -1){ - tagName = tagName.substr(colonIndex+1); - } - } - - if(this.options.transformTagName) { - tagName = this.options.transformTagName(tagName); - } - - if(currentNode){ - textData = this.saveTextToParentTag(textData, currentNode, jPath); - } - - //check if last tag of nested tag was unpaired tag - const lastTagName = jPath.substring(jPath.lastIndexOf(".")+1); - if(tagName && this.options.unpairedTags.indexOf(tagName) !== -1 ){ - throw new Error(`Unpaired tag can not be used as closing tag: `); - } - let propIndex = 0 - if(lastTagName && this.options.unpairedTags.indexOf(lastTagName) !== -1 ){ - propIndex = jPath.lastIndexOf('.', jPath.lastIndexOf('.')-1) - this.tagsNodeStack.pop(); - }else{ - propIndex = jPath.lastIndexOf("."); - } - jPath = jPath.substring(0, propIndex); - - currentNode = this.tagsNodeStack.pop();//avoid recursion, set the parent tag scope - textData = ""; - i = closeIndex; - } else if( xmlData[i+1] === '?') { - - let tagData = readTagExp(xmlData,i, false, "?>"); - if(!tagData) throw new Error("Pi Tag is not closed."); - - textData = this.saveTextToParentTag(textData, currentNode, jPath); - if( (this.options.ignoreDeclaration && tagData.tagName === "?xml") || this.options.ignorePiTags){ - - }else{ - - const childNode = new xmlNode(tagData.tagName); - childNode.add(this.options.textNodeName, ""); - - if(tagData.tagName !== tagData.tagExp && tagData.attrExpPresent){ - childNode[":@"] = this.buildAttributesMap(tagData.tagExp, jPath, tagData.tagName); - } - this.addChild(currentNode, childNode, jPath) - - } - - - i = tagData.closeIndex + 1; - } else if(xmlData.substr(i + 1, 3) === '!--') { - const endIndex = findClosingIndex(xmlData, "-->", i+4, "Comment is not closed.") - if(this.options.commentPropName){ - const comment = xmlData.substring(i + 4, endIndex - 2); - - textData = this.saveTextToParentTag(textData, currentNode, jPath); - - currentNode.add(this.options.commentPropName, [ { [this.options.textNodeName] : comment } ]); - } - i = endIndex; - } else if( xmlData.substr(i + 1, 2) === '!D') { - const result = readDocType(xmlData, i); - this.docTypeEntities = result.entities; - i = result.i; - }else if(xmlData.substr(i + 1, 2) === '![') { - const closeIndex = findClosingIndex(xmlData, "]]>", i, "CDATA is not closed.") - 2; - const tagExp = xmlData.substring(i + 9,closeIndex); - - textData = this.saveTextToParentTag(textData, currentNode, jPath); - - //cdata should be set even if it is 0 length string - if(this.options.cdataPropName){ - // let val = this.parseTextData(tagExp, this.options.cdataPropName, jPath + "." + this.options.cdataPropName, true, false, true); - // if(!val) val = ""; - currentNode.add(this.options.cdataPropName, [ { [this.options.textNodeName] : tagExp } ]); - }else{ - let val = this.parseTextData(tagExp, currentNode.tagname, jPath, true, false, true); - if(val == undefined) val = ""; - currentNode.add(this.options.textNodeName, val); - } - - i = closeIndex + 2; - }else {//Opening tag - let result = readTagExp(xmlData,i, this.options.removeNSPrefix); - let tagName= result.tagName; - let tagExp = result.tagExp; - let attrExpPresent = result.attrExpPresent; - let closeIndex = result.closeIndex; - - if (this.options.transformTagName) { - tagName = this.options.transformTagName(tagName); - } - - //save text as child node - if (currentNode && textData) { - if(currentNode.tagname !== '!xml'){ - //when nested tag is found - textData = this.saveTextToParentTag(textData, currentNode, jPath, false); - } - } - - //check if last tag was unpaired tag - const lastTag = currentNode; - if(lastTag && this.options.unpairedTags.indexOf(lastTag.tagname) !== -1 ){ - currentNode = this.tagsNodeStack.pop(); - jPath = jPath.substring(0, jPath.lastIndexOf(".")); - } - if(tagName !== xmlObj.tagname){ - jPath += jPath ? "." + tagName : tagName; - } - if (this.isItStopNode(this.options.stopNodes, jPath, tagName)) { //TODO: namespace - let tagContent = ""; - //self-closing tag - if(tagExp.length > 0 && tagExp.lastIndexOf("/") === tagExp.length - 1){ - i = result.closeIndex; - } - //unpaired tag - else if(this.options.unpairedTags.indexOf(tagName) !== -1){ - i = result.closeIndex; - } - //normal tag - else{ - //read until closing tag is found - const result = this.readStopNodeData(xmlData, tagName, closeIndex + 1); - if(!result) throw new Error(`Unexpected end of ${tagName}`); - i = result.i; - tagContent = result.tagContent; - } - - const childNode = new xmlNode(tagName); - if(tagName !== tagExp && attrExpPresent){ - childNode[":@"] = this.buildAttributesMap(tagExp, jPath, tagName); - } - if(tagContent) { - tagContent = this.parseTextData(tagContent, tagName, jPath, true, attrExpPresent, true, true); - } - - jPath = jPath.substr(0, jPath.lastIndexOf(".")); - childNode.add(this.options.textNodeName, tagContent); - - this.addChild(currentNode, childNode, jPath) - }else{ - //selfClosing tag - if(tagExp.length > 0 && tagExp.lastIndexOf("/") === tagExp.length - 1){ - if(tagName[tagName.length - 1] === "/"){ //remove trailing '/' - tagName = tagName.substr(0, tagName.length - 1); - tagExp = tagName; - }else{ - tagExp = tagExp.substr(0, tagExp.length - 1); - } - - if(this.options.transformTagName) { - tagName = this.options.transformTagName(tagName); - } - - const childNode = new xmlNode(tagName); - if(tagName !== tagExp && attrExpPresent){ - childNode[":@"] = this.buildAttributesMap(tagExp, jPath, tagName); - } - this.addChild(currentNode, childNode, jPath) - jPath = jPath.substr(0, jPath.lastIndexOf(".")); - } - //opening tag - else{ - const childNode = new xmlNode( tagName); - this.tagsNodeStack.push(currentNode); - - if(tagName !== tagExp && attrExpPresent){ - childNode[":@"] = this.buildAttributesMap(tagExp, jPath, tagName); - } - this.addChild(currentNode, childNode, jPath) - currentNode = childNode; - } - textData = ""; - i = closeIndex; - } - } - }else{ - textData += xmlData[i]; - } - } - return xmlObj.child; -} - -function addChild(currentNode, childNode, jPath){ - const result = this.options.updateTag(childNode.tagname, jPath, childNode[":@"]) - if(result === false){ - }else if(typeof result === "string"){ - childNode.tagname = result - currentNode.addChild(childNode); - }else{ - currentNode.addChild(childNode); - } -} - -const replaceEntitiesValue = function(val){ - - if(this.options.processEntities){ - for(let entityName in this.docTypeEntities){ - const entity = this.docTypeEntities[entityName]; - val = val.replace( entity.regx, entity.val); - } - for(let entityName in this.lastEntities){ - const entity = this.lastEntities[entityName]; - val = val.replace( entity.regex, entity.val); - } - if(this.options.htmlEntities){ - for(let entityName in this.htmlEntities){ - const entity = this.htmlEntities[entityName]; - val = val.replace( entity.regex, entity.val); - } - } - val = val.replace( this.ampEntity.regex, this.ampEntity.val); - } - return val; -} -function saveTextToParentTag(textData, currentNode, jPath, isLeafNode) { - if (textData) { //store previously collected data as textNode - if(isLeafNode === undefined) isLeafNode = Object.keys(currentNode.child).length === 0 - - textData = this.parseTextData(textData, - currentNode.tagname, - jPath, - false, - currentNode[":@"] ? Object.keys(currentNode[":@"]).length !== 0 : false, - isLeafNode); - - if (textData !== undefined && textData !== "") - currentNode.add(this.options.textNodeName, textData); - textData = ""; - } - return textData; -} - -//TODO: use jPath to simplify the logic -/** - * - * @param {string[]} stopNodes - * @param {string} jPath - * @param {string} currentTagName - */ -function isItStopNode(stopNodes, jPath, currentTagName){ - const allNodesExp = "*." + currentTagName; - for (const stopNodePath in stopNodes) { - const stopNodeExp = stopNodes[stopNodePath]; - if( allNodesExp === stopNodeExp || jPath === stopNodeExp ) return true; - } - return false; -} - -/** - * Returns the tag Expression and where it is ending handling single-double quotes situation - * @param {string} xmlData - * @param {number} i starting index - * @returns - */ -function tagExpWithClosingIndex(xmlData, i, closingChar = ">"){ - let attrBoundary; - let tagExp = ""; - for (let index = i; index < xmlData.length; index++) { - let ch = xmlData[index]; - if (attrBoundary) { - if (ch === attrBoundary) attrBoundary = "";//reset - } else if (ch === '"' || ch === "'") { - attrBoundary = ch; - } else if (ch === closingChar[0]) { - if(closingChar[1]){ - if(xmlData[index + 1] === closingChar[1]){ - return { - data: tagExp, - index: index - } - } - }else{ - return { - data: tagExp, - index: index - } - } - } else if (ch === '\t') { - ch = " " - } - tagExp += ch; - } -} - -function findClosingIndex(xmlData, str, i, errMsg){ - const closingIndex = xmlData.indexOf(str, i); - if(closingIndex === -1){ - throw new Error(errMsg) - }else{ - return closingIndex + str.length - 1; - } -} - -function readTagExp(xmlData,i, removeNSPrefix, closingChar = ">"){ - const result = tagExpWithClosingIndex(xmlData, i+1, closingChar); - if(!result) return; - let tagExp = result.data; - const closeIndex = result.index; - const separatorIndex = tagExp.search(/\s/); - let tagName = tagExp; - let attrExpPresent = true; - if(separatorIndex !== -1){//separate tag name and attributes expression - tagName = tagExp.substr(0, separatorIndex).replace(/\s\s*$/, ''); - tagExp = tagExp.substr(separatorIndex + 1); - } - - if(removeNSPrefix){ - const colonIndex = tagName.indexOf(":"); - if(colonIndex !== -1){ - tagName = tagName.substr(colonIndex+1); - attrExpPresent = tagName !== result.data.substr(colonIndex + 1); - } - } - - return { - tagName: tagName, - tagExp: tagExp, - closeIndex: closeIndex, - attrExpPresent: attrExpPresent, - } -} -/** - * find paired tag for a stop node - * @param {string} xmlData - * @param {string} tagName - * @param {number} i - */ -function readStopNodeData(xmlData, tagName, i){ - const startIndex = i; - // Starting at 1 since we already have an open tag - let openTagCount = 1; - - for (; i < xmlData.length; i++) { - if( xmlData[i] === "<"){ - if (xmlData[i+1] === "/") {//close tag - const closeIndex = findClosingIndex(xmlData, ">", i, `${tagName} is not closed`); - let closeTagName = xmlData.substring(i+2,closeIndex).trim(); - if(closeTagName === tagName){ - openTagCount--; - if (openTagCount === 0) { - return { - tagContent: xmlData.substring(startIndex, i), - i : closeIndex - } - } - } - i=closeIndex; - } else if(xmlData[i+1] === '?') { - const closeIndex = findClosingIndex(xmlData, "?>", i+1, "StopNode is not closed.") - i=closeIndex; - } else if(xmlData.substr(i + 1, 3) === '!--') { - const closeIndex = findClosingIndex(xmlData, "-->", i+3, "StopNode is not closed.") - i=closeIndex; - } else if(xmlData.substr(i + 1, 2) === '![') { - const closeIndex = findClosingIndex(xmlData, "]]>", i, "StopNode is not closed.") - 2; - i=closeIndex; - } else { - const tagData = readTagExp(xmlData, i, '>') - - if (tagData) { - const openTagName = tagData && tagData.tagName; - if (openTagName === tagName && tagData.tagExp[tagData.tagExp.length-1] !== "/") { - openTagCount++; - } - i=tagData.closeIndex; - } - } - } - }//end for loop -} - -function parseValue(val, shouldParse, options) { - if (shouldParse && typeof val === 'string') { - //console.log(options) - const newval = val.trim(); - if(newval === 'true' ) return true; - else if(newval === 'false' ) return false; - else return toNumber(val, options); - } else { - if (util.isExist(val)) { - return val; - } else { - return ''; - } - } -} - - -module.exports = OrderedObjParser; diff --git a/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js b/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js deleted file mode 100644 index ffaf59b5..00000000 --- a/node_modules/fast-xml-parser/src/xmlparser/XMLParser.js +++ /dev/null @@ -1,58 +0,0 @@ -const { buildOptions} = require("./OptionsBuilder"); -const OrderedObjParser = require("./OrderedObjParser"); -const { prettify} = require("./node2json"); -const validator = require('../validator'); - -class XMLParser{ - - constructor(options){ - this.externalEntities = {}; - this.options = buildOptions(options); - - } - /** - * Parse XML dats to JS object - * @param {string|Buffer} xmlData - * @param {boolean|Object} validationOption - */ - parse(xmlData,validationOption){ - if(typeof xmlData === "string"){ - }else if( xmlData.toString){ - xmlData = xmlData.toString(); - }else{ - throw new Error("XML data is accepted in String or Bytes[] form.") - } - if( validationOption){ - if(validationOption === true) validationOption = {}; //validate with default options - - const result = validator.validate(xmlData, validationOption); - if (result !== true) { - throw Error( `${result.err.msg}:${result.err.line}:${result.err.col}` ) - } - } - const orderedObjParser = new OrderedObjParser(this.options); - orderedObjParser.addExternalEntities(this.externalEntities); - const orderedResult = orderedObjParser.parseXml(xmlData); - if(this.options.preserveOrder || orderedResult === undefined) return orderedResult; - else return prettify(orderedResult, this.options); - } - - /** - * Add Entity which is not by default supported by this library - * @param {string} key - * @param {string} value - */ - addEntity(key, value){ - if(value.indexOf("&") !== -1){ - throw new Error("Entity value can't have '&'") - }else if(key.indexOf("&") !== -1 || key.indexOf(";") !== -1){ - throw new Error("An entity must be set without '&' and ';'. Eg. use '#xD' for ' '") - }else if(value === "&"){ - throw new Error("An entity with value '&' is not permitted"); - }else{ - this.externalEntities[key] = value; - } - } -} - -module.exports = XMLParser; \ No newline at end of file diff --git a/node_modules/fast-xml-parser/src/xmlparser/node2json.js b/node_modules/fast-xml-parser/src/xmlparser/node2json.js deleted file mode 100644 index 30455738..00000000 --- a/node_modules/fast-xml-parser/src/xmlparser/node2json.js +++ /dev/null @@ -1,113 +0,0 @@ -'use strict'; - -/** - * - * @param {array} node - * @param {any} options - * @returns - */ -function prettify(node, options){ - return compress( node, options); -} - -/** - * - * @param {array} arr - * @param {object} options - * @param {string} jPath - * @returns object - */ -function compress(arr, options, jPath){ - let text; - const compressedObj = {}; - for (let i = 0; i < arr.length; i++) { - const tagObj = arr[i]; - const property = propName(tagObj); - let newJpath = ""; - if(jPath === undefined) newJpath = property; - else newJpath = jPath + "." + property; - - if(property === options.textNodeName){ - if(text === undefined) text = tagObj[property]; - else text += "" + tagObj[property]; - }else if(property === undefined){ - continue; - }else if(tagObj[property]){ - - let val = compress(tagObj[property], options, newJpath); - const isLeaf = isLeafTag(val, options); - - if(tagObj[":@"]){ - assignAttributes( val, tagObj[":@"], newJpath, options); - }else if(Object.keys(val).length === 1 && val[options.textNodeName] !== undefined && !options.alwaysCreateTextNode){ - val = val[options.textNodeName]; - }else if(Object.keys(val).length === 0){ - if(options.alwaysCreateTextNode) val[options.textNodeName] = ""; - else val = ""; - } - - if(compressedObj[property] !== undefined && compressedObj.hasOwnProperty(property)) { - if(!Array.isArray(compressedObj[property])) { - compressedObj[property] = [ compressedObj[property] ]; - } - compressedObj[property].push(val); - }else{ - //TODO: if a node is not an array, then check if it should be an array - //also determine if it is a leaf node - if (options.isArray(property, newJpath, isLeaf )) { - compressedObj[property] = [val]; - }else{ - compressedObj[property] = val; - } - } - } - - } - // if(text && text.length > 0) compressedObj[options.textNodeName] = text; - if(typeof text === "string"){ - if(text.length > 0) compressedObj[options.textNodeName] = text; - }else if(text !== undefined) compressedObj[options.textNodeName] = text; - return compressedObj; -} - -function propName(obj){ - const keys = Object.keys(obj); - for (let i = 0; i < keys.length; i++) { - const key = keys[i]; - if(key !== ":@") return key; - } -} - -function assignAttributes(obj, attrMap, jpath, options){ - if (attrMap) { - const keys = Object.keys(attrMap); - const len = keys.length; //don't make it inline - for (let i = 0; i < len; i++) { - const atrrName = keys[i]; - if (options.isArray(atrrName, jpath + "." + atrrName, true, true)) { - obj[atrrName] = [ attrMap[atrrName] ]; - } else { - obj[atrrName] = attrMap[atrrName]; - } - } - } -} - -function isLeafTag(obj, options){ - const { textNodeName } = options; - const propCount = Object.keys(obj).length; - - if (propCount === 0) { - return true; - } - - if ( - propCount === 1 && - (obj[textNodeName] || typeof obj[textNodeName] === "boolean" || obj[textNodeName] === 0) - ) { - return true; - } - - return false; -} -exports.prettify = prettify; diff --git a/node_modules/fast-xml-parser/src/xmlparser/xmlNode.js b/node_modules/fast-xml-parser/src/xmlparser/xmlNode.js deleted file mode 100644 index 93195242..00000000 --- a/node_modules/fast-xml-parser/src/xmlparser/xmlNode.js +++ /dev/null @@ -1,25 +0,0 @@ -'use strict'; - -class XmlNode{ - constructor(tagname) { - this.tagname = tagname; - this.child = []; //nested tags, text, cdata, comments in order - this[":@"] = {}; //attributes map - } - add(key,val){ - // this.child.push( {name : key, val: val, isCdata: isCdata }); - if(key === "__proto__") key = "#__proto__"; - this.child.push( {[key]: val }); - } - addChild(node) { - if(node.tagname === "__proto__") node.tagname = "#__proto__"; - if(node[":@"] && Object.keys(node[":@"]).length > 0){ - this.child.push( { [node.tagname]: node.child, [":@"]: node[":@"] }); - }else{ - this.child.push( { [node.tagname]: node.child }); - } - }; -}; - - -module.exports = XmlNode; \ No newline at end of file diff --git a/node_modules/fetch-blob/LICENSE b/node_modules/fetch-blob/LICENSE deleted file mode 100644 index 0d317232..00000000 --- a/node_modules/fetch-blob/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2019 David Frank - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/node_modules/fetch-blob/README.md b/node_modules/fetch-blob/README.md deleted file mode 100644 index fb3e1985..00000000 --- a/node_modules/fetch-blob/README.md +++ /dev/null @@ -1,106 +0,0 @@ -# fetch-blob - -[![npm version][npm-image]][npm-url] -[![build status][ci-image]][ci-url] -[![coverage status][codecov-image]][codecov-url] -[![install size][install-size-image]][install-size-url] - -A Blob implementation in Node.js, originally from [node-fetch](https://github.com/node-fetch/node-fetch). - -## Installation - -```sh -npm install fetch-blob -``` - -
- Upgrading from 2x to 3x - - Updating from 2 to 3 should be a breeze since there is not many changes to the blob specification. - The major cause of a major release is coding standards. - - internal WeakMaps was replaced with private fields - - internal Buffer.from was replaced with TextEncoder/Decoder - - internal buffers was replaced with Uint8Arrays - - CommonJS was replaced with ESM - - The node stream returned by calling `blob.stream()` was replaced with whatwg streams - - (Read "Differences from other blobs" for more info.) - -
- -
- Differences from other Blobs - - - Unlike NodeJS `buffer.Blob` (Added in: v15.7.0) and browser native Blob this polyfilled version can't be sent via PostMessage - - This blob version is more arbitrary, it can be constructed with blob parts that isn't a instance of itself - it has to look and behave as a blob to be accepted as a blob part. - - The benefit of this is that you can create other types of blobs that don't contain any internal data that has to be read in other ways, such as the `BlobDataItem` created in `from.js` that wraps a file path into a blob-like item and read lazily (nodejs plans to [implement this][fs-blobs] as well) - - The `blob.stream()` is the most noticeable differences. It returns a WHATWG stream now. to keep it as a node stream you would have to do: - - ```js - import {Readable} from 'stream' - const stream = Readable.from(blob.stream()) - ``` -
- -## Usage - -```js -// Ways to import -// (PS it's dependency free ESM package so regular http-import from CDN works too) -import Blob from 'fetch-blob' -import File from 'fetch-blob/file.js' - -import {Blob} from 'fetch-blob' -import {File} from 'fetch-blob/file.js' - -const {Blob} = await import('fetch-blob') - - -// Ways to read the blob: -const blob = new Blob(['hello, world']) - -await blob.text() -await blob.arrayBuffer() -for await (let chunk of blob.stream()) { ... } -blob.stream().getReader().read() -blob.stream().getReader({mode: 'byob'}).read(view) -``` - -### Blob part backed up by filesystem - -`fetch-blob/from.js` comes packed with tools to convert any filepath into either a Blob or a File -It will not read the content into memory. It will only stat the file for last modified date and file size. - -```js -// The default export is sync and use fs.stat to retrieve size & last modified as a blob -import blobFromSync from 'fetch-blob/from.js' -import {File, Blob, blobFrom, blobFromSync, fileFrom, fileFromSync} from 'fetch-blob/from.js' - -const fsFile = fileFromSync('./2-GiB-file.bin', 'application/octet-stream') -const fsBlob = await blobFrom('./2-GiB-file.mp4') - -// Not a 4 GiB memory snapshot, just holds references -// points to where data is located on the disk -const blob = new Blob([fsFile, fsBlob, 'memory', new Uint8Array(10)]) -console.log(blob.size) // ~4 GiB -``` - -`blobFrom|blobFromSync|fileFrom|fileFromSync(path, [mimetype])` - -### Creating Blobs backed up by other async sources -Our Blob & File class are more generic then any other polyfills in the way that it can accept any blob look-a-like item -An example of this is that our blob implementation can be constructed with parts coming from [BlobDataItem](https://github.com/node-fetch/fetch-blob/blob/8ef89adad40d255a3bbd55cf38b88597c1cd5480/from.js#L32) (aka a filepath) or from [buffer.Blob](https://nodejs.org/api/buffer.html#buffer_new_buffer_blob_sources_options), It dose not have to implement all the methods - just enough that it can be read/understood by our Blob implementation. The minium requirements is that it has `Symbol.toStringTag`, `size`, `slice()` and either a `stream()` or a `arrayBuffer()` method. If you then wrap it in our Blob or File `new Blob([blobDataItem])` then you get all of the other methods that should be implemented in a blob or file - -An example of this could be to create a file or blob like item coming from a remote HTTP request. Or from a DataBase - -See the [MDN documentation](https://developer.mozilla.org/en-US/docs/Web/API/Blob) and [tests](https://github.com/node-fetch/fetch-blob/blob/master/test.js) for more details of how to use the Blob. - -[npm-image]: https://flat.badgen.net/npm/v/fetch-blob -[npm-url]: https://www.npmjs.com/package/fetch-blob -[ci-image]: https://github.com/node-fetch/fetch-blob/workflows/CI/badge.svg -[ci-url]: https://github.com/node-fetch/fetch-blob/actions -[codecov-image]: https://flat.badgen.net/codecov/c/github/node-fetch/fetch-blob/master -[codecov-url]: https://codecov.io/gh/node-fetch/fetch-blob -[install-size-image]: https://flat.badgen.net/packagephobia/install/fetch-blob -[install-size-url]: https://packagephobia.now.sh/result?p=fetch-blob -[fs-blobs]: https://github.com/nodejs/node/issues/37340 diff --git a/node_modules/fetch-blob/file.d.ts b/node_modules/fetch-blob/file.d.ts deleted file mode 100644 index d4b89bcf..00000000 --- a/node_modules/fetch-blob/file.d.ts +++ /dev/null @@ -1,2 +0,0 @@ -/** @type {typeof globalThis.File} */ export const File: typeof globalThis.File; -export default File; diff --git a/node_modules/fetch-blob/file.js b/node_modules/fetch-blob/file.js deleted file mode 100644 index 7b26538f..00000000 --- a/node_modules/fetch-blob/file.js +++ /dev/null @@ -1,49 +0,0 @@ -import Blob from './index.js' - -const _File = class File extends Blob { - #lastModified = 0 - #name = '' - - /** - * @param {*[]} fileBits - * @param {string} fileName - * @param {{lastModified?: number, type?: string}} options - */// @ts-ignore - constructor (fileBits, fileName, options = {}) { - if (arguments.length < 2) { - throw new TypeError(`Failed to construct 'File': 2 arguments required, but only ${arguments.length} present.`) - } - super(fileBits, options) - - if (options === null) options = {} - - // Simulate WebIDL type casting for NaN value in lastModified option. - const lastModified = options.lastModified === undefined ? Date.now() : Number(options.lastModified) - if (!Number.isNaN(lastModified)) { - this.#lastModified = lastModified - } - - this.#name = String(fileName) - } - - get name () { - return this.#name - } - - get lastModified () { - return this.#lastModified - } - - get [Symbol.toStringTag] () { - return 'File' - } - - static [Symbol.hasInstance] (object) { - return !!object && object instanceof Blob && - /^(File)$/.test(object[Symbol.toStringTag]) - } -} - -/** @type {typeof globalThis.File} */// @ts-ignore -export const File = _File -export default File diff --git a/node_modules/fetch-blob/from.d.ts b/node_modules/fetch-blob/from.d.ts deleted file mode 100644 index 530b99bf..00000000 --- a/node_modules/fetch-blob/from.d.ts +++ /dev/null @@ -1,26 +0,0 @@ -export default blobFromSync; -/** - * @param {string} path filepath on the disk - * @param {string} [type] mimetype to use - */ -export function blobFromSync(path: string, type?: string): Blob; -import File from "./file.js"; -import Blob from "./index.js"; -/** - * @param {string} path filepath on the disk - * @param {string} [type] mimetype to use - * @returns {Promise} - */ -export function blobFrom(path: string, type?: string): Promise; -/** - * @param {string} path filepath on the disk - * @param {string} [type] mimetype to use - * @returns {Promise} - */ -export function fileFrom(path: string, type?: string): Promise; -/** - * @param {string} path filepath on the disk - * @param {string} [type] mimetype to use - */ -export function fileFromSync(path: string, type?: string): File; -export { File, Blob }; diff --git a/node_modules/fetch-blob/from.js b/node_modules/fetch-blob/from.js deleted file mode 100644 index 9eaf8bfc..00000000 --- a/node_modules/fetch-blob/from.js +++ /dev/null @@ -1,100 +0,0 @@ -import { statSync, createReadStream, promises as fs } from 'node:fs' -import { basename } from 'node:path' -import DOMException from 'node-domexception' - -import File from './file.js' -import Blob from './index.js' - -const { stat } = fs - -/** - * @param {string} path filepath on the disk - * @param {string} [type] mimetype to use - */ -const blobFromSync = (path, type) => fromBlob(statSync(path), path, type) - -/** - * @param {string} path filepath on the disk - * @param {string} [type] mimetype to use - * @returns {Promise} - */ -const blobFrom = (path, type) => stat(path).then(stat => fromBlob(stat, path, type)) - -/** - * @param {string} path filepath on the disk - * @param {string} [type] mimetype to use - * @returns {Promise} - */ -const fileFrom = (path, type) => stat(path).then(stat => fromFile(stat, path, type)) - -/** - * @param {string} path filepath on the disk - * @param {string} [type] mimetype to use - */ -const fileFromSync = (path, type) => fromFile(statSync(path), path, type) - -// @ts-ignore -const fromBlob = (stat, path, type = '') => new Blob([new BlobDataItem({ - path, - size: stat.size, - lastModified: stat.mtimeMs, - start: 0 -})], { type }) - -// @ts-ignore -const fromFile = (stat, path, type = '') => new File([new BlobDataItem({ - path, - size: stat.size, - lastModified: stat.mtimeMs, - start: 0 -})], basename(path), { type, lastModified: stat.mtimeMs }) - -/** - * This is a blob backed up by a file on the disk - * with minium requirement. Its wrapped around a Blob as a blobPart - * so you have no direct access to this. - * - * @private - */ -class BlobDataItem { - #path - #start - - constructor (options) { - this.#path = options.path - this.#start = options.start - this.size = options.size - this.lastModified = options.lastModified - } - - /** - * Slicing arguments is first validated and formatted - * to not be out of range by Blob.prototype.slice - */ - slice (start, end) { - return new BlobDataItem({ - path: this.#path, - lastModified: this.lastModified, - size: end - start, - start: this.#start + start - }) - } - - async * stream () { - const { mtimeMs } = await stat(this.#path) - if (mtimeMs > this.lastModified) { - throw new DOMException('The requested file could not be read, typically due to permission problems that have occurred after a reference to a file was acquired.', 'NotReadableError') - } - yield * createReadStream(this.#path, { - start: this.#start, - end: this.#start + this.size - 1 - }) - } - - get [Symbol.toStringTag] () { - return 'Blob' - } -} - -export default blobFromSync -export { File, Blob, blobFrom, blobFromSync, fileFrom, fileFromSync } diff --git a/node_modules/fetch-blob/index.d.ts b/node_modules/fetch-blob/index.d.ts deleted file mode 100644 index 7a689577..00000000 --- a/node_modules/fetch-blob/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -/** @type {typeof globalThis.Blob} */ -export const Blob: typeof globalThis.Blob; -export default Blob; diff --git a/node_modules/fetch-blob/index.js b/node_modules/fetch-blob/index.js deleted file mode 100644 index 2542ac26..00000000 --- a/node_modules/fetch-blob/index.js +++ /dev/null @@ -1,250 +0,0 @@ -/*! fetch-blob. MIT License. Jimmy Wärting */ - -// TODO (jimmywarting): in the feature use conditional loading with top level await (requires 14.x) -// Node has recently added whatwg stream into core - -import './streams.cjs' - -// 64 KiB (same size chrome slice theirs blob into Uint8array's) -const POOL_SIZE = 65536 - -/** @param {(Blob | Uint8Array)[]} parts */ -async function * toIterator (parts, clone = true) { - for (const part of parts) { - if ('stream' in part) { - yield * (/** @type {AsyncIterableIterator} */ (part.stream())) - } else if (ArrayBuffer.isView(part)) { - if (clone) { - let position = part.byteOffset - const end = part.byteOffset + part.byteLength - while (position !== end) { - const size = Math.min(end - position, POOL_SIZE) - const chunk = part.buffer.slice(position, position + size) - position += chunk.byteLength - yield new Uint8Array(chunk) - } - } else { - yield part - } - /* c8 ignore next 10 */ - } else { - // For blobs that have arrayBuffer but no stream method (nodes buffer.Blob) - let position = 0, b = (/** @type {Blob} */ (part)) - while (position !== b.size) { - const chunk = b.slice(position, Math.min(b.size, position + POOL_SIZE)) - const buffer = await chunk.arrayBuffer() - position += buffer.byteLength - yield new Uint8Array(buffer) - } - } - } -} - -const _Blob = class Blob { - /** @type {Array.<(Blob|Uint8Array)>} */ - #parts = [] - #type = '' - #size = 0 - #endings = 'transparent' - - /** - * The Blob() constructor returns a new Blob object. The content - * of the blob consists of the concatenation of the values given - * in the parameter array. - * - * @param {*} blobParts - * @param {{ type?: string, endings?: string }} [options] - */ - constructor (blobParts = [], options = {}) { - if (typeof blobParts !== 'object' || blobParts === null) { - throw new TypeError('Failed to construct \'Blob\': The provided value cannot be converted to a sequence.') - } - - if (typeof blobParts[Symbol.iterator] !== 'function') { - throw new TypeError('Failed to construct \'Blob\': The object must have a callable @@iterator property.') - } - - if (typeof options !== 'object' && typeof options !== 'function') { - throw new TypeError('Failed to construct \'Blob\': parameter 2 cannot convert to dictionary.') - } - - if (options === null) options = {} - - const encoder = new TextEncoder() - for (const element of blobParts) { - let part - if (ArrayBuffer.isView(element)) { - part = new Uint8Array(element.buffer.slice(element.byteOffset, element.byteOffset + element.byteLength)) - } else if (element instanceof ArrayBuffer) { - part = new Uint8Array(element.slice(0)) - } else if (element instanceof Blob) { - part = element - } else { - part = encoder.encode(`${element}`) - } - - this.#size += ArrayBuffer.isView(part) ? part.byteLength : part.size - this.#parts.push(part) - } - - this.#endings = `${options.endings === undefined ? 'transparent' : options.endings}` - const type = options.type === undefined ? '' : String(options.type) - this.#type = /^[\x20-\x7E]*$/.test(type) ? type : '' - } - - /** - * The Blob interface's size property returns the - * size of the Blob in bytes. - */ - get size () { - return this.#size - } - - /** - * The type property of a Blob object returns the MIME type of the file. - */ - get type () { - return this.#type - } - - /** - * The text() method in the Blob interface returns a Promise - * that resolves with a string containing the contents of - * the blob, interpreted as UTF-8. - * - * @return {Promise} - */ - async text () { - // More optimized than using this.arrayBuffer() - // that requires twice as much ram - const decoder = new TextDecoder() - let str = '' - for await (const part of toIterator(this.#parts, false)) { - str += decoder.decode(part, { stream: true }) - } - // Remaining - str += decoder.decode() - return str - } - - /** - * The arrayBuffer() method in the Blob interface returns a - * Promise that resolves with the contents of the blob as - * binary data contained in an ArrayBuffer. - * - * @return {Promise} - */ - async arrayBuffer () { - // Easier way... Just a unnecessary overhead - // const view = new Uint8Array(this.size); - // await this.stream().getReader({mode: 'byob'}).read(view); - // return view.buffer; - - const data = new Uint8Array(this.size) - let offset = 0 - for await (const chunk of toIterator(this.#parts, false)) { - data.set(chunk, offset) - offset += chunk.length - } - - return data.buffer - } - - stream () { - const it = toIterator(this.#parts, true) - - return new globalThis.ReadableStream({ - // @ts-ignore - type: 'bytes', - async pull (ctrl) { - const chunk = await it.next() - chunk.done ? ctrl.close() : ctrl.enqueue(chunk.value) - }, - - async cancel () { - await it.return() - } - }) - } - - /** - * The Blob interface's slice() method creates and returns a - * new Blob object which contains data from a subset of the - * blob on which it's called. - * - * @param {number} [start] - * @param {number} [end] - * @param {string} [type] - */ - slice (start = 0, end = this.size, type = '') { - const { size } = this - - let relativeStart = start < 0 ? Math.max(size + start, 0) : Math.min(start, size) - let relativeEnd = end < 0 ? Math.max(size + end, 0) : Math.min(end, size) - - const span = Math.max(relativeEnd - relativeStart, 0) - const parts = this.#parts - const blobParts = [] - let added = 0 - - for (const part of parts) { - // don't add the overflow to new blobParts - if (added >= span) { - break - } - - const size = ArrayBuffer.isView(part) ? part.byteLength : part.size - if (relativeStart && size <= relativeStart) { - // Skip the beginning and change the relative - // start & end position as we skip the unwanted parts - relativeStart -= size - relativeEnd -= size - } else { - let chunk - if (ArrayBuffer.isView(part)) { - chunk = part.subarray(relativeStart, Math.min(size, relativeEnd)) - added += chunk.byteLength - } else { - chunk = part.slice(relativeStart, Math.min(size, relativeEnd)) - added += chunk.size - } - relativeEnd -= size - blobParts.push(chunk) - relativeStart = 0 // All next sequential parts should start at 0 - } - } - - const blob = new Blob([], { type: String(type).toLowerCase() }) - blob.#size = span - blob.#parts = blobParts - - return blob - } - - get [Symbol.toStringTag] () { - return 'Blob' - } - - static [Symbol.hasInstance] (object) { - return ( - object && - typeof object === 'object' && - typeof object.constructor === 'function' && - ( - typeof object.stream === 'function' || - typeof object.arrayBuffer === 'function' - ) && - /^(Blob|File)$/.test(object[Symbol.toStringTag]) - ) - } -} - -Object.defineProperties(_Blob.prototype, { - size: { enumerable: true }, - type: { enumerable: true }, - slice: { enumerable: true } -}) - -/** @type {typeof globalThis.Blob} */ -export const Blob = _Blob -export default Blob diff --git a/node_modules/fetch-blob/package.json b/node_modules/fetch-blob/package.json deleted file mode 100644 index 9d07f397..00000000 --- a/node_modules/fetch-blob/package.json +++ /dev/null @@ -1,56 +0,0 @@ -{ - "name": "fetch-blob", - "version": "3.2.0", - "description": "Blob & File implementation in Node.js, originally from node-fetch.", - "main": "index.js", - "type": "module", - "files": [ - "from.js", - "file.js", - "file.d.ts", - "index.js", - "index.d.ts", - "from.d.ts", - "streams.cjs" - ], - "scripts": { - "test": "node --experimental-loader ./test/http-loader.js ./test/test-wpt-in-node.js", - "report": "c8 --reporter json --reporter text npm run test", - "coverage": "npm run report && codecov -f coverage/coverage-final.json", - "prepublishOnly": "tsc --declaration --emitDeclarationOnly --allowJs index.js from.js" - }, - "repository": "https://github.com/node-fetch/fetch-blob.git", - "keywords": [ - "blob", - "file", - "node-fetch" - ], - "engines": { - "node": "^12.20 || >= 14.13" - }, - "author": "Jimmy Wärting (https://jimmy.warting.se)", - "license": "MIT", - "bugs": { - "url": "https://github.com/node-fetch/fetch-blob/issues" - }, - "homepage": "https://github.com/node-fetch/fetch-blob#readme", - "devDependencies": { - "@types/node": "^17.0.9", - "c8": "^7.11.0", - "typescript": "^4.5.4" - }, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/jimmywarting" - }, - { - "type": "paypal", - "url": "https://paypal.me/jimmywarting" - } - ], - "dependencies": { - "node-domexception": "^1.0.0", - "web-streams-polyfill": "^3.0.3" - } -} diff --git a/node_modules/fetch-blob/streams.cjs b/node_modules/fetch-blob/streams.cjs deleted file mode 100644 index f7609596..00000000 --- a/node_modules/fetch-blob/streams.cjs +++ /dev/null @@ -1,51 +0,0 @@ -/* c8 ignore start */ -// 64 KiB (same size chrome slice theirs blob into Uint8array's) -const POOL_SIZE = 65536 - -if (!globalThis.ReadableStream) { - // `node:stream/web` got introduced in v16.5.0 as experimental - // and it's preferred over the polyfilled version. So we also - // suppress the warning that gets emitted by NodeJS for using it. - try { - const process = require('node:process') - const { emitWarning } = process - try { - process.emitWarning = () => {} - Object.assign(globalThis, require('node:stream/web')) - process.emitWarning = emitWarning - } catch (error) { - process.emitWarning = emitWarning - throw error - } - } catch (error) { - // fallback to polyfill implementation - Object.assign(globalThis, require('web-streams-polyfill/dist/ponyfill.es2018.js')) - } -} - -try { - // Don't use node: prefix for this, require+node: is not supported until node v14.14 - // Only `import()` can use prefix in 12.20 and later - const { Blob } = require('buffer') - if (Blob && !Blob.prototype.stream) { - Blob.prototype.stream = function name (params) { - let position = 0 - const blob = this - - return new ReadableStream({ - type: 'bytes', - async pull (ctrl) { - const chunk = blob.slice(position, Math.min(blob.size, position + POOL_SIZE)) - const buffer = await chunk.arrayBuffer() - position += buffer.byteLength - ctrl.enqueue(new Uint8Array(buffer)) - - if (position === blob.size) { - ctrl.close() - } - } - }) - } - } -} catch (error) {} -/* c8 ignore end */ diff --git a/node_modules/formdata-polyfill/FormData.js b/node_modules/formdata-polyfill/FormData.js deleted file mode 100644 index 8e736605..00000000 --- a/node_modules/formdata-polyfill/FormData.js +++ /dev/null @@ -1,441 +0,0 @@ -/* formdata-polyfill. MIT License. Jimmy Wärting */ - -/* global FormData self Blob File */ -/* eslint-disable no-inner-declarations */ - -if (typeof Blob !== 'undefined' && (typeof FormData === 'undefined' || !FormData.prototype.keys)) { - const global = typeof globalThis === 'object' - ? globalThis - : typeof window === 'object' - ? window - : typeof self === 'object' ? self : this - - // keep a reference to native implementation - const _FormData = global.FormData - - // To be monkey patched - const _send = global.XMLHttpRequest && global.XMLHttpRequest.prototype.send - const _fetch = global.Request && global.fetch - const _sendBeacon = global.navigator && global.navigator.sendBeacon - // Might be a worker thread... - const _match = global.Element && global.Element.prototype - - // Unable to patch Request/Response constructor correctly #109 - // only way is to use ES6 class extend - // https://github.com/babel/babel/issues/1966 - - const stringTag = global.Symbol && Symbol.toStringTag - - // Add missing stringTags to blob and files - if (stringTag) { - if (!Blob.prototype[stringTag]) { - Blob.prototype[stringTag] = 'Blob' - } - - if ('File' in global && !File.prototype[stringTag]) { - File.prototype[stringTag] = 'File' - } - } - - // Fix so you can construct your own File - try { - new File([], '') // eslint-disable-line - } catch (a) { - global.File = function File (b, d, c) { - const blob = new Blob(b, c || {}) - const t = c && void 0 !== c.lastModified ? new Date(c.lastModified) : new Date() - - Object.defineProperties(blob, { - name: { - value: d - }, - lastModified: { - value: +t - }, - toString: { - value () { - return '[object File]' - } - } - }) - - if (stringTag) { - Object.defineProperty(blob, stringTag, { - value: 'File' - }) - } - - return blob - } - } - - function ensureArgs (args, expected) { - if (args.length < expected) { - throw new TypeError(`${expected} argument required, but only ${args.length} present.`) - } - } - - /** - * @param {string} name - * @param {string | undefined} filename - * @returns {[string, File|string]} - */ - function normalizeArgs (name, value, filename) { - if (value instanceof Blob) { - filename = filename !== undefined - ? String(filename + '') - : typeof value.name === 'string' - ? value.name - : 'blob' - - if (value.name !== filename || Object.prototype.toString.call(value) === '[object Blob]') { - value = new File([value], filename) - } - return [String(name), value] - } - return [String(name), String(value)] - } - - // normalize line feeds for textarea - // https://html.spec.whatwg.org/multipage/form-elements.html#textarea-line-break-normalisation-transformation - function normalizeLinefeeds (value) { - return value.replace(/\r?\n|\r/g, '\r\n') - } - - /** - * @template T - * @param {ArrayLike} arr - * @param {{ (elm: T): void; }} cb - */ - function each (arr, cb) { - for (let i = 0; i < arr.length; i++) { - cb(arr[i]) - } - } - - const escape = str => str.replace(/\n/g, '%0A').replace(/\r/g, '%0D').replace(/"/g, '%22') - - /** - * @implements {Iterable} - */ - class FormDataPolyfill { - /** - * FormData class - * - * @param {HTMLFormElement=} form - */ - constructor (form) { - /** @type {[string, string|File][]} */ - this._data = [] - - const self = this - form && each(form.elements, (/** @type {HTMLInputElement} */ elm) => { - if ( - !elm.name || - elm.disabled || - elm.type === 'submit' || - elm.type === 'button' || - elm.matches('form fieldset[disabled] *') - ) return - - if (elm.type === 'file') { - const files = elm.files && elm.files.length - ? elm.files - : [new File([], '', { type: 'application/octet-stream' })] // #78 - - each(files, file => { - self.append(elm.name, file) - }) - } else if (elm.type === 'select-multiple' || elm.type === 'select-one') { - each(elm.options, opt => { - !opt.disabled && opt.selected && self.append(elm.name, opt.value) - }) - } else if (elm.type === 'checkbox' || elm.type === 'radio') { - if (elm.checked) self.append(elm.name, elm.value) - } else { - const value = elm.type === 'textarea' ? normalizeLinefeeds(elm.value) : elm.value - self.append(elm.name, value) - } - }) - } - - /** - * Append a field - * - * @param {string} name field name - * @param {string|Blob|File} value string / blob / file - * @param {string=} filename filename to use with blob - * @return {undefined} - */ - append (name, value, filename) { - ensureArgs(arguments, 2) - this._data.push(normalizeArgs(name, value, filename)) - } - - /** - * Delete all fields values given name - * - * @param {string} name Field name - * @return {undefined} - */ - delete (name) { - ensureArgs(arguments, 1) - const result = [] - name = String(name) - - each(this._data, entry => { - entry[0] !== name && result.push(entry) - }) - - this._data = result - } - - /** - * Iterate over all fields as [name, value] - * - * @return {Iterator} - */ - * entries () { - for (var i = 0; i < this._data.length; i++) { - yield this._data[i] - } - } - - /** - * Iterate over all fields - * - * @param {Function} callback Executed for each item with parameters (value, name, thisArg) - * @param {Object=} thisArg `this` context for callback function - */ - forEach (callback, thisArg) { - ensureArgs(arguments, 1) - for (const [name, value] of this) { - callback.call(thisArg, value, name, this) - } - } - - /** - * Return first field value given name - * or null if non existent - * - * @param {string} name Field name - * @return {string|File|null} value Fields value - */ - get (name) { - ensureArgs(arguments, 1) - const entries = this._data - name = String(name) - for (let i = 0; i < entries.length; i++) { - if (entries[i][0] === name) { - return entries[i][1] - } - } - return null - } - - /** - * Return all fields values given name - * - * @param {string} name Fields name - * @return {Array} [{String|File}] - */ - getAll (name) { - ensureArgs(arguments, 1) - const result = [] - name = String(name) - each(this._data, data => { - data[0] === name && result.push(data[1]) - }) - - return result - } - - /** - * Check for field name existence - * - * @param {string} name Field name - * @return {boolean} - */ - has (name) { - ensureArgs(arguments, 1) - name = String(name) - for (let i = 0; i < this._data.length; i++) { - if (this._data[i][0] === name) { - return true - } - } - return false - } - - /** - * Iterate over all fields name - * - * @return {Iterator} - */ - * keys () { - for (const [name] of this) { - yield name - } - } - - /** - * Overwrite all values given name - * - * @param {string} name Filed name - * @param {string} value Field value - * @param {string=} filename Filename (optional) - */ - set (name, value, filename) { - ensureArgs(arguments, 2) - name = String(name) - /** @type {[string, string|File][]} */ - const result = [] - const args = normalizeArgs(name, value, filename) - let replace = true - - // - replace the first occurrence with same name - // - discards the remaining with same name - // - while keeping the same order items where added - each(this._data, data => { - data[0] === name - ? replace && (replace = !result.push(args)) - : result.push(data) - }) - - replace && result.push(args) - - this._data = result - } - - /** - * Iterate over all fields - * - * @return {Iterator} - */ - * values () { - for (const [, value] of this) { - yield value - } - } - - /** - * Return a native (perhaps degraded) FormData with only a `append` method - * Can throw if it's not supported - * - * @return {FormData} - */ - ['_asNative'] () { - const fd = new _FormData() - - for (const [name, value] of this) { - fd.append(name, value) - } - - return fd - } - - /** - * [_blob description] - * - * @return {Blob} [description] - */ - ['_blob'] () { - const boundary = '----formdata-polyfill-' + Math.random(), - chunks = [], - p = `--${boundary}\r\nContent-Disposition: form-data; name="` - this.forEach((value, name) => typeof value == 'string' - ? chunks.push(p + escape(normalizeLinefeeds(name)) + `"\r\n\r\n${normalizeLinefeeds(value)}\r\n`) - : chunks.push(p + escape(normalizeLinefeeds(name)) + `"; filename="${escape(value.name)}"\r\nContent-Type: ${value.type||"application/octet-stream"}\r\n\r\n`, value, `\r\n`)) - chunks.push(`--${boundary}--`) - return new Blob(chunks, { - type: "multipart/form-data; boundary=" + boundary - }) - } - - /** - * The class itself is iterable - * alias for formdata.entries() - * - * @return {Iterator} - */ - [Symbol.iterator] () { - return this.entries() - } - - /** - * Create the default string description. - * - * @return {string} [object FormData] - */ - toString () { - return '[object FormData]' - } - } - - if (_match && !_match.matches) { - _match.matches = - _match.matchesSelector || - _match.mozMatchesSelector || - _match.msMatchesSelector || - _match.oMatchesSelector || - _match.webkitMatchesSelector || - function (s) { - var matches = (this.document || this.ownerDocument).querySelectorAll(s) - var i = matches.length - while (--i >= 0 && matches.item(i) !== this) {} - return i > -1 - } - } - - if (stringTag) { - /** - * Create the default string description. - * It is accessed internally by the Object.prototype.toString(). - */ - FormDataPolyfill.prototype[stringTag] = 'FormData' - } - - // Patch xhr's send method to call _blob transparently - if (_send) { - const setRequestHeader = global.XMLHttpRequest.prototype.setRequestHeader - - global.XMLHttpRequest.prototype.setRequestHeader = function (name, value) { - setRequestHeader.call(this, name, value) - if (name.toLowerCase() === 'content-type') this._hasContentType = true - } - - global.XMLHttpRequest.prototype.send = function (data) { - // need to patch send b/c old IE don't send blob's type (#44) - if (data instanceof FormDataPolyfill) { - const blob = data['_blob']() - if (!this._hasContentType) this.setRequestHeader('Content-Type', blob.type) - _send.call(this, blob) - } else { - _send.call(this, data) - } - } - } - - // Patch fetch's function to call _blob transparently - if (_fetch) { - global.fetch = function (input, init) { - if (init && init.body && init.body instanceof FormDataPolyfill) { - init.body = init.body['_blob']() - } - - return _fetch.call(this, input, init) - } - } - - // Patch navigator.sendBeacon to use native FormData - if (_sendBeacon) { - global.navigator.sendBeacon = function (url, data) { - if (data instanceof FormDataPolyfill) { - data = data['_asNative']() - } - return _sendBeacon.call(this, url, data) - } - } - - global['FormData'] = FormDataPolyfill -} diff --git a/node_modules/formdata-polyfill/LICENSE b/node_modules/formdata-polyfill/LICENSE deleted file mode 100644 index fd0f555a..00000000 --- a/node_modules/formdata-polyfill/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2016 Jimmy Karl Roland Wärting - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/node_modules/formdata-polyfill/README.md b/node_modules/formdata-polyfill/README.md deleted file mode 100644 index 8355299a..00000000 --- a/node_modules/formdata-polyfill/README.md +++ /dev/null @@ -1,145 +0,0 @@ -### A `FormData` polyfill for the browser ...and a module for NodeJS (`New!`) - -```bash -npm install formdata-polyfill -``` - -The browser polyfill will likely have done its part already, and i hope you stop supporting old browsers c",)
-But NodeJS still laks a proper FormData
The good old form-data package is a very old and isn't spec compatible and dose some abnormal stuff to construct and read FormData instances that other http libraries are not happy about when it comes to follow the spec. - -### The NodeJS / ESM version -- The modular (~2.3 KiB minified uncompressed) version of this package is independent of any browser stuff and don't patch anything -- It's as pure/spec compatible as it possible gets the test are run by WPT. -- It's compatible with [node-fetch](https://github.com/node-fetch/node-fetch). -- It have higher platform dependencies as it uses classes, symbols, ESM & private fields -- Only dependency it has is [fetch-blob](https://github.com/node-fetch/fetch-blob) - -```js -// Node example -import fetch from 'node-fetch' -import File from 'fetch-blob/file.js' -import { fileFromSync } from 'fetch-blob/from.js' -import { FormData } from 'formdata-polyfill/esm.min.js' - -const file = fileFromSync('./README.md') -const fd = new FormData() - -fd.append('file-upload', new File(['abc'], 'hello-world.txt')) -fd.append('file-upload', file) - -// it's also possible to append file/blob look-a-like items -// if you have streams coming from other destinations -fd.append('file-upload', { - size: 123, - type: '', - name: 'cat-video.mp4', - stream() { return stream }, - [Symbol.toStringTag]: 'File' -}) - -fetch('https://httpbin.org/post', { method: 'POST', body: fd }) -``` - ----- - -It also comes with way to convert FormData into Blobs - it's not something that every developer should have to deal with. -It's mainly for [node-fetch](https://github.com/node-fetch/node-fetch) and other http library to ease the process of serializing a FormData into a blob and just wish to deal with Blobs instead (Both Deno and Undici adapted a version of this [formDataToBlob](https://github.com/jimmywarting/FormData/blob/5ddea9e0de2fc5e246ab1b2f9d404dee0c319c02/formdata-to-blob.js) to the core and passes all WPT tests run by the browser itself) -```js -import { Readable } from 'node:stream' -import { FormData, formDataToBlob } from 'formdata-polyfill/esm.min.js' - -const blob = formDataToBlob(new FormData()) -fetch('https://httpbin.org/post', { method: 'POST', body: blob }) - -// node built in http and other similar http library have to do: -const stream = Readable.from(blob.stream()) -const req = http.request('http://httpbin.org/post', { - method: 'post', - headers: { - 'Content-Length': blob.size, - 'Content-Type': blob.type - } -}) -stream.pipe(req) -``` - -PS: blob & file that are appended to the FormData will not be read until any of the serialized blob read-methods gets called -...so uploading very large files is no biggie - -### Browser polyfill - -usage: - -```js -import 'formdata-polyfill' // that's it -``` - -The browser polyfill conditionally replaces the native implementation rather than fixing the missing functions, -since otherwise there is no way to get or delete existing values in the FormData object. -Therefore this also patches `XMLHttpRequest.prototype.send` and `fetch` to send the `FormData` as a blob, -and `navigator.sendBeacon` to send native `FormData`. - -I was unable to patch the Response/Request constructor -so if you are constructing them with FormData then you need to call `fd._blob()` manually. - -```js -new Request(url, { - method: 'post', - body: fd._blob ? fd._blob() : fd -}) -``` - -Dependencies ---- - -If you need to support IE <= 9 then I recommend you to include eligrey's [blob.js] -(which i hope you don't - since IE is now dead) - -
- Updating from 2.x to 3.x - -Previously you had to import the polyfill and use that, -since it didn't replace the global (existing) FormData implementation. -But now it transparently calls `_blob()` for you when you are sending something with fetch or XHR, -by way of monkey-patching the `XMLHttpRequest.prototype.send` and `fetch` functions. - -So you maybe had something like this: - -```javascript -var FormData = require('formdata-polyfill') -var fd = new FormData(form) -xhr.send(fd._blob()) -``` - -There is no longer anything exported from the module -(though you of course still need to import it to install the polyfill), -so you can now use the FormData object as normal: - -```javascript -require('formdata-polyfill') -var fd = new FormData(form) -xhr.send(fd) -``` - -
- - - -Native Browser compatibility (as of 2021-05-08) ---- -Based on this you can decide for yourself if you need this polyfill. - -[![screenshot](https://user-images.githubusercontent.com/1148376/117550329-0993aa80-b040-11eb-976c-14e31f1a3ba4.png)](https://developer.mozilla.org/en-US/docs/Web/API/FormData#Browser_compatibility) - - - -This normalizes support for the FormData API: - - - `append` with filename - - `delete()`, `get()`, `getAll()`, `has()`, `set()` - - `entries()`, `keys()`, `values()`, and support for `for...of` - - Available in web workers (just include the polyfill) - - [npm-image]: https://img.shields.io/npm/v/formdata-polyfill.svg - [npm-url]: https://www.npmjs.com/package/formdata-polyfill - [blob.js]: https://github.com/eligrey/Blob.js diff --git a/node_modules/formdata-polyfill/esm.min.d.ts b/node_modules/formdata-polyfill/esm.min.d.ts deleted file mode 100644 index b45f42ea..00000000 --- a/node_modules/formdata-polyfill/esm.min.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -export declare const FormData: { - new (): FormData; - prototype: FormData; -}; -export declare function formDataToBlob(formData: FormData): Blob; diff --git a/node_modules/formdata-polyfill/esm.min.js b/node_modules/formdata-polyfill/esm.min.js deleted file mode 100644 index 745ca290..00000000 --- a/node_modules/formdata-polyfill/esm.min.js +++ /dev/null @@ -1,40 +0,0 @@ -/*! formdata-polyfill. MIT License. Jimmy Wärting */ - -import C from 'fetch-blob' -import F from 'fetch-blob/file.js' - -var {toStringTag:t,iterator:i,hasInstance:h}=Symbol, -r=Math.random, -m='append,set,get,getAll,delete,keys,values,entries,forEach,constructor'.split(','), -f=(a,b,c)=>(a+='',/^(Blob|File)$/.test(b && b[t])?[(c=c!==void 0?c+'':b[t]=='File'?b.name:'blob',a),b.name!==c||b[t]=='blob'?new F([b],c,b):b]:[a,b+'']), -e=(c,f)=>(f?c:c.replace(/\r?\n|\r/g,'\r\n')).replace(/\n/g,'%0A').replace(/\r/g,'%0D').replace(/"/g,'%22'), -x=(n, a, e)=>{if(a.lengthtypeof o[m]!='function')} -append(...a){x('append',arguments,2);this.#d.push(f(...a))} -delete(a){x('delete',arguments,1);a+='';this.#d=this.#d.filter(([b])=>b!==a)} -get(a){x('get',arguments,1);a+='';for(var b=this.#d,l=b.length,c=0;cc[0]===a&&b.push(c[1]));return b} -has(a){x('has',arguments,1);a+='';return this.#d.some(b=>b[0]===a)} -forEach(a,b){x('forEach',arguments,1);for(var [c,d]of this)a.call(b,d,c,this)} -set(...a){x('set',arguments,2);var b=[],c=!0;a=f(...a);this.#d.forEach(d=>{d[0]===a[0]?c&&(c=!b.push(a)):b.push(d)});c&&b.push(a);this.#d=b} -*entries(){yield*this.#d} -*keys(){for(var[a]of this)yield a} -*values(){for(var[,a]of this)yield a}} - -/** @param {FormData} F */ -export function formDataToBlob (F,B=C){ -var b=`${r()}${r()}`.replace(/\./g, '').slice(-28).padStart(32, '-'),c=[],p=`--${b}\r\nContent-Disposition: form-data; name="` -F.forEach((v,n)=>typeof v=='string' -?c.push(p+e(n)+`"\r\n\r\n${v.replace(/\r(?!\n)|(? */ - -const escape = (str, filename) => - (filename ? str : str.replace(/\r?\n|\r/g, '\r\n')) - .replace(/\n/g, '%0A') - .replace(/\r/g, '%0D') - .replace(/"/g, '%22') - -/** - * pure function to convert any formData instance to a Blob - * instances synchronous without reading all of the files - * - * @param {FormData|*} formData an instance of a formData Class - * @param {Blob|*} [BlobClass=Blob] the Blob class to use when constructing it - */ -export function formDataToBlob (formData, BlobClass = Blob) { - const boundary = ('----formdata-polyfill-' + Math.random()) - const chunks = [] - const prefix = `--${boundary}\r\nContent-Disposition: form-data; name="` - - for (let [name, value] of formData) { - if (typeof value === 'string') { - chunks.push(prefix + escape(name) + `"\r\n\r\n${value.replace(/\r(?!\n)|(? */ -;(function(){var h;function l(a){var b=0;return function(){return b>>0)+"_",e=0;return b}); -r("Symbol.iterator",function(a){if(a)return a;a=Symbol("Symbol.iterator");for(var b="Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array".split(" "),c=0;c=12.20.0" - }, - "keywords": [ - "formdata", - "fetch", - "node-fetch", - "html5", - "browser", - "polyfill" - ], - "author": "Jimmy Wärting", - "license": "MIT", - "bugs": { - "url": "https://github.com/jimmywarting/FormData/issues" - }, - "homepage": "https://github.com/jimmywarting/FormData#readme", - "dependencies": { - "fetch-blob": "^3.1.2" - }, - "devDependencies": { - "@types/google-closure-compiler": "^0.0.19", - "@types/node": "^16.7.10", - "google-closure-compiler": "^20210808.0.0" - } -} diff --git a/node_modules/html-entities/LICENSE b/node_modules/html-entities/LICENSE deleted file mode 100644 index d565fb3a..00000000 --- a/node_modules/html-entities/LICENSE +++ /dev/null @@ -1,19 +0,0 @@ -Copyright (c) 2021 Dulin Marat - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in -all copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN -THE SOFTWARE. diff --git a/node_modules/html-entities/README.md b/node_modules/html-entities/README.md deleted file mode 100644 index 7f0f66f4..00000000 --- a/node_modules/html-entities/README.md +++ /dev/null @@ -1,217 +0,0 @@ -html-entities -============= - -Fastest HTML entities library. - -Comes with both TypeScript and Flow types. - -Installation ------------- - -```bash -$ npm install html-entities -``` - -Usage ------ - -### encode(text, options) - -Encodes text replacing HTML special characters (`<>&"'`) and/or other character ranges depending on `mode` option value. - -```js -import {encode} from 'html-entities'; - -encode('< > " \' & © ∆'); -// -> '< > " ' & © ∆' - -encode('< ©', {mode: 'nonAsciiPrintable'}); -// -> '< ©' - -encode('< ©', {mode: 'nonAsciiPrintable', level: 'xml'}); -// -> '< ©' - -encode('< > " \' & ©', {mode: 'nonAsciiPrintableOnly', level: 'xml'}); -// -> '< > " \' & ©' -``` - -Options: - -#### level - - * `all` alias to `html5` (default). - * `html5` uses `HTML5` named references. - * `html4` uses `HTML4` named references. - * `xml` uses `XML` named references. - -#### mode - - * `specialChars` encodes only HTML special characters (default). - * `nonAscii` encodes HTML special characters and everything outside the [ASCII character range](https://en.wikipedia.org/wiki/ASCII). - * `nonAsciiPrintable` encodes HTML special characters and everything outiside of the [ASCII printable characters](https://en.wikipedia.org/wiki/ASCII#Printable_characters). - * `nonAsciiPrintableOnly` everything outiside of the [ASCII printable characters](https://en.wikipedia.org/wiki/ASCII#Printable_characters) keeping HTML special characters intact. - * `extensive` encodes all non-printable characters, non-ASCII characters and all characters with named references. - -#### numeric - - * `decimal` uses decimal numbers when encoding html entities. i.e. `©` (default). - * `hexadecimal` uses hexadecimal numbers when encoding html entities. i.e. `©`. - - -### decode(text, options) - -Decodes text replacing entities to characters. Unknown entities are left as is. - -```js -import {decode} from 'html-entities'; - -decode('< > " ' & © ∆'); -// -> '< > " \' & © ∆' - -decode('©', {level: 'html5'}); -// -> '©' - -decode('©', {level: 'xml'}); -// -> '©' -``` - -Options: - -#### level - - * `all` alias to `html5` (default). - * `html5` uses `HTML5` named references. - * `html4` uses `HTML4` named references. - * `xml` uses `XML` named references. - -#### scope - - * `body` emulates behavior of browser when parsing tag bodies: entities without semicolon are also replaced (default). - * `attribute` emulates behavior of browser when parsing tag attributes: entities without semicolon are replaced when not followed by equality sign `=`. - * `strict` ignores entities without semicolon. - -### decodeEntity(text, options) - -Decodes a single HTML entity. Unknown entitiy is left as is. - -```js -import {decodeEntity} from 'html-entities'; - -decodeEntity('<'); -// -> '<' - -decodeEntity('©', {level: 'html5'}); -// -> '©' - -decodeEntity('©', {level: 'xml'}); -// -> '©' -``` - -Options: - -#### level - - * `all` alias to `html5` (default). - * `html5` uses `HTML5` named references. - * `html4` uses `HTML4` named references. - * `xml` uses `XML` named references. - -Performance ------------ - -Statistically significant comparison with other libraries using `benchmark.js`. -Results by this library are marked with `*`. -The source code of the benchmark is available at `benchmark/benchmark.ts`. - -``` -Common - - Initialization / Load speed - - * #1: html-entities x 2,632,942 ops/sec ±3.71% (72 runs sampled) - #2: entities x 1,379,154 ops/sec ±5.87% (75 runs sampled) - #3: he x 1,334,035 ops/sec ±3.14% (83 runs sampled) - -HTML5 - - Encode test - - * #1: html-entities.encode - html5, nonAscii x 415,806 ops/sec ±0.73% (85 runs sampled) - * #2: html-entities.encode - html5, nonAsciiPrintable x 401,420 ops/sec ±0.35% (93 runs sampled) - #3: entities.encodeNonAsciiHTML x 401,235 ops/sec ±0.41% (88 runs sampled) - #4: entities.encodeHTML x 284,868 ops/sec ±0.45% (93 runs sampled) - * #5: html-entities.encode - html5, extensive x 237,613 ops/sec ±0.42% (93 runs sampled) - #6: he.encode x 91,459 ops/sec ±0.50% (84 runs sampled) - - Decode test - - #1: entities.decodeHTMLStrict x 614,920 ops/sec ±0.41% (89 runs sampled) - #2: entities.decodeHTML x 577,698 ops/sec ±0.44% (90 runs sampled) - * #3: html-entities.decode - html5, strict x 323,680 ops/sec ±0.39% (92 runs sampled) - * #4: html-entities.decode - html5, body x 297,548 ops/sec ±0.45% (91 runs sampled) - * #5: html-entities.decode - html5, attribute x 293,617 ops/sec ±0.37% (94 runs sampled) - #6: he.decode x 145,383 ops/sec ±0.36% (94 runs sampled) - -HTML4 - - Encode test - - * #1: html-entities.encode - html4, nonAscii x 379,799 ops/sec ±0.29% (96 runs sampled) - * #2: html-entities.encode - html4, nonAsciiPrintable x 350,003 ops/sec ±0.42% (92 runs sampled) - * #3: html-entities.encode - html4, extensive x 169,759 ops/sec ±0.43% (90 runs sampled) - - Decode test - - * #1: html-entities.decode - html4, attribute x 291,048 ops/sec ±0.42% (92 runs sampled) - * #2: html-entities.decode - html4, strict x 287,110 ops/sec ±0.56% (93 runs sampled) - * #3: html-entities.decode - html4, body x 285,529 ops/sec ±0.57% (93 runs sampled) - -XML - - Encode test - - #1: entities.encodeXML x 418,561 ops/sec ±0.80% (90 runs sampled) - * #2: html-entities.encode - xml, nonAsciiPrintable x 402,868 ops/sec ±0.30% (89 runs sampled) - * #3: html-entities.encode - xml, nonAscii x 403,669 ops/sec ±7.87% (83 runs sampled) - * #4: html-entities.encode - xml, extensive x 237,766 ops/sec ±0.45% (93 runs sampled) - - Decode test - - #1: entities.decodeXML x 888,700 ops/sec ±0.48% (93 runs sampled) - * #2: html-entities.decode - xml, strict x 353,127 ops/sec ±0.40% (92 runs sampled) - * #3: html-entities.decode - xml, body x 355,796 ops/sec ±1.58% (86 runs sampled) - * #4: html-entities.decode - xml, attribute x 369,454 ops/sec ±8.74% (84 runs sampled) - -Escaping - - Escape test - - #1: entities.escapeUTF8 x 1,308,013 ops/sec ±0.37% (91 runs sampled) - * #2: html-entities.encode - xml, specialChars x 1,258,760 ops/sec ±1.00% (93 runs sampled) - #3: he.escape x 822,569 ops/sec ±0.24% (94 runs sampled) - #4: entities.escape x 434,243 ops/sec ±0.34% (91 runs sampled) -``` - -License -------- - -MIT - -Security contact information ----------------------------- - -To report a security vulnerability, please use the -[Tidelift security contact](https://tidelift.com/security). Tidelift will -coordinate the fix and disclosure. - -`html-entities` for enterprise ------------------------------- - -Available as part of the Tidelift Subscription - -The maintainers of `html-entities` and thousands of other packages are working with -Tidelift to deliver commercial support and maintenance for the open source -dependencies you use to build your applications. Save time, reduce risk, and -improve code health, while paying the maintainers of the exact dependencies you -use. -[Learn more.](https://tidelift.com/subscription/pkg/npm-html-entities?utm_source=npm-html-entities&utm_medium=referral&utm_campaign=enterprise) diff --git a/node_modules/html-entities/lib/index.d.ts b/node_modules/html-entities/lib/index.d.ts deleted file mode 100644 index 71e29971..00000000 --- a/node_modules/html-entities/lib/index.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -export declare type Level = 'xml' | 'html4' | 'html5' | 'all'; -interface CommonOptions { - level?: Level; -} -export declare type EncodeMode = 'specialChars' | 'nonAscii' | 'nonAsciiPrintable' | 'nonAsciiPrintableOnly' | 'extensive'; -export interface EncodeOptions extends CommonOptions { - mode?: EncodeMode; - numeric?: 'decimal' | 'hexadecimal'; -} -export declare type DecodeScope = 'strict' | 'body' | 'attribute'; -export interface DecodeOptions extends CommonOptions { - scope?: DecodeScope; -} -/** Encodes all the necessary (specified by `level`) characters in the text */ -export declare function encode(text: string | undefined | null, { mode, numeric, level }?: EncodeOptions): string; -/** Decodes a single entity */ -export declare function decodeEntity(entity: string | undefined | null, { level }?: CommonOptions): string; -/** Decodes all entities in the text */ -export declare function decode(text: string | undefined | null, { level, scope }?: DecodeOptions): string; -export {}; diff --git a/node_modules/html-entities/lib/index.js b/node_modules/html-entities/lib/index.js deleted file mode 100644 index abaf7b85..00000000 --- a/node_modules/html-entities/lib/index.js +++ /dev/null @@ -1,199 +0,0 @@ -"use strict"; -var __assign = (this && this.__assign) || function () { - __assign = Object.assign || function(t) { - for (var s, i = 1, n = arguments.length; i < n; i++) { - s = arguments[i]; - for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) - t[p] = s[p]; - } - return t; - }; - return __assign.apply(this, arguments); -}; -Object.defineProperty(exports, "__esModule", { value: true }); -var named_references_1 = require("./named-references"); -var numeric_unicode_map_1 = require("./numeric-unicode-map"); -var surrogate_pairs_1 = require("./surrogate-pairs"); -var allNamedReferences = __assign(__assign({}, named_references_1.namedReferences), { all: named_references_1.namedReferences.html5 }); -var encodeRegExps = { - specialChars: /[<>'"&]/g, - nonAscii: /[<>'"&\u0080-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g, - nonAsciiPrintable: /[<>'"&\x01-\x08\x11-\x15\x17-\x1F\x7f-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g, - nonAsciiPrintableOnly: /[\x01-\x08\x11-\x15\x17-\x1F\x7f-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g, - extensive: /[\x01-\x0c\x0e-\x1f\x21-\x2c\x2e-\x2f\x3a-\x40\x5b-\x60\x7b-\x7d\x7f-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]/g -}; -var defaultEncodeOptions = { - mode: 'specialChars', - level: 'all', - numeric: 'decimal' -}; -/** Encodes all the necessary (specified by `level`) characters in the text */ -function encode(text, _a) { - var _b = _a === void 0 ? defaultEncodeOptions : _a, _c = _b.mode, mode = _c === void 0 ? 'specialChars' : _c, _d = _b.numeric, numeric = _d === void 0 ? 'decimal' : _d, _e = _b.level, level = _e === void 0 ? 'all' : _e; - if (!text) { - return ''; - } - var encodeRegExp = encodeRegExps[mode]; - var references = allNamedReferences[level].characters; - var isHex = numeric === 'hexadecimal'; - encodeRegExp.lastIndex = 0; - var _b = encodeRegExp.exec(text); - var _c; - if (_b) { - _c = ''; - var _d = 0; - do { - if (_d !== _b.index) { - _c += text.substring(_d, _b.index); - } - var _e = _b[0]; - var result_1 = references[_e]; - if (!result_1) { - var code_1 = _e.length > 1 ? surrogate_pairs_1.getCodePoint(_e, 0) : _e.charCodeAt(0); - result_1 = (isHex ? '&#x' + code_1.toString(16) : '&#' + code_1) + ';'; - } - _c += result_1; - _d = _b.index + _e.length; - } while ((_b = encodeRegExp.exec(text))); - if (_d !== text.length) { - _c += text.substring(_d); - } - } - else { - _c = - text; - } - return _c; -} -exports.encode = encode; -var defaultDecodeOptions = { - scope: 'body', - level: 'all' -}; -var strict = /&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);/g; -var attribute = /&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+)[;=]?/g; -var baseDecodeRegExps = { - xml: { - strict: strict, - attribute: attribute, - body: named_references_1.bodyRegExps.xml - }, - html4: { - strict: strict, - attribute: attribute, - body: named_references_1.bodyRegExps.html4 - }, - html5: { - strict: strict, - attribute: attribute, - body: named_references_1.bodyRegExps.html5 - } -}; -var decodeRegExps = __assign(__assign({}, baseDecodeRegExps), { all: baseDecodeRegExps.html5 }); -var fromCharCode = String.fromCharCode; -var outOfBoundsChar = fromCharCode(65533); -var defaultDecodeEntityOptions = { - level: 'all' -}; -/** Decodes a single entity */ -function decodeEntity(entity, _a) { - var _b = (_a === void 0 ? defaultDecodeEntityOptions : _a).level, level = _b === void 0 ? 'all' : _b; - if (!entity) { - return ''; - } - var _b = entity; - var decodeEntityLastChar_1 = entity[entity.length - 1]; - if (false - && decodeEntityLastChar_1 === '=') { - _b = - entity; - } - else if (false - && decodeEntityLastChar_1 !== ';') { - _b = - entity; - } - else { - var decodeResultByReference_1 = allNamedReferences[level].entities[entity]; - if (decodeResultByReference_1) { - _b = decodeResultByReference_1; - } - else if (entity[0] === '&' && entity[1] === '#') { - var decodeSecondChar_1 = entity[2]; - var decodeCode_1 = decodeSecondChar_1 == 'x' || decodeSecondChar_1 == 'X' - ? parseInt(entity.substr(3), 16) - : parseInt(entity.substr(2)); - _b = - decodeCode_1 >= 0x10ffff - ? outOfBoundsChar - : decodeCode_1 > 65535 - ? surrogate_pairs_1.fromCodePoint(decodeCode_1) - : fromCharCode(numeric_unicode_map_1.numericUnicodeMap[decodeCode_1] || decodeCode_1); - } - } - return _b; -} -exports.decodeEntity = decodeEntity; -/** Decodes all entities in the text */ -function decode(text, _a) { - var decodeSecondChar_1 = _a === void 0 ? defaultDecodeOptions : _a, decodeCode_1 = decodeSecondChar_1.level, level = decodeCode_1 === void 0 ? 'all' : decodeCode_1, _b = decodeSecondChar_1.scope, scope = _b === void 0 ? level === 'xml' ? 'strict' : 'body' : _b; - if (!text) { - return ''; - } - var decodeRegExp = decodeRegExps[level][scope]; - var references = allNamedReferences[level].entities; - var isAttribute = scope === 'attribute'; - var isStrict = scope === 'strict'; - decodeRegExp.lastIndex = 0; - var replaceMatch_1 = decodeRegExp.exec(text); - var replaceResult_1; - if (replaceMatch_1) { - replaceResult_1 = ''; - var replaceLastIndex_1 = 0; - do { - if (replaceLastIndex_1 !== replaceMatch_1.index) { - replaceResult_1 += text.substring(replaceLastIndex_1, replaceMatch_1.index); - } - var replaceInput_1 = replaceMatch_1[0]; - var decodeResult_1 = replaceInput_1; - var decodeEntityLastChar_2 = replaceInput_1[replaceInput_1.length - 1]; - if (isAttribute - && decodeEntityLastChar_2 === '=') { - decodeResult_1 = replaceInput_1; - } - else if (isStrict - && decodeEntityLastChar_2 !== ';') { - decodeResult_1 = replaceInput_1; - } - else { - var decodeResultByReference_2 = references[replaceInput_1]; - if (decodeResultByReference_2) { - decodeResult_1 = decodeResultByReference_2; - } - else if (replaceInput_1[0] === '&' && replaceInput_1[1] === '#') { - var decodeSecondChar_2 = replaceInput_1[2]; - var decodeCode_2 = decodeSecondChar_2 == 'x' || decodeSecondChar_2 == 'X' - ? parseInt(replaceInput_1.substr(3), 16) - : parseInt(replaceInput_1.substr(2)); - decodeResult_1 = - decodeCode_2 >= 0x10ffff - ? outOfBoundsChar - : decodeCode_2 > 65535 - ? surrogate_pairs_1.fromCodePoint(decodeCode_2) - : fromCharCode(numeric_unicode_map_1.numericUnicodeMap[decodeCode_2] || decodeCode_2); - } - } - replaceResult_1 += decodeResult_1; - replaceLastIndex_1 = replaceMatch_1.index + replaceInput_1.length; - } while ((replaceMatch_1 = decodeRegExp.exec(text))); - if (replaceLastIndex_1 !== text.length) { - replaceResult_1 += text.substring(replaceLastIndex_1); - } - } - else { - replaceResult_1 = - text; - } - return replaceResult_1; -} -exports.decode = decode; diff --git a/node_modules/html-entities/lib/index.js.flow b/node_modules/html-entities/lib/index.js.flow deleted file mode 100644 index 7311bd2b..00000000 --- a/node_modules/html-entities/lib/index.js.flow +++ /dev/null @@ -1,52 +0,0 @@ -/** - * Flowtype definitions for index - * Generated by Flowgen from a Typescript Definition - * Flowgen v1.13.0 - * @flow - */ - -export type Level = "xml" | "html4" | "html5" | "all"; -declare interface CommonOptions { - level?: Level; -} -export type EncodeMode = - | "specialChars" - | "nonAscii" - | "nonAsciiPrintable" - | "nonAsciiPrintableOnly" - | "extensive"; -export type EncodeOptions = { - mode?: EncodeMode, - numeric?: "decimal" | "hexadecimal", - ... -} & CommonOptions; -export type DecodeScope = "strict" | "body" | "attribute"; -export type DecodeOptions = { - scope?: DecodeScope, - ... -} & CommonOptions; - -/** - * Encodes all the necessary (specified by `level`) characters in the text - */ -declare export function encode( - text: string | void | null, - x?: EncodeOptions -): string; - -/** - * Decodes a single entity - */ -declare export function decodeEntity( - entity: string | void | null, - x?: CommonOptions -): string; - -/** - * Decodes all entities in the text - */ -declare export function decode( - text: string | void | null, - x?: DecodeOptions -): string; -declare export {}; diff --git a/node_modules/html-entities/lib/named-references.js b/node_modules/html-entities/lib/named-references.js deleted file mode 100644 index ed565651..00000000 --- a/node_modules/html-entities/lib/named-references.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.bodyRegExps={xml:/&(?:#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);?/g,html4:/∉|&(?:nbsp|iexcl|cent|pound|curren|yen|brvbar|sect|uml|copy|ordf|laquo|not|shy|reg|macr|deg|plusmn|sup2|sup3|acute|micro|para|middot|cedil|sup1|ordm|raquo|frac14|frac12|frac34|iquest|Agrave|Aacute|Acirc|Atilde|Auml|Aring|AElig|Ccedil|Egrave|Eacute|Ecirc|Euml|Igrave|Iacute|Icirc|Iuml|ETH|Ntilde|Ograve|Oacute|Ocirc|Otilde|Ouml|times|Oslash|Ugrave|Uacute|Ucirc|Uuml|Yacute|THORN|szlig|agrave|aacute|acirc|atilde|auml|aring|aelig|ccedil|egrave|eacute|ecirc|euml|igrave|iacute|icirc|iuml|eth|ntilde|ograve|oacute|ocirc|otilde|ouml|divide|oslash|ugrave|uacute|ucirc|uuml|yacute|thorn|yuml|quot|amp|lt|gt|#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);?/g,html5:/·|℗|⋇|⪧|⩺|⋗|⦕|⩼|⪆|⥸|⋗|⋛|⪌|≷|≳|⪦|⩹|⋖|⋋|⋉|⥶|⩻|⦖|◃|⊴|◂|∉|⋹̸|⋵̸|∉|⋷|⋶|∌|∌|⋾|⋽|∥|⊠|⨱|⨰|&(?:AElig|AMP|Aacute|Acirc|Agrave|Aring|Atilde|Auml|COPY|Ccedil|ETH|Eacute|Ecirc|Egrave|Euml|GT|Iacute|Icirc|Igrave|Iuml|LT|Ntilde|Oacute|Ocirc|Ograve|Oslash|Otilde|Ouml|QUOT|REG|THORN|Uacute|Ucirc|Ugrave|Uuml|Yacute|aacute|acirc|acute|aelig|agrave|amp|aring|atilde|auml|brvbar|ccedil|cedil|cent|copy|curren|deg|divide|eacute|ecirc|egrave|eth|euml|frac12|frac14|frac34|gt|iacute|icirc|iexcl|igrave|iquest|iuml|laquo|lt|macr|micro|middot|nbsp|not|ntilde|oacute|ocirc|ograve|ordf|ordm|oslash|otilde|ouml|para|plusmn|pound|quot|raquo|reg|sect|shy|sup1|sup2|sup3|szlig|thorn|times|uacute|ucirc|ugrave|uml|uuml|yacute|yen|yuml|#\d+|#[xX][\da-fA-F]+|[0-9a-zA-Z]+);?/g};exports.namedReferences={xml:{entities:{"<":"<",">":">",""":'"',"'":"'","&":"&"},characters:{"<":"<",">":">",'"':""","'":"'","&":"&"}},html4:{entities:{"'":"'"," ":" "," ":" ","¡":"¡","¡":"¡","¢":"¢","¢":"¢","£":"£","£":"£","¤":"¤","¤":"¤","¥":"¥","¥":"¥","¦":"¦","¦":"¦","§":"§","§":"§","¨":"¨","¨":"¨","©":"©","©":"©","ª":"ª","ª":"ª","«":"«","«":"«","¬":"¬","¬":"¬","­":"­","­":"­","®":"®","®":"®","¯":"¯","¯":"¯","°":"°","°":"°","±":"±","±":"±","²":"²","²":"²","³":"³","³":"³","´":"´","´":"´","µ":"µ","µ":"µ","¶":"¶","¶":"¶","·":"·","·":"·","¸":"¸","¸":"¸","¹":"¹","¹":"¹","º":"º","º":"º","»":"»","»":"»","¼":"¼","¼":"¼","½":"½","½":"½","¾":"¾","¾":"¾","¿":"¿","¿":"¿","À":"À","À":"À","Á":"Á","Á":"Á","Â":"Â","Â":"Â","Ã":"Ã","Ã":"Ã","Ä":"Ä","Ä":"Ä","Å":"Å","Å":"Å","Æ":"Æ","Æ":"Æ","Ç":"Ç","Ç":"Ç","È":"È","È":"È","É":"É","É":"É","Ê":"Ê","Ê":"Ê","Ë":"Ë","Ë":"Ë","Ì":"Ì","Ì":"Ì","Í":"Í","Í":"Í","Î":"Î","Î":"Î","Ï":"Ï","Ï":"Ï","Ð":"Ð","Ð":"Ð","Ñ":"Ñ","Ñ":"Ñ","Ò":"Ò","Ò":"Ò","Ó":"Ó","Ó":"Ó","Ô":"Ô","Ô":"Ô","Õ":"Õ","Õ":"Õ","Ö":"Ö","Ö":"Ö","×":"×","×":"×","Ø":"Ø","Ø":"Ø","Ù":"Ù","Ù":"Ù","Ú":"Ú","Ú":"Ú","Û":"Û","Û":"Û","Ü":"Ü","Ü":"Ü","Ý":"Ý","Ý":"Ý","Þ":"Þ","Þ":"Þ","ß":"ß","ß":"ß","à":"à","à":"à","á":"á","á":"á","â":"â","â":"â","ã":"ã","ã":"ã","ä":"ä","ä":"ä","å":"å","å":"å","æ":"æ","æ":"æ","ç":"ç","ç":"ç","è":"è","è":"è","é":"é","é":"é","ê":"ê","ê":"ê","ë":"ë","ë":"ë","ì":"ì","ì":"ì","í":"í","í":"í","î":"î","î":"î","ï":"ï","ï":"ï","ð":"ð","ð":"ð","ñ":"ñ","ñ":"ñ","ò":"ò","ò":"ò","ó":"ó","ó":"ó","ô":"ô","ô":"ô","õ":"õ","õ":"õ","ö":"ö","ö":"ö","÷":"÷","÷":"÷","ø":"ø","ø":"ø","ù":"ù","ù":"ù","ú":"ú","ú":"ú","û":"û","û":"û","ü":"ü","ü":"ü","ý":"ý","ý":"ý","þ":"þ","þ":"þ","ÿ":"ÿ","ÿ":"ÿ",""":'"',""":'"',"&":"&","&":"&","<":"<","<":"<",">":">",">":">","Œ":"Œ","œ":"œ","Š":"Š","š":"š","Ÿ":"Ÿ","ˆ":"ˆ","˜":"˜"," ":" "," ":" "," ":" ","‌":"‌","‍":"‍","‎":"‎","‏":"‏","–":"–","—":"—","‘":"‘","’":"’","‚":"‚","“":"“","”":"”","„":"„","†":"†","‡":"‡","‰":"‰","‹":"‹","›":"›","€":"€","ƒ":"ƒ","Α":"Α","Β":"Β","Γ":"Γ","Δ":"Δ","Ε":"Ε","Ζ":"Ζ","Η":"Η","Θ":"Θ","Ι":"Ι","Κ":"Κ","Λ":"Λ","Μ":"Μ","Ν":"Ν","Ξ":"Ξ","Ο":"Ο","Π":"Π","Ρ":"Ρ","Σ":"Σ","Τ":"Τ","Υ":"Υ","Φ":"Φ","Χ":"Χ","Ψ":"Ψ","Ω":"Ω","α":"α","β":"β","γ":"γ","δ":"δ","ε":"ε","ζ":"ζ","η":"η","θ":"θ","ι":"ι","κ":"κ","λ":"λ","μ":"μ","ν":"ν","ξ":"ξ","ο":"ο","π":"π","ρ":"ρ","ς":"ς","σ":"σ","τ":"τ","υ":"υ","φ":"φ","χ":"χ","ψ":"ψ","ω":"ω","ϑ":"ϑ","ϒ":"ϒ","ϖ":"ϖ","•":"•","…":"…","′":"′","″":"″","‾":"‾","⁄":"⁄","℘":"℘","ℑ":"ℑ","ℜ":"ℜ","™":"™","ℵ":"ℵ","←":"←","↑":"↑","→":"→","↓":"↓","↔":"↔","↵":"↵","⇐":"⇐","⇑":"⇑","⇒":"⇒","⇓":"⇓","⇔":"⇔","∀":"∀","∂":"∂","∃":"∃","∅":"∅","∇":"∇","∈":"∈","∉":"∉","∋":"∋","∏":"∏","∑":"∑","−":"−","∗":"∗","√":"√","∝":"∝","∞":"∞","∠":"∠","∧":"∧","∨":"∨","∩":"∩","∪":"∪","∫":"∫","∴":"∴","∼":"∼","≅":"≅","≈":"≈","≠":"≠","≡":"≡","≤":"≤","≥":"≥","⊂":"⊂","⊃":"⊃","⊄":"⊄","⊆":"⊆","⊇":"⊇","⊕":"⊕","⊗":"⊗","⊥":"⊥","⋅":"⋅","⌈":"⌈","⌉":"⌉","⌊":"⌊","⌋":"⌋","⟨":"〈","⟩":"〉","◊":"◊","♠":"♠","♣":"♣","♥":"♥","♦":"♦"},characters:{"'":"'"," ":" ","¡":"¡","¢":"¢","£":"£","¤":"¤","¥":"¥","¦":"¦","§":"§","¨":"¨","©":"©","ª":"ª","«":"«","¬":"¬","­":"­","®":"®","¯":"¯","°":"°","±":"±","²":"²","³":"³","´":"´","µ":"µ","¶":"¶","·":"·","¸":"¸","¹":"¹","º":"º","»":"»","¼":"¼","½":"½","¾":"¾","¿":"¿","À":"À","Á":"Á","Â":"Â","Ã":"Ã","Ä":"Ä","Å":"Å","Æ":"Æ","Ç":"Ç","È":"È","É":"É","Ê":"Ê","Ë":"Ë","Ì":"Ì","Í":"Í","Î":"Î","Ï":"Ï","Ð":"Ð","Ñ":"Ñ","Ò":"Ò","Ó":"Ó","Ô":"Ô","Õ":"Õ","Ö":"Ö","×":"×","Ø":"Ø","Ù":"Ù","Ú":"Ú","Û":"Û","Ü":"Ü","Ý":"Ý","Þ":"Þ","ß":"ß","à":"à","á":"á","â":"â","ã":"ã","ä":"ä","å":"å","æ":"æ","ç":"ç","è":"è","é":"é","ê":"ê","ë":"ë","ì":"ì","í":"í","î":"î","ï":"ï","ð":"ð","ñ":"ñ","ò":"ò","ó":"ó","ô":"ô","õ":"õ","ö":"ö","÷":"÷","ø":"ø","ù":"ù","ú":"ú","û":"û","ü":"ü","ý":"ý","þ":"þ","ÿ":"ÿ",'"':""","&":"&","<":"<",">":">","Œ":"Œ","œ":"œ","Š":"Š","š":"š","Ÿ":"Ÿ","ˆ":"ˆ","˜":"˜"," ":" "," ":" "," ":" ","‌":"‌","‍":"‍","‎":"‎","‏":"‏","–":"–","—":"—","‘":"‘","’":"’","‚":"‚","“":"“","”":"”","„":"„","†":"†","‡":"‡","‰":"‰","‹":"‹","›":"›","€":"€","ƒ":"ƒ","Α":"Α","Β":"Β","Γ":"Γ","Δ":"Δ","Ε":"Ε","Ζ":"Ζ","Η":"Η","Θ":"Θ","Ι":"Ι","Κ":"Κ","Λ":"Λ","Μ":"Μ","Ν":"Ν","Ξ":"Ξ","Ο":"Ο","Π":"Π","Ρ":"Ρ","Σ":"Σ","Τ":"Τ","Υ":"Υ","Φ":"Φ","Χ":"Χ","Ψ":"Ψ","Ω":"Ω","α":"α","β":"β","γ":"γ","δ":"δ","ε":"ε","ζ":"ζ","η":"η","θ":"θ","ι":"ι","κ":"κ","λ":"λ","μ":"μ","ν":"ν","ξ":"ξ","ο":"ο","π":"π","ρ":"ρ","ς":"ς","σ":"σ","τ":"τ","υ":"υ","φ":"φ","χ":"χ","ψ":"ψ","ω":"ω","ϑ":"ϑ","ϒ":"ϒ","ϖ":"ϖ","•":"•","…":"…","′":"′","″":"″","‾":"‾","⁄":"⁄","℘":"℘","ℑ":"ℑ","ℜ":"ℜ","™":"™","ℵ":"ℵ","←":"←","↑":"↑","→":"→","↓":"↓","↔":"↔","↵":"↵","⇐":"⇐","⇑":"⇑","⇒":"⇒","⇓":"⇓","⇔":"⇔","∀":"∀","∂":"∂","∃":"∃","∅":"∅","∇":"∇","∈":"∈","∉":"∉","∋":"∋","∏":"∏","∑":"∑","−":"−","∗":"∗","√":"√","∝":"∝","∞":"∞","∠":"∠","∧":"∧","∨":"∨","∩":"∩","∪":"∪","∫":"∫","∴":"∴","∼":"∼","≅":"≅","≈":"≈","≠":"≠","≡":"≡","≤":"≤","≥":"≥","⊂":"⊂","⊃":"⊃","⊄":"⊄","⊆":"⊆","⊇":"⊇","⊕":"⊕","⊗":"⊗","⊥":"⊥","⋅":"⋅","⌈":"⌈","⌉":"⌉","⌊":"⌊","⌋":"⌋","〈":"⟨","〉":"⟩","◊":"◊","♠":"♠","♣":"♣","♥":"♥","♦":"♦"}},html5:{entities:{"Æ":"Æ","Æ":"Æ","&":"&","&":"&","Á":"Á","Á":"Á","Ă":"Ă","Â":"Â","Â":"Â","А":"А","𝔄":"𝔄","À":"À","À":"À","Α":"Α","Ā":"Ā","⩓":"⩓","Ą":"Ą","𝔸":"𝔸","⁡":"⁡","Å":"Å","Å":"Å","𝒜":"𝒜","≔":"≔","Ã":"Ã","Ã":"Ã","Ä":"Ä","Ä":"Ä","∖":"∖","⫧":"⫧","⌆":"⌆","Б":"Б","∵":"∵","ℬ":"ℬ","Β":"Β","𝔅":"𝔅","𝔹":"𝔹","˘":"˘","ℬ":"ℬ","≎":"≎","Ч":"Ч","©":"©","©":"©","Ć":"Ć","⋒":"⋒","ⅅ":"ⅅ","ℭ":"ℭ","Č":"Č","Ç":"Ç","Ç":"Ç","Ĉ":"Ĉ","∰":"∰","Ċ":"Ċ","¸":"¸","·":"·","ℭ":"ℭ","Χ":"Χ","⊙":"⊙","⊖":"⊖","⊕":"⊕","⊗":"⊗","∲":"∲","”":"”","’":"’","∷":"∷","⩴":"⩴","≡":"≡","∯":"∯","∮":"∮","ℂ":"ℂ","∐":"∐","∳":"∳","⨯":"⨯","𝒞":"𝒞","⋓":"⋓","≍":"≍","ⅅ":"ⅅ","⤑":"⤑","Ђ":"Ђ","Ѕ":"Ѕ","Џ":"Џ","‡":"‡","↡":"↡","⫤":"⫤","Ď":"Ď","Д":"Д","∇":"∇","Δ":"Δ","𝔇":"𝔇","´":"´","˙":"˙","˝":"˝","`":"`","˜":"˜","⋄":"⋄","ⅆ":"ⅆ","𝔻":"𝔻","¨":"¨","⃜":"⃜","≐":"≐","∯":"∯","¨":"¨","⇓":"⇓","⇐":"⇐","⇔":"⇔","⫤":"⫤","⟸":"⟸","⟺":"⟺","⟹":"⟹","⇒":"⇒","⊨":"⊨","⇑":"⇑","⇕":"⇕","∥":"∥","↓":"↓","⤓":"⤓","⇵":"⇵","̑":"̑","⥐":"⥐","⥞":"⥞","↽":"↽","⥖":"⥖","⥟":"⥟","⇁":"⇁","⥗":"⥗","⊤":"⊤","↧":"↧","⇓":"⇓","𝒟":"𝒟","Đ":"Đ","Ŋ":"Ŋ","Ð":"Ð","Ð":"Ð","É":"É","É":"É","Ě":"Ě","Ê":"Ê","Ê":"Ê","Э":"Э","Ė":"Ė","𝔈":"𝔈","È":"È","È":"È","∈":"∈","Ē":"Ē","◻":"◻","▫":"▫","Ę":"Ę","𝔼":"𝔼","Ε":"Ε","⩵":"⩵","≂":"≂","⇌":"⇌","ℰ":"ℰ","⩳":"⩳","Η":"Η","Ë":"Ë","Ë":"Ë","∃":"∃","ⅇ":"ⅇ","Ф":"Ф","𝔉":"𝔉","◼":"◼","▪":"▪","𝔽":"𝔽","∀":"∀","ℱ":"ℱ","ℱ":"ℱ","Ѓ":"Ѓ",">":">",">":">","Γ":"Γ","Ϝ":"Ϝ","Ğ":"Ğ","Ģ":"Ģ","Ĝ":"Ĝ","Г":"Г","Ġ":"Ġ","𝔊":"𝔊","⋙":"⋙","𝔾":"𝔾","≥":"≥","⋛":"⋛","≧":"≧","⪢":"⪢","≷":"≷","⩾":"⩾","≳":"≳","𝒢":"𝒢","≫":"≫","Ъ":"Ъ","ˇ":"ˇ","^":"^","Ĥ":"Ĥ","ℌ":"ℌ","ℋ":"ℋ","ℍ":"ℍ","─":"─","ℋ":"ℋ","Ħ":"Ħ","≎":"≎","≏":"≏","Е":"Е","IJ":"IJ","Ё":"Ё","Í":"Í","Í":"Í","Î":"Î","Î":"Î","И":"И","İ":"İ","ℑ":"ℑ","Ì":"Ì","Ì":"Ì","ℑ":"ℑ","Ī":"Ī","ⅈ":"ⅈ","⇒":"⇒","∬":"∬","∫":"∫","⋂":"⋂","⁣":"⁣","⁢":"⁢","Į":"Į","𝕀":"𝕀","Ι":"Ι","ℐ":"ℐ","Ĩ":"Ĩ","І":"І","Ï":"Ï","Ï":"Ï","Ĵ":"Ĵ","Й":"Й","𝔍":"𝔍","𝕁":"𝕁","𝒥":"𝒥","Ј":"Ј","Є":"Є","Х":"Х","Ќ":"Ќ","Κ":"Κ","Ķ":"Ķ","К":"К","𝔎":"𝔎","𝕂":"𝕂","𝒦":"𝒦","Љ":"Љ","<":"<","<":"<","Ĺ":"Ĺ","Λ":"Λ","⟪":"⟪","ℒ":"ℒ","↞":"↞","Ľ":"Ľ","Ļ":"Ļ","Л":"Л","⟨":"⟨","←":"←","⇤":"⇤","⇆":"⇆","⌈":"⌈","⟦":"⟦","⥡":"⥡","⇃":"⇃","⥙":"⥙","⌊":"⌊","↔":"↔","⥎":"⥎","⊣":"⊣","↤":"↤","⥚":"⥚","⊲":"⊲","⧏":"⧏","⊴":"⊴","⥑":"⥑","⥠":"⥠","↿":"↿","⥘":"⥘","↼":"↼","⥒":"⥒","⇐":"⇐","⇔":"⇔","⋚":"⋚","≦":"≦","≶":"≶","⪡":"⪡","⩽":"⩽","≲":"≲","𝔏":"𝔏","⋘":"⋘","⇚":"⇚","Ŀ":"Ŀ","⟵":"⟵","⟷":"⟷","⟶":"⟶","⟸":"⟸","⟺":"⟺","⟹":"⟹","𝕃":"𝕃","↙":"↙","↘":"↘","ℒ":"ℒ","↰":"↰","Ł":"Ł","≪":"≪","⤅":"⤅","М":"М"," ":" ","ℳ":"ℳ","𝔐":"𝔐","∓":"∓","𝕄":"𝕄","ℳ":"ℳ","Μ":"Μ","Њ":"Њ","Ń":"Ń","Ň":"Ň","Ņ":"Ņ","Н":"Н","​":"​","​":"​","​":"​","​":"​","≫":"≫","≪":"≪"," ":"\n","𝔑":"𝔑","⁠":"⁠"," ":" ","ℕ":"ℕ","⫬":"⫬","≢":"≢","≭":"≭","∦":"∦","∉":"∉","≠":"≠","≂̸":"≂̸","∄":"∄","≯":"≯","≱":"≱","≧̸":"≧̸","≫̸":"≫̸","≹":"≹","⩾̸":"⩾̸","≵":"≵","≎̸":"≎̸","≏̸":"≏̸","⋪":"⋪","⧏̸":"⧏̸","⋬":"⋬","≮":"≮","≰":"≰","≸":"≸","≪̸":"≪̸","⩽̸":"⩽̸","≴":"≴","⪢̸":"⪢̸","⪡̸":"⪡̸","⊀":"⊀","⪯̸":"⪯̸","⋠":"⋠","∌":"∌","⋫":"⋫","⧐̸":"⧐̸","⋭":"⋭","⊏̸":"⊏̸","⋢":"⋢","⊐̸":"⊐̸","⋣":"⋣","⊂⃒":"⊂⃒","⊈":"⊈","⊁":"⊁","⪰̸":"⪰̸","⋡":"⋡","≿̸":"≿̸","⊃⃒":"⊃⃒","⊉":"⊉","≁":"≁","≄":"≄","≇":"≇","≉":"≉","∤":"∤","𝒩":"𝒩","Ñ":"Ñ","Ñ":"Ñ","Ν":"Ν","Œ":"Œ","Ó":"Ó","Ó":"Ó","Ô":"Ô","Ô":"Ô","О":"О","Ő":"Ő","𝔒":"𝔒","Ò":"Ò","Ò":"Ò","Ō":"Ō","Ω":"Ω","Ο":"Ο","𝕆":"𝕆","“":"“","‘":"‘","⩔":"⩔","𝒪":"𝒪","Ø":"Ø","Ø":"Ø","Õ":"Õ","Õ":"Õ","⨷":"⨷","Ö":"Ö","Ö":"Ö","‾":"‾","⏞":"⏞","⎴":"⎴","⏜":"⏜","∂":"∂","П":"П","𝔓":"𝔓","Φ":"Φ","Π":"Π","±":"±","ℌ":"ℌ","ℙ":"ℙ","⪻":"⪻","≺":"≺","⪯":"⪯","≼":"≼","≾":"≾","″":"″","∏":"∏","∷":"∷","∝":"∝","𝒫":"𝒫","Ψ":"Ψ",""":'"',""":'"',"𝔔":"𝔔","ℚ":"ℚ","𝒬":"𝒬","⤐":"⤐","®":"®","®":"®","Ŕ":"Ŕ","⟫":"⟫","↠":"↠","⤖":"⤖","Ř":"Ř","Ŗ":"Ŗ","Р":"Р","ℜ":"ℜ","∋":"∋","⇋":"⇋","⥯":"⥯","ℜ":"ℜ","Ρ":"Ρ","⟩":"⟩","→":"→","⇥":"⇥","⇄":"⇄","⌉":"⌉","⟧":"⟧","⥝":"⥝","⇂":"⇂","⥕":"⥕","⌋":"⌋","⊢":"⊢","↦":"↦","⥛":"⥛","⊳":"⊳","⧐":"⧐","⊵":"⊵","⥏":"⥏","⥜":"⥜","↾":"↾","⥔":"⥔","⇀":"⇀","⥓":"⥓","⇒":"⇒","ℝ":"ℝ","⥰":"⥰","⇛":"⇛","ℛ":"ℛ","↱":"↱","⧴":"⧴","Щ":"Щ","Ш":"Ш","Ь":"Ь","Ś":"Ś","⪼":"⪼","Š":"Š","Ş":"Ş","Ŝ":"Ŝ","С":"С","𝔖":"𝔖","↓":"↓","←":"←","→":"→","↑":"↑","Σ":"Σ","∘":"∘","𝕊":"𝕊","√":"√","□":"□","⊓":"⊓","⊏":"⊏","⊑":"⊑","⊐":"⊐","⊒":"⊒","⊔":"⊔","𝒮":"𝒮","⋆":"⋆","⋐":"⋐","⋐":"⋐","⊆":"⊆","≻":"≻","⪰":"⪰","≽":"≽","≿":"≿","∋":"∋","∑":"∑","⋑":"⋑","⊃":"⊃","⊇":"⊇","⋑":"⋑","Þ":"Þ","Þ":"Þ","™":"™","Ћ":"Ћ","Ц":"Ц"," ":"\t","Τ":"Τ","Ť":"Ť","Ţ":"Ţ","Т":"Т","𝔗":"𝔗","∴":"∴","Θ":"Θ","  ":"  "," ":" ","∼":"∼","≃":"≃","≅":"≅","≈":"≈","𝕋":"𝕋","⃛":"⃛","𝒯":"𝒯","Ŧ":"Ŧ","Ú":"Ú","Ú":"Ú","↟":"↟","⥉":"⥉","Ў":"Ў","Ŭ":"Ŭ","Û":"Û","Û":"Û","У":"У","Ű":"Ű","𝔘":"𝔘","Ù":"Ù","Ù":"Ù","Ū":"Ū","_":"_","⏟":"⏟","⎵":"⎵","⏝":"⏝","⋃":"⋃","⊎":"⊎","Ų":"Ų","𝕌":"𝕌","↑":"↑","⤒":"⤒","⇅":"⇅","↕":"↕","⥮":"⥮","⊥":"⊥","↥":"↥","⇑":"⇑","⇕":"⇕","↖":"↖","↗":"↗","ϒ":"ϒ","Υ":"Υ","Ů":"Ů","𝒰":"𝒰","Ũ":"Ũ","Ü":"Ü","Ü":"Ü","⊫":"⊫","⫫":"⫫","В":"В","⊩":"⊩","⫦":"⫦","⋁":"⋁","‖":"‖","‖":"‖","∣":"∣","|":"|","❘":"❘","≀":"≀"," ":" ","𝔙":"𝔙","𝕍":"𝕍","𝒱":"𝒱","⊪":"⊪","Ŵ":"Ŵ","⋀":"⋀","𝔚":"𝔚","𝕎":"𝕎","𝒲":"𝒲","𝔛":"𝔛","Ξ":"Ξ","𝕏":"𝕏","𝒳":"𝒳","Я":"Я","Ї":"Ї","Ю":"Ю","Ý":"Ý","Ý":"Ý","Ŷ":"Ŷ","Ы":"Ы","𝔜":"𝔜","𝕐":"𝕐","𝒴":"𝒴","Ÿ":"Ÿ","Ж":"Ж","Ź":"Ź","Ž":"Ž","З":"З","Ż":"Ż","​":"​","Ζ":"Ζ","ℨ":"ℨ","ℤ":"ℤ","𝒵":"𝒵","á":"á","á":"á","ă":"ă","∾":"∾","∾̳":"∾̳","∿":"∿","â":"â","â":"â","´":"´","´":"´","а":"а","æ":"æ","æ":"æ","⁡":"⁡","𝔞":"𝔞","à":"à","à":"à","ℵ":"ℵ","ℵ":"ℵ","α":"α","ā":"ā","⨿":"⨿","&":"&","&":"&","∧":"∧","⩕":"⩕","⩜":"⩜","⩘":"⩘","⩚":"⩚","∠":"∠","⦤":"⦤","∠":"∠","∡":"∡","⦨":"⦨","⦩":"⦩","⦪":"⦪","⦫":"⦫","⦬":"⦬","⦭":"⦭","⦮":"⦮","⦯":"⦯","∟":"∟","⊾":"⊾","⦝":"⦝","∢":"∢","Å":"Å","⍼":"⍼","ą":"ą","𝕒":"𝕒","≈":"≈","⩰":"⩰","⩯":"⩯","≊":"≊","≋":"≋","'":"'","≈":"≈","≊":"≊","å":"å","å":"å","𝒶":"𝒶","*":"*","≈":"≈","≍":"≍","ã":"ã","ã":"ã","ä":"ä","ä":"ä","∳":"∳","⨑":"⨑","⫭":"⫭","≌":"≌","϶":"϶","‵":"‵","∽":"∽","⋍":"⋍","⊽":"⊽","⌅":"⌅","⌅":"⌅","⎵":"⎵","⎶":"⎶","≌":"≌","б":"б","„":"„","∵":"∵","∵":"∵","⦰":"⦰","϶":"϶","ℬ":"ℬ","β":"β","ℶ":"ℶ","≬":"≬","𝔟":"𝔟","⋂":"⋂","◯":"◯","⋃":"⋃","⨀":"⨀","⨁":"⨁","⨂":"⨂","⨆":"⨆","★":"★","▽":"▽","△":"△","⨄":"⨄","⋁":"⋁","⋀":"⋀","⤍":"⤍","⧫":"⧫","▪":"▪","▴":"▴","▾":"▾","◂":"◂","▸":"▸","␣":"␣","▒":"▒","░":"░","▓":"▓","█":"█","=⃥":"=⃥","≡⃥":"≡⃥","⌐":"⌐","𝕓":"𝕓","⊥":"⊥","⊥":"⊥","⋈":"⋈","╗":"╗","╔":"╔","╖":"╖","╓":"╓","═":"═","╦":"╦","╩":"╩","╤":"╤","╧":"╧","╝":"╝","╚":"╚","╜":"╜","╙":"╙","║":"║","╬":"╬","╣":"╣","╠":"╠","╫":"╫","╢":"╢","╟":"╟","⧉":"⧉","╕":"╕","╒":"╒","┐":"┐","┌":"┌","─":"─","╥":"╥","╨":"╨","┬":"┬","┴":"┴","⊟":"⊟","⊞":"⊞","⊠":"⊠","╛":"╛","╘":"╘","┘":"┘","└":"└","│":"│","╪":"╪","╡":"╡","╞":"╞","┼":"┼","┤":"┤","├":"├","‵":"‵","˘":"˘","¦":"¦","¦":"¦","𝒷":"𝒷","⁏":"⁏","∽":"∽","⋍":"⋍","\":"\\","⧅":"⧅","⟈":"⟈","•":"•","•":"•","≎":"≎","⪮":"⪮","≏":"≏","≏":"≏","ć":"ć","∩":"∩","⩄":"⩄","⩉":"⩉","⩋":"⩋","⩇":"⩇","⩀":"⩀","∩︀":"∩︀","⁁":"⁁","ˇ":"ˇ","⩍":"⩍","č":"č","ç":"ç","ç":"ç","ĉ":"ĉ","⩌":"⩌","⩐":"⩐","ċ":"ċ","¸":"¸","¸":"¸","⦲":"⦲","¢":"¢","¢":"¢","·":"·","𝔠":"𝔠","ч":"ч","✓":"✓","✓":"✓","χ":"χ","○":"○","⧃":"⧃","ˆ":"ˆ","≗":"≗","↺":"↺","↻":"↻","®":"®","Ⓢ":"Ⓢ","⊛":"⊛","⊚":"⊚","⊝":"⊝","≗":"≗","⨐":"⨐","⫯":"⫯","⧂":"⧂","♣":"♣","♣":"♣",":":":","≔":"≔","≔":"≔",",":",","@":"@","∁":"∁","∘":"∘","∁":"∁","ℂ":"ℂ","≅":"≅","⩭":"⩭","∮":"∮","𝕔":"𝕔","∐":"∐","©":"©","©":"©","℗":"℗","↵":"↵","✗":"✗","𝒸":"𝒸","⫏":"⫏","⫑":"⫑","⫐":"⫐","⫒":"⫒","⋯":"⋯","⤸":"⤸","⤵":"⤵","⋞":"⋞","⋟":"⋟","↶":"↶","⤽":"⤽","∪":"∪","⩈":"⩈","⩆":"⩆","⩊":"⩊","⊍":"⊍","⩅":"⩅","∪︀":"∪︀","↷":"↷","⤼":"⤼","⋞":"⋞","⋟":"⋟","⋎":"⋎","⋏":"⋏","¤":"¤","¤":"¤","↶":"↶","↷":"↷","⋎":"⋎","⋏":"⋏","∲":"∲","∱":"∱","⌭":"⌭","⇓":"⇓","⥥":"⥥","†":"†","ℸ":"ℸ","↓":"↓","‐":"‐","⊣":"⊣","⤏":"⤏","˝":"˝","ď":"ď","д":"д","ⅆ":"ⅆ","‡":"‡","⇊":"⇊","⩷":"⩷","°":"°","°":"°","δ":"δ","⦱":"⦱","⥿":"⥿","𝔡":"𝔡","⇃":"⇃","⇂":"⇂","⋄":"⋄","⋄":"⋄","♦":"♦","♦":"♦","¨":"¨","ϝ":"ϝ","⋲":"⋲","÷":"÷","÷":"÷","÷":"÷","⋇":"⋇","⋇":"⋇","ђ":"ђ","⌞":"⌞","⌍":"⌍","$":"$","𝕕":"𝕕","˙":"˙","≐":"≐","≑":"≑","∸":"∸","∔":"∔","⊡":"⊡","⌆":"⌆","↓":"↓","⇊":"⇊","⇃":"⇃","⇂":"⇂","⤐":"⤐","⌟":"⌟","⌌":"⌌","𝒹":"𝒹","ѕ":"ѕ","⧶":"⧶","đ":"đ","⋱":"⋱","▿":"▿","▾":"▾","⇵":"⇵","⥯":"⥯","⦦":"⦦","џ":"џ","⟿":"⟿","⩷":"⩷","≑":"≑","é":"é","é":"é","⩮":"⩮","ě":"ě","≖":"≖","ê":"ê","ê":"ê","≕":"≕","э":"э","ė":"ė","ⅇ":"ⅇ","≒":"≒","𝔢":"𝔢","⪚":"⪚","è":"è","è":"è","⪖":"⪖","⪘":"⪘","⪙":"⪙","⏧":"⏧","ℓ":"ℓ","⪕":"⪕","⪗":"⪗","ē":"ē","∅":"∅","∅":"∅","∅":"∅"," ":" "," ":" "," ":" ","ŋ":"ŋ"," ":" ","ę":"ę","𝕖":"𝕖","⋕":"⋕","⧣":"⧣","⩱":"⩱","ε":"ε","ε":"ε","ϵ":"ϵ","≖":"≖","≕":"≕","≂":"≂","⪖":"⪖","⪕":"⪕","=":"=","≟":"≟","≡":"≡","⩸":"⩸","⧥":"⧥","≓":"≓","⥱":"⥱","ℯ":"ℯ","≐":"≐","≂":"≂","η":"η","ð":"ð","ð":"ð","ë":"ë","ë":"ë","€":"€","!":"!","∃":"∃","ℰ":"ℰ","ⅇ":"ⅇ","≒":"≒","ф":"ф","♀":"♀","ffi":"ffi","ff":"ff","ffl":"ffl","𝔣":"𝔣","fi":"fi","fj":"fj","♭":"♭","fl":"fl","▱":"▱","ƒ":"ƒ","𝕗":"𝕗","∀":"∀","⋔":"⋔","⫙":"⫙","⨍":"⨍","½":"½","½":"½","⅓":"⅓","¼":"¼","¼":"¼","⅕":"⅕","⅙":"⅙","⅛":"⅛","⅔":"⅔","⅖":"⅖","¾":"¾","¾":"¾","⅗":"⅗","⅜":"⅜","⅘":"⅘","⅚":"⅚","⅝":"⅝","⅞":"⅞","⁄":"⁄","⌢":"⌢","𝒻":"𝒻","≧":"≧","⪌":"⪌","ǵ":"ǵ","γ":"γ","ϝ":"ϝ","⪆":"⪆","ğ":"ğ","ĝ":"ĝ","г":"г","ġ":"ġ","≥":"≥","⋛":"⋛","≥":"≥","≧":"≧","⩾":"⩾","⩾":"⩾","⪩":"⪩","⪀":"⪀","⪂":"⪂","⪄":"⪄","⋛︀":"⋛︀","⪔":"⪔","𝔤":"𝔤","≫":"≫","⋙":"⋙","ℷ":"ℷ","ѓ":"ѓ","≷":"≷","⪒":"⪒","⪥":"⪥","⪤":"⪤","≩":"≩","⪊":"⪊","⪊":"⪊","⪈":"⪈","⪈":"⪈","≩":"≩","⋧":"⋧","𝕘":"𝕘","`":"`","ℊ":"ℊ","≳":"≳","⪎":"⪎","⪐":"⪐",">":">",">":">","⪧":"⪧","⩺":"⩺","⋗":"⋗","⦕":"⦕","⩼":"⩼","⪆":"⪆","⥸":"⥸","⋗":"⋗","⋛":"⋛","⪌":"⪌","≷":"≷","≳":"≳","≩︀":"≩︀","≩︀":"≩︀","⇔":"⇔"," ":" ","½":"½","ℋ":"ℋ","ъ":"ъ","↔":"↔","⥈":"⥈","↭":"↭","ℏ":"ℏ","ĥ":"ĥ","♥":"♥","♥":"♥","…":"…","⊹":"⊹","𝔥":"𝔥","⤥":"⤥","⤦":"⤦","⇿":"⇿","∻":"∻","↩":"↩","↪":"↪","𝕙":"𝕙","―":"―","𝒽":"𝒽","ℏ":"ℏ","ħ":"ħ","⁃":"⁃","‐":"‐","í":"í","í":"í","⁣":"⁣","î":"î","î":"î","и":"и","е":"е","¡":"¡","¡":"¡","⇔":"⇔","𝔦":"𝔦","ì":"ì","ì":"ì","ⅈ":"ⅈ","⨌":"⨌","∭":"∭","⧜":"⧜","℩":"℩","ij":"ij","ī":"ī","ℑ":"ℑ","ℐ":"ℐ","ℑ":"ℑ","ı":"ı","⊷":"⊷","Ƶ":"Ƶ","∈":"∈","℅":"℅","∞":"∞","⧝":"⧝","ı":"ı","∫":"∫","⊺":"⊺","ℤ":"ℤ","⊺":"⊺","⨗":"⨗","⨼":"⨼","ё":"ё","į":"į","𝕚":"𝕚","ι":"ι","⨼":"⨼","¿":"¿","¿":"¿","𝒾":"𝒾","∈":"∈","⋹":"⋹","⋵":"⋵","⋴":"⋴","⋳":"⋳","∈":"∈","⁢":"⁢","ĩ":"ĩ","і":"і","ï":"ï","ï":"ï","ĵ":"ĵ","й":"й","𝔧":"𝔧","ȷ":"ȷ","𝕛":"𝕛","𝒿":"𝒿","ј":"ј","є":"є","κ":"κ","ϰ":"ϰ","ķ":"ķ","к":"к","𝔨":"𝔨","ĸ":"ĸ","х":"х","ќ":"ќ","𝕜":"𝕜","𝓀":"𝓀","⇚":"⇚","⇐":"⇐","⤛":"⤛","⤎":"⤎","≦":"≦","⪋":"⪋","⥢":"⥢","ĺ":"ĺ","⦴":"⦴","ℒ":"ℒ","λ":"λ","⟨":"⟨","⦑":"⦑","⟨":"⟨","⪅":"⪅","«":"«","«":"«","←":"←","⇤":"⇤","⤟":"⤟","⤝":"⤝","↩":"↩","↫":"↫","⤹":"⤹","⥳":"⥳","↢":"↢","⪫":"⪫","⤙":"⤙","⪭":"⪭","⪭︀":"⪭︀","⤌":"⤌","❲":"❲","{":"{","[":"[","⦋":"⦋","⦏":"⦏","⦍":"⦍","ľ":"ľ","ļ":"ļ","⌈":"⌈","{":"{","л":"л","⤶":"⤶","“":"“","„":"„","⥧":"⥧","⥋":"⥋","↲":"↲","≤":"≤","←":"←","↢":"↢","↽":"↽","↼":"↼","⇇":"⇇","↔":"↔","⇆":"⇆","⇋":"⇋","↭":"↭","⋋":"⋋","⋚":"⋚","≤":"≤","≦":"≦","⩽":"⩽","⩽":"⩽","⪨":"⪨","⩿":"⩿","⪁":"⪁","⪃":"⪃","⋚︀":"⋚︀","⪓":"⪓","⪅":"⪅","⋖":"⋖","⋚":"⋚","⪋":"⪋","≶":"≶","≲":"≲","⥼":"⥼","⌊":"⌊","𝔩":"𝔩","≶":"≶","⪑":"⪑","↽":"↽","↼":"↼","⥪":"⥪","▄":"▄","љ":"љ","≪":"≪","⇇":"⇇","⌞":"⌞","⥫":"⥫","◺":"◺","ŀ":"ŀ","⎰":"⎰","⎰":"⎰","≨":"≨","⪉":"⪉","⪉":"⪉","⪇":"⪇","⪇":"⪇","≨":"≨","⋦":"⋦","⟬":"⟬","⇽":"⇽","⟦":"⟦","⟵":"⟵","⟷":"⟷","⟼":"⟼","⟶":"⟶","↫":"↫","↬":"↬","⦅":"⦅","𝕝":"𝕝","⨭":"⨭","⨴":"⨴","∗":"∗","_":"_","◊":"◊","◊":"◊","⧫":"⧫","(":"(","⦓":"⦓","⇆":"⇆","⌟":"⌟","⇋":"⇋","⥭":"⥭","‎":"‎","⊿":"⊿","‹":"‹","𝓁":"𝓁","↰":"↰","≲":"≲","⪍":"⪍","⪏":"⪏","[":"[","‘":"‘","‚":"‚","ł":"ł","<":"<","<":"<","⪦":"⪦","⩹":"⩹","⋖":"⋖","⋋":"⋋","⋉":"⋉","⥶":"⥶","⩻":"⩻","⦖":"⦖","◃":"◃","⊴":"⊴","◂":"◂","⥊":"⥊","⥦":"⥦","≨︀":"≨︀","≨︀":"≨︀","∺":"∺","¯":"¯","¯":"¯","♂":"♂","✠":"✠","✠":"✠","↦":"↦","↦":"↦","↧":"↧","↤":"↤","↥":"↥","▮":"▮","⨩":"⨩","м":"м","—":"—","∡":"∡","𝔪":"𝔪","℧":"℧","µ":"µ","µ":"µ","∣":"∣","*":"*","⫰":"⫰","·":"·","·":"·","−":"−","⊟":"⊟","∸":"∸","⨪":"⨪","⫛":"⫛","…":"…","∓":"∓","⊧":"⊧","𝕞":"𝕞","∓":"∓","𝓂":"𝓂","∾":"∾","μ":"μ","⊸":"⊸","⊸":"⊸","⋙̸":"⋙̸","≫⃒":"≫⃒","≫̸":"≫̸","⇍":"⇍","⇎":"⇎","⋘̸":"⋘̸","≪⃒":"≪⃒","≪̸":"≪̸","⇏":"⇏","⊯":"⊯","⊮":"⊮","∇":"∇","ń":"ń","∠⃒":"∠⃒","≉":"≉","⩰̸":"⩰̸","≋̸":"≋̸","ʼn":"ʼn","≉":"≉","♮":"♮","♮":"♮","ℕ":"ℕ"," ":" "," ":" ","≎̸":"≎̸","≏̸":"≏̸","⩃":"⩃","ň":"ň","ņ":"ņ","≇":"≇","⩭̸":"⩭̸","⩂":"⩂","н":"н","–":"–","≠":"≠","⇗":"⇗","⤤":"⤤","↗":"↗","↗":"↗","≐̸":"≐̸","≢":"≢","⤨":"⤨","≂̸":"≂̸","∄":"∄","∄":"∄","𝔫":"𝔫","≧̸":"≧̸","≱":"≱","≱":"≱","≧̸":"≧̸","⩾̸":"⩾̸","⩾̸":"⩾̸","≵":"≵","≯":"≯","≯":"≯","⇎":"⇎","↮":"↮","⫲":"⫲","∋":"∋","⋼":"⋼","⋺":"⋺","∋":"∋","њ":"њ","⇍":"⇍","≦̸":"≦̸","↚":"↚","‥":"‥","≰":"≰","↚":"↚","↮":"↮","≰":"≰","≦̸":"≦̸","⩽̸":"⩽̸","⩽̸":"⩽̸","≮":"≮","≴":"≴","≮":"≮","⋪":"⋪","⋬":"⋬","∤":"∤","𝕟":"𝕟","¬":"¬","¬":"¬","∉":"∉","⋹̸":"⋹̸","⋵̸":"⋵̸","∉":"∉","⋷":"⋷","⋶":"⋶","∌":"∌","∌":"∌","⋾":"⋾","⋽":"⋽","∦":"∦","∦":"∦","⫽⃥":"⫽⃥","∂̸":"∂̸","⨔":"⨔","⊀":"⊀","⋠":"⋠","⪯̸":"⪯̸","⊀":"⊀","⪯̸":"⪯̸","⇏":"⇏","↛":"↛","⤳̸":"⤳̸","↝̸":"↝̸","↛":"↛","⋫":"⋫","⋭":"⋭","⊁":"⊁","⋡":"⋡","⪰̸":"⪰̸","𝓃":"𝓃","∤":"∤","∦":"∦","≁":"≁","≄":"≄","≄":"≄","∤":"∤","∦":"∦","⋢":"⋢","⋣":"⋣","⊄":"⊄","⫅̸":"⫅̸","⊈":"⊈","⊂⃒":"⊂⃒","⊈":"⊈","⫅̸":"⫅̸","⊁":"⊁","⪰̸":"⪰̸","⊅":"⊅","⫆̸":"⫆̸","⊉":"⊉","⊃⃒":"⊃⃒","⊉":"⊉","⫆̸":"⫆̸","≹":"≹","ñ":"ñ","ñ":"ñ","≸":"≸","⋪":"⋪","⋬":"⋬","⋫":"⋫","⋭":"⋭","ν":"ν","#":"#","№":"№"," ":" ","⊭":"⊭","⤄":"⤄","≍⃒":"≍⃒","⊬":"⊬","≥⃒":"≥⃒",">⃒":">⃒","⧞":"⧞","⤂":"⤂","≤⃒":"≤⃒","<⃒":"<⃒","⊴⃒":"⊴⃒","⤃":"⤃","⊵⃒":"⊵⃒","∼⃒":"∼⃒","⇖":"⇖","⤣":"⤣","↖":"↖","↖":"↖","⤧":"⤧","Ⓢ":"Ⓢ","ó":"ó","ó":"ó","⊛":"⊛","⊚":"⊚","ô":"ô","ô":"ô","о":"о","⊝":"⊝","ő":"ő","⨸":"⨸","⊙":"⊙","⦼":"⦼","œ":"œ","⦿":"⦿","𝔬":"𝔬","˛":"˛","ò":"ò","ò":"ò","⧁":"⧁","⦵":"⦵","Ω":"Ω","∮":"∮","↺":"↺","⦾":"⦾","⦻":"⦻","‾":"‾","⧀":"⧀","ō":"ō","ω":"ω","ο":"ο","⦶":"⦶","⊖":"⊖","𝕠":"𝕠","⦷":"⦷","⦹":"⦹","⊕":"⊕","∨":"∨","↻":"↻","⩝":"⩝","ℴ":"ℴ","ℴ":"ℴ","ª":"ª","ª":"ª","º":"º","º":"º","⊶":"⊶","⩖":"⩖","⩗":"⩗","⩛":"⩛","ℴ":"ℴ","ø":"ø","ø":"ø","⊘":"⊘","õ":"õ","õ":"õ","⊗":"⊗","⨶":"⨶","ö":"ö","ö":"ö","⌽":"⌽","∥":"∥","¶":"¶","¶":"¶","∥":"∥","⫳":"⫳","⫽":"⫽","∂":"∂","п":"п","%":"%",".":".","‰":"‰","⊥":"⊥","‱":"‱","𝔭":"𝔭","φ":"φ","ϕ":"ϕ","ℳ":"ℳ","☎":"☎","π":"π","⋔":"⋔","ϖ":"ϖ","ℏ":"ℏ","ℎ":"ℎ","ℏ":"ℏ","+":"+","⨣":"⨣","⊞":"⊞","⨢":"⨢","∔":"∔","⨥":"⨥","⩲":"⩲","±":"±","±":"±","⨦":"⨦","⨧":"⨧","±":"±","⨕":"⨕","𝕡":"𝕡","£":"£","£":"£","≺":"≺","⪳":"⪳","⪷":"⪷","≼":"≼","⪯":"⪯","≺":"≺","⪷":"⪷","≼":"≼","⪯":"⪯","⪹":"⪹","⪵":"⪵","⋨":"⋨","≾":"≾","′":"′","ℙ":"ℙ","⪵":"⪵","⪹":"⪹","⋨":"⋨","∏":"∏","⌮":"⌮","⌒":"⌒","⌓":"⌓","∝":"∝","∝":"∝","≾":"≾","⊰":"⊰","𝓅":"𝓅","ψ":"ψ"," ":" ","𝔮":"𝔮","⨌":"⨌","𝕢":"𝕢","⁗":"⁗","𝓆":"𝓆","ℍ":"ℍ","⨖":"⨖","?":"?","≟":"≟",""":'"',""":'"',"⇛":"⇛","⇒":"⇒","⤜":"⤜","⤏":"⤏","⥤":"⥤","∽̱":"∽̱","ŕ":"ŕ","√":"√","⦳":"⦳","⟩":"⟩","⦒":"⦒","⦥":"⦥","⟩":"⟩","»":"»","»":"»","→":"→","⥵":"⥵","⇥":"⇥","⤠":"⤠","⤳":"⤳","⤞":"⤞","↪":"↪","↬":"↬","⥅":"⥅","⥴":"⥴","↣":"↣","↝":"↝","⤚":"⤚","∶":"∶","ℚ":"ℚ","⤍":"⤍","❳":"❳","}":"}","]":"]","⦌":"⦌","⦎":"⦎","⦐":"⦐","ř":"ř","ŗ":"ŗ","⌉":"⌉","}":"}","р":"р","⤷":"⤷","⥩":"⥩","”":"”","”":"”","↳":"↳","ℜ":"ℜ","ℛ":"ℛ","ℜ":"ℜ","ℝ":"ℝ","▭":"▭","®":"®","®":"®","⥽":"⥽","⌋":"⌋","𝔯":"𝔯","⇁":"⇁","⇀":"⇀","⥬":"⥬","ρ":"ρ","ϱ":"ϱ","→":"→","↣":"↣","⇁":"⇁","⇀":"⇀","⇄":"⇄","⇌":"⇌","⇉":"⇉","↝":"↝","⋌":"⋌","˚":"˚","≓":"≓","⇄":"⇄","⇌":"⇌","‏":"‏","⎱":"⎱","⎱":"⎱","⫮":"⫮","⟭":"⟭","⇾":"⇾","⟧":"⟧","⦆":"⦆","𝕣":"𝕣","⨮":"⨮","⨵":"⨵",")":")","⦔":"⦔","⨒":"⨒","⇉":"⇉","›":"›","𝓇":"𝓇","↱":"↱","]":"]","’":"’","’":"’","⋌":"⋌","⋊":"⋊","▹":"▹","⊵":"⊵","▸":"▸","⧎":"⧎","⥨":"⥨","℞":"℞","ś":"ś","‚":"‚","≻":"≻","⪴":"⪴","⪸":"⪸","š":"š","≽":"≽","⪰":"⪰","ş":"ş","ŝ":"ŝ","⪶":"⪶","⪺":"⪺","⋩":"⋩","⨓":"⨓","≿":"≿","с":"с","⋅":"⋅","⊡":"⊡","⩦":"⩦","⇘":"⇘","⤥":"⤥","↘":"↘","↘":"↘","§":"§","§":"§",";":";","⤩":"⤩","∖":"∖","∖":"∖","✶":"✶","𝔰":"𝔰","⌢":"⌢","♯":"♯","щ":"щ","ш":"ш","∣":"∣","∥":"∥","­":"­","­":"­","σ":"σ","ς":"ς","ς":"ς","∼":"∼","⩪":"⩪","≃":"≃","≃":"≃","⪞":"⪞","⪠":"⪠","⪝":"⪝","⪟":"⪟","≆":"≆","⨤":"⨤","⥲":"⥲","←":"←","∖":"∖","⨳":"⨳","⧤":"⧤","∣":"∣","⌣":"⌣","⪪":"⪪","⪬":"⪬","⪬︀":"⪬︀","ь":"ь","/":"/","⧄":"⧄","⌿":"⌿","𝕤":"𝕤","♠":"♠","♠":"♠","∥":"∥","⊓":"⊓","⊓︀":"⊓︀","⊔":"⊔","⊔︀":"⊔︀","⊏":"⊏","⊑":"⊑","⊏":"⊏","⊑":"⊑","⊐":"⊐","⊒":"⊒","⊐":"⊐","⊒":"⊒","□":"□","□":"□","▪":"▪","▪":"▪","→":"→","𝓈":"𝓈","∖":"∖","⌣":"⌣","⋆":"⋆","☆":"☆","★":"★","ϵ":"ϵ","ϕ":"ϕ","¯":"¯","⊂":"⊂","⫅":"⫅","⪽":"⪽","⊆":"⊆","⫃":"⫃","⫁":"⫁","⫋":"⫋","⊊":"⊊","⪿":"⪿","⥹":"⥹","⊂":"⊂","⊆":"⊆","⫅":"⫅","⊊":"⊊","⫋":"⫋","⫇":"⫇","⫕":"⫕","⫓":"⫓","≻":"≻","⪸":"⪸","≽":"≽","⪰":"⪰","⪺":"⪺","⪶":"⪶","⋩":"⋩","≿":"≿","∑":"∑","♪":"♪","¹":"¹","¹":"¹","²":"²","²":"²","³":"³","³":"³","⊃":"⊃","⫆":"⫆","⪾":"⪾","⫘":"⫘","⊇":"⊇","⫄":"⫄","⟉":"⟉","⫗":"⫗","⥻":"⥻","⫂":"⫂","⫌":"⫌","⊋":"⊋","⫀":"⫀","⊃":"⊃","⊇":"⊇","⫆":"⫆","⊋":"⊋","⫌":"⫌","⫈":"⫈","⫔":"⫔","⫖":"⫖","⇙":"⇙","⤦":"⤦","↙":"↙","↙":"↙","⤪":"⤪","ß":"ß","ß":"ß","⌖":"⌖","τ":"τ","⎴":"⎴","ť":"ť","ţ":"ţ","т":"т","⃛":"⃛","⌕":"⌕","𝔱":"𝔱","∴":"∴","∴":"∴","θ":"θ","ϑ":"ϑ","ϑ":"ϑ","≈":"≈","∼":"∼"," ":" ","≈":"≈","∼":"∼","þ":"þ","þ":"þ","˜":"˜","×":"×","×":"×","⊠":"⊠","⨱":"⨱","⨰":"⨰","∭":"∭","⤨":"⤨","⊤":"⊤","⌶":"⌶","⫱":"⫱","𝕥":"𝕥","⫚":"⫚","⤩":"⤩","‴":"‴","™":"™","▵":"▵","▿":"▿","◃":"◃","⊴":"⊴","≜":"≜","▹":"▹","⊵":"⊵","◬":"◬","≜":"≜","⨺":"⨺","⨹":"⨹","⧍":"⧍","⨻":"⨻","⏢":"⏢","𝓉":"𝓉","ц":"ц","ћ":"ћ","ŧ":"ŧ","≬":"≬","↞":"↞","↠":"↠","⇑":"⇑","⥣":"⥣","ú":"ú","ú":"ú","↑":"↑","ў":"ў","ŭ":"ŭ","û":"û","û":"û","у":"у","⇅":"⇅","ű":"ű","⥮":"⥮","⥾":"⥾","𝔲":"𝔲","ù":"ù","ù":"ù","↿":"↿","↾":"↾","▀":"▀","⌜":"⌜","⌜":"⌜","⌏":"⌏","◸":"◸","ū":"ū","¨":"¨","¨":"¨","ų":"ų","𝕦":"𝕦","↑":"↑","↕":"↕","↿":"↿","↾":"↾","⊎":"⊎","υ":"υ","ϒ":"ϒ","υ":"υ","⇈":"⇈","⌝":"⌝","⌝":"⌝","⌎":"⌎","ů":"ů","◹":"◹","𝓊":"𝓊","⋰":"⋰","ũ":"ũ","▵":"▵","▴":"▴","⇈":"⇈","ü":"ü","ü":"ü","⦧":"⦧","⇕":"⇕","⫨":"⫨","⫩":"⫩","⊨":"⊨","⦜":"⦜","ϵ":"ϵ","ϰ":"ϰ","∅":"∅","ϕ":"ϕ","ϖ":"ϖ","∝":"∝","↕":"↕","ϱ":"ϱ","ς":"ς","⊊︀":"⊊︀","⫋︀":"⫋︀","⊋︀":"⊋︀","⫌︀":"⫌︀","ϑ":"ϑ","⊲":"⊲","⊳":"⊳","в":"в","⊢":"⊢","∨":"∨","⊻":"⊻","≚":"≚","⋮":"⋮","|":"|","|":"|","𝔳":"𝔳","⊲":"⊲","⊂⃒":"⊂⃒","⊃⃒":"⊃⃒","𝕧":"𝕧","∝":"∝","⊳":"⊳","𝓋":"𝓋","⫋︀":"⫋︀","⊊︀":"⊊︀","⫌︀":"⫌︀","⊋︀":"⊋︀","⦚":"⦚","ŵ":"ŵ","⩟":"⩟","∧":"∧","≙":"≙","℘":"℘","𝔴":"𝔴","𝕨":"𝕨","℘":"℘","≀":"≀","≀":"≀","𝓌":"𝓌","⋂":"⋂","◯":"◯","⋃":"⋃","▽":"▽","𝔵":"𝔵","⟺":"⟺","⟷":"⟷","ξ":"ξ","⟸":"⟸","⟵":"⟵","⟼":"⟼","⋻":"⋻","⨀":"⨀","𝕩":"𝕩","⨁":"⨁","⨂":"⨂","⟹":"⟹","⟶":"⟶","𝓍":"𝓍","⨆":"⨆","⨄":"⨄","△":"△","⋁":"⋁","⋀":"⋀","ý":"ý","ý":"ý","я":"я","ŷ":"ŷ","ы":"ы","¥":"¥","¥":"¥","𝔶":"𝔶","ї":"ї","𝕪":"𝕪","𝓎":"𝓎","ю":"ю","ÿ":"ÿ","ÿ":"ÿ","ź":"ź","ž":"ž","з":"з","ż":"ż","ℨ":"ℨ","ζ":"ζ","𝔷":"𝔷","ж":"ж","⇝":"⇝","𝕫":"𝕫","𝓏":"𝓏","‍":"‍","‌":"‌"},characters:{"Æ":"Æ","&":"&","Á":"Á","Ă":"Ă","Â":"Â","А":"А","𝔄":"𝔄","À":"À","Α":"Α","Ā":"Ā","⩓":"⩓","Ą":"Ą","𝔸":"𝔸","⁡":"⁡","Å":"Å","𝒜":"𝒜","≔":"≔","Ã":"Ã","Ä":"Ä","∖":"∖","⫧":"⫧","⌆":"⌆","Б":"Б","∵":"∵","ℬ":"ℬ","Β":"Β","𝔅":"𝔅","𝔹":"𝔹","˘":"˘","≎":"≎","Ч":"Ч","©":"©","Ć":"Ć","⋒":"⋒","ⅅ":"ⅅ","ℭ":"ℭ","Č":"Č","Ç":"Ç","Ĉ":"Ĉ","∰":"∰","Ċ":"Ċ","¸":"¸","·":"·","Χ":"Χ","⊙":"⊙","⊖":"⊖","⊕":"⊕","⊗":"⊗","∲":"∲","”":"”","’":"’","∷":"∷","⩴":"⩴","≡":"≡","∯":"∯","∮":"∮","ℂ":"ℂ","∐":"∐","∳":"∳","⨯":"⨯","𝒞":"𝒞","⋓":"⋓","≍":"≍","⤑":"⤑","Ђ":"Ђ","Ѕ":"Ѕ","Џ":"Џ","‡":"‡","↡":"↡","⫤":"⫤","Ď":"Ď","Д":"Д","∇":"∇","Δ":"Δ","𝔇":"𝔇","´":"´","˙":"˙","˝":"˝","`":"`","˜":"˜","⋄":"⋄","ⅆ":"ⅆ","𝔻":"𝔻","¨":"¨","⃜":"⃜","≐":"≐","⇓":"⇓","⇐":"⇐","⇔":"⇔","⟸":"⟸","⟺":"⟺","⟹":"⟹","⇒":"⇒","⊨":"⊨","⇑":"⇑","⇕":"⇕","∥":"∥","↓":"↓","⤓":"⤓","⇵":"⇵","̑":"̑","⥐":"⥐","⥞":"⥞","↽":"↽","⥖":"⥖","⥟":"⥟","⇁":"⇁","⥗":"⥗","⊤":"⊤","↧":"↧","𝒟":"𝒟","Đ":"Đ","Ŋ":"Ŋ","Ð":"Ð","É":"É","Ě":"Ě","Ê":"Ê","Э":"Э","Ė":"Ė","𝔈":"𝔈","È":"È","∈":"∈","Ē":"Ē","◻":"◻","▫":"▫","Ę":"Ę","𝔼":"𝔼","Ε":"Ε","⩵":"⩵","≂":"≂","⇌":"⇌","ℰ":"ℰ","⩳":"⩳","Η":"Η","Ë":"Ë","∃":"∃","ⅇ":"ⅇ","Ф":"Ф","𝔉":"𝔉","◼":"◼","▪":"▪","𝔽":"𝔽","∀":"∀","ℱ":"ℱ","Ѓ":"Ѓ",">":">","Γ":"Γ","Ϝ":"Ϝ","Ğ":"Ğ","Ģ":"Ģ","Ĝ":"Ĝ","Г":"Г","Ġ":"Ġ","𝔊":"𝔊","⋙":"⋙","𝔾":"𝔾","≥":"≥","⋛":"⋛","≧":"≧","⪢":"⪢","≷":"≷","⩾":"⩾","≳":"≳","𝒢":"𝒢","≫":"≫","Ъ":"Ъ","ˇ":"ˇ","^":"^","Ĥ":"Ĥ","ℌ":"ℌ","ℋ":"ℋ","ℍ":"ℍ","─":"─","Ħ":"Ħ","≏":"≏","Е":"Е","IJ":"IJ","Ё":"Ё","Í":"Í","Î":"Î","И":"И","İ":"İ","ℑ":"ℑ","Ì":"Ì","Ī":"Ī","ⅈ":"ⅈ","∬":"∬","∫":"∫","⋂":"⋂","⁣":"⁣","⁢":"⁢","Į":"Į","𝕀":"𝕀","Ι":"Ι","ℐ":"ℐ","Ĩ":"Ĩ","І":"І","Ï":"Ï","Ĵ":"Ĵ","Й":"Й","𝔍":"𝔍","𝕁":"𝕁","𝒥":"𝒥","Ј":"Ј","Є":"Є","Х":"Х","Ќ":"Ќ","Κ":"Κ","Ķ":"Ķ","К":"К","𝔎":"𝔎","𝕂":"𝕂","𝒦":"𝒦","Љ":"Љ","<":"<","Ĺ":"Ĺ","Λ":"Λ","⟪":"⟪","ℒ":"ℒ","↞":"↞","Ľ":"Ľ","Ļ":"Ļ","Л":"Л","⟨":"⟨","←":"←","⇤":"⇤","⇆":"⇆","⌈":"⌈","⟦":"⟦","⥡":"⥡","⇃":"⇃","⥙":"⥙","⌊":"⌊","↔":"↔","⥎":"⥎","⊣":"⊣","↤":"↤","⥚":"⥚","⊲":"⊲","⧏":"⧏","⊴":"⊴","⥑":"⥑","⥠":"⥠","↿":"↿","⥘":"⥘","↼":"↼","⥒":"⥒","⋚":"⋚","≦":"≦","≶":"≶","⪡":"⪡","⩽":"⩽","≲":"≲","𝔏":"𝔏","⋘":"⋘","⇚":"⇚","Ŀ":"Ŀ","⟵":"⟵","⟷":"⟷","⟶":"⟶","𝕃":"𝕃","↙":"↙","↘":"↘","↰":"↰","Ł":"Ł","≪":"≪","⤅":"⤅","М":"М"," ":" ","ℳ":"ℳ","𝔐":"𝔐","∓":"∓","𝕄":"𝕄","Μ":"Μ","Њ":"Њ","Ń":"Ń","Ň":"Ň","Ņ":"Ņ","Н":"Н","​":"​","\n":" ","𝔑":"𝔑","⁠":"⁠"," ":" ","ℕ":"ℕ","⫬":"⫬","≢":"≢","≭":"≭","∦":"∦","∉":"∉","≠":"≠","≂̸":"≂̸","∄":"∄","≯":"≯","≱":"≱","≧̸":"≧̸","≫̸":"≫̸","≹":"≹","⩾̸":"⩾̸","≵":"≵","≎̸":"≎̸","≏̸":"≏̸","⋪":"⋪","⧏̸":"⧏̸","⋬":"⋬","≮":"≮","≰":"≰","≸":"≸","≪̸":"≪̸","⩽̸":"⩽̸","≴":"≴","⪢̸":"⪢̸","⪡̸":"⪡̸","⊀":"⊀","⪯̸":"⪯̸","⋠":"⋠","∌":"∌","⋫":"⋫","⧐̸":"⧐̸","⋭":"⋭","⊏̸":"⊏̸","⋢":"⋢","⊐̸":"⊐̸","⋣":"⋣","⊂⃒":"⊂⃒","⊈":"⊈","⊁":"⊁","⪰̸":"⪰̸","⋡":"⋡","≿̸":"≿̸","⊃⃒":"⊃⃒","⊉":"⊉","≁":"≁","≄":"≄","≇":"≇","≉":"≉","∤":"∤","𝒩":"𝒩","Ñ":"Ñ","Ν":"Ν","Œ":"Œ","Ó":"Ó","Ô":"Ô","О":"О","Ő":"Ő","𝔒":"𝔒","Ò":"Ò","Ō":"Ō","Ω":"Ω","Ο":"Ο","𝕆":"𝕆","“":"“","‘":"‘","⩔":"⩔","𝒪":"𝒪","Ø":"Ø","Õ":"Õ","⨷":"⨷","Ö":"Ö","‾":"‾","⏞":"⏞","⎴":"⎴","⏜":"⏜","∂":"∂","П":"П","𝔓":"𝔓","Φ":"Φ","Π":"Π","±":"±","ℙ":"ℙ","⪻":"⪻","≺":"≺","⪯":"⪯","≼":"≼","≾":"≾","″":"″","∏":"∏","∝":"∝","𝒫":"𝒫","Ψ":"Ψ",'"':""","𝔔":"𝔔","ℚ":"ℚ","𝒬":"𝒬","⤐":"⤐","®":"®","Ŕ":"Ŕ","⟫":"⟫","↠":"↠","⤖":"⤖","Ř":"Ř","Ŗ":"Ŗ","Р":"Р","ℜ":"ℜ","∋":"∋","⇋":"⇋","⥯":"⥯","Ρ":"Ρ","⟩":"⟩","→":"→","⇥":"⇥","⇄":"⇄","⌉":"⌉","⟧":"⟧","⥝":"⥝","⇂":"⇂","⥕":"⥕","⌋":"⌋","⊢":"⊢","↦":"↦","⥛":"⥛","⊳":"⊳","⧐":"⧐","⊵":"⊵","⥏":"⥏","⥜":"⥜","↾":"↾","⥔":"⥔","⇀":"⇀","⥓":"⥓","ℝ":"ℝ","⥰":"⥰","⇛":"⇛","ℛ":"ℛ","↱":"↱","⧴":"⧴","Щ":"Щ","Ш":"Ш","Ь":"Ь","Ś":"Ś","⪼":"⪼","Š":"Š","Ş":"Ş","Ŝ":"Ŝ","С":"С","𝔖":"𝔖","↑":"↑","Σ":"Σ","∘":"∘","𝕊":"𝕊","√":"√","□":"□","⊓":"⊓","⊏":"⊏","⊑":"⊑","⊐":"⊐","⊒":"⊒","⊔":"⊔","𝒮":"𝒮","⋆":"⋆","⋐":"⋐","⊆":"⊆","≻":"≻","⪰":"⪰","≽":"≽","≿":"≿","∑":"∑","⋑":"⋑","⊃":"⊃","⊇":"⊇","Þ":"Þ","™":"™","Ћ":"Ћ","Ц":"Ц","\t":" ","Τ":"Τ","Ť":"Ť","Ţ":"Ţ","Т":"Т","𝔗":"𝔗","∴":"∴","Θ":"Θ","  ":"  "," ":" ","∼":"∼","≃":"≃","≅":"≅","≈":"≈","𝕋":"𝕋","⃛":"⃛","𝒯":"𝒯","Ŧ":"Ŧ","Ú":"Ú","↟":"↟","⥉":"⥉","Ў":"Ў","Ŭ":"Ŭ","Û":"Û","У":"У","Ű":"Ű","𝔘":"𝔘","Ù":"Ù","Ū":"Ū",_:"_","⏟":"⏟","⎵":"⎵","⏝":"⏝","⋃":"⋃","⊎":"⊎","Ų":"Ų","𝕌":"𝕌","⤒":"⤒","⇅":"⇅","↕":"↕","⥮":"⥮","⊥":"⊥","↥":"↥","↖":"↖","↗":"↗","ϒ":"ϒ","Υ":"Υ","Ů":"Ů","𝒰":"𝒰","Ũ":"Ũ","Ü":"Ü","⊫":"⊫","⫫":"⫫","В":"В","⊩":"⊩","⫦":"⫦","⋁":"⋁","‖":"‖","∣":"∣","|":"|","❘":"❘","≀":"≀"," ":" ","𝔙":"𝔙","𝕍":"𝕍","𝒱":"𝒱","⊪":"⊪","Ŵ":"Ŵ","⋀":"⋀","𝔚":"𝔚","𝕎":"𝕎","𝒲":"𝒲","𝔛":"𝔛","Ξ":"Ξ","𝕏":"𝕏","𝒳":"𝒳","Я":"Я","Ї":"Ї","Ю":"Ю","Ý":"Ý","Ŷ":"Ŷ","Ы":"Ы","𝔜":"𝔜","𝕐":"𝕐","𝒴":"𝒴","Ÿ":"Ÿ","Ж":"Ж","Ź":"Ź","Ž":"Ž","З":"З","Ż":"Ż","Ζ":"Ζ","ℨ":"ℨ","ℤ":"ℤ","𝒵":"𝒵","á":"á","ă":"ă","∾":"∾","∾̳":"∾̳","∿":"∿","â":"â","а":"а","æ":"æ","𝔞":"𝔞","à":"à","ℵ":"ℵ","α":"α","ā":"ā","⨿":"⨿","∧":"∧","⩕":"⩕","⩜":"⩜","⩘":"⩘","⩚":"⩚","∠":"∠","⦤":"⦤","∡":"∡","⦨":"⦨","⦩":"⦩","⦪":"⦪","⦫":"⦫","⦬":"⦬","⦭":"⦭","⦮":"⦮","⦯":"⦯","∟":"∟","⊾":"⊾","⦝":"⦝","∢":"∢","⍼":"⍼","ą":"ą","𝕒":"𝕒","⩰":"⩰","⩯":"⩯","≊":"≊","≋":"≋","'":"'","å":"å","𝒶":"𝒶","*":"*","ã":"ã","ä":"ä","⨑":"⨑","⫭":"⫭","≌":"≌","϶":"϶","‵":"‵","∽":"∽","⋍":"⋍","⊽":"⊽","⌅":"⌅","⎶":"⎶","б":"б","„":"„","⦰":"⦰","β":"β","ℶ":"ℶ","≬":"≬","𝔟":"𝔟","◯":"◯","⨀":"⨀","⨁":"⨁","⨂":"⨂","⨆":"⨆","★":"★","▽":"▽","△":"△","⨄":"⨄","⤍":"⤍","⧫":"⧫","▴":"▴","▾":"▾","◂":"◂","▸":"▸","␣":"␣","▒":"▒","░":"░","▓":"▓","█":"█","=⃥":"=⃥","≡⃥":"≡⃥","⌐":"⌐","𝕓":"𝕓","⋈":"⋈","╗":"╗","╔":"╔","╖":"╖","╓":"╓","═":"═","╦":"╦","╩":"╩","╤":"╤","╧":"╧","╝":"╝","╚":"╚","╜":"╜","╙":"╙","║":"║","╬":"╬","╣":"╣","╠":"╠","╫":"╫","╢":"╢","╟":"╟","⧉":"⧉","╕":"╕","╒":"╒","┐":"┐","┌":"┌","╥":"╥","╨":"╨","┬":"┬","┴":"┴","⊟":"⊟","⊞":"⊞","⊠":"⊠","╛":"╛","╘":"╘","┘":"┘","└":"└","│":"│","╪":"╪","╡":"╡","╞":"╞","┼":"┼","┤":"┤","├":"├","¦":"¦","𝒷":"𝒷","⁏":"⁏","\\":"\","⧅":"⧅","⟈":"⟈","•":"•","⪮":"⪮","ć":"ć","∩":"∩","⩄":"⩄","⩉":"⩉","⩋":"⩋","⩇":"⩇","⩀":"⩀","∩︀":"∩︀","⁁":"⁁","⩍":"⩍","č":"č","ç":"ç","ĉ":"ĉ","⩌":"⩌","⩐":"⩐","ċ":"ċ","⦲":"⦲","¢":"¢","𝔠":"𝔠","ч":"ч","✓":"✓","χ":"χ","○":"○","⧃":"⧃","ˆ":"ˆ","≗":"≗","↺":"↺","↻":"↻","Ⓢ":"Ⓢ","⊛":"⊛","⊚":"⊚","⊝":"⊝","⨐":"⨐","⫯":"⫯","⧂":"⧂","♣":"♣",":":":",",":",","@":"@","∁":"∁","⩭":"⩭","𝕔":"𝕔","℗":"℗","↵":"↵","✗":"✗","𝒸":"𝒸","⫏":"⫏","⫑":"⫑","⫐":"⫐","⫒":"⫒","⋯":"⋯","⤸":"⤸","⤵":"⤵","⋞":"⋞","⋟":"⋟","↶":"↶","⤽":"⤽","∪":"∪","⩈":"⩈","⩆":"⩆","⩊":"⩊","⊍":"⊍","⩅":"⩅","∪︀":"∪︀","↷":"↷","⤼":"⤼","⋎":"⋎","⋏":"⋏","¤":"¤","∱":"∱","⌭":"⌭","⥥":"⥥","†":"†","ℸ":"ℸ","‐":"‐","⤏":"⤏","ď":"ď","д":"д","⇊":"⇊","⩷":"⩷","°":"°","δ":"δ","⦱":"⦱","⥿":"⥿","𝔡":"𝔡","♦":"♦","ϝ":"ϝ","⋲":"⋲","÷":"÷","⋇":"⋇","ђ":"ђ","⌞":"⌞","⌍":"⌍",$:"$","𝕕":"𝕕","≑":"≑","∸":"∸","∔":"∔","⊡":"⊡","⌟":"⌟","⌌":"⌌","𝒹":"𝒹","ѕ":"ѕ","⧶":"⧶","đ":"đ","⋱":"⋱","▿":"▿","⦦":"⦦","џ":"џ","⟿":"⟿","é":"é","⩮":"⩮","ě":"ě","≖":"≖","ê":"ê","≕":"≕","э":"э","ė":"ė","≒":"≒","𝔢":"𝔢","⪚":"⪚","è":"è","⪖":"⪖","⪘":"⪘","⪙":"⪙","⏧":"⏧","ℓ":"ℓ","⪕":"⪕","⪗":"⪗","ē":"ē","∅":"∅"," ":" "," ":" "," ":" ","ŋ":"ŋ"," ":" ","ę":"ę","𝕖":"𝕖","⋕":"⋕","⧣":"⧣","⩱":"⩱","ε":"ε","ϵ":"ϵ","=":"=","≟":"≟","⩸":"⩸","⧥":"⧥","≓":"≓","⥱":"⥱","ℯ":"ℯ","η":"η","ð":"ð","ë":"ë","€":"€","!":"!","ф":"ф","♀":"♀","ffi":"ffi","ff":"ff","ffl":"ffl","𝔣":"𝔣","fi":"fi",fj:"fj","♭":"♭","fl":"fl","▱":"▱","ƒ":"ƒ","𝕗":"𝕗","⋔":"⋔","⫙":"⫙","⨍":"⨍","½":"½","⅓":"⅓","¼":"¼","⅕":"⅕","⅙":"⅙","⅛":"⅛","⅔":"⅔","⅖":"⅖","¾":"¾","⅗":"⅗","⅜":"⅜","⅘":"⅘","⅚":"⅚","⅝":"⅝","⅞":"⅞","⁄":"⁄","⌢":"⌢","𝒻":"𝒻","⪌":"⪌","ǵ":"ǵ","γ":"γ","⪆":"⪆","ğ":"ğ","ĝ":"ĝ","г":"г","ġ":"ġ","⪩":"⪩","⪀":"⪀","⪂":"⪂","⪄":"⪄","⋛︀":"⋛︀","⪔":"⪔","𝔤":"𝔤","ℷ":"ℷ","ѓ":"ѓ","⪒":"⪒","⪥":"⪥","⪤":"⪤","≩":"≩","⪊":"⪊","⪈":"⪈","⋧":"⋧","𝕘":"𝕘","ℊ":"ℊ","⪎":"⪎","⪐":"⪐","⪧":"⪧","⩺":"⩺","⋗":"⋗","⦕":"⦕","⩼":"⩼","⥸":"⥸","≩︀":"≩︀","ъ":"ъ","⥈":"⥈","↭":"↭","ℏ":"ℏ","ĥ":"ĥ","♥":"♥","…":"…","⊹":"⊹","𝔥":"𝔥","⤥":"⤥","⤦":"⤦","⇿":"⇿","∻":"∻","↩":"↩","↪":"↪","𝕙":"𝕙","―":"―","𝒽":"𝒽","ħ":"ħ","⁃":"⁃","í":"í","î":"î","и":"и","е":"е","¡":"¡","𝔦":"𝔦","ì":"ì","⨌":"⨌","∭":"∭","⧜":"⧜","℩":"℩","ij":"ij","ī":"ī","ı":"ı","⊷":"⊷","Ƶ":"Ƶ","℅":"℅","∞":"∞","⧝":"⧝","⊺":"⊺","⨗":"⨗","⨼":"⨼","ё":"ё","į":"į","𝕚":"𝕚","ι":"ι","¿":"¿","𝒾":"𝒾","⋹":"⋹","⋵":"⋵","⋴":"⋴","⋳":"⋳","ĩ":"ĩ","і":"і","ï":"ï","ĵ":"ĵ","й":"й","𝔧":"𝔧","ȷ":"ȷ","𝕛":"𝕛","𝒿":"𝒿","ј":"ј","є":"є","κ":"κ","ϰ":"ϰ","ķ":"ķ","к":"к","𝔨":"𝔨","ĸ":"ĸ","х":"х","ќ":"ќ","𝕜":"𝕜","𝓀":"𝓀","⤛":"⤛","⤎":"⤎","⪋":"⪋","⥢":"⥢","ĺ":"ĺ","⦴":"⦴","λ":"λ","⦑":"⦑","⪅":"⪅","«":"«","⤟":"⤟","⤝":"⤝","↫":"↫","⤹":"⤹","⥳":"⥳","↢":"↢","⪫":"⪫","⤙":"⤙","⪭":"⪭","⪭︀":"⪭︀","⤌":"⤌","❲":"❲","{":"{","[":"[","⦋":"⦋","⦏":"⦏","⦍":"⦍","ľ":"ľ","ļ":"ļ","л":"л","⤶":"⤶","⥧":"⥧","⥋":"⥋","↲":"↲","≤":"≤","⇇":"⇇","⋋":"⋋","⪨":"⪨","⩿":"⩿","⪁":"⪁","⪃":"⪃","⋚︀":"⋚︀","⪓":"⪓","⋖":"⋖","⥼":"⥼","𝔩":"𝔩","⪑":"⪑","⥪":"⥪","▄":"▄","љ":"љ","⥫":"⥫","◺":"◺","ŀ":"ŀ","⎰":"⎰","≨":"≨","⪉":"⪉","⪇":"⪇","⋦":"⋦","⟬":"⟬","⇽":"⇽","⟼":"⟼","↬":"↬","⦅":"⦅","𝕝":"𝕝","⨭":"⨭","⨴":"⨴","∗":"∗","◊":"◊","(":"(","⦓":"⦓","⥭":"⥭","‎":"‎","⊿":"⊿","‹":"‹","𝓁":"𝓁","⪍":"⪍","⪏":"⪏","‚":"‚","ł":"ł","⪦":"⪦","⩹":"⩹","⋉":"⋉","⥶":"⥶","⩻":"⩻","⦖":"⦖","◃":"◃","⥊":"⥊","⥦":"⥦","≨︀":"≨︀","∺":"∺","¯":"¯","♂":"♂","✠":"✠","▮":"▮","⨩":"⨩","м":"м","—":"—","𝔪":"𝔪","℧":"℧","µ":"µ","⫰":"⫰","−":"−","⨪":"⨪","⫛":"⫛","⊧":"⊧","𝕞":"𝕞","𝓂":"𝓂","μ":"μ","⊸":"⊸","⋙̸":"⋙̸","≫⃒":"≫⃒","⇍":"⇍","⇎":"⇎","⋘̸":"⋘̸","≪⃒":"≪⃒","⇏":"⇏","⊯":"⊯","⊮":"⊮","ń":"ń","∠⃒":"∠⃒","⩰̸":"⩰̸","≋̸":"≋̸","ʼn":"ʼn","♮":"♮","⩃":"⩃","ň":"ň","ņ":"ņ","⩭̸":"⩭̸","⩂":"⩂","н":"н","–":"–","⇗":"⇗","⤤":"⤤","≐̸":"≐̸","⤨":"⤨","𝔫":"𝔫","↮":"↮","⫲":"⫲","⋼":"⋼","⋺":"⋺","њ":"њ","≦̸":"≦̸","↚":"↚","‥":"‥","𝕟":"𝕟","¬":"¬","⋹̸":"⋹̸","⋵̸":"⋵̸","⋷":"⋷","⋶":"⋶","⋾":"⋾","⋽":"⋽","⫽⃥":"⫽⃥","∂̸":"∂̸","⨔":"⨔","↛":"↛","⤳̸":"⤳̸","↝̸":"↝̸","𝓃":"𝓃","⊄":"⊄","⫅̸":"⫅̸","⊅":"⊅","⫆̸":"⫆̸","ñ":"ñ","ν":"ν","#":"#","№":"№"," ":" ","⊭":"⊭","⤄":"⤄","≍⃒":"≍⃒","⊬":"⊬","≥⃒":"≥⃒",">⃒":">⃒","⧞":"⧞","⤂":"⤂","≤⃒":"≤⃒","<⃒":"<⃒","⊴⃒":"⊴⃒","⤃":"⤃","⊵⃒":"⊵⃒","∼⃒":"∼⃒","⇖":"⇖","⤣":"⤣","⤧":"⤧","ó":"ó","ô":"ô","о":"о","ő":"ő","⨸":"⨸","⦼":"⦼","œ":"œ","⦿":"⦿","𝔬":"𝔬","˛":"˛","ò":"ò","⧁":"⧁","⦵":"⦵","⦾":"⦾","⦻":"⦻","⧀":"⧀","ō":"ō","ω":"ω","ο":"ο","⦶":"⦶","𝕠":"𝕠","⦷":"⦷","⦹":"⦹","∨":"∨","⩝":"⩝","ℴ":"ℴ","ª":"ª","º":"º","⊶":"⊶","⩖":"⩖","⩗":"⩗","⩛":"⩛","ø":"ø","⊘":"⊘","õ":"õ","⨶":"⨶","ö":"ö","⌽":"⌽","¶":"¶","⫳":"⫳","⫽":"⫽","п":"п","%":"%",".":".","‰":"‰","‱":"‱","𝔭":"𝔭","φ":"φ","ϕ":"ϕ","☎":"☎","π":"π","ϖ":"ϖ","ℎ":"ℎ","+":"+","⨣":"⨣","⨢":"⨢","⨥":"⨥","⩲":"⩲","⨦":"⨦","⨧":"⨧","⨕":"⨕","𝕡":"𝕡","£":"£","⪳":"⪳","⪷":"⪷","⪹":"⪹","⪵":"⪵","⋨":"⋨","′":"′","⌮":"⌮","⌒":"⌒","⌓":"⌓","⊰":"⊰","𝓅":"𝓅","ψ":"ψ"," ":" ","𝔮":"𝔮","𝕢":"𝕢","⁗":"⁗","𝓆":"𝓆","⨖":"⨖","?":"?","⤜":"⤜","⥤":"⥤","∽̱":"∽̱","ŕ":"ŕ","⦳":"⦳","⦒":"⦒","⦥":"⦥","»":"»","⥵":"⥵","⤠":"⤠","⤳":"⤳","⤞":"⤞","⥅":"⥅","⥴":"⥴","↣":"↣","↝":"↝","⤚":"⤚","∶":"∶","❳":"❳","}":"}","]":"]","⦌":"⦌","⦎":"⦎","⦐":"⦐","ř":"ř","ŗ":"ŗ","р":"р","⤷":"⤷","⥩":"⥩","↳":"↳","▭":"▭","⥽":"⥽","𝔯":"𝔯","⥬":"⥬","ρ":"ρ","ϱ":"ϱ","⇉":"⇉","⋌":"⋌","˚":"˚","‏":"‏","⎱":"⎱","⫮":"⫮","⟭":"⟭","⇾":"⇾","⦆":"⦆","𝕣":"𝕣","⨮":"⨮","⨵":"⨵",")":")","⦔":"⦔","⨒":"⨒","›":"›","𝓇":"𝓇","⋊":"⋊","▹":"▹","⧎":"⧎","⥨":"⥨","℞":"℞","ś":"ś","⪴":"⪴","⪸":"⪸","š":"š","ş":"ş","ŝ":"ŝ","⪶":"⪶","⪺":"⪺","⋩":"⋩","⨓":"⨓","с":"с","⋅":"⋅","⩦":"⩦","⇘":"⇘","§":"§",";":";","⤩":"⤩","✶":"✶","𝔰":"𝔰","♯":"♯","щ":"щ","ш":"ш","­":"­","σ":"σ","ς":"ς","⩪":"⩪","⪞":"⪞","⪠":"⪠","⪝":"⪝","⪟":"⪟","≆":"≆","⨤":"⨤","⥲":"⥲","⨳":"⨳","⧤":"⧤","⌣":"⌣","⪪":"⪪","⪬":"⪬","⪬︀":"⪬︀","ь":"ь","/":"/","⧄":"⧄","⌿":"⌿","𝕤":"𝕤","♠":"♠","⊓︀":"⊓︀","⊔︀":"⊔︀","𝓈":"𝓈","☆":"☆","⊂":"⊂","⫅":"⫅","⪽":"⪽","⫃":"⫃","⫁":"⫁","⫋":"⫋","⊊":"⊊","⪿":"⪿","⥹":"⥹","⫇":"⫇","⫕":"⫕","⫓":"⫓","♪":"♪","¹":"¹","²":"²","³":"³","⫆":"⫆","⪾":"⪾","⫘":"⫘","⫄":"⫄","⟉":"⟉","⫗":"⫗","⥻":"⥻","⫂":"⫂","⫌":"⫌","⊋":"⊋","⫀":"⫀","⫈":"⫈","⫔":"⫔","⫖":"⫖","⇙":"⇙","⤪":"⤪","ß":"ß","⌖":"⌖","τ":"τ","ť":"ť","ţ":"ţ","т":"т","⌕":"⌕","𝔱":"𝔱","θ":"θ","ϑ":"ϑ","þ":"þ","×":"×","⨱":"⨱","⨰":"⨰","⌶":"⌶","⫱":"⫱","𝕥":"𝕥","⫚":"⫚","‴":"‴","▵":"▵","≜":"≜","◬":"◬","⨺":"⨺","⨹":"⨹","⧍":"⧍","⨻":"⨻","⏢":"⏢","𝓉":"𝓉","ц":"ц","ћ":"ћ","ŧ":"ŧ","⥣":"⥣","ú":"ú","ў":"ў","ŭ":"ŭ","û":"û","у":"у","ű":"ű","⥾":"⥾","𝔲":"𝔲","ù":"ù","▀":"▀","⌜":"⌜","⌏":"⌏","◸":"◸","ū":"ū","ų":"ų","𝕦":"𝕦","υ":"υ","⇈":"⇈","⌝":"⌝","⌎":"⌎","ů":"ů","◹":"◹","𝓊":"𝓊","⋰":"⋰","ũ":"ũ","ü":"ü","⦧":"⦧","⫨":"⫨","⫩":"⫩","⦜":"⦜","⊊︀":"⊊︀","⫋︀":"⫋︀","⊋︀":"⊋︀","⫌︀":"⫌︀","в":"в","⊻":"⊻","≚":"≚","⋮":"⋮","𝔳":"𝔳","𝕧":"𝕧","𝓋":"𝓋","⦚":"⦚","ŵ":"ŵ","⩟":"⩟","≙":"≙","℘":"℘","𝔴":"𝔴","𝕨":"𝕨","𝓌":"𝓌","𝔵":"𝔵","ξ":"ξ","⋻":"⋻","𝕩":"𝕩","𝓍":"𝓍","ý":"ý","я":"я","ŷ":"ŷ","ы":"ы","¥":"¥","𝔶":"𝔶","ї":"ї","𝕪":"𝕪","𝓎":"𝓎","ю":"ю","ÿ":"ÿ","ź":"ź","ž":"ž","з":"з","ż":"ż","ζ":"ζ","𝔷":"𝔷","ж":"ж","⇝":"⇝","𝕫":"𝕫","𝓏":"𝓏","‍":"‍","‌":"‌"}}}; \ No newline at end of file diff --git a/node_modules/html-entities/lib/numeric-unicode-map.js b/node_modules/html-entities/lib/numeric-unicode-map.js deleted file mode 100644 index 5908e7db..00000000 --- a/node_modules/html-entities/lib/numeric-unicode-map.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.numericUnicodeMap={0:65533,128:8364,130:8218,131:402,132:8222,133:8230,134:8224,135:8225,136:710,137:8240,138:352,139:8249,140:338,142:381,145:8216,146:8217,147:8220,148:8221,149:8226,150:8211,151:8212,152:732,153:8482,154:353,155:8250,156:339,158:382,159:376}; \ No newline at end of file diff --git a/node_modules/html-entities/lib/surrogate-pairs.js b/node_modules/html-entities/lib/surrogate-pairs.js deleted file mode 100644 index a9c4a14a..00000000 --- a/node_modules/html-entities/lib/surrogate-pairs.js +++ /dev/null @@ -1 +0,0 @@ -"use strict";Object.defineProperty(exports,"__esModule",{value:true});exports.fromCodePoint=String.fromCodePoint||function(astralCodePoint){return String.fromCharCode(Math.floor((astralCodePoint-65536)/1024)+55296,(astralCodePoint-65536)%1024+56320)};exports.getCodePoint=String.prototype.codePointAt?function(input,position){return input.codePointAt(position)}:function(input,position){return(input.charCodeAt(position)-55296)*1024+input.charCodeAt(position+1)-56320+65536};exports.highSurrogateFrom=55296;exports.highSurrogateTo=56319; \ No newline at end of file diff --git a/node_modules/html-entities/package.json b/node_modules/html-entities/package.json deleted file mode 100644 index 0e6851da..00000000 --- a/node_modules/html-entities/package.json +++ /dev/null @@ -1,83 +0,0 @@ -{ - "name": "html-entities", - "version": "2.4.0", - "description": "Fastest HTML entities encode/decode library.", - "keywords": [ - "html", - "html entities", - "html entities encode", - "html entities decode", - "entities", - "entities encode", - "entities decode" - ], - "author": { - "name": "Marat Dulin", - "email": "mdevils@yandex.ru" - }, - "funding": [ - { - "type": "github", - "url": "https://github.com/sponsors/mdevils" - }, - { - "type": "patreon", - "url": "https://patreon.com/mdevils" - } - ], - "devDependencies": { - "@types/benchmark": "^2.1.0", - "@types/chai": "^4.2.11", - "@types/he": "^1.1.1", - "@types/mocha": "^7.0.2", - "@types/node": "^13.13.4", - "@typescript-eslint/eslint-plugin": "^4.6.1", - "@typescript-eslint/parser": "^4.6.1", - "benchmark": "^2.1.4", - "chai": "^4.2.0", - "entities": "^4.5.0", - "eslint": "^7.12.1", - "eslint-config-prettier": "^6.15.0", - "eslint-plugin-import": "^2.22.1", - "eslint-plugin-prettier": "^3.1.4", - "flowgen": "^1.13.0", - "he": "^1.2.0", - "husky": "^4.3.6", - "mocha": "^9.2.2", - "prettier": "^2.1.2", - "terser": "^5.6.1", - "ts-node": "^8.9.1", - "ttypescript": "^1.5.15", - "typescript": "^3.8.3", - "typescript-transform-macros": "^1.1.1" - }, - "repository": { - "type": "git", - "url": "https://github.com/mdevils/html-entities.git" - }, - "sideEffects": false, - "main": "./lib/index.js", - "typings": "./lib/index.d.ts", - "types": "./lib/index.d.ts", - "scripts": { - "test": "TS_NODE_COMPILER=ttypescript mocha --recursive -r ts-node/register test/**/*.ts", - "test:lib": "TEST_LIB=1 npm run test", - "benchmark": "TS_NODE_COMPILER=ttypescript ts-node benchmark/benchmark", - "lint": "eslint src/**.ts", - "flow-type-gen": "flowgen --add-flow-header lib/index.d.ts -o lib/index.js.flow", - "remove-unused-declarations": "find lib -type f \\( -name '*.d.ts' ! -name index.d.ts \\) | xargs rm", - "minimize-lib-files": "find lib -type f \\( -name '*.js' ! -name index.js \\) | while read fn; do terser $fn -o $fn; done", - "build": "rm -Rf lib/* && ttsc && npm run remove-unused-declarations && npm run flow-type-gen && npm run minimize-lib-files && npm run test:lib", - "prepublishOnly": "npm run build" - }, - "files": [ - "lib", - "LICENSE" - ], - "husky": { - "hooks": { - "pre-commit": "npm run lint && npm run test" - } - }, - "license": "MIT" -} diff --git a/node_modules/is-typedarray/LICENSE.md b/node_modules/is-typedarray/LICENSE.md deleted file mode 100644 index ee27ba4b..00000000 --- a/node_modules/is-typedarray/LICENSE.md +++ /dev/null @@ -1,18 +0,0 @@ -This software is released under the MIT license: - -Permission is hereby granted, free of charge, to any person obtaining a copy of -this software and associated documentation files (the "Software"), to deal in -the Software without restriction, including without limitation the rights to -use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of -the Software, and to permit persons to whom the Software is furnished to do so, -subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS -FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR -COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER -IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN -CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. diff --git a/node_modules/is-typedarray/README.md b/node_modules/is-typedarray/README.md deleted file mode 100644 index 27528639..00000000 --- a/node_modules/is-typedarray/README.md +++ /dev/null @@ -1,16 +0,0 @@ -# is-typedarray [![locked](http://badges.github.io/stability-badges/dist/locked.svg)](http://github.com/badges/stability-badges) - -Detect whether or not an object is a -[Typed Array](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Typed_arrays). - -## Usage - -[![NPM](https://nodei.co/npm/is-typedarray.png)](https://nodei.co/npm/is-typedarray/) - -### isTypedArray(array) - -Returns `true` when array is a Typed Array, and `false` when it is not. - -## License - -MIT. See [LICENSE.md](http://github.com/hughsk/is-typedarray/blob/master/LICENSE.md) for details. diff --git a/node_modules/is-typedarray/index.js b/node_modules/is-typedarray/index.js deleted file mode 100644 index 58596036..00000000 --- a/node_modules/is-typedarray/index.js +++ /dev/null @@ -1,41 +0,0 @@ -module.exports = isTypedArray -isTypedArray.strict = isStrictTypedArray -isTypedArray.loose = isLooseTypedArray - -var toString = Object.prototype.toString -var names = { - '[object Int8Array]': true - , '[object Int16Array]': true - , '[object Int32Array]': true - , '[object Uint8Array]': true - , '[object Uint8ClampedArray]': true - , '[object Uint16Array]': true - , '[object Uint32Array]': true - , '[object Float32Array]': true - , '[object Float64Array]': true -} - -function isTypedArray(arr) { - return ( - isStrictTypedArray(arr) - || isLooseTypedArray(arr) - ) -} - -function isStrictTypedArray(arr) { - return ( - arr instanceof Int8Array - || arr instanceof Int16Array - || arr instanceof Int32Array - || arr instanceof Uint8Array - || arr instanceof Uint8ClampedArray - || arr instanceof Uint16Array - || arr instanceof Uint32Array - || arr instanceof Float32Array - || arr instanceof Float64Array - ) -} - -function isLooseTypedArray(arr) { - return names[toString.call(arr)] -} diff --git a/node_modules/is-typedarray/package.json b/node_modules/is-typedarray/package.json deleted file mode 100644 index 37f7ae31..00000000 --- a/node_modules/is-typedarray/package.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "name": "is-typedarray", - "version": "1.0.0", - "description": "Detect whether or not an object is a Typed Array", - "main": "index.js", - "scripts": { - "test": "node test" - }, - "author": "Hugh Kennedy (http://hughsk.io/)", - "license": "MIT", - "dependencies": {}, - "devDependencies": { - "tape": "^2.13.1" - }, - "repository": { - "type": "git", - "url": "git://github.com/hughsk/is-typedarray.git" - }, - "keywords": [ - "typed", - "array", - "detect", - "is", - "util" - ], - "bugs": { - "url": "https://github.com/hughsk/is-typedarray/issues" - }, - "homepage": "https://github.com/hughsk/is-typedarray" -} diff --git a/node_modules/is-typedarray/test.js b/node_modules/is-typedarray/test.js deleted file mode 100644 index b0c176fa..00000000 --- a/node_modules/is-typedarray/test.js +++ /dev/null @@ -1,34 +0,0 @@ -var test = require('tape') -var ista = require('./') - -test('strict', function(t) { - t.ok(ista.strict(new Int8Array), 'Int8Array') - t.ok(ista.strict(new Int16Array), 'Int16Array') - t.ok(ista.strict(new Int32Array), 'Int32Array') - t.ok(ista.strict(new Uint8Array), 'Uint8Array') - t.ok(ista.strict(new Uint16Array), 'Uint16Array') - t.ok(ista.strict(new Uint32Array), 'Uint32Array') - t.ok(ista.strict(new Float32Array), 'Float32Array') - t.ok(ista.strict(new Float64Array), 'Float64Array') - - t.ok(!ista.strict(new Array), 'Array') - t.ok(!ista.strict([]), '[]') - - t.end() -}) - -test('loose', function(t) { - t.ok(ista.loose(new Int8Array), 'Int8Array') - t.ok(ista.loose(new Int16Array), 'Int16Array') - t.ok(ista.loose(new Int32Array), 'Int32Array') - t.ok(ista.loose(new Uint8Array), 'Uint8Array') - t.ok(ista.loose(new Uint16Array), 'Uint16Array') - t.ok(ista.loose(new Uint32Array), 'Uint32Array') - t.ok(ista.loose(new Float32Array), 'Float32Array') - t.ok(ista.loose(new Float64Array), 'Float64Array') - - t.ok(!ista.loose(new Array), 'Array') - t.ok(!ista.loose([]), '[]') - - t.end() -}) diff --git a/node_modules/light-bolt11-decoder/.eslintrc.json b/node_modules/light-bolt11-decoder/.eslintrc.json deleted file mode 100644 index cef9a77f..00000000 --- a/node_modules/light-bolt11-decoder/.eslintrc.json +++ /dev/null @@ -1,151 +0,0 @@ -{ - "root": true, - "parserOptions": { - "ecmaVersion": 9, - "ecmaFeatures": { - "jsx": true - }, - "sourceType": "module", - "allowImportExportEverywhere": false - }, - - "env": { - "es6": true, - "node": true - }, - - "globals": { - "document": false, - "navigator": false, - "window": false, - "location": false, - "URL": false, - "URLSearchParams": false, - "fetch": false, - "EventSource": false, - "localStorage": false, - "sessionStorage": false, - "BigInt": false - }, - - "rules": { - "accessor-pairs": 2, - "arrow-spacing": [2, {"before": true, "after": true}], - "block-spacing": [2, "always"], - "brace-style": [2, "1tbs", {"allowSingleLine": true}], - "comma-dangle": 0, - "comma-spacing": [2, {"before": false, "after": true}], - "comma-style": [2, "last"], - "constructor-super": 2, - "curly": [0, "multi-line"], - "dot-location": [2, "property"], - "eol-last": 2, - "eqeqeq": [2, "allow-null"], - "generator-star-spacing": [2, {"before": true, "after": true}], - "handle-callback-err": [2, "^(err|error)$"], - "indent": 0, - "jsx-quotes": [2, "prefer-double"], - "key-spacing": [2, {"beforeColon": false, "afterColon": true}], - "keyword-spacing": [2, {"before": true, "after": true}], - "new-cap": 0, - "new-parens": 0, - "no-array-constructor": 2, - "no-caller": 2, - "no-class-assign": 2, - "no-cond-assign": 2, - "no-const-assign": 2, - "no-control-regex": 0, - "no-debugger": 0, - "no-delete-var": 2, - "no-dupe-args": 2, - "no-dupe-class-members": 2, - "no-dupe-keys": 2, - "no-duplicate-case": 2, - "no-empty-character-class": 2, - "no-empty-pattern": 2, - "no-eval": 0, - "no-ex-assign": 2, - "no-extend-native": 2, - "no-extra-bind": 2, - "no-extra-boolean-cast": 2, - "no-extra-parens": [2, "functions"], - "no-fallthrough": 2, - "no-floating-decimal": 2, - "no-func-assign": 2, - "no-implied-eval": 2, - "no-inner-declarations": [0, "functions"], - "no-invalid-regexp": 2, - "no-irregular-whitespace": 2, - "no-iterator": 2, - "no-label-var": 2, - "no-labels": [2, {"allowLoop": false, "allowSwitch": false}], - "no-lone-blocks": 2, - "no-mixed-spaces-and-tabs": 2, - "no-multi-spaces": 2, - "no-multi-str": 2, - "no-multiple-empty-lines": [2, {"max": 2}], - "no-native-reassign": 2, - "no-negated-in-lhs": 2, - "no-new": 0, - "no-new-func": 2, - "no-new-object": 2, - "no-new-require": 2, - "no-new-symbol": 2, - "no-new-wrappers": 2, - "no-obj-calls": 2, - "no-octal": 2, - "no-octal-escape": 2, - "no-path-concat": 0, - "no-proto": 2, - "no-redeclare": 2, - "no-regex-spaces": 2, - "no-return-assign": 0, - "no-self-assign": 2, - "no-self-compare": 2, - "no-sequences": 2, - "no-shadow-restricted-names": 2, - "no-spaced-func": 2, - "no-sparse-arrays": 2, - "no-this-before-super": 2, - "no-throw-literal": 2, - "no-trailing-spaces": 2, - "no-undef": 2, - "no-undef-init": 2, - "no-unexpected-multiline": 2, - "no-unneeded-ternary": [2, {"defaultAssignment": false}], - "no-unreachable": 2, - "no-unused-vars": [ - 2, - {"vars": "local", "args": "none", "varsIgnorePattern": "^_"} - ], - "no-useless-call": 2, - "no-useless-constructor": 2, - "no-with": 2, - "one-var": [0, {"initialized": "never"}], - "operator-linebreak": [ - 2, - "after", - {"overrides": {"?": "before", ":": "before"}} - ], - "padded-blocks": [2, "never"], - "quotes": [ - 2, - "single", - {"avoidEscape": true, "allowTemplateLiterals": true} - ], - "semi": [2, "never"], - "semi-spacing": [2, {"before": false, "after": true}], - "space-before-blocks": [2, "always"], - "space-before-function-paren": 0, - "space-in-parens": [2, "never"], - "space-infix-ops": 2, - "space-unary-ops": [2, {"words": true, "nonwords": false}], - "spaced-comment": 0, - "template-curly-spacing": [2, "never"], - "use-isnan": 2, - "valid-typeof": 2, - "wrap-iife": [2, "any"], - "yield-star-spacing": [2, "both"], - "yoda": [0] - } -} diff --git a/node_modules/light-bolt11-decoder/.prettierrc.yaml b/node_modules/light-bolt11-decoder/.prettierrc.yaml deleted file mode 100644 index 16c878ec..00000000 --- a/node_modules/light-bolt11-decoder/.prettierrc.yaml +++ /dev/null @@ -1,10 +0,0 @@ -semi: false -arrowParens: avoid -insertPragma: false -printWidth: 80 -proseWrap: preserve -singleQuote: true -trailingComma: none -useTabs: false -jsxBracketSameLine: false -bracketSpacing: false diff --git a/node_modules/light-bolt11-decoder/LICENSE b/node_modules/light-bolt11-decoder/LICENSE deleted file mode 100644 index 80c9eaee..00000000 --- a/node_modules/light-bolt11-decoder/LICENSE +++ /dev/null @@ -1,21 +0,0 @@ -MIT License - -Copyright (c) 2021 bitcoinjs contributors, fiatjaf - -Permission is hereby granted, free of charge, to any person obtaining a copy -of this software and associated documentation files (the "Software"), to deal -in the Software without restriction, including without limitation the rights -to use, copy, modify, merge, publish, distribute, sublicense, and/or sell -copies of the Software, and to permit persons to whom the Software is -furnished to do so, subject to the following conditions: - -The above copyright notice and this permission notice shall be included in all -copies or substantial portions of the Software. - -THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR -IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, -FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE -AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER -LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, -OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE -SOFTWARE. diff --git a/node_modules/light-bolt11-decoder/README.md b/node_modules/light-bolt11-decoder/README.md deleted file mode 100644 index 242eb58f..00000000 --- a/node_modules/light-bolt11-decoder/README.md +++ /dev/null @@ -1,180 +0,0 @@ - - -# light-bolt11-decoder - -A lightweight and naïve library for decoding lightning network payment requests as defined in [BOLT #11](https://github.com/lightningnetwork/lightning-rfc/blob/master/11-payment-encoding.md). - -It doesn't recover payee from signature, doesn't check signature, doesn't parse fallback addresses and doesn't do any encoding -- therefore dependencies are very minimal (no libsecp256k1 here). - -Code derived from [bolt11](https://npmjs.com/package/bolt11), which has the full functionality but it's a pain to run in browsers. - -Spits out "sections" of the invoice, in a way that is used to make visualizations like https://bolt11.org/. - -The dependencies are minimal: no `Buffer`, only [`@scure/base`](https://github.com/paulmillr/scure-base). - -## Installation - -``` -yarn add light-bolt11-decoder -``` - -## Example Output from `require('light-bolt11-decoder').decode("lnbc...")` - -```js -{ - paymentRequest: - 'lnbc20u1p3y0x3hpp5743k2g0fsqqxj7n8qzuhns5gmkk4djeejk3wkp64ppevgekvc0jsdqcve5kzar2v9nr5gpqd4hkuetesp5ez2g297jduwc20t6lmqlsg3man0vf2jfd8ar9fh8fhn2g8yttfkqxqy9gcqcqzys9qrsgqrzjqtx3k77yrrav9hye7zar2rtqlfkytl094dsp0ms5majzth6gt7ca6uhdkxl983uywgqqqqlgqqqvx5qqjqrzjqd98kxkpyw0l9tyy8r8q57k7zpy9zjmh6sez752wj6gcumqnj3yxzhdsmg6qq56utgqqqqqqqqqqqeqqjq7jd56882gtxhrjm03c93aacyfy306m4fq0tskf83c0nmet8zc2lxyyg3saz8x6vwcp26xnrlagf9semau3qm2glysp7sv95693fphvsp54l567', - sections: [ - { - name: 'lightning_network', - letters: 'ln' - }, - { - name: 'coin_network', - letters: 'bc', - value: { - bech32: 'bc', - pubKeyHash: 0, - scriptHash: 5, - validWitnessVersions: [0] - } - }, - { - name: 'amount', - letters: '20u', - value: '2000000' - }, - { - name: 'separator', - letters: '1' - }, - { - name: 'timestamp', - letters: 'p3y0x3h', - value: 1648859703 - }, - { - name: 'payment_hash', - tag: 'p', - letters: 'pp5743k2g0fsqqxj7n8qzuhns5gmkk4djeejk3wkp64ppevgekvc0js', - value: - 'f5636521e98000697a6700b979c288ddad56cb3995a2eb07550872c466ccc3e5' - }, - { - name: 'description', - tag: 'd', - letters: 'dqcve5kzar2v9nr5gpqd4hkuete', - value: 'fiatjaf: money' - }, - { - name: 'payment_secret', - tag: 's', - letters: 'sp5ez2g297jduwc20t6lmqlsg3man0vf2jfd8ar9fh8fhn2g8yttfkq', - value: - 'c8948517d26f1d853d7afec1f8223becdec4aa4969fa32a6e74de6a41c8b5a6c' - }, - { - name: 'expiry', - tag: 'x', - letters: 'xqy9gcq', - value: 172800 - }, - { - name: 'min_final_cltv_expiry', - tag: 'c', - letters: 'cqzys', - value: 144 - }, - { - name: 'feature_bits', - tag: '9', - letters: '9qrsgq', - value: { - option_data_loss_protect: 'unsupported', - initial_routing_sync: 'unsupported', - option_upfront_shutdown_script: 'unsupported', - gossip_queries: 'unsupported', - var_onion_optin: 'required', - gossip_queries_ex: 'unsupported', - option_static_remotekey: 'unsupported', - payment_secret: 'required', - basic_mpp: 'unsupported', - option_support_large_channel: 'unsupported', - extra_bits: { - start_bit: 20, - bits: [], - has_required: false - } - } - }, - { - name: 'route_hint', - tag: 'r', - letters: - 'rzjqtx3k77yrrav9hye7zar2rtqlfkytl094dsp0ms5majzth6gt7ca6uhdkxl983uywgqqqqlgqqqvx5qqjq', - value: [ - { - pubkey: - '02cd1b7bc418fac2dc99f0ba350d60fa6c45fde5ab6017ee14df6425df485fb1dd', - short_channel_id: '72edb1be53c78472', - fee_base_msat: 1000, - fee_proportional_millionths: 50000, - cltv_expiry_delta: 144 - } - ] - }, - { - name: 'route_hint', - tag: 'r', - letters: - 'rzjqd98kxkpyw0l9tyy8r8q57k7zpy9zjmh6sez752wj6gcumqnj3yxzhdsmg6qq56utgqqqqqqqqqqqeqqjq', - value: [ - { - pubkey: - '034a7b1ac1239ff2ac8438ce0a7ade1048514b77d4322f514e96918e6c13944861', - short_channel_id: '5db0da3400535c5a', - fee_base_msat: 0, - fee_proportional_millionths: 100, - cltv_expiry_delta: 144 - } - ] - }, - { - name: 'signature', - letters: - '7jd56882gtxhrjm03c93aacyfy306m4fq0tskf83c0nmet8zc2lxyyg3saz8x6vwcp26xnrlagf9semau3qm2glysp7sv95693fphvsp', - value: - 'f49b4d1cea42cd71cb6f8e0b1ef7044922fd6ea903d70b24f1c3e7bcace2c2be621111874473698ec055a34c7fea1258677de441b523e4807d06169a2c521bb201' - }, - { - name: 'checksum', - letters: '54l567' - } - ], - expiry: 172800, - route_hints: [ - [ - { - pubkey: - '02cd1b7bc418fac2dc99f0ba350d60fa6c45fde5ab6017ee14df6425df485fb1dd', - short_channel_id: '72edb1be53c78472', - fee_base_msat: 1000, - fee_proportional_millionths: 50000, - cltv_expiry_delta: 144 - } - ], - [ - { - pubkey: - '034a7b1ac1239ff2ac8438ce0a7ade1048514b77d4322f514e96918e6c13944861', - short_channel_id: '5db0da3400535c5a', - fee_base_msat: 0, - fee_proportional_millionths: 100, - cltv_expiry_delta: 144 - } - ] - ] -} -``` - -## LICENSE [MIT](LICENSE) diff --git a/node_modules/light-bolt11-decoder/bolt11.js b/node_modules/light-bolt11-decoder/bolt11.js deleted file mode 100644 index 9f9bbfc4..00000000 --- a/node_modules/light-bolt11-decoder/bolt11.js +++ /dev/null @@ -1,388 +0,0 @@ -const {bech32, hex, utf8} = require('@scure/base') - -// defaults for encode; default timestamp is current time at call -const DEFAULTNETWORK = { - // default network is bitcoin - bech32: 'bc', - pubKeyHash: 0x00, - scriptHash: 0x05, - validWitnessVersions: [0] -} -const TESTNETWORK = { - bech32: 'tb', - pubKeyHash: 0x6f, - scriptHash: 0xc4, - validWitnessVersions: [0] -} -const REGTESTNETWORK = { - bech32: 'bcrt', - pubKeyHash: 0x6f, - scriptHash: 0xc4, - validWitnessVersions: [0] -} -const SIMNETWORK = { - bech32: 'sb', - pubKeyHash: 0x3f, - scriptHash: 0x7b, - validWitnessVersions: [0] -} - -const FEATUREBIT_ORDER = [ - 'option_data_loss_protect', - 'initial_routing_sync', - 'option_upfront_shutdown_script', - 'gossip_queries', - 'var_onion_optin', - 'gossip_queries_ex', - 'option_static_remotekey', - 'payment_secret', - 'basic_mpp', - 'option_support_large_channel' -] - -const DIVISORS = { - m: BigInt(1e3), - u: BigInt(1e6), - n: BigInt(1e9), - p: BigInt(1e12) -} - -const MAX_MILLISATS = BigInt('2100000000000000000') - -const MILLISATS_PER_BTC = BigInt(1e11) - -const TAGCODES = { - payment_hash: 1, - payment_secret: 16, - description: 13, - payee: 19, - description_hash: 23, // commit to longer descriptions (used by lnurl-pay) - expiry: 6, // default: 3600 (1 hour) - min_final_cltv_expiry: 24, // default: 9 - fallback_address: 9, - route_hint: 3, // for extra routing info (private etc.) - feature_bits: 5, - metadata: 27 -} - -// reverse the keys and values of TAGCODES and insert into TAGNAMES -const TAGNAMES = {} -for (let i = 0, keys = Object.keys(TAGCODES); i < keys.length; i++) { - const currentName = keys[i] - const currentCode = TAGCODES[keys[i]].toString() - TAGNAMES[currentCode] = currentName -} - -const TAGPARSERS = { - 1: words => hex.encode(bech32.fromWordsUnsafe(words)), // 256 bits - 16: words => hex.encode(bech32.fromWordsUnsafe(words)), // 256 bits - 13: words => utf8.encode(bech32.fromWordsUnsafe(words)), // string variable length - 19: words => hex.encode(bech32.fromWordsUnsafe(words)), // 264 bits - 23: words => hex.encode(bech32.fromWordsUnsafe(words)), // 256 bits - 27: words => hex.encode(bech32.fromWordsUnsafe(words)), // variable - 6: wordsToIntBE, // default: 3600 (1 hour) - 24: wordsToIntBE, // default: 9 - 3: routingInfoParser, // for extra routing info (private etc.) - 5: featureBitsParser // keep feature bits as array of 5 bit words -} - -function getUnknownParser(tagCode) { - return words => ({ - tagCode: parseInt(tagCode), - words: bech32.encode('unknown', words, Number.MAX_SAFE_INTEGER) - }) -} - -function wordsToIntBE(words) { - return words.reverse().reduce((total, item, index) => { - return total + item * Math.pow(32, index) - }, 0) -} - -// first convert from words to buffer, trimming padding where necessary -// parse in 51 byte chunks. See encoder for details. -function routingInfoParser(words) { - const routes = [] - let pubkey, - shortChannelId, - feeBaseMSats, - feeProportionalMillionths, - cltvExpiryDelta - let routesBuffer = bech32.fromWordsUnsafe(words) - while (routesBuffer.length > 0) { - pubkey = hex.encode(routesBuffer.slice(0, 33)) // 33 bytes - shortChannelId = hex.encode(routesBuffer.slice(33, 41)) // 8 bytes - feeBaseMSats = parseInt(hex.encode(routesBuffer.slice(41, 45)), 16) // 4 bytes - feeProportionalMillionths = parseInt( - hex.encode(routesBuffer.slice(45, 49)), - 16 - ) // 4 bytes - cltvExpiryDelta = parseInt(hex.encode(routesBuffer.slice(49, 51)), 16) // 2 bytes - - routesBuffer = routesBuffer.slice(51) - - routes.push({ - pubkey, - short_channel_id: shortChannelId, - fee_base_msat: feeBaseMSats, - fee_proportional_millionths: feeProportionalMillionths, - cltv_expiry_delta: cltvExpiryDelta - }) - } - return routes -} - -function featureBitsParser(words) { - const bools = words - .slice() - .reverse() - .map(word => [ - !!(word & 0b1), - !!(word & 0b10), - !!(word & 0b100), - !!(word & 0b1000), - !!(word & 0b10000) - ]) - .reduce((finalArr, itemArr) => finalArr.concat(itemArr), []) - while (bools.length < FEATUREBIT_ORDER.length * 2) { - bools.push(false) - } - - const featureBits = {} - - FEATUREBIT_ORDER.forEach((featureName, index) => { - let status - if (bools[index * 2]) { - status = 'required' - } else if (bools[index * 2 + 1]) { - status = 'supported' - } else { - status = 'unsupported' - } - featureBits[featureName] = status - }) - - const extraBits = bools.slice(FEATUREBIT_ORDER.length * 2) - featureBits.extra_bits = { - start_bit: FEATUREBIT_ORDER.length * 2, - bits: extraBits, - has_required: extraBits.reduce( - (result, bit, index) => - index % 2 !== 0 ? result || false : result || bit, - false - ) - } - - return featureBits -} - -function hrpToMillisat(hrpString, outputString) { - let divisor, value - if (hrpString.slice(-1).match(/^[munp]$/)) { - divisor = hrpString.slice(-1) - value = hrpString.slice(0, -1) - } else if (hrpString.slice(-1).match(/^[^munp0-9]$/)) { - throw new Error('Not a valid multiplier for the amount') - } else { - value = hrpString - } - - if (!value.match(/^\d+$/)) - throw new Error('Not a valid human readable amount') - - const valueBN = BigInt(value) - - const millisatoshisBN = divisor - ? (valueBN * MILLISATS_PER_BTC) / DIVISORS[divisor] - : valueBN * MILLISATS_PER_BTC - - if ( - (divisor === 'p' && !(valueBN % BigInt(10) === BigInt(0))) || - millisatoshisBN > MAX_MILLISATS - ) { - throw new Error('Amount is outside of valid range') - } - - return outputString ? millisatoshisBN.toString() : millisatoshisBN -} - -// decode will only have extra comments that aren't covered in encode comments. -// also if anything is hard to read I'll comment. -function decode(paymentRequest, network) { - if (typeof paymentRequest !== 'string') - throw new Error('Lightning Payment Request must be string') - if (paymentRequest.slice(0, 2).toLowerCase() !== 'ln') - throw new Error('Not a proper lightning payment request') - - const sections = [] - const decoded = bech32.decode(paymentRequest, Number.MAX_SAFE_INTEGER) - paymentRequest = paymentRequest.toLowerCase() - const prefix = decoded.prefix - let words = decoded.words - let letters = paymentRequest.slice(prefix.length + 1) - let sigWords = words.slice(-104) - words = words.slice(0, -104) - - // Without reverse lookups, can't say that the multipier at the end must - // have a number before it, so instead we parse, and if the second group - // doesn't have anything, there's a good chance the last letter of the - // coin type got captured by the third group, so just re-regex without - // the number. - let prefixMatches = prefix.match(/^ln(\S+?)(\d*)([a-zA-Z]?)$/) - if (prefixMatches && !prefixMatches[2]) - prefixMatches = prefix.match(/^ln(\S+)$/) - if (!prefixMatches) { - throw new Error('Not a proper lightning payment request') - } - - // "ln" section - sections.push({ - name: 'lightning_network', - letters: 'ln' - }) - - // "bc" section - const bech32Prefix = prefixMatches[1] - let coinNetwork - if (!network) { - switch (bech32Prefix) { - case DEFAULTNETWORK.bech32: - coinNetwork = DEFAULTNETWORK - break - case TESTNETWORK.bech32: - coinNetwork = TESTNETWORK - break - case REGTESTNETWORK.bech32: - coinNetwork = REGTESTNETWORK - break - case SIMNETWORK.bech32: - coinNetwork = SIMNETWORK - break - } - } else { - if ( - network.bech32 === undefined || - network.pubKeyHash === undefined || - network.scriptHash === undefined || - !Array.isArray(network.validWitnessVersions) - ) - throw new Error('Invalid network') - coinNetwork = network - } - if (!coinNetwork || coinNetwork.bech32 !== bech32Prefix) { - throw new Error('Unknown coin bech32 prefix') - } - sections.push({ - name: 'coin_network', - letters: bech32Prefix, - value: coinNetwork - }) - - // amount section - const value = prefixMatches[2] - let millisatoshis - if (value) { - const divisor = prefixMatches[3] - millisatoshis = hrpToMillisat(value + divisor, true) - sections.push({ - name: 'amount', - letters: prefixMatches[2] + prefixMatches[3], - value: millisatoshis - }) - } else { - millisatoshis = null - } - - // "1" separator - sections.push({ - name: 'separator', - letters: '1' - }) - - // timestamp - const timestamp = wordsToIntBE(words.slice(0, 7)) - words = words.slice(7) // trim off the left 7 words - sections.push({ - name: 'timestamp', - letters: letters.slice(0, 7), - value: timestamp - }) - letters = letters.slice(7) - - let tagName, parser, tagLength, tagWords - // we have no tag count to go on, so just keep hacking off words - // until we have none. - while (words.length > 0) { - const tagCode = words[0].toString() - tagName = TAGNAMES[tagCode] || 'unknown_tag' - parser = TAGPARSERS[tagCode] || getUnknownParser(tagCode) - words = words.slice(1) - - tagLength = wordsToIntBE(words.slice(0, 2)) - words = words.slice(2) - - tagWords = words.slice(0, tagLength) - words = words.slice(tagLength) - - sections.push({ - name: tagName, - tag: letters[0], - letters: letters.slice(0, 1 + 2 + tagLength), - value: parser(tagWords) // see: parsers for more comments - }) - letters = letters.slice(1 + 2 + tagLength) - } - - // signature - sections.push({ - name: 'signature', - letters: letters.slice(0, 104), - value: hex.encode(bech32.fromWordsUnsafe(sigWords)) - }) - letters = letters.slice(104) - - // checksum - sections.push({ - name: 'checksum', - letters: letters - }) - - let result = { - paymentRequest, - sections, - - get expiry() { - let exp = sections.find(s => s.name === 'expiry') - if (exp) return getValue('timestamp') + exp.value - }, - - get route_hints() { - return sections.filter(s => s.name === 'route_hint').map(s => s.value) - } - } - - for (let name in TAGCODES) { - if (name === 'route_hint') { - // route hints can be multiple, so this won't work for them - continue - } - - Object.defineProperty(result, name, { - get() { - return getValue(name) - } - }) - } - - return result - - function getValue(name) { - let section = sections.find(s => s.name === name) - return section ? section.value : undefined - } -} - -module.exports = { - decode, - hrpToMillisat -} diff --git a/node_modules/light-bolt11-decoder/examples/build.js b/node_modules/light-bolt11-decoder/examples/build.js deleted file mode 100755 index 52bf3373..00000000 --- a/node_modules/light-bolt11-decoder/examples/build.js +++ /dev/null @@ -1,18 +0,0 @@ -#!/usr/bin/env node - -const esbuild = require('esbuild') -const nodeGlobals = require('@esbuild-plugins/node-globals-polyfill').default - -esbuild - .build({ - entryPoints: ['demo.jsx'], - outfile: 'demo.build.js', - bundle: true, - plugins: [nodeGlobals({buffer: true})], - define: { - window: 'self', - global: 'self' - }, - sourcemap: 'inline' - }) - .then(() => console.log('build success.')) diff --git a/node_modules/light-bolt11-decoder/examples/demo.jsx b/node_modules/light-bolt11-decoder/examples/demo.jsx deleted file mode 100644 index 501d2160..00000000 --- a/node_modules/light-bolt11-decoder/examples/demo.jsx +++ /dev/null @@ -1,121 +0,0 @@ -import {decode} from 'light-bolt11-decoder' -import React, {useState} from 'react' -import {render} from 'react-dom' -import useComputedState from 'use-computed-state' -import styled, {css} from 'styled-components' - -const TAGCOLORS = { - lightning_network: 'rgb(31, 31, 40)', - coin_network: 'rgb(27, 51, 93)', - amount: 'rgb(0, 110, 98)', - separator: 'rgb(31, 31, 40)', - timestamp: 'rgb(181, 10, 11)', - payment_hash: 'rgb(71, 105, 169)', - description: 'rgb(41, 131, 11)', - description_hash: 'rgb(41, 131, 11)', - payment_secret: 'rgb(92, 25, 75)', - expiry: 'rgb(181, 10, 11)', - metadata: 'rgb(86, 25, 24)', - feature_bits: 'rgb(57, 118, 179)', - payee: 'rgb(51, 44, 138)', - unknown_tag: 'rgb(37, 15, 45)', - min_final_cltv_expiry: 'rgb(119, 34, 32)', - fallback_address: 'rgb(27, 51, 93)', - route_hint: 'rgb(131, 93, 233)', - signature: 'rgb(51, 44, 138)', - checksum: 'rgb(31, 31, 40)' -} - -function getTagColor(name) { - return TAGCOLORS[name] || 'rgb(0, 0, 0)' -} - -const Textarea = styled.textarea` - margin: 18px; - width: 90%; - height: 80px; -` - -const Row = styled.div`` - -const PaymentRequest = styled.div` - white-space: pre-wrap; - word-wrap: break-word; - word-break: break-all; -` - -const Section = styled.span` - font-family: monospace; - font-size: 25px; - - ${props => { - console.log(props) - - return css` - background-color: ${getTagColor(props.name) - .replace('rgb', 'rgba') - .replace(')', ', 0.2)')}; - ` - }} - - &:hover { - color: white; - - ${props => - css` - background-color: ${getTagColor(props.name)}; - `} - } -` - -const Info = styled.div` - margin: 8px; - padding: 8px; - color: white; - - ${props => - css` - background-color: ${getTagColor(props.name)}; - `} -` - -function Demo() { - const [pr, setPR] = useState( - 'lnbc120n1p39wfrtpp5n24pj26fpl0p9dsyxx47ttklcazd7z87pkmru4geca6n6kz4409qdpzve5kzar2v9nr5gpqw3hjqsrvde68scn0wssp5mqr9mkd94jm5z65x94msas8hqhcuc96tqtre3wqkrm305tcvzgmqxqy9gcqcqzys9qrsgqrzjqtx3k77yrrav9hye7zar2rtqlfkytl094dsp0ms5majzth6gt7ca6uhdkxl983uywgqqqqqqqqqq86qqjqrzjq0h9s36s2kpql0a99c6k4zfq7chcx9sjnsund8damcl96qvc4833tx69gvk26e6efsqqqqlgqqqqpjqqjqrzjqd98kxkpyw0l9tyy8r8q57k7zpy9zjmh6sez752wj6gcumqnj3yxzhdsmg6qq56utgqqqqqqqqqqqeqqjqxahrxthcc8syrjyklsg57mzsqauargyc748lf8s2dezw5x7aww0j5v4k5wz9p5x4ax840h4q0qmgucglkesgzvvc22wwmqc756ec02qp34yg8p' - ) - const parsed = useComputedState(() => pr && decode(pr), [pr]) - const [info, setInfo] = useState(null) - - console.log(parsed) - - return ( - <> -